@astryxdesign/core 0.0.15 → 0.1.0-canary.08d4cf4
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 +69 -0
- package/README.md +8 -10
- package/dist/AlertDialog/AlertDialog.js +2 -2
- package/dist/AppShell/AppShell.js +5 -5
- package/dist/AspectRatio/AspectRatio.js +2 -2
- package/dist/Avatar/Avatar.js +2 -2
- package/dist/Avatar/AvatarStatusDot.js +2 -2
- package/dist/AvatarGroup/AvatarGroup.js +2 -2
- package/dist/AvatarGroup/AvatarGroupOverflow.js +3 -3
- package/dist/Badge/Badge.js +2 -2
- package/dist/Banner/Banner.d.ts +2 -2
- package/dist/Banner/Banner.js +6 -6
- package/dist/Blockquote/Blockquote.js +2 -2
- package/dist/Breadcrumbs/BreadcrumbItem.js +3 -3
- package/dist/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/Button/Button.js +2 -2
- package/dist/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/Calendar/Calendar.js +3 -3
- package/dist/Card/Card.js +2 -2
- package/dist/Carousel/Carousel.js +2 -2
- package/dist/Center/Center.js +2 -2
- package/dist/Chat/ChatComposer.js +2 -2
- package/dist/Chat/ChatComposerDrawer.js +2 -2
- package/dist/Chat/ChatComposerInput.js +2 -2
- package/dist/Chat/ChatLayout.js +2 -2
- package/dist/Chat/ChatLayoutScrollButton.d.ts.map +1 -1
- package/dist/Chat/ChatLayoutScrollButton.js +5 -1
- package/dist/Chat/ChatMessage.js +2 -2
- package/dist/Chat/ChatMessageBubble.js +2 -2
- package/dist/Chat/ChatMessageList.js +2 -2
- package/dist/Chat/ChatMessageMetadata.js +2 -2
- package/dist/Chat/ChatSendButton.js +2 -2
- package/dist/Chat/ChatSystemMessage.js +3 -3
- package/dist/Chat/ChatTokenizedText.js +3 -3
- package/dist/Chat/ChatToolCalls.js +3 -3
- package/dist/Chat/useTriggerMenu.js +2 -2
- package/dist/CheckboxInput/CheckboxInput.js +3 -3
- package/dist/CheckboxList/CheckboxList.js +2 -2
- package/dist/Citation/Citation.js +3 -3
- package/dist/ClickableCard/ClickableCard.js +2 -2
- package/dist/Code/Code.js +2 -2
- package/dist/CodeBlock/CodeBlock.js +2 -2
- package/dist/Collapsible/Collapsible.js +2 -2
- package/dist/CommandPalette/CommandPaletteFooter.js +2 -2
- package/dist/CommandPalette/CommandPaletteGroup.js +2 -2
- package/dist/CommandPalette/CommandPaletteInput.js +2 -2
- package/dist/CommandPalette/CommandPaletteItem.js +2 -2
- package/dist/CommandPalette/CommandPaletteList.js +2 -2
- package/dist/ContextMenu/ContextMenu.js +4 -4
- package/dist/DateInput/DateInput.js +2 -2
- package/dist/DateRangeInput/DateRangeInput.js +2 -2
- package/dist/DateTimeInput/DateTimeInput.js +2 -2
- package/dist/Dialog/Dialog.js +3 -3
- package/dist/Divider/Divider.js +2 -2
- package/dist/DropdownMenu/DropdownMenu.js +4 -4
- package/dist/DropdownMenu/DropdownMenuItem.js +2 -2
- package/dist/DropdownMenu/{renderXDSDropdownItems.d.ts → renderDropdownItems.d.ts} +3 -3
- package/dist/DropdownMenu/renderDropdownItems.d.ts.map +1 -0
- package/dist/DropdownMenu/{renderXDSDropdownItems.js → renderDropdownItems.js} +2 -2
- package/dist/EmptyState/EmptyState.js +2 -2
- package/dist/Field/Field.js +3 -3
- package/dist/Field/FieldLabel.js +2 -2
- package/dist/FieldStatus/FieldStatus.js +2 -2
- package/dist/FileInput/FileInput.js +2 -2
- package/dist/FormLayout/FormLayout.js +2 -2
- package/dist/Grid/Grid.js +3 -3
- package/dist/Grid/GridSpan.js +2 -2
- package/dist/Heading/Heading.js +2 -2
- package/dist/HoverCard/useHoverCard.js +2 -2
- package/dist/Icon/Icon.js +3 -3
- package/dist/InputGroup/InputGroup.js +2 -2
- package/dist/InputGroup/InputGroupText.js +2 -2
- package/dist/Item/Item.js +2 -2
- package/dist/Kbd/Kbd.js +2 -2
- package/dist/Layer/useLayer.d.ts +2 -2
- package/dist/Layout/Layout.js +2 -2
- package/dist/Layout/LayoutContent.js +2 -2
- package/dist/Layout/LayoutFooter.js +2 -2
- package/dist/Layout/LayoutHeader.js +2 -2
- package/dist/Layout/LayoutPanel.js +2 -2
- package/dist/Lightbox/Lightbox.js +2 -2
- package/dist/Link/Link.js +3 -3
- package/dist/List/List.js +2 -2
- package/dist/List/ListItem.js +2 -2
- package/dist/Markdown/Markdown.js +3 -3
- package/dist/MetadataList/MetadataList.js +2 -2
- package/dist/MetadataList/MetadataListItem.js +3 -3
- package/dist/MobileNav/MobileNav.js +2 -2
- package/dist/MultiSelector/MultiSelector.js +2 -2
- package/dist/NavIcon/NavIcon.js +2 -2
- package/dist/NavMenu/NavHeadingMenu.js +2 -2
- package/dist/NavMenu/NavHeadingMenuItem.js +2 -2
- package/dist/NumberInput/NumberInput.js +2 -2
- package/dist/Outline/Outline.d.ts +3 -2
- package/dist/Outline/Outline.d.ts.map +1 -1
- package/dist/Outline/Outline.js +27 -8
- package/dist/Outline/useScrollSpy.d.ts +14 -1
- package/dist/Outline/useScrollSpy.d.ts.map +1 -1
- package/dist/Outline/useScrollSpy.js +161 -50
- package/dist/OverflowList/OverflowList.js +2 -2
- package/dist/Overlay/Overlay.js +2 -2
- package/dist/Overlay/OverlayScrim.js +2 -2
- package/dist/Pagination/Pagination.js +3 -3
- package/dist/Popover/Popover.js +4 -4
- package/dist/PowerSearch/PowerSearch.js +2 -2
- package/dist/ProgressBar/ProgressBar.js +5 -5
- package/dist/RadioList/RadioList.js +2 -2
- package/dist/RadioList/RadioListItem.js +4 -4
- package/dist/Resizable/ResizeHandle.js +4 -4
- package/dist/Resizable/useResizable.d.ts.map +1 -1
- package/dist/Resizable/useResizable.js +1 -5
- package/dist/Section/Section.js +2 -2
- package/dist/SegmentedControl/SegmentedControl.js +2 -2
- package/dist/SegmentedControl/SegmentedControlItem.js +2 -2
- package/dist/SelectableCard/SelectableCard.js +2 -2
- package/dist/Selector/Selector.d.ts.map +1 -1
- package/dist/Selector/Selector.js +3 -3
- package/dist/Selector/SelectorOption.js +2 -2
- package/dist/SideNav/SideNav.js +3 -3
- package/dist/SideNav/SideNavHeading.js +9 -9
- package/dist/SideNav/SideNavItem.js +3 -3
- package/dist/SideNav/SideNavSection.js +2 -2
- package/dist/Skeleton/Skeleton.js +2 -2
- package/dist/Slider/Slider.js +4 -4
- package/dist/Spinner/Spinner.js +3 -3
- package/dist/Stack/Stack.js +2 -2
- package/dist/Stack/StackItem.js +2 -2
- package/dist/StatusDot/StatusDot.js +2 -2
- package/dist/Switch/Switch.js +4 -4
- package/dist/TabList/Tab.js +3 -3
- package/dist/TabList/TabList.js +2 -2
- package/dist/TabList/TabMenu.js +5 -5
- package/dist/Table/BaseTable.js +2 -2
- package/dist/Table/Table.js +3 -3
- package/dist/Table/TableBody.js +2 -2
- package/dist/Table/TableCell.js +3 -3
- package/dist/Table/TableFooter.js +2 -2
- package/dist/Table/TableHeader.js +2 -2
- package/dist/Table/TableHeaderCell.js +3 -3
- package/dist/Table/TableRow.js +3 -3
- package/dist/Text/Text.js +2 -2
- package/dist/TextArea/TextArea.js +2 -2
- package/dist/TextInput/TextInput.js +2 -2
- package/dist/Thumbnail/Thumbnail.js +2 -2
- package/dist/TimeInput/TimeInput.js +2 -2
- package/dist/Timestamp/Timestamp.js +2 -2
- package/dist/Toast/Toast.js +2 -2
- package/dist/ToggleButton/ToggleButton.d.ts +10 -3
- package/dist/ToggleButton/ToggleButton.d.ts.map +1 -1
- package/dist/ToggleButton/ToggleButton.js +66 -20
- package/dist/ToggleButton/ToggleButtonGroup.js +2 -2
- package/dist/Token/Token.js +4 -4
- package/dist/Tokenizer/Tokenizer.js +3 -3
- package/dist/Toolbar/Toolbar.js +2 -2
- package/dist/Tooltip/useTooltip.js +2 -2
- package/dist/TopNav/TopNav.js +3 -3
- package/dist/TopNav/TopNavHeading.js +7 -7
- package/dist/TopNav/TopNavItem.js +3 -3
- package/dist/TopNav/TopNavMegaMenu.js +3 -3
- package/dist/TopNav/TopNavMegaMenuFeaturedCard.js +2 -2
- package/dist/TopNav/TopNavMegaMenuItem.js +3 -3
- package/dist/TopNav/TopNavMenu.js +2 -2
- package/dist/TreeList/TreeList.js +2 -2
- package/dist/TreeList/TreeListItem.js +2 -2
- package/dist/Typeahead/BaseTypeahead.js +2 -2
- package/dist/Typeahead/Typeahead.js +2 -2
- package/dist/Typeahead/TypeaheadItem.js +2 -2
- package/dist/docs-types.d.ts +3 -3
- package/dist/docs-types.d.ts.map +1 -1
- package/dist/naming.d.ts +1 -1
- package/dist/naming.js +1 -1
- package/dist/theme/Theme.js +1 -1
- package/dist/theme/defineTheme.d.ts +3 -3
- package/dist/theme/defineTheme.d.ts.map +1 -1
- package/dist/theme/defineTheme.js +1 -1
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +2 -2
- package/dist/theme/syntax/defineSyntaxTheme.js +1 -1
- package/dist/theme/tokens.d.ts +1 -1
- package/dist/theme/tokens.js +4 -4
- package/dist/theme/useTheme.d.ts +2 -2
- package/dist/utils/dateParser.d.ts.map +1 -1
- package/dist/utils/dateParser.js +15 -2
- package/dist/utils/mergeProps.d.ts +3 -3
- package/dist/utils/mergeProps.js +4 -4
- package/dist/utils/parseStyleKey.d.ts +2 -2
- package/dist/utils/parseStyleKey.js +2 -2
- package/dist/utils/{xdsThemeProps.d.ts → themeProps.d.ts} +4 -4
- package/dist/utils/themeProps.d.ts.map +1 -0
- package/dist/utils/{xdsThemeProps.js → themeProps.js} +5 -5
- package/package.json +2 -2
- package/src/AlertDialog/AlertDialog.tsx +2 -2
- package/src/AppShell/AppShell.tsx +5 -5
- package/src/AspectRatio/AspectRatio.tsx +2 -2
- package/src/Avatar/Avatar.tsx +2 -2
- package/src/Avatar/AvatarStatusDot.tsx +2 -2
- package/src/AvatarGroup/AvatarGroup.tsx +2 -2
- package/src/AvatarGroup/AvatarGroupOverflow.tsx +3 -3
- package/src/Badge/Badge.tsx +2 -2
- package/src/Banner/Banner.tsx +6 -6
- package/src/Blockquote/Blockquote.tsx +2 -2
- package/src/Breadcrumbs/BreadcrumbItem.tsx +3 -3
- package/src/Breadcrumbs/Breadcrumbs.tsx +2 -2
- package/src/Button/Button.tsx +2 -2
- package/src/ButtonGroup/ButtonGroup.tsx +2 -2
- package/src/Calendar/Calendar.tsx +3 -3
- package/src/Card/Card.tsx +2 -2
- package/src/Carousel/Carousel.tsx +2 -2
- package/src/Center/Center.tsx +2 -2
- package/src/Chat/ChatComposer.tsx +2 -2
- package/src/Chat/ChatComposerDrawer.tsx +2 -2
- package/src/Chat/ChatComposerInput.tsx +2 -2
- package/src/Chat/ChatLayout.tsx +2 -2
- package/src/Chat/ChatLayoutScrollButton.tsx +7 -1
- package/src/Chat/ChatMessage.tsx +2 -2
- package/src/Chat/ChatMessageBubble.tsx +2 -2
- package/src/Chat/ChatMessageList.tsx +2 -2
- package/src/Chat/ChatMessageMetadata.tsx +2 -2
- package/src/Chat/ChatSendButton.tsx +2 -2
- package/src/Chat/ChatSystemMessage.tsx +3 -3
- package/src/Chat/ChatTokenizedText.tsx +3 -3
- package/src/Chat/ChatToolCalls.tsx +3 -3
- package/src/Chat/useTriggerMenu.tsx +2 -2
- package/src/CheckboxInput/CheckboxInput.tsx +3 -3
- package/src/CheckboxList/CheckboxList.tsx +2 -2
- package/src/Citation/Citation.tsx +3 -3
- package/src/ClickableCard/ClickableCard.tsx +2 -2
- package/src/Code/Code.tsx +2 -2
- package/src/CodeBlock/CodeBlock.tsx +2 -2
- package/src/Collapsible/Collapsible.tsx +2 -2
- package/src/Collapsible/useCollapsible.doc.mjs +2 -2
- package/src/CommandPalette/CommandPaletteFooter.tsx +2 -2
- package/src/CommandPalette/CommandPaletteGroup.tsx +2 -2
- package/src/CommandPalette/CommandPaletteInput.tsx +2 -2
- package/src/CommandPalette/CommandPaletteItem.tsx +2 -2
- package/src/CommandPalette/CommandPaletteList.tsx +2 -2
- package/src/ContextMenu/ContextMenu.tsx +4 -4
- package/src/DateInput/DateInput.test.tsx +68 -20
- package/src/DateInput/DateInput.tsx +2 -2
- package/src/DateRangeInput/DateRangeInput.tsx +2 -2
- package/src/DateTimeInput/DateTimeInput.tsx +2 -2
- package/src/Dialog/Dialog.tsx +3 -3
- package/src/Divider/Divider.doc.mjs +1 -1
- package/src/Divider/Divider.tsx +2 -2
- package/src/DropdownMenu/DropdownMenu.tsx +4 -4
- package/src/DropdownMenu/DropdownMenuItem.tsx +2 -2
- package/src/DropdownMenu/{renderXDSDropdownItems.tsx → renderDropdownItems.tsx} +2 -2
- package/src/EmptyState/EmptyState.tsx +2 -2
- package/src/Field/Field.tsx +3 -3
- package/src/Field/FieldLabel.tsx +2 -2
- package/src/FieldStatus/FieldStatus.tsx +2 -2
- package/src/FileInput/FileInput.tsx +2 -2
- package/src/FormLayout/FormLayout.doc.mjs +3 -3
- package/src/FormLayout/FormLayout.tsx +2 -2
- package/src/Grid/Grid.tsx +3 -3
- package/src/Grid/GridSpan.tsx +2 -2
- package/src/Heading/Heading.tsx +2 -2
- package/src/HoverCard/useHoverCard.tsx +2 -2
- package/src/Icon/Icon.doc.mjs +4 -4
- package/src/Icon/Icon.tsx +3 -3
- package/src/InputGroup/InputGroup.tsx +2 -2
- package/src/InputGroup/InputGroupText.tsx +2 -2
- package/src/Item/Item.doc.mjs +2 -2
- package/src/Item/Item.tsx +2 -2
- package/src/Kbd/Kbd.tsx +2 -2
- package/src/Layer/useLayer.tsx +2 -2
- package/src/Layout/Layout.tsx +2 -2
- package/src/Layout/LayoutContent.tsx +2 -2
- package/src/Layout/LayoutFooter.tsx +2 -2
- package/src/Layout/LayoutHeader.tsx +2 -2
- package/src/Layout/LayoutPanel.tsx +2 -2
- package/src/Lightbox/Lightbox.tsx +2 -2
- package/src/Link/Link.doc.mjs +3 -3
- package/src/Link/Link.tsx +3 -3
- package/src/Link/LinkProvider.doc.mjs +3 -3
- package/src/List/List.tsx +2 -2
- package/src/List/ListItem.tsx +2 -2
- package/src/Markdown/Markdown.doc.mjs +4 -4
- package/src/Markdown/Markdown.tsx +3 -3
- package/src/MetadataList/MetadataList.tsx +2 -2
- package/src/MetadataList/MetadataListItem.tsx +3 -3
- package/src/MobileNav/MobileNav.tsx +2 -2
- package/src/MoreMenu/MoreMenu.doc.mjs +0 -13
- package/src/MultiSelector/MultiSelector.tsx +2 -2
- package/src/NavIcon/NavIcon.tsx +2 -2
- package/src/NavMenu/NavHeadingMenu.tsx +2 -2
- package/src/NavMenu/NavHeadingMenuItem.tsx +2 -2
- package/src/NumberInput/NumberInput.tsx +2 -2
- package/src/Outline/Outline.doc.mjs +1 -1
- package/src/Outline/Outline.test.tsx +76 -38
- package/src/Outline/Outline.tsx +27 -8
- package/src/Outline/useScrollSpy.ts +196 -63
- package/src/OverflowList/OverflowList.tsx +2 -2
- package/src/Overlay/Overlay.tsx +2 -2
- package/src/Overlay/OverlayScrim.tsx +2 -2
- package/src/Pagination/Pagination.tsx +3 -3
- package/src/Popover/Popover.tsx +4 -4
- package/src/PowerSearch/PowerSearch.tsx +2 -2
- package/src/ProgressBar/ProgressBar.tsx +5 -5
- package/src/RadioList/RadioList.tsx +2 -2
- package/src/RadioList/RadioListItem.tsx +4 -4
- package/src/Resizable/Resizable.doc.mjs +2 -2
- package/src/Resizable/ResizeHandle.tsx +4 -4
- package/src/Resizable/useResizable.ts +1 -7
- package/src/Section/Section.tsx +2 -2
- package/src/SegmentedControl/SegmentedControl.tsx +2 -2
- package/src/SegmentedControl/SegmentedControlItem.tsx +2 -2
- package/src/SelectableCard/SelectableCard.tsx +2 -2
- package/src/Selector/Selector.tsx +7 -8
- package/src/Selector/SelectorOption.tsx +2 -2
- package/src/SideNav/SideNav.tsx +3 -3
- package/src/SideNav/SideNavHeading.tsx +9 -9
- package/src/SideNav/SideNavItem.tsx +3 -3
- package/src/SideNav/SideNavSection.tsx +2 -2
- package/src/Skeleton/Skeleton.tsx +2 -2
- package/src/Slider/Slider.tsx +4 -4
- package/src/Spinner/Spinner.tsx +3 -3
- package/src/Stack/Stack.tsx +2 -2
- package/src/Stack/StackItem.tsx +2 -2
- package/src/StatusDot/StatusDot.tsx +2 -2
- package/src/Switch/Switch.tsx +4 -4
- package/src/TabList/Tab.tsx +3 -3
- package/src/TabList/TabList.tsx +2 -2
- package/src/TabList/TabMenu.tsx +5 -5
- package/src/Table/BaseTable.tsx +2 -2
- package/src/Table/Table.doc.mjs +3 -3
- package/src/Table/Table.tsx +3 -3
- package/src/Table/TableBody.tsx +2 -2
- package/src/Table/TableCell.tsx +3 -3
- package/src/Table/TableFooter.tsx +2 -2
- package/src/Table/TableHeader.tsx +2 -2
- package/src/Table/TableHeaderCell.tsx +3 -3
- package/src/Table/TableRow.tsx +3 -3
- package/src/Text/Text.tsx +2 -2
- package/src/TextArea/TextArea.tsx +2 -2
- package/src/TextInput/TextInput.tsx +2 -2
- package/src/Thumbnail/Thumbnail.tsx +2 -2
- package/src/TimeInput/TimeInput.tsx +2 -2
- package/src/Timestamp/Timestamp.tsx +2 -2
- package/src/Toast/Toast.tsx +2 -2
- package/src/ToggleButton/ToggleButton.doc.mjs +2 -2
- package/src/ToggleButton/ToggleButton.test.tsx +148 -6
- package/src/ToggleButton/ToggleButton.tsx +85 -22
- package/src/ToggleButton/ToggleButtonGroup.tsx +2 -2
- package/src/Token/Token.tsx +4 -4
- package/src/Tokenizer/Tokenizer.tsx +3 -3
- package/src/Toolbar/Toolbar.doc.mjs +8 -7
- package/src/Toolbar/Toolbar.tsx +2 -2
- package/src/Tooltip/useTooltip.tsx +2 -2
- package/src/TopNav/TopNav.tsx +3 -3
- package/src/TopNav/TopNavHeading.tsx +7 -7
- package/src/TopNav/TopNavItem.tsx +3 -3
- package/src/TopNav/TopNavMegaMenu.tsx +3 -3
- package/src/TopNav/TopNavMegaMenuFeaturedCard.tsx +2 -2
- package/src/TopNav/TopNavMegaMenuItem.tsx +3 -3
- package/src/TopNav/TopNavMenu.tsx +2 -2
- package/src/TreeList/TreeList.tsx +2 -2
- package/src/TreeList/TreeListItem.tsx +2 -2
- package/src/Typeahead/BaseTypeahead.tsx +2 -2
- package/src/Typeahead/Typeahead.tsx +2 -2
- package/src/Typeahead/TypeaheadItem.tsx +2 -2
- package/src/docs-types.ts +3 -3
- package/src/hooks/useEntryAnimation.doc.mjs +3 -3
- package/src/hooks/useMediaQuery.doc.mjs +2 -2
- package/src/hooks/useStreamingText.doc.mjs +3 -3
- package/src/naming.ts +1 -1
- package/src/reset.css +1 -1
- package/src/tailwind-theme.css +1 -1
- package/src/theme/Theme.doc.mjs +2 -2
- package/src/theme/Theme.tsx +1 -1
- package/src/theme/defineTheme.ts +3 -3
- package/src/theme/index.ts +2 -2
- package/src/theme/syntax/defineSyntaxTheme.ts +1 -1
- package/src/theme/tokens.ts +4 -4
- package/src/theme/useTheme.ts +2 -2
- package/src/utils/dateParser.test.ts +26 -0
- package/src/utils/dateParser.ts +16 -2
- package/src/utils/mergeProps.ts +4 -4
- package/src/utils/parseStyleKey.ts +2 -2
- package/src/utils/{xdsThemeProps.test.ts → themeProps.test.ts} +12 -12
- package/src/utils/{xdsThemeProps.ts → themeProps.ts} +5 -5
- package/dist/DropdownMenu/renderXDSDropdownItems.d.ts.map +0 -1
- package/dist/utils/xdsThemeProps.d.ts.map +0 -1
package/dist/Popover/Popover.js
CHANGED
|
@@ -25,7 +25,7 @@ import { layerAnimations } from "../Layer/layerAnimations.stylex.js";
|
|
|
25
25
|
import "../theme/tokens.stylex.js";
|
|
26
26
|
import { spacingVars } from "../theme/tokens.stylex.js";
|
|
27
27
|
import { InteractiveRoleContext } from "../InteractiveRoleContext/InteractiveRoleContext.js";
|
|
28
|
-
import {
|
|
28
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
29
29
|
|
|
30
30
|
// =============================================================================
|
|
31
31
|
// Helpers
|
|
@@ -296,7 +296,7 @@ export function Popover({
|
|
|
296
296
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
297
297
|
children: popover.render(/*#__PURE__*/_jsx("div", {
|
|
298
298
|
"data-testid": testId,
|
|
299
|
-
...mergeProps(
|
|
299
|
+
...mergeProps(themeProps('popover'), stylex.props(styles.contentPadding, xstyle), className, style),
|
|
300
300
|
children: content
|
|
301
301
|
}), {
|
|
302
302
|
placement,
|
|
@@ -319,7 +319,7 @@ export function Popover({
|
|
|
319
319
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
320
320
|
children: [children(triggerProps), popover.render(/*#__PURE__*/_jsx("div", {
|
|
321
321
|
"data-testid": testId,
|
|
322
|
-
...mergeProps(
|
|
322
|
+
...mergeProps(themeProps('popover'), stylex.props(styles.contentPadding, xstyle), className, style),
|
|
323
323
|
children: content
|
|
324
324
|
}), {
|
|
325
325
|
placement,
|
|
@@ -342,7 +342,7 @@ export function Popover({
|
|
|
342
342
|
})
|
|
343
343
|
}), popover.render(/*#__PURE__*/_jsx("div", {
|
|
344
344
|
"data-testid": testId,
|
|
345
|
-
...mergeProps(
|
|
345
|
+
...mergeProps(themeProps('popover'), stylex.props(styles.contentPadding, xstyle), className, style),
|
|
346
346
|
children: content
|
|
347
347
|
}), {
|
|
348
348
|
placement,
|
|
@@ -30,7 +30,7 @@ import { useInternalConfig } from "./useInternalConfig.js";
|
|
|
30
30
|
import { usePowerSearchSource } from "./usePowerSearchSource.js";
|
|
31
31
|
import { formatFilterValue } from "./formatFilterValue.js";
|
|
32
32
|
import { PowerSearchEditPopover } from "./PowerSearchEditPopover.js";
|
|
33
|
-
import {
|
|
33
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
34
34
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
35
35
|
// =============================================================================
|
|
36
36
|
// Icon mapping for typeahead entries
|
|
@@ -724,7 +724,7 @@ export function PowerSearch({
|
|
|
724
724
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
725
725
|
children: [/*#__PURE__*/_jsx("div", {
|
|
726
726
|
ref: mergeRefs(ref, popover.triggerRef),
|
|
727
|
-
...
|
|
727
|
+
...themeProps('power-search'),
|
|
728
728
|
children: /*#__PURE__*/_jsx(Tokenizer, {
|
|
729
729
|
handleRef: tokenizerRef,
|
|
730
730
|
label: label,
|
|
@@ -20,7 +20,7 @@ import * as stylex from '@stylexjs/stylex';
|
|
|
20
20
|
import "../theme/tokens.stylex.js";
|
|
21
21
|
import { colorVars, spacingVars, radiusVars, fontWeightVars, durationVars, easeVars, typeScaleVars } from "../theme/tokens.stylex.js";
|
|
22
22
|
import { mergeProps } from "../utils/index.js";
|
|
23
|
-
import {
|
|
23
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Extensible variant map for ProgressBar.
|
|
@@ -157,7 +157,7 @@ export function ProgressBar({
|
|
|
157
157
|
const fillVariant = isDisabled ? 'disabled' : variant;
|
|
158
158
|
return /*#__PURE__*/_jsxs("div", {
|
|
159
159
|
ref: ref,
|
|
160
|
-
...mergeProps(
|
|
160
|
+
...mergeProps(themeProps('progressbar', {
|
|
161
161
|
variant
|
|
162
162
|
}), stylex.props(styles.container, xstyle), className, style),
|
|
163
163
|
"data-testid": dataTestId,
|
|
@@ -207,15 +207,15 @@ export function ProgressBar({
|
|
|
207
207
|
"aria-valuemax": isIndeterminate ? undefined : max,
|
|
208
208
|
"aria-labelledby": labelId,
|
|
209
209
|
"aria-valuetext": isIndeterminate ? undefined : valueText,
|
|
210
|
-
...mergeProps(
|
|
210
|
+
...mergeProps(themeProps('progressbar-track'), {
|
|
211
211
|
className: "xh8yej3 xdk7pt xwmxj5m xjspbzw xb3r6kr"
|
|
212
212
|
}),
|
|
213
213
|
children: isIndeterminate ? /*#__PURE__*/_jsx("div", {
|
|
214
|
-
...mergeProps(
|
|
214
|
+
...mergeProps(themeProps('progressbar-fill', {
|
|
215
215
|
variant: fillVariant
|
|
216
216
|
}), stylex.props(styles.indeterminateFill, variantStyles[fillVariant]))
|
|
217
217
|
}) : /*#__PURE__*/_jsx("div", {
|
|
218
|
-
...mergeProps(
|
|
218
|
+
...mergeProps(themeProps('progressbar-fill', {
|
|
219
219
|
variant: fillVariant
|
|
220
220
|
}), stylex.props(styles.fill, variantStyles[fillVariant])),
|
|
221
221
|
style: {
|
|
@@ -21,7 +21,7 @@ import "../theme/tokens.stylex.js";
|
|
|
21
21
|
import { spacingVars } from "../theme/tokens.stylex.js";
|
|
22
22
|
import { Field } from "../Field/Field.js";
|
|
23
23
|
import { mergeProps } from "../utils/index.js";
|
|
24
|
-
import {
|
|
24
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Size of the radio controls, matching CheckboxInput sizes.
|
|
@@ -106,7 +106,7 @@ export function RadioList({
|
|
|
106
106
|
"aria-describedby": [description ? descriptionID : null, status?.message ? statusMessageID : null].filter(Boolean).join(' ') || undefined,
|
|
107
107
|
"aria-invalid": status?.type === 'error' ? true : undefined,
|
|
108
108
|
"aria-required": isRequired || undefined,
|
|
109
|
-
...mergeProps(
|
|
109
|
+
...mergeProps(themeProps('radio-list', {
|
|
110
110
|
orientation,
|
|
111
111
|
size
|
|
112
112
|
}), {
|
|
@@ -26,7 +26,7 @@ import { mergeProps } from "../utils/index.js";
|
|
|
26
26
|
import "./radio.markers.stylex.js";
|
|
27
27
|
import { radioScope } from "./radio.markers.stylex.js";
|
|
28
28
|
import { Item } from "../Item/index.js";
|
|
29
|
-
import {
|
|
29
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
30
30
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
31
31
|
const styles = {
|
|
32
32
|
container: {
|
|
@@ -194,13 +194,13 @@ export function RadioListItem({
|
|
|
194
194
|
...stylex.props(styles.input, wrapperSizeStyles[size], isDisabled && styles.inputDisabled)
|
|
195
195
|
}), /*#__PURE__*/_jsx("div", {
|
|
196
196
|
"aria-hidden": "true",
|
|
197
|
-
...mergeProps(
|
|
197
|
+
...mergeProps(themeProps('radio', {
|
|
198
198
|
size,
|
|
199
199
|
checked: isChecked ? 'checked' : null,
|
|
200
200
|
disabled: isDisabled ? 'disabled' : null
|
|
201
201
|
}), stylex.props(styles.radio, radioSizeStyles[size], isChecked ? styles.radioChecked : styles.radioUnchecked, isDisabled && styles.radioDisabled, isDisabled && !isChecked && styles.radioDisabledUnchecked)),
|
|
202
202
|
children: isChecked && /*#__PURE__*/_jsx("div", {
|
|
203
|
-
...mergeProps(
|
|
203
|
+
...mergeProps(themeProps('radio-dot', {
|
|
204
204
|
size
|
|
205
205
|
}), stylex.props(styles.innerDot, dotSizeStyles[size]))
|
|
206
206
|
})
|
|
@@ -212,7 +212,7 @@ export function RadioListItem({
|
|
|
212
212
|
return /*#__PURE__*/_jsx("div", {
|
|
213
213
|
ref: ref,
|
|
214
214
|
"data-testid": dataTestId,
|
|
215
|
-
...mergeProps(
|
|
215
|
+
...mergeProps(themeProps('radio-list-item'), stylex.props(styles.container, !isDisabled && radioScope)),
|
|
216
216
|
children: /*#__PURE__*/_jsx(Item, {
|
|
217
217
|
startContent: mediaContent,
|
|
218
218
|
label: /*#__PURE__*/_jsx("label", {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* flips when the panel collapses to 0px so it stays accessible.
|
|
16
16
|
*
|
|
17
17
|
* Pill placement uses a single stylex dynamic style that accepts a direction
|
|
18
|
-
* multiplier (-1 or 1). The pill element has its own
|
|
18
|
+
* multiplier (-1 or 1). The pill element has its own themeProps
|
|
19
19
|
* ('resize-handle-pill') so themes can target size/shape directly.
|
|
20
20
|
*/
|
|
21
21
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
@@ -23,7 +23,7 @@ import * as stylex from '@stylexjs/stylex';
|
|
|
23
23
|
import "../theme/tokens.stylex.js";
|
|
24
24
|
import { colorVars, durationVars, easeVars, radiusVars, spacingVars } from "../theme/tokens.stylex.js";
|
|
25
25
|
import { mergeProps, mergeRefs } from "../utils/index.js";
|
|
26
|
-
import {
|
|
26
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
27
27
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
28
|
const KEYBOARD_STEP = 10;
|
|
29
29
|
const KEYBOARD_LARGE_STEP = 50;
|
|
@@ -403,7 +403,7 @@ export function ResizeHandle({
|
|
|
403
403
|
onFocus: () => setIsFocused(true),
|
|
404
404
|
onBlur: () => setIsFocused(false),
|
|
405
405
|
"data-resizing": isDragging || undefined,
|
|
406
|
-
...mergeProps(
|
|
406
|
+
...mergeProps(themeProps('resize-handle'), stylex.props(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),
|
|
407
407
|
...props,
|
|
408
408
|
children: [/*#__PURE__*/_jsx("div", {
|
|
409
409
|
...stylex.props(styles.hitArea, isHorizontal ? styles.hitAreaHorizontal : styles.hitAreaVertical, isHorizontal ? dynamicStyles.hitAreaBiasX(hitAreaBias(effectiveSide)) : dynamicStyles.hitAreaBiasY(hitAreaBias(effectiveSide)), isDisabled && styles.disabled),
|
|
@@ -416,7 +416,7 @@ export function ResizeHandle({
|
|
|
416
416
|
},
|
|
417
417
|
onKeyDown: handleKeyDown
|
|
418
418
|
}), children ?? /*#__PURE__*/_jsx("div", {
|
|
419
|
-
...mergeProps(
|
|
419
|
+
...mergeProps(themeProps('resize-handle-pill'), stylex.props(styles.pill, isHorizontal ? styles.pillHorizontal : styles.pillVertical, effectiveSide !== 'center' && (isHorizontal ? dynamicStyles.pillOffsetX(effectiveSide === 'start' ? -1 : 1) : dynamicStyles.pillOffsetY(effectiveSide === 'start' ? -1 : 1)), isAlwaysVisible ? styles.pillVisible : styles.pillHidden, isInteracting && !isDragging && styles.pillHover, isDragging && styles.pillActive))
|
|
420
420
|
})]
|
|
421
421
|
});
|
|
422
422
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResizable.d.ts","sourceRoot":"","sources":["../../src/Resizable/useResizable.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,qBAAqB;IACpC,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mDAAmD;IACnD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,MAAM,WAAW,wBAAyB,SAAQ,qBAAqB;IACrE,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD;AAED,MAAM,WAAW,uBAAuB;IAC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AAmC;IACnC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,wCAAwC;IACxC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,uEAAuE;IACvE,KAAK,EAAE,cAAc,CAAC;CACvB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IAEd,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,8CAA8C;IAE9C,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,IAAI,CAAC;CACzB;AAyQD,wBAAgB,YAAY,CAAC,MAAM,EAAE,wBAAwB,GAAG,eAAe,CAAC;AAChF,wBAAgB,YAAY,CAC1B,MAAM,EAAE,uBAAuB,GAC9B,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC"}
|
|
@@ -27,10 +27,6 @@ import { useCallback, useEffect, useRef, useState } from 'react';
|
|
|
27
27
|
const DEFAULT_MIN = 50;
|
|
28
28
|
const DEFAULT_COLLAPSED_SIZE = 40;
|
|
29
29
|
const STORAGE_PREFIX = 'astryx-resizable:';
|
|
30
|
-
// Legacy key prefix read during the compat window so persisted panel sizes
|
|
31
|
-
// survive the xds -> astryx rename. Read-only fallback; we always write the
|
|
32
|
-
// new prefix. Removed at final cutover.
|
|
33
|
-
const LEGACY_STORAGE_PREFIX = 'xds-resizable:';
|
|
34
30
|
|
|
35
31
|
// =============================================================================
|
|
36
32
|
// Helpers
|
|
@@ -60,7 +56,7 @@ function loadPersistedSize(key) {
|
|
|
60
56
|
return null;
|
|
61
57
|
}
|
|
62
58
|
try {
|
|
63
|
-
const raw = localStorage.getItem(STORAGE_PREFIX + key)
|
|
59
|
+
const raw = localStorage.getItem(STORAGE_PREFIX + key);
|
|
64
60
|
if (raw != null) {
|
|
65
61
|
const parsed = JSON.parse(raw);
|
|
66
62
|
if (typeof parsed === 'number') {
|
package/dist/Section/Section.js
CHANGED
|
@@ -20,7 +20,7 @@ import { colorVars } from "../theme/tokens.stylex.js";
|
|
|
20
20
|
import { container } from "../Layout/container.stylex.js";
|
|
21
21
|
import { paddingStyles, paddingBlockStyles, containerPaddingInlineVarStyles, containerPaddingBlockStartVarStyles, containerPaddingBlockEndVarStyles, sectionPaddingPropagationStyles, spacingStepToToken } from "../Layout/padding.stylex.js";
|
|
22
22
|
import { mergeProps } from "../utils/index.js";
|
|
23
|
-
import {
|
|
23
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Extensible variant map for Section.
|
|
@@ -166,7 +166,7 @@ export function Section({
|
|
|
166
166
|
} : style || outerStylex.style,
|
|
167
167
|
...props,
|
|
168
168
|
children: /*#__PURE__*/_jsx("div", {
|
|
169
|
-
...mergeProps(
|
|
169
|
+
...mergeProps(themeProps('section', {
|
|
170
170
|
variant
|
|
171
171
|
}), stylex.props(nestedStyles.inner, ...container(useThemeDefault ? {
|
|
172
172
|
useThemeDefault: 'section'
|
|
@@ -21,7 +21,7 @@ import { colorVars, spacingVars, radiusVars } from "../theme/tokens.stylex.js";
|
|
|
21
21
|
import { SegmentedControlContext } from "./SegmentedControlContext.js";
|
|
22
22
|
import { mergeProps, mergeRefs } from "../utils/index.js";
|
|
23
23
|
import { useSize } from "../SizeContext/SizeContext.js";
|
|
24
|
-
import {
|
|
24
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
25
25
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
26
|
// =============================================================================
|
|
27
27
|
// Styles
|
|
@@ -147,7 +147,7 @@ export function SegmentedControl({
|
|
|
147
147
|
"aria-label": label,
|
|
148
148
|
"aria-disabled": isDisabled || undefined,
|
|
149
149
|
onKeyDown: handleKeyDown,
|
|
150
|
-
...mergeProps(
|
|
150
|
+
...mergeProps(themeProps('segmented-control', {
|
|
151
151
|
size
|
|
152
152
|
}), stylex.props(styles.container, sizeStyles[size], layout === 'fill' && styles.fill, isDisabled && styles.disabled, xstyle), className, style),
|
|
153
153
|
children: children
|
|
@@ -20,7 +20,7 @@ import "../theme/tokens.stylex.js";
|
|
|
20
20
|
import { colorVars, spacingVars, sizeVars, durationVars, easeVars, fontWeightVars, shadowVars, typeScaleVars } from "../theme/tokens.stylex.js";
|
|
21
21
|
import { useSegmentedControlContext } from "./SegmentedControlContext.js";
|
|
22
22
|
import { mergeProps } from "../utils/index.js";
|
|
23
|
-
import {
|
|
23
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
24
24
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
25
|
// =============================================================================
|
|
26
26
|
// Styles
|
|
@@ -160,7 +160,7 @@ export function SegmentedControlItem({
|
|
|
160
160
|
"data-value": value,
|
|
161
161
|
tabIndex: isSelected ? 0 : -1,
|
|
162
162
|
onClick: handleClick,
|
|
163
|
-
...mergeProps(
|
|
163
|
+
...mergeProps(themeProps('segmented-control-item', {
|
|
164
164
|
size,
|
|
165
165
|
selected: isSelected ? 'selected' : null,
|
|
166
166
|
disabled: isItemDisabled ? 'disabled' : null
|
|
@@ -32,7 +32,7 @@ import { colorVars, durationVars, easeVars } from "../theme/tokens.stylex.js";
|
|
|
32
32
|
import { mergeProps, mergeRefs } from "../utils/index.js";
|
|
33
33
|
import { Card } from "../Card/Card.js";
|
|
34
34
|
import { useClickableContainer } from "../hooks/useClickableContainer.js";
|
|
35
|
-
import {
|
|
35
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
36
36
|
|
|
37
37
|
// =============================================================================
|
|
38
38
|
// Styles — selection + interaction; Card handles the rest
|
|
@@ -244,7 +244,7 @@ export function SelectableCard({
|
|
|
244
244
|
maxWidth: maxWidth,
|
|
245
245
|
padding: padding,
|
|
246
246
|
variant: variant,
|
|
247
|
-
...mergeProps(
|
|
247
|
+
...mergeProps(themeProps('selectable-card', {
|
|
248
248
|
variant,
|
|
249
249
|
selected: isSelected ? 'true' : 'false'
|
|
250
250
|
}), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Selector.d.ts","sourceRoot":"","sources":["../../src/Selector/Selector.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,EASZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAuB,KAAK,QAAQ,EAAC,MAAM,SAAS,CAAC;AAU5D,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AActD,OAAO,KAAK,EAAC,kBAAkB,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAYpE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Selector.d.ts","sourceRoot":"","sources":["../../src/Selector/Selector.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,EASZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAuB,KAAK,QAAQ,EAAC,MAAM,SAAS,CAAC;AAU5D,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AActD,OAAO,KAAK,EAAC,kBAAkB,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAYpE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AA6P9C,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI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";
|
|
|
28
28
|
import { SelectorOption } from "./SelectorOption.js";
|
|
29
29
|
import { mergeProps } from "../utils/index.js";
|
|
30
30
|
import { useSize } from "../SizeContext/SizeContext.js";
|
|
31
|
-
import {
|
|
31
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
32
32
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
33
33
|
const styles = {
|
|
34
34
|
triggerContainer: {
|
|
@@ -461,7 +461,7 @@ export function Selector(props) {
|
|
|
461
461
|
},
|
|
462
462
|
onClick: onTriggerClick,
|
|
463
463
|
"data-testid": testId,
|
|
464
|
-
...mergeProps(
|
|
464
|
+
...mergeProps(themeProps('selector', {
|
|
465
465
|
size,
|
|
466
466
|
status: status?.type ?? null
|
|
467
467
|
}), stylex.props(inputWrapperStyles.base, styles.triggerContainer, sizeStyles[size], isDisabled && inputWrapperStyles.disabled, !selectedItem && styles.triggerPlaceholder, status && inputStatusBorderStyles[status.type], status && inputStatusHoverShadowStyles[status.type], xstyle), className, style),
|
|
@@ -486,7 +486,7 @@ export function Selector(props) {
|
|
|
486
486
|
onKeyDown: onKeyDown,
|
|
487
487
|
tabIndex: -1,
|
|
488
488
|
...{
|
|
489
|
-
className: "x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1ypdohk x1a2a7pz
|
|
489
|
+
className: "x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1ypdohk x1a2a7pz"
|
|
490
490
|
},
|
|
491
491
|
children: /*#__PURE__*/_jsx("span", {
|
|
492
492
|
...{
|
|
@@ -12,7 +12,7 @@ import * as stylex from '@stylexjs/stylex';
|
|
|
12
12
|
import { renderIconSlot } from "../Icon/index.js";
|
|
13
13
|
import { Item } from "../Item/index.js";
|
|
14
14
|
import { mergeProps } from "../utils/index.js";
|
|
15
|
-
import {
|
|
15
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
const embeddedStyles = {
|
|
18
18
|
root: {
|
|
@@ -63,7 +63,7 @@ export function SelectorOption({
|
|
|
63
63
|
description: description,
|
|
64
64
|
endContent: endContent,
|
|
65
65
|
xstyle: [embeddedStyles.root, xstyle],
|
|
66
|
-
...mergeProps(
|
|
66
|
+
...mergeProps(themeProps('selector-option'), {
|
|
67
67
|
className,
|
|
68
68
|
style
|
|
69
69
|
})
|
package/dist/SideNav/SideNav.js
CHANGED
|
@@ -31,7 +31,7 @@ import { useSideNavRenderMode } from "./SideNavRenderContext.js";
|
|
|
31
31
|
import { MobileNav } from "../MobileNav/MobileNav.js";
|
|
32
32
|
import { useResizable } from "../Resizable/useResizable.js";
|
|
33
33
|
import { ResizeHandle } from "../Resizable/ResizeHandle.js";
|
|
34
|
-
import {
|
|
34
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
35
35
|
|
|
36
36
|
// =============================================================================
|
|
37
37
|
// Constants
|
|
@@ -195,7 +195,7 @@ export function SideNav({
|
|
|
195
195
|
if (renderMode === 'topbar') {
|
|
196
196
|
return /*#__PURE__*/_jsxs("div", {
|
|
197
197
|
"data-testid": testId,
|
|
198
|
-
...mergeProps(
|
|
198
|
+
...mergeProps(themeProps('side-nav', {
|
|
199
199
|
mode: 'topbar'
|
|
200
200
|
}), stylex.props(styles.topbar, xstyle), className, style),
|
|
201
201
|
children: [header, /*#__PURE__*/_jsx("div", {
|
|
@@ -265,7 +265,7 @@ export function SideNav({
|
|
|
265
265
|
role: "navigation",
|
|
266
266
|
"aria-label": "Side navigation",
|
|
267
267
|
"data-testid": testId,
|
|
268
|
-
...mergeProps(
|
|
268
|
+
...mergeProps(themeProps('side-nav'), stylex.props(styles.root, collapsed && styles.rootCollapsed, xstyle), className, resizableNavStyle),
|
|
269
269
|
...props,
|
|
270
270
|
children: [hasStickyTop && /*#__PURE__*/_jsxs("div", {
|
|
271
271
|
...{
|
|
@@ -35,7 +35,7 @@ import { useLinkComponent } from "../Link/useLinkComponent.js";
|
|
|
35
35
|
import { mergeProps, mergeRefs } from "../utils/index.js";
|
|
36
36
|
import { useMenuHover } from "../hooks/useMenuHover.js";
|
|
37
37
|
import { NavHeadingCloseContext } from "../NavMenu/NavMenuContext.js";
|
|
38
|
-
import {
|
|
38
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
39
39
|
|
|
40
40
|
// =============================================================================
|
|
41
41
|
// Styles
|
|
@@ -190,7 +190,7 @@ export function SideNavHeading({
|
|
|
190
190
|
href: headingHref,
|
|
191
191
|
"aria-label": heading,
|
|
192
192
|
"data-testid": testId,
|
|
193
|
-
...mergeProps(
|
|
193
|
+
...mergeProps(themeProps('side-nav-heading'), stylex.props(navItemStyles.item, styles.rootCollapsed, xstyle), className, style),
|
|
194
194
|
children: collapsedIcon
|
|
195
195
|
});
|
|
196
196
|
} else if (menu) {
|
|
@@ -202,7 +202,7 @@ export function SideNavHeading({
|
|
|
202
202
|
"data-testid": testId,
|
|
203
203
|
...popover.triggerProps,
|
|
204
204
|
...triggerProps,
|
|
205
|
-
...mergeProps(
|
|
205
|
+
...mergeProps(themeProps('side-nav-heading'), stylex.props(navItemStyles.item, styles.rootCollapsed, styles.menuTrigger, xstyle), className, style),
|
|
206
206
|
children: collapsedIcon
|
|
207
207
|
}), popover.render(/*#__PURE__*/_jsxs("div", {
|
|
208
208
|
ref: menuRef,
|
|
@@ -272,7 +272,7 @@ export function SideNavHeading({
|
|
|
272
272
|
collapsedElement = /*#__PURE__*/_jsx("div", {
|
|
273
273
|
ref: collapsedSetRef,
|
|
274
274
|
"data-testid": testId,
|
|
275
|
-
...mergeProps(
|
|
275
|
+
...mergeProps(themeProps('side-nav-heading'), stylex.props(styles.root, styles.rootCollapsed, xstyle), className, style),
|
|
276
276
|
...props,
|
|
277
277
|
children: collapsedIcon
|
|
278
278
|
});
|
|
@@ -376,7 +376,7 @@ export function SideNavHeading({
|
|
|
376
376
|
ref: ref,
|
|
377
377
|
href: headingHref,
|
|
378
378
|
"data-testid": testId,
|
|
379
|
-
...mergeProps(
|
|
379
|
+
...mergeProps(themeProps('side-nav-heading'), stylex.props(styles.root, styles.menuTrigger, xstyle), className, style),
|
|
380
380
|
...props,
|
|
381
381
|
children: [icon && /*#__PURE__*/_jsx("span", {
|
|
382
382
|
...{
|
|
@@ -394,7 +394,7 @@ export function SideNavHeading({
|
|
|
394
394
|
ref: setRef,
|
|
395
395
|
"data-testid": testId,
|
|
396
396
|
...triggerProps,
|
|
397
|
-
...mergeProps(
|
|
397
|
+
...mergeProps(themeProps('side-nav-heading'), stylex.props(styles.root, styles.menuTrigger, xstyle), className, style),
|
|
398
398
|
children: [icon && /*#__PURE__*/_jsx("span", {
|
|
399
399
|
...{
|
|
400
400
|
className: "x2lah0s x78zum5 x6s0dn4 xl56j7k"
|
|
@@ -438,7 +438,7 @@ export function SideNavHeading({
|
|
|
438
438
|
ref: setRef,
|
|
439
439
|
"data-testid": testId,
|
|
440
440
|
...triggerProps,
|
|
441
|
-
...mergeProps(
|
|
441
|
+
...mergeProps(themeProps('side-nav-heading'), stylex.props(styles.root, xstyle), className, style),
|
|
442
442
|
children: [icon && (headingHref ? /*#__PURE__*/_jsx(LinkComponent, {
|
|
443
443
|
href: headingHref,
|
|
444
444
|
...{
|
|
@@ -484,7 +484,7 @@ export function SideNavHeading({
|
|
|
484
484
|
return /*#__PURE__*/_jsxs("div", {
|
|
485
485
|
ref: ref,
|
|
486
486
|
"data-testid": testId,
|
|
487
|
-
...mergeProps(
|
|
487
|
+
...mergeProps(themeProps('side-nav-heading'), stylex.props(styles.root, xstyle), className, style),
|
|
488
488
|
...props,
|
|
489
489
|
children: [icon && (headingHref ? /*#__PURE__*/_jsx(LinkComponent, {
|
|
490
490
|
href: headingHref,
|
|
@@ -545,7 +545,7 @@ export function SideNavHeading({
|
|
|
545
545
|
return /*#__PURE__*/_jsxs("div", {
|
|
546
546
|
ref: ref,
|
|
547
547
|
"data-testid": testId,
|
|
548
|
-
...mergeProps(
|
|
548
|
+
...mergeProps(themeProps('side-nav-heading'), stylex.props(styles.root, xstyle), className, style),
|
|
549
549
|
...props,
|
|
550
550
|
children: [icon && /*#__PURE__*/_jsx("span", {
|
|
551
551
|
...{
|
|
@@ -31,7 +31,7 @@ import { useSideNavCollapse, SideNavCollapseContext } from "./SideNavCollapseCon
|
|
|
31
31
|
import { getIcon } from "../Icon/globalIconRegistry.js";
|
|
32
32
|
import { useSideNavRenderMode } from "./SideNavRenderContext.js";
|
|
33
33
|
import { useAppShellMobile } from "../AppShell/AppShellMobileContext.js";
|
|
34
|
-
import {
|
|
34
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
35
35
|
|
|
36
36
|
// =============================================================================
|
|
37
37
|
// Styles
|
|
@@ -254,7 +254,7 @@ export function SideNavItem({
|
|
|
254
254
|
});
|
|
255
255
|
|
|
256
256
|
// Shared collapsed item styles — used by trigger, link, and button
|
|
257
|
-
const collapsedItemStyles = mergeProps(
|
|
257
|
+
const collapsedItemStyles = mergeProps(themeProps('side-nav-item', {
|
|
258
258
|
size,
|
|
259
259
|
selected: isSelected ? 'selected' : null
|
|
260
260
|
}), stylex.props(navItemStyles.item, navItemStyles[size], styles.itemCollapsed, size === 'sm' && styles.itemCollapsedSm, size === 'lg' && styles.itemCollapsedLg, isSelected && navItemStyles.selected, isDisabled && navItemStyles.disabled));
|
|
@@ -354,7 +354,7 @@ export function SideNavItem({
|
|
|
354
354
|
children: getIcon('chevronDown')
|
|
355
355
|
})]
|
|
356
356
|
});
|
|
357
|
-
const navItemStyleProps = mergeProps(
|
|
357
|
+
const navItemStyleProps = mergeProps(themeProps('side-nav-item', {
|
|
358
358
|
size,
|
|
359
359
|
selected: isSelected ? 'selected' : null
|
|
360
360
|
}), stylex.props(navItemStyles.item, navItemStyles[size], isSelected && navItemStyles.selected, isDisabled && navItemStyles.disabled));
|
|
@@ -23,7 +23,7 @@ import "../theme/tokens.stylex.js";
|
|
|
23
23
|
import { colorVars, spacingVars, fontWeightVars, typeScaleVars } from "../theme/tokens.stylex.js";
|
|
24
24
|
import { mergeProps } from "../utils/index.js";
|
|
25
25
|
import { useSideNavCollapse } from "./SideNavCollapseContext.js";
|
|
26
|
-
import {
|
|
26
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
27
27
|
// =============================================================================
|
|
28
28
|
// Styles
|
|
29
29
|
// =============================================================================
|
|
@@ -117,7 +117,7 @@ export function SideNavSection({
|
|
|
117
117
|
role: "group",
|
|
118
118
|
"aria-labelledby": titleId,
|
|
119
119
|
"data-testid": testId,
|
|
120
|
-
...mergeProps(
|
|
120
|
+
...mergeProps(themeProps('side-nav-section'), stylex.props(styles.root, xstyle), className, style),
|
|
121
121
|
children: [/*#__PURE__*/_jsx("div", {
|
|
122
122
|
...mergeProps({
|
|
123
123
|
className: "x78zum5 x6s0dn4 x1txdalj xf314gf xu0wf1k xt0e3qv x87ps6o"
|
|
@@ -18,7 +18,7 @@ import * as stylex from '@stylexjs/stylex';
|
|
|
18
18
|
import "../theme/tokens.stylex.js";
|
|
19
19
|
import { colorVars, radiusVars, durationVars } from "../theme/tokens.stylex.js";
|
|
20
20
|
import { mergeProps } from "../utils/index.js";
|
|
21
|
-
import {
|
|
21
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
22
22
|
|
|
23
23
|
// =============================================================================
|
|
24
24
|
// Animation Timing Constants
|
|
@@ -146,7 +146,7 @@ export function Skeleton({
|
|
|
146
146
|
return /*#__PURE__*/_jsx("div", {
|
|
147
147
|
ref: ref,
|
|
148
148
|
"data-testid": testId,
|
|
149
|
-
...mergeProps(
|
|
149
|
+
...mergeProps(themeProps('skeleton'), stylex.props(styles.root, styles.animate, radiusStyles[radiusProp], dynamicStyles.dimensions(width, height), dynamicStyles.animationDelay(index), xstyle), className, style),
|
|
150
150
|
...props
|
|
151
151
|
});
|
|
152
152
|
}
|
package/dist/Slider/Slider.js
CHANGED
|
@@ -22,7 +22,7 @@ import { colorVars, spacingVars, radiusVars, durationVars, easeVars, typographyV
|
|
|
22
22
|
import { Field } from "../Field/Field.js";
|
|
23
23
|
import { Tooltip } from "../Tooltip/Tooltip.js";
|
|
24
24
|
import { mergeProps, mergeRefs } from "../utils/index.js";
|
|
25
|
-
import {
|
|
25
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
26
26
|
|
|
27
27
|
// =============================================================================
|
|
28
28
|
// Types
|
|
@@ -322,7 +322,7 @@ export function Slider({
|
|
|
322
322
|
"aria-label": thumbLabel,
|
|
323
323
|
"aria-describedby": ariaDescribedBy,
|
|
324
324
|
onKeyDown: e => handleKeyDown(thumbIndex, e),
|
|
325
|
-
...mergeProps(
|
|
325
|
+
...mergeProps(themeProps('slider-thumb', {
|
|
326
326
|
orientation,
|
|
327
327
|
disabled: isDisabled ? 'disabled' : null
|
|
328
328
|
}), {
|
|
@@ -448,7 +448,7 @@ export function Slider({
|
|
|
448
448
|
className: className,
|
|
449
449
|
style: style,
|
|
450
450
|
children: /*#__PURE__*/_jsxs("div", {
|
|
451
|
-
...mergeProps(
|
|
451
|
+
...mergeProps(themeProps('slider', {
|
|
452
452
|
orientation,
|
|
453
453
|
disabled: isDisabled ? 'disabled' : null
|
|
454
454
|
}), {
|
|
@@ -480,7 +480,7 @@ export function Slider({
|
|
|
480
480
|
}[!!isHorizontal << 1 | !!isDisabled << 0],
|
|
481
481
|
children: [/*#__PURE__*/_jsx("div", {
|
|
482
482
|
"aria-hidden": "true",
|
|
483
|
-
...mergeProps(
|
|
483
|
+
...mergeProps(themeProps('slider-track', {
|
|
484
484
|
orientation
|
|
485
485
|
}), {
|
|
486
486
|
0: {
|
package/dist/Spinner/Spinner.js
CHANGED
|
@@ -22,7 +22,7 @@ import { durationVars, spacingVars } from "../theme/tokens.stylex.js";
|
|
|
22
22
|
import { useTheme } from "../theme/useTheme.js";
|
|
23
23
|
import { Text } from "../Text/Text.js";
|
|
24
24
|
import { mergeProps } from "../utils/index.js";
|
|
25
|
-
import {
|
|
25
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
26
26
|
|
|
27
27
|
// =============================================================================
|
|
28
28
|
// Constants
|
|
@@ -192,7 +192,7 @@ export function Spinner({
|
|
|
192
192
|
"aria-label": resolvedAriaLabel,
|
|
193
193
|
"data-testid": hasLabel ? undefined : testId,
|
|
194
194
|
...(hasLabel ? {} : restProps),
|
|
195
|
-
...mergeProps(hasLabel ? '' :
|
|
195
|
+
...mergeProps(hasLabel ? '' : themeProps('spinner', {
|
|
196
196
|
size,
|
|
197
197
|
shade
|
|
198
198
|
}), stylex.props(styles.spinner, !hasLabel && xstyle), hasLabel ? undefined : className, {
|
|
@@ -214,7 +214,7 @@ export function Spinner({
|
|
|
214
214
|
ref: ref,
|
|
215
215
|
"data-testid": testId,
|
|
216
216
|
...restProps,
|
|
217
|
-
...mergeProps(
|
|
217
|
+
...mergeProps(themeProps('spinner', {
|
|
218
218
|
size,
|
|
219
219
|
shade
|
|
220
220
|
}), stylex.props(styles.wrapper, xstyle), className, style),
|
package/dist/Stack/Stack.js
CHANGED
|
@@ -16,7 +16,7 @@ import { createElement } from 'react';
|
|
|
16
16
|
import * as stylex from '@stylexjs/stylex';
|
|
17
17
|
import { stack } from "./stack.stylex.js";
|
|
18
18
|
import { mergeProps } from "../utils/index.js";
|
|
19
|
-
import {
|
|
19
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Alignment values accepted by Stack.
|
|
@@ -97,7 +97,7 @@ export function Stack({
|
|
|
97
97
|
};
|
|
98
98
|
return /*#__PURE__*/createElement(element, {
|
|
99
99
|
ref: ref,
|
|
100
|
-
...mergeProps(
|
|
100
|
+
...mergeProps(themeProps('stack', {
|
|
101
101
|
direction,
|
|
102
102
|
gap,
|
|
103
103
|
wrap
|
package/dist/Stack/StackItem.js
CHANGED
|
@@ -15,7 +15,7 @@ import { createElement } from 'react';
|
|
|
15
15
|
import * as stylex from '@stylexjs/stylex';
|
|
16
16
|
import { stackItem } from "./stackItem.stylex.js";
|
|
17
17
|
import { mergeProps } from "../utils/index.js";
|
|
18
|
-
import {
|
|
18
|
+
import { themeProps } from "../utils/themeProps.js";
|
|
19
19
|
/**
|
|
20
20
|
* Stack item component for controlling individual item behavior within a stack.
|
|
21
21
|
*
|
|
@@ -47,7 +47,7 @@ export function StackItem({
|
|
|
47
47
|
}), xstyle);
|
|
48
48
|
return /*#__PURE__*/createElement(element, {
|
|
49
49
|
ref: ref,
|
|
50
|
-
...mergeProps(
|
|
50
|
+
...mergeProps(themeProps('stack-item', {
|
|
51
51
|
size
|
|
52
52
|
}), stylexProps, className, style),
|
|
53
53
|
...props
|