@open-tender/types 0.0.40 → 0.0.41

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.
@@ -545,6 +545,145 @@ export interface ConfigLink {
545
545
  color: string;
546
546
  hover: string;
547
547
  }
548
+ export interface ConfigThemeFont {
549
+ body: ConfigFont;
550
+ headings: ConfigFont;
551
+ headline: ConfigFont;
552
+ lineHeights: {
553
+ [keys in ConfigFontSizes]: string;
554
+ };
555
+ preface: ConfigFont;
556
+ sizes: {
557
+ [keys in ConfigFontSizes]: string;
558
+ };
559
+ }
560
+ export interface ConfigThemeInput {
561
+ bgColor: string;
562
+ bgColorFocus: string;
563
+ borderColor: string;
564
+ borderColorFocus: string;
565
+ borderStyle: string;
566
+ borderWidth: string;
567
+ borderWidthApp: string;
568
+ bottomBorderOnly: boolean;
569
+ boxShadow: string;
570
+ color: string;
571
+ colorFocus: string;
572
+ family: string;
573
+ fontMobile: string;
574
+ fontSize: string;
575
+ fontSizeMobile: string;
576
+ fontSmoothing: string;
577
+ iconLeft: string;
578
+ iconPadding: string;
579
+ label: {
580
+ fontSize: string;
581
+ left: string;
582
+ lineHeight: string;
583
+ offset: string;
584
+ padding: string;
585
+ top: string;
586
+ };
587
+ letterSpacing: string;
588
+ lineHeight: string;
589
+ padding: string;
590
+ paddingBottom: string;
591
+ paddingBottomActive: string;
592
+ paddingHorizontal: string;
593
+ paddingTop: string;
594
+ paddingTopActive: string;
595
+ paddingVertical: string;
596
+ placeholderColor: string;
597
+ radius: string;
598
+ selectPaddingBottom: string;
599
+ selectSize: string;
600
+ selectSizeMobile: string;
601
+ showIcon: boolean;
602
+ showLabel: boolean;
603
+ showOutline: boolean;
604
+ textTransform: string;
605
+ weight: string;
606
+ }
607
+ export interface ConfigThemeItem {
608
+ desktop: ConfigItem;
609
+ imageMaxHeight: string;
610
+ imageMinHeight: string;
611
+ imagePadding: string;
612
+ maxWidth: string;
613
+ mobile: ConfigItem;
614
+ padding: string;
615
+ }
616
+ export interface ConfigThemeLayout {
617
+ containerMaxWidth: string;
618
+ headerHeightApp: string;
619
+ headerHeightSite: string;
620
+ headerHeightSiteMobile: string;
621
+ margin: string;
622
+ marginMobile: string;
623
+ maxWidth: string;
624
+ navHeight: string;
625
+ navHeightApp: string;
626
+ navHeightMobile: string;
627
+ padding: string;
628
+ paddingMobile: string;
629
+ }
630
+ export interface ConfigThemeButtons {
631
+ colors: {
632
+ cart: ButtonColor;
633
+ cartHover: ButtonColor;
634
+ header: ButtonColor;
635
+ headerHover: ButtonColor;
636
+ large: ButtonColor & {
637
+ iconColor: string;
638
+ subtitleColor: string;
639
+ };
640
+ largeHover: ButtonColor & {
641
+ iconColor: string;
642
+ subtitleColor: string;
643
+ };
644
+ light: ButtonColor;
645
+ lightHover: ButtonColor;
646
+ primary: ButtonColor;
647
+ primaryHover: ButtonColor;
648
+ secondary: ButtonColor;
649
+ secondaryHover: ButtonColor;
650
+ };
651
+ sizes: {
652
+ big: Partial<ConfigButtonSize>;
653
+ default: Partial<ConfigButtonSize>;
654
+ header: Partial<ConfigButtonSize>;
655
+ large: Partial<ConfigButtonSize>;
656
+ small: Partial<ConfigButtonSize>;
657
+ };
658
+ }
659
+ export interface ConfigThemeCards {
660
+ default: Partial<ConfigCardColors>;
661
+ form: Partial<ConfigCardColors>;
662
+ menuItem: Partial<ConfigCardColors>;
663
+ modifier: Partial<ConfigCardColors>;
664
+ }
665
+ export interface ConfigThemeBorder {
666
+ color: string;
667
+ radius: string;
668
+ radiusSmall: string;
669
+ width: string;
670
+ widthApp: string;
671
+ }
672
+ export interface ConfigThemeCounts {
673
+ alerts: Partial<ConfigCountColors>;
674
+ quantity: Partial<ConfigCountColors>;
675
+ }
676
+ export interface ConfigThemeWelcome {
677
+ marginBottom: string;
678
+ marginTop: string;
679
+ subtitleLineHeight: string;
680
+ subtitleMarginTop: string;
681
+ subtitleSize: string;
682
+ textAlign: string;
683
+ titleLineHeight: string;
684
+ titleMarginLeft: string;
685
+ titleSize: string;
686
+ }
548
687
  export interface ConfigTheme {
549
688
  alert: {
550
689
  bgColor: string;
@@ -564,13 +703,7 @@ export interface ConfigTheme {
564
703
  toast: string;
565
704
  };
566
705
  boldWeight: string;
567
- border: {
568
- color: string;
569
- radius: string;
570
- radiusSmall: string;
571
- width: string;
572
- widthApp: string;
573
- };
706
+ border: ConfigThemeBorder;
574
707
  boxShadow: {
575
708
  appBig: string;
576
709
  appSmall: string;
@@ -583,41 +716,8 @@ export interface ConfigTheme {
583
716
  narrow: string;
584
717
  tablet: string;
585
718
  };
586
- buttons: {
587
- colors: {
588
- cart: ButtonColor;
589
- cartHover: ButtonColor;
590
- header: ButtonColor;
591
- headerHover: ButtonColor;
592
- large: ButtonColor & {
593
- iconColor: string;
594
- subtitleColor: string;
595
- };
596
- largeHover: ButtonColor & {
597
- iconColor: string;
598
- subtitleColor: string;
599
- };
600
- light: ButtonColor;
601
- lightHover: ButtonColor;
602
- primary: ButtonColor;
603
- primaryHover: ButtonColor;
604
- secondary: ButtonColor;
605
- secondaryHover: ButtonColor;
606
- };
607
- sizes: {
608
- big: Partial<ConfigButtonSize>;
609
- default: Partial<ConfigButtonSize>;
610
- header: Partial<ConfigButtonSize>;
611
- large: Partial<ConfigButtonSize>;
612
- small: Partial<ConfigButtonSize>;
613
- };
614
- };
615
- cards: {
616
- default: Partial<ConfigCardColors>;
617
- form: Partial<ConfigCardColors>;
618
- menuItem: Partial<ConfigCardColors>;
619
- modifier: Partial<ConfigCardColors>;
620
- };
719
+ buttons: ConfigThemeButtons;
720
+ cards: ConfigThemeCards;
621
721
  colors: {
622
722
  alert: string;
623
723
  allergens: string;
@@ -632,10 +732,7 @@ export interface ConfigTheme {
632
732
  title: string;
633
733
  toast: string;
634
734
  };
635
- counts: {
636
- alerts: Partial<ConfigCountColors>;
637
- quantity: Partial<ConfigCountColors>;
638
- };
735
+ counts: ConfigThemeCounts;
639
736
  error: {
640
737
  bgColor: string;
641
738
  color: string;
@@ -644,18 +741,7 @@ export interface ConfigTheme {
644
741
  iconSize: string;
645
742
  size: string;
646
743
  };
647
- fonts: {
648
- body: ConfigFont;
649
- headings: ConfigFont;
650
- headline: ConfigFont;
651
- lineHeights: {
652
- [keys in ConfigFontSizes]: string;
653
- };
654
- preface: ConfigFont;
655
- sizes: {
656
- [keys in ConfigFontSizes]: string;
657
- };
658
- };
744
+ fonts: ConfigThemeFont;
659
745
  header: {
660
746
  primary: string;
661
747
  stuck: string;
@@ -663,76 +749,9 @@ export interface ConfigTheme {
663
749
  icons: {
664
750
  strokeWidth: number;
665
751
  };
666
- inputs: {
667
- bgColor: string;
668
- bgColorFocus: string;
669
- borderColor: string;
670
- borderColorFocus: string;
671
- borderStyle: string;
672
- borderWidth: string;
673
- borderWidthApp: string;
674
- bottomBorderOnly: boolean;
675
- boxShadow: string;
676
- color: string;
677
- colorFocus: string;
678
- family: string;
679
- fontMobile: string;
680
- fontSize: string;
681
- fontSizeMobile: string;
682
- fontSmoothing: string;
683
- iconLeft: string;
684
- iconPadding: string;
685
- label: {
686
- fontSize: string;
687
- left: string;
688
- lineHeight: string;
689
- offset: string;
690
- padding: string;
691
- top: string;
692
- };
693
- letterSpacing: string;
694
- lineHeight: string;
695
- padding: string;
696
- paddingBottom: string;
697
- paddingBottomActive: string;
698
- paddingHorizontal: string;
699
- paddingTop: string;
700
- paddingTopActive: string;
701
- paddingVertical: string;
702
- placeholderColor: string;
703
- radius: string;
704
- selectPaddingBottom: string;
705
- selectSize: string;
706
- selectSizeMobile: string;
707
- showIcon: boolean;
708
- showLabel: boolean;
709
- showOutline: boolean;
710
- textTransform: string;
711
- weight: string;
712
- };
713
- item: {
714
- desktop: ConfigItem;
715
- imageMaxHeight: string;
716
- imageMinHeight: string;
717
- imagePadding: string;
718
- maxWidth: string;
719
- mobile: ConfigItem;
720
- padding: string;
721
- };
722
- layout: {
723
- containerMaxWidth: string;
724
- headerHeightApp: string;
725
- headerHeightSite: string;
726
- headerHeightSiteMobile: string;
727
- margin: string;
728
- marginMobile: string;
729
- maxWidth: string;
730
- navHeight: string;
731
- navHeightApp: string;
732
- navHeightMobile: string;
733
- padding: string;
734
- paddingMobile: string;
735
- };
752
+ inputs: ConfigThemeInput;
753
+ item: ConfigThemeItem;
754
+ layout: ConfigThemeLayout;
736
755
  lineHeight: string;
737
756
  links: {
738
757
  customize: ConfigLink;
@@ -758,16 +777,6 @@ export interface ConfigTheme {
758
777
  bgColor: string;
759
778
  color: string;
760
779
  };
761
- welcome: {
762
- marginBottom: string;
763
- marginTop: string;
764
- subtitleLineHeight: string;
765
- subtitleMarginTop: string;
766
- subtitleSize: string;
767
- textAlign: string;
768
- titleLineHeight: string;
769
- titleMarginLeft: string;
770
- titleSize: string;
771
- };
780
+ welcome: ConfigThemeWelcome;
772
781
  }
773
782
  export {};
@@ -545,6 +545,145 @@ export interface ConfigLink {
545
545
  color: string;
546
546
  hover: string;
547
547
  }
548
+ export interface ConfigThemeFont {
549
+ body: ConfigFont;
550
+ headings: ConfigFont;
551
+ headline: ConfigFont;
552
+ lineHeights: {
553
+ [keys in ConfigFontSizes]: string;
554
+ };
555
+ preface: ConfigFont;
556
+ sizes: {
557
+ [keys in ConfigFontSizes]: string;
558
+ };
559
+ }
560
+ export interface ConfigThemeInput {
561
+ bgColor: string;
562
+ bgColorFocus: string;
563
+ borderColor: string;
564
+ borderColorFocus: string;
565
+ borderStyle: string;
566
+ borderWidth: string;
567
+ borderWidthApp: string;
568
+ bottomBorderOnly: boolean;
569
+ boxShadow: string;
570
+ color: string;
571
+ colorFocus: string;
572
+ family: string;
573
+ fontMobile: string;
574
+ fontSize: string;
575
+ fontSizeMobile: string;
576
+ fontSmoothing: string;
577
+ iconLeft: string;
578
+ iconPadding: string;
579
+ label: {
580
+ fontSize: string;
581
+ left: string;
582
+ lineHeight: string;
583
+ offset: string;
584
+ padding: string;
585
+ top: string;
586
+ };
587
+ letterSpacing: string;
588
+ lineHeight: string;
589
+ padding: string;
590
+ paddingBottom: string;
591
+ paddingBottomActive: string;
592
+ paddingHorizontal: string;
593
+ paddingTop: string;
594
+ paddingTopActive: string;
595
+ paddingVertical: string;
596
+ placeholderColor: string;
597
+ radius: string;
598
+ selectPaddingBottom: string;
599
+ selectSize: string;
600
+ selectSizeMobile: string;
601
+ showIcon: boolean;
602
+ showLabel: boolean;
603
+ showOutline: boolean;
604
+ textTransform: string;
605
+ weight: string;
606
+ }
607
+ export interface ConfigThemeItem {
608
+ desktop: ConfigItem;
609
+ imageMaxHeight: string;
610
+ imageMinHeight: string;
611
+ imagePadding: string;
612
+ maxWidth: string;
613
+ mobile: ConfigItem;
614
+ padding: string;
615
+ }
616
+ export interface ConfigThemeLayout {
617
+ containerMaxWidth: string;
618
+ headerHeightApp: string;
619
+ headerHeightSite: string;
620
+ headerHeightSiteMobile: string;
621
+ margin: string;
622
+ marginMobile: string;
623
+ maxWidth: string;
624
+ navHeight: string;
625
+ navHeightApp: string;
626
+ navHeightMobile: string;
627
+ padding: string;
628
+ paddingMobile: string;
629
+ }
630
+ export interface ConfigThemeButtons {
631
+ colors: {
632
+ cart: ButtonColor;
633
+ cartHover: ButtonColor;
634
+ header: ButtonColor;
635
+ headerHover: ButtonColor;
636
+ large: ButtonColor & {
637
+ iconColor: string;
638
+ subtitleColor: string;
639
+ };
640
+ largeHover: ButtonColor & {
641
+ iconColor: string;
642
+ subtitleColor: string;
643
+ };
644
+ light: ButtonColor;
645
+ lightHover: ButtonColor;
646
+ primary: ButtonColor;
647
+ primaryHover: ButtonColor;
648
+ secondary: ButtonColor;
649
+ secondaryHover: ButtonColor;
650
+ };
651
+ sizes: {
652
+ big: Partial<ConfigButtonSize>;
653
+ default: Partial<ConfigButtonSize>;
654
+ header: Partial<ConfigButtonSize>;
655
+ large: Partial<ConfigButtonSize>;
656
+ small: Partial<ConfigButtonSize>;
657
+ };
658
+ }
659
+ export interface ConfigThemeCards {
660
+ default: Partial<ConfigCardColors>;
661
+ form: Partial<ConfigCardColors>;
662
+ menuItem: Partial<ConfigCardColors>;
663
+ modifier: Partial<ConfigCardColors>;
664
+ }
665
+ export interface ConfigThemeBorder {
666
+ color: string;
667
+ radius: string;
668
+ radiusSmall: string;
669
+ width: string;
670
+ widthApp: string;
671
+ }
672
+ export interface ConfigThemeCounts {
673
+ alerts: Partial<ConfigCountColors>;
674
+ quantity: Partial<ConfigCountColors>;
675
+ }
676
+ export interface ConfigThemeWelcome {
677
+ marginBottom: string;
678
+ marginTop: string;
679
+ subtitleLineHeight: string;
680
+ subtitleMarginTop: string;
681
+ subtitleSize: string;
682
+ textAlign: string;
683
+ titleLineHeight: string;
684
+ titleMarginLeft: string;
685
+ titleSize: string;
686
+ }
548
687
  export interface ConfigTheme {
549
688
  alert: {
550
689
  bgColor: string;
@@ -564,13 +703,7 @@ export interface ConfigTheme {
564
703
  toast: string;
565
704
  };
566
705
  boldWeight: string;
567
- border: {
568
- color: string;
569
- radius: string;
570
- radiusSmall: string;
571
- width: string;
572
- widthApp: string;
573
- };
706
+ border: ConfigThemeBorder;
574
707
  boxShadow: {
575
708
  appBig: string;
576
709
  appSmall: string;
@@ -583,41 +716,8 @@ export interface ConfigTheme {
583
716
  narrow: string;
584
717
  tablet: string;
585
718
  };
586
- buttons: {
587
- colors: {
588
- cart: ButtonColor;
589
- cartHover: ButtonColor;
590
- header: ButtonColor;
591
- headerHover: ButtonColor;
592
- large: ButtonColor & {
593
- iconColor: string;
594
- subtitleColor: string;
595
- };
596
- largeHover: ButtonColor & {
597
- iconColor: string;
598
- subtitleColor: string;
599
- };
600
- light: ButtonColor;
601
- lightHover: ButtonColor;
602
- primary: ButtonColor;
603
- primaryHover: ButtonColor;
604
- secondary: ButtonColor;
605
- secondaryHover: ButtonColor;
606
- };
607
- sizes: {
608
- big: Partial<ConfigButtonSize>;
609
- default: Partial<ConfigButtonSize>;
610
- header: Partial<ConfigButtonSize>;
611
- large: Partial<ConfigButtonSize>;
612
- small: Partial<ConfigButtonSize>;
613
- };
614
- };
615
- cards: {
616
- default: Partial<ConfigCardColors>;
617
- form: Partial<ConfigCardColors>;
618
- menuItem: Partial<ConfigCardColors>;
619
- modifier: Partial<ConfigCardColors>;
620
- };
719
+ buttons: ConfigThemeButtons;
720
+ cards: ConfigThemeCards;
621
721
  colors: {
622
722
  alert: string;
623
723
  allergens: string;
@@ -632,10 +732,7 @@ export interface ConfigTheme {
632
732
  title: string;
633
733
  toast: string;
634
734
  };
635
- counts: {
636
- alerts: Partial<ConfigCountColors>;
637
- quantity: Partial<ConfigCountColors>;
638
- };
735
+ counts: ConfigThemeCounts;
639
736
  error: {
640
737
  bgColor: string;
641
738
  color: string;
@@ -644,18 +741,7 @@ export interface ConfigTheme {
644
741
  iconSize: string;
645
742
  size: string;
646
743
  };
647
- fonts: {
648
- body: ConfigFont;
649
- headings: ConfigFont;
650
- headline: ConfigFont;
651
- lineHeights: {
652
- [keys in ConfigFontSizes]: string;
653
- };
654
- preface: ConfigFont;
655
- sizes: {
656
- [keys in ConfigFontSizes]: string;
657
- };
658
- };
744
+ fonts: ConfigThemeFont;
659
745
  header: {
660
746
  primary: string;
661
747
  stuck: string;
@@ -663,76 +749,9 @@ export interface ConfigTheme {
663
749
  icons: {
664
750
  strokeWidth: number;
665
751
  };
666
- inputs: {
667
- bgColor: string;
668
- bgColorFocus: string;
669
- borderColor: string;
670
- borderColorFocus: string;
671
- borderStyle: string;
672
- borderWidth: string;
673
- borderWidthApp: string;
674
- bottomBorderOnly: boolean;
675
- boxShadow: string;
676
- color: string;
677
- colorFocus: string;
678
- family: string;
679
- fontMobile: string;
680
- fontSize: string;
681
- fontSizeMobile: string;
682
- fontSmoothing: string;
683
- iconLeft: string;
684
- iconPadding: string;
685
- label: {
686
- fontSize: string;
687
- left: string;
688
- lineHeight: string;
689
- offset: string;
690
- padding: string;
691
- top: string;
692
- };
693
- letterSpacing: string;
694
- lineHeight: string;
695
- padding: string;
696
- paddingBottom: string;
697
- paddingBottomActive: string;
698
- paddingHorizontal: string;
699
- paddingTop: string;
700
- paddingTopActive: string;
701
- paddingVertical: string;
702
- placeholderColor: string;
703
- radius: string;
704
- selectPaddingBottom: string;
705
- selectSize: string;
706
- selectSizeMobile: string;
707
- showIcon: boolean;
708
- showLabel: boolean;
709
- showOutline: boolean;
710
- textTransform: string;
711
- weight: string;
712
- };
713
- item: {
714
- desktop: ConfigItem;
715
- imageMaxHeight: string;
716
- imageMinHeight: string;
717
- imagePadding: string;
718
- maxWidth: string;
719
- mobile: ConfigItem;
720
- padding: string;
721
- };
722
- layout: {
723
- containerMaxWidth: string;
724
- headerHeightApp: string;
725
- headerHeightSite: string;
726
- headerHeightSiteMobile: string;
727
- margin: string;
728
- marginMobile: string;
729
- maxWidth: string;
730
- navHeight: string;
731
- navHeightApp: string;
732
- navHeightMobile: string;
733
- padding: string;
734
- paddingMobile: string;
735
- };
752
+ inputs: ConfigThemeInput;
753
+ item: ConfigThemeItem;
754
+ layout: ConfigThemeLayout;
736
755
  lineHeight: string;
737
756
  links: {
738
757
  customize: ConfigLink;
@@ -758,16 +777,6 @@ export interface ConfigTheme {
758
777
  bgColor: string;
759
778
  color: string;
760
779
  };
761
- welcome: {
762
- marginBottom: string;
763
- marginTop: string;
764
- subtitleLineHeight: string;
765
- subtitleMarginTop: string;
766
- subtitleSize: string;
767
- textAlign: string;
768
- titleLineHeight: string;
769
- titleMarginLeft: string;
770
- titleSize: string;
771
- };
780
+ welcome: ConfigThemeWelcome;
772
781
  }
773
782
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "A library of types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",