@sc-360-v2/storefront-cms-library 0.3.5 → 0.3.8

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 (52) hide show
  1. package/dist/builder.js +1 -1
  2. package/dist/builder.js.LICENSE.txt +1 -1
  3. package/dist/bulk-order-pad.scss +13 -8
  4. package/dist/button copy.scss +2 -1
  5. package/dist/checkout.scss +141 -16
  6. package/dist/common-element.scss +6 -0
  7. package/dist/confirmationModal.scss +79 -0
  8. package/dist/dropdownTemplate.scss +71 -8
  9. package/dist/employee-bulk-order.scss +547 -0
  10. package/dist/fb-dropdown.scss +124 -0
  11. package/dist/filter-results.scss +324 -0
  12. package/dist/filters.scss +1324 -31
  13. package/dist/form-preview.scss +163 -108
  14. package/dist/functions.js +1 -1
  15. package/dist/globals.scss +6 -0
  16. package/dist/icon-list.scss +11 -11
  17. package/dist/icons.js +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/layouter-pro-item.scss +6 -0
  20. package/dist/layouter-pro.scss +30 -2
  21. package/dist/menu-v2.scss +5 -2
  22. package/dist/modal.scss +13 -6
  23. package/dist/past-orders.scss +770 -26
  24. package/dist/product-actions.scss +254 -393
  25. package/dist/product-basic-elements.scss +12 -12
  26. package/dist/product-options.scss +73 -46
  27. package/dist/quotes.scss +1 -0
  28. package/dist/repeater.scss +5 -2
  29. package/dist/text-temp-v2.scss +2 -2
  30. package/dist/toggle-button.scss +32 -0
  31. package/dist/types/builder/constants/data-connectors.d.ts +55 -0
  32. package/dist/types/builder/elements/form-builder/index.d.ts +15 -0
  33. package/dist/types/builder/elements/product-sizechart/index.d.ts +26 -0
  34. package/dist/types/builder/elements/user-elements/index.d.ts +30 -0
  35. package/dist/types/builder/enums/data-connectors.d.ts +21 -0
  36. package/dist/types/builder/enums/index.d.ts +5 -1
  37. package/dist/types/builder/index.d.ts +4 -1
  38. package/dist/types/builder/tools/element-edit/common.d.ts +8 -0
  39. package/dist/types/builder/tools/element-edit/index.d.ts +3 -1
  40. package/dist/types/builder/tools/element-edit/layouter-pro-item.d.ts +14 -1
  41. package/dist/types/builder/tools/element-edit/layouterPro.d.ts +9 -2
  42. package/dist/types/builder/tools/element-edit/pastOrders.d.ts +61 -1
  43. package/dist/types/builder/tools/element-edit/productActions.d.ts +100 -1
  44. package/dist/types/builder/tools/element-edit/productSizeChart.d.ts +98 -0
  45. package/dist/types/builder/tools/element-edit/profile.d.ts +26 -2
  46. package/dist/types/builder/tools/element-edit/quantitySelector.d.ts +16 -2
  47. package/dist/types/builder/tools/element-edit/userElements.d.ts +555 -0
  48. package/dist/types/global/types.d.ts +2 -1
  49. package/dist/user-elements.scss +1375 -0
  50. package/dist/variant-picker.scss +132 -84
  51. package/dist/widget.scss +5 -0
  52. package/package.json +5 -1
@@ -1 +1 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
1
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
@@ -1,13 +1,6 @@
1
1
  .bulk-order-overlay {
2
- position: fixed;
3
- inset: 0;
4
- background: rgba(30, 28, 44, 0.92);
5
- display: flex;
6
- justify-content: center;
7
- align-items: center;
8
- z-index: 1000;
2
+ height: 100%;
9
3
  }
10
-
11
4
  .bulk-order-container {
12
5
  background: #fff;
13
6
  width: 100%;
@@ -20,6 +13,17 @@
20
13
  padding: 16px 24px;
21
14
  border-bottom: 1px solid #e0e0e0;
22
15
  }
16
+
17
+ .bulkOrderPad-grid {
18
+ height: calc(100% - 110px);
19
+ .bulkOrderPad-content {
20
+ height: calc(100% - 92px);
21
+ .bulkOrderPad-section {
22
+ max-height: calc(100% - 110px);
23
+ overflow: auto;
24
+ }
25
+ }
26
+ }
23
27
  }
24
28
 
25
29
  .bulk-order-header {
@@ -284,6 +288,7 @@
284
288
 
285
289
  td.action-td {
286
290
  width: 40px;
291
+ padding: 12px;
287
292
  .reset-icon {
288
293
  cursor: pointer;
289
294
  }
@@ -197,7 +197,8 @@
197
197
  --_sf-hr-fc,
198
198
  var(--_ctm-mob-dn-dt-se-cr, var(--_ctm-tab-dn-dt-se-cr, var(--_ctm-dn-dt-se-cr)))
199
199
  );
200
- font-family: var(
200
+ font-family:
201
+ var(
201
202
  --_sf-hr-ff,
202
203
  var(
203
204
  --_ctm-mob-dn-dt-se-ft-fy,
@@ -27,6 +27,9 @@ $dark-color: #343a40;
27
27
  width: 100%;
28
28
  }
29
29
  }
30
+ // .react-international-phone-input-container .react-international-phone-input {
31
+ // width: 100%;
32
+ // }
30
33
 
31
34
  .checkout_wrapper {
32
35
  font-family: Arial, sans-serif;
@@ -141,6 +144,10 @@ $dark-color: #343a40;
141
144
  width: auto;
142
145
  }
143
146
 
147
+ .error-msg {
148
+ font-size: 12px;
149
+ color: #ff0000;
150
+ }
144
151
  label {
145
152
  display: flex;
146
153
  align-items: center;
@@ -154,22 +161,6 @@ $dark-color: #343a40;
154
161
  justify-content: start;
155
162
  gap: 8px;
156
163
  }
157
-
158
- .submit-btn {
159
- align-self: flex-start;
160
- margin-top: 1rem;
161
- background-color: $primary-color;
162
- color: $light-color;
163
- border: none;
164
- padding: 0.5rem 1rem;
165
- font-size: 14px;
166
- border-radius: 4px;
167
- cursor: pointer;
168
-
169
- &:hover {
170
- opacity: 0.8;
171
- }
172
- }
173
164
  }
174
165
 
175
166
  .shipping-method {
@@ -234,6 +225,140 @@ $dark-color: #343a40;
234
225
  }
235
226
  }
236
227
  }
228
+ .payment-options {
229
+ .payment-card {
230
+ max-width: 400px;
231
+ font-family: Arial, sans-serif;
232
+
233
+ &__form {
234
+ display: grid;
235
+ gap: 12px;
236
+ }
237
+
238
+ &__label {
239
+ display: flex;
240
+ flex-direction: column;
241
+ font-size: 0.9rem;
242
+ font-weight: 500;
243
+ margin: 10px 0;
244
+ }
245
+
246
+ &__card-input-with-logo {
247
+ position: relative;
248
+
249
+ input {
250
+ padding-right: 50px;
251
+ }
252
+
253
+ .payment-card__logo {
254
+ position: absolute;
255
+ right: 10px;
256
+ top: 50%;
257
+ transform: translateY(-50%);
258
+ height: 24px;
259
+ width: auto;
260
+ pointer-events: none;
261
+ }
262
+ }
263
+
264
+ &__input {
265
+ border: 1px solid #ccc;
266
+ border-radius: 4px;
267
+ padding: 8px;
268
+ font-size: 1rem;
269
+ margin: 5px 0;
270
+ width: 100%;
271
+ box-sizing: border-box;
272
+ }
273
+
274
+ &__row {
275
+ display: flex;
276
+ gap: 10px;
277
+ }
278
+
279
+ &__half {
280
+ flex: 1;
281
+ }
282
+
283
+ &__button {
284
+ padding: 10px;
285
+ background-color: #007bff;
286
+ color: white;
287
+ border: none;
288
+ border-radius: 4px;
289
+ font-weight: bold;
290
+ cursor: pointer;
291
+ }
292
+
293
+ &__saved {
294
+ border: 1px solid #ccc;
295
+ border-radius: 8px;
296
+ padding: 16px;
297
+ display: grid;
298
+ gap: 10px;
299
+ }
300
+
301
+ &__info {
302
+ display: flex;
303
+ align-items: center;
304
+ gap: 10px;
305
+
306
+ img {
307
+ width: 40px;
308
+ height: auto;
309
+ }
310
+ }
311
+
312
+ &__meta {
313
+ font-size: 0.9rem;
314
+ color: #666;
315
+ }
316
+
317
+ &__actions {
318
+ display: flex;
319
+ gap: 10px;
320
+
321
+ button {
322
+ flex: 1;
323
+ }
324
+
325
+ input {
326
+ flex: 1;
327
+ }
328
+ }
329
+
330
+ &__remove {
331
+ background: none;
332
+ border: none;
333
+ color: #007bff;
334
+ padding: 0;
335
+ font-size: 0.9rem;
336
+ cursor: pointer;
337
+ text-align: left;
338
+ }
339
+
340
+ &__note {
341
+ font-size: 0.85rem;
342
+ color: #a94442;
343
+ margin-top: 12px;
344
+ }
345
+ }
346
+ }
347
+ .submit-btn {
348
+ align-self: flex-start;
349
+ margin-top: 1rem;
350
+ background-color: $primary-color;
351
+ color: $light-color;
352
+ border: none;
353
+ padding: 0.5rem 1rem;
354
+ font-size: 14px;
355
+ border-radius: 4px;
356
+ cursor: pointer;
357
+
358
+ &:hover {
359
+ opacity: 0.8;
360
+ }
361
+ }
237
362
  }
238
363
  }
239
364
  }
@@ -33,3 +33,9 @@ $es: '[data-div-type="element"]';
33
33
  // );
34
34
  }
35
35
  }
36
+
37
+ .text-ellipsis {
38
+ white-space: nowrap;
39
+ overflow: hidden;
40
+ text-overflow: ellipsis;
41
+ }
@@ -0,0 +1,79 @@
1
+ .confirm-modal-overlay {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100%;
6
+ height: 100%;
7
+ background: rgba(17, 24, 39, 0.5); // dark semi-transparent
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ z-index: 1000;
12
+
13
+ .confirm-modal {
14
+ background: #ffffff;
15
+ border-radius: 10px;
16
+ padding: 24px;
17
+ width: 480px;
18
+ max-width: 480px;
19
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
20
+ position: relative;
21
+ text-align: center;
22
+ min-height: 174px;
23
+ line-height: 20px;
24
+ display: grid;
25
+ gap: 10px;
26
+
27
+ .confirm-modal-header {
28
+ display: flex;
29
+ align-items: center;
30
+ width: 100%;
31
+ justify-content: space-between;
32
+ .title {
33
+ font-size: 18px;
34
+ font-weight: 700;
35
+ color: #101828;
36
+ }
37
+ }
38
+ .confirm-modal-body {
39
+ .message {
40
+ font-size: 14px;
41
+ color: #475467;
42
+ text-align: left;
43
+ }
44
+ }
45
+
46
+ .actions {
47
+ display: flex;
48
+ justify-content: space-between;
49
+ gap: 16px;
50
+ height: 40px;
51
+ button {
52
+ height: 40px;
53
+ width: 204px;
54
+ font-size: 16px;
55
+ cursor: pointer;
56
+ border: none;
57
+ border-radius: 5px;
58
+ }
59
+ .cancel-button {
60
+ background: transparent;
61
+ color: #6b7280;
62
+ font-weight: 500;
63
+ &:hover {
64
+ border: 1px solid #d0d5dd;
65
+ }
66
+ }
67
+
68
+ .confirm-button {
69
+ background-color: #dc2626; // red-600
70
+ color: #ffffff;
71
+ font-weight: 600;
72
+
73
+ &:hover {
74
+ background-color: #b91c1c;
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
@@ -14,7 +14,7 @@
14
14
  }
15
15
  }
16
16
 
17
- .dropdow-input-section {
17
+ .dropdown-input-section {
18
18
  position: relative;
19
19
  display: flex;
20
20
  justify-content: space-between;
@@ -87,21 +87,19 @@
87
87
  overflow-y: auto;
88
88
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
89
89
  z-index: 10;
90
+ min-width: 240px;
91
+ min-height: 300px;
92
+ max-height: 300px;
90
93
 
91
- li {
94
+ .dropdown-opt {
92
95
  font-size: 14px;
93
96
  cursor: pointer;
94
97
  height: 40px;
95
98
 
96
- &:hover {
97
- background-color: #f4f4f4;
98
- }
99
-
100
99
  &.no-result {
101
100
  color: #aaa;
102
101
  cursor: default;
103
102
  }
104
-
105
103
  .dropdown-item {
106
104
  width: 100%;
107
105
  height: 100%;
@@ -109,6 +107,10 @@
109
107
  text-align: left;
110
108
  display: flex;
111
109
  align-items: center;
110
+ &:hover {
111
+ background-color: #f4f4f4;
112
+ }
113
+
112
114
  .item-image {
113
115
  background-image: url("");
114
116
  width: 30px;
@@ -127,6 +129,50 @@
127
129
  font-weight: bold;
128
130
  }
129
131
  }
132
+ .dropdown-group-li {
133
+ height: auto;
134
+ .group-header {
135
+ height: 40px;
136
+ align-items: center;
137
+ display: flex;
138
+ gap: 4px;
139
+ padding: 4px;
140
+ input {
141
+ width: auto;
142
+ }
143
+ }
144
+ .dropdown-item {
145
+ height: 40px;
146
+ }
147
+ }
148
+
149
+ .dropdown_selection_actions {
150
+ display: flex;
151
+ align-items: center;
152
+ height: 40px;
153
+ position: absolute;
154
+ bottom: 0;
155
+ width: 100%;
156
+ background: #fff;
157
+ border-top: 1px solid #d1d1d1;
158
+ .opts_selection_action {
159
+ width: 50%;
160
+ height: 100%;
161
+ /* text-align: center; */
162
+ display: flex;
163
+ align-items: center;
164
+ justify-content: center;
165
+ .svg_icon {
166
+ cursor: pointer;
167
+ position: relative !important;
168
+ background: none !important;
169
+ right: 0px !important;
170
+ }
171
+ }
172
+ }
173
+ }
174
+ .drodown-menu-with-icon-dropdown {
175
+ top: 11px;
130
176
  }
131
177
  .dropdown_template_panel_search {
132
178
  background: none;
@@ -137,16 +183,33 @@
137
183
  background: none !important;
138
184
  }
139
185
  input {
186
+ width: 100%;
140
187
  padding: 10px 8px;
141
188
  border-radius: 4px;
142
189
  border: 1px solid #dddddd;
143
190
  }
144
191
  }
145
192
  }
193
+ .dropdown-with-icon {
194
+ width: 100%;
195
+ // pointer-events: none;
196
+ border: none;
197
+ padding: 0;
198
+ }
146
199
  }
147
200
  .dropdown-with-input-section.full-width {
148
201
  width: auto;
149
- .dropdow-input-section {
202
+ .dropdown-input-section {
150
203
  width: 100% !important;
151
204
  }
152
205
  }
206
+
207
+ .icon_with_label_section {
208
+ display: flex;
209
+ gap: 4px;
210
+ cursor: pointer;
211
+ .label_elm {
212
+ color: var(--_primary-400);
213
+ font-size: 14px;
214
+ }
215
+ }