@sanity/ui 3.0.0-static.20 → 3.0.0-static.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/_chunks-cjs/_visual-editing.cjs +198 -862
- package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -1
- package/dist/_chunks-cjs/refractor.cjs +0 -1
- package/dist/_chunks-cjs/refractor.cjs.map +1 -1
- package/dist/_chunks-es/_visual-editing.js +211 -874
- package/dist/_chunks-es/_visual-editing.js.map +1 -1
- package/dist/_chunks-es/refractor.js +0 -1
- package/dist/_chunks-es/refractor.js.map +1 -1
- package/dist/_visual-editing.d.cts +34 -100
- package/dist/_visual-editing.d.ts +34 -100
- package/dist/css.cjs +368 -4123
- package/dist/css.cjs.map +1 -1
- package/dist/css.d.cts +13095 -8462
- package/dist/css.d.ts +13095 -8462
- package/dist/css.js +368 -4124
- package/dist/css.js.map +1 -1
- package/dist/index.cjs +769 -141
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +93 -287
- package/dist/index.d.ts +93 -287
- package/dist/index.js +740 -112
- package/dist/index.js.map +1 -1
- package/dist/theme.cjs +31 -10
- package/dist/theme.cjs.map +1 -1
- package/dist/theme.d.cts +2 -2
- package/dist/theme.d.ts +2 -2
- package/dist/theme.js +31 -10
- package/dist/theme.js.map +1 -1
- package/dist/ui.css +21459 -24610
- package/package.json +17 -12
- package/src/cli/buildCommand.ts +1 -91
- package/src/core/_compat/theme/themeColorProvider.tsx +0 -2
- package/src/core/_compat/theme/themeProvider.tsx +0 -2
- package/src/core/components/autocomplete/autocomplete.tsx +15 -15
- package/src/core/components/autocomplete/autocompleteOption.tsx +0 -2
- package/src/core/components/breadcrumbs/breadcrumbs.tsx +2 -4
- package/src/core/components/dialog/dialog.tsx +9 -13
- package/src/core/components/dialog/dialogCard.tsx +2 -10
- package/src/core/components/dialog/dialogContext.ts +4 -2
- package/src/core/components/dialog/dialogProvider.tsx +3 -4
- package/src/core/components/hotkeys/hotkeys.tsx +0 -2
- package/src/core/components/menu/menu.tsx +2 -4
- package/src/core/components/menu/menuButton.tsx +0 -2
- package/src/core/components/menu/menuDivider.tsx +2 -4
- package/src/core/components/menu/menuGroup.tsx +0 -2
- package/src/core/components/menu/menuItem.tsx +2 -4
- package/src/core/components/skeleton/codeSkeleton.tsx +6 -10
- package/src/core/components/skeleton/headingSkeleton.tsx +6 -10
- package/src/core/components/skeleton/labelSkeleton.tsx +6 -10
- package/src/core/components/skeleton/skeleton.tsx +4 -8
- package/src/core/components/skeleton/textSkeleton.tsx +6 -10
- package/src/core/components/tab/tab.tsx +0 -2
- package/src/core/components/tab/tabList.tsx +0 -2
- package/src/core/components/tab/tabPanel.tsx +0 -2
- package/src/core/components/toast/toast.tsx +6 -36
- package/src/core/components/toast/toastLayer.tsx +0 -2
- package/src/core/components/toast/toastProvider.tsx +2 -3
- package/src/core/components/tree/tree.tsx +0 -2
- package/src/core/components/tree/treeGroup.tsx +0 -2
- package/src/core/components/tree/treeItem.tsx +3 -5
- package/src/core/helpers/props.ts +18 -0
- package/src/core/hooks/index.ts +1 -0
- package/src/core/hooks/useArrayProp.ts +1 -4
- package/src/core/hooks/useResponsiveProp.ts +28 -0
- package/src/core/index.ts +0 -1
- package/src/core/lib/isArray.ts +3 -0
- package/src/core/primitives/_selectable/selectable.tsx +2 -6
- package/src/core/primitives/avatar/avatar.tsx +15 -17
- package/src/core/primitives/avatar/avatarCounter.tsx +14 -15
- package/src/core/primitives/avatar/avatarStack.tsx +14 -22
- package/src/core/primitives/badge/badge.tsx +3 -10
- package/src/core/primitives/box/box.tsx +90 -70
- package/src/core/primitives/button/button.tsx +10 -21
- package/src/core/primitives/card/card.tsx +5 -11
- package/src/core/primitives/card/cardProvider.tsx +2 -2
- package/src/core/primitives/card/useCard.ts +1 -0
- package/src/core/primitives/checkbox/checkbox.tsx +4 -6
- package/src/core/primitives/code/code.tsx +5 -10
- package/src/core/primitives/code/refractor.tsx +0 -2
- package/src/core/primitives/container/container.tsx +2 -11
- package/src/core/primitives/flex/flex.tsx +29 -4
- package/src/core/primitives/grid/grid.tsx +0 -2
- package/src/core/primitives/heading/heading.tsx +8 -13
- package/src/core/primitives/inline/inline.tsx +22 -6
- package/src/core/primitives/kbd/kbd.tsx +2 -4
- package/src/core/primitives/label/label.tsx +7 -12
- package/src/core/primitives/popover/popover.tsx +11 -9
- package/src/core/primitives/popover/popoverLayer.tsx +1 -3
- package/src/core/primitives/radio/radio.tsx +4 -5
- package/src/core/primitives/select/select.tsx +0 -2
- package/src/core/primitives/spinner/animatedSpinnerIcon.tsx +6 -10
- package/src/core/primitives/spinner/spinner.tsx +6 -6
- package/src/core/primitives/stack/stack.tsx +16 -6
- package/src/core/primitives/switch/switch.tsx +1 -4
- package/src/core/primitives/text/text.tsx +9 -19
- package/src/core/primitives/textArea/textArea.tsx +0 -2
- package/src/core/primitives/textInput/textInput.tsx +40 -47
- package/src/core/primitives/tooltip/tooltip.tsx +4 -12
- package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -2
- package/src/core/primitives/tooltip/tooltipLayer.tsx +0 -2
- package/src/core/primitives/types.ts +6 -6
- package/src/core/types/flex.ts +3 -3
- package/src/core/utils/arrow/arrow.tsx +11 -5
- package/src/core/utils/boundaryElement/boundaryElementProvider.tsx +0 -2
- package/src/core/utils/elementQuery/elementQuery.tsx +0 -2
- package/src/core/utils/layer/layer.tsx +3 -3
- package/src/core/utils/layer/layerCard.tsx +0 -2
- package/src/core/utils/layer/layerProvider.tsx +6 -7
- package/src/core/utils/portal/portal.tsx +0 -2
- package/src/core/utils/portal/portalProvider.tsx +0 -2
- package/src/core/utils/srOnly/srOnly.tsx +2 -9
- package/src/core/utils/virtualList/virtualList.tsx +0 -2
- package/src/css/__theme/index.ts +16 -0
- package/src/css/__theme/lib/contract/buildVarContract.ts +78 -0
- package/src/css/__theme/lib/contract/index.ts +4 -0
- package/src/css/__theme/lib/contract/types.ts +17 -0
- package/src/css/__theme/resolveTheme.ts +865 -0
- package/src/css/_responsiveClassName.ts +45 -0
- package/src/css/_responsiveStyle.css.ts +34 -0
- package/src/css/_style.css.ts +9 -0
- package/src/css/components/breadcrumbs/breadcrumbs.css.ts +6 -0
- package/src/css/components/breadcrumbs/breadcrumbs.ts +4 -3
- package/src/css/components/dialog/dialog.css.ts +81 -0
- package/src/css/components/dialog/dialog.ts +12 -12
- package/src/css/components/index.ts +6 -0
- package/src/css/components/menu/menu.css.ts +14 -0
- package/src/css/components/menu/menu.ts +6 -5
- package/src/css/components/skeleton/skeleton.css.ts +132 -0
- package/src/css/components/skeleton/skeleton.ts +8 -8
- package/src/css/components/skeleton/types.ts +9 -3
- package/src/css/components/toast/toast.css.ts +16 -0
- package/src/css/components/toast/toast.ts +3 -18
- package/src/css/components/tree/tree.css.ts +65 -0
- package/src/css/components/tree/tree.ts +4 -3
- package/src/css/defaultTheme.css.ts +468 -0
- package/src/css/index.ts +11 -37
- package/src/css/layers.css.ts +9 -0
- package/src/css/primitives/_arrow/_arrow.css.ts +68 -0
- package/src/css/primitives/_arrow/_arrow.ts +10 -5
- package/src/css/primitives/_input/_input.css.ts +258 -0
- package/src/css/primitives/_input/input.ts +10 -12
- package/src/css/primitives/_input/types.ts +1 -1
- package/src/css/primitives/_selectable/_selectable.css.ts +121 -0
- package/src/css/primitives/_selectable/selectable.ts +3 -3
- package/src/css/primitives/_selectable/types.ts +2 -1
- package/src/css/primitives/avatar/avatar.css.ts +175 -0
- package/src/css/primitives/avatar/avatar.ts +45 -10
- package/src/css/primitives/avatar/types.ts +1 -0
- package/src/css/primitives/badge/badge.css.ts +26 -0
- package/src/css/primitives/badge/badge.ts +2 -6
- package/src/css/primitives/badge/types.ts +4 -3
- package/src/css/primitives/box/box.css.ts +19 -0
- package/src/css/primitives/box/box.ts +39 -9
- package/src/css/primitives/box/types.ts +35 -8
- package/src/css/primitives/button/button.css.ts +285 -0
- package/src/css/primitives/button/button.ts +10 -7
- package/src/css/primitives/button/types.ts +10 -4
- package/src/css/primitives/card/card.css.ts +365 -0
- package/src/css/primitives/card/card.ts +5 -4
- package/src/css/primitives/card/types.ts +2 -3
- package/src/css/primitives/checkbox/checkbox.css.ts +193 -0
- package/src/css/primitives/checkbox/checkbox.ts +11 -5
- package/src/css/primitives/code/code.css.ts +271 -0
- package/src/css/primitives/code/code.ts +8 -4
- package/src/css/primitives/code/types.ts +3 -2
- package/src/css/primitives/container/container.css.ts +4 -0
- package/src/css/primitives/container/container.ts +9 -3
- package/src/css/primitives/container/types.ts +1 -0
- package/src/css/primitives/heading/heading.css.ts +85 -0
- package/src/css/primitives/heading/heading.ts +9 -10
- package/src/css/primitives/heading/types.ts +3 -2
- package/src/css/primitives/index.ts +24 -0
- package/src/css/primitives/kbd/kbd.css.ts +16 -0
- package/src/css/primitives/kbd/kbd.ts +3 -3
- package/src/css/primitives/kbd/types.ts +2 -3
- package/src/css/primitives/label/label.css.ts +85 -0
- package/src/css/primitives/label/label.ts +9 -4
- package/src/css/primitives/label/types.ts +3 -2
- package/src/css/primitives/popover/popover.css.ts +6 -0
- package/src/css/primitives/popover/popover.ts +6 -5
- package/src/css/primitives/radio/radio.css.ts +78 -0
- package/src/css/primitives/radio/radio.ts +14 -3
- package/src/css/primitives/select/select.css.ts +24 -0
- package/src/css/primitives/select/select.ts +3 -3
- package/src/css/primitives/spinner/index.ts +1 -0
- package/src/css/primitives/spinner/spinner.css.ts +23 -0
- package/src/css/primitives/spinner/spinner.ts +7 -5
- package/src/css/primitives/spinner/types.ts +4 -0
- package/src/css/primitives/stack/stack.css.ts +6 -0
- package/src/css/primitives/stack/stack.ts +4 -3
- package/src/css/primitives/switch/switch.css.ts +98 -0
- package/src/css/primitives/switch/switch.ts +8 -7
- package/src/css/primitives/text/text.css.ts +85 -0
- package/src/css/primitives/text/text.ts +9 -5
- package/src/css/primitives/text/types.ts +3 -2
- package/src/css/primitives/textArea/textArea.css.ts +4 -0
- package/src/css/primitives/textArea/textArea.ts +2 -2
- package/src/css/primitives/textArea/types.ts +4 -2
- package/src/css/primitives/textInput/textInput.css.ts +41 -0
- package/src/css/primitives/textInput/textInput.ts +5 -5
- package/src/css/primitives/textInput/types.ts +4 -2
- package/src/css/primitives/tooltip/index.ts +1 -0
- package/src/css/primitives/tooltip/tooltip.css.ts +6 -0
- package/src/css/primitives/tooltip/tooltip.ts +7 -3
- package/src/css/primitives/tooltip/types.ts +4 -0
- package/src/css/props/alignItems/alignItems.css.ts +22 -0
- package/src/css/props/alignItems/alignItems.ts +8 -0
- package/src/css/props/alignItems/index.ts +2 -0
- package/src/css/props/alignItems/types.ts +9 -0
- package/src/css/props/border/border.css.ts +65 -0
- package/src/css/props/border/border.ts +36 -0
- package/src/css/props/border/types.ts +13 -0
- package/src/css/props/boxSizing/boxSizing.css.ts +11 -0
- package/src/css/props/boxSizing/boxSizing.ts +10 -0
- package/src/css/{aspects → props}/boxSizing/types.ts +1 -3
- package/src/css/props/display/display.css.ts +56 -0
- package/src/css/props/display/display.ts +17 -0
- package/src/css/props/flex/flex.css.ts +52 -0
- package/src/css/props/flex/flex.ts +8 -0
- package/src/css/props/flex/types.ts +9 -0
- package/src/css/props/flexDirection/flexDirection.css.ts +19 -0
- package/src/css/props/flexDirection/flexDirection.ts +8 -0
- package/src/css/props/flexDirection/index.ts +2 -0
- package/src/css/props/flexDirection/types.ts +9 -0
- package/src/css/props/flexWrap/flexWrap.css.ts +16 -0
- package/src/css/props/flexWrap/flexWrap.ts +8 -0
- package/src/css/props/flexWrap/index.ts +2 -0
- package/src/css/props/flexWrap/types.ts +9 -0
- package/src/css/props/font/font.css.ts +93 -0
- package/src/css/props/font/font.ts +8 -0
- package/src/css/props/gap/gap.css.ts +40 -0
- package/src/css/props/gap/gap.ts +13 -0
- package/src/css/props/gridAutoColumns/gridAutoColumns.css.ts +19 -0
- package/src/css/props/gridAutoColumns/gridAutoColumns.ts +8 -0
- package/src/css/props/gridAutoColumns/index.ts +2 -0
- package/src/css/props/gridAutoColumns/types.ts +19 -0
- package/src/css/props/gridAutoFlow/gridAutoFlow.css.ts +19 -0
- package/src/css/props/gridAutoFlow/gridAutoFlow.ts +8 -0
- package/src/css/props/gridAutoFlow/index.ts +2 -0
- package/src/css/props/gridAutoFlow/types.ts +13 -0
- package/src/css/props/gridAutoRows/gridAutoRows.css.ts +19 -0
- package/src/css/props/gridAutoRows/gridAutoRows.ts +8 -0
- package/src/css/props/gridAutoRows/index.ts +2 -0
- package/src/css/props/gridAutoRows/types.ts +13 -0
- package/src/css/props/gridColumn/gridColumn.css.ts +49 -0
- package/src/css/props/gridColumn/gridColumn.ts +8 -0
- package/src/css/props/gridColumn/index.ts +2 -0
- package/src/css/props/gridColumn/types.ts +19 -0
- package/src/css/props/gridColumnEnd/gridColumnEnd.css.ts +46 -0
- package/src/css/props/gridColumnEnd/gridColumnEnd.ts +8 -0
- package/src/css/props/gridColumnEnd/index.ts +2 -0
- package/src/css/props/gridColumnEnd/types.ts +19 -0
- package/src/css/props/gridColumnStart/gridColumnStart.css.ts +46 -0
- package/src/css/props/gridColumnStart/gridColumnStart.ts +11 -0
- package/src/css/props/gridColumnStart/index.ts +2 -0
- package/src/css/props/gridColumnStart/types.ts +19 -0
- package/src/css/props/gridRow/gridRow.css.ts +49 -0
- package/src/css/props/gridRow/gridRow.ts +8 -0
- package/src/css/props/gridRow/index.ts +2 -0
- package/src/css/props/gridRow/types.ts +19 -0
- package/src/css/props/gridRowEnd/gridRowEnd.css.ts +46 -0
- package/src/css/props/gridRowEnd/gridRowEnd.ts +8 -0
- package/src/css/props/gridRowEnd/index.ts +2 -0
- package/src/css/props/gridRowEnd/types.ts +19 -0
- package/src/css/props/gridRowStart/gridRowStart.css.ts +46 -0
- package/src/css/props/gridRowStart/gridRowStart.ts +8 -0
- package/src/css/props/gridRowStart/index.ts +2 -0
- package/src/css/props/gridRowStart/types.ts +19 -0
- package/src/css/props/gridTemplateColumns/gridTemplateColumns.css.ts +43 -0
- package/src/css/props/gridTemplateColumns/gridTemplateColumns.ts +8 -0
- package/src/css/props/gridTemplateColumns/index.ts +2 -0
- package/src/css/props/gridTemplateColumns/types.ts +19 -0
- package/src/css/props/gridTemplateRows/gridTemplateRows.css.ts +43 -0
- package/src/css/props/gridTemplateRows/gridTemplateRows.ts +8 -0
- package/src/css/props/gridTemplateRows/index.ts +2 -0
- package/src/css/props/gridTemplateRows/types.ts +19 -0
- package/src/css/props/height/height.css.ts +25 -0
- package/src/css/props/height/height.ts +8 -0
- package/src/css/{aspects → props}/height/index.ts +1 -0
- package/src/css/props/height/types.ts +15 -0
- package/src/css/{aspects → props}/index.ts +16 -3
- package/src/css/props/inset/inset.css.ts +37 -0
- package/src/css/props/inset/inset.ts +21 -0
- package/src/css/props/justifyContent/index.ts +2 -0
- package/src/css/props/justifyContent/justifyContent.css.ts +25 -0
- package/src/css/props/justifyContent/justifyContent.ts +8 -0
- package/src/css/props/justifyContent/types.ts +15 -0
- package/src/css/props/margin/margin.css.ts +117 -0
- package/src/css/props/margin/margin.ts +25 -0
- package/src/css/props/maxWidth/maxWidth.css.ts +32 -0
- package/src/css/props/maxWidth/maxWidth.ts +8 -0
- package/src/css/{aspects → props}/maxWidth/types.ts +4 -1
- package/src/css/props/minHeight/minHeight.css.ts +13 -0
- package/src/css/props/minHeight/minHeight.ts +8 -0
- package/src/css/props/minWidth/minWidth.css.ts +25 -0
- package/src/css/props/minWidth/minWidth.ts +8 -0
- package/src/css/props/outline/index.ts +2 -0
- package/src/css/props/outline/outline.css.ts +10 -0
- package/src/css/props/outline/outline.ts +8 -0
- package/src/css/props/outline/types.ts +7 -0
- package/src/css/props/overflow/overflow.css.ts +16 -0
- package/src/css/props/overflow/overflow.ts +8 -0
- package/src/css/props/overflow/types.ts +17 -0
- package/src/css/props/padding/padding.css.ts +87 -0
- package/src/css/props/padding/padding.ts +25 -0
- package/src/css/props/padding/types.ts +17 -0
- package/src/css/props/pointerEvents/pointerEvents.css.ts +13 -0
- package/src/css/props/pointerEvents/pointerEvents.ts +8 -0
- package/src/css/props/position/position.css.ts +22 -0
- package/src/css/props/position/position.ts +8 -0
- package/src/css/props/radius/radius.css.ts +21 -0
- package/src/css/props/radius/radius.ts +8 -0
- package/src/css/props/shadow/shadow.css.ts +23 -0
- package/src/css/props/shadow/shadow.ts +8 -0
- package/src/css/props/textAlign/textAlign.css.ts +22 -0
- package/src/css/props/textAlign/textAlign.ts +8 -0
- package/src/css/props/textOverflow/textOverflow.css.ts +13 -0
- package/src/css/props/textOverflow/textOverflow.ts +8 -0
- package/src/css/{aspects → props}/textOverflow/types.ts +5 -2
- package/src/css/{aspects → props}/width/types.ts +1 -1
- package/src/css/props/width/width.css.ts +28 -0
- package/src/css/props/width/width.ts +8 -0
- package/src/css/types.ts +223 -42
- package/src/css/util.ts +0 -10
- package/src/css/utils/index.ts +1 -0
- package/src/css/utils/srOnly/srOnly.css.ts +10 -0
- package/src/css/utils/srOnly/srOnly.ts +3 -3
- package/src/css/vars.css.ts +676 -0
- package/src/theme/v3/buildTheme_v3.ts +7 -2
- package/src/theme/v3/defaultFonts.ts +4 -4
- package/src/theme/v3/defaultTokens.ts +3 -3
- package/src/theme/v3/types.ts +3 -2
- package/src/theme/versioning/v3_v2.ts +24 -3
- package/dist/_chunks-cjs/buildCommand.cjs +0 -71
- package/dist/_chunks-cjs/buildCommand.cjs.map +0 -1
- package/dist/cli.cjs +0 -357
- package/dist/cli.cjs.map +0 -1
- package/dist/cli.d.cts +0 -1
- package/dist/ui-system.css +0 -24528
- package/dist/ui-system.min.css +0 -1
- package/dist/ui-theme.css +0 -1184
- package/dist/ui-theme.min.css +0 -1
- package/dist/ui.min.css +0 -1
- package/src/core/StyleTags.tsx +0 -18
- package/src/css/_compileStyle.ts +0 -156
- package/src/css/_compileSystem.ts +0 -7
- package/src/css/_compileTheme.ts +0 -13
- package/src/css/_hash.ts +0 -9
- package/src/css/_mergeStyles.ts +0 -24
- package/src/css/_resp.ts +0 -31
- package/src/css/_responsiveRule.ts +0 -38
- package/src/css/_scopeClassName.ts +0 -9
- package/src/css/_scopeClassNames.ts +0 -12
- package/src/css/_system.style.ts +0 -166
- package/src/css/aspects/border/border.style.ts +0 -13
- package/src/css/aspects/border/border.ts +0 -14
- package/src/css/aspects/border/types.ts +0 -10
- package/src/css/aspects/boxSizing/boxSizing.style.ts +0 -10
- package/src/css/aspects/boxSizing/boxSizing.ts +0 -8
- package/src/css/aspects/display/display.style.ts +0 -34
- package/src/css/aspects/display/display.ts +0 -8
- 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/flex/types.ts +0 -27
- package/src/css/aspects/flexItem/flex.style.ts +0 -22
- package/src/css/aspects/flexItem/flexItem.ts +0 -8
- package/src/css/aspects/flexItem/index.ts +0 -2
- package/src/css/aspects/flexItem/types.ts +0 -25
- package/src/css/aspects/font/font.style.ts +0 -83
- package/src/css/aspects/font/font.ts +0 -7
- package/src/css/aspects/gap/gap.style.ts +0 -21
- package/src/css/aspects/gap/gap.ts +0 -8
- package/src/css/aspects/grid/grid.ts +0 -14
- 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/grid/index.ts +0 -2
- package/src/css/aspects/grid/types.ts +0 -25
- 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/gridItem.ts +0 -15
- 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/gridItem/index.ts +0 -2
- package/src/css/aspects/gridItem/types.ts +0 -30
- package/src/css/aspects/height/height.style.ts +0 -9
- package/src/css/aspects/height/height.ts +0 -16
- package/src/css/aspects/inset/inset.style.ts +0 -12
- package/src/css/aspects/inset/inset.ts +0 -14
- package/src/css/aspects/margin/margin.style.ts +0 -56
- package/src/css/aspects/margin/margin.ts +0 -16
- package/src/css/aspects/maxWidth/maxWidth.style.ts +0 -16
- package/src/css/aspects/maxWidth/maxWidth.ts +0 -8
- package/src/css/aspects/minHeight/minHeight.style.ts +0 -9
- package/src/css/aspects/minHeight/minHeight.ts +0 -8
- package/src/css/aspects/minWidth/minWidth.style.ts +0 -13
- package/src/css/aspects/minWidth/minWidth.ts +0 -8
- package/src/css/aspects/outline/outline.style.ts +0 -9
- package/src/css/aspects/overflow/overflow.style.ts +0 -11
- package/src/css/aspects/overflow/overflow.ts +0 -12
- package/src/css/aspects/overflow/types.ts +0 -11
- package/src/css/aspects/padding/padding.style.ts +0 -43
- package/src/css/aspects/padding/padding.ts +0 -16
- package/src/css/aspects/padding/types.ts +0 -14
- package/src/css/aspects/pointerEvents/pointerEvents.style.ts +0 -13
- package/src/css/aspects/pointerEvents/pointerEvents.ts +0 -7
- package/src/css/aspects/position/position.style.ts +0 -12
- package/src/css/aspects/position/position.ts +0 -8
- package/src/css/aspects/radius/radius.style.ts +0 -16
- package/src/css/aspects/radius/radius.ts +0 -8
- package/src/css/aspects/shadow/shadow.style.ts +0 -24
- package/src/css/aspects/shadow/shadow.ts +0 -8
- package/src/css/aspects/textAlign/textAlign.style.ts +0 -26
- package/src/css/aspects/textAlign/textAlign.ts +0 -8
- package/src/css/aspects/textOverflow/textOverflow.style.ts +0 -21
- package/src/css/aspects/textOverflow/textOverflow.ts +0 -7
- package/src/css/aspects/width/width.style.ts +0 -11
- package/src/css/aspects/width/width.ts +0 -8
- package/src/css/components/breadcrumbs/breadcrumbs.style.ts +0 -9
- package/src/css/components/dialog/dialog.style.ts +0 -77
- package/src/css/components/menu/menu.style.ts +0 -17
- package/src/css/components/skeleton/skeleton.style.ts +0 -104
- package/src/css/components/toast/toast.style.ts +0 -20
- package/src/css/components/tree/tree.style.ts +0 -39
- package/src/css/prefix/constants.ts +0 -6
- package/src/css/prefix/index.ts +0 -2
- package/src/css/prefix/types.ts +0 -1
- package/src/css/primitives/_arrow/_arrow.style.ts +0 -69
- package/src/css/primitives/_input/_input.style.ts +0 -235
- package/src/css/primitives/_selectable/_selectable.style.ts +0 -129
- package/src/css/primitives/avatar/avatar.style.ts +0 -171
- package/src/css/primitives/badge/badge.style.ts +0 -21
- package/src/css/primitives/box/box.style.ts +0 -22
- package/src/css/primitives/button/button.style.ts +0 -275
- package/src/css/primitives/card/card.style.ts +0 -295
- package/src/css/primitives/checkbox/checkbox.style.ts +0 -178
- package/src/css/primitives/code/code.style.ts +0 -61
- package/src/css/primitives/container/container.style.ts +0 -10
- package/src/css/primitives/heading/heading.style.ts +0 -56
- package/src/css/primitives/kbd/kbd.style.ts +0 -19
- package/src/css/primitives/label/label.style.ts +0 -52
- package/src/css/primitives/popover/popover.style.ts +0 -9
- package/src/css/primitives/radio/radio.style.ts +0 -84
- 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 -13
- package/src/css/primitives/switch/switch.style.ts +0 -102
- package/src/css/primitives/text/text.style.ts +0 -65
- package/src/css/primitives/textArea/textArea.style.ts +0 -11
- package/src/css/primitives/textInput/textInput.style.ts +0 -46
- package/src/css/primitives/token/token.style.ts +0 -50
- package/src/css/primitives/tooltip/tooltip.style.ts +0 -9
- package/src/css/renderColor.ts +0 -31
- package/src/css/responsiveRules.ts +0 -18
- package/src/css/theme/index.ts +0 -14
- package/src/css/theme/lib/contract/buildVarContract.ts +0 -76
- package/src/css/theme/lib/contract/index.ts +0 -2
- package/src/css/theme/lib/contract/types.ts +0 -15
- package/src/css/theme/resolveTheme.ts +0 -863
- package/src/css/utils/srOnly/srOnly.style.ts +0 -14
- package/src/css/{aspects → props}/border/index.ts +0 -0
- package/src/css/{aspects → props}/boxSizing/index.ts +0 -0
- package/src/css/{aspects → props}/display/index.ts +0 -0
- package/src/css/{aspects → props}/display/types.ts +0 -0
- package/src/css/{aspects → props}/flex/index.ts +0 -0
- package/src/css/{aspects → props}/font/index.ts +0 -0
- package/src/css/{aspects → props}/font/types.ts +0 -0
- package/src/css/{aspects → props}/gap/index.ts +0 -0
- package/src/css/{aspects → props}/gap/types.ts +0 -0
- package/src/css/{aspects → props}/inset/index.ts +0 -0
- package/src/css/{aspects → props}/inset/types.ts +0 -0
- package/src/css/{aspects → props}/margin/index.ts +0 -0
- package/src/css/{aspects → props}/margin/types.ts +2 -2
- /package/src/css/{aspects → props}/maxWidth/index.ts +0 -0
- /package/src/css/{aspects → props}/minHeight/index.ts +0 -0
- /package/src/css/{aspects → props}/minHeight/types.ts +0 -0
- /package/src/css/{aspects → props}/minWidth/index.ts +0 -0
- /package/src/css/{aspects → props}/minWidth/types.ts +0 -0
- /package/src/css/{aspects → props}/overflow/index.ts +0 -0
- /package/src/css/{aspects → props}/padding/index.ts +0 -0
- /package/src/css/{aspects → props}/pointerEvents/index.ts +0 -0
- /package/src/css/{aspects → props}/pointerEvents/types.ts +0 -0
- /package/src/css/{aspects → props}/position/index.ts +0 -0
- /package/src/css/{aspects → props}/position/types.ts +0 -0
- /package/src/css/{aspects → props}/radius/index.ts +0 -0
- /package/src/css/{aspects → props}/radius/types.ts +0 -0
- /package/src/css/{aspects → props}/shadow/index.ts +0 -0
- /package/src/css/{aspects → props}/shadow/types.ts +0 -0
- /package/src/css/{aspects → props}/textAlign/index.ts +0 -0
- /package/src/css/{aspects → props}/textAlign/types.ts +0 -0
- /package/src/css/{aspects → props}/textOverflow/index.ts +0 -0
- /package/src/css/{aspects → props}/width/index.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var jsxRuntime = require("react/jsx-runtime"), reactCompilerRuntime = require("react-compiler-runtime"), theme = require("@sanity/ui/theme"), react = require("react"), styledComponents = require("styled-components"), css = require("@sanity/ui/css"),
|
|
2
|
+
var jsxRuntime = require("react/jsx-runtime"), reactCompilerRuntime = require("react-compiler-runtime"), theme = require("@sanity/ui/theme"), react = require("react"), styledComponents = require("styled-components"), css = require("@sanity/ui/css"), resizeObserver = require("@juggle/resize-observer"), useEffectEvent = require("use-effect-event"), icons = require("@sanity/icons"), reactIs = require("react-is"), reactDom$1 = require("@floating-ui/react-dom"), framerMotion = require("framer-motion"), dynamic = require("@vanilla-extract/dynamic"), reactDom = require("react-dom");
|
|
3
3
|
function getGlobalScope() {
|
|
4
4
|
if (typeof globalThis < "u") return globalThis;
|
|
5
5
|
if (typeof window < "u") return window;
|
|
@@ -29,7 +29,6 @@ function CardProvider(props) {
|
|
|
29
29
|
let t2;
|
|
30
30
|
return $[4] !== children || $[5] !== t0 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(CardContext.Provider, { value: t0, children }), $[4] = children, $[5] = t0, $[6] = t2) : t2 = $[6], t2;
|
|
31
31
|
}
|
|
32
|
-
CardProvider.displayName = "CardProvider";
|
|
33
32
|
const ThemeContext = createGlobalScopedContext("@sanity/ui/context/theme", null);
|
|
34
33
|
function ThemeProvider(props) {
|
|
35
34
|
const $ = reactCompilerRuntime.c(19), parentTheme = react.useContext(ThemeContext), {
|
|
@@ -71,7 +70,6 @@ function ThemeProvider(props) {
|
|
|
71
70
|
let t4;
|
|
72
71
|
return $[15] !== scheme || $[16] !== t3 || $[17] !== tone ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(CardProvider, { scheme, tone, unstable_CompatProvider: ThemeColorProvider, children: t3 }), $[15] = scheme, $[16] = t3, $[17] = tone, $[18] = t4) : t4 = $[18], t4;
|
|
73
72
|
}
|
|
74
|
-
ThemeProvider.displayName = "ThemeProvider";
|
|
75
73
|
function useRootTheme() {
|
|
76
74
|
const value = react.useContext(ThemeContext);
|
|
77
75
|
if (!value)
|
|
@@ -87,7 +85,6 @@ function ThemeColorProvider(props) {
|
|
|
87
85
|
let t1;
|
|
88
86
|
return $[0] !== children || $[1] !== root.theme || $[2] !== t0 || $[3] !== tone ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, { scheme: t0, theme: root.theme, tone, children }), $[0] = children, $[1] = root.theme, $[2] = t0, $[3] = tone, $[4] = t1) : t1 = $[4], t1;
|
|
89
87
|
}
|
|
90
|
-
ThemeColorProvider.displayName = "ThemeColorProvider";
|
|
91
88
|
function useTheme() {
|
|
92
89
|
return styledComponents.useTheme();
|
|
93
90
|
}
|
|
@@ -153,23 +150,20 @@ function isHTMLTextAreaElement(element) {
|
|
|
153
150
|
function containsOrEqualsElement(element, node) {
|
|
154
151
|
return element.contains(node) || element === node;
|
|
155
152
|
}
|
|
153
|
+
function isArray(val) {
|
|
154
|
+
return Array.isArray(val);
|
|
155
|
+
}
|
|
156
|
+
function isRecord(value) {
|
|
157
|
+
return !!(value && typeof value == "object" && !Array.isArray(value));
|
|
158
|
+
}
|
|
156
159
|
function _getArrayProp(val, defaultVal) {
|
|
157
160
|
return val === void 0 ? defaultVal || EMPTY_ARRAY : Array.isArray(val) ? val : [val];
|
|
158
161
|
}
|
|
159
|
-
function
|
|
160
|
-
|
|
161
|
-
const style = window.getComputedStyle(el);
|
|
162
|
-
return style.overflowX.includes("auto") || style.overflowX.includes("scroll") || style.overflowY.includes("auto") || style.overflowY.includes("scroll");
|
|
163
|
-
}
|
|
164
|
-
function useArrayProp(val, defaultVal) {
|
|
165
|
-
const $ = reactCompilerRuntime.c(3);
|
|
166
|
-
let t0;
|
|
167
|
-
$[0] !== defaultVal || $[1] !== val ? (t0 = () => [_getArrayProp(val, defaultVal), JSON.stringify(val ?? defaultVal)], $[0] = defaultVal, $[1] = val, $[2] = t0) : t0 = $[2];
|
|
168
|
-
const [t1, setCache] = react.useState(t0), [cachedVal, cachedHash] = t1, hash = JSON.stringify(val ?? defaultVal);
|
|
169
|
-
return hash !== cachedHash && setCache([_getArrayProp(val, defaultVal), hash]), cachedVal;
|
|
162
|
+
function _getResponsiveProp(val, defaultVal) {
|
|
163
|
+
return val === void 0 ? defaultVal || EMPTY_ARRAY : isArray(val) || isRecord(val) ? val : [val];
|
|
170
164
|
}
|
|
171
165
|
function useClickOutsideEvent(listener, t0, boundaryElement) {
|
|
172
|
-
const $ = reactCompilerRuntime.c(9), elementsArg = t0 === void 0 ? _temp$
|
|
166
|
+
const $ = reactCompilerRuntime.c(9), elementsArg = t0 === void 0 ? _temp$5 : t0;
|
|
173
167
|
let t1;
|
|
174
168
|
$[0] !== boundaryElement || $[1] !== elementsArg || $[2] !== listener ? (t1 = (evt) => {
|
|
175
169
|
if (!listener)
|
|
@@ -199,7 +193,7 @@ function useClickOutsideEvent(listener, t0, boundaryElement) {
|
|
|
199
193
|
let t3;
|
|
200
194
|
$[7] !== hasListener ? (t3 = [hasListener], $[7] = hasListener, $[8] = t3) : t3 = $[8], react.useEffect(t2, t3), react.useDebugValue(listener ? "MouseDown On" : "MouseDown Off");
|
|
201
195
|
}
|
|
202
|
-
function _temp$
|
|
196
|
+
function _temp$5() {
|
|
203
197
|
return EMPTY_ARRAY;
|
|
204
198
|
}
|
|
205
199
|
function useCustomValidity(ref, customValidity) {
|
|
@@ -339,23 +333,30 @@ function useMediaIndex() {
|
|
|
339
333
|
return react.useSyncExternalStore(store.subscribe, store.getSnapshot, getServerSnapshot);
|
|
340
334
|
}
|
|
341
335
|
function usePrefersDark(t0) {
|
|
342
|
-
return useMatchMedia("(prefers-color-scheme: dark)", t0 === void 0 ? _temp$
|
|
336
|
+
return useMatchMedia("(prefers-color-scheme: dark)", t0 === void 0 ? _temp$4 : t0);
|
|
343
337
|
}
|
|
344
|
-
function _temp$
|
|
338
|
+
function _temp$4() {
|
|
345
339
|
return !1;
|
|
346
340
|
}
|
|
347
341
|
function usePrefersReducedMotion(t0) {
|
|
348
|
-
return useMatchMedia("(prefers-reduced-motion: reduce)", t0 === void 0 ? _temp$
|
|
342
|
+
return useMatchMedia("(prefers-reduced-motion: reduce)", t0 === void 0 ? _temp$3 : t0);
|
|
349
343
|
}
|
|
350
|
-
function _temp$
|
|
344
|
+
function _temp$3() {
|
|
351
345
|
return !1;
|
|
352
346
|
}
|
|
347
|
+
function useResponsiveProp(val, defaultVal) {
|
|
348
|
+
const $ = reactCompilerRuntime.c(3);
|
|
349
|
+
let t0;
|
|
350
|
+
$[0] !== defaultVal || $[1] !== val ? (t0 = () => [_getResponsiveProp(val, defaultVal), JSON.stringify(val ?? defaultVal)], $[0] = defaultVal, $[1] = val, $[2] = t0) : t0 = $[2];
|
|
351
|
+
const [t1, setCache] = react.useState(t0), [cachedVal, cachedHash] = t1, hash = JSON.stringify(val ?? defaultVal);
|
|
352
|
+
return hash !== cachedHash && setCache([_getResponsiveProp(val, defaultVal), hash]), cachedVal;
|
|
353
|
+
}
|
|
353
354
|
const DEFAULT_BOX_ELEMENT = "div";
|
|
354
355
|
function Box(props) {
|
|
355
|
-
const $ = reactCompilerRuntime.c(
|
|
356
|
-
let
|
|
356
|
+
const $ = reactCompilerRuntime.c(154), t0 = props;
|
|
357
|
+
let alignItems, autoCols, autoFlow, autoRows, borderBottom, borderLeft, borderRight, borderTop, children, className, column, columnEnd, columnStart, columns, flex, flexDirection, flexWrap, gap, gapX, gapY, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnEnd, gridColumnStart, gridRow, gridRowEnd, gridRowStart, gridTemplateColumns, gridTemplateRows, height, inset, insetBottom, insetLeft, insetRight, insetTop, justifyContent, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, muted, outline, overflow, overflowX, overflowY, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pointerEvents, position, radius, rest, row, rowEnd, rowStart, rows, shadow, t1, t2, t3, t4, t5, t6, t7, t8, textAlign, width;
|
|
357
358
|
$[0] !== t0 ? ({
|
|
358
|
-
|
|
359
|
+
alignItems,
|
|
359
360
|
as: t1,
|
|
360
361
|
autoCols,
|
|
361
362
|
autoFlow,
|
|
@@ -371,19 +372,31 @@ function Box(props) {
|
|
|
371
372
|
columnStart,
|
|
372
373
|
columnEnd,
|
|
373
374
|
columns,
|
|
374
|
-
direction,
|
|
375
375
|
display: t3,
|
|
376
376
|
flex,
|
|
377
|
+
flexDirection,
|
|
378
|
+
flexWrap,
|
|
377
379
|
gap,
|
|
378
380
|
gapX,
|
|
379
381
|
gapY,
|
|
382
|
+
gridAutoColumns,
|
|
383
|
+
gridAutoFlow,
|
|
384
|
+
gridAutoRows,
|
|
385
|
+
gridColumn,
|
|
386
|
+
gridColumnEnd,
|
|
387
|
+
gridColumnStart,
|
|
388
|
+
gridRow,
|
|
389
|
+
gridRowEnd,
|
|
390
|
+
gridRowStart,
|
|
391
|
+
gridTemplateColumns,
|
|
392
|
+
gridTemplateRows,
|
|
380
393
|
height,
|
|
381
394
|
inset,
|
|
382
395
|
insetBottom,
|
|
383
396
|
insetLeft,
|
|
384
397
|
insetRight,
|
|
385
398
|
insetTop,
|
|
386
|
-
|
|
399
|
+
justifyContent,
|
|
387
400
|
margin: t4,
|
|
388
401
|
marginX,
|
|
389
402
|
marginY,
|
|
@@ -413,16 +426,17 @@ function Box(props) {
|
|
|
413
426
|
rows,
|
|
414
427
|
rowStart,
|
|
415
428
|
rowEnd,
|
|
429
|
+
shadow,
|
|
416
430
|
sizing: t8,
|
|
417
431
|
textAlign,
|
|
418
432
|
width,
|
|
419
|
-
wrap,
|
|
420
433
|
...rest
|
|
421
|
-
} = t0, $[0] = t0, $[1] =
|
|
422
|
-
const
|
|
434
|
+
} = t0, $[0] = t0, $[1] = alignItems, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = borderBottom, $[6] = borderLeft, $[7] = borderRight, $[8] = borderTop, $[9] = children, $[10] = className, $[11] = column, $[12] = columnEnd, $[13] = columnStart, $[14] = columns, $[15] = flex, $[16] = flexDirection, $[17] = flexWrap, $[18] = gap, $[19] = gapX, $[20] = gapY, $[21] = gridAutoColumns, $[22] = gridAutoFlow, $[23] = gridAutoRows, $[24] = gridColumn, $[25] = gridColumnEnd, $[26] = gridColumnStart, $[27] = gridRow, $[28] = gridRowEnd, $[29] = gridRowStart, $[30] = gridTemplateColumns, $[31] = gridTemplateRows, $[32] = height, $[33] = inset, $[34] = insetBottom, $[35] = insetLeft, $[36] = insetRight, $[37] = insetTop, $[38] = justifyContent, $[39] = marginBottom, $[40] = marginLeft, $[41] = marginRight, $[42] = marginTop, $[43] = marginX, $[44] = marginY, $[45] = maxWidth, $[46] = muted, $[47] = outline, $[48] = overflow, $[49] = overflowX, $[50] = overflowY, $[51] = paddingBottom, $[52] = paddingLeft, $[53] = paddingRight, $[54] = paddingTop, $[55] = paddingX, $[56] = paddingY, $[57] = pointerEvents, $[58] = position, $[59] = radius, $[60] = rest, $[61] = row, $[62] = rowEnd, $[63] = rowStart, $[64] = rows, $[65] = shadow, $[66] = t1, $[67] = t2, $[68] = t3, $[69] = t4, $[70] = t5, $[71] = t6, $[72] = t7, $[73] = t8, $[74] = textAlign, $[75] = width) : (alignItems = $[1], autoCols = $[2], autoFlow = $[3], autoRows = $[4], borderBottom = $[5], borderLeft = $[6], borderRight = $[7], borderTop = $[8], children = $[9], className = $[10], column = $[11], columnEnd = $[12], columnStart = $[13], columns = $[14], flex = $[15], flexDirection = $[16], flexWrap = $[17], gap = $[18], gapX = $[19], gapY = $[20], gridAutoColumns = $[21], gridAutoFlow = $[22], gridAutoRows = $[23], gridColumn = $[24], gridColumnEnd = $[25], gridColumnStart = $[26], gridRow = $[27], gridRowEnd = $[28], gridRowStart = $[29], gridTemplateColumns = $[30], gridTemplateRows = $[31], height = $[32], inset = $[33], insetBottom = $[34], insetLeft = $[35], insetRight = $[36], insetTop = $[37], justifyContent = $[38], marginBottom = $[39], marginLeft = $[40], marginRight = $[41], marginTop = $[42], marginX = $[43], marginY = $[44], maxWidth = $[45], muted = $[46], outline = $[47], overflow = $[48], overflowX = $[49], overflowY = $[50], paddingBottom = $[51], paddingLeft = $[52], paddingRight = $[53], paddingTop = $[54], paddingX = $[55], paddingY = $[56], pointerEvents = $[57], position = $[58], radius = $[59], rest = $[60], row = $[61], rowEnd = $[62], rowStart = $[63], rows = $[64], shadow = $[65], t1 = $[66], t2 = $[67], t3 = $[68], t4 = $[69], t5 = $[70], t6 = $[71], t7 = $[72], t8 = $[73], textAlign = $[74], width = $[75]);
|
|
435
|
+
const Element = t1 === void 0 ? DEFAULT_BOX_ELEMENT : t1, border = t2 === void 0 ? !1 : t2, display = t3 === void 0 ? "block" : t3, margin = t4 === void 0 ? 0 : t4, minHeight = t5 === void 0 ? 0 : t5, minWidth = t6 === void 0 ? 0 : t6, padding = t7 === void 0 ? 0 : t7, sizing = t8 === void 0 ? "border" : t8;
|
|
423
436
|
let t9;
|
|
424
|
-
$[
|
|
425
|
-
|
|
437
|
+
$[76] !== alignItems || $[77] !== autoCols || $[78] !== autoFlow || $[79] !== autoRows || $[80] !== border || $[81] !== borderBottom || $[82] !== borderLeft || $[83] !== borderRight || $[84] !== borderTop || $[85] !== className || $[86] !== column || $[87] !== columnEnd || $[88] !== columnStart || $[89] !== columns || $[90] !== display || $[91] !== flex || $[92] !== flexDirection || $[93] !== flexWrap || $[94] !== gap || $[95] !== gapX || $[96] !== gapY || $[97] !== gridAutoColumns || $[98] !== gridAutoFlow || $[99] !== gridAutoRows || $[100] !== gridColumn || $[101] !== gridColumnEnd || $[102] !== gridColumnStart || $[103] !== gridRow || $[104] !== gridRowEnd || $[105] !== gridRowStart || $[106] !== gridTemplateColumns || $[107] !== gridTemplateRows || $[108] !== height || $[109] !== inset || $[110] !== insetBottom || $[111] !== insetLeft || $[112] !== insetRight || $[113] !== insetTop || $[114] !== justifyContent || $[115] !== margin || $[116] !== marginBottom || $[117] !== marginLeft || $[118] !== marginRight || $[119] !== marginTop || $[120] !== marginX || $[121] !== marginY || $[122] !== maxWidth || $[123] !== minHeight || $[124] !== minWidth || $[125] !== muted || $[126] !== outline || $[127] !== overflow || $[128] !== overflowX || $[129] !== overflowY || $[130] !== padding || $[131] !== paddingBottom || $[132] !== paddingLeft || $[133] !== paddingRight || $[134] !== paddingTop || $[135] !== paddingX || $[136] !== paddingY || $[137] !== pointerEvents || $[138] !== position || $[139] !== radius || $[140] !== row || $[141] !== rowEnd || $[142] !== rowStart || $[143] !== rows || $[144] !== shadow || $[145] !== sizing || $[146] !== textAlign || $[147] !== width ? (t9 = css.box({
|
|
438
|
+
className,
|
|
439
|
+
alignItems,
|
|
426
440
|
autoCols,
|
|
427
441
|
autoFlow,
|
|
428
442
|
autoRows,
|
|
@@ -435,19 +449,31 @@ function Box(props) {
|
|
|
435
449
|
columnStart,
|
|
436
450
|
columnEnd,
|
|
437
451
|
columns,
|
|
438
|
-
direction,
|
|
439
452
|
display,
|
|
440
453
|
flex,
|
|
454
|
+
flexDirection,
|
|
455
|
+
flexWrap,
|
|
441
456
|
gap,
|
|
442
457
|
gapX,
|
|
443
458
|
gapY,
|
|
459
|
+
gridAutoColumns,
|
|
460
|
+
gridAutoFlow,
|
|
461
|
+
gridAutoRows,
|
|
462
|
+
gridColumn,
|
|
463
|
+
gridColumnEnd,
|
|
464
|
+
gridColumnStart,
|
|
465
|
+
gridRow,
|
|
466
|
+
gridRowEnd,
|
|
467
|
+
gridRowStart,
|
|
468
|
+
gridTemplateColumns,
|
|
469
|
+
gridTemplateRows,
|
|
444
470
|
height,
|
|
445
471
|
inset,
|
|
446
472
|
insetBottom,
|
|
447
473
|
insetLeft,
|
|
448
474
|
insetRight,
|
|
449
475
|
insetTop,
|
|
450
|
-
|
|
476
|
+
justifyContent,
|
|
451
477
|
margin,
|
|
452
478
|
marginX,
|
|
453
479
|
marginY,
|
|
@@ -477,178 +503,14 @@ function Box(props) {
|
|
|
477
503
|
rows,
|
|
478
504
|
rowStart,
|
|
479
505
|
rowEnd,
|
|
506
|
+
shadow,
|
|
480
507
|
sizing,
|
|
481
508
|
textAlign,
|
|
482
|
-
width
|
|
483
|
-
|
|
484
|
-
})), $[64] = align, $[65] = autoCols, $[66] = autoFlow, $[67] = autoRows, $[68] = border, $[69] = borderBottom, $[70] = borderLeft, $[71] = borderRight, $[72] = borderTop, $[73] = className, $[74] = column, $[75] = columnEnd, $[76] = columnStart, $[77] = columns, $[78] = direction, $[79] = display, $[80] = flex, $[81] = gap, $[82] = gapX, $[83] = gapY, $[84] = height, $[85] = inset, $[86] = insetBottom, $[87] = insetLeft, $[88] = insetRight, $[89] = insetTop, $[90] = justify, $[91] = margin, $[92] = marginBottom, $[93] = marginLeft, $[94] = marginRight, $[95] = marginTop, $[96] = marginX, $[97] = marginY, $[98] = maxWidth, $[99] = minHeight, $[100] = minWidth, $[101] = muted, $[102] = outline, $[103] = overflow, $[104] = overflowX, $[105] = overflowY, $[106] = padding, $[107] = paddingBottom, $[108] = paddingLeft, $[109] = paddingRight, $[110] = paddingTop, $[111] = paddingX, $[112] = paddingY, $[113] = pointerEvents, $[114] = position, $[115] = radius, $[116] = row, $[117] = rowEnd, $[118] = rowStart, $[119] = rows, $[120] = sizing, $[121] = textAlign, $[122] = width, $[123] = wrap, $[124] = t9) : t9 = $[124];
|
|
485
|
-
let t10;
|
|
486
|
-
return $[125] !== Element2 || $[126] !== children || $[127] !== rest || $[128] !== t9 ? (t10 = /* @__PURE__ */ jsxRuntime.jsx(Element2, { "data-ui": "Box", ...rest, className: t9, children }), $[125] = Element2, $[126] = children, $[127] = rest, $[128] = t9, $[129] = t10) : t10 = $[129], t10;
|
|
487
|
-
}
|
|
488
|
-
Box.displayName = "Box";
|
|
489
|
-
const DEFAULT_LABEL_ELEMENT = "div";
|
|
490
|
-
function Label(props) {
|
|
491
|
-
const $ = reactCompilerRuntime.c(28);
|
|
492
|
-
let accent, align, children, className, rest, t0, t1, t2, t3, textOverflowProp;
|
|
493
|
-
$[0] !== props ? ({
|
|
494
|
-
accent,
|
|
495
|
-
align,
|
|
496
|
-
as: t0,
|
|
497
|
-
children,
|
|
498
|
-
className,
|
|
499
|
-
muted: t1,
|
|
500
|
-
size: t2,
|
|
501
|
-
textOverflow: textOverflowProp,
|
|
502
|
-
weight: t3,
|
|
503
|
-
...rest
|
|
504
|
-
} = props, $[0] = props, $[1] = accent, $[2] = align, $[3] = children, $[4] = className, $[5] = rest, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = textOverflowProp) : (accent = $[1], align = $[2], children = $[3], className = $[4], rest = $[5], t0 = $[6], t1 = $[7], t2 = $[8], t3 = $[9], textOverflowProp = $[10]);
|
|
505
|
-
const Element2 = t0 === void 0 ? DEFAULT_LABEL_ELEMENT : t0, muted = t1 === void 0 ? !1 : t1, size2 = t2 === void 0 ? 1 : t2, weight = t3 === void 0 ? "regular" : t3;
|
|
506
|
-
let t4;
|
|
507
|
-
$[11] !== accent || $[12] !== align || $[13] !== className || $[14] !== muted || $[15] !== size2 || $[16] !== weight ? (t4 = css._composeClassNames(className, css.label({
|
|
508
|
-
accent,
|
|
509
|
-
align,
|
|
510
|
-
muted,
|
|
511
|
-
size: size2,
|
|
512
|
-
weight
|
|
513
|
-
})), $[11] = accent, $[12] = align, $[13] = className, $[14] = muted, $[15] = size2, $[16] = weight, $[17] = t4) : t4 = $[17];
|
|
514
|
-
let t5;
|
|
515
|
-
$[18] !== textOverflowProp ? (t5 = css.textOverflow({
|
|
516
|
-
textOverflow: textOverflowProp
|
|
517
|
-
}), $[18] = textOverflowProp, $[19] = t5) : t5 = $[19];
|
|
518
|
-
let t6;
|
|
519
|
-
$[20] !== children || $[21] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx("span", { className: t5, children }), $[20] = children, $[21] = t5, $[22] = t6) : t6 = $[22];
|
|
520
|
-
let t7;
|
|
521
|
-
return $[23] !== Element2 || $[24] !== rest || $[25] !== t4 || $[26] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(Element2, { "data-ui": "Label", ...rest, className: t4, children: t6 }), $[23] = Element2, $[24] = rest, $[25] = t4, $[26] = t6, $[27] = t7) : t7 = $[27], t7;
|
|
522
|
-
}
|
|
523
|
-
Label.displayName = "Label";
|
|
524
|
-
const DEFAULT_AVATAR_ELEMENT = "div";
|
|
525
|
-
function Avatar(props) {
|
|
526
|
-
const $ = reactCompilerRuntime.c(51), t0 = props;
|
|
527
|
-
let __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, className, initials, onImageLoadError, rest, src, t1, t2, t3, t4, title;
|
|
528
|
-
$[0] !== t0 ? ({
|
|
529
|
-
__unstable_hideInnerStroke,
|
|
530
|
-
as: t1,
|
|
531
|
-
className,
|
|
532
|
-
color: t2,
|
|
533
|
-
src,
|
|
534
|
-
title,
|
|
535
|
-
initials,
|
|
536
|
-
onImageLoadError,
|
|
537
|
-
arrowPosition: arrowPositionProp,
|
|
538
|
-
animateArrowFrom,
|
|
539
|
-
status: t3,
|
|
540
|
-
size: t4,
|
|
541
|
-
...rest
|
|
542
|
-
} = t0, $[0] = t0, $[1] = __unstable_hideInnerStroke, $[2] = animateArrowFrom, $[3] = arrowPositionProp, $[4] = className, $[5] = initials, $[6] = onImageLoadError, $[7] = rest, $[8] = src, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = t4, $[13] = title) : (__unstable_hideInnerStroke = $[1], animateArrowFrom = $[2], arrowPositionProp = $[3], className = $[4], initials = $[5], onImageLoadError = $[6], rest = $[7], src = $[8], t1 = $[9], t2 = $[10], t3 = $[11], t4 = $[12], title = $[13]);
|
|
543
|
-
const Element2 = t1 === void 0 ? DEFAULT_AVATAR_ELEMENT : t1, color = t2 === void 0 ? "magenta" : t2, sizeProp = t4 === void 0 ? 1 : t4, size2 = useArrayProp(sizeProp), [arrowPosition, setArrowPosition] = react.useState(animateArrowFrom || arrowPositionProp || "inside"), [imageError, setImageError] = react.useState(!1);
|
|
544
|
-
let t5, t6;
|
|
545
|
-
$[14] !== arrowPosition || $[15] !== arrowPositionProp ? (t5 = () => {
|
|
546
|
-
if (arrowPosition === arrowPositionProp)
|
|
547
|
-
return;
|
|
548
|
-
const raf = requestAnimationFrame(() => setArrowPosition(arrowPositionProp));
|
|
549
|
-
return () => cancelAnimationFrame(raf);
|
|
550
|
-
}, t6 = [arrowPosition, arrowPositionProp], $[14] = arrowPosition, $[15] = arrowPositionProp, $[16] = t5, $[17] = t6) : (t5 = $[16], t6 = $[17]), react.useEffect(t5, t6);
|
|
551
|
-
let t7, t8;
|
|
552
|
-
$[18] !== src ? (t7 = () => {
|
|
553
|
-
src && setImageError(!1);
|
|
554
|
-
}, t8 = [src], $[18] = src, $[19] = t7, $[20] = t8) : (t7 = $[19], t8 = $[20]), react.useEffect(t7, t8);
|
|
555
|
-
let t9;
|
|
556
|
-
$[21] !== onImageLoadError ? (t9 = () => {
|
|
557
|
-
setImageError(!0), onImageLoadError && onImageLoadError(new Error("Avatar: the image failed to load"));
|
|
558
|
-
}, $[21] = onImageLoadError, $[22] = t9) : t9 = $[22];
|
|
559
|
-
const handleImageError = t9;
|
|
560
|
-
let t10, t11;
|
|
561
|
-
$[23] !== size2 ? (t11 = size2.map(_temp$4), $[23] = size2, $[24] = t11) : t11 = $[24], t10 = t11;
|
|
562
|
-
const initialsSize = t10, t12 = __unstable_hideInnerStroke ? "" : void 0;
|
|
563
|
-
let t13;
|
|
564
|
-
$[25] !== className || $[26] !== color || $[27] !== sizeProp ? (t13 = css._composeClassNames(className, css.avatar({
|
|
565
|
-
color,
|
|
566
|
-
size: sizeProp
|
|
567
|
-
})), $[25] = className, $[26] = color, $[27] = sizeProp, $[28] = t13) : t13 = $[28];
|
|
568
|
-
const t14 = imageError ? "" : void 0;
|
|
569
|
-
let t15;
|
|
570
|
-
$[29] === Symbol.for("react.memo_cache_sentinel") ? (t15 = css.avatarArrow(), $[29] = t15) : t15 = $[29];
|
|
571
|
-
let t16;
|
|
572
|
-
$[30] !== color ? (t16 = /* @__PURE__ */ jsxRuntime.jsx("span", { className: t15, children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z", fill: color }) }) }), $[30] = color, $[31] = t16) : t16 = $[31];
|
|
573
|
-
let t17;
|
|
574
|
-
$[32] === Symbol.for("react.memo_cache_sentinel") ? (t17 = css.avatarInitials(), $[32] = t17) : t17 = $[32];
|
|
575
|
-
let t18;
|
|
576
|
-
$[33] !== initials || $[34] !== initialsSize ? (t18 = /* @__PURE__ */ jsxRuntime.jsx(Box, { align: "center", as: "span", className: t17, display: "flex", justify: "center", position: "absolute", inset: 0, children: /* @__PURE__ */ jsxRuntime.jsx(Label, { align: "center", as: "span", size: initialsSize, weight: "medium", children: initials }) }), $[33] = initials, $[34] = initialsSize, $[35] = t18) : t18 = $[35];
|
|
577
|
-
let t19;
|
|
578
|
-
$[36] !== handleImageError || $[37] !== initials || $[38] !== src ? (t19 = src && /* @__PURE__ */ jsxRuntime.jsxs(Box, { className: css.avatarImage(), inset: 0, position: "absolute", children: [
|
|
579
|
-
/* @__PURE__ */ jsxRuntime.jsx("img", { alt: initials, onError: handleImageError, src }),
|
|
580
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", {})
|
|
581
|
-
] }), $[36] = handleImageError, $[37] = initials, $[38] = src, $[39] = t19) : t19 = $[39];
|
|
582
|
-
let t20;
|
|
583
|
-
return $[40] !== Element2 || $[41] !== arrowPosition || $[42] !== rest || $[43] !== t12 || $[44] !== t13 || $[45] !== t14 || $[46] !== t16 || $[47] !== t18 || $[48] !== t19 || $[49] !== title ? (t20 = /* @__PURE__ */ jsxRuntime.jsxs(Element2, { "data-hide-inner-stroke": t12, "data-ui": "Avatar", ...rest, "aria-label": title, className: t13, "data-arrow-position": arrowPosition, "data-image-error": t14, title, children: [
|
|
584
|
-
t16,
|
|
585
|
-
t18,
|
|
586
|
-
t19
|
|
587
|
-
] }), $[40] = Element2, $[41] = arrowPosition, $[42] = rest, $[43] = t12, $[44] = t13, $[45] = t14, $[46] = t16, $[47] = t18, $[48] = t19, $[49] = title, $[50] = t20) : t20 = $[50], t20;
|
|
588
|
-
}
|
|
589
|
-
function _temp$4(s) {
|
|
590
|
-
return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
|
|
591
|
-
}
|
|
592
|
-
Avatar.displayName = "Avatar";
|
|
593
|
-
const DEFAULT_AVATAR_COUNTER_ELEMENT = "div";
|
|
594
|
-
function AvatarCounter(props) {
|
|
595
|
-
const $ = reactCompilerRuntime.c(19), t0 = props;
|
|
596
|
-
let className, count, rest, t1, t2;
|
|
597
|
-
$[0] !== t0 ? ({
|
|
598
|
-
as: t1,
|
|
599
|
-
className,
|
|
600
|
-
count,
|
|
601
|
-
size: t2,
|
|
602
|
-
...rest
|
|
603
|
-
} = t0, $[0] = t0, $[1] = className, $[2] = count, $[3] = rest, $[4] = t1, $[5] = t2) : (className = $[1], count = $[2], rest = $[3], t1 = $[4], t2 = $[5]);
|
|
604
|
-
const as = t1 === void 0 ? DEFAULT_AVATAR_COUNTER_ELEMENT : t1, size2 = useArrayProp(t2 === void 0 ? 1 : t2);
|
|
605
|
-
let t3, t4;
|
|
606
|
-
$[6] !== size2 ? (t4 = size2.map(_temp$3), $[6] = size2, $[7] = t4) : t4 = $[7], t3 = t4;
|
|
607
|
-
const labelSize = t3;
|
|
608
|
-
let t5;
|
|
609
|
-
$[8] !== className || $[9] !== size2 ? (t5 = css._composeClassNames(className, css.avatarCounter({
|
|
610
|
-
size: size2
|
|
611
|
-
})), $[8] = className, $[9] = size2, $[10] = t5) : t5 = $[10];
|
|
612
|
-
let t6;
|
|
613
|
-
$[11] !== count || $[12] !== labelSize ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Label, { align: "center", as: "span", size: labelSize, weight: "medium", children: count }), $[11] = count, $[12] = labelSize, $[13] = t6) : t6 = $[13];
|
|
614
|
-
let t7;
|
|
615
|
-
return $[14] !== as || $[15] !== rest || $[16] !== t5 || $[17] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "AvatarCounter", ...rest, align: "center", as, className: t5, display: "flex", justify: "center", paddingX: 2, sizing: "border", children: t6 }), $[14] = as, $[15] = rest, $[16] = t5, $[17] = t6, $[18] = t7) : t7 = $[18], t7;
|
|
616
|
-
}
|
|
617
|
-
function _temp$3(s) {
|
|
618
|
-
return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
|
|
619
|
-
}
|
|
620
|
-
AvatarCounter.displayName = "AvatarCounter";
|
|
621
|
-
const DEFAULT_AVATAR_STACK_ELEMENT = "div";
|
|
622
|
-
function AvatarStack(props) {
|
|
623
|
-
const $ = reactCompilerRuntime.c(20), t0 = props;
|
|
624
|
-
let childrenProp, className, rest, t1, t2, t3;
|
|
625
|
-
$[0] !== t0 ? ({
|
|
626
|
-
as: t1,
|
|
627
|
-
children: childrenProp,
|
|
628
|
-
className,
|
|
629
|
-
maxLength: t2,
|
|
630
|
-
size: t3,
|
|
631
|
-
...rest
|
|
632
|
-
} = t0, $[0] = t0, $[1] = childrenProp, $[2] = className, $[3] = rest, $[4] = t1, $[5] = t2, $[6] = t3) : (childrenProp = $[1], className = $[2], rest = $[3], t1 = $[4], t2 = $[5], t3 = $[6]);
|
|
633
|
-
const as = t1 === void 0 ? DEFAULT_AVATAR_STACK_ELEMENT : t1, maxLengthProp = t2 === void 0 ? 4 : t2, sizeProp = t3 === void 0 ? 1 : t3, children = react.Children.toArray(childrenProp).filter(react.isValidElement), maxLength = Math.max(maxLengthProp, 0), size2 = useArrayProp(sizeProp), len = children.length, visibleCount = maxLength - 1, extraCount = len - visibleCount, visibleChildren = extraCount > 1 ? children.slice(extraCount, len) : children, T0 = Box, t4 = "AvatarStack", t5 = "center";
|
|
634
|
-
let t6;
|
|
635
|
-
$[7] !== className || $[8] !== size2 ? (t6 = css._composeClassNames(className, css.avatarStack({
|
|
636
|
-
size: size2
|
|
637
|
-
})), $[7] = className, $[8] = size2, $[9] = t6) : t6 = $[9];
|
|
638
|
-
const t7 = "flex", t8 = len === 0 && /* @__PURE__ */ jsxRuntime.jsx(Box, { flex: "none", children: /* @__PURE__ */ jsxRuntime.jsx(AvatarCounter, { count: len, size: size2 }) }), t9 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsxRuntime.jsx(Box, { flex: "none", children: /* @__PURE__ */ jsxRuntime.jsx(AvatarCounter, { count: extraCount, size: size2 }) });
|
|
509
|
+
width
|
|
510
|
+
}), $[76] = alignItems, $[77] = autoCols, $[78] = autoFlow, $[79] = autoRows, $[80] = border, $[81] = borderBottom, $[82] = borderLeft, $[83] = borderRight, $[84] = borderTop, $[85] = className, $[86] = column, $[87] = columnEnd, $[88] = columnStart, $[89] = columns, $[90] = display, $[91] = flex, $[92] = flexDirection, $[93] = flexWrap, $[94] = gap, $[95] = gapX, $[96] = gapY, $[97] = gridAutoColumns, $[98] = gridAutoFlow, $[99] = gridAutoRows, $[100] = gridColumn, $[101] = gridColumnEnd, $[102] = gridColumnStart, $[103] = gridRow, $[104] = gridRowEnd, $[105] = gridRowStart, $[106] = gridTemplateColumns, $[107] = gridTemplateRows, $[108] = height, $[109] = inset, $[110] = insetBottom, $[111] = insetLeft, $[112] = insetRight, $[113] = insetTop, $[114] = justifyContent, $[115] = margin, $[116] = marginBottom, $[117] = marginLeft, $[118] = marginRight, $[119] = marginTop, $[120] = marginX, $[121] = marginY, $[122] = maxWidth, $[123] = minHeight, $[124] = minWidth, $[125] = muted, $[126] = outline, $[127] = overflow, $[128] = overflowX, $[129] = overflowY, $[130] = padding, $[131] = paddingBottom, $[132] = paddingLeft, $[133] = paddingRight, $[134] = paddingTop, $[135] = paddingX, $[136] = paddingY, $[137] = pointerEvents, $[138] = position, $[139] = radius, $[140] = row, $[141] = rowEnd, $[142] = rowStart, $[143] = rows, $[144] = shadow, $[145] = sizing, $[146] = textAlign, $[147] = width, $[148] = t9) : t9 = $[148];
|
|
639
511
|
let t10;
|
|
640
|
-
$[
|
|
641
|
-
size: size2
|
|
642
|
-
}) }, String(childIndex)), $[10] = size2, $[11] = t10) : t10 = $[11];
|
|
643
|
-
const t11 = visibleChildren.map(t10);
|
|
644
|
-
let t12;
|
|
645
|
-
return $[12] !== T0 || $[13] !== as || $[14] !== rest || $[15] !== t11 || $[16] !== t6 || $[17] !== t8 || $[18] !== t9 ? (t12 = /* @__PURE__ */ jsxRuntime.jsxs(T0, { "data-ui": t4, ...rest, align: t5, as, className: t6, display: t7, children: [
|
|
646
|
-
t8,
|
|
647
|
-
t9,
|
|
648
|
-
t11
|
|
649
|
-
] }), $[12] = T0, $[13] = as, $[14] = rest, $[15] = t11, $[16] = t6, $[17] = t8, $[18] = t9, $[19] = t12) : t12 = $[19], t12;
|
|
512
|
+
return $[149] !== Element || $[150] !== children || $[151] !== rest || $[152] !== t9 ? (t10 = /* @__PURE__ */ jsxRuntime.jsx(Element, { "data-ui": "Box", ...rest, className: t9, children }), $[149] = Element, $[150] = children, $[151] = rest, $[152] = t9, $[153] = t10) : t10 = $[153], t10;
|
|
650
513
|
}
|
|
651
|
-
AvatarStack.displayName = "AvatarStack";
|
|
652
514
|
const DEFAULT_TEXT_ELEMENT = "div";
|
|
653
515
|
function Text(props) {
|
|
654
516
|
const $ = reactCompilerRuntime.c(30), t0 = props;
|
|
@@ -666,16 +528,17 @@ function Text(props) {
|
|
|
666
528
|
weight: t3,
|
|
667
529
|
...rest
|
|
668
530
|
} = t0, $[0] = t0, $[1] = accent, $[2] = align, $[3] = children, $[4] = className, $[5] = flex, $[6] = muted, $[7] = rest, $[8] = t1, $[9] = t2, $[10] = t3, $[11] = textOverflowProp) : (accent = $[1], align = $[2], children = $[3], className = $[4], flex = $[5], muted = $[6], rest = $[7], t1 = $[8], t2 = $[9], t3 = $[10], textOverflowProp = $[11]);
|
|
669
|
-
const
|
|
531
|
+
const Element = t1 === void 0 ? DEFAULT_TEXT_ELEMENT : t1, size2 = t2 === void 0 ? 2 : t2, weight = t3 === void 0 ? "regular" : t3;
|
|
670
532
|
let t4;
|
|
671
|
-
$[12] !== accent || $[13] !== align || $[14] !== className || $[15] !== flex || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t4 = css.
|
|
533
|
+
$[12] !== accent || $[13] !== align || $[14] !== className || $[15] !== flex || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t4 = css.text({
|
|
534
|
+
className,
|
|
672
535
|
accent,
|
|
673
536
|
align,
|
|
674
537
|
flex,
|
|
675
538
|
muted,
|
|
676
539
|
size: size2,
|
|
677
540
|
weight
|
|
678
|
-
})
|
|
541
|
+
}), $[12] = accent, $[13] = align, $[14] = className, $[15] = flex, $[16] = muted, $[17] = size2, $[18] = weight, $[19] = t4) : t4 = $[19];
|
|
679
542
|
let t5;
|
|
680
543
|
$[20] !== textOverflowProp ? (t5 = css.textOverflow({
|
|
681
544
|
textOverflow: textOverflowProp
|
|
@@ -683,68 +546,43 @@ function Text(props) {
|
|
|
683
546
|
let t6;
|
|
684
547
|
$[22] !== children || $[23] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx("span", { className: t5, children }), $[22] = children, $[23] = t5, $[24] = t6) : t6 = $[24];
|
|
685
548
|
let t7;
|
|
686
|
-
return $[25] !==
|
|
687
|
-
}
|
|
688
|
-
Text.displayName = "Text";
|
|
689
|
-
const DEFAULT_BADGE_ELEMENT = "span";
|
|
690
|
-
function Badge(props) {
|
|
691
|
-
const $ = reactCompilerRuntime.c(22), t0 = props;
|
|
692
|
-
let children, className, rest, t1, t2, t3, t4, t5;
|
|
693
|
-
$[0] !== t0 ? ({
|
|
694
|
-
as: t1,
|
|
695
|
-
children,
|
|
696
|
-
className,
|
|
697
|
-
fontSize: t2,
|
|
698
|
-
padding: t3,
|
|
699
|
-
radius: t4,
|
|
700
|
-
tone: t5,
|
|
701
|
-
...rest
|
|
702
|
-
} = t0, $[0] = t0, $[1] = children, $[2] = className, $[3] = rest, $[4] = t1, $[5] = t2, $[6] = t3, $[7] = t4, $[8] = t5) : (children = $[1], className = $[2], rest = $[3], t1 = $[4], t2 = $[5], t3 = $[6], t4 = $[7], t5 = $[8]);
|
|
703
|
-
const as = t1 === void 0 ? DEFAULT_BADGE_ELEMENT : t1, fontSize = t2 === void 0 ? 1 : t2, padding = t3 === void 0 ? 1 : t3, radius = t4 === void 0 ? 2 : t4, tone = t5 === void 0 ? "default" : t5;
|
|
704
|
-
let t6;
|
|
705
|
-
$[9] !== className || $[10] !== radius || $[11] !== tone ? (t6 = css._composeClassNames(className, css.badge({
|
|
706
|
-
radius,
|
|
707
|
-
tone
|
|
708
|
-
})), $[9] = className, $[10] = radius, $[11] = tone, $[12] = t6) : t6 = $[12];
|
|
709
|
-
let t7;
|
|
710
|
-
$[13] !== children || $[14] !== fontSize ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize, children }), $[13] = children, $[14] = fontSize, $[15] = t7) : t7 = $[15];
|
|
711
|
-
let t8;
|
|
712
|
-
return $[16] !== as || $[17] !== padding || $[18] !== rest || $[19] !== t6 || $[20] !== t7 ? (t8 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "Badge", ...rest, as, className: t6, display: "inline-flex", maxWidth: "fill", padding, children: t7 }), $[16] = as, $[17] = padding, $[18] = rest, $[19] = t6, $[20] = t7, $[21] = t8) : t8 = $[21], t8;
|
|
549
|
+
return $[25] !== Element || $[26] !== rest || $[27] !== t4 || $[28] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(Element, { "data-ui": "Text", ...rest, className: t4, children: t6 }), $[25] = Element, $[26] = rest, $[27] = t4, $[28] = t6, $[29] = t7) : t7 = $[29], t7;
|
|
713
550
|
}
|
|
714
|
-
Badge.displayName = "Badge";
|
|
715
551
|
function AnimatedSpinnerIcon(props) {
|
|
716
|
-
const $ = reactCompilerRuntime.c(
|
|
717
|
-
let
|
|
552
|
+
const $ = reactCompilerRuntime.c(5);
|
|
553
|
+
let rest;
|
|
718
554
|
$[0] !== props ? ({
|
|
719
|
-
className,
|
|
720
555
|
...rest
|
|
721
|
-
} = props, $[0] = props, $[1] =
|
|
556
|
+
} = props, $[0] = props, $[1] = rest) : rest = $[1];
|
|
722
557
|
let t0;
|
|
723
|
-
$[
|
|
558
|
+
$[2] === Symbol.for("react.memo_cache_sentinel") ? (t0 = css.animatedSpinnerIcon(), $[2] = t0) : t0 = $[2];
|
|
724
559
|
let t1;
|
|
725
|
-
return $[
|
|
560
|
+
return $[3] !== rest ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(icons.SpinnerIcon, { "data-sanity-icon": "animated-spinner", ...rest, className: t0 }), $[3] = rest, $[4] = t1) : t1 = $[4], t1;
|
|
726
561
|
}
|
|
727
|
-
AnimatedSpinnerIcon.displayName = "AnimatedSpinnerIcon";
|
|
728
562
|
const DEFAULT_SPINNER_ELEMENT = "div";
|
|
729
563
|
function Spinner(props) {
|
|
730
|
-
const $ = reactCompilerRuntime.c(
|
|
731
|
-
let rest, t1;
|
|
564
|
+
const $ = reactCompilerRuntime.c(11), t0 = props;
|
|
565
|
+
let className, rest, t1;
|
|
732
566
|
$[0] !== t0 ? ({
|
|
733
567
|
as: t1,
|
|
568
|
+
className,
|
|
734
569
|
...rest
|
|
735
|
-
} = t0, $[0] = t0, $[1] =
|
|
570
|
+
} = t0, $[0] = t0, $[1] = className, $[2] = rest, $[3] = t1) : (className = $[1], rest = $[2], t1 = $[3]);
|
|
736
571
|
const as = t1 === void 0 ? DEFAULT_SPINNER_ELEMENT : t1;
|
|
737
|
-
let t2
|
|
738
|
-
$[
|
|
572
|
+
let t2;
|
|
573
|
+
$[4] !== className ? (t2 = css.spinner({
|
|
574
|
+
className
|
|
575
|
+
}), $[4] = className, $[5] = t2) : t2 = $[5];
|
|
576
|
+
let t3;
|
|
577
|
+
$[6] === Symbol.for("react.memo_cache_sentinel") ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(AnimatedSpinnerIcon, {}), $[6] = t3) : t3 = $[6];
|
|
739
578
|
let t4;
|
|
740
|
-
return $[
|
|
579
|
+
return $[7] !== as || $[8] !== rest || $[9] !== t2 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Text, { as, "data-ui": "Spinner", ...rest, className: t2, children: t3 }), $[7] = as, $[8] = rest, $[9] = t2, $[10] = t4) : t4 = $[10], t4;
|
|
741
580
|
}
|
|
742
|
-
Spinner.displayName = "Spinner";
|
|
743
581
|
const DEFAULT_BUTTON_ELEMENT = "button";
|
|
744
582
|
function Button(props) {
|
|
745
583
|
const {
|
|
746
584
|
align = "center",
|
|
747
|
-
as:
|
|
585
|
+
as: Element = DEFAULT_BUTTON_ELEMENT,
|
|
748
586
|
children,
|
|
749
587
|
className,
|
|
750
588
|
disabled,
|
|
@@ -782,26 +620,27 @@ function Button(props) {
|
|
|
782
620
|
} = props;
|
|
783
621
|
let href;
|
|
784
622
|
return "href" in rest && (href = typeof rest.href == "string" ? rest.href : href, delete rest.href), /* @__PURE__ */ jsxRuntime.jsxs(
|
|
785
|
-
|
|
623
|
+
Element,
|
|
786
624
|
{
|
|
787
625
|
"data-ui": "Button",
|
|
788
626
|
...rest,
|
|
789
|
-
className: css.
|
|
627
|
+
className: css.button({
|
|
628
|
+
className,
|
|
790
629
|
display,
|
|
791
630
|
flex,
|
|
631
|
+
mode,
|
|
792
632
|
radius,
|
|
633
|
+
tone,
|
|
793
634
|
width
|
|
794
|
-
})
|
|
635
|
+
}),
|
|
795
636
|
"data-disabled": loading || disabled ? "" : void 0,
|
|
796
|
-
"data-mode": mode,
|
|
797
|
-
"data-tone": tone,
|
|
798
637
|
"data-selected": selected ? "" : void 0,
|
|
799
638
|
disabled: !!(loading || disabled),
|
|
800
639
|
href: disabled ? void 0 : href,
|
|
801
640
|
type,
|
|
802
641
|
children: [
|
|
803
|
-
!!loading && /* @__PURE__ */ jsxRuntime.jsx(Box, {
|
|
804
|
-
(IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsxs(Box, { align, as: "span", display: "flex", flex: 1, gap, gapX, gapY, justify, padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight, children: [
|
|
642
|
+
!!loading && /* @__PURE__ */ jsxRuntime.jsx(Box, { alignItems: "center", as: "span", className: css.buttonLoadingBox(), display: "flex", flex: 1, justifyContent: "center", width: "fill", children: /* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: fontSize }) }),
|
|
643
|
+
(IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsxs(Box, { alignItems: align, as: "span", display: "flex", flex: 1, gap, gapX, gapY, justifyContent: justify, padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight, children: [
|
|
805
644
|
IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
|
|
806
645
|
react.isValidElement(IconComponent) && IconComponent,
|
|
807
646
|
reactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
|
|
@@ -817,14 +656,13 @@ function Button(props) {
|
|
|
817
656
|
}
|
|
818
657
|
);
|
|
819
658
|
}
|
|
820
|
-
Button.displayName = "Button";
|
|
821
659
|
function useCard() {
|
|
822
660
|
return react.useContext(CardContext);
|
|
823
661
|
}
|
|
824
662
|
const DEFAULT_CARD_ELEMENT = "div";
|
|
825
663
|
function Card(props) {
|
|
826
|
-
const $ = reactCompilerRuntime.c(
|
|
827
|
-
let className, disabled, pressed, rest, schemeProp, selected,
|
|
664
|
+
const $ = reactCompilerRuntime.c(38), t0 = props;
|
|
665
|
+
let className, disabled, pressed, rest, schemeProp, selected, style, t1, t2, t3, t4, t5;
|
|
828
666
|
$[0] !== t0 ? ({
|
|
829
667
|
__unstable_checkered: t1,
|
|
830
668
|
__unstable_focusRing: t2,
|
|
@@ -835,76 +673,32 @@ function Card(props) {
|
|
|
835
673
|
radius: t4,
|
|
836
674
|
scheme: schemeProp,
|
|
837
675
|
selected,
|
|
838
|
-
shadow,
|
|
839
676
|
style,
|
|
840
677
|
tone: t5,
|
|
841
678
|
...rest
|
|
842
|
-
} = t0, $[0] = t0, $[1] = className, $[2] = disabled, $[3] = pressed, $[4] = rest, $[5] = schemeProp, $[6] = selected, $[7] =
|
|
679
|
+
} = t0, $[0] = t0, $[1] = className, $[2] = disabled, $[3] = pressed, $[4] = rest, $[5] = schemeProp, $[6] = selected, $[7] = style, $[8] = t1, $[9] = t2, $[10] = t3, $[11] = t4, $[12] = t5) : (className = $[1], disabled = $[2], pressed = $[3], rest = $[4], schemeProp = $[5], selected = $[6], style = $[7], t1 = $[8], t2 = $[9], t3 = $[10], t4 = $[11], t5 = $[12]);
|
|
843
680
|
const checkered = t1 === void 0 ? !1 : t1, focusRing = t2 === void 0 ? !1 : t2, as = t3 === void 0 ? DEFAULT_CARD_ELEMENT : t3, radius = t4 === void 0 ? 0 : t4, toneProp = t5 === void 0 ? "default" : t5, parent = useCard(), tone = toneProp === "inherit" ? parent?.tone : toneProp, scheme = schemeProp === void 0 ? parent?.scheme : schemeProp, t6 = scheme === parent?.scheme ? void 0 : scheme;
|
|
844
681
|
let t7;
|
|
845
|
-
$[
|
|
682
|
+
$[13] !== className || $[14] !== t6 || $[15] !== tone ? (t7 = css.card({
|
|
683
|
+
className,
|
|
846
684
|
scheme: t6,
|
|
847
|
-
shadow,
|
|
848
685
|
tone
|
|
849
|
-
})
|
|
686
|
+
}), $[13] = className, $[14] = t6, $[15] = tone, $[16] = t7) : t7 = $[16];
|
|
850
687
|
const t8 = checkered ? "" : void 0, t9 = disabled ? "" : void 0, t10 = focusRing ? "" : void 0, t11 = pressed ? "" : void 0, t12 = selected ? "" : void 0;
|
|
851
688
|
let t13;
|
|
852
|
-
$[
|
|
689
|
+
$[17] !== as || $[18] !== radius || $[19] !== rest || $[20] !== style || $[21] !== t10 || $[22] !== t11 || $[23] !== t12 || $[24] !== t7 || $[25] !== t8 || $[26] !== t9 ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "Card", ...rest, as, className: t7, "data-checkered": t8, "data-disabled": t9, "data-focus-ring": t10, "data-pressed": t11, "data-selected": t12, radius, style }), $[17] = as, $[18] = radius, $[19] = rest, $[20] = style, $[21] = t10, $[22] = t11, $[23] = t12, $[24] = t7, $[25] = t8, $[26] = t9, $[27] = t13) : t13 = $[27];
|
|
853
690
|
let node = t13;
|
|
854
691
|
if (scheme === parent?.scheme && tone === parent?.tone)
|
|
855
692
|
return node;
|
|
856
693
|
const t14 = scheme ?? "light", t15 = tone ?? "default", t16 = parent?.unstable_CompatProvider;
|
|
857
694
|
let t17;
|
|
858
|
-
if ($[
|
|
695
|
+
if ($[28] !== node || $[29] !== t14 || $[30] !== t15 || $[31] !== t16 ? (t17 = /* @__PURE__ */ jsxRuntime.jsx(CardProvider, { scheme: t14, tone: t15, unstable_CompatProvider: t16, children: node }), $[28] = node, $[29] = t14, $[30] = t15, $[31] = t16, $[32] = t17) : t17 = $[32], node = t17, parent?.unstable_CompatProvider) {
|
|
859
696
|
const CompatProvider = parent.unstable_CompatProvider, t18 = scheme ?? "light", t19 = tone ?? parent?.tone ?? "default";
|
|
860
697
|
let t20;
|
|
861
|
-
return $[
|
|
698
|
+
return $[33] !== CompatProvider || $[34] !== node || $[35] !== t18 || $[36] !== t19 ? (t20 = /* @__PURE__ */ jsxRuntime.jsx(CompatProvider, { scheme: t18, tone: t19, children: node }), $[33] = CompatProvider, $[34] = node, $[35] = t18, $[36] = t19, $[37] = t20) : t20 = $[37], t20;
|
|
862
699
|
}
|
|
863
700
|
return node;
|
|
864
701
|
}
|
|
865
|
-
Card.displayName = "Card";
|
|
866
|
-
const DEFAULT_CHECKBOX_ELEMENT = "input";
|
|
867
|
-
function Checkbox(props) {
|
|
868
|
-
const $ = reactCompilerRuntime.c(32), t0 = props;
|
|
869
|
-
let checked, className, customValidity, disabled, forwardedRef, indeterminate, readOnly, rest, style, t1;
|
|
870
|
-
$[0] !== t0 ? ({
|
|
871
|
-
as: t1,
|
|
872
|
-
checked,
|
|
873
|
-
className,
|
|
874
|
-
disabled,
|
|
875
|
-
indeterminate,
|
|
876
|
-
customValidity,
|
|
877
|
-
readOnly,
|
|
878
|
-
ref: forwardedRef,
|
|
879
|
-
style,
|
|
880
|
-
...rest
|
|
881
|
-
} = t0, $[0] = t0, $[1] = checked, $[2] = className, $[3] = customValidity, $[4] = disabled, $[5] = forwardedRef, $[6] = indeterminate, $[7] = readOnly, $[8] = rest, $[9] = style, $[10] = t1) : (checked = $[1], className = $[2], customValidity = $[3], disabled = $[4], forwardedRef = $[5], indeterminate = $[6], readOnly = $[7], rest = $[8], style = $[9], t1 = $[10]);
|
|
882
|
-
const Element2 = t1 === void 0 ? DEFAULT_CHECKBOX_ELEMENT : t1, ref = react.useRef(null);
|
|
883
|
-
let t2;
|
|
884
|
-
$[11] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[11] = t2) : t2 = $[11], react.useImperativeHandle(forwardedRef, t2);
|
|
885
|
-
let t3, t4;
|
|
886
|
-
$[12] !== indeterminate ? (t3 = () => {
|
|
887
|
-
ref.current && (ref.current.indeterminate = indeterminate || !1);
|
|
888
|
-
}, t4 = [indeterminate], $[12] = indeterminate, $[13] = t3, $[14] = t4) : (t3 = $[13], t4 = $[14]), react.useEffect(t3, t4), useCustomValidity(ref, customValidity);
|
|
889
|
-
let t5;
|
|
890
|
-
$[15] !== className ? (t5 = css._composeClassNames(className, css.checkbox()), $[15] = className, $[16] = t5) : t5 = $[16];
|
|
891
|
-
let t6;
|
|
892
|
-
$[17] !== className ? (t6 = css._composeClassNames(className, css.checkboxInput()), $[17] = className, $[18] = t6) : t6 = $[18];
|
|
893
|
-
const t7 = customValidity ? "" : void 0, t8 = disabled || readOnly;
|
|
894
|
-
let t9;
|
|
895
|
-
$[19] !== Element2 || $[20] !== checked || $[21] !== readOnly || $[22] !== rest || $[23] !== t6 || $[24] !== t7 || $[25] !== t8 ? (t9 = /* @__PURE__ */ jsxRuntime.jsx(Element2, { ...rest, checked, className: t6, "data-invalid": t7, disabled: t8, type: "checkbox", readOnly, ref }), $[19] = Element2, $[20] = checked, $[21] = readOnly, $[22] = rest, $[23] = t6, $[24] = t7, $[25] = t8, $[26] = t9) : t9 = $[26];
|
|
896
|
-
let t10;
|
|
897
|
-
$[27] === Symbol.for("react.memo_cache_sentinel") ? (t10 = /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
898
|
-
/* @__PURE__ */ jsxRuntime.jsx(icons.CheckmarkIcon, {}),
|
|
899
|
-
/* @__PURE__ */ jsxRuntime.jsx(icons.RemoveIcon, {})
|
|
900
|
-
] }), $[27] = t10) : t10 = $[27];
|
|
901
|
-
let t11;
|
|
902
|
-
return $[28] !== style || $[29] !== t5 || $[30] !== t9 ? (t11 = /* @__PURE__ */ jsxRuntime.jsxs("span", { className: t5, "data-ui": "Checkbox", style, children: [
|
|
903
|
-
t9,
|
|
904
|
-
t10
|
|
905
|
-
] }), $[28] = style, $[29] = t5, $[30] = t9, $[31] = t11) : t11 = $[31], t11;
|
|
906
|
-
}
|
|
907
|
-
Checkbox.displayName = "Checkbox";
|
|
908
702
|
const LazyRefractor = react.lazy(() => Promise.resolve().then(function() {
|
|
909
703
|
return require("./refractor.cjs");
|
|
910
704
|
})), DEFAULT_CODE_ELEMENT = "pre";
|
|
@@ -920,12 +714,13 @@ function Code(props) {
|
|
|
920
714
|
weight: t3,
|
|
921
715
|
...rest
|
|
922
716
|
} = t0, $[0] = t0, $[1] = children, $[2] = className, $[3] = languageProp, $[4] = rest, $[5] = t1, $[6] = t2, $[7] = t3) : (children = $[1], className = $[2], languageProp = $[3], rest = $[4], t1 = $[5], t2 = $[6], t3 = $[7]);
|
|
923
|
-
const
|
|
717
|
+
const Element = t1 === void 0 ? DEFAULT_CODE_ELEMENT : t1, size2 = t2 === void 0 ? 2 : t2, weight = t3 === void 0 ? "regular" : t3, language = typeof languageProp == "string" ? languageProp : void 0;
|
|
924
718
|
let t4;
|
|
925
|
-
$[8] !== className || $[9] !== size2 || $[10] !== weight ? (t4 = css.
|
|
719
|
+
$[8] !== className || $[9] !== size2 || $[10] !== weight ? (t4 = css.code({
|
|
720
|
+
className,
|
|
926
721
|
size: size2,
|
|
927
722
|
weight
|
|
928
|
-
})
|
|
723
|
+
}), $[8] = className, $[9] = size2, $[10] = weight, $[11] = t4) : t4 = $[11];
|
|
929
724
|
let t5;
|
|
930
725
|
$[12] !== children ? (t5 = /* @__PURE__ */ jsxRuntime.jsx("code", { children }), $[12] = children, $[13] = t5) : t5 = $[13];
|
|
931
726
|
let t6;
|
|
@@ -933,42 +728,24 @@ function Code(props) {
|
|
|
933
728
|
let t7;
|
|
934
729
|
$[17] !== t5 || $[18] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: t5, children: t6 }), $[17] = t5, $[18] = t6, $[19] = t7) : t7 = $[19];
|
|
935
730
|
let t8;
|
|
936
|
-
return $[20] !==
|
|
937
|
-
}
|
|
938
|
-
Code.displayName = "Code";
|
|
939
|
-
const DEFAULT_CONTAINER_ELEMENT = "div";
|
|
940
|
-
function Container(props) {
|
|
941
|
-
const $ = reactCompilerRuntime.c(12), t0 = props;
|
|
942
|
-
let className, rest, t1, t2;
|
|
943
|
-
$[0] !== t0 ? ({
|
|
944
|
-
as: t1,
|
|
945
|
-
className,
|
|
946
|
-
width: t2,
|
|
947
|
-
...rest
|
|
948
|
-
} = t0, $[0] = t0, $[1] = className, $[2] = rest, $[3] = t1, $[4] = t2) : (className = $[1], rest = $[2], t1 = $[3], t2 = $[4]);
|
|
949
|
-
const as = t1 === void 0 ? DEFAULT_CONTAINER_ELEMENT : t1, width = t2 === void 0 ? 2 : t2;
|
|
950
|
-
let t3;
|
|
951
|
-
$[5] !== className || $[6] !== width ? (t3 = css._composeClassNames(className, css.container({
|
|
952
|
-
width
|
|
953
|
-
})), $[5] = className, $[6] = width, $[7] = t3) : t3 = $[7];
|
|
954
|
-
let t4;
|
|
955
|
-
return $[8] !== as || $[9] !== rest || $[10] !== t3 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "Container", ...rest, as, className: t3 }), $[8] = as, $[9] = rest, $[10] = t3, $[11] = t4) : t4 = $[11], t4;
|
|
731
|
+
return $[20] !== Element || $[21] !== rest || $[22] !== t4 || $[23] !== t7 ? (t8 = /* @__PURE__ */ jsxRuntime.jsx(Element, { "data-ui": "Code", ...rest, className: t4, children: t7 }), $[20] = Element, $[21] = rest, $[22] = t4, $[23] = t7, $[24] = t8) : t8 = $[24], t8;
|
|
956
732
|
}
|
|
957
|
-
Container.displayName = "Container";
|
|
958
733
|
const DEFAULT_FLEX_ELEMENT = "div";
|
|
959
734
|
function Flex(props) {
|
|
960
|
-
const $ = reactCompilerRuntime.c(
|
|
961
|
-
let rest, t1, t2;
|
|
735
|
+
const $ = reactCompilerRuntime.c(14), t0 = props;
|
|
736
|
+
let align, justify, rest, t1, t2, wrap;
|
|
962
737
|
$[0] !== t0 ? ({
|
|
738
|
+
align,
|
|
963
739
|
as: t1,
|
|
964
740
|
direction: t2,
|
|
741
|
+
justify,
|
|
742
|
+
wrap,
|
|
965
743
|
...rest
|
|
966
|
-
} = t0, $[0] = t0, $[1] =
|
|
744
|
+
} = t0, $[0] = t0, $[1] = align, $[2] = justify, $[3] = rest, $[4] = t1, $[5] = t2, $[6] = wrap) : (align = $[1], justify = $[2], rest = $[3], t1 = $[4], t2 = $[5], wrap = $[6]);
|
|
967
745
|
const as = t1 === void 0 ? DEFAULT_FLEX_ELEMENT : t1, direction = t2 === void 0 ? "row" : t2;
|
|
968
746
|
let t3;
|
|
969
|
-
return $[
|
|
747
|
+
return $[7] !== align || $[8] !== as || $[9] !== direction || $[10] !== justify || $[11] !== rest || $[12] !== wrap ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "Flex", ...rest, alignItems: align, as, display: "flex", flexDirection: direction, flexWrap: wrap, justifyContent: justify }), $[7] = align, $[8] = as, $[9] = direction, $[10] = justify, $[11] = rest, $[12] = wrap, $[13] = t3) : t3 = $[13], t3;
|
|
970
748
|
}
|
|
971
|
-
Flex.displayName = "Flex";
|
|
972
749
|
const DEFAULT_GRID_ELEMENT = "div";
|
|
973
750
|
function Grid(props) {
|
|
974
751
|
const $ = reactCompilerRuntime.c(8), t0 = props;
|
|
@@ -982,60 +759,6 @@ function Grid(props) {
|
|
|
982
759
|
let t2;
|
|
983
760
|
return $[4] !== as || $[5] !== children || $[6] !== rest ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "Grid", ...rest, as, display: "grid", children }), $[4] = as, $[5] = children, $[6] = rest, $[7] = t2) : t2 = $[7], t2;
|
|
984
761
|
}
|
|
985
|
-
Grid.displayName = "Grid";
|
|
986
|
-
const DEFAULT_HEADING_ELEMENT = "div";
|
|
987
|
-
function Heading(props) {
|
|
988
|
-
const $ = reactCompilerRuntime.c(30), t0 = props;
|
|
989
|
-
let align, children, className, flex, rest, t1, t2, t3, t4, t5, textOverflowProp;
|
|
990
|
-
$[0] !== t0 ? ({
|
|
991
|
-
accent: t1,
|
|
992
|
-
align,
|
|
993
|
-
as: t2,
|
|
994
|
-
children,
|
|
995
|
-
className,
|
|
996
|
-
flex,
|
|
997
|
-
muted: t3,
|
|
998
|
-
size: t4,
|
|
999
|
-
textOverflow: textOverflowProp,
|
|
1000
|
-
weight: t5,
|
|
1001
|
-
...rest
|
|
1002
|
-
} = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = rest, $[6] = t1, $[7] = t2, $[8] = t3, $[9] = t4, $[10] = t5, $[11] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], flex = $[4], rest = $[5], t1 = $[6], t2 = $[7], t3 = $[8], t4 = $[9], t5 = $[10], textOverflowProp = $[11]);
|
|
1003
|
-
const accent = t1 === void 0 ? !1 : t1, Element2 = t2 === void 0 ? DEFAULT_HEADING_ELEMENT : t2, muted = t3 === void 0 ? !1 : t3, size2 = t4 === void 0 ? 2 : t4, weight = t5 === void 0 ? "regular" : t5;
|
|
1004
|
-
let t6;
|
|
1005
|
-
$[12] !== accent || $[13] !== align || $[14] !== className || $[15] !== flex || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t6 = css._composeClassNames(className, css.heading({
|
|
1006
|
-
accent,
|
|
1007
|
-
align,
|
|
1008
|
-
flex,
|
|
1009
|
-
muted,
|
|
1010
|
-
size: size2,
|
|
1011
|
-
weight
|
|
1012
|
-
})), $[12] = accent, $[13] = align, $[14] = className, $[15] = flex, $[16] = muted, $[17] = size2, $[18] = weight, $[19] = t6) : t6 = $[19];
|
|
1013
|
-
let t7;
|
|
1014
|
-
$[20] !== textOverflowProp ? (t7 = css.textOverflow({
|
|
1015
|
-
textOverflow: textOverflowProp
|
|
1016
|
-
}), $[20] = textOverflowProp, $[21] = t7) : t7 = $[21];
|
|
1017
|
-
let t8;
|
|
1018
|
-
$[22] !== children || $[23] !== t7 ? (t8 = /* @__PURE__ */ jsxRuntime.jsx("span", { className: t7, children }), $[22] = children, $[23] = t7, $[24] = t8) : t8 = $[24];
|
|
1019
|
-
let t9;
|
|
1020
|
-
return $[25] !== Element2 || $[26] !== rest || $[27] !== t6 || $[28] !== t8 ? (t9 = /* @__PURE__ */ jsxRuntime.jsx(Element2, { "data-ui": "Heading", ...rest, className: t6, children: t8 }), $[25] = Element2, $[26] = rest, $[27] = t6, $[28] = t8, $[29] = t9) : t9 = $[29], t9;
|
|
1021
|
-
}
|
|
1022
|
-
Heading.displayName = "Heading";
|
|
1023
|
-
const DEFAULT_INLINE_ELEMENT = "div";
|
|
1024
|
-
function Inline(props) {
|
|
1025
|
-
const $ = reactCompilerRuntime.c(11), t0 = props;
|
|
1026
|
-
let children, gap, rest, space, t1;
|
|
1027
|
-
$[0] !== t0 ? ({
|
|
1028
|
-
as: t1,
|
|
1029
|
-
children,
|
|
1030
|
-
gap,
|
|
1031
|
-
space,
|
|
1032
|
-
...rest
|
|
1033
|
-
} = t0, $[0] = t0, $[1] = children, $[2] = gap, $[3] = rest, $[4] = space, $[5] = t1) : (children = $[1], gap = $[2], rest = $[3], space = $[4], t1 = $[5]);
|
|
1034
|
-
const as = t1 === void 0 ? DEFAULT_INLINE_ELEMENT : t1, t2 = gap ?? space;
|
|
1035
|
-
let t3;
|
|
1036
|
-
return $[6] !== as || $[7] !== children || $[8] !== rest || $[9] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "Inline", ...rest, align: "center", as, display: "flex", gap: t2, wrap: "wrap", children }), $[6] = as, $[7] = children, $[8] = rest, $[9] = t2, $[10] = t3) : t3 = $[10], t3;
|
|
1037
|
-
}
|
|
1038
|
-
Inline.displayName = "Inline";
|
|
1039
762
|
const DEFAULT_KBD_ELEMENT = "kbd";
|
|
1040
763
|
function KBD(props) {
|
|
1041
764
|
const $ = reactCompilerRuntime.c(22), t0 = props;
|
|
@@ -1052,15 +775,15 @@ function KBD(props) {
|
|
|
1052
775
|
} = t0, $[0] = t0, $[1] = children, $[2] = className, $[3] = rest, $[4] = t1, $[5] = t2, $[6] = t3, $[7] = t4, $[8] = t5) : (children = $[1], className = $[2], rest = $[3], t1 = $[4], t2 = $[5], t3 = $[6], t4 = $[7], t5 = $[8]);
|
|
1053
776
|
const as = t1 === void 0 ? DEFAULT_KBD_ELEMENT : t1, display = t2 === void 0 ? "inline-block" : t2, fontSize = t3 === void 0 ? 0 : t3, padding = t4 === void 0 ? 1 : t4, radius = t5 === void 0 ? 2 : t5, t6 = as;
|
|
1054
777
|
let t7;
|
|
1055
|
-
$[9] !== className || $[10] !== radius ? (t7 = css.
|
|
778
|
+
$[9] !== className || $[10] !== radius ? (t7 = css.kbd({
|
|
779
|
+
className,
|
|
1056
780
|
radius
|
|
1057
|
-
})
|
|
781
|
+
}), $[9] = className, $[10] = radius, $[11] = t7) : t7 = $[11];
|
|
1058
782
|
let t8;
|
|
1059
783
|
$[12] !== children || $[13] !== fontSize ? (t8 = /* @__PURE__ */ jsxRuntime.jsx(Text, { as: "span", muted: !0, size: fontSize, weight: "semibold", children }), $[12] = children, $[13] = fontSize, $[14] = t8) : t8 = $[14];
|
|
1060
784
|
let t9;
|
|
1061
785
|
return $[15] !== display || $[16] !== padding || $[17] !== rest || $[18] !== t6 || $[19] !== t7 || $[20] !== t8 ? (t9 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "KBD", ...rest, as: t6, className: t7, display, muted: !0, padding, children: t8 }), $[15] = display, $[16] = padding, $[17] = rest, $[18] = t6, $[19] = t7, $[20] = t8, $[21] = t9) : t9 = $[21], t9;
|
|
1062
786
|
}
|
|
1063
|
-
KBD.displayName = "KBD";
|
|
1064
787
|
const origin = {
|
|
1065
788
|
name: "@sanity/ui/origin",
|
|
1066
789
|
fn({
|
|
@@ -1130,7 +853,7 @@ function compileCommands(cmds) {
|
|
|
1130
853
|
}
|
|
1131
854
|
const DEFAULT_ARROW_ELEMENT = "div";
|
|
1132
855
|
function Arrow(props) {
|
|
1133
|
-
const $ = reactCompilerRuntime.c(
|
|
856
|
+
const $ = reactCompilerRuntime.c(34), t0 = props;
|
|
1134
857
|
let h, rest, style, t1, t2, w;
|
|
1135
858
|
$[0] !== t0 ? ({
|
|
1136
859
|
as: t1,
|
|
@@ -1140,7 +863,7 @@ function Arrow(props) {
|
|
|
1140
863
|
style,
|
|
1141
864
|
...rest
|
|
1142
865
|
} = t0, $[0] = t0, $[1] = h, $[2] = rest, $[3] = style, $[4] = t1, $[5] = t2, $[6] = w) : (h = $[1], rest = $[2], style = $[3], t1 = $[4], t2 = $[5], w = $[6]);
|
|
1143
|
-
const
|
|
866
|
+
const Element = t1 === void 0 ? DEFAULT_ARROW_ELEMENT : t1, radius = t2 === void 0 ? 0 : t2, center = w / 2;
|
|
1144
867
|
let t3;
|
|
1145
868
|
const points = [{
|
|
1146
869
|
x: 0,
|
|
@@ -1167,53 +890,39 @@ function Arrow(props) {
|
|
|
1167
890
|
$[7] === Symbol.for("react.memo_cache_sentinel") ? (t4 = css._arrow(), $[7] = t4) : t4 = $[7];
|
|
1168
891
|
const t5 = `${w}px`;
|
|
1169
892
|
let t6;
|
|
1170
|
-
$[8] !==
|
|
893
|
+
$[8] !== t5 ? (t6 = dynamic.assignInlineVars({
|
|
894
|
+
[css.vars.arrow.size]: t5
|
|
895
|
+
}), $[8] = t5, $[9] = t6) : t6 = $[9];
|
|
896
|
+
let t7;
|
|
897
|
+
$[10] !== style || $[11] !== t6 ? (t7 = {
|
|
1171
898
|
...style,
|
|
1172
|
-
|
|
1173
|
-
}, $[
|
|
1174
|
-
const t7 = `0 0 ${w} ${w}`;
|
|
899
|
+
...t6
|
|
900
|
+
}, $[10] = style, $[11] = t6, $[12] = t7) : t7 = $[12];
|
|
1175
901
|
let t8;
|
|
1176
|
-
$[
|
|
1177
|
-
|
|
1178
|
-
$[12] !== w ? (t9 = /* @__PURE__ */ jsxRuntime.jsx("mask", { id: "stroke-mask", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { className: t8, x: 0, width: w, height: w, fill: "white" }) }), $[12] = w, $[13] = t9) : t9 = $[13];
|
|
902
|
+
$[13] === Symbol.for("react.memo_cache_sentinel") ? (t8 = css._arrowSvg(), $[13] = t8) : t8 = $[13];
|
|
903
|
+
const t9 = `0 0 ${w} ${w}`;
|
|
1179
904
|
let t10;
|
|
1180
|
-
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t10 = css.
|
|
905
|
+
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t10 = css._arrowStrokeMask(), $[14] = t10) : t10 = $[14];
|
|
1181
906
|
let t11;
|
|
1182
|
-
$[15] !==
|
|
907
|
+
$[15] !== w ? (t11 = /* @__PURE__ */ jsxRuntime.jsx("mask", { id: "stroke-mask", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { className: t10, x: 0, width: w, height: w, fill: "white" }) }), $[15] = w, $[16] = t11) : t11 = $[16];
|
|
1183
908
|
let t12;
|
|
1184
|
-
$[17] === Symbol.for("react.memo_cache_sentinel") ? (t12 = css.
|
|
909
|
+
$[17] === Symbol.for("react.memo_cache_sentinel") ? (t12 = css._arrowStroke(), $[17] = t12) : t12 = $[17];
|
|
1185
910
|
let t13;
|
|
1186
|
-
$[18] !==
|
|
911
|
+
$[18] !== strokePath ? (t13 = /* @__PURE__ */ jsxRuntime.jsx("path", { className: t12, d: strokePath, mask: "url(#stroke-mask)" }), $[18] = strokePath, $[19] = t13) : t13 = $[19];
|
|
1187
912
|
let t14;
|
|
1188
|
-
$[20]
|
|
1189
|
-
t9,
|
|
1190
|
-
t11,
|
|
1191
|
-
t13
|
|
1192
|
-
] }), $[20] = t11, $[21] = t13, $[22] = t7, $[23] = t9, $[24] = w, $[25] = t14) : t14 = $[25];
|
|
913
|
+
$[20] === Symbol.for("react.memo_cache_sentinel") ? (t14 = css._arrowShape(), $[20] = t14) : t14 = $[20];
|
|
1193
914
|
let t15;
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
} =
|
|
1203
|
-
let t0, t1;
|
|
1204
|
-
$[0] !== element ? (t1 = {
|
|
1205
|
-
version: 0,
|
|
1206
|
-
element
|
|
1207
|
-
}, $[0] = element, $[1] = t1) : t1 = $[1], t0 = t1;
|
|
1208
|
-
const value = t0;
|
|
1209
|
-
let t2;
|
|
1210
|
-
return $[2] !== children || $[3] !== value ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(BoundaryElementContext.Provider, { value, children }), $[2] = children, $[3] = value, $[4] = t2) : t2 = $[4], t2;
|
|
1211
|
-
}
|
|
1212
|
-
BoundaryElementProvider.displayName = "BoundaryElementProvider";
|
|
1213
|
-
function isRecord(value) {
|
|
1214
|
-
return !!(value && typeof value == "object" && !Array.isArray(value));
|
|
915
|
+
$[21] !== fillPath ? (t15 = /* @__PURE__ */ jsxRuntime.jsx("path", { className: t14, d: fillPath }), $[21] = fillPath, $[22] = t15) : t15 = $[22];
|
|
916
|
+
let t16;
|
|
917
|
+
$[23] !== t11 || $[24] !== t13 || $[25] !== t15 || $[26] !== t9 || $[27] !== w ? (t16 = /* @__PURE__ */ jsxRuntime.jsxs("svg", { className: t8, width: w, height: w, viewBox: t9, children: [
|
|
918
|
+
t11,
|
|
919
|
+
t13,
|
|
920
|
+
t15
|
|
921
|
+
] }), $[23] = t11, $[24] = t13, $[25] = t15, $[26] = t9, $[27] = w, $[28] = t16) : t16 = $[28];
|
|
922
|
+
let t17;
|
|
923
|
+
return $[29] !== Element || $[30] !== rest || $[31] !== t16 || $[32] !== t7 ? (t17 = /* @__PURE__ */ jsxRuntime.jsx(Element, { ...rest, className: t4, style: t7, children: t16 }), $[29] = Element, $[30] = rest, $[31] = t16, $[32] = t7, $[33] = t17) : t17 = $[33], t17;
|
|
1215
924
|
}
|
|
1216
|
-
const DEFAULT_VALUE = {
|
|
925
|
+
const BoundaryElementContext = createGlobalScopedContext("@sanity/ui/context/boundaryElement", null), DEFAULT_VALUE = {
|
|
1217
926
|
version: 0,
|
|
1218
927
|
element: null
|
|
1219
928
|
};
|
|
@@ -1246,7 +955,7 @@ function ElementQuery(props) {
|
|
|
1246
955
|
ref: forwardedRef,
|
|
1247
956
|
...rest
|
|
1248
957
|
} = t0, $[0] = t0, $[1] = children, $[2] = forwardedRef, $[3] = mediaProp, $[4] = rest, $[5] = t1) : (children = $[1], forwardedRef = $[2], mediaProp = $[3], rest = $[4], t1 = $[5]);
|
|
1249
|
-
const
|
|
958
|
+
const Element = t1 === void 0 ? DEFAULT_ELEMENT_QUERY_ELEMENT : t1, breakpoints = mediaProp ?? DEFAULT_BREAKPOINTS, [element, setElement] = react.useState(null), elementSize = useElementSize(element);
|
|
1250
959
|
let t2;
|
|
1251
960
|
t2 = elementSize?.border.width ?? window.innerWidth;
|
|
1252
961
|
const width = t2;
|
|
@@ -1269,9 +978,8 @@ function ElementQuery(props) {
|
|
|
1269
978
|
let t7, t8;
|
|
1270
979
|
$[12] !== element ? (t7 = () => element, t8 = [element], $[12] = element, $[13] = t7, $[14] = t8) : (t7 = $[13], t8 = $[14]), react.useImperativeHandle(forwardedRef, t7, t8);
|
|
1271
980
|
let t9;
|
|
1272
|
-
return $[15] !==
|
|
981
|
+
return $[15] !== Element || $[16] !== children || $[17] !== max || $[18] !== min || $[19] !== rest ? (t9 = /* @__PURE__ */ jsxRuntime.jsx(Element, { "data-ui": "ElementQuery", ...rest, "data-eq-max": max, "data-eq-min": min, ref: setElement, children }), $[15] = Element, $[16] = children, $[17] = max, $[18] = min, $[19] = rest, $[20] = t9) : t9 = $[20], t9;
|
|
1273
982
|
}
|
|
1274
|
-
ElementQuery.displayName = "ElementQuery";
|
|
1275
983
|
function getLayerContext(contextValue) {
|
|
1276
984
|
if (!isRecord(contextValue) || contextValue.version !== 0)
|
|
1277
985
|
throw new Error("the context value is not compatible");
|
|
@@ -1335,7 +1043,6 @@ function LayerCard(props) {
|
|
|
1335
1043
|
let t10;
|
|
1336
1044
|
return $[20] !== children || $[21] !== handleFocus || $[22] !== position || $[23] !== rest || $[24] !== t8 || $[25] !== t9 ? (t10 = /* @__PURE__ */ jsxRuntime.jsx(Card, { "data-ui": "Layer", ...rest, as: t8, onFocus: handleFocus, position, ref, style: t9, children }), $[20] = children, $[21] = handleFocus, $[22] = position, $[23] = rest, $[24] = t8, $[25] = t9, $[26] = t10) : t10 = $[26], t10;
|
|
1337
1045
|
}
|
|
1338
|
-
LayerCard.displayName = "LayerCard";
|
|
1339
1046
|
function LayerProvider(props) {
|
|
1340
1047
|
const $ = reactCompilerRuntime.c(19), {
|
|
1341
1048
|
children,
|
|
@@ -1343,7 +1050,7 @@ function LayerProvider(props) {
|
|
|
1343
1050
|
} = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue = react.useContext(LayerContext);
|
|
1344
1051
|
let t1;
|
|
1345
1052
|
$[0] !== parentContextValue ? (t1 = parentContextValue && getLayerContext(parentContextValue), $[0] = parentContextValue, $[1] = t1) : t1 = $[1];
|
|
1346
|
-
const parent = t1, parentRegisterChild = parent?.registerChild, level = (parent?.level ?? 0) + 1, zOffset =
|
|
1053
|
+
const parent = t1, parentRegisterChild = parent?.registerChild, level = (parent?.level ?? 0) + 1, zOffset = useResponsiveProp(zOffsetProp), maxMediaIndex = Object.values(zOffset).length - 1, mediaIndex = Math.min(useMediaIndex(), maxMediaIndex), zIndex = parent ? parent.zIndex + (zOffset[mediaIndex] ?? 0) : zOffset[mediaIndex] ?? 0;
|
|
1347
1054
|
let t2;
|
|
1348
1055
|
$[2] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {}, $[2] = t2) : t2 = $[2];
|
|
1349
1056
|
const [, setChildLayers] = react.useState(t2), [size2, setSize] = react.useState(0), isTopLayer = size2 === 0;
|
|
@@ -1387,7 +1094,6 @@ function _temp2$2(v_0) {
|
|
|
1387
1094
|
function _temp$2(v) {
|
|
1388
1095
|
return v + 1;
|
|
1389
1096
|
}
|
|
1390
|
-
LayerProvider.displayName = "LayerProvider";
|
|
1391
1097
|
const DEFAULT_LAYER_ELEMENT = "div";
|
|
1392
1098
|
function Layer(props) {
|
|
1393
1099
|
const $ = reactCompilerRuntime.c(12), t0 = props;
|
|
@@ -1404,7 +1110,6 @@ function Layer(props) {
|
|
|
1404
1110
|
let t4;
|
|
1405
1111
|
return $[9] !== t3 || $[10] !== zOffset ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(LayerProvider, { zOffset, children: t3 }), $[9] = t3, $[10] = zOffset, $[11] = t4) : t4 = $[11], t4;
|
|
1406
1112
|
}
|
|
1407
|
-
Layer.displayName = "Layer";
|
|
1408
1113
|
const key = "@sanity/ui/context/portal", elementKey = Symbol.for(`${key}/element`);
|
|
1409
1114
|
globalScope[elementKey] = null;
|
|
1410
1115
|
const defaultContextValue = {
|
|
@@ -1435,7 +1140,6 @@ function Portal(props) {
|
|
|
1435
1140
|
let t2;
|
|
1436
1141
|
return $[3] !== portalElement || $[4] !== t1 ? (t2 = reactDom.createPortal(t1, portalElement), $[3] = portalElement, $[4] = t1, $[5] = t2) : t2 = $[5], t2;
|
|
1437
1142
|
}
|
|
1438
|
-
Portal.displayName = "Portal";
|
|
1439
1143
|
function PortalProvider(props) {
|
|
1440
1144
|
const $ = reactCompilerRuntime.c(7), {
|
|
1441
1145
|
boundaryElement,
|
|
@@ -1462,7 +1166,6 @@ function _temp2$1() {
|
|
|
1462
1166
|
function _temp$1() {
|
|
1463
1167
|
return document.body;
|
|
1464
1168
|
}
|
|
1465
|
-
PortalProvider.displayName = "PortalProvider";
|
|
1466
1169
|
const emptySubscribe = () => () => {
|
|
1467
1170
|
};
|
|
1468
1171
|
function useUnique(value) {
|
|
@@ -1475,145 +1178,6 @@ function _isEqual(objA, objB) {
|
|
|
1475
1178
|
const keysA = Object.keys(objA), keysB = Object.keys(objB);
|
|
1476
1179
|
return keysA.length !== keysB.length ? !1 : keysA.every((key2) => objA[key2] === objB[key2]);
|
|
1477
1180
|
}
|
|
1478
|
-
const DEFAULT_SR_ONLY_ELEMENT = "span";
|
|
1479
|
-
function SrOnly(props) {
|
|
1480
|
-
const $ = reactCompilerRuntime.c(12), t0 = props;
|
|
1481
|
-
let children, className, rest, t1;
|
|
1482
|
-
$[0] !== t0 ? ({
|
|
1483
|
-
as: t1,
|
|
1484
|
-
children,
|
|
1485
|
-
className,
|
|
1486
|
-
...rest
|
|
1487
|
-
} = t0, $[0] = t0, $[1] = children, $[2] = className, $[3] = rest, $[4] = t1) : (children = $[1], className = $[2], rest = $[3], t1 = $[4]);
|
|
1488
|
-
const Element2 = t1 === void 0 ? DEFAULT_SR_ONLY_ELEMENT : t1;
|
|
1489
|
-
let t2;
|
|
1490
|
-
$[5] !== className ? (t2 = css._composeClassNames(className, css.srOnly()), $[5] = className, $[6] = t2) : t2 = $[6];
|
|
1491
|
-
let t3;
|
|
1492
|
-
return $[7] !== Element2 || $[8] !== children || $[9] !== rest || $[10] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(Element2, { "data-ui": "SrOnly", ...rest, "aria-hidden": !0, className: t2, children }), $[7] = Element2, $[8] = children, $[9] = rest, $[10] = t2, $[11] = t3) : t3 = $[11], t3;
|
|
1493
|
-
}
|
|
1494
|
-
SrOnly.displayName = "SrOnly";
|
|
1495
|
-
const DEFAULT_VIRTUAL_LIST_ELEMENT = "div";
|
|
1496
|
-
function VirtualList(props) {
|
|
1497
|
-
const $ = reactCompilerRuntime.c(58), t0 = props;
|
|
1498
|
-
let forwardedRef, getItemKey, onChange, renderItem, rest, t1, t2, t3;
|
|
1499
|
-
$[0] !== t0 ? ({
|
|
1500
|
-
as: t1,
|
|
1501
|
-
gap: t2,
|
|
1502
|
-
getItemKey,
|
|
1503
|
-
items: t3,
|
|
1504
|
-
onChange,
|
|
1505
|
-
renderItem,
|
|
1506
|
-
ref: forwardedRef,
|
|
1507
|
-
...rest
|
|
1508
|
-
} = t0, $[0] = t0, $[1] = forwardedRef, $[2] = getItemKey, $[3] = onChange, $[4] = renderItem, $[5] = rest, $[6] = t1, $[7] = t2, $[8] = t3) : (forwardedRef = $[1], getItemKey = $[2], onChange = $[3], renderItem = $[4], rest = $[5], t1 = $[6], t2 = $[7], t3 = $[8]);
|
|
1509
|
-
const as = t1 === void 0 ? DEFAULT_VIRTUAL_LIST_ELEMENT : t1, gap = t2 === void 0 ? 0 : t2;
|
|
1510
|
-
let t4;
|
|
1511
|
-
$[9] !== t3 ? (t4 = t3 === void 0 ? [] : t3, $[9] = t3, $[10] = t4) : t4 = $[10];
|
|
1512
|
-
const items = t4, ref = react.useRef(null), wrapperRef = react.useRef(null), [scrollTop, setScrollTop] = react.useState(0), [scrollHeight, setScrollHeight] = react.useState(0), [itemHeight, setItemHeight] = react.useState(-1), [gapValue, setGapValue] = react.useState(0);
|
|
1513
|
-
let t5;
|
|
1514
|
-
$[11] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[11] = t5) : t5 = $[11], react.useImperativeHandle(forwardedRef, t5);
|
|
1515
|
-
let t6, t7;
|
|
1516
|
-
$[12] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => {
|
|
1517
|
-
if (!ref.current)
|
|
1518
|
-
return;
|
|
1519
|
-
const scrollEl = findScrollable(ref.current.parentNode);
|
|
1520
|
-
if (scrollEl) {
|
|
1521
|
-
if (!(scrollEl instanceof HTMLElement))
|
|
1522
|
-
return;
|
|
1523
|
-
const handleScroll = () => {
|
|
1524
|
-
setScrollTop(scrollEl.scrollTop);
|
|
1525
|
-
};
|
|
1526
|
-
scrollEl.addEventListener("scroll", handleScroll, {
|
|
1527
|
-
passive: !0
|
|
1528
|
-
});
|
|
1529
|
-
const ro = new _ResizeObserver((entries) => {
|
|
1530
|
-
setScrollHeight(entries[0].contentRect.height);
|
|
1531
|
-
});
|
|
1532
|
-
return ro.observe(scrollEl), handleScroll(), () => {
|
|
1533
|
-
scrollEl.removeEventListener("scroll", handleScroll), ro.unobserve(scrollEl), ro.disconnect();
|
|
1534
|
-
};
|
|
1535
|
-
}
|
|
1536
|
-
const handleScroll_0 = () => {
|
|
1537
|
-
setScrollTop(window.scrollY);
|
|
1538
|
-
}, handleResize = () => {
|
|
1539
|
-
setScrollHeight(window.innerHeight);
|
|
1540
|
-
};
|
|
1541
|
-
return window.addEventListener("scroll", handleScroll_0, {
|
|
1542
|
-
passive: !0
|
|
1543
|
-
}), window.addEventListener("resize", handleResize), setScrollHeight(window.innerHeight), handleScroll_0(), () => {
|
|
1544
|
-
window.removeEventListener("scroll", handleScroll_0), window.removeEventListener("resize", handleResize);
|
|
1545
|
-
};
|
|
1546
|
-
}, t7 = [], $[12] = t6, $[13] = t7) : (t6 = $[12], t7 = $[13]), react.useEffect(t6, t7);
|
|
1547
|
-
const len = items.length, height = itemHeight ? len * (itemHeight + gapValue) - gapValue : 0, fromIndex = height ? Math.max(Math.floor(scrollTop / height * len) - 2, 0) : 0, toIndex = height ? Math.ceil((scrollTop + scrollHeight) / height * len) + 1 : 0;
|
|
1548
|
-
let t8, t9;
|
|
1549
|
-
$[14] !== fromIndex || $[15] !== gapValue || $[16] !== itemHeight || $[17] !== onChange || $[18] !== scrollHeight || $[19] !== scrollTop || $[20] !== toIndex ? (t8 = () => {
|
|
1550
|
-
onChange?.({
|
|
1551
|
-
fromIndex,
|
|
1552
|
-
gap: gapValue,
|
|
1553
|
-
itemHeight,
|
|
1554
|
-
scrollHeight,
|
|
1555
|
-
scrollTop,
|
|
1556
|
-
toIndex
|
|
1557
|
-
});
|
|
1558
|
-
}, t9 = [fromIndex, gapValue, itemHeight, onChange, scrollHeight, scrollTop, toIndex], $[14] = fromIndex, $[15] = gapValue, $[16] = itemHeight, $[17] = onChange, $[18] = scrollHeight, $[19] = scrollTop, $[20] = toIndex, $[21] = t8, $[22] = t9) : (t8 = $[21], t9 = $[22]), react.useEffect(t8, t9);
|
|
1559
|
-
let t10;
|
|
1560
|
-
bb0: {
|
|
1561
|
-
if (!renderItem || items.length === 0) {
|
|
1562
|
-
t10 = null;
|
|
1563
|
-
break bb0;
|
|
1564
|
-
}
|
|
1565
|
-
if (itemHeight === -1) {
|
|
1566
|
-
let t113;
|
|
1567
|
-
$[23] === Symbol.for("react.memo_cache_sentinel") ? (t113 = (el) => el ? setItemHeight(el.offsetHeight) : void 0, $[23] = t113) : t113 = $[23];
|
|
1568
|
-
let t122;
|
|
1569
|
-
$[24] !== items[0] || $[25] !== renderItem ? (t122 = renderItem(items[0]), $[24] = items[0], $[25] = renderItem, $[26] = t122) : t122 = $[26];
|
|
1570
|
-
let t132;
|
|
1571
|
-
$[27] !== t122 ? (t132 = /* @__PURE__ */ jsxRuntime.jsx(Box, { ref: t113, insetTop: 0, insetLeft: 0, insetRight: 0, position: "absolute", children: t122 }, 0), $[27] = t122, $[28] = t132) : t132 = $[28];
|
|
1572
|
-
let t142;
|
|
1573
|
-
$[29] === Symbol.for("react.memo_cache_sentinel") ? (t142 = (el_0) => el_0 ? setGapValue(el_0.offsetHeight) : void 0, $[29] = t142) : t142 = $[29];
|
|
1574
|
-
const t15 = css.vars.space[gap];
|
|
1575
|
-
let t16;
|
|
1576
|
-
$[30] !== t15 ? (t16 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref: t142, style: {
|
|
1577
|
-
height: t15
|
|
1578
|
-
} }), $[30] = t15, $[31] = t16) : t16 = $[31];
|
|
1579
|
-
let t17;
|
|
1580
|
-
$[32] !== t132 || $[33] !== t16 ? (t17 = [/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1581
|
-
t132,
|
|
1582
|
-
t16
|
|
1583
|
-
] })], $[32] = t132, $[33] = t16, $[34] = t17) : t17 = $[34], t10 = t17;
|
|
1584
|
-
break bb0;
|
|
1585
|
-
}
|
|
1586
|
-
let t112;
|
|
1587
|
-
if ($[35] !== fromIndex || $[36] !== gapValue || $[37] !== getItemKey || $[38] !== itemHeight || $[39] !== items || $[40] !== renderItem || $[41] !== toIndex) {
|
|
1588
|
-
let t122;
|
|
1589
|
-
$[43] !== fromIndex || $[44] !== gapValue || $[45] !== getItemKey || $[46] !== itemHeight || $[47] !== renderItem ? (t122 = (item, _itemIndex) => {
|
|
1590
|
-
const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
|
|
1591
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Box, { insetLeft: 0, insetRight: 0, position: "absolute", style: {
|
|
1592
|
-
top: itemIndex * (itemHeight + gapValue) - gapValue
|
|
1593
|
-
}, children: node }, key2);
|
|
1594
|
-
}, $[43] = fromIndex, $[44] = gapValue, $[45] = getItemKey, $[46] = itemHeight, $[47] = renderItem, $[48] = t122) : t122 = $[48], t112 = items.slice(fromIndex, toIndex).map(t122), $[35] = fromIndex, $[36] = gapValue, $[37] = getItemKey, $[38] = itemHeight, $[39] = items, $[40] = renderItem, $[41] = toIndex, $[42] = t112;
|
|
1595
|
-
} else
|
|
1596
|
-
t112 = $[42];
|
|
1597
|
-
t10 = t112;
|
|
1598
|
-
}
|
|
1599
|
-
const children = t10;
|
|
1600
|
-
let t11, t12;
|
|
1601
|
-
$[49] !== height ? (t12 = {
|
|
1602
|
-
height
|
|
1603
|
-
}, $[49] = height, $[50] = t12) : t12 = $[50], t11 = t12;
|
|
1604
|
-
const wrapperStyle = t11;
|
|
1605
|
-
let t13;
|
|
1606
|
-
$[51] !== children || $[52] !== wrapperStyle ? (t13 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref: wrapperRef, style: wrapperStyle, children }), $[51] = children, $[52] = wrapperStyle, $[53] = t13) : t13 = $[53];
|
|
1607
|
-
let t14;
|
|
1608
|
-
return $[54] !== as || $[55] !== rest || $[56] !== t13 ? (t14 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "VirtualList", ...rest, as, position: "relative", ref, children: t13 }), $[54] = as, $[55] = rest, $[56] = t13, $[57] = t14) : t14 = $[57], t14;
|
|
1609
|
-
}
|
|
1610
|
-
VirtualList.displayName = "VirtualList";
|
|
1611
|
-
function findScrollable(parentNode) {
|
|
1612
|
-
let _scrollEl = parentNode;
|
|
1613
|
-
for (; _scrollEl && !_isScrollable(_scrollEl); )
|
|
1614
|
-
_scrollEl = _scrollEl.parentNode;
|
|
1615
|
-
return _scrollEl;
|
|
1616
|
-
}
|
|
1617
1181
|
const DEFAULT_POPOVER_DISTANCE = 4, DEFAULT_POPOVER_PADDING = 4, DEFAULT_POPOVER_ARROW_WIDTH = 19, DEFAULT_POPOVER_ARROW_HEIGHT = 8, DEFAULT_POPOVER_ARROW_RADIUS = 2, DEFAULT_POPOVER_MARGINS = [0, 0, 0, 0], DEFAULT_FALLBACK_PLACEMENTS$1 = {
|
|
1618
1182
|
top: ["bottom", "left", "right"],
|
|
1619
1183
|
"top-start": ["bottom-start", "left-start", "right-start"],
|
|
@@ -1738,12 +1302,11 @@ function PopoverLayer(props) {
|
|
|
1738
1302
|
let t15;
|
|
1739
1303
|
$[48] !== arrow || $[49] !== arrowRef || $[50] !== arrowStyle ? (t15 = 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] = t15) : t15 = $[51];
|
|
1740
1304
|
let t16;
|
|
1741
|
-
return $[52] !== placement || $[53] !== radius || $[54] !== rest || $[55] !== rootStyle || $[56] !== shadow || $[57] !== strategy || $[58] !== t10 || $[59] !== t11 || $[60] !== t12 || $[61] !== t14 || $[62] !== t15 || $[63] !== tone ? (t16 = /* @__PURE__ */ jsxRuntime.jsxs(Layer, { className: t9, "data-ui": "Popover", ...rest, as: framerMotion.motion.div, "data-context-tone": tone, "data-placement": placement,
|
|
1305
|
+
return $[52] !== placement || $[53] !== radius || $[54] !== rest || $[55] !== rootStyle || $[56] !== shadow || $[57] !== strategy || $[58] !== t10 || $[59] !== t11 || $[60] !== t12 || $[61] !== t14 || $[62] !== t15 || $[63] !== tone ? (t16 = /* @__PURE__ */ jsxRuntime.jsxs(Layer, { className: t9, "data-ui": "Popover", ...rest, as: framerMotion.motion.div, "data-context-tone": tone, "data-placement": placement, flexDirection: "column", display: "flex", position: strategy, radius, shadow, sizing: "border", style: rootStyle, tone, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t10, animate: t11, exit: t12, children: [
|
|
1742
1306
|
t14,
|
|
1743
1307
|
t15
|
|
1744
1308
|
] }), $[52] = placement, $[53] = radius, $[54] = rest, $[55] = rootStyle, $[56] = shadow, $[57] = strategy, $[58] = t10, $[59] = t11, $[60] = t12, $[61] = t14, $[62] = t15, $[63] = tone, $[64] = t16) : t16 = $[64], t16;
|
|
1745
1309
|
}
|
|
1746
|
-
PopoverLayer.displayName = "PopoverCard";
|
|
1747
1310
|
const DEFAULT_POPOVER_ELEMENT = "div";
|
|
1748
1311
|
function ViewportOverlay() {
|
|
1749
1312
|
const $ = reactCompilerRuntime.c(2), {
|
|
@@ -1767,6 +1330,7 @@ function Popover(props) {
|
|
|
1767
1330
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1768
1331
|
boundaryElement = boundaryElementContext.element,
|
|
1769
1332
|
children: childProp,
|
|
1333
|
+
className,
|
|
1770
1334
|
constrainSize = !1,
|
|
1771
1335
|
content,
|
|
1772
1336
|
disabled,
|
|
@@ -1793,7 +1357,7 @@ function Popover(props) {
|
|
|
1793
1357
|
zOffset: zOffsetProp = Z_OFFSETS.popover,
|
|
1794
1358
|
updateRef,
|
|
1795
1359
|
...rest
|
|
1796
|
-
} = props, card = useCard(), animate = usePrefersReducedMotion() ? !1 : _animate, zOffset =
|
|
1360
|
+
} = props, card = useCard(), animate = usePrefersReducedMotion() ? !1 : _animate, zOffset = useResponsiveProp(zOffsetProp), ref = react.useRef(null), arrowRef = react.useRef(null), rootBoundary = "viewport";
|
|
1797
1361
|
react.useImperativeHandle(forwardedRef, () => ref.current);
|
|
1798
1362
|
const referenceWidthRef = react.useRef(void 0), middleware = react.useMemo(() => {
|
|
1799
1363
|
const ret = [];
|
|
@@ -1858,102 +1422,21 @@ function Popover(props) {
|
|
|
1858
1422
|
updateRef && (typeof updateRef == "function" ? updateRef(update) : updateRef && (updateRef.current = update));
|
|
1859
1423
|
}, [update, updateRef]), disabled)
|
|
1860
1424
|
return childProp || /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
1861
|
-
const
|
|
1425
|
+
const node_1 = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1862
1426
|
modal && /* @__PURE__ */ jsxRuntime.jsx(ViewportOverlay, {}),
|
|
1863
|
-
/* @__PURE__ */ jsxRuntime.jsx(PopoverLayer, { ...rest, __unstable_margins: margins, animate, arrow: arrowProp, arrowRef: setArrow, arrowX, arrowY, as,
|
|
1864
|
-
|
|
1427
|
+
/* @__PURE__ */ jsxRuntime.jsx(PopoverLayer, { ...rest, __unstable_margins: margins, animate, arrow: arrowProp, arrowRef: setArrow, arrowX, arrowY, as, className: css.popover({
|
|
1428
|
+
className
|
|
1429
|
+
}), hidden: referenceHidden, maxWidth: widthProp, overflow, padding, placement, radius, ref: setFloating, scheme, shadow, originX, originY, strategy, x, y, zOffset, children: content })
|
|
1430
|
+
] }), children = open && (portal ? /* @__PURE__ */ jsxRuntime.jsx(Portal, { __unstable_name: typeof portal == "string" ? portal : void 0, children: /* @__PURE__ */ jsxRuntime.jsx(CardProvider, { tone: tone === "inherit" ? card?.tone ?? "default" : tone, scheme: scheme ?? "light", children: node_1 }) }) : node_1);
|
|
1865
1431
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1866
1432
|
animate ? /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children }) : children,
|
|
1867
1433
|
child
|
|
1868
1434
|
] });
|
|
1869
1435
|
}
|
|
1870
|
-
Popover.displayName = "Popover";
|
|
1871
1436
|
function getElementRef$1(element) {
|
|
1872
1437
|
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
1873
1438
|
return mayWarn ? element.ref : (getter = Object.getOwnPropertyDescriptor(element, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning, mayWarn ? element.props.ref : element.props.ref || element.ref);
|
|
1874
1439
|
}
|
|
1875
|
-
const DEFAULT_RADIO_ELEMENT = "input";
|
|
1876
|
-
function Radio(props) {
|
|
1877
|
-
const $ = reactCompilerRuntime.c(24), t0 = props;
|
|
1878
|
-
let className, customValidity, disabled, forwardedRef, readOnly, rest, style, t1;
|
|
1879
|
-
$[0] !== t0 ? ({
|
|
1880
|
-
as: t1,
|
|
1881
|
-
className,
|
|
1882
|
-
disabled,
|
|
1883
|
-
style,
|
|
1884
|
-
customValidity,
|
|
1885
|
-
readOnly,
|
|
1886
|
-
ref: forwardedRef,
|
|
1887
|
-
...rest
|
|
1888
|
-
} = t0, $[0] = t0, $[1] = className, $[2] = customValidity, $[3] = disabled, $[4] = forwardedRef, $[5] = readOnly, $[6] = rest, $[7] = style, $[8] = t1) : (className = $[1], customValidity = $[2], disabled = $[3], forwardedRef = $[4], readOnly = $[5], rest = $[6], style = $[7], t1 = $[8]);
|
|
1889
|
-
const Element2 = t1 === void 0 ? DEFAULT_RADIO_ELEMENT : t1, ref = react.useRef(null);
|
|
1890
|
-
let t2;
|
|
1891
|
-
$[9] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[9] = t2) : t2 = $[9], react.useImperativeHandle(forwardedRef, t2), useCustomValidity(ref, customValidity);
|
|
1892
|
-
let t3;
|
|
1893
|
-
$[10] !== className ? (t3 = css._composeClassNames(className, css.radio()), $[10] = className, $[11] = t3) : t3 = $[11];
|
|
1894
|
-
const t4 = customValidity ? "" : void 0, t5 = !disabled && readOnly ? "" : void 0, t6 = disabled || readOnly;
|
|
1895
|
-
let t7;
|
|
1896
|
-
$[12] !== Element2 || $[13] !== readOnly || $[14] !== rest || $[15] !== t4 || $[16] !== t5 || $[17] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(Element2, { ...rest, "data-invalid": t4, "data-read-only": t5, disabled: t6, readOnly, ref, type: "radio" }), $[12] = Element2, $[13] = readOnly, $[14] = rest, $[15] = t4, $[16] = t5, $[17] = t6, $[18] = t7) : t7 = $[18];
|
|
1897
|
-
let t8;
|
|
1898
|
-
$[19] === Symbol.for("react.memo_cache_sentinel") ? (t8 = /* @__PURE__ */ jsxRuntime.jsx("span", {}), $[19] = t8) : t8 = $[19];
|
|
1899
|
-
let t9;
|
|
1900
|
-
return $[20] !== style || $[21] !== t3 || $[22] !== t7 ? (t9 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t3, "data-ui": "Radio", style, children: [
|
|
1901
|
-
t7,
|
|
1902
|
-
t8
|
|
1903
|
-
] }), $[20] = style, $[21] = t3, $[22] = t7, $[23] = t9) : t9 = $[23], t9;
|
|
1904
|
-
}
|
|
1905
|
-
Radio.displayName = "Radio";
|
|
1906
|
-
const DEFAULT_SELECT_ELEMENT = "select";
|
|
1907
|
-
function Select(props) {
|
|
1908
|
-
const $ = reactCompilerRuntime.c(38), t0 = props;
|
|
1909
|
-
let children, customValidity, disabled, forwardedRef, gap, readOnly, rest, t1, t2, t3, t4, t5, t6;
|
|
1910
|
-
$[0] !== t0 ? ({
|
|
1911
|
-
as: t1,
|
|
1912
|
-
border: t2,
|
|
1913
|
-
children,
|
|
1914
|
-
customValidity,
|
|
1915
|
-
disabled,
|
|
1916
|
-
fontSize: t3,
|
|
1917
|
-
gap,
|
|
1918
|
-
padding: t4,
|
|
1919
|
-
radius: t5,
|
|
1920
|
-
readOnly,
|
|
1921
|
-
ref: forwardedRef,
|
|
1922
|
-
space: t6,
|
|
1923
|
-
...rest
|
|
1924
|
-
} = t0, $[0] = t0, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = forwardedRef, $[5] = gap, $[6] = readOnly, $[7] = rest, $[8] = t1, $[9] = t2, $[10] = t3, $[11] = t4, $[12] = t5, $[13] = t6) : (children = $[1], customValidity = $[2], disabled = $[3], forwardedRef = $[4], gap = $[5], readOnly = $[6], rest = $[7], t1 = $[8], t2 = $[9], t3 = $[10], t4 = $[11], t5 = $[12], t6 = $[13]);
|
|
1925
|
-
const Element2 = t1 === void 0 ? DEFAULT_SELECT_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, fontSize = t3 === void 0 ? 2 : t3, padding = t4 === void 0 ? 3 : t4, radius = t5 === void 0 ? 1 : t5, space = t6 === void 0 ? 2 : t6, ref = react.useRef(null);
|
|
1926
|
-
let t7;
|
|
1927
|
-
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[14] = t7) : t7 = $[14], react.useImperativeHandle(forwardedRef, t7), useCustomValidity(ref, customValidity);
|
|
1928
|
-
const t8 = gap ?? space;
|
|
1929
|
-
let t9;
|
|
1930
|
-
$[15] !== border || $[16] !== fontSize || $[17] !== padding || $[18] !== radius || $[19] !== t8 ? (t9 = css.select({
|
|
1931
|
-
border,
|
|
1932
|
-
fontSize,
|
|
1933
|
-
padding,
|
|
1934
|
-
radius,
|
|
1935
|
-
gap: t8
|
|
1936
|
-
}), $[15] = border, $[16] = fontSize, $[17] = padding, $[18] = radius, $[19] = t8, $[20] = t9) : t9 = $[20];
|
|
1937
|
-
let t10;
|
|
1938
|
-
$[21] === Symbol.for("react.memo_cache_sentinel") ? (t10 = css._inputElement(), $[21] = t10) : t10 = $[21];
|
|
1939
|
-
const t11 = disabled || readOnly;
|
|
1940
|
-
let t12;
|
|
1941
|
-
$[22] !== Element2 || $[23] !== children || $[24] !== rest || $[25] !== t11 ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(Element2, { ...rest, className: t10, disabled: t11, ref, children }), $[22] = Element2, $[23] = children, $[24] = rest, $[25] = t11, $[26] = t12) : t12 = $[26];
|
|
1942
|
-
let t13;
|
|
1943
|
-
$[27] === Symbol.for("react.memo_cache_sentinel") ? (t13 = css.selectPresentation(), $[27] = t13) : t13 = $[27];
|
|
1944
|
-
let t14;
|
|
1945
|
-
$[28] === Symbol.for("react.memo_cache_sentinel") ? (t14 = /* @__PURE__ */ jsxRuntime.jsx(icons.ChevronDownIcon, {}), $[28] = t14) : t14 = $[28];
|
|
1946
|
-
let t15;
|
|
1947
|
-
$[29] !== fontSize ? (t15 = /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize, children: t14 }), $[29] = fontSize, $[30] = t15) : t15 = $[30];
|
|
1948
|
-
let t16;
|
|
1949
|
-
$[31] !== padding || $[32] !== t15 ? (t16 = /* @__PURE__ */ jsxRuntime.jsx("span", { className: t13, children: /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", display: "inline-block", padding, children: t15 }) }), $[31] = padding, $[32] = t15, $[33] = t16) : t16 = $[33];
|
|
1950
|
-
let t17;
|
|
1951
|
-
return $[34] !== t12 || $[35] !== t16 || $[36] !== t9 ? (t17 = /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-ui": "Select", className: t9, "data-icon-right": "", children: [
|
|
1952
|
-
t12,
|
|
1953
|
-
t16
|
|
1954
|
-
] }), $[34] = t12, $[35] = t16, $[36] = t9, $[37] = t17) : t17 = $[37], t17;
|
|
1955
|
-
}
|
|
1956
|
-
Select.displayName = "Select";
|
|
1957
1440
|
const DEFAULT_STACK_ELEMENT = "div";
|
|
1958
1441
|
function Stack(props) {
|
|
1959
1442
|
const $ = reactCompilerRuntime.c(13), t0 = props;
|
|
@@ -1967,106 +1450,14 @@ function Stack(props) {
|
|
|
1967
1450
|
} = t0, $[0] = t0, $[1] = className, $[2] = gap, $[3] = rest, $[4] = space, $[5] = t1) : (className = $[1], gap = $[2], rest = $[3], space = $[4], t1 = $[5]);
|
|
1968
1451
|
const as = t1 === void 0 ? DEFAULT_STACK_ELEMENT : t1;
|
|
1969
1452
|
let t2;
|
|
1970
|
-
$[6] !== className ? (t2 = css.
|
|
1453
|
+
$[6] !== className ? (t2 = css.stack({
|
|
1454
|
+
className
|
|
1455
|
+
}), $[6] = className, $[7] = t2) : t2 = $[7];
|
|
1971
1456
|
const t3 = gap ?? space;
|
|
1972
1457
|
let t4;
|
|
1973
|
-
return $[8] !== as || $[9] !== rest || $[10] !== t2 || $[11] !== t3 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "Stack", ...rest, as,
|
|
1458
|
+
return $[8] !== as || $[9] !== rest || $[10] !== t2 || $[11] !== t3 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "Stack", ...rest, as, gridAutoRows: "min", className: t2, display: "grid", gap: t3 }), $[8] = as, $[9] = rest, $[10] = t2, $[11] = t3, $[12] = t4) : t4 = $[12], t4;
|
|
1974
1459
|
}
|
|
1975
|
-
|
|
1976
|
-
const DEFAULT_SWITCH_ELEMENT = "input";
|
|
1977
|
-
function Switch(props) {
|
|
1978
|
-
const $ = reactCompilerRuntime.c(31), t0 = props;
|
|
1979
|
-
let checked, className, disabled, forwardedRef, indeterminate, readOnly, rest, style, t1;
|
|
1980
|
-
$[0] !== t0 ? ({
|
|
1981
|
-
as: t1,
|
|
1982
|
-
checked,
|
|
1983
|
-
className,
|
|
1984
|
-
disabled,
|
|
1985
|
-
indeterminate,
|
|
1986
|
-
readOnly,
|
|
1987
|
-
ref: forwardedRef,
|
|
1988
|
-
style,
|
|
1989
|
-
...rest
|
|
1990
|
-
} = t0, $[0] = t0, $[1] = checked, $[2] = className, $[3] = disabled, $[4] = forwardedRef, $[5] = indeterminate, $[6] = readOnly, $[7] = rest, $[8] = style, $[9] = t1) : (checked = $[1], className = $[2], disabled = $[3], forwardedRef = $[4], indeterminate = $[5], readOnly = $[6], rest = $[7], style = $[8], t1 = $[9]);
|
|
1991
|
-
const Element2 = t1 === void 0 ? DEFAULT_SWITCH_ELEMENT : t1, ref = react.useRef(null);
|
|
1992
|
-
let t2;
|
|
1993
|
-
$[10] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[10] = t2) : t2 = $[10], react.useImperativeHandle(forwardedRef, t2);
|
|
1994
|
-
let t3, t4;
|
|
1995
|
-
$[11] !== indeterminate ? (t3 = () => {
|
|
1996
|
-
ref.current && (ref.current.indeterminate = indeterminate || !1);
|
|
1997
|
-
}, t4 = [indeterminate], $[11] = indeterminate, $[12] = t3, $[13] = t4) : (t3 = $[12], t4 = $[13]), react.useEffect(t3, t4);
|
|
1998
|
-
let t5;
|
|
1999
|
-
$[14] !== className ? (t5 = css._composeClassNames(className, css._switch()), $[14] = className, $[15] = t5) : t5 = $[15];
|
|
2000
|
-
const t6 = checked ? "" : void 0, t7 = indeterminate ? "" : void 0, t8 = indeterminate !== !0 && checked;
|
|
2001
|
-
let t9;
|
|
2002
|
-
$[16] === Symbol.for("react.memo_cache_sentinel") ? (t9 = css._switchElement(), $[16] = t9) : t9 = $[16];
|
|
2003
|
-
const t10 = disabled ? "" : void 0, t11 = !disabled && readOnly ? "" : void 0, t12 = disabled || readOnly;
|
|
2004
|
-
let t13;
|
|
2005
|
-
$[17] !== Element2 || $[18] !== rest || $[19] !== t10 || $[20] !== t11 || $[21] !== t12 || $[22] !== t8 ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(Element2, { ...rest, checked: t8, className: t9, "data-disabled": t10, "data-read-only": t11, disabled: t12, type: "checkbox", ref }), $[17] = Element2, $[18] = rest, $[19] = t10, $[20] = t11, $[21] = t12, $[22] = t8, $[23] = t13) : t13 = $[23];
|
|
2006
|
-
let t14;
|
|
2007
|
-
$[24] === Symbol.for("react.memo_cache_sentinel") ? (t14 = /* @__PURE__ */ jsxRuntime.jsxs("span", { "aria-hidden": !0, className: css._switchPresentation(), children: [
|
|
2008
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: css._switchTrack() }),
|
|
2009
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: css._switchThumb() })
|
|
2010
|
-
] }), $[24] = t14) : t14 = $[24];
|
|
2011
|
-
let t15;
|
|
2012
|
-
return $[25] !== style || $[26] !== t13 || $[27] !== t5 || $[28] !== t6 || $[29] !== t7 ? (t15 = /* @__PURE__ */ jsxRuntime.jsxs(Box, { className: t5, "data-checked": t6, "data-indeterminate": t7, "data-ui": "Switch", display: "inline-block", position: "relative", style, children: [
|
|
2013
|
-
t13,
|
|
2014
|
-
t14
|
|
2015
|
-
] }), $[25] = style, $[26] = t13, $[27] = t5, $[28] = t6, $[29] = t7, $[30] = t15) : t15 = $[30], t15;
|
|
2016
|
-
}
|
|
2017
|
-
Switch.displayName = "Switch";
|
|
2018
|
-
const DEFAULT_TEXT_AREA_ELEMENT = "textarea";
|
|
2019
|
-
function TextArea(props) {
|
|
2020
|
-
const $ = reactCompilerRuntime.c(34), t0 = props;
|
|
2021
|
-
let __unstable_disableFocusRing, customValidity, forwardedRef, gap, readOnly, rest, t1, t2, t3, t4, t5, t6, t7;
|
|
2022
|
-
$[0] !== t0 ? ({
|
|
2023
|
-
__unstable_disableFocusRing,
|
|
2024
|
-
as: t1,
|
|
2025
|
-
border: t2,
|
|
2026
|
-
customValidity,
|
|
2027
|
-
disabled: t3,
|
|
2028
|
-
fontSize: t4,
|
|
2029
|
-
gap,
|
|
2030
|
-
padding: t5,
|
|
2031
|
-
radius: t6,
|
|
2032
|
-
readOnly,
|
|
2033
|
-
ref: forwardedRef,
|
|
2034
|
-
space: t7,
|
|
2035
|
-
...rest
|
|
2036
|
-
} = t0, $[0] = t0, $[1] = __unstable_disableFocusRing, $[2] = customValidity, $[3] = forwardedRef, $[4] = gap, $[5] = readOnly, $[6] = rest, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = t4, $[11] = t5, $[12] = t6, $[13] = t7) : (__unstable_disableFocusRing = $[1], customValidity = $[2], forwardedRef = $[3], gap = $[4], readOnly = $[5], rest = $[6], t1 = $[7], t2 = $[8], t3 = $[9], t4 = $[10], t5 = $[11], t6 = $[12], t7 = $[13]);
|
|
2037
|
-
const Element2 = t1 === void 0 ? DEFAULT_TEXT_AREA_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, disabled = t3 === void 0 ? !1 : t3, fontSize = t4 === void 0 ? 2 : t4, padding = t5 === void 0 ? 3 : t5, radius = t6 === void 0 ? 2 : t6, space = t7 === void 0 ? 3 : t7, ref = react.useRef(null);
|
|
2038
|
-
let t8;
|
|
2039
|
-
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t8 = () => ref.current, $[14] = t8) : t8 = $[14], react.useImperativeHandle(forwardedRef, t8), useCustomValidity(ref, customValidity);
|
|
2040
|
-
const t9 = gap ?? space;
|
|
2041
|
-
let t10;
|
|
2042
|
-
$[15] !== border || $[16] !== fontSize || $[17] !== padding || $[18] !== radius || $[19] !== t9 ? (t10 = css.textArea({
|
|
2043
|
-
border,
|
|
2044
|
-
fontSize,
|
|
2045
|
-
padding,
|
|
2046
|
-
radius,
|
|
2047
|
-
gap: t9
|
|
2048
|
-
}), $[15] = border, $[16] = fontSize, $[17] = padding, $[18] = radius, $[19] = t9, $[20] = t10) : t10 = $[20];
|
|
2049
|
-
const t11 = customValidity ? "" : void 0, t12 = !disabled && readOnly ? "" : void 0;
|
|
2050
|
-
let t13;
|
|
2051
|
-
$[21] === Symbol.for("react.memo_cache_sentinel") ? (t13 = css._inputElement(), $[21] = t13) : t13 = $[21];
|
|
2052
|
-
const t14 = __unstable_disableFocusRing ? "" : void 0;
|
|
2053
|
-
let t15;
|
|
2054
|
-
$[22] !== Element2 || $[23] !== disabled || $[24] !== readOnly || $[25] !== rest || $[26] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.jsx(Element2, { ...rest, className: t13, "data-no-focus-ring": t14, disabled, readOnly, ref }), $[22] = Element2, $[23] = disabled, $[24] = readOnly, $[25] = rest, $[26] = t14, $[27] = t15) : t15 = $[27];
|
|
2055
|
-
let t16;
|
|
2056
|
-
$[28] === Symbol.for("react.memo_cache_sentinel") ? (t16 = /* @__PURE__ */ jsxRuntime.jsx("span", { className: css._inputPresentation() }), $[28] = t16) : t16 = $[28];
|
|
2057
|
-
let t17;
|
|
2058
|
-
return $[29] !== t10 || $[30] !== t11 || $[31] !== t12 || $[32] !== t15 ? (t17 = /* @__PURE__ */ jsxRuntime.jsxs("span", { className: t10, "data-invalid": t11, "data-read-only": t12, "data-ui": "TextArea", children: [
|
|
2059
|
-
t15,
|
|
2060
|
-
t16
|
|
2061
|
-
] }), $[29] = t10, $[30] = t11, $[31] = t12, $[32] = t15, $[33] = t17) : t17 = $[33], t17;
|
|
2062
|
-
}
|
|
2063
|
-
TextArea.displayName = "TextArea";
|
|
2064
|
-
const DEFAULT_TEXT_INPUT_ELEMENT = "input", CLEAR_BUTTON_BOX_STYLE = {
|
|
2065
|
-
backgroundColor: "transparent",
|
|
2066
|
-
top: 0,
|
|
2067
|
-
right: 0,
|
|
2068
|
-
zIndex: 2
|
|
2069
|
-
};
|
|
1460
|
+
const DEFAULT_TEXT_INPUT_ELEMENT = "input";
|
|
2070
1461
|
function TextInput(props) {
|
|
2071
1462
|
const $ = reactCompilerRuntime.c(89), t0 = props;
|
|
2072
1463
|
let IconComponent, IconRightComponent, __unstable_disableFocusRing, className, clearButton, customValidity, forwardedRef, gap, onClear, prefix, readOnly, rest, suffix, t1, t2, t3, t4, t5, t6, t7, t8, width;
|
|
@@ -2099,7 +1490,7 @@ function TextInput(props) {
|
|
|
2099
1490
|
__unstable_disableFocusRing = t92, t1 = t102, t2 = t112, className = t122, clearButton = t132, t3 = t142, t4 = t152, gap = t162, IconComponent = t172, IconRightComponent = t182, onClear = t192, t5 = t202, prefix = t212, t6 = t222, readOnly = t232, forwardedRef = t242, t7 = t252, suffix = t262, customValidity = t272, t8 = t282, width = t292, rest = t302, $[0] = t0, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = className, $[5] = clearButton, $[6] = customValidity, $[7] = forwardedRef, $[8] = gap, $[9] = onClear, $[10] = prefix, $[11] = readOnly, $[12] = rest, $[13] = suffix, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4, $[18] = t5, $[19] = t6, $[20] = t7, $[21] = t8, $[22] = width;
|
|
2100
1491
|
} else
|
|
2101
1492
|
IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], className = $[4], clearButton = $[5], customValidity = $[6], forwardedRef = $[7], gap = $[8], onClear = $[9], prefix = $[10], readOnly = $[11], rest = $[12], suffix = $[13], t1 = $[14], t2 = $[15], t3 = $[16], t4 = $[17], t5 = $[18], t6 = $[19], t7 = $[20], t8 = $[21], width = $[22];
|
|
2102
|
-
const
|
|
1493
|
+
const Element = t1 === void 0 ? DEFAULT_TEXT_INPUT_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, disabled = t3 === void 0 ? !1 : t3, fontSize = t4 === void 0 ? 2 : t4, padding = t5 === void 0 ? 3 : t5, radius = t6 === void 0 ? 2 : t6, space = t7 === void 0 ? 3 : t7, type = t8 === void 0 ? "text" : t8, ref = react.useRef(null), responsivePadding = useResponsiveProp(padding), withClearButton = !!clearButton;
|
|
2103
1494
|
let t9;
|
|
2104
1495
|
$[23] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => ref.current, $[23] = t9) : t9 = $[23], react.useImperativeHandle(forwardedRef, t9), useCustomValidity(ref, customValidity);
|
|
2105
1496
|
const handleClearMouseDown = _temp;
|
|
@@ -2109,23 +1500,24 @@ function TextInput(props) {
|
|
|
2109
1500
|
}, $[24] = onClear, $[25] = t10) : t10 = $[25];
|
|
2110
1501
|
const handleClearClick = t10;
|
|
2111
1502
|
let t11, t12;
|
|
2112
|
-
$[26] !==
|
|
1503
|
+
$[26] !== responsivePadding ? (t12 = Object.fromEntries(Object.entries(responsivePadding).map(_temp2)), $[26] = responsivePadding, $[27] = t12) : t12 = $[27], t11 = t12;
|
|
2113
1504
|
const clearButtonBoxPadding = t11;
|
|
2114
1505
|
let t13, t14;
|
|
2115
|
-
$[28] !==
|
|
1506
|
+
$[28] !== responsivePadding ? (t14 = Object.fromEntries(Object.entries(responsivePadding).map(_temp3)), $[28] = responsivePadding, $[29] = t14) : t14 = $[29], t13 = t14;
|
|
2116
1507
|
const clearButtonPadding = t13;
|
|
2117
1508
|
let t15;
|
|
2118
1509
|
t15 = isRecord(clearButton) ? clearButton : EMPTY_RECORD;
|
|
2119
1510
|
const clearButtonProps = t15, t16 = gap ?? space;
|
|
2120
1511
|
let t17;
|
|
2121
|
-
$[30] !== border || $[31] !== className || $[32] !== fontSize || $[33] !== padding || $[34] !== radius || $[35] !== t16 || $[36] !== width ? (t17 = css.
|
|
1512
|
+
$[30] !== border || $[31] !== className || $[32] !== fontSize || $[33] !== padding || $[34] !== radius || $[35] !== t16 || $[36] !== width ? (t17 = css.textInput({
|
|
1513
|
+
className,
|
|
2122
1514
|
border,
|
|
2123
1515
|
fontSize,
|
|
2124
1516
|
padding,
|
|
2125
1517
|
radius,
|
|
2126
1518
|
gap: t16,
|
|
2127
1519
|
width
|
|
2128
|
-
})
|
|
1520
|
+
}), $[30] = border, $[31] = className, $[32] = fontSize, $[33] = padding, $[34] = radius, $[35] = t16, $[36] = width, $[37] = t17) : t17 = $[37];
|
|
2129
1521
|
const t18 = IconComponent ? "" : void 0, t19 = IconRightComponent ? "" : void 0, t20 = customValidity ? "" : void 0, t21 = prefix ? "" : void 0, t22 = !disabled && readOnly ? "" : void 0, t23 = suffix ? "" : void 0;
|
|
2130
1522
|
let t24;
|
|
2131
1523
|
$[38] !== prefix ? (t24 = prefix && /* @__PURE__ */ jsxRuntime.jsx(Box, { className: css.textInputPrefix(), sizing: "border", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: prefix }) }), $[38] = prefix, $[39] = t24) : t24 = $[39];
|
|
@@ -2135,22 +1527,16 @@ function TextInput(props) {
|
|
|
2135
1527
|
$[41] === Symbol.for("react.memo_cache_sentinel") ? (t26 = css._inputElement(), $[41] = t26) : t26 = $[41];
|
|
2136
1528
|
const t27 = __unstable_disableFocusRing ? "" : void 0;
|
|
2137
1529
|
let t28;
|
|
2138
|
-
$[42] !==
|
|
1530
|
+
$[42] !== Element || $[43] !== disabled || $[44] !== readOnly || $[45] !== rest || $[46] !== t27 || $[47] !== type ? (t28 = /* @__PURE__ */ jsxRuntime.jsx(Element, { ...rest, className: t26, "data-no-focus-ring": t27, disabled, readOnly, ref, type }), $[42] = Element, $[43] = disabled, $[44] = readOnly, $[45] = rest, $[46] = t27, $[47] = type, $[48] = t28) : t28 = $[48];
|
|
2139
1531
|
let t29;
|
|
2140
1532
|
$[49] === Symbol.for("react.memo_cache_sentinel") ? (t29 = css._inputPresentation(), $[49] = t29) : t29 = $[49];
|
|
2141
1533
|
let t30;
|
|
2142
|
-
$[50] !== IconComponent || $[51] !== fontSize || $[52] !== padding ? (t30 = IconComponent && /* @__PURE__ */ jsxRuntime.jsx(Box, { padding, position: "absolute",
|
|
2143
|
-
top: 0,
|
|
2144
|
-
left: 0
|
|
2145
|
-
}, children: /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize, children: [
|
|
1534
|
+
$[50] !== IconComponent || $[51] !== fontSize || $[52] !== padding ? (t30 = IconComponent && /* @__PURE__ */ jsxRuntime.jsx(Box, { padding, position: "absolute", insetTop: 0, insetLeft: 0, children: /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize, children: [
|
|
2146
1535
|
react.isValidElement(IconComponent) && IconComponent,
|
|
2147
1536
|
reactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
|
|
2148
1537
|
] }) }), $[50] = IconComponent, $[51] = fontSize, $[52] = padding, $[53] = t30) : t30 = $[53];
|
|
2149
1538
|
let t31;
|
|
2150
|
-
$[54] !== IconRightComponent || $[55] !== fontSize || $[56] !== padding || $[57] !== withClearButton ? (t31 = !withClearButton && IconRightComponent && /* @__PURE__ */ jsxRuntime.jsx(Box, { padding, position: "absolute",
|
|
2151
|
-
top: 0,
|
|
2152
|
-
right: 0
|
|
2153
|
-
}, children: /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize, children: [
|
|
1539
|
+
$[54] !== IconRightComponent || $[55] !== fontSize || $[56] !== padding || $[57] !== withClearButton ? (t31 = !withClearButton && IconRightComponent && /* @__PURE__ */ jsxRuntime.jsx(Box, { padding, position: "absolute", insetTop: 0, insetRight: 0, children: /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize, children: [
|
|
2154
1540
|
react.isValidElement(IconRightComponent) && IconRightComponent,
|
|
2155
1541
|
reactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
|
|
2156
1542
|
] }) }), $[54] = IconRightComponent, $[55] = fontSize, $[56] = padding, $[57] = withClearButton, $[58] = t31) : t31 = $[58];
|
|
@@ -2160,7 +1546,9 @@ function TextInput(props) {
|
|
|
2160
1546
|
t31
|
|
2161
1547
|
] }), $[59] = t30, $[60] = t31, $[61] = t32) : t32 = $[61];
|
|
2162
1548
|
let t33;
|
|
2163
|
-
$[62] !== clearButton || $[63] !== clearButtonBoxPadding || $[64] !== clearButtonPadding || $[65] !== clearButtonProps || $[66] !== disabled || $[67] !== fontSize || $[68] !== handleClearClick || $[69] !== radius || $[70] !== readOnly ? (t33 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsxRuntime.jsx(Box, {
|
|
1549
|
+
$[62] !== clearButton || $[63] !== clearButtonBoxPadding || $[64] !== clearButtonPadding || $[65] !== clearButtonProps || $[66] !== disabled || $[67] !== fontSize || $[68] !== handleClearClick || $[69] !== radius || $[70] !== readOnly ? (t33 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsxRuntime.jsx(Box, { insetTop: 0, insetRight: 0, padding: clearButtonBoxPadding, position: "absolute", style: {
|
|
1550
|
+
zIndex: 2
|
|
1551
|
+
}, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { "aria-label": "Clear", "data-qa": "clear-button", display: "block", fontSize, icon: icons.CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[62] = clearButton, $[63] = clearButtonBoxPadding, $[64] = clearButtonPadding, $[65] = clearButtonProps, $[66] = disabled, $[67] = fontSize, $[68] = handleClearClick, $[69] = radius, $[70] = readOnly, $[71] = t33) : t33 = $[71];
|
|
2164
1552
|
let t34;
|
|
2165
1553
|
$[72] !== t28 || $[73] !== t32 || $[74] !== t33 ? (t34 = /* @__PURE__ */ jsxRuntime.jsxs(Box, { className: t25, flex: 1, position: "relative", children: [
|
|
2166
1554
|
t28,
|
|
@@ -2170,22 +1558,23 @@ function TextInput(props) {
|
|
|
2170
1558
|
let t35;
|
|
2171
1559
|
$[76] !== suffix ? (t35 = suffix && /* @__PURE__ */ jsxRuntime.jsx(Box, { className: css.textInputSuffix(), sizing: "border", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: suffix }) }), $[76] = suffix, $[77] = t35) : t35 = $[77];
|
|
2172
1560
|
let t36;
|
|
2173
|
-
return $[78] !== t17 || $[79] !== t18 || $[80] !== t19 || $[81] !== t20 || $[82] !== t21 || $[83] !== t22 || $[84] !== t23 || $[85] !== t24 || $[86] !== t34 || $[87] !== t35 ? (t36 = /* @__PURE__ */ jsxRuntime.jsxs(Box, {
|
|
1561
|
+
return $[78] !== t17 || $[79] !== t18 || $[80] !== t19 || $[81] !== t20 || $[82] !== t21 || $[83] !== t22 || $[84] !== t23 || $[85] !== t24 || $[86] !== t34 || $[87] !== t35 ? (t36 = /* @__PURE__ */ jsxRuntime.jsxs(Box, { alignItems: "center", className: t17, "data-icon-left": t18, "data-icon-right": t19, "data-invalid": t20, "data-prefix": t21, "data-read-only": t22, "data-suffix": t23, "data-ui": "TextInput", display: "flex", children: [
|
|
2174
1562
|
t24,
|
|
2175
1563
|
t34,
|
|
2176
1564
|
t35
|
|
2177
1565
|
] }), $[78] = t17, $[79] = t18, $[80] = t19, $[81] = t20, $[82] = t21, $[83] = t22, $[84] = t23, $[85] = t24, $[86] = t34, $[87] = t35, $[88] = t36) : t36 = $[88], t36;
|
|
2178
1566
|
}
|
|
2179
|
-
function _temp3(
|
|
2180
|
-
|
|
1567
|
+
function _temp3(t0) {
|
|
1568
|
+
const [key_0, value_0] = t0;
|
|
1569
|
+
return value_0 === 0 ? [key_0, 0] : value_0 === 1 ? [key_0, 0] : value_0 === 2 ? [key_0, 1] : [key_0, typeof value_0 == "number" ? value_0 - 1 : 0];
|
|
2181
1570
|
}
|
|
2182
|
-
function _temp2(
|
|
2183
|
-
|
|
1571
|
+
function _temp2(t0) {
|
|
1572
|
+
const [key2, value] = t0;
|
|
1573
|
+
return value === 0 ? [key2, 0] : value === 1 ? [key2, 1] : value === 2 ? [key2, 1] : [key2, typeof value == "number" ? value - 2 : 0];
|
|
2184
1574
|
}
|
|
2185
1575
|
function _temp(event) {
|
|
2186
1576
|
event.preventDefault(), event.stopPropagation();
|
|
2187
1577
|
}
|
|
2188
|
-
TextInput.displayName = "TextInput";
|
|
2189
1578
|
function useDelayedState(initialState) {
|
|
2190
1579
|
const $ = reactCompilerRuntime.c(3), [state, setState] = react.useState(initialState), delayedAction = react.useRef(void 0);
|
|
2191
1580
|
let t0;
|
|
@@ -2219,26 +1608,6 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
|
|
|
2219
1608
|
"right-start": ["right", "right-end", "left-start", "top-start", "bottom-start"],
|
|
2220
1609
|
"right-end": ["right", "right-start", "left-end", "top-end", "bottom-end"]
|
|
2221
1610
|
}, TooltipDelayGroupContext = createGlobalScopedContext("@sanity/ui/context/tooltipDelayGroup", null);
|
|
2222
|
-
function TooltipDelayGroupProvider(props) {
|
|
2223
|
-
const $ = reactCompilerRuntime.c(9), {
|
|
2224
|
-
children,
|
|
2225
|
-
delay
|
|
2226
|
-
} = props, [isGroupActive, setIsGroupActive] = useDelayedState(!1), [openTooltipId, setOpenTooltipId] = useDelayedState(null), openDelay = typeof delay == "number" ? delay : delay?.open || 0, closeDelay = typeof delay == "number" ? delay : delay?.close || 0;
|
|
2227
|
-
let t0;
|
|
2228
|
-
const t1 = isGroupActive ? 1 : openDelay;
|
|
2229
|
-
let t2;
|
|
2230
|
-
$[0] !== closeDelay || $[1] !== openTooltipId || $[2] !== setIsGroupActive || $[3] !== setOpenTooltipId || $[4] !== t1 ? (t2 = {
|
|
2231
|
-
setIsGroupActive,
|
|
2232
|
-
openTooltipId,
|
|
2233
|
-
setOpenTooltipId,
|
|
2234
|
-
openDelay: t1,
|
|
2235
|
-
closeDelay
|
|
2236
|
-
}, $[0] = closeDelay, $[1] = openTooltipId, $[2] = setIsGroupActive, $[3] = setOpenTooltipId, $[4] = t1, $[5] = t2) : t2 = $[5], t0 = t2;
|
|
2237
|
-
const value = t0;
|
|
2238
|
-
let t3;
|
|
2239
|
-
return $[6] !== children || $[7] !== value ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(TooltipDelayGroupContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t3) : t3 = $[8], t3;
|
|
2240
|
-
}
|
|
2241
|
-
TooltipDelayGroupProvider.displayName = "TooltipDelayGroupProvider";
|
|
2242
1611
|
function useTooltipDelayGroup() {
|
|
2243
1612
|
return react.useContext(TooltipDelayGroupContext);
|
|
2244
1613
|
}
|
|
@@ -2298,7 +1667,6 @@ function TooltipLayer(props) {
|
|
|
2298
1667
|
t12
|
|
2299
1668
|
] }), $[35] = children, $[36] = padding, $[37] = placement, $[38] = radius, $[39] = rest, $[40] = rootStyle, $[41] = scheme, $[42] = shadow, $[43] = t10, $[44] = t11, $[45] = t12, $[46] = t8, $[47] = t9, $[48] = tone, $[49] = t13) : t13 = $[49], t13;
|
|
2300
1669
|
}
|
|
2301
|
-
TooltipLayer.displayName = "TooltipLayer";
|
|
2302
1670
|
const DEFAULT_TOOLTIP_ELEMENT = "div";
|
|
2303
1671
|
function Tooltip(props) {
|
|
2304
1672
|
const boundaryElementContext = useBoundaryElement(), {
|
|
@@ -2311,7 +1679,7 @@ function Tooltip(props) {
|
|
|
2311
1679
|
content,
|
|
2312
1680
|
delay,
|
|
2313
1681
|
disabled,
|
|
2314
|
-
fallbackPlacements
|
|
1682
|
+
fallbackPlacements = props.fallbackPlacements ?? DEFAULT_FALLBACK_PLACEMENTS[props.placement ?? "bottom"],
|
|
2315
1683
|
padding = 2,
|
|
2316
1684
|
placement: placementProp = "bottom",
|
|
2317
1685
|
portal: portalProp,
|
|
@@ -2322,7 +1690,7 @@ function Tooltip(props) {
|
|
|
2322
1690
|
zOffset = Z_OFFSETS.tooltip,
|
|
2323
1691
|
tone = "inherit",
|
|
2324
1692
|
...rest
|
|
2325
|
-
} = props, card = useCard(), animate = usePrefersReducedMotion() ? !1 : _animate,
|
|
1693
|
+
} = props, card = useCard(), animate = usePrefersReducedMotion() ? !1 : _animate, ref = react.useRef(null), [referenceElement, setReferenceElement] = react.useState(null), arrowRef = react.useRef(null), rootBoundary = "viewport", [tooltipMaxWidth, setTooltipMaxWidth] = react.useState(0);
|
|
2326
1694
|
react.useImperativeHandle(forwardedRef, () => ref.current);
|
|
2327
1695
|
const portal = usePortal(), portalElement = typeof portalProp == "string" ? portal.elements?.[portalProp] || null : portal.element, middleware = react.useMemo(() => {
|
|
2328
1696
|
const ret = [];
|
|
@@ -2418,7 +1786,9 @@ function Tooltip(props) {
|
|
|
2418
1786
|
}) : null, [childProp, handleBlur, handleClick, handleContextMenu, handleFocus, handleMouseEnter, handleMouseLeave]);
|
|
2419
1787
|
if (react.useImperativeHandle(childProp ? getElementRef(childProp) : null, () => referenceElement, [referenceElement]), !child) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
2420
1788
|
if (disabled) return child;
|
|
2421
|
-
const node_0 = /* @__PURE__ */ jsxRuntime.jsx(TooltipLayer, { "data-ui": "Tooltip", ...rest, animate, arrow: arrowProp, arrowRef: setArrow, arrowX, arrowY, as, className: css.
|
|
1789
|
+
const node_0 = /* @__PURE__ */ jsxRuntime.jsx(TooltipLayer, { "data-ui": "Tooltip", ...rest, animate, arrow: arrowProp, arrowRef: setArrow, arrowX, arrowY, as, className: css.tooltip({
|
|
1790
|
+
className
|
|
1791
|
+
}), originX, originY, padding, placement, radius, ref: setFloating, scheme, shadow, style: {
|
|
2422
1792
|
...floatingStyles,
|
|
2423
1793
|
maxWidth: tooltipMaxWidth > 0 ? `${tooltipMaxWidth}px` : void 0
|
|
2424
1794
|
}, tone, zOffset, children: content }), children = showTooltip && (portalProp ? /* @__PURE__ */ jsxRuntime.jsx(Portal, { __unstable_name: typeof portalProp == "string" ? portalProp : void 0, children: /* @__PURE__ */ jsxRuntime.jsx(CardProvider, { tone: tone === "inherit" ? card?.tone ?? "default" : tone, scheme: scheme ?? "light", children: node_0 }) }) : node_0);
|
|
@@ -2451,7 +1821,6 @@ function useCloseOnMouseLeave(t0) {
|
|
|
2451
1821
|
let t3;
|
|
2452
1822
|
$[7] !== isInsideGroup || $[8] !== showTooltip ? (t3 = [isInsideGroup, showTooltip], $[7] = isInsideGroup, $[8] = showTooltip, $[9] = t3) : t3 = $[9], react.useEffect(t2, t3);
|
|
2453
1823
|
}
|
|
2454
|
-
Tooltip.displayName = "Tooltip";
|
|
2455
1824
|
const DEFAULT_HOTKEYS_ELEMENT = "kbd";
|
|
2456
1825
|
function Hotkeys(props) {
|
|
2457
1826
|
const $ = reactCompilerRuntime.c(27), t0 = props;
|
|
@@ -2481,7 +1850,6 @@ function Hotkeys(props) {
|
|
|
2481
1850
|
let t5;
|
|
2482
1851
|
return $[20] !== as || $[21] !== gapX || $[22] !== gapY || $[23] !== rest || $[24] !== t3 || $[25] !== t4 ? (t5 = /* @__PURE__ */ jsxRuntime.jsx(Box, { as, "data-ui": "Hotkeys", ...rest, display: "flex", gap: t3, gapX, gapY, children: t4 }), $[20] = as, $[21] = gapX, $[22] = gapY, $[23] = rest, $[24] = t3, $[25] = t4, $[26] = t5) : t5 = $[26], t5;
|
|
2483
1852
|
}
|
|
2484
|
-
Hotkeys.displayName = "Hotkeys";
|
|
2485
1853
|
const MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
|
|
2486
1854
|
function _isFocusable(element) {
|
|
2487
1855
|
return isHTMLAnchorElement(element) && element.getAttribute("data-disabled") !== "true" || isHTMLButtonElement(element) && !element.disabled;
|
|
@@ -2701,7 +2069,9 @@ function Menu(props) {
|
|
|
2701
2069
|
}, $[32] = activeElement, $[33] = activeIndex, $[34] = handleItemMouseEnter, $[35] = handleItemMouseLeave, $[36] = mount, $[37] = onClickOutside, $[38] = onEscape, $[39] = onItemClick, $[40] = registerElement, $[41] = t12) : t12 = $[41], t11 = t12;
|
|
2702
2070
|
const value = t11;
|
|
2703
2071
|
let t13;
|
|
2704
|
-
$[42] !== className ? (t13 = css.
|
|
2072
|
+
$[42] !== className ? (t13 = css.menu({
|
|
2073
|
+
className
|
|
2074
|
+
}), $[42] = className, $[43] = t13) : t13 = $[43];
|
|
2705
2075
|
const t14 = gap ?? space;
|
|
2706
2076
|
let t15;
|
|
2707
2077
|
$[44] !== children || $[45] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.jsx(Stack, { gap: t14, children }), $[44] = children, $[45] = t14, $[46] = t15) : t15 = $[46];
|
|
@@ -2710,7 +2080,6 @@ function Menu(props) {
|
|
|
2710
2080
|
let t17;
|
|
2711
2081
|
return $[55] !== t16 || $[56] !== value ? (t17 = /* @__PURE__ */ jsxRuntime.jsx(MenuContext.Provider, { value, children: t16 }), $[55] = t16, $[56] = value, $[57] = t17) : t17 = $[57], t17;
|
|
2712
2082
|
}
|
|
2713
|
-
Menu.displayName = "Menu";
|
|
2714
2083
|
const DEFAULT_MENU_DIVIDER_ELEMENT = "hr";
|
|
2715
2084
|
function MenuDivider(props) {
|
|
2716
2085
|
const $ = reactCompilerRuntime.c(10), t0 = props;
|
|
@@ -2720,13 +2089,14 @@ function MenuDivider(props) {
|
|
|
2720
2089
|
className,
|
|
2721
2090
|
...rest
|
|
2722
2091
|
} = t0, $[0] = t0, $[1] = className, $[2] = rest, $[3] = t1) : (className = $[1], rest = $[2], t1 = $[3]);
|
|
2723
|
-
const
|
|
2092
|
+
const Element = t1 === void 0 ? DEFAULT_MENU_DIVIDER_ELEMENT : t1;
|
|
2724
2093
|
let t2;
|
|
2725
|
-
$[4] !== className ? (t2 = css.
|
|
2094
|
+
$[4] !== className ? (t2 = css.menuDivider({
|
|
2095
|
+
className
|
|
2096
|
+
}), $[4] = className, $[5] = t2) : t2 = $[5];
|
|
2726
2097
|
let t3;
|
|
2727
|
-
return $[6] !==
|
|
2098
|
+
return $[6] !== Element || $[7] !== rest || $[8] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(Element, { ...rest, className: t2 }), $[6] = Element, $[7] = rest, $[8] = t2, $[9] = t3) : t3 = $[9], t3;
|
|
2728
2099
|
}
|
|
2729
|
-
MenuDivider.displayName = "MenuDivider";
|
|
2730
2100
|
const DEFAULT_SELECTABLE_ELEMENT = "button";
|
|
2731
2101
|
function Selectable(props) {
|
|
2732
2102
|
const $ = reactCompilerRuntime.c(14), t0 = props;
|
|
@@ -2740,14 +2110,14 @@ function Selectable(props) {
|
|
|
2740
2110
|
} = t0, $[0] = t0, $[1] = className, $[2] = radius, $[3] = rest, $[4] = t1, $[5] = tone) : (className = $[1], radius = $[2], rest = $[3], t1 = $[4], tone = $[5]);
|
|
2741
2111
|
const as = t1 === void 0 ? DEFAULT_SELECTABLE_ELEMENT : t1;
|
|
2742
2112
|
let t2;
|
|
2743
|
-
$[6] !== className || $[7] !== radius || $[8] !== tone ? (t2 = css.
|
|
2113
|
+
$[6] !== className || $[7] !== radius || $[8] !== tone ? (t2 = css._selectable({
|
|
2114
|
+
className,
|
|
2744
2115
|
radius,
|
|
2745
2116
|
tone
|
|
2746
|
-
})
|
|
2117
|
+
}), $[6] = className, $[7] = radius, $[8] = tone, $[9] = t2) : t2 = $[9];
|
|
2747
2118
|
let t3;
|
|
2748
2119
|
return $[10] !== as || $[11] !== rest || $[12] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(Box, { ...rest, as, className: t2 }), $[10] = as, $[11] = rest, $[12] = t2, $[13] = t3) : t3 = $[13], t3;
|
|
2749
2120
|
}
|
|
2750
|
-
Selectable.displayName = "Selectable";
|
|
2751
2121
|
function useMenu() {
|
|
2752
2122
|
const value = react.useContext(MenuContext);
|
|
2753
2123
|
if (!value)
|
|
@@ -2861,7 +2231,6 @@ function MenuGroup(props) {
|
|
|
2861
2231
|
let t33;
|
|
2862
2232
|
return $[74] !== childMenu || $[75] !== open || $[76] !== popover || $[77] !== t32 ? (t33 = /* @__PURE__ */ jsxRuntime.jsx(Popover, { ...popover, content: childMenu, "data-ui": "MenuGroup__popover", open, children: t32 }), $[74] = childMenu, $[75] = open, $[76] = popover, $[77] = t32, $[78] = t33) : t33 = $[78], t33;
|
|
2863
2233
|
}
|
|
2864
|
-
MenuGroup.displayName = "MenuGroup";
|
|
2865
2234
|
const DEFAULT_MENU_ITEM_ELEMENT = "button";
|
|
2866
2235
|
function MenuItem(props) {
|
|
2867
2236
|
const $ = reactCompilerRuntime.c(75), t0 = props;
|
|
@@ -2950,7 +2319,6 @@ function MenuItem(props) {
|
|
|
2950
2319
|
t19
|
|
2951
2320
|
] }), $[60] = as, $[61] = disabled, $[62] = handleClick, $[63] = onItemMouseEnter, $[64] = onItemMouseLeave, $[65] = radius, $[66] = rest, $[67] = t14, $[68] = t15, $[69] = t16, $[70] = t17, $[71] = t18, $[72] = t19, $[73] = tone, $[74] = t20) : t20 = $[74], t20;
|
|
2952
2321
|
}
|
|
2953
|
-
MenuItem.displayName = "MenuItem";
|
|
2954
2322
|
const DEFAULT_TAB_ELEMENT = "button";
|
|
2955
2323
|
function Tab(props) {
|
|
2956
2324
|
const $ = reactCompilerRuntime.c(33), t0 = props;
|
|
@@ -2990,7 +2358,6 @@ function Tab(props) {
|
|
|
2990
2358
|
let t11;
|
|
2991
2359
|
return $[20] !== as || $[21] !== fontSize || $[22] !== handleFocus || $[23] !== icon || $[24] !== id || $[25] !== label || $[26] !== onClick || $[27] !== padding || $[28] !== rest || $[29] !== selected || $[30] !== t10 || $[31] !== t9 ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(Button, { "data-ui": "Tab", ...rest, "aria-selected": t9, as, fontSize, icon, id, mode: "bleed", onClick, onBlur: handleBlur, onFocus: handleFocus, padding, ref, role: "tab", selected, tabIndex: t10, text: label, type: "button" }), $[20] = as, $[21] = fontSize, $[22] = handleFocus, $[23] = icon, $[24] = id, $[25] = label, $[26] = onClick, $[27] = padding, $[28] = rest, $[29] = selected, $[30] = t10, $[31] = t9, $[32] = t11) : t11 = $[32], t11;
|
|
2992
2360
|
}
|
|
2993
|
-
Tab.displayName = "Tab";
|
|
2994
2361
|
const DEFAULT_TAB_LIST_ELEMENT = "div";
|
|
2995
2362
|
function TabList(props) {
|
|
2996
2363
|
const $ = reactCompilerRuntime.c(21), t0 = props;
|
|
@@ -3024,72 +2391,47 @@ function TabList(props) {
|
|
|
3024
2391
|
let t8;
|
|
3025
2392
|
return $[14] !== as || $[15] !== handleKeyDown || $[16] !== rest || $[17] !== t7 || $[18] !== tabs || $[19] !== wrap ? (t8 = /* @__PURE__ */ jsxRuntime.jsx(Flex, { "data-ui": "TabList", ...rest, as, gap: t7, onKeyDown: handleKeyDown, role: "tablist", wrap, children: tabs }), $[14] = as, $[15] = handleKeyDown, $[16] = rest, $[17] = t7, $[18] = tabs, $[19] = wrap, $[20] = t8) : t8 = $[20], t8;
|
|
3026
2393
|
}
|
|
3027
|
-
TabList.displayName = "TabList";
|
|
3028
2394
|
function _isReactElement(node) {
|
|
3029
2395
|
return !!node;
|
|
3030
2396
|
}
|
|
3031
2397
|
exports.AnimatedSpinnerIcon = AnimatedSpinnerIcon;
|
|
3032
2398
|
exports.Arrow = Arrow;
|
|
3033
|
-
exports.
|
|
3034
|
-
exports.AvatarCounter = AvatarCounter;
|
|
3035
|
-
exports.AvatarStack = AvatarStack;
|
|
3036
|
-
exports.Badge = Badge;
|
|
3037
|
-
exports.BoundaryElementProvider = BoundaryElementProvider;
|
|
2399
|
+
exports.BoundaryElementContext = BoundaryElementContext;
|
|
3038
2400
|
exports.Box = Box;
|
|
3039
2401
|
exports.Button = Button;
|
|
3040
2402
|
exports.Card = Card;
|
|
3041
2403
|
exports.CardProvider = CardProvider;
|
|
3042
|
-
exports.Checkbox = Checkbox;
|
|
3043
2404
|
exports.Code = Code;
|
|
3044
|
-
exports.Container = Container;
|
|
3045
2405
|
exports.DEFAULT_ARROW_ELEMENT = DEFAULT_ARROW_ELEMENT;
|
|
3046
|
-
exports.DEFAULT_AVATAR_COUNTER_ELEMENT = DEFAULT_AVATAR_COUNTER_ELEMENT;
|
|
3047
|
-
exports.DEFAULT_AVATAR_ELEMENT = DEFAULT_AVATAR_ELEMENT;
|
|
3048
|
-
exports.DEFAULT_AVATAR_STACK_ELEMENT = DEFAULT_AVATAR_STACK_ELEMENT;
|
|
3049
|
-
exports.DEFAULT_BADGE_ELEMENT = DEFAULT_BADGE_ELEMENT;
|
|
3050
2406
|
exports.DEFAULT_BOX_ELEMENT = DEFAULT_BOX_ELEMENT;
|
|
3051
2407
|
exports.DEFAULT_BUTTON_ELEMENT = DEFAULT_BUTTON_ELEMENT;
|
|
3052
2408
|
exports.DEFAULT_CARD_ELEMENT = DEFAULT_CARD_ELEMENT;
|
|
3053
|
-
exports.DEFAULT_CHECKBOX_ELEMENT = DEFAULT_CHECKBOX_ELEMENT;
|
|
3054
2409
|
exports.DEFAULT_CODE_ELEMENT = DEFAULT_CODE_ELEMENT;
|
|
3055
|
-
exports.DEFAULT_CONTAINER_ELEMENT = DEFAULT_CONTAINER_ELEMENT;
|
|
3056
2410
|
exports.DEFAULT_ELEMENT_QUERY_ELEMENT = DEFAULT_ELEMENT_QUERY_ELEMENT;
|
|
3057
2411
|
exports.DEFAULT_FLEX_ELEMENT = DEFAULT_FLEX_ELEMENT;
|
|
3058
2412
|
exports.DEFAULT_GRID_ELEMENT = DEFAULT_GRID_ELEMENT;
|
|
3059
|
-
exports.DEFAULT_HEADING_ELEMENT = DEFAULT_HEADING_ELEMENT;
|
|
3060
2413
|
exports.DEFAULT_HOTKEYS_ELEMENT = DEFAULT_HOTKEYS_ELEMENT;
|
|
3061
|
-
exports.DEFAULT_INLINE_ELEMENT = DEFAULT_INLINE_ELEMENT;
|
|
3062
2414
|
exports.DEFAULT_KBD_ELEMENT = DEFAULT_KBD_ELEMENT;
|
|
3063
|
-
exports.DEFAULT_LABEL_ELEMENT = DEFAULT_LABEL_ELEMENT;
|
|
3064
2415
|
exports.DEFAULT_LAYER_ELEMENT = DEFAULT_LAYER_ELEMENT;
|
|
3065
2416
|
exports.DEFAULT_MENU_DIVIDER_ELEMENT = DEFAULT_MENU_DIVIDER_ELEMENT;
|
|
3066
2417
|
exports.DEFAULT_MENU_ELEMENT = DEFAULT_MENU_ELEMENT;
|
|
3067
2418
|
exports.DEFAULT_MENU_GROUP_ELEMENT = DEFAULT_MENU_GROUP_ELEMENT;
|
|
3068
2419
|
exports.DEFAULT_MENU_ITEM_ELEMENT = DEFAULT_MENU_ITEM_ELEMENT;
|
|
3069
2420
|
exports.DEFAULT_POPOVER_ELEMENT = DEFAULT_POPOVER_ELEMENT;
|
|
3070
|
-
exports.DEFAULT_RADIO_ELEMENT = DEFAULT_RADIO_ELEMENT;
|
|
3071
|
-
exports.DEFAULT_SELECT_ELEMENT = DEFAULT_SELECT_ELEMENT;
|
|
3072
2421
|
exports.DEFAULT_SPINNER_ELEMENT = DEFAULT_SPINNER_ELEMENT;
|
|
3073
|
-
exports.DEFAULT_SR_ONLY_ELEMENT = DEFAULT_SR_ONLY_ELEMENT;
|
|
3074
2422
|
exports.DEFAULT_STACK_ELEMENT = DEFAULT_STACK_ELEMENT;
|
|
3075
|
-
exports.DEFAULT_SWITCH_ELEMENT = DEFAULT_SWITCH_ELEMENT;
|
|
3076
2423
|
exports.DEFAULT_TAB_ELEMENT = DEFAULT_TAB_ELEMENT;
|
|
3077
2424
|
exports.DEFAULT_TAB_LIST_ELEMENT = DEFAULT_TAB_LIST_ELEMENT;
|
|
3078
|
-
exports.DEFAULT_TEXT_AREA_ELEMENT = DEFAULT_TEXT_AREA_ELEMENT;
|
|
3079
2425
|
exports.DEFAULT_TEXT_ELEMENT = DEFAULT_TEXT_ELEMENT;
|
|
3080
2426
|
exports.DEFAULT_TEXT_INPUT_ELEMENT = DEFAULT_TEXT_INPUT_ELEMENT;
|
|
3081
2427
|
exports.DEFAULT_TOOLTIP_ELEMENT = DEFAULT_TOOLTIP_ELEMENT;
|
|
3082
|
-
exports.DEFAULT_VIRTUAL_LIST_ELEMENT = DEFAULT_VIRTUAL_LIST_ELEMENT;
|
|
3083
2428
|
exports.EMPTY_ARRAY = EMPTY_ARRAY;
|
|
3084
2429
|
exports.EMPTY_RECORD = EMPTY_RECORD;
|
|
3085
2430
|
exports.ElementQuery = ElementQuery;
|
|
3086
2431
|
exports.Flex = Flex;
|
|
3087
2432
|
exports.Grid = Grid;
|
|
3088
|
-
exports.Heading = Heading;
|
|
3089
2433
|
exports.Hotkeys = Hotkeys;
|
|
3090
|
-
exports.Inline = Inline;
|
|
3091
2434
|
exports.KBD = KBD;
|
|
3092
|
-
exports.Label = Label;
|
|
3093
2435
|
exports.Layer = Layer;
|
|
3094
2436
|
exports.LayerProvider = LayerProvider;
|
|
3095
2437
|
exports.Menu = Menu;
|
|
@@ -3099,30 +2441,23 @@ exports.MenuItem = MenuItem;
|
|
|
3099
2441
|
exports.Popover = Popover;
|
|
3100
2442
|
exports.Portal = Portal;
|
|
3101
2443
|
exports.PortalProvider = PortalProvider;
|
|
3102
|
-
exports.Radio = Radio;
|
|
3103
|
-
exports.Select = Select;
|
|
3104
2444
|
exports.Selectable = Selectable;
|
|
3105
2445
|
exports.Spinner = Spinner;
|
|
3106
|
-
exports.SrOnly = SrOnly;
|
|
3107
2446
|
exports.Stack = Stack;
|
|
3108
|
-
exports.Switch = Switch;
|
|
3109
2447
|
exports.Tab = Tab;
|
|
3110
2448
|
exports.TabList = TabList;
|
|
3111
2449
|
exports.Text = Text;
|
|
3112
|
-
exports.TextArea = TextArea;
|
|
3113
2450
|
exports.TextInput = TextInput;
|
|
3114
2451
|
exports.ThemeColorProvider = ThemeColorProvider;
|
|
3115
2452
|
exports.ThemeProvider = ThemeProvider;
|
|
3116
2453
|
exports.Tooltip = Tooltip;
|
|
3117
2454
|
exports.TooltipDelayGroupContext = TooltipDelayGroupContext;
|
|
3118
|
-
exports.TooltipDelayGroupProvider = TooltipDelayGroupProvider;
|
|
3119
|
-
exports.VirtualList = VirtualList;
|
|
3120
2455
|
exports.Z_OFFSETS = Z_OFFSETS;
|
|
3121
2456
|
exports._ResizeObserver = _ResizeObserver;
|
|
3122
2457
|
exports._elementSizeObserver = _elementSizeObserver;
|
|
3123
2458
|
exports._getArrayProp = _getArrayProp;
|
|
2459
|
+
exports._getResponsiveProp = _getResponsiveProp;
|
|
3124
2460
|
exports._isEnterToClickElement = _isEnterToClickElement;
|
|
3125
|
-
exports._isScrollable = _isScrollable;
|
|
3126
2461
|
exports.containsOrEqualsElement = containsOrEqualsElement;
|
|
3127
2462
|
exports.createGlobalScopedContext = createGlobalScopedContext;
|
|
3128
2463
|
exports.isHTMLAnchorElement = isHTMLAnchorElement;
|
|
@@ -3132,11 +2467,11 @@ exports.isHTMLInputElement = isHTMLInputElement;
|
|
|
3132
2467
|
exports.isHTMLSelectElement = isHTMLSelectElement;
|
|
3133
2468
|
exports.isHTMLTextAreaElement = isHTMLTextAreaElement;
|
|
3134
2469
|
exports.isRecord = isRecord;
|
|
3135
|
-
exports.useArrayProp = useArrayProp;
|
|
3136
2470
|
exports.useBoundaryElement = useBoundaryElement;
|
|
3137
2471
|
exports.useCard = useCard;
|
|
3138
2472
|
exports.useClickOutsideEvent = useClickOutsideEvent;
|
|
3139
2473
|
exports.useCustomValidity = useCustomValidity;
|
|
2474
|
+
exports.useDelayedState = useDelayedState;
|
|
3140
2475
|
exports.useElementSize = useElementSize;
|
|
3141
2476
|
exports.useGlobalKeyDown = useGlobalKeyDown;
|
|
3142
2477
|
exports.useLayer = useLayer;
|
|
@@ -3145,6 +2480,7 @@ exports.useMediaIndex = useMediaIndex;
|
|
|
3145
2480
|
exports.usePortal = usePortal;
|
|
3146
2481
|
exports.usePrefersDark = usePrefersDark;
|
|
3147
2482
|
exports.usePrefersReducedMotion = usePrefersReducedMotion;
|
|
2483
|
+
exports.useResponsiveProp = useResponsiveProp;
|
|
3148
2484
|
exports.useRootTheme = useRootTheme;
|
|
3149
2485
|
exports.useTheme = useTheme;
|
|
3150
2486
|
exports.useTheme_v2 = useTheme_v2;
|