@agentero/design-system 0.25.3 → 0.26.0
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 +330 -73
- package/mcp/manifests/components.json +293 -6
- package/package.json +5 -1
- package/src/button/button.d.ts +25 -4
- package/src/button/button.js +17 -16
- package/src/input/index.d.ts +2 -0
- package/src/input/index.js +2 -0
- package/src/input/input.d.ts +109 -0
- package/src/input/input.js +35 -0
- package/src/pagination/pagination.js +1 -3
- package/src/table/index.d.ts +1 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import { tv as t } from "tailwind-variants";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/input/input.tsx
|
|
5
|
+
var r = t({
|
|
6
|
+
base: [
|
|
7
|
+
"box-border w-full min-w-0 appearance-none rounded-md px-4 shadow-sm",
|
|
8
|
+
"border border-solid border-border-input-default bg-bg-input-normal text-text-input-normal",
|
|
9
|
+
"placeholder:text-text-input-placeholder placeholder-shown:text-ellipsis",
|
|
10
|
+
"outline-0 -outline-offset-1 outline-[transparent]",
|
|
11
|
+
"transition-[color,box-shadow,outline-color,outline-offset,outline-width] duration-75",
|
|
12
|
+
"focus-visible:border-border-input-focus focus-visible:outline-border-input-focus",
|
|
13
|
+
"focus-visible:outline-[0.125rem] focus-visible:outline-offset-[-0.0625rem]",
|
|
14
|
+
"aria-invalid:border-border-input-destructive",
|
|
15
|
+
"aria-invalid:focus-visible:border-border-input-destructive",
|
|
16
|
+
"aria-invalid:focus-visible:outline-border-input-destructive",
|
|
17
|
+
"disabled:cursor-default disabled:border-border-input-disable disabled:bg-bg-input-disable",
|
|
18
|
+
"disabled:text-text-input-disable disabled:shadow-none",
|
|
19
|
+
"disabled:placeholder:text-text-input-disable"
|
|
20
|
+
],
|
|
21
|
+
variants: { size: {
|
|
22
|
+
sm: "h-8 text-sm",
|
|
23
|
+
md: "h-10 text-sm",
|
|
24
|
+
lg: "h-12 rounded-lg text-base"
|
|
25
|
+
} },
|
|
26
|
+
defaultVariants: { size: "md" }
|
|
27
|
+
}), i = ({ className: t, size: i, ...a }) => /* @__PURE__ */ n("input", {
|
|
28
|
+
"data-slot": "input",
|
|
29
|
+
"data-size": i,
|
|
30
|
+
className: e(r({ size: i }), t),
|
|
31
|
+
...a
|
|
32
|
+
});
|
|
33
|
+
i.displayName = "Input";
|
|
34
|
+
//#endregion
|
|
35
|
+
export { i as Input, r as inputRecipe };
|
|
@@ -17,9 +17,7 @@ var l = o({
|
|
|
17
17
|
"min-w-8 h-8 px-1",
|
|
18
18
|
"border border-solid border-transparent",
|
|
19
19
|
"bg-bg-button-ghost-enable text-text-button-ghost-enable",
|
|
20
|
-
"transition-[background-color,border-color,color
|
|
21
|
-
"motion-safe:active:[transform:scale(0.97)]",
|
|
22
|
-
"motion-safe:active:ease-out-expo",
|
|
20
|
+
"transition-[background-color,border-color,color] duration-150",
|
|
23
21
|
"disabled:pointer-events-none disabled:opacity-30",
|
|
24
22
|
"focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-[0.0625rem] focus-visible:outline-focus-ring-button-primary",
|
|
25
23
|
"hover:not-aria-[current=page]:border-border-button-secondary-enable hover:not-aria-[current=page]:shadow-1",
|
package/src/table/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export declare const Table: {
|
|
|
40
40
|
rounded?: boolean;
|
|
41
41
|
align?: "center" | "start" | "end" | "justify";
|
|
42
42
|
fitContent?: boolean;
|
|
43
|
+
scaleOnPress?: boolean;
|
|
43
44
|
ref?: import('react').Ref<HTMLButtonElement | HTMLAnchorElement>;
|
|
44
45
|
} & import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
45
46
|
asChild?: boolean;
|