@agentero/design-system 0.24.0 → 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/mcp/manifests/components.html +653 -11
- package/mcp/manifests/components.json +1 -1
- package/package.json +1 -1
- package/src/tabs/index.d.ts +24 -2
- package/src/tabs/index.js +11 -2
- package/src/tabs/tabs.d.ts +62 -20
- package/src/tabs/tabs.js +7 -7
package/package.json
CHANGED
package/src/tabs/index.d.ts
CHANGED
|
@@ -1,2 +1,24 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type { TabsRootProps, TabsListProps, TabsTriggerProps, TabsContentProps } from './tabs';
|
|
1
|
+
export { tabsRecipe } from './tabs';
|
|
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 {
|
|
2
|
-
|
|
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 };
|
package/src/tabs/tabs.d.ts
CHANGED
|
@@ -106,30 +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
|
+
};
|
|
151
|
+
export type TabsLabelProps = ComponentProps<'span'> & {
|
|
152
|
+
variant?: TabsVariants['variant'];
|
|
153
|
+
};
|
|
112
154
|
/**
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
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
|
+
* ```
|
|
116
172
|
*/
|
|
117
|
-
export declare const
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
displayName: string;
|
|
121
|
-
};
|
|
122
|
-
List: {
|
|
123
|
-
({ className, ...props }: TabsListProps): import("react/jsx-runtime").JSX.Element;
|
|
124
|
-
displayName: string;
|
|
125
|
-
};
|
|
126
|
-
Trigger: {
|
|
127
|
-
({ className, ...props }: TabsTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
128
|
-
displayName: string;
|
|
129
|
-
};
|
|
130
|
-
Content: {
|
|
131
|
-
({ className, ...props }: TabsContentProps): import("react/jsx-runtime").JSX.Element;
|
|
132
|
-
displayName: string;
|
|
133
|
-
};
|
|
173
|
+
export declare const Label: {
|
|
174
|
+
({ className, variant, ...props }: TabsLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
175
|
+
displayName: string;
|
|
134
176
|
};
|
|
135
177
|
export {};
|
package/src/tabs/tabs.js
CHANGED
|
@@ -103,11 +103,11 @@ var f = ({ className: t, ...r }) => {
|
|
|
103
103
|
});
|
|
104
104
|
};
|
|
105
105
|
f.displayName = "Tabs.Content";
|
|
106
|
-
var p = {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
106
|
+
var p = ({ className: t, variant: r, ...a }) => /* @__PURE__ */ n("span", {
|
|
107
|
+
"data-slot": "tabs-label",
|
|
108
|
+
className: e((i(s) ?? o({ variant: r })).trigger(), "pointer-events-none", t),
|
|
109
|
+
...a
|
|
110
|
+
});
|
|
111
|
+
p.displayName = "Tabs.Label";
|
|
112
112
|
//#endregion
|
|
113
|
-
export { p as
|
|
113
|
+
export { f as Content, p as Label, u as List, l as Root, d as Trigger, o as tabsRecipe };
|