@oxy.so/bloom 4.4.0 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/docs/adoption-matrix.mdx +12 -12
- package/docs/code.mdx +12 -0
- package/docs/context-menu.mdx +2 -0
- package/docs/dropdown-menu.mdx +21 -0
- package/docs/icons.mdx +2 -2
- package/docs/layout.mdx +36 -0
- package/docs/menubar.mdx +6 -2
- package/docs/page-header.mdx +16 -0
- package/docs/popover.mdx +4 -2
- package/docs/segmented-control.mdx +12 -0
- package/docs/select.mdx +19 -0
- package/docs/sidebar.mdx +6 -0
- package/docs/tabs.mdx +12 -0
- package/lib/commonjs/agent-chat/index.web.js.map +1 -1
- package/lib/commonjs/ai-chat/index.web.js.map +1 -1
- package/lib/commonjs/alert-dialog/index.web.js +10 -1
- package/lib/commonjs/alert-dialog/index.web.js.map +1 -1
- package/lib/commonjs/avatar-group/index.web.js.map +1 -1
- package/lib/commonjs/bottom-sheet/index.web.js.map +1 -1
- package/lib/commonjs/code/index.js +13 -0
- package/lib/commonjs/code/index.js.map +1 -1
- package/lib/commonjs/command/index.web.js +5 -0
- package/lib/commonjs/command/index.web.js.map +1 -1
- package/lib/commonjs/composer-loader/ComposerLoader.web.js +9 -0
- package/lib/commonjs/composer-loader/ComposerLoader.web.js.map +1 -1
- package/lib/commonjs/composer-loader/index.web.js.map +1 -1
- package/lib/commonjs/composer-panel/index.web.js.map +1 -1
- package/lib/commonjs/connection-dots/index.web.js.map +1 -1
- package/lib/commonjs/connection-status/index.web.js.map +1 -1
- package/lib/commonjs/content-panel/index.web.js.map +1 -1
- package/lib/commonjs/context-menu/ContextMenu.web.js +22 -4
- package/lib/commonjs/context-menu/ContextMenu.web.js.map +1 -1
- package/lib/commonjs/context-menu/context.js.map +1 -1
- package/lib/commonjs/context-menu/index.web.js.map +1 -1
- package/lib/commonjs/dialog/Dialog.web.js +14 -0
- package/lib/commonjs/dialog/Dialog.web.js.map +1 -1
- package/lib/commonjs/dialog/index.web.js.map +1 -1
- package/lib/commonjs/dropdown-menu/DropdownMenu.web.js +22 -2
- package/lib/commonjs/dropdown-menu/DropdownMenu.web.js.map +1 -1
- package/lib/commonjs/dropdown-menu/index.web.js.map +1 -1
- package/lib/commonjs/floating/FloatingPanel.js +42 -33
- package/lib/commonjs/floating/FloatingPanel.js.map +1 -1
- package/lib/commonjs/floating/escape-stack.js +90 -0
- package/lib/commonjs/floating/escape-stack.js.map +1 -0
- package/lib/commonjs/floating/menu-keyboard.js +238 -0
- package/lib/commonjs/floating/menu-keyboard.js.map +1 -0
- package/lib/commonjs/floating/menu-sub-flyout.js +28 -16
- package/lib/commonjs/floating/menu-sub-flyout.js.map +1 -1
- package/lib/commonjs/fonts/index.web.js.map +1 -1
- package/lib/commonjs/frosted-icon-button/FrostedIconButton.web.js +10 -0
- package/lib/commonjs/frosted-icon-button/FrostedIconButton.web.js.map +1 -1
- package/lib/commonjs/frosted-icon-button/index.web.js.map +1 -1
- package/lib/commonjs/hooks/roving-focus.js +192 -0
- package/lib/commonjs/hooks/roving-focus.js.map +1 -0
- package/lib/commonjs/hover-card/index.web.js.map +1 -1
- package/lib/commonjs/icons/remix/RiBookReadLine.js +12 -0
- package/lib/commonjs/icons/remix/RiBookReadLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiBugLine.js +12 -0
- package/lib/commonjs/icons/remix/RiBugLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiChat1Line.js +12 -0
- package/lib/commonjs/icons/remix/RiChat1Line.js.map +1 -0
- package/lib/commonjs/icons/remix/RiCloudLine.js +12 -0
- package/lib/commonjs/icons/remix/RiCloudLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiCodeLine.js +12 -0
- package/lib/commonjs/icons/remix/RiCodeLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiCpuLine.js +12 -0
- package/lib/commonjs/icons/remix/RiCpuLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiFloodLine.js +12 -0
- package/lib/commonjs/icons/remix/RiFloodLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiLockUnlockLine.js +12 -0
- package/lib/commonjs/icons/remix/RiLockUnlockLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiMoneyDollarCircleLine.js +12 -0
- package/lib/commonjs/icons/remix/RiMoneyDollarCircleLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiPlayCircleLine.js +12 -0
- package/lib/commonjs/icons/remix/RiPlayCircleLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiRocket2Line.js +12 -0
- package/lib/commonjs/icons/remix/RiRocket2Line.js.map +1 -0
- package/lib/commonjs/icons/remix/RiServerLine.js +12 -0
- package/lib/commonjs/icons/remix/RiServerLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiShareBoxLine.js +12 -0
- package/lib/commonjs/icons/remix/RiShareBoxLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiTv2Line.js +12 -0
- package/lib/commonjs/icons/remix/RiTv2Line.js.map +1 -0
- package/lib/commonjs/icons/remix/index.js +98 -0
- package/lib/commonjs/icons/remix/index.js.map +1 -1
- package/lib/commonjs/index.js +21 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +21 -0
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/layout/StickySection.js +106 -0
- package/lib/commonjs/layout/StickySection.js.map +1 -0
- package/lib/commonjs/layout/header-dock.js +61 -0
- package/lib/commonjs/layout/header-dock.js.map +1 -0
- package/lib/commonjs/layout/index.js +20 -0
- package/lib/commonjs/layout/index.js.map +1 -1
- package/lib/commonjs/list/index.web.js.map +1 -1
- package/lib/commonjs/loading/Loading.js +21 -157
- package/lib/commonjs/loading/Loading.js.map +1 -1
- package/lib/commonjs/loading/Loading.web.js +23 -157
- package/lib/commonjs/loading/Loading.web.js.map +1 -1
- package/lib/commonjs/loading/LoadingBase.js +202 -0
- package/lib/commonjs/loading/LoadingBase.js.map +1 -0
- package/lib/commonjs/loading/index.web.js.map +1 -1
- package/lib/commonjs/media-flight/index.web.js.map +1 -1
- package/lib/commonjs/menubar/Menubar.js +31 -123
- package/lib/commonjs/menubar/Menubar.js.map +1 -1
- package/lib/commonjs/menubar/Menubar.web.js +33 -114
- package/lib/commonjs/menubar/Menubar.web.js.map +1 -1
- package/lib/commonjs/menubar/MenubarBase.js +154 -0
- package/lib/commonjs/menubar/MenubarBase.js.map +1 -0
- package/lib/commonjs/menubar/index.web.js.map +1 -1
- package/lib/commonjs/page-header/PageHeader.js +38 -14
- package/lib/commonjs/page-header/PageHeader.js.map +1 -1
- package/lib/commonjs/popover/index.web.js.map +1 -1
- package/lib/commonjs/popover/parts.js +69 -11
- package/lib/commonjs/popover/parts.js.map +1 -1
- package/lib/commonjs/popover/surface.js +39 -13
- package/lib/commonjs/popover/surface.js.map +1 -1
- package/lib/commonjs/portal/index.web.js.map +1 -1
- package/lib/commonjs/progressive-blur/index.web.js.map +1 -1
- package/lib/commonjs/scroll/index.web.js.map +1 -1
- package/lib/commonjs/segmented-control/SegmentedControl.js +36 -1
- package/lib/commonjs/segmented-control/SegmentedControl.js.map +1 -1
- package/lib/commonjs/select/Select.js +6 -81
- package/lib/commonjs/select/Select.js.map +1 -1
- package/lib/commonjs/select/Select.web.js +147 -85
- package/lib/commonjs/select/Select.web.js.map +1 -1
- package/lib/commonjs/select/index.js +4 -4
- package/lib/commonjs/select/index.js.map +1 -1
- package/lib/commonjs/select/index.web.js +4 -4
- package/lib/commonjs/select/index.web.js.map +1 -1
- package/lib/commonjs/select/shared.js +110 -5
- package/lib/commonjs/select/shared.js.map +1 -1
- package/lib/commonjs/sidebar/Sidebar.js +121 -108
- package/lib/commonjs/sidebar/Sidebar.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarRail.js +70 -48
- package/lib/commonjs/sidebar/SidebarRail.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarTeamMenu.js +1 -1
- package/lib/commonjs/sidebar/SidebarTeamMenu.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarUserMenu.js +1 -1
- package/lib/commonjs/sidebar/SidebarUserMenu.js.map +1 -1
- package/lib/commonjs/sidebar/parts.js +9 -9
- package/lib/commonjs/sidebar/parts.js.map +1 -1
- package/lib/commonjs/styles/web-view-style.js +6 -0
- package/lib/commonjs/styles/web-view-style.js.map +1 -1
- package/lib/commonjs/surfaces/SurfaceHost.js +6 -0
- package/lib/commonjs/surfaces/SurfaceHost.js.map +1 -1
- package/lib/commonjs/surfaces/index.web.js +14 -4
- package/lib/commonjs/surfaces/index.web.js.map +1 -1
- package/lib/commonjs/tab-bar/index.web.js +13 -10
- package/lib/commonjs/tab-bar/index.web.js.map +1 -1
- package/lib/commonjs/tabs/Tabs.js +49 -2
- package/lib/commonjs/tabs/Tabs.js.map +1 -1
- package/lib/commonjs/theme/color-scope/index.web.js.map +1 -1
- package/lib/commonjs/theme/seed-scope/index.web.js.map +1 -1
- package/lib/commonjs/tooltip/index.web.js.map +1 -1
- package/lib/module/agent-chat/index.web.js +5 -3
- package/lib/module/agent-chat/index.web.js.map +1 -1
- package/lib/module/ai-chat/index.web.js +5 -2
- package/lib/module/ai-chat/index.web.js.map +1 -1
- package/lib/module/alert-dialog/index.web.js +10 -1
- package/lib/module/alert-dialog/index.web.js.map +1 -1
- package/lib/module/avatar-group/index.web.js +5 -0
- package/lib/module/avatar-group/index.web.js.map +1 -1
- package/lib/module/bottom-sheet/index.web.js +5 -0
- package/lib/module/bottom-sheet/index.web.js.map +1 -1
- package/lib/module/code/index.js +1 -0
- package/lib/module/code/index.js.map +1 -1
- package/lib/module/command/index.web.js +5 -0
- package/lib/module/command/index.web.js.map +1 -1
- package/lib/module/composer-loader/ComposerLoader.web.js +8 -0
- package/lib/module/composer-loader/ComposerLoader.web.js.map +1 -1
- package/lib/module/composer-loader/index.web.js +5 -2
- package/lib/module/composer-loader/index.web.js.map +1 -1
- package/lib/module/composer-panel/index.web.js +5 -3
- package/lib/module/composer-panel/index.web.js.map +1 -1
- package/lib/module/connection-dots/index.web.js +5 -0
- package/lib/module/connection-dots/index.web.js.map +1 -1
- package/lib/module/connection-status/index.web.js +5 -0
- package/lib/module/connection-status/index.web.js.map +1 -1
- package/lib/module/content-panel/index.web.js +5 -0
- package/lib/module/content-panel/index.web.js.map +1 -1
- package/lib/module/context-menu/ContextMenu.web.js +22 -4
- package/lib/module/context-menu/ContextMenu.web.js.map +1 -1
- package/lib/module/context-menu/context.js.map +1 -1
- package/lib/module/context-menu/index.web.js +5 -0
- package/lib/module/context-menu/index.web.js.map +1 -1
- package/lib/module/dialog/Dialog.web.js +13 -0
- package/lib/module/dialog/Dialog.web.js.map +1 -1
- package/lib/module/dialog/index.web.js +7 -11
- package/lib/module/dialog/index.web.js.map +1 -1
- package/lib/module/dropdown-menu/DropdownMenu.web.js +23 -3
- package/lib/module/dropdown-menu/DropdownMenu.web.js.map +1 -1
- package/lib/module/dropdown-menu/index.web.js +5 -0
- package/lib/module/dropdown-menu/index.web.js.map +1 -1
- package/lib/module/floating/FloatingPanel.js +42 -33
- package/lib/module/floating/FloatingPanel.js.map +1 -1
- package/lib/module/floating/escape-stack.js +85 -0
- package/lib/module/floating/escape-stack.js.map +1 -0
- package/lib/module/floating/menu-keyboard.js +227 -0
- package/lib/module/floating/menu-keyboard.js.map +1 -0
- package/lib/module/floating/menu-sub-flyout.js +28 -16
- package/lib/module/floating/menu-sub-flyout.js.map +1 -1
- package/lib/module/fonts/index.web.js +5 -20
- package/lib/module/fonts/index.web.js.map +1 -1
- package/lib/module/frosted-icon-button/FrostedIconButton.web.js +9 -0
- package/lib/module/frosted-icon-button/FrostedIconButton.web.js.map +1 -1
- package/lib/module/frosted-icon-button/index.web.js +5 -7
- package/lib/module/frosted-icon-button/index.web.js.map +1 -1
- package/lib/module/hooks/roving-focus.js +181 -0
- package/lib/module/hooks/roving-focus.js.map +1 -0
- package/lib/module/hover-card/index.web.js +5 -0
- package/lib/module/hover-card/index.web.js.map +1 -1
- package/lib/module/icons/remix/RiBookReadLine.js +9 -0
- package/lib/module/icons/remix/RiBookReadLine.js.map +1 -0
- package/lib/module/icons/remix/RiBugLine.js +9 -0
- package/lib/module/icons/remix/RiBugLine.js.map +1 -0
- package/lib/module/icons/remix/RiChat1Line.js +9 -0
- package/lib/module/icons/remix/RiChat1Line.js.map +1 -0
- package/lib/module/icons/remix/RiCloudLine.js +9 -0
- package/lib/module/icons/remix/RiCloudLine.js.map +1 -0
- package/lib/module/icons/remix/RiCodeLine.js +9 -0
- package/lib/module/icons/remix/RiCodeLine.js.map +1 -0
- package/lib/module/icons/remix/RiCpuLine.js +9 -0
- package/lib/module/icons/remix/RiCpuLine.js.map +1 -0
- package/lib/module/icons/remix/RiFloodLine.js +9 -0
- package/lib/module/icons/remix/RiFloodLine.js.map +1 -0
- package/lib/module/icons/remix/RiLockUnlockLine.js +9 -0
- package/lib/module/icons/remix/RiLockUnlockLine.js.map +1 -0
- package/lib/module/icons/remix/RiMoneyDollarCircleLine.js +9 -0
- package/lib/module/icons/remix/RiMoneyDollarCircleLine.js.map +1 -0
- package/lib/module/icons/remix/RiPlayCircleLine.js +9 -0
- package/lib/module/icons/remix/RiPlayCircleLine.js.map +1 -0
- package/lib/module/icons/remix/RiRocket2Line.js +9 -0
- package/lib/module/icons/remix/RiRocket2Line.js.map +1 -0
- package/lib/module/icons/remix/RiServerLine.js +9 -0
- package/lib/module/icons/remix/RiServerLine.js.map +1 -0
- package/lib/module/icons/remix/RiShareBoxLine.js +9 -0
- package/lib/module/icons/remix/RiShareBoxLine.js.map +1 -0
- package/lib/module/icons/remix/RiTv2Line.js +9 -0
- package/lib/module/icons/remix/RiTv2Line.js.map +1 -0
- package/lib/module/icons/remix/index.js +14 -0
- package/lib/module/icons/remix/index.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +1 -1
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/layout/StickySection.js +101 -0
- package/lib/module/layout/StickySection.js.map +1 -0
- package/lib/module/layout/header-dock.js +54 -0
- package/lib/module/layout/header-dock.js.map +1 -0
- package/lib/module/layout/index.js +2 -0
- package/lib/module/layout/index.js.map +1 -1
- package/lib/module/list/index.web.js +5 -0
- package/lib/module/list/index.web.js.map +1 -1
- package/lib/module/loading/Loading.js +17 -155
- package/lib/module/loading/Loading.js.map +1 -1
- package/lib/module/loading/Loading.web.js +19 -155
- package/lib/module/loading/Loading.web.js.map +1 -1
- package/lib/module/loading/LoadingBase.js +194 -0
- package/lib/module/loading/LoadingBase.js.map +1 -0
- package/lib/module/loading/index.web.js +5 -13
- package/lib/module/loading/index.web.js.map +1 -1
- package/lib/module/media-flight/index.web.js +5 -9
- package/lib/module/media-flight/index.web.js.map +1 -1
- package/lib/module/menubar/Menubar.js +15 -122
- package/lib/module/menubar/Menubar.js.map +1 -1
- package/lib/module/menubar/Menubar.web.js +18 -114
- package/lib/module/menubar/Menubar.web.js.map +1 -1
- package/lib/module/menubar/MenubarBase.js +146 -0
- package/lib/module/menubar/MenubarBase.js.map +1 -0
- package/lib/module/menubar/index.web.js +5 -0
- package/lib/module/menubar/index.web.js.map +1 -1
- package/lib/module/motion/index.web.js +5 -5
- package/lib/module/motion/index.web.js.map +1 -1
- package/lib/module/page-header/PageHeader.js +38 -14
- package/lib/module/page-header/PageHeader.js.map +1 -1
- package/lib/module/popover/index.web.js +5 -0
- package/lib/module/popover/index.web.js.map +1 -1
- package/lib/module/popover/parts.js +70 -12
- package/lib/module/popover/parts.js.map +1 -1
- package/lib/module/popover/surface.js +39 -13
- package/lib/module/popover/surface.js.map +1 -1
- package/lib/module/portal/index.web.js +6 -1
- package/lib/module/portal/index.web.js.map +1 -1
- package/lib/module/progressive-blur/index.web.js +5 -0
- package/lib/module/progressive-blur/index.web.js.map +1 -1
- package/lib/module/scroll/index.web.js +5 -0
- package/lib/module/scroll/index.web.js.map +1 -1
- package/lib/module/segmented-control/SegmentedControl.js +36 -1
- package/lib/module/segmented-control/SegmentedControl.js.map +1 -1
- package/lib/module/select/Select.js +5 -77
- package/lib/module/select/Select.js.map +1 -1
- package/lib/module/select/Select.web.js +147 -82
- package/lib/module/select/Select.web.js.map +1 -1
- package/lib/module/select/index.js +2 -2
- package/lib/module/select/index.js.map +1 -1
- package/lib/module/select/index.web.js +7 -2
- package/lib/module/select/index.web.js.map +1 -1
- package/lib/module/select/shared.js +106 -6
- package/lib/module/select/shared.js.map +1 -1
- package/lib/module/sidebar/Sidebar.js +121 -108
- package/lib/module/sidebar/Sidebar.js.map +1 -1
- package/lib/module/sidebar/SidebarRail.js +70 -48
- package/lib/module/sidebar/SidebarRail.js.map +1 -1
- package/lib/module/sidebar/SidebarTeamMenu.js +2 -2
- package/lib/module/sidebar/SidebarTeamMenu.js.map +1 -1
- package/lib/module/sidebar/SidebarUserMenu.js +2 -2
- package/lib/module/sidebar/SidebarUserMenu.js.map +1 -1
- package/lib/module/sidebar/parts.js +8 -8
- package/lib/module/sidebar/parts.js.map +1 -1
- package/lib/module/styles/web-view-style.js +5 -0
- package/lib/module/styles/web-view-style.js.map +1 -1
- package/lib/module/surfaces/SurfaceHost.js +6 -0
- package/lib/module/surfaces/SurfaceHost.js.map +1 -1
- package/lib/module/surfaces/index.web.js +14 -4
- package/lib/module/surfaces/index.web.js.map +1 -1
- package/lib/module/tab-bar/index.web.js +13 -10
- package/lib/module/tab-bar/index.web.js.map +1 -1
- package/lib/module/tabs/Tabs.js +49 -2
- package/lib/module/tabs/Tabs.js.map +1 -1
- package/lib/module/theme/color-scope/index.web.js +5 -0
- package/lib/module/theme/color-scope/index.web.js.map +1 -1
- package/lib/module/theme/seed-scope/index.web.js +5 -0
- package/lib/module/theme/seed-scope/index.web.js.map +1 -1
- package/lib/module/tooltip/index.web.js +5 -0
- package/lib/module/tooltip/index.web.js.map +1 -1
- package/lib/typescript/commonjs/agent-chat/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/ai-chat/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/alert-dialog/index.web.d.ts +5 -1
- package/lib/typescript/commonjs/alert-dialog/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar-group/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/bottom-sheet/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/code/index.d.ts +2 -0
- package/lib/typescript/commonjs/code/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/command/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/composer-loader/ComposerLoader.web.d.ts +8 -0
- package/lib/typescript/commonjs/composer-loader/ComposerLoader.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/composer-loader/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/composer-panel/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/connection-dots/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/connection-status/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/content-panel/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/context-menu/ContextMenu.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/context-menu/context.d.ts +3 -0
- package/lib/typescript/commonjs/context-menu/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/context-menu/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/Dialog.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/index.web.d.ts +2 -1
- package/lib/typescript/commonjs/dialog/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/dropdown-menu/DropdownMenu.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/dropdown-menu/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/FloatingPanel.d.ts +1 -1
- package/lib/typescript/commonjs/floating/FloatingPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/escape-stack.d.ts +55 -0
- package/lib/typescript/commonjs/floating/escape-stack.d.ts.map +1 -0
- package/lib/typescript/commonjs/floating/menu-keyboard.d.ts +57 -0
- package/lib/typescript/commonjs/floating/menu-keyboard.d.ts.map +1 -0
- package/lib/typescript/commonjs/floating/menu-sub-flyout.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/types.d.ts +11 -0
- package/lib/typescript/commonjs/floating/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/fonts/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/frosted-icon-button/FrostedIconButton.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/frosted-icon-button/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/roving-focus.d.ts +66 -0
- package/lib/typescript/commonjs/hooks/roving-focus.d.ts.map +1 -0
- package/lib/typescript/commonjs/hover-card/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/remix/RiBookReadLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiBookReadLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiBugLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiBugLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiChat1Line.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiChat1Line.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiCloudLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiCloudLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiCodeLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiCodeLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiCpuLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiCpuLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiFloodLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiFloodLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiLockUnlockLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiLockUnlockLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiMoneyDollarCircleLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiMoneyDollarCircleLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiPlayCircleLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiPlayCircleLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiRocket2Line.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiRocket2Line.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiServerLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiServerLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiShareBoxLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiShareBoxLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiTv2Line.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiTv2Line.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/index.d.ts +14 -0
- package/lib/typescript/commonjs/icons/remix/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +2 -1
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/StickySection.d.ts +8 -0
- package/lib/typescript/commonjs/layout/StickySection.d.ts.map +1 -0
- package/lib/typescript/commonjs/layout/header-dock.d.ts +21 -0
- package/lib/typescript/commonjs/layout/header-dock.d.ts.map +1 -0
- package/lib/typescript/commonjs/layout/index.d.ts +3 -0
- package/lib/typescript/commonjs/layout/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/loading/Loading.d.ts +8 -2
- package/lib/typescript/commonjs/loading/Loading.d.ts.map +1 -1
- package/lib/typescript/commonjs/loading/Loading.web.d.ts +10 -2
- package/lib/typescript/commonjs/loading/Loading.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/loading/LoadingBase.d.ts +64 -0
- package/lib/typescript/commonjs/loading/LoadingBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/loading/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/media-flight/index.web.d.ts +0 -9
- package/lib/typescript/commonjs/media-flight/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/menubar/Menubar.d.ts +14 -9
- package/lib/typescript/commonjs/menubar/Menubar.d.ts.map +1 -1
- package/lib/typescript/commonjs/menubar/Menubar.web.d.ts +8 -6
- package/lib/typescript/commonjs/menubar/Menubar.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/menubar/MenubarBase.d.ts +5 -0
- package/lib/typescript/commonjs/menubar/MenubarBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/menubar/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/motion/index.web.d.ts +0 -5
- package/lib/typescript/commonjs/motion/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/types.d.ts +10 -6
- package/lib/typescript/commonjs/page-header/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/popover/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/popover/parts.d.ts.map +1 -1
- package/lib/typescript/commonjs/popover/surface.d.ts +15 -5
- package/lib/typescript/commonjs/popover/surface.d.ts.map +1 -1
- package/lib/typescript/commonjs/portal/index.web.d.ts +1 -1
- package/lib/typescript/commonjs/portal/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/progressive-blur/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/scroll/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/segmented-control/SegmentedControl.d.ts.map +1 -1
- package/lib/typescript/commonjs/select/Select.d.ts +2 -4
- package/lib/typescript/commonjs/select/Select.d.ts.map +1 -1
- package/lib/typescript/commonjs/select/Select.web.d.ts +2 -4
- package/lib/typescript/commonjs/select/Select.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/select/index.d.ts +2 -2
- package/lib/typescript/commonjs/select/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/select/index.web.d.ts +2 -2
- package/lib/typescript/commonjs/select/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/select/shared.d.ts +52 -5
- package/lib/typescript/commonjs/select/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/select/types.d.ts +6 -0
- package/lib/typescript/commonjs/select/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/Sidebar.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/SidebarRail.d.ts +1 -1
- package/lib/typescript/commonjs/sidebar/SidebarRail.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/parts.d.ts +8 -2
- package/lib/typescript/commonjs/sidebar/parts.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/types.d.ts +2 -0
- package/lib/typescript/commonjs/sidebar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/styles/web-view-style.d.ts +2 -0
- package/lib/typescript/commonjs/styles/web-view-style.d.ts.map +1 -1
- package/lib/typescript/commonjs/surfaces/SurfaceHost.d.ts.map +1 -1
- package/lib/typescript/commonjs/surfaces/index.web.d.ts +9 -4
- package/lib/typescript/commonjs/surfaces/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-bar/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/tabs/Tabs.d.ts.map +1 -1
- package/lib/typescript/commonjs/tabs/types.d.ts +6 -0
- package/lib/typescript/commonjs/tabs/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/seed-scope/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/tooltip/index.web.d.ts.map +1 -1
- package/lib/typescript/module/agent-chat/index.web.d.ts.map +1 -1
- package/lib/typescript/module/ai-chat/index.web.d.ts.map +1 -1
- package/lib/typescript/module/alert-dialog/index.web.d.ts +5 -1
- package/lib/typescript/module/alert-dialog/index.web.d.ts.map +1 -1
- package/lib/typescript/module/avatar-group/index.web.d.ts.map +1 -1
- package/lib/typescript/module/bottom-sheet/index.web.d.ts.map +1 -1
- package/lib/typescript/module/code/index.d.ts +2 -0
- package/lib/typescript/module/code/index.d.ts.map +1 -1
- package/lib/typescript/module/command/index.web.d.ts.map +1 -1
- package/lib/typescript/module/composer-loader/ComposerLoader.web.d.ts +8 -0
- package/lib/typescript/module/composer-loader/ComposerLoader.web.d.ts.map +1 -1
- package/lib/typescript/module/composer-loader/index.web.d.ts.map +1 -1
- package/lib/typescript/module/composer-panel/index.web.d.ts.map +1 -1
- package/lib/typescript/module/connection-dots/index.web.d.ts.map +1 -1
- package/lib/typescript/module/connection-status/index.web.d.ts.map +1 -1
- package/lib/typescript/module/content-panel/index.web.d.ts.map +1 -1
- package/lib/typescript/module/context-menu/ContextMenu.web.d.ts.map +1 -1
- package/lib/typescript/module/context-menu/context.d.ts +3 -0
- package/lib/typescript/module/context-menu/context.d.ts.map +1 -1
- package/lib/typescript/module/context-menu/index.web.d.ts.map +1 -1
- package/lib/typescript/module/dialog/Dialog.web.d.ts.map +1 -1
- package/lib/typescript/module/dialog/index.web.d.ts +2 -1
- package/lib/typescript/module/dialog/index.web.d.ts.map +1 -1
- package/lib/typescript/module/dropdown-menu/DropdownMenu.web.d.ts.map +1 -1
- package/lib/typescript/module/dropdown-menu/index.web.d.ts.map +1 -1
- package/lib/typescript/module/floating/FloatingPanel.d.ts +1 -1
- package/lib/typescript/module/floating/FloatingPanel.d.ts.map +1 -1
- package/lib/typescript/module/floating/escape-stack.d.ts +55 -0
- package/lib/typescript/module/floating/escape-stack.d.ts.map +1 -0
- package/lib/typescript/module/floating/menu-keyboard.d.ts +57 -0
- package/lib/typescript/module/floating/menu-keyboard.d.ts.map +1 -0
- package/lib/typescript/module/floating/menu-sub-flyout.d.ts.map +1 -1
- package/lib/typescript/module/floating/types.d.ts +11 -0
- package/lib/typescript/module/floating/types.d.ts.map +1 -1
- package/lib/typescript/module/fonts/index.web.d.ts.map +1 -1
- package/lib/typescript/module/frosted-icon-button/FrostedIconButton.web.d.ts.map +1 -1
- package/lib/typescript/module/frosted-icon-button/index.web.d.ts.map +1 -1
- package/lib/typescript/module/hooks/roving-focus.d.ts +66 -0
- package/lib/typescript/module/hooks/roving-focus.d.ts.map +1 -0
- package/lib/typescript/module/hover-card/index.web.d.ts.map +1 -1
- package/lib/typescript/module/icons/remix/RiBookReadLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiBookReadLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiBugLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiBugLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiChat1Line.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiChat1Line.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiCloudLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiCloudLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiCodeLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiCodeLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiCpuLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiCpuLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiFloodLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiFloodLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiLockUnlockLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiLockUnlockLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiMoneyDollarCircleLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiMoneyDollarCircleLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiPlayCircleLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiPlayCircleLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiRocket2Line.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiRocket2Line.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiServerLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiServerLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiShareBoxLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiShareBoxLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiTv2Line.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiTv2Line.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/index.d.ts +14 -0
- package/lib/typescript/module/icons/remix/index.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +2 -1
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/layout/StickySection.d.ts +8 -0
- package/lib/typescript/module/layout/StickySection.d.ts.map +1 -0
- package/lib/typescript/module/layout/header-dock.d.ts +21 -0
- package/lib/typescript/module/layout/header-dock.d.ts.map +1 -0
- package/lib/typescript/module/layout/index.d.ts +3 -0
- package/lib/typescript/module/layout/index.d.ts.map +1 -1
- package/lib/typescript/module/list/index.web.d.ts.map +1 -1
- package/lib/typescript/module/loading/Loading.d.ts +8 -2
- package/lib/typescript/module/loading/Loading.d.ts.map +1 -1
- package/lib/typescript/module/loading/Loading.web.d.ts +10 -2
- package/lib/typescript/module/loading/Loading.web.d.ts.map +1 -1
- package/lib/typescript/module/loading/LoadingBase.d.ts +64 -0
- package/lib/typescript/module/loading/LoadingBase.d.ts.map +1 -0
- package/lib/typescript/module/loading/index.web.d.ts.map +1 -1
- package/lib/typescript/module/media-flight/index.web.d.ts +0 -9
- package/lib/typescript/module/media-flight/index.web.d.ts.map +1 -1
- package/lib/typescript/module/menubar/Menubar.d.ts +14 -9
- package/lib/typescript/module/menubar/Menubar.d.ts.map +1 -1
- package/lib/typescript/module/menubar/Menubar.web.d.ts +8 -6
- package/lib/typescript/module/menubar/Menubar.web.d.ts.map +1 -1
- package/lib/typescript/module/menubar/MenubarBase.d.ts +5 -0
- package/lib/typescript/module/menubar/MenubarBase.d.ts.map +1 -0
- package/lib/typescript/module/menubar/index.web.d.ts.map +1 -1
- package/lib/typescript/module/motion/index.web.d.ts +0 -5
- package/lib/typescript/module/motion/index.web.d.ts.map +1 -1
- package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/module/page-header/types.d.ts +10 -6
- package/lib/typescript/module/page-header/types.d.ts.map +1 -1
- package/lib/typescript/module/popover/index.web.d.ts.map +1 -1
- package/lib/typescript/module/popover/parts.d.ts.map +1 -1
- package/lib/typescript/module/popover/surface.d.ts +15 -5
- package/lib/typescript/module/popover/surface.d.ts.map +1 -1
- package/lib/typescript/module/portal/index.web.d.ts +1 -1
- package/lib/typescript/module/portal/index.web.d.ts.map +1 -1
- package/lib/typescript/module/progressive-blur/index.web.d.ts.map +1 -1
- package/lib/typescript/module/scroll/index.web.d.ts.map +1 -1
- package/lib/typescript/module/segmented-control/SegmentedControl.d.ts.map +1 -1
- package/lib/typescript/module/select/Select.d.ts +2 -4
- package/lib/typescript/module/select/Select.d.ts.map +1 -1
- package/lib/typescript/module/select/Select.web.d.ts +2 -4
- package/lib/typescript/module/select/Select.web.d.ts.map +1 -1
- package/lib/typescript/module/select/index.d.ts +2 -2
- package/lib/typescript/module/select/index.d.ts.map +1 -1
- package/lib/typescript/module/select/index.web.d.ts +2 -2
- package/lib/typescript/module/select/index.web.d.ts.map +1 -1
- package/lib/typescript/module/select/shared.d.ts +52 -5
- package/lib/typescript/module/select/shared.d.ts.map +1 -1
- package/lib/typescript/module/select/types.d.ts +6 -0
- package/lib/typescript/module/select/types.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/Sidebar.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/SidebarRail.d.ts +1 -1
- package/lib/typescript/module/sidebar/SidebarRail.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/parts.d.ts +8 -2
- package/lib/typescript/module/sidebar/parts.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/types.d.ts +2 -0
- package/lib/typescript/module/sidebar/types.d.ts.map +1 -1
- package/lib/typescript/module/styles/web-view-style.d.ts +2 -0
- package/lib/typescript/module/styles/web-view-style.d.ts.map +1 -1
- package/lib/typescript/module/surfaces/SurfaceHost.d.ts.map +1 -1
- package/lib/typescript/module/surfaces/index.web.d.ts +9 -4
- package/lib/typescript/module/surfaces/index.web.d.ts.map +1 -1
- package/lib/typescript/module/tab-bar/index.web.d.ts.map +1 -1
- package/lib/typescript/module/tabs/Tabs.d.ts.map +1 -1
- package/lib/typescript/module/tabs/types.d.ts +6 -0
- package/lib/typescript/module/tabs/types.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/index.web.d.ts.map +1 -1
- package/lib/typescript/module/theme/seed-scope/index.web.d.ts.map +1 -1
- package/lib/typescript/module/tooltip/index.web.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/agent-chat/index.web.ts +5 -3
- package/src/ai-chat/index.web.ts +5 -2
- package/src/alert-dialog/index.web.ts +10 -1
- package/src/avatar-group/index.web.ts +5 -0
- package/src/bottom-sheet/index.web.ts +5 -0
- package/src/code/index.ts +2 -0
- package/src/command/index.web.ts +5 -0
- package/src/composer-loader/ComposerLoader.web.tsx +8 -0
- package/src/composer-loader/index.web.ts +5 -2
- package/src/composer-panel/index.web.ts +5 -3
- package/src/connection-dots/index.web.ts +5 -0
- package/src/connection-status/index.web.ts +5 -0
- package/src/content-panel/index.web.ts +5 -0
- package/src/context-menu/ContextMenu.web.tsx +26 -3
- package/src/context-menu/context.ts +3 -0
- package/src/context-menu/index.web.ts +5 -0
- package/src/dialog/Dialog.web.tsx +13 -0
- package/src/dialog/index.web.ts +7 -11
- package/src/dropdown-menu/DropdownMenu.web.tsx +25 -2
- package/src/dropdown-menu/index.web.ts +5 -0
- package/src/floating/FloatingPanel.tsx +37 -38
- package/src/floating/escape-stack.ts +92 -0
- package/src/floating/menu-keyboard.ts +242 -0
- package/src/floating/menu-sub-flyout.tsx +22 -17
- package/src/floating/types.ts +11 -0
- package/src/fonts/index.web.ts +5 -20
- package/src/frosted-icon-button/FrostedIconButton.web.tsx +9 -0
- package/src/frosted-icon-button/index.web.ts +5 -7
- package/src/hooks/roving-focus.ts +204 -0
- package/src/hover-card/index.web.ts +5 -0
- package/src/icons/remix/RiBookReadLine.tsx +6 -0
- package/src/icons/remix/RiBugLine.tsx +6 -0
- package/src/icons/remix/RiChat1Line.tsx +6 -0
- package/src/icons/remix/RiCloudLine.tsx +6 -0
- package/src/icons/remix/RiCodeLine.tsx +6 -0
- package/src/icons/remix/RiCpuLine.tsx +6 -0
- package/src/icons/remix/RiFloodLine.tsx +6 -0
- package/src/icons/remix/RiLockUnlockLine.tsx +6 -0
- package/src/icons/remix/RiMoneyDollarCircleLine.tsx +6 -0
- package/src/icons/remix/RiPlayCircleLine.tsx +6 -0
- package/src/icons/remix/RiRocket2Line.tsx +6 -0
- package/src/icons/remix/RiServerLine.tsx +6 -0
- package/src/icons/remix/RiShareBoxLine.tsx +6 -0
- package/src/icons/remix/RiTv2Line.tsx +6 -0
- package/src/icons/remix/index.ts +14 -0
- package/src/index.ts +4 -0
- package/src/index.web.ts +4 -0
- package/src/layout/StickySection.tsx +75 -0
- package/src/layout/header-dock.tsx +42 -0
- package/src/layout/index.ts +4 -0
- package/src/list/index.web.ts +5 -0
- package/src/loading/Loading.tsx +15 -135
- package/src/loading/Loading.web.tsx +16 -134
- package/src/loading/LoadingBase.tsx +170 -0
- package/src/loading/index.web.ts +5 -13
- package/src/media-flight/index.web.ts +5 -9
- package/src/menubar/Menubar.tsx +16 -147
- package/src/menubar/Menubar.web.tsx +15 -138
- package/src/menubar/MenubarBase.tsx +170 -0
- package/src/menubar/index.web.ts +5 -0
- package/src/motion/index.web.ts +5 -5
- package/src/page-header/PageHeader.tsx +26 -12
- package/src/page-header/types.ts +10 -6
- package/src/popover/index.web.ts +5 -0
- package/src/popover/parts.tsx +76 -12
- package/src/popover/surface.ts +68 -15
- package/src/portal/index.web.ts +6 -1
- package/src/progressive-blur/index.web.ts +5 -0
- package/src/scroll/index.web.ts +5 -0
- package/src/segmented-control/SegmentedControl.tsx +45 -1
- package/src/select/Select.tsx +4 -67
- package/src/select/Select.web.tsx +133 -69
- package/src/select/index.ts +3 -3
- package/src/select/index.web.ts +8 -3
- package/src/select/shared.tsx +107 -5
- package/src/select/types.ts +6 -0
- package/src/sidebar/Sidebar.tsx +3 -0
- package/src/sidebar/SidebarRail.tsx +6 -1
- package/src/sidebar/SidebarTeamMenu.tsx +2 -2
- package/src/sidebar/SidebarUserMenu.tsx +2 -2
- package/src/sidebar/parts.tsx +8 -9
- package/src/sidebar/types.ts +2 -0
- package/src/styles/web-view-style.ts +5 -0
- package/src/surfaces/SurfaceHost.tsx +6 -0
- package/src/surfaces/index.web.ts +14 -4
- package/src/tab-bar/index.web.ts +13 -10
- package/src/tabs/Tabs.tsx +65 -1
- package/src/tabs/types.ts +6 -0
- package/src/theme/color-scope/index.web.ts +5 -0
- package/src/theme/seed-scope/index.web.ts +5 -0
- package/src/tooltip/index.web.ts +5 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SIZE_CONFIG = void 0;
|
|
7
|
+
exports.bindLoading = bindLoading;
|
|
8
|
+
exports.styles = void 0;
|
|
9
|
+
var _legacy = require("../appearance/legacy.js");
|
|
10
|
+
var _colors = require("../appearance/colors.js");
|
|
11
|
+
var _index = require("../appearance/index.js");
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _reactNative = require("react-native");
|
|
14
|
+
var _useTheme = require("../theme/use-theme.js");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
17
|
+
/**
|
|
18
|
+
* Everything `Loading` does that is the SAME on both platforms.
|
|
19
|
+
*
|
|
20
|
+
* The family forks for one reason: the `top` variant's motion. Native drives
|
|
21
|
+
* it with react-native-reanimated, whose worklets Babel plugin has no web
|
|
22
|
+
* equivalent — a static import of it breaks every web bundler, Vite, webpack
|
|
23
|
+
* and Metro-web alike — so web drives the same motion with CSS transitions.
|
|
24
|
+
* That is the whole of the difference. The `spinner` and `inline` variants,
|
|
25
|
+
* the size table, the variant dispatch and the stylesheet were byte-identical
|
|
26
|
+
* copies in both forks.
|
|
27
|
+
*
|
|
28
|
+
* So the two platform pieces are INJECTED rather than imported: `SpinnerIcon`
|
|
29
|
+
* (itself forked) and `TopLoading`. `bindLoading` is called once at module
|
|
30
|
+
* scope by each fork, never per render, so the component identities are
|
|
31
|
+
* stable — the same discipline as `bindAgentChat` and `bindAiChat`.
|
|
32
|
+
*
|
|
33
|
+
* NEUTRAL by construction: nothing this module reaches is platform-forked, so
|
|
34
|
+
* it resolves the same way in Metro, Vite, webpack, SSR and jest. (jest
|
|
35
|
+
* resolves no platform extensions at all, so logic that moved into a
|
|
36
|
+
* `.native.*` file would lose its coverage in silence.)
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/** Spinner diameter and label size per `size` token. Read by all three variants. */
|
|
40
|
+
const SIZE_CONFIG = exports.SIZE_CONFIG = {
|
|
41
|
+
xs: {
|
|
42
|
+
spinner: 16,
|
|
43
|
+
text: 12
|
|
44
|
+
},
|
|
45
|
+
sm: {
|
|
46
|
+
spinner: 20,
|
|
47
|
+
text: 13
|
|
48
|
+
},
|
|
49
|
+
md: {
|
|
50
|
+
spinner: 24,
|
|
51
|
+
text: 15
|
|
52
|
+
},
|
|
53
|
+
lg: {
|
|
54
|
+
spinner: 44,
|
|
55
|
+
text: 16
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** The two platform pieces a fork supplies. */
|
|
60
|
+
|
|
61
|
+
function bindLoading({
|
|
62
|
+
SpinnerIcon,
|
|
63
|
+
TopLoading
|
|
64
|
+
}) {
|
|
65
|
+
const SpinnerLoading = ({
|
|
66
|
+
size: sizeProp,
|
|
67
|
+
color,
|
|
68
|
+
tone: toneProp,
|
|
69
|
+
className,
|
|
70
|
+
text,
|
|
71
|
+
textStyle,
|
|
72
|
+
style,
|
|
73
|
+
showText = true,
|
|
74
|
+
iconSize,
|
|
75
|
+
spinnerIcon,
|
|
76
|
+
testID
|
|
77
|
+
}) => {
|
|
78
|
+
const theme = (0, _useTheme.useTheme)();
|
|
79
|
+
const {
|
|
80
|
+
size,
|
|
81
|
+
tone
|
|
82
|
+
} = (0, _index.useBloomAppearance)({
|
|
83
|
+
size: (0, _legacy.normalizeBloomSize)(sizeProp),
|
|
84
|
+
tone: toneProp
|
|
85
|
+
}, {
|
|
86
|
+
size: 'md',
|
|
87
|
+
tone: 'accent'
|
|
88
|
+
});
|
|
89
|
+
const sizeConfig = SIZE_CONFIG[size];
|
|
90
|
+
const effectiveIconSize = iconSize ?? sizeConfig.spinner;
|
|
91
|
+
const spinnerColor = className ? 'currentColor' : color ?? (0, _colors.resolveBloomColors)(theme.colors, tone, 'solid').background;
|
|
92
|
+
const textColor = color ?? theme.colors.textSecondary;
|
|
93
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
94
|
+
style: [styles.container, style],
|
|
95
|
+
testID: testID,
|
|
96
|
+
children: [spinnerIcon ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(SpinnerIcon, {
|
|
97
|
+
size: effectiveIconSize,
|
|
98
|
+
color: spinnerColor,
|
|
99
|
+
className: className
|
|
100
|
+
}), showText && text && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
101
|
+
style: [styles.text, {
|
|
102
|
+
color: textColor,
|
|
103
|
+
fontSize: sizeConfig.text,
|
|
104
|
+
marginTop: 8
|
|
105
|
+
}, textStyle],
|
|
106
|
+
children: text
|
|
107
|
+
})]
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
const InlineLoading = ({
|
|
111
|
+
size: sizeProp,
|
|
112
|
+
color,
|
|
113
|
+
tone: toneProp,
|
|
114
|
+
text,
|
|
115
|
+
style,
|
|
116
|
+
textStyle,
|
|
117
|
+
spinnerIcon,
|
|
118
|
+
testID
|
|
119
|
+
}) => {
|
|
120
|
+
const theme = (0, _useTheme.useTheme)();
|
|
121
|
+
const {
|
|
122
|
+
size,
|
|
123
|
+
tone
|
|
124
|
+
} = (0, _index.useBloomAppearance)({
|
|
125
|
+
size: (0, _legacy.normalizeBloomSize)(sizeProp),
|
|
126
|
+
tone: toneProp
|
|
127
|
+
}, {
|
|
128
|
+
size: 'md',
|
|
129
|
+
tone: 'accent'
|
|
130
|
+
});
|
|
131
|
+
const sizeConfig = SIZE_CONFIG[size];
|
|
132
|
+
const spinnerColor = color ?? (0, _colors.resolveBloomColors)(theme.colors, tone, 'solid').background;
|
|
133
|
+
const textColor = theme.colors.textSecondary;
|
|
134
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
135
|
+
style: [styles.inlineContainer, style],
|
|
136
|
+
testID: testID,
|
|
137
|
+
children: [spinnerIcon ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(SpinnerIcon, {
|
|
138
|
+
size: sizeConfig.spinner,
|
|
139
|
+
color: spinnerColor
|
|
140
|
+
}), text && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
141
|
+
style: [{
|
|
142
|
+
color: textColor,
|
|
143
|
+
fontSize: sizeConfig.text,
|
|
144
|
+
marginLeft: 8
|
|
145
|
+
}, textStyle],
|
|
146
|
+
children: text
|
|
147
|
+
})]
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
const LoadingComponent = props => {
|
|
151
|
+
const variant = props.variant ?? 'spinner';
|
|
152
|
+
switch (variant) {
|
|
153
|
+
case 'top':
|
|
154
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TopLoading, {
|
|
155
|
+
...props
|
|
156
|
+
});
|
|
157
|
+
case 'inline':
|
|
158
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(InlineLoading, {
|
|
159
|
+
...props
|
|
160
|
+
});
|
|
161
|
+
case 'spinner':
|
|
162
|
+
default:
|
|
163
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(SpinnerLoading, {
|
|
164
|
+
...props
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
const Loading = /*#__PURE__*/(0, _react.memo)(LoadingComponent);
|
|
169
|
+
Loading.displayName = 'Loading';
|
|
170
|
+
return {
|
|
171
|
+
Loading
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
175
|
+
container: {
|
|
176
|
+
alignItems: 'center',
|
|
177
|
+
justifyContent: 'center',
|
|
178
|
+
padding: 16
|
|
179
|
+
},
|
|
180
|
+
text: {
|
|
181
|
+
textAlign: 'center'
|
|
182
|
+
},
|
|
183
|
+
topContainer: {
|
|
184
|
+
width: '100%',
|
|
185
|
+
position: 'relative',
|
|
186
|
+
overflow: 'hidden'
|
|
187
|
+
},
|
|
188
|
+
topLoadingView: {
|
|
189
|
+
width: '100%',
|
|
190
|
+
alignItems: 'center',
|
|
191
|
+
justifyContent: 'center',
|
|
192
|
+
position: 'absolute',
|
|
193
|
+
top: 0,
|
|
194
|
+
left: 0
|
|
195
|
+
},
|
|
196
|
+
inlineContainer: {
|
|
197
|
+
flexDirection: 'row',
|
|
198
|
+
alignItems: 'center',
|
|
199
|
+
justifyContent: 'center'
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
//# sourceMappingURL=LoadingBase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_legacy","require","_colors","_index","_react","_interopRequireWildcard","_reactNative","_useTheme","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SIZE_CONFIG","exports","xs","spinner","text","sm","md","lg","bindLoading","SpinnerIcon","TopLoading","SpinnerLoading","size","sizeProp","color","tone","toneProp","className","textStyle","style","showText","iconSize","spinnerIcon","testID","theme","useTheme","useBloomAppearance","normalizeBloomSize","sizeConfig","effectiveIconSize","spinnerColor","resolveBloomColors","colors","background","textColor","textSecondary","jsxs","View","styles","container","children","jsx","Text","fontSize","marginTop","InlineLoading","inlineContainer","marginLeft","LoadingComponent","props","variant","Loading","memo","displayName","StyleSheet","create","alignItems","justifyContent","padding","textAlign","topContainer","width","position","overflow","topLoadingView","top","left","flexDirection"],"sourceRoot":"../../../src","sources":["loading/LoadingBase.tsx"],"mappings":";;;;;;;;AAqBA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAC,uBAAA,CAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AAEA,IAAAM,SAAA,GAAAN,OAAA;AAA8C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAI,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI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,OAAO,EAAE;EACX,CAAC;EACDtD,IAAI,EAAE;IACJuD,SAAS,EAAE;EACb,CAAC;EACDC,YAAY,EAAE;IACZC,KAAK,EAAE,MAAM;IACbC,QAAQ,EAAE,UAAU;IACpBC,QAAQ,EAAE;EACZ,CAAC;EACDC,cAAc,EAAE;IACdH,KAAK,EAAE,MAAM;IACbL,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBK,QAAQ,EAAE,UAAU;IACpBG,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE;EACR,CAAC;EACDpB,eAAe,EAAE;IACfqB,aAAa,EAAE,KAAK;IACpBX,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_LoadingWeb","require","_SpinnerIconWeb"],"sourceRoot":"../../../src","sources":["loading/index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"names":["_LoadingWeb","require","_SpinnerIconWeb"],"sourceRoot":"../../../src","sources":["loading/index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;AAKA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_MediaFlightLayerWeb","require","_MediaFlightHostWeb","_MediaSurface","_useMediaFlight","_store","_constants","_expoVideoModule"],"sourceRoot":"../../../src","sources":["media-flight/index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"names":["_MediaFlightLayerWeb","require","_MediaFlightHostWeb","_MediaSurface","_useMediaFlight","_store","_constants","_expoVideoModule"],"sourceRoot":"../../../src","sources":["media-flight/index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAAA,oBAAA,GAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAQA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA","ignoreList":[]}
|
|
@@ -3,146 +3,54 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
Object.defineProperty(exports, "Menubar", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _MenubarBase.Menubar;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
7
12
|
exports.MenubarCheckboxItem = void 0;
|
|
8
13
|
exports.MenubarContent = MenubarContent;
|
|
9
14
|
exports.MenubarLabel = exports.MenubarItem = exports.MenubarGroup = void 0;
|
|
10
|
-
exports
|
|
15
|
+
Object.defineProperty(exports, "MenubarMenu", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () {
|
|
18
|
+
return _MenubarBase.MenubarMenu;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
11
21
|
exports.MenubarSubTrigger = exports.MenubarSubContent = exports.MenubarSub = exports.MenubarShortcut = exports.MenubarSeparator = exports.MenubarRadioItem = exports.MenubarRadioGroup = void 0;
|
|
12
|
-
exports
|
|
22
|
+
Object.defineProperty(exports, "MenubarTrigger", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () {
|
|
25
|
+
return _MenubarBase.MenubarTrigger;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
13
28
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
29
|
var _SheetShell = require("../dialog/SheetShell.js");
|
|
15
|
-
var _constants = require("../floating/constants.js");
|
|
16
30
|
var _context = require("../floating/context.js");
|
|
17
31
|
var _menuRows = require("../floating/menu-rows.js");
|
|
18
32
|
var _menuSubInline = require("../floating/menu-sub-inline.js");
|
|
19
|
-
var _shared = require("../floating/shared.js");
|
|
20
|
-
var _TriggerSlot = require("../floating/TriggerSlot.js");
|
|
21
33
|
var _useSheetOpenBridge = require("../floating/use-sheet-open-bridge.js");
|
|
22
|
-
var _useControllableState = require("../hooks/use-controllable-state.js");
|
|
23
|
-
var _styledPrimitives = require("../styles/styled-primitives.js");
|
|
24
|
-
var _menuPalette = require("../floating/menu-palette.js");
|
|
25
|
-
var _menuType = require("../floating/menu-type.js");
|
|
26
34
|
var _context2 = require("./context.js");
|
|
27
35
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
36
|
+
var _MenubarBase = require("./MenubarBase.js");
|
|
28
37
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
29
38
|
/**
|
|
30
|
-
* `Menubar` — NATIVE
|
|
31
|
-
* `
|
|
39
|
+
* `Menubar` — NATIVE: each menu opens the same bottom sheet `DropdownMenu` and
|
|
40
|
+
* `ContextMenu` present, because a phone has no room to hang a panel beside a
|
|
41
|
+
* control and every Bloom overlay resolving to one sheet is what makes the
|
|
42
|
+
* native surfaces feel like one system.
|
|
32
43
|
*
|
|
33
|
-
* The
|
|
34
|
-
* `
|
|
35
|
-
*
|
|
44
|
+
* The bar, the per-menu state and the trigger are identical on both platforms
|
|
45
|
+
* and live in `MenubarBase`. What forks is this file: the surface a menu opens
|
|
46
|
+
* into, and which sub-menu the rows get — INLINE on native, because a flyout
|
|
47
|
+
* needs a pointer.
|
|
48
|
+
*
|
|
49
|
+
* Bloom had no menu bar before this family; its rows are `floating/menu-rows`,
|
|
50
|
+
* published here under the `Menubar*` names so a call site keeps every part it
|
|
51
|
+
* wrote.
|
|
36
52
|
*/
|
|
37
53
|
|
|
38
|
-
function Menubar({
|
|
39
|
-
children,
|
|
40
|
-
value,
|
|
41
|
-
defaultValue,
|
|
42
|
-
onValueChange,
|
|
43
|
-
label = 'Menu bar',
|
|
44
|
-
className,
|
|
45
|
-
style,
|
|
46
|
-
testID
|
|
47
|
-
}) {
|
|
48
|
-
const [openValue, setValue] = (0, _useControllableState.useControllableState)({
|
|
49
|
-
value,
|
|
50
|
-
defaultValue,
|
|
51
|
-
onChange: onValueChange
|
|
52
|
-
});
|
|
53
|
-
const context = (0, _react.useMemo)(() => ({
|
|
54
|
-
value: openValue,
|
|
55
|
-
setValue
|
|
56
|
-
}), [openValue, setValue]);
|
|
57
|
-
const palette = (0, _menuPalette.useMenuPalette)();
|
|
58
|
-
const barPaint = {
|
|
59
|
-
backgroundColor: palette.trigger.background,
|
|
60
|
-
borderColor: palette.trigger.border,
|
|
61
|
-
boxShadow: palette.trigger.shadow
|
|
62
|
-
};
|
|
63
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context2.MenubarProvider, {
|
|
64
|
-
value: context,
|
|
65
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledPrimitives.StyledView, {
|
|
66
|
-
role: "menubar",
|
|
67
|
-
"aria-label": label,
|
|
68
|
-
testID: testID,
|
|
69
|
-
className: (0, _shared.cx)(_constants.MENUBAR_CLASS, className)
|
|
70
|
-
// `shadow-s` reaches WEB through the class; NATIVE takes the same role as
|
|
71
|
-
// an inline style, because `design-tokens/shadows` is platform-forked and
|
|
72
|
-
// its own contract is that a multi-layer `box-shadow` is not something to
|
|
73
|
-
// rely on NativeWind translating to RN elevation. On web the two agree, so
|
|
74
|
-
// whichever wins paints the same thing.
|
|
75
|
-
,
|
|
76
|
-
style: [barPaint, style],
|
|
77
|
-
children: children
|
|
78
|
-
})
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
function MenubarMenu({
|
|
82
|
-
children,
|
|
83
|
-
value
|
|
84
|
-
}) {
|
|
85
|
-
const bar = (0, _context2.useMenubar)();
|
|
86
|
-
const anchorRef = (0, _react.useRef)(null);
|
|
87
|
-
const {
|
|
88
|
-
setValue
|
|
89
|
-
} = bar;
|
|
90
|
-
const context = (0, _react.useMemo)(() => ({
|
|
91
|
-
open: bar.value === value,
|
|
92
|
-
setOpen: next => setValue(next ? value : undefined),
|
|
93
|
-
anchorRef
|
|
94
|
-
}), [bar.value, value, setValue]);
|
|
95
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context2.MenubarMenuProvider, {
|
|
96
|
-
value: context,
|
|
97
|
-
children: children
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
function MenubarTrigger({
|
|
101
|
-
children,
|
|
102
|
-
asChild,
|
|
103
|
-
disabled,
|
|
104
|
-
label,
|
|
105
|
-
className,
|
|
106
|
-
style,
|
|
107
|
-
testID
|
|
108
|
-
}) {
|
|
109
|
-
const menu = (0, _context2.useMenubarMenu)();
|
|
110
|
-
const palette = (0, _menuPalette.useMenuPalette)();
|
|
111
|
-
|
|
112
|
-
// `flex items-center rounded-md px-2 py-1.5`, plus `bg-accent` while its menu
|
|
113
|
-
// is open and `text-sm font-medium` for the label — the same chrome the web
|
|
114
|
-
// fork draws, so the bar reads identically on both platforms.
|
|
115
|
-
const trigger = /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledPrimitives.StyledView, {
|
|
116
|
-
className: (0, _shared.cx)(_constants.MENUBAR_TRIGGER_CLASS, menu.open && _constants.MENUBAR_TRIGGER_OPEN_CLASS, className),
|
|
117
|
-
style: {
|
|
118
|
-
backgroundColor: menu.open ? palette.rowHighlight : 'transparent'
|
|
119
|
-
},
|
|
120
|
-
children: typeof children === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledPrimitives.StyledText, {
|
|
121
|
-
className: _constants.MENUBAR_TRIGGER_TEXT_CLASS
|
|
122
|
-
// `text-body-medium text-text-primary`, in Inter.
|
|
123
|
-
,
|
|
124
|
-
style: [(0, _menuType.menuType)('body-medium'), {
|
|
125
|
-
color: palette.text
|
|
126
|
-
}],
|
|
127
|
-
children: children
|
|
128
|
-
}) : children
|
|
129
|
-
});
|
|
130
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TriggerSlot.TriggerSlot, {
|
|
131
|
-
asChild: asChild,
|
|
132
|
-
anchorRef: menu.anchorRef,
|
|
133
|
-
style: style,
|
|
134
|
-
testID: testID,
|
|
135
|
-
handle: {
|
|
136
|
-
onPress: () => menu.setOpen(!menu.open),
|
|
137
|
-
disabled,
|
|
138
|
-
accessibilityLabel: label,
|
|
139
|
-
accessibilityRole: 'button',
|
|
140
|
-
'aria-haspopup': _constants.MENU_TRIGGER_POPUP,
|
|
141
|
-
'aria-expanded': menu.open
|
|
142
|
-
},
|
|
143
|
-
children: asChild ? children : trigger
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
54
|
function MenubarContent({
|
|
147
55
|
children,
|
|
148
56
|
label = 'Menu',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_SheetShell","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_SheetShell","_context","_menuRows","_menuSubInline","_useSheetOpenBridge","_context2","_jsxRuntime","_MenubarBase","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","MenubarContent","children","label","style","menu","useMenubarMenu","control","onSheetClose","useSheetOpenBridge","open","setOpen","surface","useMemo","close","presentation","jsx","SheetShell","onClose","contentStyle","MenuSurfaceProvider","value","rows","createMenuRows","createInlineMenuSub","MenubarItem","exports","Item","MenubarCheckboxItem","CheckboxItem","MenubarRadioGroup","RadioGroup","MenubarRadioItem","RadioItem","MenubarLabel","Label","MenubarSeparator","Separator","MenubarShortcut","Shortcut","MenubarGroup","Group","MenubarSub","Sub","MenubarSubTrigger","SubTrigger","MenubarSubContent","SubContent"],"sourceRoot":"../../../src","sources":["menubar/Menubar.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AAA2C,IAAAO,WAAA,GAAAP,OAAA;AAG3C,IAAAQ,YAAA,GAAAR,OAAA;AAAqE,SAAAD,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAU,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD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CAC3D,CAAC;AAEjB;AAEA,MAAMoB,IAAI,GAAG,IAAAC,wBAAc,EAAC,SAAS,EAAEC,kCAAmB,CAAC;AAEpD,MAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAGH,IAAI,CAACK,IAAI;AAC7B,MAAMC,mBAAmB,GAAAF,OAAA,CAAAE,mBAAA,GAAGN,IAAI,CAACO,YAAY;AAC7C,MAAMC,iBAAiB,GAAAJ,OAAA,CAAAI,iBAAA,GAAGR,IAAI,CAACS,UAAU;AACzC,MAAMC,gBAAgB,GAAAN,OAAA,CAAAM,gBAAA,GAAGV,IAAI,CAACW,SAAS;AACvC,MAAMC,YAAY,GAAAR,OAAA,CAAAQ,YAAA,GAAGZ,IAAI,CAACa,KAAK;AAC/B,MAAMC,gBAAgB,GAAAV,OAAA,CAAAU,gBAAA,GAAGd,IAAI,CAACe,SAAS;AACvC,MAAMC,eAAe,GAAAZ,OAAA,CAAAY,eAAA,GAAGhB,IAAI,CAACiB,QAAQ;AACrC,MAAMC,YAAY,GAAAd,OAAA,CAAAc,YAAA,GAAGlB,IAAI,CAACmB,KAAK;AAC/B,MAAMC,UAAU,GAAAhB,OAAA,CAAAgB,UAAA,GAAGpB,IAAI,CAACqB,GAAG;AAC3B,MAAMC,iBAAiB,GAAAlB,OAAA,CAAAkB,iBAAA,GAAGtB,IAAI,CAACuB,UAAU;AACzC,MAAMC,iBAAiB,GAAApB,OAAA,CAAAoB,iBAAA,GAAGxB,IAAI,CAACyB,UAAU","ignoreList":[]}
|
|
@@ -3,142 +3,54 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
Object.defineProperty(exports, "Menubar", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _MenubarBase.Menubar;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
7
12
|
exports.MenubarCheckboxItem = void 0;
|
|
8
13
|
exports.MenubarContent = MenubarContent;
|
|
9
14
|
exports.MenubarLabel = exports.MenubarItem = exports.MenubarGroup = void 0;
|
|
10
|
-
exports
|
|
15
|
+
Object.defineProperty(exports, "MenubarMenu", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () {
|
|
18
|
+
return _MenubarBase.MenubarMenu;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
11
21
|
exports.MenubarSubTrigger = exports.MenubarSubContent = exports.MenubarSub = exports.MenubarShortcut = exports.MenubarSeparator = exports.MenubarRadioItem = exports.MenubarRadioGroup = void 0;
|
|
12
|
-
exports
|
|
22
|
+
Object.defineProperty(exports, "MenubarTrigger", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () {
|
|
25
|
+
return _MenubarBase.MenubarTrigger;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
13
28
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
29
|
var _constants = require("../floating/constants.js");
|
|
15
30
|
var _context = require("../floating/context.js");
|
|
16
31
|
var _FloatingPanel = require("../floating/FloatingPanel.js");
|
|
32
|
+
var _menuKeyboard = require("../floating/menu-keyboard.js");
|
|
17
33
|
var _menuRows = require("../floating/menu-rows.js");
|
|
18
34
|
var _menuSubFlyout = require("../floating/menu-sub-flyout.js");
|
|
19
35
|
var _shared = require("../floating/shared.js");
|
|
20
|
-
var _TriggerSlot = require("../floating/TriggerSlot.js");
|
|
21
36
|
var _useAnchorRect = require("../floating/use-anchor-rect.js");
|
|
22
|
-
var _useControllableState = require("../hooks/use-controllable-state.js");
|
|
23
|
-
var _styledPrimitives = require("../styles/styled-primitives.js");
|
|
24
|
-
var _menuPalette = require("../floating/menu-palette.js");
|
|
25
|
-
var _menuType = require("../floating/menu-type.js");
|
|
26
37
|
var _context2 = require("./context.js");
|
|
27
38
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
39
|
+
var _MenubarBase = require("./MenubarBase.js");
|
|
28
40
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
29
41
|
/**
|
|
30
|
-
* `Menubar` — WEB
|
|
31
|
-
*
|
|
42
|
+
* `Menubar` — WEB: each menu is an anchored panel from `floating/FloatingPanel`
|
|
43
|
+
* rather than a sheet.
|
|
44
|
+
*
|
|
45
|
+
* The bar, the per-menu state and the trigger are identical on both platforms
|
|
46
|
+
* and live in `MenubarBase`. What forks is this file: the surface a menu opens
|
|
47
|
+
* into, and which sub-menu the rows get — a FLYOUT here, which needs a pointer.
|
|
32
48
|
*
|
|
33
49
|
* `align="start"` and the trigger's own width as `minWidth` are what make a
|
|
34
50
|
* menubar menu hang under its trigger the way a desktop menu bar does, rather
|
|
35
51
|
* than centring like a popover.
|
|
36
52
|
*/
|
|
37
53
|
|
|
38
|
-
function Menubar({
|
|
39
|
-
children,
|
|
40
|
-
value,
|
|
41
|
-
defaultValue,
|
|
42
|
-
onValueChange,
|
|
43
|
-
label = 'Menu bar',
|
|
44
|
-
className,
|
|
45
|
-
style,
|
|
46
|
-
testID
|
|
47
|
-
}) {
|
|
48
|
-
const [openValue, setValue] = (0, _useControllableState.useControllableState)({
|
|
49
|
-
value,
|
|
50
|
-
defaultValue,
|
|
51
|
-
onChange: onValueChange
|
|
52
|
-
});
|
|
53
|
-
const context = (0, _react.useMemo)(() => ({
|
|
54
|
-
value: openValue,
|
|
55
|
-
setValue
|
|
56
|
-
}), [openValue, setValue]);
|
|
57
|
-
const palette = (0, _menuPalette.useMenuPalette)();
|
|
58
|
-
const barPaint = {
|
|
59
|
-
backgroundColor: palette.trigger.background,
|
|
60
|
-
borderColor: palette.trigger.border,
|
|
61
|
-
boxShadow: palette.trigger.shadow
|
|
62
|
-
};
|
|
63
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context2.MenubarProvider, {
|
|
64
|
-
value: context,
|
|
65
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledPrimitives.StyledView, {
|
|
66
|
-
role: "menubar",
|
|
67
|
-
"aria-label": label,
|
|
68
|
-
testID: testID,
|
|
69
|
-
className: (0, _shared.cx)(_constants.MENUBAR_CLASS, className),
|
|
70
|
-
style: [barPaint, style],
|
|
71
|
-
children: children
|
|
72
|
-
})
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function MenubarMenu({
|
|
76
|
-
children,
|
|
77
|
-
value
|
|
78
|
-
}) {
|
|
79
|
-
const bar = (0, _context2.useMenubar)();
|
|
80
|
-
const anchorRef = (0, _react.useRef)(null);
|
|
81
|
-
const {
|
|
82
|
-
setValue
|
|
83
|
-
} = bar;
|
|
84
|
-
const context = (0, _react.useMemo)(() => ({
|
|
85
|
-
open: bar.value === value,
|
|
86
|
-
setOpen: next => setValue(next ? value : undefined),
|
|
87
|
-
anchorRef
|
|
88
|
-
}), [bar.value, value, setValue]);
|
|
89
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context2.MenubarMenuProvider, {
|
|
90
|
-
value: context,
|
|
91
|
-
children: children
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
function MenubarTrigger({
|
|
95
|
-
children,
|
|
96
|
-
asChild,
|
|
97
|
-
disabled,
|
|
98
|
-
label,
|
|
99
|
-
className,
|
|
100
|
-
style,
|
|
101
|
-
testID
|
|
102
|
-
}) {
|
|
103
|
-
const menu = (0, _context2.useMenubarMenu)();
|
|
104
|
-
const palette = (0, _menuPalette.useMenuPalette)();
|
|
105
|
-
|
|
106
|
-
// `flex items-center rounded-md px-2 py-1.5`, plus `bg-accent` while its menu
|
|
107
|
-
// is open, and `text-sm font-medium` for the label. A menubar trigger is a
|
|
108
|
-
// BUTTON with chrome of its own, not a bare hit box — leaving it unstyled is
|
|
109
|
-
// why a Bloom menubar read as loose text against a pill-per-menu bar.
|
|
110
|
-
// `asChild` still hands the whole thing to the caller.
|
|
111
|
-
const trigger = /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledPrimitives.StyledView, {
|
|
112
|
-
className: (0, _shared.cx)(_constants.MENUBAR_TRIGGER_CLASS, menu.open && _constants.MENUBAR_TRIGGER_OPEN_CLASS, className),
|
|
113
|
-
style: {
|
|
114
|
-
backgroundColor: menu.open ? palette.rowHighlight : 'transparent'
|
|
115
|
-
},
|
|
116
|
-
children: typeof children === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledPrimitives.StyledText, {
|
|
117
|
-
className: _constants.MENUBAR_TRIGGER_TEXT_CLASS
|
|
118
|
-
// `text-body-medium text-text-primary`, in Inter.
|
|
119
|
-
,
|
|
120
|
-
style: [(0, _menuType.menuType)('body-medium'), {
|
|
121
|
-
color: palette.text
|
|
122
|
-
}],
|
|
123
|
-
children: children
|
|
124
|
-
}) : children
|
|
125
|
-
});
|
|
126
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TriggerSlot.TriggerSlot, {
|
|
127
|
-
asChild: asChild,
|
|
128
|
-
anchorRef: menu.anchorRef,
|
|
129
|
-
style: style,
|
|
130
|
-
testID: testID,
|
|
131
|
-
handle: {
|
|
132
|
-
onPress: () => menu.setOpen(!menu.open),
|
|
133
|
-
disabled,
|
|
134
|
-
accessibilityLabel: label,
|
|
135
|
-
accessibilityRole: 'button',
|
|
136
|
-
'aria-haspopup': _constants.MENU_TRIGGER_POPUP,
|
|
137
|
-
'aria-expanded': menu.open
|
|
138
|
-
},
|
|
139
|
-
children: asChild ? children : trigger
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
54
|
function MenubarContent({
|
|
143
55
|
children,
|
|
144
56
|
label = 'Menu',
|
|
@@ -163,7 +75,14 @@ function MenubarContent({
|
|
|
163
75
|
close,
|
|
164
76
|
presentation: 'dropdown'
|
|
165
77
|
}), [close]);
|
|
78
|
+
const [panel, setPanel] = (0, _react.useState)(null);
|
|
79
|
+
(0, _menuKeyboard.useMenuPanelKeys)((0, _menuKeyboard.hostElement)(panel), {
|
|
80
|
+
open: menu.open,
|
|
81
|
+
onTab: close,
|
|
82
|
+
intent: menu.focusIntent
|
|
83
|
+
});
|
|
166
84
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FloatingPanel.FloatingPanel, {
|
|
85
|
+
panelRef: setPanel,
|
|
167
86
|
open: menu.open,
|
|
168
87
|
anchor: anchor,
|
|
169
88
|
role: "menu",
|