@brosco/ui 0.0.24 → 0.0.25
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/dist/button/button.d.ts
CHANGED
package/dist/button/index.js
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Spinner as e } from "../spinner/index.js";
|
|
2
|
+
import { Button as t } from "@base-ui/react";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import '../index/index-DcLtrj_Z.css';//#region src/button/button.tsx
|
|
5
|
+
var i = ({ children: i, icon: a, isPending: o, isIconOnly: s, ...c }) => /* @__PURE__ */ r(t, {
|
|
6
|
+
className: "button--base",
|
|
7
|
+
"data-pending": o,
|
|
8
|
+
"data-icon-only": s,
|
|
9
|
+
...c,
|
|
10
|
+
children: [o ? /* @__PURE__ */ n(e, {}) : a, !s && /* @__PURE__ */ n("span", { children: i })]
|
|
11
|
+
});
|
|
12
|
+
//#endregion
|
|
13
|
+
export { i as Button };
|
|
@@ -0,0 +1,2 @@
|
|
|
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}
|
package/dist/index.js
CHANGED
package/dist/styles.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
-
|
|
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)}}
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Spinner as e } from "../spinner/index.js";
|
|
2
|
-
import { Button as t } from "@base-ui/react";
|
|
3
|
-
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
import './button-D4ZNioAF.css';//#region src/button/button.module.css
|
|
5
|
-
var i = {}, a = ({ children: a, icon: o, isPending: s, isIconOnly: c, ...l }) => /* @__PURE__ */ r(t, {
|
|
6
|
-
className: i.wrapper,
|
|
7
|
-
"data-pending": s,
|
|
8
|
-
"data-icon-only": c,
|
|
9
|
-
...l,
|
|
10
|
-
children: [s ? /* @__PURE__ */ n(e, {}) : o, !c && /* @__PURE__ */ n("span", { children: a })]
|
|
11
|
-
});
|
|
12
|
-
//#endregion
|
|
13
|
-
export { a as t };
|