@vygruppen/spor-react 12.8.0 → 12.8.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
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, PropsWithChildren, ComponentProps } from 'react';
3
3
  import * as _chakra_ui_react from '@chakra-ui/react';
4
- import { Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, Breadcrumb as Breadcrumb$1, RecipeVariantProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Checkbox as Checkbox$1, CheckboxGroupProps as CheckboxGroupProps$1, CheckboxCardRootProps, CheckboxCard, Fieldset as Fieldset$1, Input as Input$1, ListRootProps, NativeSelectFieldProps, NativeSelect as NativeSelect$1, RadioGroup as RadioGroup$1, SelectRootProps, SelectLabelProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, RadioCard as RadioCard$1, SeparatorProps, 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, Table as Table$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
4
+ import { Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, Breadcrumb as Breadcrumb$1, RecipeVariantProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCardRootProps, CheckboxCard, Fieldset as Fieldset$1, Input as Input$1, ListRootProps, NativeSelectFieldProps, NativeSelect as NativeSelect$1, RadioGroup as RadioGroup$1, SelectRootProps, SelectLabelProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, RadioCard as RadioCard$1, SeparatorProps, 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, Table as Table$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
5
5
  export { Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, ClientOnly, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnGroup, TableColumnHeader, TableColumnHeaderProps, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, VStack, VisuallyHidden, createListCollection, createSystem, defineConfig, defineRecipe, defineStyle, chakra as spor, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useToken } from '@chakra-ui/react';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { IconComponent } from '@vygruppen/spor-icon-react';
@@ -543,7 +543,7 @@ type FieldBaseProps = {
543
543
  errorText?: React$1.ReactNode;
544
544
  floatingLabel?: boolean;
545
545
  };
546
- type FieldProps = Omit<Field$1.RootProps, "label" | "onChange"> & React$1.PropsWithChildren<FieldVariantProps> & FieldBaseProps;
546
+ type FieldProps = Omit<Field$1.RootProps, "label" | "onChange" | "onBlur" | "onFocus" | "onClick" | "children"> & React$1.PropsWithChildren<FieldVariantProps> & FieldBaseProps;
547
547
  /**
548
548
  *
549
549
  * Field is a component that wraps around other input components, like `Input` and `Select`.
@@ -560,7 +560,7 @@ type FieldProps = Omit<Field$1.RootProps, "label" | "onChange"> & React$1.PropsW
560
560
  *
561
561
  * This component is not exported and should be used as a wrapper for other input components.
562
562
  */
563
- declare const Field: React$1.ForwardRefExoticComponent<Omit<Field$1.RootProps, "label" | "onChange"> & {
563
+ declare const Field: React$1.ForwardRefExoticComponent<Omit<Field$1.RootProps, "label" | "children" | "onFocus" | "onBlur" | "onChange" | "onClick"> & {
564
564
  children?: React$1.ReactNode | undefined;
565
565
  } & FieldBaseProps & React$1.RefAttributes<HTMLDivElement>>;
566
566
  declare const FieldErrorText: React$1.ForwardRefExoticComponent<Field$1.ErrorTextProps & React$1.RefAttributes<HTMLDivElement>>;
@@ -1097,11 +1097,8 @@ declare const Checkbox: React$1.ForwardRefExoticComponent<Checkbox$1.RootProps &
1097
1097
  rootRef?: React$1.Ref<HTMLLabelElement>;
1098
1098
  } & React$1.RefAttributes<HTMLInputElement>>;
1099
1099
 
1100
- type CheckboxGroupProps = Exclude<CheckboxGroupProps$1, "colorPalette" | "size" | "variant"> & {
1101
- direction?: "row" | "column";
1102
- children: React__default.ReactNode;
1103
- gap?: number | string;
1104
- [key: string]: any;
1100
+ type CheckboxGroupProps = React__default.ComponentProps<typeof CheckboxGroup$1> & {
1101
+ direction: "row" | "column";
1105
1102
  };
1106
1103
  /**
1107
1104
  * Used to group several checkboxes together. You can pass the default value, as well as whether or not they're all disabled
@@ -1122,8 +1119,12 @@ type CheckboxGroupProps = Exclude<CheckboxGroupProps$1, "colorPalette" | "size"
1122
1119
  * <Checkbox>Business</Checkbox>
1123
1120
  * <Checkbox>First Class</Checkbox>
1124
1121
  * </CheckboxGroup>
1122
+ * ```
1125
1123
  */
1126
- declare const CheckboxGroup: React__default.ForwardRefExoticComponent<Omit<CheckboxGroupProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
1124
+ declare const CheckboxGroup: {
1125
+ (props: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
1126
+ displayName: string;
1127
+ };
1127
1128
 
1128
1129
  type CheckBoxIcon = {
1129
1130
  default: React__default.ReactNode;
@@ -1656,7 +1657,7 @@ type SelectProps = SelectRootProps & FieldProps & {
1656
1657
  * @see https://spor.vy.no/components/select
1657
1658
  *
1658
1659
  */
1659
- declare const Select: React$1.ForwardRefExoticComponent<SelectRootProps<any> & Omit<_chakra_ui_react.FieldRootProps, "label" | "onChange"> & {
1660
+ declare const Select: React$1.ForwardRefExoticComponent<SelectRootProps<any> & Omit<_chakra_ui_react.FieldRootProps, "label" | "children" | "onFocus" | "onBlur" | "onChange" | "onClick"> & {
1660
1661
  children?: React$1.ReactNode | undefined;
1661
1662
  } & FieldBaseProps & {
1662
1663
  label?: string;
@@ -1831,7 +1832,7 @@ type TextareaProps = Exclude<TextareaProps$1, "size" | "colorPalette"> & FieldPr
1831
1832
  * Textarea has two variants core, and floating.
1832
1833
  *
1833
1834
  */
1834
- declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label" | "onChange"> & {
1835
+ declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label" | "children" | "onFocus" | "onBlur" | "onChange" | "onClick"> & {
1835
1836
  children?: ReactNode | undefined;
1836
1837
  } & FieldBaseProps & {
1837
1838
  variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | undefined>;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, PropsWithChildren, ComponentProps } from 'react';
3
3
  import * as _chakra_ui_react from '@chakra-ui/react';
4
- import { Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, Breadcrumb as Breadcrumb$1, RecipeVariantProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Checkbox as Checkbox$1, CheckboxGroupProps as CheckboxGroupProps$1, CheckboxCardRootProps, CheckboxCard, Fieldset as Fieldset$1, Input as Input$1, ListRootProps, NativeSelectFieldProps, NativeSelect as NativeSelect$1, RadioGroup as RadioGroup$1, SelectRootProps, SelectLabelProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, RadioCard as RadioCard$1, SeparatorProps, 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, Table as Table$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
4
+ import { Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, Breadcrumb as Breadcrumb$1, RecipeVariantProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCardRootProps, CheckboxCard, Fieldset as Fieldset$1, Input as Input$1, ListRootProps, NativeSelectFieldProps, NativeSelect as NativeSelect$1, RadioGroup as RadioGroup$1, SelectRootProps, SelectLabelProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, RadioCard as RadioCard$1, SeparatorProps, 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, Table as Table$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
5
5
  export { Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, ClientOnly, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnGroup, TableColumnHeader, TableColumnHeaderProps, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, VStack, VisuallyHidden, createListCollection, createSystem, defineConfig, defineRecipe, defineStyle, chakra as spor, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useToken } from '@chakra-ui/react';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { IconComponent } from '@vygruppen/spor-icon-react';
@@ -543,7 +543,7 @@ type FieldBaseProps = {
543
543
  errorText?: React$1.ReactNode;
544
544
  floatingLabel?: boolean;
545
545
  };
546
- type FieldProps = Omit<Field$1.RootProps, "label" | "onChange"> & React$1.PropsWithChildren<FieldVariantProps> & FieldBaseProps;
546
+ type FieldProps = Omit<Field$1.RootProps, "label" | "onChange" | "onBlur" | "onFocus" | "onClick" | "children"> & React$1.PropsWithChildren<FieldVariantProps> & FieldBaseProps;
547
547
  /**
548
548
  *
549
549
  * Field is a component that wraps around other input components, like `Input` and `Select`.
@@ -560,7 +560,7 @@ type FieldProps = Omit<Field$1.RootProps, "label" | "onChange"> & React$1.PropsW
560
560
  *
561
561
  * This component is not exported and should be used as a wrapper for other input components.
562
562
  */
563
- declare const Field: React$1.ForwardRefExoticComponent<Omit<Field$1.RootProps, "label" | "onChange"> & {
563
+ declare const Field: React$1.ForwardRefExoticComponent<Omit<Field$1.RootProps, "label" | "children" | "onFocus" | "onBlur" | "onChange" | "onClick"> & {
564
564
  children?: React$1.ReactNode | undefined;
565
565
  } & FieldBaseProps & React$1.RefAttributes<HTMLDivElement>>;
566
566
  declare const FieldErrorText: React$1.ForwardRefExoticComponent<Field$1.ErrorTextProps & React$1.RefAttributes<HTMLDivElement>>;
@@ -1097,11 +1097,8 @@ declare const Checkbox: React$1.ForwardRefExoticComponent<Checkbox$1.RootProps &
1097
1097
  rootRef?: React$1.Ref<HTMLLabelElement>;
1098
1098
  } & React$1.RefAttributes<HTMLInputElement>>;
1099
1099
 
1100
- type CheckboxGroupProps = Exclude<CheckboxGroupProps$1, "colorPalette" | "size" | "variant"> & {
1101
- direction?: "row" | "column";
1102
- children: React__default.ReactNode;
1103
- gap?: number | string;
1104
- [key: string]: any;
1100
+ type CheckboxGroupProps = React__default.ComponentProps<typeof CheckboxGroup$1> & {
1101
+ direction: "row" | "column";
1105
1102
  };
1106
1103
  /**
1107
1104
  * Used to group several checkboxes together. You can pass the default value, as well as whether or not they're all disabled
@@ -1122,8 +1119,12 @@ type CheckboxGroupProps = Exclude<CheckboxGroupProps$1, "colorPalette" | "size"
1122
1119
  * <Checkbox>Business</Checkbox>
1123
1120
  * <Checkbox>First Class</Checkbox>
1124
1121
  * </CheckboxGroup>
1122
+ * ```
1125
1123
  */
1126
- declare const CheckboxGroup: React__default.ForwardRefExoticComponent<Omit<CheckboxGroupProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
1124
+ declare const CheckboxGroup: {
1125
+ (props: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
1126
+ displayName: string;
1127
+ };
1127
1128
 
1128
1129
  type CheckBoxIcon = {
1129
1130
  default: React__default.ReactNode;
@@ -1656,7 +1657,7 @@ type SelectProps = SelectRootProps & FieldProps & {
1656
1657
  * @see https://spor.vy.no/components/select
1657
1658
  *
1658
1659
  */
1659
- declare const Select: React$1.ForwardRefExoticComponent<SelectRootProps<any> & Omit<_chakra_ui_react.FieldRootProps, "label" | "onChange"> & {
1660
+ declare const Select: React$1.ForwardRefExoticComponent<SelectRootProps<any> & Omit<_chakra_ui_react.FieldRootProps, "label" | "children" | "onFocus" | "onBlur" | "onChange" | "onClick"> & {
1660
1661
  children?: React$1.ReactNode | undefined;
1661
1662
  } & FieldBaseProps & {
1662
1663
  label?: string;
@@ -1831,7 +1832,7 @@ type TextareaProps = Exclude<TextareaProps$1, "size" | "colorPalette"> & FieldPr
1831
1832
  * Textarea has two variants core, and floating.
1832
1833
  *
1833
1834
  */
1834
- declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label" | "onChange"> & {
1835
+ declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label" | "children" | "onFocus" | "onBlur" | "onChange" | "onClick"> & {
1835
1836
  children?: ReactNode | undefined;
1836
1837
  } & FieldBaseProps & {
1837
1838
  variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | undefined>;
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { useSlotRecipe, Accordion as Accordion$1, Stack, Box, HStack, Progress, defineRecipe, chakra, Text, useRecipe, Circle, Skeleton as Skeleton$1, Button as Button$1, Group, Badge as Badge$1, Code as Code$1, Clipboard as Clipboard$1, IconButton as IconButton$1, useDisclosure, Alert as Alert$1, Span, Flex, Breadcrumb as Breadcrumb$1, ClientOnly as ClientOnly$1, Field, defineStyle, PopoverAnchor, useFieldContext, Popover as Popover$1, Portal, Dialog, createContext as createContext$1, Drawer as Drawer$1, Grid, GridItem, usePopoverContext, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCard, Fieldset as Fieldset$1, InputElement, Input as Input$1, NativeSelect as NativeSelect$1, useControllableState, createListCollection, RadioGroup as RadioGroup$1, Select as Select$1, useSelectContext, Switch as Switch$1, Textarea as Textarea$1, RadioCard as RadioCard$1, Separator as Separator$1, Link, List as List$1, Center, PopoverCloseTrigger, Pagination as Pagination$1, usePaginationContext, createToaster, Tabs as Tabs$1, Table as Table$1, defineSemanticTokens, defineSlotRecipe, defineTokens, defineAnimationStyles, defineGlobalStyles, defineTextStyles, createSystem, defaultBaseConfig, VisuallyHidden, defineConfig, ListItem, ChakraProvider, Toaster as Toaster$1, Toast, Icon } from '@chakra-ui/react';
1
+ import { useSlotRecipe, Accordion as Accordion$1, Stack, Box, HStack, Progress, defineRecipe, chakra, Text, useRecipe, Circle, Skeleton as Skeleton$1, Button as Button$1, Group, Badge as Badge$1, Code as Code$1, Clipboard as Clipboard$1, IconButton as IconButton$1, useDisclosure, Alert as Alert$1, Span, Flex, Breadcrumb as Breadcrumb$1, ClientOnly as ClientOnly$1, Field, defineStyle, PopoverAnchor, useFieldContext, Popover as Popover$1, Portal, Dialog, createContext as createContext$1, Drawer as Drawer$1, Grid, GridItem, usePopoverContext, Checkbox as Checkbox$1, CheckboxCard, Fieldset as Fieldset$1, InputElement, Input as Input$1, NativeSelect as NativeSelect$1, useControllableState, createListCollection, RadioGroup as RadioGroup$1, Select as Select$1, useSelectContext, Switch as Switch$1, Textarea as Textarea$1, RadioCard as RadioCard$1, Separator as Separator$1, Link, List as List$1, Center, PopoverCloseTrigger, Pagination as Pagination$1, usePaginationContext, createToaster, Tabs as Tabs$1, Table as Table$1, defineSemanticTokens, defineSlotRecipe, defineTokens, defineAnimationStyles, defineGlobalStyles, defineTextStyles, createSystem, defaultBaseConfig, VisuallyHidden, defineConfig, CheckboxGroup as CheckboxGroup$1, ListItem, ChakraProvider, Toaster as Toaster$1, Toast, Icon } from '@chakra-ui/react';
2
2
  export { Box, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, ClientOnly, Collapsible, Container, Em, Flex, For, FormatByte, FormatNumber, Grid, GridItem, HStack, Image, Kbd, LocaleProvider, Portal, Show, SimpleGrid, Spacer, Span, Stack, TableBody, TableCaption, TableCell, TableColumn, TableColumnGroup, TableColumnHeader, TableFooter, TableHeader, TableRoot, TableRow, VStack, VisuallyHidden, createListCollection, createSystem, defineConfig, defineRecipe, defineStyle, chakra as spor, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useToken } from '@chakra-ui/react';
3
3
  import { DropdownDownFill24Icon, CopyOutline18Icon, CheckmarkFill18Icon, CloseFill18Icon, CloseFill30Icon, CloseFill24Icon, ServiceFill24Icon, QuestionFill24Icon, ErrorOutline24Icon, ErrorFill24Icon, AltTransportFill24Icon, WarningFill24Icon, SuccessFill24Icon, InformationFill24Icon, DropdownDownFill18Icon, DropdownRightFill18Icon, CalendarOutline24Icon, ArrowLeftFill24Icon, CloseOutline24Icon, SearchOutline24Icon, InformationFill18Icon, WarningFill18Icon, ErrorFill18Icon, Forward15MediaControllerFill30Icon, Backward15MediaControllerFill30Icon, PauseMediaControllerFill24Icon, PlayMediaControllerFill24Icon, NextMediaControllerFill30Icon, PreviousMediaControllerFill30Icon, ArrowRightFill18Icon, DropdownLeftOutline18Icon, DropdownRightOutline18Icon, WalkFill30Icon, WalkFill24Icon, WalkFill18Icon, AltTransportFill30Icon, AltTransportFill18Icon, TramFill30Icon, TramFill24Icon, TramFill18Icon, SubwayFill30Icon, SubwayFill24Icon, SubwayFill18Icon, FerryFill30Icon, FerryFill24Icon, FerryFill18Icon, BusFill30Icon, BusFill24Icon, BusFill18Icon, ExpressBusFill30Icon, ExpressBusFill24Icon, ExpressBusFill18Icon, TrainFill30Icon, TrainFill24Icon, TrainFill18Icon, LinkOutOutline24Icon, LinkOutOutline18Icon, ArrowLeftOutline24Icon, ArrowRightOutline24Icon, DropdownLeftFill18Icon, SuccessFill18Icon } from '@vygruppen/spor-icon-react';
4
- import * as React28 from 'react';
5
- import React28__default, { forwardRef, createContext, useId, cloneElement, useEffect, useRef, isValidElement, useState, useMemo, useLayoutEffect, useContext } from 'react';
4
+ import * as React27 from 'react';
5
+ import React27__default, { forwardRef, createContext, useId, cloneElement, useEffect, useRef, isValidElement, useState, useMemo, useLayoutEffect, useContext } from 'react';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
7
  import { spinnerColorData, inlineLoaderColorData, contentLoaderData, fullScreenLoaderWhiteData, inlineLoaderDarkData, spinnerLightData, spinnerDarkData, fullScreenLoaderBlackData, inlineLoaderLightData } from '@vygruppen/spor-loader';
8
8
  import ReactLottie from 'lottie-react';
@@ -489,7 +489,7 @@ var texts = createTexts({
489
489
  en: `${value}% done`
490
490
  })
491
491
  });
492
- var SkeletonCircle = React28.forwardRef(function SkeletonCircle2(props, ref) {
492
+ var SkeletonCircle = React27.forwardRef(function SkeletonCircle2(props, ref) {
493
493
  const recipe = useRecipe({ key: "skeleton" });
494
494
  const [recipeProps, restProps] = recipe.splitVariantProps({
495
495
  loading: true,
@@ -739,7 +739,7 @@ var codeRecipie = defineRecipe({
739
739
  }
740
740
  });
741
741
  var StyledCode = chakra(Code$1, codeRecipie);
742
- var Code = React28__default.forwardRef(
742
+ var Code = React27__default.forwardRef(
743
743
  function Code2(props, ref) {
744
744
  return /* @__PURE__ */ jsx(StyledCode, { ...props, ref });
745
745
  }
@@ -779,7 +779,7 @@ var Text3 = forwardRef(
779
779
  return /* @__PURE__ */ jsx(Text, { ...resolvedProps, ...rest, ref });
780
780
  }
781
781
  );
782
- var ClipboardIcon = React28.forwardRef((props, ref) => {
782
+ var ClipboardIcon = React27.forwardRef((props, ref) => {
783
783
  return /* @__PURE__ */ jsx(
784
784
  Clipboard$1.Indicator,
785
785
  {
@@ -791,7 +791,7 @@ var ClipboardIcon = React28.forwardRef((props, ref) => {
791
791
  );
792
792
  });
793
793
  ClipboardIcon.displayName = "ClipboardIcon";
794
- var ClipboardCopyText = React28.forwardRef((props, ref) => {
794
+ var ClipboardCopyText = React27.forwardRef((props, ref) => {
795
795
  const { t } = useTranslation();
796
796
  return /* @__PURE__ */ jsx(
797
797
  Clipboard$1.Indicator,
@@ -804,7 +804,7 @@ var ClipboardCopyText = React28.forwardRef((props, ref) => {
804
804
  );
805
805
  });
806
806
  ClipboardCopyText.displayName = "ClipboardCopyText";
807
- var ClipboardButton = React28.forwardRef((props, ref) => {
807
+ var ClipboardButton = React27.forwardRef((props, ref) => {
808
808
  return /* @__PURE__ */ jsx(Clipboard$1.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { ref, size: "xs", leftIcon: /* @__PURE__ */ jsx(ClipboardIcon, {}), ...props, children: /* @__PURE__ */ jsx(ClipboardCopyText, {}) }) });
809
809
  });
810
810
  ClipboardButton.displayName = "ClipboardButton";
@@ -891,7 +891,7 @@ var FloatingActionButton = forwardRef(
891
891
  placement = "bottom right",
892
892
  ...props
893
893
  }, ref) => {
894
- const [isTextVisible, setIsTextVisible] = React28__default.useState(
894
+ const [isTextVisible, setIsTextVisible] = React27__default.useState(
895
895
  externalIsTextVisible === void 0 ? false : externalIsTextVisible
896
896
  );
897
897
  const scrollDirection = useScrollDirection();
@@ -932,11 +932,11 @@ var FloatingActionButton = forwardRef(
932
932
  );
933
933
  FloatingActionButton.displayName = "FloatingActionButton";
934
934
  var useScrollDirection = () => {
935
- const [scrollDirection, setScrollDirection] = React28__default.useState(null);
936
- const lastScrollPosition = React28__default.useRef(
935
+ const [scrollDirection, setScrollDirection] = React27__default.useState(null);
936
+ const lastScrollPosition = React27__default.useRef(
937
937
  globalThis.window === void 0 ? 0 : window.scrollY
938
938
  );
939
- React28__default.useEffect(() => {
939
+ React27__default.useEffect(() => {
940
940
  const onScroll = () => {
941
941
  const delta = window.scrollY - lastScrollPosition.current;
942
942
  if (delta === 0) {
@@ -1258,12 +1258,12 @@ var texts6 = createTexts({
1258
1258
  });
1259
1259
  var Breadcrumb = forwardRef(
1260
1260
  ({ children, ...props }, ref) => {
1261
- const validChildren = React28__default.Children.toArray(children).filter(
1262
- (element) => React28__default.isValidElement(element)
1261
+ const validChildren = React27__default.Children.toArray(children).filter(
1262
+ (element) => React27__default.isValidElement(element)
1263
1263
  );
1264
1264
  return /* @__PURE__ */ jsx(Breadcrumb$1.Root, { ref, ...props, children: /* @__PURE__ */ jsx(Breadcrumb$1.List, { children: validChildren.map((child, index) => {
1265
1265
  const isLast = index === validChildren.length - 1;
1266
- return /* @__PURE__ */ jsxs(React28__default.Fragment, { children: [
1266
+ return /* @__PURE__ */ jsxs(React27__default.Fragment, { children: [
1267
1267
  /* @__PURE__ */ jsx(Breadcrumb$1.Item, { children: child }),
1268
1268
  !isLast && /* @__PURE__ */ jsx(Breadcrumb$1.Separator, { "aria-hidden": "true", children: /* @__PURE__ */ jsx(DropdownRightFill18Icon, {}) })
1269
1269
  ] }, index);
@@ -1293,7 +1293,7 @@ function ColorModeIcon() {
1293
1293
  const { colorMode } = useColorMode();
1294
1294
  return colorMode === "dark" ? /* @__PURE__ */ jsx(LuMoon, {}) : /* @__PURE__ */ jsx(LuSun, {});
1295
1295
  }
1296
- var ColorModeButton = React28.forwardRef(function ColorModeButton2(props, ref) {
1296
+ var ColorModeButton = React27.forwardRef(function ColorModeButton2(props, ref) {
1297
1297
  const { toggleColorMode } = useColorMode();
1298
1298
  return /* @__PURE__ */ jsx(ClientOnly$1, { fallback: /* @__PURE__ */ jsx(Skeleton$1, { boxSize: "8" }), children: /* @__PURE__ */ jsx(
1299
1299
  IconButton$1,
@@ -1357,7 +1357,7 @@ var labelStyles = defineStyle({
1357
1357
  opacity: 0.4
1358
1358
  }
1359
1359
  });
1360
- var Field3 = React28.forwardRef(
1360
+ var Field3 = React27.forwardRef(
1361
1361
  (props, ref) => {
1362
1362
  const {
1363
1363
  label,
@@ -1397,7 +1397,7 @@ var Field3 = React28.forwardRef(
1397
1397
  }
1398
1398
  );
1399
1399
  Field3.displayName = "Field";
1400
- var FieldErrorText = React28.forwardRef((props, ref) => {
1400
+ var FieldErrorText = React27.forwardRef((props, ref) => {
1401
1401
  return /* @__PURE__ */ jsx(Field.ErrorText, { ref, children: props.children });
1402
1402
  });
1403
1403
  FieldErrorText.displayName = "FieldErrorText";
@@ -2306,7 +2306,7 @@ var texts11 = createTexts({
2306
2306
  sv: "minuter"
2307
2307
  }
2308
2308
  });
2309
- var DialogContent = React28.forwardRef((props, ref) => {
2309
+ var DialogContent = React27.forwardRef((props, ref) => {
2310
2310
  const {
2311
2311
  children,
2312
2312
  portalled = true,
@@ -2320,7 +2320,7 @@ var DialogContent = React28.forwardRef((props, ref) => {
2320
2320
  ] });
2321
2321
  });
2322
2322
  DialogContent.displayName = "DialogContent";
2323
- var DialogCloseTrigger = React28.forwardRef(function DialogCloseTrigger2(props, ref) {
2323
+ var DialogCloseTrigger = React27.forwardRef(function DialogCloseTrigger2(props, ref) {
2324
2324
  return /* @__PURE__ */ jsx(Dialog.CloseTrigger, { ref, position: "absolute", ...props, asChild: true, children: /* @__PURE__ */ jsx(CloseButton, { size: "md" }) });
2325
2325
  });
2326
2326
  var DialogRoot = Dialog.Root;
@@ -2480,7 +2480,7 @@ var CardSelectTrigger = forwardRef(
2480
2480
  }
2481
2481
  );
2482
2482
  CardSelectTrigger.displayName = "CardSelectTrigger";
2483
- var Checkbox = React28.forwardRef(
2483
+ var Checkbox = React27.forwardRef(
2484
2484
  (props, ref) => {
2485
2485
  const { children, inputProps, rootRef, ...rest } = props;
2486
2486
  return /* @__PURE__ */ jsxs(Checkbox$1.Root, { ref: rootRef, ...rest, children: [
@@ -2491,12 +2491,10 @@ var Checkbox = React28.forwardRef(
2491
2491
  }
2492
2492
  );
2493
2493
  Checkbox.displayName = "Checkbox";
2494
- var CheckboxGroup = forwardRef(
2495
- (props, ref) => {
2496
- const { direction = "row", children, gap = 1, ...rest } = props;
2497
- return /* @__PURE__ */ jsx(CheckboxGroup$1, { ref, ...rest, children: /* @__PURE__ */ jsx(Stack, { direction, gap, children }) });
2498
- }
2499
- );
2494
+ var CheckboxGroup = (props) => {
2495
+ const { direction = "row", children, gap = 1, ...rest } = props;
2496
+ return /* @__PURE__ */ jsx(CheckboxGroup$1, { ...rest, children: /* @__PURE__ */ jsx(Stack, { direction, gap, children }) });
2497
+ };
2500
2498
  CheckboxGroup.displayName = "CheckboxGroup";
2501
2499
  var ChoiceChip = forwardRef(
2502
2500
  ({ children, icon, onCheckedChange, ...rootProps }, ref) => {
@@ -2873,7 +2871,7 @@ function Option({ item, state }) {
2873
2871
  }, []);
2874
2872
  return /* @__PURE__ */ jsx(OptionContext.Provider, { value: { labelProps, descriptionProps }, children: /* @__PURE__ */ jsx(ListItem, { ...optionProps, ...dataFields, ref, css: styles.item, children: item.rendered }) });
2875
2873
  }
2876
- var OptionContext = React28__default.createContext({
2874
+ var OptionContext = React27__default.createContext({
2877
2875
  labelProps: {},
2878
2876
  descriptionProps: {}
2879
2877
  });
@@ -2908,7 +2906,7 @@ function ListBoxSection({ section, state }) {
2908
2906
  ) })
2909
2907
  ] }) });
2910
2908
  }
2911
- var NativeSelect = React28.forwardRef(function NativeSelect2(props, ref) {
2909
+ var NativeSelect = React27.forwardRef(function NativeSelect2(props, ref) {
2912
2910
  const {
2913
2911
  children,
2914
2912
  variant = "core",
@@ -2955,7 +2953,7 @@ var NativeSelect = React28.forwardRef(function NativeSelect2(props, ref) {
2955
2953
  }
2956
2954
  );
2957
2955
  });
2958
- var NumericStepper = React28__default.forwardRef((props, ref) => {
2956
+ var NumericStepper = React27__default.forwardRef((props, ref) => {
2959
2957
  const {
2960
2958
  name: nameProp,
2961
2959
  id: idProp,
@@ -3062,7 +3060,7 @@ var NumericStepper = React28__default.forwardRef((props, ref) => {
3062
3060
  ] });
3063
3061
  });
3064
3062
  NumericStepper.displayName = "NumericStepper";
3065
- var VerySmallButton = React28__default.forwardRef((props, ref) => {
3063
+ var VerySmallButton = React27__default.forwardRef((props, ref) => {
3066
3064
  const recipe = useSlotRecipe({ key: "numericStepper" });
3067
3065
  const styles = recipe({ colorPalette: "default" });
3068
3066
  return /* @__PURE__ */ jsx(
@@ -3190,7 +3188,7 @@ var PasswordInput = forwardRef(
3190
3188
  }
3191
3189
  );
3192
3190
  PasswordInput.displayName = "PasswordInput";
3193
- var VisibilityTrigger = React28__default.forwardRef(
3191
+ var VisibilityTrigger = React27__default.forwardRef(
3194
3192
  (props, ref) => {
3195
3193
  return /* @__PURE__ */ jsx(
3196
3194
  Button$1,
@@ -3426,7 +3424,7 @@ var texts17 = createTexts({
3426
3424
  en: "Reset search field"
3427
3425
  }
3428
3426
  });
3429
- var Select = React28.forwardRef(
3427
+ var Select = React27.forwardRef(
3430
3428
  (props, ref) => {
3431
3429
  const {
3432
3430
  variant = "core",
@@ -3469,7 +3467,7 @@ var SelectLabel = (props) => {
3469
3467
  );
3470
3468
  };
3471
3469
  Select.displayName = "Select";
3472
- var SelectItem = React28.forwardRef(
3470
+ var SelectItem = React27.forwardRef(
3473
3471
  (props, ref) => {
3474
3472
  const { item, children, description, ...rest } = props;
3475
3473
  const recipe = useSlotRecipe({ key: "select" });
@@ -3484,14 +3482,14 @@ var SelectItem = React28.forwardRef(
3484
3482
  }
3485
3483
  );
3486
3484
  SelectItem.displayName = "SelectItem";
3487
- var SelectItemGroup = React28.forwardRef(function SelectItemGroup2(props, ref) {
3485
+ var SelectItemGroup = React27.forwardRef(function SelectItemGroup2(props, ref) {
3488
3486
  const { children, label, ...rest } = props;
3489
3487
  return /* @__PURE__ */ jsxs(Select$1.ItemGroup, { ...rest, ref, children: [
3490
3488
  /* @__PURE__ */ jsx(Select$1.ItemGroupLabel, { children: label }),
3491
3489
  children
3492
3490
  ] });
3493
3491
  });
3494
- var SelectTrigger = React28.forwardRef(function SelectTrigger2(props, ref) {
3492
+ var SelectTrigger = React27.forwardRef(function SelectTrigger2(props, ref) {
3495
3493
  const { children, clearable, ...rest } = props;
3496
3494
  const recipe = useSlotRecipe({ key: "select" });
3497
3495
  const styles = recipe();
@@ -3503,7 +3501,7 @@ var SelectTrigger = React28.forwardRef(function SelectTrigger2(props, ref) {
3503
3501
  ] })
3504
3502
  ] });
3505
3503
  });
3506
- var SelectClearTrigger = React28.forwardRef(function SelectClearTrigger2(props, ref) {
3504
+ var SelectClearTrigger = React27.forwardRef(function SelectClearTrigger2(props, ref) {
3507
3505
  return /* @__PURE__ */ jsx(Select$1.ClearTrigger, { asChild: true, ...props, ref, children: /* @__PURE__ */ jsx(
3508
3506
  CloseButton,
3509
3507
  {
@@ -3514,11 +3512,11 @@ var SelectClearTrigger = React28.forwardRef(function SelectClearTrigger2(props,
3514
3512
  }
3515
3513
  ) });
3516
3514
  });
3517
- var SelectContent = React28.forwardRef(function SelectContent2(props, ref) {
3515
+ var SelectContent = React27.forwardRef(function SelectContent2(props, ref) {
3518
3516
  const { portalled = true, portalRef, ...rest } = props;
3519
3517
  return /* @__PURE__ */ jsx(Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsx(Select$1.Positioner, { children: /* @__PURE__ */ jsx(Select$1.Content, { ...rest, ref }) }) });
3520
3518
  });
3521
- var SelectValueText = React28.forwardRef(function SelectValueText2(props, ref) {
3519
+ var SelectValueText = React27.forwardRef(function SelectValueText2(props, ref) {
3522
3520
  const { children, withPlaceholder, placeholder, ...rest } = props;
3523
3521
  return /* @__PURE__ */ jsx(
3524
3522
  Select$1.ValueText,
@@ -4562,16 +4560,16 @@ NudgeTrigger.displayName = "NudgeTrigger";
4562
4560
  var NudgeContent = forwardRef(
4563
4561
  ({ showCloseButton = true, children, ...props }, ref) => {
4564
4562
  const [currentStep, setCurrentStep] = useState(1);
4565
- const childrenArray = React28__default.Children.toArray(children);
4563
+ const childrenArray = React27__default.Children.toArray(children);
4566
4564
  const { open } = usePopoverContext();
4567
4565
  useEffect(() => {
4568
4566
  setCurrentStep(1);
4569
4567
  }, [children, open]);
4570
4568
  const wizardPages = childrenArray.filter(
4571
- (child) => React28__default.isValidElement(child) && child.type.displayName === "NudgeWizardStep"
4569
+ (child) => React27__default.isValidElement(child) && child.type.displayName === "NudgeWizardStep"
4572
4570
  );
4573
4571
  const restChildren = childrenArray.filter(
4574
- (child) => !React28__default.isValidElement(child) || child.type.displayName !== "NudgeWizardStep"
4572
+ (child) => !React27__default.isValidElement(child) || child.type.displayName !== "NudgeWizardStep"
4575
4573
  );
4576
4574
  const totalSteps = wizardPages.length;
4577
4575
  const isLastStep = totalSteps === currentStep;
@@ -4660,7 +4658,7 @@ NudgeCloseTrigger.displayName = "NudgeCloseTrigger";
4660
4658
  var [RootPropsProvider, useRootProps] = createContext$1({
4661
4659
  name: "RootPropsProvider"
4662
4660
  });
4663
- var Pagination = React28.forwardRef(
4661
+ var Pagination = React27.forwardRef(
4664
4662
  (props, ref) => {
4665
4663
  const { getHref, children, ...rest } = props;
4666
4664
  const recipe = useSlotRecipe({ key: "pagination" });
@@ -4685,11 +4683,11 @@ var Pagination = React28.forwardRef(
4685
4683
  }
4686
4684
  );
4687
4685
  Pagination.displayName = "Pagination";
4688
- var PaginationEllipsis = React28.forwardRef((props, ref) => {
4686
+ var PaginationEllipsis = React27.forwardRef((props, ref) => {
4689
4687
  return /* @__PURE__ */ jsx(ListItem2, { children: /* @__PURE__ */ jsx(Pagination$1.Ellipsis, { ref, ...props, asChild: true, children: /* @__PURE__ */ jsx(Box, { cursor: "default", children: "..." }) }) });
4690
4688
  });
4691
4689
  PaginationEllipsis.displayName = "PaginationEllipsis";
4692
- var PaginationItem = React28.forwardRef((props, ref) => {
4690
+ var PaginationItem = React27.forwardRef((props, ref) => {
4693
4691
  const rootProps = useRootProps();
4694
4692
  const { t } = useTranslation();
4695
4693
  const { page, totalPages } = usePaginationContext();
@@ -4722,7 +4720,7 @@ var PaginationItem = React28.forwardRef((props, ref) => {
4722
4720
  ) });
4723
4721
  });
4724
4722
  PaginationItem.displayName = "PaginationItem";
4725
- var PaginationPrevTrigger = React28.forwardRef((props, ref) => {
4723
+ var PaginationPrevTrigger = React27.forwardRef((props, ref) => {
4726
4724
  const { page } = usePaginationContext();
4727
4725
  const recipe = useSlotRecipe({ key: "pagination" });
4728
4726
  const styles = recipe();
@@ -4762,7 +4760,7 @@ var PaginationPrevTrigger = React28.forwardRef((props, ref) => {
4762
4760
  ) });
4763
4761
  });
4764
4762
  PaginationPrevTrigger.displayName = "PaginationPrevTrigger";
4765
- var PaginationNextTrigger = React28.forwardRef((props, ref) => {
4763
+ var PaginationNextTrigger = React27.forwardRef((props, ref) => {
4766
4764
  const { page, totalPages } = usePaginationContext();
4767
4765
  const recipe = useSlotRecipe({ key: "pagination" });
4768
4766
  const styles = recipe();
@@ -4850,7 +4848,7 @@ PopoverTrigger.displayName = "PopoverTrigger";
4850
4848
  var PopoverContent = forwardRef(
4851
4849
  ({ children, showCloseButton = false, ...props }, ref) => {
4852
4850
  const { colorMode } = useColorMode();
4853
- const closeButtonRef = React28__default.useRef(null);
4851
+ const closeButtonRef = React27__default.useRef(null);
4854
4852
  const { open } = usePopoverContext();
4855
4853
  useEffect(() => {
4856
4854
  if (showCloseButton && open && closeButtonRef.current) {
@@ -5061,7 +5059,7 @@ var SporProvider = ({
5061
5059
  children
5062
5060
  ] }) }) });
5063
5061
  };
5064
- var StepperContext = React28__default.createContext(null);
5062
+ var StepperContext = React27__default.createContext(null);
5065
5063
  var StepperProvider = ({
5066
5064
  activeStep,
5067
5065
  children,
@@ -5078,7 +5076,7 @@ var StepperProvider = ({
5078
5076
  );
5079
5077
  };
5080
5078
  var useStepper = () => {
5081
- const context = React28__default.useContext(StepperContext);
5079
+ const context = React27__default.useContext(StepperContext);
5082
5080
  if (!context) {
5083
5081
  throw new Error(
5084
5082
  "useStepper must be used within a StepperProvider. Most likely, you forgot to wrap your StepperStep in a Stepper component"
@@ -7605,7 +7603,8 @@ var fieldSlotRecipe = defineSlotRecipe({
7605
7603
  textStyle: "xs",
7606
7604
  width: "fit-content",
7607
7605
  position: "absolute",
7608
- bottom: -5,
7606
+ top: "100%",
7607
+ // position below parent
7609
7608
  left: 3,
7610
7609
  zIndex: "dropdown",
7611
7610
  maxWidth: "50ch",