@krelborn/stylesui 0.8.1 → 0.9.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/README.md +2 -2
- package/dist/accessibility/idSegment.js +1 -2
- package/dist/collections/index.d.ts +3 -0
- package/dist/collections/optionId.js +6 -0
- package/dist/{components/Listbox → collections}/renderedOptions.d.ts +7 -0
- package/dist/{components/Listbox → collections}/renderedOptions.js +6 -4
- package/dist/collections/targetIndexForKey.js +1 -2
- package/dist/collections/typeAhead.js +0 -1
- package/dist/components/Accordion/Accordion.css +1 -0
- package/dist/components/Accordion/Accordion.d.ts +90 -0
- package/dist/components/Accordion/Accordion.js +47 -0
- package/dist/components/Accordion/Accordion.module.js +19 -0
- package/dist/components/Accordion/AccordionContext.d.ts +40 -0
- package/dist/components/Accordion/AccordionContext.js +4 -0
- package/dist/components/Accordion/AccordionItem.d.ts +51 -0
- package/dist/components/Accordion/AccordionItem.js +69 -0
- package/dist/components/Accordion/AccordionToggleContent.d.ts +30 -0
- package/dist/components/Accordion/AccordionToggleContent.js +44 -0
- package/dist/components/Accordion/accordionIds.d.ts +24 -0
- package/dist/components/Accordion/accordionIds.js +12 -0
- package/dist/components/Accordion/index.d.ts +4 -0
- package/dist/components/Accordion/useAccordionContext.d.ts +9 -0
- package/dist/components/Accordion/useAccordionContext.js +10 -0
- package/dist/components/Accordion/useFindablePanel.d.ts +25 -0
- package/dist/components/Accordion/useFindablePanel.js +36 -0
- package/dist/components/Accordion/useFragmentTargetReveal.d.ts +27 -0
- package/dist/components/Accordion/useFragmentTargetReveal.js +36 -0
- package/dist/components/Accordion/useHasOpened.d.ts +7 -0
- package/dist/components/Accordion/useHasOpened.js +7 -0
- package/dist/components/Alert/Alert.js +1 -2
- package/dist/components/Alert/Alert.module.js +1 -2
- package/dist/components/Alert/AlertIcon.js +1 -2
- package/dist/components/Avatar/Avatar.js +1 -2
- package/dist/components/Avatar/Avatar.module.js +1 -2
- package/dist/components/Avatar/initialsOf.js +1 -2
- package/dist/components/AvatarGroup/AvatarGroup.js +1 -2
- package/dist/components/AvatarGroup/AvatarGroup.module.js +1 -2
- package/dist/components/Badge/Badge.js +1 -2
- package/dist/components/Badge/Badge.module.js +1 -2
- package/dist/components/Box/Box.js +1 -2
- package/dist/components/Box/Box.module.js +1 -2
- package/dist/components/Button/Button.js +2 -7
- package/dist/components/Button/Button.module.js +1 -2
- package/dist/components/Card/Card.js +1 -2
- package/dist/components/Card/Card.module.js +1 -2
- package/dist/components/Center/Center.js +6 -7
- package/dist/components/Center/Center.module.js +1 -2
- package/dist/components/Checkbox/Checkbox.js +1 -2
- package/dist/components/ChoiceControl/ChoiceControl.js +1 -2
- package/dist/components/ChoiceControl/ChoiceControl.module.js +1 -2
- package/dist/components/Cluster/Cluster.js +1 -2
- package/dist/components/Code/Code.js +1 -2
- package/dist/components/Code/Code.module.js +1 -2
- package/dist/components/Combobox/Autocomplete.d.ts +83 -0
- package/dist/components/Combobox/Autocomplete.js +102 -0
- package/dist/components/Combobox/Combobox.css +1 -0
- package/dist/components/Combobox/Combobox.d.ts +59 -0
- package/dist/components/Combobox/Combobox.js +82 -0
- package/dist/components/Combobox/Combobox.module.js +17 -0
- package/dist/components/Combobox/ComboboxContext.d.ts +88 -0
- package/dist/components/Combobox/ComboboxContext.js +4 -0
- package/dist/components/Combobox/ComboboxFieldValue.d.ts +17 -0
- package/dist/components/Combobox/ComboboxFieldValue.js +33 -0
- package/dist/components/Combobox/ComboboxOption.d.ts +51 -0
- package/dist/components/Combobox/ComboboxOption.js +74 -0
- package/dist/components/Combobox/ComboboxOptionContent.d.ts +32 -0
- package/dist/components/Combobox/ComboboxOptionContent.js +51 -0
- package/dist/components/Combobox/ComboboxPopup.d.ts +50 -0
- package/dist/components/Combobox/ComboboxPopup.js +59 -0
- package/dist/components/Combobox/autocompleteKeys.d.ts +31 -0
- package/dist/components/Combobox/autocompleteKeys.js +25 -0
- package/dist/components/Combobox/comboboxKeys.d.ts +10 -0
- package/dist/components/Combobox/comboboxKeys.js +22 -0
- package/dist/components/Combobox/containsText.d.ts +9 -0
- package/dist/components/Combobox/containsText.js +8 -0
- package/dist/components/Combobox/index.d.ts +6 -0
- package/dist/components/Combobox/isAltArrow.d.ts +9 -0
- package/dist/components/Combobox/isAltArrow.js +5 -0
- package/dist/components/Combobox/isOptionShown.d.ts +10 -0
- package/dist/components/Combobox/isOptionShown.js +5 -0
- package/dist/components/Combobox/useAutocompleteText.d.ts +56 -0
- package/dist/components/Combobox/useAutocompleteText.js +27 -0
- package/dist/components/Combobox/useComboboxContext.d.ts +9 -0
- package/dist/components/Combobox/useComboboxContext.js +10 -0
- package/dist/components/Combobox/useComboboxList.d.ts +129 -0
- package/dist/components/Combobox/useComboboxList.js +138 -0
- package/dist/components/Combobox/useComboboxOption.d.ts +35 -0
- package/dist/components/Combobox/useComboboxOption.js +46 -0
- package/dist/components/Combobox/useComboboxSelection.d.ts +45 -0
- package/dist/components/Combobox/useComboboxSelection.js +17 -0
- package/dist/components/Combobox/useResultsAnnouncement.d.ts +23 -0
- package/dist/components/Combobox/useResultsAnnouncement.js +24 -0
- package/dist/components/ContextMenu/index.d.ts +2 -0
- package/dist/components/ContextMenu/useContextMenu.d.ts +112 -0
- package/dist/components/ContextMenu/useContextMenu.js +202 -0
- package/dist/components/ContextMenu/watchLongPress.d.ts +35 -0
- package/dist/components/ContextMenu/watchLongPress.js +38 -0
- package/dist/components/Counter/Counter.js +5 -6
- package/dist/components/Counter/Counter.module.js +1 -2
- package/dist/components/Cover/Cover.js +8 -9
- package/dist/components/Cover/Cover.module.js +1 -2
- package/dist/components/Divider/Divider.js +1 -2
- package/dist/components/Divider/Divider.module.js +1 -2
- package/dist/components/Field/Field.js +11 -10
- package/dist/components/Field/Field.module.js +1 -2
- package/dist/components/Fieldset/Fieldset.js +1 -2
- package/dist/components/Fieldset/Fieldset.module.js +1 -2
- package/dist/components/Frame/Frame.js +5 -6
- package/dist/components/Frame/Frame.module.js +1 -2
- package/dist/components/Grid/Grid.js +9 -10
- package/dist/components/Grid/Grid.module.js +1 -2
- package/dist/components/Heading/Heading.js +1 -2
- package/dist/components/Heading/Heading.module.js +1 -2
- package/dist/components/HorizontalFlow/HorizontalFlow.js +6 -7
- package/dist/components/HorizontalFlow/HorizontalFlow.module.js +1 -2
- package/dist/components/Icon/AddIcon.js +1 -2
- package/dist/components/Icon/CheckIcon.d.ts +11 -0
- package/dist/components/Icon/CheckIcon.js +18 -0
- package/dist/components/Icon/ChevronDownIcon.js +1 -2
- package/dist/components/Icon/ChevronRightIcon.d.ts +11 -0
- package/dist/components/Icon/ChevronRightIcon.js +19 -0
- package/dist/components/Icon/CloseIcon.js +1 -2
- package/dist/components/Icon/ColorModeIcon.js +1 -2
- package/dist/components/Icon/DeleteIcon.js +1 -2
- package/dist/components/Icon/Icon.js +1 -2
- package/dist/components/Icon/Icon.module.js +1 -2
- package/dist/components/Icon/InfoIcon.js +1 -2
- package/dist/components/Icon/MenuIcon.d.ts +12 -0
- package/dist/components/Icon/MenuIcon.js +28 -0
- package/dist/components/Icon/MoreHorizontalIcon.js +1 -2
- package/dist/components/Icon/MoreVerticalIcon.js +1 -2
- package/dist/components/Icon/PaletteIcon.js +1 -2
- package/dist/components/Icon/RefreshIcon.js +1 -2
- package/dist/components/Icon/RemoveIcon.js +1 -2
- package/dist/components/Icon/SendIcon.js +1 -2
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/IconButton/IconButton.js +1 -2
- package/dist/components/IconButton/IconButton.module.js +1 -2
- package/dist/components/Kbd/Kbd.js +1 -2
- package/dist/components/Kbd/Kbd.module.js +1 -2
- package/dist/components/Link/Link.js +1 -2
- package/dist/components/Link/Link.module.js +1 -2
- package/dist/components/Listbox/Listbox.js +9 -10
- package/dist/components/Listbox/Listbox.module.js +1 -2
- package/dist/components/Listbox/ListboxContext.js +1 -2
- package/dist/components/Listbox/ListboxOption.js +7 -8
- package/dist/components/Listbox/useListbox.js +22 -23
- package/dist/components/Listbox/useListboxContext.js +1 -2
- package/dist/components/Menu/Menu.d.ts +70 -0
- package/dist/components/Menu/Menu.js +76 -0
- package/dist/components/Menu/MenuContext.d.ts +29 -0
- package/dist/components/Menu/MenuContext.js +4 -0
- package/dist/components/Menu/MenuGroup.d.ts +22 -0
- package/dist/components/Menu/MenuGroup.js +32 -0
- package/dist/components/Menu/MenuItem.d.ts +77 -0
- package/dist/components/Menu/MenuItem.js +54 -0
- package/dist/components/Menu/MenuItemCheckbox.d.ts +61 -0
- package/dist/components/Menu/MenuItemCheckbox.js +37 -0
- package/dist/components/Menu/MenuItemRadio.d.ts +47 -0
- package/dist/components/Menu/MenuItemRadio.js +39 -0
- package/dist/components/Menu/MenuRadioGroup.d.ts +34 -0
- package/dist/components/Menu/MenuRadioGroup.js +27 -0
- package/dist/components/Menu/MenuRadioGroupContext.d.ts +17 -0
- package/dist/components/Menu/MenuRadioGroupContext.js +4 -0
- package/dist/components/Menu/MenuSeparator.d.ts +16 -0
- package/dist/components/Menu/MenuSeparator.js +20 -0
- package/dist/components/Menu/Submenu.d.ts +36 -0
- package/dist/components/Menu/Submenu.js +122 -0
- package/dist/components/Menu/index.d.ts +18 -0
- package/dist/components/Menu/useMenu.d.ts +18 -0
- package/dist/components/Menu/useMenu.js +20 -0
- package/dist/components/Menu/useMenuButton.d.ts +124 -0
- package/dist/components/Menu/useMenuButton.js +92 -0
- package/dist/components/Menu/useMenuContext.d.ts +9 -0
- package/dist/components/Menu/useMenuContext.js +10 -0
- package/dist/components/Menu/useMenuItemContent.d.ts +55 -0
- package/dist/components/Menu/useMenuItemContent.js +66 -0
- package/dist/components/Menu/useMenuPointer.d.ts +27 -0
- package/dist/components/Menu/useMenuPointer.js +56 -0
- package/dist/components/Menu/useMenuRadioGroupContext.d.ts +9 -0
- package/dist/components/Menu/useMenuRadioGroupContext.js +10 -0
- package/dist/components/MenuSurface/MenuSurface.css +1 -0
- package/dist/components/MenuSurface/MenuSurface.module.js +16 -0
- package/dist/components/Menubar/Menubar.css +1 -0
- package/dist/components/Menubar/Menubar.d.ts +23 -0
- package/dist/components/Menubar/Menubar.js +67 -0
- package/dist/components/Menubar/Menubar.module.js +7 -0
- package/dist/components/Menubar/MenubarContext.d.ts +29 -0
- package/dist/components/Menubar/MenubarContext.js +4 -0
- package/dist/components/Menubar/MenubarMenu.d.ts +26 -0
- package/dist/components/Menubar/MenubarMenu.js +88 -0
- package/dist/components/Menubar/findOpenMenubarItem.d.ts +7 -0
- package/dist/components/Menubar/findOpenMenubarItem.js +6 -0
- package/dist/components/Menubar/index.d.ts +4 -0
- package/dist/components/Menubar/menubarItems.d.ts +7 -0
- package/dist/components/Menubar/menubarItems.js +5 -0
- package/dist/components/Menubar/useMenubarContext.d.ts +9 -0
- package/dist/components/Menubar/useMenubarContext.js +10 -0
- package/dist/components/NavBar/NavBar.css +1 -0
- package/dist/components/NavBar/NavBar.d.ts +53 -0
- package/dist/components/NavBar/NavBar.js +97 -0
- package/dist/components/NavBar/NavBar.module.js +22 -0
- package/dist/components/NavBar/NavBarContext.d.ts +21 -0
- package/dist/components/NavBar/NavBarContext.js +4 -0
- package/dist/components/NavBar/NavBarItem.d.ts +32 -0
- package/dist/components/NavBar/NavBarItem.js +18 -0
- package/dist/components/NavBar/NavBarMenu.d.ts +32 -0
- package/dist/components/NavBar/NavBarMenu.js +84 -0
- package/dist/components/NavBar/NavBarMenuGroup.d.ts +25 -0
- package/dist/components/NavBar/NavBarMenuGroup.js +40 -0
- package/dist/components/NavBar/NavBarMenuItem.d.ts +36 -0
- package/dist/components/NavBar/NavBarMenuItem.js +49 -0
- package/dist/components/NavBar/index.d.ts +10 -0
- package/dist/components/NavBar/isNavBarCollapsed.d.ts +8 -0
- package/dist/components/NavBar/isNavBarCollapsed.js +5 -0
- package/dist/components/NavBar/leavesPageInPlace.d.ts +12 -0
- package/dist/components/NavBar/leavesPageInPlace.js +29 -0
- package/dist/components/NavBar/renderNavBarLink.d.ts +12 -0
- package/dist/components/NavBar/renderNavBarLink.js +16 -0
- package/dist/components/NavBar/useLayoutSwitch.d.ts +26 -0
- package/dist/components/NavBar/useLayoutSwitch.js +25 -0
- package/dist/components/NavBar/useNavBarContext.d.ts +9 -0
- package/dist/components/NavBar/useNavBarContext.js +10 -0
- package/dist/components/NavList/NavList.js +1 -2
- package/dist/components/NavList/NavList.module.js +1 -2
- package/dist/components/NavList/NavListGroup.js +1 -2
- package/dist/components/NavList/NavListItem.d.ts +4 -8
- package/dist/components/NavList/NavListItem.js +1 -2
- package/dist/components/Overlay/Overlay.js +6 -7
- package/dist/components/Overlay/Overlay.module.js +1 -2
- package/dist/components/PageLayout/PageLayout.js +6 -7
- package/dist/components/PageLayout/PageLayout.module.js +1 -2
- package/dist/components/Popover/Popover.js +1 -2
- package/dist/components/Popover/Popover.module.js +1 -2
- package/dist/components/Popover/usePopover.js +44 -39
- package/dist/components/Prose/Prose.js +1 -2
- package/dist/components/Prose/Prose.module.js +1 -2
- package/dist/components/Radio/Radio.js +1 -2
- package/dist/components/RadioGroup/RadioGroup.js +5 -6
- package/dist/components/RadioGroup/RadioGroup.module.js +1 -2
- package/dist/components/RequiredIndicator/RequiredIndicator.js +1 -2
- package/dist/components/RequiredIndicator/RequiredIndicator.module.js +1 -2
- package/dist/components/Row/Row.js +1 -2
- package/dist/components/SegmentedControl/Segment.js +1 -2
- package/dist/components/SegmentedControl/SegmentedControl.js +1 -2
- package/dist/components/SegmentedControl/SegmentedControl.module.js +1 -2
- package/dist/components/Select/Select.js +1 -2
- package/dist/components/Sidebar/Sidebar.js +7 -8
- package/dist/components/Sidebar/Sidebar.module.js +1 -2
- package/dist/components/SkipLink/SkipLink.js +1 -2
- package/dist/components/SkipLink/SkipLink.module.js +1 -2
- package/dist/components/Spinner/Spinner.js +1 -2
- package/dist/components/Spinner/Spinner.module.js +1 -2
- package/dist/components/Stack/Stack.js +8 -9
- package/dist/components/Stack/Stack.module.js +1 -2
- package/dist/components/StatusDot/StatusDot.js +1 -2
- package/dist/components/StatusDot/StatusDot.module.js +1 -2
- package/dist/components/Switch/Switch.js +1 -2
- package/dist/components/Switcher/Switcher.js +9 -10
- package/dist/components/Switcher/Switcher.module.js +1 -2
- package/dist/components/Tabs/Tab.js +12 -13
- package/dist/components/Tabs/TabList.js +1 -2
- package/dist/components/Tabs/TabPanel.js +1 -2
- package/dist/components/Tabs/Tabs.js +1 -2
- package/dist/components/Tabs/Tabs.module.js +1 -2
- package/dist/components/Tabs/TabsContext.js +1 -2
- package/dist/components/Tabs/tabIds.js +1 -2
- package/dist/components/Tabs/useTabsContext.js +1 -2
- package/dist/components/Text/Text.js +1 -2
- package/dist/components/Text/Text.module.js +1 -2
- package/dist/components/TextControl/TextControl.d.ts +3 -3
- package/dist/components/TextControl/TextControl.js +14 -10
- package/dist/components/TextControl/TextControl.module.js +1 -2
- package/dist/components/TextInput/TextInput.js +1 -2
- package/dist/components/Textarea/Textarea.js +1 -2
- package/dist/components/Theme/Theme.js +1 -2
- package/dist/components/Tooltip/Tooltip.js +1 -2
- package/dist/components/Tooltip/Tooltip.module.js +1 -2
- package/dist/components/Tooltip/tooltipCoordinator.js +1 -2
- package/dist/components/Tooltip/useTooltip.js +1 -2
- package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -2
- package/dist/components/VisuallyHidden/VisuallyHidden.module.js +1 -2
- package/dist/errors/MissingContextError.js +1 -2
- package/dist/errors/PopoverRefusedError.js +1 -2
- package/dist/forms/FieldContext.d.ts +5 -0
- package/dist/forms/FieldContext.js +1 -2
- package/dist/forms/RadioGroupContext.js +1 -2
- package/dist/forms/hasContent.js +1 -2
- package/dist/forms/useFieldControl.js +1 -2
- package/dist/forms/useRadioGroupItem.js +1 -2
- package/dist/index.d.ts +13 -1
- package/dist/index.js +90 -65
- package/dist/layout/listRole.js +1 -2
- package/dist/layout/spaceValue.js +1 -2
- package/dist/layout/withCustomProperties.js +1 -2
- package/dist/links/LinkOrButtonProps.d.ts +17 -0
- package/dist/links/index.d.ts +1 -0
- package/dist/menus/closeWhenFocusLeaves.d.ts +9 -0
- package/dist/menus/closeWhenFocusLeaves.js +11 -0
- package/dist/menus/focusItem.d.ts +6 -0
- package/dist/menus/focusItem.js +9 -0
- package/dist/menus/focusOnOpening.d.ts +11 -0
- package/dist/menus/focusOnOpening.js +11 -0
- package/dist/menus/hasModifier.d.ts +7 -0
- package/dist/menus/hasModifier.js +5 -0
- package/dist/menus/index.d.ts +11 -0
- package/dist/menus/itemText.d.ts +8 -0
- package/dist/menus/itemText.js +6 -0
- package/dist/menus/leaveMenuOnTab.d.ts +9 -0
- package/dist/menus/leaveMenuOnTab.js +6 -0
- package/dist/menus/pointerIntent.d.ts +36 -0
- package/dist/menus/pointerIntent.js +68 -0
- package/dist/menus/renderedItems.d.ts +8 -0
- package/dist/menus/renderedItems.js +4 -0
- package/dist/menus/watchRemovals.d.ts +8 -0
- package/dist/menus/watchRemovals.js +23 -0
- package/dist/overlays/anchorNameFor.js +1 -2
- package/dist/overlays/mergeProps.js +1 -2
- package/dist/overlays/syncPopover.js +1 -2
- package/dist/overlays/useOverlay.js +2 -9
- package/package.json +10 -10
- package/dist/components/Listbox/optionId.js +0 -7
- /package/dist/{components/Listbox → collections}/optionId.d.ts +0 -0
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { listRole as e } from "../../layout/listRole.js";
|
|
2
|
+
import { spaceValue as t } from "../../layout/spaceValue.js";
|
|
3
|
+
import { withCustomProperties as n } from "../../layout/withCustomProperties.js";
|
|
4
|
+
import { Box as r } from "../Box/Box.js";
|
|
5
5
|
import i from "./Grid.module.js";
|
|
6
6
|
import { clsx as a } from "clsx";
|
|
7
7
|
import { jsx as o } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/Grid/Grid.tsx
|
|
9
9
|
function s({ as: s, className: c, gap: l = 4, minimumItemWidth: u = "16rem", ...d }) {
|
|
10
10
|
let { role: f, style: p, ...m } = d, h = s ?? "div";
|
|
11
|
-
return /* @__PURE__ */ o(
|
|
11
|
+
return /* @__PURE__ */ o(r, {
|
|
12
12
|
...m,
|
|
13
13
|
as: h,
|
|
14
14
|
className: a(i.grid, c),
|
|
15
|
-
role:
|
|
16
|
-
style:
|
|
17
|
-
"--sui-grid-gap":
|
|
15
|
+
role: e(h, f),
|
|
16
|
+
style: n({
|
|
17
|
+
"--sui-grid-gap": t(l),
|
|
18
18
|
"--sui-grid-minimum-item-width": u
|
|
19
19
|
}, p)
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { s as Grid };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import t from "./Heading.module.js";
|
|
3
3
|
import { clsx as n } from "clsx";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Heading/Heading.tsx
|
|
6
6
|
var i = {
|
|
7
7
|
1: "3xl",
|
|
8
8
|
2: "2xl",
|
|
@@ -20,5 +20,4 @@ function a({ className: a, level: o, size: s, tone: c = "default", ...l }) {
|
|
|
20
20
|
"data-tone": c
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
export { a as Heading };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { listRole as e } from "../../layout/listRole.js";
|
|
2
|
+
import { spaceValue as t } from "../../layout/spaceValue.js";
|
|
3
|
+
import { withCustomProperties as n } from "../../layout/withCustomProperties.js";
|
|
4
|
+
import { Box as r } from "../Box/Box.js";
|
|
5
5
|
import i from "./HorizontalFlow.module.js";
|
|
6
6
|
import { clsx as a } from "clsx";
|
|
7
7
|
import { c as o } from "react/compiler-runtime";
|
|
8
8
|
import { jsx as s } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// src/components/HorizontalFlow/HorizontalFlow.tsx
|
|
10
10
|
function c(c) {
|
|
11
11
|
let l = o(22), u, d, f, p, m, h, g, _, v;
|
|
12
12
|
if (l[0] !== c) {
|
|
13
13
|
let { align: o, as: s, className: y, gap: b, justify: x, wrap: S, ...C } = c;
|
|
14
14
|
d = o, f = x, v = S;
|
|
15
15
|
let { role: w, style: T, ...E } = C, D = s ?? "div";
|
|
16
|
-
u =
|
|
16
|
+
u = r, p = E, m = D, l[10] === y ? h = l[11] : (h = a(i.horizontalFlow, y), l[10] = y, l[11] = h), g = e(D, w), _ = n({ "--sui-horizontal-flow-gap": t(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
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
18
|
let y = v ? "" : void 0, b;
|
|
19
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, {
|
|
@@ -27,5 +27,4 @@ function c(c) {
|
|
|
27
27
|
"data-wrap": y
|
|
28
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
29
|
}
|
|
30
|
-
//#endregion
|
|
31
30
|
export { c as HorizontalFlow };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import './HorizontalFlow.css'
|
|
1
|
+
import './HorizontalFlow.css';// src/components/HorizontalFlow/HorizontalFlow.module.css
|
|
2
2
|
var e = "sui-horizontalFlow-E7MYC", t = { horizontalFlow: e };
|
|
3
|
-
//#endregion
|
|
4
3
|
export { t as default, e as horizontalFlow };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import { Icon as t } from "./Icon.js";
|
|
3
3
|
import { c as n } from "react/compiler-runtime";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Icon/AddIcon.tsx
|
|
6
6
|
function a(a) {
|
|
7
7
|
let o = n(4), s, c;
|
|
8
8
|
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
@@ -18,5 +18,4 @@ function a(a) {
|
|
|
18
18
|
children: [s, c]
|
|
19
19
|
}), o[2] = a, o[3] = l), l;
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { a as AddIcon };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { IconProps } from "./Icon";
|
|
3
|
+
/**
|
|
4
|
+
* A check mark, for something that is on, chosen or done, such as a checked item in a menu. It is hidden from assistive technology unless it has a `label`, so where the control it marks states its own value, such as a menu item's `aria-checked`, leave it without one.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <Text>
|
|
8
|
+
* <CheckIcon label="Saved" /> Draft
|
|
9
|
+
* </Text>
|
|
10
|
+
*/
|
|
11
|
+
export declare function CheckIcon(props: IconProps): JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
// src/components/Icon/CheckIcon.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: "M20 6 9 17l-5-5"
|
|
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
|
+
export { i as CheckIcon };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import { Icon as t } from "./Icon.js";
|
|
3
3
|
import { c as n } from "react/compiler-runtime";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Icon/ChevronDownIcon.tsx
|
|
6
6
|
function i(i) {
|
|
7
7
|
let a = n(3), o;
|
|
8
8
|
a[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ r(e, {
|
|
@@ -15,5 +15,4 @@ function i(i) {
|
|
|
15
15
|
children: o
|
|
16
16
|
}), a[1] = i, a[2] = s), s;
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { i as ChevronDownIcon };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { IconProps } from "./Icon";
|
|
3
|
+
/**
|
|
4
|
+
* A chevron pointing along the line, for something that opens beside it, such as a submenu, or leads onward. It points the way the text runs, so it is mirrored in right-to-left text. 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-haspopup="menu">
|
|
8
|
+
* Move to <ChevronRightIcon />
|
|
9
|
+
* </Button>
|
|
10
|
+
*/
|
|
11
|
+
export declare function ChevronRightIcon(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
|
+
// src/components/Icon/ChevronRightIcon.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: "m9 18 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
|
+
mirrored: !0,
|
|
16
|
+
children: o
|
|
17
|
+
}), a[1] = i, a[2] = s), s;
|
|
18
|
+
}
|
|
19
|
+
export { i as ChevronRightIcon };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import { Icon as t } from "./Icon.js";
|
|
3
3
|
import { c as n } from "react/compiler-runtime";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Icon/CloseIcon.tsx
|
|
6
6
|
function a(a) {
|
|
7
7
|
let o = n(4), s, c;
|
|
8
8
|
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
@@ -18,5 +18,4 @@ function a(a) {
|
|
|
18
18
|
children: [s, c]
|
|
19
19
|
}), o[2] = a, o[3] = l), l;
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { a as CloseIcon };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import { Icon as t } from "./Icon.js";
|
|
3
3
|
import { c as n } from "react/compiler-runtime";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Icon/ColorModeIcon.tsx
|
|
6
6
|
function a(a) {
|
|
7
7
|
let o = n(7), s, c, l, u, d;
|
|
8
8
|
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
@@ -33,5 +33,4 @@ function a(a) {
|
|
|
33
33
|
]
|
|
34
34
|
}), o[5] = a, o[6] = f), f;
|
|
35
35
|
}
|
|
36
|
-
//#endregion
|
|
37
36
|
export { a as ColorModeIcon };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import { Icon as t } from "./Icon.js";
|
|
3
3
|
import { c as n } from "react/compiler-runtime";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Icon/DeleteIcon.tsx
|
|
6
6
|
function a(a) {
|
|
7
7
|
let o = n(7), s, c, l, u, d;
|
|
8
8
|
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
@@ -33,5 +33,4 @@ function a(a) {
|
|
|
33
33
|
]
|
|
34
34
|
}), o[5] = a, o[6] = f), f;
|
|
35
35
|
}
|
|
36
|
-
//#endregion
|
|
37
36
|
export { a as DeleteIcon };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import t from "./Icon.module.js";
|
|
3
3
|
import { clsx as n } from "clsx";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Icon/Icon.tsx
|
|
6
6
|
function i({ children: i, className: a, label: o, mirrored: s = !1, ...c }) {
|
|
7
7
|
let l = !o;
|
|
8
8
|
return /* @__PURE__ */ r(e, {
|
|
@@ -24,5 +24,4 @@ function i({ children: i, className: a, label: o, mirrored: s = !1, ...c }) {
|
|
|
24
24
|
}) : i
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { i as Icon };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import './Icon.css'
|
|
1
|
+
import './Icon.css';// src/components/Icon/Icon.module.css
|
|
2
2
|
var e = "sui-icon-szG-X", t = "sui-mirrored-H6BYE", n = {
|
|
3
3
|
icon: e,
|
|
4
4
|
mirrored: t
|
|
5
5
|
};
|
|
6
|
-
//#endregion
|
|
7
6
|
export { n as default, e as icon, t as mirrored };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import { Icon as t } from "./Icon.js";
|
|
3
3
|
import { c as n } from "react/compiler-runtime";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Icon/InfoIcon.tsx
|
|
6
6
|
function a(a) {
|
|
7
7
|
let o = n(5), s, c, l;
|
|
8
8
|
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
@@ -27,5 +27,4 @@ function a(a) {
|
|
|
27
27
|
]
|
|
28
28
|
}), o[3] = a, o[4] = u), u;
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
30
|
export { a as InfoIcon };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { IconProps } from "./Icon";
|
|
3
|
+
/**
|
|
4
|
+
* Three horizontal lines, for the button that shows a site's navigation when it is collapsed on a narrow screen. It is
|
|
5
|
+
* hidden from assistive technology unless it has a `label`, so inside a button, name the button instead.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <Button aria-expanded={open} onClick={toggle}>
|
|
9
|
+
* <MenuIcon /> Menu
|
|
10
|
+
* </Button>
|
|
11
|
+
*/
|
|
12
|
+
export declare function MenuIcon(props: IconProps): JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
// src/components/Icon/MenuIcon.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: "path",
|
|
10
|
+
d: "M4 5h16"
|
|
11
|
+
}), c = /* @__PURE__ */ r(e, {
|
|
12
|
+
as: "path",
|
|
13
|
+
d: "M4 12h16"
|
|
14
|
+
}), l = /* @__PURE__ */ r(e, {
|
|
15
|
+
as: "path",
|
|
16
|
+
d: "M4 19h16"
|
|
17
|
+
}), o[0] = s, o[1] = c, o[2] = l) : (s = o[0], c = o[1], l = o[2]);
|
|
18
|
+
let u;
|
|
19
|
+
return o[3] === a ? u = o[4] : (u = /* @__PURE__ */ i(t, {
|
|
20
|
+
...a,
|
|
21
|
+
children: [
|
|
22
|
+
s,
|
|
23
|
+
c,
|
|
24
|
+
l
|
|
25
|
+
]
|
|
26
|
+
}), o[3] = a, o[4] = u), u;
|
|
27
|
+
}
|
|
28
|
+
export { a as MenuIcon };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import { Icon as t } from "./Icon.js";
|
|
3
3
|
import { c as n } from "react/compiler-runtime";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Icon/MoreHorizontalIcon.tsx
|
|
6
6
|
function a(a) {
|
|
7
7
|
let o = n(5), s, c, l;
|
|
8
8
|
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
@@ -31,5 +31,4 @@ function a(a) {
|
|
|
31
31
|
]
|
|
32
32
|
}), o[3] = a, o[4] = u), u;
|
|
33
33
|
}
|
|
34
|
-
//#endregion
|
|
35
34
|
export { a as MoreHorizontalIcon };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import { Icon as t } from "./Icon.js";
|
|
3
3
|
import { c as n } from "react/compiler-runtime";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Icon/MoreVerticalIcon.tsx
|
|
6
6
|
function a(a) {
|
|
7
7
|
let o = n(5), s, c, l;
|
|
8
8
|
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
@@ -31,5 +31,4 @@ function a(a) {
|
|
|
31
31
|
]
|
|
32
32
|
}), o[3] = a, o[4] = u), u;
|
|
33
33
|
}
|
|
34
|
-
//#endregion
|
|
35
34
|
export { a as MoreVerticalIcon };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import { Icon as t } from "./Icon.js";
|
|
3
3
|
import { c as n } from "react/compiler-runtime";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Icon/PaletteIcon.tsx
|
|
6
6
|
function a(a) {
|
|
7
7
|
let o = n(7), s, c, l, u, d;
|
|
8
8
|
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
@@ -45,5 +45,4 @@ function a(a) {
|
|
|
45
45
|
]
|
|
46
46
|
}), o[5] = a, o[6] = f), f;
|
|
47
47
|
}
|
|
48
|
-
//#endregion
|
|
49
48
|
export { a as PaletteIcon };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import { Icon as t } from "./Icon.js";
|
|
3
3
|
import { c as n } from "react/compiler-runtime";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Icon/RefreshIcon.tsx
|
|
6
6
|
function a(a) {
|
|
7
7
|
let o = n(6), s, c, l, u;
|
|
8
8
|
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
@@ -29,5 +29,4 @@ function a(a) {
|
|
|
29
29
|
]
|
|
30
30
|
}), o[4] = a, o[5] = d), d;
|
|
31
31
|
}
|
|
32
|
-
//#endregion
|
|
33
32
|
export { a as RefreshIcon };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import { Icon as t } from "./Icon.js";
|
|
3
3
|
import { c as n } from "react/compiler-runtime";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Icon/RemoveIcon.tsx
|
|
6
6
|
function i(i) {
|
|
7
7
|
let a = n(3), o;
|
|
8
8
|
a[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ r(e, {
|
|
@@ -15,5 +15,4 @@ function i(i) {
|
|
|
15
15
|
children: o
|
|
16
16
|
}), a[1] = i, a[2] = s), s;
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { i as RemoveIcon };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import { Icon as t } from "./Icon.js";
|
|
3
3
|
import { c as n } from "react/compiler-runtime";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Icon/SendIcon.tsx
|
|
6
6
|
function a(a) {
|
|
7
7
|
let o = n(4), s, c;
|
|
8
8
|
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
|
|
@@ -19,5 +19,4 @@ function a(a) {
|
|
|
19
19
|
children: [s, c]
|
|
20
20
|
}), o[2] = a, o[3] = l), l;
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { a as SendIcon };
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export { AddIcon } from "./AddIcon";
|
|
2
|
+
export { CheckIcon } from "./CheckIcon";
|
|
2
3
|
export { ChevronDownIcon } from "./ChevronDownIcon";
|
|
4
|
+
export { ChevronRightIcon } from "./ChevronRightIcon";
|
|
3
5
|
export { CloseIcon } from "./CloseIcon";
|
|
4
6
|
export { ColorModeIcon } from "./ColorModeIcon";
|
|
5
7
|
export { DeleteIcon } from "./DeleteIcon";
|
|
6
8
|
export type { IconProps } from "./Icon";
|
|
7
9
|
export { InfoIcon } from "./InfoIcon";
|
|
10
|
+
export { MenuIcon } from "./MenuIcon";
|
|
8
11
|
export { MoreHorizontalIcon } from "./MoreHorizontalIcon";
|
|
9
12
|
export { MoreVerticalIcon } from "./MoreVerticalIcon";
|
|
10
13
|
export { PaletteIcon } from "./PaletteIcon";
|
|
@@ -7,7 +7,7 @@ import a from "./IconButton.module.js";
|
|
|
7
7
|
import { clsx as o } from "clsx";
|
|
8
8
|
import { useId as s } from "react";
|
|
9
9
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/components/IconButton/IconButton.tsx
|
|
11
11
|
function d({ children: d, className: f, label: p, placement: m = "top", shortcut: h, variant: g = "ghost", ..._ }) {
|
|
12
12
|
let v = i({
|
|
13
13
|
placement: m,
|
|
@@ -37,5 +37,4 @@ function d({ children: d, className: f, label: p, placement: m = "top", shortcut
|
|
|
37
37
|
})]
|
|
38
38
|
})] });
|
|
39
39
|
}
|
|
40
|
-
//#endregion
|
|
41
40
|
export { d as IconButton };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import './IconButton.css'
|
|
1
|
+
import './IconButton.css';// src/components/IconButton/IconButton.module.css
|
|
2
2
|
var e = "sui-iconButton-JAF-a", t = "sui-icon-2DDWy", n = "sui-shortcut-LCwpq", r = {
|
|
3
3
|
iconButton: e,
|
|
4
4
|
icon: t,
|
|
5
5
|
shortcut: n
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { r as default, t as icon, e as iconButton, n as shortcut };
|
|
@@ -3,7 +3,7 @@ import t from "./Kbd.module.js";
|
|
|
3
3
|
import { clsx as n } from "clsx";
|
|
4
4
|
import { c as r } from "react/compiler-runtime";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/Kbd/Kbd.tsx
|
|
7
7
|
function a(a) {
|
|
8
8
|
let o = r(8), s, c;
|
|
9
9
|
o[0] === a ? (s = o[1], c = o[2]) : ({className: s, ...c} = a, o[0] = a, o[1] = s, o[2] = c);
|
|
@@ -16,5 +16,4 @@ function a(a) {
|
|
|
16
16
|
className: l
|
|
17
17
|
}), o[5] = c, o[6] = l, o[7] = u) : u = o[7], u;
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { a as Kbd };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import t from "./Link.module.js";
|
|
3
3
|
import { clsx as n } from "clsx";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Link/Link.tsx
|
|
6
6
|
function i({ as: i, className: a, tone: o = "primary", underline: s = "always", ...c }) {
|
|
7
7
|
let l = {
|
|
8
8
|
className: n(t.link, a),
|
|
@@ -23,5 +23,4 @@ function i({ as: i, className: a, tone: o = "primary", underline: s = "always",
|
|
|
23
23
|
...l
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
//#endregion
|
|
27
26
|
export { i as Link };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { optionId as e } from "../../collections/optionId.js";
|
|
2
|
+
import { Box as t } from "../Box/Box.js";
|
|
3
|
+
import n from "./Listbox.module.js";
|
|
4
|
+
import { ListboxContext as r } from "./ListboxContext.js";
|
|
5
5
|
import { useListbox as i } from "./useListbox.js";
|
|
6
6
|
import { clsx as a } from "clsx";
|
|
7
7
|
import { jsx as o } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/Listbox/Listbox.tsx
|
|
9
9
|
function s({ className: s, defaultValue: c = null, onAction: l, onBlur: u, onFocus: d, onKeyDown: f, onPointerCancel: p, onPointerDown: m, onValueChange: h, value: g, ..._ }) {
|
|
10
10
|
let v = i({
|
|
11
11
|
defaultValue: c,
|
|
@@ -28,7 +28,7 @@ function s({ className: s, defaultValue: c = null, onAction: l, onBlur: u, onFoc
|
|
|
28
28
|
function A(e) {
|
|
29
29
|
m?.(e), v.handlePointerDown();
|
|
30
30
|
}
|
|
31
|
-
return /* @__PURE__ */ o(
|
|
31
|
+
return /* @__PURE__ */ o(r.Provider, {
|
|
32
32
|
value: {
|
|
33
33
|
act: y,
|
|
34
34
|
activeValue: b,
|
|
@@ -38,9 +38,9 @@ function s({ className: s, defaultValue: c = null, onAction: l, onBlur: u, onFoc
|
|
|
38
38
|
selectedValue: w,
|
|
39
39
|
setActiveValue: T
|
|
40
40
|
},
|
|
41
|
-
children: /* @__PURE__ */ o(
|
|
41
|
+
children: /* @__PURE__ */ o(t, {
|
|
42
42
|
..._,
|
|
43
|
-
className: a(
|
|
43
|
+
className: a(n.listbox, s),
|
|
44
44
|
onBlur: E,
|
|
45
45
|
onFocus: D,
|
|
46
46
|
onKeyDown: O,
|
|
@@ -48,9 +48,8 @@ function s({ className: s, defaultValue: c = null, onAction: l, onBlur: u, onFoc
|
|
|
48
48
|
onPointerDown: A,
|
|
49
49
|
role: "listbox",
|
|
50
50
|
tabIndex: 0,
|
|
51
|
-
"aria-activedescendant": b === null ? void 0 :
|
|
51
|
+
"aria-activedescendant": b === null ? void 0 : e(x, b)
|
|
52
52
|
})
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
//#endregion
|
|
56
55
|
export { s as Listbox };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import './Listbox.css'
|
|
1
|
+
import './Listbox.css';// src/components/Listbox/Listbox.module.css
|
|
2
2
|
var e = "sui-listbox-lSHQo", t = "sui-option-sCJLx", n = {
|
|
3
3
|
listbox: e,
|
|
4
4
|
option: t
|
|
5
5
|
};
|
|
6
|
-
//#endregion
|
|
7
6
|
export { n as default, e as listbox, t as option };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
1
|
+
import { optionId as e } from "../../collections/optionId.js";
|
|
2
|
+
import { Box as t } from "../Box/Box.js";
|
|
3
|
+
import n from "./Listbox.module.js";
|
|
4
4
|
import { useListboxContext as r } from "./useListboxContext.js";
|
|
5
5
|
import { clsx as i } from "clsx";
|
|
6
6
|
import { useEffectEvent as a, useLayoutEffect as o } from "react";
|
|
7
7
|
import { jsx as s } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/Listbox/ListboxOption.tsx
|
|
9
9
|
function c({ className: c, disabled: l = !1, onClick: u, onDoubleClick: d, textValue: f, value: p, ...m }) {
|
|
10
10
|
let h = r("ListboxOption"), { setActiveValue: g } = h, _ = h.activeValue === p, v = h.selectedValue === p, y = a(h.claim);
|
|
11
11
|
o(() => {
|
|
@@ -25,10 +25,10 @@ function c({ className: c, disabled: l = !1, onClick: u, onDoubleClick: d, textV
|
|
|
25
25
|
function x(e) {
|
|
26
26
|
d?.(e), !e.defaultPrevented && !l && h.act(p);
|
|
27
27
|
}
|
|
28
|
-
return /* @__PURE__ */ s(
|
|
28
|
+
return /* @__PURE__ */ s(t, {
|
|
29
29
|
...m,
|
|
30
|
-
className: i(
|
|
31
|
-
id:
|
|
30
|
+
className: i(n.option, c),
|
|
31
|
+
id: e(h.baseId, p),
|
|
32
32
|
onClick: b,
|
|
33
33
|
onDoubleClick: x,
|
|
34
34
|
role: "option",
|
|
@@ -39,5 +39,4 @@ function c({ className: c, disabled: l = !1, onClick: u, onDoubleClick: d, textV
|
|
|
39
39
|
"data-value": p
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
//#endregion
|
|
43
42
|
export { c as ListboxOption };
|