@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
|
@@ -16,27 +16,9 @@ function createGlobalScopedContext(key2, defaultValue) {
|
|
|
16
16
|
const symbol = Symbol.for(key2);
|
|
17
17
|
return typeof document > "u" ? react.createContext(defaultValue) : (globalScope[symbol] = globalScope[symbol] || react.createContext(defaultValue), globalScope[symbol]);
|
|
18
18
|
}
|
|
19
|
-
const CardContext = createGlobalScopedContext("@sanity/ui/context/card", null);
|
|
20
|
-
function CardProvider(props) {
|
|
21
|
-
const $ = reactCompilerRuntime.c(7), {
|
|
22
|
-
children,
|
|
23
|
-
rendered: t0,
|
|
24
|
-
tone,
|
|
25
|
-
scheme
|
|
26
|
-
} = props, rendered = t0 === void 0 ? !1 : t0;
|
|
27
|
-
let t1, t2;
|
|
28
|
-
$[0] !== rendered || $[1] !== scheme || $[2] !== tone ? (t2 = {
|
|
29
|
-
rendered,
|
|
30
|
-
tone,
|
|
31
|
-
scheme
|
|
32
|
-
}, $[0] = rendered, $[1] = scheme, $[2] = tone, $[3] = t2) : t2 = $[3], t1 = t2;
|
|
33
|
-
const context = t1;
|
|
34
|
-
let t3;
|
|
35
|
-
return $[4] !== children || $[5] !== context ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(CardContext.Provider, { value: context, children }), $[4] = children, $[5] = context, $[6] = t3) : t3 = $[6], t3;
|
|
36
|
-
}
|
|
37
19
|
const ThemeContext = createGlobalScopedContext("@sanity/ui/context/theme", null);
|
|
38
20
|
function ThemeProvider(props) {
|
|
39
|
-
const $ = reactCompilerRuntime.c(
|
|
21
|
+
const $ = reactCompilerRuntime.c(15), parentTheme = react.useContext(ThemeContext), {
|
|
40
22
|
children
|
|
41
23
|
} = props, scheme = props.scheme ?? (parentTheme?.scheme || "light"), rootTheme = props.theme ?? (parentTheme?.theme || null), tone = props.tone ?? (parentTheme?.tone || "default");
|
|
42
24
|
let t0;
|
|
@@ -71,9 +53,7 @@ function ThemeProvider(props) {
|
|
|
71
53
|
let t2;
|
|
72
54
|
$[9] !== children || $[10] !== theme$1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(styledComponents.ThemeProvider, { theme: theme$1, children }), $[9] = children, $[10] = theme$1, $[11] = t2) : t2 = $[11];
|
|
73
55
|
let t3;
|
|
74
|
-
$[12] !== t2 || $[13] !== themeContext ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(ThemeContext.Provider, { value: themeContext, children: t2 }), $[12] = t2, $[13] = themeContext, $[14] = t3) : t3 = $[14];
|
|
75
|
-
let t4;
|
|
76
|
-
return $[15] !== scheme || $[16] !== t3 || $[17] !== tone ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(CardProvider, { compat_provider: ThemeColorProvider, scheme, tone, children: t3 }), $[15] = scheme, $[16] = t3, $[17] = tone, $[18] = t4) : t4 = $[18], t4;
|
|
56
|
+
return $[12] !== t2 || $[13] !== themeContext ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(ThemeContext.Provider, { value: themeContext, children: t2 }), $[12] = t2, $[13] = themeContext, $[14] = t3) : t3 = $[14], t3;
|
|
77
57
|
}
|
|
78
58
|
ThemeProvider.displayName = "ThemeProvider";
|
|
79
59
|
function useRootTheme() {
|
|
@@ -100,14 +80,7 @@ function useTheme_v2() {
|
|
|
100
80
|
let t1;
|
|
101
81
|
return $[0] !== t0 ? (t1 = theme.getTheme_v2(t0), $[0] = t0, $[1] = t1) : t1 = $[1], t1;
|
|
102
82
|
}
|
|
103
|
-
const createColorTheme = theme.createColorTheme, hexToRgb = theme.hexToRgb, hslToRgb = theme.hslToRgb, multiply = theme.multiply, parseColor = theme.parseColor, rgbToHex = theme.rgbToHex, rgbToHsl = theme.rgbToHsl, rgba = theme.rgba, screen = theme.screen, studioTheme =
|
|
104
|
-
let theme$1;
|
|
105
|
-
return {
|
|
106
|
-
get value() {
|
|
107
|
-
return theme$1 || (theme$1 = theme.buildTheme()), theme$1;
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
})(), EMPTY_ARRAY = [], EMPTY_RECORD = {}, POPOVER_MOTION_PROPS = {
|
|
83
|
+
const createColorTheme = theme.createColorTheme, hexToRgb = theme.hexToRgb, hslToRgb = theme.hslToRgb, multiply = theme.multiply, parseColor = theme.parseColor, rgbToHex = theme.rgbToHex, rgbToHsl = theme.rgbToHsl, rgba = theme.rgba, screen = theme.screen, studioTheme = theme.buildTheme(), EMPTY_ARRAY = [], EMPTY_RECORD = {}, POPOVER_MOTION_PROPS = {
|
|
111
84
|
card: {
|
|
112
85
|
initial: {
|
|
113
86
|
scale: 0.97,
|
|
@@ -135,10 +108,6 @@ const createColorTheme = theme.createColorTheme, hexToRgb = theme.hexToRgb, hslT
|
|
|
135
108
|
visualDuration: 0.2,
|
|
136
109
|
bounce: 0.25
|
|
137
110
|
}
|
|
138
|
-
}, Z_OFFSETS = {
|
|
139
|
-
dialog: 600,
|
|
140
|
-
popover: 400,
|
|
141
|
-
tooltip: 200
|
|
142
111
|
};
|
|
143
112
|
function _isEnterToClickElement(element) {
|
|
144
113
|
return isHTMLAnchorElement(element) || isHTMLButtonElement(element);
|
|
@@ -283,21 +252,26 @@ function useGlobalKeyDown(onKeyDown) {
|
|
|
283
252
|
$[4] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[4] = t2) : t2 = $[4], react.useEffect(t1, t2);
|
|
284
253
|
}
|
|
285
254
|
function useMatchMedia(mediaQueryString, getServerSnapshot2) {
|
|
286
|
-
const
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
255
|
+
const {
|
|
256
|
+
subscribe,
|
|
257
|
+
getSnapshot
|
|
258
|
+
} = react.useMemo(() => {
|
|
259
|
+
let MEDIA_QUERY_CACHE;
|
|
260
|
+
const getMatchMedia = () => (MEDIA_QUERY_CACHE || (MEDIA_QUERY_CACHE = window.matchMedia(mediaQueryString)), MEDIA_QUERY_CACHE);
|
|
261
|
+
return {
|
|
262
|
+
subscribe: (onStoreChange) => {
|
|
263
|
+
const matchMedia = getMatchMedia();
|
|
264
|
+
return matchMedia.addEventListener("change", onStoreChange), () => matchMedia.removeEventListener("change", onStoreChange);
|
|
265
|
+
},
|
|
266
|
+
getSnapshot: () => getMatchMedia().matches
|
|
267
|
+
};
|
|
268
|
+
}, [mediaQueryString]);
|
|
269
|
+
return react.useDebugValue(mediaQueryString), react.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot2);
|
|
295
270
|
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
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)`;
|
|
271
|
+
function _getMediaQuery(media, index) {
|
|
272
|
+
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)`;
|
|
299
273
|
}
|
|
300
|
-
function _createMediaStore() {
|
|
274
|
+
function _createMediaStore(media) {
|
|
301
275
|
const mediaLen = media.length;
|
|
302
276
|
let sizes;
|
|
303
277
|
const getSizes = () => {
|
|
@@ -343,9 +317,11 @@ function getServerSnapshot() {
|
|
|
343
317
|
return 0;
|
|
344
318
|
}
|
|
345
319
|
function useMediaIndex() {
|
|
346
|
-
const $ = reactCompilerRuntime.c(
|
|
320
|
+
const $ = reactCompilerRuntime.c(2), {
|
|
321
|
+
media
|
|
322
|
+
} = useTheme_v2();
|
|
347
323
|
let t0, t1;
|
|
348
|
-
$[0]
|
|
324
|
+
$[0] !== media ? (t1 = _createMediaStore(media), $[0] = media, $[1] = t1) : t1 = $[1], t0 = t1;
|
|
349
325
|
const store = t0;
|
|
350
326
|
return react.useSyncExternalStore(store.subscribe, store.getSnapshot, getServerSnapshot);
|
|
351
327
|
}
|
|
@@ -362,15 +338,12 @@ function _temp$6() {
|
|
|
362
338
|
return !1;
|
|
363
339
|
}
|
|
364
340
|
const Box = react.forwardRef(function(props, ref) {
|
|
365
|
-
const $ = reactCompilerRuntime.c(
|
|
366
|
-
let align,
|
|
341
|
+
const $ = reactCompilerRuntime.c(112);
|
|
342
|
+
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;
|
|
367
343
|
$[0] !== props ? ({
|
|
368
344
|
align,
|
|
369
345
|
as: t0,
|
|
370
|
-
|
|
371
|
-
autoFlow,
|
|
372
|
-
autoRows,
|
|
373
|
-
border: t1,
|
|
346
|
+
border,
|
|
374
347
|
borderTop,
|
|
375
348
|
borderRight,
|
|
376
349
|
borderBottom,
|
|
@@ -381,7 +354,7 @@ const Box = react.forwardRef(function(props, ref) {
|
|
|
381
354
|
columnEnd,
|
|
382
355
|
columns,
|
|
383
356
|
direction,
|
|
384
|
-
display:
|
|
357
|
+
display: t1,
|
|
385
358
|
flex,
|
|
386
359
|
gap,
|
|
387
360
|
gapX,
|
|
@@ -393,7 +366,7 @@ const Box = react.forwardRef(function(props, ref) {
|
|
|
393
366
|
insetRight,
|
|
394
367
|
insetTop,
|
|
395
368
|
justify,
|
|
396
|
-
margin:
|
|
369
|
+
margin: t2,
|
|
397
370
|
marginX,
|
|
398
371
|
marginY,
|
|
399
372
|
marginTop,
|
|
@@ -401,9 +374,8 @@ const Box = react.forwardRef(function(props, ref) {
|
|
|
401
374
|
marginBottom,
|
|
402
375
|
marginLeft,
|
|
403
376
|
maxWidth,
|
|
404
|
-
minWidth: t4,
|
|
405
377
|
overflow,
|
|
406
|
-
padding:
|
|
378
|
+
padding: t3,
|
|
407
379
|
paddingX,
|
|
408
380
|
paddingY,
|
|
409
381
|
paddingTop,
|
|
@@ -418,18 +390,15 @@ const Box = react.forwardRef(function(props, ref) {
|
|
|
418
390
|
rows,
|
|
419
391
|
rowStart,
|
|
420
392
|
rowEnd,
|
|
421
|
-
sizing:
|
|
393
|
+
sizing: t4,
|
|
422
394
|
width,
|
|
423
395
|
wrap,
|
|
424
396
|
...restProps
|
|
425
|
-
} = props, $[0] = props, $[1] = align, $[2] =
|
|
426
|
-
const As = t0 === void 0 ? "div" : t0,
|
|
427
|
-
let
|
|
428
|
-
$[
|
|
397
|
+
} = 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]);
|
|
398
|
+
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;
|
|
399
|
+
let t5;
|
|
400
|
+
$[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 = css.composeClassNames(className, css.box({
|
|
429
401
|
align,
|
|
430
|
-
autoCols,
|
|
431
|
-
autoFlow,
|
|
432
|
-
autoRows,
|
|
433
402
|
border,
|
|
434
403
|
borderTop,
|
|
435
404
|
borderRight,
|
|
@@ -461,7 +430,6 @@ const Box = react.forwardRef(function(props, ref) {
|
|
|
461
430
|
marginBottom,
|
|
462
431
|
marginLeft,
|
|
463
432
|
maxWidth,
|
|
464
|
-
minWidth,
|
|
465
433
|
muted,
|
|
466
434
|
padding,
|
|
467
435
|
paddingX,
|
|
@@ -480,9 +448,9 @@ const Box = react.forwardRef(function(props, ref) {
|
|
|
480
448
|
sizing,
|
|
481
449
|
width,
|
|
482
450
|
wrap
|
|
483
|
-
})), $[
|
|
484
|
-
let
|
|
485
|
-
return $[
|
|
451
|
+
})), $[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];
|
|
452
|
+
let t6;
|
|
453
|
+
return $[106] !== As || $[107] !== props.children || $[108] !== ref || $[109] !== restProps || $[110] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.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;
|
|
486
454
|
});
|
|
487
455
|
Box.displayName = "ForwardRef(Box)";
|
|
488
456
|
const Label = react.forwardRef(function(props, ref) {
|
|
@@ -662,7 +630,7 @@ const Text = react.forwardRef(function(props, ref) {
|
|
|
662
630
|
weight,
|
|
663
631
|
...restProps
|
|
664
632
|
} = 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]);
|
|
665
|
-
const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ?
|
|
633
|
+
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;
|
|
666
634
|
let t4;
|
|
667
635
|
$[12] !== accent || $[13] !== align || $[14] !== className || $[15] !== flex || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t4 = css.composeClassNames(className, css.text({
|
|
668
636
|
accent,
|
|
@@ -769,14 +737,16 @@ const Button = react.forwardRef(function(props, ref) {
|
|
|
769
737
|
text,
|
|
770
738
|
textAlign,
|
|
771
739
|
textOverflow = "ellipsis",
|
|
772
|
-
textWeight
|
|
740
|
+
textWeight,
|
|
773
741
|
tone = "default",
|
|
774
742
|
type = "button",
|
|
775
743
|
muted = !1,
|
|
776
744
|
width,
|
|
777
745
|
wrap,
|
|
778
746
|
...restProps
|
|
779
|
-
} = props
|
|
747
|
+
} = props, {
|
|
748
|
+
button: buttonTheme
|
|
749
|
+
} = useTheme_v2();
|
|
780
750
|
return /* @__PURE__ */ jsxRuntime.jsxs(As, { "data-ui": "Button", ...restProps, className: css.composeClassNames(className, css.button({
|
|
781
751
|
display,
|
|
782
752
|
flex,
|
|
@@ -785,65 +755,25 @@ const Button = react.forwardRef(function(props, ref) {
|
|
|
785
755
|
tone,
|
|
786
756
|
width
|
|
787
757
|
})), "data-disabled": loading || disabled ? "" : void 0, "data-selected": selected ? "" : void 0, disabled: !!(loading || disabled), href: disabled ? void 0 : href, ref, type, children: [
|
|
788
|
-
!!loading && /* @__PURE__ */ jsxRuntime.jsx(Box, { align
|
|
789
|
-
(IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
paddingX,
|
|
802
|
-
paddingY,
|
|
803
|
-
paddingTop,
|
|
804
|
-
paddingBottom,
|
|
805
|
-
paddingLeft,
|
|
806
|
-
paddingRight,
|
|
807
|
-
children: [
|
|
808
|
-
IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
|
|
809
|
-
react.isValidElement(IconComponent) && IconComponent,
|
|
810
|
-
ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
|
|
811
|
-
] }),
|
|
812
|
-
text && /* @__PURE__ */ jsxRuntime.jsx(Text, { align: textAlign, as: "span", flex: "none", muted, size: fontSize, textOverflow, weight: textWeight, children: text }),
|
|
813
|
-
IconRightComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
|
|
814
|
-
react.isValidElement(IconRightComponent) && IconRightComponent,
|
|
815
|
-
ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
|
|
816
|
-
] })
|
|
817
|
-
]
|
|
818
|
-
}
|
|
819
|
-
),
|
|
820
|
-
children && /* @__PURE__ */ jsxRuntime.jsx(
|
|
821
|
-
Box,
|
|
822
|
-
{
|
|
823
|
-
as: "span",
|
|
824
|
-
flex: 1,
|
|
825
|
-
gap,
|
|
826
|
-
gapX,
|
|
827
|
-
gapY,
|
|
828
|
-
padding,
|
|
829
|
-
paddingX,
|
|
830
|
-
paddingY,
|
|
831
|
-
paddingTop,
|
|
832
|
-
paddingBottom,
|
|
833
|
-
paddingLeft,
|
|
834
|
-
paddingRight,
|
|
835
|
-
children
|
|
836
|
-
}
|
|
837
|
-
)
|
|
758
|
+
!!loading && /* @__PURE__ */ jsxRuntime.jsx(Box, { align, as: "span", className: css.buttonLoadingBox(), display: "flex", flex: 1, justify, width: "fill", children: /* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: fontSize }) }),
|
|
759
|
+
(IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsxs(Box, { as: "span", direction, display: "flex", flex: 1, gap, gapX, gapY, justify, padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight, width: "fill", wrap, children: [
|
|
760
|
+
IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
|
|
761
|
+
react.isValidElement(IconComponent) && IconComponent,
|
|
762
|
+
ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
|
|
763
|
+
] }),
|
|
764
|
+
text && /* @__PURE__ */ jsxRuntime.jsx(Text, { align: textAlign, as: "span", flex: "none", muted, size: fontSize, textOverflow, weight: textWeight ?? buttonTheme.textWeight, children: text }),
|
|
765
|
+
IconRightComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
|
|
766
|
+
react.isValidElement(IconRightComponent) && IconRightComponent,
|
|
767
|
+
ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
|
|
768
|
+
] })
|
|
769
|
+
] }),
|
|
770
|
+
children && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", direction, display: "flex", flex: 1, gap, gapX, gapY, padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight, width: "fill", wrap, children })
|
|
838
771
|
] });
|
|
839
772
|
});
|
|
840
773
|
Button.displayName = "ForwardRef(Button)";
|
|
841
|
-
function useCard() {
|
|
842
|
-
return react.useContext(CardContext);
|
|
843
|
-
}
|
|
844
774
|
const Card = react.forwardRef(function(props, ref) {
|
|
845
|
-
const $ = reactCompilerRuntime.c(
|
|
846
|
-
let asProp, className, pressed, restProps, schemeProp, selected, shadow, style, t0, t1, t2,
|
|
775
|
+
const $ = reactCompilerRuntime.c(35);
|
|
776
|
+
let asProp, className, pressed, restProps, schemeProp, selectable, selected, shadow, style, t0, t1, t2, toneProp;
|
|
847
777
|
$[0] !== props ? ({
|
|
848
778
|
__unstable_checkered: t0,
|
|
849
779
|
__unstable_focusRing: t1,
|
|
@@ -852,43 +782,29 @@ const Card = react.forwardRef(function(props, ref) {
|
|
|
852
782
|
pressed,
|
|
853
783
|
radius: t2,
|
|
854
784
|
scheme: schemeProp,
|
|
785
|
+
selectable,
|
|
855
786
|
selected,
|
|
856
787
|
shadow,
|
|
857
788
|
style,
|
|
858
|
-
tone:
|
|
789
|
+
tone: toneProp,
|
|
859
790
|
...restProps
|
|
860
|
-
} = props, $[0] = props, $[1] = asProp, $[2] = className, $[3] = pressed, $[4] = restProps, $[5] = schemeProp, $[6] =
|
|
861
|
-
const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2,
|
|
862
|
-
let
|
|
863
|
-
$[
|
|
864
|
-
|
|
865
|
-
scheme: t5
|
|
866
|
-
}, $[13] = t4, $[14] = t5, $[15] = t6) : t6 = $[15];
|
|
867
|
-
const context = t6, tone = toneProp === "inherit" ? context.tone : toneProp, scheme = schemeProp === void 0 ? context.scheme : schemeProp, t7 = scheme === context.scheme ? void 0 : scheme;
|
|
868
|
-
let t8;
|
|
869
|
-
$[16] !== className || $[17] !== shadow || $[18] !== t7 || $[19] !== tone ? (t8 = css.composeClassNames(className, css.card({
|
|
870
|
-
scheme: t7,
|
|
791
|
+
} = 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]);
|
|
792
|
+
const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2, as = ReactIs.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;
|
|
793
|
+
let t5;
|
|
794
|
+
$[14] !== className || $[15] !== shadow || $[16] !== t3 || $[17] !== t4 ? (t5 = css.composeClassNames(className, css.card({
|
|
795
|
+
scheme: t3,
|
|
871
796
|
shadow,
|
|
872
|
-
tone
|
|
873
|
-
})), $[
|
|
874
|
-
const
|
|
875
|
-
let
|
|
876
|
-
$[
|
|
877
|
-
|
|
878
|
-
if (scheme ===
|
|
797
|
+
tone: t4
|
|
798
|
+
})), $[14] = className, $[15] = shadow, $[16] = t3, $[17] = t4, $[18] = t5) : t5 = $[18];
|
|
799
|
+
const t6 = checkered ? "" : void 0, t7 = focusRing ? "" : void 0, t8 = pressed ? "" : void 0, t9 = selectable ? "" : void 0, t10 = selected ? "" : void 0;
|
|
800
|
+
let t11;
|
|
801
|
+
$[19] !== as || $[20] !== radius || $[21] !== ref || $[22] !== restProps || $[23] !== style || $[24] !== t10 || $[25] !== t5 || $[26] !== t6 || $[27] !== t7 || $[28] !== t8 || $[29] !== t9 ? (t11 = /* @__PURE__ */ jsxRuntime.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];
|
|
802
|
+
const node = t11;
|
|
803
|
+
if (scheme === rootTheme.scheme && tone === rootTheme.tone)
|
|
879
804
|
return node;
|
|
880
|
-
const
|
|
881
|
-
let
|
|
882
|
-
|
|
883
|
-
const t17 = tone ?? context.tone;
|
|
884
|
-
let t18;
|
|
885
|
-
return $[37] !== node || $[38] !== parent.compat_provider || $[39] !== scheme || $[40] !== t17 ? (t18 = react.createElement(parent.compat_provider, {
|
|
886
|
-
children: node,
|
|
887
|
-
scheme,
|
|
888
|
-
tone: t17
|
|
889
|
-
}), $[37] = node, $[38] = parent.compat_provider, $[39] = scheme, $[40] = t17, $[41] = t18) : t18 = $[41], t18;
|
|
890
|
-
}
|
|
891
|
-
return node;
|
|
805
|
+
const t12 = tone ?? rootTheme.tone;
|
|
806
|
+
let t13;
|
|
807
|
+
return $[31] !== node || $[32] !== scheme || $[33] !== t12 ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(ThemeColorProvider, { scheme, tone: t12, children: node }), $[31] = node, $[32] = scheme, $[33] = t12, $[34] = t13) : t13 = $[34], t13;
|
|
892
808
|
});
|
|
893
809
|
Card.displayName = "ForwardRef(Card)";
|
|
894
810
|
const Checkbox = react.forwardRef(function(props, forwardedRef) {
|
|
@@ -944,7 +860,7 @@ const LazyRefractor = react.lazy(() => Promise.resolve().then(function() {
|
|
|
944
860
|
weight,
|
|
945
861
|
...restProps
|
|
946
862
|
} = 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]);
|
|
947
|
-
const As = t0 === void 0 ? "pre" : t0, size2 = t1 === void 0 ?
|
|
863
|
+
const As = t0 === void 0 ? "pre" : t0, size2 = t1 === void 0 ? 1 : t1, language = typeof languageProp == "string" ? languageProp : void 0;
|
|
948
864
|
let t2;
|
|
949
865
|
$[8] !== className || $[9] !== size2 || $[10] !== weight ? (t2 = css.composeClassNames(className, css.code({
|
|
950
866
|
size: size2,
|
|
@@ -1020,7 +936,7 @@ const Heading = react.forwardRef(function(props, ref) {
|
|
|
1020
936
|
weight,
|
|
1021
937
|
...restProps
|
|
1022
938
|
} = 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]);
|
|
1023
|
-
const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ?
|
|
939
|
+
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;
|
|
1024
940
|
let t4;
|
|
1025
941
|
$[12] !== accent || $[13] !== align || $[14] !== className || $[15] !== flex || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t4 = css.composeClassNames(className, css.heading({
|
|
1026
942
|
accent,
|
|
@@ -1075,13 +991,13 @@ const KBD = react.forwardRef(function(props, ref) {
|
|
|
1075
991
|
radius: t4,
|
|
1076
992
|
...restProps
|
|
1077
993
|
} = 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]);
|
|
1078
|
-
const as = t0 === void 0 ? "kbd" : t0, display = t1 === void 0 ? "inline-block" : t1, fontSize = t2 === void 0 ?
|
|
994
|
+
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;
|
|
1079
995
|
let t5;
|
|
1080
996
|
$[9] !== className || $[10] !== radius ? (t5 = css.composeClassNames(className, css.kbd({
|
|
1081
997
|
radius
|
|
1082
998
|
})), $[9] = className, $[10] = radius, $[11] = t5) : t5 = $[11];
|
|
1083
999
|
let t6;
|
|
1084
|
-
$[12] !== children || $[13] !== fontSize ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Text, { as: "span", muted: !0, size: fontSize,
|
|
1000
|
+
$[12] !== children || $[13] !== fontSize ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Text, { as: "span", muted: !0, size: fontSize, children }), $[12] = children, $[13] = fontSize, $[14] = t6) : t6 = $[14];
|
|
1085
1001
|
let t7;
|
|
1086
1002
|
return $[15] !== as || $[16] !== display || $[17] !== padding || $[18] !== ref || $[19] !== restProps || $[20] !== t5 || $[21] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.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;
|
|
1087
1003
|
});
|
|
@@ -1255,16 +1171,16 @@ function ConditionalWrapper({
|
|
|
1255
1171
|
return condition ? wrapper(children) : children;
|
|
1256
1172
|
}
|
|
1257
1173
|
ConditionalWrapper.displayName = "ConditionalWrapper";
|
|
1258
|
-
function findMaxBreakpoints(
|
|
1174
|
+
function findMaxBreakpoints(media, width) {
|
|
1259
1175
|
const ret = [];
|
|
1260
|
-
for (let i = 0; i <
|
|
1261
|
-
|
|
1176
|
+
for (let i = 0; i < media.length; i += 1)
|
|
1177
|
+
media[i] > width && ret.push(i);
|
|
1262
1178
|
return ret;
|
|
1263
1179
|
}
|
|
1264
|
-
function findMinBreakpoints(
|
|
1180
|
+
function findMinBreakpoints(media, width) {
|
|
1265
1181
|
const ret = [];
|
|
1266
|
-
for (let i = 0; i <
|
|
1267
|
-
|
|
1182
|
+
for (let i = 0; i < media.length; i += 1)
|
|
1183
|
+
media[i] <= width && ret.push(i);
|
|
1268
1184
|
return ret;
|
|
1269
1185
|
}
|
|
1270
1186
|
const ElementQuery = react.forwardRef(function(props, forwardedRef) {
|
|
@@ -1275,22 +1191,22 @@ const ElementQuery = react.forwardRef(function(props, forwardedRef) {
|
|
|
1275
1191
|
media: _media,
|
|
1276
1192
|
...restProps
|
|
1277
1193
|
} = props, $[0] = props, $[1] = _media, $[2] = children, $[3] = restProps) : (_media = $[1], children = $[2], restProps = $[3]);
|
|
1278
|
-
const
|
|
1194
|
+
const media = _media ?? theme2.media, [element, setElement] = react.useState(null), elementSize = useElementSize(element);
|
|
1279
1195
|
let t0;
|
|
1280
1196
|
t0 = elementSize?.border.width ?? window.innerWidth;
|
|
1281
1197
|
const width = t0;
|
|
1282
1198
|
let t1, t2;
|
|
1283
|
-
if ($[4] !==
|
|
1284
|
-
const eq = findMaxBreakpoints(
|
|
1285
|
-
t2 = eq.length ? eq.join(" ") : void 0, $[4] =
|
|
1199
|
+
if ($[4] !== media || $[5] !== width) {
|
|
1200
|
+
const eq = findMaxBreakpoints(media, width);
|
|
1201
|
+
t2 = eq.length ? eq.join(" ") : void 0, $[4] = media, $[5] = width, $[6] = t2;
|
|
1286
1202
|
} else
|
|
1287
1203
|
t2 = $[6];
|
|
1288
1204
|
t1 = t2;
|
|
1289
1205
|
const max = t1;
|
|
1290
1206
|
let t3, t4;
|
|
1291
|
-
if ($[7] !==
|
|
1292
|
-
const eq_0 = findMinBreakpoints(
|
|
1293
|
-
t4 = eq_0.length ? eq_0.join(" ") : void 0, $[7] =
|
|
1207
|
+
if ($[7] !== media || $[8] !== width) {
|
|
1208
|
+
const eq_0 = findMinBreakpoints(media, width);
|
|
1209
|
+
t4 = eq_0.length ? eq_0.join(" ") : void 0, $[7] = media, $[8] = width, $[9] = t4;
|
|
1294
1210
|
} else
|
|
1295
1211
|
t4 = $[9];
|
|
1296
1212
|
t3 = t4;
|
|
@@ -1318,7 +1234,7 @@ function LayerProvider(props) {
|
|
|
1318
1234
|
} = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue = react.useContext(LayerContext);
|
|
1319
1235
|
let t1;
|
|
1320
1236
|
$[0] !== parentContextValue ? (t1 = parentContextValue && getLayerContext(parentContextValue), $[0] = parentContextValue, $[1] = t1) : t1 = $[1];
|
|
1321
|
-
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 +
|
|
1237
|
+
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];
|
|
1322
1238
|
let t2;
|
|
1323
1239
|
$[2] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {}, $[2] = t2) : t2 = $[2];
|
|
1324
1240
|
const [, setChildLayers] = react.useState(t2), [size2, setSize] = react.useState(0), isTopLayer = size2 === 0;
|
|
@@ -1445,19 +1361,14 @@ function usePortal() {
|
|
|
1445
1361
|
return value;
|
|
1446
1362
|
}
|
|
1447
1363
|
function Portal(props) {
|
|
1448
|
-
const $ = reactCompilerRuntime.c(
|
|
1364
|
+
const $ = reactCompilerRuntime.c(3), {
|
|
1449
1365
|
children,
|
|
1450
1366
|
__unstable_name: name
|
|
1451
|
-
} = props,
|
|
1367
|
+
} = props, portal = usePortal(), portalElement = (name ? portal.elements && portal.elements[name] : portal.element) || portal.elements?.default;
|
|
1452
1368
|
if (!portalElement)
|
|
1453
1369
|
return null;
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
return $[0] !== children || $[1] !== portalElement || $[2] !== t0 ? (t1 = reactDom.createPortal(react.createElement(CardProvider, {
|
|
1457
|
-
rendered: !0,
|
|
1458
|
-
tone: "transparent",
|
|
1459
|
-
scheme: t0
|
|
1460
|
-
}, children), portalElement), $[0] = children, $[1] = portalElement, $[2] = t0, $[3] = t1) : t1 = $[3], t1;
|
|
1370
|
+
let t0;
|
|
1371
|
+
return $[0] !== children || $[1] !== portalElement ? (t0 = reactDom.createPortal(children, portalElement), $[0] = children, $[1] = portalElement, $[2] = t0) : t0 = $[2], t0;
|
|
1461
1372
|
}
|
|
1462
1373
|
Portal.displayName = "Portal";
|
|
1463
1374
|
function PortalProvider(props) {
|
|
@@ -1598,7 +1509,7 @@ const VirtualList = react.forwardRef(function(props, forwardedRef) {
|
|
|
1598
1509
|
let t123;
|
|
1599
1510
|
$[26] !== items[0] || $[27] !== renderItem ? (t123 = renderItem(items[0]), $[26] = items[0], $[27] = renderItem, $[28] = t123) : t123 = $[28];
|
|
1600
1511
|
let t132;
|
|
1601
|
-
$[29] !== t123 ? (t132 = [/* @__PURE__ */ jsxRuntime.jsx(Box, { insetTop: 0, insetLeft: 0,
|
|
1512
|
+
$[29] !== t123 ? (t132 = [/* @__PURE__ */ jsxRuntime.jsx(Box, { insetTop: 0, insetLeft: 0, position: "absolute", children: t123 }, 0)], $[29] = t123, $[30] = t132) : t132 = $[30], t11 = t132;
|
|
1602
1513
|
break bb0;
|
|
1603
1514
|
}
|
|
1604
1515
|
let t122;
|
|
@@ -1606,7 +1517,7 @@ const VirtualList = react.forwardRef(function(props, forwardedRef) {
|
|
|
1606
1517
|
let t132;
|
|
1607
1518
|
$[40] !== fromIndex || $[41] !== gap || $[42] !== getItemKey || $[43] !== itemHeight || $[44] !== renderItem || $[45] !== space ? (t132 = (item, _itemIndex) => {
|
|
1608
1519
|
const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
|
|
1609
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Box, { insetLeft: 0,
|
|
1520
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Box, { insetLeft: 0, position: "absolute", style: {
|
|
1610
1521
|
top: itemIndex * (itemHeight + space[gap])
|
|
1611
1522
|
}, children: node }, key2);
|
|
1612
1523
|
}, $[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;
|
|
@@ -1687,9 +1598,25 @@ function size(options) {
|
|
|
1687
1598
|
}
|
|
1688
1599
|
};
|
|
1689
1600
|
}
|
|
1601
|
+
function calcCurrentWidth(params) {
|
|
1602
|
+
const {
|
|
1603
|
+
container,
|
|
1604
|
+
mediaIndex,
|
|
1605
|
+
width
|
|
1606
|
+
} = params, w = width[mediaIndex], currentWidth = w === void 0 ? width[width.length - 1] : w;
|
|
1607
|
+
return typeof currentWidth == "number" ? container[currentWidth] : void 0;
|
|
1608
|
+
}
|
|
1609
|
+
function calcMaxWidth(params) {
|
|
1610
|
+
const {
|
|
1611
|
+
boundaryWidth,
|
|
1612
|
+
currentWidth
|
|
1613
|
+
} = params;
|
|
1614
|
+
if (!(currentWidth === void 0 && boundaryWidth === void 0))
|
|
1615
|
+
return Math.min(currentWidth ?? 1 / 0, (boundaryWidth || 1 / 0) - DEFAULT_POPOVER_PADDING * 2);
|
|
1616
|
+
}
|
|
1690
1617
|
const MotionCard$1 = framerMotion.motion.create(Card), PopoverCard = react.memo(react.forwardRef(function(props, ref) {
|
|
1691
|
-
const $ = reactCompilerRuntime.c(
|
|
1692
|
-
let animate, arrow, arrowRef, arrowX, arrowY, children, marginsProp,
|
|
1618
|
+
const $ = reactCompilerRuntime.c(66);
|
|
1619
|
+
let animate, arrow, arrowRef, arrowX, arrowY, children, marginsProp, originX, originY, overflow, padding, placement, radius, referenceWidth, restProps, scheme, shadow, strategy, style, tone, xProp, yProp;
|
|
1693
1620
|
$[0] !== props ? ({
|
|
1694
1621
|
__unstable_margins: marginsProp,
|
|
1695
1622
|
animate,
|
|
@@ -1698,7 +1625,6 @@ const MotionCard$1 = framerMotion.motion.create(Card), PopoverCard = react.memo(
|
|
|
1698
1625
|
arrowX,
|
|
1699
1626
|
arrowY,
|
|
1700
1627
|
children,
|
|
1701
|
-
maxWidth,
|
|
1702
1628
|
padding,
|
|
1703
1629
|
placement,
|
|
1704
1630
|
originX,
|
|
@@ -1714,58 +1640,55 @@ const MotionCard$1 = framerMotion.motion.create(Card), PopoverCard = react.memo(
|
|
|
1714
1640
|
x: xProp,
|
|
1715
1641
|
y: yProp,
|
|
1716
1642
|
...restProps
|
|
1717
|
-
} = props, $[0] = props, $[1] = animate, $[2] = arrow, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = marginsProp, $[8] =
|
|
1718
|
-
const
|
|
1643
|
+
} = props, $[0] = props, $[1] = animate, $[2] = arrow, $[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], arrow = $[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]);
|
|
1644
|
+
const {
|
|
1645
|
+
zIndex
|
|
1646
|
+
} = useLayer();
|
|
1719
1647
|
let t0;
|
|
1720
1648
|
t0 = marginsProp || DEFAULT_POPOVER_MARGINS;
|
|
1721
1649
|
const margins = t0, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0];
|
|
1722
1650
|
let t1;
|
|
1723
|
-
const t2 =
|
|
1724
|
-
let
|
|
1725
|
-
$[
|
|
1651
|
+
const t2 = animate ? "transform" : void 0;
|
|
1652
|
+
let t3;
|
|
1653
|
+
$[23] !== originX || $[24] !== originY || $[25] !== referenceWidth || $[26] !== strategy || $[27] !== style || $[28] !== t2 || $[29] !== x || $[30] !== y || $[31] !== zIndex ? (t3 = {
|
|
1726
1654
|
left: x,
|
|
1727
1655
|
originX,
|
|
1728
1656
|
originY,
|
|
1729
1657
|
position: strategy,
|
|
1730
1658
|
top: y,
|
|
1731
1659
|
width: referenceWidth,
|
|
1732
|
-
zIndex
|
|
1733
|
-
willChange:
|
|
1660
|
+
zIndex,
|
|
1661
|
+
willChange: t2,
|
|
1734
1662
|
...style
|
|
1735
|
-
}, $[
|
|
1663
|
+
}, $[23] = originX, $[24] = originY, $[25] = referenceWidth, $[26] = strategy, $[27] = style, $[28] = t2, $[29] = x, $[30] = y, $[31] = zIndex, $[32] = t3) : t3 = $[32], t1 = t3;
|
|
1736
1664
|
const rootStyle = t1;
|
|
1737
|
-
let
|
|
1738
|
-
const
|
|
1739
|
-
let
|
|
1740
|
-
$[
|
|
1741
|
-
left:
|
|
1742
|
-
top:
|
|
1665
|
+
let t4;
|
|
1666
|
+
const t5 = arrowX !== null ? arrowX : void 0, t6 = arrowY !== null ? arrowY : void 0;
|
|
1667
|
+
let t7;
|
|
1668
|
+
$[33] !== t5 || $[34] !== t6 ? (t7 = {
|
|
1669
|
+
left: t5,
|
|
1670
|
+
top: t6,
|
|
1743
1671
|
right: void 0,
|
|
1744
1672
|
bottom: void 0
|
|
1745
|
-
}, $[
|
|
1746
|
-
const arrowStyle =
|
|
1673
|
+
}, $[33] = t5, $[34] = t6, $[35] = t7) : t7 = $[35], t4 = t7;
|
|
1674
|
+
const arrowStyle = t4, t8 = restProps;
|
|
1675
|
+
let t9;
|
|
1676
|
+
$[36] !== animate ? (t9 = animate ? ["hidden", "initial"] : void 0, $[36] = animate, $[37] = t9) : t9 = $[37];
|
|
1677
|
+
let t10;
|
|
1678
|
+
$[38] !== animate ? (t10 = animate ? ["visible", "scaleIn"] : void 0, $[38] = animate, $[39] = t10) : t10 = $[39];
|
|
1747
1679
|
let t11;
|
|
1748
|
-
$[
|
|
1749
|
-
|
|
1680
|
+
$[40] !== animate ? (t11 = animate ? ["hidden", "scaleOut"] : void 0, $[40] = animate, $[41] = t11) : t11 = $[41];
|
|
1681
|
+
let t12;
|
|
1682
|
+
$[42] !== children || $[43] !== padding ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(Flex, { direction: "column", flex: 1, padding, children }), $[42] = children, $[43] = padding, $[44] = t12) : t12 = $[44];
|
|
1683
|
+
let t13;
|
|
1684
|
+
$[45] !== overflow || $[46] !== t12 ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(Flex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, overflow, children: t12 }), $[45] = overflow, $[46] = t12, $[47] = t13) : t13 = $[47];
|
|
1750
1685
|
let t14;
|
|
1751
|
-
$[
|
|
1686
|
+
$[48] !== arrow || $[49] !== arrowRef || $[50] !== arrowStyle ? (t14 = arrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[48] = arrow, $[49] = arrowRef, $[50] = arrowStyle, $[51] = t14) : t14 = $[51];
|
|
1752
1687
|
let t15;
|
|
1753
|
-
$[
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
$[44] !== children || $[45] !== padding ? (t17 = /* @__PURE__ */ jsxRuntime.jsx(Flex, { direction: "column", flex: 1, padding, children }), $[44] = children, $[45] = padding, $[46] = t17) : t17 = $[46];
|
|
1758
|
-
let t18;
|
|
1759
|
-
$[47] !== maxWidth || $[48] !== overflow || $[49] !== t17 ? (t18 = /* @__PURE__ */ jsxRuntime.jsx(Flex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, maxWidth, overflow, children: t17 }), $[47] = maxWidth, $[48] = overflow, $[49] = t17, $[50] = t18) : t18 = $[50];
|
|
1760
|
-
let t19;
|
|
1761
|
-
$[51] !== arrow || $[52] !== arrowRef || $[53] !== arrowStyle ? (t19 = arrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[51] = arrow, $[52] = arrowRef, $[53] = arrowStyle, $[54] = t19) : t19 = $[54];
|
|
1762
|
-
let t20;
|
|
1763
|
-
$[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__ */ jsxRuntime.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: [
|
|
1764
|
-
t18,
|
|
1765
|
-
t19
|
|
1766
|
-
] }), $[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];
|
|
1767
|
-
let t21;
|
|
1768
|
-
return $[70] !== t10 || $[71] !== t20 || $[72] !== t9 ? (t21 = /* @__PURE__ */ jsxRuntime.jsx(CardProvider, { tone: t9, scheme: t10, children: t20 }), $[70] = t10, $[71] = t20, $[72] = t9, $[73] = t21) : t21 = $[73], t21;
|
|
1688
|
+
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__ */ jsxRuntime.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: [
|
|
1689
|
+
t13,
|
|
1690
|
+
t14
|
|
1691
|
+
] }), $[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;
|
|
1769
1692
|
}));
|
|
1770
1693
|
PopoverCard.displayName = "Memo(ForwardRef(PopoverCard))";
|
|
1771
1694
|
const ViewportOverlay = () => {
|
|
@@ -1781,11 +1704,13 @@ const ViewportOverlay = () => {
|
|
|
1781
1704
|
zIndex
|
|
1782
1705
|
} }), $[0] = zIndex, $[1] = t0) : t0 = $[1], t0;
|
|
1783
1706
|
}, Popover = react.memo(react.forwardRef(function(props, forwardedRef) {
|
|
1784
|
-
const
|
|
1707
|
+
const {
|
|
1708
|
+
container,
|
|
1709
|
+
layer
|
|
1710
|
+
} = useTheme_v2(), boundaryElementContext = useBoundaryElement(), {
|
|
1785
1711
|
__unstable_margins: margins = DEFAULT_POPOVER_MARGINS,
|
|
1786
1712
|
animate: _animate = !1,
|
|
1787
1713
|
arrow: arrowProp = !1,
|
|
1788
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1789
1714
|
boundaryElement = boundaryElementContext.element,
|
|
1790
1715
|
children: childProp,
|
|
1791
1716
|
constrainSize = !1,
|
|
@@ -1810,13 +1735,34 @@ const ViewportOverlay = () => {
|
|
|
1810
1735
|
shadow = 3,
|
|
1811
1736
|
tone = "inherit",
|
|
1812
1737
|
width: widthProp = "auto",
|
|
1813
|
-
|
|
1814
|
-
zOffset: zOffsetProp = Z_OFFSETS.popover,
|
|
1738
|
+
zOffset: zOffsetProp = layer.popover.zOffset,
|
|
1815
1739
|
updateRef,
|
|
1816
1740
|
...restProps
|
|
1817
|
-
} = props, animate = usePrefersReducedMotion() ? !1 : _animate, zOffset = useArrayProp(zOffsetProp), ref = react.useRef(null), arrowRef = react.useRef(null), rootBoundary = "viewport";
|
|
1741
|
+
} = props, animate = usePrefersReducedMotion() ? !1 : _animate, boundarySize = useElementSize(boundaryElement)?.border, widthArrayProp = useArrayProp(widthProp), zOffset = useArrayProp(zOffsetProp), ref = react.useRef(null), arrowRef = react.useRef(null), rootBoundary = "viewport";
|
|
1818
1742
|
react.useImperativeHandle(forwardedRef, () => ref.current);
|
|
1819
|
-
const
|
|
1743
|
+
const mediaIndex = useMediaIndex(), boundaryWidth = constrainSize || preventOverflow ? boundarySize?.width : void 0, width = calcCurrentWidth({
|
|
1744
|
+
container,
|
|
1745
|
+
mediaIndex,
|
|
1746
|
+
width: widthArrayProp
|
|
1747
|
+
}), widthRef = react.useRef(width);
|
|
1748
|
+
react.useEffect(() => {
|
|
1749
|
+
widthRef.current = width;
|
|
1750
|
+
}, [width]);
|
|
1751
|
+
const maxWidth = calcMaxWidth({
|
|
1752
|
+
boundaryWidth,
|
|
1753
|
+
currentWidth: width
|
|
1754
|
+
}), maxWidthRef = react.useRef(maxWidth);
|
|
1755
|
+
react.useEffect(() => {
|
|
1756
|
+
maxWidthRef.current = maxWidth;
|
|
1757
|
+
}, [maxWidth]);
|
|
1758
|
+
const referenceWidthRef = react.useRef(void 0);
|
|
1759
|
+
react.useEffect(() => {
|
|
1760
|
+
const floatingElement = ref.current;
|
|
1761
|
+
if (!open || !floatingElement) return;
|
|
1762
|
+
const referenceWidth = referenceWidthRef.current;
|
|
1763
|
+
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`);
|
|
1764
|
+
}, [width, matchReferenceWidth, maxWidth, open]);
|
|
1765
|
+
const middleware = react.useMemo(() => {
|
|
1820
1766
|
const ret = [];
|
|
1821
1767
|
return (constrainSize || preventOverflow) && ret.push(reactDom$1.flip({
|
|
1822
1768
|
boundary: floatingBoundary || void 0,
|
|
@@ -1830,9 +1776,11 @@ const ViewportOverlay = () => {
|
|
|
1830
1776
|
availableWidth,
|
|
1831
1777
|
availableHeight,
|
|
1832
1778
|
elements,
|
|
1833
|
-
referenceWidth
|
|
1779
|
+
referenceWidth: referenceWidth_0
|
|
1834
1780
|
}) {
|
|
1835
|
-
referenceWidthRef.current =
|
|
1781
|
+
referenceWidthRef.current = referenceWidth_0;
|
|
1782
|
+
const _currentWidth = widthRef.current, _maxWidth = maxWidthRef.current;
|
|
1783
|
+
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`);
|
|
1836
1784
|
},
|
|
1837
1785
|
boundaryElement: floatingBoundary || void 0,
|
|
1838
1786
|
margins,
|
|
@@ -1881,34 +1829,7 @@ const ViewportOverlay = () => {
|
|
|
1881
1829
|
return childProp || /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
1882
1830
|
const popover = /* @__PURE__ */ jsxRuntime.jsxs(LayerProvider, { zOffset, children: [
|
|
1883
1831
|
modal && /* @__PURE__ */ jsxRuntime.jsx(ViewportOverlay, {}),
|
|
1884
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1885
|
-
PopoverCard,
|
|
1886
|
-
{
|
|
1887
|
-
...restProps,
|
|
1888
|
-
__unstable_margins: margins,
|
|
1889
|
-
animate,
|
|
1890
|
-
arrow: arrowProp,
|
|
1891
|
-
arrowRef: setArrow,
|
|
1892
|
-
arrowX,
|
|
1893
|
-
arrowY,
|
|
1894
|
-
hidden: referenceHidden,
|
|
1895
|
-
maxWidth: widthProp,
|
|
1896
|
-
overflow,
|
|
1897
|
-
padding,
|
|
1898
|
-
placement,
|
|
1899
|
-
radius,
|
|
1900
|
-
ref: setFloating,
|
|
1901
|
-
scheme,
|
|
1902
|
-
shadow,
|
|
1903
|
-
originX,
|
|
1904
|
-
originY,
|
|
1905
|
-
strategy,
|
|
1906
|
-
tone,
|
|
1907
|
-
x,
|
|
1908
|
-
y,
|
|
1909
|
-
children: content
|
|
1910
|
-
}
|
|
1911
|
-
)
|
|
1832
|
+
/* @__PURE__ */ jsxRuntime.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 })
|
|
1912
1833
|
] }), children = open && (portal ? /* @__PURE__ */ jsxRuntime.jsx(Portal, { __unstable_name: typeof portal == "string" ? portal : void 0, children: popover }) : popover);
|
|
1913
1834
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1914
1835
|
animate ? /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children }) : children,
|
|
@@ -1964,7 +1885,7 @@ const Select = react.forwardRef(function(props, forwardedRef) {
|
|
|
1964
1885
|
space: t4,
|
|
1965
1886
|
...restProps
|
|
1966
1887
|
} = 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]);
|
|
1967
|
-
const border = t0 === void 0 ? !0 : t0, fontSize = t1 === void 0 ?
|
|
1888
|
+
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 = react.useRef(null);
|
|
1968
1889
|
let t5;
|
|
1969
1890
|
$[12] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[12] = t5) : t5 = $[12], react.useImperativeHandle(forwardedRef, t5), useCustomValidity(ref, customValidity);
|
|
1970
1891
|
const t6 = gap ?? space;
|
|
@@ -1998,20 +1919,17 @@ const Select = react.forwardRef(function(props, forwardedRef) {
|
|
|
1998
1919
|
});
|
|
1999
1920
|
Select.displayName = "ForwardRef(Select)";
|
|
2000
1921
|
const Stack = react.forwardRef(function(props, ref) {
|
|
2001
|
-
const $ = reactCompilerRuntime.c(
|
|
2002
|
-
let as,
|
|
1922
|
+
const $ = reactCompilerRuntime.c(10);
|
|
1923
|
+
let as, gap, restProps, space;
|
|
2003
1924
|
$[0] !== props ? ({
|
|
2004
1925
|
as,
|
|
2005
|
-
className,
|
|
2006
1926
|
gap,
|
|
2007
1927
|
space,
|
|
2008
1928
|
...restProps
|
|
2009
|
-
} = props, $[0] = props, $[1] = as, $[2] =
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
let t2;
|
|
2014
|
-
return $[8] !== as || $[9] !== ref || $[10] !== restProps || $[11] !== t0 || $[12] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.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;
|
|
1929
|
+
} = props, $[0] = props, $[1] = as, $[2] = gap, $[3] = restProps, $[4] = space) : (as = $[1], gap = $[2], restProps = $[3], space = $[4]);
|
|
1930
|
+
const t0 = gap ?? space;
|
|
1931
|
+
let t1;
|
|
1932
|
+
return $[5] !== as || $[6] !== ref || $[7] !== restProps || $[8] !== t0 ? (t1 = /* @__PURE__ */ jsxRuntime.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;
|
|
2015
1933
|
});
|
|
2016
1934
|
Stack.displayName = "ForwardRef(Stack)";
|
|
2017
1935
|
const Switch = react.forwardRef(function(props, forwardedRef) {
|
|
@@ -2127,7 +2045,7 @@ const CLEAR_BUTTON_BOX_STYLE = {
|
|
|
2127
2045
|
__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;
|
|
2128
2046
|
} else
|
|
2129
2047
|
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];
|
|
2130
|
-
const border = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSize = t2 === void 0 ?
|
|
2048
|
+
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 = react.useRef(null), paddingArray = useArrayProp(padding), withClearButton = !!clearButton;
|
|
2131
2049
|
let t7;
|
|
2132
2050
|
$[21] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[21] = t7) : t7 = $[21], react.useImperativeHandle(forwardedRef, t7), useCustomValidity(ref, customValidity);
|
|
2133
2051
|
const handleClearMouseDown = _temp;
|
|
@@ -2328,6 +2246,8 @@ function useTooltipDelayGroup() {
|
|
|
2328
2246
|
}
|
|
2329
2247
|
const Tooltip = react.forwardRef(function(props, forwardedRef) {
|
|
2330
2248
|
const boundaryElementContext = useBoundaryElement(), {
|
|
2249
|
+
layer
|
|
2250
|
+
} = useTheme_v2(), {
|
|
2331
2251
|
animate: _animate = !1,
|
|
2332
2252
|
arrow: arrowProp = !1,
|
|
2333
2253
|
boundaryElement = boundaryElementContext?.element,
|
|
@@ -2343,7 +2263,7 @@ const Tooltip = react.forwardRef(function(props, forwardedRef) {
|
|
|
2343
2263
|
radius = 3,
|
|
2344
2264
|
scheme,
|
|
2345
2265
|
shadow = 2,
|
|
2346
|
-
zOffset =
|
|
2266
|
+
zOffset = layer.tooltip.zOffset,
|
|
2347
2267
|
tone,
|
|
2348
2268
|
...restProps
|
|
2349
2269
|
} = props, animate = usePrefersReducedMotion() ? !1 : _animate, fallbackPlacements = useArrayProp(fallbackPlacementsProp), ref = react.useRef(null), [referenceElement, setReferenceElement] = react.useState(null), arrowRef = react.useRef(null), rootBoundary = "viewport", [tooltipMaxWidth, setTooltipMaxWidth] = react.useState(0);
|
|
@@ -2486,7 +2406,7 @@ function useCloseOnMouseLeave(t0) {
|
|
|
2486
2406
|
$[7] !== isInsideGroup || $[8] !== showTooltip ? (t3 = [isInsideGroup, showTooltip], $[7] = isInsideGroup, $[8] = showTooltip, $[9] = t3) : t3 = $[9], react.useEffect(t2, t3);
|
|
2487
2407
|
}
|
|
2488
2408
|
const Hotkeys = react.forwardRef(function(props, ref) {
|
|
2489
|
-
const $ = reactCompilerRuntime.c(
|
|
2409
|
+
const $ = reactCompilerRuntime.c(30);
|
|
2490
2410
|
let fontSize, gap, gapX, gapY, keys, padding, radius, restProps, t0;
|
|
2491
2411
|
$[0] !== props ? ({
|
|
2492
2412
|
fontSize,
|
|
@@ -2499,18 +2419,22 @@ const Hotkeys = react.forwardRef(function(props, ref) {
|
|
|
2499
2419
|
space: t0,
|
|
2500
2420
|
...restProps
|
|
2501
2421
|
} = 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]);
|
|
2502
|
-
const space = t0 === void 0 ?
|
|
2503
|
-
if (!keys || keys.length === 0)
|
|
2504
|
-
|
|
2422
|
+
const space = t0 === void 0 ? 1 : t0;
|
|
2423
|
+
if (!keys || keys.length === 0) {
|
|
2424
|
+
let t12;
|
|
2425
|
+
return $[10] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {}), $[10] = t12) : t12 = $[10], t12;
|
|
2426
|
+
}
|
|
2505
2427
|
const t1 = gap ?? space;
|
|
2506
2428
|
let t2;
|
|
2507
|
-
if ($[
|
|
2429
|
+
if ($[11] !== fontSize || $[12] !== keys || $[13] !== padding || $[14] !== radius) {
|
|
2508
2430
|
let t32;
|
|
2509
|
-
$[
|
|
2431
|
+
$[16] !== fontSize || $[17] !== padding || $[18] !== radius ? (t32 = (key2, i) => /* @__PURE__ */ jsxRuntime.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;
|
|
2510
2432
|
} else
|
|
2511
|
-
t2 = $[
|
|
2433
|
+
t2 = $[15];
|
|
2512
2434
|
let t3;
|
|
2513
|
-
|
|
2435
|
+
$[20] !== gap || $[21] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(Inline, { as: "span", gap, children: t2 }), $[20] = gap, $[21] = t2, $[22] = t3) : t3 = $[22];
|
|
2436
|
+
let t4;
|
|
2437
|
+
return $[23] !== gapX || $[24] !== gapY || $[25] !== ref || $[26] !== restProps || $[27] !== t1 || $[28] !== t3 ? (t4 = /* @__PURE__ */ jsxRuntime.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;
|
|
2514
2438
|
});
|
|
2515
2439
|
Hotkeys.displayName = "ForwardRef(Hotkeys)";
|
|
2516
2440
|
const MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
|
|
@@ -3051,7 +2975,6 @@ exports.BoundaryElementProvider = BoundaryElementProvider;
|
|
|
3051
2975
|
exports.Box = Box;
|
|
3052
2976
|
exports.Button = Button;
|
|
3053
2977
|
exports.Card = Card;
|
|
3054
|
-
exports.CardProvider = CardProvider;
|
|
3055
2978
|
exports.Checkbox = Checkbox;
|
|
3056
2979
|
exports.Code = Code;
|
|
3057
2980
|
exports.ConditionalWrapper = ConditionalWrapper;
|
|
@@ -3093,7 +3016,6 @@ exports.Tooltip = Tooltip;
|
|
|
3093
3016
|
exports.TooltipDelayGroupContext = TooltipDelayGroupContext;
|
|
3094
3017
|
exports.TooltipDelayGroupProvider = TooltipDelayGroupProvider;
|
|
3095
3018
|
exports.VirtualList = VirtualList;
|
|
3096
|
-
exports.Z_OFFSETS = Z_OFFSETS;
|
|
3097
3019
|
exports._ResizeObserver = _ResizeObserver;
|
|
3098
3020
|
exports._elementSizeObserver = _elementSizeObserver;
|
|
3099
3021
|
exports._getArrayProp = _getArrayProp;
|
|
@@ -3120,7 +3042,6 @@ exports.screen = screen;
|
|
|
3120
3042
|
exports.studioTheme = studioTheme;
|
|
3121
3043
|
exports.useArrayProp = useArrayProp;
|
|
3122
3044
|
exports.useBoundaryElement = useBoundaryElement;
|
|
3123
|
-
exports.useCard = useCard;
|
|
3124
3045
|
exports.useClickOutsideEvent = useClickOutsideEvent;
|
|
3125
3046
|
exports.useCustomValidity = useCustomValidity;
|
|
3126
3047
|
exports.useElementSize = useElementSize;
|