gantri-components 2.220.0 → 2.222.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.
- package/dist/core/index.d.ts +2 -2
- package/dist/helpers/generate-skus-functions/generate-skus-for-product-id/generate-skus-for-product-id.types.d.ts +1 -0
- package/dist/helpers/generate-skus-functions/get-colors-by-product/get-colors-by-product.types.d.ts +1 -0
- package/dist/helpers/generate-skus-functions/get-light-colors/get-light-colors.types.d.ts +1 -0
- package/dist/helpers/generate-skus-functions/helpers/get-is-color-available-for-product-id/get-is-color-available-for-product-id.d.ts +2 -1
- package/dist/helpers/get-folder-structure/get-folder-structure.types.d.ts +2 -1
- package/dist/helpers/get-folder-structure/globals.types.d.ts +1 -1
- package/dist/helpers/get-folder-structure/helpers/get-avatars-path/get-avatars-path.d.ts +2 -0
- package/dist/helpers/get-folder-structure/helpers/get-avatars-path/get-avatars-path.types.d.ts +8 -0
- package/dist/helpers/get-folder-structure/helpers/get-avatars-path/index.d.ts +2 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +20 -0
- package/dist/index.esm.js +1 -1
- package/dist/styles/theme.d.ts +307 -7
- package/package.json +1 -1
package/dist/styles/theme.d.ts
CHANGED
|
@@ -215,20 +215,320 @@ declare module 'styled-components' {
|
|
|
215
215
|
}
|
|
216
216
|
export declare const spacing: DefaultTheme['dimensions']['spacing'];
|
|
217
217
|
declare const defaults: DefaultTheme['defaults'];
|
|
218
|
-
export
|
|
219
|
-
export type
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
218
|
+
export type ProductColorStatus = 'active' | 'archived';
|
|
219
|
+
export type ColorAvailabilityRule = {
|
|
220
|
+
productIds: number[];
|
|
221
|
+
type: 'only-on-products';
|
|
222
|
+
} | {
|
|
223
|
+
productIds: number[];
|
|
224
|
+
type: 'trade-only-on-products';
|
|
225
|
+
} | {
|
|
226
|
+
flag: 'allowGantriColors';
|
|
227
|
+
type: 'flag-gated';
|
|
228
|
+
};
|
|
224
229
|
export interface ProductColorDetails {
|
|
230
|
+
availability?: ColorAvailabilityRule;
|
|
225
231
|
code: ProductColorCode;
|
|
226
232
|
fullColorName: string;
|
|
227
233
|
hexColor: string;
|
|
228
234
|
inventoryColor: string;
|
|
229
235
|
shortColorName: string;
|
|
236
|
+
status: ProductColorStatus;
|
|
230
237
|
}
|
|
231
|
-
|
|
238
|
+
declare const productColorsDefinition: {
|
|
239
|
+
blossompink: {
|
|
240
|
+
code: string;
|
|
241
|
+
fullColorName: string;
|
|
242
|
+
hexColor: string;
|
|
243
|
+
inventoryColor: string;
|
|
244
|
+
shortColorName: string;
|
|
245
|
+
status: "active";
|
|
246
|
+
};
|
|
247
|
+
canyon: {
|
|
248
|
+
code: string;
|
|
249
|
+
fullColorName: string;
|
|
250
|
+
hexColor: string;
|
|
251
|
+
inventoryColor: string;
|
|
252
|
+
shortColorName: string;
|
|
253
|
+
status: "active";
|
|
254
|
+
};
|
|
255
|
+
carbon: {
|
|
256
|
+
code: string;
|
|
257
|
+
fullColorName: string;
|
|
258
|
+
hexColor: string;
|
|
259
|
+
inventoryColor: string;
|
|
260
|
+
shortColorName: string;
|
|
261
|
+
status: "active";
|
|
262
|
+
};
|
|
263
|
+
cobalt: {
|
|
264
|
+
availability: {
|
|
265
|
+
productIds: number[];
|
|
266
|
+
type: "trade-only-on-products";
|
|
267
|
+
};
|
|
268
|
+
code: string;
|
|
269
|
+
fullColorName: string;
|
|
270
|
+
hexColor: string;
|
|
271
|
+
inventoryColor: string;
|
|
272
|
+
shortColorName: string;
|
|
273
|
+
status: "active";
|
|
274
|
+
};
|
|
275
|
+
coral: {
|
|
276
|
+
code: string;
|
|
277
|
+
fullColorName: string;
|
|
278
|
+
hexColor: string;
|
|
279
|
+
inventoryColor: string;
|
|
280
|
+
shortColorName: string;
|
|
281
|
+
status: "archived";
|
|
282
|
+
};
|
|
283
|
+
fog: {
|
|
284
|
+
code: string;
|
|
285
|
+
fullColorName: string;
|
|
286
|
+
hexColor: string;
|
|
287
|
+
inventoryColor: string;
|
|
288
|
+
shortColorName: string;
|
|
289
|
+
status: "archived";
|
|
290
|
+
};
|
|
291
|
+
forest: {
|
|
292
|
+
code: string;
|
|
293
|
+
fullColorName: string;
|
|
294
|
+
hexColor: string;
|
|
295
|
+
inventoryColor: string;
|
|
296
|
+
shortColorName: string;
|
|
297
|
+
status: "archived";
|
|
298
|
+
};
|
|
299
|
+
gantri: {
|
|
300
|
+
availability: {
|
|
301
|
+
flag: "allowGantriColors";
|
|
302
|
+
type: "flag-gated";
|
|
303
|
+
};
|
|
304
|
+
code: string;
|
|
305
|
+
fullColorName: string;
|
|
306
|
+
hexColor: string;
|
|
307
|
+
inventoryColor: string;
|
|
308
|
+
shortColorName: string;
|
|
309
|
+
status: "active";
|
|
310
|
+
};
|
|
311
|
+
glossysnowwhite: {
|
|
312
|
+
availability: {
|
|
313
|
+
productIds: number[];
|
|
314
|
+
type: "only-on-products";
|
|
315
|
+
};
|
|
316
|
+
code: string;
|
|
317
|
+
fullColorName: string;
|
|
318
|
+
hexColor: string;
|
|
319
|
+
inventoryColor: string;
|
|
320
|
+
shortColorName: string;
|
|
321
|
+
status: "archived";
|
|
322
|
+
};
|
|
323
|
+
hibiscus: {
|
|
324
|
+
code: string;
|
|
325
|
+
fullColorName: string;
|
|
326
|
+
hexColor: string;
|
|
327
|
+
inventoryColor: string;
|
|
328
|
+
shortColorName: string;
|
|
329
|
+
status: "archived";
|
|
330
|
+
};
|
|
331
|
+
lichen: {
|
|
332
|
+
code: string;
|
|
333
|
+
fullColorName: string;
|
|
334
|
+
hexColor: string;
|
|
335
|
+
inventoryColor: string;
|
|
336
|
+
shortColorName: string;
|
|
337
|
+
status: "active";
|
|
338
|
+
};
|
|
339
|
+
lilac: {
|
|
340
|
+
code: string;
|
|
341
|
+
fullColorName: string;
|
|
342
|
+
hexColor: string;
|
|
343
|
+
inventoryColor: string;
|
|
344
|
+
shortColorName: string;
|
|
345
|
+
status: "active";
|
|
346
|
+
};
|
|
347
|
+
magnolia: {
|
|
348
|
+
code: string;
|
|
349
|
+
fullColorName: string;
|
|
350
|
+
hexColor: string;
|
|
351
|
+
inventoryColor: string;
|
|
352
|
+
shortColorName: string;
|
|
353
|
+
status: "active";
|
|
354
|
+
};
|
|
355
|
+
manzanita: {
|
|
356
|
+
code: string;
|
|
357
|
+
fullColorName: string;
|
|
358
|
+
hexColor: string;
|
|
359
|
+
inventoryColor: string;
|
|
360
|
+
shortColorName: string;
|
|
361
|
+
status: "active";
|
|
362
|
+
};
|
|
363
|
+
meadow: {
|
|
364
|
+
code: string;
|
|
365
|
+
fullColorName: string;
|
|
366
|
+
hexColor: string;
|
|
367
|
+
inventoryColor: string;
|
|
368
|
+
shortColorName: string;
|
|
369
|
+
status: "active";
|
|
370
|
+
};
|
|
371
|
+
midnight: {
|
|
372
|
+
code: string;
|
|
373
|
+
fullColorName: string;
|
|
374
|
+
hexColor: string;
|
|
375
|
+
inventoryColor: string;
|
|
376
|
+
shortColorName: string;
|
|
377
|
+
status: "active";
|
|
378
|
+
};
|
|
379
|
+
mist: {
|
|
380
|
+
code: string;
|
|
381
|
+
fullColorName: string;
|
|
382
|
+
hexColor: string;
|
|
383
|
+
inventoryColor: string;
|
|
384
|
+
shortColorName: string;
|
|
385
|
+
status: "active";
|
|
386
|
+
};
|
|
387
|
+
mustard: {
|
|
388
|
+
code: string;
|
|
389
|
+
fullColorName: string;
|
|
390
|
+
hexColor: string;
|
|
391
|
+
inventoryColor: string;
|
|
392
|
+
shortColorName: string;
|
|
393
|
+
status: "active";
|
|
394
|
+
};
|
|
395
|
+
olive: {
|
|
396
|
+
code: string;
|
|
397
|
+
fullColorName: string;
|
|
398
|
+
hexColor: string;
|
|
399
|
+
inventoryColor: string;
|
|
400
|
+
shortColorName: string;
|
|
401
|
+
status: "active";
|
|
402
|
+
};
|
|
403
|
+
peach: {
|
|
404
|
+
code: string;
|
|
405
|
+
fullColorName: string;
|
|
406
|
+
hexColor: string;
|
|
407
|
+
inventoryColor: string;
|
|
408
|
+
shortColorName: string;
|
|
409
|
+
status: "active";
|
|
410
|
+
};
|
|
411
|
+
persimmon: {
|
|
412
|
+
code: string;
|
|
413
|
+
fullColorName: string;
|
|
414
|
+
hexColor: string;
|
|
415
|
+
inventoryColor: string;
|
|
416
|
+
shortColorName: string;
|
|
417
|
+
status: "active";
|
|
418
|
+
};
|
|
419
|
+
poppy: {
|
|
420
|
+
availability: {
|
|
421
|
+
productIds: number[];
|
|
422
|
+
type: "trade-only-on-products";
|
|
423
|
+
};
|
|
424
|
+
code: string;
|
|
425
|
+
fullColorName: string;
|
|
426
|
+
hexColor: string;
|
|
427
|
+
inventoryColor: string;
|
|
428
|
+
shortColorName: string;
|
|
429
|
+
status: "active";
|
|
430
|
+
};
|
|
431
|
+
sage: {
|
|
432
|
+
code: string;
|
|
433
|
+
fullColorName: string;
|
|
434
|
+
hexColor: string;
|
|
435
|
+
inventoryColor: string;
|
|
436
|
+
shortColorName: string;
|
|
437
|
+
status: "active";
|
|
438
|
+
};
|
|
439
|
+
sand: {
|
|
440
|
+
code: string;
|
|
441
|
+
fullColorName: string;
|
|
442
|
+
hexColor: string;
|
|
443
|
+
inventoryColor: string;
|
|
444
|
+
shortColorName: string;
|
|
445
|
+
status: "active";
|
|
446
|
+
};
|
|
447
|
+
sedona: {
|
|
448
|
+
code: string;
|
|
449
|
+
fullColorName: string;
|
|
450
|
+
hexColor: string;
|
|
451
|
+
inventoryColor: string;
|
|
452
|
+
shortColorName: string;
|
|
453
|
+
status: "active";
|
|
454
|
+
};
|
|
455
|
+
sky: {
|
|
456
|
+
code: string;
|
|
457
|
+
fullColorName: string;
|
|
458
|
+
hexColor: string;
|
|
459
|
+
inventoryColor: string;
|
|
460
|
+
shortColorName: string;
|
|
461
|
+
status: "archived";
|
|
462
|
+
};
|
|
463
|
+
smoke: {
|
|
464
|
+
code: string;
|
|
465
|
+
fullColorName: string;
|
|
466
|
+
hexColor: string;
|
|
467
|
+
inventoryColor: string;
|
|
468
|
+
shortColorName: string;
|
|
469
|
+
status: "active";
|
|
470
|
+
};
|
|
471
|
+
snow: {
|
|
472
|
+
code: string;
|
|
473
|
+
fullColorName: string;
|
|
474
|
+
hexColor: string;
|
|
475
|
+
inventoryColor: string;
|
|
476
|
+
shortColorName: string;
|
|
477
|
+
status: "active";
|
|
478
|
+
};
|
|
479
|
+
sproutgreen: {
|
|
480
|
+
code: string;
|
|
481
|
+
fullColorName: string;
|
|
482
|
+
hexColor: string;
|
|
483
|
+
inventoryColor: string;
|
|
484
|
+
shortColorName: string;
|
|
485
|
+
status: "archived";
|
|
486
|
+
};
|
|
487
|
+
spruce: {
|
|
488
|
+
code: string;
|
|
489
|
+
fullColorName: string;
|
|
490
|
+
hexColor: string;
|
|
491
|
+
inventoryColor: string;
|
|
492
|
+
shortColorName: string;
|
|
493
|
+
status: "active";
|
|
494
|
+
};
|
|
495
|
+
stone: {
|
|
496
|
+
code: string;
|
|
497
|
+
fullColorName: string;
|
|
498
|
+
hexColor: string;
|
|
499
|
+
inventoryColor: string;
|
|
500
|
+
shortColorName: string;
|
|
501
|
+
status: "active";
|
|
502
|
+
};
|
|
503
|
+
sunrise: {
|
|
504
|
+
code: string;
|
|
505
|
+
fullColorName: string;
|
|
506
|
+
hexColor: string;
|
|
507
|
+
inventoryColor: string;
|
|
508
|
+
shortColorName: string;
|
|
509
|
+
status: "active";
|
|
510
|
+
};
|
|
511
|
+
walnut: {
|
|
512
|
+
code: string;
|
|
513
|
+
fullColorName: string;
|
|
514
|
+
hexColor: string;
|
|
515
|
+
inventoryColor: string;
|
|
516
|
+
shortColorName: string;
|
|
517
|
+
status: "active";
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
export type ProductColorCode = keyof typeof productColorsDefinition;
|
|
521
|
+
export declare const productColorsMap: Record<"blossompink" | "canyon" | "carbon" | "cobalt" | "coral" | "fog" | "forest" | "gantri" | "glossysnowwhite" | "hibiscus" | "lichen" | "lilac" | "magnolia" | "manzanita" | "meadow" | "midnight" | "mist" | "mustard" | "olive" | "peach" | "persimmon" | "poppy" | "sage" | "sand" | "sedona" | "sky" | "smoke" | "snow" | "sproutgreen" | "spruce" | "stone" | "sunrise" | "walnut", ProductColorDetails>;
|
|
522
|
+
/** All product color codes, auto-derived from productColorsMap. */
|
|
523
|
+
export declare const allProductColorCodes: ("blossompink" | "canyon" | "carbon" | "cobalt" | "coral" | "fog" | "forest" | "gantri" | "glossysnowwhite" | "hibiscus" | "lichen" | "lilac" | "magnolia" | "manzanita" | "meadow" | "midnight" | "mist" | "mustard" | "olive" | "peach" | "persimmon" | "poppy" | "sage" | "sand" | "sedona" | "sky" | "smoke" | "snow" | "sproutgreen" | "spruce" | "stone" | "sunrise" | "walnut")[];
|
|
524
|
+
/** Color codes that are currently active. */
|
|
525
|
+
export declare const activeProductColorCodes: ("blossompink" | "canyon" | "carbon" | "cobalt" | "coral" | "fog" | "forest" | "gantri" | "glossysnowwhite" | "hibiscus" | "lichen" | "lilac" | "magnolia" | "manzanita" | "meadow" | "midnight" | "mist" | "mustard" | "olive" | "peach" | "persimmon" | "poppy" | "sage" | "sand" | "sedona" | "sky" | "smoke" | "snow" | "sproutgreen" | "spruce" | "stone" | "sunrise" | "walnut")[];
|
|
526
|
+
/** Color codes that have been archived (no longer offered but may exist on past orders). */
|
|
527
|
+
export declare const archivedProductColorCodes: ("blossompink" | "canyon" | "carbon" | "cobalt" | "coral" | "fog" | "forest" | "gantri" | "glossysnowwhite" | "hibiscus" | "lichen" | "lilac" | "magnolia" | "manzanita" | "meadow" | "midnight" | "mist" | "mustard" | "olive" | "peach" | "persimmon" | "poppy" | "sage" | "sand" | "sedona" | "sky" | "smoke" | "snow" | "sproutgreen" | "spruce" | "stone" | "sunrise" | "walnut")[];
|
|
528
|
+
/** @deprecated Use archivedProductColorCodes. Kept for backward compatibility. */
|
|
529
|
+
export declare const retiredProductColorCodes: ("blossompink" | "canyon" | "carbon" | "cobalt" | "coral" | "fog" | "forest" | "gantri" | "glossysnowwhite" | "hibiscus" | "lichen" | "lilac" | "magnolia" | "manzanita" | "meadow" | "midnight" | "mist" | "mustard" | "olive" | "peach" | "persimmon" | "poppy" | "sage" | "sand" | "sedona" | "sky" | "smoke" | "snow" | "sproutgreen" | "spruce" | "stone" | "sunrise" | "walnut")[];
|
|
530
|
+
/** Active color codes for consumer-facing UIs (excludes archived). */
|
|
531
|
+
export declare const consumerProductColorCodes: ("blossompink" | "canyon" | "carbon" | "cobalt" | "coral" | "fog" | "forest" | "gantri" | "glossysnowwhite" | "hibiscus" | "lichen" | "lilac" | "magnolia" | "manzanita" | "meadow" | "midnight" | "mist" | "mustard" | "olive" | "peach" | "persimmon" | "poppy" | "sage" | "sand" | "sedona" | "sky" | "smoke" | "snow" | "sproutgreen" | "spruce" | "stone" | "sunrise" | "walnut")[];
|
|
232
532
|
export declare const lightTheme: DefaultTheme;
|
|
233
533
|
export declare const darkTheme: DefaultTheme;
|
|
234
534
|
export declare const modernLightTheme: DefaultTheme;
|