wdwh 1.12.19 → 1.12.20
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/components.d.ts +14 -0
- package/components.js +2 -0
- package/index.js +1 -1
- package/package.json +3 -3
package/components.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function Button({
|
|
2
|
+
label,
|
|
3
|
+
children,
|
|
4
|
+
className,
|
|
5
|
+
...props
|
|
6
|
+
}: ButtonProps): import("react").JSX.Element;
|
|
7
|
+
type ButtonProps = {
|
|
8
|
+
label?: string;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
} & React.HTMLAttributes<HTMLButtonElement>;
|
|
14
|
+
export {};
|
package/components.js
ADDED
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{useSyncExternalStore as
|
|
2
|
+
import{useSyncExternalStore as l}from"react";import{useConst as p}from"./hooks";function c(n,e){let t=n,i=new Set(e?[e]:void 0);function s(){return t}function o(r){return i.add(r),()=>i.delete(r)}return{get:s,set(r){let u=typeof r==="function"?r(t):r;if(Object.is(t,u))return;t=u,i.forEach((a)=>a())},subscribe:o,use(){return l(o,s,s)}}}function T(n,e){return p(c(n,e))}function f(...n){let e="";for(let t of n){if(!t)continue;if(typeof t==="string")e&&(e+=" "),e+=t;else if(Array.isArray(t))e&&(e+=" "),e+=f(e)}return e}export{T as useCreateSignal,c as createSignal,f as clsx};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wdwh",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.20",
|
|
4
4
|
"author": "kubashh",
|
|
5
5
|
"description": "The Bun Frontend Framework.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"frontend"
|
|
16
16
|
],
|
|
17
17
|
"files": [
|
|
18
|
-
"LICENSE",
|
|
19
|
-
"README.md",
|
|
20
18
|
"index.js",
|
|
21
19
|
"index.d.ts",
|
|
22
20
|
"hooks.js",
|
|
23
21
|
"hooks.d.ts",
|
|
22
|
+
"components.js",
|
|
23
|
+
"components.d.ts",
|
|
24
24
|
"wdwh.js"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|