@vygruppen/spor-react 12.8.1 → 12.8.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/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +9 -0
- package/dist/index.cjs +0 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/input/CheckboxGroup.tsx +1 -1
- package/src/input/Field.tsx +1 -1
- package/src/theme/slot-recipes/field.ts +1 -1
package/dist/index.d.cts
CHANGED
@@ -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" | "onBlur"
|
546
|
+
type FieldProps = Omit<Field$1.RootProps, "label" | "onChange" | "onBlur"> & 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" | "onBlur" | "onF
|
|
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" | "
|
563
|
+
declare const Field: React$1.ForwardRefExoticComponent<Omit<Field$1.RootProps, "label" | "onBlur" | "onChange"> & {
|
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>>;
|
@@ -1098,7 +1098,7 @@ declare const Checkbox: React$1.ForwardRefExoticComponent<Checkbox$1.RootProps &
|
|
1098
1098
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
1099
1099
|
|
1100
1100
|
type CheckboxGroupProps = React__default.ComponentProps<typeof CheckboxGroup$1> & {
|
1101
|
-
direction
|
1101
|
+
direction?: "row" | "column";
|
1102
1102
|
};
|
1103
1103
|
/**
|
1104
1104
|
* Used to group several checkboxes together. You can pass the default value, as well as whether or not they're all disabled
|
@@ -1657,7 +1657,7 @@ type SelectProps = SelectRootProps & FieldProps & {
|
|
1657
1657
|
* @see https://spor.vy.no/components/select
|
1658
1658
|
*
|
1659
1659
|
*/
|
1660
|
-
declare const Select: React$1.ForwardRefExoticComponent<SelectRootProps<any> & Omit<_chakra_ui_react.FieldRootProps, "label" | "
|
1660
|
+
declare const Select: React$1.ForwardRefExoticComponent<SelectRootProps<any> & Omit<_chakra_ui_react.FieldRootProps, "label" | "onBlur" | "onChange"> & {
|
1661
1661
|
children?: React$1.ReactNode | undefined;
|
1662
1662
|
} & FieldBaseProps & {
|
1663
1663
|
label?: string;
|
@@ -1832,7 +1832,7 @@ type TextareaProps = Exclude<TextareaProps$1, "size" | "colorPalette"> & FieldPr
|
|
1832
1832
|
* Textarea has two variants core, and floating.
|
1833
1833
|
*
|
1834
1834
|
*/
|
1835
|
-
declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label" | "
|
1835
|
+
declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label" | "onBlur" | "onChange"> & {
|
1836
1836
|
children?: ReactNode | undefined;
|
1837
1837
|
} & FieldBaseProps & {
|
1838
1838
|
variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | undefined>;
|
package/dist/index.d.ts
CHANGED
@@ -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" | "onBlur"
|
546
|
+
type FieldProps = Omit<Field$1.RootProps, "label" | "onChange" | "onBlur"> & 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" | "onBlur" | "onF
|
|
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" | "
|
563
|
+
declare const Field: React$1.ForwardRefExoticComponent<Omit<Field$1.RootProps, "label" | "onBlur" | "onChange"> & {
|
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>>;
|
@@ -1098,7 +1098,7 @@ declare const Checkbox: React$1.ForwardRefExoticComponent<Checkbox$1.RootProps &
|
|
1098
1098
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
1099
1099
|
|
1100
1100
|
type CheckboxGroupProps = React__default.ComponentProps<typeof CheckboxGroup$1> & {
|
1101
|
-
direction
|
1101
|
+
direction?: "row" | "column";
|
1102
1102
|
};
|
1103
1103
|
/**
|
1104
1104
|
* Used to group several checkboxes together. You can pass the default value, as well as whether or not they're all disabled
|
@@ -1657,7 +1657,7 @@ type SelectProps = SelectRootProps & FieldProps & {
|
|
1657
1657
|
* @see https://spor.vy.no/components/select
|
1658
1658
|
*
|
1659
1659
|
*/
|
1660
|
-
declare const Select: React$1.ForwardRefExoticComponent<SelectRootProps<any> & Omit<_chakra_ui_react.FieldRootProps, "label" | "
|
1660
|
+
declare const Select: React$1.ForwardRefExoticComponent<SelectRootProps<any> & Omit<_chakra_ui_react.FieldRootProps, "label" | "onBlur" | "onChange"> & {
|
1661
1661
|
children?: React$1.ReactNode | undefined;
|
1662
1662
|
} & FieldBaseProps & {
|
1663
1663
|
label?: string;
|
@@ -1832,7 +1832,7 @@ type TextareaProps = Exclude<TextareaProps$1, "size" | "colorPalette"> & FieldPr
|
|
1832
1832
|
* Textarea has two variants core, and floating.
|
1833
1833
|
*
|
1834
1834
|
*/
|
1835
|
-
declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label" | "
|
1835
|
+
declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label" | "onBlur" | "onChange"> & {
|
1836
1836
|
children?: ReactNode | undefined;
|
1837
1837
|
} & FieldBaseProps & {
|
1838
1838
|
variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | undefined>;
|