@misoto22/kioku-ui 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Alert/Alert.js +1 -0
- package/dist/AlertDialog/AlertDialog.d.ts +8 -0
- package/dist/AlertDialog/AlertDialog.doc.d.ts +11 -0
- package/dist/AlertDialog/AlertDialog.doc.js +30 -0
- package/dist/AlertDialog/AlertDialog.js +16 -0
- package/dist/AlertDialog/index.d.ts +1 -0
- package/dist/AlertDialog/index.js +2 -0
- package/dist/AppShell/AppShell.d.ts +19 -0
- package/dist/AppShell/AppShell.doc.d.ts +11 -0
- package/dist/AppShell/AppShell.doc.js +36 -0
- package/dist/AppShell/AppShell.js +61 -0
- package/dist/AppShell/index.d.ts +1 -0
- package/dist/AppShell/index.js +2 -0
- package/dist/AspectRatio/AspectRatio.d.ts +11 -0
- package/dist/AspectRatio/AspectRatio.doc.d.ts +11 -0
- package/dist/AspectRatio/AspectRatio.doc.js +15 -0
- package/dist/AspectRatio/AspectRatio.js +30 -0
- package/dist/AspectRatio/index.d.ts +1 -0
- package/dist/AspectRatio/index.js +2 -0
- package/dist/AsyncState/AsyncState.js +14 -1
- package/dist/Avatar/Avatar.d.ts +14 -0
- package/dist/{components/Button.doc.d.ts → Avatar/Avatar.doc.d.ts} +1 -1
- package/dist/Avatar/Avatar.doc.js +18 -0
- package/dist/Avatar/Avatar.js +98 -0
- package/dist/Avatar/index.d.ts +1 -0
- package/dist/Avatar/index.js +2 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +20 -0
- package/dist/AvatarGroup/AvatarGroup.doc.d.ts +11 -0
- package/dist/AvatarGroup/AvatarGroup.doc.js +21 -0
- package/dist/AvatarGroup/AvatarGroup.js +99 -0
- package/dist/AvatarGroup/index.d.ts +1 -0
- package/dist/AvatarGroup/index.js +2 -0
- package/dist/Badge/Badge.js +1 -0
- package/dist/Banner/Banner.d.ts +14 -0
- package/dist/Banner/Banner.doc.d.ts +11 -0
- package/dist/Banner/Banner.doc.js +18 -0
- package/dist/Banner/Banner.js +85 -0
- package/dist/Banner/index.d.ts +1 -0
- package/dist/Banner/index.js +2 -0
- package/dist/Blockquote/Blockquote.d.ts +11 -0
- package/dist/Blockquote/Blockquote.doc.d.ts +11 -0
- package/dist/Blockquote/Blockquote.doc.js +15 -0
- package/dist/Blockquote/Blockquote.js +28 -0
- package/dist/Blockquote/index.d.ts +1 -0
- package/dist/Blockquote/index.js +2 -0
- package/dist/BottomSheet/BottomSheet.d.ts +13 -0
- package/dist/BottomSheet/BottomSheet.doc.d.ts +11 -0
- package/dist/BottomSheet/BottomSheet.doc.js +21 -0
- package/dist/BottomSheet/BottomSheet.js +68 -0
- package/dist/BottomSheet/index.d.ts +1 -0
- package/dist/BottomSheet/index.js +2 -0
- package/dist/BottomSheetSwitcher/BottomSheetSwitcher.d.ts +35 -0
- package/dist/BottomSheetSwitcher/BottomSheetSwitcher.doc.d.ts +11 -0
- package/dist/BottomSheetSwitcher/BottomSheetSwitcher.doc.js +30 -0
- package/dist/BottomSheetSwitcher/BottomSheetSwitcher.js +104 -0
- package/dist/BottomSheetSwitcher/index.d.ts +1 -0
- package/dist/BottomSheetSwitcher/index.js +2 -0
- package/dist/Box/Box.d.ts +53 -0
- package/dist/{components/Card.doc.d.ts → Box/Box.doc.d.ts} +1 -1
- package/dist/Box/Box.doc.js +21 -0
- package/dist/Box/Box.js +120 -0
- package/dist/Box/index.d.ts +1 -0
- package/dist/Box/index.js +2 -0
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +17 -0
- package/dist/Breadcrumbs/Breadcrumbs.doc.d.ts +11 -0
- package/dist/Breadcrumbs/Breadcrumbs.doc.js +18 -0
- package/dist/Breadcrumbs/Breadcrumbs.js +64 -0
- package/dist/Breadcrumbs/index.d.ts +1 -0
- package/dist/Breadcrumbs/index.js +2 -0
- package/dist/Button/Button.js +19 -8
- package/dist/ButtonGroup/ButtonGroup.d.ts +13 -0
- package/dist/ButtonGroup/ButtonGroup.doc.d.ts +11 -0
- package/dist/ButtonGroup/ButtonGroup.doc.js +18 -0
- package/dist/ButtonGroup/ButtonGroup.js +52 -0
- package/dist/ButtonGroup/index.d.ts +1 -0
- package/dist/ButtonGroup/index.js +2 -0
- package/dist/Calendar/Calendar.d.ts +27 -0
- package/dist/Calendar/Calendar.doc.d.ts +11 -0
- package/dist/Calendar/Calendar.doc.js +33 -0
- package/dist/Calendar/Calendar.js +307 -0
- package/dist/Calendar/index.d.ts +1 -0
- package/dist/Calendar/index.js +2 -0
- package/dist/Card/Card.js +1 -1
- package/dist/CardFooter/CardFooter.js +1 -1
- package/dist/CardHeader/CardHeader.js +1 -1
- package/dist/Carousel/Carousel.d.ts +14 -0
- package/dist/Carousel/Carousel.doc.d.ts +11 -0
- package/dist/Carousel/Carousel.doc.js +21 -0
- package/dist/Carousel/Carousel.js +117 -0
- package/dist/Carousel/index.d.ts +1 -0
- package/dist/Carousel/index.js +2 -0
- package/dist/Chat/Chat.d.ts +83 -0
- package/dist/{components/Table.doc.d.ts → Chat/Chat.doc.d.ts} +11 -26
- package/dist/Chat/Chat.doc.js +99 -0
- package/dist/Chat/Chat.js +361 -0
- package/dist/Chat/index.d.ts +1 -0
- package/dist/Chat/index.js +2 -0
- package/dist/CheckboxInput/CheckboxInput.d.ts +24 -0
- package/dist/CheckboxInput/CheckboxInput.doc.d.ts +11 -0
- package/dist/CheckboxInput/CheckboxInput.doc.js +27 -0
- package/dist/CheckboxInput/CheckboxInput.js +173 -0
- package/dist/CheckboxInput/index.d.ts +1 -0
- package/dist/CheckboxInput/index.js +2 -0
- package/dist/CheckboxList/CheckboxList.d.ts +30 -0
- package/dist/CheckboxList/CheckboxList.doc.d.ts +11 -0
- package/dist/CheckboxList/CheckboxList.doc.js +24 -0
- package/dist/CheckboxList/CheckboxList.js +60 -0
- package/dist/CheckboxList/index.d.ts +1 -0
- package/dist/CheckboxList/index.js +2 -0
- package/dist/Citation/Citation.d.ts +13 -0
- package/dist/Citation/Citation.doc.d.ts +11 -0
- package/dist/Citation/Citation.doc.js +18 -0
- package/dist/Citation/Citation.js +36 -0
- package/dist/Citation/index.d.ts +1 -0
- package/dist/Citation/index.js +2 -0
- package/dist/ClickableCard/ClickableCard.d.ts +10 -0
- package/dist/ClickableCard/ClickableCard.doc.d.ts +11 -0
- package/dist/ClickableCard/ClickableCard.doc.js +12 -0
- package/dist/ClickableCard/ClickableCard.js +24 -0
- package/dist/ClickableCard/index.d.ts +1 -0
- package/dist/ClickableCard/index.js +2 -0
- package/dist/Code/Code.d.ts +5 -0
- package/dist/{components/Text.doc.d.ts → Code/Code.doc.d.ts} +1 -1
- package/dist/Code/Code.doc.js +12 -0
- package/dist/Code/Code.js +19 -0
- package/dist/Code/index.d.ts +1 -0
- package/dist/Code/index.js +2 -0
- package/dist/CodeBlock/CodeBlock.d.ts +19 -0
- package/dist/CodeBlock/CodeBlock.doc.d.ts +11 -0
- package/dist/CodeBlock/CodeBlock.doc.js +24 -0
- package/dist/CodeBlock/CodeBlock.js +88 -0
- package/dist/CodeBlock/index.d.ts +1 -0
- package/dist/CodeBlock/index.js +2 -0
- package/dist/Collapsible/Collapsible.d.ts +23 -0
- package/dist/Collapsible/Collapsible.doc.d.ts +11 -0
- package/dist/Collapsible/Collapsible.doc.js +24 -0
- package/dist/Collapsible/Collapsible.js +93 -0
- package/dist/Collapsible/index.d.ts +1 -0
- package/dist/Collapsible/index.js +2 -0
- package/dist/CommandPalette/CommandPalette.d.ts +24 -0
- package/dist/CommandPalette/CommandPalette.doc.d.ts +11 -0
- package/dist/CommandPalette/CommandPalette.doc.js +30 -0
- package/dist/CommandPalette/CommandPalette.js +182 -0
- package/dist/CommandPalette/index.d.ts +1 -0
- package/dist/CommandPalette/index.js +2 -0
- package/dist/ComplexSelector/ComplexSelector.d.ts +30 -0
- package/dist/ComplexSelector/ComplexSelector.doc.d.ts +11 -0
- package/dist/ComplexSelector/ComplexSelector.doc.js +24 -0
- package/dist/ComplexSelector/ComplexSelector.js +83 -0
- package/dist/ComplexSelector/index.d.ts +1 -0
- package/dist/ComplexSelector/index.js +2 -0
- package/dist/ContextMenu/ContextMenu.d.ts +13 -0
- package/dist/ContextMenu/ContextMenu.doc.d.ts +11 -0
- package/dist/ContextMenu/ContextMenu.doc.js +18 -0
- package/dist/ContextMenu/ContextMenu.js +52 -0
- package/dist/ContextMenu/index.d.ts +1 -0
- package/dist/ContextMenu/index.js +2 -0
- package/dist/DateInput/DateInput.d.ts +5 -0
- package/dist/DateInput/DateInput.doc.d.ts +11 -0
- package/dist/DateInput/DateInput.doc.js +18 -0
- package/dist/DateInput/DateInput.js +12 -0
- package/dist/DateInput/TemporalInput.d.ts +34 -0
- package/dist/DateInput/TemporalInput.js +169 -0
- package/dist/DateInput/index.d.ts +2 -0
- package/dist/DateInput/index.js +3 -0
- package/dist/DatePicker/DatePicker.d.ts +38 -0
- package/dist/{components/AsyncState.doc.d.ts → DatePicker/DatePicker.doc.d.ts} +1 -1
- package/dist/DatePicker/DatePicker.doc.js +31 -0
- package/dist/DatePicker/DatePicker.js +111 -0
- package/dist/DatePicker/index.d.ts +1 -0
- package/dist/DatePicker/index.js +2 -0
- package/dist/DateRangeInput/DateRangeInput.d.ts +34 -0
- package/dist/DateRangeInput/DateRangeInput.doc.d.ts +11 -0
- package/dist/DateRangeInput/DateRangeInput.doc.js +27 -0
- package/dist/DateRangeInput/DateRangeInput.js +108 -0
- package/dist/DateRangeInput/index.d.ts +1 -0
- package/dist/DateRangeInput/index.js +2 -0
- package/dist/DateTimeInput/DateTimeInput.d.ts +5 -0
- package/dist/DateTimeInput/DateTimeInput.doc.d.ts +11 -0
- package/dist/DateTimeInput/DateTimeInput.doc.js +18 -0
- package/dist/DateTimeInput/DateTimeInput.js +12 -0
- package/dist/DateTimeInput/index.d.ts +1 -0
- package/dist/DateTimeInput/index.js +2 -0
- package/dist/Dialog/Dialog.d.ts +23 -0
- package/dist/Dialog/Dialog.doc.d.ts +11 -0
- package/dist/Dialog/Dialog.doc.js +33 -0
- package/dist/Dialog/Dialog.js +152 -0
- package/dist/Dialog/index.d.ts +1 -0
- package/dist/Dialog/index.js +2 -0
- package/dist/DropdownMenu/DropdownMenu.d.ts +25 -0
- package/dist/DropdownMenu/DropdownMenu.doc.d.ts +22 -0
- package/dist/DropdownMenu/DropdownMenu.doc.js +47 -0
- package/dist/DropdownMenu/DropdownMenu.js +114 -0
- package/dist/DropdownMenu/index.d.ts +1 -0
- package/dist/DropdownMenu/index.js +2 -0
- package/dist/EmptyState/EmptyState.js +4 -4
- package/dist/Eyebrow/Eyebrow.d.ts +13 -0
- package/dist/Eyebrow/Eyebrow.doc.d.ts +11 -0
- package/dist/Eyebrow/Eyebrow.doc.js +15 -0
- package/dist/Eyebrow/Eyebrow.js +47 -0
- package/dist/Eyebrow/index.d.ts +1 -0
- package/dist/Eyebrow/index.js +2 -0
- package/dist/Field/Field.js +15 -7
- package/dist/FieldStatus/FieldStatus.d.ts +13 -0
- package/dist/FieldStatus/FieldStatus.doc.d.ts +11 -0
- package/dist/FieldStatus/FieldStatus.doc.js +15 -0
- package/dist/FieldStatus/FieldStatus.js +68 -0
- package/dist/FieldStatus/index.d.ts +1 -0
- package/dist/FieldStatus/index.js +2 -0
- package/dist/FileInput/FileInput.d.ts +10 -0
- package/dist/FileInput/FileInput.doc.d.ts +11 -0
- package/dist/FileInput/FileInput.doc.js +12 -0
- package/dist/FileInput/FileInput.js +74 -0
- package/dist/FileInput/index.d.ts +1 -0
- package/dist/FileInput/index.js +2 -0
- package/dist/FormLayout/FormLayout.d.ts +14 -0
- package/dist/FormLayout/FormLayout.doc.d.ts +11 -0
- package/dist/FormLayout/FormLayout.doc.js +18 -0
- package/dist/FormLayout/FormLayout.js +40 -0
- package/dist/FormLayout/index.d.ts +1 -0
- package/dist/FormLayout/index.js +2 -0
- package/dist/HStack/HStack.d.ts +15 -0
- package/dist/HStack/HStack.doc.d.ts +11 -0
- package/dist/HStack/HStack.doc.js +21 -0
- package/dist/{components/Stack.js → HStack/HStack.js} +47 -6
- package/dist/HStack/index.d.ts +1 -0
- package/dist/HStack/index.js +2 -0
- package/dist/Heading/Heading.js +4 -1
- package/dist/HoverCard/HoverCard.d.ts +31 -0
- package/dist/HoverCard/HoverCard.doc.d.ts +11 -0
- package/dist/HoverCard/HoverCard.doc.js +30 -0
- package/dist/HoverCard/HoverCard.js +77 -0
- package/dist/HoverCard/index.d.ts +1 -0
- package/dist/HoverCard/index.js +2 -0
- package/dist/Icon/Icon.d.ts +16 -0
- package/dist/{components/Grid.doc.d.ts → Icon/Icon.doc.d.ts} +1 -1
- package/dist/Icon/Icon.doc.js +18 -0
- package/dist/Icon/Icon.js +91 -0
- package/dist/Icon/index.d.ts +1 -0
- package/dist/Icon/index.js +2 -0
- package/dist/Indicator/Indicator.d.ts +15 -0
- package/dist/Indicator/Indicator.doc.d.ts +11 -0
- package/dist/Indicator/Indicator.doc.js +24 -0
- package/dist/Indicator/Indicator.js +90 -0
- package/dist/Indicator/index.d.ts +1 -0
- package/dist/Indicator/index.js +2 -0
- package/dist/InputGroup/InputGroup.d.ts +12 -0
- package/dist/InputGroup/InputGroup.doc.d.ts +11 -0
- package/dist/InputGroup/InputGroup.doc.js +18 -0
- package/dist/InputGroup/InputGroup.js +41 -0
- package/dist/InputGroup/index.d.ts +1 -0
- package/dist/InputGroup/index.js +2 -0
- package/dist/Item/Item.d.ts +12 -0
- package/dist/{components/Badge.doc.d.ts → Item/Item.doc.d.ts} +1 -1
- package/dist/Item/Item.doc.js +18 -0
- package/dist/Item/Item.js +50 -0
- package/dist/Item/index.d.ts +1 -0
- package/dist/Item/index.js +2 -0
- package/dist/Kbd/Kbd.d.ts +5 -0
- package/dist/Kbd/Kbd.doc.d.ts +11 -0
- package/dist/Kbd/Kbd.doc.js +12 -0
- package/dist/Kbd/Kbd.js +19 -0
- package/dist/Kbd/index.d.ts +1 -0
- package/dist/Kbd/index.js +2 -0
- package/dist/Layer/Layer.d.ts +19 -0
- package/dist/{components/Alert.doc.d.ts → Layer/Layer.doc.d.ts} +1 -1
- package/dist/Layer/Layer.doc.js +15 -0
- package/dist/Layer/Layer.js +32 -0
- package/dist/Layer/index.d.ts +1 -0
- package/dist/Layer/index.js +2 -0
- package/dist/Layout/Layout.d.ts +26 -0
- package/dist/Layout/Layout.doc.d.ts +11 -0
- package/dist/Layout/Layout.doc.js +36 -0
- package/dist/Layout/Layout.js +108 -0
- package/dist/Layout/index.d.ts +1 -0
- package/dist/Layout/index.js +2 -0
- package/dist/Lightbox/Lightbox.d.ts +14 -0
- package/dist/Lightbox/Lightbox.doc.d.ts +11 -0
- package/dist/Lightbox/Lightbox.doc.js +24 -0
- package/dist/Lightbox/Lightbox.js +80 -0
- package/dist/Lightbox/index.d.ts +1 -0
- package/dist/Lightbox/index.js +2 -0
- package/dist/List/List.d.ts +18 -0
- package/dist/List/List.doc.d.ts +22 -0
- package/dist/List/List.doc.js +26 -0
- package/dist/List/List.js +113 -0
- package/dist/List/index.d.ts +1 -0
- package/dist/List/index.js +2 -0
- package/dist/Markdown/Markdown.d.ts +11 -0
- package/dist/Markdown/Markdown.doc.d.ts +11 -0
- package/dist/Markdown/Markdown.doc.js +12 -0
- package/dist/Markdown/Markdown.js +90 -0
- package/dist/Markdown/index.d.ts +2 -0
- package/dist/Markdown/index.js +3 -0
- package/dist/Markdown/parse.d.ts +42 -0
- package/dist/Markdown/parse.js +128 -0
- package/dist/MetadataList/MetadataList.d.ts +18 -0
- package/dist/MetadataList/MetadataList.doc.d.ts +11 -0
- package/dist/MetadataList/MetadataList.doc.js +15 -0
- package/dist/MetadataList/MetadataList.js +93 -0
- package/dist/MetadataList/index.d.ts +1 -0
- package/dist/MetadataList/index.js +2 -0
- package/dist/MetricGrid/MetricGrid.js +5 -5
- package/dist/MobileNav/MobileNav.d.ts +13 -0
- package/dist/MobileNav/MobileNav.doc.d.ts +11 -0
- package/dist/MobileNav/MobileNav.doc.js +21 -0
- package/dist/MobileNav/MobileNav.js +126 -0
- package/dist/MobileNav/index.d.ts +1 -0
- package/dist/MobileNav/index.js +2 -0
- package/dist/MoreMenu/MoreMenu.d.ts +14 -0
- package/dist/MoreMenu/MoreMenu.doc.d.ts +11 -0
- package/dist/MoreMenu/MoreMenu.doc.js +21 -0
- package/dist/MoreMenu/MoreMenu.js +68 -0
- package/dist/MoreMenu/index.d.ts +1 -0
- package/dist/MoreMenu/index.js +2 -0
- package/dist/MultiSelector/MultiSelector.d.ts +17 -0
- package/dist/MultiSelector/MultiSelector.doc.d.ts +11 -0
- package/dist/MultiSelector/MultiSelector.doc.js +27 -0
- package/dist/MultiSelector/MultiSelector.js +58 -0
- package/dist/MultiSelector/index.d.ts +1 -0
- package/dist/MultiSelector/index.js +2 -0
- package/dist/NavIcon/NavIcon.d.ts +10 -0
- package/dist/NavIcon/NavIcon.doc.d.ts +11 -0
- package/dist/NavIcon/NavIcon.doc.js +12 -0
- package/dist/NavIcon/NavIcon.js +21 -0
- package/dist/NavIcon/index.d.ts +1 -0
- package/dist/NavIcon/index.js +2 -0
- package/dist/NavItem/NavItem.d.ts +13 -0
- package/dist/NavItem/NavItem.doc.d.ts +11 -0
- package/dist/NavItem/NavItem.doc.js +18 -0
- package/dist/NavItem/NavItem.js +62 -0
- package/dist/NavItem/index.d.ts +1 -0
- package/dist/NavItem/index.js +2 -0
- package/dist/NavMenu/NavMenu.d.ts +13 -0
- package/dist/NavMenu/NavMenu.doc.d.ts +11 -0
- package/dist/NavMenu/NavMenu.doc.js +18 -0
- package/dist/NavMenu/NavMenu.js +58 -0
- package/dist/NavMenu/index.d.ts +2 -0
- package/dist/NavMenu/index.js +5 -0
- package/dist/NavMenu/orientation.d.ts +4 -0
- package/dist/NavMenu/orientation.js +17 -0
- package/dist/NumberInput/NumberInput.d.ts +21 -0
- package/dist/NumberInput/NumberInput.doc.d.ts +11 -0
- package/dist/NumberInput/NumberInput.doc.js +18 -0
- package/dist/NumberInput/NumberInput.js +136 -0
- package/dist/NumberInput/index.d.ts +1 -0
- package/dist/NumberInput/index.js +2 -0
- package/dist/Numeral/Numeral.d.ts +10 -0
- package/dist/Numeral/Numeral.doc.d.ts +11 -0
- package/dist/Numeral/Numeral.doc.js +12 -0
- package/dist/Numeral/Numeral.js +24 -0
- package/dist/Numeral/index.d.ts +1 -0
- package/dist/Numeral/index.js +2 -0
- package/dist/Outline/Outline.d.ts +18 -0
- package/dist/Outline/Outline.doc.d.ts +11 -0
- package/dist/Outline/Outline.doc.js +18 -0
- package/dist/Outline/Outline.js +98 -0
- package/dist/Outline/index.d.ts +1 -0
- package/dist/Outline/index.js +2 -0
- package/dist/OverflowList/OverflowList.d.ts +19 -0
- package/dist/OverflowList/OverflowList.doc.d.ts +11 -0
- package/dist/OverflowList/OverflowList.doc.js +18 -0
- package/dist/OverflowList/OverflowList.js +81 -0
- package/dist/OverflowList/index.d.ts +1 -0
- package/dist/OverflowList/index.js +2 -0
- package/dist/Overlay/Overlay.d.ts +17 -0
- package/dist/Overlay/Overlay.doc.d.ts +11 -0
- package/dist/Overlay/Overlay.doc.js +30 -0
- package/dist/Overlay/Overlay.js +74 -0
- package/dist/Overlay/index.d.ts +1 -0
- package/dist/Overlay/index.js +2 -0
- package/dist/Pagination/Pagination.d.ts +14 -0
- package/dist/Pagination/Pagination.doc.d.ts +11 -0
- package/dist/Pagination/Pagination.doc.js +24 -0
- package/dist/Pagination/Pagination.js +128 -0
- package/dist/Pagination/index.d.ts +1 -0
- package/dist/Pagination/index.js +2 -0
- package/dist/Popover/Popover.d.ts +17 -0
- package/dist/Popover/Popover.doc.d.ts +11 -0
- package/dist/Popover/Popover.doc.js +30 -0
- package/dist/Popover/Popover.js +93 -0
- package/dist/Popover/index.d.ts +1 -0
- package/dist/Popover/index.js +2 -0
- package/dist/PowerSearch/PowerSearch.d.ts +22 -0
- package/dist/PowerSearch/PowerSearch.doc.d.ts +11 -0
- package/dist/PowerSearch/PowerSearch.doc.js +27 -0
- package/dist/PowerSearch/PowerSearch.js +108 -0
- package/dist/PowerSearch/index.d.ts +1 -0
- package/dist/PowerSearch/index.js +2 -0
- package/dist/ProgressBar/ProgressBar.d.ts +12 -0
- package/dist/ProgressBar/ProgressBar.doc.d.ts +11 -0
- package/dist/ProgressBar/ProgressBar.doc.js +18 -0
- package/dist/ProgressBar/ProgressBar.js +51 -0
- package/dist/ProgressBar/index.d.ts +1 -0
- package/dist/ProgressBar/index.js +2 -0
- package/dist/RadioList/RadioList.d.ts +30 -0
- package/dist/RadioList/RadioList.doc.d.ts +11 -0
- package/dist/RadioList/RadioList.doc.js +24 -0
- package/dist/RadioList/RadioList.js +130 -0
- package/dist/RadioList/index.d.ts +1 -0
- package/dist/RadioList/index.js +2 -0
- package/dist/Resizable/Resizable.d.ts +18 -0
- package/dist/Resizable/Resizable.doc.d.ts +11 -0
- package/dist/Resizable/Resizable.doc.js +33 -0
- package/dist/Resizable/Resizable.js +100 -0
- package/dist/Resizable/index.d.ts +1 -0
- package/dist/Resizable/index.js +2 -0
- package/dist/ResizeHandle/ResizeHandle.d.ts +23 -0
- package/dist/ResizeHandle/ResizeHandle.doc.d.ts +11 -0
- package/dist/ResizeHandle/ResizeHandle.doc.js +30 -0
- package/dist/ResizeHandle/ResizeHandle.js +118 -0
- package/dist/ResizeHandle/index.d.ts +1 -0
- package/dist/ResizeHandle/index.js +2 -0
- package/dist/SegmentedControl/SegmentedControl.js +4 -4
- package/dist/SelectableCard/SelectableCard.d.ts +25 -0
- package/dist/SelectableCard/SelectableCard.doc.d.ts +11 -0
- package/dist/SelectableCard/SelectableCard.doc.js +18 -0
- package/dist/SelectableCard/SelectableCard.js +178 -0
- package/dist/SelectableCard/index.d.ts +1 -0
- package/dist/SelectableCard/index.js +2 -0
- package/dist/Selector/Selector.d.ts +29 -0
- package/dist/Selector/Selector.doc.d.ts +11 -0
- package/dist/Selector/Selector.doc.js +24 -0
- package/dist/Selector/Selector.js +83 -0
- package/dist/Selector/index.d.ts +1 -0
- package/dist/Selector/index.js +2 -0
- package/dist/SideNav/SideNav.d.ts +15 -0
- package/dist/SideNav/SideNav.doc.d.ts +22 -0
- package/dist/SideNav/SideNav.doc.js +29 -0
- package/dist/SideNav/SideNav.js +51 -0
- package/dist/SideNav/index.d.ts +1 -0
- package/dist/SideNav/index.js +2 -0
- package/dist/Skeleton/Skeleton.doc.js +1 -1
- package/dist/Skeleton/Skeleton.js +1 -2
- package/dist/Slider/Slider.d.ts +27 -0
- package/dist/Slider/Slider.doc.d.ts +11 -0
- package/dist/Slider/Slider.doc.js +30 -0
- package/dist/Slider/Slider.js +133 -0
- package/dist/Slider/index.d.ts +1 -0
- package/dist/Slider/index.js +2 -0
- package/dist/Spinner/Spinner.js +5 -1
- package/dist/StatusDot/StatusDot.d.ts +2 -2
- package/dist/StatusDot/StatusDot.js +8 -0
- package/dist/Switch/Switch.d.ts +9 -0
- package/dist/Switch/Switch.doc.d.ts +11 -0
- package/dist/Switch/Switch.doc.js +21 -0
- package/dist/Switch/Switch.js +86 -0
- package/dist/Switch/index.d.ts +1 -0
- package/dist/Switch/index.js +2 -0
- package/dist/TabList/TabList.d.ts +25 -0
- package/dist/TabList/TabList.doc.d.ts +11 -0
- package/dist/TabList/TabList.doc.js +21 -0
- package/dist/TabList/TabList.js +79 -0
- package/dist/TabList/index.d.ts +1 -0
- package/dist/TabList/index.js +2 -0
- package/dist/Table/Table.d.ts +16 -6
- package/dist/Table/Table.doc.d.ts +12 -4
- package/dist/Table/Table.doc.js +9 -0
- package/dist/Table/Table.js +78 -14
- package/dist/Text/Text.js +1 -0
- package/dist/TextArea/TextArea.js +9 -4
- package/dist/TextInput/TextInput.js +4 -4
- package/dist/Thumbnail/Thumbnail.d.ts +15 -0
- package/dist/Thumbnail/Thumbnail.doc.d.ts +11 -0
- package/dist/Thumbnail/Thumbnail.doc.js +21 -0
- package/dist/Thumbnail/Thumbnail.js +95 -0
- package/dist/Thumbnail/index.d.ts +1 -0
- package/dist/Thumbnail/index.js +2 -0
- package/dist/TimeInput/TimeInput.d.ts +5 -0
- package/dist/TimeInput/TimeInput.doc.d.ts +11 -0
- package/dist/TimeInput/TimeInput.doc.js +18 -0
- package/dist/TimeInput/TimeInput.js +12 -0
- package/dist/TimeInput/index.d.ts +1 -0
- package/dist/TimeInput/index.js +2 -0
- package/dist/Timestamp/Timestamp.d.ts +11 -0
- package/dist/Timestamp/Timestamp.doc.d.ts +11 -0
- package/dist/Timestamp/Timestamp.doc.js +15 -0
- package/dist/Timestamp/Timestamp.js +33 -0
- package/dist/Timestamp/index.d.ts +1 -0
- package/dist/Timestamp/index.js +2 -0
- package/dist/Toast/Toast.d.ts +36 -0
- package/dist/Toast/Toast.doc.d.ts +22 -0
- package/dist/Toast/Toast.doc.js +35 -0
- package/dist/Toast/Toast.js +234 -0
- package/dist/Toast/index.d.ts +1 -0
- package/dist/Toast/index.js +2 -0
- package/dist/Toggle/Toggle.js +26 -8
- package/dist/ToggleButton/ToggleButton.d.ts +24 -0
- package/dist/ToggleButton/ToggleButton.doc.d.ts +11 -0
- package/dist/ToggleButton/ToggleButton.doc.js +21 -0
- package/dist/ToggleButton/ToggleButton.js +125 -0
- package/dist/ToggleButton/index.d.ts +1 -0
- package/dist/ToggleButton/index.js +2 -0
- package/dist/ToggleButtonGroup/ToggleButtonGroup.d.ts +37 -0
- package/dist/ToggleButtonGroup/ToggleButtonGroup.doc.d.ts +11 -0
- package/dist/ToggleButtonGroup/ToggleButtonGroup.doc.js +30 -0
- package/dist/ToggleButtonGroup/ToggleButtonGroup.js +84 -0
- package/dist/ToggleButtonGroup/index.d.ts +1 -0
- package/dist/ToggleButtonGroup/index.js +2 -0
- package/dist/Token/Token.d.ts +14 -0
- package/dist/Token/Token.doc.d.ts +11 -0
- package/dist/Token/Token.doc.js +21 -0
- package/dist/Token/Token.js +57 -0
- package/dist/Token/index.d.ts +1 -0
- package/dist/Token/index.js +2 -0
- package/dist/Tokenizer/Tokenizer.d.ts +16 -0
- package/dist/Tokenizer/Tokenizer.doc.d.ts +11 -0
- package/dist/Tokenizer/Tokenizer.doc.js +24 -0
- package/dist/Tokenizer/Tokenizer.js +92 -0
- package/dist/Tokenizer/index.d.ts +1 -0
- package/dist/Tokenizer/index.js +2 -0
- package/dist/Toolbar/Toolbar.d.ts +13 -0
- package/dist/Toolbar/Toolbar.doc.d.ts +11 -0
- package/dist/Toolbar/Toolbar.doc.js +18 -0
- package/dist/Toolbar/Toolbar.js +65 -0
- package/dist/Toolbar/index.d.ts +1 -0
- package/dist/Toolbar/index.js +2 -0
- package/dist/Tooltip/Tooltip.d.ts +25 -0
- package/dist/Tooltip/Tooltip.doc.d.ts +11 -0
- package/dist/Tooltip/Tooltip.doc.js +24 -0
- package/dist/Tooltip/Tooltip.js +110 -0
- package/dist/Tooltip/index.d.ts +1 -0
- package/dist/Tooltip/index.js +2 -0
- package/dist/TopNav/TopNav.d.ts +12 -0
- package/dist/TopNav/TopNav.doc.d.ts +11 -0
- package/dist/TopNav/TopNav.doc.js +18 -0
- package/dist/TopNav/TopNav.js +39 -0
- package/dist/TopNav/index.d.ts +1 -0
- package/dist/TopNav/index.js +2 -0
- package/dist/TopNavMegaMenu/TopNavMegaMenu.d.ts +30 -0
- package/dist/TopNavMegaMenu/TopNavMegaMenu.doc.d.ts +22 -0
- package/dist/TopNavMegaMenu/TopNavMegaMenu.doc.js +38 -0
- package/dist/TopNavMegaMenu/TopNavMegaMenu.js +134 -0
- package/dist/TopNavMegaMenu/index.d.ts +1 -0
- package/dist/TopNavMegaMenu/index.js +2 -0
- package/dist/TopNavMenu/TopNavMenu.d.ts +15 -0
- package/dist/TopNavMenu/TopNavMenu.doc.d.ts +11 -0
- package/dist/TopNavMenu/TopNavMenu.doc.js +21 -0
- package/dist/TopNavMenu/TopNavMenu.js +105 -0
- package/dist/TopNavMenu/index.d.ts +1 -0
- package/dist/TopNavMenu/index.js +2 -0
- package/dist/TreeList/TreeList.d.ts +21 -0
- package/dist/TreeList/TreeList.doc.d.ts +11 -0
- package/dist/TreeList/TreeList.doc.js +27 -0
- package/dist/TreeList/TreeList.js +146 -0
- package/dist/TreeList/index.d.ts +1 -0
- package/dist/TreeList/index.js +2 -0
- package/dist/Typeahead/Typeahead.d.ts +20 -0
- package/dist/Typeahead/Typeahead.doc.d.ts +11 -0
- package/dist/Typeahead/Typeahead.doc.js +24 -0
- package/dist/Typeahead/Typeahead.js +177 -0
- package/dist/Typeahead/index.d.ts +1 -0
- package/dist/Typeahead/index.js +2 -0
- package/dist/TypeaheadItem/TypeaheadItem.d.ts +15 -0
- package/dist/TypeaheadItem/TypeaheadItem.doc.d.ts +11 -0
- package/dist/TypeaheadItem/TypeaheadItem.doc.js +24 -0
- package/dist/TypeaheadItem/TypeaheadItem.js +84 -0
- package/dist/TypeaheadItem/index.d.ts +1 -0
- package/dist/TypeaheadItem/index.js +2 -0
- package/dist/VStack/VStack.d.ts +8 -0
- package/dist/VStack/VStack.doc.d.ts +11 -0
- package/dist/VStack/VStack.doc.js +15 -0
- package/dist/VStack/VStack.js +14 -0
- package/dist/VStack/index.d.ts +1 -0
- package/dist/VStack/index.js +2 -0
- package/dist/authoring.stylex.d.ts +7 -0
- package/dist/authoring.stylex.js +7 -0
- package/dist/docs/index.d.ts +91 -1
- package/dist/docs/index.js +92 -2
- package/dist/hooks/focusableSelector.d.ts +19 -0
- package/dist/hooks/focusableSelector.js +42 -0
- package/dist/hooks/index.d.ts +11 -0
- package/dist/hooks/index.js +12 -0
- package/dist/hooks/useAnchoredPosition.d.ts +33 -0
- package/dist/hooks/useAnchoredPosition.js +121 -0
- package/dist/hooks/useAnnounce.d.ts +7 -0
- package/dist/hooks/useAnnounce.js +34 -0
- package/dist/hooks/useClipboard.d.ts +10 -0
- package/dist/hooks/useClipboard.js +36 -0
- package/dist/hooks/useDevWarning.d.ts +5 -0
- package/dist/hooks/useDevWarning.js +20 -0
- package/dist/hooks/useFocusTrap.d.ts +9 -0
- package/dist/hooks/useFocusTrap.js +57 -0
- package/dist/hooks/useHotkeys.d.ts +12 -0
- package/dist/hooks/useHotkeys.js +57 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +6 -0
- package/dist/hooks/useIsomorphicLayoutEffect.js +8 -0
- package/dist/hooks/useListFocus.d.ts +15 -0
- package/dist/hooks/useListFocus.js +61 -0
- package/dist/hooks/useMediaQuery.d.ts +5 -0
- package/dist/hooks/useMediaQuery.js +24 -0
- package/dist/hooks/useScrollLock.d.ts +5 -0
- package/dist/hooks/useScrollLock.js +29 -0
- package/dist/i18n/Internationalization.d.ts +28 -0
- package/dist/i18n/Internationalization.doc.d.ts +11 -0
- package/dist/i18n/Internationalization.doc.js +21 -0
- package/dist/i18n/Internationalization.js +52 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/messages.d.ts +29 -0
- package/dist/i18n/messages.js +29 -0
- package/dist/index.d.ts +93 -1
- package/dist/index.js +92 -0
- package/dist/navigation/LinkProvider.d.ts +17 -1
- package/dist/navigation/LinkProvider.js +39 -2
- package/dist/scrolling/index.d.ts +1 -0
- package/dist/scrolling/index.js +2 -0
- package/dist/scrolling/scrolling.d.ts +22 -0
- package/dist/scrolling/scrolling.js +26 -0
- package/dist/styles/global.stylex.d.ts +1 -0
- package/dist/styles/global.stylex.js +1 -0
- package/dist/styles/stylex.css +472 -33
- package/dist/theme/Theme.d.ts +24 -1
- package/dist/theme/Theme.js +46 -2
- package/dist/theme/index.d.ts +1 -1
- package/dist/tokens/contracts.d.ts +9 -2
- package/dist/tokens/contracts.js +9 -2
- package/dist/utils/clamp.d.ts +2 -0
- package/dist/utils/clamp.js +5 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/mergeIds.d.ts +6 -0
- package/dist/utils/mergeIds.js +10 -0
- package/dist/utils/resolveInvalid.d.ts +6 -0
- package/dist/utils/resolveInvalid.js +9 -0
- package/package.json +1 -1
- package/src/Alert/Alert.tsx +1 -0
- package/src/AlertDialog/AlertDialog.doc.ts +22 -0
- package/src/AlertDialog/AlertDialog.tsx +18 -0
- package/src/AlertDialog/index.ts +1 -0
- package/src/AppShell/AppShell.doc.ts +30 -0
- package/src/AppShell/AppShell.tsx +93 -0
- package/src/AppShell/index.ts +1 -0
- package/src/AspectRatio/AspectRatio.doc.ts +15 -0
- package/src/AspectRatio/AspectRatio.tsx +47 -0
- package/src/AspectRatio/index.ts +1 -0
- package/src/AsyncState/AsyncState.tsx +42 -1
- package/src/Avatar/Avatar.doc.ts +16 -0
- package/src/Avatar/Avatar.tsx +100 -0
- package/src/Avatar/index.ts +1 -0
- package/src/AvatarGroup/AvatarGroup.doc.ts +17 -0
- package/src/AvatarGroup/AvatarGroup.tsx +124 -0
- package/src/AvatarGroup/index.ts +5 -0
- package/src/Badge/Badge.tsx +1 -0
- package/src/Banner/Banner.doc.ts +17 -0
- package/src/Banner/Banner.tsx +87 -0
- package/src/Banner/index.ts +1 -0
- package/src/Blockquote/Blockquote.doc.ts +15 -0
- package/src/Blockquote/Blockquote.tsx +55 -0
- package/src/Blockquote/index.ts +1 -0
- package/src/BottomSheet/BottomSheet.doc.ts +18 -0
- package/src/BottomSheet/BottomSheet.tsx +119 -0
- package/src/BottomSheet/index.ts +1 -0
- package/src/BottomSheetSwitcher/BottomSheetSwitcher.doc.ts +21 -0
- package/src/BottomSheetSwitcher/BottomSheetSwitcher.tsx +166 -0
- package/src/BottomSheetSwitcher/index.ts +5 -0
- package/src/Box/Box.doc.ts +15 -0
- package/src/Box/Box.tsx +98 -0
- package/src/Box/index.ts +1 -0
- package/src/Breadcrumbs/Breadcrumbs.doc.ts +18 -0
- package/src/Breadcrumbs/Breadcrumbs.tsx +124 -0
- package/src/Breadcrumbs/index.ts +5 -0
- package/src/Button/Button.tsx +36 -9
- package/src/ButtonGroup/ButtonGroup.doc.ts +19 -0
- package/src/ButtonGroup/ButtonGroup.tsx +52 -0
- package/src/ButtonGroup/index.ts +1 -0
- package/src/Calendar/Calendar.doc.ts +28 -0
- package/src/Calendar/Calendar.tsx +425 -0
- package/src/Calendar/index.ts +1 -0
- package/src/Card/Card.tsx +1 -1
- package/src/CardFooter/CardFooter.tsx +5 -5
- package/src/CardHeader/CardHeader.tsx +5 -5
- package/src/Carousel/Carousel.doc.ts +20 -0
- package/src/Carousel/Carousel.tsx +144 -0
- package/src/Carousel/index.ts +1 -0
- package/src/Chat/Chat.doc.ts +94 -0
- package/src/Chat/Chat.tsx +534 -0
- package/src/Chat/index.ts +19 -0
- package/src/CheckboxInput/CheckboxInput.doc.ts +26 -0
- package/src/CheckboxInput/CheckboxInput.tsx +276 -0
- package/src/CheckboxInput/index.ts +1 -0
- package/src/CheckboxList/CheckboxList.doc.ts +22 -0
- package/src/CheckboxList/CheckboxList.tsx +114 -0
- package/src/CheckboxList/index.ts +5 -0
- package/src/Citation/Citation.doc.ts +14 -0
- package/src/Citation/Citation.tsx +56 -0
- package/src/Citation/index.ts +1 -0
- package/src/ClickableCard/ClickableCard.doc.ts +10 -0
- package/src/ClickableCard/ClickableCard.tsx +79 -0
- package/src/ClickableCard/index.ts +1 -0
- package/src/Code/Code.doc.ts +10 -0
- package/src/Code/Code.tsx +31 -0
- package/src/Code/index.ts +1 -0
- package/src/CodeBlock/CodeBlock.doc.ts +21 -0
- package/src/CodeBlock/CodeBlock.tsx +122 -0
- package/src/CodeBlock/index.ts +1 -0
- package/src/Collapsible/Collapsible.doc.ts +18 -0
- package/src/Collapsible/Collapsible.tsx +165 -0
- package/src/Collapsible/index.ts +1 -0
- package/src/CommandPalette/CommandPalette.doc.ts +19 -0
- package/src/CommandPalette/CommandPalette.tsx +326 -0
- package/src/CommandPalette/index.ts +5 -0
- package/src/ComplexSelector/ComplexSelector.doc.ts +22 -0
- package/src/ComplexSelector/ComplexSelector.tsx +213 -0
- package/src/ComplexSelector/index.ts +5 -0
- package/src/ContextMenu/ContextMenu.doc.ts +18 -0
- package/src/ContextMenu/ContextMenu.tsx +61 -0
- package/src/ContextMenu/index.ts +1 -0
- package/src/DateInput/DateInput.doc.ts +16 -0
- package/src/DateInput/DateInput.tsx +9 -0
- package/src/DateInput/TemporalInput.tsx +305 -0
- package/src/DateInput/index.ts +6 -0
- package/src/DatePicker/DatePicker.doc.ts +21 -0
- package/src/DatePicker/DatePicker.tsx +138 -0
- package/src/DatePicker/index.ts +1 -0
- package/src/DateRangeInput/DateRangeInput.doc.ts +20 -0
- package/src/DateRangeInput/DateRangeInput.tsx +159 -0
- package/src/DateRangeInput/index.ts +5 -0
- package/src/DateTimeInput/DateTimeInput.doc.ts +16 -0
- package/src/DateTimeInput/DateTimeInput.tsx +9 -0
- package/src/DateTimeInput/index.ts +1 -0
- package/src/Dialog/Dialog.doc.ts +27 -0
- package/src/Dialog/Dialog.tsx +160 -0
- package/src/Dialog/index.ts +6 -0
- package/src/DropdownMenu/DropdownMenu.doc.ts +41 -0
- package/src/DropdownMenu/DropdownMenu.tsx +197 -0
- package/src/DropdownMenu/index.ts +6 -0
- package/src/EmptyState/EmptyState.tsx +29 -6
- package/src/Eyebrow/Eyebrow.doc.ts +16 -0
- package/src/Eyebrow/Eyebrow.tsx +56 -0
- package/src/Eyebrow/index.ts +1 -0
- package/src/Field/Field.tsx +25 -4
- package/src/FieldStatus/FieldStatus.doc.ts +15 -0
- package/src/FieldStatus/FieldStatus.tsx +72 -0
- package/src/FieldStatus/index.ts +1 -0
- package/src/FileInput/FileInput.doc.ts +12 -0
- package/src/FileInput/FileInput.tsx +186 -0
- package/src/FileInput/index.ts +1 -0
- package/src/FormLayout/FormLayout.doc.ts +20 -0
- package/src/FormLayout/FormLayout.tsx +69 -0
- package/src/FormLayout/index.ts +5 -0
- package/src/HStack/HStack.doc.ts +15 -0
- package/src/HStack/HStack.tsx +91 -0
- package/src/HStack/index.ts +6 -0
- package/src/Heading/Heading.tsx +17 -4
- package/src/HoverCard/HoverCard.doc.ts +31 -0
- package/src/HoverCard/HoverCard.tsx +121 -0
- package/src/HoverCard/index.ts +1 -0
- package/src/Icon/Icon.doc.ts +21 -0
- package/src/Icon/Icon.tsx +83 -0
- package/src/Icon/index.ts +1 -0
- package/src/Indicator/Indicator.doc.ts +21 -0
- package/src/Indicator/Indicator.tsx +99 -0
- package/src/Indicator/index.ts +1 -0
- package/src/InputGroup/InputGroup.doc.ts +23 -0
- package/src/InputGroup/InputGroup.tsx +73 -0
- package/src/InputGroup/index.ts +1 -0
- package/src/Item/Item.doc.ts +15 -0
- package/src/Item/Item.tsx +92 -0
- package/src/Item/index.ts +1 -0
- package/src/Kbd/Kbd.doc.ts +10 -0
- package/src/Kbd/Kbd.tsx +38 -0
- package/src/Kbd/index.ts +1 -0
- package/src/Layer/Layer.doc.ts +17 -0
- package/src/Layer/Layer.tsx +37 -0
- package/src/Layer/index.ts +1 -0
- package/src/Layout/Layout.doc.ts +33 -0
- package/src/Layout/Layout.tsx +190 -0
- package/src/Layout/index.ts +1 -0
- package/src/Lightbox/Lightbox.doc.ts +20 -0
- package/src/Lightbox/Lightbox.tsx +114 -0
- package/src/Lightbox/index.ts +1 -0
- package/src/List/List.doc.ts +27 -0
- package/src/List/List.tsx +94 -0
- package/src/List/index.ts +7 -0
- package/src/Markdown/Markdown.doc.ts +14 -0
- package/src/Markdown/Markdown.tsx +115 -0
- package/src/Markdown/index.ts +7 -0
- package/src/Markdown/parse.ts +135 -0
- package/src/MetadataList/MetadataList.doc.ts +15 -0
- package/src/MetadataList/MetadataList.tsx +87 -0
- package/src/MetadataList/index.ts +6 -0
- package/src/MetricGrid/MetricGrid.tsx +31 -9
- package/src/MobileNav/MobileNav.doc.ts +15 -0
- package/src/MobileNav/MobileNav.tsx +169 -0
- package/src/MobileNav/index.ts +1 -0
- package/src/MoreMenu/MoreMenu.doc.ts +19 -0
- package/src/MoreMenu/MoreMenu.tsx +67 -0
- package/src/MoreMenu/index.ts +1 -0
- package/src/MultiSelector/MultiSelector.doc.ts +23 -0
- package/src/MultiSelector/MultiSelector.tsx +89 -0
- package/src/MultiSelector/index.ts +1 -0
- package/src/NavIcon/NavIcon.doc.ts +10 -0
- package/src/NavIcon/NavIcon.tsx +45 -0
- package/src/NavIcon/index.ts +1 -0
- package/src/NavItem/NavItem.doc.ts +16 -0
- package/src/NavItem/NavItem.tsx +146 -0
- package/src/NavItem/index.ts +1 -0
- package/src/NavMenu/NavMenu.doc.ts +18 -0
- package/src/NavMenu/NavMenu.tsx +68 -0
- package/src/NavMenu/index.ts +4 -0
- package/src/NavMenu/orientation.ts +20 -0
- package/src/NumberInput/NumberInput.doc.ts +22 -0
- package/src/NumberInput/NumberInput.tsx +286 -0
- package/src/NumberInput/index.ts +1 -0
- package/src/Numeral/Numeral.doc.ts +10 -0
- package/src/Numeral/Numeral.tsx +34 -0
- package/src/Numeral/index.ts +1 -0
- package/src/Outline/Outline.doc.ts +14 -0
- package/src/Outline/Outline.tsx +124 -0
- package/src/Outline/index.ts +1 -0
- package/src/OverflowList/OverflowList.doc.ts +22 -0
- package/src/OverflowList/OverflowList.tsx +115 -0
- package/src/OverflowList/index.ts +5 -0
- package/src/Overlay/Overlay.doc.ts +23 -0
- package/src/Overlay/Overlay.tsx +122 -0
- package/src/Overlay/index.ts +1 -0
- package/src/Pagination/Pagination.doc.ts +28 -0
- package/src/Pagination/Pagination.tsx +259 -0
- package/src/Pagination/index.ts +1 -0
- package/src/Popover/Popover.doc.ts +27 -0
- package/src/Popover/Popover.tsx +122 -0
- package/src/Popover/index.ts +1 -0
- package/src/PowerSearch/PowerSearch.doc.ts +20 -0
- package/src/PowerSearch/PowerSearch.tsx +235 -0
- package/src/PowerSearch/index.ts +5 -0
- package/src/ProgressBar/ProgressBar.doc.ts +16 -0
- package/src/ProgressBar/ProgressBar.tsx +98 -0
- package/src/ProgressBar/index.ts +1 -0
- package/src/RadioList/RadioList.doc.ts +22 -0
- package/src/RadioList/RadioList.tsx +244 -0
- package/src/RadioList/index.ts +1 -0
- package/src/Resizable/Resizable.doc.ts +24 -0
- package/src/Resizable/Resizable.tsx +118 -0
- package/src/Resizable/index.ts +1 -0
- package/src/ResizeHandle/ResizeHandle.doc.ts +21 -0
- package/src/ResizeHandle/ResizeHandle.tsx +162 -0
- package/src/ResizeHandle/index.ts +5 -0
- package/src/SegmentedControl/SegmentedControl.tsx +36 -7
- package/src/SelectableCard/SelectableCard.doc.ts +16 -0
- package/src/SelectableCard/SelectableCard.tsx +252 -0
- package/src/SelectableCard/index.ts +1 -0
- package/src/Selector/Selector.doc.ts +22 -0
- package/src/Selector/Selector.tsx +206 -0
- package/src/Selector/index.ts +1 -0
- package/src/SideNav/SideNav.doc.ts +29 -0
- package/src/SideNav/SideNav.tsx +110 -0
- package/src/SideNav/index.ts +6 -0
- package/src/Skeleton/Skeleton.doc.ts +1 -1
- package/src/Skeleton/Skeleton.tsx +6 -13
- package/src/Slider/Slider.doc.ts +24 -0
- package/src/Slider/Slider.tsx +264 -0
- package/src/Slider/index.ts +1 -0
- package/src/Spinner/Spinner.tsx +15 -4
- package/src/StatusDot/StatusDot.tsx +13 -2
- package/src/Switch/Switch.doc.ts +19 -0
- package/src/Switch/Switch.tsx +152 -0
- package/src/Switch/index.ts +1 -0
- package/src/TabList/TabList.doc.ts +28 -0
- package/src/TabList/TabList.tsx +151 -0
- package/src/TabList/index.ts +1 -0
- package/src/Table/Table.doc.ts +15 -1
- package/src/Table/Table.tsx +95 -17
- package/src/Text/Text.tsx +1 -0
- package/src/TextArea/TextArea.tsx +21 -4
- package/src/TextInput/TextInput.tsx +11 -3
- package/src/Thumbnail/Thumbnail.doc.ts +20 -0
- package/src/Thumbnail/Thumbnail.tsx +94 -0
- package/src/Thumbnail/index.ts +5 -0
- package/src/TimeInput/TimeInput.doc.ts +16 -0
- package/src/TimeInput/TimeInput.tsx +9 -0
- package/src/TimeInput/index.ts +1 -0
- package/src/Timestamp/Timestamp.doc.ts +15 -0
- package/src/Timestamp/Timestamp.tsx +52 -0
- package/src/Timestamp/index.ts +1 -0
- package/src/Toast/Toast.doc.ts +35 -0
- package/src/Toast/Toast.tsx +271 -0
- package/src/Toast/index.ts +9 -0
- package/src/Toggle/Toggle.tsx +49 -23
- package/src/ToggleButton/ToggleButton.doc.ts +21 -0
- package/src/ToggleButton/ToggleButton.tsx +163 -0
- package/src/ToggleButton/index.ts +1 -0
- package/src/ToggleButtonGroup/ToggleButtonGroup.doc.ts +22 -0
- package/src/ToggleButtonGroup/ToggleButtonGroup.tsx +108 -0
- package/src/ToggleButtonGroup/index.ts +5 -0
- package/src/Token/Token.doc.ts +20 -0
- package/src/Token/Token.tsx +131 -0
- package/src/Token/index.ts +1 -0
- package/src/Tokenizer/Tokenizer.doc.ts +21 -0
- package/src/Tokenizer/Tokenizer.tsx +168 -0
- package/src/Tokenizer/index.ts +1 -0
- package/src/Toolbar/Toolbar.doc.ts +20 -0
- package/src/Toolbar/Toolbar.tsx +74 -0
- package/src/Toolbar/index.ts +1 -0
- package/src/Tooltip/Tooltip.doc.ts +22 -0
- package/src/Tooltip/Tooltip.tsx +166 -0
- package/src/Tooltip/index.ts +1 -0
- package/src/TopNav/TopNav.doc.ts +20 -0
- package/src/TopNav/TopNav.tsx +80 -0
- package/src/TopNav/index.ts +1 -0
- package/src/TopNavMegaMenu/TopNavMegaMenu.doc.ts +36 -0
- package/src/TopNavMegaMenu/TopNavMegaMenu.tsx +251 -0
- package/src/TopNavMegaMenu/index.ts +7 -0
- package/src/TopNavMenu/TopNavMenu.doc.ts +22 -0
- package/src/TopNavMenu/TopNavMenu.tsx +166 -0
- package/src/TopNavMenu/index.ts +1 -0
- package/src/TreeList/TreeList.doc.ts +20 -0
- package/src/TreeList/TreeList.tsx +265 -0
- package/src/TreeList/index.ts +1 -0
- package/src/Typeahead/Typeahead.doc.ts +22 -0
- package/src/Typeahead/Typeahead.tsx +312 -0
- package/src/Typeahead/index.ts +5 -0
- package/src/TypeaheadItem/TypeaheadItem.doc.ts +18 -0
- package/src/TypeaheadItem/TypeaheadItem.tsx +105 -0
- package/src/TypeaheadItem/index.ts +1 -0
- package/src/VStack/VStack.doc.ts +13 -0
- package/src/VStack/VStack.tsx +12 -0
- package/src/VStack/index.ts +1 -0
- package/src/authoring.stylex.ts +7 -0
- package/src/docs/index.ts +306 -0
- package/src/hooks/focusableSelector.ts +65 -0
- package/src/hooks/index.ts +31 -0
- package/src/hooks/useAnchoredPosition.ts +176 -0
- package/src/hooks/useAnnounce.ts +49 -0
- package/src/hooks/useClipboard.ts +48 -0
- package/src/hooks/useDevWarning.ts +24 -0
- package/src/hooks/useFocusTrap.ts +62 -0
- package/src/hooks/useHotkeys.ts +81 -0
- package/src/hooks/useIsomorphicLayoutEffect.ts +8 -0
- package/src/hooks/useListFocus.ts +75 -0
- package/src/hooks/useMediaQuery.ts +35 -0
- package/src/hooks/useScrollLock.ts +28 -0
- package/src/i18n/Internationalization.doc.ts +16 -0
- package/src/i18n/Internationalization.tsx +66 -0
- package/src/i18n/index.ts +8 -0
- package/src/i18n/messages.ts +51 -0
- package/src/index.ts +271 -0
- package/src/navigation/LinkProvider.tsx +58 -4
- package/src/scrolling/index.ts +1 -0
- package/src/scrolling/scrolling.ts +25 -0
- package/src/styles/global.stylex.ts +1 -0
- package/src/theme/Theme.tsx +66 -3
- package/src/theme/index.ts +1 -0
- package/src/tokens/contracts.ts +16 -2
- package/src/utils/clamp.ts +4 -0
- package/src/utils/index.ts +3 -0
- package/src/utils/mergeIds.ts +11 -0
- package/src/utils/resolveInvalid.ts +10 -0
- package/dist/components/Alert.d.ts +0 -7
- package/dist/components/Alert.doc.js +0 -15
- package/dist/components/Alert.js +0 -149
- package/dist/components/AsyncState.d.ts +0 -30
- package/dist/components/AsyncState.doc.js +0 -16
- package/dist/components/AsyncState.js +0 -36
- package/dist/components/Badge.d.ts +0 -10
- package/dist/components/Badge.doc.js +0 -12
- package/dist/components/Badge.js +0 -58
- package/dist/components/Button.d.ts +0 -18
- package/dist/components/Button.doc.js +0 -18
- package/dist/components/Button.js +0 -151
- package/dist/components/Card.d.ts +0 -6
- package/dist/components/Card.doc.js +0 -15
- package/dist/components/Card.js +0 -41
- package/dist/components/CardFooter.d.ts +0 -3
- package/dist/components/CardFooter.doc.d.ts +0 -11
- package/dist/components/CardFooter.doc.js +0 -12
- package/dist/components/CardFooter.js +0 -16
- package/dist/components/CardHeader.d.ts +0 -3
- package/dist/components/CardHeader.doc.d.ts +0 -11
- package/dist/components/CardHeader.doc.js +0 -12
- package/dist/components/CardHeader.js +0 -16
- package/dist/components/Center.d.ts +0 -3
- package/dist/components/Center.doc.d.ts +0 -11
- package/dist/components/Center.doc.js +0 -12
- package/dist/components/Center.js +0 -15
- package/dist/components/Divider.d.ts +0 -3
- package/dist/components/Divider.doc.d.ts +0 -11
- package/dist/components/Divider.doc.js +0 -12
- package/dist/components/Divider.js +0 -12
- package/dist/components/EmptyState.d.ts +0 -11
- package/dist/components/EmptyState.doc.d.ts +0 -16
- package/dist/components/EmptyState.doc.js +0 -25
- package/dist/components/EmptyState.js +0 -55
- package/dist/components/Field.d.ts +0 -21
- package/dist/components/Field.doc.d.ts +0 -16
- package/dist/components/Field.doc.js +0 -28
- package/dist/components/Field.js +0 -117
- package/dist/components/Grid.d.ts +0 -7
- package/dist/components/Grid.doc.js +0 -15
- package/dist/components/Grid.js +0 -76
- package/dist/components/Heading.d.ts +0 -293
- package/dist/components/Heading.doc.d.ts +0 -16
- package/dist/components/Heading.doc.js +0 -19
- package/dist/components/Heading.js +0 -46
- package/dist/components/IconButton.d.ts +0 -9
- package/dist/components/IconButton.doc.d.ts +0 -16
- package/dist/components/IconButton.doc.js +0 -22
- package/dist/components/IconButton.js +0 -11
- package/dist/components/MetricGrid.d.ts +0 -10
- package/dist/components/MetricGrid.doc.d.ts +0 -12
- package/dist/components/MetricGrid.doc.js +0 -13
- package/dist/components/MetricGrid.js +0 -37
- package/dist/components/Section.d.ts +0 -6
- package/dist/components/Section.doc.d.ts +0 -11
- package/dist/components/Section.doc.js +0 -12
- package/dist/components/Section.js +0 -49
- package/dist/components/SegmentedControl.d.ts +0 -31
- package/dist/components/SegmentedControl.doc.d.ts +0 -16
- package/dist/components/SegmentedControl.doc.js +0 -34
- package/dist/components/SegmentedControl.js +0 -108
- package/dist/components/Skeleton.d.ts +0 -5
- package/dist/components/Skeleton.doc.d.ts +0 -11
- package/dist/components/Skeleton.doc.js +0 -12
- package/dist/components/Skeleton.js +0 -20
- package/dist/components/Spinner.d.ts +0 -6
- package/dist/components/Spinner.doc.d.ts +0 -12
- package/dist/components/Spinner.doc.js +0 -13
- package/dist/components/Spinner.js +0 -25
- package/dist/components/Stack.d.ts +0 -7
- package/dist/components/Stack.doc.d.ts +0 -11
- package/dist/components/Stack.doc.js +0 -15
- package/dist/components/StatusDot.d.ts +0 -8
- package/dist/components/StatusDot.doc.d.ts +0 -16
- package/dist/components/StatusDot.doc.js +0 -16
- package/dist/components/StatusDot.js +0 -46
- package/dist/components/Table.d.ts +0 -20
- package/dist/components/Table.doc.js +0 -94
- package/dist/components/Table.js +0 -205
- package/dist/components/Text.d.ts +0 -7
- package/dist/components/Text.doc.js +0 -15
- package/dist/components/Text.js +0 -50
- package/dist/components/TextArea.d.ts +0 -16
- package/dist/components/TextArea.doc.d.ts +0 -11
- package/dist/components/TextArea.doc.js +0 -30
- package/dist/components/TextArea.js +0 -47
- package/dist/components/TextInput.d.ts +0 -16
- package/dist/components/TextInput.doc.d.ts +0 -11
- package/dist/components/TextInput.doc.js +0 -30
- package/dist/components/TextInput.js +0 -49
- package/dist/components/Toggle.d.ts +0 -16
- package/dist/components/Toggle.doc.d.ts +0 -11
- package/dist/components/Toggle.doc.js +0 -21
- package/dist/components/Toggle.js +0 -64
- package/dist/components/VisuallyHidden.d.ts +0 -3
- package/dist/components/VisuallyHidden.doc.d.ts +0 -11
- package/dist/components/VisuallyHidden.doc.js +0 -12
- package/dist/components/VisuallyHidden.js +0 -15
- package/dist/components/index.d.ts +0 -27
- package/dist/components/index.js +0 -28
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { useEffect, useLayoutEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Runs layout work before paint in the browser and falls back to a plain
|
|
5
|
+
* effect on the server, where React cannot run layout effects at all.
|
|
6
|
+
*/
|
|
7
|
+
import "../styles/stylex.css";
|
|
8
|
+
export const useIsomorphicLayoutEffect = typeof window === 'undefined' ? useEffect : useLayoutEffect;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type KeyboardEvent, type RefObject } from 'react';
|
|
2
|
+
/** Axis a roving-focus collection reads its arrow keys along. */
|
|
3
|
+
export type ListOrientation = 'horizontal' | 'vertical';
|
|
4
|
+
/** Options controlling how roving focus moves through a collection. */
|
|
5
|
+
export interface ListFocusOptions {
|
|
6
|
+
readonly loop?: boolean;
|
|
7
|
+
readonly orientation?: ListOrientation;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Moves focus through a collection with arrow, Home, and End keys so the
|
|
11
|
+
* collection occupies a single stop in the page tab order.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useListFocus(ref: RefObject<HTMLElement | null>, { loop, orientation }?: ListFocusOptions): {
|
|
14
|
+
onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
|
15
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { useCallback } from 'react';
|
|
2
|
+
import { reachableElements } from './focusableSelector.js';
|
|
3
|
+
|
|
4
|
+
/** Axis a roving-focus collection reads its arrow keys along. */
|
|
5
|
+
import "../styles/stylex.css";
|
|
6
|
+
/** Options controlling how roving focus moves through a collection. */
|
|
7
|
+
const nextKeys = {
|
|
8
|
+
horizontal: 'ArrowRight',
|
|
9
|
+
vertical: 'ArrowDown'
|
|
10
|
+
};
|
|
11
|
+
const previousKeys = {
|
|
12
|
+
horizontal: 'ArrowLeft',
|
|
13
|
+
vertical: 'ArrowUp'
|
|
14
|
+
};
|
|
15
|
+
function clamp(index, length, loop) {
|
|
16
|
+
if (loop) {
|
|
17
|
+
return (index + length) % length;
|
|
18
|
+
}
|
|
19
|
+
return Math.min(Math.max(index, 0), length - 1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Moves focus through a collection with arrow, Home, and End keys so the
|
|
24
|
+
* collection occupies a single stop in the page tab order.
|
|
25
|
+
*/
|
|
26
|
+
export function useListFocus(ref, {
|
|
27
|
+
loop = true,
|
|
28
|
+
orientation = 'vertical'
|
|
29
|
+
} = {}) {
|
|
30
|
+
const onKeyDown = useCallback(event => {
|
|
31
|
+
const container = ref.current;
|
|
32
|
+
if (!container) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const items = reachableElements(container);
|
|
36
|
+
if (items.length === 0) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const current = items.indexOf(document.activeElement);
|
|
40
|
+
let target;
|
|
41
|
+
if (event.key === nextKeys[orientation]) {
|
|
42
|
+
target = clamp(current + 1, items.length, loop);
|
|
43
|
+
} else if (event.key === previousKeys[orientation]) {
|
|
44
|
+
target = clamp(current - 1, items.length, loop);
|
|
45
|
+
} else if (event.key === 'Home') {
|
|
46
|
+
target = 0;
|
|
47
|
+
} else if (event.key === 'End') {
|
|
48
|
+
target = items.length - 1;
|
|
49
|
+
}
|
|
50
|
+
if (target === undefined) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
event.preventDefault();
|
|
54
|
+
items[target]?.focus({
|
|
55
|
+
preventScroll: true
|
|
56
|
+
});
|
|
57
|
+
}, [loop, orientation, ref]);
|
|
58
|
+
return {
|
|
59
|
+
onKeyDown
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useCallback, useSyncExternalStore } from 'react';
|
|
2
|
+
import "../styles/stylex.css";
|
|
3
|
+
function supportsMatchMedia() {
|
|
4
|
+
return typeof window !== 'undefined' && typeof window.matchMedia === 'function';
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Tracks a CSS media query as React state. Server renders report `false` so
|
|
9
|
+
* the first client paint stays consistent with the markup React sent.
|
|
10
|
+
*/
|
|
11
|
+
export function useMediaQuery(query) {
|
|
12
|
+
const subscribe = useCallback(onStoreChange => {
|
|
13
|
+
if (!supportsMatchMedia()) {
|
|
14
|
+
return () => {};
|
|
15
|
+
}
|
|
16
|
+
const list = window.matchMedia(query);
|
|
17
|
+
list.addEventListener('change', onStoreChange);
|
|
18
|
+
return () => {
|
|
19
|
+
list.removeEventListener('change', onStoreChange);
|
|
20
|
+
};
|
|
21
|
+
}, [query]);
|
|
22
|
+
const getSnapshot = useCallback(() => supportsMatchMedia() ? window.matchMedia(query).matches : false, [query]);
|
|
23
|
+
return useSyncExternalStore(subscribe, getSnapshot, () => false);
|
|
24
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Freezes document scrolling while `active` is true and compensates for the
|
|
5
|
+
* scrollbar it removes, so the page behind an overlay does not shift.
|
|
6
|
+
*/
|
|
7
|
+
import "../styles/stylex.css";
|
|
8
|
+
export function useScrollLock(active) {
|
|
9
|
+
useIsomorphicLayoutEffect(() => {
|
|
10
|
+
if (!active) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
const {
|
|
14
|
+
body,
|
|
15
|
+
documentElement
|
|
16
|
+
} = document;
|
|
17
|
+
const previousOverflow = body.style.overflow;
|
|
18
|
+
const previousPaddingInlineEnd = body.style.paddingInlineEnd;
|
|
19
|
+
const scrollbarWidth = window.innerWidth - documentElement.clientWidth;
|
|
20
|
+
body.style.overflow = 'hidden';
|
|
21
|
+
if (scrollbarWidth > 0) {
|
|
22
|
+
body.style.paddingInlineEnd = `${scrollbarWidth}px`;
|
|
23
|
+
}
|
|
24
|
+
return () => {
|
|
25
|
+
body.style.overflow = previousOverflow;
|
|
26
|
+
body.style.paddingInlineEnd = previousPaddingInlineEnd;
|
|
27
|
+
};
|
|
28
|
+
}, [active]);
|
|
29
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type Messages } from './messages.js';
|
|
3
|
+
/** The locale settings and strings available to descendants. */
|
|
4
|
+
export interface InternationalizationValue {
|
|
5
|
+
readonly direction: 'ltr' | 'rtl';
|
|
6
|
+
readonly locale: string;
|
|
7
|
+
readonly messages: Messages;
|
|
8
|
+
}
|
|
9
|
+
/** Props for the locale and string provider. */
|
|
10
|
+
export interface InternationalizationProviderProps {
|
|
11
|
+
readonly children: ReactNode;
|
|
12
|
+
readonly direction?: 'ltr' | 'rtl';
|
|
13
|
+
readonly locale?: string;
|
|
14
|
+
readonly messages?: Messages;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Supplies the locale, writing direction, and strings the system speaks. The
|
|
18
|
+
* library ships English and owns no translation pipeline; a host replaces the
|
|
19
|
+
* whole message set for another language.
|
|
20
|
+
*/
|
|
21
|
+
export declare function InternationalizationProvider({ children, direction, locale, messages, }: InternationalizationProviderProps): import("react").JSX.Element;
|
|
22
|
+
/**
|
|
23
|
+
* Reads the active locale settings. Without a provider it reports the built-in
|
|
24
|
+
* English defaults, so a component never has to guard for a missing host.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useInternationalization(): InternationalizationValue;
|
|
27
|
+
/** Reads one string by key from the active message set. */
|
|
28
|
+
export declare function useMessage(key: keyof Messages): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "../styles/stylex.css";
|
|
2
|
+
export const internationalizationProviderDoc = {
|
|
3
|
+
name: 'InternationalizationProvider',
|
|
4
|
+
description: 'Supplies the locale, writing direction, and system strings.',
|
|
5
|
+
props: [{
|
|
6
|
+
name: 'children',
|
|
7
|
+
description: 'Supplies the tree that reads the locale.'
|
|
8
|
+
}, {
|
|
9
|
+
name: 'direction',
|
|
10
|
+
description: 'Selects the writing direction.'
|
|
11
|
+
}, {
|
|
12
|
+
name: 'locale',
|
|
13
|
+
description: 'Names the active locale.'
|
|
14
|
+
}, {
|
|
15
|
+
name: 'messages',
|
|
16
|
+
description: 'Replaces every string the system speaks.'
|
|
17
|
+
}],
|
|
18
|
+
inheritedProps: ['None; the provider owns its language wrapper'],
|
|
19
|
+
example: '<InternationalizationProvider direction="rtl" locale="ar" messages={ar}>…</InternationalizationProvider>',
|
|
20
|
+
storyId: 'core-internationalization-provider--default'
|
|
21
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { createContext, useContext, useMemo } from 'react';
|
|
2
|
+
import { defaultMessages } from './messages.js';
|
|
3
|
+
|
|
4
|
+
/** The locale settings and strings available to descendants. */
|
|
5
|
+
import "../styles/stylex.css";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const InternationalizationContext = createContext(undefined);
|
|
8
|
+
|
|
9
|
+
/** Props for the locale and string provider. */
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Supplies the locale, writing direction, and strings the system speaks. The
|
|
13
|
+
* library ships English and owns no translation pipeline; a host replaces the
|
|
14
|
+
* whole message set for another language.
|
|
15
|
+
*/
|
|
16
|
+
export function InternationalizationProvider({
|
|
17
|
+
children,
|
|
18
|
+
direction = 'ltr',
|
|
19
|
+
locale = 'en',
|
|
20
|
+
messages = defaultMessages
|
|
21
|
+
}) {
|
|
22
|
+
const value = useMemo(() => ({
|
|
23
|
+
direction,
|
|
24
|
+
locale,
|
|
25
|
+
messages
|
|
26
|
+
}), [direction, locale, messages]);
|
|
27
|
+
return /*#__PURE__*/_jsx(InternationalizationContext.Provider, {
|
|
28
|
+
value: value,
|
|
29
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
30
|
+
dir: direction,
|
|
31
|
+
lang: locale,
|
|
32
|
+
children: children
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Reads the active locale settings. Without a provider it reports the built-in
|
|
39
|
+
* English defaults, so a component never has to guard for a missing host.
|
|
40
|
+
*/
|
|
41
|
+
export function useInternationalization() {
|
|
42
|
+
return useContext(InternationalizationContext) ?? {
|
|
43
|
+
direction: 'ltr',
|
|
44
|
+
locale: 'en',
|
|
45
|
+
messages: defaultMessages
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** Reads one string by key from the active message set. */
|
|
50
|
+
export function useMessage(key) {
|
|
51
|
+
return useInternationalization().messages[key];
|
|
52
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** Every string the system speaks on a host application's behalf. */
|
|
2
|
+
export interface Messages {
|
|
3
|
+
readonly back: string;
|
|
4
|
+
readonly calendarNextMonth: string;
|
|
5
|
+
readonly calendarPreviousMonth: string;
|
|
6
|
+
readonly carouselNext: string;
|
|
7
|
+
readonly carouselPrevious: string;
|
|
8
|
+
readonly chatToolCallDone: string;
|
|
9
|
+
readonly chatToolCallFailed: string;
|
|
10
|
+
readonly chatToolCallRunning: string;
|
|
11
|
+
readonly chatTranscriptEmpty: string;
|
|
12
|
+
readonly chatWaitingForReply: string;
|
|
13
|
+
readonly close: string;
|
|
14
|
+
readonly commandPaletteEmpty: string;
|
|
15
|
+
readonly commandPalettePlaceholder: string;
|
|
16
|
+
readonly fileInputEmpty: string;
|
|
17
|
+
readonly paginationNext: string;
|
|
18
|
+
readonly paginationPrevious: string;
|
|
19
|
+
readonly remove: string;
|
|
20
|
+
readonly resizeHandle: string;
|
|
21
|
+
readonly skipToContent: string;
|
|
22
|
+
readonly typeaheadEmpty: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The built-in English strings. A host that ships another language supplies a
|
|
26
|
+
* full replacement rather than a patch, so a missing key is a type error
|
|
27
|
+
* instead of an English word appearing mid-sentence.
|
|
28
|
+
*/
|
|
29
|
+
export declare const defaultMessages: Messages;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import "../styles/stylex.css";
|
|
2
|
+
/** Every string the system speaks on a host application's behalf. */
|
|
3
|
+
/**
|
|
4
|
+
* The built-in English strings. A host that ships another language supplies a
|
|
5
|
+
* full replacement rather than a patch, so a missing key is a type error
|
|
6
|
+
* instead of an English word appearing mid-sentence.
|
|
7
|
+
*/
|
|
8
|
+
export const defaultMessages = Object.freeze({
|
|
9
|
+
back: 'Back',
|
|
10
|
+
calendarNextMonth: 'Next month',
|
|
11
|
+
calendarPreviousMonth: 'Previous month',
|
|
12
|
+
carouselNext: 'Next',
|
|
13
|
+
carouselPrevious: 'Previous',
|
|
14
|
+
chatToolCallDone: 'Done',
|
|
15
|
+
chatToolCallFailed: 'Failed',
|
|
16
|
+
chatToolCallRunning: 'Running',
|
|
17
|
+
chatTranscriptEmpty: 'No messages yet',
|
|
18
|
+
chatWaitingForReply: 'Waiting for a reply',
|
|
19
|
+
close: 'Close',
|
|
20
|
+
commandPaletteEmpty: 'No commands match',
|
|
21
|
+
commandPalettePlaceholder: 'Search commands',
|
|
22
|
+
fileInputEmpty: 'No file selected',
|
|
23
|
+
paginationNext: 'Next page',
|
|
24
|
+
paginationPrevious: 'Previous page',
|
|
25
|
+
remove: 'Remove',
|
|
26
|
+
resizeHandle: 'Resize panel',
|
|
27
|
+
skipToContent: 'Skip to main content',
|
|
28
|
+
typeaheadEmpty: 'No matches'
|
|
29
|
+
});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,123 @@
|
|
|
1
1
|
export { tokenContract, tokenCustomProperties, tokenNames, validateThemeDefinition, type ThemeDefinition, type ThemeDefinitionCandidate, type TokenContract, type TokenName, } from './tokens/contracts.js';
|
|
2
2
|
export { globalStyles } from './styles/global.stylex.js';
|
|
3
3
|
export { Alert, type AlertProps } from './Alert/index.js';
|
|
4
|
+
export { AlertDialog, type AlertDialogProps } from './AlertDialog/index.js';
|
|
5
|
+
export { Banner, type BannerProps } from './Banner/index.js';
|
|
6
|
+
export { Blockquote, type BlockquoteProps } from './Blockquote/index.js';
|
|
7
|
+
export { Box, type BoxProps, type BoxRadius, type BoxSurface, } from './Box/index.js';
|
|
8
|
+
export { BottomSheet, type BottomSheetProps } from './BottomSheet/index.js';
|
|
9
|
+
export { BottomSheetSwitcher, type BottomSheetSwitcherProps, type BottomSheetSwitcherView, } from './BottomSheetSwitcher/index.js';
|
|
4
10
|
export { AsyncState, type AsyncStateProps, type AsyncStateValue, } from './AsyncState/index.js';
|
|
11
|
+
export { AppShell, type AppShellProps } from './AppShell/index.js';
|
|
12
|
+
export { AspectRatio, type AspectRatioProps } from './AspectRatio/index.js';
|
|
13
|
+
export { Avatar, type AvatarProps, type AvatarSize } from './Avatar/index.js';
|
|
14
|
+
export { AvatarGroup, type AvatarGroupMember, type AvatarGroupProps, } from './AvatarGroup/index.js';
|
|
5
15
|
export { Badge, type BadgeProps, type BadgeTone, type StatusTone, } from './Badge/index.js';
|
|
16
|
+
export { Breadcrumbs, type BreadcrumbItem, type BreadcrumbsProps, } from './Breadcrumbs/index.js';
|
|
17
|
+
export { ButtonGroup, type ButtonGroupProps } from './ButtonGroup/index.js';
|
|
6
18
|
export { Button, type ButtonProps, type ButtonVariant, type ControlSize, } from './Button/index.js';
|
|
19
|
+
export { Calendar, type CalendarProps } from './Calendar/index.js';
|
|
7
20
|
export { Card, type CardElevation, type CardProps } from './Card/index.js';
|
|
8
21
|
export { CardFooter, type CardFooterProps } from './CardFooter/index.js';
|
|
9
22
|
export { CardHeader, type CardHeaderProps } from './CardHeader/index.js';
|
|
23
|
+
export { Carousel, type CarouselProps } from './Carousel/index.js';
|
|
24
|
+
export { ChatComposer, ChatLayout, ChatMessage, ChatMessageList, ChatMessageMetadata, ChatSystemMessage, ChatToolCalls, type ChatAuthor, type ChatComposerProps, type ChatLayoutProps, type ChatMessageListProps, type ChatMessageMetadataProps, type ChatMessageProps, type ChatMetadataEntry, type ChatSystemMessageProps, type ChatToolCall, type ChatToolCallsProps, } from './Chat/index.js';
|
|
10
25
|
export { Center, type CenterProps } from './Center/index.js';
|
|
26
|
+
export { CheckboxInput, type CheckboxInputProps } from './CheckboxInput/index.js';
|
|
27
|
+
export { CheckboxList, type CheckboxListProps, type CheckboxOption, } from './CheckboxList/index.js';
|
|
28
|
+
export { Collapsible, type CollapsibleProps } from './Collapsible/index.js';
|
|
29
|
+
export { CommandPalette, type Command, type CommandPaletteProps, } from './CommandPalette/index.js';
|
|
30
|
+
export { ComplexSelector, type ComplexSelectorProps, type SelectorGroup, } from './ComplexSelector/index.js';
|
|
31
|
+
export { ContextMenu, type ContextMenuProps } from './ContextMenu/index.js';
|
|
32
|
+
export { DateInput, type DateInputProps } from './DateInput/index.js';
|
|
33
|
+
export { DatePicker, type DatePickerProps } from './DatePicker/index.js';
|
|
34
|
+
export { DateRangeInput, type DateRange, type DateRangeInputProps, } from './DateRangeInput/index.js';
|
|
35
|
+
export { DateTimeInput, type DateTimeInputProps } from './DateTimeInput/index.js';
|
|
36
|
+
export { Citation, type CitationProps } from './Citation/index.js';
|
|
37
|
+
export { ClickableCard, type ClickableCardProps } from './ClickableCard/index.js';
|
|
38
|
+
export { Code, type CodeProps } from './Code/index.js';
|
|
39
|
+
export { CodeBlock, type CodeBlockProps } from './CodeBlock/index.js';
|
|
40
|
+
export { Dialog, type DialogProps, type DialogSize } from './Dialog/index.js';
|
|
11
41
|
export { Divider, type DividerProps } from './Divider/index.js';
|
|
42
|
+
export { DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, } from './DropdownMenu/index.js';
|
|
12
43
|
export { EmptyState, type EmptyStateProps, type EmptyStateSize, } from './EmptyState/index.js';
|
|
44
|
+
export { Eyebrow, type EyebrowProps, type EyebrowTone } from './Eyebrow/index.js';
|
|
13
45
|
export { Field, type FieldNecessity, type FieldProps } from './Field/index.js';
|
|
46
|
+
export { FieldStatus, type FieldStatusProps } from './FieldStatus/index.js';
|
|
47
|
+
export { FileInput, type FileInputProps } from './FileInput/index.js';
|
|
48
|
+
export { FormLayout, type FormColumns, type FormLayoutProps, } from './FormLayout/index.js';
|
|
14
49
|
export { Grid, type GridProps } from './Grid/index.js';
|
|
50
|
+
export { HStack, type HStackAlign, type HStackJustify, type HStackProps, } from './HStack/index.js';
|
|
51
|
+
export { HoverCard, type HoverCardProps } from './HoverCard/index.js';
|
|
52
|
+
export { Indicator, type IndicatorProps } from './Indicator/index.js';
|
|
53
|
+
export { InputGroup, type InputGroupProps } from './InputGroup/index.js';
|
|
15
54
|
export { Heading, type HeadingFamily, type HeadingProps, } from './Heading/index.js';
|
|
55
|
+
export { Icon, type IconProps, type IconSize, type IconTone, } from './Icon/index.js';
|
|
16
56
|
export { IconButton, type IconButtonProps } from './IconButton/index.js';
|
|
57
|
+
export { Item, type ItemProps } from './Item/index.js';
|
|
58
|
+
export { Kbd, type KbdProps } from './Kbd/index.js';
|
|
59
|
+
export { Layer, type LayerProps } from './Layer/index.js';
|
|
60
|
+
export { Lightbox, type LightboxProps } from './Lightbox/index.js';
|
|
61
|
+
export { Layout, type LayoutProps } from './Layout/index.js';
|
|
62
|
+
export { List, ListItem, type ListItemProps, type ListProps, type ListVariant, } from './List/index.js';
|
|
63
|
+
export { Markdown, parseInline, parseMarkdown, type BlockNode, type InlineNode, type MarkdownProps, } from './Markdown/index.js';
|
|
64
|
+
export { MetadataList, type MetadataEntry, type MetadataListLayout, type MetadataListProps, } from './MetadataList/index.js';
|
|
17
65
|
export { MetricGrid, type MetricGridItem, type MetricGridProps, } from './MetricGrid/index.js';
|
|
66
|
+
export { MobileNav, type MobileNavProps } from './MobileNav/index.js';
|
|
67
|
+
export { MoreMenu, type MoreMenuProps } from './MoreMenu/index.js';
|
|
68
|
+
export { NavIcon, type NavIconProps } from './NavIcon/index.js';
|
|
69
|
+
export { NavItem, type NavItemProps } from './NavItem/index.js';
|
|
70
|
+
export { MultiSelector, type MultiSelectorProps } from './MultiSelector/index.js';
|
|
71
|
+
export { NavMenu, type NavMenuOrientation, type NavMenuProps, } from './NavMenu/index.js';
|
|
72
|
+
export { NumberInput, type NumberInputProps } from './NumberInput/index.js';
|
|
73
|
+
export { Numeral, type NumeralProps } from './Numeral/index.js';
|
|
74
|
+
export { OverflowList, type OverflowEntry, type OverflowListProps, } from './OverflowList/index.js';
|
|
75
|
+
export { Outline, type OutlineEntry, type OutlineProps, } from './Outline/index.js';
|
|
76
|
+
export { Overlay, type OverlayProps } from './Overlay/index.js';
|
|
77
|
+
export { Pagination, type PaginationProps } from './Pagination/index.js';
|
|
78
|
+
export { Popover, type PopoverProps } from './Popover/index.js';
|
|
79
|
+
export { PowerSearch, type PowerSearchProps, type SearchFilter, } from './PowerSearch/index.js';
|
|
80
|
+
export { ProgressBar, type ProgressBarProps } from './ProgressBar/index.js';
|
|
81
|
+
export { RadioList, type RadioListProps, type RadioOption, } from './RadioList/index.js';
|
|
18
82
|
export { Section, type SectionProps } from './Section/index.js';
|
|
19
83
|
export { SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, } from './SegmentedControl/index.js';
|
|
84
|
+
export { Resizable, type ResizableProps } from './Resizable/index.js';
|
|
85
|
+
export { ResizeHandle, type ResizeHandleOrientation, type ResizeHandleProps, } from './ResizeHandle/index.js';
|
|
86
|
+
export { SelectableCard, type SelectableCardProps, } from './SelectableCard/index.js';
|
|
87
|
+
export { Selector, type SelectorOption, type SelectorProps, } from './Selector/index.js';
|
|
88
|
+
export { SideNav, SideNavSection, type SideNavProps, type SideNavSectionProps, } from './SideNav/index.js';
|
|
20
89
|
export { Skeleton, type SkeletonProps } from './Skeleton/index.js';
|
|
90
|
+
export { Slider, type SliderProps } from './Slider/index.js';
|
|
21
91
|
export { Spinner, type SpinnerProps } from './Spinner/index.js';
|
|
22
92
|
export { Stack, type Space, type StackProps } from './Stack/index.js';
|
|
23
93
|
export { StatusDot, type StatusDotProps } from './StatusDot/index.js';
|
|
94
|
+
export { Switch, type SwitchProps } from './Switch/index.js';
|
|
95
|
+
export { TabList, type TabListProps, type TabOption } from './TabList/index.js';
|
|
96
|
+
export { Thumbnail, type ThumbnailProps, type ThumbnailSize, } from './Thumbnail/index.js';
|
|
97
|
+
export { Timestamp, type TimestampProps } from './Timestamp/index.js';
|
|
24
98
|
export { Table, TableBody, TableCaption, TableCell, TableHead, TableHeaderCell, TableRow, type TableBodyProps, type TableCaptionProps, type TableCellProps, type TableDensity, type TableDividers, type TableHeadProps, type TableHeaderCellProps, type TableProps, type TableRowProps, } from './Table/index.js';
|
|
25
99
|
export { Text, type TextProps, type TextTone } from './Text/index.js';
|
|
26
100
|
export { TextArea, type TextAreaProps } from './TextArea/index.js';
|
|
27
101
|
export { TextInput, type TextInputProps } from './TextInput/index.js';
|
|
102
|
+
export { TimeInput, type TimeInputProps } from './TimeInput/index.js';
|
|
103
|
+
export { Toast, ToastProvider, useToast, type ToastContextValue, type ToastOptions, type ToastProps, type ToastProviderProps, } from './Toast/index.js';
|
|
28
104
|
export { Toggle, type ToggleProps } from './Toggle/index.js';
|
|
105
|
+
export { Token, type TokenProps } from './Token/index.js';
|
|
106
|
+
export { Tokenizer, type TokenizerProps } from './Tokenizer/index.js';
|
|
107
|
+
export { ToggleButton, type ToggleButtonProps } from './ToggleButton/index.js';
|
|
108
|
+
export { ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleOption, } from './ToggleButtonGroup/index.js';
|
|
109
|
+
export { Toolbar, type ToolbarProps } from './Toolbar/index.js';
|
|
110
|
+
export { Tooltip, type TooltipProps } from './Tooltip/index.js';
|
|
111
|
+
export { TopNav, type TopNavProps } from './TopNav/index.js';
|
|
112
|
+
export { TopNavMegaMenu, TopNavMegaMenuFeaturedCard, type MegaMenuColumn, type TopNavMegaMenuFeaturedCardProps, type TopNavMegaMenuProps, } from './TopNavMegaMenu/index.js';
|
|
113
|
+
export { TopNavMenu, type TopNavMenuProps } from './TopNavMenu/index.js';
|
|
114
|
+
export { TreeList, type TreeListProps, type TreeNode } from './TreeList/index.js';
|
|
115
|
+
export { Typeahead, type TypeaheadOption, type TypeaheadProps, } from './Typeahead/index.js';
|
|
116
|
+
export { TypeaheadItem, type TypeaheadItemProps } from './TypeaheadItem/index.js';
|
|
117
|
+
export { VStack, type VStackProps } from './VStack/index.js';
|
|
29
118
|
export { VisuallyHidden, type VisuallyHiddenProps, } from './VisuallyHidden/index.js';
|
|
30
|
-
export { ThemeProvider, useTheme, type ThemeContextValue, type ThemePersistence, type ThemeProviderProps, } from './theme/index.js';
|
|
119
|
+
export { ThemeProvider, useTheme, type ColorMode, type ThemeContextValue, type ThemePersistence, type ThemeProviderProps, } from './theme/index.js';
|
|
120
|
+
export { InternationalizationProvider, defaultMessages, useInternationalization, useMessage, type InternationalizationProviderProps, type InternationalizationValue, type Messages, } from './i18n/index.js';
|
|
121
|
+
export { clamp, mergeIds, resolveInvalid } from './utils/index.js';
|
|
122
|
+
export { focusableElements, focusableSelector, reachableElements, reachableSelector, useAnnounce, useClipboard, useDevWarning, useFocusTrap, useHotkeys, useIsomorphicLayoutEffect, useListFocus, useMediaQuery, useScrollLock, type AnnouncePoliteness, type ClipboardState, type HotkeyBindings, type HotkeyOptions, type ListFocusOptions, type ListOrientation, } from './hooks/index.js';
|
|
31
123
|
export { Link, LinkProvider, type LinkProps, type LinkProviderProps, type LinkRenderer, } from './navigation/index.js';
|
package/dist/index.js
CHANGED
|
@@ -2,31 +2,123 @@ import "./styles/stylex.css";
|
|
|
2
2
|
export { tokenContract, tokenCustomProperties, tokenNames, validateThemeDefinition } from './tokens/contracts.js';
|
|
3
3
|
export { globalStyles } from './styles/global.stylex.js';
|
|
4
4
|
export { Alert } from './Alert/index.js';
|
|
5
|
+
export { AlertDialog } from './AlertDialog/index.js';
|
|
6
|
+
export { Banner } from './Banner/index.js';
|
|
7
|
+
export { Blockquote } from './Blockquote/index.js';
|
|
8
|
+
export { Box } from './Box/index.js';
|
|
9
|
+
export { BottomSheet } from './BottomSheet/index.js';
|
|
10
|
+
export { BottomSheetSwitcher } from './BottomSheetSwitcher/index.js';
|
|
5
11
|
export { AsyncState } from './AsyncState/index.js';
|
|
12
|
+
export { AppShell } from './AppShell/index.js';
|
|
13
|
+
export { AspectRatio } from './AspectRatio/index.js';
|
|
14
|
+
export { Avatar } from './Avatar/index.js';
|
|
15
|
+
export { AvatarGroup } from './AvatarGroup/index.js';
|
|
6
16
|
export { Badge } from './Badge/index.js';
|
|
17
|
+
export { Breadcrumbs } from './Breadcrumbs/index.js';
|
|
18
|
+
export { ButtonGroup } from './ButtonGroup/index.js';
|
|
7
19
|
export { Button } from './Button/index.js';
|
|
20
|
+
export { Calendar } from './Calendar/index.js';
|
|
8
21
|
export { Card } from './Card/index.js';
|
|
9
22
|
export { CardFooter } from './CardFooter/index.js';
|
|
10
23
|
export { CardHeader } from './CardHeader/index.js';
|
|
24
|
+
export { Carousel } from './Carousel/index.js';
|
|
25
|
+
export { ChatComposer, ChatLayout, ChatMessage, ChatMessageList, ChatMessageMetadata, ChatSystemMessage, ChatToolCalls } from './Chat/index.js';
|
|
11
26
|
export { Center } from './Center/index.js';
|
|
27
|
+
export { CheckboxInput } from './CheckboxInput/index.js';
|
|
28
|
+
export { CheckboxList } from './CheckboxList/index.js';
|
|
29
|
+
export { Collapsible } from './Collapsible/index.js';
|
|
30
|
+
export { CommandPalette } from './CommandPalette/index.js';
|
|
31
|
+
export { ComplexSelector } from './ComplexSelector/index.js';
|
|
32
|
+
export { ContextMenu } from './ContextMenu/index.js';
|
|
33
|
+
export { DateInput } from './DateInput/index.js';
|
|
34
|
+
export { DatePicker } from './DatePicker/index.js';
|
|
35
|
+
export { DateRangeInput } from './DateRangeInput/index.js';
|
|
36
|
+
export { DateTimeInput } from './DateTimeInput/index.js';
|
|
37
|
+
export { Citation } from './Citation/index.js';
|
|
38
|
+
export { ClickableCard } from './ClickableCard/index.js';
|
|
39
|
+
export { Code } from './Code/index.js';
|
|
40
|
+
export { CodeBlock } from './CodeBlock/index.js';
|
|
41
|
+
export { Dialog } from './Dialog/index.js';
|
|
12
42
|
export { Divider } from './Divider/index.js';
|
|
43
|
+
export { DropdownMenu, DropdownMenuItem } from './DropdownMenu/index.js';
|
|
13
44
|
export { EmptyState } from './EmptyState/index.js';
|
|
45
|
+
export { Eyebrow } from './Eyebrow/index.js';
|
|
14
46
|
export { Field } from './Field/index.js';
|
|
47
|
+
export { FieldStatus } from './FieldStatus/index.js';
|
|
48
|
+
export { FileInput } from './FileInput/index.js';
|
|
49
|
+
export { FormLayout } from './FormLayout/index.js';
|
|
15
50
|
export { Grid } from './Grid/index.js';
|
|
51
|
+
export { HStack } from './HStack/index.js';
|
|
52
|
+
export { HoverCard } from './HoverCard/index.js';
|
|
53
|
+
export { Indicator } from './Indicator/index.js';
|
|
54
|
+
export { InputGroup } from './InputGroup/index.js';
|
|
16
55
|
export { Heading } from './Heading/index.js';
|
|
56
|
+
export { Icon } from './Icon/index.js';
|
|
17
57
|
export { IconButton } from './IconButton/index.js';
|
|
58
|
+
export { Item } from './Item/index.js';
|
|
59
|
+
export { Kbd } from './Kbd/index.js';
|
|
60
|
+
export { Layer } from './Layer/index.js';
|
|
61
|
+
export { Lightbox } from './Lightbox/index.js';
|
|
62
|
+
export { Layout } from './Layout/index.js';
|
|
63
|
+
export { List, ListItem } from './List/index.js';
|
|
64
|
+
export { Markdown, parseInline, parseMarkdown } from './Markdown/index.js';
|
|
65
|
+
export { MetadataList } from './MetadataList/index.js';
|
|
18
66
|
export { MetricGrid } from './MetricGrid/index.js';
|
|
67
|
+
export { MobileNav } from './MobileNav/index.js';
|
|
68
|
+
export { MoreMenu } from './MoreMenu/index.js';
|
|
69
|
+
export { NavIcon } from './NavIcon/index.js';
|
|
70
|
+
export { NavItem } from './NavItem/index.js';
|
|
71
|
+
export { MultiSelector } from './MultiSelector/index.js';
|
|
72
|
+
export { NavMenu } from './NavMenu/index.js';
|
|
73
|
+
export { NumberInput } from './NumberInput/index.js';
|
|
74
|
+
export { Numeral } from './Numeral/index.js';
|
|
75
|
+
export { OverflowList } from './OverflowList/index.js';
|
|
76
|
+
export { Outline } from './Outline/index.js';
|
|
77
|
+
export { Overlay } from './Overlay/index.js';
|
|
78
|
+
export { Pagination } from './Pagination/index.js';
|
|
79
|
+
export { Popover } from './Popover/index.js';
|
|
80
|
+
export { PowerSearch } from './PowerSearch/index.js';
|
|
81
|
+
export { ProgressBar } from './ProgressBar/index.js';
|
|
82
|
+
export { RadioList } from './RadioList/index.js';
|
|
19
83
|
export { Section } from './Section/index.js';
|
|
20
84
|
export { SegmentedControl } from './SegmentedControl/index.js';
|
|
85
|
+
export { Resizable } from './Resizable/index.js';
|
|
86
|
+
export { ResizeHandle } from './ResizeHandle/index.js';
|
|
87
|
+
export { SelectableCard } from './SelectableCard/index.js';
|
|
88
|
+
export { Selector } from './Selector/index.js';
|
|
89
|
+
export { SideNav, SideNavSection } from './SideNav/index.js';
|
|
21
90
|
export { Skeleton } from './Skeleton/index.js';
|
|
91
|
+
export { Slider } from './Slider/index.js';
|
|
22
92
|
export { Spinner } from './Spinner/index.js';
|
|
23
93
|
export { Stack } from './Stack/index.js';
|
|
24
94
|
export { StatusDot } from './StatusDot/index.js';
|
|
95
|
+
export { Switch } from './Switch/index.js';
|
|
96
|
+
export { TabList } from './TabList/index.js';
|
|
97
|
+
export { Thumbnail } from './Thumbnail/index.js';
|
|
98
|
+
export { Timestamp } from './Timestamp/index.js';
|
|
25
99
|
export { Table, TableBody, TableCaption, TableCell, TableHead, TableHeaderCell, TableRow } from './Table/index.js';
|
|
26
100
|
export { Text } from './Text/index.js';
|
|
27
101
|
export { TextArea } from './TextArea/index.js';
|
|
28
102
|
export { TextInput } from './TextInput/index.js';
|
|
103
|
+
export { TimeInput } from './TimeInput/index.js';
|
|
104
|
+
export { Toast, ToastProvider, useToast } from './Toast/index.js';
|
|
29
105
|
export { Toggle } from './Toggle/index.js';
|
|
106
|
+
export { Token } from './Token/index.js';
|
|
107
|
+
export { Tokenizer } from './Tokenizer/index.js';
|
|
108
|
+
export { ToggleButton } from './ToggleButton/index.js';
|
|
109
|
+
export { ToggleButtonGroup } from './ToggleButtonGroup/index.js';
|
|
110
|
+
export { Toolbar } from './Toolbar/index.js';
|
|
111
|
+
export { Tooltip } from './Tooltip/index.js';
|
|
112
|
+
export { TopNav } from './TopNav/index.js';
|
|
113
|
+
export { TopNavMegaMenu, TopNavMegaMenuFeaturedCard } from './TopNavMegaMenu/index.js';
|
|
114
|
+
export { TopNavMenu } from './TopNavMenu/index.js';
|
|
115
|
+
export { TreeList } from './TreeList/index.js';
|
|
116
|
+
export { Typeahead } from './Typeahead/index.js';
|
|
117
|
+
export { TypeaheadItem } from './TypeaheadItem/index.js';
|
|
118
|
+
export { VStack } from './VStack/index.js';
|
|
30
119
|
export { VisuallyHidden } from './VisuallyHidden/index.js';
|
|
31
120
|
export { ThemeProvider, useTheme } from './theme/index.js';
|
|
121
|
+
export { InternationalizationProvider, defaultMessages, useInternationalization, useMessage } from './i18n/index.js';
|
|
122
|
+
export { clamp, mergeIds, resolveInvalid } from './utils/index.js';
|
|
123
|
+
export { focusableElements, focusableSelector, reachableElements, reachableSelector, useAnnounce, useClipboard, useDevWarning, useFocusTrap, useHotkeys, useIsomorphicLayoutEffect, useListFocus, useMediaQuery, useScrollLock } from './hooks/index.js';
|
|
32
124
|
export { Link, LinkProvider } from './navigation/index.js';
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { type AnchorHTMLAttributes, type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
/** The props a host's renderer receives, with styling already resolved. */
|
|
3
|
+
export type LinkRenderProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
4
|
+
/** Renders a link with the host application's own routing component. */
|
|
5
|
+
export type LinkRenderer = (props: LinkRenderProps) => ReactElement | null;
|
|
6
|
+
/** Props for a link into the host application's routing. */
|
|
2
7
|
export type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
3
|
-
|
|
8
|
+
/** Props for the routing boundary. */
|
|
4
9
|
export interface LinkProviderProps {
|
|
5
10
|
readonly children: ReactNode;
|
|
6
11
|
readonly renderLink?: LinkRenderer;
|
|
7
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Injects the host application's routing component. Without one, links fall
|
|
15
|
+
* back to plain anchors, so the package depends on no routing library.
|
|
16
|
+
*/
|
|
8
17
|
export declare function LinkProvider({ children, renderLink }: LinkProviderProps): import("react").JSX.Element;
|
|
18
|
+
/**
|
|
19
|
+
* Renders a link through the host's router when one is provided.
|
|
20
|
+
*
|
|
21
|
+
* It carries the system's own link treatment rather than the browser default.
|
|
22
|
+
* A caller that needs a different look — navigation, an outline entry — passes
|
|
23
|
+
* its own StyleX class, which replaces the default rather than merging with it.
|
|
24
|
+
*/
|
|
9
25
|
export declare function Link(props: LinkProps): import("react").JSX.Element | null;
|