@itcase/ui 1.6.0 → 1.8.0
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/{Badge-ydSHGXSG.js → Badge-BY030Mwm.js} +4 -4
- package/dist/{Badge-JXM0G_0I.js → Badge-Df7Zxjnk.js} +4 -4
- package/dist/{Button-BmSyIDb_.js → Button-DJxd2_t4.js} +7 -7
- package/dist/{Button-DCtRrkgc.js → Button-K5n8BI_w.js} +7 -7
- package/dist/{Divider-D8hUUrwe.js → Divider-BQIfjvPR.js} +2 -2
- package/dist/{Divider-DhXzYcNF.js → Divider-CUFKsm-9.js} +2 -2
- package/dist/{DropdownItem-B2yfeMxS.js → DropdownItem-CdAS1E-G.js} +4 -4
- package/dist/{DropdownItem-Cr7XLcHZ.js → DropdownItem-f29l8dds.js} +4 -4
- package/dist/{Group-OkygpKiJ.js → Group-C8NUU6k5.js} +4 -4
- package/dist/{Group-BVlu5z77.js → Group-utjnjUDZ.js} +4 -4
- package/dist/{Icon-BOEOspTF.js → Icon-BF7i3XdQ.js} +2 -2
- package/dist/{Icon-DU2T-nfY.js → Icon-D_BDlSSb.js} +2 -2
- package/dist/{Input-e0kLrbs6.js → Input-C_HeI9UK.js} +2 -2
- package/dist/{Input-ChiH90mV.js → Input-v52BiIsb.js} +2 -2
- package/dist/{Label-CP8IAPOM.js → Label-DsNZ-asS.js} +4 -4
- package/dist/{Label-CfE08vBy.js → Label-brG78nLi.js} +4 -4
- package/dist/{Link-UmzWKcxT.js → Link-CZ8o5lGW.js} +1 -1
- package/dist/{Link-aBsZ1d0Q.js → Link-Cn7hiWmM.js} +1 -1
- package/dist/{Loader-CRN4MAbm.js → Loader-BnhUh-g6.js} +3 -3
- package/dist/{Loader-rzo8nnRI.js → Loader-CZVsMYl6.js} +3 -3
- package/dist/{Overlay-CRIofShk.js → Overlay-Be9UCtR9.js} +2 -2
- package/dist/{Overlay-CZFSerUl.js → Overlay-BoIJ-g58.js} +2 -2
- package/dist/{Text-CEcBg-F5.js → Text-DwIx33-P.js} +2 -2
- package/dist/{Text-CI2prtf6.js → Text-aaWArShm.js} +2 -2
- package/dist/{Title-CaXw1KBQ.js → Title--_epIXkC.js} +2 -2
- package/dist/{Title-C4xUtigh.js → Title-ByfOyy-n.js} +2 -2
- package/dist/{Tooltip-EOu0a93a.js → Tooltip-DP32J5V6.js} +4 -4
- package/dist/{Tooltip-Lhx-Fefx.js → Tooltip-hznDyLwa.js} +4 -4
- package/dist/cjs/components/Accordion.js +10 -10
- package/dist/cjs/components/Avatar.js +7 -7
- package/dist/cjs/components/Badge.js +6 -6
- package/dist/cjs/components/Breadcrumbs.js +5 -5
- package/dist/cjs/components/Button.js +7 -7
- package/dist/cjs/components/Cell.js +8 -8
- package/dist/cjs/components/Checkbox.js +3 -3
- package/dist/cjs/components/Checkmark.js +2 -2
- package/dist/cjs/components/Chips.js +8 -8
- package/dist/cjs/components/Choice.js +9 -9
- package/dist/cjs/components/Code.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +8 -8
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +11 -11
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Drawer.js +3 -1
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/HeroTitle.js +2 -2
- package/dist/cjs/components/Icon.js +5 -5
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputMask.js +3 -3
- package/dist/cjs/components/InputPassword.js +7 -7
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +3 -3
- package/dist/cjs/components/MenuItem.js +4 -4
- package/dist/cjs/components/Modal.js +6 -6
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Overlay.js +1 -1
- package/dist/cjs/components/Pagination.js +9 -9
- package/dist/cjs/components/Panel.js +4 -4
- package/dist/cjs/components/Radio.js +3 -3
- package/dist/cjs/components/Response.js +10 -10
- package/dist/cjs/components/Search.js +7 -7
- package/dist/cjs/components/Segmented.js +3 -3
- package/dist/cjs/components/Select.js +18 -13
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Switch.js +3 -3
- package/dist/cjs/components/Tab.js +11 -11
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Textarea.js +2 -2
- package/dist/cjs/components/Tile.js +8 -8
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +3 -3
- package/dist/components/Accordion.js +10 -10
- package/dist/components/Avatar.js +7 -7
- package/dist/components/Badge.js +6 -6
- package/dist/components/Breadcrumbs.js +5 -5
- package/dist/components/Button.js +7 -7
- package/dist/components/Cell.js +8 -8
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/Checkmark.js +2 -2
- package/dist/components/Chips.js +8 -8
- package/dist/components/Choice.js +9 -9
- package/dist/components/Code.js +2 -2
- package/dist/components/CookiesWarning.js +8 -8
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +11 -11
- package/dist/components/Divider.js +1 -1
- package/dist/components/Drawer.js +3 -1
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Group.js +1 -1
- package/dist/components/HeroTitle.js +2 -2
- package/dist/components/Icon.js +5 -5
- package/dist/components/Input.js +1 -1
- package/dist/components/InputMask.js +3 -3
- package/dist/components/InputPassword.js +7 -7
- package/dist/components/Label.js +4 -4
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +3 -3
- package/dist/components/MenuItem.js +4 -4
- package/dist/components/Modal.js +6 -6
- package/dist/components/Notification.js +1 -1
- package/dist/components/Overlay.js +1 -1
- package/dist/components/Pagination.js +9 -9
- package/dist/components/Panel.js +4 -4
- package/dist/components/Radio.js +3 -3
- package/dist/components/Response.js +10 -10
- package/dist/components/Search.js +7 -7
- package/dist/components/Segmented.js +3 -3
- package/dist/components/Select.js +18 -13
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Switch.js +3 -3
- package/dist/components/Tab.js +11 -11
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.js +2 -2
- package/dist/components/Tile.js +8 -8
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +3 -3
- package/dist/css/components/Divider/Divider.css +10 -13
- package/dist/css/components/Group/Group.css +13 -4
- package/dist/css/components/Link/Link.css +17 -0
- package/dist/types/components/Select/index.d.ts +15 -15
- package/dist/types/components/Tab/Tab.interface.d.ts +1 -2
- package/package.json +1 -1
package/dist/components/Tile.js
CHANGED
|
@@ -3,9 +3,9 @@ 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 Badge } from '../Badge-
|
|
7
|
-
import { T as Text } from '../Text-
|
|
8
|
-
import { T as Title } from '../Title
|
|
6
|
+
import { B as Badge } from '../Badge-BY030Mwm.js';
|
|
7
|
+
import { T as Text } from '../Text-aaWArShm.js';
|
|
8
|
+
import { T as Title } from '../Title--_epIXkC.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
@@ -19,10 +19,10 @@ import 'react-responsive';
|
|
|
19
19
|
import '../utils/setViewportProperty.js';
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
-
import '../Icon-
|
|
22
|
+
import '../Icon-BF7i3XdQ.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
|
-
import '../Link-
|
|
25
|
-
import '../Tooltip-
|
|
24
|
+
import '../Link-Cn7hiWmM.js';
|
|
25
|
+
import '../Tooltip-DP32J5V6.js';
|
|
26
26
|
|
|
27
27
|
var tileAppearance = {
|
|
28
28
|
dev: {},
|
|
@@ -36,9 +36,9 @@ var tileConfig = {
|
|
|
36
36
|
};
|
|
37
37
|
function Tile(props) {
|
|
38
38
|
var className = props.className, type = props.type, appearance = props.appearance, direction = props.direction, size = props.size, title = props.title, text = props.text, badge = props.badge, badgeAppearance = props.badgeAppearance, reverse = props.reverse, before = props.before, after = props.after, onClick = props.onClick, children = props.children;
|
|
39
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
39
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
40
40
|
var _a;
|
|
41
|
-
return (__assign(__assign({},
|
|
41
|
+
return (__assign(__assign({}, resultConfig), (_a = tileConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
42
42
|
}, {});
|
|
43
43
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
44
44
|
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, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWrap = propsGenerator.textWrap, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, shapeClass = propsGenerator.shapeClass;
|
package/dist/components/Title.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip-
|
|
1
|
+
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip-DP32J5V6.js';
|
|
2
2
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -17,5 +17,5 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../Text-
|
|
21
|
-
import '../Title
|
|
20
|
+
import '../Text-aaWArShm.js';
|
|
21
|
+
import '../Title--_epIXkC.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
}
|
|
6
6
|
.divider {
|
|
7
7
|
&_size {
|
|
8
|
-
@each $size in
|
|
8
|
+
@each $size in l, m, s{
|
|
9
9
|
&_$(size) {
|
|
10
10
|
height: var(--divider-$(size)-height);
|
|
11
11
|
min-height: var(--divider-$(size)-height);
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
&_direction {
|
|
16
16
|
&_horizontal {
|
|
17
17
|
&^^&_size {
|
|
18
|
-
@each $size in
|
|
18
|
+
@each $size in l, m, s{
|
|
19
19
|
&_$(size) {
|
|
20
20
|
height: var(--divider-$(size)-height);
|
|
21
21
|
min-height: var(--divider-$(size)-height);
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
&_vertical {
|
|
27
27
|
&^^&_size {
|
|
28
|
-
@each $size in
|
|
28
|
+
@each $size in l, m, s{
|
|
29
29
|
&_$(size) {
|
|
30
30
|
width: var(--divider-$(size)-width);
|
|
31
31
|
height: auto;
|
|
@@ -51,15 +51,12 @@
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
:root {
|
|
54
|
-
--divider-
|
|
55
|
-
--divider-
|
|
56
|
-
--divider-
|
|
57
|
-
--divider-s-height: 2px;
|
|
58
|
-
--divider-xs-height: 1px;
|
|
54
|
+
--divider-l-height: 3px;
|
|
55
|
+
--divider-m-height: 2px;
|
|
56
|
+
--divider-s-height: 1px;
|
|
59
57
|
|
|
60
|
-
--divider-
|
|
61
|
-
--divider-
|
|
62
|
-
--divider-
|
|
63
|
-
|
|
64
|
-
--divider-xs-width: 1px;
|
|
58
|
+
--divider-l-width: 3px;
|
|
59
|
+
--divider-m-width: 2px;
|
|
60
|
+
--divider-s-width: 1px;
|
|
61
|
+
;
|
|
65
62
|
}
|
|
@@ -152,12 +152,21 @@
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.group {
|
|
155
|
-
&
|
|
156
|
-
&
|
|
155
|
+
&_scroll {
|
|
156
|
+
&_vertical {
|
|
157
|
+
position: relative;
|
|
158
|
+
^^&__wrapper {
|
|
159
|
+
overflow: hidden scroll;
|
|
160
|
+
display: flex;
|
|
161
|
+
flex-direction: column;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
&_horizontal {
|
|
165
|
+
position: relative;
|
|
157
166
|
^^&__wrapper {
|
|
167
|
+
overflow: scroll hidden;
|
|
158
168
|
display: flex;
|
|
159
|
-
|
|
160
|
-
overflow-y: hidden;
|
|
169
|
+
flex-direction: row;
|
|
161
170
|
}
|
|
162
171
|
}
|
|
163
172
|
}
|
|
@@ -30,3 +30,20 @@
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
+
/* stylelint-disable prettier/prettier */
|
|
34
|
+
.link {
|
|
35
|
+
&_shape {
|
|
36
|
+
&_rounded {
|
|
37
|
+
border-radius: var(--link-shape-rounded-default);
|
|
38
|
+
}
|
|
39
|
+
&_circular {
|
|
40
|
+
border-radius: 50%;
|
|
41
|
+
}
|
|
42
|
+
&_geometric {
|
|
43
|
+
border-radius: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
:root {
|
|
48
|
+
--link-shape-rounded-default: 12px;
|
|
49
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { SelectClearIndicator } from './SelectClearIndicator
|
|
2
|
-
import { selectConfig, SelectContainer } from './SelectContainer
|
|
3
|
-
import { SelectControl } from './SelectControl
|
|
4
|
-
import { SelectDropdownIndicator } from './SelectDropdownIndicator
|
|
5
|
-
import { SelectGroupHeading } from './SelectGroupHeading
|
|
6
|
-
import { SelectIndicatorsContainer } from './SelectIndicatorsContainer
|
|
7
|
-
import { SelectInput } from './SelectInput
|
|
8
|
-
import { SelectMenu } from './SelectMenu
|
|
9
|
-
import { SelectMultiValueContainer } from './SelectMultiValueContainer
|
|
10
|
-
import { SelectMultiValueLabel } from './SelectMultiValueLabel
|
|
11
|
-
import { SelectMultiValueRemove } from './SelectMultiValueRemove
|
|
12
|
-
import { SelectOption } from './SelectOption
|
|
13
|
-
import { SelectPlaceholder } from './SelectPlaceholder
|
|
14
|
-
import { SelectSingleValue } from './SelectSingleValue
|
|
15
|
-
import { SelectValueContainer } from './SelectValueContainer
|
|
1
|
+
import { SelectClearIndicator } from './SelectClearIndicator';
|
|
2
|
+
import { selectConfig, SelectContainer } from './SelectContainer';
|
|
3
|
+
import { SelectControl } from './SelectControl';
|
|
4
|
+
import { SelectDropdownIndicator } from './SelectDropdownIndicator';
|
|
5
|
+
import { SelectGroupHeading } from './SelectGroupHeading';
|
|
6
|
+
import { SelectIndicatorsContainer } from './SelectIndicatorsContainer';
|
|
7
|
+
import { SelectInput } from './SelectInput';
|
|
8
|
+
import { SelectMenu } from './SelectMenu';
|
|
9
|
+
import { SelectMultiValueContainer } from './SelectMultiValueContainer';
|
|
10
|
+
import { SelectMultiValueLabel } from './SelectMultiValueLabel';
|
|
11
|
+
import { SelectMultiValueRemove } from './SelectMultiValueRemove';
|
|
12
|
+
import { SelectOption } from './SelectOption';
|
|
13
|
+
import { SelectPlaceholder } from './SelectPlaceholder';
|
|
14
|
+
import { SelectSingleValue } from './SelectSingleValue';
|
|
15
|
+
import { SelectValueContainer } from './SelectValueContainer';
|
|
16
16
|
export { SelectClearIndicator, SelectContainer as Select, SelectControl, SelectDropdownIndicator, SelectGroupHeading, SelectIndicatorsContainer, SelectInput, SelectMenu, SelectMultiValueContainer, SelectMultiValueLabel, SelectMultiValueRemove, SelectOption, SelectPlaceholder, SelectSingleValue, SelectValueContainer, selectConfig, };
|
|
@@ -70,8 +70,6 @@ interface TabProps extends TabThemeColor, StyleAttributes {
|
|
|
70
70
|
set?: string;
|
|
71
71
|
}
|
|
72
72
|
interface TabGroupProps extends StyleAttributes {
|
|
73
|
-
id?: string;
|
|
74
|
-
[key: number | string | symbol]: any;
|
|
75
73
|
align?: AlignProps;
|
|
76
74
|
alignDirection?: AlignDirectionProps;
|
|
77
75
|
borderColor?: BorderColorProps;
|
|
@@ -80,6 +78,7 @@ interface TabGroupProps extends StyleAttributes {
|
|
|
80
78
|
children?: ReactNode;
|
|
81
79
|
className?: string;
|
|
82
80
|
contentAlign?: AlignProps;
|
|
81
|
+
dataTestId?: string;
|
|
83
82
|
dataTour?: string;
|
|
84
83
|
direction?: DirectionProps;
|
|
85
84
|
fill?: FillProps;
|