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.
@@ -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
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{clsx as r}from".";import{jsxDEV as s}from"react/jsx-dev-runtime";function l({label:t,children:e,className:o,...n}){return s("button",{className:r(o,"cursor-pointer"),...n,children:t||e},void 0,!1,void 0,this)}export{l as Button};
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{useSyncExternalStore as f}from"react";import{useState as l,useSyncExternalStore as T}from"react";function u(r){return l(r)[0]}function p(r,e){let t=r,s=new Set(e?[e]:void 0);function i(){return t}function o(n){return s.add(n),()=>s.delete(n)}return{get:i,set(n){let a=typeof n==="function"?n(t):n;if(Object.is(t,a))return;t=a,s.forEach((c)=>c())},subscribe:o,use(){return f(o,i,i)}}}function x(r,e){return u(p(r,e))}function g(...r){let e="";for(let t of r){if(!t)continue;if(typeof t==="string")e&&(e+=" "),e+=t;else if(Array.isArray(t))e&&(e+=" "),e+=g(e)}return e}export{x as useCreateSignal,p as createSignal,g as clsx};
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.19",
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": {