@sanity/ui 3.3.6 → 3.4.1
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/tabList.js +16 -16
- package/dist/_chunks/tabList.js.map +1 -1
- package/dist/_chunks/tabList.mjs +14 -12
- package/dist/_chunks/tabList.mjs.map +1 -1
- package/dist/_chunks/useTheme.d.mts +5 -5
- package/dist/_chunks/useTheme.d.ts +5 -5
- package/dist/index.d.mts +6 -6
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/_chunks/tabList.mjs
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { X as getTheme_v2, Z as createColorTheme$1, a as parseColor$1, c as rgbToHex$1, d as screen$1, f as multiply$1, l as rgbToHsl$1, n as buildTheme, o as hexToRgb$1, r as rgba$1, s as hslToRgb$1, t as getScopedTheme } from "./theme.mjs";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { ChevronRightIcon, CloseIcon, SpinnerIcon } from "@sanity/icons";
|
|
4
3
|
import { Children, cloneElement, createContext, forwardRef, isValidElement, useCallback, useContext, useDebugValue, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
5
4
|
import { isValidElementType } from "react-is";
|
|
6
5
|
import { ThemeProvider, css, keyframes, styled, useTheme } from "styled-components";
|
|
7
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { SpinnerIcon } from "@sanity/icons/Spinner";
|
|
8
8
|
import { useEffectEvent } from "use-effect-event";
|
|
9
9
|
import { ResizeObserver } from "@juggle/resize-observer";
|
|
10
10
|
import { arrow, autoPlacement, autoUpdate, detectOverflow, flip, hide, offset, shift, useFloating } from "@floating-ui/react-dom";
|
|
11
11
|
import { AnimatePresence, motion } from "motion/react";
|
|
12
12
|
import { createPortal } from "react-dom";
|
|
13
|
+
import { CloseIcon } from "@sanity/icons/Close";
|
|
14
|
+
import { ChevronRightIcon } from "@sanity/icons/ChevronRight";
|
|
13
15
|
/**
|
|
14
16
|
* @public
|
|
15
17
|
* @deprecated Use `createColorTheme` from `@sanity/ui/theme` instead.
|
|
@@ -808,7 +810,7 @@ FlexComponent.displayName = "ForwardRef(Flex)";
|
|
|
808
810
|
*/
|
|
809
811
|
const Flex = FlexComponent, rotate = keyframes`from{transform:rotate(0deg);}to{transform:rotate(360deg);}`, StyledSpinner = styled(Text).withConfig({
|
|
810
812
|
displayName: "StyledSpinner",
|
|
811
|
-
componentId: "sc-
|
|
813
|
+
componentId: "sc-6ky9bg-0"
|
|
812
814
|
})`& > span > svg{animation:${rotate} 500ms linear infinite;}`, Spinner = forwardRef(function(props, ref) {
|
|
813
815
|
let $ = c(4), t0;
|
|
814
816
|
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(SpinnerIcon, {}), $[0] = t0) : t0 = $[0];
|
|
@@ -2203,34 +2205,34 @@ StackComponent.displayName = "ForwardRef(Stack)";
|
|
|
2203
2205
|
*/
|
|
2204
2206
|
const Stack = StackComponent, CLEAR_BUTTON_BOX_STYLE = { zIndex: 2 }, StyledTextInput = /* @__PURE__ */ styled(Card).attrs({ forwardedAs: "span" }).withConfig({
|
|
2205
2207
|
displayName: "StyledTextInput",
|
|
2206
|
-
componentId: "sc-
|
|
2208
|
+
componentId: "sc-ab08rw-0"
|
|
2207
2209
|
})(textInputRootStyle), InputRoot = styled.span.withConfig({
|
|
2208
2210
|
displayName: "InputRoot",
|
|
2209
|
-
componentId: "sc-
|
|
2211
|
+
componentId: "sc-ab08rw-1"
|
|
2210
2212
|
})`flex:1;min-width:0;display:block;position:relative;`, Prefix = styled(Card).attrs({ forwardedAs: "span" }).withConfig({
|
|
2211
2213
|
displayName: "Prefix",
|
|
2212
|
-
componentId: "sc-
|
|
2214
|
+
componentId: "sc-ab08rw-2"
|
|
2213
2215
|
})`border-top-right-radius:0;border-bottom-right-radius:0;& > span{display:block;margin:-1px;}`, Suffix = styled(Card).attrs({ forwardedAs: "span" }).withConfig({
|
|
2214
2216
|
displayName: "Suffix",
|
|
2215
|
-
componentId: "sc-
|
|
2217
|
+
componentId: "sc-ab08rw-3"
|
|
2216
2218
|
})`border-top-left-radius:0;border-bottom-left-radius:0;& > span{display:block;margin:-1px;}`, Input = /* @__PURE__ */ styled.input.withConfig({
|
|
2217
2219
|
displayName: "Input",
|
|
2218
|
-
componentId: "sc-
|
|
2220
|
+
componentId: "sc-ab08rw-4"
|
|
2219
2221
|
})(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation = /* @__PURE__ */ styled.span.withConfig({
|
|
2220
2222
|
displayName: "Presentation",
|
|
2221
|
-
componentId: "sc-
|
|
2223
|
+
componentId: "sc-ab08rw-5"
|
|
2222
2224
|
})(responsiveRadiusStyle, textInputRepresentationStyle), LeftBox = styled(Box).withConfig({
|
|
2223
2225
|
displayName: "LeftBox",
|
|
2224
|
-
componentId: "sc-
|
|
2226
|
+
componentId: "sc-ab08rw-6"
|
|
2225
2227
|
})`position:absolute;top:0;left:0;`, RightBox = styled(Box).withConfig({
|
|
2226
2228
|
displayName: "RightBox",
|
|
2227
|
-
componentId: "sc-
|
|
2229
|
+
componentId: "sc-ab08rw-7"
|
|
2228
2230
|
})`position:absolute;top:0;right:0;`, RightCard = styled(Card).withConfig({
|
|
2229
2231
|
displayName: "RightCard",
|
|
2230
|
-
componentId: "sc-
|
|
2232
|
+
componentId: "sc-ab08rw-8"
|
|
2231
2233
|
})`background-color:transparent;position:absolute;top:0;right:0;`, TextInputClearButton = /* @__PURE__ */ styled(Button).withConfig({
|
|
2232
2234
|
displayName: "TextInputClearButton",
|
|
2233
|
-
componentId: "sc-
|
|
2235
|
+
componentId: "sc-ab08rw-9"
|
|
2234
2236
|
})({ "&:not([hidden])": { display: "block" } }), TextInput = forwardRef(function(props, forwardedRef) {
|
|
2235
2237
|
let $ = c(93), IconComponent, IconRightComponent, __unstable_disableFocusRing, clearButton, customValidity, gap, onClear, prefix, readOnly, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, weight;
|
|
2236
2238
|
$[0] === props ? (IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], clearButton = $[4], customValidity = $[5], gap = $[6], onClear = $[7], prefix = $[8], readOnly = $[9], restProps = $[10], suffix = $[11], t0 = $[12], t1 = $[13], t2 = $[14], t3 = $[15], t4 = $[16], t5 = $[17], t6 = $[18], weight = $[19]) : ({__unstable_disableFocusRing, border: t0, clearButton, disabled: t1, fontSize: t2, gap, icon: IconComponent, iconRight: IconRightComponent, onClear, padding: t3, prefix, radius: t4, readOnly, space: t5, suffix, customValidity, type: t6, weight, ...restProps} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = clearButton, $[5] = customValidity, $[6] = gap, $[7] = onClear, $[8] = prefix, $[9] = readOnly, $[10] = restProps, $[11] = suffix, $[12] = t0, $[13] = t1, $[14] = t2, $[15] = t3, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = weight);
|