@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/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" | "onFocus" | "onClick" | "children"> & React$1.PropsWithChildren<FieldVariantProps> & FieldBaseProps;
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" | "children" | "onFocus" | "onBlur" | "onChange" | "onClick"> & {
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: "row" | "column";
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" | "children" | "onFocus" | "onBlur" | "onChange" | "onClick"> & {
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" | "children" | "onFocus" | "onBlur" | "onChange" | "onClick"> & {
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" | "onFocus" | "onClick" | "children"> & React$1.PropsWithChildren<FieldVariantProps> & FieldBaseProps;
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" | "children" | "onFocus" | "onBlur" | "onChange" | "onClick"> & {
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: "row" | "column";
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" | "children" | "onFocus" | "onBlur" | "onChange" | "onClick"> & {
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" | "children" | "onFocus" | "onBlur" | "onChange" | "onClick"> & {
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.mjs CHANGED
@@ -7604,7 +7604,6 @@ var fieldSlotRecipe = defineSlotRecipe({
7604
7604
  width: "fit-content",
7605
7605
  position: "absolute",
7606
7606
  top: "100%",
7607
- // position below parent
7608
7607
  left: 3,
7609
7608
  zIndex: "dropdown",
7610
7609
  maxWidth: "50ch",