@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
|
@@ -3,7 +3,7 @@ import t from "./NavList.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/NavList/NavList.tsx
|
|
7
7
|
function a(a) {
|
|
8
8
|
let o = r(12), s, c, l;
|
|
9
9
|
o[0] === a ? (s = o[1], c = o[2], l = o[3]) : ({children: s, className: c, ...l} = a, o[0] = a, o[1] = s, o[2] = c, o[3] = l);
|
|
@@ -24,5 +24,4 @@ function a(a) {
|
|
|
24
24
|
children: d
|
|
25
25
|
}), o[8] = l, o[9] = u, o[10] = d, o[11] = f) : f = o[11], f;
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { a as NavList };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './NavList.css'
|
|
1
|
+
import './NavList.css';// src/components/NavList/NavList.module.css
|
|
2
2
|
var e = "sui-navList-MII8M", t = "sui-list-oNLze", n = "sui-group-18cks", r = "sui-groupTitle-Ftg7C", i = "sui-item-2Rc1V", a = "sui-label-WQWVq", o = "sui-trailing-g7A1F", s = {
|
|
3
3
|
navList: e,
|
|
4
4
|
list: t,
|
|
@@ -8,5 +8,4 @@ var e = "sui-navList-MII8M", t = "sui-list-oNLze", n = "sui-group-18cks", r = "s
|
|
|
8
8
|
label: a,
|
|
9
9
|
trailing: o
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { s as default, n as group, r as groupTitle, i as item, a as label, t as list, e as navList, o as trailing };
|
|
@@ -5,7 +5,7 @@ import { clsx as r } from "clsx";
|
|
|
5
5
|
import { useId as i } from "react";
|
|
6
6
|
import { c as a } from "react/compiler-runtime";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/NavList/NavListGroup.tsx
|
|
9
9
|
function c(c) {
|
|
10
10
|
let l = a(20), u, d, f, p, m;
|
|
11
11
|
l[0] === c ? (u = l[1], d = l[2], f = l[3], p = l[4], m = l[5]) : ({children: u, className: d, headingLevel: f, title: m, ...p} = c, l[0] = c, l[1] = u, l[2] = d, l[3] = f, l[4] = p, l[5] = m);
|
|
@@ -36,5 +36,4 @@ function c(c) {
|
|
|
36
36
|
children: [_, v]
|
|
37
37
|
}), l[15] = p, l[16] = g, l[17] = _, l[18] = v, l[19] = y) : y = l[19], y;
|
|
38
38
|
}
|
|
39
|
-
//#endregion
|
|
40
39
|
export { c as NavListGroup };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { JSX, ReactNode } from "react";
|
|
2
|
+
import type { LinkOrButtonElement, LinkOrButtonProps } from "../../links";
|
|
2
3
|
/**
|
|
3
4
|
* What a `NavListItem` can render: a link, a button for switching views, or a component that renders an anchor, such
|
|
4
5
|
* as a router's link
|
|
5
6
|
*/
|
|
6
|
-
export type NavListItemElement =
|
|
7
|
+
export type NavListItemElement = LinkOrButtonElement;
|
|
7
8
|
interface NavListItemOwnProps {
|
|
8
9
|
/**
|
|
9
10
|
* The label. It is never a render function, even when the component given in `as` takes one, because the item
|
|
@@ -25,18 +26,13 @@ interface NavListItemElementOwnProps<E extends NavListItemElement> {
|
|
|
25
26
|
*/
|
|
26
27
|
className?: string;
|
|
27
28
|
}
|
|
28
|
-
type PropsOnlyOn<Element extends "a" | "button", Other extends "a" | "button"> = {
|
|
29
|
-
[Name in Exclude<keyof ComponentPropsWithRef<Element>, keyof ComponentPropsWithRef<Other>>]?: never;
|
|
30
|
-
};
|
|
31
|
-
type NavListItemElementProps<E extends NavListItemElement> = E extends JSXElementConstructor<infer Props> ? Props : E extends "button" ? ComponentPropsWithRef<"button"> & PropsOnlyOn<"a", "button"> : ComponentPropsWithRef<"a"> & PropsOnlyOn<"button", "a">;
|
|
32
|
-
type OmitFromEach<Props, Name extends PropertyKey> = Props extends unknown ? Omit<Props, Name> : never;
|
|
33
29
|
/**
|
|
34
30
|
* Props for `NavListItem`: `children` and `trailing` plus every other prop of the link, button or component given in
|
|
35
31
|
* `as`, except `dangerouslySetInnerHTML`. When `as` may be either a link or a button, only props both accept are
|
|
36
32
|
* allowed.
|
|
37
33
|
*/
|
|
38
34
|
export type NavListItemProps<E extends NavListItemElement = "a"> = E extends NavListItemElement ? NavListItemPropsFor<E> : never;
|
|
39
|
-
type NavListItemPropsFor<E extends NavListItemElement> = NavListItemOwnProps & NavListItemElementOwnProps<E> &
|
|
35
|
+
type NavListItemPropsFor<E extends NavListItemElement> = NavListItemOwnProps & NavListItemElementOwnProps<E> & LinkOrButtonProps<E, "dangerouslySetInnerHTML" | keyof NavListItemOwnProps | keyof NavListItemElementOwnProps<E>>;
|
|
40
36
|
/**
|
|
41
37
|
* One item in a `NavList`. Every prop but `children` and `trailing` goes to the link, button or component given in
|
|
42
38
|
* `as`, not the list item around it. A component given in `as` must pass the `className` it is given on to its anchor,
|
|
@@ -4,7 +4,7 @@ import n from "./NavList.module.js";
|
|
|
4
4
|
import { clsx as r } from "clsx";
|
|
5
5
|
import { c as i } from "react/compiler-runtime";
|
|
6
6
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/NavList/NavListItem.tsx
|
|
8
8
|
function c(c) {
|
|
9
9
|
let u = i(15), d, f, p;
|
|
10
10
|
if (u[0] !== c) {
|
|
@@ -53,5 +53,4 @@ function l(e, n, r, i) {
|
|
|
53
53
|
children: r
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
//#endregion
|
|
57
56
|
export { c as NavListItem };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { syncPopover as e } from "../../overlays/syncPopover.js";
|
|
2
|
+
import { Box as t } from "../Box/Box.js";
|
|
3
3
|
import n from "./Overlay.module.js";
|
|
4
4
|
import { clsx as r } from "clsx";
|
|
5
5
|
import { useEffect as i, useRef as a } from "react";
|
|
6
6
|
import { c as o } from "react/compiler-runtime";
|
|
7
7
|
import { jsx as s } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/Overlay/Overlay.tsx
|
|
9
9
|
function c(c) {
|
|
10
10
|
let l = o(24), u, d, f, p, m, h, g, _;
|
|
11
11
|
l[0] === c ? (u = l[1], d = l[2], f = l[3], p = l[4], m = l[5], h = l[6], g = l[7], _ = l[8]) : ({anchorName: u, as: d, className: f, open: p, placement: m, popover: h, style: _, ...g} = c, 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] = _);
|
|
12
12
|
let v = a(null), y, b;
|
|
13
13
|
l[9] === p ? (y = l[10], b = l[11]) : (y = () => {
|
|
14
|
-
let
|
|
15
|
-
if (
|
|
14
|
+
let t = v.current;
|
|
15
|
+
if (t !== null && "showPopover" in t) return e(t, p);
|
|
16
16
|
}, b = [p], l[9] = p, l[10] = y, l[11] = b), i(y, b);
|
|
17
17
|
let x = d, S;
|
|
18
18
|
l[12] === f ? S = l[13] : (S = r(n.overlay, f), l[12] = f, l[13] = S);
|
|
@@ -22,7 +22,7 @@ function c(c) {
|
|
|
22
22
|
positionAnchor: u
|
|
23
23
|
}, l[14] = u, l[15] = _, l[16] = C) : C = l[16];
|
|
24
24
|
let w;
|
|
25
|
-
return l[17] !== m || l[18] !== h || l[19] !== g || l[20] !== x || l[21] !== S || l[22] !== C ? (w = /* @__PURE__ */ s(
|
|
25
|
+
return l[17] !== m || l[18] !== h || l[19] !== g || l[20] !== x || l[21] !== S || l[22] !== C ? (w = /* @__PURE__ */ s(t, {
|
|
26
26
|
...g,
|
|
27
27
|
as: x,
|
|
28
28
|
className: S,
|
|
@@ -32,5 +32,4 @@ function c(c) {
|
|
|
32
32
|
"data-placement": m
|
|
33
33
|
}), l[17] = m, l[18] = h, l[19] = g, l[20] = x, l[21] = S, l[22] = C, l[23] = w) : w = l[23], w;
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { c as Overlay };
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { spaceValue as e } from "../../layout/spaceValue.js";
|
|
2
|
+
import { withCustomProperties as t } from "../../layout/withCustomProperties.js";
|
|
3
|
+
import { Box as n } from "../Box/Box.js";
|
|
4
4
|
import r from "./PageLayout.module.js";
|
|
5
5
|
import { clsx as i } from "clsx";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/PageLayout/PageLayout.tsx
|
|
8
8
|
function o({ as: o, className: s, gap: c = 0, ...l }) {
|
|
9
9
|
let { style: u, ...d } = l;
|
|
10
|
-
return /* @__PURE__ */ a(
|
|
10
|
+
return /* @__PURE__ */ a(n, {
|
|
11
11
|
...d,
|
|
12
12
|
as: o,
|
|
13
13
|
className: i(r.pageLayout, s),
|
|
14
|
-
style:
|
|
14
|
+
style: t({ "--sui-page-layout-gap": e(c) }, u)
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
//#endregion
|
|
18
17
|
export { o as PageLayout };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import './PageLayout.css'
|
|
1
|
+
import './PageLayout.css';// src/components/PageLayout/PageLayout.module.css
|
|
2
2
|
var e = "sui-pageLayout-5SkLH", t = { pageLayout: e };
|
|
3
|
-
//#endregion
|
|
4
3
|
export { t as default, e as pageLayout };
|
|
@@ -3,7 +3,7 @@ import t from "./Popover.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/Popover/Popover.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);
|
|
@@ -17,5 +17,4 @@ function a(a) {
|
|
|
17
17
|
popover: "auto"
|
|
18
18
|
}), o[5] = c, o[6] = l, o[7] = u) : u = o[7], u;
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { a as Popover };
|
|
@@ -2,65 +2,70 @@ import { anchorNameFor as e } from "../../overlays/anchorNameFor.js";
|
|
|
2
2
|
import { mergeProps as t } from "../../overlays/mergeProps.js";
|
|
3
3
|
import { syncPopover as n } from "../../overlays/syncPopover.js";
|
|
4
4
|
import { useEffect as r, useId as i, useRef as a, useState as o } from "react";
|
|
5
|
-
|
|
6
|
-
function s({ defaultOpen: s = !1, initialFocus:
|
|
7
|
-
let
|
|
5
|
+
// src/components/Popover/usePopover.ts
|
|
6
|
+
function s({ defaultOpen: s = !1, initialFocus: d, onOpenChange: f, open: p, placement: m = "bottom" } = {}) {
|
|
7
|
+
let h = i(), [g, _] = o(s), [v, y] = o(0), b = a(null), x = a(!1), S = a(!1), C = p !== void 0, w = p ?? g, T = e(h);
|
|
8
8
|
r(() => {
|
|
9
|
-
let e =
|
|
10
|
-
if (
|
|
11
|
-
}, [
|
|
12
|
-
function T(e) {
|
|
13
|
-
S || g(e), d?.(e);
|
|
14
|
-
}
|
|
9
|
+
let e = b.current;
|
|
10
|
+
if (v !== 0 && w && e !== null && e.isConnected) return n(e, !0);
|
|
11
|
+
}, [w, v]);
|
|
15
12
|
function E(e) {
|
|
16
|
-
|
|
17
|
-
let t = e.currentTarget;
|
|
18
|
-
b.current = t.contains(t.ownerDocument.activeElement) || x.current && l(t.ownerDocument), x.current = !1;
|
|
19
|
-
}
|
|
20
|
-
S && !C && e.newState === "open" && (e.preventDefault(), d?.(!0));
|
|
13
|
+
C || _(e), f?.(e);
|
|
21
14
|
}
|
|
22
15
|
function D(e) {
|
|
16
|
+
if (!c(e)) {
|
|
17
|
+
if (e.newState === "closed") {
|
|
18
|
+
let t = e.currentTarget;
|
|
19
|
+
x.current = t.contains(t.ownerDocument.activeElement) || S.current && u(t.ownerDocument);
|
|
20
|
+
}
|
|
21
|
+
S.current = !1, C && !w && e.newState === "open" && (e.preventDefault(), f?.(!0));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function O(e) {
|
|
25
|
+
if (c(e)) return;
|
|
23
26
|
let t = e.newState === "open";
|
|
24
|
-
t ?
|
|
27
|
+
t ? d?.current?.focus() : x.current && (x.current = !1, l(e.currentTarget)), t !== w && (E(t), C && (b.current = e.currentTarget, y((e) => e + 1)));
|
|
25
28
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
29
|
+
function k() {
|
|
30
|
+
w && (S.current = !0, E(!1));
|
|
28
31
|
}
|
|
29
|
-
let
|
|
30
|
-
anchorName:
|
|
31
|
-
id:
|
|
32
|
-
onBeforeToggle:
|
|
33
|
-
onToggle:
|
|
34
|
-
open:
|
|
35
|
-
placement:
|
|
36
|
-
},
|
|
37
|
-
"aria-controls":
|
|
38
|
-
"aria-expanded":
|
|
39
|
-
popoverTarget:
|
|
40
|
-
style: { anchorName:
|
|
32
|
+
let A = {
|
|
33
|
+
anchorName: T,
|
|
34
|
+
id: h,
|
|
35
|
+
onBeforeToggle: D,
|
|
36
|
+
onToggle: O,
|
|
37
|
+
open: w,
|
|
38
|
+
placement: m
|
|
39
|
+
}, j = {
|
|
40
|
+
"aria-controls": h,
|
|
41
|
+
"aria-expanded": w,
|
|
42
|
+
popoverTarget: h,
|
|
43
|
+
style: { anchorName: T }
|
|
41
44
|
};
|
|
42
|
-
function j(e) {
|
|
43
|
-
return t(e, k);
|
|
44
|
-
}
|
|
45
45
|
function M(e) {
|
|
46
46
|
return t(e, A);
|
|
47
47
|
}
|
|
48
|
+
function N(e) {
|
|
49
|
+
return t(e, j);
|
|
50
|
+
}
|
|
48
51
|
return {
|
|
49
|
-
close:
|
|
50
|
-
getOverlayProps:
|
|
51
|
-
getTriggerProps:
|
|
52
|
-
open:
|
|
52
|
+
close: k,
|
|
53
|
+
getOverlayProps: M,
|
|
54
|
+
getTriggerProps: N,
|
|
55
|
+
open: w
|
|
53
56
|
};
|
|
54
57
|
}
|
|
55
58
|
function c(e) {
|
|
56
|
-
|
|
59
|
+
return e.target !== e.currentTarget;
|
|
57
60
|
}
|
|
58
61
|
function l(e) {
|
|
59
|
-
|
|
62
|
+
(u(e.ownerDocument) || e.contains(e.ownerDocument.activeElement)) && d(e)?.focus();
|
|
60
63
|
}
|
|
61
64
|
function u(e) {
|
|
65
|
+
return e.activeElement === null || e.activeElement === e.body;
|
|
66
|
+
}
|
|
67
|
+
function d(e) {
|
|
62
68
|
let t = e.ownerDocument.querySelectorAll("[popovertarget]");
|
|
63
69
|
return Array.from(t).find((t) => t.getAttribute("popovertarget") === e.id && !e.contains(t)) ?? null;
|
|
64
70
|
}
|
|
65
|
-
//#endregion
|
|
66
71
|
export { s as usePopover };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import t from "./Prose.module.js";
|
|
3
3
|
import { clsx as n } from "clsx";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/Prose/Prose.tsx
|
|
6
6
|
function i({ as: i, className: a, codeOverflow: o = "wrap", size: s = "md", ...c }) {
|
|
7
7
|
return /* @__PURE__ */ r(e, {
|
|
8
8
|
...c,
|
|
@@ -12,5 +12,4 @@ function i({ as: i, className: a, codeOverflow: o = "wrap", size: s = "md", ...c
|
|
|
12
12
|
"data-size": s
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { i as Prose };
|
|
@@ -2,7 +2,7 @@ import { useRadioGroupItem as e } from "../../forms/useRadioGroupItem.js";
|
|
|
2
2
|
import { ChoiceControl as t } from "../ChoiceControl/ChoiceControl.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/Radio/Radio.tsx
|
|
6
6
|
function i(i) {
|
|
7
7
|
let a = n(13), o, s, c, l;
|
|
8
8
|
a[0] === i ? (o = a[1], s = a[2], c = a[3], l = a[4]) : ({children: o, onChange: s, value: l, ...c} = i, a[0] = i, a[1] = o, a[2] = s, a[3] = c, a[4] = l);
|
|
@@ -20,5 +20,4 @@ function i(i) {
|
|
|
20
20
|
children: o
|
|
21
21
|
}), a[8] = o, a[9] = d, a[10] = c, a[11] = l, a[12] = f) : f = a[12], f;
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
export { i as Radio };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { hasContent as e } from "../../forms/hasContent.js";
|
|
2
2
|
import { RadioGroupContext as t } from "../../forms/RadioGroupContext.js";
|
|
3
3
|
import { Box as n } from "../Box/Box.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Fieldset as r } from "../Fieldset/Fieldset.js";
|
|
5
|
+
import { RequiredIndicator as i } from "../RequiredIndicator/RequiredIndicator.js";
|
|
6
6
|
import a from "./RadioGroup.module.js";
|
|
7
7
|
import { useId as o } from "react";
|
|
8
8
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// src/components/RadioGroup/RadioGroup.tsx
|
|
10
10
|
function u({ children: u, defaultValue: d, error: f, label: p, name: m, onValueChange: h, orientation: g = "vertical", required: _ = !1, value: v, ...y }) {
|
|
11
11
|
let b = o(), x = e(f);
|
|
12
12
|
return /* @__PURE__ */ c(t.Provider, {
|
|
@@ -18,10 +18,10 @@ function u({ children: u, defaultValue: d, error: f, label: p, name: m, onValueC
|
|
|
18
18
|
required: _,
|
|
19
19
|
value: v
|
|
20
20
|
},
|
|
21
|
-
children: /* @__PURE__ */ c(
|
|
21
|
+
children: /* @__PURE__ */ c(r, {
|
|
22
22
|
...y,
|
|
23
23
|
error: f,
|
|
24
|
-
label: _ ? /* @__PURE__ */ l(s, { children: [p, /* @__PURE__ */ c(
|
|
24
|
+
label: _ ? /* @__PURE__ */ l(s, { children: [p, /* @__PURE__ */ c(i, {})] }) : p,
|
|
25
25
|
role: "radiogroup",
|
|
26
26
|
"aria-invalid": x ? !0 : void 0,
|
|
27
27
|
"aria-required": _ ? !0 : void 0,
|
|
@@ -33,5 +33,4 @@ function u({ children: u, defaultValue: d, error: f, label: p, name: m, onValueC
|
|
|
33
33
|
})
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
//#endregion
|
|
37
36
|
export { u as RadioGroup };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import './RadioGroup.css'
|
|
1
|
+
import './RadioGroup.css';// src/components/RadioGroup/RadioGroup.module.css
|
|
2
2
|
var e = "sui-radioGroup-pO2pz", t = { radioGroup: e };
|
|
3
|
-
//#endregion
|
|
4
3
|
export { t as default, e as radioGroup };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import t from "./RequiredIndicator.module.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/RequiredIndicator/RequiredIndicator.tsx
|
|
6
6
|
function i() {
|
|
7
7
|
let i = n(1), a;
|
|
8
8
|
return i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ r(e, {
|
|
@@ -12,5 +12,4 @@ function i() {
|
|
|
12
12
|
children: "*"
|
|
13
13
|
}), i[0] = a) : a = i[0], a;
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { i as RequiredIndicator };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import './RequiredIndicator.css'
|
|
1
|
+
import './RequiredIndicator.css';// src/components/RequiredIndicator/RequiredIndicator.module.css
|
|
2
2
|
var e = "sui-requiredIndicator-11-gH", t = { requiredIndicator: e };
|
|
3
|
-
//#endregion
|
|
4
3
|
export { t as default, e as requiredIndicator };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HorizontalFlow as e } from "../HorizontalFlow/HorizontalFlow.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/Row/Row.tsx
|
|
4
4
|
function n({ align: n = "center", gap: r = 2, justify: i = "start", ...a }) {
|
|
5
5
|
return /* @__PURE__ */ t(e, {
|
|
6
6
|
...a,
|
|
@@ -10,5 +10,4 @@ function n({ align: n = "center", gap: r = 2, justify: i = "start", ...a }) {
|
|
|
10
10
|
wrap: !1
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { n as Row };
|
|
@@ -4,7 +4,7 @@ import n from "./SegmentedControl.module.js";
|
|
|
4
4
|
import { clsx as r } from "clsx";
|
|
5
5
|
import { c as i } from "react/compiler-runtime";
|
|
6
6
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/SegmentedControl/Segment.tsx
|
|
8
8
|
function s(s) {
|
|
9
9
|
let c = i(23), l, u, d, f, p, m;
|
|
10
10
|
c[0] === s ? (l = c[1], u = c[2], d = c[3], f = c[4], p = c[5], m = c[6]) : ({children: l, className: u, onChange: d, style: p, value: m, ...f} = s, c[0] = s, c[1] = l, c[2] = u, c[3] = d, c[4] = f, c[5] = p, c[6] = m);
|
|
@@ -38,5 +38,4 @@ function s(s) {
|
|
|
38
38
|
children: [v, y]
|
|
39
39
|
}), c[18] = p, c[19] = _, c[20] = v, c[21] = y, c[22] = b) : b = c[22], b;
|
|
40
40
|
}
|
|
41
|
-
//#endregion
|
|
42
41
|
export { s as Segment };
|
|
@@ -3,7 +3,7 @@ import { RadioGroup as t } from "../RadioGroup/RadioGroup.js";
|
|
|
3
3
|
import n from "./SegmentedControl.module.js";
|
|
4
4
|
import { clsx as r } from "clsx";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
7
7
|
function a({ children: a, className: o, size: s = "md", ...c }) {
|
|
8
8
|
return /* @__PURE__ */ i(t, {
|
|
9
9
|
...c,
|
|
@@ -16,5 +16,4 @@ function a({ children: a, className: o, size: s = "md", ...c }) {
|
|
|
16
16
|
})
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { a as SegmentedControl };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './SegmentedControl.css'
|
|
1
|
+
import './SegmentedControl.css';// src/components/SegmentedControl/SegmentedControl.module.css
|
|
2
2
|
var e = "sui-track-wz5iS", t = "sui-segmentedControl-ocGwO", n = "sui-segment-cu-EL", r = "sui-input-IEP3u", i = "sui-text-5WlQL", a = {
|
|
3
3
|
track: e,
|
|
4
4
|
segmentedControl: t,
|
|
@@ -6,5 +6,4 @@ var e = "sui-track-wz5iS", t = "sui-segmentedControl-ocGwO", n = "sui-segment-cu
|
|
|
6
6
|
input: r,
|
|
7
7
|
text: i
|
|
8
8
|
};
|
|
9
|
-
//#endregion
|
|
10
9
|
export { a as default, r as input, n as segment, t as segmentedControl, i as text, e as track };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TextControl as e } from "../TextControl/TextControl.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/Select/Select.tsx
|
|
4
4
|
function n({ size: n = "md", ...r }) {
|
|
5
5
|
return /* @__PURE__ */ t(e, {
|
|
6
6
|
...r,
|
|
@@ -8,5 +8,4 @@ function n({ size: n = "md", ...r }) {
|
|
|
8
8
|
size: n
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { n as Select };
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { spaceValue as e } from "../../layout/spaceValue.js";
|
|
2
|
+
import { withCustomProperties as t } from "../../layout/withCustomProperties.js";
|
|
3
|
+
import { Box as n } from "../Box/Box.js";
|
|
4
4
|
import r from "./Sidebar.module.js";
|
|
5
5
|
import { clsx as i } from "clsx";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/Sidebar/Sidebar.tsx
|
|
8
8
|
function o({ align: o = "stretch", as: s, className: c, contentMinimumWidth: l = "50%", gap: u = 4, side: d = "end", sideWidth: f, ...p }) {
|
|
9
9
|
let { style: m, ...h } = p;
|
|
10
|
-
return /* @__PURE__ */ a(
|
|
10
|
+
return /* @__PURE__ */ a(n, {
|
|
11
11
|
...h,
|
|
12
12
|
as: s,
|
|
13
13
|
className: i(r.sidebar, c),
|
|
14
|
-
style:
|
|
14
|
+
style: t({
|
|
15
15
|
"--sui-sidebar-content-minimum-width": l,
|
|
16
|
-
"--sui-sidebar-gap":
|
|
16
|
+
"--sui-sidebar-gap": e(u),
|
|
17
17
|
"--sui-sidebar-side-width": f ?? "auto"
|
|
18
18
|
}, m),
|
|
19
19
|
"data-align": o,
|
|
20
20
|
"data-side": d
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
export { o as Sidebar };
|
|
@@ -3,7 +3,7 @@ import t from "./SkipLink.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/SkipLink/SkipLink.tsx
|
|
7
7
|
function a(a) {
|
|
8
8
|
let o = r(10), s, c, l;
|
|
9
9
|
o[0] === a ? (s = o[1], c = o[2], l = o[3]) : ({children: s, className: c, ...l} = a, o[0] = a, o[1] = s, o[2] = c, o[3] = l);
|
|
@@ -17,5 +17,4 @@ function a(a) {
|
|
|
17
17
|
children: s
|
|
18
18
|
}), o[6] = s, o[7] = l, o[8] = u, o[9] = d) : d = o[9], d;
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { a as SkipLink };
|
|
@@ -3,7 +3,7 @@ import t from "./Spinner.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/Spinner/Spinner.tsx
|
|
7
7
|
function a(a) {
|
|
8
8
|
let o = r(5), { className: s } = a, c;
|
|
9
9
|
o[0] === s ? c = o[1] : (c = n(t.spinner, s), o[0] = s, o[1] = c);
|
|
@@ -29,5 +29,4 @@ function a(a) {
|
|
|
29
29
|
children: l
|
|
30
30
|
}), o[3] = c, o[4] = u), u;
|
|
31
31
|
}
|
|
32
|
-
//#endregion
|
|
33
32
|
export { a as Spinner };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import './Spinner.css'
|
|
1
|
+
import './Spinner.css';// src/components/Spinner/Spinner.module.css
|
|
2
2
|
var e = "sui-spinner-GpFZS", t = "sui-rotate-RRVpi", n = "sui-pulse-ZOhFR", r = {
|
|
3
3
|
spinner: e,
|
|
4
4
|
rotate: t,
|
|
5
5
|
pulse: n
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { r as default, n as pulse, t as rotate, e as spinner };
|
|
@@ -1,21 +1,20 @@
|
|
|
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 "./Stack.module.js";
|
|
6
6
|
import { clsx as a } from "clsx";
|
|
7
7
|
import { jsx as o } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/Stack/Stack.tsx
|
|
9
9
|
function s({ align: s = "stretch", as: c, className: l, gap: u = 4, ...d }) {
|
|
10
10
|
let { role: f, style: p, ...m } = d, h = c ?? "div";
|
|
11
|
-
return /* @__PURE__ */ o(
|
|
11
|
+
return /* @__PURE__ */ o(r, {
|
|
12
12
|
...m,
|
|
13
13
|
as: h,
|
|
14
14
|
className: a(i.stack, l),
|
|
15
|
-
role:
|
|
16
|
-
style:
|
|
15
|
+
role: e(h, f),
|
|
16
|
+
style: n({ "--sui-stack-gap": t(u) }, p),
|
|
17
17
|
"data-align": s
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { s as Stack };
|
|
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
|
|
|
2
2
|
import t from "./StatusDot.module.js";
|
|
3
3
|
import { clsx as n } from "clsx";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/StatusDot/StatusDot.tsx
|
|
6
6
|
function i({ className: i, label: a, size: o = "md", tone: s = "neutral", variant: c = "solid", ...l }) {
|
|
7
7
|
let u = !a;
|
|
8
8
|
return /* @__PURE__ */ r(e, {
|
|
@@ -17,5 +17,4 @@ function i({ className: i, label: a, size: o = "md", tone: s = "neutral", varian
|
|
|
17
17
|
"data-variant": c
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { i as StatusDot };
|