@digdir/designsystemet-react 1.0.0-next.44 → 1.0.0-next.45-test-react19
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 +2 -2
- package/dist/cjs/components/Combobox/internal/ComboboxChips.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 +22 -16
- package/dist/cjs/utilities/RovingFocus/RovingFocusRoot.js +1 -1
- 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/useRadioGroup/useRadioGroup.js +99 -0
- package/dist/esm/components/Combobox/Combobox.js +2 -2
- package/dist/esm/components/Combobox/internal/ComboboxChips.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 +10 -7
- package/dist/esm/utilities/RovingFocus/RovingFocusRoot.js +1 -1
- 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/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 +2 -2
- package/dist/types/components/Combobox/ComboboxContext.d.ts.map +1 -1
- package/dist/types/components/Combobox/Option/Option.d.ts +2 -2
- package/dist/types/components/Combobox/Option/Option.d.ts.map +1 -1
- package/dist/types/components/Combobox/Option/useComboboxOption.d.ts +6 -4
- package/dist/types/components/Combobox/Option/useComboboxOption.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/Combobox/useFloatingCombobox.d.ts +2 -2
- package/dist/types/components/Combobox/useFloatingCombobox.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 +2 -5
- package/dist/types/components/Modal/ModalTrigger.d.ts.map +1 -1
- package/dist/types/components/Modal/ModalTriggerContext.d.ts +1 -1
- package/dist/types/components/Modal/ModalTriggerContext.d.ts.map +1 -1
- package/dist/types/components/Modal/index.d.ts +2 -5
- 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/components/index.d.ts +0 -1
- package/dist/types/components/index.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/RovingFocus/useRovingFocus.d.ts +14 -1
- package/dist/types/utilities/RovingFocus/useRovingFocus.d.ts.map +1 -1
- package/dist/types/utilities/hooks/index.d.ts +2 -3
- package/dist/types/utilities/hooks/index.d.ts.map +1 -1
- package/dist/types/utilities/hooks/useCheckboxGroup/useCheckboxGroup.d.ts +6 -325
- package/dist/types/utilities/hooks/useCheckboxGroup/useCheckboxGroup.d.ts.map +1 -1
- package/dist/types/utilities/hooks/useRadioGroup/useRadioGroup.d.ts +13 -327
- package/dist/types/utilities/hooks/useRadioGroup/useRadioGroup.d.ts.map +1 -1
- package/dist/types/utilities/hooks/useSynchronizedAnimation/useSynchronizedAnimation.d.ts +1 -1
- package/dist/types/utilities/hooks/useSynchronizedAnimation/useSynchronizedAnimation.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/cjs/components/HelpText/HelpText.js +0 -13
- package/dist/esm/components/HelpText/HelpText.js +0 -11
- package/dist/types/components/Fieldset/FieldsetContext.d.ts.map +0 -1
- package/dist/types/components/HelpText/HelpText.d.ts +0 -27
- package/dist/types/components/HelpText/HelpText.d.ts.map +0 -1
- package/dist/types/components/HelpText/index.d.ts +0 -3
- package/dist/types/components/HelpText/index.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/types/utilities/hooks/usePrevious/usePrevious.d.ts +0 -2
- package/dist/types/utilities/hooks/usePrevious/usePrevious.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/Badge/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,QAAA,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,QAAA,MAAM,KAAK;;;;;;;;;CAAuD,CAAC;AAInE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { LinkProps } from '../Link';
|
|
2
2
|
export type BreadcrumbsLinkProps = LinkProps;
|
|
3
|
-
export declare const BreadcrumbsLink: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.AnchorHTMLAttributes<HTMLAnchorElement>, "className" | "
|
|
3
|
+
export declare const BreadcrumbsLink: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.AnchorHTMLAttributes<HTMLAnchorElement>, "className" | "children" | "asChild" | "href"> & {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
className?: string;
|
|
6
|
-
'data-color'?: import("../../colors").Color;
|
|
7
6
|
href?: string;
|
|
8
7
|
asChild?: boolean;
|
|
9
8
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbsLink.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/BreadcrumbsLink.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC;AAE7C,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"BreadcrumbsLink.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/BreadcrumbsLink.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC;AAE7C,eAAO,MAAM,eAAe;;;;;2CAK1B,CAAC"}
|
|
@@ -19,10 +19,9 @@ export declare const Breadcrumbs: React.ForwardRefExoticComponent<Omit<import(".
|
|
|
19
19
|
} & React.RefAttributes<HTMLElement>> & {
|
|
20
20
|
List: React.ForwardRefExoticComponent<import("./BreadcrumbsList").BreadcrumbsListProps & React.RefAttributes<HTMLOListElement>>;
|
|
21
21
|
Item: React.ForwardRefExoticComponent<import("./BreadcrumbsItem").BreadcrumbsItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
22
|
-
Link: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.AnchorHTMLAttributes<HTMLAnchorElement>, "className" | "
|
|
22
|
+
Link: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.AnchorHTMLAttributes<HTMLAnchorElement>, "className" | "children" | "asChild" | "href"> & {
|
|
23
23
|
children: React.ReactNode;
|
|
24
24
|
className?: string;
|
|
25
|
-
'data-color'?: import("../../colors").Color;
|
|
26
25
|
href?: string;
|
|
27
26
|
asChild?: boolean;
|
|
28
27
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -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 = {
|
|
@@ -19,7 +19,7 @@ export type ComboboxContextType = {
|
|
|
19
19
|
size: NonNullable<ComboboxProps['size']>;
|
|
20
20
|
formFieldProps: ReturnType<typeof useFormField>;
|
|
21
21
|
refs: UseFloatingReturn['refs'];
|
|
22
|
-
inputRef: RefObject<HTMLInputElement>;
|
|
22
|
+
inputRef: RefObject<HTMLInputElement | null>;
|
|
23
23
|
open: boolean;
|
|
24
24
|
inputValue: string;
|
|
25
25
|
customIds: string[];
|
|
@@ -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,GAAG,IAAI,CAAC,CAAC;IAC7C,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"}
|
|
@@ -14,7 +14,7 @@ export type ComboboxOptionProps = {
|
|
|
14
14
|
*/
|
|
15
15
|
displayValue?: string;
|
|
16
16
|
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
17
|
-
declare const ComboboxOption: React.
|
|
17
|
+
declare const ComboboxOption: React.NamedExoticComponent<{
|
|
18
18
|
/**
|
|
19
19
|
* The value returned when the option is selected
|
|
20
20
|
*/
|
|
@@ -28,7 +28,7 @@ declare const ComboboxOption: React.MemoExoticComponent<React.ForwardRefExoticCo
|
|
|
28
28
|
* Required if children is not composed of strings only.
|
|
29
29
|
*/
|
|
30
30
|
displayValue?: string;
|
|
31
|
-
} & ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement
|
|
31
|
+
} & ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
32
32
|
export { ComboboxOption };
|
|
33
33
|
export declare function isComboboxOption(child: ReactNode): child is ReactElement<ComboboxOptionProps>;
|
|
34
34
|
//# sourceMappingURL=Option.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/Option/Option.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAU3E,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAE5C,QAAA,MAAM,cAAc;IAflB;;OAEG;WACI,MAAM;IACb;;OAEG;kBACW,MAAM;IACpB;;;OAGG;mBACY,MAAM;
|
|
1
|
+
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/Option/Option.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAU3E,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAE5C,QAAA,MAAM,cAAc;IAflB;;OAEG;WACI,MAAM;IACb;;OAEG;kBACW,MAAM;IACpB;;;OAGG;mBACY,MAAM;qFAoEtB,CAAC;AAIF,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,GACf,KAAK,IAAI,YAAY,CAAC,mBAAmB,CAAC,CAE5C"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import type { Ref } from 'react';
|
|
2
|
+
import type { Option } from '../useCombobox';
|
|
2
3
|
type UseComboboxOptionProps = {
|
|
3
4
|
id?: string;
|
|
4
5
|
ref: Ref<HTMLButtonElement>;
|
|
5
6
|
value: string;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
+
type UseComboboxOptionReturn = {
|
|
8
9
|
id: string;
|
|
9
|
-
ref:
|
|
10
|
-
selected:
|
|
10
|
+
ref: Ref<HTMLButtonElement>;
|
|
11
|
+
selected: Option;
|
|
11
12
|
active: boolean;
|
|
12
|
-
onOptionClick: (
|
|
13
|
+
onOptionClick: () => void;
|
|
13
14
|
};
|
|
15
|
+
export declare const useComboboxOption: ({ id, ref, value, }: UseComboboxOptionProps) => UseComboboxOptionReturn;
|
|
14
16
|
export {};
|
|
15
17
|
//# sourceMappingURL=useComboboxOption.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useComboboxOption.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/Option/useComboboxOption.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useComboboxOption.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/Option/useComboboxOption.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAKjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG7C,KAAK,sBAAsB,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,wBAI3B,sBAAsB,KAAG,uBAuD3B,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"}
|
|
@@ -8,7 +8,7 @@ export declare const useFloatingCombobox: ({ listRef }: UseFloatingComboboxProps
|
|
|
8
8
|
activeIndex: number;
|
|
9
9
|
refs: {
|
|
10
10
|
reference: MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
|
|
11
|
-
floating: MutableRefObject<HTMLElement | null>;
|
|
11
|
+
floating: React.MutableRefObject<HTMLElement | null>;
|
|
12
12
|
setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
|
|
13
13
|
setFloating: (node: HTMLElement | null) => void;
|
|
14
14
|
} & import("@floating-ui/react").ExtendedRefs<HTMLInputElement>;
|
|
@@ -25,7 +25,7 @@ export declare const useFloatingCombobox: ({ listRef }: UseFloatingComboboxProps
|
|
|
25
25
|
open: boolean;
|
|
26
26
|
onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void;
|
|
27
27
|
events: import("@floating-ui/react").FloatingEvents;
|
|
28
|
-
dataRef: MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
28
|
+
dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
29
29
|
nodeId: string | undefined;
|
|
30
30
|
floatingId: string;
|
|
31
31
|
refs: import("@floating-ui/react").ExtendedRefs<HTMLInputElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFloatingCombobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/useFloatingCombobox.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAK9C,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,gBAAgB,CAAC,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,mBAAmB,gBAAiB,wBAAwB
|
|
1
|
+
{"version":3,"file":"useFloatingCombobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/useFloatingCombobox.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAK9C,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,gBAAgB,CAAC,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,mBAAmB,gBAAiB,wBAAwB;;;;;;kBAwEw0N,MAAO,gBAAgB;;;;;;;;;;;;;wBAA5X,MAAO,aAAa;;;;iBAAoe,MAAO,gBAAgB;;;;;;oCAA6yxB,MAAO,SAAS;mCAA0E,MAAO,SAAS;oCAAgF,MAAM,SAAS;;;;CADhjgC,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"}
|