beightone.ui-components 0.1.2 → 0.1.3
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/base.d.ts +5 -0
- package/dist/base.d.ts.map +1 -0
- package/dist/components/atoms/Button/classes.d.ts +7 -0
- package/dist/components/atoms/Button/classes.d.ts.map +1 -0
- package/dist/components/atoms/Button/index.d.ts +18 -0
- package/dist/components/atoms/Button/index.d.ts.map +1 -0
- package/dist/components/atoms/Button/types.d.ts +9 -0
- package/dist/components/atoms/Button/types.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/package.json +42 -42
package/dist/base.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjC,qBAAa,SAAU,SAAQ,UAAU;IACvC,MAAM,CAAC,MAAM,4BAA6B;CAC3C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Size, SpinnerColor, Variant } from "./types";
|
|
2
|
+
declare const spinnerColorMap: Record<Variant, SpinnerColor>;
|
|
3
|
+
declare const variantClasses: Record<Variant, string>;
|
|
4
|
+
declare const sizeClasses: Record<Size, string>;
|
|
5
|
+
declare const baseClasses = "inline-flex items-center cursor-pointer justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-all border border-transparent border-solid [&_svg]:pointer-events-none [&_svg:not([class*=\"size-\"])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-brand-primary-300 focus-visible:ring-[4px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive";
|
|
6
|
+
export { baseClasses, sizeClasses, variantClasses, spinnerColorMap };
|
|
7
|
+
//# sourceMappingURL=classes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classes.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button/classes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAE3D,QAAA,MAAM,eAAe,EAAE,MAAM,CAAC,OAAO,EAAE,YAAY,CAyBlD,CAAC;AAEF,QAAA,MAAM,cAAc,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAQ3C,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CASrC,CAAC;AAEF,QAAA,MAAM,WAAW,ubACma,CAAC;AAErb,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { B8Element } from "../../../base";
|
|
2
|
+
import type { Size, Variant } from "./types";
|
|
3
|
+
export declare class B8Button extends B8Element {
|
|
4
|
+
variant: Variant;
|
|
5
|
+
size: Size;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
isDisabled: boolean;
|
|
8
|
+
loadingText: string;
|
|
9
|
+
private handleClick;
|
|
10
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
11
|
+
}
|
|
12
|
+
declare global {
|
|
13
|
+
interface HTMLElementTagNameMap {
|
|
14
|
+
"b8-button": B8Button;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export declare const B8ButtonReact: import("@lit/react").ReactWebComponent<B8Button, {}>;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAS1C,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAE7C,qBACa,QAAS,SAAQ,SAAS;IACT,OAAO,EAAE,OAAO,CAAa;IAC7B,IAAI,EAAE,IAAI,CAAQ;IACK,SAAS,UAAS;IACjB,UAAU,UAAS;IAChB,WAAW,SACnD;IAEf,OAAO,CAAC,WAAW;IAenB,MAAM;CAoDP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF;AAED,eAAO,MAAM,aAAa,sDAIxB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type Variant = "primary" | "secondary" | "tertiary" | "link";
|
|
2
|
+
export type Size = "xs" | "sm" | "md" | "lg" | "icon-xs" | "icon-sm" | "icon-md" | "icon-lg";
|
|
3
|
+
export interface SpinnerColor {
|
|
4
|
+
circle: string;
|
|
5
|
+
path: string;
|
|
6
|
+
bg: string;
|
|
7
|
+
text: string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;AACpE,MAAM,MAAM,IAAI,GACZ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,iCAAiC,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
package/package.json
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "beightone.ui-components",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/beightone-ui-components.js",
|
|
7
|
-
"module": "dist/beightone-ui-components.js",
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"import": "./dist/beightone-ui-components.js",
|
|
12
|
-
"types": "./dist/index.d.ts"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
|
-
"scripts": {
|
|
19
|
-
"dev": "vite",
|
|
20
|
-
"build": "tsc && vite build",
|
|
21
|
-
"preview": "vite preview"
|
|
22
|
-
},
|
|
23
|
-
"peerDependencies": {
|
|
24
|
-
"lit": "^3.0.0"
|
|
25
|
-
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@lit/react": "^1.0.8",
|
|
28
|
-
"@tailwindcss/vite": "^4.2.0",
|
|
29
|
-
"@types/react": "^19.2.14",
|
|
30
|
-
"clsx": "^2.1.1",
|
|
31
|
-
"daisyui": "^5.5.18",
|
|
32
|
-
"lit": "^3.3.1",
|
|
33
|
-
"react": "^19.2.4",
|
|
34
|
-
"tailwind-merge": "^3.5.0",
|
|
35
|
-
"tailwindcss": "^4.2.0",
|
|
36
|
-
"terser": "^5.46.0"
|
|
37
|
-
},
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"typescript": "~5.9.3",
|
|
40
|
-
"vite": "^7.3.1"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "beightone.ui-components",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.1.3",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/beightone-ui-components.js",
|
|
7
|
+
"module": "dist/beightone-ui-components.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/beightone-ui-components.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"dev": "vite",
|
|
20
|
+
"build": "tsc && vite build",
|
|
21
|
+
"preview": "vite preview"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"lit": "^3.0.0"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@lit/react": "^1.0.8",
|
|
28
|
+
"@tailwindcss/vite": "^4.2.0",
|
|
29
|
+
"@types/react": "^19.2.14",
|
|
30
|
+
"clsx": "^2.1.1",
|
|
31
|
+
"daisyui": "^5.5.18",
|
|
32
|
+
"lit": "^3.3.1",
|
|
33
|
+
"react": "^19.2.4",
|
|
34
|
+
"tailwind-merge": "^3.5.0",
|
|
35
|
+
"tailwindcss": "^4.2.0",
|
|
36
|
+
"terser": "^5.46.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"typescript": "~5.9.3",
|
|
40
|
+
"vite": "^7.3.1"
|
|
41
|
+
}
|
|
42
|
+
}
|