@itcase/ui 1.8.43 → 1.8.44
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_BbeDJ-No.js → Avatar_cjs_Bp8wjwGw.js} +8 -10
- package/dist/{Avatar_es_B1Ao9Im_.js → Avatar_es_BIKf0hNV.js} +7 -9
- package/dist/{Button_cjs_Bzx1GdT5.js → Button_cjs_Chn18eOU.js} +104 -10
- package/dist/{Button_es_DhCLxWhq.js → Button_es_XnWb2XF3.js} +103 -9
- package/dist/{ChipsGroup_cjs_p99H-9a8.js → ChipsGroup_cjs_Deoz_rju.js} +9 -9
- package/dist/{ChipsGroup_es_CWq3TR_1.js → ChipsGroup_es_C1Qi_5A1.js} +8 -8
- package/dist/{DatePicker_cjs_Cq8vqj3E.js → DatePicker_cjs_B24qHiks.js} +13 -16
- package/dist/{DatePicker_es_DYs71cnU.js → DatePicker_es_BuC8mEcK.js} +10 -13
- package/dist/{Divider_cjs_BmCJj3TN.js → Divider_cjs_rxMMBfLC.js} +3 -5
- package/dist/{Divider_es_kY-30pft.js → Divider_es_CiRU0sTz.js} +3 -5
- package/dist/{DropdownItem_cjs_B1gGciTB.js → DropdownItem_cjs_DuqySfbd.js} +6 -8
- package/dist/{DropdownItem_es_JVT4f6Nb.js → DropdownItem_es_BBxfR35q.js} +5 -7
- package/dist/{Group_cjs_Cwt0gWk4.js → Group_cjs_CDLfU5D2.js} +5 -8
- package/dist/{Group_es_CYW2Hquh.js → Group_es_DSZxyI1e.js} +5 -8
- package/dist/{Tooltip_cjs_BBwH8sjA.js → Icon_cjs_DRZih-pc.js} +588 -599
- package/dist/{Tooltip_es_Y2aoFQW7.js → Icon_es_k9bHSLyL.js} +588 -599
- package/dist/{Input_cjs_CPmXkQGd.js → Input_cjs_BGLd0EQu.js} +3 -5
- package/dist/{Input_es_D9Y1Rj5Y.js → Input_es_D2mNCqiH.js} +3 -5
- package/dist/{Label_cjs_Mb8j2bLu.js → Label_cjs_D70CHJDE.js} +6 -8
- package/dist/{Label_es_CIDBUVgO.js → Label_es_HXrap3A4.js} +5 -7
- package/dist/{Link_cjs_DbRGq2Yk.js → Link_cjs_BqT6eVl6.js} +2 -4
- package/dist/{Link_es_DxtZLeKY.js → Link_es_BnUIX0QT.js} +2 -4
- package/dist/{Loader_cjs_Ca4i0sER.js → Loader_cjs_BShrE-Nb.js} +5 -7
- package/dist/{Loader_es_GYOr0UTX.js → Loader_es_BDb87cdb.js} +5 -7
- package/dist/{Overlay_cjs_CFOtnzDU.js → Overlay_cjs_BMrkRg7M.js} +3 -5
- package/dist/{Overlay_es_DczPjVL9.js → Overlay_es_D_izIIUB.js} +3 -5
- package/dist/{Text_cjs_C9fOm0nd.js → Text_cjs_BlNeIm_v.js} +5 -7
- package/dist/{Text_es_BfLRfj-5.js → Text_es_Ffjr5J1k.js} +5 -7
- package/dist/cjs/components/Accordion.js +7 -9
- package/dist/cjs/components/Avatar.js +9 -8
- package/dist/cjs/components/AvatarStack.js +8 -10
- package/dist/cjs/components/Badge.js +11 -10
- package/dist/cjs/components/Breadcrumbs.js +6 -8
- package/dist/cjs/components/Button.js +11 -10
- package/dist/cjs/components/Cell.js +8 -10
- package/dist/cjs/components/Checkbox.js +4 -6
- package/dist/cjs/components/Checkmark.js +3 -5
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice.js +9 -11
- package/dist/cjs/components/Code.js +3 -5
- package/dist/cjs/components/CookiesWarning.js +12 -14
- package/dist/cjs/components/Dadata.js +2 -1
- package/dist/cjs/components/DatePeriod.js +12 -15
- package/dist/cjs/components/DatePicker.js +9 -8
- package/dist/cjs/components/Divider.js +4 -3
- package/dist/cjs/components/Drawer.js +13 -15
- package/dist/cjs/components/Dropdown.js +6 -5
- package/dist/cjs/components/Group.js +3 -2
- package/dist/cjs/components/HeroTitle.js +7 -9
- package/dist/cjs/components/Icon.js +11 -10
- package/dist/cjs/components/Input.js +3 -2
- package/dist/cjs/components/InputPassword.js +9 -11
- package/dist/cjs/components/Label.js +6 -5
- package/dist/cjs/components/Link.js +2 -1
- package/dist/cjs/components/List.js +4 -6
- package/dist/cjs/components/Loader.js +5 -4
- package/dist/cjs/components/Logo.js +4 -6
- package/dist/cjs/components/MenuItem.js +31 -10
- package/dist/cjs/components/Modal.js +10 -12
- package/dist/cjs/components/Notification.js +7 -9
- package/dist/cjs/components/Overlay.js +4 -3
- package/dist/cjs/components/Pagination.js +10 -12
- package/dist/cjs/components/Radio.js +4 -6
- package/dist/cjs/components/Response.js +8 -10
- package/dist/cjs/components/Search.js +7 -9
- package/dist/cjs/components/Segmented.js +12 -14
- package/dist/cjs/components/Select.js +15 -22
- package/dist/cjs/components/Swiper.js +5 -4
- package/dist/cjs/components/Switch.js +4 -6
- package/dist/cjs/components/Tab.js +8 -10
- package/dist/cjs/components/Text.js +4 -3
- package/dist/cjs/components/Textarea.js +3 -5
- package/dist/cjs/components/Tile.js +7 -9
- package/dist/cjs/components/Title.js +11 -10
- package/dist/cjs/components/Tooltip.js +11 -10
- package/dist/cjs/components/Warning.js +168 -0
- package/dist/cjs/hooks/useAppearanceConfig/useAppearanceConfig.js +4 -6
- package/dist/components/Accordion.js +6 -8
- package/dist/components/Avatar.js +9 -8
- package/dist/components/AvatarStack.js +8 -10
- package/dist/components/Badge.js +8 -7
- package/dist/components/Breadcrumbs.js +5 -7
- package/dist/components/Button.js +11 -10
- package/dist/components/Cell.js +7 -9
- package/dist/components/Checkbox.js +4 -6
- package/dist/components/Checkmark.js +3 -5
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice.js +7 -9
- package/dist/components/Code.js +3 -5
- package/dist/components/CookiesWarning.js +12 -14
- package/dist/components/Dadata.js +2 -1
- package/dist/components/DatePeriod.js +12 -15
- package/dist/components/DatePicker.js +9 -8
- package/dist/components/Divider.js +4 -3
- package/dist/components/Drawer.js +12 -14
- package/dist/components/Dropdown.js +6 -5
- package/dist/components/Group.js +3 -2
- package/dist/components/HeroTitle.js +6 -8
- package/dist/components/Icon.js +8 -7
- package/dist/components/Input.js +3 -2
- package/dist/components/InputPassword.js +8 -10
- package/dist/components/Label.js +6 -5
- package/dist/components/Link.js +2 -1
- package/dist/components/List.js +4 -6
- package/dist/components/Loader.js +5 -4
- package/dist/components/Logo.js +4 -6
- package/dist/components/MenuItem.js +29 -8
- package/dist/components/Modal.js +9 -11
- package/dist/components/Notification.js +6 -8
- package/dist/components/Overlay.js +4 -3
- package/dist/components/Pagination.js +8 -10
- package/dist/components/Radio.js +4 -6
- package/dist/components/Response.js +8 -10
- package/dist/components/Search.js +5 -7
- package/dist/components/Segmented.js +10 -12
- package/dist/components/Select.js +11 -18
- package/dist/components/Swiper.js +4 -3
- package/dist/components/Switch.js +4 -6
- package/dist/components/Tab.js +7 -9
- package/dist/components/Text.js +4 -3
- package/dist/components/Textarea.js +3 -5
- package/dist/components/Tile.js +6 -8
- package/dist/components/Title.js +8 -7
- package/dist/components/Tooltip.js +8 -7
- package/dist/components/Warning.js +164 -0
- package/dist/css/components/MenuItem/MenuItem.css +2 -2
- package/dist/css/components/Warning/Warning.css +52 -0
- package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +4 -6
- package/dist/stories/Overview.mdx +6 -6
- package/dist/stories/Playground.mdx +5 -5
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +11 -0
- package/dist/types/components/Button/appearance/buttonDanger.d.ts +11 -0
- package/dist/types/components/Button/appearance/buttonError.d.ts +11 -0
- package/dist/types/components/Button/appearance/buttonInfo.d.ts +11 -0
- package/dist/types/components/Button/appearance/buttonPrimary.d.ts +10 -0
- package/dist/types/components/Button/appearance/buttonSecondary.d.ts +10 -0
- package/dist/types/components/Button/appearance/buttonSuccess.d.ts +11 -0
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +10 -0
- package/dist/types/components/Button/appearance/buttonWarning.d.ts +11 -0
- package/dist/types/components/CookiesWarning/CookiesWarning.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +8 -0
- package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +7 -0
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +8 -0
- package/dist/types/components/Warning/Warning.appearance.d.ts +101 -0
- package/dist/types/components/Warning/Warning.d.ts +4 -0
- package/dist/types/components/Warning/Warning.interface.d.ts +41 -0
- package/dist/types/components/Warning/appearance/warningAccent.d.ts +23 -0
- package/dist/types/components/Warning/appearance/warningError.d.ts +23 -0
- package/dist/types/components/Warning/appearance/warningInfo.d.ts +23 -0
- package/dist/types/components/Warning/appearance/warningSize.d.ts +11 -0
- package/dist/types/components/Warning/appearance/warningStyle.d.ts +14 -0
- package/dist/types/components/Warning/appearance/warningWarning.d.ts +23 -0
- package/dist/types/components/Warning/index.d.ts +2 -0
- package/dist/types/hooks/useAppearanceConfig/useAppearanceConfig.d.ts +1 -3
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
1
|
import { jsx } from 'react/jsx-runtime';
|
|
3
2
|
import clsx from 'clsx';
|
|
3
|
+
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
|
+
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
5
6
|
import 'react';
|
|
6
7
|
import 'lodash/camelCase';
|
|
7
8
|
import 'lodash/castArray';
|
|
@@ -184,10 +185,7 @@ var textareaConfig = {
|
|
|
184
185
|
};
|
|
185
186
|
function Textarea(props) {
|
|
186
187
|
var id = props.id, className = props.className, appearance = props.appearance, isDisabled = props.isDisabled, placeholder = props.placeholder, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onKeyDown = props.onKeyDown;
|
|
187
|
-
var appearanceConfig = appearance
|
|
188
|
-
var _a;
|
|
189
|
-
return (__assign(__assign({}, resultConfig), (_a = textareaConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
190
|
-
}, {});
|
|
188
|
+
var appearanceConfig = useAppearanceConfig(appearance, textareaConfig);
|
|
191
189
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
192
190
|
var fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderHoverClass = propsGenerator.borderHoverClass, borderWidthClass = propsGenerator.borderWidthClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
193
191
|
return (jsx("div", { className: clsx('textarea', className, sizeClass && "textarea_size_".concat(sizeClass), shapeClass && "textarea_shape_".concat(shapeClass)), children: jsx("textarea", { id: id, className: clsx('textarea__input', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), fillClass && "fill_".concat(fillClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderHoverClass && "border-color_hover_".concat(borderHoverClass), placeholderTextColorClass &&
|
package/dist/components/Tile.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
2
|
import clsx from 'clsx';
|
|
3
|
+
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
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, I as Icon } from '../
|
|
7
|
-
import { T as Text } from '../
|
|
6
|
+
import { b as Title, B as Badge, I as Icon } from '../Icon_es_k9bHSLyL.js';
|
|
7
|
+
import { T as Text } from '../Text_es_Ffjr5J1k.js';
|
|
8
|
+
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
8
9
|
import 'react';
|
|
9
10
|
import 'lodash/camelCase';
|
|
10
11
|
import 'lodash/castArray';
|
|
@@ -21,7 +22,7 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
21
22
|
import 'react-inlinesvg';
|
|
22
23
|
import '../hoc/urlWithAssetPrefix.js';
|
|
23
24
|
import '../context/UrlAssetPrefix.js';
|
|
24
|
-
import '../
|
|
25
|
+
import '../Link_es_BnUIX0QT.js';
|
|
25
26
|
|
|
26
27
|
var tileAppearanceSize = {
|
|
27
28
|
sizeXL: {
|
|
@@ -135,10 +136,7 @@ var tileConfig = {
|
|
|
135
136
|
};
|
|
136
137
|
function Tile(props) {
|
|
137
138
|
var className = props.className, type = props.type, appearance = props.appearance, direction = props.direction, title = props.title, desc = props.desc, badgeValue = props.badgeValue, reverse = props.reverse, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
|
|
138
|
-
var appearanceConfig = appearance
|
|
139
|
-
var _a;
|
|
140
|
-
return (__assign(__assign({}, resultConfig), (_a = tileConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
141
|
-
}, {});
|
|
139
|
+
var appearanceConfig = useAppearanceConfig(appearance, tileConfig);
|
|
142
140
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
143
141
|
var alignClass = propsGenerator.alignClass, _a = propsGenerator.alignDirectionClass, alignDirectionClass = _a === void 0 ? 'vertical' : _a, fillClass = propsGenerator.fillClass, titleTextAlign = propsGenerator.titleTextAlign, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, titleTextWrap = propsGenerator.titleTextWrap, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWrap = propsGenerator.descTextWrap, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, badgeAppearance = propsGenerator.badgeAppearance, badgeAppearanceSize = propsGenerator.badgeAppearanceSize, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, icon = propsGenerator.icon, iconAppearance = propsGenerator.iconAppearance, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
|
|
144
142
|
// @ts-expect-error
|
package/dist/components/Title.js
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
export { b as Title, d as titleAppearance, c as titleConfig } from '../
|
|
1
|
+
export { b as Title, d as titleAppearance, c as titleConfig } from '../Icon_es_k9bHSLyL.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'clsx';
|
|
6
|
+
import 'react-inlinesvg';
|
|
7
|
+
import '../hoc/urlWithAssetPrefix.js';
|
|
8
|
+
import '@itcase/common';
|
|
9
|
+
import '../context/UrlAssetPrefix.js';
|
|
10
|
+
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
11
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
12
|
import 'lodash/camelCase';
|
|
8
13
|
import 'lodash/castArray';
|
|
9
14
|
import 'lodash/upperFirst';
|
|
10
15
|
import '../context/Notifications.js';
|
|
11
16
|
import 'uuid';
|
|
12
|
-
import '@itcase/common';
|
|
13
17
|
import '../context/UIContext.js';
|
|
14
18
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
15
19
|
import 'react-responsive';
|
|
@@ -17,8 +21,5 @@ import '../utils/setViewportProperty.js';
|
|
|
17
21
|
import '../hooks/useStyles/useStyles.js';
|
|
18
22
|
import 'lodash/maxBy';
|
|
19
23
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
21
|
-
import '
|
|
22
|
-
import '../hoc/urlWithAssetPrefix.js';
|
|
23
|
-
import '../context/UrlAssetPrefix.js';
|
|
24
|
-
import '../Link_es_DxtZLeKY.js';
|
|
24
|
+
import '../Link_es_BnUIX0QT.js';
|
|
25
|
+
import '../Text_es_Ffjr5J1k.js';
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../
|
|
1
|
+
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Icon_es_k9bHSLyL.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'clsx';
|
|
6
|
+
import 'react-inlinesvg';
|
|
7
|
+
import '../hoc/urlWithAssetPrefix.js';
|
|
8
|
+
import '@itcase/common';
|
|
9
|
+
import '../context/UrlAssetPrefix.js';
|
|
10
|
+
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
11
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
12
|
import 'lodash/camelCase';
|
|
8
13
|
import 'lodash/castArray';
|
|
9
14
|
import 'lodash/upperFirst';
|
|
10
15
|
import '../context/Notifications.js';
|
|
11
16
|
import 'uuid';
|
|
12
|
-
import '@itcase/common';
|
|
13
17
|
import '../context/UIContext.js';
|
|
14
18
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
15
19
|
import 'react-responsive';
|
|
@@ -17,8 +21,5 @@ import '../utils/setViewportProperty.js';
|
|
|
17
21
|
import '../hooks/useStyles/useStyles.js';
|
|
18
22
|
import 'lodash/maxBy';
|
|
19
23
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
21
|
-
import '
|
|
22
|
-
import '../hoc/urlWithAssetPrefix.js';
|
|
23
|
-
import '../context/UrlAssetPrefix.js';
|
|
24
|
-
import '../Link_es_DxtZLeKY.js';
|
|
24
|
+
import '../Link_es_BnUIX0QT.js';
|
|
25
|
+
import '../Text_es_Ffjr5J1k.js';
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, Fragment } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { I as Icon } from '../Icon_es_k9bHSLyL.js';
|
|
5
|
+
import { T as Text } from '../Text_es_Ffjr5J1k.js';
|
|
6
|
+
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
|
+
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
|
+
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
+
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
10
|
+
import { icons16 } from '@itcase/icons/default';
|
|
11
|
+
import 'react-inlinesvg';
|
|
12
|
+
import '../hoc/urlWithAssetPrefix.js';
|
|
13
|
+
import '@itcase/common';
|
|
14
|
+
import '../context/UrlAssetPrefix.js';
|
|
15
|
+
import '../Link_es_BnUIX0QT.js';
|
|
16
|
+
import 'lodash/camelCase';
|
|
17
|
+
import 'lodash/castArray';
|
|
18
|
+
import 'lodash/upperFirst';
|
|
19
|
+
import '../context/Notifications.js';
|
|
20
|
+
import 'uuid';
|
|
21
|
+
import '../context/UIContext.js';
|
|
22
|
+
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
23
|
+
import 'react-responsive';
|
|
24
|
+
import '../utils/setViewportProperty.js';
|
|
25
|
+
import 'lodash/maxBy';
|
|
26
|
+
import '../hooks/useStyles/styleAttributes.js';
|
|
27
|
+
|
|
28
|
+
var warningAppearanceAccent = {
|
|
29
|
+
accentMutedPrimary: {
|
|
30
|
+
fill: 'accentTertiary',
|
|
31
|
+
labelTextColor: 'accentTextQuaternary',
|
|
32
|
+
descriptionTextColor: 'accentTextQuaternary',
|
|
33
|
+
borderColor: 'accentBorderSecondary',
|
|
34
|
+
iconAfter: icons16.Action.Close,
|
|
35
|
+
iconAfterFillIcon: 'accentItemQuaternary',
|
|
36
|
+
iconBefore: icons16.Alert.Warning,
|
|
37
|
+
iconBeforeFillIcon: 'accentItemQuaternary',
|
|
38
|
+
},
|
|
39
|
+
accentPrimary: {
|
|
40
|
+
fill: 'accentPrimary',
|
|
41
|
+
labelTextColor: 'accentTextPrimary',
|
|
42
|
+
descriptionTextColor: 'accentTextPrimary',
|
|
43
|
+
borderColor: 'accentBorderQuaternary',
|
|
44
|
+
iconAfter: icons16.Action.Close,
|
|
45
|
+
iconAfterFillIcon: 'accentItemPrimary',
|
|
46
|
+
iconBefore: icons16.Alert.Warning,
|
|
47
|
+
iconBeforeFillIcon: 'accentItemPrimary',
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
var warningAppearanceError = {
|
|
52
|
+
errorMutedPrimary: {
|
|
53
|
+
fill: 'errorTertiary',
|
|
54
|
+
labelTextColor: 'errorTextQuaternary',
|
|
55
|
+
descriptionTextColor: 'errorTextQuaternary',
|
|
56
|
+
borderColor: 'errorBorderSecondary',
|
|
57
|
+
iconAfter: icons16.Action.Close,
|
|
58
|
+
iconAfterFillIcon: 'errorItemQuaternary',
|
|
59
|
+
iconBefore: icons16.Action.Block,
|
|
60
|
+
iconBeforeFillIcon: 'errorItemQuaternary',
|
|
61
|
+
},
|
|
62
|
+
errorPrimary: {
|
|
63
|
+
fill: 'errorPrimary',
|
|
64
|
+
labelTextColor: 'errorTextPrimary',
|
|
65
|
+
descriptionTextColor: 'errorTextPrimary',
|
|
66
|
+
borderColor: 'errorBorderQuaternary',
|
|
67
|
+
iconAfter: icons16.Action.Close,
|
|
68
|
+
iconAfterFillIcon: 'errorItemPrimary',
|
|
69
|
+
iconBefore: icons16.Action.Block,
|
|
70
|
+
iconBeforeFillIcon: 'errorItemPrimary',
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
var warningAppearanceInfo = {
|
|
75
|
+
infoMutedPrimary: {
|
|
76
|
+
fill: 'infoTertiary',
|
|
77
|
+
labelTextColor: 'infoTextSecondary',
|
|
78
|
+
descriptionTextColor: 'infoTextSecondary',
|
|
79
|
+
borderColor: 'infoBorderSecondary',
|
|
80
|
+
iconAfter: icons16.Action.Close,
|
|
81
|
+
iconAfterFillIcon: 'infoItemQuaternary',
|
|
82
|
+
iconBefore: icons16.Alert.Warning,
|
|
83
|
+
iconBeforeFillIcon: 'infoItemQuaternary',
|
|
84
|
+
},
|
|
85
|
+
infoPrimary: {
|
|
86
|
+
fill: 'infoPrimary',
|
|
87
|
+
labelTextColor: 'infoTextPrimary',
|
|
88
|
+
descriptionTextColor: 'infoTextPrimary',
|
|
89
|
+
borderColor: 'infoBorderSecondary',
|
|
90
|
+
iconAfter: icons16.Action.Close,
|
|
91
|
+
iconAfterFillIcon: 'infoItemPrimary',
|
|
92
|
+
iconBefore: icons16.Alert.Warning,
|
|
93
|
+
iconBeforeFillIcon: 'infoItemPrimary',
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
var warningAppearanceSize = {
|
|
98
|
+
sizeL: {
|
|
99
|
+
size: 'l',
|
|
100
|
+
labelTextSize: 's',
|
|
101
|
+
labelTextWeight: '600',
|
|
102
|
+
descriptionTextSize: 's',
|
|
103
|
+
iconAfterSize: '16',
|
|
104
|
+
iconBeforeSize: '16',
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
var warningAppearanceStyle = {
|
|
109
|
+
solid: {
|
|
110
|
+
borderColor: 'none',
|
|
111
|
+
},
|
|
112
|
+
outlined: {
|
|
113
|
+
fill: 'none',
|
|
114
|
+
},
|
|
115
|
+
full: {},
|
|
116
|
+
ghost: {
|
|
117
|
+
fill: 'none',
|
|
118
|
+
borderColor: 'none',
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
var warningAppearanceWarning = {
|
|
123
|
+
warningMutedPrimary: {
|
|
124
|
+
fill: 'warningTertiary',
|
|
125
|
+
labelTextColor: 'warningTextSecondary',
|
|
126
|
+
descriptionTextColor: 'warningTextSecondary',
|
|
127
|
+
borderColor: 'warningBorderSecondary',
|
|
128
|
+
iconAfter: icons16.Action.Close,
|
|
129
|
+
iconAfterFillIcon: 'warningItemSecondary',
|
|
130
|
+
iconBefore: icons16.Alert.WarningTriangle,
|
|
131
|
+
iconBeforeFillIcon: 'warningItemSecondary',
|
|
132
|
+
},
|
|
133
|
+
warningPrimary: {
|
|
134
|
+
fill: 'warningPrimary',
|
|
135
|
+
labelTextColor: 'warningTextPrimary',
|
|
136
|
+
descriptionTextColor: 'warningTextPrimary',
|
|
137
|
+
borderColor: 'warningBorderSecondary',
|
|
138
|
+
iconAfter: icons16.Action.Close,
|
|
139
|
+
iconAfterFillIcon: 'warningItemPrimary',
|
|
140
|
+
iconBefore: icons16.Alert.WarningTriangle,
|
|
141
|
+
iconBeforeFillIcon: 'warningItemPrimary',
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
var warningAppearance = __assign(__assign(__assign(__assign(__assign(__assign({}, warningAppearanceAccent), warningAppearanceWarning), warningAppearanceError), warningAppearanceInfo), warningAppearanceStyle), warningAppearanceSize);
|
|
146
|
+
|
|
147
|
+
var warningConfig = {
|
|
148
|
+
appearance: warningAppearance,
|
|
149
|
+
setAppearance: function (appearanceConfig) {
|
|
150
|
+
warningConfig.appearance = appearanceConfig;
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
function Warning(props) {
|
|
154
|
+
var className = props.className, appearance = props.appearance, label = props.label, description = props.description, shape = props.shape, isSkeleton = props.isSkeleton;
|
|
155
|
+
var appearanceConfig = useAppearanceConfig(appearance, warningConfig);
|
|
156
|
+
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
157
|
+
var fillClass = propsGenerator.fillClass, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, descriptionTextColor = propsGenerator.descriptionTextColor, descriptionTextSize = propsGenerator.descriptionTextSize, borderColorClass = propsGenerator.borderColorClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, sizeClass = propsGenerator.sizeClass;
|
|
158
|
+
// @ts-ignore
|
|
159
|
+
var warningStyles = useStyles(props).styles;
|
|
160
|
+
var _a = useState(true), isVisible = _a[0], setIsVisible = _a[1];
|
|
161
|
+
return (jsx(Fragment, { children: isVisible && (jsxs("div", { className: clsx(className, 'warning', fillClass && "fill_".concat(fillClass), sizeClass && "warning_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), shape && "warning_shape_".concat(shape), isSkeleton && "warning_skeleton"), style: warningStyles, children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { fill: iconBeforeFill, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, SvgImage: iconBefore })), jsxs("div", { className: 'warning__content', children: [label && (jsx(Text, { size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), description && (jsx(Text, { size: descriptionTextSize, textColor: descriptionTextColor, children: description }))] }), (iconAfter || iconAfterSrc) && (jsx(Icon, { fill: iconAfterFill, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, SvgImage: iconAfter, onClick: function () { return setIsVisible(false); } }))] })) }));
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export { Warning, warningAppearance, warningConfig };
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
74
74
|
&_$(size) {
|
|
75
75
|
min-height: var(--menu-item-size-$(size)-min-height);
|
|
76
|
+
padding: var(--menu-item-size-$(size)-padding);
|
|
77
|
+
gap: var(--menu-item-size-$(size)-gap);
|
|
76
78
|
^^&__wrapper {
|
|
77
|
-
gap: var(--menu-item-size-$(size)-gap);
|
|
78
|
-
padding: var(--menu-item-size-$(size)-padding);
|
|
79
79
|
border-radius: var(--menu-item-size-$(size)-rounded);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.warning {
|
|
2
|
+
display: flex;
|
|
3
|
+
&__content {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
}
|
|
7
|
+
&_shape {
|
|
8
|
+
&_rounded {
|
|
9
|
+
border-radius: var(--warning-shape-rounded);
|
|
10
|
+
}
|
|
11
|
+
&_circular {
|
|
12
|
+
border-radius: 50%;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
.warning {
|
|
17
|
+
@each $size in l {
|
|
18
|
+
&_size_$(size) {
|
|
19
|
+
min-width: var(--warning-$(size)-min-width);
|
|
20
|
+
padding: var(--warning-$(size)-padding);
|
|
21
|
+
gap: var(--warning-$(size)-gap);
|
|
22
|
+
^&__content {
|
|
23
|
+
gap: var(--warning-content-$(size)-gap);
|
|
24
|
+
min-width: var(--warning-content-$(size)-min-width);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.warning {
|
|
30
|
+
&&_skeleton {
|
|
31
|
+
background-size: 200% !important;
|
|
32
|
+
border: none;
|
|
33
|
+
animation: warningSkeleton 3s infinite linear !important;
|
|
34
|
+
background-image: linear-gradient(
|
|
35
|
+
90deg,
|
|
36
|
+
var(--color-surface-fill-secondary),
|
|
37
|
+
var(--color-surface-fill-tertiary),
|
|
38
|
+
var(--color-surface-fill-secondary)
|
|
39
|
+
) !important;
|
|
40
|
+
& * {
|
|
41
|
+
opacity: 0%;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
@keyframes warningSkeleton {
|
|
46
|
+
0% {
|
|
47
|
+
background-position: 200%;
|
|
48
|
+
}
|
|
49
|
+
100% {
|
|
50
|
+
background-position: -200%;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -3,25 +3,23 @@ import { useMemo } from 'react';
|
|
|
3
3
|
|
|
4
4
|
var useAppearanceConfig = function (appearance, componentConfig, isDisabled) {
|
|
5
5
|
var appearanceConfig = useMemo(function () {
|
|
6
|
-
var _a, _b;
|
|
6
|
+
var _a, _b, _c;
|
|
7
7
|
if (appearance) {
|
|
8
8
|
var appearanceProps = appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
9
9
|
var _a;
|
|
10
10
|
return (__assign(__assign({}, resultConfig), (_a = componentConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
11
11
|
}, {});
|
|
12
12
|
if (isDisabled && ((_a = componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.appearance) === null || _a === void 0 ? void 0 : _a.disabled)) {
|
|
13
|
-
Object.assign(appearanceProps, componentConfig.appearance.disabled);
|
|
13
|
+
Object.assign(appearanceProps, (_b = componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.appearance) === null || _b === void 0 ? void 0 : _b.disabled);
|
|
14
14
|
}
|
|
15
15
|
return appearanceProps;
|
|
16
16
|
}
|
|
17
17
|
if (isDisabled) {
|
|
18
|
-
return (
|
|
18
|
+
return (_c = componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.appearance) === null || _c === void 0 ? void 0 : _c.disabled;
|
|
19
19
|
}
|
|
20
20
|
return {};
|
|
21
21
|
}, [appearance, componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.appearance, isDisabled]);
|
|
22
|
-
return
|
|
23
|
-
appearanceConfig: appearanceConfig,
|
|
24
|
-
};
|
|
22
|
+
return appearanceConfig;
|
|
25
23
|
};
|
|
26
24
|
|
|
27
25
|
export { useAppearanceConfig };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Meta, Story } from '@storybook/
|
|
1
|
+
import { Meta, Story } from '@storybook/blocks'
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as WarningStories from '../stories/WarningDemo.stories'
|
|
4
4
|
|
|
5
|
-
<Meta title="
|
|
5
|
+
<Meta title="Molecules / Warning / Overview" />
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# Warning
|
|
8
8
|
|
|
9
|
-
`
|
|
9
|
+
`Warning` - это элемент, который предупреждает о каком-либо действии
|
|
10
10
|
|
|
11
|
-
<Story of={
|
|
11
|
+
<Story of={WarningStories.Demo} />
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Canvas, Controls, Meta } from '@storybook/
|
|
1
|
+
import { Canvas, Controls, Meta } from '@storybook/blocks'
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as WarningStories from '../stories/WarningDemo.stories.tsx'
|
|
4
4
|
|
|
5
|
-
<Meta title="
|
|
5
|
+
<Meta title="Molecules / Warning / Playground" />
|
|
6
6
|
|
|
7
7
|
# Playground
|
|
8
8
|
|
|
9
|
-
<Canvas sourceState="shown" of={
|
|
10
|
-
<Controls of={
|
|
9
|
+
<Canvas sourceState="shown" of={WarningStories.Demo} />
|
|
10
|
+
<Controls of={WarningStories.Demo} />
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
declare const buttonAppearanceAccent: {
|
|
2
|
+
accentMutedPrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
labelTextColor: string;
|
|
6
|
+
labelTextColorHover: string;
|
|
7
|
+
borderColor: string;
|
|
8
|
+
iconAfterFillIcon: string;
|
|
9
|
+
iconBeforeFillIcon: string;
|
|
10
|
+
iconFillIcon: string;
|
|
11
|
+
loaderAppearance: string;
|
|
12
|
+
};
|
|
2
13
|
accentPrimary: {
|
|
3
14
|
fill: string;
|
|
4
15
|
fillHover: string;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
declare const buttonAppearanceDanger: {
|
|
2
|
+
dangerMutedPrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
labelTextColor: string;
|
|
6
|
+
labelTextColorHover: string;
|
|
7
|
+
borderColor: string;
|
|
8
|
+
iconAfterFillIcon: string;
|
|
9
|
+
iconBeforeFillIcon: string;
|
|
10
|
+
iconFillIcon: string;
|
|
11
|
+
loaderAppearance: string;
|
|
12
|
+
};
|
|
2
13
|
dangerPrimary: {
|
|
3
14
|
fill: string;
|
|
4
15
|
fillHover: string;
|
|
@@ -9,6 +9,17 @@ declare const buttonAppearanceError: {
|
|
|
9
9
|
iconFillIcon: string;
|
|
10
10
|
loaderAppearance: string;
|
|
11
11
|
};
|
|
12
|
+
errorMutedPrimary: {
|
|
13
|
+
fill: string;
|
|
14
|
+
fillHover: string;
|
|
15
|
+
labelTextColor: string;
|
|
16
|
+
labelTextColorHover: string;
|
|
17
|
+
borderColor: string;
|
|
18
|
+
iconAfterFillIcon: string;
|
|
19
|
+
iconBeforeFillIcon: string;
|
|
20
|
+
iconFillIcon: string;
|
|
21
|
+
loaderAppearance: string;
|
|
22
|
+
};
|
|
12
23
|
errorPrimary: {
|
|
13
24
|
fill: string;
|
|
14
25
|
fillHover: string;
|
|
@@ -10,6 +10,17 @@ declare const buttonAppearanceInfo: {
|
|
|
10
10
|
iconFillIcon: string;
|
|
11
11
|
loaderAppearance: string;
|
|
12
12
|
};
|
|
13
|
+
infoMutedPrimary: {
|
|
14
|
+
fill: string;
|
|
15
|
+
fillHover: string;
|
|
16
|
+
labelTextColor: string;
|
|
17
|
+
labelTextColorHover: string;
|
|
18
|
+
borderColor: string;
|
|
19
|
+
iconAfterFillIcon: string;
|
|
20
|
+
iconBeforeFillIcon: string;
|
|
21
|
+
iconFillIcon: string;
|
|
22
|
+
loaderAppearance: string;
|
|
23
|
+
};
|
|
13
24
|
infoPrimary: {
|
|
14
25
|
fill: string;
|
|
15
26
|
fillHover: string;
|
|
@@ -8,6 +8,16 @@ declare const buttonAppearancePrimary: {
|
|
|
8
8
|
iconFillIcon: string;
|
|
9
9
|
loaderAppearance: string;
|
|
10
10
|
};
|
|
11
|
+
primaryMutedPrimary: {
|
|
12
|
+
fill: string;
|
|
13
|
+
fillHover: string;
|
|
14
|
+
labelTextColor: string;
|
|
15
|
+
borderColor: string;
|
|
16
|
+
iconAfterFillIcon: string;
|
|
17
|
+
iconBeforeFillIcon: string;
|
|
18
|
+
iconFillIcon: string;
|
|
19
|
+
loaderAppearance: string;
|
|
20
|
+
};
|
|
11
21
|
primaryPrimary: {
|
|
12
22
|
fill: string;
|
|
13
23
|
fillHover: string;
|
|
@@ -8,6 +8,16 @@ declare const buttonAppearanceSecondary: {
|
|
|
8
8
|
iconFillIcon: string;
|
|
9
9
|
loaderAppearance: string;
|
|
10
10
|
};
|
|
11
|
+
secondaryMutedPrimary: {
|
|
12
|
+
fill: string;
|
|
13
|
+
fillHover: string;
|
|
14
|
+
labelTextColor: string;
|
|
15
|
+
borderColor: string;
|
|
16
|
+
iconAfterFillIcon: string;
|
|
17
|
+
iconBeforeFillIcon: string;
|
|
18
|
+
iconFillIcon: string;
|
|
19
|
+
loaderAppearance: string;
|
|
20
|
+
};
|
|
11
21
|
secondaryPrimary: {
|
|
12
22
|
fill: string;
|
|
13
23
|
fillHover: string;
|
|
@@ -9,6 +9,17 @@ declare const buttonAppearanceSuccess: {
|
|
|
9
9
|
iconFillIcon: string;
|
|
10
10
|
loaderAppearance: string;
|
|
11
11
|
};
|
|
12
|
+
successMutedPrimary: {
|
|
13
|
+
fill: string;
|
|
14
|
+
fillHover: string;
|
|
15
|
+
labelTextColor: string;
|
|
16
|
+
labelTextColorHover: string;
|
|
17
|
+
borderColor: string;
|
|
18
|
+
iconAfterFillIcon: string;
|
|
19
|
+
iconBeforeFillIcon: string;
|
|
20
|
+
iconFillIcon: string;
|
|
21
|
+
loaderAppearance: string;
|
|
22
|
+
};
|
|
12
23
|
successPrimary: {
|
|
13
24
|
fill: string;
|
|
14
25
|
fillHover: string;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
declare const buttonAppearanceSurface: {
|
|
2
|
+
surfaceMutedPrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
labelTextColor: string;
|
|
6
|
+
borderColor: string;
|
|
7
|
+
iconAfterFillIcon: string;
|
|
8
|
+
iconBeforeFillIcon: string;
|
|
9
|
+
iconFillIcon: string;
|
|
10
|
+
loaderAppearance: string;
|
|
11
|
+
};
|
|
2
12
|
surfacePrimary: {
|
|
3
13
|
fill: string;
|
|
4
14
|
fillHover: string;
|
|
@@ -9,6 +9,17 @@ declare const buttonAppearanceWarning: {
|
|
|
9
9
|
iconFillIcon: string;
|
|
10
10
|
loaderAppearance: string;
|
|
11
11
|
};
|
|
12
|
+
warningMutedPrimary: {
|
|
13
|
+
fill: string;
|
|
14
|
+
fillHover: string;
|
|
15
|
+
labelTextColor: string;
|
|
16
|
+
labelTextColorHover: string;
|
|
17
|
+
borderColor: string;
|
|
18
|
+
iconAfterFillIcon: string;
|
|
19
|
+
iconBeforeFillIcon: string;
|
|
20
|
+
iconFillIcon: string;
|
|
21
|
+
loaderAppearance: string;
|
|
22
|
+
};
|
|
12
23
|
warningPrimary: {
|
|
13
24
|
fill: string;
|
|
14
25
|
fillHover: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LabelConfig } from 'src/components/Label/Label.interface';
|
|
1
2
|
import type { CookiesWarningProps } from './CookiesWarning.interface';
|
|
2
3
|
declare const cookiesWarningConfig: LabelConfig;
|
|
3
4
|
declare function CookiesWarning(props: CookiesWarningProps): false | import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
declare const menuItemAppearanceAccent: {
|
|
2
|
+
accentMutedPrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
labelTextColor: string;
|
|
6
|
+
borderColor: string;
|
|
7
|
+
iconAfterFillIcon: string;
|
|
8
|
+
iconBeforeFillIcon: string;
|
|
9
|
+
};
|
|
2
10
|
accentPrimary: {
|
|
3
11
|
fill: string;
|
|
4
12
|
fillHover: string;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
declare const menuItemAppearanceSurface: {
|
|
2
|
+
surfaceMutedPrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillActive: string;
|
|
5
|
+
fillActiveHover: string;
|
|
6
|
+
labelTextColor: string;
|
|
7
|
+
iconAfterFillIcon: string;
|
|
8
|
+
iconBeforeFillIcon: string;
|
|
9
|
+
};
|
|
2
10
|
surfacePrimary: {
|
|
3
11
|
fill: string;
|
|
4
12
|
fillActive: string;
|