@brosco/ui 0.0.28 → 0.0.30

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.
@@ -1,2 +1,2 @@
1
1
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial}}}.button--base{box-sizing:border-box;appearance:none;border-style:var(--tw-border-style);color:inherit;font:inherit;justify-content:center;align-items:center;gap:calc(var(--spacing,.25rem) * 2);--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);white-space:nowrap;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));-webkit-user-select:none;user-select:none;background-color:#0000;border-width:0;margin:0;padding:0;display:inline-flex}.button--base:focus-visible{--tw-outline-style:none;outline-style:none}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-border-style:solid}}}.button--base{--color:transparent;--bg:transparent;--bg-hover:var(--bg);--bg-active:var(--bg-hover);--fg:currentColor}.button--primary{--color:var(--primary)}.button--secondary{--color:var(--secondary)}.button--success{--color:var(--success)}.button--danger{--color:var(--danger)}.button--solid{--bg:var(--color);--bg-hover:var(--bg)}@supports (color:color-mix(in lab, red, red)){.button--solid{--bg-hover:color-mix(in oklab, var(--bg) 90%, var(--eclipse) 10%)}}.button--solid{--bg-active:var(--bg)}@supports (color:color-mix(in lab, red, red)){.button--solid{--bg-active:color-mix(in oklab, var(--bg) 80%, var(--eclipse) 20%)}}.button--solid{--fg:var(--color-white)}.button--solid.button--secondary{--bg:var(--color)}@supports (color:color-mix(in lab, red, red)){.button--solid.button--secondary{--bg:color-mix(in oklab, var(--color) 5%, transparent)}}.button--solid.button--secondary{--bg-hover:var(--bg)}@supports (color:color-mix(in lab, red, red)){.button--solid.button--secondary{--bg-hover:color-mix(in oklab, var(--bg) 95%, var(--eclipse) 5%)}}.button--solid.button--secondary{--bg-active:var(--bg)}@supports (color:color-mix(in lab, red, red)){.button--solid.button--secondary{--bg-active:color-mix(in oklab, var(--bg) 90%, var(--eclipse) 10%)}}.button--solid.button--secondary{--fg:var(--color)}.button--bordered,.button--light{--fg:var(--color);--bg-hover:var(--fg)}@supports (color:color-mix(in lab, red, red)){.button--bordered,.button--light{--bg-hover:color-mix(in oklab, var(--fg) 5%, transparent)}}.button--base{justify-content:center;align-items:center;gap:calc(var(--spacing,.25rem) * 2);--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);white-space:nowrap;color:var(--fg);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));-webkit-user-select:none;user-select:none;display:inline-flex}.button--base:focus-visible{--tw-outline-style:none;outline-style:none}.button--base:enabled{cursor:pointer}.button--base:disabled{pointer-events:none;opacity:.5}.button--base:hover{background-color:var(--bg-hover)}.button--base:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y);background-color:var(--bg-active)}.button--base[data-pending=true]{pointer-events:none}.button--solid{background-color:var(--bg)}.button--solid:focus-visible:not([data-pending]){--tw-ring-color:var(--color);--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button--bordered{border-style:var(--tw-border-style);border-width:2px;border-color:var(--fg)}.button--bordered:focus-visible:not([data-pending]){--tw-ring-color:currentcolor;--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button--light{text-underline-offset:6px;text-decoration-line:underline;position:relative}@media (hover:hover){.button--light:hover{text-decoration-line:none}}.button--light:focus-visible:not([data-pending]):after{top:calc(var(--spacing,.25rem) * 2);right:calc(var(--spacing,.25rem) * 3);left:calc(var(--spacing,.25rem) * 3);height:calc(var(--spacing,.25rem) * .5);content:"";background-color:currentColor;position:absolute}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}
@@ -1,3 +1,3 @@
1
- import type { ButtonProps } from "./button.types.ts";
2
1
  import "./styles.css";
3
- export declare const Button: ({ children, icon, ...props }: ButtonProps) => import("react").JSX.Element;
2
+ import type { ButtonProps } from "./types.ts";
3
+ export declare const Button: ({ children, icon, className, variant, color, rounded, size, isIconOnly, fullWidth, isPending, ...props }: ButtonProps) => import("react").JSX.Element;
@@ -0,0 +1,79 @@
1
+ import { Spinner as e } from "../spinner/index.js";
2
+ import { Button as t } from "@base-ui/react";
3
+ import { cn as n } from "cn";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import { tv as a } from "tailwind-variants";
6
+ import './button.css';//#region src/button/variants.ts
7
+ var o = a({
8
+ base: "button--base",
9
+ variants: {
10
+ variant: {
11
+ solid: "button--solid",
12
+ bordered: "button--bordered",
13
+ light: "button--light"
14
+ },
15
+ color: {
16
+ primary: "button--primary",
17
+ secondary: "button--secondary",
18
+ success: "button--success",
19
+ danger: "button--danger"
20
+ },
21
+ rounded: {
22
+ full: "rounded-full",
23
+ lg: "rounded-lg",
24
+ md: "rounded-md",
25
+ sm: "rounded-sm",
26
+ none: "rounded-none"
27
+ },
28
+ size: {
29
+ sm: "h-9 text-sm",
30
+ md: "h-10 text-sm",
31
+ lg: "h-11 text-base"
32
+ },
33
+ isIconOnly: {
34
+ true: "shrink-0",
35
+ false: "px-4"
36
+ },
37
+ fullWidth: { true: "w-full" }
38
+ },
39
+ defaultVariants: {
40
+ variant: "solid",
41
+ color: "primary",
42
+ rounded: "lg",
43
+ size: "md"
44
+ },
45
+ compoundVariants: [
46
+ {
47
+ isIconOnly: !0,
48
+ size: "sm",
49
+ class: "w-9"
50
+ },
51
+ {
52
+ isIconOnly: !0,
53
+ size: "md",
54
+ class: "w-10"
55
+ },
56
+ {
57
+ isIconOnly: !0,
58
+ size: "lg",
59
+ class: "w-11"
60
+ }
61
+ ]
62
+ }), s = ({ children: a, icon: s, className: c, variant: l, color: u, rounded: d, size: f, isIconOnly: p, fullWidth: m, isPending: h, ...g }) => {
63
+ let _ = n(o({
64
+ variant: l,
65
+ color: u,
66
+ rounded: d,
67
+ size: f,
68
+ isIconOnly: p,
69
+ fullWidth: m
70
+ }), c);
71
+ return /* @__PURE__ */ i(t, {
72
+ className: _,
73
+ "data-pending": h,
74
+ ...g,
75
+ children: [h ? /* @__PURE__ */ r(e, {}) : s, !p && /* @__PURE__ */ r("span", { children: a })]
76
+ });
77
+ };
78
+ //#endregion
79
+ export { s as t };
@@ -1,2 +1,2 @@
1
1
  export * from "./button";
2
- export * from "./button.types.ts";
2
+ export * from "./types.ts";
@@ -1,10 +1,2 @@
1
- import { Button as e } from "@base-ui/react";
2
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- import './button.css';//#region src/button/button.tsx
4
- var r = ({ children: r, icon: i, ...a }) => /* @__PURE__ */ n(e, {
5
- className: "button--base",
6
- ...a,
7
- children: [i, /* @__PURE__ */ t("span", { children: r })]
8
- });
9
- //#endregion
10
- export { r as Button };
1
+ import { t as e } from "./button.js";
2
+ export { e as Button };
@@ -0,0 +1,8 @@
1
+ import type { ButtonProps as BaseButtonProps } from "@base-ui/react";
2
+ import type { ReactNode } from "react";
3
+ import type { VariantProps } from "tailwind-variants";
4
+ import { variants } from "./variants.ts";
5
+ export type ButtonProps = BaseButtonProps & VariantProps<typeof variants> & {
6
+ icon?: ReactNode;
7
+ isPending?: boolean;
8
+ };
@@ -0,0 +1,94 @@
1
+ export declare const variants: import("tailwind-variants").TVReturnType<{
2
+ variant: {
3
+ solid: "button--solid";
4
+ bordered: "button--bordered";
5
+ light: "button--light";
6
+ };
7
+ color: {
8
+ primary: "button--primary";
9
+ secondary: "button--secondary";
10
+ success: "button--success";
11
+ danger: "button--danger";
12
+ };
13
+ rounded: {
14
+ full: "rounded-full";
15
+ lg: "rounded-lg";
16
+ md: "rounded-md";
17
+ sm: "rounded-sm";
18
+ none: "rounded-none";
19
+ };
20
+ size: {
21
+ sm: "h-9 text-sm";
22
+ md: "h-10 text-sm";
23
+ lg: "h-11 text-base";
24
+ };
25
+ isIconOnly: {
26
+ true: "shrink-0";
27
+ false: "px-4";
28
+ };
29
+ fullWidth: {
30
+ true: "w-full";
31
+ };
32
+ }, undefined, "button--base", {
33
+ variant: {
34
+ solid: "button--solid";
35
+ bordered: "button--bordered";
36
+ light: "button--light";
37
+ };
38
+ color: {
39
+ primary: "button--primary";
40
+ secondary: "button--secondary";
41
+ success: "button--success";
42
+ danger: "button--danger";
43
+ };
44
+ rounded: {
45
+ full: "rounded-full";
46
+ lg: "rounded-lg";
47
+ md: "rounded-md";
48
+ sm: "rounded-sm";
49
+ none: "rounded-none";
50
+ };
51
+ size: {
52
+ sm: "h-9 text-sm";
53
+ md: "h-10 text-sm";
54
+ lg: "h-11 text-base";
55
+ };
56
+ isIconOnly: {
57
+ true: "shrink-0";
58
+ false: "px-4";
59
+ };
60
+ fullWidth: {
61
+ true: "w-full";
62
+ };
63
+ }, undefined, import("tailwind-variants").TVReturnTypeLike<{
64
+ variant: {
65
+ solid: "button--solid";
66
+ bordered: "button--bordered";
67
+ light: "button--light";
68
+ };
69
+ color: {
70
+ primary: "button--primary";
71
+ secondary: "button--secondary";
72
+ success: "button--success";
73
+ danger: "button--danger";
74
+ };
75
+ rounded: {
76
+ full: "rounded-full";
77
+ lg: "rounded-lg";
78
+ md: "rounded-md";
79
+ sm: "rounded-sm";
80
+ none: "rounded-none";
81
+ };
82
+ size: {
83
+ sm: "h-9 text-sm";
84
+ md: "h-10 text-sm";
85
+ lg: "h-11 text-base";
86
+ };
87
+ isIconOnly: {
88
+ true: "shrink-0";
89
+ false: "px-4";
90
+ };
91
+ fullWidth: {
92
+ true: "w-full";
93
+ };
94
+ }, undefined>>;
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { Button as e } from "./button/index.js";
2
- import { Spinner as t } from "./spinner/index.js";
3
- export { e as Button, t as Spinner };
1
+ import { Spinner as e } from "./spinner/index.js";
2
+ import { t } from "./button/button.js";
3
+ export { t as Button, e as Spinner };
@@ -1,7 +1,7 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { cn as t } from "cn";
1
+ import { cn as e } from "cn";
2
+ import { jsx as t } from "react/jsx-runtime";
3
3
  //#region src/spinner/spinner.tsx
4
- var n = ({ className: n, size: r = 24 }) => /* @__PURE__ */ e("svg", {
4
+ var n = ({ className: n, size: r = 24 }) => /* @__PURE__ */ t("svg", {
5
5
  stroke: "currentColor",
6
6
  fill: "currentColor",
7
7
  strokeWidth: "0",
@@ -10,8 +10,8 @@ var n = ({ className: n, size: r = 24 }) => /* @__PURE__ */ e("svg", {
10
10
  height: r,
11
11
  width: r,
12
12
  xmlns: "http://www.w3.org/2000/svg",
13
- className: t("animate-spin", n),
14
- children: /* @__PURE__ */ e("path", { d: "M16 8c-0.020-1.045-0.247-2.086-0.665-3.038-0.417-0.953-1.023-1.817-1.766-2.53s-1.624-1.278-2.578-1.651c-0.953-0.374-1.978-0.552-2.991-0.531-1.013 0.020-2.021 0.24-2.943 0.646-0.923 0.405-1.758 0.992-2.449 1.712s-1.237 1.574-1.597 2.497c-0.361 0.923-0.533 1.914-0.512 2.895 0.020 0.981 0.234 1.955 0.627 2.847 0.392 0.892 0.961 1.7 1.658 2.368s1.523 1.195 2.416 1.543c0.892 0.348 1.851 0.514 2.799 0.493 0.949-0.020 1.89-0.227 2.751-0.608 0.862-0.379 1.642-0.929 2.287-1.604s1.154-1.472 1.488-2.335c0.204-0.523 0.342-1.069 0.415-1.622 0.019 0.001 0.039 0.002 0.059 0.002 0.552 0 1-0.448 1-1 0-0.028-0.001-0.056-0.004-0.083h0.004zM14.411 10.655c-0.367 0.831-0.898 1.584-1.55 2.206s-1.422 1.112-2.254 1.434c-0.832 0.323-1.723 0.476-2.608 0.454-0.884-0.020-1.759-0.215-2.56-0.57-0.801-0.354-1.526-0.867-2.125-1.495s-1.071-1.371-1.38-2.173c-0.31-0.801-0.457-1.66-0.435-2.512s0.208-1.694 0.551-2.464c0.342-0.77 0.836-1.468 1.441-2.044s1.321-1.029 2.092-1.326c0.771-0.298 1.596-0.438 2.416-0.416s1.629 0.202 2.368 0.532c0.74 0.329 1.41 0.805 1.963 1.387s0.988 1.27 1.272 2.011c0.285 0.74 0.418 1.532 0.397 2.32h0.004c-0.002 0.027-0.004 0.055-0.004 0.083 0 0.516 0.39 0.94 0.892 0.994-0.097 0.544-0.258 1.075-0.481 1.578z" })
13
+ className: e("animate-spin", n),
14
+ children: /* @__PURE__ */ t("path", { d: "M16 8c-0.020-1.045-0.247-2.086-0.665-3.038-0.417-0.953-1.023-1.817-1.766-2.53s-1.624-1.278-2.578-1.651c-0.953-0.374-1.978-0.552-2.991-0.531-1.013 0.020-2.021 0.24-2.943 0.646-0.923 0.405-1.758 0.992-2.449 1.712s-1.237 1.574-1.597 2.497c-0.361 0.923-0.533 1.914-0.512 2.895 0.020 0.981 0.234 1.955 0.627 2.847 0.392 0.892 0.961 1.7 1.658 2.368s1.523 1.195 2.416 1.543c0.892 0.348 1.851 0.514 2.799 0.493 0.949-0.020 1.89-0.227 2.751-0.608 0.862-0.379 1.642-0.929 2.287-1.604s1.154-1.472 1.488-2.335c0.204-0.523 0.342-1.069 0.415-1.622 0.019 0.001 0.039 0.002 0.059 0.002 0.552 0 1-0.448 1-1 0-0.028-0.001-0.056-0.004-0.083h0.004zM14.411 10.655c-0.367 0.831-0.898 1.584-1.55 2.206s-1.422 1.112-2.254 1.434c-0.832 0.323-1.723 0.476-2.608 0.454-0.884-0.020-1.759-0.215-2.56-0.57-0.801-0.354-1.526-0.867-2.125-1.495s-1.071-1.371-1.38-2.173c-0.31-0.801-0.457-1.66-0.435-2.512s0.208-1.694 0.551-2.464c0.342-0.77 0.836-1.468 1.441-2.044s1.321-1.029 2.092-1.326c0.771-0.298 1.596-0.438 2.416-0.416s1.629 0.202 2.368 0.532c0.74 0.329 1.41 0.805 1.963 1.387s0.988 1.27 1.272 2.011c0.285 0.74 0.418 1.532 0.397 2.32h0.004c-0.002 0.027-0.004 0.055-0.004 0.083 0 0.516 0.39 0.94 0.892 0.994-0.097 0.544-0.258 1.075-0.481 1.578z" })
15
15
  });
16
16
  //#endregion
17
17
  export { n as Spinner };
package/dist/styles.css CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
- :root,:host{--color-red-500:oklch(63.7% .237 25.331);--color-green-600:oklch(62.7% .194 149.214);--color-blue-500:oklch(62.3% .214 259.815);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-900:oklch(21% .006 285.885);--color-white:#fff;--animate-spin:spin 1s linear infinite}.animate-spin{animation:var(--animate-spin)}:root{--eclipse:var(--color-zinc-900);--background:var(--color-white);--foreground:var(--eclipse);--muted:var(--color-zinc-500);--primary:var(--color-blue-500);--secondary:var(--eclipse);--success:var(--color-green-600);--danger:var(--color-red-500)}@keyframes spin{to{transform:rotate(360deg)}}
2
+ @layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-500:oklch(63.7% .237 25.331);--color-green-600:oklch(62.7% .194 149.214);--color-blue-500:oklch(62.3% .214 259.815);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-900:oklch(21% .006 285.885);--color-white:#fff;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--animate-spin:spin 1s linear infinite;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.m-4{margin:calc(var(--spacing) * 4)}.flex{display:flex}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-full{width:100%}.shrink-0{flex-shrink:0}.animate-spin{animation:var(--animate-spin)}.gap-4{gap:calc(var(--spacing) * 4)}.rounded{border-radius:.25rem}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-none{border-radius:0}.rounded-sm{border-radius:var(--radius-sm)}.px-4{padding-inline:calc(var(--spacing) * 4)}.font-sans{font-family:var(--font-sans)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}:root{--eclipse:var(--color-zinc-900);--background:var(--color-white);--foreground:var(--eclipse);--muted:var(--color-zinc-500);--primary:var(--color-blue-500);--secondary:var(--eclipse);--success:var(--color-green-600);--danger:var(--color-red-500)}@keyframes spin{to{transform:rotate(360deg)}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brosco/ui",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -25,7 +25,8 @@
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@base-ui/react": "^1.8.0",
28
- "cn": "^0.3.0"
28
+ "cn": "^0.3.0",
29
+ "tailwind-variants": "^3.3.1"
29
30
  },
30
31
  "devDependencies": {
31
32
  "@eslint/js": "^10.0.1",
@@ -1,5 +0,0 @@
1
- import type { ButtonProps as BaseButtonProps } from "@base-ui/react";
2
- import type { ReactNode } from "react";
3
- export type ButtonProps = BaseButtonProps & {
4
- icon?: ReactNode;
5
- };