@itcase/ui 1.8.31 → 1.8.33
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/dist/{Avatar_cjs_DRaNGlad.js → Avatar_cjs_kADy_b4o.js} +1 -1
- package/dist/{Avatar_es_Ck1RiTgB.js → Avatar_es_DbGpnL99.js} +1 -1
- package/dist/{Button_cjs_CnBP4mKv.js → Button_cjs_CW6ENTbm.js} +1 -1
- package/dist/{Button_es_WG0yV-rp.js → Button_es_DTUagqgU.js} +1 -1
- package/dist/{ChipsGroup_cjs_BCnPa9xv.js → ChipsGroup_cjs_DdWjvr_S.js} +1 -1
- package/dist/{ChipsGroup_es_1854brF_.js → ChipsGroup_es_CXS0aeon.js} +1 -1
- package/dist/{DatePicker_cjs_Cbv3ffoB.js → DatePicker_cjs_CJl9V32f.js} +11 -11
- package/dist/{DatePicker_es_DGck2HRu.js → DatePicker_es_C2Pi6aB-.js} +12 -12
- package/dist/{DropdownItem_cjs_C3BV7axh.js → DropdownItem_cjs_D-zoX7Ik.js} +1 -1
- package/dist/{DropdownItem_es_VDp5tKZr.js → DropdownItem_es_BMnIhUSe.js} +1 -1
- package/dist/{Input_cjs_BAVggtkk.js → Input_cjs_arr_wxD2.js} +21 -20
- package/dist/{Input_es_CNduH28G.js → Input_es_BW6cZThr.js} +21 -20
- package/dist/{Label_cjs_CqSZcFNk.js → Label_cjs_CZMMdwt5.js} +1 -1
- package/dist/{Label_es_s3M2-dON.js → Label_es_DmDqs4Rc.js} +1 -1
- package/dist/{Tooltip_cjs_BE4fABOp.js → Tooltip_cjs_DinScDnC.js} +4 -2
- package/dist/{Tooltip_es_BPMRrd2L.js → Tooltip_es_B0nm9irO.js} +4 -2
- package/dist/cjs/components/Accordion.js +8 -8
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +5 -5
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell/stories/__mock__.js +4 -4
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice/stories/__mock__.js +68 -8
- package/dist/cjs/components/Choice.js +20 -15
- package/dist/cjs/components/Code.js +46 -58
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/{DadataHintField.js → Dadata.js} +3 -3
- package/dist/cjs/components/DatePeriod.js +6 -6
- package/dist/cjs/components/DatePicker.js +5 -5
- package/dist/cjs/components/Drawer.js +7 -7
- package/dist/cjs/components/Dropdown/stories/__mock__.js +19 -4
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/MenuItem.js +4 -2
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification.js +5 -5
- package/dist/cjs/components/Pagination.js +91 -19
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/ScrollOnDrag/stories/__mock__.js +15 -0
- package/dist/cjs/components/Scrollbar/stories/__mock__.js +7 -0
- package/dist/cjs/components/Search.js +28 -27
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper/stories/__mock__.js +16 -0
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab/stories/__mock__.js +6 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/context/Notifications.js +6 -6
- package/dist/components/Accordion.js +9 -9
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs/stories/__mock__.js +6 -6
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell/stories/__mock__.js +4 -4
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice/stories/__mock__.js +67 -8
- package/dist/components/Choice.js +20 -15
- package/dist/components/Code.js +46 -58
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/{DadataHintField.js → Dadata.js} +3 -3
- package/dist/components/DatePeriod.js +6 -6
- package/dist/components/DatePicker.js +5 -5
- package/dist/components/Drawer.js +8 -8
- package/dist/components/Dropdown/stories/__mock__.js +20 -5
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +4 -2
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification.js +6 -6
- package/dist/components/Pagination.js +93 -21
- package/dist/components/Response.js +2 -2
- package/dist/components/ScrollOnDrag/stories/__mock__.js +13 -0
- package/dist/components/Scrollbar/stories/__mock__.js +5 -0
- package/dist/components/Search.js +29 -28
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper/stories/__mock__.js +14 -0
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab/stories/__mock__.js +7 -2
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/context/Notifications.js +6 -6
- package/dist/css/components/Choice/Choice.css +16 -21
- package/dist/css/components/Choice/css/__item/choice__item.css +0 -9
- package/dist/css/components/Choice/css/__item/choice__item_size.css +4 -1
- package/dist/css/components/Code/Code.css +5 -7
- package/dist/css/components/{DadataHintField/DadataHintField.css → Dadata/Dadata.css} +9 -9
- package/dist/css/components/HTMLContent/HTMLContent.css +85 -18
- package/dist/css/components/Input/Input.css +6 -0
- package/dist/css/components/Search/Search.css +0 -1
- package/dist/css/components/Search/css/search-input/search-input.css +0 -1
- package/dist/css/components/Tab/Tab.css +4 -0
- package/dist/css/styles/border-color/border-color_hover.css +3 -0
- package/dist/stories/CookiesWarningOverview.mdx +1 -1
- package/dist/stories/CookiesWarningPlayground.mdx +1 -1
- package/dist/stories/DadataOverview.mdx +11 -0
- package/dist/stories/DadataPlaygroynd.mdx +11 -0
- package/dist/stories/HTMLContentOverview.mdx +1 -1
- package/dist/stories/HTMLContentPlayground.mdx +1 -1
- package/dist/stories/HeroTitleOverview.mdx +1 -1
- package/dist/stories/HeroTitlePlayground.mdx +1 -1
- package/dist/stories/LinkOverview.mdx +1 -1
- package/dist/stories/LinkPlayground.mdx +1 -1
- package/dist/stories/RangeSliderOverview.mdx +15 -0
- package/dist/stories/RangeSliderPlayground.mdx +10 -0
- package/dist/stories/SVGContentOverview.mdx +1 -1
- package/dist/stories/SVGContentPlayground.mdx +1 -1
- package/dist/stories/ScrollOnDragOverview.mdx +12 -0
- package/dist/stories/ScrollOnDragPlayground.mdx +10 -0
- package/dist/stories/ScrollbarOverview.mdx +15 -0
- package/dist/stories/ScrollbarPlayground.mdx +10 -0
- package/dist/stories/SwiperOverview.mdx +2 -2
- package/dist/stories/SwiperPlayground.mdx +2 -2
- package/dist/stories/TextOverview.mdx +1 -1
- package/dist/stories/TextPlayground.mdx +1 -1
- package/dist/stories/TitleOverview.mdx +1 -1
- package/dist/stories/TitlePlayground.mdx +1 -1
- package/dist/types/components/Cell/stories/__mock__/index.d.ts +0 -2
- package/dist/types/components/Choice/appearance/choiceError.d.ts +7 -0
- package/dist/types/components/Choice/stories/__mock__/index.d.ts +21 -4
- package/dist/types/components/Code/appearance/codeDefault.d.ts +6 -8
- package/dist/types/components/Code/appearance/codeDisabled.d.ts +7 -11
- package/dist/types/components/Code/appearance/codeError.d.ts +1 -0
- package/dist/types/components/Code/appearance/codeRequire.d.ts +7 -15
- package/dist/types/components/Code/appearance/codeSize.d.ts +2 -2
- package/dist/types/components/Code/appearance/codeStyle.d.ts +9 -9
- package/dist/types/components/Code/appearance/codeSuccess.d.ts +8 -7
- package/dist/types/components/Dadata/Dadata.d.ts +3 -0
- package/dist/types/components/{DadataHintField/DadataHintField.interface.d.ts → Dadata/Dadata.interface.d.ts} +1 -1
- package/dist/types/components/Dadata/index.d.ts +1 -0
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +1 -1
- package/dist/types/components/DatePicker/appearance/datePickerStyle.d.ts +1 -1
- package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +5 -5
- package/dist/types/components/Input/appearance/inputDefault.d.ts +2 -2
- package/dist/types/components/Input/appearance/inputDisabled.d.ts +2 -2
- package/dist/types/components/Input/appearance/inputError.d.ts +2 -2
- package/dist/types/components/Input/appearance/inputRequire.d.ts +2 -2
- package/dist/types/components/Input/appearance/inputStyle.d.ts +7 -6
- package/dist/types/components/Input/appearance/inputSuccess.d.ts +2 -2
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +2 -0
- package/dist/types/components/Pagination/appearance/paginationAccent.d.ts +21 -0
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +45 -0
- package/dist/types/components/Pagination/appearance/paginationStyle.d.ts +14 -0
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +4 -12
- package/dist/types/components/ScrollOnDrag/stories/__mock__/index.d.ts +2 -0
- package/dist/types/components/Scrollbar/stories/__mock__/index.d.ts +2 -0
- package/dist/types/components/Search/appearance/searchDefault.d.ts +1 -1
- package/dist/types/components/Search/appearance/searchDisabled.d.ts +1 -1
- package/dist/types/components/Search/appearance/searchError.d.ts +1 -1
- package/dist/types/components/Search/appearance/searchRequire.d.ts +1 -1
- package/dist/types/components/Search/appearance/searchStyle.d.ts +8 -7
- package/dist/types/components/Search/appearance/searchSuccess.d.ts +1 -1
- package/dist/types/components/Swiper/stories/__mock__/index.d.ts +2 -0
- package/package.json +2 -2
- package/dist/stories/Colors.mdx +0 -239
- package/dist/stories/DadataHintFieldOverview.mdx +0 -11
- package/dist/stories/DadataHintFieldPlaygroynd.mdx +0 -11
- package/dist/stories/Elevation.mdx +0 -80
- package/dist/stories/Settings.mdx +0 -3
- package/dist/stories/TypographyAM.mdx +0 -82
- package/dist/stories/TypographyBaikal.mdx +0 -82
- package/dist/types/components/DadataHintField/DadataHintField.d.ts +0 -3
- package/dist/types/components/DadataHintField/index.d.ts +0 -1
|
@@ -2,7 +2,7 @@ declare const inputAppearanceRequire: {
|
|
|
2
2
|
requirePrimary: {
|
|
3
3
|
fill: string;
|
|
4
4
|
borderColor: string;
|
|
5
|
-
|
|
5
|
+
borderColorHover: string;
|
|
6
6
|
textColor: string;
|
|
7
7
|
iconBeforeFill: string;
|
|
8
8
|
iconClearFill: string;
|
|
@@ -11,7 +11,7 @@ declare const inputAppearanceRequire: {
|
|
|
11
11
|
requireSecondary: {
|
|
12
12
|
fill: string;
|
|
13
13
|
borderColor: string;
|
|
14
|
-
|
|
14
|
+
borderColorHover: string;
|
|
15
15
|
iconBeforeFill: string;
|
|
16
16
|
iconClearFill: string;
|
|
17
17
|
placeholderTextColor: string;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
declare const inputAppearanceStyle: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
fill: string;
|
|
5
|
-
borderWidth: string;
|
|
2
|
+
solid: {
|
|
3
|
+
borderColor: string;
|
|
6
4
|
};
|
|
7
5
|
outlined: {
|
|
8
6
|
fill: string;
|
|
9
7
|
};
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
full: {};
|
|
9
|
+
ghost: {
|
|
10
|
+
fill: string;
|
|
11
|
+
borderColor: string;
|
|
12
|
+
borderColorHover: string;
|
|
12
13
|
};
|
|
13
14
|
};
|
|
14
15
|
export { inputAppearanceStyle };
|
|
@@ -2,7 +2,7 @@ declare const inputAppearanceSuccess: {
|
|
|
2
2
|
successPrimary: {
|
|
3
3
|
fill: string;
|
|
4
4
|
borderColor: string;
|
|
5
|
-
|
|
5
|
+
borderColorHover: string;
|
|
6
6
|
textColor: string;
|
|
7
7
|
iconBeforeFill: string;
|
|
8
8
|
iconClearFill: string;
|
|
@@ -11,7 +11,7 @@ declare const inputAppearanceSuccess: {
|
|
|
11
11
|
successSecondary: {
|
|
12
12
|
fill: string;
|
|
13
13
|
borderColor: string;
|
|
14
|
-
|
|
14
|
+
borderColorHover: string;
|
|
15
15
|
iconBeforeFill: string;
|
|
16
16
|
iconClearFill: string;
|
|
17
17
|
placeholderTextColor: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const paginationAppearanceAccent: {
|
|
2
|
+
accent: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
};
|
|
6
|
+
accentPrimary: {
|
|
7
|
+
fill: string;
|
|
8
|
+
fillHover: string;
|
|
9
|
+
borderColor: string;
|
|
10
|
+
};
|
|
11
|
+
accentSecondary: {
|
|
12
|
+
fill: string;
|
|
13
|
+
fillHover: string;
|
|
14
|
+
labelTextColor: string;
|
|
15
|
+
labelTextColorHover: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
loaderFill: string;
|
|
18
|
+
loaderItemFill: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export { paginationAppearanceAccent };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare const paginationAppearanceSize: {
|
|
2
|
+
sizeL: {
|
|
3
|
+
size: string;
|
|
4
|
+
labelTextSize: string;
|
|
5
|
+
iconAfterFillSize: string;
|
|
6
|
+
iconAfterSize: string;
|
|
7
|
+
iconBeforeFillSize: string;
|
|
8
|
+
iconBeforeSize: string;
|
|
9
|
+
pageCountDescTextSize: string;
|
|
10
|
+
pageCountDropdownItemDividerSize: string;
|
|
11
|
+
pageCountDropdownItemLabelSize: string;
|
|
12
|
+
pageCountDropdownItemSize: string;
|
|
13
|
+
pageCountInputIconFillSize: string;
|
|
14
|
+
pageCountInputTextSize: string;
|
|
15
|
+
};
|
|
16
|
+
sizeM: {
|
|
17
|
+
size: string;
|
|
18
|
+
labelTextSize: string;
|
|
19
|
+
iconAfterFillSize: string;
|
|
20
|
+
iconAfterSize: string;
|
|
21
|
+
iconBeforeFillSize: string;
|
|
22
|
+
iconBeforeSize: string;
|
|
23
|
+
pageCountDescTextSize: string;
|
|
24
|
+
pageCountDropdownItemDividerSize: string;
|
|
25
|
+
pageCountDropdownItemLabelSize: string;
|
|
26
|
+
pageCountDropdownItemSize: string;
|
|
27
|
+
pageCountInputIconFillSize: string;
|
|
28
|
+
pageCountInputTextSize: string;
|
|
29
|
+
};
|
|
30
|
+
sizeS: {
|
|
31
|
+
size: string;
|
|
32
|
+
labelTextSize: string;
|
|
33
|
+
iconAfterFillSize: string;
|
|
34
|
+
iconAfterSize: string;
|
|
35
|
+
iconBeforeFillSize: string;
|
|
36
|
+
iconBeforeSize: string;
|
|
37
|
+
};
|
|
38
|
+
sizeXS: {
|
|
39
|
+
size: string;
|
|
40
|
+
labelTextSize: string;
|
|
41
|
+
beforeSize: string;
|
|
42
|
+
iconAfterFillSize: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export { paginationAppearanceSize };
|
|
@@ -2,17 +2,14 @@ declare const paginationAppearanceSurface: {
|
|
|
2
2
|
surfacePrimary: {
|
|
3
3
|
fill: string;
|
|
4
4
|
fillHover: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
nextLabel: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
nextIcon: any;
|
|
6
|
+
nextIconFillIcon: string;
|
|
8
7
|
pageCountDesc: string;
|
|
9
8
|
pageCountDescTextColor: string;
|
|
10
|
-
pageCountDescTextSize: string;
|
|
11
9
|
pageCountDropdownAlignment: string;
|
|
12
10
|
pageCountDropdownElevation: number;
|
|
13
11
|
pageCountDropdownFill: string;
|
|
14
12
|
pageCountDropdownItemDividerFill: string;
|
|
15
|
-
pageCountDropdownItemDividerSize: string;
|
|
16
13
|
pageCountDropdownItemFill: string;
|
|
17
14
|
pageCountDropdownItemFillActive: string;
|
|
18
15
|
pageCountDropdownItemFillActiveHover: string;
|
|
@@ -22,18 +19,13 @@ declare const paginationAppearanceSurface: {
|
|
|
22
19
|
pageCountDropdownItemLabelColorActive: string;
|
|
23
20
|
pageCountDropdownItemLabelColorActiveHover: string;
|
|
24
21
|
pageCountDropdownItemLabelColorHover: string;
|
|
25
|
-
pageCountDropdownItemLabelSize: string;
|
|
26
|
-
pageCountDropdownItemShowDivider: boolean;
|
|
27
|
-
pageCountDropdownItemSize: string;
|
|
28
22
|
pageCountDropdownItemWidth: string;
|
|
29
23
|
pageCountDropdownShape: string;
|
|
30
24
|
pageCountInputIcon: any;
|
|
31
25
|
pageCountInputIconColor: string;
|
|
32
|
-
pageCountInputIconFillSize: string;
|
|
33
26
|
pageCountInputTextColor: string;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
previousLabel: import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
previousIcon: any;
|
|
28
|
+
previousIconFillIcon: string;
|
|
37
29
|
};
|
|
38
30
|
};
|
|
39
31
|
export { paginationAppearanceSurface };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
declare const searchAppearanceStyle: {
|
|
2
|
-
|
|
2
|
+
solid: {
|
|
3
3
|
borderColor: string;
|
|
4
|
-
|
|
5
|
-
ghost: {
|
|
6
|
-
fill: string;
|
|
7
|
-
borderWidth: string;
|
|
4
|
+
borderColorHover: string;
|
|
8
5
|
};
|
|
9
6
|
outlined: {
|
|
10
7
|
fill: string;
|
|
11
8
|
};
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
full: {
|
|
10
|
+
borderColor: string;
|
|
11
|
+
};
|
|
12
|
+
ghost: {
|
|
13
|
+
fill: string;
|
|
14
|
+
borderColor: string;
|
|
14
15
|
};
|
|
15
16
|
};
|
|
16
17
|
export { searchAppearanceStyle };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.33",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"dependencies": {
|
|
98
98
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
99
99
|
"@itcase/common": "^1.2.28",
|
|
100
|
-
"@itcase/icons": "^1.1.
|
|
100
|
+
"@itcase/icons": "^1.1.6",
|
|
101
101
|
"@itcase/storybook-config": "^1.1.14",
|
|
102
102
|
"@itcase/tokens-am": "^1.1.9",
|
|
103
103
|
"@itcase/tokens-baikal": "^1.1.9",
|
package/dist/stories/Colors.mdx
DELETED
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
import { Meta, ColorPalette, ColorItem } from '@storybook/blocks'
|
|
2
|
-
|
|
3
|
-
<Meta title="Tokens / Colors" />
|
|
4
|
-
|
|
5
|
-
# Colors
|
|
6
|
-
|
|
7
|
-
<ColorPalette>
|
|
8
|
-
<ColorItem
|
|
9
|
-
title="Accent"
|
|
10
|
-
subtitle="--color-accent"
|
|
11
|
-
colors={{
|
|
12
|
-
Primary: 'hsla(92, 49%, 47%, 1)',
|
|
13
|
-
PrimaryHover: 'hsla(92, 29%, 62%, 1)',
|
|
14
|
-
Active: 'hsla(92, 46%, 40%, 1)',
|
|
15
|
-
Secondary: 'hsla(92, 29%, 62%, 1)',
|
|
16
|
-
Tertiary: 'hsla(93, 53%, 93%, 1)',
|
|
17
|
-
Disabled: 'hsla(93, 45%, 80%, 1)',
|
|
18
|
-
}}
|
|
19
|
-
/>
|
|
20
|
-
<ColorItem
|
|
21
|
-
title="Accent Text"
|
|
22
|
-
subtitle="--color-accent-text"
|
|
23
|
-
colors={{
|
|
24
|
-
Primary: 'hsla(0, 0%, 100%, 1)',
|
|
25
|
-
Secondary: 'hsla(0, 0%, 100%, 1)',
|
|
26
|
-
Disabled: 'hsla(92, 49%, 47%, 1)',
|
|
27
|
-
}}
|
|
28
|
-
/>
|
|
29
|
-
<ColorItem
|
|
30
|
-
title="Accent Item"
|
|
31
|
-
subtitle="--color-accent-item"
|
|
32
|
-
colors={{
|
|
33
|
-
Primary: 'hsla(0, 0%, 100%, 1)',
|
|
34
|
-
Secondary: 'hsla(92, 49%, 47%, 1)',
|
|
35
|
-
}}
|
|
36
|
-
/>
|
|
37
|
-
<ColorItem
|
|
38
|
-
title="Accent Border"
|
|
39
|
-
subtitle="--color-accent-border"
|
|
40
|
-
colors={{
|
|
41
|
-
Primary: 'hsla(92, 49%, 47%, 1)',
|
|
42
|
-
Secondary: 'hsla(92, 29%, 62%, 1)',
|
|
43
|
-
Quaternary: 'hsla(92, 37%, 35%, 1)',
|
|
44
|
-
}}
|
|
45
|
-
/>
|
|
46
|
-
<ColorItem
|
|
47
|
-
title="Primary"
|
|
48
|
-
subtitle="--color-primary"
|
|
49
|
-
colors={{
|
|
50
|
-
Primary: 'hsla(36, 95%, 45%, 1)',
|
|
51
|
-
PrimaryHover: 'hsla(40, 75%, 58%, 1)',
|
|
52
|
-
Active: 'hsla(36, 95%, 40%, 1)',
|
|
53
|
-
Disabled: 'hsla(36, 13%, 80%, 1)',
|
|
54
|
-
}}
|
|
55
|
-
/>
|
|
56
|
-
<ColorItem
|
|
57
|
-
title="Primary Text"
|
|
58
|
-
subtitle="--color-primary-text"
|
|
59
|
-
colors={{
|
|
60
|
-
Primary: 'hsla(0, 0%, 100%, 1)',
|
|
61
|
-
Disabled: 'hsla(36, 60%, 65%, 1)',
|
|
62
|
-
}}
|
|
63
|
-
/>
|
|
64
|
-
<ColorItem
|
|
65
|
-
title="Primary Item"
|
|
66
|
-
subtitle="--color-primary-item"
|
|
67
|
-
colors={{
|
|
68
|
-
Primary: 'hsla(0, 0%, 100%, 1)',
|
|
69
|
-
}}
|
|
70
|
-
/>
|
|
71
|
-
<ColorItem
|
|
72
|
-
title="Secondary"
|
|
73
|
-
subtitle="--color-secondary"
|
|
74
|
-
colors={{
|
|
75
|
-
Primary: 'hsla(349, 96%, 44%, 1)',
|
|
76
|
-
PrimaryHover: 'hsla(349, 100%, 51%, 1)',
|
|
77
|
-
Active: 'hsla(349, 96%, 34%, 1)',
|
|
78
|
-
Disabled: 'hsla(349, 59%, 90%, 1)',
|
|
79
|
-
}}
|
|
80
|
-
/>
|
|
81
|
-
<ColorItem
|
|
82
|
-
title="Secondary Text"
|
|
83
|
-
subtitle="--color-secondary-text"
|
|
84
|
-
colors={{
|
|
85
|
-
Primary: 'hsla(0, 0%, 100%, 1)',
|
|
86
|
-
Secondary: 'hsla(349, 96%, 44%, 1)',
|
|
87
|
-
Disabled: 'hsla(349, 53%, 68%, 1)',
|
|
88
|
-
}}
|
|
89
|
-
/>
|
|
90
|
-
<ColorItem
|
|
91
|
-
title="Secondary Item"
|
|
92
|
-
subtitle="--color-secondary-item"
|
|
93
|
-
colors={{
|
|
94
|
-
Primary: 'hsla(0, 0%, 100%, 1)',
|
|
95
|
-
}}
|
|
96
|
-
/>
|
|
97
|
-
<ColorItem
|
|
98
|
-
title="Surface"
|
|
99
|
-
subtitle="--color-surface"
|
|
100
|
-
colors={{
|
|
101
|
-
Primary: 'hsla(0, 0%, 100%, 1)',
|
|
102
|
-
PrimaryHover: 'hsla(0, 0%, 83%, 1)',
|
|
103
|
-
Secondary: 'hsla(220, 14%, 96%, 1)',
|
|
104
|
-
SecondaryHover: 'hsla(0, 0%, 78%, 1)',
|
|
105
|
-
Accent: 'hsla(92, 54%, 93%, 1)',
|
|
106
|
-
}}
|
|
107
|
-
/>
|
|
108
|
-
<ColorItem
|
|
109
|
-
title="Surface"
|
|
110
|
-
subtitle="--color-surface"
|
|
111
|
-
colors={{
|
|
112
|
-
Tertiary: 'hsla(0, 0%, 85%, 1)',
|
|
113
|
-
TertiaryHover: 'hsla(0, 0%, 73%, 1)',
|
|
114
|
-
Quaternary: 'hsla(0, 0%, 45%, 1)',
|
|
115
|
-
Active: 'hsla(0, 0%, 64%, 1)',
|
|
116
|
-
Disabled: 'hsla(0, 0%, 79%, 1)',
|
|
117
|
-
}}
|
|
118
|
-
/>
|
|
119
|
-
<ColorItem
|
|
120
|
-
title="Surface Text"
|
|
121
|
-
subtitle="--color-surface-text"
|
|
122
|
-
colors={{
|
|
123
|
-
Primary: 'hsla(0, 0%, 9%, 1)',
|
|
124
|
-
Accent: 'hsla(92, 49%, 47%, 1)',
|
|
125
|
-
Secondary: 'hsla(0, 0%, 45%, 1)',
|
|
126
|
-
Tertiary: 'hsla(213, 5%, 45%, 1)',
|
|
127
|
-
Quaternary: 'hsla(0, 0%, 75%, 1)',
|
|
128
|
-
Disabled: 'hsla(0, 0%, 47%, 1)',
|
|
129
|
-
}}
|
|
130
|
-
/>
|
|
131
|
-
<ColorItem
|
|
132
|
-
title="Surface Item"
|
|
133
|
-
subtitle="--color-surface-item"
|
|
134
|
-
colors={{
|
|
135
|
-
Primary: 'hsla(35, 71%, 13%, 1)',
|
|
136
|
-
Secondary: 'hsla(0, 0%, 93%, 1)',
|
|
137
|
-
Tertiary: 'hsla(0, 0%, 85%, 1)',
|
|
138
|
-
Accent: 'hsla(92, 49%, 47%, 1)',
|
|
139
|
-
Disabled: 'hsla(0, 0%, 61%, 1)',
|
|
140
|
-
}}
|
|
141
|
-
/>
|
|
142
|
-
<ColorItem
|
|
143
|
-
title="Surface Border"
|
|
144
|
-
subtitle="--color-surface-border"
|
|
145
|
-
colors={{
|
|
146
|
-
Primary: 'hsla(36, 71%, 13%, 1)',
|
|
147
|
-
Tertiary: 'hsla(0, 0%, 85%, 1)',
|
|
148
|
-
Quaternary: 'hsla(0, 0%, 45%, 1)',
|
|
149
|
-
Accent: 'hsla(92, 49%, 47%, 1)',
|
|
150
|
-
Active: 'hsla(40, 75%, 58%, 1)',
|
|
151
|
-
Disabled: 'hsla(0, 0%, 61%, 1)',
|
|
152
|
-
}}
|
|
153
|
-
/>
|
|
154
|
-
<ColorItem
|
|
155
|
-
title="Error"
|
|
156
|
-
subtitle="--color-error"
|
|
157
|
-
colors={{
|
|
158
|
-
Primary: 'hsla(0, 100%, 44%, 1)',
|
|
159
|
-
}}
|
|
160
|
-
/>
|
|
161
|
-
<ColorItem
|
|
162
|
-
title="Error Text"
|
|
163
|
-
subtitle="--color-error-text"
|
|
164
|
-
colors={{
|
|
165
|
-
Primary: 'hsla(0, 100%, 44%, 1)',
|
|
166
|
-
PrimaryHover: 'hsla(0, 100%, 60%, 1)',
|
|
167
|
-
Secondary: 'hsla(0, 0%, 100%, 1)',
|
|
168
|
-
}}
|
|
169
|
-
/>
|
|
170
|
-
<ColorItem
|
|
171
|
-
title="Error Item"
|
|
172
|
-
subtitle="--color-error-item"
|
|
173
|
-
colors={{
|
|
174
|
-
Primary: 'hsla(0, 100%, 44%, 1)',
|
|
175
|
-
Secondary: 'hsla(0, 0%, 100%, 1)',
|
|
176
|
-
}}
|
|
177
|
-
/>
|
|
178
|
-
<ColorItem
|
|
179
|
-
title="Error Border"
|
|
180
|
-
subtitle="--color-error-border"
|
|
181
|
-
colors={{
|
|
182
|
-
Primary: 'hsla(0, 100%, 44%, 1)',
|
|
183
|
-
Secondary: 'hsla(0, 0%, 100%, 1)',
|
|
184
|
-
}}
|
|
185
|
-
/>
|
|
186
|
-
<ColorItem
|
|
187
|
-
title="Success"
|
|
188
|
-
subtitle="--color-success"
|
|
189
|
-
colors={{
|
|
190
|
-
Primary: 'hsla(108, 46%, 34%, 1)',
|
|
191
|
-
}}
|
|
192
|
-
/>
|
|
193
|
-
<ColorItem
|
|
194
|
-
title="Success Text"
|
|
195
|
-
subtitle="--color-success-text"
|
|
196
|
-
colors={{
|
|
197
|
-
Primary: 'hsla(108, 46%, 34%, 1)',
|
|
198
|
-
Secondary: 'hsla(0, 0%, 100%, 1)',
|
|
199
|
-
}}
|
|
200
|
-
/>
|
|
201
|
-
<ColorItem
|
|
202
|
-
title="Success Item"
|
|
203
|
-
subtitle="--color-success-item"
|
|
204
|
-
colors={{
|
|
205
|
-
Primary: 'hsla(108, 46%, 34%, 1)',
|
|
206
|
-
Secondary: 'hsla(0, 0%, 100%, 1)',
|
|
207
|
-
}}
|
|
208
|
-
/>
|
|
209
|
-
<ColorItem
|
|
210
|
-
title="Success Border"
|
|
211
|
-
subtitle="--color-success-border"
|
|
212
|
-
colors={{
|
|
213
|
-
Primary: 'hsla(108, 46%, 34%, 1)',
|
|
214
|
-
Secondary: 'hsla(0, 0%, 100%, 1)',
|
|
215
|
-
}}
|
|
216
|
-
/>
|
|
217
|
-
<ColorItem
|
|
218
|
-
title="Active"
|
|
219
|
-
subtitle="--color-active"
|
|
220
|
-
colors={{
|
|
221
|
-
Primary: 'hsla(40, 75%, 58%, 1)',
|
|
222
|
-
}}
|
|
223
|
-
/>
|
|
224
|
-
<ColorItem
|
|
225
|
-
title="Active Text"
|
|
226
|
-
subtitle="--color-active-text"
|
|
227
|
-
colors={{
|
|
228
|
-
Primary: 'hsla(40, 75%, 58%, 1)',
|
|
229
|
-
Secondary: 'hsla(0, 0%, 100%, 1)',
|
|
230
|
-
}}
|
|
231
|
-
/>
|
|
232
|
-
<ColorItem
|
|
233
|
-
title="Active Border"
|
|
234
|
-
subtitle="--color-active-border"
|
|
235
|
-
colors={{
|
|
236
|
-
Primary: 'hsla(40, 75%, 58%, 1)',
|
|
237
|
-
}}
|
|
238
|
-
/>
|
|
239
|
-
</ColorPalette>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Meta, Story } from '@storybook/blocks'
|
|
2
|
-
|
|
3
|
-
import * as DadataHintFieldStories from '../stories/DadataHintField.stories'
|
|
4
|
-
|
|
5
|
-
<Meta title="Components / DadataHintField / Overview" />
|
|
6
|
-
|
|
7
|
-
# DadataHintField
|
|
8
|
-
|
|
9
|
-
`DadataHintField` - это текстовое поле для организаций(ru), которое выдает подсказки в выпадающем списке
|
|
10
|
-
|
|
11
|
-
<Story of={DadataHintFieldStories.Demo} />
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Canvas, Controls, Meta } from '@storybook/blocks'
|
|
2
|
-
|
|
3
|
-
import * as DadataHintFieldStories from '../stories/DadataHintField.stories'
|
|
4
|
-
|
|
5
|
-
<Meta title="Components / DadataHintField / Playground" />
|
|
6
|
-
|
|
7
|
-
# Playground
|
|
8
|
-
|
|
9
|
-
<Canvas sourceState="shown" of={DadataHintFieldStories.Demo} />
|
|
10
|
-
<Controls of={DadataHintFieldStories.Demo} />
|
|
11
|
-
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { Meta, Typeset } from '@storybook/blocks'
|
|
2
|
-
import { Divider } from '../components/Divider'
|
|
3
|
-
import { Group } from '../components/Group'
|
|
4
|
-
import { Text } from '../components/Text'
|
|
5
|
-
|
|
6
|
-
<Meta title="Tokens / Elevation" />
|
|
7
|
-
|
|
8
|
-
# Elevation
|
|
9
|
-
|
|
10
|
-
<Group>
|
|
11
|
-
<Group alignItems="center" direction="horizontal" gap="40" padding="10">
|
|
12
|
-
<Group elevation="1" height="64" width="64" />
|
|
13
|
-
<Text>elevation 1</Text>
|
|
14
|
-
<Text>box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.24);</Text>
|
|
15
|
-
</Group>
|
|
16
|
-
<Divider width="fill" />
|
|
17
|
-
</Group>
|
|
18
|
-
|
|
19
|
-
<Group>
|
|
20
|
-
<Group alignItems="center" direction="horizontal" gap="40" padding="10">
|
|
21
|
-
<Group elevation="2" height="64" width="64" />
|
|
22
|
-
<Text>elevation 2</Text>
|
|
23
|
-
<Text>box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.24);</Text>
|
|
24
|
-
</Group>
|
|
25
|
-
<Divider width="fill" />
|
|
26
|
-
</Group>
|
|
27
|
-
|
|
28
|
-
<Group>
|
|
29
|
-
<Group alignItems="center" direction="horizontal" gap="40" padding="10">
|
|
30
|
-
<Group elevation="4" height="64" width="64" />
|
|
31
|
-
<Text>elevation 4</Text>
|
|
32
|
-
<Text>box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.24);</Text>
|
|
33
|
-
</Group>
|
|
34
|
-
<Divider width="fill" />
|
|
35
|
-
</Group>
|
|
36
|
-
|
|
37
|
-
<Group>
|
|
38
|
-
<Group alignItems="center" direction="horizontal" gap="40" padding="10">
|
|
39
|
-
<Group elevation="6" height="64" width="64" />
|
|
40
|
-
<Text>elevation 6</Text>
|
|
41
|
-
<Text>box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.24);</Text>
|
|
42
|
-
</Group>
|
|
43
|
-
<Divider width="fill" />
|
|
44
|
-
</Group>
|
|
45
|
-
|
|
46
|
-
<Group>
|
|
47
|
-
<Group alignItems="center" direction="horizontal" gap="40" padding="10">
|
|
48
|
-
<Group elevation="8" height="64" width="64" />
|
|
49
|
-
<Text>elevation 8</Text>
|
|
50
|
-
<Text>box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.16);</Text>
|
|
51
|
-
</Group>
|
|
52
|
-
<Divider width="fill" />
|
|
53
|
-
</Group>
|
|
54
|
-
|
|
55
|
-
<Group>
|
|
56
|
-
<Group alignItems="center" direction="horizontal" gap="40" padding="10">
|
|
57
|
-
<Group elevation="12" height="64" width="64" />
|
|
58
|
-
<Text>elevation 12</Text>
|
|
59
|
-
<Text>box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.16);</Text>
|
|
60
|
-
</Group>
|
|
61
|
-
<Divider width="fill" />
|
|
62
|
-
</Group>
|
|
63
|
-
|
|
64
|
-
<Group>
|
|
65
|
-
<Group alignItems="center" direction="horizontal" gap="40" padding="10">
|
|
66
|
-
<Group elevation="16" height="64" width="64" />
|
|
67
|
-
<Text>elevation 16</Text>
|
|
68
|
-
<Text>box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.16);</Text>
|
|
69
|
-
</Group>
|
|
70
|
-
<Divider width="fill" />
|
|
71
|
-
</Group>
|
|
72
|
-
|
|
73
|
-
<Group>
|
|
74
|
-
<Group alignItems="center" direction="horizontal" gap="40" padding="10">
|
|
75
|
-
<Group elevation="24" height="64" width="64" />
|
|
76
|
-
<Text>elevation 24</Text>
|
|
77
|
-
<Text>box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.12);</Text>
|
|
78
|
-
</Group>
|
|
79
|
-
<Divider width="fill" />
|
|
80
|
-
</Group>
|