@agentero/design-system 0.24.1 → 0.24.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentero/design-system",
3
- "version": "0.24.1",
3
+ "version": "0.24.2",
4
4
  "description": "A React component library built with Tailwind CSS v4 and Radix UI primitives",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -1,2 +1,24 @@
1
- export { Tabs, tabsRecipe } from './tabs';
1
+ export { tabsRecipe } from './tabs';
2
2
  export type { TabsRootProps, TabsListProps, TabsTriggerProps, TabsContentProps, TabsLabelProps } from './tabs';
3
+ export declare const Tabs: {
4
+ Root: {
5
+ ({ className, variant, position, ...props }: import('./tabs').TabsRootProps): import("react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
8
+ List: {
9
+ ({ className, ...props }: import('./tabs').TabsListProps): import("react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
12
+ Trigger: {
13
+ ({ className, ...props }: import('./tabs').TabsTriggerProps): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ Content: {
17
+ ({ className, ...props }: import('./tabs').TabsContentProps): import("react/jsx-runtime").JSX.Element;
18
+ displayName: string;
19
+ };
20
+ Label: {
21
+ ({ className, variant, ...props }: import('./tabs').TabsLabelProps): import("react/jsx-runtime").JSX.Element;
22
+ displayName: string;
23
+ };
24
+ };
package/src/tabs/index.js CHANGED
@@ -1,2 +1,11 @@
1
- import { Tabs as e, tabsRecipe as t } from "./tabs.js";
2
- export { e as Tabs, t as tabsRecipe };
1
+ import { Content as e, Label as t, List as n, Root as r, Trigger as i, tabsRecipe as a } from "./tabs.js";
2
+ //#region src/tabs/index.ts
3
+ var o = {
4
+ Root: r,
5
+ List: n,
6
+ Trigger: i,
7
+ Content: e,
8
+ Label: t
9
+ };
10
+ //#endregion
11
+ export { o as Tabs, a as tabsRecipe };
@@ -106,37 +106,72 @@ export declare const tabsRecipe: import('tailwind-variants').TVReturnType<{
106
106
  }, undefined, unknown, unknown, undefined>>;
107
107
  type TabsVariants = VariantProps<typeof tabsRecipe>;
108
108
  export type TabsRootProps = ComponentProps<typeof TabsPrimitive.Root> & TabsVariants;
109
+ /**
110
+ * Root of a set of tabs, built on Radix UI's Tabs so keyboard nav, roving focus
111
+ * and ARIA come for free. Owns the selected tab (controlled via `value`/
112
+ * `onValueChange` or uncontrolled via `defaultValue`) and wraps `List` and
113
+ * `Content`s. `variant` picks the look — `line` (default) underlines the active
114
+ * tab, `enclosed` renders segmented pills, `button` renders button-like tabs.
115
+ *
116
+ * @summary Root provider for a Tabs group
117
+ *
118
+ * @example
119
+ * ```tsx
120
+ * import { Tabs } from '@agentero/design-system/tabs';
121
+ *
122
+ * <Tabs.Root defaultValue="overview">
123
+ * <Tabs.List>
124
+ * <Tabs.Trigger value="overview">Overview</Tabs.Trigger>
125
+ * <Tabs.Trigger value="activity">Activity</Tabs.Trigger>
126
+ * </Tabs.List>
127
+ * <Tabs.Content value="overview">…</Tabs.Content>
128
+ * <Tabs.Content value="activity">…</Tabs.Content>
129
+ * </Tabs.Root>
130
+ * ```
131
+ */
132
+ export declare const Root: {
133
+ ({ className, variant, position, ...props }: TabsRootProps): import("react/jsx-runtime").JSX.Element;
134
+ displayName: string;
135
+ };
109
136
  export type TabsListProps = ComponentProps<typeof TabsPrimitive.List>;
137
+ export declare const List: {
138
+ ({ className, ...props }: TabsListProps): import("react/jsx-runtime").JSX.Element;
139
+ displayName: string;
140
+ };
110
141
  export type TabsTriggerProps = ComponentProps<typeof TabsPrimitive.Trigger>;
142
+ export declare const Trigger: {
143
+ ({ className, ...props }: TabsTriggerProps): import("react/jsx-runtime").JSX.Element;
144
+ displayName: string;
145
+ };
111
146
  export type TabsContentProps = ComponentProps<typeof TabsPrimitive.Content>;
147
+ export declare const Content: {
148
+ ({ className, ...props }: TabsContentProps): import("react/jsx-runtime").JSX.Element;
149
+ displayName: string;
150
+ };
112
151
  export type TabsLabelProps = ComponentProps<'span'> & {
113
152
  variant?: TabsVariants['variant'];
114
153
  };
115
154
  /**
116
- * Tabs built on Radix UI's Tabs (keyboard nav, roving focus and ARIA come for
117
- * free). Compose `Root` with a `List` of `Trigger`s and matching `Content`s,
118
- * pairing each `Trigger`/`Content` by `value`.
155
+ * Non-interactive heading with the exact look of an inactive `Trigger`: it
156
+ * renders the trigger styles without the active data-state, and
157
+ * `pointer-events-none` keeps the hover styles from firing. Use it when a
158
+ * panel keeps the tab row's visual language but has a single, non-selectable
159
+ * title — a lone tab would announce a selectable control that isn't one.
160
+ * Inside a `Root` it picks up the group's variant; standalone, pass `variant`.
161
+ * It renders a plain `span` — wrap it in a heading element when the title
162
+ * needs heading semantics.
163
+ *
164
+ * @summary Text styled as an inactive tab trigger
165
+ *
166
+ * @example
167
+ * ```tsx
168
+ * <h2>
169
+ * <Tabs.Label>Shared coverages</Tabs.Label>
170
+ * </h2>
171
+ * ```
119
172
  */
120
- export declare const Tabs: {
121
- Root: {
122
- ({ className, variant, position, ...props }: TabsRootProps): import("react/jsx-runtime").JSX.Element;
123
- displayName: string;
124
- };
125
- List: {
126
- ({ className, ...props }: TabsListProps): import("react/jsx-runtime").JSX.Element;
127
- displayName: string;
128
- };
129
- Trigger: {
130
- ({ className, ...props }: TabsTriggerProps): import("react/jsx-runtime").JSX.Element;
131
- displayName: string;
132
- };
133
- Content: {
134
- ({ className, ...props }: TabsContentProps): import("react/jsx-runtime").JSX.Element;
135
- displayName: string;
136
- };
137
- Label: {
138
- ({ className, variant, ...props }: TabsLabelProps): import("react/jsx-runtime").JSX.Element;
139
- displayName: string;
140
- };
173
+ export declare const Label: {
174
+ ({ className, variant, ...props }: TabsLabelProps): import("react/jsx-runtime").JSX.Element;
175
+ displayName: string;
141
176
  };
142
177
  export {};
package/src/tabs/tabs.js CHANGED
@@ -109,12 +109,5 @@ var p = ({ className: t, variant: r, ...a }) => /* @__PURE__ */ n("span", {
109
109
  ...a
110
110
  });
111
111
  p.displayName = "Tabs.Label";
112
- var m = {
113
- Root: l,
114
- List: u,
115
- Trigger: d,
116
- Content: f,
117
- Label: p
118
- };
119
112
  //#endregion
120
- export { m as Tabs, o as tabsRecipe };
113
+ export { f as Content, p as Label, u as List, l as Root, d as Trigger, o as tabsRecipe };