@sanity/ui 3.0.0-static.29 → 3.0.0-static.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_chunks-cjs/_visual-editing.cjs +293 -293
- package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -1
- package/dist/_chunks-es/_visual-editing.js +294 -294
- package/dist/_chunks-es/_visual-editing.js.map +1 -1
- package/dist/css/index.cjs.map +1 -1
- package/dist/css/index.css +1 -1
- package/dist/css/index.js.map +1 -1
- package/dist/index.cjs +47 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +48 -38
- package/dist/index.js.map +1 -1
- package/dist/theme.cjs +6 -6
- package/dist/theme.cjs.map +1 -1
- package/dist/theme.js +6 -6
- package/dist/theme.js.map +1 -1
- package/package.json +1 -1
- package/src/core/components/autocomplete/autocomplete.tsx +7 -7
- package/src/core/components/autocomplete/constants.ts +0 -2
- package/src/core/components/autocomplete/types.ts +1 -1
- package/src/core/components/breadcrumbs/breadcrumbs.tsx +6 -6
- package/src/core/components/dialog/__workshop__/activate.tsx +1 -2
- package/src/core/components/dialog/dialog.tsx +6 -5
- package/src/core/components/dialog/dialogCard.tsx +8 -8
- package/src/core/components/hotkeys/hotkeys.tsx +2 -2
- package/src/core/components/menu/__workshop__/constrainedInBoundary.tsx +1 -2
- package/src/core/components/menu/__workshop__/shouldFocus.tsx +1 -5
- package/src/core/components/menu/menu.tsx +3 -3
- package/src/core/components/menu/menuButton.tsx +2 -2
- package/src/core/components/menu/menuGroup.tsx +5 -5
- package/src/core/components/menu/menuItem.tsx +5 -5
- package/src/core/components/tab/tab.tsx +1 -1
- package/src/core/components/tab/tabList.tsx +1 -1
- package/src/core/components/tab/tabPanel.tsx +1 -1
- package/src/core/components/toast/toast.tsx +6 -6
- package/src/core/components/toast/toastLayer.tsx +2 -2
- package/src/core/components/toast/toastProvider.tsx +1 -1
- package/src/core/components/tree/tree.tsx +1 -1
- package/src/core/components/tree/treeGroup.tsx +1 -1
- package/src/core/components/tree/treeItem.tsx +5 -5
- package/src/core/components/virtualList/virtualList.tsx +1 -1
- package/src/core/index.ts +95 -44
- package/src/core/primitives/avatar/__workshop__/withinButton.tsx +1 -9
- package/src/core/primitives/avatar/avatar.tsx +2 -2
- package/src/core/primitives/avatar/avatarCounter.tsx +2 -2
- package/src/core/primitives/avatar/avatarStack.tsx +1 -1
- package/src/core/primitives/badge/badge.tsx +2 -2
- package/src/core/primitives/button/__workshop__/disabled.tsx +1 -7
- package/src/core/primitives/button/button.tsx +3 -4
- package/src/core/primitives/card/__workshop__/listNavigation.tsx +1 -3
- package/src/core/primitives/card/card.tsx +1 -1
- package/src/core/primitives/container/container.tsx +1 -1
- package/src/core/primitives/flex/flex.tsx +1 -1
- package/src/core/primitives/grid/grid.tsx +1 -1
- package/src/core/primitives/inline/inline.tsx +1 -1
- package/src/core/primitives/kbd/kbd.tsx +4 -4
- package/src/core/primitives/layer/layer.tsx +1 -1
- package/src/core/primitives/layer/layerCard.tsx +1 -1
- package/src/core/primitives/layer/layerProvider.tsx +1 -1
- package/src/core/primitives/popover/popover.tsx +6 -4
- package/src/core/primitives/popover/popoverLayer.tsx +3 -3
- package/src/core/primitives/root/Root.tsx +11 -16
- package/src/core/primitives/root/RootProvider.tsx +40 -0
- package/src/core/primitives/select/select.tsx +2 -2
- package/src/core/primitives/{_selectable → selectable}/selectable.tsx +1 -1
- package/src/core/primitives/spinner/spinner.tsx +1 -1
- package/src/core/primitives/stack/stack.tsx +1 -1
- package/src/core/primitives/switch/switch.tsx +1 -1
- package/src/core/primitives/textInput/textInput.tsx +3 -3
- package/src/core/primitives/tooltip/tooltip.test.tsx +2 -2
- package/src/core/primitives/tooltip/tooltip.tsx +6 -4
- package/src/core/primitives/tooltip/tooltipLayer.tsx +2 -2
- package/src/core/utils/errorBoundary.tsx +1 -1
- package/src/core/utils/portal/portal.tsx +2 -1
- package/src/css/components/dialog/dialog.ts +1 -1
- package/src/css/components/skeleton/skeleton.ts +3 -3
- package/src/css/components/skeleton/types.ts +3 -3
- package/src/css/defaultTheme.css.ts +1 -1
- package/src/css/index.ts +126 -69
- package/src/css/primitives/_input/input.ts +2 -2
- package/src/css/primitives/_input/types.ts +2 -2
- package/src/css/primitives/_selectable/selectable.ts +1 -1
- package/src/css/primitives/_selectable/types.ts +1 -1
- package/src/css/primitives/avatar/avatar.ts +1 -1
- package/src/css/primitives/box/box.ts +35 -35
- package/src/css/primitives/box/types.ts +34 -34
- package/src/css/primitives/button/button.css.ts +8 -8
- package/src/css/primitives/button/button.ts +4 -4
- package/src/css/primitives/button/types.ts +3 -3
- package/src/css/primitives/card/__workshop__/color.tsx +8 -3
- package/src/css/primitives/code/code.ts +3 -3
- package/src/css/primitives/code/types.ts +2 -2
- package/src/css/primitives/container/container.ts +3 -3
- package/src/css/primitives/heading/heading.ts +4 -4
- package/src/css/primitives/heading/types.ts +3 -3
- package/src/css/primitives/kbd/kbd.ts +1 -1
- package/src/css/primitives/kbd/types.ts +1 -1
- package/src/css/primitives/label/label.ts +4 -4
- package/src/css/primitives/label/types.ts +3 -3
- package/src/css/primitives/root/root.ts +2 -2
- package/src/css/primitives/root/types.ts +1 -1
- package/src/css/primitives/select/select.ts +1 -1
- package/src/css/primitives/select/types.ts +1 -1
- package/src/css/primitives/text/text.ts +5 -5
- package/src/css/primitives/text/types.ts +4 -4
- package/src/css/primitives/textArea/textArea.ts +1 -1
- package/src/css/primitives/textArea/types.ts +1 -1
- package/src/css/primitives/textInput/textInput.ts +1 -1
- package/src/css/primitives/textInput/types.ts +1 -1
- package/src/css/primitives/tooltip/tooltip.css.ts +1 -3
- package/src/css/primitives/tooltip/tooltip.ts +0 -2
- package/src/theme/v3/defaultTokens.ts +6 -6
- package/src/core/_compat/index.ts +0 -4
- package/src/core/_compat/styles/index.ts +0 -1
- package/src/core/_compat/theme/index.ts +0 -5
- package/src/core/components/breadcrumbs/index.ts +0 -1
- package/src/core/components/dialog/index.ts +0 -5
- package/src/core/components/hotkeys/index.ts +0 -1
- package/src/core/components/menu/index.ts +0 -5
- package/src/core/components/tab/index.ts +0 -3
- package/src/core/components/toast/index.ts +0 -4
- package/src/core/components/tree/index.ts +0 -4
- package/src/core/components/virtualList/index.ts +0 -1
- package/src/core/hooks/useElementRect/index.ts +0 -1
- package/src/core/hooks/useMediaIndex/index.ts +0 -1
- package/src/core/primitives/_selectable/index.ts +0 -2
- package/src/core/primitives/arrow/index.ts +0 -1
- package/src/core/primitives/avatar/index.ts +0 -4
- package/src/core/primitives/badge/index.ts +0 -1
- package/src/core/primitives/badge/types2.ts +0 -10
- package/src/core/primitives/box/index.ts +0 -2
- package/src/core/primitives/button/index.ts +0 -2
- package/src/core/primitives/card/index.ts +0 -4
- package/src/core/primitives/checkbox/index.ts +0 -1
- package/src/core/primitives/code/index.ts +0 -1
- package/src/core/primitives/container/index.ts +0 -2
- package/src/core/primitives/flex/index.ts +0 -2
- package/src/core/primitives/grid/index.ts +0 -2
- package/src/core/primitives/heading/index.ts +0 -1
- package/src/core/primitives/inline/index.ts +0 -1
- package/src/core/primitives/inline/types.ts +0 -7
- package/src/core/primitives/kbd/index.ts +0 -1
- package/src/core/primitives/label/index.ts +0 -1
- package/src/core/primitives/layer/index.ts +0 -4
- package/src/core/primitives/popover/index.ts +0 -2
- package/src/core/primitives/radio/index.ts +0 -1
- package/src/core/primitives/root/index.ts +0 -1
- package/src/core/primitives/select/index.ts +0 -1
- package/src/core/primitives/skeleton/index.ts +0 -5
- package/src/core/primitives/spinner/index.ts +0 -1
- package/src/core/primitives/srOnly/index.ts +0 -1
- package/src/core/primitives/stack/index.ts +0 -1
- package/src/core/primitives/switch/index.ts +0 -1
- package/src/core/primitives/text/index.ts +0 -1
- package/src/core/primitives/textArea/index.ts +0 -1
- package/src/core/primitives/textInput/index.ts +0 -1
- package/src/core/primitives/tooltip/index.ts +0 -2
- package/src/core/utils/boundaryElement/index.ts +0 -3
- package/src/core/utils/elementQuery/index.ts +0 -1
- package/src/core/utils/portal/index.ts +0 -4
- package/src/css/components/breadcrumbs/index.ts +0 -1
- package/src/css/components/dialog/index.ts +0 -1
- package/src/css/components/menu/index.ts +0 -1
- package/src/css/components/skeleton/index.ts +0 -2
- package/src/css/components/toast/index.ts +0 -1
- package/src/css/components/tree/index.ts +0 -1
- package/src/css/primitives/_arrow/index.ts +0 -1
- package/src/css/primitives/_input/index.ts +0 -2
- package/src/css/primitives/_selectable/index.ts +0 -2
- package/src/css/primitives/avatar/index.ts +0 -2
- package/src/css/primitives/badge/index.ts +0 -2
- package/src/css/primitives/box/index.ts +0 -2
- package/src/css/primitives/button/index.ts +0 -2
- package/src/css/primitives/card/index.ts +0 -2
- package/src/css/primitives/checkbox/index.ts +0 -1
- package/src/css/primitives/code/index.ts +0 -2
- package/src/css/primitives/container/index.ts +0 -2
- package/src/css/primitives/heading/index.ts +0 -2
- package/src/css/primitives/kbd/index.ts +0 -2
- package/src/css/primitives/label/index.ts +0 -2
- package/src/css/primitives/popover/index.ts +0 -1
- package/src/css/primitives/radio/index.ts +0 -1
- package/src/css/primitives/root/index.ts +0 -2
- package/src/css/primitives/select/index.ts +0 -2
- package/src/css/primitives/spinner/index.ts +0 -2
- package/src/css/primitives/srOnly/index.ts +0 -1
- package/src/css/primitives/stack/index.ts +0 -1
- package/src/css/primitives/switch/index.ts +0 -1
- package/src/css/primitives/text/index.ts +0 -2
- package/src/css/primitives/textArea/index.ts +0 -2
- package/src/css/primitives/textInput/index.ts +0 -2
- package/src/css/primitives/tooltip/index.ts +0 -2
- package/src/css/props/alignItems/index.ts +0 -2
- package/src/css/props/border/index.ts +0 -2
- package/src/css/props/boxSizing/index.ts +0 -2
- package/src/css/props/display/index.ts +0 -2
- package/src/css/props/flex/index.ts +0 -2
- package/src/css/props/flexDirection/index.ts +0 -2
- package/src/css/props/flexWrap/index.ts +0 -2
- package/src/css/props/font/index.ts +0 -2
- package/src/css/props/gap/index.ts +0 -2
- package/src/css/props/gridAutoColumns/index.ts +0 -2
- package/src/css/props/gridAutoFlow/index.ts +0 -2
- package/src/css/props/gridAutoRows/index.ts +0 -2
- package/src/css/props/gridColumn/index.ts +0 -2
- package/src/css/props/gridColumnEnd/index.ts +0 -2
- package/src/css/props/gridColumnStart/index.ts +0 -2
- package/src/css/props/gridRow/index.ts +0 -2
- package/src/css/props/gridRowEnd/index.ts +0 -2
- package/src/css/props/gridRowStart/index.ts +0 -2
- package/src/css/props/gridTemplateColumns/index.ts +0 -2
- package/src/css/props/gridTemplateRows/index.ts +0 -2
- package/src/css/props/height/index.ts +0 -2
- package/src/css/props/inset/index.ts +0 -2
- package/src/css/props/justifyContent/index.ts +0 -2
- package/src/css/props/margin/index.ts +0 -2
- package/src/css/props/maxWidth/index.ts +0 -2
- package/src/css/props/minHeight/index.ts +0 -2
- package/src/css/props/minWidth/index.ts +0 -2
- package/src/css/props/outline/index.ts +0 -2
- package/src/css/props/overflow/index.ts +0 -2
- package/src/css/props/padding/index.ts +0 -2
- package/src/css/props/pointerEvents/index.ts +0 -2
- package/src/css/props/position/index.ts +0 -2
- package/src/css/props/radius/index.ts +0 -2
- package/src/css/props/shadow/index.ts +0 -2
- package/src/css/props/textAlign/index.ts +0 -2
- package/src/css/props/textOverflow/index.ts +0 -2
- package/src/css/props/width/index.ts +0 -2
- /package/src/core/primitives/{_selectable → selectable}/types.ts +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -2162,6 +2162,18 @@ export declare interface RootOwnProps extends BoxOwnProps, RootStyleProps {}
|
|
|
2162
2162
|
/** @public */
|
|
2163
2163
|
export declare type RootProps<E extends RootElementType = RootElementType> = Props<RootOwnProps, E>
|
|
2164
2164
|
|
|
2165
|
+
/** @public */
|
|
2166
|
+
export declare function RootProvider(props: RootProviderProps): JSX.Element
|
|
2167
|
+
|
|
2168
|
+
/** @public */
|
|
2169
|
+
export declare interface RootProviderProps {
|
|
2170
|
+
boundaryElement?: HTMLElement | null
|
|
2171
|
+
children?: ReactNode
|
|
2172
|
+
portalElement?: HTMLElement | null
|
|
2173
|
+
scheme?: ThemeColorSchemeKey_2
|
|
2174
|
+
tone?: ThemeColorCardToneKey
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2165
2177
|
/**
|
|
2166
2178
|
* @public
|
|
2167
2179
|
* @deprecated Use `RootTheme` from `@sanity/ui/theme` instead.
|
package/dist/index.d.ts
CHANGED
|
@@ -2162,6 +2162,18 @@ export declare interface RootOwnProps extends BoxOwnProps, RootStyleProps {}
|
|
|
2162
2162
|
/** @public */
|
|
2163
2163
|
export declare type RootProps<E extends RootElementType = RootElementType> = Props<RootOwnProps, E>
|
|
2164
2164
|
|
|
2165
|
+
/** @public */
|
|
2166
|
+
export declare function RootProvider(props: RootProviderProps): JSX.Element
|
|
2167
|
+
|
|
2168
|
+
/** @public */
|
|
2169
|
+
export declare interface RootProviderProps {
|
|
2170
|
+
boundaryElement?: HTMLElement | null
|
|
2171
|
+
children?: ReactNode
|
|
2172
|
+
portalElement?: HTMLElement | null
|
|
2173
|
+
scheme?: ThemeColorSchemeKey_2
|
|
2174
|
+
tone?: ThemeColorCardToneKey
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2165
2177
|
/**
|
|
2166
2178
|
* @public
|
|
2167
2179
|
* @deprecated Use `RootTheme` from `@sanity/ui/theme` instead.
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createColorTheme as createColorTheme$1, hexToRgb as hexToRgb$1, hslToRgb as hslToRgb$1, multiply as multiply$1, parseColor as parseColor$1, rgbToHex as rgbToHex$1, rgbToHsl as rgbToHsl$1, rgba as rgba$1, screen as screen$1 } from "@sanity/ui/theme";
|
|
2
|
-
import { isHTMLAnchorElement, isHTMLInputElement, isHTMLButtonElement, isHTMLSelectElement, isHTMLTextAreaElement, isHTMLElement,
|
|
2
|
+
import { isHTMLAnchorElement, isHTMLInputElement, isHTMLButtonElement, isHTMLSelectElement, isHTMLTextAreaElement, isHTMLElement, _isEnterToClickElement, Selectable, Text, useResponsiveProp, EMPTY_ARRAY, EMPTY_RECORD, Box, Button, Stack, Popover, TextInput, AnimatedSpinnerIcon, useClickOutsideEvent, Flex, containsOrEqualsElement, usePortal, useBoundaryElement, useLayer, useGlobalKeyDown, Card, createGlobalScopedContext, usePrefersReducedMotion, Portal, Z_OFFSETS, Layer, Grid, LayerProvider, isRecord, _getArrayProp, useCustomValidity, BoundaryElementContext, CardProvider, PortalProvider, useDelayedState, TooltipDelayGroupContext } from "./_chunks-es/_visual-editing.js";
|
|
3
3
|
import { Arrow, DEFAULT_ARROW_ELEMENT, DEFAULT_BOX_ELEMENT, DEFAULT_BUTTON_ELEMENT, DEFAULT_CARD_ELEMENT, DEFAULT_FLEX_ELEMENT, DEFAULT_GRID_ELEMENT, DEFAULT_HOTKEYS_ELEMENT, DEFAULT_KBD_ELEMENT, DEFAULT_LAYER_ELEMENT, DEFAULT_MENU_DIVIDER_ELEMENT, DEFAULT_MENU_ELEMENT, DEFAULT_MENU_GROUP_ELEMENT, DEFAULT_MENU_ITEM_ELEMENT, DEFAULT_POPOVER_ELEMENT, DEFAULT_SELECTABLE_ELEMENT, DEFAULT_SPINNER_ELEMENT, DEFAULT_STACK_ELEMENT, DEFAULT_TAB_ELEMENT, DEFAULT_TAB_LIST_ELEMENT, DEFAULT_TEXT_ELEMENT, DEFAULT_TEXT_INPUT_ELEMENT, DEFAULT_TOOLTIP_ELEMENT, Hotkeys, KBD, Menu, MenuDivider, MenuGroup, MenuItem, Spinner, Tab, TabList, ThemeColorProvider, ThemeProvider, Tooltip, _getResponsiveProp, useCard, useMatchMedia, useMediaIndex, usePrefersDark, useRootTheme, useTheme, useTheme_v2, useTooltipDelayGroup } from "./_chunks-es/_visual-editing.js";
|
|
4
4
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
5
5
|
import { ChevronDownIcon, CloseIcon, ToggleArrowRightIcon, CheckmarkIcon, RemoveIcon } from "@sanity/icons";
|
|
@@ -61,20 +61,6 @@ function focusLastDescendant(element) {
|
|
|
61
61
|
}
|
|
62
62
|
return !1;
|
|
63
63
|
}
|
|
64
|
-
function BoundaryElementProvider(props) {
|
|
65
|
-
const $ = c(5), {
|
|
66
|
-
children,
|
|
67
|
-
element
|
|
68
|
-
} = props;
|
|
69
|
-
let t0, t1;
|
|
70
|
-
$[0] !== element ? (t1 = {
|
|
71
|
-
version: 0,
|
|
72
|
-
element
|
|
73
|
-
}, $[0] = element, $[1] = t1) : t1 = $[1], t0 = t1;
|
|
74
|
-
const value = t0;
|
|
75
|
-
let t2;
|
|
76
|
-
return $[2] !== children || $[3] !== value ? (t2 = /* @__PURE__ */ jsx(BoundaryElementContext.Provider, { value, children }), $[2] = children, $[3] = value, $[4] = t2) : t2 = $[4], t2;
|
|
77
|
-
}
|
|
78
64
|
function AutocompleteOption(props) {
|
|
79
65
|
const $ = c(11), {
|
|
80
66
|
children,
|
|
@@ -1870,9 +1856,38 @@ function Radio(props) {
|
|
|
1870
1856
|
t9
|
|
1871
1857
|
] }), $[21] = style, $[22] = t3, $[23] = t8, $[24] = t10) : t10 = $[24], t10;
|
|
1872
1858
|
}
|
|
1859
|
+
function BoundaryElementProvider(props) {
|
|
1860
|
+
const $ = c(5), {
|
|
1861
|
+
children,
|
|
1862
|
+
element
|
|
1863
|
+
} = props;
|
|
1864
|
+
let t0, t1;
|
|
1865
|
+
$[0] !== element ? (t1 = {
|
|
1866
|
+
version: 0,
|
|
1867
|
+
element
|
|
1868
|
+
}, $[0] = element, $[1] = t1) : t1 = $[1], t0 = t1;
|
|
1869
|
+
const value = t0;
|
|
1870
|
+
let t2;
|
|
1871
|
+
return $[2] !== children || $[3] !== value ? (t2 = /* @__PURE__ */ jsx(BoundaryElementContext.Provider, { value, children }), $[2] = children, $[3] = value, $[4] = t2) : t2 = $[4], t2;
|
|
1872
|
+
}
|
|
1873
|
+
function RootProvider(props) {
|
|
1874
|
+
const $ = c(10), {
|
|
1875
|
+
boundaryElement: t0,
|
|
1876
|
+
children,
|
|
1877
|
+
portalElement: t1,
|
|
1878
|
+
scheme: t2,
|
|
1879
|
+
tone: t3
|
|
1880
|
+
} = props, boundaryElement = t0 === void 0 ? null : t0, portalElement = t1 === void 0 ? null : t1, scheme = t2 === void 0 ? "light" : t2, tone = t3 === void 0 ? "transparent" : t3;
|
|
1881
|
+
let t4;
|
|
1882
|
+
$[0] !== children || $[1] !== portalElement ? (t4 = /* @__PURE__ */ jsx(PortalProvider, { element: portalElement, children }), $[0] = children, $[1] = portalElement, $[2] = t4) : t4 = $[2];
|
|
1883
|
+
let t5;
|
|
1884
|
+
$[3] !== boundaryElement || $[4] !== t4 ? (t5 = /* @__PURE__ */ jsx(ToastProvider, { children: /* @__PURE__ */ jsx(BoundaryElementProvider, { element: boundaryElement, children: t4 }) }), $[3] = boundaryElement, $[4] = t4, $[5] = t5) : t5 = $[5];
|
|
1885
|
+
let t6;
|
|
1886
|
+
return $[6] !== scheme || $[7] !== t5 || $[8] !== tone ? (t6 = /* @__PURE__ */ jsx(LayerProvider, { children: /* @__PURE__ */ jsx(CardProvider, { scheme, tone, children: t5 }) }), $[6] = scheme, $[7] = t5, $[8] = tone, $[9] = t6) : t6 = $[9], t6;
|
|
1887
|
+
}
|
|
1873
1888
|
const DEFAULT_ROOT_ELEMENT = "html";
|
|
1874
1889
|
function Root(props) {
|
|
1875
|
-
const $ = c(
|
|
1890
|
+
const $ = c(33), t0 = props;
|
|
1876
1891
|
let children, className, forwardedRef, rest, t1, t2, t3, t4;
|
|
1877
1892
|
$[0] !== t0 ? ({
|
|
1878
1893
|
as: t1,
|
|
@@ -1894,37 +1909,31 @@ function Root(props) {
|
|
|
1894
1909
|
}, $[10] = t6) : t6 = $[10];
|
|
1895
1910
|
const handleRef = t6;
|
|
1896
1911
|
let t7;
|
|
1897
|
-
$[11]
|
|
1912
|
+
$[11] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ jsx("div", { "data-portal": "", ref: setPortalElement }), $[11] = t7) : t7 = $[11];
|
|
1898
1913
|
let t8;
|
|
1899
|
-
$[
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
t8,
|
|
1905
|
-
t9
|
|
1906
|
-
] }), $[18] = t8, $[19] = t10) : t10 = $[19];
|
|
1907
|
-
let t11;
|
|
1908
|
-
$[20] !== scheme || $[21] !== t10 || $[22] !== tone ? (t11 = /* @__PURE__ */ jsx(LayerProvider, { children: /* @__PURE__ */ jsx(CardProvider, { scheme, tone, children: t10 }) }), $[20] = scheme, $[21] = t10, $[22] = tone, $[23] = t11) : t11 = $[23];
|
|
1909
|
-
let node = t11;
|
|
1914
|
+
$[12] !== boundaryElement || $[13] !== children || $[14] !== portalElement || $[15] !== scheme || $[16] !== tone ? (t8 = /* @__PURE__ */ jsxs(RootProvider, { boundaryElement, portalElement, scheme, tone, children: [
|
|
1915
|
+
children,
|
|
1916
|
+
t7
|
|
1917
|
+
] }), $[12] = boundaryElement, $[13] = children, $[14] = portalElement, $[15] = scheme, $[16] = tone, $[17] = t8) : t8 = $[17];
|
|
1918
|
+
let node = t8;
|
|
1910
1919
|
if (as === "html") {
|
|
1911
|
-
let
|
|
1912
|
-
$[
|
|
1920
|
+
let t92;
|
|
1921
|
+
$[18] !== height ? (t92 = box({
|
|
1913
1922
|
height,
|
|
1914
1923
|
margin: 0
|
|
1915
|
-
}), $[
|
|
1916
|
-
let
|
|
1917
|
-
$[
|
|
1924
|
+
}), $[18] = height, $[19] = t92) : t92 = $[19];
|
|
1925
|
+
let t102;
|
|
1926
|
+
$[20] !== node || $[21] !== t92 ? (t102 = /* @__PURE__ */ jsx("body", { className: t92, children: node }), $[20] = node, $[21] = t92, $[22] = t102) : t102 = $[22], node = t102;
|
|
1918
1927
|
}
|
|
1919
|
-
let
|
|
1920
|
-
$[
|
|
1928
|
+
let t9;
|
|
1929
|
+
$[23] !== className || $[24] !== height || $[25] !== scheme || $[26] !== tone ? (t9 = root({
|
|
1921
1930
|
className,
|
|
1922
1931
|
height,
|
|
1923
1932
|
scheme,
|
|
1924
1933
|
tone
|
|
1925
|
-
}), $[
|
|
1926
|
-
let
|
|
1927
|
-
return $[
|
|
1934
|
+
}), $[23] = className, $[24] = height, $[25] = scheme, $[26] = tone, $[27] = t9) : t9 = $[27];
|
|
1935
|
+
let t10;
|
|
1936
|
+
return $[28] !== as || $[29] !== node || $[30] !== rest || $[31] !== t9 ? (t10 = /* @__PURE__ */ jsx(Box, { as, "data-ui": "Root", ...rest, className: t9, ref: handleRef, children: node }), $[28] = as, $[29] = node, $[30] = rest, $[31] = t9, $[32] = t10) : t10 = $[32], t10;
|
|
1928
1937
|
}
|
|
1929
1938
|
const DEFAULT_SELECT_ELEMENT = "select";
|
|
1930
1939
|
function Select(props) {
|
|
@@ -2374,6 +2383,7 @@ export {
|
|
|
2374
2383
|
PortalProvider,
|
|
2375
2384
|
Radio,
|
|
2376
2385
|
Root,
|
|
2386
|
+
RootProvider,
|
|
2377
2387
|
Select,
|
|
2378
2388
|
Selectable,
|
|
2379
2389
|
Skeleton,
|