@itcase/ui 1.8.35 → 1.8.36
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_kADy_b4o.js → Avatar_cjs_DBoMi2WA.js} +1 -1
- package/dist/{Avatar_es_DbGpnL99.js → Avatar_es_DHREqfOD.js} +1 -1
- package/dist/{Button_cjs_CW6ENTbm.js → Button_cjs_djJUZATX.js} +2 -2
- package/dist/{Button_es_DTUagqgU.js → Button_es_X1DzVhok.js} +2 -2
- package/dist/ChipsGroup_cjs_5xsEchPo.js +314 -0
- package/dist/ChipsGroup_es_4TOkv-fm.js +309 -0
- package/dist/{DatePicker_cjs_Bx5_lZNT.js → DatePicker_cjs_DffhgUnQ.js} +4 -4
- package/dist/{DatePicker_es_A1FcasHs.js → DatePicker_es_GmkagjKf.js} +4 -4
- package/dist/{DropdownItem_cjs_tH2DBClp.js → DropdownItem_cjs_DxBpJAi9.js} +1 -1
- package/dist/{DropdownItem_es_BeVv-pDA.js → DropdownItem_es_Loneq6M7.js} +1 -1
- package/dist/{Input_cjs_arr_wxD2.js → Input_cjs_CPmXkQGd.js} +1 -0
- package/dist/{Input_es_BW6cZThr.js → Input_es_D9Y1Rj5Y.js} +1 -0
- package/dist/{Label_cjs_CP4b6Mg2.js → Label_cjs_C88e2CIP.js} +49 -49
- package/dist/{Label_es_DFSiy5sL.js → Label_es_Bn2aRjLl.js} +49 -49
- package/dist/{Loader_cjs_CCrbD8Em.js → Loader_cjs_Ca4i0sER.js} +4 -2
- package/dist/{Loader_es_B2auu_rc.js → Loader_es_GYOr0UTX.js} +4 -2
- package/dist/{Tooltip_cjs_DinScDnC.js → Tooltip_cjs_oS1iOamX.js} +4 -2
- package/dist/{Tooltip_es_B0nm9irO.js → Tooltip_es_LV5ZNg3B.js} +4 -2
- package/dist/cjs/components/Accordion.js +1 -1
- 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 +13 -6
- package/dist/cjs/components/Breadcrumbs.js +17 -18
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips/stories/__mock__.js +31 -0
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice/stories/__mock__.js +15 -15
- package/dist/cjs/components/Choice.js +7 -7
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/Dadata.js +1 -1
- package/dist/cjs/components/DatePeriod.js +7 -7
- package/dist/cjs/components/DatePicker.js +6 -6
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown/stories/__mock__.js +3 -2
- 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/Loader.js +1 -1
- package/dist/cjs/components/MenuItem.js +12 -5
- package/dist/cjs/components/Modal.js +2 -2
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +2 -4
- package/dist/cjs/components/Response.js +3 -3
- package/dist/cjs/components/ScrollOnDrag.js +5 -3
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented/stories/__mock__.js +24 -9
- package/dist/cjs/components/Segmented.js +80 -51
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Textarea.js +8 -9
- 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/hooks/useStyles/styleAttributes.js +1 -1
- package/dist/components/Accordion.js +1 -1
- 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 +13 -7
- package/dist/components/Breadcrumbs.js +17 -18
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips/stories/__mock__.js +29 -0
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice/stories/__mock__.js +15 -15
- package/dist/components/Choice.js +7 -7
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/Dadata.js +1 -1
- package/dist/components/DatePeriod.js +7 -7
- package/dist/components/DatePicker.js +6 -6
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown/stories/__mock__.js +3 -2
- 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/Loader.js +1 -1
- package/dist/components/MenuItem.js +12 -5
- package/dist/components/Modal.js +2 -2
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +3 -5
- package/dist/components/Response.js +3 -3
- package/dist/components/ScrollOnDrag.js +7 -5
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented/stories/__mock__.js +23 -11
- package/dist/components/Segmented.js +80 -51
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Textarea.js +8 -9
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/css/components/Breadcrumbs/Breadcrumbs.css +15 -6
- package/dist/css/components/Chips/Chips.css +40 -14
- package/dist/css/components/Loader/Loader.css +1 -19
- package/dist/css/components/MenuItem/MenuItem.css +22 -30
- package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +230 -4
- package/dist/css/components/Segmented/Segmented.css +53 -6
- package/dist/css/components/Segmented/css/__item/segmaented__item.css +31 -0
- package/dist/css/styles/centering/centering.css +17 -0
- package/dist/css/styles/shape-strength/shape-strength.css +6 -0
- package/dist/hooks/useStyles/styleAttributes.js +1 -1
- package/dist/stories/ChipsOverview.mdx +26 -14
- package/dist/stories/ChipsPlayground.mdx +3 -3
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsStyle.d.ts +5 -5
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +24 -1
- package/dist/types/components/Chips/Chips.interface.d.ts +1 -0
- package/dist/types/components/Chips/appearance/chipsAccent.d.ts +9 -1
- package/dist/types/components/Chips/appearance/chipsDanger.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsError.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsInfo.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsPrimary.d.ts +11 -2
- package/dist/types/components/Chips/appearance/chipsSecondary.d.ts +10 -2
- package/dist/types/components/Chips/appearance/chipsStyle.d.ts +3 -1
- package/dist/types/components/Chips/appearance/chipsSuccess.d.ts +16 -1
- package/dist/types/components/Chips/appearance/chipsSurface.d.ts +11 -1
- package/dist/types/components/Chips/appearance/chipsWarning.d.ts +16 -1
- package/dist/types/components/Chips/stories/__mock__/index.d.ts +14 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +5 -5
- package/dist/types/components/Choice/stories/__mock__/index.d.ts +3 -9
- package/dist/types/components/Input/appearance/inputDefault.d.ts +1 -0
- package/dist/types/components/Label/appearance/labelDisable.d.ts +2 -2
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +5 -0
- package/dist/types/components/Segmented/Segmented.interface.d.ts +5 -2
- package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +8 -11
- package/dist/types/components/Segmented/appearance/segmentedDisabled.d.ts +9 -11
- package/dist/types/components/Segmented/appearance/segmentedError.d.ts +9 -2
- package/dist/types/components/Segmented/appearance/segmentedSize.d.ts +5 -0
- package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +5 -3
- package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +8 -0
- package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +9 -1
- package/dist/types/components/Segmented/stories/__mock__/index.d.ts +30 -8
- package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +1 -0
- package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +4 -4
- package/dist/types/context/UIContext.d.ts +3 -5
- package/package.json +3 -2
- package/dist/ChipsGroup_cjs_j3QOma3U.js +0 -200
- package/dist/ChipsGroup_es_DF1fhn97.js +0 -195
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
declare const chipsAppearanceSuccess: {
|
|
1
|
+
declare const chipsAppearanceSuccess: {
|
|
2
|
+
successMutedPrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
labelTextColor: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
iconAfterFillIcon: string;
|
|
7
|
+
iconBeforeFillIcon: string;
|
|
8
|
+
};
|
|
9
|
+
successPrimary: {
|
|
10
|
+
fill: string;
|
|
11
|
+
labelTextColor: string;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
iconAfterFillIcon: string;
|
|
14
|
+
iconBeforeFillIcon: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
2
17
|
export { chipsAppearanceSuccess };
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
declare const chipsAppearanceSurface: {
|
|
2
|
+
surfaceMutedPrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
labelTextColor: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
iconAfterFillIcon: string;
|
|
7
|
+
iconBeforeFillIcon: string;
|
|
8
|
+
};
|
|
2
9
|
surfacePrimary: {
|
|
3
10
|
fill: string;
|
|
4
11
|
fillActive: string;
|
|
@@ -9,8 +16,11 @@ declare const chipsAppearanceSurface: {
|
|
|
9
16
|
labelTextHoverColor: string;
|
|
10
17
|
borderColor: string;
|
|
11
18
|
activeIconItemFill: string;
|
|
12
|
-
iconBeforeFillIcon: string;
|
|
13
19
|
badgeAppearance: string;
|
|
20
|
+
iconAfterFillActiveIcon: string;
|
|
21
|
+
iconAfterFillIcon: string;
|
|
22
|
+
iconBeforeFillActiveIcon: string;
|
|
23
|
+
iconBeforeFillIcon: string;
|
|
14
24
|
};
|
|
15
25
|
surfaceSecondary: {
|
|
16
26
|
fill: string;
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
declare const chipsAppearanceWarning: {
|
|
1
|
+
declare const chipsAppearanceWarning: {
|
|
2
|
+
warningMutedPrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
labelTextColor: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
iconAfterFillIcon: string;
|
|
7
|
+
iconBeforeFillIcon: string;
|
|
8
|
+
};
|
|
9
|
+
warningPrimary: {
|
|
10
|
+
fill: string;
|
|
11
|
+
labelTextColor: string;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
iconAfterFillIcon: string;
|
|
14
|
+
iconBeforeFillIcon: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
2
17
|
export { chipsAppearanceWarning };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
declare const choiceAppearanceStyle: {
|
|
2
|
-
|
|
2
|
+
solid: {
|
|
3
3
|
borderColor: string;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
outlined: {
|
|
6
6
|
fill: string;
|
|
7
7
|
fillItem: string;
|
|
8
8
|
fillItemActive: string;
|
|
9
|
+
};
|
|
10
|
+
full: {
|
|
9
11
|
borderColor: string;
|
|
10
12
|
};
|
|
11
|
-
|
|
13
|
+
ghost: {
|
|
12
14
|
fill: string;
|
|
13
15
|
fillItem: string;
|
|
14
16
|
fillItemActive: string;
|
|
15
|
-
};
|
|
16
|
-
solid: {
|
|
17
17
|
borderColor: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -4,12 +4,8 @@ declare const choiceListMock: {
|
|
|
4
4
|
};
|
|
5
5
|
choices: {
|
|
6
6
|
label: string;
|
|
7
|
-
iconAfter:
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
iconBefore: {
|
|
11
|
-
Default: any;
|
|
12
|
-
};
|
|
7
|
+
iconAfter: any;
|
|
8
|
+
iconBefore: any;
|
|
13
9
|
value: number;
|
|
14
10
|
}[];
|
|
15
11
|
};
|
|
@@ -18,9 +14,7 @@ declare const choiceListIconMock: {
|
|
|
18
14
|
value: number;
|
|
19
15
|
};
|
|
20
16
|
choices: {
|
|
21
|
-
icon:
|
|
22
|
-
Default: any;
|
|
23
|
-
};
|
|
17
|
+
icon: any;
|
|
24
18
|
value: number;
|
|
25
19
|
}[];
|
|
26
20
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare const labelAppearanceDisable: {
|
|
2
|
-
|
|
2
|
+
disableMutedPrimary: {
|
|
3
3
|
fill: string;
|
|
4
4
|
labelTextColor: string;
|
|
5
5
|
borderColor: string;
|
|
6
6
|
iconAfterFillIcon: string;
|
|
7
7
|
iconBeforeFillIcon: string;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
disablePrimary: {
|
|
10
10
|
fill: string;
|
|
11
11
|
labelTextColor: string;
|
|
12
12
|
borderColor: string;
|
|
@@ -11,8 +11,13 @@ declare const menuItemAppearanceSurface: {
|
|
|
11
11
|
};
|
|
12
12
|
surfaceSecondary: {
|
|
13
13
|
fill: string;
|
|
14
|
+
fillActive: string;
|
|
15
|
+
fillActiveHover: string;
|
|
14
16
|
fillHover: string;
|
|
15
17
|
labelTextColor: string;
|
|
18
|
+
borderColor: string;
|
|
19
|
+
iconAfterFillIcon: string;
|
|
20
|
+
iconBeforeFillIcon: string;
|
|
16
21
|
};
|
|
17
22
|
surfaceTertiary: {
|
|
18
23
|
fill: string;
|
|
@@ -26,9 +26,11 @@ export interface SegmentedConfig {
|
|
|
26
26
|
appearance: SegmentedAppearanceType | undefined;
|
|
27
27
|
setAppearance: (newComponent: SegmentedAppearanceType) => void;
|
|
28
28
|
}
|
|
29
|
-
interface Segment {
|
|
29
|
+
export interface Segment {
|
|
30
|
+
iconAfter?: string;
|
|
31
|
+
iconBefore?: string;
|
|
30
32
|
label: string;
|
|
31
|
-
value:
|
|
33
|
+
value: number;
|
|
32
34
|
}
|
|
33
35
|
export interface SegmentedProps extends SegmentedThemeColor, StyleAttributes {
|
|
34
36
|
[key: number | string | symbol]: any;
|
|
@@ -40,6 +42,7 @@ export interface SegmentedProps extends SegmentedThemeColor, StyleAttributes {
|
|
|
40
42
|
size?: string;
|
|
41
43
|
type?: string;
|
|
42
44
|
value?: string;
|
|
45
|
+
isActive?: boolean;
|
|
43
46
|
isDisabled?: boolean;
|
|
44
47
|
isSkeleton: boolean;
|
|
45
48
|
onChange?: (value: string, name?: string) => void;
|
|
@@ -5,19 +5,16 @@ declare const segmentedAppearanceDefault: {
|
|
|
5
5
|
fillActiveHover: string;
|
|
6
6
|
fillHover: string;
|
|
7
7
|
labelTextActiveColor: string;
|
|
8
|
+
labelTextActiveHoverColor: string;
|
|
8
9
|
labelTextColor: string;
|
|
10
|
+
iconAfterFill: string;
|
|
11
|
+
iconAfterFillActive: string;
|
|
12
|
+
iconBeforeFill: string;
|
|
13
|
+
iconBeforeFillActive: string;
|
|
14
|
+
iconFill: string;
|
|
15
|
+
iconFillActive: string;
|
|
9
16
|
indicatorFill: string;
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
defaultSecondary: {
|
|
13
|
-
fill: string;
|
|
14
|
-
fillActive: string;
|
|
15
|
-
fillActiveHover: string;
|
|
16
|
-
fillHover: string;
|
|
17
|
-
labelTextActiveColor: string;
|
|
18
|
-
labelTextColor: string;
|
|
19
|
-
indicatorFill: string;
|
|
20
|
-
shape: string;
|
|
17
|
+
inputBorderColor: string;
|
|
21
18
|
};
|
|
22
19
|
};
|
|
23
20
|
export { segmentedAppearanceDefault };
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
declare const segmentedAppearanceDisabled: {
|
|
2
2
|
disabledPrimary: {
|
|
3
3
|
fill: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
fillActive: string;
|
|
5
|
+
fillHover: string;
|
|
6
|
+
labelTextColor: string;
|
|
7
|
+
iconAfterFill: string;
|
|
8
|
+
iconAfterFillActive: string;
|
|
7
9
|
iconBeforeFill: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
borderColor: string;
|
|
13
|
-
borderHover: string;
|
|
14
|
-
iconBeforeFill: string;
|
|
15
|
-
iconClearFill: string;
|
|
10
|
+
iconBeforeFillActive: string;
|
|
11
|
+
iconFill: string;
|
|
12
|
+
iconFillActive: string;
|
|
13
|
+
inputBorderColor: string;
|
|
16
14
|
};
|
|
17
15
|
};
|
|
18
16
|
export { segmentedAppearanceDisabled };
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
declare const segmentedAppearanceError: {
|
|
2
|
-
|
|
2
|
+
errorPrimary: {
|
|
3
3
|
fill: string;
|
|
4
|
+
fillActive: string;
|
|
4
5
|
fillHover: string;
|
|
5
6
|
labelTextColor: string;
|
|
6
|
-
|
|
7
|
+
iconAfterFill: string;
|
|
8
|
+
iconAfterFillActive: string;
|
|
9
|
+
iconBeforeFill: string;
|
|
10
|
+
iconBeforeFillActive: string;
|
|
11
|
+
iconFill: string;
|
|
12
|
+
iconFillActive: string;
|
|
13
|
+
inputBorderColor: string;
|
|
7
14
|
};
|
|
8
15
|
};
|
|
9
16
|
export { segmentedAppearanceError };
|
|
@@ -2,22 +2,27 @@ declare const segmentedAppearanceSize: {
|
|
|
2
2
|
sizeL: {
|
|
3
3
|
size: string;
|
|
4
4
|
labelTextSize: string;
|
|
5
|
+
iconSize: string;
|
|
5
6
|
};
|
|
6
7
|
sizeM: {
|
|
7
8
|
size: string;
|
|
8
9
|
labelTextSize: string;
|
|
10
|
+
iconSize: string;
|
|
9
11
|
};
|
|
10
12
|
sizeS: {
|
|
11
13
|
size: string;
|
|
12
14
|
labelTextSize: string;
|
|
15
|
+
iconSize: string;
|
|
13
16
|
};
|
|
14
17
|
sizeXS: {
|
|
15
18
|
size: string;
|
|
16
19
|
labelTextSize: string;
|
|
20
|
+
iconSize: string;
|
|
17
21
|
};
|
|
18
22
|
sizeXSS: {
|
|
19
23
|
size: string;
|
|
20
24
|
labelTextSize: string;
|
|
25
|
+
iconSize: string;
|
|
21
26
|
};
|
|
22
27
|
};
|
|
23
28
|
export { segmentedAppearanceSize };
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
declare const segmentedAppearanceStyle: {
|
|
2
2
|
solid: {
|
|
3
|
-
|
|
3
|
+
inputBorderColor: string;
|
|
4
4
|
};
|
|
5
5
|
outlined: {
|
|
6
6
|
fill: string;
|
|
7
|
+
fillActive: string;
|
|
7
8
|
};
|
|
8
9
|
full: {
|
|
9
|
-
|
|
10
|
+
inputBorderColor: string;
|
|
10
11
|
};
|
|
11
12
|
ghost: {
|
|
12
13
|
fill: string;
|
|
13
|
-
|
|
14
|
+
fillActive: string;
|
|
15
|
+
inputBorderColor: string;
|
|
14
16
|
};
|
|
15
17
|
};
|
|
16
18
|
export { segmentedAppearanceStyle };
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
declare const segmentedAppearanceSuccess: {
|
|
2
2
|
successPrimary: {
|
|
3
3
|
fill: string;
|
|
4
|
+
fillActive: string;
|
|
4
5
|
fillHover: string;
|
|
5
6
|
labelTextColor: string;
|
|
6
7
|
labelTextColorHover: string;
|
|
8
|
+
iconAfterFill: string;
|
|
9
|
+
iconAfterFillActive: string;
|
|
10
|
+
iconBeforeFill: string;
|
|
11
|
+
iconBeforeFillActive: string;
|
|
12
|
+
iconFill: string;
|
|
13
|
+
iconFillActive: string;
|
|
14
|
+
inputBorderColor: string;
|
|
7
15
|
};
|
|
8
16
|
};
|
|
9
17
|
export { segmentedAppearanceSuccess };
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
declare const segmentedAppearanceWarning: {
|
|
2
|
-
|
|
2
|
+
warningPrimary: {
|
|
3
3
|
fill: string;
|
|
4
|
+
fillActive: string;
|
|
4
5
|
fillHover: string;
|
|
5
6
|
labelTextColor: string;
|
|
6
7
|
labelTextColorHover: string;
|
|
8
|
+
iconAfterFill: string;
|
|
9
|
+
iconAfterFillActive: string;
|
|
10
|
+
iconBeforeFill: string;
|
|
11
|
+
iconBeforeFillActive: string;
|
|
12
|
+
iconFill: string;
|
|
13
|
+
iconFillActive: string;
|
|
14
|
+
inputBorderColor: string;
|
|
7
15
|
};
|
|
8
16
|
};
|
|
9
17
|
export { segmentedAppearanceWarning };
|
|
@@ -4,14 +4,36 @@ declare const segmentedArgsMock: {
|
|
|
4
4
|
};
|
|
5
5
|
segments: {
|
|
6
6
|
label: string;
|
|
7
|
-
iconAfter:
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
iconBefore: {
|
|
11
|
-
Default: any;
|
|
12
|
-
};
|
|
7
|
+
iconAfter: any;
|
|
8
|
+
iconBefore: any;
|
|
13
9
|
value: number;
|
|
14
10
|
}[];
|
|
15
|
-
shape: string;
|
|
16
11
|
};
|
|
17
|
-
|
|
12
|
+
declare const segmentedArgsLabelMock: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: number;
|
|
15
|
+
}[];
|
|
16
|
+
declare const segmentedArgsIconMock: {
|
|
17
|
+
iconBefore: string | undefined;
|
|
18
|
+
}[];
|
|
19
|
+
declare const segmentedArgsMockSize: {
|
|
20
|
+
14: {
|
|
21
|
+
iconAfter: any;
|
|
22
|
+
iconBefore: any;
|
|
23
|
+
label: string;
|
|
24
|
+
value: number;
|
|
25
|
+
}[];
|
|
26
|
+
16: {
|
|
27
|
+
iconAfter: any;
|
|
28
|
+
iconBefore: any;
|
|
29
|
+
label: string;
|
|
30
|
+
value: number;
|
|
31
|
+
}[];
|
|
32
|
+
20: {
|
|
33
|
+
iconAfter: any;
|
|
34
|
+
iconBefore: any;
|
|
35
|
+
label: string;
|
|
36
|
+
value: number;
|
|
37
|
+
}[];
|
|
38
|
+
};
|
|
39
|
+
export { segmentedArgsMock, segmentedArgsLabelMock, segmentedArgsMockSize, segmentedArgsIconMock, };
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
type
|
|
3
|
-
interface iUIProvider {
|
|
2
|
+
type UIProviderProps = {
|
|
4
3
|
children?: ReactNode;
|
|
5
|
-
deviceCurrentMainType: DeviceType;
|
|
6
4
|
userDeviceState?: {
|
|
7
5
|
isDesktop?: boolean;
|
|
8
6
|
isMobile?: boolean;
|
|
9
7
|
isTablet?: boolean;
|
|
10
8
|
};
|
|
11
|
-
}
|
|
12
|
-
declare const UIProvider: import("react").NamedExoticComponent<
|
|
9
|
+
};
|
|
10
|
+
declare const UIProvider: import("react").NamedExoticComponent<UIProviderProps>;
|
|
13
11
|
declare function useUserDeviceContext(): {
|
|
14
12
|
isMobile: boolean;
|
|
15
13
|
isTablet: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.36",
|
|
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.2.
|
|
100
|
+
"@itcase/icons": "^1.2.5",
|
|
101
101
|
"@itcase/storybook-config": "^1.1.14",
|
|
102
102
|
"@itcase/tokens-am": "^1.1.9",
|
|
103
103
|
"@itcase/tokens-baikal": "^1.1.9",
|
|
@@ -126,6 +126,7 @@
|
|
|
126
126
|
"react-scroll": "^1.9.3",
|
|
127
127
|
"react-scrollbars-custom": "^4.1.1",
|
|
128
128
|
"react-select": "^5.10.1",
|
|
129
|
+
"simplebar-react": "^3.3.1",
|
|
129
130
|
"swiper": "^11.2.8",
|
|
130
131
|
"uuid": "^11.1.0"
|
|
131
132
|
},
|