@itcase/ui 1.3.24 → 1.3.26
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/{Badge-Bcj5H3vs.js → Badge-CcaG-4ly.js} +49 -8
- package/dist/{Badge-DxHwStfq.js → Badge-CoHPvO35.js} +49 -8
- package/dist/{Button-BSygAkO5.js → Button-BFX_EEum.js} +6 -6
- package/dist/{Button-Bn8Mjoeh.js → Button-BSzqA8CB.js} +6 -6
- package/dist/{DropdownItem-CExjlJjQ.js → DropdownItem-Bq-oPnWX.js} +4 -4
- package/dist/{DropdownItem-DFE1HsyX.js → DropdownItem-FNOztnTT.js} +4 -4
- package/dist/{Group-CIIZoSm5.js → Group-B9L2NTgM.js} +1 -1
- package/dist/{Group-pMTTxQH4.js → Group-D6CXN4hS.js} +1 -1
- package/dist/{Icon-DotE-03d.js → Icon-BZa8B7te.js} +3 -3
- package/dist/{Icon-ByLHEhHL.js → Icon-B_bS-o4g.js} +2 -2
- package/dist/{Input-Ck5IbuH6.js → Input-BrV5_NoV.js} +1 -1
- package/dist/{Input-zkYoZhQk.js → Input-ffioh1sj.js} +1 -1
- package/dist/{Label-9O3dQlUa.js → Label-DQyB2ThM.js} +6 -6
- package/dist/{Label-GEBQXoVJ.js → Label-HKRKV3mn.js} +6 -6
- package/dist/{Link-CoAhRbFg.js → Link-CxWmYMyL.js} +1 -1
- package/dist/{Link-C53o3P6_.js → Link-DN2LhPjD.js} +4 -4
- package/dist/{Loader-D_53c71f.js → Loader-Dn036JwE.js} +2 -2
- package/dist/{Loader-Cm98w6lJ.js → Loader-K_DJmah6.js} +2 -2
- package/dist/{MenuItem-Cu6wlj-X.js → MenuItem-CLDNk2l8.js} +3 -3
- package/dist/{MenuItem-Ybh5Mpoi.js → MenuItem-amqx61Y0.js} +3 -3
- package/dist/{Scrollbar-DkJr3S-w.js → Scrollbar-Bo7z7ELm.js} +1 -1
- package/dist/{Scrollbar-CL9V8d1X.js → Scrollbar-CKbA0jQU.js} +1 -1
- package/dist/{Text-COHpLTYr.js → Text-Beslj4Ns.js} +1 -1
- package/dist/{Text-D9sEeRE4.js → Text-JayJa3hj.js} +1 -1
- package/dist/{Title-Cl95USIn.js → Title-CHgrIarR.js} +1 -1
- package/dist/{Title-BduD-TXE.js → Title-DBaHcpvB.js} +1 -1
- package/dist/{Tooltip-BsbXMzGd.js → Tooltip-1Jbub0K6.js} +4 -4
- package/dist/{Tooltip-CyZCVyba.js → Tooltip-CNua1g76.js} +4 -4
- package/dist/cjs/components/Accordion.js +8 -7
- package/dist/cjs/components/Avatar.js +10 -9
- package/dist/cjs/components/Badge.js +4 -3
- package/dist/cjs/components/Breadcrumbs.js +7 -6
- package/dist/cjs/components/Button.js +8 -7
- package/dist/cjs/components/Caption.js +1 -0
- package/dist/cjs/components/Card.js +3 -2
- package/dist/cjs/components/Cell.js +10 -9
- package/dist/cjs/components/Checkbox.js +4 -3
- package/dist/cjs/components/Checkmark.js +65 -0
- package/dist/cjs/components/Chips.js +5 -4
- package/dist/cjs/components/Choice.js +11 -10
- package/dist/cjs/components/Code.js +4 -3
- package/dist/cjs/components/CookiesWarning.js +11 -10
- package/dist/cjs/components/DadataHintField.js +2 -1
- package/dist/cjs/components/DatePicker.js +17 -16
- package/dist/cjs/components/Divider.js +1 -0
- package/dist/cjs/components/Dot.js +1 -0
- package/dist/cjs/components/Dropdown.js +4 -3
- package/dist/cjs/components/Flex.js +3 -2
- package/dist/cjs/components/Grid.js +3 -2
- package/dist/cjs/components/Group.js +2 -1
- package/dist/cjs/components/HTMLContent.js +1 -0
- package/dist/cjs/components/HeroTitle.js +2 -1
- package/dist/cjs/components/Icon.js +6 -5
- package/dist/cjs/components/Image.js +1 -0
- package/dist/cjs/components/Input.js +2 -1
- package/dist/cjs/components/InputMask.js +2 -1
- package/dist/cjs/components/InputPassword.js +6 -5
- package/dist/cjs/components/Label.js +5 -4
- package/dist/cjs/components/Link.js +2 -1
- package/dist/cjs/components/List.js +2 -1
- package/dist/cjs/components/Loader.js +3 -2
- package/dist/cjs/components/Logo.js +3 -2
- package/dist/cjs/components/Menu.js +5 -4
- package/dist/cjs/components/MenuItem.js +4 -3
- package/dist/cjs/components/Modal.js +6 -5
- package/dist/cjs/components/ModalSheetBottom.js +1 -0
- package/dist/cjs/components/Notification.js +4 -5
- package/dist/cjs/components/Overlay.js +1 -0
- package/dist/cjs/components/Pagination.js +29 -28
- package/dist/cjs/components/Panel.js +3 -2
- package/dist/cjs/components/Radio.js +4 -3
- package/dist/cjs/components/RangeSlider.js +1 -0
- package/dist/cjs/components/Response.js +82 -57
- package/dist/cjs/components/SVGContent.js +1 -0
- package/dist/cjs/components/ScrollOnDrag.js +1 -0
- package/dist/cjs/components/ScrollToView.js +2 -1
- package/dist/cjs/components/Scrollbar.js +1 -1
- package/dist/cjs/components/Search.js +10 -9
- package/dist/cjs/components/Segmented.js +14 -13
- package/dist/cjs/components/Select.js +28 -12
- package/dist/cjs/components/SiteMenu.js +7 -6
- package/dist/cjs/components/Swiper.js +9 -8
- package/dist/cjs/components/Tab.js +10 -9
- package/dist/cjs/components/Text.js +2 -1
- package/dist/cjs/components/Textarea.js +1 -0
- package/dist/cjs/components/Tile.js +5 -4
- package/dist/cjs/components/Title.js +2 -1
- package/dist/cjs/components/Tooltip.js +4 -3
- package/dist/cjs/components/Video.js +1 -0
- package/dist/cjs/components/Wrapper.js +2 -1
- package/dist/cjs/context/Notifications.js +6 -6
- package/dist/cjs/context/UIContext.js +6 -1
- package/dist/cjs/hooks/useDeviceTargetClass.js +1 -0
- package/dist/cjs/hooks/useDeviceTargetClassGenerator.interface.js +1 -0
- package/dist/cjs/hooks/useDeviceTargetClassGenerator.js +5 -4
- package/dist/cjs/hooks/useMediaQueries.js +0 -12
- package/dist/cjs/hooks/useStyles.js +1 -0
- package/dist/cjs/hooks.js +0 -1
- package/dist/cjs/utils/setViewportProperty.js +8 -0
- package/dist/cjs/utils.js +7 -0
- package/dist/components/Accordion.js +9 -8
- package/dist/components/Avatar.js +11 -10
- package/dist/components/Badge.js +4 -3
- package/dist/components/Breadcrumbs.js +8 -7
- package/dist/components/Button.js +9 -8
- package/dist/components/Caption.js +2 -1
- package/dist/components/Card.js +4 -3
- package/dist/components/Cell.js +11 -10
- package/dist/components/Checkbox.js +5 -4
- package/dist/components/Checkmark.js +61 -0
- package/dist/components/Chips.js +6 -5
- package/dist/components/Choice.js +12 -11
- package/dist/components/Code.js +5 -4
- package/dist/components/CookiesWarning.js +12 -11
- package/dist/components/DadataHintField.js +3 -2
- package/dist/components/DatePicker.js +18 -17
- package/dist/components/Divider.js +2 -1
- package/dist/components/Dot.js +2 -1
- package/dist/components/Dropdown.js +5 -4
- package/dist/components/Flex.js +4 -3
- package/dist/components/Grid.js +4 -3
- package/dist/components/Group.js +3 -2
- package/dist/components/HTMLContent.js +2 -1
- package/dist/components/HeroTitle.js +3 -2
- package/dist/components/Icon.js +7 -6
- package/dist/components/Image.js +2 -1
- package/dist/components/Input.js +3 -2
- package/dist/components/InputMask.js +3 -2
- package/dist/components/InputPassword.js +7 -6
- package/dist/components/Label.js +6 -5
- package/dist/components/Link.js +3 -2
- package/dist/components/List.js +3 -2
- package/dist/components/Loader.js +4 -3
- package/dist/components/Logo.js +4 -3
- package/dist/components/Menu.js +6 -5
- package/dist/components/MenuItem.js +5 -4
- package/dist/components/Modal.js +7 -6
- package/dist/components/ModalSheetBottom.js +2 -1
- package/dist/components/Notification.js +5 -6
- package/dist/components/Overlay.js +2 -1
- package/dist/components/Pagination.js +30 -29
- package/dist/components/Panel.js +4 -3
- package/dist/components/Radio.js +5 -4
- package/dist/components/RangeSlider.js +2 -1
- package/dist/components/Response.js +83 -58
- package/dist/components/SVGContent.js +2 -1
- package/dist/components/ScrollOnDrag.js +2 -1
- package/dist/components/ScrollToView.js +3 -2
- package/dist/components/Scrollbar.js +1 -1
- package/dist/components/Search.js +11 -10
- package/dist/components/Segmented.js +15 -14
- package/dist/components/Select.js +29 -13
- package/dist/components/SiteMenu.js +8 -7
- package/dist/components/Swiper.js +10 -9
- package/dist/components/Tab.js +11 -10
- package/dist/components/Text.js +3 -2
- package/dist/components/Textarea.js +2 -1
- package/dist/components/Tile.js +6 -5
- package/dist/components/Title.js +3 -2
- package/dist/components/Tooltip.js +5 -4
- package/dist/components/Video.js +1 -0
- package/dist/components/Wrapper.js +3 -2
- package/dist/context/Notifications.js +7 -7
- package/dist/context/UIContext.js +7 -2
- package/dist/css/components/Checkmark/Checkmark.css +30 -0
- package/dist/css/components/Checkmark/Checkmark.tokens.css +16 -0
- package/dist/css/components/Code/Code.css +2 -1
- package/dist/css/components/Dropdown/Dropdown.css +1 -1
- package/dist/css/components/Notification/Notification.css +6 -2
- package/dist/css/components/Notification/css/__item/notification__item_set_form.css +6 -2
- package/dist/css/components/Pagination/Pagination.css +4 -4
- package/dist/css/components/Pagination/css/__item/pagination__item_state_active.css +4 -4
- package/dist/css/components/Response/Response.css +10 -2
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/css/components/Switch/Switch.css +1 -1
- package/dist/css/components/Tile/Tile.css +1 -1
- package/dist/css/tokens/colors.css +9 -0
- package/dist/hooks/useDeviceTargetClass.js +1 -0
- package/dist/hooks/useDeviceTargetClassGenerator.interface.js +1 -1
- package/dist/hooks/useDeviceTargetClassGenerator.js +6 -5
- package/dist/hooks/useMediaQueries.js +0 -12
- package/dist/hooks/useStyles.js +1 -0
- package/dist/hooks.js +1 -1
- package/dist/stories/Checkmark.mdx +11 -0
- package/dist/stories/Overview.mdx +5 -5
- package/dist/stories/Playground.mdx +4 -4
- package/dist/{tslib.es6-5FtW-kfi.js → tslib.es6-Bwu1Cn-t.js} +1 -1
- package/dist/types/components/Badge/stories/args.d.ts +69 -0
- package/dist/types/components/Checkmark/Checkmark.appearance.d.ts +2 -0
- package/dist/types/components/Checkmark/Checkmark.d.ts +4 -0
- package/dist/types/components/Checkmark/Checkmark.interface.d.ts +29 -0
- package/dist/types/components/Checkmark/index.d.ts +2 -0
- package/dist/types/components/Notification/Notification.interface.d.ts +3 -3
- package/dist/types/components/Select/index.d.ts +15 -15
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/setViewportProperty.d.ts +2 -0
- package/dist/utils/setViewportProperty.js +6 -0
- package/dist/utils.js +1 -0
- package/package.json +29 -53
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6-
|
|
1
|
+
import { _ as __assign } from '../tslib.es6-Bwu1Cn-t.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import Select, { components } from 'react-select';
|
|
4
|
-
import { I as Icon } from '../Icon-
|
|
4
|
+
import { I as Icon } from '../Icon-BZa8B7te.js';
|
|
5
5
|
import React, { useRef, useCallback, useEffect, useMemo } from 'react';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import CreatableSelect from 'react-select/creatable';
|
|
8
8
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
9
|
-
import { T as Text } from '../Text-
|
|
10
|
-
import { B as Badge } from '../Badge-
|
|
11
|
-
import { G as Group } from '../Group-
|
|
9
|
+
import { T as Text } from '../Text-JayJa3hj.js';
|
|
10
|
+
import { B as Badge } from '../Badge-CcaG-4ly.js';
|
|
11
|
+
import { G as Group } from '../Group-B9L2NTgM.js';
|
|
12
12
|
import { D as Divider } from '../Divider-DBvDCUqP.js';
|
|
13
13
|
import 'react-inlinesvg';
|
|
14
14
|
import '../hooks/useStyles.js';
|
|
@@ -18,10 +18,11 @@ import 'lodash/upperFirst';
|
|
|
18
18
|
import '../context/UIContext.js';
|
|
19
19
|
import '../hooks/useMediaQueries.js';
|
|
20
20
|
import 'react-responsive';
|
|
21
|
+
import '../utils/setViewportProperty.js';
|
|
21
22
|
import '../hooks/styleAttributes.js';
|
|
22
|
-
import '../Link-
|
|
23
|
-
import '../Tooltip-
|
|
24
|
-
import '../Title-
|
|
23
|
+
import '../Link-DN2LhPjD.js';
|
|
24
|
+
import '../Tooltip-1Jbub0K6.js';
|
|
25
|
+
import '../Title-CHgrIarR.js';
|
|
25
26
|
import 'lodash/castArray';
|
|
26
27
|
|
|
27
28
|
// interface ClearIndicatorProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>>
|
|
@@ -80,7 +81,7 @@ var SelectIndicatorsContainer = function (props) {
|
|
|
80
81
|
return (jsxs(components.IndicatorsContainer, __assign({}, props, { children: [showBadge &&
|
|
81
82
|
value &&
|
|
82
83
|
// @ts-expect-error
|
|
83
|
-
(value === null || value ===
|
|
84
|
+
(value === null || value === void 0 ? void 0 : value.length) > 0 ? (jsx(Badge, { appearance: badgeAppearance, size: badgeSize, textSize: badgeTextSize,
|
|
84
85
|
// @ts-expect-error
|
|
85
86
|
value: value.length.toString() })) : null, props.children] })));
|
|
86
87
|
};
|
|
@@ -152,7 +153,7 @@ var selectConfig = {
|
|
|
152
153
|
},
|
|
153
154
|
};
|
|
154
155
|
var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
155
|
-
var elevation = props.elevation, isClearable = props.isClearable, isCreatable = props.isCreatable, isDisabled = props.isDisabled, isLoading = props.isLoading, isMulti = props.isMulti, isSearchable = props.isSearchable, after = props.after, appearance = props.appearance, badgeAppearance = props.badgeAppearance, badgeSize = props.badgeSize, badgeTextSize = props.badgeTextSize, before = props.before, className = props.className, clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, closeMenuOnSelect = props.closeMenuOnSelect, defaultValue = props.defaultValue, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, dropdownFillHover = props.dropdownFillHover, dropdownIcon = props.dropdownIcon, dropdownIconFill = props.dropdownIconFill, dropdownIconShape = props.dropdownIconShape, filterOption = props.filterOption, hideSelectedOptions = props.hideSelectedOptions, hideValueContainer = props.hideValueContainer, initialValue = props.initialValue, inputAfter = props.inputAfter, inputBefore = props.inputBefore, instanceId = props.instanceId, loadingMessage = props.loadingMessage, menuAfter = props.menuAfter, menuBefore = props.menuBefore, menuIsOpen = props.menuIsOpen, menuItemSize = props.menuItemSize, multipleItemFill = props.multipleItemFill, multipleItemFillHover = props.multipleItemFillHover, multipleItemIcon = props.multipleItemIcon, multipleItemIconFill = props.multipleItemIconFill, noOptionsSearchText = props.noOptionsSearchText, noOptionsText = props.noOptionsText, openMenuOnClick = props.openMenuOnClick, optionAfter = props.optionAfter, optionBefore = props.optionBefore, options = props.options, optionSelected = props.optionSelected, placeholder = props.placeholder, placeholderTextColor = props.placeholderTextColor, placeholderTextSize = props.placeholderTextSize, set = props.set, showBadge = props.showBadge, showDivider = props.showDivider, value = props.value, onChange = props.onChange, onInputChange = props.onInputChange;
|
|
156
|
+
var width = props.width, minWidth = props.minWidth, elevation = props.elevation, isClearable = props.isClearable, isCreatable = props.isCreatable, isDisabled = props.isDisabled, isLoading = props.isLoading, isMulti = props.isMulti, isSearchable = props.isSearchable, after = props.after, appearance = props.appearance, badgeAppearance = props.badgeAppearance, badgeSize = props.badgeSize, badgeTextSize = props.badgeTextSize, before = props.before, className = props.className, clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, closeMenuOnSelect = props.closeMenuOnSelect, defaultValue = props.defaultValue, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, dropdownFillHover = props.dropdownFillHover, dropdownIcon = props.dropdownIcon, dropdownIconFill = props.dropdownIconFill, dropdownIconShape = props.dropdownIconShape, filterOption = props.filterOption, hideSelectedOptions = props.hideSelectedOptions, hideValueContainer = props.hideValueContainer, initialValue = props.initialValue, inputAfter = props.inputAfter, inputBefore = props.inputBefore, instanceId = props.instanceId, loadingMessage = props.loadingMessage, menuAfter = props.menuAfter, menuBefore = props.menuBefore, menuIsOpen = props.menuIsOpen, menuItemSize = props.menuItemSize, multipleItemFill = props.multipleItemFill, multipleItemFillHover = props.multipleItemFillHover, multipleItemIcon = props.multipleItemIcon, multipleItemIconFill = props.multipleItemIconFill, noOptionsSearchText = props.noOptionsSearchText, noOptionsText = props.noOptionsText, openMenuOnClick = props.openMenuOnClick, optionAfter = props.optionAfter, optionBefore = props.optionBefore, options = props.options, optionSelected = props.optionSelected, placeholder = props.placeholder, placeholderTextColor = props.placeholderTextColor, placeholderTextSize = props.placeholderTextSize, set = props.set, showBadge = props.showBadge, showDivider = props.showDivider, value = props.value, onChange = props.onChange, onInputChange = props.onInputChange;
|
|
156
157
|
var defaultRef = useRef(null);
|
|
157
158
|
var selectRef = ref || defaultRef;
|
|
158
159
|
// React-select wait function as "loadingMessage" property
|
|
@@ -169,7 +170,7 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
169
170
|
var isTargetInsideController = selectRef.current.controlRef.contains(event.target);
|
|
170
171
|
if (!isTargetSelectContainer && !isTargetInsideController) {
|
|
171
172
|
// @ts-expect-error
|
|
172
|
-
(_a = selectRef.current) === null || _a ===
|
|
173
|
+
(_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.onInputBlur();
|
|
173
174
|
}
|
|
174
175
|
}
|
|
175
176
|
};
|
|
@@ -182,11 +183,26 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
182
183
|
}
|
|
183
184
|
};
|
|
184
185
|
}, []);
|
|
185
|
-
var clearStyle = useMemo(function () {
|
|
186
|
+
var clearStyle = useMemo(function () {
|
|
187
|
+
return new Proxy({
|
|
188
|
+
container: {
|
|
189
|
+
width: width,
|
|
190
|
+
minWidth: minWidth,
|
|
191
|
+
},
|
|
192
|
+
}, {
|
|
193
|
+
get: function (target, prop) {
|
|
194
|
+
if (prop in target) {
|
|
195
|
+
return function () { return target[prop]; };
|
|
196
|
+
}
|
|
197
|
+
return function () { };
|
|
198
|
+
},
|
|
199
|
+
});
|
|
200
|
+
}, []);
|
|
201
|
+
// @ts-expect-error
|
|
186
202
|
var appearanceConfig = (selectConfig.appearance && selectConfig.appearance[appearance]) || {};
|
|
187
203
|
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
188
204
|
var borderColorClass = classGenerator.borderColorClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, headingFillClass = classGenerator.headingFillClass, headingFillHoverClass = classGenerator.headingFillHoverClass, headingTextColorClass = classGenerator.headingTextColorClass, headingTextSizeClass = classGenerator.headingTextSizeClass, headingTextWeightClass = classGenerator.headingTextWeightClass, inputBorderColorClass = classGenerator.inputBorderColorClass, inputBorderColorHoverClass = classGenerator.inputBorderColorHoverClass, inputCaretColorClass = classGenerator.inputCaretColorClass, inputFillClass = classGenerator.inputFillClass, inputShapeClass = classGenerator.inputShapeClass, inputTextColorClass = classGenerator.inputTextColorClass, inputTextSizeClass = classGenerator.inputTextSizeClass, multipleItemTextColorClass = classGenerator.multipleItemTextColorClass, multipleItemTextSizeClass = classGenerator.multipleItemTextSizeClass, noOptionsTextColorClass = classGenerator.noOptionsTextColorClass, noOptionsTextSizeClass = classGenerator.noOptionsTextSizeClass, optionBorderClass = classGenerator.optionBorderClass, optionBorderTypeClass = classGenerator.optionBorderTypeClass, optionFillClass = classGenerator.optionFillClass, optionFillHoverClass = classGenerator.optionFillHoverClass, optionShapeClass = classGenerator.optionShapeClass, optionTextColorClass = classGenerator.optionTextColorClass, optionTextSizeClass = classGenerator.optionTextSizeClass, shapeClass = classGenerator.shapeClass, sizeClass = classGenerator.sizeClass;
|
|
189
|
-
return (jsx(SelectComponent, { className: clsx(className, 'select', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "select_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), sizeClass && "select_size_".concat(sizeClass), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set)), ref: selectRef, after: after, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, before: before, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, closeMenuOnSelect: closeMenuOnSelect !== null && closeMenuOnSelect !==
|
|
205
|
+
return (jsx(SelectComponent, { className: clsx(className, 'select', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "select_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), sizeClass && "select_size_".concat(sizeClass), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set)), ref: selectRef, after: after, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, before: before, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, closeMenuOnSelect: closeMenuOnSelect !== null && closeMenuOnSelect !== void 0 ? closeMenuOnSelect : false, defaultValue: defaultValue || initialValue, dividerDirection: dividerDirection, dividerFill: dividerFill, dividerSize: dividerSize, dropdownFillHover: dropdownFillHover, dropdownIcon: dropdownIcon, dropdownIconFill: dropdownIconFill, dropdownIconShape: dropdownIconShape, elevation: elevation || appearanceConfig.elevation, filterOption: filterOption,
|
|
190
206
|
// headingFill={headingFillClass as tFillProps}
|
|
191
207
|
headingFill: headingFillClass && "fill_".concat(headingFillClass), headingFillHover: headingFillHoverClass && "fill_hover_".concat(headingFillHoverClass), headingTextColor: headingTextColorClass, headingTextSize: headingTextSizeClass, headingTextWeight: headingTextWeightClass, hideSelectedOptions: hideSelectedOptions, inputAfter: inputAfter, inputBefore: inputBefore, inputBorderColor: inputBorderColorClass, inputBorderColorHover: inputBorderColorHoverClass, inputCaretColor: inputCaretColorClass, inputFill: inputFillClass && "select__control_fill_".concat(inputFillClass), inputShape: inputShapeClass && "select__control_shape_".concat(inputShapeClass), inputTextColor: inputTextColorClass, inputTextSize: inputTextSizeClass, instanceId: instanceId,
|
|
192
208
|
// @ts-expect-error
|
|
@@ -3,11 +3,12 @@ import { useCallback } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useSiteMenuContext } from '../context/UIContext.js';
|
|
5
5
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
6
|
-
import { I as Icon } from '../Icon-
|
|
7
|
-
import { T as Text } from '../Text-
|
|
6
|
+
import { I as Icon } from '../Icon-BZa8B7te.js';
|
|
7
|
+
import { T as Text } from '../Text-JayJa3hj.js';
|
|
8
8
|
import '../hooks/useMediaQueries.js';
|
|
9
9
|
import 'react-responsive';
|
|
10
|
-
import '../
|
|
10
|
+
import '../utils/setViewportProperty.js';
|
|
11
|
+
import '../tslib.es6-Bwu1Cn-t.js';
|
|
11
12
|
import 'lodash/camelCase';
|
|
12
13
|
import 'lodash/castArray';
|
|
13
14
|
import 'react-inlinesvg';
|
|
@@ -15,9 +16,9 @@ import '../hooks/useStyles.js';
|
|
|
15
16
|
import 'lodash/maxBy';
|
|
16
17
|
import 'lodash/upperFirst';
|
|
17
18
|
import '../hooks/styleAttributes.js';
|
|
18
|
-
import '../Link-
|
|
19
|
-
import '../Tooltip-
|
|
20
|
-
import '../Title-
|
|
19
|
+
import '../Link-DN2LhPjD.js';
|
|
20
|
+
import '../Tooltip-1Jbub0K6.js';
|
|
21
|
+
import '../Title-CHgrIarR.js';
|
|
21
22
|
|
|
22
23
|
var siteMenuAppearance = {
|
|
23
24
|
dev: {},
|
|
@@ -60,7 +61,7 @@ function SiteMenu(props) {
|
|
|
60
61
|
var appearanceConfig = siteMenuConfig.appearance && siteMenuConfig.appearance[appearance];
|
|
61
62
|
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
62
63
|
var fillClass = classGenerator.fillClass;
|
|
63
|
-
return (jsx("div", { className: clsx(className, 'site-menu', fillClass && "fill_".concat(fillClass), isSiteMenuOpen && 'site-menu_state_visible', !isSiteMenuOpen && 'site-menu_state_hidden'), children: jsxs("div", { className: "site-menu__wrapper", children: [jsx("div", { className: "site-menu__close", children: iconClose ? (jsx(Icon, { fill: iconCloseFill || (appearanceConfig === null || appearanceConfig ===
|
|
64
|
+
return (jsx("div", { className: clsx(className, 'site-menu', fillClass && "fill_".concat(fillClass), isSiteMenuOpen && 'site-menu_state_visible', !isSiteMenuOpen && 'site-menu_state_hidden'), children: jsxs("div", { className: "site-menu__wrapper", children: [jsx("div", { className: "site-menu__close", children: iconClose ? (jsx(Icon, { fill: iconCloseFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconCloseFill), bgFill: iconCloseBgFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconCloseBgFill), size: iconCloseSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconCloseSize), SvgImage: iconClose || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconClose), onClick: onClickClose })) : (jsx(Text, { size: closeTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.closeTextSize), textColor: closeTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.closeTextColor), textColorHover: closeTextColorHover || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.closeTextColorHover),
|
|
64
65
|
// @ts-expect-error
|
|
65
66
|
onClick: onClickClose, children: closeText })) }), jsx("div", { className: "site-menu__items", children: children })] }) }));
|
|
66
67
|
}
|
|
@@ -4,24 +4,25 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
|
|
5
5
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles.js';
|
|
7
|
-
import { T as Title } from '../Title-
|
|
8
|
-
import '../tslib.es6-
|
|
7
|
+
import { T as Title } from '../Title-CHgrIarR.js';
|
|
8
|
+
import '../tslib.es6-Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
11
11
|
import '../context/UIContext.js';
|
|
12
12
|
import '../hooks/useMediaQueries.js';
|
|
13
13
|
import 'react-responsive';
|
|
14
|
+
import '../utils/setViewportProperty.js';
|
|
14
15
|
import 'lodash/maxBy';
|
|
15
16
|
import 'lodash/upperFirst';
|
|
16
17
|
import '../hooks/styleAttributes.js';
|
|
17
18
|
|
|
18
19
|
function Swiper(props) {
|
|
19
|
-
var id = props.id, children = props.children, direction = props.direction, isChangeOnClickSlide = props.isChangeOnClickSlide, isInit = props.isInit, _a = props.isNavigation, isNavigation = _a ===
|
|
20
|
+
var id = props.id, children = props.children, direction = props.direction, isChangeOnClickSlide = props.isChangeOnClickSlide, isInit = props.isInit, _a = props.isNavigation, isNavigation = _a === void 0 ? false : _a, isScrollbar = props.isScrollbar, _b = props.activeSlideIndex, activeSlideIndex = _b === void 0 ? 0 : _b, allowTouchMove = props.allowTouchMove, autoHeight = props.autoHeight, breakpoints = props.breakpoints, className = props.className, forwardedRef = props.forwardedRef, // https://github.com/vercel/next.js/issues/4957
|
|
20
21
|
freeMode = props.freeMode, items = props.items, keyboard = props.keyboard, loop = props.loop, modules = props.modules, mousewheel = props.mousewheel, nextButton = props.nextButton, normalizeSlideIndex = props.normalizeSlideIndex, pagination = props.pagination, prevButton = props.prevButton, preventClicks = props.preventClicks, preventClicksPropagation = props.preventClicksPropagation, set = props.set, setNextBtnDisabled = props.setNextBtnDisabled, setPrevBtnDisabled = props.setPrevBtnDisabled, simulateTouch = props.simulateTouch, slidesPerView = props.slidesPerView, spaceBetween = props.spaceBetween, speed = props.speed, swiperClass = props.swiperClass, swiperSlideClass = props.swiperSlideClass, title = props.title, titleAfter = props.titleAfter, titleSize = props.titleSize, titleTextColor = props.titleTextColor, titleWeight = props.titleWeight, onSlideNextTransitionEnd = props.onSlideNextTransitionEnd, onSlidePrevTransitionEnd = props.onSlidePrevTransitionEnd, onSwiper = props.onSwiper, onUpdate = props.onUpdate;
|
|
21
22
|
var swiperRef = useRef(null);
|
|
22
23
|
var _c = useSwiperRef(), nextEl = _c[0], nextRef = _c[1];
|
|
23
24
|
var _d = useSwiperRef(), prevEl = _d[0], prevRef = _d[1];
|
|
24
|
-
var isLoop = loop !== null && loop !==
|
|
25
|
+
var isLoop = loop !== null && loop !== void 0 ? loop : true;
|
|
25
26
|
var onInitSwiper = useCallback(function (swiper) {
|
|
26
27
|
// swiper.touchEventsData.formElements = 'undefined'
|
|
27
28
|
// Set "disabled" state to navigation buttons on init
|
|
@@ -47,17 +48,17 @@ function Swiper(props) {
|
|
|
47
48
|
useImperativeHandle(forwardedRef, function () { return swiperRef.current; }, []);
|
|
48
49
|
useEffect(function () {
|
|
49
50
|
var _a;
|
|
50
|
-
var swiperInstance = (_a = swiperRef.current) === null || _a ===
|
|
51
|
+
var swiperInstance = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper;
|
|
51
52
|
// @ts-expect-error
|
|
52
|
-
swiperInstance === null || swiperInstance ===
|
|
53
|
-
swiperInstance === null || swiperInstance ===
|
|
53
|
+
swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateActiveIndex(activeSlideIndex);
|
|
54
|
+
swiperInstance === null || swiperInstance === void 0 ? void 0 : swiperInstance.updateSlidesClasses();
|
|
54
55
|
}, [activeSlideIndex]);
|
|
55
56
|
var classGenerator = useDeviceTargetClassGenerator(props);
|
|
56
57
|
var alignClass = classGenerator.alignClass, alignDirectionClass = classGenerator.alignDirectionClass, fillClass = classGenerator.fillClass, shapeClass = classGenerator.shapeClass;
|
|
57
58
|
// @ts-expect-error
|
|
58
59
|
var style = useStyles(props).styles;
|
|
59
|
-
return (jsxs("div", { className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass && "fill_".concat(fillClass), shapeClass && "swiper_shape_".concat(shapeClass), className, set && "swiper-block_set_".concat(set)), id: id, style: style, children: [(title || (prevButton && nextButton)) && (jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsx(Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxs("div", { className: "swiper-block__navigation", children: [jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsx(Swiper$1, { className: clsx('swiper-block__swiper', swiperClass), ref: swiperRef, allowTouchMove: allowTouchMove, autoHeight: autoHeight !== null && autoHeight !==
|
|
60
|
-
(items === null || items ===
|
|
60
|
+
return (jsxs("div", { className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass && "fill_".concat(fillClass), shapeClass && "swiper_shape_".concat(shapeClass), className, set && "swiper-block_set_".concat(set)), id: id, style: style, children: [(title || (prevButton && nextButton)) && (jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsx(Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxs("div", { className: "swiper-block__navigation", children: [jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsx(Swiper$1, { className: clsx('swiper-block__swiper', swiperClass), ref: swiperRef, allowTouchMove: allowTouchMove, autoHeight: autoHeight !== null && autoHeight !== void 0 ? autoHeight : false, breakpoints: breakpoints, centeredSlides: true, direction: direction, freeMode: freeMode, init: isInit !== null && isInit !== void 0 ? isInit : true, keyboard: keyboard, loop: isLoop, modules: modules, mousewheel: mousewheel, navigation: isNavigation ? { nextEl: nextEl, prevEl: prevEl } : false, normalizeSlideIndex: normalizeSlideIndex, pagination: pagination, preventClicks: preventClicks, preventClicksPropagation: preventClicksPropagation, scrollbar: isScrollbar, simulateTouch: simulateTouch, slidesPerView: slidesPerView, spaceBetween: spaceBetween, speed: speed !== null && speed !== void 0 ? speed : 500, onInit: onInitSwiper, onSlideChange: onSlideChange, onSlideNextTransitionEnd: onSlideNextTransitionEnd, onSlidePrevTransitionEnd: onSlidePrevTransitionEnd, onSwiper: onSwiper, onTransitionStart: onTransitionStart, onUpdate: onUpdate, children: children ||
|
|
61
|
+
(items === null || items === void 0 ? void 0 : items.map(function (item, i) { return (jsx(SwiperSlide, { className: clsx('swiper-block__item', swiperSlideClass, alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), children: item }, "swiper-slide_".concat(i))); })) })] }));
|
|
61
62
|
}
|
|
62
63
|
Swiper.defaultProps = {
|
|
63
64
|
disabledButtonClass: 'swiper-button-disabled',
|
package/dist/components/Tab.js
CHANGED
|
@@ -3,16 +3,17 @@ import React from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles.js';
|
|
6
|
-
import { B as Badge } from '../Badge-
|
|
6
|
+
import { B as Badge } from '../Badge-CcaG-4ly.js';
|
|
7
7
|
import { D as Divider } from '../Divider-DBvDCUqP.js';
|
|
8
|
-
import {
|
|
9
|
-
import { T as Text } from '../Text-
|
|
10
|
-
import '../tslib.es6-
|
|
8
|
+
import { a as Link } from '../Link-DN2LhPjD.js';
|
|
9
|
+
import { T as Text } from '../Text-JayJa3hj.js';
|
|
10
|
+
import '../tslib.es6-Bwu1Cn-t.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import 'lodash/castArray';
|
|
13
13
|
import '../context/UIContext.js';
|
|
14
14
|
import '../hooks/useMediaQueries.js';
|
|
15
15
|
import 'react-responsive';
|
|
16
|
+
import '../utils/setViewportProperty.js';
|
|
16
17
|
import 'lodash/maxBy';
|
|
17
18
|
import 'lodash/upperFirst';
|
|
18
19
|
import '../hooks/styleAttributes.js';
|
|
@@ -123,7 +124,7 @@ var tabConfig = {
|
|
|
123
124
|
},
|
|
124
125
|
};
|
|
125
126
|
function Tab(props) {
|
|
126
|
-
var children = props.children, _a = props.isActive, isActive = _a ===
|
|
127
|
+
var children = props.children, _a = props.isActive, isActive = _a === void 0 ? false : _a, _b = props.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = props.isHover, isHover = _c === void 0 ? false : _c, after = props.after, appearance = props.appearance, badgeAppearance = props.badgeAppearance, badgeShape = props.badgeShape, badgeSize = props.badgeSize, badgeTextColor = props.badgeTextColor, badgeTextSize = props.badgeTextSize, badgeValue = props.badgeValue, before = props.before, className = props.className, dataTour = props.dataTour, _d = props.dividerDirection, dividerDirection = _d === void 0 ? 'horizontal' : _d, dividerFill = props.dividerFill, dividerFillActive = props.dividerFillActive, dividerFillActiveHover = props.dividerFillActiveHover, dividerFillDisabled = props.dividerFillDisabled, dividerFillHover = props.dividerFillHover, dividerSize = props.dividerSize, href = props.href, label = props.label, labelColor = props.labelColor, labelColorActive = props.labelColorActive, labelColorDisabled = props.labelColorDisabled, labelTextAlign = props.labelTextAlign, labelTextColorHover = props.labelTextColorHover, labelTextGradient = props.labelTextGradient, labelTextSize = props.labelTextSize, labelTextStyle = props.labelTextStyle, labelTextWeight = props.labelTextWeight, labelTextWrap = props.labelTextWrap, link = props.link, linkFill = props.linkFill, rel = props.rel, reset = props.reset, set = props.set, target = props.target, onClick = props.onClick, onMouseEnter = props.onMouseEnter;
|
|
127
128
|
// @ts-expect-error
|
|
128
129
|
var appearanceConfig = tabConfig.appearance && tabConfig.appearance[appearance];
|
|
129
130
|
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
@@ -132,11 +133,11 @@ function Tab(props) {
|
|
|
132
133
|
var tab = useStyles(props).styles;
|
|
133
134
|
return (jsx("div", { className: clsx('tab', isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', isHover && 'tab_state_hover', !isDisabled
|
|
134
135
|
? fillClass && "fill_".concat(fillClass)
|
|
135
|
-
: fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), !isDisabled ? fillHoverClass && "fill_hover_".concat(fillHoverClass) : null, className, sizeClass && "tab_size_".concat(sizeClass), fillActiveClass && "fill_active_".concat(fillActiveClass), fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "tab_shape_".concat(shapeClass), typeClass && "tab_type_".concat(typeClass), widthClass && "width_".concat(widthClass), reset && 'tab-reset', set && "tab_set_".concat(set), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), onClick && 'cursor_type_pointer'), "data-tour": dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsx(Link, { className: clsx('tab__link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), fill: linkFill, href: link || href, rel: rel, target: target, children: jsxs(React.Fragment, { children: [before, children || (jsxs(React.Fragment, { children: [jsxs("div", { className: "tab__wrapper", children: [(label || (appearanceConfig === null || appearanceConfig ===
|
|
136
|
-
? labelColorDisabled || (appearanceConfig === null || appearanceConfig ===
|
|
137
|
-
: labelColor || (appearanceConfig === null || appearanceConfig ===
|
|
138
|
-
? dividerFillDisabled || (appearanceConfig === null || appearanceConfig ===
|
|
139
|
-
: dividerFill || (appearanceConfig === null || appearanceConfig ===
|
|
136
|
+
: fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), !isDisabled ? fillHoverClass && "fill_hover_".concat(fillHoverClass) : null, className, sizeClass && "tab_size_".concat(sizeClass), fillActiveClass && "fill_active_".concat(fillActiveClass), fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "tab_shape_".concat(shapeClass), typeClass && "tab_type_".concat(typeClass), widthClass && "width_".concat(widthClass), reset && 'tab-reset', set && "tab_set_".concat(set), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), onClick && 'cursor_type_pointer'), "data-tour": dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsx(Link, { className: clsx('tab__link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), fill: linkFill, href: link || href, rel: rel, target: target, children: jsxs(React.Fragment, { children: [before, children || (jsxs(React.Fragment, { children: [jsxs("div", { className: "tab__wrapper", children: [(label || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.label)) && (jsx(Text, { className: "tab__label", size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize), textAlign: labelTextAlign, textColorGradient: labelTextGradient, textColorHover: labelTextColorHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, textColor: isDisabled
|
|
137
|
+
? labelColorDisabled || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelColorDisabled)
|
|
138
|
+
: labelColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelColor), textColorActive: isActive && (labelColorActive || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelColorActive)), children: label || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.label) })), (badgeValue || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeValue)) && (jsx(Badge, { appearance: badgeAppearance || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeAppearance), shape: badgeShape, size: badgeSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeSize), textColor: badgeTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeTextColor), textSize: badgeTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeTextSize), value: badgeValue || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeValue) }))] }), jsx(Divider, { width: "fill", fill: isDisabled
|
|
139
|
+
? dividerFillDisabled || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.dividerFillDisabled)
|
|
140
|
+
: dividerFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.dividerFill), fillHover: isHover && (dividerFillHover || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.dividerFillHover)), direction: dividerDirection, fillActive: isActive && (dividerFillActive || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.dividerFillActive)), fillActiveHover: dividerFillActiveHover, size: dividerSize })] })), after] }) }) }));
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
function TabGroup(props) {
|
package/dist/components/Text.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export { T as Text, a as textAppearance, t as textConfig } from '../Text-
|
|
1
|
+
export { T as Text, a as textAppearance, t as textConfig } from '../Text-JayJa3hj.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useDeviceTargetClassGenerator.js';
|
|
5
|
-
import '../tslib.es6-
|
|
5
|
+
import '../tslib.es6-Bwu1Cn-t.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
10
|
import '../hooks/useMediaQueries.js';
|
|
11
11
|
import 'react-responsive';
|
|
12
|
+
import '../utils/setViewportProperty.js';
|
|
12
13
|
import '../hooks/useStyles.js';
|
|
13
14
|
import 'lodash/maxBy';
|
|
14
15
|
import 'lodash/upperFirst';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
4
|
-
import '../tslib.es6-
|
|
4
|
+
import '../tslib.es6-Bwu1Cn-t.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'lodash/camelCase';
|
|
7
7
|
import 'lodash/castArray';
|
|
8
8
|
import '../context/UIContext.js';
|
|
9
9
|
import '../hooks/useMediaQueries.js';
|
|
10
10
|
import 'react-responsive';
|
|
11
|
+
import '../utils/setViewportProperty.js';
|
|
11
12
|
|
|
12
13
|
var textareaAppearance = {
|
|
13
14
|
dev: {
|
package/dist/components/Tile.js
CHANGED
|
@@ -2,16 +2,17 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import { B as Badge } from '../Badge-
|
|
6
|
-
import { T as Text } from '../Text-
|
|
7
|
-
import { T as Title } from '../Title-
|
|
8
|
-
import '../tslib.es6-
|
|
5
|
+
import { B as Badge } from '../Badge-CcaG-4ly.js';
|
|
6
|
+
import { T as Text } from '../Text-JayJa3hj.js';
|
|
7
|
+
import { T as Title } from '../Title-CHgrIarR.js';
|
|
8
|
+
import '../tslib.es6-Bwu1Cn-t.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
12
12
|
import '../context/UIContext.js';
|
|
13
13
|
import '../hooks/useMediaQueries.js';
|
|
14
14
|
import 'react-responsive';
|
|
15
|
+
import '../utils/setViewportProperty.js';
|
|
15
16
|
import 'lodash/maxBy';
|
|
16
17
|
import 'lodash/upperFirst';
|
|
17
18
|
import '../hooks/styleAttributes.js';
|
|
@@ -34,7 +35,7 @@ function Tile(props) {
|
|
|
34
35
|
var alignClass = classGenerator.alignClass, alignDirectionClass = classGenerator.alignDirectionClass, borderColorClass = classGenerator.borderColorClass, borderColorHoverClass = classGenerator.borderColorHoverClass, borderTypeClass = classGenerator.borderTypeClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, shapeClass = classGenerator.shapeClass;
|
|
35
36
|
// @ts-expect-error
|
|
36
37
|
var tileStyles = useStyles(props).styles;
|
|
37
|
-
return (jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "tile_shape_".concat(shapeClass), alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), direction && "direction_".concat(direction), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), reverse && 'tile_reverse', size && "tile_size_".concat(size), type && "tile_type_".concat(type), badge && "tile_state_badge"), style: tileStyles, onClick: onClick, children: jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, title && (jsx(Title, { className: "tile__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig ===
|
|
38
|
+
return (jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "tile_shape_".concat(shapeClass), alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), direction && "direction_".concat(direction), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), reverse && 'tile_reverse', size && "tile_size_".concat(size), type && "tile_type_".concat(type), badge && "tile_state_badge"), style: tileStyles, onClick: onClick, children: jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, title && (jsx(Title, { className: "tile__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextSize), textAlign: titleTextAlign, textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor), textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), text && (jsx(Text, { className: "tile__text", size: textSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor), textWrap: textWrap, children: text })), badge && (jsx(Badge, { className: "tile__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, value: badge })), children, after] }) }));
|
|
38
39
|
}
|
|
39
40
|
Tile.defaultProps = {
|
|
40
41
|
alignDirection: 'vertical',
|
package/dist/components/Title.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export { T as Title, a as titleAppearance, t as titleConfig } from '../Title-
|
|
1
|
+
export { T as Title, a as titleAppearance, t as titleConfig } from '../Title-CHgrIarR.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
5
5
|
import '../context/UIContext.js';
|
|
6
6
|
import '../hooks/useMediaQueries.js';
|
|
7
7
|
import 'react-responsive';
|
|
8
|
+
import '../utils/setViewportProperty.js';
|
|
8
9
|
import '../hooks/useDeviceTargetClassGenerator.js';
|
|
9
|
-
import '../tslib.es6-
|
|
10
|
+
import '../tslib.es6-Bwu1Cn-t.js';
|
|
10
11
|
import 'lodash/camelCase';
|
|
11
12
|
import 'lodash/castArray';
|
|
12
13
|
import '../hooks/useStyles.js';
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip-
|
|
1
|
+
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip-1Jbub0K6.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
5
5
|
import '../hooks/useDeviceTargetClassGenerator.js';
|
|
6
|
-
import '../tslib.es6-
|
|
6
|
+
import '../tslib.es6-Bwu1Cn-t.js';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
10
|
import '../hooks/useMediaQueries.js';
|
|
11
11
|
import 'react-responsive';
|
|
12
|
+
import '../utils/setViewportProperty.js';
|
|
12
13
|
import '../hooks/useStyles.js';
|
|
13
14
|
import 'lodash/maxBy';
|
|
14
15
|
import 'lodash/upperFirst';
|
|
15
16
|
import '../hooks/styleAttributes.js';
|
|
16
|
-
import '../Text-
|
|
17
|
-
import '../Title-
|
|
17
|
+
import '../Text-JayJa3hj.js';
|
|
18
|
+
import '../Title-CHgrIarR.js';
|
package/dist/components/Video.js
CHANGED
|
@@ -2,19 +2,20 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import '../tslib.es6-
|
|
5
|
+
import '../tslib.es6-Bwu1Cn-t.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
10
|
import '../hooks/useMediaQueries.js';
|
|
11
11
|
import 'react-responsive';
|
|
12
|
+
import '../utils/setViewportProperty.js';
|
|
12
13
|
import 'lodash/maxBy';
|
|
13
14
|
import 'lodash/upperFirst';
|
|
14
15
|
import '../hooks/styleAttributes.js';
|
|
15
16
|
|
|
16
17
|
function Wrapper(props) {
|
|
17
|
-
var id = props.id, children = props.children, after = props.after, before = props.before, _a = props.className, className = _a ===
|
|
18
|
+
var id = props.id, children = props.children, after = props.after, before = props.before, _a = props.className, className = _a === void 0 ? 'wrapper' : _a, _b = props.tag, Tag = _b === void 0 ? 'div' : _b, type = props.type;
|
|
18
19
|
var classGenerator = useDeviceTargetClassGenerator(props);
|
|
19
20
|
var alignClass = classGenerator.alignClass, alignDirectionClass = classGenerator.alignDirectionClass, fillClass = classGenerator.fillClass, horizontalResizingClass = classGenerator.horizontalResizingClass, positionClass = classGenerator.positionClass, verticalResizingClass = classGenerator.verticalResizingClass, wrapperPositionClass = classGenerator.wrapperPositionClass;
|
|
20
21
|
// @ts-expect-error
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { a as __spreadArray } from '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { createContext, useState, useCallback, useMemo, useEffect, useContext } from 'react';
|
|
5
5
|
import { v4 } from 'uuid';
|
|
@@ -17,7 +17,7 @@ var NotificationsAPIContext = createContext({
|
|
|
17
17
|
showNotification: function (notification, onClose) { },
|
|
18
18
|
});
|
|
19
19
|
function NotificationsProvider(props) {
|
|
20
|
-
var children = props.children, _a = props.initialNotificationsList, initialNotificationsList = _a ===
|
|
20
|
+
var children = props.children, _a = props.initialNotificationsList, initialNotificationsList = _a === void 0 ? [] : _a;
|
|
21
21
|
var _b = useState(function () {
|
|
22
22
|
// We need to set id to every notification item and original list also be have new id's
|
|
23
23
|
return (initialNotificationsList || []).map(function (notificationItem) {
|
|
@@ -110,11 +110,11 @@ function createNotification(notification, onClose) {
|
|
|
110
110
|
text = notification;
|
|
111
111
|
}
|
|
112
112
|
else if (typeof notification === 'object') {
|
|
113
|
-
id = (_a = notification.id) !== null && _a !==
|
|
114
|
-
title = (_b = notification.title) !== null && _b !==
|
|
115
|
-
text = (_c = notification.text) !== null && _c !==
|
|
116
|
-
status = (_d = notification.status) !== null && _d !==
|
|
117
|
-
closeByTime = (_e = notification.closeByTime) !== null && _e !==
|
|
113
|
+
id = (_a = notification.id) !== null && _a !== void 0 ? _a : id;
|
|
114
|
+
title = (_b = notification.title) !== null && _b !== void 0 ? _b : title;
|
|
115
|
+
text = (_c = notification.text) !== null && _c !== void 0 ? _c : text;
|
|
116
|
+
status = (_d = notification.status) !== null && _d !== void 0 ? _d : status;
|
|
117
|
+
closeByTime = (_e = notification.closeByTime) !== null && _e !== void 0 ? _e : closeByTime;
|
|
118
118
|
}
|
|
119
119
|
switch (status) {
|
|
120
120
|
case 'success':
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { createContext, memo, useState, useMemo, useContext } from 'react';
|
|
3
|
+
import { createContext, memo, useState, useMemo, useEffect, useContext } from 'react';
|
|
4
4
|
import { useMediaQueries } from '../hooks/useMediaQueries.js';
|
|
5
|
+
import { setViewportProperty } from '../utils/setViewportProperty.js';
|
|
5
6
|
import 'react-responsive';
|
|
6
7
|
|
|
7
8
|
var UserDeviceContext = createContext({
|
|
@@ -20,9 +21,13 @@ function useSiteMenuContext() {
|
|
|
20
21
|
return useContext(SiteMenuContext);
|
|
21
22
|
}
|
|
22
23
|
var UIProvider = memo(function UIProvider(props) {
|
|
23
|
-
var children = props.children, _a = props.userDeviceState, userDeviceState = _a ===
|
|
24
|
+
var children = props.children, _a = props.userDeviceState, userDeviceState = _a === void 0 ? {} : _a;
|
|
24
25
|
var _b = useState(false), isSiteMenuOpen = _b[0], setIsSiteMenuOpen = _b[1];
|
|
25
26
|
var siteMenuContextState = useMemo(function () { return ({ isSiteMenuOpen: isSiteMenuOpen, setIsSiteMenuOpen: setIsSiteMenuOpen }); }, [isSiteMenuOpen]);
|
|
27
|
+
useEffect(function () {
|
|
28
|
+
setViewportProperty();
|
|
29
|
+
window.addEventListener('resize', setViewportProperty);
|
|
30
|
+
}, []);
|
|
26
31
|
var mediaQueriesDevices = useMediaQueries(userDeviceState);
|
|
27
32
|
return (jsx(UserDeviceContext.Provider, { value: mediaQueriesDevices, children: jsx(SiteMenuContext.Provider, { value: siteMenuContextState, children: children }) }));
|
|
28
33
|
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.checkmark {
|
|
2
|
+
border-radius: 100px;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
&__svg {
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
& .icon__item {
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
& > svg {
|
|
15
|
+
width: 60%;
|
|
16
|
+
height: 60%;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.checkmark {
|
|
22
|
+
&_size {
|
|
23
|
+
@each $size in xxs, xs, s, m, l, xl, xxl {
|
|
24
|
+
&_$(size) {
|
|
25
|
+
min-width: var(--checkmark-width-size-$(size));
|
|
26
|
+
min-height: var(--checkmark-height-size-$(size));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--checkmark-width-size-xxs: 16px;
|
|
3
|
+
--checkmark-height-size-xxs: 16px;
|
|
4
|
+
--checkmark-width-size-xs: 24px;
|
|
5
|
+
--checkmark-height-size-xs: 24px;
|
|
6
|
+
--checkmark-width-size-s: 32px;
|
|
7
|
+
--checkmark-height-size-s: 32px;
|
|
8
|
+
--checkmark-width-size-m: 40px;
|
|
9
|
+
--checkmark-height-size-m: 40px;
|
|
10
|
+
--checkmark-width-size-l: 48px;
|
|
11
|
+
--checkmark-height-size-l: 48px;
|
|
12
|
+
--checkmark-width-size-xl: 56px;
|
|
13
|
+
--checkmark-height-size-xl: 56px;
|
|
14
|
+
--checkmark-width-size-xxl: 64px;
|
|
15
|
+
--checkmark-height-size-xxl: 64px;
|
|
16
|
+
}
|
|
@@ -57,13 +57,17 @@
|
|
|
57
57
|
&_set {
|
|
58
58
|
&_form {
|
|
59
59
|
width: 100%;
|
|
60
|
+
padding: var(--notification-item-set-form-padding, 0);
|
|
60
61
|
border-radius: var(--notification-item-set-form-border-radius, 8px);
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
gap: var(--notification-item-set-form-gap, 0);
|
|
61
65
|
^^&-wrapper {
|
|
62
66
|
text-align: left;
|
|
63
|
-
padding: var(--notification-item-set-form-padding, 12px 16px);
|
|
67
|
+
padding: var(--notification-item-set-form-wrapper-padding, 12px 16px);
|
|
64
68
|
display: flex;
|
|
65
69
|
flex-direction: column;
|
|
66
|
-
gap: 4px;
|
|
70
|
+
gap: var(--notification-item-set-form-wrapper-gap, 4px);
|
|
67
71
|
}
|
|
68
72
|
}
|
|
69
73
|
}
|
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
&_set {
|
|
3
3
|
&_form {
|
|
4
4
|
width: 100%;
|
|
5
|
+
padding: var(--notification-item-set-form-padding, 0);
|
|
5
6
|
border-radius: var(--notification-item-set-form-border-radius, 8px);
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: var(--notification-item-set-form-gap, 0);
|
|
6
10
|
^^&-wrapper {
|
|
7
11
|
text-align: left;
|
|
8
|
-
padding: var(--notification-item-set-form-padding, 12px 16px);
|
|
12
|
+
padding: var(--notification-item-set-form-wrapper-padding, 12px 16px);
|
|
9
13
|
display: flex;
|
|
10
14
|
flex-direction: column;
|
|
11
|
-
gap: 4px;
|
|
15
|
+
gap: var(--notification-item-set-form-wrapper-gap, 4px);
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
18
|
}
|