@krelborn/stylesui 0.0.0-stage → 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/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 +5 -0
- package/dist/accessibility/index.d.ts +2 -0
- package/dist/collections/index.d.ts +7 -0
- package/dist/collections/optionId.d.ts +8 -0
- package/dist/collections/optionId.js +6 -0
- package/dist/collections/renderedOptions.d.ts +37 -0
- package/dist/collections/renderedOptions.js +17 -0
- package/dist/collections/targetIndexForKey.d.ts +45 -0
- package/dist/collections/targetIndexForKey.js +16 -0
- package/dist/collections/typeAhead.d.ts +43 -0
- package/dist/collections/typeAhead.js +18 -0
- 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.css +1 -0
- package/dist/components/Alert/Alert.d.ts +47 -0
- package/dist/components/Alert/Alert.js +27 -0
- package/dist/components/Alert/Alert.module.js +8 -0
- package/dist/components/Alert/AlertIcon.d.ts +14 -0
- package/dist/components/Alert/AlertIcon.js +42 -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 +26 -0
- package/dist/components/Avatar/Avatar.module.js +6 -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 +9 -0
- package/dist/components/AvatarGroup/AvatarGroup.css +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +30 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +33 -0
- package/dist/components/AvatarGroup/AvatarGroup.module.js +6 -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 +15 -0
- package/dist/components/Badge/Badge.module.js +3 -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 +17 -0
- package/dist/components/Box/Box.module.js +3 -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 +24 -0
- package/dist/components/Button/Button.module.js +6 -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 +14 -0
- package/dist/components/Card/Card.module.js +3 -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 +19 -0
- package/dist/components/Center/Center.module.js +3 -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 +12 -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 +39 -0
- package/dist/components/ChoiceControl/ChoiceControl.module.js +8 -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 +13 -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 +19 -0
- package/dist/components/Code/Code.module.js +3 -0
- package/dist/components/Code/index.d.ts +2 -0
- 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.css +1 -0
- package/dist/components/Counter/Counter.d.ts +39 -0
- package/dist/components/Counter/Counter.js +18 -0
- package/dist/components/Counter/Counter.module.js +3 -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 +29 -0
- package/dist/components/Cover/Cover.module.js +6 -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 +15 -0
- package/dist/components/Divider/Divider.module.js +3 -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 +49 -0
- package/dist/components/Field/Field.module.js +8 -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 +64 -0
- package/dist/components/Fieldset/Fieldset.module.js +8 -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 +16 -0
- package/dist/components/Frame/Frame.module.js +3 -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 +22 -0
- package/dist/components/Grid/Grid.module.js +3 -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 +23 -0
- package/dist/components/Heading/Heading.module.js +3 -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 +30 -0
- package/dist/components/HorizontalFlow/HorizontalFlow.module.js +3 -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 +21 -0
- package/dist/components/Icon/CheckIcon.d.ts +11 -0
- package/dist/components/Icon/CheckIcon.js +18 -0
- package/dist/components/Icon/ChevronDownIcon.d.ts +11 -0
- package/dist/components/Icon/ChevronDownIcon.js +18 -0
- package/dist/components/Icon/ChevronRightIcon.d.ts +11 -0
- package/dist/components/Icon/ChevronRightIcon.js +19 -0
- package/dist/components/Icon/CloseIcon.d.ts +12 -0
- package/dist/components/Icon/CloseIcon.js +21 -0
- package/dist/components/Icon/ColorModeIcon.d.ts +12 -0
- package/dist/components/Icon/ColorModeIcon.js +36 -0
- package/dist/components/Icon/DeleteIcon.d.ts +11 -0
- package/dist/components/Icon/DeleteIcon.js +36 -0
- package/dist/components/Icon/Icon.css +1 -0
- package/dist/components/Icon/Icon.d.ts +40 -0
- package/dist/components/Icon/Icon.js +27 -0
- package/dist/components/Icon/Icon.module.js +6 -0
- package/dist/components/Icon/InfoIcon.d.ts +11 -0
- package/dist/components/Icon/InfoIcon.js +30 -0
- package/dist/components/Icon/MenuIcon.d.ts +12 -0
- package/dist/components/Icon/MenuIcon.js +28 -0
- package/dist/components/Icon/MoreHorizontalIcon.d.ts +11 -0
- package/dist/components/Icon/MoreHorizontalIcon.js +34 -0
- package/dist/components/Icon/MoreVerticalIcon.d.ts +11 -0
- package/dist/components/Icon/MoreVerticalIcon.js +34 -0
- package/dist/components/Icon/PaletteIcon.d.ts +12 -0
- package/dist/components/Icon/PaletteIcon.js +48 -0
- package/dist/components/Icon/RefreshIcon.d.ts +13 -0
- package/dist/components/Icon/RefreshIcon.js +32 -0
- package/dist/components/Icon/RemoveIcon.d.ts +11 -0
- package/dist/components/Icon/RemoveIcon.js +18 -0
- package/dist/components/Icon/SendIcon.d.ts +11 -0
- package/dist/components/Icon/SendIcon.js +22 -0
- package/dist/components/Icon/index.d.ts +16 -0
- package/dist/components/IconButton/IconButton.css +1 -0
- package/dist/components/IconButton/IconButton.d.ts +45 -0
- package/dist/components/IconButton/IconButton.js +40 -0
- package/dist/components/IconButton/IconButton.module.js +7 -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 +19 -0
- package/dist/components/Kbd/Kbd.module.js +3 -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 +26 -0
- package/dist/components/Link/Link.module.js +3 -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 +55 -0
- package/dist/components/Listbox/Listbox.module.js +6 -0
- package/dist/components/Listbox/ListboxContext.d.ts +38 -0
- package/dist/components/Listbox/ListboxContext.js +4 -0
- package/dist/components/Listbox/ListboxOption.d.ts +31 -0
- package/dist/components/Listbox/ListboxOption.js +42 -0
- package/dist/components/Listbox/index.d.ts +4 -0
- package/dist/components/Listbox/useListbox.d.ts +54 -0
- package/dist/components/Listbox/useListbox.js +103 -0
- package/dist/components/Listbox/useListboxContext.d.ts +9 -0
- package/dist/components/Listbox/useListboxContext.js +10 -0
- 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.css +1 -0
- package/dist/components/NavList/NavList.d.ts +20 -0
- package/dist/components/NavList/NavList.js +27 -0
- package/dist/components/NavList/NavList.module.js +11 -0
- package/dist/components/NavList/NavListGroup.d.ts +25 -0
- package/dist/components/NavList/NavListGroup.js +39 -0
- package/dist/components/NavList/NavListItem.d.ts +49 -0
- package/dist/components/NavList/NavListItem.js +56 -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 +35 -0
- package/dist/components/Overlay/Overlay.module.js +3 -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 +17 -0
- package/dist/components/PageLayout/PageLayout.module.js +3 -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 +20 -0
- package/dist/components/Popover/Popover.module.js +3 -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 +71 -0
- package/dist/components/Prose/Prose.css +1 -0
- package/dist/components/Prose/Prose.d.ts +50 -0
- package/dist/components/Prose/Prose.js +15 -0
- package/dist/components/Prose/Prose.module.js +3 -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 +23 -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 +36 -0
- package/dist/components/RadioGroup/RadioGroup.module.js +3 -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 +15 -0
- package/dist/components/RequiredIndicator/RequiredIndicator.module.js +3 -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 +13 -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 +41 -0
- package/dist/components/SegmentedControl/SegmentedControl.css +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +25 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +19 -0
- package/dist/components/SegmentedControl/SegmentedControl.module.js +9 -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 +11 -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 +23 -0
- package/dist/components/Sidebar/Sidebar.module.js +3 -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 +20 -0
- package/dist/components/SkipLink/SkipLink.module.js +3 -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 +32 -0
- package/dist/components/Spinner/Spinner.module.js +7 -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 +20 -0
- package/dist/components/Stack/Stack.module.js +3 -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 +20 -0
- package/dist/components/StatusDot/StatusDot.module.js +3 -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 +12 -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 +22 -0
- package/dist/components/Switcher/Switcher.module.js +3 -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 +60 -0
- package/dist/components/Tabs/TabList.d.ts +16 -0
- package/dist/components/Tabs/TabList.js +22 -0
- package/dist/components/Tabs/TabPanel.d.ts +24 -0
- package/dist/components/Tabs/TabPanel.js +21 -0
- package/dist/components/Tabs/Tabs.css +1 -0
- package/dist/components/Tabs/Tabs.d.ts +81 -0
- package/dist/components/Tabs/Tabs.js +30 -0
- package/dist/components/Tabs/Tabs.module.js +8 -0
- package/dist/components/Tabs/TabsContext.d.ts +39 -0
- package/dist/components/Tabs/TabsContext.js +4 -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 +9 -0
- package/dist/components/Tabs/useTabsContext.d.ts +9 -0
- package/dist/components/Tabs/useTabsContext.js +10 -0
- package/dist/components/Text/Text.css +1 -0
- package/dist/components/Text/Text.d.ts +40 -0
- package/dist/components/Text/Text.js +16 -0
- package/dist/components/Text/Text.module.js +3 -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 +27 -0
- package/dist/components/TextControl/TextControl.module.js +3 -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 +12 -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 +11 -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 +17 -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 +21 -0
- package/dist/components/Tooltip/Tooltip.module.js +3 -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 +16 -0
- package/dist/components/Tooltip/useTooltip.d.ts +119 -0
- package/dist/components/Tooltip/useTooltip.js +73 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.css +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +14 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +19 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.module.js +3 -0
- package/dist/components/VisuallyHidden/index.d.ts +2 -0
- package/dist/errors/MissingContextError.d.ts +11 -0
- package/dist/errors/MissingContextError.js +8 -0
- package/dist/errors/PopoverRefusedError.d.ts +12 -0
- package/dist/errors/PopoverRefusedError.js +8 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/forms/ControlSize.d.ts +4 -0
- package/dist/forms/FieldContext.d.ts +34 -0
- package/dist/forms/FieldContext.js +4 -0
- package/dist/forms/RadioGroupContext.d.ts +34 -0
- package/dist/forms/RadioGroupContext.js +4 -0
- package/dist/forms/hasContent.d.ts +10 -0
- package/dist/forms/hasContent.js +6 -0
- package/dist/forms/index.d.ts +8 -0
- package/dist/forms/useFieldControl.d.ts +36 -0
- package/dist/forms/useFieldControl.js +28 -0
- package/dist/forms/useRadioGroupItem.d.ts +50 -0
- package/dist/forms/useRadioGroupItem.js +26 -0
- package/dist/index.d.ts +107 -0
- package/dist/index.js +92 -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 +5 -0
- package/dist/layout/spaceValue.d.ts +8 -0
- package/dist/layout/spaceValue.js +5 -0
- package/dist/layout/withCustomProperties.d.ts +9 -0
- package/dist/layout/withCustomProperties.js +8 -0
- 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/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 +5 -0
- package/dist/overlays/index.d.ts +6 -0
- package/dist/overlays/mergeProps.d.ts +13 -0
- package/dist/overlays/mergeProps.js +29 -0
- package/dist/overlays/syncPopover.d.ts +11 -0
- package/dist/overlays/syncPopover.js +24 -0
- package/dist/overlays/useOverlay.d.ts +71 -0
- package/dist/overlays/useOverlay.js +49 -0
- package/dist/styles.css +1 -0
- package/fonts/playful.css +3 -0
- package/package.json +103 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export { Accordion, AccordionItem } from "./components/Accordion";
|
|
2
|
+
export type { AccordionIndicator, AccordionItemProps, AccordionProps, AccordionVariant } from "./components/Accordion";
|
|
3
|
+
export { Alert } from "./components/Alert";
|
|
4
|
+
export type { AlertProps, AlertTone } from "./components/Alert";
|
|
5
|
+
export { Avatar } from "./components/Avatar";
|
|
6
|
+
export type { AvatarProps, AvatarSize } from "./components/Avatar";
|
|
7
|
+
export { AvatarGroup } from "./components/AvatarGroup";
|
|
8
|
+
export type { AvatarGroupProps } from "./components/AvatarGroup";
|
|
9
|
+
export { Badge } from "./components/Badge";
|
|
10
|
+
export type { BadgeElement, BadgeProps, BadgeTone, BadgeVariant } from "./components/Badge";
|
|
11
|
+
export { Box } from "./components/Box";
|
|
12
|
+
export type { BoxElement, BoxProps, PolymorphicProps } from "./components/Box";
|
|
13
|
+
export { Button } from "./components/Button";
|
|
14
|
+
export type { ButtonProps, ButtonSize, ButtonVariant } from "./components/Button";
|
|
15
|
+
export { Card } from "./components/Card";
|
|
16
|
+
export type { CardPadding, CardProps } from "./components/Card";
|
|
17
|
+
export { Center } from "./components/Center";
|
|
18
|
+
export type { CenterProps, CenterWidth } from "./components/Center";
|
|
19
|
+
export { Checkbox } from "./components/Checkbox";
|
|
20
|
+
export type { CheckboxProps } from "./components/Checkbox";
|
|
21
|
+
export { Cluster } from "./components/Cluster";
|
|
22
|
+
export type { ClusterProps } from "./components/Cluster";
|
|
23
|
+
export { Code } from "./components/Code";
|
|
24
|
+
export type { CodeProps } from "./components/Code";
|
|
25
|
+
export { Autocomplete, Combobox, ComboboxOption } from "./components/Combobox";
|
|
26
|
+
export type { AutocompleteProps, ComboboxOptionProps, ComboboxProps } from "./components/Combobox";
|
|
27
|
+
export { useContextMenu } from "./components/ContextMenu";
|
|
28
|
+
export type { UseContextMenuOptions, UseContextMenuResult } from "./components/ContextMenu";
|
|
29
|
+
export { Counter } from "./components/Counter";
|
|
30
|
+
export type { CounterProps } from "./components/Counter";
|
|
31
|
+
export { Cover } from "./components/Cover";
|
|
32
|
+
export type { CoverProps } from "./components/Cover";
|
|
33
|
+
export { Divider } from "./components/Divider";
|
|
34
|
+
export type { DividerOrientation, DividerProps } from "./components/Divider";
|
|
35
|
+
export { Field } from "./components/Field";
|
|
36
|
+
export type { FieldElement, FieldProps } from "./components/Field";
|
|
37
|
+
export { Fieldset } from "./components/Fieldset";
|
|
38
|
+
export type { FieldsetProps } from "./components/Fieldset";
|
|
39
|
+
export { Frame } from "./components/Frame";
|
|
40
|
+
export type { FrameProps } from "./components/Frame";
|
|
41
|
+
export { Grid } from "./components/Grid";
|
|
42
|
+
export type { GridProps } from "./components/Grid";
|
|
43
|
+
export { Heading } from "./components/Heading";
|
|
44
|
+
export type { HeadingLevel, HeadingProps, HeadingSize } from "./components/Heading";
|
|
45
|
+
export { AddIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, CloseIcon, ColorModeIcon, DeleteIcon, InfoIcon, MenuIcon, MoreHorizontalIcon, MoreVerticalIcon, PaletteIcon, RefreshIcon, RemoveIcon, SendIcon, } from "./components/Icon";
|
|
46
|
+
export type { IconProps } from "./components/Icon";
|
|
47
|
+
export { IconButton } from "./components/IconButton";
|
|
48
|
+
export type { IconButtonProps } from "./components/IconButton";
|
|
49
|
+
export { Kbd } from "./components/Kbd";
|
|
50
|
+
export type { KbdProps } from "./components/Kbd";
|
|
51
|
+
export { Link } from "./components/Link";
|
|
52
|
+
export type { LinkElement, LinkProps, LinkTone, LinkUnderline } from "./components/Link";
|
|
53
|
+
export { Listbox, ListboxOption } from "./components/Listbox";
|
|
54
|
+
export type { ListboxOptionProps, ListboxProps } from "./components/Listbox";
|
|
55
|
+
export { Menu, MenuGroup, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuRadioGroup, MenuSeparator, Submenu, useMenu, } from "./components/Menu";
|
|
56
|
+
export type { MenuDensity, MenuGroupProps, MenuItemCheckboxProps, MenuItemElement, MenuItemProps, MenuItemRadioProps, MenuOverlayProps, MenuProps, MenuRadioGroupProps, MenuSeparatorProps, SubmenuProps, UseMenuOptions, UseMenuResult, } from "./components/Menu";
|
|
57
|
+
export { Menubar, MenubarMenu } from "./components/Menubar";
|
|
58
|
+
export type { MenubarMenuProps, MenubarProps } from "./components/Menubar";
|
|
59
|
+
export { NavBar, NavBarItem, NavBarMenu, NavBarMenuGroup, NavBarMenuItem } from "./components/NavBar";
|
|
60
|
+
export type { NavBarCollapse, NavBarItemProps, NavBarMenuGroupProps, NavBarMenuItemProps, NavBarMenuProps, NavBarProps, } from "./components/NavBar";
|
|
61
|
+
export { NavList, NavListGroup, NavListItem } from "./components/NavList";
|
|
62
|
+
export type { NavListGroupProps, NavListItemElement, NavListItemProps, NavListProps } from "./components/NavList";
|
|
63
|
+
export { PageLayout } from "./components/PageLayout";
|
|
64
|
+
export type { PageLayoutProps } from "./components/PageLayout";
|
|
65
|
+
export { Popover, usePopover } from "./components/Popover";
|
|
66
|
+
export type { PopoverProps, UsePopoverOptions, UsePopoverResult } from "./components/Popover";
|
|
67
|
+
export { Prose } from "./components/Prose";
|
|
68
|
+
export type { ProseCodeOverflow, ProseProps, ProseSize } from "./components/Prose";
|
|
69
|
+
export { Radio } from "./components/Radio";
|
|
70
|
+
export type { RadioProps } from "./components/Radio";
|
|
71
|
+
export { RadioGroup } from "./components/RadioGroup";
|
|
72
|
+
export type { RadioGroupOrientation, RadioGroupProps } from "./components/RadioGroup";
|
|
73
|
+
export { Row } from "./components/Row";
|
|
74
|
+
export type { RowProps } from "./components/Row";
|
|
75
|
+
export { Segment, SegmentedControl } from "./components/SegmentedControl";
|
|
76
|
+
export type { SegmentedControlProps, SegmentProps } from "./components/SegmentedControl";
|
|
77
|
+
export { Select } from "./components/Select";
|
|
78
|
+
export type { SelectProps } from "./components/Select";
|
|
79
|
+
export { Sidebar } from "./components/Sidebar";
|
|
80
|
+
export type { SidebarProps } from "./components/Sidebar";
|
|
81
|
+
export { SkipLink } from "./components/SkipLink";
|
|
82
|
+
export type { SkipLinkProps } from "./components/SkipLink";
|
|
83
|
+
export { Stack } from "./components/Stack";
|
|
84
|
+
export type { StackProps } from "./components/Stack";
|
|
85
|
+
export { StatusDot } from "./components/StatusDot";
|
|
86
|
+
export type { StatusDotProps, StatusDotSize, StatusDotVariant } from "./components/StatusDot";
|
|
87
|
+
export { Switch } from "./components/Switch";
|
|
88
|
+
export type { SwitchProps } from "./components/Switch";
|
|
89
|
+
export { Switcher } from "./components/Switcher";
|
|
90
|
+
export type { SwitcherProps } from "./components/Switcher";
|
|
91
|
+
export { Tab, TabList, TabPanel, Tabs } from "./components/Tabs";
|
|
92
|
+
export type { TabListProps, TabPanelProps, TabProps, TabsActivation, TabsOrientation, TabsProps, TabsVariant, } from "./components/Tabs";
|
|
93
|
+
export { Text } from "./components/Text";
|
|
94
|
+
export type { TextProps, TextSize, TextTone, TextWeight } from "./components/Text";
|
|
95
|
+
export { Textarea } from "./components/Textarea";
|
|
96
|
+
export type { TextareaProps } from "./components/Textarea";
|
|
97
|
+
export { TextInput } from "./components/TextInput";
|
|
98
|
+
export type { TextInputProps, TextInputType } from "./components/TextInput";
|
|
99
|
+
export { Theme } from "./components/Theme";
|
|
100
|
+
export type { PaletteName, ThemeMode, ThemeName, ThemeProps } from "./components/Theme";
|
|
101
|
+
export { Tooltip, useTooltip } from "./components/Tooltip";
|
|
102
|
+
export type { TooltipProps, TooltipRelationship, UseTooltipOptions, UseTooltipResult } from "./components/Tooltip";
|
|
103
|
+
export { VisuallyHidden } from "./components/VisuallyHidden";
|
|
104
|
+
export type { VisuallyHiddenProps } from "./components/VisuallyHidden";
|
|
105
|
+
export type { ControlSize } from "./forms";
|
|
106
|
+
export type { Alignment, Justification, Space } from "./layout";
|
|
107
|
+
export type { OverlayDelay, OverlayPlacement } from "./overlays";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Accordion as e } from "./components/Accordion/Accordion.js";
|
|
2
|
+
import { AccordionItem as t } from "./components/Accordion/AccordionItem.js";
|
|
3
|
+
import { Alert as n } from "./components/Alert/Alert.js";
|
|
4
|
+
import { Avatar as r } from "./components/Avatar/Avatar.js";
|
|
5
|
+
import { AvatarGroup as i } from "./components/AvatarGroup/AvatarGroup.js";
|
|
6
|
+
import { Badge as a } from "./components/Badge/Badge.js";
|
|
7
|
+
import { Box as o } from "./components/Box/Box.js";
|
|
8
|
+
import { Button as s } from "./components/Button/Button.js";
|
|
9
|
+
import { Card as c } from "./components/Card/Card.js";
|
|
10
|
+
import { Center as l } from "./components/Center/Center.js";
|
|
11
|
+
import { Checkbox as u } from "./components/Checkbox/Checkbox.js";
|
|
12
|
+
import { Cluster as d } from "./components/Cluster/Cluster.js";
|
|
13
|
+
import { Code as f } from "./components/Code/Code.js";
|
|
14
|
+
import { Autocomplete as p } from "./components/Combobox/Autocomplete.js";
|
|
15
|
+
import { Combobox as m } from "./components/Combobox/Combobox.js";
|
|
16
|
+
import { ComboboxOption as h } from "./components/Combobox/ComboboxOption.js";
|
|
17
|
+
import { useContextMenu as g } from "./components/ContextMenu/useContextMenu.js";
|
|
18
|
+
import { Counter as _ } from "./components/Counter/Counter.js";
|
|
19
|
+
import { Cover as v } from "./components/Cover/Cover.js";
|
|
20
|
+
import { Divider as y } from "./components/Divider/Divider.js";
|
|
21
|
+
import { Field as b } from "./components/Field/Field.js";
|
|
22
|
+
import { Fieldset as x } from "./components/Fieldset/Fieldset.js";
|
|
23
|
+
import { Frame as S } from "./components/Frame/Frame.js";
|
|
24
|
+
import { Grid as C } from "./components/Grid/Grid.js";
|
|
25
|
+
import { Heading as w } from "./components/Heading/Heading.js";
|
|
26
|
+
import { AddIcon as T } from "./components/Icon/AddIcon.js";
|
|
27
|
+
import { CheckIcon as E } from "./components/Icon/CheckIcon.js";
|
|
28
|
+
import { ChevronDownIcon as D } from "./components/Icon/ChevronDownIcon.js";
|
|
29
|
+
import { ChevronRightIcon as O } from "./components/Icon/ChevronRightIcon.js";
|
|
30
|
+
import { CloseIcon as k } from "./components/Icon/CloseIcon.js";
|
|
31
|
+
import { ColorModeIcon as A } from "./components/Icon/ColorModeIcon.js";
|
|
32
|
+
import { DeleteIcon as j } from "./components/Icon/DeleteIcon.js";
|
|
33
|
+
import { InfoIcon as M } from "./components/Icon/InfoIcon.js";
|
|
34
|
+
import { MenuIcon as N } from "./components/Icon/MenuIcon.js";
|
|
35
|
+
import { MoreHorizontalIcon as P } from "./components/Icon/MoreHorizontalIcon.js";
|
|
36
|
+
import { MoreVerticalIcon as F } from "./components/Icon/MoreVerticalIcon.js";
|
|
37
|
+
import { PaletteIcon as I } from "./components/Icon/PaletteIcon.js";
|
|
38
|
+
import { RefreshIcon as L } from "./components/Icon/RefreshIcon.js";
|
|
39
|
+
import { RemoveIcon as R } from "./components/Icon/RemoveIcon.js";
|
|
40
|
+
import { SendIcon as z } from "./components/Icon/SendIcon.js";
|
|
41
|
+
import { IconButton as B } from "./components/IconButton/IconButton.js";
|
|
42
|
+
import { Kbd as V } from "./components/Kbd/Kbd.js";
|
|
43
|
+
import { Link as H } from "./components/Link/Link.js";
|
|
44
|
+
import { Listbox as U } from "./components/Listbox/Listbox.js";
|
|
45
|
+
import { ListboxOption as W } from "./components/Listbox/ListboxOption.js";
|
|
46
|
+
import { Menu as G } from "./components/Menu/Menu.js";
|
|
47
|
+
import { MenuGroup as K } from "./components/Menu/MenuGroup.js";
|
|
48
|
+
import { MenuItem as q } from "./components/Menu/MenuItem.js";
|
|
49
|
+
import { MenuItemCheckbox as J } from "./components/Menu/MenuItemCheckbox.js";
|
|
50
|
+
import { MenuItemRadio as Y } from "./components/Menu/MenuItemRadio.js";
|
|
51
|
+
import { MenuRadioGroup as X } from "./components/Menu/MenuRadioGroup.js";
|
|
52
|
+
import { MenuSeparator as Z } from "./components/Menu/MenuSeparator.js";
|
|
53
|
+
import { Submenu as Q } from "./components/Menu/Submenu.js";
|
|
54
|
+
import { useMenu as $ } from "./components/Menu/useMenu.js";
|
|
55
|
+
import { Menubar as ee } from "./components/Menubar/Menubar.js";
|
|
56
|
+
import { MenubarMenu as te } from "./components/Menubar/MenubarMenu.js";
|
|
57
|
+
import { NavBar as ne } from "./components/NavBar/NavBar.js";
|
|
58
|
+
import { NavBarItem as re } from "./components/NavBar/NavBarItem.js";
|
|
59
|
+
import { NavBarMenu as ie } from "./components/NavBar/NavBarMenu.js";
|
|
60
|
+
import { NavBarMenuGroup as ae } from "./components/NavBar/NavBarMenuGroup.js";
|
|
61
|
+
import { NavBarMenuItem as oe } from "./components/NavBar/NavBarMenuItem.js";
|
|
62
|
+
import { NavList as se } from "./components/NavList/NavList.js";
|
|
63
|
+
import { NavListGroup as ce } from "./components/NavList/NavListGroup.js";
|
|
64
|
+
import { NavListItem as le } from "./components/NavList/NavListItem.js";
|
|
65
|
+
import { PageLayout as ue } from "./components/PageLayout/PageLayout.js";
|
|
66
|
+
import { Popover as de } from "./components/Popover/Popover.js";
|
|
67
|
+
import { usePopover as fe } from "./components/Popover/usePopover.js";
|
|
68
|
+
import { Prose as pe } from "./components/Prose/Prose.js";
|
|
69
|
+
import { Radio as me } from "./components/Radio/Radio.js";
|
|
70
|
+
import { RadioGroup as he } from "./components/RadioGroup/RadioGroup.js";
|
|
71
|
+
import { Row as ge } from "./components/Row/Row.js";
|
|
72
|
+
import { Segment as _e } from "./components/SegmentedControl/Segment.js";
|
|
73
|
+
import { SegmentedControl as ve } from "./components/SegmentedControl/SegmentedControl.js";
|
|
74
|
+
import { Select as ye } from "./components/Select/Select.js";
|
|
75
|
+
import { Sidebar as be } from "./components/Sidebar/Sidebar.js";
|
|
76
|
+
import { SkipLink as xe } from "./components/SkipLink/SkipLink.js";
|
|
77
|
+
import { Stack as Se } from "./components/Stack/Stack.js";
|
|
78
|
+
import { StatusDot as Ce } from "./components/StatusDot/StatusDot.js";
|
|
79
|
+
import { Switch as we } from "./components/Switch/Switch.js";
|
|
80
|
+
import { Switcher as Te } from "./components/Switcher/Switcher.js";
|
|
81
|
+
import { Tab as Ee } from "./components/Tabs/Tab.js";
|
|
82
|
+
import { TabList as De } from "./components/Tabs/TabList.js";
|
|
83
|
+
import { TabPanel as Oe } from "./components/Tabs/TabPanel.js";
|
|
84
|
+
import { Tabs as ke } from "./components/Tabs/Tabs.js";
|
|
85
|
+
import { Text as Ae } from "./components/Text/Text.js";
|
|
86
|
+
import { Textarea as je } from "./components/Textarea/Textarea.js";
|
|
87
|
+
import { TextInput as Me } from "./components/TextInput/TextInput.js";
|
|
88
|
+
import { Theme as Ne } from "./components/Theme/Theme.js";
|
|
89
|
+
import { Tooltip as Pe } from "./components/Tooltip/Tooltip.js";
|
|
90
|
+
import { useTooltip as Fe } from "./components/Tooltip/useTooltip.js";
|
|
91
|
+
import { VisuallyHidden as Ie } from "./components/VisuallyHidden/VisuallyHidden.js";
|
|
92
|
+
export { e as Accordion, t as AccordionItem, T as AddIcon, n as Alert, p as Autocomplete, r as Avatar, i as AvatarGroup, a as Badge, o as Box, s as Button, c as Card, l as Center, E as CheckIcon, u as Checkbox, D as ChevronDownIcon, O as ChevronRightIcon, k as CloseIcon, d as Cluster, f as Code, A as ColorModeIcon, m as Combobox, h as ComboboxOption, _ as Counter, v as Cover, j as DeleteIcon, y as Divider, b as Field, x as Fieldset, S as Frame, C as Grid, w as Heading, B as IconButton, M as InfoIcon, V as Kbd, H as Link, U as Listbox, W as ListboxOption, G as Menu, K as MenuGroup, N as MenuIcon, q as MenuItem, J as MenuItemCheckbox, Y as MenuItemRadio, X as MenuRadioGroup, Z as MenuSeparator, ee as Menubar, te as MenubarMenu, P as MoreHorizontalIcon, F as MoreVerticalIcon, ne as NavBar, re as NavBarItem, ie as NavBarMenu, ae as NavBarMenuGroup, oe as NavBarMenuItem, se as NavList, ce as NavListGroup, le as NavListItem, ue as PageLayout, I as PaletteIcon, de as Popover, pe as Prose, me as Radio, he as RadioGroup, L as RefreshIcon, R as RemoveIcon, ge as Row, _e as Segment, ve as SegmentedControl, ye as Select, z as SendIcon, be as Sidebar, xe as SkipLink, Se as Stack, Ce as StatusDot, Q as Submenu, we as Switch, Te as Switcher, Ee as Tab, De as TabList, Oe as TabPanel, ke as Tabs, Ae as Text, Me as TextInput, je as Textarea, Ne as Theme, Pe as Tooltip, Ie as VisuallyHidden, g as useContextMenu, $ as useMenu, fe as usePopover, Fe as useTooltip };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Placement of children on a container's cross axis
|
|
3
|
+
*/
|
|
4
|
+
export type Alignment = "start" | "center" | "end" | "stretch" | "baseline";
|
|
5
|
+
/**
|
|
6
|
+
* Distribution of children along a container's main axis
|
|
7
|
+
*/
|
|
8
|
+
export type Justification = "start" | "center" | "end" | "between";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AriaRole } from "react";
|
|
2
|
+
import type { BoxElement } from "../components/Box";
|
|
3
|
+
/**
|
|
4
|
+
* Picks the role for a container that removes list markers, which makes WebKit stop exposing
|
|
5
|
+
* `ul` and `ol` as lists
|
|
6
|
+
*
|
|
7
|
+
* @param element the element the container renders
|
|
8
|
+
* @param role the role the consumer passed, if any
|
|
9
|
+
* @returns `list` for a `ul` or `ol` without a role, otherwise the given role
|
|
10
|
+
*/
|
|
11
|
+
export declare function listRole(element: BoxElement, role: AriaRole | undefined): AriaRole | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Space } from "./Space";
|
|
2
|
+
/**
|
|
3
|
+
* Resolves a spacing step to a CSS value
|
|
4
|
+
*
|
|
5
|
+
* @param space the spacing step
|
|
6
|
+
* @returns `0px` (a length, so it stays valid inside `calc()`), or the matching `--sui-space-*` token with the default theme's value as fallback
|
|
7
|
+
*/
|
|
8
|
+
export declare function spaceValue(space: Space): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Merges a component's custom properties with the consumer's style
|
|
4
|
+
*
|
|
5
|
+
* @param customProperties the component's custom properties; undefined values are not rendered
|
|
6
|
+
* @param style the consumer's style, whose declarations win on conflict
|
|
7
|
+
* @returns the merged style
|
|
8
|
+
*/
|
|
9
|
+
export declare function withCustomProperties(customProperties: Record<`--${string}`, string | undefined>, style: CSSProperties | undefined): CSSProperties;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef, JSXElementConstructor } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* What a link-or-button component can render: a link, a button, or a component that renders an anchor, such as a
|
|
4
|
+
* router's link
|
|
5
|
+
*/
|
|
6
|
+
export type LinkOrButtonElement = "a" | "button" | JSXElementConstructor<never>;
|
|
7
|
+
type PropsOnlyOn<Element extends "a" | "button", Other extends "a" | "button"> = {
|
|
8
|
+
[Name in Exclude<keyof ComponentPropsWithRef<Element>, keyof ComponentPropsWithRef<Other>>]?: never;
|
|
9
|
+
};
|
|
10
|
+
type ElementProps<E extends LinkOrButtonElement> = E extends JSXElementConstructor<infer Props> ? Props : E extends "button" ? ComponentPropsWithRef<"button"> & PropsOnlyOn<"a", "button"> : ComponentPropsWithRef<"a"> & PropsOnlyOn<"button", "a">;
|
|
11
|
+
type OmitFromEach<Props, Name extends PropertyKey> = Props extends unknown ? Omit<Props, Name> : never;
|
|
12
|
+
/**
|
|
13
|
+
* The props of the link, button or component given in `as`, less the names a component sets itself. When `as` may be
|
|
14
|
+
* either a link or a button, only props both accept are allowed.
|
|
15
|
+
*/
|
|
16
|
+
export type LinkOrButtonProps<E extends LinkOrButtonElement, Omitted extends PropertyKey> = OmitFromEach<ElementProps<E>, Omitted>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { LinkOrButtonElement, LinkOrButtonProps } from "./LinkOrButtonProps";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hides an open menu when focus moves out of it, as a light dismiss would, leaving focus where it went
|
|
3
|
+
*
|
|
4
|
+
* @param menu the menu that lost focus
|
|
5
|
+
* @param relatedTarget the element taking focus, or `null` when focus is between elements or lost with an item that
|
|
6
|
+
* was removed, in which case the menu waits a task to see where it lands
|
|
7
|
+
* @param staysOn whether focus on an element outside the menu keeps it open, such as on its trigger
|
|
8
|
+
*/
|
|
9
|
+
export declare function closeWhenFocusLeaves(menu: HTMLElement, relatedTarget: Element | null, staysOn: (focused: Element) => boolean): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { syncPopover as e } from "../overlays/syncPopover.js";
|
|
2
|
+
// src/menus/closeWhenFocusLeaves.ts
|
|
3
|
+
function t(e, t, r) {
|
|
4
|
+
e.matches(":popover-open") && (t === null ? setTimeout(() => {
|
|
5
|
+
n(e, e.ownerDocument.activeElement, r);
|
|
6
|
+
}, 0) : n(e, t, r));
|
|
7
|
+
}
|
|
8
|
+
function n(t, n, r) {
|
|
9
|
+
(n === null || !t.contains(n) && !r(n)) && t.matches(":popover-open") && e(t, !1);
|
|
10
|
+
}
|
|
11
|
+
export { t as closeWhenFocusLeaves };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where focus goes as a menu opens: its first or last item, or the menu itself
|
|
3
|
+
*/
|
|
4
|
+
export type OpeningFocus = "first" | "last" | "menu";
|
|
5
|
+
/**
|
|
6
|
+
* Moves focus into a menu that has just opened
|
|
7
|
+
*
|
|
8
|
+
* @param menu the menu element
|
|
9
|
+
* @param openingFocus where focus goes; a menu with no items takes it itself
|
|
10
|
+
*/
|
|
11
|
+
export declare function focusOnOpening(menu: HTMLElement, openingFocus: OpeningFocus): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a key was pressed with Alt, Ctrl or Meta, which leaves it to the browser and the app
|
|
3
|
+
*
|
|
4
|
+
* @param event the key event
|
|
5
|
+
* @returns true when any of the three was held
|
|
6
|
+
*/
|
|
7
|
+
export declare function hasModifier(event: Pick<KeyboardEvent, "altKey" | "ctrlKey" | "metaKey">): boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { closeWhenFocusLeaves } from "./closeWhenFocusLeaves";
|
|
2
|
+
export { focusItem } from "./focusItem";
|
|
3
|
+
export { focusOnOpening } from "./focusOnOpening";
|
|
4
|
+
export type { OpeningFocus } from "./focusOnOpening";
|
|
5
|
+
export { hasModifier } from "./hasModifier";
|
|
6
|
+
export { itemText } from "./itemText";
|
|
7
|
+
export { leaveMenuOnTab } from "./leaveMenuOnTab";
|
|
8
|
+
export { graceTriangle, isInsideTriangle } from "./pointerIntent";
|
|
9
|
+
export type { Point, Triangle } from "./pointerIntent";
|
|
10
|
+
export { renderedItems } from "./renderedItems";
|
|
11
|
+
export { watchRemovals } from "./watchRemovals";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads the text type-ahead matches for a menu item
|
|
3
|
+
*
|
|
4
|
+
* @param item the item element
|
|
5
|
+
* @returns the text of the elements its `aria-labelledby` names, joined by spaces, so a description or shortcut is
|
|
6
|
+
* left out; its own text when it names none in its document
|
|
7
|
+
*/
|
|
8
|
+
export declare function itemText(item: HTMLElement): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// src/menus/itemText.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = (e.getAttribute("aria-labelledby") ?? "").split(/\s+/).map((t) => e.ownerDocument.getElementById(t)).filter((e) => e !== null);
|
|
4
|
+
return t.length === 0 ? e.textContent ?? "" : t.map((e) => e.textContent).join(" ");
|
|
5
|
+
}
|
|
6
|
+
export { e as itemText };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Closes a menu on Tab or Shift+Tab, moving focus back to where the menu was opened from. Tab then moves on from
|
|
3
|
+
* there, as though the menu were not there, and Shift+Tab stops there.
|
|
4
|
+
*
|
|
5
|
+
* @param event the key event the menu received
|
|
6
|
+
* @param returnTo the element focus goes back to; with none, the key is left alone
|
|
7
|
+
* @param close closes the menu
|
|
8
|
+
*/
|
|
9
|
+
export declare function leaveMenuOnTab(event: Pick<KeyboardEvent, "altKey" | "ctrlKey" | "defaultPrevented" | "key" | "metaKey" | "preventDefault" | "shiftKey">, returnTo: HTMLElement | null, close: () => void): void;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A point in viewport coordinates, as a pointer event's `clientX` and `clientY` give it
|
|
3
|
+
*/
|
|
4
|
+
export interface Point {
|
|
5
|
+
/**
|
|
6
|
+
* Distance from the viewport's left edge
|
|
7
|
+
*/
|
|
8
|
+
x: number;
|
|
9
|
+
/**
|
|
10
|
+
* Distance from the viewport's top edge
|
|
11
|
+
*/
|
|
12
|
+
y: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Three corners of a triangle
|
|
16
|
+
*/
|
|
17
|
+
export type Triangle = readonly [Point, Point, Point];
|
|
18
|
+
/**
|
|
19
|
+
* The triangle a pointer crosses on its way from a submenu's item into the submenu, so moving diagonally over the
|
|
20
|
+
* items between does not close it
|
|
21
|
+
*
|
|
22
|
+
* @param exit where the pointer left the submenu's item
|
|
23
|
+
* @param submenu the submenu's bounds
|
|
24
|
+
* @returns the triangle from just behind the exit point to the two corners of the submenu's side facing it: its
|
|
25
|
+
* nearer side when the submenu sits beside the exit point, else its top or bottom
|
|
26
|
+
*/
|
|
27
|
+
export declare function graceTriangle(exit: Point, { bottom, left, right, top }: DOMRectReadOnly): Triangle;
|
|
28
|
+
/**
|
|
29
|
+
* Whether a point is inside a triangle or on its edge
|
|
30
|
+
*
|
|
31
|
+
* @param point the point
|
|
32
|
+
* @param triangle the triangle
|
|
33
|
+
* @returns true when the point is inside or on an edge; false for a flat triangle, such as one to a submenu that has no
|
|
34
|
+
* size
|
|
35
|
+
*/
|
|
36
|
+
export declare function isInsideTriangle(point: Point, [first, second, third]: Triangle): boolean;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
function e(e, { bottom: t, left: n, right: r, top: i }) {
|
|
2
|
+
return e.x <= n ? [
|
|
3
|
+
{
|
|
4
|
+
x: e.x - 5,
|
|
5
|
+
y: e.y
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
x: n,
|
|
9
|
+
y: i
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
x: n,
|
|
13
|
+
y: t
|
|
14
|
+
}
|
|
15
|
+
] : e.x >= r ? [
|
|
16
|
+
{
|
|
17
|
+
x: e.x + 5,
|
|
18
|
+
y: e.y
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
x: r,
|
|
22
|
+
y: i
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
x: r,
|
|
26
|
+
y: t
|
|
27
|
+
}
|
|
28
|
+
] : e.y <= i ? [
|
|
29
|
+
{
|
|
30
|
+
x: e.x,
|
|
31
|
+
y: e.y - 5
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
x: n,
|
|
35
|
+
y: i
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
x: r,
|
|
39
|
+
y: i
|
|
40
|
+
}
|
|
41
|
+
] : [
|
|
42
|
+
{
|
|
43
|
+
x: e.x,
|
|
44
|
+
y: e.y + 5
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
x: n,
|
|
48
|
+
y: t
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
x: r,
|
|
52
|
+
y: t
|
|
53
|
+
}
|
|
54
|
+
];
|
|
55
|
+
}
|
|
56
|
+
function t(e, [t, r, i]) {
|
|
57
|
+
if (n(t, r, i) === 0) return !1;
|
|
58
|
+
let a = [
|
|
59
|
+
n(t, r, e),
|
|
60
|
+
n(r, i, e),
|
|
61
|
+
n(i, t, e)
|
|
62
|
+
];
|
|
63
|
+
return a.every((e) => e >= 0) || a.every((e) => e <= 0);
|
|
64
|
+
}
|
|
65
|
+
function n(e, t, n) {
|
|
66
|
+
return (t.x - e.x) * (n.y - e.y) - (t.y - e.y) * (n.x - e.x);
|
|
67
|
+
}
|
|
68
|
+
export { e as graceTriangle, t as isInsideTriangle };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads the items a menu renders
|
|
3
|
+
*
|
|
4
|
+
* @param menu the menu element
|
|
5
|
+
* @returns the menu's own items that are not hidden or inert, in document order, leaving out the items of any menu
|
|
6
|
+
* nested inside it
|
|
7
|
+
*/
|
|
8
|
+
export declare function renderedItems(menu: HTMLElement): HTMLElement[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
function e(e) {
|
|
2
|
+
return Array.from(e.querySelectorAll("[role=\"menuitem\"], [role=\"menuitemcheckbox\"], [role=\"menuitemradio\"]")).filter((t) => t.parentElement?.closest("[role=\"menu\"]") === e && t.closest("[hidden], [inert]") === null);
|
|
3
|
+
}
|
|
4
|
+
export { e as renderedItems };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeps focus inside a menu when the focused item is removed from it or from one of its submenus, by moving focus to
|
|
3
|
+
* the innermost menu that held the item and is still open
|
|
4
|
+
*
|
|
5
|
+
* @param menu the open menu
|
|
6
|
+
* @returns a function that stops watching, to call when the menu closes
|
|
7
|
+
*/
|
|
8
|
+
export declare function watchRemovals(menu: HTMLElement): () => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/menus/watchRemovals.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
let n = null, r = [];
|
|
4
|
+
function i(i) {
|
|
5
|
+
n = i.target instanceof Element ? i.target : null, r = n === null ? [] : t(n, e);
|
|
6
|
+
}
|
|
7
|
+
let a = new MutationObserver(() => {
|
|
8
|
+
let t = e.ownerDocument.activeElement, i = t === null || t === e.ownerDocument.body, a = n !== null && !e.contains(n);
|
|
9
|
+
i && a && e.matches(":popover-open") && (r.find((e) => e.isConnected && e.matches(":popover-open")) ?? e).focus();
|
|
10
|
+
});
|
|
11
|
+
return e.addEventListener("focusin", i), a.observe(e, {
|
|
12
|
+
childList: !0,
|
|
13
|
+
subtree: !0
|
|
14
|
+
}), () => {
|
|
15
|
+
e.removeEventListener("focusin", i), a.disconnect();
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function t(e, t) {
|
|
19
|
+
let n = [], r = e.closest("[role=\"menu\"]");
|
|
20
|
+
for (; r !== null && t.contains(r);) n.push(r), r = r.parentElement?.closest("[role=\"menu\"]") ?? null;
|
|
21
|
+
return n;
|
|
22
|
+
}
|
|
23
|
+
export { e as watchRemovals };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Delays before an overlay shows and hides, in milliseconds
|
|
3
|
+
*/
|
|
4
|
+
export interface OverlayDelay {
|
|
5
|
+
/**
|
|
6
|
+
* Time between the pointer leaving the trigger and overlay, and the overlay hiding
|
|
7
|
+
*/
|
|
8
|
+
hide?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Time between the pointer entering the trigger and the overlay showing
|
|
11
|
+
*/
|
|
12
|
+
show?: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Side of the trigger an overlay opens on. `top` and `bottom` centre it on the trigger, and `top-start`, `top-end`,
|
|
3
|
+
* `bottom-start` and `bottom-end` line its start or end edge up with the trigger's instead, so it grows away from that
|
|
4
|
+
* edge. `start` and `end` follow the writing direction.
|
|
5
|
+
*/
|
|
6
|
+
export type OverlayPlacement = "bottom" | "bottom-end" | "bottom-start" | "end" | "start" | "top" | "top-end" | "top-start";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds the `anchor-name` that ties an overlay to its trigger
|
|
3
|
+
*
|
|
4
|
+
* @param id the overlay's generated id
|
|
5
|
+
* @returns a dashed ident unique to the id, with the punctuation React's ids contain removed
|
|
6
|
+
*/
|
|
7
|
+
export declare function anchorNameFor(id: string): string;
|