@itcase/ui 1.8.13 → 1.8.17
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_DjCsrrlr.js} +20 -39
- package/dist/{Button_es_Cd4sw9Q5.js → Button_es_CHDT0-8K.js} +20 -39
- package/dist/ChipsGroup_cjs_CTpMiyQb.js +164 -0
- package/dist/ChipsGroup_es_CP_xm25C.js +159 -0
- package/dist/DatePicker_cjs_DPtOL1eW.js +201 -0
- package/dist/DatePicker_es_DCuzMD0T.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_mw4pHZR1.js} +29 -30
- package/dist/{Label_es_BCpDqP3q.js → Label_es_CiPEDFcR.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_BKOjNMkt.js +676 -0
- package/dist/Tooltip_es_C7zstTA2.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 +78 -22
- package/dist/css/components/Segmented/Segmented.css +3 -6
- package/dist/css/components/Title/Title.css +11 -5
- package/dist/css/styles/border/border.css +14 -0
- package/dist/css/styles/fill/fill.css +2 -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/radioDefault.d.ts +18 -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/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
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { B as Button } from '../Button_es_Cd4sw9Q5.js';
|
|
10
|
-
import { I as Icon } from '../Icon_es_B0sySEUu.js';
|
|
11
|
-
import { I as Input } from '../Input_es_CNduH28G.js';
|
|
12
|
-
import { L as Label } from '../Label_es_BCpDqP3q.js';
|
|
13
|
-
import { T as Text } from '../Text_es_FJGduy7Z.js';
|
|
14
|
-
import { icon14 } from '@itcase/icons/default';
|
|
1
|
+
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_DCuzMD0T.js';
|
|
2
|
+
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react';
|
|
5
|
+
import 'clsx';
|
|
6
|
+
import 'date-fns/locale';
|
|
7
|
+
import 'react-datepicker';
|
|
8
|
+
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
15
9
|
import 'lodash/camelCase';
|
|
16
10
|
import 'lodash/castArray';
|
|
17
11
|
import 'lodash/upperFirst';
|
|
@@ -22,190 +16,15 @@ import '../context/UIContext.js';
|
|
|
22
16
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
23
17
|
import 'react-responsive';
|
|
24
18
|
import '../utils/setViewportProperty.js';
|
|
19
|
+
import '../hooks/useStyles/useStyles.js';
|
|
25
20
|
import 'lodash/maxBy';
|
|
26
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
27
|
-
import '../
|
|
28
|
-
import '../
|
|
22
|
+
import '../Button_es_CHDT0-8K.js';
|
|
23
|
+
import '../Tooltip_es_C7zstTA2.js';
|
|
24
|
+
import '../Text_es_D012qJ8s.js';
|
|
29
25
|
import 'react-inlinesvg';
|
|
30
|
-
import '../
|
|
31
|
-
import '../
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
daySize: 'xs',
|
|
36
|
-
dayTextSize: 'm',
|
|
37
|
-
iconFillSize: 24,
|
|
38
|
-
iconLeft: icon14.ChevronLeft,
|
|
39
|
-
iconRight: icon14.ChevronRight,
|
|
40
|
-
},
|
|
41
|
-
sizeM: {
|
|
42
|
-
daySize: 'xxl',
|
|
43
|
-
dayTextSize: 'm',
|
|
44
|
-
iconFillSize: 24,
|
|
45
|
-
daySize: 'xs',
|
|
46
|
-
dayTextSize: 'm',
|
|
47
|
-
iconSize: 14,
|
|
48
|
-
monthTextSize: 'm',
|
|
49
|
-
yearTextSize: 'm',
|
|
50
|
-
iconLeft: icon14.ChevronLeft,
|
|
51
|
-
iconRight: icon14.ChevronRight,
|
|
52
|
-
},
|
|
53
|
-
sizeL: {
|
|
54
|
-
daySize: 'xs',
|
|
55
|
-
dayTextSize: 'm',
|
|
56
|
-
iconFillSize: 24,
|
|
57
|
-
iconLeft: icon14.ChevronLeft,
|
|
58
|
-
iconRight: icon14.ChevronRight,
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
var datePickerStyle = {
|
|
63
|
-
solid: {
|
|
64
|
-
datePickerProps: {},
|
|
65
|
-
inputProps: {
|
|
66
|
-
borderWidth: '0',
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
outlined: {
|
|
70
|
-
datePickerProps: {},
|
|
71
|
-
inputProps: {
|
|
72
|
-
fill: 'none',
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
ghost: {
|
|
76
|
-
datePickerProps: {},
|
|
77
|
-
inputProps: {
|
|
78
|
-
fill: 'none',
|
|
79
|
-
borderWidth: '0',
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
full: {
|
|
83
|
-
datePickerProps: {},
|
|
84
|
-
inputProps: {},
|
|
85
|
-
},
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
var datePickerAppearanceSurface = {
|
|
89
|
-
surfacePrimary: {
|
|
90
|
-
dayTextColor: 'surfaceTextPrimary',
|
|
91
|
-
dayTextShape: 'rounded',
|
|
92
|
-
iconFillHover: 'surfaceSecondary',
|
|
93
|
-
iconItemFill: 'surfaceItemPrimary',
|
|
94
|
-
iconShape: 'circular',
|
|
95
|
-
iconItemFill: 'surfaceItemPrimary',
|
|
96
|
-
iconLeft: icon14.ChevronLeft,
|
|
97
|
-
iconRight: icon14.ChevronRight,
|
|
98
|
-
monthTextColor: 'surfaceTextPrimary',
|
|
99
|
-
monthTextWeight: 400,
|
|
100
|
-
placeholderTextColor: 'surfaceTextPrimary',
|
|
101
|
-
yearTextColor: 'surfaceTextPrimary',
|
|
102
|
-
yearTextWeight: 400,
|
|
103
|
-
},
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
var datePickerAppearance = __assign(__assign(__assign({}, datePickerAppearanceSurface), datePickerSize), datePickerStyle);
|
|
107
|
-
|
|
108
|
-
var datePickerConfig = {
|
|
109
|
-
appearance: datePickerAppearance,
|
|
110
|
-
setAppearance: function (appearanceConfig) {
|
|
111
|
-
datePickerConfig.appearance = appearanceConfig;
|
|
112
|
-
},
|
|
113
|
-
};
|
|
114
|
-
function DatePickerInput(props) {
|
|
115
|
-
var _a;
|
|
116
|
-
var className = props.className, _b = props.datePickerProps, datePickerProps = _b === void 0 ? {} : _b, endValue = props.endValue, _c = props.inputProps, inputProps = _c === void 0 ? {} : _c, value = props.value, onChange = props.onChange;
|
|
117
|
-
var datepickerRef = useRef(null);
|
|
118
|
-
var customTimeInput = datePickerProps.customTimeInput, disablePastDays = datePickerProps.disablePastDays, monthsShown = datePickerProps.monthsShown, selectsRange = datePickerProps.selectsRange;
|
|
119
|
-
var appearanceConfig = (_a = datePickerProps.appearance) === null || _a === void 0 ? void 0 : _a.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
120
|
-
var _a;
|
|
121
|
-
return (__assign(__assign({}, resultConfig), (_a = datePickerConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
122
|
-
}, {});
|
|
123
|
-
var propsGenerator = useDevicePropsGenerator(datePickerProps, appearanceConfig);
|
|
124
|
-
var daySize = propsGenerator.daySize, dayTextColor = propsGenerator.dayTextColor, dayTextShape = propsGenerator.dayTextShape, dayTextSize = propsGenerator.dayTextSize, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconLeft = propsGenerator.iconLeft, iconRight = propsGenerator.iconRight, iconShape = propsGenerator.iconShape, monthTextColor = propsGenerator.monthTextColor, monthTextSize = propsGenerator.monthTextSize, monthTextWeight = propsGenerator.monthTextWeight, popper = propsGenerator.popper, widthClass = propsGenerator.widthClass, yearTextColor = propsGenerator.yearTextColor, yearTextSize = propsGenerator.yearTextSize, yearTextWeight = propsGenerator.yearTextWeight, isClearable = propsGenerator.isClearable;
|
|
125
|
-
var start = useMemo(function () {
|
|
126
|
-
if (value) {
|
|
127
|
-
if (typeof value === 'string') {
|
|
128
|
-
return new Date(value);
|
|
129
|
-
}
|
|
130
|
-
return value;
|
|
131
|
-
}
|
|
132
|
-
if (datePickerProps.isStartDefaultNull) {
|
|
133
|
-
return undefined;
|
|
134
|
-
}
|
|
135
|
-
return new Date();
|
|
136
|
-
}, [value, datePickerProps.isStartDefaultNull]);
|
|
137
|
-
var end = useMemo(function () {
|
|
138
|
-
if (!endValue) {
|
|
139
|
-
return undefined;
|
|
140
|
-
}
|
|
141
|
-
if (typeof endValue === 'string') {
|
|
142
|
-
return new Date(endValue);
|
|
143
|
-
}
|
|
144
|
-
return endValue;
|
|
145
|
-
}, [endValue]);
|
|
146
|
-
var _d = useState(start), startDate = _d[0], setStartDate = _d[1];
|
|
147
|
-
var _e = useState(end), endDate = _e[0], setEndDate = _e[1];
|
|
148
|
-
var handleChange = useCallback(function (_a) {
|
|
149
|
-
var newStartDate = _a[0], newEndDate = _a[1];
|
|
150
|
-
onChange && onChange(newStartDate, newEndDate);
|
|
151
|
-
setStartDate(newStartDate);
|
|
152
|
-
setEndDate(newEndDate);
|
|
153
|
-
}, [onChange]);
|
|
154
|
-
var renderDayContents = useCallback(function (day, date) {
|
|
155
|
-
return (jsx(Button, { className: "react-datepicker__day-button", size: daySize, label: date.getDate().toString(), labelTextColor: dayTextColor, labelTextSize: dayTextSize, shape: dayTextShape }));
|
|
156
|
-
}, [daySize, dayTextColor, dayTextShape, dayTextSize]);
|
|
157
|
-
var renderCustomHeader = useCallback(function (_a) {
|
|
158
|
-
var decreaseMonth = _a.decreaseMonth, increaseMonth = _a.increaseMonth, monthDate = _a.monthDate;
|
|
159
|
-
return (jsxs("div", { className: "react-datepicker__header--div", children: [iconLeft && (jsx(Icon, { className: "react-datepicker__icon", fill: iconFill, fillHover: iconFillHover, fillSize: iconFillSize, iconFill: iconItemFill, shape: iconShape, SvgImage: iconLeft, onClick: decreaseMonth })), jsxs("div", { className: "react-datepicker__data", children: [jsx(Text, { className: "react-datepicker__month", size: monthTextSize, textColor: monthTextColor, textWeight: monthTextWeight, children: monthDate.toLocaleString('ru-RU', { month: 'long' }) }), jsx(Text, { className: "react-datepicker__year", size: yearTextSize, textColor: yearTextColor, textWeight: yearTextWeight, children: monthDate.toLocaleString('ru-RU', { year: 'numeric' }) })] }), iconRight && (jsx(Icon, { className: "react-datepicker__icon", fill: iconFill, fillHover: iconFillHover, fillSize: iconFillSize, iconFill: iconItemFill, shape: iconShape, SvgImage: iconRight, onClick: increaseMonth }))] }));
|
|
160
|
-
}, [
|
|
161
|
-
iconFill,
|
|
162
|
-
iconFillHover,
|
|
163
|
-
iconFillSize,
|
|
164
|
-
iconItemFill,
|
|
165
|
-
iconLeft,
|
|
166
|
-
iconRight,
|
|
167
|
-
iconShape,
|
|
168
|
-
monthTextColor,
|
|
169
|
-
monthTextSize,
|
|
170
|
-
monthTextWeight,
|
|
171
|
-
yearTextColor,
|
|
172
|
-
yearTextSize,
|
|
173
|
-
yearTextWeight,
|
|
174
|
-
]);
|
|
175
|
-
useEffect(function () {
|
|
176
|
-
setStartDate(start);
|
|
177
|
-
}, [start]);
|
|
178
|
-
useEffect(function () {
|
|
179
|
-
setEndDate(end);
|
|
180
|
-
}, [end]);
|
|
181
|
-
var datePickerStyles = useStyles(props).styles;
|
|
182
|
-
return (jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsx(DatePicker, __assign({ minDate: disablePastDays ? new Date() : undefined, customInput: jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? endDate : undefined, locale: ru, popperClassName: popper && "react-datepicker-popper-".concat(popper), ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, onChange: selectsRange ? handleChange : onChange }, datePickerProps, {
|
|
183
|
-
// Important for use custom clear button
|
|
184
|
-
isClearable: false })) }));
|
|
185
|
-
}
|
|
186
|
-
var DatePickerCustomInput = React.forwardRef(function (props, ref) {
|
|
187
|
-
var inputIcon = props.inputIcon, inputProps = props.inputProps, value = props.value, isClearable = props.isClearable;
|
|
188
|
-
var multipleValue = useMemo(function () {
|
|
189
|
-
if (value) {
|
|
190
|
-
var twoDates = value.split(' - ');
|
|
191
|
-
return twoDates[0] === twoDates[1] ? twoDates[0] : value;
|
|
192
|
-
}
|
|
193
|
-
return '';
|
|
194
|
-
}, [value]);
|
|
195
|
-
return (jsxs(React.Fragment, { children: [jsx(Input, __assign({}, props, inputProps, { className: "datepicker__input", autocomplete: "off", ref: ref, value: multipleValue })), inputIcon && jsx(DatePickerInputIcon, __assign({}, inputProps)), isClearable && jsx(DatePickerClearButton, __assign({}, inputProps))] }));
|
|
196
|
-
});
|
|
197
|
-
function DatePickerClearButton(props) {
|
|
198
|
-
var clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, clearIconFillHover = props.clearIconFillHover, clearIconFillSize = props.clearIconFillSize, clearIconItemFill = props.clearIconItemFill, clearIconItemFillHover = props.clearIconItemFillHover, clearIconShape = props.clearIconShape, clearIconSize = props.clearIconSize, clearIconSrc = props.clearIconSrc, clearLabel = props.clearLabel, clearLabelTextColor = props.clearLabelTextColor, clearLabelTextColorHover = props.clearLabelTextColorHover, clearLabelTextSize = props.clearLabelTextSize, datepickerRef = props.datepickerRef;
|
|
199
|
-
var onClick = useCallback(function (event) {
|
|
200
|
-
var _a, _b;
|
|
201
|
-
(_a = datepickerRef === null || datepickerRef === void 0 ? void 0 : datepickerRef.current) === null || _a === void 0 ? void 0 : _a.onClearClick(event);
|
|
202
|
-
(_b = datepickerRef === null || datepickerRef === void 0 ? void 0 : datepickerRef.current) === null || _b === void 0 ? void 0 : _b.handleFocus(event);
|
|
203
|
-
}, []);
|
|
204
|
-
return (jsx(React.Fragment, { children: clearLabel ? (jsx(Label, { className: clsx('react-datepicker__clear-label', 'cursor_type_pointer'), label: clearLabel, labelTextColor: clearLabelTextColor, labelTextColorHover: clearLabelTextColorHover, labelTextSize: clearLabelTextSize, onClick: onClick })) : ((clearIcon || clearIconSrc) && (jsx(Icon, { className: clsx('react-datepicker__clear-icon', 'cursor_type_pointer'), size: clearIconSize, fill: clearIconFill, fillHover: clearIconFillHover, fillSize: clearIconFillSize, iconFill: clearIconItemFill, iconFillHover: clearIconItemFillHover, imageSrc: clearIconSrc, shape: clearIconShape, SvgImage: clearIcon, onClick: onClick }))) }));
|
|
205
|
-
}
|
|
206
|
-
function DatePickerInputIcon(props) {
|
|
207
|
-
var inputIcon = props.inputIcon, inputIconFill = props.inputIconFill, inputIconFillHover = props.inputIconFillHover, inputIconFillSize = props.inputIconFillSize, inputIconItemFill = props.inputIconItemFill, inputIconShape = props.inputIconShape, inputIconSize = props.inputIconSize, inputIconSrc = props.inputIconSrc, onClick = props.onClick;
|
|
208
|
-
return (jsx(Icon, { className: clsx('react-datepicker__input-icon', 'cursor_type_pointer'), size: inputIconSize, fill: inputIconFill, fillHover: inputIconFillHover, fillSize: inputIconFillSize, iconFill: inputIconItemFill, imageSrc: inputIconSrc, shape: inputIconShape, SvgImage: inputIcon, onClick: function () { return onClick && onClick(); } }));
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export { DatePickerInput, datePickerAppearance, datePickerConfig };
|
|
26
|
+
import '../Link_es_DkW06IM-.js';
|
|
27
|
+
import '../Loader_es_SHdP0IkA.js';
|
|
28
|
+
import '../Input_es_CNduH28G.js';
|
|
29
|
+
import '../Label_es_CiPEDFcR.js';
|
|
30
|
+
import '@itcase/icons/default';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../
|
|
1
|
+
export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../Divider_es_BdU9qjKa.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'clsx';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_vuNthDPa.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -17,5 +17,5 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
21
|
-
import '../
|
|
20
|
+
import '../Divider_es_BdU9qjKa.js';
|
|
21
|
+
import '../Text_es_D012qJ8s.js';
|
|
@@ -17,12 +17,35 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import 'lodash/maxBy';
|
|
18
18
|
import '../hooks/useStyles/styleAttributes.js';
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
var heroTitleAppearanceSize = {
|
|
21
|
+
sizeH1: {
|
|
22
|
+
size: 'h1',
|
|
23
|
+
labelTextSize: 'h1',
|
|
24
|
+
},
|
|
25
|
+
sizeH2: {
|
|
26
|
+
size: 'h2',
|
|
27
|
+
labelTextSize: 'h2',
|
|
28
|
+
},
|
|
29
|
+
sizeH3: {
|
|
30
|
+
size: 'h3',
|
|
31
|
+
labelTextSize: 'h3',
|
|
32
|
+
},
|
|
33
|
+
sizeH4: {
|
|
34
|
+
size: 'h4',
|
|
35
|
+
labelTextSize: 'h4',
|
|
36
|
+
},
|
|
37
|
+
sizeH5: {
|
|
38
|
+
size: 'h5',
|
|
39
|
+
labelTextSize: 'h5',
|
|
40
|
+
},
|
|
41
|
+
sizeH6: {
|
|
42
|
+
size: 'h6',
|
|
43
|
+
labelTextSize: 'h6',
|
|
23
44
|
},
|
|
24
45
|
};
|
|
25
46
|
|
|
47
|
+
var heroTitleAppearance = __assign({}, heroTitleAppearanceSize);
|
|
48
|
+
|
|
26
49
|
var heroTitleConfig = {
|
|
27
50
|
appearance: heroTitleAppearance,
|
|
28
51
|
setAppearance: function (appearanceConfig) {
|
package/dist/components/Icon.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export { I as Icon,
|
|
1
|
+
export { I as Icon, e as iconAppearance, i as iconConfig } from '../Tooltip_es_C7zstTA2.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'clsx';
|
|
6
|
-
import 'react-inlinesvg';
|
|
7
6
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
7
|
import 'lodash/camelCase';
|
|
9
8
|
import 'lodash/castArray';
|
|
@@ -18,7 +17,6 @@ import '../utils/setViewportProperty.js';
|
|
|
18
17
|
import '../hooks/useStyles/useStyles.js';
|
|
19
18
|
import 'lodash/maxBy';
|
|
20
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
+
import '../Text_es_D012qJ8s.js';
|
|
21
|
+
import 'react-inlinesvg';
|
|
21
22
|
import '../Link_es_DkW06IM-.js';
|
|
22
|
-
import '../Tooltip_es_B9hN4Zlm.js';
|
|
23
|
-
import '../Text_es_FJGduy7Z.js';
|
|
24
|
-
import '../Title_es_eejUqSJf.js';
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useState, useMemo, useCallback } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { I as Icon } from '../
|
|
6
|
+
import { I as Icon } from '../Tooltip_es_C7zstTA2.js';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
9
9
|
import 'lodash/upperFirst';
|
|
@@ -14,14 +14,12 @@ import '../context/UIContext.js';
|
|
|
14
14
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
15
15
|
import 'react-responsive';
|
|
16
16
|
import '../utils/setViewportProperty.js';
|
|
17
|
-
import 'react-inlinesvg';
|
|
18
17
|
import '../hooks/useStyles/useStyles.js';
|
|
19
18
|
import 'lodash/maxBy';
|
|
20
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
+
import '../Text_es_D012qJ8s.js';
|
|
21
|
+
import 'react-inlinesvg';
|
|
21
22
|
import '../Link_es_DkW06IM-.js';
|
|
22
|
-
import '../Tooltip_es_B9hN4Zlm.js';
|
|
23
|
-
import '../Text_es_FJGduy7Z.js';
|
|
24
|
-
import '../Title_es_eejUqSJf.js';
|
|
25
23
|
|
|
26
24
|
var InputPasswordAppearance = {
|
|
27
25
|
dev: {
|
package/dist/components/Label.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Label, a as labelAppearance, l as labelConfig } from '../
|
|
1
|
+
export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_CiPEDFcR.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -17,6 +17,7 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
21
|
-
import '../
|
|
22
|
-
import '
|
|
20
|
+
import '../Text_es_D012qJ8s.js';
|
|
21
|
+
import '../Tooltip_es_C7zstTA2.js';
|
|
22
|
+
import 'react-inlinesvg';
|
|
23
|
+
import '../Link_es_DkW06IM-.js';
|
package/dist/components/List.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
1
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
3
|
import clsx from 'clsx';
|
|
3
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
4
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
5
6
|
import { L as Link } from '../Link_es_DkW06IM-.js';
|
|
6
|
-
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -18,9 +18,215 @@ import '../utils/setViewportProperty.js';
|
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
20
|
|
|
21
|
+
var listAppearanceAccent = {
|
|
22
|
+
accent: {
|
|
23
|
+
fill: 'accentPrimary',
|
|
24
|
+
fillHover: 'accentPrimaryHover',
|
|
25
|
+
},
|
|
26
|
+
accentPrimary: {
|
|
27
|
+
fill: 'accentPrimary',
|
|
28
|
+
fillHover: 'accentPrimaryHover',
|
|
29
|
+
borderColor: 'accentBorderPrimary',
|
|
30
|
+
},
|
|
31
|
+
accentSecondary: {
|
|
32
|
+
fill: 'accentPrimary',
|
|
33
|
+
fillHover: 'accentPrimaryHover',
|
|
34
|
+
labelTextColor: 'accentTextSecondary',
|
|
35
|
+
labelTextColorHover: 'accentTextSecondary',
|
|
36
|
+
borderColor: 'accentBorderPrimary',
|
|
37
|
+
loaderFill: 'accentPrimary',
|
|
38
|
+
loaderItemFill: 'accentItemPrimary',
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
var listAppearanceDanger = {
|
|
43
|
+
danger: {
|
|
44
|
+
fill: 'dangerPrimary',
|
|
45
|
+
fillHover: 'dangerPrimaryHover',
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
var listAppearanceError = {
|
|
50
|
+
error: {
|
|
51
|
+
fill: 'errorPrimary',
|
|
52
|
+
fillHover: 'errorPrimaryHover',
|
|
53
|
+
labelTextColor: 'errorTextPrimary',
|
|
54
|
+
labelTextColorHover: 'errorTextPrimary',
|
|
55
|
+
loaderFill: 'errorPrimary',
|
|
56
|
+
loaderItemFill: 'errorItemPrimary',
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
var listAppearanceInfo = {
|
|
61
|
+
info: {
|
|
62
|
+
fill: 'accentPrimary',
|
|
63
|
+
fillHover: 'accentPrimaryHover',
|
|
64
|
+
labelTextColor: 'accentTextPrimary',
|
|
65
|
+
labelTextColorHover: 'accentTextPrimary',
|
|
66
|
+
borderColor: 'accentBorderPrimary',
|
|
67
|
+
loaderFill: 'accentPrimary',
|
|
68
|
+
loaderItemFill: 'accentItemPrimary',
|
|
69
|
+
},
|
|
70
|
+
infoSecondary: {
|
|
71
|
+
fill: 'accentPrimary',
|
|
72
|
+
fillHover: 'accentPrimaryHover',
|
|
73
|
+
labelTextColor: 'accentTextSecondary',
|
|
74
|
+
labelTextColorHover: 'accentTextSecondary',
|
|
75
|
+
borderColor: 'accentBorderPrimary',
|
|
76
|
+
loaderFill: 'accentPrimary',
|
|
77
|
+
loaderItemFill: 'accentItemPrimary',
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
var listAppearancePrimary = {
|
|
82
|
+
primary: {
|
|
83
|
+
fill: 'primaryPrimary',
|
|
84
|
+
fillHover: 'primaryPrimaryHover',
|
|
85
|
+
labelTextColor: 'primaryTextPrimary',
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
var listAppearanceSecondary = {
|
|
90
|
+
secondary: {
|
|
91
|
+
fill: 'secondaryPrimary',
|
|
92
|
+
fillHover: 'secondaryPrimaryHover',
|
|
93
|
+
labelTextColor: 'secondaryTextPrimary',
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
var listAppearanceSize = {
|
|
98
|
+
sizeXXL: {
|
|
99
|
+
size: 'xxl',
|
|
100
|
+
labelTextSize: 'xxl',
|
|
101
|
+
iconAfterFillSize: '24',
|
|
102
|
+
iconAfterSize: '24',
|
|
103
|
+
iconBeforeFillSize: '24',
|
|
104
|
+
iconBeforeSize: '24',
|
|
105
|
+
},
|
|
106
|
+
sizeXL: {
|
|
107
|
+
size: 'xl',
|
|
108
|
+
labelTextSize: 'l',
|
|
109
|
+
iconAfterFillSize: '20',
|
|
110
|
+
iconAfterSize: '20',
|
|
111
|
+
iconBeforeFillSize: '20',
|
|
112
|
+
iconBeforeSize: '20',
|
|
113
|
+
},
|
|
114
|
+
sizeL: {
|
|
115
|
+
size: 'l',
|
|
116
|
+
labelTextSize: 'l',
|
|
117
|
+
iconAfterFillSize: '18',
|
|
118
|
+
iconAfterSize: '18',
|
|
119
|
+
iconBeforeFillSize: '18',
|
|
120
|
+
iconBeforeSize: '18',
|
|
121
|
+
},
|
|
122
|
+
sizeM: {
|
|
123
|
+
size: 'm',
|
|
124
|
+
labelTextSize: 'm',
|
|
125
|
+
iconAfterFillSize: '16',
|
|
126
|
+
iconAfterSize: '16',
|
|
127
|
+
iconBeforeFillSize: '16',
|
|
128
|
+
iconBeforeSize: '16',
|
|
129
|
+
},
|
|
130
|
+
sizeS: {
|
|
131
|
+
size: 's',
|
|
132
|
+
labelTextSize: 's',
|
|
133
|
+
iconAfterFillSize: '14',
|
|
134
|
+
iconAfterSize: '14',
|
|
135
|
+
iconBeforeFillSize: '14',
|
|
136
|
+
iconBeforeSize: '14',
|
|
137
|
+
},
|
|
138
|
+
sizeXS: {
|
|
139
|
+
size: 'xs',
|
|
140
|
+
labelTextSize: 'xs',
|
|
141
|
+
iconAfterFillSize: '12',
|
|
142
|
+
iconAfterSize: '12',
|
|
143
|
+
iconBeforeFillSize: '12',
|
|
144
|
+
iconBeforeSize: '12',
|
|
145
|
+
},
|
|
146
|
+
sizeXXS: {
|
|
147
|
+
size: 'xxs',
|
|
148
|
+
labelTextSize: 'xs',
|
|
149
|
+
iconAfterFillSize: '10',
|
|
150
|
+
iconAfterSize: '10',
|
|
151
|
+
iconBeforeFillSize: '10',
|
|
152
|
+
iconBeforeSize: '10',
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
var listAppearanceStyle = {
|
|
157
|
+
full: {
|
|
158
|
+
borderColor: '0',
|
|
159
|
+
},
|
|
160
|
+
ghost: {
|
|
161
|
+
fill: 'none',
|
|
162
|
+
borderColor: '0',
|
|
163
|
+
},
|
|
164
|
+
outlined: {
|
|
165
|
+
fill: 'none',
|
|
166
|
+
},
|
|
167
|
+
solid: {
|
|
168
|
+
borderColor: '0',
|
|
169
|
+
},
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
var listAppearanceSuccess = {
|
|
173
|
+
success: {
|
|
174
|
+
fill: 'successPrimary',
|
|
175
|
+
fillHover: 'successPrimaryHover',
|
|
176
|
+
labelTextColor: 'successTextSecondary',
|
|
177
|
+
labelTextColorHover: 'successTextSecondary',
|
|
178
|
+
loaderFill: 'successPrimary',
|
|
179
|
+
loaderItemFill: 'successItemPrimary',
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
var listAppearanceSurface = {
|
|
184
|
+
surfacePrimary: {
|
|
185
|
+
fill: 'surfacePrimary',
|
|
186
|
+
fillHover: 'surfacePrimaryHover',
|
|
187
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
188
|
+
},
|
|
189
|
+
surfaceQuaternary: {
|
|
190
|
+
fill: 'surfaceQuaternary',
|
|
191
|
+
fillHover: 'surfaceQuaternaryHover',
|
|
192
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
193
|
+
},
|
|
194
|
+
surfaceSecondary: {
|
|
195
|
+
fill: 'surfaceSecondary',
|
|
196
|
+
fillHover: 'surfaceSecondaryHover',
|
|
197
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
198
|
+
loaderFill: 'surfaceSecondary',
|
|
199
|
+
loaderItemFill: 'surfaceItemPrimary',
|
|
200
|
+
},
|
|
201
|
+
surfaceTertiary: {
|
|
202
|
+
fill: 'surfaceTertiary',
|
|
203
|
+
fillHover: 'surfaceTertiaryHover',
|
|
204
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
205
|
+
},
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
var listAppearanceWarning = {
|
|
209
|
+
warning: {
|
|
210
|
+
fill: 'warningPrimary',
|
|
211
|
+
fillHover: 'warningPrimaryHover',
|
|
212
|
+
labelTextColor: 'warningTextSecondary',
|
|
213
|
+
labelTextColorHover: 'warningTextSecondary',
|
|
214
|
+
loaderFill: 'warningPrimary',
|
|
215
|
+
loaderItemFill: 'warningItemPrimary',
|
|
216
|
+
},
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
var listAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, listAppearanceSize), listAppearanceStyle), listAppearanceAccent), listAppearanceDanger), listAppearanceError), listAppearanceInfo), listAppearancePrimary), listAppearanceSecondary), listAppearanceSuccess), listAppearanceSurface), listAppearanceWarning);
|
|
220
|
+
|
|
221
|
+
var listConfig = {
|
|
222
|
+
appearance: listAppearance};
|
|
21
223
|
function List(props) {
|
|
22
|
-
var className = props.className, type = props.type, style = props.style, children = props.children;
|
|
23
|
-
var
|
|
224
|
+
var className = props.className, type = props.type, appearance = props.appearance, style = props.style, children = props.children;
|
|
225
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
226
|
+
var _a;
|
|
227
|
+
return (__assign(__assign({}, resultConfig), (_a = listConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
228
|
+
}, {});
|
|
229
|
+
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
24
230
|
var directionClass = propsGenerator.directionClass, bulletFillClass = propsGenerator.bulletFillClass, bulletSizeClass = propsGenerator.bulletSizeClass, bulletTextColorClass = propsGenerator.bulletTextColorClass, sizeClass = propsGenerator.sizeClass;
|
|
25
231
|
// @ts-expect-error
|
|
26
232
|
var ulStyles = useStyles(props).styles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../
|
|
1
|
+
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader_es_SHdP0IkA.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'clsx';
|
|
@@ -17,4 +17,4 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
20
|
+
import '../Text_es_D012qJ8s.js';
|