@itcase/ui 1.8.21 → 1.8.23
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_CiQ14ufF.js → Avatar_cjs_D84VawE9.js} +2 -21
- package/dist/{Avatar_es_No9vSqji.js → Avatar_es_CUnfNViT.js} +2 -21
- package/dist/{Button_cjs_CnStmeGt.js → Button_cjs_MfWRETXI.js} +13 -4
- package/dist/{Button_es_BV1bepl1.js → Button_es_zW2pQTwL.js} +13 -4
- package/dist/{ChipsGroup_cjs_CL00pWKy.js → ChipsGroup_cjs_CTh6644i.js} +1 -1
- package/dist/{ChipsGroup_es_Ciln2otW.js → ChipsGroup_es_BFxBhYNB.js} +1 -1
- package/dist/{DatePicker_cjs_DGgkpGbI.js → DatePicker_cjs_uDJmwWkk.js} +3 -3
- package/dist/{DatePicker_es_BIOyGm22.js → DatePicker_es_5r0isX1_.js} +3 -3
- package/dist/{DropdownItem_cjs_DT-zspEr.js → DropdownItem_cjs_C6Jx7-kx.js} +1 -1
- package/dist/{DropdownItem_es_BJLFqVuH.js → DropdownItem_es_UdkGGVtg.js} +1 -1
- package/dist/{Label_cjs_Cqcf6ffp.js → Label_cjs_jN0dxo1q.js} +11 -3
- package/dist/{Label_es_CeNdA70T.js → Label_es_CFQzN-2m.js} +11 -3
- package/dist/{Link_cjs_BlXrJ15R.js → Link_cjs_DbRGq2Yk.js} +9 -9
- package/dist/{Link_es_CyJn7NFb.js → Link_es_DxtZLeKY.js} +9 -9
- package/dist/{Tooltip_cjs_Cq5kuaIK.js → Tooltip_cjs_CaocDcQ5.js} +85 -27
- package/dist/{Tooltip_es_D0PSqI2c.js → Tooltip_es_D1w1s33u.js} +85 -27
- package/dist/cjs/components/Accordion.js +2 -2
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/AvatarStack.js +5 -5
- package/dist/cjs/components/Badge.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +3 -3
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +15 -149
- package/dist/cjs/components/Chips.js +3 -3
- package/dist/cjs/components/Choice.js +2 -2
- package/dist/cjs/components/Code.js +2 -8
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/DatePeriod.js +6 -6
- package/dist/cjs/components/DatePicker.js +5 -5
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/InputPassword.js +71 -129
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/MenuItem.js +29 -9
- package/dist/cjs/components/Modal.js +2 -2
- package/dist/cjs/components/ModalSheetBottom.js +19 -5
- package/dist/cjs/components/Pagination.js +3 -3
- package/dist/cjs/components/Response/img.js +33 -0
- package/dist/cjs/components/Response.js +81 -213
- package/dist/cjs/components/Search.js +2 -2
- package/dist/cjs/components/Select.js +2 -2
- package/dist/cjs/components/Swiper.js +2 -2
- package/dist/cjs/components/Tab.js +2 -2
- package/dist/cjs/components/Tile.js +10 -172
- package/dist/cjs/components/Title.js +2 -2
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/components/Accordion.js +2 -2
- package/dist/components/Avatar.js +3 -3
- package/dist/components/AvatarStack.js +5 -5
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs.js +3 -3
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +15 -149
- package/dist/components/Chips.js +3 -3
- package/dist/components/Choice.js +2 -2
- package/dist/components/Code.js +2 -8
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/DatePeriod.js +6 -6
- package/dist/components/DatePicker.js +5 -5
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Icon.js +2 -2
- package/dist/components/InputPassword.js +71 -129
- package/dist/components/Label.js +3 -3
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Logo.js +1 -1
- package/dist/components/MenuItem.js +29 -9
- package/dist/components/Modal.js +2 -2
- package/dist/components/ModalSheetBottom.js +19 -5
- package/dist/components/Pagination.js +3 -3
- package/dist/components/Response/img.js +31 -0
- package/dist/components/Response.js +81 -213
- package/dist/components/Search.js +2 -2
- package/dist/components/Select.js +2 -2
- package/dist/components/Swiper.js +2 -2
- package/dist/components/Tab.js +2 -2
- package/dist/components/Tile.js +10 -172
- package/dist/components/Title.js +2 -2
- package/dist/components/Tooltip.js +2 -2
- package/dist/css/components/AvatarStack/AvatarStack.css +2 -15
- package/dist/css/components/Badge/Badge.css +3 -3
- package/dist/css/components/Code/Code.css +3 -6
- package/dist/css/components/Label/Label.css +4 -4
- package/dist/css/components/MenuItem/MenuItem.css +19 -43
- package/dist/css/components/Response/Response.css +6 -3
- package/dist/css/components/Tab/Tab.css +14 -31
- package/dist/css/components/Tile/Tile.css +7 -5
- package/dist/css/styles/border-color/border-color.css +19 -0
- package/dist/css/styles/border-color/border-color_active.css +38 -0
- package/dist/css/styles/border-color/border-color_focus.css +25 -1
- package/dist/css/styles/border-color/border-color_hover.css +32 -0
- package/dist/css/styles/svg-color/svg_fill.css +5 -5
- package/dist/stories/Plsyground.mdx +0 -1
- package/dist/stories/index.stories.js +5 -8
- package/dist/types/components/Avatar/appearance/avatarAccent.d.ts +0 -4
- package/dist/types/components/Avatar/appearance/avatarDanger.d.ts +0 -1
- package/dist/types/components/Avatar/appearance/avatarInfo.d.ts +0 -4
- package/dist/types/components/Avatar/appearance/avatarPrimary.d.ts +0 -1
- package/dist/types/components/Avatar/appearance/avatarSecondary.d.ts +0 -1
- package/dist/types/components/Avatar/appearance/avatarSuccess.d.ts +1 -3
- package/dist/types/components/Avatar/appearance/avatarSurface.d.ts +0 -6
- package/dist/types/components/Badge/appearance/badgeAccent.d.ts +13 -1
- package/dist/types/components/Badge/appearance/badgeDanger.d.ts +7 -1
- package/dist/types/components/Badge/appearance/badgeDisabled.d.ts +6 -1
- package/dist/types/components/Badge/appearance/badgeError.d.ts +7 -2
- package/dist/types/components/Badge/appearance/badgeInfo.d.ts +1 -3
- package/dist/types/components/Badge/appearance/badgePrimary.d.ts +7 -1
- package/dist/types/components/Badge/appearance/badgeSecondary.d.ts +7 -1
- package/dist/types/components/Badge/appearance/badgeStyle.d.ts +5 -7
- package/dist/types/components/Badge/appearance/badgeSuccess.d.ts +7 -1
- package/dist/types/components/Badge/appearance/badgeWarning.d.ts +7 -1
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +1 -0
- package/dist/types/components/Button/appearance/buttonWarning.d.ts +8 -0
- package/dist/types/components/Cell/appearance/cellSize.d.ts +8 -44
- package/dist/types/components/Code/appearance/codeSize.d.ts +2 -8
- package/dist/types/components/{Response/appearance/responseDisabled.d.ts → InputPassword/appearance/inputPasswordDefault.d.ts} +9 -5
- package/dist/types/components/InputPassword/appearance/inputPasswordError.d.ts +15 -6
- package/dist/types/components/InputPassword/appearance/inputPasswordSize.d.ts +7 -7
- package/dist/types/components/InputPassword/appearance/inputPasswordSuccess.d.ts +15 -6
- package/dist/types/components/Label/appearance/labelAccent.d.ts +7 -0
- package/dist/types/components/Label/appearance/labelSize.d.ts +1 -0
- package/dist/types/components/Link/Link.interface.d.ts +1 -1
- package/dist/types/components/MenuItem/appearance/menuItemSize.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +4 -2
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.d.ts +2 -1
- package/dist/types/components/Response/appearance/responceConfirm.d.ts +13 -0
- package/dist/types/components/Response/appearance/responceFail.d.ts +13 -0
- package/dist/types/components/Response/appearance/responceNothingFound.d.ts +13 -0
- package/dist/types/components/Response/appearance/responceRefresh.d.ts +13 -0
- package/dist/types/components/Response/appearance/responseError.d.ts +6 -4
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +6 -4
- package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +13 -0
- package/dist/types/components/Response/appearance/responseWarning.d.ts +6 -4
- package/dist/types/components/Response/img/index.d.ts +12 -0
- package/dist/types/components/Tile/appearance/tileSize.d.ts +0 -8
- package/dist/types/components/Tile/appearance/tileSurface.d.ts +0 -1
- package/package.json +6 -8
- package/dist/cjs/components/InputMask.js +0 -65
- package/dist/cjs/components/Panel.js +0 -44
- package/dist/components/InputMask.js +0 -62
- package/dist/components/Panel.js +0 -41
- package/dist/css/components/InputMask/InputMask.css +0 -77
- package/dist/css/components/Panel/Panel.css +0 -107
- package/dist/stories/Accordion.mdx +0 -11
- package/dist/stories/AccordionItem.mdx +0 -15
- package/dist/stories/Breadcrumbs.mdx +0 -15
- package/dist/stories/BreadcrumbsItem.mdx +0 -17
- package/dist/stories/Dot.mdx +0 -19
- package/dist/stories/Drawer.mdx +0 -11
- package/dist/stories/Dropdown.mdx +0 -12
- package/dist/stories/DropdownItem.mdx +0 -19
- package/dist/stories/Image.mdx +0 -15
- package/dist/stories/Input.mdx +0 -31
- package/dist/stories/InputPassword.mdx +0 -15
- package/dist/stories/Label.mdx +0 -11
- package/dist/stories/ListItem.mdx +0 -11
- package/dist/stories/Logo.mdx +0 -24
- package/dist/stories/MenuItem.mdx +0 -15
- package/dist/stories/Modal.mdx +0 -15
- package/dist/stories/Notification.mdx +0 -23
- package/dist/stories/Radio.mdx +0 -28
- package/dist/stories/Response.mdx +0 -11
- package/dist/stories/SearchInput.mdx +0 -19
- package/dist/stories/Switch.mdx +0 -23
- package/dist/stories/Tab.mdx +0 -27
- package/dist/stories/Text.mdx +0 -35
- package/dist/types/components/Cell/appearance/cellAccent.d.ts +0 -21
- package/dist/types/components/Cell/appearance/cellDanger.d.ts +0 -7
- package/dist/types/components/Cell/appearance/cellError.d.ts +0 -11
- package/dist/types/components/Cell/appearance/cellInfo.d.ts +0 -21
- package/dist/types/components/Cell/appearance/cellPrimary.d.ts +0 -8
- package/dist/types/components/Cell/appearance/cellSecondary.d.ts +0 -8
- package/dist/types/components/Cell/appearance/cellSuccess.d.ts +0 -11
- package/dist/types/components/Cell/appearance/cellWarning.d.ts +0 -11
- package/dist/types/components/InputMask/InputMask.d.ts +0 -5
- package/dist/types/components/InputMask/InputMask.interface.d.ts +0 -54
- package/dist/types/components/InputMask/index.d.ts +0 -1
- package/dist/types/components/InputPassword/appearance/inputPasswordAccent.d.ts +0 -20
- package/dist/types/components/InputPassword/appearance/inputPasswordDanger.d.ts +0 -7
- package/dist/types/components/InputPassword/appearance/inputPasswordInfo.d.ts +0 -21
- package/dist/types/components/InputPassword/appearance/inputPasswordPrimary.d.ts +0 -8
- package/dist/types/components/InputPassword/appearance/inputPasswordSecondary.d.ts +0 -8
- package/dist/types/components/InputPassword/appearance/inputPasswordSurface.d.ts +0 -25
- package/dist/types/components/InputPassword/appearance/inputPasswordWarning.d.ts +0 -11
- package/dist/types/components/Panel/Panel.d.ts +0 -5
- package/dist/types/components/Panel/Panel.interface.d.ts +0 -58
- package/dist/types/components/Panel/index.d.ts +0 -1
- package/dist/types/components/Response/appearance/responseAccent.d.ts +0 -20
- package/dist/types/components/Response/appearance/responseDanger.d.ts +0 -7
- package/dist/types/components/Response/appearance/responseInfo.d.ts +0 -21
- package/dist/types/components/Response/appearance/responsePrimary.d.ts +0 -8
- package/dist/types/components/Response/appearance/responseRequire.d.ts +0 -20
- package/dist/types/components/Response/appearance/responseSecondary.d.ts +0 -8
- package/dist/types/components/Response/appearance/responseSize.d.ts +0 -59
- package/dist/types/components/Response/appearance/responseStyle.d.ts +0 -16
- package/dist/types/components/Response/appearance/responseSurface.d.ts +0 -25
- package/dist/types/components/Tile/appearance/tileAccent.d.ts +0 -20
- package/dist/types/components/Tile/appearance/tileDanger.d.ts +0 -7
- package/dist/types/components/Tile/appearance/tileDisabled.d.ts +0 -20
- package/dist/types/components/Tile/appearance/tileError.d.ts +0 -11
- package/dist/types/components/Tile/appearance/tileInfo.d.ts +0 -21
- package/dist/types/components/Tile/appearance/tilePrimary.d.ts +0 -8
- package/dist/types/components/Tile/appearance/tileRequire.d.ts +0 -20
- package/dist/types/components/Tile/appearance/tileSecondary.d.ts +0 -8
- package/dist/types/components/Tile/appearance/tileStyle.d.ts +0 -16
- package/dist/types/components/Tile/appearance/tileSuccess.d.ts +0 -11
- package/dist/types/components/Tile/appearance/tileWarning.d.ts +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const inputPasswordAppearanceSize: {
|
|
2
2
|
sizeXXL: {
|
|
3
3
|
size: string;
|
|
4
|
-
|
|
4
|
+
textSize: string;
|
|
5
5
|
iconAfterFillSize: string;
|
|
6
6
|
iconAfterSize: string;
|
|
7
7
|
iconBeforeFillSize: string;
|
|
@@ -9,7 +9,7 @@ declare const inputPasswordAppearanceSize: {
|
|
|
9
9
|
};
|
|
10
10
|
sizeXL: {
|
|
11
11
|
size: string;
|
|
12
|
-
|
|
12
|
+
textSize: string;
|
|
13
13
|
iconAfterFillSize: string;
|
|
14
14
|
iconAfterSize: string;
|
|
15
15
|
iconBeforeFillSize: string;
|
|
@@ -17,7 +17,7 @@ declare const inputPasswordAppearanceSize: {
|
|
|
17
17
|
};
|
|
18
18
|
sizeL: {
|
|
19
19
|
size: string;
|
|
20
|
-
|
|
20
|
+
textSize: string;
|
|
21
21
|
iconAfterFillSize: string;
|
|
22
22
|
iconAfterSize: string;
|
|
23
23
|
iconBeforeFillSize: string;
|
|
@@ -25,7 +25,7 @@ declare const inputPasswordAppearanceSize: {
|
|
|
25
25
|
};
|
|
26
26
|
sizeM: {
|
|
27
27
|
size: string;
|
|
28
|
-
|
|
28
|
+
textSize: string;
|
|
29
29
|
iconAfterFillSize: string;
|
|
30
30
|
iconAfterSize: string;
|
|
31
31
|
iconBeforeFillSize: string;
|
|
@@ -33,7 +33,7 @@ declare const inputPasswordAppearanceSize: {
|
|
|
33
33
|
};
|
|
34
34
|
sizeS: {
|
|
35
35
|
size: string;
|
|
36
|
-
|
|
36
|
+
textSize: string;
|
|
37
37
|
iconAfterFillSize: string;
|
|
38
38
|
iconAfterSize: string;
|
|
39
39
|
iconBeforeFillSize: string;
|
|
@@ -41,7 +41,7 @@ declare const inputPasswordAppearanceSize: {
|
|
|
41
41
|
};
|
|
42
42
|
sizeXS: {
|
|
43
43
|
size: string;
|
|
44
|
-
|
|
44
|
+
textSize: string;
|
|
45
45
|
iconAfterFillSize: string;
|
|
46
46
|
iconAfterSize: string;
|
|
47
47
|
iconBeforeFillSize: string;
|
|
@@ -49,7 +49,7 @@ declare const inputPasswordAppearanceSize: {
|
|
|
49
49
|
};
|
|
50
50
|
sizeXXS: {
|
|
51
51
|
size: string;
|
|
52
|
-
|
|
52
|
+
textSize: string;
|
|
53
53
|
iconAfterFillSize: string;
|
|
54
54
|
iconAfterSize: string;
|
|
55
55
|
iconBeforeFillSize: string;
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
declare const inputPasswordAppearanceSuccess: {
|
|
2
|
-
|
|
2
|
+
successPrimary: {
|
|
3
3
|
fill: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
borderColor: string;
|
|
5
|
+
borderHover: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
iconBeforeFill: string;
|
|
8
|
+
iconClearFill: string;
|
|
9
|
+
placeholderTextColor: string;
|
|
10
|
+
};
|
|
11
|
+
successSecondary: {
|
|
12
|
+
fill: string;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
borderHover: string;
|
|
15
|
+
iconBeforeFill: string;
|
|
16
|
+
iconClearFill: string;
|
|
17
|
+
placeholderTextColor: string;
|
|
9
18
|
};
|
|
10
19
|
};
|
|
11
20
|
export { inputPasswordAppearanceSuccess };
|
|
@@ -4,6 +4,13 @@ declare const labelAppearanceAccent: {
|
|
|
4
4
|
labelTextColor: string;
|
|
5
5
|
labelTextColorHover: string;
|
|
6
6
|
};
|
|
7
|
+
accentPrimary: {
|
|
8
|
+
fill: string;
|
|
9
|
+
labelTextColor: string;
|
|
10
|
+
labelTextColorHover: string;
|
|
11
|
+
iconBeforeFillIcon: string;
|
|
12
|
+
iconAfterFillIcon: string;
|
|
13
|
+
};
|
|
7
14
|
accentTertiary: {
|
|
8
15
|
fill: string;
|
|
9
16
|
labelTextColor: string;
|
|
@@ -56,9 +56,9 @@ export interface LinkWrapperProps extends LinkThemeColor, StyleAttributes {
|
|
|
56
56
|
children?: ReactNode;
|
|
57
57
|
className?: string;
|
|
58
58
|
Component?: ElementType;
|
|
59
|
-
DefaultComponent?: ElementType;
|
|
60
59
|
disabled?: boolean;
|
|
61
60
|
href?: string;
|
|
61
|
+
LinkComponent?: ElementType;
|
|
62
62
|
rel?: string;
|
|
63
63
|
style?: CSSProperties;
|
|
64
64
|
target?: string;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
declare const menuItemAppearanceSurface: {
|
|
2
2
|
surfacePrimary: {
|
|
3
3
|
fill: string;
|
|
4
|
+
fillActive: string;
|
|
5
|
+
fillActiveHover: string;
|
|
4
6
|
fillHover: string;
|
|
5
7
|
labelTextColor: string;
|
|
8
|
+
iconAfterFillIcon: string;
|
|
9
|
+
iconBeforeFillIcon: string;
|
|
6
10
|
};
|
|
7
11
|
surfaceQuaternary: {
|
|
8
12
|
fill: string;
|
|
@@ -13,8 +17,6 @@ declare const menuItemAppearanceSurface: {
|
|
|
13
17
|
fill: string;
|
|
14
18
|
fillHover: string;
|
|
15
19
|
labelTextColor: string;
|
|
16
|
-
loaderFill: string;
|
|
17
|
-
loaderItemFill: string;
|
|
18
20
|
};
|
|
19
21
|
surfaceTertiary: {
|
|
20
22
|
fill: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ModalSheetBottomProps } from './ModalSheetBottom.interface';
|
|
2
|
-
declare
|
|
3
|
+
declare const ModalSheetBottom: React.ForwardRefExoticComponent<ModalSheetBottomProps & React.RefAttributes<ModalSheetBottomRef>>;
|
|
3
4
|
export { ModalSheetBottom };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const responseAppearanceConfirm: {
|
|
2
|
+
confirm: {
|
|
3
|
+
fill: string;
|
|
4
|
+
titleTextColor: string;
|
|
5
|
+
labelTextColor: string;
|
|
6
|
+
primaryButtonAppearance: string;
|
|
7
|
+
secondaryButtonAppearance: string;
|
|
8
|
+
svgFill: string;
|
|
9
|
+
SvgImage: any;
|
|
10
|
+
svgPathFill: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export { responseAppearanceConfirm };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const responseAppearanceFail: {
|
|
2
|
+
fail: {
|
|
3
|
+
fill: string;
|
|
4
|
+
titleTextColor: string;
|
|
5
|
+
labelTextColor: string;
|
|
6
|
+
primaryButtonAppearance: string;
|
|
7
|
+
secondaryButtonAppearance: string;
|
|
8
|
+
svgFill: string;
|
|
9
|
+
SvgImage: any;
|
|
10
|
+
svgPathFill: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export { responseAppearanceFail };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const responseAppearanceNothingFound: {
|
|
2
|
+
nothingFound: {
|
|
3
|
+
fill: string;
|
|
4
|
+
titleTextColor: string;
|
|
5
|
+
labelTextColor: string;
|
|
6
|
+
primaryButtonAppearance: string;
|
|
7
|
+
secondaryButtonAppearance: string;
|
|
8
|
+
svgFill: string;
|
|
9
|
+
SvgImage: any;
|
|
10
|
+
svgPathFill: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export { responseAppearanceNothingFound };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const responseAppearanceRefresh: {
|
|
2
|
+
refresh: {
|
|
3
|
+
fill: string;
|
|
4
|
+
titleTextColor: string;
|
|
5
|
+
labelTextColor: string;
|
|
6
|
+
primaryButtonAppearance: string;
|
|
7
|
+
secondaryButtonAppearance: string;
|
|
8
|
+
svgFill: string;
|
|
9
|
+
SvgImage: any;
|
|
10
|
+
svgPathFill: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export { responseAppearanceRefresh };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
declare const responseAppearanceError: {
|
|
2
2
|
error: {
|
|
3
3
|
fill: string;
|
|
4
|
-
|
|
4
|
+
titleTextColor: string;
|
|
5
5
|
labelTextColor: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
primaryButtonAppearance: string;
|
|
7
|
+
secondaryButtonAppearance: string;
|
|
8
|
+
svgFill: string;
|
|
9
|
+
SvgImage: any;
|
|
10
|
+
svgPathFill: string;
|
|
9
11
|
};
|
|
10
12
|
};
|
|
11
13
|
export { responseAppearanceError };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
declare const responseAppearanceSuccess: {
|
|
2
2
|
success: {
|
|
3
3
|
fill: string;
|
|
4
|
-
|
|
4
|
+
titleTextColor: string;
|
|
5
5
|
labelTextColor: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
primaryButtonAppearance: string;
|
|
7
|
+
secondaryButtonAppearance: string;
|
|
8
|
+
svgFill: string;
|
|
9
|
+
SvgImage: any;
|
|
10
|
+
svgPathFill: string;
|
|
9
11
|
};
|
|
10
12
|
};
|
|
11
13
|
export { responseAppearanceSuccess };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const responseAppearanceUnableLoadData: {
|
|
2
|
+
unableLoadData: {
|
|
3
|
+
fill: string;
|
|
4
|
+
titleTextColor: string;
|
|
5
|
+
labelTextColor: string;
|
|
6
|
+
primaryButtonAppearance: string;
|
|
7
|
+
secondaryButtonAppearance: string;
|
|
8
|
+
svgFill: string;
|
|
9
|
+
SvgImage: any;
|
|
10
|
+
svgPathFill: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export { responseAppearanceUnableLoadData };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
declare const responseAppearanceWarning: {
|
|
2
2
|
warning: {
|
|
3
3
|
fill: string;
|
|
4
|
-
|
|
4
|
+
titleTextColor: string;
|
|
5
5
|
labelTextColor: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
primaryButtonAppearance: string;
|
|
7
|
+
secondaryButtonAppearance: string;
|
|
8
|
+
svgFill: string;
|
|
9
|
+
SvgImage: any;
|
|
10
|
+
svgPathFill: string;
|
|
9
11
|
};
|
|
10
12
|
};
|
|
11
13
|
export { responseAppearanceWarning };
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
declare const tileAppearanceSize: {
|
|
2
|
-
sizeXXL: {
|
|
3
|
-
size: string;
|
|
4
|
-
labelTextSize: string;
|
|
5
|
-
iconAfterFillSize: string;
|
|
6
|
-
iconAfterSize: string;
|
|
7
|
-
iconBeforeFillSize: string;
|
|
8
|
-
iconBeforeSize: string;
|
|
9
|
-
};
|
|
10
2
|
sizeXL: {
|
|
11
3
|
size: string;
|
|
12
4
|
labelTextSize: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.23",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -97,12 +97,10 @@
|
|
|
97
97
|
"dependencies": {
|
|
98
98
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
99
99
|
"@itcase/common": "^1.2.26",
|
|
100
|
-
"@itcase/config": "^1.0.47",
|
|
101
100
|
"@itcase/icons": "^1.1.1",
|
|
102
101
|
"@itcase/storybook-config": "^1.1.13",
|
|
103
102
|
"@itcase/tokens-am": "^1.1.9",
|
|
104
103
|
"@itcase/tokens-baikal": "^1.1.9",
|
|
105
|
-
"@itcase/types": "^1.0.4",
|
|
106
104
|
"@itcase/tokens-palette": "^1.1.11",
|
|
107
105
|
"clsx": "^2.1.1",
|
|
108
106
|
"date-fns": "^4.1.0",
|
|
@@ -111,7 +109,7 @@
|
|
|
111
109
|
"framer-motion": "^12.16.0",
|
|
112
110
|
"js-cookie": "^3.0.5",
|
|
113
111
|
"lodash": "^4.17.21",
|
|
114
|
-
"motion": "^12.
|
|
112
|
+
"motion": "^12.17.0",
|
|
115
113
|
"rc-slider": "^11.1.8",
|
|
116
114
|
"react": "^18.3.1",
|
|
117
115
|
"react-dadata": "^2.27.4",
|
|
@@ -136,7 +134,9 @@
|
|
|
136
134
|
"@babel/preset-react": "^7.27.1",
|
|
137
135
|
"@commitlint/cli": "^19.8.1",
|
|
138
136
|
"@commitlint/config-conventional": "^19.8.1",
|
|
137
|
+
"@itcase/config": "^1.0.47",
|
|
139
138
|
"@itcase/lint": "^1.1.10",
|
|
139
|
+
"@itcase/types": "^1.0.4",
|
|
140
140
|
"@rollup/plugin-alias": "^5.1.1",
|
|
141
141
|
"@rollup/plugin-babel": "^6.0.4",
|
|
142
142
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
@@ -148,7 +148,6 @@
|
|
|
148
148
|
"@semantic-release/changelog": "^6.0.3",
|
|
149
149
|
"@semantic-release/git": "^10.0.1",
|
|
150
150
|
"@semantic-release/release-notes-generator": "14.0.3",
|
|
151
|
-
"@svgr/webpack": "^8.1.0",
|
|
152
151
|
"@types/js-cookie": "^3.0.6",
|
|
153
152
|
"@types/lodash": "^4.17.17",
|
|
154
153
|
"@types/react": "^19",
|
|
@@ -167,9 +166,8 @@
|
|
|
167
166
|
"npm": "^11.4.1",
|
|
168
167
|
"postcss": "^8.5.4",
|
|
169
168
|
"prettier": "^3.5.3",
|
|
170
|
-
"react-docgen-typescript": "^2.
|
|
171
|
-
"
|
|
172
|
-
"rollup": "^4.41.1",
|
|
169
|
+
"react-docgen-typescript": "^2.4.0",
|
|
170
|
+
"rollup": "^4.43.0",
|
|
173
171
|
"rollup-plugin-copy": "^3.5.0",
|
|
174
172
|
"rollup-plugin-dts": "^6.2.1",
|
|
175
173
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var clsx = require('clsx');
|
|
7
|
-
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
require('lodash/camelCase');
|
|
9
|
-
require('lodash/castArray');
|
|
10
|
-
require('lodash/upperFirst');
|
|
11
|
-
require('../context/Notifications.js');
|
|
12
|
-
require('uuid');
|
|
13
|
-
require('@itcase/common');
|
|
14
|
-
require('../context/UIContext.js');
|
|
15
|
-
require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
16
|
-
require('react-responsive');
|
|
17
|
-
require('../utils/setViewportProperty.js');
|
|
18
|
-
|
|
19
|
-
var inputMaskConfig = {
|
|
20
|
-
appearance: undefined,
|
|
21
|
-
state: undefined,
|
|
22
|
-
setAppearance: function (appearanceConfig) {
|
|
23
|
-
inputMaskConfig.appearance = appearanceConfig;
|
|
24
|
-
},
|
|
25
|
-
setState: function (newComponent) {
|
|
26
|
-
inputMaskConfig.state = newComponent;
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
var InputMask = React.forwardRef(function Input(props, ref) {
|
|
30
|
-
var id = props.id, className = props.className,
|
|
31
|
-
// state,
|
|
32
|
-
_a = props.type,
|
|
33
|
-
// state,
|
|
34
|
-
type = _a === void 0 ? 'text' : _a, name = props.name, appearance = props.appearance, isDisabled = props.isDisabled, dataTestId = props.dataTestId, index = props.index, placeholder = props.placeholder, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
|
|
35
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
36
|
-
var _a;
|
|
37
|
-
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = inputMaskConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
38
|
-
}, {});
|
|
39
|
-
// const stateConfig = useMemo(
|
|
40
|
-
// () => state && inputMaskConfig.state && inputMaskConfig.state[state],
|
|
41
|
-
// [state, inputMaskConfig],
|
|
42
|
-
// )
|
|
43
|
-
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
44
|
-
var fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, borderColorClass = propsGenerator.borderColorClass, borderColorDisabledClass = propsGenerator.borderColorDisabledClass, borderWidthClass = propsGenerator.borderWidthClass, borderWidthDisabledClass = propsGenerator.borderWidthDisabledClass, textColorClass = propsGenerator.textColorClass, textColorDisabledClass = propsGenerator.textColorDisabledClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, placeholderTextColorDisabledClass = propsGenerator.placeholderTextColorDisabledClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, _b = propsGenerator.sizeClass, sizeClass = _b === void 0 ? 'm' : _b, widthClass = propsGenerator.widthClass;
|
|
45
|
-
return (jsxRuntime.jsx("input", { id: String(id), className: clsx(className, 'input', type === 'number' && 'input_type_number', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), !isDisabled
|
|
46
|
-
? fillClass && "fill_".concat(fillClass)
|
|
47
|
-
: fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), shapeClass && "input_shape_".concat(shapeClass), textSizeClass && "text_size_".concat(textSizeClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass), !isDisabled
|
|
48
|
-
? borderWidthClass && "border-width_".concat(borderWidthClass)
|
|
49
|
-
: borderWidthDisabledClass &&
|
|
50
|
-
"border-width_disabled_".concat(borderWidthDisabledClass), sizeClass && "input_size_".concat(sizeClass), !isDisabled
|
|
51
|
-
? borderColorClass && "border-color_".concat(borderColorClass)
|
|
52
|
-
: borderColorDisabledClass &&
|
|
53
|
-
"border-color_disabled_".concat(borderColorDisabledClass), !isDisabled
|
|
54
|
-
? placeholderTextColorClass &&
|
|
55
|
-
"placeholder-text-color_".concat(placeholderTextColorClass)
|
|
56
|
-
: placeholderTextColorDisabledClass &&
|
|
57
|
-
"placeholder-text-color_disabled_".concat(placeholderTextColorDisabledClass), !isDisabled
|
|
58
|
-
? textColorClass && "text-color_".concat(textColorClass)
|
|
59
|
-
: textColorDisabledClass && "text-color_".concat(textColorDisabledClass)), type: type, disabled: isDisabled, "data-test-id": dataTestId || (name ? "".concat(name, "InputMask") : 'inputMask'), index: index, placeholder: placeholder,
|
|
60
|
-
// @ts-expect-error
|
|
61
|
-
ref: ref, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }));
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
exports.InputMask = InputMask;
|
|
65
|
-
exports.inputMaskConfig = inputMaskConfig;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var clsx = require('clsx');
|
|
7
|
-
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Group = require('../../Group_cjs_Cwt0gWk4.js');
|
|
10
|
-
var Text = require('../../Text_cjs_DPhKj3wf.js');
|
|
11
|
-
require('lodash/camelCase');
|
|
12
|
-
require('lodash/castArray');
|
|
13
|
-
require('lodash/upperFirst');
|
|
14
|
-
require('../context/Notifications.js');
|
|
15
|
-
require('uuid');
|
|
16
|
-
require('@itcase/common');
|
|
17
|
-
require('../context/UIContext.js');
|
|
18
|
-
require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
19
|
-
require('react-responsive');
|
|
20
|
-
require('../utils/setViewportProperty.js');
|
|
21
|
-
require('lodash/maxBy');
|
|
22
|
-
require('../hooks/useStyles/styleAttributes.js');
|
|
23
|
-
|
|
24
|
-
var panelConfig = {
|
|
25
|
-
appearance: undefined,
|
|
26
|
-
setAppearance: function (appearanceConfig) {
|
|
27
|
-
panelConfig.appearance = appearanceConfig;
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
var Panel = React.forwardRef(function Panel(props, ref) {
|
|
31
|
-
var className = props.className, appearance = props.appearance, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, desc = props.desc, descTextColor = props.descTextColor, descTextSize = props.descTextSize, descTextWeight = props.descTextWeight, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, htmlFor = props.htmlFor, verticalScroll = props.verticalScroll, set = props.set, children = props.children;
|
|
32
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
33
|
-
var _a;
|
|
34
|
-
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = panelConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
35
|
-
}, {});
|
|
36
|
-
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
37
|
-
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignContentClass = propsGenerator.alignContentClass, alignItemsClass = propsGenerator.alignItemsClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, heightClass = propsGenerator.heightClass, positionClass = propsGenerator.positionClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
38
|
-
// @ts-expect-error
|
|
39
|
-
var _a = useStyles.useStyles(props), panelStyles = _a.styles, panelWrapperStyles = _a.wrapper;
|
|
40
|
-
return (jsxRuntime.jsxs(Group.Group, { className: clsx(className, 'panel', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), set && "panel_set_".concat(set), wrapClass && "flex_wrap_".concat(wrapClass), shapeClass && "panel_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), alignContentClass && "panel_align-content_".concat(alignContentClass), alignItemsClass && "panel_align-items_".concat(alignItemsClass), elevationClass && "elevation_".concat(elevationClass), justifyContentClass && "panel_justify-content_".concat(justifyContentClass), positionClass && "position_".concat(positionClass), horizontalScroll && 'panel_type_scroll_horizontal', verticalScroll && 'panel_type_scroll_vertical'), "data-tour": dataTour, htmlFor: htmlFor, ref: ref, style: panelStyles, children: [title && (jsxRuntime.jsx("div", { className: "panel__header", children: jsxRuntime.jsx(Text.Text, { className: "panel__title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title }) })), jsxRuntime.jsx("div", { className: clsx('panel__wrapper', directionClass && "panel_direction_".concat(directionClass)), style: panelWrapperStyles, children: children }), desc && (jsxRuntime.jsx("div", { className: "panel__footer", children: jsxRuntime.jsx(Text.Text, { className: "panel__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }) }))] }));
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
exports.Panel = Panel;
|
|
44
|
-
exports.panelConfig = panelConfig;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
|
-
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import 'lodash/camelCase';
|
|
7
|
-
import 'lodash/castArray';
|
|
8
|
-
import 'lodash/upperFirst';
|
|
9
|
-
import '../context/Notifications.js';
|
|
10
|
-
import 'uuid';
|
|
11
|
-
import '@itcase/common';
|
|
12
|
-
import '../context/UIContext.js';
|
|
13
|
-
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
14
|
-
import 'react-responsive';
|
|
15
|
-
import '../utils/setViewportProperty.js';
|
|
16
|
-
|
|
17
|
-
var inputMaskConfig = {
|
|
18
|
-
appearance: undefined,
|
|
19
|
-
state: undefined,
|
|
20
|
-
setAppearance: function (appearanceConfig) {
|
|
21
|
-
inputMaskConfig.appearance = appearanceConfig;
|
|
22
|
-
},
|
|
23
|
-
setState: function (newComponent) {
|
|
24
|
-
inputMaskConfig.state = newComponent;
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
var InputMask = React.forwardRef(function Input(props, ref) {
|
|
28
|
-
var id = props.id, className = props.className,
|
|
29
|
-
// state,
|
|
30
|
-
_a = props.type,
|
|
31
|
-
// state,
|
|
32
|
-
type = _a === void 0 ? 'text' : _a, name = props.name, appearance = props.appearance, isDisabled = props.isDisabled, dataTestId = props.dataTestId, index = props.index, placeholder = props.placeholder, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
|
|
33
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
34
|
-
var _a;
|
|
35
|
-
return (__assign(__assign({}, resultConfig), (_a = inputMaskConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
36
|
-
}, {});
|
|
37
|
-
// const stateConfig = useMemo(
|
|
38
|
-
// () => state && inputMaskConfig.state && inputMaskConfig.state[state],
|
|
39
|
-
// [state, inputMaskConfig],
|
|
40
|
-
// )
|
|
41
|
-
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
42
|
-
var fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, borderColorClass = propsGenerator.borderColorClass, borderColorDisabledClass = propsGenerator.borderColorDisabledClass, borderWidthClass = propsGenerator.borderWidthClass, borderWidthDisabledClass = propsGenerator.borderWidthDisabledClass, textColorClass = propsGenerator.textColorClass, textColorDisabledClass = propsGenerator.textColorDisabledClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, placeholderTextColorDisabledClass = propsGenerator.placeholderTextColorDisabledClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, _b = propsGenerator.sizeClass, sizeClass = _b === void 0 ? 'm' : _b, widthClass = propsGenerator.widthClass;
|
|
43
|
-
return (jsx("input", { id: String(id), className: clsx(className, 'input', type === 'number' && 'input_type_number', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), !isDisabled
|
|
44
|
-
? fillClass && "fill_".concat(fillClass)
|
|
45
|
-
: fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), shapeClass && "input_shape_".concat(shapeClass), textSizeClass && "text_size_".concat(textSizeClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass), !isDisabled
|
|
46
|
-
? borderWidthClass && "border-width_".concat(borderWidthClass)
|
|
47
|
-
: borderWidthDisabledClass &&
|
|
48
|
-
"border-width_disabled_".concat(borderWidthDisabledClass), sizeClass && "input_size_".concat(sizeClass), !isDisabled
|
|
49
|
-
? borderColorClass && "border-color_".concat(borderColorClass)
|
|
50
|
-
: borderColorDisabledClass &&
|
|
51
|
-
"border-color_disabled_".concat(borderColorDisabledClass), !isDisabled
|
|
52
|
-
? placeholderTextColorClass &&
|
|
53
|
-
"placeholder-text-color_".concat(placeholderTextColorClass)
|
|
54
|
-
: placeholderTextColorDisabledClass &&
|
|
55
|
-
"placeholder-text-color_disabled_".concat(placeholderTextColorDisabledClass), !isDisabled
|
|
56
|
-
? textColorClass && "text-color_".concat(textColorClass)
|
|
57
|
-
: textColorDisabledClass && "text-color_".concat(textColorDisabledClass)), type: type, disabled: isDisabled, "data-test-id": dataTestId || (name ? "".concat(name, "InputMask") : 'inputMask'), index: index, placeholder: placeholder,
|
|
58
|
-
// @ts-expect-error
|
|
59
|
-
ref: ref, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }));
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
export { InputMask, inputMaskConfig };
|
package/dist/components/Panel.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
|
-
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { G as Group } from '../Group_es_CYW2Hquh.js';
|
|
8
|
-
import { T as Text } from '../Text_es_BRb3qqKM.js';
|
|
9
|
-
import 'lodash/camelCase';
|
|
10
|
-
import 'lodash/castArray';
|
|
11
|
-
import 'lodash/upperFirst';
|
|
12
|
-
import '../context/Notifications.js';
|
|
13
|
-
import 'uuid';
|
|
14
|
-
import '@itcase/common';
|
|
15
|
-
import '../context/UIContext.js';
|
|
16
|
-
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
17
|
-
import 'react-responsive';
|
|
18
|
-
import '../utils/setViewportProperty.js';
|
|
19
|
-
import 'lodash/maxBy';
|
|
20
|
-
import '../hooks/useStyles/styleAttributes.js';
|
|
21
|
-
|
|
22
|
-
var panelConfig = {
|
|
23
|
-
appearance: undefined,
|
|
24
|
-
setAppearance: function (appearanceConfig) {
|
|
25
|
-
panelConfig.appearance = appearanceConfig;
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
var Panel = React.forwardRef(function Panel(props, ref) {
|
|
29
|
-
var className = props.className, appearance = props.appearance, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, desc = props.desc, descTextColor = props.descTextColor, descTextSize = props.descTextSize, descTextWeight = props.descTextWeight, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, htmlFor = props.htmlFor, verticalScroll = props.verticalScroll, set = props.set, children = props.children;
|
|
30
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
31
|
-
var _a;
|
|
32
|
-
return (__assign(__assign({}, resultConfig), (_a = panelConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
33
|
-
}, {});
|
|
34
|
-
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
35
|
-
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignContentClass = propsGenerator.alignContentClass, alignItemsClass = propsGenerator.alignItemsClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, heightClass = propsGenerator.heightClass, positionClass = propsGenerator.positionClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
36
|
-
// @ts-expect-error
|
|
37
|
-
var _a = useStyles(props), panelStyles = _a.styles, panelWrapperStyles = _a.wrapper;
|
|
38
|
-
return (jsxs(Group, { className: clsx(className, 'panel', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), set && "panel_set_".concat(set), wrapClass && "flex_wrap_".concat(wrapClass), shapeClass && "panel_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), alignContentClass && "panel_align-content_".concat(alignContentClass), alignItemsClass && "panel_align-items_".concat(alignItemsClass), elevationClass && "elevation_".concat(elevationClass), justifyContentClass && "panel_justify-content_".concat(justifyContentClass), positionClass && "position_".concat(positionClass), horizontalScroll && 'panel_type_scroll_horizontal', verticalScroll && 'panel_type_scroll_vertical'), "data-tour": dataTour, htmlFor: htmlFor, ref: ref, style: panelStyles, children: [title && (jsx("div", { className: "panel__header", children: jsx(Text, { className: "panel__title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title }) })), jsx("div", { className: clsx('panel__wrapper', directionClass && "panel_direction_".concat(directionClass)), style: panelWrapperStyles, children: children }), desc && (jsx("div", { className: "panel__footer", children: jsx(Text, { className: "panel__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }) }))] }));
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
export { Panel, panelConfig };
|