@brightlocal/ui-components 1.2.4 → 1.4.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 +19 -2
- package/dist/blocks/input-list.cjs +2 -2
- package/dist/blocks/input-list.d.ts +15 -7
- package/dist/blocks/input-list.d.ts.map +1 -1
- package/dist/blocks/input-list.js +111 -112
- 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 +389 -0
- package/package.json +5 -3
- package/src/blocks/input-list.tsx +58 -51
- package/src/components/text-reveal-motion.tsx +732 -0
- package/src/hooks/use-prefers-reduced-motion.ts +28 -0
- package/src/index.ts +2 -0
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ pnpm add @brightlocal/tokens
|
|
|
24
24
|
|
|
25
25
|
## Components
|
|
26
26
|
|
|
27
|
-
This package includes
|
|
27
|
+
This package includes 62 components built on Radix UI primitives and other React libraries. All components are fully typed with TypeScript and follow BrightLocal's design system patterns.
|
|
28
28
|
|
|
29
29
|
### Layout Components
|
|
30
30
|
|
package/component-meta.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightlocal/ui-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Machine-readable registry of all components in the BrightLocal Design System",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
@@ -1274,6 +1274,24 @@
|
|
|
1274
1274
|
],
|
|
1275
1275
|
"description": "Multi-line text input"
|
|
1276
1276
|
},
|
|
1277
|
+
{
|
|
1278
|
+
"name": "TextRevealMotion",
|
|
1279
|
+
"import": "@brightlocal/ui-components/text-reveal-motion",
|
|
1280
|
+
"category": "feedback",
|
|
1281
|
+
"exports": [
|
|
1282
|
+
"TextRevealMotion"
|
|
1283
|
+
],
|
|
1284
|
+
"compound": false,
|
|
1285
|
+
"dataHookRequired": true,
|
|
1286
|
+
"variants": {},
|
|
1287
|
+
"props": [
|
|
1288
|
+
"holdTime",
|
|
1289
|
+
"shimmer",
|
|
1290
|
+
"gradientFrom",
|
|
1291
|
+
"gradientTo"
|
|
1292
|
+
],
|
|
1293
|
+
"description": "Animated text reveal with rolling shape-morphing ball"
|
|
1294
|
+
},
|
|
1277
1295
|
{
|
|
1278
1296
|
"name": "Toggle",
|
|
1279
1297
|
"import": "@brightlocal/ui-components/toggle",
|
|
@@ -1416,7 +1434,6 @@
|
|
|
1416
1434
|
"props": [
|
|
1417
1435
|
"value",
|
|
1418
1436
|
"onValueChange",
|
|
1419
|
-
"maxItems",
|
|
1420
1437
|
"placeholder",
|
|
1421
1438
|
"addButtonLabel",
|
|
1422
1439
|
"loading",
|
|
@@ -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"),z=require("react"),D=require("framer-motion"),F=require("@brightlocal/icons"),k=require("@brightlocal/ui-components/lib/utils"),M=require("../button.cjs"),$=require("../field.cjs"),v=require("../input.cjs"),d=require("../list.cjs");function X(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(l,a,c.get?c:{enumerable:!0,get:()=>e[a]})}}return l.default=e,Object.freeze(l)}const o=X(z);function q({value:e,onValueChange:l,onBeforeAdd:a,placeholder:c="Add item",addButtonLabel:S="Add",skeletonCount:_=3,disabled:f=!1,loading:p=!1,error:j=!1,errorMessage:y,description:I,dataHook:r,trackingEl:O,trackingLabel:P,className:R}){const[m,N]=o.useState(""),[u,x]=o.useState(null),h=o.useRef(e.length),[A,g]=o.useState(()=>e.map((t,s)=>s));o.useEffect(()=>{g(t=>t.length===e.length?t:e.length>t.length?[...t,...Array.from({length:e.length-t.length},()=>h.current++)]:e.map(()=>h.current++))},[e]);const E=f||p,w=f||p,b=o.useCallback(t=>{const s=t.map(i=>i.trim()).filter(Boolean);if(s.length){if(a){const i=a(s,e);if(i!==!0){x(i);return}}x(null),g(i=>[...i,...s.map(()=>h.current++)]),l([...e,...s]),N("")}},[e,l,a]),K=o.useCallback(t=>{g(s=>s.filter((i,T)=>T!==t)),l(e.filter((s,i)=>i!==t))},[e,l]),C=t=>{t.key==="Enter"&&(t.preventDefault(),b([m]))},L=t=>{const i=t.clipboardData.getData("text").split(`
|
|
2
|
+
`);i.length>1&&(t.preventDefault(),b(i))};return n.jsxs("div",{className:k.cn("flex flex-col gap-4",R),"data-hook":r,"data-slot":"input-list","data-tracking-el":O,"data-tracking-label":P,children:[p?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":`${r}-list`,"data-slot":"list",children:n.jsx(D.AnimatePresence,{initial:!1,children:e.map((t,s)=>n.jsx(D.motion.li,{layout:!0,animate:{opacity:1,scale:1},"data-hook":`${r}-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:k.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":`${r}-remove-${s}`,disabled:f,type:"button",onClick:()=>K(s),children:n.jsx(F.X,{})})})]})},A[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(v.Input,{className:"flex-1",dataHook:`${r}-input`,disabled:E,error:j||!!u,placeholder:c,value:m,onChange:t=>{N(t.target.value),u&&x(null)},onKeyDown:C,onPaste:L}),n.jsx(M.Button,{dataHook:`${r}-add`,disabled:w,onClick:()=>b([m]),children:S})]}),j&&y||u?n.jsx($.FieldError,{className:"text-left","data-slot":"input-list-error",dataHook:`${r}-error`,children:u??y}):I&&n.jsx($.FieldDescription,{className:"text-left","data-slot":"input-list-description",dataHook:`${r}-description`,children:I})]})]})}q.displayName="InputList";exports.InputList=q;
|
|
@@ -12,10 +12,20 @@ export interface InputListProps {
|
|
|
12
12
|
*/
|
|
13
13
|
onValueChange: (value: string[]) => void;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* Called before items are added to the list.
|
|
16
|
+
* Return `true` to allow the addition, or a `string` to block it
|
|
17
|
+
* and display that string as an error message.
|
|
18
|
+
* The input value is preserved when addition is blocked.
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* onBeforeAdd={(newItems, current) => {
|
|
22
|
+
* const existing = new Set(current.map((k) => k.toLowerCase()));
|
|
23
|
+
* const hasDupe = newItems.some((item) => existing.has(item.toLowerCase()));
|
|
24
|
+
* return hasDupe ? "Keyword already added" : true;
|
|
25
|
+
* }}
|
|
26
|
+
* ```
|
|
17
27
|
*/
|
|
18
|
-
|
|
28
|
+
onBeforeAdd?: (newItems: string[], currentValue: string[]) => true | string;
|
|
19
29
|
/**
|
|
20
30
|
* Placeholder text for the text input.
|
|
21
31
|
* @default "Add item"
|
|
@@ -71,8 +81,7 @@ export interface InputListProps {
|
|
|
71
81
|
/**
|
|
72
82
|
* InputList block — a managed list of text items with an add-input and per-row remove controls.
|
|
73
83
|
*
|
|
74
|
-
* Supports a
|
|
75
|
-
* multi-line paste (each line becomes a separate item), loading skeletons, disabled state,
|
|
84
|
+
* Supports multi-line paste (each line becomes a separate item), loading skeletons, disabled state,
|
|
76
85
|
* and input error/validation state.
|
|
77
86
|
*
|
|
78
87
|
* @example
|
|
@@ -80,12 +89,11 @@ export interface InputListProps {
|
|
|
80
89
|
* <InputList
|
|
81
90
|
* value={keywords}
|
|
82
91
|
* onValueChange={setKeywords}
|
|
83
|
-
* maxItems={10}
|
|
84
92
|
* dataHook="keywords"
|
|
85
93
|
* />
|
|
86
94
|
* ```
|
|
87
95
|
*/
|
|
88
|
-
declare function InputList({ value, onValueChange,
|
|
96
|
+
declare function InputList({ value, onValueChange, onBeforeAdd, placeholder, addButtonLabel, skeletonCount, disabled, loading, error, errorMessage, description, dataHook, trackingEl, trackingLabel, className, }: InputListProps): import("react/jsx-runtime").JSX.Element;
|
|
89
97
|
declare namespace InputList {
|
|
90
98
|
var displayName: string;
|
|
91
99
|
}
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;;;;;;;;;OAaG;IACH,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI,GAAG,MAAM,CAAC;IAC5E;;;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,WAAW,EACX,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,2CAkNhB;kBAlOQ,SAAS;;;AAsOlB,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,85 +1,94 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { AnimatePresence as
|
|
4
|
-
import { X } from "@brightlocal/icons";
|
|
5
|
-
import { cn as
|
|
6
|
-
import { Button as
|
|
7
|
-
import { FieldError as
|
|
8
|
-
import { Input as
|
|
9
|
-
import { Item as
|
|
10
|
-
function
|
|
11
|
-
value:
|
|
12
|
-
onValueChange:
|
|
13
|
-
|
|
14
|
-
placeholder:
|
|
15
|
-
addButtonLabel:
|
|
16
|
-
skeletonCount:
|
|
17
|
-
disabled:
|
|
18
|
-
loading:
|
|
19
|
-
error:
|
|
20
|
-
errorMessage:
|
|
21
|
-
description:
|
|
22
|
-
dataHook:
|
|
23
|
-
trackingEl:
|
|
24
|
-
trackingLabel:
|
|
25
|
-
className:
|
|
3
|
+
import { AnimatePresence as L, motion as z } from "framer-motion";
|
|
4
|
+
import { X as T } from "@brightlocal/icons";
|
|
5
|
+
import { cn as $ } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
+
import { Button as X } from "../button.js";
|
|
7
|
+
import { FieldError as q, FieldDescription as B } from "../field.js";
|
|
8
|
+
import { Input as G } from "../input.js";
|
|
9
|
+
import { Item as J, ItemContent as O, ItemTitle as Q, ItemActions as U } from "../list.js";
|
|
10
|
+
function V({
|
|
11
|
+
value: n,
|
|
12
|
+
onValueChange: r,
|
|
13
|
+
onBeforeAdd: d,
|
|
14
|
+
placeholder: k = "Add item",
|
|
15
|
+
addButtonLabel: D = "Add",
|
|
16
|
+
skeletonCount: A = 3,
|
|
17
|
+
disabled: m = !1,
|
|
18
|
+
loading: p = !1,
|
|
19
|
+
error: x = !1,
|
|
20
|
+
errorMessage: b,
|
|
21
|
+
description: I,
|
|
22
|
+
dataHook: a,
|
|
23
|
+
trackingEl: E,
|
|
24
|
+
trackingLabel: K,
|
|
25
|
+
className: R
|
|
26
26
|
}) {
|
|
27
|
-
const [
|
|
28
|
-
|
|
27
|
+
const [f, N] = s.useState(""), [o, u] = s.useState(
|
|
28
|
+
null
|
|
29
|
+
), h = s.useRef(n.length), [S, g] = s.useState(
|
|
30
|
+
() => n.map((t, e) => e)
|
|
29
31
|
);
|
|
30
32
|
s.useEffect(() => {
|
|
31
|
-
|
|
33
|
+
g((t) => t.length === n.length ? t : n.length > t.length ? [
|
|
32
34
|
...t,
|
|
33
35
|
...Array.from(
|
|
34
|
-
{ length:
|
|
35
|
-
() =>
|
|
36
|
+
{ length: n.length - t.length },
|
|
37
|
+
() => h.current++
|
|
36
38
|
)
|
|
37
|
-
] :
|
|
38
|
-
}, [
|
|
39
|
-
const
|
|
39
|
+
] : n.map(() => h.current++));
|
|
40
|
+
}, [n]);
|
|
41
|
+
const _ = m || p, j = m || p, y = s.useCallback(
|
|
40
42
|
(t) => {
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
const e = t.map((l) => l.trim()).filter(Boolean);
|
|
44
|
+
if (e.length) {
|
|
45
|
+
if (d) {
|
|
46
|
+
const l = d(e, n);
|
|
47
|
+
if (l !== !0) {
|
|
48
|
+
u(l);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
u(null), g((l) => [
|
|
53
|
+
...l,
|
|
54
|
+
...e.map(() => h.current++)
|
|
55
|
+
]), r([...n, ...e]), N("");
|
|
56
|
+
}
|
|
48
57
|
},
|
|
49
|
-
[
|
|
50
|
-
),
|
|
58
|
+
[n, r, d]
|
|
59
|
+
), w = s.useCallback(
|
|
51
60
|
(t) => {
|
|
52
|
-
|
|
61
|
+
g((e) => e.filter((l, F) => F !== t)), r(n.filter((e, l) => l !== t));
|
|
53
62
|
},
|
|
54
|
-
[
|
|
55
|
-
),
|
|
56
|
-
t.key === "Enter" && (t.preventDefault(),
|
|
57
|
-
},
|
|
58
|
-
const
|
|
63
|
+
[n, r]
|
|
64
|
+
), C = (t) => {
|
|
65
|
+
t.key === "Enter" && (t.preventDefault(), y([f]));
|
|
66
|
+
}, P = (t) => {
|
|
67
|
+
const l = t.clipboardData.getData("text").split(`
|
|
59
68
|
`);
|
|
60
|
-
|
|
69
|
+
l.length > 1 && (t.preventDefault(), y(l));
|
|
61
70
|
};
|
|
62
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ c(
|
|
63
72
|
"div",
|
|
64
73
|
{
|
|
65
|
-
className:
|
|
66
|
-
"data-hook":
|
|
74
|
+
className: $("flex flex-col gap-4", R),
|
|
75
|
+
"data-hook": a,
|
|
67
76
|
"data-slot": "input-list",
|
|
68
|
-
"data-tracking-el":
|
|
69
|
-
"data-tracking-label":
|
|
77
|
+
"data-tracking-el": E,
|
|
78
|
+
"data-tracking-label": K,
|
|
70
79
|
children: [
|
|
71
|
-
|
|
80
|
+
p ? /* @__PURE__ */ i("ul", { className: "flex flex-col gap-2", "data-slot": "input-list-skeleton", children: Array.from({ length: A }).map((t, e) => /* @__PURE__ */ i(J, { variant: "loading" }, e)) }) : /* @__PURE__ */ i(
|
|
72
81
|
"ul",
|
|
73
82
|
{
|
|
74
83
|
className: "flex flex-col gap-2",
|
|
75
|
-
"data-hook": `${
|
|
84
|
+
"data-hook": `${a}-list`,
|
|
76
85
|
"data-slot": "list",
|
|
77
|
-
children: /* @__PURE__ */ i(
|
|
78
|
-
|
|
86
|
+
children: /* @__PURE__ */ i(L, { initial: !1, children: n.map((t, e) => /* @__PURE__ */ i(
|
|
87
|
+
z.li,
|
|
79
88
|
{
|
|
80
89
|
layout: !0,
|
|
81
90
|
animate: { opacity: 1, scale: 1 },
|
|
82
|
-
"data-hook": `${
|
|
91
|
+
"data-hook": `${a}-item-${e}`,
|
|
83
92
|
"data-slot": "item",
|
|
84
93
|
exit: {
|
|
85
94
|
opacity: 0,
|
|
@@ -99,93 +108,83 @@ function Y({
|
|
|
99
108
|
damping: 35
|
|
100
109
|
}
|
|
101
110
|
},
|
|
102
|
-
children: /* @__PURE__ */
|
|
103
|
-
/* @__PURE__ */ i(
|
|
104
|
-
/* @__PURE__ */ i(
|
|
111
|
+
children: /* @__PURE__ */ c("div", { className: "bg-card flex items-center gap-4 rounded-lg py-2 pr-2 pl-4", children: [
|
|
112
|
+
/* @__PURE__ */ i(O, { children: /* @__PURE__ */ i(Q, { children: t }) }),
|
|
113
|
+
/* @__PURE__ */ i(U, { children: /* @__PURE__ */ i(
|
|
105
114
|
"button",
|
|
106
115
|
{
|
|
107
116
|
"aria-label": `Remove ${t}`,
|
|
108
|
-
className:
|
|
117
|
+
className: $(
|
|
109
118
|
"inline-flex size-9 cursor-pointer items-center justify-center rounded-full",
|
|
110
119
|
"text-muted-foreground",
|
|
111
120
|
"focus-visible:shadow-default outline-none",
|
|
112
121
|
"transition-colors duration-150 ease-in-out",
|
|
113
122
|
"disabled:pointer-events-none disabled:opacity-50"
|
|
114
123
|
),
|
|
115
|
-
"data-hook": `${
|
|
116
|
-
disabled:
|
|
124
|
+
"data-hook": `${a}-remove-${e}`,
|
|
125
|
+
disabled: m,
|
|
117
126
|
type: "button",
|
|
118
|
-
onClick: () =>
|
|
119
|
-
children: /* @__PURE__ */ i(
|
|
127
|
+
onClick: () => w(e),
|
|
128
|
+
children: /* @__PURE__ */ i(T, {})
|
|
120
129
|
}
|
|
121
130
|
) })
|
|
122
131
|
] })
|
|
123
132
|
},
|
|
124
|
-
|
|
133
|
+
S[e]
|
|
125
134
|
)) })
|
|
126
135
|
}
|
|
127
|
-
)
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
-
/* @__PURE__ */
|
|
136
|
+
),
|
|
137
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col gap-2", "data-slot": "input-list-input-area", children: [
|
|
138
|
+
/* @__PURE__ */ c("div", { className: "flex gap-2", children: [
|
|
130
139
|
/* @__PURE__ */ i(
|
|
131
|
-
|
|
140
|
+
G,
|
|
132
141
|
{
|
|
133
142
|
className: "flex-1",
|
|
134
|
-
dataHook: `${
|
|
135
|
-
disabled:
|
|
136
|
-
error:
|
|
137
|
-
placeholder:
|
|
138
|
-
value:
|
|
139
|
-
onChange: (t) =>
|
|
140
|
-
|
|
141
|
-
|
|
143
|
+
dataHook: `${a}-input`,
|
|
144
|
+
disabled: _,
|
|
145
|
+
error: x || !!o,
|
|
146
|
+
placeholder: k,
|
|
147
|
+
value: f,
|
|
148
|
+
onChange: (t) => {
|
|
149
|
+
N(t.target.value), o && u(null);
|
|
150
|
+
},
|
|
151
|
+
onKeyDown: C,
|
|
152
|
+
onPaste: P
|
|
142
153
|
}
|
|
143
154
|
),
|
|
144
155
|
/* @__PURE__ */ i(
|
|
145
|
-
|
|
156
|
+
X,
|
|
146
157
|
{
|
|
147
|
-
dataHook: `${
|
|
148
|
-
disabled:
|
|
149
|
-
onClick: () =>
|
|
150
|
-
children:
|
|
158
|
+
dataHook: `${a}-add`,
|
|
159
|
+
disabled: j,
|
|
160
|
+
onClick: () => y([f]),
|
|
161
|
+
children: D
|
|
151
162
|
}
|
|
152
163
|
)
|
|
153
164
|
] }),
|
|
154
|
-
|
|
155
|
-
|
|
165
|
+
x && b || o ? /* @__PURE__ */ i(
|
|
166
|
+
q,
|
|
156
167
|
{
|
|
168
|
+
className: "text-left",
|
|
157
169
|
"data-slot": "input-list-error",
|
|
158
|
-
dataHook: `${
|
|
159
|
-
children:
|
|
170
|
+
dataHook: `${a}-error`,
|
|
171
|
+
children: o ?? b
|
|
160
172
|
}
|
|
161
|
-
) : /* @__PURE__ */
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
a !== void 0 && /* @__PURE__ */ r(
|
|
171
|
-
A,
|
|
172
|
-
{
|
|
173
|
-
"data-slot": "input-list-count",
|
|
174
|
-
dataHook: `${l}-count`,
|
|
175
|
-
children: [
|
|
176
|
-
e.length,
|
|
177
|
-
"/",
|
|
178
|
-
a
|
|
179
|
-
]
|
|
180
|
-
}
|
|
181
|
-
)
|
|
182
|
-
] })
|
|
173
|
+
) : I && /* @__PURE__ */ i(
|
|
174
|
+
B,
|
|
175
|
+
{
|
|
176
|
+
className: "text-left",
|
|
177
|
+
"data-slot": "input-list-description",
|
|
178
|
+
dataHook: `${a}-description`,
|
|
179
|
+
children: I
|
|
180
|
+
}
|
|
181
|
+
)
|
|
183
182
|
] })
|
|
184
183
|
]
|
|
185
184
|
}
|
|
186
185
|
);
|
|
187
186
|
}
|
|
188
|
-
|
|
187
|
+
V.displayName = "InputList";
|
|
189
188
|
export {
|
|
190
|
-
|
|
189
|
+
V as InputList
|
|
191
190
|
};
|
|
@@ -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"}
|