@itcase/ui 1.1.0 → 1.1.2

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 (44) hide show
  1. package/dist/components/Accordion.js +1 -0
  2. package/dist/components/Avatar.js +1 -0
  3. package/dist/components/Breadcrumbs.js +1 -0
  4. package/dist/components/Button.js +9 -3
  5. package/dist/components/Cell.js +30 -13
  6. package/dist/components/Choice.js +1 -0
  7. package/dist/components/ContextMenu.js +1 -0
  8. package/dist/components/CookiesWarning.js +1 -0
  9. package/dist/components/DatePicker.js +3 -1
  10. package/dist/components/Empty.js +1 -0
  11. package/dist/components/FormField.js +26 -25
  12. package/dist/components/Grid.js +2 -2
  13. package/dist/components/Icon.js +126 -16
  14. package/dist/components/Input.js +1 -1
  15. package/dist/components/InputPassword.js +1 -0
  16. package/dist/components/Label.js +3 -2
  17. package/dist/components/LanguageSelector.js +1 -0
  18. package/dist/components/Modal.js +27 -27
  19. package/dist/components/{Fader.js → Overlay.js} +43 -43
  20. package/dist/components/{RadioButton.js → Radio.js} +24 -24
  21. package/dist/components/ScrollOnDrag.js +290 -0
  22. package/dist/components/Search.js +1 -0
  23. package/dist/components/Select.js +1 -0
  24. package/dist/components/SiteMenu.js +1 -0
  25. package/dist/components/Text.js +1 -1
  26. package/dist/components/Tile.js +1 -1
  27. package/dist/components/Tooltip.js +38 -20
  28. package/dist/constants/componentProps/borderWidth.js +3 -1
  29. package/dist/constants/componentProps/emojiSize.js +3 -1
  30. package/dist/constants/componentProps/iconFillSize.js +3 -1
  31. package/dist/constants/componentProps/iconSize.js +3 -1
  32. package/dist/constants/componentProps/sizePX.js +3 -1
  33. package/dist/css/components/DatePicker/DatePicker.css +12 -5
  34. package/dist/css/components/Group/Group.css +0 -8
  35. package/dist/css/components/Label/Label.css +0 -19
  36. package/dist/css/components/Modal/Modal.css +3 -3
  37. package/dist/css/components/{Fader/Fader.css → Overlay/Overlay.css} +10 -10
  38. package/dist/css/components/{RadioButton/RadioButton.css → Radio/Radio.css} +11 -10
  39. package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +6 -0
  40. package/dist/css/components/Title/Title.css +9 -0
  41. package/dist/stories/ModalConfirm.stories.js +1 -1
  42. package/dist/stories/ModalDefault.stories.js +1 -1
  43. package/dist/stories/{RadioButton.stories.js → Radio.stories.js} +5 -5
  44. package/package.json +2 -1
@@ -1,26 +1,26 @@
1
- .fader {
1
+ .overlay {
2
2
  width: 100%;
3
3
  height: 100%;
4
- background: var(--fader-fill);
4
+ background: var(--overlay-fill);
5
5
  position: absolute;
6
6
  left: 0;
7
7
  top: 0;
8
8
  z-index: 1;
9
- backdrop-filter: blur(var(--fader-blur, 10px));
9
+ backdrop-filter: blur(var(--overlay-blur, 10px));
10
10
  }
11
- .fader {
11
+ .overlay {
12
12
  &&_state {
13
13
  &_visible {
14
14
  position: fixed;
15
15
  visibility: visible !important;
16
- animation-name: faderFadeIn;
16
+ animation-name: overlayFadeIn;
17
17
  }
18
18
  &_hidden {
19
- animation-name: faderFaderOut;
19
+ animation-name: overlayFaderOut;
20
20
  }
21
21
  }
22
22
  }
23
- @keyframes faderFadeIn {
23
+ @keyframes overlayFadeIn {
24
24
  from {
25
25
  opacity: 0%;
26
26
  }
@@ -28,7 +28,7 @@
28
28
  opacity: 100%;
29
29
  }
30
30
  }
31
- @keyframes faderFaderOut {
31
+ @keyframes overlayFaderOut {
32
32
  from {
33
33
  opacity: 100%;
34
34
  }
@@ -36,8 +36,8 @@
36
36
  opacity: 0%;
37
37
  }
38
38
  }
39
- .fader {
39
+ .overlay {
40
40
  &&_type_click {
41
- opacity: 0;
41
+ opacity: 0%;
42
42
  }
43
43
  }
@@ -1,11 +1,11 @@
1
- .radio-button {
1
+ .radio {
2
2
  display: grid;
3
3
  grid-template-columns: auto 1fr;
4
4
  grid-template-rows: auto auto;
5
5
  column-gap: 4px;
6
6
  &:hover {
7
7
  ^&__state {
8
- border-color: var(--radio-button-state-border-hover);
8
+ border-color: var(--radio-state-border-hover);
9
9
  }
10
10
  }
11
11
  &__item {
@@ -32,7 +32,7 @@
32
32
  z-index: 3;
33
33
  cursor: pointer;
34
34
  appearance: none;
35
- &:disabled + .radio-button__state {
35
+ &:disabled + .radio__state {
36
36
  border-color: transparent !important;
37
37
  }
38
38
  }
@@ -42,7 +42,7 @@
42
42
  z-index: 1;
43
43
  &_shape {
44
44
  &_rounded {
45
- border-radius: var(--radio-button-shape-rounded, 4px);
45
+ border-radius: var(--radio-shape-rounded, 4px);
46
46
  position: relative;
47
47
  overflow: hidden;
48
48
  }
@@ -66,11 +66,11 @@
66
66
  }
67
67
  }
68
68
  }
69
- .radio-button {
69
+ .radio {
70
70
  &_shape {
71
71
  &_rounded {
72
72
  ^^&__item {
73
- border-radius: var(--radio-button-item-shape-rounded, 4px);
73
+ border-radius: var(--radio-item-shape-rounded, 4px);
74
74
  position: relative;
75
75
  overflow: hidden;
76
76
  }
@@ -84,20 +84,21 @@
84
84
  }
85
85
  }
86
86
  }
87
- .radio-button {
87
+ .radio {
88
88
  &_checkmark {
89
89
  &_fill {
90
90
  @each $type in accent, primary, secondary, tertiary, surface, success, error {
91
91
  &_$(type) {
92
92
  &-item {
93
- @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled, hover {
93
+ @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent,
94
+ disabled, hover {
94
95
  &-$(color) {
95
96
  & ^^^^^&__input {
96
97
  &:checked {
97
98
  & ~ ^^^^^^^&__state {
98
99
  &-checkmark {
99
- display: block;
100
100
  background: var(--color-$(type)-item-$(color));
101
+ display: block;
101
102
  }
102
103
  }
103
104
  }
@@ -111,5 +112,5 @@
111
112
  }
112
113
  }
113
114
  :root {
114
- --radio-button-state-border-hover: var(--color-surface-border-tertiary);
115
+ --radio-state-border-hover: var(--color-surface-border-tertiary);
115
116
  }
@@ -0,0 +1,6 @@
1
+ .scrolldrag {
2
+ white-space: nowrap;
3
+ padding: 0 5px;
4
+ display: inline-block;
5
+ overflow: scroll hidden;
6
+ }
@@ -93,3 +93,12 @@
93
93
  }
94
94
  }
95
95
  }
96
+ .title {
97
+ &.text-style {
98
+ &_italic {
99
+ ^^&__wrapper {
100
+ font-style: italic;
101
+ }
102
+ }
103
+ }
104
+ }
@@ -15,7 +15,7 @@ export default {
15
15
  export const Default = {
16
16
  args: {
17
17
  isOpen: true,
18
- isFader: true,
18
+ isOverlay: true,
19
19
  isOutsideClose: true,
20
20
  shape: 'rounded',
21
21
  elevation: 8,
@@ -13,7 +13,7 @@ export default {
13
13
  export const Default = {
14
14
  args: {
15
15
  isOpen: true,
16
- isFader: true,
16
+ isOverlay: true,
17
17
  isOutsideClose: true,
18
18
  shape: 'rounded',
19
19
  elevation: 8,
@@ -1,13 +1,13 @@
1
- import { RadioButton, radioButtonConfig } from '@itcase/ui/components/RadioButton'
2
- import radioButtonState from 'src/components/RadioButton/state.json'
1
+ import { Radio, radioConfig } from '@itcase/ui/components/Radio'
2
+ import radioState from 'src/components/Radio/state.json'
3
3
 
4
4
  import { shapeProps, textColorProps, textSizeProps } from '@itcase/ui/constants'
5
5
 
6
- radioButtonConfig.setState(radioButtonState)
6
+ radioConfig.setState(radioState)
7
7
 
8
8
  export default {
9
- title: 'Atoms / RadioButton',
10
- component: RadioButton,
9
+ title: 'Atoms / Radio',
10
+ component: Radio,
11
11
  argTypes: {
12
12
  advancedProps: { control: 'boolean' },
13
13
  className: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -58,6 +58,7 @@
58
58
  "react-otp-input": "^3.1.1",
59
59
  "react-paginate": "^8.2.0",
60
60
  "react-responsive": "^9.0.2",
61
+ "react-scroll-ondrag": "^3.0.1",
61
62
  "react-scrollbars-custom": "^4.1.1",
62
63
  "react-select": "^5.8.0",
63
64
  "swiper": "^11.0.7",