@itcase/ui 1.8.36 → 1.8.38
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_DBoMi2WA.js → Avatar_cjs_nMPCDjk8.js} +1 -1
- package/dist/{Avatar_es_DHREqfOD.js → Avatar_es_B73a6TzA.js} +1 -1
- package/dist/{Button_cjs_djJUZATX.js → Button_cjs_plv5-qcj.js} +10 -1
- package/dist/{Button_es_X1DzVhok.js → Button_es_BigB2Wz6.js} +10 -1
- package/dist/{ChipsGroup_cjs_5xsEchPo.js → ChipsGroup_cjs_DrOhD-Fc.js} +2 -4
- package/dist/{ChipsGroup_es_4TOkv-fm.js → ChipsGroup_es_B9m4l0wN.js} +2 -4
- package/dist/{DatePicker_cjs_DffhgUnQ.js → DatePicker_cjs_DKoF73mp.js} +17 -17
- package/dist/{DatePicker_es_GmkagjKf.js → DatePicker_es_CdEYxtwj.js} +17 -17
- package/dist/{DropdownItem_cjs_DxBpJAi9.js → DropdownItem_cjs_DQvByLbN.js} +1 -1
- package/dist/{DropdownItem_es_Loneq6M7.js → DropdownItem_es_KppIfto7.js} +1 -1
- package/dist/{Label_cjs_C88e2CIP.js → Label_cjs_BGJfyrOL.js} +50 -48
- package/dist/{Label_es_Bn2aRjLl.js → Label_es_C4Px7b-N.js} +50 -48
- package/dist/{Tooltip_cjs_oS1iOamX.js → Tooltip_cjs_DHduWa-v.js} +72 -68
- package/dist/{Tooltip_es_LV5ZNg3B.js → Tooltip_es_ltCY-w4M.js} +72 -68
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +32 -48
- package/dist/cjs/components/Breadcrumbs.js +38 -120
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips/stories/__mock__.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +16 -14
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +25 -21
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown/stories/__mock__.js +103 -33
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/MenuItem.js +7 -9
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification.js +3 -9
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented/stories/__mock__.js +11 -11
- package/dist/cjs/components/Segmented.js +28 -25
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Switch.js +0 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs/stories/__mock__.js +33 -48
- package/dist/components/Breadcrumbs.js +38 -120
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips/stories/__mock__.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +16 -14
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +25 -21
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown/stories/__mock__.js +101 -34
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +7 -9
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification.js +3 -9
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +2 -2
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented/stories/__mock__.js +8 -8
- package/dist/components/Segmented.js +28 -25
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Switch.js +0 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/css/components/Breadcrumbs/Breadcrumbs.css +24 -0
- package/dist/css/components/Icon/Icon.css +24 -0
- package/dist/css/components/MenuItem/MenuItem.css +31 -0
- package/dist/css/components/Notification/Notification.css +0 -48
- package/dist/css/components/Segmented/Segmented.css +16 -7
- package/dist/css/components/Segmented/css/__item/segmaented__item.css +2 -5
- package/dist/stories/BreadcrumbsPlsyground.mdx +1 -1
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsAccent.d.ts +2 -12
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +7 -14
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsStyle.d.ts +1 -3
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +11 -8
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +6 -32
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +9 -0
- package/dist/types/components/Chips/appearance/chipsStyle.d.ts +1 -3
- package/dist/types/components/Choice/appearance/choiceDefault.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +1 -1
- package/dist/types/components/Choice/appearance/choiceError.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceRequire.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +1 -3
- package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +1 -0
- package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +87 -44
- package/dist/types/components/Icon/appearance/iconAccent.d.ts +2 -4
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +2 -4
- package/dist/types/components/Icon/appearance/iconDisabled.d.ts +12 -0
- package/dist/types/components/Icon/appearance/iconError.d.ts +4 -4
- package/dist/types/components/Icon/appearance/iconInfo.d.ts +7 -4
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +4 -2
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +2 -2
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +4 -6
- package/dist/types/components/Icon/appearance/iconSuccess.d.ts +0 -2
- package/dist/types/components/Icon/appearance/iconSurface.d.ts +0 -5
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +4 -4
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +1 -0
- package/dist/types/components/Label/appearance/labelSurface.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +4 -6
- package/dist/types/components/Notification/appearance/notificationDefault.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationError.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationInfo.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationWarning.d.ts +0 -1
- package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +1 -1
- package/dist/types/components/Segmented/appearance/segmentedDisabled.d.ts +2 -2
- package/dist/types/components/Segmented/appearance/segmentedError.d.ts +3 -1
- package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +3 -5
- package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +3 -2
- package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +2 -1
- package/dist/types/components/Segmented/stories/__mock__/index.d.ts +5 -5
- package/package.json +7 -7
- package/dist/css/components/Notification/css/__item/notification__item_status.css +0 -48
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsDanger.d.ts +0 -7
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsError.d.ts +0 -9
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsInfo.d.ts +0 -17
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsPrimary.d.ts +0 -8
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSecondary.d.ts +0 -8
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSuccess.d.ts +0 -9
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsWarning.d.ts +0 -9
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Tooltip = require('../../
|
|
9
|
+
var Tooltip = require('../../Tooltip_cjs_DHduWa-v.js');
|
|
10
10
|
var Divider = require('../../Divider_cjs_BmCJj3TN.js');
|
|
11
11
|
var Link = require('../../Link_cjs_DbRGq2Yk.js');
|
|
12
12
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
8
|
-
var Tooltip = require('../../
|
|
8
|
+
var Tooltip = require('../../Tooltip_cjs_DHduWa-v.js');
|
|
9
9
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
10
10
|
require('react');
|
|
11
11
|
require('lodash/camelCase');
|
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import castArray from 'lodash/castArray';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { B as Badge, I as Icon } from '../
|
|
8
|
+
import { B as Badge, I as Icon } from '../Tooltip_es_ltCY-w4M.js';
|
|
9
9
|
import { D as Divider } from '../Divider_es_kY-30pft.js';
|
|
10
10
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
11
11
|
import { icons16 } from '@itcase/icons/default';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../
|
|
1
|
+
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../Avatar_es_B73a6TzA.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -14,7 +14,7 @@ import '../context/UIContext.js';
|
|
|
14
14
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
15
15
|
import 'react-responsive';
|
|
16
16
|
import '../utils/setViewportProperty.js';
|
|
17
|
-
import '../
|
|
17
|
+
import '../Tooltip_es_ltCY-w4M.js';
|
|
18
18
|
import '../hooks/useStyles/useStyles.js';
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
@@ -3,7 +3,7 @@ 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 { A as Avatar } from '../
|
|
6
|
+
import { A as Avatar } from '../Avatar_es_B73a6TzA.js';
|
|
7
7
|
import { G as Group } from '../Group_es_CYW2Hquh.js';
|
|
8
8
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
9
9
|
import 'react';
|
|
@@ -19,7 +19,7 @@ import 'react-responsive';
|
|
|
19
19
|
import '../utils/setViewportProperty.js';
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
-
import '../
|
|
22
|
+
import '../Tooltip_es_ltCY-w4M.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
24
|
import '../Link_es_DxtZLeKY.js';
|
|
25
25
|
import '../Image_es_DZUVp0FS.js';
|
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_ltCY-w4M.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -1,49 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var breadcrumbsListMock = [
|
|
2
|
+
{
|
|
3
|
+
id: '1',
|
|
4
|
+
key: 1,
|
|
5
|
+
text: 'Text 123',
|
|
6
|
+
href: '/',
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
id: '2',
|
|
10
|
+
key: 2,
|
|
11
|
+
text: 'Text 123',
|
|
12
|
+
href: '/',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: '3',
|
|
16
|
+
key: 3,
|
|
17
|
+
text: 'Text 123',
|
|
18
|
+
href: '/',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: '4',
|
|
22
|
+
key: 4,
|
|
23
|
+
text: 'Text 123',
|
|
24
|
+
href: '/',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: '5',
|
|
28
|
+
key: 5,
|
|
29
|
+
text: 'Text 123',
|
|
30
|
+
href: '/',
|
|
31
|
+
},
|
|
32
|
+
];
|
|
3
33
|
|
|
4
|
-
|
|
5
|
-
breadcrumbsList: [
|
|
6
|
-
{
|
|
7
|
-
id: '1',
|
|
8
|
-
key: 1,
|
|
9
|
-
text: 'Text 123',
|
|
10
|
-
href: '/',
|
|
11
|
-
icon: icon24.ChevronRightSmall,
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
id: '2',
|
|
15
|
-
key: 2,
|
|
16
|
-
text: 'Text 123',
|
|
17
|
-
href: '/',
|
|
18
|
-
icon: icon24.ChevronRightSmall,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
id: '3',
|
|
22
|
-
key: 3,
|
|
23
|
-
text: 'Text 123',
|
|
24
|
-
href: '/',
|
|
25
|
-
icon: icon24.ChevronRightSmall,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: '4',
|
|
29
|
-
key: 4,
|
|
30
|
-
text: 'Text 123',
|
|
31
|
-
href: '/',
|
|
32
|
-
icon: icon24.ChevronRightSmall,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
id: '5',
|
|
36
|
-
key: 5,
|
|
37
|
-
text: 'Text 123',
|
|
38
|
-
href: '/',
|
|
39
|
-
icon: icon24.ChevronRightSmall,
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
};
|
|
43
|
-
var breadcrumbsListMockSize = {
|
|
44
|
-
xl: breadcrumbsListMock.breadcrumbsList.map(function (item) { return (__assign(__assign({}, item), { icon: icon24.ChevronRightSmall })); }),
|
|
45
|
-
l: breadcrumbsListMock.breadcrumbsList.map(function (item) { return (__assign(__assign({}, item), { icon: icon24.ChevronRightSmall })); }),
|
|
46
|
-
m: breadcrumbsListMock.breadcrumbsList.map(function (item) { return (__assign({}, item)); }),
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export { breadcrumbsListMock, breadcrumbsListMockSize };
|
|
34
|
+
export { breadcrumbsListMock };
|
|
@@ -4,9 +4,10 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
6
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_ltCY-w4M.js';
|
|
8
8
|
import { a as LinkWrapper } from '../Link_es_DxtZLeKY.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
|
+
import { icons12, icons14, icons16, icons20, icons24 } from '@itcase/icons/default';
|
|
10
11
|
import 'lodash/camelCase';
|
|
11
12
|
import 'lodash/castArray';
|
|
12
13
|
import 'lodash/upperFirst';
|
|
@@ -22,70 +23,11 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
22
23
|
import 'react-inlinesvg';
|
|
23
24
|
|
|
24
25
|
var breadcrumbsAppearanceAccent = {
|
|
25
|
-
accent: {
|
|
26
|
-
fill: 'accentPrimary',
|
|
27
|
-
fillHover: 'accentPrimaryHover',
|
|
28
|
-
},
|
|
29
26
|
accentPrimary: {
|
|
30
27
|
fill: 'accentPrimary',
|
|
31
|
-
|
|
32
|
-
borderColor: 'accentBorderPrimary',
|
|
33
|
-
},
|
|
34
|
-
accentSecondary: {
|
|
35
|
-
fill: 'accentPrimary',
|
|
36
|
-
fillHover: 'accentPrimaryHover',
|
|
37
|
-
textColor: 'accentTextSecondary',
|
|
38
|
-
textColorHover: 'accentTextSecondary',
|
|
28
|
+
labelTextColor: 'accentTextPrimary',
|
|
39
29
|
borderColor: 'accentBorderPrimary',
|
|
40
|
-
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
var breadcrumbsAppearanceDanger = {
|
|
44
|
-
danger: {
|
|
45
|
-
fill: 'dangerPrimary',
|
|
46
|
-
fillHover: 'dangerPrimaryHover',
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
var breadcrumbsAppearanceError = {
|
|
51
|
-
error: {
|
|
52
|
-
fill: 'errorPrimary',
|
|
53
|
-
fillHover: 'errorPrimaryHover',
|
|
54
|
-
textColor: 'errorTextPrimary',
|
|
55
|
-
textColorHover: 'errorTextPrimary',
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
var breadcrumbsAppearanceInfo = {
|
|
60
|
-
info: {
|
|
61
|
-
fill: 'accentPrimary',
|
|
62
|
-
fillHover: 'accentPrimaryHover',
|
|
63
|
-
textColor: 'accentTextPrimary',
|
|
64
|
-
textColorHover: 'accentTextPrimary',
|
|
65
|
-
borderColor: 'accentBorderPrimary',
|
|
66
|
-
},
|
|
67
|
-
infoSecondary: {
|
|
68
|
-
fill: 'accentPrimary',
|
|
69
|
-
fillHover: 'accentPrimaryHover',
|
|
70
|
-
textColor: 'accentTextSecondary',
|
|
71
|
-
textColorHover: 'accentTextSecondary',
|
|
72
|
-
borderColor: 'accentBorderPrimary',
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
var breadcrumbsAppearancePrimary = {
|
|
77
|
-
primary: {
|
|
78
|
-
fill: 'primaryPrimary',
|
|
79
|
-
fillHover: 'primaryPrimaryHover',
|
|
80
|
-
textColor: 'primaryTextPrimary',
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
var breadcrumbsAppearanceSecondary = {
|
|
85
|
-
secondary: {
|
|
86
|
-
fill: 'secondaryPrimary',
|
|
87
|
-
fillHover: 'secondaryPrimaryHover',
|
|
88
|
-
textColor: 'secondaryTextPrimary',
|
|
30
|
+
iconFillIcon: 'accentItemPrimary',
|
|
89
31
|
},
|
|
90
32
|
};
|
|
91
33
|
|
|
@@ -93,137 +35,113 @@ var breadcrumbsAppearanceSize = {
|
|
|
93
35
|
sizeXXL: {
|
|
94
36
|
size: 'xxl',
|
|
95
37
|
labelTextSize: 'xxl',
|
|
96
|
-
|
|
97
|
-
iconSize: '24',
|
|
38
|
+
icon: icons24.Arrow.ChevronRightSmall,
|
|
98
39
|
},
|
|
99
40
|
sizeXL: {
|
|
100
41
|
size: 'xl',
|
|
101
|
-
labelTextSize: '
|
|
102
|
-
|
|
103
|
-
iconSize: '24',
|
|
42
|
+
labelTextSize: 'xl',
|
|
43
|
+
icon: icons24.Arrow.ChevronRightSmall,
|
|
104
44
|
},
|
|
105
45
|
sizeL: {
|
|
106
46
|
size: 'l',
|
|
107
47
|
labelTextSize: 'l',
|
|
108
|
-
|
|
109
|
-
iconSize: '20',
|
|
48
|
+
icon: icons20.Arrow.ChevronRightSmall,
|
|
110
49
|
},
|
|
111
50
|
sizeM: {
|
|
112
51
|
size: 'm',
|
|
113
|
-
labelTextSize: '
|
|
114
|
-
|
|
115
|
-
iconSize: '16',
|
|
52
|
+
labelTextSize: 'l',
|
|
53
|
+
icon: icons16.Arrow.ChevronRightSmall,
|
|
116
54
|
},
|
|
117
55
|
sizeS: {
|
|
118
56
|
size: 's',
|
|
119
|
-
labelTextSize: '
|
|
120
|
-
|
|
121
|
-
iconSize: '16',
|
|
57
|
+
labelTextSize: 'm',
|
|
58
|
+
icon: icons16.Arrow.ChevronRightSmall,
|
|
122
59
|
},
|
|
123
60
|
sizeXS: {
|
|
124
61
|
size: 'xs',
|
|
125
|
-
labelTextSize: '
|
|
126
|
-
|
|
127
|
-
iconSize: '14',
|
|
62
|
+
labelTextSize: 's',
|
|
63
|
+
icon: icons14.Arrow.ChevronRightSmall,
|
|
128
64
|
},
|
|
129
65
|
sizeXXS: {
|
|
130
66
|
size: 'xxs',
|
|
131
67
|
labelTextSize: 'xs',
|
|
132
|
-
|
|
133
|
-
iconSize: '12',
|
|
68
|
+
icon: icons12.Arrow.ChevronRightSmall,
|
|
134
69
|
},
|
|
135
70
|
};
|
|
136
71
|
|
|
137
72
|
var breadcrumbsAppearanceStyle = {
|
|
138
73
|
solid: {
|
|
139
|
-
borderColor: '
|
|
74
|
+
borderColor: 'none',
|
|
140
75
|
},
|
|
141
76
|
outlined: {
|
|
142
77
|
fill: 'none',
|
|
143
78
|
},
|
|
144
|
-
full: {
|
|
145
|
-
borderColor: '0',
|
|
146
|
-
},
|
|
79
|
+
full: {},
|
|
147
80
|
ghost: {
|
|
148
81
|
fill: 'none',
|
|
149
|
-
borderColor: '
|
|
150
|
-
},
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
var breadcrumbsAppearanceSuccess = {
|
|
154
|
-
success: {
|
|
155
|
-
fill: 'successPrimary',
|
|
156
|
-
fillHover: 'successPrimaryHover',
|
|
157
|
-
textColor: 'successTextSecondary',
|
|
158
|
-
textColorHover: 'successTextSecondary',
|
|
82
|
+
borderColor: 'none',
|
|
159
83
|
},
|
|
160
84
|
};
|
|
161
85
|
|
|
162
86
|
var breadcrumbsAppearanceSurface = {
|
|
163
87
|
surfacePrimary: {
|
|
164
88
|
fill: 'surfacePrimary',
|
|
165
|
-
|
|
166
|
-
|
|
89
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
90
|
+
borderColor: 'surfaceBorderPrimary',
|
|
167
91
|
iconFillIcon: 'surfaceItemPrimary',
|
|
168
92
|
},
|
|
169
93
|
surfaceSecondary: {
|
|
170
94
|
fill: 'surfaceSecondary',
|
|
171
|
-
|
|
172
|
-
|
|
95
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
96
|
+
borderColor: 'surfaceBorderSecondary',
|
|
97
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
173
98
|
},
|
|
174
99
|
surfaceTertiary: {
|
|
175
100
|
fill: 'surfaceTertiary',
|
|
176
|
-
|
|
177
|
-
|
|
101
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
102
|
+
borderColor: 'surfaceBorderTertiary',
|
|
103
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
178
104
|
},
|
|
179
105
|
surfaceQuaternary: {
|
|
180
106
|
fill: 'surfaceQuaternary',
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
var breadcrumbsAppearanceWarning = {
|
|
187
|
-
warning: {
|
|
188
|
-
fill: 'warningPrimary',
|
|
189
|
-
fillHover: 'warningPrimaryHover',
|
|
190
|
-
textColor: 'warningTextSecondary',
|
|
191
|
-
textColorHover: 'warningTextSecondary',
|
|
107
|
+
labelTextColor: 'surfaceTextInverse',
|
|
108
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
109
|
+
iconFillIcon: 'surfaceItemInverse',
|
|
192
110
|
},
|
|
193
111
|
};
|
|
194
112
|
|
|
195
|
-
var breadcrumbsAppearance = __assign(__assign(__assign(__assign(
|
|
113
|
+
var breadcrumbsAppearance = __assign(__assign(__assign(__assign({}, breadcrumbsAppearanceSize), breadcrumbsAppearanceStyle), breadcrumbsAppearanceAccent), breadcrumbsAppearanceSurface);
|
|
196
114
|
|
|
197
115
|
var breadcrumbsConfig = {
|
|
198
116
|
appearance: breadcrumbsAppearance};
|
|
199
117
|
function BreadcrumbsItem(props) {
|
|
200
|
-
var className = props.className, appearance = props.appearance, href = props.href, isActive = props.isActive, onClick = props.onClick, children = props.children;
|
|
118
|
+
var className = props.className, appearance = props.appearance, href = props.href, isActive = props.isActive, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
|
|
201
119
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
202
120
|
var _a;
|
|
203
121
|
return (__assign(__assign({}, resultConfig), (_a = breadcrumbsConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
204
122
|
}, {});
|
|
205
123
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
206
|
-
var fillClass = propsGenerator.fillClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, text = propsGenerator.text, cursor = propsGenerator.cursor, icon = propsGenerator.icon, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, underlineClass = propsGenerator.underlineClass;
|
|
124
|
+
var fillClass = propsGenerator.fillClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, borderColorClass = propsGenerator.borderColorClass, text = propsGenerator.text, cursor = propsGenerator.cursor, icon = propsGenerator.icon, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, underlineClass = propsGenerator.underlineClass;
|
|
207
125
|
// @ts-expect-error
|
|
208
126
|
var itemStyles = useStyles(props).styles;
|
|
209
|
-
return (jsxs(LinkWrapper, { className: clsx(className, 'breadcrumbs__item', isActive && 'breadcrumbs__item_current', sizeClass && "breadcrumbs__item_size_".concat(sizeClass), shapeClass && "breadcrumbs__item_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), 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: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, children: text || children }), !isActive && (icon || iconSrc) && (jsx(Icon, { className: clsx('breadcrumbs__item-icon'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }));
|
|
127
|
+
return (jsxs(LinkWrapper, { className: clsx(className, 'breadcrumbs__item', borderColorClass && "border-color_".concat(borderColorClass), isActive && 'breadcrumbs__item_current', sizeClass && "breadcrumbs__item_size_".concat(sizeClass), shapeClass && "breadcrumbs__item_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), underlineClass && "text-decoration_".concat(underlineClass), isSkeleton && "breadcrumbs__item_skeleton", onClick && (cursor || 'cursor_type_pointer')), href: href, LinkComponent: "div", style: itemStyles, onClick: onClick, children: [jsx(Text, { className: "breadcrumbs__item-text", size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, children: text || children }), !isActive && (icon || iconSrc) && (jsx(Icon, { className: clsx('breadcrumbs__item-icon'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }));
|
|
210
128
|
}
|
|
211
129
|
|
|
212
130
|
function Breadcrumbs(props) {
|
|
213
|
-
var className = props.className,
|
|
131
|
+
var className = props.className, appearance = props.appearance, breadcrumbsList = props.breadcrumbsList, isSkeleton = props.isSkeleton, children = props.children;
|
|
214
132
|
var propsGenerator = useDevicePropsGenerator(props);
|
|
215
|
-
var _a = propsGenerator.directionClass, directionClass = _a === void 0 ? 'horizontal' : _a,
|
|
133
|
+
var _a = propsGenerator.directionClass, directionClass = _a === void 0 ? 'horizontal' : _a, widthClass = propsGenerator.widthClass;
|
|
216
134
|
var breadcrumbsItemsList = useMemo(function () {
|
|
217
135
|
if (breadcrumbsList) {
|
|
218
|
-
return breadcrumbsList.map(function (item, i) { return (jsx(BreadcrumbsItem, { appearance:
|
|
136
|
+
return breadcrumbsList.map(function (item, i) { return (jsx(BreadcrumbsItem, { appearance: appearance, text: item.text, icon: item.icon, iconSrc: item.icon, isActive: i + 1 === breadcrumbsList.length && true, isSkeleton: isSkeleton }, "breadcrumbsItem_".concat(item.key || item.id || item.text))); });
|
|
219
137
|
}
|
|
220
138
|
if (children) {
|
|
221
139
|
return children;
|
|
222
140
|
}
|
|
223
141
|
return [];
|
|
224
|
-
}, [children, breadcrumbsList,
|
|
142
|
+
}, [children, breadcrumbsList, appearance]);
|
|
225
143
|
var breadcrumbsStyles = useStyles(props).styles;
|
|
226
|
-
return (jsx("div", { className: clsx(className, 'breadcrumbs', widthClass && "width_".concat(widthClass), directionClass && "direction_".concat(directionClass)
|
|
144
|
+
return (jsx("div", { className: clsx(className, 'breadcrumbs', widthClass && "width_".concat(widthClass), directionClass && "direction_".concat(directionClass)), style: breadcrumbsStyles, children: breadcrumbsItemsList }));
|
|
227
145
|
}
|
|
228
146
|
|
|
229
147
|
export { Breadcrumbs, BreadcrumbsItem, breadcrumbsAppearance };
|
|
@@ -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_BigB2Wz6.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_ltCY-w4M.js';
|
|
7
7
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
package/dist/components/Cell.js
CHANGED
|
@@ -3,8 +3,8 @@ 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 '../
|
|
6
|
+
import { I as Icon } from '../Tooltip_es_ltCY-w4M.js';
|
|
7
|
+
import { L as Label } from '../Label_es_C4Px7b-N.js';
|
|
8
8
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { icons20 } from '@itcase/icons/default';
|
|
2
2
|
|
|
3
3
|
var chipsListMock = {
|
|
4
4
|
chipsList: [
|
|
@@ -20,7 +20,7 @@ var chipsListMock = {
|
|
|
20
20
|
{
|
|
21
21
|
id: 4,
|
|
22
22
|
label: 'Chips 4',
|
|
23
|
-
iconAfter:
|
|
23
|
+
iconAfter: icons20.Form.Check,
|
|
24
24
|
isActive: false,
|
|
25
25
|
},
|
|
26
26
|
],
|
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_B9m4l0wN.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
@@ -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 '../
|
|
20
|
+
import '../Tooltip_es_ltCY-w4M.js';
|
|
21
21
|
import '../Text_es_BfLRfj-5.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../Link_es_DxtZLeKY.js';
|
|
@@ -4,7 +4,7 @@ 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 '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_ltCY-w4M.js';
|
|
8
8
|
import { L as Loader } from '../Loader_es_GYOr0UTX.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -28,6 +28,7 @@ var choiceAppearanceDefault = {
|
|
|
28
28
|
fillItem: 'surfaceItemSecondary',
|
|
29
29
|
fillItemActive: 'surfaceItemQuaternary',
|
|
30
30
|
fillItemHover: 'surfaceItemHover',
|
|
31
|
+
labelTextActiveColor: 'surfaceTextInverse',
|
|
31
32
|
labelTextColor: 'surfaceTextPrimary',
|
|
32
33
|
borderColor: 'surfaceBorderQuaternary',
|
|
33
34
|
iconAfterFill: 'surfaceItemQuaternary',
|
|
@@ -41,10 +42,10 @@ var choiceAppearanceDefault = {
|
|
|
41
42
|
|
|
42
43
|
var choiceAppearanceDisabled = {
|
|
43
44
|
disabledPrimary: {
|
|
44
|
-
fill: '
|
|
45
|
-
fillItem: '
|
|
46
|
-
fillItemActive: '
|
|
47
|
-
|
|
45
|
+
fill: 'surfaceTertiary',
|
|
46
|
+
fillItem: 'surfaceTertiary',
|
|
47
|
+
fillItemActive: 'surfaceItemTertiary',
|
|
48
|
+
labelTextActiveColor: 'surfaceTextQuaternary',
|
|
48
49
|
labelTextColor: 'surfaceTextQuaternary',
|
|
49
50
|
borderColor: 'surfaceBorderPrimary',
|
|
50
51
|
iconAfterFill: 'surfaceItemPrimary',
|
|
@@ -62,7 +63,8 @@ var choiceAppearanceError = {
|
|
|
62
63
|
fillItem: 'errorItemTertiary',
|
|
63
64
|
fillItemActive: 'errorItemSecondary',
|
|
64
65
|
fillItemHover: 'errorItemHover',
|
|
65
|
-
|
|
66
|
+
labelTextActiveColor: 'errorTextPrimary',
|
|
67
|
+
labelTextColor: 'errorTextSecondary',
|
|
66
68
|
borderColor: 'errorBorderQuaternary',
|
|
67
69
|
iconAfterFill: 'errorItemSecondary',
|
|
68
70
|
iconAfterFillActive: 'errorItemTertiary',
|
|
@@ -79,7 +81,8 @@ var choiceAppearanceRequire = {
|
|
|
79
81
|
fillItem: 'warningTertiary',
|
|
80
82
|
fillItemActive: 'warningItemSecondary',
|
|
81
83
|
fillItemHover: 'warningItemHover',
|
|
82
|
-
|
|
84
|
+
labelTextActiveColor: 'warningTextPrimary',
|
|
85
|
+
labelTextColor: 'warningTextSecondary',
|
|
83
86
|
borderColor: 'warningBorderSecondary',
|
|
84
87
|
iconAfterFill: 'warningItemSecondary',
|
|
85
88
|
iconAfterFillActive: 'warningTertiary',
|
|
@@ -110,21 +113,19 @@ var choiceAppearanceSize = {
|
|
|
110
113
|
|
|
111
114
|
var choiceAppearanceStyle = {
|
|
112
115
|
solid: {
|
|
113
|
-
borderColor: '
|
|
116
|
+
borderColor: 'none',
|
|
114
117
|
},
|
|
115
118
|
outlined: {
|
|
116
119
|
fill: 'none',
|
|
117
120
|
fillItem: 'none',
|
|
118
121
|
fillItemActive: 'none',
|
|
119
122
|
},
|
|
120
|
-
full: {
|
|
121
|
-
borderColor: '0',
|
|
122
|
-
},
|
|
123
|
+
full: {},
|
|
123
124
|
ghost: {
|
|
124
125
|
fill: 'none',
|
|
125
126
|
fillItem: 'none',
|
|
126
127
|
fillItemActive: 'none',
|
|
127
|
-
borderColor: '
|
|
128
|
+
borderColor: 'none',
|
|
128
129
|
},
|
|
129
130
|
};
|
|
130
131
|
|
|
@@ -133,8 +134,9 @@ var choiceAppearanceSuccess = {
|
|
|
133
134
|
fill: 'successTertiary',
|
|
134
135
|
fillItem: 'successTertiary',
|
|
135
136
|
fillItemActive: 'successItemSecondary',
|
|
136
|
-
fillItemHover: '
|
|
137
|
-
|
|
137
|
+
fillItemHover: 'successItemHover',
|
|
138
|
+
labelTextActiveColor: 'successTextPrimary',
|
|
139
|
+
labelTextColor: 'successTextSecondary',
|
|
138
140
|
borderColor: 'successBorderSecondary',
|
|
139
141
|
iconAfterFill: 'successItemSecondary',
|
|
140
142
|
iconAfterFillActive: 'successTertiary',
|
|
@@ -4,7 +4,7 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import Cookies from 'js-cookie';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { B as Button } from '../
|
|
7
|
+
import { B as Button } from '../Button_es_BigB2Wz6.js';
|
|
8
8
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -16,7 +16,7 @@ import '../context/UIContext.js';
|
|
|
16
16
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
17
17
|
import 'react-responsive';
|
|
18
18
|
import '../utils/setViewportProperty.js';
|
|
19
|
-
import '../
|
|
19
|
+
import '../Tooltip_es_ltCY-w4M.js';
|
|
20
20
|
import '../hooks/useStyles/useStyles.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|