@itcase/ui 1.8.35 → 1.8.37
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_nMPCDjk8.js} +1 -1
- package/dist/{Avatar_es_DbGpnL99.js → Avatar_es_B73a6TzA.js} +1 -1
- package/dist/{Button_cjs_CW6ENTbm.js → Button_cjs_plv5-qcj.js} +11 -2
- package/dist/{Button_es_DTUagqgU.js → Button_es_BigB2Wz6.js} +11 -2
- package/dist/ChipsGroup_cjs_DrOhD-Fc.js +312 -0
- package/dist/ChipsGroup_es_B9m4l0wN.js +307 -0
- package/dist/{DatePicker_cjs_Bx5_lZNT.js → DatePicker_cjs_CmqgSNw7.js} +4 -4
- package/dist/{DatePicker_es_A1FcasHs.js → DatePicker_es_mk9wFTe9.js} +4 -4
- package/dist/{DropdownItem_cjs_tH2DBClp.js → DropdownItem_cjs_DQvByLbN.js} +1 -1
- package/dist/{DropdownItem_es_BeVv-pDA.js → DropdownItem_es_KppIfto7.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_BGJfyrOL.js} +15 -13
- package/dist/{Label_es_DFSiy5sL.js → Label_es_C4Px7b-N.js} +15 -13
- 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_DHduWa-v.js} +76 -70
- package/dist/{Tooltip_es_B0nm9irO.js → Tooltip_es_ltCY-w4M.js} +76 -70
- 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 +32 -41
- package/dist/cjs/components/Breadcrumbs.js +41 -124
- 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 +20 -18
- 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 +104 -33
- 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 +17 -12
- package/dist/cjs/components/Modal.js +2 -2
- package/dist/cjs/components/Notification.js +3 -8
- 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 +26 -11
- package/dist/cjs/components/Segmented.js +84 -52
- 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 +32 -41
- package/dist/components/Breadcrumbs.js +41 -124
- 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 +20 -18
- 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 +102 -34
- 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 +17 -12
- package/dist/components/Modal.js +2 -2
- package/dist/components/Notification.js +3 -8
- 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 +24 -12
- package/dist/components/Segmented.js +84 -52
- 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 +39 -6
- package/dist/css/components/Chips/Chips.css +40 -14
- package/dist/css/components/Icon/Icon.css +24 -0
- package/dist/css/components/Loader/Loader.css +1 -19
- package/dist/css/components/MenuItem/MenuItem.css +53 -30
- package/dist/css/components/Notification/Notification.css +0 -48
- package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +230 -4
- package/dist/css/components/Segmented/Segmented.css +64 -8
- package/dist/css/components/Segmented/css/__item/segmaented__item.css +28 -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/BreadcrumbsPlsyground.mdx +1 -1
- package/dist/stories/ChipsOverview.mdx +26 -14
- package/dist/stories/ChipsPlayground.mdx +3 -3
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsAccent.d.ts +2 -12
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +7 -14
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsStyle.d.ts +4 -6
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +11 -8
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +5 -8
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +9 -0
- 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/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/choiceDefault.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +1 -1
- package/dist/types/components/Choice/appearance/choiceError.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceRequire.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +4 -6
- package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +1 -0
- package/dist/types/components/Choice/stories/__mock__/index.d.ts +3 -9
- package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +87 -44
- package/dist/types/components/Icon/appearance/iconAccent.d.ts +2 -4
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +2 -4
- package/dist/types/components/Icon/appearance/iconDisabled.d.ts +12 -0
- package/dist/types/components/Icon/appearance/iconError.d.ts +4 -4
- package/dist/types/components/Icon/appearance/iconInfo.d.ts +7 -4
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +4 -2
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +2 -2
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +4 -6
- package/dist/types/components/Icon/appearance/iconSuccess.d.ts +0 -2
- package/dist/types/components/Icon/appearance/iconSurface.d.ts +0 -5
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +4 -4
- 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/Label/appearance/labelPrimary.d.ts +1 -0
- package/dist/types/components/Label/appearance/labelSurface.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +4 -6
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +5 -0
- package/dist/types/components/Notification/appearance/notificationDefault.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationError.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationInfo.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationWarning.d.ts +0 -1
- 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 +8 -10
- package/dist/types/components/Segmented/appearance/segmentedError.d.ts +10 -1
- package/dist/types/components/Segmented/appearance/segmentedSize.d.ts +5 -0
- package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +3 -3
- package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +10 -1
- package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +10 -1
- package/dist/types/components/Segmented/stories/__mock__/index.d.ts +31 -9
- 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 +8 -7
- package/dist/ChipsGroup_cjs_j3QOma3U.js +0 -200
- package/dist/ChipsGroup_es_DF1fhn97.js +0 -195
- package/dist/css/components/Notification/css/__item/notification__item_status.css +0 -48
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsDanger.d.ts +0 -7
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsError.d.ts +0 -9
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsInfo.d.ts +0 -17
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsPrimary.d.ts +0 -8
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSecondary.d.ts +0 -8
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSuccess.d.ts +0 -9
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsWarning.d.ts +0 -9
|
@@ -2,14 +2,14 @@ declare const iconAppearanceError: {
|
|
|
2
2
|
error: {
|
|
3
3
|
fill: string;
|
|
4
4
|
fillHover: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
badgeAppearance: string;
|
|
6
|
+
iconFill: string;
|
|
7
7
|
};
|
|
8
8
|
errorPrimary: {
|
|
9
9
|
fill: string;
|
|
10
10
|
fillHover: string;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
badgeAppearance: string;
|
|
12
|
+
iconFill: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
export { iconAppearanceError };
|
|
@@ -2,15 +2,18 @@ declare const iconAppearanceInfo: {
|
|
|
2
2
|
info: {
|
|
3
3
|
fill: string;
|
|
4
4
|
fillHover: string;
|
|
5
|
-
labelTextColor: string;
|
|
6
|
-
labelTextColorHover: string;
|
|
7
5
|
borderColor: string;
|
|
8
6
|
};
|
|
7
|
+
infoPrimary: {
|
|
8
|
+
fill: string;
|
|
9
|
+
fillHover: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
badgeAppearance: string;
|
|
12
|
+
iconFill: string;
|
|
13
|
+
};
|
|
9
14
|
infoSecondary: {
|
|
10
15
|
fill: string;
|
|
11
16
|
fillHover: string;
|
|
12
|
-
labelTextColor: string;
|
|
13
|
-
labelTextColorHover: string;
|
|
14
17
|
borderColor: string;
|
|
15
18
|
};
|
|
16
19
|
};
|
|
@@ -2,12 +2,14 @@ declare const iconAppearancePrimary: {
|
|
|
2
2
|
primary: {
|
|
3
3
|
fill: string;
|
|
4
4
|
fillHover: string;
|
|
5
|
-
|
|
5
|
+
badgeAppearance: string;
|
|
6
|
+
iconFill: string;
|
|
6
7
|
};
|
|
7
8
|
primaryPrimary: {
|
|
8
9
|
fill: string;
|
|
9
10
|
fillHover: string;
|
|
10
|
-
|
|
11
|
+
badgeAppearance: string;
|
|
12
|
+
iconFill: string;
|
|
11
13
|
};
|
|
12
14
|
};
|
|
13
15
|
export { iconAppearancePrimary };
|
|
@@ -2,12 +2,12 @@ declare const iconAppearanceSecondary: {
|
|
|
2
2
|
secondary: {
|
|
3
3
|
fill: string;
|
|
4
4
|
fillHover: string;
|
|
5
|
-
labelTextColor: string;
|
|
6
5
|
};
|
|
7
6
|
secondaryPrimary: {
|
|
8
7
|
fill: string;
|
|
9
8
|
fillHover: string;
|
|
10
|
-
|
|
9
|
+
badgeAppearance: string;
|
|
10
|
+
iconFill: string;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
export { iconAppearanceSecondary };
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
declare const iconAppearanceStyle: {
|
|
2
|
-
|
|
3
|
-
borderColor: string;
|
|
4
|
-
};
|
|
5
|
-
ghost: {
|
|
6
|
-
fill: string;
|
|
2
|
+
solid: {
|
|
7
3
|
borderColor: string;
|
|
8
4
|
};
|
|
9
5
|
outlined: {
|
|
10
6
|
fill: string;
|
|
11
7
|
};
|
|
12
|
-
|
|
8
|
+
full: {};
|
|
9
|
+
ghost: {
|
|
10
|
+
fill: string;
|
|
13
11
|
borderColor: string;
|
|
14
12
|
};
|
|
15
13
|
};
|
|
@@ -2,29 +2,24 @@ declare const iconAppearanceSurface: {
|
|
|
2
2
|
surfacePrimary: {
|
|
3
3
|
fill: string;
|
|
4
4
|
fillHover: string;
|
|
5
|
-
labelTextColor: string;
|
|
6
5
|
badgeAppearance: string;
|
|
7
6
|
iconFill: string;
|
|
8
7
|
};
|
|
9
8
|
surfaceSecondary: {
|
|
10
9
|
fill: string;
|
|
11
10
|
fillHover: string;
|
|
12
|
-
labelTextColor: string;
|
|
13
11
|
badgeAppearance: string;
|
|
14
12
|
iconFill: string;
|
|
15
13
|
};
|
|
16
14
|
surfaceTertiary: {
|
|
17
15
|
fill: string;
|
|
18
16
|
fillHover: string;
|
|
19
|
-
labelTextColor: string;
|
|
20
17
|
badgeAppearance: string;
|
|
21
18
|
iconFill: string;
|
|
22
19
|
};
|
|
23
20
|
surfaceQuaternary: {
|
|
24
21
|
fill: string;
|
|
25
22
|
fillHover: string;
|
|
26
|
-
labelTextColor: string;
|
|
27
|
-
labelTextColorHover: string;
|
|
28
23
|
badgeAppearance: string;
|
|
29
24
|
iconFill: string;
|
|
30
25
|
};
|
|
@@ -2,14 +2,14 @@ declare const iconAppearanceWarning: {
|
|
|
2
2
|
warning: {
|
|
3
3
|
fill: string;
|
|
4
4
|
fillHover: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
badgeAppearance: string;
|
|
6
|
+
iconFill: string;
|
|
7
7
|
};
|
|
8
8
|
warningPrimary: {
|
|
9
9
|
fill: string;
|
|
10
10
|
fillHover: string;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
badgeAppearance: string;
|
|
12
|
+
iconFill: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
export { iconAppearanceWarning };
|
|
@@ -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;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
declare const menuItemAppearanceStyle: {
|
|
2
|
-
|
|
3
|
-
borderColor: string;
|
|
4
|
-
};
|
|
5
|
-
ghost: {
|
|
6
|
-
fill: string;
|
|
2
|
+
solid: {
|
|
7
3
|
borderColor: string;
|
|
8
4
|
};
|
|
9
5
|
outlined: {
|
|
10
6
|
fill: string;
|
|
11
7
|
};
|
|
12
|
-
|
|
8
|
+
full: {};
|
|
9
|
+
ghost: {
|
|
10
|
+
fill: string;
|
|
13
11
|
borderColor: string;
|
|
14
12
|
};
|
|
15
13
|
};
|
|
@@ -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
|
+
borderColor: string;
|
|
11
|
+
iconAfterFill: string;
|
|
12
|
+
iconAfterFillActive: string;
|
|
13
|
+
iconBeforeFill: string;
|
|
14
|
+
iconBeforeFillActive: string;
|
|
15
|
+
iconFill: string;
|
|
16
|
+
iconFillActive: string;
|
|
9
17
|
indicatorFill: string;
|
|
10
|
-
shape: string;
|
|
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;
|
|
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
|
+
fillActive: string;
|
|
5
|
+
labelTextActiveColor: string;
|
|
6
|
+
labelTextColor: string;
|
|
4
7
|
borderColor: string;
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
iconAfterFill: string;
|
|
9
|
+
iconAfterFillActive: string;
|
|
7
10
|
iconBeforeFill: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
fill: string;
|
|
12
|
-
borderColor: string;
|
|
13
|
-
borderHover: string;
|
|
14
|
-
iconBeforeFill: string;
|
|
15
|
-
iconClearFill: string;
|
|
11
|
+
iconBeforeFillActive: string;
|
|
12
|
+
iconFill: string;
|
|
13
|
+
iconFillActive: string;
|
|
16
14
|
};
|
|
17
15
|
};
|
|
18
16
|
export { segmentedAppearanceDisabled };
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
declare const segmentedAppearanceError: {
|
|
2
|
-
|
|
2
|
+
errorPrimary: {
|
|
3
3
|
fill: string;
|
|
4
|
+
fillActive: string;
|
|
4
5
|
fillHover: string;
|
|
6
|
+
labelTextActiveColor: string;
|
|
5
7
|
labelTextColor: string;
|
|
6
8
|
labelTextColorHover: string;
|
|
9
|
+
borderColor: string;
|
|
10
|
+
iconAfterFill: string;
|
|
11
|
+
iconAfterFillActive: string;
|
|
12
|
+
iconBeforeFill: string;
|
|
13
|
+
iconBeforeFillActive: string;
|
|
14
|
+
iconFill: string;
|
|
15
|
+
iconFillActive: string;
|
|
7
16
|
};
|
|
8
17
|
};
|
|
9
18
|
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,9 +1,18 @@
|
|
|
1
1
|
declare const segmentedAppearanceSuccess: {
|
|
2
2
|
successPrimary: {
|
|
3
3
|
fill: string;
|
|
4
|
+
fillActive: string;
|
|
4
5
|
fillHover: string;
|
|
6
|
+
labelTextActiveColor: string;
|
|
5
7
|
labelTextColor: string;
|
|
6
|
-
|
|
8
|
+
labelTextHoverColor: string;
|
|
9
|
+
borderColor: string;
|
|
10
|
+
iconAfterFill: string;
|
|
11
|
+
iconAfterFillActive: string;
|
|
12
|
+
iconBeforeFill: string;
|
|
13
|
+
iconBeforeFillActive: string;
|
|
14
|
+
iconFill: string;
|
|
15
|
+
iconFillActive: string;
|
|
7
16
|
};
|
|
8
17
|
};
|
|
9
18
|
export { segmentedAppearanceSuccess };
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
declare const segmentedAppearanceWarning: {
|
|
2
|
-
|
|
2
|
+
warningPrimary: {
|
|
3
3
|
fill: string;
|
|
4
|
+
fillActive: string;
|
|
4
5
|
fillHover: string;
|
|
6
|
+
labelTextActiveColor: string;
|
|
5
7
|
labelTextColor: string;
|
|
6
8
|
labelTextColorHover: string;
|
|
9
|
+
borderColor: string;
|
|
10
|
+
iconAfterFill: string;
|
|
11
|
+
iconAfterFillActive: string;
|
|
12
|
+
iconBeforeFill: string;
|
|
13
|
+
iconBeforeFillActive: string;
|
|
14
|
+
iconFill: string;
|
|
15
|
+
iconFillActive: string;
|
|
7
16
|
};
|
|
8
17
|
};
|
|
9
18
|
export { segmentedAppearanceWarning };
|
|
@@ -1,17 +1,39 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const segmentedMock: {
|
|
2
2
|
activeSegment: {
|
|
3
3
|
value: number;
|
|
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 segmentedLabelMock: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: number;
|
|
15
|
+
}[];
|
|
16
|
+
declare const segmentedIconMock: {
|
|
17
|
+
iconBefore: string | undefined;
|
|
18
|
+
}[];
|
|
19
|
+
declare const segmentedMockSize: {
|
|
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 { segmentedMock, segmentedLabelMock, segmentedMockSize, segmentedIconMock, };
|
|
@@ -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.37",
|
|
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.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",
|
|
@@ -106,11 +106,11 @@
|
|
|
106
106
|
"date-fns": "^4.1.0",
|
|
107
107
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
108
108
|
"eslint-plugin-import": "^2.32.0",
|
|
109
|
-
"framer-motion": "^12.
|
|
109
|
+
"framer-motion": "^12.19.1",
|
|
110
110
|
"js-cookie": "^3.0.5",
|
|
111
111
|
"lodash": "^4.17.21",
|
|
112
112
|
"luxon": "^3.6.1",
|
|
113
|
-
"motion": "^12.
|
|
113
|
+
"motion": "^12.19.1",
|
|
114
114
|
"rc-slider": "^11.1.8",
|
|
115
115
|
"react": "^18.3.1",
|
|
116
116
|
"react-dadata": "^2.27.4",
|
|
@@ -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
|
},
|
|
@@ -150,7 +151,7 @@
|
|
|
150
151
|
"@semantic-release/git": "^10.0.1",
|
|
151
152
|
"@semantic-release/release-notes-generator": "14.0.3",
|
|
152
153
|
"@types/js-cookie": "^3.0.6",
|
|
153
|
-
"@types/lodash": "^4.17.
|
|
154
|
+
"@types/lodash": "^4.17.19",
|
|
154
155
|
"@types/luxon": "^3.6.2",
|
|
155
156
|
"@types/react": "^19",
|
|
156
157
|
"@types/react-datepicker": "^7.0.0",
|
|
@@ -167,9 +168,9 @@
|
|
|
167
168
|
"lint-staged": "^16.1.2",
|
|
168
169
|
"npm": "^11.4.2",
|
|
169
170
|
"postcss": "^8.5.6",
|
|
170
|
-
"prettier": "^3.6.
|
|
171
|
+
"prettier": "^3.6.1",
|
|
171
172
|
"react-docgen-typescript": "^2.4.0",
|
|
172
|
-
"rollup": "^4.44.
|
|
173
|
+
"rollup": "^4.44.1",
|
|
173
174
|
"rollup-plugin-copy": "^3.5.0",
|
|
174
175
|
"rollup-plugin-dts": "^6.2.1",
|
|
175
176
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|