@krelborn/stylesui 0.0.0-stage → 0.8.1
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/LICENSE +74 -0
- package/README.md +129 -2
- package/dist/accessibility/RequiredAccessibleName.d.ts +26 -0
- package/dist/accessibility/idSegment.d.ts +7 -0
- package/dist/accessibility/idSegment.js +6 -0
- package/dist/accessibility/index.d.ts +2 -0
- package/dist/collections/index.d.ts +4 -0
- package/dist/collections/targetIndexForKey.d.ts +45 -0
- package/dist/collections/targetIndexForKey.js +17 -0
- package/dist/collections/typeAhead.d.ts +43 -0
- package/dist/collections/typeAhead.js +19 -0
- package/dist/components/Alert/Alert.css +1 -0
- package/dist/components/Alert/Alert.d.ts +47 -0
- package/dist/components/Alert/Alert.js +28 -0
- package/dist/components/Alert/Alert.module.js +9 -0
- package/dist/components/Alert/AlertIcon.d.ts +14 -0
- package/dist/components/Alert/AlertIcon.js +43 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Avatar/Avatar.css +1 -0
- package/dist/components/Avatar/Avatar.d.ts +33 -0
- package/dist/components/Avatar/Avatar.js +27 -0
- package/dist/components/Avatar/Avatar.module.js +7 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/initialsOf.d.ts +9 -0
- package/dist/components/Avatar/initialsOf.js +10 -0
- package/dist/components/AvatarGroup/AvatarGroup.css +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +30 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +34 -0
- package/dist/components/AvatarGroup/AvatarGroup.module.js +7 -0
- package/dist/components/AvatarGroup/index.d.ts +2 -0
- package/dist/components/Badge/Badge.css +1 -0
- package/dist/components/Badge/Badge.d.ts +36 -0
- package/dist/components/Badge/Badge.js +16 -0
- package/dist/components/Badge/Badge.module.js +4 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Box/Box.css +1 -0
- package/dist/components/Box/Box.d.ts +31 -0
- package/dist/components/Box/Box.js +18 -0
- package/dist/components/Box/Box.module.js +4 -0
- package/dist/components/Box/index.d.ts +2 -0
- package/dist/components/Button/Button.css +1 -0
- package/dist/components/Button/Button.d.ts +42 -0
- package/dist/components/Button/Button.js +29 -0
- package/dist/components/Button/Button.module.js +7 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Card/Card.css +1 -0
- package/dist/components/Card/Card.d.ts +24 -0
- package/dist/components/Card/Card.js +15 -0
- package/dist/components/Card/Card.module.js +4 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Center/Center.css +1 -0
- package/dist/components/Center/Center.d.ts +34 -0
- package/dist/components/Center/Center.js +20 -0
- package/dist/components/Center/Center.module.js +4 -0
- package/dist/components/Center/index.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +23 -0
- package/dist/components/Checkbox/Checkbox.js +13 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/ChoiceControl/ChoiceControl.css +1 -0
- package/dist/components/ChoiceControl/ChoiceControl.d.ts +21 -0
- package/dist/components/ChoiceControl/ChoiceControl.js +40 -0
- package/dist/components/ChoiceControl/ChoiceControl.module.js +9 -0
- package/dist/components/ChoiceControl/index.d.ts +1 -0
- package/dist/components/Cluster/Cluster.d.ts +29 -0
- package/dist/components/Cluster/Cluster.js +14 -0
- package/dist/components/Cluster/index.d.ts +2 -0
- package/dist/components/Code/Code.css +1 -0
- package/dist/components/Code/Code.d.ts +13 -0
- package/dist/components/Code/Code.js +20 -0
- package/dist/components/Code/Code.module.js +4 -0
- package/dist/components/Code/index.d.ts +2 -0
- package/dist/components/Counter/Counter.css +1 -0
- package/dist/components/Counter/Counter.d.ts +39 -0
- package/dist/components/Counter/Counter.js +19 -0
- package/dist/components/Counter/Counter.module.js +4 -0
- package/dist/components/Counter/index.d.ts +2 -0
- package/dist/components/Cover/Cover.css +1 -0
- package/dist/components/Cover/Cover.d.ts +40 -0
- package/dist/components/Cover/Cover.js +30 -0
- package/dist/components/Cover/Cover.module.js +7 -0
- package/dist/components/Cover/index.d.ts +2 -0
- package/dist/components/Divider/Divider.css +1 -0
- package/dist/components/Divider/Divider.d.ts +25 -0
- package/dist/components/Divider/Divider.js +16 -0
- package/dist/components/Divider/Divider.module.js +4 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Field/Field.css +1 -0
- package/dist/components/Field/Field.d.ts +49 -0
- package/dist/components/Field/Field.js +48 -0
- package/dist/components/Field/Field.module.js +9 -0
- package/dist/components/Field/index.d.ts +2 -0
- package/dist/components/Fieldset/Fieldset.css +1 -0
- package/dist/components/Fieldset/Fieldset.d.ts +35 -0
- package/dist/components/Fieldset/Fieldset.js +65 -0
- package/dist/components/Fieldset/Fieldset.module.js +9 -0
- package/dist/components/Fieldset/index.d.ts +2 -0
- package/dist/components/Frame/Frame.css +1 -0
- package/dist/components/Frame/Frame.d.ts +23 -0
- package/dist/components/Frame/Frame.js +17 -0
- package/dist/components/Frame/Frame.module.js +4 -0
- package/dist/components/Frame/index.d.ts +2 -0
- package/dist/components/Grid/Grid.css +1 -0
- package/dist/components/Grid/Grid.d.ts +25 -0
- package/dist/components/Grid/Grid.js +23 -0
- package/dist/components/Grid/Grid.module.js +4 -0
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/Heading/Heading.css +1 -0
- package/dist/components/Heading/Heading.d.ts +39 -0
- package/dist/components/Heading/Heading.js +24 -0
- package/dist/components/Heading/Heading.module.js +4 -0
- package/dist/components/Heading/index.d.ts +2 -0
- package/dist/components/HorizontalFlow/HorizontalFlow.css +1 -0
- package/dist/components/HorizontalFlow/HorizontalFlow.d.ts +30 -0
- package/dist/components/HorizontalFlow/HorizontalFlow.js +31 -0
- package/dist/components/HorizontalFlow/HorizontalFlow.module.js +4 -0
- package/dist/components/HorizontalFlow/index.d.ts +2 -0
- package/dist/components/Icon/AddIcon.d.ts +11 -0
- package/dist/components/Icon/AddIcon.js +22 -0
- package/dist/components/Icon/ChevronDownIcon.d.ts +11 -0
- package/dist/components/Icon/ChevronDownIcon.js +19 -0
- package/dist/components/Icon/CloseIcon.d.ts +12 -0
- package/dist/components/Icon/CloseIcon.js +22 -0
- package/dist/components/Icon/ColorModeIcon.d.ts +12 -0
- package/dist/components/Icon/ColorModeIcon.js +37 -0
- package/dist/components/Icon/DeleteIcon.d.ts +11 -0
- package/dist/components/Icon/DeleteIcon.js +37 -0
- package/dist/components/Icon/Icon.css +1 -0
- package/dist/components/Icon/Icon.d.ts +40 -0
- package/dist/components/Icon/Icon.js +28 -0
- package/dist/components/Icon/Icon.module.js +7 -0
- package/dist/components/Icon/InfoIcon.d.ts +11 -0
- package/dist/components/Icon/InfoIcon.js +31 -0
- package/dist/components/Icon/MoreHorizontalIcon.d.ts +11 -0
- package/dist/components/Icon/MoreHorizontalIcon.js +35 -0
- package/dist/components/Icon/MoreVerticalIcon.d.ts +11 -0
- package/dist/components/Icon/MoreVerticalIcon.js +35 -0
- package/dist/components/Icon/PaletteIcon.d.ts +12 -0
- package/dist/components/Icon/PaletteIcon.js +49 -0
- package/dist/components/Icon/RefreshIcon.d.ts +13 -0
- package/dist/components/Icon/RefreshIcon.js +33 -0
- package/dist/components/Icon/RemoveIcon.d.ts +11 -0
- package/dist/components/Icon/RemoveIcon.js +19 -0
- package/dist/components/Icon/SendIcon.d.ts +11 -0
- package/dist/components/Icon/SendIcon.js +23 -0
- package/dist/components/Icon/index.d.ts +13 -0
- package/dist/components/IconButton/IconButton.css +1 -0
- package/dist/components/IconButton/IconButton.d.ts +45 -0
- package/dist/components/IconButton/IconButton.js +41 -0
- package/dist/components/IconButton/IconButton.module.js +8 -0
- package/dist/components/IconButton/index.d.ts +2 -0
- package/dist/components/Kbd/Kbd.css +1 -0
- package/dist/components/Kbd/Kbd.d.ts +13 -0
- package/dist/components/Kbd/Kbd.js +20 -0
- package/dist/components/Kbd/Kbd.module.js +4 -0
- package/dist/components/Kbd/index.d.ts +2 -0
- package/dist/components/Link/Link.css +1 -0
- package/dist/components/Link/Link.d.ts +52 -0
- package/dist/components/Link/Link.js +27 -0
- package/dist/components/Link/Link.module.js +4 -0
- package/dist/components/Link/index.d.ts +2 -0
- package/dist/components/Listbox/Listbox.css +1 -0
- package/dist/components/Listbox/Listbox.d.ts +46 -0
- package/dist/components/Listbox/Listbox.js +56 -0
- package/dist/components/Listbox/Listbox.module.js +7 -0
- package/dist/components/Listbox/ListboxContext.d.ts +38 -0
- package/dist/components/Listbox/ListboxContext.js +5 -0
- package/dist/components/Listbox/ListboxOption.d.ts +31 -0
- package/dist/components/Listbox/ListboxOption.js +43 -0
- package/dist/components/Listbox/index.d.ts +4 -0
- package/dist/components/Listbox/optionId.d.ts +8 -0
- package/dist/components/Listbox/optionId.js +7 -0
- package/dist/components/Listbox/renderedOptions.d.ts +30 -0
- package/dist/components/Listbox/renderedOptions.js +15 -0
- package/dist/components/Listbox/useListbox.d.ts +54 -0
- package/dist/components/Listbox/useListbox.js +104 -0
- package/dist/components/Listbox/useListboxContext.d.ts +9 -0
- package/dist/components/Listbox/useListboxContext.js +11 -0
- package/dist/components/NavList/NavList.css +1 -0
- package/dist/components/NavList/NavList.d.ts +20 -0
- package/dist/components/NavList/NavList.js +28 -0
- package/dist/components/NavList/NavList.module.js +12 -0
- package/dist/components/NavList/NavListGroup.d.ts +25 -0
- package/dist/components/NavList/NavListGroup.js +40 -0
- package/dist/components/NavList/NavListItem.d.ts +53 -0
- package/dist/components/NavList/NavListItem.js +57 -0
- package/dist/components/NavList/index.d.ts +6 -0
- package/dist/components/Overlay/Overlay.css +1 -0
- package/dist/components/Overlay/Overlay.d.ts +33 -0
- package/dist/components/Overlay/Overlay.js +36 -0
- package/dist/components/Overlay/Overlay.module.js +4 -0
- package/dist/components/Overlay/index.d.ts +1 -0
- package/dist/components/PageLayout/PageLayout.css +1 -0
- package/dist/components/PageLayout/PageLayout.d.ts +26 -0
- package/dist/components/PageLayout/PageLayout.js +18 -0
- package/dist/components/PageLayout/PageLayout.module.js +4 -0
- package/dist/components/PageLayout/index.d.ts +2 -0
- package/dist/components/Popover/Popover.css +1 -0
- package/dist/components/Popover/Popover.d.ts +52 -0
- package/dist/components/Popover/Popover.js +21 -0
- package/dist/components/Popover/Popover.module.js +4 -0
- package/dist/components/Popover/index.d.ts +4 -0
- package/dist/components/Popover/usePopover.d.ts +96 -0
- package/dist/components/Popover/usePopover.js +66 -0
- package/dist/components/Prose/Prose.css +1 -0
- package/dist/components/Prose/Prose.d.ts +50 -0
- package/dist/components/Prose/Prose.js +16 -0
- package/dist/components/Prose/Prose.module.js +4 -0
- package/dist/components/Prose/index.d.ts +2 -0
- package/dist/components/Radio/Radio.d.ts +29 -0
- package/dist/components/Radio/Radio.js +24 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/RadioGroup/RadioGroup.css +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +58 -0
- package/dist/components/RadioGroup/RadioGroup.js +37 -0
- package/dist/components/RadioGroup/RadioGroup.module.js +4 -0
- package/dist/components/RadioGroup/index.d.ts +2 -0
- package/dist/components/RequiredIndicator/RequiredIndicator.css +1 -0
- package/dist/components/RequiredIndicator/RequiredIndicator.d.ts +6 -0
- package/dist/components/RequiredIndicator/RequiredIndicator.js +16 -0
- package/dist/components/RequiredIndicator/RequiredIndicator.module.js +4 -0
- package/dist/components/RequiredIndicator/index.d.ts +1 -0
- package/dist/components/Row/Row.d.ts +29 -0
- package/dist/components/Row/Row.js +14 -0
- package/dist/components/Row/index.d.ts +2 -0
- package/dist/components/SegmentedControl/Segment.d.ts +24 -0
- package/dist/components/SegmentedControl/Segment.js +42 -0
- package/dist/components/SegmentedControl/SegmentedControl.css +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +25 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +20 -0
- package/dist/components/SegmentedControl/SegmentedControl.module.js +10 -0
- package/dist/components/SegmentedControl/index.d.ts +4 -0
- package/dist/components/Select/Select.d.ts +27 -0
- package/dist/components/Select/Select.js +12 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Sidebar/Sidebar.css +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts +42 -0
- package/dist/components/Sidebar/Sidebar.js +24 -0
- package/dist/components/Sidebar/Sidebar.module.js +4 -0
- package/dist/components/Sidebar/index.d.ts +2 -0
- package/dist/components/SkipLink/SkipLink.css +1 -0
- package/dist/components/SkipLink/SkipLink.d.ts +20 -0
- package/dist/components/SkipLink/SkipLink.js +21 -0
- package/dist/components/SkipLink/SkipLink.module.js +4 -0
- package/dist/components/SkipLink/index.d.ts +2 -0
- package/dist/components/Spinner/Spinner.css +1 -0
- package/dist/components/Spinner/Spinner.d.ts +13 -0
- package/dist/components/Spinner/Spinner.js +33 -0
- package/dist/components/Spinner/Spinner.module.js +8 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/Stack/Stack.css +1 -0
- package/dist/components/Stack/Stack.d.ts +25 -0
- package/dist/components/Stack/Stack.js +21 -0
- package/dist/components/Stack/Stack.module.js +4 -0
- package/dist/components/Stack/index.d.ts +2 -0
- package/dist/components/StatusDot/StatusDot.css +1 -0
- package/dist/components/StatusDot/StatusDot.d.ts +57 -0
- package/dist/components/StatusDot/StatusDot.js +21 -0
- package/dist/components/StatusDot/StatusDot.module.js +4 -0
- package/dist/components/StatusDot/index.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts +24 -0
- package/dist/components/Switch/Switch.js +13 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switcher/Switcher.css +1 -0
- package/dist/components/Switcher/Switcher.d.ts +27 -0
- package/dist/components/Switcher/Switcher.js +23 -0
- package/dist/components/Switcher/Switcher.module.js +4 -0
- package/dist/components/Switcher/index.d.ts +2 -0
- package/dist/components/Tabs/Tab.d.ts +26 -0
- package/dist/components/Tabs/Tab.js +61 -0
- package/dist/components/Tabs/TabList.d.ts +16 -0
- package/dist/components/Tabs/TabList.js +23 -0
- package/dist/components/Tabs/TabPanel.d.ts +24 -0
- package/dist/components/Tabs/TabPanel.js +22 -0
- package/dist/components/Tabs/Tabs.css +1 -0
- package/dist/components/Tabs/Tabs.d.ts +81 -0
- package/dist/components/Tabs/Tabs.js +31 -0
- package/dist/components/Tabs/Tabs.module.js +9 -0
- package/dist/components/Tabs/TabsContext.d.ts +39 -0
- package/dist/components/Tabs/TabsContext.js +5 -0
- package/dist/components/Tabs/index.d.ts +8 -0
- package/dist/components/Tabs/tabIds.d.ts +16 -0
- package/dist/components/Tabs/tabIds.js +10 -0
- package/dist/components/Tabs/useTabsContext.d.ts +9 -0
- package/dist/components/Tabs/useTabsContext.js +11 -0
- package/dist/components/Text/Text.css +1 -0
- package/dist/components/Text/Text.d.ts +40 -0
- package/dist/components/Text/Text.js +17 -0
- package/dist/components/Text/Text.module.js +4 -0
- package/dist/components/Text/index.d.ts +2 -0
- package/dist/components/TextControl/TextControl.css +1 -0
- package/dist/components/TextControl/TextControl.d.ts +22 -0
- package/dist/components/TextControl/TextControl.js +23 -0
- package/dist/components/TextControl/TextControl.module.js +4 -0
- package/dist/components/TextControl/index.d.ts +1 -0
- package/dist/components/TextInput/TextInput.d.ts +31 -0
- package/dist/components/TextInput/TextInput.js +13 -0
- package/dist/components/TextInput/index.d.ts +2 -0
- package/dist/components/Textarea/Textarea.d.ts +24 -0
- package/dist/components/Textarea/Textarea.js +12 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Theme/Theme.d.ts +46 -0
- package/dist/components/Theme/Theme.js +18 -0
- package/dist/components/Theme/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.css +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +49 -0
- package/dist/components/Tooltip/Tooltip.js +22 -0
- package/dist/components/Tooltip/Tooltip.module.js +4 -0
- package/dist/components/Tooltip/index.d.ts +4 -0
- package/dist/components/Tooltip/tooltipCoordinator.d.ts +14 -0
- package/dist/components/Tooltip/tooltipCoordinator.js +17 -0
- package/dist/components/Tooltip/useTooltip.d.ts +119 -0
- package/dist/components/Tooltip/useTooltip.js +74 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.css +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +14 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +20 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.module.js +4 -0
- package/dist/components/VisuallyHidden/index.d.ts +2 -0
- package/dist/errors/MissingContextError.d.ts +11 -0
- package/dist/errors/MissingContextError.js +9 -0
- package/dist/errors/PopoverRefusedError.d.ts +12 -0
- package/dist/errors/PopoverRefusedError.js +9 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/forms/ControlSize.d.ts +4 -0
- package/dist/forms/FieldContext.d.ts +29 -0
- package/dist/forms/FieldContext.js +5 -0
- package/dist/forms/RadioGroupContext.d.ts +34 -0
- package/dist/forms/RadioGroupContext.js +5 -0
- package/dist/forms/hasContent.d.ts +10 -0
- package/dist/forms/hasContent.js +7 -0
- package/dist/forms/index.d.ts +8 -0
- package/dist/forms/useFieldControl.d.ts +36 -0
- package/dist/forms/useFieldControl.js +29 -0
- package/dist/forms/useRadioGroupItem.d.ts +50 -0
- package/dist/forms/useRadioGroupItem.js +27 -0
- package/dist/index.d.ts +95 -0
- package/dist/index.js +67 -0
- package/dist/layout/Space.d.ts +4 -0
- package/dist/layout/alignment.d.ts +8 -0
- package/dist/layout/index.d.ts +5 -0
- package/dist/layout/listRole.d.ts +11 -0
- package/dist/layout/listRole.js +6 -0
- package/dist/layout/spaceValue.d.ts +8 -0
- package/dist/layout/spaceValue.js +6 -0
- package/dist/layout/withCustomProperties.d.ts +9 -0
- package/dist/layout/withCustomProperties.js +9 -0
- package/dist/overlays/OverlayDelay.d.ts +13 -0
- package/dist/overlays/OverlayPlacement.d.ts +6 -0
- package/dist/overlays/anchorNameFor.d.ts +7 -0
- package/dist/overlays/anchorNameFor.js +6 -0
- package/dist/overlays/index.d.ts +6 -0
- package/dist/overlays/mergeProps.d.ts +13 -0
- package/dist/overlays/mergeProps.js +30 -0
- package/dist/overlays/syncPopover.d.ts +11 -0
- package/dist/overlays/syncPopover.js +25 -0
- package/dist/overlays/useOverlay.d.ts +71 -0
- package/dist/overlays/useOverlay.js +56 -0
- package/dist/styles.css +1 -0
- package/fonts/playful.css +3 -0
- package/package.json +103 -3
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { BoxProps } from "../Box";
|
|
3
|
+
import type { TextTone } from "../Text";
|
|
4
|
+
/**
|
|
5
|
+
* Heading level, rendered as the matching `h1`–`h6` element
|
|
6
|
+
*/
|
|
7
|
+
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
8
|
+
/**
|
|
9
|
+
* Heading sizes, mapped to the `--sui-font-size-*` tokens
|
|
10
|
+
*/
|
|
11
|
+
export type HeadingSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
12
|
+
/**
|
|
13
|
+
* Props for `Heading`: its own props plus every heading element prop
|
|
14
|
+
*/
|
|
15
|
+
export interface HeadingProps extends Omit<BoxProps<"h1">, "as"> {
|
|
16
|
+
/**
|
|
17
|
+
* Heading level; decides the rendered element
|
|
18
|
+
*/
|
|
19
|
+
level: HeadingLevel;
|
|
20
|
+
/**
|
|
21
|
+
* Font size. Defaults to a size matching the level (1 is `3xl`, 6 is `sm`).
|
|
22
|
+
*/
|
|
23
|
+
size?: HeadingSize;
|
|
24
|
+
/**
|
|
25
|
+
* Text colour. `muted` is for a quiet heading that labels a group, such as a sidebar section. Defaults to
|
|
26
|
+
* `default`, which inherits the surrounding text colour.
|
|
27
|
+
*/
|
|
28
|
+
tone?: TextTone;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Section heading in the theme's heading font
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* <Heading level={2}>Settings</Heading>
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* <Heading level={2} size="xs" tone="muted">For review</Heading>
|
|
38
|
+
*/
|
|
39
|
+
export declare function Heading({ className, level, size, tone, ...rest }: HeadingProps): JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Box as e } from "../Box/Box.js";
|
|
2
|
+
import t from "./Heading.module.js";
|
|
3
|
+
import { clsx as n } from "clsx";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/Heading/Heading.tsx
|
|
6
|
+
var i = {
|
|
7
|
+
1: "3xl",
|
|
8
|
+
2: "2xl",
|
|
9
|
+
3: "xl",
|
|
10
|
+
4: "lg",
|
|
11
|
+
5: "md",
|
|
12
|
+
6: "sm"
|
|
13
|
+
};
|
|
14
|
+
function a({ className: a, level: o, size: s, tone: c = "default", ...l }) {
|
|
15
|
+
return /* @__PURE__ */ r(e, {
|
|
16
|
+
...l,
|
|
17
|
+
as: `h${o}`,
|
|
18
|
+
className: n(t.heading, a),
|
|
19
|
+
"data-size": s ?? i[o],
|
|
20
|
+
"data-tone": c
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { a as Heading };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sui-horizontalFlow-E7MYC{gap:var(--sui-horizontal-flow-gap);flex-direction:row;display:flex}.sui-horizontalFlow-E7MYC[data-wrap]{flex-wrap:wrap}.sui-horizontalFlow-E7MYC:where(ul,ol){margin:0;padding:0;list-style:none}.sui-horizontalFlow-E7MYC[data-align=start]{align-items:start}.sui-horizontalFlow-E7MYC[data-align=center]{align-items:center}.sui-horizontalFlow-E7MYC[data-align=end]{align-items:end}.sui-horizontalFlow-E7MYC[data-align=stretch]{align-items:stretch}.sui-horizontalFlow-E7MYC[data-align=baseline]{align-items:baseline}.sui-horizontalFlow-E7MYC[data-justify=start]{justify-content:start}.sui-horizontalFlow-E7MYC[data-justify=center]{justify-content:center}.sui-horizontalFlow-E7MYC[data-justify=end]{justify-content:end}.sui-horizontalFlow-E7MYC[data-justify=between]{justify-content:space-between}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { Alignment, Justification, Space } from "../../layout";
|
|
3
|
+
import type { BoxElement, BoxProps } from "../Box";
|
|
4
|
+
interface HorizontalFlowOwnProps {
|
|
5
|
+
/**
|
|
6
|
+
* Cross-axis placement of children
|
|
7
|
+
*/
|
|
8
|
+
align: Alignment;
|
|
9
|
+
/**
|
|
10
|
+
* Space between children and between wrapped lines
|
|
11
|
+
*/
|
|
12
|
+
gap: Space;
|
|
13
|
+
/**
|
|
14
|
+
* Main-axis distribution of children
|
|
15
|
+
*/
|
|
16
|
+
justify: Justification;
|
|
17
|
+
/**
|
|
18
|
+
* Whether children wrap onto new lines when they run out of room
|
|
19
|
+
*/
|
|
20
|
+
wrap: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Props for `HorizontalFlow`: its own props plus every prop supported by the element given in `as`
|
|
24
|
+
*/
|
|
25
|
+
export type HorizontalFlowProps<E extends BoxElement = "div"> = HorizontalFlowOwnProps & Omit<BoxProps<E>, keyof HorizontalFlowOwnProps>;
|
|
26
|
+
/**
|
|
27
|
+
* Horizontal flex flow shared by `Row` and `Cluster`
|
|
28
|
+
*/
|
|
29
|
+
export declare function HorizontalFlow<E extends BoxElement = "div">({ align, as, className, gap, justify, wrap, ...rest }: HorizontalFlowProps<E>): JSX.Element;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Box as e } from "../Box/Box.js";
|
|
2
|
+
import { listRole as t } from "../../layout/listRole.js";
|
|
3
|
+
import { spaceValue as n } from "../../layout/spaceValue.js";
|
|
4
|
+
import { withCustomProperties as r } from "../../layout/withCustomProperties.js";
|
|
5
|
+
import i from "./HorizontalFlow.module.js";
|
|
6
|
+
import { clsx as a } from "clsx";
|
|
7
|
+
import { c as o } from "react/compiler-runtime";
|
|
8
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/HorizontalFlow/HorizontalFlow.tsx
|
|
10
|
+
function c(c) {
|
|
11
|
+
let l = o(22), u, d, f, p, m, h, g, _, v;
|
|
12
|
+
if (l[0] !== c) {
|
|
13
|
+
let { align: o, as: s, className: y, gap: b, justify: x, wrap: S, ...C } = c;
|
|
14
|
+
d = o, f = x, v = S;
|
|
15
|
+
let { role: w, style: T, ...E } = C, D = s ?? "div";
|
|
16
|
+
u = e, p = E, m = D, l[10] === y ? h = l[11] : (h = a(i.horizontalFlow, y), l[10] = y, l[11] = h), g = t(D, w), _ = r({ "--sui-horizontal-flow-gap": n(b) }, T), l[0] = c, l[1] = u, l[2] = d, l[3] = f, l[4] = p, l[5] = m, l[6] = h, l[7] = g, l[8] = _, l[9] = v;
|
|
17
|
+
} else u = l[1], d = l[2], f = l[3], p = l[4], m = l[5], h = l[6], g = l[7], _ = l[8], v = l[9];
|
|
18
|
+
let y = v ? "" : void 0, b;
|
|
19
|
+
return l[12] !== u || l[13] !== d || l[14] !== f || l[15] !== p || l[16] !== m || l[17] !== h || l[18] !== g || l[19] !== _ || l[20] !== y ? (b = /* @__PURE__ */ s(u, {
|
|
20
|
+
...p,
|
|
21
|
+
as: m,
|
|
22
|
+
className: h,
|
|
23
|
+
role: g,
|
|
24
|
+
style: _,
|
|
25
|
+
"data-align": d,
|
|
26
|
+
"data-justify": f,
|
|
27
|
+
"data-wrap": y
|
|
28
|
+
}), l[12] = u, l[13] = d, l[14] = f, l[15] = p, l[16] = m, l[17] = h, l[18] = g, l[19] = _, l[20] = y, l[21] = b) : b = l[21], b;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { c as HorizontalFlow };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { IconProps } from "./Icon";
|
|
3
|
+
/**
|
|
4
|
+
* A plus sign, for adding something such as an item, a row or a file. It is hidden from assistive technology unless it has a `label`, so inside a button, name the button instead.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <IconButton label="Add item" onClick={addItem}>
|
|
8
|
+
* <AddIcon />
|
|
9
|
+
* </IconButton>
|
|
10
|
+
*/
|
|
11
|
+
export declare function AddIcon(props: IconProps): JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Box as e } from "../Box/Box.js";
|
|
2
|
+
import { Icon as t } from "./Icon.js";
|
|
3
|
+
import { c as n } from "react/compiler-runtime";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/Icon/AddIcon.tsx
|
|
6
|
+
function a(a) {
|
|
7
|
+
let o = n(4), s, c;
|
|
8
|
+
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
9
|
+
as: "path",
|
|
10
|
+
d: "M5 12h14"
|
|
11
|
+
}), c = /* @__PURE__ */ r(e, {
|
|
12
|
+
as: "path",
|
|
13
|
+
d: "M12 5v14"
|
|
14
|
+
}), o[0] = s, o[1] = c) : (s = o[0], c = o[1]);
|
|
15
|
+
let l;
|
|
16
|
+
return o[2] === a ? l = o[3] : (l = /* @__PURE__ */ i(t, {
|
|
17
|
+
...a,
|
|
18
|
+
children: [s, c]
|
|
19
|
+
}), o[2] = a, o[3] = l), l;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { a as AddIcon };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { IconProps } from "./Icon";
|
|
3
|
+
/**
|
|
4
|
+
* A chevron pointing down, for a control that opens a menu or a list below it, or expands a section. It is hidden from assistive technology unless it has a `label`, so inside a button, name the button instead.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <Button aria-expanded={open} onClick={toggle}>
|
|
8
|
+
* Options <ChevronDownIcon />
|
|
9
|
+
* </Button>
|
|
10
|
+
*/
|
|
11
|
+
export declare function ChevronDownIcon(props: IconProps): JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Box as e } from "../Box/Box.js";
|
|
2
|
+
import { Icon as t } from "./Icon.js";
|
|
3
|
+
import { c as n } from "react/compiler-runtime";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/Icon/ChevronDownIcon.tsx
|
|
6
|
+
function i(i) {
|
|
7
|
+
let a = n(3), o;
|
|
8
|
+
a[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ r(e, {
|
|
9
|
+
as: "path",
|
|
10
|
+
d: "m6 9 6 6 6-6"
|
|
11
|
+
}), a[0] = o) : o = a[0];
|
|
12
|
+
let s;
|
|
13
|
+
return a[1] === i ? s = a[2] : (s = /* @__PURE__ */ r(t, {
|
|
14
|
+
...i,
|
|
15
|
+
children: o
|
|
16
|
+
}), a[1] = i, a[2] = s), s;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { i as ChevronDownIcon };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { IconProps } from "./Icon";
|
|
3
|
+
/**
|
|
4
|
+
* A cross, for closing or dismissing something such as a dialog or a banner. It is hidden from assistive technology
|
|
5
|
+
* unless it has a `label`, so inside a button, name the button instead.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <IconButton label="Close" onClick={close}>
|
|
9
|
+
* <CloseIcon />
|
|
10
|
+
* </IconButton>
|
|
11
|
+
*/
|
|
12
|
+
export declare function CloseIcon(props: IconProps): JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Box as e } from "../Box/Box.js";
|
|
2
|
+
import { Icon as t } from "./Icon.js";
|
|
3
|
+
import { c as n } from "react/compiler-runtime";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/Icon/CloseIcon.tsx
|
|
6
|
+
function a(a) {
|
|
7
|
+
let o = n(4), s, c;
|
|
8
|
+
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
9
|
+
as: "path",
|
|
10
|
+
d: "M18 6 6 18"
|
|
11
|
+
}), c = /* @__PURE__ */ r(e, {
|
|
12
|
+
as: "path",
|
|
13
|
+
d: "m6 6 12 12"
|
|
14
|
+
}), o[0] = s, o[1] = c) : (s = o[0], c = o[1]);
|
|
15
|
+
let l;
|
|
16
|
+
return o[2] === a ? l = o[3] : (l = /* @__PURE__ */ i(t, {
|
|
17
|
+
...a,
|
|
18
|
+
children: [s, c]
|
|
19
|
+
}), o[2] = a, o[3] = l), l;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { a as CloseIcon };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { IconProps } from "./Icon";
|
|
3
|
+
/**
|
|
4
|
+
* A sun half hidden behind a crescent moon, for the colour mode, such as on a button that switches between light and
|
|
5
|
+
* dark. It is hidden from assistive technology unless it has a `label`, so inside a button, name the button instead.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <IconButton label="Dark mode" onClick={toggleDarkMode} aria-pressed={isDark}>
|
|
9
|
+
* <ColorModeIcon />
|
|
10
|
+
* </IconButton>
|
|
11
|
+
*/
|
|
12
|
+
export declare function ColorModeIcon(props: IconProps): JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Box as e } from "../Box/Box.js";
|
|
2
|
+
import { Icon as t } from "./Icon.js";
|
|
3
|
+
import { c as n } from "react/compiler-runtime";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/Icon/ColorModeIcon.tsx
|
|
6
|
+
function a(a) {
|
|
7
|
+
let o = n(7), s, c, l, u, d;
|
|
8
|
+
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
9
|
+
as: "path",
|
|
10
|
+
d: "M12 2v2"
|
|
11
|
+
}), c = /* @__PURE__ */ r(e, {
|
|
12
|
+
as: "path",
|
|
13
|
+
d: "M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715"
|
|
14
|
+
}), l = /* @__PURE__ */ r(e, {
|
|
15
|
+
as: "path",
|
|
16
|
+
d: "M16 12a4 4 0 0 0-4-4"
|
|
17
|
+
}), u = /* @__PURE__ */ r(e, {
|
|
18
|
+
as: "path",
|
|
19
|
+
d: "m19 5-1.256 1.256"
|
|
20
|
+
}), d = /* @__PURE__ */ r(e, {
|
|
21
|
+
as: "path",
|
|
22
|
+
d: "M20 12h2"
|
|
23
|
+
}), o[0] = s, o[1] = c, o[2] = l, o[3] = u, o[4] = d) : (s = o[0], c = o[1], l = o[2], u = o[3], d = o[4]);
|
|
24
|
+
let f;
|
|
25
|
+
return o[5] === a ? f = o[6] : (f = /* @__PURE__ */ i(t, {
|
|
26
|
+
...a,
|
|
27
|
+
children: [
|
|
28
|
+
s,
|
|
29
|
+
c,
|
|
30
|
+
l,
|
|
31
|
+
u,
|
|
32
|
+
d
|
|
33
|
+
]
|
|
34
|
+
}), o[5] = a, o[6] = f), f;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { a as ColorModeIcon };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { IconProps } from "./Icon";
|
|
3
|
+
/**
|
|
4
|
+
* A bin, for deleting something for good. It is hidden from assistive technology unless it has a `label`, so inside a button, name the button instead.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <IconButton label="Delete message" onClick={deleteMessage}>
|
|
8
|
+
* <DeleteIcon />
|
|
9
|
+
* </IconButton>
|
|
10
|
+
*/
|
|
11
|
+
export declare function DeleteIcon(props: IconProps): JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Box as e } from "../Box/Box.js";
|
|
2
|
+
import { Icon as t } from "./Icon.js";
|
|
3
|
+
import { c as n } from "react/compiler-runtime";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/Icon/DeleteIcon.tsx
|
|
6
|
+
function a(a) {
|
|
7
|
+
let o = n(7), s, c, l, u, d;
|
|
8
|
+
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
9
|
+
as: "path",
|
|
10
|
+
d: "M10 11v6"
|
|
11
|
+
}), c = /* @__PURE__ */ r(e, {
|
|
12
|
+
as: "path",
|
|
13
|
+
d: "M14 11v6"
|
|
14
|
+
}), l = /* @__PURE__ */ r(e, {
|
|
15
|
+
as: "path",
|
|
16
|
+
d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"
|
|
17
|
+
}), u = /* @__PURE__ */ r(e, {
|
|
18
|
+
as: "path",
|
|
19
|
+
d: "M3 6h18"
|
|
20
|
+
}), d = /* @__PURE__ */ r(e, {
|
|
21
|
+
as: "path",
|
|
22
|
+
d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"
|
|
23
|
+
}), o[0] = s, o[1] = c, o[2] = l, o[3] = u, o[4] = d) : (s = o[0], c = o[1], l = o[2], u = o[3], d = o[4]);
|
|
24
|
+
let f;
|
|
25
|
+
return o[5] === a ? f = o[6] : (f = /* @__PURE__ */ i(t, {
|
|
26
|
+
...a,
|
|
27
|
+
children: [
|
|
28
|
+
s,
|
|
29
|
+
c,
|
|
30
|
+
l,
|
|
31
|
+
u,
|
|
32
|
+
d
|
|
33
|
+
]
|
|
34
|
+
}), o[5] = a, o[6] = f), f;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { a as DeleteIcon };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sui-icon-szG-X{vertical-align:-.125em;block-size:1em;inline-size:1em;stroke-width:var(--sui-icon-stroke-width,2);flex-shrink:0;display:inline-block}.sui-mirrored-H6BYE:dir(rtl){transform:matrix(-1,0,0,1,24,0)}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { JSX, ReactNode } from "react";
|
|
2
|
+
import type { BoxProps } from "../Box";
|
|
3
|
+
/**
|
|
4
|
+
* Props for every icon: its own props plus every `svg` prop except those its artwork and `label` decide. It is 1em
|
|
5
|
+
* square, so `font-size` sizes it, its colour follows `color`, and its stroke weight follows `--sui-icon-stroke-width`.
|
|
6
|
+
*/
|
|
7
|
+
export interface IconProps extends Omit<BoxProps<"svg">, "aria-hidden" | "aria-label" | "aria-labelledby" | "as" | "children" | "dangerouslySetInnerHTML" | "fill" | "height" | "role" | "stroke" | "strokeLinecap" | "strokeLinejoin" | "strokeWidth" | "viewBox" | "width"> {
|
|
8
|
+
/**
|
|
9
|
+
* Not accepted: the icon is hidden from assistive technology exactly when it has no `label`
|
|
10
|
+
*/
|
|
11
|
+
"aria-hidden"?: never;
|
|
12
|
+
/**
|
|
13
|
+
* Not accepted: the `label` names the icon
|
|
14
|
+
*/
|
|
15
|
+
"aria-label"?: never;
|
|
16
|
+
/**
|
|
17
|
+
* Not accepted: the `label` names the icon
|
|
18
|
+
*/
|
|
19
|
+
"aria-labelledby"?: never;
|
|
20
|
+
/**
|
|
21
|
+
* What the icon means, read by screen readers. Without it, or with an empty one, the icon is hidden from them, which
|
|
22
|
+
* suits an icon beside text or inside a named button.
|
|
23
|
+
*/
|
|
24
|
+
label?: string;
|
|
25
|
+
}
|
|
26
|
+
interface IconBaseProps extends IconProps {
|
|
27
|
+
/**
|
|
28
|
+
* The glyph's shapes, drawn in round strokes on a 24 by 24 grid
|
|
29
|
+
*/
|
|
30
|
+
children: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the glyph points the way the text runs, so it is mirrored in right-to-left text
|
|
33
|
+
*/
|
|
34
|
+
mirrored?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The svg element every icon renders: 1em square, stroked in `currentColor`, and decorative unless it has a `label`
|
|
38
|
+
*/
|
|
39
|
+
export declare function Icon({ children, className, label, mirrored, ...rest }: IconBaseProps): JSX.Element;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Box as e } from "../Box/Box.js";
|
|
2
|
+
import t from "./Icon.module.js";
|
|
3
|
+
import { clsx as n } from "clsx";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/Icon/Icon.tsx
|
|
6
|
+
function i({ children: i, className: a, label: o, mirrored: s = !1, ...c }) {
|
|
7
|
+
let l = !o;
|
|
8
|
+
return /* @__PURE__ */ r(e, {
|
|
9
|
+
...c,
|
|
10
|
+
as: "svg",
|
|
11
|
+
className: n(t.icon, a),
|
|
12
|
+
fill: "none",
|
|
13
|
+
role: l ? void 0 : "img",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeLinecap: "round",
|
|
16
|
+
strokeLinejoin: "round",
|
|
17
|
+
viewBox: "0 0 24 24",
|
|
18
|
+
"aria-hidden": l ? !0 : void 0,
|
|
19
|
+
"aria-label": l ? void 0 : o,
|
|
20
|
+
children: s ? /* @__PURE__ */ r(e, {
|
|
21
|
+
as: "g",
|
|
22
|
+
className: t.mirrored,
|
|
23
|
+
children: i
|
|
24
|
+
}) : i
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { i as Icon };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { IconProps } from "./Icon";
|
|
3
|
+
/**
|
|
4
|
+
* A letter i in a circle, for information about something, such as an app's About details. It is hidden from assistive technology unless it has a `label`, so inside a button, name the button instead.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <IconButton label="About" {...getTriggerProps()}>
|
|
8
|
+
* <InfoIcon />
|
|
9
|
+
* </IconButton>
|
|
10
|
+
*/
|
|
11
|
+
export declare function InfoIcon(props: IconProps): JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Box as e } from "../Box/Box.js";
|
|
2
|
+
import { Icon as t } from "./Icon.js";
|
|
3
|
+
import { c as n } from "react/compiler-runtime";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/Icon/InfoIcon.tsx
|
|
6
|
+
function a(a) {
|
|
7
|
+
let o = n(5), s, c, l;
|
|
8
|
+
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
9
|
+
as: "circle",
|
|
10
|
+
cx: "12",
|
|
11
|
+
cy: "12",
|
|
12
|
+
r: "10"
|
|
13
|
+
}), c = /* @__PURE__ */ r(e, {
|
|
14
|
+
as: "path",
|
|
15
|
+
d: "M12 16v-4"
|
|
16
|
+
}), l = /* @__PURE__ */ r(e, {
|
|
17
|
+
as: "path",
|
|
18
|
+
d: "M12 8h.01"
|
|
19
|
+
}), o[0] = s, o[1] = c, o[2] = l) : (s = o[0], c = o[1], l = o[2]);
|
|
20
|
+
let u;
|
|
21
|
+
return o[3] === a ? u = o[4] : (u = /* @__PURE__ */ i(t, {
|
|
22
|
+
...a,
|
|
23
|
+
children: [
|
|
24
|
+
s,
|
|
25
|
+
c,
|
|
26
|
+
l
|
|
27
|
+
]
|
|
28
|
+
}), o[3] = a, o[4] = u), u;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { a as InfoIcon };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { IconProps } from "./Icon";
|
|
3
|
+
/**
|
|
4
|
+
* Three dots in a row, for a menu of more actions, such as one at the end of a toolbar. It is hidden from assistive technology unless it has a `label`, so inside a button, name the button instead.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <IconButton label="More actions" {...getTriggerProps()}>
|
|
8
|
+
* <MoreHorizontalIcon />
|
|
9
|
+
* </IconButton>
|
|
10
|
+
*/
|
|
11
|
+
export declare function MoreHorizontalIcon(props: IconProps): JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Box as e } from "../Box/Box.js";
|
|
2
|
+
import { Icon as t } from "./Icon.js";
|
|
3
|
+
import { c as n } from "react/compiler-runtime";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/Icon/MoreHorizontalIcon.tsx
|
|
6
|
+
function a(a) {
|
|
7
|
+
let o = n(5), s, c, l;
|
|
8
|
+
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
9
|
+
as: "circle",
|
|
10
|
+
cx: "12",
|
|
11
|
+
cy: "12",
|
|
12
|
+
r: "1"
|
|
13
|
+
}), c = /* @__PURE__ */ r(e, {
|
|
14
|
+
as: "circle",
|
|
15
|
+
cx: "19",
|
|
16
|
+
cy: "12",
|
|
17
|
+
r: "1"
|
|
18
|
+
}), l = /* @__PURE__ */ r(e, {
|
|
19
|
+
as: "circle",
|
|
20
|
+
cx: "5",
|
|
21
|
+
cy: "12",
|
|
22
|
+
r: "1"
|
|
23
|
+
}), o[0] = s, o[1] = c, o[2] = l) : (s = o[0], c = o[1], l = o[2]);
|
|
24
|
+
let u;
|
|
25
|
+
return o[3] === a ? u = o[4] : (u = /* @__PURE__ */ i(t, {
|
|
26
|
+
...a,
|
|
27
|
+
children: [
|
|
28
|
+
s,
|
|
29
|
+
c,
|
|
30
|
+
l
|
|
31
|
+
]
|
|
32
|
+
}), o[3] = a, o[4] = u), u;
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { a as MoreHorizontalIcon };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { IconProps } from "./Icon";
|
|
3
|
+
/**
|
|
4
|
+
* Three dots in a column, for a menu of more actions, such as one at the end of a list item or a table row. It is hidden from assistive technology unless it has a `label`, so inside a button, name the button instead.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <IconButton label="More actions" {...getTriggerProps()}>
|
|
8
|
+
* <MoreVerticalIcon />
|
|
9
|
+
* </IconButton>
|
|
10
|
+
*/
|
|
11
|
+
export declare function MoreVerticalIcon(props: IconProps): JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Box as e } from "../Box/Box.js";
|
|
2
|
+
import { Icon as t } from "./Icon.js";
|
|
3
|
+
import { c as n } from "react/compiler-runtime";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/Icon/MoreVerticalIcon.tsx
|
|
6
|
+
function a(a) {
|
|
7
|
+
let o = n(5), s, c, l;
|
|
8
|
+
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
9
|
+
as: "circle",
|
|
10
|
+
cx: "12",
|
|
11
|
+
cy: "12",
|
|
12
|
+
r: "1"
|
|
13
|
+
}), c = /* @__PURE__ */ r(e, {
|
|
14
|
+
as: "circle",
|
|
15
|
+
cx: "12",
|
|
16
|
+
cy: "5",
|
|
17
|
+
r: "1"
|
|
18
|
+
}), l = /* @__PURE__ */ r(e, {
|
|
19
|
+
as: "circle",
|
|
20
|
+
cx: "12",
|
|
21
|
+
cy: "19",
|
|
22
|
+
r: "1"
|
|
23
|
+
}), o[0] = s, o[1] = c, o[2] = l) : (s = o[0], c = o[1], l = o[2]);
|
|
24
|
+
let u;
|
|
25
|
+
return o[3] === a ? u = o[4] : (u = /* @__PURE__ */ i(t, {
|
|
26
|
+
...a,
|
|
27
|
+
children: [
|
|
28
|
+
s,
|
|
29
|
+
c,
|
|
30
|
+
l
|
|
31
|
+
]
|
|
32
|
+
}), o[3] = a, o[4] = u), u;
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { a as MoreVerticalIcon };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { IconProps } from "./Icon";
|
|
3
|
+
/**
|
|
4
|
+
* A painter's palette dotted with paint, for choosing colours, such as the button that opens an appearance or theme
|
|
5
|
+
* menu. It is hidden from assistive technology unless it has a `label`, so inside a button, name the button instead.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <IconButton label="Appearance" {...getTriggerProps()}>
|
|
9
|
+
* <PaletteIcon />
|
|
10
|
+
* </IconButton>
|
|
11
|
+
*/
|
|
12
|
+
export declare function PaletteIcon(props: IconProps): JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Box as e } from "../Box/Box.js";
|
|
2
|
+
import { Icon as t } from "./Icon.js";
|
|
3
|
+
import { c as n } from "react/compiler-runtime";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/Icon/PaletteIcon.tsx
|
|
6
|
+
function a(a) {
|
|
7
|
+
let o = n(7), s, c, l, u, d;
|
|
8
|
+
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
9
|
+
as: "path",
|
|
10
|
+
d: "M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z"
|
|
11
|
+
}), c = /* @__PURE__ */ r(e, {
|
|
12
|
+
as: "circle",
|
|
13
|
+
cx: "13.5",
|
|
14
|
+
cy: "6.5",
|
|
15
|
+
fill: "currentColor",
|
|
16
|
+
r: ".5"
|
|
17
|
+
}), l = /* @__PURE__ */ r(e, {
|
|
18
|
+
as: "circle",
|
|
19
|
+
cx: "17.5",
|
|
20
|
+
cy: "10.5",
|
|
21
|
+
fill: "currentColor",
|
|
22
|
+
r: ".5"
|
|
23
|
+
}), u = /* @__PURE__ */ r(e, {
|
|
24
|
+
as: "circle",
|
|
25
|
+
cx: "6.5",
|
|
26
|
+
cy: "12.5",
|
|
27
|
+
fill: "currentColor",
|
|
28
|
+
r: ".5"
|
|
29
|
+
}), d = /* @__PURE__ */ r(e, {
|
|
30
|
+
as: "circle",
|
|
31
|
+
cx: "8.5",
|
|
32
|
+
cy: "7.5",
|
|
33
|
+
fill: "currentColor",
|
|
34
|
+
r: ".5"
|
|
35
|
+
}), o[0] = s, o[1] = c, o[2] = l, o[3] = u, o[4] = d) : (s = o[0], c = o[1], l = o[2], u = o[3], d = o[4]);
|
|
36
|
+
let f;
|
|
37
|
+
return o[5] === a ? f = o[6] : (f = /* @__PURE__ */ i(t, {
|
|
38
|
+
...a,
|
|
39
|
+
children: [
|
|
40
|
+
s,
|
|
41
|
+
c,
|
|
42
|
+
l,
|
|
43
|
+
u,
|
|
44
|
+
d
|
|
45
|
+
]
|
|
46
|
+
}), o[5] = a, o[6] = f), f;
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { a as PaletteIcon };
|