@itcase/ui 1.0.10 → 1.0.13

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 (41) hide show
  1. package/dist/components/Avatar.js +4 -2
  2. package/dist/components/Chips.js +2 -0
  3. package/dist/components/Choice.js +118 -0
  4. package/dist/components/DatePicker.js +10201 -0
  5. package/dist/components/Empty.js +95 -0
  6. package/dist/components/FormField.js +1 -1
  7. package/dist/components/Grid.js +8 -14
  8. package/dist/components/Input.js +2 -0
  9. package/dist/components/Label.js +0 -5
  10. package/dist/components/Logo.js +4 -4
  11. package/dist/components/Modal.js +3 -3
  12. package/dist/components/RangeSlider.js +7 -1978
  13. package/dist/components/Scrollbar.js +5 -3826
  14. package/dist/components/Search.js +4 -5
  15. package/dist/components/Segmented.js +5 -1
  16. package/dist/components/Select.js +348 -270
  17. package/dist/components/Swiper.js +4208 -188
  18. package/dist/components/Switch.js +3 -2
  19. package/dist/components/Tab.js +0 -1
  20. package/dist/components/Textarea.js +5 -1
  21. package/dist/components/Tile.js +0 -3
  22. package/dist/css/components/Choice/Choice.css +73 -0
  23. package/dist/css/components/DatePicker/DatePicker.css +924 -0
  24. package/dist/css/components/Empty/Empty.css +13 -0
  25. package/dist/css/components/Input/Input.css +12 -4
  26. package/dist/css/components/Segmented/Segmented.css +16 -0
  27. package/dist/css/components/Select/Select.css +11 -4
  28. package/dist/css/components/Select/css/__menu/select__menu.css +7 -3
  29. package/dist/css/components/Swiper/Swiper.css +128 -83
  30. package/dist/css/styles/fill/fill.css +4 -4
  31. package/dist/css/styles/fill/fill_active.css +5 -5
  32. package/dist/defineProperty-f9e5e1f3.js +166 -0
  33. package/dist/hooks/styleAttributes.js +5 -1
  34. package/package.json +30 -27
  35. package/dist/components/Emoji.js +0 -124
  36. package/dist/components/Profile.js +0 -105
  37. package/dist/css/components/Emoji/Emoji.css +0 -104
  38. package/dist/css/components/Emoji/css/__icon/emoji__icon-shape.css +0 -12
  39. package/dist/css/components/Emoji/css/__icon/emoji__icon.css +0 -5
  40. package/dist/css/components/Profile/Profile.css +0 -19
  41. package/dist/objectWithoutProperties-ea190611.js +0 -188
@@ -0,0 +1,13 @@
1
+ .empty {
2
+ display: flex;
3
+ flex-flow: column nowrap;
4
+ justify-content: center;
5
+ align-items: center;
6
+ gap: 32px;
7
+ &__message {
8
+ text-align: center;
9
+ }
10
+ &__button {
11
+ margin-top: auto;
12
+ }
13
+ }
@@ -7,18 +7,26 @@
7
7
  box-shadow: none;
8
8
  outline: 0;
9
9
  position: relative;
10
+ caret-color: var(--input-caret-color);
10
11
  &:focus {
11
12
  outline: none;
12
13
  }
14
+ &:hover {
15
+ border: solid 1px var(--input-state-hover-border);
16
+ background: var(--input-state-hover-background);
17
+ }
13
18
  &&_state {
14
19
  &_success {
15
- border: solid 1px var(--color-success-border-primary);
20
+ border: solid 1px var(--input-state-success-border);
21
+ background: var(--input-state-success-background);
16
22
  }
17
23
  &_error {
18
- border: solid 1px var(--color-error-border-primary);
24
+ border: solid 1px var(--input-state-error-border);
25
+ background: var(--input-state-error-background);
19
26
  }
20
27
  &_focus {
21
- background: var(--color-surface-primary);
28
+ border: solid 1px var(--input-state-focus-border);
29
+ background: var(--input-state-focus-background);
22
30
  }
23
31
  }
24
32
  }
@@ -38,7 +46,7 @@
38
46
  }
39
47
  .input {
40
48
  &&_size {
41
- @each $size in xs, s, m, l, xl, xxl {
49
+ @each $size in xs, s, m, l, xl, xxl, normal, tiny, compact, large {
42
50
  &_$(size) {
43
51
  padding: var(--input-size-$(size)-padding);
44
52
  }
@@ -93,3 +93,19 @@
93
93
  }
94
94
  }
95
95
  }
96
+ .segmented {
97
+ &_width {
98
+ &_fill {
99
+ width: 100%;
100
+ ^^&__wrapper {
101
+ flex: 1;
102
+ &-inner {
103
+ flex: 1;
104
+ ^^^^&__item {
105
+ flex: 1;
106
+ }
107
+ }
108
+ }
109
+ }
110
+ }
111
+ }
@@ -40,7 +40,10 @@
40
40
  padding: var(--select-size-$(size)-padding);
41
41
  }
42
42
  ^^&__menu {
43
- &-notice {
43
+ &-notice {
44
+ padding: var(--select-size-$(size)-padding);
45
+ }
46
+ &-group-heading {
44
47
  padding: var(--select-size-$(size)-padding);
45
48
  }
46
49
  }
@@ -150,20 +153,24 @@
150
153
  left: 0;
151
154
  top: 100%;
152
155
  z-index: 100000;
156
+ &-group-heading {
157
+ z-index: 100000;
158
+ }
153
159
  &-list {
154
160
  overflow-y: scroll;
155
161
  max-height: 240px;
156
162
  &-item {
157
163
  width: 100%;
164
+ &_option {
165
+ z-index: 100000;
166
+ }
158
167
  }
168
+
159
169
  &--is-multi {
160
170
  ^^^&__option {
161
171
  &--is-selected {
162
172
  }
163
173
  &--is-focused {
164
- background: none !important;
165
- /* display: flex;
166
- justify-content: center; */
167
174
  &:hover {
168
175
  background: #eee;
169
176
  cursor: pointer;
@@ -7,20 +7,24 @@
7
7
  left: 0;
8
8
  top: 100%;
9
9
  z-index: 100000;
10
+ &-group-heading {
11
+ z-index: 100000;
12
+ }
10
13
  &-list {
11
14
  overflow-y: scroll;
12
15
  max-height: 240px;
13
16
  &-item {
14
17
  width: 100%;
18
+ &_option {
19
+ z-index: 100000;
20
+ }
15
21
  }
22
+
16
23
  &--is-multi {
17
24
  ^^^&__option {
18
25
  &--is-selected {
19
26
  }
20
27
  &--is-focused {
21
- background: none !important;
22
- /* display: flex;
23
- justify-content: center; */
24
28
  &:hover {
25
29
  background: #eee;
26
30
  cursor: pointer;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Swiper 9.4.1
2
+ * Swiper 10.0.4
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: June 13, 2023
10
+ * Released on: July 8, 2023
11
11
  */
12
12
 
13
13
  /* FONT_START */
@@ -29,12 +29,20 @@
29
29
  */
30
30
  }
31
31
 
32
- .swiper,
33
- swiper-container {
32
+ :host {
33
+ position: relative;
34
+ display: block;
35
+ margin-left: auto;
36
+ margin-right: auto;
37
+ z-index: 1;
38
+ }
39
+
40
+ .swiper {
34
41
  margin-left: auto;
35
42
  margin-right: auto;
36
43
  position: relative;
37
44
  overflow: hidden;
45
+ overflow: clip;
38
46
  list-style: none;
39
47
  padding: 0;
40
48
  /* Fix of Webkit flickering */
@@ -58,6 +66,7 @@ swiper-container {
58
66
  }
59
67
 
60
68
  .swiper-android .swiper-slide,
69
+ .swiper-ios .swiper-slide,
61
70
  .swiper-wrapper {
62
71
  transform: translate3d(0px, 0, 0);
63
72
  }
@@ -70,8 +79,7 @@ swiper-container {
70
79
  touch-action: pan-x;
71
80
  }
72
81
 
73
- .swiper-slide,
74
- swiper-slide {
82
+ .swiper-slide {
75
83
  flex-shrink: 0;
76
84
  width: 100%;
77
85
  height: 100%;
@@ -117,49 +125,10 @@ swiper-slide {
117
125
  }
118
126
 
119
127
  .swiper-3d .swiper-slide,
120
- .swiper-3d .swiper-slide-shadow,
121
- .swiper-3d .swiper-slide-shadow-left,
122
- .swiper-3d .swiper-slide-shadow-right,
123
- .swiper-3d .swiper-slide-shadow-top,
124
- .swiper-3d .swiper-slide-shadow-bottom,
125
128
  .swiper-3d .swiper-cube-shadow {
126
129
  transform-style: preserve-3d;
127
130
  }
128
131
 
129
- .swiper-3d .swiper-slide-shadow,
130
- .swiper-3d .swiper-slide-shadow-left,
131
- .swiper-3d .swiper-slide-shadow-right,
132
- .swiper-3d .swiper-slide-shadow-top,
133
- .swiper-3d .swiper-slide-shadow-bottom {
134
- position: absolute;
135
- left: 0;
136
- top: 0;
137
- width: 100%;
138
- height: 100%;
139
- pointer-events: none;
140
- z-index: 10;
141
- }
142
-
143
- .swiper-3d .swiper-slide-shadow {
144
- background: rgba(0, 0, 0, 0.15);
145
- }
146
-
147
- .swiper-3d .swiper-slide-shadow-left {
148
- background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
149
- }
150
-
151
- .swiper-3d .swiper-slide-shadow-right {
152
- background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
153
- }
154
-
155
- .swiper-3d .swiper-slide-shadow-top {
156
- background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
157
- }
158
-
159
- .swiper-3d .swiper-slide-shadow-bottom {
160
- background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
161
- }
162
-
163
132
  /* CSS Mode */
164
133
 
165
134
  .swiper-css-mode > .swiper-wrapper {
@@ -178,11 +147,11 @@ swiper-slide {
178
147
  scroll-snap-align: start start;
179
148
  }
180
149
 
181
- .swiper-horizontal.swiper-css-mode > .swiper-wrapper {
150
+ .swiper-css-mode.swiper-horizontal > .swiper-wrapper {
182
151
  scroll-snap-type: x mandatory;
183
152
  }
184
153
 
185
- .swiper-vertical.swiper-css-mode > .swiper-wrapper {
154
+ .swiper-css-mode.swiper-vertical > .swiper-wrapper {
186
155
  scroll-snap-type: y mandatory;
187
156
  }
188
157
 
@@ -194,37 +163,80 @@ swiper-slide {
194
163
  scroll-snap-align: none;
195
164
  }
196
165
 
197
- .swiper-centered > .swiper-wrapper::before {
166
+ .swiper-css-mode.swiper-centered > .swiper-wrapper::before {
198
167
  content: '';
199
168
  flex-shrink: 0;
200
169
  order: 9999;
201
170
  }
202
171
 
203
- .swiper-centered > .swiper-wrapper > .swiper-slide {
172
+ .swiper-css-mode.swiper-centered > .swiper-wrapper > .swiper-slide {
204
173
  scroll-snap-align: center center;
205
174
  scroll-snap-stop: always;
206
175
  }
207
176
 
208
- .swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {
177
+ .swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {
209
178
  margin-inline-start: var(--swiper-centered-offset-before);
210
179
  }
211
180
 
212
- .swiper-centered.swiper-horizontal > .swiper-wrapper::before {
181
+ .swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper::before {
213
182
  height: 100%;
214
183
  min-height: 1px;
215
184
  width: var(--swiper-centered-offset-after);
216
185
  }
217
186
 
218
- .swiper-centered.swiper-vertical > .swiper-wrapper > .swiper-slide:first-child {
187
+ .swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper > .swiper-slide:first-child {
219
188
  margin-block-start: var(--swiper-centered-offset-before);
220
189
  }
221
190
 
222
- .swiper-centered.swiper-vertical > .swiper-wrapper::before {
191
+ .swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper::before {
223
192
  width: 100%;
224
193
  min-width: 1px;
225
194
  height: var(--swiper-centered-offset-after);
226
195
  }
227
196
 
197
+ /* Slide styles start */
198
+
199
+ /* 3D Shadows */
200
+
201
+ .swiper-3d .swiper-slide-shadow,
202
+ .swiper-3d .swiper-slide-shadow-left,
203
+ .swiper-3d .swiper-slide-shadow-right,
204
+ .swiper-3d .swiper-slide-shadow-top,
205
+ .swiper-3d .swiper-slide-shadow-bottom,
206
+ .swiper-3d .swiper-slide-shadow,
207
+ .swiper-3d .swiper-slide-shadow-left,
208
+ .swiper-3d .swiper-slide-shadow-right,
209
+ .swiper-3d .swiper-slide-shadow-top,
210
+ .swiper-3d .swiper-slide-shadow-bottom {
211
+ position: absolute;
212
+ left: 0;
213
+ top: 0;
214
+ width: 100%;
215
+ height: 100%;
216
+ pointer-events: none;
217
+ z-index: 10;
218
+ }
219
+
220
+ .swiper-3d .swiper-slide-shadow {
221
+ background: rgba(0, 0, 0, 0.15);
222
+ }
223
+
224
+ .swiper-3d .swiper-slide-shadow-left {
225
+ background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
226
+ }
227
+
228
+ .swiper-3d .swiper-slide-shadow-right {
229
+ background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
230
+ }
231
+
232
+ .swiper-3d .swiper-slide-shadow-top {
233
+ background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
234
+ }
235
+
236
+ .swiper-3d .swiper-slide-shadow-bottom {
237
+ background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
238
+ }
239
+
228
240
  .swiper-lazy-preloader {
229
241
  width: 42px;
230
242
  height: 42px;
@@ -242,7 +254,6 @@ swiper-slide {
242
254
  }
243
255
 
244
256
  .swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,
245
- swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,
246
257
  .swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader {
247
258
  animation: swiper-preloader-spin 1s infinite linear;
248
259
  }
@@ -264,6 +275,8 @@ swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,
264
275
  }
265
276
  }
266
277
 
278
+ /* Slide styles end */
279
+
267
280
  .swiper-virtual .swiper-slide {
268
281
  -webkit-backface-visibility: hidden;
269
282
  transform: translateZ(0);
@@ -330,6 +343,37 @@ swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,
330
343
  display: none !important;
331
344
  }
332
345
 
346
+ .swiper-button-prev svg,
347
+ .swiper-button-next svg {
348
+ width: 100%;
349
+ height: 100%;
350
+ object-fit: contain;
351
+ transform-origin: center;
352
+ }
353
+
354
+ .swiper-rtl .swiper-button-prev svg,
355
+ .swiper-rtl .swiper-button-next svg {
356
+ transform: rotate(180deg);
357
+ }
358
+
359
+ .swiper-button-prev,
360
+ .swiper-rtl .swiper-button-next {
361
+ left: var(--swiper-navigation-sides-offset, 10px);
362
+ right: auto;
363
+ }
364
+
365
+ .swiper-button-next,
366
+ .swiper-rtl .swiper-button-prev {
367
+ right: var(--swiper-navigation-sides-offset, 10px);
368
+ left: auto;
369
+ }
370
+
371
+ .swiper-button-lock {
372
+ display: none;
373
+ }
374
+
375
+ /* Navigation font start */
376
+
333
377
  .swiper-button-prev:after,
334
378
  .swiper-button-next:after {
335
379
  font-family: swiper-icons;
@@ -340,12 +384,6 @@ swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,
340
384
  line-height: 1;
341
385
  }
342
386
 
343
- .swiper-button-prev,
344
- .swiper-rtl .swiper-button-next {
345
- left: var(--swiper-navigation-sides-offset, 10px);
346
- right: auto;
347
- }
348
-
349
387
  .swiper-button-prev:after,
350
388
  .swiper-rtl .swiper-button-next:after {
351
389
  content: 'prev';
@@ -362,9 +400,7 @@ swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,
362
400
  content: 'next';
363
401
  }
364
402
 
365
- .swiper-button-lock {
366
- display: none;
367
- }
403
+ /* Navigation font end */
368
404
 
369
405
  :root {
370
406
  /*
@@ -528,8 +564,7 @@ button.swiper-pagination-bullet {
528
564
  transition: 200ms transform, 200ms left;
529
565
  }
530
566
 
531
- .swiper-horizontal.swiper-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet,
532
- :host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
567
+ .swiper-horizontal.swiper-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
533
568
  transition: 200ms transform, 200ms right;
534
569
  }
535
570
 
@@ -544,7 +579,6 @@ button.swiper-pagination-bullet {
544
579
  .swiper-pagination-progressbar {
545
580
  background: var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));
546
581
  position: absolute;
547
- /*ADD_HOST*/
548
582
  }
549
583
 
550
584
  .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
@@ -676,8 +710,7 @@ button.swiper-pagination-bullet {
676
710
 
677
711
  /* a11y */
678
712
 
679
- .swiper .swiper-notification,
680
- swiper-container .swiper-notification {
713
+ .swiper .swiper-notification {
681
714
  position: absolute;
682
715
  left: 0;
683
716
  top: 0;
@@ -748,21 +781,11 @@ swiper-container .swiper-notification {
748
781
 
749
782
  .swiper-cube .swiper-slide-active,
750
783
  .swiper-cube .swiper-slide-next,
751
- .swiper-cube .swiper-slide-prev,
752
- .swiper-cube .swiper-slide-next + .swiper-slide {
784
+ .swiper-cube .swiper-slide-prev {
753
785
  pointer-events: auto;
754
786
  visibility: visible;
755
787
  }
756
788
 
757
- .swiper-cube .swiper-slide-shadow-top,
758
- .swiper-cube .swiper-slide-shadow-bottom,
759
- .swiper-cube .swiper-slide-shadow-left,
760
- .swiper-cube .swiper-slide-shadow-right {
761
- z-index: 0;
762
- -webkit-backface-visibility: hidden;
763
- backface-visibility: hidden;
764
- }
765
-
766
789
  .swiper-cube .swiper-cube-shadow {
767
790
  position: absolute;
768
791
  left: 0;
@@ -784,6 +807,24 @@ swiper-container .swiper-notification {
784
807
  filter: blur(50px);
785
808
  }
786
809
 
810
+ .swiper-cube .swiper-slide-next + .swiper-slide {
811
+ pointer-events: auto;
812
+ visibility: visible;
813
+ }
814
+
815
+ /* Cube slide shadows start */
816
+
817
+ .swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-top,
818
+ .swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-bottom,
819
+ .swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-left,
820
+ .swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-right {
821
+ z-index: 0;
822
+ -webkit-backface-visibility: hidden;
823
+ backface-visibility: hidden;
824
+ }
825
+
826
+ /* Cube slide shadows end */
827
+
787
828
  .swiper-flip {
788
829
  overflow: visible;
789
830
  }
@@ -804,15 +845,19 @@ swiper-container .swiper-notification {
804
845
  pointer-events: auto;
805
846
  }
806
847
 
807
- .swiper-flip .swiper-slide-shadow-top,
808
- .swiper-flip .swiper-slide-shadow-bottom,
809
- .swiper-flip .swiper-slide-shadow-left,
810
- .swiper-flip .swiper-slide-shadow-right {
848
+ /* Flip slide shadows start */
849
+
850
+ .swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-top,
851
+ .swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-bottom,
852
+ .swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-left,
853
+ .swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-right {
811
854
  z-index: 0;
812
855
  -webkit-backface-visibility: hidden;
813
856
  backface-visibility: hidden;
814
857
  }
815
858
 
859
+ /* Flip slide shadows end */
860
+
816
861
  .swiper-creative .swiper-slide {
817
862
  -webkit-backface-visibility: hidden;
818
863
  backface-visibility: hidden;
@@ -17,11 +17,11 @@
17
17
  &_$(type) {
18
18
  &-primary {
19
19
  background: var(--color-$(type)-primary);
20
- @each $opacity in 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 75, 80, 85, 90, 95 {
21
- &$(alpha) {
22
- background: var(--color-$(type)-primary$(opacity));
23
- }
20
+ @each $opacity in 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 75, 80, 85, 90, 95 {
21
+ &$(alpha) {
22
+ background: var(--color-$(type)-primary$(opacity));
24
23
  }
24
+ }
25
25
  }
26
26
  }
27
27
  }
@@ -2,11 +2,9 @@
2
2
  &_active {
3
3
  @each $type in accent, primary, secondary, tertiary, surface, success, error, info, warning {
4
4
  &_$(type) {
5
- @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled, hover {
5
+ @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, active {
6
6
  &-$(color) {
7
- &:hover {
8
- background: var(--color-$(type)-$(color));
9
- }
7
+ background: var(--color-$(type)-$(color));
10
8
  }
11
9
  }
12
10
  }
@@ -14,7 +12,9 @@
14
12
  @each $type in accent, primary, secondary, tertiary, quaternary, quinary, surface, success, error, info, warning {
15
13
  &_$(type) {
16
14
  &-primary {
17
- background: var(--color-$(type)-primary);
15
+ &-active {
16
+ background: var(--color-$(type)-primary-active);
17
+ }
18
18
  }
19
19
  }
20
20
  }