@brightlocal/ui-components 1.2.3 → 1.3.0
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/README.md +1 -1
- package/component-meta.json +492 -113
- package/dist/blocks/input-list.cjs +2 -2
- package/dist/blocks/input-list.d.ts +2 -9
- package/dist/blocks/input-list.d.ts.map +1 -1
- package/dist/blocks/input-list.js +134 -173
- package/dist/hooks/use-prefers-reduced-motion.cjs +1 -0
- package/dist/hooks/use-prefers-reduced-motion.d.ts +7 -0
- package/dist/hooks/use-prefers-reduced-motion.d.ts.map +1 -0
- package/dist/hooks/use-prefers-reduced-motion.js +18 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +133 -129
- package/dist/text-reveal-motion.cjs +1 -0
- package/dist/text-reveal-motion.d.ts +73 -0
- package/dist/text-reveal-motion.d.ts.map +1 -0
- package/dist/text-reveal-motion.js +315 -0
- package/package.json +5 -3
- package/src/blocks/input-list.tsx +97 -152
- package/src/components/text-reveal-motion.tsx +568 -0
- package/src/hooks/use-prefers-reduced-motion.ts +28 -0
- package/src/index.ts +2 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),
|
|
2
|
-
`);
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),E=require("react"),I=require("framer-motion"),L=require("@brightlocal/icons"),N=require("@brightlocal/ui-components/lib/utils"),T=require("../button.cjs"),D=require("../field.cjs"),z=require("../input.cjs"),d=require("../list.cjs");function B(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return a.default=e,Object.freeze(a)}const o=B(E);function k({value:e,onValueChange:a,placeholder:r="Add item",addButtonLabel:c="Add",skeletonCount:$=3,disabled:u=!1,loading:f=!1,error:g=!1,errorMessage:b,description:j,dataHook:l,trackingEl:q,trackingLabel:A,className:S}){const[p,y]=o.useState(""),m=o.useRef(e.length),[_,x]=o.useState(()=>e.map((t,s)=>s));o.useEffect(()=>{x(t=>t.length===e.length?t:e.length>t.length?[...t,...Array.from({length:e.length-t.length},()=>m.current++)]:e.map(()=>m.current++))},[e]);const O=u||f,P=u||f,h=o.useCallback(t=>{const s=t.map(i=>i.trim()).filter(Boolean);s.length&&(x(i=>[...i,...s.map(()=>m.current++)]),a([...e,...s]),y(""))},[e,a]),R=o.useCallback(t=>{x(s=>s.filter((i,C)=>C!==t)),a(e.filter((s,i)=>i!==t))},[e,a]),w=t=>{t.key==="Enter"&&(t.preventDefault(),h([p]))},K=t=>{const i=t.clipboardData.getData("text").split(`
|
|
2
|
+
`);i.length>1&&(t.preventDefault(),h(i))};return n.jsxs("div",{className:N.cn("flex flex-col gap-4",S),"data-hook":l,"data-slot":"input-list","data-tracking-el":q,"data-tracking-label":A,children:[f?n.jsx("ul",{className:"flex flex-col gap-2","data-slot":"input-list-skeleton",children:Array.from({length:$}).map((t,s)=>n.jsx(d.Item,{variant:"loading"},s))}):n.jsx("ul",{className:"flex flex-col gap-2","data-hook":`${l}-list`,"data-slot":"list",children:n.jsx(I.AnimatePresence,{initial:!1,children:e.map((t,s)=>n.jsx(I.motion.li,{layout:!0,animate:{opacity:1,scale:1},"data-hook":`${l}-item-${s}`,"data-slot":"item",exit:{opacity:0,scale:.8,transition:{opacity:{duration:.15},scale:{duration:.12}}},initial:{opacity:0,scale:.8},transition:{opacity:{duration:.15},scale:{duration:.15},layout:{type:"spring",stiffness:500,damping:35}},children:n.jsxs("div",{className:"bg-card flex items-center gap-4 rounded-lg py-2 pr-2 pl-4",children:[n.jsx(d.ItemContent,{children:n.jsx(d.ItemTitle,{children:t})}),n.jsx(d.ItemActions,{children:n.jsx("button",{"aria-label":`Remove ${t}`,className:N.cn("inline-flex size-9 cursor-pointer items-center justify-center rounded-full","text-muted-foreground","focus-visible:shadow-default outline-none","transition-colors duration-150 ease-in-out","disabled:pointer-events-none disabled:opacity-50"),"data-hook":`${l}-remove-${s}`,disabled:u,type:"button",onClick:()=>R(s),children:n.jsx(L.X,{})})})]})},_[s]))})}),n.jsxs("div",{className:"flex flex-col gap-2","data-slot":"input-list-input-area",children:[n.jsxs("div",{className:"flex gap-2",children:[n.jsx(z.Input,{className:"flex-1",dataHook:`${l}-input`,disabled:O,error:g,placeholder:r,value:p,onChange:t=>y(t.target.value),onKeyDown:w,onPaste:K}),n.jsx(T.Button,{dataHook:`${l}-add`,disabled:P,onClick:()=>h([p]),children:c})]}),g&&b?n.jsx(D.FieldError,{className:"text-left","data-slot":"input-list-error",dataHook:`${l}-error`,children:b}):j&&n.jsx(D.FieldDescription,{className:"text-left","data-slot":"input-list-description",dataHook:`${l}-description`,children:j})]})]})}k.displayName="InputList";exports.InputList=k;
|
|
@@ -11,11 +11,6 @@ export interface InputListProps {
|
|
|
11
11
|
* Called when the list of items changes.
|
|
12
12
|
*/
|
|
13
13
|
onValueChange: (value: string[]) => void;
|
|
14
|
-
/**
|
|
15
|
-
* Maximum number of items allowed.
|
|
16
|
-
* When reached, the input and add button are disabled and a count indicator is shown.
|
|
17
|
-
*/
|
|
18
|
-
maxItems?: number;
|
|
19
14
|
/**
|
|
20
15
|
* Placeholder text for the text input.
|
|
21
16
|
* @default "Add item"
|
|
@@ -71,8 +66,7 @@ export interface InputListProps {
|
|
|
71
66
|
/**
|
|
72
67
|
* InputList block — a managed list of text items with an add-input and per-row remove controls.
|
|
73
68
|
*
|
|
74
|
-
* Supports a
|
|
75
|
-
* multi-line paste (each line becomes a separate item), loading skeletons, disabled state,
|
|
69
|
+
* Supports multi-line paste (each line becomes a separate item), loading skeletons, disabled state,
|
|
76
70
|
* and input error/validation state.
|
|
77
71
|
*
|
|
78
72
|
* @example
|
|
@@ -80,12 +74,11 @@ export interface InputListProps {
|
|
|
80
74
|
* <InputList
|
|
81
75
|
* value={keywords}
|
|
82
76
|
* onValueChange={setKeywords}
|
|
83
|
-
* maxItems={10}
|
|
84
77
|
* dataHook="keywords"
|
|
85
78
|
* />
|
|
86
79
|
* ```
|
|
87
80
|
*/
|
|
88
|
-
declare function InputList({ value, onValueChange,
|
|
81
|
+
declare function InputList({ value, onValueChange, placeholder, addButtonLabel, skeletonCount, disabled, loading, error, errorMessage, description, dataHook, trackingEl, trackingLabel, className, }: InputListProps): import("react/jsx-runtime").JSX.Element;
|
|
89
82
|
declare namespace InputList {
|
|
90
83
|
var displayName: string;
|
|
91
84
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-list.d.ts","sourceRoot":"","sources":["../../src/blocks/input-list.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-list.d.ts","sourceRoot":"","sources":["../../src/blocks/input-list.tsx"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;OAEG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;GAcG;AACH,iBAAS,SAAS,CAAC,EACjB,KAAK,EACL,aAAa,EACb,WAAwB,EACxB,cAAsB,EACtB,aAAiB,EACjB,QAAgB,EAChB,OAAe,EACf,KAAa,EACb,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,UAAU,EACV,aAAa,EACb,SAAS,GACV,EAAE,cAAc,2CAkMhB;kBAjNQ,SAAS;;;AAqNlB,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,207 +1,168 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
placeholder:
|
|
14
|
-
addButtonLabel:
|
|
15
|
-
skeletonCount:
|
|
16
|
-
disabled:
|
|
17
|
-
loading:
|
|
18
|
-
error:
|
|
19
|
-
errorMessage:
|
|
20
|
-
description:
|
|
1
|
+
import { jsxs as r, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { AnimatePresence as P, motion as S } from "framer-motion";
|
|
4
|
+
import { X as B } from "@brightlocal/icons";
|
|
5
|
+
import { cn as b } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
+
import { Button as F } from "../button.js";
|
|
7
|
+
import { FieldError as L, FieldDescription as z } from "../field.js";
|
|
8
|
+
import { Input as T } from "../input.js";
|
|
9
|
+
import { Item as X, ItemContent as q, ItemTitle as G, ItemActions as J } from "../list.js";
|
|
10
|
+
function O({
|
|
11
|
+
value: i,
|
|
12
|
+
onValueChange: o,
|
|
13
|
+
placeholder: I = "Add item",
|
|
14
|
+
addButtonLabel: N = "Add",
|
|
15
|
+
skeletonCount: $ = 3,
|
|
16
|
+
disabled: c = !1,
|
|
17
|
+
loading: d = !1,
|
|
18
|
+
error: h = !1,
|
|
19
|
+
errorMessage: g,
|
|
20
|
+
description: y,
|
|
21
21
|
dataHook: l,
|
|
22
|
-
trackingEl:
|
|
23
|
-
trackingLabel:
|
|
24
|
-
className:
|
|
22
|
+
trackingEl: k,
|
|
23
|
+
trackingLabel: D,
|
|
24
|
+
className: A
|
|
25
25
|
}) {
|
|
26
|
-
const [
|
|
27
|
-
() =>
|
|
28
|
-
), [b, D] = o.useState(
|
|
29
|
-
() => /* @__PURE__ */ new Set()
|
|
26
|
+
const [m, x] = s.useState(""), p = s.useRef(i.length), [K, f] = s.useState(
|
|
27
|
+
() => i.map((t, e) => e)
|
|
30
28
|
);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}, [e]);
|
|
42
|
-
const y = o.useRef(/* @__PURE__ */ new Set());
|
|
43
|
-
o.useEffect(() => {
|
|
44
|
-
const t = y.current;
|
|
45
|
-
return () => {
|
|
46
|
-
t.forEach(clearTimeout), t.clear();
|
|
47
|
-
};
|
|
48
|
-
}, []);
|
|
49
|
-
const v = o.useRef(e.length), [T, m] = o.useState(
|
|
50
|
-
() => e.map((t, n) => n)
|
|
51
|
-
);
|
|
52
|
-
o.useEffect(() => {
|
|
53
|
-
m((t) => t.length !== e.length ? e.map(() => v.current++) : t);
|
|
54
|
-
}, [e]);
|
|
55
|
-
const E = c !== void 0 && e.length >= c, z = p || E || h, B = p || E || h, R = o.useCallback(
|
|
29
|
+
s.useEffect(() => {
|
|
30
|
+
f((t) => t.length === i.length ? t : i.length > t.length ? [
|
|
31
|
+
...t,
|
|
32
|
+
...Array.from(
|
|
33
|
+
{ length: i.length - t.length },
|
|
34
|
+
() => p.current++
|
|
35
|
+
)
|
|
36
|
+
] : i.map(() => p.current++));
|
|
37
|
+
}, [i]);
|
|
38
|
+
const R = c || d, _ = c || d, u = s.useCallback(
|
|
56
39
|
(t) => {
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"(prefers-reduced-motion: reduce)"
|
|
63
|
-
).matches) {
|
|
64
|
-
const d = e.length;
|
|
65
|
-
D(new Set(i.map((tt, G) => d + G)));
|
|
66
|
-
}
|
|
67
|
-
m((d) => [
|
|
68
|
-
...d,
|
|
69
|
-
...i.map(() => v.current++)
|
|
70
|
-
]), f([...e, ...i]), A("");
|
|
71
|
-
}
|
|
40
|
+
const e = t.map((n) => n.trim()).filter(Boolean);
|
|
41
|
+
e.length && (f((n) => [
|
|
42
|
+
...n,
|
|
43
|
+
...e.map(() => p.current++)
|
|
44
|
+
]), o([...i, ...e]), x(""));
|
|
72
45
|
},
|
|
73
|
-
[
|
|
74
|
-
),
|
|
46
|
+
[i, o]
|
|
47
|
+
), j = s.useCallback(
|
|
75
48
|
(t) => {
|
|
76
|
-
|
|
77
|
-
"(prefers-reduced-motion: reduce)"
|
|
78
|
-
).matches) {
|
|
79
|
-
m((i) => i.filter((s, d) => d !== t)), f(w.current.filter((i, s) => s !== t));
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
k((i) => new Set(i).add(t));
|
|
83
|
-
const a = setTimeout(() => {
|
|
84
|
-
y.current.delete(a), k((i) => {
|
|
85
|
-
const s = new Set(i);
|
|
86
|
-
return s.delete(t), s;
|
|
87
|
-
}), m((i) => i.filter((s, d) => d !== t)), f(w.current.filter((i, s) => s !== t));
|
|
88
|
-
}, 200);
|
|
89
|
-
y.current.add(a);
|
|
49
|
+
f((e) => e.filter((n, E) => E !== t)), o(i.filter((e, n) => n !== t));
|
|
90
50
|
},
|
|
91
|
-
[
|
|
92
|
-
),
|
|
93
|
-
t.key === "Enter" && (t.preventDefault(),
|
|
94
|
-
},
|
|
95
|
-
const
|
|
51
|
+
[i, o]
|
|
52
|
+
), w = (t) => {
|
|
53
|
+
t.key === "Enter" && (t.preventDefault(), u([m]));
|
|
54
|
+
}, C = (t) => {
|
|
55
|
+
const n = t.clipboardData.getData("text").split(`
|
|
96
56
|
`);
|
|
97
|
-
|
|
57
|
+
n.length > 1 && (t.preventDefault(), u(n));
|
|
98
58
|
};
|
|
99
|
-
return /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ r(
|
|
100
60
|
"div",
|
|
101
61
|
{
|
|
102
|
-
className:
|
|
62
|
+
className: b("flex flex-col gap-4", A),
|
|
103
63
|
"data-hook": l,
|
|
104
64
|
"data-slot": "input-list",
|
|
105
|
-
"data-tracking-el":
|
|
106
|
-
"data-tracking-label":
|
|
65
|
+
"data-tracking-el": k,
|
|
66
|
+
"data-tracking-label": D,
|
|
107
67
|
children: [
|
|
108
|
-
|
|
68
|
+
d ? /* @__PURE__ */ a("ul", { className: "flex flex-col gap-2", "data-slot": "input-list-skeleton", children: Array.from({ length: $ }).map((t, e) => /* @__PURE__ */ a(X, { variant: "loading" }, e)) }) : /* @__PURE__ */ a(
|
|
109
69
|
"ul",
|
|
110
70
|
{
|
|
111
|
-
className: "flex flex-col",
|
|
71
|
+
className: "flex flex-col gap-2",
|
|
112
72
|
"data-hook": `${l}-list`,
|
|
113
73
|
"data-slot": "list",
|
|
114
|
-
children:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
/* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(
|
|
129
|
-
"button",
|
|
130
|
-
{
|
|
131
|
-
"aria-label": `Remove ${t}`,
|
|
132
|
-
className: S(
|
|
133
|
-
"inline-flex size-9 cursor-pointer items-center justify-center rounded-full",
|
|
134
|
-
"text-muted-foreground",
|
|
135
|
-
"focus-visible:shadow-default outline-none",
|
|
136
|
-
"transition-colors duration-150 ease-in-out",
|
|
137
|
-
"disabled:pointer-events-none disabled:opacity-50"
|
|
138
|
-
),
|
|
139
|
-
"data-hook": `${l}-remove-${n}`,
|
|
140
|
-
disabled: p || a,
|
|
141
|
-
type: "button",
|
|
142
|
-
onClick: () => P(n),
|
|
143
|
-
children: /* @__PURE__ */ r(J, {})
|
|
144
|
-
}
|
|
145
|
-
) })
|
|
146
|
-
] }) })
|
|
74
|
+
children: /* @__PURE__ */ a(P, { initial: !1, children: i.map((t, e) => /* @__PURE__ */ a(
|
|
75
|
+
S.li,
|
|
76
|
+
{
|
|
77
|
+
layout: !0,
|
|
78
|
+
animate: { opacity: 1, scale: 1 },
|
|
79
|
+
"data-hook": `${l}-item-${e}`,
|
|
80
|
+
"data-slot": "item",
|
|
81
|
+
exit: {
|
|
82
|
+
opacity: 0,
|
|
83
|
+
scale: 0.8,
|
|
84
|
+
transition: {
|
|
85
|
+
opacity: { duration: 0.15 },
|
|
86
|
+
scale: { duration: 0.12 }
|
|
87
|
+
}
|
|
147
88
|
},
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
89
|
+
initial: { opacity: 0, scale: 0.8 },
|
|
90
|
+
transition: {
|
|
91
|
+
opacity: { duration: 0.15 },
|
|
92
|
+
scale: { duration: 0.15 },
|
|
93
|
+
layout: {
|
|
94
|
+
type: "spring",
|
|
95
|
+
stiffness: 500,
|
|
96
|
+
damping: 35
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
children: /* @__PURE__ */ r("div", { className: "bg-card flex items-center gap-4 rounded-lg py-2 pr-2 pl-4", children: [
|
|
100
|
+
/* @__PURE__ */ a(q, { children: /* @__PURE__ */ a(G, { children: t }) }),
|
|
101
|
+
/* @__PURE__ */ a(J, { children: /* @__PURE__ */ a(
|
|
102
|
+
"button",
|
|
103
|
+
{
|
|
104
|
+
"aria-label": `Remove ${t}`,
|
|
105
|
+
className: b(
|
|
106
|
+
"inline-flex size-9 cursor-pointer items-center justify-center rounded-full",
|
|
107
|
+
"text-muted-foreground",
|
|
108
|
+
"focus-visible:shadow-default outline-none",
|
|
109
|
+
"transition-colors duration-150 ease-in-out",
|
|
110
|
+
"disabled:pointer-events-none disabled:opacity-50"
|
|
111
|
+
),
|
|
112
|
+
"data-hook": `${l}-remove-${e}`,
|
|
113
|
+
disabled: c,
|
|
114
|
+
type: "button",
|
|
115
|
+
onClick: () => j(e),
|
|
116
|
+
children: /* @__PURE__ */ a(B, {})
|
|
117
|
+
}
|
|
118
|
+
) })
|
|
119
|
+
] })
|
|
120
|
+
},
|
|
121
|
+
K[e]
|
|
122
|
+
)) })
|
|
151
123
|
}
|
|
152
|
-
)
|
|
153
|
-
/* @__PURE__ */
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
/* @__PURE__ */
|
|
156
|
-
|
|
124
|
+
),
|
|
125
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col gap-2", "data-slot": "input-list-input-area", children: [
|
|
126
|
+
/* @__PURE__ */ r("div", { className: "flex gap-2", children: [
|
|
127
|
+
/* @__PURE__ */ a(
|
|
128
|
+
T,
|
|
157
129
|
{
|
|
158
130
|
className: "flex-1",
|
|
159
131
|
dataHook: `${l}-input`,
|
|
160
|
-
disabled:
|
|
161
|
-
error:
|
|
162
|
-
placeholder:
|
|
163
|
-
value:
|
|
164
|
-
onChange: (t) =>
|
|
165
|
-
onKeyDown:
|
|
166
|
-
onPaste:
|
|
132
|
+
disabled: R,
|
|
133
|
+
error: h,
|
|
134
|
+
placeholder: I,
|
|
135
|
+
value: m,
|
|
136
|
+
onChange: (t) => x(t.target.value),
|
|
137
|
+
onKeyDown: w,
|
|
138
|
+
onPaste: C
|
|
167
139
|
}
|
|
168
140
|
),
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
|
|
141
|
+
/* @__PURE__ */ a(
|
|
142
|
+
F,
|
|
171
143
|
{
|
|
172
144
|
dataHook: `${l}-add`,
|
|
173
|
-
disabled:
|
|
174
|
-
onClick: () =>
|
|
175
|
-
children:
|
|
145
|
+
disabled: _,
|
|
146
|
+
onClick: () => u([m]),
|
|
147
|
+
children: N
|
|
176
148
|
}
|
|
177
149
|
)
|
|
178
150
|
] }),
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
{
|
|
182
|
-
"data-slot": "input-list-description",
|
|
183
|
-
dataHook: `${l}-description`,
|
|
184
|
-
children: $
|
|
185
|
-
}
|
|
186
|
-
),
|
|
187
|
-
c !== void 0 && /* @__PURE__ */ u(
|
|
188
|
-
_,
|
|
189
|
-
{
|
|
190
|
-
"data-slot": "input-list-count",
|
|
191
|
-
dataHook: `${l}-count`,
|
|
192
|
-
children: [
|
|
193
|
-
e.length,
|
|
194
|
-
"/",
|
|
195
|
-
c
|
|
196
|
-
]
|
|
197
|
-
}
|
|
198
|
-
),
|
|
199
|
-
I && N && /* @__PURE__ */ r(
|
|
200
|
-
Q,
|
|
151
|
+
h && g ? /* @__PURE__ */ a(
|
|
152
|
+
L,
|
|
201
153
|
{
|
|
154
|
+
className: "text-left",
|
|
202
155
|
"data-slot": "input-list-error",
|
|
203
156
|
dataHook: `${l}-error`,
|
|
204
|
-
children:
|
|
157
|
+
children: g
|
|
158
|
+
}
|
|
159
|
+
) : y && /* @__PURE__ */ a(
|
|
160
|
+
z,
|
|
161
|
+
{
|
|
162
|
+
className: "text-left",
|
|
163
|
+
"data-slot": "input-list-description",
|
|
164
|
+
dataHook: `${l}-description`,
|
|
165
|
+
children: y
|
|
205
166
|
}
|
|
206
167
|
)
|
|
207
168
|
] })
|
|
@@ -209,7 +170,7 @@ function H({
|
|
|
209
170
|
}
|
|
210
171
|
);
|
|
211
172
|
}
|
|
212
|
-
|
|
173
|
+
O.displayName = "InputList";
|
|
213
174
|
export {
|
|
214
|
-
|
|
175
|
+
O as InputList
|
|
215
176
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),n="(prefers-reduced-motion: reduce)";function o(e){const t=window.matchMedia(n);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function u(){return window.matchMedia(n).matches}function c(){return!1}function s(){return r.useSyncExternalStore(o,u,c)}exports.usePrefersReducedMotion=s;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns `true` when the user prefers reduced motion.
|
|
3
|
+
* Listens to OS/browser preference changes in real time.
|
|
4
|
+
* SSR-safe: defaults to `false` on the server.
|
|
5
|
+
*/
|
|
6
|
+
export declare function usePrefersReducedMotion(): boolean;
|
|
7
|
+
//# sourceMappingURL=use-prefers-reduced-motion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-prefers-reduced-motion.d.ts","sourceRoot":"","sources":["../../src/hooks/use-prefers-reduced-motion.ts"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,wBAAgB,uBAAuB,YAEtC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useSyncExternalStore as r } from "react";
|
|
2
|
+
const t = "(prefers-reduced-motion: reduce)";
|
|
3
|
+
function o(e) {
|
|
4
|
+
const n = window.matchMedia(t);
|
|
5
|
+
return n.addEventListener("change", e), () => n.removeEventListener("change", e);
|
|
6
|
+
}
|
|
7
|
+
function c() {
|
|
8
|
+
return window.matchMedia(t).matches;
|
|
9
|
+
}
|
|
10
|
+
function i() {
|
|
11
|
+
return !1;
|
|
12
|
+
}
|
|
13
|
+
function u() {
|
|
14
|
+
return r(o, c, i);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
u as usePrefersReducedMotion
|
|
18
|
+
};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("./accordion.cjs"),s=require("./alert.cjs"),i=require("./alert-dialog.cjs"),Z=require("./aspect-ratio.cjs"),B=require("./avatar.cjs"),ee=require("./badge.cjs"),M=require("./breadcrumb.cjs"),j=require("./button.cjs"),N=require("./calendar.cjs"),I=require("./card.cjs"),w=require("./carousel.cjs"),h=require("./chart.cjs"),H=require("./centred-layout.cjs"),re=require("./checkbox.cjs"),_=require("./chip.cjs"),f=require("./collapsible.cjs"),u=require("./combobox.cjs"),C=require("./command.cjs"),y=require("./date-picker.cjs"),o=require("./context-menu.cjs"),te=require("./description.cjs"),p=require("./dialog.cjs"),l=require("./drawer.cjs"),t=require("./dropdown-menu.cjs"),b=require("./field.cjs"),k=require("./global-layout.cjs"),oe=require("./header.cjs"),V=require("./hover-card.cjs"),z=require("./input.cjs"),L=require("./input-chip.cjs"),A=require("./input-group.cjs"),S=require("./input-otp.cjs"),W=require("./label.cjs"),ae=require("./link.cjs"),T=require("./list.cjs"),ne=require("./logo.cjs"),a=require("./menubar.cjs"),m=require("./navigation-menu.cjs"),c=require("./pagination.cjs"),x=require("./input-password.cjs"),R=require("./popover.cjs"),ie=require("./progress.cjs"),X=require("./radio-group.cjs"),ue=require("./rating.cjs"),E=require("./resizable.cjs"),Y=require("./scroll-area.cjs"),d=require("./select.cjs"),U=require("./separator.cjs"),g=require("./sheet.cjs"),le=require("./skeleton.cjs"),pe=require("./slider.cjs"),$=require("./sonner.cjs"),q=require("./split-layout.cjs"),be=require("./switch.cjs"),D=require("./table.cjs"),O=require("./tabs.cjs"),de=require("./textarea.cjs"),J=require("./toggle.cjs"),K=require("./toggle-group.cjs"),v=require("./tooltip.cjs"),n=require("./typography.cjs"),P=require("./blocks/data-table.cjs"),ge=require("./blocks/input-list.cjs"),e=require("./blocks/sidebar.cjs"),ce=require("./hooks/use-mobile.cjs"),se=require("./lib/utils.cjs"),r=require("recharts"),F=require("input-otp"),Q=require("@tanstack/react-table");exports.Accordion=G.Accordion;exports.AccordionContent=G.AccordionContent;exports.AccordionItem=G.AccordionItem;exports.AccordionTrigger=G.AccordionTrigger;exports.Alert=s.Alert;exports.AlertDescription=s.AlertDescription;exports.AlertDestructive=s.AlertDestructive;exports.AlertInfo=s.AlertInfo;exports.AlertSuccess=s.AlertSuccess;exports.AlertTitle=s.AlertTitle;exports.AlertWarning=s.AlertWarning;exports.alertVariants=s.alertVariants;exports.AlertDialog=i.AlertDialog;exports.AlertDialogAction=i.AlertDialogAction;exports.AlertDialogCancel=i.AlertDialogCancel;exports.AlertDialogContent=i.AlertDialogContent;exports.AlertDialogDescription=i.AlertDialogDescription;exports.AlertDialogFooter=i.AlertDialogFooter;exports.AlertDialogHeader=i.AlertDialogHeader;exports.AlertDialogOverlay=i.AlertDialogOverlay;exports.AlertDialogPortal=i.AlertDialogPortal;exports.AlertDialogTitle=i.AlertDialogTitle;exports.AlertDialogTrigger=i.AlertDialogTrigger;exports.AspectRatio=Z.AspectRatio;exports.Avatar=B.Avatar;exports.AvatarFallback=B.AvatarFallback;exports.AvatarImage=B.AvatarImage;exports.Badge=ee.Badge;exports.Breadcrumb=M.Breadcrumb;exports.BreadcrumbEllipsis=M.BreadcrumbEllipsis;exports.BreadcrumbItem=M.BreadcrumbItem;exports.BreadcrumbLink=M.BreadcrumbLink;exports.BreadcrumbList=M.BreadcrumbList;exports.BreadcrumbPage=M.BreadcrumbPage;exports.BreadcrumbSeparator=M.BreadcrumbSeparator;exports.Button=j.Button;exports.ButtonVariants=j.ButtonVariants;exports.Calendar=N.Calendar;exports.CalendarDayButton=N.CalendarDayButton;exports.Card=I.Card;exports.CardAction=I.CardAction;exports.CardContent=I.CardContent;exports.CardDescription=I.CardDescription;exports.CardFooter=I.CardFooter;exports.CardHeader=I.CardHeader;exports.CardTitle=I.CardTitle;exports.Carousel=w.Carousel;exports.CarouselContent=w.CarouselContent;exports.CarouselItem=w.CarouselItem;exports.CarouselNext=w.CarouselNext;exports.CarouselPrevious=w.CarouselPrevious;exports.ChartContainer=h.ChartContainer;exports.ChartLegend=h.ChartLegend;exports.ChartLegendContent=h.ChartLegendContent;exports.ChartStyle=h.ChartStyle;exports.ChartTooltip=h.ChartTooltip;exports.ChartTooltipContent=h.ChartTooltipContent;exports.CentredLayout=H.CentredLayout;exports.CentredLayoutContent=H.CentredLayoutContent;exports.CentredLayoutHeader=H.CentredLayoutHeader;exports.Checkbox=re.Checkbox;exports.Chip=_.Chip;exports.chipVariants=_.chipVariants;exports.Collapsible=f.Collapsible;exports.CollapsibleContent=f.CollapsibleContent;exports.CollapsibleTrigger=f.CollapsibleTrigger;exports.Combobox=u.Combobox;exports.ComboboxContent=u.ComboboxContent;exports.ComboboxEmpty=u.ComboboxEmpty;exports.ComboboxGroup=u.ComboboxGroup;exports.ComboboxInput=u.ComboboxInput;exports.ComboboxItem=u.ComboboxItem;exports.ComboboxList=u.ComboboxList;exports.ComboboxLoading=u.ComboboxLoading;exports.ComboboxSeparator=u.ComboboxSeparator;exports.ComboboxTrigger=u.ComboboxTrigger;exports.ComboboxValue=u.ComboboxValue;exports.Command=C.Command;exports.CommandEmpty=C.CommandEmpty;exports.CommandGroup=C.CommandGroup;exports.CommandInput=C.CommandInput;exports.CommandItem=C.CommandItem;exports.CommandList=C.CommandList;exports.CommandSeparator=C.CommandSeparator;exports.CommandShortcut=C.CommandShortcut;exports.DEFAULT_DATE_PRESETS=y.DEFAULT_DATE_PRESETS;exports.DatePickerCalendar=y.DatePickerCalendar;exports.DatePickerContent=y.DatePickerContent;exports.DatePickerPresets=y.DatePickerPresets;exports.DatePickerRoot=y.DatePickerRoot;exports.DatePickerTrigger=y.DatePickerTrigger;exports.ContextMenu=o.ContextMenu;exports.ContextMenuCheckboxItem=o.ContextMenuCheckboxItem;exports.ContextMenuContent=o.ContextMenuContent;exports.ContextMenuGroup=o.ContextMenuGroup;exports.ContextMenuItem=o.ContextMenuItem;exports.ContextMenuLabel=o.ContextMenuLabel;exports.ContextMenuPortal=o.ContextMenuPortal;exports.ContextMenuRadioGroup=o.ContextMenuRadioGroup;exports.ContextMenuRadioItem=o.ContextMenuRadioItem;exports.ContextMenuSeparator=o.ContextMenuSeparator;exports.ContextMenuShortcut=o.ContextMenuShortcut;exports.ContextMenuSub=o.ContextMenuSub;exports.ContextMenuSubContent=o.ContextMenuSubContent;exports.ContextMenuSubTrigger=o.ContextMenuSubTrigger;exports.ContextMenuTrigger=o.ContextMenuTrigger;exports.Description=te.Description;exports.Dialog=p.Dialog;exports.DialogClose=p.DialogClose;exports.DialogContent=p.DialogContent;exports.DialogDescription=p.DialogDescription;exports.DialogFooter=p.DialogFooter;exports.DialogHeader=p.DialogHeader;exports.DialogOverlay=p.DialogOverlay;exports.DialogPortal=p.DialogPortal;exports.DialogTitle=p.DialogTitle;exports.DialogTrigger=p.DialogTrigger;exports.Drawer=l.Drawer;exports.DrawerBody=l.DrawerBody;exports.DrawerClose=l.DrawerClose;exports.DrawerContent=l.DrawerContent;exports.DrawerDescription=l.DrawerDescription;exports.DrawerFooter=l.DrawerFooter;exports.DrawerHeader=l.DrawerHeader;exports.DrawerOverlay=l.DrawerOverlay;exports.DrawerPortal=l.DrawerPortal;exports.DrawerTitle=l.DrawerTitle;exports.DrawerTrigger=l.DrawerTrigger;exports.DropdownMenu=t.DropdownMenu;exports.DropdownMenuCheckboxItem=t.DropdownMenuCheckboxItem;exports.DropdownMenuContent=t.DropdownMenuContent;exports.DropdownMenuGroup=t.DropdownMenuGroup;exports.DropdownMenuItem=t.DropdownMenuItem;exports.DropdownMenuLabel=t.DropdownMenuLabel;exports.DropdownMenuPortal=t.DropdownMenuPortal;exports.DropdownMenuRadioGroup=t.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=t.DropdownMenuRadioItem;exports.DropdownMenuSeparator=t.DropdownMenuSeparator;exports.DropdownMenuShortcut=t.DropdownMenuShortcut;exports.DropdownMenuSub=t.DropdownMenuSub;exports.DropdownMenuSubContent=t.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=t.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=t.DropdownMenuTrigger;exports.DropdownMenuTriggerAvatar=t.DropdownMenuTriggerAvatar;exports.Field=b.Field;exports.FieldContent=b.FieldContent;exports.FieldDescription=b.FieldDescription;exports.FieldError=b.FieldError;exports.FieldErrorIcon=b.FieldErrorIcon;exports.FieldGroup=b.FieldGroup;exports.FieldLabel=b.FieldLabel;exports.FieldLegend=b.FieldLegend;exports.FieldSet=b.FieldSet;exports.fieldLegendVariants=b.fieldLegendVariants;exports.GlobalLayout=k.GlobalLayout;exports.GlobalLayoutContent=k.GlobalLayoutContent;exports.GlobalLayoutSidebar=k.GlobalLayoutSidebar;exports.Header=oe.Header;exports.HoverCard=V.HoverCard;exports.HoverCardContent=V.HoverCardContent;exports.HoverCardTrigger=V.HoverCardTrigger;exports.Input=z.Input;exports.inputVariants=z.inputVariants;exports.InputChip=L.InputChip;exports.InputChipInput=L.InputChipInput;exports.InputChipItems=L.InputChipItems;exports.inputChipInputVariants=L.inputChipInputVariants;exports.inputChipVariants=L.inputChipVariants;exports.useInputChipContext=L.useInputChipContext;exports.InputGroup=A.InputGroup;exports.InputGroupAddon=A.InputGroupAddon;exports.InputGroupButton=A.InputGroupButton;exports.InputGroupInput=A.InputGroupInput;exports.inputGroupButtonVariants=A.inputGroupButtonVariants;exports.inputGroupVariants=A.inputGroupVariants;exports.InputOTP=S.InputOTP;exports.InputOTPDigitsOnly=S.InputOTPDigitsOnly;exports.InputOTPGroup=S.InputOTPGroup;exports.InputOTPSeparator=S.InputOTPSeparator;exports.InputOTPSimple=S.InputOTPSimple;exports.InputOTPSlot=S.InputOTPSlot;exports.InputOTPWithSeparator=S.InputOTPWithSeparator;exports.InputOTPWithSpacing=S.InputOTPWithSpacing;exports.Label=W.Label;exports.labelVariants=W.labelVariants;exports.Link=ae.Link;exports.Item=T.Item;exports.ItemActions=T.ItemActions;exports.ItemContent=T.ItemContent;exports.ItemDescription=T.ItemDescription;exports.ItemMedia=T.ItemMedia;exports.ItemTitle=T.ItemTitle;exports.List=T.List;exports.itemVariants=T.itemVariants;exports.Logo=ne.Logo;exports.Menubar=a.Menubar;exports.MenubarCheckboxItem=a.MenubarCheckboxItem;exports.MenubarContent=a.MenubarContent;exports.MenubarItem=a.MenubarItem;exports.MenubarLabel=a.MenubarLabel;exports.MenubarMenu=a.MenubarMenu;exports.MenubarRadioGroup=a.MenubarRadioGroup;exports.MenubarRadioItem=a.MenubarRadioItem;exports.MenubarSeparator=a.MenubarSeparator;exports.MenubarShortcut=a.MenubarShortcut;exports.MenubarSub=a.MenubarSub;exports.MenubarSubContent=a.MenubarSubContent;exports.MenubarSubTrigger=a.MenubarSubTrigger;exports.MenubarTrigger=a.MenubarTrigger;exports.NavigationMenu=m.NavigationMenu;exports.NavigationMenuContent=m.NavigationMenuContent;exports.NavigationMenuIndicator=m.NavigationMenuIndicator;exports.NavigationMenuItem=m.NavigationMenuItem;exports.NavigationMenuLink=m.NavigationMenuLink;exports.NavigationMenuList=m.NavigationMenuList;exports.NavigationMenuTrigger=m.NavigationMenuTrigger;exports.NavigationMenuViewport=m.NavigationMenuViewport;exports.Pagination=c.Pagination;exports.PaginationButton=c.PaginationButton;exports.PaginationContent=c.PaginationContent;exports.PaginationEllipsis=c.PaginationEllipsis;exports.PaginationItem=c.PaginationItem;exports.PaginationLink=c.PaginationLink;exports.PaginationNext=c.PaginationNext;exports.PaginationPrevious=c.PaginationPrevious;exports.usePagination=c.usePagination;exports.DEFAULT_STRENGTH_LEVELS=x.DEFAULT_STRENGTH_LEVELS;exports.InputPasswordField=x.InputPasswordField;exports.InputPasswordRoot=x.InputPasswordRoot;exports.InputPasswordStrength=x.InputPasswordStrength;exports.InputPasswordToggle=x.InputPasswordToggle;exports.calculatePasswordStrength=x.calculatePasswordStrength;exports.Popover=R.Popover;exports.PopoverAnchor=R.PopoverAnchor;exports.PopoverContent=R.PopoverContent;exports.PopoverTrigger=R.PopoverTrigger;exports.Progress=ie.Progress;exports.RadioGroup=X.RadioGroup;exports.RadioGroupItem=X.RadioGroupItem;exports.Rating=ue.Rating;exports.ResizableHandle=E.ResizableHandle;exports.ResizablePanel=E.ResizablePanel;exports.ResizablePanelGroup=E.ResizablePanelGroup;exports.ScrollArea=Y.ScrollArea;exports.ScrollBar=Y.ScrollBar;exports.Select=d.Select;exports.SelectContent=d.SelectContent;exports.SelectGroup=d.SelectGroup;exports.SelectItem=d.SelectItem;exports.SelectLabel=d.SelectLabel;exports.SelectScrollDownButton=d.SelectScrollDownButton;exports.SelectScrollUpButton=d.SelectScrollUpButton;exports.SelectSeparator=d.SelectSeparator;exports.SelectTrigger=d.SelectTrigger;exports.SelectValue=d.SelectValue;exports.Separator=U.Separator;exports.SeparatorWithText=U.SeparatorWithText;exports.Sheet=g.Sheet;exports.SheetClose=g.SheetClose;exports.SheetContent=g.SheetContent;exports.SheetDescription=g.SheetDescription;exports.SheetFooter=g.SheetFooter;exports.SheetHeader=g.SheetHeader;exports.SheetOverlay=g.SheetOverlay;exports.SheetPortal=g.SheetPortal;exports.SheetTitle=g.SheetTitle;exports.SheetTrigger=g.SheetTrigger;exports.Skeleton=le.Skeleton;exports.Slider=pe.Slider;exports.Sonner=$.Sonner;exports.sonner=$.sonner;exports.SplitLayout=q.SplitLayout;exports.SplitLayoutContentLeft=q.SplitLayoutContentLeft;exports.SplitLayoutContentRight=q.SplitLayoutContentRight;exports.SplitLayoutHeader=q.SplitLayoutHeader;exports.Switch=be.Switch;exports.Table=D.Table;exports.TableBody=D.TableBody;exports.TableCaption=D.TableCaption;exports.TableCell=D.TableCell;exports.TableFooter=D.TableFooter;exports.TableHead=D.TableHead;exports.TableHeader=D.TableHeader;exports.TableRow=D.TableRow;exports.Tabs=O.Tabs;exports.TabsContent=O.TabsContent;exports.TabsList=O.TabsList;exports.TabsTrigger=O.TabsTrigger;exports.Textarea=de.Textarea;exports.Toggle=J.Toggle;exports.toggleVariants=J.toggleVariants;exports.ToggleGroup=K.ToggleGroup;exports.ToggleGroupItem=K.ToggleGroupItem;exports.Tooltip=v.Tooltip;exports.TooltipContent=v.TooltipContent;exports.TooltipProvider=v.TooltipProvider;exports.TooltipTrigger=v.TooltipTrigger;exports.TypographyBlockquote=n.TypographyBlockquote;exports.TypographyCode=n.TypographyCode;exports.TypographyH1=n.TypographyH1;exports.TypographyH2=n.TypographyH2;exports.TypographyH3=n.TypographyH3;exports.TypographyH4=n.TypographyH4;exports.TypographyInlineCode=n.TypographyInlineCode;exports.TypographyLarge=n.TypographyLarge;exports.TypographyLead=n.TypographyLead;exports.TypographyList=n.TypographyList;exports.TypographyMuted=n.TypographyMuted;exports.TypographyP=n.TypographyP;exports.TypographySmall=n.TypographySmall;exports.blockquoteVariants=n.blockquoteVariants;exports.DataTable=P.DataTable;exports.DataTableColumnHeader=P.DataTableColumnHeader;exports.DataTablePagination=P.DataTablePagination;exports.DataTableRowActions=P.DataTableRowActions;exports.DataTableSearch=P.DataTableSearch;exports.DataTableSelectAllCheckbox=P.DataTableSelectAllCheckbox;exports.DataTableSelectRowCheckbox=P.DataTableSelectRowCheckbox;exports.DataTableToolbar=P.DataTableToolbar;exports.InputList=ge.InputList;exports.Sidebar=e.Sidebar;exports.SidebarCollapseIcon=e.SidebarCollapseIcon;exports.SidebarCollapseIconType=e.SidebarCollapseIconType;exports.SidebarCollapsible=e.SidebarCollapsible;exports.SidebarContent=e.SidebarContent;exports.SidebarFooter=e.SidebarFooter;exports.SidebarGroup=e.SidebarGroup;exports.SidebarGroupAction=e.SidebarGroupAction;exports.SidebarGroupContent=e.SidebarGroupContent;exports.SidebarGroupLabel=e.SidebarGroupLabel;exports.SidebarGroupLabelSize=e.SidebarGroupLabelSize;exports.SidebarGroupLabelVariant=e.SidebarGroupLabelVariant;exports.SidebarHeader=e.SidebarHeader;exports.SidebarInput=e.SidebarInput;exports.SidebarInset=e.SidebarInset;exports.SidebarMenu=e.SidebarMenu;exports.SidebarMenuAction=e.SidebarMenuAction;exports.SidebarMenuBadge=e.SidebarMenuBadge;exports.SidebarMenuButton=e.SidebarMenuButton;exports.SidebarMenuButtonSize=e.SidebarMenuButtonSize;exports.SidebarMenuButtonVariant=e.SidebarMenuButtonVariant;exports.SidebarMenuItem=e.SidebarMenuItem;exports.SidebarMenuSkeleton=e.SidebarMenuSkeleton;exports.SidebarMenuSub=e.SidebarMenuSub;exports.SidebarMenuSubButton=e.SidebarMenuSubButton;exports.SidebarMenuSubButtonSize=e.SidebarMenuSubButtonSize;exports.SidebarMenuSubItem=e.SidebarMenuSubItem;exports.SidebarMenuSubVariant=e.SidebarMenuSubVariant;exports.SidebarProvider=e.SidebarProvider;exports.SidebarRail=e.SidebarRail;exports.SidebarSeparator=e.SidebarSeparator;exports.SidebarSide=e.SidebarSide;exports.SidebarTrigger=e.SidebarTrigger;exports.SidebarVariant=e.SidebarVariant;exports.useSidebar=e.useSidebar;exports.useIsMobile=ce.useIsMobile;exports.cn=se.cn;Object.defineProperty(exports,"Area",{enumerable:!0,get:()=>r.Area});Object.defineProperty(exports,"AreaChart",{enumerable:!0,get:()=>r.AreaChart});Object.defineProperty(exports,"Bar",{enumerable:!0,get:()=>r.Bar});Object.defineProperty(exports,"BarChart",{enumerable:!0,get:()=>r.BarChart});Object.defineProperty(exports,"CartesianGrid",{enumerable:!0,get:()=>r.CartesianGrid});Object.defineProperty(exports,"Cell",{enumerable:!0,get:()=>r.Cell});Object.defineProperty(exports,"ChartLabel",{enumerable:!0,get:()=>r.Label});Object.defineProperty(exports,"ChartsLegend",{enumerable:!0,get:()=>r.Legend});Object.defineProperty(exports,"ChartsTooltip",{enumerable:!0,get:()=>r.Tooltip});Object.defineProperty(exports,"Customized",{enumerable:!0,get:()=>r.Customized});Object.defineProperty(exports,"LabelList",{enumerable:!0,get:()=>r.LabelList});Object.defineProperty(exports,"Line",{enumerable:!0,get:()=>r.Line});Object.defineProperty(exports,"LineChart",{enumerable:!0,get:()=>r.LineChart});Object.defineProperty(exports,"Pie",{enumerable:!0,get:()=>r.Pie});Object.defineProperty(exports,"PieChart",{enumerable:!0,get:()=>r.PieChart});Object.defineProperty(exports,"PolarAngleAxis",{enumerable:!0,get:()=>r.PolarAngleAxis});Object.defineProperty(exports,"PolarGrid",{enumerable:!0,get:()=>r.PolarGrid});Object.defineProperty(exports,"PolarRadiusAxis",{enumerable:!0,get:()=>r.PolarRadiusAxis});Object.defineProperty(exports,"Radar",{enumerable:!0,get:()=>r.Radar});Object.defineProperty(exports,"RadarChart",{enumerable:!0,get:()=>r.RadarChart});Object.defineProperty(exports,"RadialBar",{enumerable:!0,get:()=>r.RadialBar});Object.defineProperty(exports,"RadialBarChart",{enumerable:!0,get:()=>r.RadialBarChart});Object.defineProperty(exports,"Rectangle",{enumerable:!0,get:()=>r.Rectangle});Object.defineProperty(exports,"ReferenceLine",{enumerable:!0,get:()=>r.ReferenceLine});Object.defineProperty(exports,"ResponsiveContainer",{enumerable:!0,get:()=>r.ResponsiveContainer});Object.defineProperty(exports,"Sector",{enumerable:!0,get:()=>r.Sector});Object.defineProperty(exports,"XAxis",{enumerable:!0,get:()=>r.XAxis});Object.defineProperty(exports,"YAxis",{enumerable:!0,get:()=>r.YAxis});Object.defineProperty(exports,"REGEXP_ONLY_CHARS",{enumerable:!0,get:()=>F.REGEXP_ONLY_CHARS});Object.defineProperty(exports,"REGEXP_ONLY_DIGITS",{enumerable:!0,get:()=>F.REGEXP_ONLY_DIGITS});Object.defineProperty(exports,"REGEXP_ONLY_DIGITS_AND_CHARS",{enumerable:!0,get:()=>F.REGEXP_ONLY_DIGITS_AND_CHARS});Object.defineProperty(exports,"createColumnHelper",{enumerable:!0,get:()=>Q.createColumnHelper});Object.defineProperty(exports,"flexRender",{enumerable:!0,get:()=>Q.flexRender});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./accordion.cjs"),s=require("./alert.cjs"),i=require("./alert-dialog.cjs"),Z=require("./aspect-ratio.cjs"),B=require("./avatar.cjs"),ee=require("./badge.cjs"),M=require("./breadcrumb.cjs"),j=require("./button.cjs"),N=require("./calendar.cjs"),I=require("./card.cjs"),w=require("./carousel.cjs"),h=require("./chart.cjs"),f=require("./centred-layout.cjs"),re=require("./checkbox.cjs"),_=require("./chip.cjs"),H=require("./collapsible.cjs"),u=require("./combobox.cjs"),C=require("./command.cjs"),y=require("./date-picker.cjs"),o=require("./context-menu.cjs"),te=require("./description.cjs"),p=require("./dialog.cjs"),l=require("./drawer.cjs"),t=require("./dropdown-menu.cjs"),b=require("./field.cjs"),k=require("./global-layout.cjs"),oe=require("./header.cjs"),V=require("./hover-card.cjs"),z=require("./input.cjs"),L=require("./input-chip.cjs"),A=require("./input-group.cjs"),S=require("./input-otp.cjs"),W=require("./label.cjs"),ae=require("./link.cjs"),T=require("./list.cjs"),ne=require("./logo.cjs"),a=require("./menubar.cjs"),m=require("./navigation-menu.cjs"),c=require("./pagination.cjs"),x=require("./input-password.cjs"),G=require("./popover.cjs"),ie=require("./progress.cjs"),X=require("./radio-group.cjs"),ue=require("./rating.cjs"),E=require("./resizable.cjs"),Y=require("./scroll-area.cjs"),d=require("./select.cjs"),U=require("./separator.cjs"),g=require("./sheet.cjs"),le=require("./skeleton.cjs"),pe=require("./slider.cjs"),$=require("./sonner.cjs"),q=require("./split-layout.cjs"),be=require("./switch.cjs"),D=require("./table.cjs"),O=require("./tabs.cjs"),de=require("./text-reveal-motion.cjs"),ge=require("./textarea.cjs"),J=require("./toggle.cjs"),K=require("./toggle-group.cjs"),v=require("./tooltip.cjs"),n=require("./typography.cjs"),P=require("./blocks/data-table.cjs"),ce=require("./blocks/input-list.cjs"),e=require("./blocks/sidebar.cjs"),se=require("./hooks/use-mobile.cjs"),Ce=require("./hooks/use-prefers-reduced-motion.cjs"),Se=require("./lib/utils.cjs"),r=require("recharts"),F=require("input-otp"),Q=require("@tanstack/react-table");exports.Accordion=R.Accordion;exports.AccordionContent=R.AccordionContent;exports.AccordionItem=R.AccordionItem;exports.AccordionTrigger=R.AccordionTrigger;exports.Alert=s.Alert;exports.AlertDescription=s.AlertDescription;exports.AlertDestructive=s.AlertDestructive;exports.AlertInfo=s.AlertInfo;exports.AlertSuccess=s.AlertSuccess;exports.AlertTitle=s.AlertTitle;exports.AlertWarning=s.AlertWarning;exports.alertVariants=s.alertVariants;exports.AlertDialog=i.AlertDialog;exports.AlertDialogAction=i.AlertDialogAction;exports.AlertDialogCancel=i.AlertDialogCancel;exports.AlertDialogContent=i.AlertDialogContent;exports.AlertDialogDescription=i.AlertDialogDescription;exports.AlertDialogFooter=i.AlertDialogFooter;exports.AlertDialogHeader=i.AlertDialogHeader;exports.AlertDialogOverlay=i.AlertDialogOverlay;exports.AlertDialogPortal=i.AlertDialogPortal;exports.AlertDialogTitle=i.AlertDialogTitle;exports.AlertDialogTrigger=i.AlertDialogTrigger;exports.AspectRatio=Z.AspectRatio;exports.Avatar=B.Avatar;exports.AvatarFallback=B.AvatarFallback;exports.AvatarImage=B.AvatarImage;exports.Badge=ee.Badge;exports.Breadcrumb=M.Breadcrumb;exports.BreadcrumbEllipsis=M.BreadcrumbEllipsis;exports.BreadcrumbItem=M.BreadcrumbItem;exports.BreadcrumbLink=M.BreadcrumbLink;exports.BreadcrumbList=M.BreadcrumbList;exports.BreadcrumbPage=M.BreadcrumbPage;exports.BreadcrumbSeparator=M.BreadcrumbSeparator;exports.Button=j.Button;exports.ButtonVariants=j.ButtonVariants;exports.Calendar=N.Calendar;exports.CalendarDayButton=N.CalendarDayButton;exports.Card=I.Card;exports.CardAction=I.CardAction;exports.CardContent=I.CardContent;exports.CardDescription=I.CardDescription;exports.CardFooter=I.CardFooter;exports.CardHeader=I.CardHeader;exports.CardTitle=I.CardTitle;exports.Carousel=w.Carousel;exports.CarouselContent=w.CarouselContent;exports.CarouselItem=w.CarouselItem;exports.CarouselNext=w.CarouselNext;exports.CarouselPrevious=w.CarouselPrevious;exports.ChartContainer=h.ChartContainer;exports.ChartLegend=h.ChartLegend;exports.ChartLegendContent=h.ChartLegendContent;exports.ChartStyle=h.ChartStyle;exports.ChartTooltip=h.ChartTooltip;exports.ChartTooltipContent=h.ChartTooltipContent;exports.CentredLayout=f.CentredLayout;exports.CentredLayoutContent=f.CentredLayoutContent;exports.CentredLayoutHeader=f.CentredLayoutHeader;exports.Checkbox=re.Checkbox;exports.Chip=_.Chip;exports.chipVariants=_.chipVariants;exports.Collapsible=H.Collapsible;exports.CollapsibleContent=H.CollapsibleContent;exports.CollapsibleTrigger=H.CollapsibleTrigger;exports.Combobox=u.Combobox;exports.ComboboxContent=u.ComboboxContent;exports.ComboboxEmpty=u.ComboboxEmpty;exports.ComboboxGroup=u.ComboboxGroup;exports.ComboboxInput=u.ComboboxInput;exports.ComboboxItem=u.ComboboxItem;exports.ComboboxList=u.ComboboxList;exports.ComboboxLoading=u.ComboboxLoading;exports.ComboboxSeparator=u.ComboboxSeparator;exports.ComboboxTrigger=u.ComboboxTrigger;exports.ComboboxValue=u.ComboboxValue;exports.Command=C.Command;exports.CommandEmpty=C.CommandEmpty;exports.CommandGroup=C.CommandGroup;exports.CommandInput=C.CommandInput;exports.CommandItem=C.CommandItem;exports.CommandList=C.CommandList;exports.CommandSeparator=C.CommandSeparator;exports.CommandShortcut=C.CommandShortcut;exports.DEFAULT_DATE_PRESETS=y.DEFAULT_DATE_PRESETS;exports.DatePickerCalendar=y.DatePickerCalendar;exports.DatePickerContent=y.DatePickerContent;exports.DatePickerPresets=y.DatePickerPresets;exports.DatePickerRoot=y.DatePickerRoot;exports.DatePickerTrigger=y.DatePickerTrigger;exports.ContextMenu=o.ContextMenu;exports.ContextMenuCheckboxItem=o.ContextMenuCheckboxItem;exports.ContextMenuContent=o.ContextMenuContent;exports.ContextMenuGroup=o.ContextMenuGroup;exports.ContextMenuItem=o.ContextMenuItem;exports.ContextMenuLabel=o.ContextMenuLabel;exports.ContextMenuPortal=o.ContextMenuPortal;exports.ContextMenuRadioGroup=o.ContextMenuRadioGroup;exports.ContextMenuRadioItem=o.ContextMenuRadioItem;exports.ContextMenuSeparator=o.ContextMenuSeparator;exports.ContextMenuShortcut=o.ContextMenuShortcut;exports.ContextMenuSub=o.ContextMenuSub;exports.ContextMenuSubContent=o.ContextMenuSubContent;exports.ContextMenuSubTrigger=o.ContextMenuSubTrigger;exports.ContextMenuTrigger=o.ContextMenuTrigger;exports.Description=te.Description;exports.Dialog=p.Dialog;exports.DialogClose=p.DialogClose;exports.DialogContent=p.DialogContent;exports.DialogDescription=p.DialogDescription;exports.DialogFooter=p.DialogFooter;exports.DialogHeader=p.DialogHeader;exports.DialogOverlay=p.DialogOverlay;exports.DialogPortal=p.DialogPortal;exports.DialogTitle=p.DialogTitle;exports.DialogTrigger=p.DialogTrigger;exports.Drawer=l.Drawer;exports.DrawerBody=l.DrawerBody;exports.DrawerClose=l.DrawerClose;exports.DrawerContent=l.DrawerContent;exports.DrawerDescription=l.DrawerDescription;exports.DrawerFooter=l.DrawerFooter;exports.DrawerHeader=l.DrawerHeader;exports.DrawerOverlay=l.DrawerOverlay;exports.DrawerPortal=l.DrawerPortal;exports.DrawerTitle=l.DrawerTitle;exports.DrawerTrigger=l.DrawerTrigger;exports.DropdownMenu=t.DropdownMenu;exports.DropdownMenuCheckboxItem=t.DropdownMenuCheckboxItem;exports.DropdownMenuContent=t.DropdownMenuContent;exports.DropdownMenuGroup=t.DropdownMenuGroup;exports.DropdownMenuItem=t.DropdownMenuItem;exports.DropdownMenuLabel=t.DropdownMenuLabel;exports.DropdownMenuPortal=t.DropdownMenuPortal;exports.DropdownMenuRadioGroup=t.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=t.DropdownMenuRadioItem;exports.DropdownMenuSeparator=t.DropdownMenuSeparator;exports.DropdownMenuShortcut=t.DropdownMenuShortcut;exports.DropdownMenuSub=t.DropdownMenuSub;exports.DropdownMenuSubContent=t.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=t.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=t.DropdownMenuTrigger;exports.DropdownMenuTriggerAvatar=t.DropdownMenuTriggerAvatar;exports.Field=b.Field;exports.FieldContent=b.FieldContent;exports.FieldDescription=b.FieldDescription;exports.FieldError=b.FieldError;exports.FieldErrorIcon=b.FieldErrorIcon;exports.FieldGroup=b.FieldGroup;exports.FieldLabel=b.FieldLabel;exports.FieldLegend=b.FieldLegend;exports.FieldSet=b.FieldSet;exports.fieldLegendVariants=b.fieldLegendVariants;exports.GlobalLayout=k.GlobalLayout;exports.GlobalLayoutContent=k.GlobalLayoutContent;exports.GlobalLayoutSidebar=k.GlobalLayoutSidebar;exports.Header=oe.Header;exports.HoverCard=V.HoverCard;exports.HoverCardContent=V.HoverCardContent;exports.HoverCardTrigger=V.HoverCardTrigger;exports.Input=z.Input;exports.inputVariants=z.inputVariants;exports.InputChip=L.InputChip;exports.InputChipInput=L.InputChipInput;exports.InputChipItems=L.InputChipItems;exports.inputChipInputVariants=L.inputChipInputVariants;exports.inputChipVariants=L.inputChipVariants;exports.useInputChipContext=L.useInputChipContext;exports.InputGroup=A.InputGroup;exports.InputGroupAddon=A.InputGroupAddon;exports.InputGroupButton=A.InputGroupButton;exports.InputGroupInput=A.InputGroupInput;exports.inputGroupButtonVariants=A.inputGroupButtonVariants;exports.inputGroupVariants=A.inputGroupVariants;exports.InputOTP=S.InputOTP;exports.InputOTPDigitsOnly=S.InputOTPDigitsOnly;exports.InputOTPGroup=S.InputOTPGroup;exports.InputOTPSeparator=S.InputOTPSeparator;exports.InputOTPSimple=S.InputOTPSimple;exports.InputOTPSlot=S.InputOTPSlot;exports.InputOTPWithSeparator=S.InputOTPWithSeparator;exports.InputOTPWithSpacing=S.InputOTPWithSpacing;exports.Label=W.Label;exports.labelVariants=W.labelVariants;exports.Link=ae.Link;exports.Item=T.Item;exports.ItemActions=T.ItemActions;exports.ItemContent=T.ItemContent;exports.ItemDescription=T.ItemDescription;exports.ItemMedia=T.ItemMedia;exports.ItemTitle=T.ItemTitle;exports.List=T.List;exports.itemVariants=T.itemVariants;exports.Logo=ne.Logo;exports.Menubar=a.Menubar;exports.MenubarCheckboxItem=a.MenubarCheckboxItem;exports.MenubarContent=a.MenubarContent;exports.MenubarItem=a.MenubarItem;exports.MenubarLabel=a.MenubarLabel;exports.MenubarMenu=a.MenubarMenu;exports.MenubarRadioGroup=a.MenubarRadioGroup;exports.MenubarRadioItem=a.MenubarRadioItem;exports.MenubarSeparator=a.MenubarSeparator;exports.MenubarShortcut=a.MenubarShortcut;exports.MenubarSub=a.MenubarSub;exports.MenubarSubContent=a.MenubarSubContent;exports.MenubarSubTrigger=a.MenubarSubTrigger;exports.MenubarTrigger=a.MenubarTrigger;exports.NavigationMenu=m.NavigationMenu;exports.NavigationMenuContent=m.NavigationMenuContent;exports.NavigationMenuIndicator=m.NavigationMenuIndicator;exports.NavigationMenuItem=m.NavigationMenuItem;exports.NavigationMenuLink=m.NavigationMenuLink;exports.NavigationMenuList=m.NavigationMenuList;exports.NavigationMenuTrigger=m.NavigationMenuTrigger;exports.NavigationMenuViewport=m.NavigationMenuViewport;exports.Pagination=c.Pagination;exports.PaginationButton=c.PaginationButton;exports.PaginationContent=c.PaginationContent;exports.PaginationEllipsis=c.PaginationEllipsis;exports.PaginationItem=c.PaginationItem;exports.PaginationLink=c.PaginationLink;exports.PaginationNext=c.PaginationNext;exports.PaginationPrevious=c.PaginationPrevious;exports.usePagination=c.usePagination;exports.DEFAULT_STRENGTH_LEVELS=x.DEFAULT_STRENGTH_LEVELS;exports.InputPasswordField=x.InputPasswordField;exports.InputPasswordRoot=x.InputPasswordRoot;exports.InputPasswordStrength=x.InputPasswordStrength;exports.InputPasswordToggle=x.InputPasswordToggle;exports.calculatePasswordStrength=x.calculatePasswordStrength;exports.Popover=G.Popover;exports.PopoverAnchor=G.PopoverAnchor;exports.PopoverContent=G.PopoverContent;exports.PopoverTrigger=G.PopoverTrigger;exports.Progress=ie.Progress;exports.RadioGroup=X.RadioGroup;exports.RadioGroupItem=X.RadioGroupItem;exports.Rating=ue.Rating;exports.ResizableHandle=E.ResizableHandle;exports.ResizablePanel=E.ResizablePanel;exports.ResizablePanelGroup=E.ResizablePanelGroup;exports.ScrollArea=Y.ScrollArea;exports.ScrollBar=Y.ScrollBar;exports.Select=d.Select;exports.SelectContent=d.SelectContent;exports.SelectGroup=d.SelectGroup;exports.SelectItem=d.SelectItem;exports.SelectLabel=d.SelectLabel;exports.SelectScrollDownButton=d.SelectScrollDownButton;exports.SelectScrollUpButton=d.SelectScrollUpButton;exports.SelectSeparator=d.SelectSeparator;exports.SelectTrigger=d.SelectTrigger;exports.SelectValue=d.SelectValue;exports.Separator=U.Separator;exports.SeparatorWithText=U.SeparatorWithText;exports.Sheet=g.Sheet;exports.SheetClose=g.SheetClose;exports.SheetContent=g.SheetContent;exports.SheetDescription=g.SheetDescription;exports.SheetFooter=g.SheetFooter;exports.SheetHeader=g.SheetHeader;exports.SheetOverlay=g.SheetOverlay;exports.SheetPortal=g.SheetPortal;exports.SheetTitle=g.SheetTitle;exports.SheetTrigger=g.SheetTrigger;exports.Skeleton=le.Skeleton;exports.Slider=pe.Slider;exports.Sonner=$.Sonner;exports.sonner=$.sonner;exports.SplitLayout=q.SplitLayout;exports.SplitLayoutContentLeft=q.SplitLayoutContentLeft;exports.SplitLayoutContentRight=q.SplitLayoutContentRight;exports.SplitLayoutHeader=q.SplitLayoutHeader;exports.Switch=be.Switch;exports.Table=D.Table;exports.TableBody=D.TableBody;exports.TableCaption=D.TableCaption;exports.TableCell=D.TableCell;exports.TableFooter=D.TableFooter;exports.TableHead=D.TableHead;exports.TableHeader=D.TableHeader;exports.TableRow=D.TableRow;exports.Tabs=O.Tabs;exports.TabsContent=O.TabsContent;exports.TabsList=O.TabsList;exports.TabsTrigger=O.TabsTrigger;exports.TextRevealMotion=de.TextRevealMotion;exports.Textarea=ge.Textarea;exports.Toggle=J.Toggle;exports.toggleVariants=J.toggleVariants;exports.ToggleGroup=K.ToggleGroup;exports.ToggleGroupItem=K.ToggleGroupItem;exports.Tooltip=v.Tooltip;exports.TooltipContent=v.TooltipContent;exports.TooltipProvider=v.TooltipProvider;exports.TooltipTrigger=v.TooltipTrigger;exports.TypographyBlockquote=n.TypographyBlockquote;exports.TypographyCode=n.TypographyCode;exports.TypographyH1=n.TypographyH1;exports.TypographyH2=n.TypographyH2;exports.TypographyH3=n.TypographyH3;exports.TypographyH4=n.TypographyH4;exports.TypographyInlineCode=n.TypographyInlineCode;exports.TypographyLarge=n.TypographyLarge;exports.TypographyLead=n.TypographyLead;exports.TypographyList=n.TypographyList;exports.TypographyMuted=n.TypographyMuted;exports.TypographyP=n.TypographyP;exports.TypographySmall=n.TypographySmall;exports.blockquoteVariants=n.blockquoteVariants;exports.DataTable=P.DataTable;exports.DataTableColumnHeader=P.DataTableColumnHeader;exports.DataTablePagination=P.DataTablePagination;exports.DataTableRowActions=P.DataTableRowActions;exports.DataTableSearch=P.DataTableSearch;exports.DataTableSelectAllCheckbox=P.DataTableSelectAllCheckbox;exports.DataTableSelectRowCheckbox=P.DataTableSelectRowCheckbox;exports.DataTableToolbar=P.DataTableToolbar;exports.InputList=ce.InputList;exports.Sidebar=e.Sidebar;exports.SidebarCollapseIcon=e.SidebarCollapseIcon;exports.SidebarCollapseIconType=e.SidebarCollapseIconType;exports.SidebarCollapsible=e.SidebarCollapsible;exports.SidebarContent=e.SidebarContent;exports.SidebarFooter=e.SidebarFooter;exports.SidebarGroup=e.SidebarGroup;exports.SidebarGroupAction=e.SidebarGroupAction;exports.SidebarGroupContent=e.SidebarGroupContent;exports.SidebarGroupLabel=e.SidebarGroupLabel;exports.SidebarGroupLabelSize=e.SidebarGroupLabelSize;exports.SidebarGroupLabelVariant=e.SidebarGroupLabelVariant;exports.SidebarHeader=e.SidebarHeader;exports.SidebarInput=e.SidebarInput;exports.SidebarInset=e.SidebarInset;exports.SidebarMenu=e.SidebarMenu;exports.SidebarMenuAction=e.SidebarMenuAction;exports.SidebarMenuBadge=e.SidebarMenuBadge;exports.SidebarMenuButton=e.SidebarMenuButton;exports.SidebarMenuButtonSize=e.SidebarMenuButtonSize;exports.SidebarMenuButtonVariant=e.SidebarMenuButtonVariant;exports.SidebarMenuItem=e.SidebarMenuItem;exports.SidebarMenuSkeleton=e.SidebarMenuSkeleton;exports.SidebarMenuSub=e.SidebarMenuSub;exports.SidebarMenuSubButton=e.SidebarMenuSubButton;exports.SidebarMenuSubButtonSize=e.SidebarMenuSubButtonSize;exports.SidebarMenuSubItem=e.SidebarMenuSubItem;exports.SidebarMenuSubVariant=e.SidebarMenuSubVariant;exports.SidebarProvider=e.SidebarProvider;exports.SidebarRail=e.SidebarRail;exports.SidebarSeparator=e.SidebarSeparator;exports.SidebarSide=e.SidebarSide;exports.SidebarTrigger=e.SidebarTrigger;exports.SidebarVariant=e.SidebarVariant;exports.useSidebar=e.useSidebar;exports.useIsMobile=se.useIsMobile;exports.usePrefersReducedMotion=Ce.usePrefersReducedMotion;exports.cn=Se.cn;Object.defineProperty(exports,"Area",{enumerable:!0,get:()=>r.Area});Object.defineProperty(exports,"AreaChart",{enumerable:!0,get:()=>r.AreaChart});Object.defineProperty(exports,"Bar",{enumerable:!0,get:()=>r.Bar});Object.defineProperty(exports,"BarChart",{enumerable:!0,get:()=>r.BarChart});Object.defineProperty(exports,"CartesianGrid",{enumerable:!0,get:()=>r.CartesianGrid});Object.defineProperty(exports,"Cell",{enumerable:!0,get:()=>r.Cell});Object.defineProperty(exports,"ChartLabel",{enumerable:!0,get:()=>r.Label});Object.defineProperty(exports,"ChartsLegend",{enumerable:!0,get:()=>r.Legend});Object.defineProperty(exports,"ChartsTooltip",{enumerable:!0,get:()=>r.Tooltip});Object.defineProperty(exports,"Customized",{enumerable:!0,get:()=>r.Customized});Object.defineProperty(exports,"LabelList",{enumerable:!0,get:()=>r.LabelList});Object.defineProperty(exports,"Line",{enumerable:!0,get:()=>r.Line});Object.defineProperty(exports,"LineChart",{enumerable:!0,get:()=>r.LineChart});Object.defineProperty(exports,"Pie",{enumerable:!0,get:()=>r.Pie});Object.defineProperty(exports,"PieChart",{enumerable:!0,get:()=>r.PieChart});Object.defineProperty(exports,"PolarAngleAxis",{enumerable:!0,get:()=>r.PolarAngleAxis});Object.defineProperty(exports,"PolarGrid",{enumerable:!0,get:()=>r.PolarGrid});Object.defineProperty(exports,"PolarRadiusAxis",{enumerable:!0,get:()=>r.PolarRadiusAxis});Object.defineProperty(exports,"Radar",{enumerable:!0,get:()=>r.Radar});Object.defineProperty(exports,"RadarChart",{enumerable:!0,get:()=>r.RadarChart});Object.defineProperty(exports,"RadialBar",{enumerable:!0,get:()=>r.RadialBar});Object.defineProperty(exports,"RadialBarChart",{enumerable:!0,get:()=>r.RadialBarChart});Object.defineProperty(exports,"Rectangle",{enumerable:!0,get:()=>r.Rectangle});Object.defineProperty(exports,"ReferenceLine",{enumerable:!0,get:()=>r.ReferenceLine});Object.defineProperty(exports,"ResponsiveContainer",{enumerable:!0,get:()=>r.ResponsiveContainer});Object.defineProperty(exports,"Sector",{enumerable:!0,get:()=>r.Sector});Object.defineProperty(exports,"XAxis",{enumerable:!0,get:()=>r.XAxis});Object.defineProperty(exports,"YAxis",{enumerable:!0,get:()=>r.YAxis});Object.defineProperty(exports,"REGEXP_ONLY_CHARS",{enumerable:!0,get:()=>F.REGEXP_ONLY_CHARS});Object.defineProperty(exports,"REGEXP_ONLY_DIGITS",{enumerable:!0,get:()=>F.REGEXP_ONLY_DIGITS});Object.defineProperty(exports,"REGEXP_ONLY_DIGITS_AND_CHARS",{enumerable:!0,get:()=>F.REGEXP_ONLY_DIGITS_AND_CHARS});Object.defineProperty(exports,"createColumnHelper",{enumerable:!0,get:()=>Q.createColumnHelper});Object.defineProperty(exports,"flexRender",{enumerable:!0,get:()=>Q.flexRender});
|
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export * from './split-layout';
|
|
|
54
54
|
export * from './switch';
|
|
55
55
|
export * from './table';
|
|
56
56
|
export * from './tabs';
|
|
57
|
+
export * from './text-reveal-motion';
|
|
57
58
|
export * from './textarea';
|
|
58
59
|
export * from './toggle';
|
|
59
60
|
export * from './toggle-group';
|
|
@@ -63,5 +64,6 @@ export * from './blocks/data-table';
|
|
|
63
64
|
export * from './blocks/input-list';
|
|
64
65
|
export * from './blocks/sidebar';
|
|
65
66
|
export * from './hooks/use-mobile';
|
|
67
|
+
export * from './hooks/use-prefers-reduced-motion';
|
|
66
68
|
export * from './lib/utils';
|
|
67
69
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AAGjC,cAAc,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AAGjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oCAAoC,CAAC;AAGnD,cAAc,aAAa,CAAC"}
|