@sanity/ui 3.0.0-static.10 → 3.0.0-static.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks-cjs/_visual-editing.js +207 -286
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-cjs/buildCommand.js +1 -1
- package/dist/_chunks-cjs/buildCommand.js.map +1 -1
- package/dist/_chunks-cjs/refractor.js.map +1 -1
- package/dist/_chunks-cjs/v3_v2.js +251 -0
- package/dist/_chunks-cjs/v3_v2.js.map +1 -0
- package/dist/_chunks-es/_visual-editing.mjs +210 -289
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_chunks-es/refractor.mjs.map +1 -1
- package/dist/_chunks-es/v3_v2.mjs +252 -0
- package/dist/_chunks-es/v3_v2.mjs.map +1 -0
- package/dist/_visual-editing.d.mts +12 -17
- package/dist/_visual-editing.d.ts +12 -17
- package/dist/cli.js +1 -1
- package/dist/css.d.mts +1089 -427
- package/dist/css.d.ts +1089 -427
- package/dist/css.js +2384 -2550
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +2385 -2551
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +14 -46
- package/dist/index.d.ts +14 -46
- package/dist/index.js +31 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -22
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-palette.css +9 -1
- package/dist/sanity-theme.css +1 -1
- package/dist/system.css +3569 -23230
- package/dist/theme.d.mts +122 -88
- package/dist/theme.d.ts +122 -88
- package/dist/theme.js +217 -430
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +200 -411
- package/dist/theme.mjs.map +1 -1
- package/exports/_visual-editing.ts +27 -27
- package/exports/index.ts +1 -1
- package/package.json +40 -40
- package/src/cli/buildCommand.ts +2 -2
- package/src/{ui → core}/StyleTags.tsx +1 -1
- package/src/core/_compat/theme/themeContext.ts +10 -0
- package/src/{ui → core}/_compat/theme/themeProvider.tsx +3 -15
- package/src/{ui → core}/_compat/types.ts +1 -11
- package/src/{ui → core}/components/autocomplete/__workshop__/async.tsx +1 -1
- package/src/{ui → core}/components/autocomplete/__workshop__/constrainedHeight.tsx +13 -6
- package/src/{ui → core}/components/autocomplete/__workshop__/fullscreen.tsx +4 -3
- package/src/{ui → core}/components/autocomplete/autocomplete.tsx +10 -4
- package/src/{ui → core}/components/dialog/dialog.tsx +4 -3
- package/src/{ui → core}/components/hotkeys/hotkeys.tsx +10 -8
- package/src/{ui → core}/components/toast/toast.tsx +1 -0
- package/src/{ui → core}/constants.ts +0 -6
- package/src/core/hooks/useMatchMedia.ts +46 -0
- package/src/{ui → core}/hooks/useMediaIndex/useMediaIndex.ts +4 -4
- package/src/{ui → core}/primitives/box/box.tsx +1 -9
- package/src/{ui → core}/primitives/button/button.tsx +12 -14
- package/src/{ui → core}/primitives/card/card.tsx +19 -35
- package/src/core/primitives/card/index.ts +2 -0
- package/src/core/primitives/card/types.ts +12 -0
- package/src/{ui → core}/primitives/code/code.tsx +1 -1
- package/src/{ui → core}/primitives/heading/heading.tsx +1 -1
- package/src/{ui → core}/primitives/kbd/kbd.tsx +2 -2
- package/src/{ui → core}/primitives/popover/__workshop__/OpenOnMountStory.tsx +1 -1
- package/src/{ui → core}/primitives/popover/__workshop__/SidePanelStory.tsx +3 -7
- package/src/{ui → core}/primitives/popover/popover.tsx +70 -9
- package/src/{ui → core}/primitives/popover/popoverCard.tsx +38 -51
- package/src/{ui → core}/primitives/select/select.tsx +3 -3
- package/src/{ui → core}/primitives/stack/stack.tsx +5 -10
- package/src/{ui → core}/primitives/text/text.tsx +1 -1
- package/src/{ui → core}/primitives/textInput/textInput.tsx +1 -1
- package/src/{ui → core}/primitives/tooltip/tooltip.test.tsx +2 -2
- package/src/{ui → core}/primitives/tooltip/tooltip.tsx +3 -2
- package/src/{ui → core}/utils/layer/layerProvider.tsx +1 -1
- package/src/{ui → core}/utils/portal/portal.ts +2 -15
- package/src/{ui → core}/utils/virtualList/virtualList.tsx +1 -2
- package/src/css/_resp.ts +5 -12
- package/src/css/compile/compilePalette.ts +41 -8
- package/src/css/compile/compileRule.ts +1 -8
- package/src/css/compile/compileRules.test.ts +0 -1
- package/src/css/compile/compileRules.ts +3 -6
- package/src/css/compile/compileSystem.ts +3 -6
- package/src/css/compile/compileTheme_v3.ts +55 -46
- package/src/css/components/breadcrumbs/breadcrumbs.ts +2 -2
- package/src/css/components/dialog/dialog.ts +8 -9
- package/src/css/components/dialog/rules.ts +0 -2
- package/src/css/components/menu/menu.ts +3 -3
- package/src/css/components/skeleton/rules.ts +0 -1
- package/src/css/components/skeleton/skeleton.ts +7 -7
- package/src/css/components/skeleton/types.ts +1 -1
- package/src/css/components/toast/rules.ts +0 -1
- package/src/css/components/toast/toast.ts +6 -6
- package/src/css/components/tree/tree.ts +2 -2
- package/src/css/composeClassNames.ts +5 -9
- package/src/css/index.ts +2 -3
- package/src/css/primitives/_arrow/_arrow.ts +6 -6
- package/src/css/primitives/_arrow/{_arrow.style.ts → rules.ts} +5 -7
- package/src/css/primitives/_input/input.ts +12 -12
- package/src/css/primitives/_input/{_input.style.ts → rules.ts} +20 -19
- package/src/css/primitives/_input/types.ts +1 -1
- package/src/css/primitives/_selectable/_contants.ts +1 -1
- package/src/css/primitives/_selectable/{_selectable.style.ts → rules.ts} +3 -6
- package/src/css/primitives/_selectable/selectable.ts +3 -3
- package/src/css/primitives/_selectable/types.ts +1 -1
- package/src/css/primitives/avatar/avatar.ts +7 -7
- package/src/css/primitives/badge/badge.ts +3 -3
- package/src/css/primitives/badge/rules.ts +22 -0
- package/src/css/primitives/badge/types.ts +1 -1
- package/src/css/primitives/box/box.ts +6 -10
- package/src/css/primitives/box/rules.ts +28 -0
- package/src/css/primitives/box/types.ts +7 -5
- package/src/css/primitives/button/_constants.ts +1 -1
- package/src/css/primitives/button/button.ts +3 -3
- package/src/css/primitives/button/rules.ts +10 -19
- package/src/css/primitives/card/_constants.ts +2 -2
- package/src/css/primitives/card/card.ts +6 -4
- package/src/css/primitives/card/rules.ts +471 -0
- package/src/css/primitives/card/types.ts +2 -1
- package/src/css/primitives/checkbox/checkbox.ts +3 -3
- package/src/css/primitives/code/code.ts +3 -3
- package/src/css/primitives/code/types.ts +1 -1
- package/src/css/primitives/container/container.ts +3 -3
- package/src/css/primitives/heading/heading.ts +5 -5
- package/src/css/primitives/heading/types.ts +1 -1
- package/src/css/primitives/kbd/kbd.ts +3 -3
- package/src/css/primitives/kbd/types.ts +1 -1
- package/src/css/primitives/label/label.ts +3 -3
- package/src/css/primitives/label/types.ts +1 -1
- package/src/css/primitives/popover/popover.ts +2 -6
- package/src/css/primitives/radio/radio.ts +2 -2
- package/src/css/primitives/select/select.ts +2 -3
- package/src/css/primitives/spinner/rules.ts +0 -1
- package/src/css/primitives/spinner/spinner.ts +3 -3
- package/src/css/primitives/switch/switch.ts +6 -6
- package/src/css/primitives/text/text.ts +3 -3
- package/src/css/primitives/text/types.ts +1 -1
- package/src/css/primitives/textArea/textArea.ts +1 -2
- package/src/css/primitives/textInput/textInput.ts +2 -2
- package/src/css/primitives/tooltip/tooltip.ts +3 -3
- package/src/css/rules.ts +113 -0
- package/src/css/styles/border/border.ts +22 -0
- package/src/css/styles/border/rules.ts +24 -0
- package/src/css/styles/display/rules.ts +62 -0
- package/src/css/styles/flex/flex.ts +20 -0
- package/src/css/styles/flex/rules.ts +28 -0
- package/src/css/{aspects → styles}/flexItem/flexItem.ts +1 -1
- package/src/css/styles/flexItem/rules.ts +12 -0
- package/src/css/{aspects → styles}/flexItem/types.ts +1 -17
- package/src/css/{aspects → styles}/font/font.ts +7 -2
- package/src/css/{aspects/font/font.style.ts → styles/font/rules.ts} +25 -28
- package/src/css/styles/gap/rules.ts +34 -0
- package/src/css/{aspects → styles}/grid/grid.ts +2 -2
- package/src/css/styles/grid/rules.ts +146 -0
- package/src/css/{aspects → styles}/grid/types.ts +2 -2
- package/src/css/styles/gridItem/rules.ts +96 -0
- package/src/css/{aspects → styles}/index.ts +0 -2
- package/src/css/styles/inset/rules.ts +16 -0
- package/src/css/styles/margin/rules.ts +64 -0
- package/src/css/styles/maxWidth/rules.ts +13 -0
- package/src/css/{aspects → styles}/maxWidth/types.ts +1 -1
- package/src/css/styles/outline/rules.ts +7 -0
- package/src/css/styles/overflow/rules.ts +9 -0
- package/src/css/styles/padding/rules.ts +62 -0
- package/src/css/styles/pointerEvents/rules.ts +11 -0
- package/src/css/{aspects → styles}/position/position.ts +1 -1
- package/src/css/styles/position/rules.ts +24 -0
- package/src/css/styles/radius/rules.ts +13 -0
- package/src/css/{aspects → styles}/radius/types.ts +1 -1
- package/src/css/styles/shadow/rules.ts +53 -0
- package/src/css/styles/textOverflow/rules.ts +17 -0
- package/src/css/styles/textOverflow/textOverflow.ts +6 -0
- package/src/css/{aspects → styles}/width/rules.ts +0 -1
- package/src/css/{aspects → styles}/width/types.ts +1 -1
- package/src/css/types.ts +253 -311
- package/src/css/utils/srOnly/rules.ts +11 -0
- package/src/css/varNames.ts +81 -128
- package/src/css/vars.ts +76 -122
- package/src/theme/_constants.ts +1 -1
- package/src/theme/_types.ts +2 -2
- package/src/theme/build/buildTheme.ts +2 -2
- package/src/theme/defaults/colorTokens.ts +2 -2
- package/src/theme/defaults/config.ts +1 -1
- package/src/theme/defaults/fonts.ts +4 -4
- package/src/theme/palette/constants.ts +3 -1
- package/src/theme/palette/types.ts +12 -0
- package/src/theme/v3/buildTheme_v3.ts +2 -1
- package/src/theme/v3/color/buildColor_v3.ts +38 -43
- package/src/theme/v3/color/card.ts +38 -43
- package/src/theme/v3/color/color.ts +38 -42
- package/src/theme/v3/defaults.ts +72 -69
- package/src/theme/v3/resolveTokens.ts +38 -43
- package/src/theme/v3/types.ts +3 -0
- package/src/theme/versioning/themeColor_v3_v2.ts +1 -1
- package/src/css/_comp.test.ts +0 -7
- package/src/css/_comp.ts +0 -11
- package/src/css/_mergeStyles.ts +0 -31
- package/src/css/_responsiveRule.ts +0 -38
- package/src/css/aspects/border/border.style.ts +0 -13
- package/src/css/aspects/border/border.ts +0 -14
- package/src/css/aspects/display/display.style.ts +0 -34
- package/src/css/aspects/flex/flex.style.ts +0 -30
- package/src/css/aspects/flex/flex.ts +0 -13
- package/src/css/aspects/flex/flexAlign.style.ts +0 -12
- package/src/css/aspects/flex/flexDirection.style.ts +0 -11
- package/src/css/aspects/flex/flexJustify.style.ts +0 -13
- package/src/css/aspects/flex/flexWrap.style.ts +0 -10
- package/src/css/aspects/flexItem/flex.style.ts +0 -22
- package/src/css/aspects/gap/gap.style.ts +0 -21
- package/src/css/aspects/grid/gridAutoColumns.style.ts +0 -11
- package/src/css/aspects/grid/gridAutoFlow.style.ts +0 -11
- package/src/css/aspects/grid/gridAutoRows.style.ts +0 -11
- package/src/css/aspects/grid/gridColumns.style.ts +0 -18
- package/src/css/aspects/grid/gridRows.style.ts +0 -18
- package/src/css/aspects/gridItem/gridColumn.style.ts +0 -20
- package/src/css/aspects/gridItem/gridColumnEnd.style.ts +0 -20
- package/src/css/aspects/gridItem/gridColumnStart.style.ts +0 -20
- package/src/css/aspects/gridItem/gridRow.style.ts +0 -20
- package/src/css/aspects/gridItem/gridRowEnd.style.ts +0 -20
- package/src/css/aspects/gridItem/gridRowStart.style.ts +0 -20
- package/src/css/aspects/height/height.style.ts +0 -9
- package/src/css/aspects/height/height.ts +0 -17
- package/src/css/aspects/height/index.ts +0 -1
- package/src/css/aspects/inset/inset.style.ts +0 -12
- package/src/css/aspects/margin/margin.style.ts +0 -46
- package/src/css/aspects/maxWidth/maxWidth.style.ts +0 -16
- package/src/css/aspects/minWidth/index.ts +0 -2
- package/src/css/aspects/minWidth/minWidth.style.ts +0 -13
- package/src/css/aspects/minWidth/minWidth.ts +0 -6
- package/src/css/aspects/minWidth/types.ts +0 -7
- package/src/css/aspects/outline/outline.style.ts +0 -9
- package/src/css/aspects/overflow/overflow.style.ts +0 -11
- package/src/css/aspects/padding/padding.style.ts +0 -46
- package/src/css/aspects/pointerEvents/pointerEvents.style.ts +0 -13
- package/src/css/aspects/position/position.style.ts +0 -12
- package/src/css/aspects/radius/radius.style.ts +0 -16
- package/src/css/aspects/shadow/shadow.style.ts +0 -49
- package/src/css/aspects/textOverflow/textOverflow.style.ts +0 -21
- package/src/css/aspects/textOverflow/textOverflow.ts +0 -6
- package/src/css/aspects/width/width.style.ts +0 -11
- package/src/css/compile/compileStyle.ts +0 -148
- package/src/css/components/breadcrumbs/breadcrumbs.style.ts +0 -9
- package/src/css/components/dialog/dialog.style.ts +0 -79
- package/src/css/components/menu/menu.style.ts +0 -17
- package/src/css/components/skeleton/skeleton.style.ts +0 -96
- package/src/css/components/toast/toast.style.ts +0 -20
- package/src/css/components/tree/tree.style.ts +0 -55
- package/src/css/constants.ts +0 -1
- package/src/css/primitives/_input/__workshop__/customInput.tsx +0 -16
- package/src/css/primitives/_input/__workshop__/index.ts +0 -14
- package/src/css/primitives/avatar/avatar.style.ts +0 -175
- package/src/css/primitives/badge/badge.style.ts +0 -22
- package/src/css/primitives/box/box.style.ts +0 -31
- package/src/css/primitives/button/button.style.ts +0 -201
- package/src/css/primitives/card/card.style.ts +0 -270
- package/src/css/primitives/checkbox/checkbox.style.ts +0 -154
- package/src/css/primitives/code/code.style.ts +0 -62
- package/src/css/primitives/container/container.style.ts +0 -10
- package/src/css/primitives/heading/heading.style.ts +0 -47
- package/src/css/primitives/kbd/kbd.style.ts +0 -22
- package/src/css/primitives/label/label.style.ts +0 -48
- package/src/css/primitives/popover/popover.style.ts +0 -5
- package/src/css/primitives/radio/radio.style.ts +0 -123
- package/src/css/primitives/select/select.style.ts +0 -24
- package/src/css/primitives/spinner/spinner.style.ts +0 -22
- package/src/css/primitives/stack/stack.style.ts +0 -9
- package/src/css/primitives/stack/stack.ts +0 -6
- package/src/css/primitives/switch/switch.style.ts +0 -94
- package/src/css/primitives/text/text.style.ts +0 -64
- package/src/css/primitives/textArea/textArea.style.ts +0 -9
- package/src/css/primitives/textInput/textInput.style.ts +0 -167
- package/src/css/primitives/token/token.style.ts +0 -49
- package/src/css/primitives/tooltip/tooltip.style.ts +0 -21
- package/src/css/scopeClassName.ts +0 -6
- package/src/css/system.style.ts +0 -158
- package/src/css/utils/srOnly/srOnly.style.ts +0 -14
- package/src/ui/_compat/theme/themeContext.ts +0 -10
- package/src/ui/hooks/useMatchMedia.ts +0 -28
- package/src/ui/primitives/card/cardContext.ts +0 -10
- package/src/ui/primitives/card/cardProvider.tsx +0 -19
- package/src/ui/primitives/card/index.ts +0 -4
- package/src/ui/primitives/card/types.ts +0 -27
- package/src/ui/primitives/card/useCard.ts +0 -7
- package/src/ui/primitives/stack/index.ts +0 -1
- /package/src/{ui → core}/_compat/index.ts +0 -0
- /package/src/{ui → core}/_compat/styles/_responsive.ts +0 -0
- /package/src/{ui → core}/_compat/styles/index.ts +0 -0
- /package/src/{ui → core}/_compat/theme/index.ts +0 -0
- /package/src/{ui → core}/_compat/theme/theme.test.tsx +0 -0
- /package/src/{ui → core}/_compat/theme/themeColorProvider.tsx +0 -0
- /package/src/{ui → core}/_compat/theme/types.ts +0 -0
- /package/src/{ui → core}/_compat/theme/useRootTheme.ts +0 -0
- /package/src/{ui → core}/_compat/theme/useTheme.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/__mocks__/apiStore.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/__mocks__/countries.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/__workshop__/custom.tsx +0 -0
- /package/src/{ui → core}/components/autocomplete/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/components/autocomplete/__workshop__/focusAndBlur.tsx +0 -0
- /package/src/{ui → core}/components/autocomplete/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/__workshop__/types.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/autocompleteOption.tsx +0 -0
- /package/src/{ui → core}/components/autocomplete/autocompleteReducer.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/constants.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/index.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/types.ts +0 -0
- /package/src/{ui → core}/components/breadcrumbs/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/components/breadcrumbs/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/breadcrumbs/breadcrumbs.tsx +0 -0
- /package/src/{ui → core}/components/breadcrumbs/index.ts +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/activate.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/autoFocus.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/layering.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/nested.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/onScroll.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/panes.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/position.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/provider.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/wrapped.tsx +0 -0
- /package/src/{ui → core}/components/dialog/dialogContext.ts +0 -0
- /package/src/{ui → core}/components/dialog/dialogProvider.tsx +0 -0
- /package/src/{ui → core}/components/dialog/index.ts +0 -0
- /package/src/{ui → core}/components/dialog/useDialog.ts +0 -0
- /package/src/{ui → core}/components/hotkeys/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/hotkeys/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/components/hotkeys/index.ts +0 -0
- /package/src/{ui → core}/components/index.ts +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/asComponent.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/avatarMenu.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/closableMenuButton.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/constrainedInBoundary.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/customMenuItem.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/customSelectedState.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/disableFocusOnClose.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/groups.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/menuButton.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/menuGroupRight.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/nestedMenu.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/onCloseMenuButton.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/selectedItem.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/shouldFocus.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/tones.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/withoutArrow.tsx +0 -0
- /package/src/{ui → core}/components/menu/helpers.ts +0 -0
- /package/src/{ui → core}/components/menu/index.ts +0 -0
- /package/src/{ui → core}/components/menu/menu.test.tsx +0 -0
- /package/src/{ui → core}/components/menu/menu.tsx +0 -0
- /package/src/{ui → core}/components/menu/menuButton.tsx +0 -0
- /package/src/{ui → core}/components/menu/menuContext.ts +0 -0
- /package/src/{ui → core}/components/menu/menuDivider.tsx +0 -0
- /package/src/{ui → core}/components/menu/menuGroup.tsx +0 -0
- /package/src/{ui → core}/components/menu/menuItem.tsx +0 -0
- /package/src/{ui → core}/components/menu/useMenu.ts +0 -0
- /package/src/{ui → core}/components/menu/useMenuController.ts +0 -0
- /package/src/{ui → core}/components/skeleton/__workshop__/delay.tsx +0 -0
- /package/src/{ui → core}/components/skeleton/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/skeleton/__workshop__/skeleton.tsx +0 -0
- /package/src/{ui → core}/components/skeleton/index.ts +0 -0
- /package/src/{ui → core}/components/skeleton/skeleton.tsx +0 -0
- /package/src/{ui → core}/components/skeleton/textSkeleton.tsx +0 -0
- /package/src/{ui → core}/components/tab/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/components/tab/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/tab/index.ts +0 -0
- /package/src/{ui → core}/components/tab/tab.tsx +0 -0
- /package/src/{ui → core}/components/tab/tabList.tsx +0 -0
- /package/src/{ui → core}/components/tab/tabPanel.tsx +0 -0
- /package/src/{ui → core}/components/toast/__workshop__/hook.tsx +0 -0
- /package/src/{ui → core}/components/toast/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/toast/__workshop__/toast.tsx +0 -0
- /package/src/{ui → core}/components/toast/index.ts +0 -0
- /package/src/{ui → core}/components/toast/toast.test.tsx +0 -0
- /package/src/{ui → core}/components/toast/toastContext.ts +0 -0
- /package/src/{ui → core}/components/toast/toastLayer.tsx +0 -0
- /package/src/{ui → core}/components/toast/toastProvider.tsx +0 -0
- /package/src/{ui → core}/components/toast/toastState.ts +0 -0
- /package/src/{ui → core}/components/toast/types.ts +0 -0
- /package/src/{ui → core}/components/toast/useToast.ts +0 -0
- /package/src/{ui → core}/components/tree/__workshop__/basic.perf.ts +0 -0
- /package/src/{ui → core}/components/tree/__workshop__/basic.tsx +0 -0
- /package/src/{ui → core}/components/tree/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/tree/__workshop__/tabFromElement.tsx +0 -0
- /package/src/{ui → core}/components/tree/helpers.ts +0 -0
- /package/src/{ui → core}/components/tree/index.ts +0 -0
- /package/src/{ui → core}/components/tree/tree.tsx +0 -0
- /package/src/{ui → core}/components/tree/treeContext.ts +0 -0
- /package/src/{ui → core}/components/tree/treeGroup.tsx +0 -0
- /package/src/{ui → core}/components/tree/treeItem.tsx +0 -0
- /package/src/{ui → core}/components/tree/types.ts +0 -0
- /package/src/{ui → core}/components/tree/useTree.ts +0 -0
- /package/src/{ui → core}/global.ts +0 -0
- /package/src/{ui → core}/helpers/animation.ts +0 -0
- /package/src/{ui → core}/helpers/element.ts +0 -0
- /package/src/{ui → core}/helpers/focus.ts +0 -0
- /package/src/{ui → core}/helpers/index.ts +0 -0
- /package/src/{ui → core}/helpers/props.ts +0 -0
- /package/src/{ui → core}/helpers/scroll.ts +0 -0
- /package/src/{ui → core}/hooks/index.ts +0 -0
- /package/src/{ui → core}/hooks/useArrayProp.ts +0 -0
- /package/src/{ui → core}/hooks/useClickOutside.test.tsx +0 -0
- /package/src/{ui → core}/hooks/useClickOutside.ts +0 -0
- /package/src/{ui → core}/hooks/useClickOutsideEvent.test.tsx +0 -0
- /package/src/{ui → core}/hooks/useClickOutsideEvent.ts +0 -0
- /package/src/{ui → core}/hooks/useCustomValidity.ts +0 -0
- /package/src/{ui → core}/hooks/useDelayed.test.ts +0 -0
- /package/src/{ui → core}/hooks/useDelayedState.ts +0 -0
- /package/src/{ui → core}/hooks/useElementRect/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/hooks/useElementRect/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/hooks/useElementRect/index.ts +0 -0
- /package/src/{ui → core}/hooks/useElementRect/useElementRect.ts +0 -0
- /package/src/{ui → core}/hooks/useElementSize.ts +0 -0
- /package/src/{ui → core}/hooks/useForwardedRef.ts +0 -0
- /package/src/{ui → core}/hooks/useGlobalKeyDown.ts +0 -0
- /package/src/{ui → core}/hooks/useIsomorphicEffect.ts +0 -0
- /package/src/{ui → core}/hooks/useMediaIndex/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/hooks/useMediaIndex/__workshop__/test.tsx +0 -0
- /package/src/{ui → core}/hooks/useMediaIndex/index.ts +0 -0
- /package/src/{ui → core}/hooks/useMediaIndex/useMediaIndex.test.tsx +0 -0
- /package/src/{ui → core}/hooks/useMounted.ts +0 -0
- /package/src/{ui → core}/hooks/usePrefersDark.hydration.test.tsx +0 -0
- /package/src/{ui → core}/hooks/usePrefersDark.test.tsx +0 -0
- /package/src/{ui → core}/hooks/usePrefersDark.ts +0 -0
- /package/src/{ui → core}/hooks/usePrefersReducedMotion.hydration.test.tsx +0 -0
- /package/src/{ui → core}/hooks/usePrefersReducedMotion.test.tsx +0 -0
- /package/src/{ui → core}/hooks/usePrefersReducedMotion.ts +0 -0
- /package/src/{ui → core}/index.ts +0 -0
- /package/src/{ui → core}/lib/createGlobalScopedContext.ts +0 -0
- /package/src/{ui → core}/lib/globalScope.ts +0 -0
- /package/src/{ui → core}/lib/isRecord.ts +0 -0
- /package/src/{ui → core}/middleware/origin.ts +0 -0
- /package/src/{ui → core}/observers/elementSizeObserver.ts +0 -0
- /package/src/{ui → core}/observers/index.ts +0 -0
- /package/src/{ui → core}/observers/resizeObserver.ts +0 -0
- /package/src/{ui → core}/primitives/_selectable/index.ts +0 -0
- /package/src/{ui → core}/primitives/_selectable/selectable.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/__workshop__/asButton.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/avatar/__workshop__/stack.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/__workshop__/withinButton.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/__workshop__/withinMenuItem.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/avatar.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/avatarCounter.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/avatarStack.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/index.ts +0 -0
- /package/src/{ui → core}/primitives/avatar/types.ts +0 -0
- /package/src/{ui → core}/primitives/badge/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/badge/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/badge/__workshop__/tones.tsx +0 -0
- /package/src/{ui → core}/primitives/badge/badge.test.tsx +0 -0
- /package/src/{ui → core}/primitives/badge/badge.tsx +0 -0
- /package/src/{ui → core}/primitives/badge/index.ts +0 -0
- /package/src/{ui → core}/primitives/badge/types.ts +0 -0
- /package/src/{ui → core}/primitives/box/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/box/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/box/__workshop__/responsive.tsx +0 -0
- /package/src/{ui → core}/primitives/box/index.ts +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/custom.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/customIcons.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/disabled.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/mixedChildren.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/sanityUploadButton.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/stacked.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/styled1.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/styled2.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/uploadButton.tsx +0 -0
- /package/src/{ui → core}/primitives/button/button.test.tsx +0 -0
- /package/src/{ui → core}/primitives/button/index.ts +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/allTones.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/asButton.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/asComponent.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/checkered.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/interactive.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/listNavigation.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/selected.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/styled.tsx +0 -0
- /package/src/{ui → core}/primitives/checkbox/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/primitives/checkbox/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/checkbox/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/checkbox/__workshop__/readOnly.tsx +0 -0
- /package/src/{ui → core}/primitives/checkbox/__workshop__/tones.tsx +0 -0
- /package/src/{ui → core}/primitives/checkbox/checkbox.tsx +0 -0
- /package/src/{ui → core}/primitives/checkbox/index.ts +0 -0
- /package/src/{ui → core}/primitives/code/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/code/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{ui → core}/primitives/code/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/code/index.ts +0 -0
- /package/src/{ui → core}/primitives/code/refractor.tsx +0 -0
- /package/src/{ui → core}/primitives/container/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/primitives/container/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/container/container.tsx +0 -0
- /package/src/{ui → core}/primitives/container/index.ts +0 -0
- /package/src/{ui → core}/primitives/container/types.ts +0 -0
- /package/src/{ui → core}/primitives/flex/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/primitives/flex/__workshop__/gap.tsx +0 -0
- /package/src/{ui → core}/primitives/flex/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/flex/flex.tsx +0 -0
- /package/src/{ui → core}/primitives/flex/index.ts +0 -0
- /package/src/{ui → core}/primitives/grid/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/grid/__workshop__/responsive.tsx +0 -0
- /package/src/{ui → core}/primitives/grid/grid.tsx +0 -0
- /package/src/{ui → core}/primitives/grid/index.ts +0 -0
- /package/src/{ui → core}/primitives/heading/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/heading/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{ui → core}/primitives/heading/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/heading/index.ts +0 -0
- /package/src/{ui → core}/primitives/index.ts +0 -0
- /package/src/{ui → core}/primitives/inline/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/inline/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/inline/index.ts +0 -0
- /package/src/{ui → core}/primitives/inline/inline.tsx +0 -0
- /package/src/{ui → core}/primitives/inline/types.ts +0 -0
- /package/src/{ui → core}/primitives/kbd/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/kbd/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/kbd/index.ts +0 -0
- /package/src/{ui → core}/primitives/label/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/label/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{ui → core}/primitives/label/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/label/index.ts +0 -0
- /package/src/{ui → core}/primitives/label/label.tsx +0 -0
- /package/src/{ui → core}/primitives/popover/__workshop__/AlignedStory.tsx +0 -0
- /package/src/{ui → core}/primitives/popover/__workshop__/MarginsStory.tsx +0 -0
- /package/src/{ui → core}/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -0
- /package/src/{ui → core}/primitives/popover/__workshop__/PlainStory.tsx +0 -0
- /package/src/{ui → core}/primitives/popover/__workshop__/RecursiveStory.tsx +0 -0
- /package/src/{ui → core}/primitives/popover/__workshop__/TestStory.tsx +0 -0
- /package/src/{ui → core}/primitives/popover/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/popover/constants.ts +0 -0
- /package/src/{ui → core}/primitives/popover/floating-ui/size.ts +0 -0
- /package/src/{ui → core}/primitives/popover/helpers.ts +0 -0
- /package/src/{ui → core}/primitives/popover/index.ts +0 -0
- /package/src/{ui → core}/primitives/popover/types.ts +0 -0
- /package/src/{ui → core}/primitives/radio/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/primitives/radio/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/radio/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/radio/index.ts +0 -0
- /package/src/{ui → core}/primitives/radio/radio.tsx +0 -0
- /package/src/{ui → core}/primitives/select/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/select/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/select/__workshop__/readOnly.tsx +0 -0
- /package/src/{ui → core}/primitives/select/index.ts +0 -0
- /package/src/{ui → core}/primitives/spinner/__workshop__/Props.tsx +0 -0
- /package/src/{ui → core}/primitives/spinner/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/spinner/animatedSpinnerIcon.tsx +0 -0
- /package/src/{ui → core}/primitives/spinner/index.ts +0 -0
- /package/src/{ui → core}/primitives/spinner/spinner.tsx +0 -0
- /package/src/{ui → core}/primitives/stack/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/stack/__workshop__/plain.tsx +0 -0
- /package/src/{css → core}/primitives/stack/index.ts +0 -0
- /package/src/{ui → core}/primitives/switch/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/primitives/switch/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/switch/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/switch/index.ts +0 -0
- /package/src/{ui → core}/primitives/switch/switch.tsx +0 -0
- /package/src/{ui → core}/primitives/text/__workshop__/colored.tsx +0 -0
- /package/src/{ui → core}/primitives/text/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/primitives/text/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/text/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{ui → core}/primitives/text/index.ts +0 -0
- /package/src/{ui → core}/primitives/textArea/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/textArea/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/textArea/index.ts +0 -0
- /package/src/{ui → core}/primitives/textArea/textArea.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/clearButton.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/customValidity.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/readOnly.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/states.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/tones.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/typed.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/index.ts +0 -0
- /package/src/{ui → core}/primitives/tooltip/__workshop__/customPortal.tsx +0 -0
- /package/src/{ui → core}/primitives/tooltip/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/tooltip/__workshop__/overflowingBoundary.tsx +0 -0
- /package/src/{ui → core}/primitives/tooltip/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/tooltip/__workshop__/resizableBoundary.tsx +0 -0
- /package/src/{ui → core}/primitives/tooltip/constants.ts +0 -0
- /package/src/{ui → core}/primitives/tooltip/index.ts +0 -0
- /package/src/{ui → core}/primitives/tooltip/tooltipCard.tsx +0 -0
- /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/index.ts +0 -0
- /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
- /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -0
- /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/types.ts +0 -0
- /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -0
- /package/src/{ui → core}/primitives/types.ts +0 -0
- /package/src/{ui → core}/types/avatar.ts +0 -0
- /package/src/{ui → core}/types/badge.ts +0 -0
- /package/src/{ui → core}/types/box.ts +0 -0
- /package/src/{ui → core}/types/button.ts +0 -0
- /package/src/{ui → core}/types/card.ts +0 -0
- /package/src/{ui → core}/types/dialog.ts +0 -0
- /package/src/{ui → core}/types/flex.ts +0 -0
- /package/src/{ui → core}/types/grid.ts +0 -0
- /package/src/{ui → core}/types/gridItem.ts +0 -0
- /package/src/{ui → core}/types/index.ts +0 -0
- /package/src/{ui → core}/types/placement.ts +0 -0
- /package/src/{ui → core}/types/popover.ts +0 -0
- /package/src/{ui → core}/types/props.ts +0 -0
- /package/src/{ui → core}/types/radius.ts +0 -0
- /package/src/{ui → core}/types/selectable.ts +0 -0
- /package/src/{ui → core}/types/text.ts +0 -0
- /package/src/{ui → core}/utils/arrow/arrow.tsx +0 -0
- /package/src/{ui → core}/utils/arrow/cmds.ts +0 -0
- /package/src/{ui → core}/utils/arrow/index.ts +0 -0
- /package/src/{ui → core}/utils/boundaryElement/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/utils/boundaryElement/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/utils/boundaryElement/boundaryElement.test.tsx +0 -0
- /package/src/{ui → core}/utils/boundaryElement/boundaryElementContext.ts +0 -0
- /package/src/{ui → core}/utils/boundaryElement/boundaryElementProvider.tsx +0 -0
- /package/src/{ui → core}/utils/boundaryElement/index.ts +0 -0
- /package/src/{ui → core}/utils/boundaryElement/types.ts +0 -0
- /package/src/{ui → core}/utils/boundaryElement/useBoundaryElement.ts +0 -0
- /package/src/{ui → core}/utils/conditionalWrapper/conditionalWrapper.tsx +0 -0
- /package/src/{ui → core}/utils/conditionalWrapper/index.ts +0 -0
- /package/src/{ui → core}/utils/elementQuery/__workshop__/customMedia.tsx +0 -0
- /package/src/{ui → core}/utils/elementQuery/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/utils/elementQuery/elementQuery.tsx +0 -0
- /package/src/{ui → core}/utils/elementQuery/helpers.ts +0 -0
- /package/src/{ui → core}/utils/elementQuery/index.ts +0 -0
- /package/src/{ui → core}/utils/errorBoundary.tsx +0 -0
- /package/src/{ui → core}/utils/getElementRef.ts +0 -0
- /package/src/{ui → core}/utils/index.ts +0 -0
- /package/src/{ui → core}/utils/layer/__workshop__/_debug.tsx +0 -0
- /package/src/{ui → core}/utils/layer/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/utils/layer/__workshop__/multipleRoots.tsx +0 -0
- /package/src/{ui → core}/utils/layer/__workshop__/nested.tsx +0 -0
- /package/src/{ui → core}/utils/layer/__workshop__/responsiveZOffset.tsx +0 -0
- /package/src/{ui → core}/utils/layer/getLayerContext.test.ts +0 -0
- /package/src/{ui → core}/utils/layer/getLayerContext.ts +0 -0
- /package/src/{ui → core}/utils/layer/index.ts +0 -0
- /package/src/{ui → core}/utils/layer/layer.test.tsx +0 -0
- /package/src/{ui → core}/utils/layer/layer.tsx +0 -0
- /package/src/{ui → core}/utils/layer/layerContext.ts +0 -0
- /package/src/{ui → core}/utils/layer/types.ts +0 -0
- /package/src/{ui → core}/utils/layer/useLayer.ts +0 -0
- /package/src/{ui → core}/utils/portal/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/utils/portal/__workshop__/named.tsx +0 -0
- /package/src/{ui → core}/utils/portal/index.ts +0 -0
- /package/src/{ui → core}/utils/portal/portal.test.tsx +0 -0
- /package/src/{ui → core}/utils/portal/portalContext.ts +0 -0
- /package/src/{ui → core}/utils/portal/portalProvider.tsx +0 -0
- /package/src/{ui → core}/utils/portal/types.ts +0 -0
- /package/src/{ui → core}/utils/portal/usePortal.ts +0 -0
- /package/src/{ui → core}/utils/spanWithTextOverflow.tsx +0 -0
- /package/src/{ui → core}/utils/srOnly/index.ts +0 -0
- /package/src/{ui → core}/utils/srOnly/srOnly.tsx +0 -0
- /package/src/{ui → core}/utils/virtualList/__workshop__/changingProps.tsx +0 -0
- /package/src/{ui → core}/utils/virtualList/__workshop__/elementScroll.tsx +0 -0
- /package/src/{ui → core}/utils/virtualList/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/utils/virtualList/__workshop__/infiniteList.tsx +0 -0
- /package/src/{ui → core}/utils/virtualList/__workshop__/windowScrolll.tsx +0 -0
- /package/src/{ui → core}/utils/virtualList/index.ts +0 -0
- /package/src/css/{aspects → styles}/border/index.ts +0 -0
- /package/src/css/{aspects → styles}/border/types.ts +0 -0
- /package/src/css/{aspects → styles}/display/display.ts +0 -0
- /package/src/css/{aspects → styles}/display/index.ts +0 -0
- /package/src/css/{aspects → styles}/display/types.ts +0 -0
- /package/src/css/{aspects → styles}/flex/index.ts +0 -0
- /package/src/css/{aspects → styles}/flex/types.ts +0 -0
- /package/src/css/{aspects → styles}/flexItem/index.ts +0 -0
- /package/src/css/{aspects → styles}/font/index.ts +0 -0
- /package/src/css/{aspects → styles}/font/types.ts +0 -0
- /package/src/css/{aspects → styles}/gap/gap.ts +0 -0
- /package/src/css/{aspects → styles}/gap/index.ts +0 -0
- /package/src/css/{aspects → styles}/gap/types.ts +0 -0
- /package/src/css/{aspects → styles}/grid/index.ts +0 -0
- /package/src/css/{aspects → styles}/gridItem/gridItem.ts +0 -0
- /package/src/css/{aspects → styles}/gridItem/index.ts +0 -0
- /package/src/css/{aspects → styles}/gridItem/types.ts +0 -0
- /package/src/css/{aspects → styles}/height/rules.ts +0 -0
- /package/src/css/{aspects → styles}/inset/index.ts +0 -0
- /package/src/css/{aspects → styles}/inset/inset.ts +0 -0
- /package/src/css/{aspects → styles}/inset/types.ts +0 -0
- /package/src/css/{aspects → styles}/margin/index.ts +0 -0
- /package/src/css/{aspects → styles}/margin/margin.ts +0 -0
- /package/src/css/{aspects → styles}/margin/types.ts +0 -0
- /package/src/css/{aspects → styles}/maxWidth/index.ts +0 -0
- /package/src/css/{aspects → styles}/maxWidth/maxWidth.ts +0 -0
- /package/src/css/{aspects → styles}/overflow/index.ts +0 -0
- /package/src/css/{aspects → styles}/overflow/overflow.ts +0 -0
- /package/src/css/{aspects → styles}/overflow/types.ts +0 -0
- /package/src/css/{aspects → styles}/padding/index.ts +0 -0
- /package/src/css/{aspects → styles}/padding/padding.ts +0 -0
- /package/src/css/{aspects → styles}/padding/types.ts +0 -0
- /package/src/css/{aspects → styles}/pointerEvents/index.ts +0 -0
- /package/src/css/{aspects → styles}/pointerEvents/pointerEvents.ts +0 -0
- /package/src/css/{aspects → styles}/pointerEvents/types.ts +0 -0
- /package/src/css/{aspects → styles}/position/index.ts +0 -0
- /package/src/css/{aspects → styles}/position/types.ts +0 -0
- /package/src/css/{aspects → styles}/radius/index.ts +0 -0
- /package/src/css/{aspects → styles}/radius/radius.ts +0 -0
- /package/src/css/{aspects → styles}/shadow/index.ts +0 -0
- /package/src/css/{aspects → styles}/shadow/shadow.ts +0 -0
- /package/src/css/{aspects → styles}/shadow/types.ts +0 -0
- /package/src/css/{aspects → styles}/textOverflow/index.ts +0 -0
- /package/src/css/{aspects → styles}/textOverflow/types.ts +0 -0
- /package/src/css/{aspects → styles}/width/index.ts +0 -0
- /package/src/css/{aspects → styles}/width/width.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { getScopedTheme, getTheme_v2, 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
|
|
4
|
-
import { createContext, useContext, useState, useEffect, useDebugValue, useSyncExternalStore, forwardRef, Children, isValidElement, cloneElement,
|
|
3
|
+
import { getScopedTheme, getTheme_v2, buildTheme, 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";
|
|
4
|
+
import { createContext, useContext, useState, useEffect, useDebugValue, useMemo, useSyncExternalStore, forwardRef, Children, isValidElement, cloneElement, useRef, useImperativeHandle, lazy, Suspense, memo, useCallback, useId, useLayoutEffect } from "react";
|
|
5
5
|
import { ThemeProvider as ThemeProvider$1, useTheme as useTheme$1 } from "styled-components";
|
|
6
|
-
import { composeClassNames, box, label, textOverflow, avatar, avatarArrow, avatarInitials, avatarImage, avatarCounter, avatarStack, text, badge, animatedSpinnerIcon, spinner, buttonLoadingBox, button, card, checkbox, checkboxInput, code, container, heading, kbd, _arrow, _arrowStroke, _arrowShape, srOnly,
|
|
6
|
+
import { composeClassNames, box, label, textOverflow, avatar, avatarArrow, avatarInitials, avatarImage, avatarCounter, avatarStack, text, badge, animatedSpinnerIcon, spinner, buttonLoadingBox, button, card, checkbox, checkboxInput, code, container, heading, kbd, _arrow, _arrowStroke, _arrowShape, srOnly, radio, select, _inputElement, selectPresentation, _switch, _switchElement, _switchPresentation, _switchTrack, _switchThumb, textArea, _inputPresentation, textInput, tooltipCard, tooltip, menu, menuDivider, _selectable } from "@sanity/ui/css";
|
|
7
7
|
import ReactIs, { isValidElementType } from "react-is";
|
|
8
8
|
import { SpinnerIcon, CheckmarkIcon, RemoveIcon, ChevronDownIcon, CloseIcon, ChevronRightIcon } from "@sanity/icons";
|
|
9
9
|
import { detectOverflow, flip, offset, shift, arrow, hide, useFloating, autoUpdate } from "@floating-ui/react-dom";
|
|
@@ -23,27 +23,9 @@ function createGlobalScopedContext(key2, defaultValue) {
|
|
|
23
23
|
const symbol = Symbol.for(key2);
|
|
24
24
|
return typeof document > "u" ? createContext(defaultValue) : (globalScope[symbol] = globalScope[symbol] || createContext(defaultValue), globalScope[symbol]);
|
|
25
25
|
}
|
|
26
|
-
const CardContext = createGlobalScopedContext("@sanity/ui/context/card", null);
|
|
27
|
-
function CardProvider(props) {
|
|
28
|
-
const $ = c(7), {
|
|
29
|
-
children,
|
|
30
|
-
rendered: t0,
|
|
31
|
-
tone,
|
|
32
|
-
scheme
|
|
33
|
-
} = props, rendered = t0 === void 0 ? !1 : t0;
|
|
34
|
-
let t1, t2;
|
|
35
|
-
$[0] !== rendered || $[1] !== scheme || $[2] !== tone ? (t2 = {
|
|
36
|
-
rendered,
|
|
37
|
-
tone,
|
|
38
|
-
scheme
|
|
39
|
-
}, $[0] = rendered, $[1] = scheme, $[2] = tone, $[3] = t2) : t2 = $[3], t1 = t2;
|
|
40
|
-
const context = t1;
|
|
41
|
-
let t3;
|
|
42
|
-
return $[4] !== children || $[5] !== context ? (t3 = /* @__PURE__ */ jsx(CardContext.Provider, { value: context, children }), $[4] = children, $[5] = context, $[6] = t3) : t3 = $[6], t3;
|
|
43
|
-
}
|
|
44
26
|
const ThemeContext = createGlobalScopedContext("@sanity/ui/context/theme", null);
|
|
45
27
|
function ThemeProvider(props) {
|
|
46
|
-
const $ = c(
|
|
28
|
+
const $ = c(15), parentTheme = useContext(ThemeContext), {
|
|
47
29
|
children
|
|
48
30
|
} = props, scheme = props.scheme ?? (parentTheme?.scheme || "light"), rootTheme = props.theme ?? (parentTheme?.theme || null), tone = props.tone ?? (parentTheme?.tone || "default");
|
|
49
31
|
let t0;
|
|
@@ -78,9 +60,7 @@ function ThemeProvider(props) {
|
|
|
78
60
|
let t2;
|
|
79
61
|
$[9] !== children || $[10] !== theme ? (t2 = /* @__PURE__ */ jsx(ThemeProvider$1, { theme, children }), $[9] = children, $[10] = theme, $[11] = t2) : t2 = $[11];
|
|
80
62
|
let t3;
|
|
81
|
-
$[12] !== t2 || $[13] !== themeContext ? (t3 = /* @__PURE__ */ jsx(ThemeContext.Provider, { value: themeContext, children: t2 }), $[12] = t2, $[13] = themeContext, $[14] = t3) : t3 = $[14];
|
|
82
|
-
let t4;
|
|
83
|
-
return $[15] !== scheme || $[16] !== t3 || $[17] !== tone ? (t4 = /* @__PURE__ */ jsx(CardProvider, { compat_provider: ThemeColorProvider, scheme, tone, children: t3 }), $[15] = scheme, $[16] = t3, $[17] = tone, $[18] = t4) : t4 = $[18], t4;
|
|
63
|
+
return $[12] !== t2 || $[13] !== themeContext ? (t3 = /* @__PURE__ */ jsx(ThemeContext.Provider, { value: themeContext, children: t2 }), $[12] = t2, $[13] = themeContext, $[14] = t3) : t3 = $[14], t3;
|
|
84
64
|
}
|
|
85
65
|
ThemeProvider.displayName = "ThemeProvider";
|
|
86
66
|
function useRootTheme() {
|
|
@@ -107,14 +87,7 @@ function useTheme_v2() {
|
|
|
107
87
|
let t1;
|
|
108
88
|
return $[0] !== t0 ? (t1 = getTheme_v2(t0), $[0] = t0, $[1] = t1) : t1 = $[1], t1;
|
|
109
89
|
}
|
|
110
|
-
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, studioTheme =
|
|
111
|
-
let theme;
|
|
112
|
-
return {
|
|
113
|
-
get value() {
|
|
114
|
-
return theme || (theme = buildTheme()), theme;
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
})(), EMPTY_ARRAY = [], EMPTY_RECORD = {}, POPOVER_MOTION_PROPS = {
|
|
90
|
+
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, studioTheme = buildTheme(), EMPTY_ARRAY = [], EMPTY_RECORD = {}, POPOVER_MOTION_PROPS = {
|
|
118
91
|
card: {
|
|
119
92
|
initial: {
|
|
120
93
|
scale: 0.97,
|
|
@@ -142,10 +115,6 @@ const createColorTheme = createColorTheme$1, hexToRgb = hexToRgb$1, hslToRgb = h
|
|
|
142
115
|
visualDuration: 0.2,
|
|
143
116
|
bounce: 0.25
|
|
144
117
|
}
|
|
145
|
-
}, Z_OFFSETS = {
|
|
146
|
-
dialog: 600,
|
|
147
|
-
popover: 400,
|
|
148
|
-
tooltip: 200
|
|
149
118
|
};
|
|
150
119
|
function _isEnterToClickElement(element) {
|
|
151
120
|
return isHTMLAnchorElement(element) || isHTMLButtonElement(element);
|
|
@@ -290,21 +259,26 @@ function useGlobalKeyDown(onKeyDown) {
|
|
|
290
259
|
$[4] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[4] = t2) : t2 = $[4], useEffect(t1, t2);
|
|
291
260
|
}
|
|
292
261
|
function useMatchMedia(mediaQueryString, getServerSnapshot2) {
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
262
|
+
const {
|
|
263
|
+
subscribe,
|
|
264
|
+
getSnapshot
|
|
265
|
+
} = useMemo(() => {
|
|
266
|
+
let MEDIA_QUERY_CACHE;
|
|
267
|
+
const getMatchMedia = () => (MEDIA_QUERY_CACHE || (MEDIA_QUERY_CACHE = window.matchMedia(mediaQueryString)), MEDIA_QUERY_CACHE);
|
|
268
|
+
return {
|
|
269
|
+
subscribe: (onStoreChange) => {
|
|
270
|
+
const matchMedia = getMatchMedia();
|
|
271
|
+
return matchMedia.addEventListener("change", onStoreChange), () => matchMedia.removeEventListener("change", onStoreChange);
|
|
272
|
+
},
|
|
273
|
+
getSnapshot: () => getMatchMedia().matches
|
|
274
|
+
};
|
|
275
|
+
}, [mediaQueryString]);
|
|
276
|
+
return useDebugValue(mediaQueryString), useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot2);
|
|
302
277
|
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
return index === 0 ? `screen and (max-width: ${media2[index] - 1}px)` : index === media2.length ? `screen and (min-width: ${media2[index - 1]}px)` : `screen and (min-width: ${media2[index - 1]}px) and (max-width: ${media2[index] - 1}px)`;
|
|
278
|
+
function _getMediaQuery(media, index) {
|
|
279
|
+
return index === 0 ? `screen and (max-width: ${media[index] - 1}px)` : index === media.length ? `screen and (min-width: ${media[index - 1]}px)` : `screen and (min-width: ${media[index - 1]}px) and (max-width: ${media[index] - 1}px)`;
|
|
306
280
|
}
|
|
307
|
-
function _createMediaStore() {
|
|
281
|
+
function _createMediaStore(media) {
|
|
308
282
|
const mediaLen = media.length;
|
|
309
283
|
let sizes;
|
|
310
284
|
const getSizes = () => {
|
|
@@ -350,9 +324,11 @@ function getServerSnapshot() {
|
|
|
350
324
|
return 0;
|
|
351
325
|
}
|
|
352
326
|
function useMediaIndex() {
|
|
353
|
-
const $ = c(
|
|
327
|
+
const $ = c(2), {
|
|
328
|
+
media
|
|
329
|
+
} = useTheme_v2();
|
|
354
330
|
let t0, t1;
|
|
355
|
-
$[0]
|
|
331
|
+
$[0] !== media ? (t1 = _createMediaStore(media), $[0] = media, $[1] = t1) : t1 = $[1], t0 = t1;
|
|
356
332
|
const store = t0;
|
|
357
333
|
return useSyncExternalStore(store.subscribe, store.getSnapshot, getServerSnapshot);
|
|
358
334
|
}
|
|
@@ -369,15 +345,12 @@ function _temp$6() {
|
|
|
369
345
|
return !1;
|
|
370
346
|
}
|
|
371
347
|
const Box = forwardRef(function(props, ref) {
|
|
372
|
-
const $ = c(
|
|
373
|
-
let align,
|
|
348
|
+
const $ = c(112);
|
|
349
|
+
let align, border, borderBottom, borderLeft, borderRight, borderTop, className, column, columnEnd, columnStart, columns, direction, flex, gap, gapX, gapY, height, inset, insetBottom, insetLeft, insetRight, insetTop, justify, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, muted, overflow, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pointerEvents, position, radius, restProps, row, rowEnd, rowStart, rows, t0, t1, t2, t3, t4, width, wrap;
|
|
374
350
|
$[0] !== props ? ({
|
|
375
351
|
align,
|
|
376
352
|
as: t0,
|
|
377
|
-
|
|
378
|
-
autoFlow,
|
|
379
|
-
autoRows,
|
|
380
|
-
border: t1,
|
|
353
|
+
border,
|
|
381
354
|
borderTop,
|
|
382
355
|
borderRight,
|
|
383
356
|
borderBottom,
|
|
@@ -388,7 +361,7 @@ const Box = forwardRef(function(props, ref) {
|
|
|
388
361
|
columnEnd,
|
|
389
362
|
columns,
|
|
390
363
|
direction,
|
|
391
|
-
display:
|
|
364
|
+
display: t1,
|
|
392
365
|
flex,
|
|
393
366
|
gap,
|
|
394
367
|
gapX,
|
|
@@ -400,7 +373,7 @@ const Box = forwardRef(function(props, ref) {
|
|
|
400
373
|
insetRight,
|
|
401
374
|
insetTop,
|
|
402
375
|
justify,
|
|
403
|
-
margin:
|
|
376
|
+
margin: t2,
|
|
404
377
|
marginX,
|
|
405
378
|
marginY,
|
|
406
379
|
marginTop,
|
|
@@ -408,9 +381,8 @@ const Box = forwardRef(function(props, ref) {
|
|
|
408
381
|
marginBottom,
|
|
409
382
|
marginLeft,
|
|
410
383
|
maxWidth,
|
|
411
|
-
minWidth: t4,
|
|
412
384
|
overflow,
|
|
413
|
-
padding:
|
|
385
|
+
padding: t3,
|
|
414
386
|
paddingX,
|
|
415
387
|
paddingY,
|
|
416
388
|
paddingTop,
|
|
@@ -425,18 +397,15 @@ const Box = forwardRef(function(props, ref) {
|
|
|
425
397
|
rows,
|
|
426
398
|
rowStart,
|
|
427
399
|
rowEnd,
|
|
428
|
-
sizing:
|
|
400
|
+
sizing: t4,
|
|
429
401
|
width,
|
|
430
402
|
wrap,
|
|
431
403
|
...restProps
|
|
432
|
-
} = props, $[0] = props, $[1] = align, $[2] =
|
|
433
|
-
const As = t0 === void 0 ? "div" : t0,
|
|
434
|
-
let
|
|
435
|
-
$[
|
|
404
|
+
} = props, $[0] = props, $[1] = align, $[2] = border, $[3] = borderBottom, $[4] = borderLeft, $[5] = borderRight, $[6] = borderTop, $[7] = className, $[8] = column, $[9] = columnEnd, $[10] = columnStart, $[11] = columns, $[12] = direction, $[13] = flex, $[14] = gap, $[15] = gapX, $[16] = gapY, $[17] = height, $[18] = inset, $[19] = insetBottom, $[20] = insetLeft, $[21] = insetRight, $[22] = insetTop, $[23] = justify, $[24] = marginBottom, $[25] = marginLeft, $[26] = marginRight, $[27] = marginTop, $[28] = marginX, $[29] = marginY, $[30] = maxWidth, $[31] = muted, $[32] = overflow, $[33] = paddingBottom, $[34] = paddingLeft, $[35] = paddingRight, $[36] = paddingTop, $[37] = paddingX, $[38] = paddingY, $[39] = pointerEvents, $[40] = position, $[41] = radius, $[42] = restProps, $[43] = row, $[44] = rowEnd, $[45] = rowStart, $[46] = rows, $[47] = t0, $[48] = t1, $[49] = t2, $[50] = t3, $[51] = t4, $[52] = width, $[53] = wrap) : (align = $[1], border = $[2], borderBottom = $[3], borderLeft = $[4], borderRight = $[5], borderTop = $[6], className = $[7], column = $[8], columnEnd = $[9], columnStart = $[10], columns = $[11], direction = $[12], flex = $[13], gap = $[14], gapX = $[15], gapY = $[16], height = $[17], inset = $[18], insetBottom = $[19], insetLeft = $[20], insetRight = $[21], insetTop = $[22], justify = $[23], marginBottom = $[24], marginLeft = $[25], marginRight = $[26], marginTop = $[27], marginX = $[28], marginY = $[29], maxWidth = $[30], muted = $[31], overflow = $[32], paddingBottom = $[33], paddingLeft = $[34], paddingRight = $[35], paddingTop = $[36], paddingX = $[37], paddingY = $[38], pointerEvents = $[39], position = $[40], radius = $[41], restProps = $[42], row = $[43], rowEnd = $[44], rowStart = $[45], rows = $[46], t0 = $[47], t1 = $[48], t2 = $[49], t3 = $[50], t4 = $[51], width = $[52], wrap = $[53]);
|
|
405
|
+
const As = t0 === void 0 ? "div" : t0, display = t1 === void 0 ? "block" : t1, margin = t2 === void 0 ? 0 : t2, padding = t3 === void 0 ? 0 : t3, sizing = t4 === void 0 ? "border" : t4;
|
|
406
|
+
let t5;
|
|
407
|
+
$[54] !== align || $[55] !== border || $[56] !== borderBottom || $[57] !== borderLeft || $[58] !== borderRight || $[59] !== borderTop || $[60] !== className || $[61] !== column || $[62] !== columnEnd || $[63] !== columnStart || $[64] !== columns || $[65] !== direction || $[66] !== display || $[67] !== flex || $[68] !== gap || $[69] !== gapX || $[70] !== gapY || $[71] !== height || $[72] !== inset || $[73] !== insetBottom || $[74] !== insetLeft || $[75] !== insetRight || $[76] !== insetTop || $[77] !== justify || $[78] !== margin || $[79] !== marginBottom || $[80] !== marginLeft || $[81] !== marginRight || $[82] !== marginTop || $[83] !== marginX || $[84] !== marginY || $[85] !== maxWidth || $[86] !== muted || $[87] !== overflow || $[88] !== padding || $[89] !== paddingBottom || $[90] !== paddingLeft || $[91] !== paddingRight || $[92] !== paddingTop || $[93] !== paddingX || $[94] !== paddingY || $[95] !== pointerEvents || $[96] !== position || $[97] !== radius || $[98] !== row || $[99] !== rowEnd || $[100] !== rowStart || $[101] !== rows || $[102] !== sizing || $[103] !== width || $[104] !== wrap ? (t5 = composeClassNames(className, box({
|
|
436
408
|
align,
|
|
437
|
-
autoCols,
|
|
438
|
-
autoFlow,
|
|
439
|
-
autoRows,
|
|
440
409
|
border,
|
|
441
410
|
borderTop,
|
|
442
411
|
borderRight,
|
|
@@ -468,7 +437,6 @@ const Box = forwardRef(function(props, ref) {
|
|
|
468
437
|
marginBottom,
|
|
469
438
|
marginLeft,
|
|
470
439
|
maxWidth,
|
|
471
|
-
minWidth,
|
|
472
440
|
muted,
|
|
473
441
|
padding,
|
|
474
442
|
paddingX,
|
|
@@ -487,9 +455,9 @@ const Box = forwardRef(function(props, ref) {
|
|
|
487
455
|
sizing,
|
|
488
456
|
width,
|
|
489
457
|
wrap
|
|
490
|
-
})), $[
|
|
491
|
-
let
|
|
492
|
-
return $[
|
|
458
|
+
})), $[54] = align, $[55] = border, $[56] = borderBottom, $[57] = borderLeft, $[58] = borderRight, $[59] = borderTop, $[60] = className, $[61] = column, $[62] = columnEnd, $[63] = columnStart, $[64] = columns, $[65] = direction, $[66] = display, $[67] = flex, $[68] = gap, $[69] = gapX, $[70] = gapY, $[71] = height, $[72] = inset, $[73] = insetBottom, $[74] = insetLeft, $[75] = insetRight, $[76] = insetTop, $[77] = justify, $[78] = margin, $[79] = marginBottom, $[80] = marginLeft, $[81] = marginRight, $[82] = marginTop, $[83] = marginX, $[84] = marginY, $[85] = maxWidth, $[86] = muted, $[87] = overflow, $[88] = padding, $[89] = paddingBottom, $[90] = paddingLeft, $[91] = paddingRight, $[92] = paddingTop, $[93] = paddingX, $[94] = paddingY, $[95] = pointerEvents, $[96] = position, $[97] = radius, $[98] = row, $[99] = rowEnd, $[100] = rowStart, $[101] = rows, $[102] = sizing, $[103] = width, $[104] = wrap, $[105] = t5) : t5 = $[105];
|
|
459
|
+
let t6;
|
|
460
|
+
return $[106] !== As || $[107] !== props.children || $[108] !== ref || $[109] !== restProps || $[110] !== t5 ? (t6 = /* @__PURE__ */ jsx(As, { "data-ui": "Box", ...restProps, className: t5, ref, children: props.children }), $[106] = As, $[107] = props.children, $[108] = ref, $[109] = restProps, $[110] = t5, $[111] = t6) : t6 = $[111], t6;
|
|
493
461
|
});
|
|
494
462
|
Box.displayName = "ForwardRef(Box)";
|
|
495
463
|
const Label = forwardRef(function(props, ref) {
|
|
@@ -669,7 +637,7 @@ const Text = forwardRef(function(props, ref) {
|
|
|
669
637
|
weight,
|
|
670
638
|
...restProps
|
|
671
639
|
} = props, $[0] = props, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = restProps, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = textOverflowProp, $[11] = weight) : (align = $[1], children = $[2], className = $[3], flex = $[4], restProps = $[5], t0 = $[6], t1 = $[7], t2 = $[8], t3 = $[9], textOverflowProp = $[10], weight = $[11]);
|
|
672
|
-
const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ?
|
|
640
|
+
const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ? 1 : t3;
|
|
673
641
|
let t4;
|
|
674
642
|
$[12] !== accent || $[13] !== align || $[14] !== className || $[15] !== flex || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t4 = composeClassNames(className, text({
|
|
675
643
|
accent,
|
|
@@ -776,14 +744,16 @@ const Button = forwardRef(function(props, ref) {
|
|
|
776
744
|
text: text2,
|
|
777
745
|
textAlign,
|
|
778
746
|
textOverflow: textOverflow2 = "ellipsis",
|
|
779
|
-
textWeight
|
|
747
|
+
textWeight,
|
|
780
748
|
tone = "default",
|
|
781
749
|
type = "button",
|
|
782
750
|
muted = !1,
|
|
783
751
|
width,
|
|
784
752
|
wrap,
|
|
785
753
|
...restProps
|
|
786
|
-
} = props
|
|
754
|
+
} = props, {
|
|
755
|
+
button: buttonTheme
|
|
756
|
+
} = useTheme_v2();
|
|
787
757
|
return /* @__PURE__ */ jsxs(As, { "data-ui": "Button", ...restProps, className: composeClassNames(className, button({
|
|
788
758
|
display,
|
|
789
759
|
flex,
|
|
@@ -792,65 +762,25 @@ const Button = forwardRef(function(props, ref) {
|
|
|
792
762
|
tone,
|
|
793
763
|
width
|
|
794
764
|
})), "data-disabled": loading || disabled ? "" : void 0, "data-selected": selected ? "" : void 0, disabled: !!(loading || disabled), href: disabled ? void 0 : href, ref, type, children: [
|
|
795
|
-
!!loading && /* @__PURE__ */ jsx(Box, { align
|
|
796
|
-
(IconComponent || text2 || IconRightComponent) && /* @__PURE__ */ jsxs(
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
paddingX,
|
|
809
|
-
paddingY,
|
|
810
|
-
paddingTop,
|
|
811
|
-
paddingBottom,
|
|
812
|
-
paddingLeft,
|
|
813
|
-
paddingRight,
|
|
814
|
-
children: [
|
|
815
|
-
IconComponent && /* @__PURE__ */ jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
|
|
816
|
-
isValidElement(IconComponent) && IconComponent,
|
|
817
|
-
isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
|
|
818
|
-
] }),
|
|
819
|
-
text2 && /* @__PURE__ */ jsx(Text, { align: textAlign, as: "span", flex: "none", muted, size: fontSize, textOverflow: textOverflow2, weight: textWeight, children: text2 }),
|
|
820
|
-
IconRightComponent && /* @__PURE__ */ jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
|
|
821
|
-
isValidElement(IconRightComponent) && IconRightComponent,
|
|
822
|
-
isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
|
|
823
|
-
] })
|
|
824
|
-
]
|
|
825
|
-
}
|
|
826
|
-
),
|
|
827
|
-
children && /* @__PURE__ */ jsx(
|
|
828
|
-
Box,
|
|
829
|
-
{
|
|
830
|
-
as: "span",
|
|
831
|
-
flex: 1,
|
|
832
|
-
gap,
|
|
833
|
-
gapX,
|
|
834
|
-
gapY,
|
|
835
|
-
padding,
|
|
836
|
-
paddingX,
|
|
837
|
-
paddingY,
|
|
838
|
-
paddingTop,
|
|
839
|
-
paddingBottom,
|
|
840
|
-
paddingLeft,
|
|
841
|
-
paddingRight,
|
|
842
|
-
children
|
|
843
|
-
}
|
|
844
|
-
)
|
|
765
|
+
!!loading && /* @__PURE__ */ jsx(Box, { align, as: "span", className: buttonLoadingBox(), display: "flex", flex: 1, justify, width: "fill", children: /* @__PURE__ */ jsx(Spinner, { size: fontSize }) }),
|
|
766
|
+
(IconComponent || text2 || IconRightComponent) && /* @__PURE__ */ jsxs(Box, { as: "span", direction, display: "flex", flex: 1, gap, gapX, gapY, justify, padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight, width: "fill", wrap, children: [
|
|
767
|
+
IconComponent && /* @__PURE__ */ jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
|
|
768
|
+
isValidElement(IconComponent) && IconComponent,
|
|
769
|
+
isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
|
|
770
|
+
] }),
|
|
771
|
+
text2 && /* @__PURE__ */ jsx(Text, { align: textAlign, as: "span", flex: "none", muted, size: fontSize, textOverflow: textOverflow2, weight: textWeight ?? buttonTheme.textWeight, children: text2 }),
|
|
772
|
+
IconRightComponent && /* @__PURE__ */ jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
|
|
773
|
+
isValidElement(IconRightComponent) && IconRightComponent,
|
|
774
|
+
isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
|
|
775
|
+
] })
|
|
776
|
+
] }),
|
|
777
|
+
children && /* @__PURE__ */ jsx(Box, { as: "span", direction, display: "flex", flex: 1, gap, gapX, gapY, padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight, width: "fill", wrap, children })
|
|
845
778
|
] });
|
|
846
779
|
});
|
|
847
780
|
Button.displayName = "ForwardRef(Button)";
|
|
848
|
-
function useCard() {
|
|
849
|
-
return useContext(CardContext);
|
|
850
|
-
}
|
|
851
781
|
const Card = forwardRef(function(props, ref) {
|
|
852
|
-
const $ = c(
|
|
853
|
-
let asProp, className, pressed, restProps, schemeProp, selected, shadow, style, t0, t1, t2,
|
|
782
|
+
const $ = c(35);
|
|
783
|
+
let asProp, className, pressed, restProps, schemeProp, selectable, selected, shadow, style, t0, t1, t2, toneProp;
|
|
854
784
|
$[0] !== props ? ({
|
|
855
785
|
__unstable_checkered: t0,
|
|
856
786
|
__unstable_focusRing: t1,
|
|
@@ -859,43 +789,29 @@ const Card = forwardRef(function(props, ref) {
|
|
|
859
789
|
pressed,
|
|
860
790
|
radius: t2,
|
|
861
791
|
scheme: schemeProp,
|
|
792
|
+
selectable,
|
|
862
793
|
selected,
|
|
863
794
|
shadow,
|
|
864
795
|
style,
|
|
865
|
-
tone:
|
|
796
|
+
tone: toneProp,
|
|
866
797
|
...restProps
|
|
867
|
-
} = props, $[0] = props, $[1] = asProp, $[2] = className, $[3] = pressed, $[4] = restProps, $[5] = schemeProp, $[6] =
|
|
868
|
-
const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2,
|
|
869
|
-
let
|
|
870
|
-
$[
|
|
871
|
-
|
|
872
|
-
scheme: t5
|
|
873
|
-
}, $[13] = t4, $[14] = t5, $[15] = t6) : t6 = $[15];
|
|
874
|
-
const context = t6, tone = toneProp === "inherit" ? context.tone : toneProp, scheme = schemeProp === void 0 ? context.scheme : schemeProp, t7 = scheme === context.scheme ? void 0 : scheme;
|
|
875
|
-
let t8;
|
|
876
|
-
$[16] !== className || $[17] !== shadow || $[18] !== t7 || $[19] !== tone ? (t8 = composeClassNames(className, card({
|
|
877
|
-
scheme: t7,
|
|
798
|
+
} = props, $[0] = props, $[1] = asProp, $[2] = className, $[3] = pressed, $[4] = restProps, $[5] = schemeProp, $[6] = selectable, $[7] = selected, $[8] = shadow, $[9] = style, $[10] = t0, $[11] = t1, $[12] = t2, $[13] = toneProp) : (asProp = $[1], className = $[2], pressed = $[3], restProps = $[4], schemeProp = $[5], selectable = $[6], selected = $[7], shadow = $[8], style = $[9], t0 = $[10], t1 = $[11], t2 = $[12], toneProp = $[13]);
|
|
799
|
+
const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2, as = isValidElementType(asProp) ? asProp : "div", rootTheme = useRootTheme(), tone = toneProp === "inherit" ? rootTheme.tone : toneProp, scheme = schemeProp === void 0 ? rootTheme.scheme : schemeProp, t3 = scheme === rootTheme.scheme ? void 0 : scheme, t4 = tone === rootTheme.tone ? void 0 : tone;
|
|
800
|
+
let t5;
|
|
801
|
+
$[14] !== className || $[15] !== shadow || $[16] !== t3 || $[17] !== t4 ? (t5 = composeClassNames(className, card({
|
|
802
|
+
scheme: t3,
|
|
878
803
|
shadow,
|
|
879
|
-
tone
|
|
880
|
-
})), $[
|
|
881
|
-
const
|
|
882
|
-
let
|
|
883
|
-
$[
|
|
884
|
-
|
|
885
|
-
if (scheme ===
|
|
804
|
+
tone: t4
|
|
805
|
+
})), $[14] = className, $[15] = shadow, $[16] = t3, $[17] = t4, $[18] = t5) : t5 = $[18];
|
|
806
|
+
const t6 = checkered ? "" : void 0, t7 = focusRing ? "" : void 0, t8 = pressed ? "" : void 0, t9 = selectable ? "" : void 0, t10 = selected ? "" : void 0;
|
|
807
|
+
let t11;
|
|
808
|
+
$[19] !== as || $[20] !== radius || $[21] !== ref || $[22] !== restProps || $[23] !== style || $[24] !== t10 || $[25] !== t5 || $[26] !== t6 || $[27] !== t7 || $[28] !== t8 || $[29] !== t9 ? (t11 = /* @__PURE__ */ jsx(Box, { "data-ui": "Card", ...restProps, as, className: t5, "data-checkered": t6, "data-focus-ring": t7, "data-pressed": t8, "data-selectable": t9, "data-selected": t10, radius, ref, style }), $[19] = as, $[20] = radius, $[21] = ref, $[22] = restProps, $[23] = style, $[24] = t10, $[25] = t5, $[26] = t6, $[27] = t7, $[28] = t8, $[29] = t9, $[30] = t11) : t11 = $[30];
|
|
809
|
+
const node = t11;
|
|
810
|
+
if (scheme === rootTheme.scheme && tone === rootTheme.tone)
|
|
886
811
|
return node;
|
|
887
|
-
const
|
|
888
|
-
let
|
|
889
|
-
|
|
890
|
-
const t17 = tone ?? context.tone;
|
|
891
|
-
let t18;
|
|
892
|
-
return $[37] !== node || $[38] !== parent.compat_provider || $[39] !== scheme || $[40] !== t17 ? (t18 = createElement(parent.compat_provider, {
|
|
893
|
-
children: node,
|
|
894
|
-
scheme,
|
|
895
|
-
tone: t17
|
|
896
|
-
}), $[37] = node, $[38] = parent.compat_provider, $[39] = scheme, $[40] = t17, $[41] = t18) : t18 = $[41], t18;
|
|
897
|
-
}
|
|
898
|
-
return node;
|
|
812
|
+
const t12 = tone ?? rootTheme.tone;
|
|
813
|
+
let t13;
|
|
814
|
+
return $[31] !== node || $[32] !== scheme || $[33] !== t12 ? (t13 = /* @__PURE__ */ jsx(ThemeColorProvider, { scheme, tone: t12, children: node }), $[31] = node, $[32] = scheme, $[33] = t12, $[34] = t13) : t13 = $[34], t13;
|
|
899
815
|
});
|
|
900
816
|
Card.displayName = "ForwardRef(Card)";
|
|
901
817
|
const Checkbox = forwardRef(function(props, forwardedRef) {
|
|
@@ -949,7 +865,7 @@ const LazyRefractor = lazy(() => import("./refractor.mjs")), Code = forwardRef(f
|
|
|
949
865
|
weight,
|
|
950
866
|
...restProps
|
|
951
867
|
} = props, $[0] = props, $[1] = children, $[2] = className, $[3] = languageProp, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = weight) : (children = $[1], className = $[2], languageProp = $[3], restProps = $[4], t0 = $[5], t1 = $[6], weight = $[7]);
|
|
952
|
-
const As = t0 === void 0 ? "pre" : t0, size2 = t1 === void 0 ?
|
|
868
|
+
const As = t0 === void 0 ? "pre" : t0, size2 = t1 === void 0 ? 1 : t1, language = typeof languageProp == "string" ? languageProp : void 0;
|
|
953
869
|
let t2;
|
|
954
870
|
$[8] !== className || $[9] !== size2 || $[10] !== weight ? (t2 = composeClassNames(className, code({
|
|
955
871
|
size: size2,
|
|
@@ -1025,7 +941,7 @@ const Heading = forwardRef(function(props, ref) {
|
|
|
1025
941
|
weight,
|
|
1026
942
|
...restProps
|
|
1027
943
|
} = props, $[0] = props, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = restProps, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = textOverflowProp, $[11] = weight) : (align = $[1], children = $[2], className = $[3], flex = $[4], restProps = $[5], t0 = $[6], t1 = $[7], t2 = $[8], t3 = $[9], textOverflowProp = $[10], weight = $[11]);
|
|
1028
|
-
const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ?
|
|
944
|
+
const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ? 1 : t3;
|
|
1029
945
|
let t4;
|
|
1030
946
|
$[12] !== accent || $[13] !== align || $[14] !== className || $[15] !== flex || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t4 = composeClassNames(className, heading({
|
|
1031
947
|
accent,
|
|
@@ -1080,13 +996,13 @@ const KBD = forwardRef(function(props, ref) {
|
|
|
1080
996
|
radius: t4,
|
|
1081
997
|
...restProps
|
|
1082
998
|
} = props, $[0] = props, $[1] = children, $[2] = className, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = t3, $[8] = t4) : (children = $[1], className = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], t3 = $[7], t4 = $[8]);
|
|
1083
|
-
const as = t0 === void 0 ? "kbd" : t0, display = t1 === void 0 ? "inline-block" : t1, fontSize = t2 === void 0 ?
|
|
999
|
+
const as = t0 === void 0 ? "kbd" : t0, display = t1 === void 0 ? "inline-block" : t1, fontSize = t2 === void 0 ? 1 : t2, padding = t3 === void 0 ? 1 : t3, radius = t4 === void 0 ? 2 : t4;
|
|
1084
1000
|
let t5;
|
|
1085
1001
|
$[9] !== className || $[10] !== radius ? (t5 = composeClassNames(className, kbd({
|
|
1086
1002
|
radius
|
|
1087
1003
|
})), $[9] = className, $[10] = radius, $[11] = t5) : t5 = $[11];
|
|
1088
1004
|
let t6;
|
|
1089
|
-
$[12] !== children || $[13] !== fontSize ? (t6 = /* @__PURE__ */ jsx(Text, { as: "span", muted: !0, size: fontSize,
|
|
1005
|
+
$[12] !== children || $[13] !== fontSize ? (t6 = /* @__PURE__ */ jsx(Text, { as: "span", muted: !0, size: fontSize, children }), $[12] = children, $[13] = fontSize, $[14] = t6) : t6 = $[14];
|
|
1090
1006
|
let t7;
|
|
1091
1007
|
return $[15] !== as || $[16] !== display || $[17] !== padding || $[18] !== ref || $[19] !== restProps || $[20] !== t5 || $[21] !== t6 ? (t7 = /* @__PURE__ */ jsx(Box, { "data-ui": "KBD", ...restProps, as, className: t5, display, muted: !0, padding, ref, children: t6 }), $[15] = as, $[16] = display, $[17] = padding, $[18] = ref, $[19] = restProps, $[20] = t5, $[21] = t6, $[22] = t7) : t7 = $[22], t7;
|
|
1092
1008
|
});
|
|
@@ -1260,16 +1176,16 @@ function ConditionalWrapper({
|
|
|
1260
1176
|
return condition ? wrapper(children) : children;
|
|
1261
1177
|
}
|
|
1262
1178
|
ConditionalWrapper.displayName = "ConditionalWrapper";
|
|
1263
|
-
function findMaxBreakpoints(
|
|
1179
|
+
function findMaxBreakpoints(media, width) {
|
|
1264
1180
|
const ret = [];
|
|
1265
|
-
for (let i = 0; i <
|
|
1266
|
-
|
|
1181
|
+
for (let i = 0; i < media.length; i += 1)
|
|
1182
|
+
media[i] > width && ret.push(i);
|
|
1267
1183
|
return ret;
|
|
1268
1184
|
}
|
|
1269
|
-
function findMinBreakpoints(
|
|
1185
|
+
function findMinBreakpoints(media, width) {
|
|
1270
1186
|
const ret = [];
|
|
1271
|
-
for (let i = 0; i <
|
|
1272
|
-
|
|
1187
|
+
for (let i = 0; i < media.length; i += 1)
|
|
1188
|
+
media[i] <= width && ret.push(i);
|
|
1273
1189
|
return ret;
|
|
1274
1190
|
}
|
|
1275
1191
|
const ElementQuery = forwardRef(function(props, forwardedRef) {
|
|
@@ -1280,22 +1196,22 @@ const ElementQuery = forwardRef(function(props, forwardedRef) {
|
|
|
1280
1196
|
media: _media,
|
|
1281
1197
|
...restProps
|
|
1282
1198
|
} = props, $[0] = props, $[1] = _media, $[2] = children, $[3] = restProps) : (_media = $[1], children = $[2], restProps = $[3]);
|
|
1283
|
-
const
|
|
1199
|
+
const media = _media ?? theme.media, [element, setElement] = useState(null), elementSize = useElementSize(element);
|
|
1284
1200
|
let t0;
|
|
1285
1201
|
t0 = elementSize?.border.width ?? window.innerWidth;
|
|
1286
1202
|
const width = t0;
|
|
1287
1203
|
let t1, t2;
|
|
1288
|
-
if ($[4] !==
|
|
1289
|
-
const eq = findMaxBreakpoints(
|
|
1290
|
-
t2 = eq.length ? eq.join(" ") : void 0, $[4] =
|
|
1204
|
+
if ($[4] !== media || $[5] !== width) {
|
|
1205
|
+
const eq = findMaxBreakpoints(media, width);
|
|
1206
|
+
t2 = eq.length ? eq.join(" ") : void 0, $[4] = media, $[5] = width, $[6] = t2;
|
|
1291
1207
|
} else
|
|
1292
1208
|
t2 = $[6];
|
|
1293
1209
|
t1 = t2;
|
|
1294
1210
|
const max = t1;
|
|
1295
1211
|
let t3, t4;
|
|
1296
|
-
if ($[7] !==
|
|
1297
|
-
const eq_0 = findMinBreakpoints(
|
|
1298
|
-
t4 = eq_0.length ? eq_0.join(" ") : void 0, $[7] =
|
|
1212
|
+
if ($[7] !== media || $[8] !== width) {
|
|
1213
|
+
const eq_0 = findMinBreakpoints(media, width);
|
|
1214
|
+
t4 = eq_0.length ? eq_0.join(" ") : void 0, $[7] = media, $[8] = width, $[9] = t4;
|
|
1299
1215
|
} else
|
|
1300
1216
|
t4 = $[9];
|
|
1301
1217
|
t3 = t4;
|
|
@@ -1323,7 +1239,7 @@ function LayerProvider(props) {
|
|
|
1323
1239
|
} = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue = useContext(LayerContext);
|
|
1324
1240
|
let t1;
|
|
1325
1241
|
$[0] !== parentContextValue ? (t1 = parentContextValue && getLayerContext(parentContextValue), $[0] = parentContextValue, $[1] = t1) : t1 = $[1];
|
|
1326
|
-
const parent = t1, parentRegisterChild = parent?.registerChild, level = (parent?.level ?? 0) + 1, zOffset = useArrayProp(zOffsetProp), maxMediaIndex = zOffset.length - 1, mediaIndex = Math.min(useMediaIndex(), maxMediaIndex), zIndex = parent ? parent.zIndex +
|
|
1242
|
+
const parent = t1, parentRegisterChild = parent?.registerChild, level = (parent?.level ?? 0) + 1, zOffset = useArrayProp(zOffsetProp), maxMediaIndex = zOffset.length - 1, mediaIndex = Math.min(useMediaIndex(), maxMediaIndex), zIndex = parent ? parent.zIndex + zOffset[mediaIndex] : zOffset[mediaIndex];
|
|
1327
1243
|
let t2;
|
|
1328
1244
|
$[2] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {}, $[2] = t2) : t2 = $[2];
|
|
1329
1245
|
const [, setChildLayers] = useState(t2), [size2, setSize] = useState(0), isTopLayer = size2 === 0;
|
|
@@ -1450,19 +1366,14 @@ function usePortal() {
|
|
|
1450
1366
|
return value;
|
|
1451
1367
|
}
|
|
1452
1368
|
function Portal(props) {
|
|
1453
|
-
const $ = c(
|
|
1369
|
+
const $ = c(3), {
|
|
1454
1370
|
children,
|
|
1455
1371
|
__unstable_name: name
|
|
1456
|
-
} = props,
|
|
1372
|
+
} = props, portal = usePortal(), portalElement = (name ? portal.elements && portal.elements[name] : portal.element) || portal.elements?.default;
|
|
1457
1373
|
if (!portalElement)
|
|
1458
1374
|
return null;
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
return $[0] !== children || $[1] !== portalElement || $[2] !== t0 ? (t1 = createPortal(createElement(CardProvider, {
|
|
1462
|
-
rendered: !0,
|
|
1463
|
-
tone: "transparent",
|
|
1464
|
-
scheme: t0
|
|
1465
|
-
}, children), portalElement), $[0] = children, $[1] = portalElement, $[2] = t0, $[3] = t1) : t1 = $[3], t1;
|
|
1375
|
+
let t0;
|
|
1376
|
+
return $[0] !== children || $[1] !== portalElement ? (t0 = createPortal(children, portalElement), $[0] = children, $[1] = portalElement, $[2] = t0) : t0 = $[2], t0;
|
|
1466
1377
|
}
|
|
1467
1378
|
Portal.displayName = "Portal";
|
|
1468
1379
|
function PortalProvider(props) {
|
|
@@ -1603,7 +1514,7 @@ const VirtualList = forwardRef(function(props, forwardedRef) {
|
|
|
1603
1514
|
let t123;
|
|
1604
1515
|
$[26] !== items[0] || $[27] !== renderItem ? (t123 = renderItem(items[0]), $[26] = items[0], $[27] = renderItem, $[28] = t123) : t123 = $[28];
|
|
1605
1516
|
let t132;
|
|
1606
|
-
$[29] !== t123 ? (t132 = [/* @__PURE__ */ jsx(Box, { insetTop: 0, insetLeft: 0,
|
|
1517
|
+
$[29] !== t123 ? (t132 = [/* @__PURE__ */ jsx(Box, { insetTop: 0, insetLeft: 0, position: "absolute", children: t123 }, 0)], $[29] = t123, $[30] = t132) : t132 = $[30], t11 = t132;
|
|
1607
1518
|
break bb0;
|
|
1608
1519
|
}
|
|
1609
1520
|
let t122;
|
|
@@ -1611,7 +1522,7 @@ const VirtualList = forwardRef(function(props, forwardedRef) {
|
|
|
1611
1522
|
let t132;
|
|
1612
1523
|
$[40] !== fromIndex || $[41] !== gap || $[42] !== getItemKey || $[43] !== itemHeight || $[44] !== renderItem || $[45] !== space ? (t132 = (item, _itemIndex) => {
|
|
1613
1524
|
const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
|
|
1614
|
-
return /* @__PURE__ */ jsx(Box, { insetLeft: 0,
|
|
1525
|
+
return /* @__PURE__ */ jsx(Box, { insetLeft: 0, position: "absolute", style: {
|
|
1615
1526
|
top: itemIndex * (itemHeight + space[gap])
|
|
1616
1527
|
}, children: node }, key2);
|
|
1617
1528
|
}, $[40] = fromIndex, $[41] = gap, $[42] = getItemKey, $[43] = itemHeight, $[44] = renderItem, $[45] = space, $[46] = t132) : t132 = $[46], t122 = items.slice(fromIndex, toIndex).map(t132), $[31] = fromIndex, $[32] = gap, $[33] = getItemKey, $[34] = itemHeight, $[35] = items, $[36] = renderItem, $[37] = space, $[38] = toIndex, $[39] = t122;
|
|
@@ -1692,9 +1603,25 @@ function size(options) {
|
|
|
1692
1603
|
}
|
|
1693
1604
|
};
|
|
1694
1605
|
}
|
|
1606
|
+
function calcCurrentWidth(params) {
|
|
1607
|
+
const {
|
|
1608
|
+
container: container2,
|
|
1609
|
+
mediaIndex,
|
|
1610
|
+
width
|
|
1611
|
+
} = params, w = width[mediaIndex], currentWidth = w === void 0 ? width[width.length - 1] : w;
|
|
1612
|
+
return typeof currentWidth == "number" ? container2[currentWidth] : void 0;
|
|
1613
|
+
}
|
|
1614
|
+
function calcMaxWidth(params) {
|
|
1615
|
+
const {
|
|
1616
|
+
boundaryWidth,
|
|
1617
|
+
currentWidth
|
|
1618
|
+
} = params;
|
|
1619
|
+
if (!(currentWidth === void 0 && boundaryWidth === void 0))
|
|
1620
|
+
return Math.min(currentWidth ?? 1 / 0, (boundaryWidth || 1 / 0) - DEFAULT_POPOVER_PADDING * 2);
|
|
1621
|
+
}
|
|
1695
1622
|
const MotionCard$1 = motion.create(Card), PopoverCard = memo(forwardRef(function(props, ref) {
|
|
1696
|
-
const $ = c(
|
|
1697
|
-
let animate, arrow2, arrowRef, arrowX, arrowY, children, marginsProp,
|
|
1623
|
+
const $ = c(66);
|
|
1624
|
+
let animate, arrow2, arrowRef, arrowX, arrowY, children, marginsProp, originX, originY, overflow, padding, placement, radius, referenceWidth, restProps, scheme, shadow, strategy, style, tone, xProp, yProp;
|
|
1698
1625
|
$[0] !== props ? ({
|
|
1699
1626
|
__unstable_margins: marginsProp,
|
|
1700
1627
|
animate,
|
|
@@ -1703,7 +1630,6 @@ const MotionCard$1 = motion.create(Card), PopoverCard = memo(forwardRef(function
|
|
|
1703
1630
|
arrowX,
|
|
1704
1631
|
arrowY,
|
|
1705
1632
|
children,
|
|
1706
|
-
maxWidth,
|
|
1707
1633
|
padding,
|
|
1708
1634
|
placement,
|
|
1709
1635
|
originX,
|
|
@@ -1719,58 +1645,55 @@ const MotionCard$1 = motion.create(Card), PopoverCard = memo(forwardRef(function
|
|
|
1719
1645
|
x: xProp,
|
|
1720
1646
|
y: yProp,
|
|
1721
1647
|
...restProps
|
|
1722
|
-
} = props, $[0] = props, $[1] = animate, $[2] = arrow2, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = marginsProp, $[8] =
|
|
1723
|
-
const
|
|
1648
|
+
} = props, $[0] = props, $[1] = animate, $[2] = arrow2, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = marginsProp, $[8] = originX, $[9] = originY, $[10] = overflow, $[11] = padding, $[12] = placement, $[13] = radius, $[14] = referenceWidth, $[15] = restProps, $[16] = scheme, $[17] = shadow, $[18] = strategy, $[19] = style, $[20] = tone, $[21] = xProp, $[22] = yProp) : (animate = $[1], arrow2 = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], marginsProp = $[7], originX = $[8], originY = $[9], overflow = $[10], padding = $[11], placement = $[12], radius = $[13], referenceWidth = $[14], restProps = $[15], scheme = $[16], shadow = $[17], strategy = $[18], style = $[19], tone = $[20], xProp = $[21], yProp = $[22]);
|
|
1649
|
+
const {
|
|
1650
|
+
zIndex
|
|
1651
|
+
} = useLayer();
|
|
1724
1652
|
let t0;
|
|
1725
1653
|
t0 = marginsProp || DEFAULT_POPOVER_MARGINS;
|
|
1726
1654
|
const margins = t0, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0];
|
|
1727
1655
|
let t1;
|
|
1728
|
-
const t2 =
|
|
1729
|
-
let
|
|
1730
|
-
$[
|
|
1656
|
+
const t2 = animate ? "transform" : void 0;
|
|
1657
|
+
let t3;
|
|
1658
|
+
$[23] !== originX || $[24] !== originY || $[25] !== referenceWidth || $[26] !== strategy || $[27] !== style || $[28] !== t2 || $[29] !== x || $[30] !== y || $[31] !== zIndex ? (t3 = {
|
|
1731
1659
|
left: x,
|
|
1732
1660
|
originX,
|
|
1733
1661
|
originY,
|
|
1734
1662
|
position: strategy,
|
|
1735
1663
|
top: y,
|
|
1736
1664
|
width: referenceWidth,
|
|
1737
|
-
zIndex
|
|
1738
|
-
willChange:
|
|
1665
|
+
zIndex,
|
|
1666
|
+
willChange: t2,
|
|
1739
1667
|
...style
|
|
1740
|
-
}, $[
|
|
1668
|
+
}, $[23] = originX, $[24] = originY, $[25] = referenceWidth, $[26] = strategy, $[27] = style, $[28] = t2, $[29] = x, $[30] = y, $[31] = zIndex, $[32] = t3) : t3 = $[32], t1 = t3;
|
|
1741
1669
|
const rootStyle = t1;
|
|
1742
|
-
let
|
|
1743
|
-
const
|
|
1744
|
-
let
|
|
1745
|
-
$[
|
|
1746
|
-
left:
|
|
1747
|
-
top:
|
|
1670
|
+
let t4;
|
|
1671
|
+
const t5 = arrowX !== null ? arrowX : void 0, t6 = arrowY !== null ? arrowY : void 0;
|
|
1672
|
+
let t7;
|
|
1673
|
+
$[33] !== t5 || $[34] !== t6 ? (t7 = {
|
|
1674
|
+
left: t5,
|
|
1675
|
+
top: t6,
|
|
1748
1676
|
right: void 0,
|
|
1749
1677
|
bottom: void 0
|
|
1750
|
-
}, $[
|
|
1751
|
-
const arrowStyle =
|
|
1678
|
+
}, $[33] = t5, $[34] = t6, $[35] = t7) : t7 = $[35], t4 = t7;
|
|
1679
|
+
const arrowStyle = t4, t8 = restProps;
|
|
1680
|
+
let t9;
|
|
1681
|
+
$[36] !== animate ? (t9 = animate ? ["hidden", "initial"] : void 0, $[36] = animate, $[37] = t9) : t9 = $[37];
|
|
1682
|
+
let t10;
|
|
1683
|
+
$[38] !== animate ? (t10 = animate ? ["visible", "scaleIn"] : void 0, $[38] = animate, $[39] = t10) : t10 = $[39];
|
|
1752
1684
|
let t11;
|
|
1753
|
-
$[
|
|
1754
|
-
|
|
1685
|
+
$[40] !== animate ? (t11 = animate ? ["hidden", "scaleOut"] : void 0, $[40] = animate, $[41] = t11) : t11 = $[41];
|
|
1686
|
+
let t12;
|
|
1687
|
+
$[42] !== children || $[43] !== padding ? (t12 = /* @__PURE__ */ jsx(Flex, { direction: "column", flex: 1, padding, children }), $[42] = children, $[43] = padding, $[44] = t12) : t12 = $[44];
|
|
1688
|
+
let t13;
|
|
1689
|
+
$[45] !== overflow || $[46] !== t12 ? (t13 = /* @__PURE__ */ jsx(Flex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, overflow, children: t12 }), $[45] = overflow, $[46] = t12, $[47] = t13) : t13 = $[47];
|
|
1755
1690
|
let t14;
|
|
1756
|
-
$[
|
|
1691
|
+
$[48] !== arrow2 || $[49] !== arrowRef || $[50] !== arrowStyle ? (t14 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[48] = arrow2, $[49] = arrowRef, $[50] = arrowStyle, $[51] = t14) : t14 = $[51];
|
|
1757
1692
|
let t15;
|
|
1758
|
-
$[
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
$[44] !== children || $[45] !== padding ? (t17 = /* @__PURE__ */ jsx(Flex, { direction: "column", flex: 1, padding, children }), $[44] = children, $[45] = padding, $[46] = t17) : t17 = $[46];
|
|
1763
|
-
let t18;
|
|
1764
|
-
$[47] !== maxWidth || $[48] !== overflow || $[49] !== t17 ? (t18 = /* @__PURE__ */ jsx(Flex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, maxWidth, overflow, children: t17 }), $[47] = maxWidth, $[48] = overflow, $[49] = t17, $[50] = t18) : t18 = $[50];
|
|
1765
|
-
let t19;
|
|
1766
|
-
$[51] !== arrow2 || $[52] !== arrowRef || $[53] !== arrowStyle ? (t19 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[51] = arrow2, $[52] = arrowRef, $[53] = arrowStyle, $[54] = t19) : t19 = $[54];
|
|
1767
|
-
let t20;
|
|
1768
|
-
$[55] !== placement || $[56] !== radius || $[57] !== ref || $[58] !== rootStyle || $[59] !== scheme || $[60] !== shadow || $[61] !== t12 || $[62] !== t13 || $[63] !== t14 || $[64] !== t15 || $[65] !== t16 || $[66] !== t18 || $[67] !== t19 || $[68] !== tone ? (t20 = /* @__PURE__ */ jsxs(MotionCard$1, { className: t11, "data-ui": "Popover", ...t12, "data-context-tone": t13, "data-placement": placement, direction: "column", display: "flex", radius, ref, scheme, shadow, sizing: "border", style: rootStyle, tone, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t14, animate: t15, exit: t16, children: [
|
|
1769
|
-
t18,
|
|
1770
|
-
t19
|
|
1771
|
-
] }), $[55] = placement, $[56] = radius, $[57] = ref, $[58] = rootStyle, $[59] = scheme, $[60] = shadow, $[61] = t12, $[62] = t13, $[63] = t14, $[64] = t15, $[65] = t16, $[66] = t18, $[67] = t19, $[68] = tone, $[69] = t20) : t20 = $[69];
|
|
1772
|
-
let t21;
|
|
1773
|
-
return $[70] !== t10 || $[71] !== t20 || $[72] !== t9 ? (t21 = /* @__PURE__ */ jsx(CardProvider, { tone: t9, scheme: t10, children: t20 }), $[70] = t10, $[71] = t20, $[72] = t9, $[73] = t21) : t21 = $[73], t21;
|
|
1693
|
+
return $[52] !== placement || $[53] !== radius || $[54] !== ref || $[55] !== rootStyle || $[56] !== scheme || $[57] !== shadow || $[58] !== t10 || $[59] !== t11 || $[60] !== t13 || $[61] !== t14 || $[62] !== t8 || $[63] !== t9 || $[64] !== tone ? (t15 = /* @__PURE__ */ jsxs(MotionCard$1, { className: "popover-card", "data-ui": "Popover", ...t8, "data-placement": placement, direction: "column", display: "flex", radius, ref, scheme, shadow, sizing: "border", style: rootStyle, tone, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t9, animate: t10, exit: t11, children: [
|
|
1694
|
+
t13,
|
|
1695
|
+
t14
|
|
1696
|
+
] }), $[52] = placement, $[53] = radius, $[54] = ref, $[55] = rootStyle, $[56] = scheme, $[57] = shadow, $[58] = t10, $[59] = t11, $[60] = t13, $[61] = t14, $[62] = t8, $[63] = t9, $[64] = tone, $[65] = t15) : t15 = $[65], t15;
|
|
1774
1697
|
}));
|
|
1775
1698
|
PopoverCard.displayName = "Memo(ForwardRef(PopoverCard))";
|
|
1776
1699
|
const ViewportOverlay = () => {
|
|
@@ -1786,11 +1709,13 @@ const ViewportOverlay = () => {
|
|
|
1786
1709
|
zIndex
|
|
1787
1710
|
} }), $[0] = zIndex, $[1] = t0) : t0 = $[1], t0;
|
|
1788
1711
|
}, Popover = memo(forwardRef(function(props, forwardedRef) {
|
|
1789
|
-
const
|
|
1712
|
+
const {
|
|
1713
|
+
container: container2,
|
|
1714
|
+
layer
|
|
1715
|
+
} = useTheme_v2(), boundaryElementContext = useBoundaryElement(), {
|
|
1790
1716
|
__unstable_margins: margins = DEFAULT_POPOVER_MARGINS,
|
|
1791
1717
|
animate: _animate = !1,
|
|
1792
1718
|
arrow: arrowProp = !1,
|
|
1793
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1794
1719
|
boundaryElement = boundaryElementContext.element,
|
|
1795
1720
|
children: childProp,
|
|
1796
1721
|
constrainSize = !1,
|
|
@@ -1815,13 +1740,34 @@ const ViewportOverlay = () => {
|
|
|
1815
1740
|
shadow = 3,
|
|
1816
1741
|
tone = "inherit",
|
|
1817
1742
|
width: widthProp = "auto",
|
|
1818
|
-
|
|
1819
|
-
zOffset: zOffsetProp = Z_OFFSETS.popover,
|
|
1743
|
+
zOffset: zOffsetProp = layer.popover.zOffset,
|
|
1820
1744
|
updateRef,
|
|
1821
1745
|
...restProps
|
|
1822
|
-
} = props, animate = usePrefersReducedMotion() ? !1 : _animate, zOffset = useArrayProp(zOffsetProp), ref = useRef(null), arrowRef = useRef(null), rootBoundary = "viewport";
|
|
1746
|
+
} = props, animate = usePrefersReducedMotion() ? !1 : _animate, boundarySize = useElementSize(boundaryElement)?.border, widthArrayProp = useArrayProp(widthProp), zOffset = useArrayProp(zOffsetProp), ref = useRef(null), arrowRef = useRef(null), rootBoundary = "viewport";
|
|
1823
1747
|
useImperativeHandle(forwardedRef, () => ref.current);
|
|
1824
|
-
const
|
|
1748
|
+
const mediaIndex = useMediaIndex(), boundaryWidth = constrainSize || preventOverflow ? boundarySize?.width : void 0, width = calcCurrentWidth({
|
|
1749
|
+
container: container2,
|
|
1750
|
+
mediaIndex,
|
|
1751
|
+
width: widthArrayProp
|
|
1752
|
+
}), widthRef = useRef(width);
|
|
1753
|
+
useEffect(() => {
|
|
1754
|
+
widthRef.current = width;
|
|
1755
|
+
}, [width]);
|
|
1756
|
+
const maxWidth = calcMaxWidth({
|
|
1757
|
+
boundaryWidth,
|
|
1758
|
+
currentWidth: width
|
|
1759
|
+
}), maxWidthRef = useRef(maxWidth);
|
|
1760
|
+
useEffect(() => {
|
|
1761
|
+
maxWidthRef.current = maxWidth;
|
|
1762
|
+
}, [maxWidth]);
|
|
1763
|
+
const referenceWidthRef = useRef(void 0);
|
|
1764
|
+
useEffect(() => {
|
|
1765
|
+
const floatingElement = ref.current;
|
|
1766
|
+
if (!open || !floatingElement) return;
|
|
1767
|
+
const referenceWidth = referenceWidthRef.current;
|
|
1768
|
+
matchReferenceWidth ? referenceWidth !== void 0 && (floatingElement.style.width = `${referenceWidth}px`) : width !== void 0 && (floatingElement.style.width = `${width}px`), typeof maxWidth == "number" && (floatingElement.style.maxWidth = `${maxWidth}px`);
|
|
1769
|
+
}, [width, matchReferenceWidth, maxWidth, open]);
|
|
1770
|
+
const middleware = useMemo(() => {
|
|
1825
1771
|
const ret = [];
|
|
1826
1772
|
return (constrainSize || preventOverflow) && ret.push(flip({
|
|
1827
1773
|
boundary: floatingBoundary || void 0,
|
|
@@ -1835,9 +1781,11 @@ const ViewportOverlay = () => {
|
|
|
1835
1781
|
availableWidth,
|
|
1836
1782
|
availableHeight,
|
|
1837
1783
|
elements,
|
|
1838
|
-
referenceWidth
|
|
1784
|
+
referenceWidth: referenceWidth_0
|
|
1839
1785
|
}) {
|
|
1840
|
-
referenceWidthRef.current =
|
|
1786
|
+
referenceWidthRef.current = referenceWidth_0;
|
|
1787
|
+
const _currentWidth = widthRef.current, _maxWidth = maxWidthRef.current;
|
|
1788
|
+
matchReferenceWidth ? elements.floating.style.width = `${referenceWidth_0}px` : _currentWidth !== void 0 && (elements.floating.style.width = `${_currentWidth}px`), constrainSize && (elements.floating.style.maxWidth = `${Math.min(availableWidth, _maxWidth ?? 1 / 0)}px`, elements.floating.style.maxHeight = `${availableHeight}px`);
|
|
1841
1789
|
},
|
|
1842
1790
|
boundaryElement: floatingBoundary || void 0,
|
|
1843
1791
|
margins,
|
|
@@ -1886,34 +1834,7 @@ const ViewportOverlay = () => {
|
|
|
1886
1834
|
return childProp || /* @__PURE__ */ jsx(Fragment, {});
|
|
1887
1835
|
const popover = /* @__PURE__ */ jsxs(LayerProvider, { zOffset, children: [
|
|
1888
1836
|
modal && /* @__PURE__ */ jsx(ViewportOverlay, {}),
|
|
1889
|
-
/* @__PURE__ */ jsx(
|
|
1890
|
-
PopoverCard,
|
|
1891
|
-
{
|
|
1892
|
-
...restProps,
|
|
1893
|
-
__unstable_margins: margins,
|
|
1894
|
-
animate,
|
|
1895
|
-
arrow: arrowProp,
|
|
1896
|
-
arrowRef: setArrow,
|
|
1897
|
-
arrowX,
|
|
1898
|
-
arrowY,
|
|
1899
|
-
hidden: referenceHidden,
|
|
1900
|
-
maxWidth: widthProp,
|
|
1901
|
-
overflow,
|
|
1902
|
-
padding,
|
|
1903
|
-
placement,
|
|
1904
|
-
radius,
|
|
1905
|
-
ref: setFloating,
|
|
1906
|
-
scheme,
|
|
1907
|
-
shadow,
|
|
1908
|
-
originX,
|
|
1909
|
-
originY,
|
|
1910
|
-
strategy,
|
|
1911
|
-
tone,
|
|
1912
|
-
x,
|
|
1913
|
-
y,
|
|
1914
|
-
children: content
|
|
1915
|
-
}
|
|
1916
|
-
)
|
|
1837
|
+
/* @__PURE__ */ jsx(PopoverCard, { ...restProps, __unstable_margins: margins, animate, arrow: arrowProp, arrowRef: setArrow, arrowX, arrowY, hidden: referenceHidden, overflow, padding, placement, radius, ref: setFloating, referenceWidth: matchReferenceWidth ? referenceWidthRef.current : width, scheme, shadow, originX, originY, strategy, tone, x, y, children: content })
|
|
1917
1838
|
] }), children = open && (portal ? /* @__PURE__ */ jsx(Portal, { __unstable_name: typeof portal == "string" ? portal : void 0, children: popover }) : popover);
|
|
1918
1839
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1919
1840
|
animate ? /* @__PURE__ */ jsx(AnimatePresence, { children }) : children,
|
|
@@ -1969,7 +1890,7 @@ const Select = forwardRef(function(props, forwardedRef) {
|
|
|
1969
1890
|
space: t4,
|
|
1970
1891
|
...restProps
|
|
1971
1892
|
} = props, $[0] = props, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = gap, $[5] = readOnly, $[6] = restProps, $[7] = t0, $[8] = t1, $[9] = t2, $[10] = t3, $[11] = t4) : (children = $[1], customValidity = $[2], disabled = $[3], gap = $[4], readOnly = $[5], restProps = $[6], t0 = $[7], t1 = $[8], t2 = $[9], t3 = $[10], t4 = $[11]);
|
|
1972
|
-
const border = t0 === void 0 ? !0 : t0, fontSize = t1 === void 0 ?
|
|
1893
|
+
const border = t0 === void 0 ? !0 : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 2 : t2, radius = t3 === void 0 ? 2 : t3, space = t4 === void 0 ? 2 : t4, ref = useRef(null);
|
|
1973
1894
|
let t5;
|
|
1974
1895
|
$[12] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[12] = t5) : t5 = $[12], useImperativeHandle(forwardedRef, t5), useCustomValidity(ref, customValidity);
|
|
1975
1896
|
const t6 = gap ?? space;
|
|
@@ -2003,20 +1924,17 @@ const Select = forwardRef(function(props, forwardedRef) {
|
|
|
2003
1924
|
});
|
|
2004
1925
|
Select.displayName = "ForwardRef(Select)";
|
|
2005
1926
|
const Stack = forwardRef(function(props, ref) {
|
|
2006
|
-
const $ = c(
|
|
2007
|
-
let as,
|
|
1927
|
+
const $ = c(10);
|
|
1928
|
+
let as, gap, restProps, space;
|
|
2008
1929
|
$[0] !== props ? ({
|
|
2009
1930
|
as,
|
|
2010
|
-
className,
|
|
2011
1931
|
gap,
|
|
2012
1932
|
space,
|
|
2013
1933
|
...restProps
|
|
2014
|
-
} = props, $[0] = props, $[1] = as, $[2] =
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
let t2;
|
|
2019
|
-
return $[8] !== as || $[9] !== ref || $[10] !== restProps || $[11] !== t0 || $[12] !== t1 ? (t2 = /* @__PURE__ */ jsx(Box, { "data-ui": "Stack", ...restProps, as, autoRows: "min", className: t0, display: "grid", gap: t1, ref }), $[8] = as, $[9] = ref, $[10] = restProps, $[11] = t0, $[12] = t1, $[13] = t2) : t2 = $[13], t2;
|
|
1934
|
+
} = props, $[0] = props, $[1] = as, $[2] = gap, $[3] = restProps, $[4] = space) : (as = $[1], gap = $[2], restProps = $[3], space = $[4]);
|
|
1935
|
+
const t0 = gap ?? space;
|
|
1936
|
+
let t1;
|
|
1937
|
+
return $[5] !== as || $[6] !== ref || $[7] !== restProps || $[8] !== t0 ? (t1 = /* @__PURE__ */ jsx(Box, { "data-ui": "Stack", ...restProps, as, direction: "column", display: "flex", gap: t0, ref }), $[5] = as, $[6] = ref, $[7] = restProps, $[8] = t0, $[9] = t1) : t1 = $[9], t1;
|
|
2020
1938
|
});
|
|
2021
1939
|
Stack.displayName = "ForwardRef(Stack)";
|
|
2022
1940
|
const Switch = forwardRef(function(props, forwardedRef) {
|
|
@@ -2132,7 +2050,7 @@ const CLEAR_BUTTON_BOX_STYLE = {
|
|
|
2132
2050
|
__unstable_disableFocusRing = t72, t0 = t82, className = t92, clearButton = t102, t1 = t112, t2 = t122, gap = t132, IconComponent = t142, IconRightComponent = t152, onClear = t162, t3 = t172, prefix = t182, t4 = t192, readOnly = t202, t5 = t212, suffix = t222, customValidity = t232, t6 = t242, width = t252, restProps = t262, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = className, $[5] = clearButton, $[6] = customValidity, $[7] = gap, $[8] = onClear, $[9] = prefix, $[10] = readOnly, $[11] = restProps, $[12] = suffix, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4, $[18] = t5, $[19] = t6, $[20] = width;
|
|
2133
2051
|
} else
|
|
2134
2052
|
IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], className = $[4], clearButton = $[5], customValidity = $[6], gap = $[7], onClear = $[8], prefix = $[9], readOnly = $[10], restProps = $[11], suffix = $[12], t0 = $[13], t1 = $[14], t2 = $[15], t3 = $[16], t4 = $[17], t5 = $[18], t6 = $[19], width = $[20];
|
|
2135
|
-
const border = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSize = t2 === void 0 ?
|
|
2053
|
+
const border = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSize = t2 === void 0 ? 1 : t2, padding = t3 === void 0 ? 3 : t3, radius = t4 === void 0 ? 2 : t4, space = t5 === void 0 ? 3 : t5, type = t6 === void 0 ? "text" : t6, ref = useRef(null), paddingArray = useArrayProp(padding), withClearButton = !!clearButton;
|
|
2136
2054
|
let t7;
|
|
2137
2055
|
$[21] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[21] = t7) : t7 = $[21], useImperativeHandle(forwardedRef, t7), useCustomValidity(ref, customValidity);
|
|
2138
2056
|
const handleClearMouseDown = _temp;
|
|
@@ -2333,6 +2251,8 @@ function useTooltipDelayGroup() {
|
|
|
2333
2251
|
}
|
|
2334
2252
|
const Tooltip = forwardRef(function(props, forwardedRef) {
|
|
2335
2253
|
const boundaryElementContext = useBoundaryElement(), {
|
|
2254
|
+
layer
|
|
2255
|
+
} = useTheme_v2(), {
|
|
2336
2256
|
animate: _animate = !1,
|
|
2337
2257
|
arrow: arrowProp = !1,
|
|
2338
2258
|
boundaryElement = boundaryElementContext?.element,
|
|
@@ -2348,7 +2268,7 @@ const Tooltip = forwardRef(function(props, forwardedRef) {
|
|
|
2348
2268
|
radius = 3,
|
|
2349
2269
|
scheme,
|
|
2350
2270
|
shadow = 2,
|
|
2351
|
-
zOffset =
|
|
2271
|
+
zOffset = layer.tooltip.zOffset,
|
|
2352
2272
|
tone,
|
|
2353
2273
|
...restProps
|
|
2354
2274
|
} = props, animate = usePrefersReducedMotion() ? !1 : _animate, fallbackPlacements = useArrayProp(fallbackPlacementsProp), ref = useRef(null), [referenceElement, setReferenceElement] = useState(null), arrowRef = useRef(null), rootBoundary = "viewport", [tooltipMaxWidth, setTooltipMaxWidth] = useState(0);
|
|
@@ -2491,7 +2411,7 @@ function useCloseOnMouseLeave(t0) {
|
|
|
2491
2411
|
$[7] !== isInsideGroup || $[8] !== showTooltip ? (t3 = [isInsideGroup, showTooltip], $[7] = isInsideGroup, $[8] = showTooltip, $[9] = t3) : t3 = $[9], useEffect(t2, t3);
|
|
2492
2412
|
}
|
|
2493
2413
|
const Hotkeys = forwardRef(function(props, ref) {
|
|
2494
|
-
const $ = c(
|
|
2414
|
+
const $ = c(30);
|
|
2495
2415
|
let fontSize, gap, gapX, gapY, keys, padding, radius, restProps, t0;
|
|
2496
2416
|
$[0] !== props ? ({
|
|
2497
2417
|
fontSize,
|
|
@@ -2504,18 +2424,22 @@ const Hotkeys = forwardRef(function(props, ref) {
|
|
|
2504
2424
|
space: t0,
|
|
2505
2425
|
...restProps
|
|
2506
2426
|
} = props, $[0] = props, $[1] = fontSize, $[2] = gap, $[3] = gapX, $[4] = gapY, $[5] = keys, $[6] = padding, $[7] = radius, $[8] = restProps, $[9] = t0) : (fontSize = $[1], gap = $[2], gapX = $[3], gapY = $[4], keys = $[5], padding = $[6], radius = $[7], restProps = $[8], t0 = $[9]);
|
|
2507
|
-
const space = t0 === void 0 ?
|
|
2508
|
-
if (!keys || keys.length === 0)
|
|
2509
|
-
|
|
2427
|
+
const space = t0 === void 0 ? 1 : t0;
|
|
2428
|
+
if (!keys || keys.length === 0) {
|
|
2429
|
+
let t12;
|
|
2430
|
+
return $[10] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(Fragment, {}), $[10] = t12) : t12 = $[10], t12;
|
|
2431
|
+
}
|
|
2510
2432
|
const t1 = gap ?? space;
|
|
2511
2433
|
let t2;
|
|
2512
|
-
if ($[
|
|
2434
|
+
if ($[11] !== fontSize || $[12] !== keys || $[13] !== padding || $[14] !== radius) {
|
|
2513
2435
|
let t32;
|
|
2514
|
-
$[
|
|
2436
|
+
$[16] !== fontSize || $[17] !== padding || $[18] !== radius ? (t32 = (key2, i) => /* @__PURE__ */ jsx(KBD, { display: "block", fontSize, padding, radius, children: key2 }, i), $[16] = fontSize, $[17] = padding, $[18] = radius, $[19] = t32) : t32 = $[19], t2 = keys.map(t32), $[11] = fontSize, $[12] = keys, $[13] = padding, $[14] = radius, $[15] = t2;
|
|
2515
2437
|
} else
|
|
2516
|
-
t2 = $[
|
|
2438
|
+
t2 = $[15];
|
|
2517
2439
|
let t3;
|
|
2518
|
-
|
|
2440
|
+
$[20] !== gap || $[21] !== t2 ? (t3 = /* @__PURE__ */ jsx(Inline, { as: "span", gap, children: t2 }), $[20] = gap, $[21] = t2, $[22] = t3) : t3 = $[22];
|
|
2441
|
+
let t4;
|
|
2442
|
+
return $[23] !== gapX || $[24] !== gapY || $[25] !== ref || $[26] !== restProps || $[27] !== t1 || $[28] !== t3 ? (t4 = /* @__PURE__ */ jsx(Box, { as: "kbd", "data-ui": "Hotkeys", ...restProps, display: "flex", gap: t1, gapX, gapY, ref, children: t3 }), $[23] = gapX, $[24] = gapY, $[25] = ref, $[26] = restProps, $[27] = t1, $[28] = t3, $[29] = t4) : t4 = $[29], t4;
|
|
2519
2443
|
});
|
|
2520
2444
|
Hotkeys.displayName = "ForwardRef(Hotkeys)";
|
|
2521
2445
|
const MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
|
|
@@ -3057,7 +2981,6 @@ export {
|
|
|
3057
2981
|
Box,
|
|
3058
2982
|
Button,
|
|
3059
2983
|
Card,
|
|
3060
|
-
CardProvider,
|
|
3061
2984
|
Checkbox,
|
|
3062
2985
|
Code,
|
|
3063
2986
|
ConditionalWrapper,
|
|
@@ -3099,7 +3022,6 @@ export {
|
|
|
3099
3022
|
TooltipDelayGroupContext,
|
|
3100
3023
|
TooltipDelayGroupProvider,
|
|
3101
3024
|
VirtualList,
|
|
3102
|
-
Z_OFFSETS,
|
|
3103
3025
|
_ResizeObserver,
|
|
3104
3026
|
_elementSizeObserver,
|
|
3105
3027
|
_getArrayProp,
|
|
@@ -3126,7 +3048,6 @@ export {
|
|
|
3126
3048
|
studioTheme,
|
|
3127
3049
|
useArrayProp,
|
|
3128
3050
|
useBoundaryElement,
|
|
3129
|
-
useCard,
|
|
3130
3051
|
useClickOutsideEvent,
|
|
3131
3052
|
useCustomValidity,
|
|
3132
3053
|
useElementSize,
|