@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,14 +1,8 @@
|
|
|
1
1
|
import type { 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 InputAttr = InputHTMLAttributes<HTMLInputElement>;
|
|
6
5
|
export type InputProps = MergeRight<DefaultProps & Omit<InputAttr, 'prefix'>, {
|
|
7
|
-
/**
|
|
8
|
-
* Sets a color palette which **may** be used by this component, depending on the `type` prop.
|
|
9
|
-
* If left unspecified, the color is inherited from the nearest ancestor with data-color.
|
|
10
|
-
*/
|
|
11
|
-
'data-color'?: Color;
|
|
12
6
|
/** Supported `input` types */
|
|
13
7
|
type?: InputAttr['type'];
|
|
14
8
|
/** Defines the width of `Input` in count of characters.
|
|
@@ -30,12 +24,7 @@ export type InputProps = MergeRight<DefaultProps & Omit<InputAttr, 'prefix'>, {
|
|
|
30
24
|
* <Input />
|
|
31
25
|
* ```
|
|
32
26
|
*/
|
|
33
|
-
export declare const Input: React.ForwardRefExoticComponent<Omit<DefaultProps & Omit<InputAttr, "prefix">, "disabled" | "readOnly" | "size" | "type" | "role"
|
|
34
|
-
/**
|
|
35
|
-
* Sets a color palette which **may** be used by this component, depending on the `type` prop.
|
|
36
|
-
* If left unspecified, the color is inherited from the nearest ancestor with data-color.
|
|
37
|
-
*/
|
|
38
|
-
'data-color'?: Color;
|
|
27
|
+
export declare const Input: React.ForwardRefExoticComponent<Omit<DefaultProps & Omit<InputAttr, "prefix">, "disabled" | "readOnly" | "size" | "type" | "role"> & {
|
|
39
28
|
/** Supported `input` types */
|
|
40
29
|
type?: InputAttr["type"];
|
|
41
30
|
/** Defines the width of `Input` in count of characters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,KAAK,SAAS,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AAEvD,MAAM,MAAM,UAAU,GAAG,UAAU,CACjC,YAAY,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,EACxC;IACE,8BAA8B;IAC9B,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB;OACG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yDAAyD;IACzD,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CAC1B,CACF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK;IAvBd,8BAA8B;WACvB,SAAS,CAAC,MAAM,CAAC;IACxB;OACG;WACI,MAAM;IACb;;OAEG;eACQ,OAAO;IAClB,wBAAwB;eACb,OAAO;IAClB,yDAAyD;WAClD,SAAS,CAAC,MAAM,CAAC;0CA4B1B,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { AnchorHTMLAttributes, ReactNode } 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 LinkProps = MergeRight<DefaultProps & AnchorHTMLAttributes<HTMLAnchorElement>, {
|
|
@@ -7,11 +6,6 @@ export type LinkProps = MergeRight<DefaultProps & AnchorHTMLAttributes<HTMLAncho
|
|
|
7
6
|
children: ReactNode;
|
|
8
7
|
/** Custom class name for the link. This will be appended to the design system class names. */
|
|
9
8
|
className?: string;
|
|
10
|
-
/**
|
|
11
|
-
* The color of the link.
|
|
12
|
-
* @default accent
|
|
13
|
-
*/
|
|
14
|
-
'data-color'?: Color;
|
|
15
9
|
/** The URL that the link points to. This can also be an email address (starting with `mailto:`) or a phone number (staring with `tel:`). */
|
|
16
10
|
href?: string;
|
|
17
11
|
/**
|
|
@@ -20,16 +14,11 @@ export type LinkProps = MergeRight<DefaultProps & AnchorHTMLAttributes<HTMLAncho
|
|
|
20
14
|
*/
|
|
21
15
|
asChild?: boolean;
|
|
22
16
|
}>;
|
|
23
|
-
export declare const Link: React.ForwardRefExoticComponent<Omit<DefaultProps & AnchorHTMLAttributes<HTMLAnchorElement>, "className" | "
|
|
17
|
+
export declare const Link: React.ForwardRefExoticComponent<Omit<DefaultProps & AnchorHTMLAttributes<HTMLAnchorElement>, "className" | "children" | "asChild" | "href"> & {
|
|
24
18
|
/** The content to display inside the link. */
|
|
25
19
|
children: ReactNode;
|
|
26
20
|
/** Custom class name for the link. This will be appended to the design system class names. */
|
|
27
21
|
className?: string;
|
|
28
|
-
/**
|
|
29
|
-
* The color of the link.
|
|
30
|
-
* @default accent
|
|
31
|
-
*/
|
|
32
|
-
'data-color'?: Color;
|
|
33
22
|
/** The URL that the link points to. This can also be an email address (starting with `mailto:`) or a phone number (staring with `tel:`). */
|
|
34
23
|
href?: string;
|
|
35
24
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,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,oBAAoB,CAAC,iBAAiB,CAAC,EACtD;IACE,8CAA8C;IAC9C,QAAQ,EAAE,SAAS,CAAC;IACpB,8FAA8F;IAC9F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4IAA4I;IAC5I,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF,eAAO,MAAM,IAAI;IAdb,8CAA8C;cACpC,SAAS;IACnB,8FAA8F;gBAClF,MAAM;IAClB,4IAA4I;WACrI,MAAM;IACb;;;OAGG;cACO,OAAO;2CAYpB,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { ComponentPropsWithRef } from 'react';
|
|
2
2
|
import { Button } from '../Button/Button';
|
|
3
3
|
export type ModalTriggerProps = ComponentPropsWithRef<typeof Button>;
|
|
4
|
-
export declare const ModalTrigger: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "
|
|
4
|
+
export declare const ModalTrigger: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "asChild" | "variant" | "icon" | "loading"> & {
|
|
5
5
|
variant?: "primary" | "secondary" | "tertiary";
|
|
6
|
-
'data-color'?: import("../../colors").Color;
|
|
7
6
|
icon?: boolean;
|
|
8
7
|
loading?: boolean;
|
|
9
8
|
asChild?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ModalTrigger.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG1C,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,CAAC,OAAO,MAAM,CAAC,CAAC;AAErE,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"ModalTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ModalTrigger.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG1C,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,CAAC,OAAO,MAAM,CAAC,CAAC;AAErE,eAAO,MAAM,YAAY;;;;;;;;mDAcxB,CAAC"}
|
|
@@ -14,9 +14,8 @@ declare const Modal: React.ForwardRefExoticComponent<Omit<import("../../types").
|
|
|
14
14
|
({ children }: import("./ModalTriggerContext").ModalTriggerContextProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
displayName: string;
|
|
16
16
|
};
|
|
17
|
-
Trigger: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "
|
|
17
|
+
Trigger: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "asChild" | "variant" | "icon" | "loading"> & {
|
|
18
18
|
variant?: "primary" | "secondary" | "tertiary";
|
|
19
|
-
'data-color'?: import("../../colors").Color;
|
|
20
19
|
icon?: boolean;
|
|
21
20
|
loading?: boolean;
|
|
22
21
|
asChild?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,QAAA,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;CAIT,CAAC;AAMH,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import type { HTMLAttributes } 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 PaginationProps = MergeRight<DefaultProps & HTMLAttributes<HTMLElement>, {
|
|
6
|
-
/**
|
|
7
|
-
* The color of the pagination buttons. If left unspecified, the color is inherited from the nearest ancestor with data-color.
|
|
8
|
-
*/
|
|
9
|
-
'data-color'?: Color;
|
|
10
5
|
/**
|
|
11
6
|
* Sets the screen reader label for the Pagination area
|
|
12
7
|
* @default Sidenavigering
|
|
@@ -18,11 +13,7 @@ export type PaginationProps = MergeRight<DefaultProps & HTMLAttributes<HTMLEleme
|
|
|
18
13
|
*/
|
|
19
14
|
asChild?: boolean;
|
|
20
15
|
}>;
|
|
21
|
-
export declare const Pagination: React.ForwardRefExoticComponent<Omit<DefaultProps & HTMLAttributes<HTMLElement>, "
|
|
22
|
-
/**
|
|
23
|
-
* The color of the pagination buttons. If left unspecified, the color is inherited from the nearest ancestor with data-color.
|
|
24
|
-
*/
|
|
25
|
-
'data-color'?: Color;
|
|
16
|
+
export declare const Pagination: React.ForwardRefExoticComponent<Omit<DefaultProps & HTMLAttributes<HTMLElement>, "aria-label" | "asChild"> & {
|
|
26
17
|
/**
|
|
27
18
|
* Sets the screen reader label for the Pagination area
|
|
28
19
|
* @default Sidenavigering
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,eAAe,GAAG,UAAU,CACtC,YAAY,GAAG,cAAc,CAAC,WAAW,CAAC,EAC1C;IACE;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF,eAAO,MAAM,UAAU;IAbnB;;;OAGG;mBACY,MAAM;IACrB;;;OAGG;cACO,OAAO;qCAoBpB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { PaginationButton } from './PaginationButton';
|
|
2
2
|
import { PaginationItem } from './PaginationItem';
|
|
3
3
|
import { PaginationList } from './PaginationList';
|
|
4
|
-
declare const Pagination: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.HTMLAttributes<HTMLElement>, "
|
|
5
|
-
'data-color'?: import("../../colors").Color;
|
|
4
|
+
declare const Pagination: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.HTMLAttributes<HTMLElement>, "aria-label" | "asChild"> & {
|
|
6
5
|
'aria-label'?: string;
|
|
7
6
|
asChild?: boolean;
|
|
8
7
|
} & React.RefAttributes<HTMLElement>> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,QAAA,MAAM,UAAU;;;;;;;;;;;;;CAId,CAAC;AAMH,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -32,7 +32,7 @@ export declare const usePagination: ({ currentPage, setCurrentPage, onChange, to
|
|
|
32
32
|
pages: {
|
|
33
33
|
page: string | number;
|
|
34
34
|
itemKey: string;
|
|
35
|
-
buttonProps: PaginationButtonProps;
|
|
35
|
+
buttonProps: PaginationButtonProps | null;
|
|
36
36
|
}[];
|
|
37
37
|
/** Properties to spread on Pagination.Button used for previous naviagation */
|
|
38
38
|
prevButtonProps: PaginationButtonProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/usePagination.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAchE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,2CAA2C;AAC3C,eAAO,MAAM,aAAa,sEAMvB,kBAAkB;IAWf,sBAAsB;;;;
|
|
1
|
+
{"version":3,"file":"usePagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/usePagination.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAchE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,2CAA2C;AAC3C,eAAO,MAAM,aAAa,sEAMvB,kBAAkB;IAWf,sBAAsB;;;;qBAWL,qBAAqB,GAAG,IAAI;;IAG7C,8EAA8E;qBAKzE,qBAAqB;IAC1B,0EAA0E;qBAKrE,qBAAqB;IAC1B,gEAAgE;;IAEhE,4DAA4D;;CAGxB,CAAC"}
|
|
@@ -3,7 +3,7 @@ export type ParagraphProps = {
|
|
|
3
3
|
/**
|
|
4
4
|
* Changes text sizing
|
|
5
5
|
*/
|
|
6
|
-
'data-size'?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
+
'data-size'?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | (string & {});
|
|
7
7
|
/**
|
|
8
8
|
* Adjusts styling for paragraph length
|
|
9
9
|
* @default 'default'
|
|
@@ -25,7 +25,7 @@ export declare const Paragraph: React.ForwardRefExoticComponent<{
|
|
|
25
25
|
/**
|
|
26
26
|
* Changes text sizing
|
|
27
27
|
*/
|
|
28
|
-
'data-size'?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
28
|
+
'data-size'?: "xs" | "sm" | "md" | "lg" | "xl" | (string & {});
|
|
29
29
|
/**
|
|
30
30
|
* Adjusts styling for paragraph length
|
|
31
31
|
* @default 'default'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../../../src/components/Paragraph/Paragraph.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC/
|
|
1
|
+
{"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../../../src/components/Paragraph/Paragraph.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC/D;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,oBAAoB,CAAC,CAAC;AACzC;;;;;GAKG;AACH,eAAO,MAAM,SAAS;IArBpB;;OAEG;kBACW,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;IAC9D;;;OAGG;cACO,MAAM,GAAG,SAAS,GAAG,OAAO;IACtC;;;OAGG;cACO,OAAO;qFAwBlB,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Placement } from '@floating-ui/dom';
|
|
2
2
|
import type { HTMLAttributes } from 'react';
|
|
3
|
-
import type { Color } from '../../colors';
|
|
4
3
|
import type { DefaultProps } from '../../types';
|
|
5
4
|
import type { MergeRight } from '../../utilities';
|
|
6
5
|
declare global {
|
|
@@ -25,10 +24,6 @@ export type PopoverProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivEleme
|
|
|
25
24
|
* @default top
|
|
26
25
|
*/
|
|
27
26
|
placement?: Placement;
|
|
28
|
-
/**
|
|
29
|
-
* The color of the popover.
|
|
30
|
-
*/
|
|
31
|
-
'data-color'?: Color;
|
|
32
27
|
/**
|
|
33
28
|
* Use this to make the popover controlled.
|
|
34
29
|
* @default undefined
|
|
@@ -49,7 +44,7 @@ export type PopoverProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivEleme
|
|
|
49
44
|
autoPlacement?: boolean;
|
|
50
45
|
asChild?: boolean;
|
|
51
46
|
}>;
|
|
52
|
-
export declare const Popover: React.ForwardRefExoticComponent<Omit<DefaultProps & HTMLAttributes<HTMLDivElement>, "id" | "
|
|
47
|
+
export declare const Popover: React.ForwardRefExoticComponent<Omit<DefaultProps & HTMLAttributes<HTMLDivElement>, "id" | "asChild" | "placement" | "open" | "onOpen" | "onClose" | "autoPlacement"> & {
|
|
53
48
|
/**
|
|
54
49
|
* id to connect the trigger with the popover - required when used without Popover.Context.
|
|
55
50
|
*/
|
|
@@ -59,10 +54,6 @@ export declare const Popover: React.ForwardRefExoticComponent<Omit<DefaultProps
|
|
|
59
54
|
* @default top
|
|
60
55
|
*/
|
|
61
56
|
placement?: Placement;
|
|
62
|
-
/**
|
|
63
|
-
* The color of the popover.
|
|
64
|
-
*/
|
|
65
|
-
'data-color'?: Color;
|
|
66
57
|
/**
|
|
67
58
|
* Use this to make the popover controlled.
|
|
68
59
|
* @default undefined
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAmB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAmB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAKlD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC,GAAG,CAAC;QAClB,UAAU,mBAAmB;YAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB;KACF;IACD,UAAU,KAAK,CAAC;QACd,UAAU,cAAc,CAAC,CAAC;YACxB,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB;KACF;CACF;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CACnC,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,EAC7C;IACE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF,eAAO,MAAM,OAAO;IAjChB;;OAEG;SACE,MAAM;IACX;;;OAGG;gBACS,SAAS;IAErB;;;OAGG;WACI,OAAO;IACd;;OAEG;aACM,MAAM,IAAI;IACnB;;OAEG;cACO,MAAM,IAAI;IACpB;;;OAGG;oBACa,OAAO;cAEb,OAAO;wCA8GpB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
import type { DefaultProps } from '../../types';
|
|
1
3
|
import { type ButtonProps } from '../Button/Button';
|
|
2
|
-
export type PopoverTriggerProps =
|
|
3
|
-
|
|
4
|
-
variant?: "primary" | "secondary" | "tertiary";
|
|
5
|
-
'data-color'?: import("../../colors").Color;
|
|
6
|
-
icon?: boolean;
|
|
7
|
-
loading?: boolean;
|
|
4
|
+
export type PopoverTriggerProps = ({
|
|
5
|
+
inline?: true;
|
|
8
6
|
asChild?: boolean;
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
} & HTMLAttributes<HTMLButtonElement> & DefaultProps) | ({
|
|
8
|
+
inline?: false;
|
|
9
|
+
} & ButtonProps);
|
|
10
|
+
export declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
//# sourceMappingURL=PopoverTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/PopoverTrigger.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PopoverTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/PopoverTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,OAAO,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG5D,MAAM,MAAM,mBAAmB,GAC3B,CAAC;IACC,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,iBAAiB,CAAC,GACnC,YAAY,CAAC,GACf,CAAC;IACC,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,GAAG,WAAW,CAAC,CAAC;AAErB,eAAO,MAAM,cAAc,+FAmBzB,CAAC"}
|
|
@@ -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 RadioProps = MergeRight<DefaultProps & Omit<InputProps, 'type' | 'role' | 'size'>, {
|
|
7
|
-
/** The color of the fill for selected radios.
|
|
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
|
/** Radio label */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.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,UAAU,GAAG,UAAU,CACjC,YAAY,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EACzD;IACE,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB;IAClB,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,KAAK,qFAqBhB,CAAC"}
|
|
@@ -8,9 +8,8 @@ export type SearchButtonProps = MergeRight<ButtonProps, {
|
|
|
8
8
|
*/
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
}>;
|
|
11
|
-
export declare const SearchButton: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "
|
|
11
|
+
export declare const SearchButton: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "asChild" | "variant" | "icon" | "loading"> & {
|
|
12
12
|
variant?: "primary" | "secondary" | "tertiary";
|
|
13
|
-
'data-color'?: import("../../colors").Color;
|
|
14
13
|
icon?: boolean;
|
|
15
14
|
loading?: boolean;
|
|
16
15
|
asChild?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchButton.d.ts","sourceRoot":"","sources":["../../../src/components/Search/SearchButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAErD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CACxC,WAAW,EACX;IACE,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CACF,CAAC;AAEF,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"SearchButton.d.ts","sourceRoot":"","sources":["../../../src/components/Search/SearchButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAErD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CACxC,WAAW,EACX;IACE,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CACF,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;2CAQxB,CAAC"}
|
|
@@ -17,9 +17,8 @@ declare const Search: React.ForwardRefExoticComponent<import("../../types").Defa
|
|
|
17
17
|
Clear: React.ForwardRefExoticComponent<Omit<import("..").ButtonProps, "children" | "variant"> & {
|
|
18
18
|
'aria-label'?: string;
|
|
19
19
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
-
Button: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "
|
|
20
|
+
Button: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "asChild" | "variant" | "icon" | "loading"> & {
|
|
21
21
|
variant?: "primary" | "secondary" | "tertiary";
|
|
22
|
-
'data-color'?: import("../../colors").Color;
|
|
23
22
|
icon?: boolean;
|
|
24
23
|
loading?: boolean;
|
|
25
24
|
asChild?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Search/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Search/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,MAAM;;;;;;;;;;;;CAIV,CAAC;AAMH,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import type { Color } from '../../colors';
|
|
3
2
|
export type SpinnerProps = {
|
|
4
3
|
/** Accessibile label */
|
|
5
4
|
'aria-label'?: string;
|
|
6
5
|
/**
|
|
7
6
|
* Spinner size
|
|
8
7
|
*/
|
|
9
|
-
'data-size'?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
|
-
/**
|
|
11
|
-
* The color of the spinner. If left unspecified, the color is inherited from the nearest ancestor with data-color.
|
|
12
|
-
*/
|
|
13
|
-
'data-color'?: Color;
|
|
8
|
+
'data-size'?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | (string & {});
|
|
14
9
|
} & ComponentPropsWithoutRef<'svg'> & ({
|
|
15
10
|
'aria-label': string;
|
|
16
11
|
'aria-hidden'?: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/Spinner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAc,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/Spinner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAc,MAAM,OAAO,CAAC;AAGlE,MAAM,MAAM,YAAY,GAAG;IACzB,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACxE,GAAG,wBAAwB,CAAC,KAAK,CAAC,GACjC,CACI;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,KAAK,CAAA;CAAE,GAC/C;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,IAAI,GAAG,MAAM,CAAA;CAAE,CAC1D,CAAC;AAEJ,2EAA2E;AAC3E,eAAO,MAAM,OAAO,oFA0ClB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { InputHTMLAttributes, 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 FieldProps } from '../Field';
|
|
@@ -17,15 +16,6 @@ export type SwitchProps = MergeRight<DefaultProps & Omit<InputHTMLAttributes<HTM
|
|
|
17
16
|
* @default start
|
|
18
17
|
*/
|
|
19
18
|
position?: FieldProps['position'];
|
|
20
|
-
/**
|
|
21
|
-
* Changes field size and paddings
|
|
22
|
-
*/
|
|
23
|
-
'data-size'?: 'sm' | 'md' | 'lg';
|
|
24
|
-
/**
|
|
25
|
-
* Specify which color palette to use. If left unspecified, the color is inherited
|
|
26
|
-
* from the nearest ancestor with data-color.
|
|
27
|
-
*/
|
|
28
|
-
'data-color'?: Color;
|
|
29
19
|
} & LabelRequired>;
|
|
30
20
|
/**
|
|
31
21
|
* Switch used to toggle options.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAGlD,MAAM,MAAM,WAAW,GAAG,UAAU,CAClC,YAAY,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,EAClE;IACE,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB;IAClB,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;;OAEG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;CACnC,GAAG,aAAa,CAClB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,MAAM,sFAyBjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeaderCell.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableHeaderCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,KAAK,gBAAgB,EAAc,MAAM,OAAO,CAAC;AAE1D,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;CACpC,GAAG,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AAE3C,eAAO,MAAM,eAAe;IAP1B;;;OAGG;WACI,cAAc,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"TableHeaderCell.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableHeaderCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,KAAK,gBAAgB,EAAc,MAAM,OAAO,CAAC;AAE1D,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;CACpC,GAAG,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AAE3C,eAAO,MAAM,eAAe;IAP1B;;;OAGG;WACI,cAAc,CAAC,WAAW,CAAC;uFAYlC,CAAC"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { HTMLAttributes } 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 TabsProps = MergeRight<DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'value'>, {
|
|
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
|
/** Controlled state for `Tabs` component. */
|
|
10
6
|
value?: string;
|
|
11
7
|
/** Default value. */
|
|
@@ -35,10 +31,7 @@ export declare const Context: React.Context<ContextProps>;
|
|
|
35
31
|
* </Tabs>
|
|
36
32
|
* ```
|
|
37
33
|
*/
|
|
38
|
-
export declare const Tabs: React.ForwardRefExoticComponent<Omit<DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, "value" | "onChange">, "
|
|
39
|
-
/** Specify which color palette to use. If left unspecified, the color is inherited from the nearest ancestor with data-color.
|
|
40
|
-
*/
|
|
41
|
-
'data-color'?: Color;
|
|
34
|
+
export declare const Tabs: React.ForwardRefExoticComponent<Omit<DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, "value" | "onChange">, "value" | "onChange" | "defaultValue"> & {
|
|
42
35
|
/** Controlled state for `Tabs` component. */
|
|
43
36
|
value?: string;
|
|
44
37
|
/** Default value. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,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,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,EACzE;IACE,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CACF,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,OAAO,6BAAkC,CAAC;AAEvD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,IAAI;IAjCb,6CAA6C;YACrC,MAAM;IACd,qBAAqB;mBACN,MAAM;IACrB,+CAA+C;eACpC,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;wCAwDpC,CAAC"}
|
|
@@ -17,8 +17,7 @@ import { TabsTab } from './TabsTab';
|
|
|
17
17
|
* </Tabs>
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
declare const Tabs: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "onChange">, "
|
|
21
|
-
'data-color'?: import("../../colors").Color;
|
|
20
|
+
declare const Tabs: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "onChange">, "value" | "onChange" | "defaultValue"> & {
|
|
22
21
|
value?: string;
|
|
23
22
|
defaultValue?: string;
|
|
24
23
|
onChange?: (value: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;CAIR,CAAC;AAMH,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,24 +1,10 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
|
-
import type { Color } from '../../colors';
|
|
3
2
|
import type { DefaultProps } from '../../types';
|
|
4
|
-
|
|
5
|
-
export type TagProps = MergeRight<DefaultProps & HTMLAttributes<HTMLSpanElement>, {
|
|
6
|
-
/**
|
|
7
|
-
* Color of the tag.
|
|
8
|
-
* @default neutral
|
|
9
|
-
*/
|
|
10
|
-
'data-color'?: Color;
|
|
11
|
-
}>;
|
|
3
|
+
export type TagProps = DefaultProps & HTMLAttributes<HTMLSpanElement>;
|
|
12
4
|
/**
|
|
13
5
|
* Use `Tag` to display a small piece of information.
|
|
14
6
|
* @example
|
|
15
|
-
* <Tag
|
|
7
|
+
* <Tag>Success</Tag>
|
|
16
8
|
*/
|
|
17
|
-
export declare const Tag: React.ForwardRefExoticComponent<
|
|
18
|
-
/**
|
|
19
|
-
* Color of the tag.
|
|
20
|
-
* @default neutral
|
|
21
|
-
*/
|
|
22
|
-
'data-color'?: Color;
|
|
23
|
-
} & React.RefAttributes<HTMLSpanElement>>;
|
|
9
|
+
export declare const Tag: React.ForwardRefExoticComponent<DefaultProps & HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
24
10
|
//# sourceMappingURL=Tag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,cAAc,CAAC,eAAe,CAAC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,GAAG,wHAKd,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { HTMLAttributes } 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 ToggleGroupContextProps = {
|
|
@@ -10,9 +9,6 @@ export type ToggleGroupContextProps = {
|
|
|
10
9
|
};
|
|
11
10
|
export declare const ToggleGroupContext: React.Context<ToggleGroupContextProps>;
|
|
12
11
|
export type ToggleGroupProps = MergeRight<DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, 'value' | 'onChange'>, {
|
|
13
|
-
/** Specify which color palette to use. If left unspecified, the color is inherited from the nearest ancestor with data-color.
|
|
14
|
-
*/
|
|
15
|
-
'data-color'?: Color;
|
|
16
12
|
/** Controlled state for `ToggleGroup` component. */
|
|
17
13
|
value?: string;
|
|
18
14
|
/** Default value. */
|
|
@@ -31,10 +27,7 @@ export type ToggleGroupProps = MergeRight<DefaultProps & Omit<HTMLAttributes<HTM
|
|
|
31
27
|
* <ToggleGroup.Item value='3'>Toggle 3</ToggleGroup.Item>
|
|
32
28
|
* </ToggleGroup>
|
|
33
29
|
*/
|
|
34
|
-
export declare const ToggleGroup: React.ForwardRefExoticComponent<Omit<DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, "value" | "onChange">, "
|
|
35
|
-
/** Specify which color palette to use. If left unspecified, the color is inherited from the nearest ancestor with data-color.
|
|
36
|
-
*/
|
|
37
|
-
'data-color'?: Color;
|
|
30
|
+
export declare const ToggleGroup: React.ForwardRefExoticComponent<Omit<DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, "value" | "onChange">, "name" | "value" | "onChange" | "defaultValue"> & {
|
|
38
31
|
/** Controlled state for `ToggleGroup` component. */
|
|
39
32
|
value?: string;
|
|
40
33
|
/** Default value. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleGroup.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleGroup/ToggleGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ToggleGroup.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleGroup/ToggleGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,kBAAkB,wCAA6C,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GAAG,UAAU,CACvC,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,EACzE;IACE,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CACF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW;IApBpB,oDAAoD;YAC5C,MAAM;IACd,qBAAqB;mBACN,MAAM;IACrB,uDAAuD;eAC5C,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAClC,wBAAwB;WACjB,MAAM;wCAwDhB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactElement, RefAttributes } from 'react';
|
|
2
|
-
import type { DefaultProps
|
|
2
|
+
import type { DefaultProps } from '../../types';
|
|
3
3
|
import type { MergeRight } from '../../utilities';
|
|
4
|
-
export type TooltipProps = MergeRight<Omit<DefaultProps, 'data-color'> &
|
|
4
|
+
export type TooltipProps = MergeRight<Omit<DefaultProps, 'data-color'> & HTMLAttributes<HTMLDivElement>, {
|
|
5
5
|
/**
|
|
6
6
|
* The element or string that triggers the tooltip.
|
|
7
7
|
*
|
|
@@ -16,21 +16,11 @@ export type TooltipProps = MergeRight<Omit<DefaultProps, 'data-color'> & PortalP
|
|
|
16
16
|
* @default 'top'
|
|
17
17
|
*/
|
|
18
18
|
placement?: 'top' | 'right' | 'bottom' | 'left';
|
|
19
|
-
/**
|
|
20
|
-
* Delay in milliseconds before opening.
|
|
21
|
-
* @default 150
|
|
22
|
-
*/
|
|
23
|
-
delay?: number;
|
|
24
19
|
/**
|
|
25
20
|
* Whether the tooltip is open or not.
|
|
26
21
|
* This overrides the internal state of the tooltip.
|
|
27
22
|
*/
|
|
28
23
|
open?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Whether the tooltip is open by default or not.
|
|
31
|
-
* @default false
|
|
32
|
-
*/
|
|
33
|
-
defaultOpen?: boolean;
|
|
34
24
|
}>;
|
|
35
25
|
/**
|
|
36
26
|
* Tooltip component that displays a small piece of information when hovering or focusing on an element.
|
|
@@ -44,7 +34,7 @@ export type TooltipProps = MergeRight<Omit<DefaultProps, 'data-color'> & PortalP
|
|
|
44
34
|
* Hover me
|
|
45
35
|
* </Tooltip>
|
|
46
36
|
*/
|
|
47
|
-
export declare const Tooltip: React.ForwardRefExoticComponent<Omit<Omit<DefaultProps, "data-color"> &
|
|
37
|
+
export declare const Tooltip: React.ForwardRefExoticComponent<Omit<Omit<DefaultProps, "data-color"> & HTMLAttributes<HTMLDivElement>, "content" | "children" | "placement" | "open"> & {
|
|
48
38
|
/**
|
|
49
39
|
* The element or string that triggers the tooltip.
|
|
50
40
|
*
|
|
@@ -59,20 +49,10 @@ export declare const Tooltip: React.ForwardRefExoticComponent<Omit<Omit<DefaultP
|
|
|
59
49
|
* @default 'top'
|
|
60
50
|
*/
|
|
61
51
|
placement?: "top" | "right" | "bottom" | "left";
|
|
62
|
-
/**
|
|
63
|
-
* Delay in milliseconds before opening.
|
|
64
|
-
* @default 150
|
|
65
|
-
*/
|
|
66
|
-
delay?: number;
|
|
67
52
|
/**
|
|
68
53
|
* Whether the tooltip is open or not.
|
|
69
54
|
* This overrides the internal state of the tooltip.
|
|
70
55
|
*/
|
|
71
56
|
open?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Whether the tooltip is open by default or not.
|
|
74
|
-
* @default false
|
|
75
|
-
*/
|
|
76
|
-
defaultOpen?: boolean;
|
|
77
57
|
} & RefAttributes<HTMLDivElement>>;
|
|
78
58
|
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAWzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG,UAAU,CACnC,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,cAAc,CAAC,cAAc,CAAC,EACjE;IACE;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,GAAG,MAAM,CAAC;IAC/D,6BAA6B;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAChD;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CACF,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO;IAlChB;;;;;OAKG;cACO,CAAC,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,GAAG,MAAM;IAC9D,6BAA6B;aACpB,MAAM;IACf;;;OAGG;gBACS,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;IAC/C;;;OAGG;WACI,OAAO;kCAgIjB,CAAC"}
|