@itcase/ui 1.9.58 → 1.9.60
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_BIHJrAbQ.js → Avatar_cjs_rB8eleZS.js} +5 -8
- package/dist/{Avatar_es_CtP68jPM.js → Avatar_es_eDWRG48M.js} +2 -5
- package/dist/{Button_cjs_BCcz3-Fw.js → Button_cjs_cNwSkY7f.js} +7 -13
- package/dist/{Button_es_DAzeb-vJ.js → Button_es_egCg1YEe.js} +2 -8
- package/dist/{ChipsGroup_cjs_C27x9x9O.js → ChipsGroup_cjs_DvFJapnM.js} +7 -11
- package/dist/{ChipsGroup_es_BTe1MYhV.js → ChipsGroup_es_C7tQ_vNa.js} +1 -5
- package/dist/{DatePicker_cjs_Dvw_cGFH.js → DatePicker_cjs_B03pbJ0K.js} +10 -14
- package/dist/{DatePicker_es_t3u6yddn.js → DatePicker_es_DIuTzpna.js} +4 -8
- package/dist/{Group_cjs_BLGSskb3.js → Group_cjs_DtBLfpiv.js} +4 -6
- package/dist/{Group_es_CP-uIchb.js → Group_es_BUkLNi2_.js} +1 -3
- package/dist/{Image_cjs_Hvjp2QDB.js → Image_cjs_BSwaz7r5.js} +4 -6
- package/dist/{Image_es_DpOCNWpn.js → Image_es_DhPg4srf.js} +1 -3
- package/dist/{Input_cjs_BQIi1N63.js → Input_cjs_Cr6u1JXB.js} +3 -4
- package/dist/{Input_es_BYbc2X9M.js → Input_es_Da2Yhzcz.js} +1 -2
- package/dist/{Label_cjs_RI5tFcPt.js → Label_cjs_DMOG-8Eu.js} +5 -9
- package/dist/{Label_es_CNRTIAWo.js → Label_es_DZn7Ulmk.js} +1 -5
- package/dist/{Loader_cjs_CJpdLndn.js → Loader_cjs_Bi6IoQFb.js} +5 -8
- package/dist/{Loader_es_CqlLujBJ.js → Loader_es_BZMRBcgn.js} +1 -4
- package/dist/{Overlay_cjs_BK_0yTLw.js → Overlay_cjs_bR_cRWP3.js} +4 -6
- package/dist/{Overlay_es_DOO535JM.js → Overlay_es_BVxlUWXu.js} +1 -3
- package/dist/{SelectContainer_cjs_DJ_IUDjE.js → SelectContainer_cjs_DSMCeePO.js} +17 -22
- package/dist/{SelectContainer_es_BYBGTq-u.js → SelectContainer_es_D2Yz1Qwi.js} +3 -8
- package/dist/cjs/components/Accordion.js +7 -22
- package/dist/cjs/components/Avatar.js +4 -18
- package/dist/cjs/components/AvatarStack.js +8 -22
- package/dist/cjs/components/Badge.js +5 -19
- package/dist/cjs/components/Breadcrumbs.js +7 -21
- package/dist/cjs/components/Button.js +4 -18
- package/dist/cjs/components/Cell.js +6 -20
- package/dist/cjs/components/Checkbox.js +7 -15
- package/dist/cjs/components/Checkmark.js +5 -19
- package/dist/cjs/components/Chips.js +2 -16
- package/dist/cjs/components/Choice.js +7 -21
- package/dist/cjs/components/Code.js +5 -10
- package/dist/cjs/components/CookiesWarning.js +7 -21
- package/dist/cjs/components/Dadata.js +4 -9
- package/dist/cjs/components/DatePeriod.js +18 -33
- package/dist/cjs/components/DatePicker.js +7 -21
- package/dist/cjs/components/Divider.js +6 -14
- package/dist/cjs/components/Dot.js +4 -10
- package/dist/cjs/components/Drawer.js +6 -21
- package/dist/cjs/components/Dropdown.js +5 -21
- package/dist/cjs/components/Dropzone.js +11 -25
- package/dist/cjs/components/Flex.js +6 -12
- package/dist/cjs/components/Grid.js +8 -14
- package/dist/cjs/components/Group.js +3 -10
- package/dist/cjs/components/HTMLContent.js +4 -10
- package/dist/cjs/components/HeroTitle.js +5 -19
- package/dist/cjs/components/Icon.js +5 -19
- package/dist/cjs/components/Image.js +4 -12
- package/dist/cjs/components/Input.js +4 -9
- package/dist/cjs/components/InputNumber.js +6 -20
- package/dist/cjs/components/InputPassword.js +6 -20
- package/dist/cjs/components/Label.js +2 -16
- package/dist/cjs/components/Link.js +6 -14
- package/dist/cjs/components/List.js +8 -16
- package/dist/cjs/components/Loader.js +3 -11
- package/dist/cjs/components/Logo.js +8 -18
- package/dist/cjs/components/MenuItem.js +5 -19
- package/dist/cjs/components/Modal.js +7 -21
- package/dist/cjs/components/ModalSheetBottom.js +5 -19
- package/dist/cjs/components/Notification.js +11 -25
- package/dist/cjs/components/Overlay.js +3 -10
- package/dist/cjs/components/Pagination.js +8 -24
- package/dist/cjs/components/Radio.js +5 -13
- package/dist/cjs/components/RangeSlider.js +4 -10
- package/dist/cjs/components/Response.js +10 -24
- package/dist/cjs/components/SVGContent.js +5 -14
- package/dist/cjs/components/ScrollOnDrag.js +4 -10
- package/dist/cjs/components/ScrollToView.js +4 -10
- package/dist/cjs/components/Search.js +7 -21
- package/dist/cjs/components/Segmented.js +6 -20
- package/dist/cjs/components/Select.js +5 -20
- package/dist/cjs/components/Swiper.js +6 -20
- package/dist/cjs/components/Switch.js +5 -13
- package/dist/cjs/components/Tab.js +8 -23
- package/dist/cjs/components/Text.js +6 -14
- package/dist/cjs/components/Textarea.js +5 -10
- package/dist/cjs/components/Tile.js +5 -19
- package/dist/cjs/components/Title.js +5 -19
- package/dist/cjs/components/Tooltip.js +5 -19
- package/dist/cjs/components/Video.js +5 -9
- package/dist/cjs/components/Warning.js +5 -19
- package/dist/cjs/context/Notifications.js +16 -188
- package/dist/cjs/context/UIContext.js +14 -71
- package/dist/cjs/context/UrlAssetPrefix.js +15 -13
- package/dist/cjs/hoc/urlWithAssetPrefix.js +14 -73
- package/dist/cjs/hooks/useAppearanceConfig/useAppearanceConfig.js +14 -25
- package/dist/cjs/hooks/useAppearanceConfig.js +12 -2
- package/dist/cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +10 -124
- package/dist/cjs/hooks/useDevicePropsGenerator.js +6 -9
- package/dist/cjs/hooks/useDeviceTargetClass.js +8 -4
- package/dist/cjs/hooks/useMediaQueries/useMediaQueries.js +13 -116
- package/dist/cjs/hooks/useMediaQueries.js +11 -2
- package/dist/cjs/hooks/useStyles/styleAttributes.js +15 -168
- package/dist/cjs/hooks/useStyles/useStyles.js +10 -196
- package/dist/cjs/hooks/useStyles.js +7 -10
- package/dist/cjs/hooks.js +15 -6
- package/dist/cjs/utils/mergeAppearanceKeys.js +15 -15
- package/dist/cjs/utils/setViewportProperty.js +15 -5
- package/dist/cjs/utils.js +14 -4
- package/dist/components/Accordion.js +1 -16
- package/dist/components/Avatar.js +4 -18
- package/dist/components/AvatarStack.js +4 -18
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Badge.js +2 -16
- package/dist/components/Breadcrumbs.js +1 -15
- package/dist/components/Button.js +4 -18
- package/dist/components/Cell.js +2 -16
- package/dist/components/Checkbox.js +4 -12
- package/dist/components/Checkmark.js +1 -15
- package/dist/components/Chips.js +2 -16
- package/dist/components/Choice.js +2 -16
- package/dist/components/Code.js +3 -8
- package/dist/components/CookiesWarning.js +4 -18
- package/dist/components/Dadata.js +4 -9
- package/dist/components/DatePeriod.js +12 -27
- package/dist/components/DatePicker.js +7 -21
- package/dist/components/Divider.js +3 -11
- package/dist/components/Dot.js +2 -8
- package/dist/components/Drawer.js +3 -18
- package/dist/components/Dropdown.js +1 -17
- package/dist/components/Dropzone.js +7 -21
- package/dist/components/Flex.js +2 -8
- package/dist/components/Grid.js +2 -8
- package/dist/components/Group.js +3 -10
- package/dist/components/HTMLContent.js +2 -8
- package/dist/components/HeroTitle.js +1 -15
- package/dist/components/Icon.js +2 -16
- package/dist/components/Image.js +4 -12
- package/dist/components/Input.js +4 -9
- package/dist/components/InputNumber.js +4 -18
- package/dist/components/InputPassword/index.js +1 -1
- package/dist/components/InputPassword.js +3 -17
- package/dist/components/Label.js +2 -16
- package/dist/components/Link/index.js +1 -1
- package/dist/components/Link.js +2 -10
- package/dist/components/List.js +2 -10
- package/dist/components/Loader.js +3 -11
- package/dist/components/Logo.js +3 -13
- package/dist/components/MenuItem.js +1 -15
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Modal.js +3 -17
- package/dist/components/ModalSheetBottom.js +1 -15
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/Notification.js +5 -19
- package/dist/components/Overlay.js +3 -10
- package/dist/components/Pagination.js +1 -17
- package/dist/components/Radio.js +2 -10
- package/dist/components/RangeSlider.js +2 -8
- package/dist/components/Response.js +5 -19
- package/dist/components/SVGContent.js +2 -11
- package/dist/components/ScrollOnDrag.js +2 -8
- package/dist/components/ScrollToView.js +2 -8
- package/dist/components/Search/index.js +1 -1
- package/dist/components/Search.js +1 -15
- package/dist/components/Segmented.js +2 -16
- package/dist/components/Select.js +5 -20
- package/dist/components/Swiper.js +2 -16
- package/dist/components/Switch.js +2 -10
- package/dist/components/Tab.js +2 -17
- package/dist/components/Text.js +3 -11
- package/dist/components/Textarea.js +3 -8
- package/dist/components/Tile.js +1 -15
- package/dist/components/Title.js +2 -16
- package/dist/components/Tooltip.js +2 -16
- package/dist/components/Video.js +4 -8
- package/dist/components/Warning.js +1 -15
- package/dist/hooks/useAppearanceConfig.js +11 -1
- package/dist/hooks/useDevicePropsGenerator.js +5 -8
- package/dist/hooks/useMediaQueries.js +10 -1
- package/dist/hooks/useStyles.js +6 -9
- package/dist/hooks.js +12 -7
- package/dist/primitives_cjs_CnyJ13MJ.js +2715 -0
- package/dist/primitives_es_BjyEnscF.js +2672 -0
- package/dist/types/components/Accordion/index.d.ts +1 -0
- package/dist/types/components/Avatar/index.d.ts +1 -0
- package/dist/types/components/AvatarStack/index.d.ts +1 -0
- package/dist/types/components/Badge/index.d.ts +2 -1
- package/dist/types/components/Breadcrumbs/index.d.ts +1 -0
- package/dist/types/components/Button/Button.d.ts +45 -45
- package/dist/types/components/Button/index.d.ts +1 -0
- package/dist/types/components/Cell/index.d.ts +1 -0
- package/dist/types/components/Checkbox/index.d.ts +1 -0
- package/dist/types/components/Checkmark/index.d.ts +1 -0
- package/dist/types/components/Choice/index.d.ts +1 -0
- package/dist/types/components/Code/index.d.ts +1 -0
- package/dist/types/components/CookiesWarning/index.d.ts +1 -0
- package/dist/types/components/Dadata/index.d.ts +1 -0
- package/dist/types/components/DatePeriod/index.d.ts +1 -0
- package/dist/types/components/DatePicker/index.d.ts +1 -0
- package/dist/types/components/Divider/index.d.ts +1 -0
- package/dist/types/components/Dot/index.d.ts +1 -0
- package/dist/types/components/Drawer/index.d.ts +1 -0
- package/dist/types/components/Dropdown/index.d.ts +1 -0
- package/dist/types/components/Dropzone/index.d.ts +1 -0
- package/dist/types/components/Flex/index.d.ts +1 -0
- package/dist/types/components/Grid/index.d.ts +1 -0
- package/dist/types/components/Group/Group.d.ts +5 -5
- package/dist/types/components/Group/index.d.ts +1 -0
- package/dist/types/components/HTMLContent/index.d.ts +1 -0
- package/dist/types/components/HeroTitle/index.d.ts +1 -0
- package/dist/types/components/Icon/Icon.d.ts +2 -2
- package/dist/types/components/Icon/index.d.ts +1 -0
- package/dist/types/components/Image/index.d.ts +1 -0
- package/dist/types/components/Input/index.d.ts +1 -0
- package/dist/types/components/InputPassword/index.d.ts +2 -1
- package/dist/types/components/Label/index.d.ts +1 -0
- package/dist/types/components/Link/index.d.ts +2 -1
- package/dist/types/components/List/index.d.ts +1 -0
- package/dist/types/components/Loader/index.d.ts +1 -0
- package/dist/types/components/Logo/index.d.ts +1 -0
- package/dist/types/components/MenuItem/index.d.ts +1 -0
- package/dist/types/components/Modal/Modal.d.ts +16 -16
- package/dist/types/components/Modal/index.d.ts +2 -1
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.d.ts +7 -7
- package/dist/types/components/ModalSheetBottom/index.d.ts +1 -0
- package/dist/types/components/Notification/index.d.ts +2 -1
- package/dist/types/components/Overlay/index.d.ts +1 -0
- package/dist/types/components/Pagination/index.d.ts +1 -0
- package/dist/types/components/Radio/index.d.ts +1 -0
- package/dist/types/components/RangeSlider/index.d.ts +1 -0
- package/dist/types/components/Response/Response.d.ts +33 -33
- package/dist/types/components/Response/index.d.ts +1 -0
- package/dist/types/components/SVGContent/SVGContent.d.ts +1 -1
- package/dist/types/components/SVGContent/index.d.ts +1 -0
- package/dist/types/components/ScrollOnDrag/index.d.ts +1 -0
- package/dist/types/components/ScrollToView/index.d.ts +1 -0
- package/dist/types/components/Scrollbar/index.d.ts +1 -0
- package/dist/types/components/Search/SearchInput.d.ts +19 -19
- package/dist/types/components/Search/index.d.ts +2 -1
- package/dist/types/components/Segmented/index.d.ts +1 -0
- package/dist/types/components/Select/index.d.ts +1 -0
- package/dist/types/components/Swiper/index.d.ts +1 -0
- package/dist/types/components/Switch/Switch.d.ts +4 -4
- package/dist/types/components/Switch/index.d.ts +1 -0
- package/dist/types/components/Tab/index.d.ts +1 -0
- package/dist/types/components/Text/index.d.ts +1 -0
- package/dist/types/components/Textarea/index.d.ts +1 -0
- package/dist/types/components/Tile/index.d.ts +1 -0
- package/dist/types/components/Title/index.d.ts +1 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +6 -6
- package/dist/types/components/Tooltip/index.d.ts +1 -0
- package/dist/types/components/Video/index.d.ts +1 -0
- package/dist/types/components/Warning/index.d.ts +1 -0
- package/dist/utils.js +12 -2
- package/package.json +1 -1
- package/dist/Divider_cjs_C5Ou2Kqa.js +0 -104
- package/dist/Divider_es_D2snK_vn.js +0 -100
- package/dist/DropdownItem_cjs_k28TIoDU.js +0 -230
- package/dist/DropdownItem_es_DjPgbwtU.js +0 -225
- package/dist/Icon_cjs_DTvdhr8B.js +0 -1099
- package/dist/Icon_es_kewxGRUB.js +0 -1086
- package/dist/Link_cjs_Dn7UhCYe.js +0 -277
- package/dist/Link_es_BDAmhIzd.js +0 -272
- package/dist/Text_cjs_erTy2pUN.js +0 -68
- package/dist/Text_es_DVNvU0m0.js +0 -64
|
@@ -1,204 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
require('
|
|
8
|
-
var UIContext = require('../../context/UIContext.js');
|
|
9
|
-
var index_helpers = require('../../hooks.js');
|
|
10
|
-
var styleAttributes = require('./styleAttributes.js');
|
|
3
|
+
require('react');
|
|
4
|
+
require('lodash/camelCase');
|
|
5
|
+
require('lodash/maxBy');
|
|
6
|
+
require('lodash/upperFirst');
|
|
7
|
+
var primitives = require('../../../primitives_cjs_CnyJ13MJ.js');
|
|
11
8
|
require('react/jsx-runtime');
|
|
9
|
+
require('clsx');
|
|
10
|
+
require('lodash/castArray');
|
|
12
11
|
require('uuid');
|
|
13
12
|
require('@itcase/common');
|
|
14
|
-
require('../useMediaQueries/useMediaQueries.js');
|
|
15
13
|
require('react-responsive');
|
|
16
|
-
require('
|
|
14
|
+
require('react-inlinesvg');
|
|
17
15
|
|
|
18
|
-
/*
|
|
19
|
-
* rule of prop key:
|
|
20
|
-
*
|
|
21
|
-
* first is style second is div target third is device
|
|
22
|
-
* paddingHorizontal GridInnerWrapper MobileNormal
|
|
23
|
-
*
|
|
24
|
-
* paddingHorizontalGridInnerWrapperMobileNormal: "10px"
|
|
25
|
-
*/
|
|
26
|
-
function useStyles(props) {
|
|
27
|
-
const { deviceCurrentMainType, deviceCurrentType, deviceTypesList } = UIContext.useUserDeviceContext();
|
|
28
|
-
const propsStyleAttributes = React.useMemo(() => {
|
|
29
|
-
const styles = Object.entries(props).reduce((result, [propKey, propValue]) => {
|
|
30
|
-
const styleAttributeKey = getTargetStyleAttributeKey(propKey, propValue);
|
|
31
|
-
if (styleAttributeKey) {
|
|
32
|
-
result[propKey] = propValue;
|
|
33
|
-
}
|
|
34
|
-
return result;
|
|
35
|
-
}, {});
|
|
36
|
-
return styles;
|
|
37
|
-
// "props" object maybe big and frequently changing
|
|
38
|
-
}, [props]);
|
|
39
|
-
const collectedStyles = React.useMemo(() => {
|
|
40
|
-
const resultStylesGroups = {};
|
|
41
|
-
for (const [propKey, propValue] of Object.entries(propsStyleAttributes)) {
|
|
42
|
-
let value = null;
|
|
43
|
-
const styleAttributeKey = getTargetStyleAttributeKey(propKey, propValue);
|
|
44
|
-
const isStyleForCurrentDevice = propKey
|
|
45
|
-
.toLowerCase()
|
|
46
|
-
.endsWith(deviceCurrentType.toLowerCase());
|
|
47
|
-
// e.g. "GridWrapperInner"
|
|
48
|
-
const targetElementKey = removeDeviceType(propKey.replace(styleAttributeKey, ''), deviceTypesList);
|
|
49
|
-
const targetElementGroupKey = camelCase(targetElementKey) || 'styles';
|
|
50
|
-
if (!resultStylesGroups[targetElementGroupKey]) {
|
|
51
|
-
resultStylesGroups[targetElementGroupKey] = {};
|
|
52
|
-
}
|
|
53
|
-
if (isStyleForCurrentDevice) {
|
|
54
|
-
value = propValue;
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
const propKeyWithOutDeviceType = `${styleAttributeKey}${targetElementKey}`;
|
|
58
|
-
const propKeyWithBaseDeviceType = `${propKeyWithOutDeviceType}${upperFirst(deviceCurrentMainType)}`;
|
|
59
|
-
const defaultValue = props[propKeyWithBaseDeviceType] || props[propKeyWithOutDeviceType];
|
|
60
|
-
let currentValue = resultStylesGroups[targetElementGroupKey][styleAttributeKey];
|
|
61
|
-
if (propKeyWithOutDeviceType.includes('Horizontal')) {
|
|
62
|
-
const keyLeft = styleAttributeKey.replace('Horizontal', 'Left');
|
|
63
|
-
currentValue =
|
|
64
|
-
resultStylesGroups[targetElementGroupKey][keyLeft];
|
|
65
|
-
}
|
|
66
|
-
else if (propKeyWithOutDeviceType.includes('Vertical')) {
|
|
67
|
-
const keyTop = styleAttributeKey.replace('Vertical', 'Top');
|
|
68
|
-
currentValue =
|
|
69
|
-
resultStylesGroups[targetElementGroupKey][keyTop];
|
|
70
|
-
}
|
|
71
|
-
if (!currentValue) {
|
|
72
|
-
value = defaultValue;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
if (value) {
|
|
76
|
-
// Check not digit symbols. Chars means some unit ("px", "em", "rem" or custom "m")
|
|
77
|
-
const isValueHasUnit = /\D/.test(value);
|
|
78
|
-
// If value has some unit
|
|
79
|
-
if (isValueHasUnit) {
|
|
80
|
-
// Check value on our custom "m"(module) unit
|
|
81
|
-
/** Pattern for:
|
|
82
|
-
* 1m
|
|
83
|
-
* 1.5m
|
|
84
|
-
* 1m 1m 1.5m
|
|
85
|
-
* 0 0 1m 1m
|
|
86
|
-
*/
|
|
87
|
-
const isValueHasModuleUnit = /\d+\.?\d*m\s?(?![a-zA-Z]+)/.test(value);
|
|
88
|
-
// If value has module unit
|
|
89
|
-
if (isValueHasModuleUnit) {
|
|
90
|
-
/** Order for shorthand properties:
|
|
91
|
-
* top
|
|
92
|
-
* right
|
|
93
|
-
* bottom
|
|
94
|
-
* left
|
|
95
|
-
* or:
|
|
96
|
-
* top
|
|
97
|
-
* right and left
|
|
98
|
-
* bottom
|
|
99
|
-
* or:
|
|
100
|
-
* top and bottom
|
|
101
|
-
* right and left
|
|
102
|
-
*/
|
|
103
|
-
const valuePxPartsList = value
|
|
104
|
-
.split(' ')
|
|
105
|
-
.map((valuePart) => {
|
|
106
|
-
const valueModule = valuePart.replace(/[a-z]/gi, '');
|
|
107
|
-
const valuePx = parseFloat(valueModule) * 8;
|
|
108
|
-
return `${valuePx}px`;
|
|
109
|
-
}, []);
|
|
110
|
-
value = valuePxPartsList.join(' ');
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
// Some properties doesn't have any units
|
|
115
|
-
const ignorePX = ['zIndex', 'order', 'flexGrow'].includes(styleAttributeKey);
|
|
116
|
-
if (!ignorePX) {
|
|
117
|
-
// Add px to non-unit value
|
|
118
|
-
value = `${value}px`;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
if (styleAttributeKey.includes('Horizontal')) {
|
|
122
|
-
const keyRight = styleAttributeKey.replace('Horizontal', 'Right');
|
|
123
|
-
const keyLeft = styleAttributeKey.replace('Horizontal', 'Left');
|
|
124
|
-
const valuePartsList = value.split(' ');
|
|
125
|
-
const valueRight = valuePartsList[0];
|
|
126
|
-
const valueLeft = valuePartsList[1] || valuePartsList[0];
|
|
127
|
-
resultStylesGroups[targetElementGroupKey][keyRight] = valueRight;
|
|
128
|
-
resultStylesGroups[targetElementGroupKey][keyLeft] = valueLeft;
|
|
129
|
-
}
|
|
130
|
-
else if (styleAttributeKey.includes('Vertical')) {
|
|
131
|
-
const keyTop = styleAttributeKey.replace('Vertical', 'Top');
|
|
132
|
-
const keyBottom = styleAttributeKey.replace('Vertical', 'Bottom');
|
|
133
|
-
const valuePartsList = value.split(' ');
|
|
134
|
-
const valueTop = valuePartsList[0];
|
|
135
|
-
const valueBottom = valuePartsList[1] || valuePartsList[0];
|
|
136
|
-
resultStylesGroups[targetElementGroupKey][keyTop] = valueTop;
|
|
137
|
-
resultStylesGroups[targetElementGroupKey][keyBottom] = valueBottom;
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
resultStylesGroups[targetElementGroupKey][styleAttributeKey] = value;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return resultStylesGroups;
|
|
145
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
146
|
-
}, [
|
|
147
|
-
deviceCurrentMainType,
|
|
148
|
-
deviceCurrentType,
|
|
149
|
-
...Object.values(propsStyleAttributes),
|
|
150
|
-
]);
|
|
151
|
-
return collectedStyles;
|
|
152
|
-
}
|
|
153
|
-
const removeDeviceType = (originalKey, deviceTypesList) => {
|
|
154
|
-
// Remove "mobile"/"tablet"/"desktop"
|
|
155
|
-
const withOutDeviceType = deviceTypesList.reduce((cleanKey, deviceType) => {
|
|
156
|
-
if (cleanKey.endsWith(upperFirst(deviceType))) {
|
|
157
|
-
return cleanKey.replace(upperFirst(deviceType), '');
|
|
158
|
-
}
|
|
159
|
-
return cleanKey;
|
|
160
|
-
}, originalKey);
|
|
161
|
-
return withOutDeviceType;
|
|
162
|
-
};
|
|
163
|
-
const getTargetStyleAttributeKey = (styleKey, styleValue = '') => {
|
|
164
|
-
// Collect list of possible styles for propKey. e.g:
|
|
165
|
-
// "borderLeftWidthWrapperInnerMobileNormal" to ["border", "borderLeftWidth"]
|
|
166
|
-
const possibleStyleAttributesList = styleAttributes.default.filter((styleAttribute) => {
|
|
167
|
-
// Attribute can be array with key on first position and params on second
|
|
168
|
-
if (Array.isArray(styleAttribute)) {
|
|
169
|
-
// First item always attribute key (e.g. border, width, etc)
|
|
170
|
-
const styleAttributeKey = styleAttribute[0];
|
|
171
|
-
// Second item always params with some settings or methods
|
|
172
|
-
const styleAttributeParams = styleAttribute[1] || {};
|
|
173
|
-
// If is target attribute key
|
|
174
|
-
if (styleKey.startsWith(styleAttributeKey)) {
|
|
175
|
-
// If target attribute params has validate method
|
|
176
|
-
if (styleAttributeParams.validate) {
|
|
177
|
-
// Return validation result for target attribute
|
|
178
|
-
return styleAttributeParams.validate(styleValue);
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
// Or always add to list
|
|
182
|
-
return true;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
// Else ignore
|
|
187
|
-
return false;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
// If is target attribute
|
|
192
|
-
return styleKey.startsWith(String(styleAttribute));
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
// Get longest style key (e.g. "borderLeftWidth")
|
|
196
|
-
const targetStyleAttribute = maxBy(possibleStyleAttributesList, (styleAttribute) => {
|
|
197
|
-
const key = index_helpers.getStyleAttributeKey(styleAttribute);
|
|
198
|
-
return key.length;
|
|
199
|
-
});
|
|
200
|
-
const styleAttributeKey = index_helpers.getStyleAttributeKey(targetStyleAttribute);
|
|
201
|
-
return styleAttributeKey;
|
|
202
|
-
};
|
|
203
16
|
|
|
204
|
-
|
|
17
|
+
|
|
18
|
+
exports.useStyles = primitives.useStyles;
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var primitives = require('../../primitives_cjs_CnyJ13MJ.js');
|
|
4
|
+
require('react/jsx-runtime');
|
|
4
5
|
require('react');
|
|
6
|
+
require('clsx');
|
|
5
7
|
require('lodash/camelCase');
|
|
6
|
-
require('lodash/
|
|
8
|
+
require('lodash/castArray');
|
|
7
9
|
require('lodash/upperFirst');
|
|
8
|
-
require('../context/Notifications.js');
|
|
9
|
-
require('react/jsx-runtime');
|
|
10
10
|
require('uuid');
|
|
11
11
|
require('@itcase/common');
|
|
12
|
-
require('../context/UIContext.js');
|
|
13
|
-
require('./useMediaQueries/useMediaQueries.js');
|
|
14
12
|
require('react-responsive');
|
|
15
|
-
require('
|
|
16
|
-
require('
|
|
17
|
-
require('./useStyles/styleAttributes.js');
|
|
13
|
+
require('lodash/maxBy');
|
|
14
|
+
require('react-inlinesvg');
|
|
18
15
|
|
|
19
16
|
|
|
20
17
|
|
|
21
|
-
exports.useStyles =
|
|
18
|
+
exports.useStyles = primitives.useStyles;
|
package/dist/cjs/hooks.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
var primitives = require('../primitives_cjs_CnyJ13MJ.js');
|
|
4
|
+
require('react/jsx-runtime');
|
|
5
|
+
require('react');
|
|
6
|
+
require('clsx');
|
|
7
|
+
require('lodash/camelCase');
|
|
8
|
+
require('lodash/castArray');
|
|
9
|
+
require('lodash/upperFirst');
|
|
10
|
+
require('uuid');
|
|
11
|
+
require('@itcase/common');
|
|
12
|
+
require('react-responsive');
|
|
13
|
+
require('lodash/maxBy');
|
|
14
|
+
require('react-inlinesvg');
|
|
8
15
|
|
|
9
|
-
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.getStyleAttributeKey = primitives.getStyleAttributeKey;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return uniqueAppearances.join(' ');
|
|
16
|
-
};
|
|
3
|
+
var primitives = require('../../primitives_cjs_CnyJ13MJ.js');
|
|
4
|
+
require('react/jsx-runtime');
|
|
5
|
+
require('react');
|
|
6
|
+
require('clsx');
|
|
7
|
+
require('lodash/camelCase');
|
|
8
|
+
require('lodash/castArray');
|
|
9
|
+
require('lodash/upperFirst');
|
|
10
|
+
require('uuid');
|
|
11
|
+
require('@itcase/common');
|
|
12
|
+
require('react-responsive');
|
|
13
|
+
require('lodash/maxBy');
|
|
14
|
+
require('react-inlinesvg');
|
|
17
15
|
|
|
18
|
-
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.mergeAppearanceKeys = primitives.mergeAppearanceKeys;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
var primitives = require('../../primitives_cjs_CnyJ13MJ.js');
|
|
4
|
+
require('react/jsx-runtime');
|
|
5
|
+
require('react');
|
|
6
|
+
require('clsx');
|
|
7
|
+
require('lodash/camelCase');
|
|
8
|
+
require('lodash/castArray');
|
|
9
|
+
require('lodash/upperFirst');
|
|
10
|
+
require('uuid');
|
|
11
|
+
require('@itcase/common');
|
|
12
|
+
require('react-responsive');
|
|
13
|
+
require('lodash/maxBy');
|
|
14
|
+
require('react-inlinesvg');
|
|
7
15
|
|
|
8
|
-
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.setViewportProperty = primitives.setViewportProperty;
|
package/dist/cjs/utils.js
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
3
|
+
var primitives = require('../primitives_cjs_CnyJ13MJ.js');
|
|
4
|
+
require('react/jsx-runtime');
|
|
5
|
+
require('react');
|
|
6
|
+
require('clsx');
|
|
7
|
+
require('lodash/camelCase');
|
|
8
|
+
require('lodash/castArray');
|
|
9
|
+
require('lodash/upperFirst');
|
|
10
|
+
require('uuid');
|
|
11
|
+
require('@itcase/common');
|
|
12
|
+
require('react-responsive');
|
|
13
|
+
require('lodash/maxBy');
|
|
14
|
+
require('react-inlinesvg');
|
|
5
15
|
|
|
6
16
|
|
|
7
17
|
|
|
8
|
-
exports.mergeAppearanceKeys =
|
|
9
|
-
exports.setViewportProperty =
|
|
18
|
+
exports.mergeAppearanceKeys = primitives.mergeAppearanceKeys;
|
|
19
|
+
exports.setViewportProperty = primitives.setViewportProperty;
|
|
@@ -2,30 +2,15 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import React, { useCallback, useState, useMemo } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import castArray from 'lodash/castArray';
|
|
5
|
-
import { useDevicePropsGenerator } from '../
|
|
6
|
-
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { mergeAppearanceKeys } from '../utils/mergeAppearanceKeys.js';
|
|
8
|
-
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
9
|
-
import { B as Badge, I as Icon } from '../Icon_es_kewxGRUB.js';
|
|
10
|
-
import { D as Divider } from '../Divider_es_D2snK_vn.js';
|
|
11
|
-
import { T as Text } from '../Text_es_DVNvU0m0.js';
|
|
5
|
+
import { d as useAppearanceConfig, a as useDevicePropsGenerator, u as useStyles, b as Text, B as Badge, m as mergeAppearanceKeys, I as Icon, D as Divider } from '../primitives_es_BjyEnscF.js';
|
|
12
6
|
import { icons16 } from '@itcase/icons/default';
|
|
13
7
|
import 'lodash/camelCase';
|
|
14
8
|
import 'lodash/upperFirst';
|
|
15
|
-
import '../context/Notifications.js';
|
|
16
9
|
import 'uuid';
|
|
17
10
|
import '@itcase/common';
|
|
18
|
-
import '../context/UIContext.js';
|
|
19
|
-
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
20
11
|
import 'react-responsive';
|
|
21
|
-
import '../utils/setViewportProperty.js';
|
|
22
|
-
import '../hooks.js';
|
|
23
|
-
import '../hooks/useStyles/styleAttributes.js';
|
|
24
12
|
import 'lodash/maxBy';
|
|
25
13
|
import 'react-inlinesvg';
|
|
26
|
-
import '../Link_es_BDAmhIzd.js';
|
|
27
|
-
import '../hoc/urlWithAssetPrefix.js';
|
|
28
|
-
import '../context/UrlAssetPrefix.js';
|
|
29
14
|
|
|
30
15
|
const accordionAppearanceSize = {
|
|
31
16
|
sizeXXL: {
|
|
@@ -1,28 +1,14 @@
|
|
|
1
|
-
export { A as Avatar, a as avatarAppearance, b as avatarConfig } from '../
|
|
1
|
+
export { A as Avatar, a as avatarAppearance, b as avatarConfig } from '../Avatar_es_eDWRG48M.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
5
|
-
import '../
|
|
6
|
-
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
|
+
import '../primitives_es_BjyEnscF.js';
|
|
7
6
|
import 'lodash/camelCase';
|
|
8
7
|
import 'lodash/castArray';
|
|
9
8
|
import 'lodash/upperFirst';
|
|
10
|
-
import '../context/Notifications.js';
|
|
11
9
|
import 'uuid';
|
|
12
10
|
import '@itcase/common';
|
|
13
|
-
import '../context/UIContext.js';
|
|
14
|
-
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
15
11
|
import 'react-responsive';
|
|
16
|
-
import '../utils/setViewportProperty.js';
|
|
17
|
-
import '../hooks.js';
|
|
18
|
-
import '../hooks/useStyles/styleAttributes.js';
|
|
19
|
-
import '../Icon_es_kewxGRUB.js';
|
|
20
|
-
import 'react-inlinesvg';
|
|
21
|
-
import '../Link_es_BDAmhIzd.js';
|
|
22
|
-
import '../hooks/useStyles/useStyles.js';
|
|
23
12
|
import 'lodash/maxBy';
|
|
24
|
-
import '
|
|
25
|
-
import '../
|
|
26
|
-
import '../context/UrlAssetPrefix.js';
|
|
27
|
-
import '../utils/mergeAppearanceKeys.js';
|
|
28
|
-
import '../Image_es_DpOCNWpn.js';
|
|
13
|
+
import 'react-inlinesvg';
|
|
14
|
+
import '../Image_es_DhPg4srf.js';
|
|
@@ -1,32 +1,18 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { mergeAppearanceKeys } from '../
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { A as Avatar } from '../Avatar_es_CtP68jPM.js';
|
|
8
|
-
import { G as Group } from '../Group_es_CP-uIchb.js';
|
|
9
|
-
import { T as Text } from '../Text_es_DVNvU0m0.js';
|
|
3
|
+
import { d as useAppearanceConfig, a as useDevicePropsGenerator, u as useStyles, m as mergeAppearanceKeys, b as Text } from '../primitives_es_BjyEnscF.js';
|
|
4
|
+
import { A as Avatar } from '../Avatar_es_eDWRG48M.js';
|
|
5
|
+
import { G as Group } from '../Group_es_BUkLNi2_.js';
|
|
10
6
|
import 'react';
|
|
11
7
|
import 'lodash/camelCase';
|
|
12
8
|
import 'lodash/castArray';
|
|
13
9
|
import 'lodash/upperFirst';
|
|
14
|
-
import '../context/Notifications.js';
|
|
15
10
|
import 'uuid';
|
|
16
11
|
import '@itcase/common';
|
|
17
|
-
import '../context/UIContext.js';
|
|
18
|
-
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
19
12
|
import 'react-responsive';
|
|
20
|
-
import '../utils/setViewportProperty.js';
|
|
21
|
-
import '../hooks.js';
|
|
22
|
-
import '../hooks/useStyles/styleAttributes.js';
|
|
23
13
|
import 'lodash/maxBy';
|
|
24
|
-
import '../Icon_es_kewxGRUB.js';
|
|
25
14
|
import 'react-inlinesvg';
|
|
26
|
-
import '../
|
|
27
|
-
import '../hoc/urlWithAssetPrefix.js';
|
|
28
|
-
import '../context/UrlAssetPrefix.js';
|
|
29
|
-
import '../Image_es_DpOCNWpn.js';
|
|
15
|
+
import '../Image_es_DhPg4srf.js';
|
|
30
16
|
|
|
31
17
|
const avatarStackAppearanceSize = {
|
|
32
18
|
size16: {
|
package/dist/components/Badge.js
CHANGED
|
@@ -1,26 +1,12 @@
|
|
|
1
|
-
export { B as Badge,
|
|
1
|
+
export { B as Badge, q as badgeAppearance, r as badgeConfig } from '../primitives_es_BjyEnscF.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
5
|
-
import 'react-inlinesvg';
|
|
6
|
-
import '../Link_es_BDAmhIzd.js';
|
|
7
|
-
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
|
-
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
5
|
import 'lodash/camelCase';
|
|
10
6
|
import 'lodash/castArray';
|
|
11
7
|
import 'lodash/upperFirst';
|
|
12
|
-
import '../context/Notifications.js';
|
|
13
8
|
import 'uuid';
|
|
14
9
|
import '@itcase/common';
|
|
15
|
-
import '../context/UIContext.js';
|
|
16
|
-
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
17
10
|
import 'react-responsive';
|
|
18
|
-
import '../utils/setViewportProperty.js';
|
|
19
|
-
import '../hooks.js';
|
|
20
|
-
import '../hooks/useStyles/styleAttributes.js';
|
|
21
|
-
import '../hooks/useStyles/useStyles.js';
|
|
22
11
|
import 'lodash/maxBy';
|
|
23
|
-
import '
|
|
24
|
-
import '../hoc/urlWithAssetPrefix.js';
|
|
25
|
-
import '../context/UrlAssetPrefix.js';
|
|
26
|
-
import '../utils/mergeAppearanceKeys.js';
|
|
12
|
+
import 'react-inlinesvg';
|
|
@@ -1,30 +1,16 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { useDevicePropsGenerator } from '../
|
|
5
|
-
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
|
-
import { I as Icon } from '../Icon_es_kewxGRUB.js';
|
|
8
|
-
import { a as LinkWrapper } from '../Link_es_BDAmhIzd.js';
|
|
9
|
-
import { T as Text } from '../Text_es_DVNvU0m0.js';
|
|
4
|
+
import { d as useAppearanceConfig, a as useDevicePropsGenerator, u as useStyles, L as LinkWrapper, b as Text, I as Icon } from '../primitives_es_BjyEnscF.js';
|
|
10
5
|
import { icons12, icons14, icons16, icons20, icons24 } from '@itcase/icons/default';
|
|
11
6
|
import 'lodash/camelCase';
|
|
12
7
|
import 'lodash/castArray';
|
|
13
8
|
import 'lodash/upperFirst';
|
|
14
|
-
import '../context/Notifications.js';
|
|
15
9
|
import 'uuid';
|
|
16
10
|
import '@itcase/common';
|
|
17
|
-
import '../context/UIContext.js';
|
|
18
|
-
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
19
11
|
import 'react-responsive';
|
|
20
|
-
import '../utils/setViewportProperty.js';
|
|
21
|
-
import '../hooks.js';
|
|
22
|
-
import '../hooks/useStyles/styleAttributes.js';
|
|
23
12
|
import 'lodash/maxBy';
|
|
24
13
|
import 'react-inlinesvg';
|
|
25
|
-
import '../hoc/urlWithAssetPrefix.js';
|
|
26
|
-
import '../context/UrlAssetPrefix.js';
|
|
27
|
-
import '../utils/mergeAppearanceKeys.js';
|
|
28
14
|
|
|
29
15
|
const breadcrumbsAppearanceAccent = {
|
|
30
16
|
accentPrimary: {
|
|
@@ -1,29 +1,15 @@
|
|
|
1
|
-
export { B as Button, b as buttonAppearance, a as buttonConfig } from '../
|
|
1
|
+
export { B as Button, b as buttonAppearance, a as buttonConfig } from '../Button_es_egCg1YEe.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
5
|
-
import '../
|
|
6
|
-
import 'react-inlinesvg';
|
|
7
|
-
import '../Link_es_BDAmhIzd.js';
|
|
8
|
-
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
9
|
-
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
|
+
import '../primitives_es_BjyEnscF.js';
|
|
10
6
|
import 'lodash/camelCase';
|
|
11
7
|
import 'lodash/castArray';
|
|
12
8
|
import 'lodash/upperFirst';
|
|
13
|
-
import '../context/Notifications.js';
|
|
14
9
|
import 'uuid';
|
|
15
10
|
import '@itcase/common';
|
|
16
|
-
import '../context/UIContext.js';
|
|
17
|
-
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
18
11
|
import 'react-responsive';
|
|
19
|
-
import '../utils/setViewportProperty.js';
|
|
20
|
-
import '../hooks.js';
|
|
21
|
-
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
-
import '../hooks/useStyles/useStyles.js';
|
|
23
12
|
import 'lodash/maxBy';
|
|
24
|
-
import '
|
|
25
|
-
import '../
|
|
26
|
-
import '../context/UrlAssetPrefix.js';
|
|
27
|
-
import '../utils/mergeAppearanceKeys.js';
|
|
28
|
-
import '../Loader_es_CqlLujBJ.js';
|
|
13
|
+
import 'react-inlinesvg';
|
|
14
|
+
import '../Loader_es_BZMRBcgn.js';
|
|
29
15
|
import '../hooks/useHoldProgress.js';
|
package/dist/components/Cell.js
CHANGED
|
@@ -1,30 +1,16 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { mergeAppearanceKeys } from '../
|
|
4
|
-
import {
|
|
5
|
-
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon } from '../Icon_es_kewxGRUB.js';
|
|
8
|
-
import { L as Label } from '../Label_es_CNRTIAWo.js';
|
|
9
|
-
import { T as Text } from '../Text_es_DVNvU0m0.js';
|
|
3
|
+
import { d as useAppearanceConfig, a as useDevicePropsGenerator, u as useStyles, b as Text, I as Icon, m as mergeAppearanceKeys } from '../primitives_es_BjyEnscF.js';
|
|
4
|
+
import { L as Label } from '../Label_es_DZn7Ulmk.js';
|
|
10
5
|
import 'react';
|
|
11
6
|
import 'lodash/camelCase';
|
|
12
7
|
import 'lodash/castArray';
|
|
13
8
|
import 'lodash/upperFirst';
|
|
14
|
-
import '../context/Notifications.js';
|
|
15
9
|
import 'uuid';
|
|
16
10
|
import '@itcase/common';
|
|
17
|
-
import '../context/UIContext.js';
|
|
18
|
-
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
19
11
|
import 'react-responsive';
|
|
20
|
-
import '../utils/setViewportProperty.js';
|
|
21
|
-
import '../hooks.js';
|
|
22
|
-
import '../hooks/useStyles/styleAttributes.js';
|
|
23
12
|
import 'lodash/maxBy';
|
|
24
13
|
import 'react-inlinesvg';
|
|
25
|
-
import '../Link_es_BDAmhIzd.js';
|
|
26
|
-
import '../hoc/urlWithAssetPrefix.js';
|
|
27
|
-
import '../context/UrlAssetPrefix.js';
|
|
28
14
|
|
|
29
15
|
const cellAppearanceSize = {
|
|
30
16
|
sizeXL: {
|
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import {
|
|
4
|
-
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
|
-
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import '../hooks/useStyles/useStyles.js';
|
|
3
|
+
import { d as useAppearanceConfig, a as useDevicePropsGenerator, b as Text } from '../primitives_es_BjyEnscF.js';
|
|
7
4
|
import 'react';
|
|
8
5
|
import 'lodash/camelCase';
|
|
9
|
-
import 'lodash/
|
|
6
|
+
import 'lodash/castArray';
|
|
10
7
|
import 'lodash/upperFirst';
|
|
11
|
-
import '../context/Notifications.js';
|
|
12
8
|
import 'uuid';
|
|
13
9
|
import '@itcase/common';
|
|
14
|
-
import '../context/UIContext.js';
|
|
15
|
-
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
16
10
|
import 'react-responsive';
|
|
17
|
-
import '
|
|
18
|
-
import '
|
|
19
|
-
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import 'lodash/castArray';
|
|
11
|
+
import 'lodash/maxBy';
|
|
12
|
+
import 'react-inlinesvg';
|
|
21
13
|
|
|
22
14
|
const checkboxAppearanceDefault = {
|
|
23
15
|
defaultPrimary: {
|
|
@@ -1,30 +1,16 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { useAppearanceConfig } from '../
|
|
4
|
-
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
|
-
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../Icon_es_kewxGRUB.js';
|
|
3
|
+
import { d as useAppearanceConfig, a as useDevicePropsGenerator, u as useStyles, I as Icon } from '../primitives_es_BjyEnscF.js';
|
|
7
4
|
import { icons14, icons20, icons24, icons32, icons40 } from '@itcase/icons/default';
|
|
8
5
|
import 'react';
|
|
9
6
|
import 'lodash/camelCase';
|
|
10
7
|
import 'lodash/castArray';
|
|
11
8
|
import 'lodash/upperFirst';
|
|
12
|
-
import '../context/Notifications.js';
|
|
13
9
|
import 'uuid';
|
|
14
10
|
import '@itcase/common';
|
|
15
|
-
import '../context/UIContext.js';
|
|
16
|
-
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
17
11
|
import 'react-responsive';
|
|
18
|
-
import '../utils/setViewportProperty.js';
|
|
19
|
-
import '../hooks.js';
|
|
20
|
-
import '../hooks/useStyles/styleAttributes.js';
|
|
21
12
|
import 'lodash/maxBy';
|
|
22
13
|
import 'react-inlinesvg';
|
|
23
|
-
import '../Link_es_BDAmhIzd.js';
|
|
24
|
-
import '../Text_es_DVNvU0m0.js';
|
|
25
|
-
import '../hoc/urlWithAssetPrefix.js';
|
|
26
|
-
import '../context/UrlAssetPrefix.js';
|
|
27
|
-
import '../utils/mergeAppearanceKeys.js';
|
|
28
14
|
|
|
29
15
|
const checkmarkAppearanceAccent = {
|
|
30
16
|
accentPrimary: {
|