lynote-ui 0.0.8 → 0.0.9
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/accordion/index.js +2 -2
- package/dist/accordion/index.mjs +1 -1
- package/dist/alert/index.js +2 -2
- package/dist/alert/index.mjs +1 -1
- package/dist/alert-dialog/index.js +2 -2
- package/dist/alert-dialog/index.mjs +1 -1
- package/dist/aspect-ratio/index.js +2 -2
- package/dist/aspect-ratio/index.mjs +1 -1
- package/dist/avatar/index.js +2 -2
- package/dist/avatar/index.mjs +1 -1
- package/dist/badge/index.js +2 -2
- package/dist/badge/index.mjs +1 -1
- package/dist/breadcrumb/index.js +2 -2
- package/dist/breadcrumb/index.mjs +1 -1
- package/dist/button/index.js +2 -2
- package/dist/button/index.mjs +1 -1
- package/dist/button-group/index.js +2 -2
- package/dist/button-group/index.mjs +1 -1
- package/dist/calendar/index.js +2 -2
- package/dist/calendar/index.mjs +1 -1
- package/dist/card/index.js +2 -2
- package/dist/card/index.mjs +1 -1
- package/dist/carousel/index.js +2 -2
- package/dist/carousel/index.mjs +1 -1
- package/dist/chart/index.js +2 -2
- package/dist/chart/index.mjs +1 -1
- package/dist/checkbox/index.js +2 -2
- package/dist/checkbox/index.mjs +1 -1
- package/dist/{chunk-CoQrYLCe.js → chunk-8l464Juk.js} +0 -22
- package/dist/collapsible/index.js +1 -1
- package/dist/combobox/index.js +2 -2
- package/dist/combobox/index.mjs +1 -1
- package/dist/command/index.js +2 -2
- package/dist/command/index.mjs +1 -1
- package/dist/context-menu/index.js +8 -6
- package/dist/context-menu/index.js.map +1 -1
- package/dist/context-menu/index.mjs +7 -5
- package/dist/context-menu/index.mjs.map +1 -1
- package/dist/date-picker/index.js +1 -1
- package/dist/dialog/index.js +2 -2
- package/dist/dialog/index.mjs +1 -1
- package/dist/direction/index.js +1 -1
- package/dist/drawer/index.js +2 -2
- package/dist/drawer/index.mjs +1 -1
- package/dist/dropdown-menu/index.js +2 -2
- package/dist/dropdown-menu/index.mjs +1 -1
- package/dist/empty/index.js +2 -2
- package/dist/empty/index.mjs +1 -1
- package/dist/field/index.js +4 -4
- package/dist/field/index.js.map +1 -1
- package/dist/field/index.mjs +3 -3
- package/dist/field/index.mjs.map +1 -1
- package/dist/hover-card/index.js +2 -2
- package/dist/hover-card/index.mjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +19 -25
- package/dist/index.mjs +4 -8
- package/dist/input/index.js +2 -2
- package/dist/input/index.mjs +1 -1
- package/dist/input-group/index.js +2 -2
- package/dist/input-group/index.mjs +1 -1
- package/dist/input-otp/index.js +2 -2
- package/dist/input-otp/index.mjs +1 -1
- package/dist/item/index.js +2 -2
- package/dist/item/index.mjs +1 -1
- package/dist/kbd/index.js +2 -2
- package/dist/kbd/index.mjs +1 -1
- package/dist/label/index.js +2 -2
- package/dist/label/index.mjs +1 -1
- package/dist/menubar/index.js +2 -2
- package/dist/menubar/index.mjs +1 -1
- package/dist/native-select/index.js +2 -2
- package/dist/native-select/index.mjs +1 -1
- package/dist/navigation-menu/index.js +2 -2
- package/dist/navigation-menu/index.mjs +1 -1
- package/dist/pagination/index.js +2 -2
- package/dist/pagination/index.mjs +1 -1
- package/dist/popover/index.js +2 -2
- package/dist/popover/index.mjs +1 -1
- package/dist/progress/index.js +2 -2
- package/dist/progress/index.mjs +1 -1
- package/dist/radio-group/index.js +2 -2
- package/dist/radio-group/index.mjs +1 -1
- package/dist/resizable/index.js +2 -2
- package/dist/resizable/index.mjs +1 -1
- package/dist/scroll-area/index.js +2 -2
- package/dist/scroll-area/index.mjs +1 -1
- package/dist/select/SelectMultipleValue.d.ts +8 -0
- package/dist/select/context.d.ts +4 -0
- package/dist/select/index.d.ts +4 -2
- package/dist/select/index.js +11 -110
- package/dist/select/index.mjs +1 -98
- package/dist/select/type.d.ts +33 -0
- package/dist/select/utils.d.ts +8 -0
- package/dist/select---wbqUEL.js +402 -0
- package/dist/select---wbqUEL.js.map +1 -0
- package/dist/select-DJcPlxTU.mjs +341 -0
- package/dist/select-DJcPlxTU.mjs.map +1 -0
- package/dist/separator/index.js +2 -2
- package/dist/separator/index.mjs +1 -1
- package/dist/sheet/index.js +2 -2
- package/dist/sheet/index.mjs +1 -1
- package/dist/sidebar/index.js +1 -1
- package/dist/sidebar/index.mjs +1 -1
- package/dist/{sidebar-Ddt6hBj_.mjs → sidebar-BO_ns2qp.mjs} +2 -2
- package/dist/{sidebar-Ddt6hBj_.mjs.map → sidebar-BO_ns2qp.mjs.map} +1 -1
- package/dist/{sidebar-E9uledix.js → sidebar-KSjzFqo5.js} +3 -3
- package/dist/{sidebar-E9uledix.js.map → sidebar-KSjzFqo5.js.map} +1 -1
- package/dist/skeleton/index.js +2 -2
- package/dist/skeleton/index.mjs +1 -1
- package/dist/slider/index.js +2 -2
- package/dist/slider/index.mjs +1 -1
- package/dist/sonner/index.js +2 -2
- package/dist/{sonner-BbeMMXzI.js → sonner-6WfFozil.js} +2 -2
- package/dist/{sonner-BbeMMXzI.js.map → sonner-6WfFozil.js.map} +1 -1
- package/dist/spinner/index.js +2 -2
- package/dist/spinner/index.mjs +1 -1
- package/dist/style.css +547 -28
- package/dist/switch/index.js +2 -2
- package/dist/switch/index.mjs +1 -1
- package/dist/table/index.js +2 -2
- package/dist/table/index.mjs +1 -1
- package/dist/tabs/index.js +2 -2
- package/dist/tabs/index.mjs +1 -1
- package/dist/textarea/index.js +2 -2
- package/dist/textarea/index.mjs +1 -1
- package/dist/toggle/index.js +2 -2
- package/dist/toggle/index.mjs +1 -1
- package/dist/toggle-group/index.js +2 -2
- package/dist/toggle-group/index.mjs +1 -1
- package/dist/tooltip/index.js +2 -2
- package/dist/tooltip/index.mjs +1 -1
- package/dist/typography/index.d.ts +14 -0
- package/dist/typography/index.js +120 -0
- package/dist/typography/index.js.map +1 -0
- package/dist/typography/index.mjs +105 -0
- package/dist/typography/index.mjs.map +1 -0
- package/dist/{utils-TtTqRIUX.mjs → utils-Bg4z4cXr.mjs} +1 -1
- package/dist/{utils-TtTqRIUX.mjs.map → utils-Bg4z4cXr.mjs.map} +1 -1
- package/dist/{utils-BGuEr0aP.js → utils-DrngEK1K.js} +2 -2
- package/dist/{utils-BGuEr0aP.js.map → utils-DrngEK1K.js.map} +1 -1
- package/package.json +10 -7
- package/dist/form/components/Form.d.ts +0 -4
- package/dist/form/components/FormControl.d.ts +0 -3
- package/dist/form/components/FormDescription.d.ts +0 -3
- package/dist/form/components/FormField.d.ts +0 -3
- package/dist/form/components/FormItem.d.ts +0 -7
- package/dist/form/components/FormLabel.d.ts +0 -3
- package/dist/form/components/FormMessage.d.ts +0 -4
- package/dist/form/components/variants.d.ts +0 -6
- package/dist/form/context/index.d.ts +0 -4
- package/dist/form/hooks/useFormField.d.ts +0 -14
- package/dist/form/index.d.ts +0 -11
- package/dist/form/index.js +0 -19
- package/dist/form/index.mjs +0 -3
- package/dist/form/type.d.ts +0 -48
- package/dist/form-DLd4sOko.mjs +0 -183
- package/dist/form-DLd4sOko.mjs.map +0 -1
- package/dist/form-h_cJBAwg.js +0 -205
- package/dist/form-h_cJBAwg.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/select/index.js.map +0 -1
- package/dist/select/index.mjs.map +0 -1
package/dist/switch/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
require("../chunk-
|
|
4
|
-
const require_utils = require("../utils-
|
|
3
|
+
require("../chunk-8l464Juk.js");
|
|
4
|
+
const require_utils = require("../utils-DrngEK1K.js");
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
let _base_ui_react_switch = require("@base-ui/react/switch");
|
|
7
7
|
//#region src/switch/index.tsx
|
package/dist/switch/index.mjs
CHANGED
package/dist/table/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_chunk = require("../chunk-
|
|
4
|
-
const require_utils = require("../utils-
|
|
3
|
+
const require_chunk = require("../chunk-8l464Juk.js");
|
|
4
|
+
const require_utils = require("../utils-DrngEK1K.js");
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
let react = require("react");
|
|
7
7
|
react = require_chunk.__toESM(react);
|
package/dist/table/index.mjs
CHANGED
package/dist/tabs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
require("../chunk-
|
|
4
|
-
const require_utils = require("../utils-
|
|
3
|
+
require("../chunk-8l464Juk.js");
|
|
4
|
+
const require_utils = require("../utils-DrngEK1K.js");
|
|
5
5
|
let class_variance_authority = require("class-variance-authority");
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let _base_ui_react_tabs = require("@base-ui/react/tabs");
|
package/dist/tabs/index.mjs
CHANGED
package/dist/textarea/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_chunk = require("../chunk-
|
|
3
|
-
const require_utils = require("../utils-
|
|
2
|
+
const require_chunk = require("../chunk-8l464Juk.js");
|
|
3
|
+
const require_utils = require("../utils-DrngEK1K.js");
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
let react = require("react");
|
|
6
6
|
react = require_chunk.__toESM(react);
|
package/dist/textarea/index.mjs
CHANGED
package/dist/toggle/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
require("../chunk-
|
|
4
|
-
const require_utils = require("../utils-
|
|
3
|
+
require("../chunk-8l464Juk.js");
|
|
4
|
+
const require_utils = require("../utils-DrngEK1K.js");
|
|
5
5
|
let class_variance_authority = require("class-variance-authority");
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let _base_ui_react_toggle = require("@base-ui/react/toggle");
|
package/dist/toggle/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as cn } from "../utils-
|
|
2
|
+
import { t as cn } from "../utils-Bg4z4cXr.mjs";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Toggle as Toggle$1 } from "@base-ui/react/toggle";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_chunk = require("../chunk-
|
|
4
|
-
const require_utils = require("../utils-
|
|
3
|
+
const require_chunk = require("../chunk-8l464Juk.js");
|
|
4
|
+
const require_utils = require("../utils-DrngEK1K.js");
|
|
5
5
|
const require_toggle = require("../toggle/index.js");
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let react = require("react");
|
package/dist/tooltip/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
require("../chunk-
|
|
4
|
-
const require_utils = require("../utils-
|
|
3
|
+
require("../chunk-8l464Juk.js");
|
|
4
|
+
const require_utils = require("../utils-DrngEK1K.js");
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
let _base_ui_react_tooltip = require("@base-ui/react/tooltip");
|
|
7
7
|
//#region src/tooltip/index.tsx
|
package/dist/tooltip/index.mjs
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function TypographyH1({ className, ...props }: React.ComponentProps<"h1">): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function TypographyH2({ className, ...props }: React.ComponentProps<"h2">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function TypographyH3({ className, ...props }: React.ComponentProps<"h3">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function TypographyH4({ className, ...props }: React.ComponentProps<"h4">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function TypographyH5({ className, ...props }: React.ComponentProps<"h5">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function TypographyH6({ className, ...props }: React.ComponentProps<"h6">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function TypographyP({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function TypographyBlockquote({ className, ...props }: React.ComponentProps<"blockquote">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function TypographyUl({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function TypographyInlineCode({ className, ...props }: React.ComponentProps<"code">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function TypographyLead({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function TypographyLarge({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function TypographySmall({ className, ...props }: React.ComponentProps<"small">): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function TypographyMuted({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../chunk-8l464Juk.js");
|
|
3
|
+
const require_utils = require("../utils-DrngEK1K.js");
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
//#region src/typography/index.tsx
|
|
6
|
+
function TypographyH1({ className, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h1", {
|
|
8
|
+
"data-slot": "typography-h1",
|
|
9
|
+
className: require_utils.cn("scroll-m-20 text-balance text-center text-4xl font-extrabold tracking-tight", className),
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function TypographyH2({ className, ...props }) {
|
|
14
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
|
|
15
|
+
"data-slot": "typography-h2",
|
|
16
|
+
className: require_utils.cn("mt-10 scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0", className),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function TypographyH3({ className, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
22
|
+
"data-slot": "typography-h3",
|
|
23
|
+
className: require_utils.cn("mt-8 scroll-m-20 text-2xl font-semibold tracking-tight", className),
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function TypographyH4({ className, ...props }) {
|
|
28
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", {
|
|
29
|
+
"data-slot": "typography-h4",
|
|
30
|
+
className: require_utils.cn("scroll-m-20 text-xl font-semibold tracking-tight", className),
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function TypographyH5({ className, ...props }) {
|
|
35
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h5", {
|
|
36
|
+
"data-slot": "typography-h5",
|
|
37
|
+
className: require_utils.cn("scroll-m-20 text-lg font-semibold tracking-tight", className),
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function TypographyH6({ className, ...props }) {
|
|
42
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h6", {
|
|
43
|
+
"data-slot": "typography-h6",
|
|
44
|
+
className: require_utils.cn("scroll-m-20 text-base font-semibold tracking-tight", className),
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function TypographyP({ className, ...props }) {
|
|
49
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
50
|
+
"data-slot": "typography-p",
|
|
51
|
+
className: require_utils.cn("not-first:mt-6 leading-7", className),
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function TypographyBlockquote({ className, ...props }) {
|
|
56
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("blockquote", {
|
|
57
|
+
"data-slot": "typography-blockquote",
|
|
58
|
+
className: require_utils.cn("mt-6 border-l-2 pl-6 italic", className),
|
|
59
|
+
...props
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function TypographyUl({ className, ...props }) {
|
|
63
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
64
|
+
"data-slot": "typography-ul",
|
|
65
|
+
className: require_utils.cn("my-6 ml-6 list-disc [&>li]:mt-2", className),
|
|
66
|
+
...props
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function TypographyInlineCode({ className, ...props }) {
|
|
70
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", {
|
|
71
|
+
"data-slot": "typography-inline-code",
|
|
72
|
+
className: require_utils.cn("bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold", className),
|
|
73
|
+
...props
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function TypographyLead({ className, ...props }) {
|
|
77
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
78
|
+
"data-slot": "typography-lead",
|
|
79
|
+
className: require_utils.cn("text-muted-foreground text-xl", className),
|
|
80
|
+
...props
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function TypographyLarge({ className, ...props }) {
|
|
84
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
85
|
+
"data-slot": "typography-large",
|
|
86
|
+
className: require_utils.cn("text-lg font-semibold", className),
|
|
87
|
+
...props
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
function TypographySmall({ className, ...props }) {
|
|
91
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", {
|
|
92
|
+
"data-slot": "typography-small",
|
|
93
|
+
className: require_utils.cn("text-sm font-medium leading-none", className),
|
|
94
|
+
...props
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
function TypographyMuted({ className, ...props }) {
|
|
98
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
99
|
+
"data-slot": "typography-muted",
|
|
100
|
+
className: require_utils.cn("text-muted-foreground text-sm", className),
|
|
101
|
+
...props
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
exports.TypographyBlockquote = TypographyBlockquote;
|
|
106
|
+
exports.TypographyH1 = TypographyH1;
|
|
107
|
+
exports.TypographyH2 = TypographyH2;
|
|
108
|
+
exports.TypographyH3 = TypographyH3;
|
|
109
|
+
exports.TypographyH4 = TypographyH4;
|
|
110
|
+
exports.TypographyH5 = TypographyH5;
|
|
111
|
+
exports.TypographyH6 = TypographyH6;
|
|
112
|
+
exports.TypographyInlineCode = TypographyInlineCode;
|
|
113
|
+
exports.TypographyLarge = TypographyLarge;
|
|
114
|
+
exports.TypographyLead = TypographyLead;
|
|
115
|
+
exports.TypographyMuted = TypographyMuted;
|
|
116
|
+
exports.TypographyP = TypographyP;
|
|
117
|
+
exports.TypographySmall = TypographySmall;
|
|
118
|
+
exports.TypographyUl = TypographyUl;
|
|
119
|
+
|
|
120
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/typography/index.tsx"],"sourcesContent":["import { cn } from \"../../lib\";\n\nexport function TypographyH1({\n className,\n ...props\n}: React.ComponentProps<\"h1\">) {\n return (\n <h1\n data-slot=\"typography-h1\"\n className={cn(\n \"scroll-m-20 text-balance text-center text-4xl font-extrabold tracking-tight\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TypographyH2({\n className,\n ...props\n}: React.ComponentProps<\"h2\">) {\n return (\n <h2\n data-slot=\"typography-h2\"\n className={cn(\n \"mt-10 scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TypographyH3({\n className,\n ...props\n}: React.ComponentProps<\"h3\">) {\n return (\n <h3\n data-slot=\"typography-h3\"\n className={cn(\n \"mt-8 scroll-m-20 text-2xl font-semibold tracking-tight\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TypographyH4({\n className,\n ...props\n}: React.ComponentProps<\"h4\">) {\n return (\n <h4\n data-slot=\"typography-h4\"\n className={cn(\n \"scroll-m-20 text-xl font-semibold tracking-tight\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TypographyH5({\n className,\n ...props\n}: React.ComponentProps<\"h5\">) {\n return (\n <h5\n data-slot=\"typography-h5\"\n className={cn(\n \"scroll-m-20 text-lg font-semibold tracking-tight\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TypographyH6({\n className,\n ...props\n}: React.ComponentProps<\"h6\">) {\n return (\n <h6\n data-slot=\"typography-h6\"\n className={cn(\n \"scroll-m-20 text-base font-semibold tracking-tight\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TypographyP({\n className,\n ...props\n}: React.ComponentProps<\"p\">) {\n return (\n <p\n data-slot=\"typography-p\"\n className={cn(\"not-first:mt-6 leading-7\", className)}\n {...props}\n />\n );\n}\n\nexport function TypographyBlockquote({\n className,\n ...props\n}: React.ComponentProps<\"blockquote\">) {\n return (\n <blockquote\n data-slot=\"typography-blockquote\"\n className={cn(\"mt-6 border-l-2 pl-6 italic\", className)}\n {...props}\n />\n );\n}\n\nexport function TypographyUl({\n className,\n ...props\n}: React.ComponentProps<\"ul\">) {\n return (\n <ul\n data-slot=\"typography-ul\"\n className={cn(\"my-6 ml-6 list-disc [&>li]:mt-2\", className)}\n {...props}\n />\n );\n}\n\nexport function TypographyInlineCode({\n className,\n ...props\n}: React.ComponentProps<\"code\">) {\n return (\n <code\n data-slot=\"typography-inline-code\"\n className={cn(\n \"bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TypographyLead({\n className,\n ...props\n}: React.ComponentProps<\"p\">) {\n return (\n <p\n data-slot=\"typography-lead\"\n className={cn(\"text-muted-foreground text-xl\", className)}\n {...props}\n />\n );\n}\n\nexport function TypographyLarge({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"typography-large\"\n className={cn(\"text-lg font-semibold\", className)}\n {...props}\n />\n );\n}\n\nexport function TypographySmall({\n className,\n ...props\n}: React.ComponentProps<\"small\">) {\n return (\n <small\n data-slot=\"typography-small\"\n className={cn(\"text-sm font-medium leading-none\", className)}\n {...props}\n />\n );\n}\n\nexport function TypographyMuted({\n className,\n ...props\n}: React.ComponentProps<\"p\">) {\n return (\n <p\n data-slot=\"typography-muted\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n"],"mappings":";;;;;AAEA,SAAgB,aAAa,EAC3B,WACA,GAAG,SAC0B;AAC7B,QACE,iBAAA,GAAA,kBAAA,KAAC,MAAD;EACE,aAAU;EACV,WAAW,cAAA,GACT,+EACA,UACD;EACD,GAAI;EACJ,CAAA;;AAIN,SAAgB,aAAa,EAC3B,WACA,GAAG,SAC0B;AAC7B,QACE,iBAAA,GAAA,kBAAA,KAAC,MAAD;EACE,aAAU;EACV,WAAW,cAAA,GACT,oFACA,UACD;EACD,GAAI;EACJ,CAAA;;AAIN,SAAgB,aAAa,EAC3B,WACA,GAAG,SAC0B;AAC7B,QACE,iBAAA,GAAA,kBAAA,KAAC,MAAD;EACE,aAAU;EACV,WAAW,cAAA,GACT,0DACA,UACD;EACD,GAAI;EACJ,CAAA;;AAIN,SAAgB,aAAa,EAC3B,WACA,GAAG,SAC0B;AAC7B,QACE,iBAAA,GAAA,kBAAA,KAAC,MAAD;EACE,aAAU;EACV,WAAW,cAAA,GACT,oDACA,UACD;EACD,GAAI;EACJ,CAAA;;AAIN,SAAgB,aAAa,EAC3B,WACA,GAAG,SAC0B;AAC7B,QACE,iBAAA,GAAA,kBAAA,KAAC,MAAD;EACE,aAAU;EACV,WAAW,cAAA,GACT,oDACA,UACD;EACD,GAAI;EACJ,CAAA;;AAIN,SAAgB,aAAa,EAC3B,WACA,GAAG,SAC0B;AAC7B,QACE,iBAAA,GAAA,kBAAA,KAAC,MAAD;EACE,aAAU;EACV,WAAW,cAAA,GACT,sDACA,UACD;EACD,GAAI;EACJ,CAAA;;AAIN,SAAgB,YAAY,EAC1B,WACA,GAAG,SACyB;AAC5B,QACE,iBAAA,GAAA,kBAAA,KAAC,KAAD;EACE,aAAU;EACV,WAAW,cAAA,GAAG,4BAA4B,UAAU;EACpD,GAAI;EACJ,CAAA;;AAIN,SAAgB,qBAAqB,EACnC,WACA,GAAG,SACkC;AACrC,QACE,iBAAA,GAAA,kBAAA,KAAC,cAAD;EACE,aAAU;EACV,WAAW,cAAA,GAAG,+BAA+B,UAAU;EACvD,GAAI;EACJ,CAAA;;AAIN,SAAgB,aAAa,EAC3B,WACA,GAAG,SAC0B;AAC7B,QACE,iBAAA,GAAA,kBAAA,KAAC,MAAD;EACE,aAAU;EACV,WAAW,cAAA,GAAG,mCAAmC,UAAU;EAC3D,GAAI;EACJ,CAAA;;AAIN,SAAgB,qBAAqB,EACnC,WACA,GAAG,SAC4B;AAC/B,QACE,iBAAA,GAAA,kBAAA,KAAC,QAAD;EACE,aAAU;EACV,WAAW,cAAA,GACT,qFACA,UACD;EACD,GAAI;EACJ,CAAA;;AAIN,SAAgB,eAAe,EAC7B,WACA,GAAG,SACyB;AAC5B,QACE,iBAAA,GAAA,kBAAA,KAAC,KAAD;EACE,aAAU;EACV,WAAW,cAAA,GAAG,iCAAiC,UAAU;EACzD,GAAI;EACJ,CAAA;;AAIN,SAAgB,gBAAgB,EAC9B,WACA,GAAG,SAC2B;AAC9B,QACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EACE,aAAU;EACV,WAAW,cAAA,GAAG,yBAAyB,UAAU;EACjD,GAAI;EACJ,CAAA;;AAIN,SAAgB,gBAAgB,EAC9B,WACA,GAAG,SAC6B;AAChC,QACE,iBAAA,GAAA,kBAAA,KAAC,SAAD;EACE,aAAU;EACV,WAAW,cAAA,GAAG,oCAAoC,UAAU;EAC5D,GAAI;EACJ,CAAA;;AAIN,SAAgB,gBAAgB,EAC9B,WACA,GAAG,SACyB;AAC5B,QACE,iBAAA,GAAA,kBAAA,KAAC,KAAD;EACE,aAAU;EACV,WAAW,cAAA,GAAG,iCAAiC,UAAU;EACzD,GAAI;EACJ,CAAA"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { t as cn } from "../utils-Bg4z4cXr.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/typography/index.tsx
|
|
4
|
+
function TypographyH1({ className, ...props }) {
|
|
5
|
+
return /* @__PURE__ */ jsx("h1", {
|
|
6
|
+
"data-slot": "typography-h1",
|
|
7
|
+
className: cn("scroll-m-20 text-balance text-center text-4xl font-extrabold tracking-tight", className),
|
|
8
|
+
...props
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function TypographyH2({ className, ...props }) {
|
|
12
|
+
return /* @__PURE__ */ jsx("h2", {
|
|
13
|
+
"data-slot": "typography-h2",
|
|
14
|
+
className: cn("mt-10 scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0", className),
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function TypographyH3({ className, ...props }) {
|
|
19
|
+
return /* @__PURE__ */ jsx("h3", {
|
|
20
|
+
"data-slot": "typography-h3",
|
|
21
|
+
className: cn("mt-8 scroll-m-20 text-2xl font-semibold tracking-tight", className),
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function TypographyH4({ className, ...props }) {
|
|
26
|
+
return /* @__PURE__ */ jsx("h4", {
|
|
27
|
+
"data-slot": "typography-h4",
|
|
28
|
+
className: cn("scroll-m-20 text-xl font-semibold tracking-tight", className),
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function TypographyH5({ className, ...props }) {
|
|
33
|
+
return /* @__PURE__ */ jsx("h5", {
|
|
34
|
+
"data-slot": "typography-h5",
|
|
35
|
+
className: cn("scroll-m-20 text-lg font-semibold tracking-tight", className),
|
|
36
|
+
...props
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function TypographyH6({ className, ...props }) {
|
|
40
|
+
return /* @__PURE__ */ jsx("h6", {
|
|
41
|
+
"data-slot": "typography-h6",
|
|
42
|
+
className: cn("scroll-m-20 text-base font-semibold tracking-tight", className),
|
|
43
|
+
...props
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function TypographyP({ className, ...props }) {
|
|
47
|
+
return /* @__PURE__ */ jsx("p", {
|
|
48
|
+
"data-slot": "typography-p",
|
|
49
|
+
className: cn("not-first:mt-6 leading-7", className),
|
|
50
|
+
...props
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function TypographyBlockquote({ className, ...props }) {
|
|
54
|
+
return /* @__PURE__ */ jsx("blockquote", {
|
|
55
|
+
"data-slot": "typography-blockquote",
|
|
56
|
+
className: cn("mt-6 border-l-2 pl-6 italic", className),
|
|
57
|
+
...props
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function TypographyUl({ className, ...props }) {
|
|
61
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
62
|
+
"data-slot": "typography-ul",
|
|
63
|
+
className: cn("my-6 ml-6 list-disc [&>li]:mt-2", className),
|
|
64
|
+
...props
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function TypographyInlineCode({ className, ...props }) {
|
|
68
|
+
return /* @__PURE__ */ jsx("code", {
|
|
69
|
+
"data-slot": "typography-inline-code",
|
|
70
|
+
className: cn("bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold", className),
|
|
71
|
+
...props
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function TypographyLead({ className, ...props }) {
|
|
75
|
+
return /* @__PURE__ */ jsx("p", {
|
|
76
|
+
"data-slot": "typography-lead",
|
|
77
|
+
className: cn("text-muted-foreground text-xl", className),
|
|
78
|
+
...props
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function TypographyLarge({ className, ...props }) {
|
|
82
|
+
return /* @__PURE__ */ jsx("div", {
|
|
83
|
+
"data-slot": "typography-large",
|
|
84
|
+
className: cn("text-lg font-semibold", className),
|
|
85
|
+
...props
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function TypographySmall({ className, ...props }) {
|
|
89
|
+
return /* @__PURE__ */ jsx("small", {
|
|
90
|
+
"data-slot": "typography-small",
|
|
91
|
+
className: cn("text-sm font-medium leading-none", className),
|
|
92
|
+
...props
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
function TypographyMuted({ className, ...props }) {
|
|
96
|
+
return /* @__PURE__ */ jsx("p", {
|
|
97
|
+
"data-slot": "typography-muted",
|
|
98
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
99
|
+
...props
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
103
|
+
export { TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyH5, TypographyH6, TypographyInlineCode, TypographyLarge, TypographyLead, TypographyMuted, TypographyP, TypographySmall, TypographyUl };
|
|
104
|
+
|
|
105
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/typography/index.tsx"],"sourcesContent":["import { cn } from \"../../lib\";\n\nexport function TypographyH1({\n className,\n ...props\n}: React.ComponentProps<\"h1\">) {\n return (\n <h1\n data-slot=\"typography-h1\"\n className={cn(\n \"scroll-m-20 text-balance text-center text-4xl font-extrabold tracking-tight\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TypographyH2({\n className,\n ...props\n}: React.ComponentProps<\"h2\">) {\n return (\n <h2\n data-slot=\"typography-h2\"\n className={cn(\n \"mt-10 scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TypographyH3({\n className,\n ...props\n}: React.ComponentProps<\"h3\">) {\n return (\n <h3\n data-slot=\"typography-h3\"\n className={cn(\n \"mt-8 scroll-m-20 text-2xl font-semibold tracking-tight\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TypographyH4({\n className,\n ...props\n}: React.ComponentProps<\"h4\">) {\n return (\n <h4\n data-slot=\"typography-h4\"\n className={cn(\n \"scroll-m-20 text-xl font-semibold tracking-tight\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TypographyH5({\n className,\n ...props\n}: React.ComponentProps<\"h5\">) {\n return (\n <h5\n data-slot=\"typography-h5\"\n className={cn(\n \"scroll-m-20 text-lg font-semibold tracking-tight\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TypographyH6({\n className,\n ...props\n}: React.ComponentProps<\"h6\">) {\n return (\n <h6\n data-slot=\"typography-h6\"\n className={cn(\n \"scroll-m-20 text-base font-semibold tracking-tight\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TypographyP({\n className,\n ...props\n}: React.ComponentProps<\"p\">) {\n return (\n <p\n data-slot=\"typography-p\"\n className={cn(\"not-first:mt-6 leading-7\", className)}\n {...props}\n />\n );\n}\n\nexport function TypographyBlockquote({\n className,\n ...props\n}: React.ComponentProps<\"blockquote\">) {\n return (\n <blockquote\n data-slot=\"typography-blockquote\"\n className={cn(\"mt-6 border-l-2 pl-6 italic\", className)}\n {...props}\n />\n );\n}\n\nexport function TypographyUl({\n className,\n ...props\n}: React.ComponentProps<\"ul\">) {\n return (\n <ul\n data-slot=\"typography-ul\"\n className={cn(\"my-6 ml-6 list-disc [&>li]:mt-2\", className)}\n {...props}\n />\n );\n}\n\nexport function TypographyInlineCode({\n className,\n ...props\n}: React.ComponentProps<\"code\">) {\n return (\n <code\n data-slot=\"typography-inline-code\"\n className={cn(\n \"bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TypographyLead({\n className,\n ...props\n}: React.ComponentProps<\"p\">) {\n return (\n <p\n data-slot=\"typography-lead\"\n className={cn(\"text-muted-foreground text-xl\", className)}\n {...props}\n />\n );\n}\n\nexport function TypographyLarge({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"typography-large\"\n className={cn(\"text-lg font-semibold\", className)}\n {...props}\n />\n );\n}\n\nexport function TypographySmall({\n className,\n ...props\n}: React.ComponentProps<\"small\">) {\n return (\n <small\n data-slot=\"typography-small\"\n className={cn(\"text-sm font-medium leading-none\", className)}\n {...props}\n />\n );\n}\n\nexport function TypographyMuted({\n className,\n ...props\n}: React.ComponentProps<\"p\">) {\n return (\n <p\n data-slot=\"typography-muted\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n"],"mappings":";;;AAEA,SAAgB,aAAa,EAC3B,WACA,GAAG,SAC0B;AAC7B,QACE,oBAAC,MAAD;EACE,aAAU;EACV,WAAW,GACT,+EACA,UACD;EACD,GAAI;EACJ,CAAA;;AAIN,SAAgB,aAAa,EAC3B,WACA,GAAG,SAC0B;AAC7B,QACE,oBAAC,MAAD;EACE,aAAU;EACV,WAAW,GACT,oFACA,UACD;EACD,GAAI;EACJ,CAAA;;AAIN,SAAgB,aAAa,EAC3B,WACA,GAAG,SAC0B;AAC7B,QACE,oBAAC,MAAD;EACE,aAAU;EACV,WAAW,GACT,0DACA,UACD;EACD,GAAI;EACJ,CAAA;;AAIN,SAAgB,aAAa,EAC3B,WACA,GAAG,SAC0B;AAC7B,QACE,oBAAC,MAAD;EACE,aAAU;EACV,WAAW,GACT,oDACA,UACD;EACD,GAAI;EACJ,CAAA;;AAIN,SAAgB,aAAa,EAC3B,WACA,GAAG,SAC0B;AAC7B,QACE,oBAAC,MAAD;EACE,aAAU;EACV,WAAW,GACT,oDACA,UACD;EACD,GAAI;EACJ,CAAA;;AAIN,SAAgB,aAAa,EAC3B,WACA,GAAG,SAC0B;AAC7B,QACE,oBAAC,MAAD;EACE,aAAU;EACV,WAAW,GACT,sDACA,UACD;EACD,GAAI;EACJ,CAAA;;AAIN,SAAgB,YAAY,EAC1B,WACA,GAAG,SACyB;AAC5B,QACE,oBAAC,KAAD;EACE,aAAU;EACV,WAAW,GAAG,4BAA4B,UAAU;EACpD,GAAI;EACJ,CAAA;;AAIN,SAAgB,qBAAqB,EACnC,WACA,GAAG,SACkC;AACrC,QACE,oBAAC,cAAD;EACE,aAAU;EACV,WAAW,GAAG,+BAA+B,UAAU;EACvD,GAAI;EACJ,CAAA;;AAIN,SAAgB,aAAa,EAC3B,WACA,GAAG,SAC0B;AAC7B,QACE,oBAAC,MAAD;EACE,aAAU;EACV,WAAW,GAAG,mCAAmC,UAAU;EAC3D,GAAI;EACJ,CAAA;;AAIN,SAAgB,qBAAqB,EACnC,WACA,GAAG,SAC4B;AAC/B,QACE,oBAAC,QAAD;EACE,aAAU;EACV,WAAW,GACT,qFACA,UACD;EACD,GAAI;EACJ,CAAA;;AAIN,SAAgB,eAAe,EAC7B,WACA,GAAG,SACyB;AAC5B,QACE,oBAAC,KAAD;EACE,aAAU;EACV,WAAW,GAAG,iCAAiC,UAAU;EACzD,GAAI;EACJ,CAAA;;AAIN,SAAgB,gBAAgB,EAC9B,WACA,GAAG,SAC2B;AAC9B,QACE,oBAAC,OAAD;EACE,aAAU;EACV,WAAW,GAAG,yBAAyB,UAAU;EACjD,GAAI;EACJ,CAAA;;AAIN,SAAgB,gBAAgB,EAC9B,WACA,GAAG,SAC6B;AAChC,QACE,oBAAC,SAAD;EACE,aAAU;EACV,WAAW,GAAG,oCAAoC,UAAU;EAC5D,GAAI;EACJ,CAAA;;AAIN,SAAgB,gBAAgB,EAC9B,WACA,GAAG,SACyB;AAC5B,QACE,oBAAC,KAAD;EACE,aAAU;EACV,WAAW,GAAG,iCAAiC,UAAU;EACzD,GAAI;EACJ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-
|
|
1
|
+
{"version":3,"file":"utils-Bg4z4cXr.mjs","names":[],"sources":["../lib/utils.ts"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";;;AAGA,SAAgB,GAAG,GAAG,QAAsB;AAC1C,QAAO,QAAQ,KAAK,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require("./chunk-
|
|
1
|
+
require("./chunk-8l464Juk.js");
|
|
2
2
|
let clsx = require("clsx");
|
|
3
3
|
let tailwind_merge = require("tailwind-merge");
|
|
4
4
|
//#region lib/utils.ts
|
|
@@ -13,4 +13,4 @@ Object.defineProperty(exports, "cn", {
|
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
|
|
16
|
-
//# sourceMappingURL=utils-
|
|
16
|
+
//# sourceMappingURL=utils-DrngEK1K.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-
|
|
1
|
+
{"version":3,"file":"utils-DrngEK1K.js","names":[],"sources":["../lib/utils.ts"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";;;;AAGA,SAAgB,GAAG,GAAG,QAAsB;AAC1C,SAAA,GAAA,eAAA,UAAA,GAAA,KAAA,MAAoB,OAAO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lynote-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Reusable React UI component library.",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -146,11 +146,6 @@
|
|
|
146
146
|
"require": "./dist/field/index.js",
|
|
147
147
|
"import": "./dist/field/index.mjs"
|
|
148
148
|
},
|
|
149
|
-
"./form": {
|
|
150
|
-
"types": "./dist/form/index.d.ts",
|
|
151
|
-
"require": "./dist/form/index.js",
|
|
152
|
-
"import": "./dist/form/index.mjs"
|
|
153
|
-
},
|
|
154
149
|
"./hover-card": {
|
|
155
150
|
"types": "./dist/hover-card/index.d.ts",
|
|
156
151
|
"require": "./dist/hover-card/index.js",
|
|
@@ -306,6 +301,11 @@
|
|
|
306
301
|
"require": "./dist/tooltip/index.js",
|
|
307
302
|
"import": "./dist/tooltip/index.mjs"
|
|
308
303
|
},
|
|
304
|
+
"./typography": {
|
|
305
|
+
"types": "./dist/typography/index.d.ts",
|
|
306
|
+
"require": "./dist/typography/index.js",
|
|
307
|
+
"import": "./dist/typography/index.mjs"
|
|
308
|
+
},
|
|
309
309
|
"./package.json": "./package.json"
|
|
310
310
|
},
|
|
311
311
|
"scripts": {
|
|
@@ -338,7 +338,9 @@
|
|
|
338
338
|
},
|
|
339
339
|
"dependencies": {
|
|
340
340
|
"@base-ui/react": "^1.4.1",
|
|
341
|
+
"@hookform/resolvers": "^5.2.2",
|
|
341
342
|
"@radix-ui/react-slot": "^1.2.4",
|
|
343
|
+
"@tanstack/react-table": "^8.21.3",
|
|
342
344
|
"class-variance-authority": "^0.7.1",
|
|
343
345
|
"clsx": "^2.1.1",
|
|
344
346
|
"cmdk": "^1.1.1",
|
|
@@ -354,7 +356,8 @@
|
|
|
354
356
|
"shadcn": "^4.1.1",
|
|
355
357
|
"sonner": "^2.0.7",
|
|
356
358
|
"tailwind-merge": "^3.4.0",
|
|
357
|
-
"vaul": "^1.1.2"
|
|
359
|
+
"vaul": "^1.1.2",
|
|
360
|
+
"zod": "^4.3.6"
|
|
358
361
|
},
|
|
359
362
|
"devDependencies": {
|
|
360
363
|
"@tailwindcss/postcss": "4.2.2",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { FormPropsType } from '../type';
|
|
3
|
-
declare const FormRoot: <TFormValues extends FieldValues>({ onSubmit, className, ...props }: FormPropsType<TFormValues>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default FormRoot;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
-
declare const FormDescription: ForwardRefExoticComponent<Omit< DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & RefAttributes<HTMLParagraphElement>>;
|
|
3
|
-
export default FormDescription;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
2
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default FormField;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
2
|
-
import { FormItemPropsType } from '../type';
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
declare const FormItemWithRef: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: FormItemPropsType<TFieldValues, TName> & {
|
|
5
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
6
|
-
}) => React.ReactElement;
|
|
7
|
-
export default FormItemWithRef;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent, ClassAttributes, LabelHTMLAttributes, RefAttributes } from 'react';
|
|
2
|
-
declare const FormLabel: ForwardRefExoticComponent<Omit< ClassAttributes<HTMLLabelElement> & LabelHTMLAttributes<HTMLLabelElement>, "ref"> & RefAttributes<HTMLLabelElement>>;
|
|
3
|
-
export default FormLabel;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
-
export declare const formDescriptionVariants: (props?: ClassProp | undefined) => string;
|
|
3
|
-
export declare const formItemVariants: (props?: ClassProp | undefined) => string;
|
|
4
|
-
export declare const formItemMesVariants: (props?: ClassProp | undefined) => string;
|
|
5
|
-
export declare const formMessageVariants: (props?: ClassProp | undefined) => string;
|
|
6
|
-
export declare const formRootVariants: (props?: ClassProp | undefined) => string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FieldError } from 'react-hook-form';
|
|
2
|
-
declare const useFormField: () => {
|
|
3
|
-
invalid: boolean;
|
|
4
|
-
isDirty: boolean;
|
|
5
|
-
isTouched: boolean;
|
|
6
|
-
isValidating: boolean;
|
|
7
|
-
error?: FieldError;
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
formItemId: string;
|
|
11
|
-
formDescriptionId: string;
|
|
12
|
-
formMessageId: string;
|
|
13
|
-
};
|
|
14
|
-
export default useFormField;
|
package/dist/form/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as FormRoot } from './components/Form';
|
|
2
|
-
import { default as FormControl } from './components/FormControl';
|
|
3
|
-
import { default as FormDescription } from './components/FormDescription';
|
|
4
|
-
import { default as FormField } from './components/FormField';
|
|
5
|
-
import { default as FormItem } from './components/FormItem';
|
|
6
|
-
import { default as FormLabel } from './components/FormLabel';
|
|
7
|
-
import { default as FormMessage } from './components/FormMessage';
|
|
8
|
-
import { default as useFormField } from './hooks/useFormField';
|
|
9
|
-
export * from 'react-hook-form';
|
|
10
|
-
export * from './type';
|
|
11
|
-
export { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormRoot, useFormField, };
|
package/dist/form/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_form = require("../form-h_cJBAwg.js");
|
|
3
|
-
exports.FormControl = require_form.FormControl;
|
|
4
|
-
exports.FormDescription = require_form.FormDescription;
|
|
5
|
-
exports.FormField = require_form.FormField;
|
|
6
|
-
exports.FormItem = require_form.FormItemWithRef;
|
|
7
|
-
exports.FormLabel = require_form.FormLabel;
|
|
8
|
-
exports.FormMessage = require_form.FormMessage;
|
|
9
|
-
exports.FormRoot = require_form.FormRoot;
|
|
10
|
-
exports.useFormField = require_form.useFormField;
|
|
11
|
-
var react_hook_form = require("react-hook-form");
|
|
12
|
-
Object.keys(react_hook_form).forEach(function(k) {
|
|
13
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function() {
|
|
16
|
-
return react_hook_form[k];
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
});
|
package/dist/form/index.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { a as FormDescription, c as FormRoot, i as FormField, n as FormMessage, o as FormControl, r as FormLabel, s as useFormField, t as FormItemWithRef } from "../form-DLd4sOko.mjs";
|
|
2
|
-
export * from "react-hook-form";
|
|
3
|
-
export { FormControl, FormDescription, FormField, FormItemWithRef as FormItem, FormLabel, FormMessage, FormRoot, useFormField };
|