@itcase/ui 1.8.62 → 1.8.64
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_g8d8LDkU.js → Avatar_cjs_DOBcPDTn.js} +1 -1
- package/dist/{Avatar_es_DbH5Le9j.js → Avatar_es_DA6o8oNQ.js} +1 -1
- package/dist/{Button_cjs_BMCGsGKK.js → Button_cjs_CA7J_adG.js} +5 -5
- package/dist/{Button_es_CvkdyDHz.js → Button_es_BSxEly4r.js} +5 -5
- package/dist/{ChipsGroup_cjs_BALOkFuT.js → ChipsGroup_cjs_DHNbkBEk.js} +1 -1
- package/dist/{ChipsGroup_es_BIDq4idr.js → ChipsGroup_es_zirUM0Bc.js} +1 -1
- package/dist/{DatePicker_cjs_EaIpF6cm.js → DatePicker_cjs_BsLBVElQ.js} +3 -3
- package/dist/{DatePicker_es_Cq2jJkv0.js → DatePicker_es_BotT8lRT.js} +3 -3
- package/dist/{DropdownItem_cjs_DyjqXle_.js → DropdownItem_cjs_BF18Ii9Z.js} +1 -1
- package/dist/{DropdownItem_es_DHKJHW8q.js → DropdownItem_es_2b-hX4HZ.js} +1 -1
- package/dist/{Icon_cjs_BsACgdjJ.js → Icon_cjs_D1Ze-oNL.js} +5 -5
- package/dist/{Icon_es_CoIszJbl.js → Icon_es_DrQu8Zp8.js} +5 -5
- package/dist/{Label_cjs_QJ0WLQXG.js → Label_cjs_BPu58uG9.js} +6 -6
- package/dist/{Label_es_WH-qJKvj.js → Label_es_CH68RBo-.js} +6 -6
- 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 +2 -2
- package/dist/cjs/components/Choice.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +5 -5
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Drawer.js +4 -4
- 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 +1 -1
- 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 +34 -9
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +2 -4
- package/dist/cjs/components/Tile.js +39 -12
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/components/Warning.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.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.js +1 -1
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +5 -5
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Drawer.js +4 -4
- 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 +1 -1
- 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 +34 -9
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +2 -4
- package/dist/components/Tile.js +39 -12
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Warning.js +1 -1
- package/dist/css/components/Badge/Badge.css +0 -10
- package/dist/css/components/Drawer/Drawer.css +17 -11
- package/dist/css/components/Label/Label.css +0 -25
- package/dist/css/components/Search/Search.css +14 -42
- package/dist/css/components/Search/css/search-input/search-input.css +8 -19
- package/dist/css/components/Tile/Tile.css +0 -12
- package/dist/css/components/Title/Title.css +1 -1
- package/dist/types/components/Badge/appearance/badgeShape.d.ts +2 -2
- package/dist/types/components/Button/appearance/buttonShape.d.ts +2 -2
- package/dist/types/components/Label/appearance/labelShape.d.ts +2 -2
- package/dist/types/components/Search/appearance/searchShape.d.ts +25 -0
- package/dist/types/components/Tile/appearance/tileShape.d.ts +25 -0
- package/dist/types/components/Tile/appearance/tileStyle.d.ts +4 -6
- package/dist/types/components/Tile/appearance/tileSurface.d.ts +4 -0
- package/package.json +1 -1
- package/dist/css/components/Search/css/search-input/search-input_shape.css +0 -8
- package/dist/css/components/Search/css/search-result/search-result_shape.css +0 -8
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
7
7
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var Icon = require('./
|
|
8
|
+
var Icon = require('./Icon_cjs_D1Ze-oNL.js');
|
|
9
9
|
var Image = require('./Image_cjs_B6YlGx8G.js');
|
|
10
10
|
var Text = require('./Text_cjs_B8nNXWBA.js');
|
|
11
11
|
var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
@@ -3,7 +3,7 @@ import { useMemo } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
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 './Icon_es_DrQu8Zp8.js';
|
|
7
7
|
import { I as Image } from './Image_es_BvYo_cHH.js';
|
|
8
8
|
import { T as Text } from './Text_es_BvmOR4nv.js';
|
|
9
9
|
import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
|
-
var Icon = require('./
|
|
6
|
+
var Icon = require('./Icon_cjs_D1Ze-oNL.js');
|
|
7
7
|
var Link = require('./Link_cjs_BqT6eVl6.js');
|
|
8
8
|
var Loader = require('./Loader_cjs_DlnM5Vzb.js');
|
|
9
9
|
var Text = require('./Text_cjs_B8nNXWBA.js');
|
|
@@ -222,17 +222,17 @@ var buttonAppearanceShape = {
|
|
|
222
222
|
rounded: {
|
|
223
223
|
shape: 'rounded',
|
|
224
224
|
},
|
|
225
|
-
|
|
225
|
+
roundedS: {
|
|
226
226
|
shape: 'rounded',
|
|
227
|
-
shapeStrength: '
|
|
227
|
+
shapeStrength: '0_5m',
|
|
228
228
|
},
|
|
229
229
|
roundedM: {
|
|
230
230
|
shape: 'rounded',
|
|
231
231
|
shapeStrength: '1m',
|
|
232
232
|
},
|
|
233
|
-
|
|
233
|
+
roundedL: {
|
|
234
234
|
shape: 'rounded',
|
|
235
|
-
shapeStrength: '
|
|
235
|
+
shapeStrength: '1_5m',
|
|
236
236
|
},
|
|
237
237
|
roundedXL: {
|
|
238
238
|
shape: 'rounded',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { I as Icon } from './
|
|
4
|
+
import { I as Icon } from './Icon_es_DrQu8Zp8.js';
|
|
5
5
|
import { a as LinkWrapper } from './Link_es_BnUIX0QT.js';
|
|
6
6
|
import { L as Loader } from './Loader_es_DhNCKZ8Y.js';
|
|
7
7
|
import { T as Text } from './Text_es_BvmOR4nv.js';
|
|
@@ -220,17 +220,17 @@ var buttonAppearanceShape = {
|
|
|
220
220
|
rounded: {
|
|
221
221
|
shape: 'rounded',
|
|
222
222
|
},
|
|
223
|
-
|
|
223
|
+
roundedS: {
|
|
224
224
|
shape: 'rounded',
|
|
225
|
-
shapeStrength: '
|
|
225
|
+
shapeStrength: '0_5m',
|
|
226
226
|
},
|
|
227
227
|
roundedM: {
|
|
228
228
|
shape: 'rounded',
|
|
229
229
|
shapeStrength: '1m',
|
|
230
230
|
},
|
|
231
|
-
|
|
231
|
+
roundedL: {
|
|
232
232
|
shape: 'rounded',
|
|
233
|
-
shapeStrength: '
|
|
233
|
+
shapeStrength: '1_5m',
|
|
234
234
|
},
|
|
235
235
|
roundedXL: {
|
|
236
236
|
shape: 'rounded',
|
|
@@ -5,7 +5,7 @@ var clsx = require('clsx');
|
|
|
5
5
|
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
6
6
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
8
|
-
var Icon = require('./
|
|
8
|
+
var Icon = require('./Icon_cjs_D1Ze-oNL.js');
|
|
9
9
|
var Text = require('./Text_cjs_B8nNXWBA.js');
|
|
10
10
|
var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
4
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon, B as Badge } from './
|
|
6
|
+
import { I as Icon, B as Badge } from './Icon_es_DrQu8Zp8.js';
|
|
7
7
|
import { T as Text } from './Text_es_BvmOR4nv.js';
|
|
8
8
|
import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
|
|
@@ -9,10 +9,10 @@ var DatePicker = require('react-datepicker');
|
|
|
9
9
|
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
10
10
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
11
11
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
12
|
-
var Button = require('./
|
|
13
|
-
var Icon = require('./
|
|
12
|
+
var Button = require('./Button_cjs_CA7J_adG.js');
|
|
13
|
+
var Icon = require('./Icon_cjs_D1Ze-oNL.js');
|
|
14
14
|
var Input = require('./Input_cjs_BGLd0EQu.js');
|
|
15
|
-
var Label = require('./
|
|
15
|
+
var Label = require('./Label_cjs_BPu58uG9.js');
|
|
16
16
|
var Text = require('./Text_cjs_B8nNXWBA.js');
|
|
17
17
|
var _default = require('@itcase/icons/default');
|
|
18
18
|
|
|
@@ -7,10 +7,10 @@ import DatePicker from 'react-datepicker';
|
|
|
7
7
|
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
8
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
9
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
10
|
-
import { B as Button } from './
|
|
11
|
-
import { I as Icon } from './
|
|
10
|
+
import { B as Button } from './Button_es_BSxEly4r.js';
|
|
11
|
+
import { I as Icon } from './Icon_es_DrQu8Zp8.js';
|
|
12
12
|
import { I as Input } from './Input_es_D2mNCqiH.js';
|
|
13
|
-
import { L as Label } from './
|
|
13
|
+
import { L as Label } from './Label_es_CH68RBo-.js';
|
|
14
14
|
import { T as Text } from './Text_es_BvmOR4nv.js';
|
|
15
15
|
import { icons14 } from '@itcase/icons/default';
|
|
16
16
|
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
8
|
-
var Icon = require('./
|
|
8
|
+
var Icon = require('./Icon_cjs_D1Ze-oNL.js');
|
|
9
9
|
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
10
10
|
var Divider = require('./Divider_cjs_rxMMBfLC.js');
|
|
11
11
|
var Text = require('./Text_cjs_B8nNXWBA.js');
|
|
@@ -3,7 +3,7 @@ import React, { useRef, useState, useCallback, useEffect } from 'react';
|
|
|
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, B as Badge } from './
|
|
6
|
+
import { I as Icon, B as Badge } from './Icon_es_DrQu8Zp8.js';
|
|
7
7
|
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
8
|
import { D as Divider } from './Divider_es_CiRU0sTz.js';
|
|
9
9
|
import { T as Text } from './Text_es_BvmOR4nv.js';
|
|
@@ -156,17 +156,17 @@ var badgeAppearanceShape = {
|
|
|
156
156
|
rounded: {
|
|
157
157
|
shape: 'rounded',
|
|
158
158
|
},
|
|
159
|
-
|
|
159
|
+
roundedS: {
|
|
160
160
|
shape: 'rounded',
|
|
161
|
-
shapeStrength: '
|
|
161
|
+
shapeStrength: '0_5m',
|
|
162
162
|
},
|
|
163
163
|
roundedM: {
|
|
164
164
|
shape: 'rounded',
|
|
165
165
|
shapeStrength: '1m',
|
|
166
166
|
},
|
|
167
|
-
|
|
167
|
+
roundedL: {
|
|
168
168
|
shape: 'rounded',
|
|
169
|
-
shapeStrength: '
|
|
169
|
+
shapeStrength: '1_5m',
|
|
170
170
|
},
|
|
171
171
|
roundedXL: {
|
|
172
172
|
shape: 'rounded',
|
|
@@ -305,7 +305,7 @@ function Badge(props) {
|
|
|
305
305
|
: dot
|
|
306
306
|
? 'badge_type_dot'
|
|
307
307
|
: 'badge_type_fill';
|
|
308
|
-
return (jsxRuntime.jsxs("div", { className: clsx(className, 'badge', borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), positionClass && "position_".concat(positionClass), sizeClass && "badge_size_".concat(sizeClass), shapeClass && "
|
|
308
|
+
return (jsxRuntime.jsxs("div", { className: clsx(className, 'badge', borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), positionClass && "position_".concat(positionClass), sizeClass && "badge_size_".concat(sizeClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), badgeTypeClass, isSkeleton && 'badge_skeleton'), style: badgeStyles, children: [dot && (jsxRuntime.jsx("div", { className: clsx('badge__dot', dotFillClass && "svg_fill_".concat(dotFillClass)), children: jsxRuntime.jsx("svg", { width: "6", height: "6", viewBox: "0 0 6 6", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.jsx("rect", { width: "6", height: "6", rx: "50" }) }) })), icon && (jsxRuntime.jsx(Icon, { className: "badge__icon", size: iconSize, iconFill: iconFill, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), children ||
|
|
309
309
|
(value && (jsxRuntime.jsx(Text.Text, { className: "badge__value", size: textSize, textColor: textColor, children: value })))] }));
|
|
310
310
|
}
|
|
311
311
|
|
|
@@ -154,17 +154,17 @@ var badgeAppearanceShape = {
|
|
|
154
154
|
rounded: {
|
|
155
155
|
shape: 'rounded',
|
|
156
156
|
},
|
|
157
|
-
|
|
157
|
+
roundedS: {
|
|
158
158
|
shape: 'rounded',
|
|
159
|
-
shapeStrength: '
|
|
159
|
+
shapeStrength: '0_5m',
|
|
160
160
|
},
|
|
161
161
|
roundedM: {
|
|
162
162
|
shape: 'rounded',
|
|
163
163
|
shapeStrength: '1m',
|
|
164
164
|
},
|
|
165
|
-
|
|
165
|
+
roundedL: {
|
|
166
166
|
shape: 'rounded',
|
|
167
|
-
shapeStrength: '
|
|
167
|
+
shapeStrength: '1_5m',
|
|
168
168
|
},
|
|
169
169
|
roundedXL: {
|
|
170
170
|
shape: 'rounded',
|
|
@@ -303,7 +303,7 @@ function Badge(props) {
|
|
|
303
303
|
: dot
|
|
304
304
|
? 'badge_type_dot'
|
|
305
305
|
: 'badge_type_fill';
|
|
306
|
-
return (jsxs("div", { className: clsx(className, 'badge', borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), positionClass && "position_".concat(positionClass), sizeClass && "badge_size_".concat(sizeClass), shapeClass && "
|
|
306
|
+
return (jsxs("div", { className: clsx(className, 'badge', borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), positionClass && "position_".concat(positionClass), sizeClass && "badge_size_".concat(sizeClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), badgeTypeClass, isSkeleton && 'badge_skeleton'), style: badgeStyles, children: [dot && (jsx("div", { className: clsx('badge__dot', dotFillClass && "svg_fill_".concat(dotFillClass)), children: jsx("svg", { width: "6", height: "6", viewBox: "0 0 6 6", xmlns: "http://www.w3.org/2000/svg", children: jsx("rect", { width: "6", height: "6", rx: "50" }) }) })), icon && (jsx(Icon, { className: "badge__icon", size: iconSize, iconFill: iconFill, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), children ||
|
|
307
307
|
(value && (jsx(Text, { className: "badge__value", size: textSize, textColor: textColor, children: value })))] }));
|
|
308
308
|
}
|
|
309
309
|
|
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
7
7
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
9
|
-
var Icon = require('./
|
|
9
|
+
var Icon = require('./Icon_cjs_D1Ze-oNL.js');
|
|
10
10
|
var Text = require('./Text_cjs_B8nNXWBA.js');
|
|
11
11
|
var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
12
12
|
|
|
@@ -157,17 +157,17 @@ var labelAppearanceShape = {
|
|
|
157
157
|
rounded: {
|
|
158
158
|
shape: 'rounded',
|
|
159
159
|
},
|
|
160
|
-
|
|
160
|
+
roundedS: {
|
|
161
161
|
shape: 'rounded',
|
|
162
|
-
shapeStrength: '
|
|
162
|
+
shapeStrength: '0_5m',
|
|
163
163
|
},
|
|
164
164
|
roundedM: {
|
|
165
165
|
shape: 'rounded',
|
|
166
166
|
shapeStrength: '1m',
|
|
167
167
|
},
|
|
168
|
-
|
|
168
|
+
roundedL: {
|
|
169
169
|
shape: 'rounded',
|
|
170
|
-
shapeStrength: '
|
|
170
|
+
shapeStrength: '1_5m',
|
|
171
171
|
},
|
|
172
172
|
roundedXL: {
|
|
173
173
|
shape: 'rounded',
|
|
@@ -335,7 +335,7 @@ function Label(props) {
|
|
|
335
335
|
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, tooltipAlignment = propsGenerator.tooltipAlignment, tooltipAppearance = propsGenerator.tooltipAppearance, tooltipArrowPosition = propsGenerator.tooltipArrowPosition, tooltipContent = propsGenerator.tooltipContent, tooltipText = propsGenerator.tooltipText, tooltipTextSize = propsGenerator.tooltipTextSize, tooltipTitle = propsGenerator.tooltipTitle, tooltipTitleSize = propsGenerator.tooltipTitleSize, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
336
336
|
// @ts-expect-error
|
|
337
337
|
var labelStyles = useStyles.useStyles(props).styles;
|
|
338
|
-
return (jsxRuntime.jsxs("div", { className: clsx(className, 'label', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "
|
|
338
|
+
return (jsxRuntime.jsxs("div", { className: clsx(className, 'label', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "label_size_".concat(sizeClass), wrapClass && "'word-wrap_".concat(wrapClass), widthClass && "label_width_".concat(widthClass), alignDirectionClass && "".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), type && "label_type_".concat(type), isSkeleton && "label_skeleton", onClick && (cursor || 'cursor_type_pointer')), dataTour: dataTour, style: labelStyles, onClick: onClick, onMouseEnter: onMouseEnterLabel, onMouseLeave: onMouseLeaveLabel, children: [before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: clsx('label__icon_before'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), jsxRuntime.jsxs("div", { className: "label__inner", children: [typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "label__text", size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsxRuntime.jsx("div", { className: "label__text", children: label })), children, showTooltip && (jsxRuntime.jsx(Icon.Tooltip, { className: "label__tooltip", appearance: tooltipAppearance, alignment: tooltipAlignment, title: tooltipTitle, titleSize: tooltipTitleSize, text: tooltipText, textSize: tooltipTextSize, arrowPosition: tooltipArrowPosition, ref: tooltipRef, children: tooltipContent }))] }), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: clsx('label__icon_after'), fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), after] }));
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
exports.Label = Label;
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
5
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon, T as Tooltip } from './
|
|
7
|
+
import { I as Icon, T as Tooltip } from './Icon_es_DrQu8Zp8.js';
|
|
8
8
|
import { T as Text } from './Text_es_BvmOR4nv.js';
|
|
9
9
|
import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
10
10
|
|
|
@@ -155,17 +155,17 @@ var labelAppearanceShape = {
|
|
|
155
155
|
rounded: {
|
|
156
156
|
shape: 'rounded',
|
|
157
157
|
},
|
|
158
|
-
|
|
158
|
+
roundedS: {
|
|
159
159
|
shape: 'rounded',
|
|
160
|
-
shapeStrength: '
|
|
160
|
+
shapeStrength: '0_5m',
|
|
161
161
|
},
|
|
162
162
|
roundedM: {
|
|
163
163
|
shape: 'rounded',
|
|
164
164
|
shapeStrength: '1m',
|
|
165
165
|
},
|
|
166
|
-
|
|
166
|
+
roundedL: {
|
|
167
167
|
shape: 'rounded',
|
|
168
|
-
shapeStrength: '
|
|
168
|
+
shapeStrength: '1_5m',
|
|
169
169
|
},
|
|
170
170
|
roundedXL: {
|
|
171
171
|
shape: 'rounded',
|
|
@@ -333,7 +333,7 @@ function Label(props) {
|
|
|
333
333
|
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, tooltipAlignment = propsGenerator.tooltipAlignment, tooltipAppearance = propsGenerator.tooltipAppearance, tooltipArrowPosition = propsGenerator.tooltipArrowPosition, tooltipContent = propsGenerator.tooltipContent, tooltipText = propsGenerator.tooltipText, tooltipTextSize = propsGenerator.tooltipTextSize, tooltipTitle = propsGenerator.tooltipTitle, tooltipTitleSize = propsGenerator.tooltipTitleSize, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
334
334
|
// @ts-expect-error
|
|
335
335
|
var labelStyles = useStyles(props).styles;
|
|
336
|
-
return (jsxs("div", { className: clsx(className, 'label', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "
|
|
336
|
+
return (jsxs("div", { className: clsx(className, 'label', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "label_size_".concat(sizeClass), wrapClass && "'word-wrap_".concat(wrapClass), widthClass && "label_width_".concat(widthClass), alignDirectionClass && "".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), type && "label_type_".concat(type), isSkeleton && "label_skeleton", onClick && (cursor || 'cursor_type_pointer')), dataTour: dataTour, style: labelStyles, onClick: onClick, onMouseEnter: onMouseEnterLabel, onMouseLeave: onMouseLeaveLabel, children: [before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('label__icon_before'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), jsxs("div", { className: "label__inner", children: [typeof label === 'string' ? (jsx(Text, { className: "label__text", size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsx("div", { className: "label__text", children: label })), children, showTooltip && (jsx(Tooltip, { className: "label__tooltip", appearance: tooltipAppearance, alignment: tooltipAlignment, title: tooltipTitle, titleSize: tooltipTitleSize, text: tooltipText, textSize: tooltipTextSize, arrowPosition: tooltipArrowPosition, ref: tooltipRef, children: tooltipContent }))] }), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('label__icon_after'), fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), after] }));
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
export { Label as L, labelAppearance as a, labelConfig as l };
|
|
@@ -8,7 +8,7 @@ var castArray = require('lodash/castArray');
|
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
10
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
11
|
-
var Icon = require('../../
|
|
11
|
+
var Icon = require('../../Icon_cjs_D1Ze-oNL.js');
|
|
12
12
|
var Divider = require('../../Divider_cjs_rxMMBfLC.js');
|
|
13
13
|
var Text = require('../../Text_cjs_B8nNXWBA.js');
|
|
14
14
|
var _default = require('@itcase/icons/default');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Avatar = require('../../
|
|
3
|
+
var Avatar = require('../../Avatar_cjs_DOBcPDTn.js');
|
|
4
4
|
require('react/jsx-runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('clsx');
|
|
@@ -17,7 +17,7 @@ require('../context/UIContext.js');
|
|
|
17
17
|
require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
18
18
|
require('react-responsive');
|
|
19
19
|
require('../utils/setViewportProperty.js');
|
|
20
|
-
require('../../
|
|
20
|
+
require('../../Icon_cjs_D1Ze-oNL.js');
|
|
21
21
|
require('react-inlinesvg');
|
|
22
22
|
require('../hoc/urlWithAssetPrefix.js');
|
|
23
23
|
require('../context/UrlAssetPrefix.js');
|
|
@@ -5,7 +5,7 @@ var clsx = require('clsx');
|
|
|
5
5
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
8
|
-
var Avatar = require('../../
|
|
8
|
+
var Avatar = require('../../Avatar_cjs_DOBcPDTn.js');
|
|
9
9
|
var Group = require('../../Group_cjs_D4QLNgcC.js');
|
|
10
10
|
var Text = require('../../Text_cjs_B8nNXWBA.js');
|
|
11
11
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
@@ -22,7 +22,7 @@ require('react-responsive');
|
|
|
22
22
|
require('../utils/setViewportProperty.js');
|
|
23
23
|
require('lodash/maxBy');
|
|
24
24
|
require('../hooks/useStyles/styleAttributes.js');
|
|
25
|
-
require('../../
|
|
25
|
+
require('../../Icon_cjs_D1Ze-oNL.js');
|
|
26
26
|
require('react-inlinesvg');
|
|
27
27
|
require('../hoc/urlWithAssetPrefix.js');
|
|
28
28
|
require('../context/UrlAssetPrefix.js');
|
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
8
8
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
9
|
-
var Icon = require('../../
|
|
9
|
+
var Icon = require('../../Icon_cjs_D1Ze-oNL.js');
|
|
10
10
|
var Link = require('../../Link_cjs_BqT6eVl6.js');
|
|
11
11
|
var Text = require('../../Text_cjs_B8nNXWBA.js');
|
|
12
12
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Button = require('../../
|
|
3
|
+
var Button = require('../../Button_cjs_CA7J_adG.js');
|
|
4
4
|
require('react/jsx-runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('clsx');
|
|
7
|
-
require('../../
|
|
7
|
+
require('../../Icon_cjs_D1Ze-oNL.js');
|
|
8
8
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
9
9
|
require('react-inlinesvg');
|
|
10
10
|
require('../hoc/urlWithAssetPrefix.js');
|
|
@@ -5,8 +5,8 @@ var clsx = require('clsx');
|
|
|
5
5
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
8
|
-
var Icon = require('../../
|
|
9
|
-
var Label = require('../../
|
|
8
|
+
var Icon = require('../../Icon_cjs_D1Ze-oNL.js');
|
|
9
|
+
var Label = require('../../Label_cjs_BPu58uG9.js');
|
|
10
10
|
var Text = require('../../Text_cjs_B8nNXWBA.js');
|
|
11
11
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
12
12
|
require('react');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var ChipsGroup = require('../../
|
|
3
|
+
var ChipsGroup = require('../../ChipsGroup_cjs_DHNbkBEk.js');
|
|
4
4
|
require('react/jsx-runtime');
|
|
5
5
|
require('clsx');
|
|
6
6
|
require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
@@ -20,7 +20,7 @@ require('../utils/setViewportProperty.js');
|
|
|
20
20
|
require('../hooks/useStyles/useStyles.js');
|
|
21
21
|
require('lodash/maxBy');
|
|
22
22
|
require('../hooks/useStyles/styleAttributes.js');
|
|
23
|
-
require('../../
|
|
23
|
+
require('../../Icon_cjs_D1Ze-oNL.js');
|
|
24
24
|
require('react-inlinesvg');
|
|
25
25
|
require('../hoc/urlWithAssetPrefix.js');
|
|
26
26
|
require('../context/UrlAssetPrefix.js');
|
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Icon = require('../../
|
|
9
|
+
var Icon = require('../../Icon_cjs_D1Ze-oNL.js');
|
|
10
10
|
var Loader = require('../../Loader_cjs_DlnM5Vzb.js');
|
|
11
11
|
var Text = require('../../Text_cjs_B8nNXWBA.js');
|
|
12
12
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var Cookies = require('js-cookie');
|
|
7
7
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
|
-
var Button = require('../../
|
|
9
|
+
var Button = require('../../Button_cjs_CA7J_adG.js');
|
|
10
10
|
var Text = require('../../Text_cjs_B8nNXWBA.js');
|
|
11
11
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
12
12
|
require('lodash/camelCase');
|
|
@@ -19,7 +19,7 @@ require('../context/UIContext.js');
|
|
|
19
19
|
require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
20
20
|
require('react-responsive');
|
|
21
21
|
require('../utils/setViewportProperty.js');
|
|
22
|
-
require('../../
|
|
22
|
+
require('../../Icon_cjs_D1Ze-oNL.js');
|
|
23
23
|
require('react-inlinesvg');
|
|
24
24
|
require('../hoc/urlWithAssetPrefix.js');
|
|
25
25
|
require('../context/UrlAssetPrefix.js');
|
|
@@ -4,10 +4,10 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var common = require('@itcase/common');
|
|
7
|
-
var DatePicker = require('../../
|
|
7
|
+
var DatePicker = require('../../DatePicker_cjs_BsLBVElQ.js');
|
|
8
8
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
|
-
var ChipsGroup = require('../../
|
|
10
|
+
var ChipsGroup = require('../../ChipsGroup_cjs_DHNbkBEk.js');
|
|
11
11
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
12
12
|
require('date-fns/locale');
|
|
13
13
|
require('react-datepicker');
|
|
@@ -22,8 +22,8 @@ require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
|
22
22
|
require('react-responsive');
|
|
23
23
|
require('../utils/setViewportProperty.js');
|
|
24
24
|
require('../hooks/useStyles/styleAttributes.js');
|
|
25
|
-
require('../../
|
|
26
|
-
require('../../
|
|
25
|
+
require('../../Button_cjs_CA7J_adG.js');
|
|
26
|
+
require('../../Icon_cjs_D1Ze-oNL.js');
|
|
27
27
|
require('react-inlinesvg');
|
|
28
28
|
require('../hoc/urlWithAssetPrefix.js');
|
|
29
29
|
require('../context/UrlAssetPrefix.js');
|
|
@@ -31,7 +31,7 @@ require('../../Link_cjs_BqT6eVl6.js');
|
|
|
31
31
|
require('../../Text_cjs_B8nNXWBA.js');
|
|
32
32
|
require('../../Loader_cjs_DlnM5Vzb.js');
|
|
33
33
|
require('../../Input_cjs_BGLd0EQu.js');
|
|
34
|
-
require('../../
|
|
34
|
+
require('../../Label_cjs_BPu58uG9.js');
|
|
35
35
|
require('@itcase/icons/default');
|
|
36
36
|
require('lodash/castArray');
|
|
37
37
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var DatePicker = require('../../
|
|
3
|
+
var DatePicker = require('../../DatePicker_cjs_BsLBVElQ.js');
|
|
4
4
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -22,8 +22,8 @@ require('../utils/setViewportProperty.js');
|
|
|
22
22
|
require('../hooks/useStyles/useStyles.js');
|
|
23
23
|
require('lodash/maxBy');
|
|
24
24
|
require('../hooks/useStyles/styleAttributes.js');
|
|
25
|
-
require('../../
|
|
26
|
-
require('../../
|
|
25
|
+
require('../../Button_cjs_CA7J_adG.js');
|
|
26
|
+
require('../../Icon_cjs_D1Ze-oNL.js');
|
|
27
27
|
require('react-inlinesvg');
|
|
28
28
|
require('../hoc/urlWithAssetPrefix.js');
|
|
29
29
|
require('../context/UrlAssetPrefix.js');
|
|
@@ -31,7 +31,7 @@ require('../../Link_cjs_BqT6eVl6.js');
|
|
|
31
31
|
require('../../Text_cjs_B8nNXWBA.js');
|
|
32
32
|
require('../../Loader_cjs_DlnM5Vzb.js');
|
|
33
33
|
require('../../Input_cjs_BGLd0EQu.js');
|
|
34
|
-
require('../../
|
|
34
|
+
require('../../Label_cjs_BPu58uG9.js');
|
|
35
35
|
require('@itcase/icons/default');
|
|
36
36
|
|
|
37
37
|
|
|
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var ReactDrawer = require('react-modern-drawer');
|
|
7
|
-
var Icon = require('../../
|
|
7
|
+
var Icon = require('../../Icon_cjs_D1Ze-oNL.js');
|
|
8
8
|
var Text = require('../../Text_cjs_B8nNXWBA.js');
|
|
9
9
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
10
10
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
@@ -68,18 +68,18 @@ var drawerConfig = {
|
|
|
68
68
|
},
|
|
69
69
|
};
|
|
70
70
|
function Drawer(props) {
|
|
71
|
-
var className = props.className, type = props.type, appearance = props.appearance, title = props.title, desc = props.desc, dataTestId = props.dataTestId, dataTour = props.dataTour, enableOverlay = props.enableOverlay, before = props.before, after = props.after, close = props.close, isOpenModal = props.isOpenModal, onClickClose = props.onClickClose, onClose = props.onClose, children = props.children;
|
|
71
|
+
var className = props.className, type = props.type, appearance = props.appearance, title = props.title, desc = props.desc, dataTestId = props.dataTestId, dataTour = props.dataTour, enableOverlay = props.enableOverlay, stickyButton = props.stickyButton, before = props.before, after = props.after, close = props.close, isOpenModal = props.isOpenModal, onClickClose = props.onClickClose, onClose = props.onClose, children = props.children;
|
|
72
72
|
var prevIsOpenModalRef = React.useRef(null);
|
|
73
73
|
var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, drawerConfig);
|
|
74
74
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
75
|
-
var direction = propsGenerator.direction, size = propsGenerator.size, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, closeIcon = propsGenerator.closeIcon, closeIconFill = propsGenerator.closeIconFill, closeIconFillIcon = propsGenerator.closeIconFillIcon, closeIconFillSize = propsGenerator.closeIconFillSize, closeIconShape = propsGenerator.closeIconShape, closeIconSize = propsGenerator.closeIconSize, closeIconSrc = propsGenerator.closeIconSrc;
|
|
75
|
+
var direction = propsGenerator.direction, size = propsGenerator.size, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, zeroPadding = propsGenerator.zeroPadding, closeIcon = propsGenerator.closeIcon, closeIconFill = propsGenerator.closeIconFill, closeIconFillIcon = propsGenerator.closeIconFillIcon, closeIconFillSize = propsGenerator.closeIconFillSize, closeIconShape = propsGenerator.closeIconShape, closeIconSize = propsGenerator.closeIconSize, closeIconSrc = propsGenerator.closeIconSrc;
|
|
76
76
|
React.useEffect(function () {
|
|
77
77
|
if (onClose && prevIsOpenModalRef.current === true && !isOpenModal) {
|
|
78
78
|
onClose();
|
|
79
79
|
}
|
|
80
80
|
prevIsOpenModalRef.current = Boolean(isOpenModal);
|
|
81
81
|
}, [isOpenModal, onClose]);
|
|
82
|
-
return (jsxRuntime.jsxs(ReactDrawer, { className: clsx('drawer', type && "drawer_type_".concat(type), className, dataTour && "dataTour-".concat(dataTour)), direction: direction || 'right', size: size || 600,
|
|
82
|
+
return (jsxRuntime.jsxs(ReactDrawer, { className: clsx('drawer', type && "drawer_type_".concat(type), className, dataTour && "dataTour-".concat(dataTour), stickyButton && 'drawer_sticky-button', zeroPadding && 'drawer_reset-padding'), direction: direction || 'right', size: size || 600,
|
|
83
83
|
// Drawer set prefix "EZDrawer" for any id
|
|
84
84
|
customIdSuffix: dataTestId ? "_".concat(dataTestId) : undefined, dataTour: dataTour, enableOverlay: enableOverlay, lockBackgroundScroll: false, overlayClassName: "drawer__overlay", open: isOpenModal, onClose: onClickClose, children: [before && jsxRuntime.jsx("div", { className: "drawer__before", children: before }), !close && (closeIcon || closeIconSrc) && (jsxRuntime.jsx("div", { className: "drawer__close", children: jsxRuntime.jsx(Icon.Icon, { className: "cursor_type_pointer", fill: closeIconFill, fillSize: closeIconFillSize, iconFill: closeIconFillIcon, iconSize: closeIconSize, imageSrc: closeIconSrc, shape: closeIconShape, SvgImage: closeIcon }) })), (title || desc) && (jsxRuntime.jsxs("div", { className: "drawer__header", children: [jsxRuntime.jsx(Icon.Title, { className: "drawer__header-title", size: titleTextSize, textColor: titleTextColor, children: title }), jsxRuntime.jsx(Text.Text, { className: "drawer__header-desc", size: descTextSize, textColor: descTextColor, children: desc })] })), children && jsxRuntime.jsx("div", { className: "drawer__wrapper", children: children }), after && jsxRuntime.jsx("div", { className: "drawer__after", children: after })] }));
|
|
85
85
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var DropdownItem = require('../../
|
|
3
|
+
var DropdownItem = require('../../DropdownItem_cjs_BF18Ii9Z.js');
|
|
4
4
|
require('react/jsx-runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('clsx');
|
|
@@ -19,7 +19,7 @@ require('../utils/setViewportProperty.js');
|
|
|
19
19
|
require('../hooks/useStyles/useStyles.js');
|
|
20
20
|
require('lodash/maxBy');
|
|
21
21
|
require('../hooks/useStyles/styleAttributes.js');
|
|
22
|
-
require('../../
|
|
22
|
+
require('../../Icon_cjs_D1Ze-oNL.js');
|
|
23
23
|
require('react-inlinesvg');
|
|
24
24
|
require('../hoc/urlWithAssetPrefix.js');
|
|
25
25
|
require('../context/UrlAssetPrefix.js');
|
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Icon = require('../../
|
|
9
|
+
var Icon = require('../../Icon_cjs_D1Ze-oNL.js');
|
|
10
10
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
11
11
|
require('lodash/camelCase');
|
|
12
12
|
require('lodash/castArray');
|