@brosco/ui 0.0.13 → 0.0.15
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/_css/globals.css +8 -0
- package/dist/_css/variables.css +3 -0
- package/dist/button/button-BuVpJ3KR.js +9 -0
- package/dist/button/button-D8AICVq0.css +1 -0
- package/dist/button/button.d.ts +7 -2
- package/dist/button/index.js +2 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -0
- package/dist/input/index.d.ts +1 -0
- package/dist/input/index.js +2 -0
- package/dist/input/input-BkZq7fEa.js +8 -0
- package/dist/input/input-Ditq2Ypm.css +1 -0
- package/dist/input/input.d.ts +3 -0
- package/package.json +14 -6
- package/dist/brosco-ui.js +0 -9
- package/dist/button/button.types.d.ts +0 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Button as e } from "@base-ui/react";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import './button-D8AICVq0.css';var n = { wrapper: "_wrapper_hnfn3_3" }, r = ({ children: r, ...i }) => /* @__PURE__ */ t(e, {
|
|
4
|
+
className: n.wrapper,
|
|
5
|
+
...i,
|
|
6
|
+
children: r
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._wrapper_hnfn3_3{color:#ff0;background-color:red;padding:30px}
|
package/dist/button/button.d.ts
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
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
|
+
isPending?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const Button: ({ children, ...props }: ButtonProps) => import("react").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./button";
|
|
2
|
+
export * from "./input";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./input";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Input as e } from "@base-ui/react";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import './input-Ditq2Ypm.css';var r = { wrapper: "_wrapper_sdmuq_3" }, i = (i) => /* @__PURE__ */ n("label", { children: ["label ", /* @__PURE__ */ t(e, {
|
|
4
|
+
className: r.wrapper,
|
|
5
|
+
...i
|
|
6
|
+
})] });
|
|
7
|
+
//#endregion
|
|
8
|
+
export { i as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._wrapper_sdmuq_3{background-color:green}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brosco/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -8,14 +8,21 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
12
|
},
|
|
13
|
-
"./
|
|
13
|
+
"./button": {
|
|
14
|
+
"types": "./dist/button/index.d.ts",
|
|
15
|
+
"import": "./dist/button/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./input": {
|
|
18
|
+
"types": "./dist/input/index.d.ts",
|
|
19
|
+
"import": "./dist/input/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./globals.css": "./dist/_css/globals.css"
|
|
14
22
|
},
|
|
15
|
-
"types": "./dist/index.d.ts",
|
|
16
23
|
"scripts": {
|
|
17
24
|
"dev": "vite",
|
|
18
|
-
"build": "vite build && tsc -p tsconfig.build.json",
|
|
25
|
+
"build": "vite build && tsc -p tsconfig.build.json && node scripts/copy-css.mjs",
|
|
19
26
|
"lint": "eslint .",
|
|
20
27
|
"preview": "vite preview",
|
|
21
28
|
"format": "prettier --write \"**/*.{js,ts,jsx,tsx,md,mdx,mjs,css,json}\"",
|
|
@@ -41,6 +48,7 @@
|
|
|
41
48
|
"prettier-plugin-tailwindcss": "^0.8.1",
|
|
42
49
|
"typescript": "^5.9.3",
|
|
43
50
|
"typescript-eslint": "^8.69.0",
|
|
44
|
-
"vite": "^8.3.0"
|
|
51
|
+
"vite": "^8.3.0",
|
|
52
|
+
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
45
53
|
}
|
|
46
54
|
}
|
package/dist/brosco-ui.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Button as e } from "@base-ui/react/button";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
//#region src/button/button.tsx
|
|
4
|
-
var n = ({ children: n, qwerty: r, ...i }) => /* @__PURE__ */ t(e, {
|
|
5
|
-
...i,
|
|
6
|
-
children: r || n
|
|
7
|
-
});
|
|
8
|
-
//#endregion
|
|
9
|
-
export { n as Button };
|