@sanity/ui 4.0.0-next.2 → 4.0.0-next.3
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/getScopedTheme.js → getScopedTheme-CqaSCfTH.js} +1 -1
- package/dist/getScopedTheme-CqaSCfTH.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{_chunks/refractor.js → refractor-CC48DwHi.js} +1 -1
- package/dist/refractor-CC48DwHi.js.map +1 -0
- package/dist/{_chunks/rgba.d.cts → rgba-LmTDhX0u.d.ts} +1 -1
- package/dist/rgba-LmTDhX0u.d.ts.map +1 -0
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +1 -1
- package/package.json +5 -20
- package/dist/_chunks/getScopedTheme.cjs +0 -4043
- package/dist/_chunks/getScopedTheme.cjs.map +0 -1
- package/dist/_chunks/getScopedTheme.js.map +0 -1
- package/dist/_chunks/refractor.cjs +0 -18
- package/dist/_chunks/refractor.cjs.map +0 -1
- package/dist/_chunks/refractor.js.map +0 -1
- package/dist/_chunks/rgba.d.cts.map +0 -1
- package/dist/_chunks/rgba.d.ts +0 -929
- package/dist/_chunks/rgba.d.ts.map +0 -1
- package/dist/index.cjs +0 -6243
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -2332
- package/dist/index.d.cts.map +0 -1
- package/dist/theme.cjs +0 -54
- package/dist/theme.cjs.map +0 -1
- package/dist/theme.d.cts +0 -278
- package/dist/theme.d.cts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ThemeColorMutedTone, At as ThemeColorSchemeKey$1, B as ThemeColorBase, C as ThemeColorSpotKey, Ct as ThemeColorSyntax$1, D as ThemeColorSelectableState, Dt as ThemeColorCardToneKey, E as ThemeColorSelectable, Et as ThemeColorButtonModeKey$1, F as ThemeColorCardState, H as ThemeColorToneKey, Ht as HSL$1, I as ThemeColorButton, L as ThemeColorButtonState, M as ThemeColorInputState, Mt as ThemeColorStateToneKey, N as ThemeColorInputStates, O as ThemeColorSelectableStates, P as ThemeColorCard, R as ThemeColorButtonStates, S as ThemeColorSpot, St as ThemeFonts$1, T as ThemeColorSolidTone, U as ThemeColorGenericState, Ut as RGB$1, V as ThemeColorName, W as ThemeAvatar, _ as Theme_v2, _t as ThemeFont$1, a as rgbToHex$1, b as ThemeColorScheme, bt as ThemeFontWeight$1, c as screen$1, d as ThemeColorBuilderOpts, f as createColorTheme$1, ft as ThemeStyles, g as Theme$1, gt as ThemeLayer$1, ht as ThemeShadow$1, i as hslToRgb$1, j as ThemeColorInput, k as ThemeColorMuted, l as multiply$1, m as RootTheme$1, mt as ThemeBoxShadow, n as parseColor$1, o as rgbToHsl$1, p as BaseTheme$1, pt as CSSObject, r as hexToRgb$1, t as rgba$1, u as PartialThemeColorBuilderOpts, v as ThemeInput, vt as ThemeFontKey$1, w as ThemeColorSolid, wt as ThemeColorAvatarColorKey, x as ThemeColorSchemes, xt as ThemeFontWeightKey$1, y as ThemeColor, yt as ThemeFontSize$1, z as ThemeColorButtonTones } from "./
|
|
1
|
+
import { A as ThemeColorMutedTone, At as ThemeColorSchemeKey$1, B as ThemeColorBase, C as ThemeColorSpotKey, Ct as ThemeColorSyntax$1, D as ThemeColorSelectableState, Dt as ThemeColorCardToneKey, E as ThemeColorSelectable, Et as ThemeColorButtonModeKey$1, F as ThemeColorCardState, H as ThemeColorToneKey, Ht as HSL$1, I as ThemeColorButton, L as ThemeColorButtonState, M as ThemeColorInputState, Mt as ThemeColorStateToneKey, N as ThemeColorInputStates, O as ThemeColorSelectableStates, P as ThemeColorCard, R as ThemeColorButtonStates, S as ThemeColorSpot, St as ThemeFonts$1, T as ThemeColorSolidTone, U as ThemeColorGenericState, Ut as RGB$1, V as ThemeColorName, W as ThemeAvatar, _ as Theme_v2, _t as ThemeFont$1, a as rgbToHex$1, b as ThemeColorScheme, bt as ThemeFontWeight$1, c as screen$1, d as ThemeColorBuilderOpts, f as createColorTheme$1, ft as ThemeStyles, g as Theme$1, gt as ThemeLayer$1, ht as ThemeShadow$1, i as hslToRgb$1, j as ThemeColorInput, k as ThemeColorMuted, l as multiply$1, m as RootTheme$1, mt as ThemeBoxShadow, n as parseColor$1, o as rgbToHsl$1, p as BaseTheme$1, pt as CSSObject, r as hexToRgb$1, t as rgba$1, u as PartialThemeColorBuilderOpts, v as ThemeInput, vt as ThemeFontKey$1, w as ThemeColorSolid, wt as ThemeColorAvatarColorKey, x as ThemeColorSchemes, xt as ThemeFontWeightKey$1, y as ThemeColor, yt as ThemeFontSize$1, z as ThemeColorButtonTones } from "./rgba-LmTDhX0u.js";
|
|
2
2
|
import { Component, ElementType as ElementType$1, HTMLProps, PropsWithChildren, ReactNode, Ref } from "react";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as createColorTheme$1, c as multiply$1, d as hexToRgb$1, f as hslToRgb$1, i as getTheme_v2, l as rgba$1, m as rgbToHsl$1, o as buildTheme, p as rgbToHex$1, s as screen$1, t as getScopedTheme, u as parseColor$1 } from "./
|
|
2
|
+
import { a as createColorTheme$1, c as multiply$1, d as hexToRgb$1, f as hslToRgb$1, i as getTheme_v2, l as rgba$1, m as rgbToHsl$1, o as buildTheme, p as rgbToHex$1, s as screen$1, t as getScopedTheme, u as parseColor$1 } from "./getScopedTheme-CqaSCfTH.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { ChevronDownIcon } from "@sanity/icons/ChevronDown";
|
|
5
5
|
import { Children, Component, Fragment, Suspense, cloneElement, createContext, forwardRef, isValidElement, lazy, startTransition, useContext, useDebugValue, useEffect, useId, useImperativeHandle, useLayoutEffect, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
@@ -5234,7 +5234,7 @@ function codeSyntaxHighlightingStyle({ theme }) {
|
|
|
5234
5234
|
function codeBaseStyle() {
|
|
5235
5235
|
return css`color:var(--card-code-fg-color);& code{font-family:inherit;&.refractor .token{${codeSyntaxHighlightingStyle}}}& a{color:inherit;text-decoration:underline;border-radius:1px;}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`;
|
|
5236
5236
|
}
|
|
5237
|
-
const LazyRefractor = lazy(() => import("./
|
|
5237
|
+
const LazyRefractor = lazy(() => import("./refractor-CC48DwHi.js")), StyledCode = /* @__PURE__ */ styled.pre.withConfig({
|
|
5238
5238
|
displayName: "StyledCode",
|
|
5239
5239
|
componentId: "sc-t18qc-0"
|
|
5240
5240
|
})(codeBaseStyle, responsiveCodeFontStyle), Code = forwardRef(function Code(props, ref) {
|