@thryveai/theme-interfaces 1.4.13 → 1.5.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.
@@ -1,675 +0,0 @@
1
- import { IconNames } from './icons.interfaces';
2
-
3
- export interface ITheme extends IInitializedEmptyTheme {
4
- theme?: IThemeInterface;
5
- images?: IThemeImages;
6
- }
7
-
8
- export type IThemeMetadata = IThemeMetadataItem[];
9
- export type IThemeFavicons = IThemeFavicon[];
10
- export type IThemeLogoPosition = 'header' | 'modal' | 'content';
11
- export type IIconPosition = 'left' | 'right';
12
-
13
- export interface IThemeLogoHeightsProps {
14
- desktop?: string;
15
- tablet?: string;
16
- mobile?: string;
17
- }
18
- export type IThemeLogoHeights = {
19
- [key in IThemeLogoPosition]?: IThemeLogoHeightsProps;
20
- };
21
-
22
- export interface ISTSThemeInterface {
23
- headerHeight?: string;
24
- }
25
- export interface IThemeFavicon {
26
- rel?: string;
27
- sizes?: string;
28
- href?: string;
29
- }
30
- export interface IThemeMetadataItem {
31
- name?: string;
32
- content?: string;
33
- }
34
-
35
- export interface IThemeImages {
36
- favicon?: string;
37
- logos?: {
38
- primary?: string;
39
- primaryMobile?: string;
40
- secondary?: string;
41
- loyaltyCard?: string;
42
- sts?: string;
43
- stsMobile?: string;
44
- };
45
- stsCheckBox?: {
46
- empty?: string;
47
- primary?: string;
48
- success?: string;
49
- };
50
- confirmationPageImage?: string;
51
- rewards?: string;
52
- missingImg?: {
53
- recipes?: string;
54
- x2?: string;
55
- x3?: string;
56
- square?: string;
57
- };
58
- verifySiteImage?: string;
59
- favicons?: IThemeFavicons;
60
- }
61
-
62
- export interface IThemeInterface {
63
- colors?: {
64
- brandColors?: IBrandColors;
65
- uiColors?: IUiColors;
66
- };
67
- header?: {
68
- topMenu?: INavStyles;
69
- mainMenu?: INavStyles;
70
- bottomMenu?: INavBottom;
71
- mobileMenu?: INavStyles;
72
- accountPopover?: {
73
- backgroundColor?: string;
74
- borderColor?: string;
75
- borderRadius?: string;
76
- color?: string;
77
- links?: {
78
- color?: {
79
- static?: string;
80
- hover?: string;
81
- visited?: string;
82
- };
83
- };
84
- };
85
- storePopover?: {
86
- backgroundColor?: string;
87
- activeBackgroundColor?: string;
88
- color?: string;
89
- activeColor?: string;
90
- borderColor?: string;
91
- borderRadius?: string;
92
- reserveTimeIconPosition?: ITextPosition;
93
- };
94
- search?: {
95
- borderColor?: string;
96
- borderRadius?: string;
97
- clearBtnColor?: string;
98
- searchButton?: {
99
- desktop?: {
100
- static?: { color?: string; backgroundColor?: string };
101
- hover?: { color?: string; backgroundColor?: string };
102
- clicked?: { color?: string; backgroundColor?: string };
103
- };
104
- tablet?: {
105
- static?: { color?: string };
106
- clicked?: { color?: string };
107
- };
108
- mobile?: {
109
- static?: { color?: string };
110
- };
111
- };
112
- suggestions?: {
113
- links?: {
114
- color?: {
115
- static?: string;
116
- hover?: string;
117
- visited?: string;
118
- };
119
- };
120
- };
121
- multisearchBtn?: {
122
- static?: {
123
- color?: string;
124
- backgroundColor?: string;
125
- };
126
- hover?: {
127
- color?: string;
128
- backgroundColor?: string;
129
- };
130
- };
131
- };
132
- headerActionLinks?: IHeaderActionLinksProps;
133
- headerLinks?: IHeaderLinksProps;
134
- departments?: {
135
- backgroundColor?: {
136
- active?: string;
137
- static?: string;
138
- };
139
- color?: {
140
- static?: string;
141
- hover?: string;
142
- };
143
- iconColor?: {
144
- static?: string;
145
- hover?: string;
146
- };
147
- };
148
- badge?: {
149
- cart?: {
150
- color?: string;
151
- bgColor?: string;
152
- };
153
- };
154
- notifications?: {
155
- counter: {
156
- backgroundColor?: string;
157
- };
158
- text?: {
159
- color?: string;
160
- hoverColor?: string;
161
- };
162
- };
163
- };
164
- body?: {
165
- fontSize?: string;
166
- color?: string;
167
- backgroundColor?: string;
168
- };
169
- footer?: {
170
- mainFooter?: INavStyles;
171
- bottomFooter?: INavStyles;
172
- bottomFooterNavHeaderLink?: INavStyles;
173
- mediaIcons?: {
174
- color?: string;
175
- };
176
- };
177
- minimalHeader?: {
178
- desktop?: IMinimalHeaderProps;
179
- mobile?: IMinimalHeaderProps;
180
- };
181
- subHeaderBoxes?: {
182
- backgroundColor?: string;
183
- color?: string;
184
- contentBorder?: string;
185
- };
186
- breadcrumb?: {
187
- textTransform?: ITextTransform;
188
- backgroundColor?: string;
189
- color?: string;
190
- activeColor?: string;
191
- backIconColor?: string;
192
- };
193
- payment?: {
194
- selectedCardBackground?: string;
195
- selectedCardColor?: string;
196
- summary?: {
197
- listItemBackground?: string;
198
- };
199
- checkoutCards?: ICheckoutCards;
200
- };
201
- productPage?: {
202
- detailsBackgroundColor?: string;
203
- badges?: IProductBadges;
204
- priceReductionColor?: string;
205
- previouslyPurchased?: {
206
- color?: string;
207
- bgColor?: string;
208
- };
209
- };
210
- accountPage?: {
211
- passwordRequirements?: {
212
- backgroundColor?: string;
213
- };
214
- };
215
- orderConfirmation?: {
216
- iconColor?: string;
217
- backgroundColor?: string;
218
- };
219
- favorites?: {
220
- headerIconStyle?: IconNames;
221
- productColors?: {
222
- static?: ICommonColors;
223
- active?: ICommonColors;
224
- };
225
- };
226
- loyaltyCard?: {
227
- backgroundColor?: string;
228
- borderColor?: string;
229
- borderRadius?: string;
230
- cardTextColor?: string;
231
- dimensions?: ILoyaltyCardDimensions;
232
- input?: ILoyaltyCardInput;
233
- infoList?: ILoyaltyCardInfoList;
234
- };
235
- promoBadges?: {
236
- backgroundColor?: {
237
- promotion?: string;
238
- pointsBasedPromo?: string;
239
- };
240
- fontWeight?: IFontWeights;
241
- color?: {
242
- promotion?: string;
243
- pointsBasedPromo?: string;
244
- };
245
- };
246
- typography?: {
247
- webFonts?: string[];
248
- embeddedFonts?: IEmbeddedFont[];
249
- weights?: {
250
- normal?: IFontWeights;
251
- bold?: IFontWeights;
252
- };
253
- text?: {
254
- body?: ITextType;
255
- fontXS?: ITextType;
256
- fontSM?: ITextType;
257
- fontMD?: ITextType;
258
- fontLG?: ITextType;
259
- fontXL?: ITextType;
260
- };
261
- links?: {
262
- static?: ILinkType;
263
- hover?: ILinkType;
264
- clicked?: ILinkType;
265
- visited?: ILinkType;
266
- };
267
- };
268
- buttons?: {
269
- globalThemeBorderRadius?: string;
270
- globalThemeFontWeight?: IFontWeights;
271
- globalThemeFontFamily?: string;
272
- primary?: IButtonType;
273
- primaryLight?: IButtonType;
274
- secondary?: IButtonType;
275
- secondaryLight?: IButtonType;
276
- tertiary?: IButtonType;
277
- iconPosition?: IIconPosition;
278
- checkout?: {
279
- borderRadius?: string;
280
- fontWeight?: IFontWeights;
281
- iconColor?: string;
282
- textTransform?: ITextTransform;
283
- static?: ICheckoutButtonColorType;
284
- hover?: ICheckoutButtonColorType;
285
- clicked?: ICheckoutButtonColorType;
286
- disabled?: ICheckoutButtonColorType;
287
- };
288
- filterSort?: IFilterSort;
289
- quantityStepper?: {
290
- borderColor?: string;
291
- borderRadius?: string;
292
- textTransform?: ITextTransform;
293
- numericInput?: {
294
- fontWeight?: IFontWeights;
295
- fontSize?: string;
296
- lineHeight?: string;
297
- letterSpacing?: string;
298
- static?: {
299
- bgColor?: string;
300
- color?: string;
301
- };
302
- focused?: {
303
- bgColor?: string;
304
- color?: string;
305
- };
306
- };
307
- plusMinusButtons?: {
308
- plusMinusIconBgColor?: string;
309
- plusMinusIconColor?: string;
310
- };
311
- };
312
- coupon?: {
313
- borderRadius?: string;
314
- borderStyle?: 'dashed' | 'solid';
315
- fontWeight?: IFontWeights;
316
- static?: IQSButtonColorType;
317
- hover?: IQSButtonColorType;
318
- clicked?: IQSButtonColorType;
319
- clipped?: ICouponClippedBtnColorType;
320
- };
321
- miniCart?: {
322
- textTransform?: ITextTransform;
323
- backgroundColor?: string;
324
- borderRadius?: string;
325
- activeBackgroundColor?: string;
326
- hoverBackgroundColor?: string;
327
- color?: string;
328
- activeColor?: string;
329
- mobileColor?: string;
330
- iconColor?: string;
331
- activeIconColor?: string;
332
- mobileIconColor?: string;
333
- tabletIconColor?: string;
334
- desktopIconSize?: string;
335
- mobileIconSize?: string;
336
- };
337
- addToCart?: {
338
- borderRadius?: string;
339
- fontWeight?: IFontWeights;
340
- textTransform?: ITextTransform;
341
- static?: IAddToCartButton;
342
- hover?: IAddToCartButton;
343
- clicked?: IAddToCartButton;
344
- disabled?: IAddToCartButton;
345
- };
346
- pills?: {
347
- borderRadius?: string;
348
- textTransform?: ITextTransform;
349
- active?: IPillButtons;
350
- small?: IPillButtons;
351
- regular?: IPillButtons;
352
- };
353
- facets?: {
354
- borderRadius?: string;
355
- textTransform?: ITextTransform;
356
- fontWeight?: IFontWeights;
357
- active?: IFacets;
358
- small?: IFacets;
359
- regular?: IFacets;
360
- };
361
- sliderArrows?: {
362
- backgroundColor?: string;
363
- sideBorderColor?: string;
364
- iconColor?: string;
365
- };
366
- activeAddress?: {
367
- backgroundColor?: string;
368
- borderColor?: string;
369
- };
370
- timeSlotPaginationDay?: {
371
- selected?: {
372
- backgroundColor?: string;
373
- };
374
- };
375
- };
376
- carousel?: {
377
- bannerBackgroundColor?: string;
378
- carouselPagination?: {
379
- dotBackground?: string;
380
- activeDotBackground?: string;
381
- wrapperBackground?: string;
382
- wrapperHeight?: string;
383
- };
384
- carouselArrows?: {
385
- borderRadius?: string;
386
- backgroundColor?: string;
387
- activeBackgroundColor?: string;
388
- iconColor?: string;
389
- buttonDimension?: number;
390
- };
391
- };
392
- modal?: {
393
- header?: {
394
- mobileBackgroundColor?: string;
395
- };
396
- storeIcon?: {
397
- bgColor?: string;
398
- borderColor?: string;
399
- color?: string;
400
- hoverBGColor?: string;
401
- hoverBorderColor?: string;
402
- iconColor?: string;
403
- };
404
- };
405
- selectedOption?: {
406
- bgColor?: string;
407
- };
408
- input?: {
409
- borderRadius?: string;
410
- static?: IInputFields;
411
- hover?: IInputFields;
412
- focus?: IInputFields;
413
- disabled?: IInputFields;
414
- };
415
- productGrid?: {
416
- borderColor?: string;
417
- };
418
- checkoutStepColors?: {
419
- active?: string;
420
- default?: string;
421
- disabled?: string;
422
- };
423
- logoHeight?: IThemeLogoHeights;
424
- stsThemeStyles?: ISTSThemeInterface;
425
- stsLogoWidth?: string;
426
- globalAnimations?: IThemeGlobalAnimations;
427
- metadata?: IThemeMetadata;
428
- scripts?: IThemeScripts;
429
- }
430
- export interface IThemeScripts {
431
- [key: string]: string;
432
- }
433
- interface IInputFields {
434
- bgColor?: string;
435
- borderColor?: string;
436
- color?: string;
437
- placeholderColor?: string;
438
- }
439
-
440
- interface ICouponClippedBtnColorType extends IQSButtonColorType {
441
- clippedIconColor?: string;
442
- }
443
- interface IButtonType {
444
- borderRadius?: string;
445
- clicked?: IButtonColorType;
446
- disabled?: IButtonColorType;
447
- fontWeight?: IFontWeights;
448
- hover?: IButtonColorType;
449
- static?: IButtonColorType;
450
- textTransform?: ITextTransform;
451
- }
452
- type ITextTransform =
453
- | 'none'
454
- | 'capitalize'
455
- | 'uppercase'
456
- | 'lowercase'
457
- | 'initial'
458
- | 'inherit';
459
-
460
- type ITextPosition = 'left' | 'center' | 'right';
461
-
462
- interface IFilterSort extends ICommonColors {
463
- borderRadius?: string;
464
- }
465
- interface ICommonColors {
466
- color?: string;
467
- hoverColor?: string;
468
- }
469
- interface IQSButtonColorType {
470
- bgColor?: string;
471
- borderColor?: string;
472
- color?: string;
473
- couponIconColor?: string;
474
- }
475
- interface ICheckoutButtonColorType {
476
- bgColor?: string;
477
- borderColor?: string;
478
- color?: string;
479
- }
480
- interface IButtonColorType {
481
- bgColor?: string;
482
- borderColor?: string;
483
- color?: string;
484
- iconColor?: string;
485
- }
486
- interface ITextType {
487
- color?: string;
488
- fontFamily?: string;
489
- fontSize?: string;
490
- fontWeight?: IFontWeights;
491
- capitalization?: ITextTransform;
492
- lineHeight?: string;
493
- letterSpacing?: string;
494
- }
495
- interface ILinkType {
496
- color?: string;
497
- textDecoration?: 'none' | 'underline';
498
- }
499
- export interface IGlobalTheme {
500
- BorderRadius?: string;
501
- FontFamily?: string;
502
- FontWeight?: IFontWeights;
503
- FontWeightBold?: IFontWeights;
504
- HeadlineFontFamily?: string;
505
- HeadlineFontWeight?: IFontWeights;
506
- baseFontSize?: string;
507
- bodyFontColor?: string;
508
- bodyBackgroundColor?: string;
509
- }
510
-
511
- export type IColors = IBrandColors & IUiColors;
512
-
513
- interface IBrandColors {
514
- primary1?: string;
515
- primary2?: string;
516
- primary3?: string;
517
- primary4?: string;
518
- primary5?: string;
519
- secondary1?: string;
520
- secondary2?: string;
521
- secondary3?: string;
522
- secondary4?: string;
523
- secondary5?: string;
524
- tertiary1?: string;
525
- tertiary2?: string;
526
- tertiary3?: string;
527
- tertiary4?: string;
528
- tertiary5?: string;
529
- }
530
- interface IUiColors {
531
- success?: string;
532
- successDark?: string;
533
- successLight?: string;
534
- warn?: string;
535
- warnDark?: string;
536
- warnLight?: string;
537
- alert?: string;
538
- alertDark?: string;
539
- alertLight?: string;
540
- promotion1?: string;
541
- promotion2?: string;
542
- greyscale1?: string;
543
- greyscale2?: string;
544
- greyscale3?: string;
545
- greyscale4?: string;
546
- greyscale5?: string;
547
- greyscale6?: string;
548
- greyscale7?: string;
549
- }
550
-
551
- export interface IInitializedEmptyTheme {
552
- exports?: any;
553
- }
554
-
555
- type IFontWeights =
556
- | 'normal'
557
- | 'bold'
558
- | 'bolder'
559
- | 'lighter'
560
- | number
561
- | 'initial'
562
- | 'inherit';
563
-
564
- interface INavBottom extends INavStyles {
565
- hoverColor?: string;
566
- textTransform?: ITextTransform;
567
- fontWeight?: IFontWeights;
568
- }
569
- interface INavStyles {
570
- color?: string;
571
- backgroundColor?: string;
572
- links?: {
573
- static?: ILinkType;
574
- hover?: ILinkType;
575
- clicked?: ILinkType;
576
- visited?: ILinkType;
577
- };
578
- }
579
-
580
- interface INavActiveColors {
581
- activeColor?: string;
582
- activeBackgroundColor?: string;
583
- }
584
-
585
- interface IHeaderLinksProps extends INavStyles, INavActiveColors {
586
- fontWeight?: IFontWeights;
587
- borderRadius?: string;
588
- }
589
-
590
- interface IHeaderActionLinksProps extends IHeaderLinksProps {
591
- fontFamily?: string;
592
- }
593
-
594
- interface IMinimalHeaderProps extends INavStyles {
595
- iconColor?: string;
596
- }
597
-
598
- interface IAddToCartButton {
599
- bgColor?: string;
600
- borderColor?: string;
601
- color?: string;
602
- iconColor?: string;
603
- }
604
-
605
- interface IFacets extends IPillButtons {
606
- iconColor?: string;
607
- }
608
- interface IPillButtons {
609
- fontWeight?: IFontWeights;
610
- fontWeightHover?: IFontWeights;
611
- color?: string;
612
- colorHover?: string;
613
- colorVisited?: string;
614
- backgroundColor?: string;
615
- borderColor?: string;
616
- borderColorSelected?: string;
617
- textDecoration?: 'none' | 'underline';
618
- textDecorationHover?: 'none' | 'underline';
619
- padding?: string;
620
- }
621
-
622
- interface IProductBadges {
623
- borderRadius?: string;
624
- }
625
-
626
- interface ICheckoutCards {
627
- borderRadius?: string;
628
- }
629
-
630
- interface ILoyaltyCardDimensions {
631
- width?: number;
632
- height?: number;
633
- }
634
-
635
- interface ILoyaltyCardIdFields {
636
- staticBorder?: string;
637
- hoverBorder?: string;
638
- activeBorder?: string;
639
- errorBorder?: string;
640
- }
641
-
642
- interface ILoyaltyCardInput {
643
- borderRadius?: string;
644
- backgroundColor?: string;
645
- borderColor?: string;
646
- idFields?: ILoyaltyCardIdFields;
647
- }
648
-
649
- interface ILoyaltyCardInfoList {
650
- color?: string;
651
- borderColor?: string;
652
- }
653
-
654
- export type IThemeAnimationsConfettiPlacesTypes = 'successModals';
655
- export interface IThemeGlobalAnimations {
656
- confettiAnimation?: IThemeAnimationConfettiPlaces;
657
- }
658
- export type IThemeAnimationConfettiPlaces = {
659
- [key in IThemeAnimationsConfettiPlacesTypes]?: IThemeAnimationsConfettiProps;
660
- };
661
- export interface IThemeAnimationsConfettiProps {
662
- colors?: string[];
663
- }
664
-
665
- export interface IEmbeddedFont {
666
- fontFamily?: string;
667
- sourceSet?: IEmbeddedFontSource[];
668
- fontWeight?: number;
669
- fontStyle?: string;
670
- }
671
-
672
- export interface IEmbeddedFontSource {
673
- url?: string;
674
- format?: string;
675
- }
package/tsconfig.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "module": "commonjs",
5
- "outDir": ".",
6
- "strict": true,
7
- "allowJs": true,
8
- "declaration": true,
9
- "emitDeclarationOnly": true
10
- },
11
- "include": ["src"],
12
- "exclude": ["node_modules", "**/__tests__/*"]
13
- }