@sanity/ui 5.0.0-alpha.23 → 5.0.0-alpha.25
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 +147 -147
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +139 -157
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/docs/components/button.dsds.yaml +24 -12
- package/docs/components/code.dsds.yaml +2 -0
- package/docs/components/eyebrow.dsds.yaml +3 -22
- package/docs/components/icon-button.dsds.yaml +9 -2
- package/docs/components/popover.dsds.yaml +8 -2
- package/docs/foundations/typography-guidelines.dsds.yaml +4 -4
- package/docs/icons/icon-access-denied.dsds.yaml +40 -0
- package/docs/icons/icon-activity.dsds.yaml +40 -0
- package/docs/icons/icon-add-circle.dsds.yaml +14 -0
- package/docs/icons/icon-add-comment.dsds.yaml +34 -0
- package/docs/icons/icon-add-document.dsds.yaml +34 -0
- package/docs/icons/icon-add-user.dsds.yaml +30 -0
- package/docs/icons/icon-add.dsds.yaml +57 -0
- package/docs/icons/icon-api.dsds.yaml +17 -0
- package/docs/icons/icon-archive.dsds.yaml +44 -0
- package/docs/icons/icon-arrow-down.dsds.yaml +38 -0
- package/docs/icons/icon-arrow-left.dsds.yaml +32 -0
- package/docs/icons/icon-arrow-right.dsds.yaml +32 -0
- package/docs/icons/icon-arrow-top-right.dsds.yaml +32 -0
- package/docs/icons/icon-arrow-up.dsds.yaml +44 -0
- package/docs/icons/icon-asterisk.dsds.yaml +18 -0
- package/docs/icons/icon-bar-chart.dsds.yaml +40 -0
- package/docs/icons/icon-basket.dsds.yaml +14 -0
- package/docs/icons/icon-bell.dsds.yaml +30 -0
- package/docs/icons/icon-bill.dsds.yaml +40 -0
- package/docs/icons/icon-binary-document.dsds.yaml +30 -0
- package/docs/icons/icon-block-content.dsds.yaml +30 -0
- package/docs/icons/icon-block-element.dsds.yaml +32 -0
- package/docs/icons/icon-blockquote.dsds.yaml +32 -0
- package/docs/icons/icon-bold.dsds.yaml +28 -0
- package/docs/icons/icon-bolt.dsds.yaml +18 -0
- package/docs/icons/icon-book.dsds.yaml +34 -0
- package/docs/icons/icon-bookmark-filled.dsds.yaml +14 -0
- package/docs/icons/icon-bookmark.dsds.yaml +14 -0
- package/docs/icons/icon-bottle.dsds.yaml +18 -0
- package/docs/icons/icon-bug.dsds.yaml +28 -0
- package/docs/icons/icon-bulb-filled.dsds.yaml +14 -0
- package/docs/icons/icon-bulb-outline.dsds.yaml +30 -0
- package/docs/icons/icon-calendar.dsds.yaml +36 -0
- package/docs/icons/icon-case.dsds.yaml +18 -0
- package/docs/icons/icon-chart-upward.dsds.yaml +40 -0
- package/docs/icons/icon-checkmark-circle.dsds.yaml +40 -0
- package/docs/icons/icon-checkmark.dsds.yaml +36 -0
- package/docs/icons/icon-chevron-down.dsds.yaml +46 -0
- package/docs/icons/icon-chevron-left.dsds.yaml +42 -0
- package/docs/icons/icon-chevron-right.dsds.yaml +42 -0
- package/docs/icons/icon-chevron-up.dsds.yaml +44 -0
- package/docs/icons/icon-circle.dsds.yaml +28 -0
- package/docs/icons/icon-clipboard-image.dsds.yaml +30 -0
- package/docs/icons/icon-clipboard.dsds.yaml +34 -0
- package/docs/icons/icon-clock.dsds.yaml +39 -0
- package/docs/icons/icon-close-circle.dsds.yaml +18 -0
- package/docs/icons/icon-close.dsds.yaml +51 -0
- package/docs/icons/icon-code-block.dsds.yaml +38 -0
- package/docs/icons/icon-code.dsds.yaml +40 -0
- package/docs/icons/icon-cog.dsds.yaml +38 -0
- package/docs/icons/icon-collapse.dsds.yaml +40 -0
- package/docs/icons/icon-color-wheel.dsds.yaml +30 -0
- package/docs/icons/icon-comment.dsds.yaml +38 -0
- package/docs/icons/icon-component.dsds.yaml +18 -0
- package/docs/icons/icon-compose-sparkles.dsds.yaml +36 -0
- package/docs/icons/icon-compose.dsds.yaml +38 -0
- package/docs/icons/icon-confetti.dsds.yaml +18 -0
- package/docs/icons/icon-controls.dsds.yaml +36 -0
- package/docs/icons/icon-copy.dsds.yaml +31 -0
- package/docs/icons/icon-credit-card.dsds.yaml +18 -0
- package/docs/icons/icon-crop.dsds.yaml +32 -0
- package/docs/icons/icon-cube.dsds.yaml +36 -0
- package/docs/icons/icon-dashboard.dsds.yaml +34 -0
- package/docs/icons/icon-database.dsds.yaml +40 -0
- package/docs/icons/icon-desktop.dsds.yaml +31 -0
- package/docs/icons/icon-diamond.dsds.yaml +18 -0
- package/docs/icons/icon-document-pdf.dsds.yaml +34 -0
- package/docs/icons/icon-document-remove.dsds.yaml +30 -0
- package/docs/icons/icon-document-sheet.dsds.yaml +34 -0
- package/docs/icons/icon-document-text.dsds.yaml +30 -0
- package/docs/icons/icon-document-video.dsds.yaml +30 -0
- package/docs/icons/icon-document-word.dsds.yaml +34 -0
- package/docs/icons/icon-document-zip.dsds.yaml +30 -0
- package/docs/icons/icon-document.dsds.yaml +52 -0
- package/docs/icons/icon-documents.dsds.yaml +30 -0
- package/docs/icons/icon-dot.dsds.yaml +32 -0
- package/docs/icons/icon-double-chevron-down.dsds.yaml +38 -0
- package/docs/icons/icon-double-chevron-left.dsds.yaml +34 -0
- package/docs/icons/icon-double-chevron-right.dsds.yaml +34 -0
- package/docs/icons/icon-double-chevron-up.dsds.yaml +36 -0
- package/docs/icons/icon-double-quote.dsds.yaml +14 -0
- package/docs/icons/icon-download.dsds.yaml +40 -0
- package/docs/icons/icon-drag-handle.dsds.yaml +28 -0
- package/docs/icons/icon-drop.dsds.yaml +30 -0
- package/docs/icons/icon-earth-americas.dsds.yaml +34 -0
- package/docs/icons/icon-earth-globe.dsds.yaml +34 -0
- package/docs/icons/icon-edit.dsds.yaml +34 -0
- package/docs/icons/icon-ellipsis-horizontal.dsds.yaml +32 -0
- package/docs/icons/icon-ellipsis-vertical.dsds.yaml +14 -0
- package/docs/icons/icon-empty.dsds.yaml +28 -0
- package/docs/icons/icon-enter-right.dsds.yaml +18 -0
- package/docs/icons/icon-enter.dsds.yaml +18 -0
- package/docs/icons/icon-envelope.dsds.yaml +34 -0
- package/docs/icons/icon-equal.dsds.yaml +14 -0
- package/docs/icons/icon-error-filled.dsds.yaml +14 -0
- package/docs/icons/icon-error-outline.dsds.yaml +38 -0
- package/docs/icons/icon-error-screen.dsds.yaml +14 -0
- package/docs/icons/icon-expand.dsds.yaml +36 -0
- package/docs/icons/icon-eye-closed.dsds.yaml +38 -0
- package/docs/icons/icon-eye-open.dsds.yaml +38 -0
- package/docs/icons/icon-face-happy.dsds.yaml +14 -0
- package/docs/icons/icon-face-indifferent.dsds.yaml +14 -0
- package/docs/icons/icon-face-sad.dsds.yaml +14 -0
- package/docs/icons/icon-feedback.dsds.yaml +30 -0
- package/docs/icons/icon-filter.dsds.yaml +38 -0
- package/docs/icons/icon-folder.dsds.yaml +36 -0
- package/docs/icons/icon-generate.dsds.yaml +18 -0
- package/docs/icons/icon-github.dsds.yaml +14 -0
- package/docs/icons/icon-groq.dsds.yaml +31 -0
- package/docs/icons/icon-hash.dsds.yaml +18 -0
- package/docs/icons/icon-heart-filled.dsds.yaml +18 -0
- package/docs/icons/icon-heart.dsds.yaml +18 -0
- package/docs/icons/icon-help-circle.dsds.yaml +38 -0
- package/docs/icons/icon-highlight.dsds.yaml +18 -0
- package/docs/icons/icon-home.dsds.yaml +28 -0
- package/docs/icons/icon-ice-cream.dsds.yaml +18 -0
- package/docs/icons/icon-image-remove.dsds.yaml +32 -0
- package/docs/icons/icon-image.dsds.yaml +36 -0
- package/docs/icons/icon-images.dsds.yaml +34 -0
- package/docs/icons/icon-inbox.dsds.yaml +14 -0
- package/docs/icons/icon-info-filled.dsds.yaml +14 -0
- package/docs/icons/icon-info-outline.dsds.yaml +38 -0
- package/docs/icons/icon-inline-element.dsds.yaml +32 -0
- package/docs/icons/icon-inline.dsds.yaml +18 -0
- package/docs/icons/icon-insert-above.dsds.yaml +32 -0
- package/docs/icons/icon-insert-below.dsds.yaml +32 -0
- package/docs/icons/icon-italic.dsds.yaml +28 -0
- package/docs/icons/icon-joystick.dsds.yaml +18 -0
- package/docs/icons/icon-json.dsds.yaml +36 -0
- package/docs/icons/icon-launch.dsds.yaml +34 -0
- package/docs/icons/icon-leave.dsds.yaml +35 -0
- package/docs/icons/icon-lemon.dsds.yaml +18 -0
- package/docs/icons/icon-link-removed.dsds.yaml +30 -0
- package/docs/icons/icon-link.dsds.yaml +36 -0
- package/docs/icons/icon-linkedin.dsds.yaml +14 -0
- package/docs/icons/icon-list.dsds.yaml +14 -0
- package/docs/icons/icon-lock.dsds.yaml +39 -0
- package/docs/icons/icon-logo-js.dsds.yaml +18 -0
- package/docs/icons/icon-logo-ts.dsds.yaml +18 -0
- package/docs/icons/icon-marker-removed.dsds.yaml +14 -0
- package/docs/icons/icon-marker.dsds.yaml +14 -0
- package/docs/icons/icon-master-detail.dsds.yaml +28 -0
- package/docs/icons/icon-menu.dsds.yaml +40 -0
- package/docs/icons/icon-microphone-slash.dsds.yaml +14 -0
- package/docs/icons/icon-microphone.dsds.yaml +14 -0
- package/docs/icons/icon-mobile-device.dsds.yaml +32 -0
- package/docs/icons/icon-moon.dsds.yaml +30 -0
- package/docs/icons/icon-number.dsds.yaml +30 -0
- package/docs/icons/icon-ok-hand.dsds.yaml +18 -0
- package/docs/icons/icon-olist.dsds.yaml +36 -0
- package/docs/icons/icon-overage.dsds.yaml +42 -0
- package/docs/icons/icon-package.dsds.yaml +34 -0
- package/docs/icons/icon-panel-left.dsds.yaml +38 -0
- package/docs/icons/icon-panel-right.dsds.yaml +40 -0
- package/docs/icons/icon-pause.dsds.yaml +32 -0
- package/docs/icons/icon-pin-filled.dsds.yaml +28 -0
- package/docs/icons/icon-pin-removed.dsds.yaml +14 -0
- package/docs/icons/icon-pin.dsds.yaml +32 -0
- package/docs/icons/icon-play.dsds.yaml +32 -0
- package/docs/icons/icon-plug.dsds.yaml +35 -0
- package/docs/icons/icon-presentation.dsds.yaml +18 -0
- package/docs/icons/icon-progress50.dsds.yaml +14 -0
- package/docs/icons/icon-progress75.dsds.yaml +14 -0
- package/docs/icons/icon-projects.dsds.yaml +14 -0
- package/docs/icons/icon-publish.dsds.yaml +38 -0
- package/docs/icons/icon-read-only.dsds.yaml +36 -0
- package/docs/icons/icon-redo.dsds.yaml +38 -0
- package/docs/icons/icon-refresh.dsds.yaml +38 -0
- package/docs/icons/icon-remove-circle.dsds.yaml +14 -0
- package/docs/icons/icon-remove.dsds.yaml +30 -0
- package/docs/icons/icon-reset.dsds.yaml +40 -0
- package/docs/icons/icon-restore.dsds.yaml +45 -0
- package/docs/icons/icon-retrieve.dsds.yaml +14 -0
- package/docs/icons/icon-retry.dsds.yaml +14 -0
- package/docs/icons/icon-revert.dsds.yaml +14 -0
- package/docs/icons/icon-robot.dsds.yaml +17 -0
- package/docs/icons/icon-rocket.dsds.yaml +34 -0
- package/docs/icons/icon-schema.dsds.yaml +36 -0
- package/docs/icons/icon-search.dsds.yaml +34 -0
- package/docs/icons/icon-select.dsds.yaml +38 -0
- package/docs/icons/icon-share.dsds.yaml +36 -0
- package/docs/icons/icon-sort.dsds.yaml +40 -0
- package/docs/icons/icon-sparkle.dsds.yaml +26 -0
- package/docs/icons/icon-sparkles.dsds.yaml +34 -0
- package/docs/icons/icon-spinner.dsds.yaml +38 -0
- package/docs/icons/icon-split-horizontal.dsds.yaml +32 -0
- package/docs/icons/icon-split-vertical.dsds.yaml +30 -0
- package/docs/icons/icon-square.dsds.yaml +18 -0
- package/docs/icons/icon-stack-compact.dsds.yaml +30 -0
- package/docs/icons/icon-stack.dsds.yaml +44 -0
- package/docs/icons/icon-star-filled.dsds.yaml +48 -0
- package/docs/icons/icon-star.dsds.yaml +51 -0
- package/docs/icons/icon-stop.dsds.yaml +32 -0
- package/docs/icons/icon-strikethrough.dsds.yaml +28 -0
- package/docs/icons/icon-string.dsds.yaml +38 -0
- package/docs/icons/icon-sun.dsds.yaml +30 -0
- package/docs/icons/icon-sync.dsds.yaml +36 -0
- package/docs/icons/icon-tablet-device.dsds.yaml +30 -0
- package/docs/icons/icon-tag.dsds.yaml +32 -0
- package/docs/icons/icon-tags.dsds.yaml +36 -0
- package/docs/icons/icon-target.dsds.yaml +14 -0
- package/docs/icons/icon-task.dsds.yaml +30 -0
- package/docs/icons/icon-terminal.dsds.yaml +30 -0
- package/docs/icons/icon-text.dsds.yaml +32 -0
- package/docs/icons/icon-th-large.dsds.yaml +34 -0
- package/docs/icons/icon-th-list.dsds.yaml +30 -0
- package/docs/icons/icon-thumbs-down.dsds.yaml +27 -0
- package/docs/icons/icon-thumbs-up.dsds.yaml +30 -0
- package/docs/icons/icon-tiers.dsds.yaml +18 -0
- package/docs/icons/icon-timeline.dsds.yaml +32 -0
- package/docs/icons/icon-toggle-arrow-right.dsds.yaml +39 -0
- package/docs/icons/icon-token.dsds.yaml +30 -0
- package/docs/icons/icon-transfer.dsds.yaml +32 -0
- package/docs/icons/icon-translate.dsds.yaml +32 -0
- package/docs/icons/icon-trash.dsds.yaml +34 -0
- package/docs/icons/icon-trend-upward.dsds.yaml +42 -0
- package/docs/icons/icon-triangle-outline.dsds.yaml +18 -0
- package/docs/icons/icon-trolley.dsds.yaml +18 -0
- package/docs/icons/icon-truncate.dsds.yaml +18 -0
- package/docs/icons/icon-twitter.dsds.yaml +18 -0
- package/docs/icons/icon-ulist.dsds.yaml +36 -0
- package/docs/icons/icon-unarchive.dsds.yaml +32 -0
- package/docs/icons/icon-underline.dsds.yaml +28 -0
- package/docs/icons/icon-undo.dsds.yaml +34 -0
- package/docs/icons/icon-unknown.dsds.yaml +36 -0
- package/docs/icons/icon-unlink.dsds.yaml +32 -0
- package/docs/icons/icon-unlock.dsds.yaml +41 -0
- package/docs/icons/icon-unpublish.dsds.yaml +38 -0
- package/docs/icons/icon-upload.dsds.yaml +40 -0
- package/docs/icons/icon-user.dsds.yaml +34 -0
- package/docs/icons/icon-users.dsds.yaml +34 -0
- package/docs/icons/icon-versions.dsds.yaml +14 -0
- package/docs/icons/icon-video.dsds.yaml +32 -0
- package/docs/icons/icon-warning-filled.dsds.yaml +14 -0
- package/docs/icons/icon-warning-outline.dsds.yaml +38 -0
- package/docs/icons/icon-wrench.dsds.yaml +18 -0
- package/docs/icons.dsds.yaml +767 -2512
- package/docs/index.dsds.yaml +76 -85
- package/docs/overview/component-reference.dsds.yaml +0 -2
- package/docs/overview/installation.dsds.yaml +20 -4
- package/docs/patterns/forms.dsds.yaml +6 -0
- package/docs/patterns/layouts.dsds.yaml +1 -1
- package/docs/patterns/loading-states.dsds.yaml +1 -1
- package/docs/tokens/dtcg/README.md +5 -3
- package/docs/tokens/dtcg/css/color.css +1 -1
- package/docs/tokens/dtcg/css/index.css +0 -1
- package/docs/tokens/dtcg/css/typography.css +23 -25
- package/docs/tokens/dtcg/json/color.tokens.json +2 -2
- package/docs/tokens/dtcg/json/typography.tokens.json +45 -45
- package/docs/tokens/typography.dsds.yaml +25 -25
- package/package.json +2 -2
- package/src/components/avatar/avatar.props.ts +4 -2
- package/src/components/avatar-counter/avatarCounter.props.ts +4 -2
- package/src/components/avatar-stack/avatarStack.props.ts +4 -2
- package/src/components/badge/Badge.tsx +2 -5
- package/src/components/badge/badge.props.ts +15 -15
- package/src/components/box/Box.tsx +2 -5
- package/src/components/box/box.props.ts +18 -12
- package/src/components/button/Button.tsx +16 -5
- package/src/components/button/button.css +23 -25
- package/src/components/button/button.props.ts +49 -39
- package/src/components/card/Card.tsx +2 -2
- package/src/components/card/card.props.ts +19 -13
- package/src/components/checkbox/checkbox.props.ts +4 -2
- package/src/components/code/code.props.ts +8 -5
- package/src/components/container/Container.tsx +2 -2
- package/src/components/container/container.props.ts +17 -11
- package/src/components/dialog/Dialog.tsx +10 -5
- package/src/components/dialog/dialog.props.ts +11 -3
- package/src/components/divider/divider.props.ts +4 -2
- package/src/components/eyebrow/Eyebrow.tsx +10 -8
- package/src/components/eyebrow/eyebrow.props.ts +27 -12
- package/src/components/flex/Flex.tsx +2 -5
- package/src/components/flex/flex.props.ts +19 -12
- package/src/components/grid/Grid.tsx +2 -5
- package/src/components/grid/grid.props.ts +20 -16
- package/src/components/h-stack/HStack.tsx +2 -5
- package/src/components/h-stack/hStack.props.ts +7 -4
- package/src/components/heading/Heading.tsx +3 -6
- package/src/components/heading/heading.props.ts +20 -14
- package/src/components/hotkeys/hotkeys.props.ts +4 -2
- package/src/components/icon/icon.props.ts +3 -3
- package/src/components/icon-button/IconButton.tsx +2 -4
- package/src/components/icon-button/iconButton.props.ts +17 -17
- package/src/components/indicator/Indicator.tsx +2 -2
- package/src/components/indicator/indicator.props.ts +17 -11
- package/src/components/indicator-stack/IndicatorStack.tsx +2 -4
- package/src/components/indicator-stack/indicatorStack.props.ts +13 -7
- package/src/components/inline/Inline.tsx +2 -2
- package/src/components/inline/inline.props.ts +17 -11
- package/src/components/kbd/kbd.props.ts +4 -2
- package/src/components/link/link.props.ts +4 -2
- package/src/components/list/List.tsx +47 -97
- package/src/components/list/list.css +28 -9
- package/src/components/list/list.props.ts +59 -68
- package/src/components/popover/Popover.tsx +4 -3
- package/src/components/popover/popover.css +5 -3
- package/src/components/popover/popover.props.ts +16 -5
- package/src/components/press-area/PressArea.tsx +2 -4
- package/src/components/press-area/press-area.css +9 -3
- package/src/components/press-area/pressArea.props.ts +13 -7
- package/src/components/radio/radio.props.ts +2 -1
- package/src/components/select/select.props.ts +4 -2
- package/src/components/skip-to-content/skipToContent.props.ts +4 -2
- package/src/components/spinner/spinner.props.ts +4 -2
- package/src/components/switch/switch.props.ts +4 -2
- package/src/components/tabs/tabs.props.ts +8 -9
- package/src/components/text/Text.tsx +2 -5
- package/src/components/text/text.props.ts +23 -11
- package/src/components/text-area/textArea.props.ts +4 -5
- package/src/components/text-input/textInput.props.ts +5 -3
- package/src/components/tooltip/tooltip.props.ts +7 -5
- package/src/components/tooltip-group/TooltipGroup.tsx +2 -4
- package/src/components/tooltip-group/tooltipGroup.props.ts +13 -7
- package/src/components/v-stack/VStack.tsx +2 -5
- package/src/components/v-stack/vStack.props.ts +7 -4
- package/src/components/visually-hidden/VisuallyHidden.tsx +2 -4
- package/src/components/visually-hidden/visuallyHidden.props.ts +17 -11
- package/src/css/classes/system/typography.css +6 -6
- package/src/css/tokens/semantic.css +7 -7
- package/src/props/typography.ts +1 -5
- package/src/types/Interactive.ts +3 -1
- package/src/types/Polymorphic.ts +9 -0
- package/src/version.ts +2 -2
- package/docs/overview/designer-contribution-model.dsds.yaml +0 -77
- package/docs/overview/developer-contribution-model.dsds.yaml +0 -362
- package/docs/overview/resources.dsds.yaml +0 -34
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Component","clsx(textClassName, props.truncate && 'sui-overflow-hidden', className)","{\n size = 2,\n ...props\n}: TextProps<T> & Omit<ComponentPropsWithRef<T>, keyof TextProps<T>>","size = 2","...rest","clsx(\n 'sui-overflow-hidden',\n props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp',\n )","props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp'","clsx(\n textClassName,\n className?.replace('sui-line-clamp', '').replace('sui-text-overflow', ''),\n )","<Component\n className={clsx(textClassName, props.truncate && 'sui-overflow-hidden', className)}\n style={style}\n data-ui=\"Text\"\n {...rest}\n >\n {children}\n </Component>","{color = 'gray', size = 1, ...props}: AvatarProps","color = 'gray'","size = 1","<figure\n className={clsx(\n avatarClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius-full sui-position-relative',\n className,\n )}\n style={style}\n data-ui=\"Avatar\"\n {...rest}\n >\n {src && !error ? (\n <img\n className=\"sui-radius-full sui-width-full sui-height-full\"\n src={src}\n alt={ariaLabel || name}\n onError={() => setError(true)}\n />\n ) : (\n <Text role=\"img\" weight=\"semibold\" aria-label={ariaLabel || name}>\n {name.slice(0, 1)}\n </Text>\n )}\n </figure>","clsx(\n avatarClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius-full sui-position-relative',\n className,\n )","src && !error ? (\n <img\n className=\"sui-radius-full sui-width-full sui-height-full\"\n src={src}\n alt={ariaLabel || name}\n onError={() => setError(true)}\n />\n ) : (\n <Text role=\"img\" weight=\"semibold\" aria-label={ariaLabel || name}>\n {name.slice(0, 1)}\n </Text>\n )","\"Avatar\"","clsx(\n avatarCounterClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius-full sui-border',\n className,\n )","{size = 1, ...props}: AvatarCounterProps","size = 1","ariaLabel","...rest","<Text role=\"img\" weight=\"semibold\" aria-label={ariaLabel || `+ ${count} more`}>\n {count}\n </Text>","ariaLabel || `+ ${count} more`","<figure\n className={clsx(\n avatarCounterClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius-full sui-border',\n className,\n )}\n style={style}\n data-ui=\"AvatarCounter\"\n {...rest}\n >\n <Text role=\"img\" weight=\"semibold\" aria-label={ariaLabel || `+ ${count} more`}>\n {count}\n </Text>\n </figure>","clsx(avatarStackClassName, 'sui-display-flex', className)","style","\"AvatarStack\"","rest","(!length || length > maxLength) && (\n <li className=\"sui-display-flex\">\n <AvatarCounter\n count={!length ? 0 : length - maxLength}\n size={sizeProp}\n aria-label={\n !length\n ? 'No users'\n : `+ ${length - maxLength} more user${length - maxLength > 1 ? 's' : ''}`\n }\n />\n </li>\n )","visibleAvatars.map((child) => (\n <li key={child.key} className=\"sui-display-flex\">\n {cloneElement(child, {size: sizeProp})}\n </li>\n ))","{size = 1, ...props}: AvatarStackProps","size = 1","<ul\n className={clsx(avatarStackClassName, 'sui-display-flex', className)}\n style={style}\n data-ui=\"AvatarStack\"\n {...rest}\n >\n {(!length || length > maxLength) && (\n <li className=\"sui-display-flex\">\n <AvatarCounter\n count={!length ? 0 : length - maxLength}\n size={sizeProp}\n aria-label={\n !length\n ? 'No users'\n : `+ ${length - maxLength} more user${length - maxLength > 1 ? 's' : ''}`\n }\n />\n </li>\n )}\n\n {visibleAvatars.map((child) => (\n <li key={child.key} className=\"sui-display-flex\">\n {cloneElement(child, {size: sizeProp})}\n </li>\n ))}\n </ul>","Component","clsx(badgeClasses, className)","style","\"Badge\"","rest","IconStart &&\n (isValidElement(IconStart) ? (\n IconStart\n ) : (\n <Icon icon={IconStart} marginX={-1} marginY={-2} size={0} />\n ))","{\n tone = 'neutral',\n ...props\n}: BadgeProps<T> & Omit<ComponentPropsWithRef<T>, keyof BadgeProps<T>>","tone = 'neutral'","text && (\n <Text size={1} trim>\n {text}\n </Text>\n )","<Component className={clsx(badgeClasses, className)} style={style} data-ui=\"Badge\" {...rest}>\n {IconStart &&\n (isValidElement(IconStart) ? (\n IconStart\n ) : (\n <Icon icon={IconStart} marginX={-1} marginY={-2} size={0} />\n ))}\n {text && (\n <Text size={1} trim>\n {text}\n </Text>\n )}\n {children}\n </Component>","Component","clsx(boxClassName, className)","{\n display = 'block',\n ...props\n}: BoxProps<T> & Omit<ComponentPropsWithRef<T>, keyof BoxProps<T>>","display = 'block'","...rest","<Component className={clsx(boxClassName, className)} style={style} data-ui=\"Box\" {...rest}>\n {children}\n </Component>","Component","clsx(flexClassName, className)","{\n display = 'flex',\n ...props\n}: FlexProps<T> & Omit<ComponentPropsWithRef<T>, keyof FlexProps<T>>","display = 'flex'","...rest","<Component className={clsx(flexClassName, className)} style={style} data-ui=\"Flex\" {...rest}>\n {children}\n </Component>","Icon","SpinnerIcon","size","clsx(spinnerClassName, className)","{size = 2, ...props}: SpinnerProps","size = 2","...rest","<Icon\n icon={SpinnerIcon}\n size={size}\n className={clsx(spinnerClassName, className)}\n style={style}\n data-ui=\"Spinner\"\n role=\"status\"\n aria-label=\"Loading...\"\n {...rest}\n />","Component","clsx(\n buttonClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius2 sui-position-relative sui-overflow-hidden',\n className,\n )","children","IconEnd &&\n (isValidElement(IconEnd) ? (\n IconEnd\n ) : (\n <Icon icon={IconEnd} marginX={-1} marginY={-2} size={1} />\n ))","style","\"Button\"","disabled || loading","loading ? true : undefined","rest","loading && (\n <Flex\n position=\"absolute\"\n inset={0}\n alignItems=\"center\"\n justifyContent=\"center\"\n data-ui=\"Button-Spinner\"\n >\n <Spinner />\n </Flex>\n )","IconStart &&\n (isValidElement(IconStart) ? (\n IconStart\n ) : (\n <Icon icon={IconStart} marginX={-1} marginY={-2} size={1} />\n ))","text && (\n <Text size={1} weight=\"medium\" trim>\n {text}\n </Text>\n )","{\n density = 'regular',\n level = 'primary',\n tone = 'neutral',\n ...props\n}: ButtonProps<T> & Omit<ComponentPropsWithRef<T>, keyof ButtonProps<T>>","density = 'regular'","level = 'primary'","tone = 'neutral'","<Component\n className={clsx(\n buttonClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius2 sui-position-relative sui-overflow-hidden',\n className,\n )}\n style={style}\n data-ui=\"Button\"\n disabled={disabled || loading}\n aria-busy={loading ? true : undefined}\n {...rest}\n >\n {loading && (\n <Flex\n position=\"absolute\"\n inset={0}\n alignItems=\"center\"\n justifyContent=\"center\"\n data-ui=\"Button-Spinner\"\n >\n <Spinner />\n </Flex>\n )}\n\n {IconStart &&\n (isValidElement(IconStart) ? (\n IconStart\n ) : (\n <Icon icon={IconStart} marginX={-1} marginY={-2} size={1} />\n ))}\n\n {text && (\n <Text size={1} weight=\"medium\" trim>\n {text}\n </Text>\n )}\n\n {children}\n {IconEnd &&\n (isValidElement(IconEnd) ? (\n IconEnd\n ) : (\n <Icon icon={IconEnd} marginX={-1} marginY={-2} size={1} />\n ))}\n </Component>","Component","clsx(cardClassName, 'sui-border', className)","{\n density = 'regular',\n tone = 'default',\n ...props\n}: CardProps<T> & Omit<ComponentPropsWithRef<T>, keyof CardProps<T>>","density = 'regular'","tone = 'default'","...rest","<Component\n className={clsx(cardClassName, 'sui-border', className)}\n style={style}\n data-ui=\"Card\"\n {...rest}\n >\n {children}\n </Component>","indeterminate ? <RemoveIcon aria-hidden=\"true\" /> : <CheckmarkIcon aria-hidden=\"true\" />","<input\n type=\"checkbox\"\n className={checkboxInputClassName}\n ref={inputRef}\n aria-invalid={hasError || undefined}\n {...rest}\n />","hasError || undefined","<Box\n as=\"span\"\n className={clsx(checkboxClassName, className)}\n style={style}\n data-ui=\"Checkbox\"\n position=\"relative\"\n radius={2}\n width=\"17px\"\n height=\"17px\"\n >\n {indeterminate ? <RemoveIcon aria-hidden=\"true\" /> : <CheckmarkIcon aria-hidden=\"true\" />}\n\n <input\n type=\"checkbox\"\n className={checkboxInputClassName}\n ref={inputRef}\n aria-invalid={hasError || undefined}\n {...rest}\n />\n </Box>","Box","clsx(checkboxClassName, className)","\"span\"","Component","clsx(codeClassName, className)","{size = 2, ...props}: CodeProps","size = 2","...rest","language ? (\n <Suspense fallback={<code>{children}</code>}>\n <LazyRefractor language={language} value={children} />\n </Suspense>\n ) : (\n <code>{children}</code>\n )","<Component className={clsx(codeClassName, className)} style={style} data-ui=\"Code\" {...rest}>\n {language ? (\n <Suspense fallback={<code>{children}</code>}>\n <LazyRefractor language={language} value={children} />\n </Suspense>\n ) : (\n <code>{children}</code>\n )}\n </Component>","Component","clsx(containerClassName, className)","{\n marginX = 'auto',\n size = 2,\n ...props\n}: ContainerProps<T> & Omit<ComponentPropsWithRef<T>, keyof ContainerProps<T>>","marginX = 'auto'","size = 2","...rest","<Component\n className={clsx(containerClassName, className)}\n style={style}\n data-ui=\"Container\"\n {...rest}\n >\n {children}\n </Component>","Component","clsx(\n headingClassName,\n props.truncate && 'sui-overflow-hidden',\n 'sui-weight-bold',\n className,\n )","{\n size = 2,\n ...props\n}: HeadingProps & Omit<ComponentPropsWithRef<T>, keyof HeadingProps>","size = 2","...rest","clsx(\n 'sui-overflow-hidden',\n 'sui-weight-bold',\n props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp',\n )","props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp'","clsx(\n headingClassName,\n className?.replace('sui-line-clamp', '').replace('sui-text-overflow', ''),\n )","<Component\n className={clsx(\n headingClassName,\n props.truncate && 'sui-overflow-hidden',\n 'sui-weight-bold',\n className,\n )}\n style={style}\n data-ui=\"Heading\"\n {...rest}\n >\n {children}\n </Component>","Button","Component","clsx(iconButtonClassName, className)","IconProp","...rest","<Icon icon={IconProp} margin={-2} size={1} />","<Button\n as={Component}\n className={clsx(iconButtonClassName, className)}\n style={style}\n data-ui=\"IconButton\"\n {...rest}\n >\n <Icon icon={IconProp} margin={-2} size={1} />\n </Button>","{open = false, size = 0, ...props}: DialogProps","open = false","size = 0","() => {\n const dialogElement = dialogRef.current\n if (!dialogElement) return\n\n // `open` = `open` prop\n // dialogElement.open = the `open` attribute on the HTML dialog element\n // The prop and the attribute are manipulated independently, thus they\n // can get out of sync if not handled within this effect.\n if (open) {\n if (!dialogElement.open) {\n dialogElement.showModal()\n }\n } else {\n if (dialogElement.open) {\n dialogElement.close()\n }\n }\n\n // Ensure the dialog is closed (and thus its `open` attribute updated)\n // when the component is unmounted.\n return () => {\n dialogElement.close()\n }\n }","[open]","header ? (\n <Heading as=\"h2\" trim size={1} id={headerId}>\n {header}\n </Heading>\n ) : (\n <div />\n )","<IconButton\n aria-label=\"Close\"\n level=\"tertiary\"\n icon={CloseIcon}\n onClick={() => dialogRef.current?.close()}\n />","<Flex flexShrink={0} justifyContent=\"space-between\" alignItems=\"center\">\n {header ? (\n <Heading as=\"h2\" trim size={1} id={headerId}>\n {header}\n </Heading>\n ) : (\n <div />\n )}\n <IconButton\n aria-label=\"Close\"\n level=\"tertiary\"\n icon={CloseIcon}\n onClick={() => dialogRef.current?.close()}\n />\n </Flex>","<dialog\n {...rest}\n ref={dialogRef}\n closedby=\"any\"\n aria-labelledby={header ? headerId : undefined}\n onClose={onClose}\n className={clsx(dialogClasses, className)}\n style={style}\n data-ui=\"Dialog\"\n >\n <Flex flexShrink={0} justifyContent=\"space-between\" alignItems=\"center\">\n {header ? (\n <Heading as=\"h2\" trim size={1} id={headerId}>\n {header}\n </Heading>\n ) : (\n <div />\n )}\n <IconButton\n aria-label=\"Close\"\n level=\"tertiary\"\n icon={CloseIcon}\n onClick={() => dialogRef.current?.close()}\n />\n </Flex>\n {children}\n </dialog>","header ? headerId : undefined","clsx(dialogClasses, className)","\"any\"","Box","rest","clsx(dialogContentClassName, className)","<Box\n {...rest}\n className={clsx(dialogContentClassName, className)}\n style={style}\n data-ui=\"DialogContent\"\n flexGrow={1}\n overflowY=\"auto\"\n >\n {children}\n </Box>","clsx(dialogFooterClassName, className)","<Box\n {...rest}\n className={clsx(dialogFooterClassName, className)}\n style={style}\n data-ui=\"DialogFooter\"\n flexShrink={0}\n >\n {children}\n </Box>","clsx(dividerClassName, 'sui-border-none sui-border-top', className)","...rest","<hr\n className={clsx(dividerClassName, 'sui-border-none sui-border-top', className)}\n style={style}\n data-ui=\"Divider\"\n {...rest}\n />","Component","clsx(eyebrowClassName, props.truncate && 'sui-overflow-hidden', className)","{\n size = 2,\n weight = 'semibold',\n ...props\n}: EyebrowProps<T> & Omit<ComponentPropsWithRef<T>, keyof EyebrowProps<T>>","size = 2","weight = 'semibold'","...rest","clsx(\n 'sui-overflow-hidden',\n props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp',\n )","props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp'","clsx(\n eyebrowClassName,\n className?.replace('sui-line-clamp', '').replace('sui-text-overflow', ''),\n )","<Component\n className={clsx(eyebrowClassName, props.truncate && 'sui-overflow-hidden', className)}\n style={style}\n data-ui=\"Eyebrow\"\n {...rest}\n >\n {children}\n </Component>","Component","clsx(gridClassName, className)","{\n display = 'grid',\n ...props\n}: GridProps<T> & Omit<ComponentPropsWithRef<T>, keyof GridProps<T>>","display = 'grid'","...rest","<Component className={clsx(gridClassName, className)} style={style} data-ui=\"Grid\" {...rest}>\n {children}\n </Component>","{\n className,\n ...props\n}: HStackProps<T> & Omit<ComponentPropsWithRef<T>, keyof HStackProps<T>>","clsx(hStackClassName, className)","<Flex\n className={clsx(hStackClassName, className)}\n data-ui=\"HStack\"\n display=\"inline-flex\"\n alignItems=\"center\"\n flexWrap=\"wrap\"\n {...(props as ComponentProps)}\n />","props as ComponentProps","Text","\"kbd\"","clsx(kbdClasses, className)","...rest","<Text\n as=\"kbd\"\n className={clsx(kbdClasses, className)}\n style={style}\n data-ui=\"KBD\"\n size={0}\n weight=\"semibold\"\n muted\n trim\n {...rest}\n >\n {text}\n </Text>","clsx(hotkeysClasses, className)","{keys, ...props}: HotkeysProps","...rest","keys.map((key) => (\n <KBD key={key} text={key} />\n ))","(key) => (\n <KBD key={key} text={key} />\n )","<kbd className={clsx(hotkeysClasses, className)} style={style} data-ui=\"Hotkeys\" {...rest}>\n {keys.map((key) => (\n <KBD key={key} text={key} />\n ))}\n </kbd>","Box","Component","clsx(indicatorClassName, className)","{\n tone = 'neutral',\n ...props\n}: IndicatorProps<T> & Omit<ComponentPropsWithRef<T>, keyof IndicatorProps<T>>","tone = 'neutral'","...rest","<Box\n as={Component}\n className={clsx(indicatorClassName, className)}\n style={style}\n data-ui=\"Indicator\"\n width=\"5px\"\n height=\"5px\"\n radius=\"full\"\n aria-label={ariaLabel}\n aria-hidden={ariaLabel ? undefined : true}\n role={ariaLabel ? 'img' : undefined}\n {...rest}\n >\n {children}\n </Box>","ariaLabel ? undefined : true","ariaLabel ? 'img' : undefined","HStack","Component","clsx(indicatorStackClassName, className)","...rest","<HStack\n as={Component}\n className={clsx(indicatorStackClassName, className)}\n style={style}\n data-ui=\"IndicatorStack\"\n {...rest}\n >\n {children}\n </HStack>","Component","clsx(inlineClassName, className)","...rest","(child) => child && <div className={childrenClassName}>{child}</div>","<Component\n className={clsx(inlineClassName, className)}\n style={style}\n data-ui=\"Inline\"\n {...rest}\n >\n {children}\n </Component>","clsx(linkClassName, className)","{underlined = true, ...props}: LinkProps","underlined = true","...rest","openInNewTab ? {target: '_blank', rel: 'noopener noreferrer'} : {}","<a\n className={clsx(linkClassName, className)}\n style={style}\n data-ui=\"Link\"\n {...(openInNewTab ? {target: '_blank', rel: 'noopener noreferrer'} : {})}\n {...rest}\n >\n {children}\n </a>","Component","clsx(pressAreaClassName, 'sui-width-full', className)","...rest","<Component\n className={clsx(pressAreaClassName, 'sui-width-full', className)}\n style={style}\n data-ui=\"PressArea\"\n {...rest}\n >\n {children}\n </Component>","{\n className,\n ...props\n}: VStackProps<T> & Omit<ComponentPropsWithRef<T>, keyof VStackProps<T>>","clsx(vStackClassName, className)","<Flex\n className={clsx(vStackClassName, className)}\n data-ui=\"VStack\"\n flexDirection=\"column\"\n {...(props as ComponentProps)}\n />","props as ComponentProps","VStack","Component","clsx(listClassName, className)","...rest","<VStack\n as={Component}\n className={clsx(listClassName, className)}\n style={style}\n data-ui=\"List\"\n {...rest}\n >\n {children}\n </VStack>","clsx(\n listItemClassName,\n 'sui-width-full sui-display-flex sui-align-items-center',\n className,\n )","{density = 'regular', ...props}: ListItemProps","density = 'regular'","<Flex flexGrow={1} gap=\"inherit\">\n {children}\n </Flex>","<li\n className={clsx(\n listItemClassName,\n 'sui-width-full sui-display-flex sui-align-items-center',\n className,\n )}\n style={style}\n data-ui=\"ListItem\"\n {...rest}\n >\n {start}\n\n <Flex flexGrow={1} gap=\"inherit\">\n {children}\n </Flex>\n\n {end}\n </li>","PressArea","clsx(\n listButtonItemClassName,\n 'sui-width-full sui-display-flex sui-align-items-center sui-radius2',\n className,\n )","{\n density = 'regular',\n ...props\n}: ListButtonItemProps<T> & Omit<ComponentPropsWithRef<T>, keyof ListButtonItemProps<T>>","<Flex flexGrow={1} gap=\"inherit\">\n {children}\n </Flex>","<li>\n <PressArea\n as={Component}\n className={clsx(\n listButtonItemClassName,\n 'sui-width-full sui-display-flex sui-align-items-center sui-radius2',\n className,\n )}\n style={style}\n data-ui=\"ListButtonItem\"\n data-selected={selected}\n {...rest}\n >\n {start}\n\n <Flex flexGrow={1} gap=\"inherit\">\n {children}\n </Flex>\n\n {end}\n </PressArea>\n </li>","Flex","clsx(listItemTextClassName, className)","title && (\n <Text size={1} weight=\"medium\" trim truncate={1}>\n {title}\n </Text>\n )","subtitle && (\n <Text size={1} muted trim truncate={1}>\n {subtitle}\n </Text>\n )","<Flex\n as={Component}\n className={clsx(listItemTextClassName, className)}\n style={style}\n data-ui=\"ListItemText\"\n flexDirection=\"column\"\n justifyContent=\"center\"\n gap={2}\n flexGrow={1}\n {...rest}\n >\n {title && (\n <Text size={1} weight=\"medium\" trim truncate={1}>\n {title}\n </Text>\n )}\n\n {subtitle && (\n <Text size={1} muted trim truncate={1}>\n {subtitle}\n </Text>\n )}\n </Flex>","clsx(listItemImageClassName, 'sui-radius2', className)","<img\n className={clsx(listItemImageClassName, 'sui-radius2', className)}\n style={style}\n data-ui=\"ListItemImage\"\n {...rest}\n />","() => () => {}","() => true","() => false","() => {}","{\n placement = 'bottom',\n ...props\n}: PopoverProps & {\n triggerProps?: Record<string, unknown>\n}","placement = 'bottom'","(e: ToggleEvent) => {\n setOpen(e.newState === 'open')\n }","<>\n {trigger}\n\n {renderPortal(\n <Activity mode={open ? 'visible' : 'hidden'}>\n <div\n className={clsx(\n popoverClassName,\n 'sui-px2 sui-py1 sui-radius2 sui-position-fixed sui-shadow2',\n className,\n )}\n style={{\n ...style,\n positionAnchor: `--anchor-${anchorName || id}`,\n }}\n data-ui=\"Popover\"\n popover=\"auto\"\n id={id}\n onToggle={handleToggle}\n {...rest}\n >\n {content}\n </div>\n </Activity>,\n isClient,\n portal,\n )}\n </>","renderPortal(\n <Activity mode={open ? 'visible' : 'hidden'}>\n <div\n className={clsx(\n popoverClassName,\n 'sui-px2 sui-py1 sui-radius2 sui-position-fixed sui-shadow2',\n className,\n )}\n style={{\n ...style,\n positionAnchor: `--anchor-${anchorName || id}`,\n }}\n data-ui=\"Popover\"\n popover=\"auto\"\n id={id}\n onToggle={handleToggle}\n {...rest}\n >\n {content}\n </div>\n </Activity>,\n isClient,\n portal,\n )","clsx(radioClassName, className)","<input type=\"radio\" className={radioInputClassName} {...rest} />","<Box\n as=\"span\"\n className={clsx(radioClassName, className)}\n style={style}\n data-ui=\"Radio\"\n position=\"relative\"\n radius=\"full\"\n width=\"17px\"\n height=\"17px\"\n >\n <input type=\"radio\" className={radioInputClassName} {...rest} />\n </Box>","{density = 'regular', hasError = false, ...props}: SelectProps","density = 'regular'","hasError = false","{...style, anchorName}","<select\n data-ui=\"Select\"\n className={selectClasses}\n style={{...style, anchorName}}\n {...rest}\n aria-invalid={hasError || undefined}\n >\n {children}\n </select>","hasError || undefined","{positionAnchor: anchorName}","<Icon icon={SelectIcon} size={1} />","<div className={iconClasses} data-ui=\"Select-icon\" style={{positionAnchor: anchorName}}>\n <Icon icon={SelectIcon} size={1} />\n </div>","<>\n <select\n data-ui=\"Select\"\n className={selectClasses}\n style={{...style, anchorName}}\n {...rest}\n aria-invalid={hasError || undefined}\n >\n {children}\n </select>\n <div className={iconClasses} data-ui=\"Select-icon\" style={{positionAnchor: anchorName}}>\n <Icon icon={SelectIcon} size={1} />\n </div>\n </>","Component","clsx(visuallyHiddenClassName, className)","...rest","<Component\n className={clsx(visuallyHiddenClassName, className)}\n style={style}\n data-ui=\"VisuallyHidden\"\n {...rest}\n >\n {children}\n </Component>","VisuallyHidden","Link","false","clsx(\n skipToContentClassName,\n 'sui-position-absolute sui-top2 sui-left2 sui-display-inline-block sui-z-index sui-py2 sui-px3 sui-radius2 sui-text-body1',\n className,\n )","...rest","<Text size={1}>{label}</Text>","<VisuallyHidden\n as={Link}\n underlined={false}\n className={clsx(\n skipToContentClassName,\n 'sui-position-absolute sui-top2 sui-left2 sui-display-inline-block sui-z-index sui-py2 sui-px3 sui-radius2 sui-text-body1',\n className,\n )}\n style={style}\n data-ui=\"SkipToContent\"\n visibleOnFocus\n {...rest}\n >\n <Text size={1}>{label}</Text>\n </VisuallyHidden>","Flex","\"span\"","clsx(switchClassName, className)","...rest","<input\n type=\"checkbox\"\n role=\"switch\"\n className={switchInputClassName}\n aria-invalid={hasError || undefined}\n {...rest}\n />","hasError || undefined","<Flex\n as=\"span\"\n className={clsx(switchClassName, className)}\n style={style}\n data-ui=\"Switch\"\n position=\"relative\"\n alignItems=\"center\"\n radius={6}\n >\n <input\n type=\"checkbox\"\n role=\"switch\"\n className={switchInputClassName}\n aria-invalid={hasError || undefined}\n {...rest}\n />\n </Flex>","{value, onValueChange, ...props}: TabsProps","{value, onValueChange, tabsRootId}","<div className={clsx(tabsClassName, className)} style={style} data-ui=\"Tabs\" {...rest}>\n {children}\n </div>","clsx(tabsClassName, className)","<TabsContext.Provider value={{value, onValueChange, tabsRootId}}>\n <div className={clsx(tabsClassName, className)} style={style} data-ui=\"Tabs\" {...rest}>\n {children}\n </div>\n </TabsContext.Provider>","Provider","TabsContext.Provider","getProps(props, tabsListProps)","<HStack\n {...rest}\n role=\"tablist\"\n className={className}\n style={style}\n data-ui=\"Tabs.List\"\n gap={1}\n onKeyDown={handleKeyDown}\n >\n {children}\n </HStack>","{value, tone = 'neutral', ...props}: TabProps","tone = 'neutral'","getTabId(tabsRootId, value)","getPanelId(tabsRootId, value)","<button\n className={clsx(tabClasses, className)}\n style={style}\n {...rest}\n data-ui=\"Tabs.Tab\"\n type=\"button\"\n role=\"tab\"\n id={getTabId(tabsRootId, value)}\n aria-controls={getPanelId(tabsRootId, value)}\n aria-selected={selected}\n /* Only the active tab should receive focus via Tab key; others focus via arrow keys */\n tabIndex={selected ? 0 : -1}\n onClick={(e) => {\n props.onClick?.(e)\n onValueChange(value)\n }}\n >\n {IconProp &&\n (isValidElement(IconProp) ? (\n IconProp\n ) : (\n <Icon icon={IconProp} marginX={-1} marginY={-2} size={1} />\n ))}\n {label}\n </button>","IconProp &&\n (isValidElement(IconProp) ? (\n IconProp\n ) : (\n <Icon icon={IconProp} marginX={-1} marginY={-2} size={1} />\n ))","clsx(tabClasses, className)","selected ? 0 : -1","(e) => {\n props.onClick?.(e)\n onValueChange(value)\n }","\"Tabs.Tab\"","\"button\"","\"tab\"","getProps(props, tabsPanelProps)","{value, ...props}: TabsPanelProps","<Box\n className={className}\n style={style}\n // Default tabIndex for panels without focusable content — consumer overrides if their panel content is focusable\n tabIndex={0}\n {...rest}\n data-ui=\"Tabs.Panel\"\n display={selected ? 'block' : 'none'}\n role=\"tabpanel\"\n id={getPanelId(tabsRootId, value)}\n aria-labelledby={getTabId(tabsRootId, value)}\n >\n {children}\n </Box>","selected ? 'block' : 'none'","clsx(textAreaClassName, 'sui-radius2', 'sui-width-full', className)","{\n autoResize,\n density = 'regular',\n hasError,\n rows = 5,\n ...props\n}: TextAreaProps","density = 'regular'","rows = 5","...rest","<textarea\n className={textAreaClasses}\n style={style}\n data-ui=\"TextArea\"\n {...rest}\n aria-invalid={hasError || undefined}\n />","hasError || undefined","clsx(textInputClassName, 'sui-radius2', 'sui-width-full', className)","{\n density = 'regular',\n hasError,\n type = 'text',\n ...props\n}: TextInputProps","density = 'regular'","type = 'text'","...rest","<input\n type={type}\n className={textInputClasses}\n style={style}\n data-ui=\"TextInput\"\n {...rest}\n aria-invalid={hasError || undefined}\n />","hasError || undefined","{\n placement = 'bottom',\n ...props\n}: TooltipProps & {\n triggerProps?: Record<string, unknown>\n}","placement = 'bottom'","() => {\n setDismissed(false)\n }","(e: ToggleEvent) => {\n if (e.newState === 'open' && dismissed) {\n e.preventDefault()\n }\n }","<>\n {trigger}\n\n {renderPortal(\n <div\n className={clsx(\n tooltipClassName,\n 'sui-p2 sui-radius2 sui-position-fixed sui-shadow2 sui-text-body1 sui-text-trim-edge',\n className,\n )}\n style={{\n ...style,\n positionAnchor: `--anchor-${anchorName || id}`,\n }}\n data-ui=\"Tooltip\"\n role=\"tooltip\"\n popover=\"hint\"\n id={id}\n onBeforeToggle={handleBeforeToggle}\n {...rest}\n >\n {content}\n </div>,\n isClient,\n portal,\n )}\n </>","renderPortal(\n <div\n className={clsx(\n tooltipClassName,\n 'sui-p2 sui-radius2 sui-position-fixed sui-shadow2 sui-text-body1 sui-text-trim-edge',\n className,\n )}\n style={{\n ...style,\n positionAnchor: `--anchor-${anchorName || id}`,\n }}\n data-ui=\"Tooltip\"\n role=\"tooltip\"\n popover=\"hint\"\n id={id}\n onBeforeToggle={handleBeforeToggle}\n {...rest}\n >\n {content}\n </div>,\n isClient,\n portal,\n )","(e: TransitionEvent) => {\n const tooltip = (e.target as Element).closest('[data-ui=\"Tooltip\"]')\n\n if (!tooltip) {\n return\n }\n\n if (e.propertyName === 'opacity' && window.getComputedStyle(tooltip).opacity !== '0') {\n setIsActive(true)\n }\n }","() => {\n setIsActive(false)\n }","(e: FocusEvent) => {\n if (ref.current && ref.current.contains(e.relatedTarget as Node)) {\n return\n }\n\n setIsActive(false)\n }","e","isActive && {\n '--tooltip-delay-group': '0ms',\n }","{\n ...style,\n ...(isActive && {\n '--tooltip-delay-group': '0ms',\n }),\n }","<Component\n className={clsx(tooltipGroupClassName, className)}\n style={{\n ...style,\n ...(isActive && {\n '--tooltip-delay-group': '0ms',\n }),\n }}\n data-ui=\"TooltipGroup\"\n ref={ref}\n onTransitionEnd={handleTransitionEnd}\n onMouseLeave={handleMouseLeave}\n onBlur={handleBlur}\n {...rest}\n >\n {children}\n </Component>","clsx(tooltipGroupClassName, className)"],"sources":["../src/utils/getProps.ts","../src/version.ts","../src/utils/suffixClassName.ts","../src/types/FontWeight.ts","../src/types/TextAlign.ts","../src/types/Space.ts","../src/props/margin.ts","../src/types/Tone.ts","../src/props/tone.ts","../src/props/typography.ts","../src/types/Text.ts","../src/components/text/text.props.ts","../src/components/text/Text.tsx","../src/props/height.ts","../src/types/Avatar.ts","../src/components/avatar/avatar.props.ts","../src/components/avatar/Avatar.tsx","../src/components/avatar-counter/avatarCounter.props.ts","../src/components/avatar-counter/AvatarCounter.tsx","../src/components/avatar-stack/avatarStack.props.ts","../src/components/avatar-stack/AvatarStack.tsx","../src/types/Icon.ts","../src/components/icon/icon.props.ts","../src/components/icon/Icon.tsx","../src/components/badge/badge.props.ts","../src/components/badge/Badge.tsx","../src/types/Radius.ts","../src/props/border.ts","../src/props/flexChild.ts","../src/props/gridChild.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/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/Flex.ts","../src/props/flexParent.ts","../src/props/gap.ts","../src/components/flex/flex.props.ts","../src/components/flex/Flex.tsx","../src/components/spinner/spinner.props.ts","../src/components/spinner/Spinner.tsx","../src/types/Button.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/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/types/Heading.ts","../src/components/heading/heading.props.ts","../src/components/heading/Heading.tsx","../src/components/icon-button/iconButton.props.ts","../src/components/icon-button/IconButton.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/Grid.ts","../src/props/gridParent.ts","../src/components/grid/grid.props.ts","../src/components/grid/Grid.tsx","../src/components/h-stack/HStack.tsx","../src/components/kbd/kbd.props.ts","../src/components/kbd/KBD.tsx","../src/components/hotkeys/hotkeys.props.ts","../src/components/hotkeys/Hotkeys.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/link/link.props.ts","../src/components/link/Link.tsx","../src/components/press-area/pressArea.props.ts","../src/components/press-area/PressArea.tsx","../src/components/v-stack/VStack.tsx","../src/components/list/list.props.ts","../src/components/list/List.tsx","../src/hooks/useIsClient.ts","../src/utils/mergeTriggerProps.ts","../src/utils/renderPortal.tsx","../src/types/Placement.ts","../src/props/placement.ts","../src/components/popover/popover.props.ts","../src/components/popover/Popover.tsx","../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/visually-hidden/visuallyHidden.props.ts","../src/components/visually-hidden/VisuallyHidden.tsx","../src/components/skip-to-content/skipToContent.props.ts","../src/components/skip-to-content/SkipToContent.tsx","../src/components/switch/switch.props.ts","../src/components/switch/Switch.tsx","../src/components/tabs/tabs.props.ts","../src/components/tabs/Tabs.tsx","../src/components/text-area/textArea.props.ts","../src/components/text-area/TextArea.tsx","../src/components/text-input/textInput.props.ts","../src/components/text-input/TextInput.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"],"sourcesContent":["import clsx from 'clsx'\n\nimport {type PropDef} from '../types/PropDef'\n\nconst PREFIX = 'sui'\nconst BREAKPOINTS_LENGTH = 6\n\nexport interface ComponentProps {\n className?: string | undefined\n style?: React.CSSProperties | undefined\n [key: string]: any\n}\n\nexport function getProps(\n componentProps?: ComponentProps,\n propDefs?: Record<string, PropDef>,\n): ComponentProps {\n const {allComponentProps, allPropDefs} = flattenCompositeProps(componentProps, propDefs)\n const restProps: ComponentProps = {}\n let className = componentProps?.className || ''\n let style = componentProps?.style || {}\n\n for (const key in allComponentProps) {\n const propDef = allPropDefs?.[key]\n const propValue = allComponentProps[key]\n\n if (\n !((propDef && 'className' in propDef && propDef.className) || propDef?.type === 'conditional')\n ) {\n restProps[key] = propValue\n continue\n }\n\n if (Array.isArray(propValue)) {\n // @TODO: consider fixing this O(n^2) time complexity\n // oxlint-disable-next-line no-accumulating-spread\n for (let i = 0, len = Math.min(propValue.length, BREAKPOINTS_LENGTH); i < len; i++) {\n const resolvedPropDef = getResolvedPropDef(propValue[i], propDef)\n\n if (!resolvedPropDef) {\n continue\n }\n\n className = clsx(className, getClassName(propValue[i], resolvedPropDef, i))\n style = {...style, ...getStyle(propValue[i], resolvedPropDef, i)}\n }\n } else {\n const resolvedPropDef = getResolvedPropDef(propValue, propDef)\n\n if (!resolvedPropDef) {\n restProps[key] = propValue\n continue\n }\n\n className = clsx(className, getClassName(propValue, resolvedPropDef))\n style = {...style, ...getStyle(propValue, resolvedPropDef)}\n }\n }\n\n return {...restProps, className, style}\n}\n\nfunction getResolvedPropDef(propValue: any, propDef?: PropDef) {\n if (propDef?.type !== 'conditional') {\n return propDef\n }\n\n const resolvedPropDef = propDef.resolve(propValue)\n\n if (!(resolvedPropDef && 'className' in resolvedPropDef && resolvedPropDef.className)) {\n return null\n }\n\n return resolvedPropDef\n}\n\nfunction getClassName(propValue: any, propDef: PropDef, bp?: number) {\n if (propDef.type === 'union' && propDef.values?.includes(propValue)) {\n /* Note: This may need updating depending on the final CSS classname formatting */\n return `${PREFIX}-${propDef.className}${typeof propValue === 'string' ? `-${propValue}` : propValue}${bp ? `-bp-${bp}` : ''}`\n }\n\n if (propDef.type === 'string' || propDef.type === 'number') {\n return `${PREFIX}-${propDef.className}${bp ? `-bp-${bp}` : ''}`\n }\n\n if (propDef.type === 'boolean') {\n if (propValue) {\n return `${PREFIX}-${propDef.className}${bp ? `-bp-${bp}` : ''}`\n }\n\n if (!propValue && propDef.inverseClassName) {\n return `${PREFIX}-${propDef.inverseClassName}${bp ? `-bp-${bp}` : ''}`\n }\n }\n\n return ''\n}\n\nfunction getStyle(propValue: any, propDef: PropDef, bp?: number) {\n if ((propDef.type === 'string' || propDef.type === 'number') && propDef.variable) {\n return {\n [`${propDef.variable}${bp ? `-bp-${bp}` : ''}`]: propValue,\n }\n }\n\n return {}\n}\n\nexport function flattenCompositeProps(\n componentProps?: ComponentProps,\n propDefs?: Record<string, PropDef>,\n) {\n const props = {\n allComponentProps: {} as ComponentProps,\n allPropDefs: {} as Record<string, PropDef>,\n }\n\n for (const key in componentProps) {\n if (propDefs?.[key] && propDefs?.[key].type === 'composite') {\n for (const compositeKey in propDefs?.[key].composition) {\n const compositeValue = getCompositeValue(componentProps[key], propDefs[key], compositeKey)\n\n props.allComponentProps[compositeKey] = compositeValue\n props.allPropDefs[compositeKey] = propDefs[key].composition[compositeKey]\n ?.propDef as PropDef\n }\n } else {\n props.allComponentProps[key] = componentProps[key]\n props.allPropDefs[key] = propDefs?.[key] as PropDef\n }\n }\n\n return props\n}\n\nfunction getCompositeValue(propValue: any, propDef: PropDef, key: string) {\n if (!('composition' in propDef)) {\n return\n }\n\n const mapping = propDef.composition[key]?.['mapping']\n let compositeValue\n\n if (Array.isArray(propValue)) {\n compositeValue = []\n\n for (let i = 0, len = propValue.length; i < len; i++) {\n compositeValue[i] = mapping?.[propValue[i]]\n }\n } else {\n compositeValue = mapping?.[propValue]\n }\n\n return compositeValue\n}\n","// This file is generated by scripts/write-version.js. Do not edit.\nexport const VERSION = '500alpha23'\nexport const HASH = '79941a'\n","import {HASH} from '../version'\n\nexport function suffixClassName(className: string) {\n return `${className}-${HASH}`\n}\n","export const FONT_WEIGHT = ['regular', 'medium', 'semibold', 'bold'] as const\n/** @public */\nexport type FontWeight = (typeof FONT_WEIGHT)[number]\n","export const TEXT_ALIGN = ['left', 'center', 'right'] as const\n/** @public */\nexport type TextAlign = (typeof TEXT_ALIGN)[number]\n","export const SPACE = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] as const\n/** @public */\nexport type Space = (typeof SPACE)[number]\n\nexport const SPACE_AUTO = [...SPACE, 'auto'] as const\n/** @public */\nexport type SpaceAuto = (typeof SPACE_AUTO)[number]\n\nexport const SPACE_INHERIT = [...SPACE, 'inherit'] as const\n/** @public */\nexport type SpaceInherit = (typeof SPACE_INHERIT)[number]\n\nexport const SPACE_AUTO_NEGATIVE = [-9, -8, -7, -6, -5, -4, -3, -2, -1, ...SPACE, 'auto'] as const\n/** @public */\nexport type SpaceAutoNegative = (typeof SPACE_AUTO_NEGATIVE)[number]\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\nimport {SPACE_AUTO_NEGATIVE, type SpaceAutoNegative} from '../types/Space'\n\n/** @public */\nexport type MarginProps = {\n /** CSS **margin** property */\n margin?: Responsive<SpaceAutoNegative>\n /** CSS **margin-left** and **margin-right** properties */\n marginX?: Responsive<SpaceAutoNegative>\n /** CSS **margin-top** and **margin-bottom** properties */\n marginY?: Responsive<SpaceAutoNegative>\n /** CSS **margin-top** property */\n marginTop?: Responsive<SpaceAutoNegative>\n /** CSS **margin-right** property */\n marginRight?: Responsive<SpaceAutoNegative>\n /** CSS **margin-bottom** property */\n marginBottom?: Responsive<SpaceAutoNegative>\n /** CSS **margin-left** property */\n marginLeft?: Responsive<SpaceAutoNegative>\n}\n\nexport const marginProps: Record<string, PropDef> = {\n margin: {\n type: 'union',\n className: 'm',\n values: SPACE_AUTO_NEGATIVE,\n },\n marginX: {\n type: 'union',\n className: 'mx',\n values: SPACE_AUTO_NEGATIVE,\n },\n marginY: {\n type: 'union',\n className: 'my',\n values: SPACE_AUTO_NEGATIVE,\n },\n marginTop: {\n type: 'union',\n className: 'mt',\n values: SPACE_AUTO_NEGATIVE,\n },\n marginRight: {\n type: 'union',\n className: 'mr',\n values: SPACE_AUTO_NEGATIVE,\n },\n marginBottom: {\n type: 'union',\n className: 'mb',\n values: SPACE_AUTO_NEGATIVE,\n },\n marginLeft: {\n type: 'union',\n className: 'ml',\n values: SPACE_AUTO_NEGATIVE,\n },\n}\n","export const TONE = ['neutral', 'positive', 'suggest', 'caution', 'critical'] as const\nexport const TONE_WITH_DEFAULT = ['default', ...TONE]\n/** @public */\nexport type Tone = (typeof TONE)[number]\nexport type ToneWithDefault = (typeof TONE_WITH_DEFAULT)[number]\n","import {type PropDef} from '../types/PropDef'\nimport {TONE_WITH_DEFAULT, TONE, type ToneWithDefault, type Tone} from '../types/Tone'\n\nexport type ToneProps = {\n tone?: Tone\n}\n\nexport const toneProps: Record<string, PropDef> = {\n tone: {\n type: 'union',\n className: 'tone',\n values: TONE,\n },\n}\n\nexport type ToneWithDefaultProps = {\n tone?: ToneWithDefault\n}\n\nexport const toneWithDefaultProps: Record<string, PropDef> = {\n tone: {\n type: 'union',\n className: 'tone',\n values: TONE_WITH_DEFAULT,\n },\n}\n","import {FONT_WEIGHT, type FontWeight} from '../types/FontWeight'\nimport {type PropDef} from '../types/PropDef'\nimport type {Responsive} from '../types/Responsive'\nimport {TEXT_ALIGN, type TextAlign} from '../types/TextAlign'\nimport {type MarginProps, marginProps} from './margin'\nimport {type ToneProps, toneProps} from './tone'\n\n/** @public */\nexport interface TypographyProps extends MarginProps, ToneProps {\n /** CSS **text-align** property */\n align?: Responsive<TextAlign>\n /** CSS **color** property */\n muted?: boolean\n /** CSS **text-box-trim** property */\n trim?: boolean\n /** Number of lines to truncate */\n truncate?: Responsive<number>\n /** CSS **font-weight** property */\n weight?: FontWeight\n}\n\nexport const typographyProps: Record<string, PropDef> = {\n align: {\n type: 'union',\n className: 'text',\n values: TEXT_ALIGN,\n },\n muted: {\n type: 'boolean',\n className: 'text-muted',\n inverseClassName: 'text-default',\n },\n trim: {\n type: 'boolean',\n className: 'text-trim',\n inverseClassName: 'text-trim-none',\n },\n truncate: {\n type: 'conditional',\n resolve: (value) => {\n if (value === 1) {\n return {\n type: 'number',\n className: 'text-overflow',\n }\n } else {\n return {\n type: 'number',\n className: 'line-clamp',\n variable: '--line-clamp',\n }\n }\n },\n },\n weight: {\n type: 'union',\n className: 'weight',\n values: FONT_WEIGHT,\n },\n ...marginProps,\n ...toneProps,\n}\n","export const TEXT_SIZE = [0, 1, 2, 3, 4] as const\n/** @public */\nexport type TextSize = (typeof TEXT_SIZE)[number]\n","import {type TypographyProps, typographyProps} from '../../props/typography'\nimport {type PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\nimport {TEXT_SIZE, type TextSize} from '../../types/Text'\n\n/** @public */\nexport interface TextProps<T extends React.ElementType = 'span'> extends TypographyProps {\n /**\n * HTML element to render.\n */\n as?: T\n /**\n * Sets font size.\n */\n size?: Responsive<TextSize>\n}\n\nexport const textProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n size: {\n type: 'union',\n className: 'text-body',\n values: TEXT_SIZE,\n },\n ...typographyProps,\n}\n","import clsx from 'clsx'\nimport type {ComponentPropsWithRef, ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type TextProps, textProps} from './text.props'\n\nconst textClassName = suffixClassName('sui-Text')\n\n/** @public */\nexport function Text<T extends ElementType = 'span'>({\n size = 2,\n ...props\n}: TextProps<T> & Omit<ComponentPropsWithRef<T>, keyof TextProps<T>>) {\n const {as, children, className, style, ...rest} = getProps({size, ...props}, textProps)\n const Component = as || 'span'\n\n if (props.truncate && props.trim) {\n return (\n <Component\n className={clsx(\n textClassName,\n className?.replace('sui-line-clamp', '').replace('sui-text-overflow', ''),\n )}\n style={style}\n data-ui=\"Text\"\n {...rest}\n >\n <span\n className={clsx(\n 'sui-overflow-hidden',\n props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp',\n )}\n >\n {children}\n </span>\n </Component>\n )\n }\n\n return (\n <Component\n className={clsx(textClassName, props.truncate && 'sui-overflow-hidden', className)}\n style={style}\n data-ui=\"Text\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {TextProps}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type HeightProps = {\n /** CSS **height** property */\n height?: Responsive<string>\n /** CSS **min-height** property */\n minHeight?: Responsive<string>\n /** CSS **max-height** property */\n maxHeight?: Responsive<string>\n}\n\nexport const heightProps: Record<string, PropDef> = {\n height: {\n type: 'string',\n className: 'height',\n variable: '--height',\n },\n minHeight: {\n type: 'string',\n className: 'min-height',\n variable: '--min-height',\n },\n maxHeight: {\n type: 'string',\n className: 'max-height',\n variable: '--max-height',\n },\n}\n","export const AVATAR_SIZE = [0, 1, 2] as const\nexport type AvatarSize = (typeof AVATAR_SIZE)[number]\n\nexport const AVATAR_COLOR = [\n 'gray',\n 'purple',\n 'magenta',\n 'red',\n 'orange',\n 'yellow',\n 'green',\n 'cyan',\n] as const\nexport type AvatarColor = (typeof AVATAR_COLOR)[number]\n","import {heightProps} from '../../props/height'\nimport {AVATAR_COLOR, AVATAR_SIZE, type AvatarColor, type AvatarSize} from '../../types/Avatar'\nimport {type PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\nimport {TEXT_SIZE} from '../../types/Text'\n\n/** @public */\nexport interface AvatarProps extends React.ComponentProps<'figure'> {\n /** Avatar color */\n color?: AvatarColor\n /** Avatar name, only first letter will be displayed */\n name: string\n /** Composite prop for setting height and font size */\n size?: Responsive<AvatarSize>\n /** Avatar image src */\n src?: string\n}\n\nexport const avatarProps: Record<string, PropDef> = {\n color: {\n type: 'union',\n className: 'avatar',\n values: AVATAR_COLOR,\n },\n name: {\n type: 'string',\n },\n size: {\n type: 'composite',\n values: AVATAR_SIZE,\n composition: {\n size: {\n propDef: {\n type: 'union',\n className: 'text-body',\n values: TEXT_SIZE,\n },\n mapping: {\n 0: 0,\n 1: 1,\n 2: 2,\n },\n },\n height: {\n propDef: heightProps['height'] as PropDef,\n mapping: {\n 0: '19px',\n 1: '25px',\n 2: '33px',\n },\n },\n },\n },\n src: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\nimport {useState} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Text} from '../text/Text'\nimport {type AvatarProps, avatarProps} from './avatar.props'\n\nconst avatarClassName = suffixClassName('sui-Avatar')\n\n/** @public */\nexport function Avatar({color = 'gray', size = 1, ...props}: AvatarProps) {\n const {\n className,\n style,\n 'aria-label': ariaLabel,\n name,\n src,\n ...rest\n } = getProps({color, size, ...props}, avatarProps)\n const [error, setError] = useState(false)\n\n return (\n <figure\n className={clsx(\n avatarClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius-full sui-position-relative',\n className,\n )}\n style={style}\n data-ui=\"Avatar\"\n {...rest}\n >\n {src && !error ? (\n <img\n className=\"sui-radius-full sui-width-full sui-height-full\"\n src={src}\n alt={ariaLabel || name}\n onError={() => setError(true)}\n />\n ) : (\n <Text role=\"img\" weight=\"semibold\" aria-label={ariaLabel || name}>\n {name.slice(0, 1)}\n </Text>\n )}\n </figure>\n )\n}\n\nexport type {AvatarProps}\n","import {heightProps} from '../../props/height'\nimport {AVATAR_SIZE, type AvatarSize} from '../../types/Avatar'\nimport {type PropDef} from '../../types/PropDef'\nimport {TEXT_SIZE} from '../../types/Text'\n\n/** @public */\nexport interface AvatarCounterProps extends React.ComponentProps<'figure'> {\n /** Count */\n count: number\n /** Composite prop for setting height and font size */\n size?: AvatarSize\n}\n\nexport const avatarCounterProps: Record<string, PropDef> = {\n count: {\n type: 'number',\n },\n size: {\n type: 'composite',\n values: AVATAR_SIZE,\n composition: {\n size: {\n propDef: {\n type: 'union',\n className: 'text-body',\n values: TEXT_SIZE,\n },\n mapping: {\n 0: 0,\n 1: 1,\n 2: 2,\n },\n },\n height: {\n propDef: heightProps['height'] as PropDef,\n mapping: {\n 0: '19px',\n 1: '25px',\n 2: '33px',\n },\n },\n },\n },\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Text} from '../text/Text'\nimport {type AvatarCounterProps, avatarCounterProps} from './avatarCounter.props'\n\nconst avatarCounterClassName = suffixClassName('sui-AvatarCounter')\n\n/** @public */\nexport function AvatarCounter({size = 1, ...props}: AvatarCounterProps) {\n const {\n className,\n style,\n 'aria-label': ariaLabel,\n count,\n ...rest\n } = getProps({size, ...props}, avatarCounterProps)\n\n return (\n <figure\n className={clsx(\n avatarCounterClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius-full sui-border',\n className,\n )}\n style={style}\n data-ui=\"AvatarCounter\"\n {...rest}\n >\n <Text role=\"img\" weight=\"semibold\" aria-label={ariaLabel || `+ ${count} more`}>\n {count}\n </Text>\n </figure>\n )\n}\n\nexport type {AvatarCounterProps}\n","import {AVATAR_SIZE, type AvatarSize} from '../../types/Avatar'\nimport {type PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface AvatarStackProps extends React.ComponentProps<'ul'> {\n /** Max number of avatars to display */\n maxLength?: number\n /** Avatar and AvatarCounter size */\n size?: AvatarSize\n}\n\nexport const avatarStackProps: Record<string, PropDef> = {\n maxLength: {\n type: 'number',\n },\n size: {\n type: 'union',\n values: AVATAR_SIZE,\n },\n}\n","import clsx from 'clsx'\nimport {Children, cloneElement, isValidElement, type ReactElement} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {AvatarCounter} from '../avatar-counter/AvatarCounter'\nimport type {AvatarProps} from '../avatar/avatar.props'\nimport {type AvatarStackProps, avatarStackProps} from './avatarStack.props'\n\nconst avatarStackClassName = suffixClassName('sui-AvatarStack')\n\n/** @public */\nexport function AvatarStack({size = 1, ...props}: AvatarStackProps) {\n const {\n children,\n className,\n style,\n maxLength: maxLengthProp,\n size: sizeProp,\n ...rest\n } = getProps({size, ...props}, avatarStackProps)\n const childArray = Children.toArray(children).filter(\n isValidElement,\n ) as ReactElement<AvatarProps>[]\n const length = childArray.length\n const maxLength = maxLengthProp ?? length\n const visibleAvatars =\n length > maxLength ? childArray.slice(length - maxLength, length) : childArray\n\n return (\n <ul\n className={clsx(avatarStackClassName, 'sui-display-flex', className)}\n style={style}\n data-ui=\"AvatarStack\"\n {...rest}\n >\n {(!length || length > maxLength) && (\n <li className=\"sui-display-flex\">\n <AvatarCounter\n count={!length ? 0 : length - maxLength}\n size={sizeProp}\n aria-label={\n !length\n ? 'No users'\n : `+ ${length - maxLength} more user${length - maxLength > 1 ? 's' : ''}`\n }\n />\n </li>\n )}\n\n {visibleAvatars.map((child) => (\n <li key={child.key} className=\"sui-display-flex\">\n {cloneElement(child, {size: sizeProp})}\n </li>\n ))}\n </ul>\n )\n}\n\nexport type {AvatarStackProps}\n","export const ICON_SIZE = [0, 1, 2, 3, 4] as const\n/** @public */\nexport type IconSize = (typeof ICON_SIZE)[number]\n","import type {ComponentProps, SVGProps} from 'react'\n\nimport {type MarginProps, marginProps} from '../../props/margin'\nimport {type ToneProps, toneProps} from '../../props/tone'\nimport {type TypographyProps, typographyProps} from '../../props/typography'\nimport {ICON_SIZE, type IconSize} from '../../types/Icon'\nimport {type PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport interface IconProps\n extends ComponentProps<'svg'>, Pick<TypographyProps, 'muted'>, MarginProps, ToneProps {\n /**\n * The icon component to render.\n */\n icon: React.ComponentType<SVGProps<SVGSVGElement>> | React.ReactElement<SVGProps<SVGSVGElement>>\n /**\n * Sets icon size.\n */\n size?: Responsive<IconSize>\n}\n\nexport const iconProps: Record<string, PropDef> = {\n icon: {\n type: 'string',\n },\n size: {\n type: 'union',\n className: 'icon-body',\n values: ICON_SIZE,\n },\n muted: typographyProps['muted'] as PropDef,\n ...toneProps,\n ...marginProps,\n}\n","import clsx from 'clsx'\nimport {cloneElement, createElement, isValidElement, type ComponentType, type SVGProps} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type IconProps, iconProps} from './icon.props'\n\nconst iconClassName = suffixClassName('sui-Icon')\n\n/** @public */\nexport function Icon({icon, size = 2, ...props}: IconProps) {\n const {className, style, ...rest} = getProps({size, ...props}, iconProps)\n const iconElement = isValidElement(icon) ? icon : null\n const ariaLabel =\n props['aria-label'] || (iconElement ? iconElement.props['aria-label'] : undefined)\n\n const svgProps = {\n 'className': clsx(\n iconClassName,\n 'sui-display-block',\n className,\n iconElement ? iconElement.props.className : undefined,\n ),\n 'style': iconElement ? {...iconElement.props.style, ...style} : style,\n 'data-ui': 'Icon',\n 'aria-hidden': ariaLabel ? undefined : true,\n ...rest,\n }\n\n return iconElement\n ? cloneElement(iconElement, svgProps)\n : createElement(icon as ComponentType<SVGProps<SVGSVGElement>>, svgProps)\n}\n\nexport type {IconProps}\n","import {type ToneProps, toneProps} from '../../props/tone'\nimport {type PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface BadgeProps<T extends React.ElementType = 'span'> extends ToneProps {\n /**\n * HTML element to render.\n */\n as?: T\n /**\n * Shows an icon in the start position (left side in left-to-right languages).\n */\n iconStart?: React.ElementType | React.ReactNode\n /**\n * Sets Badge's text label. Use instead of children unless you have a special use case.\n */\n text?: string\n}\n\nexport const badgeProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n iconStart: {\n type: 'string',\n },\n text: {\n type: 'string',\n },\n ...toneProps,\n}\n","import clsx from 'clsx'\nimport {isValidElement, type ComponentPropsWithRef, type ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Icon} from '../icon/Icon'\nimport {Text} from '../text/Text'\nimport {type BadgeProps, badgeProps} from './badge.props'\n\nconst badgeClassName = suffixClassName('sui-Badge')\n\n/** @public */\nexport function Badge<T extends ElementType = 'span'>({\n tone = 'neutral',\n ...props\n}: BadgeProps<T> & Omit<ComponentPropsWithRef<T>, keyof BadgeProps<T>>) {\n const {\n as,\n children,\n className,\n style,\n iconStart: IconStart,\n text,\n ...rest\n } = getProps({tone, ...props}, badgeProps)\n const Component = as || 'span'\n\n const paddingClasses = IconStart ? 'sui-p1' : 'sui-px2 sui-py1'\n\n const badgeClasses = clsx(\n badgeClassName,\n `${paddingClasses} sui-radius-full sui-display-inline-flex sui-align-items-center sui-gap1`,\n )\n\n return (\n <Component className={clsx(badgeClasses, className)} style={style} data-ui=\"Badge\" {...rest}>\n {IconStart &&\n (isValidElement(IconStart) ? (\n IconStart\n ) : (\n <Icon icon={IconStart} marginX={-1} marginY={-2} size={0} />\n ))}\n {text && (\n <Text size={1} trim>\n {text}\n </Text>\n )}\n {children}\n </Component>\n )\n}\n\nexport type {BadgeProps}\n","export const RADIUS = [0, 1, 2, 3, 4, 5, 6, 'full'] as const\n/** @public */\nexport type Radius = (typeof RADIUS)[number]\n","import {type PropDef} from '../types/PropDef'\nimport {RADIUS, type Radius} from '../types/Radius'\nimport {type Responsive} from '../types/Responsive'\n\nexport type BorderProps = {\n /** CSS **border** property */\n border?: Responsive<boolean>\n /** CSS **border-top** property */\n borderTop?: Responsive<boolean>\n /** CSS **border-right** property */\n borderRight?: Responsive<boolean>\n /** CSS **border-bottom** property */\n borderBottom?: Responsive<boolean>\n /** CSS **border-left** property */\n borderLeft?: Responsive<boolean>\n /** CSS **border-radius** property */\n radius?: Responsive<Radius>\n}\n\nexport const borderProps: Record<string, PropDef> = {\n border: {\n type: 'boolean',\n className: 'border',\n inverseClassName: 'border-none',\n },\n borderTop: {\n type: 'boolean',\n className: 'border-top',\n inverseClassName: 'border-top-none',\n },\n borderRight: {\n type: 'boolean',\n className: 'border-right',\n inverseClassName: 'border-right-none',\n },\n borderBottom: {\n type: 'boolean',\n className: 'border-bottom',\n inverseClassName: 'border-bottom-none',\n },\n borderLeft: {\n type: 'boolean',\n className: 'border-left',\n inverseClassName: 'border-left-none',\n },\n radius: {\n type: 'union',\n className: 'radius',\n values: RADIUS,\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type FlexChildProps = {\n /** CSS **flex-basis** property */\n flexBasis?: Responsive<string>\n /** CSS **flex-grow** property */\n flexGrow?: Responsive<number>\n /** CSS **flex-shrink** property */\n flexShrink?: Responsive<number>\n}\n\nexport const flexChildProps: Record<string, PropDef> = {\n flexBasis: {\n type: 'string',\n className: 'flex-basis',\n variable: '--flex-basis',\n },\n flexGrow: {\n type: 'number',\n className: 'flex-grow',\n variable: '--flex-grow',\n },\n flexShrink: {\n type: 'number',\n className: 'flex-shrink',\n variable: '--flex-shrink',\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type GridChildProps = {\n /** CSS **grid-column** property */\n gridColumn?: Responsive<string>\n /** CSS **grid-column-start** property */\n gridColumnStart?: Responsive<string>\n /** CSS **grid-column-end** property */\n gridColumnEnd?: Responsive<string>\n /** CSS **grid-row** property */\n gridRow?: Responsive<string>\n /** CSS **grid-row-start** property */\n gridRowStart?: Responsive<string>\n /** CSS **grid-row-end** property */\n gridRowEnd?: Responsive<string>\n}\n\nexport const gridChildProps: Record<string, PropDef> = {\n gridColumn: {\n type: 'string',\n className: 'grid-column',\n variable: '--grid-column',\n },\n gridColumnStart: {\n type: 'string',\n className: 'grid-column-start',\n variable: '--grid-column-start',\n },\n gridColumnEnd: {\n type: 'string',\n className: 'grid-column-end',\n variable: '--grid-column-end',\n },\n gridRow: {\n type: 'string',\n className: 'grid-row',\n variable: '--grid-row',\n },\n gridRowStart: {\n type: 'string',\n className: 'grid-row-start',\n variable: '--grid-row-start',\n },\n gridRowEnd: {\n type: 'string',\n className: 'grid-row-end',\n variable: '--grid-row-end',\n },\n}\n","export const OVERFLOW = ['visible', 'hidden', 'auto', 'scroll', 'clip'] as const\n/** @public */\nexport type Overflow = (typeof OVERFLOW)[number]\n","import {OVERFLOW, type Overflow} from '../types/Overflow'\nimport {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type OverflowProps = {\n /** CSS **overflow** property */\n overflow?: Responsive<Overflow>\n /** CSS **overflow-x** property */\n overflowX?: Responsive<Overflow>\n /** CSS **overflow-y** property */\n overflowY?: Responsive<Overflow>\n}\n\nexport const overflowProps: Record<string, PropDef> = {\n overflow: {\n type: 'union',\n className: 'overflow',\n values: OVERFLOW,\n },\n overflowX: {\n type: 'union',\n className: 'overflow-x',\n values: OVERFLOW,\n },\n overflowY: {\n type: 'union',\n className: 'overflow-y',\n values: OVERFLOW,\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\nimport {SPACE, type Space} from '../types/Space'\n\n/** @public */\nexport interface PaddingProps {\n /** CSS **padding** property */\n padding?: Responsive<Space>\n /** CSS **padding-left** and **padding-right** properties */\n paddingX?: Responsive<Space>\n /** CSS **padding-top** and **padding-bottom** properties */\n paddingY?: Responsive<Space>\n /** CSS **padding-top** property */\n paddingTop?: Responsive<Space>\n /** CSS **padding-right** property */\n paddingRight?: Responsive<Space>\n /** CSS **padding-bottom** property */\n paddingBottom?: Responsive<Space>\n /** CSS **padding-left** property */\n paddingLeft?: Responsive<Space>\n}\n\nexport const paddingProps: Record<string, PropDef> = {\n padding: {\n type: 'union',\n className: 'p',\n values: SPACE,\n },\n paddingX: {\n type: 'union',\n className: 'px',\n values: SPACE,\n },\n paddingY: {\n type: 'union',\n className: 'py',\n values: SPACE,\n },\n paddingTop: {\n type: 'union',\n className: 'pt',\n values: SPACE,\n },\n paddingRight: {\n type: 'union',\n className: 'pr',\n values: SPACE,\n },\n paddingBottom: {\n type: 'union',\n className: 'pb',\n values: SPACE,\n },\n paddingLeft: {\n type: 'union',\n className: 'pl',\n values: SPACE,\n },\n}\n","export const POSITION = ['absolute', 'fixed', 'relative', 'static', 'sticky'] as const\n/** @public */\nexport type Position = (typeof POSITION)[number]\n","import {POSITION, type Position} from '../types/Position'\nimport {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\nimport {SPACE_AUTO, type SpaceAuto} from '../types/Space'\n\nexport type PositionProps = {\n /** CSS **position** property */\n position?: Responsive<Position>\n /** CSS **inset** property */\n inset?: Responsive<SpaceAuto>\n /** CSS **top** property */\n top?: Responsive<SpaceAuto>\n /** CSS **right** property */\n right?: Responsive<SpaceAuto>\n /** CSS **bottom** property */\n bottom?: Responsive<SpaceAuto>\n /** CSS **left** property */\n left?: Responsive<SpaceAuto>\n}\n\nexport const positionProps: Record<string, PropDef> = {\n position: {\n type: 'union',\n className: 'position',\n values: POSITION,\n },\n inset: {\n type: 'union',\n className: 'inset',\n values: SPACE_AUTO,\n },\n top: {\n type: 'union',\n className: 'top',\n values: SPACE_AUTO,\n },\n right: {\n type: 'union',\n className: 'right',\n values: SPACE_AUTO,\n },\n bottom: {\n type: 'union',\n className: 'bottom',\n values: SPACE_AUTO,\n },\n left: {\n type: 'union',\n className: 'left',\n values: SPACE_AUTO,\n },\n}\n","export const SHADOW = [0, 1, 2, 3, 4, 5] as const\n/** @public */\nexport type Shadow = (typeof SHADOW)[number]\n","import {type PropDef} from '../types/PropDef'\nimport {SHADOW, type Shadow} from '../types/Shadow'\n\nexport type ShadowProps = {\n /** CSS **box-shadow** property */\n shadow?: Shadow\n}\n\nexport const shadowProps: Record<string, PropDef> = {\n shadow: {\n type: 'union',\n className: 'shadow',\n values: SHADOW,\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type WidthProps = {\n /** CSS **width** property */\n width?: Responsive<string>\n /** CSS **min-width** property */\n minWidth?: Responsive<string>\n /** CSS **max-width** property */\n maxWidth?: Responsive<string>\n}\n\nexport const widthProps: Record<string, PropDef> = {\n width: {\n type: 'string',\n className: 'width',\n variable: '--width',\n },\n minWidth: {\n type: 'string',\n className: 'min-width',\n variable: '--min-width',\n },\n maxWidth: {\n type: 'string',\n className: 'max-width',\n variable: '--max-width',\n },\n}\n","import type {PropDef} from '../types/PropDef'\nimport type {Responsive} from '../types/Responsive'\n\nexport type ZIndexProps = {\n /** CSS z-index property */\n zIndex?: Responsive<number>\n}\n\nexport const zIndexProps: Record<string, PropDef> = {\n zIndex: {\n type: 'number',\n className: 'z-index',\n variable: '--z-index',\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type BorderProps, borderProps} from './border'\nimport {type FlexChildProps, flexChildProps} from './flexChild'\nimport {type GridChildProps, gridChildProps} from './gridChild'\nimport {type HeightProps, heightProps} from './height'\nimport {type MarginProps, marginProps} from './margin'\nimport {type OverflowProps, overflowProps} from './overflow'\nimport {type PaddingProps, paddingProps} from './padding'\nimport {type PositionProps, positionProps} from './position'\nimport {type ShadowProps, shadowProps} from './shadow'\nimport {toneWithDefaultProps, type ToneWithDefaultProps} from './tone'\nimport {type WidthProps, widthProps} from './width'\nimport {type ZIndexProps, zIndexProps} from './zIndex'\n\n/** @public */\nexport interface LayoutProps\n extends\n ToneWithDefaultProps,\n WidthProps,\n HeightProps,\n MarginProps,\n BorderProps,\n PaddingProps,\n PositionProps,\n OverflowProps,\n FlexChildProps,\n GridChildProps,\n ZIndexProps,\n ShadowProps {}\n\nexport const layoutProps: Record<string, PropDef> = {\n ...toneWithDefaultProps,\n ...widthProps,\n ...heightProps,\n ...marginProps,\n ...borderProps,\n ...paddingProps,\n ...positionProps,\n ...overflowProps,\n ...flexChildProps,\n ...gridChildProps,\n ...shadowProps,\n ...zIndexProps,\n}\n","export const DISPLAY_BLOCK = ['block', 'inline-block', 'none'] as const\n/** @public */\nexport type DisplayBlock = (typeof DISPLAY_BLOCK)[number]\n\nexport const DISPLAY_FLEX = ['flex', 'inline-flex', 'none'] as const\n/** @public */\nexport type DisplayFlex = (typeof DISPLAY_FLEX)[number]\n\nexport const DISPLAY_GRID = ['grid', 'inline-grid', 'none'] as const\n/** @public */\nexport type DisplayGrid = (typeof DISPLAY_GRID)[number]\n","import {type LayoutProps, layoutProps} from '../../props/layout'\nimport {DISPLAY_BLOCK, type DisplayBlock} from '../../types/Display'\nimport {type PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport interface BoxProps<T extends React.ElementType = 'div'> extends LayoutProps {\n /**\n * HTML element or component to render.\n */\n as?: T\n /**\n * CSS `display` property.\n * @remarks Does not include `'flex'` or `'grid'`. Use the Flex or Grid components for those.\n */\n display?: Responsive<DisplayBlock>\n}\n\nexport const boxProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n display: {\n type: 'union',\n className: 'display',\n values: DISPLAY_BLOCK,\n },\n ...layoutProps,\n}\n","import clsx from 'clsx'\nimport type {ComponentPropsWithRef, ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type BoxProps, boxProps} from './box.props'\n\nconst boxClassName = suffixClassName('sui-Box')\n\n/** @public */\nexport function Box<T extends ElementType = 'div'>({\n display = 'block',\n ...props\n}: BoxProps<T> & Omit<ComponentPropsWithRef<T>, keyof BoxProps<T>>) {\n const {as, children, className, style, ...rest} = getProps({display, ...props}, boxProps)\n const Component = as || 'div'\n\n return (\n <Component className={clsx(boxClassName, className)} style={style} data-ui=\"Box\" {...rest}>\n {children}\n </Component>\n )\n}\n\nexport type {BoxProps}\n","export const ALIGN_ITEMS = ['baseline', 'center', 'flex-end', 'flex-start', 'stretch'] as const\n/** @public */\nexport type AlignItems = (typeof ALIGN_ITEMS)[number]\n\nexport const JUSTIFY_CONTENT = [\n 'flex-start',\n 'flex-end',\n 'center',\n 'space-between',\n 'space-around',\n 'space-evenly',\n] as const\n/** @public */\nexport type JustifyContent = (typeof JUSTIFY_CONTENT)[number]\n\nexport const FLEX_DIRECTION = ['row', 'row-reverse', 'column', 'column-reverse'] as const\n/** @public */\nexport type FlexDirection = (typeof FLEX_DIRECTION)[number]\n\nexport const FLEX_WRAP = ['wrap', 'wrap-reverse', 'nowrap'] as const\n/** @public */\nexport type FlexWrap = (typeof FLEX_WRAP)[number]\n","import {\n ALIGN_ITEMS,\n type AlignItems,\n FLEX_DIRECTION,\n FLEX_WRAP,\n type FlexDirection,\n type FlexWrap,\n JUSTIFY_CONTENT,\n type JustifyContent,\n} from '../types/Flex'\nimport {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\n/** @public */\nexport type FlexParentProps = {\n /** CSS **align-items** property */\n alignItems?: Responsive<AlignItems>\n /** CSS **justify-content** property */\n justifyContent?: Responsive<JustifyContent>\n /** CSS **flex-direction** property */\n flexDirection?: Responsive<FlexDirection>\n /** CSS **flex-wrap** property */\n flexWrap?: Responsive<FlexWrap>\n}\n\nexport const flexParentProps: Record<string, PropDef> = {\n alignItems: {\n type: 'union',\n className: 'align-items',\n values: ALIGN_ITEMS,\n },\n justifyContent: {\n type: 'union',\n className: 'justify-content',\n values: JUSTIFY_CONTENT,\n },\n flexDirection: {\n type: 'union',\n className: 'flex-direction',\n values: FLEX_DIRECTION,\n },\n flexWrap: {\n type: 'union',\n className: 'flex',\n values: FLEX_WRAP,\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\nimport {SPACE_INHERIT, type SpaceInherit} from '../types/Space'\n\n/** @public */\nexport type GapProps = {\n /** CSS **gap** property */\n gap?: Responsive<SpaceInherit>\n /** CSS **row-gap** property */\n rowGap?: Responsive<SpaceInherit>\n /** CSS **column-gap** property */\n columnGap?: Responsive<SpaceInherit>\n}\n\nexport const gapProps: Record<string, PropDef> = {\n gap: {\n type: 'union',\n className: 'gap',\n values: SPACE_INHERIT,\n },\n rowGap: {\n type: 'union',\n className: 'row-gap',\n values: SPACE_INHERIT,\n },\n columnGap: {\n type: 'union',\n className: 'column-gap',\n values: SPACE_INHERIT,\n },\n}\n","import {type FlexParentProps, flexParentProps} from '../../props/flexParent'\nimport {type GapProps, gapProps} from '../../props/gap'\nimport {type LayoutProps, layoutProps} from '../../props/layout'\nimport {DISPLAY_FLEX, type DisplayFlex} from '../../types/Display'\nimport {type PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport interface FlexProps<T extends React.ElementType = 'div'>\n extends FlexParentProps, GapProps, LayoutProps {\n /**\n * HTML element or component to render.\n */\n as?: T\n /**\n * CSS `display` property.\n */\n display?: Responsive<DisplayFlex>\n}\n\nexport const flexProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n display: {\n type: 'union',\n className: 'display',\n values: DISPLAY_FLEX,\n },\n ...flexParentProps,\n ...gapProps,\n ...layoutProps,\n}\n","import clsx from 'clsx'\nimport type {ComponentPropsWithRef, ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type FlexProps, flexProps} from './flex.props'\n\nconst flexClassName = suffixClassName('sui-Flex')\n\n/** @public */\nexport function Flex<T extends ElementType = 'div'>({\n display = 'flex',\n ...props\n}: FlexProps<T> & Omit<ComponentPropsWithRef<T>, keyof FlexProps<T>>) {\n const {as, children, className, style, ...rest} = getProps({display, ...props}, flexProps)\n const Component = as || 'div'\n\n return (\n <Component className={clsx(flexClassName, className)} style={style} data-ui=\"Flex\" {...rest}>\n {children}\n </Component>\n )\n}\n\nexport type {FlexProps}\n","import {ICON_SIZE, type IconSize} from '../../types/Icon'\nimport {type PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport interface SpinnerProps extends React.ComponentProps<'svg'> {\n /**\n * Size of the spinner icon.\n */\n size?: Responsive<IconSize>\n}\n\nexport const spinnerProps: Record<string, PropDef> = {\n size: {\n type: 'union',\n className: 'icon-body',\n values: ICON_SIZE,\n },\n}\n","import {SpinnerIcon} from '@sanity/icons/Spinner'\nimport clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Icon} from '../icon/Icon'\nimport {type SpinnerProps, spinnerProps} from './spinner.props'\n\nconst spinnerClassName = suffixClassName('sui-Spinner')\n\n/** @public */\nexport function Spinner({size = 2, ...props}: SpinnerProps) {\n const {className, style, ...rest} = getProps({size, ...props}, spinnerProps)\n\n return (\n <Icon\n icon={SpinnerIcon}\n size={size}\n className={clsx(spinnerClassName, className)}\n style={style}\n data-ui=\"Spinner\"\n role=\"status\"\n aria-label=\"Loading...\"\n {...rest}\n />\n )\n}\n\nexport type {SpinnerProps}\n","export const BUTTON_DENSITY = ['regular', 'loose'] as const\nexport type ButtonDensity = (typeof BUTTON_DENSITY)[number]\n\nexport const BUTTON_LEVEL = ['primary', 'secondary', 'tertiary'] as const\nexport type ButtonLevel = (typeof BUTTON_LEVEL)[number]\n\nexport const BUTTON_TONE = ['neutral', 'critical'] as const\nexport type ButtonTone = (typeof BUTTON_TONE)[number]\n","import {gapProps} from '../../props/gap'\nimport {heightProps} from '../../props/height'\nimport {paddingProps} from '../../props/padding'\nimport {widthProps} from '../../props/width'\nimport {\n BUTTON_DENSITY,\n BUTTON_LEVEL,\n BUTTON_TONE,\n type ButtonDensity,\n type ButtonLevel,\n type ButtonTone,\n} from '../../types/Button'\nimport type {InteractiveAs} from '../../types/Interactive'\nimport {type PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport interface ButtonProps<T extends React.ElementType = 'button'> {\n /**\n * HTML element to render.\n */\n as?: InteractiveAs<T>\n /**\n * Sets padding and gap together to specify size.\n */\n density?: ButtonDensity\n /**\n * Sets Button to fill the width of its container.\n */\n fullWidth?: Responsive<boolean>\n /**\n * Shows an icon in the start position (left side in left-to-right languages).\n */\n iconStart?: React.ElementType | React.ReactNode\n /**\n * Shows an icon in the end position (right side in left-to-right languages).\n */\n iconEnd?: React.ElementType | React.ReactNode\n /**\n * Sets the importance of Button's action.\n */\n level?: ButtonLevel\n /**\n * Places Button into a loading state.\n */\n loading?: boolean\n /**\n * Sets Button's text label.\n */\n text?: string\n /**\n * Sets Button's semantic meaning and related color.\n */\n tone?: ButtonTone\n}\n\nexport const buttonProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n density: {\n type: 'composite',\n values: BUTTON_DENSITY,\n composition: {\n gap: {\n propDef: gapProps['gap'] as PropDef,\n mapping: {\n regular: 2,\n loose: 3,\n },\n },\n padding: {\n propDef: paddingProps['padding'] as PropDef,\n mapping: {\n regular: 2,\n loose: 3,\n },\n },\n minHeight: {\n propDef: heightProps['minHeight'] as PropDef,\n mapping: {\n regular: '25px',\n loose: '33px',\n },\n },\n minWidth: {\n propDef: widthProps['minWidth'] as PropDef,\n mapping: {\n regular: '25px',\n loose: '33px',\n },\n },\n },\n },\n fullWidth: {\n type: 'boolean',\n className: 'width-full',\n inverseClassName: 'width-auto',\n },\n iconStart: {\n type: 'string',\n },\n iconEnd: {\n type: 'string',\n },\n level: {\n type: 'union',\n className: 'button-level',\n values: BUTTON_LEVEL,\n },\n loading: {\n type: 'boolean',\n },\n text: {\n type: 'string',\n },\n tone: {\n type: 'union',\n className: 'tone',\n values: BUTTON_TONE,\n },\n}\n","import clsx from 'clsx'\nimport {type ComponentPropsWithRef, type ElementType, isValidElement} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Flex} from '../flex/Flex'\nimport {Icon} from '../icon/Icon'\nimport {Spinner} from '../spinner/Spinner'\nimport {Text} from '../text/Text'\nimport {type ButtonProps, buttonProps} from './button.props'\n\nconst buttonClassName = suffixClassName('sui-Button')\n\n/** @public */\nexport function Button<T extends ElementType = 'button'>({\n density = 'regular',\n level = 'primary',\n tone = 'neutral',\n ...props\n}: ButtonProps<T> & Omit<ComponentPropsWithRef<T>, keyof ButtonProps<T>>) {\n const {\n as,\n children,\n className,\n disabled,\n style,\n iconStart: IconStart,\n iconEnd: IconEnd,\n loading,\n text,\n ...rest\n } = getProps({density, level, tone, ...props}, buttonProps)\n const Component = as || 'button'\n\n return (\n <Component\n className={clsx(\n buttonClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius2 sui-position-relative sui-overflow-hidden',\n className,\n )}\n style={style}\n data-ui=\"Button\"\n disabled={disabled || loading}\n aria-busy={loading ? true : undefined}\n {...rest}\n >\n {loading && (\n <Flex\n position=\"absolute\"\n inset={0}\n alignItems=\"center\"\n justifyContent=\"center\"\n data-ui=\"Button-Spinner\"\n >\n <Spinner />\n </Flex>\n )}\n\n {IconStart &&\n (isValidElement(IconStart) ? (\n IconStart\n ) : (\n <Icon icon={IconStart} marginX={-1} marginY={-2} size={1} />\n ))}\n\n {text && (\n <Text size={1} weight=\"medium\" trim>\n {text}\n </Text>\n )}\n\n {children}\n {IconEnd &&\n (isValidElement(IconEnd) ? (\n IconEnd\n ) : (\n <Icon icon={IconEnd} marginX={-1} marginY={-2} size={1} />\n ))}\n </Component>\n )\n}\n\nexport type {ButtonProps}\n","export const DENSITY = ['compact', 'regular', 'loose'] as const\n/** @public */\nexport type Density = (typeof DENSITY)[number]\n","import {borderProps} from '../../props/border'\nimport {gapProps} from '../../props/gap'\nimport {type MarginProps, marginProps} from '../../props/margin'\nimport {paddingProps} from '../../props/padding'\nimport {toneWithDefaultProps, type ToneWithDefaultProps} from '../../props/tone'\nimport {DENSITY, type Density} from '../../types/Density'\nimport {type PropDef} from '../../types/PropDef'\nimport {type Responsive} from '../../types/Responsive'\n\n/** @public */\nexport interface CardProps<T extends React.ElementType = 'div'>\n extends MarginProps, ToneWithDefaultProps {\n /**\n * HTML element or component to render.\n */\n as?: T\n /**\n * Sets padding, gap, and border-radius together to specify size. This prop is used in place of separate `padding`, `gap`, and `border-radius` props.\n */\n density?: Responsive<Density>\n}\n\nexport const cardProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n density: {\n type: 'composite',\n values: DENSITY,\n composition: {\n gap: {\n propDef: gapProps['gap'] as PropDef,\n mapping: {\n compact: 2,\n regular: 3,\n loose: 4,\n },\n },\n padding: {\n propDef: paddingProps['padding'] as PropDef,\n mapping: {\n compact: 3,\n regular: 4,\n loose: 5,\n },\n },\n radius: {\n propDef: borderProps['radius'] as PropDef,\n mapping: {\n compact: 2,\n regular: 3,\n loose: 4,\n },\n },\n },\n } satisfies PropDef<Density>,\n ...toneWithDefaultProps,\n ...marginProps,\n}\n","import clsx from 'clsx'\nimport type {ComponentPropsWithRef, ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type CardProps, cardProps} from './card.props'\n\nconst cardClassName = suffixClassName('sui-Card')\n\n/** @public */\nexport function Card<T extends ElementType = 'div'>({\n density = 'regular',\n tone = 'default',\n ...props\n}: CardProps<T> & Omit<ComponentPropsWithRef<T>, keyof CardProps<T>>) {\n const {as, children, className, style, ...rest} = getProps({density, tone, ...props}, cardProps)\n const Component = as || 'div'\n\n return (\n <Component\n className={clsx(cardClassName, 'sui-border', className)}\n style={style}\n data-ui=\"Card\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {CardProps}\n","import {type PropDef} from '../../types/PropDef'\n\n/** @beta */\nexport interface CheckboxProps extends React.ComponentProps<'input'> {\n /**\n * Applies error styling to the checkbox mark for invalid states.\n * @remarks Use when form validation fails. Pair with a visible error message.\n */\n hasError?: boolean\n /**\n * Renders the \"mixed state\" mark (a horizontal line).\n * @remarks Use when the checkbox controls a group with some-but-not-all children checked.\n */\n indeterminate?: boolean\n}\n\nexport const checkboxProps: Record<string, PropDef> = {\n hasError: {\n type: 'boolean',\n },\n indeterminate: {\n type: 'boolean',\n },\n}\n","import {CheckmarkIcon} from '@sanity/icons/Checkmark'\nimport {RemoveIcon} from '@sanity/icons/Remove'\nimport clsx from 'clsx'\nimport {useEffect, useRef} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Box} from '../box/Box'\nimport {type CheckboxProps, checkboxProps} from './checkbox.props'\n\nconst checkboxClassName = suffixClassName('sui-Checkbox')\nconst checkboxInputClassName = suffixClassName('sui-CheckboxInput')\n\n/** @beta */\nexport function Checkbox(props: CheckboxProps) {\n const inputRef = useRef<HTMLInputElement>(null)\n const {className, style, hasError, indeterminate, ...rest} = getProps(props, checkboxProps)\n\n useEffect(() => {\n if (inputRef.current) {\n inputRef.current.indeterminate = indeterminate\n }\n }, [indeterminate, inputRef])\n\n return (\n <Box\n as=\"span\"\n className={clsx(checkboxClassName, className)}\n style={style}\n data-ui=\"Checkbox\"\n position=\"relative\"\n radius={2}\n width=\"17px\"\n height=\"17px\"\n >\n {indeterminate ? <RemoveIcon aria-hidden=\"true\" /> : <CheckmarkIcon aria-hidden=\"true\" />}\n\n <input\n type=\"checkbox\"\n className={checkboxInputClassName}\n ref={inputRef}\n aria-invalid={hasError || undefined}\n {...rest}\n />\n </Box>\n )\n}\n\nexport type {CheckboxProps}\n","export const CODE_SIZE = [0, 1, 2, 3, 4] as const\n/** @public */\nexport type CodeSize = (typeof CODE_SIZE)[number]\n","import {marginProps} from '../../props/margin'\nimport {type TypographyProps, typographyProps} from '../../props/typography'\nimport {CODE_SIZE, type CodeSize} from '../../types/Code'\nimport {type PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\ninterface CodeBaseProps extends Omit<TypographyProps, 'align' | 'truncate' | 'tone' | 'weight'> {\n /**\n * Refractor language for syntax highlighting.\n */\n language?: string\n /**\n * Sets font size.\n */\n size?: Responsive<CodeSize>\n}\n\n/** @public */\nexport type CodeProps =\n | (CodeBaseProps & {\n /**\n * Render code inline or as a block.\n * @remarks Block code is wrapped in a `<pre>` tag.\n */\n inline?: false\n } & Omit<React.ComponentPropsWithRef<'pre'>, keyof CodeBaseProps>)\n | (CodeBaseProps & {\n inline: true\n } & Omit<React.ComponentPropsWithRef<'span'>, keyof CodeBaseProps>)\n\nexport const codeProps: Record<string, PropDef> = {\n inline: {\n type: 'boolean',\n },\n language: {\n type: 'string',\n },\n size: {\n type: 'union',\n className: 'text-code',\n values: CODE_SIZE,\n },\n muted: typographyProps['muted'] as PropDef,\n trim: typographyProps['trim'] as PropDef,\n ...marginProps,\n}\n","import clsx from 'clsx'\nimport {lazy, Suspense} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type CodeProps, codeProps} from './code.props'\n\nconst LazyRefractor = lazy(() => import('./LazyRefractor'))\n\nconst codeClassName = suffixClassName('sui-Code')\n\n/** @public */\nexport function Code({size = 2, ...props}: CodeProps) {\n const {children, className, inline, language, style, ...rest} = getProps(\n {size, ...props},\n codeProps,\n )\n /*\n * The span wrapper for inline code is necessary because react-refractor does not\n * support any attributes other than className\n */\n const Component = inline ? 'span' : 'pre'\n\n return (\n <Component className={clsx(codeClassName, className)} style={style} data-ui=\"Code\" {...rest}>\n {language ? (\n <Suspense fallback={<code>{children}</code>}>\n <LazyRefractor language={language} value={children} />\n </Suspense>\n ) : (\n <code>{children}</code>\n )}\n </Component>\n )\n}\n\nexport type {CodeProps}\n","export const CONTAINER_SIZE = [0, 1, 2, 3, 4, 5] as const\n/** @public */\nexport type ContainerSize = (typeof CONTAINER_SIZE)[number]\n","import {type LayoutProps, layoutProps} from '../../props/layout'\nimport {CONTAINER_SIZE, type ContainerSize} from '../../types/Container'\nimport {type PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport interface ContainerProps<T extends React.ElementType = 'div'> extends LayoutProps {\n /**\n * HTML element or component to render.\n */\n as?: T\n /**\n * Maximum width of the container.\n */\n size?: Responsive<ContainerSize>\n}\n\nexport const containerProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n size: {\n type: 'union',\n className: 'container',\n values: CONTAINER_SIZE,\n },\n ...layoutProps,\n}\n","import clsx from 'clsx'\nimport type {ComponentPropsWithRef, ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type ContainerProps, containerProps} from './container.props'\n\nconst containerClassName = suffixClassName('sui-Container')\n\n/** @public */\nexport function Container<T extends ElementType = 'div'>({\n marginX = 'auto',\n size = 2,\n ...props\n}: ContainerProps<T> & Omit<ComponentPropsWithRef<T>, keyof ContainerProps<T>>) {\n const {as, children, className, style, ...rest} = getProps(\n {marginX, size, ...props},\n containerProps,\n )\n const Component = as || 'div'\n\n return (\n <Component\n className={clsx(containerClassName, className)}\n style={style}\n data-ui=\"Container\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {ContainerProps}\n","export const HEADING_TAG = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'] as const\nexport type HeadingTag = (typeof HEADING_TAG)[number]\n\nexport const HEADING_SIZE = [0, 1, 2, 3, 4, 5] as const\n/** @public */\nexport type HeadingSize = (typeof HEADING_SIZE)[number]\n","import {marginProps} from '../../props/margin'\nimport {toneProps} from '../../props/tone'\nimport {type TypographyProps, typographyProps} from '../../props/typography'\nimport {HEADING_SIZE, HEADING_TAG, type HeadingSize, type HeadingTag} from '../../types/Heading'\nimport {type PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport interface HeadingProps extends Omit<TypographyProps, 'muted' | 'weight'> {\n /**\n * Semantic heading element to render.\n */\n as: HeadingTag\n /**\n * Sets font size.\n * @remarks Independent of `as`.\n */\n size?: Responsive<HeadingSize>\n}\n\nexport const headingProps: Record<string, PropDef> = {\n as: {\n type: 'union',\n values: HEADING_TAG,\n },\n size: {\n type: 'union',\n className: 'text-heading',\n values: HEADING_SIZE,\n },\n align: typographyProps['align'] as PropDef,\n trim: typographyProps['trim'] as PropDef,\n truncate: typographyProps['truncate'] as PropDef,\n ...marginProps,\n ...toneProps,\n}\n","import clsx from 'clsx'\nimport type {ComponentPropsWithRef, ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type HeadingProps, headingProps} from './heading.props'\n\nconst headingClassName = suffixClassName('sui-Heading')\n\n/** @public */\nexport function Heading<T extends ElementType = 'h2'>({\n size = 2,\n ...props\n}: HeadingProps & Omit<ComponentPropsWithRef<T>, keyof HeadingProps>) {\n const {as, children, className, style, ...rest} = getProps({size, ...props}, headingProps)\n const Component = as || 'h2'\n\n if (props.truncate && props.trim) {\n return (\n <Component\n className={clsx(\n headingClassName,\n className?.replace('sui-line-clamp', '').replace('sui-text-overflow', ''),\n )}\n style={style}\n data-ui=\"Heading\"\n {...rest}\n >\n <span\n className={clsx(\n 'sui-overflow-hidden',\n 'sui-weight-bold',\n props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp',\n )}\n >\n {children}\n </span>\n </Component>\n )\n }\n\n return (\n <Component\n className={clsx(\n headingClassName,\n props.truncate && 'sui-overflow-hidden',\n 'sui-weight-bold',\n className,\n )}\n style={style}\n data-ui=\"Heading\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {HeadingProps}\n","import type {SVGProps} from 'react'\nimport type React from 'react'\n\nimport {type PropDef} from '../../types/PropDef'\nimport {type ButtonProps, buttonProps} from '../button/button.props'\n\n/** @public */\nexport interface IconButtonProps<T extends React.ElementType = 'button'> extends Pick<\n ButtonProps<T>,\n 'as' | 'density' | 'level' | 'loading' | 'tone'\n> {\n /**\n * Accessible name for the button.\n * @remarks Because IconButtons have no visible text, this is required.\n */\n 'aria-label': string\n /**\n * Icon to render.\n */\n 'icon': React.ComponentType<SVGProps<SVGSVGElement>>\n}\n\nexport const iconButtonProps: Record<string, PropDef> = {\n 'aria-label': {\n type: 'string',\n },\n 'as': buttonProps['as'] as PropDef,\n 'icon': {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\nimport type {ComponentPropsWithRef, ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Button} from '../button/Button'\nimport {Icon} from '../icon/Icon'\nimport {type IconButtonProps, iconButtonProps} from './iconButton.props'\n\nconst iconButtonClassName = suffixClassName('sui-IconButton')\n\n/** @public */\nexport function IconButton<T extends ElementType = 'button'>(\n props: IconButtonProps<T> & Omit<ComponentPropsWithRef<T>, keyof IconButtonProps<T>>,\n) {\n const {as, className, style, icon: IconProp, ...rest} = getProps(props, iconButtonProps)\n const Component = as || 'button'\n\n return (\n <Button\n as={Component}\n className={clsx(iconButtonClassName, className)}\n style={style}\n data-ui=\"IconButton\"\n {...rest}\n >\n <Icon icon={IconProp} margin={-2} size={1} />\n </Button>\n )\n}\n\nexport type {IconButtonProps}\n","import {CONTAINER_SIZE, type ContainerSize} from '../../types/Container'\nimport {type PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @beta */\nexport interface DialogProps extends Omit<React.ComponentProps<'dialog'>, 'open'> {\n /**\n * Text for the dialog heading.\n * @remarks Recommended for accessibility. The component sets `aria-labelledby` to the heading when you give this prop.\n */\n header?: string\n /**\n * A function to call alongside the native `close` event.\n * @remarks Use it to set `open` back to `false`. It runs for every close cause: the Escape key, a backdrop click, the close button, or a programmatic close.\n */\n onClose: React.ReactEventHandler<HTMLDialogElement>\n /**\n * Toggles the dialog's open state.\n * @remarks `true` calls `showModal()` on the element. `false` calls `close()`.\n */\n open?: boolean\n /** Sets the max width of the dialog */\n size?: Responsive<ContainerSize>\n /** CSS length value used to set the Dialog’s distance from the top of the viewport; Dialog is centered if not provided */\n topAnchor?: string\n}\n\nexport const dialogProps: Record<string, PropDef> = {\n header: {\n type: 'string',\n },\n open: {\n type: 'boolean',\n },\n size: {\n type: 'union',\n className: 'container',\n values: CONTAINER_SIZE,\n },\n topAnchor: {\n type: 'string',\n className: 'top-anchor',\n variable: '--top-anchor',\n },\n}\n","import {CloseIcon} from '@sanity/icons/Close'\nimport clsx from 'clsx'\nimport {type ComponentProps, useEffect, useId, useRef} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Box} from '../box/Box'\nimport {Flex} from '../flex/Flex'\nimport {Heading} from '../heading/Heading'\nimport {IconButton} from '../icon-button/IconButton'\nimport {type DialogProps, dialogProps} from './dialog.props'\n\nconst dialogClassName = suffixClassName('sui-Dialog')\nconst dialogContentClassName = suffixClassName('sui-DialogContent')\nconst dialogFooterClassName = suffixClassName('sui-DialogFooter')\n\nfunction DialogRoot({open = false, size = 0, ...props}: DialogProps) {\n const {children, className, style, header, onClose, ...rest} = getProps(\n {size, ...props},\n dialogProps,\n )\n\n const dialogRef = useRef<HTMLDialogElement>(null)\n const headerId = useId()\n\n const dialogClasses = clsx(\n dialogClassName,\n `${props.topAnchor ? 'sui-mx-auto' : 'sui-m-auto'} sui-radius5 sui-shadow3 sui-p4 sui-flex-direction-column sui-gap4 sui-overflow-y-auto`,\n )\n\n useEffect(() => {\n const dialogElement = dialogRef.current\n if (!dialogElement) return\n\n // `open` = `open` prop\n // dialogElement.open = the `open` attribute on the HTML dialog element\n // The prop and the attribute are manipulated independently, thus they\n // can get out of sync if not handled within this effect.\n if (open) {\n if (!dialogElement.open) {\n dialogElement.showModal()\n }\n } else {\n if (dialogElement.open) {\n dialogElement.close()\n }\n }\n\n // Ensure the dialog is closed (and thus its `open` attribute updated)\n // when the component is unmounted.\n return () => {\n dialogElement.close()\n }\n }, [open])\n\n return (\n <dialog\n {...rest}\n ref={dialogRef}\n closedby=\"any\"\n aria-labelledby={header ? headerId : undefined}\n onClose={onClose}\n className={clsx(dialogClasses, className)}\n style={style}\n data-ui=\"Dialog\"\n >\n <Flex flexShrink={0} justifyContent=\"space-between\" alignItems=\"center\">\n {header ? (\n <Heading as=\"h2\" trim size={1} id={headerId}>\n {header}\n </Heading>\n ) : (\n <div />\n )}\n <IconButton\n aria-label=\"Close\"\n level=\"tertiary\"\n icon={CloseIcon}\n onClick={() => dialogRef.current?.close()}\n />\n </Flex>\n {children}\n </dialog>\n )\n}\n\nfunction DialogContent(props: ComponentProps<'div'>) {\n const {children, className, style, ...rest} = getProps(props, {})\n\n return (\n <Box\n {...rest}\n className={clsx(dialogContentClassName, className)}\n style={style}\n data-ui=\"DialogContent\"\n flexGrow={1}\n overflowY=\"auto\"\n >\n {children}\n </Box>\n )\n}\n\nfunction DialogFooter(props: ComponentProps<'div'>) {\n const {children, className, style, ...rest} = getProps(props, {})\n\n return (\n <Box\n {...rest}\n className={clsx(dialogFooterClassName, className)}\n style={style}\n data-ui=\"DialogFooter\"\n flexShrink={0}\n >\n {children}\n </Box>\n )\n}\n\nDialogRoot.displayName = 'Dialog'\n\n/**\n * @beta\n *\n * Renders a modal dialog element — should not be used for nonmodal dialogs.\n * Modal dialogs make their containing documents inert, and render on the topmost\n * layer within that containing document; they must be dimissed before the containing\n * document and its contents become unblocked. They also trap focus within the bounds\n * of the dialog element and its descendants.\n *\n * For more on dialogs and modality, refer to the HTML specification for the dialog element:\n * https://html.spec.whatwg.org/dev/interactive-elements.html#the-dialog-element\n */\nexport const Dialog = DialogRoot\n\nDialogRoot.Content = DialogContent\nDialogRoot.Footer = DialogFooter\n\nexport type {DialogProps}\n","import {type MarginProps, marginProps} from '../../props/margin'\nimport {type PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface DividerProps extends React.ComponentProps<'hr'>, MarginProps {}\n\nexport const dividerProps: Record<string, PropDef> = {\n ...marginProps,\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type DividerProps, dividerProps} from './divider.props'\n\nconst dividerClassName = suffixClassName('sui-Divider')\n\n/** @public */\nexport function Divider(props: DividerProps) {\n const {className, style, ...rest} = getProps(props, dividerProps)\n\n return (\n <hr\n className={clsx(dividerClassName, 'sui-border-none sui-border-top', className)}\n style={style}\n data-ui=\"Divider\"\n {...rest}\n />\n )\n}\n\nexport type {DividerProps}\n","export const EYEBROW_SIZE = [0, 1, 2, 3, 4, 5] as const\n/** @public */\nexport type EyebrowSize = (typeof EYEBROW_SIZE)[number]\n","import {type TypographyProps, typographyProps} from '../../props/typography'\nimport {EYEBROW_SIZE, type EyebrowSize} from '../../types/Eyebrow'\nimport {type PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport interface EyebrowProps<T extends React.ElementType = 'span'> extends TypographyProps {\n /**\n * HTML element to render.\n */\n as?: T\n /**\n * Sets font size. Uses the same scale as Label.\n */\n size?: Responsive<EyebrowSize>\n}\n\nexport const eyebrowProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n size: {\n type: 'union',\n className: 'text-eyebrow',\n values: EYEBROW_SIZE,\n },\n ...typographyProps,\n}\n","import clsx from 'clsx'\nimport type {ComponentPropsWithRef, ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type EyebrowProps, eyebrowProps} from './eyebrow.props'\n\nconst eyebrowClassName = suffixClassName('sui-Eyebrow')\n\n/** @public */\nexport function Eyebrow<T extends ElementType = 'span'>({\n size = 2,\n weight = 'semibold',\n ...props\n}: EyebrowProps<T> & Omit<ComponentPropsWithRef<T>, keyof EyebrowProps<T>>) {\n const {as, children, className, style, ...rest} = getProps({size, weight, ...props}, eyebrowProps)\n const Component = as || 'span'\n\n if (props.truncate && props.trim) {\n return (\n <Component\n className={clsx(\n eyebrowClassName,\n className?.replace('sui-line-clamp', '').replace('sui-text-overflow', ''),\n )}\n style={style}\n data-ui=\"Eyebrow\"\n {...rest}\n >\n <span\n className={clsx(\n 'sui-overflow-hidden',\n props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp',\n )}\n >\n {children}\n </span>\n </Component>\n )\n }\n\n return (\n <Component\n className={clsx(eyebrowClassName, props.truncate && 'sui-overflow-hidden', className)}\n style={style}\n data-ui=\"Eyebrow\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {EyebrowProps}\n","export const GRID_AUTO_FLOW = ['row', 'column', 'row dense', 'column dense', 'dense'] as const\n/** @public */\nexport type GridAutoFlow = (typeof GRID_AUTO_FLOW)[number]\n","import {GRID_AUTO_FLOW, type GridAutoFlow} from '../types/Grid'\nimport {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\n/** @public */\nexport type GridParentProps = {\n /** CSS **grid-auto-flow** property */\n gridAutoFlow?: Responsive<GridAutoFlow>\n /** CSS **grid-auto-columns** property */\n gridAutoColumns?: Responsive<string>\n /** CSS **grid-auto-row** property */\n gridAutoRows?: Responsive<string>\n /** CSS **grid-template-columns** property */\n gridTemplateColumns?: Responsive<string>\n /** CSS **grid-template-rows** property */\n gridTemplateRows?: Responsive<string>\n}\n\nexport const gridParentProps: Record<string, PropDef> = {\n gridAutoFlow: {\n type: 'union',\n className: 'grid-auto-flow',\n values: GRID_AUTO_FLOW,\n },\n gridAutoColumns: {\n type: 'string',\n className: 'grid-auto-columns',\n variable: '--grid-auto-columns',\n },\n gridAutoRows: {\n type: 'string',\n className: 'grid-auto-rows',\n variable: '--grid-auto-rows',\n },\n gridTemplateColumns: {\n type: 'string',\n className: 'grid-template-columns',\n variable: '--grid-template-columns',\n },\n gridTemplateRows: {\n type: 'string',\n className: 'grid-template-rows',\n variable: '--grid-template-rows',\n },\n}\n","import {flexParentProps, type FlexParentProps} from '../../props/flexParent'\nimport {type GapProps, gapProps} from '../../props/gap'\nimport {type GridParentProps, gridParentProps} from '../../props/gridParent'\nimport {type LayoutProps, layoutProps} from '../../props/layout'\nimport {DISPLAY_GRID, type DisplayGrid} from '../../types/Display'\nimport {type PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport interface GridProps<T extends React.ElementType = 'div'>\n extends\n Pick<FlexParentProps, 'alignItems' | 'justifyContent'>,\n GridParentProps,\n GapProps,\n LayoutProps {\n /**\n * HTML element or component to render.\n */\n as?: T\n /**\n * CSS `display` property.\n */\n display?: Responsive<DisplayGrid>\n}\n\nexport const gridProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n display: {\n type: 'union',\n className: 'display',\n values: DISPLAY_GRID,\n },\n alignItems: flexParentProps['alignItems'] as PropDef,\n justifyContent: flexParentProps['justifyContent'] as PropDef,\n ...gridParentProps,\n ...gapProps,\n ...layoutProps,\n}\n","import clsx from 'clsx'\nimport type {ComponentPropsWithRef, ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type GridProps, gridProps} from './grid.props'\n\nconst gridClassName = suffixClassName('sui-Grid')\n\n/** @public */\nexport function Grid<T extends ElementType = 'div'>({\n display = 'grid',\n ...props\n}: GridProps<T> & Omit<ComponentPropsWithRef<T>, keyof GridProps<T>>) {\n const {as, children, className, style, ...rest} = getProps({display, ...props}, gridProps)\n const Component = as || 'div'\n\n return (\n <Component className={clsx(gridClassName, className)} style={style} data-ui=\"Grid\" {...rest}>\n {children}\n </Component>\n )\n}\n\nexport type {GridProps}\n","import clsx from 'clsx'\nimport type {ComponentPropsWithRef, ElementType} from 'react'\n\nimport {type ComponentProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Flex} from '../flex/Flex'\nimport {type HStackProps} from './hStack.props'\n\nconst hStackClassName = suffixClassName('sui-HStack')\n\n/** @public */\nexport function HStack<T extends ElementType = 'div'>({\n className,\n ...props\n}: HStackProps<T> & Omit<ComponentPropsWithRef<T>, keyof HStackProps<T>>) {\n return (\n <Flex\n className={clsx(hStackClassName, className)}\n data-ui=\"HStack\"\n display=\"inline-flex\"\n alignItems=\"center\"\n flexWrap=\"wrap\"\n {...(props as ComponentProps)}\n />\n )\n}\n\nexport type {HStackProps}\n","import {type PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface KBDProps extends React.ComponentProps<'kbd'> {\n /**\n * Sets KBD's key label.\n */\n text?: string\n /**\n * Not accepted.\n * @remarks Pass the key label via `text`.\n */\n children?: never\n}\n\nexport const kbdProps: Record<string, PropDef> = {\n text: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Text} from '../text/Text'\nimport {type KBDProps, kbdProps} from './kbd.props'\n\nconst kbdClassName = suffixClassName('sui-KBD')\n\n/** @alpha */\nexport function KBD(props: KBDProps) {\n const {className, style, text, ...rest} = getProps(props, kbdProps)\n\n const kbdClasses = clsx(kbdClassName, 'sui-p1 sui-radius2 sui-display-inline-block')\n\n return (\n <Text\n as=\"kbd\"\n className={clsx(kbdClasses, className)}\n style={style}\n data-ui=\"KBD\"\n size={0}\n weight=\"semibold\"\n muted\n trim\n {...rest}\n >\n {text}\n </Text>\n )\n}\n\nexport type {KBDProps}\n","import {type PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface HotkeysProps extends React.ComponentProps<'kbd'> {\n /**\n * The keys in the shortcut, in order. Each one renders as a KBD.\n */\n keys?: string[]\n}\n\nexport const hotkeysProps: Record<string, PropDef> = {\n keys: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {KBD} from '../kbd/KBD'\nimport {type HotkeysProps, hotkeysProps} from './hotkeys.props'\n\nconst hotkeysClassName = suffixClassName('sui-Hotkeys')\n\n/** @alpha */\nexport function Hotkeys({keys, ...props}: HotkeysProps) {\n const {className, style, ...rest} = getProps(props, hotkeysProps)\n\n if (!keys || keys.length === 0) {\n return null\n }\n\n const hotkeysClasses = clsx(hotkeysClassName, 'sui-display-inline-flex')\n\n return (\n <kbd className={clsx(hotkeysClasses, className)} style={style} data-ui=\"Hotkeys\" {...rest}>\n {keys.map((key) => (\n <KBD key={key} text={key} />\n ))}\n </kbd>\n )\n}\n\nexport type {HotkeysProps}\n","import {type ToneProps, toneProps} from '../../props/tone'\nimport {type PropDef} from '../../types/PropDef'\n\n/** @beta */\nexport interface IndicatorProps<T extends React.ElementType = 'span'> extends ToneProps {\n /**\n * HTML element to render.\n */\n as?: T\n /**\n * Accessible label.\n */\n label?: string\n}\n\nexport const indicatorProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n label: {\n type: 'string',\n },\n ...toneProps,\n}\n","import clsx from 'clsx'\nimport type {ComponentPropsWithRef, ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Box} from '../box/Box'\nimport {type IndicatorProps, indicatorProps} from './indicator.props'\n\nconst indicatorClassName = suffixClassName('sui-Indicator')\n\n/** @beta */\nexport function Indicator<T extends ElementType = 'span'>({\n tone = 'neutral',\n ...props\n}: IndicatorProps<T> & Omit<ComponentPropsWithRef<T>, keyof IndicatorProps<T>>) {\n const {as, children, className, style, label, ...rest} = getProps(\n {tone, ...props},\n indicatorProps,\n )\n const Component = as || 'span'\n const ariaLabel = label || rest['aria-label']\n\n return (\n <Box\n as={Component}\n className={clsx(indicatorClassName, className)}\n style={style}\n data-ui=\"Indicator\"\n width=\"5px\"\n height=\"5px\"\n radius=\"full\"\n aria-label={ariaLabel}\n aria-hidden={ariaLabel ? undefined : true}\n role={ariaLabel ? 'img' : undefined}\n {...rest}\n >\n {children}\n </Box>\n )\n}\n\nexport type {IndicatorProps}\n","import {type PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface IndicatorStackProps<T extends React.ElementType = 'div'> {\n /**\n * HTML element to render.\n */\n as?: T\n}\n\nexport const indicatorStackProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\nimport type {ComponentPropsWithRef, ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {HStack} from '../h-stack/HStack'\nimport {type IndicatorStackProps, indicatorStackProps} from './indicatorStack.props'\n\nconst indicatorStackClassName = suffixClassName('sui-IndicatorStack')\n\n/** @public */\nexport function IndicatorStack<T extends ElementType = 'div'>(\n props: IndicatorStackProps<T> & Omit<ComponentPropsWithRef<T>, keyof IndicatorStackProps<T>>,\n) {\n const {as, children, className, style, ...rest} = getProps(props, indicatorStackProps)\n const Component = as || 'div'\n\n return (\n <HStack\n as={Component}\n className={clsx(indicatorStackClassName, className)}\n style={style}\n data-ui=\"IndicatorStack\"\n {...rest}\n >\n {children}\n </HStack>\n )\n}\n\nexport type {IndicatorStackProps}\n","import {marginProps} from '../../props/margin'\nimport {type PaddingProps, paddingProps} from '../../props/padding'\nimport {type PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\nimport {SPACE, type SpaceInherit} from '../../types/Space'\n\n/** @deprecated Use HStack component instead */\n/** @public */\nexport interface InlineProps<T extends React.ElementType = 'div'> extends PaddingProps {\n /**\n * HTML element or component to render.\n */\n as?: T\n /**\n * Space between children.\n */\n gap?: Responsive<SpaceInherit>\n}\n\nexport const inlineProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n gap: {\n type: 'composite',\n values: SPACE,\n composition: {\n marginTop: {\n propDef: marginProps['marginTop'] as PropDef,\n mapping: {\n 0: 0,\n 1: -1,\n 2: -2,\n 3: -3,\n 4: -4,\n 5: -5,\n 6: -6,\n 7: -7,\n 8: -8,\n 9: -9,\n },\n },\n marginLeft: {\n propDef: marginProps['marginLeft'] as PropDef,\n mapping: {\n 0: 0,\n 1: -1,\n 2: -2,\n 3: -3,\n 4: -4,\n 5: -5,\n 6: -6,\n 7: -7,\n 8: -8,\n 9: -9,\n },\n },\n },\n },\n ...paddingProps,\n}\n\nexport const inlineChildrenProps: Record<string, PropDef> = {\n gap: {\n type: 'composite',\n values: SPACE,\n composition: {\n paddingTop: {\n propDef: paddingProps['paddingTop'] as PropDef,\n mapping: {\n 0: 0,\n 1: 1,\n 2: 2,\n 3: 3,\n 4: 4,\n 5: 5,\n 6: 6,\n 7: 7,\n 8: 8,\n 9: 9,\n },\n },\n paddingLeft: {\n propDef: paddingProps['paddingLeft'] as PropDef,\n mapping: {\n 0: 0,\n 1: 1,\n 2: 2,\n 3: 3,\n 4: 4,\n 5: 5,\n 6: 6,\n 7: 7,\n 8: 8,\n 9: 9,\n },\n },\n },\n },\n}\n","import clsx from 'clsx'\nimport {Children, type ComponentPropsWithRef, type ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {inlineChildrenProps, type InlineProps, inlineProps} from './inline.props'\n\nconst inlineClassName = suffixClassName('sui-Inline')\n\n/** @deprecated Use HStack component instead */\n/** @public */\nexport function Inline<T extends ElementType = 'div'>(\n // oxlint-disable-next-line no-deprecated\n props: InlineProps<T> & Omit<ComponentPropsWithRef<T>, keyof InlineProps<T>>,\n) {\n const {as, children: childrenProp, className, style, ...rest} = getProps(props, inlineProps)\n const {className: childrenClassName} = getProps(props, inlineChildrenProps)\n const Component = as || 'div'\n\n const children = Children.map(\n childrenProp,\n (child) => child && <div className={childrenClassName}>{child}</div>,\n )\n\n return (\n <Component\n className={clsx(inlineClassName, className)}\n style={style}\n data-ui=\"Inline\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\n// oxlint-disable-next-line no-deprecated\nexport type {InlineProps}\n","import {type PropDef} from '../../types/PropDef'\n\n/** @beta */\nexport interface LinkProps extends React.ComponentProps<'a'> {\n /**\n * Sets the link to `target=\"_blank\"` and `rel=\"noopener noreferrer\"`.\n */\n openInNewTab?: boolean\n /**\n * Underlines the link.\n */\n underlined?: boolean\n}\n\nexport const linkProps: Record<string, PropDef> = {\n openInNewTab: {\n type: 'boolean',\n },\n underlined: {\n type: 'boolean',\n className: 'underlined',\n },\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type LinkProps, linkProps} from './link.props'\n\nconst linkClassName = suffixClassName('sui-Link')\n\n/** @beta */\nexport function Link({underlined = true, ...props}: LinkProps) {\n const {children, className, style, openInNewTab, ...rest} = getProps(\n {underlined, ...props},\n linkProps,\n )\n\n return (\n <a\n className={clsx(linkClassName, className)}\n style={style}\n data-ui=\"Link\"\n {...(openInNewTab ? {target: '_blank', rel: 'noopener noreferrer'} : {})}\n {...rest}\n >\n {children}\n </a>\n )\n}\n\nexport type {LinkProps}\n","import type {InteractiveAs} from '../../types/Interactive'\nimport {type PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface PressAreaProps<T extends React.ElementType = 'button'> {\n /**\n * Element or component to render.\n */\n as?: InteractiveAs<T>\n}\n\nexport const pressAreaProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\nimport type {ComponentPropsWithRef, ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type PressAreaProps, pressAreaProps} from './pressArea.props'\n\nconst pressAreaClassName = suffixClassName('sui-PressArea')\n\n/** @public */\nexport function PressArea<T extends ElementType = 'button'>(\n props: PressAreaProps<T> & Omit<ComponentPropsWithRef<T>, keyof PressAreaProps<T>>,\n) {\n const {as, children, className, style, ...rest} = getProps(props, pressAreaProps)\n const Component = as || 'button'\n\n return (\n <Component\n className={clsx(pressAreaClassName, 'sui-width-full', className)}\n style={style}\n data-ui=\"PressArea\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {PressAreaProps}\n","import clsx from 'clsx'\nimport type {ComponentPropsWithRef, ElementType} from 'react'\n\nimport type {ComponentProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Flex} from '../flex/Flex'\nimport {type VStackProps} from './vStack.props'\n\nconst vStackClassName = suffixClassName('sui-VStack')\n\n/** @public */\nexport function VStack<T extends ElementType = 'div'>({\n className,\n ...props\n}: VStackProps<T> & Omit<ComponentPropsWithRef<T>, keyof VStackProps<T>>) {\n return (\n <Flex\n className={clsx(vStackClassName, className)}\n data-ui=\"VStack\"\n flexDirection=\"column\"\n {...(props as ComponentProps)}\n />\n )\n}\n\nexport type {VStackProps}\n","import type React from 'react'\n\nimport {type GapProps, gapProps} from '../../props/gap'\nimport {heightProps} from '../../props/height'\nimport {paddingProps} from '../../props/padding'\nimport {DENSITY, type Density} from '../../types/Density'\nimport type {InteractiveAs} from '../../types/Interactive'\nimport type {ListTag} from '../../types/List'\nimport {type PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @beta */\nexport interface ListProps<T extends ListTag = 'ul'> extends Pick<GapProps, 'gap'> {\n /**\n * HTML element to render.\n */\n as?: T\n}\n\nexport const listProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n gap: gapProps['gap'] as PropDef,\n}\n\n/** @beta */\nexport interface ListItemProps extends React.ComponentProps<'li'> {\n /**\n * Sets horizontal padding, gap, and minimum row height together.\n */\n density?: Responsive<Density>\n /**\n * Slot at the left edge of the row.\n */\n start?: React.ReactNode\n /**\n * Slot at the right edge of the row.\n */\n end?: React.ReactNode\n}\n\nexport const listItemProps: Record<string, PropDef> = {\n density: {\n type: 'composite',\n values: DENSITY,\n composition: {\n gap: {\n propDef: gapProps['gap'] as PropDef,\n mapping: {\n compact: 2,\n regular: 2,\n loose: 3,\n },\n },\n minHeight: {\n propDef: heightProps['minHeight'] as PropDef,\n mapping: {\n compact: '33px',\n regular: '37px',\n loose: '45px',\n },\n },\n paddingX: {\n propDef: paddingProps['padding'] as PropDef,\n mapping: {\n compact: 1,\n regular: 2,\n loose: 3,\n },\n },\n },\n },\n end: {\n type: 'string',\n },\n start: {\n type: 'string',\n },\n}\n\n/** @beta */\nexport interface ListButtonItemProps<T extends React.ElementType = 'button'> extends ListItemProps {\n /**\n * Element or component to render for the press target.\n */\n as?: InteractiveAs<T>\n /**\n * Marks the row as the current selection.\n */\n selected?: boolean\n}\n\nexport const listButtonItemProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n selected: {\n type: 'boolean',\n },\n ...listItemProps,\n}\n\n/** @beta */\nexport interface ListItemTextProps<T extends React.ElementType = 'div'> {\n /**\n * HTML element to render.\n */\n as?: T\n /**\n * Main label.\n */\n title?: React.ReactNode\n /**\n * Text below the title.\n */\n subtitle?: React.ReactNode\n}\n\nexport const listItemTextProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n title: {\n type: 'string',\n },\n subtitle: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\nimport type {ComponentProps, ComponentPropsWithRef, ElementType} from 'react'\n\nimport type {ListTag} from '../../types/List'\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Flex} from '../flex/Flex'\nimport {PressArea} from '../press-area/PressArea'\nimport {Text} from '../text/Text'\nimport {VStack} from '../v-stack/VStack'\nimport {\n listButtonItemProps,\n type ListButtonItemProps,\n type ListItemProps,\n listItemProps,\n type ListItemTextProps,\n listItemTextProps,\n type ListProps,\n listProps,\n} from './list.props'\n\nconst listClassName = suffixClassName('sui-List')\nconst listItemClassName = suffixClassName('sui-ListItem')\nconst listButtonItemClassName = suffixClassName('sui-ListButtonItem')\nconst listItemTextClassName = suffixClassName('sui-ListItemText')\nconst listItemImageClassName = suffixClassName('sui-ListItemImage')\n\nfunction ListRoot<T extends ListTag = 'ul'>(\n props: ListProps<T> & Omit<ComponentPropsWithRef<T>, keyof ListProps<T>>,\n) {\n const {as, children, className, style, ...rest} = getProps(props, listProps)\n const Component = as || 'ul'\n\n return (\n <VStack\n as={Component}\n className={clsx(listClassName, className)}\n style={style}\n data-ui=\"List\"\n {...rest}\n >\n {children}\n </VStack>\n )\n}\n\nfunction ListItem({density = 'regular', ...props}: ListItemProps) {\n const {children, className, style, end, start, ...rest} = getProps(\n {density, ...props},\n listItemProps,\n )\n\n return (\n <li\n className={clsx(\n listItemClassName,\n 'sui-width-full sui-display-flex sui-align-items-center',\n className,\n )}\n style={style}\n data-ui=\"ListItem\"\n {...rest}\n >\n {start}\n\n <Flex flexGrow={1} gap=\"inherit\">\n {children}\n </Flex>\n\n {end}\n </li>\n )\n}\n\nfunction ListButtonItem<T extends ElementType = 'button'>({\n density = 'regular',\n ...props\n}: ListButtonItemProps<T> & Omit<ComponentPropsWithRef<T>, keyof ListButtonItemProps<T>>) {\n const {as, children, className, style, end, start, selected, ...rest} = getProps(\n {density, ...props},\n listButtonItemProps,\n )\n const Component = as || 'button'\n\n return (\n <li>\n <PressArea\n as={Component}\n className={clsx(\n listButtonItemClassName,\n 'sui-width-full sui-display-flex sui-align-items-center sui-radius2',\n className,\n )}\n style={style}\n data-ui=\"ListButtonItem\"\n data-selected={selected}\n {...rest}\n >\n {start}\n\n <Flex flexGrow={1} gap=\"inherit\">\n {children}\n </Flex>\n\n {end}\n </PressArea>\n </li>\n )\n}\n\nfunction ListItemText<T extends ElementType = 'div'>(\n props: ListItemTextProps<T> & Omit<ComponentPropsWithRef<T>, keyof ListItemTextProps<T>>,\n) {\n const {as, className, style, title, subtitle, ...rest} = getProps(props, listItemTextProps)\n const Component = as || 'div'\n\n return (\n <Flex\n as={Component}\n className={clsx(listItemTextClassName, className)}\n style={style}\n data-ui=\"ListItemText\"\n flexDirection=\"column\"\n justifyContent=\"center\"\n gap={2}\n flexGrow={1}\n {...rest}\n >\n {title && (\n <Text size={1} weight=\"medium\" trim truncate={1}>\n {title}\n </Text>\n )}\n\n {subtitle && (\n <Text size={1} muted trim truncate={1}>\n {subtitle}\n </Text>\n )}\n </Flex>\n )\n}\n\nfunction ListItemImage(props: ComponentProps<'img'>) {\n const {className, style, ...rest} = getProps(props, {})\n\n return (\n <img\n className={clsx(listItemImageClassName, 'sui-radius2', className)}\n style={style}\n data-ui=\"ListItemImage\"\n {...rest}\n />\n )\n}\n\nListRoot.displayName = 'List'\n\n/** @beta */\nexport const List = ListRoot\n\nListRoot.Item = ListItem\nListRoot.ButtonItem = ListButtonItem\nListRoot.ItemText = ListItemText\nListRoot.ItemImage = ListItemImage\n\nexport type {ListProps, ListItemProps, ListButtonItemProps, ListItemTextProps}\n","import {useSyncExternalStore} from 'react'\n\n/** @public */\nexport function useIsClient() {\n return useSyncExternalStore(\n () => () => {},\n () => true,\n () => false,\n )\n}\n","function isReactEventHandler(key: string, value: unknown): value is (e: never) => void {\n return /^on[A-Z]/.test(key) && typeof value === 'function'\n}\n\nfunction chainEventHandlers<E>(\n ...handlers: (((e: E) => void) | undefined)[]\n): ((e: E) => void) | undefined {\n const defined = handlers.filter(Boolean) as ((e: E) => void)[]\n\n if (defined.length === 0) {\n return undefined\n }\n\n if (defined.length === 1) {\n return defined[0]\n }\n\n return (e: E) => {\n for (const handler of defined) {\n handler(e)\n }\n }\n}\n\nexport function mergeTriggerProps(\n childProps: Record<string, unknown>,\n forwardedProps?: Record<string, unknown>,\n ownProps?: Record<string, unknown>,\n) {\n const result: Record<string, unknown> = {}\n\n for (const source of [forwardedProps, ownProps]) {\n if (!source) {\n continue\n }\n\n for (const [key, value] of Object.entries(source)) {\n if (key === 'style') {\n continue\n }\n\n if (isReactEventHandler(key, value)) {\n result[key] = chainEventHandlers(result[key] as (e: never) => void, value)\n continue\n }\n\n if (value !== undefined) {\n result[key] = value\n }\n }\n }\n\n result['style'] = {\n ...(childProps['style'] as object),\n ...(forwardedProps?.['style'] as object),\n ...(ownProps?.['style'] as object),\n }\n\n for (const [key, value] of Object.entries(childProps)) {\n if (isReactEventHandler(key, value)) {\n result[key] = chainEventHandlers(result[key] as (e: never) => void, value)\n }\n }\n\n return result\n}\n","import {type ReactNode} from 'react'\nimport {createPortal} from 'react-dom'\n\nexport function renderPortal(node: ReactNode, mounted: boolean, portal?: boolean) {\n if (!portal) {\n return node\n }\n\n if (!mounted) {\n return null\n }\n\n return createPortal(node, document.body)\n}\n","export const PLACEMENT = [\n 'top',\n 'top-start',\n 'top-end',\n 'right',\n 'right-start',\n 'right-end',\n 'bottom',\n 'bottom-start',\n 'bottom-end',\n 'left',\n 'left-start',\n 'left-end',\n] as const\n/** @public */\nexport type Placement = (typeof PLACEMENT)[number]\n","import {PLACEMENT, type Placement} from '../types/Placement'\nimport {type PropDef} from '../types/PropDef'\n\n/** @public */\nexport type PlacementProps = {\n /** Placement relative to anchor */\n placement?: Placement\n}\n\nexport const placementProps: Record<string, PropDef> = {\n placement: {\n type: 'union',\n className: 'placement',\n values: PLACEMENT,\n },\n}\n","import {type PlacementProps, placementProps} from '../../props/placement'\nimport {type PropDef} from '../../types/PropDef'\n\n/** @beta */\nexport interface PopoverProps\n extends Omit<React.ComponentProps<'div'>, 'children' | 'content'>, PlacementProps {\n /**\n * Shared anchor identifier.\n * @remarks Set the same value on a Tooltip and a Popover to point both at one trigger.\n */\n anchorName?: React.ReactNode\n /**\n * The trigger element.\n * @remarks Popover clones it and attaches the `popovertarget` attribute that opens the floating layer.\n */\n children: React.ReactElement<Record<string, unknown>>\n /**\n * The floating content.\n */\n content?: React.ReactNode\n /**\n * Renders the content into `document.body` through a React portal instead of inline.\n */\n portal?: boolean\n}\n\nexport const popoverProps: Record<string, PropDef> = {\n anchorName: {\n type: 'string',\n },\n content: {\n type: 'string',\n },\n portal: {\n type: 'boolean',\n },\n ...placementProps,\n}\n","import clsx from 'clsx'\nimport {Activity, cloneElement, useId, useState, type ToggleEvent} from 'react'\n\nimport {useIsClient} from '../../hooks/useIsClient'\nimport {getProps} from '../../utils/getProps'\nimport {mergeTriggerProps} from '../../utils/mergeTriggerProps'\nimport {renderPortal} from '../../utils/renderPortal'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type PopoverProps, popoverProps} from './popover.props'\n\nconst popoverClassName = suffixClassName('sui-PopoverContent')\n\nfunction PopoverRoot({\n placement = 'bottom',\n ...props\n}: PopoverProps & {\n triggerProps?: Record<string, unknown>\n}) {\n const {\n children,\n className,\n style,\n id: idProp,\n anchorName,\n content,\n portal,\n triggerProps: forwardedTriggerProps,\n ...rest\n } = getProps({placement, ...props}, popoverProps)\n const reactId = useId()\n const id = idProp || reactId\n const [open, setOpen] = useState(false)\n const isClient = useIsClient()\n\n const handleToggle = (e: ToggleEvent) => {\n setOpen(e.newState === 'open')\n }\n\n const triggerProps = {\n popoverTarget: id,\n style: {anchorName: `--anchor-${anchorName || id}`},\n }\n\n const trigger = children.type.forwardsTriggerProps\n ? cloneElement(children, {triggerProps})\n : cloneElement(children, mergeTriggerProps(children.props, forwardedTriggerProps, triggerProps))\n\n return (\n <>\n {trigger}\n\n {renderPortal(\n <Activity mode={open ? 'visible' : 'hidden'}>\n <div\n className={clsx(\n popoverClassName,\n 'sui-px2 sui-py1 sui-radius2 sui-position-fixed sui-shadow2',\n className,\n )}\n style={{\n ...style,\n positionAnchor: `--anchor-${anchorName || id}`,\n }}\n data-ui=\"Popover\"\n popover=\"auto\"\n id={id}\n onToggle={handleToggle}\n {...rest}\n >\n {content}\n </div>\n </Activity>,\n isClient,\n portal,\n )}\n </>\n )\n}\n\n/** @beta */\nexport const Popover = Object.assign(PopoverRoot, {\n forwardsTriggerProps: true,\n})\n\nexport type {PopoverProps}\n","import clsx from 'clsx'\n\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Box} from '../box/Box'\nimport {type RadioProps} from './radio.props'\n\nconst radioClassName = suffixClassName('sui-Radio')\nconst radioInputClassName = suffixClassName('sui-RadioInput')\n\n/** @beta */\nexport function Radio(props: RadioProps) {\n const {className, style, ...rest} = props\n\n return (\n <Box\n as=\"span\"\n className={clsx(radioClassName, className)}\n style={style}\n data-ui=\"Radio\"\n position=\"relative\"\n radius=\"full\"\n width=\"17px\"\n height=\"17px\"\n >\n <input type=\"radio\" className={radioInputClassName} {...rest} />\n </Box>\n )\n}\n\nexport type {RadioProps}\n","export const FORM_ELEMENT_DENSITY = ['regular', 'loose'] as const\nexport type FormElementDensity = (typeof FORM_ELEMENT_DENSITY)[number]\n","import {FORM_ELEMENT_DENSITY, type FormElementDensity} from '../types/FormElement'\nimport type {PropDef} from '../types/PropDef'\nimport {paddingProps} from './padding'\n\n/** @public */\nexport type FormElementDensityProps = {\n /**\n * Sets padding, gap, and other spacing values on the form element.\n */\n density?: FormElementDensity\n}\n\nexport const formElementDensityProps: Record<string, PropDef> = {\n density: {\n type: 'composite',\n values: FORM_ELEMENT_DENSITY,\n composition: {\n paddingX: {\n propDef: paddingProps['paddingX'] as PropDef,\n mapping: {\n regular: 2,\n loose: 3,\n },\n },\n paddingY: {\n propDef: paddingProps['paddingY'] as PropDef,\n mapping: {\n regular: 1,\n loose: 2,\n },\n },\n },\n },\n}\n","import {formElementDensityProps, type FormElementDensityProps} from '../../props/formElement'\nimport {type PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface SelectProps extends React.ComponentProps<'select'>, FormElementDensityProps {\n /**\n * Used to trigger styling for invalid states.\n * @remarks Use when form validation fails. Pair with a visible error message.\n */\n hasError?: boolean\n}\n\nexport const selectProps: Record<string, PropDef> = {\n hasError: {\n type: 'boolean',\n },\n ...formElementDensityProps,\n}\n","import SelectIcon from '@sanity/icons/Select'\nimport clsx from 'clsx'\nimport {useId} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Icon} from '../icon/Icon'\nimport {type SelectProps, selectProps} from './select.props'\n\nconst selectClassName = suffixClassName('sui-Select')\n\n/** @public */\nexport function Select({density = 'regular', hasError = false, ...props}: SelectProps) {\n const {children, className, style, ...rest} = getProps({density, ...props}, selectProps)\n\n const anchorId = useId()\n const anchorName = `--anchor-${anchorId}`\n\n const selectClasses = clsx(selectClassName, 'sui-radius2', 'sui-width-full', className)\n\n const iconClasses = `sui-position-absolute sui-display-flex sui-align-items-center sui-px1`\n\n return (\n <>\n <select\n data-ui=\"Select\"\n className={selectClasses}\n style={{...style, anchorName}}\n {...rest}\n aria-invalid={hasError || undefined}\n >\n {children}\n </select>\n <div className={iconClasses} data-ui=\"Select-icon\" style={{positionAnchor: anchorName}}>\n <Icon icon={SelectIcon} size={1} />\n </div>\n </>\n )\n}\n\nexport type {SelectProps}\n","import {type PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface VisuallyHiddenProps<T extends React.ElementType = 'span'> {\n /**\n * HTML element to render.\n */\n as?: T\n /**\n * If true, the element becomes visible on `:focus-visible`.\n */\n visibleOnFocus?: boolean\n}\n\nexport const visuallyHiddenProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n visibleOnFocus: {\n type: 'boolean',\n className: 'sui-visually-hidden-visible',\n },\n}\n","import clsx from 'clsx'\nimport type {ComponentPropsWithRef, ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type VisuallyHiddenProps, visuallyHiddenProps} from './visuallyHidden.props'\n\nconst visuallyHiddenClassName = suffixClassName('sui-VisuallyHidden')\n\n/** @public */\nexport function VisuallyHidden<T extends ElementType = 'span'>(\n props: VisuallyHiddenProps<T> & Omit<ComponentPropsWithRef<T>, keyof VisuallyHiddenProps<T>>,\n) {\n const {as, children, className, style, ...rest} = getProps(props, visuallyHiddenProps)\n const Component = as || 'span'\n\n return (\n <Component\n className={clsx(visuallyHiddenClassName, className)}\n style={style}\n data-ui=\"VisuallyHidden\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {VisuallyHiddenProps}\n","import {type PropDef} from '../../types/PropDef'\n\n/** @beta */\nexport interface SkipToContentProps extends React.ComponentProps<'a'> {\n /**\n * Same-page fragment to jump to.\n * @remarks Note: The hash character # is required for proper linking.\n */\n href: string\n /**\n * Visible and announced text.\n */\n label: string\n /**\n * Not accepted.\n * @remarks Pass text via `label`.\n */\n children?: never\n}\n\nexport const skipToContentProps: Record<string, PropDef> = {\n label: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Link} from '../link/Link'\nimport {Text} from '../text/Text'\nimport {VisuallyHidden} from '../visually-hidden/VisuallyHidden'\nimport {type SkipToContentProps, skipToContentProps} from './skipToContent.props'\n\nconst skipToContentClassName = suffixClassName('sui-SkipToContent')\n\n/** @beta */\nexport function SkipToContent(props: SkipToContentProps) {\n const {className, label, style, ...rest} = getProps(props, skipToContentProps)\n\n return (\n <VisuallyHidden\n as={Link}\n underlined={false}\n className={clsx(\n skipToContentClassName,\n 'sui-position-absolute sui-top2 sui-left2 sui-display-inline-block sui-z-index sui-py2 sui-px3 sui-radius2 sui-text-body1',\n className,\n )}\n style={style}\n data-ui=\"SkipToContent\"\n visibleOnFocus\n {...rest}\n >\n <Text size={1}>{label}</Text>\n </VisuallyHidden>\n )\n}\n\nexport type {SkipToContentProps}\n","import {type PropDef} from '../../types/PropDef'\n\n/** @beta */\nexport interface SwitchProps extends React.ComponentProps<'input'> {\n /**\n * Applies error styling to the switch track for invalid states.\n * @remarks Use when form validation fails. Pair with a visible error message.\n */\n hasError?: boolean\n}\n\nexport const switchProps: Record<string, PropDef> = {\n hasError: {\n type: 'boolean',\n },\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Flex} from '../flex/Flex'\nimport {type SwitchProps, switchProps} from './switch.props'\n\nconst switchClassName = suffixClassName('sui-Switch')\nconst switchInputClassName = suffixClassName('sui-SwitchInput')\n\n/** @beta */\nexport function Switch(props: SwitchProps) {\n const {className, style, hasError, ...rest} = getProps(props, switchProps)\n\n return (\n <Flex\n as=\"span\"\n className={clsx(switchClassName, className)}\n style={style}\n data-ui=\"Switch\"\n position=\"relative\"\n alignItems=\"center\"\n radius={6}\n >\n <input\n type=\"checkbox\"\n role=\"switch\"\n className={switchInputClassName}\n aria-invalid={hasError || undefined}\n {...rest}\n />\n </Flex>\n )\n}\n\nexport type {SwitchProps}\n","import type {LayoutProps} from '../../props/layout'\nimport {toneProps, type ToneProps} from '../../props/tone'\nimport {type PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface TabsProps extends React.ComponentProps<'div'> {\n /** The `value` of the active Tabs.Tab */\n value: string\n /** An updater function to set `value` - will be invoked with the `value` of the selected Tabs.Tab */\n onValueChange: (value: string) => void\n}\n\nexport const tabsProps: Record<string, PropDef> = {\n value: {\n type: 'string',\n },\n}\n\n// Tabs.List requires either aria-label or aria-labelledby\ntype TabsListLabelProps =\n | {'aria-labelledby': string; 'aria-label'?: never}\n | {'aria-label': string; 'aria-labelledby'?: never}\n\n/** @public */\nexport type TabsListProps = Omit<React.ComponentProps<'div'>, 'id' | 'role'> & TabsListLabelProps\n\nexport const tabsListProps: Record<string, PropDef> = {}\n\n/** @public */\nexport interface TabProps\n extends\n Omit<React.ComponentProps<'button'>, 'aria-disabled' | 'disabled' | 'id' | 'role'>,\n ToneProps {\n /** Optional icon for the tab */\n icon?: React.ElementType | React.ReactNode\n /** Text label to display in the tab */\n label: string\n /** Unique string used to identify this tab and its matching Tabs.Panel */\n value: string\n}\n\nexport const tabProps: Record<string, PropDef> = {\n icon: {\n type: 'string',\n },\n label: {\n type: 'string',\n },\n value: {\n type: 'string',\n },\n ...toneProps,\n}\n\n/** @public */\nexport interface TabsPanelProps\n extends Omit<React.ComponentProps<'div'>, 'id' | 'role'>, LayoutProps {\n /** Unique string used to identify this panel and its matching Tabs.Tab */\n value: string\n}\n\nexport const tabsPanelProps: Record<string, PropDef> = {\n value: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\nimport {createContext, isValidElement, useContext, useId} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Box} from '../box/Box'\nimport {HStack} from '../h-stack/HStack'\nimport {Icon} from '../icon/Icon'\nimport {\n tabProps,\n type TabProps,\n tabsListProps,\n type TabsListProps,\n tabsPanelProps,\n type TabsPanelProps,\n type TabsProps,\n tabsProps,\n} from './tabs.props'\n\nconst tabsClassName = suffixClassName('sui-Tabs')\n\nconst TabsContext = createContext<{\n value: string\n onValueChange: (value: string) => void\n tabsRootId: string\n} | null>(null)\n\nfunction useTabsContext() {\n const context = useContext(TabsContext)\n if (!context) throw new Error('Tabs.[subcomponents] must be rendered inside the Tabs component')\n return context\n}\n\nfunction getTabId(tabsRootId: string, value: string): string {\n const valueWithoutSpaces = value.replace(/\\s/g, '-')\n return `${tabsRootId}-${valueWithoutSpaces}-tab`\n}\n\nfunction getPanelId(tabsRootId: string, value: string): string {\n const valueWithoutSpaces = value.replace(/\\s/g, '-')\n return `${tabsRootId}-${valueWithoutSpaces}-panel`\n}\n\nfunction TabsRoot({value, onValueChange, ...props}: TabsProps) {\n const {children, className, style, ...rest} = getProps(props, tabsProps)\n\n const tabsRootId = useId()\n\n return (\n <TabsContext.Provider value={{value, onValueChange, tabsRootId}}>\n <div className={clsx(tabsClassName, className)} style={style} data-ui=\"Tabs\" {...rest}>\n {children}\n </div>\n </TabsContext.Provider>\n )\n}\n\nfunction handleKeyDown(event: React.KeyboardEvent<HTMLDivElement>) {\n // Ignore keydowns if made with alt, ctrl, or meta\n if (event.altKey || event.ctrlKey || event.metaKey) {\n return\n }\n\n const tabsList = event.currentTarget\n const focusedTab = event.target\n const tabs = Array.from(tabsList.querySelectorAll<HTMLElement>('[role=\"tab\"]'))\n const focusedTabIndex = tabs.indexOf(focusedTab as HTMLElement)\n\n if (event.key === 'ArrowLeft') {\n event.preventDefault()\n const previousTab = tabs[(focusedTabIndex - 1 + tabs.length) % tabs.length]\n previousTab?.focus()\n }\n if (event.key === 'ArrowRight') {\n event.preventDefault()\n const nextTab = tabs[(focusedTabIndex + 1) % tabs.length]\n nextTab?.focus()\n }\n if (event.key === 'Home') {\n event.preventDefault()\n tabs[0]?.focus()\n }\n if (event.key === 'End') {\n event.preventDefault()\n tabs[tabs.length - 1]?.focus()\n }\n}\n\nfunction TabsList(props: TabsListProps) {\n const {children, className, style, ...rest} = getProps(props, tabsListProps)\n\n return (\n <HStack\n {...rest}\n role=\"tablist\"\n className={className}\n style={style}\n data-ui=\"Tabs.List\"\n gap={1}\n onKeyDown={handleKeyDown}\n >\n {children}\n </HStack>\n )\n}\n\nconst tabClasses = clsx(\n 'sui-display-inline-flex',\n 'sui-align-items-center',\n 'sui-gap1',\n 'sui-px2',\n 'sui-py1',\n 'sui-radius2',\n 'sui-text-body1',\n 'sui-weight-medium',\n)\n\nfunction Tab({value, tone = 'neutral', ...props}: TabProps) {\n const {icon: IconProp, label, className, style, ...rest} = getProps({tone, ...props}, tabProps)\n\n const {tabsRootId, value: contextValue, onValueChange} = useTabsContext()\n const selected = contextValue === value\n\n return (\n <button\n className={clsx(tabClasses, className)}\n style={style}\n {...rest}\n data-ui=\"Tabs.Tab\"\n type=\"button\"\n role=\"tab\"\n id={getTabId(tabsRootId, value)}\n aria-controls={getPanelId(tabsRootId, value)}\n aria-selected={selected}\n /* Only the active tab should receive focus via Tab key; others focus via arrow keys */\n tabIndex={selected ? 0 : -1}\n onClick={(e) => {\n props.onClick?.(e)\n onValueChange(value)\n }}\n >\n {IconProp &&\n (isValidElement(IconProp) ? (\n IconProp\n ) : (\n <Icon icon={IconProp} marginX={-1} marginY={-2} size={1} />\n ))}\n {label}\n </button>\n )\n}\n\nfunction TabPanel({value, ...props}: TabsPanelProps) {\n const {children, className, style, ...rest} = getProps(props, tabsPanelProps)\n\n const {tabsRootId, value: contextValue} = useTabsContext()\n const selected = contextValue === value\n\n return (\n <Box\n className={className}\n style={style}\n // Default tabIndex for panels without focusable content — consumer overrides if their panel content is focusable\n tabIndex={0}\n {...rest}\n data-ui=\"Tabs.Panel\"\n display={selected ? 'block' : 'none'}\n role=\"tabpanel\"\n id={getPanelId(tabsRootId, value)}\n aria-labelledby={getTabId(tabsRootId, value)}\n >\n {children}\n </Box>\n )\n}\n\nTabsRoot.displayName = 'Tabs'\n\n/** @public */\nexport const Tabs = TabsRoot\n\nTabsRoot.List = TabsList\nTabsRoot.Tab = Tab\nTabsRoot.Panel = TabPanel\n\nexport type {TabsProps, TabsListProps, TabProps, TabsPanelProps}\n","import {formElementDensityProps, type FormElementDensityProps} from '../../props/formElement'\nimport {type HeightProps, heightProps} from '../../props/height'\nimport {type PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface TextAreaProps\n extends\n React.ComponentProps<'textarea'>,\n FormElementDensityProps,\n Pick<HeightProps, 'maxHeight'> {\n /**\n * Sizes the textarea to its content via the CSS `field-sizing` property.\n */\n autoResize?: boolean\n /**\n * Used to trigger styling for invalid states.\n */\n hasError?: boolean\n /**\n * The html `rows` attribute. Defaults to 5.\n */\n rows?: number\n}\n\nexport const textAreaProps: Record<string, PropDef> = {\n autoResize: {\n type: 'boolean',\n className: 'field-sizing-content',\n },\n hasError: {\n type: 'boolean',\n },\n maxHeight: heightProps['maxHeight'] as PropDef,\n ...formElementDensityProps,\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type TextAreaProps, textAreaProps} from './textArea.props'\n\nconst textAreaClassName = suffixClassName('sui-TextArea')\n\n/** @public */\nexport function TextArea({\n autoResize,\n density = 'regular',\n hasError,\n rows = 5,\n ...props\n}: TextAreaProps) {\n const {className, style, ...rest} = getProps({autoResize, density, rows, ...props}, textAreaProps)\n\n const textAreaClasses = clsx(textAreaClassName, 'sui-radius2', 'sui-width-full', className)\n\n return (\n <textarea\n className={textAreaClasses}\n style={style}\n data-ui=\"TextArea\"\n {...rest}\n aria-invalid={hasError || undefined}\n />\n )\n}\n\nexport type {TextAreaProps}\n","import {formElementDensityProps, type FormElementDensityProps} from '../../props/formElement'\nimport {type PropDef} from '../../types/PropDef'\n\nexport const TEXT_INPUT_EXCLUDED_TYPES = [\n 'button',\n 'checkbox',\n 'color',\n 'file',\n 'hidden',\n 'image',\n 'radio',\n 'range',\n 'reset',\n 'submit',\n] as const\n\n/** @public */\nexport type TextInputExcludedTypes = (typeof TEXT_INPUT_EXCLUDED_TYPES)[number]\n\n/** @public */\nexport type TextInputType = Exclude<React.HTMLInputTypeAttribute, TextInputExcludedTypes>\n\n/** @public */\nexport interface TextInputProps\n extends Omit<React.ComponentProps<'input'>, 'type'>, FormElementDensityProps {\n /**\n * Used to trigger styling for invalid states.\n * @remarks Use when form validation fails. Pair with a visible error message.\n */\n hasError?: boolean\n /**\n * The html `type` attribute, with non-text based types excluded.\n */\n type?: TextInputType\n}\n\nexport const textInputProps: Record<string, PropDef> = {\n hasError: {\n type: 'boolean',\n },\n ...formElementDensityProps,\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type TextInputProps, textInputProps} from './textInput.props'\n\nconst textInputClassName = suffixClassName('sui-TextInput')\n\n/** @public */\nexport function TextInput({\n density = 'regular',\n hasError,\n type = 'text',\n ...props\n}: TextInputProps) {\n const {className, style, ...rest} = getProps({density, ...props}, textInputProps)\n\n const textInputClasses = clsx(textInputClassName, 'sui-radius2', 'sui-width-full', className)\n\n return (\n <input\n type={type}\n className={textInputClasses}\n style={style}\n data-ui=\"TextInput\"\n {...rest}\n aria-invalid={hasError || undefined}\n />\n )\n}\n\nexport type {TextInputProps}\n","import {type PlacementProps, placementProps} from '../../props/placement'\nimport {type PropDef} from '../../types/PropDef'\n\n/** @beta */\nexport interface TooltipProps\n extends Omit<React.ComponentProps<'div'>, 'children' | 'content'>, PlacementProps {\n /**\n * Shared anchor identifier.\n */\n anchorName?: React.ReactNode\n /**\n * The trigger element.\n */\n children: React.ReactElement<Record<string, unknown>>\n /**\n * The tooltip label.\n */\n content?: React.ReactNode\n /**\n * Renders the label into `document.body` through a React portal instead of inline.\n */\n portal?: boolean\n}\n\nexport const tooltipProps: Record<string, PropDef> = {\n anchorName: {\n type: 'string',\n },\n content: {\n type: 'string',\n },\n portal: {\n type: 'boolean',\n },\n ...placementProps,\n}\n","import clsx from 'clsx'\nimport {cloneElement, useId, useState, type ToggleEvent} from 'react'\n\nimport {useIsClient} from '../../hooks/useIsClient'\nimport {getProps} from '../../utils/getProps'\nimport {mergeTriggerProps} from '../../utils/mergeTriggerProps'\nimport {renderPortal} from '../../utils/renderPortal'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type TooltipProps, tooltipProps} from './tooltip.props'\n\nconst tooltipClassName = suffixClassName('sui-Tooltip')\n\nfunction TooltipRoot({\n placement = 'bottom',\n ...props\n}: TooltipProps & {\n triggerProps?: Record<string, unknown>\n}) {\n const {\n children,\n className,\n style,\n id: idProp,\n anchorName,\n content,\n portal,\n triggerProps: forwardedTriggerProps,\n ...rest\n } = getProps({placement, ...props}, tooltipProps)\n const reactId = useId()\n const id = idProp || reactId\n const [dismissed, setDismissed] = useState(false)\n const isClient = useIsClient()\n\n const triggerProps = {\n 'aria-describedby': id,\n 'interestfor': id,\n 'style': {anchorName: `--anchor-${anchorName || id}`},\n 'onMouseLeave': () => {\n setDismissed(false)\n },\n 'onBlur': () => {\n setDismissed(false)\n },\n 'onClick': () => {\n setDismissed(true)\n document.getElementById(id)?.hidePopover()\n },\n }\n\n const trigger = children.type.forwardsTriggerProps\n ? cloneElement(children, {triggerProps})\n : cloneElement(children, mergeTriggerProps(children.props, forwardedTriggerProps, triggerProps))\n\n const handleBeforeToggle = (e: ToggleEvent) => {\n if (e.newState === 'open' && dismissed) {\n e.preventDefault()\n }\n }\n\n return (\n <>\n {trigger}\n\n {renderPortal(\n <div\n className={clsx(\n tooltipClassName,\n 'sui-p2 sui-radius2 sui-position-fixed sui-shadow2 sui-text-body1 sui-text-trim-edge',\n className,\n )}\n style={{\n ...style,\n positionAnchor: `--anchor-${anchorName || id}`,\n }}\n data-ui=\"Tooltip\"\n role=\"tooltip\"\n popover=\"hint\"\n id={id}\n onBeforeToggle={handleBeforeToggle}\n {...rest}\n >\n {content}\n </div>,\n isClient,\n portal,\n )}\n </>\n )\n}\n\n/** @beta */\nexport const Tooltip = Object.assign(TooltipRoot, {\n forwardsTriggerProps: true,\n}) as typeof TooltipRoot\n\nexport type {TooltipProps}\n","import {type PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface TooltipGroupProps<T extends React.ElementType = 'div'> {\n /**\n * HTML element to render.\n */\n as?: T\n}\n\nexport const tooltipGroupProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\nimport {type ComponentPropsWithRef, type ElementType, useRef, useState} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type TooltipGroupProps, tooltipGroupProps} from './tooltipGroup.props'\n\nconst tooltipGroupClassName = suffixClassName('sui-TooltipGroup')\n\n/** @public */\nexport function TooltipGroup<T extends ElementType = 'div'>(\n props: TooltipGroupProps<T> & Omit<ComponentPropsWithRef<T>, keyof TooltipGroupProps<T>>,\n) {\n const {as, children, className, style, ...rest} = getProps(props, tooltipGroupProps)\n const Component = as || 'div'\n const ref = useRef<HTMLElement>(null)\n const [isActive, setIsActive] = useState(false)\n\n const handleTransitionEnd = (e: TransitionEvent) => {\n const tooltip = (e.target as Element).closest('[data-ui=\"Tooltip\"]')\n\n if (!tooltip) {\n return\n }\n\n if (e.propertyName === 'opacity' && window.getComputedStyle(tooltip).opacity !== '0') {\n setIsActive(true)\n }\n }\n\n const handleMouseLeave = () => {\n setIsActive(false)\n }\n\n const handleBlur = (e: FocusEvent) => {\n if (ref.current && ref.current.contains(e.relatedTarget as Node)) {\n return\n }\n\n setIsActive(false)\n }\n\n return (\n <Component\n className={clsx(tooltipGroupClassName, className)}\n style={{\n ...style,\n ...(isActive && {\n '--tooltip-delay-group': '0ms',\n }),\n }}\n data-ui=\"TooltipGroup\"\n ref={ref}\n onTransitionEnd={handleTransitionEnd}\n onMouseLeave={handleMouseLeave}\n onBlur={handleBlur}\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {TooltipGroupProps}\n"],"mappings":";;;;;;;;;;;AAaA,SAAgB,SACd,gBACA,UACgB;CAChB,IAAM,EAAC,mBAAmB,gBAAe,sBAAsB,gBAAgB,QAAQ,GACjF,YAA4B,CAAC,GAC/B,YAAY,gBAAgB,aAAa,IACzC,QAAQ,gBAAgB,SAAS,CAAC;CAEtC,KAAK,IAAM,OAAO,mBAAmB;EACnC,IAAM,UAAU,cAAc,MACxB,YAAY,kBAAkB;EAEpC,IACE,EAAG,WAAW,eAAe,WAAW,QAAQ,aAAc,SAAS,SAAS,gBAChF;GACA,UAAU,OAAO;GACjB;EACF;EAEA,IAAI,MAAM,QAAQ,SAAS,GAGzB,KAAK,IAAI,IAAI,GAAG,MAAM,KAAK,IAAI,UAAU,QAAQ,CAAkB,GAAG,IAAI,KAAK,KAAK;GAClF,IAAM,kBAAkB,mBAAmB,UAAU,IAAI,OAAO;GAE3D,oBAIL,YAAY,KAAK,WAAW,aAAa,UAAU,IAAI,iBAAiB,CAAC,CAAC,GAC1E,QAAQ;IAAC,GAAG;IAAO,GAAG,SAAS,UAAU,IAAI,iBAAiB,CAAC;GAAC;EAClE;OACK;GACL,IAAM,kBAAkB,mBAAmB,WAAW,OAAO;GAE7D,IAAI,CAAC,iBAAiB;IACpB,UAAU,OAAO;IACjB;GACF;GAGA,AADA,YAAY,KAAK,WAAW,aAAa,WAAW,eAAe,CAAC,GACpE,QAAQ;IAAC,GAAG;IAAO,GAAG,SAAS,WAAW,eAAe;GAAC;EAC5D;CACF;CAEA,OAAO;EAAC,GAAG;EA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A,MAAAA,IACJF,EAAAA,MAAAA,8BAFTC;AAkBJ"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["Component","clsx(textClassName, props.truncate && 'sui-overflow-hidden', className)","{size = 2, ...props}: TextProps<T>","size = 2","...rest","clsx(\n 'sui-overflow-hidden',\n props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp',\n )","props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp'","clsx(\n textClassName,\n className?.replace('sui-line-clamp', '').replace('sui-text-overflow', ''),\n )","<Component\n className={clsx(textClassName, props.truncate && 'sui-overflow-hidden', className)}\n style={style}\n data-ui=\"Text\"\n {...rest}\n >\n {children}\n </Component>","{color = 'gray', size = 1, ...props}: AvatarProps","color = 'gray'","size = 1","<figure\n className={clsx(\n avatarClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius-full sui-position-relative',\n className,\n )}\n style={style}\n data-ui=\"Avatar\"\n {...rest}\n >\n {src && !error ? (\n <img\n className=\"sui-radius-full sui-width-full sui-height-full\"\n src={src}\n alt={ariaLabel || name}\n onError={() => setError(true)}\n />\n ) : (\n <Text role=\"img\" weight=\"semibold\" aria-label={ariaLabel || name}>\n {name.slice(0, 1)}\n </Text>\n )}\n </figure>","clsx(\n avatarClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius-full sui-position-relative',\n className,\n )","src && !error ? (\n <img\n className=\"sui-radius-full sui-width-full sui-height-full\"\n src={src}\n alt={ariaLabel || name}\n onError={() => setError(true)}\n />\n ) : (\n <Text role=\"img\" weight=\"semibold\" aria-label={ariaLabel || name}>\n {name.slice(0, 1)}\n </Text>\n )","\"Avatar\"","clsx(\n avatarCounterClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius-full sui-border',\n className,\n )","{size = 1, ...props}: AvatarCounterProps","size = 1","ariaLabel","...rest","<Text role=\"img\" weight=\"semibold\" aria-label={ariaLabel || `+ ${count} more`}>\n {count}\n </Text>","ariaLabel || `+ ${count} more`","<figure\n className={clsx(\n avatarCounterClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius-full sui-border',\n className,\n )}\n style={style}\n data-ui=\"AvatarCounter\"\n {...rest}\n >\n <Text role=\"img\" weight=\"semibold\" aria-label={ariaLabel || `+ ${count} more`}>\n {count}\n </Text>\n </figure>","clsx(avatarStackClassName, 'sui-display-flex', className)","style","\"AvatarStack\"","rest","(!length || length > maxLength) && (\n <li className=\"sui-display-flex\">\n <AvatarCounter\n count={!length ? 0 : length - maxLength}\n size={sizeProp}\n aria-label={\n !length\n ? 'No users'\n : `+ ${length - maxLength} more user${length - maxLength > 1 ? 's' : ''}`\n }\n />\n </li>\n )","visibleAvatars.map((child) => (\n <li key={child.key} className=\"sui-display-flex\">\n {cloneElement(child, {size: sizeProp})}\n </li>\n ))","{size = 1, ...props}: AvatarStackProps","size = 1","<ul\n className={clsx(avatarStackClassName, 'sui-display-flex', className)}\n style={style}\n data-ui=\"AvatarStack\"\n {...rest}\n >\n {(!length || length > maxLength) && (\n <li className=\"sui-display-flex\">\n <AvatarCounter\n count={!length ? 0 : length - maxLength}\n size={sizeProp}\n aria-label={\n !length\n ? 'No users'\n : `+ ${length - maxLength} more user${length - maxLength > 1 ? 's' : ''}`\n }\n />\n </li>\n )}\n\n {visibleAvatars.map((child) => (\n <li key={child.key} className=\"sui-display-flex\">\n {cloneElement(child, {size: sizeProp})}\n </li>\n ))}\n </ul>","Component","clsx(badgeClasses, className)","style","\"Badge\"","rest","IconStart &&\n (isValidElement(IconStart) ? (\n IconStart\n ) : (\n <Icon icon={IconStart} marginX={-1} marginY={-2} size={0} />\n ))","{tone = 'neutral', ...props}: BadgeProps<T>","tone = 'neutral'","text && (\n <Text size={1} trim>\n {text}\n </Text>\n )","<Component className={clsx(badgeClasses, className)} style={style} data-ui=\"Badge\" {...rest}>\n {IconStart &&\n (isValidElement(IconStart) ? (\n IconStart\n ) : (\n <Icon icon={IconStart} marginX={-1} marginY={-2} size={0} />\n ))}\n {text && (\n <Text size={1} trim>\n {text}\n </Text>\n )}\n {children}\n </Component>","Component","clsx(boxClassName, className)","{display = 'block', ...props}: BoxProps<T>","display = 'block'","...rest","<Component className={clsx(boxClassName, className)} style={style} data-ui=\"Box\" {...rest}>\n {children}\n </Component>","Component","clsx(flexClassName, className)","{display = 'flex', ...props}: FlexProps<T>","display = 'flex'","...rest","<Component className={clsx(flexClassName, className)} style={style} data-ui=\"Flex\" {...rest}>\n {children}\n </Component>","Icon","SpinnerIcon","size","clsx(spinnerClassName, className)","{size = 2, ...props}: SpinnerProps","size = 2","...rest","<Icon\n icon={SpinnerIcon}\n size={size}\n className={clsx(spinnerClassName, className)}\n style={style}\n data-ui=\"Spinner\"\n role=\"status\"\n aria-label=\"Loading...\"\n {...rest}\n />","Component","clsx(\n buttonClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius2 sui-position-relative sui-overflow-hidden',\n className,\n )","loading && (\n <Flex\n position=\"absolute\"\n inset={0}\n alignItems=\"center\"\n justifyContent=\"center\"\n data-ui=\"Button-Spinner\"\n aria-hidden=\"true\"\n >\n <Spinner />\n </Flex>\n )","IconStart &&\n (isValidElement(IconStart) ? (\n IconStart\n ) : (\n <Icon icon={IconStart} marginX={-1} marginY={-2} size={1} />\n ))","text && (\n <Text size={1} weight=\"medium\" trim>\n {text}\n </Text>\n )","children","IconEnd &&\n (isValidElement(IconEnd) ? (\n IconEnd\n ) : (\n <Icon icon={IconEnd} marginX={-1} marginY={-2} size={1} />\n ))","style","\"Button\"","loading","pressed","loading\n ? (e: Event) => {\n e.preventDefault()\n }\n : onClick","Component === 'button' ? 'button' : undefined","rest","{\n density = 'regular',\n level = 'primary',\n tone = 'neutral',\n ...props\n}: ButtonProps<T>","density = 'regular'","level = 'primary'","tone = 'neutral'","(e: Event) => {\n e.preventDefault()\n }","<Component\n className={clsx(\n buttonClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius2 sui-position-relative sui-overflow-hidden',\n className,\n )}\n style={style}\n data-ui=\"Button\"\n aria-busy={loading}\n aria-disabled={loading}\n aria-pressed={pressed}\n onClick={\n loading\n ? (e: Event) => {\n e.preventDefault()\n }\n : onClick\n }\n type={Component === 'button' ? 'button' : undefined}\n {...rest}\n >\n {loading && (\n <Flex\n position=\"absolute\"\n inset={0}\n alignItems=\"center\"\n justifyContent=\"center\"\n data-ui=\"Button-Spinner\"\n aria-hidden=\"true\"\n >\n <Spinner />\n </Flex>\n )}\n\n {IconStart &&\n (isValidElement(IconStart) ? (\n IconStart\n ) : (\n <Icon icon={IconStart} marginX={-1} marginY={-2} size={1} />\n ))}\n\n {text && (\n <Text size={1} weight=\"medium\" trim>\n {text}\n </Text>\n )}\n\n {children}\n {IconEnd &&\n (isValidElement(IconEnd) ? (\n IconEnd\n ) : (\n <Icon icon={IconEnd} marginX={-1} marginY={-2} size={1} />\n ))}\n </Component>","Component","clsx(cardClassName, 'sui-border', className)","{\n density = 'regular',\n tone = 'default',\n ...props\n}: CardProps<T>","density = 'regular'","tone = 'default'","...rest","<Component\n className={clsx(cardClassName, 'sui-border', className)}\n style={style}\n data-ui=\"Card\"\n {...rest}\n >\n {children}\n </Component>","indeterminate ? <RemoveIcon aria-hidden=\"true\" /> : <CheckmarkIcon aria-hidden=\"true\" />","<input\n type=\"checkbox\"\n className={checkboxInputClassName}\n ref={inputRef}\n aria-invalid={hasError || undefined}\n {...rest}\n />","hasError || undefined","<Box\n as=\"span\"\n className={clsx(checkboxClassName, className)}\n style={style}\n data-ui=\"Checkbox\"\n position=\"relative\"\n radius={2}\n width=\"17px\"\n height=\"17px\"\n >\n {indeterminate ? <RemoveIcon aria-hidden=\"true\" /> : <CheckmarkIcon aria-hidden=\"true\" />}\n\n <input\n type=\"checkbox\"\n className={checkboxInputClassName}\n ref={inputRef}\n aria-invalid={hasError || undefined}\n {...rest}\n />\n </Box>","Box","clsx(checkboxClassName, className)","\"span\"","Component","clsx(codeClassName, className)","{size = 2, ...props}: CodeProps","size = 2","...rest","language ? (\n <Suspense fallback={<code>{children}</code>}>\n <LazyRefractor language={language} value={children} />\n </Suspense>\n ) : (\n <code>{children}</code>\n )","<Component className={clsx(codeClassName, className)} style={style} data-ui=\"Code\" {...rest}>\n {language ? (\n <Suspense fallback={<code>{children}</code>}>\n <LazyRefractor language={language} value={children} />\n </Suspense>\n ) : (\n <code>{children}</code>\n )}\n </Component>","Component","clsx(containerClassName, className)","{\n marginX = 'auto',\n size = 2,\n ...props\n}: ContainerProps<T>","marginX = 'auto'","size = 2","...rest","<Component\n className={clsx(containerClassName, className)}\n style={style}\n data-ui=\"Container\"\n {...rest}\n >\n {children}\n </Component>","Component","clsx(\n headingClassName,\n props.truncate && 'sui-overflow-hidden',\n 'sui-weight-bold',\n className,\n )","{size = 2, ...props}: HeadingProps<T>","size = 2","...rest","clsx(\n 'sui-overflow-hidden',\n props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp',\n )","props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp'","clsx(\n headingClassName,\n className?.replace('sui-line-clamp', '').replace('sui-text-overflow', ''),\n 'sui-weight-bold',\n )","<Component\n className={clsx(\n headingClassName,\n props.truncate && 'sui-overflow-hidden',\n 'sui-weight-bold',\n className,\n )}\n style={style}\n data-ui=\"Heading\"\n {...rest}\n >\n {children}\n </Component>","Button","Component","clsx(iconButtonClassName, className)","IconProp","...rest","<Icon icon={IconProp} margin={-2} size={1} />","<Button\n as={Component}\n className={clsx(iconButtonClassName, className)}\n style={style}\n data-ui=\"IconButton\"\n {...rest}\n >\n <Icon icon={IconProp} margin={-2} size={1} />\n </Button>","{open = false, size = 0, ...props}: DialogProps","open = false","size = 0","() => {\n const dialogElement = dialogRef.current\n if (!dialogElement) return\n\n // `open` = `open` prop\n // dialogElement.open = the `open` attribute on the HTML dialog element\n // The prop and the attribute are manipulated independently, thus they\n // can get out of sync if not handled within this effect.\n if (open) {\n if (!dialogElement.open) {\n dialogElement.showModal()\n }\n } else {\n if (dialogElement.open) {\n dialogElement.close()\n }\n }\n\n // Ensure the dialog is closed (and thus its `open` attribute updated)\n // when the component is unmounted.\n return () => {\n dialogElement.close()\n }\n }","[open]","header ? (\n <Heading as=\"h2\" trim size={1} id={headerId}>\n {header}\n </Heading>\n ) : (\n <div />\n )","<IconButton\n aria-label=\"Close\"\n level=\"tertiary\"\n icon={CloseIcon}\n onClick={() => dialogRef.current?.close()}\n />","<Flex flexShrink={0} justifyContent=\"space-between\" alignItems=\"center\">\n {header ? (\n <Heading as=\"h2\" trim size={1} id={headerId}>\n {header}\n </Heading>\n ) : (\n <div />\n )}\n <IconButton\n aria-label=\"Close\"\n level=\"tertiary\"\n icon={CloseIcon}\n onClick={() => dialogRef.current?.close()}\n />\n </Flex>","<dialog\n {...rest}\n ref={dialogRef}\n closedby=\"any\"\n aria-labelledby={header ? headerId : undefined}\n onClose={onClose}\n className={clsx(dialogClasses, className)}\n style={style}\n data-ui=\"Dialog\"\n >\n <Flex flexShrink={0} justifyContent=\"space-between\" alignItems=\"center\">\n {header ? (\n <Heading as=\"h2\" trim size={1} id={headerId}>\n {header}\n </Heading>\n ) : (\n <div />\n )}\n <IconButton\n aria-label=\"Close\"\n level=\"tertiary\"\n icon={CloseIcon}\n onClick={() => dialogRef.current?.close()}\n />\n </Flex>\n {children}\n </dialog>","header ? headerId : undefined","clsx(dialogClasses, className)","\"any\"","Box","rest","clsx(dialogContentClassName, className)","<Box\n {...rest}\n className={clsx(dialogContentClassName, className)}\n style={style}\n data-ui=\"DialogContent\"\n flexGrow={1}\n overflowY=\"auto\"\n >\n {children}\n </Box>","clsx(dialogFooterClassName, className)","<Box\n {...rest}\n className={clsx(dialogFooterClassName, className)}\n style={style}\n data-ui=\"DialogFooter\"\n flexShrink={0}\n >\n {children}\n </Box>","clsx(dividerClassName, 'sui-border-none sui-border-top', className)","...rest","<hr\n className={clsx(dividerClassName, 'sui-border-none sui-border-top', className)}\n style={style}\n data-ui=\"Divider\"\n {...rest}\n />","Component","clsx(\n eyebrowClassName,\n props.truncate && 'sui-overflow-hidden',\n 'sui-weight-semibold',\n className,\n )","{size = 2, ...props}: EyebrowProps<T>","size = 2","...rest","clsx(\n 'sui-overflow-hidden',\n props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp',\n )","props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp'","clsx(\n eyebrowClassName,\n className?.replace('sui-line-clamp', '').replace('sui-text-overflow', ''),\n 'sui-weight-semibold',\n )","<Component\n className={clsx(\n eyebrowClassName,\n props.truncate && 'sui-overflow-hidden',\n 'sui-weight-semibold',\n className,\n )}\n style={style}\n data-ui=\"Eyebrow\"\n {...rest}\n >\n {children}\n </Component>","Component","clsx(gridClassName, className)","{display = 'grid', ...props}: GridProps<T>","display = 'grid'","...rest","<Component className={clsx(gridClassName, className)} style={style} data-ui=\"Grid\" {...rest}>\n {children}\n </Component>","{className, ...props}: HStackProps<T>","clsx(hStackClassName, className)","<Flex\n className={clsx(hStackClassName, className)}\n data-ui=\"HStack\"\n display=\"inline-flex\"\n alignItems=\"center\"\n flexWrap=\"wrap\"\n {...(props as ComponentProps)}\n />","props as ComponentProps","Text","\"kbd\"","clsx(kbdClasses, className)","...rest","<Text\n as=\"kbd\"\n className={clsx(kbdClasses, className)}\n style={style}\n data-ui=\"KBD\"\n size={0}\n weight=\"semibold\"\n muted\n trim\n {...rest}\n >\n {text}\n </Text>","clsx(hotkeysClasses, className)","{keys, ...props}: HotkeysProps","...rest","keys.map((key) => (\n <KBD key={key} text={key} />\n ))","(key) => (\n <KBD key={key} text={key} />\n )","<kbd className={clsx(hotkeysClasses, className)} style={style} data-ui=\"Hotkeys\" {...rest}>\n {keys.map((key) => (\n <KBD key={key} text={key} />\n ))}\n </kbd>","Box","Component","clsx(indicatorClassName, className)","{\n tone = 'neutral',\n ...props\n}: IndicatorProps<T>","tone = 'neutral'","...rest","<Box\n as={Component}\n className={clsx(indicatorClassName, className)}\n style={style}\n data-ui=\"Indicator\"\n width=\"5px\"\n height=\"5px\"\n radius=\"full\"\n aria-label={ariaLabel}\n aria-hidden={ariaLabel ? undefined : true}\n role={ariaLabel ? 'img' : undefined}\n {...rest}\n >\n {children}\n </Box>","ariaLabel ? undefined : true","ariaLabel ? 'img' : undefined","HStack","Component","clsx(indicatorStackClassName, className)","...rest","<HStack\n as={Component}\n className={clsx(indicatorStackClassName, className)}\n style={style}\n data-ui=\"IndicatorStack\"\n {...rest}\n >\n {children}\n </HStack>","Component","clsx(inlineClassName, className)","...rest","(child) => child && <div className={childrenClassName}>{child}</div>","<Component\n className={clsx(inlineClassName, className)}\n style={style}\n data-ui=\"Inline\"\n {...rest}\n >\n {children}\n </Component>","clsx(linkClassName, className)","{underlined = true, ...props}: LinkProps","underlined = true","...rest","openInNewTab ? {target: '_blank', rel: 'noopener noreferrer'} : {}","<a\n className={clsx(linkClassName, className)}\n style={style}\n data-ui=\"Link\"\n {...(openInNewTab ? {target: '_blank', rel: 'noopener noreferrer'} : {})}\n {...rest}\n >\n {children}\n </a>","Component","clsx(pressAreaClassName, 'sui-width-full', className)","...rest","<Component\n className={clsx(pressAreaClassName, 'sui-width-full', className)}\n style={style}\n data-ui=\"PressArea\"\n {...rest}\n >\n {children}\n </Component>","{className, ...props}: VStackProps<T>","clsx(vStackClassName, className)","<Flex\n className={clsx(vStackClassName, className)}\n data-ui=\"VStack\"\n flexDirection=\"column\"\n {...(props as ComponentProps)}\n />","props as ComponentProps","VStack","Component","clsx(listClassName, className)","...rest","<VStack\n as={Component}\n className={clsx(listClassName, className)}\n style={style}\n data-ui=\"List\"\n {...rest}\n >\n {children}\n </VStack>","{className, ...rest}: ListItemProps","clsx(listItemClassName, 'sui-text-body1', className)","<li\n data-ui=\"ListItem\"\n className={clsx(listItemClassName, 'sui-text-body1', className)}\n {...rest}\n />","PressArea","clsx(\n listButtonClassName,\n 'sui-width-full sui-display-flex sui-align-items-center sui-radius2',\n className,\n )","{\n density = 'regular',\n ...props\n}: ListItemButtonProps<T>","density = 'regular'","text && (\n <Text size={1} weight=\"medium\" trim truncate={1}>\n {text}\n </Text>\n )","subtext && (\n <Text size={1} muted trim truncate={1}>\n {subtext}\n </Text>\n )","<Flex flexDirection=\"column\" justifyContent=\"center\" gap={2} flexGrow={1}>\n {text && (\n <Text size={1} weight=\"medium\" trim truncate={1}>\n {text}\n </Text>\n )}\n\n {subtext && (\n <Text size={1} muted trim truncate={1}>\n {subtext}\n </Text>\n )}\n\n {children}\n </Flex>","<PressArea\n as={Component}\n className={clsx(\n listButtonClassName,\n 'sui-width-full sui-display-flex sui-align-items-center sui-radius2',\n className,\n )}\n style={style}\n data-ui=\"ListItemButton\"\n aria-current={current}\n {...rest}\n >\n {start}\n\n <Flex flexDirection=\"column\" justifyContent=\"center\" gap={2} flexGrow={1}>\n {text && (\n <Text size={1} weight=\"medium\" trim truncate={1}>\n {text}\n </Text>\n )}\n\n {subtext && (\n <Text size={1} muted trim truncate={1}>\n {subtext}\n </Text>\n )}\n\n {children}\n </Flex>\n\n {end}\n </PressArea>","{className, ...rest}: ListImageProps","clsx(listItemImageClassName, 'sui-radius2', className)","<img\n className={clsx(listItemImageClassName, 'sui-radius2', className)}\n data-ui=\"ListItemImage\"\n {...rest}\n />","() => () => {}","() => true","() => false","() => {}","{\n placement = 'bottom',\n fullBleed = false,\n ...props\n}: PopoverProps & {\n triggerProps?: Record<string, unknown>\n}","placement = 'bottom'","fullBleed = false","(e: ToggleEvent) => {\n setOpen(e.newState === 'open')\n }","<>\n {trigger}\n\n {renderPortal(\n <Activity mode={open ? 'visible' : 'hidden'}>\n <div\n className={clsx(\n popoverClassName,\n 'sui-radius3 sui-position-fixed sui-shadow2 sui-text-body1 sui-text-trim-edge',\n className,\n )}\n style={{\n ...style,\n positionAnchor: `--anchor-${anchorName || id}`,\n }}\n data-ui=\"Popover\"\n popover=\"auto\"\n id={id}\n onToggle={handleToggle}\n {...rest}\n >\n {content}\n </div>\n </Activity>,\n isClient,\n portal,\n )}\n </>","renderPortal(\n <Activity mode={open ? 'visible' : 'hidden'}>\n <div\n className={clsx(\n popoverClassName,\n 'sui-radius3 sui-position-fixed sui-shadow2 sui-text-body1 sui-text-trim-edge',\n className,\n )}\n style={{\n ...style,\n positionAnchor: `--anchor-${anchorName || id}`,\n }}\n data-ui=\"Popover\"\n popover=\"auto\"\n id={id}\n onToggle={handleToggle}\n {...rest}\n >\n {content}\n </div>\n </Activity>,\n isClient,\n portal,\n )","clsx(radioClassName, className)","<input type=\"radio\" className={radioInputClassName} {...rest} />","<Box\n as=\"span\"\n className={clsx(radioClassName, className)}\n style={style}\n data-ui=\"Radio\"\n position=\"relative\"\n radius=\"full\"\n width=\"17px\"\n height=\"17px\"\n >\n <input type=\"radio\" className={radioInputClassName} {...rest} />\n </Box>","{density = 'regular', hasError = false, ...props}: SelectProps","density = 'regular'","hasError = false","{...style, anchorName}","<select\n data-ui=\"Select\"\n className={selectClasses}\n style={{...style, anchorName}}\n {...rest}\n aria-invalid={hasError || undefined}\n >\n {children}\n </select>","hasError || undefined","{positionAnchor: anchorName}","<Icon icon={SelectIcon} size={1} />","<div className={iconClasses} data-ui=\"Select-icon\" style={{positionAnchor: anchorName}}>\n <Icon icon={SelectIcon} size={1} />\n </div>","<>\n <select\n data-ui=\"Select\"\n className={selectClasses}\n style={{...style, anchorName}}\n {...rest}\n aria-invalid={hasError || undefined}\n >\n {children}\n </select>\n <div className={iconClasses} data-ui=\"Select-icon\" style={{positionAnchor: anchorName}}>\n <Icon icon={SelectIcon} size={1} />\n </div>\n </>","Component","clsx(visuallyHiddenClassName, className)","...rest","<Component\n className={clsx(visuallyHiddenClassName, className)}\n style={style}\n data-ui=\"VisuallyHidden\"\n {...rest}\n >\n {children}\n </Component>","VisuallyHidden","Link","false","clsx(\n skipToContentClassName,\n 'sui-position-absolute sui-top2 sui-left2 sui-display-inline-block sui-z-index sui-py2 sui-px3 sui-radius2 sui-text-body1',\n className,\n )","...rest","<Text size={1}>{label}</Text>","<VisuallyHidden\n as={Link}\n underlined={false}\n className={clsx(\n skipToContentClassName,\n 'sui-position-absolute sui-top2 sui-left2 sui-display-inline-block sui-z-index sui-py2 sui-px3 sui-radius2 sui-text-body1',\n className,\n )}\n style={style}\n data-ui=\"SkipToContent\"\n visibleOnFocus\n {...rest}\n >\n <Text size={1}>{label}</Text>\n </VisuallyHidden>","Flex","\"span\"","clsx(switchClassName, className)","...rest","<input\n type=\"checkbox\"\n role=\"switch\"\n className={switchInputClassName}\n aria-invalid={hasError || undefined}\n {...rest}\n />","hasError || undefined","<Flex\n as=\"span\"\n className={clsx(switchClassName, className)}\n style={style}\n data-ui=\"Switch\"\n position=\"relative\"\n alignItems=\"center\"\n radius={6}\n >\n <input\n type=\"checkbox\"\n role=\"switch\"\n className={switchInputClassName}\n aria-invalid={hasError || undefined}\n {...rest}\n />\n </Flex>","{value, onValueChange, ...props}: TabsProps","{value, onValueChange, tabsRootId}","<div className={clsx(tabsClassName, className)} style={style} data-ui=\"Tabs\" {...rest}>\n {children}\n </div>","clsx(tabsClassName, className)","<TabsContext.Provider value={{value, onValueChange, tabsRootId}}>\n <div className={clsx(tabsClassName, className)} style={style} data-ui=\"Tabs\" {...rest}>\n {children}\n </div>\n </TabsContext.Provider>","Provider","TabsContext.Provider","getProps(props, tabsListProps)","<HStack\n {...rest}\n role=\"tablist\"\n className={className}\n style={style}\n data-ui=\"Tabs.List\"\n gap={1}\n onKeyDown={handleKeyDown}\n >\n {children}\n </HStack>","{value, tone = 'neutral', ...props}: TabProps","tone = 'neutral'","getTabId(tabsRootId, value)","getPanelId(tabsRootId, value)","<button\n className={clsx(tabClasses, className)}\n style={style}\n {...rest}\n data-ui=\"Tabs.Tab\"\n type=\"button\"\n role=\"tab\"\n id={getTabId(tabsRootId, value)}\n aria-controls={getPanelId(tabsRootId, value)}\n aria-selected={selected}\n /* Only the active tab should receive focus via Tab key; others focus via arrow keys */\n tabIndex={selected ? 0 : -1}\n onClick={(e) => {\n props.onClick?.(e)\n onValueChange(value)\n }}\n >\n {IconProp &&\n (isValidElement(IconProp) ? (\n IconProp\n ) : (\n <Icon icon={IconProp} marginX={-1} marginY={-2} size={1} />\n ))}\n {label}\n </button>","IconProp &&\n (isValidElement(IconProp) ? (\n IconProp\n ) : (\n <Icon icon={IconProp} marginX={-1} marginY={-2} size={1} />\n ))","clsx(tabClasses, className)","selected ? 0 : -1","(e) => {\n props.onClick?.(e)\n onValueChange(value)\n }","\"Tabs.Tab\"","\"button\"","\"tab\"","getProps(props, tabsPanelProps)","{value, ...props}: TabsPanelProps","<Box\n className={className}\n style={style}\n // Default tabIndex for panels without focusable content — consumer overrides if their panel content is focusable\n tabIndex={0}\n {...rest}\n data-ui=\"Tabs.Panel\"\n display={selected ? 'block' : 'none'}\n role=\"tabpanel\"\n id={getPanelId(tabsRootId, value)}\n aria-labelledby={getTabId(tabsRootId, value)}\n >\n {children}\n </Box>","selected ? 'block' : 'none'","clsx(textAreaClassName, 'sui-radius2', 'sui-width-full', className)","{\n autoResize,\n density = 'regular',\n hasError,\n rows = 5,\n ...props\n}: TextAreaProps","density = 'regular'","rows = 5","...rest","<textarea\n className={textAreaClasses}\n style={style}\n data-ui=\"TextArea\"\n {...rest}\n aria-invalid={hasError || undefined}\n />","hasError || undefined","clsx(textInputClassName, 'sui-radius2', 'sui-width-full', className)","{\n density = 'regular',\n hasError,\n type = 'text',\n ...props\n}: TextInputProps","density = 'regular'","type = 'text'","...rest","<input\n type={type}\n className={textInputClasses}\n style={style}\n data-ui=\"TextInput\"\n {...rest}\n aria-invalid={hasError || undefined}\n />","hasError || undefined","{\n placement = 'bottom',\n ...props\n}: TooltipProps & {\n triggerProps?: Record<string, unknown>\n}","placement = 'bottom'","() => {\n setDismissed(false)\n }","(e: ToggleEvent) => {\n if (e.newState === 'open' && dismissed) {\n e.preventDefault()\n }\n }","<>\n {trigger}\n\n {renderPortal(\n <div\n className={clsx(\n tooltipClassName,\n 'sui-p2 sui-radius2 sui-position-fixed sui-shadow2 sui-text-body1 sui-text-trim-edge',\n className,\n )}\n style={{\n ...style,\n positionAnchor: `--anchor-${anchorName || id}`,\n }}\n data-ui=\"Tooltip\"\n role=\"tooltip\"\n popover=\"hint\"\n id={id}\n onBeforeToggle={handleBeforeToggle}\n {...rest}\n >\n {content}\n </div>,\n isClient,\n portal,\n )}\n </>","renderPortal(\n <div\n className={clsx(\n tooltipClassName,\n 'sui-p2 sui-radius2 sui-position-fixed sui-shadow2 sui-text-body1 sui-text-trim-edge',\n className,\n )}\n style={{\n ...style,\n positionAnchor: `--anchor-${anchorName || id}`,\n }}\n data-ui=\"Tooltip\"\n role=\"tooltip\"\n popover=\"hint\"\n id={id}\n onBeforeToggle={handleBeforeToggle}\n {...rest}\n >\n {content}\n </div>,\n isClient,\n portal,\n )","(e: TransitionEvent) => {\n const tooltip = (e.target as Element).closest('[data-ui=\"Tooltip\"]')\n\n if (!tooltip) {\n return\n }\n\n if (e.propertyName === 'opacity' && window.getComputedStyle(tooltip).opacity !== '0') {\n setIsActive(true)\n }\n }","() => {\n setIsActive(false)\n }","(e: FocusEvent) => {\n if (ref.current && ref.current.contains(e.relatedTarget as Node)) {\n return\n }\n\n setIsActive(false)\n }","e","isActive && {\n '--tooltip-delay-group': '0ms',\n }","{\n ...style,\n ...(isActive && {\n '--tooltip-delay-group': '0ms',\n }),\n }","<Component\n className={clsx(tooltipGroupClassName, className)}\n style={{\n ...style,\n ...(isActive && {\n '--tooltip-delay-group': '0ms',\n }),\n }}\n data-ui=\"TooltipGroup\"\n ref={ref}\n onTransitionEnd={handleTransitionEnd}\n onMouseLeave={handleMouseLeave}\n onBlur={handleBlur}\n {...rest}\n >\n {children}\n </Component>","clsx(tooltipGroupClassName, className)"],"sources":["../src/utils/getProps.ts","../src/version.ts","../src/utils/suffixClassName.ts","../src/types/Space.ts","../src/props/margin.ts","../src/types/Tone.ts","../src/props/tone.ts","../src/types/FontWeight.ts","../src/types/TextAlign.ts","../src/props/typography.ts","../src/types/Text.ts","../src/components/text/text.props.ts","../src/components/text/Text.tsx","../src/props/height.ts","../src/types/Avatar.ts","../src/components/avatar/avatar.props.ts","../src/components/avatar/Avatar.tsx","../src/components/avatar-counter/avatarCounter.props.ts","../src/components/avatar-counter/AvatarCounter.tsx","../src/components/avatar-stack/avatarStack.props.ts","../src/components/avatar-stack/AvatarStack.tsx","../src/types/Icon.ts","../src/components/icon/icon.props.ts","../src/components/icon/Icon.tsx","../src/components/badge/badge.props.ts","../src/components/badge/Badge.tsx","../src/types/Radius.ts","../src/props/border.ts","../src/props/flexChild.ts","../src/props/gridChild.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/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/Flex.ts","../src/props/flexParent.ts","../src/props/gap.ts","../src/components/flex/flex.props.ts","../src/components/flex/Flex.tsx","../src/components/spinner/spinner.props.ts","../src/components/spinner/Spinner.tsx","../src/types/Button.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/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/types/Heading.ts","../src/components/heading/heading.props.ts","../src/components/heading/Heading.tsx","../src/components/icon-button/iconButton.props.ts","../src/components/icon-button/IconButton.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/Grid.ts","../src/props/gridParent.ts","../src/components/grid/grid.props.ts","../src/components/grid/Grid.tsx","../src/components/h-stack/HStack.tsx","../src/components/kbd/kbd.props.ts","../src/components/kbd/KBD.tsx","../src/components/hotkeys/hotkeys.props.ts","../src/components/hotkeys/Hotkeys.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/link/link.props.ts","../src/components/link/Link.tsx","../src/components/press-area/pressArea.props.ts","../src/components/press-area/PressArea.tsx","../src/components/v-stack/VStack.tsx","../src/components/list/list.props.ts","../src/components/list/List.tsx","../src/hooks/useIsClient.ts","../src/utils/mergeTriggerProps.ts","../src/utils/renderPortal.tsx","../src/types/Placement.ts","../src/props/placement.ts","../src/components/popover/popover.props.ts","../src/components/popover/Popover.tsx","../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/visually-hidden/visuallyHidden.props.ts","../src/components/visually-hidden/VisuallyHidden.tsx","../src/components/skip-to-content/skipToContent.props.ts","../src/components/skip-to-content/SkipToContent.tsx","../src/components/switch/switch.props.ts","../src/components/switch/Switch.tsx","../src/components/tabs/tabs.props.ts","../src/components/tabs/Tabs.tsx","../src/components/text-area/textArea.props.ts","../src/components/text-area/TextArea.tsx","../src/components/text-input/textInput.props.ts","../src/components/text-input/TextInput.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"],"sourcesContent":["import clsx from 'clsx'\n\nimport {type PropDef} from '../types/PropDef'\n\nconst PREFIX = 'sui'\nconst BREAKPOINTS_LENGTH = 6\n\nexport interface ComponentProps {\n className?: string | undefined\n style?: React.CSSProperties | undefined\n [key: string]: any\n}\n\nexport function getProps(\n componentProps?: ComponentProps,\n propDefs?: Record<string, PropDef>,\n): ComponentProps {\n const {allComponentProps, allPropDefs} = flattenCompositeProps(componentProps, propDefs)\n const restProps: ComponentProps = {}\n let className = componentProps?.className || ''\n let style = componentProps?.style || {}\n\n for (const key in allComponentProps) {\n const propDef = allPropDefs?.[key]\n const propValue = allComponentProps[key]\n\n if (\n !((propDef && 'className' in propDef && propDef.className) || propDef?.type === 'conditional')\n ) {\n restProps[key] = propValue\n continue\n }\n\n if (Array.isArray(propValue)) {\n // @TODO: consider fixing this O(n^2) time complexity\n // oxlint-disable-next-line no-accumulating-spread\n for (let i = 0, len = Math.min(propValue.length, BREAKPOINTS_LENGTH); i < len; i++) {\n const resolvedPropDef = getResolvedPropDef(propValue[i], propDef)\n\n if (!resolvedPropDef) {\n continue\n }\n\n className = clsx(className, getClassName(propValue[i], resolvedPropDef, i))\n style = {...style, ...getStyle(propValue[i], resolvedPropDef, i)}\n }\n } else {\n const resolvedPropDef = getResolvedPropDef(propValue, propDef)\n\n if (!resolvedPropDef) {\n restProps[key] = propValue\n continue\n }\n\n className = clsx(className, getClassName(propValue, resolvedPropDef))\n style = {...style, ...getStyle(propValue, resolvedPropDef)}\n }\n }\n\n return {...restProps, className, style}\n}\n\nfunction getResolvedPropDef(propValue: any, propDef?: PropDef) {\n if (propDef?.type !== 'conditional') {\n return propDef\n }\n\n const resolvedPropDef = propDef.resolve(propValue)\n\n if (!(resolvedPropDef && 'className' in resolvedPropDef && resolvedPropDef.className)) {\n return null\n }\n\n return resolvedPropDef\n}\n\nfunction getClassName(propValue: any, propDef: PropDef, bp?: number) {\n if (propDef.type === 'union' && propDef.values?.includes(propValue)) {\n /* Note: This may need updating depending on the final CSS classname formatting */\n return `${PREFIX}-${propDef.className}${typeof propValue === 'string' ? `-${propValue}` : propValue}${bp ? `-bp-${bp}` : ''}`\n }\n\n if (propDef.type === 'string' || propDef.type === 'number') {\n return `${PREFIX}-${propDef.className}${bp ? `-bp-${bp}` : ''}`\n }\n\n if (propDef.type === 'boolean') {\n if (propValue) {\n return `${PREFIX}-${propDef.className}${bp ? `-bp-${bp}` : ''}`\n }\n\n if (!propValue && propDef.inverseClassName) {\n return `${PREFIX}-${propDef.inverseClassName}${bp ? `-bp-${bp}` : ''}`\n }\n }\n\n return ''\n}\n\nfunction getStyle(propValue: any, propDef: PropDef, bp?: number) {\n if ((propDef.type === 'string' || propDef.type === 'number') && propDef.variable) {\n return {\n [`${propDef.variable}${bp ? `-bp-${bp}` : ''}`]: propValue,\n }\n }\n\n return {}\n}\n\nexport function flattenCompositeProps(\n componentProps?: ComponentProps,\n propDefs?: Record<string, PropDef>,\n) {\n const props = {\n allComponentProps: {} as ComponentProps,\n allPropDefs: {} as Record<string, PropDef>,\n }\n\n for (const key in componentProps) {\n if (propDefs?.[key] && propDefs?.[key].type === 'composite') {\n for (const compositeKey in propDefs?.[key].composition) {\n const compositeValue = getCompositeValue(componentProps[key], propDefs[key], compositeKey)\n\n props.allComponentProps[compositeKey] = compositeValue\n props.allPropDefs[compositeKey] = propDefs[key].composition[compositeKey]\n ?.propDef as PropDef\n }\n } else {\n props.allComponentProps[key] = componentProps[key]\n props.allPropDefs[key] = propDefs?.[key] as PropDef\n }\n }\n\n return props\n}\n\nfunction getCompositeValue(propValue: any, propDef: PropDef, key: string) {\n if (!('composition' in propDef)) {\n return\n }\n\n const mapping = propDef.composition[key]?.['mapping']\n let compositeValue\n\n if (Array.isArray(propValue)) {\n compositeValue = []\n\n for (let i = 0, len = propValue.length; i < len; i++) {\n compositeValue[i] = mapping?.[propValue[i]]\n }\n } else {\n compositeValue = mapping?.[propValue]\n }\n\n return compositeValue\n}\n","// This file is generated by scripts/write-version.js. Do not edit.\nexport const VERSION = '500alpha25'\nexport const HASH = '13d200'\n","import {HASH} from '../version'\n\nexport function suffixClassName(className: string) {\n return `${className}-${HASH}`\n}\n","export const SPACE = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] as const\n/** @public */\nexport type Space = (typeof SPACE)[number]\n\nexport const SPACE_AUTO = [...SPACE, 'auto'] as const\n/** @public */\nexport type SpaceAuto = (typeof SPACE_AUTO)[number]\n\nexport const SPACE_INHERIT = [...SPACE, 'inherit'] as const\n/** @public */\nexport type SpaceInherit = (typeof SPACE_INHERIT)[number]\n\nexport const SPACE_AUTO_NEGATIVE = [-9, -8, -7, -6, -5, -4, -3, -2, -1, ...SPACE, 'auto'] as const\n/** @public */\nexport type SpaceAutoNegative = (typeof SPACE_AUTO_NEGATIVE)[number]\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\nimport {SPACE_AUTO_NEGATIVE, type SpaceAutoNegative} from '../types/Space'\n\n/** @public */\nexport type MarginProps = {\n /** CSS **margin** property */\n margin?: Responsive<SpaceAutoNegative>\n /** CSS **margin-left** and **margin-right** properties */\n marginX?: Responsive<SpaceAutoNegative>\n /** CSS **margin-top** and **margin-bottom** properties */\n marginY?: Responsive<SpaceAutoNegative>\n /** CSS **margin-top** property */\n marginTop?: Responsive<SpaceAutoNegative>\n /** CSS **margin-right** property */\n marginRight?: Responsive<SpaceAutoNegative>\n /** CSS **margin-bottom** property */\n marginBottom?: Responsive<SpaceAutoNegative>\n /** CSS **margin-left** property */\n marginLeft?: Responsive<SpaceAutoNegative>\n}\n\nexport const marginProps: Record<string, PropDef> = {\n margin: {\n type: 'union',\n className: 'm',\n values: SPACE_AUTO_NEGATIVE,\n },\n marginX: {\n type: 'union',\n className: 'mx',\n values: SPACE_AUTO_NEGATIVE,\n },\n marginY: {\n type: 'union',\n className: 'my',\n values: SPACE_AUTO_NEGATIVE,\n },\n marginTop: {\n type: 'union',\n className: 'mt',\n values: SPACE_AUTO_NEGATIVE,\n },\n marginRight: {\n type: 'union',\n className: 'mr',\n values: SPACE_AUTO_NEGATIVE,\n },\n marginBottom: {\n type: 'union',\n className: 'mb',\n values: SPACE_AUTO_NEGATIVE,\n },\n marginLeft: {\n type: 'union',\n className: 'ml',\n values: SPACE_AUTO_NEGATIVE,\n },\n}\n","export const TONE = ['neutral', 'positive', 'suggest', 'caution', 'critical'] as const\nexport const TONE_WITH_DEFAULT = ['default', ...TONE]\n/** @public */\nexport type Tone = (typeof TONE)[number]\nexport type ToneWithDefault = (typeof TONE_WITH_DEFAULT)[number]\n","import {type PropDef} from '../types/PropDef'\nimport {TONE_WITH_DEFAULT, TONE, type ToneWithDefault, type Tone} from '../types/Tone'\n\nexport type ToneProps = {\n tone?: Tone\n}\n\nexport const toneProps: Record<string, PropDef> = {\n tone: {\n type: 'union',\n className: 'tone',\n values: TONE,\n },\n}\n\nexport type ToneWithDefaultProps = {\n tone?: ToneWithDefault\n}\n\nexport const toneWithDefaultProps: Record<string, PropDef> = {\n tone: {\n type: 'union',\n className: 'tone',\n values: TONE_WITH_DEFAULT,\n },\n}\n","export const FONT_WEIGHT = ['regular', 'medium', 'semibold', 'bold'] as const\n/** @public */\nexport type FontWeight = (typeof FONT_WEIGHT)[number]\n","export const TEXT_ALIGN = ['left', 'center', 'right'] as const\n/** @public */\nexport type TextAlign = (typeof TEXT_ALIGN)[number]\n","import {FONT_WEIGHT, type FontWeight} from '../types/FontWeight'\nimport {type PropDef} from '../types/PropDef'\nimport type {Responsive} from '../types/Responsive'\nimport {TEXT_ALIGN, type TextAlign} from '../types/TextAlign'\n\n/** @public */\nexport interface TypographyProps {\n /** CSS **text-align** property */\n align?: Responsive<TextAlign>\n /** CSS **color** property */\n muted?: boolean\n /** CSS **text-box-trim** property */\n trim?: boolean\n /** Number of lines to truncate */\n truncate?: Responsive<number>\n /** CSS **font-weight** property */\n weight?: FontWeight\n}\n\nexport const typographyProps: Record<string, PropDef> = {\n align: {\n type: 'union',\n className: 'text',\n values: TEXT_ALIGN,\n },\n muted: {\n type: 'boolean',\n className: 'text-muted',\n inverseClassName: 'text-default',\n },\n trim: {\n type: 'boolean',\n className: 'text-trim',\n inverseClassName: 'text-trim-none',\n },\n truncate: {\n type: 'conditional',\n resolve: (value) => {\n if (value === 1) {\n return {\n type: 'number',\n className: 'text-overflow',\n }\n } else {\n return {\n type: 'number',\n className: 'line-clamp',\n variable: '--line-clamp',\n }\n }\n },\n },\n weight: {\n type: 'union',\n className: 'weight',\n values: FONT_WEIGHT,\n },\n}\n","export const TEXT_SIZE = [0, 1, 2, 3, 4] as const\n/** @public */\nexport type TextSize = (typeof TEXT_SIZE)[number]\n","import type {ElementType} from 'react'\n\nimport {marginProps, type MarginProps} from '../../props/margin'\nimport {toneProps, type ToneProps} from '../../props/tone'\nimport {type TypographyProps, typographyProps} from '../../props/typography'\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\nimport {TEXT_SIZE, type TextSize} from '../../types/Text'\n\n/** @public */\nexport type TextProps<T extends ElementType = 'span'> = Polymorphic<\n T,\n MarginProps &\n ToneProps &\n TypographyProps & {\n /**\n * HTML element to render.\n */\n as?: T\n /**\n * Sets font size.\n */\n size?: Responsive<TextSize>\n }\n>\n\nexport const textProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n size: {\n type: 'union',\n className: 'text-body',\n values: TEXT_SIZE,\n },\n ...marginProps,\n ...toneProps,\n ...typographyProps,\n}\n","import clsx from 'clsx'\nimport type {ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type TextProps, textProps} from './text.props'\n\nconst textClassName = suffixClassName('sui-Text')\n\n/** @public */\nexport function Text<T extends ElementType = 'span'>({size = 2, ...props}: TextProps<T>) {\n const {as, children, className, style, ...rest} = getProps({size, ...props}, textProps)\n const Component = as || 'span'\n\n if (props.truncate && props.trim) {\n return (\n <Component\n className={clsx(\n textClassName,\n className?.replace('sui-line-clamp', '').replace('sui-text-overflow', ''),\n )}\n style={style}\n data-ui=\"Text\"\n {...rest}\n >\n <span\n className={clsx(\n 'sui-overflow-hidden',\n props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp',\n )}\n >\n {children}\n </span>\n </Component>\n )\n }\n\n return (\n <Component\n className={clsx(textClassName, props.truncate && 'sui-overflow-hidden', className)}\n style={style}\n data-ui=\"Text\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {TextProps}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type HeightProps = {\n /** CSS **height** property */\n height?: Responsive<string>\n /** CSS **min-height** property */\n minHeight?: Responsive<string>\n /** CSS **max-height** property */\n maxHeight?: Responsive<string>\n}\n\nexport const heightProps: Record<string, PropDef> = {\n height: {\n type: 'string',\n className: 'height',\n variable: '--height',\n },\n minHeight: {\n type: 'string',\n className: 'min-height',\n variable: '--min-height',\n },\n maxHeight: {\n type: 'string',\n className: 'max-height',\n variable: '--max-height',\n },\n}\n","export const AVATAR_SIZE = [0, 1, 2] as const\nexport type AvatarSize = (typeof AVATAR_SIZE)[number]\n\nexport const AVATAR_COLOR = [\n 'gray',\n 'purple',\n 'magenta',\n 'red',\n 'orange',\n 'yellow',\n 'green',\n 'cyan',\n] as const\nexport type AvatarColor = (typeof AVATAR_COLOR)[number]\n","import type {ComponentProps} from 'react'\n\nimport {heightProps} from '../../props/height'\nimport {AVATAR_COLOR, AVATAR_SIZE, type AvatarColor, type AvatarSize} from '../../types/Avatar'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\nimport {TEXT_SIZE} from '../../types/Text'\n\n/** @public */\nexport interface AvatarProps extends ComponentProps<'figure'> {\n /** Avatar color */\n color?: AvatarColor\n /** Avatar name, only first letter will be displayed */\n name: string\n /** Composite prop for setting height and font size */\n size?: Responsive<AvatarSize>\n /** Avatar image src */\n src?: string\n}\n\nexport const avatarProps: Record<string, PropDef> = {\n color: {\n type: 'union',\n className: 'avatar',\n values: AVATAR_COLOR,\n },\n name: {\n type: 'string',\n },\n size: {\n type: 'composite',\n values: AVATAR_SIZE,\n composition: {\n size: {\n propDef: {\n type: 'union',\n className: 'text-body',\n values: TEXT_SIZE,\n },\n mapping: {\n 0: 0,\n 1: 1,\n 2: 2,\n },\n },\n height: {\n propDef: heightProps['height'] as PropDef,\n mapping: {\n 0: '19px',\n 1: '25px',\n 2: '33px',\n },\n },\n },\n },\n src: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\nimport {useState} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Text} from '../text/Text'\nimport {type AvatarProps, avatarProps} from './avatar.props'\n\nconst avatarClassName = suffixClassName('sui-Avatar')\n\n/** @public */\nexport function Avatar({color = 'gray', size = 1, ...props}: AvatarProps) {\n const {\n className,\n style,\n 'aria-label': ariaLabel,\n name,\n src,\n ...rest\n } = getProps({color, size, ...props}, avatarProps)\n const [error, setError] = useState(false)\n\n return (\n <figure\n className={clsx(\n avatarClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius-full sui-position-relative',\n className,\n )}\n style={style}\n data-ui=\"Avatar\"\n {...rest}\n >\n {src && !error ? (\n <img\n className=\"sui-radius-full sui-width-full sui-height-full\"\n src={src}\n alt={ariaLabel || name}\n onError={() => setError(true)}\n />\n ) : (\n <Text role=\"img\" weight=\"semibold\" aria-label={ariaLabel || name}>\n {name.slice(0, 1)}\n </Text>\n )}\n </figure>\n )\n}\n\nexport type {AvatarProps}\n","import type {ComponentProps} from 'react'\n\nimport {heightProps} from '../../props/height'\nimport {AVATAR_SIZE, type AvatarSize} from '../../types/Avatar'\nimport type {PropDef} from '../../types/PropDef'\nimport {TEXT_SIZE} from '../../types/Text'\n\n/** @public */\nexport interface AvatarCounterProps extends ComponentProps<'figure'> {\n /** Count */\n count: number\n /** Composite prop for setting height and font size */\n size?: AvatarSize\n}\n\nexport const avatarCounterProps: Record<string, PropDef> = {\n count: {\n type: 'number',\n },\n size: {\n type: 'composite',\n values: AVATAR_SIZE,\n composition: {\n size: {\n propDef: {\n type: 'union',\n className: 'text-body',\n values: TEXT_SIZE,\n },\n mapping: {\n 0: 0,\n 1: 1,\n 2: 2,\n },\n },\n height: {\n propDef: heightProps['height'] as PropDef,\n mapping: {\n 0: '19px',\n 1: '25px',\n 2: '33px',\n },\n },\n },\n },\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Text} from '../text/Text'\nimport {type AvatarCounterProps, avatarCounterProps} from './avatarCounter.props'\n\nconst avatarCounterClassName = suffixClassName('sui-AvatarCounter')\n\n/** @public */\nexport function AvatarCounter({size = 1, ...props}: AvatarCounterProps) {\n const {\n className,\n style,\n 'aria-label': ariaLabel,\n count,\n ...rest\n } = getProps({size, ...props}, avatarCounterProps)\n\n return (\n <figure\n className={clsx(\n avatarCounterClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius-full sui-border',\n className,\n )}\n style={style}\n data-ui=\"AvatarCounter\"\n {...rest}\n >\n <Text role=\"img\" weight=\"semibold\" aria-label={ariaLabel || `+ ${count} more`}>\n {count}\n </Text>\n </figure>\n )\n}\n\nexport type {AvatarCounterProps}\n","import type {ComponentProps} from 'react'\n\nimport {AVATAR_SIZE, type AvatarSize} from '../../types/Avatar'\nimport type {PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface AvatarStackProps extends ComponentProps<'ul'> {\n /** Max number of avatars to display */\n maxLength?: number\n /** Avatar and AvatarCounter size */\n size?: AvatarSize\n}\n\nexport const avatarStackProps: Record<string, PropDef> = {\n maxLength: {\n type: 'number',\n },\n size: {\n type: 'union',\n values: AVATAR_SIZE,\n },\n}\n","import clsx from 'clsx'\nimport {Children, cloneElement, isValidElement, type ReactElement} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {AvatarCounter} from '../avatar-counter/AvatarCounter'\nimport type {AvatarProps} from '../avatar/avatar.props'\nimport {type AvatarStackProps, avatarStackProps} from './avatarStack.props'\n\nconst avatarStackClassName = suffixClassName('sui-AvatarStack')\n\n/** @public */\nexport function AvatarStack({size = 1, ...props}: AvatarStackProps) {\n const {\n children,\n className,\n style,\n maxLength: maxLengthProp,\n size: sizeProp,\n ...rest\n } = getProps({size, ...props}, avatarStackProps)\n const childArray = Children.toArray(children).filter(\n isValidElement,\n ) as ReactElement<AvatarProps>[]\n const length = childArray.length\n const maxLength = maxLengthProp ?? length\n const visibleAvatars =\n length > maxLength ? childArray.slice(length - maxLength, length) : childArray\n\n return (\n <ul\n className={clsx(avatarStackClassName, 'sui-display-flex', className)}\n style={style}\n data-ui=\"AvatarStack\"\n {...rest}\n >\n {(!length || length > maxLength) && (\n <li className=\"sui-display-flex\">\n <AvatarCounter\n count={!length ? 0 : length - maxLength}\n size={sizeProp}\n aria-label={\n !length\n ? 'No users'\n : `+ ${length - maxLength} more user${length - maxLength > 1 ? 's' : ''}`\n }\n />\n </li>\n )}\n\n {visibleAvatars.map((child) => (\n <li key={child.key} className=\"sui-display-flex\">\n {cloneElement(child, {size: sizeProp})}\n </li>\n ))}\n </ul>\n )\n}\n\nexport type {AvatarStackProps}\n","export const ICON_SIZE = [0, 1, 2, 3, 4] as const\n/** @public */\nexport type IconSize = (typeof ICON_SIZE)[number]\n","import type {ComponentProps, ComponentType, ReactElement, SVGProps} from 'react'\n\nimport {type MarginProps, marginProps} from '../../props/margin'\nimport {type ToneProps, toneProps} from '../../props/tone'\nimport {type TypographyProps, typographyProps} from '../../props/typography'\nimport {ICON_SIZE, type IconSize} from '../../types/Icon'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport interface IconProps\n extends ComponentProps<'svg'>, Pick<TypographyProps, 'muted'>, MarginProps, ToneProps {\n /**\n * The icon component to render.\n */\n icon: ComponentType<SVGProps<SVGSVGElement>> | ReactElement<SVGProps<SVGSVGElement>>\n /**\n * Sets icon size.\n */\n size?: Responsive<IconSize>\n}\n\nexport const iconProps: Record<string, PropDef> = {\n icon: {\n type: 'string',\n },\n size: {\n type: 'union',\n className: 'icon-body',\n values: ICON_SIZE,\n },\n muted: typographyProps['muted'] as PropDef,\n ...toneProps,\n ...marginProps,\n}\n","import clsx from 'clsx'\nimport {cloneElement, createElement, isValidElement, type ComponentType, type SVGProps} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type IconProps, iconProps} from './icon.props'\n\nconst iconClassName = suffixClassName('sui-Icon')\n\n/** @public */\nexport function Icon({icon, size = 2, ...props}: IconProps) {\n const {className, style, ...rest} = getProps({size, ...props}, iconProps)\n const iconElement = isValidElement(icon) ? icon : null\n const ariaLabel =\n props['aria-label'] || (iconElement ? iconElement.props['aria-label'] : undefined)\n\n const svgProps = {\n 'className': clsx(\n iconClassName,\n 'sui-display-block',\n className,\n iconElement ? iconElement.props.className : undefined,\n ),\n 'style': iconElement ? {...iconElement.props.style, ...style} : style,\n 'data-ui': 'Icon',\n 'aria-hidden': ariaLabel ? undefined : true,\n ...rest,\n }\n\n return iconElement\n ? cloneElement(iconElement, svgProps)\n : createElement(icon as ComponentType<SVGProps<SVGSVGElement>>, svgProps)\n}\n\nexport type {IconProps}\n","import type {ReactNode, ElementType} from 'react'\n\nimport {type ToneProps, toneProps} from '../../props/tone'\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\n\n/** @public */\nexport type BadgeProps<T extends ElementType = 'span'> = Polymorphic<\n T,\n ToneProps & {\n /** HTML element to render. */\n as?: T\n /** Shows an icon in the start position (left side in left-to-right languages). */\n iconStart?: ElementType | ReactNode\n /** Sets Badge's text label. Use instead of children unless you have a special use case. */\n text?: string\n }\n>\n\nexport const badgeProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n iconStart: {\n type: 'string',\n },\n text: {\n type: 'string',\n },\n ...toneProps,\n}\n","import clsx from 'clsx'\nimport {isValidElement, type ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Icon} from '../icon/Icon'\nimport {Text} from '../text/Text'\nimport {type BadgeProps, badgeProps} from './badge.props'\n\nconst badgeClassName = suffixClassName('sui-Badge')\n\n/** @public */\nexport function Badge<T extends ElementType = 'span'>({tone = 'neutral', ...props}: BadgeProps<T>) {\n const {\n as,\n children,\n className,\n style,\n iconStart: IconStart,\n text,\n ...rest\n } = getProps({tone, ...props}, badgeProps)\n const Component = as || 'span'\n\n const paddingClasses = IconStart ? 'sui-p1' : 'sui-px2 sui-py1'\n\n const badgeClasses = clsx(\n badgeClassName,\n `${paddingClasses} sui-radius-full sui-display-inline-flex sui-align-items-center sui-gap1`,\n )\n\n return (\n <Component className={clsx(badgeClasses, className)} style={style} data-ui=\"Badge\" {...rest}>\n {IconStart &&\n (isValidElement(IconStart) ? (\n IconStart\n ) : (\n <Icon icon={IconStart} marginX={-1} marginY={-2} size={0} />\n ))}\n {text && (\n <Text size={1} trim>\n {text}\n </Text>\n )}\n {children}\n </Component>\n )\n}\n\nexport type {BadgeProps}\n","export const RADIUS = [0, 1, 2, 3, 4, 5, 6, 'full'] as const\n/** @public */\nexport type Radius = (typeof RADIUS)[number]\n","import {type PropDef} from '../types/PropDef'\nimport {RADIUS, type Radius} from '../types/Radius'\nimport {type Responsive} from '../types/Responsive'\n\nexport type BorderProps = {\n /** CSS **border** property */\n border?: Responsive<boolean>\n /** CSS **border-top** property */\n borderTop?: Responsive<boolean>\n /** CSS **border-right** property */\n borderRight?: Responsive<boolean>\n /** CSS **border-bottom** property */\n borderBottom?: Responsive<boolean>\n /** CSS **border-left** property */\n borderLeft?: Responsive<boolean>\n /** CSS **border-radius** property */\n radius?: Responsive<Radius>\n}\n\nexport const borderProps: Record<string, PropDef> = {\n border: {\n type: 'boolean',\n className: 'border',\n inverseClassName: 'border-none',\n },\n borderTop: {\n type: 'boolean',\n className: 'border-top',\n inverseClassName: 'border-top-none',\n },\n borderRight: {\n type: 'boolean',\n className: 'border-right',\n inverseClassName: 'border-right-none',\n },\n borderBottom: {\n type: 'boolean',\n className: 'border-bottom',\n inverseClassName: 'border-bottom-none',\n },\n borderLeft: {\n type: 'boolean',\n className: 'border-left',\n inverseClassName: 'border-left-none',\n },\n radius: {\n type: 'union',\n className: 'radius',\n values: RADIUS,\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type FlexChildProps = {\n /** CSS **flex-basis** property */\n flexBasis?: Responsive<string>\n /** CSS **flex-grow** property */\n flexGrow?: Responsive<number>\n /** CSS **flex-shrink** property */\n flexShrink?: Responsive<number>\n}\n\nexport const flexChildProps: Record<string, PropDef> = {\n flexBasis: {\n type: 'string',\n className: 'flex-basis',\n variable: '--flex-basis',\n },\n flexGrow: {\n type: 'number',\n className: 'flex-grow',\n variable: '--flex-grow',\n },\n flexShrink: {\n type: 'number',\n className: 'flex-shrink',\n variable: '--flex-shrink',\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type GridChildProps = {\n /** CSS **grid-column** property */\n gridColumn?: Responsive<string>\n /** CSS **grid-column-start** property */\n gridColumnStart?: Responsive<string>\n /** CSS **grid-column-end** property */\n gridColumnEnd?: Responsive<string>\n /** CSS **grid-row** property */\n gridRow?: Responsive<string>\n /** CSS **grid-row-start** property */\n gridRowStart?: Responsive<string>\n /** CSS **grid-row-end** property */\n gridRowEnd?: Responsive<string>\n}\n\nexport const gridChildProps: Record<string, PropDef> = {\n gridColumn: {\n type: 'string',\n className: 'grid-column',\n variable: '--grid-column',\n },\n gridColumnStart: {\n type: 'string',\n className: 'grid-column-start',\n variable: '--grid-column-start',\n },\n gridColumnEnd: {\n type: 'string',\n className: 'grid-column-end',\n variable: '--grid-column-end',\n },\n gridRow: {\n type: 'string',\n className: 'grid-row',\n variable: '--grid-row',\n },\n gridRowStart: {\n type: 'string',\n className: 'grid-row-start',\n variable: '--grid-row-start',\n },\n gridRowEnd: {\n type: 'string',\n className: 'grid-row-end',\n variable: '--grid-row-end',\n },\n}\n","export const OVERFLOW = ['visible', 'hidden', 'auto', 'scroll', 'clip'] as const\n/** @public */\nexport type Overflow = (typeof OVERFLOW)[number]\n","import {OVERFLOW, type Overflow} from '../types/Overflow'\nimport {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type OverflowProps = {\n /** CSS **overflow** property */\n overflow?: Responsive<Overflow>\n /** CSS **overflow-x** property */\n overflowX?: Responsive<Overflow>\n /** CSS **overflow-y** property */\n overflowY?: Responsive<Overflow>\n}\n\nexport const overflowProps: Record<string, PropDef> = {\n overflow: {\n type: 'union',\n className: 'overflow',\n values: OVERFLOW,\n },\n overflowX: {\n type: 'union',\n className: 'overflow-x',\n values: OVERFLOW,\n },\n overflowY: {\n type: 'union',\n className: 'overflow-y',\n values: OVERFLOW,\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\nimport {SPACE, type Space} from '../types/Space'\n\n/** @public */\nexport interface PaddingProps {\n /** CSS **padding** property */\n padding?: Responsive<Space>\n /** CSS **padding-left** and **padding-right** properties */\n paddingX?: Responsive<Space>\n /** CSS **padding-top** and **padding-bottom** properties */\n paddingY?: Responsive<Space>\n /** CSS **padding-top** property */\n paddingTop?: Responsive<Space>\n /** CSS **padding-right** property */\n paddingRight?: Responsive<Space>\n /** CSS **padding-bottom** property */\n paddingBottom?: Responsive<Space>\n /** CSS **padding-left** property */\n paddingLeft?: Responsive<Space>\n}\n\nexport const paddingProps: Record<string, PropDef> = {\n padding: {\n type: 'union',\n className: 'p',\n values: SPACE,\n },\n paddingX: {\n type: 'union',\n className: 'px',\n values: SPACE,\n },\n paddingY: {\n type: 'union',\n className: 'py',\n values: SPACE,\n },\n paddingTop: {\n type: 'union',\n className: 'pt',\n values: SPACE,\n },\n paddingRight: {\n type: 'union',\n className: 'pr',\n values: SPACE,\n },\n paddingBottom: {\n type: 'union',\n className: 'pb',\n values: SPACE,\n },\n paddingLeft: {\n type: 'union',\n className: 'pl',\n values: SPACE,\n },\n}\n","export const POSITION = ['absolute', 'fixed', 'relative', 'static', 'sticky'] as const\n/** @public */\nexport type Position = (typeof POSITION)[number]\n","import {POSITION, type Position} from '../types/Position'\nimport {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\nimport {SPACE_AUTO, type SpaceAuto} from '../types/Space'\n\nexport type PositionProps = {\n /** CSS **position** property */\n position?: Responsive<Position>\n /** CSS **inset** property */\n inset?: Responsive<SpaceAuto>\n /** CSS **top** property */\n top?: Responsive<SpaceAuto>\n /** CSS **right** property */\n right?: Responsive<SpaceAuto>\n /** CSS **bottom** property */\n bottom?: Responsive<SpaceAuto>\n /** CSS **left** property */\n left?: Responsive<SpaceAuto>\n}\n\nexport const positionProps: Record<string, PropDef> = {\n position: {\n type: 'union',\n className: 'position',\n values: POSITION,\n },\n inset: {\n type: 'union',\n className: 'inset',\n values: SPACE_AUTO,\n },\n top: {\n type: 'union',\n className: 'top',\n values: SPACE_AUTO,\n },\n right: {\n type: 'union',\n className: 'right',\n values: SPACE_AUTO,\n },\n bottom: {\n type: 'union',\n className: 'bottom',\n values: SPACE_AUTO,\n },\n left: {\n type: 'union',\n className: 'left',\n values: SPACE_AUTO,\n },\n}\n","export const SHADOW = [0, 1, 2, 3, 4, 5] as const\n/** @public */\nexport type Shadow = (typeof SHADOW)[number]\n","import {type PropDef} from '../types/PropDef'\nimport {SHADOW, type Shadow} from '../types/Shadow'\n\nexport type ShadowProps = {\n /** CSS **box-shadow** property */\n shadow?: Shadow\n}\n\nexport const shadowProps: Record<string, PropDef> = {\n shadow: {\n type: 'union',\n className: 'shadow',\n values: SHADOW,\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type WidthProps = {\n /** CSS **width** property */\n width?: Responsive<string>\n /** CSS **min-width** property */\n minWidth?: Responsive<string>\n /** CSS **max-width** property */\n maxWidth?: Responsive<string>\n}\n\nexport const widthProps: Record<string, PropDef> = {\n width: {\n type: 'string',\n className: 'width',\n variable: '--width',\n },\n minWidth: {\n type: 'string',\n className: 'min-width',\n variable: '--min-width',\n },\n maxWidth: {\n type: 'string',\n className: 'max-width',\n variable: '--max-width',\n },\n}\n","import type {PropDef} from '../types/PropDef'\nimport type {Responsive} from '../types/Responsive'\n\nexport type ZIndexProps = {\n /** CSS z-index property */\n zIndex?: Responsive<number>\n}\n\nexport const zIndexProps: Record<string, PropDef> = {\n zIndex: {\n type: 'number',\n className: 'z-index',\n variable: '--z-index',\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type BorderProps, borderProps} from './border'\nimport {type FlexChildProps, flexChildProps} from './flexChild'\nimport {type GridChildProps, gridChildProps} from './gridChild'\nimport {type HeightProps, heightProps} from './height'\nimport {type MarginProps, marginProps} from './margin'\nimport {type OverflowProps, overflowProps} from './overflow'\nimport {type PaddingProps, paddingProps} from './padding'\nimport {type PositionProps, positionProps} from './position'\nimport {type ShadowProps, shadowProps} from './shadow'\nimport {toneWithDefaultProps, type ToneWithDefaultProps} from './tone'\nimport {type WidthProps, widthProps} from './width'\nimport {type ZIndexProps, zIndexProps} from './zIndex'\n\n/** @public */\nexport interface LayoutProps\n extends\n ToneWithDefaultProps,\n WidthProps,\n HeightProps,\n MarginProps,\n BorderProps,\n PaddingProps,\n PositionProps,\n OverflowProps,\n FlexChildProps,\n GridChildProps,\n ZIndexProps,\n ShadowProps {}\n\nexport const layoutProps: Record<string, PropDef> = {\n ...toneWithDefaultProps,\n ...widthProps,\n ...heightProps,\n ...marginProps,\n ...borderProps,\n ...paddingProps,\n ...positionProps,\n ...overflowProps,\n ...flexChildProps,\n ...gridChildProps,\n ...shadowProps,\n ...zIndexProps,\n}\n","export const DISPLAY_BLOCK = ['block', 'inline-block', 'none'] as const\n/** @public */\nexport type DisplayBlock = (typeof DISPLAY_BLOCK)[number]\n\nexport const DISPLAY_FLEX = ['flex', 'inline-flex', 'none'] as const\n/** @public */\nexport type DisplayFlex = (typeof DISPLAY_FLEX)[number]\n\nexport const DISPLAY_GRID = ['grid', 'inline-grid', 'none'] as const\n/** @public */\nexport type DisplayGrid = (typeof DISPLAY_GRID)[number]\n","import type {ElementType} from 'react'\n\nimport {type LayoutProps, layoutProps} from '../../props/layout'\nimport {DISPLAY_BLOCK, type DisplayBlock} from '../../types/Display'\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport type BoxProps<T extends ElementType = 'div'> = Polymorphic<\n T,\n LayoutProps & {\n /**\n * HTML element or component to render.\n */\n as?: T\n /**\n * CSS `display` property.\n * @remarks Does not include `'flex'` or `'grid'`. Use the Flex or Grid components for those.\n */\n display?: Responsive<DisplayBlock>\n }\n>\n\nexport const boxProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n display: {\n type: 'union',\n className: 'display',\n values: DISPLAY_BLOCK,\n },\n ...layoutProps,\n}\n","import clsx from 'clsx'\nimport type {ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type BoxProps, boxProps} from './box.props'\n\nconst boxClassName = suffixClassName('sui-Box')\n\n/** @public */\nexport function Box<T extends ElementType = 'div'>({display = 'block', ...props}: BoxProps<T>) {\n const {as, children, className, style, ...rest} = getProps({display, ...props}, boxProps)\n const Component = as || 'div'\n\n return (\n <Component className={clsx(boxClassName, className)} style={style} data-ui=\"Box\" {...rest}>\n {children}\n </Component>\n )\n}\n\nexport type {BoxProps}\n","export const ALIGN_ITEMS = ['baseline', 'center', 'flex-end', 'flex-start', 'stretch'] as const\n/** @public */\nexport type AlignItems = (typeof ALIGN_ITEMS)[number]\n\nexport const JUSTIFY_CONTENT = [\n 'flex-start',\n 'flex-end',\n 'center',\n 'space-between',\n 'space-around',\n 'space-evenly',\n] as const\n/** @public */\nexport type JustifyContent = (typeof JUSTIFY_CONTENT)[number]\n\nexport const FLEX_DIRECTION = ['row', 'row-reverse', 'column', 'column-reverse'] as const\n/** @public */\nexport type FlexDirection = (typeof FLEX_DIRECTION)[number]\n\nexport const FLEX_WRAP = ['wrap', 'wrap-reverse', 'nowrap'] as const\n/** @public */\nexport type FlexWrap = (typeof FLEX_WRAP)[number]\n","import {\n ALIGN_ITEMS,\n type AlignItems,\n FLEX_DIRECTION,\n FLEX_WRAP,\n type FlexDirection,\n type FlexWrap,\n JUSTIFY_CONTENT,\n type JustifyContent,\n} from '../types/Flex'\nimport {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\n/** @public */\nexport type FlexParentProps = {\n /** CSS **align-items** property */\n alignItems?: Responsive<AlignItems>\n /** CSS **justify-content** property */\n justifyContent?: Responsive<JustifyContent>\n /** CSS **flex-direction** property */\n flexDirection?: Responsive<FlexDirection>\n /** CSS **flex-wrap** property */\n flexWrap?: Responsive<FlexWrap>\n}\n\nexport const flexParentProps: Record<string, PropDef> = {\n alignItems: {\n type: 'union',\n className: 'align-items',\n values: ALIGN_ITEMS,\n },\n justifyContent: {\n type: 'union',\n className: 'justify-content',\n values: JUSTIFY_CONTENT,\n },\n flexDirection: {\n type: 'union',\n className: 'flex-direction',\n values: FLEX_DIRECTION,\n },\n flexWrap: {\n type: 'union',\n className: 'flex',\n values: FLEX_WRAP,\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\nimport {SPACE_INHERIT, type SpaceInherit} from '../types/Space'\n\n/** @public */\nexport type GapProps = {\n /** CSS **gap** property */\n gap?: Responsive<SpaceInherit>\n /** CSS **row-gap** property */\n rowGap?: Responsive<SpaceInherit>\n /** CSS **column-gap** property */\n columnGap?: Responsive<SpaceInherit>\n}\n\nexport const gapProps: Record<string, PropDef> = {\n gap: {\n type: 'union',\n className: 'gap',\n values: SPACE_INHERIT,\n },\n rowGap: {\n type: 'union',\n className: 'row-gap',\n values: SPACE_INHERIT,\n },\n columnGap: {\n type: 'union',\n className: 'column-gap',\n values: SPACE_INHERIT,\n },\n}\n","import type {ElementType} from 'react'\n\nimport {type FlexParentProps, flexParentProps} from '../../props/flexParent'\nimport {type GapProps, gapProps} from '../../props/gap'\nimport {type LayoutProps, layoutProps} from '../../props/layout'\nimport {DISPLAY_FLEX, type DisplayFlex} from '../../types/Display'\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport type FlexProps<T extends ElementType = 'div'> = Polymorphic<\n T,\n FlexParentProps &\n GapProps &\n LayoutProps & {\n /**\n * HTML element or component to render.\n */\n as?: T\n /**\n * CSS `display` property.\n */\n display?: Responsive<DisplayFlex>\n }\n>\n\nexport const flexProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n display: {\n type: 'union',\n className: 'display',\n values: DISPLAY_FLEX,\n },\n ...flexParentProps,\n ...gapProps,\n ...layoutProps,\n}\n","import clsx from 'clsx'\nimport type {ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type FlexProps, flexProps} from './flex.props'\n\nconst flexClassName = suffixClassName('sui-Flex')\n\n/** @public */\nexport function Flex<T extends ElementType = 'div'>({display = 'flex', ...props}: FlexProps<T>) {\n const {as, children, className, style, ...rest} = getProps({display, ...props}, flexProps)\n const Component = as || 'div'\n\n return (\n <Component className={clsx(flexClassName, className)} style={style} data-ui=\"Flex\" {...rest}>\n {children}\n </Component>\n )\n}\n\nexport type {FlexProps}\n","import type {ComponentProps} from 'react'\n\nimport {ICON_SIZE, type IconSize} from '../../types/Icon'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport interface SpinnerProps extends ComponentProps<'svg'> {\n /**\n * Size of the spinner icon.\n */\n size?: Responsive<IconSize>\n}\n\nexport const spinnerProps: Record<string, PropDef> = {\n size: {\n type: 'union',\n className: 'icon-body',\n values: ICON_SIZE,\n },\n}\n","import {SpinnerIcon} from '@sanity/icons/Spinner'\nimport clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Icon} from '../icon/Icon'\nimport {type SpinnerProps, spinnerProps} from './spinner.props'\n\nconst spinnerClassName = suffixClassName('sui-Spinner')\n\n/** @public */\nexport function Spinner({size = 2, ...props}: SpinnerProps) {\n const {className, style, ...rest} = getProps({size, ...props}, spinnerProps)\n\n return (\n <Icon\n icon={SpinnerIcon}\n size={size}\n className={clsx(spinnerClassName, className)}\n style={style}\n data-ui=\"Spinner\"\n role=\"status\"\n aria-label=\"Loading...\"\n {...rest}\n />\n )\n}\n\nexport type {SpinnerProps}\n","export const BUTTON_DENSITY = ['regular', 'loose'] as const\nexport type ButtonDensity = (typeof BUTTON_DENSITY)[number]\n\nexport const BUTTON_LEVEL = ['primary', 'secondary', 'tertiary'] as const\nexport type ButtonLevel = (typeof BUTTON_LEVEL)[number]\n\nexport const BUTTON_TONE = ['neutral', 'critical'] as const\nexport type ButtonTone = (typeof BUTTON_TONE)[number]\n","import type {ReactNode, ElementType} from 'react'\n\nimport {gapProps} from '../../props/gap'\nimport {heightProps} from '../../props/height'\nimport {paddingProps} from '../../props/padding'\nimport {widthProps} from '../../props/width'\nimport {\n BUTTON_DENSITY,\n BUTTON_LEVEL,\n BUTTON_TONE,\n type ButtonDensity,\n type ButtonLevel,\n type ButtonTone,\n} from '../../types/Button'\nimport type {InteractiveAs} from '../../types/Interactive'\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport type ButtonProps<T extends ElementType = 'button'> = Polymorphic<\n T,\n {\n /**\n * HTML element to render.\n */\n as?: InteractiveAs<T>\n /**\n * Sets padding and gap together to specify size.\n */\n density?: ButtonDensity\n /**\n * Sets Button to fill the width of its container.\n */\n fullWidth?: Responsive<boolean>\n /**\n * Shows an icon in the start position (left side in left-to-right languages).\n */\n iconStart?: ElementType | ReactNode\n /**\n * Shows an icon in the end position (right side in left-to-right languages).\n */\n iconEnd?: ElementType | ReactNode\n /**\n * Sets the importance of Button's action.\n */\n level?: ButtonLevel\n /**\n * Places Button into a loading state.\n */\n loading?: boolean\n /**\n * Visually styles the button in a pressed state, and sets aria-pressed to the provided value\n */\n pressed?: boolean\n /**\n * Sets Button's text label.\n */\n text?: string\n /**\n * Sets Button's semantic meaning and related color.\n */\n tone?: ButtonTone\n }\n>\n\nexport const buttonProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n density: {\n type: 'composite',\n values: BUTTON_DENSITY,\n composition: {\n gap: {\n propDef: gapProps['gap'] as PropDef,\n mapping: {\n regular: 2,\n loose: 3,\n },\n },\n padding: {\n propDef: paddingProps['padding'] as PropDef,\n mapping: {\n regular: 2,\n loose: 3,\n },\n },\n minHeight: {\n propDef: heightProps['minHeight'] as PropDef,\n mapping: {\n regular: '25px',\n loose: '33px',\n },\n },\n minWidth: {\n propDef: widthProps['minWidth'] as PropDef,\n mapping: {\n regular: '25px',\n loose: '33px',\n },\n },\n },\n },\n fullWidth: {\n type: 'boolean',\n className: 'width-full',\n inverseClassName: 'width-auto',\n },\n iconStart: {\n type: 'string',\n },\n iconEnd: {\n type: 'string',\n },\n level: {\n type: 'union',\n className: 'button-level',\n values: BUTTON_LEVEL,\n },\n loading: {\n type: 'boolean',\n },\n text: {\n type: 'string',\n },\n tone: {\n type: 'union',\n className: 'tone',\n values: BUTTON_TONE,\n },\n}\n","import clsx from 'clsx'\nimport {type ElementType, isValidElement} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Flex} from '../flex/Flex'\nimport {Icon} from '../icon/Icon'\nimport {Spinner} from '../spinner/Spinner'\nimport {Text} from '../text/Text'\nimport {type ButtonProps, buttonProps} from './button.props'\n\nconst buttonClassName = suffixClassName('sui-Button')\n\n/** @public */\nexport function Button<T extends ElementType = 'button'>({\n density = 'regular',\n level = 'primary',\n tone = 'neutral',\n ...props\n}: ButtonProps<T>) {\n const {\n as,\n children,\n className,\n style,\n iconStart: IconStart,\n iconEnd: IconEnd,\n loading,\n onClick,\n pressed,\n text,\n ...rest\n } = getProps({density, level, tone, ...props}, buttonProps)\n const Component = as || 'button'\n\n return (\n <Component\n className={clsx(\n buttonClassName,\n 'sui-display-inline-flex sui-align-items-center sui-justify-content-center sui-radius2 sui-position-relative sui-overflow-hidden',\n className,\n )}\n style={style}\n data-ui=\"Button\"\n aria-busy={loading}\n aria-disabled={loading}\n aria-pressed={pressed}\n onClick={\n loading\n ? (e: Event) => {\n e.preventDefault()\n }\n : onClick\n }\n type={Component === 'button' ? 'button' : undefined}\n {...rest}\n >\n {loading && (\n <Flex\n position=\"absolute\"\n inset={0}\n alignItems=\"center\"\n justifyContent=\"center\"\n data-ui=\"Button-Spinner\"\n aria-hidden=\"true\"\n >\n <Spinner />\n </Flex>\n )}\n\n {IconStart &&\n (isValidElement(IconStart) ? (\n IconStart\n ) : (\n <Icon icon={IconStart} marginX={-1} marginY={-2} size={1} />\n ))}\n\n {text && (\n <Text size={1} weight=\"medium\" trim>\n {text}\n </Text>\n )}\n\n {children}\n {IconEnd &&\n (isValidElement(IconEnd) ? (\n IconEnd\n ) : (\n <Icon icon={IconEnd} marginX={-1} marginY={-2} size={1} />\n ))}\n </Component>\n )\n}\n\nexport type {ButtonProps}\n","export const DENSITY = ['compact', 'regular', 'loose'] as const\n/** @public */\nexport type Density = (typeof DENSITY)[number]\n","import type {ElementType} from 'react'\n\nimport {borderProps} from '../../props/border'\nimport {gapProps} from '../../props/gap'\nimport {type MarginProps, marginProps} from '../../props/margin'\nimport {paddingProps} from '../../props/padding'\nimport {toneWithDefaultProps, type ToneWithDefaultProps} from '../../props/tone'\nimport {DENSITY, type Density} from '../../types/Density'\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport type CardProps<T extends ElementType = 'div'> = Polymorphic<\n T,\n MarginProps &\n ToneWithDefaultProps & {\n /**\n * HTML element or component to render.\n */\n as?: T\n /**\n * Sets padding, gap, and border-radius together to specify size. This prop is used in place of separate `padding`, `gap`, and `border-radius` props.\n */\n density?: Responsive<Density>\n }\n>\n\nexport const cardProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n density: {\n type: 'composite',\n values: DENSITY,\n composition: {\n gap: {\n propDef: gapProps['gap'] as PropDef,\n mapping: {\n compact: 2,\n regular: 3,\n loose: 4,\n },\n },\n padding: {\n propDef: paddingProps['padding'] as PropDef,\n mapping: {\n compact: 3,\n regular: 4,\n loose: 5,\n },\n },\n radius: {\n propDef: borderProps['radius'] as PropDef,\n mapping: {\n compact: 2,\n regular: 3,\n loose: 4,\n },\n },\n },\n } satisfies PropDef<Density>,\n ...toneWithDefaultProps,\n ...marginProps,\n}\n","import clsx from 'clsx'\nimport type {ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type CardProps, cardProps} from './card.props'\n\nconst cardClassName = suffixClassName('sui-Card')\n\n/** @public */\nexport function Card<T extends ElementType = 'div'>({\n density = 'regular',\n tone = 'default',\n ...props\n}: CardProps<T>) {\n const {as, children, className, style, ...rest} = getProps({density, tone, ...props}, cardProps)\n const Component = as || 'div'\n\n return (\n <Component\n className={clsx(cardClassName, 'sui-border', className)}\n style={style}\n data-ui=\"Card\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {CardProps}\n","import type {ComponentProps} from 'react'\n\nimport type {PropDef} from '../../types/PropDef'\n\n/** @beta */\nexport interface CheckboxProps extends ComponentProps<'input'> {\n /**\n * Applies error styling to the checkbox mark for invalid states.\n * @remarks Use when form validation fails. Pair with a visible error message.\n */\n hasError?: boolean\n /**\n * Renders the \"mixed state\" mark (a horizontal line).\n * @remarks Use when the checkbox controls a group with some-but-not-all children checked.\n */\n indeterminate?: boolean\n}\n\nexport const checkboxProps: Record<string, PropDef> = {\n hasError: {\n type: 'boolean',\n },\n indeterminate: {\n type: 'boolean',\n },\n}\n","import {CheckmarkIcon} from '@sanity/icons/Checkmark'\nimport {RemoveIcon} from '@sanity/icons/Remove'\nimport clsx from 'clsx'\nimport {useEffect, useRef} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Box} from '../box/Box'\nimport {type CheckboxProps, checkboxProps} from './checkbox.props'\n\nconst checkboxClassName = suffixClassName('sui-Checkbox')\nconst checkboxInputClassName = suffixClassName('sui-CheckboxInput')\n\n/** @beta */\nexport function Checkbox(props: CheckboxProps) {\n const inputRef = useRef<HTMLInputElement>(null)\n const {className, style, hasError, indeterminate, ...rest} = getProps(props, checkboxProps)\n\n useEffect(() => {\n if (inputRef.current) {\n inputRef.current.indeterminate = indeterminate\n }\n }, [indeterminate, inputRef])\n\n return (\n <Box\n as=\"span\"\n className={clsx(checkboxClassName, className)}\n style={style}\n data-ui=\"Checkbox\"\n position=\"relative\"\n radius={2}\n width=\"17px\"\n height=\"17px\"\n >\n {indeterminate ? <RemoveIcon aria-hidden=\"true\" /> : <CheckmarkIcon aria-hidden=\"true\" />}\n\n <input\n type=\"checkbox\"\n className={checkboxInputClassName}\n ref={inputRef}\n aria-invalid={hasError || undefined}\n {...rest}\n />\n </Box>\n )\n}\n\nexport type {CheckboxProps}\n","export const CODE_SIZE = [0, 1, 2, 3, 4] as const\n/** @public */\nexport type CodeSize = (typeof CODE_SIZE)[number]\n","import type {ComponentPropsWithRef} from 'react'\n\nimport {marginProps, type MarginProps} from '../../props/margin'\nimport {type TypographyProps, typographyProps} from '../../props/typography'\nimport {CODE_SIZE, type CodeSize} from '../../types/Code'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\ninterface CodeBaseProps\n extends MarginProps, Omit<TypographyProps, 'align' | 'truncate' | 'weight'> {\n /**\n * Refractor language for syntax highlighting.\n */\n language?: string\n /**\n * Sets font size.\n */\n size?: Responsive<CodeSize>\n}\n\n/** @public */\nexport type CodeProps =\n | (CodeBaseProps & {\n /**\n * Render code inline or as a block.\n * @remarks Block code is wrapped in a `<pre>` tag.\n */\n inline?: false\n } & Omit<ComponentPropsWithRef<'pre'>, keyof CodeBaseProps>)\n | (CodeBaseProps & {\n inline: true\n } & Omit<ComponentPropsWithRef<'span'>, keyof CodeBaseProps>)\n\nexport const codeProps: Record<string, PropDef> = {\n inline: {\n type: 'boolean',\n },\n language: {\n type: 'string',\n },\n size: {\n type: 'union',\n className: 'text-code',\n values: CODE_SIZE,\n },\n muted: typographyProps['muted'] as PropDef,\n trim: typographyProps['trim'] as PropDef,\n ...marginProps,\n}\n","import clsx from 'clsx'\nimport {lazy, Suspense} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type CodeProps, codeProps} from './code.props'\n\nconst LazyRefractor = lazy(() => import('./LazyRefractor'))\n\nconst codeClassName = suffixClassName('sui-Code')\n\n/** @public */\nexport function Code({size = 2, ...props}: CodeProps) {\n const {children, className, inline, language, style, ...rest} = getProps(\n {size, ...props},\n codeProps,\n )\n /*\n * The span wrapper for inline code is necessary because react-refractor does not\n * support any attributes other than className\n */\n const Component = inline ? 'span' : 'pre'\n\n return (\n <Component className={clsx(codeClassName, className)} style={style} data-ui=\"Code\" {...rest}>\n {language ? (\n <Suspense fallback={<code>{children}</code>}>\n <LazyRefractor language={language} value={children} />\n </Suspense>\n ) : (\n <code>{children}</code>\n )}\n </Component>\n )\n}\n\nexport type {CodeProps}\n","export const CONTAINER_SIZE = [0, 1, 2, 3, 4, 5] as const\n/** @public */\nexport type ContainerSize = (typeof CONTAINER_SIZE)[number]\n","import type {ElementType} from 'react'\n\nimport {type LayoutProps, layoutProps} from '../../props/layout'\nimport {CONTAINER_SIZE, type ContainerSize} from '../../types/Container'\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport type ContainerProps<T extends ElementType = 'div'> = Polymorphic<\n T,\n LayoutProps & {\n /**\n * HTML element or component to render.\n */\n as?: T\n /**\n * Maximum width of the container.\n */\n size?: Responsive<ContainerSize>\n }\n>\n\nexport const containerProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n size: {\n type: 'union',\n className: 'container',\n values: CONTAINER_SIZE,\n },\n ...layoutProps,\n}\n","import clsx from 'clsx'\nimport type {ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type ContainerProps, containerProps} from './container.props'\n\nconst containerClassName = suffixClassName('sui-Container')\n\n/** @public */\nexport function Container<T extends ElementType = 'div'>({\n marginX = 'auto',\n size = 2,\n ...props\n}: ContainerProps<T>) {\n const {as, children, className, style, ...rest} = getProps(\n {marginX, size, ...props},\n containerProps,\n )\n const Component = as || 'div'\n\n return (\n <Component\n className={clsx(containerClassName, className)}\n style={style}\n data-ui=\"Container\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {ContainerProps}\n","export const HEADING_TAG = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'] as const\nexport type HeadingTag = (typeof HEADING_TAG)[number]\n\nexport const HEADING_SIZE = [0, 1, 2, 3, 4, 5] as const\n/** @public */\nexport type HeadingSize = (typeof HEADING_SIZE)[number]\n","import {marginProps, type MarginProps} from '../../props/margin'\nimport {toneProps, type ToneProps} from '../../props/tone'\nimport {type TypographyProps, typographyProps} from '../../props/typography'\nimport {HEADING_SIZE, HEADING_TAG, type HeadingSize, type HeadingTag} from '../../types/Heading'\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport type HeadingProps<T extends HeadingTag = HeadingTag> = Polymorphic<\n T,\n MarginProps &\n ToneProps &\n Omit<TypographyProps, 'muted' | 'weight'> & {\n /**\n * Semantic heading element to render.\n */\n as: T\n /**\n * Sets font size.\n * @remarks Independent of `as`.\n */\n size?: Responsive<HeadingSize>\n }\n>\n\nexport const headingProps: Record<string, PropDef> = {\n as: {\n type: 'union',\n values: HEADING_TAG,\n },\n size: {\n type: 'union',\n className: 'text-heading',\n values: HEADING_SIZE,\n },\n align: typographyProps['align'] as PropDef,\n trim: typographyProps['trim'] as PropDef,\n truncate: typographyProps['truncate'] as PropDef,\n ...marginProps,\n ...toneProps,\n}\n","import clsx from 'clsx'\n\nimport {type HeadingTag} from '../../types/Heading'\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type HeadingProps, headingProps} from './heading.props'\n\nconst headingClassName = suffixClassName('sui-Heading')\n\n/** @public */\nexport function Heading<T extends HeadingTag = 'h2'>({size = 2, ...props}: HeadingProps<T>) {\n const {as, children, className, style, ...rest} = getProps({size, ...props}, headingProps)\n const Component = as || 'h2'\n\n if (props.truncate && props.trim) {\n return (\n <Component\n className={clsx(\n headingClassName,\n className?.replace('sui-line-clamp', '').replace('sui-text-overflow', ''),\n 'sui-weight-bold',\n )}\n style={style}\n data-ui=\"Heading\"\n {...rest}\n >\n <span\n className={clsx(\n 'sui-overflow-hidden',\n props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp',\n )}\n >\n {children}\n </span>\n </Component>\n )\n }\n\n return (\n <Component\n className={clsx(\n headingClassName,\n props.truncate && 'sui-overflow-hidden',\n 'sui-weight-bold',\n className,\n )}\n style={style}\n data-ui=\"Heading\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {HeadingProps}\n","import type {ComponentType, ElementType, SVGProps} from 'react'\n\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\nimport {type ButtonProps, buttonProps} from '../button/button.props'\n\n/** @public */\nexport type IconButtonProps<T extends ElementType = 'button'> = Polymorphic<\n T,\n Pick<ButtonProps<T>, 'as' | 'density' | 'level' | 'loading' | 'tone'> & {\n /**\n * Accessible name for the button.\n * @remarks Because IconButtons have no visible text, this is required.\n */\n 'aria-label': string\n /**\n * Icon to render.\n */\n 'icon': ComponentType<SVGProps<SVGSVGElement>>\n }\n>\n\nexport const iconButtonProps: Record<string, PropDef> = {\n 'aria-label': {\n type: 'string',\n },\n 'as': buttonProps['as'] as PropDef,\n 'icon': {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\nimport type {ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Button} from '../button/Button'\nimport {Icon} from '../icon/Icon'\nimport {type IconButtonProps, iconButtonProps} from './iconButton.props'\n\nconst iconButtonClassName = suffixClassName('sui-IconButton')\n\n/** @public */\nexport function IconButton<T extends ElementType = 'button'>(props: IconButtonProps<T>) {\n const {as, className, style, icon: IconProp, ...rest} = getProps(props, iconButtonProps)\n const Component = as || 'button'\n\n return (\n <Button\n as={Component}\n className={clsx(iconButtonClassName, className)}\n style={style}\n data-ui=\"IconButton\"\n {...rest}\n >\n <Icon icon={IconProp} margin={-2} size={1} />\n </Button>\n )\n}\n\nexport type {IconButtonProps}\n","import type {ComponentProps, ReactEventHandler} from 'react'\n\nimport {CONTAINER_SIZE, type ContainerSize} from '../../types/Container'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @beta */\nexport interface DialogProps extends Omit<ComponentProps<'dialog'>, 'open'> {\n /**\n * Text for the dialog heading.\n * @remarks Recommended for accessibility. The component sets `aria-labelledby` to the heading when you give this prop.\n */\n header?: string\n /**\n * A function to call alongside the native `close` event.\n * @remarks Use it to set `open` back to `false`. It runs for every close cause: the Escape key, a backdrop click, the close button, or a programmatic close.\n */\n onClose: ReactEventHandler<HTMLDialogElement>\n /**\n * Toggles the dialog's open state.\n * @remarks `true` calls `showModal()` on the element. `false` calls `close()`.\n */\n open?: boolean\n /** Sets the max width of the dialog */\n size?: Responsive<ContainerSize>\n /** CSS length value used to set the Dialog’s distance from the top of the viewport; Dialog is centered if not provided */\n topAnchor?: string\n}\n\nexport const dialogProps: Record<string, PropDef> = {\n header: {\n type: 'string',\n },\n open: {\n type: 'boolean',\n },\n size: {\n type: 'union',\n className: 'container',\n values: CONTAINER_SIZE,\n },\n topAnchor: {\n type: 'string',\n className: 'top-anchor',\n variable: '--top-anchor',\n },\n}\n\n/** @beta */\nexport interface DialogContentProps extends ComponentProps<'div'> {}\n\n/** @beta */\nexport interface DialogFooterProps extends ComponentProps<'div'> {}\n","import {CloseIcon} from '@sanity/icons/Close'\nimport clsx from 'clsx'\nimport {useEffect, useId, useRef} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Box} from '../box/Box'\nimport {Flex} from '../flex/Flex'\nimport {Heading} from '../heading/Heading'\nimport {IconButton} from '../icon-button/IconButton'\nimport {\n type DialogContentProps,\n type DialogFooterProps,\n type DialogProps,\n dialogProps,\n} from './dialog.props'\n\nconst dialogClassName = suffixClassName('sui-Dialog')\nconst dialogContentClassName = suffixClassName('sui-DialogContent')\nconst dialogFooterClassName = suffixClassName('sui-DialogFooter')\n\nfunction DialogRoot({open = false, size = 0, ...props}: DialogProps) {\n const {children, className, style, header, onClose, ...rest} = getProps(\n {size, ...props},\n dialogProps,\n )\n\n const dialogRef = useRef<HTMLDialogElement>(null)\n const headerId = useId()\n\n const dialogClasses = clsx(\n dialogClassName,\n `${props.topAnchor ? 'sui-mx-auto' : 'sui-m-auto'} sui-radius5 sui-shadow3 sui-p4 sui-flex-direction-column sui-gap4 sui-overflow-y-auto`,\n )\n\n useEffect(() => {\n const dialogElement = dialogRef.current\n if (!dialogElement) return\n\n // `open` = `open` prop\n // dialogElement.open = the `open` attribute on the HTML dialog element\n // The prop and the attribute are manipulated independently, thus they\n // can get out of sync if not handled within this effect.\n if (open) {\n if (!dialogElement.open) {\n dialogElement.showModal()\n }\n } else {\n if (dialogElement.open) {\n dialogElement.close()\n }\n }\n\n // Ensure the dialog is closed (and thus its `open` attribute updated)\n // when the component is unmounted.\n return () => {\n dialogElement.close()\n }\n }, [open])\n\n return (\n <dialog\n {...rest}\n ref={dialogRef}\n closedby=\"any\"\n aria-labelledby={header ? headerId : undefined}\n onClose={onClose}\n className={clsx(dialogClasses, className)}\n style={style}\n data-ui=\"Dialog\"\n >\n <Flex flexShrink={0} justifyContent=\"space-between\" alignItems=\"center\">\n {header ? (\n <Heading as=\"h2\" trim size={1} id={headerId}>\n {header}\n </Heading>\n ) : (\n <div />\n )}\n <IconButton\n aria-label=\"Close\"\n level=\"tertiary\"\n icon={CloseIcon}\n onClick={() => dialogRef.current?.close()}\n />\n </Flex>\n {children}\n </dialog>\n )\n}\n\nfunction DialogContent(props: DialogContentProps) {\n const {children, className, style, ...rest} = getProps(props, {})\n\n return (\n <Box\n {...rest}\n className={clsx(dialogContentClassName, className)}\n style={style}\n data-ui=\"DialogContent\"\n flexGrow={1}\n overflowY=\"auto\"\n >\n {children}\n </Box>\n )\n}\n\nfunction DialogFooter(props: DialogFooterProps) {\n const {children, className, style, ...rest} = getProps(props, {})\n\n return (\n <Box\n {...rest}\n className={clsx(dialogFooterClassName, className)}\n style={style}\n data-ui=\"DialogFooter\"\n flexShrink={0}\n >\n {children}\n </Box>\n )\n}\n\nDialogRoot.displayName = 'Dialog'\n\n/**\n * @beta\n *\n * Renders a modal dialog element — should not be used for nonmodal dialogs.\n * Modal dialogs make their containing documents inert, and render on the topmost\n * layer within that containing document; they must be dimissed before the containing\n * document and its contents become unblocked. They also trap focus within the bounds\n * of the dialog element and its descendants.\n *\n * For more on dialogs and modality, refer to the HTML specification for the dialog element:\n * https://html.spec.whatwg.org/dev/interactive-elements.html#the-dialog-element\n */\nexport const Dialog = DialogRoot\n\nDialogRoot.Content = DialogContent\nDialogRoot.Footer = DialogFooter\n\nexport type {DialogProps, DialogContentProps, DialogFooterProps}\n","import type {ComponentProps} from 'react'\n\nimport {type MarginProps, marginProps} from '../../props/margin'\nimport type {PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface DividerProps extends ComponentProps<'hr'>, MarginProps {}\n\nexport const dividerProps: Record<string, PropDef> = {\n ...marginProps,\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type DividerProps, dividerProps} from './divider.props'\n\nconst dividerClassName = suffixClassName('sui-Divider')\n\n/** @public */\nexport function Divider(props: DividerProps) {\n const {className, style, ...rest} = getProps(props, dividerProps)\n\n return (\n <hr\n className={clsx(dividerClassName, 'sui-border-none sui-border-top', className)}\n style={style}\n data-ui=\"Divider\"\n {...rest}\n />\n )\n}\n\nexport type {DividerProps}\n","export const EYEBROW_SIZE = [0, 1, 2, 3, 4, 5] as const\n/** @public */\nexport type EyebrowSize = (typeof EYEBROW_SIZE)[number]\n","import type {ElementType} from 'react'\n\nimport {marginProps, type MarginProps} from '../../props/margin'\nimport {toneProps, type ToneProps} from '../../props/tone'\nimport {type TypographyProps, typographyProps} from '../../props/typography'\nimport {EYEBROW_SIZE, type EyebrowSize} from '../../types/Eyebrow'\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport type EyebrowProps<T extends ElementType = 'span'> = Polymorphic<\n T,\n MarginProps &\n ToneProps &\n Omit<TypographyProps, 'weight'> & {\n /**\n * HTML element to render.\n */\n as?: T\n /**\n * Sets font size. Uses the same scale as Label.\n */\n size?: Responsive<EyebrowSize>\n }\n>\n\nexport const eyebrowProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n size: {\n type: 'union',\n className: 'text-eyebrow',\n values: EYEBROW_SIZE,\n },\n muted: typographyProps['muted'] as PropDef,\n align: typographyProps['align'] as PropDef,\n trim: typographyProps['trim'] as PropDef,\n truncate: typographyProps['truncate'] as PropDef,\n ...marginProps,\n ...toneProps,\n}\n","import clsx from 'clsx'\nimport type {ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type EyebrowProps, eyebrowProps} from './eyebrow.props'\n\nconst eyebrowClassName = suffixClassName('sui-Eyebrow')\n\n/** @public */\nexport function Eyebrow<T extends ElementType = 'span'>({size = 2, ...props}: EyebrowProps<T>) {\n const {as, children, className, style, ...rest} = getProps({size, ...props}, eyebrowProps)\n const Component = as || 'span'\n\n if (props.truncate && props.trim) {\n return (\n <Component\n className={clsx(\n eyebrowClassName,\n className?.replace('sui-line-clamp', '').replace('sui-text-overflow', ''),\n 'sui-weight-semibold',\n )}\n style={style}\n data-ui=\"Eyebrow\"\n {...rest}\n >\n <span\n className={clsx(\n 'sui-overflow-hidden',\n props.truncate === 1 ? 'sui-text-overflow' : 'sui-line-clamp',\n )}\n >\n {children}\n </span>\n </Component>\n )\n }\n\n return (\n <Component\n className={clsx(\n eyebrowClassName,\n props.truncate && 'sui-overflow-hidden',\n 'sui-weight-semibold',\n className,\n )}\n style={style}\n data-ui=\"Eyebrow\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {EyebrowProps}\n","export const GRID_AUTO_FLOW = ['row', 'column', 'row dense', 'column dense', 'dense'] as const\n/** @public */\nexport type GridAutoFlow = (typeof GRID_AUTO_FLOW)[number]\n","import {GRID_AUTO_FLOW, type GridAutoFlow} from '../types/Grid'\nimport {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\n/** @public */\nexport type GridParentProps = {\n /** CSS **grid-auto-flow** property */\n gridAutoFlow?: Responsive<GridAutoFlow>\n /** CSS **grid-auto-columns** property */\n gridAutoColumns?: Responsive<string>\n /** CSS **grid-auto-row** property */\n gridAutoRows?: Responsive<string>\n /** CSS **grid-template-columns** property */\n gridTemplateColumns?: Responsive<string>\n /** CSS **grid-template-rows** property */\n gridTemplateRows?: Responsive<string>\n}\n\nexport const gridParentProps: Record<string, PropDef> = {\n gridAutoFlow: {\n type: 'union',\n className: 'grid-auto-flow',\n values: GRID_AUTO_FLOW,\n },\n gridAutoColumns: {\n type: 'string',\n className: 'grid-auto-columns',\n variable: '--grid-auto-columns',\n },\n gridAutoRows: {\n type: 'string',\n className: 'grid-auto-rows',\n variable: '--grid-auto-rows',\n },\n gridTemplateColumns: {\n type: 'string',\n className: 'grid-template-columns',\n variable: '--grid-template-columns',\n },\n gridTemplateRows: {\n type: 'string',\n className: 'grid-template-rows',\n variable: '--grid-template-rows',\n },\n}\n","import type {ElementType} from 'react'\n\nimport {flexParentProps, type FlexParentProps} from '../../props/flexParent'\nimport {type GapProps, gapProps} from '../../props/gap'\nimport {type GridParentProps, gridParentProps} from '../../props/gridParent'\nimport {type LayoutProps, layoutProps} from '../../props/layout'\nimport {DISPLAY_GRID, type DisplayGrid} from '../../types/Display'\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @public */\nexport type GridProps<T extends ElementType = 'div'> = Polymorphic<\n T,\n Pick<FlexParentProps, 'alignItems' | 'justifyContent'> &\n GridParentProps &\n GapProps &\n LayoutProps & {\n /**\n * HTML element or component to render.\n */\n as?: T\n /**\n * CSS `display` property.\n */\n display?: Responsive<DisplayGrid>\n }\n>\n\nexport const gridProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n display: {\n type: 'union',\n className: 'display',\n values: DISPLAY_GRID,\n },\n alignItems: flexParentProps['alignItems'] as PropDef,\n justifyContent: flexParentProps['justifyContent'] as PropDef,\n ...gridParentProps,\n ...gapProps,\n ...layoutProps,\n}\n","import clsx from 'clsx'\nimport type {ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type GridProps, gridProps} from './grid.props'\n\nconst gridClassName = suffixClassName('sui-Grid')\n\n/** @public */\nexport function Grid<T extends ElementType = 'div'>({display = 'grid', ...props}: GridProps<T>) {\n const {as, children, className, style, ...rest} = getProps({display, ...props}, gridProps)\n const Component = as || 'div'\n\n return (\n <Component className={clsx(gridClassName, className)} style={style} data-ui=\"Grid\" {...rest}>\n {children}\n </Component>\n )\n}\n\nexport type {GridProps}\n","import clsx from 'clsx'\nimport type {ElementType} from 'react'\n\nimport {type ComponentProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Flex} from '../flex/Flex'\nimport {type HStackProps} from './hStack.props'\n\nconst hStackClassName = suffixClassName('sui-HStack')\n\n/** @public */\nexport function HStack<T extends ElementType = 'div'>({className, ...props}: HStackProps<T>) {\n return (\n <Flex\n className={clsx(hStackClassName, className)}\n data-ui=\"HStack\"\n display=\"inline-flex\"\n alignItems=\"center\"\n flexWrap=\"wrap\"\n {...(props as ComponentProps)}\n />\n )\n}\n\nexport type {HStackProps}\n","import type {ComponentProps} from 'react'\n\nimport type {PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface KBDProps extends ComponentProps<'kbd'> {\n /**\n * Sets KBD's key label.\n */\n text?: string\n /**\n * Not accepted.\n * @remarks Pass the key label via `text`.\n */\n children?: never\n}\n\nexport const kbdProps: Record<string, PropDef> = {\n text: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Text} from '../text/Text'\nimport {type KBDProps, kbdProps} from './kbd.props'\n\nconst kbdClassName = suffixClassName('sui-KBD')\n\n/** @alpha */\nexport function KBD(props: KBDProps) {\n const {className, style, text, ...rest} = getProps(props, kbdProps)\n\n const kbdClasses = clsx(kbdClassName, 'sui-p1 sui-radius2 sui-display-inline-block')\n\n return (\n <Text\n as=\"kbd\"\n className={clsx(kbdClasses, className)}\n style={style}\n data-ui=\"KBD\"\n size={0}\n weight=\"semibold\"\n muted\n trim\n {...rest}\n >\n {text}\n </Text>\n )\n}\n\nexport type {KBDProps}\n","import type {ComponentProps} from 'react'\n\nimport type {PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface HotkeysProps extends ComponentProps<'kbd'> {\n /**\n * The keys in the shortcut, in order. Each one renders as a KBD.\n */\n keys?: string[]\n}\n\nexport const hotkeysProps: Record<string, PropDef> = {\n keys: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {KBD} from '../kbd/KBD'\nimport {type HotkeysProps, hotkeysProps} from './hotkeys.props'\n\nconst hotkeysClassName = suffixClassName('sui-Hotkeys')\n\n/** @alpha */\nexport function Hotkeys({keys, ...props}: HotkeysProps) {\n const {className, style, ...rest} = getProps(props, hotkeysProps)\n\n if (!keys || keys.length === 0) {\n return null\n }\n\n const hotkeysClasses = clsx(hotkeysClassName, 'sui-display-inline-flex')\n\n return (\n <kbd className={clsx(hotkeysClasses, className)} style={style} data-ui=\"Hotkeys\" {...rest}>\n {keys.map((key) => (\n <KBD key={key} text={key} />\n ))}\n </kbd>\n )\n}\n\nexport type {HotkeysProps}\n","import type {ElementType} from 'react'\n\nimport {type ToneProps, toneProps} from '../../props/tone'\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\n\n/** @beta */\nexport type IndicatorProps<T extends ElementType = 'span'> = Polymorphic<\n T,\n ToneProps & {\n /**\n * HTML element to render.\n */\n as?: T\n /**\n * Accessible label.\n */\n label?: string\n }\n>\n\nexport const indicatorProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n label: {\n type: 'string',\n },\n ...toneProps,\n}\n","import clsx from 'clsx'\nimport type {ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Box} from '../box/Box'\nimport {type IndicatorProps, indicatorProps} from './indicator.props'\n\nconst indicatorClassName = suffixClassName('sui-Indicator')\n\n/** @beta */\nexport function Indicator<T extends ElementType = 'span'>({\n tone = 'neutral',\n ...props\n}: IndicatorProps<T>) {\n const {as, children, className, style, label, ...rest} = getProps(\n {tone, ...props},\n indicatorProps,\n )\n const Component = as || 'span'\n const ariaLabel = label || rest['aria-label']\n\n return (\n <Box\n as={Component}\n className={clsx(indicatorClassName, className)}\n style={style}\n data-ui=\"Indicator\"\n width=\"5px\"\n height=\"5px\"\n radius=\"full\"\n aria-label={ariaLabel}\n aria-hidden={ariaLabel ? undefined : true}\n role={ariaLabel ? 'img' : undefined}\n {...rest}\n >\n {children}\n </Box>\n )\n}\n\nexport type {IndicatorProps}\n","import type {ElementType} from 'react'\n\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\n\n/** @public */\nexport type IndicatorStackProps<T extends ElementType = 'div'> = Polymorphic<\n T,\n {\n /**\n * HTML element to render.\n */\n as?: T\n }\n>\n\nexport const indicatorStackProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\nimport type {ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {HStack} from '../h-stack/HStack'\nimport {type IndicatorStackProps, indicatorStackProps} from './indicatorStack.props'\n\nconst indicatorStackClassName = suffixClassName('sui-IndicatorStack')\n\n/** @public */\nexport function IndicatorStack<T extends ElementType = 'div'>(props: IndicatorStackProps<T>) {\n const {as, children, className, style, ...rest} = getProps(props, indicatorStackProps)\n const Component = as || 'div'\n\n return (\n <HStack\n as={Component}\n className={clsx(indicatorStackClassName, className)}\n style={style}\n data-ui=\"IndicatorStack\"\n {...rest}\n >\n {children}\n </HStack>\n )\n}\n\nexport type {IndicatorStackProps}\n","import type {ElementType} from 'react'\n\nimport {marginProps} from '../../props/margin'\nimport {type PaddingProps, paddingProps} from '../../props/padding'\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\nimport {SPACE, type SpaceInherit} from '../../types/Space'\n\n/** @deprecated Use HStack component instead */\n/** @public */\nexport type InlineProps<T extends ElementType = 'div'> = Polymorphic<\n T,\n PaddingProps & {\n /**\n * HTML element or component to render.\n */\n as?: T\n /**\n * Space between children.\n */\n gap?: Responsive<SpaceInherit>\n }\n>\n\nexport const inlineProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n gap: {\n type: 'composite',\n values: SPACE,\n composition: {\n marginTop: {\n propDef: marginProps['marginTop'] as PropDef,\n mapping: {\n 0: 0,\n 1: -1,\n 2: -2,\n 3: -3,\n 4: -4,\n 5: -5,\n 6: -6,\n 7: -7,\n 8: -8,\n 9: -9,\n },\n },\n marginLeft: {\n propDef: marginProps['marginLeft'] as PropDef,\n mapping: {\n 0: 0,\n 1: -1,\n 2: -2,\n 3: -3,\n 4: -4,\n 5: -5,\n 6: -6,\n 7: -7,\n 8: -8,\n 9: -9,\n },\n },\n },\n },\n ...paddingProps,\n}\n\nexport const inlineChildrenProps: Record<string, PropDef> = {\n gap: {\n type: 'composite',\n values: SPACE,\n composition: {\n paddingTop: {\n propDef: paddingProps['paddingTop'] as PropDef,\n mapping: {\n 0: 0,\n 1: 1,\n 2: 2,\n 3: 3,\n 4: 4,\n 5: 5,\n 6: 6,\n 7: 7,\n 8: 8,\n 9: 9,\n },\n },\n paddingLeft: {\n propDef: paddingProps['paddingLeft'] as PropDef,\n mapping: {\n 0: 0,\n 1: 1,\n 2: 2,\n 3: 3,\n 4: 4,\n 5: 5,\n 6: 6,\n 7: 7,\n 8: 8,\n 9: 9,\n },\n },\n },\n },\n}\n","import clsx from 'clsx'\nimport {Children, type ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {inlineChildrenProps, type InlineProps, inlineProps} from './inline.props'\n\nconst inlineClassName = suffixClassName('sui-Inline')\n\n/** @deprecated Use HStack component instead */\n/** @public */\nexport function Inline<T extends ElementType = 'div'>(\n // oxlint-disable-next-line no-deprecated\n props: InlineProps<T>,\n) {\n const {as, children: childrenProp, className, style, ...rest} = getProps(props, inlineProps)\n const {className: childrenClassName} = getProps(props, inlineChildrenProps)\n const Component = as || 'div'\n\n const children = Children.map(\n childrenProp,\n (child) => child && <div className={childrenClassName}>{child}</div>,\n )\n\n return (\n <Component\n className={clsx(inlineClassName, className)}\n style={style}\n data-ui=\"Inline\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\n// oxlint-disable-next-line no-deprecated\nexport type {InlineProps}\n","import type {ComponentProps} from 'react'\n\nimport type {PropDef} from '../../types/PropDef'\n\n/** @beta */\nexport interface LinkProps extends ComponentProps<'a'> {\n /**\n * Sets the link to `target=\"_blank\"` and `rel=\"noopener noreferrer\"`.\n */\n openInNewTab?: boolean\n /**\n * Underlines the link.\n */\n underlined?: boolean\n}\n\nexport const linkProps: Record<string, PropDef> = {\n openInNewTab: {\n type: 'boolean',\n },\n underlined: {\n type: 'boolean',\n className: 'underlined',\n },\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type LinkProps, linkProps} from './link.props'\n\nconst linkClassName = suffixClassName('sui-Link')\n\n/** @beta */\nexport function Link({underlined = true, ...props}: LinkProps) {\n const {children, className, style, openInNewTab, ...rest} = getProps(\n {underlined, ...props},\n linkProps,\n )\n\n return (\n <a\n className={clsx(linkClassName, className)}\n style={style}\n data-ui=\"Link\"\n {...(openInNewTab ? {target: '_blank', rel: 'noopener noreferrer'} : {})}\n {...rest}\n >\n {children}\n </a>\n )\n}\n\nexport type {LinkProps}\n","import type {ElementType} from 'react'\n\nimport type {InteractiveAs} from '../../types/Interactive'\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\n\n/** @public */\nexport type PressAreaProps<T extends ElementType = 'button'> = Polymorphic<\n T,\n {\n /**\n * Element or component to render.\n */\n as?: InteractiveAs<T>\n }\n>\n\nexport const pressAreaProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\nimport type {ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type PressAreaProps, pressAreaProps} from './pressArea.props'\n\nconst pressAreaClassName = suffixClassName('sui-PressArea')\n\n/** @public */\nexport function PressArea<T extends ElementType = 'button'>(props: PressAreaProps<T>) {\n const {as, children, className, style, ...rest} = getProps(props, pressAreaProps)\n const Component = as || 'button'\n\n return (\n <Component\n className={clsx(pressAreaClassName, 'sui-width-full', className)}\n style={style}\n data-ui=\"PressArea\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {PressAreaProps}\n","import clsx from 'clsx'\nimport type {ElementType} from 'react'\n\nimport type {ComponentProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Flex} from '../flex/Flex'\nimport {type VStackProps} from './vStack.props'\n\nconst vStackClassName = suffixClassName('sui-VStack')\n\n/** @public */\nexport function VStack<T extends ElementType = 'div'>({className, ...props}: VStackProps<T>) {\n return (\n <Flex\n className={clsx(vStackClassName, className)}\n data-ui=\"VStack\"\n flexDirection=\"column\"\n {...(props as ComponentProps)}\n />\n )\n}\n\nexport type {VStackProps}\n","import type {ComponentProps, ReactNode, ElementType} from 'react'\n\nimport {type GapProps, gapProps} from '../../props/gap'\nimport {heightProps} from '../../props/height'\nimport {paddingProps} from '../../props/padding'\nimport {DENSITY, type Density} from '../../types/Density'\nimport type {InteractiveAs} from '../../types/Interactive'\nimport type {ListTag} from '../../types/List'\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\nimport type {Responsive} from '../../types/Responsive'\n\n/** @beta */\nexport type ListProps<T extends ListTag = 'ul'> = Polymorphic<\n T,\n Pick<GapProps, 'gap'> & {\n /**\n * HTML element to render.\n */\n as?: T\n }\n>\n\nexport const listProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n gap: gapProps['gap'] as PropDef,\n}\n\n/** @beta */\nexport interface ListItemProps extends ComponentProps<'li'> {}\n\n/** @beta */\nexport type ListItemButtonProps<T extends ElementType = 'button'> = Polymorphic<\n T,\n {\n /**\n * Element or component to render for the press target.\n */\n as?: InteractiveAs<T>\n /**\n * Marks the row as the current selection.\n */\n current?: boolean\n /**\n * Sets horizontal padding, gap, and minimum row height together.\n */\n density?: Responsive<Density>\n /**\n * Slot at the left edge of the row.\n */\n start?: ReactNode\n /**\n * Slot at the right edge of the row.\n */\n end?: ReactNode\n /**\n * Main label.\n */\n text?: ReactNode\n /**\n * Text below the title.\n */\n subtext?: ReactNode\n }\n>\n\nexport const listButtonProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n current: {\n type: 'boolean',\n },\n density: {\n type: 'composite',\n values: DENSITY,\n composition: {\n gap: {\n propDef: gapProps['gap'] as PropDef,\n mapping: {\n compact: 2,\n regular: 2,\n loose: 3,\n },\n },\n minHeight: {\n propDef: heightProps['minHeight'] as PropDef,\n mapping: {\n compact: '33px',\n regular: '37px',\n loose: '45px',\n },\n },\n paddingX: {\n propDef: paddingProps['padding'] as PropDef,\n mapping: {\n compact: 1,\n regular: 2,\n loose: 3,\n },\n },\n },\n },\n end: {\n type: 'string',\n },\n start: {\n type: 'string',\n },\n text: {\n type: 'string',\n },\n subtext: {\n type: 'string',\n },\n}\n\n/** @beta */\nexport interface ListImageProps extends ComponentProps<'img'> {}\n","import clsx from 'clsx'\nimport type {ElementType} from 'react'\n\nimport type {ListTag} from '../../types/List'\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Flex} from '../flex/Flex'\nimport {PressArea} from '../press-area/PressArea'\nimport {Text} from '../text/Text'\nimport {VStack} from '../v-stack/VStack'\nimport {\n listButtonProps,\n type ListItemButtonProps,\n type ListImageProps,\n type ListItemProps,\n type ListProps,\n listProps,\n} from './list.props'\n\nconst listClassName = suffixClassName('sui-List')\nconst listItemClassName = suffixClassName('sui-ListItem')\nconst listButtonClassName = suffixClassName('sui-ListItemButton')\nconst listItemImageClassName = suffixClassName('sui-ListItemImage')\n\nfunction ListRoot<T extends ListTag = 'ul'>(props: ListProps<T>) {\n const {as, children, className, style, ...rest} = getProps(props, listProps)\n const Component = as || 'ul'\n\n return (\n <VStack\n as={Component}\n className={clsx(listClassName, className)}\n style={style}\n data-ui=\"List\"\n {...rest}\n >\n {children}\n </VStack>\n )\n}\n\nfunction ListItem({className, ...rest}: ListItemProps) {\n return (\n <li\n data-ui=\"ListItem\"\n className={clsx(listItemClassName, 'sui-text-body1', className)}\n {...rest}\n />\n )\n}\n\nfunction ListItemButton<T extends ElementType = 'button'>({\n density = 'regular',\n ...props\n}: ListItemButtonProps<T>) {\n const {as, children, className, style, text, subtext, end, start, current, ...rest} = getProps(\n {density, ...props},\n listButtonProps,\n )\n const Component = as || 'button'\n\n return (\n <PressArea\n as={Component}\n className={clsx(\n listButtonClassName,\n 'sui-width-full sui-display-flex sui-align-items-center sui-radius2',\n className,\n )}\n style={style}\n data-ui=\"ListItemButton\"\n aria-current={current}\n {...rest}\n >\n {start}\n\n <Flex flexDirection=\"column\" justifyContent=\"center\" gap={2} flexGrow={1}>\n {text && (\n <Text size={1} weight=\"medium\" trim truncate={1}>\n {text}\n </Text>\n )}\n\n {subtext && (\n <Text size={1} muted trim truncate={1}>\n {subtext}\n </Text>\n )}\n\n {children}\n </Flex>\n\n {end}\n </PressArea>\n )\n}\n\nfunction ListItemImage({className, ...rest}: ListImageProps) {\n return (\n <img\n className={clsx(listItemImageClassName, 'sui-radius2', className)}\n data-ui=\"ListItemImage\"\n {...rest}\n />\n )\n}\n\nListRoot.displayName = 'List'\n\n/** @beta */\nexport const List = Object.assign(ListRoot, {\n Item: ListItem,\n ItemButton: ListItemButton,\n ItemImage: ListItemImage,\n})\n\nexport type {ListProps, ListItemProps, ListItemButtonProps, ListImageProps}\n","import {useSyncExternalStore} from 'react'\n\n/** @public */\nexport function useIsClient() {\n return useSyncExternalStore(\n () => () => {},\n () => true,\n () => false,\n )\n}\n","function isReactEventHandler(key: string, value: unknown): value is (e: never) => void {\n return /^on[A-Z]/.test(key) && typeof value === 'function'\n}\n\nfunction chainEventHandlers<E>(\n ...handlers: (((e: E) => void) | undefined)[]\n): ((e: E) => void) | undefined {\n const defined = handlers.filter(Boolean) as ((e: E) => void)[]\n\n if (defined.length === 0) {\n return undefined\n }\n\n if (defined.length === 1) {\n return defined[0]\n }\n\n return (e: E) => {\n for (const handler of defined) {\n handler(e)\n }\n }\n}\n\nexport function mergeTriggerProps(\n childProps: Record<string, unknown>,\n forwardedProps?: Record<string, unknown>,\n ownProps?: Record<string, unknown>,\n) {\n const result: Record<string, unknown> = {}\n\n for (const source of [forwardedProps, ownProps]) {\n if (!source) {\n continue\n }\n\n for (const [key, value] of Object.entries(source)) {\n if (key === 'style') {\n continue\n }\n\n if (isReactEventHandler(key, value)) {\n result[key] = chainEventHandlers(result[key] as (e: never) => void, value)\n continue\n }\n\n if (value !== undefined) {\n result[key] = value\n }\n }\n }\n\n result['style'] = {\n ...(childProps['style'] as object),\n ...(forwardedProps?.['style'] as object),\n ...(ownProps?.['style'] as object),\n }\n\n for (const [key, value] of Object.entries(childProps)) {\n if (isReactEventHandler(key, value)) {\n result[key] = chainEventHandlers(result[key] as (e: never) => void, value)\n }\n }\n\n return result\n}\n","import {type ReactNode} from 'react'\nimport {createPortal} from 'react-dom'\n\nexport function renderPortal(node: ReactNode, mounted: boolean, portal?: boolean) {\n if (!portal) {\n return node\n }\n\n if (!mounted) {\n return null\n }\n\n return createPortal(node, document.body)\n}\n","export const PLACEMENT = [\n 'top',\n 'top-start',\n 'top-end',\n 'right',\n 'right-start',\n 'right-end',\n 'bottom',\n 'bottom-start',\n 'bottom-end',\n 'left',\n 'left-start',\n 'left-end',\n] as const\n/** @public */\nexport type Placement = (typeof PLACEMENT)[number]\n","import {PLACEMENT, type Placement} from '../types/Placement'\nimport {type PropDef} from '../types/PropDef'\n\n/** @public */\nexport type PlacementProps = {\n /** Placement relative to anchor */\n placement?: Placement\n}\n\nexport const placementProps: Record<string, PropDef> = {\n placement: {\n type: 'union',\n className: 'placement',\n values: PLACEMENT,\n },\n}\n","import type {ComponentProps, ReactElement, ReactNode} from 'react'\n\nimport {type PlacementProps, placementProps} from '../../props/placement'\nimport type {PropDef} from '../../types/PropDef'\n\n/** @beta */\nexport interface PopoverProps\n extends Omit<ComponentProps<'div'>, 'children' | 'content'>, PlacementProps {\n /**\n * Shared anchor identifier.\n * @remarks Set the same value on a Tooltip and a Popover to point both at one trigger.\n */\n anchorName?: ReactNode\n /**\n * The trigger element.\n * @remarks Popover clones it and attaches the `popovertarget` attribute that opens the floating layer.\n */\n children: ReactElement<Record<string, unknown>>\n /**\n * The floating content.\n */\n content?: ReactNode\n /**\n * Removes popover padding.\n */\n fullBleed?: boolean\n /**\n * Renders the content into `document.body` through a React portal instead of inline.\n */\n portal?: boolean\n}\n\nexport const popoverProps: Record<string, PropDef> = {\n anchorName: {\n type: 'string',\n },\n content: {\n type: 'string',\n },\n fullBleed: {\n type: 'boolean',\n className: 'p0',\n inverseClassName: 'p2',\n },\n portal: {\n type: 'boolean',\n },\n ...placementProps,\n}\n","import clsx from 'clsx'\nimport {Activity, cloneElement, useId, useState, type ToggleEvent} from 'react'\n\nimport {useIsClient} from '../../hooks/useIsClient'\nimport {getProps} from '../../utils/getProps'\nimport {mergeTriggerProps} from '../../utils/mergeTriggerProps'\nimport {renderPortal} from '../../utils/renderPortal'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type PopoverProps, popoverProps} from './popover.props'\n\nconst popoverClassName = suffixClassName('sui-Popover')\n\nfunction PopoverRoot({\n placement = 'bottom',\n fullBleed = false,\n ...props\n}: PopoverProps & {\n triggerProps?: Record<string, unknown>\n}) {\n const {\n children,\n className,\n style,\n id: idProp,\n anchorName,\n content,\n portal,\n triggerProps: forwardedTriggerProps,\n ...rest\n } = getProps({placement, fullBleed, ...props}, popoverProps)\n const reactId = useId()\n const id = idProp || reactId\n const [open, setOpen] = useState(false)\n const isClient = useIsClient()\n\n const handleToggle = (e: ToggleEvent) => {\n setOpen(e.newState === 'open')\n }\n\n const triggerProps = {\n popoverTarget: id,\n style: {anchorName: `--anchor-${anchorName || id}`},\n }\n\n const trigger = children.type.forwardsTriggerProps\n ? cloneElement(children, {triggerProps})\n : cloneElement(children, mergeTriggerProps(children.props, forwardedTriggerProps, triggerProps))\n\n return (\n <>\n {trigger}\n\n {renderPortal(\n <Activity mode={open ? 'visible' : 'hidden'}>\n <div\n className={clsx(\n popoverClassName,\n 'sui-radius3 sui-position-fixed sui-shadow2 sui-text-body1 sui-text-trim-edge',\n className,\n )}\n style={{\n ...style,\n positionAnchor: `--anchor-${anchorName || id}`,\n }}\n data-ui=\"Popover\"\n popover=\"auto\"\n id={id}\n onToggle={handleToggle}\n {...rest}\n >\n {content}\n </div>\n </Activity>,\n isClient,\n portal,\n )}\n </>\n )\n}\n\n/** @beta */\nexport const Popover = Object.assign(PopoverRoot, {\n forwardsTriggerProps: true,\n})\n\nexport type {PopoverProps}\n","import clsx from 'clsx'\n\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Box} from '../box/Box'\nimport {type RadioProps} from './radio.props'\n\nconst radioClassName = suffixClassName('sui-Radio')\nconst radioInputClassName = suffixClassName('sui-RadioInput')\n\n/** @beta */\nexport function Radio(props: RadioProps) {\n const {className, style, ...rest} = props\n\n return (\n <Box\n as=\"span\"\n className={clsx(radioClassName, className)}\n style={style}\n data-ui=\"Radio\"\n position=\"relative\"\n radius=\"full\"\n width=\"17px\"\n height=\"17px\"\n >\n <input type=\"radio\" className={radioInputClassName} {...rest} />\n </Box>\n )\n}\n\nexport type {RadioProps}\n","export const FORM_ELEMENT_DENSITY = ['regular', 'loose'] as const\nexport type FormElementDensity = (typeof FORM_ELEMENT_DENSITY)[number]\n","import {FORM_ELEMENT_DENSITY, type FormElementDensity} from '../types/FormElement'\nimport type {PropDef} from '../types/PropDef'\nimport {paddingProps} from './padding'\n\n/** @public */\nexport type FormElementDensityProps = {\n /**\n * Sets padding, gap, and other spacing values on the form element.\n */\n density?: FormElementDensity\n}\n\nexport const formElementDensityProps: Record<string, PropDef> = {\n density: {\n type: 'composite',\n values: FORM_ELEMENT_DENSITY,\n composition: {\n paddingX: {\n propDef: paddingProps['paddingX'] as PropDef,\n mapping: {\n regular: 2,\n loose: 3,\n },\n },\n paddingY: {\n propDef: paddingProps['paddingY'] as PropDef,\n mapping: {\n regular: 1,\n loose: 2,\n },\n },\n },\n },\n}\n","import type {ComponentProps} from 'react'\n\nimport {formElementDensityProps, type FormElementDensityProps} from '../../props/formElement'\nimport type {PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface SelectProps extends ComponentProps<'select'>, FormElementDensityProps {\n /**\n * Used to trigger styling for invalid states.\n * @remarks Use when form validation fails. Pair with a visible error message.\n */\n hasError?: boolean\n}\n\nexport const selectProps: Record<string, PropDef> = {\n hasError: {\n type: 'boolean',\n },\n ...formElementDensityProps,\n}\n","import SelectIcon from '@sanity/icons/Select'\nimport clsx from 'clsx'\nimport {useId} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Icon} from '../icon/Icon'\nimport {type SelectProps, selectProps} from './select.props'\n\nconst selectClassName = suffixClassName('sui-Select')\n\n/** @public */\nexport function Select({density = 'regular', hasError = false, ...props}: SelectProps) {\n const {children, className, style, ...rest} = getProps({density, ...props}, selectProps)\n\n const anchorId = useId()\n const anchorName = `--anchor-${anchorId}`\n\n const selectClasses = clsx(selectClassName, 'sui-radius2', 'sui-width-full', className)\n\n const iconClasses = `sui-position-absolute sui-display-flex sui-align-items-center sui-px1`\n\n return (\n <>\n <select\n data-ui=\"Select\"\n className={selectClasses}\n style={{...style, anchorName}}\n {...rest}\n aria-invalid={hasError || undefined}\n >\n {children}\n </select>\n <div className={iconClasses} data-ui=\"Select-icon\" style={{positionAnchor: anchorName}}>\n <Icon icon={SelectIcon} size={1} />\n </div>\n </>\n )\n}\n\nexport type {SelectProps}\n","import type {ElementType} from 'react'\n\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\n\n/** @public */\nexport type VisuallyHiddenProps<T extends ElementType = 'span'> = Polymorphic<\n T,\n {\n /**\n * HTML element to render.\n */\n as?: T\n /**\n * If true, the element becomes visible on `:focus-visible`.\n */\n visibleOnFocus?: boolean\n }\n>\n\nexport const visuallyHiddenProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n visibleOnFocus: {\n type: 'boolean',\n className: 'sui-visually-hidden-visible',\n },\n}\n","import clsx from 'clsx'\nimport type {ElementType} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type VisuallyHiddenProps, visuallyHiddenProps} from './visuallyHidden.props'\n\nconst visuallyHiddenClassName = suffixClassName('sui-VisuallyHidden')\n\n/** @public */\nexport function VisuallyHidden<T extends ElementType = 'span'>(props: VisuallyHiddenProps<T>) {\n const {as, children, className, style, ...rest} = getProps(props, visuallyHiddenProps)\n const Component = as || 'span'\n\n return (\n <Component\n className={clsx(visuallyHiddenClassName, className)}\n style={style}\n data-ui=\"VisuallyHidden\"\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {VisuallyHiddenProps}\n","import type {ComponentProps} from 'react'\n\nimport type {PropDef} from '../../types/PropDef'\n\n/** @beta */\nexport interface SkipToContentProps extends ComponentProps<'a'> {\n /**\n * Same-page fragment to jump to.\n * @remarks Note: The hash character # is required for proper linking.\n */\n href: string\n /**\n * Visible and announced text.\n */\n label: string\n /**\n * Not accepted.\n * @remarks Pass text via `label`.\n */\n children?: never\n}\n\nexport const skipToContentProps: Record<string, PropDef> = {\n label: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Link} from '../link/Link'\nimport {Text} from '../text/Text'\nimport {VisuallyHidden} from '../visually-hidden/VisuallyHidden'\nimport {type SkipToContentProps, skipToContentProps} from './skipToContent.props'\n\nconst skipToContentClassName = suffixClassName('sui-SkipToContent')\n\n/** @beta */\nexport function SkipToContent(props: SkipToContentProps) {\n const {className, label, style, ...rest} = getProps(props, skipToContentProps)\n\n return (\n <VisuallyHidden\n as={Link}\n underlined={false}\n className={clsx(\n skipToContentClassName,\n 'sui-position-absolute sui-top2 sui-left2 sui-display-inline-block sui-z-index sui-py2 sui-px3 sui-radius2 sui-text-body1',\n className,\n )}\n style={style}\n data-ui=\"SkipToContent\"\n visibleOnFocus\n {...rest}\n >\n <Text size={1}>{label}</Text>\n </VisuallyHidden>\n )\n}\n\nexport type {SkipToContentProps}\n","import type {ComponentProps} from 'react'\n\nimport type {PropDef} from '../../types/PropDef'\n\n/** @beta */\nexport interface SwitchProps extends ComponentProps<'input'> {\n /**\n * Applies error styling to the switch track for invalid states.\n * @remarks Use when form validation fails. Pair with a visible error message.\n */\n hasError?: boolean\n}\n\nexport const switchProps: Record<string, PropDef> = {\n hasError: {\n type: 'boolean',\n },\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Flex} from '../flex/Flex'\nimport {type SwitchProps, switchProps} from './switch.props'\n\nconst switchClassName = suffixClassName('sui-Switch')\nconst switchInputClassName = suffixClassName('sui-SwitchInput')\n\n/** @beta */\nexport function Switch(props: SwitchProps) {\n const {className, style, hasError, ...rest} = getProps(props, switchProps)\n\n return (\n <Flex\n as=\"span\"\n className={clsx(switchClassName, className)}\n style={style}\n data-ui=\"Switch\"\n position=\"relative\"\n alignItems=\"center\"\n radius={6}\n >\n <input\n type=\"checkbox\"\n role=\"switch\"\n className={switchInputClassName}\n aria-invalid={hasError || undefined}\n {...rest}\n />\n </Flex>\n )\n}\n\nexport type {SwitchProps}\n","import type {ComponentProps, ReactNode, ElementType} from 'react'\n\nimport type {LayoutProps} from '../../props/layout'\nimport {toneProps, type ToneProps} from '../../props/tone'\nimport type {PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface TabsProps extends ComponentProps<'div'> {\n /** The `value` of the active Tabs.Tab */\n value: string\n /** An updater function to set `value` - will be invoked with the `value` of the selected Tabs.Tab */\n onValueChange: (value: string) => void\n}\n\nexport const tabsProps: Record<string, PropDef> = {\n value: {\n type: 'string',\n },\n}\n\n// Tabs.List requires either aria-label or aria-labelledby\ntype TabsListLabelProps =\n | {'aria-labelledby': string; 'aria-label'?: never}\n | {'aria-label': string; 'aria-labelledby'?: never}\n\n/** @public */\nexport type TabsListProps = Omit<ComponentProps<'div'>, 'id' | 'role'> & TabsListLabelProps\n\nexport const tabsListProps: Record<string, PropDef> = {}\n\n/** @public */\nexport interface TabProps\n extends Omit<ComponentProps<'button'>, 'aria-disabled' | 'disabled' | 'id' | 'role'>, ToneProps {\n /** Optional icon for the tab */\n icon?: ElementType | ReactNode\n /** Text label to display in the tab */\n label: string\n /** Unique string used to identify this tab and its matching Tabs.Panel */\n value: string\n}\n\nexport const tabProps: Record<string, PropDef> = {\n icon: {\n type: 'string',\n },\n label: {\n type: 'string',\n },\n value: {\n type: 'string',\n },\n ...toneProps,\n}\n\n/** @public */\nexport interface TabsPanelProps extends Omit<ComponentProps<'div'>, 'id' | 'role'>, LayoutProps {\n /** Unique string used to identify this panel and its matching Tabs.Tab */\n value: string\n}\n\nexport const tabsPanelProps: Record<string, PropDef> = {\n value: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\nimport {createContext, isValidElement, useContext, useId} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {Box} from '../box/Box'\nimport {HStack} from '../h-stack/HStack'\nimport {Icon} from '../icon/Icon'\nimport {\n tabProps,\n type TabProps,\n tabsListProps,\n type TabsListProps,\n tabsPanelProps,\n type TabsPanelProps,\n type TabsProps,\n tabsProps,\n} from './tabs.props'\n\nconst tabsClassName = suffixClassName('sui-Tabs')\n\nconst TabsContext = createContext<{\n value: string\n onValueChange: (value: string) => void\n tabsRootId: string\n} | null>(null)\n\nfunction useTabsContext() {\n const context = useContext(TabsContext)\n if (!context) throw new Error('Tabs.[subcomponents] must be rendered inside the Tabs component')\n return context\n}\n\nfunction getTabId(tabsRootId: string, value: string): string {\n const valueWithoutSpaces = value.replace(/\\s/g, '-')\n return `${tabsRootId}-${valueWithoutSpaces}-tab`\n}\n\nfunction getPanelId(tabsRootId: string, value: string): string {\n const valueWithoutSpaces = value.replace(/\\s/g, '-')\n return `${tabsRootId}-${valueWithoutSpaces}-panel`\n}\n\nfunction TabsRoot({value, onValueChange, ...props}: TabsProps) {\n const {children, className, style, ...rest} = getProps(props, tabsProps)\n\n const tabsRootId = useId()\n\n return (\n <TabsContext.Provider value={{value, onValueChange, tabsRootId}}>\n <div className={clsx(tabsClassName, className)} style={style} data-ui=\"Tabs\" {...rest}>\n {children}\n </div>\n </TabsContext.Provider>\n )\n}\n\nfunction handleKeyDown(event: React.KeyboardEvent<HTMLDivElement>) {\n // Ignore keydowns if made with alt, ctrl, or meta\n if (event.altKey || event.ctrlKey || event.metaKey) {\n return\n }\n\n const tabsList = event.currentTarget\n const focusedTab = event.target\n const tabs = Array.from(tabsList.querySelectorAll<HTMLElement>('[role=\"tab\"]'))\n const focusedTabIndex = tabs.indexOf(focusedTab as HTMLElement)\n\n if (event.key === 'ArrowLeft') {\n event.preventDefault()\n const previousTab = tabs[(focusedTabIndex - 1 + tabs.length) % tabs.length]\n previousTab?.focus()\n }\n if (event.key === 'ArrowRight') {\n event.preventDefault()\n const nextTab = tabs[(focusedTabIndex + 1) % tabs.length]\n nextTab?.focus()\n }\n if (event.key === 'Home') {\n event.preventDefault()\n tabs[0]?.focus()\n }\n if (event.key === 'End') {\n event.preventDefault()\n tabs[tabs.length - 1]?.focus()\n }\n}\n\nfunction TabsList(props: TabsListProps) {\n const {children, className, style, ...rest} = getProps(props, tabsListProps)\n\n return (\n <HStack\n {...rest}\n role=\"tablist\"\n className={className}\n style={style}\n data-ui=\"Tabs.List\"\n gap={1}\n onKeyDown={handleKeyDown}\n >\n {children}\n </HStack>\n )\n}\n\nconst tabClasses = clsx(\n 'sui-display-inline-flex',\n 'sui-align-items-center',\n 'sui-gap1',\n 'sui-px2',\n 'sui-py1',\n 'sui-radius2',\n 'sui-text-body1',\n 'sui-weight-medium',\n)\n\nfunction Tab({value, tone = 'neutral', ...props}: TabProps) {\n const {icon: IconProp, label, className, style, ...rest} = getProps({tone, ...props}, tabProps)\n\n const {tabsRootId, value: contextValue, onValueChange} = useTabsContext()\n const selected = contextValue === value\n\n return (\n <button\n className={clsx(tabClasses, className)}\n style={style}\n {...rest}\n data-ui=\"Tabs.Tab\"\n type=\"button\"\n role=\"tab\"\n id={getTabId(tabsRootId, value)}\n aria-controls={getPanelId(tabsRootId, value)}\n aria-selected={selected}\n /* Only the active tab should receive focus via Tab key; others focus via arrow keys */\n tabIndex={selected ? 0 : -1}\n onClick={(e) => {\n props.onClick?.(e)\n onValueChange(value)\n }}\n >\n {IconProp &&\n (isValidElement(IconProp) ? (\n IconProp\n ) : (\n <Icon icon={IconProp} marginX={-1} marginY={-2} size={1} />\n ))}\n {label}\n </button>\n )\n}\n\nfunction TabPanel({value, ...props}: TabsPanelProps) {\n const {children, className, style, ...rest} = getProps(props, tabsPanelProps)\n\n const {tabsRootId, value: contextValue} = useTabsContext()\n const selected = contextValue === value\n\n return (\n <Box\n className={className}\n style={style}\n // Default tabIndex for panels without focusable content — consumer overrides if their panel content is focusable\n tabIndex={0}\n {...rest}\n data-ui=\"Tabs.Panel\"\n display={selected ? 'block' : 'none'}\n role=\"tabpanel\"\n id={getPanelId(tabsRootId, value)}\n aria-labelledby={getTabId(tabsRootId, value)}\n >\n {children}\n </Box>\n )\n}\n\nTabsRoot.displayName = 'Tabs'\n\n/** @public */\nexport const Tabs = TabsRoot\n\nTabsRoot.List = TabsList\nTabsRoot.Tab = Tab\nTabsRoot.Panel = TabPanel\n\nexport type {TabsProps, TabsListProps, TabProps, TabsPanelProps}\n","import type {ComponentProps} from 'react'\n\nimport {formElementDensityProps, type FormElementDensityProps} from '../../props/formElement'\nimport {type HeightProps, heightProps} from '../../props/height'\nimport type {PropDef} from '../../types/PropDef'\n\n/** @public */\nexport interface TextAreaProps\n extends ComponentProps<'textarea'>, FormElementDensityProps, Pick<HeightProps, 'maxHeight'> {\n /**\n * Sizes the textarea to its content via the CSS `field-sizing` property.\n */\n autoResize?: boolean\n /**\n * Used to trigger styling for invalid states.\n */\n hasError?: boolean\n /**\n * The html `rows` attribute. Defaults to 5.\n */\n rows?: number\n}\n\nexport const textAreaProps: Record<string, PropDef> = {\n autoResize: {\n type: 'boolean',\n className: 'field-sizing-content',\n },\n hasError: {\n type: 'boolean',\n },\n maxHeight: heightProps['maxHeight'] as PropDef,\n ...formElementDensityProps,\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type TextAreaProps, textAreaProps} from './textArea.props'\n\nconst textAreaClassName = suffixClassName('sui-TextArea')\n\n/** @public */\nexport function TextArea({\n autoResize,\n density = 'regular',\n hasError,\n rows = 5,\n ...props\n}: TextAreaProps) {\n const {className, style, ...rest} = getProps({autoResize, density, rows, ...props}, textAreaProps)\n\n const textAreaClasses = clsx(textAreaClassName, 'sui-radius2', 'sui-width-full', className)\n\n return (\n <textarea\n className={textAreaClasses}\n style={style}\n data-ui=\"TextArea\"\n {...rest}\n aria-invalid={hasError || undefined}\n />\n )\n}\n\nexport type {TextAreaProps}\n","import type {ComponentProps, HTMLInputTypeAttribute} from 'react'\n\nimport {formElementDensityProps, type FormElementDensityProps} from '../../props/formElement'\nimport type {PropDef} from '../../types/PropDef'\n\nexport const TEXT_INPUT_EXCLUDED_TYPES = [\n 'button',\n 'checkbox',\n 'color',\n 'file',\n 'hidden',\n 'image',\n 'radio',\n 'range',\n 'reset',\n 'submit',\n] as const\n\n/** @public */\nexport type TextInputExcludedTypes = (typeof TEXT_INPUT_EXCLUDED_TYPES)[number]\n\n/** @public */\nexport type TextInputType = Exclude<HTMLInputTypeAttribute, TextInputExcludedTypes>\n\n/** @public */\nexport interface TextInputProps\n extends Omit<ComponentProps<'input'>, 'type'>, FormElementDensityProps {\n /**\n * Used to trigger styling for invalid states.\n * @remarks Use when form validation fails. Pair with a visible error message.\n */\n hasError?: boolean\n /**\n * The html `type` attribute, with non-text based types excluded.\n */\n type?: TextInputType\n}\n\nexport const textInputProps: Record<string, PropDef> = {\n hasError: {\n type: 'boolean',\n },\n ...formElementDensityProps,\n}\n","import clsx from 'clsx'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type TextInputProps, textInputProps} from './textInput.props'\n\nconst textInputClassName = suffixClassName('sui-TextInput')\n\n/** @public */\nexport function TextInput({\n density = 'regular',\n hasError,\n type = 'text',\n ...props\n}: TextInputProps) {\n const {className, style, ...rest} = getProps({density, ...props}, textInputProps)\n\n const textInputClasses = clsx(textInputClassName, 'sui-radius2', 'sui-width-full', className)\n\n return (\n <input\n type={type}\n className={textInputClasses}\n style={style}\n data-ui=\"TextInput\"\n {...rest}\n aria-invalid={hasError || undefined}\n />\n )\n}\n\nexport type {TextInputProps}\n","import type {ComponentProps, ReactElement, ReactNode} from 'react'\n\nimport {type PlacementProps, placementProps} from '../../props/placement'\nimport type {PropDef} from '../../types/PropDef'\n\n/** @beta */\nexport interface TooltipProps\n extends Omit<ComponentProps<'div'>, 'children' | 'content'>, PlacementProps {\n /**\n * Shared anchor identifier.\n */\n anchorName?: ReactNode\n /**\n * The trigger element.\n */\n children: ReactElement<Record<string, unknown>>\n /**\n * The tooltip label.\n */\n content?: ReactNode\n /**\n * Renders the label into `document.body` through a React portal instead of inline.\n */\n portal?: boolean\n}\n\nexport const tooltipProps: Record<string, PropDef> = {\n anchorName: {\n type: 'string',\n },\n content: {\n type: 'string',\n },\n portal: {\n type: 'boolean',\n },\n ...placementProps,\n}\n","import clsx from 'clsx'\nimport {cloneElement, useId, useState, type ToggleEvent} from 'react'\n\nimport {useIsClient} from '../../hooks/useIsClient'\nimport {getProps} from '../../utils/getProps'\nimport {mergeTriggerProps} from '../../utils/mergeTriggerProps'\nimport {renderPortal} from '../../utils/renderPortal'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type TooltipProps, tooltipProps} from './tooltip.props'\n\nconst tooltipClassName = suffixClassName('sui-Tooltip')\n\nfunction TooltipRoot({\n placement = 'bottom',\n ...props\n}: TooltipProps & {\n triggerProps?: Record<string, unknown>\n}) {\n const {\n children,\n className,\n style,\n id: idProp,\n anchorName,\n content,\n portal,\n triggerProps: forwardedTriggerProps,\n ...rest\n } = getProps({placement, ...props}, tooltipProps)\n const reactId = useId()\n const id = idProp || reactId\n const [dismissed, setDismissed] = useState(false)\n const isClient = useIsClient()\n\n const triggerProps = {\n 'aria-describedby': id,\n 'interestfor': id,\n 'style': {anchorName: `--anchor-${anchorName || id}`},\n 'onMouseLeave': () => {\n setDismissed(false)\n },\n 'onBlur': () => {\n setDismissed(false)\n },\n 'onClick': () => {\n setDismissed(true)\n document.getElementById(id)?.hidePopover()\n },\n }\n\n const trigger = children.type.forwardsTriggerProps\n ? cloneElement(children, {triggerProps})\n : cloneElement(children, mergeTriggerProps(children.props, forwardedTriggerProps, triggerProps))\n\n const handleBeforeToggle = (e: ToggleEvent) => {\n if (e.newState === 'open' && dismissed) {\n e.preventDefault()\n }\n }\n\n return (\n <>\n {trigger}\n\n {renderPortal(\n <div\n className={clsx(\n tooltipClassName,\n 'sui-p2 sui-radius2 sui-position-fixed sui-shadow2 sui-text-body1 sui-text-trim-edge',\n className,\n )}\n style={{\n ...style,\n positionAnchor: `--anchor-${anchorName || id}`,\n }}\n data-ui=\"Tooltip\"\n role=\"tooltip\"\n popover=\"hint\"\n id={id}\n onBeforeToggle={handleBeforeToggle}\n {...rest}\n >\n {content}\n </div>,\n isClient,\n portal,\n )}\n </>\n )\n}\n\n/** @beta */\nexport const Tooltip = Object.assign(TooltipRoot, {\n forwardsTriggerProps: true,\n}) as typeof TooltipRoot\n\nexport type {TooltipProps}\n","import type {ElementType} from 'react'\n\nimport type {Polymorphic} from '../../types/Polymorphic'\nimport type {PropDef} from '../../types/PropDef'\n\n/** @public */\nexport type TooltipGroupProps<T extends ElementType = 'div'> = Polymorphic<\n T,\n {\n /**\n * HTML element to render.\n */\n as?: T\n }\n>\n\nexport const tooltipGroupProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n}\n","import clsx from 'clsx'\nimport {type ElementType, useRef, useState} from 'react'\n\nimport {getProps} from '../../utils/getProps'\nimport {suffixClassName} from '../../utils/suffixClassName'\nimport {type TooltipGroupProps, tooltipGroupProps} from './tooltipGroup.props'\n\nconst tooltipGroupClassName = suffixClassName('sui-TooltipGroup')\n\n/** @public */\nexport function TooltipGroup<T extends ElementType = 'div'>(props: TooltipGroupProps<T>) {\n const {as, children, className, style, ...rest} = getProps(props, tooltipGroupProps)\n const Component = as || 'div'\n const ref = useRef<HTMLElement>(null)\n const [isActive, setIsActive] = useState(false)\n\n const handleTransitionEnd = (e: TransitionEvent) => {\n const tooltip = (e.target as Element).closest('[data-ui=\"Tooltip\"]')\n\n if (!tooltip) {\n return\n }\n\n if (e.propertyName === 'opacity' && window.getComputedStyle(tooltip).opacity !== '0') {\n setIsActive(true)\n }\n }\n\n const handleMouseLeave = () => {\n setIsActive(false)\n }\n\n const handleBlur = (e: FocusEvent) => {\n if (ref.current && ref.current.contains(e.relatedTarget as Node)) {\n return\n }\n\n setIsActive(false)\n }\n\n return (\n <Component\n className={clsx(tooltipGroupClassName, className)}\n style={{\n ...style,\n ...(isActive && {\n '--tooltip-delay-group': '0ms',\n }),\n }}\n data-ui=\"TooltipGroup\"\n ref={ref}\n onTransitionEnd={handleTransitionEnd}\n onMouseLeave={handleMouseLeave}\n onBlur={handleBlur}\n {...rest}\n >\n {children}\n </Component>\n )\n}\n\nexport type {TooltipGroupProps}\n"],"mappings":";;;;;;;;;;;AAaA,SAAgB,SACd,gBACA,UACgB;CAChB,IAAM,EAAC,mBAAmB,gBAAe,sBAAsB,gBAAgB,QAAQ,GACjF,YAA4B,CAAC,GAC/B,YA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