@agentero/design-system 0.26.1 → 0.26.3
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 +7 -61
- package/mcp/manifests/components.json +3 -29
- package/package.json +1 -1
- package/src/button/button.d.ts +3 -24
- package/src/button/button.js +17 -21
- package/src/command/command.js +2 -2
- package/src/table/index.d.ts +0 -1
|
@@ -588,13 +588,13 @@
|
|
|
588
588
|
<header>
|
|
589
589
|
<div class="wrap">
|
|
590
590
|
<h1>Manifest Debugger</h1>
|
|
591
|
-
<div class="summary"><a class="filter-pill all" data-k="all" href="#filter-all">All</a><span class="filter-pill ok" aria-disabled="true">26 components ok</span><span class="filter-pill ok" aria-disabled="true">
|
|
591
|
+
<div class="summary"><a class="filter-pill all" data-k="all" href="#filter-all">All</a><span class="filter-pill ok" aria-disabled="true">26 components ok</span><span class="filter-pill ok" aria-disabled="true">203 stories ok</span></div>
|
|
592
592
|
</div>
|
|
593
593
|
</header>
|
|
594
594
|
<main>
|
|
595
595
|
<div class="wrap">
|
|
596
596
|
<div class="note ok" style="margin-bottom: 16px;">
|
|
597
|
-
Using <code>react-component-meta</code>. Generation took <strong>
|
|
597
|
+
Using <code>react-component-meta</code>. Generation took <strong>4.0s</strong>.
|
|
598
598
|
</div>
|
|
599
599
|
<h2 class="section-title">Components</h2>
|
|
600
600
|
<div class="grid" role="list">
|
|
@@ -2019,9 +2019,9 @@ variant?: "circle" | "square" | "pillow" | "p
|
|
|
2019
2019
|
<div class="title">
|
|
2020
2020
|
<h2><span class="status-dot dot-ok"></span> Button</h2>
|
|
2021
2021
|
<div class="badges">
|
|
2022
|
-
<label for="c-4-components-button-props" class="badge ok as-toggle">
|
|
2022
|
+
<label for="c-4-components-button-props" class="badge ok as-toggle">12 prop types</label>
|
|
2023
2023
|
|
|
2024
|
-
<label for="c-4-components-button-stories" class="badge ok as-toggle">
|
|
2024
|
+
<label for="c-4-components-button-stories" class="badge ok as-toggle">10 stories</label>
|
|
2025
2025
|
|
|
2026
2026
|
|
|
2027
2027
|
</div>
|
|
@@ -2061,7 +2061,7 @@ without Button binding to any particular framework.</div>
|
|
|
2061
2061
|
<div class="note ok">
|
|
2062
2062
|
<div class="row">
|
|
2063
2063
|
<span class="ex-name">Prop types <small>(react-component-meta)</small></span>
|
|
2064
|
-
<span class="badge ok">
|
|
2064
|
+
<span class="badge ok">12 prop types</span>
|
|
2065
2065
|
</div>
|
|
2066
2066
|
<pre><code>Component: src/button/button.tsx::Button</code></pre>
|
|
2067
2067
|
<pre><code>Props:</code></pre>
|
|
@@ -2139,18 +2139,6 @@ ref?: Ref<HTMLButtonElement | HTMLAnchorElement> | undefined
|
|
|
2139
2139
|
*/
|
|
2140
2140
|
rounded?: boolean
|
|
2141
2141
|
|
|
2142
|
-
/**
|
|
2143
|
-
* When `true`, the button dips to 97% while held so the control answers the
|
|
2144
|
-
* pointer instead of only changing color. Defaults to `false`.
|
|
2145
|
-
*
|
|
2146
|
-
* Has no effect with `variant="link"` (scaling bare text with no padding or
|
|
2147
|
-
* background reads as a wobble) or while the button is disabled or loading,
|
|
2148
|
-
* including the `asChild` anchor form, which stays keyboard-focusable and
|
|
2149
|
-
* would otherwise dip on Enter. The dip is gated behind `motion-safe`, so it
|
|
2150
|
-
* disappears under `prefers-reduced-motion`.
|
|
2151
|
-
*/
|
|
2152
|
-
scaleOnPress?: boolean
|
|
2153
|
-
|
|
2154
2142
|
/**
|
|
2155
2143
|
* Control size. Defaults to `'sm'`.
|
|
2156
2144
|
* - `xs` (24px) — dense toolbars, compact inline actions.
|
|
@@ -2198,8 +2186,8 @@ variant?: "link" | "ghost" | "primary" | "sec
|
|
|
2198
2186
|
</div>
|
|
2199
2187
|
<div>Default args playground for Button</div>
|
|
2200
2188
|
<div class="hint">Args-controlled playground. Toggle `variant`, `size`, `status`, `loading`,
|
|
2201
|
-
`disabled`,
|
|
2202
|
-
|
|
2189
|
+
`disabled`, and `rounded` from the Controls panel to explore every visual
|
|
2190
|
+
combination of the Button.</div>
|
|
2203
2191
|
<pre><code>const Default = () => <Button variant="primary" size="sm">{TEXT}</Button>;</code></pre>
|
|
2204
2192
|
</div>
|
|
2205
2193
|
<div class="note ok">
|
|
@@ -2417,48 +2405,6 @@ router. In app code, swap the plain `<a>` below for your framework's L
|
|
|
2417
2405
|
</a>
|
|
2418
2406
|
</Button>
|
|
2419
2407
|
</Row>
|
|
2420
|
-
);</code></pre>
|
|
2421
|
-
</div>
|
|
2422
|
-
<div class="note ok">
|
|
2423
|
-
<div class="row">
|
|
2424
|
-
<span class="ex-name">Pressed</span>
|
|
2425
|
-
<span class="badge ok">story ok</span>
|
|
2426
|
-
</div>
|
|
2427
|
-
<div>Opt-in press feedback via `scaleOnPress`, excluding `link` and disabled</div>
|
|
2428
|
-
<div class="hint">With `scaleOnPress`, a button dips to 97% while held so the control answers
|
|
2429
|
-
the pointer rather than only changing color. Press and hold one below to
|
|
2430
|
-
feel it — the effect is deliberately small, and if a quick click draws the
|
|
2431
|
-
eye it is too strong. It is off by default: pass the prop where the extra
|
|
2432
|
-
feedback is wanted.
|
|
2433
|
-
|
|
2434
|
-
`variant="link"` is excluded even with the prop set: it has no padding or
|
|
2435
|
-
background, so scaling bare text reads as a wobble rather than a button
|
|
2436
|
-
being pushed. Disabled buttons are excluded too, including the `asChild`
|
|
2437
|
-
anchor form, which stays keyboard-focusable and would otherwise dip on
|
|
2438
|
-
Enter. The whole effect is gated behind `motion-safe`, so it disappears
|
|
2439
|
-
under `prefers-reduced-motion`.</div>
|
|
2440
|
-
<pre><code>const Pressed = () => (
|
|
2441
|
-
<Stack>
|
|
2442
|
-
<Row>
|
|
2443
|
-
{NON_LINK_VARIANTS.map(variant => (
|
|
2444
|
-
<Button key={variant} variant={variant} scaleOnPress>
|
|
2445
|
-
Press {variant}
|
|
2446
|
-
</Button>
|
|
2447
|
-
))}
|
|
2448
|
-
</Row>
|
|
2449
|
-
<Row>
|
|
2450
|
-
<Button variant="primary">Opted out stays still</Button>
|
|
2451
|
-
<Button variant="link" scaleOnPress>
|
|
2452
|
-
Link stays still
|
|
2453
|
-
</Button>
|
|
2454
|
-
<Button variant="primary" scaleOnPress disabled>
|
|
2455
|
-
Disabled stays still
|
|
2456
|
-
</Button>
|
|
2457
|
-
<Button asChild variant="secondary" scaleOnPress disabled>
|
|
2458
|
-
<a href="/dashboard">Disabled anchor stays still</a>
|
|
2459
|
-
</Button>
|
|
2460
|
-
</Row>
|
|
2461
|
-
</Stack>
|
|
2462
2408
|
);</code></pre>
|
|
2463
2409
|
</div>
|
|
2464
2410
|
</div>
|
|
@@ -1248,7 +1248,7 @@
|
|
|
1248
1248
|
"displayName": "Button",
|
|
1249
1249
|
"exportName": "Button",
|
|
1250
1250
|
"filePath": "/home/runner/work/design-system/design-system/src/button/button.tsx",
|
|
1251
|
-
"description": "Button is the design system's primary actionable control. Use it for any\ninteraction that triggers behavior, submits a form, or navigates the user.\nBy default Button renders a `<button>`; pass `asChild` to render its single\nchild element as the underlying tag instead — Button merges its styles,\n`className`, `ref`, and props onto whatever the consumer nests. This keeps\nthe design system framework-agnostic: route a plain `<a>`, a Next.js\n`<Link>`, a React Router `<Link>`, or any custom element through the same\nvisual treatment.\n\nPick `variant` to express hierarchy (`primary` for the main CTA,\n`secondary` / `tertiary` for supporting actions, `ghost` for low-emphasis\ninline actions, `link` for text-only actions). Use `status=\"danger\"` for\ndestructive actions and `loading` to block interaction while async work\nresolves
|
|
1251
|
+
"description": "Button is the design system's primary actionable control. Use it for any\ninteraction that triggers behavior, submits a form, or navigates the user.\nBy default Button renders a `<button>`; pass `asChild` to render its single\nchild element as the underlying tag instead — Button merges its styles,\n`className`, `ref`, and props onto whatever the consumer nests. This keeps\nthe design system framework-agnostic: route a plain `<a>`, a Next.js\n`<Link>`, a React Router `<Link>`, or any custom element through the same\nvisual treatment.\n\nPick `variant` to express hierarchy (`primary` for the main CTA,\n`secondary` / `tertiary` for supporting actions, `ghost` for low-emphasis\ninline actions, `link` for text-only actions). Use `status=\"danger\"` for\ndestructive actions and `loading` to block interaction while async work\nresolves.\n\nDo **not** use Button for toggle states (prefer a Switch or ToggleButton),\nfor passive decorative anchors without action intent (use a plain `<a>`),\nor with `variant=\"link\"` when loading or when the button has no text\nchildren — both combinations log a dev-only warning (silent in production).",
|
|
1252
1252
|
"jsDocTags": {
|
|
1253
1253
|
"summary": [
|
|
1254
1254
|
"Primary actionable control; renders a `<button>` or, with `asChild`, any nested element"
|
|
@@ -1513,25 +1513,6 @@
|
|
|
1513
1513
|
}
|
|
1514
1514
|
]
|
|
1515
1515
|
},
|
|
1516
|
-
"scaleOnPress": {
|
|
1517
|
-
"name": "scaleOnPress",
|
|
1518
|
-
"required": false,
|
|
1519
|
-
"type": {
|
|
1520
|
-
"name": "boolean"
|
|
1521
|
-
},
|
|
1522
|
-
"description": "When `true`, the button dips to 97% while held so the control answers the\npointer instead of only changing color. Defaults to `false`.\n\nHas no effect with `variant=\"link\"` (scaling bare text with no padding or\nbackground reads as a wobble) or while the button is disabled or loading,\nincluding the `asChild` anchor form, which stays keyboard-focusable and\nwould otherwise dip on Enter. The dip is gated behind `motion-safe`, so it\ndisappears under `prefers-reduced-motion`.",
|
|
1523
|
-
"defaultValue": null,
|
|
1524
|
-
"parent": {
|
|
1525
|
-
"name": "ButtonBaseProps",
|
|
1526
|
-
"fileName": "src/button/button.tsx"
|
|
1527
|
-
},
|
|
1528
|
-
"declarations": [
|
|
1529
|
-
{
|
|
1530
|
-
"name": "TypeLiteral",
|
|
1531
|
-
"fileName": "src/button/button.tsx"
|
|
1532
|
-
}
|
|
1533
|
-
]
|
|
1534
|
-
},
|
|
1535
1516
|
"ref": {
|
|
1536
1517
|
"name": "ref",
|
|
1537
1518
|
"required": false,
|
|
@@ -1577,7 +1558,7 @@
|
|
|
1577
1558
|
"id": "components-button--default",
|
|
1578
1559
|
"name": "Default",
|
|
1579
1560
|
"snippet": "const Default = () => <Button variant=\"primary\" size=\"sm\">{TEXT}</Button>;",
|
|
1580
|
-
"description": "Args-controlled playground. Toggle `variant`, `size`, `status`, `loading`,\n`disabled`,
|
|
1561
|
+
"description": "Args-controlled playground. Toggle `variant`, `size`, `status`, `loading`,\n`disabled`, and `rounded` from the Controls panel to explore every visual\ncombination of the Button.",
|
|
1581
1562
|
"summary": "Default args playground for Button"
|
|
1582
1563
|
},
|
|
1583
1564
|
{
|
|
@@ -1642,13 +1623,6 @@
|
|
|
1642
1623
|
"snippet": "const AsChild = () => (\n <Row>\n <Button asChild variant=\"primary\">\n <a href=\"/dashboard\">Go to dashboard</a>\n </Button>\n <Button asChild variant=\"secondary\">\n <a href=\"https://agentero.com\" target=\"_blank\" rel=\"noreferrer\">\n Visit Agentero\n </a>\n </Button>\n </Row>\n);",
|
|
1643
1624
|
"description": "`asChild` renders Button's styles on the nested child element rather than\non a `<button>` — the child receives Button's `className`, `ref`, and\nmerged props via Radix's `Slot` primitive. Use it to turn any anchor or\nframework `Link` into a Button without coupling the design system to a\nrouter. In app code, swap the plain `<a>` below for your framework's Link\n(`next/link`, `react-router`, `@tanstack/react-router`, etc.).",
|
|
1644
1625
|
"summary": "`asChild` composes Button's styles onto any element"
|
|
1645
|
-
},
|
|
1646
|
-
{
|
|
1647
|
-
"id": "components-button--pressed",
|
|
1648
|
-
"name": "Pressed",
|
|
1649
|
-
"snippet": "const Pressed = () => (\n <Stack>\n <Row>\n {NON_LINK_VARIANTS.map(variant => (\n <Button key={variant} variant={variant} scaleOnPress>\n Press {variant}\n </Button>\n ))}\n </Row>\n <Row>\n <Button variant=\"primary\">Opted out stays still</Button>\n <Button variant=\"link\" scaleOnPress>\n Link stays still\n </Button>\n <Button variant=\"primary\" scaleOnPress disabled>\n Disabled stays still\n </Button>\n <Button asChild variant=\"secondary\" scaleOnPress disabled>\n <a href=\"/dashboard\">Disabled anchor stays still</a>\n </Button>\n </Row>\n </Stack>\n);",
|
|
1650
|
-
"description": "With `scaleOnPress`, a button dips to 97% while held so the control answers\nthe pointer rather than only changing color. Press and hold one below to\nfeel it — the effect is deliberately small, and if a quick click draws the\neye it is too strong. It is off by default: pass the prop where the extra\nfeedback is wanted.\n\n`variant=\"link\"` is excluded even with the prop set: it has no padding or\nbackground, so scaling bare text reads as a wobble rather than a button\nbeing pushed. Disabled buttons are excluded too, including the `asChild`\nanchor form, which stays keyboard-focusable and would otherwise dip on\nEnter. The whole effect is gated behind `motion-safe`, so it disappears\nunder `prefers-reduced-motion`.",
|
|
1651
|
-
"summary": "Opt-in press feedback via `scaleOnPress`, excluding `link` and disabled"
|
|
1652
1626
|
}
|
|
1653
1627
|
],
|
|
1654
1628
|
"import": "import { Button } from \"@agentero/design-system\";"
|
|
@@ -7287,6 +7261,6 @@
|
|
|
7287
7261
|
},
|
|
7288
7262
|
"meta": {
|
|
7289
7263
|
"docgen": "react-component-meta",
|
|
7290
|
-
"durationMs":
|
|
7264
|
+
"durationMs": 4038
|
|
7291
7265
|
}
|
|
7292
7266
|
}
|
package/package.json
CHANGED
package/src/button/button.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ButtonHTMLAttributes, ReactNode, Ref } from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Style recipe for Button using tailwind-variants. Single-slot recipe whose
|
|
4
4
|
* variants (`variant`, `size`, `status`, `hasOnlyIcon`, `disabled`, `rounded`,
|
|
5
|
-
* `align`, `fitContent
|
|
5
|
+
* `align`, `fitContent`) plus compound variants drive
|
|
6
6
|
* destructive and disabled treatments. All colors route through design-system tokens defined in
|
|
7
7
|
* `themes/base.css`.
|
|
8
8
|
*
|
|
@@ -12,9 +12,6 @@ import { ButtonHTMLAttributes, ReactNode, Ref } from 'react';
|
|
|
12
12
|
* @summary tailwind-variants recipe backing the Button component styles
|
|
13
13
|
*/
|
|
14
14
|
export declare const buttonRecipe: import('tailwind-variants').TVReturnType<{
|
|
15
|
-
scaleOnPress: {
|
|
16
|
-
true: string[];
|
|
17
|
-
};
|
|
18
15
|
variant: {
|
|
19
16
|
primary: string[];
|
|
20
17
|
secondary: string[];
|
|
@@ -50,9 +47,6 @@ export declare const buttonRecipe: import('tailwind-variants').TVReturnType<{
|
|
|
50
47
|
true: string;
|
|
51
48
|
};
|
|
52
49
|
}, undefined, string[], {
|
|
53
|
-
scaleOnPress: {
|
|
54
|
-
true: string[];
|
|
55
|
-
};
|
|
56
50
|
variant: {
|
|
57
51
|
primary: string[];
|
|
58
52
|
secondary: string[];
|
|
@@ -88,9 +82,6 @@ export declare const buttonRecipe: import('tailwind-variants').TVReturnType<{
|
|
|
88
82
|
true: string;
|
|
89
83
|
};
|
|
90
84
|
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
91
|
-
scaleOnPress: {
|
|
92
|
-
true: string[];
|
|
93
|
-
};
|
|
94
85
|
variant: {
|
|
95
86
|
primary: string[];
|
|
96
87
|
secondary: string[];
|
|
@@ -210,17 +201,6 @@ type ButtonBaseProps = {
|
|
|
210
201
|
* its content. Useful for inline actions inside tight containers.
|
|
211
202
|
*/
|
|
212
203
|
fitContent?: boolean;
|
|
213
|
-
/**
|
|
214
|
-
* When `true`, the button dips to 97% while held so the control answers the
|
|
215
|
-
* pointer instead of only changing color. Defaults to `false`.
|
|
216
|
-
*
|
|
217
|
-
* Has no effect with `variant="link"` (scaling bare text with no padding or
|
|
218
|
-
* background reads as a wobble) or while the button is disabled or loading,
|
|
219
|
-
* including the `asChild` anchor form, which stays keyboard-focusable and
|
|
220
|
-
* would otherwise dip on Enter. The dip is gated behind `motion-safe`, so it
|
|
221
|
-
* disappears under `prefers-reduced-motion`.
|
|
222
|
-
*/
|
|
223
|
-
scaleOnPress?: boolean;
|
|
224
204
|
/**
|
|
225
205
|
* Ref forwarded to the underlying element. Typed as a union covering both
|
|
226
206
|
* `<button>` and `<a>` because `asChild` lets consumers render either tag
|
|
@@ -265,8 +245,7 @@ export type ButtonProps = ButtonBaseProps & ButtonHTMLAttributes<HTMLButtonEleme
|
|
|
265
245
|
* `secondary` / `tertiary` for supporting actions, `ghost` for low-emphasis
|
|
266
246
|
* inline actions, `link` for text-only actions). Use `status="danger"` for
|
|
267
247
|
* destructive actions and `loading` to block interaction while async work
|
|
268
|
-
* resolves.
|
|
269
|
-
* dip while held.
|
|
248
|
+
* resolves.
|
|
270
249
|
*
|
|
271
250
|
* Do **not** use Button for toggle states (prefer a Switch or ToggleButton),
|
|
272
251
|
* for passive decorative anchors without action intent (use a plain `<a>`),
|
|
@@ -296,5 +275,5 @@ export type ButtonProps = ButtonBaseProps & ButtonHTMLAttributes<HTMLButtonEleme
|
|
|
296
275
|
* Delete account
|
|
297
276
|
* </Button>
|
|
298
277
|
*/
|
|
299
|
-
export declare const Button: ({ children, asChild, variant, size, status, loading, rounded, align, fitContent,
|
|
278
|
+
export declare const Button: ({ children, asChild, variant, size, status, loading, rounded, align, fitContent, disabled, iconOnly, ref, className, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
300
279
|
export {};
|
package/src/button/button.js
CHANGED
|
@@ -10,7 +10,7 @@ var c = t({
|
|
|
10
10
|
"font-semibold rounded-md cursor-pointer",
|
|
11
11
|
"bg-transparent no-underline",
|
|
12
12
|
"border border-solid border-transparent",
|
|
13
|
-
"transition-[background-color,border-color,color
|
|
13
|
+
"transition-[background-color,border-color,color] duration-150",
|
|
14
14
|
"[-webkit-tap-highlight-color:transparent]",
|
|
15
15
|
"[&_svg]:[flex:0_0_fit-content]",
|
|
16
16
|
"[&_svg_path[fill]]:fill-current",
|
|
@@ -20,7 +20,6 @@ var c = t({
|
|
|
20
20
|
"focus-visible:outline-focus-ring-button-primary"
|
|
21
21
|
],
|
|
22
22
|
variants: {
|
|
23
|
-
scaleOnPress: { true: ["motion-safe:active:[transform:scale(0.97)]", "motion-safe:active:ease-out-expo"] },
|
|
24
23
|
variant: {
|
|
25
24
|
primary: [
|
|
26
25
|
"bg-bg-button-primary-enable border-bg-button-primary-enable",
|
|
@@ -52,8 +51,7 @@ var c = t({
|
|
|
52
51
|
"px-0 underline",
|
|
53
52
|
"[text-underline-offset:var(--text-underline-offset)]",
|
|
54
53
|
"text-text-button-link-enable",
|
|
55
|
-
"[&_svg]:fill-icon-button-link-enable"
|
|
56
|
-
"motion-safe:active:[transform:none]"
|
|
54
|
+
"[&_svg]:fill-icon-button-link-enable"
|
|
57
55
|
]
|
|
58
56
|
},
|
|
59
57
|
size: {
|
|
@@ -64,7 +62,7 @@ var c = t({
|
|
|
64
62
|
},
|
|
65
63
|
status: { danger: "focus-visible:outline-focus-ring-button-destructive" },
|
|
66
64
|
hasOnlyIcon: { true: "aspect-square px-0 min-w-[unset]" },
|
|
67
|
-
disabled: { true: "cursor-not-allowed pointer-events-none
|
|
65
|
+
disabled: { true: "cursor-not-allowed pointer-events-none" },
|
|
68
66
|
rounded: { true: "rounded-full" },
|
|
69
67
|
align: {
|
|
70
68
|
center: "justify-center",
|
|
@@ -240,7 +238,6 @@ var c = t({
|
|
|
240
238
|
}
|
|
241
239
|
],
|
|
242
240
|
defaultVariants: {
|
|
243
|
-
scaleOnPress: !1,
|
|
244
241
|
variant: "primary",
|
|
245
242
|
size: "sm",
|
|
246
243
|
align: "center"
|
|
@@ -249,29 +246,28 @@ var c = t({
|
|
|
249
246
|
"aria-label": "loading",
|
|
250
247
|
role: "status",
|
|
251
248
|
className: e("absolute inset-0 grid place-items-center", "rounded-[inherit] bg-inherit", "before:content-[\"\"] before:block before:size-[1em]", "before:border-2 before:border-solid before:rounded-full", "before:border-current before:border-t-transparent", "before:animate-spin before:[animation-duration:0.5s]")
|
|
252
|
-
}), u = ({ children: t, asChild: u, variant: d, size: f, status: p, loading: m, rounded: h, align: g, fitContent: _,
|
|
253
|
-
let
|
|
254
|
-
process.env.NODE_ENV !== "production" && (m && d === "link" && console.warn("Button with variant link and loading is not supported"),
|
|
255
|
-
let
|
|
249
|
+
}), u = ({ children: t, asChild: u, variant: d, size: f, status: p, loading: m, rounded: h, align: g, fitContent: _, disabled: v, iconOnly: y, ref: b, className: x, ...S }) => {
|
|
250
|
+
let C = u ? !!y : i.toArray(t).every((e) => a(e)), w = v || m;
|
|
251
|
+
process.env.NODE_ENV !== "production" && (m && d === "link" && console.warn("Button with variant link and loading is not supported"), C && d === "link" && console.warn("Button with no text and variant link is not supported. Use it with variant tertiary instead"), u && y && a(t) && i.toArray(t.props.children).some((e) => !a(e)) && console.warn("Button with asChild and iconOnly should only contain icon children; text found inside the wrapper element"));
|
|
252
|
+
let T = e(c({
|
|
256
253
|
variant: d,
|
|
257
254
|
size: f,
|
|
258
|
-
hasOnlyIcon:
|
|
259
|
-
disabled:
|
|
255
|
+
hasOnlyIcon: C,
|
|
256
|
+
disabled: w,
|
|
260
257
|
status: p,
|
|
261
258
|
rounded: h,
|
|
262
259
|
align: g,
|
|
263
|
-
fitContent: _
|
|
264
|
-
|
|
265
|
-
}), S);
|
|
260
|
+
fitContent: _
|
|
261
|
+
}), x);
|
|
266
262
|
return /* @__PURE__ */ r(u ? o : "button", {
|
|
267
263
|
"data-slot": "button",
|
|
268
264
|
...u ? {
|
|
269
|
-
"aria-disabled":
|
|
270
|
-
"data-disabled":
|
|
271
|
-
} : { disabled:
|
|
272
|
-
...
|
|
273
|
-
className:
|
|
274
|
-
ref:
|
|
265
|
+
"aria-disabled": w || void 0,
|
|
266
|
+
"data-disabled": w || void 0
|
|
267
|
+
} : { disabled: w },
|
|
268
|
+
...S,
|
|
269
|
+
className: T,
|
|
270
|
+
ref: b,
|
|
275
271
|
children: [m && /* @__PURE__ */ n(l, {}), u ? /* @__PURE__ */ n(s, { children: t }) : t]
|
|
276
272
|
});
|
|
277
273
|
};
|
package/src/command/command.js
CHANGED
|
@@ -5,8 +5,8 @@ import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
|
5
5
|
import { Command as i } from "cmdk";
|
|
6
6
|
//#region src/command/command.tsx
|
|
7
7
|
var a = t({ slots: {
|
|
8
|
-
root: ["overflow-hidden rounded-md bg-bg-default-base-primary shadow-xl", "border border-border-default-base-
|
|
9
|
-
search: ["flex items-center gap-2 px-4 py-3", "border-b border-border-default-base-
|
|
8
|
+
root: ["overflow-hidden rounded-md bg-bg-default-base-primary shadow-xl", "border border-border-default-base-primary"],
|
|
9
|
+
search: ["flex items-center gap-2 px-4 py-3", "border-b border-border-default-base-primary"],
|
|
10
10
|
searchIcon: "shrink-0 pointer-events-none [&>path]:fill-icon-default-base-tertiary",
|
|
11
11
|
input: ["w-full border-none bg-transparent text-sm text-text-default-base-primary outline-none", "placeholder:text-text-default-base-tertiary"],
|
|
12
12
|
list: ["max-h-65.25 overflow-y-auto rounded-md px-1 py-2 outline-none scroll-py-2", "not-has-[[cmdk-item]]:py-0"],
|
package/src/table/index.d.ts
CHANGED
|
@@ -40,7 +40,6 @@ export declare const Table: {
|
|
|
40
40
|
rounded?: boolean;
|
|
41
41
|
align?: "center" | "start" | "end" | "justify";
|
|
42
42
|
fitContent?: boolean;
|
|
43
|
-
scaleOnPress?: boolean;
|
|
44
43
|
ref?: import('react').Ref<HTMLButtonElement | HTMLAnchorElement>;
|
|
45
44
|
} & import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
46
45
|
asChild?: boolean;
|