@vygruppen/spor-react 12.24.4 → 12.24.6
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/.turbo/turbo-build.log +12 -12
- package/.turbo/turbo-postinstall.log +2 -2
- package/CHANGELOG.md +14 -0
- package/dist/index.cjs +211 -192
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -10
- package/dist/index.d.ts +8 -10
- package/dist/index.mjs +211 -192
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/input/Autocomplete.tsx +8 -1
- package/src/input/Select.tsx +20 -6
- package/src/theme/slot-recipes/switch.ts +14 -15
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, 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, 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';
|
|
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';
|
|
@@ -1919,6 +1919,7 @@ declare const SelectTrigger: React$1.ForwardRefExoticComponent<Select$1.ControlP
|
|
|
1919
1919
|
declare const SelectContent: React$1.ForwardRefExoticComponent<Select$1.ContentProps & {
|
|
1920
1920
|
portalled?: boolean;
|
|
1921
1921
|
portalRef?: React$1.RefObject<HTMLElement>;
|
|
1922
|
+
baseStyle?: SystemStyleObject;
|
|
1922
1923
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1923
1924
|
declare const SelectValueText: React$1.ForwardRefExoticComponent<Omit<Select$1.ValueTextProps, "children"> & {
|
|
1924
1925
|
children?(items: CollectionItem[]): React$1.ReactNode;
|
|
@@ -1932,32 +1933,29 @@ declare const switchSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "
|
|
|
1932
1933
|
size: {
|
|
1933
1934
|
sm: {
|
|
1934
1935
|
root: {
|
|
1935
|
-
"--switch-width": "
|
|
1936
|
-
"--switch-height": "1.
|
|
1936
|
+
"--switch-width": "3rem";
|
|
1937
|
+
"--switch-height": "1.125rem";
|
|
1937
1938
|
};
|
|
1938
1939
|
control: {
|
|
1939
1940
|
borderRadius: "lg";
|
|
1940
|
-
padding: "0.12rem";
|
|
1941
1941
|
};
|
|
1942
1942
|
};
|
|
1943
1943
|
md: {
|
|
1944
1944
|
root: {
|
|
1945
|
-
"--switch-width": "
|
|
1946
|
-
"--switch-height": "1.
|
|
1945
|
+
"--switch-width": "3.75rem";
|
|
1946
|
+
"--switch-height": "1.5rem";
|
|
1947
1947
|
};
|
|
1948
1948
|
control: {
|
|
1949
1949
|
borderRadius: "xl";
|
|
1950
|
-
padding: number;
|
|
1951
1950
|
};
|
|
1952
1951
|
};
|
|
1953
1952
|
lg: {
|
|
1954
1953
|
root: {
|
|
1955
|
-
"--switch-width": "4.
|
|
1956
|
-
"--switch-height": "
|
|
1954
|
+
"--switch-width": "4.5rem";
|
|
1955
|
+
"--switch-height": "1.875rem";
|
|
1957
1956
|
};
|
|
1958
1957
|
control: {
|
|
1959
1958
|
borderRadius: "2xl";
|
|
1960
|
-
padding: number;
|
|
1961
1959
|
};
|
|
1962
1960
|
};
|
|
1963
1961
|
};
|
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, 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, 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';
|
|
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';
|
|
@@ -1919,6 +1919,7 @@ declare const SelectTrigger: React$1.ForwardRefExoticComponent<Select$1.ControlP
|
|
|
1919
1919
|
declare const SelectContent: React$1.ForwardRefExoticComponent<Select$1.ContentProps & {
|
|
1920
1920
|
portalled?: boolean;
|
|
1921
1921
|
portalRef?: React$1.RefObject<HTMLElement>;
|
|
1922
|
+
baseStyle?: SystemStyleObject;
|
|
1922
1923
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1923
1924
|
declare const SelectValueText: React$1.ForwardRefExoticComponent<Omit<Select$1.ValueTextProps, "children"> & {
|
|
1924
1925
|
children?(items: CollectionItem[]): React$1.ReactNode;
|
|
@@ -1932,32 +1933,29 @@ declare const switchSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "
|
|
|
1932
1933
|
size: {
|
|
1933
1934
|
sm: {
|
|
1934
1935
|
root: {
|
|
1935
|
-
"--switch-width": "
|
|
1936
|
-
"--switch-height": "1.
|
|
1936
|
+
"--switch-width": "3rem";
|
|
1937
|
+
"--switch-height": "1.125rem";
|
|
1937
1938
|
};
|
|
1938
1939
|
control: {
|
|
1939
1940
|
borderRadius: "lg";
|
|
1940
|
-
padding: "0.12rem";
|
|
1941
1941
|
};
|
|
1942
1942
|
};
|
|
1943
1943
|
md: {
|
|
1944
1944
|
root: {
|
|
1945
|
-
"--switch-width": "
|
|
1946
|
-
"--switch-height": "1.
|
|
1945
|
+
"--switch-width": "3.75rem";
|
|
1946
|
+
"--switch-height": "1.5rem";
|
|
1947
1947
|
};
|
|
1948
1948
|
control: {
|
|
1949
1949
|
borderRadius: "xl";
|
|
1950
|
-
padding: number;
|
|
1951
1950
|
};
|
|
1952
1951
|
};
|
|
1953
1952
|
lg: {
|
|
1954
1953
|
root: {
|
|
1955
|
-
"--switch-width": "4.
|
|
1956
|
-
"--switch-height": "
|
|
1954
|
+
"--switch-width": "4.5rem";
|
|
1955
|
+
"--switch-height": "1.875rem";
|
|
1957
1956
|
};
|
|
1958
1957
|
control: {
|
|
1959
1958
|
borderRadius: "2xl";
|
|
1960
|
-
padding: number;
|
|
1961
1959
|
};
|
|
1962
1960
|
};
|
|
1963
1961
|
};
|