@itcase/ui 1.8.22 → 1.8.24
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 → Avatar_cjs_D84VawE9.js} +1 -1
- package/dist/{Avatar_es_DByUaJL6.js → Avatar_es_CUnfNViT.js} +1 -1
- package/dist/{Button_cjs_CukkOE-v.js → Button_cjs_CYUpbdMO.js} +138 -49
- package/dist/{Button_es_DXcCJuNX.js → Button_es_Dp6yFZgn.js} +138 -49
- package/dist/{ChipsGroup_cjs_9wrMZrzL.js → ChipsGroup_cjs_CTh6644i.js} +1 -1
- package/dist/{ChipsGroup_es_CjGZ-ulT.js → ChipsGroup_es_BFxBhYNB.js} +1 -1
- package/dist/{DatePicker_cjs_BriuTQqj.js → DatePicker_cjs_DamcZFbX.js} +3 -3
- package/dist/{DatePicker_es_DzY_fVii.js → DatePicker_es_Bm_onmmb.js} +3 -3
- package/dist/{Divider_cjs_DzFVtGkF.js → Divider_cjs_DhqcldLH.js} +6 -2
- package/dist/{Divider_es_BdU9qjKa.js → Divider_es_BEYLRagS.js} +6 -2
- package/dist/{DropdownItem_cjs_DY61IdLK.js → DropdownItem_cjs_B_7anyaJ.js} +2 -2
- package/dist/{DropdownItem_es_D8mY9vFZ.js → DropdownItem_es_B4EZYdJA.js} +2 -2
- package/dist/{Label_cjs_CnwET26s.js → Label_cjs_ByGAWJcj.js} +169 -29
- package/dist/{Label_es_Dc18d1gY.js → Label_es_BtwZ3a2V.js} +169 -29
- package/dist/{Loader_cjs_3VRzFLI2.js → Loader_cjs___VikiqS.js} +36 -1
- package/dist/{Loader_es_DEYowVdU.js → Loader_es_DHKB6tTw.js} +36 -1
- package/dist/{Tooltip_cjs_PkuRdzzy.js → Tooltip_cjs_CaocDcQ5.js} +82 -24
- package/dist/{Tooltip_es_BaGfb-qC.js → Tooltip_es_D1w1s33u.js} +82 -24
- package/dist/cjs/components/Accordion.js +2 -2
- 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 +45 -0
- package/dist/cjs/components/Breadcrumbs.js +47 -58
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/DatePeriod.js +6 -6
- package/dist/cjs/components/DatePicker.js +5 -5
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Dropdown.js +3 -3
- 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/Loader.js +1 -1
- package/dist/cjs/components/MenuItem.js +1 -1
- package/dist/cjs/components/Modal.js +2 -2
- package/dist/cjs/components/ModalSheetBottom.js +19 -5
- package/dist/cjs/components/Pagination.js +3 -3
- package/dist/cjs/components/Response.js +28 -37
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Select.js +2 -2
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab/stories/__mock__.js +14 -0
- package/dist/cjs/components/Tab.js +134 -40
- 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 +2 -2
- 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 +43 -0
- package/dist/components/Breadcrumbs.js +47 -58
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +2 -2
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/DatePeriod.js +6 -6
- package/dist/components/DatePicker.js +5 -5
- package/dist/components/Divider.js +1 -1
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/Loader.js +1 -1
- package/dist/components/MenuItem.js +1 -1
- package/dist/components/Modal.js +2 -2
- package/dist/components/ModalSheetBottom.js +19 -5
- package/dist/components/Pagination.js +3 -3
- package/dist/components/Response.js +28 -37
- package/dist/components/Search.js +1 -1
- package/dist/components/Select.js +2 -2
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab/stories/__mock__.js +12 -0
- package/dist/components/Tab.js +134 -40
- 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/Badge/Badge.css +3 -3
- package/dist/css/components/Breadcrumbs/Breadcrumbs.css +22 -0
- package/dist/css/components/Button/Button.css +4 -4
- package/dist/css/components/Label/Label.css +10 -9
- package/dist/css/components/Loader/Loader.css +21 -2
- package/dist/css/styles/border-color/border-color.css +19 -0
- package/dist/css/styles/border-color/border-color_active.css +38 -0
- package/dist/css/styles/border-color/border-color_focus.css +25 -1
- package/dist/css/styles/border-color/border-color_hover.css +32 -0
- package/dist/stories/Plsyground.mdx +1 -3
- package/dist/types/components/Badge/appearance/badgeAccent.d.ts +13 -1
- package/dist/types/components/Badge/appearance/badgeDanger.d.ts +7 -1
- package/dist/types/components/Badge/appearance/badgeDisabled.d.ts +6 -1
- package/dist/types/components/Badge/appearance/badgeError.d.ts +7 -2
- package/dist/types/components/Badge/appearance/badgeInfo.d.ts +1 -3
- package/dist/types/components/Badge/appearance/badgePrimary.d.ts +7 -1
- package/dist/types/components/Badge/appearance/badgeSecondary.d.ts +7 -1
- package/dist/types/components/Badge/appearance/badgeStyle.d.ts +5 -7
- package/dist/types/components/Badge/appearance/badgeSuccess.d.ts +7 -1
- package/dist/types/components/Badge/appearance/badgeWarning.d.ts +7 -1
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +2 -3
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +28 -35
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +4 -3
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +10 -0
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +7 -6
- package/dist/types/components/Button/appearance/buttonDanger.d.ts +8 -4
- package/dist/types/components/Button/appearance/buttonError.d.ts +14 -2
- package/dist/types/components/Button/appearance/buttonInfo.d.ts +19 -4
- package/dist/types/components/Button/appearance/buttonPrimary.d.ts +13 -0
- package/dist/types/components/Button/appearance/buttonSecondary.d.ts +13 -0
- package/dist/types/components/Button/appearance/buttonSize.d.ts +7 -0
- package/dist/types/components/Button/appearance/buttonStyle.d.ts +0 -2
- package/dist/types/components/Button/appearance/buttonSuccess.d.ts +14 -2
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +11 -8
- package/dist/types/components/Button/appearance/buttonWarning.d.ts +14 -2
- package/dist/types/components/Label/appearance/labelAccent.d.ts +10 -1
- package/dist/types/components/Label/appearance/labelDanger.d.ts +20 -0
- package/dist/types/components/Label/appearance/labelDisable.d.ts +19 -0
- package/dist/types/components/Label/appearance/labelError.d.ts +13 -2
- package/dist/types/components/Label/appearance/labelInfo.d.ts +14 -2
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +19 -0
- package/dist/types/components/Label/appearance/labelSecondary.d.ts +19 -0
- package/dist/types/components/Label/appearance/labelStyle.d.ts +0 -2
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +11 -0
- package/dist/types/components/Label/appearance/labelSurface.d.ts +14 -3
- package/dist/types/components/Label/appearance/labelWarning.d.ts +11 -0
- package/dist/types/components/Loader/appearance/loaderDanger.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderError.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderInfo.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderSuccess.d.ts +7 -0
- package/dist/types/components/Loader/appearance/loaderWarning.d.ts +7 -0
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.d.ts +2 -1
- package/dist/types/components/Response/appearance/responceConfirm.d.ts +2 -3
- package/dist/types/components/Response/appearance/responceFail.d.ts +2 -3
- package/dist/types/components/Response/appearance/responceNothingFound.d.ts +2 -3
- package/dist/types/components/Response/appearance/responceRefresh.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseError.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +2 -3
- package/dist/types/components/Response/appearance/responseWarning.d.ts +2 -3
- package/dist/types/components/Tab/appearance/tabError.d.ts +13 -0
- package/dist/types/components/Tab/appearance/tabSize.d.ts +41 -0
- package/dist/types/components/Tab/appearance/tabStyle.d.ts +2 -2
- package/dist/types/components/Tab/appearance/tabSuccess.d.ts +13 -0
- package/dist/types/components/Tab/appearance/tabSurface.d.ts +29 -24
- package/dist/types/components/Tab/appearance/tabWarning.d.ts +13 -0
- package/dist/types/components/Tab/stories/__mock__/index.d.ts +22 -0
- package/package.json +10 -12
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import Select, { components } from 'react-select';
|
|
4
|
-
import { I as Icon, B as Badge } from '../
|
|
4
|
+
import { I as Icon, B as Badge } from '../Tooltip_es_D1w1s33u.js';
|
|
5
5
|
import React, { useRef, useCallback, useEffect, useMemo } from 'react';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import CreatableSelect from 'react-select/creatable';
|
|
8
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BRb3qqKM.js';
|
|
10
10
|
import { G as Group } from '../Group_es_CYW2Hquh.js';
|
|
11
|
-
import { D as Divider } from '../
|
|
11
|
+
import { D as Divider } from '../Divider_es_BEYLRagS.js';
|
|
12
12
|
import '../hooks/useStyles/useStyles.js';
|
|
13
13
|
import 'lodash/camelCase';
|
|
14
14
|
import 'lodash/maxBy';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { b as Title } from '../
|
|
7
|
+
import { b as Title } from '../Tooltip_es_D1w1s33u.js';
|
|
8
8
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { icon16 } from '@itcase/icons/default';
|
|
2
|
+
|
|
3
|
+
var tabListMock = {
|
|
4
|
+
tabList: [
|
|
5
|
+
{ key: 1, label: 'Tab 1', isActive: true },
|
|
6
|
+
{ key: 2, label: 'Tab 2', isActive: false },
|
|
7
|
+
{ key: 3, label: 'Tab 3', badgeValue: 3, isActive: false },
|
|
8
|
+
{ key: 4, label: 'Tab 4', icon: icon16.Placeholder, isActive: false },
|
|
9
|
+
],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { tabListMock };
|
package/dist/components/Tab.js
CHANGED
|
@@ -4,8 +4,8 @@ import React 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 { B as Badge } from '../
|
|
8
|
-
import { D as Divider } from '../
|
|
7
|
+
import { B as Badge, I as Icon } from '../Tooltip_es_D1w1s33u.js';
|
|
8
|
+
import { D as Divider } from '../Divider_es_BEYLRagS.js';
|
|
9
9
|
import { L as Link } from '../Link_es_DxtZLeKY.js';
|
|
10
10
|
import { T as Text } from '../Text_es_BRb3qqKM.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -22,13 +22,67 @@ import 'lodash/maxBy';
|
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
24
|
|
|
25
|
+
var tabAppearanceError = {
|
|
26
|
+
errorPrimary: {
|
|
27
|
+
fill: 'errorPrimary',
|
|
28
|
+
fillDisabled: 'errorDisabled',
|
|
29
|
+
labelColor: 'errorTextPrimary',
|
|
30
|
+
labelColorActive: 'errorTextAccent',
|
|
31
|
+
labelColorDisabled: 'errorTextDisabled',
|
|
32
|
+
dividerFillDisabled: 'errorDisabled',
|
|
33
|
+
badgeAppearance: 'error',
|
|
34
|
+
dividerFill: 'accentPrimary',
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
|
|
25
38
|
var tabAppearanceSize = {
|
|
39
|
+
sizeXXL: {
|
|
40
|
+
size: 'xxl',
|
|
41
|
+
labelTextSize: 's',
|
|
42
|
+
badgeSize: 'xs',
|
|
43
|
+
badgeTextSize: 'xs',
|
|
44
|
+
dividerSize: 's',
|
|
45
|
+
},
|
|
46
|
+
sizeXL: {
|
|
47
|
+
size: 'xl',
|
|
48
|
+
labelTextSize: 's',
|
|
49
|
+
badgeSize: 'xs',
|
|
50
|
+
badgeTextSize: 'xs',
|
|
51
|
+
dividerSize: 's',
|
|
52
|
+
},
|
|
26
53
|
sizeL: {
|
|
27
54
|
size: 'l',
|
|
28
55
|
labelTextSize: 's',
|
|
56
|
+
badgeSize: 'xs',
|
|
57
|
+
badgeTextSize: 'xs',
|
|
29
58
|
dividerSize: 's',
|
|
59
|
+
},
|
|
60
|
+
sizeM: {
|
|
61
|
+
size: 'm',
|
|
62
|
+
labelTextSize: 's',
|
|
30
63
|
badgeSize: 'xs',
|
|
64
|
+
badgeTextSize: 'xs',
|
|
65
|
+
dividerSize: 's',
|
|
66
|
+
},
|
|
67
|
+
sizeS: {
|
|
68
|
+
size: 's',
|
|
69
|
+
labelTextSize: 's',
|
|
70
|
+
badgeSize: 'xs',
|
|
71
|
+
badgeTextSize: 'xs',
|
|
72
|
+
dividerSize: 's',
|
|
73
|
+
},
|
|
74
|
+
sizeXS: {
|
|
75
|
+
size: 'xs',
|
|
76
|
+
labelTextSize: 'xs',
|
|
77
|
+
badgeSize: 'xs',
|
|
78
|
+
badgeTextSize: 'xs',
|
|
79
|
+
},
|
|
80
|
+
sizeXXS: {
|
|
81
|
+
size: 'xxs',
|
|
82
|
+
labelTextSize: 'xs',
|
|
83
|
+
badgeSize: 'xxs',
|
|
31
84
|
badgeTextSize: 'xxs',
|
|
85
|
+
dividerSize: 's',
|
|
32
86
|
},
|
|
33
87
|
};
|
|
34
88
|
|
|
@@ -38,68 +92,99 @@ var tabAppearanceStyle = {
|
|
|
38
92
|
},
|
|
39
93
|
ghost: {
|
|
40
94
|
fill: 'none',
|
|
41
|
-
|
|
95
|
+
borderColor: 'none',
|
|
42
96
|
},
|
|
43
97
|
outlined: {
|
|
44
98
|
fill: 'none',
|
|
45
99
|
},
|
|
46
100
|
solid: {
|
|
47
|
-
|
|
101
|
+
borderColor: 'none',
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
var tabAppearanceSuccess = {
|
|
106
|
+
successPrimary: {
|
|
107
|
+
fill: 'successPrimary',
|
|
108
|
+
fillDisabled: 'successDisabled',
|
|
109
|
+
labelColor: 'successTextPrimary',
|
|
110
|
+
labelColorActive: 'successTextAccent',
|
|
111
|
+
labelColorDisabled: 'successTextDisabled',
|
|
112
|
+
dividerFillDisabled: 'successDisabled',
|
|
113
|
+
badgeAppearance: 'success',
|
|
114
|
+
dividerFill: 'accentPrimary',
|
|
48
115
|
},
|
|
49
116
|
};
|
|
50
117
|
|
|
51
118
|
var tabAppearanceSurface = {
|
|
52
119
|
surfacePrimary: {
|
|
53
120
|
fill: 'surfacePrimary',
|
|
121
|
+
fillActive: 'surfacePrimary',
|
|
122
|
+
fillActiveHover: 'surfaceSecondary',
|
|
54
123
|
fillDisabled: 'surfaceDisabled',
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
124
|
+
fillHover: 'surfaceSecondary',
|
|
125
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
126
|
+
labelTextColorActive: 'surfaceTextAccent',
|
|
127
|
+
borderColor: 'surfaceBorderPrimary',
|
|
58
128
|
dividerFillDisabled: 'accentDisabled',
|
|
59
|
-
dividerFill: 'surfaceTertiary',
|
|
60
|
-
dividerFillActive: 'accentPrimary',
|
|
61
|
-
dividerFillHover: 'accentPrimary',
|
|
62
129
|
badgeAppearance: 'accentPrimary',
|
|
63
|
-
},
|
|
64
|
-
surfaceQuaternary: {
|
|
65
|
-
fill: 'surfaceQuaternary',
|
|
66
|
-
fillDisabled: 'surfaceDisabled',
|
|
67
|
-
fillHover: 'surfaceTertiaryHover',
|
|
68
|
-
labelColor: 'surfaceTextInverse',
|
|
69
|
-
labelColorActive: 'surfaceTextInverse',
|
|
70
|
-
labelColorDisabled: 'surfaceTextDisabled',
|
|
71
|
-
dividerFillDisabled: 'accentDisabled',
|
|
72
|
-
dividerFill: 'surfaceTertiary',
|
|
73
130
|
dividerFillActive: 'accentPrimary',
|
|
74
|
-
|
|
131
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
75
132
|
},
|
|
76
133
|
surfaceSecondary: {
|
|
77
134
|
fill: 'surfaceSecondary',
|
|
135
|
+
fillActive: 'surfaceSecondary',
|
|
136
|
+
fillActiveHover: 'surfaceTertiary',
|
|
78
137
|
fillDisabled: 'surfaceDisabled',
|
|
79
|
-
fillHover: '
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
labelColorDisabled: 'surfaceTextDisabled',
|
|
138
|
+
fillHover: 'surfaceTertiary',
|
|
139
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
140
|
+
labelTextColorActive: 'surfaceTextAccent',
|
|
83
141
|
dividerFillDisabled: 'accentDisabled',
|
|
84
|
-
|
|
142
|
+
badgeAppearance: 'accentPrimary',
|
|
85
143
|
dividerFillActive: 'accentPrimary',
|
|
86
|
-
|
|
144
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
87
145
|
},
|
|
88
146
|
surfaceTertiary: {
|
|
89
147
|
fill: 'surfaceTertiary',
|
|
148
|
+
fillActive: 'surfaceSecondary',
|
|
149
|
+
fillActiveHover: 'surfaceTertiary',
|
|
90
150
|
fillDisabled: 'surfaceDisabled',
|
|
91
|
-
fillHover: '
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
labelColorDisabled: 'surfaceTextDisabled',
|
|
151
|
+
fillHover: 'surfaceSecondary',
|
|
152
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
153
|
+
labelTextColorActive: 'surfaceTextAccent',
|
|
95
154
|
dividerFillDisabled: 'accentDisabled',
|
|
96
|
-
|
|
155
|
+
badgeAppearance: 'accentPrimary',
|
|
97
156
|
dividerFillActive: 'accentPrimary',
|
|
98
|
-
|
|
157
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
158
|
+
},
|
|
159
|
+
surfaceQuaternary: {
|
|
160
|
+
fill: 'surfaceQuaternary',
|
|
161
|
+
fillActive: 'accentPrimary',
|
|
162
|
+
fillActiveHover: 'surfaceTertiary',
|
|
163
|
+
fillDisabled: 'surfaceDisabled',
|
|
164
|
+
fillHover: 'surfaceQuaternary',
|
|
165
|
+
labelTextColor: 'surfaceTextInverse',
|
|
166
|
+
labelTextColorActive: 'surfaceTextInverse',
|
|
167
|
+
dividerFillDisabled: 'accentDisabled',
|
|
168
|
+
badgeAppearance: 'accentPrimary',
|
|
169
|
+
dividerFillActive: 'accentPrimary',
|
|
170
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
171
|
+
},
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
var tabAppearanceWarning = {
|
|
175
|
+
warningPrimary: {
|
|
176
|
+
fill: 'warningPrimary',
|
|
177
|
+
fillDisabled: 'warningDisabled',
|
|
178
|
+
labelColor: 'warningTextPrimary',
|
|
179
|
+
labelColorActive: 'warningTextAccent',
|
|
180
|
+
labelColorDisabled: 'warningTextDisabled',
|
|
181
|
+
dividerFillDisabled: 'warningDisabled',
|
|
182
|
+
badgeAppearance: 'warning',
|
|
183
|
+
dividerFill: 'accentPrimary',
|
|
99
184
|
},
|
|
100
185
|
};
|
|
101
186
|
|
|
102
|
-
var tabAppearance = __assign(__assign(__assign({}, tabAppearanceSurface), tabAppearanceSize), tabAppearanceStyle);
|
|
187
|
+
var tabAppearance = __assign(__assign(__assign(__assign(__assign(__assign({}, tabAppearanceWarning), tabAppearanceError), tabAppearanceSuccess), tabAppearanceSurface), tabAppearanceSize), tabAppearanceStyle);
|
|
103
188
|
|
|
104
189
|
var tabConfig = {
|
|
105
190
|
appearance: tabAppearance,
|
|
@@ -108,27 +193,36 @@ var tabConfig = {
|
|
|
108
193
|
},
|
|
109
194
|
};
|
|
110
195
|
function Tab(props) {
|
|
111
|
-
var className = props.className, appearance = props.appearance, label = props.label, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, badgeValue = props.badgeValue, dataTour = props.dataTour, href = props.href, link = props.link, rel = props.rel,
|
|
196
|
+
var className = props.className, appearance = props.appearance, label = props.label, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, badgeValue = props.badgeValue, dataTour = props.dataTour, href = props.href, link = props.link, rel = props.rel, target = props.target, before = props.before, after = props.after, _b = props.isActive, isActive = _b === void 0 ? false : _b, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
|
|
112
197
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
113
198
|
var _a;
|
|
114
199
|
return (__assign(__assign({}, resultConfig), (_a = tabConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
115
200
|
}, {});
|
|
116
201
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
117
|
-
var justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass,
|
|
202
|
+
var justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextAlign = propsGenerator.labelTextAlign, labelTextColor = propsGenerator.labelTextColor, labelTextColorActive = propsGenerator.labelTextColorActive, labelTextColorActiveHover = propsGenerator.labelTextColorActiveHover, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextStyle = propsGenerator.labelTextStyle, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorActiveClass = propsGenerator.borderColorActiveClass, borderColorActiveHoverClass = propsGenerator.borderColorActiveHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, dividerFillDisabled = propsGenerator.dividerFillDisabled, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dividerFill = propsGenerator.dividerFill, dividerFillActive = propsGenerator.dividerFillActive, dividerFillActiveHover = propsGenerator.dividerFillActiveHover, dividerFillHover = propsGenerator.dividerFillHover, dividerSize = propsGenerator.dividerSize, icon = propsGenerator.icon, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, linkFill = propsGenerator.linkFill, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
118
203
|
// @ts-expect-error
|
|
119
204
|
var tab = useStyles(props).styles;
|
|
120
|
-
return (jsx("div", { className: clsx('tab', isActive && 'tab_state_active', isDisabled && 'tab_state_disabled',
|
|
205
|
+
return (jsx("div", { className: clsx('tab', className, isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', !isActive
|
|
121
206
|
? fillClass && "fill_".concat(fillClass)
|
|
122
|
-
:
|
|
207
|
+
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
208
|
+
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
209
|
+
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), !isActive
|
|
210
|
+
? borderColorClass && "border-color_".concat(borderColorClass)
|
|
211
|
+
: borderColorActiveClass &&
|
|
212
|
+
"border-color_active_".concat(borderColorActiveClass), !isActive
|
|
213
|
+
? borderColorHoverClass &&
|
|
214
|
+
"border-color_hover_".concat(borderColorHoverClass)
|
|
215
|
+
: borderColorActiveHoverClass &&
|
|
216
|
+
"border-color_active_hover_".concat(borderColorActiveHoverClass), sizeClass && "tab_size_".concat(sizeClass), shapeClass && "tab_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), onClick && 'cursor_type_pointer'), "data-tour": dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxs(Link, { className: clsx('tab__link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), !isDisabled && 'cursor_type_pointer'), fill: linkFill, href: link || href, rel: rel, target: target, children: [before, children || (jsxs(React.Fragment, { children: [jsxs("div", { className: "tab__wrapper", children: [label && (jsx(Text, { className: "tab__label", size: labelTextSize, textAlign: labelTextAlign, textColor: labelTextColor, textColorActive: labelTextColorActive, textColorHover: labelTextColorHover, textColorHoverActive: labelTextColorActiveHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, isDisabled: isDisabled, isActive: isActive, children: label })), badgeValue && (jsx(Badge, { appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsx(Icon, { className: clsx('tab__icon_after'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }), jsx(Divider, { width: "fill", direction: "horizontal", size: dividerSize, fill: dividerFill, fillActive: dividerFillActive, fillActiveHover: dividerFillActiveHover, fillDisabled: dividerFillDisabled, fillHover: dividerFillHover, zIndex: "1", isDisabled: isDisabled, isActive: isActive })] })), after] }) }));
|
|
123
217
|
}
|
|
124
218
|
|
|
125
219
|
function TabGroup(props) {
|
|
126
|
-
var className = props.className, dataTestId = props.dataTestId, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, style = props.style, set = props.set, children = props.children;
|
|
220
|
+
var className = props.className, dataTestId = props.dataTestId, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, style = props.style, tabAppearance = props.tabAppearance, tabList = props.tabList, set = props.set, children = props.children;
|
|
127
221
|
var propsGenerator = useDevicePropsGenerator(props);
|
|
128
222
|
var directionClass = propsGenerator.directionClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, contentAlignClass = propsGenerator.contentAlignClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
129
223
|
// @ts-expect-error
|
|
130
224
|
var _a = useStyles(props), groupStyles = _a.styles, groupWrapperStyles = _a.wrapper;
|
|
131
|
-
return (jsx("div", { className: clsx(className, 'tab-group', 'group', widthClass && "width_".concat(widthClass), contentAlignClass && "group_content-align_".concat(contentAlignClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), set && "group_set_".concat(set), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (
|
|
225
|
+
return (jsx("div", { className: clsx(className, 'tab-group', 'group', widthClass && "width_".concat(widthClass), contentAlignClass && "group_content-align_".concat(contentAlignClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), set && "group_set_".concat(set), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsxs("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: [tabList === null || tabList === void 0 ? void 0 : tabList.map(function (item) { return (jsx(Tab, { appearance: tabAppearance, label: item.label, isActive: item.isActive }, item.key)); }), children] })) : (jsxs(React.Fragment, { children: [tabList === null || tabList === void 0 ? void 0 : tabList.map(function (item) { return (jsx(Tab, { appearance: tabAppearance, label: item.label, badgeValue: item.badgeValue, icon: item.icon, iconSrc: item.icon, isActive: item.isActive }, item.key)); }), children] })) }));
|
|
132
226
|
}
|
|
133
227
|
|
|
134
228
|
export { Tab, TabGroup, tabAppearance, tabConfig };
|
package/dist/components/Tile.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } 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 { b as Title, B as Badge } from '../
|
|
6
|
+
import { b as Title, B as Badge } from '../Tooltip_es_D1w1s33u.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BRb3qqKM.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'lodash/camelCase';
|
package/dist/components/Title.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as Title, d as titleAppearance, c as titleConfig } from '../
|
|
1
|
+
export { b as Title, d as titleAppearance, c as titleConfig } from '../Tooltip_es_D1w1s33u.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../
|
|
1
|
+
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip_es_D1w1s33u.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
animation: badgeSkeleton 3s infinite linear !important;
|
|
14
14
|
background-image: linear-gradient(
|
|
15
15
|
90deg,
|
|
16
|
-
var(--color-surface-secondary),
|
|
17
|
-
var(--color-surface-tertiary),
|
|
18
|
-
var(--color-surface-secondary)
|
|
16
|
+
var(--color-surface-fill-secondary),
|
|
17
|
+
var(--color-surface-fill-tertiary),
|
|
18
|
+
var(--color-surface-fill-secondary)
|
|
19
19
|
) !important;
|
|
20
20
|
& * {
|
|
21
21
|
opacity: 0%;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.breadcrumbs {
|
|
2
|
+
}
|
|
3
|
+
.breadcrumbs__item {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
}
|
|
7
|
+
.breadcrumbs__item {
|
|
8
|
+
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
9
|
+
&_size_$(size) {
|
|
10
|
+
gap: var(--breadcrumbs-item-$(size)-gap);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
:root {
|
|
15
|
+
--breadcrumbs-item-xxl-gap: 12px;
|
|
16
|
+
--breadcrumbs-item-xl-gap: 8px;
|
|
17
|
+
--breadcrumbs-item-l-gap: 8px;
|
|
18
|
+
--breadcrumbs-item-m-gap: 8px;
|
|
19
|
+
--breadcrumbs-item-s-gap: 8px;
|
|
20
|
+
--breadcrumbs-item-xs-gap: 8px;
|
|
21
|
+
--breadcrumbs-item-xxs-gap: 8px;
|
|
22
|
+
}
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
animation: buttonSkeleton 3s infinite linear !important;
|
|
71
71
|
background-image: linear-gradient(
|
|
72
72
|
90deg,
|
|
73
|
-
var(--color-surface-secondary),
|
|
74
|
-
var(--color-surface-tertiary),
|
|
75
|
-
var(--color-surface-secondary)
|
|
73
|
+
var(--color-surface-fill-secondary),
|
|
74
|
+
var(--color-surface-fill-tertiary),
|
|
75
|
+
var(--color-surface-fill-secondary)
|
|
76
76
|
) !important;
|
|
77
77
|
& * {
|
|
78
78
|
opacity: 0%;
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
.button {
|
|
91
|
-
@each $size in
|
|
91
|
+
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
92
92
|
&_size_$(size) {
|
|
93
93
|
^&__wrapper {
|
|
94
94
|
min-width: var(--button-$(size)-min-width);
|
|
@@ -12,17 +12,18 @@
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
.label {
|
|
15
|
-
|
|
15
|
+
&&_skeleton {
|
|
16
|
+
background-size: 200% !important;
|
|
17
|
+
border: none;
|
|
18
|
+
animation: badgeSkeleton 3s infinite linear !important;
|
|
16
19
|
background-image: linear-gradient(
|
|
17
20
|
90deg,
|
|
18
|
-
var(--color-surface-secondary),
|
|
19
|
-
var(--color-surface-tertiary),
|
|
20
|
-
var(--color-surface-secondary)
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
^&__label {
|
|
25
|
-
color: transparent;
|
|
21
|
+
var(--color-surface-fill-secondary),
|
|
22
|
+
var(--color-surface-fill-tertiary),
|
|
23
|
+
var(--color-surface-fill-secondary)
|
|
24
|
+
) !important;
|
|
25
|
+
& * {
|
|
26
|
+
opacity: 0%;
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -12,8 +12,27 @@
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
.loader {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
&&_skeleton {
|
|
16
|
+
background-size: 200% !important;
|
|
17
|
+
border: none;
|
|
18
|
+
animation: loaderSkeleton 3s infinite linear !important;
|
|
19
|
+
background-image: linear-gradient(
|
|
20
|
+
90deg,
|
|
21
|
+
var(--color-surface-fill-secondary),
|
|
22
|
+
var(--color-surface-fill-tertiary),
|
|
23
|
+
var(--color-surface-fill-secondary)
|
|
24
|
+
) !important;
|
|
25
|
+
& * {
|
|
26
|
+
opacity: 0%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@keyframes loaderSkeleton {
|
|
31
|
+
0% {
|
|
32
|
+
background-position: 200%;
|
|
33
|
+
}
|
|
34
|
+
100% {
|
|
35
|
+
background-position: -200%;
|
|
17
36
|
}
|
|
18
37
|
}
|
|
19
38
|
.loader {
|
|
@@ -14,4 +14,23 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
+
@each $palette in red, neon-pink, electric-pink, hibiscus, pink, pink-citrus,
|
|
18
|
+
pomagranate, dragon-fruit, camellia, red-rose, plum, orange, clementine,
|
|
19
|
+
apricot, papaya, kumquat, light-orange, peach, flamingo, rose-gold,
|
|
20
|
+
pink-sand, vintage-rose, grapefruit, cream, mellow-yellow, canary-yellow,
|
|
21
|
+
pollen, flash-light, lemon-cream, flash, dark-green, green, spearmint, mint,
|
|
22
|
+
beryl, sea-foam, turquoise, blue, light-blue, cerulian, surf-blue,
|
|
23
|
+
pacific-green, blue-cobalt, dark-teal, blue-horizon, denim-blue, linen-blue,
|
|
24
|
+
deep-navy, midnight-blue, purple, ultra-violet, lilac, ocean-blue,
|
|
25
|
+
delft-blue, indigo, lavender-gray, lavender, mist-blue, storm-gray, cactus,
|
|
26
|
+
pine-green, cyprus-green, northern-blue, azure, alaskan-blue, khaki,
|
|
27
|
+
dark-olive, soft-white, antique-white, yellow-gold, gold, camel, walnut,
|
|
28
|
+
stone, pebble, cocoa, coastal-gray, white, black, alto, athens-gray,
|
|
29
|
+
sonic-silver {
|
|
30
|
+
&_$(palette) {
|
|
31
|
+
border-width: 1px;
|
|
32
|
+
border-color: var(--color-palette-$(palette));
|
|
33
|
+
border-style: solid;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
17
36
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.border-color {
|
|
2
|
+
&_active {
|
|
3
|
+
@each $type in accent, primary, secondary, tertiary, quaternary, surface,
|
|
4
|
+
error, success, warning, info, danger, gradient, disabled, hover, inverse {
|
|
5
|
+
@each $color in primary, secondary, tertiary, quaternary, accent,
|
|
6
|
+
disabled, hover, inverse {
|
|
7
|
+
&_$(type) {
|
|
8
|
+
&-border {
|
|
9
|
+
&-$(color) {
|
|
10
|
+
border-width: 1px;
|
|
11
|
+
border-color: var(--color-$(type)-border-$(color));
|
|
12
|
+
border-style: solid;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
19
|
+
pink-citrus, pomagranate, dragon-fruit, camellia, red-rose, plum, orange,
|
|
20
|
+
clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
|
|
21
|
+
rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
|
|
22
|
+
canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
|
|
23
|
+
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulian,
|
|
24
|
+
surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
|
|
25
|
+
denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
|
|
26
|
+
lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
|
|
27
|
+
storm-gray, cactus, pine-green, cyprus-green, northern-blue, azure,
|
|
28
|
+
alaskan-blue, khaki, dark-olive, soft-white, antique-white, yellow-gold,
|
|
29
|
+
gold, camel, walnut, stone, pebble, cocoa, coastal-gray, white, black,
|
|
30
|
+
alto, athens-gray, sonic-silver {
|
|
31
|
+
&_$(palette) {
|
|
32
|
+
border-width: 1px;
|
|
33
|
+
border-color: var(--color-palette-$(palette));
|
|
34
|
+
border-style: solid;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -8,13 +8,37 @@
|
|
|
8
8
|
&-border {
|
|
9
9
|
&-$(color) {
|
|
10
10
|
&:focus {
|
|
11
|
-
|
|
11
|
+
border-width: 1px;
|
|
12
12
|
border-color: var(--color-$(type)-border-$(color)) !important;
|
|
13
|
+
border-style: solid;
|
|
14
|
+
outline: 0;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
}
|
|
21
|
+
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
22
|
+
pink-citrus, pomagranate, dragon-fruit, camellia, red-rose, plum, orange,
|
|
23
|
+
clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
|
|
24
|
+
rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
|
|
25
|
+
canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
|
|
26
|
+
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulian,
|
|
27
|
+
surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
|
|
28
|
+
denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
|
|
29
|
+
lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
|
|
30
|
+
storm-gray, cactus, pine-green, cyprus-green, northern-blue, azure,
|
|
31
|
+
alaskan-blue, khaki, dark-olive, soft-white, antique-white, yellow-gold,
|
|
32
|
+
gold, camel, walnut, stone, pebble, cocoa, coastal-gray, white, black,
|
|
33
|
+
alto, athens-gray, sonic-silver {
|
|
34
|
+
&_$(palette) {
|
|
35
|
+
&:focus {
|
|
36
|
+
border-width: 1px;
|
|
37
|
+
border-color: var(--color-palette-$(palette)) !important;
|
|
38
|
+
border-style: solid;
|
|
39
|
+
outline: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
19
43
|
}
|
|
20
44
|
}
|
|
@@ -8,11 +8,15 @@
|
|
|
8
8
|
&-border {
|
|
9
9
|
&-$(color) {
|
|
10
10
|
&:hover {
|
|
11
|
+
border-width: 1px;
|
|
11
12
|
border-color: var(--color-$(type)-border-$(color));
|
|
13
|
+
border-style: solid;
|
|
12
14
|
}
|
|
13
15
|
&-hover {
|
|
14
16
|
&:hover {
|
|
17
|
+
border-width: 1px;
|
|
15
18
|
border-color: var(--color-$(type)-border-$(color));
|
|
19
|
+
border-style: solid;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
}
|
|
@@ -20,5 +24,33 @@
|
|
|
20
24
|
}
|
|
21
25
|
}
|
|
22
26
|
}
|
|
27
|
+
@each $palette in red, neon-pink, electric-pink, hibiscus, pink,
|
|
28
|
+
pink-citrus, pomagranate, dragon-fruit, camellia, red-rose, plum, orange,
|
|
29
|
+
clementine, apricot, papaya, kumquat, light-orange, peach, flamingo,
|
|
30
|
+
rose-gold, pink-sand, vintage-rose, grapefruit, cream, mellow-yellow,
|
|
31
|
+
canary-yellow, pollen, flash-light, lemon-cream, flash, dark-green, green,
|
|
32
|
+
spearmint, mint, beryl, sea-foam, turquoise, blue, light-blue, cerulian,
|
|
33
|
+
surf-blue, pacific-green, blue-cobalt, dark-teal, blue-horizon,
|
|
34
|
+
denim-blue, linen-blue, deep-navy, midnight-blue, purple, ultra-violet,
|
|
35
|
+
lilac, ocean-blue, delft-blue, indigo, lavender-gray, lavender, mist-blue,
|
|
36
|
+
storm-gray, cactus, pine-green, cyprus-green, northern-blue, azure,
|
|
37
|
+
alaskan-blue, khaki, dark-olive, soft-white, antique-white, yellow-gold,
|
|
38
|
+
gold, camel, walnut, stone, pebble, cocoa, coastal-gray, white, black,
|
|
39
|
+
alto, athens-gray, sonic-silver {
|
|
40
|
+
&_$(palette) {
|
|
41
|
+
&:hover {
|
|
42
|
+
border-width: 1px;
|
|
43
|
+
border-color: var(--color-palette-$(palette));
|
|
44
|
+
border-style: solid;
|
|
45
|
+
}
|
|
46
|
+
&-hover {
|
|
47
|
+
&:hover {
|
|
48
|
+
border-width: 1px;
|
|
49
|
+
border-color: var(--color-palette-$(palette));
|
|
50
|
+
border-style: solid;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
23
55
|
}
|
|
24
56
|
}
|
|
@@ -6,6 +6,4 @@ import * as BreadcrumbsStories from '../stories/Breadcrumbs.stories'
|
|
|
6
6
|
|
|
7
7
|
# Playground
|
|
8
8
|
|
|
9
|
-
<Canvas sourceState="shown" of={
|
|
10
|
-
|
|
11
|
-
<Canvas sourceState="shown" of={BreadcrumbsItemStories.Demo} />
|
|
9
|
+
<Canvas sourceState="shown" of={BreadcrumbsStories.Demo} />
|
|
@@ -7,20 +7,32 @@ declare const badgeAppearanceAccent: {
|
|
|
7
7
|
iconFill: string;
|
|
8
8
|
};
|
|
9
9
|
accentPrimary: {
|
|
10
|
-
dotFill: string;
|
|
11
10
|
fill: string;
|
|
12
11
|
borderColor: string;
|
|
13
12
|
textColor: string;
|
|
13
|
+
dotFill: string;
|
|
14
14
|
iconFill: string;
|
|
15
15
|
};
|
|
16
16
|
accentQuaternary: {
|
|
17
|
+
fill: string;
|
|
18
|
+
borderColor: string;
|
|
19
|
+
textColor: string;
|
|
17
20
|
dotFill: string;
|
|
21
|
+
iconFill: string;
|
|
18
22
|
};
|
|
19
23
|
accentSecondary: {
|
|
24
|
+
fill: string;
|
|
25
|
+
borderColor: string;
|
|
26
|
+
textColor: string;
|
|
20
27
|
dotFill: string;
|
|
28
|
+
iconFill: string;
|
|
21
29
|
};
|
|
22
30
|
accentTertiary: {
|
|
31
|
+
fill: string;
|
|
32
|
+
borderColor: string;
|
|
33
|
+
textColor: string;
|
|
23
34
|
dotFill: string;
|
|
35
|
+
iconFill: string;
|
|
24
36
|
};
|
|
25
37
|
};
|
|
26
38
|
export { badgeAppearanceAccent };
|