sanity 6.6.0 → 6.6.1-next.2

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.
@@ -10899,7 +10899,9 @@ declare const PreviewCard: import("react").ForwardRefExoticComponent<Omit<Omit<a
10899
10899
  */
10900
10900
  declare const ReferenceInputPreviewCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<any, "as" | keyof import("@sanity/ui").CardOwnProps> & import("@sanity/ui").CardOwnProps & {
10901
10901
  as?: ElementType | undefined;
10902
- } & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & import("react").RefAttributes<HTMLDivElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<Omit<any, "as" | keyof import("@sanity/ui").CardOwnProps> & import("@sanity/ui").CardOwnProps & {
10902
+ } & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & import("react").RefAttributes<HTMLDivElement>, never> & Partial<Pick<Omit<Omit<any, "as" | keyof import("@sanity/ui").CardOwnProps> & import("@sanity/ui").CardOwnProps & {
10903
+ as?: ElementType | undefined;
10904
+ } & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & import("react").RefAttributes<HTMLDivElement>, never>>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<Omit<any, "as" | keyof import("@sanity/ui").CardOwnProps> & import("@sanity/ui").CardOwnProps & {
10903
10905
  as?: ElementType | undefined;
10904
10906
  } & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
10905
10907
  /**
@@ -11181,7 +11183,7 @@ interface AvatarSkeletonProps {
11181
11183
  * A loading skeleton element representing a user avatar
11182
11184
  * @beta
11183
11185
  */
11184
- declare const AvatarSkeleton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("@sanity/ui").SkeletonProps & Omit<import("react").HTMLProps<HTMLDivElement>, "height">, "ref"> & import("react").RefAttributes<HTMLDivElement>, AvatarSkeletonProps>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("@sanity/ui").SkeletonProps & Omit<import("react").HTMLProps<HTMLDivElement>, "height">, "ref"> & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
11186
+ declare const AvatarSkeleton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<import("@sanity/ui").SkeletonProps & Omit<import("react").HTMLProps<HTMLDivElement>, "height">, "ref"> & import("react").RefAttributes<HTMLDivElement>, "$size"> & AvatarSkeletonProps, never> & Partial<Pick<import("styled-components").FastOmit<Omit<import("@sanity/ui").SkeletonProps & Omit<import("react").HTMLProps<HTMLDivElement>, "height">, "ref"> & import("react").RefAttributes<HTMLDivElement>, "$size"> & AvatarSkeletonProps, never>>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("@sanity/ui").SkeletonProps & Omit<import("react").HTMLProps<HTMLDivElement>, "height">, "ref"> & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
11185
11187
  /**
11186
11188
  * @hidden
11187
11189
  * @beta */
@@ -15283,7 +15285,7 @@ interface Props$2 {
15283
15285
  /**
15284
15286
  * @internal
15285
15287
  */
15286
- declare const FormCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Props$2>> & string;
15288
+ declare const FormCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$area"> & Props$2, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$area"> & Props$2, never>>> & string;
15287
15289
  interface PropsEnabled extends PropsWithChildren {
15288
15290
  enabled: true;
15289
15291
  formState: FormState;
@@ -35936,29 +35936,27 @@ const FileButton = /* @__PURE__ */ styled(Button$1).attrs({
35936
35936
  }
35937
35937
  `;
35938
35938
  }), FileInputButton = forwardRef(function(props2, forwardedRef) {
35939
- const $ = c(27);
35940
- let accept, capture, disabled, icon, idProp, multiple, onSelect, rest, text;
35939
+ const $ = c(23);
35940
+ let accept, capture, disabled, idProp, multiple, onSelect, rest;
35941
35941
  $[0] !== props2 ? ({
35942
- icon,
35943
35942
  id: idProp,
35944
35943
  accept,
35945
35944
  capture,
35946
35945
  multiple,
35947
35946
  onSelect,
35948
- text,
35949
35947
  disabled,
35950
35948
  ...rest
35951
- } = props2, $[0] = props2, $[1] = accept, $[2] = capture, $[3] = disabled, $[4] = icon, $[5] = idProp, $[6] = multiple, $[7] = onSelect, $[8] = rest, $[9] = text) : (accept = $[1], capture = $[2], disabled = $[3], icon = $[4], idProp = $[5], multiple = $[6], onSelect = $[7], rest = $[8], text = $[9]);
35949
+ } = props2, $[0] = props2, $[1] = accept, $[2] = capture, $[3] = disabled, $[4] = idProp, $[5] = multiple, $[6] = onSelect, $[7] = rest) : (accept = $[1], capture = $[2], disabled = $[3], idProp = $[4], multiple = $[5], onSelect = $[6], rest = $[7]);
35952
35950
  const id2 = `${idProp || ""}-${useId()}`;
35953
35951
  let t0;
35954
- $[10] !== onSelect ? (t0 = (event) => {
35952
+ $[8] !== onSelect ? (t0 = (event) => {
35955
35953
  onSelect && event.target.files && onSelect(Array.from(event.target.files));
35956
- }, $[10] = onSelect, $[11] = t0) : t0 = $[11];
35954
+ }, $[8] = onSelect, $[9] = t0) : t0 = $[9];
35957
35955
  const handleChange = t0;
35958
35956
  let t1;
35959
- $[12] !== accept || $[13] !== capture || $[14] !== disabled || $[15] !== forwardedRef || $[16] !== handleChange || $[17] !== id2 || $[18] !== multiple ? (t1 = /* @__PURE__ */ jsx("input", { "data-testid": "file-button-input", accept, capture, id: id2, multiple, onChange: handleChange, ref: forwardedRef, type: "file", value: "", disabled }), $[12] = accept, $[13] = capture, $[14] = disabled, $[15] = forwardedRef, $[16] = handleChange, $[17] = id2, $[18] = multiple, $[19] = t1) : t1 = $[19];
35957
+ $[10] !== accept || $[11] !== capture || $[12] !== disabled || $[13] !== forwardedRef || $[14] !== handleChange || $[15] !== id2 || $[16] !== multiple ? (t1 = /* @__PURE__ */ jsx("input", { "data-testid": "file-button-input", accept, capture, id: id2, multiple, onChange: handleChange, ref: forwardedRef, type: "file", value: "", disabled }), $[10] = accept, $[11] = capture, $[12] = disabled, $[13] = forwardedRef, $[14] = handleChange, $[15] = id2, $[16] = multiple, $[17] = t1) : t1 = $[17];
35960
35958
  let t2;
35961
- return $[20] !== disabled || $[21] !== icon || $[22] !== id2 || $[23] !== rest || $[24] !== t1 || $[25] !== text ? (t2 = /* @__PURE__ */ jsx(FileButton, { ...rest, icon, text, htmlFor: id2, disabled, children: t1 }), $[20] = disabled, $[21] = icon, $[22] = id2, $[23] = rest, $[24] = t1, $[25] = text, $[26] = t2) : t2 = $[26], t2;
35959
+ return $[18] !== disabled || $[19] !== id2 || $[20] !== rest || $[21] !== t1 ? (t2 = /* @__PURE__ */ jsx(FileButton, { ...rest, htmlFor: id2, disabled, children: t1 }), $[18] = disabled, $[19] = id2, $[20] = rest, $[21] = t1, $[22] = t2) : t2 = $[22], t2;
35962
35960
  }), RootFlex$2 = /* @__PURE__ */ styled(Flex).withConfig({
35963
35961
  displayName: "RootFlex",
35964
35962
  componentId: "sc-q3h17p-0"
@@ -83457,27 +83455,25 @@ const StyledButton$1 = /* @__PURE__ */ styled(Button$1).withConfig({
83457
83455
  borderRadius: 3,
83458
83456
  boxShadow: "0 0 0 1px var(--card-bg-color)"
83459
83457
  }), StatusButton = forwardRef(function(props2, ref) {
83460
- const $ = c(22);
83461
- let disabledProp, icon, label, restProps, t0, text, tone;
83458
+ const $ = c(18);
83459
+ let disabledProp, label, restProps, t0, tone;
83462
83460
  $[0] !== props2 ? ({
83463
83461
  disabled: disabledProp,
83464
- icon,
83465
83462
  "aria-label": label,
83466
83463
  mode: t0,
83467
- text,
83468
83464
  tone,
83469
83465
  ...restProps
83470
- } = props2, $[0] = props2, $[1] = disabledProp, $[2] = icon, $[3] = label, $[4] = restProps, $[5] = t0, $[6] = text, $[7] = tone) : (disabledProp = $[1], icon = $[2], label = $[3], restProps = $[4], t0 = $[5], text = $[6], tone = $[7]);
83466
+ } = props2, $[0] = props2, $[1] = disabledProp, $[2] = label, $[3] = restProps, $[4] = t0, $[5] = tone) : (disabledProp = $[1], label = $[2], restProps = $[3], t0 = $[4], tone = $[5]);
83471
83467
  const mode = t0 === void 0 ? "bleed" : t0, t1 = `var(--card-badge-${tone}-dot-color)`;
83472
83468
  let t2;
83473
- $[8] !== t1 ? (t2 = {
83469
+ $[6] !== t1 ? (t2 = {
83474
83470
  backgroundColor: t1
83475
- }, $[8] = t1, $[9] = t2) : t2 = $[9];
83471
+ }, $[6] = t1, $[7] = t2) : t2 = $[7];
83476
83472
  const dotStyle = t2, disabled = !!disabledProp;
83477
83473
  let t3;
83478
- $[10] !== dotStyle || $[11] !== tone ? (t3 = tone && /* @__PURE__ */ jsx(Dot, { style: dotStyle }), $[10] = dotStyle, $[11] = tone, $[12] = t3) : t3 = $[12];
83474
+ $[8] !== dotStyle || $[9] !== tone ? (t3 = tone && /* @__PURE__ */ jsx(Dot, { style: dotStyle }), $[8] = dotStyle, $[9] = tone, $[10] = t3) : t3 = $[10];
83479
83475
  let t4;
83480
- return $[13] !== disabled || $[14] !== icon || $[15] !== label || $[16] !== mode || $[17] !== ref || $[18] !== restProps || $[19] !== t3 || $[20] !== text ? (t4 = /* @__PURE__ */ jsx(StyledButton$1, { "data-ui": "StatusButton", ...restProps, "aria-label": label, disabled, mode, ref, text, icon, children: t3 }), $[13] = disabled, $[14] = icon, $[15] = label, $[16] = mode, $[17] = ref, $[18] = restProps, $[19] = t3, $[20] = text, $[21] = t4) : t4 = $[21], t4;
83476
+ return $[11] !== disabled || $[12] !== label || $[13] !== mode || $[14] !== ref || $[15] !== restProps || $[16] !== t3 ? (t4 = /* @__PURE__ */ jsx(StyledButton$1, { "data-ui": "StatusButton", ...restProps, "aria-label": label, disabled, mode, ref, children: t3 }), $[11] = disabled, $[12] = label, $[13] = mode, $[14] = ref, $[15] = restProps, $[16] = t3, $[17] = t4) : t4 = $[17], t4;
83481
83477
  }), TooltipOfDisabled = forwardRef(function(t0, ref) {
83482
83478
  const $ = c(13);
83483
83479
  let children, content, disabled, restProps;