@sanity/ui 5.0.0-alpha.17 → 5.0.0-alpha.19

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 CHANGED
@@ -846,6 +846,47 @@ interface SwitchProps extends React.ComponentProps<'input'>, MarginProps {
846
846
  }
847
847
  /** @beta */
848
848
  export declare function Switch(props: SwitchProps): import("react").JSX.Element;
849
+ /** @public */
850
+ interface TabsProps extends React.ComponentProps<'div'> {
851
+ /** The `value` of the active Tabs.Tab */
852
+ value: string;
853
+ /** An updater function to set `value` - will be invoked with the `value` of the selected Tabs.Tab */
854
+ onValueChange: (value: string) => void;
855
+ }
856
+ type TabsListLabelProps = {
857
+ 'aria-labelledby': string;
858
+ 'aria-label'?: never;
859
+ } | {
860
+ 'aria-label': string;
861
+ 'aria-labelledby'?: never;
862
+ };
863
+ /** @public */
864
+ type TabsListProps = Omit<React.ComponentProps<'div'>, 'id' | 'role'> & TabsListLabelProps;
865
+ /** @public */
866
+ interface TabProps extends Omit<React.ComponentProps<'button'>, 'aria-disabled' | 'disabled' | 'id' | 'role'>, ToneProps {
867
+ /** Optional icon for the tab */
868
+ icon?: React.ElementType | React.ReactNode;
869
+ /** Text label to display in the tab */
870
+ label: string;
871
+ /** Unique string used to identify this tab and its matching Tabs.Panel */
872
+ value: string;
873
+ }
874
+ /** @public */
875
+ interface TabsPanelProps extends Omit<React.ComponentProps<'div'>, 'id' | 'role'>, LayoutProps {
876
+ /** Unique string used to identify this panel and its matching Tabs.Tab */
877
+ value: string;
878
+ }
879
+ declare function TabsRoot({ value, onValueChange, ...props }: TabsProps): import("react").JSX.Element;
880
+ declare namespace TabsRoot {
881
+ var displayName: string;
882
+ var List: typeof TabsList;
883
+ var Tab: ({ value, tone, ...props }: TabProps) => import("react").JSX.Element;
884
+ var Panel: typeof TabPanel;
885
+ }
886
+ declare function TabsList(props: TabsListProps): import("react").JSX.Element;
887
+ declare function TabPanel({ value, ...props }: TabsPanelProps): import("react").JSX.Element;
888
+ /** @public */
889
+ export declare const Tabs: typeof TabsRoot;
849
890
  declare const TEXT_SIZE: readonly [0, 1, 2, 3, 4];
850
891
  /** @public */
851
892
  type TextSize = (typeof TEXT_SIZE)[number];
@@ -950,5 +991,5 @@ interface VisuallyHiddenProps<T extends React.ElementType = 'span'> {
950
991
  export declare function VisuallyHidden<T extends ElementType = 'span'>(props: VisuallyHiddenProps<T> & Omit<ComponentPropsWithRef<T>, keyof VisuallyHiddenProps<T>>): import("react").JSX.Element;
951
992
  /** @public */
952
993
  export declare function useIsClient(): boolean;
953
- export type { AlignItems, AvatarCounterProps, AvatarProps, AvatarStackProps, BadgeProps, BoxProps, ButtonProps, CardProps, CheckboxProps, CodeProps, CodeSize, ContainerProps, ContainerSize, Density, DialogProps, DisplayBlock, DisplayFlex, DisplayGrid, DividerProps, EyebrowProps, EyebrowSize, FlexDirection, FlexParentProps, FlexProps, FlexWrap, FontWeight, GapProps, GridAutoFlow, GridParentProps, GridProps, HStackProps, HeadingProps, HeadingSize, HotkeysProps, IconButtonProps, IconProps, IconSize, IndicatorProps, IndicatorStackProps, InlineProps, JustifyContent, KBDProps, LabelProps, LayoutProps, LinkProps, ListButtonItemProps, ListItemProps, ListItemTextProps, ListProps, MarginProps, Overflow, PaddingProps, Placement, PlacementProps, PopoverProps, Position, PressAreaProps, RadioProps, Radius, Responsive, SelectProps, Shadow, SkipToContentProps, Space, SpaceAuto, SpaceAutoNegative, SpaceInherit, SpinnerProps, SwitchProps, TextAlign, TextAreaProps, TextInputProps, TextProps, TextSize, Tone, TooltipGroupProps, TooltipProps, TypographyProps, VStackProps, VisuallyHiddenProps };
994
+ export type { AlignItems, AvatarCounterProps, AvatarProps, AvatarStackProps, BadgeProps, BoxProps, ButtonProps, CardProps, CheckboxProps, CodeProps, CodeSize, ContainerProps, ContainerSize, Density, DialogProps, DisplayBlock, DisplayFlex, DisplayGrid, DividerProps, EyebrowProps, EyebrowSize, FlexDirection, FlexParentProps, FlexProps, FlexWrap, FontWeight, GapProps, GridAutoFlow, GridParentProps, GridProps, HStackProps, HeadingProps, HeadingSize, HotkeysProps, IconButtonProps, IconProps, IconSize, IndicatorProps, IndicatorStackProps, InlineProps, JustifyContent, KBDProps, LabelProps, LayoutProps, LinkProps, ListButtonItemProps, ListItemProps, ListItemTextProps, ListProps, MarginProps, Overflow, PaddingProps, Placement, PlacementProps, PopoverProps, Position, PressAreaProps, RadioProps, Radius, Responsive, SelectProps, Shadow, SkipToContentProps, Space, SpaceAuto, SpaceAutoNegative, SpaceInherit, SpinnerProps, SwitchProps, TabProps, TabsListProps, TabsPanelProps, TabsProps, TextAlign, TextAreaProps, TextInputProps, TextProps, TextSize, Tone, TooltipGroupProps, TooltipProps, TypographyProps, VStackProps, VisuallyHiddenProps };
954
995
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/Avatar.ts","../src/types/Responsive.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/Tone.ts","../src/props/tone.ts","../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/props/height.ts","../src/types/Space.ts","../src/props/margin.ts","../src/types/Overflow.ts","../src/props/overflow.ts","../src/props/padding.ts","../src/types/Position.ts","../src/props/position.ts","../src/types/Shadow.ts","../src/props/shadow.ts","../src/props/width.ts","../src/props/zIndex.ts","../src/props/layout.ts","../src/types/Display.ts","../src/components/box/box.props.ts","../src/components/box/Box.tsx","../src/types/Button.ts","../src/types/Interactive.ts","../src/components/button/button.props.ts","../src/components/button/Button.tsx","../src/types/Density.ts","../src/components/card/card.props.ts","../src/components/card/Card.tsx","../src/components/checkbox/checkbox.props.ts","../src/components/checkbox/Checkbox.tsx","../src/types/Code.ts","../src/types/FontWeight.ts","../src/types/TextAlign.ts","../src/props/typography.ts","../src/components/code/code.props.ts","../src/components/code/Code.tsx","../src/types/Container.ts","../src/components/container/container.props.ts","../src/components/container/Container.tsx","../src/components/dialog/dialog.props.ts","../src/components/dialog/Dialog.tsx","../src/components/divider/divider.props.ts","../src/components/divider/Divider.tsx","../src/types/Eyebrow.ts","../src/components/eyebrow/eyebrow.props.ts","../src/components/eyebrow/Eyebrow.tsx","../src/types/Flex.ts","../src/props/flexParent.ts","../src/props/gap.ts","../src/components/flex/flex.props.ts","../src/components/flex/Flex.tsx","../src/types/Grid.ts","../src/props/gridParent.ts","../src/components/grid/grid.props.ts","../src/components/grid/Grid.tsx","../src/components/h-stack/hStack.props.ts","../src/components/h-stack/HStack.tsx","../src/types/Heading.ts","../src/components/heading/heading.props.ts","../src/components/heading/Heading.tsx","../src/components/hotkeys/hotkeys.props.ts","../src/components/hotkeys/Hotkeys.tsx","../src/types/Icon.ts","../src/components/icon/icon.props.ts","../src/components/icon/Icon.tsx","../src/components/icon-button/iconButton.props.ts","../src/components/icon-button/IconButton.tsx","../src/components/indicator/indicator.props.ts","../src/components/indicator/Indicator.tsx","../src/components/indicator-stack/indicatorStack.props.ts","../src/components/indicator-stack/IndicatorStack.tsx","../src/components/inline/inline.props.ts","../src/components/inline/Inline.tsx","../src/components/kbd/kbd.props.ts","../src/components/kbd/KBD.tsx","../src/components/label/label.props.ts","../src/components/label/Label.tsx","../src/components/link/link.props.ts","../src/components/link/Link.tsx","../src/types/List.ts","../src/components/list/list.props.ts","../src/components/list/List.tsx","../src/types/Placement.ts","../src/props/placement.ts","../src/components/popover/popover.props.ts","../src/components/popover/Popover.tsx","../src/components/press-area/pressArea.props.ts","../src/components/press-area/PressArea.tsx","../src/components/radio/radio.props.ts","../src/components/radio/Radio.tsx","../src/types/FormElement.ts","../src/props/formElement.ts","../src/components/select/select.props.ts","../src/components/select/Select.tsx","../src/components/skip-to-content/skipToContent.props.ts","../src/components/skip-to-content/SkipToContent.tsx","../src/components/spinner/spinner.props.ts","../src/components/spinner/Spinner.tsx","../src/components/switch/switch.props.ts","../src/components/switch/Switch.tsx","../src/types/Text.ts","../src/components/text/text.props.ts","../src/components/text/Text.tsx","../src/components/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","../src/components/v-stack/vStack.props.ts","../src/components/v-stack/VStack.tsx","../src/components/visually-hidden/visuallyHidden.props.ts","../src/components/visually-hidden/VisuallyHidden.tsx","../src/hooks/useIsClient.ts"],"mappings":";cAAa;KACD,qBAAqB;cAEpB;KAUD,sBAAsB;;KCZtB,WAAW,KACnB,WAEE,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;;;UCF3C,oBAAoB,MAAM;;EAEzC,QAAQ;;EAER;;EAEA,OAAO,WAAW;;EAElB;;;wBCJc,SAAQ,OAAgB,SAAa,SAAQ,8BAAW,IAAA;;UCLvD,2BAA2B,MAAM;;EAEhD;;EAEA,OAAO;;;wBCAO,gBAAe,SAAa,SAAQ,qCAAkB,IAAA;;UCNrD,yBAAyB,MAAM;;EAE9C;;EAEA,OAAO;;;wBCIO,cAAa,SAAa,SAAQ,mCAAgB,IAAA;cCZrD;cACA;;KAED,eAAe;KACf,0BAA0B;KCD1B;EACV,OAAO;;KAWG;EACV,OAAO;;;UCZQ,WAAW,UAAU,MAAM,8BAA8B;;;;EAIxE,KAAK;;;;EAIL,YAAY,MAAM,cAAc,MAAM;;;;EAItC;;;wBCJc,MAAM,UAAU,wBAC9B,SACG,SACF,WAAW,KAAK,KAAK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,wBAAwB;;UAGjD,uBACP,KAAK,MAAM,kCAAkC;;;;;EAKrD;;;;EAIA,OAAO;;;wBCxBO,YACd,SACA,UACA,SACG,SACF,iCAAc,IAAA;;UCVA,qBACP,KAAK,MAAM,gDAAgD;;;;EAInE,aAAa,MAAM;;;;EAInB,UAAU,MAAM,aAAa;;;;EAI7B,UAAU,MAAM;;;;EAIhB;;iBCTO,cACP,cACG,SACF;EACD,eAAe;oBAChB,IAAA;;qBA2EY,gBAEA;;UC3FI,kBAAkB,UAAU,MAAM;;;;EAIjD,KAAK;;;wBCGS,aAAa,UAAU,qBACrC,OAAO,kBAAkB,KAAK,KAAK,sBAAsB,UAAU,kBAAkB,sBAAG,IAAA;;UCRzE,YAAY,UAAU,MAAM,6BAA6B,KACxE,UAAU;;wBCOI,OAAO,UAAU,uBAC/B,cACG,SACF,YAAY,KAAK,KAAK,sBAAsB,UAAU,YAAY,sBAAG,IAAA;;UCXvD,oBAAoB,UAAU,MAAM;;;;EAInD,KAAK;;;;EAIL;;;wBCDc,eAAe,UAAU,sBACvC,OAAO,oBAAoB,KAAK,KAAK,sBAAsB,UAAU,oBAAoB,sBAAG,IAAA;;wBCR9E"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/Avatar.ts","../src/types/Responsive.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/Tone.ts","../src/props/tone.ts","../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/props/height.ts","../src/types/Space.ts","../src/props/margin.ts","../src/types/Overflow.ts","../src/props/overflow.ts","../src/props/padding.ts","../src/types/Position.ts","../src/props/position.ts","../src/types/Shadow.ts","../src/props/shadow.ts","../src/props/width.ts","../src/props/zIndex.ts","../src/props/layout.ts","../src/types/Display.ts","../src/components/box/box.props.ts","../src/components/box/Box.tsx","../src/types/Button.ts","../src/types/Interactive.ts","../src/components/button/button.props.ts","../src/components/button/Button.tsx","../src/types/Density.ts","../src/components/card/card.props.ts","../src/components/card/Card.tsx","../src/components/checkbox/checkbox.props.ts","../src/components/checkbox/Checkbox.tsx","../src/types/Code.ts","../src/types/FontWeight.ts","../src/types/TextAlign.ts","../src/props/typography.ts","../src/components/code/code.props.ts","../src/components/code/Code.tsx","../src/types/Container.ts","../src/components/container/container.props.ts","../src/components/container/Container.tsx","../src/components/dialog/dialog.props.ts","../src/components/dialog/Dialog.tsx","../src/components/divider/divider.props.ts","../src/components/divider/Divider.tsx","../src/types/Eyebrow.ts","../src/components/eyebrow/eyebrow.props.ts","../src/components/eyebrow/Eyebrow.tsx","../src/types/Flex.ts","../src/props/flexParent.ts","../src/props/gap.ts","../src/components/flex/flex.props.ts","../src/components/flex/Flex.tsx","../src/types/Grid.ts","../src/props/gridParent.ts","../src/components/grid/grid.props.ts","../src/components/grid/Grid.tsx","../src/components/h-stack/hStack.props.ts","../src/components/h-stack/HStack.tsx","../src/types/Heading.ts","../src/components/heading/heading.props.ts","../src/components/heading/Heading.tsx","../src/components/hotkeys/hotkeys.props.ts","../src/components/hotkeys/Hotkeys.tsx","../src/types/Icon.ts","../src/components/icon/icon.props.ts","../src/components/icon/Icon.tsx","../src/components/icon-button/iconButton.props.ts","../src/components/icon-button/IconButton.tsx","../src/components/indicator/indicator.props.ts","../src/components/indicator/Indicator.tsx","../src/components/indicator-stack/indicatorStack.props.ts","../src/components/indicator-stack/IndicatorStack.tsx","../src/components/inline/inline.props.ts","../src/components/inline/Inline.tsx","../src/components/kbd/kbd.props.ts","../src/components/kbd/KBD.tsx","../src/components/label/label.props.ts","../src/components/label/Label.tsx","../src/components/link/link.props.ts","../src/components/link/Link.tsx","../src/types/List.ts","../src/components/list/list.props.ts","../src/components/list/List.tsx","../src/types/Placement.ts","../src/props/placement.ts","../src/components/popover/popover.props.ts","../src/components/popover/Popover.tsx","../src/components/press-area/pressArea.props.ts","../src/components/press-area/PressArea.tsx","../src/components/radio/radio.props.ts","../src/components/radio/Radio.tsx","../src/types/FormElement.ts","../src/props/formElement.ts","../src/components/select/select.props.ts","../src/components/select/Select.tsx","../src/components/skip-to-content/skipToContent.props.ts","../src/components/skip-to-content/SkipToContent.tsx","../src/components/spinner/spinner.props.ts","../src/components/spinner/Spinner.tsx","../src/components/switch/switch.props.ts","../src/components/switch/Switch.tsx","../src/components/tabs/tabs.props.ts","../src/components/tabs/Tabs.tsx","../src/types/Text.ts","../src/components/text/text.props.ts","../src/components/text/Text.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","../src/components/v-stack/vStack.props.ts","../src/components/v-stack/VStack.tsx","../src/components/visually-hidden/visuallyHidden.props.ts","../src/components/visually-hidden/VisuallyHidden.tsx","../src/hooks/useIsClient.ts"],"mappings":";cAAa;KACD,qBAAqB;cAEpB;KAUD,sBAAsB;;KCZtB,WAAW,KACnB,WAEE,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;;;UCF3C,oBAAoB,MAAM;;EAEzC,QAAQ;;EAER;;EAEA,OAAO,WAAW;;EAElB;;;wBCJc,SAAQ,OAAgB,SAAa,SAAQ,8BAAW,IAAA;;UCLvD,2BAA2B,MAAM;;EAEhD;;EAEA,OAAO;;;wBCAO,gBAAe,SAAa,SAAQ,qCAAkB,IAAA;;UCNrD,yBAAyB,MAAM;;EAE9C;;EAEA,OAAO;;;wBCIO,cAAa,SAAa,SAAQ,mC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sB,UAAU,YAAY,sBAAG,IAAA;;UCXvD,oBAAoB,UAAU,MAAM;;;;EAInD,KAAK;;;;EAIL;;;wBCDc,eAAe,UAAU,sBACvC,OAAO,oBAAoB,KAAK,KAAK,sBAAsB,UAAU,oBAAoB,sBAAG,IAAA;;wBCR9E"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { c } from "react/compiler-runtime";
3
3
  import clsx from "clsx";
4
- import { Activity, Children, Suspense, cloneElement, createElement, isValidElement, lazy, useEffect, useId, useRef, useState, useSyncExternalStore } from "react";
4
+ import { Activity, Children, Suspense, cloneElement, createContext, createElement, isValidElement, lazy, useContext, useEffect, useId, useRef, useState, useSyncExternalStore } from "react";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
6
  import { SpinnerIcon } from "@sanity/icons/Spinner";
7
7
  import { CheckmarkIcon } from "@sanity/icons/Checkmark";
@@ -81,7 +81,7 @@ function getCompositeValue(propValue, propDef, key) {
81
81
  return compositeValue;
82
82
  }
83
83
  function suffixClassName(className) {
84
- return `${className}-1271ff`;
84
+ return `${className}-e2bb29`;
85
85
  }
86
86
  const FONT_WEIGHT = [
87
87
  "regular",
@@ -2330,6 +2330,128 @@ function Switch(props) {
2330
2330
  ]
2331
2331
  }), $[16] = T1, $[17] = label, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = t5, $[22] = t6, $[23] = t7, $[24] = t8, $[25] = t9) : t9 = $[25], t9;
2332
2332
  }
2333
+ const tabsProps = { value: { type: "string" } }, tabsListProps = {}, tabProps = {
2334
+ icon: { type: "string" },
2335
+ label: { type: "string" },
2336
+ value: { type: "string" },
2337
+ ...toneProps
2338
+ }, tabsPanelProps = { value: { type: "string" } }, tabsClassName = suffixClassName("sui-Tabs"), TabsContext = createContext(null);
2339
+ function useTabsContext() {
2340
+ let context = useContext(TabsContext);
2341
+ if (!context) throw Error("Tabs.[subcomponents] must be rendered inside the Tabs component");
2342
+ return context;
2343
+ }
2344
+ function getTabId(tabsRootId, value) {
2345
+ return `${tabsRootId}-${value.replace(/\s/g, "-")}-tab`;
2346
+ }
2347
+ function getPanelId(tabsRootId, value) {
2348
+ return `${tabsRootId}-${value.replace(/\s/g, "-")}-panel`;
2349
+ }
2350
+ function TabsRoot(t0) {
2351
+ let $ = c(13), { value, onValueChange, ...props } = t0, { children, className, style, ...rest } = getProps(props, tabsProps), tabsRootId = useId(), t1 = TabsContext, t2;
2352
+ $[0] !== onValueChange || $[1] !== tabsRootId || $[2] !== value ? (t2 = {
2353
+ value,
2354
+ onValueChange,
2355
+ tabsRootId
2356
+ }, $[0] = onValueChange, $[1] = tabsRootId, $[2] = value, $[3] = t2) : t2 = $[3];
2357
+ let t3 = clsx(tabsClassName, className), t4;
2358
+ $[4] !== children || $[5] !== rest || $[6] !== style || $[7] !== t3 ? (t4 = /* @__PURE__ */ jsx("div", {
2359
+ className: t3,
2360
+ style,
2361
+ "data-ui": "Tabs",
2362
+ ...rest,
2363
+ children
2364
+ }), $[4] = children, $[5] = rest, $[6] = style, $[7] = t3, $[8] = t4) : t4 = $[8];
2365
+ let t5;
2366
+ return $[9] !== t1.Provider || $[10] !== t2 || $[11] !== t4 ? (t5 = /* @__PURE__ */ jsx(t1.Provider, {
2367
+ value: t2,
2368
+ children: t4
2369
+ }), $[9] = t1.Provider, $[10] = t2, $[11] = t4, $[12] = t5) : t5 = $[12], t5;
2370
+ }
2371
+ function handleKeyDown(event) {
2372
+ if (event.altKey || event.ctrlKey || event.metaKey) return;
2373
+ let tabsList = event.currentTarget, focusedTab = event.target, tabs = Array.from(tabsList.querySelectorAll("[role=\"tab\"]")), focusedTabIndex = tabs.indexOf(focusedTab);
2374
+ event.key === "ArrowLeft" && (event.preventDefault(), tabs[(focusedTabIndex - 1 + tabs.length) % tabs.length]?.focus()), event.key === "ArrowRight" && (event.preventDefault(), tabs[(focusedTabIndex + 1) % tabs.length]?.focus()), event.key === "Home" && (event.preventDefault(), tabs[0]?.focus()), event.key === "End" && (event.preventDefault(), tabs[tabs.length - 1]?.focus());
2375
+ }
2376
+ function TabsList(props) {
2377
+ let $ = c(12), t0;
2378
+ $[0] === props ? t0 = $[1] : (t0 = getProps(props, tabsListProps), $[0] = props, $[1] = t0);
2379
+ let children, className, rest, style;
2380
+ $[2] === t0 ? (children = $[3], className = $[4], rest = $[5], style = $[6]) : ({children, className, style, ...rest} = t0, $[2] = t0, $[3] = children, $[4] = className, $[5] = rest, $[6] = style);
2381
+ let t1;
2382
+ return $[7] !== children || $[8] !== className || $[9] !== rest || $[10] !== style ? (t1 = /* @__PURE__ */ jsx(HStack, {
2383
+ ...rest,
2384
+ role: "tablist",
2385
+ className,
2386
+ style,
2387
+ "data-ui": "Tabs.List",
2388
+ gap: 1,
2389
+ onKeyDown: handleKeyDown,
2390
+ children
2391
+ }), $[7] = children, $[8] = className, $[9] = rest, $[10] = style, $[11] = t1) : t1 = $[11], t1;
2392
+ }
2393
+ const tabClasses = clsx("sui-display-inline-flex", "sui-align-items-center", "sui-gap1", "sui-px2", "sui-py1", "sui-radius2", "sui-text-body1", "sui-weight-medium");
2394
+ function Tab(t0) {
2395
+ let $ = c(17), { value, tone: t1, ...props } = t0, { icon: IconProp, label, className, style, ...rest } = getProps({
2396
+ tone: t1 === void 0 ? "neutral" : t1,
2397
+ ...props
2398
+ }, tabProps), { tabsRootId, value: contextValue, onValueChange } = useTabsContext(), selected = contextValue === value, t2 = clsx(tabClasses, className), t6;
2399
+ $[0] !== tabsRootId || $[1] !== value ? (t6 = getTabId(tabsRootId, value), $[0] = tabsRootId, $[1] = value, $[2] = t6) : t6 = $[2];
2400
+ let t7;
2401
+ $[3] !== tabsRootId || $[4] !== value ? (t7 = getPanelId(tabsRootId, value), $[3] = tabsRootId, $[4] = value, $[5] = t7) : t7 = $[5];
2402
+ let t8 = selected ? 0 : -1, t9 = (e) => {
2403
+ props.onClick?.(e), onValueChange(value);
2404
+ }, t10 = IconProp && (isValidElement(IconProp) ? IconProp : /* @__PURE__ */ jsx(Icon, {
2405
+ icon: IconProp,
2406
+ marginX: -1,
2407
+ marginY: -2,
2408
+ size: 1
2409
+ })), t11;
2410
+ return $[6] !== label || $[7] !== rest || $[8] !== selected || $[9] !== style || $[10] !== t10 || $[11] !== t2 || $[12] !== t6 || $[13] !== t7 || $[14] !== t8 || $[15] !== t9 ? (t11 = /* @__PURE__ */ jsxs("button", {
2411
+ className: t2,
2412
+ style,
2413
+ ...rest,
2414
+ "data-ui": "Tabs.Tab",
2415
+ type: "button",
2416
+ role: "tab",
2417
+ id: t6,
2418
+ "aria-controls": t7,
2419
+ "aria-selected": selected,
2420
+ tabIndex: t8,
2421
+ onClick: t9,
2422
+ children: [t10, label]
2423
+ }), $[6] = label, $[7] = rest, $[8] = selected, $[9] = style, $[10] = t10, $[11] = t2, $[12] = t6, $[13] = t7, $[14] = t8, $[15] = t9, $[16] = t11) : t11 = $[16], t11;
2424
+ }
2425
+ function TabPanel(t0) {
2426
+ let $ = c(22), t1, value;
2427
+ if ($[0] !== t0) {
2428
+ let { value: t2, ...props } = t0;
2429
+ value = t2, t1 = getProps(props, tabsPanelProps), $[0] = t0, $[1] = t1, $[2] = value;
2430
+ } else t1 = $[1], value = $[2];
2431
+ let children, className, rest, style;
2432
+ $[3] === t1 ? (children = $[4], className = $[5], rest = $[6], style = $[7]) : ({children, className, style, ...rest} = t1, $[3] = t1, $[4] = children, $[5] = className, $[6] = rest, $[7] = style);
2433
+ let { tabsRootId, value: contextValue } = useTabsContext(), t2 = contextValue === value ? "block" : "none", t3;
2434
+ $[8] !== tabsRootId || $[9] !== value ? (t3 = getPanelId(tabsRootId, value), $[8] = tabsRootId, $[9] = value, $[10] = t3) : t3 = $[10];
2435
+ let t4;
2436
+ $[11] !== tabsRootId || $[12] !== value ? (t4 = getTabId(tabsRootId, value), $[11] = tabsRootId, $[12] = value, $[13] = t4) : t4 = $[13];
2437
+ let t5;
2438
+ return $[14] !== children || $[15] !== className || $[16] !== rest || $[17] !== style || $[18] !== t2 || $[19] !== t3 || $[20] !== t4 ? (t5 = /* @__PURE__ */ jsx(Box, {
2439
+ className,
2440
+ style,
2441
+ tabIndex: 0,
2442
+ ...rest,
2443
+ "data-ui": "Tabs.Panel",
2444
+ display: t2,
2445
+ role: "tabpanel",
2446
+ id: t3,
2447
+ "aria-labelledby": t4,
2448
+ children
2449
+ }), $[14] = children, $[15] = className, $[16] = rest, $[17] = style, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = t5) : t5 = $[21], t5;
2450
+ }
2451
+ TabsRoot.displayName = "Tabs";
2452
+ /** @public */
2453
+ const Tabs = TabsRoot;
2454
+ TabsRoot.List = TabsList, TabsRoot.Tab = Tab, TabsRoot.Panel = TabPanel;
2333
2455
  const textAreaProps = {
2334
2456
  autoResize: {
2335
2457
  type: "boolean",
@@ -2472,6 +2594,6 @@ function TooltipGroup(props) {
2472
2594
  children
2473
2595
  }), $[8] = Component, $[9] = children, $[10] = handleBlur, $[11] = handleMouseLeave, $[12] = handleTransitionEnd, $[13] = rest, $[14] = t3, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
2474
2596
  }
2475
- export { Avatar, AvatarCounter, AvatarStack, Badge, Box, Button, Card, Checkbox, Code, Container, Dialog, Divider, Eyebrow, Flex, Grid, HStack, Heading, Hotkeys, Icon, IconButton, Indicator, IndicatorStack, Inline, KBD, Label, Link, List, Popover, PressArea, Radio, Select, SkipToContent, Spinner, Switch, Text, TextArea, TextInput, Tooltip, TooltipGroup, VStack, VisuallyHidden, useIsClient };
2597
+ export { Avatar, AvatarCounter, AvatarStack, Badge, Box, Button, Card, Checkbox, Code, Container, Dialog, Divider, Eyebrow, Flex, Grid, HStack, Heading, Hotkeys, Icon, IconButton, Indicator, IndicatorStack, Inline, KBD, Label, Link, List, Popover, PressArea, Radio, Select, SkipToContent, Spinner, Switch, Tabs, Text, TextArea, TextInput, Tooltip, TooltipGroup, VStack, VisuallyHidden, useIsClient };
2476
2598
 
2477
2599
  //# sourceMappingURL=index.js.map