@skbkontur/react-ui 5.1.3 → 5.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/cjs/components/Autocomplete/__docs__/Autocomplete.mdx +5 -5
- package/cjs/components/Button/Button.styles.js +2 -1
- package/cjs/components/Button/Button.styles.js.map +1 -1
- package/cjs/components/Button/__docs__/Button.mdx +8 -9
- package/cjs/components/Calendar/__docs__/Calendar.mdx +8 -9
- package/cjs/components/Calendar/__docs__/CalendarDay.mdx +4 -5
- package/cjs/components/Center/__docs__/Center.mdx +4 -5
- package/cjs/components/Checkbox/__docs__/Checkbox.mdx +8 -9
- package/cjs/components/ComboBox/ComboBox.md +2 -2
- package/cjs/components/ComboBox/__docs__/ComboBox.mdx +8 -9
- package/cjs/components/CurrencyInput/__docs__/CurrencyInput.mdx +8 -9
- package/cjs/components/CurrencyLabel/__docs__/CurrencyLabel.mdx +4 -5
- package/cjs/components/DateInput/__docs__/DateInput.mdx +4 -7
- package/cjs/components/DatePicker/__docs__/DatePicker.mdx +8 -9
- package/cjs/components/DateRangePicker/DateRangePicker.d.ts +2 -0
- package/cjs/components/DateRangePicker/DateRangePicker.js +42 -8
- package/cjs/components/DateRangePicker/DateRangePicker.js.map +1 -1
- package/cjs/components/DateRangePicker/DateRangePickerInput.js +4 -8
- package/cjs/components/DateRangePicker/DateRangePickerInput.js.map +1 -1
- package/cjs/components/DateRangePicker/__docs__/DateRangePicker.mdx +8 -12
- package/cjs/components/DateRangePicker/helpers/validateDateRangePicker.js +17 -17
- package/cjs/components/DateRangePicker/helpers/validateDateRangePicker.js.map +1 -1
- package/cjs/components/Dropdown/__docs__/Dropdown.mdx +8 -9
- package/cjs/components/DropdownMenu/DropdownMenu.md +8 -8
- package/cjs/components/DropdownMenu/__docs__/DropdownMenu.mdx +8 -9
- package/cjs/components/FileUploader/FileUploader.js +14 -2
- package/cjs/components/FileUploader/FileUploader.js.map +1 -1
- package/cjs/components/FileUploader/__docs__/FileUploader.mdx +8 -9
- package/cjs/components/FxInput/__docs__/FxInput.mdx +8 -9
- package/cjs/components/Gapped/__docs__/Gapped.mdx +4 -5
- package/cjs/components/GlobalLoader/__docs__/GlobalLoader.mdx +8 -9
- package/cjs/components/Group/Group.md +4 -4
- package/cjs/components/Group/__docs__/Group.mdx +4 -5
- package/cjs/components/Hint/__docs__/Hint.mdx +8 -9
- package/cjs/components/Input/Input.md +4 -5
- package/cjs/components/Input/__docs__/Input.mdx +8 -9
- package/cjs/components/Kebab/Kebab.md +32 -32
- package/cjs/components/Kebab/__docs__/Kebab.mdx +8 -9
- package/cjs/components/Link/__docs__/Link.mdx +8 -9
- package/cjs/components/Loader/__docs__/Loader.mdx +4 -7
- package/cjs/components/MaskedInput/__docs__/MaskedInput.mdx +8 -9
- package/cjs/components/MenuFooter/__docs__/MenuFooter.mdx +4 -5
- package/cjs/components/MenuHeader/__docs__/MenuHeader.mdx +4 -5
- package/cjs/components/MenuItem/MenuItem.md +6 -6
- package/cjs/components/MenuItem/__docs__/MenuItem.mdx +4 -5
- package/cjs/components/MenuSeparator/__docs__/MenuSeparator.mdx +4 -5
- package/cjs/components/MiniModal/__docs__/MiniModal.mdx +8 -9
- package/cjs/components/Modal/__docs__/Modal.mdx +8 -9
- package/cjs/components/Paging/__docs__/Paging.mdx +8 -9
- package/cjs/components/PasswordInput/__docs__/PasswordInput.mdx +8 -9
- package/cjs/components/Radio/__docs__/Radio.mdx +8 -9
- package/cjs/components/RadioGroup/__docs__/RadioGroup.mdx +8 -9
- package/cjs/components/ResponsiveLayout/__docs__/ResponsiveLayout.mdx +4 -5
- package/cjs/components/ScrollContainer/__docs__/ScrollContainer.mdx +4 -5
- package/cjs/components/Select/Select.md +3 -3
- package/cjs/components/Select/__docs__/Select.mdx +8 -9
- package/cjs/components/SidePage/__docs__/SidePage.mdx +8 -9
- package/cjs/components/SidePage/__docs__/SidePageBody.mdx +1 -0
- package/cjs/components/SingleToast/SingleToast.d.ts +3 -3
- package/cjs/components/SingleToast/SingleToast.js.map +1 -1
- package/cjs/components/SingleToast/__docs__/SingleToast.mdx +8 -9
- package/cjs/components/Spinner/__docs__/Spinner.mdx +8 -9
- package/cjs/components/Sticky/__docs__/Sticky.mdx +4 -5
- package/cjs/components/Switcher/__docs__/Switcher.mdx +8 -9
- package/cjs/components/Tabs/__docs__/Tab.mdx +8 -9
- package/cjs/components/Tabs/__docs__/Tabs.mdx +8 -9
- package/cjs/components/Textarea/__docs__/Textarea.mdx +8 -9
- package/cjs/components/Toast/Toast.d.ts +4 -2
- package/cjs/components/Toast/Toast.js +16 -2
- package/cjs/components/Toast/Toast.js.map +1 -1
- package/cjs/components/Toast/__docs__/Toast.mdx +8 -9
- package/cjs/components/Toggle/__creevey__/Toggle.creevey.mts +6 -4
- package/cjs/components/Toggle/__docs__/Toggle.mdx +8 -9
- package/cjs/components/Token/Token.md +0 -83
- package/cjs/components/Token/__docs__/Token.mdx +8 -9
- package/cjs/components/TokenInput/TokenInput.d.ts +2 -2
- package/cjs/components/TokenInput/TokenInput.js +2 -1
- package/cjs/components/TokenInput/TokenInput.js.map +1 -1
- package/cjs/components/TokenInput/TokenInput.md +2 -33
- package/cjs/components/TokenInput/TokenInputMenu.d.ts +12 -3
- package/cjs/components/TokenInput/TokenInputMenu.js +23 -1
- package/cjs/components/TokenInput/TokenInputMenu.js.map +1 -1
- package/cjs/components/TokenInput/__creevey__/TokenInput.creevey.mts +28 -0
- package/cjs/components/TokenInput/__docs__/TokenInput.mdx +8 -9
- package/cjs/components/Tooltip/Tooltip.md +8 -8
- package/cjs/components/Tooltip/__docs__/Tooltip.mdx +8 -9
- package/cjs/components/TooltipMenu/TooltipMenu.md +12 -12
- package/cjs/components/TooltipMenu/__docs__/TooltipMenu.mdx +4 -5
- package/cjs/internal/CustomComboBox/ComboBoxView.js +2 -1
- package/cjs/internal/CustomComboBox/ComboBoxView.js.map +1 -1
- package/cjs/internal/Popup/Popup.d.ts +2 -1
- package/cjs/internal/Popup/Popup.js +6 -3
- package/cjs/internal/Popup/Popup.js.map +1 -1
- package/cjs/internal/ThemePlayground/Playground.js +16 -16
- package/cjs/internal/ThemePlayground/Playground.js.map +1 -1
- package/cjs/internal/ThemePlayground/SizesGroup.js +4 -4
- package/cjs/internal/ThemePlayground/SizesGroup.js.map +1 -1
- package/cjs/internal/ThemePlayground/VariableValue.js +4 -4
- package/cjs/internal/ThemePlayground/VariableValue.js.map +1 -1
- package/cjs/lib/rootNode/getRootNode.js +5 -12
- package/cjs/lib/rootNode/getRootNode.js.map +1 -1
- package/cjs/lib/utils.d.ts +1 -0
- package/cjs/lib/utils.js +5 -1
- package/cjs/lib/utils.js.map +1 -1
- package/components/Autocomplete/__docs__/Autocomplete.mdx +5 -5
- package/components/Button/Button.styles/Button.styles.js +1 -1
- package/components/Button/Button.styles/Button.styles.js.map +1 -1
- package/components/Button/__docs__/Button.mdx +8 -9
- package/components/Calendar/__docs__/Calendar.mdx +8 -9
- package/components/Calendar/__docs__/CalendarDay.mdx +4 -5
- package/components/Center/__docs__/Center.mdx +4 -5
- package/components/Checkbox/__docs__/Checkbox.mdx +8 -9
- package/components/ComboBox/ComboBox.md +2 -2
- package/components/ComboBox/__docs__/ComboBox.mdx +8 -9
- package/components/CurrencyInput/__docs__/CurrencyInput.mdx +8 -9
- package/components/CurrencyLabel/__docs__/CurrencyLabel.mdx +4 -5
- package/components/DateInput/__docs__/DateInput.mdx +4 -7
- package/components/DatePicker/__docs__/DatePicker.mdx +8 -9
- package/components/DateRangePicker/DateRangePicker/DateRangePicker.js +31 -11
- package/components/DateRangePicker/DateRangePicker/DateRangePicker.js.map +1 -1
- package/components/DateRangePicker/DateRangePicker.d.ts +2 -0
- package/components/DateRangePicker/DateRangePickerInput/DateRangePickerInput.js +5 -8
- package/components/DateRangePicker/DateRangePickerInput/DateRangePickerInput.js.map +1 -1
- package/components/DateRangePicker/__docs__/DateRangePicker.mdx +8 -12
- package/components/DateRangePicker/helpers/validateDateRangePicker/validateDateRangePicker.js +16 -15
- package/components/DateRangePicker/helpers/validateDateRangePicker/validateDateRangePicker.js.map +1 -1
- package/components/Dropdown/__docs__/Dropdown.mdx +8 -9
- package/components/DropdownMenu/DropdownMenu.md +8 -8
- package/components/DropdownMenu/__docs__/DropdownMenu.mdx +8 -9
- package/components/FileUploader/FileUploader/FileUploader.js +7 -2
- package/components/FileUploader/FileUploader/FileUploader.js.map +1 -1
- package/components/FileUploader/__docs__/FileUploader.mdx +8 -9
- package/components/FxInput/__docs__/FxInput.mdx +8 -9
- package/components/Gapped/__docs__/Gapped.mdx +4 -5
- package/components/GlobalLoader/__docs__/GlobalLoader.mdx +8 -9
- package/components/Group/Group.md +4 -4
- package/components/Group/__docs__/Group.mdx +4 -5
- package/components/Hint/__docs__/Hint.mdx +8 -9
- package/components/Input/Input.md +4 -5
- package/components/Input/__docs__/Input.mdx +8 -9
- package/components/Kebab/Kebab.md +32 -32
- package/components/Kebab/__docs__/Kebab.mdx +8 -9
- package/components/Link/__docs__/Link.mdx +8 -9
- package/components/Loader/__docs__/Loader.mdx +4 -7
- package/components/MaskedInput/__docs__/MaskedInput.mdx +8 -9
- package/components/MenuFooter/__docs__/MenuFooter.mdx +4 -5
- package/components/MenuHeader/__docs__/MenuHeader.mdx +4 -5
- package/components/MenuItem/MenuItem.md +6 -6
- package/components/MenuItem/__docs__/MenuItem.mdx +4 -5
- package/components/MenuSeparator/__docs__/MenuSeparator.mdx +4 -5
- package/components/MiniModal/__docs__/MiniModal.mdx +8 -9
- package/components/Modal/__docs__/Modal.mdx +8 -9
- package/components/Paging/__docs__/Paging.mdx +8 -9
- package/components/PasswordInput/__docs__/PasswordInput.mdx +8 -9
- package/components/Radio/__docs__/Radio.mdx +8 -9
- package/components/RadioGroup/__docs__/RadioGroup.mdx +8 -9
- package/components/ResponsiveLayout/__docs__/ResponsiveLayout.mdx +4 -5
- package/components/ScrollContainer/__docs__/ScrollContainer.mdx +4 -5
- package/components/Select/Select.md +3 -3
- package/components/Select/__docs__/Select.mdx +8 -9
- package/components/SidePage/__docs__/SidePage.mdx +8 -9
- package/components/SidePage/__docs__/SidePageBody.mdx +1 -0
- package/components/SingleToast/SingleToast/SingleToast.js.map +1 -1
- package/components/SingleToast/SingleToast.d.ts +3 -3
- package/components/SingleToast/__docs__/SingleToast.mdx +8 -9
- package/components/Spinner/__docs__/Spinner.mdx +8 -9
- package/components/Sticky/__docs__/Sticky.mdx +4 -5
- package/components/Switcher/__docs__/Switcher.mdx +8 -9
- package/components/Tabs/__docs__/Tab.mdx +8 -9
- package/components/Tabs/__docs__/Tabs.mdx +8 -9
- package/components/Textarea/__docs__/Textarea.mdx +8 -9
- package/components/Toast/Toast/Toast.js +6 -8
- package/components/Toast/Toast/Toast.js.map +1 -1
- package/components/Toast/Toast.d.ts +4 -2
- package/components/Toast/__docs__/Toast.mdx +8 -9
- package/components/Toggle/__creevey__/Toggle.creevey.mts +6 -4
- package/components/Toggle/__docs__/Toggle.mdx +8 -9
- package/components/Token/Token.md +0 -83
- package/components/Token/__docs__/Token.mdx +8 -9
- package/components/TokenInput/TokenInput/TokenInput.js +2 -1
- package/components/TokenInput/TokenInput/TokenInput.js.map +1 -1
- package/components/TokenInput/TokenInput.d.ts +2 -2
- package/components/TokenInput/TokenInput.md +2 -33
- package/components/TokenInput/TokenInputMenu/TokenInputMenu.js +16 -6
- package/components/TokenInput/TokenInputMenu/TokenInputMenu.js.map +1 -1
- package/components/TokenInput/TokenInputMenu.d.ts +12 -3
- package/components/TokenInput/__creevey__/TokenInput.creevey.mts +28 -0
- package/components/TokenInput/__docs__/TokenInput.mdx +8 -9
- package/components/Tooltip/Tooltip.md +8 -8
- package/components/Tooltip/__docs__/Tooltip.mdx +8 -9
- package/components/TooltipMenu/TooltipMenu.md +12 -12
- package/components/TooltipMenu/__docs__/TooltipMenu.mdx +4 -5
- package/internal/CustomComboBox/ComboBoxView/ComboBoxView.js +2 -0
- package/internal/CustomComboBox/ComboBoxView/ComboBoxView.js.map +1 -1
- package/internal/Popup/Popup/Popup.js +9 -5
- package/internal/Popup/Popup/Popup.js.map +1 -1
- package/internal/Popup/Popup.d.ts +2 -1
- package/internal/ThemePlayground/Playground/Playground.js +13 -13
- package/internal/ThemePlayground/Playground/Playground.js.map +1 -1
- package/internal/ThemePlayground/SizesGroup/SizesGroup.js +4 -4
- package/internal/ThemePlayground/SizesGroup/SizesGroup.js.map +1 -1
- package/internal/ThemePlayground/VariableValue/VariableValue.js +4 -4
- package/internal/ThemePlayground/VariableValue/VariableValue.js.map +1 -1
- package/lib/rootNode/getRootNode/getRootNode.js +5 -12
- package/lib/rootNode/getRootNode/getRootNode.js.map +1 -1
- package/lib/utils/utils.js +3 -0
- package/lib/utils/utils.js.map +1 -1
- package/lib/utils.d.ts +1 -0
- package/package.json +2 -3
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as ModalStories from './Modal.docs.stories.tsx';
|
|
2
2
|
import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={ModalStories} />
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<Header
|
|
10
|
+
component="Modal"
|
|
11
|
+
guides="https://guides.kontur.ru/components/popup-elements/modal/"
|
|
12
|
+
figma="https://www.figma.com/file/87ScqxPzJpF9DcVBNYWOjM/%E2%9A%A1-Kontur-UI-Modern-Layout?node-id=230%3A11142"
|
|
13
|
+
/>
|
|
12
14
|
|
|
13
15
|
<Description />
|
|
14
16
|
|
|
@@ -18,10 +20,7 @@ import { Meta } from '../../../.storybook/Meta';
|
|
|
18
20
|
|
|
19
21
|
## Пропы
|
|
20
22
|
|
|
21
|
-
<
|
|
22
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
23
|
-
<ArgTypes />
|
|
24
|
-
</details>
|
|
23
|
+
<PropsTable />
|
|
25
24
|
|
|
26
25
|
## Примеры использования
|
|
27
26
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as PagingStories from './Paging.docs.stories.tsx';
|
|
2
2
|
import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={PagingStories} />
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<Header
|
|
10
|
+
component="Paging"
|
|
11
|
+
guides="https://guides.kontur.ru/components/navigation/paging/"
|
|
12
|
+
figma="https://www.figma.com/file/87ScqxPzJpF9DcVBNYWOjM/%E2%9A%A1-Kontur-UI-Modern-Layout?node-id=281%3A18146"
|
|
13
|
+
/>
|
|
12
14
|
|
|
13
15
|
<Description />
|
|
14
16
|
|
|
@@ -18,10 +20,7 @@ import { Meta } from '../../../.storybook/Meta';
|
|
|
18
20
|
|
|
19
21
|
## Пропы
|
|
20
22
|
|
|
21
|
-
<
|
|
22
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
23
|
-
<ArgTypes />
|
|
24
|
-
</details>
|
|
23
|
+
<PropsTable />
|
|
25
24
|
|
|
26
25
|
## Примеры использования
|
|
27
26
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as PasswordInputStories from './PasswordInput.docs.stories.tsx';
|
|
2
2
|
import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={PasswordInputStories} />
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<Header
|
|
10
|
+
component="PasswordInput"
|
|
11
|
+
guides="https://guides.kontur.ru/components/input-fields/password/"
|
|
12
|
+
figma="https://www.figma.com/file/87ScqxPzJpF9DcVBNYWOjM/%E2%9A%A1-Kontur-UI-Modern-Layout?node-id=203%3A1602"
|
|
13
|
+
/>
|
|
12
14
|
|
|
13
15
|
<Description />
|
|
14
16
|
|
|
@@ -18,10 +20,7 @@ import { Meta } from '../../../.storybook/Meta';
|
|
|
18
20
|
|
|
19
21
|
## Пропы
|
|
20
22
|
|
|
21
|
-
<
|
|
22
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
23
|
-
<ArgTypes />
|
|
24
|
-
</details>
|
|
23
|
+
<PropsTable />
|
|
25
24
|
|
|
26
25
|
## Примеры использования
|
|
27
26
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as RadioStories from './Radio.docs.stories.tsx';
|
|
2
2
|
import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={RadioStories} />
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<Header
|
|
10
|
+
component="Radio"
|
|
11
|
+
guides="https://guides.kontur.ru/components/selection-elements/radio/"
|
|
12
|
+
figma="https://www.figma.com/file/87ScqxPzJpF9DcVBNYWOjM/%E2%9A%A1-Kontur-UI-Modern-Layout?node-id=203%3A2669"
|
|
13
|
+
/>
|
|
12
14
|
|
|
13
15
|
<Description />
|
|
14
16
|
|
|
@@ -18,10 +20,7 @@ import { Meta } from '../../../.storybook/Meta';
|
|
|
18
20
|
|
|
19
21
|
## Пропы
|
|
20
22
|
|
|
21
|
-
<
|
|
22
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
23
|
-
<ArgTypes />
|
|
24
|
-
</details>
|
|
23
|
+
<PropsTable />
|
|
25
24
|
|
|
26
25
|
## Примеры использования
|
|
27
26
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as RadioGroupStories from './RadioGroup.docs.stories.tsx';
|
|
2
2
|
import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={RadioGroupStories} />
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<Header
|
|
10
|
+
component="RadioGroup"
|
|
11
|
+
guides="https://guides.kontur.ru/components/selection-elements/radio/"
|
|
12
|
+
figma="https://www.figma.com/file/87ScqxPzJpF9DcVBNYWOjM/%E2%9A%A1-Kontur-UI-Modern-Layout?node-id=203%3A2669"
|
|
13
|
+
/>
|
|
12
14
|
|
|
13
15
|
<Description />
|
|
14
16
|
|
|
@@ -18,10 +20,7 @@ import { Meta } from '../../../.storybook/Meta';
|
|
|
18
20
|
|
|
19
21
|
## Пропы
|
|
20
22
|
|
|
21
|
-
<
|
|
22
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
23
|
-
<ArgTypes />
|
|
24
|
-
</details>
|
|
23
|
+
<PropsTable />
|
|
25
24
|
|
|
26
25
|
## Примеры использования
|
|
27
26
|
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import * as ResponsiveLayoutStories from './ResponsiveLayout.docs.stories.tsx';
|
|
2
2
|
import { ArgTypes, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={ResponsiveLayoutStories} />
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
<Header component="ResponsiveLayout" />
|
|
8
10
|
|
|
9
11
|
<Description />
|
|
10
12
|
|
|
11
13
|
## Пропы
|
|
12
14
|
|
|
13
|
-
<
|
|
14
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
15
|
-
<ArgTypes />
|
|
16
|
-
</details>
|
|
15
|
+
<PropsTable />
|
|
17
16
|
|
|
18
17
|
## Примеры использования
|
|
19
18
|
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as ScrollContainerStories from './ScrollContainer.docs.stories.tsx';
|
|
2
2
|
import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={ScrollContainerStories} />
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
<Header component="ScrollContainer" />
|
|
8
10
|
|
|
9
11
|
<Description />
|
|
10
12
|
|
|
@@ -14,10 +16,7 @@ import { Meta } from '../../../.storybook/Meta';
|
|
|
14
16
|
|
|
15
17
|
## Пропы
|
|
16
18
|
|
|
17
|
-
<
|
|
18
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
19
|
-
<ArgTypes />
|
|
20
|
-
</details>
|
|
19
|
+
<PropsTable />
|
|
21
20
|
|
|
22
21
|
## Примеры использования
|
|
23
22
|
|
|
@@ -49,8 +49,8 @@ const items = ['One', 'Two', 'Three', Select.SEP, 'Four'];
|
|
|
49
49
|
### Пример использования пропа `_renderButton`:
|
|
50
50
|
|
|
51
51
|
```jsx harmony
|
|
52
|
-
import {Link} from '@skbkontur/react-ui';
|
|
53
|
-
import
|
|
52
|
+
import { Link } from '@skbkontur/react-ui';
|
|
53
|
+
import { People3Icon16Regular } from '@skbkontur/icons/icons/People3Icon/People3Icon16Regular';
|
|
54
54
|
|
|
55
55
|
const [value, setValue] = React.useState();
|
|
56
56
|
|
|
@@ -60,7 +60,7 @@ const items = [Select.staticElement(() => <Select.Item>Not
|
|
|
60
60
|
const renderLinkButton = params => {
|
|
61
61
|
const linkProps = {
|
|
62
62
|
disabled: params.disabled,
|
|
63
|
-
icon: <
|
|
63
|
+
icon: <People3Icon16Regular />,
|
|
64
64
|
_button: true,
|
|
65
65
|
_buttonOpened: params.opened,
|
|
66
66
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as SelectStories from './Select.docs.stories.tsx';
|
|
2
2
|
import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={SelectStories} />
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<Header
|
|
10
|
+
component="Select"
|
|
11
|
+
guides="https://guides.kontur.ru/components/selection-elements/select/"
|
|
12
|
+
figma="https://www.figma.com/file/87ScqxPzJpF9DcVBNYWOjM/%E2%9A%A1-Kontur-UI-Modern-Layout?node-id=203%3A2514"
|
|
13
|
+
/>
|
|
12
14
|
|
|
13
15
|
<Description />
|
|
14
16
|
|
|
@@ -18,10 +20,7 @@ import { Meta } from '../../../.storybook/Meta';
|
|
|
18
20
|
|
|
19
21
|
## Пропы
|
|
20
22
|
|
|
21
|
-
<
|
|
22
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
23
|
-
<ArgTypes />
|
|
24
|
-
</details>
|
|
23
|
+
<PropsTable />
|
|
25
24
|
|
|
26
25
|
## Примеры использования
|
|
27
26
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as SidePageStories from './SidePage.docs.stories.tsx';
|
|
2
2
|
import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={SidePageStories} />
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<Header
|
|
10
|
+
component="SidePage"
|
|
11
|
+
guides="https://guides.kontur.ru/components/popup-elements/sidepage/"
|
|
12
|
+
figma="https://www.figma.com/file/87ScqxPzJpF9DcVBNYWOjM/%E2%9A%A1-Kontur-UI-Modern-Layout?node-id=230%3A11142"
|
|
13
|
+
/>
|
|
12
14
|
|
|
13
15
|
<Description />
|
|
14
16
|
|
|
@@ -18,10 +20,7 @@ import { Meta } from '../../../.storybook/Meta';
|
|
|
18
20
|
|
|
19
21
|
## Пропы
|
|
20
22
|
|
|
21
|
-
<
|
|
22
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
23
|
-
<ArgTypes />
|
|
24
|
-
</details>
|
|
23
|
+
<PropsTable />
|
|
25
24
|
|
|
26
25
|
## Примеры использования
|
|
27
26
|
|
|
@@ -3,6 +3,7 @@ import { ArgTypes } from '@storybook/blocks';
|
|
|
3
3
|
import * as SidePageBodyStories from '../__docs__/SidePageBody.docs.stories.tsx';
|
|
4
4
|
|
|
5
5
|
import { Meta } from '../../../.storybook/Meta';
|
|
6
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
6
7
|
|
|
7
8
|
<Meta of={SidePageBodyStories} />
|
|
8
9
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ReactDOM","Toast","SingleToast","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","concat","render","createElement","_extends","ref","props","_inheritsLoose","Component","_SingleToast","__KONTUR_REACT_UI__","displayName","createRef","push","_SingleToast$ref$curr","close","_len2","_key2","current","version","search","flushSync","_SingleToast$ref$curr2","_SingleToast$ref$curr3"],"sources":["SingleToast.tsx"],"sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\n\nimport type { ToastProps } from '../Toast/Toast';\nimport { Toast } from '../Toast/Toast';\n\n/**\n * `SingleToast` — это короткое немодальное уведомление, которое сообщает пользователю о результате выполнения его команды.\n * Результат может быть положительным, отрицательным или нейтральным.\n *\n * Позволяет вызывать тосты с помощью статических методов.\n * В отличие от статических методов из компонента Toast их можно кастомизировать и они работают с `React@18`.\n */\nexport class SingleToast extends React.Component<ToastProps> {\n public static __KONTUR_REACT_UI__ = 'SingleToast';\n public static displayName = 'SingleToast';\n\n public static ref = React.createRef<Toast>();\n public static push:
|
|
1
|
+
{"version":3,"names":["React","ReactDOM","Toast","SingleToast","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","concat","render","createElement","_extends","ref","props","_inheritsLoose","Component","_SingleToast","__KONTUR_REACT_UI__","displayName","createRef","push","_SingleToast$ref$curr","close","_len2","_key2","current","version","search","flushSync","_SingleToast$ref$curr2","_SingleToast$ref$curr3"],"sources":["SingleToast.tsx"],"sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\n\nimport type { ToastClose, ToastProps, ToastPush } from '../Toast/Toast';\nimport { Toast } from '../Toast/Toast';\n\n/**\n * `SingleToast` — это короткое немодальное уведомление, которое сообщает пользователю о результате выполнения его команды.\n * Результат может быть положительным, отрицательным или нейтральным.\n *\n * Позволяет вызывать тосты с помощью статических методов.\n * В отличие от статических методов из компонента Toast их можно кастомизировать и они работают с `React@18`.\n */\nexport class SingleToast extends React.Component<ToastProps> {\n public static __KONTUR_REACT_UI__ = 'SingleToast';\n public static displayName = 'SingleToast';\n\n public static ref = React.createRef<Toast>();\n public static push: ToastPush = (...args) => {\n SingleToast.close();\n SingleToast.ref.current?.push(...args);\n };\n public static close: ToastClose = () => {\n if (React.version.search('18') === 0) {\n ReactDOM.flushSync(() => SingleToast.ref.current?.close());\n } else {\n SingleToast.ref.current?.close();\n }\n };\n render = () => {\n return <Toast ref={SingleToast.ref} {...this.props} />;\n };\n}\n"],"mappings":"iJAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,WAAW;;;AAGhC,SAASC,KAAK,QAAQ,gBAAgB;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAaC,WAAW,0BAAAC,gBAAA,YAAAD,YAAA,OAAAE,KAAA,UAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,KAAAF,IAAA,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA,GAAAN,KAAA,GAAAD,gBAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,gBAAA,SAAAU,MAAA,CAAAL,IAAA,WAAAJ,KAAA;;;;;;;;;;;;;;;;IAgBtBU,MAAM,GAAG,YAAM;MACb,oBAAOf,KAAA,CAAAgB,aAAA,CAACd,KAAK,EAAAe,QAAA,GAACC,GAAG,EAAEf,WAAW,CAACe,GAAI,IAAKb,KAAA,CAAKc,KAAK,CAAG,CAAC;IACxD,CAAC,QAAAd,KAAA,EAAAe,cAAA,CAAAjB,WAAA,EAAAC,gBAAA,SAAAD,WAAA,GAlB8BH,KAAK,CAACqB,SAAS,EAmB/CC,YAAA,GAnBYnB,WAAW,CAAXA,WAAW,CACRoB,mBAAmB,GAAG,aAAa,CADtCpB,WAAW,CAERqB,WAAW,GAAG,aAAa,CAF9BrB,WAAW,CAIRe,GAAG,gBAAGlB,KAAK,CAACyB,SAAS,CAAQ,CAAC,CAJjCtB,WAAW,CAKRuB,IAAI,GAAc,YAAa,KAAAC,qBAAA,CAC3CxB,YAAW,CAACyB,KAAK,CAAC,CAAC,CAAC,SAAAC,KAAA,GAAAtB,SAAA,CAAAC,MAAA,EADcC,IAAI,OAAAC,KAAA,CAAAmB,KAAA,GAAAC,KAAA,MAAAA,KAAA,GAAAD,KAAA,EAAAC,KAAA,KAAJrB,IAAI,CAAAqB,KAAA,IAAAvB,SAAA,CAAAuB,KAAA,GAEtC,CAAAH,qBAAA,GAAAxB,YAAW,CAACe,GAAG,CAACa,OAAO,aAAvBJ,qBAAA,CAAyBD,IAAI,CAAAb,KAAA,CAAAc,qBAAA,EAAIlB,IAAI,CAAC,CACxC,CAAC,CARUN,WAAW,CASRyB,KAAK,GAAe,YAAM,CACtC,IAAI5B,KAAK,CAACgC,OAAO,CAACC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CACpChC,QAAQ,CAACiC,SAAS,CAAC,iBAAAC,sBAAA,SAAAA,sBAAA,GAAMhC,YAAW,CAACe,GAAG,CAACa,OAAO,qBAAvBI,sBAAA,CAAyBP,KAAK,CAAC,CAAC,GAAC,CAC5D,CAAC,MAAM,KAAAQ,sBAAA,CACL,CAAAA,sBAAA,GAAAjC,YAAW,CAACe,GAAG,CAACa,OAAO,aAAvBK,sBAAA,CAAyBR,KAAK,CAAC,CAAC,CAClC,CACF,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ToastProps } from '../Toast/Toast';
|
|
2
|
+
import type { ToastClose, ToastProps, ToastPush } from '../Toast/Toast';
|
|
3
3
|
import { Toast } from '../Toast/Toast';
|
|
4
4
|
/**
|
|
5
5
|
* `SingleToast` — это короткое немодальное уведомление, которое сообщает пользователю о результате выполнения его команды.
|
|
@@ -12,7 +12,7 @@ export declare class SingleToast extends React.Component<ToastProps> {
|
|
|
12
12
|
static __KONTUR_REACT_UI__: string;
|
|
13
13
|
static displayName: string;
|
|
14
14
|
static ref: React.RefObject<Toast>;
|
|
15
|
-
static push:
|
|
16
|
-
static close:
|
|
15
|
+
static push: ToastPush;
|
|
16
|
+
static close: ToastClose;
|
|
17
17
|
render: () => React.JSX.Element;
|
|
18
18
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as SingleToastStories from './SingleToast.docs.stories.tsx';
|
|
2
2
|
import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={SingleToastStories} />
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<Header
|
|
10
|
+
component="SingleToast"
|
|
11
|
+
guides="https://guides.kontur.ru/components/popup-elements/toast/"
|
|
12
|
+
figma="https://www.figma.com/file/87ScqxPzJpF9DcVBNYWOjM/%E2%9A%A1-Kontur-UI-Modern-Layout?node-id=230%3A5203"
|
|
13
|
+
/>
|
|
12
14
|
|
|
13
15
|
<Description />
|
|
14
16
|
|
|
@@ -18,10 +20,7 @@ import { Meta } from '../../../.storybook/Meta';
|
|
|
18
20
|
|
|
19
21
|
## Пропы
|
|
20
22
|
|
|
21
|
-
<
|
|
22
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
23
|
-
<ArgTypes />
|
|
24
|
-
</details>
|
|
23
|
+
<PropsTable />
|
|
25
24
|
|
|
26
25
|
## Примеры использования
|
|
27
26
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as SpinnerStories from './Spinner.docs.stories.tsx';
|
|
2
2
|
import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={SpinnerStories} />
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<Header
|
|
10
|
+
component="Spinner"
|
|
11
|
+
guides="https://guides.kontur.ru/components/progress-indicators/spinner/"
|
|
12
|
+
figma="https://www.figma.com/file/87ScqxPzJpF9DcVBNYWOjM/%E2%9A%A1-Kontur-UI-Modern-Layout?node-id=396%3A15631"
|
|
13
|
+
/>
|
|
12
14
|
|
|
13
15
|
<Description />
|
|
14
16
|
|
|
@@ -18,10 +20,7 @@ import { Meta } from '../../../.storybook/Meta';
|
|
|
18
20
|
|
|
19
21
|
## Пропы
|
|
20
22
|
|
|
21
|
-
<
|
|
22
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
23
|
-
<ArgTypes />
|
|
24
|
-
</details>
|
|
23
|
+
<PropsTable />
|
|
25
24
|
|
|
26
25
|
## Примеры использования
|
|
27
26
|
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as StickyStories from './Sticky.docs.stories.tsx';
|
|
2
2
|
import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={StickyStories} />
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
<Header component="Sticky" />
|
|
8
10
|
|
|
9
11
|
<Description />
|
|
10
12
|
|
|
@@ -14,10 +16,7 @@ import { Meta } from '../../../.storybook/Meta';
|
|
|
14
16
|
|
|
15
17
|
## Пропы
|
|
16
18
|
|
|
17
|
-
<
|
|
18
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
19
|
-
<ArgTypes />
|
|
20
|
-
</details>
|
|
19
|
+
<PropsTable />
|
|
21
20
|
|
|
22
21
|
## Примеры использования
|
|
23
22
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as SwitcherStories from './Switcher.docs.stories.tsx';
|
|
2
2
|
import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={SwitcherStories} />
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<Header
|
|
10
|
+
component="Switcher"
|
|
11
|
+
guides="https://guides.kontur.ru/components/selection-elements/switcher/"
|
|
12
|
+
figma="https://www.figma.com/file/87ScqxPzJpF9DcVBNYWOjM/%E2%9A%A1-Kontur-UI-Modern-Layout?node-id=281%3A17973"
|
|
13
|
+
/>
|
|
12
14
|
|
|
13
15
|
<Description />
|
|
14
16
|
|
|
@@ -18,10 +20,7 @@ import { Meta } from '../../../.storybook/Meta';
|
|
|
18
20
|
|
|
19
21
|
## Пропы
|
|
20
22
|
|
|
21
|
-
<
|
|
22
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
23
|
-
<ArgTypes />
|
|
24
|
-
</details>
|
|
23
|
+
<PropsTable />
|
|
25
24
|
|
|
26
25
|
## Примеры использования
|
|
27
26
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as TabStories from './Tab.docs.stories.tsx';
|
|
2
2
|
import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={TabStories} />
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<Header
|
|
10
|
+
component="Tab"
|
|
11
|
+
guides="https://guides.kontur.ru/components/navigation/tabs/"
|
|
12
|
+
figma="https://www.figma.com/file/87ScqxPzJpF9DcVBNYWOjM/%E2%9A%A1-Kontur-UI-Modern-Layout?node-id=281%3A17620"
|
|
13
|
+
/>
|
|
12
14
|
|
|
13
15
|
<Description />
|
|
14
16
|
|
|
@@ -18,10 +20,7 @@ import { Meta } from '../../../.storybook/Meta';
|
|
|
18
20
|
|
|
19
21
|
## Пропы
|
|
20
22
|
|
|
21
|
-
<
|
|
22
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
23
|
-
<ArgTypes />
|
|
24
|
-
</details>
|
|
23
|
+
<PropsTable />
|
|
25
24
|
|
|
26
25
|
## Примеры использования
|
|
27
26
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as TabsStories from './Tabs.docs.stories.tsx';
|
|
2
2
|
import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={TabsStories} />
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<Header
|
|
10
|
+
component="Tabs"
|
|
11
|
+
guides="https://guides.kontur.ru/components/navigation/tabs/"
|
|
12
|
+
figma="https://www.figma.com/file/87ScqxPzJpF9DcVBNYWOjM/%E2%9A%A1-Kontur-UI-Modern-Layout?node-id=281%3A17620"
|
|
13
|
+
/>
|
|
12
14
|
|
|
13
15
|
<Description />
|
|
14
16
|
|
|
@@ -18,10 +20,7 @@ import { Meta } from '../../../.storybook/Meta';
|
|
|
18
20
|
|
|
19
21
|
## Пропы
|
|
20
22
|
|
|
21
|
-
<
|
|
22
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
23
|
-
<ArgTypes />
|
|
24
|
-
</details>
|
|
23
|
+
<PropsTable />
|
|
25
24
|
|
|
26
25
|
## Примеры использования
|
|
27
26
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as TextareaStories from './Textarea.docs.stories.tsx';
|
|
2
2
|
import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
|
|
3
3
|
import { Meta } from '../../../.storybook/Meta';
|
|
4
|
+
import { Header } from '../../../.storybook/Header';
|
|
5
|
+
import { PropsTable } from '../../../.storybook/PropsTable';
|
|
4
6
|
|
|
5
7
|
<Meta of={TextareaStories} />
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<Header
|
|
10
|
+
component="Textarea"
|
|
11
|
+
guides="https://guides.kontur.ru/components/input-fields/textarea/"
|
|
12
|
+
figma="https://www.figma.com/file/87ScqxPzJpF9DcVBNYWOjM/%E2%9A%A1-Kontur-UI-Modern-Layout?node-id=203%3A2333"
|
|
13
|
+
/>
|
|
12
14
|
|
|
13
15
|
<Description />
|
|
14
16
|
|
|
@@ -18,10 +20,7 @@ import { Meta } from '../../../.storybook/Meta';
|
|
|
18
20
|
|
|
19
21
|
## Пропы
|
|
20
22
|
|
|
21
|
-
<
|
|
22
|
-
<summary>Открыть таблицу с пропами</summary>
|
|
23
|
-
<ArgTypes />
|
|
24
|
-
</details>
|
|
23
|
+
<PropsTable />
|
|
25
24
|
|
|
26
25
|
## Примеры использования
|
|
27
26
|
|
|
@@ -75,13 +75,7 @@ export var Toast = rootNode(_class = (_Toast = /*#__PURE__*/function (_React$Com
|
|
|
75
75
|
};
|
|
76
76
|
return _this;
|
|
77
77
|
}
|
|
78
|
-
_inheritsLoose(Toast, _React$Component);
|
|
79
|
-
Toast.push = function push(notification, action, showTime, showCloseIcon) {
|
|
80
|
-
ToastStatic.push(notification, action, showTime, showCloseIcon);
|
|
81
|
-
} /** @deprecated use `close` method in ref or `SingleToast.close` */;
|
|
82
|
-
Toast.close = function close() {
|
|
83
|
-
ToastStatic.close();
|
|
84
|
-
};
|
|
78
|
+
_inheritsLoose(Toast, _React$Component);
|
|
85
79
|
var _proto = Toast.prototype;
|
|
86
80
|
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
87
81
|
this._clearTimer();
|
|
@@ -163,7 +157,11 @@ export var Toast = rootNode(_class = (_Toast = /*#__PURE__*/function (_React$Com
|
|
|
163
157
|
}, toastProps))));
|
|
164
158
|
};
|
|
165
159
|
return Toast;
|
|
166
|
-
}(React.Component), _Toast.__KONTUR_REACT_UI__ = 'Toast', _Toast.displayName = 'Toast', _Toast)
|
|
160
|
+
}(React.Component), _Toast.__KONTUR_REACT_UI__ = 'Toast', _Toast.displayName = 'Toast', _Toast.push = function (notification, action, showTime, showCloseIcon) {
|
|
161
|
+
ToastStatic.push(notification, action, showTime, showCloseIcon);
|
|
162
|
+
}, _Toast.close = function () {
|
|
163
|
+
ToastStatic.close();
|
|
164
|
+
}, _Toast)) || _class;
|
|
167
165
|
function safelyCall(fn) {
|
|
168
166
|
if (fn) {
|
|
169
167
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|