asheeui 0.5.0 → 0.6.1
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/AsheeUIProvider.d.ts +28 -1
- package/dist/AsheeUIProvider.d.ts.map +1 -1
- package/dist/AsheeUIProvider.js +14 -12
- package/dist/components/accordion/Accordion.d.ts.map +1 -1
- package/dist/components/accordion/Accordion.js +1 -1
- package/dist/components/autocomplete/autocomplete-config.js +6 -6
- package/dist/components/button/Button.d.ts.map +1 -1
- package/dist/components/button/Button.js +17 -17
- package/dist/components/card/Card.d.ts.map +1 -1
- package/dist/components/card/Card.js +14 -14
- package/dist/components/carousel/Carousel.d.ts.map +1 -1
- package/dist/components/carousel/Carousel.js +1 -1
- package/dist/components/chip/Chip.d.ts.map +1 -1
- package/dist/components/chip/Chip.js +1 -1
- package/dist/components/date-picker/DatePicker.d.ts.map +1 -1
- package/dist/components/date-picker/DatePicker.js +4 -4
- package/dist/components/drawer/Drawer.d.ts.map +1 -1
- package/dist/components/drawer/Drawer.js +1 -1
- package/dist/components/field/FieldShell.d.ts.map +1 -1
- package/dist/components/field/FieldShell.js +1 -1
- package/dist/components/image/Image.d.ts.map +1 -1
- package/dist/components/image/Image.js +8 -8
- package/dist/components/input/Input.d.ts.map +1 -1
- package/dist/components/input/Input.js +9 -9
- package/dist/components/input/PasswordInput.d.ts.map +1 -1
- package/dist/components/input/PasswordInput.js +1 -1
- package/dist/components/keyboard/OnScreenKeyboard.d.ts.map +1 -1
- package/dist/components/keyboard/OnScreenKeyboard.js +8 -8
- package/dist/components/link/Link.d.ts.map +1 -1
- package/dist/components/link/Link.js +12 -12
- package/dist/components/marquee/Marquee.d.ts.map +1 -1
- package/dist/components/marquee/Marquee.js +21 -21
- package/dist/components/modal/Modal.d.ts.map +1 -1
- package/dist/components/modal/Modal.js +12 -12
- package/dist/components/multi-select/MultiSelect.d.ts.map +1 -1
- package/dist/components/multi-select/MultiSelect.js +10 -10
- package/dist/components/multi-select/multi-select-config.js +6 -6
- package/dist/components/radio/Radio.d.ts.map +1 -1
- package/dist/components/radio/Radio.js +1 -1
- package/dist/components/radio/RadioGroup.d.ts.map +1 -1
- package/dist/components/radio/RadioGroup.js +11 -11
- package/dist/components/radio/radio-context.d.ts.map +1 -1
- package/dist/components/radio/radio-styles.d.ts.map +1 -1
- package/dist/components/radio/radio-styles.js +4 -9
- package/dist/components/resizable-screen/ResizableScreen.d.ts.map +1 -1
- package/dist/components/resizable-screen/ResizableScreen.js +12 -12
- package/dist/components/select/Select.d.ts.map +1 -1
- package/dist/components/select/Select.js +11 -11
- package/dist/components/select/select-config.js +8 -8
- package/dist/components/select-menu/SelectMenu.d.ts.map +1 -1
- package/dist/components/select-menu/SelectMenu.js +24 -24
- package/dist/components/sidebar/Sidebar.d.ts.map +1 -1
- package/dist/components/sidebar/Sidebar.js +7 -7
- package/dist/components/spinner/spinner-styles.d.ts.map +1 -1
- package/dist/components/spinner/spinner-styles.js +0 -1
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/spinner/spinner.js +9 -9
- package/dist/components/switch/Switch.d.ts.map +1 -1
- package/dist/components/switch/Switch.js +10 -10
- package/dist/components/table/Table.d.ts.map +1 -1
- package/dist/components/table/Table.js +1 -1
- package/dist/components/table/table-styles.d.ts.map +1 -1
- package/dist/components/table/table-styles.js +6 -11
- package/dist/components/tabs/Tabs.d.ts.map +1 -1
- package/dist/components/tabs/Tabs.js +14 -14
- package/dist/components/textarea/Textarea.d.ts.map +1 -1
- package/dist/components/textarea/Textarea.js +18 -18
- package/dist/components/toast/ToastItem.d.ts.map +1 -1
- package/dist/components/toast/ToastItem.js +1 -1
- package/dist/components/toast/toast-context.d.ts.map +1 -1
- package/dist/components/toast/toast-context.js +12 -12
- package/dist/components/tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/Tooltip.js +28 -28
- package/dist/config/config.d.ts +2 -2
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/resolve-config.js +1 -1
- package/dist/icons/ArrowLeftIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/ChevronDownIcon.js +1 -1
- package/dist/icons/ChevronLeftIcon.js +1 -1
- package/dist/icons/ChevronRightIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/ClockIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/ErrorIcon.js +1 -1
- package/dist/icons/ExternalLinkIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeOffIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/libs/context.d.ts +2 -0
- package/dist/libs/context.d.ts.map +1 -1
- package/dist/scripts/AsheeThemeScript.js +19 -21
- package/dist/shared/variant.d.ts +1 -1
- package/dist/shared/variant.d.ts.map +1 -1
- package/dist/shared/variant.js +10 -15
- package/dist/utils/cn.d.ts +20 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/cn.js +9 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/merge-object.d.ts +24 -0
- package/dist/utils/merge-object.d.ts.map +1 -0
- package/dist/utils/merge-object.js +17 -0
- package/dist/utils/types.d.ts +10 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/package.json +12 -4
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import { THEME_STORAGE_KEY as d } from "../theme/controller.js";
|
|
6
|
-
const h = {
|
|
2
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import { THEME_STORAGE_KEY as i } from "../theme/controller.js";
|
|
4
|
+
const d = {
|
|
7
5
|
background: "--ashee-background",
|
|
8
6
|
foreground: "--ashee-foreground",
|
|
9
7
|
primary: "--ashee-primary",
|
|
@@ -14,25 +12,25 @@ const h = {
|
|
|
14
12
|
success: "--ashee-success",
|
|
15
13
|
scrollbarThumb: "--ashee-scrollbar-thumb",
|
|
16
14
|
scrollbarTrack: "--ashee-scrollbar-track"
|
|
17
|
-
},
|
|
18
|
-
function
|
|
19
|
-
return Object.entries(e).map(([
|
|
20
|
-
const r = Object.entries(
|
|
15
|
+
}, l = "ashee-theme-vars";
|
|
16
|
+
function h(e) {
|
|
17
|
+
return Object.entries(e).map(([s, t]) => {
|
|
18
|
+
const r = Object.entries(t).map(([a, n]) => ` ${d[a]}: ${n};`).join(`
|
|
21
19
|
`);
|
|
22
|
-
return `${
|
|
20
|
+
return `${s === "light" ? ":root, .theme-light" : `.theme-${s}`} {
|
|
23
21
|
${r}
|
|
24
22
|
}`;
|
|
25
23
|
}).join(`
|
|
26
24
|
|
|
27
25
|
`);
|
|
28
26
|
}
|
|
29
|
-
function
|
|
30
|
-
const
|
|
27
|
+
function u({ config: e }) {
|
|
28
|
+
const s = Object.keys(e.color ?? {}), t = e.defaultTheme ?? "system", r = i, o = h(e.color), a = `
|
|
31
29
|
(function() {
|
|
32
30
|
var el = document.documentElement;
|
|
33
31
|
var storageKey = ${JSON.stringify(r)};
|
|
34
|
-
var defaultTheme = ${JSON.stringify(
|
|
35
|
-
var themes = ${JSON.stringify(
|
|
32
|
+
var defaultTheme = ${JSON.stringify(t)};
|
|
33
|
+
var themes = ${JSON.stringify(s)};
|
|
36
34
|
var systemDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
37
35
|
|
|
38
36
|
var stored = null;
|
|
@@ -53,25 +51,25 @@ function v() {
|
|
|
53
51
|
el.style.colorScheme = resolved;
|
|
54
52
|
|
|
55
53
|
// Synchronously inject style tag before first paint
|
|
56
|
-
var styleEl = document.getElementById(${JSON.stringify(
|
|
54
|
+
var styleEl = document.getElementById(${JSON.stringify(l)});
|
|
57
55
|
if (!styleEl) {
|
|
58
56
|
styleEl = document.createElement('style');
|
|
59
|
-
styleEl.id = ${JSON.stringify(
|
|
60
|
-
styleEl.textContent = ${JSON.stringify(
|
|
57
|
+
styleEl.id = ${JSON.stringify(l)};
|
|
58
|
+
styleEl.textContent = ${JSON.stringify(o)};
|
|
61
59
|
document.head.appendChild(styleEl);
|
|
62
60
|
}
|
|
63
61
|
})();
|
|
64
62
|
`;
|
|
65
|
-
return /* @__PURE__ */
|
|
63
|
+
return /* @__PURE__ */ c(
|
|
66
64
|
"script",
|
|
67
65
|
{
|
|
68
66
|
id: "ashee-theme-script",
|
|
69
|
-
dangerouslySetInnerHTML: { __html:
|
|
67
|
+
dangerouslySetInnerHTML: { __html: a },
|
|
70
68
|
suppressHydrationWarning: !0
|
|
71
69
|
}
|
|
72
70
|
);
|
|
73
71
|
}
|
|
74
72
|
export {
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
u as AsheeThemeScript,
|
|
74
|
+
l as THEME_VARS_STYLE_ID
|
|
77
75
|
};
|
package/dist/shared/variant.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type Variant = "solid" | "ghost" | "bordered" | "faded" | "underlined";
|
|
2
|
-
export type Color = "none" | "
|
|
2
|
+
export type Color = "none" | "primary" | "secondary" | "danger" | "warning" | "success";
|
|
3
3
|
export declare function resolveVariantClass(variant: Variant, color: Color): string;
|
|
4
4
|
//# sourceMappingURL=variant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variant.d.ts","sourceRoot":"","sources":["../../src/shared/variant.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,CAAC;AAC9E,MAAM,MAAM,KAAK,GACb,MAAM,GACN,SAAS,GACT,
|
|
1
|
+
{"version":3,"file":"variant.d.ts","sourceRoot":"","sources":["../../src/shared/variant.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,CAAC;AAC9E,MAAM,MAAM,KAAK,GACb,MAAM,GACN,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,GACT,SAAS,CAAC;AA0Dd,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,CAE1E"}
|
package/dist/shared/variant.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn as r } from "
|
|
3
|
-
const
|
|
2
|
+
import { cn as r } from "../utils/cn.js";
|
|
3
|
+
const t = {
|
|
4
4
|
none: "bg-background text-foreground",
|
|
5
|
-
default: "bg-secondary text-foreground",
|
|
6
5
|
primary: "bg-primary text-secondary",
|
|
7
6
|
secondary: "bg-secondary text-foreground",
|
|
8
7
|
danger: "bg-danger text-secondary",
|
|
@@ -10,23 +9,20 @@ const s = {
|
|
|
10
9
|
success: "bg-success text-secondary"
|
|
11
10
|
}, e = {
|
|
12
11
|
none: "bg-transparent text-foreground hover:bg-foreground/10",
|
|
13
|
-
default: "bg-transparent text-foreground hover:bg-foreground/10",
|
|
14
12
|
primary: "bg-transparent text-primary hover:bg-primary/10",
|
|
15
13
|
secondary: "bg-transparent text-foreground hover:bg-secondary/10",
|
|
16
14
|
danger: "bg-transparent text-danger hover:bg-danger/10",
|
|
17
15
|
warning: "bg-transparent text-warning hover:bg-warning/10",
|
|
18
16
|
success: "bg-transparent text-success hover:bg-success/10"
|
|
19
|
-
},
|
|
17
|
+
}, g = {
|
|
20
18
|
none: r(e.primary, "border-2 border-background"),
|
|
21
|
-
default: r(e.primary, "border-2 border-secondary"),
|
|
22
19
|
primary: r(e.primary, "border-2 border-primary"),
|
|
23
20
|
secondary: r(e.secondary, "border-2 border-border"),
|
|
24
21
|
danger: r(e.danger, "border-2 border-danger"),
|
|
25
22
|
warning: r(e.warning, "border-2 border-warning"),
|
|
26
23
|
success: r(e.success, "border-2 border-success")
|
|
27
|
-
},
|
|
24
|
+
}, b = {
|
|
28
25
|
none: "bg-secondary/40 text-foreground border-2 border-transparent",
|
|
29
|
-
default: "bg-secondary/40 text-foreground border-2 border-border",
|
|
30
26
|
primary: "bg-primary/10 text-primary border-2 border-primary/20",
|
|
31
27
|
secondary: "bg-secondary/15 text-foreground border-2 border-secondary/30",
|
|
32
28
|
danger: "bg-danger/10 text-danger border-2 border-danger/20",
|
|
@@ -34,23 +30,22 @@ const s = {
|
|
|
34
30
|
success: "bg-success/10 text-success border-2 border-success/20"
|
|
35
31
|
}, n = "border-b-2 border-t-0 border-x-0 rounded-none bg-transparent shadow-none", c = {
|
|
36
32
|
none: r(n, "border-background text-foreground"),
|
|
37
|
-
default: r(n, "border-border text-foreground"),
|
|
38
33
|
primary: r(n, "border-primary text-primary"),
|
|
39
34
|
secondary: r(n, "border-secondary text-secondary"),
|
|
40
35
|
danger: r(n, "border-danger text-danger"),
|
|
41
36
|
warning: r(n, "border-warning text-warning"),
|
|
42
37
|
success: r(n, "border-success text-success")
|
|
43
38
|
}, d = {
|
|
44
|
-
solid:
|
|
39
|
+
solid: t,
|
|
45
40
|
ghost: e,
|
|
46
|
-
bordered:
|
|
47
|
-
faded:
|
|
41
|
+
bordered: g,
|
|
42
|
+
faded: b,
|
|
48
43
|
underlined: c
|
|
49
44
|
};
|
|
50
|
-
function
|
|
45
|
+
function y(a, s) {
|
|
51
46
|
var o;
|
|
52
|
-
return ((o = d[a]) == null ? void 0 : o[
|
|
47
|
+
return ((o = d[a]) == null ? void 0 : o[s]) ?? d.bordered.secondary;
|
|
53
48
|
}
|
|
54
49
|
export {
|
|
55
|
-
|
|
50
|
+
y as resolveVariantClass
|
|
56
51
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
/**
|
|
3
|
+
* Merge Tailwind CSS class names, resolving conflicts deterministically.
|
|
4
|
+
*
|
|
5
|
+
* Combines `clsx` (conditional class composition) with `tailwind-merge`
|
|
6
|
+
* (later conflicting utilities win), which keeps generated class
|
|
7
|
+
* strings short and predictable.
|
|
8
|
+
*
|
|
9
|
+
* @param inputs - Class values: strings, objects, arrays, or falsy
|
|
10
|
+
* values that are ignored.
|
|
11
|
+
* @returns A single space-separated class string.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* cn("px-2 p-4", isActive && "bg-primary", "rounded-md");
|
|
16
|
+
* // isActive=false -> "p-4 rounded-md"; px-2 conflicts with p-4 and is dropped
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
20
|
+
//# sourceMappingURL=cn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAElD"}
|
package/dist/utils/cn.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AsheeUI shared utilities.
|
|
3
|
+
*
|
|
4
|
+
* Client-safe helpers (`cn`, `mergeObject`) plus the `DeepPartial` type,
|
|
5
|
+
* migrated from the former `@asheeui/utils` package. Node-only helpers
|
|
6
|
+
* (config discovery) live under `./node`.
|
|
7
|
+
*/
|
|
8
|
+
export { cn } from './cn';
|
|
9
|
+
export { mergeObject } from './merge-object';
|
|
10
|
+
export type { DeepPartial } from './types';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DeepPartial } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Deeply merge a partial user config over a set of defaults.
|
|
4
|
+
*
|
|
5
|
+
* Nested plain objects are merged recursively; arrays and scalar
|
|
6
|
+
* values from `userConfig` replace the default outright. Keys whose
|
|
7
|
+
* user value is `undefined` are skipped, leaving the default intact.
|
|
8
|
+
* The `defaults` object is not mutated.
|
|
9
|
+
*
|
|
10
|
+
* @param defaults - Baseline object providing fallback values.
|
|
11
|
+
* @param userConfig - Optional partial override object.
|
|
12
|
+
* @returns A new object with the user overrides applied.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const config = mergeObject(
|
|
17
|
+
* { theme: { color: "primary", radius: "md" } },
|
|
18
|
+
* { theme: { radius: "lg" } },
|
|
19
|
+
* );
|
|
20
|
+
* // -> { theme: { color: "primary", radius: "lg" } }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function mergeObject<T extends Record<string, unknown>>(defaults: T, userConfig?: DeepPartial<T>): T;
|
|
24
|
+
//# sourceMappingURL=merge-object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-object.d.ts","sourceRoot":"","sources":["../../src/utils/merge-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAY3C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3D,QAAQ,EAAE,CAAC,EACX,UAAU,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAC1B,CAAC,CAuBH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
function u(e) {
|
|
3
|
+
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
4
|
+
}
|
|
5
|
+
function l(e, n) {
|
|
6
|
+
if (!n)
|
|
7
|
+
return e;
|
|
8
|
+
const o = { ...e }, s = e, i = n;
|
|
9
|
+
for (const t of Object.keys(n)) {
|
|
10
|
+
const c = i[t], r = s[t];
|
|
11
|
+
c !== void 0 && (u(r) && u(c) ? o[t] = l(r, c) : o[t] = c);
|
|
12
|
+
}
|
|
13
|
+
return o;
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
l as mergeObject
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recursively make every property of `T` optional.
|
|
3
|
+
*
|
|
4
|
+
* Arrays and primitives are left untouched; only object properties are
|
|
5
|
+
* mapped. Useful for typed partial configuration overrides.
|
|
6
|
+
*/
|
|
7
|
+
export type DeepPartial<T> = T extends object ? {
|
|
8
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
9
|
+
} : T;
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACzC;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,GACD,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "asheeui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"./styles.css": "./dist/index.css"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
|
+
"access": "public",
|
|
31
32
|
"style": "./dist/index.css"
|
|
32
33
|
},
|
|
33
34
|
"files": [
|
|
@@ -38,7 +39,8 @@
|
|
|
38
39
|
],
|
|
39
40
|
"dependencies": {
|
|
40
41
|
"@floating-ui/react": "^0.27.20",
|
|
41
|
-
"
|
|
42
|
+
"clsx": "^2.1.1",
|
|
43
|
+
"tailwind-merge": "^3.6.0"
|
|
42
44
|
},
|
|
43
45
|
"peerDependencies": {
|
|
44
46
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -47,22 +49,28 @@
|
|
|
47
49
|
},
|
|
48
50
|
"devDependencies": {
|
|
49
51
|
"@floating-ui/react": "^0.27.20",
|
|
52
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
53
|
+
"@testing-library/react": "^16.1.0",
|
|
54
|
+
"@testing-library/user-event": "^14.5.2",
|
|
50
55
|
"@types/node": "^26.1.2",
|
|
51
56
|
"@types/react": "^19.0.0",
|
|
52
57
|
"@types/react-dom": "^19.0.0",
|
|
53
58
|
"@vitejs/plugin-react": "^4.0.0",
|
|
59
|
+
"happy-dom": "^15.11.7",
|
|
54
60
|
"react": "^19.0.0",
|
|
55
61
|
"react-dom": "^19.0.0",
|
|
56
62
|
"ts-node": "^10.9.2",
|
|
57
63
|
"tsx": "^4.23.12",
|
|
58
64
|
"typescript": "^5.0.0",
|
|
59
65
|
"vite": "^6.0.0",
|
|
60
|
-
"vite-plugin-dts": "^4.0.0"
|
|
66
|
+
"vite-plugin-dts": "^4.0.0",
|
|
67
|
+
"vitest": "^3.2.7"
|
|
61
68
|
},
|
|
62
69
|
"module": "./dist/index.js",
|
|
63
70
|
"license": "MIT",
|
|
64
71
|
"scripts": {
|
|
65
72
|
"build:registry": "tsx src/scripts/build-registry.ts",
|
|
66
|
-
"build": "vite build"
|
|
73
|
+
"build": "vite build",
|
|
74
|
+
"test": "vitest run"
|
|
67
75
|
}
|
|
68
76
|
}
|