@vygruppen/spor-react 13.3.0 → 13.3.2

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
@@ -2,7 +2,7 @@ import * as React$1 from 'react';
2
2
  import React__default, { PropsWithChildren, ReactNode, ComponentProps, Ref } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as _chakra_ui_react from '@chakra-ui/react';
5
- import { AccordionRootProps, RecipeVariantProps, Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, BreadcrumbRootProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, SystemStyleObject, RadioCard as RadioCard$1, SeparatorProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Box, ComboboxRootProps, Combobox as Combobox$1, ComboboxItemProps, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, Fieldset as Fieldset$1, CheckboxCardRootProps, Input as Input$1, TagRootProps, ListRootProps, MenuRootProps, MenuContentProps, MenuItemProps as MenuItemProps$1, MenuTriggerItemProps as MenuTriggerItemProps$1, MenuRadioItemGroupProps, MenuRadioItemProps, MenuItemGroupProps as MenuItemGroupProps$1, MenuCheckboxItemProps, MenuSeparatorProps, NativeSelectFieldProps, RadioGroup as RadioGroup$1, SelectRootProps, SelectLabelProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, LinkProps as LinkProps$1, List as List$1, UseProgressProps, SkeletonProps as SkeletonProps$1, CircleProps, Popover as Popover$1, Pagination as Pagination$1, ChakraProviderProps, SystemContext, TabsRootProps, Tabs as Tabs$1, TableRootProps, TableColumnHeaderProps as TableColumnHeaderProps$1, TableBodyProps as TableBodyProps$1, Tooltip as Tooltip$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
5
+ import { AccordionRootProps, RecipeVariantProps, Accordion as Accordion$1, AccordionItemProps, Alert as Alert$1, ConditionalValue, BreadcrumbRootProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, SystemStyleObject, RadioCard as RadioCard$1, SeparatorProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Box, ComboboxRootProps, Combobox as Combobox$1, ComboboxItemProps, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, Fieldset as Fieldset$1, CheckboxCardRootProps, Input as Input$1, TagRootProps, ListRootProps, MenuRootProps, MenuContentProps, MenuItemProps as MenuItemProps$1, MenuTriggerItemProps as MenuTriggerItemProps$1, MenuRadioItemGroupProps, MenuRadioItemProps, MenuItemGroupProps as MenuItemGroupProps$1, MenuCheckboxItemProps, MenuSeparatorProps, NativeSelectFieldProps, RadioGroup as RadioGroup$1, SelectRootProps, SelectLabelProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, LinkProps as LinkProps$1, List as List$1, UseProgressProps, SkeletonProps as SkeletonProps$1, CircleProps, Popover as Popover$1, Pagination as Pagination$1, ChakraProviderProps, SystemContext, TabsRootProps, Tabs as Tabs$1, TableRootProps, TableColumnHeaderProps as TableColumnHeaderProps$1, TableBodyProps as TableBodyProps$1, Tooltip as Tooltip$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
6
6
  export { AspectRatio, Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, ClientOnly, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Icon, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, SystemConfig, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnGroup, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, VStack, VisuallyHidden, Wrap, createIcon, createListCollection, createSystem, defineConfig, defineRecipe, defineSlotRecipe, defineStyle, mergeConfigs, chakra as spor, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useRecipe, useSlotRecipe, useToken } from '@chakra-ui/react';
7
7
  import { IconComponent } from '@vygruppen/spor-icon-react';
8
8
  import { CalendarDate, DateDuration, DateValue as DateValue$1 } from '@internationalized/date';
@@ -122,7 +122,7 @@ type AccordionItemContentProps = Accordion$1.ItemContentProps & {
122
122
  type ExpandableProps = Omit<AccordionProps & AccordionItemTriggerProps, "title"> & HeadingLevel & {
123
123
  title: ReactNode;
124
124
  };
125
- type ExpandableItemProps = HeadingLevel & {
125
+ type ExpandableItemProps = HeadingLevel & Omit<AccordionItemProps, "title"> & {
126
126
  value: string;
127
127
  title: ReactNode;
128
128
  children?: React.ReactNode;
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as React$1 from 'react';
2
2
  import React__default, { PropsWithChildren, ReactNode, ComponentProps, Ref } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as _chakra_ui_react from '@chakra-ui/react';
5
- import { AccordionRootProps, RecipeVariantProps, Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, BreadcrumbRootProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, SystemStyleObject, RadioCard as RadioCard$1, SeparatorProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Box, ComboboxRootProps, Combobox as Combobox$1, ComboboxItemProps, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, Fieldset as Fieldset$1, CheckboxCardRootProps, Input as Input$1, TagRootProps, ListRootProps, MenuRootProps, MenuContentProps, MenuItemProps as MenuItemProps$1, MenuTriggerItemProps as MenuTriggerItemProps$1, MenuRadioItemGroupProps, MenuRadioItemProps, MenuItemGroupProps as MenuItemGroupProps$1, MenuCheckboxItemProps, MenuSeparatorProps, NativeSelectFieldProps, RadioGroup as RadioGroup$1, SelectRootProps, SelectLabelProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, LinkProps as LinkProps$1, List as List$1, UseProgressProps, SkeletonProps as SkeletonProps$1, CircleProps, Popover as Popover$1, Pagination as Pagination$1, ChakraProviderProps, SystemContext, TabsRootProps, Tabs as Tabs$1, TableRootProps, TableColumnHeaderProps as TableColumnHeaderProps$1, TableBodyProps as TableBodyProps$1, Tooltip as Tooltip$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
5
+ import { AccordionRootProps, RecipeVariantProps, Accordion as Accordion$1, AccordionItemProps, Alert as Alert$1, ConditionalValue, BreadcrumbRootProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, SystemStyleObject, RadioCard as RadioCard$1, SeparatorProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Box, ComboboxRootProps, Combobox as Combobox$1, ComboboxItemProps, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, Fieldset as Fieldset$1, CheckboxCardRootProps, Input as Input$1, TagRootProps, ListRootProps, MenuRootProps, MenuContentProps, MenuItemProps as MenuItemProps$1, MenuTriggerItemProps as MenuTriggerItemProps$1, MenuRadioItemGroupProps, MenuRadioItemProps, MenuItemGroupProps as MenuItemGroupProps$1, MenuCheckboxItemProps, MenuSeparatorProps, NativeSelectFieldProps, RadioGroup as RadioGroup$1, SelectRootProps, SelectLabelProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, LinkProps as LinkProps$1, List as List$1, UseProgressProps, SkeletonProps as SkeletonProps$1, CircleProps, Popover as Popover$1, Pagination as Pagination$1, ChakraProviderProps, SystemContext, TabsRootProps, Tabs as Tabs$1, TableRootProps, TableColumnHeaderProps as TableColumnHeaderProps$1, TableBodyProps as TableBodyProps$1, Tooltip as Tooltip$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
6
6
  export { AspectRatio, Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, ClientOnly, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Icon, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, SystemConfig, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnGroup, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, VStack, VisuallyHidden, Wrap, createIcon, createListCollection, createSystem, defineConfig, defineRecipe, defineSlotRecipe, defineStyle, mergeConfigs, chakra as spor, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useRecipe, useSlotRecipe, useToken } from '@chakra-ui/react';
7
7
  import { IconComponent } from '@vygruppen/spor-icon-react';
8
8
  import { CalendarDate, DateDuration, DateValue as DateValue$1 } from '@internationalized/date';
@@ -122,7 +122,7 @@ type AccordionItemContentProps = Accordion$1.ItemContentProps & {
122
122
  type ExpandableProps = Omit<AccordionProps & AccordionItemTriggerProps, "title"> & HeadingLevel & {
123
123
  title: ReactNode;
124
124
  };
125
- type ExpandableItemProps = HeadingLevel & {
125
+ type ExpandableItemProps = HeadingLevel & Omit<AccordionItemProps, "title"> & {
126
126
  value: string;
127
127
  title: ReactNode;
128
128
  children?: React.ReactNode;
package/dist/index.mjs CHANGED
@@ -680,74 +680,52 @@ var badgeRecipie = defineRecipe({
680
680
  neutral: {
681
681
  backgroundColor: "surface",
682
682
  color: "text",
683
- "& svg": {
684
- color: "icon"
685
- }
683
+ "& svg": { color: "icon" }
686
684
  },
687
685
  grey: {
688
686
  backgroundColor: "surface.neutral",
689
687
  color: "text.neutral",
690
- "& svg": {
691
- color: "icon.neutral"
692
- }
688
+ "& svg": { color: "icon.neutral" }
693
689
  },
694
690
  green: {
695
691
  backgroundColor: "surface.success",
696
692
  color: "text.success",
697
- "& svg": {
698
- color: "icon.success"
699
- }
693
+ "& svg": { color: "icon.success" }
700
694
  },
701
695
  blue: {
702
696
  backgroundColor: "surface.info",
703
697
  color: "text.info",
704
- "& svg": {
705
- color: "icon.info"
706
- }
698
+ "& svg": { color: "icon.info" }
707
699
  },
708
700
  cream: {
709
701
  backgroundColor: "surface.warning",
710
702
  color: "text.warning",
711
- "& svg": {
712
- color: "icon.warning"
713
- }
703
+ "& svg": { color: "icon.warning" }
714
704
  },
715
705
  yellow: {
716
706
  backgroundColor: "surface.notice",
717
707
  color: "text.notice",
718
- "& svg": {
719
- color: "icon.notice"
720
- }
708
+ "& svg": { color: "icon.notice" }
721
709
  },
722
710
  orange: {
723
711
  backgroundColor: "surface.caution",
724
712
  color: "text.caution",
725
- "& svg": {
726
- color: "icon.caution"
727
- }
713
+ "& svg": { color: "icon.caution" }
728
714
  },
729
715
  red: {
730
716
  backgroundColor: "surface.critical",
731
717
  color: "text.critical",
732
- "& svg": {
733
- color: "icon.critical"
734
- }
718
+ "& svg": { color: "icon.critical" }
735
719
  },
736
720
  brightRed: {
737
- backgroundColor: {
738
- _light: "brightRed",
739
- _dark: "brightRed"
740
- },
741
- color: {
742
- _light: "pink",
743
- _dark: "pink"
744
- },
745
- "& svg": {
746
- color: {
747
- _light: "pink",
748
- _dark: "pink"
749
- }
750
- }
721
+ backgroundColor: { _light: "brightRed", _dark: "brightRed" },
722
+ color: { _light: "pink", _dark: "pink" },
723
+ "& svg": { color: { _light: "pink", _dark: "pink" } }
724
+ },
725
+ disabled: {
726
+ backgroundColor: "surface.disabled",
727
+ color: "text.disabled",
728
+ "& svg": { color: "icon.disabled" }
751
729
  }
752
730
  },
753
731
  size: {
@@ -773,11 +751,7 @@ var badgeRecipie = defineRecipe({
773
751
  borderRadius: "xs"
774
752
  }
775
753
  },
776
- attached: {
777
- true: {
778
- borderBottomRadius: "none"
779
- }
780
- },
754
+ attached: { true: { borderBottomRadius: "none" } },
781
755
  inverted: { true: {} }
782
756
  },
783
757
  defaultVariants: {
@@ -791,60 +765,27 @@ var badgeRecipie = defineRecipe({
791
765
  colorPalette: "blue",
792
766
  inverted: true,
793
767
  css: {
794
- backgroundColor: {
795
- _light: "darkBlue",
796
- _dark: "lightBlue"
797
- },
798
- color: {
799
- _light: "icyBlue",
800
- _dark: "royal"
801
- },
802
- "& svg": {
803
- color: {
804
- _light: "royal",
805
- _dark: "icyBlue"
806
- }
807
- }
768
+ backgroundColor: { _light: "darkBlue", _dark: "lightBlue" },
769
+ color: { _light: "icyBlue", _dark: "royal" },
770
+ "& svg": { color: { _light: "royal", _dark: "icyBlue" } }
808
771
  }
809
772
  },
810
773
  {
811
774
  colorPalette: "green",
812
775
  inverted: true,
813
776
  css: {
814
- backgroundColor: {
815
- _light: "darkTeal",
816
- _dark: "seaMist"
817
- },
818
- color: {
819
- _light: "mint",
820
- _dark: "jungle"
821
- },
822
- "& svg": {
823
- color: {
824
- _light: "mint",
825
- _dark: "jungle"
826
- }
827
- }
777
+ backgroundColor: { _light: "darkTeal", _dark: "seaMist" },
778
+ color: { _light: "mint", _dark: "jungle" },
779
+ "& svg": { color: { _light: "mint", _dark: "jungle" } }
828
780
  }
829
781
  },
830
782
  {
831
783
  colorPalette: "grey",
832
784
  inverted: true,
833
785
  css: {
834
- backgroundColor: {
835
- _light: "carbon",
836
- _dark: "platinum"
837
- },
838
- color: {
839
- _light: "white",
840
- _dark: "darkGrey"
841
- },
842
- "& svg": {
843
- color: {
844
- _light: "white",
845
- _dark: "darkGrey"
846
- }
847
- }
786
+ backgroundColor: { _light: "carbon", _dark: "platinum" },
787
+ color: { _light: "white", _dark: "darkGrey" },
788
+ "& svg": { color: { _light: "white", _dark: "darkGrey" } }
848
789
  }
849
790
  },
850
791
  {
@@ -852,80 +793,36 @@ var badgeRecipie = defineRecipe({
852
793
  colorPalette: "cream",
853
794
  inverted: true,
854
795
  css: {
855
- backgroundColor: {
856
- _light: "coffee",
857
- _dark: "blonde"
858
- },
859
- color: {
860
- _light: "cornsilk",
861
- _dark: "coffee"
862
- },
863
- "& svg": {
864
- color: {
865
- _light: "cornsilk",
866
- _dark: "coffee"
867
- }
868
- }
796
+ backgroundColor: { _light: "coffee", _dark: "blonde" },
797
+ color: { _light: "cornsilk", _dark: "coffee" },
798
+ "& svg": { color: { _light: "cornsilk", _dark: "coffee" } }
869
799
  }
870
800
  },
871
801
  {
872
802
  colorPalette: "yellow",
873
803
  inverted: true,
874
804
  css: {
875
- backgroundColor: {
876
- _light: "bronze",
877
- _dark: "banana"
878
- },
879
- color: {
880
- _light: "cornsilk",
881
- _dark: "coffee"
882
- },
883
- "& svg": {
884
- color: {
885
- _light: "cornsilk",
886
- _dark: "coffee"
887
- }
888
- }
805
+ backgroundColor: { _light: "bronze", _dark: "banana" },
806
+ color: { _light: "cornsilk", _dark: "coffee" },
807
+ "& svg": { color: { _light: "cornsilk", _dark: "coffee" } }
889
808
  }
890
809
  },
891
810
  {
892
811
  colorPalette: "orange",
893
812
  inverted: true,
894
813
  css: {
895
- backgroundColor: {
896
- _light: "wood",
897
- _dark: "champagne"
898
- },
899
- color: {
900
- _light: "bisque",
901
- _dark: "wood"
902
- },
903
- "& svg": {
904
- color: {
905
- _light: "bisque",
906
- _dark: "wood"
907
- }
908
- }
814
+ backgroundColor: { _light: "wood", _dark: "champagne" },
815
+ color: { _light: "bisque", _dark: "wood" },
816
+ "& svg": { color: { _light: "bisque", _dark: "wood" } }
909
817
  }
910
818
  },
911
819
  {
912
820
  colorPalette: "red",
913
821
  inverted: true,
914
822
  css: {
915
- backgroundColor: {
916
- _light: "burgundy",
917
- _dark: "lightRed"
918
- },
919
- color: {
920
- _light: "pink",
921
- _dark: "maroon"
922
- },
923
- "& svg": {
924
- color: {
925
- _light: "pink",
926
- _dark: "maroon"
927
- }
928
- }
823
+ backgroundColor: { _light: "burgundy", _dark: "lightRed" },
824
+ color: { _light: "pink", _dark: "maroon" },
825
+ "& svg": { color: { _light: "pink", _dark: "maroon" } }
929
826
  }
930
827
  },
931
828
  {
@@ -933,20 +830,9 @@ var badgeRecipie = defineRecipe({
933
830
  colorPalette: "neutral",
934
831
  inverted: true,
935
832
  css: {
936
- backgroundColor: {
937
- _light: "ink",
938
- _dark: "white"
939
- },
940
- color: {
941
- _light: "white",
942
- _dark: "darkGrey"
943
- },
944
- "& svg": {
945
- color: {
946
- _light: "white",
947
- _dark: "darkGrey"
948
- }
949
- }
833
+ backgroundColor: { _light: "ink", _dark: "white" },
834
+ color: { _light: "white", _dark: "darkGrey" },
835
+ "& svg": { color: { _light: "white", _dark: "darkGrey" } }
950
836
  }
951
837
  }
952
838
  ]
@@ -9051,7 +8937,7 @@ var datePickerSlotRecipe = defineSlotRecipe({
9051
8937
  },
9052
8938
  dateTimeSegment: {
9053
8939
  _focus: {
9054
- backgroundColor: "surface.ghost.active",
8940
+ backgroundColor: "surface.floating.active",
9055
8941
  color: "text"
9056
8942
  }
9057
8943
  },
@@ -11051,6 +10937,7 @@ var popoverSlotRecipe = defineSlotRecipe({
11051
10937
  outline: "0",
11052
10938
  transformOrigin: "var(--transform-origin)",
11053
10939
  maxHeight: "var(--available-height)",
10940
+ maxWidth: "var(--available-width)",
11054
10941
  _open: {
11055
10942
  animationStyle: "scale-fade-in",
11056
10943
  animationDuration: "fast"