@itcase/ui 1.3.34 → 1.3.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-DZ3z7f-A.js → Button-BtAUGGPc.js} +5 -5
- package/dist/{Button-D1m2MxZA.js → Button-HKkjJ38v.js} +5 -5
- package/dist/cjs/components/Button.js +1 -1
- package/dist/cjs/components/Cell.js +8 -4
- package/dist/cjs/components/CookiesWarning.js +1 -1
- package/dist/cjs/components/DatePicker.js +1 -1
- package/dist/cjs/components/Response.js +1 -1
- package/dist/cjs/components/Tab.js +58 -60
- package/dist/cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +1 -0
- package/dist/components/Button.js +1 -1
- package/dist/components/Cell.js +8 -4
- package/dist/components/CookiesWarning.js +1 -1
- package/dist/components/DatePicker.js +1 -1
- package/dist/components/Response.js +1 -1
- package/dist/components/Tab.js +58 -60
- package/dist/css/components/Avatar/Avatar.css +4 -0
- package/dist/css/components/Avatar/Avatar.tokens.css +2 -0
- package/dist/css/components/Checkbox/Checkbox.css +4 -0
- package/dist/css/components/Checkbox/Checkbox.tokens.css +1 -1
- package/dist/css/components/Choice/Choice.css +13 -2
- package/dist/css/components/Choice/Choice.tokens.css +4 -3
- package/dist/css/components/DatePicker/DatePicker.css +51 -0
- package/dist/css/components/DatePicker/DatePicker.tokens.css +15 -7
- package/dist/css/components/Divider/Divider.css +19 -6
- package/dist/css/components/Divider/Divider.tokens.css +12 -11
- package/dist/css/components/Dot/Dot.css +10 -0
- package/dist/css/components/Drawer/Drawer.css +4 -0
- package/dist/css/components/Drawer/Drawer.tokens.css +4 -0
- package/dist/css/components/Dropdown/Dropdown.css +37 -0
- package/dist/css/components/Dropdown/Dropdown.tokens.css +6 -0
- package/dist/css/components/Icon/Icon.css +5 -0
- package/dist/css/components/Icon/Icon.tokens.css +1 -0
- package/dist/css/components/Input/Input.css +29 -0
- package/dist/css/components/InputPassword/InputPassword.css +23 -0
- package/dist/css/components/Label/Label.css +19 -0
- package/dist/css/components/Label/Label.tokens.css +3 -3
- package/dist/css/components/Logo/Logo.tokens.css +17 -2
- package/dist/css/components/MenuItem/MenuItem.tokens.css +4 -4
- package/dist/css/components/Modal/Modal.css +3 -0
- package/dist/css/components/Modal/Modal.tokens.css +3 -0
- package/dist/css/components/Pagination/Pagination.css +25 -0
- package/dist/css/components/Search/Search.css +16 -0
- package/dist/css/components/Search/Search.tokens.css +6 -3
- package/dist/css/components/Segmented/Segmented.css +6 -0
- package/dist/css/components/Segmented/Segmented.tokens.css +2 -0
- package/dist/css/components/Tab/Tab.css +28 -0
- package/dist/css/components/Textarea/Textarea.css +7 -0
- package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +1 -0
- package/dist/stories/Size.mdx +26 -6
- package/package.json +1 -1
package/dist/components/Tab.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { _ as __assign } from '../tslib.es6-5FtW-kfi.js';
|
|
1
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import clsx from 'clsx';
|
|
@@ -7,7 +8,6 @@ import { B as Badge } from '../Badge-CGHosmYx.js';
|
|
|
7
8
|
import { D as Divider } from '../Divider-BQcBkzt1.js';
|
|
8
9
|
import { a as Link } from '../Link-BhJ5BdyS.js';
|
|
9
10
|
import { T as Text } from '../Text-C6NSmetx.js';
|
|
10
|
-
import '../tslib.es6-5FtW-kfi.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import 'lodash/castArray';
|
|
13
13
|
import 'lodash/upperFirst';
|
|
@@ -23,125 +23,123 @@ import '../Tooltip-BYgzNVYI.js';
|
|
|
23
23
|
import '../Title-Dck3eHNM.js';
|
|
24
24
|
|
|
25
25
|
var tabAppearance = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
accent: {
|
|
27
|
+
fill: 'accentPrimary',
|
|
28
|
+
fillHover: 'accentPrimaryHover',
|
|
29
|
+
labelColor: 'accentTextPrimary',
|
|
30
|
+
labelColorActive: 'accentTextPrimary',
|
|
29
31
|
dividerFillDisabled: 'accentDisabled',
|
|
30
|
-
dividerFillHover: 'surfaceTertiary',
|
|
31
|
-
fill: 'surfacePrimary',
|
|
32
32
|
fillDisabled: 'surfaceDisabled',
|
|
33
|
-
fillHover: 'surfaceTertiary',
|
|
34
|
-
labelColor: 'surfaceTextPrimary',
|
|
35
|
-
labelColorActive: 'surfaceTextAccent',
|
|
36
33
|
labelColorDisabled: 'surfaceTextDisabled',
|
|
34
|
+
dividerFill: 'surfaceTertiary',
|
|
35
|
+
dividerFillActive: 'surfacePrimary',
|
|
36
|
+
dividerFillHover: 'surfaceTertiary',
|
|
37
37
|
},
|
|
38
|
-
|
|
38
|
+
primary: {
|
|
39
|
+
fill: 'primaryPrimary',
|
|
40
|
+
fillHover: 'primaryPrimaryHover',
|
|
41
|
+
labelColor: 'primaryTextPrimary',
|
|
42
|
+
labelColorActive: 'primaryTextPrimary',
|
|
43
|
+
dividerFillDisabled: 'accentDisabled',
|
|
44
|
+
fillDisabled: 'surfaceDisabled',
|
|
45
|
+
labelColorDisabled: 'surfaceTextDisabled',
|
|
39
46
|
dividerFill: 'surfaceTertiary',
|
|
40
47
|
dividerFillActive: 'accentPrimary',
|
|
48
|
+
dividerFillHover: 'surfaceTertiary',
|
|
49
|
+
},
|
|
50
|
+
secondary: {
|
|
51
|
+
fill: 'secondaryPrimary',
|
|
52
|
+
fillHover: 'secondaryPrimaryHover',
|
|
53
|
+
labelColor: 'secondaryTextPrimary',
|
|
54
|
+
labelColorActive: 'secondaryTextPrimary',
|
|
41
55
|
dividerFillDisabled: 'accentDisabled',
|
|
56
|
+
fillDisabled: 'surfaceDisabled',
|
|
57
|
+
labelColorDisabled: 'surfaceTextDisabled',
|
|
58
|
+
dividerFill: 'surfaceTertiary',
|
|
59
|
+
dividerFillActive: 'accentPrimary',
|
|
42
60
|
dividerFillHover: 'surfaceTertiary',
|
|
61
|
+
},
|
|
62
|
+
surfacePrimary: {
|
|
43
63
|
fill: 'surfacePrimary',
|
|
44
|
-
fillDisabled: 'surfaceDisabled',
|
|
45
64
|
fillHover: 'surfacePrimaryHover',
|
|
46
65
|
labelColor: 'surfaceTextPrimary',
|
|
47
66
|
labelColorActive: 'surfaceTextAccent',
|
|
67
|
+
dividerFillDisabled: 'accentDisabled',
|
|
68
|
+
fillDisabled: 'surfaceDisabled',
|
|
48
69
|
labelColorDisabled: 'surfaceTextDisabled',
|
|
49
|
-
},
|
|
50
|
-
surfaceSecondary: {
|
|
51
70
|
dividerFill: 'surfaceTertiary',
|
|
52
71
|
dividerFillActive: 'accentPrimary',
|
|
53
|
-
dividerFillDisabled: 'accentDisabled',
|
|
54
72
|
dividerFillHover: 'surfaceTertiary',
|
|
73
|
+
},
|
|
74
|
+
surfaceSecondary: {
|
|
55
75
|
fill: 'surfaceSecondary',
|
|
56
|
-
fillDisabled: 'surfaceDisabled',
|
|
57
76
|
fillHover: 'surfaceSecondaryHover',
|
|
58
77
|
labelColor: 'surfaceTextPrimary',
|
|
59
78
|
labelColorActive: 'surfaceTextAccent',
|
|
79
|
+
dividerFillDisabled: 'accentDisabled',
|
|
80
|
+
fillDisabled: 'surfaceDisabled',
|
|
60
81
|
labelColorDisabled: 'surfaceTextDisabled',
|
|
61
|
-
},
|
|
62
|
-
surfaceTertiary: {
|
|
63
82
|
dividerFill: 'surfaceTertiary',
|
|
64
83
|
dividerFillActive: 'accentPrimary',
|
|
65
|
-
dividerFillDisabled: 'accentDisabled',
|
|
66
84
|
dividerFillHover: 'surfaceTertiary',
|
|
85
|
+
},
|
|
86
|
+
surfaceTertiary: {
|
|
67
87
|
fill: 'surfaceTertiary',
|
|
68
|
-
fillDisabled: 'surfaceDisabled',
|
|
69
88
|
fillHover: 'surfaceTertiaryHover',
|
|
70
89
|
labelColor: 'surfaceTextPrimary',
|
|
71
90
|
labelColorActive: 'surfaceTextAccent',
|
|
91
|
+
dividerFillDisabled: 'accentDisabled',
|
|
92
|
+
fillDisabled: 'surfaceDisabled',
|
|
72
93
|
labelColorDisabled: 'surfaceTextDisabled',
|
|
73
|
-
},
|
|
74
|
-
surfaceQuaternary: {
|
|
75
94
|
dividerFill: 'surfaceTertiary',
|
|
76
95
|
dividerFillActive: 'accentPrimary',
|
|
77
|
-
dividerFillDisabled: 'accentDisabled',
|
|
78
96
|
dividerFillHover: 'surfaceTertiary',
|
|
97
|
+
},
|
|
98
|
+
surfaceQuaternary: {
|
|
79
99
|
fill: 'surfaceQuaternary',
|
|
80
|
-
fillDisabled: 'surfaceDisabled',
|
|
81
100
|
fillHover: 'surfaceTertiaryHover',
|
|
82
101
|
labelColor: 'surfaceTextInverse',
|
|
83
102
|
labelColorActive: 'surfaceTextInverse',
|
|
84
|
-
labelColorDisabled: 'surfaceTextDisabled',
|
|
85
|
-
},
|
|
86
|
-
accent: {
|
|
87
|
-
dividerFill: 'surfaceTertiary',
|
|
88
|
-
dividerFillActive: 'surfacePrimary',
|
|
89
103
|
dividerFillDisabled: 'accentDisabled',
|
|
90
|
-
dividerFillHover: 'surfaceTertiary',
|
|
91
|
-
fill: 'accentPrimary',
|
|
92
104
|
fillDisabled: 'surfaceDisabled',
|
|
93
|
-
fillHover: 'accentPrimaryHover',
|
|
94
|
-
labelColor: 'accentTextPrimary',
|
|
95
|
-
labelColorActive: 'accentTextPrimary',
|
|
96
105
|
labelColorDisabled: 'surfaceTextDisabled',
|
|
97
|
-
},
|
|
98
|
-
primary: {
|
|
99
106
|
dividerFill: 'surfaceTertiary',
|
|
100
107
|
dividerFillActive: 'accentPrimary',
|
|
101
|
-
dividerFillDisabled: 'accentDisabled',
|
|
102
108
|
dividerFillHover: 'surfaceTertiary',
|
|
103
|
-
|
|
109
|
+
},
|
|
110
|
+
any: {
|
|
111
|
+
fill: 'surfacePrimary',
|
|
112
|
+
fillHover: 'surfaceTertiary',
|
|
113
|
+
labelColor: 'surfaceTextPrimary',
|
|
114
|
+
labelColorActive: 'surfaceTextAccent',
|
|
115
|
+
dividerFillDisabled: 'accentDisabled',
|
|
104
116
|
fillDisabled: 'surfaceDisabled',
|
|
105
|
-
fillHover: 'primaryPrimaryHover',
|
|
106
|
-
labelColor: 'primaryTextPrimary',
|
|
107
|
-
labelColorActive: 'primaryTextPrimary',
|
|
108
117
|
labelColorDisabled: 'surfaceTextDisabled',
|
|
109
|
-
},
|
|
110
|
-
secondary: {
|
|
111
118
|
dividerFill: 'surfaceTertiary',
|
|
112
119
|
dividerFillActive: 'accentPrimary',
|
|
113
|
-
dividerFillDisabled: 'accentDisabled',
|
|
114
120
|
dividerFillHover: 'surfaceTertiary',
|
|
115
|
-
fill: 'secondaryPrimary',
|
|
116
|
-
fillDisabled: 'surfaceDisabled',
|
|
117
|
-
fillHover: 'secondaryPrimaryHover',
|
|
118
|
-
labelColor: 'secondaryTextPrimary',
|
|
119
|
-
labelColorActive: 'secondaryTextPrimary',
|
|
120
|
-
labelColorDisabled: 'surfaceTextDisabled',
|
|
121
121
|
},
|
|
122
122
|
};
|
|
123
123
|
|
|
124
124
|
var tabConfig = {
|
|
125
125
|
appearance: tabAppearance,
|
|
126
|
-
setAppearance: function (
|
|
127
|
-
tabConfig.appearance =
|
|
126
|
+
setAppearance: function (appearanceConfig) {
|
|
127
|
+
tabConfig.appearance = appearanceConfig;
|
|
128
128
|
},
|
|
129
129
|
};
|
|
130
130
|
function Tab(props) {
|
|
131
|
-
var
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
var className = props.className, appearance = props.appearance, children = props.children, label = props.label, badgeValue = props.badgeValue, dataTour = props.dataTour, href = props.href, link = props.link, rel = props.rel, reset = props.reset, target = props.target, before = props.before, after = props.after, _a = props.isActive, isActive = _a === void 0 ? false : _a, _b = props.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = props.isHover, isHover = _c === void 0 ? false : _c, set = props.set, onClick = props.onClick, onMouseEnter = props.onMouseEnter;
|
|
132
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultAppearance, appearance) {
|
|
133
|
+
var _a;
|
|
134
|
+
return (__assign(__assign({}, resultAppearance), (_a = tabConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
|
|
135
|
+
}, {});
|
|
134
136
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
135
|
-
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass,
|
|
137
|
+
var justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelColor = propsGenerator.labelColor, labelColorActive = propsGenerator.labelColorActive, labelTextAlign = propsGenerator.labelTextAlign, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextGradient = propsGenerator.labelTextGradient, labelTextSize = propsGenerator.labelTextSize, labelTextStyle = propsGenerator.labelTextStyle, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, dividerFillDisabled = propsGenerator.dividerFillDisabled, fillDisabledClass = propsGenerator.fillDisabledClass, labelColorDisabled = propsGenerator.labelColorDisabled, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dividerDirection = propsGenerator.dividerDirection, dividerFill = propsGenerator.dividerFill, dividerFillActive = propsGenerator.dividerFillActive, dividerFillActiveHover = propsGenerator.dividerFillActiveHover, dividerFillHover = propsGenerator.dividerFillHover, dividerSize = propsGenerator.dividerSize, linkFill = propsGenerator.linkFill, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass;
|
|
136
138
|
// @ts-expect-error
|
|
137
139
|
var tab = useStyles(props).styles;
|
|
138
140
|
return (jsx("div", { className: clsx('tab', isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', isHover && 'tab_state_hover', !isDisabled
|
|
139
141
|
? fillClass && "fill_".concat(fillClass)
|
|
140
|
-
: fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), !isDisabled ? fillHoverClass && "fill_hover_".concat(fillHoverClass) : null, className, sizeClass && "tab_size_".concat(sizeClass), fillActiveClass && "fill_active_".concat(fillActiveClass), fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "tab_shape_".concat(shapeClass), typeClass && "tab_type_".concat(typeClass), widthClass && "width_".concat(widthClass), reset && 'tab-reset', set && "tab_set_".concat(set), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), onClick && 'cursor_type_pointer'), "data-tour": dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsx(Link, { className: clsx('tab__link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), fill: linkFill, href: link || href, rel: rel, target: target, children: jsxs(React.Fragment, { children: [before, children || (jsxs(React.Fragment, { children: [jsxs("div", { className: "tab__wrapper", children: [
|
|
141
|
-
? labelColorDisabled || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelColorDisabled)
|
|
142
|
-
: labelColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelColor), textColorActive: isActive && (labelColorActive || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelColorActive)), children: label || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.label) })), (badgeValue || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeValue)) && (jsx(Badge, { appearance: badgeAppearance || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeAppearance), shape: badgeShape, size: badgeSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeSize), textColor: badgeTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeTextColor), textSize: badgeTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeTextSize), value: badgeValue || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.badgeValue) }))] }), jsx(Divider, { width: "fill", fill: isDisabled
|
|
143
|
-
? dividerFillDisabled || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.dividerFillDisabled)
|
|
144
|
-
: dividerFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.dividerFill), fillHover: isHover && (dividerFillHover || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.dividerFillHover)), direction: dividerDirection, fillActive: isActive && (dividerFillActive || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.dividerFillActive)), fillActiveHover: dividerFillActiveHover, size: dividerSize })] })), after] }) }) }));
|
|
142
|
+
: fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), !isDisabled ? fillHoverClass && "fill_hover_".concat(fillHoverClass) : null, className, sizeClass && "tab_size_".concat(sizeClass), fillActiveClass && "fill_active_".concat(fillActiveClass), fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "tab_shape_".concat(shapeClass), typeClass && "tab_type_".concat(typeClass), widthClass && "width_".concat(widthClass), reset && 'tab-reset', set && "tab_set_".concat(set), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), onClick && 'cursor_type_pointer'), "data-tour": dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsx(Link, { className: clsx('tab__link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), fill: linkFill, href: link || href, rel: rel, target: target, children: jsxs(React.Fragment, { children: [before, children || (jsxs(React.Fragment, { children: [jsxs("div", { className: "tab__wrapper", children: [label && (jsx(Text, { className: "tab__label", textAlign: labelTextAlign, textColor: isDisabled ? labelColorDisabled : labelColor, textColorActive: isActive && labelColorActive, textColorGradient: labelTextGradient, textColorHover: labelTextColorHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, size: labelTextSize, children: label })), badgeValue && (jsx(Badge, { appearance: badgeAppearance, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, size: badgeSize, value: badgeValue }))] }), jsx(Divider, { width: "fill", direction: dividerDirection, fill: isDisabled ? dividerFillDisabled : dividerFill, fillActive: isActive && dividerFillActive, fillActiveHover: dividerFillActiveHover, fillHover: isHover && dividerFillHover, size: dividerSize })] })), after] }) }) }));
|
|
145
143
|
}
|
|
146
144
|
|
|
147
145
|
function TabGroup(props) {
|
|
@@ -116,9 +116,20 @@
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
:root {
|
|
119
|
-
--choice-item-
|
|
119
|
+
--choice-item-size-xs-padding: 1px 8px;
|
|
120
|
+
--choice-item-size-s-padding: 5px 10px;
|
|
121
|
+
--choice-item-size-m-padding: 7px 12px;
|
|
122
|
+
--choice-item-size-l-padding: 9px 15px;
|
|
123
|
+
--choice-item-size-xl-padding: 13px 20px;
|
|
124
|
+
--choice-item-size-xxl-padding: 17px 25px;
|
|
125
|
+
--choice-item-size-tiny-padding: 1px 8px;
|
|
126
|
+
--choice-item-size-compact-padding: 5px 10px;
|
|
127
|
+
--choice-item-size-normal-padding: 7px 12px;
|
|
128
|
+
--choice-item-size-large-padding: 9px 15px;
|
|
120
129
|
|
|
130
|
+
--choice-item-background-hover: var(--color-surface-secondary);
|
|
121
131
|
--choice-item-background-active: var(--color-surface-active);
|
|
122
|
-
|
|
123
132
|
--choice-border-color: var(--color-surface-border-tertiary);
|
|
133
|
+
|
|
134
|
+
--choice-item-icon-padding: 0;
|
|
124
135
|
}
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
--choice-item-size-normal-padding: 7px 12px;
|
|
11
11
|
--choice-item-size-large-padding: 9px 15px;
|
|
12
12
|
|
|
13
|
-
--choice-item-background-hover: var(--color-surface-
|
|
14
|
-
--choice-item-background-active: var(--color-surface-
|
|
13
|
+
--choice-item-background-hover: var(--color-surface-secondary);
|
|
14
|
+
--choice-item-background-active: var(--color-surface-active);
|
|
15
|
+
--choice-border-color: var(--color-surface-border-tertiary);
|
|
15
16
|
|
|
16
|
-
--choice-item-icon-padding:
|
|
17
|
+
--choice-item-icon-padding: 0;
|
|
17
18
|
}
|
|
@@ -1226,3 +1226,54 @@ h2.react-datepicker__current-month {
|
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
|
+
:root {
|
|
1230
|
+
--input-container-padding: 9px 15px;
|
|
1231
|
+
|
|
1232
|
+
--date-picker-input-min-width: 220px;
|
|
1233
|
+
--date-picker-day-border-radius: 8px;
|
|
1234
|
+
|
|
1235
|
+
--date-picker-day-width: 35px;
|
|
1236
|
+
--date-picker-day-height: 35px;
|
|
1237
|
+
|
|
1238
|
+
--date-picker-name-size: 16px;
|
|
1239
|
+
|
|
1240
|
+
--date-picker-name-weight: 400;
|
|
1241
|
+
--date-picker-selected-weight: 400;
|
|
1242
|
+
|
|
1243
|
+
--date-picker-input-border-radius: 6px;
|
|
1244
|
+
|
|
1245
|
+
--date-picker-background: var(--color-surface-primary, #fff);
|
|
1246
|
+
--date-picker-padding: 24px 12px;
|
|
1247
|
+
--date-picker-box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.2);
|
|
1248
|
+
--date-picker-border-radius: 12px;
|
|
1249
|
+
--date-picker-border: 1px solid var(--color-surface-tertiary);
|
|
1250
|
+
|
|
1251
|
+
--date-picker-day-padding: 8px 0;
|
|
1252
|
+
--date-picker-day-hover-background: var(--color-accent-tertiary);
|
|
1253
|
+
--date-picker-day-hover-text-color: var(--color-surface-text-secondary);
|
|
1254
|
+
|
|
1255
|
+
--date-picker-day-range-background: var(--color-accent-tertiary);
|
|
1256
|
+
--date-picker-day-range-text-color: var(--color-accent-text-secondary);
|
|
1257
|
+
--date-picker-day-range-border-radius: 0;
|
|
1258
|
+
--date-picker-day-range-start-border-radius: 12px 0 0 12px;
|
|
1259
|
+
--date-picker-day-range-end-border-radius: 0 12px 12px 0;
|
|
1260
|
+
|
|
1261
|
+
--date-picker-day-today-background: var(--color-surface-secondary);
|
|
1262
|
+
--date-picker-day-today-border-radius: 12px;
|
|
1263
|
+
--date-picker-day-today-text-color: var(--color-surface-text-primary);
|
|
1264
|
+
|
|
1265
|
+
--date-picker-day-weekend-background: var(--color-surface-primary);
|
|
1266
|
+
--date-picker-day-weekend-text-color: var(--color-secondary-text-secondary);
|
|
1267
|
+
--date-picker-day-weekend-outside-text-color: var(
|
|
1268
|
+
--color-secondary-text-disabled
|
|
1269
|
+
);
|
|
1270
|
+
|
|
1271
|
+
--date-picker-day-selected-background: var(--color-accent-primary);
|
|
1272
|
+
--date-picker-day-selected-background-hover: var(
|
|
1273
|
+
--color-accent-primary-hover
|
|
1274
|
+
);
|
|
1275
|
+
--date-picker-day-selected-text-color: var(--color-accent-text-primary);
|
|
1276
|
+
|
|
1277
|
+
--date-picker-day-outside-background: var(--color-surface-primary);
|
|
1278
|
+
--date-picker-day-outside-text-color: var(--color-surface-text-quaternary);
|
|
1279
|
+
}
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--input-container-padding: 9px 15px;
|
|
3
3
|
|
|
4
|
-
--date-picker-
|
|
4
|
+
--date-picker-input-min-width: 220px;
|
|
5
|
+
--date-picker-day-border-radius: 8px;
|
|
6
|
+
|
|
7
|
+
--date-picker-day-width: 35px;
|
|
8
|
+
--date-picker-day-height: 35px;
|
|
9
|
+
|
|
10
|
+
--date-picker-name-size: 16px;
|
|
11
|
+
|
|
5
12
|
--date-picker-name-weight: 400;
|
|
6
13
|
--date-picker-selected-weight: 400;
|
|
7
14
|
|
|
8
15
|
--date-picker-input-border-radius: 6px;
|
|
9
16
|
|
|
10
|
-
--date-picker-background: var(--color-surface-primary);
|
|
17
|
+
--date-picker-background: var(--color-surface-primary, #fff);
|
|
11
18
|
--date-picker-padding: 24px 12px;
|
|
12
19
|
--date-picker-box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.2);
|
|
13
20
|
--date-picker-border-radius: 12px;
|
|
14
21
|
--date-picker-border: 1px solid var(--color-surface-tertiary);
|
|
15
22
|
|
|
16
|
-
--date-picker-day-width: 40px;
|
|
17
|
-
--date-picker-day-height: 40px;
|
|
18
23
|
--date-picker-day-padding: 8px 0;
|
|
19
|
-
--date-picker-day-border-radius: 6px;
|
|
20
24
|
--date-picker-day-hover-background: var(--color-accent-tertiary);
|
|
21
25
|
--date-picker-day-hover-text-color: var(--color-surface-text-secondary);
|
|
22
26
|
|
|
@@ -32,10 +36,14 @@
|
|
|
32
36
|
|
|
33
37
|
--date-picker-day-weekend-background: var(--color-surface-primary);
|
|
34
38
|
--date-picker-day-weekend-text-color: var(--color-secondary-text-secondary);
|
|
35
|
-
--date-picker-day-weekend-outside-text-color: var(
|
|
39
|
+
--date-picker-day-weekend-outside-text-color: var(
|
|
40
|
+
--color-secondary-text-disabled
|
|
41
|
+
);
|
|
36
42
|
|
|
37
43
|
--date-picker-day-selected-background: var(--color-accent-primary);
|
|
38
|
-
--date-picker-day-selected-background-hover: var(
|
|
44
|
+
--date-picker-day-selected-background-hover: var(
|
|
45
|
+
--color-accent-primary-hover
|
|
46
|
+
);
|
|
39
47
|
--date-picker-day-selected-text-color: var(--color-accent-text-primary);
|
|
40
48
|
|
|
41
49
|
--date-picker-day-outside-background: var(--color-surface-primary);
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
&_size {
|
|
8
8
|
@each $size in xs, s, m, l, xl {
|
|
9
9
|
&_$(size) {
|
|
10
|
-
height: var(--divider
|
|
11
|
-
min-height: var(--divider
|
|
10
|
+
height: var(--divider-$(size)-height);
|
|
11
|
+
min-height: var(--divider-$(size)-height);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
&^^&_size {
|
|
18
18
|
@each $size in xs, s, m, l, xl {
|
|
19
19
|
&_$(size) {
|
|
20
|
-
height: var(--divider
|
|
21
|
-
min-height: var(--divider
|
|
20
|
+
height: var(--divider-$(size)-height);
|
|
21
|
+
min-height: var(--divider-$(size)-height);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
&^^&_size {
|
|
28
28
|
@each $size in xs, s, m, l, xl {
|
|
29
29
|
&_$(size) {
|
|
30
|
-
width: var(--divider
|
|
30
|
+
width: var(--divider-$(size)-width);
|
|
31
31
|
height: auto;
|
|
32
|
-
min-width: var(--divider
|
|
32
|
+
min-width: var(--divider-$(size)-height);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -50,3 +50,16 @@
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
+
:root {
|
|
54
|
+
--divider-xl-height: 5px;
|
|
55
|
+
--divider-l-height: 4px;
|
|
56
|
+
--divider-m-height: 3px;
|
|
57
|
+
--divider-s-height: 2px;
|
|
58
|
+
--divider-xs-height: 1px;
|
|
59
|
+
|
|
60
|
+
--divider-xl-width: 5px;
|
|
61
|
+
--divider-l-width: 4px;
|
|
62
|
+
--divider-m-width: 3px;
|
|
63
|
+
--divider-s-width: 2px;
|
|
64
|
+
--divider-xs-width: 1px;
|
|
65
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--divider-
|
|
3
|
-
--divider-
|
|
4
|
-
--divider-
|
|
5
|
-
--divider-
|
|
6
|
-
--divider-
|
|
7
|
-
|
|
8
|
-
--divider-
|
|
9
|
-
--divider-
|
|
10
|
-
--divider-
|
|
11
|
-
--divider-
|
|
12
|
-
|
|
2
|
+
--divider-xl-height: 5px;
|
|
3
|
+
--divider-l-height: 4px;
|
|
4
|
+
--divider-m-height: 3px;
|
|
5
|
+
--divider-s-height: 2px;
|
|
6
|
+
--divider-xs-height: 1px;
|
|
7
|
+
|
|
8
|
+
--divider-xl-width: 5px;
|
|
9
|
+
--divider-l-width: 4px;
|
|
10
|
+
--divider-m-width: 3px;
|
|
11
|
+
--divider-s-width: 2px;
|
|
12
|
+
--divider-xs-width: 1px;
|
|
13
|
+
}
|
|
@@ -127,3 +127,40 @@
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
+
:root {
|
|
131
|
+
--dropdown-item-size-xs-padding: 0;
|
|
132
|
+
--dropdown-item-size-xs-gap: 8px;
|
|
133
|
+
|
|
134
|
+
--dropdown-item-size-m-padding: 0px;
|
|
135
|
+
--dropdown-item-size-m-gap: 0px;
|
|
136
|
+
|
|
137
|
+
--dropdown-item-size-l-padding: 10px 12px;
|
|
138
|
+
--dropdown-item-size-l-gap: 12px;
|
|
139
|
+
|
|
140
|
+
--dropdown-normal-padding: 16px;
|
|
141
|
+
--dropdown-normal-gap: 16px;
|
|
142
|
+
}
|
|
143
|
+
@keyframes dropDownAnimationOpen {
|
|
144
|
+
0% {
|
|
145
|
+
visibility: hidden;
|
|
146
|
+
transform: translate3d(0, 8px, 0);
|
|
147
|
+
opacity: 0%;
|
|
148
|
+
}
|
|
149
|
+
100% {
|
|
150
|
+
visibility: visible;
|
|
151
|
+
transform: translate3d(0, 0, 0);
|
|
152
|
+
opacity: 100%;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
@keyframes dropDownAnimationClose {
|
|
156
|
+
0% {
|
|
157
|
+
visibility: visible;
|
|
158
|
+
transform: translate3d(0, 0, 0);
|
|
159
|
+
opacity: 100%;
|
|
160
|
+
}
|
|
161
|
+
100% {
|
|
162
|
+
visibility: hidden;
|
|
163
|
+
transform: translate3d(0, 8px, 0);
|
|
164
|
+
opacity: 0%;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
--dropdown-item-size-xs-padding: 0;
|
|
3
3
|
--dropdown-item-size-xs-gap: 8px;
|
|
4
4
|
|
|
5
|
+
--dropdown-item-size-m-padding: 0px;
|
|
6
|
+
--dropdown-item-size-m-gap: 0px;
|
|
7
|
+
|
|
5
8
|
--dropdown-item-size-l-padding: 10px 12px;
|
|
6
9
|
--dropdown-item-size-l-gap: 12px;
|
|
10
|
+
|
|
11
|
+
--dropdown-normal-padding: 16px;
|
|
12
|
+
--dropdown-normal-gap: 16px;
|
|
7
13
|
}
|
|
8
14
|
|
|
9
15
|
@keyframes dropDownAnimationOpen {
|
|
@@ -83,3 +83,32 @@
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
+
:root {
|
|
87
|
+
--input-shape-rounded: 8px;
|
|
88
|
+
|
|
89
|
+
--input-size-xs-padding: 1px 8px;
|
|
90
|
+
--input-size-s-padding: 5px 10px;
|
|
91
|
+
--input-size-m-padding: 7px 12px;
|
|
92
|
+
--input-size-l-padding: 9px 15px;
|
|
93
|
+
--input-size-xl-padding: 13px 20px;
|
|
94
|
+
--input-size-xxl-padding: 17px 25px;
|
|
95
|
+
|
|
96
|
+
--input-size-tiny-padding: 1px 8px;
|
|
97
|
+
--input-size-compact-padding: 5px 10px;
|
|
98
|
+
--input-size-normal-padding: 7px 12px;
|
|
99
|
+
--input-size-large-padding: 9px 15px;
|
|
100
|
+
|
|
101
|
+
--input-success-border: var(--color-surface-border-tertiary);
|
|
102
|
+
|
|
103
|
+
--input-state-focus-border: var(--color-surface-border-quaternary);
|
|
104
|
+
--input-state-focus-background: none;
|
|
105
|
+
--input-state-error-border: var(--color-error-border-primary);
|
|
106
|
+
--input-state-error-background: none;
|
|
107
|
+
--input-state-required-border: var(--color-warning-text-primary);
|
|
108
|
+
--input-state-required-background: none;
|
|
109
|
+
--input-state-custom-border: var(--color-info-primary);
|
|
110
|
+
--input-state-custom-background: none;
|
|
111
|
+
--input-state-hover-border: var(--color-surface-border-quaternary);
|
|
112
|
+
--input-state-hover-background: none;
|
|
113
|
+
--input-caret-color: var(--color-accent-primary);
|
|
114
|
+
}
|
|
@@ -66,3 +66,26 @@
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
+
:root {
|
|
70
|
+
--input-password-size-xs-padding: 4px 8px;
|
|
71
|
+
--input-password-size-s-padding: 5px 10px;
|
|
72
|
+
--input-password-size-m-padding: 7px 12px;
|
|
73
|
+
--input-password-size-l-padding: 9px 15px;
|
|
74
|
+
--input-password-size-xl-padding: 15px 20px;
|
|
75
|
+
--input-password-size-xxl-padding: 18px 25px;
|
|
76
|
+
|
|
77
|
+
--input-password-size-tiny-padding: 4px 8px;
|
|
78
|
+
--input-password-size-compact-padding: 5px 10px;
|
|
79
|
+
--input-password-size-normal-padding: 7px 12px;
|
|
80
|
+
--input-password-size-large-padding: 9px 15px;
|
|
81
|
+
|
|
82
|
+
--input-password-state-focus-border: var(--color-active-border-primary);
|
|
83
|
+
--input-password-state-focus-background: none;
|
|
84
|
+
--input-password-state-error-border: var(--color-error-border-primary);
|
|
85
|
+
--input-password-state-error-background: none;
|
|
86
|
+
--input-password-state-success-border: var(--color-success-border-primary);
|
|
87
|
+
--input-password-state-success-background: none;
|
|
88
|
+
--input-password-state-hover-border: var(--color-surface-border-quaternary);
|
|
89
|
+
--input-password-state-hover-background: none;
|
|
90
|
+
--input-password-caret-color: var(--color-accent-primary);
|
|
91
|
+
}
|
|
@@ -81,3 +81,22 @@ div.label {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
:root {
|
|
85
|
+
--label-shape-rounded-default: 6px;
|
|
86
|
+
|
|
87
|
+
--label-size-xxl-shape-rounded: 12px;
|
|
88
|
+
--label-size-xl-shape-rounded: 6px;
|
|
89
|
+
--label-size-l-shape-rounded: 6px;
|
|
90
|
+
--label-size-m-shape-rounded: 12px;
|
|
91
|
+
--label-size-s-shape-rounded: 12px;
|
|
92
|
+
--label-size-xs-shape-rounded: 12px;
|
|
93
|
+
--label-size-xxs-shape-rounded: 12px;
|
|
94
|
+
|
|
95
|
+
--label-size-xxl-padding: 10px 10px;
|
|
96
|
+
--label-size-xl-padding: 7px 8px;
|
|
97
|
+
--label-size-l-padding: 4px 6px;
|
|
98
|
+
--label-size-m-padding: 2px 8px;
|
|
99
|
+
--label-size-s-padding: 2px 6px;
|
|
100
|
+
--label-size-xs-padding: 0px 4px;
|
|
101
|
+
--label-size-xxs-padding: 0px 4px;
|
|
102
|
+
}
|