@vygruppen/spor-react 12.24.10 → 12.24.12

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, ButtonProps as ButtonProps$1, RecipeVariantProps, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, RadioCard as RadioCard$1, SeparatorProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, ComboboxRootProps, Combobox as Combobox$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCard, CheckboxCardRootProps, Fieldset as Fieldset$1, Input as Input$1, ListRootProps, NativeSelect as NativeSelect$1, NativeSelectFieldProps, RadioGroup as RadioGroup$1, SelectRootProps, Select as Select$1, SystemStyleObject, SelectLabelProps, 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, Tabs as Tabs$1, TabsRootProps, Table as Table$1, TableBodyProps as TableBodyProps$1, TableColumnHeaderProps as TableColumnHeaderProps$1, TableRootProps, Tooltip as Tooltip$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, ButtonProps as ButtonProps$1, RecipeVariantProps, 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, ComboboxRootProps, Combobox as Combobox$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCard, CheckboxCardRootProps, Fieldset as Fieldset$1, Input as Input$1, ListRootProps, NativeSelect as NativeSelect$1, NativeSelectFieldProps, RadioGroup as RadioGroup$1, SelectRootProps, Select as Select$1, SelectLabelProps, 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, Tabs as Tabs$1, TabsRootProps, Table as Table$1, TableBodyProps as TableBodyProps$1, TableColumnHeaderProps as TableColumnHeaderProps$1, TableRootProps, Tooltip as Tooltip$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
5
5
  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';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { IconComponent } from '@vygruppen/spor-icon-react';
@@ -527,12 +527,13 @@ type Props$5 = {
527
527
  * Show two months side by side
528
528
  */
529
529
  dualView?: boolean;
530
+ css?: SystemStyleObject;
530
531
  };
531
532
  /**
532
533
  * Calendar component that displays a grid of days for a specific month.
533
534
  * Standard view with pagination, with the option to show dual months side by side.
534
535
  */
535
- declare function Calendar({ dualView }: Props$5): react_jsx_runtime.JSX.Element;
536
+ declare function Calendar({ dualView, css }: Props$5): react_jsx_runtime.JSX.Element;
536
537
 
537
538
  type Props$4 = {
538
539
  date: CalendarDate;
@@ -870,7 +871,9 @@ declare const DatePicker: React__default.ForwardRefExoticComponent<Omit<AriaDate
870
871
  overrideBorderColor?: string;
871
872
  isActive?: boolean;
872
873
  onClick?: () => void;
873
- } & FieldBaseProps & React__default.RefAttributes<HTMLDivElement>>;
874
+ } & FieldBaseProps & {
875
+ css?: SystemStyleObject;
876
+ } & React__default.RefAttributes<HTMLDivElement>>;
874
877
 
875
878
  type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue>, "onChange" | "errorMessage" | "isInvalid" | "isRequired"> & Pick<BoxProps, "minHeight"> & PropsWithChildren<DatePickerVariantProps> & CalendarVariants & {
876
879
  startLabel?: string;
@@ -3041,6 +3044,7 @@ type ProgressIndicatorProps = BoxProps & PropsWithChildren<ProgressIndicatorVari
3041
3044
  numberOfSteps: number;
3042
3045
  activeStep: number;
3043
3046
  colorPalette?: string;
3047
+ css?: SystemStyleObject;
3044
3048
  };
3045
3049
  /**
3046
3050
  * A progress indicator is used to show which step of a process a user is currently in
@@ -3062,6 +3066,7 @@ declare const ProgressIndicator: React__default.ForwardRefExoticComponent<BoxPro
3062
3066
  numberOfSteps: number;
3063
3067
  activeStep: number;
3064
3068
  colorPalette?: string;
3069
+ css?: SystemStyleObject;
3065
3070
  } & React__default.RefAttributes<HTMLDivElement>>;
3066
3071
 
3067
3072
  type SporProviderProps = Omit<ChakraProviderProps, "value"> & {
@@ -3200,6 +3205,7 @@ declare const Stepper: React$1.ForwardRefExoticComponent<{
3200
3205
  variant: "core" | "accent";
3201
3206
  /** Disables all clicks */
3202
3207
  disabled?: boolean;
3208
+ css?: SystemStyleObject;
3203
3209
  } & React$1.RefAttributes<HTMLDivElement>>;
3204
3210
 
3205
3211
  type StepperStepProps = PropsWithChildren<StepperVariantProps> & {
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, ButtonProps as ButtonProps$1, RecipeVariantProps, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, RadioCard as RadioCard$1, SeparatorProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, ComboboxRootProps, Combobox as Combobox$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCard, CheckboxCardRootProps, Fieldset as Fieldset$1, Input as Input$1, ListRootProps, NativeSelect as NativeSelect$1, NativeSelectFieldProps, RadioGroup as RadioGroup$1, SelectRootProps, Select as Select$1, SystemStyleObject, SelectLabelProps, 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, Tabs as Tabs$1, TabsRootProps, Table as Table$1, TableBodyProps as TableBodyProps$1, TableColumnHeaderProps as TableColumnHeaderProps$1, TableRootProps, Tooltip as Tooltip$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, ButtonProps as ButtonProps$1, RecipeVariantProps, 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, ComboboxRootProps, Combobox as Combobox$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCard, CheckboxCardRootProps, Fieldset as Fieldset$1, Input as Input$1, ListRootProps, NativeSelect as NativeSelect$1, NativeSelectFieldProps, RadioGroup as RadioGroup$1, SelectRootProps, Select as Select$1, SelectLabelProps, 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, Tabs as Tabs$1, TabsRootProps, Table as Table$1, TableBodyProps as TableBodyProps$1, TableColumnHeaderProps as TableColumnHeaderProps$1, TableRootProps, Tooltip as Tooltip$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
5
5
  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';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { IconComponent } from '@vygruppen/spor-icon-react';
@@ -527,12 +527,13 @@ type Props$5 = {
527
527
  * Show two months side by side
528
528
  */
529
529
  dualView?: boolean;
530
+ css?: SystemStyleObject;
530
531
  };
531
532
  /**
532
533
  * Calendar component that displays a grid of days for a specific month.
533
534
  * Standard view with pagination, with the option to show dual months side by side.
534
535
  */
535
- declare function Calendar({ dualView }: Props$5): react_jsx_runtime.JSX.Element;
536
+ declare function Calendar({ dualView, css }: Props$5): react_jsx_runtime.JSX.Element;
536
537
 
537
538
  type Props$4 = {
538
539
  date: CalendarDate;
@@ -870,7 +871,9 @@ declare const DatePicker: React__default.ForwardRefExoticComponent<Omit<AriaDate
870
871
  overrideBorderColor?: string;
871
872
  isActive?: boolean;
872
873
  onClick?: () => void;
873
- } & FieldBaseProps & React__default.RefAttributes<HTMLDivElement>>;
874
+ } & FieldBaseProps & {
875
+ css?: SystemStyleObject;
876
+ } & React__default.RefAttributes<HTMLDivElement>>;
874
877
 
875
878
  type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue>, "onChange" | "errorMessage" | "isInvalid" | "isRequired"> & Pick<BoxProps, "minHeight"> & PropsWithChildren<DatePickerVariantProps> & CalendarVariants & {
876
879
  startLabel?: string;
@@ -3041,6 +3044,7 @@ type ProgressIndicatorProps = BoxProps & PropsWithChildren<ProgressIndicatorVari
3041
3044
  numberOfSteps: number;
3042
3045
  activeStep: number;
3043
3046
  colorPalette?: string;
3047
+ css?: SystemStyleObject;
3044
3048
  };
3045
3049
  /**
3046
3050
  * A progress indicator is used to show which step of a process a user is currently in
@@ -3062,6 +3066,7 @@ declare const ProgressIndicator: React__default.ForwardRefExoticComponent<BoxPro
3062
3066
  numberOfSteps: number;
3063
3067
  activeStep: number;
3064
3068
  colorPalette?: string;
3069
+ css?: SystemStyleObject;
3065
3070
  } & React__default.RefAttributes<HTMLDivElement>>;
3066
3071
 
3067
3072
  type SporProviderProps = Omit<ChakraProviderProps, "value"> & {
@@ -3200,6 +3205,7 @@ declare const Stepper: React$1.ForwardRefExoticComponent<{
3200
3205
  variant: "core" | "accent";
3201
3206
  /** Disables all clicks */
3202
3207
  disabled?: boolean;
3208
+ css?: SystemStyleObject;
3203
3209
  } & React$1.RefAttributes<HTMLDivElement>>;
3204
3210
 
3205
3211
  type StepperStepProps = PropsWithChildren<StepperVariantProps> & {