Skip to content

Commit 0d01aad

Browse files
committed
Version 2.1.3, add dismissible option for modals
1 parent 65cdd79 commit 0d01aad

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@telegram-apps/telegram-ui",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "World-class, ultimate UI developer toolkit.",
55
"main": "dist/cjs/index.js",
66
"module": "dist/index.js",

src/Getting Started.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Getting started is a breeze with npm or yarn. Simply run:
99
**npm:**
1010

1111
```sh
12-
npm install @xelene/tgui
12+
npm install @telegram-apps/telegram-ui
1313
```
1414

1515
**yarn:**
1616

1717
```sh
18-
yarn add @xelene/tgui
18+
yarn add @telegram-apps/telegram-ui
1919
```
2020

2121
## Smooth Development Process
@@ -27,15 +27,15 @@ Follow these simple steps to kickstart your development journey:
2727
Before diving into the development, ensure to import the necessary styles:
2828

2929
```jsx
30-
import '@xelene/tgui/dist/styles.css';
30+
import '@telegram-apps/telegram-ui/dist/styles.css';
3131
```
3232

3333
### 2. Wrap Your App
3434

3535
Next, wrap your application with `AppRoot` to leverage our platform's features:
3636

3737
```jsx
38-
import { AppRoot } from '@xelene/tgui';
38+
import { AppRoot } from '@telegram-apps/telegram-ui';
3939

4040
ReactDOM.render(
4141
<AppRoot>
@@ -49,10 +49,10 @@ ReactDOM.render(
4949

5050
```jsx
5151
// Import the necessary styles globally
52-
import '@xelene/tgui/dist/styles.css';
52+
import '@telegram-apps/telegram-ui/dist/styles.css';
5353

5454
// Import components from the library
55-
import { AppRoot, Cell, List, Section } from '@xelene/tgui';
55+
import { AppRoot, Cell, List, Section } from '@telegram-apps/telegram-ui';
5656

5757
// Example data for rendering list cells
5858
const cellsTexts = ['Chat Settings', 'Data and Storage', 'Devices'];

src/components/Overlays/Modal/Modal.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export interface ModalProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onAnim
4747
fadeFromIndex?: never;
4848
/** Determines if the modal can be closed by user interactions */
4949
dismissible?: boolean;
50-
5150
}
5251

5352
type ModalWithComponents = ForwardRefExoticComponent<ModalProps & RefAttributes<HTMLDivElement>> & {
@@ -76,7 +75,7 @@ export const Modal = forwardRef<HTMLDivElement, ModalProps>(({
7675
fadeFromIndex,
7776
modal,
7877
preventScrollRestoration,
79-
dismissible
78+
dismissible,
8079
...restProps
8180
}, ref) => {
8281
const container = useAppRootContext();

0 commit comments

Comments
 (0)