@astryxdesign/core 0.3.0 → 0.4.0-canary.3112e99
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/CHANGELOG.md +156 -0
- package/dist/AlertDialog/AlertDialog.d.ts +10 -2
- package/dist/AlertDialog/AlertDialog.d.ts.map +1 -1
- package/dist/AlertDialog/AlertDialog.js +22 -3
- package/dist/AppShell/AppShell.d.ts +2 -2
- package/dist/AppShell/AppShell.d.ts.map +1 -1
- package/dist/AppShell/AppShell.js +40 -9
- package/dist/AspectRatio/AspectRatio.d.ts +13 -0
- package/dist/AspectRatio/AspectRatio.d.ts.map +1 -1
- package/dist/AspectRatio/AspectRatio.js +9 -0
- package/dist/Avatar/Avatar.d.ts.map +1 -1
- package/dist/Avatar/Avatar.js +33 -20
- package/dist/AvatarGroup/AvatarGroupOverflow.d.ts.map +1 -1
- package/dist/AvatarGroup/AvatarGroupOverflow.js +2 -3
- package/dist/Banner/Banner.d.ts +3 -0
- package/dist/Banner/Banner.d.ts.map +1 -1
- package/dist/Banner/Banner.js +32 -17
- package/dist/Breadcrumbs/BreadcrumbItem.d.ts.map +1 -1
- package/dist/Breadcrumbs/BreadcrumbItem.js +21 -8
- package/dist/Breadcrumbs/index.d.ts +2 -1
- package/dist/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/Breadcrumbs/index.js +1 -0
- package/dist/Button/Button.d.ts.map +1 -1
- package/dist/Button/Button.js +12 -16
- package/dist/Calendar/Calendar.d.ts.map +1 -1
- package/dist/Calendar/Calendar.js +2 -1
- package/dist/Calendar/styles.d.ts +0 -2
- package/dist/Calendar/styles.d.ts.map +1 -1
- package/dist/Calendar/styles.js +0 -2
- package/dist/Carousel/Carousel.d.ts.map +1 -1
- package/dist/Carousel/Carousel.js +8 -12
- package/dist/Chat/ChatDictationButton.d.ts.map +1 -1
- package/dist/Chat/ChatDictationButton.js +2 -1
- package/dist/Chat/ChatLayoutScrollButton.d.ts.map +1 -1
- package/dist/Chat/ChatLayoutScrollButton.js +3 -1
- package/dist/Chat/ChatSendButton.d.ts.map +1 -1
- package/dist/Chat/ChatSendButton.js +4 -3
- package/dist/Chat/ChatToolCalls.d.ts.map +1 -1
- package/dist/Chat/ChatToolCalls.js +17 -17
- package/dist/Chat/useTriggerMenu.d.ts.map +1 -1
- package/dist/Chat/useTriggerMenu.js +2 -6
- package/dist/CheckboxInput/CheckboxInput.d.ts.map +1 -1
- package/dist/CheckboxInput/CheckboxInput.js +36 -125
- package/dist/ClickableCard/ClickableCard.d.ts.map +1 -1
- package/dist/ClickableCard/ClickableCard.js +3 -11
- package/dist/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/dist/CodeBlock/CodeBlock.js +84 -67
- package/dist/Collapsible/Collapsible.d.ts.map +1 -1
- package/dist/Collapsible/Collapsible.js +35 -15
- package/dist/CommandPalette/CommandPaletteItem.d.ts +1 -1
- package/dist/CommandPalette/CommandPaletteItem.d.ts.map +1 -1
- package/dist/CommandPalette/CommandPaletteItem.js +6 -3
- package/dist/CommandPalette/CommandPaletteList.js +1 -1
- package/dist/ComplexSelector/ComplexSelector.d.ts +1 -1
- package/dist/ComplexSelector/ComplexSelector.d.ts.map +1 -1
- package/dist/ComplexSelector/ComplexSelector.js +32 -31
- package/dist/ContextMenu/ContextMenu.d.ts +2 -2
- package/dist/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/ContextMenu/ContextMenu.js +1 -1
- package/dist/ContextMenu/index.d.ts +2 -1
- package/dist/ContextMenu/index.d.ts.map +1 -1
- package/dist/ContextMenu/index.js +1 -0
- package/dist/DateInput/DateInput.d.ts +9 -2
- package/dist/DateInput/DateInput.d.ts.map +1 -1
- package/dist/DateInput/DateInput.js +47 -33
- package/dist/DateRangeInput/DateRangeInput.d.ts +9 -2
- package/dist/DateRangeInput/DateRangeInput.d.ts.map +1 -1
- package/dist/DateRangeInput/DateRangeInput.js +55 -32
- package/dist/DateTimeInput/DateTimeInput.d.ts +9 -1
- package/dist/DateTimeInput/DateTimeInput.d.ts.map +1 -1
- package/dist/DateTimeInput/DateTimeInput.js +54 -30
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +4 -4
- package/dist/DropdownMenu/DropdownMenu.d.ts +33 -8
- package/dist/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenu.js +62 -20
- package/dist/DropdownMenu/DropdownMenuCheckboxItem.d.ts +8 -11
- package/dist/DropdownMenu/DropdownMenuCheckboxItem.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuCheckboxItem.js +32 -31
- package/dist/DropdownMenu/DropdownMenuDivider.d.ts +25 -0
- package/dist/DropdownMenu/DropdownMenuDivider.d.ts.map +1 -0
- package/dist/DropdownMenu/DropdownMenuDivider.js +66 -0
- package/dist/DropdownMenu/DropdownMenuItem.d.ts +15 -2
- package/dist/DropdownMenu/DropdownMenuItem.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuItem.js +20 -8
- package/dist/DropdownMenu/DropdownMenuRadioGroup.d.ts +1 -1
- package/dist/DropdownMenu/DropdownMenuRadioGroup.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuRadioGroup.js +10 -3
- package/dist/DropdownMenu/DropdownMenuRadioItem.d.ts +5 -5
- package/dist/DropdownMenu/DropdownMenuRadioItem.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuRadioItem.js +24 -67
- package/dist/DropdownMenu/DropdownMenuSubMenu.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuSubMenu.js +2 -8
- package/dist/DropdownMenu/index.d.ts +2 -1
- package/dist/DropdownMenu/index.d.ts.map +1 -1
- package/dist/DropdownMenu/index.js +4 -0
- package/dist/DropdownMenu/renderDropdownItems.d.ts.map +1 -1
- package/dist/DropdownMenu/renderDropdownItems.js +35 -27
- package/dist/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/EmptyState/EmptyState.js +9 -5
- package/dist/Field/InputClearButton.d.ts +16 -3
- package/dist/Field/InputClearButton.d.ts.map +1 -1
- package/dist/Field/InputClearButton.js +15 -4
- package/dist/FileInput/FileInput.d.ts.map +1 -1
- package/dist/FileInput/FileInput.js +21 -10
- package/dist/HoverCard/useHoverCard.d.ts.map +1 -1
- package/dist/HoverCard/useHoverCard.js +3 -19
- package/dist/Indicator/CheckIndicator.d.ts +25 -0
- package/dist/Indicator/CheckIndicator.d.ts.map +1 -0
- package/dist/Indicator/CheckIndicator.js +155 -0
- package/dist/Indicator/CheckboxIndicator.d.ts +22 -0
- package/dist/Indicator/CheckboxIndicator.d.ts.map +1 -0
- package/dist/Indicator/CheckboxIndicator.js +173 -0
- package/dist/Indicator/RadioIndicator.d.ts +23 -0
- package/dist/Indicator/RadioIndicator.d.ts.map +1 -0
- package/dist/Indicator/RadioIndicator.js +137 -0
- package/dist/Indicator/index.d.ts +24 -0
- package/dist/Indicator/index.d.ts.map +1 -0
- package/dist/Indicator/index.js +26 -0
- package/dist/Indicator/indicator.markers.stylex.d.ts +16 -0
- package/dist/Indicator/indicator.markers.stylex.d.ts.map +1 -0
- package/dist/Indicator/indicator.markers.stylex.js +21 -0
- package/dist/Indicator/indicatorRegistry.d.ts +71 -0
- package/dist/Indicator/indicatorRegistry.d.ts.map +1 -0
- package/dist/Indicator/indicatorRegistry.js +93 -0
- package/dist/Indicator/types.d.ts +177 -0
- package/dist/Indicator/types.d.ts.map +1 -0
- package/dist/Indicator/types.js +1 -0
- package/dist/Indicator/useIndicator.d.ts +18 -0
- package/dist/Indicator/useIndicator.d.ts.map +1 -0
- package/dist/Indicator/useIndicator.js +30 -0
- package/dist/Item/Item.d.ts.map +1 -1
- package/dist/Item/Item.js +4 -8
- package/dist/Layer/useLayer.d.ts +14 -0
- package/dist/Layer/useLayer.d.ts.map +1 -1
- package/dist/Layer/useLayer.js +25 -2
- package/dist/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/Lightbox/Lightbox.js +80 -103
- package/dist/Link/Link.d.ts.map +1 -1
- package/dist/Link/Link.js +4 -5
- package/dist/MobileNav/MobileNav.js +8 -8
- package/dist/MoreMenu/MoreMenu.d.ts +14 -1
- package/dist/MoreMenu/MoreMenu.d.ts.map +1 -1
- package/dist/MoreMenu/MoreMenu.js +4 -0
- package/dist/MultiSelector/MultiSelector.d.ts +8 -1
- package/dist/MultiSelector/MultiSelector.d.ts.map +1 -1
- package/dist/MultiSelector/MultiSelector.js +119 -95
- package/dist/NumberInput/NumberInput.d.ts +27 -1
- package/dist/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/NumberInput/NumberInput.js +230 -42
- package/dist/Outline/Outline.d.ts.map +1 -1
- package/dist/Outline/Outline.js +2 -3
- package/dist/Pagination/Pagination.d.ts.map +1 -1
- package/dist/Pagination/Pagination.js +61 -63
- package/dist/Popover/Popover.d.ts.map +1 -1
- package/dist/Popover/Popover.js +6 -8
- package/dist/Popover/usePopover.d.ts +15 -0
- package/dist/Popover/usePopover.d.ts.map +1 -1
- package/dist/Popover/usePopover.js +14 -2
- package/dist/PowerSearch/PowerSearch.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearch.js +1 -1
- package/dist/PowerSearch/PowerSearchEditPopover.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchEditPopover.js +7 -0
- package/dist/ProgressBar/ProgressBar.d.ts +11 -4
- package/dist/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/ProgressBar/ProgressBar.js +95 -6
- package/dist/RadioList/RadioListItem.d.ts.map +1 -1
- package/dist/RadioList/RadioListItem.js +29 -84
- package/dist/Resizable/ResizeHandle.d.ts.map +1 -1
- package/dist/Resizable/ResizeHandle.js +2 -3
- package/dist/SegmentedControl/SegmentedControlItem.d.ts.map +1 -1
- package/dist/SegmentedControl/SegmentedControlItem.js +2 -3
- package/dist/SelectableCard/SelectableCard.d.ts.map +1 -1
- package/dist/SelectableCard/SelectableCard.js +3 -11
- package/dist/Selector/Selector.d.ts +12 -1
- package/dist/Selector/Selector.d.ts.map +1 -1
- package/dist/Selector/Selector.js +222 -111
- package/dist/Selector/hooks.d.ts +18 -6
- package/dist/Selector/hooks.d.ts.map +1 -1
- package/dist/Selector/hooks.js +57 -40
- package/dist/SideNav/SideNav.d.ts.map +1 -1
- package/dist/SideNav/SideNav.js +1 -1
- package/dist/SideNav/SideNavCollapseButton.d.ts +1 -1
- package/dist/SideNav/SideNavCollapseButton.d.ts.map +1 -1
- package/dist/SideNav/SideNavCollapseButton.js +29 -14
- package/dist/SideNav/SideNavHeading.d.ts.map +1 -1
- package/dist/SideNav/SideNavHeading.js +56 -20
- package/dist/SideNav/SideNavItem.d.ts.map +1 -1
- package/dist/SideNav/SideNavItem.js +28 -22
- package/dist/Slider/Slider.d.ts.map +1 -1
- package/dist/Slider/Slider.js +2 -6
- package/dist/Stack/stack.stylex.d.ts +3 -3
- package/dist/Switch/Switch.d.ts.map +1 -1
- package/dist/Switch/Switch.js +14 -13
- package/dist/TabList/Tab.d.ts.map +1 -1
- package/dist/TabList/Tab.js +2 -3
- package/dist/TabList/TabMenu.d.ts.map +1 -1
- package/dist/TabList/TabMenu.js +41 -19
- package/dist/Table/BaseTable.d.ts.map +1 -1
- package/dist/Table/BaseTable.js +8 -0
- package/dist/Table/TableRow.d.ts +1 -1
- package/dist/Table/TableRow.d.ts.map +1 -1
- package/dist/Table/TableRow.js +4 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.d.ts.map +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/Table/plugins/groupedRows/useTableGroupedRows.d.ts +1 -1
- package/dist/Table/plugins/groupedRows/useTableGroupedRows.d.ts.map +1 -1
- package/dist/Table/plugins/groupedRows/useTableGroupedRows.js +22 -18
- package/dist/Table/plugins/rowExpansion/index.d.ts +1 -1
- package/dist/Table/plugins/rowExpansion/index.d.ts.map +1 -1
- package/dist/Table/plugins/rowExpansion/index.js +1 -1
- package/dist/Table/plugins/rowExpansion/useTableRowExpansion.d.ts +41 -76
- package/dist/Table/plugins/rowExpansion/useTableRowExpansion.d.ts.map +1 -1
- package/dist/Table/plugins/rowExpansion/useTableRowExpansion.js +94 -345
- package/dist/Table/plugins/sortable/useTableSortable.d.ts.map +1 -1
- package/dist/Table/plugins/sortable/useTableSortable.js +23 -4
- package/dist/Table/plugins/tree/useTableTreeData.d.ts.map +1 -1
- package/dist/Table/plugins/tree/useTableTreeData.js +29 -33
- package/dist/Table/tableContextMenu.d.ts.map +1 -1
- package/dist/Table/tableContextMenu.js +2 -1
- package/dist/Table/types.d.ts +11 -0
- package/dist/Table/types.d.ts.map +1 -1
- package/dist/TextArea/TextArea.d.ts +10 -1
- package/dist/TextArea/TextArea.d.ts.map +1 -1
- package/dist/TextArea/TextArea.js +16 -6
- package/dist/TextInput/TextInput.d.ts +10 -1
- package/dist/TextInput/TextInput.d.ts.map +1 -1
- package/dist/TextInput/TextInput.js +13 -19
- package/dist/Thumbnail/Thumbnail.d.ts.map +1 -1
- package/dist/Thumbnail/Thumbnail.js +32 -26
- package/dist/TimeInput/TimeInput.d.ts.map +1 -1
- package/dist/TimeInput/TimeInput.js +14 -17
- package/dist/Timestamp/Timestamp.d.ts.map +1 -1
- package/dist/Timestamp/Timestamp.js +14 -3
- package/dist/Timestamp/TimestampHoverCard.d.ts.map +1 -1
- package/dist/Timestamp/TimestampHoverCard.js +16 -34
- package/dist/Timestamp/formatInstant.d.ts +11 -1
- package/dist/Timestamp/formatInstant.d.ts.map +1 -1
- package/dist/Timestamp/formatInstant.js +3 -1
- package/dist/Token/Token.d.ts.map +1 -1
- package/dist/Token/Token.js +20 -11
- package/dist/Tokenizer/Tokenizer.d.ts.map +1 -1
- package/dist/Tokenizer/Tokenizer.js +4 -2
- package/dist/Tooltip/useTooltip.d.ts.map +1 -1
- package/dist/Tooltip/useTooltip.js +3 -19
- package/dist/TopNav/TopNav.d.ts.map +1 -1
- package/dist/TopNav/TopNav.js +6 -5
- package/dist/TopNav/TopNavHeading.d.ts.map +1 -1
- package/dist/TopNav/TopNavHeading.js +54 -16
- package/dist/TopNav/TopNavItem.d.ts.map +1 -1
- package/dist/TopNav/TopNavItem.js +3 -9
- package/dist/TopNav/TopNavMegaMenu.d.ts +7 -0
- package/dist/TopNav/TopNavMegaMenu.d.ts.map +1 -1
- package/dist/TopNav/TopNavMegaMenu.js +146 -60
- package/dist/TopNav/TopNavMegaMenuItem.d.ts.map +1 -1
- package/dist/TopNav/TopNavMegaMenuItem.js +22 -3
- package/dist/TopNav/TopNavMenu.d.ts.map +1 -1
- package/dist/TopNav/TopNavMenu.js +83 -38
- package/dist/TreeList/TreeList.d.ts.map +1 -1
- package/dist/TreeList/TreeList.js +13 -0
- package/dist/TreeList/TreeListBranches.d.ts +1 -1
- package/dist/TreeList/TreeListBranches.d.ts.map +1 -1
- package/dist/TreeList/TreeListBranches.js +14 -4
- package/dist/TreeList/TreeListItem.d.ts +11 -1
- package/dist/TreeList/TreeListItem.d.ts.map +1 -1
- package/dist/TreeList/TreeListItem.js +57 -30
- package/dist/Typeahead/BaseTypeahead.d.ts.map +1 -1
- package/dist/Typeahead/BaseTypeahead.js +16 -8
- package/dist/astryx.css +84 -96
- package/dist/astryx.umd.js +56 -56
- package/dist/astryx.umd.js.map +4 -4
- package/dist/hooks/containerReveal.stylex.d.ts +61 -0
- package/dist/hooks/containerReveal.stylex.d.ts.map +1 -0
- package/dist/hooks/containerReveal.stylex.js +63 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/useClipboard.d.ts +59 -0
- package/dist/hooks/useClipboard.d.ts.map +1 -0
- package/dist/hooks/useClipboard.js +106 -0
- package/dist/hooks/useContainerReveal.d.ts +14 -8
- package/dist/hooks/useContainerReveal.d.ts.map +1 -1
- package/dist/hooks/useContainerReveal.js +28 -69
- package/dist/hooks/useIndicatorFocusRing.d.ts +28 -0
- package/dist/hooks/useIndicatorFocusRing.d.ts.map +1 -0
- package/dist/hooks/useIndicatorFocusRing.js +96 -0
- package/dist/hooks/useInputStatusIcon.d.ts.map +1 -1
- package/dist/hooks/useInputStatusIcon.js +17 -4
- package/dist/hooks/useLongPress.d.ts.map +1 -1
- package/dist/hooks/useLongPress.js +12 -2
- package/dist/hooks/useScrollLock.d.ts.map +1 -1
- package/dist/hooks/useScrollLock.js +33 -18
- package/dist/hooks/useStreamingText.d.ts +18 -3
- package/dist/hooks/useStreamingText.d.ts.map +1 -1
- package/dist/hooks/useStreamingText.js +47 -7
- package/dist/hooks/useTreeFocus.d.ts.map +1 -1
- package/dist/hooks/useTreeFocus.js +9 -3
- package/dist/hooks/useTypeahead.d.ts +3 -2
- package/dist/hooks/useTypeahead.d.ts.map +1 -1
- package/dist/hooks/useTypeahead.js +19 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/theme/defineTheme.d.ts +18 -2
- package/dist/theme/defineTheme.d.ts.map +1 -1
- package/dist/theme/defineTheme.js +10 -1
- package/dist/theme/derivedVarRegistry.d.ts +8 -0
- package/dist/theme/derivedVarRegistry.d.ts.map +1 -1
- package/dist/theme/derivedVarRegistry.js +14 -13
- package/dist/theme/expandColorScale.d.ts +3 -1
- package/dist/theme/expandColorScale.d.ts.map +1 -1
- package/dist/theme/expandColorScale.js +17 -7
- package/dist/theme/expandTypeScale.d.ts.map +1 -1
- package/dist/theme/expandTypeScale.js +17 -0
- package/dist/theme/generateThemeRules.d.ts.map +1 -1
- package/dist/theme/generateThemeRules.js +11 -0
- package/dist/theme/index.d.ts +2 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/tokens.stylex.d.ts +12 -0
- package/dist/theme/tokens.stylex.d.ts.map +1 -1
- package/dist/theme/tokens.stylex.js +23 -0
- package/dist/utils/focusOutline.stylex.d.ts +122 -0
- package/dist/utils/focusOutline.stylex.d.ts.map +1 -0
- package/dist/utils/focusOutline.stylex.js +143 -0
- package/dist/utils/focusReturn.d.ts +24 -0
- package/dist/utils/focusReturn.d.ts.map +1 -0
- package/dist/utils/focusReturn.js +29 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +6 -1
- package/dist/utils/mergeRefs.d.ts.map +1 -1
- package/dist/utils/mergeRefs.js +7 -5
- package/dist/utils/rtlStyles.d.ts +2 -2
- package/dist/utils/rtlStyles.js +2 -2
- package/dist/utils/themeProps.d.ts +20 -1
- package/dist/utils/themeProps.d.ts.map +1 -1
- package/dist/utils/themeProps.js +8 -2
- package/locales/en.json +52 -0
- package/locales/pseudo.json +39 -0
- package/package.json +8 -3
- package/src/AlertDialog/AlertDialog.doc.mjs +16 -3
- package/src/AlertDialog/AlertDialog.test.tsx +208 -1
- package/src/AlertDialog/AlertDialog.tsx +21 -3
- package/src/AppShell/AppShell.doc.mjs +11 -0
- package/src/AppShell/AppShell.test.tsx +139 -0
- package/src/AppShell/AppShell.tsx +32 -22
- package/src/AspectRatio/AspectRatio.doc.mjs +27 -3
- package/src/AspectRatio/AspectRatio.test.tsx +30 -0
- package/src/AspectRatio/AspectRatio.tsx +13 -0
- package/src/Avatar/Avatar.doc.mjs +2 -13
- package/src/Avatar/Avatar.test.tsx +33 -8
- package/src/Avatar/Avatar.tsx +52 -50
- package/src/AvatarGroup/AvatarGroupOverflow.tsx +2 -9
- package/src/Banner/Banner.test.tsx +58 -1
- package/src/Banner/Banner.tsx +33 -11
- package/src/Breadcrumbs/BreadcrumbItem.tsx +16 -6
- package/src/Breadcrumbs/index.ts +5 -1
- package/src/Button/Button.doc.mjs +2 -2
- package/src/Button/Button.tsx +22 -41
- package/src/Calendar/Calendar.tsx +2 -1
- package/src/Calendar/styles.ts +0 -8
- package/src/Carousel/Carousel.doc.mjs +3 -0
- package/src/Carousel/Carousel.tsx +10 -6
- package/src/Chat/Chat.doc.mjs +2 -0
- package/src/Chat/ChatDictationButton.tsx +7 -1
- package/src/Chat/ChatLayoutScrollButton.test.tsx +22 -0
- package/src/Chat/ChatLayoutScrollButton.tsx +8 -1
- package/src/Chat/ChatSendButton.tsx +2 -3
- package/src/Chat/ChatToolCalls.test.tsx +35 -0
- package/src/Chat/ChatToolCalls.tsx +36 -16
- package/src/Chat/useTriggerMenu.tsx +2 -5
- package/src/CheckboxInput/CheckboxInput.doc.mjs +4 -2
- package/src/CheckboxInput/CheckboxInput.test.tsx +120 -0
- package/src/CheckboxInput/CheckboxInput.tsx +45 -202
- package/src/ClickableCard/ClickableCard.tsx +6 -11
- package/src/CodeBlock/CodeBlock.doc.mjs +3 -0
- package/src/CodeBlock/CodeBlock.test.tsx +91 -0
- package/src/CodeBlock/CodeBlock.tsx +57 -80
- package/src/Collapsible/Collapsible.tsx +22 -18
- package/src/CommandPalette/CommandPalette.test.tsx +29 -0
- package/src/CommandPalette/CommandPaletteItem.tsx +7 -4
- package/src/CommandPalette/CommandPaletteList.tsx +2 -2
- package/src/ComplexSelector/ComplexSelector.doc.mjs +42 -0
- package/src/ComplexSelector/ComplexSelector.test.tsx +73 -0
- package/src/ComplexSelector/ComplexSelector.tsx +41 -28
- package/src/ContextMenu/ContextMenu.doc.mjs +1 -1
- package/src/ContextMenu/ContextMenu.test.tsx +41 -0
- package/src/ContextMenu/ContextMenu.tsx +3 -3
- package/src/ContextMenu/index.ts +5 -1
- package/src/DateInput/DateInput.doc.mjs +18 -3
- package/src/DateInput/DateInput.test.tsx +112 -11
- package/src/DateInput/DateInput.tsx +44 -25
- package/src/DateRangeInput/DateRangeInput.doc.mjs +10 -2
- package/src/DateRangeInput/DateRangeInput.test.tsx +110 -14
- package/src/DateRangeInput/DateRangeInput.tsx +27 -21
- package/src/DateTimeInput/DateTimeInput.doc.mjs +16 -2
- package/src/DateTimeInput/DateTimeInput.test.tsx +154 -1
- package/src/DateTimeInput/DateTimeInput.tsx +58 -17
- package/src/Dialog/Dialog.tsx +2 -9
- package/src/DropdownMenu/DropdownMenu.doc.mjs +5 -9
- package/src/DropdownMenu/DropdownMenu.test.tsx +534 -4
- package/src/DropdownMenu/DropdownMenu.tsx +113 -52
- package/src/DropdownMenu/DropdownMenuCheckboxItem.tsx +27 -30
- package/src/DropdownMenu/DropdownMenuDivider.doc.mjs +34 -0
- package/src/DropdownMenu/DropdownMenuDivider.tsx +81 -0
- package/src/DropdownMenu/DropdownMenuItem.doc.mjs +39 -4
- package/src/DropdownMenu/DropdownMenuItem.tsx +48 -10
- package/src/DropdownMenu/DropdownMenuRadioGroup.tsx +2 -1
- package/src/DropdownMenu/DropdownMenuRadioItem.tsx +30 -76
- package/src/DropdownMenu/DropdownMenuSelectable.test.tsx +25 -19
- package/src/DropdownMenu/DropdownMenuSubMenu.test.tsx +44 -14
- package/src/DropdownMenu/DropdownMenuSubMenu.tsx +1 -5
- package/src/DropdownMenu/index.ts +8 -1
- package/src/DropdownMenu/renderDropdownItems.tsx +33 -34
- package/src/EmptyState/EmptyState.doc.mjs +4 -0
- package/src/EmptyState/EmptyState.test.tsx +62 -0
- package/src/EmptyState/EmptyState.tsx +16 -6
- package/src/Field/Field.doc.mjs +1 -0
- package/src/Field/InputClearButton.test.tsx +117 -0
- package/src/Field/InputClearButton.tsx +30 -3
- package/src/FileInput/FileInput.tsx +21 -8
- package/src/HoverCard/useHoverCard.tsx +2 -23
- package/src/Icon/Icon.doc.mjs +2 -1
- package/src/Indicator/CheckIndicator.tsx +174 -0
- package/src/Indicator/CheckboxIndicator.tsx +257 -0
- package/src/Indicator/Indicator.doc.mjs +344 -0
- package/src/Indicator/Indicator.test.tsx +393 -0
- package/src/Indicator/RadioIndicator.tsx +206 -0
- package/src/Indicator/index.ts +46 -0
- package/src/Indicator/indicator.markers.stylex.ts +19 -0
- package/src/Indicator/indicatorRegistry.test.tsx +106 -0
- package/src/Indicator/indicatorRegistry.ts +120 -0
- package/src/Indicator/types.ts +197 -0
- package/src/Indicator/useIndicator.ts +39 -0
- package/src/Item/Item.doc.mjs +1 -1
- package/src/Item/Item.tsx +7 -14
- package/src/Layer/useLayer.doc.mjs +2 -2
- package/src/Layer/useLayer.test.tsx +85 -0
- package/src/Layer/useLayer.tsx +39 -1
- package/src/Lightbox/Lightbox.doc.mjs +1 -1
- package/src/Lightbox/Lightbox.tsx +45 -49
- package/src/Link/Link.tsx +4 -11
- package/src/MobileNav/MobileNav.tsx +3 -3
- package/src/MoreMenu/MoreMenu.doc.mjs +31 -0
- package/src/MoreMenu/MoreMenu.test.tsx +68 -1
- package/src/MoreMenu/MoreMenu.tsx +19 -0
- package/src/MultiSelector/MultiSelector.doc.mjs +16 -1
- package/src/MultiSelector/MultiSelector.test.tsx +259 -16
- package/src/MultiSelector/MultiSelector.tsx +144 -121
- package/src/NumberInput/NumberInput.doc.mjs +265 -50
- package/src/NumberInput/NumberInput.test.tsx +726 -21
- package/src/NumberInput/NumberInput.tsx +353 -59
- package/src/Outline/Outline.tsx +2 -5
- package/src/Pagination/Pagination.doc.mjs +1 -1
- package/src/Pagination/Pagination.test.tsx +22 -7
- package/src/Pagination/Pagination.tsx +38 -35
- package/src/Popover/Popover.doc.mjs +2 -0
- package/src/Popover/Popover.tsx +6 -7
- package/src/Popover/usePopover.tsx +37 -4
- package/src/PowerSearch/PowerSearch.tsx +1 -1
- package/src/PowerSearch/PowerSearchEditPopover.test.tsx +42 -0
- package/src/PowerSearch/PowerSearchEditPopover.tsx +7 -0
- package/src/ProgressBar/ProgressBar.doc.mjs +27 -5
- package/src/ProgressBar/ProgressBar.test.tsx +224 -1
- package/src/ProgressBar/ProgressBar.tsx +126 -30
- package/src/RadioList/RadioList.doc.mjs +4 -2
- package/src/RadioList/RadioListItem.tsx +31 -130
- package/src/Resizable/ResizeHandle.tsx +2 -9
- package/src/SegmentedControl/SegmentedControlItem.tsx +2 -9
- package/src/SelectableCard/SelectableCard.tsx +4 -9
- package/src/Selector/Selector.doc.mjs +15 -4
- package/src/Selector/Selector.test.tsx +1234 -98
- package/src/Selector/Selector.tsx +254 -126
- package/src/Selector/hooks.ts +77 -50
- package/src/SideNav/SideNav.test.tsx +46 -0
- package/src/SideNav/SideNav.tsx +1 -0
- package/src/SideNav/SideNavCollapseButton.tsx +15 -10
- package/src/SideNav/SideNavHeading.tsx +48 -10
- package/src/SideNav/SideNavItem.tsx +20 -12
- package/src/Slider/Slider.tsx +2 -11
- package/src/Stack/Stack.doc.mjs +110 -0
- package/src/StatusDot/StatusDot.doc.mjs +12 -3
- package/src/Switch/Switch.test.tsx +32 -0
- package/src/Switch/Switch.tsx +18 -10
- package/src/TabList/Tab.tsx +2 -9
- package/src/TabList/TabMenu.tsx +14 -21
- package/src/Table/BaseTable.tsx +11 -0
- package/src/Table/Table.test.tsx +31 -0
- package/src/Table/TableRow.tsx +6 -0
- package/src/Table/index.ts +1 -4
- package/src/Table/plugins/groupedRows/useTableGroupedRows.tsx +30 -14
- package/src/Table/plugins/rowExpansion/index.ts +1 -4
- package/src/Table/plugins/rowExpansion/useTableRowExpansion.test.tsx +125 -175
- package/src/Table/plugins/rowExpansion/useTableRowExpansion.tsx +115 -458
- package/src/Table/plugins/sortable/useTableSortable.tsx +2 -6
- package/src/Table/plugins/tree/useTableTreeData.tsx +43 -24
- package/src/Table/tableContextMenu.test.tsx +27 -0
- package/src/Table/tableContextMenu.tsx +1 -0
- package/src/Table/types.ts +11 -0
- package/src/Table/useTableGroupedRows.doc.mjs +1 -1
- package/src/Table/useTableRowExpansion.doc.mjs +43 -66
- package/src/TextArea/TextArea.doc.mjs +42 -2
- package/src/TextArea/TextArea.test.tsx +219 -0
- package/src/TextArea/TextArea.tsx +34 -7
- package/src/TextInput/TextInput.doc.mjs +18 -2
- package/src/TextInput/TextInput.test.tsx +189 -0
- package/src/TextInput/TextInput.tsx +25 -31
- package/src/Thumbnail/Thumbnail.tsx +2 -9
- package/src/TimeInput/TimeInput.doc.mjs +2 -2
- package/src/TimeInput/TimeInput.test.tsx +84 -3
- package/src/TimeInput/TimeInput.tsx +26 -28
- package/src/Timestamp/Timestamp.doc.mjs +4 -3
- package/src/Timestamp/Timestamp.test.tsx +91 -14
- package/src/Timestamp/Timestamp.tsx +14 -2
- package/src/Timestamp/TimestampHoverCard.tsx +13 -35
- package/src/Timestamp/formatInstant.ts +16 -1
- package/src/Token/Token.tsx +5 -28
- package/src/Tokenizer/Tokenizer.doc.mjs +2 -2
- package/src/Tokenizer/Tokenizer.test.tsx +45 -3
- package/src/Tokenizer/Tokenizer.tsx +10 -2
- package/src/Tooltip/useTooltip.tsx +2 -23
- package/src/TopNav/TopNav.tsx +1 -3
- package/src/TopNav/TopNavHeading.tsx +42 -13
- package/src/TopNav/TopNavItem.tsx +3 -21
- package/src/TopNav/TopNavMegaMenu.doc.mjs +5 -0
- package/src/TopNav/TopNavMegaMenu.test.tsx +433 -33
- package/src/TopNav/TopNavMegaMenu.tsx +118 -53
- package/src/TopNav/TopNavMegaMenuItem.tsx +2 -9
- package/src/TopNav/TopNavMenu.tsx +34 -37
- package/src/TreeList/TreeList.doc.mjs +5 -0
- package/src/TreeList/TreeList.test.tsx +208 -8
- package/src/TreeList/TreeList.tsx +22 -0
- package/src/TreeList/TreeListBranches.tsx +25 -2
- package/src/TreeList/TreeListItem.tsx +89 -52
- package/src/Typeahead/BaseTypeahead.tsx +19 -6
- package/src/Typeahead/Typeahead.doc.mjs +1 -0
- package/src/Typeahead/Typeahead.test.tsx +76 -3
- package/src/hooks/containerReveal.stylex.ts +102 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/useClipboard.doc.mjs +87 -0
- package/src/hooks/useClipboard.test.tsx +151 -0
- package/src/hooks/useClipboard.ts +135 -0
- package/src/hooks/useContainerReveal.doc.mjs +7 -7
- package/src/hooks/useContainerReveal.test.tsx +42 -62
- package/src/hooks/useContainerReveal.ts +36 -91
- package/src/hooks/useImageMode.test.ts +1 -1
- package/src/hooks/useIndicatorFocusRing.tsx +120 -0
- package/src/hooks/useInputStatusIcon.tsx +8 -8
- package/src/hooks/useLongPress.test.tsx +18 -0
- package/src/hooks/useLongPress.ts +12 -2
- package/src/hooks/useScrollLock.test.ts +72 -0
- package/src/hooks/useScrollLock.ts +51 -19
- package/src/hooks/useStreamingText.test.ts +46 -1
- package/src/hooks/useStreamingText.ts +49 -7
- package/src/hooks/useTreeFocus.test.tsx +50 -0
- package/src/hooks/useTreeFocus.ts +14 -3
- package/src/hooks/useTypeahead.test.tsx +150 -0
- package/src/hooks/useTypeahead.ts +24 -9
- package/src/i18n/InternationalizationProvider.doc.mjs +7 -2
- package/src/index.ts +1 -0
- package/src/theme/defineTheme.ts +27 -0
- package/src/theme/derivedVarRegistry.test.ts +21 -1
- package/src/theme/derivedVarRegistry.ts +19 -6
- package/src/theme/expandColorScale.test.ts +14 -0
- package/src/theme/expandColorScale.ts +24 -9
- package/src/theme/expandTypeScale.test.ts +43 -0
- package/src/theme/expandTypeScale.ts +17 -0
- package/src/theme/generateThemeRules.test.ts +78 -20
- package/src/theme/generateThemeRules.ts +11 -0
- package/src/theme/index.ts +15 -0
- package/src/theme/tokens.stylex.ts +18 -0
- package/src/theme/tokens.test.ts +37 -0
- package/src/utils/focusOutline.stylex.ts +177 -0
- package/src/utils/focusReturn.test.ts +42 -0
- package/src/utils/focusReturn.ts +31 -0
- package/src/utils/index.ts +5 -0
- package/src/utils/mergeRefs.test.ts +48 -0
- package/src/utils/mergeRefs.ts +12 -6
- package/src/utils/rtlStyles.ts +2 -2
- package/src/utils/themeProps.ts +26 -4
- package/dist/CheckboxInput/checkbox.markers.stylex.d.ts +0 -9
- package/dist/CheckboxInput/checkbox.markers.stylex.d.ts.map +0 -1
- package/dist/CheckboxInput/checkbox.markers.stylex.js +0 -14
- package/dist/RadioList/radio.markers.stylex.d.ts +0 -7
- package/dist/RadioList/radio.markers.stylex.d.ts.map +0 -1
- package/dist/RadioList/radio.markers.stylex.js +0 -12
- package/dist/hooks/containerReveal.pool.stylex.d.ts +0 -303
- package/dist/hooks/containerReveal.pool.stylex.d.ts.map +0 -1
- package/dist/hooks/containerReveal.pool.stylex.js +0 -292
- package/src/CheckboxInput/checkbox.markers.stylex.ts +0 -12
- package/src/RadioList/radio.markers.stylex.ts +0 -10
- package/src/hooks/containerReveal.pool.stylex.ts +0 -571
package/dist/Popover/Popover.js
CHANGED
|
@@ -66,11 +66,6 @@ const styles = {
|
|
|
66
66
|
kwRFfy: "x1t818jl",
|
|
67
67
|
$$css: true
|
|
68
68
|
},
|
|
69
|
-
gap: {
|
|
70
|
-
keoZOQ: "xcsaf9d",
|
|
71
|
-
k1K539: "x14cgwvg",
|
|
72
|
-
$$css: true
|
|
73
|
-
},
|
|
74
69
|
customWidth: width => [{
|
|
75
70
|
kzqmXN: (typeof width === 'number' ? `${width}px` : width) != null ? "x5lhr3w" : typeof width === 'number' ? `${width}px` : width,
|
|
76
71
|
$$css: true
|
|
@@ -309,7 +304,8 @@ export function Popover({
|
|
|
309
304
|
}), {
|
|
310
305
|
placement,
|
|
311
306
|
alignment,
|
|
312
|
-
|
|
307
|
+
offset: spacingVars['--spacing-1'],
|
|
308
|
+
xstyle: [popoverXstyle, layerAnimations[placement]]
|
|
313
309
|
})
|
|
314
310
|
});
|
|
315
311
|
}
|
|
@@ -332,7 +328,8 @@ export function Popover({
|
|
|
332
328
|
}), {
|
|
333
329
|
placement,
|
|
334
330
|
alignment,
|
|
335
|
-
|
|
331
|
+
offset: spacingVars['--spacing-1'],
|
|
332
|
+
xstyle: [popoverXstyle, layerAnimations[placement]]
|
|
336
333
|
})]
|
|
337
334
|
});
|
|
338
335
|
}
|
|
@@ -355,7 +352,8 @@ export function Popover({
|
|
|
355
352
|
}), {
|
|
356
353
|
placement,
|
|
357
354
|
alignment,
|
|
358
|
-
|
|
355
|
+
offset: spacingVars['--spacing-1'],
|
|
356
|
+
xstyle: [popoverXstyle, layerAnimations[placement]]
|
|
359
357
|
})]
|
|
360
358
|
});
|
|
361
359
|
}
|
|
@@ -109,6 +109,21 @@ export interface UsePopoverOptions {
|
|
|
109
109
|
* @default true
|
|
110
110
|
*/
|
|
111
111
|
hasSurface?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Theme-target name stamped on the popup SURFACE — the element that paints
|
|
114
|
+
* the background, radius and elevation — without the `astryx-` prefix
|
|
115
|
+
* (e.g. `'complex-selector-popup'`).
|
|
116
|
+
*
|
|
117
|
+
* The surface is created here, not by the calling component, so a component
|
|
118
|
+
* that wants its popup themeable cannot reach it on its own: a target it
|
|
119
|
+
* renders itself lands on its content INSIDE the surface, where a background
|
|
120
|
+
* or radius rule paints the wrong box. Name the surface through this option
|
|
121
|
+
* and document the class in the component's `theming.targets`.
|
|
122
|
+
*
|
|
123
|
+
* The shared `astryx-popover-surface` class is always present alongside it,
|
|
124
|
+
* so a theme can style every popup surface at once.
|
|
125
|
+
*/
|
|
126
|
+
surfaceTarget?: string;
|
|
112
127
|
}
|
|
113
128
|
/**
|
|
114
129
|
* Return type for usePopover
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePopover.d.ts","sourceRoot":"","sources":["../../src/Popover/usePopover.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,EAAiC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAW,KAAK,kBAAkB,EAAC,MAAM,mBAAmB,CAAC;AAEpE,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"usePopover.d.ts","sourceRoot":"","sources":["../../src/Popover/usePopover.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,EAAiC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAW,KAAK,kBAAkB,EAAC,MAAM,mBAAmB,CAAC;AAEpE,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAgEnD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAE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,CAAC;IAEX;;;;;;;;;;;OAWG;IACH,MAAM,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,kBAAkB,KAAK,SAAS,CAAC;IAEvE;;OAEG;IACH,YAAY,EAAE;QACZ,eAAe,EAAE,QAAQ,GAAG,MAAM,CAAC;QACnC,eAAe,EAAE,OAAO,CAAC;QACzB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,gBAAgB,CA2K5E"}
|
|
@@ -24,6 +24,9 @@ import { Button } from "../Button/index.js";
|
|
|
24
24
|
import { rtlStyles } from "../utils/index.js";
|
|
25
25
|
import { useTranslator } from "../i18n/index.js";
|
|
26
26
|
import { useDevWarning } from "../hooks/useDevWarning.js";
|
|
27
|
+
import { mergeProps } from "../utils/mergeProps.js";
|
|
28
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
29
|
+
import { stableClassName } from "../naming.js";
|
|
27
30
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
31
|
const styles = {
|
|
29
32
|
surface: {
|
|
@@ -107,6 +110,7 @@ export function usePopover(options = {}) {
|
|
|
107
110
|
hasEscapeDismiss = true,
|
|
108
111
|
hasAutoFocus = true,
|
|
109
112
|
hasSurface = true,
|
|
113
|
+
surfaceTarget,
|
|
110
114
|
hasCloseButton = true,
|
|
111
115
|
closeButtonLabel: closeButtonLabelFromProps,
|
|
112
116
|
dialogLabel,
|
|
@@ -188,12 +192,20 @@ export function usePopover(options = {}) {
|
|
|
188
192
|
|
|
189
193
|
// Wrapped render function that includes surface styles and optional hidden close button
|
|
190
194
|
const render = useCallback((children, props) => {
|
|
195
|
+
// `mergeProps` is positional — a third OBJECT argument is read as
|
|
196
|
+
// `style`, not as more props — so the surface's classes are composed
|
|
197
|
+
// into one props object before merging with the StyleX result.
|
|
198
|
+
const surfaceProps = themeProps('popover-surface');
|
|
199
|
+
const surfaceClassName = surfaceTarget != null ? `${surfaceProps.className} ${stableClassName(surfaceTarget)}` : surfaceProps.className;
|
|
191
200
|
return layer.render(/*#__PURE__*/_jsxs("div", {
|
|
192
201
|
ref: contentRef,
|
|
193
202
|
role: role === 'dialog' ? 'dialog' : undefined,
|
|
194
203
|
"aria-modal": role === 'dialog' && isModal ? true : undefined,
|
|
195
204
|
"aria-label": role === 'dialog' ? dialogLabel : undefined,
|
|
196
|
-
...
|
|
205
|
+
...mergeProps({
|
|
206
|
+
...surfaceProps,
|
|
207
|
+
className: surfaceClassName
|
|
208
|
+
}, stylex.props(styles.contentWrapper, hasSurface && styles.surface, xstyle)),
|
|
197
209
|
children: [children, hasCloseButton && /*#__PURE__*/_jsx("div", {
|
|
198
210
|
...stylex.props(styles.closeButtonWrapper, rtlStyles.centerInline('100%')),
|
|
199
211
|
children: /*#__PURE__*/_jsx(Button, {
|
|
@@ -206,7 +218,7 @@ export function usePopover(options = {}) {
|
|
|
206
218
|
...props,
|
|
207
219
|
xstyle: props?.xstyle
|
|
208
220
|
});
|
|
209
|
-
}, [layer, hasCloseButton, hasSurface, closeButtonLabel, contentRef, dialogLabel, role, isModal, xstyle]);
|
|
221
|
+
}, [layer, hasCloseButton, hasSurface, surfaceTarget, closeButtonLabel, contentRef, dialogLabel, role, isModal, xstyle]);
|
|
210
222
|
return {
|
|
211
223
|
triggerRef,
|
|
212
224
|
contentRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PowerSearch.d.ts","sourceRoot":"","sources":["../../src/PowerSearch/PowerSearch.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,EAOZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MA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AAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACzC;;;OAGG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;OAGG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACpC;AAsBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EAAE,UAAU,EAClB,OAAO,EACP,QAAQ,EACR,KAAK,EAAE,cAAc,EACrB,aAAoB,EACpB,WAAW,EAAE,oBAAoB,EACjC,YAAoB,EACpB,QAAe,EACf,UAAkB,EAClB,UAAkB,EAClB,eAAe,EACf,SAAS,EACT,OAAO,EACP,MAAM,EACN,MAAM,EACN,aAA0B,EAC1B,cAAmB,EACnB,sBAAsB,EAAE,+BAA+B,EACvD,UAAU,EACV,qBAAqB,EACrB,UAAU,EACV,WAAW,EACX,GAAG,EACH,SAAS,EACT,IAAI,EAAE,QAAQ,EACd,aAAa,EAAE,MAAM,EACrB,MAAM,EACN,SAAS,EACT,KAAK,EACL,UAAU,EAAE,kBAAkB,GAC/B,EAAE,gBAAgB,qBA6flB;yBA5hBe,WAAW"}
|
|
@@ -64,7 +64,6 @@ const popoverLayerStyles = {
|
|
|
64
64
|
layer: {
|
|
65
65
|
kzqmXN: "x1xgy17j",
|
|
66
66
|
k7Eaqz: "x13o0s5z",
|
|
67
|
-
keoZOQ: "xcsaf9d",
|
|
68
67
|
$$css: true
|
|
69
68
|
}
|
|
70
69
|
};
|
|
@@ -790,6 +789,7 @@ export function PowerSearch({
|
|
|
790
789
|
}), popover.render(popoverContent, {
|
|
791
790
|
placement: 'below',
|
|
792
791
|
alignment: 'start',
|
|
792
|
+
offset: spacingVars['--spacing-1'],
|
|
793
793
|
xstyle: [popoverLayerStyles.layer, layerAnimations.below]
|
|
794
794
|
})]
|
|
795
795
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PowerSearchEditPopover.d.ts","sourceRoot":"","sources":["../../src/PowerSearch/PowerSearchEditPopover.tsx"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AAEH,OAAO,KAA0D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PowerSearchEditPopover.d.ts","sourceRoot":"","sources":["../../src/PowerSearch/PowerSearchEditPopover.tsx"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AAEH,OAAO,KAA0D,MAAM,OAAO,CAAC;AAY/E,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EAGd,MAAM,SAAS,CAAC;AAgDjB,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,cAAc,CAAC;IACvB,uCAAuC;IACvC,MAAM,EAAE,aAAa,CAAC;IACtB,qDAAqD;IACrD,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;IACxB,6EAA6E;IAC7E,MAAM,EAAE,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAC;IACnD,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uCAAuC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AA8eD,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,MAAM,EAAE,aAAa,EACrB,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,eAAe,EAAE,wBAAwB,EACzC,UAAkB,GACnB,EAAE,2BAA2B,qBAwR7B"}
|
|
@@ -19,6 +19,7 @@ import { HStack, VStack } from "../Stack/index.js";
|
|
|
19
19
|
import { Icon } from "../Icon/index.js";
|
|
20
20
|
import { TreeList } from "../TreeList/index.js";
|
|
21
21
|
import { useTranslator } from "../i18n/index.js";
|
|
22
|
+
import { isImeKeyEvent } from "../hooks/useFocusTrap.js";
|
|
22
23
|
import "../theme/tokens.stylex.js";
|
|
23
24
|
import { spacingVars, typeScaleVars } from "../theme/tokens.stylex.js";
|
|
24
25
|
import { PowerSearchValueEditor } from "./PowerSearchValueEditor.js";
|
|
@@ -491,6 +492,12 @@ export function PowerSearchEditPopover({
|
|
|
491
492
|
|
|
492
493
|
// Handle Enter to save, Escape to cancel
|
|
493
494
|
const handleKeyDown = useCallback(e => {
|
|
495
|
+
// Don't treat an IME composition-commit Enter as save-to-close --
|
|
496
|
+
// typing a CJK filter value and pressing Enter to confirm the
|
|
497
|
+
// composition would otherwise close the popover mid-composition.
|
|
498
|
+
if (isImeKeyEvent(e.nativeEvent)) {
|
|
499
|
+
return;
|
|
500
|
+
}
|
|
494
501
|
if (e.key === 'Enter' && !isSaveDisabled && !e.defaultPrevented) {
|
|
495
502
|
e.preventDefault();
|
|
496
503
|
handleSave();
|
|
@@ -77,8 +77,12 @@ export interface ProgressBarProps extends BaseProps<HTMLDivElement> {
|
|
|
77
77
|
/**
|
|
78
78
|
* Target marks drawn on the track at fixed points in the same `0..max`
|
|
79
79
|
* scale as `value` — e.g. a goal line. Marks stay visible whether progress
|
|
80
|
-
* is below or past them
|
|
81
|
-
*
|
|
80
|
+
* is below or past them, and take their color from what they sit on: a mark
|
|
81
|
+
* inside the filled area uses the fill variant's on-color (on-accent,
|
|
82
|
+
* on-warning, on-error, …), while a mark still out on the bare track uses
|
|
83
|
+
* `--color-text-primary` (`--color-text-secondary` on a disabled bar, which
|
|
84
|
+
* dims everything it draws). Each mark's required `label` names it for
|
|
85
|
+
* assistive tech and is revealed via a `Tooltip` on hover/focus. Ignored when
|
|
82
86
|
* `isIndeterminate` is true.
|
|
83
87
|
*/
|
|
84
88
|
marks?: ReadonlyArray<ProgressBarMark>;
|
|
@@ -119,8 +123,11 @@ export interface ProgressBarProps extends BaseProps<HTMLDivElement> {
|
|
|
119
123
|
* ```
|
|
120
124
|
*
|
|
121
125
|
* A mark's height, width, and color are directly themeable via the
|
|
122
|
-
* `progressbar-mark` target
|
|
123
|
-
*
|
|
126
|
+
* `progressbar-mark` target. The target reflects `data-placement`
|
|
127
|
+
* (`"fill"` when the mark sits inside the filled area, `"track"` when it is
|
|
128
|
+
* still out on the bare track) and `data-variant` (the fill's variant), so a
|
|
129
|
+
* theme can style the two cases separately — e.g. a taller "goal flag" tick
|
|
130
|
+
* that overhangs the bar (centered, so the overhang is symmetric):
|
|
124
131
|
*
|
|
125
132
|
* @example
|
|
126
133
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../src/ProgressBar/ProgressBar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../src/ProgressBar/ProgressBar.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAG5C,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,SAAS,CAAC;AAUnD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,qBAAqB,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS,CAAC,cAAc,CAAC;IACjE,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1D;;;OAGG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IACvC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAwOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAS,EACT,GAAS,EACT,KAAK,EACL,aAAqB,EACrB,aAAqB,EACrB,gBAA0C,EAC1C,OAAkB,EAClB,eAAuB,EACvB,UAAkB,EAClB,KAAK,EACL,MAAM,EACN,SAAS,EACT,KAAK,EACL,aAAa,EAAE,UAAU,EACzB,GAAG,EACH,GAAG,IAAI,EACR,EAAE,gBAAgB,+BAoKlB;yBArLe,WAAW"}
|
|
@@ -21,6 +21,7 @@ import * as stylex from '@stylexjs/stylex';
|
|
|
21
21
|
import "../theme/tokens.stylex.js";
|
|
22
22
|
import { colorVars, spacingVars, radiusVars, fontWeightVars, durationVars, easeVars, typeScaleVars } from "../theme/tokens.stylex.js";
|
|
23
23
|
import { mergeProps } from "../utils/index.js";
|
|
24
|
+
import { focusOutlineStyles } from "../utils/focusOutline.stylex.js";
|
|
24
25
|
import { themeProps } from "../utils/themeProps.js";
|
|
25
26
|
import { VisuallyHidden } from "../VisuallyHidden/index.js";
|
|
26
27
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -84,6 +85,14 @@ const styles = {
|
|
|
84
85
|
kyAemX: "x4hg4is",
|
|
85
86
|
ko0y90: "xa4qsjk",
|
|
86
87
|
$$css: true
|
|
88
|
+
},
|
|
89
|
+
mark: {
|
|
90
|
+
kVAEAm: "x10l6tqk",
|
|
91
|
+
k87sOh: "xwa60dl",
|
|
92
|
+
kzqmXN: "x63cpjl",
|
|
93
|
+
kZKoxP: "xhovv34",
|
|
94
|
+
k3aq6I: "x11lhmoz xoffwj3",
|
|
95
|
+
$$css: true
|
|
87
96
|
}
|
|
88
97
|
};
|
|
89
98
|
const variantStyles = {
|
|
@@ -112,6 +121,69 @@ const variantStyles = {
|
|
|
112
121
|
$$css: true
|
|
113
122
|
}
|
|
114
123
|
};
|
|
124
|
+
|
|
125
|
+
// A mark sitting inside the filled area is drawn *on* the bar, so it takes the
|
|
126
|
+
// on-color that pairs with the fill's own variant color — the same pairing
|
|
127
|
+
// Badge uses for solid semantic backgrounds.
|
|
128
|
+
//
|
|
129
|
+
// `neutral` and `disabled` both fill with the muted `--color-text-disabled`
|
|
130
|
+
// gray, which carries no semantic weight and has no dedicated on-token, so
|
|
131
|
+
// they fall back to a plain foreground. They pick different ones: a `neutral`
|
|
132
|
+
// bar is live, so its mark keeps the full-contrast `--color-text-primary` a
|
|
133
|
+
// mark uses out on the track; a `disabled` bar is deliberately low-emphasis —
|
|
134
|
+
// its own label and value text drop to muted colors — so its mark steps down
|
|
135
|
+
// to `--color-text-secondary` rather than becoming the loudest thing on a
|
|
136
|
+
// grayed-out component.
|
|
137
|
+
const markOnFillStyles = {
|
|
138
|
+
accent: {
|
|
139
|
+
kWkggS: "x1azo05",
|
|
140
|
+
$$css: true
|
|
141
|
+
},
|
|
142
|
+
success: {
|
|
143
|
+
kWkggS: "x9mohwv",
|
|
144
|
+
$$css: true
|
|
145
|
+
},
|
|
146
|
+
warning: {
|
|
147
|
+
kWkggS: "xmgwp2l",
|
|
148
|
+
$$css: true
|
|
149
|
+
},
|
|
150
|
+
error: {
|
|
151
|
+
kWkggS: "xfba6wv",
|
|
152
|
+
$$css: true
|
|
153
|
+
},
|
|
154
|
+
neutral: {
|
|
155
|
+
kWkggS: "x19aspcf",
|
|
156
|
+
$$css: true
|
|
157
|
+
},
|
|
158
|
+
disabled: {
|
|
159
|
+
kWkggS: "xdomwnj",
|
|
160
|
+
$$css: true
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
// A mark out on the bare track is a foreground tick over the muted track
|
|
165
|
+
// background, so it takes `--color-text-primary`.
|
|
166
|
+
//
|
|
167
|
+
// The obvious candidate was `--color-border-emphasized` — the emphasized
|
|
168
|
+
// divider color `Divider`'s `strong` variant and `Slider`'s marks use — but
|
|
169
|
+
// divider tokens sit a step or two from the track on the same neutral ramp, so
|
|
170
|
+
// a mark drawn in one is at or near invisible: measured against each shipped
|
|
171
|
+
// theme's track it lands between 1.00:1 (theme-neutral, both modes, where the
|
|
172
|
+
// track is aliased to that very token) and 2.9:1, under the 3:1 WCAG 1.4.11
|
|
173
|
+
// non-text floor in 7 of 8 themes. `--color-text-secondary` still misses in
|
|
174
|
+
// two. `--color-text-primary` is the one foreground guaranteed to read against
|
|
175
|
+
// every surface a theme defines: 5.8:1 to 15.7:1 on the track across all
|
|
176
|
+
// themes and both modes.
|
|
177
|
+
const markOnTrackStyles = {
|
|
178
|
+
track: {
|
|
179
|
+
kWkggS: "x19aspcf",
|
|
180
|
+
$$css: true
|
|
181
|
+
},
|
|
182
|
+
trackDisabled: {
|
|
183
|
+
kWkggS: "xdomwnj",
|
|
184
|
+
$$css: true
|
|
185
|
+
}
|
|
186
|
+
};
|
|
115
187
|
function defaultFormatValueLabel(value, max) {
|
|
116
188
|
const pct = max > 0 ? Math.round(value / max * 100) : 0;
|
|
117
189
|
return `${pct}%`;
|
|
@@ -143,8 +215,11 @@ function defaultFormatValueLabel(value, max) {
|
|
|
143
215
|
* ```
|
|
144
216
|
*
|
|
145
217
|
* A mark's height, width, and color are directly themeable via the
|
|
146
|
-
* `progressbar-mark` target
|
|
147
|
-
*
|
|
218
|
+
* `progressbar-mark` target. The target reflects `data-placement`
|
|
219
|
+
* (`"fill"` when the mark sits inside the filled area, `"track"` when it is
|
|
220
|
+
* still out on the bare track) and `data-variant` (the fill's variant), so a
|
|
221
|
+
* theme can style the two cases separately — e.g. a taller "goal flag" tick
|
|
222
|
+
* that overhangs the bar (centered, so the overhang is symmetric):
|
|
148
223
|
*
|
|
149
224
|
* @example
|
|
150
225
|
* ```
|
|
@@ -190,13 +265,21 @@ export function ProgressBar({
|
|
|
190
265
|
// Marks make no sense without a determinate value, so they are only drawn
|
|
191
266
|
// in determinate mode. Non-finite mark values are dropped; the rest are
|
|
192
267
|
// clamped to the track edges, matching the bar's own `clampedValue`.
|
|
268
|
+
//
|
|
269
|
+
// Each mark also records whether it lands on the filled part of the bar
|
|
270
|
+
// (`isOnFill`), which decides its color: a mark inside the fill reads against
|
|
271
|
+
// the variant color, one out on the bare track reads against the track. A
|
|
272
|
+
// mark exactly at the fill's leading edge counts as on the fill — it is the
|
|
273
|
+
// "reached the target" moment — except at zero progress, where there is no
|
|
274
|
+
// fill for it to sit on.
|
|
193
275
|
const resolvedMarks = !isIndeterminate && marks ? marks.filter(mark => Number.isFinite(mark.value)).map(mark => {
|
|
194
276
|
const clamped = Math.min(Math.max(0, mark.value), safeMax);
|
|
195
277
|
const pct = safeMax > 0 ? clamped / safeMax * 100 : 0;
|
|
196
278
|
return {
|
|
197
279
|
value: mark.value,
|
|
198
280
|
label: mark.label,
|
|
199
|
-
pct
|
|
281
|
+
pct,
|
|
282
|
+
isOnFill: percentage > 0 && pct <= percentage
|
|
200
283
|
};
|
|
201
284
|
}) : [];
|
|
202
285
|
return /*#__PURE__*/_jsxs("div", {
|
|
@@ -272,11 +355,17 @@ export function ProgressBar({
|
|
|
272
355
|
// fallback shown while the lazy Tooltip chunk loads, so the tick is
|
|
273
356
|
// always visible and the label attaches once ready. The list `key`
|
|
274
357
|
// lives on the mapped <Suspense>, not here.
|
|
358
|
+
//
|
|
359
|
+
// `placement` is reflected as `data-placement` (and a class) so a
|
|
360
|
+
// theme can style the two cases separately on the
|
|
361
|
+
// `progressbar-mark` target; `variant` mirrors the fill's variant
|
|
362
|
+
// for the same reason.
|
|
275
363
|
const markEl = /*#__PURE__*/_jsx("span", {
|
|
276
364
|
tabIndex: 0,
|
|
277
|
-
...mergeProps(themeProps('progressbar-mark'
|
|
278
|
-
|
|
279
|
-
|
|
365
|
+
...mergeProps(themeProps('progressbar-mark', {
|
|
366
|
+
variant: fillVariant,
|
|
367
|
+
placement: mark.isOnFill ? 'fill' : 'track'
|
|
368
|
+
}), stylex.props(focusOutlineStyles.focusVisible, styles.mark, mark.isOnFill ? markOnFillStyles[fillVariant] : isDisabled ? markOnTrackStyles.trackDisabled : markOnTrackStyles.track)),
|
|
280
369
|
style: {
|
|
281
370
|
insetInlineStart: `${mark.pct}%`
|
|
282
371
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioListItem.d.ts","sourceRoot":"","sources":["../../src/RadioList/RadioListItem.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"RadioListItem.d.ts","sourceRoot":"","sources":["../../src/RadioList/RadioListItem.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,EAAqB,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAEhE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAkE5C,MAAM,WAAW,kBAAmB,SAAQ,SAAS,CAAC,cAAc,CAAC;IACnE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,EAC5B,GAAG,EACH,KAAK,EACL,KAAK,EACL,WAAW,EACX,UAAU,EAAE,cAAsB,EAClC,YAAY,EACZ,UAAU,EACV,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,kBAAkB,qBA8GpB;yBA1He,aAAa"}
|
|
@@ -17,14 +17,15 @@
|
|
|
17
17
|
* - /apps/storybook/stories/RadioList.stories.tsx
|
|
18
18
|
* - /packages/cli/assets/templates/blocks/components/RadioList/ (showcase blocks)
|
|
19
19
|
*/
|
|
20
|
-
import React, { use, useId } from 'react';
|
|
20
|
+
import React, { use, useId, useRef } from 'react';
|
|
21
21
|
import * as stylex from '@stylexjs/stylex';
|
|
22
22
|
import "../theme/tokens.stylex.js";
|
|
23
|
-
import { colorVars, spacingVars
|
|
23
|
+
import { colorVars, spacingVars } from "../theme/tokens.stylex.js";
|
|
24
24
|
import { RadioListContext } from "./RadioList.js";
|
|
25
25
|
import { mergeProps } from "../utils/index.js";
|
|
26
|
-
import "
|
|
27
|
-
import {
|
|
26
|
+
import { indicatorScope } from "../Indicator/indicator.markers.stylex.js";
|
|
27
|
+
import { useIndicatorFocusRing } from "../hooks/useIndicatorFocusRing.js";
|
|
28
|
+
import { useIndicator } from "../Indicator/index.js";
|
|
28
29
|
import { Item } from "../Item/index.js";
|
|
29
30
|
import { themeProps } from "../utils/themeProps.js";
|
|
30
31
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -56,49 +57,6 @@ const styles = {
|
|
|
56
57
|
inputDisabled: {
|
|
57
58
|
kkrTdU: "x1h6gzvc",
|
|
58
59
|
$$css: true
|
|
59
|
-
},
|
|
60
|
-
radio: {
|
|
61
|
-
k1xSpc: "x78zum5",
|
|
62
|
-
kGNEyG: "x6s0dn4",
|
|
63
|
-
kjj79g: "xl56j7k",
|
|
64
|
-
kMzoRj: "x1litavf",
|
|
65
|
-
ksu8eU: "x1y0btm7",
|
|
66
|
-
kaIpWk: "x16rqkct",
|
|
67
|
-
k1ekBW: "xts7igz",
|
|
68
|
-
kIyJzY: "xuedmi6",
|
|
69
|
-
kAMwcw: "xlr8y92",
|
|
70
|
-
kB7OPa: "x9f619",
|
|
71
|
-
$$css: true
|
|
72
|
-
},
|
|
73
|
-
radioUnchecked: {
|
|
74
|
-
kVAM5u: "xvy26l8 x70talc",
|
|
75
|
-
kWkggS: "x10xzikg xy1ay1n",
|
|
76
|
-
$$css: true
|
|
77
|
-
},
|
|
78
|
-
radioChecked: {
|
|
79
|
-
kVAM5u: "xad5do xaq2ahg",
|
|
80
|
-
kWkggS: "x1ewilqj xwnx32n",
|
|
81
|
-
$$css: true
|
|
82
|
-
},
|
|
83
|
-
radioWrapperFocus: {
|
|
84
|
-
kI3sdo: "x1a2a7pz x1irc7jg",
|
|
85
|
-
kInvED: "x1wfwxd8 xdjuwb3",
|
|
86
|
-
kaIpWk: "x16rqkct",
|
|
87
|
-
$$css: true
|
|
88
|
-
},
|
|
89
|
-
radioDisabled: {
|
|
90
|
-
kSiTet: "xbyyjgo",
|
|
91
|
-
kVAM5u: "x14i3s5s",
|
|
92
|
-
$$css: true
|
|
93
|
-
},
|
|
94
|
-
radioDisabledUnchecked: {
|
|
95
|
-
kWkggS: "xwmxj5m",
|
|
96
|
-
$$css: true
|
|
97
|
-
},
|
|
98
|
-
innerDot: {
|
|
99
|
-
kaIpWk: "x16rqkct",
|
|
100
|
-
kWkggS: "x1azo05 xwvh9j7",
|
|
101
|
-
$$css: true
|
|
102
60
|
}
|
|
103
61
|
};
|
|
104
62
|
const wrapperSizeStyles = {
|
|
@@ -113,30 +71,6 @@ const wrapperSizeStyles = {
|
|
|
113
71
|
$$css: true
|
|
114
72
|
}
|
|
115
73
|
};
|
|
116
|
-
const radioSizeStyles = {
|
|
117
|
-
sm: {
|
|
118
|
-
kzqmXN: "xw4jnvo",
|
|
119
|
-
kZKoxP: "x1qx5ct2",
|
|
120
|
-
$$css: true
|
|
121
|
-
},
|
|
122
|
-
md: {
|
|
123
|
-
kzqmXN: "xvy4d1p",
|
|
124
|
-
kZKoxP: "xxk0z11",
|
|
125
|
-
$$css: true
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
const dotSizeStyles = {
|
|
129
|
-
sm: {
|
|
130
|
-
kzqmXN: "x1xc55vz",
|
|
131
|
-
kZKoxP: "xdk7pt",
|
|
132
|
-
$$css: true
|
|
133
|
-
},
|
|
134
|
-
md: {
|
|
135
|
-
kzqmXN: "x1fsd2vl",
|
|
136
|
-
kZKoxP: "x170jfvy",
|
|
137
|
-
$$css: true
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
74
|
const embeddedStyles = {
|
|
141
75
|
root: {
|
|
142
76
|
k8WAf4: "xt970qd",
|
|
@@ -187,8 +121,18 @@ export function RadioListItem({
|
|
|
187
121
|
const keepsFocusableForMessage = context.hasDisabledMessage && !isItemDisabled;
|
|
188
122
|
const isChecked = context.value === value;
|
|
189
123
|
const size = context.size;
|
|
124
|
+
// The radio visual is an indicator: a theme can restyle it through the
|
|
125
|
+
// `radio` / `radio-dot` targets or replace the component outright.
|
|
126
|
+
const RadioControl = useIndicator('radio');
|
|
127
|
+
// See CheckboxInput: the ring goes on the indicator's own element, because
|
|
128
|
+
// the native input is visually hidden and only the indicator knows its shape.
|
|
129
|
+
const indicatorRef = useRef(null);
|
|
130
|
+
const {
|
|
131
|
+
focusProps
|
|
132
|
+
} = useIndicatorFocusRing(indicatorRef, isDisabled);
|
|
190
133
|
const radioCircle = /*#__PURE__*/_jsxs("div", {
|
|
191
|
-
...stylex.props(styles.radioWrapper, wrapperSizeStyles[size]
|
|
134
|
+
...stylex.props(styles.radioWrapper, wrapperSizeStyles[size]),
|
|
135
|
+
...focusProps,
|
|
192
136
|
children: [/*#__PURE__*/_jsx("input", {
|
|
193
137
|
id: id,
|
|
194
138
|
type: "radio",
|
|
@@ -211,17 +155,15 @@ export function RadioListItem({
|
|
|
211
155
|
},
|
|
212
156
|
"aria-describedby": description ? descriptionID : undefined,
|
|
213
157
|
...stylex.props(styles.input, wrapperSizeStyles[size], isDisabled && styles.inputDisabled)
|
|
214
|
-
}), /*#__PURE__*/_jsx("
|
|
215
|
-
|
|
216
|
-
...
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
size
|
|
224
|
-
}), stylex.props(styles.innerDot, dotSizeStyles[size]))
|
|
158
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
159
|
+
ref: indicatorRef,
|
|
160
|
+
...{
|
|
161
|
+
className: "xjp7ctv"
|
|
162
|
+
},
|
|
163
|
+
children: /*#__PURE__*/_jsx(RadioControl, {
|
|
164
|
+
state: isChecked ? 'checked' : 'unchecked',
|
|
165
|
+
size: size,
|
|
166
|
+
isDisabled: isDisabled
|
|
225
167
|
})
|
|
226
168
|
})]
|
|
227
169
|
});
|
|
@@ -230,7 +172,10 @@ export function RadioListItem({
|
|
|
230
172
|
}) : radioCircle;
|
|
231
173
|
return /*#__PURE__*/_jsx("div", {
|
|
232
174
|
ref: ref,
|
|
233
|
-
...mergeProps(themeProps('radio-list-item'), stylex.props(styles.container,
|
|
175
|
+
...mergeProps(themeProps('radio-list-item'), stylex.props(styles.container,
|
|
176
|
+
// Hover reaches the radio visual through this ancestor marker rather
|
|
177
|
+
// than props, so hovering the row tints the control.
|
|
178
|
+
!isDisabled && indicatorScope, xstyle), className, style),
|
|
234
179
|
...rest,
|
|
235
180
|
children: /*#__PURE__*/_jsx(Item, {
|
|
236
181
|
startContent: mediaContent,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResizeHandle.d.ts","sourceRoot":"","sources":["../../src/Resizable/ResizeHandle.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAErC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ResizeHandle.d.ts","sourceRoot":"","sources":["../../src/Resizable/ResizeHandle.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAErC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAU5C,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAOnD,KAAK,aAAa,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAwMzD,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAC7C,SAAS,CAAC,cAAc,CAAC,EACzB,OAAO,CACR;IACC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAEhC;;;OAGG;IACH,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IAEtC;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAEhC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,6CAA6C;IAC7C,SAAS,CAAC,EAAE,cAAc,CAAC;IAE3B,yDAAyD;IACzD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,YAAY,CAAC,EAC3B,SAAwB,EACxB,QAAQ,EAAE,YAAuB,EACjC,UAAkB,EAClB,UAAkB,EAClB,UAAkB,EAClB,eAAsB,EACtB,aAAsB,EACtB,KAAK,EAAE,cAAc,EACrB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,iBAAiB,+BA6RnB;yBA5Se,YAAY"}
|
|
@@ -26,6 +26,7 @@ import { useCallback, useEffect, useRef, useState } from 'react';
|
|
|
26
26
|
import * as stylex from '@stylexjs/stylex';
|
|
27
27
|
import "../theme/tokens.stylex.js";
|
|
28
28
|
import { colorVars, durationVars, easeVars, radiusVars, spacingVars } from "../theme/tokens.stylex.js";
|
|
29
|
+
import { focusOutlineProps } from "../utils/focusOutline.stylex.js";
|
|
29
30
|
import { mergeProps, mergeRefs, rtlStyles } from "../utils/index.js";
|
|
30
31
|
import { themeProps } from "../utils/themeProps.js";
|
|
31
32
|
import { useTranslator } from "../i18n/index.js";
|
|
@@ -75,8 +76,6 @@ const styles = {
|
|
|
75
76
|
k1ekBW: "x15406qy",
|
|
76
77
|
kIyJzY: "xuedmi6",
|
|
77
78
|
kAMwcw: "xlr8y92",
|
|
78
|
-
kI3sdo: "x1a2a7pz x17nn4n9",
|
|
79
|
-
kInvED: "xh2nty3",
|
|
80
79
|
$$css: true
|
|
81
80
|
},
|
|
82
81
|
overlay: {
|
|
@@ -445,7 +444,7 @@ export function ResizeHandle({
|
|
|
445
444
|
onFocus: () => setIsFocused(true),
|
|
446
445
|
onBlur: () => setIsFocused(false),
|
|
447
446
|
"data-resizing": isDragging || undefined,
|
|
448
|
-
...mergeProps(themeProps('resize-handle'),
|
|
447
|
+
...mergeProps(themeProps('resize-handle'), focusOutlineProps.focusVisible(styles.handle, isOverlay && styles.overlay, isOverlay && (isHorizontal ? styles.overlayHorizontal : styles.overlayVertical), !isOverlay && (isHorizontal ? styles.horizontal : styles.vertical), !isOverlay && !hasDivider && (isHorizontal ? styles.noDividerHorizontal : styles.noDividerVertical), !isOverlay && hasDivider && isInteracting && !isDragging && styles.handleHover, !isOverlay && hasDivider && isDragging && styles.handleActive, isDisabled && styles.disabled, xstyle), className),
|
|
449
448
|
...props,
|
|
450
449
|
// Keyboard resizing must fire from the focusable separator, not a child:
|
|
451
450
|
// keydown fires on the focused element and bubbles up, so a handler on a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControlItem.d.ts","sourceRoot":"","sources":["../../src/SegmentedControl/SegmentedControlItem.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,EAAC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAe5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"SegmentedControlItem.d.ts","sourceRoot":"","sources":["../../src/SegmentedControl/SegmentedControlItem.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,EAAC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAe5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAI5C,MAAM,WAAW,yBAA0B,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IAC7E,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAuGD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,GAAG,EACH,KAAK,EACL,KAAK,EACL,aAAqB,EACrB,IAAI,EACJ,UAAkB,EAClB,OAAO,EAAE,WAAW,EACpB,MAAM,EACN,GAAG,IAAI,EACR,EAAE,yBAAyB,qBAiE3B;yBA3Ee,oBAAoB"}
|
|
@@ -21,6 +21,7 @@ import { colorVars, spacingVars, sizeVars, durationVars, easeVars, fontWeightVar
|
|
|
21
21
|
import { useSegmentedControlContext } from "./SegmentedControlContext.js";
|
|
22
22
|
import { mergeProps, composeEventHandlers } from "../utils/index.js";
|
|
23
23
|
import { themeProps } from "../utils/themeProps.js";
|
|
24
|
+
import { focusOutlineProps } from "../utils/focusOutline.stylex.js";
|
|
24
25
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
26
|
// =============================================================================
|
|
26
27
|
// Styles
|
|
@@ -46,8 +47,6 @@ const styles = {
|
|
|
46
47
|
k1ekBW: "x1vix5yk",
|
|
47
48
|
kIyJzY: "xuedmi6",
|
|
48
49
|
kAMwcw: "xlr8y92",
|
|
49
|
-
kI3sdo: "x17nn4n9",
|
|
50
|
-
kInvED: "x1wfwxd8 x7s97pk",
|
|
51
50
|
$$css: true
|
|
52
51
|
},
|
|
53
52
|
hover: {
|
|
@@ -183,7 +182,7 @@ export function SegmentedControlItem({
|
|
|
183
182
|
size,
|
|
184
183
|
selected: isSelected ? 'selected' : null,
|
|
185
184
|
disabled: isItemDisabled ? 'disabled' : null
|
|
186
|
-
}),
|
|
185
|
+
}), focusOutlineProps.focusVisible(styles.base, sizeStyles[size], isFill && styles.fill, isSelected && styles.selected, !isSelected && !isItemDisabled && styles.hover, isItemDisabled && styles.disabled, xstyle)),
|
|
187
186
|
children: [iconElement, !isLabelHidden && /*#__PURE__*/_jsx("span", {
|
|
188
187
|
children: label
|
|
189
188
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectableCard.d.ts","sourceRoot":"","sources":["../../src/SelectableCard/SelectableCard.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AA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