@vygruppen/spor-react 12.5.3 → 12.5.5

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.5.3 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.5.5 build /home/runner/work/spor/spor/packages/spor-react
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.tsx, src/icons/index.tsx
@@ -10,18 +10,18 @@ CLI Target: node16
10
10
  CJS Build start
11
11
  ESM Build start
12
12
  DTS Build start
13
- ESM dist/icons/index.mjs 110.00 B
14
- ESM dist/index.mjs 290.49 KB
15
- ESM dist/icons/index.mjs.map 157.00 B
16
- ESM dist/index.mjs.map 622.85 KB
17
- ESM ⚡️ Build success in 2737ms
18
- CJS dist/index.js 311.03 KB
19
13
  CJS dist/icons/index.js 380.00 B
20
- CJS dist/index.js.map 622.85 KB
14
+ CJS dist/index.js 311.06 KB
21
15
  CJS dist/icons/index.js.map 157.00 B
22
- CJS ⚡️ Build success in 2737ms
23
- DTS ⚡️ Build success in 29147ms
16
+ CJS dist/index.js.map 622.96 KB
17
+ CJS ⚡️ Build success in 2688ms
18
+ ESM dist/index.mjs 290.52 KB
19
+ ESM dist/icons/index.mjs 110.00 B
20
+ ESM dist/index.mjs.map 622.96 KB
21
+ ESM dist/icons/index.mjs.map 157.00 B
22
+ ESM ⚡️ Build success in 2688ms
23
+ DTS ⚡️ Build success in 29261ms
24
24
  DTS dist/icons/index.d.ts 44.00 B
25
- DTS dist/index.d.ts 153.53 KB
25
+ DTS dist/index.d.ts 153.11 KB
26
26
  DTS dist/icons/index.d.mts 44.00 B
27
- DTS dist/index.d.mts 153.53 KB
27
+ DTS dist/index.d.mts 153.11 KB
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.5.3 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.5.5 postinstall /home/runner/work/spor/spor/packages/spor-react
3
3
  > chakra typegen src/theme/index.ts
4
4
 
5
5
  ┌ Chakra CLI ⚡️
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.5.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 6fc249b: Fix type for expandable, so title can be ReactNode.
8
+
9
+ ## 12.5.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 24caa33: Fix conflicting types for inputprops and update chakra to newest minor version
14
+
3
15
  ## 12.5.3
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { PropsWithChildren, ReactNode } from 'react';
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, InputProps as InputProps$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, 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';
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, 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';
@@ -22,7 +22,7 @@ type HeadingLevel = {
22
22
  };
23
23
  type ExpandableItemProps = HeadingLevel & {
24
24
  value: string;
25
- title: string;
25
+ title: ReactNode;
26
26
  children?: React.ReactNode;
27
27
  startElement?: React.ReactNode;
28
28
  };
@@ -67,7 +67,7 @@ declare const Expandable: React$1.ForwardRefExoticComponent<_chakra_ui_react.Acc
67
67
  startElement?: React.ReactNode;
68
68
  showChevron?: boolean;
69
69
  } & {
70
- title: string;
70
+ title: React$1.ReactNode;
71
71
  } & React$1.RefAttributes<HTMLDivElement>>;
72
72
  /**
73
73
  * An item in a set of Expandables. Must be wrapped in an `<Accordion>` component.
@@ -508,7 +508,7 @@ type FieldBaseProps = {
508
508
  errorText?: React$1.ReactNode;
509
509
  floatingLabel?: boolean;
510
510
  };
511
- type FieldProps = Omit<Field$1.RootProps, "label"> & React$1.PropsWithChildren<FieldVariantProps> & FieldBaseProps;
511
+ type FieldProps = Omit<Field$1.RootProps, "label" | "onChange"> & React$1.PropsWithChildren<FieldVariantProps> & FieldBaseProps;
512
512
  /**
513
513
  *
514
514
  * Field is a component that wraps around other input components, like `Input` and `Select`.
@@ -525,7 +525,7 @@ type FieldProps = Omit<Field$1.RootProps, "label"> & React$1.PropsWithChildren<F
525
525
  *
526
526
  * This component is not exported and should be used as a wrapper for other input components.
527
527
  */
528
- declare const Field: React$1.ForwardRefExoticComponent<Omit<Field$1.RootProps, "label"> & {
528
+ declare const Field: React$1.ForwardRefExoticComponent<Omit<Field$1.RootProps, "label" | "onChange"> & {
529
529
  children?: React$1.ReactNode | undefined;
530
530
  } & FieldBaseProps & React$1.RefAttributes<HTMLDivElement>>;
531
531
  declare const FieldErrorText: React$1.ForwardRefExoticComponent<Field$1.ErrorTextProps & React$1.RefAttributes<HTMLDivElement>>;
@@ -1183,7 +1183,9 @@ declare const FieldsetContent: React$1.ForwardRefExoticComponent<Fieldset$1.Cont
1183
1183
  declare const FieldsetHelperText: React$1.ForwardRefExoticComponent<Fieldset$1.HelperTextProps & React$1.RefAttributes<HTMLSpanElement>>;
1184
1184
  declare const FieldsetErrorText: React$1.ForwardRefExoticComponent<Fieldset$1.ErrorTextProps & React$1.RefAttributes<HTMLSpanElement>>;
1185
1185
 
1186
- type InputProps = Exclude<InputProps$1, "size" | "label" | "colorPalette" | "placeholder"> & FieldProps & {
1186
+ type ChakraInputProps = ComponentProps<typeof Input$1>;
1187
+
1188
+ type InputProps = FieldProps & Exclude<ChakraInputProps, "size" | "label" | "colorPalette" | "placeholder"> & {
1187
1189
  /** The input's label */
1188
1190
  label: ReactNode;
1189
1191
  /** Element that shows up to the left */
@@ -1191,16 +1193,7 @@ type InputProps = Exclude<InputProps$1, "size" | "label" | "colorPalette" | "pla
1191
1193
  /** Element that shows up to the right */
1192
1194
  endElement?: React__default.ReactNode;
1193
1195
  };
1194
- declare const Input: React__default.ForwardRefExoticComponent<InputProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label"> & {
1195
- children?: ReactNode | undefined;
1196
- } & FieldBaseProps & {
1197
- /** The input's label */
1198
- label: ReactNode;
1199
- /** Element that shows up to the left */
1200
- startElement?: React__default.ReactNode;
1201
- /** Element that shows up to the right */
1202
- endElement?: React__default.ReactNode;
1203
- } & React__default.RefAttributes<HTMLInputElement>>;
1196
+ declare const Input: React__default.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
1204
1197
 
1205
1198
  declare const listBoxSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "item" | "description" | "label", {
1206
1199
  variant: {
@@ -1480,12 +1473,25 @@ interface PasswordInputProps extends InputProps, PasswordVisibilityProps {
1480
1473
  *
1481
1474
  * @see https://spor.vy.no/components/password-input
1482
1475
  */
1483
- declare const PasswordInput: React__default.ForwardRefExoticComponent<PasswordInputProps & React__default.RefAttributes<HTMLInputElement>>;
1476
+ declare const PasswordInput: React__default.ForwardRefExoticComponent<Omit<PasswordInputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
1484
1477
 
1485
1478
  type CountryCodeAndPhoneNumber = {
1486
1479
  countryCode: string;
1487
1480
  nationalNumber: string;
1488
1481
  };
1482
+ type PhoneNumberInputProps = Omit<InputProps, "value"> & {
1483
+ /** The label. Defaults to a localized version of "Phone number" */
1484
+ label?: string;
1485
+ /** Callback for when the country code or phone number changes */
1486
+ onValueChange?: (change: CountryCodeAndPhoneNumber) => void;
1487
+ /** The optional value of the country code and phone number */
1488
+ value?: CountryCodeAndPhoneNumber;
1489
+ /** Returns an extra optional text when true */
1490
+ optional?: boolean;
1491
+ allowedCountryCodes?: string[];
1492
+ invalid?: boolean;
1493
+ errorText?: string;
1494
+ };
1489
1495
  /**
1490
1496
  * A component for entering phone numbers.
1491
1497
  *
@@ -1503,19 +1509,7 @@ type CountryCodeAndPhoneNumber = {
1503
1509
  * />
1504
1510
  * ```
1505
1511
  */
1506
- declare const PhoneNumberInput: React$1.ForwardRefExoticComponent<Omit<InputProps, "value"> & {
1507
- /** The label. Defaults to a localized version of "Phone number" */
1508
- label?: string;
1509
- /** Callback for when the country code or phone number changes */
1510
- onValueChange?: (change: CountryCodeAndPhoneNumber) => void;
1511
- /** The optional value of the country code and phone number */
1512
- value?: CountryCodeAndPhoneNumber;
1513
- /** Returns an extra optional text when true */
1514
- optional?: boolean;
1515
- allowedCountryCodes?: string[];
1516
- invalid?: boolean;
1517
- errorText?: string;
1518
- } & React$1.RefAttributes<HTMLInputElement>>;
1512
+ declare const PhoneNumberInput: React$1.ForwardRefExoticComponent<Omit<PhoneNumberInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
1519
1513
 
1520
1514
  declare const radioGroupSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "item" | "label" | "itemText" | "itemControl", {
1521
1515
  orientation: {
@@ -1564,16 +1558,7 @@ type SearchInputProps = InputProps & {
1564
1558
  *
1565
1559
  * Includes a search icon, a localized label and a reset button.
1566
1560
  */
1567
- declare const SearchInput: React$1.ForwardRefExoticComponent<_chakra_ui_react.InputProps & Omit<_chakra_ui_react.FieldRootProps, "label"> & {
1568
- children?: React$1.ReactNode | undefined;
1569
- } & FieldBaseProps & {
1570
- label: React$1.ReactNode;
1571
- startElement?: React.ReactNode;
1572
- endElement?: React.ReactNode;
1573
- } & {
1574
- /** Callback for when the clear button is clicked */
1575
- onReset?: () => void;
1576
- } & React$1.RefAttributes<HTMLInputElement>>;
1561
+ declare const SearchInput: React$1.ForwardRefExoticComponent<Omit<SearchInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
1577
1562
 
1578
1563
  type SelectProps = SelectRootProps & FieldProps & {
1579
1564
  label?: string;
@@ -1605,7 +1590,7 @@ type SelectProps = SelectRootProps & FieldProps & {
1605
1590
  * @see https://spor.vy.no/components/select
1606
1591
  *
1607
1592
  */
1608
- declare const Select: React$1.ForwardRefExoticComponent<SelectRootProps<any> & Omit<_chakra_ui_react.FieldRootProps, "label"> & {
1593
+ declare const Select: React$1.ForwardRefExoticComponent<SelectRootProps<any> & Omit<_chakra_ui_react.FieldRootProps, "label" | "onChange"> & {
1609
1594
  children?: React$1.ReactNode | undefined;
1610
1595
  } & FieldBaseProps & {
1611
1596
  label?: string;
@@ -1780,7 +1765,7 @@ type TextareaProps = Exclude<TextareaProps$1, "size" | "colorPalette"> & FieldPr
1780
1765
  * Textarea has two variants core, and floating.
1781
1766
  *
1782
1767
  */
1783
- declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label"> & {
1768
+ declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label" | "onChange"> & {
1784
1769
  children?: ReactNode | undefined;
1785
1770
  } & FieldBaseProps & {
1786
1771
  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
- import React__default, { PropsWithChildren, ReactNode } from 'react';
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, InputProps as InputProps$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, 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';
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, 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';
@@ -22,7 +22,7 @@ type HeadingLevel = {
22
22
  };
23
23
  type ExpandableItemProps = HeadingLevel & {
24
24
  value: string;
25
- title: string;
25
+ title: ReactNode;
26
26
  children?: React.ReactNode;
27
27
  startElement?: React.ReactNode;
28
28
  };
@@ -67,7 +67,7 @@ declare const Expandable: React$1.ForwardRefExoticComponent<_chakra_ui_react.Acc
67
67
  startElement?: React.ReactNode;
68
68
  showChevron?: boolean;
69
69
  } & {
70
- title: string;
70
+ title: React$1.ReactNode;
71
71
  } & React$1.RefAttributes<HTMLDivElement>>;
72
72
  /**
73
73
  * An item in a set of Expandables. Must be wrapped in an `<Accordion>` component.
@@ -508,7 +508,7 @@ type FieldBaseProps = {
508
508
  errorText?: React$1.ReactNode;
509
509
  floatingLabel?: boolean;
510
510
  };
511
- type FieldProps = Omit<Field$1.RootProps, "label"> & React$1.PropsWithChildren<FieldVariantProps> & FieldBaseProps;
511
+ type FieldProps = Omit<Field$1.RootProps, "label" | "onChange"> & React$1.PropsWithChildren<FieldVariantProps> & FieldBaseProps;
512
512
  /**
513
513
  *
514
514
  * Field is a component that wraps around other input components, like `Input` and `Select`.
@@ -525,7 +525,7 @@ type FieldProps = Omit<Field$1.RootProps, "label"> & React$1.PropsWithChildren<F
525
525
  *
526
526
  * This component is not exported and should be used as a wrapper for other input components.
527
527
  */
528
- declare const Field: React$1.ForwardRefExoticComponent<Omit<Field$1.RootProps, "label"> & {
528
+ declare const Field: React$1.ForwardRefExoticComponent<Omit<Field$1.RootProps, "label" | "onChange"> & {
529
529
  children?: React$1.ReactNode | undefined;
530
530
  } & FieldBaseProps & React$1.RefAttributes<HTMLDivElement>>;
531
531
  declare const FieldErrorText: React$1.ForwardRefExoticComponent<Field$1.ErrorTextProps & React$1.RefAttributes<HTMLDivElement>>;
@@ -1183,7 +1183,9 @@ declare const FieldsetContent: React$1.ForwardRefExoticComponent<Fieldset$1.Cont
1183
1183
  declare const FieldsetHelperText: React$1.ForwardRefExoticComponent<Fieldset$1.HelperTextProps & React$1.RefAttributes<HTMLSpanElement>>;
1184
1184
  declare const FieldsetErrorText: React$1.ForwardRefExoticComponent<Fieldset$1.ErrorTextProps & React$1.RefAttributes<HTMLSpanElement>>;
1185
1185
 
1186
- type InputProps = Exclude<InputProps$1, "size" | "label" | "colorPalette" | "placeholder"> & FieldProps & {
1186
+ type ChakraInputProps = ComponentProps<typeof Input$1>;
1187
+
1188
+ type InputProps = FieldProps & Exclude<ChakraInputProps, "size" | "label" | "colorPalette" | "placeholder"> & {
1187
1189
  /** The input's label */
1188
1190
  label: ReactNode;
1189
1191
  /** Element that shows up to the left */
@@ -1191,16 +1193,7 @@ type InputProps = Exclude<InputProps$1, "size" | "label" | "colorPalette" | "pla
1191
1193
  /** Element that shows up to the right */
1192
1194
  endElement?: React__default.ReactNode;
1193
1195
  };
1194
- declare const Input: React__default.ForwardRefExoticComponent<InputProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label"> & {
1195
- children?: ReactNode | undefined;
1196
- } & FieldBaseProps & {
1197
- /** The input's label */
1198
- label: ReactNode;
1199
- /** Element that shows up to the left */
1200
- startElement?: React__default.ReactNode;
1201
- /** Element that shows up to the right */
1202
- endElement?: React__default.ReactNode;
1203
- } & React__default.RefAttributes<HTMLInputElement>>;
1196
+ declare const Input: React__default.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
1204
1197
 
1205
1198
  declare const listBoxSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "item" | "description" | "label", {
1206
1199
  variant: {
@@ -1480,12 +1473,25 @@ interface PasswordInputProps extends InputProps, PasswordVisibilityProps {
1480
1473
  *
1481
1474
  * @see https://spor.vy.no/components/password-input
1482
1475
  */
1483
- declare const PasswordInput: React__default.ForwardRefExoticComponent<PasswordInputProps & React__default.RefAttributes<HTMLInputElement>>;
1476
+ declare const PasswordInput: React__default.ForwardRefExoticComponent<Omit<PasswordInputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
1484
1477
 
1485
1478
  type CountryCodeAndPhoneNumber = {
1486
1479
  countryCode: string;
1487
1480
  nationalNumber: string;
1488
1481
  };
1482
+ type PhoneNumberInputProps = Omit<InputProps, "value"> & {
1483
+ /** The label. Defaults to a localized version of "Phone number" */
1484
+ label?: string;
1485
+ /** Callback for when the country code or phone number changes */
1486
+ onValueChange?: (change: CountryCodeAndPhoneNumber) => void;
1487
+ /** The optional value of the country code and phone number */
1488
+ value?: CountryCodeAndPhoneNumber;
1489
+ /** Returns an extra optional text when true */
1490
+ optional?: boolean;
1491
+ allowedCountryCodes?: string[];
1492
+ invalid?: boolean;
1493
+ errorText?: string;
1494
+ };
1489
1495
  /**
1490
1496
  * A component for entering phone numbers.
1491
1497
  *
@@ -1503,19 +1509,7 @@ type CountryCodeAndPhoneNumber = {
1503
1509
  * />
1504
1510
  * ```
1505
1511
  */
1506
- declare const PhoneNumberInput: React$1.ForwardRefExoticComponent<Omit<InputProps, "value"> & {
1507
- /** The label. Defaults to a localized version of "Phone number" */
1508
- label?: string;
1509
- /** Callback for when the country code or phone number changes */
1510
- onValueChange?: (change: CountryCodeAndPhoneNumber) => void;
1511
- /** The optional value of the country code and phone number */
1512
- value?: CountryCodeAndPhoneNumber;
1513
- /** Returns an extra optional text when true */
1514
- optional?: boolean;
1515
- allowedCountryCodes?: string[];
1516
- invalid?: boolean;
1517
- errorText?: string;
1518
- } & React$1.RefAttributes<HTMLInputElement>>;
1512
+ declare const PhoneNumberInput: React$1.ForwardRefExoticComponent<Omit<PhoneNumberInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
1519
1513
 
1520
1514
  declare const radioGroupSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "item" | "label" | "itemText" | "itemControl", {
1521
1515
  orientation: {
@@ -1564,16 +1558,7 @@ type SearchInputProps = InputProps & {
1564
1558
  *
1565
1559
  * Includes a search icon, a localized label and a reset button.
1566
1560
  */
1567
- declare const SearchInput: React$1.ForwardRefExoticComponent<_chakra_ui_react.InputProps & Omit<_chakra_ui_react.FieldRootProps, "label"> & {
1568
- children?: React$1.ReactNode | undefined;
1569
- } & FieldBaseProps & {
1570
- label: React$1.ReactNode;
1571
- startElement?: React.ReactNode;
1572
- endElement?: React.ReactNode;
1573
- } & {
1574
- /** Callback for when the clear button is clicked */
1575
- onReset?: () => void;
1576
- } & React$1.RefAttributes<HTMLInputElement>>;
1561
+ declare const SearchInput: React$1.ForwardRefExoticComponent<Omit<SearchInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
1577
1562
 
1578
1563
  type SelectProps = SelectRootProps & FieldProps & {
1579
1564
  label?: string;
@@ -1605,7 +1590,7 @@ type SelectProps = SelectRootProps & FieldProps & {
1605
1590
  * @see https://spor.vy.no/components/select
1606
1591
  *
1607
1592
  */
1608
- declare const Select: React$1.ForwardRefExoticComponent<SelectRootProps<any> & Omit<_chakra_ui_react.FieldRootProps, "label"> & {
1593
+ declare const Select: React$1.ForwardRefExoticComponent<SelectRootProps<any> & Omit<_chakra_ui_react.FieldRootProps, "label" | "onChange"> & {
1609
1594
  children?: React$1.ReactNode | undefined;
1610
1595
  } & FieldBaseProps & {
1611
1596
  label?: string;
@@ -1780,7 +1765,7 @@ type TextareaProps = Exclude<TextareaProps$1, "size" | "colorPalette"> & FieldPr
1780
1765
  * Textarea has two variants core, and floating.
1781
1766
  *
1782
1767
  */
1783
- declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label"> & {
1768
+ declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label" | "onChange"> & {
1784
1769
  children?: ReactNode | undefined;
1785
1770
  } & FieldBaseProps & {
1786
1771
  variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | undefined>;
package/dist/index.js CHANGED
@@ -8511,6 +8511,7 @@ var listBoxSlotRecipe = react.defineSlotRecipe({
8511
8511
  backgroundColor: "ghost.surface.active"
8512
8512
  },
8513
8513
  _focus: {
8514
+ outline: "2px solid",
8514
8515
  outlineColor: "outline.focus"
8515
8516
  }
8516
8517
  },