@sanity/ui 5.0.0-alpha.11 → 5.0.0-alpha.12
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/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -19
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/icon/Icon.tsx +21 -11
- package/src/components/icon/icon.props.ts +1 -1
- package/src/version.ts +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -497,14 +497,14 @@ interface IconProps extends ComponentProps<'svg'>, Pick<TypographyProps, 'muted'
|
|
|
497
497
|
/**
|
|
498
498
|
* The icon component to render.
|
|
499
499
|
*/
|
|
500
|
-
icon: React.ComponentType<SVGProps<SVGSVGElement>>;
|
|
500
|
+
icon: React.ComponentType<SVGProps<SVGSVGElement>> | React.ReactElement<SVGProps<SVGSVGElement>>;
|
|
501
501
|
/**
|
|
502
502
|
* Sets icon size.
|
|
503
503
|
*/
|
|
504
504
|
size?: Responsive<IconSize>;
|
|
505
505
|
}
|
|
506
506
|
/** @public */
|
|
507
|
-
export declare function Icon({ size, ...props }: IconProps): import("react").
|
|
507
|
+
export declare function Icon({ icon, size, ...props }: IconProps): import("react").ReactElement<SVGProps<SVGSVGElement>, string | import("react").JSXElementConstructor<any>>;
|
|
508
508
|
/** @public */
|
|
509
509
|
interface IconButtonProps<T extends React$1.ElementType = 'button'> extends Pick<ButtonProps<T>, 'as' | 'density' | 'level' | 'loading' | 'tone'> {
|
|
510
510
|
/**
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/Radius.ts","../src/types/Responsive.ts","../src/props/border.ts","../src/props/flexChild.ts","../src/props/gridChild.ts","../src/props/height.ts","../src/types/Space.ts","../src/props/margin.ts","../src/types/Overflow.ts","../src/props/overflow.ts","../src/props/padding.ts","../src/types/Position.ts","../src/props/position.ts","../src/types/Shadow.ts","../src/props/shadow.ts","../src/types/Tone.ts","../src/props/tone.ts","../src/props/width.ts","../src/props/zIndex.ts","../src/props/layout.ts","../src/types/Display.ts","../src/components/box/box.props.ts","../src/components/box/Box.tsx","../src/types/Button.ts","../src/types/Interactive.ts","../src/components/button/button.props.ts","../src/components/button/Button.tsx","../src/types/Density.ts","../src/components/card/card.props.ts","../src/components/card/Card.tsx","../src/components/checkbox/checkbox.props.ts","../src/components/checkbox/Checkbox.tsx","../src/types/Code.ts","../src/types/FontWeight.ts","../src/types/TextAlign.ts","../src/props/typography.ts","../src/components/code/code.props.ts","../src/components/code/Code.tsx","../src/types/Container.ts","../src/components/container/container.props.ts","../src/components/container/Container.tsx","../src/components/dialog/dialog.props.ts","../src/components/dialog/Dialog.tsx","../src/components/divider/divider.props.ts","../src/components/divider/Divider.tsx","../src/types/Eyebrow.ts","../src/components/eyebrow/eyebrow.props.ts","../src/components/eyebrow/Eyebrow.tsx","../src/types/Flex.ts","../src/props/flexParent.ts","../src/props/gap.ts","../src/components/flex/flex.props.ts","../src/components/flex/Flex.tsx","../src/types/Grid.ts","../src/props/gridParent.ts","../src/components/grid/grid.props.ts","../src/components/grid/Grid.tsx","../src/components/h-stack/hStack.props.ts","../src/components/h-stack/HStack.tsx","../src/types/Heading.ts","../src/components/heading/heading.props.ts","../src/components/heading/Heading.tsx","../src/types/Icon.ts","../src/components/icon/icon.props.ts","../src/components/icon/Icon.tsx","../src/components/icon-button/iconButton.props.ts","../src/components/icon-button/IconButton.tsx","../src/components/indicator/indicator.props.ts","../src/components/indicator/Indicator.tsx","../src/components/indicator-stack/indicatorStack.props.ts","../src/components/indicator-stack/IndicatorStack.tsx","../src/components/inline/inline.props.ts","../src/components/inline/Inline.tsx","../src/components/label/label.props.ts","../src/components/label/Label.tsx","../src/components/link/link.props.ts","../src/components/link/Link.tsx","../src/types/List.ts","../src/components/list/list.props.ts","../src/components/list/List.tsx","../src/types/Placement.ts","../src/props/placement.ts","../src/components/popover/popover.props.ts","../src/components/popover/Popover.tsx","../src/components/press-area/pressArea.props.ts","../src/components/press-area/PressArea.tsx","../src/components/radio/radio.props.ts","../src/components/radio/Radio.tsx","../src/types/FormElement.ts","../src/props/formElement.ts","../src/components/select/select.props.ts","../src/components/select/Select.tsx","../src/components/skip-to-content/skipToContent.props.ts","../src/components/skip-to-content/SkipToContent.tsx","../src/components/spinner/spinner.props.ts","../src/components/spinner/Spinner.tsx","../src/components/switch/switch.props.ts","../src/components/switch/Switch.tsx","../src/types/Text.ts","../src/components/text/text.props.ts","../src/components/text/Text.tsx","../src/components/tooltip/tooltip.props.ts","../src/components/tooltip/Tooltip.tsx","../src/components/tooltip-group/tooltipGroup.props.ts","../src/components/tooltip-group/TooltipGroup.tsx","../src/components/v-stack/vStack.props.ts","../src/components/v-stack/VStack.tsx","../src/components/visually-hidden/visuallyHidden.props.ts","../src/components/visually-hidden/VisuallyHidden.tsx","../src/hooks/useIsClient.ts","../src/components/badge/badge.props.ts","../src/components/badge/Badge.tsx"],"mappings":";cAAa;;KAED,iBAAiB;;KCDjB,WAAW,KACnB,WAEE,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;;KCLhD;;EAEV,SAAS;;EAET,YAAY;;EAEZ,cAAc;;EAEd,eAAe;;EAEf,aAAa;;EAEb,SAAS,WAAW;;KCbV;;EAEV,YAAY;;EAEZ,WAAW;;EAEX,aAAa;;KCNH;;EAEV,aAAa;;EAEb,kBAAkB;;EAElB,gBAAgB;;EAEhB,UAAU;;EAEV,eAAe;;EAEf,aAAa;;KCZH;;EAEV,SAAS;;EAET,YAAY;;EAEZ,YAAY;;cCTD;;KAED,gBAAgB;cAEf;;KAED,oBAAoB;cAEnB;;KAED,uBAAuB;cAEtB;;KAED,4BAA4B;;KCT5B;;EAEV,SAAS,WAAW;;EAEpB,UAAU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1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/Radius.ts","../src/types/Responsive.ts","../src/props/border.ts","../src/props/flexChild.ts","../src/props/gridChild.ts","../src/props/height.ts","../src/types/Space.ts","../src/props/margin.ts","../src/types/Overflow.ts","../src/props/overflow.ts","../src/props/padding.ts","../src/types/Position.ts","../src/props/position.ts","../src/types/Shadow.ts","../src/props/shadow.ts","../src/types/Tone.ts","../src/props/tone.ts","../src/props/width.ts","../src/props/zIndex.ts","../src/props/layout.ts","../src/types/Display.ts","../src/components/box/box.props.ts","../src/components/box/Box.tsx","../src/types/Button.ts","../src/types/Interactive.ts","../src/components/button/button.props.ts","../src/components/button/Button.tsx","../src/types/Density.ts","../src/components/card/card.props.ts","../src/components/card/Card.tsx","../src/components/checkbox/checkbox.props.ts","../src/components/checkbox/Checkbox.tsx","../src/types/Code.ts","../src/types/FontWeight.ts","../src/types/TextAlign.ts","../src/props/typography.ts","../src/components/code/code.props.ts","../src/components/code/Code.tsx","../src/types/Container.ts","../src/components/container/container.props.ts","../src/components/container/Container.tsx","../src/components/dialog/dialog.props.ts","../src/components/dialog/Dialog.tsx","../src/components/divider/divider.props.ts","../src/components/divider/Divider.tsx","../src/types/Eyebrow.ts","../src/components/eyebrow/eyebrow.props.ts","../src/components/eyebrow/Eyebrow.tsx","../src/types/Flex.ts","../src/props/flexParent.ts","../src/props/gap.ts","../src/components/flex/flex.props.ts","../src/components/flex/Flex.tsx","../src/types/Grid.ts","../src/props/gridParent.ts","../src/components/grid/grid.props.ts","../src/components/grid/Grid.tsx","../src/components/h-stack/hStack.props.ts","../src/components/h-stack/HStack.tsx","../src/types/Heading.ts","../src/components/heading/heading.props.ts","../src/components/heading/Heading.tsx","../src/types/Icon.ts","../src/components/icon/icon.props.ts","../src/components/icon/Icon.tsx","../src/components/icon-button/iconButton.props.ts","../src/components/icon-button/IconButton.tsx","../src/components/indicator/indicator.props.ts","../src/components/indicator/Indicator.tsx","../src/components/indicator-stack/indicatorStack.props.ts","../src/components/indicator-stack/IndicatorStack.tsx","../src/components/inline/inline.props.ts","../src/components/inline/Inline.tsx","../src/components/label/label.props.ts","../src/components/label/Label.tsx","../src/components/link/link.props.ts","../src/components/link/Link.tsx","../src/types/List.ts","../src/components/list/list.props.ts","../src/components/list/List.tsx","../src/types/Placement.ts","../src/props/placement.ts","../src/components/popover/popover.props.ts","../src/components/popover/Popover.tsx","../src/components/press-area/pressArea.props.ts","../src/components/press-area/PressArea.tsx","../src/components/radio/radio.props.ts","../src/components/radio/Radio.tsx","../src/types/FormElement.ts","../src/props/formElement.ts","../src/components/select/select.props.ts","../src/components/select/Select.tsx","../src/components/skip-to-content/skipToContent.props.ts","../src/components/skip-to-content/SkipToContent.tsx","../src/components/spinner/spinner.props.ts","../src/components/spinner/Spinner.tsx","../src/components/switch/switch.props.ts","../src/components/switch/Switch.tsx","../src/types/Text.ts","../src/components/text/text.props.ts","../src/components/text/Text.tsx","../src/components/tooltip/tooltip.props.ts","../src/components/tooltip/Tooltip.tsx","../src/components/tooltip-group/tooltipGroup.props.ts","../src/components/tooltip-group/TooltipGroup.tsx","../src/components/v-stack/vStack.props.ts","../src/components/v-stack/VStack.tsx","../src/components/visually-hidden/visuallyHidden.props.ts","../src/components/visually-hidden/VisuallyHidden.tsx","../src/hooks/useIsClient.ts","../src/components/badge/badge.props.ts","../src/components/badge/Badge.tsx"],"mappings":";cAAa;;KAED,iBAAiB;;KCDjB,WAAW,KACnB,WAEE,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;;KCLhD;;EAEV,SAAS;;EAET,YAAY;;EAEZ,cAAc;;EAEd,eAAe;;EAEf,aAAa;;EAEb,SAAS,WAAW;;KCbV;;EAEV,YAAY;;EAEZ,WAAW;;EAEX,aAAa;;KCNH;;EAEV,aAAa;;EAEb,kBAAkB;;EAElB,gBAAgB;;EAEhB,U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,KAAK,KAAK,sBAAsB,UAAU,oBAAoB,sBAAG,IAAA;;wBCR9E;;UCCC,WAAW,UAAU,MAAM,8BAA8B;;;;EAIxE,KAAK;;;;EAIL,YAAY,MAAM,cAAc,MAAM;;;;EAItC;;;wBCJc,MAAM,UAAU,wBAC9B,SACG,SACF,WAAW,KAAK,KAAK,sBAAsB,UAAU,WAAW,sBAAG,IAAA"}
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { Activity, Children, Suspense, cloneElement, isValidElement, lazy, useEffect, useId, useRef, useState, useSyncExternalStore } from "react";
|
|
5
|
+
import { Activity, Children, Suspense, cloneElement, createElement, isValidElement, lazy, useEffect, useId, useRef, useState, useSyncExternalStore } from "react";
|
|
6
6
|
import { SpinnerIcon } from "@sanity/icons/Spinner";
|
|
7
7
|
import { CheckmarkIcon } from "@sanity/icons/Checkmark";
|
|
8
8
|
import { RemoveIcon } from "@sanity/icons/Remove";
|
|
@@ -81,7 +81,7 @@ function getCompositeValue(propValue, propDef, key) {
|
|
|
81
81
|
return compositeValue;
|
|
82
82
|
}
|
|
83
83
|
function suffixClassName(className) {
|
|
84
|
-
return `${className}-
|
|
84
|
+
return `${className}-87c63f`;
|
|
85
85
|
}
|
|
86
86
|
const borderProps = {
|
|
87
87
|
border: {
|
|
@@ -585,25 +585,21 @@ const typographyProps = {
|
|
|
585
585
|
...marginProps
|
|
586
586
|
}, iconClassName = suffixClassName("sui-Icon");
|
|
587
587
|
/** @public */
|
|
588
|
-
function Icon(
|
|
589
|
-
let
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
...props
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
} else T0 = $[1], props = $[2], rest = $[3], style = $[4], t1 = $[5];
|
|
599
|
-
let t2 = !props["aria-label"] || void 0, t3;
|
|
600
|
-
return $[6] !== T0 || $[7] !== rest || $[8] !== style || $[9] !== t1 || $[10] !== t2 ? (t3 = /* @__PURE__ */ jsx(T0, {
|
|
601
|
-
className: t1,
|
|
588
|
+
function Icon({ icon, size = 2, ...props }) {
|
|
589
|
+
let { className, style, ...rest } = getProps({
|
|
590
|
+
size,
|
|
591
|
+
...props
|
|
592
|
+
}, iconProps), iconElement = isValidElement(icon) ? icon : null, ariaLabel = props["aria-label"] || (iconElement ? iconElement.props["aria-label"] : void 0), svgProps = {
|
|
593
|
+
className: clsx(iconClassName, className, iconElement ? iconElement.props.className : void 0),
|
|
594
|
+
style: iconElement ? {
|
|
595
|
+
...iconElement.props.style,
|
|
596
|
+
...style
|
|
597
|
+
} : style,
|
|
602
598
|
"data-ui": "Icon",
|
|
603
|
-
|
|
604
|
-
"aria-hidden": t2,
|
|
599
|
+
"aria-hidden": !ariaLabel || void 0,
|
|
605
600
|
...rest
|
|
606
|
-
}
|
|
601
|
+
};
|
|
602
|
+
return iconElement ? cloneElement(iconElement, svgProps) : createElement(icon, svgProps);
|
|
607
603
|
}
|
|
608
604
|
const spinnerProps = { size: {
|
|
609
605
|
type: "union",
|