@itcase/ui 1.0.71 → 1.0.73
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/components/Accordion.js +2 -2
- package/dist/components/Avatar.js +9 -25
- package/dist/components/Badge.js +2 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/Card.js +1 -0
- package/dist/components/Cell.js +5 -6
- package/dist/components/Checkbox.js +1 -0
- package/dist/components/Chips.js +12 -1
- package/dist/components/Choice.js +2 -1
- package/dist/components/Code.js +4 -4
- package/dist/components/ContextMenu.js +4 -4
- package/dist/components/CookiesWarning.js +4 -4
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +5 -5
- package/dist/components/Dot.js +1 -1
- package/dist/components/Dropdown.js +1 -1
- package/dist/components/Empty.js +32 -32
- package/dist/components/Flex.js +1 -1
- package/dist/components/FormField.js +5 -5
- package/dist/components/Group.js +1 -1
- package/dist/components/Icon.js +25 -87
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +4 -4
- package/dist/components/Label.js +10 -9
- package/dist/components/LanguageSelector.js +4 -4
- package/dist/components/Loader.js +1 -0
- package/dist/components/Logo.js +58 -9
- package/dist/components/Menu.js +3 -1
- package/dist/components/MenuItem.js +100 -28
- package/dist/components/Modal.js +2 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/RadioButton.js +4 -3
- package/dist/components/Search.js +4 -4
- package/dist/components/Segmented.js +2 -1
- package/dist/components/Select.js +47 -40
- package/dist/components/SiteMenu.js +4 -4
- package/dist/components/Swiper.js +4 -4
- package/dist/components/Tab.js +5 -13
- package/dist/components/Text.js +5 -2
- package/dist/components/Tile.js +140 -116
- package/dist/components/Tooltip.js +1 -1
- package/dist/constants/componentProps/fillHover.js +5 -0
- package/dist/constants/componentProps/sizeInterface.js +1 -1
- package/dist/constants/componentProps/sizePX.js +1 -1
- package/dist/constants/componentProps/state.js +1 -1
- package/dist/constants/componentProps/textSize.js +1 -1
- package/dist/constants/componentProps/titleSize.js +1 -1
- package/dist/constants.js +2 -0
- package/dist/css/components/Cell/Cell.css +7 -7
- package/dist/css/components/Chips/Chips.css +8 -2
- package/dist/css/components/DatePicker/DatePicker.css +2 -1
- package/dist/css/components/Icon/Icon.css +4 -4
- package/dist/css/components/Input/Input.css +14 -0
- package/dist/css/components/Notification/Notification.css +1 -0
- package/dist/css/components/Notification/css/__item/notification__item_set_float.css +1 -0
- package/dist/css/components/Select/Select.css +19 -0
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/css/styles/border-color-hover/border-color-hover.css +3 -3
- package/dist/css/styles/text-color-hover/text-color-hover.css +4 -3
- package/package.json +19 -19
- /package/dist/{_commonjsHelpers-facfc6d6.js → _commonjsHelpers-rI13D0F7.js} +0 -0
- /package/dist/{defineProperty-f9e5e1f3.js → defineProperty-ujK-k7aM.js} +0 -0
|
@@ -14,6 +14,7 @@ require('../constants/componentProps/textColor.js');
|
|
|
14
14
|
require('../constants/componentProps/textColorActive.js');
|
|
15
15
|
require('../constants/componentProps/textColorHover.js');
|
|
16
16
|
require('../constants/componentProps/textStyle.js');
|
|
17
|
+
require('../constants/componentProps/textGradient.js');
|
|
17
18
|
require('../constants/componentProps/textWeight.js');
|
|
18
19
|
require('lodash/camelCase');
|
|
19
20
|
require('lodash/maxBy');
|
|
@@ -24,7 +25,6 @@ require('../hooks/useMediaQueries.js');
|
|
|
24
25
|
require('react-responsive');
|
|
25
26
|
require('lodash/castArray');
|
|
26
27
|
require('../constants/componentProps/textAlign.js');
|
|
27
|
-
require('../constants/componentProps/textGradient.js');
|
|
28
28
|
require('../constants/componentProps/titleSize.js');
|
|
29
29
|
require('../constants/componentProps/type.js');
|
|
30
30
|
require('../constants/componentProps/wrap.js');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const sizePXProps = [null, '16', '24', '32', '40', '48', '56', '64', '72', '80', '96', '112', '144'];
|
|
3
|
+
const sizePXProps = [null, '14', '16', '24', '32', '40', '48', '56', '60', '64', '72', '80', '96', '112', '144'];
|
|
4
4
|
|
|
5
5
|
exports.default = sizePXProps;
|
package/dist/constants.js
CHANGED
|
@@ -9,6 +9,7 @@ var borderWidth = require('./constants/componentProps/borderWidth.js');
|
|
|
9
9
|
var captionPosition = require('./constants/componentProps/captionPosition.js');
|
|
10
10
|
var direction = require('./constants/componentProps/direction.js');
|
|
11
11
|
var emojiSize = require('./constants/componentProps/emojiSize.js');
|
|
12
|
+
var fillHover = require('./constants/componentProps/fillHover.js');
|
|
12
13
|
var fillGradient = require('./constants/componentProps/fillGradient.js');
|
|
13
14
|
var fill = require('./constants/componentProps/fill.js');
|
|
14
15
|
var fillType = require('./constants/componentProps/fillType.js');
|
|
@@ -62,6 +63,7 @@ exports.borderWidthProps = borderWidth.default;
|
|
|
62
63
|
exports.captionPositionProps = captionPosition.default;
|
|
63
64
|
exports.directionProps = direction.default;
|
|
64
65
|
exports.emojiSizeProps = emojiSize.default;
|
|
66
|
+
exports.fillHoverProps = fillHover.default;
|
|
65
67
|
exports.fillGradientProps = fillGradient.default;
|
|
66
68
|
exports.fillProps = fill.default;
|
|
67
69
|
exports.fillTypeProps = fillType.default;
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
.cell {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
&&_state {
|
|
41
|
+
&_active {
|
|
42
|
+
}
|
|
42
43
|
}
|
|
43
|
-
}
|
|
44
44
|
}
|
|
45
45
|
.cell {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
&&_state {
|
|
47
|
+
&_disabled {
|
|
48
|
+
border: solid 1px red;
|
|
49
|
+
}
|
|
49
50
|
}
|
|
50
|
-
}
|
|
51
51
|
}
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
|
|
13
13
|
.chips {
|
|
14
14
|
&&_size {
|
|
15
|
+
&_xxs {
|
|
16
|
+
padding: 2px 6px;
|
|
17
|
+
@mixin text-s;
|
|
18
|
+
}
|
|
15
19
|
&_xs {
|
|
16
20
|
padding: 2px 6px;
|
|
17
21
|
@mixin text-s;
|
|
@@ -34,7 +38,7 @@
|
|
|
34
38
|
}
|
|
35
39
|
&_xxl {
|
|
36
40
|
padding: 6px 12px;
|
|
37
|
-
@mixin text-xxl
|
|
41
|
+
@mixin text-xxl;
|
|
38
42
|
}
|
|
39
43
|
}
|
|
40
44
|
}
|
|
@@ -43,7 +47,7 @@
|
|
|
43
47
|
&_shape {
|
|
44
48
|
&_rounded {
|
|
45
49
|
border-radius: var(--chips-shape-rounded-default);
|
|
46
|
-
@each $size in xs, s, m, l, xl, xxl {
|
|
50
|
+
@each $size in xxs, xs, s, m, l, xl, xxl {
|
|
47
51
|
&.chips_size_$(size) {
|
|
48
52
|
border-radius: var(--chips-size-$(size)-shape-rounded);
|
|
49
53
|
}
|
|
@@ -57,6 +61,8 @@
|
|
|
57
61
|
|
|
58
62
|
:root {
|
|
59
63
|
--chips-shape-rounded-default: 6px;
|
|
64
|
+
--chips-size-xxs-shape-rounded: 6px;
|
|
65
|
+
--chips-size-xs-shape-rounded: 6px;
|
|
60
66
|
--chips-size-s-shape-rounded: 6px;
|
|
61
67
|
--chips-size-m-shape-rounded: 6px;
|
|
62
68
|
--chips-size-l-shape-rounded: 6px;
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list {
|
|
309
309
|
list-style: none;
|
|
310
310
|
margin: 0;
|
|
311
|
-
height: calc(195px +
|
|
311
|
+
height: calc(195px + 1.7rem / 2);
|
|
312
312
|
overflow-y: scroll;
|
|
313
313
|
padding-right: 0;
|
|
314
314
|
padding-left: 0;
|
|
@@ -568,6 +568,7 @@
|
|
|
568
568
|
.react-datepicker__input-container .react-datepicker__calendar-icon {
|
|
569
569
|
position: absolute;
|
|
570
570
|
padding: 0.5rem;
|
|
571
|
+
box-sizing: content-box;
|
|
571
572
|
}
|
|
572
573
|
.react-datepicker__view-calendar-icon input {
|
|
573
574
|
padding: 6px 10px 5px 25px;
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
}
|
|
9
9
|
.icon {
|
|
10
10
|
&_size {
|
|
11
|
-
@each $size in 14, 16, 24, 32, 40, 56, 60, 72 {
|
|
11
|
+
@each $size in 14, 16, 24, 32, 40, 48, 56, 60, 64, 72, 80, 96, 112, 144 {
|
|
12
12
|
&_$(size) {
|
|
13
|
-
height: $(size)px;
|
|
14
13
|
width: $(size)px;
|
|
15
|
-
|
|
14
|
+
height: $(size)px;
|
|
16
15
|
min-width: $(size)px;
|
|
16
|
+
min-height: $(size)px;
|
|
17
|
+
font-size: $(size)px;
|
|
17
18
|
display: flex;
|
|
18
19
|
justify-content: center;
|
|
19
20
|
align-items: center;
|
|
20
|
-
font-size: $(size)px;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -53,6 +53,25 @@
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
.select {
|
|
57
|
+
&&_state {
|
|
58
|
+
&_hide-value-container {
|
|
59
|
+
width: auto;
|
|
60
|
+
min-width: 0;
|
|
61
|
+
& .select__control {
|
|
62
|
+
padding: 0;
|
|
63
|
+
border: none;
|
|
64
|
+
}
|
|
65
|
+
& .select__value-container {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
& .select__menu {
|
|
69
|
+
min-width: 240px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
56
75
|
.select {
|
|
57
76
|
&__control {
|
|
58
77
|
position: relative;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Swiper 10.3.
|
|
2
|
+
* Swiper 10.3.1
|
|
3
3
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
4
4
|
* https://swiperjs.com
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on: September
|
|
10
|
+
* Released on: September 28, 2023
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
/* FONT_START */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.border-color_hover {
|
|
2
|
-
@each $type in accent, primary, secondary, tertiary, surface, success, error, info, warning{
|
|
2
|
+
@each $type in accent, primary, secondary, tertiary, surface, success, error, info, warning {
|
|
3
3
|
&_$(type) {
|
|
4
4
|
&-border {
|
|
5
|
-
@each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled,
|
|
5
|
+
@each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled,
|
|
6
|
+
hover {
|
|
6
7
|
&-$(color) {
|
|
7
8
|
&:hover {
|
|
8
|
-
border: solid 2px red;
|
|
9
9
|
border-color: var(--color-$(type)-border-$(color));
|
|
10
10
|
}
|
|
11
11
|
&-hover {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
.text-
|
|
2
|
-
@each $type in accent, primary, secondary, tertiary, surface, success, error, info, warning{
|
|
1
|
+
.text-color_hover {
|
|
2
|
+
@each $type in accent, primary, secondary, tertiary, surface, success, error, info, warning {
|
|
3
3
|
&_$(type) {
|
|
4
4
|
&-text {
|
|
5
|
-
@each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled,
|
|
5
|
+
@each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled,
|
|
6
|
+
hover {
|
|
6
7
|
&-$(color) {
|
|
7
8
|
&:hover {
|
|
8
9
|
color: var(--color-$(type)-text-$(color));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.73",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"registry": "https://registry.npmjs.org/"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@itcase/common": "^1.1.
|
|
43
|
+
"@itcase/common": "^1.1.7",
|
|
44
44
|
"clsx": "^2.0.0",
|
|
45
45
|
"html5-boilerplate": "^8.0.0",
|
|
46
46
|
"js-cookie": "^3.0.5",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"react-dadata": "^2.23.1",
|
|
53
53
|
"react-date-range": "^1.4.0",
|
|
54
54
|
"react-dom": "^18.2.0",
|
|
55
|
-
"react-inlinesvg": "^4.0.
|
|
55
|
+
"react-inlinesvg": "^4.0.5",
|
|
56
56
|
"react-modern-drawer": "^1.2.2",
|
|
57
|
-
"react-otp-input": "^3.0
|
|
57
|
+
"react-otp-input": "^3.1.0",
|
|
58
58
|
"react-paginate": "^8.2.0",
|
|
59
59
|
"react-responsive": "^9.0.2",
|
|
60
60
|
"react-scrollbars-custom": "^4.1.1",
|
|
61
|
-
"react-select": "^5.7.
|
|
62
|
-
"swiper": "^10.3.
|
|
61
|
+
"react-select": "^5.7.7",
|
|
62
|
+
"swiper": "^10.3.1",
|
|
63
63
|
"uuid": "^9.0.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
"@babel/eslint-parser": "^7.22.15",
|
|
68
68
|
"@babel/preset-env": "^7.22.20",
|
|
69
69
|
"@babel/preset-react": "^7.22.15",
|
|
70
|
-
"@commitlint/cli": "^17.7.
|
|
70
|
+
"@commitlint/cli": "^17.7.2",
|
|
71
71
|
"@commitlint/config-conventional": "^17.7.0",
|
|
72
|
-
"@rollup/plugin-babel": "^6.0.
|
|
73
|
-
"@rollup/plugin-commonjs": "^25.0.
|
|
74
|
-
"@rollup/plugin-json": "^6.0.
|
|
75
|
-
"@rollup/plugin-node-resolve": "^15.2.
|
|
76
|
-
"@rollup/plugin-terser": "^0.4.
|
|
72
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
73
|
+
"@rollup/plugin-commonjs": "^25.0.5",
|
|
74
|
+
"@rollup/plugin-json": "^6.0.1",
|
|
75
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
76
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
77
77
|
"@semantic-release/changelog": "^6.0.3",
|
|
78
78
|
"@semantic-release/git": "^10.0.1",
|
|
79
79
|
"@semantic-release/release-notes-generator": "^12.0.0",
|
|
@@ -81,22 +81,22 @@
|
|
|
81
81
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
82
82
|
"babel-plugin-react-docgen": "^4.2.1",
|
|
83
83
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
84
|
-
"eslint": "8.
|
|
84
|
+
"eslint": "8.51.0",
|
|
85
85
|
"eslint-config-prettier": "^9.0.0",
|
|
86
86
|
"eslint-config-standard": "^17.1.0",
|
|
87
87
|
"eslint-plugin-babel": "^5.3.1",
|
|
88
88
|
"eslint-plugin-import": "^2.28.1",
|
|
89
89
|
"eslint-plugin-n": "^16.1.0",
|
|
90
90
|
"eslint-plugin-node": "^11.1.0",
|
|
91
|
-
"eslint-plugin-prettier": "^5.0.
|
|
91
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
92
92
|
"eslint-plugin-promise": "^6.1.1",
|
|
93
93
|
"eslint-plugin-react": "^7.33.2",
|
|
94
94
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
95
95
|
"eslint-plugin-standard": "^5.0.0",
|
|
96
96
|
"husky": "^8.0.3",
|
|
97
97
|
"lint-staged": "^14.0.1",
|
|
98
|
-
"npm": "^10.
|
|
99
|
-
"postcss": "^8.4.
|
|
98
|
+
"npm": "^10.2.0",
|
|
99
|
+
"postcss": "^8.4.31",
|
|
100
100
|
"postcss-aspect-ratio-polyfill": "^2.0.0",
|
|
101
101
|
"postcss-cli": "^10.1.0",
|
|
102
102
|
"postcss-combine-duplicated-selectors": "^10.0.3",
|
|
@@ -114,13 +114,13 @@
|
|
|
114
114
|
"postcss-nested-ancestors": "^3.0.0",
|
|
115
115
|
"postcss-normalize": "^10.0.1",
|
|
116
116
|
"postcss-prepend-imports": "^1.0.1",
|
|
117
|
-
"postcss-preset-env": "^9.
|
|
117
|
+
"postcss-preset-env": "^9.2.0",
|
|
118
118
|
"postcss-pxtorem": "^6.0.0",
|
|
119
119
|
"postcss-responsive-type": "github:ITCase/postcss-responsive-type",
|
|
120
120
|
"postcss-sort-media-queries": "^5.2.0",
|
|
121
121
|
"prettier": "^3.0.3",
|
|
122
|
-
"react-datepicker": "^4.
|
|
123
|
-
"rollup": "^
|
|
122
|
+
"react-datepicker": "^4.20.0",
|
|
123
|
+
"rollup": "^4.0.2",
|
|
124
124
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
125
125
|
"semantic-release": "^22.0.5",
|
|
126
126
|
"stylelint": "^15.10.3",
|
|
File without changes
|
|
File without changes
|