beightone.ui-components 0.1.12 → 0.1.13
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/beightone.ui-components.js +444 -414
- package/dist/components/atoms/Button/classes.d.ts +4 -4
- package/dist/components/atoms/Button/classes.d.ts.map +1 -1
- package/dist/components/atoms/Button/index.d.ts +2 -1
- package/dist/components/atoms/Button/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Size, SpinnerColor
|
|
2
|
-
declare const
|
|
3
|
-
declare const
|
|
1
|
+
import type { Variant, Size, SpinnerColor } from "./types";
|
|
2
|
+
export declare const getSpinnerColorMap: (baseVariant: Variant, isError: boolean) => SpinnerColor;
|
|
3
|
+
export declare const getVariantClasses: (baseVariant: Variant, isError: boolean) => string;
|
|
4
4
|
declare const sizeClasses: Record<Size, string>;
|
|
5
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-solid [&_svg]:pointer-events-none [&_svg:not([class*=\"size-\"])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-brand-primary-light focus-visible:ring-[4px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive";
|
|
6
|
-
export { baseClasses, sizeClasses
|
|
6
|
+
export { baseClasses, sizeClasses };
|
|
7
7
|
//# sourceMappingURL=classes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classes.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button/classes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"classes.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button/classes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAgD3D,eAAO,MAAM,kBAAkB,GAC7B,aAAa,OAAO,EACpB,SAAS,OAAO,KACf,YAEF,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,aAAa,OAAO,EACpB,SAAS,OAAO,KACf,MAgBF,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CASrC,CAAC;AAEF,QAAA,MAAM,WAAW,saACkZ,CAAC;AAEpa,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { B8Element } from "../../../base";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Variant, Size } from "./types";
|
|
3
3
|
export declare class B8Button extends B8Element {
|
|
4
4
|
variant: Variant;
|
|
5
5
|
size: Size;
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
isDisabled: boolean;
|
|
8
|
+
isError: boolean;
|
|
8
9
|
loadingText: string;
|
|
9
10
|
private handleClick;
|
|
10
11
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ1C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ1C,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,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;IACtB,OAAO,UAAS;IACV,WAAW,SACnD;IAEf,OAAO,CAAC,WAAW;IAenB,MAAM;CA+CP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF;AAED,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|