@vygruppen/spor-react 13.1.0 → 13.1.1

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/index.d.cts CHANGED
@@ -2028,10 +2028,11 @@ declare const MenuContent: ({ children, ref, ...props }: MenuContentProps & {
2028
2028
  }) => react_jsx_runtime.JSX.Element;
2029
2029
  type MenuTriggerProps = {
2030
2030
  icon?: ReactNode;
2031
- } & Omit<ButtonProps, "variant" | "rightIcon" | "leftIcon"> & {
2031
+ withChevron?: boolean;
2032
+ } & Omit<ButtonProps, "rightIcon" | "leftIcon"> & {
2032
2033
  ref?: Ref<HTMLButtonElement>;
2033
2034
  };
2034
- declare const MenuTrigger: ({ icon, size, children, ref, ...props }: MenuTriggerProps) => react_jsx_runtime.JSX.Element;
2035
+ declare const MenuTrigger: ({ icon, size, children, ref, withChevron, ...props }: MenuTriggerProps) => react_jsx_runtime.JSX.Element;
2035
2036
  type MenuItemProps = {
2036
2037
  itemCommand?: string;
2037
2038
  leftIcon?: React.ReactNode;
package/dist/index.d.ts CHANGED
@@ -2028,10 +2028,11 @@ declare const MenuContent: ({ children, ref, ...props }: MenuContentProps & {
2028
2028
  }) => react_jsx_runtime.JSX.Element;
2029
2029
  type MenuTriggerProps = {
2030
2030
  icon?: ReactNode;
2031
- } & Omit<ButtonProps, "variant" | "rightIcon" | "leftIcon"> & {
2031
+ withChevron?: boolean;
2032
+ } & Omit<ButtonProps, "rightIcon" | "leftIcon"> & {
2032
2033
  ref?: Ref<HTMLButtonElement>;
2033
2034
  };
2034
- declare const MenuTrigger: ({ icon, size, children, ref, ...props }: MenuTriggerProps) => react_jsx_runtime.JSX.Element;
2035
+ declare const MenuTrigger: ({ icon, size, children, ref, withChevron, ...props }: MenuTriggerProps) => react_jsx_runtime.JSX.Element;
2035
2036
  type MenuItemProps = {
2036
2037
  itemCommand?: string;
2037
2038
  leftIcon?: React.ReactNode;
package/dist/index.mjs CHANGED
@@ -692,7 +692,7 @@ var badgeRecipie = defineRecipe({
692
692
  }
693
693
  },
694
694
  green: {
695
- backgroundColor: "surface.subtle",
695
+ backgroundColor: "surface.success",
696
696
  color: "text.success",
697
697
  "& svg": {
698
698
  color: "icon.success"
@@ -775,10 +775,19 @@ var badgeRecipie = defineRecipe({
775
775
  colorPalette: "blue",
776
776
  inverted: true,
777
777
  css: {
778
- backgroundColor: "badge.blue.surface.inverted",
779
- color: "badge.blue.text.inverted",
778
+ backgroundColor: {
779
+ _light: "darkBlue",
780
+ _dark: "lightBlue"
781
+ },
782
+ color: {
783
+ _light: "icyBlue",
784
+ _dark: "royal"
785
+ },
780
786
  "& svg": {
781
- color: "badge.blue.icon.inverted"
787
+ color: {
788
+ _light: "royal",
789
+ _dark: "icyBlue"
790
+ }
782
791
  }
783
792
  }
784
793
  },
@@ -786,10 +795,19 @@ var badgeRecipie = defineRecipe({
786
795
  colorPalette: "green",
787
796
  inverted: true,
788
797
  css: {
789
- backgroundColor: "badge.green.surface.inverted",
790
- color: "badge.green.text.inverted",
798
+ backgroundColor: {
799
+ _light: "darkTeal",
800
+ _dark: "seaMist"
801
+ },
802
+ color: {
803
+ _light: "mint",
804
+ _dark: "jungle"
805
+ },
791
806
  "& svg": {
792
- color: "badge.green.icon.inverted"
807
+ color: {
808
+ _light: "mint",
809
+ _dark: "jungle"
810
+ }
793
811
  }
794
812
  }
795
813
  },
@@ -797,10 +815,19 @@ var badgeRecipie = defineRecipe({
797
815
  colorPalette: "grey",
798
816
  inverted: true,
799
817
  css: {
800
- backgroundColor: "badge.grey.surface.inverted",
801
- color: "badge.grey.text.inverted",
818
+ backgroundColor: {
819
+ _light: "carbon",
820
+ _dark: "platinum"
821
+ },
822
+ color: {
823
+ _light: "white",
824
+ _dark: "darkGrey"
825
+ },
802
826
  "& svg": {
803
- color: "badge.grey.icon.inverted"
827
+ color: {
828
+ _light: "white",
829
+ _dark: "darkGrey"
830
+ }
804
831
  }
805
832
  }
806
833
  },
@@ -809,10 +836,19 @@ var badgeRecipie = defineRecipe({
809
836
  colorPalette: "cream",
810
837
  inverted: true,
811
838
  css: {
812
- backgroundColor: "badge.cream.surface.inverted",
813
- color: "badge.cream.text.inverted",
839
+ backgroundColor: {
840
+ _light: "coffee",
841
+ _dark: "blonde"
842
+ },
843
+ color: {
844
+ _light: "cornsilk",
845
+ _dark: "coffee"
846
+ },
814
847
  "& svg": {
815
- color: "badge.cream.icon.inverted"
848
+ color: {
849
+ _light: "cornsilk",
850
+ _dark: "coffee"
851
+ }
816
852
  }
817
853
  }
818
854
  },
@@ -820,10 +856,19 @@ var badgeRecipie = defineRecipe({
820
856
  colorPalette: "yellow",
821
857
  inverted: true,
822
858
  css: {
823
- backgroundColor: "badge.yellow.surface.inverted",
824
- color: "badge.yellow.text.inverted",
859
+ backgroundColor: {
860
+ _light: "bronze",
861
+ _dark: "banana"
862
+ },
863
+ color: {
864
+ _light: "cornsilk",
865
+ _dark: "coffee"
866
+ },
825
867
  "& svg": {
826
- color: "badge.yellow.icon.inverted"
868
+ color: {
869
+ _light: "cornsilk",
870
+ _dark: "coffee"
871
+ }
827
872
  }
828
873
  }
829
874
  },
@@ -831,10 +876,19 @@ var badgeRecipie = defineRecipe({
831
876
  colorPalette: "orange",
832
877
  inverted: true,
833
878
  css: {
834
- backgroundColor: "badge.orange.surface.inverted",
835
- color: "badge.orange.text.inverted",
879
+ backgroundColor: {
880
+ _light: "wood",
881
+ _dark: "champagne"
882
+ },
883
+ color: {
884
+ _light: "bisque",
885
+ _dark: "wood"
886
+ },
836
887
  "& svg": {
837
- color: "badge.orange.icon.inverted"
888
+ color: {
889
+ _light: "bisque",
890
+ _dark: "wood"
891
+ }
838
892
  }
839
893
  }
840
894
  },
@@ -842,10 +896,19 @@ var badgeRecipie = defineRecipe({
842
896
  colorPalette: "red",
843
897
  inverted: true,
844
898
  css: {
845
- backgroundColor: "badge.red.surface.inverted",
846
- color: "badge.red.text.inverted",
899
+ backgroundColor: {
900
+ _light: "burgundy",
901
+ _dark: "lightRed"
902
+ },
903
+ color: {
904
+ _light: "pink",
905
+ _dark: "maroon"
906
+ },
847
907
  "& svg": {
848
- color: "badge.red.icon.inverted"
908
+ color: {
909
+ _light: "pink",
910
+ _dark: "maroon"
911
+ }
849
912
  }
850
913
  }
851
914
  },
@@ -854,10 +917,19 @@ var badgeRecipie = defineRecipe({
854
917
  colorPalette: "neutral",
855
918
  inverted: true,
856
919
  css: {
857
- backgroundColor: "badge.surface.inverted",
858
- color: "badge.text.inverted",
920
+ backgroundColor: {
921
+ _light: "ink",
922
+ _dark: "white"
923
+ },
924
+ color: {
925
+ _light: "white",
926
+ _dark: "darkGrey"
927
+ },
859
928
  "& svg": {
860
- color: "badge.icon.inverted"
929
+ color: {
930
+ _light: "white",
931
+ _dark: "darkGrey"
932
+ }
861
933
  }
862
934
  }
863
935
  }
@@ -4105,6 +4177,7 @@ var MenuTrigger = ({
4105
4177
  size,
4106
4178
  children,
4107
4179
  ref,
4180
+ withChevron = true,
4108
4181
  ...props
4109
4182
  }) => {
4110
4183
  const { variant } = useMenuContext();
@@ -4124,7 +4197,7 @@ var MenuTrigger = ({
4124
4197
  variant: getButtonVariant(),
4125
4198
  size,
4126
4199
  ...props,
4127
- rightIcon: /* @__PURE__ */ jsx(
4200
+ rightIcon: withChevron && /* @__PURE__ */ jsx(
4128
4201
  ChevronIcon,
4129
4202
  {
4130
4203
  transform: open ? "rotate(180deg)" : void 0,