@sanity/ui 3.0.0-static.33 → 3.0.0-static.34
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/dist/_chunks-cjs/_visual-editing.cjs +263 -375
- package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -1
- package/dist/_chunks-cjs/refractor.cjs.map +1 -1
- package/dist/_chunks-es/_visual-editing.js +263 -377
- package/dist/_chunks-es/_visual-editing.js.map +1 -1
- package/dist/_chunks-es/refractor.js.map +1 -1
- package/dist/_visual-editing.cjs +0 -2
- package/dist/_visual-editing.cjs.map +1 -1
- package/dist/_visual-editing.d.cts +2 -904
- package/dist/_visual-editing.d.ts +2 -904
- package/dist/_visual-editing.js +2 -4
- package/dist/css/index.cjs +12 -12
- package/dist/css/index.cjs.map +1 -1
- package/dist/css/index.css +1 -1
- package/dist/css/index.d.cts +805 -14697
- package/dist/css/index.d.ts +805 -14697
- package/dist/css/index.js +12 -12
- package/dist/css/index.js.map +1 -1
- package/dist/index.cjs +241 -366
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +990 -3095
- package/dist/index.d.ts +990 -3095
- package/dist/index.js +243 -360
- package/dist/index.js.map +1 -1
- package/dist/portalProvider-DgNIVviV.d.ts +575 -0
- package/dist/theme.cjs +367 -4288
- package/dist/theme.cjs.map +1 -1
- package/dist/theme.d.cts +272 -1806
- package/dist/theme.d.ts +272 -1806
- package/dist/theme.js +371 -4292
- package/dist/theme.js.map +1 -1
- package/exports/_visual-editing.ts +0 -2
- package/package.json +3 -4
- package/src/core/Root.tsx +4 -2
- package/src/core/RootProvider.tsx +4 -4
- package/src/core/__workshop__/boundary.tsx +1 -1
- package/src/core/__workshop__/index.ts +5 -3
- package/src/core/components/autocomplete/__workshop__/async.tsx +1 -1
- package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +2 -2
- package/src/core/components/autocomplete/__workshop__/custom.tsx +2 -2
- package/src/core/components/autocomplete/__workshop__/example.tsx +2 -2
- package/src/core/components/autocomplete/__workshop__/focusAndBlur.tsx +1 -1
- package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +1 -1
- package/src/core/components/autocomplete/__workshop__/index.ts +5 -3
- package/src/core/components/autocomplete/__workshop__/mock/apiStore.ts +1 -1
- package/src/core/components/autocomplete/__workshop__/mock/countries.ts +1 -1
- package/src/core/components/autocomplete/autocomplete.tsx +2 -2
- package/src/core/components/autocomplete/autocompleteOption.tsx +2 -2
- package/src/core/components/autocomplete/constants.ts +2 -2
- package/src/core/components/breadcrumbs/__workshop__/example.tsx +1 -1
- package/src/core/components/breadcrumbs/__workshop__/index.ts +5 -3
- package/src/core/components/breadcrumbs/breadcrumbs.tsx +6 -11
- package/src/core/components/dialog/__workshop__/activate.tsx +1 -1
- package/src/core/components/dialog/__workshop__/autoFocus.tsx +1 -1
- package/src/core/components/dialog/__workshop__/index.ts +5 -3
- package/src/core/components/dialog/__workshop__/layering.tsx +1 -1
- package/src/core/components/dialog/__workshop__/nested.tsx +2 -3
- package/src/core/components/dialog/__workshop__/onScroll.tsx +1 -1
- package/src/core/components/dialog/__workshop__/panes.tsx +1 -1
- package/src/core/components/dialog/__workshop__/position.tsx +1 -1
- package/src/core/components/dialog/__workshop__/props.tsx +1 -1
- package/src/core/components/dialog/__workshop__/provider.tsx +1 -1
- package/src/core/components/dialog/__workshop__/wrapped.tsx +1 -1
- package/src/core/components/dialog/dialog.tsx +5 -6
- package/src/core/components/dialog/dialogCard.tsx +2 -2
- package/src/core/components/dialog/dialogContext.ts +3 -4
- package/src/core/components/dialog/dialogProvider.tsx +2 -2
- package/src/core/components/hotkeys/__workshop__/index.ts +5 -3
- package/src/core/components/hotkeys/__workshop__/plain.tsx +1 -1
- package/src/core/components/hotkeys/hotkeys.tsx +4 -15
- package/src/core/components/menu/__workshop__/asComponent.tsx +1 -1
- package/src/core/components/menu/__workshop__/avatarMenu.tsx +1 -1
- package/src/core/components/menu/__workshop__/closableMenuButton.tsx +1 -1
- package/src/core/components/menu/__workshop__/constrainedInBoundary.tsx +3 -3
- package/src/core/components/menu/__workshop__/customMenuItem.tsx +1 -1
- package/src/core/components/menu/__workshop__/customSelectedState.tsx +1 -1
- package/src/core/components/menu/__workshop__/disableFocusOnClose.tsx +1 -1
- package/src/core/components/menu/__workshop__/groups.tsx +1 -1
- package/src/core/components/menu/__workshop__/index.ts +5 -3
- package/src/core/components/menu/__workshop__/menuButton.tsx +2 -2
- package/src/core/components/menu/__workshop__/menuGroupRight.tsx +1 -1
- package/src/core/components/menu/__workshop__/nestedMenu.tsx +1 -1
- package/src/core/components/menu/__workshop__/onCloseMenuButton.tsx +1 -1
- package/src/core/components/menu/__workshop__/selectedItem.tsx +1 -1
- package/src/core/components/menu/__workshop__/shouldFocus.tsx +1 -1
- package/src/core/components/menu/__workshop__/tones.tsx +3 -3
- package/src/core/components/menu/__workshop__/withoutArrow.tsx +1 -1
- package/src/core/components/menu/menu.test.tsx +2 -1
- package/src/core/components/menu/menu.tsx +7 -22
- package/src/core/components/menu/menuButton.tsx +4 -50
- package/src/core/components/menu/menuContext.ts +3 -15
- package/src/core/components/menu/menuDivider.tsx +2 -2
- package/src/core/components/menu/menuGroup.tsx +10 -15
- package/src/core/components/menu/menuItem.tsx +7 -18
- package/src/core/components/tab/__workshop__/example.tsx +1 -1
- package/src/core/components/tab/__workshop__/index.ts +5 -3
- package/src/core/components/tab/tab.tsx +6 -4
- package/src/core/components/tab/tabList.tsx +3 -8
- package/src/core/components/tab/tabPanel.tsx +2 -2
- package/src/core/components/toast/__workshop__/hook.tsx +1 -1
- package/src/core/components/toast/__workshop__/index.ts +5 -3
- package/src/core/components/toast/__workshop__/toast.tsx +1 -1
- package/src/core/components/toast/toast.test.tsx +2 -1
- package/src/core/components/toast/toast.tsx +2 -2
- package/src/core/components/toast/toastContext.ts +4 -4
- package/src/core/components/toast/toastLayer.tsx +3 -3
- package/src/core/components/tree/__workshop__/basic.perf.ts +1 -1
- package/src/core/components/tree/__workshop__/basic.tsx +1 -1
- package/src/core/components/tree/__workshop__/index.ts +5 -3
- package/src/core/components/tree/__workshop__/tabFromElement.tsx +1 -1
- package/src/core/components/tree/tree.tsx +8 -9
- package/src/core/components/tree/treeContext.ts +4 -4
- package/src/core/components/tree/treeGroup.tsx +6 -8
- package/src/core/components/tree/treeItem.tsx +4 -4
- package/src/core/components/tree/types.ts +1 -1
- package/src/core/components/virtualList/__workshop__/changingProps.tsx +1 -1
- package/src/core/components/virtualList/__workshop__/elementScroll.tsx +1 -1
- package/src/core/components/virtualList/__workshop__/index.ts +5 -3
- package/src/core/components/virtualList/__workshop__/infiniteList.tsx +1 -1
- package/src/core/components/virtualList/__workshop__/windowScrolll.tsx +1 -1
- package/src/core/components/virtualList/virtualList.tsx +2 -2
- package/src/core/constants.ts +0 -18
- package/src/core/hooks/useMediaIndex/__workshop__/index.ts +5 -3
- package/src/core/hooks/useMediaIndex/__workshop__/test.tsx +1 -1
- package/src/core/hooks/useMediaIndex/useMediaIndex.ts +6 -1
- package/src/core/index.ts +1 -24
- package/src/core/lib/createGlobalScopedContext.ts +1 -1
- package/src/core/lib/globalScope.ts +1 -1
- package/src/core/observers/elementSize.ts +1 -1
- package/src/core/primitives/arrow/arrow.tsx +2 -2
- package/src/core/primitives/avatar/__workshop__/asButton.tsx +1 -1
- package/src/core/primitives/avatar/__workshop__/index.ts +5 -3
- package/src/core/primitives/avatar/__workshop__/stack.tsx +1 -1
- package/src/core/primitives/avatar/__workshop__/withinButton.tsx +1 -1
- package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +1 -1
- package/src/core/primitives/avatar/avatar.tsx +3 -10
- package/src/core/primitives/avatar/avatarCounter.tsx +2 -2
- package/src/core/primitives/avatar/avatarStack.tsx +2 -4
- package/src/core/primitives/avatar/types.ts +0 -32
- package/src/core/primitives/badge/__workshop__/index.ts +5 -3
- package/src/core/primitives/badge/__workshop__/props.tsx +1 -1
- package/src/core/primitives/badge/__workshop__/tones.tsx +3 -3
- package/src/core/primitives/badge/badge.test.tsx +2 -1
- package/src/core/primitives/badge/badge.tsx +12 -11
- package/src/core/primitives/box/__workshop__/index.ts +5 -3
- package/src/core/primitives/box/__workshop__/props.tsx +1 -1
- package/src/core/primitives/box/__workshop__/responsive.tsx +1 -1
- package/src/core/primitives/box/box.tsx +28 -32
- package/src/core/primitives/button/__workshop__/custom.tsx +5 -5
- package/src/core/primitives/button/__workshop__/customIcons.tsx +1 -1
- package/src/core/primitives/button/__workshop__/disabled.tsx +3 -3
- package/src/core/primitives/button/__workshop__/index.ts +5 -3
- package/src/core/primitives/button/__workshop__/mixedChildren.tsx +1 -1
- package/src/core/primitives/button/__workshop__/props.tsx +1 -1
- package/src/core/primitives/button/__workshop__/sanityUploadButton.tsx +1 -1
- package/src/core/primitives/button/__workshop__/stacked.tsx +1 -1
- package/src/core/primitives/button/__workshop__/styled1.tsx +1 -1
- package/src/core/primitives/button/__workshop__/styled2.tsx +1 -1
- package/src/core/primitives/button/__workshop__/textOverflow.tsx +1 -1
- package/src/core/primitives/button/__workshop__/uploadButton.tsx +1 -1
- package/src/core/primitives/button/button.test.tsx +2 -1
- package/src/core/primitives/button/button.tsx +4 -7
- package/src/core/primitives/button/types.ts +0 -20
- package/src/core/primitives/card/__workshop__/asButton.tsx +2 -2
- package/src/core/primitives/card/__workshop__/asComponent.tsx +1 -1
- package/src/core/primitives/card/__workshop__/checkered.tsx +3 -3
- package/src/core/primitives/card/__workshop__/index.ts +5 -3
- package/src/core/primitives/card/__workshop__/interactive.tsx +1 -1
- package/src/core/primitives/card/__workshop__/listNavigation.tsx +1 -1
- package/src/core/primitives/card/__workshop__/props.tsx +1 -1
- package/src/core/primitives/card/__workshop__/selected.tsx +1 -1
- package/src/core/primitives/card/__workshop__/styled.tsx +1 -1
- package/src/core/primitives/card/__workshop__/tones.tsx +3 -3
- package/src/core/primitives/card/card.tsx +4 -2
- package/src/core/primitives/card/cardContext.ts +1 -1
- package/src/core/primitives/card/cardProvider.tsx +4 -4
- package/src/core/primitives/card/types.ts +5 -19
- package/src/core/primitives/checkbox/__workshop__/example.tsx +1 -1
- package/src/core/primitives/checkbox/__workshop__/index.ts +5 -3
- package/src/core/primitives/checkbox/__workshop__/props.tsx +1 -1
- package/src/core/primitives/checkbox/__workshop__/readOnly.tsx +1 -1
- package/src/core/primitives/checkbox/__workshop__/tones.tsx +3 -3
- package/src/core/primitives/checkbox/checkbox.tsx +2 -2
- package/src/core/primitives/code/__workshop__/index.ts +5 -3
- package/src/core/primitives/code/__workshop__/opticalAlignment.tsx +1 -1
- package/src/core/primitives/code/__workshop__/props.tsx +1 -1
- package/src/core/primitives/code/code.tsx +4 -2
- package/src/core/primitives/code/refractor.tsx +1 -1
- package/src/core/primitives/container/__workshop__/example.tsx +1 -1
- package/src/core/primitives/container/__workshop__/index.ts +5 -3
- package/src/core/primitives/container/container.tsx +2 -2
- package/src/core/primitives/flex/__workshop__/example.tsx +1 -1
- package/src/core/primitives/flex/__workshop__/gap.tsx +1 -1
- package/src/core/primitives/flex/__workshop__/index.ts +5 -3
- package/src/core/primitives/flex/flex.tsx +4 -2
- package/src/core/primitives/grid/__workshop__/index.ts +5 -3
- package/src/core/primitives/grid/__workshop__/responsive.tsx +3 -3
- package/src/core/primitives/grid/grid.tsx +4 -2
- package/src/core/primitives/heading/__workshop__/index.ts +5 -3
- package/src/core/primitives/heading/__workshop__/opticalAlignment.tsx +1 -1
- package/src/core/primitives/heading/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/heading/heading.tsx +2 -4
- package/src/core/primitives/inline/__workshop__/index.ts +5 -3
- package/src/core/primitives/inline/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/inline/inline.tsx +4 -11
- package/src/core/primitives/kbd/__workshop__/index.ts +5 -3
- package/src/core/primitives/kbd/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/kbd/kbd.tsx +4 -2
- package/src/core/primitives/label/__workshop__/index.ts +5 -3
- package/src/core/primitives/label/__workshop__/opticalAlignment.tsx +1 -1
- package/src/core/primitives/label/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/label/label.tsx +2 -4
- package/src/core/primitives/layer/__workshop__/_debug.tsx +1 -1
- package/src/core/primitives/layer/__workshop__/index.ts +5 -3
- package/src/core/primitives/layer/__workshop__/multipleRoots.tsx +1 -1
- package/src/core/primitives/layer/__workshop__/nested.tsx +1 -1
- package/src/core/primitives/layer/__workshop__/responsiveZOffset.tsx +1 -1
- package/src/core/primitives/layer/layer.test.tsx +2 -1
- package/src/core/primitives/layer/layer.tsx +2 -2
- package/src/core/primitives/layer/layerCard.tsx +2 -2
- package/src/core/primitives/layer/layerContext.ts +4 -4
- package/src/core/primitives/layer/layerProvider.tsx +2 -10
- package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +2 -2
- package/src/core/primitives/popover/__workshop__/MarginsStory.tsx +1 -1
- package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +1 -1
- package/src/core/primitives/popover/__workshop__/OpenOnMountStory.tsx +1 -1
- package/src/core/primitives/popover/__workshop__/PlainStory.tsx +2 -2
- package/src/core/primitives/popover/__workshop__/RecursiveStory.tsx +3 -3
- package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +3 -3
- package/src/core/primitives/popover/__workshop__/index.ts +5 -3
- package/src/core/primitives/popover/popover.tsx +4 -9
- package/src/core/primitives/popover/popoverLayer.tsx +2 -2
- package/src/core/primitives/radio/__workshop__/example.tsx +1 -1
- package/src/core/primitives/radio/__workshop__/index.ts +5 -3
- package/src/core/primitives/radio/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/radio/radio.tsx +2 -2
- package/src/core/primitives/select/__workshop__/index.ts +5 -3
- package/src/core/primitives/select/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/select/__workshop__/readOnly.tsx +1 -1
- package/src/core/primitives/select/select.tsx +5 -15
- package/src/core/primitives/selectable/selectable.tsx +4 -4
- package/src/core/primitives/skeleton/__workshop__/delay.tsx +1 -1
- package/src/core/primitives/skeleton/__workshop__/index.ts +5 -3
- package/src/core/primitives/skeleton/__workshop__/skeleton.tsx +2 -2
- package/src/core/primitives/skeleton/codeSkeleton.tsx +2 -2
- package/src/core/primitives/skeleton/headingSkeleton.tsx +2 -2
- package/src/core/primitives/skeleton/labelSkeleton.tsx +2 -2
- package/src/core/primitives/skeleton/skeleton.tsx +2 -2
- package/src/core/primitives/skeleton/textSkeleton.tsx +2 -2
- package/src/core/primitives/spinner/__workshop__/Props.tsx +1 -1
- package/src/core/primitives/spinner/__workshop__/index.ts +5 -3
- package/src/core/primitives/spinner/animatedSpinnerIcon.tsx +2 -2
- package/src/core/primitives/spinner/spinner.tsx +2 -2
- package/src/core/primitives/srOnly/srOnly.tsx +2 -2
- package/src/core/primitives/stack/__workshop__/index.ts +5 -3
- package/src/core/primitives/stack/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/stack/stack.tsx +5 -10
- package/src/core/primitives/switch/__workshop__/example.tsx +1 -1
- package/src/core/primitives/switch/__workshop__/index.ts +5 -3
- package/src/core/primitives/switch/__workshop__/props.tsx +1 -1
- package/src/core/primitives/switch/switch.tsx +2 -2
- package/src/core/primitives/text/__workshop__/colored.tsx +1 -1
- package/src/core/primitives/text/__workshop__/example.tsx +1 -1
- package/src/core/primitives/text/__workshop__/index.ts +5 -3
- package/src/core/primitives/text/__workshop__/opticalAlignment.tsx +1 -1
- package/src/core/primitives/text/text.tsx +4 -4
- package/src/core/primitives/textArea/__workshop__/index.ts +5 -3
- package/src/core/primitives/textArea/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/textArea/textArea.tsx +5 -15
- package/src/core/primitives/textInput/__workshop__/clearButton.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/customValidity.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/index.ts +5 -3
- package/src/core/primitives/textInput/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/readOnly.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/states.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/tones.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/typed.tsx +1 -1
- package/src/core/primitives/textInput/textInput.tsx +6 -9
- package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +1 -1
- package/src/core/primitives/tooltip/__workshop__/index.ts +5 -3
- package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +1 -1
- package/src/core/primitives/tooltip/__workshop__/props.tsx +1 -1
- package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +1 -1
- package/src/core/primitives/tooltip/constants.ts +1 -1
- package/src/core/primitives/tooltip/tooltip.test.tsx +2 -4
- package/src/core/primitives/tooltip/tooltip.tsx +5 -9
- package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +4 -2
- package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +5 -3
- package/src/core/primitives/tooltip/tooltipLayer.tsx +2 -2
- package/src/core/{types/props.ts → types.ts} +27 -0
- package/src/core/utils/boundaryElement/__workshop__/index.ts +5 -3
- package/src/core/utils/boundaryElement/__workshop__/plain.tsx +1 -1
- package/src/core/utils/boundaryElement/boundaryElement.test.tsx +2 -1
- package/src/core/utils/boundaryElement/boundaryElementContext.ts +7 -4
- package/src/core/utils/boundaryElement/boundaryElementProvider.tsx +2 -2
- package/src/core/utils/elementQuery/__workshop__/customMedia.tsx +1 -1
- package/src/core/utils/elementQuery/__workshop__/index.ts +5 -3
- package/src/core/utils/elementQuery/elementQuery.tsx +2 -2
- package/src/core/utils/getElementRef.ts +1 -1
- package/src/core/utils/portal/__workshop__/index.ts +5 -3
- package/src/core/utils/portal/__workshop__/named.tsx +1 -1
- package/src/core/utils/portal/portal.test.tsx +2 -1
- package/src/core/utils/portal/portalContext.ts +5 -2
- package/src/core/utils/portal/portalProvider.tsx +5 -9
- package/src/css/_responsiveClassName.ts +2 -2
- package/src/css/_style.css.ts +1 -1
- package/src/css/components/breadcrumbs/breadcrumbs.css.ts +1 -1
- package/src/css/components/dialog/dialog.css.ts +9 -17
- package/src/css/components/menu/menu.css.ts +2 -2
- package/src/css/components/menu/menu.ts +2 -2
- package/src/css/components/skeleton/skeleton.css.ts +2 -6
- package/src/css/components/toast/toast.css.ts +2 -2
- package/src/css/components/toast/toast.ts +2 -2
- package/src/css/components/tree/tree.css.ts +1 -1
- package/src/css/components/tree/tree.ts +1 -1
- package/src/css/defaultTheme.css.ts +59 -60
- package/src/css/layers.css.ts +4 -1
- package/src/css/primitives/_arrow/_arrow.css.ts +5 -5
- package/src/css/primitives/_input/_input.css.ts +4 -4
- package/src/css/primitives/_selectable/_selectable.css.ts +4 -4
- package/src/css/primitives/_selectable/types.ts +2 -2
- package/src/css/primitives/avatar/avatar.css.ts +10 -10
- package/src/css/primitives/badge/badge.css.ts +4 -4
- package/src/css/primitives/badge/types.ts +8 -2
- package/src/css/primitives/box/box.css.ts +2 -2
- package/src/css/primitives/button/button.css.ts +6 -6
- package/src/css/primitives/button/button.ts +2 -2
- package/src/css/primitives/button/types.ts +3 -3
- package/src/css/primitives/card/__workshop__/color.tsx +9 -9
- package/src/css/primitives/card/__workshop__/index.ts +5 -3
- package/src/css/primitives/card/card.css.ts +12 -18
- package/src/css/primitives/card/types.ts +3 -3
- package/src/css/primitives/checkbox/checkbox.css.ts +3 -3
- package/src/css/primitives/checkbox/checkbox.ts +3 -3
- package/src/css/primitives/code/code.css.ts +4 -3
- package/src/css/primitives/code/types.ts +3 -4
- package/src/css/primitives/container/container.css.ts +1 -1
- package/src/css/primitives/heading/heading.css.ts +5 -4
- package/src/css/primitives/heading/types.ts +3 -6
- package/src/css/primitives/kbd/kbd.css.ts +1 -1
- package/src/css/primitives/label/label.css.ts +5 -4
- package/src/css/primitives/label/types.ts +0 -8
- package/src/css/primitives/popover/popover.css.ts +2 -2
- package/src/css/primitives/popover/popover.ts +2 -2
- package/src/css/primitives/radio/radio.css.ts +3 -3
- package/src/css/primitives/radio/radio.ts +3 -3
- package/src/css/primitives/root/root.css.ts +1 -1
- package/src/css/primitives/root/root.ts +1 -1
- package/src/css/primitives/root/types.ts +3 -3
- package/src/css/primitives/select/select.css.ts +3 -3
- package/src/css/primitives/spinner/spinner.css.ts +2 -6
- package/src/css/primitives/spinner/spinner.ts +2 -2
- package/src/css/primitives/srOnly/srOnly.css.ts +1 -1
- package/src/css/primitives/srOnly/srOnly.ts +1 -1
- package/src/css/primitives/stack/stack.css.ts +1 -1
- package/src/css/primitives/stack/stack.ts +1 -1
- package/src/css/primitives/switch/switch.css.ts +5 -5
- package/src/css/primitives/text/text.css.ts +5 -4
- package/src/css/primitives/text/types.ts +3 -5
- package/src/css/primitives/textArea/textArea.css.ts +1 -1
- package/src/css/primitives/textInput/textInput.css.ts +4 -4
- package/src/css/primitives/tooltip/tooltip.css.ts +1 -1
- package/src/css/props/alignItems/alignItems.ts +1 -1
- package/src/css/props/border/border.ts +1 -16
- package/src/css/props/boxSizing/boxSizing.css.ts +2 -1
- package/src/css/props/boxSizing/boxSizing.ts +0 -3
- package/src/css/props/display/display.ts +1 -10
- package/src/css/props/flex/flex.ts +1 -1
- package/src/css/props/flexDirection/flexDirection.ts +1 -1
- package/src/css/props/flexWrap/flexWrap.ts +1 -1
- package/src/css/props/font/font.css.ts +3 -2
- package/src/css/props/font/font.ts +1 -1
- package/src/css/props/gap/gap.ts +1 -1
- package/src/css/props/gridAutoColumns/gridAutoColumns.css.ts +2 -2
- package/src/css/props/gridAutoColumns/gridAutoColumns.ts +2 -2
- package/src/css/props/gridAutoColumns/types.ts +0 -10
- package/src/css/props/gridAutoFlow/gridAutoFlow.ts +2 -2
- package/src/css/props/gridAutoFlow/types.ts +0 -4
- package/src/css/props/gridAutoRows/gridAutoRows.ts +2 -2
- package/src/css/props/gridAutoRows/types.ts +0 -4
- package/src/css/props/gridColumn/gridColumn.ts +3 -3
- package/src/css/props/gridColumn/types.ts +0 -10
- package/src/css/props/gridColumnEnd/gridColumnEnd.ts +3 -3
- package/src/css/props/gridColumnEnd/types.ts +0 -10
- package/src/css/props/gridColumnStart/gridColumnStart.ts +3 -6
- package/src/css/props/gridColumnStart/types.ts +0 -10
- package/src/css/props/gridRow/gridRow.ts +3 -3
- package/src/css/props/gridRow/types.ts +0 -10
- package/src/css/props/gridRowEnd/gridRowEnd.ts +3 -3
- package/src/css/props/gridRowEnd/types.ts +0 -10
- package/src/css/props/gridRowStart/gridRowStart.ts +3 -3
- package/src/css/props/gridRowStart/types.ts +0 -10
- package/src/css/props/gridTemplateColumns/gridTemplateColumns.ts +2 -2
- package/src/css/props/gridTemplateColumns/types.ts +0 -10
- package/src/css/props/gridTemplateRows/gridTemplateRows.ts +2 -2
- package/src/css/props/gridTemplateRows/types.ts +0 -10
- package/src/css/props/height/height.ts +1 -1
- package/src/css/props/height/types.ts +0 -6
- package/src/css/props/inset/inset.ts +1 -1
- package/src/css/props/justifyContent/justifyContent.ts +1 -1
- package/src/css/props/margin/margin.ts +1 -1
- package/src/css/props/maxWidth/maxWidth.ts +1 -1
- package/src/css/props/minHeight/minHeight.ts +1 -1
- package/src/css/props/minWidth/minWidth.ts +1 -1
- package/src/css/props/outline/outline.ts +1 -1
- package/src/css/props/overflow/overflow.ts +1 -1
- package/src/css/props/overflow/types.ts +0 -6
- package/src/css/props/padding/padding.ts +1 -1
- package/src/css/props/pointerEvents/pointerEvents.ts +1 -1
- package/src/css/props/position/position.ts +1 -1
- package/src/css/props/radius/radius.ts +1 -1
- package/src/css/props/shadow/shadow.ts +1 -1
- package/src/css/props/textAlign/textAlign.ts +1 -1
- package/src/css/props/textOverflow/textOverflow.ts +1 -1
- package/src/css/props/width/width.ts +1 -1
- package/src/css/types.ts +225 -53
- package/src/css/util.ts +2 -2
- package/src/css/vars.css.ts +33 -36
- package/src/theme/{v3/_parseColorToken.ts → _parseColorToken.ts} +2 -2
- package/src/theme/buildTheme.ts +33 -0
- package/src/theme/constants.ts +90 -0
- package/src/theme/defaults/color.ts +197 -0
- package/src/theme/{v2/defaults/config.ts → defaults/common.ts} +3 -16
- package/src/theme/{v3/defaultFonts.ts → defaults/fonts.ts} +2 -2
- package/src/theme/index.ts +4 -5
- package/src/theme/{v3/resolveTokens.ts → resolveTokens.ts} +15 -15
- package/src/theme/types.ts +355 -15
- package/src/core/__DEV__.ts +0 -5
- package/src/core/_compat/helpers.ts +0 -72
- package/src/core/_compat/styles/_responsive.ts +0 -19
- package/src/core/_compat/theme/theme.test.tsx +0 -73
- package/src/core/_compat/theme/themeColorProvider.tsx +0 -24
- package/src/core/_compat/theme/themeContext.ts +0 -10
- package/src/core/_compat/theme/themeProvider.tsx +0 -68
- package/src/core/_compat/theme/types.ts +0 -10
- package/src/core/_compat/theme/useRootTheme.ts +0 -15
- package/src/core/_compat/theme/useTheme.ts +0 -12
- package/src/core/_compat/types.ts +0 -191
- package/src/core/hooks/useArrayProp.ts +0 -26
- package/src/core/hooks/useClickOutside.test.tsx +0 -481
- package/src/core/hooks/useClickOutside.ts +0 -113
- package/src/core/hooks/useElementRect/__workshop__/example.tsx +0 -30
- package/src/core/hooks/useElementRect/__workshop__/index.ts +0 -14
- package/src/core/hooks/useElementRect/useElementRect.ts +0 -13
- package/src/core/hooks/useForwardedRef.ts +0 -19
- package/src/core/hooks/useIsomorphicEffect.ts +0 -7
- package/src/core/primitives/badge/types.ts +0 -18
- package/src/core/primitives/box/types.ts +0 -22
- package/src/core/primitives/flex/types.ts +0 -27
- package/src/core/primitives/grid/types.ts +0 -17
- package/src/core/primitives/selectable/types.ts +0 -7
- package/src/core/primitives/types.ts +0 -153
- package/src/core/types/gridItem.ts +0 -32
- package/src/core/types/placement.ts +0 -18
- package/src/core/types/radius.ts +0 -7
- package/src/core/types/textAlign.ts +0 -7
- package/src/core/utils/spanWithTextOverflow.tsx +0 -10
- package/src/theme/getScopedTheme.ts +0 -88
- package/src/theme/v0/avatar.ts +0 -10
- package/src/theme/v0/color/_generic.ts +0 -35
- package/src/theme/v0/color/_system.ts +0 -17
- package/src/theme/v0/color/base.ts +0 -21
- package/src/theme/v0/color/button.ts +0 -42
- package/src/theme/v0/color/card.ts +0 -19
- package/src/theme/v0/color/color.ts +0 -40
- package/src/theme/v0/color/index.ts +0 -11
- package/src/theme/v0/color/input.ts +0 -34
- package/src/theme/v0/color/muted.ts +0 -26
- package/src/theme/v0/color/selectable.ts +0 -31
- package/src/theme/v0/color/solid.ts +0 -26
- package/src/theme/v0/color/spot.ts +0 -13
- package/src/theme/v0/css.ts +0 -10
- package/src/theme/v0/focusRing.ts +0 -5
- package/src/theme/v0/font.ts +0 -40
- package/src/theme/v0/index.ts +0 -10
- package/src/theme/v0/input.ts +0 -23
- package/src/theme/v0/layer.ts +0 -6
- package/src/theme/v0/shadow.ts +0 -15
- package/src/theme/v0/styles.ts +0 -13
- package/src/theme/v0/theme.ts +0 -72
- package/src/theme/v2/avatar.ts +0 -12
- package/src/theme/v2/build/_deprecated/color/_selectable/createSelectableTones.ts +0 -76
- package/src/theme/v2/build/_deprecated/color/_solid/createSolidTones.ts +0 -54
- package/src/theme/v2/build/_deprecated/color/button/createButtonModes.ts +0 -22
- package/src/theme/v2/build/_deprecated/color/button/createButtonTones.ts +0 -55
- package/src/theme/v2/build/_deprecated/color/card/createCardStates.ts +0 -60
- package/src/theme/v2/build/_deprecated/color/color.test.ts +0 -63
- package/src/theme/v2/build/_deprecated/color/defaults.ts +0 -390
- package/src/theme/v2/build/_deprecated/color/factory.ts +0 -141
- package/src/theme/v2/build/_deprecated/color/index.ts +0 -1
- package/src/theme/v2/build/_deprecated/color/input/createInputModes.ts +0 -86
- package/src/theme/v2/build/_deprecated/color/muted/createMuted.ts +0 -54
- package/src/theme/v2/build/_deprecated/color/spot/createSpot.ts +0 -20
- package/src/theme/v2/build/buildColorTheme.test.ts +0 -185
- package/src/theme/v2/build/buildColorTheme.ts +0 -494
- package/src/theme/v2/build/buildTheme.test.ts +0 -89
- package/src/theme/v2/build/buildTheme.ts +0 -37
- package/src/theme/v2/build/colorToken/colorToken.ts +0 -19
- package/src/theme/v2/build/colorToken/compileColorToken.ts +0 -21
- package/src/theme/v2/build/colorToken/index.ts +0 -2
- package/src/theme/v2/build/colorToken/types.ts +0 -6
- package/src/theme/v2/build/index.ts +0 -3
- package/src/theme/v2/build/lib/color-fns/blend/index.ts +0 -3
- package/src/theme/v2/build/lib/color-fns/blend/mix.ts +0 -21
- package/src/theme/v2/build/lib/color-fns/blend/multiply.ts +0 -18
- package/src/theme/v2/build/lib/color-fns/blend/screen.ts +0 -18
- package/src/theme/v2/build/lib/color-fns/color-fns.test.ts +0 -68
- package/src/theme/v2/build/lib/color-fns/contrastRatio.ts +0 -34
- package/src/theme/v2/build/lib/color-fns/convert.ts +0 -150
- package/src/theme/v2/build/lib/color-fns/index.ts +0 -6
- package/src/theme/v2/build/lib/color-fns/parse.ts +0 -60
- package/src/theme/v2/build/lib/color-fns/rgba.ts +0 -14
- package/src/theme/v2/build/lib/color-fns/types.ts +0 -28
- package/src/theme/v2/build/lib/isRecord.ts +0 -3
- package/src/theme/v2/build/lib/utils.ts +0 -19
- package/src/theme/v2/build/merge.ts +0 -28
- package/src/theme/v2/build/mixThemeColor.test.ts +0 -23
- package/src/theme/v2/build/mixThemeColor.ts +0 -53
- package/src/theme/v2/build/renderColorTheme.ts +0 -532
- package/src/theme/v2/build/renderColorValue.ts +0 -85
- package/src/theme/v2/build/resolveColorTokens.ts +0 -268
- package/src/theme/v2/color/_constants.ts +0 -45
- package/src/theme/v2/color/_helpers.ts +0 -24
- package/src/theme/v2/color/_system.ts +0 -38
- package/src/theme/v2/color/avatar.ts +0 -11
- package/src/theme/v2/color/badge.ts +0 -12
- package/src/theme/v2/color/button.ts +0 -11
- package/src/theme/v2/color/color.ts +0 -28
- package/src/theme/v2/color/index.ts +0 -13
- package/src/theme/v2/color/input.ts +0 -23
- package/src/theme/v2/color/kbd.ts +0 -6
- package/src/theme/v2/color/selectable.ts +0 -8
- package/src/theme/v2/color/shadow.ts +0 -7
- package/src/theme/v2/color/state.ts +0 -41
- package/src/theme/v2/color/syntax.ts +0 -39
- package/src/theme/v2/config/helpers.ts +0 -48
- package/src/theme/v2/config/index.ts +0 -4
- package/src/theme/v2/config/system.ts +0 -114
- package/src/theme/v2/config/tokens/color/index.ts +0 -1
- package/src/theme/v2/config/tokens/color/types.ts +0 -137
- package/src/theme/v2/config/tokens/index.ts +0 -3
- package/src/theme/v2/config/tokens/parseTokenValue.test.ts +0 -44
- package/src/theme/v2/config/tokens/parseTokenValue.ts +0 -133
- package/src/theme/v2/config/tokens/types.ts +0 -53
- package/src/theme/v2/config/types.ts +0 -47
- package/src/theme/v2/defaults/colorPalette.ts +0 -5
- package/src/theme/v2/defaults/colorTokens.ts +0 -648
- package/src/theme/v2/defaults/fonts.ts +0 -227
- package/src/theme/v2/index.ts +0 -6
- package/src/theme/v2/input.ts +0 -31
- package/src/theme/v2/theme.ts +0 -45
- package/src/theme/v3/_constants.ts +0 -29
- package/src/theme/v3/buildTheme_v3.ts +0 -39
- package/src/theme/v3/color/_constants.ts +0 -15
- package/src/theme/v3/color/avatar.ts +0 -14
- package/src/theme/v3/color/card.ts +0 -79
- package/src/theme/v3/color/color.ts +0 -98
- package/src/theme/v3/color/element.ts +0 -19
- package/src/theme/v3/color/index.ts +0 -7
- package/src/theme/v3/color/token.ts +0 -32
- package/src/theme/v3/color/tokens.ts +0 -5
- package/src/theme/v3/defaultTokens.ts +0 -199
- package/src/theme/v3/index.ts +0 -9
- package/src/theme/v3/palette/constants.ts +0 -15
- package/src/theme/v3/palette/index.ts +0 -2
- package/src/theme/v3/palette/types.ts +0 -7
- package/src/theme/v3/tokens.ts +0 -16
- package/src/theme/v3/types.ts +0 -133
- package/src/theme/versioning/getTheme_v2.ts +0 -58
- package/src/theme/versioning/index.ts +0 -1
- package/src/theme/versioning/is_v0.ts +0 -7
- package/src/theme/versioning/is_v2.ts +0 -7
- package/src/theme/versioning/themeColor_v0_v2.ts +0 -245
- package/src/theme/versioning/themeColor_v2_v2_9.ts +0 -49
- package/src/theme/versioning/themeColor_v3_v2.ts +0 -383
- package/src/theme/versioning/v0_v2.ts +0 -95
- package/src/theme/versioning/v2_v0.ts +0 -127
- package/src/theme/versioning/v3_v2.ts +0 -130
- /package/src/theme/{v3/merge.ts → merge.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
import { createColorTheme as createColorTheme$1, hexToRgb as hexToRgb$1, hslToRgb as hslToRgb$1, multiply as multiply$1, parseColor as parseColor$1, rgbToHex as rgbToHex$1, rgbToHsl as rgbToHsl$1, rgba as rgba$1, screen as screen$1 } from "@sanity/ui/theme";
|
|
2
|
-
import { isHTMLAnchorElement, isHTMLInputElement, isHTMLButtonElement, isHTMLSelectElement, isHTMLTextAreaElement, isHTMLElement, _isEnterToClickElement, Selectable, Text, useResponsiveProp, EMPTY_ARRAY, EMPTY_RECORD, Box, Button, Stack, Popover, TextInput, AnimatedSpinnerIcon, useClickOutsideEvent, Flex, containsOrEqualsElement, usePortal, useBoundaryElement, useLayer, useGlobalKeyDown, Card, createGlobalScopedContext, usePrefersReducedMotion, Portal, Z_OFFSETS, Layer, Grid, LayerProvider, isRecord, _getArrayProp, useCustomValidity, useDelayedState, TooltipDelayGroupContext, BoundaryElementContext, CardProvider, PortalProvider } from "./_chunks-es/_visual-editing.js";
|
|
3
|
-
import { Arrow, DEFAULT_ARROW_ELEMENT, DEFAULT_BOX_ELEMENT, DEFAULT_BUTTON_ELEMENT, DEFAULT_CARD_ELEMENT, DEFAULT_FLEX_ELEMENT, DEFAULT_GRID_ELEMENT, DEFAULT_HOTKEYS_ELEMENT, DEFAULT_KBD_ELEMENT, DEFAULT_LAYER_ELEMENT, DEFAULT_MENU_DIVIDER_ELEMENT, DEFAULT_MENU_ELEMENT, DEFAULT_MENU_GROUP_ELEMENT, DEFAULT_MENU_ITEM_ELEMENT, DEFAULT_POPOVER_ELEMENT, DEFAULT_SELECTABLE_ELEMENT, DEFAULT_SPINNER_ELEMENT, DEFAULT_STACK_ELEMENT, DEFAULT_TAB_ELEMENT, DEFAULT_TAB_LIST_ELEMENT, DEFAULT_TEXT_ELEMENT, DEFAULT_TEXT_INPUT_ELEMENT, DEFAULT_TOOLTIP_ELEMENT, Hotkeys, KBD, Menu, MenuDivider, MenuGroup, MenuItem, Spinner, Tab, TabList, ThemeColorProvider, ThemeProvider, Tooltip, _getResponsiveProp, useCard, useMatchMedia, useMediaIndex, usePrefersDark, useRootTheme, useTheme, useTheme_v2, useTooltipDelayGroup } from "./_chunks-es/_visual-editing.js";
|
|
4
1
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
5
2
|
import { ChevronDownIcon, CloseIcon, ToggleArrowRightIcon, CheckmarkIcon, RemoveIcon } from "@sanity/icons";
|
|
6
|
-
import { useReducer, useCallback, useRef, useImperativeHandle, useMemo, useEffect, cloneElement, useState, Children, isValidElement, Fragment, useContext, useSyncExternalStore, startTransition,
|
|
3
|
+
import { useReducer, useCallback, useRef, useImperativeHandle, useMemo, useEffect, cloneElement, useState, Children, isValidElement, Fragment, useContext, useSyncExternalStore, startTransition, useId, lazy, Suspense, Component } from "react";
|
|
4
|
+
import { isHTMLAnchorElement, isHTMLInputElement, isHTMLButtonElement, isHTMLSelectElement, isHTMLTextAreaElement, isHTMLElement, _isEnterToClickElement, Selectable, Text, useResponsiveProp, EMPTY_ARRAY, EMPTY_RECORD, Box, Button, Stack, Popover, TextInput, AnimatedSpinnerIcon, useClickOutsideEvent, Flex, containsOrEqualsElement, usePortal, useBoundaryElement, useLayer, useGlobalKeyDown, Card, createGlobalScopedContext, usePrefersReducedMotion, Portal, Z_OFFSETS, Layer, Grid, LayerProvider, isRecord, useCustomValidity, useDelayedState, TooltipDelayGroupContext, BoundaryElementContext, CardProvider, PortalProvider } from "./_chunks-es/_visual-editing.js";
|
|
5
|
+
import { Arrow, DEFAULT_ARROW_ELEMENT, DEFAULT_BOX_ELEMENT, DEFAULT_BUTTON_ELEMENT, DEFAULT_CARD_ELEMENT, DEFAULT_FLEX_ELEMENT, DEFAULT_GRID_ELEMENT, DEFAULT_HOTKEYS_ELEMENT, DEFAULT_KBD_ELEMENT, DEFAULT_LAYER_ELEMENT, DEFAULT_MENU_DIVIDER_ELEMENT, DEFAULT_MENU_ELEMENT, DEFAULT_MENU_GROUP_ELEMENT, DEFAULT_MENU_ITEM_ELEMENT, DEFAULT_POPOVER_ELEMENT, DEFAULT_SELECTABLE_ELEMENT, DEFAULT_SPINNER_ELEMENT, DEFAULT_STACK_ELEMENT, DEFAULT_TAB_ELEMENT, DEFAULT_TAB_LIST_ELEMENT, DEFAULT_TEXT_ELEMENT, DEFAULT_TEXT_INPUT_ELEMENT, DEFAULT_TOOLTIP_ELEMENT, Hotkeys, KBD, Menu, MenuDivider, MenuGroup, MenuItem, Spinner, Tab, TabList, Tooltip, _getArrayProp, _getResponsiveProp, useCard, useMatchMedia, useMediaIndex, usePrefersDark, useTooltipDelayGroup } from "./_chunks-es/_visual-editing.js";
|
|
7
6
|
import { c } from "react/compiler-runtime";
|
|
8
7
|
import { breadcrumbs, container as container$1, dialogCard, dialogHeader, dialogContent, dialogScrollerShadowTop, dialogScroller, dialogScrollerShadowBottom, dialogFooter, dialog, dialogContainer, toast, toastLayer, treeItem, vars, label, textOverflow, avatar, avatarArrow, avatarInitials, avatarImage, avatarImageOutline, avatarCounter, avatarStack, badge, checkbox, checkboxInput, checkboxPresentation, code, heading, radio, radioInput, radioPresentation, select, _inputElement, selectPresentation, skeleton, codeSkeleton, headingSkeleton, labelSkeleton, textSkeleton, srOnly, _switch, _switchElement, _switchPresentation, _switchTrack, _switchThumb, textArea, _inputPresentation, BREAKPOINTS, box, root } from "@sanity/ui/css";
|
|
9
|
-
import { px, rem } from "@sanity/ui/css";
|
|
10
8
|
import { motion, AnimatePresence } from "framer-motion";
|
|
11
9
|
import { ResizeObserver } from "@juggle/resize-observer";
|
|
12
|
-
const createColorTheme = createColorTheme$1, hexToRgb = hexToRgb$1, hslToRgb = hslToRgb$1, multiply = multiply$1, parseColor = parseColor$1, rgbToHex = rgbToHex$1, rgbToHsl = rgbToHsl$1, rgba = rgba$1, screen = screen$1;
|
|
13
|
-
function _responsive(media, values, callback) {
|
|
14
|
-
return (values?.map(callback) || []).map((statement, mediaIndex) => mediaIndex === 0 ? statement : {
|
|
15
|
-
[`@media screen and (min-width: ${media[mediaIndex - 1]}px)`]: statement
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
10
|
function _raf(fn) {
|
|
19
11
|
const frameId = requestAnimationFrame(fn);
|
|
20
12
|
return () => {
|
|
@@ -330,14 +322,11 @@ function Breadcrumbs(props) {
|
|
|
330
322
|
children,
|
|
331
323
|
className,
|
|
332
324
|
expandButton: expandButtonProps,
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
gapY = props.gap ?? props.space ?? 2,
|
|
325
|
+
gap = 2,
|
|
326
|
+
gapX,
|
|
327
|
+
gapY,
|
|
337
328
|
maxLength,
|
|
338
329
|
separator,
|
|
339
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
340
|
-
space: _spaceProp,
|
|
341
330
|
...rest
|
|
342
331
|
} = props, [open, setOpen] = useState(!1), expandElementRef = useRef(null), popoverElementRef = useRef(null), collapse = useCallback(() => setOpen(!1), []), expand = useCallback(() => setOpen(!0), []);
|
|
343
332
|
useClickOutsideEvent(collapse, () => [expandElementRef.current, popoverElementRef.current]);
|
|
@@ -351,7 +340,7 @@ function Breadcrumbs(props) {
|
|
|
351
340
|
}, [collapse, expand, expandButtonProps, gapY, maxLength, open, rawItems]);
|
|
352
341
|
return /* @__PURE__ */ jsx(Flex, { as, "data-ui": "Breadcrumbs", ...rest, className: breadcrumbs({
|
|
353
342
|
className
|
|
354
|
-
}), gapX, gapY, children: items.map((item, itemIndex) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
343
|
+
}), gap, gapX, gapY, children: items.map((item, itemIndex) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
355
344
|
itemIndex > 0 && /* @__PURE__ */ jsx(Box, { "aria-hidden": !0, as: "li", children: separator || /* @__PURE__ */ jsx(Text, { muted: !0, children: "/" }) }),
|
|
356
345
|
/* @__PURE__ */ jsx(Box, { as: "li", children: item })
|
|
357
346
|
] }, itemIndex)) });
|
|
@@ -472,7 +461,7 @@ function DialogCard(props) {
|
|
|
472
461
|
t19
|
|
473
462
|
] }), $[55] = as, $[56] = rest, $[57] = t12, $[58] = t18, $[59] = t19, $[60] = t20) : t20 = $[60], t20;
|
|
474
463
|
}
|
|
475
|
-
const DialogContext = createGlobalScopedContext("@sanity/ui/
|
|
464
|
+
const DialogContext = createGlobalScopedContext("@sanity/ui/v3/dialog", {
|
|
476
465
|
version: 0
|
|
477
466
|
});
|
|
478
467
|
function useDialog() {
|
|
@@ -580,49 +569,43 @@ function DialogProvider(props) {
|
|
|
580
569
|
return $[3] !== children || $[4] !== contextValue ? (t2 = /* @__PURE__ */ jsx(DialogContext.Provider, { value: contextValue, children }), $[3] = children, $[4] = contextValue, $[5] = t2) : t2 = $[5], t2;
|
|
581
570
|
}
|
|
582
571
|
function MenuButton(props) {
|
|
583
|
-
const $ = c(
|
|
572
|
+
const $ = c(57), {
|
|
584
573
|
__unstable_disableRestoreFocusOnClose: t0,
|
|
585
|
-
boundaryElement: deprecated_boundaryElement,
|
|
586
574
|
button: buttonProp,
|
|
587
575
|
id,
|
|
588
576
|
menu: menuProp,
|
|
589
577
|
onClose,
|
|
590
578
|
onOpen,
|
|
591
|
-
placement: deprecated_placement,
|
|
592
|
-
popoverScheme: deprecated_popoverScheme,
|
|
593
|
-
portal: t1,
|
|
594
579
|
popover,
|
|
595
|
-
popoverRadius: deprecated_popoverRadius,
|
|
596
|
-
preventOverflow: deprecated_preventOverflow,
|
|
597
580
|
ref: forwardedRef
|
|
598
|
-
} = props, disableRestoreFocusOnClose = t0 === void 0 ? !1 : t0,
|
|
599
|
-
let
|
|
600
|
-
$[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
601
|
-
const [menuElements, setChildMenuElements] = useState(
|
|
602
|
-
let
|
|
603
|
-
$[1] !== onOpen || $[2] !== open ? (
|
|
581
|
+
} = props, disableRestoreFocusOnClose = t0 === void 0 ? !1 : t0, [open, setOpen] = useState(!1), [shouldFocus, setShouldFocus] = useState(null), [buttonElement, setButtonElement] = useState(null);
|
|
582
|
+
let t1;
|
|
583
|
+
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[0] = t1) : t1 = $[0];
|
|
584
|
+
const [menuElements, setChildMenuElements] = useState(t1), openRef = useRef(open);
|
|
585
|
+
let t2, t3;
|
|
586
|
+
$[1] !== onOpen || $[2] !== open ? (t2 = () => {
|
|
604
587
|
onOpen && open && !openRef.current && onOpen();
|
|
605
|
-
},
|
|
606
|
-
let
|
|
607
|
-
$[5] !== onClose || $[6] !== open ? (
|
|
588
|
+
}, t3 = [onOpen, open], $[1] = onOpen, $[2] = open, $[3] = t2, $[4] = t3) : (t2 = $[3], t3 = $[4]), useEffect(t2, t3);
|
|
589
|
+
let t4, t5;
|
|
590
|
+
$[5] !== onClose || $[6] !== open ? (t4 = () => {
|
|
608
591
|
onClose && !open && openRef.current && onClose();
|
|
609
|
-
},
|
|
610
|
-
let
|
|
611
|
-
$[9] !== open ? (
|
|
592
|
+
}, t5 = [onClose, open], $[5] = onClose, $[6] = open, $[7] = t4, $[8] = t5) : (t4 = $[7], t5 = $[8]), useEffect(t4, t5);
|
|
593
|
+
let t6, t7;
|
|
594
|
+
$[9] !== open ? (t6 = () => {
|
|
612
595
|
openRef.current = open;
|
|
613
|
-
},
|
|
614
|
-
let
|
|
615
|
-
$[12] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
596
|
+
}, t7 = [open], $[9] = open, $[10] = t6, $[11] = t7) : (t6 = $[10], t7 = $[11]), useEffect(t6, t7);
|
|
597
|
+
let t8;
|
|
598
|
+
$[12] === Symbol.for("react.memo_cache_sentinel") ? (t8 = () => {
|
|
616
599
|
setOpen(_temp$4), setShouldFocus(null);
|
|
617
|
-
}, $[12] =
|
|
618
|
-
const handleButtonClick =
|
|
619
|
-
let
|
|
620
|
-
$[13] !== open ? (
|
|
600
|
+
}, $[12] = t8) : t8 = $[12];
|
|
601
|
+
const handleButtonClick = t8;
|
|
602
|
+
let t9;
|
|
603
|
+
$[13] !== open ? (t9 = (event) => {
|
|
621
604
|
open && event.preventDefault();
|
|
622
|
-
}, $[13] = open, $[14] =
|
|
623
|
-
const handleMouseDown =
|
|
624
|
-
let
|
|
625
|
-
$[15] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
605
|
+
}, $[13] = open, $[14] = t9) : t9 = $[14];
|
|
606
|
+
const handleMouseDown = t9;
|
|
607
|
+
let t10;
|
|
608
|
+
$[15] === Symbol.for("react.memo_cache_sentinel") ? (t10 = (event_0) => {
|
|
626
609
|
if (event_0.key === "ArrowDown" || event_0.key === "Enter" || event_0.key === " ") {
|
|
627
610
|
event_0.preventDefault(), setOpen(!0), setShouldFocus("first");
|
|
628
611
|
return;
|
|
@@ -631,10 +614,10 @@ function MenuButton(props) {
|
|
|
631
614
|
event_0.preventDefault(), setOpen(!0), setShouldFocus("last");
|
|
632
615
|
return;
|
|
633
616
|
}
|
|
634
|
-
}, $[15] =
|
|
635
|
-
const handleButtonKeyDown =
|
|
636
|
-
let
|
|
637
|
-
$[16] !== buttonElement || $[17] !== menuElements ? (
|
|
617
|
+
}, $[15] = t10) : t10 = $[15];
|
|
618
|
+
const handleButtonKeyDown = t10;
|
|
619
|
+
let t11;
|
|
620
|
+
$[16] !== buttonElement || $[17] !== menuElements ? (t11 = (event_1) => {
|
|
638
621
|
const target = event_1.target;
|
|
639
622
|
if (target instanceof Node && !(buttonElement && (target === buttonElement || buttonElement.contains(target)))) {
|
|
640
623
|
for (const el of menuElements)
|
|
@@ -642,15 +625,15 @@ function MenuButton(props) {
|
|
|
642
625
|
return;
|
|
643
626
|
setOpen(!1);
|
|
644
627
|
}
|
|
645
|
-
}, $[16] = buttonElement, $[17] = menuElements, $[18] =
|
|
646
|
-
const handleMenuClickOutside =
|
|
647
|
-
let
|
|
648
|
-
$[19] !== buttonElement || $[20] !== disableRestoreFocusOnClose ? (
|
|
628
|
+
}, $[16] = buttonElement, $[17] = menuElements, $[18] = t11) : t11 = $[18];
|
|
629
|
+
const handleMenuClickOutside = t11;
|
|
630
|
+
let t12;
|
|
631
|
+
$[19] !== buttonElement || $[20] !== disableRestoreFocusOnClose ? (t12 = () => {
|
|
649
632
|
setOpen(!1), !disableRestoreFocusOnClose && buttonElement && buttonElement.focus();
|
|
650
|
-
}, $[19] = buttonElement, $[20] = disableRestoreFocusOnClose, $[21] =
|
|
651
|
-
const handleMenuEscape =
|
|
652
|
-
let
|
|
653
|
-
$[22] !== menuElements ? (
|
|
633
|
+
}, $[19] = buttonElement, $[20] = disableRestoreFocusOnClose, $[21] = t12) : t12 = $[21];
|
|
634
|
+
const handleMenuEscape = t12;
|
|
635
|
+
let t13;
|
|
636
|
+
$[22] !== menuElements ? (t13 = (event_2) => {
|
|
654
637
|
const target_0 = event_2.relatedTarget;
|
|
655
638
|
if (target_0 instanceof Node) {
|
|
656
639
|
for (const el_0 of menuElements)
|
|
@@ -658,18 +641,18 @@ function MenuButton(props) {
|
|
|
658
641
|
return;
|
|
659
642
|
setOpen(!1);
|
|
660
643
|
}
|
|
661
|
-
}, $[22] = menuElements, $[23] =
|
|
662
|
-
const handleBlur =
|
|
663
|
-
let
|
|
664
|
-
$[24] !== buttonElement || $[25] !== disableRestoreFocusOnClose ? (
|
|
644
|
+
}, $[22] = menuElements, $[23] = t13) : t13 = $[23];
|
|
645
|
+
const handleBlur = t13;
|
|
646
|
+
let t14;
|
|
647
|
+
$[24] !== buttonElement || $[25] !== disableRestoreFocusOnClose ? (t14 = () => {
|
|
665
648
|
setOpen(!1), !disableRestoreFocusOnClose && buttonElement && buttonElement.focus();
|
|
666
|
-
}, $[24] = buttonElement, $[25] = disableRestoreFocusOnClose, $[26] =
|
|
667
|
-
const handleItemClick =
|
|
649
|
+
}, $[24] = buttonElement, $[25] = disableRestoreFocusOnClose, $[26] = t14) : t14 = $[26];
|
|
650
|
+
const handleItemClick = t14;
|
|
651
|
+
let t15;
|
|
652
|
+
$[27] === Symbol.for("react.memo_cache_sentinel") ? (t15 = (el_1) => (setChildMenuElements((els) => els.concat([el_1])), () => setChildMenuElements((els_0) => els_0.filter((_el) => _el !== el_1))), $[27] = t15) : t15 = $[27];
|
|
653
|
+
const registerElement = t15;
|
|
668
654
|
let t16;
|
|
669
|
-
$[
|
|
670
|
-
const registerElement = t16;
|
|
671
|
-
let t17;
|
|
672
|
-
$[28] !== buttonElement || $[29] !== handleBlur || $[30] !== handleItemClick || $[31] !== handleMenuClickOutside || $[32] !== handleMenuEscape || $[33] !== id || $[34] !== menuProp || $[35] !== shouldFocus ? (t17 = menuProp && cloneElement(menuProp, {
|
|
655
|
+
$[28] !== buttonElement || $[29] !== handleBlur || $[30] !== handleItemClick || $[31] !== handleMenuClickOutside || $[32] !== handleMenuEscape || $[33] !== id || $[34] !== menuProp || $[35] !== shouldFocus ? (t16 = menuProp && cloneElement(menuProp, {
|
|
673
656
|
"aria-labelledby": id,
|
|
674
657
|
onBlurCapture: handleBlur,
|
|
675
658
|
onClickOutside: handleMenuClickOutside,
|
|
@@ -678,17 +661,17 @@ function MenuButton(props) {
|
|
|
678
661
|
originElement: buttonElement,
|
|
679
662
|
registerElement,
|
|
680
663
|
shouldFocus
|
|
681
|
-
}), $[28] = buttonElement, $[29] = handleBlur, $[30] = handleItemClick, $[31] = handleMenuClickOutside, $[32] = handleMenuEscape, $[33] = id, $[34] = menuProp, $[35] = shouldFocus, $[36] =
|
|
682
|
-
const menu =
|
|
683
|
-
let
|
|
664
|
+
}), $[28] = buttonElement, $[29] = handleBlur, $[30] = handleItemClick, $[31] = handleMenuClickOutside, $[32] = handleMenuEscape, $[33] = id, $[34] = menuProp, $[35] = shouldFocus, $[36] = t16) : t16 = $[36];
|
|
665
|
+
const menu = t16;
|
|
666
|
+
let t17;
|
|
684
667
|
bb0: {
|
|
685
668
|
if (!buttonProp) {
|
|
686
|
-
|
|
669
|
+
t17 = null;
|
|
687
670
|
break bb0;
|
|
688
671
|
}
|
|
689
|
-
const
|
|
690
|
-
let
|
|
691
|
-
$[37] !== buttonProp || $[38] !== handleMouseDown || $[39] !== id || $[40] !== open || $[41] !==
|
|
672
|
+
const t182 = buttonProp.props.selected ?? open;
|
|
673
|
+
let t192;
|
|
674
|
+
$[37] !== buttonProp || $[38] !== handleMouseDown || $[39] !== id || $[40] !== open || $[41] !== t182 ? (t192 = cloneElement(buttonProp, {
|
|
692
675
|
"data-ui": "MenuButton",
|
|
693
676
|
id,
|
|
694
677
|
onClick: handleButtonClick,
|
|
@@ -697,30 +680,24 @@ function MenuButton(props) {
|
|
|
697
680
|
"aria-haspopup": !0,
|
|
698
681
|
"aria-expanded": open,
|
|
699
682
|
ref: setButtonElement,
|
|
700
|
-
selected:
|
|
701
|
-
}), $[37] = buttonProp, $[38] = handleMouseDown, $[39] = id, $[40] = open, $[41] =
|
|
683
|
+
selected: t182
|
|
684
|
+
}), $[37] = buttonProp, $[38] = handleMouseDown, $[39] = id, $[40] = open, $[41] = t182, $[42] = t192) : t192 = $[42], t17 = t192;
|
|
702
685
|
}
|
|
703
|
-
const button =
|
|
704
|
-
let
|
|
705
|
-
$[43] !== buttonElement ? (
|
|
706
|
-
let
|
|
707
|
-
$[46] !== popover ? (
|
|
708
|
-
let
|
|
709
|
-
$[48] !==
|
|
710
|
-
boundaryElement: deprecated_boundaryElement,
|
|
686
|
+
const button = t17;
|
|
687
|
+
let t18, t19;
|
|
688
|
+
$[43] !== buttonElement ? (t18 = () => buttonElement, t19 = [buttonElement], $[43] = buttonElement, $[44] = t18, $[45] = t19) : (t18 = $[44], t19 = $[45]), useImperativeHandle(forwardedRef, t18, t19);
|
|
689
|
+
let t20, t21;
|
|
690
|
+
$[46] !== popover ? (t21 = popover || {}, $[46] = popover, $[47] = t21) : t21 = $[47];
|
|
691
|
+
let t22;
|
|
692
|
+
$[48] !== t21 ? (t22 = {
|
|
711
693
|
overflow: "auto",
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
...t22
|
|
718
|
-
}, $[48] = deprecated_boundaryElement, $[49] = deprecated_placement, $[50] = deprecated_popoverRadius, $[51] = deprecated_popoverScheme, $[52] = deprecated_portal, $[53] = deprecated_preventOverflow, $[54] = t22, $[55] = t23) : t23 = $[55], t21 = t23;
|
|
719
|
-
const popoverProps = t21;
|
|
694
|
+
...t21
|
|
695
|
+
}, $[48] = t21, $[49] = t22) : t22 = $[49], t20 = t22;
|
|
696
|
+
const popoverProps = t20;
|
|
697
|
+
let t23;
|
|
698
|
+
$[50] !== button ? (t23 = button || /* @__PURE__ */ jsx(Fragment$1, {}), $[50] = button, $[51] = t23) : t23 = $[51];
|
|
720
699
|
let t24;
|
|
721
|
-
$[
|
|
722
|
-
let t25;
|
|
723
|
-
return $[58] !== menu || $[59] !== open || $[60] !== popoverProps || $[61] !== t24 ? (t25 = /* @__PURE__ */ jsx(Popover, { "data-ui": "MenuButton__popover", ...popoverProps, content: menu, open, children: t24 }), $[58] = menu, $[59] = open, $[60] = popoverProps, $[61] = t24, $[62] = t25) : t25 = $[62], t25;
|
|
700
|
+
return $[52] !== menu || $[53] !== open || $[54] !== popoverProps || $[55] !== t23 ? (t24 = /* @__PURE__ */ jsx(Popover, { "data-ui": "MenuButton__popover", ...popoverProps, content: menu, open, children: t23 }), $[52] = menu, $[53] = open, $[54] = popoverProps, $[55] = t23, $[56] = t24) : t24 = $[56], t24;
|
|
724
701
|
}
|
|
725
702
|
function _temp$4(v) {
|
|
726
703
|
return !v;
|
|
@@ -860,7 +837,7 @@ function _temp$3() {
|
|
|
860
837
|
return !0;
|
|
861
838
|
}
|
|
862
839
|
const subscribe = () => () => {
|
|
863
|
-
}, ToastContext = createGlobalScopedContext("@sanity/ui/
|
|
840
|
+
}, ToastContext = createGlobalScopedContext("@sanity/ui/v3/toast", null), DEFAULT_TOAST_LAYER_ELEMENT = "ul";
|
|
864
841
|
function ToastLayer(props) {
|
|
865
842
|
const $ = c(11), {
|
|
866
843
|
as: t0,
|
|
@@ -879,7 +856,7 @@ function ToastLayer(props) {
|
|
|
879
856
|
zIndex
|
|
880
857
|
}, $[1] = zIndex, $[2] = t4) : t4 = $[2];
|
|
881
858
|
let t5;
|
|
882
|
-
return $[3] !== as || $[4] !== children || $[5] !== gap || $[6] !== padding || $[7] !== paddingX || $[8] !== paddingY || $[9] !== t4 ? (t5 = /* @__PURE__ */ jsx(Grid, { as, className: t3, "data-ui": "ToastProvider", padding, paddingX, paddingY, gap,
|
|
859
|
+
return $[3] !== as || $[4] !== children || $[5] !== gap || $[6] !== padding || $[7] !== paddingX || $[8] !== paddingY || $[9] !== t4 ? (t5 = /* @__PURE__ */ jsx(Grid, { as, className: t3, "data-ui": "ToastProvider", padding, paddingX, paddingY, gap, gridTemplateColumns: 1, style: t4, children }), $[3] = as, $[4] = children, $[5] = gap, $[6] = padding, $[7] = paddingX, $[8] = paddingY, $[9] = t4, $[10] = t5) : t5 = $[10], t5;
|
|
883
860
|
}
|
|
884
861
|
let toastId = 0;
|
|
885
862
|
function generateToastId() {
|
|
@@ -1002,40 +979,39 @@ function _focusItemElement(el) {
|
|
|
1002
979
|
firstChild && firstChild instanceof HTMLElement && firstChild.focus();
|
|
1003
980
|
}
|
|
1004
981
|
}
|
|
1005
|
-
const TreeContext = createGlobalScopedContext("@sanity/ui/
|
|
982
|
+
const TreeContext = createGlobalScopedContext("@sanity/ui/v3/tree", null), DEFAULT_TREE_ELEMENT = "div";
|
|
1006
983
|
function Tree(props) {
|
|
1007
|
-
const $ = c(
|
|
1008
|
-
let children, forwardedRef,
|
|
984
|
+
const $ = c(38), t0 = props;
|
|
985
|
+
let children, forwardedRef, onFocus, rest, t1;
|
|
1009
986
|
$[0] !== t0 ? ({
|
|
1010
987
|
children,
|
|
1011
|
-
gap,
|
|
1012
|
-
space: t1,
|
|
988
|
+
gap: t1,
|
|
1013
989
|
onFocus,
|
|
1014
990
|
ref: forwardedRef,
|
|
1015
991
|
...rest
|
|
1016
|
-
} = t0, $[0] = t0, $[1] = children, $[2] = forwardedRef, $[3] =
|
|
1017
|
-
const
|
|
992
|
+
} = t0, $[0] = t0, $[1] = children, $[2] = forwardedRef, $[3] = onFocus, $[4] = rest, $[5] = t1) : (children = $[1], forwardedRef = $[2], onFocus = $[3], rest = $[4], t1 = $[5]);
|
|
993
|
+
const gap = t1 === void 0 ? 1 : t1, ref = useRef(null), [focusedElement, setFocusedElement] = useState(null), focusedElementRef = useRef(focusedElement);
|
|
1018
994
|
let t2, t3;
|
|
1019
|
-
$[
|
|
995
|
+
$[6] === Symbol.for("react.memo_cache_sentinel") ? (t3 = [], $[6] = t3) : t3 = $[6], t2 = t3;
|
|
1020
996
|
const path = t2;
|
|
1021
997
|
let t4;
|
|
1022
|
-
$[
|
|
998
|
+
$[7] === Symbol.for("react.memo_cache_sentinel") ? (t4 = [], $[7] = t4) : t4 = $[7];
|
|
1023
999
|
const [itemElements, setItemElements] = useState(t4);
|
|
1024
1000
|
let t5;
|
|
1025
|
-
$[
|
|
1001
|
+
$[8] === Symbol.for("react.memo_cache_sentinel") ? (t5 = {}, $[8] = t5) : t5 = $[8];
|
|
1026
1002
|
const [state, setState] = useState(t5), stateRef = useRef(state);
|
|
1027
1003
|
let t6;
|
|
1028
|
-
$[
|
|
1004
|
+
$[9] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => ref.current, $[9] = t6) : t6 = $[9], useImperativeHandle(forwardedRef, t6);
|
|
1029
1005
|
let t7, t8;
|
|
1030
|
-
$[
|
|
1006
|
+
$[10] !== focusedElement ? (t7 = () => {
|
|
1031
1007
|
focusedElementRef.current = focusedElement;
|
|
1032
|
-
}, t8 = [focusedElement], $[
|
|
1008
|
+
}, t8 = [focusedElement], $[10] = focusedElement, $[11] = t7, $[12] = t8) : (t7 = $[11], t8 = $[12]), useEffect(t7, t8);
|
|
1033
1009
|
let t10, t9;
|
|
1034
|
-
$[
|
|
1010
|
+
$[13] !== state ? (t9 = () => {
|
|
1035
1011
|
stateRef.current = state;
|
|
1036
|
-
}, t10 = [state], $[
|
|
1012
|
+
}, t10 = [state], $[13] = state, $[14] = t10, $[15] = t9) : (t10 = $[14], t9 = $[15]), useEffect(t9, t10);
|
|
1037
1013
|
let t11;
|
|
1038
|
-
$[
|
|
1014
|
+
$[16] === Symbol.for("react.memo_cache_sentinel") ? (t11 = (element, path_0, expanded, selected) => (setState((s) => ({
|
|
1039
1015
|
...s,
|
|
1040
1016
|
[path_0]: {
|
|
1041
1017
|
element,
|
|
@@ -1048,10 +1024,10 @@ function Tree(props) {
|
|
|
1048
1024
|
};
|
|
1049
1025
|
return delete newState[path_0], newState;
|
|
1050
1026
|
});
|
|
1051
|
-
}), $[
|
|
1027
|
+
}), $[16] = t11) : t11 = $[16];
|
|
1052
1028
|
const registerItem = t11;
|
|
1053
1029
|
let t12;
|
|
1054
|
-
$[
|
|
1030
|
+
$[17] === Symbol.for("react.memo_cache_sentinel") ? (t12 = (path_1, expanded_0) => {
|
|
1055
1031
|
setState((s_1) => {
|
|
1056
1032
|
const itemState = s_1[path_1];
|
|
1057
1033
|
return itemState ? {
|
|
@@ -1062,25 +1038,25 @@ function Tree(props) {
|
|
|
1062
1038
|
}
|
|
1063
1039
|
} : s_1;
|
|
1064
1040
|
});
|
|
1065
|
-
}, $[
|
|
1041
|
+
}, $[17] = t12) : t12 = $[17];
|
|
1066
1042
|
const setExpanded = t12;
|
|
1067
1043
|
let t13;
|
|
1068
1044
|
const t14 = focusedElement || itemElements[0] || null;
|
|
1069
1045
|
let t15;
|
|
1070
|
-
$[
|
|
1046
|
+
$[18] !== gap || $[19] !== state || $[20] !== t14 ? (t15 = {
|
|
1071
1047
|
version: 0,
|
|
1072
1048
|
focusedElement: t14,
|
|
1049
|
+
gap,
|
|
1073
1050
|
level: 0,
|
|
1074
1051
|
path,
|
|
1075
1052
|
registerItem,
|
|
1076
1053
|
setExpanded,
|
|
1077
1054
|
setFocusedElement,
|
|
1078
|
-
space,
|
|
1079
1055
|
state
|
|
1080
|
-
}, $[
|
|
1056
|
+
}, $[18] = gap, $[19] = state, $[20] = t14, $[21] = t15) : t15 = $[21], t13 = t15;
|
|
1081
1057
|
const contextValue = t13;
|
|
1082
1058
|
let t16;
|
|
1083
|
-
$[
|
|
1059
|
+
$[22] !== itemElements ? (t16 = (event) => {
|
|
1084
1060
|
if (focusedElementRef.current) {
|
|
1085
1061
|
if (event.key === "ArrowDown") {
|
|
1086
1062
|
event.preventDefault();
|
|
@@ -1139,27 +1115,26 @@ function Tree(props) {
|
|
|
1139
1115
|
return;
|
|
1140
1116
|
}
|
|
1141
1117
|
}
|
|
1142
|
-
}, $[
|
|
1118
|
+
}, $[22] = itemElements, $[23] = t16) : t16 = $[23];
|
|
1143
1119
|
const handleKeyDown = t16;
|
|
1144
1120
|
let t17;
|
|
1145
|
-
$[
|
|
1121
|
+
$[24] !== onFocus ? (t17 = (event_0) => {
|
|
1146
1122
|
setFocusedElement(event_0.target), onFocus?.(event_0);
|
|
1147
|
-
}, $[
|
|
1123
|
+
}, $[24] = onFocus, $[25] = t17) : t17 = $[25];
|
|
1148
1124
|
const handleFocus = t17;
|
|
1149
1125
|
let t18;
|
|
1150
|
-
$[
|
|
1126
|
+
$[26] === Symbol.for("react.memo_cache_sentinel") ? (t18 = () => {
|
|
1151
1127
|
if (!ref.current)
|
|
1152
1128
|
return;
|
|
1153
1129
|
const _itemElements = Array.from(ref.current.querySelectorAll('[data-ui="TreeItem"]'));
|
|
1154
1130
|
setItemElements(_itemElements);
|
|
1155
|
-
}, $[
|
|
1131
|
+
}, $[26] = t18) : t18 = $[26];
|
|
1156
1132
|
let t19;
|
|
1157
|
-
$[
|
|
1158
|
-
|
|
1133
|
+
$[27] !== children ? (t19 = [children], $[27] = children, $[28] = t19) : t19 = $[28], useEffect(t18, t19);
|
|
1134
|
+
let t20;
|
|
1135
|
+
$[29] !== children || $[30] !== gap || $[31] !== handleFocus || $[32] !== handleKeyDown || $[33] !== rest ? (t20 = /* @__PURE__ */ jsx(Stack, { as: "ul", "data-ui": "Tree", ...rest, gap, onFocus: handleFocus, onKeyDown: handleKeyDown, ref, role: "tree", children }), $[29] = children, $[30] = gap, $[31] = handleFocus, $[32] = handleKeyDown, $[33] = rest, $[34] = t20) : t20 = $[34];
|
|
1159
1136
|
let t21;
|
|
1160
|
-
|
|
1161
|
-
let t22;
|
|
1162
|
-
return $[36] !== contextValue || $[37] !== t21 ? (t22 = /* @__PURE__ */ jsx(TreeContext.Provider, { value: contextValue, children: t21 }), $[36] = contextValue, $[37] = t21, $[38] = t22) : t22 = $[38], t22;
|
|
1137
|
+
return $[35] !== contextValue || $[36] !== t20 ? (t21 = /* @__PURE__ */ jsx(TreeContext.Provider, { value: contextValue, children: t20 }), $[35] = contextValue, $[36] = t20, $[37] = t21) : t21 = $[37], t21;
|
|
1163
1138
|
}
|
|
1164
1139
|
function useTree() {
|
|
1165
1140
|
const tree = useContext(TreeContext);
|
|
@@ -1167,7 +1142,7 @@ function useTree() {
|
|
|
1167
1142
|
throw new Error("Tree: missing context value");
|
|
1168
1143
|
return tree;
|
|
1169
1144
|
}
|
|
1170
|
-
const TreeGroup =
|
|
1145
|
+
const TreeGroup = function(props) {
|
|
1171
1146
|
const $ = c(9), t0 = props;
|
|
1172
1147
|
let children, rest, t1;
|
|
1173
1148
|
$[0] !== t0 ? ({
|
|
@@ -1177,8 +1152,8 @@ const TreeGroup = memo(function(props) {
|
|
|
1177
1152
|
} = t0, $[0] = t0, $[1] = children, $[2] = rest, $[3] = t1) : (children = $[1], rest = $[2], t1 = $[3]);
|
|
1178
1153
|
const expanded = t1 === void 0 ? !1 : t1, tree = useTree(), t2 = !expanded;
|
|
1179
1154
|
let t3;
|
|
1180
|
-
return $[4] !== children || $[5] !== rest || $[6] !== t2 || $[7] !== tree.
|
|
1181
|
-
}
|
|
1155
|
+
return $[4] !== children || $[5] !== rest || $[6] !== t2 || $[7] !== tree.gap ? (t3 = /* @__PURE__ */ jsx(Stack, { as: "ul", "data-ui": "TreeGroup", ...rest, hidden: t2, marginTop: tree.gap, role: "group", gap: tree.gap, children }), $[4] = children, $[5] = rest, $[6] = t2, $[7] = tree.gap, $[8] = t3) : t3 = $[8], t3;
|
|
1156
|
+
}, DEFAULT_TREE_ITEM_ELEMENT = "a";
|
|
1182
1157
|
function TreeItem(props) {
|
|
1183
1158
|
const {
|
|
1184
1159
|
children,
|
|
@@ -1404,60 +1379,6 @@ function findScrollable(parentNode) {
|
|
|
1404
1379
|
_scrollEl = _scrollEl.parentNode;
|
|
1405
1380
|
return _scrollEl;
|
|
1406
1381
|
}
|
|
1407
|
-
function useArrayProp(val, defaultVal) {
|
|
1408
|
-
const $ = c(3);
|
|
1409
|
-
let t0;
|
|
1410
|
-
$[0] !== defaultVal || $[1] !== val ? (t0 = () => [_getArrayProp(val, defaultVal), JSON.stringify(val ?? defaultVal)], $[0] = defaultVal, $[1] = val, $[2] = t0) : t0 = $[2];
|
|
1411
|
-
const [t1, setCache] = useState(t0), [cachedVal, cachedHash] = t1, hash = JSON.stringify(val ?? defaultVal);
|
|
1412
|
-
return hash !== cachedHash && setCache([_getArrayProp(val, defaultVal), hash]), cachedVal;
|
|
1413
|
-
}
|
|
1414
|
-
function _getElements(element, elementsArg) {
|
|
1415
|
-
const ret = [element];
|
|
1416
|
-
for (const el of elementsArg)
|
|
1417
|
-
Array.isArray(el) ? ret.push(...el) : ret.push(el);
|
|
1418
|
-
return ret.filter(Boolean);
|
|
1419
|
-
}
|
|
1420
|
-
function useClickOutside(listener, t0, boundaryElement) {
|
|
1421
|
-
const $ = c(12), elementsArg = t0 === void 0 ? EMPTY_ARRAY : t0, [element, setElement] = useState(null);
|
|
1422
|
-
let t1;
|
|
1423
|
-
$[0] !== element || $[1] !== elementsArg ? (t1 = () => _getElements(element, elementsArg), $[0] = element, $[1] = elementsArg, $[2] = t1) : t1 = $[2];
|
|
1424
|
-
const [elements, setElements] = useState(t1), elementsRef = useRef(elements);
|
|
1425
|
-
let t2, t3;
|
|
1426
|
-
$[3] !== element || $[4] !== elementsArg ? (t2 = () => {
|
|
1427
|
-
const prevElements = elementsRef.current, nextElements = _getElements(element, elementsArg);
|
|
1428
|
-
if (prevElements.length !== nextElements.length) {
|
|
1429
|
-
setElements(nextElements), elementsRef.current = nextElements;
|
|
1430
|
-
return;
|
|
1431
|
-
}
|
|
1432
|
-
for (const el of prevElements)
|
|
1433
|
-
if (!nextElements.includes(el)) {
|
|
1434
|
-
setElements(nextElements), elementsRef.current = nextElements;
|
|
1435
|
-
return;
|
|
1436
|
-
}
|
|
1437
|
-
for (const el_0 of nextElements)
|
|
1438
|
-
if (!prevElements.includes(el_0)) {
|
|
1439
|
-
setElements(nextElements), elementsRef.current = nextElements;
|
|
1440
|
-
return;
|
|
1441
|
-
}
|
|
1442
|
-
}, t3 = [element, elementsArg], $[3] = element, $[4] = elementsArg, $[5] = t2, $[6] = t3) : (t2 = $[5], t3 = $[6]), useEffect(t2, t3);
|
|
1443
|
-
let t4, t5;
|
|
1444
|
-
return $[7] !== boundaryElement || $[8] !== elements || $[9] !== listener ? (t4 = () => {
|
|
1445
|
-
if (!listener)
|
|
1446
|
-
return;
|
|
1447
|
-
const handleWindowMouseDown = (evt) => {
|
|
1448
|
-
const target = evt.target;
|
|
1449
|
-
if (target instanceof Node && !(boundaryElement && !boundaryElement.contains(target))) {
|
|
1450
|
-
for (const el_1 of elements)
|
|
1451
|
-
if (target === el_1 || el_1.contains(target))
|
|
1452
|
-
return;
|
|
1453
|
-
listener(evt);
|
|
1454
|
-
}
|
|
1455
|
-
};
|
|
1456
|
-
return window.addEventListener("mousedown", handleWindowMouseDown), () => {
|
|
1457
|
-
window.removeEventListener("mousedown", handleWindowMouseDown);
|
|
1458
|
-
};
|
|
1459
|
-
}, t5 = [boundaryElement, listener, elements], $[7] = boundaryElement, $[8] = elements, $[9] = listener, $[10] = t4, $[11] = t5) : (t4 = $[10], t5 = $[11]), useEffect(t4, t5), setElement;
|
|
1460
|
-
}
|
|
1461
1382
|
const _elementSizeObserver = _createElementSizeObserver();
|
|
1462
1383
|
function _createElementRectValueListener() {
|
|
1463
1384
|
return {
|
|
@@ -1505,20 +1426,11 @@ function useElementSize(element) {
|
|
|
1505
1426
|
return _elementSizeObserver.subscribe(element, setSize);
|
|
1506
1427
|
}, t1 = [element], $[0] = element, $[1] = t0, $[2] = t1) : (t0 = $[1], t1 = $[2]), useEffect(t0, t1), size;
|
|
1507
1428
|
}
|
|
1508
|
-
function useElementRect(element) {
|
|
1509
|
-
return useElementSize(element)?._contentRect || null;
|
|
1510
|
-
}
|
|
1511
|
-
function useForwardedRef(ref) {
|
|
1512
|
-
const $ = c(1), innerRef = useRef(null);
|
|
1513
|
-
let t0;
|
|
1514
|
-
return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => innerRef.current, $[0] = t0) : t0 = $[0], useImperativeHandle(ref, t0), innerRef;
|
|
1515
|
-
}
|
|
1516
1429
|
const DEFAULT_LABEL_ELEMENT = "div";
|
|
1517
1430
|
function Label(props) {
|
|
1518
|
-
const $ = c(
|
|
1519
|
-
let
|
|
1431
|
+
const $ = c(26);
|
|
1432
|
+
let align, children, className, rest, t0, t1, t2, t3, textOverflowProp;
|
|
1520
1433
|
$[0] !== props ? ({
|
|
1521
|
-
accent,
|
|
1522
1434
|
align,
|
|
1523
1435
|
as: t0,
|
|
1524
1436
|
children,
|
|
@@ -1528,30 +1440,29 @@ function Label(props) {
|
|
|
1528
1440
|
textOverflow: textOverflowProp,
|
|
1529
1441
|
weight: t3,
|
|
1530
1442
|
...rest
|
|
1531
|
-
} = props, $[0] = props, $[1] =
|
|
1443
|
+
} = props, $[0] = props, $[1] = align, $[2] = children, $[3] = className, $[4] = rest, $[5] = t0, $[6] = t1, $[7] = t2, $[8] = t3, $[9] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], rest = $[4], t0 = $[5], t1 = $[6], t2 = $[7], t3 = $[8], textOverflowProp = $[9]);
|
|
1532
1444
|
const Element2 = t0 === void 0 ? DEFAULT_LABEL_ELEMENT : t0, muted = t1 === void 0 ? !1 : t1, size = t2 === void 0 ? 1 : t2, weight = t3 === void 0 ? "regular" : t3;
|
|
1533
1445
|
let t4;
|
|
1534
|
-
$[
|
|
1446
|
+
$[10] !== align || $[11] !== className || $[12] !== muted || $[13] !== size || $[14] !== weight ? (t4 = label({
|
|
1535
1447
|
className,
|
|
1536
|
-
accent,
|
|
1537
1448
|
align,
|
|
1538
1449
|
muted,
|
|
1539
1450
|
size,
|
|
1540
1451
|
weight
|
|
1541
|
-
}), $[
|
|
1452
|
+
}), $[10] = align, $[11] = className, $[12] = muted, $[13] = size, $[14] = weight, $[15] = t4) : t4 = $[15];
|
|
1542
1453
|
let t5;
|
|
1543
|
-
$[
|
|
1454
|
+
$[16] !== textOverflowProp ? (t5 = textOverflow({
|
|
1544
1455
|
textOverflow: textOverflowProp
|
|
1545
|
-
}), $[
|
|
1456
|
+
}), $[16] = textOverflowProp, $[17] = t5) : t5 = $[17];
|
|
1546
1457
|
let t6;
|
|
1547
|
-
$[
|
|
1458
|
+
$[18] !== children || $[19] !== t5 ? (t6 = /* @__PURE__ */ jsx("span", { className: t5, children }), $[18] = children, $[19] = t5, $[20] = t6) : t6 = $[20];
|
|
1548
1459
|
let t7;
|
|
1549
|
-
return $[
|
|
1460
|
+
return $[21] !== Element2 || $[22] !== rest || $[23] !== t4 || $[24] !== t6 ? (t7 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Label", ...rest, className: t4, children: t6 }), $[21] = Element2, $[22] = rest, $[23] = t4, $[24] = t6, $[25] = t7) : t7 = $[25], t7;
|
|
1550
1461
|
}
|
|
1551
1462
|
const DEFAULT_AVATAR_ELEMENT = "span";
|
|
1552
1463
|
function Avatar(props) {
|
|
1553
|
-
const $ = c(
|
|
1554
|
-
let __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, className, initials, onImageLoadError, rest, src, t1, t2, t3,
|
|
1464
|
+
const $ = c(50), t0 = props;
|
|
1465
|
+
let __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, className, initials, onImageLoadError, rest, src, t1, t2, t3, title;
|
|
1555
1466
|
$[0] !== t0 ? ({
|
|
1556
1467
|
__unstable_hideInnerStroke,
|
|
1557
1468
|
as: t1,
|
|
@@ -1563,56 +1474,55 @@ function Avatar(props) {
|
|
|
1563
1474
|
onImageLoadError,
|
|
1564
1475
|
arrowPosition: arrowPositionProp,
|
|
1565
1476
|
animateArrowFrom,
|
|
1566
|
-
|
|
1567
|
-
size: t4,
|
|
1477
|
+
size: t3,
|
|
1568
1478
|
...rest
|
|
1569
|
-
} = t0, $[0] = t0, $[1] = __unstable_hideInnerStroke, $[2] = animateArrowFrom, $[3] = arrowPositionProp, $[4] = className, $[5] = initials, $[6] = onImageLoadError, $[7] = rest, $[8] = src, $[9] = t1, $[10] = t2, $[11] = t3, $[12] =
|
|
1570
|
-
const Element2 = t1 === void 0 ? DEFAULT_AVATAR_ELEMENT : t1, color = t2 === void 0 ? "magenta" : t2, sizeProp =
|
|
1571
|
-
let
|
|
1572
|
-
$[
|
|
1479
|
+
} = t0, $[0] = t0, $[1] = __unstable_hideInnerStroke, $[2] = animateArrowFrom, $[3] = arrowPositionProp, $[4] = className, $[5] = initials, $[6] = onImageLoadError, $[7] = rest, $[8] = src, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = title) : (__unstable_hideInnerStroke = $[1], animateArrowFrom = $[2], arrowPositionProp = $[3], className = $[4], initials = $[5], onImageLoadError = $[6], rest = $[7], src = $[8], t1 = $[9], t2 = $[10], t3 = $[11], title = $[12]);
|
|
1480
|
+
const Element2 = t1 === void 0 ? DEFAULT_AVATAR_ELEMENT : t1, color = t2 === void 0 ? "magenta" : t2, sizeProp = t3 === void 0 ? 1 : t3, size = useResponsiveProp(sizeProp), [arrowPosition, setArrowPosition] = useState(animateArrowFrom || arrowPositionProp || "inside"), [imageError, setImageError] = useState(!1);
|
|
1481
|
+
let t4, t5;
|
|
1482
|
+
$[13] !== arrowPosition || $[14] !== arrowPositionProp ? (t4 = () => {
|
|
1573
1483
|
if (arrowPosition === arrowPositionProp)
|
|
1574
1484
|
return;
|
|
1575
1485
|
const raf = requestAnimationFrame(() => setArrowPosition(arrowPositionProp));
|
|
1576
1486
|
return () => cancelAnimationFrame(raf);
|
|
1577
|
-
},
|
|
1578
|
-
let
|
|
1579
|
-
$[
|
|
1487
|
+
}, t5 = [arrowPosition, arrowPositionProp], $[13] = arrowPosition, $[14] = arrowPositionProp, $[15] = t4, $[16] = t5) : (t4 = $[15], t5 = $[16]), useEffect(t4, t5);
|
|
1488
|
+
let t6, t7;
|
|
1489
|
+
$[17] !== src ? (t6 = () => {
|
|
1580
1490
|
src && setImageError(!1);
|
|
1581
|
-
},
|
|
1582
|
-
let
|
|
1583
|
-
$[
|
|
1491
|
+
}, t7 = [src], $[17] = src, $[18] = t6, $[19] = t7) : (t6 = $[18], t7 = $[19]), useEffect(t6, t7);
|
|
1492
|
+
let t8;
|
|
1493
|
+
$[20] !== onImageLoadError ? (t8 = () => {
|
|
1584
1494
|
setImageError(!0), onImageLoadError && onImageLoadError(new Error("Avatar: the image failed to load"));
|
|
1585
|
-
}, $[
|
|
1586
|
-
const handleImageError =
|
|
1587
|
-
let
|
|
1588
|
-
$[
|
|
1589
|
-
const initialsSize =
|
|
1590
|
-
let
|
|
1591
|
-
$[
|
|
1495
|
+
}, $[20] = onImageLoadError, $[21] = t8) : t8 = $[21];
|
|
1496
|
+
const handleImageError = t8;
|
|
1497
|
+
let t9, t10;
|
|
1498
|
+
$[22] !== size ? (t10 = Object.values(size).map(_temp$1), $[22] = size, $[23] = t10) : t10 = $[23], t9 = t10;
|
|
1499
|
+
const initialsSize = t9, t11 = __unstable_hideInnerStroke ? "" : void 0;
|
|
1500
|
+
let t12;
|
|
1501
|
+
$[24] !== className || $[25] !== color || $[26] !== sizeProp ? (t12 = avatar({
|
|
1592
1502
|
className,
|
|
1593
1503
|
color,
|
|
1594
1504
|
size: sizeProp
|
|
1595
|
-
}), $[
|
|
1596
|
-
const
|
|
1505
|
+
}), $[24] = className, $[25] = color, $[26] = sizeProp, $[27] = t12) : t12 = $[27];
|
|
1506
|
+
const t13 = imageError ? "" : void 0;
|
|
1507
|
+
let t14;
|
|
1508
|
+
$[28] === Symbol.for("react.memo_cache_sentinel") ? (t14 = avatarArrow(), $[28] = t14) : t14 = $[28];
|
|
1597
1509
|
let t15;
|
|
1598
|
-
$[29]
|
|
1510
|
+
$[29] !== color ? (t15 = /* @__PURE__ */ jsx("span", { className: t14, children: /* @__PURE__ */ jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z", fill: color }) }) }), $[29] = color, $[30] = t15) : t15 = $[30];
|
|
1599
1511
|
let t16;
|
|
1600
|
-
$[
|
|
1512
|
+
$[31] === Symbol.for("react.memo_cache_sentinel") ? (t16 = avatarInitials(), $[31] = t16) : t16 = $[31];
|
|
1601
1513
|
let t17;
|
|
1602
|
-
$[32]
|
|
1514
|
+
$[32] !== initials || $[33] !== initialsSize ? (t17 = /* @__PURE__ */ jsx(Box, { alignItems: "center", as: "span", className: t16, display: "flex", justifyContent: "center", position: "absolute", inset: 0, children: /* @__PURE__ */ jsx(Label, { align: "center", as: "span", size: initialsSize, weight: "medium", children: initials }) }), $[32] = initials, $[33] = initialsSize, $[34] = t17) : t17 = $[34];
|
|
1603
1515
|
let t18;
|
|
1604
|
-
$[
|
|
1605
|
-
let t19;
|
|
1606
|
-
$[36] !== handleImageError || $[37] !== initials || $[38] !== src ? (t19 = src && /* @__PURE__ */ jsxs(Box, { className: avatarImage(), inset: 0, position: "absolute", children: [
|
|
1516
|
+
$[35] !== handleImageError || $[36] !== initials || $[37] !== src ? (t18 = src && /* @__PURE__ */ jsxs(Box, { className: avatarImage(), inset: 0, position: "absolute", children: [
|
|
1607
1517
|
/* @__PURE__ */ jsx("img", { alt: initials, onError: handleImageError, src }),
|
|
1608
1518
|
/* @__PURE__ */ jsx("span", { className: avatarImageOutline() })
|
|
1609
|
-
] }), $[
|
|
1610
|
-
let
|
|
1611
|
-
return $[
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
] }), $[
|
|
1519
|
+
] }), $[35] = handleImageError, $[36] = initials, $[37] = src, $[38] = t18) : t18 = $[38];
|
|
1520
|
+
let t19;
|
|
1521
|
+
return $[39] !== Element2 || $[40] !== arrowPosition || $[41] !== rest || $[42] !== t11 || $[43] !== t12 || $[44] !== t13 || $[45] !== t15 || $[46] !== t17 || $[47] !== t18 || $[48] !== title ? (t19 = /* @__PURE__ */ jsxs(Element2, { "data-hide-inner-stroke": t11, "data-ui": "Avatar", ...rest, "aria-label": title, className: t12, "data-arrow-position": arrowPosition, "data-image-error": t13, title, children: [
|
|
1522
|
+
t15,
|
|
1523
|
+
t17,
|
|
1524
|
+
t18
|
|
1525
|
+
] }), $[39] = Element2, $[40] = arrowPosition, $[41] = rest, $[42] = t11, $[43] = t12, $[44] = t13, $[45] = t15, $[46] = t17, $[47] = t18, $[48] = title, $[49] = t19) : t19 = $[49], t19;
|
|
1616
1526
|
}
|
|
1617
1527
|
function _temp$1(s) {
|
|
1618
1528
|
return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
|
|
@@ -1678,28 +1588,29 @@ function AvatarStack(props) {
|
|
|
1678
1588
|
}
|
|
1679
1589
|
const DEFAULT_BADGE_ELEMENT = "span";
|
|
1680
1590
|
function Badge(props) {
|
|
1681
|
-
const $ = c(
|
|
1682
|
-
let children, className, rest, t1, t2, t3, t4, t5;
|
|
1591
|
+
const $ = c(24), t0 = props;
|
|
1592
|
+
let children, className, rest, t1, t2, t3, t4, t5, t6;
|
|
1683
1593
|
$[0] !== t0 ? ({
|
|
1684
1594
|
as: t1,
|
|
1685
1595
|
children,
|
|
1686
1596
|
className,
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1597
|
+
flex: t2,
|
|
1598
|
+
fontSize: t3,
|
|
1599
|
+
padding: t4,
|
|
1600
|
+
radius: t5,
|
|
1601
|
+
tone: t6,
|
|
1691
1602
|
...rest
|
|
1692
|
-
} = t0, $[0] = t0, $[1] = children, $[2] = className, $[3] = rest, $[4] = t1, $[5] = t2, $[6] = t3, $[7] = t4, $[8] = t5) : (children = $[1], className = $[2], rest = $[3], t1 = $[4], t2 = $[5], t3 = $[6], t4 = $[7], t5 = $[8]);
|
|
1693
|
-
const as = t1 === void 0 ? DEFAULT_BADGE_ELEMENT : t1,
|
|
1694
|
-
let
|
|
1695
|
-
$[
|
|
1603
|
+
} = t0, $[0] = t0, $[1] = children, $[2] = className, $[3] = rest, $[4] = t1, $[5] = t2, $[6] = t3, $[7] = t4, $[8] = t5, $[9] = t6) : (children = $[1], className = $[2], rest = $[3], t1 = $[4], t2 = $[5], t3 = $[6], t4 = $[7], t5 = $[8], t6 = $[9]);
|
|
1604
|
+
const as = t1 === void 0 ? DEFAULT_BADGE_ELEMENT : t1, flex = t2 === void 0 ? "none" : t2, fontSize = t3 === void 0 ? 1 : t3, padding = t4 === void 0 ? 1 : t4, radius = t5 === void 0 ? 2 : t5, tone = t6 === void 0 ? "default" : t6;
|
|
1605
|
+
let t7;
|
|
1606
|
+
$[10] !== className || $[11] !== tone ? (t7 = badge({
|
|
1696
1607
|
className,
|
|
1697
1608
|
tone
|
|
1698
|
-
}), $[
|
|
1699
|
-
let t7;
|
|
1700
|
-
$[12] !== children || $[13] !== fontSize ? (t7 = /* @__PURE__ */ jsx(Text, { size: fontSize, children }), $[12] = children, $[13] = fontSize, $[14] = t7) : t7 = $[14];
|
|
1609
|
+
}), $[10] = className, $[11] = tone, $[12] = t7) : t7 = $[12];
|
|
1701
1610
|
let t8;
|
|
1702
|
-
|
|
1611
|
+
$[13] !== children || $[14] !== fontSize ? (t8 = /* @__PURE__ */ jsx(Text, { size: fontSize, children }), $[13] = children, $[14] = fontSize, $[15] = t8) : t8 = $[15];
|
|
1612
|
+
let t9;
|
|
1613
|
+
return $[16] !== as || $[17] !== flex || $[18] !== padding || $[19] !== radius || $[20] !== rest || $[21] !== t7 || $[22] !== t8 ? (t9 = /* @__PURE__ */ jsx(Box, { "data-ui": "Badge", ...rest, as, className: t7, flex, display: "flex", maxWidth: "fill", padding, radius, width: "min", children: t8 }), $[16] = as, $[17] = flex, $[18] = padding, $[19] = radius, $[20] = rest, $[21] = t7, $[22] = t8, $[23] = t9) : t9 = $[23], t9;
|
|
1703
1614
|
}
|
|
1704
1615
|
const DEFAULT_CHECKBOX_ELEMENT = "input";
|
|
1705
1616
|
function Checkbox(props) {
|
|
@@ -1774,55 +1685,52 @@ function Code(props) {
|
|
|
1774
1685
|
}
|
|
1775
1686
|
const DEFAULT_HEADING_ELEMENT = "div";
|
|
1776
1687
|
function Heading(props) {
|
|
1777
|
-
const $ = c(
|
|
1778
|
-
let align, children, className, flex, rest, t1, t2, t3, t4,
|
|
1688
|
+
const $ = c(28), t0 = props;
|
|
1689
|
+
let align, children, className, flex, rest, t1, t2, t3, t4, textOverflowProp;
|
|
1779
1690
|
$[0] !== t0 ? ({
|
|
1780
|
-
accent: t1,
|
|
1781
1691
|
align,
|
|
1782
|
-
as:
|
|
1692
|
+
as: t1,
|
|
1783
1693
|
children,
|
|
1784
1694
|
className,
|
|
1785
1695
|
flex,
|
|
1786
|
-
muted:
|
|
1787
|
-
size:
|
|
1696
|
+
muted: t2,
|
|
1697
|
+
size: t3,
|
|
1788
1698
|
textOverflow: textOverflowProp,
|
|
1789
|
-
weight:
|
|
1699
|
+
weight: t4,
|
|
1790
1700
|
...rest
|
|
1791
|
-
} = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = rest, $[6] = t1, $[7] = t2, $[8] = t3, $[9] = t4, $[10] =
|
|
1792
|
-
const
|
|
1793
|
-
let
|
|
1794
|
-
$[
|
|
1701
|
+
} = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = rest, $[6] = t1, $[7] = t2, $[8] = t3, $[9] = t4, $[10] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], flex = $[4], rest = $[5], t1 = $[6], t2 = $[7], t3 = $[8], t4 = $[9], textOverflowProp = $[10]);
|
|
1702
|
+
const Element2 = t1 === void 0 ? DEFAULT_HEADING_ELEMENT : t1, muted = t2 === void 0 ? !1 : t2, size = t3 === void 0 ? 2 : t3, weight = t4 === void 0 ? "regular" : t4;
|
|
1703
|
+
let t5;
|
|
1704
|
+
$[11] !== align || $[12] !== className || $[13] !== flex || $[14] !== muted || $[15] !== size || $[16] !== weight ? (t5 = heading({
|
|
1795
1705
|
className,
|
|
1796
|
-
accent,
|
|
1797
1706
|
align,
|
|
1798
1707
|
flex,
|
|
1799
1708
|
muted,
|
|
1800
1709
|
size,
|
|
1801
1710
|
weight
|
|
1802
|
-
}), $[
|
|
1803
|
-
let
|
|
1804
|
-
$[
|
|
1711
|
+
}), $[11] = align, $[12] = className, $[13] = flex, $[14] = muted, $[15] = size, $[16] = weight, $[17] = t5) : t5 = $[17];
|
|
1712
|
+
let t6;
|
|
1713
|
+
$[18] !== textOverflowProp ? (t6 = textOverflow({
|
|
1805
1714
|
textOverflow: textOverflowProp
|
|
1806
|
-
}), $[
|
|
1715
|
+
}), $[18] = textOverflowProp, $[19] = t6) : t6 = $[19];
|
|
1716
|
+
let t7;
|
|
1717
|
+
$[20] !== children || $[21] !== t6 ? (t7 = /* @__PURE__ */ jsx("span", { className: t6, children }), $[20] = children, $[21] = t6, $[22] = t7) : t7 = $[22];
|
|
1807
1718
|
let t8;
|
|
1808
|
-
$[
|
|
1809
|
-
let t9;
|
|
1810
|
-
return $[25] !== Element2 || $[26] !== rest || $[27] !== t6 || $[28] !== t8 ? (t9 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Heading", ...rest, className: t6, children: t8 }), $[25] = Element2, $[26] = rest, $[27] = t6, $[28] = t8, $[29] = t9) : t9 = $[29], t9;
|
|
1719
|
+
return $[23] !== Element2 || $[24] !== rest || $[25] !== t5 || $[26] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Heading", ...rest, className: t5, children: t7 }), $[23] = Element2, $[24] = rest, $[25] = t5, $[26] = t7, $[27] = t8) : t8 = $[27], t8;
|
|
1811
1720
|
}
|
|
1812
1721
|
const DEFAULT_INLINE_ELEMENT = "div";
|
|
1813
1722
|
function Inline(props) {
|
|
1814
|
-
const $ = c(
|
|
1815
|
-
let children, gap, rest,
|
|
1723
|
+
const $ = c(10), t0 = props;
|
|
1724
|
+
let children, gap, rest, t1;
|
|
1816
1725
|
$[0] !== t0 ? ({
|
|
1817
1726
|
as: t1,
|
|
1818
1727
|
children,
|
|
1819
1728
|
gap,
|
|
1820
|
-
space,
|
|
1821
1729
|
...rest
|
|
1822
|
-
} = t0, $[0] = t0, $[1] = children, $[2] = gap, $[3] = rest, $[4] =
|
|
1823
|
-
const as = t1 === void 0 ? DEFAULT_INLINE_ELEMENT : t1
|
|
1824
|
-
let
|
|
1825
|
-
return $[
|
|
1730
|
+
} = t0, $[0] = t0, $[1] = children, $[2] = gap, $[3] = rest, $[4] = t1) : (children = $[1], gap = $[2], rest = $[3], t1 = $[4]);
|
|
1731
|
+
const as = t1 === void 0 ? DEFAULT_INLINE_ELEMENT : t1;
|
|
1732
|
+
let t2;
|
|
1733
|
+
return $[5] !== as || $[6] !== children || $[7] !== gap || $[8] !== rest ? (t2 = /* @__PURE__ */ jsx(Box, { "data-ui": "Inline", ...rest, alignItems: "center", as, display: "flex", gap, flexWrap: "wrap", children }), $[5] = as, $[6] = children, $[7] = gap, $[8] = rest, $[9] = t2) : t2 = $[9], t2;
|
|
1826
1734
|
}
|
|
1827
1735
|
const DEFAULT_RADIO_ELEMENT = "input";
|
|
1828
1736
|
function Radio(props) {
|
|
@@ -1860,8 +1768,8 @@ function Radio(props) {
|
|
|
1860
1768
|
}
|
|
1861
1769
|
const DEFAULT_SELECT_ELEMENT = "select";
|
|
1862
1770
|
function Select(props) {
|
|
1863
|
-
const $ = c(
|
|
1864
|
-
let children, customValidity, disabled, forwardedRef,
|
|
1771
|
+
const $ = c(37), t0 = props;
|
|
1772
|
+
let children, customValidity, disabled, forwardedRef, readOnly, rest, t1, t2, t3, t4, t5, t6;
|
|
1865
1773
|
$[0] !== t0 ? ({
|
|
1866
1774
|
as: t1,
|
|
1867
1775
|
border: t2,
|
|
@@ -1869,44 +1777,42 @@ function Select(props) {
|
|
|
1869
1777
|
customValidity,
|
|
1870
1778
|
disabled,
|
|
1871
1779
|
fontSize: t3,
|
|
1872
|
-
gap,
|
|
1873
|
-
padding:
|
|
1874
|
-
radius:
|
|
1780
|
+
gap: t4,
|
|
1781
|
+
padding: t5,
|
|
1782
|
+
radius: t6,
|
|
1875
1783
|
readOnly,
|
|
1876
1784
|
ref: forwardedRef,
|
|
1877
|
-
space: t6,
|
|
1878
1785
|
...rest
|
|
1879
|
-
} = t0, $[0] = t0, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = forwardedRef, $[5] =
|
|
1880
|
-
const Element2 = t1 === void 0 ? DEFAULT_SELECT_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, fontSize = t3 === void 0 ? 2 : t3,
|
|
1786
|
+
} = t0, $[0] = t0, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = forwardedRef, $[5] = readOnly, $[6] = rest, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = t4, $[11] = t5, $[12] = t6) : (children = $[1], customValidity = $[2], disabled = $[3], forwardedRef = $[4], readOnly = $[5], rest = $[6], t1 = $[7], t2 = $[8], t3 = $[9], t4 = $[10], t5 = $[11], t6 = $[12]);
|
|
1787
|
+
const Element2 = t1 === void 0 ? DEFAULT_SELECT_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, fontSize = t3 === void 0 ? 2 : t3, gap = t4 === void 0 ? 2 : t4, padding = t5 === void 0 ? 3 : t5, radius = t6 === void 0 ? 1 : t6, ref = useRef(null);
|
|
1881
1788
|
let t7;
|
|
1882
|
-
$[
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
$[15] !== border || $[16] !== fontSize || $[17] !== padding || $[18] !== radius || $[19] !== t8 ? (t9 = select({
|
|
1789
|
+
$[13] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[13] = t7) : t7 = $[13], useImperativeHandle(forwardedRef, t7), useCustomValidity(ref, customValidity);
|
|
1790
|
+
let t8;
|
|
1791
|
+
$[14] !== border || $[15] !== fontSize || $[16] !== gap || $[17] !== padding || $[18] !== radius ? (t8 = select({
|
|
1886
1792
|
border,
|
|
1887
1793
|
fontSize,
|
|
1794
|
+
gap,
|
|
1888
1795
|
padding,
|
|
1889
|
-
radius
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1796
|
+
radius
|
|
1797
|
+
}), $[14] = border, $[15] = fontSize, $[16] = gap, $[17] = padding, $[18] = radius, $[19] = t8) : t8 = $[19];
|
|
1798
|
+
let t9;
|
|
1799
|
+
$[20] === Symbol.for("react.memo_cache_sentinel") ? (t9 = _inputElement(), $[20] = t9) : t9 = $[20];
|
|
1800
|
+
const t10 = disabled || readOnly;
|
|
1801
|
+
let t11;
|
|
1802
|
+
$[21] !== Element2 || $[22] !== children || $[23] !== rest || $[24] !== t10 ? (t11 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t9, disabled: t10, ref, children }), $[21] = Element2, $[22] = children, $[23] = rest, $[24] = t10, $[25] = t11) : t11 = $[25];
|
|
1895
1803
|
let t12;
|
|
1896
|
-
$[
|
|
1804
|
+
$[26] === Symbol.for("react.memo_cache_sentinel") ? (t12 = selectPresentation(), $[26] = t12) : t12 = $[26];
|
|
1897
1805
|
let t13;
|
|
1898
|
-
$[27] === Symbol.for("react.memo_cache_sentinel") ? (t13 =
|
|
1806
|
+
$[27] === Symbol.for("react.memo_cache_sentinel") ? (t13 = /* @__PURE__ */ jsx(ChevronDownIcon, {}), $[27] = t13) : t13 = $[27];
|
|
1899
1807
|
let t14;
|
|
1900
|
-
$[28]
|
|
1808
|
+
$[28] !== fontSize ? (t14 = /* @__PURE__ */ jsx(Text, { size: fontSize, children: t13 }), $[28] = fontSize, $[29] = t14) : t14 = $[29];
|
|
1901
1809
|
let t15;
|
|
1902
|
-
$[
|
|
1810
|
+
$[30] !== padding || $[31] !== t14 ? (t15 = /* @__PURE__ */ jsx("span", { className: t12, children: /* @__PURE__ */ jsx(Box, { as: "span", display: "inline-block", padding, children: t14 }) }), $[30] = padding, $[31] = t14, $[32] = t15) : t15 = $[32];
|
|
1903
1811
|
let t16;
|
|
1904
|
-
$[
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
t16
|
|
1909
|
-
] }), $[34] = t12, $[35] = t16, $[36] = t9, $[37] = t17) : t17 = $[37], t17;
|
|
1812
|
+
return $[33] !== t11 || $[34] !== t15 || $[35] !== t8 ? (t16 = /* @__PURE__ */ jsxs("div", { "data-ui": "Select", className: t8, "data-icon-right": "", children: [
|
|
1813
|
+
t11,
|
|
1814
|
+
t15
|
|
1815
|
+
] }), $[33] = t11, $[34] = t15, $[35] = t8, $[36] = t16) : t16 = $[36], t16;
|
|
1910
1816
|
}
|
|
1911
1817
|
const DEFAULT_SKELETON_ELEMENT = "div";
|
|
1912
1818
|
function Skeleton(props) {
|
|
@@ -2074,8 +1980,8 @@ function Switch(props) {
|
|
|
2074
1980
|
}
|
|
2075
1981
|
const DEFAULT_TEXT_AREA_ELEMENT = "textarea";
|
|
2076
1982
|
function TextArea(props) {
|
|
2077
|
-
const $ = c(
|
|
2078
|
-
let __unstable_disableFocusRing, customValidity, forwardedRef,
|
|
1983
|
+
const $ = c(33), t0 = props;
|
|
1984
|
+
let __unstable_disableFocusRing, customValidity, forwardedRef, readOnly, rest, t1, t2, t3, t4, t5, t6, t7;
|
|
2079
1985
|
$[0] !== t0 ? ({
|
|
2080
1986
|
__unstable_disableFocusRing,
|
|
2081
1987
|
as: t1,
|
|
@@ -2083,39 +1989,37 @@ function TextArea(props) {
|
|
|
2083
1989
|
customValidity,
|
|
2084
1990
|
disabled: t3,
|
|
2085
1991
|
fontSize: t4,
|
|
2086
|
-
gap,
|
|
2087
|
-
padding:
|
|
2088
|
-
radius:
|
|
1992
|
+
gap: t5,
|
|
1993
|
+
padding: t6,
|
|
1994
|
+
radius: t7,
|
|
2089
1995
|
readOnly,
|
|
2090
1996
|
ref: forwardedRef,
|
|
2091
|
-
space: t7,
|
|
2092
1997
|
...rest
|
|
2093
|
-
} = t0, $[0] = t0, $[1] = __unstable_disableFocusRing, $[2] = customValidity, $[3] = forwardedRef, $[4] =
|
|
2094
|
-
const Element2 = t1 === void 0 ? DEFAULT_TEXT_AREA_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, disabled = t3 === void 0 ? !1 : t3, fontSize = t4 === void 0 ? 2 : t4,
|
|
1998
|
+
} = t0, $[0] = t0, $[1] = __unstable_disableFocusRing, $[2] = customValidity, $[3] = forwardedRef, $[4] = readOnly, $[5] = rest, $[6] = t1, $[7] = t2, $[8] = t3, $[9] = t4, $[10] = t5, $[11] = t6, $[12] = t7) : (__unstable_disableFocusRing = $[1], customValidity = $[2], forwardedRef = $[3], readOnly = $[4], rest = $[5], t1 = $[6], t2 = $[7], t3 = $[8], t4 = $[9], t5 = $[10], t6 = $[11], t7 = $[12]);
|
|
1999
|
+
const Element2 = t1 === void 0 ? DEFAULT_TEXT_AREA_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, disabled = t3 === void 0 ? !1 : t3, fontSize = t4 === void 0 ? 2 : t4, gap = t5 === void 0 ? 3 : t5, padding = t6 === void 0 ? 3 : t6, radius = t7 === void 0 ? 2 : t7, ref = useRef(null);
|
|
2095
2000
|
let t8;
|
|
2096
|
-
$[
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
$[15] !== border || $[16] !== fontSize || $[17] !== padding || $[18] !== radius || $[19] !== t9 ? (t10 = textArea({
|
|
2001
|
+
$[13] === Symbol.for("react.memo_cache_sentinel") ? (t8 = () => ref.current, $[13] = t8) : t8 = $[13], useImperativeHandle(forwardedRef, t8), useCustomValidity(ref, customValidity);
|
|
2002
|
+
let t9;
|
|
2003
|
+
$[14] !== border || $[15] !== fontSize || $[16] !== gap || $[17] !== padding || $[18] !== radius ? (t9 = textArea({
|
|
2100
2004
|
border,
|
|
2101
2005
|
fontSize,
|
|
2102
2006
|
padding,
|
|
2103
2007
|
radius,
|
|
2104
|
-
gap
|
|
2105
|
-
}), $[
|
|
2106
|
-
const
|
|
2107
|
-
let
|
|
2108
|
-
$[
|
|
2109
|
-
const
|
|
2008
|
+
gap
|
|
2009
|
+
}), $[14] = border, $[15] = fontSize, $[16] = gap, $[17] = padding, $[18] = radius, $[19] = t9) : t9 = $[19];
|
|
2010
|
+
const t10 = customValidity ? "" : void 0, t11 = !disabled && readOnly ? "" : void 0;
|
|
2011
|
+
let t12;
|
|
2012
|
+
$[20] === Symbol.for("react.memo_cache_sentinel") ? (t12 = _inputElement(), $[20] = t12) : t12 = $[20];
|
|
2013
|
+
const t13 = __unstable_disableFocusRing ? "" : void 0;
|
|
2014
|
+
let t14;
|
|
2015
|
+
$[21] !== Element2 || $[22] !== disabled || $[23] !== readOnly || $[24] !== rest || $[25] !== t13 ? (t14 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t12, "data-no-focus-ring": t13, disabled, readOnly, ref }), $[21] = Element2, $[22] = disabled, $[23] = readOnly, $[24] = rest, $[25] = t13, $[26] = t14) : t14 = $[26];
|
|
2110
2016
|
let t15;
|
|
2111
|
-
$[
|
|
2017
|
+
$[27] === Symbol.for("react.memo_cache_sentinel") ? (t15 = /* @__PURE__ */ jsx("span", { className: _inputPresentation() }), $[27] = t15) : t15 = $[27];
|
|
2112
2018
|
let t16;
|
|
2113
|
-
$[28]
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
t16
|
|
2118
|
-
] }), $[29] = t10, $[30] = t11, $[31] = t12, $[32] = t15, $[33] = t17) : t17 = $[33], t17;
|
|
2019
|
+
return $[28] !== t10 || $[29] !== t11 || $[30] !== t14 || $[31] !== t9 ? (t16 = /* @__PURE__ */ jsxs("span", { className: t9, "data-invalid": t10, "data-read-only": t11, "data-ui": "TextArea", children: [
|
|
2020
|
+
t14,
|
|
2021
|
+
t15
|
|
2022
|
+
] }), $[28] = t10, $[29] = t11, $[30] = t14, $[31] = t9, $[32] = t16) : t16 = $[32], t16;
|
|
2119
2023
|
}
|
|
2120
2024
|
function TooltipDelayGroupProvider(props) {
|
|
2121
2025
|
const $ = c(9), {
|
|
@@ -2401,8 +2305,6 @@ export {
|
|
|
2401
2305
|
TextArea,
|
|
2402
2306
|
TextInput,
|
|
2403
2307
|
TextSkeleton,
|
|
2404
|
-
ThemeColorProvider,
|
|
2405
|
-
ThemeProvider,
|
|
2406
2308
|
Toast,
|
|
2407
2309
|
ToastProvider,
|
|
2408
2310
|
Tooltip,
|
|
@@ -2420,14 +2322,10 @@ export {
|
|
|
2420
2322
|
_isScrollable,
|
|
2421
2323
|
_raf,
|
|
2422
2324
|
_raf2,
|
|
2423
|
-
_responsive,
|
|
2424
2325
|
attemptFocus,
|
|
2425
2326
|
containsOrEqualsElement,
|
|
2426
|
-
createColorTheme,
|
|
2427
2327
|
focusFirstDescendant,
|
|
2428
2328
|
focusLastDescendant,
|
|
2429
|
-
hexToRgb,
|
|
2430
|
-
hslToRgb,
|
|
2431
2329
|
isFocusable,
|
|
2432
2330
|
isHTMLAnchorElement,
|
|
2433
2331
|
isHTMLButtonElement,
|
|
@@ -2435,24 +2333,12 @@ export {
|
|
|
2435
2333
|
isHTMLInputElement,
|
|
2436
2334
|
isHTMLSelectElement,
|
|
2437
2335
|
isHTMLTextAreaElement,
|
|
2438
|
-
multiply,
|
|
2439
|
-
parseColor,
|
|
2440
|
-
px,
|
|
2441
|
-
rem,
|
|
2442
|
-
rgbToHex,
|
|
2443
|
-
rgbToHsl,
|
|
2444
|
-
rgba,
|
|
2445
|
-
screen,
|
|
2446
|
-
useArrayProp,
|
|
2447
2336
|
useBoundaryElement,
|
|
2448
2337
|
useCard,
|
|
2449
|
-
useClickOutside,
|
|
2450
2338
|
useClickOutsideEvent,
|
|
2451
2339
|
useCustomValidity,
|
|
2452
2340
|
useDialog,
|
|
2453
|
-
useElementRect,
|
|
2454
2341
|
useElementSize,
|
|
2455
|
-
useForwardedRef,
|
|
2456
2342
|
useGlobalKeyDown,
|
|
2457
2343
|
useLayer,
|
|
2458
2344
|
useMatchMedia,
|
|
@@ -2461,9 +2347,6 @@ export {
|
|
|
2461
2347
|
usePrefersDark,
|
|
2462
2348
|
usePrefersReducedMotion,
|
|
2463
2349
|
useResponsiveProp,
|
|
2464
|
-
useRootTheme,
|
|
2465
|
-
useTheme,
|
|
2466
|
-
useTheme_v2,
|
|
2467
2350
|
useToast,
|
|
2468
2351
|
useTooltipDelayGroup,
|
|
2469
2352
|
useTree
|