@itcase/ui 1.8.44 → 1.8.50
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/README.md +1 -0
- package/dist/{Avatar_cjs_Bp8wjwGw.js → Avatar_cjs_BQNgRkQo.js} +2 -2
- package/dist/{Avatar_es_BIKf0hNV.js → Avatar_es_DzMM4D-9.js} +2 -2
- package/dist/{Button_cjs_Chn18eOU.js → Button_cjs_C8P5a38-.js} +28 -12
- package/dist/{Button_es_XnWb2XF3.js → Button_es_CwtOu3lT.js} +28 -12
- package/dist/{ChipsGroup_cjs_Deoz_rju.js → ChipsGroup_cjs_CVCYLe2C.js} +2 -2
- package/dist/{ChipsGroup_es_C1Qi_5A1.js → ChipsGroup_es_BrX6_qHH.js} +2 -2
- package/dist/{DatePicker_cjs_B24qHiks.js → DatePicker_cjs_CKmX_JOf.js} +4 -4
- package/dist/{DatePicker_es_BuC8mEcK.js → DatePicker_es_BRH4AHbV.js} +4 -4
- package/dist/{DropdownItem_cjs_DuqySfbd.js → DropdownItem_cjs_DFScS1ls.js} +2 -2
- package/dist/{DropdownItem_es_BBxfR35q.js → DropdownItem_es_BnKPMQwa.js} +2 -2
- package/dist/{Icon_cjs_DRZih-pc.js → Icon_cjs_CKWWo53f.js} +1 -1
- package/dist/{Icon_es_k9bHSLyL.js → Icon_es_B7IMj2rG.js} +1 -1
- package/dist/{Label_cjs_D70CHJDE.js → Label_cjs_DNAubjXm.js} +2 -2
- package/dist/{Label_es_HXrap3A4.js → Label_es_DnV8akSC.js} +2 -2
- package/dist/{Loader_cjs_BShrE-Nb.js → Loader_cjs_D_n5PrK5.js} +1 -1
- package/dist/{Loader_es_BDb87cdb.js → Loader_es_DXVVV9LE.js} +1 -1
- package/dist/{Text_cjs_BlNeIm_v.js → Text_cjs_C-Ux7Tz5.js} +6 -4
- package/dist/{Text_es_Ffjr5J1k.js → Text_es_BdFAdf7M.js} +6 -4
- package/dist/cjs/components/Accordion.js +2 -2
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/AvatarStack.js +3 -3
- package/dist/cjs/components/Badge.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +2 -2
- package/dist/cjs/components/Button.js +4 -4
- package/dist/cjs/components/Cell.js +3 -3
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/Chips.js +3 -3
- package/dist/cjs/components/Choice.js +3 -3
- package/dist/cjs/components/CookiesWarning.js +4 -4
- package/dist/cjs/components/DatePeriod.js +7 -7
- package/dist/cjs/components/DatePicker.js +6 -6
- package/dist/cjs/components/Drawer.js +2 -2
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/HeroTitle.js +2 -2
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/InputPassword.js +2 -2
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +2 -3
- package/dist/cjs/components/MenuItem.js +4 -16
- package/dist/cjs/components/Modal.js +3 -3
- package/dist/cjs/components/Notification.js +2 -2
- package/dist/cjs/components/Pagination.js +3 -3
- package/dist/cjs/components/Radio.js +1 -1
- package/dist/cjs/components/Response.js +4 -4
- package/dist/cjs/components/Search.js +2 -2
- package/dist/cjs/components/Segmented.js +2 -2
- package/dist/cjs/components/Select.js +2 -2
- package/dist/cjs/components/Swiper.js +2 -2
- package/dist/cjs/components/Switch.js +1 -1
- package/dist/cjs/components/Tab.js +2 -2
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +2 -2
- package/dist/cjs/components/Title.js +2 -2
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/cjs/components/Warning.js +2 -2
- package/dist/components/Accordion.js +2 -2
- package/dist/components/Avatar.js +3 -3
- package/dist/components/AvatarStack.js +3 -3
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Button.js +4 -4
- package/dist/components/Cell.js +3 -3
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Chips.js +3 -3
- package/dist/components/Choice.js +3 -3
- package/dist/components/CookiesWarning.js +4 -4
- package/dist/components/DatePeriod.js +7 -7
- package/dist/components/DatePicker.js +6 -6
- package/dist/components/Drawer.js +2 -2
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/HeroTitle.js +2 -2
- package/dist/components/Icon.js +2 -2
- package/dist/components/InputPassword.js +2 -2
- package/dist/components/Label.js +3 -3
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +2 -3
- package/dist/components/MenuItem.js +4 -16
- package/dist/components/Modal.js +3 -3
- package/dist/components/Notification.js +2 -2
- package/dist/components/Pagination.js +3 -3
- package/dist/components/Radio.js +1 -1
- package/dist/components/Response.js +4 -4
- package/dist/components/Search.js +2 -2
- package/dist/components/Segmented.js +2 -2
- package/dist/components/Select.js +2 -2
- package/dist/components/Swiper.js +2 -2
- package/dist/components/Switch.js +1 -1
- package/dist/components/Tab.js +2 -2
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +2 -2
- package/dist/components/Title.js +2 -2
- package/dist/components/Tooltip.js +2 -2
- package/dist/components/Warning.js +2 -2
- package/dist/css/styles/fill-gradient/fill-gradient.css +8 -3
- package/dist/css/styles/shape-strength/shape-strength.css +3 -11
- package/dist/types/components/Button/appearance/buttonShape.d.ts +22 -0
- package/package.json +12 -13
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useState, Fragment } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { I as Icon } from '../
|
|
5
|
-
import { T as Text } from '../
|
|
4
|
+
import { I as Icon } from '../Icon_es_B7IMj2rG.js';
|
|
5
|
+
import { T as Text } from '../Text_es_BdFAdf7M.js';
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
.fill-gradient {
|
|
2
2
|
@each $type in accent, primary, secondary, tertiary, surface, success, error {
|
|
3
3
|
&_$(type) {
|
|
4
|
-
@each $color in primary, secondary, tertiary, quaternary, quinary, senary,
|
|
4
|
+
@each $color in primary, secondary, tertiary, quaternary, quinary, senary,
|
|
5
|
+
accent, disabled, hover {
|
|
5
6
|
&-$(color) {
|
|
6
|
-
@each $direction in left, top, right, bottom
|
|
7
|
+
@each $direction in left, top, right, bottom {
|
|
7
8
|
&-$(direction) {
|
|
8
|
-
background: linear-gradient(
|
|
9
|
+
background: linear-gradient(
|
|
10
|
+
to $(direction),
|
|
11
|
+
var(--color-$(type)-gradient-$(color)-start) 0%,
|
|
12
|
+
var(--color-$(type)-gradient-$(color)-end) 100%
|
|
13
|
+
);
|
|
9
14
|
}
|
|
10
15
|
}
|
|
11
16
|
}
|
|
@@ -1,23 +1,15 @@
|
|
|
1
|
+
.shape_rounded.shape-strength,
|
|
1
2
|
.shape-strength {
|
|
2
|
-
&
|
|
3
|
-
border-radius: 0.5m;
|
|
4
|
-
}
|
|
5
|
-
&_0-5-m {
|
|
3
|
+
&_05-m {
|
|
6
4
|
border-radius: 0.5m;
|
|
7
5
|
}
|
|
8
6
|
&_1-m {
|
|
9
7
|
border-radius: 1m;
|
|
10
8
|
}
|
|
11
|
-
&
|
|
9
|
+
&_15-m {
|
|
12
10
|
border-radius: 1.5m;
|
|
13
11
|
}
|
|
14
12
|
&_2-m {
|
|
15
13
|
border-radius: 2m;
|
|
16
14
|
}
|
|
17
|
-
&_2-5-m {
|
|
18
|
-
border-radius: 2.5m;
|
|
19
|
-
}
|
|
20
|
-
&_3-m {
|
|
21
|
-
border-radius: 3m;
|
|
22
|
-
}
|
|
23
15
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const buttonAppearanceShape: {
|
|
2
|
+
rounded: {
|
|
3
|
+
shape: string;
|
|
4
|
+
};
|
|
5
|
+
roundedS: {
|
|
6
|
+
shape: string;
|
|
7
|
+
shapeStrength: string;
|
|
8
|
+
};
|
|
9
|
+
roundedM: {
|
|
10
|
+
shape: string;
|
|
11
|
+
shapeStrength: string;
|
|
12
|
+
};
|
|
13
|
+
roundedL: {
|
|
14
|
+
shape: string;
|
|
15
|
+
shapeStrength: string;
|
|
16
|
+
};
|
|
17
|
+
roundedXL: {
|
|
18
|
+
shape: string;
|
|
19
|
+
shapeStrength: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export { buttonAppearanceShape };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.50",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -102,21 +102,21 @@
|
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
104
104
|
"@itcase/common": "^1.2.28",
|
|
105
|
-
"@itcase/icons": "^1.2.
|
|
105
|
+
"@itcase/icons": "^1.2.16",
|
|
106
106
|
"@itcase/storybook-config": "^1.1.37",
|
|
107
|
-
"@itcase/tokens-am": "^1.1.
|
|
108
|
-
"@itcase/tokens-baikal": "^1.1.
|
|
107
|
+
"@itcase/tokens-am": "^1.1.15",
|
|
108
|
+
"@itcase/tokens-baikal": "^1.1.15",
|
|
109
109
|
"@itcase/tokens-palette": "^1.1.11",
|
|
110
|
-
"@storybook/addon-vitest": "^9.0.
|
|
110
|
+
"@storybook/addon-vitest": "^9.0.17",
|
|
111
111
|
"clsx": "^2.1.1",
|
|
112
112
|
"date-fns": "^4.1.0",
|
|
113
113
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
114
114
|
"eslint-plugin-import": "^2.32.0",
|
|
115
|
-
"framer-motion": "^12.23.
|
|
115
|
+
"framer-motion": "^12.23.6",
|
|
116
116
|
"js-cookie": "^3.0.5",
|
|
117
117
|
"lodash": "^4.17.21",
|
|
118
118
|
"luxon": "^3.7.1",
|
|
119
|
-
"motion": "^12.23.
|
|
119
|
+
"motion": "^12.23.6",
|
|
120
120
|
"rc-slider": "^11.1.8",
|
|
121
121
|
"react": "^18.3.1",
|
|
122
122
|
"react-dadata": "^2.27.4",
|
|
@@ -142,9 +142,9 @@
|
|
|
142
142
|
"@babel/preset-react": "^7.27.1",
|
|
143
143
|
"@commitlint/cli": "^19.8.1",
|
|
144
144
|
"@commitlint/config-conventional": "^19.8.1",
|
|
145
|
-
"@itcase/config": "^1.0.
|
|
146
|
-
"@itcase/lint": "^1.1.
|
|
147
|
-
"@itcase/types": "^1.0.
|
|
145
|
+
"@itcase/config": "^1.0.53",
|
|
146
|
+
"@itcase/lint": "^1.1.23",
|
|
147
|
+
"@itcase/types": "^1.0.6",
|
|
148
148
|
"@rollup/plugin-alias": "^5.1.1",
|
|
149
149
|
"@rollup/plugin-babel": "^6.0.4",
|
|
150
150
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
@@ -172,16 +172,15 @@
|
|
|
172
172
|
"eslint": "9.31.0",
|
|
173
173
|
"husky": "^9.1.7",
|
|
174
174
|
"lint-staged": "^16.1.2",
|
|
175
|
-
"npm": "^11.4.2",
|
|
176
175
|
"prettier": "^3.6.2",
|
|
177
176
|
"react-docgen-typescript": "^2.4.0",
|
|
178
|
-
"rollup": "^4.45.
|
|
177
|
+
"rollup": "^4.45.1",
|
|
179
178
|
"rollup-plugin-copy": "^3.5.0",
|
|
180
179
|
"rollup-plugin-dts": "^6.2.1",
|
|
181
180
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
182
181
|
"rollup-preserve-directives": "^1.1.3",
|
|
183
182
|
"semantic-release": "^24.2.7",
|
|
184
|
-
"storybook": "^9.0.
|
|
183
|
+
"storybook": "^9.0.17",
|
|
185
184
|
"stylelint": "^16.21.1",
|
|
186
185
|
"typescript": "^5.8.3"
|
|
187
186
|
}
|