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