@itcase/ui 1.2.30 → 1.2.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Badge-TyPbVqR_.js → Badge-BMKD9teI.js} +6 -2
- package/dist/{Badge-BZYBmgBK.js → Badge-DQnTpE4I.js} +6 -2
- package/dist/{Button-avhviao1.js → Button-DS2l65oq.js} +4 -4
- package/dist/{Button-BcOsYgoT.js → Button-x4mnZJoS.js} +3 -3
- package/dist/Divider-3upWnf8a.js +71 -0
- package/dist/Divider-DE2Q5J36.js +68 -0
- package/dist/{DropdownItem-toApJyeB.js → DropdownItem-CT9Dmiub.js} +38 -14
- package/dist/DropdownItem-DzDP45iO.js +179 -0
- package/dist/{Icon-ClsRaxDk.js → Icon-B7BJo5kW.js} +14 -19
- package/dist/{Icon-B2BwTQnP.js → Icon-PoesVPJn.js} +13 -18
- package/dist/{Input-BaicBuyd.js → Input-DXbt_RWB.js} +1 -2
- package/dist/{Input-DbzsXvEf.js → Input-HGM-rzzr.js} +1 -2
- package/dist/{Label-fp2Bus_T.js → Label-BBm19sQ-.js} +3 -6
- package/dist/{Label-BfotYOmD.js → Label-Chm6tl6E.js} +3 -6
- package/dist/{Link-CzC1kU5C.js → Link-CeQuavin.js} +1 -1
- package/dist/Loader-CqEocvjh.js +56 -0
- package/dist/Loader-DRTOGvF1.js +59 -0
- package/dist/{MenuItem-BJ3uGKCH.js → MenuItem-DPJ_9FxW.js} +14 -3
- package/dist/{MenuItem-BEYVY0Vf.js → MenuItem-zHzWXIvQ.js} +15 -4
- package/dist/{Scrollbar-CrGXCZ_F.js → Scrollbar-Bo7z7ELm.js} +10 -13
- package/dist/{Scrollbar-DVlIZzvz.js → Scrollbar-CKbA0jQU.js} +10 -13
- package/dist/{Text-CC0xnhmx.js → Text-1b-Bk7yG.js} +3 -4
- package/dist/{Text-kxGZButz.js → Text-DlSG_p4u.js} +3 -4
- package/dist/{Title-CQ_Fr1hO.js → Title-mkus84Rh.js} +3 -6
- package/dist/{Title-Ze_OL1Co.js → Title-o5ofk8ge.js} +3 -6
- package/dist/{Tooltip-PrwacZFC.js → Tooltip-CNJN2lf5.js} +19 -3
- package/dist/{Tooltip-ccRCMYQM.js → Tooltip-f5EWhsGj.js} +19 -3
- package/dist/appearance/Avatar.js +5 -0
- package/dist/appearance/Code.js +5 -0
- package/dist/appearance/Divider.js +5 -0
- package/dist/appearance/DropdownItem.js +5 -0
- package/dist/appearance/Modal.js +5 -0
- package/dist/appearance/Response.js +95 -21
- package/dist/appearance/SiteMenu.js +5 -0
- package/dist/appearance/Switch.js +5 -0
- package/dist/appearance/Tile.js +5 -0
- package/dist/cjs/appearance/Avatar.js +7 -0
- package/dist/cjs/appearance/Code.js +7 -0
- package/dist/cjs/appearance/Divider.js +7 -0
- package/dist/cjs/appearance/DropdownItem.js +7 -0
- package/dist/cjs/appearance/Modal.js +7 -0
- package/dist/cjs/appearance/Response.js +95 -21
- package/dist/cjs/appearance/SiteMenu.js +7 -0
- package/dist/cjs/appearance/Switch.js +7 -0
- package/dist/cjs/appearance/Tile.js +7 -0
- package/dist/cjs/components/Accordion.js +6 -6
- package/dist/cjs/components/Avatar.js +22 -8
- package/dist/cjs/components/Badge.js +2 -3
- package/dist/cjs/components/Breadcrumbs.js +4 -8
- package/dist/cjs/components/Button.js +7 -8
- package/dist/cjs/components/Caption.js +0 -1
- package/dist/cjs/components/Card.js +3 -12
- package/dist/cjs/components/Cell.js +7 -12
- package/dist/cjs/components/Checkbox.js +1 -5
- package/dist/cjs/components/Chips.js +1 -2
- package/dist/cjs/components/Choice.js +6 -7
- package/dist/cjs/components/Code.js +31 -10
- package/dist/cjs/components/ContextMenu.js +9 -21
- package/dist/cjs/components/CookiesWarning.js +9 -15
- package/dist/cjs/components/DadataHintField.js +1 -2
- package/dist/cjs/components/DatePicker.js +8 -9
- package/dist/cjs/components/Divider.js +3 -2
- package/dist/cjs/components/Dot.js +1 -3
- package/dist/cjs/components/Dropdown.js +6 -4
- package/dist/cjs/components/Flex.js +0 -1
- package/dist/cjs/components/Grid.js +1 -8
- package/dist/cjs/components/Group.js +0 -1
- package/dist/cjs/components/HTMLContent.js +0 -1
- package/dist/cjs/components/Icon.js +5 -6
- package/dist/cjs/components/Image.js +0 -1
- package/dist/cjs/components/Input.js +1 -2
- package/dist/cjs/components/InputMask.js +7 -9
- package/dist/cjs/components/InputPassword.js +5 -6
- package/dist/cjs/components/Label.js +4 -5
- package/dist/cjs/components/LanguageSelector.js +5 -6
- package/dist/cjs/components/Link.js +0 -1
- package/dist/cjs/components/List.js +0 -1
- package/dist/cjs/components/Loader.js +2 -3
- package/dist/cjs/components/Logo.js +0 -1
- package/dist/cjs/components/Menu.js +2 -3
- package/dist/cjs/components/MenuItem.js +2 -3
- package/dist/cjs/components/Modal.js +27 -7
- package/dist/cjs/components/ModalSheetBottom.js +34 -0
- package/dist/cjs/components/Notification.js +7 -6
- package/dist/cjs/components/Overlay.js +0 -1
- package/dist/cjs/components/Page.js +3 -46
- package/dist/cjs/components/Pagination.js +8 -7
- package/dist/cjs/components/Panel.js +1 -2
- package/dist/cjs/components/Radio.js +1 -3
- package/dist/cjs/components/RangeSlider.js +0 -1
- package/dist/cjs/components/Response.js +20 -15
- package/dist/cjs/components/SVGContent.js +0 -1
- package/dist/cjs/components/ScrollOnDrag.js +0 -1
- package/dist/cjs/components/ScrollToView.js +0 -1
- package/dist/cjs/components/Scrollbar.js +1 -1
- package/dist/cjs/components/Search.js +9 -12
- package/dist/cjs/components/Segmented.js +1 -2
- package/dist/cjs/components/Select.js +7 -7
- package/dist/cjs/components/SiteMenu.js +18 -8
- package/dist/cjs/components/Swiper.js +6 -8
- package/dist/cjs/components/Switch.js +12 -3
- package/dist/cjs/components/Tab.js +4 -4
- package/dist/cjs/components/Text.js +1 -2
- package/dist/cjs/components/Textarea.js +0 -1
- package/dist/cjs/components/Tile.js +22 -6
- package/dist/cjs/components/Title.js +1 -2
- package/dist/cjs/components/Tooltip.js +3 -4
- package/dist/cjs/components/Video.js +0 -1
- package/dist/cjs/components/Wrapper.js +3 -8
- package/dist/cjs/context/Notifications.js +0 -5
- package/dist/cjs/context/UIContext.js +0 -9
- package/dist/cjs/hooks/useDeviceTargetClass.js +0 -1
- package/dist/cjs/hooks/useStyles.js +0 -1
- package/dist/components/Accordion.js +8 -8
- package/dist/components/Avatar.js +23 -10
- package/dist/components/Badge.js +2 -3
- package/dist/components/Breadcrumbs.js +6 -10
- package/dist/components/Button.js +8 -9
- package/dist/components/Caption.js +0 -1
- package/dist/components/Card.js +3 -12
- package/dist/components/Cell.js +8 -13
- package/dist/components/Checkbox.js +1 -5
- package/dist/components/Chips.js +1 -2
- package/dist/components/Choice.js +7 -8
- package/dist/components/Code.js +32 -12
- package/dist/components/ContextMenu.js +10 -22
- package/dist/components/CookiesWarning.js +10 -16
- package/dist/components/DadataHintField.js +2 -3
- package/dist/components/DatePicker.js +10 -11
- package/dist/components/Divider.js +2 -2
- package/dist/components/Dot.js +1 -3
- package/dist/components/Dropdown.js +7 -6
- package/dist/components/Flex.js +0 -1
- package/dist/components/Grid.js +1 -8
- package/dist/components/Group.js +0 -1
- package/dist/components/HTMLContent.js +0 -1
- package/dist/components/Icon.js +6 -7
- package/dist/components/Image.js +0 -1
- package/dist/components/Input.js +1 -2
- package/dist/components/InputMask.js +7 -9
- package/dist/components/InputPassword.js +6 -7
- package/dist/components/Label.js +4 -5
- package/dist/components/LanguageSelector.js +6 -7
- package/dist/components/Link.js +2 -3
- package/dist/components/List.js +2 -3
- package/dist/components/Loader.js +2 -3
- package/dist/components/Logo.js +2 -3
- package/dist/components/Menu.js +4 -5
- package/dist/components/MenuItem.js +4 -5
- package/dist/components/Modal.js +27 -8
- package/dist/components/ModalSheetBottom.js +32 -0
- package/dist/components/Notification.js +8 -7
- package/dist/components/Overlay.js +0 -1
- package/dist/components/Page.js +3 -46
- package/dist/components/Pagination.js +10 -9
- package/dist/components/Panel.js +1 -2
- package/dist/components/Radio.js +1 -3
- package/dist/components/RangeSlider.js +0 -1
- package/dist/components/Response.js +21 -16
- package/dist/components/SVGContent.js +0 -1
- package/dist/components/ScrollOnDrag.js +1 -2
- package/dist/components/ScrollToView.js +0 -1
- package/dist/components/Scrollbar.js +1 -1
- package/dist/components/Search.js +10 -13
- package/dist/components/Segmented.js +1 -2
- package/dist/components/Select.js +9 -9
- package/dist/components/SiteMenu.js +19 -10
- package/dist/components/Swiper.js +6 -8
- package/dist/components/Switch.js +12 -4
- package/dist/components/Tab.js +6 -6
- package/dist/components/Text.js +1 -2
- package/dist/components/Textarea.js +0 -1
- package/dist/components/Tile.js +22 -7
- package/dist/components/Title.js +1 -2
- package/dist/components/Tooltip.js +3 -4
- package/dist/components/Video.js +0 -1
- package/dist/components/Wrapper.js +3 -8
- package/dist/context/Notifications.js +1 -6
- package/dist/context/UIContext.js +0 -9
- package/dist/css/components/ModalSheetBottom/ModalSheetBottom.css +29 -0
- package/dist/hooks/useDeviceTargetClass.js +0 -1
- package/dist/hooks/useStyles.js +0 -1
- package/dist/stories/Response.stories.js +38 -12
- package/dist/{tslib.es6-w7hdJ3oZ.js → tslib.es6-5FtW-kfi.js} +1 -1
- package/dist/types/appearance/Avatar/index.d.ts +2 -0
- package/dist/types/appearance/Code/index.d.ts +2 -0
- package/dist/types/appearance/Divider/index.d.ts +2 -0
- package/dist/types/appearance/DropdownItem/index.d.ts +2 -0
- package/dist/types/appearance/Modal/index.d.ts +2 -0
- package/dist/types/appearance/SiteMenu/index.d.ts +2 -0
- package/dist/types/appearance/Switch/index.d.ts +2 -0
- package/dist/types/appearance/Tile/index.d.ts +2 -0
- package/dist/types/components/Avatar/Avatar.d.ts +3 -2
- package/dist/types/components/Avatar/Avatar.interface.d.ts +25 -11
- package/dist/types/components/Avatar/index.d.ts +1 -1
- package/dist/types/components/Badge/Badge.d.ts +6 -0
- package/dist/types/components/Breadcrumbs/BreadcrumbsItem.d.ts +0 -5
- package/dist/types/components/Button/Button.interface.d.ts +6 -6
- package/dist/types/components/Card/Card.d.ts +0 -10
- package/dist/types/components/Cell/Cell.d.ts +0 -6
- package/dist/types/components/Checkbox/Checkbox.d.ts +0 -5
- package/dist/types/components/Code/Code.d.ts +6 -8
- package/dist/types/components/Code/Code.interface.d.ts +21 -2
- package/dist/types/components/Code/index.d.ts +1 -1
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +0 -5
- package/dist/types/components/CookiesWarning/CookiesWarning.d.ts +0 -7
- package/dist/types/components/Divider/Divider.d.ts +3 -2
- package/dist/types/components/Divider/Divider.interface.d.ts +11 -0
- package/dist/types/components/Divider/index.d.ts +1 -1
- package/dist/types/components/Dot/Dot.d.ts +0 -3
- package/dist/types/components/Dropdown/Dropdown.d.ts +0 -7
- package/dist/types/components/Dropdown/Dropdown.interface.d.ts +28 -15
- package/dist/types/components/Dropdown/DropdownItem.d.ts +5 -4
- package/dist/types/components/Dropdown/index.d.ts +2 -2
- package/dist/types/components/Grid/Grid.d.ts +0 -5
- package/dist/types/components/Grid/GridRow.d.ts +0 -5
- package/dist/types/components/Label/Label.d.ts +0 -5
- package/dist/types/components/Loader/Loader.interface.d.ts +3 -3
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +2 -2
- package/dist/types/components/Modal/Modal.d.ts +3 -2
- package/dist/types/components/Modal/Modal.interface.d.ts +22 -6
- package/dist/types/components/Modal/index.d.ts +2 -2
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.d.ts +3 -0
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.interface.d.ts +11 -0
- package/dist/types/components/ModalSheetBottom/index.d.ts +1 -0
- package/dist/types/components/Notification/Notification.interface.d.ts +8 -7
- package/dist/types/components/Page/Page.d.ts +3 -0
- package/dist/types/components/Page/Page.interface.d.ts +18 -0
- package/dist/types/components/Page/index.d.ts +1 -42
- package/dist/types/components/Radio/Radio.d.ts +0 -1
- package/dist/types/components/Response/Response.interface.d.ts +4 -4
- package/dist/types/components/Scrollbar/Scrollbar.d.ts +0 -5
- package/dist/types/components/Search/Search.interface.d.ts +9 -9
- package/dist/types/components/SiteMenu/SiteMenu.d.ts +3 -2
- package/dist/types/components/SiteMenu/SiteMenu.interface.d.ts +18 -5
- package/dist/types/components/SiteMenu/index.d.ts +2 -2
- package/dist/types/components/Swiper/Swiper.d.ts +0 -1
- package/dist/types/components/Switch/Switch.d.ts +3 -2
- package/dist/types/components/Switch/Switch.interface.d.ts +17 -4
- package/dist/types/components/Switch/index.d.ts +1 -1
- package/dist/types/components/Text/Text.d.ts +0 -5
- package/dist/types/components/Text/Text.interface.d.ts +1 -1
- package/dist/types/components/Tile/Tile.d.ts +3 -2
- package/dist/types/components/Tile/Tile.interface.d.ts +21 -9
- package/dist/types/components/Tile/index.d.ts +1 -1
- package/dist/types/components/Title/Title.d.ts +0 -5
- package/dist/types/components/Wrapper/Wrapper.d.ts +0 -6
- package/dist/types/context/Notifications.d.ts +0 -7
- package/dist/types/context/UIContext.d.ts +10 -2
- package/dist/types/icons/index.d.ts +2 -2
- package/dist/types/types/componentProps/appearanceKeys.d.ts +1 -1
- package/package.json +12 -15
- package/dist/Divider-BjB5MD6u.js +0 -50
- package/dist/Divider-U5UdY-ef.js +0 -48
- package/dist/DropdownItem-CFkRx8LX.js +0 -156
- package/dist/Loader-CU_5Ydmy.js +0 -53
- package/dist/Loader-Ck59IXGG.js +0 -56
- package/dist/types/constants/componentProps/align.d.ts +0 -2
- package/dist/types/constants/componentProps/alignDirection.d.ts +0 -2
- package/dist/types/constants/componentProps/fill.d.ts +0 -2
- package/dist/types/constants/componentProps/horizontalResizeMode.d.ts +0 -2
- package/dist/types/constants/componentProps/position.d.ts +0 -2
- package/dist/types/constants/componentProps/verticalResizeMode.d.ts +0 -2
- /package/dist/css/{styles → mediaqueries}/mediaqueries.css +0 -0
|
@@ -4,25 +4,24 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { searchAppearance } from '../appearance/Search.js';
|
|
5
5
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles.js';
|
|
7
|
-
import { I as Icon } from '../Icon-
|
|
8
|
-
import { T as Text } from '../Text-
|
|
9
|
-
import { S as Scrollbar } from '../Scrollbar-
|
|
7
|
+
import { I as Icon } from '../Icon-B7BJo5kW.js';
|
|
8
|
+
import { T as Text } from '../Text-DlSG_p4u.js';
|
|
9
|
+
import { S as Scrollbar } from '../Scrollbar-Bo7z7ELm.js';
|
|
10
10
|
import 'lodash/castArray';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import '../context/UIContext.js';
|
|
13
|
-
import 'prop-types';
|
|
14
13
|
import '../hooks/useMediaQueries.js';
|
|
15
14
|
import 'react-responsive';
|
|
16
15
|
import 'lodash/maxBy';
|
|
17
16
|
import 'lodash/upperFirst';
|
|
18
17
|
import '../hooks/styleAttributes.js';
|
|
18
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
19
19
|
import 'react-inlinesvg';
|
|
20
20
|
import '../appearance/Icon.js';
|
|
21
|
-
import '../Link-
|
|
22
|
-
import '../
|
|
23
|
-
import '../Tooltip-ccRCMYQM.js';
|
|
21
|
+
import '../Link-CeQuavin.js';
|
|
22
|
+
import '../Tooltip-f5EWhsGj.js';
|
|
24
23
|
import '../appearance/Tooltip.js';
|
|
25
|
-
import '../Title-
|
|
24
|
+
import '../Title-mkus84Rh.js';
|
|
26
25
|
import '../appearance/Title.js';
|
|
27
26
|
import '../appearance/Text.js';
|
|
28
27
|
import 'react-scrollbars-custom';
|
|
@@ -34,7 +33,7 @@ var searchInputConfig = {
|
|
|
34
33
|
},
|
|
35
34
|
};
|
|
36
35
|
var SearchInput = React.forwardRef(function SearchInput(props, ref) {
|
|
37
|
-
var after = props.after, appearance = props.appearance, before = props.before, className = props.className, dataTour = props.dataTour, iconAfter = props.iconAfter, iconAfterFill = props.iconAfterFill, iconAfterSize = props.iconAfterSize, iconAfterSrc = props.iconAfterSrc, iconBefore = props.iconBefore, iconBeforeFill = props.iconBeforeFill, iconBeforeSize = props.iconBeforeSize, iconBeforeSrc = props.iconBeforeSrc, iconClear = props.iconClear, iconClearFill = props.iconClearFill, iconClearSize = props.iconClearSize, iconClearSrc = props.iconClearSrc, placeholder = props.placeholder, placeholderTextColor = props.placeholderTextColor,
|
|
36
|
+
var after = props.after, appearance = props.appearance, before = props.before, className = props.className, dataTour = props.dataTour, iconAfter = props.iconAfter, iconAfterFill = props.iconAfterFill, iconAfterSize = props.iconAfterSize, iconAfterSrc = props.iconAfterSrc, iconBefore = props.iconBefore, iconBeforeFill = props.iconBeforeFill, iconBeforeSize = props.iconBeforeSize, iconBeforeSrc = props.iconBeforeSrc, iconClear = props.iconClear, iconClearFill = props.iconClearFill, iconClearSize = props.iconClearSize, iconClearSrc = props.iconClearSrc, placeholder = props.placeholder, placeholderTextColor = props.placeholderTextColor, _a = props.placeholderTextSize, placeholderTextSize = _a === void 0 ? 'm' : _a, placeholderTextStyle = props.placeholderTextStyle, placeholderTextWeight = props.placeholderTextWeight, _b = props.size, size = _b === void 0 ? 'normal' : _b, type = props.type, value = props.value, onChange = props.onChange, onClickClean = props.onClickClean, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
|
|
38
37
|
var onChangeSearchInput = useCallback(function (event) {
|
|
39
38
|
onChange && onChange(event.target.value);
|
|
40
39
|
}, [onChange]);
|
|
@@ -112,11 +111,11 @@ var SearchInput = React.forwardRef(function SearchInput(props, ref) {
|
|
|
112
111
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.borderHover) &&
|
|
113
112
|
"border-color_hover_".concat(appearanceConfig.borderHover)
|
|
114
113
|
.replace(/([A-Z])/g, '-$1')
|
|
115
|
-
.toLowerCase()), borderWidthClass, borderTypeClass, size && "search-input_size_".concat(size), type && "search-input_type_".concat(type)), "data-tour": dataTour, style: searchInputStyles, children: [before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "search-input__icon search-input__icon-before", iconFill: iconBeforeFill, imageSrc: iconBeforeSrc, size: iconBeforeSize, SvgImage: iconBefore })), jsxs("div", { className: clsx('search-input__wrapper', inputFillClass, inputShapeClass), children: [jsx("input", { className: clsx('search-input__value', (inputTextSizeClass ||
|
|
114
|
+
.toLowerCase()), borderWidthClass, borderTypeClass, size && "search-input_size_".concat(size), type && "search-input_type_".concat(type)), "data-tour": dataTour, style: searchInputStyles, children: [before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "search-input__icon search-input__icon-before", iconFill: iconBeforeFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconBeforeFill), imageSrc: iconBeforeSrc || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconBeforeSrc), size: iconBeforeSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconBeforeSize), SvgImage: iconBefore || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconBefore) })), jsxs("div", { className: clsx('search-input__wrapper', inputFillClass, inputShapeClass), children: [jsx("input", { className: clsx('search-input__value', (inputTextSizeClass ||
|
|
116
115
|
inputWeightClass ||
|
|
117
116
|
inputTextColorClass ||
|
|
118
117
|
inputTextStyleClass) &&
|
|
119
|
-
'text', inputTextSizeClass, inputWeightClass, inputTextColorClass, inputTextStyleClass), ref: ref, required: true, type: "text", value: value, onChange: onChangeSearchInput, onFocus: onFocus, onKeyDown: onKeyDown }), jsx("div", { className: "search-input__placeholder", children: jsx(Text, { className: clsx('search-input__placeholder-value'), size: placeholderTextSize, textColor: placeholderTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.placeholderTextColor), textStyle: placeholderTextStyle, textWeight: placeholderTextWeight, children: placeholder || 'Search' }) }), value && (jsx(Icon, { className: clsx('search-input__clear', 'cursor_type_pointer'), iconFill: iconClearFill, imageSrc: iconClearSrc, size: iconClearSize, SvgImage: iconClear, onClick: onClickClearIcon }))] }), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "search-input__icon search-input__icon-after", iconFill: iconAfterFill, imageSrc: iconAfterSrc, size: iconAfterSize, SvgImage: iconAfter })), after] }));
|
|
118
|
+
'text', inputTextSizeClass, inputWeightClass, inputTextColorClass, inputTextStyleClass), ref: ref, required: true, type: "text", value: value, onChange: onChangeSearchInput, onFocus: onFocus, onKeyDown: onKeyDown }), jsx("div", { className: "search-input__placeholder", children: jsx(Text, { className: clsx('search-input__placeholder-value'), size: placeholderTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.placeholderTextSize), textColor: placeholderTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.placeholderTextColor), textStyle: placeholderTextStyle, textWeight: placeholderTextWeight, children: placeholder || 'Search' }) }), value && (jsx(Icon, { className: clsx('search-input__clear', 'cursor_type_pointer'), iconFill: iconClearFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconClearFill), imageSrc: iconClearSrc || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconClearSrc), size: iconClearSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconClearSize), SvgImage: iconClear || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconClear), onClick: onClickClearIcon }))] }), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "search-input__icon search-input__icon-after", iconFill: iconAfterFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconAfterFill), imageSrc: iconAfterSrc || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconAfterSrc), size: iconAfterSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconAfterSize), SvgImage: iconAfter || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconAfter) })), after] }));
|
|
120
119
|
});
|
|
121
120
|
// @ts-expect-error
|
|
122
121
|
SearchInput.DEFAULT_REF_STATE = {
|
|
@@ -124,8 +123,6 @@ SearchInput.DEFAULT_REF_STATE = {
|
|
|
124
123
|
};
|
|
125
124
|
SearchInput.defaultProps = {
|
|
126
125
|
inputTextSize: 'm',
|
|
127
|
-
placeholderTextSize: 'm',
|
|
128
|
-
size: 'normal',
|
|
129
126
|
};
|
|
130
127
|
|
|
131
128
|
var SearchResult = React.forwardRef(function SearchResult(props, ref) {
|
|
@@ -3,11 +3,10 @@ import React, { useRef, useMemo, createRef, useCallback, useEffect } from 'react
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { segmentedAppearance } from '../appearance/Segmented.js';
|
|
5
5
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
|
-
import { T as Text } from '../Text-
|
|
6
|
+
import { T as Text } from '../Text-DlSG_p4u.js';
|
|
7
7
|
import 'lodash/castArray';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
10
|
import '../hooks/useMediaQueries.js';
|
|
12
11
|
import 'react-responsive';
|
|
13
12
|
import '../appearance/Text.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { selectAppearance } from '../appearance/Select.js';
|
|
2
|
-
import {
|
|
2
|
+
import { _ as __assign } from '../tslib.es6-5FtW-kfi.js';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import Select, { components } from 'react-select';
|
|
5
|
-
import { I as Icon } from '../Icon-
|
|
5
|
+
import { I as Icon } from '../Icon-B7BJo5kW.js';
|
|
6
6
|
import React, { useMemo, useRef, useCallback, useEffect } from 'react';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import CreatableSelect from 'react-select/creatable';
|
|
9
9
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
10
|
-
import { T as Text } from '../Text-
|
|
11
|
-
import { B as Badge } from '../Badge-
|
|
10
|
+
import { T as Text } from '../Text-DlSG_p4u.js';
|
|
11
|
+
import { B as Badge } from '../Badge-DQnTpE4I.js';
|
|
12
12
|
import { G as Group } from '../Group-Dc70Z4_7.js';
|
|
13
|
-
import { D as Divider } from '../Divider-
|
|
13
|
+
import { D as Divider } from '../Divider-DE2Q5J36.js';
|
|
14
14
|
import 'react-inlinesvg';
|
|
15
15
|
import '../appearance/Icon.js';
|
|
16
16
|
import '../hooks/useStyles.js';
|
|
@@ -18,19 +18,19 @@ import 'lodash/camelCase';
|
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import 'lodash/upperFirst';
|
|
20
20
|
import '../context/UIContext.js';
|
|
21
|
-
import 'prop-types';
|
|
22
21
|
import '../hooks/useMediaQueries.js';
|
|
23
22
|
import 'react-responsive';
|
|
24
23
|
import '../hooks/styleAttributes.js';
|
|
25
|
-
import '../Link-
|
|
26
|
-
import '../Tooltip-
|
|
24
|
+
import '../Link-CeQuavin.js';
|
|
25
|
+
import '../Tooltip-f5EWhsGj.js';
|
|
27
26
|
import '../appearance/Tooltip.js';
|
|
28
|
-
import '../Title-
|
|
27
|
+
import '../Title-mkus84Rh.js';
|
|
29
28
|
import '../appearance/Title.js';
|
|
30
29
|
import 'lodash/castArray';
|
|
31
30
|
import '../appearance/Text.js';
|
|
32
31
|
import '../appearance/Badge.js';
|
|
33
32
|
import '../appearance/Group.js';
|
|
33
|
+
import '../appearance/Divider.js';
|
|
34
34
|
|
|
35
35
|
// interface ClearIndicatorProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>>
|
|
36
36
|
// extends DefaultClearIndicatorProps<Option, IsMulti, Group> {}
|
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
+
import { siteMenuAppearance } from '../appearance/SiteMenu.js';
|
|
4
5
|
import { useSiteMenuContext } from '../context/UIContext.js';
|
|
5
6
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
|
-
import { I as Icon } from '../Icon-
|
|
7
|
-
import { T as Text } from '../Text-
|
|
8
|
-
import 'prop-types';
|
|
7
|
+
import { I as Icon } from '../Icon-B7BJo5kW.js';
|
|
8
|
+
import { T as Text } from '../Text-DlSG_p4u.js';
|
|
9
9
|
import '../hooks/useMediaQueries.js';
|
|
10
10
|
import 'react-responsive';
|
|
11
11
|
import 'lodash/castArray';
|
|
12
12
|
import 'lodash/camelCase';
|
|
13
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
13
14
|
import 'react-inlinesvg';
|
|
14
15
|
import '../appearance/Icon.js';
|
|
15
16
|
import '../hooks/useStyles.js';
|
|
16
17
|
import 'lodash/maxBy';
|
|
17
18
|
import 'lodash/upperFirst';
|
|
18
19
|
import '../hooks/styleAttributes.js';
|
|
19
|
-
import '../Link-
|
|
20
|
-
import '../
|
|
21
|
-
import '../Tooltip-ccRCMYQM.js';
|
|
20
|
+
import '../Link-CeQuavin.js';
|
|
21
|
+
import '../Tooltip-f5EWhsGj.js';
|
|
22
22
|
import '../appearance/Tooltip.js';
|
|
23
|
-
import '../Title-
|
|
23
|
+
import '../Title-mkus84Rh.js';
|
|
24
24
|
import '../appearance/Title.js';
|
|
25
25
|
import '../appearance/Text.js';
|
|
26
26
|
|
|
27
|
+
var siteMenuConfig = {
|
|
28
|
+
appearance: siteMenuAppearance,
|
|
29
|
+
setAppearance: function (newComponent) {
|
|
30
|
+
siteMenuConfig.appearance = newComponent;
|
|
31
|
+
},
|
|
32
|
+
};
|
|
27
33
|
function SiteMenu(props) {
|
|
28
|
-
var children = props.children,
|
|
34
|
+
var children = props.children, appearance = props.appearance, className = props.className, closeText = props.closeText, closeTextColor = props.closeTextColor, closeTextColorHover = props.closeTextColorHover, closeTextSize = props.closeTextSize, iconClose = props.iconClose, iconCloseBgFill = props.iconCloseBgFill, iconCloseFill = props.iconCloseFill, iconCloseSize = props.iconCloseSize, onClose = props.onClose;
|
|
29
35
|
var _a = useSiteMenuContext(), isSiteMenuOpen = _a.isSiteMenuOpen, setIsSiteMenuOpen = _a.setIsSiteMenuOpen;
|
|
30
36
|
var onClickClose = useCallback(
|
|
31
37
|
// @ts-expect-error
|
|
@@ -55,7 +61,10 @@ function SiteMenu(props) {
|
|
|
55
61
|
// behavior: 'smooth',
|
|
56
62
|
// })
|
|
57
63
|
// }, [])
|
|
58
|
-
|
|
64
|
+
var appearanceConfig = appearance && siteMenuConfig.appearance && siteMenuConfig.appearance[appearance];
|
|
65
|
+
return (jsx("div", { className: clsx(className, 'site-menu', fillClass ||
|
|
66
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
67
|
+
"fill_".concat(appearanceConfig.fill).replace(/([A-Z])/g, '-$1').toLowerCase()), 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),
|
|
59
68
|
// @ts-expect-error
|
|
60
69
|
onClick: onClickClose, children: closeText })) }), jsx("div", { className: "site-menu__items", children: children })] }) }));
|
|
61
70
|
}
|
|
@@ -73,4 +82,4 @@ function SiteMenuButton(props) {
|
|
|
73
82
|
return (jsx("div", { className: clsx(className, 'site-menu__button'), onClick: onClickButton, children: children || text }));
|
|
74
83
|
}
|
|
75
84
|
|
|
76
|
-
export { SiteMenu, SiteMenuButton };
|
|
85
|
+
export { SiteMenu, SiteMenuButton, siteMenuConfig };
|
|
@@ -4,11 +4,10 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
|
|
5
5
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles.js';
|
|
7
|
-
import { T as Title } from '../Title-
|
|
7
|
+
import { T as Title } from '../Title-mkus84Rh.js';
|
|
8
8
|
import 'lodash/castArray';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import '../context/UIContext.js';
|
|
11
|
-
import 'prop-types';
|
|
12
11
|
import '../hooks/useMediaQueries.js';
|
|
13
12
|
import 'react-responsive';
|
|
14
13
|
import 'lodash/maxBy';
|
|
@@ -17,11 +16,11 @@ import '../hooks/styleAttributes.js';
|
|
|
17
16
|
import '../appearance/Title.js';
|
|
18
17
|
|
|
19
18
|
function Swiper(props) {
|
|
20
|
-
var
|
|
21
|
-
freeMode = props.freeMode,
|
|
19
|
+
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
|
+
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;
|
|
22
21
|
var swiperRef = useRef(null);
|
|
23
|
-
var
|
|
24
|
-
var
|
|
22
|
+
var _c = useSwiperRef(), nextEl = _c[0], nextRef = _c[1];
|
|
23
|
+
var _d = useSwiperRef(), prevEl = _d[0], prevRef = _d[1];
|
|
25
24
|
var isLoop = loop !== null && loop !== void 0 ? loop : true;
|
|
26
25
|
// @ts-expect-error
|
|
27
26
|
useImperativeHandle(forwardedRef, function () { return swiperRef.current; }, []);
|
|
@@ -71,11 +70,10 @@ function Swiper(props) {
|
|
|
71
70
|
});
|
|
72
71
|
// @ts-expect-error
|
|
73
72
|
var style = useStyles(props).styles;
|
|
74
|
-
return (jsxs("div", { className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass, shapeClass, className, set && "swiper-block_set_".concat(set)),
|
|
73
|
+
return (jsxs("div", { className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass, 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 ||
|
|
75
74
|
(items === null || items === void 0 ? void 0 : items.map(function (item, i) { return (jsx(SwiperSlide, { className: clsx('swiper-block__item', swiperSlideClass, alignDirectionClass, alignClass), children: item }, "swiper-slide_".concat(i))); })) })] }));
|
|
76
75
|
}
|
|
77
76
|
Swiper.defaultProps = {
|
|
78
|
-
activeSlideIndex: 0,
|
|
79
77
|
disabledButtonClass: 'swiper-button-disabled',
|
|
80
78
|
};
|
|
81
79
|
// https://github.com/nolimits4web/swiper/issues/3855#issuecomment-1050694342
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
+
import { switchAppearance } from '../appearance/Switch.js';
|
|
4
5
|
|
|
6
|
+
var switchConfig = {
|
|
7
|
+
appearance: switchAppearance,
|
|
8
|
+
setAppearance: function (newComponent) {
|
|
9
|
+
switchConfig.appearance = newComponent;
|
|
10
|
+
},
|
|
11
|
+
};
|
|
5
12
|
var Switch = React.forwardRef(function Switch(props, ref) {
|
|
6
|
-
var
|
|
7
|
-
|
|
13
|
+
var id = props.id, appearance = props.appearance, checked = props.checked, className = props.className, disabled = props.disabled, set = props.set, size = props.size, onChange = props.onChange;
|
|
14
|
+
appearance && switchConfig.appearance && switchConfig.appearance[appearance];
|
|
15
|
+
return (jsxs("div", { className: clsx('switch', className, size && "switch_size_".concat(size), set && "switch_set_".concat(set)), children: [jsx("input", { className: "switch__checkbox",
|
|
8
16
|
// @ts-expect-error
|
|
9
|
-
ref: ref, type: "checkbox", onChange: onChange }), jsx("div", { className: "switch__bg", children: "\u00A0" }), jsx("div", { className: "switch__toggle", children: "\u00A0" })] }));
|
|
17
|
+
ref: ref, checked: checked, disabled: disabled, id: id, type: "checkbox", onChange: onChange }), jsx("div", { className: "switch__bg", children: "\u00A0" }), jsx("div", { className: "switch__toggle", children: "\u00A0" })] }));
|
|
10
18
|
});
|
|
11
19
|
|
|
12
|
-
export { Switch };
|
|
20
|
+
export { Switch, switchConfig };
|
package/dist/components/Tab.js
CHANGED
|
@@ -4,21 +4,21 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { tabAppearance } from '../appearance/Tab.js';
|
|
5
5
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles.js';
|
|
7
|
-
import { B as Badge } from '../Badge-
|
|
8
|
-
import { D as Divider } from '../Divider-
|
|
9
|
-
import { L as Link } from '../Link-
|
|
10
|
-
import { T as Text } from '../Text-
|
|
7
|
+
import { B as Badge } from '../Badge-DQnTpE4I.js';
|
|
8
|
+
import { D as Divider } from '../Divider-DE2Q5J36.js';
|
|
9
|
+
import { L as Link } from '../Link-CeQuavin.js';
|
|
10
|
+
import { T as Text } from '../Text-DlSG_p4u.js';
|
|
11
11
|
import 'lodash/castArray';
|
|
12
12
|
import 'lodash/camelCase';
|
|
13
13
|
import '../context/UIContext.js';
|
|
14
|
-
import 'prop-types';
|
|
15
14
|
import '../hooks/useMediaQueries.js';
|
|
16
15
|
import 'react-responsive';
|
|
17
16
|
import 'lodash/maxBy';
|
|
18
17
|
import 'lodash/upperFirst';
|
|
19
18
|
import '../hooks/styleAttributes.js';
|
|
20
19
|
import '../appearance/Badge.js';
|
|
21
|
-
import '../
|
|
20
|
+
import '../appearance/Divider.js';
|
|
21
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
22
22
|
import '../appearance/Text.js';
|
|
23
23
|
|
|
24
24
|
var tabConfig = {
|
package/dist/components/Text.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Text, t as textConfig } from '../Text-
|
|
1
|
+
export { T as Text, t as textConfig } from '../Text-DlSG_p4u.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../appearance/Text.js';
|
|
@@ -7,7 +7,6 @@ import 'react';
|
|
|
7
7
|
import 'lodash/castArray';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
10
|
import '../hooks/useMediaQueries.js';
|
|
12
11
|
import 'react-responsive';
|
|
13
12
|
import '../hooks/useStyles.js';
|
package/dist/components/Tile.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
+
import { tileAppearance } from '../appearance/Tile.js';
|
|
3
4
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
4
5
|
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-
|
|
6
|
+
import { B as Badge } from '../Badge-DQnTpE4I.js';
|
|
7
|
+
import { T as Text } from '../Text-DlSG_p4u.js';
|
|
8
|
+
import { T as Title } from '../Title-mkus84Rh.js';
|
|
8
9
|
import 'react';
|
|
9
10
|
import 'lodash/castArray';
|
|
10
11
|
import 'lodash/camelCase';
|
|
11
12
|
import '../context/UIContext.js';
|
|
12
|
-
import 'prop-types';
|
|
13
13
|
import '../hooks/useMediaQueries.js';
|
|
14
14
|
import 'react-responsive';
|
|
15
15
|
import 'lodash/maxBy';
|
|
@@ -19,8 +19,14 @@ import '../appearance/Badge.js';
|
|
|
19
19
|
import '../appearance/Text.js';
|
|
20
20
|
import '../appearance/Title.js';
|
|
21
21
|
|
|
22
|
+
var tileConfig = {
|
|
23
|
+
appearance: tileAppearance,
|
|
24
|
+
setAppearance: function (newComponent) {
|
|
25
|
+
tileConfig.appearance = newComponent;
|
|
26
|
+
},
|
|
27
|
+
};
|
|
22
28
|
function Tile(props) {
|
|
23
|
-
var children = props.children, direction = props.direction, after = props.after, badge = props.badge, badgeAppearance = props.badgeAppearance, badgeSize = props.badgeSize, badgeTextColor = props.badgeTextColor, badgeTextSize = props.badgeTextSize, before = props.before, className = props.className, reverse = props.reverse, size = props.size, text = props.text, textColor = props.textColor, textSize = props.textSize, textWrap = props.textWrap, title = props.title, titleTextAlign = props.titleTextAlign, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, titleTextWrap = props.titleTextWrap, type = props.type, onClick = props.onClick;
|
|
29
|
+
var children = props.children, direction = props.direction, after = props.after, appearance = props.appearance, badge = props.badge, badgeAppearance = props.badgeAppearance, badgeSize = props.badgeSize, badgeTextColor = props.badgeTextColor, badgeTextSize = props.badgeTextSize, before = props.before, className = props.className, reverse = props.reverse, size = props.size, text = props.text, textColor = props.textColor, textSize = props.textSize, textWrap = props.textWrap, title = props.title, titleTextAlign = props.titleTextAlign, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, titleTextWrap = props.titleTextWrap, type = props.type, onClick = props.onClick;
|
|
24
30
|
var fillClass = useDeviceTargetClass(props, {
|
|
25
31
|
prefix: 'fill_',
|
|
26
32
|
propsKey: 'fill',
|
|
@@ -55,11 +61,20 @@ function Tile(props) {
|
|
|
55
61
|
});
|
|
56
62
|
// @ts-expect-error
|
|
57
63
|
var tileStyles = useStyles(props).styles;
|
|
58
|
-
|
|
64
|
+
var appearanceConfig = appearance && tileConfig.appearance && tileConfig.appearance[appearance];
|
|
65
|
+
return (jsx("div", { className: clsx('tile', className, fillClass ||
|
|
66
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
67
|
+
"fill_".concat(appearanceConfig.fill).replace(/([A-Z])/g, '-$1').toLowerCase()), shapeClass ||
|
|
68
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.shape) &&
|
|
69
|
+
"tile_shape_".concat(appearanceConfig.shape).replace(/([A-Z])/g, '-$1').toLowerCase()), alignClass, alignDirectionClass, direction && "direction_".concat(direction), borderColorClass ||
|
|
70
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.borderColor) &&
|
|
71
|
+
"border-color_".concat(appearanceConfig.borderColor)
|
|
72
|
+
.replace(/([A-Z])/g, '-$1')
|
|
73
|
+
.toLowerCase()), borderColorHoverClass, borderWidthClass, 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] }) }));
|
|
59
74
|
}
|
|
60
75
|
Tile.defaultProps = {
|
|
61
76
|
alignDirection: 'vertical',
|
|
62
77
|
textTag: 'span',
|
|
63
78
|
};
|
|
64
79
|
|
|
65
|
-
export { Tile };
|
|
80
|
+
export { Tile, tileConfig };
|
package/dist/components/Title.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export { T as Title, t as titleConfig } from '../Title-
|
|
1
|
+
export { T as Title, t as titleConfig } from '../Title-mkus84Rh.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
5
5
|
import '../appearance/Title.js';
|
|
6
6
|
import '../context/UIContext.js';
|
|
7
|
-
import 'prop-types';
|
|
8
7
|
import '../hooks/useMediaQueries.js';
|
|
9
8
|
import 'react-responsive';
|
|
10
9
|
import '../hooks/useDeviceTargetClass.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Tooltip, t as tooltipConfig } from '../Tooltip-
|
|
1
|
+
export { T as Tooltip, t as tooltipConfig } from '../Tooltip-f5EWhsGj.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -7,14 +7,13 @@ import '../hooks/useDeviceTargetClass.js';
|
|
|
7
7
|
import 'lodash/castArray';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
10
|
import '../hooks/useMediaQueries.js';
|
|
12
11
|
import 'react-responsive';
|
|
13
12
|
import '../hooks/useStyles.js';
|
|
14
13
|
import 'lodash/maxBy';
|
|
15
14
|
import 'lodash/upperFirst';
|
|
16
15
|
import '../hooks/styleAttributes.js';
|
|
17
|
-
import '../Text-
|
|
16
|
+
import '../Text-DlSG_p4u.js';
|
|
18
17
|
import '../appearance/Text.js';
|
|
19
|
-
import '../Title-
|
|
18
|
+
import '../Title-mkus84Rh.js';
|
|
20
19
|
import '../appearance/Title.js';
|
package/dist/components/Video.js
CHANGED
|
@@ -6,7 +6,6 @@ import 'react';
|
|
|
6
6
|
import 'lodash/castArray';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import '../context/UIContext.js';
|
|
9
|
-
import 'prop-types';
|
|
10
9
|
import '../hooks/useMediaQueries.js';
|
|
11
10
|
import 'react-responsive';
|
|
12
11
|
import 'lodash/maxBy';
|
|
@@ -14,7 +13,7 @@ import 'lodash/upperFirst';
|
|
|
14
13
|
import '../hooks/styleAttributes.js';
|
|
15
14
|
|
|
16
15
|
function Wrapper(props) {
|
|
17
|
-
var
|
|
16
|
+
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
17
|
var alignDirectionClass = useDeviceTargetClass(props, {
|
|
19
18
|
prefix: 'align_',
|
|
20
19
|
propsKey: 'alignDirection',
|
|
@@ -44,12 +43,8 @@ function Wrapper(props) {
|
|
|
44
43
|
propsKey: 'wrapperPosition',
|
|
45
44
|
});
|
|
46
45
|
// @ts-expect-error
|
|
47
|
-
var
|
|
48
|
-
return (jsx(Tag, {
|
|
46
|
+
var _c = useStyles(props), innerStyles = _c.inner, wrapperStyles = _c.styles;
|
|
47
|
+
return (jsx(Tag, { className: clsx(className, type && "".concat(className, "_type_").concat(type), fillClass, resizeHorizontalClass, resizeVerticalClass, positionClass), id: id, style: wrapperStyles, children: jsxs("div", { className: clsx("".concat(className, "__inner"), alignDirectionClass, alignClass, wrapperPositionClass), style: innerStyles, children: [before, children, after] }) }));
|
|
49
48
|
}
|
|
50
|
-
Wrapper.defaultProps = {
|
|
51
|
-
className: 'wrapper',
|
|
52
|
-
tag: 'div',
|
|
53
|
-
};
|
|
54
49
|
|
|
55
50
|
export { Wrapper };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { b as __spreadArray } from '../tslib.es6-
|
|
2
|
+
import { b as __spreadArray } from '../tslib.es6-5FtW-kfi.js';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { createContext, useState, useCallback, useMemo, useEffect, useContext } from 'react';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
5
|
import { v4 } from 'uuid';
|
|
7
6
|
|
|
8
7
|
var STATUSES = {
|
|
@@ -92,10 +91,6 @@ function NotificationsProvider(props) {
|
|
|
92
91
|
}, []);
|
|
93
92
|
return (jsx(NotificationsAPIContext.Provider, { value: notificationsAPI, children: jsx(NotificationsContext.Provider, { value: notificationsList, children: children }) }));
|
|
94
93
|
}
|
|
95
|
-
NotificationsProvider.propTypes = {
|
|
96
|
-
children: PropTypes.any,
|
|
97
|
-
initialNotificationsList: PropTypes.array,
|
|
98
|
-
};
|
|
99
94
|
function useNotifications() {
|
|
100
95
|
return useContext(NotificationsContext);
|
|
101
96
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { createContext, memo, useState, useMemo, useContext } from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
4
|
import { useMediaQueries } from '../hooks/useMediaQueries.js';
|
|
6
5
|
import 'react-responsive';
|
|
7
6
|
|
|
@@ -27,13 +26,5 @@ var UIProvider = memo(function UIProvider(props) {
|
|
|
27
26
|
var mediaQueriesDevices = useMediaQueries(userDeviceState);
|
|
28
27
|
return (jsx(UserDeviceContext.Provider, { value: mediaQueriesDevices, children: jsx(SiteMenuContext.Provider, { value: siteMenuContextState, children: children }) }));
|
|
29
28
|
});
|
|
30
|
-
UIProvider.propTypes = {
|
|
31
|
-
children: PropTypes.any,
|
|
32
|
-
userDeviceState: PropTypes.shape({
|
|
33
|
-
isMobile: PropTypes.bool,
|
|
34
|
-
isTablet: PropTypes.bool,
|
|
35
|
-
isDesktop: PropTypes.bool,
|
|
36
|
-
}),
|
|
37
|
-
};
|
|
38
29
|
|
|
39
30
|
export { UIProvider, useSiteMenuContext, useUserDeviceContext };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.modal-sheet-bottom {
|
|
2
|
+
&__container {
|
|
3
|
+
background-color: var(
|
|
4
|
+
--modal-sheet-bottom-container-background,
|
|
5
|
+
var(--color-surface-primary)
|
|
6
|
+
) !important;
|
|
7
|
+
border-radius: var(--modal-sheet-bottom-container-border-radius, 8px 8px 0 0) !important;
|
|
8
|
+
}
|
|
9
|
+
&__header {
|
|
10
|
+
& .react-modal-sheet-header {
|
|
11
|
+
max-height: 32px;
|
|
12
|
+
}
|
|
13
|
+
& .react-modal-sheet-drag-indicator {
|
|
14
|
+
background-color: var(
|
|
15
|
+
--modal-sheet-bottom-header-grabber,
|
|
16
|
+
var(--color-surface-item-primary)
|
|
17
|
+
) !important;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
&__content {
|
|
21
|
+
margin: 0 0 32px 0;
|
|
22
|
+
}
|
|
23
|
+
&__backdrop {
|
|
24
|
+
background-color: var(
|
|
25
|
+
--modal-sheet-bottom-backdrop,
|
|
26
|
+
var(--color-surface-inverse-50)
|
|
27
|
+
) !important;
|
|
28
|
+
}
|
|
29
|
+
}
|
package/dist/hooks/useStyles.js
CHANGED
|
@@ -5,7 +5,6 @@ import upperFirst from 'lodash/upperFirst';
|
|
|
5
5
|
import { useUserDeviceContext } from '../context/UIContext.js';
|
|
6
6
|
import styleAttributes from './styleAttributes.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
|
-
import 'prop-types';
|
|
9
8
|
import './useMediaQueries.js';
|
|
10
9
|
import 'react-responsive';
|
|
11
10
|
|