@itcase/ui 1.8.39 → 1.8.41
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_mqB6k6yB.js → Avatar_cjs_BbeDJ-No.js} +1 -1
- package/dist/{Avatar_es_DKL6hUIM.js → Avatar_es_B1Ao9Im_.js} +1 -1
- package/dist/{Button_cjs_CwduBuCx.js → Button_cjs_CcE72qEn.js} +3 -14
- package/dist/{Button_es_CBUUZuP3.js → Button_es_Cv4k5QQw.js} +3 -14
- package/dist/{ChipsGroup_cjs_Dq-QQCR_.js → ChipsGroup_cjs_p99H-9a8.js} +48 -64
- package/dist/{ChipsGroup_es_DdU5NMpc.js → ChipsGroup_es_CWq3TR_1.js} +48 -64
- package/dist/{DatePicker_cjs_0MnhwJnY.js → DatePicker_cjs_BC_SxUN5.js} +3 -3
- package/dist/{DatePicker_es_D4P4DT8L.js → DatePicker_es_DVIxGUlK.js} +3 -3
- package/dist/{DropdownItem_cjs_BuT4hQS1.js → DropdownItem_cjs_B1gGciTB.js} +26 -9
- package/dist/{DropdownItem_es_CrwvBzq_.js → DropdownItem_es_JVT4f6Nb.js} +26 -9
- package/dist/{Label_cjs_CKR9noZi.js → Label_cjs_Mb8j2bLu.js} +1 -5
- package/dist/{Label_es_Cz9OKQAr.js → Label_es_CIDBUVgO.js} +1 -5
- package/dist/{Tooltip_cjs_CiY50iRK.js → Tooltip_cjs_BBwH8sjA.js} +9 -2
- package/dist/{Tooltip_es_Cc2orRUE.js → Tooltip_es_Y2aoFQW7.js} +9 -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.js +1 -1
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +3 -2
- package/dist/cjs/components/Choice.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +6 -5
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown/stories/__mock__.js +27 -4
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.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 +1 -1
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +66 -21
- package/dist/cjs/components/Radio.js +45 -65
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented.js +19 -2
- package/dist/cjs/components/Select.js +3 -3
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Textarea.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/hooks/useAppearanceConfig/useAppearanceConfig.js +29 -0
- package/dist/cjs/hooks/useAppearanceConfig.js +9 -0
- 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.js +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +3 -2
- package/dist/components/Choice.js +1 -1
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +6 -5
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown/stories/__mock__.js +26 -5
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +67 -22
- package/dist/components/Radio.js +45 -65
- package/dist/components/Response.js +2 -2
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented.js +19 -2
- package/dist/components/Select.js +3 -3
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Textarea.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/css/components/Button/Button.css +7 -4
- package/dist/css/components/Dropdown/Dropdown.css +24 -0
- package/dist/css/components/Pagination/Pagination.css +82 -30
- package/dist/css/components/Pagination/css/__item/pagination__item.css +8 -8
- package/dist/css/components/Pagination/css/__item/pagination__item_size.css +8 -0
- package/dist/css/components/Pagination/css/__item/pagination__item_state_active.css +16 -16
- package/dist/css/components/Radio/Radio.css +44 -5
- package/dist/css/components/Select/Select.css +1 -0
- package/dist/css/components/Select/css/__indicators/select__indicators.css +1 -0
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/css/styles/fill/fill.css +2 -1
- package/dist/css/styles/fill/fill_active.css +3 -0
- package/dist/css/styles/fill/fill_active_hover.css +7 -0
- package/dist/css/styles/fill/fill_hover.css +5 -9
- package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +27 -0
- package/dist/hooks/useAppearanceConfig.js +3 -0
- package/dist/stories/ChipsOverview.mdx +10 -10
- package/dist/stories/ChipsPlayground.mdx +2 -2
- package/dist/stories/Components.mdx +378 -87
- package/dist/stories/useAppearanceConfig.mdx +83 -0
- package/dist/stories/useDevicePropsGenerator.mdx +6 -8
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +0 -11
- package/dist/types/components/Chips/appearance/chipsDisabled.d.ts +2 -3
- package/dist/types/components/Dropdown/appearance/dropdownAccent.d.ts +5 -0
- package/dist/types/components/Dropdown/appearance/dropdownSize.d.ts +9 -0
- package/dist/types/components/Dropdown/appearance/dropdownSurface.d.ts +3 -0
- package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +9 -12
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconDisabled.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconError.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconInfo.d.ts +0 -1
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconSuccess.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconSurface.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +1 -0
- package/dist/types/components/Label/appearance/labelError.d.ts +0 -1
- package/dist/types/components/Label/appearance/labelGradient.d.ts +8 -0
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +0 -1
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +0 -1
- package/dist/types/components/Label/appearance/labelSurface.d.ts +0 -1
- package/dist/types/components/Pagination/appearance/paginationAccent.d.ts +22 -1
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +20 -1
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +4 -1
- package/dist/types/components/Radio/Radio.appearance.d.ts +28 -48
- package/dist/types/components/Radio/appearance/radioDefault.d.ts +2 -14
- package/dist/types/components/Radio/appearance/radioDisabled.d.ts +5 -5
- package/dist/types/components/Radio/appearance/radioError.d.ts +6 -5
- package/dist/types/components/Radio/appearance/radioRequire.d.ts +5 -13
- package/dist/types/components/Radio/appearance/radioStyle.d.ts +4 -6
- package/dist/types/components/Radio/appearance/radioSuccess.d.ts +6 -5
- package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +17 -0
- package/dist/types/components/Segmented/appearance/segmentedSize.d.ts +1 -1
- package/dist/types/components/Select/SelectLoadingIndicator.d.ts +2 -1
- package/dist/types/config/forms/datepicker.d.ts +18 -0
- package/dist/types/config/forms/index.d.ts +3 -0
- package/dist/types/config/forms/input.d.ts +14 -0
- package/dist/types/hooks/useAppearanceConfig/index.d.ts +1 -0
- package/dist/types/hooks/useAppearanceConfig/useAppearanceConfig.d.ts +7 -0
- package/dist/types/hooks/useDevicePropsGenerator/index.d.ts +1 -0
- package/package.json +17 -17
- package/dist/types/hooks/useDeviceTargetClass.d.ts +0 -5
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var Tooltip = require('./
|
|
8
|
+
var Tooltip = require('./Tooltip_cjs_BBwH8sjA.js');
|
|
9
9
|
var Image = require('./Image_cjs_2zEjohYE.js');
|
|
10
10
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { I as Icon, B as Badge } from './
|
|
6
|
+
import { I as Icon, B as Badge } from './Tooltip_es_Y2aoFQW7.js';
|
|
7
7
|
import { I as Image } from './Image_es_ChF-63wh.js';
|
|
8
8
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
|
-
var Tooltip = require('./
|
|
7
|
+
var Tooltip = require('./Tooltip_cjs_BBwH8sjA.js');
|
|
8
8
|
var Link = require('./Link_cjs_DbRGq2Yk.js');
|
|
9
9
|
var Loader = require('./Loader_cjs_Ca4i0sER.js');
|
|
10
10
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
@@ -12,20 +12,9 @@ var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDe
|
|
|
12
12
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
13
13
|
|
|
14
14
|
var buttonAppearanceAccent = {
|
|
15
|
-
accent: {
|
|
16
|
-
fill: 'accentPrimary',
|
|
17
|
-
fillHover: 'accentHover',
|
|
18
|
-
labelTextColor: 'accentTextPrimary',
|
|
19
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
20
|
-
borderColor: 'accentBorderPrimary',
|
|
21
|
-
iconAfterFillIcon: 'accentItemPrimary',
|
|
22
|
-
iconBeforeFillIcon: 'accentItemPrimary',
|
|
23
|
-
iconFillIcon: 'accentItemPrimary',
|
|
24
|
-
loaderAppearance: 'accentPrimary',
|
|
25
|
-
},
|
|
26
15
|
accentPrimary: {
|
|
27
16
|
fill: 'accentPrimary',
|
|
28
|
-
fillHover: '
|
|
17
|
+
fillHover: 'accentHoverPrimary',
|
|
29
18
|
labelTextColor: 'accentTextPrimary',
|
|
30
19
|
labelTextColorHover: 'accentTextPrimary',
|
|
31
20
|
borderColor: 'accentBorderPrimary',
|
|
@@ -36,7 +25,7 @@ var buttonAppearanceAccent = {
|
|
|
36
25
|
},
|
|
37
26
|
accentSecondary: {
|
|
38
27
|
fill: 'accentPrimary',
|
|
39
|
-
fillHover: '
|
|
28
|
+
fillHover: 'accentHoverPrimary',
|
|
40
29
|
labelTextColor: 'accentTextSecondary',
|
|
41
30
|
labelTextColorHover: 'accentTextSecondary',
|
|
42
31
|
borderColor: 'accentBorderPrimary',
|
|
@@ -2,7 +2,7 @@ import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { I as Icon } from './
|
|
5
|
+
import { I as Icon } from './Tooltip_es_Y2aoFQW7.js';
|
|
6
6
|
import { a as LinkWrapper } from './Link_es_DxtZLeKY.js';
|
|
7
7
|
import { L as Loader } from './Loader_es_GYOr0UTX.js';
|
|
8
8
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
@@ -10,20 +10,9 @@ import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevi
|
|
|
10
10
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
11
11
|
|
|
12
12
|
var buttonAppearanceAccent = {
|
|
13
|
-
accent: {
|
|
14
|
-
fill: 'accentPrimary',
|
|
15
|
-
fillHover: 'accentHover',
|
|
16
|
-
labelTextColor: 'accentTextPrimary',
|
|
17
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
18
|
-
borderColor: 'accentBorderPrimary',
|
|
19
|
-
iconAfterFillIcon: 'accentItemPrimary',
|
|
20
|
-
iconBeforeFillIcon: 'accentItemPrimary',
|
|
21
|
-
iconFillIcon: 'accentItemPrimary',
|
|
22
|
-
loaderAppearance: 'accentPrimary',
|
|
23
|
-
},
|
|
24
13
|
accentPrimary: {
|
|
25
14
|
fill: 'accentPrimary',
|
|
26
|
-
fillHover: '
|
|
15
|
+
fillHover: 'accentHoverPrimary',
|
|
27
16
|
labelTextColor: 'accentTextPrimary',
|
|
28
17
|
labelTextColorHover: 'accentTextPrimary',
|
|
29
18
|
borderColor: 'accentBorderPrimary',
|
|
@@ -34,7 +23,7 @@ var buttonAppearanceAccent = {
|
|
|
34
23
|
},
|
|
35
24
|
accentSecondary: {
|
|
36
25
|
fill: 'accentPrimary',
|
|
37
|
-
fillHover: '
|
|
26
|
+
fillHover: 'accentHoverPrimary',
|
|
38
27
|
labelTextColor: 'accentTextSecondary',
|
|
39
28
|
labelTextColorHover: 'accentTextSecondary',
|
|
40
29
|
borderColor: 'accentBorderPrimary',
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var clsx = require('clsx');
|
|
5
|
-
var
|
|
6
|
-
var React = require('react');
|
|
5
|
+
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
7
6
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
7
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
9
|
-
var Tooltip = require('./
|
|
8
|
+
var Tooltip = require('./Tooltip_cjs_BBwH8sjA.js');
|
|
10
9
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
10
|
+
var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
11
11
|
|
|
12
12
|
var chipsAppearanceAccent = {
|
|
13
13
|
accent: {
|
|
@@ -17,11 +17,11 @@ var chipsAppearanceAccent = {
|
|
|
17
17
|
borderColor: 'accentBorderSecondary',
|
|
18
18
|
},
|
|
19
19
|
accentMutedPrimary: {
|
|
20
|
-
fill: '
|
|
21
|
-
labelTextColor: '
|
|
22
|
-
borderColor: '
|
|
23
|
-
iconAfterFillIcon: '
|
|
24
|
-
iconBeforeFillIcon: '
|
|
20
|
+
fill: 'accentTertiary',
|
|
21
|
+
labelTextColor: 'accentTextSecondary',
|
|
22
|
+
borderColor: 'accentBorderSecondary',
|
|
23
|
+
iconAfterFillIcon: 'accentItemQuaternary',
|
|
24
|
+
iconBeforeFillIcon: 'accentItemQuaternary',
|
|
25
25
|
},
|
|
26
26
|
accentPrimary: {
|
|
27
27
|
fill: 'accentPrimary',
|
|
@@ -34,11 +34,11 @@ var chipsAppearanceAccent = {
|
|
|
34
34
|
|
|
35
35
|
var chipsAppearanceDanger = {
|
|
36
36
|
dangerMutedPrimary: {
|
|
37
|
-
fill: '
|
|
38
|
-
labelTextColor: '
|
|
39
|
-
borderColor: '
|
|
40
|
-
iconAfterFillIcon: '
|
|
41
|
-
iconBeforeFillIcon: '
|
|
37
|
+
fill: 'dangerTertiary',
|
|
38
|
+
labelTextColor: 'dangerTextQuaternary',
|
|
39
|
+
borderColor: 'dangerBorderQuaternary',
|
|
40
|
+
iconAfterFillIcon: 'dangerItemQuaternary',
|
|
41
|
+
iconBeforeFillIcon: 'dangerItemQuaternary',
|
|
42
42
|
},
|
|
43
43
|
dangerPrimary: {
|
|
44
44
|
fill: 'dangerPrimary',
|
|
@@ -52,21 +52,20 @@ var chipsAppearanceDanger = {
|
|
|
52
52
|
var chipsAppearanceDisabled = {
|
|
53
53
|
disabled: {
|
|
54
54
|
fill: 'surfaceDisabled',
|
|
55
|
-
fillActive: 'surfaceDisabled',
|
|
56
|
-
fillHover: 'surfaceDisabled',
|
|
57
55
|
labelTextColor: 'surfaceTextDisabled',
|
|
58
|
-
labelTextHoverColor: 'surfaceTextDisabled',
|
|
59
56
|
borderColor: 'surfaceBorderDisabled',
|
|
57
|
+
iconAfterFillIcon: 'surfaceItemDisabled',
|
|
58
|
+
iconBeforeFillIcon: 'surfaceItemDisabled',
|
|
60
59
|
},
|
|
61
60
|
};
|
|
62
61
|
|
|
63
62
|
var chipsAppearanceError = {
|
|
64
63
|
errorMutedPrimary: {
|
|
65
|
-
fill: '
|
|
66
|
-
labelTextColor: '
|
|
67
|
-
borderColor: '
|
|
68
|
-
iconAfterFillIcon: '
|
|
69
|
-
iconBeforeFillIcon: '
|
|
64
|
+
fill: 'errorDisabled',
|
|
65
|
+
labelTextColor: 'errorTextQuaternary',
|
|
66
|
+
borderColor: 'errorBorderQuaternary',
|
|
67
|
+
iconAfterFillIcon: 'errorItemQuaternary',
|
|
68
|
+
iconBeforeFillIcon: 'errorItemQuaternary',
|
|
70
69
|
},
|
|
71
70
|
errorPrimary: {
|
|
72
71
|
fill: 'errorPrimary',
|
|
@@ -96,11 +95,11 @@ var chipsAppearanceInfo = {
|
|
|
96
95
|
|
|
97
96
|
var chipsAppearancePrimary = {
|
|
98
97
|
primaryMutedPrimary: {
|
|
99
|
-
fill: '
|
|
100
|
-
labelTextColor: '
|
|
101
|
-
borderColor: '
|
|
102
|
-
iconAfterFillIcon: '
|
|
103
|
-
iconBeforeFillIcon: '
|
|
98
|
+
fill: 'primaryDisabled',
|
|
99
|
+
labelTextColor: 'primaryTextSecondary',
|
|
100
|
+
borderColor: 'primaryBorderSecondary',
|
|
101
|
+
iconAfterFillIcon: 'primaryItemSecondary',
|
|
102
|
+
iconBeforeFillIcon: 'primaryItemSecondary',
|
|
104
103
|
},
|
|
105
104
|
primaryPrimary: {
|
|
106
105
|
fill: 'primaryPrimary',
|
|
@@ -113,11 +112,11 @@ var chipsAppearancePrimary = {
|
|
|
113
112
|
|
|
114
113
|
var chipsAppearanceSecondary = {
|
|
115
114
|
secondaryMutedPrimary: {
|
|
116
|
-
fill: '
|
|
117
|
-
labelTextColor: '
|
|
118
|
-
borderColor: '
|
|
119
|
-
iconAfterFillIcon: '
|
|
120
|
-
iconBeforeFillIcon: '
|
|
115
|
+
fill: 'secondaryDisabled',
|
|
116
|
+
labelTextColor: 'secondaryTextQuaternary',
|
|
117
|
+
borderColor: 'secondaryBorderSecondary',
|
|
118
|
+
iconAfterFillIcon: 'secondaryItemQuaternary',
|
|
119
|
+
iconBeforeFillIcon: 'secondaryItemQuaternary',
|
|
121
120
|
},
|
|
122
121
|
secondaryPrimary: {
|
|
123
122
|
fill: 'secondaryPrimary',
|
|
@@ -189,11 +188,11 @@ var chipsAppearanceStyle = {
|
|
|
189
188
|
|
|
190
189
|
var chipsAppearanceSuccess = {
|
|
191
190
|
successMutedPrimary: {
|
|
192
|
-
fill: '
|
|
193
|
-
labelTextColor: '
|
|
194
|
-
borderColor: '
|
|
195
|
-
iconAfterFillIcon: '
|
|
196
|
-
iconBeforeFillIcon: '
|
|
191
|
+
fill: 'successTertiary',
|
|
192
|
+
labelTextColor: 'successTextQuaternary',
|
|
193
|
+
borderColor: 'successBorderQuaternary',
|
|
194
|
+
iconAfterFillIcon: 'successItemQuaternary',
|
|
195
|
+
iconBeforeFillIcon: 'successItemQuaternary',
|
|
197
196
|
},
|
|
198
197
|
successPrimary: {
|
|
199
198
|
fill: 'successPrimary',
|
|
@@ -206,17 +205,17 @@ var chipsAppearanceSuccess = {
|
|
|
206
205
|
|
|
207
206
|
var chipsAppearanceSurface = {
|
|
208
207
|
surfaceMutedPrimary: {
|
|
209
|
-
fill: '
|
|
210
|
-
labelTextColor: '
|
|
211
|
-
borderColor: '
|
|
212
|
-
iconAfterFillIcon: '
|
|
213
|
-
iconBeforeFillIcon: '
|
|
208
|
+
fill: 'surfaceSecondary',
|
|
209
|
+
labelTextColor: 'surfaceTextQuaternary',
|
|
210
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
211
|
+
iconAfterFillIcon: 'surfaceItemQuaternary',
|
|
212
|
+
iconBeforeFillIcon: 'surfaceItemQuaternary',
|
|
214
213
|
},
|
|
215
214
|
surfacePrimary: {
|
|
216
215
|
fill: 'surfacePrimary',
|
|
217
216
|
fillActive: 'accentPrimary',
|
|
218
217
|
fillActiveHover: 'accentSecondary',
|
|
219
|
-
fillHover: '
|
|
218
|
+
fillHover: 'surfaceTertiary',
|
|
220
219
|
labelTextActiveColor: 'accentTextPrimary',
|
|
221
220
|
labelTextColor: 'surfaceTextPrimary',
|
|
222
221
|
labelTextHoverColor: 'surfaceTextPrimary',
|
|
@@ -244,11 +243,11 @@ var chipsAppearanceSurface = {
|
|
|
244
243
|
|
|
245
244
|
var chipsAppearanceWarning = {
|
|
246
245
|
warningMutedPrimary: {
|
|
247
|
-
fill: '
|
|
248
|
-
labelTextColor: '
|
|
249
|
-
borderColor: '
|
|
250
|
-
iconAfterFillIcon: '
|
|
251
|
-
iconBeforeFillIcon: '
|
|
246
|
+
fill: 'warningTertiary',
|
|
247
|
+
labelTextColor: 'warningTextSecondary',
|
|
248
|
+
borderColor: 'warningBorderSecondary',
|
|
249
|
+
iconAfterFillIcon: 'warningItemSecondary',
|
|
250
|
+
iconBeforeFillIcon: 'warningItemSecondary',
|
|
252
251
|
},
|
|
253
252
|
warningPrimary: {
|
|
254
253
|
fill: 'warningPrimary',
|
|
@@ -269,22 +268,7 @@ var chipsConfig = {
|
|
|
269
268
|
};
|
|
270
269
|
function Chips(props) {
|
|
271
270
|
var className = props.className, appearance = props.appearance, _a = props.label, label = _a === void 0 ? '' : _a, isDisabled = props.isDisabled, dataTestId = props.dataTestId, dataTour = props.dataTour, iconAfter = props.iconAfter, iconAfterSrc = props.iconAfterSrc, iconBefore = props.iconBefore, iconBeforeSrc = props.iconBeforeSrc, isActive = props.isActive, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
|
|
272
|
-
var appearanceConfig =
|
|
273
|
-
if (appearance) {
|
|
274
|
-
var appearanceProps = appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
275
|
-
var _a;
|
|
276
|
-
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = chipsConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
277
|
-
}, {});
|
|
278
|
-
if (isDisabled && chipsConfig.appearance.disabled) {
|
|
279
|
-
Object.assign(appearanceProps, chipsConfig.appearance.disabled);
|
|
280
|
-
}
|
|
281
|
-
return appearanceProps;
|
|
282
|
-
}
|
|
283
|
-
if (isDisabled) {
|
|
284
|
-
return chipsConfig.appearance.disabled;
|
|
285
|
-
}
|
|
286
|
-
return {};
|
|
287
|
-
}, [appearance, isDisabled]);
|
|
271
|
+
var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, chipsConfig, isDisabled).appearanceConfig;
|
|
288
272
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
289
273
|
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActiveIcon = propsGenerator.iconAfterFillActiveIcon, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActiveIcon = propsGenerator.iconBeforeFillActiveIcon, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
|
|
290
274
|
var chipsStyles = useStyles.useStyles(props).styles;
|
|
@@ -292,7 +276,7 @@ function Chips(props) {
|
|
|
292
276
|
? fillClass && "fill_".concat(fillClass)
|
|
293
277
|
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
294
278
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
295
|
-
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isActive && 'chips_state_active', isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer', isSkeleton && "chips_skeleton"), "data-testid": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxRuntime.jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconFillActive: iconBeforeFillActiveIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore, isActive: isActive })), typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveHoverColor, textColorHover: labelTextHoverColor, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: label })) : (jsxRuntime.jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill,
|
|
279
|
+
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isActive && 'chips_state_active', isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer', isSkeleton && "chips_skeleton"), "data-testid": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxRuntime.jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconFillActive: iconBeforeFillActiveIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore, isActive: isActive })), typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveHoverColor, textColorHover: labelTextHoverColor, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: label })) : (jsxRuntime.jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconFillActive: iconAfterFillActiveIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter, isActive: isActive })), badgeValue && (jsxRuntime.jsx(Tooltip.Badge, { className: "chips__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue }))] }) }));
|
|
296
280
|
}
|
|
297
281
|
|
|
298
282
|
function ChipsGroup(props) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import {
|
|
4
|
-
import { useMemo } from 'react';
|
|
3
|
+
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
4
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
5
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon, B as Badge } from './
|
|
6
|
+
import { I as Icon, B as Badge } from './Tooltip_es_Y2aoFQW7.js';
|
|
8
7
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
8
|
+
import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
|
|
10
10
|
var chipsAppearanceAccent = {
|
|
11
11
|
accent: {
|
|
@@ -15,11 +15,11 @@ var chipsAppearanceAccent = {
|
|
|
15
15
|
borderColor: 'accentBorderSecondary',
|
|
16
16
|
},
|
|
17
17
|
accentMutedPrimary: {
|
|
18
|
-
fill: '
|
|
19
|
-
labelTextColor: '
|
|
20
|
-
borderColor: '
|
|
21
|
-
iconAfterFillIcon: '
|
|
22
|
-
iconBeforeFillIcon: '
|
|
18
|
+
fill: 'accentTertiary',
|
|
19
|
+
labelTextColor: 'accentTextSecondary',
|
|
20
|
+
borderColor: 'accentBorderSecondary',
|
|
21
|
+
iconAfterFillIcon: 'accentItemQuaternary',
|
|
22
|
+
iconBeforeFillIcon: 'accentItemQuaternary',
|
|
23
23
|
},
|
|
24
24
|
accentPrimary: {
|
|
25
25
|
fill: 'accentPrimary',
|
|
@@ -32,11 +32,11 @@ var chipsAppearanceAccent = {
|
|
|
32
32
|
|
|
33
33
|
var chipsAppearanceDanger = {
|
|
34
34
|
dangerMutedPrimary: {
|
|
35
|
-
fill: '
|
|
36
|
-
labelTextColor: '
|
|
37
|
-
borderColor: '
|
|
38
|
-
iconAfterFillIcon: '
|
|
39
|
-
iconBeforeFillIcon: '
|
|
35
|
+
fill: 'dangerTertiary',
|
|
36
|
+
labelTextColor: 'dangerTextQuaternary',
|
|
37
|
+
borderColor: 'dangerBorderQuaternary',
|
|
38
|
+
iconAfterFillIcon: 'dangerItemQuaternary',
|
|
39
|
+
iconBeforeFillIcon: 'dangerItemQuaternary',
|
|
40
40
|
},
|
|
41
41
|
dangerPrimary: {
|
|
42
42
|
fill: 'dangerPrimary',
|
|
@@ -50,21 +50,20 @@ var chipsAppearanceDanger = {
|
|
|
50
50
|
var chipsAppearanceDisabled = {
|
|
51
51
|
disabled: {
|
|
52
52
|
fill: 'surfaceDisabled',
|
|
53
|
-
fillActive: 'surfaceDisabled',
|
|
54
|
-
fillHover: 'surfaceDisabled',
|
|
55
53
|
labelTextColor: 'surfaceTextDisabled',
|
|
56
|
-
labelTextHoverColor: 'surfaceTextDisabled',
|
|
57
54
|
borderColor: 'surfaceBorderDisabled',
|
|
55
|
+
iconAfterFillIcon: 'surfaceItemDisabled',
|
|
56
|
+
iconBeforeFillIcon: 'surfaceItemDisabled',
|
|
58
57
|
},
|
|
59
58
|
};
|
|
60
59
|
|
|
61
60
|
var chipsAppearanceError = {
|
|
62
61
|
errorMutedPrimary: {
|
|
63
|
-
fill: '
|
|
64
|
-
labelTextColor: '
|
|
65
|
-
borderColor: '
|
|
66
|
-
iconAfterFillIcon: '
|
|
67
|
-
iconBeforeFillIcon: '
|
|
62
|
+
fill: 'errorDisabled',
|
|
63
|
+
labelTextColor: 'errorTextQuaternary',
|
|
64
|
+
borderColor: 'errorBorderQuaternary',
|
|
65
|
+
iconAfterFillIcon: 'errorItemQuaternary',
|
|
66
|
+
iconBeforeFillIcon: 'errorItemQuaternary',
|
|
68
67
|
},
|
|
69
68
|
errorPrimary: {
|
|
70
69
|
fill: 'errorPrimary',
|
|
@@ -94,11 +93,11 @@ var chipsAppearanceInfo = {
|
|
|
94
93
|
|
|
95
94
|
var chipsAppearancePrimary = {
|
|
96
95
|
primaryMutedPrimary: {
|
|
97
|
-
fill: '
|
|
98
|
-
labelTextColor: '
|
|
99
|
-
borderColor: '
|
|
100
|
-
iconAfterFillIcon: '
|
|
101
|
-
iconBeforeFillIcon: '
|
|
96
|
+
fill: 'primaryDisabled',
|
|
97
|
+
labelTextColor: 'primaryTextSecondary',
|
|
98
|
+
borderColor: 'primaryBorderSecondary',
|
|
99
|
+
iconAfterFillIcon: 'primaryItemSecondary',
|
|
100
|
+
iconBeforeFillIcon: 'primaryItemSecondary',
|
|
102
101
|
},
|
|
103
102
|
primaryPrimary: {
|
|
104
103
|
fill: 'primaryPrimary',
|
|
@@ -111,11 +110,11 @@ var chipsAppearancePrimary = {
|
|
|
111
110
|
|
|
112
111
|
var chipsAppearanceSecondary = {
|
|
113
112
|
secondaryMutedPrimary: {
|
|
114
|
-
fill: '
|
|
115
|
-
labelTextColor: '
|
|
116
|
-
borderColor: '
|
|
117
|
-
iconAfterFillIcon: '
|
|
118
|
-
iconBeforeFillIcon: '
|
|
113
|
+
fill: 'secondaryDisabled',
|
|
114
|
+
labelTextColor: 'secondaryTextQuaternary',
|
|
115
|
+
borderColor: 'secondaryBorderSecondary',
|
|
116
|
+
iconAfterFillIcon: 'secondaryItemQuaternary',
|
|
117
|
+
iconBeforeFillIcon: 'secondaryItemQuaternary',
|
|
119
118
|
},
|
|
120
119
|
secondaryPrimary: {
|
|
121
120
|
fill: 'secondaryPrimary',
|
|
@@ -187,11 +186,11 @@ var chipsAppearanceStyle = {
|
|
|
187
186
|
|
|
188
187
|
var chipsAppearanceSuccess = {
|
|
189
188
|
successMutedPrimary: {
|
|
190
|
-
fill: '
|
|
191
|
-
labelTextColor: '
|
|
192
|
-
borderColor: '
|
|
193
|
-
iconAfterFillIcon: '
|
|
194
|
-
iconBeforeFillIcon: '
|
|
189
|
+
fill: 'successTertiary',
|
|
190
|
+
labelTextColor: 'successTextQuaternary',
|
|
191
|
+
borderColor: 'successBorderQuaternary',
|
|
192
|
+
iconAfterFillIcon: 'successItemQuaternary',
|
|
193
|
+
iconBeforeFillIcon: 'successItemQuaternary',
|
|
195
194
|
},
|
|
196
195
|
successPrimary: {
|
|
197
196
|
fill: 'successPrimary',
|
|
@@ -204,17 +203,17 @@ var chipsAppearanceSuccess = {
|
|
|
204
203
|
|
|
205
204
|
var chipsAppearanceSurface = {
|
|
206
205
|
surfaceMutedPrimary: {
|
|
207
|
-
fill: '
|
|
208
|
-
labelTextColor: '
|
|
209
|
-
borderColor: '
|
|
210
|
-
iconAfterFillIcon: '
|
|
211
|
-
iconBeforeFillIcon: '
|
|
206
|
+
fill: 'surfaceSecondary',
|
|
207
|
+
labelTextColor: 'surfaceTextQuaternary',
|
|
208
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
209
|
+
iconAfterFillIcon: 'surfaceItemQuaternary',
|
|
210
|
+
iconBeforeFillIcon: 'surfaceItemQuaternary',
|
|
212
211
|
},
|
|
213
212
|
surfacePrimary: {
|
|
214
213
|
fill: 'surfacePrimary',
|
|
215
214
|
fillActive: 'accentPrimary',
|
|
216
215
|
fillActiveHover: 'accentSecondary',
|
|
217
|
-
fillHover: '
|
|
216
|
+
fillHover: 'surfaceTertiary',
|
|
218
217
|
labelTextActiveColor: 'accentTextPrimary',
|
|
219
218
|
labelTextColor: 'surfaceTextPrimary',
|
|
220
219
|
labelTextHoverColor: 'surfaceTextPrimary',
|
|
@@ -242,11 +241,11 @@ var chipsAppearanceSurface = {
|
|
|
242
241
|
|
|
243
242
|
var chipsAppearanceWarning = {
|
|
244
243
|
warningMutedPrimary: {
|
|
245
|
-
fill: '
|
|
246
|
-
labelTextColor: '
|
|
247
|
-
borderColor: '
|
|
248
|
-
iconAfterFillIcon: '
|
|
249
|
-
iconBeforeFillIcon: '
|
|
244
|
+
fill: 'warningTertiary',
|
|
245
|
+
labelTextColor: 'warningTextSecondary',
|
|
246
|
+
borderColor: 'warningBorderSecondary',
|
|
247
|
+
iconAfterFillIcon: 'warningItemSecondary',
|
|
248
|
+
iconBeforeFillIcon: 'warningItemSecondary',
|
|
250
249
|
},
|
|
251
250
|
warningPrimary: {
|
|
252
251
|
fill: 'warningPrimary',
|
|
@@ -267,22 +266,7 @@ var chipsConfig = {
|
|
|
267
266
|
};
|
|
268
267
|
function Chips(props) {
|
|
269
268
|
var className = props.className, appearance = props.appearance, _a = props.label, label = _a === void 0 ? '' : _a, isDisabled = props.isDisabled, dataTestId = props.dataTestId, dataTour = props.dataTour, iconAfter = props.iconAfter, iconAfterSrc = props.iconAfterSrc, iconBefore = props.iconBefore, iconBeforeSrc = props.iconBeforeSrc, isActive = props.isActive, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
|
|
270
|
-
var appearanceConfig =
|
|
271
|
-
if (appearance) {
|
|
272
|
-
var appearanceProps = appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
273
|
-
var _a;
|
|
274
|
-
return (__assign(__assign({}, resultConfig), (_a = chipsConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
275
|
-
}, {});
|
|
276
|
-
if (isDisabled && chipsConfig.appearance.disabled) {
|
|
277
|
-
Object.assign(appearanceProps, chipsConfig.appearance.disabled);
|
|
278
|
-
}
|
|
279
|
-
return appearanceProps;
|
|
280
|
-
}
|
|
281
|
-
if (isDisabled) {
|
|
282
|
-
return chipsConfig.appearance.disabled;
|
|
283
|
-
}
|
|
284
|
-
return {};
|
|
285
|
-
}, [appearance, isDisabled]);
|
|
269
|
+
var appearanceConfig = useAppearanceConfig(appearance, chipsConfig, isDisabled).appearanceConfig;
|
|
286
270
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
287
271
|
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActiveIcon = propsGenerator.iconAfterFillActiveIcon, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActiveIcon = propsGenerator.iconBeforeFillActiveIcon, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
|
|
288
272
|
var chipsStyles = useStyles(props).styles;
|
|
@@ -290,7 +274,7 @@ function Chips(props) {
|
|
|
290
274
|
? fillClass && "fill_".concat(fillClass)
|
|
291
275
|
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
292
276
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
293
|
-
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isActive && 'chips_state_active', isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer', isSkeleton && "chips_skeleton"), "data-testid": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconFillActive: iconBeforeFillActiveIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore, isActive: isActive })), typeof label === 'string' ? (jsx(Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveHoverColor, textColorHover: labelTextHoverColor, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: label })) : (jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill,
|
|
277
|
+
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isActive && 'chips_state_active', isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer', isSkeleton && "chips_skeleton"), "data-testid": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconFillActive: iconBeforeFillActiveIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore, isActive: isActive })), typeof label === 'string' ? (jsx(Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveHoverColor, textColorHover: labelTextHoverColor, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: label })) : (jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconFillActive: iconAfterFillActiveIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter, isActive: isActive })), badgeValue && (jsx(Badge, { className: "chips__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue }))] }) }));
|
|
294
278
|
}
|
|
295
279
|
|
|
296
280
|
function ChipsGroup(props) {
|
|
@@ -8,10 +8,10 @@ var locale = require('date-fns/locale');
|
|
|
8
8
|
var DatePicker = require('react-datepicker');
|
|
9
9
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
11
|
-
var Button = require('./
|
|
12
|
-
var Tooltip = require('./
|
|
11
|
+
var Button = require('./Button_cjs_CcE72qEn.js');
|
|
12
|
+
var Tooltip = require('./Tooltip_cjs_BBwH8sjA.js');
|
|
13
13
|
var Input = require('./Input_cjs_CPmXkQGd.js');
|
|
14
|
-
var Label = require('./
|
|
14
|
+
var Label = require('./Label_cjs_Mb8j2bLu.js');
|
|
15
15
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
16
16
|
var _default = require('@itcase/icons/default');
|
|
17
17
|
|
|
@@ -6,10 +6,10 @@ import { ru } from 'date-fns/locale';
|
|
|
6
6
|
import DatePicker from 'react-datepicker';
|
|
7
7
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
9
|
-
import { B as Button } from './
|
|
10
|
-
import { I as Icon } from './
|
|
9
|
+
import { B as Button } from './Button_es_Cv4k5QQw.js';
|
|
10
|
+
import { I as Icon } from './Tooltip_es_Y2aoFQW7.js';
|
|
11
11
|
import { I as Input } from './Input_es_D9Y1Rj5Y.js';
|
|
12
|
-
import { L as Label } from './
|
|
12
|
+
import { L as Label } from './Label_es_CIDBUVgO.js';
|
|
13
13
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
14
14
|
import { icons14 } from '@itcase/icons/default';
|
|
15
15
|
|