@commercelayer/app-elements 6.10.1 → 6.11.0

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.
@@ -123,6 +123,10 @@ export type Bundle = {
123
123
  */
124
124
  value: number;
125
125
  };
126
+ /**
127
+ * Optional quantity to override the resource quantity. If specified, the action will apply to the minimum of specified quantity and resource quantity.
128
+ */
129
+ export type Quantity = number;
126
130
  /**
127
131
  * Rules payload within order context for the rules engine of Commerce Layer.
128
132
  */
@@ -171,7 +175,40 @@ export interface RulesForOrderContext {
171
175
  type: "percentage";
172
176
  selector: Selector;
173
177
  identifier?: Identifier;
174
- groups?: Groups;
178
+ groups: Groups;
179
+ aggregation?: Aggregation;
180
+ /**
181
+ * Percentage to be discounted,
182
+ */
183
+ value: number;
184
+ round?: Round;
185
+ apply_on?: ApplyOn;
186
+ limit?: Limit;
187
+ } | {
188
+ /**
189
+ * The type of action you want to apply.
190
+ */
191
+ type: "percentage";
192
+ selector: Selector;
193
+ identifier?: Identifier;
194
+ groups: Groups;
195
+ aggregation?: Aggregation;
196
+ /**
197
+ * Percentage to be discounted,
198
+ */
199
+ value: number;
200
+ round?: Round;
201
+ apply_on?: ApplyOn;
202
+ bundle?: Bundle;
203
+ quantity?: Quantity;
204
+ } | {
205
+ /**
206
+ * The type of action you want to apply.
207
+ */
208
+ type: "percentage";
209
+ selector: Selector;
210
+ identifier?: Identifier;
211
+ groups: Groups;
175
212
  aggregation?: Aggregation;
176
213
  /**
177
214
  * Percentage to be discounted,
@@ -180,6 +217,7 @@ export interface RulesForOrderContext {
180
217
  round?: Round;
181
218
  apply_on?: ApplyOn;
182
219
  limit?: Limit;
220
+ quantity?: Quantity;
183
221
  } | {
184
222
  /**
185
223
  * The type of action you want to apply.
@@ -206,7 +244,7 @@ export interface RulesForOrderContext {
206
244
  type: "fixed_amount";
207
245
  selector: Selector;
208
246
  identifier?: Identifier;
209
- groups?: Groups;
247
+ groups: Groups;
210
248
  aggregation?: Aggregation;
211
249
  /**
212
250
  * The discount fixed amount to be applied.
@@ -218,6 +256,46 @@ export interface RulesForOrderContext {
218
256
  * The type of distribution of the discount over the items.
219
257
  */
220
258
  discount_mode?: "distributed" | "default";
259
+ } | {
260
+ /**
261
+ * The type of action you want to apply.
262
+ */
263
+ type: "fixed_amount";
264
+ selector: Selector;
265
+ identifier?: Identifier;
266
+ groups: Groups;
267
+ aggregation?: Aggregation;
268
+ /**
269
+ * The discount fixed amount to be applied.
270
+ */
271
+ value: number;
272
+ bundle?: Bundle;
273
+ apply_on?: ApplyOn;
274
+ quantity?: Quantity;
275
+ /**
276
+ * The type of distribution of the discount over the items.
277
+ */
278
+ discount_mode?: "distributed" | "default";
279
+ } | {
280
+ /**
281
+ * The type of action you want to apply.
282
+ */
283
+ type: "fixed_amount";
284
+ selector: Selector;
285
+ identifier?: Identifier;
286
+ groups: Groups;
287
+ aggregation?: Aggregation;
288
+ /**
289
+ * The discount fixed amount to be applied.
290
+ */
291
+ value: number;
292
+ apply_on?: ApplyOn;
293
+ limit?: Limit;
294
+ quantity?: Quantity;
295
+ /**
296
+ * The type of distribution of the discount over the items.
297
+ */
298
+ discount_mode?: "distributed" | "default";
221
299
  } | {
222
300
  /**
223
301
  * The type of action you want to apply.
@@ -240,7 +318,7 @@ export interface RulesForOrderContext {
240
318
  type: "fixed_price";
241
319
  selector: Selector;
242
320
  identifier?: Identifier;
243
- groups?: Groups;
321
+ groups: Groups;
244
322
  aggregation?: Aggregation;
245
323
  /**
246
324
  * The price fixed amount to be applied.
@@ -248,14 +326,46 @@ export interface RulesForOrderContext {
248
326
  value: number;
249
327
  apply_on?: ApplyOn;
250
328
  limit?: Limit;
329
+ } | {
330
+ /**
331
+ * The type of action you want to apply.
332
+ */
333
+ type: "fixed_price";
334
+ selector: Selector;
335
+ identifier?: Identifier;
336
+ groups: Groups;
337
+ aggregation?: Aggregation;
338
+ /**
339
+ * The price fixed amount to be applied.
340
+ */
341
+ value: number;
342
+ bundle?: Bundle;
343
+ apply_on?: ApplyOn;
344
+ quantity?: Quantity;
345
+ } | {
346
+ /**
347
+ * The type of action you want to apply.
348
+ */
349
+ type: "fixed_price";
350
+ selector: Selector;
351
+ identifier?: Identifier;
352
+ groups: Groups;
353
+ aggregation?: Aggregation;
354
+ /**
355
+ * The price fixed amount to be applied.
356
+ */
357
+ value: number;
358
+ apply_on?: ApplyOn;
359
+ limit?: Limit;
360
+ quantity?: Quantity;
251
361
  } | {
252
362
  /**
253
363
  * The type of action you want to apply.
254
364
  */
255
365
  type: "buy_x_pay_y";
256
- selector?: Selector;
366
+ selector: Selector;
257
367
  identifier?: Identifier;
258
- groups?: Groups;
368
+ groups: Groups;
259
369
  aggregation?: Aggregation;
260
370
  value: {
261
371
  /**
@@ -279,7 +389,7 @@ export interface RulesForOrderContext {
279
389
  type: "every_x_discount_y";
280
390
  selector: Selector;
281
391
  identifier?: Identifier;
282
- groups?: Groups;
392
+ groups: Groups;
283
393
  aggregation?: Aggregation;
284
394
  value: {
285
395
  /**
@@ -296,6 +406,24 @@ export interface RulesForOrderContext {
296
406
  attribute: string;
297
407
  [k: string]: unknown;
298
408
  };
409
+ } | {
410
+ /**
411
+ * The type of action you want to apply.
412
+ */
413
+ type: "free_gift";
414
+ /**
415
+ * Object whose keys are allowed selector paths (order.line_items.sku.id, order.line_items.bundle.id, order.line_items.sku.sku_lists.id). Each value is an array of ids to match. Line items matching any (selector, id) are eligible for the free gift.
416
+ */
417
+ identifiers: {
418
+ /**
419
+ * @minItems 1
420
+ */
421
+ [k: string]: [string, ...string[]];
422
+ };
423
+ /**
424
+ * Total number of units to discount across all matching line items. Distributed in priority order (keys, then ids, then line item order). Required.
425
+ */
426
+ quantity: number;
299
427
  })[];
300
428
  }[];
301
429
  [k: string]: unknown;
@@ -123,6 +123,10 @@ export type Bundle = {
123
123
  */
124
124
  value: number;
125
125
  };
126
+ /**
127
+ * Optional quantity to override the resource quantity. If specified, the action will apply to the minimum of specified quantity and resource quantity.
128
+ */
129
+ export type Quantity = number;
126
130
  /**
127
131
  * Rules payload within price context for the rules engine of Commerce Layer.
128
132
  */
@@ -171,7 +175,7 @@ export interface RulesForPriceContext {
171
175
  type: "percentage";
172
176
  selector: Selector;
173
177
  identifier?: Identifier;
174
- groups?: Groups;
178
+ groups: Groups;
175
179
  aggregation?: Aggregation;
176
180
  /**
177
181
  * Percentage to be discounted,
@@ -180,6 +184,40 @@ export interface RulesForPriceContext {
180
184
  round?: Round;
181
185
  apply_on?: ApplyOn;
182
186
  limit?: Limit;
187
+ } | {
188
+ /**
189
+ * The type of action you want to apply.
190
+ */
191
+ type: "percentage";
192
+ selector: Selector;
193
+ identifier?: Identifier;
194
+ groups: Groups;
195
+ aggregation?: Aggregation;
196
+ /**
197
+ * Percentage to be discounted,
198
+ */
199
+ value: number;
200
+ round?: Round;
201
+ apply_on?: ApplyOn;
202
+ bundle?: Bundle;
203
+ quantity?: Quantity;
204
+ } | {
205
+ /**
206
+ * The type of action you want to apply.
207
+ */
208
+ type: "percentage";
209
+ selector: Selector;
210
+ identifier?: Identifier;
211
+ groups: Groups;
212
+ aggregation?: Aggregation;
213
+ /**
214
+ * Percentage to be discounted,
215
+ */
216
+ value: number;
217
+ round?: Round;
218
+ apply_on?: ApplyOn;
219
+ limit?: Limit;
220
+ quantity?: Quantity;
183
221
  } | {
184
222
  /**
185
223
  * The type of action you want to apply.
@@ -206,7 +244,7 @@ export interface RulesForPriceContext {
206
244
  type: "fixed_amount";
207
245
  selector: Selector;
208
246
  identifier?: Identifier;
209
- groups?: Groups;
247
+ groups: Groups;
210
248
  aggregation?: Aggregation;
211
249
  /**
212
250
  * The discount fixed amount to be applied.
@@ -218,6 +256,76 @@ export interface RulesForPriceContext {
218
256
  * The type of distribution of the discount over the items.
219
257
  */
220
258
  discount_mode?: "distributed" | "default";
259
+ } | {
260
+ /**
261
+ * The type of action you want to apply.
262
+ */
263
+ type: "fixed_amount";
264
+ selector: Selector;
265
+ identifier?: Identifier;
266
+ groups: Groups;
267
+ aggregation?: Aggregation;
268
+ /**
269
+ * The discount fixed amount to be applied.
270
+ */
271
+ value: number;
272
+ bundle?: Bundle;
273
+ apply_on?: ApplyOn;
274
+ quantity?: Quantity;
275
+ /**
276
+ * The type of distribution of the discount over the items.
277
+ */
278
+ discount_mode?: "distributed" | "default";
279
+ } | {
280
+ /**
281
+ * The type of action you want to apply.
282
+ */
283
+ type: "fixed_amount";
284
+ selector: Selector;
285
+ identifier?: Identifier;
286
+ groups: Groups;
287
+ aggregation?: Aggregation;
288
+ /**
289
+ * The discount fixed amount to be applied.
290
+ */
291
+ value: number;
292
+ apply_on?: ApplyOn;
293
+ limit?: Limit;
294
+ quantity?: Quantity;
295
+ /**
296
+ * The type of distribution of the discount over the items.
297
+ */
298
+ discount_mode?: "distributed" | "default";
299
+ } | {
300
+ /**
301
+ * The type of action you want to apply.
302
+ */
303
+ type: "fixed_price";
304
+ selector: Selector;
305
+ identifier?: Identifier;
306
+ groups: Groups;
307
+ aggregation?: Aggregation;
308
+ /**
309
+ * The price fixed amount to be applied.
310
+ */
311
+ value: number;
312
+ bundle?: Bundle;
313
+ apply_on?: ApplyOn;
314
+ } | {
315
+ /**
316
+ * The type of action you want to apply.
317
+ */
318
+ type: "fixed_price";
319
+ selector: Selector;
320
+ identifier?: Identifier;
321
+ groups: Groups;
322
+ aggregation?: Aggregation;
323
+ /**
324
+ * The price fixed amount to be applied.
325
+ */
326
+ value: number;
327
+ apply_on?: ApplyOn;
328
+ limit?: Limit;
221
329
  } | {
222
330
  /**
223
331
  * The type of action you want to apply.
@@ -233,6 +341,7 @@ export interface RulesForPriceContext {
233
341
  value: number;
234
342
  bundle?: Bundle;
235
343
  apply_on?: ApplyOn;
344
+ quantity?: Quantity;
236
345
  } | {
237
346
  /**
238
347
  * The type of action you want to apply.
@@ -240,7 +349,7 @@ export interface RulesForPriceContext {
240
349
  type: "fixed_price";
241
350
  selector: Selector;
242
351
  identifier?: Identifier;
243
- groups?: Groups;
352
+ groups: Groups;
244
353
  aggregation?: Aggregation;
245
354
  /**
246
355
  * The price fixed amount to be applied.
@@ -248,6 +357,7 @@ export interface RulesForPriceContext {
248
357
  value: number;
249
358
  apply_on?: ApplyOn;
250
359
  limit?: Limit;
360
+ quantity?: Quantity;
251
361
  })[];
252
362
  }[];
253
363
  [k: string]: unknown;
@@ -21,6 +21,8 @@ export interface OptionConfig {
21
21
  value: string;
22
22
  meta?: Record<string, any>;
23
23
  }>;
24
+ /** Whether this option is required and must always be present */
25
+ required?: boolean;
24
26
  }
25
27
  /**
26
28
  * Complete options configuration for the rule engine
@@ -31,12 +33,12 @@ export interface OptionsConfig {
31
33
  /** Available options for conditions */
32
34
  conditions: OptionConfig[];
33
35
  }
34
- type OrderApplyTo = "order.line_items.adjustment" | "order.line_items.gift_card" | "order.line_items.shipment" | "order.line_items.sku" | "order.line_items.bundle" | "order.line_items.payment_method" | "order.line_items.line_item_options" | "order.line_items" | "order";
35
- type PriceApplyTo = "price";
36
+ type OrderApplyTo = "" | "order.line_items.adjustment" | "order.line_items.gift_card" | "order.line_items.shipment" | "order.line_items.sku" | "order.line_items.bundle" | "order.line_items.payment_method" | "order.line_items.line_item_options" | "order.line_items" | "order";
37
+ type PriceApplyTo = "" | "price";
36
38
  /**
37
39
  * Options that we want to manage dynamically
38
40
  */
39
- declare const MANAGED_ACTION_OPTIONS: readonly ["apply_on", "round", "limit", "discount_mode", "aggregation", "bundle"];
41
+ declare const MANAGED_ACTION_OPTIONS: readonly ["selector", "groups", "apply_on", "round", "limit", "discount_mode", "aggregation", "bundle", "quantity", "identifiers"];
40
42
  declare const MANAGED_CONDITION_OPTIONS: readonly ["group", "scope", "aggregations"];
41
43
  export type ManagedActionOption = (typeof MANAGED_ACTION_OPTIONS)[number];
42
44
  export type ManagedConditionOption = (typeof MANAGED_CONDITION_OPTIONS)[number];
@@ -58,6 +60,8 @@ interface OptionAvailability {
58
60
  disabled: OptionConfig[];
59
61
  /** Options that are currently set */
60
62
  current: string[];
63
+ /** Options that are required (must always be present) */
64
+ required: OptionConfig[];
61
65
  }
62
66
  /**
63
67
  * Hook to determine which options are available for the current item
package/dist/vendor.css CHANGED
@@ -1,2 +1,2 @@
1
- /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
2
2
  .react-datepicker__navigation-icon:before,.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{content:"";border:3px solid #ccc;border-width:3px 3px 0 0;width:9px;height:9px;display:block;position:absolute;top:6px}.react-datepicker__sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.react-datepicker-wrapper{border:0;padding:0;display:inline-block}.react-datepicker{color:#000;font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;line-height:initial;background-color:#fff;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-right-radius:.3rem;border-bottom-left-radius:.3rem}.react-datepicker-popper{z-index:1;line-height:0}.react-datepicker-popper .react-datepicker__triangle{stroke:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{fill:#f0f0f0;color:#f0f0f0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{fill:#fff;color:#fff}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{margin:0 15px;display:inline-block}h2.react-datepicker__current-month{margin:0;padding:0}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{text-align:center;cursor:pointer;z-index:1;text-indent:-999em;background:0 0;border:none;justify-content:center;align-items:center;width:32px;height:32px;padding:0;display:flex;position:absolute;top:2px;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{margin-left:auto;margin-right:auto;display:block;position:relative;top:0}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover :before{border-color:#a6a6a6}.react-datepicker__navigation-icon{width:0;font-size:20px;position:relative;top:-1px}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{left:-7px;transform:rotate(45deg)}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{right:-7px;transform:rotate(225deg)}.react-datepicker__month-container{float:left}.react-datepicker__year{text-align:center;margin:.4rem}.react-datepicker__year-wrapper{flex-wrap:wrap;max-width:180px;display:flex}.react-datepicker__year .react-datepicker__year-text{width:4rem;margin:2px;display:inline-block}.react-datepicker__month{text-align:center;margin:.4rem}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{width:4rem;margin:2px;display:inline-block}.react-datepicker__input-time-container{clear:both;float:left;text-align:left;width:100%;margin:5px 0 10px 15px}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{margin-left:10px;display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{border:1px solid #aeaeae;border-radius:.3rem;display:inline;position:absolute;top:0;right:-87px}.react-datepicker__time-container .react-datepicker__time{background:#fff;border-bottom-right-radius:.3rem;position:relative}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{text-align:center;border-bottom-right-radius:.3rem;width:85px;margin:0 auto;overflow-x:hidden}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{box-sizing:content-box;width:100%;height:calc(195px + .85rem);margin:0;padding-left:0;padding-right:0;list-style:none;overflow-y:scroll}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{white-space:nowrap;height:30px;padding:5px 10px}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{color:#fff;background-color:#216ba5;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:#0000}.react-datepicker__week-number{color:#ccc;text-align:center;width:1.7rem;margin:.166rem;line-height:1.7rem;display:inline-block}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:not(.react-datepicker__week-number--selected):hover{background-color:#f0f0f0;border-radius:.3rem}.react-datepicker__week-number--selected{color:#fff;background-color:#216ba5;border-radius:.3rem}.react-datepicker__week-number--selected:hover{background-color:#1d5d90}.react-datepicker__day-names{text-align:center;white-space:nowrap;margin-bottom:-8px}.react-datepicker__week{white-space:nowrap}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;text-align:center;width:1.7rem;margin:.166rem;line-height:1.7rem;display:inline-block}.react-datepicker__day-name--disabled,.react-datepicker__day--disabled,.react-datepicker__time-name--disabled{cursor:default;color:#ccc}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:not([aria-disabled=true]):hover,.react-datepicker__month-text:not([aria-disabled=true]):hover,.react-datepicker__quarter-text:not([aria-disabled=true]):hover,.react-datepicker__year-text:not([aria-disabled=true]):hover{background-color:#f0f0f0;border-radius:.3rem}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{color:#fff;background-color:#3dcc4a;border-radius:.3rem}.react-datepicker__day--highlighted:not([aria-disabled=true]):hover,.react-datepicker__month-text--highlighted:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--highlighted:not([aria-disabled=true]):hover,.react-datepicker__year-text--highlighted:not([aria-disabled=true]):hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--holidays,.react-datepicker__month-text--holidays,.react-datepicker__quarter-text--holidays,.react-datepicker__year-text--holidays{color:#fff;background-color:#ff6803;border-radius:.3rem;position:relative}.react-datepicker__day--holidays .overlay,.react-datepicker__month-text--holidays .overlay,.react-datepicker__quarter-text--holidays .overlay,.react-datepicker__year-text--holidays .overlay{color:#fff;white-space:nowrap;visibility:hidden;opacity:0;background-color:#333;border-radius:4px;padding:4px;transition:visibility,opacity .3s ease-in-out;position:absolute;bottom:100%;left:50%;transform:translate(-50%)}.react-datepicker__day--holidays:not([aria-disabled=true]):hover,.react-datepicker__month-text--holidays:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--holidays:not([aria-disabled=true]):hover,.react-datepicker__year-text--holidays:not([aria-disabled=true]):hover{background-color:#cf5300}.react-datepicker__day--holidays:hover .overlay,.react-datepicker__month-text--holidays:hover .overlay,.react-datepicker__quarter-text--holidays:hover .overlay,.react-datepicker__year-text--holidays:hover .overlay{visibility:visible;opacity:1}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{color:#fff;background-color:#216ba5;border-radius:.3rem}.react-datepicker__day--selected:not([aria-disabled=true]):hover,.react-datepicker__day--in-selecting-range:not([aria-disabled=true]):hover,.react-datepicker__day--in-range:not([aria-disabled=true]):hover,.react-datepicker__month-text--selected:not([aria-disabled=true]):hover,.react-datepicker__month-text--in-selecting-range:not([aria-disabled=true]):hover,.react-datepicker__month-text--in-range:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--selected:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--in-selecting-range:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--in-range:not([aria-disabled=true]):hover,.react-datepicker__year-text--selected:not([aria-disabled=true]):hover,.react-datepicker__year-text--in-selecting-range:not([aria-disabled=true]):hover,.react-datepicker__year-text--in-range:not([aria-disabled=true]):hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{color:#000;background-color:#bad9f1;border-radius:.3rem}.react-datepicker__day--keyboard-selected:not([aria-disabled=true]):hover,.react-datepicker__month-text--keyboard-selected:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--keyboard-selected:not([aria-disabled=true]):hover,.react-datepicker__year-text--keyboard-selected:not([aria-disabled=true]):hover{color:#fff;background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){color:#000;background-color:#f0f0f0}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled .overlay,.react-datepicker__month-text--disabled .overlay,.react-datepicker__quarter-text--disabled .overlay,.react-datepicker__year-text--disabled .overlay{color:#fff;white-space:nowrap;visibility:hidden;opacity:0;background-color:#333;border-radius:4px;padding:4px;transition:visibility,opacity .3s ease-in-out;position:absolute;bottom:70%;left:50%;transform:translate(-50%)}.react-datepicker__input-container{width:100%;display:inline-block;position:relative}.react-datepicker__input-container .react-datepicker__calendar-icon{box-sizing:content-box;padding:.5rem;position:absolute}.react-datepicker__view-calendar-icon input{padding:6px 10px 5px 25px}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid #0000;border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{top:0;right:-16px;transform:rotate(135deg)}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{z-index:1;text-align:center;background-color:#f0f0f0;border:1px solid #aeaeae;border-radius:.3rem;width:50%;position:absolute;top:30px;left:25%}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{width:100%;margin-left:auto;margin-right:auto;line-height:20px;display:block}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;user-select:none;border-bottom-right-radius:.3rem;border-bottom-left-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;vertical-align:middle;background-color:#0000;border:0;outline:0;height:100%;padding:0 6px 0 0;display:table-cell;position:absolute;top:0;right:0}.react-datepicker__close-icon:after{cursor:pointer;color:#fff;text-align:center;vertical-align:middle;content:"×";background-color:#216ba5;border-radius:50%;width:16px;height:16px;padding:2px;font-size:12px;line-height:1;display:table-cell}.react-datepicker__close-icon--disabled{cursor:default}.react-datepicker__close-icon--disabled:after{cursor:default;background-color:#ccc}.react-datepicker__today-button{cursor:pointer;text-align:center;clear:left;background:#f0f0f0;border-top:1px solid #aeaeae;padding:5px 0;font-weight:700}.react-datepicker__portal{z-index:2147483647;background-color:#000c;justify-content:center;align-items:center;width:100vw;height:100vh;display:flex;position:fixed;top:0;left:0}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width:400px),(max-height:550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem}.react-datepicker__children-container{width:13.8rem;height:auto;margin:.4rem;padding-left:.2rem;padding-right:.2rem}.react-datepicker__aria-live{clip-path:circle(0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.react-datepicker__calendar-icon{vertical-align:-.125em;width:1em;height:1em}:root{--var-border-color:#e6e7e7}.react-datepicker-wrapper{width:100%}.react-datepicker{border-color:var(--var-border-color);padding:1px;font-family:inherit;box-shadow:2px 2px #f8f8f8}.react-datepicker-popper{text-align:center;z-index:30;min-width:370px}.react-datepicker-popper .react-datepicker__triangle{display:none}.react-datepicker__header{border-color:var(--var-border-color);background-color:#f8f8f8}.react-datepicker__time-container{border-color:var(--var-border-color)}.react-datepicker__navigation{border-radius:5px;outline:0;width:24px;height:24px;margin:4px!important}.react-datepicker__navigation-icon:before{border-width:1px 1px 0 0;border-color:#686e6e;margin-top:5px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{color:#1d1e1e;margin-top:0;font-size:14px;font-weight:600}.react-datepicker__day-names{margin:8px .4rem -4px}.react-datepicker__day-name{text-transform:uppercase;color:#1d1e1e;width:2rem;margin:.166rem;font-weight:700}.react-datepicker__day,.react-datepicker__time-name{color:#686e6e;border:1px solid #f8f8f8;width:2rem;font-weight:600;line-height:2rem}.react-datepicker__day--selected,.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{color:#fff;background-color:#404141}.react-datepicker__day--keyboard-selected{color:#101111;background-color:#f8f8f8;font-weight:900}.react-datepicker__day--keyboard-selected:hover,.react-datepicker__month-text--keyboard-selected:hover,.react-datepicker__quarter-text--keyboard-selected:hover,.react-datepicker__year-text--keyboard-selected:hover{background-color:#dbdcdc}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover,.react-datepicker__month-text--selected:hover,.react-datepicker__month-text--in-selecting-range:hover,.react-datepicker__month-text--in-range:hover,.react-datepicker__quarter-text--selected:hover,.react-datepicker__quarter-text--in-selecting-range:hover,.react-datepicker__quarter-text--in-range:hover,.react-datepicker__year-text--selected:hover,.react-datepicker__year-text--in-selecting-range:hover,.react-datepicker__year-text--in-range:hover,.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#404141}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercelayer/app-elements",
3
- "version": "6.10.1",
3
+ "version": "6.11.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -44,7 +44,7 @@
44
44
  "@types/react-datepicker": "^7.0.0",
45
45
  "@types/react-dom": "19.2.3",
46
46
  "classnames": "^2.5.1",
47
- "i18next": "^25.8.4",
47
+ "i18next": "^25.8.13",
48
48
  "i18next-resources-to-backend": "^1.2.1",
49
49
  "js-cookie": "^3.0.5",
50
50
  "jwt-decode": "^4.0.0",
@@ -63,29 +63,29 @@
63
63
  "react-tooltip": "^5.30.0",
64
64
  "swr": "^2.4.0",
65
65
  "ts-invariant": "^0.10.3",
66
- "type-fest": "^5.4.3",
66
+ "type-fest": "^5.4.4",
67
67
  "zod": "^3.25.76"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@hookform/resolvers": "^3.10.0",
71
71
  "@phosphor-icons/react": "v2.1.10",
72
72
  "@tailwindcss/forms": "^0.5.11",
73
- "@tailwindcss/postcss": "^4.1.18",
73
+ "@tailwindcss/postcss": "^4.2.1",
74
74
  "@testing-library/jest-dom": "^6.9.1",
75
75
  "@testing-library/react": "^16.3.2",
76
76
  "@types/js-cookie": "^3.0.6",
77
- "@types/node": "^20.19.31",
77
+ "@types/node": "^20.19.33",
78
78
  "@types/pluralize": "^0.0.33",
79
79
  "@types/react-gtm-module": "^2.0.4",
80
- "@vitejs/plugin-react": "^5.1.3",
80
+ "@vitejs/plugin-react": "^5.1.4",
81
81
  "cross-fetch": "^4.1.0",
82
82
  "date-fns": "^4.1.0",
83
83
  "date-fns-tz": "^3.2.0",
84
84
  "jsdom": "^27.4.0",
85
- "msw": "^2.12.8",
85
+ "msw": "^2.12.10",
86
86
  "postcss": "^8.5.6",
87
87
  "react-gtm-module": "^2.0.11",
88
- "tailwindcss": "^4.1.18",
88
+ "tailwindcss": "^4.2.1",
89
89
  "typescript": "~5.9.3",
90
90
  "vite": "^7.3.1",
91
91
  "vite-plugin-dts": "^4.5.4",