@itcase/ui 1.8.19 → 1.8.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar_cjs_DSXs1Yrg.js +221 -0
- package/dist/Avatar_es_DByUaJL6.js +217 -0
- package/dist/{Button_cjs_DjCsrrlr.js → Button_cjs_CukkOE-v.js} +15 -6
- package/dist/{Button_es_CHDT0-8K.js → Button_es_DXcCJuNX.js} +15 -6
- package/dist/{ChipsGroup_cjs_CTpMiyQb.js → ChipsGroup_cjs_9wrMZrzL.js} +2 -2
- package/dist/{ChipsGroup_es_CP_xm25C.js → ChipsGroup_es_CjGZ-ulT.js} +2 -2
- package/dist/{DatePicker_cjs_DPtOL1eW.js → DatePicker_cjs_BriuTQqj.js} +4 -4
- package/dist/{DatePicker_es_DCuzMD0T.js → DatePicker_es_DzY_fVii.js} +4 -4
- package/dist/{DropdownItem_cjs_DW0UXopm.js → DropdownItem_cjs_DY61IdLK.js} +15 -15
- package/dist/{DropdownItem_es_vuNthDPa.js → DropdownItem_es_D8mY9vFZ.js} +15 -15
- package/dist/{Group_cjs_B0oM0pjF.js → Group_cjs_Cwt0gWk4.js} +9 -2
- package/dist/{Group_es_B8pQHYsC.js → Group_es_CYW2Hquh.js} +9 -2
- package/dist/{Image_cjs_DuIBtUq5.js → Image_cjs_CCWqbNn4.js} +11 -3
- package/dist/{Image_es_CSzHhlA1.js → Image_es_DZUVp0FS.js} +11 -3
- package/dist/{Label_cjs_mw4pHZR1.js → Label_cjs_CnwET26s.js} +12 -4
- package/dist/{Label_es_CiPEDFcR.js → Label_es_Dc18d1gY.js} +12 -4
- package/dist/Link_cjs_DbRGq2Yk.js +303 -0
- package/dist/Link_es_DxtZLeKY.js +298 -0
- package/dist/{Loader_cjs_DZbIy6Ko.js → Loader_cjs_3VRzFLI2.js} +14 -2
- package/dist/{Loader_es_SHdP0IkA.js → Loader_es_DEYowVdU.js} +14 -2
- package/dist/Text_cjs_DPhKj3wf.js +68 -0
- package/dist/{Text_es_D012qJ8s.js → Text_es_BRb3qqKM.js} +8 -3
- package/dist/{Tooltip_cjs_BKOjNMkt.js → Tooltip_cjs_PkuRdzzy.js} +480 -17
- package/dist/{Tooltip_es_C7zstTA2.js → Tooltip_es_BaGfb-qC.js} +480 -17
- package/dist/cjs/components/Accordion.js +3 -3
- package/dist/cjs/components/Avatar.js +13 -236
- package/dist/cjs/components/AvatarStack.js +35 -0
- package/dist/cjs/components/Badge.js +3 -3
- package/dist/cjs/components/Breadcrumbs.js +4 -4
- package/dist/cjs/components/Button.js +5 -5
- package/dist/cjs/components/Cell.js +16 -150
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice.js +6 -6
- package/dist/cjs/components/Code.js +2 -8
- package/dist/cjs/components/CookiesWarning.js +13 -6
- package/dist/cjs/components/DatePeriod.js +8 -8
- package/dist/cjs/components/DatePicker.js +7 -7
- package/dist/cjs/components/Drawer.js +26 -2
- package/dist/cjs/components/Dropdown.js +5 -2
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/Icon.js +3 -3
- package/dist/cjs/components/Image.js +2 -2
- package/dist/cjs/components/InputPassword.js +166 -44
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/MenuItem.js +30 -10
- package/dist/cjs/components/Modal.js +4 -4
- package/dist/cjs/components/ModalSheetBottom.js +7 -0
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +11 -9
- package/dist/cjs/components/Radio.js +1 -1
- package/dist/cjs/components/Response/img.js +33 -0
- package/dist/cjs/components/Response.js +96 -184
- package/dist/cjs/components/Search.js +126 -13
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +4 -4
- package/dist/cjs/components/Swiper.js +3 -3
- package/dist/cjs/components/Switch.js +238 -3
- package/dist/cjs/components/Tab.js +3 -3
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +81 -8
- package/dist/cjs/components/Title.js +3 -3
- package/dist/cjs/components/Tooltip.js +3 -3
- package/dist/components/Accordion.js +3 -3
- package/dist/components/Avatar.js +10 -237
- package/dist/components/AvatarStack.js +33 -0
- package/dist/components/Badge.js +3 -3
- package/dist/components/Breadcrumbs.js +4 -4
- package/dist/components/Button.js +5 -5
- package/dist/components/Cell.js +16 -150
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice.js +6 -6
- package/dist/components/Code.js +2 -8
- package/dist/components/CookiesWarning.js +13 -7
- package/dist/components/DatePeriod.js +8 -8
- package/dist/components/DatePicker.js +7 -7
- package/dist/components/Drawer.js +26 -2
- package/dist/components/Dropdown.js +5 -2
- package/dist/components/Group.js +1 -1
- package/dist/components/Icon.js +3 -3
- package/dist/components/Image.js +2 -2
- package/dist/components/InputPassword.js +166 -43
- package/dist/components/Label.js +4 -4
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +1 -1
- package/dist/components/MenuItem.js +30 -10
- package/dist/components/Modal.js +4 -4
- package/dist/components/ModalSheetBottom.js +7 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +11 -9
- package/dist/components/Radio.js +1 -1
- package/dist/components/Response/img.js +31 -0
- package/dist/components/Response.js +96 -184
- package/dist/components/Search.js +126 -13
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +4 -4
- package/dist/components/Swiper.js +3 -3
- package/dist/components/Switch.js +238 -3
- package/dist/components/Tab.js +3 -3
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +81 -8
- package/dist/components/Title.js +3 -3
- package/dist/components/Tooltip.js +3 -3
- package/dist/css/components/AvatarStack/AvatarStack.css +54 -0
- package/dist/css/components/Code/Code.css +3 -6
- package/dist/css/components/Icon/Icon.css +128 -4
- package/dist/css/components/Label/Label.css +4 -4
- package/dist/css/components/MenuItem/MenuItem.css +19 -43
- package/dist/css/components/Response/Response.css +6 -3
- package/dist/css/components/Tab/Tab.css +14 -31
- package/dist/css/components/Text/Text.css +0 -9
- package/dist/css/components/Tile/Tile.css +7 -5
- package/dist/css/styles/border-color/border-color_hover.css +6 -8
- package/dist/css/styles/fill/fill_active.css +19 -9
- package/dist/css/styles/fill/fill_active_hover.css +19 -0
- package/dist/css/styles/fill/fill_hover.css +19 -0
- package/dist/css/styles/svg-color/svg_fill.css +5 -5
- package/dist/css/styles/text-color/text-color_active.css +17 -0
- package/dist/css/styles/text-color/text-color_active_hover.css +40 -0
- package/dist/stories/Plsyground.mdx +0 -1
- package/dist/stories/index.stories.js +46 -0
- package/dist/stories/useDevicePropsGenerator.mdx +76 -102
- package/dist/stories/useMediaQueries.mdx +32 -7
- package/dist/stories/useStyles.mdx +50 -2
- package/dist/types/components/Avatar/appearance/avatarAccent.d.ts +0 -4
- package/dist/types/components/Avatar/appearance/avatarDanger.d.ts +0 -1
- package/dist/types/components/Avatar/appearance/avatarInfo.d.ts +0 -4
- package/dist/types/components/Avatar/appearance/avatarPrimary.d.ts +0 -1
- package/dist/types/components/Avatar/appearance/avatarSecondary.d.ts +0 -1
- package/dist/types/components/Avatar/appearance/avatarSuccess.d.ts +1 -3
- package/dist/types/components/Avatar/appearance/avatarSurface.d.ts +0 -6
- package/dist/types/components/AvatarStack/AvatarStack.d.ts +3 -0
- package/dist/types/components/AvatarStack/AvatarStack.interface.d.ts +9 -0
- package/dist/types/components/AvatarStack/index.d.ts +2 -0
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +1 -0
- package/dist/types/components/Button/appearance/buttonDanger.d.ts +8 -0
- package/dist/types/components/Cell/appearance/cellSize.d.ts +8 -44
- package/dist/types/components/Code/appearance/codeSize.d.ts +2 -8
- package/dist/types/components/CookiesWarning/CookiesWarning.appearance.d.ts +5 -0
- package/dist/types/components/CookiesWarning/index.d.ts +2 -1
- package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +25 -0
- package/dist/types/components/Dropdown/appearance/dropdownAccent.d.ts +0 -6
- package/dist/types/components/Dropdown/appearance/dropdownSurface.d.ts +5 -0
- package/dist/types/components/InputPassword/InputPassword.appearance.d.ts +2 -3
- package/dist/types/components/InputPassword/InputPassword.interface.d.ts +4 -11
- package/dist/types/components/InputPassword/appearance/inputPasswordDefault.d.ts +24 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordDisabled.d.ts +20 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordError.d.ts +20 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordRequire.d.ts +20 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordSize.d.ts +59 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordStyle.d.ts +16 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordSuccess.d.ts +20 -0
- package/dist/types/components/InputPassword/index.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelAccent.d.ts +7 -0
- package/dist/types/components/Label/appearance/labelSize.d.ts +1 -0
- package/dist/types/components/Link/Link.interface.d.ts +1 -1
- package/dist/types/components/{Cell/appearance/cellAccent.d.ts → Link/appearance/linkAccent.d.ts} +2 -3
- package/dist/types/components/{Cell/appearance/cellDanger.d.ts → Link/appearance/linkDanger.d.ts} +2 -2
- package/dist/types/components/Link/appearance/linkDisabled.d.ts +20 -0
- package/dist/types/components/{Cell/appearance/cellError.d.ts → Link/appearance/linkError.d.ts} +2 -2
- package/dist/types/components/{Cell/appearance/cellInfo.d.ts → Link/appearance/linkInfo.d.ts} +2 -2
- package/dist/types/components/{Cell/appearance/cellPrimary.d.ts → Link/appearance/linkPrimary.d.ts} +2 -2
- package/dist/types/components/Link/appearance/linkRequire.d.ts +20 -0
- package/dist/types/components/{Cell/appearance/cellSecondary.d.ts → Link/appearance/linkSecondary.d.ts} +2 -2
- package/dist/types/components/Link/appearance/linkSize.d.ts +59 -0
- package/dist/types/components/Link/appearance/linkStyle.d.ts +16 -0
- package/dist/types/components/{Cell/appearance/cellSuccess.d.ts → Link/appearance/linkSuccess.d.ts} +2 -2
- package/dist/types/components/Link/appearance/linkSurface.d.ts +25 -0
- package/dist/types/components/{Cell/appearance/cellWarning.d.ts → Link/appearance/linkWarning.d.ts} +2 -2
- package/dist/types/components/Loader/Loader.appearance.d.ts +3 -2
- package/dist/types/components/Loader/Loader.interface.d.ts +16 -17
- package/dist/types/components/Loader/appearance/loaderSize.d.ts +12 -0
- package/dist/types/components/MenuItem/appearance/menuItemSize.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +4 -2
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.appearance.d.ts +5 -0
- package/dist/types/components/ModalSheetBottom/index.d.ts +1 -0
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +8 -0
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +2 -0
- package/dist/types/components/Response/Response.appearance.d.ts +2 -2
- package/dist/types/components/Response/appearance/responceConfirm.d.ts +13 -0
- package/dist/types/components/Response/appearance/responceFail.d.ts +13 -0
- package/dist/types/components/Response/appearance/responceNothingFound.d.ts +13 -0
- package/dist/types/components/Response/appearance/responceRefresh.d.ts +13 -0
- package/dist/types/components/Response/appearance/responseError.d.ts +13 -0
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +13 -0
- package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +13 -0
- package/dist/types/components/Response/appearance/responseWarning.d.ts +13 -0
- package/dist/types/components/Response/img/index.d.ts +12 -0
- package/dist/types/components/Search/appearance/searchDefault.d.ts +24 -0
- package/dist/types/components/Search/appearance/searchDisabled.d.ts +20 -0
- package/dist/types/components/Search/appearance/searchError.d.ts +20 -0
- package/dist/types/components/Search/appearance/searchRequire.d.ts +20 -0
- package/dist/types/components/Search/appearance/searchSize.d.ts +18 -8
- package/dist/types/components/Search/appearance/searchSuccess.d.ts +20 -0
- package/dist/types/components/Switch/Switch.appearance.d.ts +1 -1
- package/dist/types/components/Switch/appearance/switchAccent.d.ts +20 -0
- package/dist/types/components/Switch/appearance/switchDanger.d.ts +7 -0
- package/dist/types/components/Switch/appearance/switchDisabled.d.ts +20 -0
- package/dist/types/components/Switch/appearance/switchError.d.ts +11 -0
- package/dist/types/components/Switch/appearance/switchInfo.d.ts +21 -0
- package/dist/types/components/Switch/appearance/switchPrimary.d.ts +8 -0
- package/dist/types/components/Switch/appearance/switchRequire.d.ts +20 -0
- package/dist/types/components/Switch/appearance/switchSecondary.d.ts +8 -0
- package/dist/types/components/Switch/appearance/switchSize.d.ts +59 -0
- package/dist/types/components/Switch/appearance/switchStyle.d.ts +16 -0
- package/dist/types/components/Switch/appearance/switchSuccess.d.ts +11 -0
- package/dist/types/components/Switch/appearance/switchSurface.d.ts +25 -0
- package/dist/types/components/Switch/appearance/switchWarning.d.ts +11 -0
- package/dist/types/components/Tile/appearance/tileSize.d.ts +51 -0
- package/dist/types/components/Tile/appearance/tileSurface.d.ts +24 -0
- package/dist/types/components/Title/Title.appearance.d.ts +2 -2
- package/dist/types/components/Title/Title.interface.d.ts +3 -3
- package/dist/types/components/Title/appearance/titleAccent.d.ts +20 -0
- package/dist/types/components/Title/appearance/titleDanger.d.ts +7 -0
- package/dist/types/components/Title/appearance/titleDisabled.d.ts +20 -0
- package/dist/types/components/Title/appearance/titleError.d.ts +11 -0
- package/dist/types/components/Title/appearance/titleInfo.d.ts +21 -0
- package/dist/types/components/Title/appearance/titlePrimary.d.ts +8 -0
- package/dist/types/components/Title/appearance/titleRequire.d.ts +20 -0
- package/dist/types/components/Title/appearance/titleSecondary.d.ts +8 -0
- package/dist/types/components/Title/appearance/titleSize.d.ts +59 -0
- package/dist/types/components/Title/appearance/titleStyle.d.ts +16 -0
- package/dist/types/components/Title/appearance/titleSuccess.d.ts +11 -0
- package/dist/types/components/Title/appearance/titleSurface.d.ts +25 -0
- package/dist/types/components/Title/appearance/titleWarning.d.ts +11 -0
- package/dist/types/components/Tooltip/Tooltip.appearance.d.ts +1 -1
- package/dist/types/components/Tooltip/appearance/tooltipAccent.d.ts +20 -0
- package/dist/types/components/Tooltip/appearance/tooltipDanger.d.ts +7 -0
- package/dist/types/components/Tooltip/appearance/tooltipDisabled.d.ts +20 -0
- package/dist/types/components/Tooltip/appearance/tooltipError.d.ts +11 -0
- package/dist/types/components/Tooltip/appearance/tooltipInfo.d.ts +21 -0
- package/dist/types/components/Tooltip/appearance/tooltipPrimary.d.ts +8 -0
- package/dist/types/components/Tooltip/appearance/tooltipRequire.d.ts +20 -0
- package/dist/types/components/Tooltip/appearance/tooltipSecondary.d.ts +8 -0
- package/dist/types/components/Tooltip/appearance/tooltipSize.d.ts +59 -0
- package/dist/types/components/Tooltip/appearance/tooltipStyle.d.ts +16 -0
- package/dist/types/components/Tooltip/appearance/tooltipSuccess.d.ts +11 -0
- package/dist/types/components/Tooltip/appearance/tooltipSurface.d.ts +25 -0
- package/dist/types/components/Tooltip/appearance/tooltipWarning.d.ts +11 -0
- package/package.json +7 -7
- package/dist/Link_cjs_yht44xJv.js +0 -68
- package/dist/Link_es_DkW06IM-.js +0 -63
- package/dist/Text_cjs_iL1l_7V1.js +0 -63
- package/dist/cjs/components/InputMask.js +0 -65
- package/dist/cjs/components/Panel.js +0 -44
- package/dist/components/InputMask.js +0 -62
- package/dist/components/Panel.js +0 -41
- package/dist/css/components/InputMask/InputMask.css +0 -77
- package/dist/css/components/Panel/Panel.css +0 -107
- package/dist/stories/Accordion.mdx +0 -11
- package/dist/stories/AccordionItem.mdx +0 -15
- package/dist/stories/Breadcrumbs.mdx +0 -15
- package/dist/stories/BreadcrumbsItem.mdx +0 -17
- package/dist/stories/Dot.mdx +0 -19
- package/dist/stories/Drawer.mdx +0 -11
- package/dist/stories/Dropdown.mdx +0 -12
- package/dist/stories/DropdownItem.mdx +0 -19
- package/dist/stories/Image.mdx +0 -15
- package/dist/stories/Input.mdx +0 -31
- package/dist/stories/InputPassword.mdx +0 -15
- package/dist/stories/Label.mdx +0 -11
- package/dist/stories/ListItem.mdx +0 -11
- package/dist/stories/Logo.mdx +0 -24
- package/dist/stories/MenuItem.mdx +0 -15
- package/dist/stories/Modal.mdx +0 -15
- package/dist/stories/Notification.mdx +0 -23
- package/dist/stories/Pagination.mdx +0 -11
- package/dist/stories/Radio.mdx +0 -28
- package/dist/stories/Response.mdx +0 -11
- package/dist/stories/SearchInput.mdx +0 -19
- package/dist/stories/Switch.mdx +0 -23
- package/dist/stories/Tab.mdx +0 -27
- package/dist/stories/Text.mdx +0 -35
- package/dist/stories/Tile.mdx +0 -11
- package/dist/types/components/InputMask/InputMask.d.ts +0 -5
- package/dist/types/components/InputMask/InputMask.interface.d.ts +0 -54
- package/dist/types/components/InputMask/index.d.ts +0 -1
- package/dist/types/components/Panel/Panel.d.ts +0 -5
- package/dist/types/components/Panel/Panel.interface.d.ts +0 -58
- package/dist/types/components/Panel/index.d.ts +0 -1
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { I as Image } from '../Image_es_CSzHhlA1.js';
|
|
8
|
-
import { T as Text } from '../Text_es_D012qJ8s.js';
|
|
1
|
+
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../Avatar_es_DByUaJL6.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,236 +14,11 @@ import '../context/UIContext.js';
|
|
|
16
14
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
17
15
|
import 'react-responsive';
|
|
18
16
|
import '../utils/setViewportProperty.js';
|
|
17
|
+
import '../Tooltip_es_BaGfb-qC.js';
|
|
19
18
|
import '../hooks/useStyles/useStyles.js';
|
|
20
19
|
import 'lodash/maxBy';
|
|
21
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
|
+
import '../Text_es_BRb3qqKM.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../
|
|
24
|
-
|
|
25
|
-
var avatarAppearanceAccent = {
|
|
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
|
-
borderColor: 'accentBorderPrimary',
|
|
39
|
-
textColor: 'accentTextSecondary',
|
|
40
|
-
textColorHover: 'accentTextSecondary',
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
var avatarAppearanceDanger = {
|
|
45
|
-
danger: {
|
|
46
|
-
fill: 'dangerPrimary',
|
|
47
|
-
fillHover: 'dangerPrimaryHover',
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
var avatarAppearanceError = {
|
|
52
|
-
error: {
|
|
53
|
-
fill: 'errorPrimary',
|
|
54
|
-
fillHover: 'errorPrimaryHover',
|
|
55
|
-
textColor: 'errorTextPrimary',
|
|
56
|
-
textColorHover: 'errorTextPrimary',
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
var avatarAppearanceInfo = {
|
|
61
|
-
info: {
|
|
62
|
-
fill: 'accentPrimary',
|
|
63
|
-
fillHover: 'accentPrimaryHover',
|
|
64
|
-
borderColor: 'accentBorderPrimary',
|
|
65
|
-
textColor: 'accentTextPrimary',
|
|
66
|
-
textColorHover: 'accentTextPrimary',
|
|
67
|
-
},
|
|
68
|
-
infoSecondary: {
|
|
69
|
-
fill: 'accentPrimary',
|
|
70
|
-
fillHover: 'accentPrimaryHover',
|
|
71
|
-
borderColor: 'accentBorderPrimary',
|
|
72
|
-
textColor: 'accentTextSecondary',
|
|
73
|
-
textColorHover: 'accentTextSecondary',
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
var avatarAppearancePrimary = {
|
|
78
|
-
primary: {
|
|
79
|
-
fill: 'primaryPrimary',
|
|
80
|
-
fillHover: 'primaryPrimaryHover',
|
|
81
|
-
textColor: 'primaryTextPrimary',
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
var avatarAppearanceSecondary = {
|
|
86
|
-
secondary: {
|
|
87
|
-
fill: 'secondaryPrimary',
|
|
88
|
-
fillHover: 'secondaryPrimaryHover',
|
|
89
|
-
textColor: 'secondaryTextPrimary',
|
|
90
|
-
},
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
var avatarAppearanceSize = {
|
|
94
|
-
size16: {
|
|
95
|
-
size: '16',
|
|
96
|
-
textSize: 'xxl',
|
|
97
|
-
iconAfterFillSize: '12',
|
|
98
|
-
iconAfterSize: '12',
|
|
99
|
-
iconBeforeFillSize: '12',
|
|
100
|
-
iconBeforeSize: '12',
|
|
101
|
-
},
|
|
102
|
-
size20: {
|
|
103
|
-
size: '20',
|
|
104
|
-
textSize: 'xxl',
|
|
105
|
-
iconAfterFillSize: '12',
|
|
106
|
-
iconAfterSize: '12',
|
|
107
|
-
iconBeforeFillSize: '12',
|
|
108
|
-
iconBeforeSize: '12',
|
|
109
|
-
},
|
|
110
|
-
size24: {
|
|
111
|
-
size: '24',
|
|
112
|
-
textSize: 'xxl',
|
|
113
|
-
iconAfterFillSize: '12',
|
|
114
|
-
iconAfterSize: '12',
|
|
115
|
-
iconBeforeFillSize: '12',
|
|
116
|
-
iconBeforeSize: '12',
|
|
117
|
-
},
|
|
118
|
-
size32: {
|
|
119
|
-
size: '32',
|
|
120
|
-
textSize: 'xxl',
|
|
121
|
-
iconAfterFillSize: '12',
|
|
122
|
-
iconAfterSize: '12',
|
|
123
|
-
iconBeforeFillSize: '12',
|
|
124
|
-
iconBeforeSize: '12',
|
|
125
|
-
},
|
|
126
|
-
size40: {
|
|
127
|
-
size: '40',
|
|
128
|
-
textSize: 'xxl',
|
|
129
|
-
iconAfterFillSize: '12',
|
|
130
|
-
iconAfterSize: '12',
|
|
131
|
-
iconBeforeFillSize: '12',
|
|
132
|
-
iconBeforeSize: '12',
|
|
133
|
-
},
|
|
134
|
-
size56: {
|
|
135
|
-
size: '56',
|
|
136
|
-
textSize: 'xxl',
|
|
137
|
-
iconAfterFillSize: '16',
|
|
138
|
-
iconAfterSize: '16',
|
|
139
|
-
iconBeforeFillSize: '16',
|
|
140
|
-
iconBeforeSize: '16',
|
|
141
|
-
},
|
|
142
|
-
size96: {
|
|
143
|
-
size: '96',
|
|
144
|
-
textSize: 'xxl',
|
|
145
|
-
iconAfterFillSize: '32',
|
|
146
|
-
iconAfterSize: '32',
|
|
147
|
-
iconBeforeFillSize: '32',
|
|
148
|
-
iconBeforeSize: '32',
|
|
149
|
-
},
|
|
150
|
-
size144: {
|
|
151
|
-
size: '144',
|
|
152
|
-
textSize: '1xxl',
|
|
153
|
-
iconAfterFillSize: '40',
|
|
154
|
-
iconAfterSize: '40',
|
|
155
|
-
iconBeforeFillSize: '40',
|
|
156
|
-
iconBeforeSize: '40',
|
|
157
|
-
},
|
|
158
|
-
size240: {
|
|
159
|
-
size: '240',
|
|
160
|
-
textSize: '2xxl',
|
|
161
|
-
iconAfterFillSize: '40',
|
|
162
|
-
iconAfterSize: '40',
|
|
163
|
-
iconBeforeFillSize: '40',
|
|
164
|
-
iconBeforeSize: '40',
|
|
165
|
-
},
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
var avatarAppearanceStyle = {
|
|
169
|
-
full: {
|
|
170
|
-
borderColor: '0',
|
|
171
|
-
},
|
|
172
|
-
ghost: {
|
|
173
|
-
fill: 'none',
|
|
174
|
-
borderColor: '0',
|
|
175
|
-
},
|
|
176
|
-
outlined: {
|
|
177
|
-
fill: 'none',
|
|
178
|
-
},
|
|
179
|
-
solid: {
|
|
180
|
-
borderColor: '0',
|
|
181
|
-
},
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
var avatarAppearanceSuccess = {
|
|
185
|
-
success: {
|
|
186
|
-
fill: 'successPrimary',
|
|
187
|
-
fillHover: 'successPrimaryHover',
|
|
188
|
-
textColorPropsColor: 'successTextSecondary',
|
|
189
|
-
textColorPropsColorHover: 'successTextSecondary',
|
|
190
|
-
},
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
var avatarAppearanceSurface = {
|
|
194
|
-
surfacePrimary: {
|
|
195
|
-
fill: 'surfacePrimary',
|
|
196
|
-
fillHover: 'surfacePrimaryHover',
|
|
197
|
-
textColor: 'surfaceTextPrimary',
|
|
198
|
-
},
|
|
199
|
-
surfaceQuaternary: {
|
|
200
|
-
fill: 'surfaceQuaternary',
|
|
201
|
-
fillHover: 'surfaceQuaternaryHover',
|
|
202
|
-
textColor: 'surfaceTextPrimary',
|
|
203
|
-
},
|
|
204
|
-
surfaceSecondary: {
|
|
205
|
-
fill: 'surfaceSecondary',
|
|
206
|
-
fillHover: 'surfaceSecondaryHover',
|
|
207
|
-
textColor: 'surfaceTextPrimary',
|
|
208
|
-
loaderFill: 'surfaceSecondary',
|
|
209
|
-
loaderItemFill: 'surfaceItemPrimary',
|
|
210
|
-
},
|
|
211
|
-
surfaceTertiary: {
|
|
212
|
-
fill: 'surfaceTertiary',
|
|
213
|
-
fillHover: 'surfaceTertiaryHover',
|
|
214
|
-
textColor: 'surfaceTextPrimary',
|
|
215
|
-
},
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
var avatarAppearanceWarning = {
|
|
219
|
-
warning: {
|
|
220
|
-
fill: 'warningPrimary',
|
|
221
|
-
fillHover: 'warningPrimaryHover',
|
|
222
|
-
textColor: 'warningTextSecondary',
|
|
223
|
-
textColorHover: 'warningTextSecondary',
|
|
224
|
-
},
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
var avatarAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, avatarAppearanceSize), avatarAppearanceStyle), avatarAppearanceAccent), avatarAppearanceDanger), avatarAppearanceError), avatarAppearanceInfo), avatarAppearancePrimary), avatarAppearanceSecondary), avatarAppearanceSuccess), avatarAppearanceSurface), avatarAppearanceWarning);
|
|
228
|
-
|
|
229
|
-
var avatarConfig = {
|
|
230
|
-
appearance: avatarAppearance,
|
|
231
|
-
setAppearance: function (appearanceConfig) {
|
|
232
|
-
avatarConfig.appearance = appearanceConfig;
|
|
233
|
-
},
|
|
234
|
-
};
|
|
235
|
-
function Avatar(props) {
|
|
236
|
-
var className = props.className, type = props.type, appearance = props.appearance, src = props.src, count = props.count, Dot = props.Dot, _a = props.firstName, firstName = _a === void 0 ? '' : _a, _b = props.secondName, secondName = _b === void 0 ? '' : _b, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick;
|
|
237
|
-
var avatarChars = useMemo(function () {
|
|
238
|
-
var firstChar = ((firstName === null || firstName === void 0 ? void 0 : firstName[0]) || '').toUpperCase();
|
|
239
|
-
var secondChar = ((secondName === null || secondName === void 0 ? void 0 : secondName[0]) || '').toUpperCase();
|
|
240
|
-
return "".concat(firstChar).concat(secondChar);
|
|
241
|
-
}, [firstName, secondName]);
|
|
242
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
243
|
-
var _a;
|
|
244
|
-
return (__assign(__assign({}, resultConfig), (_a = avatarConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
245
|
-
}, {});
|
|
246
|
-
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
247
|
-
var size = propsGenerator.size, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWeight = propsGenerator.textWeight, icon = propsGenerator.icon, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
|
|
248
|
-
return (jsx("div", { className: clsx(className, 'avatar', shapeClass && "avatar_shape_".concat(shapeClass), size && "avatar_size_".concat(sizeClass), type && "avatar_type_".concat(type), Dot && 'avatar_status', isSkeleton && "avatar_skeleton", onClick && 'cursor_type_pointer'), onClick: onClick, children: jsxs("div", { className: clsx('avatar__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), children: [before, src ? (jsx(Image, { className: "avatar__image", src: src })) : (jsx(Text, { className: "avatar__text", size: textSize, textColor: textColor, textWeight: textWeight, children: avatarChars || count })), (icon || iconSrc) && (jsx(Icon, { className: "avatar__icon", fill: iconFill, fillHover: iconFillHover, fillSize: iconFillSize, iconFill: iconItemFill, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), Dot, after] }) }));
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export { Avatar, avatarAppearance, avatarConfig };
|
|
23
|
+
import '../Link_es_DxtZLeKY.js';
|
|
24
|
+
import '../Image_es_DZUVp0FS.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
4
|
+
import { A as Avatar } from '../Avatar_es_DByUaJL6.js';
|
|
5
|
+
import { G as Group } from '../Group_es_CYW2Hquh.js';
|
|
6
|
+
import { T as Text } from '../Text_es_BRb3qqKM.js';
|
|
7
|
+
import 'react';
|
|
8
|
+
import 'lodash/camelCase';
|
|
9
|
+
import 'lodash/maxBy';
|
|
10
|
+
import 'lodash/upperFirst';
|
|
11
|
+
import '../context/Notifications.js';
|
|
12
|
+
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
13
|
+
import 'uuid';
|
|
14
|
+
import '@itcase/common';
|
|
15
|
+
import '../context/UIContext.js';
|
|
16
|
+
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
17
|
+
import 'react-responsive';
|
|
18
|
+
import '../utils/setViewportProperty.js';
|
|
19
|
+
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
+
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
21
|
+
import 'lodash/castArray';
|
|
22
|
+
import '../Tooltip_es_BaGfb-qC.js';
|
|
23
|
+
import 'react-inlinesvg';
|
|
24
|
+
import '../Link_es_DxtZLeKY.js';
|
|
25
|
+
import '../Image_es_DZUVp0FS.js';
|
|
26
|
+
|
|
27
|
+
function AvatarStack(props) {
|
|
28
|
+
var className = props.className, _a = props.direction, direction = _a === void 0 ? 'horizontal' : _a; props.textSize; var avatarSize = props.avatarSize, avatarsList = props.avatarsList, _b = props.showCountUsers, showCountUsers = _b === void 0 ? 3 : _b;
|
|
29
|
+
var avatarStackStyles = useStyles(props).styles;
|
|
30
|
+
return (avatarsList.length && (jsxs("div", { className: clsx(className, 'avatar-stack', direction && "group_direction_".concat(direction)), style: avatarStackStyles, children: [avatarsList.slice(0, showCountUsers).map(function (item) { return (jsx(Avatar, { appearance: "size".concat(avatarSize, " surfaceSecondary"), className: "avatar-stack__item", size: avatarSize, src: item.src, textSize: "l", firstName: item.firstName, secondName: item.lastName, shape: "circular" }, item.id)); }), avatarsList.length > showCountUsers && (jsx(Group, { width: avatarSize, height: avatarSize, fill: "surfaceSecondary", className: "avatar-stack__item avatar-stack__item-text", children: jsxs(Text, { size: "xs", textColor: "surfaceTextPrimary", textWeight: "600", children: ["+", avatarsList.length - showCountUsers] }) }))] })));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { AvatarStack };
|
package/dist/components/Badge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../
|
|
1
|
+
export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../Tooltip_es_BaGfb-qC.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -17,6 +17,6 @@ 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_BRb3qqKM.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
|
-
import '../
|
|
22
|
+
import '../Link_es_DxtZLeKY.js';
|
|
@@ -4,9 +4,9 @@ import { useMemo } 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 { a as LinkWrapper } from '../
|
|
9
|
-
import { T as Text } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_BaGfb-qC.js';
|
|
8
|
+
import { a as LinkWrapper } from '../Link_es_DxtZLeKY.js';
|
|
9
|
+
import { T as Text } from '../Text_es_BRb3qqKM.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
12
12
|
import 'lodash/upperFirst';
|
|
@@ -212,7 +212,7 @@ function BreadcrumbsItem(props) {
|
|
|
212
212
|
var fillClass = propsGenerator.fillClass, text = propsGenerator.text, textColor = propsGenerator.textColor, textColorHover = propsGenerator.textColorHover, textSize = propsGenerator.textSize, cursor = propsGenerator.cursor, iconAfter = propsGenerator.iconAfter, iconAfterBgFill = propsGenerator.iconAfterBgFill, iconAfterFill = propsGenerator.iconAfterFill, iconAfterSize = propsGenerator.iconAfterSize, shapeClass = propsGenerator.shapeClass, underlineClass = propsGenerator.underlineClass;
|
|
213
213
|
// @ts-expect-error
|
|
214
214
|
var itemStyles = useStyles(props).styles;
|
|
215
|
-
return (jsxs(LinkWrapper, { className: clsx(className, 'breadcrumbs__item', fillClass && "fill_".concat(fillClass), shapeClass && "breadcrumbs__item_shape_".concat(shapeClass), underlineClass && "text-decoration_".concat(underlineClass), onClick && (cursor || 'cursor_type_pointer')),
|
|
215
|
+
return (jsxs(LinkWrapper, { className: clsx(className, 'breadcrumbs__item', fillClass && "fill_".concat(fillClass), shapeClass && "breadcrumbs__item_shape_".concat(shapeClass), underlineClass && "text-decoration_".concat(underlineClass), onClick && (cursor || 'cursor_type_pointer')), href: href, LinkComponent: "div", style: itemStyles, onClick: onClick, children: [jsx(Text, { className: "breadcrumbs__item-text", size: textSize, textColor: textColor, textColorHover: textColorHover, children: text || children }), iconAfter && (jsx(Icon, { className: "breadcrumbs__item-icon", size: iconAfterSize, fill: iconAfterFill, bgFill: iconAfterBgFill, SvgImage: iconAfter }))] }));
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
var breadcrumbsConfig = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../
|
|
1
|
+
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_DXcCJuNX.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 '../
|
|
6
|
+
import '../Tooltip_es_BaGfb-qC.js';
|
|
7
7
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -18,7 +18,7 @@ import '../utils/setViewportProperty.js';
|
|
|
18
18
|
import '../hooks/useStyles/useStyles.js';
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
|
-
import '../
|
|
21
|
+
import '../Text_es_BRb3qqKM.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../
|
|
24
|
-
import '../
|
|
23
|
+
import '../Link_es_DxtZLeKY.js';
|
|
24
|
+
import '../Loader_es_DEYowVdU.js';
|
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_BaGfb-qC.js';
|
|
7
|
+
import { L as Label } from '../Label_es_Dc18d1gY.js';
|
|
8
|
+
import { T as Text } from '../Text_es_BRb3qqKM.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
@@ -20,140 +20,28 @@ import '../utils/setViewportProperty.js';
|
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../
|
|
24
|
-
|
|
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
|
-
},
|
|
99
|
-
};
|
|
23
|
+
import '../Link_es_DxtZLeKY.js';
|
|
100
24
|
|
|
101
25
|
var cellAppearanceSize = {
|
|
102
|
-
sizeXXL: {
|
|
103
|
-
size: 'xxl',
|
|
104
|
-
labelTextSize: 'xxl',
|
|
105
|
-
iconAfterFillSize: '24',
|
|
106
|
-
iconAfterSize: '24',
|
|
107
|
-
iconBeforeFillSize: '24',
|
|
108
|
-
iconBeforeSize: '24',
|
|
109
|
-
},
|
|
110
26
|
sizeXL: {
|
|
111
27
|
size: 'xl',
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
iconAfterSize: '24',
|
|
115
|
-
iconBeforeFillSize: '24',
|
|
116
|
-
iconBeforeSize: '24',
|
|
28
|
+
titleTextSize: 'l',
|
|
29
|
+
valueTextSize: 's',
|
|
117
30
|
},
|
|
118
31
|
sizeL: {
|
|
119
32
|
size: 'l',
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
iconAfterSize: '24',
|
|
123
|
-
iconBeforeFillSize: '24',
|
|
124
|
-
iconBeforeSize: '24',
|
|
33
|
+
titleTextSize: 'l',
|
|
34
|
+
valueTextSize: 's',
|
|
125
35
|
},
|
|
126
36
|
sizeM: {
|
|
127
37
|
size: 'm',
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
iconAfterSize: '24',
|
|
131
|
-
iconBeforeFillSize: '24',
|
|
132
|
-
iconBeforeSize: '24',
|
|
38
|
+
titleTextSize: 'm',
|
|
39
|
+
valueTextSize: 's',
|
|
133
40
|
},
|
|
134
41
|
sizeS: {
|
|
135
42
|
size: 's',
|
|
136
|
-
|
|
137
|
-
|
|
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',
|
|
43
|
+
titleTextSize: 's',
|
|
44
|
+
valueTextSize: 'xs',
|
|
157
45
|
},
|
|
158
46
|
};
|
|
159
47
|
|
|
@@ -173,17 +61,6 @@ var cellAppearanceStyle = {
|
|
|
173
61
|
},
|
|
174
62
|
};
|
|
175
63
|
|
|
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
64
|
var cellAppearanceSurface = {
|
|
188
65
|
surfacePrimary: {
|
|
189
66
|
fill: 'surfacePrimary',
|
|
@@ -209,18 +86,7 @@ var cellAppearanceSurface = {
|
|
|
209
86
|
},
|
|
210
87
|
};
|
|
211
88
|
|
|
212
|
-
var
|
|
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);
|
|
89
|
+
var cellAppearance = __assign(__assign(__assign({}, cellAppearanceSize), cellAppearanceStyle), cellAppearanceSurface);
|
|
224
90
|
|
|
225
91
|
var cellConfig = {
|
|
226
92
|
appearance: cellAppearance,
|
|
@@ -229,7 +95,7 @@ var cellConfig = {
|
|
|
229
95
|
},
|
|
230
96
|
};
|
|
231
97
|
function Cell(props) {
|
|
232
|
-
var className = props.className, appearance = props.appearance,
|
|
98
|
+
var className = props.className, appearance = props.appearance, title = props.title, titleIcon = props.titleIcon, titleIconFill = props.titleIconFill, titleIconFillHover = props.titleIconFillHover, titleIconFillSize = props.titleIconFillSize, titleIconItemFill = props.titleIconItemFill, titleIconShape = props.titleIconShape, titleIconSrc = props.titleIconSrc, titleLabel = props.titleLabel, titleLabelAppearance = props.titleLabelAppearance, titleLabelShape = props.titleLabelShape, titleLabelSize = props.titleLabelSize,
|
|
233
99
|
// titleLabelTextSize,
|
|
234
100
|
titleTag = props.titleTag, titleTextColor = props.titleTextColor,
|
|
235
101
|
// titleTextSize,
|
|
@@ -249,11 +115,11 @@ function Cell(props) {
|
|
|
249
115
|
// Properties for current device media queries
|
|
250
116
|
titleLabelTextSize = propsGenerator.titleLabelTextSize, titleTextSize = propsGenerator.titleTextSize, valueLabelTextSize = propsGenerator.valueLabelTextSize, valueTextSize = propsGenerator.valueTextSize,
|
|
251
117
|
// Classes for current device media queries
|
|
252
|
-
bgFillActiveClass = propsGenerator.bgFillActiveClass, bgFillClass = propsGenerator.bgFillClass, bgFillDisabledClass = propsGenerator.bgFillDisabledClass, bgFillHoverClass = propsGenerator.bgFillHoverClass, bgShapeClass = propsGenerator.bgShapeClass, directionClass = propsGenerator.directionClass, fillActiveClass = propsGenerator.fillActiveClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass;
|
|
118
|
+
bgFillActiveClass = propsGenerator.bgFillActiveClass, bgFillClass = propsGenerator.bgFillClass, bgFillDisabledClass = propsGenerator.bgFillDisabledClass, bgFillHoverClass = propsGenerator.bgFillHoverClass, bgShapeClass = propsGenerator.bgShapeClass, directionClass = propsGenerator.directionClass, fillActiveClass = propsGenerator.fillActiveClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass, sizeClass = propsGenerator.sizeClass;
|
|
253
119
|
/* eslint-enable perfectionist/sort-objects */
|
|
254
120
|
// @ts-expect-error
|
|
255
121
|
var _b = useStyles(props), dataStyles = _b.data, cellStyles = _b.styles;
|
|
256
|
-
return (jsxs("div", { className: clsx(className, 'cell', mode && "cell_mode_".concat(mode),
|
|
122
|
+
return (jsxs("div", { className: clsx(className, 'cell', mode && "cell_mode_".concat(mode), sizeClass && "cell_size_".concat(sizeClass), set && "cell_set_".concat(set), bgFillClass && "fill_".concat(bgFillClass), bgFillHoverClass && "fill_hover_".concat(bgFillHoverClass), isActive && bgFillActiveClass && "fill_active_".concat(bgFillActiveClass), isDisabled &&
|
|
257
123
|
bgFillDisabledClass &&
|
|
258
124
|
"fill_disabled_".concat(bgFillDisabledClass), bgShapeClass && "cell_shape_".concat(bgShapeClass), widthClass && !(cellStyles === null || cellStyles === void 0 ? void 0 : cellStyles.width) && "width_".concat(widthClass), zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap', reverse && 'cell_reverse'), style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsx("div", { className: "cell__before", children: before }), jsxs("div", { className: clsx('cell__wrapper', directionClass && "cell__wrapper_direction_".concat(directionClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), isActive && fillActiveClass && "fill_active_".concat(fillActiveClass), isDisabled &&
|
|
259
125
|
fillDisabledClass &&
|
|
@@ -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_BRb3qqKM.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
package/dist/components/Chips.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../
|
|
1
|
+
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_CjGZ-ulT.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -17,7 +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 '../
|
|
20
|
+
import '../Tooltip_es_BaGfb-qC.js';
|
|
21
|
+
import '../Text_es_BRb3qqKM.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../
|
|
23
|
+
import '../Link_es_DxtZLeKY.js';
|
|
@@ -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_BaGfb-qC.js';
|
|
8
|
+
import { L as Loader } from '../Loader_es_DEYowVdU.js';
|
|
9
|
+
import { T as Text } from '../Text_es_BRb3qqKM.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
12
12
|
import 'lodash/upperFirst';
|
|
@@ -20,7 +20,7 @@ import '../utils/setViewportProperty.js';
|
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../
|
|
23
|
+
import '../Link_es_DxtZLeKY.js';
|
|
24
24
|
|
|
25
25
|
var choiceAppearanceAccent = {
|
|
26
26
|
accentPrimary: {
|
|
@@ -125,7 +125,7 @@ function Choice(props) {
|
|
|
125
125
|
: fillItemDisabledClass &&
|
|
126
126
|
"fill_disabled_".concat(fillItemDisabledClass), !isDisabled
|
|
127
127
|
? fillItemHoverClass && "fill_hover_".concat(fillItemHoverClass)
|
|
128
|
-
: null,
|
|
128
|
+
: null, isActive &&
|
|
129
129
|
fillItemActiveHoverClass &&
|
|
130
130
|
"fill_active_hover_".concat(fillItemActiveHoverClass), isActive
|
|
131
131
|
? !isDisabled
|
|
@@ -136,7 +136,7 @@ function Choice(props) {
|
|
|
136
136
|
: !isDisabled
|
|
137
137
|
? fillItemClass && "fill_".concat(fillItemClass)
|
|
138
138
|
: fillItemDisabledClass &&
|
|
139
|
-
"fill_disabled_".concat(fillItemDisabledClass), isActive &&
|
|
139
|
+
"fill_disabled_".concat(fillItemDisabledClass), !isActive && isDisabled && 'choice__item_state_disabled', isActive &&
|
|
140
140
|
isDisabled &&
|
|
141
141
|
'choice__item_active_state_disabled', isActive && 'choice__item_active', shapeItemClass && "choice__item_shape_".concat(shapeItemClass)), ref: optionsRefs.get(item.value), children: [jsx("input", { id: "".concat(name, "-").concat(item.value), className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, disabled: isDisabled, checked: isActive, value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [itemBefore, (iconBefore || iconBeforeActive) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled: isDisabled ? iconBeforeFillDisabled : undefined, iconFill: isActive ? iconBeforeFillActive : iconBeforeFill, iconSize: iconBeforeSize, SvgImage: isActive ? iconBeforeActive : iconBefore })), item.label && (jsx(Text, { size: labelTextSize, textColor: isActive
|
|
142
142
|
? !isDisabled
|