@digdir/designsystemet-react 1.0.0-next.44 → 1.0.0-next.45
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/cjs/components/Combobox/Combobox.js +1 -1
- package/dist/cjs/{utilities/hooks → components/Combobox}/useFormField/useFormField.js +1 -1
- package/dist/cjs/components/Field/Field.js +2 -2
- package/dist/cjs/components/Pagination/usePagination.js +8 -8
- package/dist/cjs/components/Popover/PopoverTrigger.js +7 -3
- package/dist/cjs/components/Table/TableHeaderCell.js +1 -1
- package/dist/cjs/components/Tag/Tag.js +3 -3
- package/dist/cjs/components/Tooltip/Tooltip.js +65 -50
- package/dist/cjs/index.js +24 -14
- package/dist/cjs/utilities/hooks/useCheckboxGroup/useCheckboxGroup.js +121 -0
- package/dist/cjs/utilities/hooks/useMediaQuery/useMediaQuery.js +49 -0
- package/dist/cjs/utilities/hooks/usePrevious/usePrevious.js +14 -0
- package/dist/cjs/utilities/hooks/useRadioGroup/useRadioGroup.js +99 -0
- package/dist/esm/components/Combobox/Combobox.js +1 -1
- package/dist/esm/{utilities/hooks → components/Combobox}/useFormField/useFormField.js +1 -1
- package/dist/esm/components/Field/Field.js +2 -2
- package/dist/esm/components/Pagination/usePagination.js +8 -8
- package/dist/esm/components/Popover/PopoverTrigger.js +7 -3
- package/dist/esm/components/Table/TableHeaderCell.js +1 -1
- package/dist/esm/components/Tag/Tag.js +3 -3
- package/dist/esm/components/Tooltip/Tooltip.js +66 -51
- package/dist/esm/index.js +11 -6
- package/dist/esm/utilities/hooks/useCheckboxGroup/useCheckboxGroup.js +119 -0
- package/dist/esm/utilities/hooks/useMediaQuery/useMediaQuery.js +47 -0
- package/dist/esm/utilities/hooks/usePrevious/usePrevious.js +12 -0
- package/dist/esm/utilities/hooks/useRadioGroup/useRadioGroup.js +97 -0
- package/dist/types/components/Avatar/Avatar.d.ts +1 -12
- package/dist/types/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/types/components/Badge/Badge.d.ts +1 -10
- package/dist/types/components/Badge/Badge.d.ts.map +1 -1
- package/dist/types/components/Badge/index.d.ts +1 -2
- package/dist/types/components/Badge/index.d.ts.map +1 -1
- package/dist/types/components/Breadcrumbs/BreadcrumbsLink.d.ts +1 -2
- package/dist/types/components/Breadcrumbs/BreadcrumbsLink.d.ts.map +1 -1
- package/dist/types/components/Breadcrumbs/index.d.ts +1 -2
- package/dist/types/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/types/components/Button/Button.d.ts +1 -10
- package/dist/types/components/Button/Button.d.ts.map +1 -1
- package/dist/types/components/Card/Card.d.ts +2 -3
- package/dist/types/components/Card/Card.d.ts.map +1 -1
- package/dist/types/components/Card/index.d.ts +1 -1
- package/dist/types/components/Checkbox/Checkbox.d.ts +0 -5
- package/dist/types/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/types/components/Chip/Chips.d.ts +4 -8
- package/dist/types/components/Chip/Chips.d.ts.map +1 -1
- package/dist/types/components/Chip/index.d.ts +4 -20
- package/dist/types/components/Chip/index.d.ts.map +1 -1
- package/dist/types/components/Combobox/Combobox.d.ts +24 -7
- package/dist/types/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/types/components/Combobox/ComboboxContext.d.ts +1 -1
- package/dist/types/components/Combobox/ComboboxContext.d.ts.map +1 -1
- package/dist/types/components/Combobox/internal/ComboboxError.d.ts +1 -1
- package/dist/types/components/Combobox/internal/ComboboxError.d.ts.map +1 -1
- package/dist/types/components/Combobox/internal/ComboboxLabel.d.ts +1 -1
- package/dist/types/components/Combobox/internal/ComboboxLabel.d.ts.map +1 -1
- package/dist/types/components/{Fieldset → Combobox/useFormField}/FieldsetContext.d.ts +1 -1
- package/dist/types/components/Combobox/useFormField/FieldsetContext.d.ts.map +1 -0
- package/dist/types/components/Combobox/useFormField/useFormField.d.ts.map +1 -0
- package/dist/types/components/Details/Details.d.ts +10 -2
- package/dist/types/components/Details/Details.d.ts.map +1 -1
- package/dist/types/components/Dropdown/Dropdown.d.ts +1 -8
- package/dist/types/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/types/components/Dropdown/DropdownHeading.d.ts +1 -1
- package/dist/types/components/Dropdown/DropdownTrigger.d.ts +1 -8
- package/dist/types/components/Dropdown/DropdownTrigger.d.ts.map +1 -1
- package/dist/types/components/Dropdown/index.d.ts +3 -11
- package/dist/types/components/Dropdown/index.d.ts.map +1 -1
- package/dist/types/components/ErrorSummary/ErrorSummaryHeading.d.ts +1 -1
- package/dist/types/components/ErrorSummary/index.d.ts +1 -1
- package/dist/types/components/Field/Field.d.ts.map +1 -1
- package/dist/types/components/Fieldset/FieldsetDescription.d.ts +1 -1
- package/dist/types/components/Fieldset/index.d.ts +1 -1
- package/dist/types/components/Heading/Heading.d.ts +2 -2
- package/dist/types/components/Heading/Heading.d.ts.map +1 -1
- package/dist/types/components/Input/Input.d.ts +1 -12
- package/dist/types/components/Input/Input.d.ts.map +1 -1
- package/dist/types/components/Link/Link.d.ts +1 -12
- package/dist/types/components/Link/Link.d.ts.map +1 -1
- package/dist/types/components/Modal/ModalTrigger.d.ts +1 -2
- package/dist/types/components/Modal/ModalTrigger.d.ts.map +1 -1
- package/dist/types/components/Modal/index.d.ts +1 -2
- package/dist/types/components/Modal/index.d.ts.map +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +1 -10
- package/dist/types/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/Pagination/index.d.ts +1 -2
- package/dist/types/components/Pagination/index.d.ts.map +1 -1
- package/dist/types/components/Pagination/usePagination.d.ts +1 -1
- package/dist/types/components/Pagination/usePagination.d.ts.map +1 -1
- package/dist/types/components/Paragraph/Paragraph.d.ts +2 -2
- package/dist/types/components/Paragraph/Paragraph.d.ts.map +1 -1
- package/dist/types/components/Popover/Popover.d.ts +1 -10
- package/dist/types/components/Popover/Popover.d.ts.map +1 -1
- package/dist/types/components/Popover/PopoverTrigger.d.ts +8 -8
- package/dist/types/components/Popover/PopoverTrigger.d.ts.map +1 -1
- package/dist/types/components/Radio/Radio.d.ts +0 -5
- package/dist/types/components/Radio/Radio.d.ts.map +1 -1
- package/dist/types/components/Search/SearchButton.d.ts +1 -2
- package/dist/types/components/Search/SearchButton.d.ts.map +1 -1
- package/dist/types/components/Search/index.d.ts +1 -2
- package/dist/types/components/Search/index.d.ts.map +1 -1
- package/dist/types/components/Spinner/Spinner.d.ts +1 -6
- package/dist/types/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/types/components/Switch/Switch.d.ts +0 -10
- package/dist/types/components/Switch/Switch.d.ts.map +1 -1
- package/dist/types/components/Table/TableHeaderCell.d.ts.map +1 -1
- package/dist/types/components/Tabs/Tabs.d.ts +1 -8
- package/dist/types/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/types/components/Tabs/index.d.ts +1 -2
- package/dist/types/components/Tabs/index.d.ts.map +1 -1
- package/dist/types/components/Tag/Tag.d.ts +3 -17
- package/dist/types/components/Tag/Tag.d.ts.map +1 -1
- package/dist/types/components/ToggleGroup/ToggleGroup.d.ts +1 -8
- package/dist/types/components/ToggleGroup/ToggleGroup.d.ts.map +1 -1
- package/dist/types/components/Tooltip/Tooltip.d.ts +3 -23
- package/dist/types/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types.d.ts +6 -11
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utilities/hooks/index.d.ts +2 -2
- package/dist/types/utilities/hooks/index.d.ts.map +1 -1
- package/dist/types/utilities/hooks/useCheckboxGroup/useCheckboxGroup.d.ts +3 -3
- package/dist/types/utilities/hooks/useRadioGroup/useRadioGroup.d.ts +3 -3
- package/package.json +1 -1
- package/dist/types/components/Fieldset/FieldsetContext.d.ts.map +0 -1
- package/dist/types/components/Textarea/useTextarea.d.ts +0 -10
- package/dist/types/components/Textarea/useTextarea.d.ts.map +0 -1
- package/dist/types/utilities/hooks/useFormField/useFormField.d.ts.map +0 -1
- /package/dist/cjs/components/{Fieldset → Combobox/useFormField}/FieldsetContext.js +0 -0
- /package/dist/esm/components/{Fieldset → Combobox/useFormField}/FieldsetContext.js +0 -0
- /package/dist/types/{utilities/hooks → components/Combobox}/useFormField/useFormField.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;CAItB,CAAC;AAMH,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ButtonHTMLAttributes } from 'react';
|
|
2
|
-
import type { Color } from '../../colors';
|
|
3
2
|
import type { DefaultProps } from '../../types';
|
|
4
3
|
import type { MergeRight } from '../../utilities';
|
|
5
4
|
export type ButtonProps = MergeRight<DefaultProps & ButtonHTMLAttributes<HTMLButtonElement>, {
|
|
@@ -8,10 +7,6 @@ export type ButtonProps = MergeRight<DefaultProps & ButtonHTMLAttributes<HTMLBut
|
|
|
8
7
|
* @default primary
|
|
9
8
|
*/
|
|
10
9
|
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
11
|
-
/** Specify which color palette to use.
|
|
12
|
-
* @default accent
|
|
13
|
-
*/
|
|
14
|
-
'data-color'?: Color;
|
|
15
10
|
/** Toggle icon only styling, pass icon as children
|
|
16
11
|
* @default false
|
|
17
12
|
*/
|
|
@@ -36,16 +31,12 @@ export type ButtonProps = MergeRight<DefaultProps & ButtonHTMLAttributes<HTMLBut
|
|
|
36
31
|
* @example
|
|
37
32
|
* <Button>Click me</Button>
|
|
38
33
|
*/
|
|
39
|
-
export declare const Button: React.ForwardRefExoticComponent<Omit<DefaultProps & ButtonHTMLAttributes<HTMLButtonElement>, "type" | "
|
|
34
|
+
export declare const Button: React.ForwardRefExoticComponent<Omit<DefaultProps & ButtonHTMLAttributes<HTMLButtonElement>, "type" | "asChild" | "variant" | "icon" | "loading"> & {
|
|
40
35
|
/**
|
|
41
36
|
* Specify which variant to use
|
|
42
37
|
* @default primary
|
|
43
38
|
*/
|
|
44
39
|
variant?: "primary" | "secondary" | "tertiary";
|
|
45
|
-
/** Specify which color palette to use.
|
|
46
|
-
* @default accent
|
|
47
|
-
*/
|
|
48
|
-
'data-color'?: Color;
|
|
49
40
|
/** Toggle icon only styling, pass icon as children
|
|
50
41
|
* @default false
|
|
51
42
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,MAAM,MAAM,WAAW,GAAG,UAAU,CAClC,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,EACtD;IACE;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC/C;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;CACxD,CACF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,MAAM;IA/Bf;;;OAGG;cACO,SAAS,GAAG,WAAW,GAAG,UAAU;IAC9C;;OAEG;WACI,OAAO;IACd;;OAEG;cACO,OAAO;IACjB;;;OAGG;cACO,OAAO;IACjB;;;OAGG;WACI,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC;2CA8CzD,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import type { CustomColors } from '../../colors';
|
|
3
2
|
import type { DefaultProps } from '../../types';
|
|
4
3
|
import type { MergeRight } from '../../utilities';
|
|
5
4
|
export type CardProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivElement>, {
|
|
@@ -7,7 +6,7 @@ export type CardProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivElement>
|
|
|
7
6
|
* Changes background & border color.
|
|
8
7
|
* @default neutral
|
|
9
8
|
*/
|
|
10
|
-
'data-color'?: 'subtle' |
|
|
9
|
+
'data-color'?: 'subtle' | DefaultProps['data-color'];
|
|
11
10
|
asChild?: boolean;
|
|
12
11
|
/** Instances of `Card.Block`, `Divider` or other React nodes */
|
|
13
12
|
children: ReactNode;
|
|
@@ -26,7 +25,7 @@ export declare const Card: React.ForwardRefExoticComponent<Omit<DefaultProps & H
|
|
|
26
25
|
* Changes background & border color.
|
|
27
26
|
* @default neutral
|
|
28
27
|
*/
|
|
29
|
-
'data-color'?: "subtle" |
|
|
28
|
+
'data-color'?: "subtle" | DefaultProps["data-color"];
|
|
30
29
|
asChild?: boolean;
|
|
31
30
|
/** Instances of `Card.Block`, `Divider` or other React nodes */
|
|
32
31
|
children: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,SAAS,GAAG,UAAU,CAChC,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,EAC7C;IACE;;;OAGG;IACH,YAAY,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gEAAgE;IAChE,QAAQ,EAAE,SAAS,CAAC;CACrB,CACF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI;IApBb;;;OAGG;mBACY,QAAQ,GAAG,YAAY,CAAC,YAAY,CAAC;cAC1C,OAAO;IACjB,gEAAgE;cACtD,SAAS;wCA+CrB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CardBlock } from './CardBlock';
|
|
2
2
|
declare const Card: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.HTMLAttributes<HTMLDivElement>, "data-color" | "children" | "asChild"> & {
|
|
3
|
-
'data-color'?: "subtle" | import("../../
|
|
3
|
+
'data-color'?: "subtle" | import("../../types").DefaultProps["data-color"];
|
|
4
4
|
asChild?: boolean;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { Color } from '../../colors';
|
|
3
2
|
import type { DefaultProps, LabelRequired } from '../../types';
|
|
4
3
|
import type { MergeRight } from '../../utilities';
|
|
5
4
|
import { type InputProps } from '../Input';
|
|
6
5
|
export type CheckboxProps = MergeRight<DefaultProps & Omit<InputProps, 'type' | 'role' | 'size'>, {
|
|
7
|
-
/** The color of the fill for checked and indeterminate checkboxes.
|
|
8
|
-
* If left unspecified, the color is inherited from the nearest ancestor with data-color.
|
|
9
|
-
*/
|
|
10
|
-
'data-color'?: Color;
|
|
11
6
|
/** Optional aria-label */
|
|
12
7
|
'aria-label'?: string;
|
|
13
8
|
/** Checkbox label */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAIlD,MAAM,MAAM,aAAa,GAAG,UAAU,CACpC,YAAY,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EACzD;IACE,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,mCAAmC;IACnC,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC5B,mCAAmC;IACnC,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB,GAAG,aAAa,CAClB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,QAAQ,wFAuBpB,CAAC"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { ButtonHTMLAttributes, InputHTMLAttributes } from 'react';
|
|
2
|
-
import type { Color } from '../../colors';
|
|
3
2
|
import type { DefaultProps } from '../../types';
|
|
4
3
|
import type { MergeRight } from '../../utilities';
|
|
5
4
|
type ChipBaseProps = {
|
|
6
|
-
/** Specify which color palette to use. If left unspecified, the color is inherited from the nearest ancestor with data-color.
|
|
7
|
-
*/
|
|
8
|
-
'data-color'?: Color;
|
|
9
5
|
/**
|
|
10
6
|
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
11
7
|
* @default false
|
|
@@ -21,26 +17,26 @@ export type ChipCheckboxProps = MergeRight<DefaultProps & Omit<InputHTMLAttribut
|
|
|
21
17
|
* @example
|
|
22
18
|
* <Chip.Button>Click me</Chip.Button>
|
|
23
19
|
*/
|
|
24
|
-
export declare const ChipButton: React.ForwardRefExoticComponent<Omit<DefaultProps & ButtonHTMLAttributes<HTMLButtonElement>,
|
|
20
|
+
export declare const ChipButton: React.ForwardRefExoticComponent<Omit<DefaultProps & ButtonHTMLAttributes<HTMLButtonElement>, "asChild"> & ChipBaseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
25
21
|
/**
|
|
26
22
|
* Chip.Removable used for interaction
|
|
27
23
|
* @example
|
|
28
24
|
* <Chip.Removable>Click to remove me</Chip.Removable>
|
|
29
25
|
*/
|
|
30
|
-
export declare const ChipRemovable: React.ForwardRefExoticComponent<Omit<DefaultProps & ButtonHTMLAttributes<HTMLButtonElement>,
|
|
26
|
+
export declare const ChipRemovable: React.ForwardRefExoticComponent<Omit<DefaultProps & ButtonHTMLAttributes<HTMLButtonElement>, "asChild"> & ChipBaseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
31
27
|
/**
|
|
32
28
|
* Chip.Checkbox used for multiselection
|
|
33
29
|
* @example
|
|
34
30
|
* <Chip.Checkbox name="language" value="nynorsk">Nynorsk</Chip.Checkbox>
|
|
35
31
|
* <Chip.Checkbox name="language" value="bokmål">Bokmål</Chip.Checkbox>
|
|
36
32
|
*/
|
|
37
|
-
export declare const ChipCheckbox: React.ForwardRefExoticComponent<Omit<DefaultProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type">,
|
|
33
|
+
export declare const ChipCheckbox: React.ForwardRefExoticComponent<Omit<DefaultProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type">, "asChild"> & ChipBaseProps & React.RefAttributes<HTMLLabelElement>>;
|
|
38
34
|
/**
|
|
39
35
|
* Chip.Radio used for single selection
|
|
40
36
|
* @example
|
|
41
37
|
* <Chip.Radio name="language" value="nynorsk">Nynorsk</Chip.Radio>
|
|
42
38
|
* <Chip.Radio name="language" value="bokmål">Bokmål</Chip.Radio>
|
|
43
39
|
*/
|
|
44
|
-
export declare const ChipRadio: React.ForwardRefExoticComponent<Omit<DefaultProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type">,
|
|
40
|
+
export declare const ChipRadio: React.ForwardRefExoticComponent<Omit<DefaultProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type">, "asChild"> & ChipBaseProps & React.RefAttributes<HTMLLabelElement>>;
|
|
45
41
|
export {};
|
|
46
42
|
//# sourceMappingURL=Chips.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chips.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chips.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Chips.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chips.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,KAAK,aAAa,GAAG;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC;AACjD,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC;AAC/C,MAAM,MAAM,eAAe,GAAG,UAAU,CACtC,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,EACtD,aAAa,CACd,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,UAAU,CACxC,YAAY,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,EAC3E,aAAa,CACd,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,mKAatB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,mKAIzB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,uLA2BxB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,uLAIrB,CAAC"}
|
|
@@ -1,31 +1,15 @@
|
|
|
1
1
|
import { ChipButton, ChipCheckbox, ChipRadio, ChipRemovable } from './Chips';
|
|
2
2
|
declare const Chip: {
|
|
3
|
-
Button: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
4
|
-
'data-color'?: import("../../colors").Color;
|
|
5
|
-
asChild?: boolean;
|
|
6
|
-
}> & {
|
|
7
|
-
'data-color'?: import("../../colors").Color;
|
|
3
|
+
Button: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "asChild"> & {
|
|
8
4
|
asChild?: boolean;
|
|
9
5
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
-
Checkbox: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type">,
|
|
11
|
-
'data-color'?: import("../../colors").Color;
|
|
12
|
-
asChild?: boolean;
|
|
13
|
-
}> & {
|
|
14
|
-
'data-color'?: import("../../colors").Color;
|
|
6
|
+
Checkbox: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type">, "asChild"> & {
|
|
15
7
|
asChild?: boolean;
|
|
16
8
|
} & React.RefAttributes<HTMLLabelElement>>;
|
|
17
|
-
Radio: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type">,
|
|
18
|
-
'data-color'?: import("../../colors").Color;
|
|
19
|
-
asChild?: boolean;
|
|
20
|
-
}> & {
|
|
21
|
-
'data-color'?: import("../../colors").Color;
|
|
9
|
+
Radio: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type">, "asChild"> & {
|
|
22
10
|
asChild?: boolean;
|
|
23
11
|
} & React.RefAttributes<HTMLLabelElement>>;
|
|
24
|
-
Removable: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
25
|
-
'data-color'?: import("../../colors").Color;
|
|
26
|
-
asChild?: boolean;
|
|
27
|
-
}> & {
|
|
28
|
-
'data-color'?: import("../../colors").Color;
|
|
12
|
+
Removable: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "asChild"> & {
|
|
29
13
|
asChild?: boolean;
|
|
30
14
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
31
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7E,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7E,QAAA,MAAM,IAAI;;;;;;;;;;;;;CAKT,CAAC;AAOF,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,kBAAkB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
import type { FormFieldProps } from '../../utilities/hooks/useFormField/useFormField';
|
|
2
|
+
import type { FormFieldProps } from './useFormField/useFormField';
|
|
4
3
|
import type { Option } from './useCombobox';
|
|
5
4
|
export type ComboboxProps = {
|
|
6
5
|
/**
|
|
@@ -93,7 +92,13 @@ export type ComboboxProps = {
|
|
|
93
92
|
* @default (option) => 'Slett ' + option.label,
|
|
94
93
|
*/
|
|
95
94
|
chipSrLabel?: (option: Option) => string;
|
|
96
|
-
|
|
95
|
+
/**
|
|
96
|
+
* Portals the floating element outside of the app root and into the body.
|
|
97
|
+
* @see https://floating-ui.com/docs/floatingportal
|
|
98
|
+
* @default false
|
|
99
|
+
*/
|
|
100
|
+
portal?: boolean;
|
|
101
|
+
} & FormFieldProps & Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>;
|
|
97
102
|
export declare const ComboboxComponent: React.ForwardRefExoticComponent<{
|
|
98
103
|
/**
|
|
99
104
|
* Label for the combobox.
|
|
@@ -185,14 +190,20 @@ export declare const ComboboxComponent: React.ForwardRefExoticComponent<{
|
|
|
185
190
|
* @default (option) => 'Slett ' + option.label,
|
|
186
191
|
*/
|
|
187
192
|
chipSrLabel?: (option: Option) => string;
|
|
188
|
-
|
|
193
|
+
/**
|
|
194
|
+
* Portals the floating element outside of the app root and into the body.
|
|
195
|
+
* @see https://floating-ui.com/docs/floatingportal
|
|
196
|
+
* @default false
|
|
197
|
+
*/
|
|
198
|
+
portal?: boolean;
|
|
199
|
+
} & {
|
|
189
200
|
error?: ReactNode;
|
|
190
201
|
errorId?: string;
|
|
191
202
|
disabled?: boolean;
|
|
192
203
|
description?: ReactNode;
|
|
193
204
|
id?: string;
|
|
194
205
|
readOnly?: boolean;
|
|
195
|
-
size?: import("
|
|
206
|
+
size?: import("../..").Size;
|
|
196
207
|
} & Pick<React.HTMLAttributes<HTMLElement>, "aria-describedby"> & Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
197
208
|
export declare const Combobox: React.ForwardRefExoticComponent<{
|
|
198
209
|
/**
|
|
@@ -285,13 +296,19 @@ export declare const Combobox: React.ForwardRefExoticComponent<{
|
|
|
285
296
|
* @default (option) => 'Slett ' + option.label,
|
|
286
297
|
*/
|
|
287
298
|
chipSrLabel?: (option: Option) => string;
|
|
288
|
-
|
|
299
|
+
/**
|
|
300
|
+
* Portals the floating element outside of the app root and into the body.
|
|
301
|
+
* @see https://floating-ui.com/docs/floatingportal
|
|
302
|
+
* @default false
|
|
303
|
+
*/
|
|
304
|
+
portal?: boolean;
|
|
305
|
+
} & {
|
|
289
306
|
error?: ReactNode;
|
|
290
307
|
errorId?: string;
|
|
291
308
|
disabled?: boolean;
|
|
292
309
|
description?: ReactNode;
|
|
293
310
|
id?: string;
|
|
294
311
|
readOnly?: boolean;
|
|
295
|
-
size?: import("
|
|
312
|
+
size?: import("../..").Size;
|
|
296
313
|
} & Pick<React.HTMLAttributes<HTMLElement>, "aria-describedby"> & Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
297
314
|
//# sourceMappingURL=Combobox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { UseFloatingReturn, UseListNavigationProps, useInteractions } from '@floating-ui/react';
|
|
2
2
|
import type { Dispatch, Ref, RefObject, SetStateAction } from 'react';
|
|
3
|
-
import type { useFormField } from '
|
|
3
|
+
import type { useFormField } from './useFormField/useFormField';
|
|
4
4
|
import type { ComboboxProps } from './Combobox';
|
|
5
5
|
import type { Option, useCombobox } from './useCombobox';
|
|
6
6
|
export type ComboboxContextType = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxContext.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ComboboxContext.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,WAAW,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;IACjD,QAAQ,EAAE,WAAW,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;IACjD,QAAQ,EAAE,WAAW,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;IACjD,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACpC,gBAAgB,EAAE,WAAW,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACjE,eAAe,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,iBAAiB,CAAC,CAAC;IACnE,OAAO,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;IACF,eAAe,EAAE;QACf,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;IACF,IAAI,EAAE,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IACzC,cAAc,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;IAChD,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAChC,QAAQ,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAChD,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,iBAAiB,EAAE,CACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC5B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7B,YAAY,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,cAAc,CAAC,CAAC;IACjE,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC;IACvD,kBAAkB,EAAE,CAAC,IAAI,EAAE;QACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,KAAK,IAAI,CAAC;IACX,OAAO,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAC3C,YAAY,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACpC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;CAC9D,CAAC;AAEF,eAAO,MAAM,eAAe,gDAE3B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { useFormField } from '../../../utilities/hooks/useFormField/useFormField';
|
|
2
1
|
import type { ComboboxProps } from '../Combobox';
|
|
2
|
+
import type { useFormField } from '../useFormField/useFormField';
|
|
3
3
|
type ComboboxErrorProps = {
|
|
4
4
|
size: ComboboxProps['size'];
|
|
5
5
|
error?: ComboboxProps['error'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxError.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/internal/ComboboxError.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ComboboxError.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/internal/ComboboxError.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,cAAc,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;CACjD,CAAC;AAEF,QAAA,MAAM,aAAa;sCAAqC,kBAAkB;;CAWzE,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { useFormField } from '../../../utilities/hooks/useFormField/useFormField';
|
|
2
1
|
import type { ComboboxProps } from '../Combobox';
|
|
2
|
+
import type { useFormField } from '../useFormField/useFormField';
|
|
3
3
|
type ComboboxLabelProps = {
|
|
4
4
|
label?: ComboboxProps['label'];
|
|
5
5
|
description?: ComboboxProps['description'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/internal/ComboboxLabel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ComboboxLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/internal/ComboboxLabel.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,KAAK,kBAAkB,GAAG;IACxB,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,WAAW,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACvC,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,cAAc,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;CACjD,CAAC;AAEF,QAAA,MAAM,aAAa;yEAOhB,kBAAkB;;CAiCpB,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FormFieldProps } from '
|
|
1
|
+
import type { FormFieldProps } from './useFormField';
|
|
2
2
|
export type FieldsetContextType = Pick<FormFieldProps, 'error' | 'errorId' | 'disabled' | 'size'>;
|
|
3
3
|
export declare const FieldsetContext: React.Context<FieldsetContextType | null>;
|
|
4
4
|
//# sourceMappingURL=FieldsetContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldsetContext.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/useFormField/FieldsetContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,cAAc,EACd,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAC1C,CAAC;AAEF,eAAO,MAAM,eAAe,2CAAkD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormField.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/useFormField/useFormField.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAG3C,MAAM,MAAM,cAAc,GAAG;IAC3B,mCAAmC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,2BAA2B;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,wBAAwB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC,CAAC;AAE1D,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;KACZ,GAAG,IAAI,CACN,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,UAAU,GAAG,cAAc,GAAG,kBAAkB,CACjD,CAAC;CACH,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,YAAY,UAChB,cAAc,UACb,MAAM,KACb,SAkCF,CAAC"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import '@u-elements/u-details';
|
|
3
|
-
|
|
3
|
+
import type { Color } from '../../colors';
|
|
4
|
+
import type { DefaultProps } from '../../types';
|
|
5
|
+
import type { MergeRight } from '../../utilities';
|
|
6
|
+
export type DetailsProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDetailsElement>, {
|
|
7
|
+
/**
|
|
8
|
+
* Specify which color palette to use.
|
|
9
|
+
* If left unspecified, the color is inherited from the nearest ancestor with data-color.
|
|
10
|
+
*/
|
|
11
|
+
'data-color'?: 'subtle' | Color;
|
|
4
12
|
/**
|
|
5
13
|
* Controls open-state.
|
|
6
14
|
*
|
|
@@ -18,7 +26,7 @@ export type DetailsProps = {
|
|
|
18
26
|
onToggle?: (event: Event) => void;
|
|
19
27
|
/** Content should be one `<Details.Summary>` and `<Details.Content>` */
|
|
20
28
|
children?: ReactNode;
|
|
21
|
-
}
|
|
29
|
+
}> & ({
|
|
22
30
|
open: boolean;
|
|
23
31
|
onToggle: (event: Event) => void;
|
|
24
32
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../src/components/Details/Details.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../src/components/Details/Details.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG,UAAU,CACnC,YAAY,GAAG,cAAc,CAAC,kBAAkB,CAAC,EACjD;IACE;;;OAGG;IACH,YAAY,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAChC;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAClC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CACF,GACC,CACI;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,GACnD;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,CACtD,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,yFAmCnB,CAAC"}
|
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
import type { Placement } from '@floating-ui/react';
|
|
2
|
-
import type { Color } from '../../colors';
|
|
3
2
|
import type { DefaultProps } from '../../types';
|
|
4
3
|
import type { MergeRight } from '../../utilities';
|
|
5
4
|
import type { PopoverProps } from '../Popover';
|
|
6
5
|
export type DropdownProps = MergeRight<DefaultProps & Omit<PopoverProps, 'variant'>, {
|
|
7
|
-
/** Specify which color palette to use. If left unspecified, the color is inherited from the nearest ancestor with data-color.
|
|
8
|
-
*/
|
|
9
|
-
'data-color'?: Color;
|
|
10
6
|
/** The placement of the dropdown
|
|
11
7
|
* @default bottom-end
|
|
12
8
|
*/
|
|
13
9
|
placement?: Placement;
|
|
14
10
|
}>;
|
|
15
|
-
export declare const Dropdown: React.ForwardRefExoticComponent<Omit<DefaultProps & Omit<PopoverProps, "variant">, "
|
|
16
|
-
/** Specify which color palette to use. If left unspecified, the color is inherited from the nearest ancestor with data-color.
|
|
17
|
-
*/
|
|
18
|
-
'data-color'?: Color;
|
|
11
|
+
export declare const Dropdown: React.ForwardRefExoticComponent<Omit<DefaultProps & Omit<PopoverProps, "variant">, "placement"> & {
|
|
19
12
|
/** The placement of the dropdown
|
|
20
13
|
* @default bottom-end
|
|
21
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,UAAU,CACpC,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,EAC5C;IACE;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CACF,CAAC;AAEF,eAAO,MAAM,QAAQ;IAPjB;;OAEG;gBACS,SAAS;wCAkBxB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { type HeadingProps } from '../Heading';
|
|
|
2
2
|
export type DropdownHeadingProps = HeadingProps;
|
|
3
3
|
export declare const DropdownHeading: React.ForwardRefExoticComponent<{
|
|
4
4
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
|
-
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
5
|
+
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | (string & {});
|
|
6
6
|
asChild?: boolean;
|
|
7
7
|
} & React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
8
8
|
//# sourceMappingURL=DropdownHeading.d.ts.map
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import { type PopoverTriggerProps } from '../Popover';
|
|
2
2
|
export type DropdownTriggerProps = PopoverTriggerProps;
|
|
3
|
-
export declare const DropdownTrigger: React.ForwardRefExoticComponent<
|
|
4
|
-
variant?: "primary" | "secondary" | "tertiary";
|
|
5
|
-
'data-color'?: import("../../colors").Color;
|
|
6
|
-
icon?: boolean;
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
type?: React.ButtonHTMLAttributes<HTMLButtonElement>["type"];
|
|
10
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
3
|
+
export declare const DropdownTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
4
|
//# sourceMappingURL=DropdownTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/DropdownTrigger.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtE,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAEvD,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"DropdownTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/DropdownTrigger.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtE,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAEvD,eAAO,MAAM,eAAe,+FAK1B,CAAC"}
|
|
@@ -18,8 +18,7 @@ import { DropdownTriggerContext } from './DropdownTriggerContext';
|
|
|
18
18
|
* </Dropdown>
|
|
19
19
|
* </Dropdown.TriggerContext>
|
|
20
20
|
*/
|
|
21
|
-
declare const Dropdown: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & Omit<import("..").PopoverProps, "variant">, "
|
|
22
|
-
'data-color'?: import("../../colors").Color;
|
|
21
|
+
declare const Dropdown: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & Omit<import("..").PopoverProps, "variant">, "placement"> & {
|
|
23
22
|
placement?: import("@floating-ui/utils").Placement;
|
|
24
23
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
25
24
|
TriggerContext: {
|
|
@@ -28,20 +27,13 @@ declare const Dropdown: React.ForwardRefExoticComponent<Omit<import("../../types
|
|
|
28
27
|
};
|
|
29
28
|
Heading: React.ForwardRefExoticComponent<{
|
|
30
29
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
31
|
-
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
30
|
+
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | (string & {});
|
|
32
31
|
asChild?: boolean;
|
|
33
32
|
} & React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
34
33
|
List: React.ForwardRefExoticComponent<import("./DropdownList").DropdownListProps & React.RefAttributes<HTMLUListElement>>;
|
|
35
34
|
Item: React.ForwardRefExoticComponent<import("./DropdownItem").DropdownItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
36
35
|
Button: React.ForwardRefExoticComponent<import("./DropdownButton").DropdownButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
37
|
-
Trigger: React.ForwardRefExoticComponent<
|
|
38
|
-
variant?: "primary" | "secondary" | "tertiary";
|
|
39
|
-
'data-color'?: import("../../colors").Color;
|
|
40
|
-
icon?: boolean;
|
|
41
|
-
loading?: boolean;
|
|
42
|
-
asChild?: boolean;
|
|
43
|
-
type?: React.ButtonHTMLAttributes<HTMLButtonElement>["type"];
|
|
44
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
Trigger: React.ForwardRefExoticComponent<import("..").PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
45
37
|
};
|
|
46
38
|
export type { DropdownTriggerContextProps } from './DropdownTriggerContext';
|
|
47
39
|
export type { DropdownListProps } from './DropdownList';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;CAOZ,CAAC;AASH,YAAY,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAC5E,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EACL,QAAQ,EACR,sBAAsB,EACtB,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,cAAc,EACd,eAAe,GAChB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { type HeadingProps } from '../Heading';
|
|
|
2
2
|
export type ErrorSummaryHeadingProps = HeadingProps;
|
|
3
3
|
export declare const ErrorSummaryHeading: React.ForwardRefExoticComponent<{
|
|
4
4
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
|
-
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
5
|
+
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | (string & {});
|
|
6
6
|
asChild?: boolean;
|
|
7
7
|
} & React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
8
8
|
//# sourceMappingURL=ErrorSummaryHeading.d.ts.map
|
|
@@ -13,7 +13,7 @@ import { ErrorSummaryList } from './ErrorSummaryList';
|
|
|
13
13
|
declare const ErrorSummary: React.ForwardRefExoticComponent<import("./ErrorSummary").ErrorSummaryProps & React.RefAttributes<HTMLDivElement>> & {
|
|
14
14
|
Heading: React.ForwardRefExoticComponent<{
|
|
15
15
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
16
|
-
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
16
|
+
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | (string & {});
|
|
17
17
|
asChild?: boolean;
|
|
18
18
|
} & React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
19
19
|
Item: React.ForwardRefExoticComponent<import("./ErrorSummaryItem").ErrorSummaryItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/components/Field/Field.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;CAC5B,GAAG,cAAc,CAAC,cAAc,CAAC,GAChC,YAAY,CAAC;AAEf,eAAO,MAAM,KAAK;IAPhB;;OAEG;eACQ,OAAO,GAAG,KAAK;
|
|
1
|
+
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/components/Field/Field.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;CAC5B,GAAG,cAAc,CAAC,cAAc,CAAC,GAChC,YAAY,CAAC;AAEf,eAAO,MAAM,KAAK;IAPhB;;OAEG;eACQ,OAAO,GAAG,KAAK;wFAoB1B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ParagraphProps } from '../Paragraph/Paragraph';
|
|
2
2
|
export type FieldsetDescriptionProps = ParagraphProps;
|
|
3
3
|
export declare const FieldsetDescription: React.ForwardRefExoticComponent<{
|
|
4
|
-
'data-size'?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
|
+
'data-size'?: "xs" | "sm" | "md" | "lg" | "xl" | (string & {});
|
|
5
5
|
variant?: "long" | "default" | "short";
|
|
6
6
|
asChild?: boolean;
|
|
7
7
|
} & React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLLegendElement>>;
|
|
@@ -11,7 +11,7 @@ import { FieldsetLegend } from './FieldsetLegend';
|
|
|
11
11
|
declare const Fieldset: React.ForwardRefExoticComponent<import("../../types").DefaultProps & React.FieldsetHTMLAttributes<HTMLFieldSetElement> & React.RefAttributes<HTMLFieldSetElement>> & {
|
|
12
12
|
Legend: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLLegendElement> & import("../../types").DefaultProps & React.RefAttributes<HTMLLegendElement>>;
|
|
13
13
|
Description: React.ForwardRefExoticComponent<{
|
|
14
|
-
'data-size'?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
14
|
+
'data-size'?: "xs" | "sm" | "md" | "lg" | "xl" | (string & {});
|
|
15
15
|
variant?: "long" | "default" | "short";
|
|
16
16
|
asChild?: boolean;
|
|
17
17
|
} & React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLLegendElement>>;
|
|
@@ -7,7 +7,7 @@ export type HeadingProps = {
|
|
|
7
7
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
8
8
|
/** Changes text sizing
|
|
9
9
|
*/
|
|
10
|
-
'data-size'?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
10
|
+
'data-size'?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | (string & {});
|
|
11
11
|
/**
|
|
12
12
|
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
13
13
|
* @default false
|
|
@@ -28,7 +28,7 @@ export declare const Heading: React.ForwardRefExoticComponent<{
|
|
|
28
28
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
29
29
|
/** Changes text sizing
|
|
30
30
|
*/
|
|
31
|
-
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
31
|
+
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | (string & {});
|
|
32
32
|
/**
|
|
33
33
|
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
34
34
|
* @default false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/Heading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,OAAO,CAAC;AAGzD,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9B;OACG;IACH,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/Heading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,OAAO,CAAC;AAGzD,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9B;OACG;IACH,WAAW,CAAC,EACR,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,OAAO;IA7BlB;;;OAGG;YACK,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;IAC7B;OACG;kBAEC,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,CAAC,MAAM,GAAG,EAAE,CAAC;IACjB;;;OAGG;cACO,OAAO;iFAiBlB,CAAC"}
|