@commercetools-frontend/experimental-components 5.0.1 → 5.0.3

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/styles.css CHANGED
@@ -1,6 +1,86 @@
1
- /* imported from search-input.module.css */
1
+ /* imported from required-indicator.module.css */
2
+
3
+ .required-indicator-module__colored____YUFm {
4
+ color: var(--color-warning);
5
+ }
2
6
 
3
- /* @redesign cleanup */
7
+ .required-indicator-module__indicatorAsterisk___3lEdX {
8
+ font-style: normal;
9
+ margin-left: 2px;
10
+ }
11
+ /* imported from throttled-field.module.css */
12
+
13
+ .throttled-field-module__size___324jx {
14
+ width: 100%;
15
+ }
16
+
17
+ .throttled-field-module__size___324jx {
18
+ min-height: var(--height-for-input);
19
+ }
20
+
21
+ .throttled-field-module__input-text___3zFFp {
22
+ transition: 0.2s ease;
23
+ border-radius: 6px;
24
+ border-style: solid;
25
+ border-width: 1px;
26
+ color: var(--color-solid);
27
+ font-weight: 500;
28
+ font-size: 1rem;
29
+ font-family: 'Open Sans', sans-serif !important;
30
+ padding: 7.5px 10px;
31
+ outline: none;
32
+ box-shadow: none;
33
+ appearance: none;
34
+ }
35
+
36
+ .throttled-field-module__input-secondary___cFo9e {
37
+ background-color: var(--color-neutral-95);
38
+ border-color: var(--color-surface);
39
+ width: 100%;
40
+ }
41
+
42
+ .throttled-field-module__input-primary___26G3R {
43
+ border-color: var(--color-neutral);
44
+ background-color: var(--color-surface);
45
+ }
46
+
47
+ .throttled-field-module__textarea___3ZNEs {
48
+ width: 100%;
49
+ min-height: 36px;
50
+ resize: vertical;
51
+ }
52
+
53
+ .throttled-field-module__textarea-primary___24Wwt {
54
+ border-color: var(--color-neutral);
55
+ background-color: var(--color-surface);
56
+ }
57
+
58
+ .throttled-field-module__textarea-secondary___2rmFG {
59
+ background-color: var(--color-neutral-95);
60
+ border-color: var(--color-surface);
61
+ width: 100%;
62
+ }
63
+
64
+ .throttled-field-module__invalid___1yZLW {
65
+ /* this needs !important because react-select has a :focus style that
66
+ stops the border colour being set unless the element is blurred */
67
+ border-color: var(--color-error) !important;
68
+ border: 1px solid;
69
+ }
70
+
71
+ .throttled-field-module__disabled___qVj79 {
72
+ cursor: not-allowed;
73
+ background-color: var(--color-accent-98);
74
+ color: var(--color-solid);
75
+ opacity: 1; /* fix for mobile safari */
76
+ }
77
+
78
+ .throttled-field-module__granular___2LXJf {
79
+ border-top-left-radius: 0;
80
+ border-bottom-left-radius: 0;
81
+ margin-left: 0;
82
+ }
83
+ /* imported from search-input.module.css */
4
84
 
5
85
  .search-input-module__block___1uM-y {
6
86
  display: inline-flex;
@@ -15,20 +95,12 @@
15
95
  flex-grow: 1;
16
96
  }
17
97
 
18
- :where(html[data-theme='default']) .search-input-module__input-container___mJnyZ {
19
- height: var(--spacing-xl);
20
- }
21
-
22
- :where(html[data-theme='default']) .search-input-module__input-container___mJnyZ {
23
- border-color: var(--color-neutral-60);
24
- }
25
-
26
- :where(html[data-theme='test']) .search-input-module__input-container___mJnyZ {
98
+ .search-input-module__input-container___mJnyZ {
27
99
  border-color: var(--border-color-for-input);
28
100
  height: var(--height-for-input);
29
101
  }
30
102
 
31
- :where(html[data-theme='test']) .search-input-module__input-container___mJnyZ > input::placeholder {
103
+ .search-input-module__input-container___mJnyZ > input::placeholder {
32
104
  font-weight: var(--font-weight-400);
33
105
  font-size: var(--font-size-for-input);
34
106
  font-family: var(--font-family);
@@ -43,14 +115,11 @@
43
115
  border-color: var(--color-neutral);
44
116
  }
45
117
 
46
- :where(html[data-theme='default']) .search-input-module__input-container-hoverable___1xjqn > input:hover {
47
- border-color: var(--color-primary);
48
- }
49
- :where(html[data-theme='test']) .search-input-module__input-container-hoverable___1xjqn > input:hover {
118
+ .search-input-module__input-container-hoverable___1xjqn > input:hover {
50
119
  border: var(--border-width-for-input) solid var(--border-color-for-input);
51
120
  background-color: var(--background-color-for-input-when-hovered);
52
121
  }
53
- :where(html[data-theme='test']) .search-input-module__input-container-hoverable___1xjqn > input:focus {
122
+ .search-input-module__input-container-hoverable___1xjqn > input:focus {
54
123
  box-shadow: var(
55
124
  --shadow-for-input-when-focused,
56
125
  inset 0 0 0 1px var(--color-primary)
@@ -58,24 +127,10 @@
58
127
  border-color: var(--border-color-for-input-when-focused);
59
128
  }
60
129
 
61
- :where(html[data-theme='default']) .search-input-module__input-container-granular___33Pm- {
62
- right: 6px;
63
- }
64
- :where(html[data-theme='test']) .search-input-module__input-container-granular___33Pm- {
65
- right: 3px;
66
- }
67
-
68
130
  .search-input-module__input-container-granular___33Pm- {
69
131
  border-color: var(--color-primary);
70
132
  position: relative;
71
- }
72
-
73
- :where(html[data-theme='default']) .search-input-module__search-icon-container___cbHQY {
74
- top: 5px;
75
- }
76
-
77
- :where(html[data-theme='test']) .search-input-module__search-icon-container___cbHQY {
78
- top: 8px;
133
+ right: 3px;
79
134
  }
80
135
 
81
136
  .search-input-module__search-icon-container___cbHQY {
@@ -83,18 +138,10 @@
83
138
  border-color: transparent;
84
139
  position: absolute;
85
140
  right: 9px;
86
- }
87
-
88
- :where(html[data-theme='default']) .search-input-module__clear-icon-container___3RQvu {
89
- background-color: transparent;
90
- border-color: transparent;
91
- position: absolute;
92
- right: 36px;
93
141
  top: 8px;
94
- z-index: 2;
95
142
  }
96
143
 
97
- :where(html[data-theme='test']) .search-input-module__clear-icon-container___3RQvu {
144
+ .search-input-module__clear-icon-container___3RQvu {
98
145
  background-color: transparent;
99
146
  border-color: transparent;
100
147
  position: absolute;
@@ -123,29 +170,9 @@
123
170
  flex-shrink: 1;
124
171
  margin-left: var(--spacing-s);
125
172
  }
126
- /* imported from required-indicator.module.css */
127
-
128
- .required-indicator-module__colored____YUFm {
129
- color: var(--color-warning);
130
- }
131
-
132
- .required-indicator-module__indicatorAsterisk___3lEdX {
133
- font-style: normal;
134
- margin-left: 2px;
135
- }
136
173
  /* imported from selectable-field-search-input.module.css */
137
174
 
138
- /* @redesign cleanup */
139
-
140
- :where(html[data-theme='default']) .selectable-field-search-input-module__container___z2ltR {
141
- width: 100%;
142
- position: relative;
143
- display: flex;
144
- z-index: 3;
145
- max-width: 800px;
146
- }
147
-
148
- :where(html[data-theme='test']) .selectable-field-search-input-module__container___z2ltR {
175
+ .selectable-field-search-input-module__container___z2ltR {
149
176
  width: 100%;
150
177
  position: relative;
151
178
  display: flex;
@@ -234,81 +261,41 @@
234
261
  .numeric-format-input-module__disabled___hb6h4 {
235
262
  cursor: not-allowed;
236
263
  }
237
- /* imported from throttled-field.module.css */
238
-
239
- .throttled-field-module__size___324jx {
240
- width: 100%;
241
- }
242
-
243
- :where(html[data-theme='default']) .throttled-field-module__size___324jx {
244
- height: inherit;
245
- }
246
-
247
- :where(html[data-theme='test']) .throttled-field-module__size___324jx {
248
- min-height: var(--height-for-input);
249
- }
250
-
251
- .throttled-field-module__input-text___3zFFp {
252
- transition: 0.2s ease;
253
- border-radius: 6px;
254
- border-style: solid;
255
- border-width: 1px;
256
- color: var(--color-solid);
257
- font-weight: 500;
258
- font-size: 1rem;
259
- font-family: 'Open Sans', sans-serif !important;
260
- padding: 7.5px 10px;
261
- outline: none;
262
- box-shadow: none;
263
- appearance: none;
264
- }
264
+ /* imported from file-input.module.css */
265
265
 
266
- .throttled-field-module__input-secondary___cFo9e {
267
- background-color: var(--color-neutral-95);
268
- border-color: var(--color-surface);
269
- width: 100%;
270
- }
266
+ /** Button */
271
267
 
272
- .throttled-field-module__input-primary___26G3R {
273
- border-color: var(--color-neutral);
268
+ .file-input-module__button___2KypN {
269
+ display: inline-flex;
274
270
  background-color: var(--color-surface);
271
+ border: var(--border-for-button-as-secondary);
272
+ box-shadow: none;
273
+ border-radius: var(--border-radius-4);
274
+ color: var(--color-solid);
275
+ height: var(--height-for-button-as-big);
276
+ font-size: var(--font-size-20);
277
+ font-weight: var(--font-weight-500);
278
+ align-items: center;
279
+ transition: background-color var(--transition-linear-80ms);
280
+ padding: 0 var(--spacing-m);
275
281
  }
276
282
 
277
- .throttled-field-module__textarea___3ZNEs {
278
- width: 100%;
279
- min-height: 36px;
280
- resize: vertical;
283
+ .file-input-module__button___2KypN:hover,
284
+ .file-input-module__button___2KypN:focus {
285
+ cursor: pointer;
286
+ background-color: var(--background-color-for-button-when-hovered);
287
+ box-shadow: none;
281
288
  }
282
289
 
283
- .throttled-field-module__textarea-primary___24Wwt {
284
- border-color: var(--color-neutral);
290
+ .file-input-module__button___2KypN:active {
291
+ box-shadow: var(--shadow-9);
285
292
  background-color: var(--color-surface);
286
293
  }
287
294
 
288
- .throttled-field-module__textarea-secondary___2rmFG {
289
- background-color: var(--color-neutral-95);
290
- border-color: var(--color-surface);
291
- width: 100%;
292
- }
293
-
294
- .throttled-field-module__invalid___1yZLW {
295
- /* this needs !important because react-select has a :focus style that
296
- stops the border colour being set unless the element is blurred */
297
- border-color: var(--color-error) !important;
298
- border: 1px solid;
299
- }
300
-
301
- .throttled-field-module__disabled___qVj79 {
302
- cursor: not-allowed;
303
- background-color: var(--color-accent-98);
304
- color: var(--color-solid);
305
- opacity: 1; /* fix for mobile safari */
306
- }
307
-
308
- .throttled-field-module__granular___2LXJf {
309
- border-top-left-radius: 0;
310
- border-bottom-left-radius: 0;
311
- margin-left: 0;
295
+ .file-input-module__input___3MP4D {
296
+ visibility: hidden;
297
+ width: 1px;
298
+ height: 1px;
312
299
  }
313
300
  /* imported from button.module.css */
314
301
 
@@ -513,80 +500,15 @@
513
500
  .button-module__add-button___1f093 {
514
501
  min-height: 32px;
515
502
  }
516
- /* imported from file-input.module.css */
517
-
518
- /** Button */
519
-
520
- .file-input-module__button___2KypN {
521
- display: inline-flex;
522
- background-color: var(--color-surface);
523
- color: var(--color-solid);
524
- font-size: 1rem;
525
- align-items: center;
526
- transition: background-color var(--transition-linear-80ms);
527
- box-shadow: var(--shadow-7);
528
- padding: 0 var(--spacing-m);
529
- height: var(--big-button-height);
530
- border-radius: var(--border-radius-6);
531
- }
532
-
533
- :where(html[data-theme='test']) .file-input-module__button___2KypN {
534
- border: var(--border-for-button-as-secondary);
535
- box-shadow: none;
536
- border-radius: var(--border-radius-4);
537
- height: var(--height-for-button-as-big);
538
- font-size: 14px;
539
- font-weight: 500;
540
- }
541
-
542
- .file-input-module__button___2KypN:hover,
543
- .file-input-module__button___2KypN:focus {
544
- cursor: pointer;
545
- box-shadow: var(--shadow-8);
546
- }
547
-
548
- :where(html[data-theme='test']) .file-input-module__button___2KypN:hover,
549
- :where(html[data-theme='test']) .file-input-module__button___2KypN:focus {
550
- background-color: var(--background-color-for-button-when-hovered);
551
- box-shadow: none;
552
- }
553
-
554
- .file-input-module__button___2KypN:active {
555
- box-shadow: var(--shadow-9);
556
- background-color: var(--color-surface);
557
- }
558
-
559
- .file-input-module__input___3MP4D {
560
- visibility: hidden;
561
- width: 1px;
562
- height: 1px;
563
- }
564
- /* imported from centered-loading-spinner.module.css */
565
-
566
- .centered-loading-spinner-module__loading-container___3_9-h {
567
- height: 100%;
568
- display: flex;
569
- flex-grow: 1;
570
- align-items: center;
571
- justify-content: center;
572
- }
573
503
  /* imported from divider.module.css */
574
504
 
575
- html[data-theme='test'] {
576
- --border-top-color-for-divider-size-m: var(--color-neutral-90);
577
- --border-top-color-for-divider-size-s: var(--color-neutral-90);
578
- }
579
- html[data-theme='default'] {
580
- --border-top-color-for-divider-size-m: var(--color-neutral-60);
581
- --border-top-color-for-divider-size-s: var(--color-neutral);
582
- }
583
-
584
505
  .divider-module__divider___4-vdy {
585
506
  box-sizing: border-box;
586
507
  width: 100%;
587
508
  margin: 0;
588
509
  border: 0;
589
510
  border-top-width: 1px;
511
+ border-top-color: var(--color-neutral-90);
590
512
  }
591
513
 
592
514
  .divider-module__divider-solid___3Fs4q {
@@ -596,13 +518,14 @@ html[data-theme='default'] {
596
518
  .divider-module__divider-dashed___2Em8A {
597
519
  border-style: dashed;
598
520
  }
521
+ /* imported from centered-loading-spinner.module.css */
599
522
 
600
- .divider-module__size_s___3aoIW {
601
- border-top-color: var(--border-top-color-for-divider-size-s);
602
- }
603
-
604
- .divider-module__size_m___LM34Z {
605
- border-top-color: var(--border-top-color-for-divider-size-m);
523
+ .centered-loading-spinner-module__loading-container___3_9-h {
524
+ height: 100%;
525
+ display: flex;
526
+ flex-grow: 1;
527
+ align-items: center;
528
+ justify-content: center;
606
529
  }
607
530
  /* imported from reference-search.module.css */
608
531
 
@@ -630,30 +553,26 @@ html[data-theme='default'] {
630
553
  padding-top: var(--spacing-xs);
631
554
  }
632
555
 
633
- :where(html[data-theme='default']) .set-buttons-module__gap___38Qr0 {
634
- padding: 12px;
635
- }
636
-
637
- :where(html[data-theme='test']) .set-buttons-module__gap___38Qr0 {
556
+ .set-buttons-module__gap___38Qr0 {
638
557
  padding: 20px;
639
558
  }
640
- /* imported from platform-limits-customers-status.module.css */
559
+ /* imported from platform-limits-customer-groups-status.module.css */
641
560
 
642
- .platform-limits-customers-status-module__status___3rXYM {
561
+ .platform-limits-customer-groups-status-module__status___6099G {
643
562
  min-width: max-content;
644
563
  }
645
- /* imported from platform-limits-customers-combined.module.css */
564
+ /* imported from platform-limits-customer-groups-combined.module.css */
646
565
 
647
- .platform-limits-customers-combined-module__combined___OszDd {
566
+ .platform-limits-customer-groups-combined-module__combined___WjRoI {
648
567
  margin-bottom: var(--spacing-s);
649
568
  }
650
- /* imported from platform-limits-customer-groups-status.module.css */
569
+ /* imported from platform-limits-customers-status.module.css */
651
570
 
652
- .platform-limits-customer-groups-status-module__status___6099G {
571
+ .platform-limits-customers-status-module__status___3rXYM {
653
572
  min-width: max-content;
654
573
  }
655
- /* imported from platform-limits-customer-groups-combined.module.css */
574
+ /* imported from platform-limits-customers-combined.module.css */
656
575
 
657
- .platform-limits-customer-groups-combined-module__combined___WjRoI {
576
+ .platform-limits-customers-combined-module__combined___OszDd {
658
577
  margin-bottom: var(--spacing-s);
659
578
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/experimental-components",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "description": "",
5
5
  "main": "dist/commercetools-frontend-experimental-components.cjs.js",
6
6
  "module": "dist/commercetools-frontend-experimental-components.esm.js",
@@ -13,14 +13,14 @@
13
13
  "@babel/core": "^7.21.0",
14
14
  "@babel/runtime-corejs3": "^7.21.0",
15
15
  "@babel/runtime": "^7.21.0",
16
- "@commercetools-frontend/actions-global": "^22.2.1",
17
- "@commercetools-frontend/application-components": "^22.2.1",
18
- "@commercetools-frontend/application-shell-connectors": "^22.2.1",
19
- "@commercetools-frontend/application-shell": "^22.2.1",
20
- "@commercetools-frontend/constants": "^22.2.1",
21
- "@commercetools-frontend/l10n": "^22.2.1",
22
- "@commercetools-frontend/sdk": "^22.2.1",
23
- "@commercetools-frontend/sentry": "^22.2.1",
16
+ "@commercetools-frontend/actions-global": "^22.3.0",
17
+ "@commercetools-frontend/application-components": "^22.3.0",
18
+ "@commercetools-frontend/application-shell-connectors": "^22.3.0",
19
+ "@commercetools-frontend/application-shell": "^22.3.0",
20
+ "@commercetools-frontend/constants": "^22.3.0",
21
+ "@commercetools-frontend/l10n": "^22.3.0",
22
+ "@commercetools-frontend/sdk": "^22.3.0",
23
+ "@commercetools-frontend/sentry": "^22.3.0",
24
24
  "@commercetools-frontend/ui-kit": "^16.0.0",
25
25
  "@commercetools-uikit/design-system": "^16.0.0",
26
26
  "@commercetools-uikit/select-utils": "^16.0.0",
@@ -31,7 +31,7 @@
31
31
  "common-tags": "1.8.2",
32
32
  "debounce-promise": "3.1.2",
33
33
  "fast-equals": "4.0.3",
34
- "formik": "2.2.9",
34
+ "formik": "2.4.2",
35
35
  "hoist-non-react-statics": "3.3.2",
36
36
  "lodash": "4.17.21",
37
37
  "memoize-one": "6.0.0",
@@ -44,6 +44,7 @@
44
44
  "reselect": "4.1.8",
45
45
  "tiny-invariant": "1.3.1",
46
46
  "tiny-warning": "1.0.3",
47
+ "typescript": "4.9.5",
47
48
  "uuid": "9.0.0"
48
49
  },
49
50
  "devDependencies": {
@@ -65,7 +66,7 @@
65
66
  "react-test-renderer": "^17.0.2",
66
67
  "react": "^17.0.2",
67
68
  "redux": "^4.2.1",
68
- "typescript": "^4.9.5",
69
+ "typescript": "^5.1.3",
69
70
  "xhr-mock": "^2.5.1",
70
71
  "@commercetools-local/test-data": "1.1.0",
71
72
  "@commercetools-local/test-utils": "1.1.0"