@itcase/ui 1.8.13 → 1.8.16
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/{Button_cjs_Bb9svkwu.js → Button_cjs_Czh0zo65.js} +20 -39
- package/dist/{Button_es_Cd4sw9Q5.js → Button_es_Da8cwzG-.js} +20 -39
- package/dist/ChipsGroup_cjs_CfK5zCBr.js +164 -0
- package/dist/ChipsGroup_es_CXuhBhjd.js +159 -0
- package/dist/DatePicker_cjs_44YPU94X.js +201 -0
- package/dist/DatePicker_es_VS_nZkhp.js +197 -0
- package/dist/Divider_cjs_DzFVtGkF.js +155 -0
- package/dist/Divider_es_BdU9qjKa.js +151 -0
- package/dist/{DropdownItem_cjs_TdJHpFgg.js → DropdownItem_cjs_DW0UXopm.js} +67 -3
- package/dist/{DropdownItem_es_CdYP5BQN.js → DropdownItem_es_vuNthDPa.js} +67 -3
- package/dist/{Label_cjs_CbcENlSZ.js → Label_cjs_B7v_dYKf.js} +29 -30
- package/dist/{Label_es_BCpDqP3q.js → Label_es_DdVH9Rr8.js} +29 -30
- package/dist/{Loader_cjs_D753D3li.js → Loader_cjs_DZbIy6Ko.js} +1 -1
- package/dist/{Loader_es_BE4nyzXi.js → Loader_es_SHdP0IkA.js} +1 -1
- package/dist/Overlay_cjs_BdAm_zrO.js +229 -0
- package/dist/Overlay_es_cI_-_xUO.js +225 -0
- package/dist/{Text_cjs_D4xG0cKD.js → Text_cjs_iL1l_7V1.js} +31 -5
- package/dist/{Text_es_FJGduy7Z.js → Text_es_D012qJ8s.js} +31 -5
- package/dist/Tooltip_cjs_BGBe4m0s.js +676 -0
- package/dist/Tooltip_es_DZX2n-4A.js +663 -0
- package/dist/cjs/components/Accordion.js +105 -12
- package/dist/cjs/components/Avatar.js +208 -10
- package/dist/cjs/components/Badge.js +6 -9
- package/dist/cjs/components/Breadcrumbs.js +205 -25
- package/dist/cjs/components/Button.js +5 -7
- package/dist/cjs/components/Cell.js +202 -8
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/Chips.js +13 -132
- package/dist/cjs/components/Choice.js +5 -7
- package/dist/cjs/components/Code.js +116 -3
- package/dist/cjs/components/CookiesWarning.js +8 -10
- package/dist/cjs/components/DatePeriod.js +65 -0
- package/dist/cjs/components/DatePicker.js +20 -197
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/HeroTitle.js +26 -3
- package/dist/cjs/components/Icon.js +6 -8
- package/dist/cjs/components/InputPassword.js +4 -6
- package/dist/cjs/components/Label.js +5 -4
- package/dist/cjs/components/List.js +209 -3
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/MenuItem.js +139 -6
- package/dist/cjs/components/Modal.js +7 -5
- package/dist/cjs/components/Notification.js +104 -27
- package/dist/cjs/components/Overlay.js +1 -1
- package/dist/cjs/components/Pagination.js +7 -9
- package/dist/cjs/components/Panel.js +1 -1
- package/dist/cjs/components/Radio.js +1 -1
- package/dist/cjs/components/Response.js +4 -6
- package/dist/cjs/components/Search.js +4 -6
- package/dist/cjs/components/Segmented.js +102 -10
- package/dist/cjs/components/Select.js +8 -11
- package/dist/cjs/components/Swiper.js +5 -2
- package/dist/cjs/components/Switch.js +1 -1
- package/dist/cjs/components/Tab.js +4 -7
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +3 -6
- package/dist/cjs/components/Title.js +7 -4
- package/dist/cjs/components/Tooltip.js +4 -3
- package/dist/components/Accordion.js +105 -11
- package/dist/components/Avatar.js +208 -10
- package/dist/components/Badge.js +3 -6
- package/dist/components/Breadcrumbs.js +206 -27
- package/dist/components/Button.js +5 -7
- package/dist/components/Cell.js +201 -7
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Chips.js +9 -133
- package/dist/components/Choice.js +3 -5
- package/dist/components/Code.js +116 -3
- package/dist/components/CookiesWarning.js +8 -10
- package/dist/components/DatePeriod.js +61 -0
- package/dist/components/DatePicker.js +17 -198
- package/dist/components/Divider.js +1 -1
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/HeroTitle.js +26 -3
- package/dist/components/Icon.js +3 -5
- package/dist/components/InputPassword.js +3 -5
- package/dist/components/Label.js +5 -4
- package/dist/components/List.js +209 -3
- package/dist/components/Loader.js +2 -2
- package/dist/components/MenuItem.js +139 -6
- package/dist/components/Modal.js +6 -4
- package/dist/components/Notification.js +104 -27
- package/dist/components/Overlay.js +1 -1
- package/dist/components/Pagination.js +4 -6
- package/dist/components/Panel.js +1 -1
- package/dist/components/Radio.js +1 -1
- package/dist/components/Response.js +4 -6
- package/dist/components/Search.js +2 -4
- package/dist/components/Segmented.js +102 -10
- package/dist/components/Select.js +4 -7
- package/dist/components/Swiper.js +4 -1
- package/dist/components/Switch.js +1 -1
- package/dist/components/Tab.js +3 -6
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +2 -5
- package/dist/components/Title.js +4 -1
- package/dist/components/Tooltip.js +4 -3
- package/dist/css/components/Badge/Badge.css +4 -4
- package/dist/css/components/Chips/Chips.css +10 -6
- package/dist/css/components/DatePeriod/DatePeriod.css +105 -0
- package/dist/css/components/Group/Group.css +3 -0
- package/dist/css/components/Icon/Icon.css +73 -22
- package/dist/css/components/Segmented/Segmented.css +3 -6
- package/dist/css/components/Title/Title.css +11 -5
- package/dist/css/styles/fill/fill.css +1 -1
- package/dist/css/styles/text-color/text-color.css +2 -1
- package/dist/stories/BreadcrumbsItem.mdx +1 -1
- package/dist/stories/Plsyground.mdx +1 -3
- package/dist/stories/Text.mdx +1 -1
- package/dist/types/components/Accordion/Accordion.appearance.d.ts +1 -2
- package/dist/types/components/Accordion/appearance/accordionSize.d.ts +59 -0
- package/dist/types/components/Accordion/appearance/accordionStyle.d.ts +16 -0
- package/dist/types/components/Accordion/appearance/accordionSurface.d.ts +26 -0
- package/dist/types/components/Accordion/index.d.ts +2 -2
- package/dist/types/components/Avatar/appearance/avatarAccent.d.ts +19 -0
- package/dist/types/components/Avatar/appearance/avatarDanger.d.ts +7 -0
- package/dist/types/components/Avatar/appearance/avatarError.d.ts +9 -0
- package/dist/types/components/Avatar/appearance/avatarInfo.d.ts +17 -0
- package/dist/types/components/Avatar/appearance/avatarPrimary.d.ts +8 -0
- package/dist/types/components/Avatar/appearance/avatarSecondary.d.ts +8 -0
- package/dist/types/components/Avatar/appearance/avatarSize.d.ts +75 -0
- package/dist/types/components/Avatar/appearance/avatarStyle.d.ts +16 -0
- package/dist/types/components/Avatar/appearance/avatarSuccess.d.ts +9 -0
- package/dist/types/components/Avatar/appearance/avatarSurface.d.ts +25 -0
- package/dist/types/components/Avatar/appearance/avatarWarning.d.ts +9 -0
- package/dist/types/components/Badge/appearance/badgeAccent.d.ts +7 -0
- package/dist/types/components/Badge/appearance/badgeSurface.d.ts +0 -4
- package/dist/types/components/Breadcrumbs/Breadcrumbs.appearance.d.ts +2 -0
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +3 -2
- package/dist/types/components/Breadcrumbs/Breadcrumbs.interface.d.ts +22 -1
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsAccent.d.ts +19 -0
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsDanger.d.ts +7 -0
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsError.d.ts +9 -0
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsInfo.d.ts +17 -0
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsPrimary.d.ts +8 -0
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSecondary.d.ts +8 -0
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +52 -0
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsStyle.d.ts +16 -0
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSuccess.d.ts +9 -0
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +23 -0
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsWarning.d.ts +9 -0
- package/dist/types/components/Breadcrumbs/index.d.ts +1 -0
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +0 -16
- package/dist/types/components/Button/appearance/buttonStyle.d.ts +7 -7
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +6 -5
- package/dist/types/components/Cell/appearance/cellAccent.d.ts +21 -0
- package/dist/types/components/Cell/appearance/cellDanger.d.ts +7 -0
- package/dist/types/components/Cell/appearance/cellError.d.ts +11 -0
- package/dist/types/components/Cell/appearance/cellInfo.d.ts +21 -0
- package/dist/types/components/Cell/appearance/cellPrimary.d.ts +8 -0
- package/dist/types/components/Cell/appearance/cellSecondary.d.ts +8 -0
- package/dist/types/components/Cell/appearance/cellSize.d.ts +59 -0
- package/dist/types/components/Cell/appearance/cellStyle.d.ts +16 -0
- package/dist/types/components/Cell/appearance/cellSuccess.d.ts +11 -0
- package/dist/types/components/Cell/appearance/cellSurface.d.ts +25 -0
- package/dist/types/components/Cell/appearance/cellWarning.d.ts +11 -0
- package/dist/types/components/Chips/ChipsGroup.d.ts +2 -0
- package/dist/types/components/Chips/appearance/chipsSize.d.ts +4 -0
- package/dist/types/components/Chips/appearance/chipsStyle.d.ts +15 -1
- package/dist/types/components/Chips/appearance/chipsSurface.d.ts +2 -0
- package/dist/types/components/Chips/index.d.ts +1 -0
- package/dist/types/components/Code/Code.appearance.d.ts +1 -1
- package/dist/types/components/Code/appearance/codeDefault.d.ts +18 -0
- package/dist/types/components/Code/appearance/codeDisabled.d.ts +20 -0
- package/dist/types/components/Code/appearance/codeError.d.ts +11 -0
- package/dist/types/components/Code/appearance/codeRequire.d.ts +20 -0
- package/dist/types/components/Code/appearance/codeSize.d.ts +19 -0
- package/dist/types/components/Code/appearance/codeStyle.d.ts +16 -0
- package/dist/types/components/Code/appearance/codeSuccess.d.ts +11 -0
- package/dist/types/components/CookiesWarning/CookiesWarning.d.ts +1 -1
- package/dist/types/components/DatePeriod/DatePeriod.appearance.d.ts +2 -0
- package/dist/types/components/DatePeriod/DatePeriod.d.ts +4 -0
- package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +45 -0
- package/dist/types/components/DatePeriod/index.d.ts +2 -0
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +3 -0
- package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +3 -0
- package/dist/types/components/Divider/Divider.appearance.d.ts +2 -2
- package/dist/types/components/Divider/Divider.interface.d.ts +3 -3
- package/dist/types/components/Divider/appearance/dividerAccent.d.ts +21 -0
- package/dist/types/components/Divider/appearance/dividerError.d.ts +11 -0
- package/dist/types/components/Divider/appearance/dividerPrimary.d.ts +8 -0
- package/dist/types/components/Divider/appearance/dividerSecondary.d.ts +8 -0
- package/dist/types/components/Divider/appearance/dividerSize.d.ts +12 -0
- package/dist/types/components/Divider/appearance/dividerStyle.d.ts +16 -0
- package/dist/types/components/Divider/appearance/dividerSuccess.d.ts +11 -0
- package/dist/types/components/Divider/appearance/dividerSurface.d.ts +25 -0
- package/dist/types/components/Divider/appearance/dividerWarning.d.ts +11 -0
- package/dist/types/components/Dropdown/appearance/dropdownAccent.d.ts +21 -0
- package/dist/types/components/Dropdown/appearance/dropdownSize.d.ts +27 -0
- package/dist/types/components/Dropdown/appearance/dropdownStyle.d.ts +16 -0
- package/dist/types/components/HeroTitle/HeroTitle.appearance.d.ts +2 -2
- package/dist/types/components/HeroTitle/HeroTitle.interface.d.ts +8 -8
- package/dist/types/components/HeroTitle/appearance/heroTitleSize.d.ts +27 -0
- package/dist/types/components/Icon/appearance/iconAccent.d.ts +34 -0
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +11 -0
- package/dist/types/components/Icon/appearance/iconError.d.ts +11 -0
- package/dist/types/components/Icon/appearance/iconInfo.d.ts +21 -0
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +8 -0
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +8 -0
- package/dist/types/components/Icon/appearance/iconSize.d.ts +115 -0
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +16 -0
- package/dist/types/components/Icon/appearance/iconSuccess.d.ts +11 -0
- package/dist/types/components/Icon/appearance/iconSurface.d.ts +27 -0
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +11 -0
- package/dist/types/components/Label/appearance/labelDanger.d.ts +0 -2
- package/dist/types/components/Label/appearance/labelError.d.ts +6 -2
- package/dist/types/components/Label/appearance/labelGradient.d.ts +0 -2
- package/dist/types/components/Label/appearance/labelInfo.d.ts +2 -6
- package/dist/types/components/Label/appearance/labelSize.d.ts +0 -7
- package/dist/types/components/Label/appearance/labelStyle.d.ts +7 -7
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +6 -2
- package/dist/types/components/Label/appearance/labelWarning.d.ts +6 -2
- package/dist/types/components/List/List.appearance.d.ts +2 -0
- package/dist/types/components/List/List.interface.d.ts +22 -1
- package/dist/types/components/List/appearance/listAccent.d.ts +21 -0
- package/dist/types/components/List/appearance/listDanger.d.ts +7 -0
- package/dist/types/components/List/appearance/listError.d.ts +11 -0
- package/dist/types/components/List/appearance/listInfo.d.ts +21 -0
- package/dist/types/components/List/appearance/listPrimary.d.ts +8 -0
- package/dist/types/components/List/appearance/listSecondary.d.ts +8 -0
- package/dist/types/components/List/appearance/listSize.d.ts +59 -0
- package/dist/types/components/List/appearance/listStyle.d.ts +16 -0
- package/dist/types/components/List/appearance/listSuccess.d.ts +11 -0
- package/dist/types/components/List/appearance/listSurface.d.ts +25 -0
- package/dist/types/components/List/appearance/listWarning.d.ts +11 -0
- package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +21 -0
- package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +11 -0
- package/dist/types/components/MenuItem/appearance/menuItemPrimary.d.ts +8 -0
- package/dist/types/components/MenuItem/appearance/menuItemSize.d.ts +59 -0
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +16 -0
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +25 -0
- package/dist/types/components/Notification/appearance/notificationItemError.d.ts +11 -0
- package/dist/types/components/Notification/appearance/notificationItemSize.d.ts +59 -0
- package/dist/types/components/Notification/appearance/notificationItemStyle.d.ts +16 -0
- package/dist/types/components/Notification/appearance/notificationItemSuccess.d.ts +11 -0
- package/dist/types/components/Notification/appearance/notificationItemWarning.d.ts +11 -0
- package/dist/types/components/Overlay/appearance/overlayAccent.d.ts +21 -0
- package/dist/types/components/Overlay/appearance/overlayDanger.d.ts +7 -0
- package/dist/types/components/Overlay/appearance/overlayError.d.ts +11 -0
- package/dist/types/components/Overlay/appearance/overlayInfo.d.ts +21 -0
- package/dist/types/components/Overlay/appearance/overlayPrimary.d.ts +8 -0
- package/dist/types/components/Overlay/appearance/overlaySecondary.d.ts +8 -0
- package/dist/types/components/Overlay/appearance/overlaySize.d.ts +59 -0
- package/dist/types/components/Overlay/appearance/overlayStyle.d.ts +16 -0
- package/dist/types/components/Overlay/appearance/overlaySuccess.d.ts +11 -0
- package/dist/types/components/Overlay/appearance/overlaySurface.d.ts +25 -0
- package/dist/types/components/Overlay/appearance/overlayWarning.d.ts +11 -0
- package/dist/types/components/Pagination/appearance/paginationAccent.d.ts +21 -0
- package/dist/types/components/Pagination/appearance/paginationDanger.d.ts +7 -0
- package/dist/types/components/Pagination/appearance/paginationError.d.ts +11 -0
- package/dist/types/components/Pagination/appearance/paginationInfo.d.ts +21 -0
- package/dist/types/components/Pagination/appearance/paginationPrimary.d.ts +8 -0
- package/dist/types/components/Pagination/appearance/paginationSecondary.d.ts +8 -0
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +59 -0
- package/dist/types/components/Pagination/appearance/paginationStyle.d.ts +16 -0
- package/dist/types/components/Pagination/appearance/paginationSuccess.d.ts +11 -0
- package/dist/types/components/Pagination/appearance/paginationWarning.d.ts +11 -0
- package/dist/types/components/Radio/appearance/radioError.d.ts +11 -0
- package/dist/types/components/Radio/appearance/radioRequire.d.ts +20 -0
- package/dist/types/components/Radio/appearance/radioSize.d.ts +27 -0
- package/dist/types/components/Radio/appearance/radioStyle.d.ts +16 -0
- package/dist/types/components/Radio/appearance/radioSuccess.d.ts +11 -0
- package/dist/types/components/Radio/appearance/radionDefault.d.ts +18 -0
- package/dist/types/components/Segmented/appearance/segmentedAccent.d.ts +19 -0
- package/dist/types/components/Segmented/appearance/segmentedDisabled.d.ts +18 -0
- package/dist/types/components/Segmented/appearance/segmentedError.d.ts +9 -0
- package/dist/types/components/Segmented/appearance/segmentedFalse.d.ts +4 -0
- package/dist/types/components/Segmented/appearance/segmentedSize.d.ts +10 -2
- package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +16 -0
- package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +9 -0
- package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +9 -0
- package/dist/types/components/Text/Text.appearance.d.ts +2 -2
- package/dist/types/components/Text/Text.interface.d.ts +3 -3
- package/dist/types/components/Text/appearance/textSize.d.ts +31 -0
- package/package.json +5 -5
- package/dist/Badge_cjs_CeqDdbMs.js +0 -227
- package/dist/Badge_es_uDX0eyDM.js +0 -223
- package/dist/Divider_cjs_DakITdTv.js +0 -34
- package/dist/Divider_es_CWsDM2Rm.js +0 -30
- package/dist/Icon_cjs_BaWMPaAR.js +0 -67
- package/dist/Icon_es_B0sySEUu.js +0 -63
- package/dist/Overlay_cjs_BTSfcGrM.js +0 -33
- package/dist/Overlay_es_CR7d-ISF.js +0 -29
- package/dist/Title_cjs_ByPcFb15.js +0 -44
- package/dist/Title_es_eejUqSJf.js +0 -40
- package/dist/Tooltip_cjs_CY4HOzhz.js +0 -97
- package/dist/Tooltip_es_B9hN4Zlm.js +0 -93
- package/dist/stories/Divider.mdx +0 -35
- package/dist/stories/Icon.mdx +0 -15
- package/dist/stories/Loader.mdx +0 -11
- package/dist/stories/Segmented.mdx +0 -11
package/dist/components/Cell.js
CHANGED
|
@@ -3,9 +3,9 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../
|
|
7
|
-
import { L as Label } from '../
|
|
8
|
-
import { T as Text } from '../
|
|
6
|
+
import { I as Icon } from '../Tooltip_es_DZX2n-4A.js';
|
|
7
|
+
import { L as Label } from '../Label_es_DdVH9Rr8.js';
|
|
8
|
+
import { T as Text } from '../Text_es_D012qJ8s.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
@@ -21,13 +21,207 @@ import 'lodash/maxBy';
|
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../Link_es_DkW06IM-.js';
|
|
24
|
-
import '../Tooltip_es_B9hN4Zlm.js';
|
|
25
|
-
import '../Title_es_eejUqSJf.js';
|
|
26
24
|
|
|
27
|
-
var
|
|
28
|
-
|
|
25
|
+
var cellAppearanceAccent = {
|
|
26
|
+
accent: {
|
|
27
|
+
fill: 'accentPrimary',
|
|
28
|
+
fillHover: 'accentPrimaryHover',
|
|
29
|
+
},
|
|
30
|
+
accentPrimary: {
|
|
31
|
+
fill: 'accentPrimary',
|
|
32
|
+
fillHover: 'accentPrimaryHover',
|
|
33
|
+
borderColor: 'accentBorderPrimary',
|
|
34
|
+
},
|
|
35
|
+
accentSecondary: {
|
|
36
|
+
fill: 'accentPrimary',
|
|
37
|
+
fillHover: 'accentPrimaryHover',
|
|
38
|
+
labelTextColor: 'accentTextSecondary',
|
|
39
|
+
labelTextColorHover: 'accentTextSecondary',
|
|
40
|
+
borderColor: 'accentBorderPrimary',
|
|
41
|
+
loaderFill: 'accentPrimary',
|
|
42
|
+
loaderItemFill: 'accentItemPrimary',
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
var cellAppearanceDanger = {
|
|
47
|
+
danger: {
|
|
48
|
+
fill: 'dangerPrimary',
|
|
49
|
+
fillHover: 'dangerPrimaryHover',
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
var cellAppearanceError = {
|
|
54
|
+
error: {
|
|
55
|
+
fill: 'errorPrimary',
|
|
56
|
+
fillHover: 'errorPrimaryHover',
|
|
57
|
+
labelTextColor: 'errorTextPrimary',
|
|
58
|
+
labelTextColorHover: 'errorTextPrimary',
|
|
59
|
+
loaderFill: 'errorPrimary',
|
|
60
|
+
loaderItemFill: 'errorItemPrimary',
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var cellAppearanceInfo = {
|
|
65
|
+
info: {
|
|
66
|
+
fill: 'accentPrimary',
|
|
67
|
+
fillHover: 'accentPrimaryHover',
|
|
68
|
+
labelTextColor: 'accentTextPrimary',
|
|
69
|
+
labelTextColorHover: 'accentTextPrimary',
|
|
70
|
+
borderColor: 'accentBorderPrimary',
|
|
71
|
+
loaderFill: 'accentPrimary',
|
|
72
|
+
loaderItemFill: 'accentItemPrimary',
|
|
73
|
+
},
|
|
74
|
+
infoSecondary: {
|
|
75
|
+
fill: 'accentPrimary',
|
|
76
|
+
fillHover: 'accentPrimaryHover',
|
|
77
|
+
labelTextColor: 'accentTextSecondary',
|
|
78
|
+
labelTextColorHover: 'accentTextSecondary',
|
|
79
|
+
borderColor: 'accentBorderPrimary',
|
|
80
|
+
loaderFill: 'accentPrimary',
|
|
81
|
+
loaderItemFill: 'accentItemPrimary',
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
var cellAppearancePrimary = {
|
|
86
|
+
primary: {
|
|
87
|
+
fill: 'primaryPrimary',
|
|
88
|
+
fillHover: 'primaryPrimaryHover',
|
|
89
|
+
labelTextColor: 'primaryTextPrimary',
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
var cellAppearanceSecondary = {
|
|
94
|
+
secondary: {
|
|
95
|
+
fill: 'secondaryPrimary',
|
|
96
|
+
fillHover: 'secondaryPrimaryHover',
|
|
97
|
+
labelTextColor: 'secondaryTextPrimary',
|
|
98
|
+
},
|
|
29
99
|
};
|
|
30
100
|
|
|
101
|
+
var cellAppearanceSize = {
|
|
102
|
+
sizeXXL: {
|
|
103
|
+
size: 'xxl',
|
|
104
|
+
labelTextSize: 'xxl',
|
|
105
|
+
iconAfterFillSize: '24',
|
|
106
|
+
iconAfterSize: '24',
|
|
107
|
+
iconBeforeFillSize: '24',
|
|
108
|
+
iconBeforeSize: '24',
|
|
109
|
+
},
|
|
110
|
+
sizeXL: {
|
|
111
|
+
size: 'xl',
|
|
112
|
+
labelTextSize: 'l',
|
|
113
|
+
iconAfterFillSize: '24',
|
|
114
|
+
iconAfterSize: '24',
|
|
115
|
+
iconBeforeFillSize: '24',
|
|
116
|
+
iconBeforeSize: '24',
|
|
117
|
+
},
|
|
118
|
+
sizeL: {
|
|
119
|
+
size: 'l',
|
|
120
|
+
labelTextSize: 'l',
|
|
121
|
+
iconAfterFillSize: '24',
|
|
122
|
+
iconAfterSize: '24',
|
|
123
|
+
iconBeforeFillSize: '24',
|
|
124
|
+
iconBeforeSize: '24',
|
|
125
|
+
},
|
|
126
|
+
sizeM: {
|
|
127
|
+
size: 'm',
|
|
128
|
+
labelTextSize: 'm',
|
|
129
|
+
iconAfterFillSize: '24',
|
|
130
|
+
iconAfterSize: '24',
|
|
131
|
+
iconBeforeFillSize: '24',
|
|
132
|
+
iconBeforeSize: '24',
|
|
133
|
+
},
|
|
134
|
+
sizeS: {
|
|
135
|
+
size: 's',
|
|
136
|
+
labelTextSize: 's',
|
|
137
|
+
iconAfterFillSize: '20',
|
|
138
|
+
iconAfterSize: '20',
|
|
139
|
+
iconBeforeFillSize: '20',
|
|
140
|
+
iconBeforeSize: '20',
|
|
141
|
+
},
|
|
142
|
+
sizeXS: {
|
|
143
|
+
size: 'xs',
|
|
144
|
+
labelTextSize: 'xs',
|
|
145
|
+
iconAfterFillSize: '16',
|
|
146
|
+
iconAfterSize: '16',
|
|
147
|
+
iconBeforeFillSize: '16',
|
|
148
|
+
iconBeforeSize: '16',
|
|
149
|
+
},
|
|
150
|
+
sizeXXS: {
|
|
151
|
+
size: 'xxs',
|
|
152
|
+
labelTextSize: 'xs',
|
|
153
|
+
iconAfterFillSize: '14',
|
|
154
|
+
iconAfterSize: '14',
|
|
155
|
+
iconBeforeFillSize: '14',
|
|
156
|
+
iconBeforeSize: '14',
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
var cellAppearanceStyle = {
|
|
161
|
+
full: {
|
|
162
|
+
borderColor: '0',
|
|
163
|
+
},
|
|
164
|
+
ghost: {
|
|
165
|
+
fill: 'none',
|
|
166
|
+
borderColor: '0',
|
|
167
|
+
},
|
|
168
|
+
outlined: {
|
|
169
|
+
fill: 'none',
|
|
170
|
+
},
|
|
171
|
+
solid: {
|
|
172
|
+
borderColor: '0',
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
var cellAppearanceSuccess = {
|
|
177
|
+
success: {
|
|
178
|
+
fill: 'successPrimary',
|
|
179
|
+
fillHover: 'successPrimaryHover',
|
|
180
|
+
labelTextColor: 'successTextSecondary',
|
|
181
|
+
labelTextColorHover: 'successTextSecondary',
|
|
182
|
+
loaderFill: 'successPrimary',
|
|
183
|
+
loaderItemFill: 'successItemPrimary',
|
|
184
|
+
},
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
var cellAppearanceSurface = {
|
|
188
|
+
surfacePrimary: {
|
|
189
|
+
fill: 'surfacePrimary',
|
|
190
|
+
fillHover: 'surfacePrimaryHover',
|
|
191
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
192
|
+
},
|
|
193
|
+
surfaceQuaternary: {
|
|
194
|
+
fill: 'surfaceQuaternary',
|
|
195
|
+
fillHover: 'surfaceQuaternaryHover',
|
|
196
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
197
|
+
},
|
|
198
|
+
surfaceSecondary: {
|
|
199
|
+
fill: 'surfaceSecondary',
|
|
200
|
+
fillHover: 'surfaceSecondaryHover',
|
|
201
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
202
|
+
loaderFill: 'surfaceSecondary',
|
|
203
|
+
loaderItemFill: 'surfaceItemPrimary',
|
|
204
|
+
},
|
|
205
|
+
surfaceTertiary: {
|
|
206
|
+
fill: 'surfaceTertiary',
|
|
207
|
+
fillHover: 'surfaceTertiaryHover',
|
|
208
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
209
|
+
},
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
var cellAppearanceWarning = {
|
|
213
|
+
warning: {
|
|
214
|
+
fill: 'warningPrimary',
|
|
215
|
+
fillHover: 'warningPrimaryHover',
|
|
216
|
+
labelTextColor: 'warningTextSecondary',
|
|
217
|
+
labelTextColorHover: 'warningTextSecondary',
|
|
218
|
+
loaderFill: 'warningPrimary',
|
|
219
|
+
loaderItemFill: 'warningItemPrimary',
|
|
220
|
+
},
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
var cellAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, cellAppearanceSize), cellAppearanceStyle), cellAppearanceAccent), cellAppearanceDanger), cellAppearanceError), cellAppearanceInfo), cellAppearancePrimary), cellAppearanceSecondary), cellAppearanceSuccess), cellAppearanceSurface), cellAppearanceWarning);
|
|
224
|
+
|
|
31
225
|
var cellConfig = {
|
|
32
226
|
appearance: cellAppearance,
|
|
33
227
|
setAppearance: function (appearanceConfig) {
|
|
@@ -2,7 +2,7 @@ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
|
-
import { T as Text } from '../
|
|
5
|
+
import { T as Text } from '../Text_es_D012qJ8s.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
package/dist/components/Chips.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { I as Icon } from '../Icon_es_B0sySEUu.js';
|
|
8
|
-
import { T as Text } from '../Text_es_FJGduy7Z.js';
|
|
1
|
+
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_CXuhBhjd.js';
|
|
2
|
+
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react';
|
|
5
|
+
import 'clsx';
|
|
6
|
+
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
7
|
import 'lodash/camelCase';
|
|
10
8
|
import 'lodash/castArray';
|
|
11
9
|
import 'lodash/upperFirst';
|
|
@@ -16,132 +14,10 @@ import '../context/UIContext.js';
|
|
|
16
14
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
17
15
|
import 'react-responsive';
|
|
18
16
|
import '../utils/setViewportProperty.js';
|
|
17
|
+
import '../hooks/useStyles/useStyles.js';
|
|
19
18
|
import 'lodash/maxBy';
|
|
20
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
+
import '../Tooltip_es_DZX2n-4A.js';
|
|
21
|
+
import '../Text_es_D012qJ8s.js';
|
|
21
22
|
import 'react-inlinesvg';
|
|
22
23
|
import '../Link_es_DkW06IM-.js';
|
|
23
|
-
import '../Tooltip_es_B9hN4Zlm.js';
|
|
24
|
-
import '../Title_es_eejUqSJf.js';
|
|
25
|
-
|
|
26
|
-
var chipsAppearanceAccent = {
|
|
27
|
-
accent: {
|
|
28
|
-
fill: 'accentPrimary',
|
|
29
|
-
fillHover: 'accentPrimaryHover',
|
|
30
|
-
labelTextColor: 'accentTextPrimary',
|
|
31
|
-
borderColor: 'accentBorderSecondary',
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
var chipsAppearanceDanger = {};
|
|
36
|
-
|
|
37
|
-
var chipsAppearanceDisabled = {
|
|
38
|
-
disabled: {
|
|
39
|
-
fill: 'disabledPrimary',
|
|
40
|
-
fillActive: 'disabledPrimary',
|
|
41
|
-
fillHover: 'disabledPrimary',
|
|
42
|
-
labelTextColor: 'disabledTextPrimary',
|
|
43
|
-
labelTextHoverColor: 'disabledTextPrimary',
|
|
44
|
-
borderColor: 'disabledBorderPrimary',
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
var chipsAppearanceError = {};
|
|
49
|
-
|
|
50
|
-
var chipsAppearanceInfo = {};
|
|
51
|
-
|
|
52
|
-
var chipsAppearancePrimary = {
|
|
53
|
-
primary: {
|
|
54
|
-
fill: 'primaryPrimary',
|
|
55
|
-
fillHover: 'primaryPrimaryHover',
|
|
56
|
-
labelTextColor: 'primaryTextPrimary',
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
var chipsAppearanceSecondary = {
|
|
61
|
-
secondary: {
|
|
62
|
-
fill: 'secondaryPrimary',
|
|
63
|
-
fillHover: 'secondaryPrimaryHover',
|
|
64
|
-
labelTextColor: 'secondaryTextPrimary',
|
|
65
|
-
borderColor: 'secondaryBorderSecondary',
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
var chipsAppearanceSize = {
|
|
70
|
-
sizeM: {
|
|
71
|
-
size: 'm',
|
|
72
|
-
labelTextSize: 's',
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
var chipsAppearanceStyle = {};
|
|
77
|
-
|
|
78
|
-
var chipsAppearanceSuccess = {};
|
|
79
|
-
|
|
80
|
-
var chipsAppearanceSurface = {
|
|
81
|
-
surfacePrimary: {
|
|
82
|
-
fill: 'surfacePrimary',
|
|
83
|
-
fillActive: 'accentPrimary',
|
|
84
|
-
fillActiveHover: 'accentSecondary',
|
|
85
|
-
fillHover: 'surfaceHover',
|
|
86
|
-
labelTextActiveColor: 'accentTextPrimary',
|
|
87
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
88
|
-
labelTextHoverColor: 'surfaceTextPrimary',
|
|
89
|
-
borderColor: 'surfaceBorderTertiary',
|
|
90
|
-
activeIconItemFill: 'surfaceItemSecondary',
|
|
91
|
-
},
|
|
92
|
-
surfaceSecondary: {
|
|
93
|
-
fill: 'surfaceSecondary',
|
|
94
|
-
fillHover: 'surfaceHover',
|
|
95
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
96
|
-
borderColor: 'surfaceBorderSecondary',
|
|
97
|
-
},
|
|
98
|
-
surfaceTertiary: {
|
|
99
|
-
fill: 'surfaceTertiary',
|
|
100
|
-
fillHover: 'surfaceHover',
|
|
101
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
102
|
-
borderColor: 'surfaceBorderTertiary',
|
|
103
|
-
},
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
var chipsAppearanceWarning = {};
|
|
107
|
-
|
|
108
|
-
var chipsAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, chipsAppearanceSize), chipsAppearanceStyle), chipsAppearanceAccent), chipsAppearanceDanger), chipsAppearanceError), chipsAppearanceInfo), chipsAppearancePrimary), chipsAppearanceSecondary), chipsAppearanceSuccess), chipsAppearanceSurface), chipsAppearanceWarning), chipsAppearanceDisabled);
|
|
109
|
-
|
|
110
|
-
var chipsConfig = {
|
|
111
|
-
appearance: chipsAppearance,
|
|
112
|
-
setAppearance: function (appearanceConfig) {
|
|
113
|
-
chipsConfig.appearance = appearanceConfig;
|
|
114
|
-
},
|
|
115
|
-
};
|
|
116
|
-
function Chips(props) {
|
|
117
|
-
var className = props.className, appearance = props.appearance, _a = props.label, label = _a === void 0 ? '' : _a, isDisabled = props.isDisabled, dataTestId = props.dataTestId, dataTour = props.dataTour, iconAfter = props.iconAfter, iconAfterSrc = props.iconAfterSrc, iconBefore = props.iconBefore, iconBeforeSrc = props.iconBeforeSrc, isActive = props.isActive, onClick = props.onClick, children = props.children;
|
|
118
|
-
var appearanceConfig = useMemo(function () {
|
|
119
|
-
if (appearance) {
|
|
120
|
-
var appearanceProps = appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
121
|
-
var _a;
|
|
122
|
-
return (__assign(__assign({}, resultConfig), (_a = chipsConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
123
|
-
}, {});
|
|
124
|
-
if (isDisabled && chipsConfig.appearance.disabled) {
|
|
125
|
-
Object.assign(appearanceProps, chipsConfig.appearance.disabled);
|
|
126
|
-
}
|
|
127
|
-
return appearanceProps;
|
|
128
|
-
}
|
|
129
|
-
if (isDisabled) {
|
|
130
|
-
return chipsConfig.appearance.disabled;
|
|
131
|
-
}
|
|
132
|
-
return {};
|
|
133
|
-
}, [appearance, isDisabled]);
|
|
134
|
-
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
135
|
-
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
|
|
136
|
-
// @ts-expect-error
|
|
137
|
-
var chipsStyles = useStyles(props).styles;
|
|
138
|
-
return (jsx("div", { className: clsx(className, 'chips', isActive && 'chips_state_active', !isActive
|
|
139
|
-
? fillClass && "fill_".concat(fillClass)
|
|
140
|
-
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
141
|
-
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
142
|
-
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer'), "data-testid": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), typeof label === 'string' ? (jsx(Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: isActive && labelTextActiveColor, textColorHover: !isDisabled && !isActive
|
|
143
|
-
? labelTextHoverColor
|
|
144
|
-
: labelTextActiveHoverColor, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }) }));
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export { Chips, chipsAppearance, chipsConfig };
|
|
@@ -4,9 +4,9 @@ import React, { useRef, useMemo, createRef, useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
8
|
-
import { L as Loader } from '../
|
|
9
|
-
import { T as Text } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_DZX2n-4A.js';
|
|
8
|
+
import { L as Loader } from '../Loader_es_SHdP0IkA.js';
|
|
9
|
+
import { T as Text } from '../Text_es_D012qJ8s.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
12
12
|
import 'lodash/upperFirst';
|
|
@@ -21,8 +21,6 @@ import 'lodash/maxBy';
|
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../Link_es_DkW06IM-.js';
|
|
24
|
-
import '../Tooltip_es_B9hN4Zlm.js';
|
|
25
|
-
import '../Title_es_eejUqSJf.js';
|
|
26
24
|
|
|
27
25
|
var choiceAppearanceAccent = {
|
|
28
26
|
accentPrimary: {
|
package/dist/components/Code.js
CHANGED
|
@@ -15,10 +15,123 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
|
15
15
|
import 'react-responsive';
|
|
16
16
|
import '../utils/setViewportProperty.js';
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
|
|
18
|
+
var codeAppearanceDefault = {
|
|
19
|
+
defaultPrimary: {
|
|
20
|
+
fill: 'surfaceSecondary',
|
|
21
|
+
borderColor: 'surfaceBorderTertiary',
|
|
22
|
+
borderHover: 'surfaceBorderQuaternary',
|
|
23
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
24
|
+
iconClearFill: 'surfaceItemPrimary',
|
|
25
|
+
},
|
|
26
|
+
defaultSecondary: {
|
|
27
|
+
fill: 'surfacePrimary',
|
|
28
|
+
borderColor: 'surfaceBorderTertiary',
|
|
29
|
+
borderHover: 'surfaceBorderQuaternary',
|
|
30
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
31
|
+
iconClearFill: 'surfaceItemPrimary',
|
|
32
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
var codeAppearanceDisabled = {
|
|
37
|
+
disabledPrimary: {
|
|
38
|
+
fill: 'surfaceFillDisabled',
|
|
39
|
+
borderColor: 'errorBorderQuaternary',
|
|
40
|
+
borderHover: 'errorBorderQuaternary',
|
|
41
|
+
textColor: 'surfaceTextQuaternary',
|
|
42
|
+
iconBeforeFill: 'errorItemQuaternary',
|
|
43
|
+
iconClearFill: 'errorItemPrimary',
|
|
44
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
45
|
+
},
|
|
46
|
+
disabledSecondary: {
|
|
47
|
+
fill: 'surfaceSecondary',
|
|
48
|
+
borderColor: 'surfaceBorderTertiary',
|
|
49
|
+
borderHover: 'surfaceBorderQuaternary',
|
|
50
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
51
|
+
iconClearFill: 'surfaceItemPrimary',
|
|
52
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
var codeAppearanceError = {
|
|
57
|
+
error: {
|
|
58
|
+
fill: 'errorPrimary',
|
|
59
|
+
fillHover: 'errorPrimaryHover',
|
|
60
|
+
labelTextColor: 'errorTextPrimary',
|
|
61
|
+
labelTextColorHover: 'errorTextPrimary',
|
|
62
|
+
loaderFill: 'errorPrimary',
|
|
63
|
+
loaderItemFill: 'errorItemPrimary',
|
|
64
|
+
},
|
|
20
65
|
};
|
|
21
66
|
|
|
67
|
+
var codeAppearanceRequire = {
|
|
68
|
+
requirePrimary: {
|
|
69
|
+
fill: 'warningTertiary',
|
|
70
|
+
borderColor: 'warningBorderQuaternary',
|
|
71
|
+
borderHover: 'warningBorderQuaternary',
|
|
72
|
+
textColor: 'surfaceTextPrimary',
|
|
73
|
+
iconBeforeFill: 'warningItemQuaternary',
|
|
74
|
+
iconClearFill: 'warningItemPrimary',
|
|
75
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
76
|
+
},
|
|
77
|
+
requireSecondary: {
|
|
78
|
+
fill: 'surfaceSecondary',
|
|
79
|
+
borderColor: 'surfaceBorderTertiary',
|
|
80
|
+
borderHover: 'surfaceBorderQuaternary',
|
|
81
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
82
|
+
iconClearFill: 'surfaceItemPrimary',
|
|
83
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
var codeAppearanceSize = {
|
|
88
|
+
sizeL: {
|
|
89
|
+
size: 'l',
|
|
90
|
+
labelTextSize: 'l',
|
|
91
|
+
iconAfterFillSize: '56',
|
|
92
|
+
iconAfterSize: '56',
|
|
93
|
+
iconBeforeFillSize: '56',
|
|
94
|
+
iconBeforeSize: '56',
|
|
95
|
+
},
|
|
96
|
+
sizeM: {
|
|
97
|
+
size: 'm',
|
|
98
|
+
labelTextSize: 'm',
|
|
99
|
+
iconAfterFillSize: '48',
|
|
100
|
+
iconAfterSize: '48',
|
|
101
|
+
iconBeforeFillSize: '48',
|
|
102
|
+
iconBeforeSize: '48',
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
var codeAppearanceStyle = {
|
|
107
|
+
full: {
|
|
108
|
+
borderColor: '0',
|
|
109
|
+
},
|
|
110
|
+
ghost: {
|
|
111
|
+
fill: 'none',
|
|
112
|
+
borderColor: '0',
|
|
113
|
+
},
|
|
114
|
+
outlined: {
|
|
115
|
+
fill: 'none',
|
|
116
|
+
},
|
|
117
|
+
solid: {
|
|
118
|
+
borderColor: '0',
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
var codeAppearanceSuccess = {
|
|
123
|
+
success: {
|
|
124
|
+
fill: 'successPrimary',
|
|
125
|
+
fillHover: 'successPrimaryHover',
|
|
126
|
+
labelTextColor: 'successTextSecondary',
|
|
127
|
+
labelTextColorHover: 'successTextSecondary',
|
|
128
|
+
loaderFill: 'successPrimary',
|
|
129
|
+
loaderItemFill: 'successItemPrimary',
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
var codeAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, codeAppearanceDisabled), codeAppearanceRequire), codeAppearanceSize), codeAppearanceDefault), codeAppearanceStyle), codeAppearanceError), codeAppearanceSuccess);
|
|
134
|
+
|
|
22
135
|
var codeConfig = {
|
|
23
136
|
appearance: codeAppearance,
|
|
24
137
|
setAppearance: function (appearanceConfig) {
|
|
@@ -26,7 +139,7 @@ var codeConfig = {
|
|
|
26
139
|
},
|
|
27
140
|
};
|
|
28
141
|
function Code(props) {
|
|
29
|
-
var className = props.className, appearance = props.appearance, inputAutoFocus = props.inputAutoFocus, _a = props.inputCount, inputCount = _a === void 0 ? 6 : _a, _b = props.inputPlaceholder, inputPlaceholder = _b === void 0 ? 0 : _b, _c = props.inputType, inputType = _c === void 0 ? 'number' : _c, separatorComponent = props.separatorComponent, before = props.before, after = props.after, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
|
|
142
|
+
var className = props.className, appearance = props.appearance, inputAutoFocus = props.inputAutoFocus, _a = props.inputCount, inputCount = _a === void 0 ? 6 : _a, _b = props.inputPlaceholder, inputPlaceholder = _b === void 0 ? '0' : _b, _c = props.inputType, inputType = _c === void 0 ? 'number' : _c, separatorComponent = props.separatorComponent, before = props.before, after = props.after, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
|
|
30
143
|
var _d = useState(''), otp = _d[0], setOtp = _d[1];
|
|
31
144
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
32
145
|
var _a;
|
|
@@ -3,9 +3,9 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { B as Button } from '../
|
|
6
|
+
import { B as Button } from '../Button_es_Da8cwzG-.js';
|
|
7
7
|
import { G as Group } from '../Group_es_CRGwi5XI.js';
|
|
8
|
-
import { T as Text } from '../
|
|
8
|
+
import { T as Text } from '../Text_es_D012qJ8s.js';
|
|
9
9
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
@@ -17,18 +17,16 @@ import '../context/UIContext.js';
|
|
|
17
17
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
18
18
|
import 'react-responsive';
|
|
19
19
|
import '../utils/setViewportProperty.js';
|
|
20
|
-
import '../
|
|
21
|
-
import 'react-inlinesvg';
|
|
20
|
+
import '../Tooltip_es_DZX2n-4A.js';
|
|
22
21
|
import '../hooks/useStyles/useStyles.js';
|
|
23
22
|
import 'lodash/maxBy';
|
|
24
23
|
import '../hooks/useStyles/styleAttributes.js';
|
|
24
|
+
import 'react-inlinesvg';
|
|
25
25
|
import '../Link_es_DkW06IM-.js';
|
|
26
|
-
import '../
|
|
27
|
-
import '../Title_es_eejUqSJf.js';
|
|
28
|
-
import '../Loader_es_BE4nyzXi.js';
|
|
26
|
+
import '../Loader_es_SHdP0IkA.js';
|
|
29
27
|
|
|
30
28
|
function CookiesWarning(props) {
|
|
31
|
-
var className = props.className,
|
|
29
|
+
var className = props.className, message = props.message, _a = props.isHideOnScroll, isHideOnScroll = _a === void 0 ? false : _a;
|
|
32
30
|
var cookiesWarningRef = useRef(null);
|
|
33
31
|
var isOpen = useMemo(function () { return Cookies.get('cookies-warning') !== 'close'; }, []);
|
|
34
32
|
var closeCookiesWarning = useCallback(function () {
|
|
@@ -51,8 +49,8 @@ function CookiesWarning(props) {
|
|
|
51
49
|
}
|
|
52
50
|
}, [isOpen]);
|
|
53
51
|
var propsGenerator = useDevicePropsGenerator(props);
|
|
54
|
-
var fillClass = propsGenerator.fillClass, fillGradientClass = propsGenerator.fillGradientClass,
|
|
55
|
-
return isOpen
|
|
52
|
+
var fillClass = propsGenerator.fillClass, fillGradientClass = propsGenerator.fillGradientClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, buttonFill = propsGenerator.buttonFill, buttonFillHover = propsGenerator.buttonFillHover, buttonLabel = propsGenerator.buttonLabel, buttonLabelSize = propsGenerator.buttonLabelSize, buttonLabelTextColor = propsGenerator.buttonLabelTextColor, buttonShape = propsGenerator.buttonShape, buttonSize = propsGenerator.buttonSize, buttonWidth = propsGenerator.buttonWidth;
|
|
53
|
+
return (isOpen && (jsx("div", { className: clsx('cookies-warning', className, fillClass && "fill_".concat(fillClass), fillGradientClass && "fill-gradient_".concat(fillGradientClass)), ref: cookiesWarningRef, children: jsxs(Group, { className: "cookies-warning__inner", direction: "vertical", children: [jsx(Text, { size: textSize, textColor: textColor, children: message }), jsx(Button, { width: buttonWidth, size: buttonSize, fill: buttonFill, fillHover: buttonFillHover, labelTextColor: buttonLabelTextColor, labelTextSize: buttonLabelSize, shape: buttonShape, onClick: closeCookiesWarning, children: buttonLabel })] }) })));
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
export { CookiesWarning };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { D as DatePickerInput } from '../DatePicker_es_VS_nZkhp.js';
|
|
5
|
+
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
+
import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_CXuhBhjd.js';
|
|
7
|
+
import 'react';
|
|
8
|
+
import 'date-fns/locale';
|
|
9
|
+
import 'react-datepicker';
|
|
10
|
+
import '../hooks/useStyles/useStyles.js';
|
|
11
|
+
import 'lodash/camelCase';
|
|
12
|
+
import 'lodash/maxBy';
|
|
13
|
+
import 'lodash/upperFirst';
|
|
14
|
+
import '../context/Notifications.js';
|
|
15
|
+
import 'uuid';
|
|
16
|
+
import '@itcase/common';
|
|
17
|
+
import '../context/UIContext.js';
|
|
18
|
+
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
19
|
+
import 'react-responsive';
|
|
20
|
+
import '../utils/setViewportProperty.js';
|
|
21
|
+
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
+
import '../Button_es_Da8cwzG-.js';
|
|
23
|
+
import '../Tooltip_es_DZX2n-4A.js';
|
|
24
|
+
import '../Text_es_D012qJ8s.js';
|
|
25
|
+
import 'react-inlinesvg';
|
|
26
|
+
import '../Link_es_DkW06IM-.js';
|
|
27
|
+
import '../Loader_es_SHdP0IkA.js';
|
|
28
|
+
import '../Input_es_CNduH28G.js';
|
|
29
|
+
import '../Label_es_DdVH9Rr8.js';
|
|
30
|
+
import '@itcase/icons/default';
|
|
31
|
+
import 'lodash/castArray';
|
|
32
|
+
|
|
33
|
+
var datePeriodAppearance = {
|
|
34
|
+
dev: {},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
var datePeriodConfig = {
|
|
38
|
+
appearance: datePeriodAppearance,
|
|
39
|
+
setAppearance: function (appearanceConfig) {
|
|
40
|
+
datePeriodConfig.appearance = appearanceConfig;
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
function DatePeriod(props) {
|
|
44
|
+
var className = props.className, appearance = props.appearance, isSkeleton = props.isSkeleton, onClick = props.onClick;
|
|
45
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
46
|
+
var _a;
|
|
47
|
+
return (__assign(__assign({}, resultConfig), (_a = datePeriodConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
48
|
+
}, {});
|
|
49
|
+
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
50
|
+
var fillClass = propsGenerator.fillClass, size = propsGenerator.size, _a = propsGenerator.chipsSize, chipsSize = _a === void 0 ? 'm' : _a, chipsShape = propsGenerator.chipsShape, _b = propsGenerator.datePickerSize, datePickerSize = _b === void 0 ? 'm' : _b, datePickerAppearance = propsGenerator.datePickerAppearance, datePickerInputFillHover = propsGenerator.datePickerInputFillHover, _c = propsGenerator.datePickerInputSize, datePickerInputSize = _c === void 0 ? 'm' : _c, datePickerInputTextSize = propsGenerator.datePickerInputTextSize, _d = propsGenerator.datePickerInputAppearance, datePickerInputAppearance = _d === void 0 ? 'defaultPrimary' : _d, _e = propsGenerator.chipsAppearance, chipsAppearance = _e === void 0 ? 'surfacePrimary' : _e, shapeClass = propsGenerator.shapeClass;
|
|
51
|
+
return (jsx("div", { className: clsx(className, 'date-period', shapeClass && "date-period_shape_".concat(shapeClass), size && "date-period_size_".concat(size), isSkeleton && "date-period_skeleton", fillClass && "fill_".concat(fillClass), onClick && 'cursor_type_pointer'), onClick: onClick, children: jsxs(ChipsGroup, { direction: "horizontal", children: [jsx(Chips, { appearance: "".concat(chipsAppearance, " size").concat(chipsSize.toUpperCase()), label: "\u0421\u0435\u0433\u043E\u0434\u043D\u044F", shape: chipsShape }), jsx(Chips, { appearance: "".concat(chipsAppearance, " size").concat(chipsSize.toUpperCase()), label: "\u0412\u0447\u0435\u0440\u0430", shape: chipsShape }), jsx(Chips, { appearance: "".concat(chipsAppearance, " size").concat(chipsSize.toUpperCase()), label: "\u041D\u0435\u0434\u0435\u043B\u044F", shape: chipsShape }), jsx(Chips, { appearance: "".concat(chipsAppearance, " size").concat(chipsSize.toUpperCase()), label: "\u041C\u0435\u0441\u044F\u0446", shape: chipsShape }), jsx(Chips, { appearance: "".concat(chipsAppearance, " size").concat(chipsSize.toUpperCase()), label: "\u041A\u0432\u0430\u0440\u0442\u0430\u043B", shape: chipsShape }), jsx(Chips, { appearance: "".concat(chipsAppearance, " size").concat(chipsSize.toUpperCase()), label: "\u0413\u043E\u0434", shape: chipsShape }), jsx(DatePickerInput, { datePickerProps: {
|
|
52
|
+
appearance: "".concat(datePickerAppearance, " size").concat(datePickerSize.toUpperCase()),
|
|
53
|
+
}, inputProps: {
|
|
54
|
+
appearance: "".concat(datePickerInputAppearance, " ghost"),
|
|
55
|
+
textSize: datePickerInputTextSize,
|
|
56
|
+
fillHover: datePickerInputFillHover,
|
|
57
|
+
className: "date-period__datepicker-input date-period__datepicker-input_size_".concat(datePickerInputSize),
|
|
58
|
+
} })] }) }));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { DatePeriod, datePeriodAppearance, datePeriodConfig };
|