@itcase/ui 1.8.29 → 1.8.31
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_33OrnLtt.js → Avatar_cjs_DRaNGlad.js} +1 -1
- package/dist/{Avatar_es_B3LiV8MM.js → Avatar_es_Ck1RiTgB.js} +1 -1
- package/dist/{Button_cjs_C05Joa8j.js → Button_cjs_CnBP4mKv.js} +1 -1
- package/dist/{Button_es_CO_dwo-N.js → Button_es_WG0yV-rp.js} +1 -1
- package/dist/{ChipsGroup_cjs_Cm_pVx8z.js → ChipsGroup_cjs_BCnPa9xv.js} +2 -4
- package/dist/{ChipsGroup_es_CLpRB95W.js → ChipsGroup_es_1854brF_.js} +2 -4
- package/dist/{DatePicker_cjs_0y_2FcnF.js → DatePicker_cjs_Cbv3ffoB.js} +3 -6
- package/dist/{DatePicker_es_bY1aXemt.js → DatePicker_es_DGck2HRu.js} +3 -6
- package/dist/{DropdownItem_cjs_DPoFy70W.js → DropdownItem_cjs_C3BV7axh.js} +1 -1
- package/dist/{DropdownItem_es_CVztMEm0.js → DropdownItem_es_VDp5tKZr.js} +1 -1
- package/dist/{Label_cjs_BefEcq6i.js → Label_cjs_CqSZcFNk.js} +63 -63
- package/dist/{Label_es_Dl_DrMOh.js → Label_es_s3M2-dON.js} +63 -63
- package/dist/{Tooltip_cjs_pBGCcXLZ.js → Tooltip_cjs_BE4fABOp.js} +34 -5
- package/dist/{Tooltip_es_frBCZDrO.js → Tooltip_es_BPMRrd2L.js} +34 -5
- package/dist/cjs/components/Accordion.js +28 -12
- 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 +2 -2
- package/dist/cjs/components/Choice/stories/__mock__.js +11 -0
- package/dist/cjs/components/Choice.js +59 -17
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +14 -14
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Drawer.js +1 -1
- 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/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/MenuItem.js +38 -68
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/Search.js +4 -4
- package/dist/cjs/components/Segmented.js +21 -44
- 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/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/components/Accordion.js +28 -12
- 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 +2 -2
- package/dist/components/Choice/stories/__mock__.js +9 -0
- package/dist/components/Choice.js +59 -17
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +14 -14
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown.js +2 -2
- 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 +38 -68
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +2 -2
- package/dist/components/Search.js +4 -4
- package/dist/components/Segmented.js +21 -44
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/css/components/Accordion/Accordion.css +27 -7
- package/dist/css/components/Badge/Badge.css +1 -1
- package/dist/css/components/Choice/Choice.css +27 -19
- package/dist/css/components/MenuItem/MenuItem.css +45 -8
- package/dist/stories/ChoiceOverview.mdx +2 -2
- package/dist/stories/ChoicePlayground.mdx +3 -3
- package/dist/types/components/Accordion/appearance/accordionSize.d.ts +14 -7
- package/dist/types/components/Accordion/appearance/accordionSurface.d.ts +11 -2
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +1 -1
- package/dist/types/components/Cell/stories/__mock__/index.d.ts +2 -2
- package/dist/types/components/Choice/Choice.interface.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceDefault.d.ts +10 -0
- package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +10 -0
- package/dist/types/components/Choice/appearance/choiceError.d.ts +10 -0
- package/dist/types/components/Choice/appearance/choiceRequire.d.ts +11 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +6 -4
- package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +11 -0
- package/dist/types/components/Choice/stories/__mock__/index.d.ts +4 -0
- package/dist/types/components/DatePeriod/appearance/datePeriodSize.d.ts +4 -2
- package/dist/types/components/DatePeriod/appearance/datePeriodSurface.d.ts +0 -2
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +6 -8
- package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +6 -6
- package/dist/types/components/DatePicker/appearance/datePickerSurface.d.ts +0 -2
- package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +1 -1
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +6 -0
- package/dist/types/components/Icon/appearance/iconError.d.ts +6 -0
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +5 -0
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +5 -0
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +6 -5
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +6 -0
- package/dist/types/components/Label/appearance/labelAccent.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelDanger.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelError.d.ts +7 -7
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelSecondary.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelSurface.d.ts +8 -8
- package/dist/types/components/Label/appearance/labelWarning.d.ts +1 -1
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +5 -8
- package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +3 -3
- package/dist/types/components/MenuItem/appearance/menuItemSize.d.ts +0 -15
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +1 -3
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +3 -5
- package/dist/types/components/Notification/appearance/notificationDefault.d.ts +1 -1
- package/dist/types/components/Notification/appearance/notificationError.d.ts +1 -1
- package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +1 -1
- package/dist/types/components/Notification/appearance/notificationWarning.d.ts +1 -1
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +1 -1
- package/dist/types/components/Search/appearance/searchSize.d.ts +12 -12
- package/dist/types/components/Segmented/appearance/{segmentedSurface.d.ts → segmentedDefault.d.ts} +4 -4
- package/dist/types/components/Select/SelectLoadingIndicator.d.ts +1 -2
- package/dist/types/components/Tab/stories/__mock__/index.d.ts +1 -1
- package/dist/types/hooks/useDeviceTargetClass.d.ts +5 -0
- package/package.json +12 -12
- package/dist/types/components/Choice/appearance/choiceAccent.d.ts +0 -10
- package/dist/types/components/Label/appearance/labelGradient.d.ts +0 -9
- package/dist/types/components/MenuItem/appearance/menuItemPrimary.d.ts +0 -8
- package/dist/types/components/Pagination/appearance/paginationAccent.d.ts +0 -21
- package/dist/types/components/Pagination/appearance/paginationDanger.d.ts +0 -7
- package/dist/types/components/Pagination/appearance/paginationError.d.ts +0 -11
- package/dist/types/components/Pagination/appearance/paginationInfo.d.ts +0 -21
- package/dist/types/components/Pagination/appearance/paginationPrimary.d.ts +0 -8
- package/dist/types/components/Pagination/appearance/paginationSecondary.d.ts +0 -8
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +0 -48
- package/dist/types/components/Pagination/appearance/paginationStyle.d.ts +0 -16
- package/dist/types/components/Pagination/appearance/paginationSuccess.d.ts +0 -11
- package/dist/types/components/Pagination/appearance/paginationWarning.d.ts +0 -11
- package/dist/types/components/Segmented/appearance/segmentedAccent.d.ts +0 -19
- package/dist/types/components/Segmented/appearance/segmentedFalse.d.ts +0 -4
- package/dist/types/config/forms/datepicker.d.ts +0 -18
- package/dist/types/config/forms/index.d.ts +0 -3
- package/dist/types/config/forms/input.d.ts +0 -14
|
@@ -5,8 +5,8 @@ import clsx from 'clsx';
|
|
|
5
5
|
import castArray from 'lodash/castArray';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
+
import { B as Badge, I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
8
9
|
import { D as Divider } from '../Divider_es_kY-30pft.js';
|
|
9
|
-
import { I as Icon } from '../Tooltip_es_frBCZDrO.js';
|
|
10
10
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
11
11
|
import { icon16 } from '@itcase/icons/default';
|
|
12
12
|
import 'lodash/camelCase';
|
|
@@ -26,42 +26,49 @@ import '../Link_es_DxtZLeKY.js';
|
|
|
26
26
|
var accordionAppearanceSize = {
|
|
27
27
|
sizeXXL: {
|
|
28
28
|
size: 'xxl',
|
|
29
|
-
titleTextSize: '
|
|
29
|
+
titleTextSize: 'h3',
|
|
30
|
+
badgeAppearanceSize: 'sizeXS',
|
|
30
31
|
contentTextSize: 'xxl',
|
|
31
32
|
icon: icon16.ChevronDown,
|
|
32
33
|
},
|
|
33
34
|
sizeXL: {
|
|
34
35
|
size: 'xl',
|
|
35
|
-
titleTextSize: '
|
|
36
|
+
titleTextSize: 'h3',
|
|
37
|
+
badgeAppearanceSize: 'sizeXS',
|
|
36
38
|
contentTextSize: 'l',
|
|
37
39
|
icon: icon16.ChevronDown,
|
|
38
40
|
},
|
|
39
41
|
sizeL: {
|
|
40
42
|
size: 'l',
|
|
41
|
-
titleTextSize: '
|
|
43
|
+
titleTextSize: 'h4',
|
|
44
|
+
badgeAppearanceSize: 'sizeXS',
|
|
42
45
|
icon: icon16.ChevronDown,
|
|
43
46
|
},
|
|
44
47
|
sizeM: {
|
|
45
48
|
size: 'm',
|
|
46
|
-
titleTextSize: '
|
|
49
|
+
titleTextSize: 'h5',
|
|
50
|
+
badgeAppearanceSize: 'sizeXS',
|
|
47
51
|
contentTextSize: 'm',
|
|
48
52
|
icon: icon16.ChevronDown,
|
|
49
53
|
},
|
|
50
54
|
sizeS: {
|
|
51
55
|
size: 's',
|
|
52
|
-
titleTextSize: '
|
|
56
|
+
titleTextSize: 'h6',
|
|
57
|
+
badgeAppearanceSize: 'sizeXS',
|
|
53
58
|
contentTextSize: 's',
|
|
54
59
|
icon: icon16.ChevronDown,
|
|
55
60
|
},
|
|
56
61
|
sizeXS: {
|
|
57
62
|
size: 'xs',
|
|
58
|
-
titleTextSize: '
|
|
63
|
+
titleTextSize: 'h6',
|
|
64
|
+
badgeAppearanceSize: 'sizeXS',
|
|
59
65
|
contentTextSize: 'xs',
|
|
60
66
|
icon: icon16.ChevronDown,
|
|
61
67
|
},
|
|
62
68
|
sizeXXS: {
|
|
63
69
|
size: 'xxs',
|
|
64
|
-
titleTextSize: '
|
|
70
|
+
titleTextSize: 'h6',
|
|
71
|
+
badgeAppearanceSize: 'sizeXS',
|
|
65
72
|
contentTextSize: 'xs',
|
|
66
73
|
icon: icon16.ChevronDown,
|
|
67
74
|
},
|
|
@@ -87,24 +94,33 @@ var accordionAppearanceSurface = {
|
|
|
87
94
|
fillHover: 'surfacePrimaryHover',
|
|
88
95
|
titleTextColor: 'surfaceTextPrimary',
|
|
89
96
|
labelTextColor: 'surfaceTextPrimary',
|
|
97
|
+
badgeAppearance: 'accentPrimary solid',
|
|
98
|
+
badgeShape: 'circular',
|
|
90
99
|
iconFillIcon: 'surfaceItemPrimary',
|
|
91
100
|
},
|
|
92
101
|
surfaceSecondary: {
|
|
93
102
|
fill: 'surfaceSecondary',
|
|
94
103
|
fillHover: 'surfaceSecondaryHover',
|
|
95
104
|
labelTextColor: 'surfaceTextPrimary',
|
|
96
|
-
|
|
97
|
-
|
|
105
|
+
badgeAppearance: 'accentPrimary solid',
|
|
106
|
+
badgeShape: 'circular',
|
|
107
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
98
108
|
},
|
|
99
109
|
surfaceTertiary: {
|
|
100
110
|
fill: 'surfaceTertiary',
|
|
101
111
|
fillHover: 'surfaceTertiaryHover',
|
|
102
112
|
labelTextColor: 'surfaceTextPrimary',
|
|
113
|
+
badgeAppearance: 'accentPrimary solid',
|
|
114
|
+
badgeShape: 'circular',
|
|
115
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
103
116
|
},
|
|
104
117
|
surfaceQuaternary: {
|
|
105
118
|
fill: 'surfaceQuaternary',
|
|
106
119
|
fillHover: 'surfaceQuaternaryHover',
|
|
107
120
|
labelTextColor: 'surfaceTextPrimary',
|
|
121
|
+
badgeAppearance: 'accentPrimary solid',
|
|
122
|
+
badgeShape: 'circular',
|
|
123
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
108
124
|
},
|
|
109
125
|
};
|
|
110
126
|
|
|
@@ -133,10 +149,10 @@ function AccordionItem(props) {
|
|
|
133
149
|
return (__assign(__assign({}, resultConfig), (_a = accordionItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
134
150
|
}, {});
|
|
135
151
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
136
|
-
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleBorderColorClass = propsGenerator.titleBorderColorClass, titleFillClass = propsGenerator.titleFillClass, titleFillHoverClass = propsGenerator.titleFillHoverClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight,
|
|
152
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleBorderColorClass = propsGenerator.titleBorderColorClass, titleFillClass = propsGenerator.titleFillClass, titleFillHoverClass = propsGenerator.titleFillHoverClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, titleWidthClass = propsGenerator.titleWidthClass, borderColorClass = propsGenerator.borderColorClass, badgeAppearance = propsGenerator.badgeAppearance, badgeAppearanceSize = propsGenerator.badgeAppearanceSize, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, contentTextColor = propsGenerator.contentTextColor, contentTextSize = propsGenerator.contentTextSize, contentTextWeight = propsGenerator.contentTextWeight, dividerDirection = propsGenerator.dividerDirection, dividerFill = propsGenerator.dividerFill, dividerSize = propsGenerator.dividerSize, icon = propsGenerator.icon, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass, showDivider = propsGenerator.showDivider, sizeClass = propsGenerator.sizeClass, zeroGap = propsGenerator.zeroGap, zeroPadding = propsGenerator.zeroPadding;
|
|
137
153
|
// @ts-expect-error
|
|
138
154
|
var styles = useStyles(props).styles;
|
|
139
|
-
return (jsxs("div", { className: clsx('accordion-item', className, borderColorClass && "border-color_".concat(borderColorClass), shapeClass && "accordion-item_shape_".concat(shapeClass), sizeClass && "accordion-item_size_".concat(sizeClass), isExpanded && 'accordion-item_state_open'), style: styles, children: [jsxs("div", { className: clsx('accordion-item__header', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), children: [jsx(Text, { className: clsx('accordion-item__title', titleBorderColorClass && "border-color_".concat(titleBorderColorClass), titleFillClass && "fill_".concat(titleFillClass), titleFillHoverClass && "fill_hover_".concat(titleFillHoverClass), titleWidthClass && "width_".concat(titleWidthClass), onClickTitle && 'cursor_type_pointer'), size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, onClick: onClickTitle, children: title }), (icon || iconSrc) && (jsx(Icon, { className: clsx('accordion-item__icon'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon, onClick: onClickTitle }))
|
|
155
|
+
return (jsxs("div", { className: clsx('accordion-item', className, zeroPadding && 'accordion-item_zero-padding', zeroGap && 'accordion-item_zero-gap', borderColorClass && "border-color_".concat(borderColorClass), shapeClass && "accordion-item_shape_".concat(shapeClass), sizeClass && "accordion-item_size_".concat(sizeClass), isExpanded && 'accordion-item_state_open'), style: styles, children: [jsxs("div", { className: clsx('accordion-item__header', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), children: [jsx(Text, { className: clsx('accordion-item__title', titleBorderColorClass && "border-color_".concat(titleBorderColorClass), titleFillClass && "fill_".concat(titleFillClass), titleFillHoverClass && "fill_hover_".concat(titleFillHoverClass), titleWidthClass && "width_".concat(titleWidthClass), onClickTitle && 'cursor_type_pointer'), size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, onClick: onClickTitle, children: title }), jsxs("div", { className: "accordion-item__action", children: [badgeValue && (jsx(Badge, { className: "accordion-item__badge", appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsx(Icon, { className: clsx('accordion-item__icon'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon, onClick: onClickTitle }))] }), showDivider && (jsx(Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill || 'surfaceTertiary' }))] }), beforeContent, isExpanded && (jsxs("div", { className: clsx('accordion-item__content'), children: [content && (jsx("div", { className: clsx('accordion-item__content-inner', fillClass && "fill_".concat(fillClass)), children: jsx(Text, { size: contentTextSize, textColor: contentTextColor, textWeight: contentTextWeight, children: content }) })), children] })), afterContent] }));
|
|
140
156
|
}
|
|
141
157
|
|
|
142
158
|
function Accordion(props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../
|
|
1
|
+
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../Avatar_es_Ck1RiTgB.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -14,7 +14,7 @@ import '../context/UIContext.js';
|
|
|
14
14
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
15
15
|
import 'react-responsive';
|
|
16
16
|
import '../utils/setViewportProperty.js';
|
|
17
|
-
import '../
|
|
17
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
18
18
|
import '../hooks/useStyles/useStyles.js';
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { A as Avatar } from '../
|
|
6
|
+
import { A as Avatar } from '../Avatar_es_Ck1RiTgB.js';
|
|
7
7
|
import { G as Group } from '../Group_es_CYW2Hquh.js';
|
|
8
8
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
9
9
|
import 'react';
|
|
@@ -19,7 +19,7 @@ import 'react-responsive';
|
|
|
19
19
|
import '../utils/setViewportProperty.js';
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
-
import '../
|
|
22
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
24
|
import '../Link_es_DxtZLeKY.js';
|
|
25
25
|
import '../Image_es_DZUVp0FS.js';
|
package/dist/components/Badge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../
|
|
1
|
+
export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../Tooltip_es_BPMRrd2L.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
6
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
8
8
|
import { a as LinkWrapper } from '../Link_es_DxtZLeKY.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../
|
|
1
|
+
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_WG0yV-rp.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'clsx';
|
|
6
|
-
import '../
|
|
6
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
7
7
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
package/dist/components/Cell.js
CHANGED
|
@@ -3,8 +3,8 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../
|
|
7
|
-
import { L as Label } from '../
|
|
6
|
+
import { I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
7
|
+
import { L as Label } from '../Label_es_s3M2-dON.js';
|
|
8
8
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/camelCase';
|
package/dist/components/Chips.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../
|
|
1
|
+
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_1854brF_.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -17,7 +17,7 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
20
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
21
21
|
import '../Text_es_BfLRfj-5.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../Link_es_DxtZLeKY.js';
|
|
@@ -4,7 +4,7 @@ import React, { useRef, useMemo, createRef, useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
8
8
|
import { L as Loader } from '../Loader_es_B2auu_rc.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -22,13 +22,44 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../Link_es_DxtZLeKY.js';
|
|
24
24
|
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
fill: '
|
|
28
|
-
fillItemActive: 'accentPrimary',
|
|
29
|
-
labelTextActiveColor: 'accentTextPrimary',
|
|
25
|
+
var choiceAppearanceDefault = {
|
|
26
|
+
defaultPrimary: {
|
|
27
|
+
fill: 'surfaceSecondary',
|
|
30
28
|
labelTextColor: 'surfaceTextPrimary',
|
|
31
|
-
borderColor: '
|
|
29
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
30
|
+
iconAfterFill: 'surfaceItemQuaternary',
|
|
31
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var choiceAppearanceDisabled = {
|
|
36
|
+
disabledPrimary: {
|
|
37
|
+
fill: 'surfaceDisabled',
|
|
38
|
+
labelTextColor: 'surfaceTextQuaternary',
|
|
39
|
+
borderColor: 'surfaceBorderPrimary',
|
|
40
|
+
iconAfterFill: 'surfaceItemPrimary',
|
|
41
|
+
iconBeforeFill: 'surfaceItemPrimary',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var choiceAppearanceError = {
|
|
46
|
+
errorPrimary: {
|
|
47
|
+
fill: 'errorTertiary',
|
|
48
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
49
|
+
borderColor: 'errorBorderQuaternary',
|
|
50
|
+
iconAfterFill: 'errorItemPrimary',
|
|
51
|
+
iconBeforeFill: 'errorItemPrimary',
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
var choiceAppearanceRequire = {
|
|
56
|
+
requirePrimary: {
|
|
57
|
+
fill: 'warningTertiary',
|
|
58
|
+
fillItemActive: 'warningTertiary',
|
|
59
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
60
|
+
borderColor: 'warningBorderSecondary',
|
|
61
|
+
iconAfterFill: 'warningItemSecondary',
|
|
62
|
+
iconBeforeFill: 'warningItemSecondary',
|
|
32
63
|
},
|
|
33
64
|
};
|
|
34
65
|
|
|
@@ -51,18 +82,29 @@ var choiceAppearanceSize = {
|
|
|
51
82
|
};
|
|
52
83
|
|
|
53
84
|
var choiceAppearanceStyle = {
|
|
54
|
-
|
|
55
|
-
borderColor: '
|
|
85
|
+
full: {
|
|
86
|
+
borderColor: '0',
|
|
87
|
+
},
|
|
88
|
+
ghost: {
|
|
89
|
+
fill: 'none',
|
|
90
|
+
borderColor: '0',
|
|
56
91
|
},
|
|
57
92
|
outlined: {
|
|
58
93
|
fill: 'none',
|
|
59
94
|
},
|
|
60
|
-
|
|
61
|
-
|
|
95
|
+
solid: {
|
|
96
|
+
borderColor: '0',
|
|
62
97
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
var choiceAppearanceSuccess = {
|
|
101
|
+
successPrimary: {
|
|
102
|
+
fill: 'successTertiary',
|
|
103
|
+
fillItemActive: 'successTertiary',
|
|
104
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
105
|
+
borderColor: 'successBorderSecondary',
|
|
106
|
+
iconAfterFill: 'successItemSecondary',
|
|
107
|
+
iconBeforeFill: 'successItemSecondary',
|
|
66
108
|
},
|
|
67
109
|
};
|
|
68
110
|
|
|
@@ -91,7 +133,7 @@ var choiceAppearanceSurface = {
|
|
|
91
133
|
},
|
|
92
134
|
};
|
|
93
135
|
|
|
94
|
-
var choiceAppearance = __assign(__assign(__assign(__assign({},
|
|
136
|
+
var choiceAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, choiceAppearanceError), choiceAppearanceDisabled), choiceAppearanceDefault), choiceAppearanceSuccess), choiceAppearanceRequire), choiceAppearanceStyle), choiceAppearanceSize), choiceAppearanceSurface);
|
|
95
137
|
|
|
96
138
|
var choiceConfig = {
|
|
97
139
|
appearance: choiceAppearance,
|
|
@@ -100,7 +142,7 @@ var choiceConfig = {
|
|
|
100
142
|
},
|
|
101
143
|
};
|
|
102
144
|
function Choice(props) {
|
|
103
|
-
var id = props.id, className = props.className, name = props.name, appearance = props.appearance, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, _b = props.active, active = _b === void 0 ? { value: undefined } : _b, dataTestId = props.dataTestId, dataTour = props.dataTour, icon = props.icon, itemAfter = props.itemAfter, itemBefore = props.itemBefore, _c = props.options, options = _c === void 0 ? [] : _c, before = props.before, after = props.after, _d = props.isCheckbox, isCheckbox = _d === void 0 ? false : _d, _e = props.isLoading, isLoading = _e === void 0 ? false : _e, setActiveSegment = props.setActiveSegment;
|
|
145
|
+
var id = props.id, className = props.className, name = props.name, appearance = props.appearance, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, _b = props.active, active = _b === void 0 ? { value: undefined } : _b, dataTestId = props.dataTestId, dataTour = props.dataTour, icon = props.icon, itemAfter = props.itemAfter, itemBefore = props.itemBefore, _c = props.options, options = _c === void 0 ? [] : _c, before = props.before, after = props.after, _d = props.isCheckbox, isCheckbox = _d === void 0 ? false : _d, _e = props.isLoading, isLoading = _e === void 0 ? false : _e, isSkeleton = props.isSkeleton, setActiveSegment = props.setActiveSegment;
|
|
104
146
|
var controlRef = useRef(null);
|
|
105
147
|
var optionsRefs = useMemo(function () {
|
|
106
148
|
return new Map(options.map(function (item) { return [item.value, createRef()]; }));
|
|
@@ -116,7 +158,7 @@ function Choice(props) {
|
|
|
116
158
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
117
159
|
var size = propsGenerator.size, fillClass = propsGenerator.fillClass, fillItemActiveClass = propsGenerator.fillItemActiveClass, fillItemActiveDisabledClass = propsGenerator.fillItemActiveDisabledClass, fillItemActiveHoverClass = propsGenerator.fillItemActiveHoverClass, fillItemClass = propsGenerator.fillItemClass, fillItemDisabledClass = propsGenerator.fillItemDisabledClass, fillItemHoverClass = propsGenerator.fillItemHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveColorDisabled = propsGenerator.labelTextActiveColorDisabled, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfterFillDisabled = propsGenerator.iconAfterFillDisabled, iconBeforeFillDisabled = propsGenerator.iconBeforeFillDisabled, iconFillDisabled = propsGenerator.iconFillDisabled, iconActive = propsGenerator.iconActive, iconAfter = propsGenerator.iconAfter, iconAfterActive = propsGenerator.iconAfterActive, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActive = propsGenerator.iconAfterFillActive, iconAfterSize = propsGenerator.iconAfterSize, iconBefore = propsGenerator.iconBefore, iconBeforeActive = propsGenerator.iconBeforeActive, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActive = propsGenerator.iconBeforeFillActive, iconBeforeSize = propsGenerator.iconBeforeSize, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, shapeClass = propsGenerator.shapeClass, shapeItemClass = propsGenerator.shapeItemClass, wrapClass = propsGenerator.wrapClass;
|
|
118
160
|
var styles = useStyles(props).styles;
|
|
119
|
-
return (jsxs("div", { id: id, className: clsx(className, 'choice', size && "choice_size_".concat(size), fillClass && "fill_".concat(fillClass), wrapClass && "choice_wrap_".concat(wrapClass)), "data-testid": dataTestId && "".concat(dataTestId, "Choice"), "data-tour": dataTour, ref: controlRef, style: styles, children: [before && jsx("div", { className: "choice__before", children: before }), isLoading ? (jsx(Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent" })) : (jsx(React.Fragment, { children: options.map(function (item) {
|
|
161
|
+
return (jsxs("div", { id: id, className: clsx(className, 'choice', size && "choice_size_".concat(size), fillClass && "fill_".concat(fillClass), wrapClass && "choice_wrap_".concat(wrapClass), isSkeleton && "choice_skeleton"), "data-testid": dataTestId && "".concat(dataTestId, "Choice"), "data-tour": dataTour, ref: controlRef, style: styles, children: [before && jsx("div", { className: "choice__before", children: before }), isLoading ? (jsx(Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent" })) : (jsx(React.Fragment, { children: options.map(function (item) {
|
|
120
162
|
var isActive = typeof active === 'object'
|
|
121
163
|
? String(item.value) === String(active.value)
|
|
122
164
|
: String(item.value) === String(active);
|
|
@@ -4,7 +4,7 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import Cookies from 'js-cookie';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { B as Button } from '../
|
|
7
|
+
import { B as Button } from '../Button_es_WG0yV-rp.js';
|
|
8
8
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -16,7 +16,7 @@ import '../context/UIContext.js';
|
|
|
16
16
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
17
17
|
import 'react-responsive';
|
|
18
18
|
import '../utils/setViewportProperty.js';
|
|
19
|
-
import '../
|
|
19
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
20
20
|
import '../hooks/useStyles/useStyles.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
@@ -4,9 +4,9 @@ import { useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { DateTime } from 'luxon';
|
|
6
6
|
import { DATE_PERIOD_INTERVALS } from '@itcase/common';
|
|
7
|
-
import { D as DatePickerInput } from '../
|
|
7
|
+
import { D as DatePickerInput } from '../DatePicker_es_DGck2HRu.js';
|
|
8
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
|
-
import { b as ChipsGroup, C as Chips } from '../
|
|
9
|
+
import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_1854brF_.js';
|
|
10
10
|
import 'date-fns/locale';
|
|
11
11
|
import 'react-datepicker';
|
|
12
12
|
import '../hooks/useStyles/useStyles.js';
|
|
@@ -20,27 +20,29 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
|
20
20
|
import 'react-responsive';
|
|
21
21
|
import '../utils/setViewportProperty.js';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../
|
|
24
|
-
import '../
|
|
23
|
+
import '../Button_es_WG0yV-rp.js';
|
|
24
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
25
25
|
import '../Text_es_BfLRfj-5.js';
|
|
26
26
|
import 'react-inlinesvg';
|
|
27
27
|
import '../Link_es_DxtZLeKY.js';
|
|
28
28
|
import '../Loader_es_B2auu_rc.js';
|
|
29
29
|
import '../Input_es_CNduH28G.js';
|
|
30
|
-
import '../
|
|
30
|
+
import '../Label_es_s3M2-dON.js';
|
|
31
31
|
import '@itcase/icons/default';
|
|
32
32
|
import 'lodash/castArray';
|
|
33
33
|
|
|
34
34
|
var datePeriodAppearanceSize = {
|
|
35
35
|
sizeL: {
|
|
36
36
|
size: 'm',
|
|
37
|
-
|
|
37
|
+
chipsAppearanceSize: 'sizeL',
|
|
38
|
+
datePickerAppearanceSize: 'sizeM',
|
|
38
39
|
datePickerInputSize: 'l',
|
|
39
40
|
datePickerInputTextSize: 'm',
|
|
40
41
|
},
|
|
41
42
|
sizeM: {
|
|
42
43
|
size: 'm',
|
|
43
|
-
|
|
44
|
+
chipsAppearanceSize: 'sizeL',
|
|
45
|
+
datePickerAppearanceSize: 'sizeM',
|
|
44
46
|
datePickerInputSize: 'm',
|
|
45
47
|
datePickerInputTextSize: 'm',
|
|
46
48
|
},
|
|
@@ -49,20 +51,18 @@ var datePeriodAppearanceSize = {
|
|
|
49
51
|
var datePeriodAppearanceSurface = {
|
|
50
52
|
surfacePrimary: {
|
|
51
53
|
fill: 'surfacePrimary',
|
|
52
|
-
chipsAppearance: 'surfacePrimary
|
|
54
|
+
chipsAppearance: 'surfacePrimary ghost',
|
|
53
55
|
chipsShape: 'rounded',
|
|
54
56
|
datePickerAppearance: 'surfacePrimary',
|
|
55
57
|
datePickerInputAppearance: 'defaultPrimary',
|
|
56
|
-
datePickerInputFillHover: 'surfaceHover',
|
|
57
58
|
shape: 'rounded',
|
|
58
59
|
},
|
|
59
60
|
surfaceSecondary: {
|
|
60
61
|
fill: 'surfaceSecondary',
|
|
61
|
-
chipsAppearance: 'surfacePrimary
|
|
62
|
+
chipsAppearance: 'surfacePrimary ghost',
|
|
62
63
|
chipsShape: 'rounded',
|
|
63
64
|
datePickerAppearance: 'surfacePrimary',
|
|
64
65
|
datePickerInputAppearance: 'defaultPrimary',
|
|
65
|
-
datePickerInputFillHover: 'surfaceHover',
|
|
66
66
|
shape: 'rounded',
|
|
67
67
|
},
|
|
68
68
|
};
|
|
@@ -82,7 +82,7 @@ function DatePeriod(props) {
|
|
|
82
82
|
return (__assign(__assign({}, resultConfig), (_a = datePeriodConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
83
83
|
}, {});
|
|
84
84
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
85
|
-
var _b = propsGenerator, fillClass = _b.fillClass, chipsAppearance = _b.chipsAppearance, chipsShape = _b.chipsShape, datePickerAppearance = _b.datePickerAppearance, datePickerInputAppearance = _b.datePickerInputAppearance, datePickerInputFillHover = _b.datePickerInputFillHover, datePickerInputSize = _b.datePickerInputSize, datePickerInputTextSize = _b.datePickerInputTextSize, shapeClass = _b.shapeClass, sizeClass = _b.sizeClass;
|
|
85
|
+
var _b = propsGenerator, fillClass = _b.fillClass, chipsAppearance = _b.chipsAppearance, chipsAppearanceSize = _b.chipsAppearanceSize, chipsShape = _b.chipsShape, datePickerAppearance = _b.datePickerAppearance, datePickerAppearanceSize = _b.datePickerAppearanceSize, datePickerInputAppearance = _b.datePickerInputAppearance, datePickerInputFillHover = _b.datePickerInputFillHover, datePickerInputSize = _b.datePickerInputSize, datePickerInputTextSize = _b.datePickerInputTextSize, shapeClass = _b.shapeClass, sizeClass = _b.sizeClass;
|
|
86
86
|
var onClickPeriodChips = useCallback(function (selectedPeriodItem) {
|
|
87
87
|
var dateStartIso = selectedPeriodItem.dateIntervalsList[0];
|
|
88
88
|
var dateEndIso = selectedPeriodItem.dateIntervalsList[1];
|
|
@@ -105,8 +105,8 @@ function DatePeriod(props) {
|
|
|
105
105
|
return (dateStartIso === datePeriodValueStart &&
|
|
106
106
|
dateEndIso === datePeriodValueEnd);
|
|
107
107
|
}, [datePeriodValueEnd, datePeriodValueStart]);
|
|
108
|
-
return (jsx("div", { className: clsx(className, 'date-period', shapeClass && "date-period_shape_".concat(shapeClass), sizeClass && "date-period_size_".concat(sizeClass), isSkeleton && "date-period_skeleton", fillClass && "fill_".concat(fillClass), 'cursor_type_pointer'), children: jsxs(ChipsGroup, { direction: "horizontal", children: [datePeriodIntervalsList.map(function (datePeriodItem) { return (jsx(Chips, { appearance: chipsAppearance, label: datePeriodItem.label, shape: chipsShape, isActive: checkIsChipsActive(datePeriodItem), onClick: function () { return onClickPeriodChips(datePeriodItem); } }, datePeriodItem.value)); }), jsx(DatePickerInput, { datePickerProps: {
|
|
109
|
-
appearance: datePickerAppearance,
|
|
108
|
+
return (jsx("div", { className: clsx(className, 'date-period', shapeClass && "date-period_shape_".concat(shapeClass), sizeClass && "date-period_size_".concat(sizeClass), isSkeleton && "date-period_skeleton", fillClass && "fill_".concat(fillClass), 'cursor_type_pointer'), children: jsxs(ChipsGroup, { direction: "horizontal", children: [datePeriodIntervalsList.map(function (datePeriodItem) { return (jsx(Chips, { appearance: "".concat(chipsAppearance, " ").concat(chipsAppearanceSize), label: datePeriodItem.label, shape: chipsShape, isActive: checkIsChipsActive(datePeriodItem), onClick: function () { return onClickPeriodChips(datePeriodItem); } }, datePeriodItem.value)); }), jsx(DatePickerInput, { datePickerProps: {
|
|
109
|
+
appearance: "".concat(datePickerAppearance, " ").concat(datePickerAppearanceSize),
|
|
110
110
|
dateFormat: 'dd/MM/yyyy',
|
|
111
111
|
selectsRange: true,
|
|
112
112
|
showWeekNumbers: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../
|
|
1
|
+
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_DGck2HRu.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -19,12 +19,12 @@ import '../utils/setViewportProperty.js';
|
|
|
19
19
|
import '../hooks/useStyles/useStyles.js';
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
-
import '../
|
|
23
|
-
import '../
|
|
22
|
+
import '../Button_es_WG0yV-rp.js';
|
|
23
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
24
24
|
import '../Text_es_BfLRfj-5.js';
|
|
25
25
|
import 'react-inlinesvg';
|
|
26
26
|
import '../Link_es_DxtZLeKY.js';
|
|
27
27
|
import '../Loader_es_B2auu_rc.js';
|
|
28
28
|
import '../Input_es_CNduH28G.js';
|
|
29
|
-
import '../
|
|
29
|
+
import '../Label_es_s3M2-dON.js';
|
|
30
30
|
import '@itcase/icons/default';
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useRef, useEffect } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import ReactDrawer from 'react-modern-drawer';
|
|
6
|
-
import { I as Icon, b as Title } from '../
|
|
6
|
+
import { I as Icon, b as Title } from '../Tooltip_es_BPMRrd2L.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
8
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
9
|
import { icon24 } from '@itcase/icons/default';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_VDp5tKZr.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -18,7 +18,7 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
20
|
import '../Divider_es_kY-30pft.js';
|
|
21
|
-
import '../
|
|
21
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
22
22
|
import '../Text_es_BfLRfj-5.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
24
|
import '../Link_es_DxtZLeKY.js';
|
|
@@ -4,7 +4,7 @@ import { useMemo } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
10
10
|
import 'lodash/upperFirst';
|
package/dist/components/Icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Icon, e as iconAppearance, i as iconConfig } from '../
|
|
1
|
+
export { I as Icon, e as iconAppearance, i as iconConfig } from '../Tooltip_es_BPMRrd2L.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useState, useMemo, useCallback } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { I as Icon } from '../
|
|
6
|
+
import { I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
9
9
|
import 'lodash/upperFirst';
|
package/dist/components/Label.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Label, a as labelAppearance, l as labelConfig } from '../
|
|
1
|
+
export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_s3M2-dON.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -17,7 +17,7 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
20
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
21
21
|
import '../Text_es_BfLRfj-5.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../Link_es_DxtZLeKY.js';
|