@sanity/ui 4.0.0-static.22 → 4.0.0-static.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks-es/{refractor.js → Refractor.js} +1 -1
- package/dist/_chunks-es/{refractor.js.map → Refractor.js.map} +1 -1
- package/dist/css/index.css +1 -1
- package/dist/css/index.css.map +1 -1
- package/dist/index.js +33 -35
- package/dist/index.js.map +1 -1
- package/package.json +17 -17
- package/src/core/Root.tsx +1 -1
- package/src/core/RootProvider.tsx +5 -5
- package/src/core/__workshop__/index.ts +1 -1
- package/src/core/components/autocomplete/{autocomplete.tsx → Autocomplete.tsx} +9 -9
- package/src/core/components/autocomplete/__workshop__/index.ts +6 -6
- package/src/core/components/autocomplete/types.ts +1 -1
- package/src/core/components/breadcrumbs/{breadcrumbs.tsx → Breadcrumbs.tsx} +6 -6
- package/src/core/components/breadcrumbs/__workshop__/index.ts +1 -1
- package/src/core/components/dialog/{dialog.tsx → Dialog.tsx} +4 -4
- package/src/core/components/dialog/{dialogCard.tsx → DialogCard.tsx} +5 -5
- package/src/core/components/dialog/{dialogProvider.tsx → DialogProvider.tsx} +1 -1
- package/src/core/components/dialog/__workshop__/index.ts +10 -10
- package/src/core/components/dialog/useDialog.ts +3 -3
- package/src/core/components/hotkeys/{hotkeys.tsx → Hotkeys.tsx} +2 -2
- package/src/core/components/hotkeys/__workshop__/index.ts +1 -1
- package/src/core/components/menu/{menu.test.tsx → Menu.test.tsx} +1 -1
- package/src/core/components/menu/{menu.tsx → Menu.tsx} +3 -3
- package/src/core/components/menu/{menuButton.tsx → MenuButton.tsx} +3 -3
- package/src/core/components/menu/{menuGroup.tsx → MenuGroup.tsx} +6 -6
- package/src/core/components/menu/{menuItem.tsx → MenuItem.tsx} +5 -5
- package/src/core/components/menu/__workshop__/index.ts +16 -16
- package/src/core/components/menu/useMenu.ts +3 -3
- package/src/core/components/tab/{tab.tsx → Tab.tsx} +1 -1
- package/src/core/components/tab/{tabList.tsx → TabList.tsx} +2 -2
- package/src/core/components/tab/{tabPanel.tsx → TabPanel.tsx} +1 -1
- package/src/core/components/tab/__workshop__/index.ts +1 -1
- package/src/core/components/toast/{toast.test.tsx → Toast.test.tsx} +1 -1
- package/src/core/components/toast/{toast.tsx → Toast.tsx} +6 -6
- package/src/core/components/toast/{toastLayer.tsx → ToastLayer.tsx} +1 -1
- package/src/core/components/toast/{toastProvider.tsx → ToastProvider.tsx} +4 -4
- package/src/core/components/toast/__workshop__/index.ts +2 -2
- package/src/core/components/toast/useToast.ts +1 -1
- package/src/core/components/tree/{tree.tsx → Tree.tsx} +2 -2
- package/src/core/components/tree/{treeGroup.tsx → TreeGroup.tsx} +1 -1
- package/src/core/components/tree/{treeItem.tsx → TreeItem.tsx} +7 -7
- package/src/core/components/tree/__workshop__/index.ts +4 -4
- package/src/core/components/tree/useTree.ts +3 -3
- package/src/core/components/virtualList/{virtualList.tsx → VirtualList.tsx} +1 -1
- package/src/core/components/virtualList/__workshop__/index.ts +4 -4
- package/src/core/hooks/useMediaIndex/__workshop__/index.ts +1 -1
- package/src/core/index.ts +65 -62
- package/src/core/primitives/avatar/{avatar.tsx → Avatar.tsx} +2 -2
- package/src/core/primitives/avatar/{avatarCounter.tsx → AvatarCounter.tsx} +2 -2
- package/src/core/primitives/avatar/{avatarStack.tsx → AvatarStack.tsx} +3 -3
- package/src/core/primitives/avatar/__workshop__/index.ts +4 -4
- package/src/core/primitives/badge/{badge.test.tsx → Badge.test.tsx} +1 -1
- package/src/core/primitives/badge/{badge.tsx → Badge.tsx} +2 -2
- package/src/core/primitives/badge/__workshop__/index.ts +2 -2
- package/src/core/primitives/box/__workshop__/index.ts +2 -2
- package/src/core/primitives/button/{button.test.tsx → Button.test.tsx} +1 -1
- package/src/core/primitives/button/{button.tsx → Button.tsx} +3 -3
- package/src/core/primitives/button/__workshop__/index.ts +11 -11
- package/src/core/primitives/card/{card.tsx → Card.tsx} +5 -5
- package/src/core/primitives/card/{cardProvider.tsx → CardProvider.tsx} +1 -1
- package/src/core/primitives/card/__workshop__/index.ts +9 -9
- package/src/core/primitives/card/useCard.ts +3 -3
- package/src/core/primitives/checkbox/__workshop__/index.ts +4 -4
- package/src/core/primitives/code/{code.tsx → Code.tsx} +1 -1
- package/src/core/primitives/code/__workshop__/index.ts +2 -2
- package/src/core/primitives/container/{container.tsx → Container.tsx} +1 -1
- package/src/core/primitives/container/__workshop__/index.ts +1 -1
- package/src/core/primitives/flex/{flex.tsx → Flex.tsx} +1 -1
- package/src/core/primitives/flex/__workshop__/index.ts +2 -2
- package/src/core/primitives/grid/{grid.tsx → Grid.tsx} +1 -1
- package/src/core/primitives/grid/__workshop__/index.ts +1 -1
- package/src/core/primitives/heading/__workshop__/index.ts +2 -2
- package/src/core/primitives/inline/{inline.tsx → Inline.tsx} +1 -1
- package/src/core/primitives/inline/__workshop__/index.ts +1 -1
- package/src/core/primitives/kbd/{kbd.tsx → Kbd.tsx} +2 -2
- package/src/core/primitives/kbd/__workshop__/index.ts +1 -1
- package/src/core/primitives/label/__workshop__/index.ts +2 -2
- package/src/core/primitives/layer/{layer.test.tsx → Layer.test.tsx} +1 -1
- package/src/core/primitives/layer/{layer.tsx → Layer.tsx} +3 -3
- package/src/core/primitives/layer/{layerCard.tsx → LayerCard.tsx} +2 -2
- package/src/core/primitives/layer/{layerProvider.tsx → LayerProvider.tsx} +3 -3
- package/src/core/primitives/layer/__workshop__/index.ts +3 -3
- package/src/core/primitives/layer/useLayer.ts +3 -3
- package/src/core/primitives/popover/{popover.tsx → Popover.tsx} +4 -4
- package/src/core/primitives/popover/{popoverLayer.tsx → PopoverLayer.tsx} +3 -3
- package/src/core/primitives/radio/__workshop__/index.ts +2 -2
- package/src/core/primitives/select/{select.tsx → Select.tsx} +2 -2
- package/src/core/primitives/select/__workshop__/index.ts +2 -2
- package/src/core/primitives/selectable/{selectable.tsx → Selectable.tsx} +1 -1
- package/src/core/primitives/skeleton/{codeSkeleton.tsx → CodeSkeleton.tsx} +1 -1
- package/src/core/primitives/skeleton/{headingSkeleton.tsx → HeadingSkeleton.tsx} +1 -1
- package/src/core/primitives/skeleton/{labelSkeleton.tsx → LabelSkeleton.tsx} +1 -1
- package/src/core/primitives/skeleton/{textSkeleton.tsx → TextSkeleton.tsx} +1 -1
- package/src/core/primitives/skeleton/__workshop__/index.ts +2 -2
- package/src/core/primitives/spinner/{spinner.tsx → Spinner.tsx} +2 -2
- package/src/core/primitives/stack/{stack.tsx → Stack.tsx} +1 -1
- package/src/core/primitives/stack/__workshop__/index.ts +1 -1
- package/src/core/primitives/switch/{switch.tsx → Switch.tsx} +1 -1
- package/src/core/primitives/switch/__workshop__/index.ts +2 -2
- package/src/core/primitives/text/__workshop__/index.ts +3 -3
- package/src/core/primitives/textArea/__workshop__/index.ts +1 -1
- package/src/core/primitives/textInput/{textInput.tsx → TextInput.tsx} +3 -3
- package/src/core/primitives/textInput/__workshop__/index.ts +7 -7
- package/src/core/primitives/tooltip/{tooltip.test.tsx → Tooltip.test.tsx} +4 -4
- package/src/core/primitives/tooltip/{tooltip.tsx → Tooltip.tsx} +6 -5
- package/src/core/primitives/tooltip/{tooltipLayer.tsx → TooltipLayer.tsx} +2 -2
- package/src/core/primitives/tooltip/__workshop__/index.ts +4 -4
- package/src/core/primitives/tooltip/tooltipDelayGroup/{tooltipDelayGroupProvider.tsx → TooltipDelayGroupProvider.tsx} +1 -1
- package/src/core/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +3 -3
- package/src/core/utils/{errorBoundary.tsx → ErrorBoundary.tsx} +1 -1
- package/src/core/utils/boundaryElement/{boundaryElement.test.tsx → BoundaryElement.test.tsx} +1 -1
- package/src/core/utils/boundaryElement/{boundaryElementProvider.tsx → BoundaryElementProvider.tsx} +1 -1
- package/src/core/utils/boundaryElement/__workshop__/index.ts +1 -1
- package/src/core/utils/boundaryElement/useBoundaryElement.ts +3 -3
- package/src/core/utils/elementQuery/__workshop__/index.ts +1 -1
- package/src/core/utils/portal/{portal.test.tsx → Portal.test.tsx} +1 -1
- package/src/core/utils/portal/{portal.tsx → Portal.tsx} +1 -1
- package/src/core/utils/portal/{portalProvider.tsx → PortalProvider.tsx} +1 -1
- package/src/core/utils/portal/__workshop__/index.ts +1 -1
- package/src/core/utils/portal/usePortal.ts +3 -3
- package/src/css/_responsiveStyle.css.ts +2 -2
- package/src/css/primitives/card/__workshop__/index.ts +1 -1
- package/src/css/primitives/root/root.css.ts +1 -0
- package/src/core/primitives/tooltip/tooltipDelayGroup/index.ts +0 -4
- /package/src/core/__workshop__/{boundary.tsx → Boundary.tsx} +0 -0
- /package/src/core/components/autocomplete/{autocompleteOption.tsx → AutocompleteOption.tsx} +0 -0
- /package/src/core/components/autocomplete/__workshop__/{async.tsx → Async.tsx} +0 -0
- /package/src/core/components/autocomplete/__workshop__/{constrainedHeight.tsx → ConstrainedHeight.tsx} +0 -0
- /package/src/core/components/autocomplete/__workshop__/{custom.tsx → Custom.tsx} +0 -0
- /package/src/core/components/autocomplete/__workshop__/{example.tsx → Example.tsx} +0 -0
- /package/src/core/components/autocomplete/__workshop__/{focusAndBlur.tsx → FocusAndBlur.tsx} +0 -0
- /package/src/core/components/autocomplete/__workshop__/{fullscreen.tsx → Fullscreen.tsx} +0 -0
- /package/src/core/components/breadcrumbs/__workshop__/{example.tsx → Example.tsx} +0 -0
- /package/src/core/components/dialog/{dialogContext.ts → DialogContext.ts} +0 -0
- /package/src/core/components/dialog/__workshop__/{activate.tsx → Activate.tsx} +0 -0
- /package/src/core/components/dialog/__workshop__/{autoFocus.tsx → AutoFocus.tsx} +0 -0
- /package/src/core/components/dialog/__workshop__/{layering.tsx → Layering.tsx} +0 -0
- /package/src/core/components/dialog/__workshop__/{nested.tsx → Nested.tsx} +0 -0
- /package/src/core/components/dialog/__workshop__/{onScroll.tsx → OnScroll.tsx} +0 -0
- /package/src/core/components/dialog/__workshop__/{panes.tsx → Panes.tsx} +0 -0
- /package/src/core/components/dialog/__workshop__/{position.tsx → Position.tsx} +0 -0
- /package/src/core/components/dialog/__workshop__/{props.tsx → Props.tsx} +0 -0
- /package/src/core/components/dialog/__workshop__/{provider.tsx → Provider.tsx} +0 -0
- /package/src/core/components/dialog/__workshop__/{wrapped.tsx → Wrapped.tsx} +0 -0
- /package/src/core/components/hotkeys/__workshop__/{plain.tsx → Plain.tsx} +0 -0
- /package/src/core/components/menu/{menuContext.ts → MenuContext.ts} +0 -0
- /package/src/core/components/menu/{menuDivider.tsx → MenuDivider.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{asComponent.tsx → AsComponent.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{avatarMenu.tsx → AvatarMenu.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{closableMenuButton.tsx → ClosableMenuButton.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{constrainedInBoundary.tsx → ConstrainedInBoundary.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{customMenuItem.tsx → CustomMenuItem.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{customSelectedState.tsx → CustomSelectedState.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{disableFocusOnClose.tsx → DisableFocusOnClose.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{groups.tsx → Groups.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{menuButton.tsx → MenuButton.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{menuGroupRight.tsx → MenuGroupRight.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{nestedMenu.tsx → NestedMenu.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{onCloseMenuButton.tsx → OnCloseMenuButton.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{selectedItem.tsx → SelectedItem.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{shouldFocus.tsx → ShouldFocus.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{tones.tsx → Tones.tsx} +0 -0
- /package/src/core/components/menu/__workshop__/{withoutArrow.tsx → WithoutArrow.tsx} +0 -0
- /package/src/core/components/tab/__workshop__/{example.tsx → Example.tsx} +0 -0
- /package/src/core/components/toast/{toastContext.ts → ToastContext.ts} +0 -0
- /package/src/core/components/toast/__workshop__/{hook.tsx → Hook.tsx} +0 -0
- /package/src/core/components/toast/__workshop__/{toast.tsx → Toast.tsx} +0 -0
- /package/src/core/components/tree/{treeContext.ts → TreeContext.ts} +0 -0
- /package/src/core/components/tree/__workshop__/{basic.tsx → Basic.tsx} +0 -0
- /package/src/core/components/tree/__workshop__/{tabFromElement.tsx → TabFromElement.tsx} +0 -0
- /package/src/core/components/virtualList/__workshop__/{changingProps.tsx → ChangingProps.tsx} +0 -0
- /package/src/core/components/virtualList/__workshop__/{elementScroll.tsx → ElementScroll.tsx} +0 -0
- /package/src/core/components/virtualList/__workshop__/{infiniteList.tsx → InfiniteList.tsx} +0 -0
- /package/src/core/components/virtualList/__workshop__/{windowScrolll.tsx → WindowScrolll.tsx} +0 -0
- /package/src/core/hooks/useMediaIndex/__workshop__/{test.tsx → Test.tsx} +0 -0
- /package/src/core/primitives/arrow/{arrow.tsx → Arrow.tsx} +0 -0
- /package/src/core/primitives/avatar/__workshop__/{asButton.tsx → AsButton.tsx} +0 -0
- /package/src/core/primitives/avatar/__workshop__/{stack.tsx → Stack.tsx} +0 -0
- /package/src/core/primitives/avatar/__workshop__/{withinButton.tsx → WithinButton.tsx} +0 -0
- /package/src/core/primitives/avatar/__workshop__/{withinMenuItem.tsx → WithinMenuItem.tsx} +0 -0
- /package/src/core/primitives/badge/__workshop__/{props.tsx → Props.tsx} +0 -0
- /package/src/core/primitives/badge/__workshop__/{tones.tsx → Tones.tsx} +0 -0
- /package/src/core/primitives/box/{box.tsx → Box.tsx} +0 -0
- /package/src/core/primitives/box/__workshop__/{props.tsx → Props.tsx} +0 -0
- /package/src/core/primitives/box/__workshop__/{responsive.tsx → Responsive.tsx} +0 -0
- /package/src/core/primitives/button/__workshop__/{custom.tsx → Custom.tsx} +0 -0
- /package/src/core/primitives/button/__workshop__/{customIcons.tsx → CustomIcons.tsx} +0 -0
- /package/src/core/primitives/button/__workshop__/{disabled.tsx → Disabled.tsx} +0 -0
- /package/src/core/primitives/button/__workshop__/{mixedChildren.tsx → MixedChildren.tsx} +0 -0
- /package/src/core/primitives/button/__workshop__/{props.tsx → Props.tsx} +0 -0
- /package/src/core/primitives/button/__workshop__/{sanityUploadButton.tsx → SanityUploadButton.tsx} +0 -0
- /package/src/core/primitives/button/__workshop__/{stacked.tsx → Stacked.tsx} +0 -0
- /package/src/core/primitives/button/__workshop__/{styled1.tsx → Styled1.tsx} +0 -0
- /package/src/core/primitives/button/__workshop__/{styled2.tsx → Styled2.tsx} +0 -0
- /package/src/core/primitives/button/__workshop__/{textOverflow.tsx → TextOverflow.tsx} +0 -0
- /package/src/core/primitives/button/__workshop__/{uploadButton.tsx → UploadButton.tsx} +0 -0
- /package/src/core/primitives/card/{cardContext.ts → CardContext.ts} +0 -0
- /package/src/core/primitives/card/__workshop__/{asButton.tsx → AsButton.tsx} +0 -0
- /package/src/core/primitives/card/__workshop__/{asComponent.tsx → AsComponent.tsx} +0 -0
- /package/src/core/primitives/card/__workshop__/{checkered.tsx → Checkered.tsx} +0 -0
- /package/src/core/primitives/card/__workshop__/{interactive.tsx → Interactive.tsx} +0 -0
- /package/src/core/primitives/card/__workshop__/{listNavigation.tsx → ListNavigation.tsx} +0 -0
- /package/src/core/primitives/card/__workshop__/{props.tsx → Props.tsx} +0 -0
- /package/src/core/primitives/card/__workshop__/{selected.tsx → Selected.tsx} +0 -0
- /package/src/core/primitives/card/__workshop__/{styled.tsx → Styled.tsx} +0 -0
- /package/src/core/primitives/card/__workshop__/{tones.tsx → Tones.tsx} +0 -0
- /package/src/core/primitives/checkbox/{checkbox.tsx → Checkbox.tsx} +0 -0
- /package/src/core/primitives/checkbox/__workshop__/{example.tsx → Example.tsx} +0 -0
- /package/src/core/primitives/checkbox/__workshop__/{props.tsx → Props.tsx} +0 -0
- /package/src/core/primitives/checkbox/__workshop__/{readOnly.tsx → ReadOnly.tsx} +0 -0
- /package/src/core/primitives/checkbox/__workshop__/{tones.tsx → Tones.tsx} +0 -0
- /package/src/core/primitives/code/{refractor.tsx → Refractor.tsx} +0 -0
- /package/src/core/primitives/code/__workshop__/{opticalAlignment.tsx → OpticalAlignment.tsx} +0 -0
- /package/src/core/primitives/code/__workshop__/{props.tsx → Props.tsx} +0 -0
- /package/src/core/primitives/container/__workshop__/{example.tsx → Example.tsx} +0 -0
- /package/src/core/primitives/flex/__workshop__/{example.tsx → Example.tsx} +0 -0
- /package/src/core/primitives/flex/__workshop__/{gap.tsx → Gap.tsx} +0 -0
- /package/src/core/primitives/grid/__workshop__/{responsive.tsx → Responsive.tsx} +0 -0
- /package/src/core/primitives/heading/{heading.tsx → Heading.tsx} +0 -0
- /package/src/core/primitives/heading/__workshop__/{opticalAlignment.tsx → OpticalAlignment.tsx} +0 -0
- /package/src/core/primitives/heading/__workshop__/{plain.tsx → Plain.tsx} +0 -0
- /package/src/core/primitives/inline/__workshop__/{plain.tsx → Plain.tsx} +0 -0
- /package/src/core/primitives/kbd/__workshop__/{plain.tsx → Plain.tsx} +0 -0
- /package/src/core/primitives/label/{label.tsx → Label.tsx} +0 -0
- /package/src/core/primitives/label/__workshop__/{opticalAlignment.tsx → OpticalAlignment.tsx} +0 -0
- /package/src/core/primitives/label/__workshop__/{plain.tsx → Plain.tsx} +0 -0
- /package/src/core/primitives/layer/{layerContext.ts → LayerContext.ts} +0 -0
- /package/src/core/primitives/layer/__workshop__/{multipleRoots.tsx → MultipleRoots.tsx} +0 -0
- /package/src/core/primitives/layer/__workshop__/{nested.tsx → Nested.tsx} +0 -0
- /package/src/core/primitives/layer/__workshop__/{responsiveZOffset.tsx → ResponsiveZOffset.tsx} +0 -0
- /package/src/core/primitives/radio/{radio.tsx → Radio.tsx} +0 -0
- /package/src/core/primitives/radio/__workshop__/{example.tsx → Example.tsx} +0 -0
- /package/src/core/primitives/radio/__workshop__/{plain.tsx → Plain.tsx} +0 -0
- /package/src/core/primitives/select/__workshop__/{plain.tsx → Plain.tsx} +0 -0
- /package/src/core/primitives/select/__workshop__/{readOnly.tsx → ReadOnly.tsx} +0 -0
- /package/src/core/primitives/skeleton/{skeleton.tsx → Skeleton.tsx} +0 -0
- /package/src/core/primitives/skeleton/__workshop__/{delay.tsx → Delay.tsx} +0 -0
- /package/src/core/primitives/skeleton/__workshop__/{skeleton.tsx → Skeleton.tsx} +0 -0
- /package/src/core/primitives/spinner/{animatedSpinnerIcon.tsx → AnimatedSpinnerIcon.tsx} +0 -0
- /package/src/core/primitives/srOnly/{srOnly.tsx → SrOnly.tsx} +0 -0
- /package/src/core/primitives/stack/__workshop__/{plain.tsx → Plain.tsx} +0 -0
- /package/src/core/primitives/switch/__workshop__/{example.tsx → Example.tsx} +0 -0
- /package/src/core/primitives/switch/__workshop__/{props.tsx → Props.tsx} +0 -0
- /package/src/core/primitives/text/{text.tsx → Text.tsx} +0 -0
- /package/src/core/primitives/text/__workshop__/{colored.tsx → Colored.tsx} +0 -0
- /package/src/core/primitives/text/__workshop__/{example.tsx → Example.tsx} +0 -0
- /package/src/core/primitives/text/__workshop__/{opticalAlignment.tsx → OpticalAlignment.tsx} +0 -0
- /package/src/core/primitives/textArea/{textArea.tsx → TextArea.tsx} +0 -0
- /package/src/core/primitives/textArea/__workshop__/{plain.tsx → Plain.tsx} +0 -0
- /package/src/core/primitives/textInput/__workshop__/{clearButton.tsx → ClearButton.tsx} +0 -0
- /package/src/core/primitives/textInput/__workshop__/{customValidity.tsx → CustomValidity.tsx} +0 -0
- /package/src/core/primitives/textInput/__workshop__/{plain.tsx → Plain.tsx} +0 -0
- /package/src/core/primitives/textInput/__workshop__/{readOnly.tsx → ReadOnly.tsx} +0 -0
- /package/src/core/primitives/textInput/__workshop__/{states.tsx → States.tsx} +0 -0
- /package/src/core/primitives/textInput/__workshop__/{tones.tsx → Tones.tsx} +0 -0
- /package/src/core/primitives/textInput/__workshop__/{typed.tsx → Typed.tsx} +0 -0
- /package/src/core/primitives/tooltip/__workshop__/{customPortal.tsx → CustomPortal.tsx} +0 -0
- /package/src/core/primitives/tooltip/__workshop__/{overflowingBoundary.tsx → OverflowingBoundary.tsx} +0 -0
- /package/src/core/primitives/tooltip/__workshop__/{props.tsx → Props.tsx} +0 -0
- /package/src/core/primitives/tooltip/__workshop__/{resizableBoundary.tsx → ResizableBoundary.tsx} +0 -0
- /package/src/core/primitives/tooltip/tooltipDelayGroup/{tooltipDelayGroupContext.tsx → TooltipDelayGroupContext.tsx} +0 -0
- /package/src/core/utils/boundaryElement/{boundaryElementContext.ts → BoundaryElementContext.ts} +0 -0
- /package/src/core/utils/boundaryElement/__workshop__/{plain.tsx → Plain.tsx} +0 -0
- /package/src/core/utils/elementQuery/{elementQuery.tsx → ElementQuery.tsx} +0 -0
- /package/src/core/utils/elementQuery/__workshop__/{customMedia.tsx → CustomMedia.tsx} +0 -0
- /package/src/core/utils/portal/{portalContext.ts → PortalContext.ts} +0 -0
- /package/src/core/utils/portal/__workshop__/{named.tsx → Named.tsx} +0 -0
- /package/src/css/primitives/card/__workshop__/{color.tsx → Color.tsx} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { SpinnerIcon, CloseIcon, ChevronDownIcon, ChevronRightIcon, ToggleArrowRightIcon, CheckmarkIcon, RemoveIcon } from "@sanity/icons";
|
|
3
|
-
import { useState, isValidElement, useDebugValue, useSyncExternalStore, createContext,
|
|
3
|
+
import { useState, isValidElement, useDebugValue, useSyncExternalStore, createContext, use, useRef, useImperativeHandle, useEffect, useMemo, useCallback, cloneElement, useReducer, Children, Fragment as Fragment$1, startTransition, useContext, useId, lazy, Suspense, useLayoutEffect, Component } from "react";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
5
|
import { box, text, textOverflow, animatedSpinnerIcon, spinner, button, buttonLoadingBox, _arrow, vars, _arrowSvg, _arrowStrokeMask, _arrowStroke, _arrowShape, card, BREAKPOINTS, popoverCard, popover, _selectable, stack, textInput, textInputPrefix, textInputElement, _inputElement, _inputPresentation, textInputSuffix, breadcrumbs, container as container$1, dialogCard, dialogHeader, dialogContent, dialogScrollerShadowTop, dialogScroller, dialogScrollerShadowBottom, dialogFooter, dialog, dialogContainer, kbd, menu, menuDivider, toast, toastLayer, treeItem, label, avatar, avatarArrow, avatarInitials, avatarImage, avatarImageOutline, avatarCounter, avatarStack, badge, checkbox, checkboxInput, checkboxPresentation, code, heading, radio, radioInput, radioPresentation, select, selectPresentation, skeleton, codeSkeleton, headingSkeleton, labelSkeleton, textSkeleton, srOnly, _switch, _switchElement, _switchPresentation, _switchTrack, _switchThumb, textArea, tooltip, root } from "@sanity/ui/css";
|
|
6
6
|
import { isValidElementType } from "react-is";
|
|
@@ -479,7 +479,7 @@ const BoundaryElementContext = createGlobalScopedContext("@sanity/ui/v3/boundary
|
|
|
479
479
|
element: null
|
|
480
480
|
};
|
|
481
481
|
function useBoundaryElement() {
|
|
482
|
-
const value =
|
|
482
|
+
const value = use(BoundaryElementContext);
|
|
483
483
|
if (value && (!isRecord(value) || value.version !== 0))
|
|
484
484
|
throw new Error("useBoundaryElement(): the context value is not compatible");
|
|
485
485
|
return value || DEFAULT_VALUE;
|
|
@@ -506,7 +506,7 @@ function CardProvider(props) {
|
|
|
506
506
|
return $[4] !== children || $[5] !== t0 ? (t2 = /* @__PURE__ */ jsx(CardContext.Provider, { value: t0, children }), $[4] = children, $[5] = t0, $[6] = t2) : t2 = $[6], t2;
|
|
507
507
|
}
|
|
508
508
|
function useCard() {
|
|
509
|
-
const card2 =
|
|
509
|
+
const card2 = use(CardContext);
|
|
510
510
|
if (!card2)
|
|
511
511
|
throw new Error("useCard(): missing context value");
|
|
512
512
|
return card2;
|
|
@@ -521,7 +521,7 @@ const defaultContextValue = {
|
|
|
521
521
|
}
|
|
522
522
|
}, PortalContext = createGlobalScopedContext(key, defaultContextValue);
|
|
523
523
|
function usePortal() {
|
|
524
|
-
const value =
|
|
524
|
+
const value = use(PortalContext);
|
|
525
525
|
if (!value)
|
|
526
526
|
throw new Error("usePortal(): missing context value");
|
|
527
527
|
if (!isRecord(value) || value.version !== 0)
|
|
@@ -551,14 +551,12 @@ function getLayerContext(contextValue) {
|
|
|
551
551
|
}
|
|
552
552
|
const LayerContext = createGlobalScopedContext("@sanity/ui/v3/layer", null);
|
|
553
553
|
function useLayer() {
|
|
554
|
-
const
|
|
554
|
+
const value = use(LayerContext);
|
|
555
555
|
if (!value)
|
|
556
556
|
throw new Error("useLayer(): missing context value");
|
|
557
557
|
try {
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
} catch (t0) {
|
|
561
|
-
const err = t0;
|
|
558
|
+
return getLayerContext(value);
|
|
559
|
+
} catch (err) {
|
|
562
560
|
throw err instanceof Error ? new Error(`useLayer(): ${err.message}`) : new Error(`useLayer(): ${err}`);
|
|
563
561
|
}
|
|
564
562
|
}
|
|
@@ -757,7 +755,7 @@ function Card(props) {
|
|
|
757
755
|
tone: t5,
|
|
758
756
|
...rest
|
|
759
757
|
} = t0, $[0] = t0, $[1] = className, $[2] = pressed, $[3] = rest, $[4] = schemeProp, $[5] = selected, $[6] = style, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = t4, $[11] = t5) : (className = $[1], pressed = $[2], rest = $[3], schemeProp = $[4], selected = $[5], style = $[6], t1 = $[7], t2 = $[8], t3 = $[9], t4 = $[10], t5 = $[11]);
|
|
760
|
-
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 =
|
|
758
|
+
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 = use(CardContext), tone = toneProp === "inherit" ? parent?.tone : toneProp, scheme = schemeProp === void 0 ? parent?.scheme : schemeProp, t6 = scheme === parent?.scheme ? void 0 : scheme;
|
|
761
759
|
let t7;
|
|
762
760
|
$[12] !== className || $[13] !== t6 || $[14] !== tone ? (t7 = card({
|
|
763
761
|
className,
|
|
@@ -882,7 +880,7 @@ function LayerProvider(props) {
|
|
|
882
880
|
const $ = c(19), {
|
|
883
881
|
children,
|
|
884
882
|
zOffset: t0
|
|
885
|
-
} = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue =
|
|
883
|
+
} = props, zOffsetProp = t0 === void 0 ? 0 : t0, parentContextValue = use(LayerContext);
|
|
886
884
|
let t1;
|
|
887
885
|
$[0] !== parentContextValue ? (t1 = parentContextValue && getLayerContext(parentContextValue), $[0] = parentContextValue, $[1] = t1) : t1 = $[1];
|
|
888
886
|
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;
|
|
@@ -1771,7 +1769,7 @@ const DialogContext = createGlobalScopedContext("@sanity/ui/v3/dialog", {
|
|
|
1771
1769
|
version: 0
|
|
1772
1770
|
});
|
|
1773
1771
|
function useDialog() {
|
|
1774
|
-
return
|
|
1772
|
+
return use(DialogContext);
|
|
1775
1773
|
}
|
|
1776
1774
|
const DEFAULT_DIALOG_ELEMENT = "div";
|
|
1777
1775
|
function Dialog(props) {
|
|
@@ -2300,7 +2298,7 @@ function MenuDivider(props) {
|
|
|
2300
2298
|
return $[6] !== Element2 || $[7] !== rest || $[8] !== t2 ? (t3 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t2 }), $[6] = Element2, $[7] = rest, $[8] = t2, $[9] = t3) : t3 = $[9], t3;
|
|
2301
2299
|
}
|
|
2302
2300
|
function useMenu() {
|
|
2303
|
-
const value =
|
|
2301
|
+
const value = use(MenuContext);
|
|
2304
2302
|
if (!value)
|
|
2305
2303
|
throw new Error("useMenu(): missing context value");
|
|
2306
2304
|
if (!isRecord(value) || value.version !== 0)
|
|
@@ -3021,7 +3019,7 @@ function Tree(props) {
|
|
|
3021
3019
|
return $[35] !== contextValue || $[36] !== t20 ? (t21 = /* @__PURE__ */ jsx(TreeContext.Provider, { value: contextValue, children: t20 }), $[35] = contextValue, $[36] = t20, $[37] = t21) : t21 = $[37], t21;
|
|
3022
3020
|
}
|
|
3023
3021
|
function useTree() {
|
|
3024
|
-
const tree =
|
|
3022
|
+
const tree = use(TreeContext);
|
|
3025
3023
|
if (!tree)
|
|
3026
3024
|
throw new Error("Tree: missing context value");
|
|
3027
3025
|
return tree;
|
|
@@ -3544,7 +3542,7 @@ function Checkbox(props) {
|
|
|
3544
3542
|
t11
|
|
3545
3543
|
] }), $[25] = style, $[26] = t10, $[27] = t5, $[28] = t12) : t12 = $[28], t12;
|
|
3546
3544
|
}
|
|
3547
|
-
const LazyRefractor = lazy(() => import("./_chunks-es/
|
|
3545
|
+
const LazyRefractor = lazy(() => import("./_chunks-es/Refractor.js")), DEFAULT_CODE_ELEMENT = "pre";
|
|
3548
3546
|
function Code(props) {
|
|
3549
3547
|
const $ = c(25), t0 = props;
|
|
3550
3548
|
let children, className, languageProp, rest, t1, t2, t3;
|
|
@@ -3939,27 +3937,8 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
|
|
|
3939
3937
|
"right-start": ["right", "right-end", "left-start", "top-start", "bottom-start"],
|
|
3940
3938
|
"right-end": ["right", "right-start", "left-end", "top-end", "bottom-end"]
|
|
3941
3939
|
}, TooltipDelayGroupContext = createGlobalScopedContext("@sanity/ui/v3/tooltipDelayGroup", null);
|
|
3942
|
-
function TooltipDelayGroupProvider(props) {
|
|
3943
|
-
const $ = c(9), {
|
|
3944
|
-
children,
|
|
3945
|
-
delay
|
|
3946
|
-
} = 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;
|
|
3947
|
-
let t0;
|
|
3948
|
-
const t1 = isGroupActive ? 1 : openDelay;
|
|
3949
|
-
let t2;
|
|
3950
|
-
$[0] !== closeDelay || $[1] !== openTooltipId || $[2] !== setIsGroupActive || $[3] !== setOpenTooltipId || $[4] !== t1 ? (t2 = {
|
|
3951
|
-
setIsGroupActive,
|
|
3952
|
-
openTooltipId,
|
|
3953
|
-
setOpenTooltipId,
|
|
3954
|
-
openDelay: t1,
|
|
3955
|
-
closeDelay
|
|
3956
|
-
}, $[0] = closeDelay, $[1] = openTooltipId, $[2] = setIsGroupActive, $[3] = setOpenTooltipId, $[4] = t1, $[5] = t2) : t2 = $[5], t0 = t2;
|
|
3957
|
-
const value = t0;
|
|
3958
|
-
let t3;
|
|
3959
|
-
return $[6] !== children || $[7] !== value ? (t3 = /* @__PURE__ */ jsx(TooltipDelayGroupContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t3) : t3 = $[8], t3;
|
|
3960
|
-
}
|
|
3961
3940
|
function useTooltipDelayGroup() {
|
|
3962
|
-
return
|
|
3941
|
+
return use(TooltipDelayGroupContext);
|
|
3963
3942
|
}
|
|
3964
3943
|
function TooltipLayer(props) {
|
|
3965
3944
|
const $ = c(50);
|
|
@@ -4171,6 +4150,25 @@ function useCloseOnMouseLeave(t0) {
|
|
|
4171
4150
|
let t3;
|
|
4172
4151
|
$[7] !== isInsideGroup || $[8] !== showTooltip ? (t3 = [isInsideGroup, showTooltip], $[7] = isInsideGroup, $[8] = showTooltip, $[9] = t3) : t3 = $[9], useEffect(t2, t3);
|
|
4173
4152
|
}
|
|
4153
|
+
function TooltipDelayGroupProvider(props) {
|
|
4154
|
+
const $ = c(9), {
|
|
4155
|
+
children,
|
|
4156
|
+
delay
|
|
4157
|
+
} = 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;
|
|
4158
|
+
let t0;
|
|
4159
|
+
const t1 = isGroupActive ? 1 : openDelay;
|
|
4160
|
+
let t2;
|
|
4161
|
+
$[0] !== closeDelay || $[1] !== openTooltipId || $[2] !== setIsGroupActive || $[3] !== setOpenTooltipId || $[4] !== t1 ? (t2 = {
|
|
4162
|
+
setIsGroupActive,
|
|
4163
|
+
openTooltipId,
|
|
4164
|
+
setOpenTooltipId,
|
|
4165
|
+
openDelay: t1,
|
|
4166
|
+
closeDelay
|
|
4167
|
+
}, $[0] = closeDelay, $[1] = openTooltipId, $[2] = setIsGroupActive, $[3] = setOpenTooltipId, $[4] = t1, $[5] = t2) : t2 = $[5], t0 = t2;
|
|
4168
|
+
const value = t0;
|
|
4169
|
+
let t3;
|
|
4170
|
+
return $[6] !== children || $[7] !== value ? (t3 = /* @__PURE__ */ jsx(TooltipDelayGroupContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t3) : t3 = $[8], t3;
|
|
4171
|
+
}
|
|
4174
4172
|
function BoundaryElementProvider(props) {
|
|
4175
4173
|
const $ = c(5), {
|
|
4176
4174
|
children,
|