@digdir/designsystemet-react 0.61.0 → 1.0.0-rc.0
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/Accordion/Accordion.js +6 -2
- package/dist/cjs/components/Accordion/AccordionContent/AccordionContent.js +2 -2
- package/dist/cjs/components/Accordion/AccordionHeader/AccordionHeader.js +2 -2
- package/dist/cjs/components/Accordion/AccordionItem/AccordionItem.js +2 -2
- package/dist/cjs/components/Alert/Alert.js +5 -3
- package/dist/cjs/components/Box/Box.js +4 -1
- package/dist/cjs/components/Button/Button.js +3 -1
- package/dist/cjs/components/Card/Card.js +3 -1
- package/dist/cjs/components/Chip/Group/Group.js +5 -1
- package/dist/cjs/components/Chip/Removable/Removable.js +3 -1
- package/dist/cjs/components/Chip/Toggle/Toggle.js +3 -1
- package/dist/cjs/components/Divider/Divider.js +2 -2
- package/dist/cjs/components/DropdownMenu/DropdownMenu.js +4 -2
- package/dist/cjs/components/DropdownMenu/DropdownMenuContent.js +3 -3
- package/dist/cjs/components/DropdownMenu/DropdownMenuItem.js +2 -2
- package/dist/cjs/components/DropdownMenu/DropdownMenuTrigger.js +1 -1
- package/dist/cjs/components/HelpText/HelpText.js +5 -3
- package/dist/cjs/components/Link/Link.js +1 -1
- package/dist/cjs/components/List/ListHeading.js +3 -3
- package/dist/cjs/components/List/ListItem.js +2 -2
- package/dist/cjs/components/List/ListRoot.js +4 -2
- package/dist/cjs/components/List/Lists.js +3 -3
- package/dist/cjs/components/Modal/ModalDialog.js +1 -1
- package/dist/cjs/components/Modal/ModalHeader.js +1 -1
- package/dist/cjs/components/Pagination/Pagination.js +6 -4
- package/dist/cjs/components/Pagination/PaginationButton.js +1 -1
- package/dist/cjs/components/Pagination/PaginationRoot.js +4 -2
- package/dist/cjs/components/Popover/Popover.js +4 -2
- package/dist/cjs/components/Popover/PopoverContent.js +6 -6
- package/dist/cjs/components/Popover/PopoverTrigger.js +1 -1
- package/dist/cjs/components/Skeleton/Circle/Circle.js +2 -2
- package/dist/cjs/components/Skeleton/Rectangle/Rectangle.js +2 -2
- package/dist/cjs/components/Skeleton/Text/Text.js +2 -2
- package/dist/cjs/components/SkipLink/SkipLink.js +2 -2
- package/dist/cjs/components/Spinner/Spinner.js +9 -7
- package/dist/cjs/components/Table/Table.js +3 -1
- package/dist/cjs/components/Tabs/Tab/Tab.js +3 -3
- package/dist/cjs/components/Tabs/Tab/useTab.js +1 -3
- package/dist/cjs/components/Tabs/TabList/TabList.js +2 -2
- package/dist/cjs/components/Tabs/Tabs.js +5 -2
- package/dist/cjs/components/Tag/Tag.js +5 -1
- package/dist/cjs/components/ToggleGroup/ToggleGroup.js +3 -1
- package/dist/cjs/components/ToggleGroup/ToggleGroupItem/ToggleGroupItem.js +3 -3
- package/dist/cjs/components/Tooltip/Tooltip.js +9 -9
- package/dist/cjs/components/Typography/ErrorMessage/ErrorMessage.js +5 -3
- package/dist/cjs/components/Typography/Heading/Heading.js +5 -3
- package/dist/cjs/components/Typography/Ingress/Ingress.js +5 -3
- package/dist/cjs/components/Typography/Label/Label.js +5 -3
- package/dist/cjs/components/Typography/Paragraph/Paragraph.js +5 -3
- package/dist/cjs/components/form/Checkbox/Checkbox.js +2 -2
- package/dist/cjs/components/form/Checkbox/Group/Group.js +1 -1
- package/dist/cjs/components/form/Combobox/Combobox.js +6 -4
- package/dist/cjs/components/form/Combobox/Custom.js +1 -1
- package/dist/cjs/components/form/Combobox/Option/useComboboxOption.js +1 -1
- package/dist/cjs/components/form/Combobox/internal/ComboboxInput.js +2 -2
- package/dist/cjs/components/form/Combobox/useFloatingCombobox.js +3 -3
- package/dist/cjs/components/form/Fieldset/Fieldset.js +2 -2
- package/dist/cjs/components/form/NativeSelect/NativeSelect.js +3 -3
- package/dist/cjs/components/form/NativeSelect/useNativeSelect.js +3 -1
- package/dist/cjs/components/form/Radio/Group/Group.js +3 -3
- package/dist/cjs/components/form/Radio/Radio.js +3 -3
- package/dist/cjs/components/form/Search/Search.js +5 -5
- package/dist/cjs/components/form/Search/useSearch.js +3 -7
- package/dist/cjs/components/form/Switch/Switch.js +1 -1
- package/dist/cjs/components/form/Textarea/Textarea.js +4 -4
- package/dist/cjs/components/form/Textarea/useTextarea.js +3 -1
- package/dist/cjs/components/form/Textfield/Textfield.js +6 -6
- package/dist/cjs/components/form/Textfield/useTextfield.js +3 -1
- package/dist/cjs/components/form/useFormField.js +5 -7
- package/dist/cjs/{packages/react/node_modules → node_modules}/@floating-ui/dom/dist/floating-ui.dom.js +3 -3
- package/dist/cjs/{packages/react/node_modules → node_modules}/@floating-ui/react/dist/floating-ui.react.js +2 -2
- package/dist/cjs/{packages/react/node_modules → node_modules}/@floating-ui/react/dist/floating-ui.react.utils.js +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
- package/dist/cjs/utilities/AnimateHeight/AnimateHeight.js +2 -2
- package/dist/cjs/utilities/RovingTabIndex/RovingTabindexItem.js +1 -1
- package/dist/cjs/utilities/RovingTabIndex/RovingTabindexRoot.js +1 -1
- package/dist/cjs/utilities/getColor.js +27 -0
- package/dist/cjs/utilities/getSize.js +2 -0
- package/dist/esm/components/Accordion/Accordion.js +6 -2
- package/dist/esm/components/Accordion/AccordionContent/AccordionContent.js +2 -2
- package/dist/esm/components/Accordion/AccordionHeader/AccordionHeader.js +2 -2
- package/dist/esm/components/Accordion/AccordionItem/AccordionItem.js +1 -1
- package/dist/esm/components/Alert/Alert.js +4 -2
- package/dist/esm/components/Box/Box.js +4 -1
- package/dist/esm/components/Button/Button.js +3 -1
- package/dist/esm/components/Card/Card.js +3 -1
- package/dist/esm/components/Chip/Group/Group.js +5 -1
- package/dist/esm/components/Chip/Removable/Removable.js +3 -1
- package/dist/esm/components/Chip/Toggle/Toggle.js +3 -1
- package/dist/esm/components/Divider/Divider.js +1 -1
- package/dist/esm/components/DropdownMenu/DropdownMenu.js +4 -2
- package/dist/esm/components/DropdownMenu/DropdownMenuContent.js +3 -3
- package/dist/esm/components/DropdownMenu/DropdownMenuItem.js +2 -2
- package/dist/esm/components/DropdownMenu/DropdownMenuTrigger.js +1 -1
- package/dist/esm/components/HelpText/HelpText.js +4 -2
- package/dist/esm/components/Link/Link.js +1 -1
- package/dist/esm/components/List/ListHeading.js +3 -3
- package/dist/esm/components/List/ListItem.js +1 -1
- package/dist/esm/components/List/ListRoot.js +4 -2
- package/dist/esm/components/List/Lists.js +1 -1
- package/dist/esm/components/Modal/ModalDialog.js +1 -1
- package/dist/esm/components/Modal/ModalHeader.js +1 -1
- package/dist/esm/components/Pagination/Pagination.js +6 -4
- package/dist/esm/components/Pagination/PaginationButton.js +1 -1
- package/dist/esm/components/Pagination/PaginationRoot.js +4 -2
- package/dist/esm/components/Popover/Popover.js +4 -2
- package/dist/esm/components/Popover/PopoverContent.js +4 -4
- package/dist/esm/components/Popover/PopoverTrigger.js +1 -1
- package/dist/esm/components/Skeleton/Circle/Circle.js +1 -1
- package/dist/esm/components/Skeleton/Rectangle/Rectangle.js +1 -1
- package/dist/esm/components/Skeleton/Text/Text.js +1 -1
- package/dist/esm/components/SkipLink/SkipLink.js +1 -1
- package/dist/esm/components/Spinner/Spinner.js +9 -7
- package/dist/esm/components/Table/Table.js +3 -1
- package/dist/esm/components/Tabs/Tab/Tab.js +3 -3
- package/dist/esm/components/Tabs/Tab/useTab.js +1 -3
- package/dist/esm/components/Tabs/TabList/TabList.js +1 -1
- package/dist/esm/components/Tabs/Tabs.js +5 -2
- package/dist/esm/components/Tag/Tag.js +5 -1
- package/dist/esm/components/ToggleGroup/ToggleGroup.js +3 -1
- package/dist/esm/components/ToggleGroup/ToggleGroupItem/ToggleGroupItem.js +3 -3
- package/dist/esm/components/Tooltip/Tooltip.js +9 -9
- package/dist/esm/components/Typography/ErrorMessage/ErrorMessage.js +4 -2
- package/dist/esm/components/Typography/Heading/Heading.js +4 -2
- package/dist/esm/components/Typography/Ingress/Ingress.js +4 -2
- package/dist/esm/components/Typography/Label/Label.js +4 -2
- package/dist/esm/components/Typography/Paragraph/Paragraph.js +4 -2
- package/dist/esm/components/form/Checkbox/Checkbox.js +2 -2
- package/dist/esm/components/form/Checkbox/Group/Group.js +1 -1
- package/dist/esm/components/form/Combobox/Combobox.js +6 -4
- package/dist/esm/components/form/Combobox/Custom.js +1 -1
- package/dist/esm/components/form/Combobox/Option/useComboboxOption.js +1 -1
- package/dist/esm/components/form/Combobox/internal/ComboboxInput.js +2 -2
- package/dist/esm/components/form/Combobox/useFloatingCombobox.js +3 -3
- package/dist/esm/components/form/Fieldset/Fieldset.js +1 -1
- package/dist/esm/components/form/NativeSelect/NativeSelect.js +2 -2
- package/dist/esm/components/form/NativeSelect/useNativeSelect.js +3 -1
- package/dist/esm/components/form/Radio/Group/Group.js +2 -2
- package/dist/esm/components/form/Radio/Radio.js +2 -2
- package/dist/esm/components/form/Search/Search.js +3 -3
- package/dist/esm/components/form/Search/useSearch.js +3 -7
- package/dist/esm/components/form/Switch/Switch.js +1 -1
- package/dist/esm/components/form/Textarea/Textarea.js +2 -2
- package/dist/esm/components/form/Textarea/useTextarea.js +3 -1
- package/dist/esm/components/form/Textfield/Textfield.js +3 -3
- package/dist/esm/components/form/Textfield/useTextfield.js +3 -1
- package/dist/esm/components/form/useFormField.js +5 -7
- package/dist/esm/{packages/react/node_modules → node_modules}/@floating-ui/dom/dist/floating-ui.dom.js +4 -4
- package/dist/esm/{packages/react/node_modules → node_modules}/@floating-ui/react/dist/floating-ui.react.js +2 -2
- package/dist/esm/{packages/react/node_modules → node_modules}/@floating-ui/react/dist/floating-ui.react.utils.js +1 -1
- package/dist/esm/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
- package/dist/esm/utilities/AnimateHeight/AnimateHeight.js +1 -1
- package/dist/esm/utilities/RovingTabIndex/RovingTabindexItem.js +1 -1
- package/dist/esm/utilities/RovingTabIndex/RovingTabindexRoot.js +1 -1
- package/dist/esm/utilities/getColor.js +25 -0
- package/dist/esm/utilities/getSize.js +2 -0
- package/dist/types/components/Accordion/Accordion.d.ts +4 -2
- package/dist/types/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/types/components/Alert/Alert.d.ts +13 -6
- package/dist/types/components/Alert/Alert.d.ts.map +1 -1
- package/dist/types/components/Box/Box.d.ts +7 -4
- package/dist/types/components/Box/Box.d.ts.map +1 -1
- package/dist/types/components/Button/Button.d.ts +13 -6
- package/dist/types/components/Button/Button.d.ts.map +1 -1
- package/dist/types/components/Card/Card.d.ts +4 -2
- package/dist/types/components/Card/Card.d.ts.map +1 -1
- package/dist/types/components/Chip/Group/Group.d.ts +9 -3
- package/dist/types/components/Chip/Group/Group.d.ts.map +1 -1
- package/dist/types/components/Chip/Removable/Removable.d.ts +9 -6
- package/dist/types/components/Chip/Removable/Removable.d.ts.map +1 -1
- package/dist/types/components/Chip/Toggle/Toggle.d.ts +9 -6
- package/dist/types/components/Chip/Toggle/Toggle.d.ts.map +1 -1
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +7 -4
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/types/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
- package/dist/types/components/HelpText/HelpText.d.ts +4 -3
- package/dist/types/components/HelpText/HelpText.d.ts.map +1 -1
- package/dist/types/components/Link/Link.d.ts +8 -2
- package/dist/types/components/Link/Link.d.ts.map +1 -1
- package/dist/types/components/List/ListHeading.d.ts +1 -1
- package/dist/types/components/List/ListRoot.d.ts +15 -9
- package/dist/types/components/List/ListRoot.d.ts.map +1 -1
- package/dist/types/components/Modal/ModalTrigger.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +12 -4
- package/dist/types/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/Pagination/PaginationButton.d.ts.map +1 -1
- package/dist/types/components/Pagination/PaginationNextPrev.d.ts +2 -2
- package/dist/types/components/Pagination/PaginationNextPrev.d.ts.map +1 -1
- package/dist/types/components/Pagination/PaginationRoot.d.ts +7 -4
- package/dist/types/components/Pagination/PaginationRoot.d.ts.map +1 -1
- package/dist/types/components/Popover/Popover.d.ts +8 -4
- package/dist/types/components/Popover/Popover.d.ts.map +1 -1
- package/dist/types/components/Popover/PopoverTrigger.d.ts +1 -1
- package/dist/types/components/Spinner/Spinner.d.ts +10 -3
- package/dist/types/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/types/components/Table/Table.d.ts +8 -4
- package/dist/types/components/Table/Table.d.ts.map +1 -1
- package/dist/types/components/Tabs/Tab/Tab.d.ts.map +1 -1
- package/dist/types/components/Tabs/Tab/useTab.d.ts +1 -3
- package/dist/types/components/Tabs/Tab/useTab.d.ts.map +1 -1
- package/dist/types/components/Tabs/Tabs.d.ts +14 -4
- package/dist/types/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/types/components/Tag/Tag.d.ts +12 -7
- package/dist/types/components/Tag/Tag.d.ts.map +1 -1
- package/dist/types/components/ToggleGroup/ToggleGroup.d.ts +14 -5
- package/dist/types/components/ToggleGroup/ToggleGroup.d.ts.map +1 -1
- package/dist/types/components/ToggleGroup/ToggleGroupItem/ToggleGroupItem.d.ts.map +1 -1
- package/dist/types/components/ToggleGroup/ToggleGroupItem/useToggleGroupitem.d.ts +2 -1
- package/dist/types/components/ToggleGroup/ToggleGroupItem/useToggleGroupitem.d.ts.map +1 -1
- package/dist/types/components/Tooltip/Tooltip.d.ts +14 -3
- package/dist/types/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/components/Typography/ErrorMessage/ErrorMessage.d.ts +14 -4
- package/dist/types/components/Typography/ErrorMessage/ErrorMessage.d.ts.map +1 -1
- package/dist/types/components/Typography/Heading/Heading.d.ts +10 -4
- package/dist/types/components/Typography/Heading/Heading.d.ts.map +1 -1
- package/dist/types/components/Typography/Ingress/Ingress.d.ts +8 -4
- package/dist/types/components/Typography/Ingress/Ingress.d.ts.map +1 -1
- package/dist/types/components/Typography/Label/Label.d.ts +15 -4
- package/dist/types/components/Typography/Label/Label.d.ts.map +1 -1
- package/dist/types/components/Typography/Paragraph/Paragraph.d.ts +18 -4
- package/dist/types/components/Typography/Paragraph/Paragraph.d.ts.map +1 -1
- package/dist/types/components/form/CharacterCounter.d.ts +2 -1
- package/dist/types/components/form/CharacterCounter.d.ts.map +1 -1
- package/dist/types/components/form/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/types/components/form/Checkbox/Group/Group.d.ts.map +1 -1
- package/dist/types/components/form/Combobox/Combobox.d.ts +2 -2
- package/dist/types/components/form/Combobox/Combobox.d.ts.map +1 -1
- package/dist/types/components/form/Combobox/Option/useComboboxOption.d.ts +1 -1
- package/dist/types/components/form/Fieldset/useFieldset.d.ts +1 -1
- package/dist/types/components/form/NativeSelect/NativeSelect.d.ts +10 -6
- package/dist/types/components/form/NativeSelect/NativeSelect.d.ts.map +1 -1
- package/dist/types/components/form/NativeSelect/useNativeSelect.d.ts.map +1 -1
- package/dist/types/components/form/Search/Search.d.ts +12 -6
- package/dist/types/components/form/Search/Search.d.ts.map +1 -1
- package/dist/types/components/form/Search/useSearch.d.ts +1 -3
- package/dist/types/components/form/Search/useSearch.d.ts.map +1 -1
- package/dist/types/components/form/Textarea/Textarea.d.ts +10 -10
- package/dist/types/components/form/Textarea/Textarea.d.ts.map +1 -1
- package/dist/types/components/form/Textarea/useTextarea.d.ts.map +1 -1
- package/dist/types/components/form/Textfield/Textfield.d.ts +14 -4
- package/dist/types/components/form/Textfield/Textfield.d.ts.map +1 -1
- package/dist/types/components/form/Textfield/useTextfield.d.ts.map +1 -1
- package/dist/types/components/form/useFormField.d.ts +8 -2
- package/dist/types/components/form/useFormField.d.ts.map +1 -1
- package/dist/types/utilities/getColor.d.ts +2 -0
- package/dist/types/utilities/getColor.d.ts.map +1 -0
- package/dist/types/utilities/getSize.d.ts +1 -1
- package/dist/types/utilities/getSize.d.ts.map +1 -1
- package/dist/types/utilities/index.d.ts +2 -0
- package/dist/types/utilities/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/cjs/node_modules/clsx/dist/clsx.js +0 -9
- package/dist/esm/node_modules/clsx/dist/clsx.js +0 -4
- /package/dist/cjs/node_modules/{@radix-ui/react-slot/node_modules/@babel → @babel}/runtime/helpers/esm/extends.js +0 -0
- /package/dist/cjs/{packages/react/node_modules → node_modules}/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -0
- /package/dist/cjs/{packages/react/node_modules → node_modules}/tabbable/dist/index.esm.js +0 -0
- /package/dist/esm/node_modules/{@radix-ui/react-slot/node_modules/@babel → @babel}/runtime/helpers/esm/extends.js +0 -0
- /package/dist/esm/{packages/react/node_modules → node_modules}/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -0
- /package/dist/esm/{packages/react/node_modules → node_modules}/tabbable/dist/index.esm.js +0 -0
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
+
type OldSpinnerSizes = 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
2
3
|
export type SpinnerProps = {
|
|
3
4
|
/** Spinner title */
|
|
4
5
|
title: string;
|
|
5
|
-
/**
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Spinner size
|
|
8
|
+
*
|
|
9
|
+
* @default md
|
|
10
|
+
* @note `xxsmall`, `xsmall`, `small`, `medium`, `large`, `xlarge` is deprecated
|
|
11
|
+
*/
|
|
12
|
+
size?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | OldSpinnerSizes;
|
|
7
13
|
/** Spinner appearance */
|
|
8
14
|
variant?: 'default' | 'interaction' | 'inverted';
|
|
9
15
|
} & React.ComponentPropsWithoutRef<'svg'>;
|
|
10
16
|
/** Spinner component used for indicating busy or indeterminate loading */
|
|
11
17
|
export declare const Spinner: {
|
|
12
|
-
({ title,
|
|
18
|
+
({ title, variant, className, style, ...rest }: SpinnerProps): JSX.Element;
|
|
13
19
|
displayName: string;
|
|
14
20
|
};
|
|
21
|
+
export {};
|
|
15
22
|
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../src/components/Spinner/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../src/components/Spinner/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAMpC,KAAK,eAAe,GAChB,SAAS,GACT,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,CAAC;AAab,MAAM,MAAM,YAAY,GAAG;IACzB,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,eAAe,CAAC;IAClE,0BAA0B;IAC1B,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,UAAU,CAAC;CAClD,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAE1C,2EAA2E;AAC3E,eAAO,MAAM,OAAO;oDAMjB,YAAY,GAAG,WAAW;;CAgD5B,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
type OldTableSizes = 'small' | 'medium' | 'large';
|
|
2
3
|
export type TableProps = {
|
|
3
4
|
/**
|
|
4
5
|
* The size of the table
|
|
5
|
-
* @default
|
|
6
|
+
* @default md
|
|
7
|
+
* @note `small`, `medium`, `large` is deprecated
|
|
6
8
|
*/
|
|
7
|
-
size?: '
|
|
9
|
+
size?: 'sm' | 'md' | 'lg' | OldTableSizes;
|
|
8
10
|
/**
|
|
9
11
|
* If true, the table will have zebra striping
|
|
10
12
|
* @default false
|
|
@@ -24,9 +26,10 @@ export type TableProps = {
|
|
|
24
26
|
export declare const Table: React.ForwardRefExoticComponent<{
|
|
25
27
|
/**
|
|
26
28
|
* The size of the table
|
|
27
|
-
* @default
|
|
29
|
+
* @default md
|
|
30
|
+
* @note `small`, `medium`, `large` is deprecated
|
|
28
31
|
*/
|
|
29
|
-
size?: "
|
|
32
|
+
size?: "sm" | "md" | "lg" | OldTableSizes | undefined;
|
|
30
33
|
/**
|
|
31
34
|
* If true, the table will have zebra striping
|
|
32
35
|
* @default false
|
|
@@ -43,4 +46,5 @@ export declare const Table: React.ForwardRefExoticComponent<{
|
|
|
43
46
|
*/
|
|
44
47
|
border?: boolean | undefined;
|
|
45
48
|
} & Omit<React.TableHTMLAttributes<HTMLTableElement>, "border"> & React.RefAttributes<HTMLTableElement>>;
|
|
49
|
+
export {};
|
|
46
50
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,KAAK,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG;IACvB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,aAAa,CAAC;IAC1C;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,QAAQ,CAAC,CAAC;AAEhE,eAAO,MAAM,KAAK;IAvBhB;;;;OAIG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;wGAwCJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/Tab/Tab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAQ5C,MAAM,MAAM,QAAQ,GAAG;IACrB,qFAAqF;IACrF,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,CAAC;AAErD,eAAO,MAAM,GAAG;IAJd,qFAAqF;WAC9E,MAAM;
|
|
1
|
+
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/Tab/Tab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAQ5C,MAAM,MAAM,QAAQ,GAAG;IACrB,qFAAqF;IACrF,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,CAAC;AAErD,eAAO,MAAM,GAAG;IAJd,qFAAqF;WAC9E,MAAM;wGAqBb,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
2
|
import type { TabProps } from './Tab';
|
|
3
|
-
type UseTab = (props: TabProps) =>
|
|
4
|
-
active: boolean;
|
|
5
|
-
} & Pick<HTMLAttributes<HTMLButtonElement>, 'id' | 'aria-selected' | 'role' | 'onClick'>;
|
|
3
|
+
type UseTab = (props: TabProps) => Pick<HTMLAttributes<HTMLButtonElement>, 'id' | 'aria-selected' | 'role' | 'onClick'>;
|
|
6
4
|
/** Handles props for `Tab` in context with `Tabs` */
|
|
7
5
|
export declare const useTabItem: UseTab;
|
|
8
6
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTab.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/Tab/useTab.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtC,KAAK,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"useTab.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/Tab/useTab.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtC,KAAK,MAAM,GAAG,CACZ,KAAK,EAAE,QAAQ,KACZ,IAAI,CACP,cAAc,CAAC,iBAAiB,CAAC,EACjC,IAAI,GAAG,eAAe,GAAG,MAAM,GAAG,SAAS,CAC5C,CAAC;AAEF,qDAAqD;AACrD,eAAO,MAAM,UAAU,EAAE,MAcxB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
|
+
type OldTabSize = 'small' | 'medium' | 'large';
|
|
2
3
|
export type TabsProps = {
|
|
3
4
|
/** Controlled state for `Tabs` component. */
|
|
4
5
|
value?: string;
|
|
@@ -6,8 +7,12 @@ export type TabsProps = {
|
|
|
6
7
|
defaultValue?: string;
|
|
7
8
|
/** Callback with selected `TabItem` `value` */
|
|
8
9
|
onChange?: (value: string) => void;
|
|
9
|
-
/**
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Changes items size and paddings
|
|
12
|
+
* @default md
|
|
13
|
+
* @note `small`, `medium`, `large` is deprecated
|
|
14
|
+
*/
|
|
15
|
+
size?: 'sm' | 'md' | 'lg' | OldTabSize;
|
|
11
16
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'value'>;
|
|
12
17
|
/** `Tabs` component.
|
|
13
18
|
* @example
|
|
@@ -37,7 +42,12 @@ export declare const Tabs: import("react").ForwardRefExoticComponent<{
|
|
|
37
42
|
defaultValue?: string | undefined;
|
|
38
43
|
/** Callback with selected `TabItem` `value` */
|
|
39
44
|
onChange?: ((value: string) => void) | undefined;
|
|
40
|
-
/**
|
|
41
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Changes items size and paddings
|
|
47
|
+
* @default md
|
|
48
|
+
* @note `small`, `medium`, `large` is deprecated
|
|
49
|
+
*/
|
|
50
|
+
size?: "sm" | "md" | "lg" | OldTabSize | undefined;
|
|
42
51
|
} & Omit<HTMLAttributes<HTMLDivElement>, "value" | "onChange"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
52
|
+
export {};
|
|
43
53
|
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAM5C,KAAK,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE/C,MAAM,MAAM,SAAS,GAAG;IACtB,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;IACnC;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,UAAU,CAAC;CACxC,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC;AAE/D;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,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,WAAW,2CAAsC,CAAC;AAE/D,eAAO,MAAM,IAAI;IArCf,6CAA6C;;IAE7C,qBAAqB;;IAErB,+CAA+C;wBAC5B,MAAM,KAAK,IAAI;IAClC;;;;OAIG;;+GA8DJ,CAAC"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
2
|
import type { ParagraphProps } from '../Typography';
|
|
3
|
-
type Size = Exclude<ParagraphProps['size'], 'xsmall'>;
|
|
3
|
+
type Size = Exclude<ParagraphProps['size'], 'xsmall' | 'xs'>;
|
|
4
|
+
type OldColors = 'first' | 'second' | 'third';
|
|
4
5
|
export type TagProps = {
|
|
5
6
|
/** Color of the tag
|
|
6
7
|
* @default neutral
|
|
7
8
|
*/
|
|
8
|
-
color?: 'neutral' | 'success' | 'warning' | 'danger' | 'info' | '
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
9
|
+
color?: 'neutral' | 'success' | 'warning' | 'danger' | 'info' | 'brand1' | 'brand2' | 'brand3' | OldColors;
|
|
10
|
+
/**
|
|
11
|
+
* Size of the tag
|
|
12
|
+
* @default md
|
|
13
|
+
* @note `small`, `medium`, `large` is deprecated
|
|
11
14
|
*/
|
|
12
15
|
size?: Size;
|
|
13
16
|
} & HTMLAttributes<HTMLSpanElement>;
|
|
@@ -15,9 +18,11 @@ export declare const Tag: import("react").ForwardRefExoticComponent<{
|
|
|
15
18
|
/** Color of the tag
|
|
16
19
|
* @default neutral
|
|
17
20
|
*/
|
|
18
|
-
color?: "
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
+
color?: "neutral" | "brand1" | "brand2" | "brand3" | "success" | "danger" | "info" | "warning" | OldColors | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Size of the tag
|
|
24
|
+
* @default md
|
|
25
|
+
* @note `small`, `medium`, `large` is deprecated
|
|
21
26
|
*/
|
|
22
27
|
size?: Size;
|
|
23
28
|
} & HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAIpD,KAAK,IAAI,GAAG,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC,CAAC;AAC7D,KAAK,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE9C,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,KAAK,CAAC,EACF,SAAS,GACT,SAAS,GACT,SAAS,GACT,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,GAAG,cAAc,CAAC,eAAe,CAAC,CAAC;AAEpC,eAAO,MAAM,GAAG;IArBd;;OAEG;;IAWH;;;;OAIG;WACI,IAAI;qFA4BZ,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import type { ButtonProps } from '../Button';
|
|
2
3
|
export type ToggleGroupContextProps = {
|
|
3
4
|
value?: string;
|
|
4
5
|
defaultValue?: string;
|
|
5
6
|
onChange?: (value: string) => void;
|
|
6
7
|
name?: string;
|
|
7
|
-
size?: '
|
|
8
|
+
size?: ButtonProps['size'];
|
|
8
9
|
};
|
|
9
10
|
export declare const ToggleGroupContext: import("react").Context<ToggleGroupContextProps>;
|
|
10
11
|
export type ToggleGroupProps = {
|
|
@@ -16,8 +17,12 @@ export type ToggleGroupProps = {
|
|
|
16
17
|
onChange?: (value: string) => void;
|
|
17
18
|
/** Form element name */
|
|
18
19
|
name?: string;
|
|
19
|
-
/**
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Changes items size and paddings
|
|
22
|
+
* @default md
|
|
23
|
+
* @note `small`, `medium`, `large` is deprecated
|
|
24
|
+
*/
|
|
25
|
+
size?: ToggleGroupContextProps['size'];
|
|
21
26
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'value' | 'onChange'>;
|
|
22
27
|
/** `ToggleGroup` component.
|
|
23
28
|
* @example
|
|
@@ -38,7 +43,11 @@ export declare const ToggleGroup: import("react").ForwardRefExoticComponent<{
|
|
|
38
43
|
onChange?: ((value: string) => void) | undefined;
|
|
39
44
|
/** Form element name */
|
|
40
45
|
name?: string | undefined;
|
|
41
|
-
/**
|
|
42
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Changes items size and paddings
|
|
48
|
+
* @default md
|
|
49
|
+
* @note `small`, `medium`, `large` is deprecated
|
|
50
|
+
*/
|
|
51
|
+
size?: ToggleGroupContextProps['size'];
|
|
43
52
|
} & Omit<HTMLAttributes<HTMLDivElement>, "value" | "onChange"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
53
|
//# sourceMappingURL=ToggleGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/ToggleGroup/ToggleGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAM5C,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;IACd,IAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"ToggleGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/ToggleGroup/ToggleGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAM5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C,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;IACd,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,kBAAkB,kDAA6C,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,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;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,uBAAuB,CAAC,MAAM,CAAC,CAAC;CACxC,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;AAE/D;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW;IA1BtB,oDAAoD;;IAEpD,qBAAqB;;IAErB,uDAAuD;wBACpC,MAAM,KAAK,IAAI;IAClC,wBAAwB;;IAExB;;;;OAIG;WACI,uBAAuB,CAAC,MAAM,CAAC;+GAwEvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleGroupItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/ToggleGroup/ToggleGroupItem/ToggleGroupItem.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAMhD,MAAM,MAAM,oBAAoB,GAAG;IACjC,yGAAyG;IACzG,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAE/B,eAAO,MAAM,eAAe;IAJ1B,yGAAyG;;
|
|
1
|
+
{"version":3,"file":"ToggleGroupItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/ToggleGroup/ToggleGroupItem/ToggleGroupItem.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAMhD,MAAM,MAAM,oBAAoB,GAAG;IACjC,yGAAyG;IACzG,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAE/B,eAAO,MAAM,eAAe;IAJ1B,yGAAyG;;kFA4BzG,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { ToggleGroupContextProps } from '../ToggleGroup';
|
|
1
2
|
import type { ButtonProps } from '../../Button';
|
|
2
3
|
import type { ToggleGroupItemProps } from './ToggleGroupItem';
|
|
3
4
|
type UseToggleGroupItem = (props: ToggleGroupItemProps) => {
|
|
4
5
|
active: boolean;
|
|
5
|
-
size?: '
|
|
6
|
+
size?: ToggleGroupContextProps['size'];
|
|
6
7
|
buttonProps?: Pick<ButtonProps, 'id' | 'onClick' | 'role' | 'aria-checked' | 'aria-current' | 'name'>;
|
|
7
8
|
};
|
|
8
9
|
/** Handles props for `ToggleGroup.Item` in context with `ToggleGroup` and `RovingTabIndex` */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToggleGroupitem.d.ts","sourceRoot":"","sources":["../../../../../src/components/ToggleGroup/ToggleGroupItem/useToggleGroupitem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useToggleGroupitem.d.ts","sourceRoot":"","sources":["../../../../../src/components/ToggleGroup/ToggleGroupItem/useToggleGroupitem.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAE9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,KAAK,kBAAkB,GAAG,CAAC,KAAK,EAAE,oBAAoB,KAAK;IACzD,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,uBAAuB,CAAC,MAAM,CAAC,CAAC;IACvC,WAAW,CAAC,EAAE,IAAI,CAChB,WAAW,EACX,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,cAAc,GAAG,cAAc,GAAG,MAAM,CACrE,CAAC;CACH,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB,EAAE,kBAyBhC,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import type { PortalProps } from '../../types/Portal';
|
|
4
3
|
export type TooltipProps = {
|
|
5
4
|
/**
|
|
6
5
|
* The element that triggers the tooltip.
|
|
@@ -26,7 +25,13 @@ export type TooltipProps = {
|
|
|
26
25
|
defaultOpen?: boolean;
|
|
27
26
|
/** Inverts the color of the tooltip. Use this on dark backgrounds. */
|
|
28
27
|
inverted?: boolean;
|
|
29
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Portals the floating element outside of the app root and into the body.
|
|
30
|
+
* @see https://floating-ui.com/docs/floatingportal
|
|
31
|
+
* @default true
|
|
32
|
+
*/
|
|
33
|
+
portal?: boolean;
|
|
34
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
30
35
|
export declare const Tooltip: React.ForwardRefExoticComponent<{
|
|
31
36
|
/**
|
|
32
37
|
* The element that triggers the tooltip.
|
|
@@ -52,5 +57,11 @@ export declare const Tooltip: React.ForwardRefExoticComponent<{
|
|
|
52
57
|
defaultOpen?: boolean | undefined;
|
|
53
58
|
/** Inverts the color of the tooltip. Use this on dark backgrounds. */
|
|
54
59
|
inverted?: boolean | undefined;
|
|
55
|
-
|
|
60
|
+
/**
|
|
61
|
+
* Portals the floating element outside of the app root and into the body.
|
|
62
|
+
* @see https://floating-ui.com/docs/floatingportal
|
|
63
|
+
* @default true
|
|
64
|
+
*/
|
|
65
|
+
portal?: boolean | undefined;
|
|
66
|
+
} & HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
56
67
|
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAuB/B,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAChE,6BAA6B;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,qDAAqD;IACrD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO;IAhClB;;;OAGG;cACO,MAAM,YAAY,GAAG,MAAM,aAAa,CAAC,WAAW,CAAC;IAC/D,6BAA6B;aACpB,MAAM;IACf;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH,qDAAqD;;IAErD,sEAAsE;;IAEtE;;;;OAIG;;yEAoHJ,CAAC"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
|
+
type OldErrorMessageSizes = 'xsmall' | 'small' | 'medium' | 'large';
|
|
2
3
|
export type ErrorMessageProps = {
|
|
3
|
-
/**
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Changes text sizing
|
|
6
|
+
* @default md
|
|
7
|
+
* @note `xsmall`, `small`, `medium`, `large` is deprecated
|
|
8
|
+
*/
|
|
9
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | OldErrorMessageSizes;
|
|
5
10
|
/** Adds margin-bottom */
|
|
6
11
|
spacing?: boolean;
|
|
7
12
|
/** Toggle error color */
|
|
@@ -14,8 +19,12 @@ export type ErrorMessageProps = {
|
|
|
14
19
|
} & HTMLAttributes<HTMLParagraphElement>;
|
|
15
20
|
/** Use `ErrorMessage` to display text as error message. */
|
|
16
21
|
export declare const ErrorMessage: import("react").ForwardRefExoticComponent<{
|
|
17
|
-
/**
|
|
18
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Changes text sizing
|
|
24
|
+
* @default md
|
|
25
|
+
* @note `xsmall`, `small`, `medium`, `large` is deprecated
|
|
26
|
+
*/
|
|
27
|
+
size?: "xs" | "sm" | "md" | "lg" | OldErrorMessageSizes | undefined;
|
|
19
28
|
/** Adds margin-bottom */
|
|
20
29
|
spacing?: boolean | undefined;
|
|
21
30
|
/** Toggle error color */
|
|
@@ -26,4 +35,5 @@ export declare const ErrorMessage: import("react").ForwardRefExoticComponent<{
|
|
|
26
35
|
*/
|
|
27
36
|
asChild?: boolean | undefined;
|
|
28
37
|
} & HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
38
|
+
export {};
|
|
29
39
|
//# sourceMappingURL=ErrorMessage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/ErrorMessage/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/ErrorMessage/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAO5C,KAAK,oBAAoB,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEpE,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,oBAAoB,CAAC;IACxD,yBAAyB;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yBAAyB;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,oBAAoB,CAAC,CAAC;AAEzC,2DAA2D;AAC3D,eAAO,MAAM,YAAY;IAlBvB;;;;OAIG;;IAEH,yBAAyB;;IAEzB,yBAAyB;;IAEzB;;;OAGG;;+FAwBJ,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
|
+
type OldHeadingSizes = 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | '2xlarge';
|
|
2
3
|
export type HeadingProps = {
|
|
3
4
|
/** Heading level. This will translate into any h1-6 level unless `as` is defined */
|
|
4
5
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
6
|
/** Changes text sizing
|
|
6
|
-
* @default '
|
|
7
|
+
* @default 'xl'
|
|
8
|
+
*
|
|
9
|
+
* @note `xxsmall`, `xsmall`, `small`, `medium`, `large`, `xlarge`, `2xlarge`, `3xlarge` is deprecated
|
|
7
10
|
*/
|
|
8
|
-
size?: '
|
|
11
|
+
size?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | OldHeadingSizes;
|
|
9
12
|
/** Adds margin-bottom */
|
|
10
13
|
spacing?: boolean;
|
|
11
14
|
/**
|
|
@@ -19,9 +22,11 @@ export declare const Heading: import("react").ForwardRefExoticComponent<{
|
|
|
19
22
|
/** Heading level. This will translate into any h1-6 level unless `as` is defined */
|
|
20
23
|
level?: 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
21
24
|
/** Changes text sizing
|
|
22
|
-
* @default '
|
|
25
|
+
* @default 'xl'
|
|
26
|
+
*
|
|
27
|
+
* @note `xxsmall`, `xsmall`, `small`, `medium`, `large`, `xlarge`, `2xlarge`, `3xlarge` is deprecated
|
|
23
28
|
*/
|
|
24
|
-
size?: "
|
|
29
|
+
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | OldHeadingSizes | undefined;
|
|
25
30
|
/** Adds margin-bottom */
|
|
26
31
|
spacing?: boolean | undefined;
|
|
27
32
|
/**
|
|
@@ -30,4 +35,5 @@ export declare const Heading: import("react").ForwardRefExoticComponent<{
|
|
|
30
35
|
*/
|
|
31
36
|
asChild?: boolean | undefined;
|
|
32
37
|
} & HTMLAttributes<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
38
|
+
export {};
|
|
33
39
|
//# sourceMappingURL=Heading.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Heading/Heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Heading/Heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,OAAO,CAAC;AAOzD,KAAK,eAAe,GAChB,SAAS,GACT,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,MAAM,YAAY,GAAG;IACzB,oFAAoF;IACpF,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9B;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,eAAe,CAAC;IAC1E,yBAAyB;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;AAEvC,uEAAuE;AACvE,eAAO,MAAM,OAAO;IAlBlB,oFAAoF;;IAEpF;;;;OAIG;;IAEH,yBAAyB;;IAEzB;;;OAGG;;2FAuBJ,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
|
+
type OldIngressSizes = 'large' | 'medium' | 'small' | 'xsmall';
|
|
2
3
|
export type IngressProps = {
|
|
3
4
|
/** Changes text sizing
|
|
4
|
-
* @default
|
|
5
|
+
* @default md
|
|
6
|
+
* @note `xsmall`, `small`, `medium`, `large` is deprecated
|
|
5
7
|
*/
|
|
6
|
-
size?: '
|
|
8
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | OldIngressSizes;
|
|
7
9
|
/** Adds margin-bottom */
|
|
8
10
|
spacing?: boolean;
|
|
9
11
|
/**
|
|
@@ -15,9 +17,10 @@ export type IngressProps = {
|
|
|
15
17
|
/** Use `Ingress` to display text as ingress. */
|
|
16
18
|
export declare const Ingress: import("react").ForwardRefExoticComponent<{
|
|
17
19
|
/** Changes text sizing
|
|
18
|
-
* @default
|
|
20
|
+
* @default md
|
|
21
|
+
* @note `xsmall`, `small`, `medium`, `large` is deprecated
|
|
19
22
|
*/
|
|
20
|
-
size?: "
|
|
23
|
+
size?: "xs" | "sm" | "md" | "lg" | OldIngressSizes | undefined;
|
|
21
24
|
/** Adds margin-bottom */
|
|
22
25
|
spacing?: boolean | undefined;
|
|
23
26
|
/**
|
|
@@ -26,4 +29,5 @@ export declare const Ingress: import("react").ForwardRefExoticComponent<{
|
|
|
26
29
|
*/
|
|
27
30
|
asChild?: boolean | undefined;
|
|
28
31
|
} & HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
32
|
+
export {};
|
|
29
33
|
//# sourceMappingURL=Ingress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ingress.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Ingress/Ingress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Ingress.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Ingress/Ingress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAO5C,KAAK,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE/D,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,eAAe,CAAC;IACnD,yBAAyB;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,oBAAoB,CAAC,CAAC;AAEzC,gDAAgD;AAChD,eAAO,MAAM,OAAO;IAflB;;;OAGG;;IAEH,yBAAyB;;IAEzB;;;OAGG;;+FAuBJ,CAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import type { LabelHTMLAttributes } from 'react';
|
|
2
|
+
type OldLabelSizes = 'xsmall' | 'small' | 'medium' | 'large';
|
|
2
3
|
type FontWeights = 'regular' | 'medium' | 'semibold';
|
|
3
4
|
export type LabelProps = {
|
|
4
|
-
/**
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Changes text sizing
|
|
7
|
+
*
|
|
8
|
+
* @default md
|
|
9
|
+
* @note `xsmall`, `small`, `medium`, `large` is deprecated
|
|
10
|
+
*/
|
|
11
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | OldLabelSizes;
|
|
6
12
|
/** Adds margin-bottom */
|
|
7
13
|
spacing?: boolean;
|
|
8
14
|
/** Adjusts font weight. Use this when you have a label hierarchy, such as checkboxes/radios in a fieldset */
|
|
@@ -15,8 +21,13 @@ export type LabelProps = {
|
|
|
15
21
|
} & LabelHTMLAttributes<HTMLLabelElement>;
|
|
16
22
|
/** Use `Label` for labels. */
|
|
17
23
|
export declare const Label: import("react").ForwardRefExoticComponent<{
|
|
18
|
-
/**
|
|
19
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Changes text sizing
|
|
26
|
+
*
|
|
27
|
+
* @default md
|
|
28
|
+
* @note `xsmall`, `small`, `medium`, `large` is deprecated
|
|
29
|
+
*/
|
|
30
|
+
size?: "xs" | "sm" | "md" | "lg" | OldLabelSizes | undefined;
|
|
20
31
|
/** Adds margin-bottom */
|
|
21
32
|
spacing?: boolean | undefined;
|
|
22
33
|
/** Adjusts font weight. Use this when you have a label hierarchy, such as checkboxes/radios in a fieldset */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Label/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Label/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAOjD,KAAK,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC7D,KAAK,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;AAErD,MAAM,MAAM,UAAU,GAAG;IACvB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,aAAa,CAAC;IACjD,yBAAyB;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6GAA6G;IAC7G,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AAE1C,8BAA8B;AAC9B,eAAO,MAAM,KAAK;IAnBhB;;;;;OAKG;;IAEH,yBAAyB;;IAEzB,6GAA6G;;IAE7G;;;OAGG;;4FAwBJ,CAAC"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
|
+
type OldParagraphSizes = 'xsmall' | 'small' | 'medium' | 'large';
|
|
2
3
|
export type ParagraphProps = {
|
|
3
|
-
/**
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Changes text sizing
|
|
6
|
+
*
|
|
7
|
+
* @default `md`
|
|
8
|
+
*
|
|
9
|
+
* @note `xsmall`, `small`, `medium`, `large` is deprecated
|
|
10
|
+
*/
|
|
11
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | OldParagraphSizes;
|
|
5
12
|
/** Adds margin-bottom */
|
|
6
13
|
spacing?: boolean;
|
|
7
14
|
/** Adjusts styling for paragraph length */
|
|
@@ -14,8 +21,14 @@ export type ParagraphProps = {
|
|
|
14
21
|
} & HTMLAttributes<HTMLParagraphElement>;
|
|
15
22
|
/** Use `Paragraph` to display text with paragraph text styles. */
|
|
16
23
|
export declare const Paragraph: import("react").ForwardRefExoticComponent<{
|
|
17
|
-
/**
|
|
18
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Changes text sizing
|
|
26
|
+
*
|
|
27
|
+
* @default `md`
|
|
28
|
+
*
|
|
29
|
+
* @note `xsmall`, `small`, `medium`, `large` is deprecated
|
|
30
|
+
*/
|
|
31
|
+
size?: "xs" | "sm" | "md" | "lg" | OldParagraphSizes | undefined;
|
|
19
32
|
/** Adds margin-bottom */
|
|
20
33
|
spacing?: boolean | undefined;
|
|
21
34
|
/** Adjusts styling for paragraph length */
|
|
@@ -26,4 +39,5 @@ export declare const Paragraph: import("react").ForwardRefExoticComponent<{
|
|
|
26
39
|
*/
|
|
27
40
|
asChild?: boolean | undefined;
|
|
28
41
|
} & HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
42
|
+
export {};
|
|
29
43
|
//# sourceMappingURL=Paragraph.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Paragraph/Paragraph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../../../../../src/components/Typography/Paragraph/Paragraph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAO5C,KAAK,iBAAiB,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEjE,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,iBAAiB,CAAC;IACrD,yBAAyB;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,oBAAoB,CAAC,CAAC;AAEzC,kEAAkE;AAClE,eAAO,MAAM,SAAS;IApBpB;;;;;;OAMG;;IAEH,yBAAyB;;IAEzB,2CAA2C;;IAE3C;;;OAGG;;+FAwBJ,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TextfieldProps } from './Textfield';
|
|
1
2
|
export type CharacterLimitProps = Omit<CharacterCounterProps, 'id' | 'value' | 'size'>;
|
|
2
3
|
type CharacterCounterProps = {
|
|
3
4
|
/** The message indicating the remaining character limit. */
|
|
@@ -11,7 +12,7 @@ type CharacterCounterProps = {
|
|
|
11
12
|
/** The ID of the element that describes the maximum character limit for accessibility purposes. */
|
|
12
13
|
id: string;
|
|
13
14
|
/** Text size */
|
|
14
|
-
size?: '
|
|
15
|
+
size?: TextfieldProps['size'];
|
|
15
16
|
};
|
|
16
17
|
export declare const CharacterCounter: {
|
|
17
18
|
({ label, srLabel: propsSrLabel, maxCount, value, id, size, }: CharacterCounterProps): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CharacterCounter.d.ts","sourceRoot":"","sources":["../../../../src/components/form/CharacterCounter.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,qBAAqB,EACrB,IAAI,GAAG,OAAO,GAAG,MAAM,CACxB,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC3B,4DAA4D;IAC5D,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClC,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,mGAAmG;IACnG,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB;IAChB,IAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"CharacterCounter.d.ts","sourceRoot":"","sources":["../../../../src/components/form/CharacterCounter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,qBAAqB,EACrB,IAAI,GAAG,OAAO,GAAG,MAAM,CACxB,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC3B,4DAA4D;IAC5D,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClC,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,mGAAmG;IACnG,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB;IAChB,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;CAC/B,CAAC;AAQF,eAAO,MAAM,gBAAgB;mEAO1B,qBAAqB,GAAG,WAAW;;CAwBrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAO5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAItD,MAAM,MAAM,aAAa,GAAG;IAC1B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,SAAS,CAAC,GAC3C,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;AAEhE,eAAO,MAAM,QAAQ;IAXnB,qBAAqB;eACV,SAAS;IACpB,mCAAmC;WAC5B,MAAM;IACb;;OAEG;;
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAO5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAItD,MAAM,MAAM,aAAa,GAAG;IAC1B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,SAAS,CAAC,GAC3C,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;AAEhE,eAAO,MAAM,QAAQ;IAXnB,qBAAqB;eACV,SAAS;IACpB,mCAAmC;WAC5B,MAAM;IACb;;OAEG;;gKA8EJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/Checkbox/Group/Group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGpD,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,oBAAoB,2DACsB,CAAC;AAExD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACtC,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;AAEpC,eAAO,MAAM,aAAa;IAVxB,0CAA0C;eAC/B,SAAS;IACpB,yCAAyC;;IAEzC,mCAAmC;;IAEnC,oDAAoD;wBACjC,MAAM,EAAE,KAAK,IAAI;
|
|
1
|
+
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/Checkbox/Group/Group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGpD,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,oBAAoB,2DACsB,CAAC;AAExD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACtC,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;AAEpC,eAAO,MAAM,aAAa;IAVxB,0CAA0C;eAC/B,SAAS;IACpB,yCAAyC;;IAEzC,mCAAmC;;IAEnC,oDAAoD;wBACjC,MAAM,EAAE,KAAK,IAAI;yFAgDrC,CAAC"}
|
|
@@ -188,7 +188,7 @@ export declare const ComboboxComponent: React.ForwardRefExoticComponent<{
|
|
|
188
188
|
description?: React.ReactNode;
|
|
189
189
|
id?: string | undefined;
|
|
190
190
|
readOnly?: boolean | undefined;
|
|
191
|
-
size?: "small" | "medium" | "large" | undefined;
|
|
191
|
+
size?: "sm" | "md" | "lg" | ("small" | "medium" | "large") | undefined;
|
|
192
192
|
} & Pick<React.HTMLAttributes<HTMLElement>, "aria-describedby"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
193
193
|
export declare const Combobox: React.ForwardRefExoticComponent<{
|
|
194
194
|
/**
|
|
@@ -286,6 +286,6 @@ export declare const Combobox: React.ForwardRefExoticComponent<{
|
|
|
286
286
|
description?: React.ReactNode;
|
|
287
287
|
id?: string | undefined;
|
|
288
288
|
readOnly?: boolean | undefined;
|
|
289
|
-
size?: "small" | "medium" | "large" | undefined;
|
|
289
|
+
size?: "sm" | "md" | "lg" | ("small" | "medium" | "large") | undefined;
|
|
290
290
|
} & Pick<React.HTMLAttributes<HTMLElement>, "aria-describedby"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
291
291
|
//# sourceMappingURL=Combobox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Combobox/Combobox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAMpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Combobox/Combobox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAMpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAMzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAY5C,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC1C;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;IACzD;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;CAC1C,GAAG,WAAW,GACb,cAAc,GACd,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB;IA5F5B;;OAEG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;6BACqB,MAAM,EAAE,KAAK,IAAI;IACzC;;;OAGG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;OAGG;;IAEH;;;;;;;OAOG;2BACmB,MAAM,UAAU,MAAM,KAAK,OAAO;IACxD;;;;;;OAMG;4BACoB,MAAM,KAAK,MAAM;;;;;;;;;oKAsWzC,CAAC;AAEF,eAAO,MAAM,QAAQ;IA/bnB;;OAEG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;6BACqB,MAAM,EAAE,KAAK,IAAI;IACzC;;;OAGG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;OAGG;;IAEH;;;;;;;OAOG;2BACmB,MAAM,UAAU,MAAM,KAAK,OAAO;IACxD;;;;;;OAMG;4BACoB,MAAM,KAAK,MAAM;;;;;;;;;oKAiXzC,CAAC"}
|
|
@@ -6,7 +6,7 @@ type UseComboboxOptionProps = {
|
|
|
6
6
|
export default function useComboboxOption({ id, ref, value, }: UseComboboxOptionProps): {
|
|
7
7
|
id: string;
|
|
8
8
|
ref: ((instance: HTMLButtonElement | null) => void) | null;
|
|
9
|
-
selected: import("
|
|
9
|
+
selected: import("packages/react/src/components/form/Combobox/useCombobox").Option;
|
|
10
10
|
active: boolean;
|
|
11
11
|
onOptionClick: (...args: never[]) => void;
|
|
12
12
|
};
|