@itcase/ui 1.0.72 → 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.
Files changed (56) hide show
  1. package/dist/components/Accordion.js +2 -0
  2. package/dist/components/Avatar.js +8 -22
  3. package/dist/components/Badge.js +2 -1
  4. package/dist/components/Breadcrumbs.js +2 -0
  5. package/dist/components/Button.js +5 -2
  6. package/dist/components/Card.js +1 -0
  7. package/dist/components/Cell.js +4 -2
  8. package/dist/components/Checkbox.js +1 -0
  9. package/dist/components/Chips.js +12 -1
  10. package/dist/components/Choice.js +2 -1
  11. package/dist/components/ContextMenu.js +3 -1
  12. package/dist/components/CookiesWarning.js +4 -2
  13. package/dist/components/DadataHintField.js +1 -1
  14. package/dist/components/DatePicker.js +8 -5
  15. package/dist/components/Dot.js +1 -1
  16. package/dist/components/Dropdown.js +1 -1
  17. package/dist/components/Empty.js +32 -30
  18. package/dist/components/Flex.js +1 -1
  19. package/dist/components/FormField.js +5 -3
  20. package/dist/components/Group.js +1 -1
  21. package/dist/components/Icon.js +209 -14
  22. package/dist/components/Input.js +1 -1
  23. package/dist/components/InputPassword.js +3 -0
  24. package/dist/components/Label.js +10 -9
  25. package/dist/components/LanguageSelector.js +3 -0
  26. package/dist/components/Loader.js +1 -0
  27. package/dist/components/Logo.js +58 -9
  28. package/dist/components/Menu.js +3 -1
  29. package/dist/components/MenuItem.js +100 -28
  30. package/dist/components/Modal.js +2 -1
  31. package/dist/components/Notification.js +1 -1
  32. package/dist/components/RadioButton.js +4 -3
  33. package/dist/components/Search.js +4 -1
  34. package/dist/components/Segmented.js +2 -1
  35. package/dist/components/Select.js +42 -35
  36. package/dist/components/SiteMenu.js +3 -0
  37. package/dist/components/Tab.js +5 -13
  38. package/dist/components/Text.js +5 -2
  39. package/dist/components/Tile.js +140 -114
  40. package/dist/components/Tooltip.js +1 -1
  41. package/dist/constants/componentProps/fillHover.js +5 -0
  42. package/dist/constants/componentProps/textSize.js +1 -1
  43. package/dist/constants/componentProps/titleSize.js +1 -1
  44. package/dist/constants.js +2 -0
  45. package/dist/css/components/Cell/Cell.css +7 -7
  46. package/dist/css/components/Chips/Chips.css +8 -2
  47. package/dist/css/components/DatePicker/DatePicker.css +2 -1
  48. package/dist/css/components/Input/Input.css +14 -0
  49. package/dist/css/components/Notification/Notification.css +1 -0
  50. package/dist/css/components/Notification/css/__item/notification__item_set_float.css +1 -0
  51. package/dist/css/components/Select/Select.css +19 -0
  52. package/dist/css/styles/border-color-hover/border-color-hover.css +3 -3
  53. package/dist/css/styles/text-color-hover/text-color-hover.css +4 -3
  54. package/package.json +11 -11
  55. /package/dist/{_commonjsHelpers-facfc6d6.js → _commonjsHelpers-rI13D0F7.js} +0 -0
  56. /package/dist/{defineProperty-f9e5e1f3.js → defineProperty-ujK-k7aM.js} +0 -0
@@ -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 + (1.7rem / 2));
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;
@@ -53,3 +53,17 @@
53
53
  }
54
54
  }
55
55
  }
56
+ .input {
57
+ &_type {
58
+ &_number {
59
+ appearance: none;
60
+ &[type='number'] {
61
+ appearance: textfield;
62
+ }
63
+ &::-webkit-outer-spin-button,
64
+ &::-webkit-inner-spin-button {
65
+ appearance: none;
66
+ }
67
+ }
68
+ }
69
+ }
@@ -27,6 +27,7 @@
27
27
  &_set {
28
28
  &_float {
29
29
  width: 100%;
30
+ border-radius: 8px;
30
31
  ^^&-wrapper {
31
32
  padding: 12px 16px;
32
33
  border-radius: 8px;
@@ -2,6 +2,7 @@
2
2
  &_set {
3
3
  &_float {
4
4
  width: 100%;
5
+ border-radius: 8px;
5
6
  ^^&-wrapper {
6
7
  padding: 12px 16px;
7
8
  border-radius: 8px;
@@ -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,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, hover {
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-color-hover {
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, hover {
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.72",
3
+ "version": "1.0.73",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -69,11 +69,11 @@
69
69
  "@babel/preset-react": "^7.22.15",
70
70
  "@commitlint/cli": "^17.7.2",
71
71
  "@commitlint/config-conventional": "^17.7.0",
72
- "@rollup/plugin-babel": "^6.0.3",
73
- "@rollup/plugin-commonjs": "^25.0.4",
74
- "@rollup/plugin-json": "^6.0.0",
75
- "@rollup/plugin-node-resolve": "^15.2.1",
76
- "@rollup/plugin-terser": "^0.4.3",
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,14 +81,14 @@
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.50.0",
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.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",
@@ -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.1.4",
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.18.0",
123
- "rollup": "^3.29.4",
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",