@vygruppen/spor-react 12.5.2 → 12.5.4
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 -3
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +26 -41
- package/dist/index.d.ts +26 -41
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/input/Field.tsx +1 -1
- package/src/input/Input.tsx +8 -7
- package/src/input/NumericStepper.tsx +4 -4
- package/src/theme/slot-recipes/listbox.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@12.5.
|
2
|
+
> @vygruppen/spor-react@12.5.4 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
|
-
CJS dist/index.js 311.03 KB
|
14
|
-
CJS dist/icons/index.js 380.00 B
|
15
|
-
CJS dist/index.js.map 622.85 KB
|
16
|
-
CJS dist/icons/index.js.map 157.00 B
|
17
|
-
CJS ⚡️ Build success in 2636ms
|
18
|
-
ESM dist/index.mjs 290.49 KB
|
19
13
|
ESM dist/icons/index.mjs 110.00 B
|
20
|
-
ESM dist/index.mjs.
|
14
|
+
ESM dist/index.mjs 290.52 KB
|
21
15
|
ESM dist/icons/index.mjs.map 157.00 B
|
22
|
-
ESM
|
23
|
-
|
16
|
+
ESM dist/index.mjs.map 622.96 KB
|
17
|
+
ESM ⚡️ Build success in 2871ms
|
18
|
+
CJS dist/index.js 311.06 KB
|
19
|
+
CJS dist/icons/index.js 380.00 B
|
20
|
+
CJS dist/index.js.map 622.96 KB
|
21
|
+
CJS dist/icons/index.js.map 157.00 B
|
22
|
+
CJS ⚡️ Build success in 2872ms
|
23
|
+
DTS ⚡️ Build success in 26344ms
|
24
24
|
DTS dist/icons/index.d.ts 44.00 B
|
25
|
-
DTS dist/index.d.ts 153.
|
25
|
+
DTS dist/index.d.ts 153.09 KB
|
26
26
|
DTS dist/icons/index.d.mts 44.00 B
|
27
|
-
DTS dist/index.d.mts 153.
|
27
|
+
DTS dist/index.d.mts 153.09 KB
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@12.5.
|
2
|
+
> @vygruppen/spor-react@12.5.4 postinstall /home/runner/work/spor/spor/packages/spor-react
|
3
3
|
> chakra typegen src/theme/index.ts
|
4
4
|
|
5
5
|
[90m┌[39m Chakra CLI ⚡️
|
@@ -12,8 +12,7 @@
|
|
12
12
|
[?25h[?25l[90m│[39m
|
13
13
|
[32m◇[39m ✅ Generated utility typings
|
14
14
|
[?25h[?25l[90m│[39m
|
15
|
-
[
|
16
|
-
[999D[J[32m◇[39m ✅ Generated token typings
|
15
|
+
[32m◇[39m ✅ Generated token typings
|
17
16
|
[?25h[?25l[90m│[39m
|
18
17
|
[35m◒[39m Generating system types...
|
19
18
|
[999D[J[32m◇[39m ✅ Generated system types
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 12.5.4
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 24caa33: Fix conflicting types for inputprops and update chakra to newest minor version
|
8
|
+
|
9
|
+
## 12.5.3
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- d6fbc6c: Fix visual bug in numerstepper when withInput is false
|
14
|
+
|
3
15
|
## 12.5.2
|
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, { PropsWithChildren, ReactNode, 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,
|
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';
|
@@ -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
|
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<
|
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<
|
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<
|
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, { PropsWithChildren, ReactNode, 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,
|
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';
|
@@ -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
|
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<
|
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<
|
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<
|
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
@@ -3809,11 +3809,11 @@ var NumericStepper = React28__namespace.default.forwardRef((props, ref) => {
|
|
3809
3809
|
}
|
3810
3810
|
}
|
3811
3811
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
3812
|
-
|
3812
|
+
Text3,
|
3813
3813
|
{
|
3814
|
-
css: styles,
|
3815
3814
|
visibility: !showZero && value === 0 ? "hidden" : "visible",
|
3816
3815
|
"aria-live": "assertive",
|
3816
|
+
paddingX: "0.95rem",
|
3817
3817
|
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts13.currentNumberAriaLabel(ariaLabelContext.plural)),
|
3818
3818
|
children: value
|
3819
3819
|
}
|
@@ -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
|
},
|