@open-tender/types 0.0.40 → 0.0.42

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,146 @@ 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 ConfigThemeInputLabel {
561
+ fontSize: string;
562
+ left: string;
563
+ lineHeight: string;
564
+ offset: string;
565
+ padding: string;
566
+ top: string;
567
+ }
568
+ export interface ConfigThemeInput {
569
+ bgColor: string;
570
+ bgColorFocus: string;
571
+ borderColor: string;
572
+ borderColorFocus: string;
573
+ borderStyle: string;
574
+ borderWidth: string;
575
+ borderWidthApp: string;
576
+ bottomBorderOnly: boolean;
577
+ boxShadow: string;
578
+ color: string;
579
+ colorFocus: string;
580
+ family: string;
581
+ fontMobile: string;
582
+ fontSize: string;
583
+ fontSizeMobile: string;
584
+ fontSmoothing: string;
585
+ iconLeft: string;
586
+ iconPadding: string;
587
+ label: ConfigThemeInputLabel;
588
+ letterSpacing: string;
589
+ lineHeight: string;
590
+ padding: string;
591
+ paddingBottom: string;
592
+ paddingBottomActive: string;
593
+ paddingHorizontal: string;
594
+ paddingTop: string;
595
+ paddingTopActive: string;
596
+ paddingVertical: string;
597
+ placeholderColor: string;
598
+ radius: string;
599
+ selectPaddingBottom: string;
600
+ selectSize: string;
601
+ selectSizeMobile: string;
602
+ showIcon: boolean;
603
+ showLabel: boolean;
604
+ showOutline: boolean;
605
+ textTransform: string;
606
+ weight: string;
607
+ }
608
+ export interface ConfigThemeItem {
609
+ desktop: ConfigItem;
610
+ imageMaxHeight: string;
611
+ imageMinHeight: string;
612
+ imagePadding: string;
613
+ maxWidth: string;
614
+ mobile: ConfigItem;
615
+ padding: string;
616
+ }
617
+ export interface ConfigThemeLayout {
618
+ containerMaxWidth: string;
619
+ headerHeightApp: string;
620
+ headerHeightSite: string;
621
+ headerHeightSiteMobile: string;
622
+ margin: string;
623
+ marginMobile: string;
624
+ maxWidth: string;
625
+ navHeight: string;
626
+ navHeightApp: string;
627
+ navHeightMobile: string;
628
+ padding: string;
629
+ paddingMobile: string;
630
+ }
631
+ export interface ConfigThemeButtons {
632
+ colors: {
633
+ cart: ButtonColor;
634
+ cartHover: ButtonColor;
635
+ header: ButtonColor;
636
+ headerHover: ButtonColor;
637
+ large: ButtonColor & {
638
+ iconColor: string;
639
+ subtitleColor: string;
640
+ };
641
+ largeHover: ButtonColor & {
642
+ iconColor: string;
643
+ subtitleColor: string;
644
+ };
645
+ light: ButtonColor;
646
+ lightHover: ButtonColor;
647
+ primary: ButtonColor;
648
+ primaryHover: ButtonColor;
649
+ secondary: ButtonColor;
650
+ secondaryHover: ButtonColor;
651
+ };
652
+ sizes: {
653
+ big: Partial<ConfigButtonSize>;
654
+ default: Partial<ConfigButtonSize>;
655
+ header: Partial<ConfigButtonSize>;
656
+ large: Partial<ConfigButtonSize>;
657
+ small: Partial<ConfigButtonSize>;
658
+ };
659
+ }
660
+ export interface ConfigThemeCards {
661
+ default: Partial<ConfigCardColors>;
662
+ form: Partial<ConfigCardColors>;
663
+ menuItem: Partial<ConfigCardColors>;
664
+ modifier: Partial<ConfigCardColors>;
665
+ }
666
+ export interface ConfigThemeBorder {
667
+ color: string;
668
+ radius: string;
669
+ radiusSmall: string;
670
+ width: string;
671
+ widthApp: string;
672
+ }
673
+ export interface ConfigThemeCounts {
674
+ alerts: Partial<ConfigCountColors>;
675
+ quantity: Partial<ConfigCountColors>;
676
+ }
677
+ export interface ConfigThemeWelcome {
678
+ marginBottom: string;
679
+ marginTop: string;
680
+ subtitleLineHeight: string;
681
+ subtitleMarginTop: string;
682
+ subtitleSize: string;
683
+ textAlign: string;
684
+ titleLineHeight: string;
685
+ titleMarginLeft: string;
686
+ titleSize: string;
687
+ }
548
688
  export interface ConfigTheme {
549
689
  alert: {
550
690
  bgColor: string;
@@ -564,13 +704,7 @@ export interface ConfigTheme {
564
704
  toast: string;
565
705
  };
566
706
  boldWeight: string;
567
- border: {
568
- color: string;
569
- radius: string;
570
- radiusSmall: string;
571
- width: string;
572
- widthApp: string;
573
- };
707
+ border: ConfigThemeBorder;
574
708
  boxShadow: {
575
709
  appBig: string;
576
710
  appSmall: string;
@@ -583,41 +717,8 @@ export interface ConfigTheme {
583
717
  narrow: string;
584
718
  tablet: string;
585
719
  };
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
- };
720
+ buttons: ConfigThemeButtons;
721
+ cards: ConfigThemeCards;
621
722
  colors: {
622
723
  alert: string;
623
724
  allergens: string;
@@ -632,10 +733,7 @@ export interface ConfigTheme {
632
733
  title: string;
633
734
  toast: string;
634
735
  };
635
- counts: {
636
- alerts: Partial<ConfigCountColors>;
637
- quantity: Partial<ConfigCountColors>;
638
- };
736
+ counts: ConfigThemeCounts;
639
737
  error: {
640
738
  bgColor: string;
641
739
  color: string;
@@ -644,18 +742,7 @@ export interface ConfigTheme {
644
742
  iconSize: string;
645
743
  size: string;
646
744
  };
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
- };
745
+ fonts: ConfigThemeFont;
659
746
  header: {
660
747
  primary: string;
661
748
  stuck: string;
@@ -663,76 +750,9 @@ export interface ConfigTheme {
663
750
  icons: {
664
751
  strokeWidth: number;
665
752
  };
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
- };
753
+ inputs: ConfigThemeInput;
754
+ item: ConfigThemeItem;
755
+ layout: ConfigThemeLayout;
736
756
  lineHeight: string;
737
757
  links: {
738
758
  customize: ConfigLink;
@@ -758,16 +778,6 @@ export interface ConfigTheme {
758
778
  bgColor: string;
759
779
  color: string;
760
780
  };
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
- };
781
+ welcome: ConfigThemeWelcome;
772
782
  }
773
783
  export {};
@@ -545,6 +545,146 @@ 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 ConfigThemeInputLabel {
561
+ fontSize: string;
562
+ left: string;
563
+ lineHeight: string;
564
+ offset: string;
565
+ padding: string;
566
+ top: string;
567
+ }
568
+ export interface ConfigThemeInput {
569
+ bgColor: string;
570
+ bgColorFocus: string;
571
+ borderColor: string;
572
+ borderColorFocus: string;
573
+ borderStyle: string;
574
+ borderWidth: string;
575
+ borderWidthApp: string;
576
+ bottomBorderOnly: boolean;
577
+ boxShadow: string;
578
+ color: string;
579
+ colorFocus: string;
580
+ family: string;
581
+ fontMobile: string;
582
+ fontSize: string;
583
+ fontSizeMobile: string;
584
+ fontSmoothing: string;
585
+ iconLeft: string;
586
+ iconPadding: string;
587
+ label: ConfigThemeInputLabel;
588
+ letterSpacing: string;
589
+ lineHeight: string;
590
+ padding: string;
591
+ paddingBottom: string;
592
+ paddingBottomActive: string;
593
+ paddingHorizontal: string;
594
+ paddingTop: string;
595
+ paddingTopActive: string;
596
+ paddingVertical: string;
597
+ placeholderColor: string;
598
+ radius: string;
599
+ selectPaddingBottom: string;
600
+ selectSize: string;
601
+ selectSizeMobile: string;
602
+ showIcon: boolean;
603
+ showLabel: boolean;
604
+ showOutline: boolean;
605
+ textTransform: string;
606
+ weight: string;
607
+ }
608
+ export interface ConfigThemeItem {
609
+ desktop: ConfigItem;
610
+ imageMaxHeight: string;
611
+ imageMinHeight: string;
612
+ imagePadding: string;
613
+ maxWidth: string;
614
+ mobile: ConfigItem;
615
+ padding: string;
616
+ }
617
+ export interface ConfigThemeLayout {
618
+ containerMaxWidth: string;
619
+ headerHeightApp: string;
620
+ headerHeightSite: string;
621
+ headerHeightSiteMobile: string;
622
+ margin: string;
623
+ marginMobile: string;
624
+ maxWidth: string;
625
+ navHeight: string;
626
+ navHeightApp: string;
627
+ navHeightMobile: string;
628
+ padding: string;
629
+ paddingMobile: string;
630
+ }
631
+ export interface ConfigThemeButtons {
632
+ colors: {
633
+ cart: ButtonColor;
634
+ cartHover: ButtonColor;
635
+ header: ButtonColor;
636
+ headerHover: ButtonColor;
637
+ large: ButtonColor & {
638
+ iconColor: string;
639
+ subtitleColor: string;
640
+ };
641
+ largeHover: ButtonColor & {
642
+ iconColor: string;
643
+ subtitleColor: string;
644
+ };
645
+ light: ButtonColor;
646
+ lightHover: ButtonColor;
647
+ primary: ButtonColor;
648
+ primaryHover: ButtonColor;
649
+ secondary: ButtonColor;
650
+ secondaryHover: ButtonColor;
651
+ };
652
+ sizes: {
653
+ big: Partial<ConfigButtonSize>;
654
+ default: Partial<ConfigButtonSize>;
655
+ header: Partial<ConfigButtonSize>;
656
+ large: Partial<ConfigButtonSize>;
657
+ small: Partial<ConfigButtonSize>;
658
+ };
659
+ }
660
+ export interface ConfigThemeCards {
661
+ default: Partial<ConfigCardColors>;
662
+ form: Partial<ConfigCardColors>;
663
+ menuItem: Partial<ConfigCardColors>;
664
+ modifier: Partial<ConfigCardColors>;
665
+ }
666
+ export interface ConfigThemeBorder {
667
+ color: string;
668
+ radius: string;
669
+ radiusSmall: string;
670
+ width: string;
671
+ widthApp: string;
672
+ }
673
+ export interface ConfigThemeCounts {
674
+ alerts: Partial<ConfigCountColors>;
675
+ quantity: Partial<ConfigCountColors>;
676
+ }
677
+ export interface ConfigThemeWelcome {
678
+ marginBottom: string;
679
+ marginTop: string;
680
+ subtitleLineHeight: string;
681
+ subtitleMarginTop: string;
682
+ subtitleSize: string;
683
+ textAlign: string;
684
+ titleLineHeight: string;
685
+ titleMarginLeft: string;
686
+ titleSize: string;
687
+ }
548
688
  export interface ConfigTheme {
549
689
  alert: {
550
690
  bgColor: string;
@@ -564,13 +704,7 @@ export interface ConfigTheme {
564
704
  toast: string;
565
705
  };
566
706
  boldWeight: string;
567
- border: {
568
- color: string;
569
- radius: string;
570
- radiusSmall: string;
571
- width: string;
572
- widthApp: string;
573
- };
707
+ border: ConfigThemeBorder;
574
708
  boxShadow: {
575
709
  appBig: string;
576
710
  appSmall: string;
@@ -583,41 +717,8 @@ export interface ConfigTheme {
583
717
  narrow: string;
584
718
  tablet: string;
585
719
  };
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
- };
720
+ buttons: ConfigThemeButtons;
721
+ cards: ConfigThemeCards;
621
722
  colors: {
622
723
  alert: string;
623
724
  allergens: string;
@@ -632,10 +733,7 @@ export interface ConfigTheme {
632
733
  title: string;
633
734
  toast: string;
634
735
  };
635
- counts: {
636
- alerts: Partial<ConfigCountColors>;
637
- quantity: Partial<ConfigCountColors>;
638
- };
736
+ counts: ConfigThemeCounts;
639
737
  error: {
640
738
  bgColor: string;
641
739
  color: string;
@@ -644,18 +742,7 @@ export interface ConfigTheme {
644
742
  iconSize: string;
645
743
  size: string;
646
744
  };
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
- };
745
+ fonts: ConfigThemeFont;
659
746
  header: {
660
747
  primary: string;
661
748
  stuck: string;
@@ -663,76 +750,9 @@ export interface ConfigTheme {
663
750
  icons: {
664
751
  strokeWidth: number;
665
752
  };
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
- };
753
+ inputs: ConfigThemeInput;
754
+ item: ConfigThemeItem;
755
+ layout: ConfigThemeLayout;
736
756
  lineHeight: string;
737
757
  links: {
738
758
  customize: ConfigLink;
@@ -758,16 +778,6 @@ export interface ConfigTheme {
758
778
  bgColor: string;
759
779
  color: string;
760
780
  };
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
- };
781
+ welcome: ConfigThemeWelcome;
772
782
  }
773
783
  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.42",
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",