ml-uikit 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/password-input.d.ts +9 -0
- package/dist/components/ui/password-input.d.ts.map +1 -0
- package/dist/components/ui/searchable-dropdown.d.ts +22 -0
- package/dist/components/ui/searchable-dropdown.d.ts.map +1 -0
- package/dist/components/ui/table.d.ts +5 -1
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs10.js.map +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs11.js.map +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs12.js.map +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs13.js.map +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs14.js.map +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs15.js.map +1 -1
- package/dist/index.cjs16.js +4 -4
- package/dist/index.cjs16.js.map +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs17.js.map +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs19.js.map +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs20.js.map +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs21.js.map +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs22.js.map +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs23.js.map +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs24.js.map +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs25.js.map +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs26.js.map +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs27.js.map +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs28.js.map +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs29.js.map +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs3.js.map +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs30.js.map +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs31.js.map +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs32.js.map +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs33.js.map +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs34.js.map +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs35.js.map +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs36.js.map +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs37.js.map +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs38.js.map +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs39.js.map +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs4.js.map +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs40.js.map +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs41.js.map +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs42.js.map +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs43.js.map +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs44.js.map +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs45.js.map +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs46.js.map +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs47.js.map +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs48.js.map +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs49.js.map +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs5.js.map +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs50.js.map +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs52.js.map +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs53.js.map +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs54.js.map +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs55.js.map +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs56.js.map +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs57.js.map +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs58.js.map +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs59.js.map +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs60.js.map +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs61.js.map +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs62.js.map +1 -1
- package/dist/index.cjs63.js +2 -0
- package/dist/index.cjs63.js.map +1 -0
- package/dist/index.cjs64.js +2 -0
- package/dist/index.cjs64.js.map +1 -0
- package/dist/index.cjs65.js +2 -0
- package/dist/index.cjs65.js.map +1 -0
- package/dist/index.cjs66.js +2 -0
- package/dist/index.cjs66.js.map +1 -0
- package/dist/index.cjs67.js +2 -0
- package/dist/index.cjs67.js.map +1 -0
- package/dist/index.cjs68.js +7 -0
- package/dist/index.cjs68.js.map +1 -0
- package/dist/index.cjs69.js +2 -0
- package/dist/index.cjs69.js.map +1 -0
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs7.js.map +1 -1
- package/dist/index.cjs70.js +2 -0
- package/dist/index.cjs70.js.map +1 -0
- package/dist/index.cjs71.js +2 -0
- package/dist/index.cjs71.js.map +1 -0
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs8.js.map +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs9.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +271 -258
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +22 -21
- package/dist/index.es10.js.map +1 -1
- package/dist/index.es11.js +14 -13
- package/dist/index.es11.js.map +1 -1
- package/dist/index.es12.js +31 -31
- package/dist/index.es12.js.map +1 -1
- package/dist/index.es13.js +39 -38
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es14.js +34 -33
- package/dist/index.es14.js.map +1 -1
- package/dist/index.es15.js +107 -102
- package/dist/index.es15.js.map +1 -1
- package/dist/index.es16.js +155 -140
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es17.js +21 -18
- package/dist/index.es17.js.map +1 -1
- package/dist/index.es19.js +63 -59
- package/dist/index.es19.js.map +1 -1
- package/dist/index.es2.js +10 -6
- package/dist/index.es2.js.map +1 -1
- package/dist/index.es20.js +85 -78
- package/dist/index.es20.js.map +1 -1
- package/dist/index.es21.js +68 -59
- package/dist/index.es21.js.map +1 -1
- package/dist/index.es22.js +68 -62
- package/dist/index.es22.js.map +1 -1
- package/dist/index.es23.js +83 -76
- package/dist/index.es23.js.map +1 -1
- package/dist/index.es24.js +178 -94
- package/dist/index.es24.js.map +1 -1
- package/dist/index.es25.js +57 -164
- package/dist/index.es25.js.map +1 -1
- package/dist/index.es26.js +198 -77
- package/dist/index.es26.js.map +1 -1
- package/dist/index.es27.js +90 -20
- package/dist/index.es27.js.map +1 -1
- package/dist/index.es28.js +21 -22
- package/dist/index.es28.js.map +1 -1
- package/dist/index.es29.js +19 -343
- package/dist/index.es29.js.map +1 -1
- package/dist/index.es3.js +35 -32
- package/dist/index.es3.js.map +1 -1
- package/dist/index.es30.js +38 -148
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es31.js +377 -42
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es32.js +146 -172
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es33.js +46 -253
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es34.js +195 -180
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js +253 -29
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +183 -14
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +29 -93
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +13 -187
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +93 -96
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es4.js +38 -32
- package/dist/index.es4.js.map +1 -1
- package/dist/index.es40.js +182 -80
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +98 -17
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +101 -21
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +20 -28
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +19 -28
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +25 -176
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +36 -21
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +171 -78
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +17 -551
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +106 -13
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es5.js +71 -67
- package/dist/index.es5.js.map +1 -1
- package/dist/index.es50.js +559 -35
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +12 -19
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +47 -12
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +21 -25
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +14 -217
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +23 -44
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es56.js +237 -13
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es57.js +44 -28
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es58.js +17 -36
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es59.js +33 -18
- package/dist/index.es59.js.map +1 -1
- package/dist/index.es60.js +39 -6
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es61.js +21 -267
- package/dist/index.es61.js.map +1 -1
- package/dist/index.es62.js +3 -6268
- package/dist/index.es62.js.map +1 -1
- package/dist/index.es63.js +9 -0
- package/dist/index.es63.js.map +1 -0
- package/dist/index.es64.js +270 -0
- package/dist/index.es64.js.map +1 -0
- package/dist/index.es65.js +11 -0
- package/dist/index.es65.js.map +1 -0
- package/dist/index.es66.js +5 -0
- package/dist/index.es66.js.map +1 -0
- package/dist/index.es67.js +27 -0
- package/dist/index.es67.js.map +1 -0
- package/dist/index.es68.js +237 -0
- package/dist/index.es68.js.map +1 -0
- package/dist/index.es69.js +5 -0
- package/dist/index.es69.js.map +1 -0
- package/dist/index.es7.js +25 -24
- package/dist/index.es7.js.map +1 -1
- package/dist/index.es70.js +5 -0
- package/dist/index.es70.js.map +1 -0
- package/dist/index.es71.js +6271 -0
- package/dist/index.es71.js.map +1 -0
- package/dist/index.es8.js +43 -41
- package/dist/index.es8.js.map +1 -1
- package/dist/index.es9.js +51 -48
- package/dist/index.es9.js.map +1 -1
- package/dist/style.css +59 -0
- package/package.json +1 -1
package/dist/index.es55.js
CHANGED
|
@@ -1,52 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { j as t } from "./index.es62.js";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import * as e from "@radix-ui/react-switch";
|
|
4
|
+
import { cn as s } from "./index.es63.js";
|
|
5
|
+
const n = a.forwardRef(({ className: i, ...o }, r) => /* @__PURE__ */ t.jsx(
|
|
6
|
+
e.Root,
|
|
6
7
|
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
...i
|
|
14
|
-
}
|
|
15
|
-
));
|
|
16
|
-
s.displayName = e.List.displayName;
|
|
17
|
-
const n = t.forwardRef(({ className: a, ...i }, r) => /* @__PURE__ */ t.createElement(
|
|
18
|
-
e.Trigger,
|
|
19
|
-
{
|
|
20
|
-
ref: r,
|
|
21
|
-
className: o(
|
|
22
|
-
"inline-flex h-7 items-center justify-center gap-1 whitespace-nowrap rounded-[8px] border border-transparent bg-transparent px-2 font-['Inter'] text-[16px] not-italic font-medium leading-[24px] [color:var(--raw-black,#000)] transition-colors",
|
|
23
|
-
"[&_svg]:size-3.5",
|
|
24
|
-
"hover:[color:var(--raw-black,#000)]",
|
|
25
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#1D1C20] focus-visible:ring-offset-2",
|
|
26
|
-
"disabled:pointer-events-none disabled:bg-[#f2f2f2] disabled:text-[#b3b3b3]",
|
|
27
|
-
"data-[state=active]:bg-white data-[state=active]:shadow-[0_2px_4px_-2px_rgba(19,25,39,0.12),_0_4px_4px_-2px_rgba(19,25,39,0.08)]",
|
|
28
|
-
a
|
|
8
|
+
className: s(
|
|
9
|
+
"peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-[#e6e6e6] transition-colors",
|
|
10
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2 focus-visible:ring-offset-white",
|
|
11
|
+
"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:opacity-100",
|
|
12
|
+
"data-[state=checked]:bg-[#26453f] data-[state=unchecked]:bg-[#e6e6e6]",
|
|
13
|
+
i
|
|
29
14
|
),
|
|
30
|
-
...
|
|
31
|
-
}
|
|
32
|
-
));
|
|
33
|
-
n.displayName = e.Trigger.displayName;
|
|
34
|
-
const l = t.forwardRef(({ className: a, ...i }, r) => /* @__PURE__ */ t.createElement(
|
|
35
|
-
e.Content,
|
|
36
|
-
{
|
|
15
|
+
...o,
|
|
37
16
|
ref: r,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
17
|
+
children: /* @__PURE__ */ t.jsx(
|
|
18
|
+
e.Thumb,
|
|
19
|
+
{
|
|
20
|
+
className: s(
|
|
21
|
+
"pointer-events-none block h-4 w-4 rounded-full bg-white shadow-sm ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
)
|
|
43
25
|
}
|
|
44
26
|
));
|
|
45
|
-
|
|
27
|
+
n.displayName = e.Root.displayName;
|
|
46
28
|
export {
|
|
47
|
-
|
|
48
|
-
l as TabsContent,
|
|
49
|
-
s as TabsList,
|
|
50
|
-
n as TabsTrigger
|
|
29
|
+
n as Switch
|
|
51
30
|
};
|
|
52
31
|
//# sourceMappingURL=index.es55.js.map
|
package/dist/index.es55.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es55.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es55.js","sources":["../src/components/ui/switch.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as SwitchPrimitives from \"@radix-ui/react-switch\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Switch = React.forwardRef<\n React.ElementRef<typeof SwitchPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>\n>(({ className, ...props }, ref) => (\n <SwitchPrimitives.Root\n className={cn(\n \"peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-[#e6e6e6] transition-colors\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2 focus-visible:ring-offset-white\",\n \"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:opacity-100\",\n \"data-[state=checked]:bg-[#26453f] data-[state=unchecked]:bg-[#e6e6e6]\",\n className\n )}\n {...props}\n ref={ref}\n >\n <SwitchPrimitives.Thumb\n className={cn(\n \"pointer-events-none block h-4 w-4 rounded-full bg-white shadow-sm ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0\"\n )}\n />\n </SwitchPrimitives.Root>\n))\nSwitch.displayName = SwitchPrimitives.Root.displayName\n\nexport { Switch }\n"],"names":["Switch","React","className","props","ref","jsx","SwitchPrimitives","cn"],"mappings":";;;;AAKA,MAAMA,IAASC,EAAM,WAGnB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACC,EAAiB;AAAA,EAAjB;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,IACJ,KAAAC;AAAA,IAEA,UAAAC,gBAAAA,EAAAA;AAAAA,MAACC,EAAiB;AAAA,MAAjB;AAAA,QACC,WAAWC;AAAA,UACT;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EACF;AACF,CACD;AACDP,EAAO,cAAcM,EAAiB,KAAK;"}
|
package/dist/index.es56.js
CHANGED
|
@@ -1,21 +1,245 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { j as s } from "./index.es62.js";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { ChevronDown as f, ChevronLeft as x, ChevronRight as c } from "lucide-react";
|
|
4
|
+
import { cn as o } from "./index.es63.js";
|
|
5
|
+
const m = r.forwardRef(
|
|
6
|
+
({ className: t, pagination: a, maxHeight: e, scrollContainerClassName: l, stickyHeader: n, ...d }, i) => /* @__PURE__ */ s.jsxs("div", { className: "relative w-full overflow-hidden rounded-[8px] border border-[#e6e6e6] bg-white", children: [
|
|
7
|
+
/* @__PURE__ */ s.jsx(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
className: o("ml-table-scroll w-full overflow-auto", l),
|
|
11
|
+
style: e ? { maxHeight: typeof e == "number" ? `${e}px` : e } : void 0,
|
|
12
|
+
children: /* @__PURE__ */ s.jsx(
|
|
13
|
+
"table",
|
|
14
|
+
{
|
|
15
|
+
ref: i,
|
|
16
|
+
className: o(
|
|
17
|
+
"w-full caption-bottom text-[14px] leading-[20px]",
|
|
18
|
+
n ? "[&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10 [&_thead]:bg-[#fafafa]" : void 0,
|
|
19
|
+
t
|
|
20
|
+
),
|
|
21
|
+
...d
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
),
|
|
26
|
+
a ? /* @__PURE__ */ s.jsx("div", { className: "w-full", children: a }) : null
|
|
27
|
+
] })
|
|
28
|
+
);
|
|
29
|
+
m.displayName = "Table";
|
|
30
|
+
const p = r.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s.jsx(
|
|
31
|
+
"thead",
|
|
32
|
+
{
|
|
33
|
+
ref: e,
|
|
34
|
+
className: o("bg-[#fafafa] [&_tr]:border-b [&_tr]:border-[#e6e6e6]", t),
|
|
35
|
+
...a
|
|
36
|
+
}
|
|
37
|
+
));
|
|
38
|
+
p.displayName = "TableHeader";
|
|
39
|
+
const b = r.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s.jsx(
|
|
40
|
+
"tbody",
|
|
41
|
+
{
|
|
42
|
+
ref: e,
|
|
43
|
+
className: o("[&_tr:last-child]:border-0", t),
|
|
44
|
+
...a
|
|
45
|
+
}
|
|
46
|
+
));
|
|
47
|
+
b.displayName = "TableBody";
|
|
48
|
+
const g = r.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s.jsx(
|
|
49
|
+
"tfoot",
|
|
50
|
+
{
|
|
51
|
+
ref: e,
|
|
52
|
+
className: o(
|
|
53
|
+
"border-t border-[#e6e6e6] bg-[#fafafa] font-medium [&>tr]:last:border-b-0",
|
|
54
|
+
t
|
|
55
|
+
),
|
|
56
|
+
...a
|
|
57
|
+
}
|
|
58
|
+
));
|
|
59
|
+
g.displayName = "TableFooter";
|
|
60
|
+
const N = r.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s.jsx(
|
|
61
|
+
"tr",
|
|
62
|
+
{
|
|
63
|
+
ref: e,
|
|
64
|
+
className: o(
|
|
65
|
+
"border-b border-[#e6e6e6]",
|
|
66
|
+
t
|
|
67
|
+
),
|
|
68
|
+
...a
|
|
69
|
+
}
|
|
70
|
+
));
|
|
71
|
+
N.displayName = "TableRow";
|
|
72
|
+
const u = r.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s.jsx(
|
|
73
|
+
"th",
|
|
74
|
+
{
|
|
75
|
+
ref: e,
|
|
76
|
+
className: o(
|
|
77
|
+
"h-12 px-3 py-2 text-left align-middle text-[14px] font-medium leading-[20px] text-foreground",
|
|
78
|
+
t
|
|
79
|
+
),
|
|
80
|
+
...a
|
|
81
|
+
}
|
|
82
|
+
));
|
|
83
|
+
u.displayName = "TableHead";
|
|
84
|
+
const T = r.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s.jsx(
|
|
85
|
+
"td",
|
|
86
|
+
{
|
|
87
|
+
ref: e,
|
|
88
|
+
className: o(
|
|
89
|
+
"h-12 px-3 py-2 align-middle text-[14px] font-normal leading-[20px] text-foreground",
|
|
90
|
+
t
|
|
91
|
+
),
|
|
92
|
+
...a
|
|
93
|
+
}
|
|
94
|
+
));
|
|
95
|
+
T.displayName = "TableCell";
|
|
96
|
+
const w = r.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s.jsx(
|
|
97
|
+
"caption",
|
|
98
|
+
{
|
|
99
|
+
ref: e,
|
|
100
|
+
className: o("mt-4 text-sm text-muted-foreground", t),
|
|
101
|
+
...a
|
|
102
|
+
}
|
|
103
|
+
));
|
|
104
|
+
w.displayName = "TableCaption";
|
|
105
|
+
const j = r.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s.jsx(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
ref: e,
|
|
109
|
+
className: o(
|
|
110
|
+
"grid w-full grid-cols-[auto_1fr_auto] items-center border-t border-[#e6e6e6] bg-white p-4",
|
|
111
|
+
t
|
|
112
|
+
),
|
|
113
|
+
...a
|
|
114
|
+
}
|
|
115
|
+
));
|
|
116
|
+
j.displayName = "TablePagination";
|
|
117
|
+
const h = r.forwardRef(({ className: t, label: a = "Total entries:", count: e = "-", ...l }, n) => /* @__PURE__ */ s.jsxs(
|
|
118
|
+
"div",
|
|
119
|
+
{
|
|
120
|
+
ref: n,
|
|
121
|
+
className: o("col-start-1 flex items-center gap-1 justify-self-start", t),
|
|
122
|
+
...l,
|
|
123
|
+
children: [
|
|
124
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-[14px] font-normal leading-[20px] text-[#4f4d55]", children: a }),
|
|
125
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-[14px] font-normal leading-[20px] text-[#1d1c20]", children: e })
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
));
|
|
129
|
+
h.displayName = "TablePaginationEntries";
|
|
130
|
+
const y = r.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s.jsx(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
ref: e,
|
|
134
|
+
className: o("col-start-2 flex items-center gap-3 justify-self-center", t),
|
|
135
|
+
...a
|
|
136
|
+
}
|
|
137
|
+
));
|
|
138
|
+
y.displayName = "TablePaginationContent";
|
|
139
|
+
const P = r.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s.jsx(
|
|
140
|
+
"div",
|
|
5
141
|
{
|
|
142
|
+
ref: e,
|
|
143
|
+
className: o("flex items-center gap-2", t),
|
|
144
|
+
...a
|
|
145
|
+
}
|
|
146
|
+
));
|
|
147
|
+
P.displayName = "TablePaginationPages";
|
|
148
|
+
const R = r.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s.jsx(
|
|
149
|
+
"button",
|
|
150
|
+
{
|
|
151
|
+
ref: e,
|
|
152
|
+
type: "button",
|
|
6
153
|
className: o(
|
|
7
|
-
"flex
|
|
8
|
-
|
|
9
|
-
"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:text-[#9ca3af] disabled:placeholder:text-[#b3b3b3] disabled:opacity-100",
|
|
10
|
-
"aria-invalid:border-[#ff3b30] aria-invalid:focus-visible:border-[#ff3b30]",
|
|
11
|
-
a
|
|
154
|
+
"flex h-7 w-7 items-center justify-center rounded-[8px] text-[#7f7d83] hover:text-foreground",
|
|
155
|
+
t
|
|
12
156
|
),
|
|
13
|
-
|
|
14
|
-
|
|
157
|
+
...a
|
|
158
|
+
}
|
|
159
|
+
));
|
|
160
|
+
R.displayName = "TablePaginationButton";
|
|
161
|
+
const v = r.forwardRef(({ className: t, isActive: a, ...e }, l) => /* @__PURE__ */ s.jsx(
|
|
162
|
+
"button",
|
|
163
|
+
{
|
|
164
|
+
ref: l,
|
|
165
|
+
type: "button",
|
|
166
|
+
"aria-current": a ? "page" : void 0,
|
|
167
|
+
className: o(
|
|
168
|
+
"flex h-8 w-8 items-center justify-center rounded-[8px] text-[12px] leading-[16px]",
|
|
169
|
+
a ? "border border-[#e6e6e6] bg-white text-foreground" : "text-[#7f7d83]",
|
|
170
|
+
t
|
|
171
|
+
),
|
|
172
|
+
...e
|
|
173
|
+
}
|
|
174
|
+
));
|
|
175
|
+
v.displayName = "TablePaginationPage";
|
|
176
|
+
const C = r.forwardRef(({ className: t, label: a = "Total entries:", total: e = "-", ...l }, n) => /* @__PURE__ */ s.jsxs(
|
|
177
|
+
"div",
|
|
178
|
+
{
|
|
179
|
+
ref: n,
|
|
180
|
+
className: o("flex items-center gap-1 text-[14px] font-normal leading-[20px]", t),
|
|
181
|
+
...l,
|
|
182
|
+
children: [
|
|
183
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-[#4f4d55]", children: a }),
|
|
184
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-[#1d1c20]", children: e })
|
|
185
|
+
]
|
|
15
186
|
}
|
|
16
187
|
));
|
|
17
|
-
|
|
188
|
+
C.displayName = "TablePaginationTotalEntries";
|
|
189
|
+
const _ = r.forwardRef(
|
|
190
|
+
({
|
|
191
|
+
className: t,
|
|
192
|
+
label: a = "Go to page:",
|
|
193
|
+
pageLabel: e = "-",
|
|
194
|
+
placeholder: l = "-",
|
|
195
|
+
icon: n,
|
|
196
|
+
...d
|
|
197
|
+
}, i) => /* @__PURE__ */ s.jsxs(
|
|
198
|
+
"div",
|
|
199
|
+
{
|
|
200
|
+
ref: i,
|
|
201
|
+
className: o("col-start-3 flex items-center gap-[13px] justify-self-end", t),
|
|
202
|
+
...d,
|
|
203
|
+
children: [
|
|
204
|
+
/* @__PURE__ */ s.jsx("span", { className: "text-[14px] font-normal leading-[20px] text-foreground", children: a }),
|
|
205
|
+
/* @__PURE__ */ s.jsxs(
|
|
206
|
+
"button",
|
|
207
|
+
{
|
|
208
|
+
type: "button",
|
|
209
|
+
"aria-haspopup": "listbox",
|
|
210
|
+
className: "flex h-8 min-w-[72px] items-center justify-between gap-2 rounded-[8px] border border-[#e6e6e6] bg-white px-3 text-[12px] leading-[16px] text-foreground shadow-sm",
|
|
211
|
+
children: [
|
|
212
|
+
/* @__PURE__ */ s.jsx("span", { className: e === l ? "text-[#7f7d83]" : void 0, children: e === l ? l : e }),
|
|
213
|
+
n || /* @__PURE__ */ s.jsx(f, { className: "h-4 w-4 text-[#7f7d83]" })
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
)
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
)
|
|
220
|
+
);
|
|
221
|
+
_.displayName = "TablePaginationGoTo";
|
|
222
|
+
const F = ({
|
|
223
|
+
className: t,
|
|
224
|
+
direction: a
|
|
225
|
+
}) => a === "left" ? /* @__PURE__ */ s.jsx(x, { className: o("h-4 w-4", t) }) : /* @__PURE__ */ s.jsx(c, { className: o("h-4 w-4", t) });
|
|
18
226
|
export {
|
|
19
|
-
|
|
227
|
+
m as Table,
|
|
228
|
+
b as TableBody,
|
|
229
|
+
w as TableCaption,
|
|
230
|
+
T as TableCell,
|
|
231
|
+
g as TableFooter,
|
|
232
|
+
u as TableHead,
|
|
233
|
+
p as TableHeader,
|
|
234
|
+
j as TablePagination,
|
|
235
|
+
R as TablePaginationButton,
|
|
236
|
+
y as TablePaginationContent,
|
|
237
|
+
h as TablePaginationEntries,
|
|
238
|
+
_ as TablePaginationGoTo,
|
|
239
|
+
F as TablePaginationIcon,
|
|
240
|
+
v as TablePaginationPage,
|
|
241
|
+
P as TablePaginationPages,
|
|
242
|
+
C as TablePaginationTotalEntries,
|
|
243
|
+
N as TableRow
|
|
20
244
|
};
|
|
21
245
|
//# sourceMappingURL=index.es56.js.map
|
package/dist/index.es56.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es56.js","sources":["../src/components/ui/textarea.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Textarea = React.forwardRef<\n HTMLTextAreaElement,\n React.ComponentProps<\"textarea\">\n>(({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n \"flex min-h-[120px] w-full rounded-[8px] border border-[#e6e6e6] bg-white px-3 py-2 text-[14px] leading-[20px] text-[#111111] transition-colors\",\n \"placeholder:text-[#b3b3b3] focus-visible:outline-none focus-visible:border-[#1D1C20] focus-visible:ring-0\",\n \"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:text-[#9ca3af] disabled:placeholder:text-[#b3b3b3] disabled:opacity-100\",\n \"aria-invalid:border-[#ff3b30] aria-invalid:focus-visible:border-[#ff3b30]\",\n className\n )}\n ref={ref}\n {...props}\n />\n )\n})\nTextarea.displayName = \"Textarea\"\n\nexport { Textarea }\n"],"names":["Textarea","React","className","props","ref","cn"],"mappings":";;AAIA,MAAMA,IAAWC,EAAM,WAGrB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAExB,gBAAAH,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWI;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACAH;AAAA,IAAA;AAAA,IAEF,KAAAE;AAAA,IACC,GAAGD;AAAA,EAAA;AAAA,CAGT;AACDH,EAAS,cAAc;"}
|
|
1
|
+
{"version":3,"file":"index.es56.js","sources":["../src/components/ui/table.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { ChevronDown, ChevronLeft, ChevronRight } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype TableProps = React.HTMLAttributes<HTMLTableElement> & {\n pagination?: React.ReactNode\n maxHeight?: number | string\n scrollContainerClassName?: string\n stickyHeader?: boolean\n}\n\nconst Table = React.forwardRef<HTMLTableElement, TableProps>(\n (\n { className, pagination, maxHeight, scrollContainerClassName, stickyHeader, ...props },\n ref\n ) => (\n <div className=\"relative w-full overflow-hidden rounded-[8px] border border-[#e6e6e6] bg-white\">\n <div\n className={cn(\"ml-table-scroll w-full overflow-auto\", scrollContainerClassName)}\n style={\n maxHeight\n ? { maxHeight: typeof maxHeight === \"number\" ? `${maxHeight}px` : maxHeight }\n : undefined\n }\n >\n <table\n ref={ref}\n className={cn(\n \"w-full caption-bottom text-[14px] leading-[20px]\",\n stickyHeader\n ? \"[&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10 [&_thead]:bg-[#fafafa]\"\n : undefined,\n className\n )}\n {...props}\n />\n </div>\n {pagination ? <div className=\"w-full\">{pagination}</div> : null}\n </div>\n )\n)\nTable.displayName = \"Table\"\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead\n ref={ref}\n className={cn(\"bg-[#fafafa] [&_tr]:border-b [&_tr]:border-[#e6e6e6]\", className)}\n {...props}\n />\n))\nTableHeader.displayName = \"TableHeader\"\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn(\"[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n))\nTableBody.displayName = \"TableBody\"\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn(\n \"border-t border-[#e6e6e6] bg-[#fafafa] font-medium [&>tr]:last:border-b-0\",\n className\n )}\n {...props}\n />\n))\nTableFooter.displayName = \"TableFooter\"\n\nconst TableRow = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n \"border-b border-[#e6e6e6]\",\n className\n )}\n {...props}\n />\n))\nTableRow.displayName = \"TableRow\"\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\n \"h-12 px-3 py-2 text-left align-middle text-[14px] font-medium leading-[20px] text-foreground\",\n className\n )}\n {...props}\n />\n))\nTableHead.displayName = \"TableHead\"\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n \"h-12 px-3 py-2 align-middle text-[14px] font-normal leading-[20px] text-foreground\",\n className\n )}\n {...props}\n />\n))\nTableCell.displayName = \"TableCell\"\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption\n ref={ref}\n className={cn(\"mt-4 text-sm text-muted-foreground\", className)}\n {...props}\n />\n))\nTableCaption.displayName = \"TableCaption\"\n\nconst TablePagination = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n \"grid w-full grid-cols-[auto_1fr_auto] items-center border-t border-[#e6e6e6] bg-white p-4\",\n className\n )}\n {...props}\n />\n))\nTablePagination.displayName = \"TablePagination\"\n\ntype TablePaginationEntriesProps = React.HTMLAttributes<HTMLDivElement> & {\n label?: string\n count?: string | number\n}\n\nconst TablePaginationEntries = React.forwardRef<\n HTMLDivElement,\n TablePaginationEntriesProps\n>(({ className, label = \"Total entries:\", count = \"-\", ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"col-start-1 flex items-center gap-1 justify-self-start\", className)}\n {...props}\n >\n <span className=\"text-[14px] font-normal leading-[20px] text-[#4f4d55]\">\n {label}\n </span>\n <span className=\"text-[14px] font-normal leading-[20px] text-[#1d1c20]\">\n {count}\n </span>\n </div>\n))\nTablePaginationEntries.displayName = \"TablePaginationEntries\"\n\nconst TablePaginationContent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"col-start-2 flex items-center gap-3 justify-self-center\", className)}\n {...props}\n />\n))\nTablePaginationContent.displayName = \"TablePaginationContent\"\n\nconst TablePaginationPages = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"flex items-center gap-2\", className)}\n {...props}\n />\n))\nTablePaginationPages.displayName = \"TablePaginationPages\"\n\nconst TablePaginationButton = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement>\n>(({ className, ...props }, ref) => (\n <button\n ref={ref}\n type=\"button\"\n className={cn(\n \"flex h-7 w-7 items-center justify-center rounded-[8px] text-[#7f7d83] hover:text-foreground\",\n className\n )}\n {...props}\n />\n))\nTablePaginationButton.displayName = \"TablePaginationButton\"\n\ntype TablePaginationPageProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {\n isActive?: boolean\n}\n\nconst TablePaginationPage = React.forwardRef<\n HTMLButtonElement,\n TablePaginationPageProps\n>(({ className, isActive, ...props }, ref) => (\n <button\n ref={ref}\n type=\"button\"\n aria-current={isActive ? \"page\" : undefined}\n className={cn(\n \"flex h-8 w-8 items-center justify-center rounded-[8px] text-[12px] leading-[16px]\",\n isActive\n ? \"border border-[#e6e6e6] bg-white text-foreground\"\n : \"text-[#7f7d83]\",\n className\n )}\n {...props}\n />\n))\nTablePaginationPage.displayName = \"TablePaginationPage\"\n\ntype TablePaginationGoToProps = React.HTMLAttributes<HTMLDivElement> & {\n label?: string\n pageLabel?: string\n placeholder?: string\n icon?: React.ReactNode\n}\n\ntype TablePaginationTotalEntriesProps = React.HTMLAttributes<HTMLDivElement> & {\n label?: string\n total?: string | number\n}\n\nconst TablePaginationTotalEntries = React.forwardRef<\n HTMLDivElement,\n TablePaginationTotalEntriesProps\n>(({ className, label = \"Total entries:\", total = \"-\", ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"flex items-center gap-1 text-[14px] font-normal leading-[20px]\", className)}\n {...props}\n >\n <span className=\"text-[#4f4d55]\">{label}</span>\n <span className=\"text-[#1d1c20]\">{total}</span>\n </div>\n))\nTablePaginationTotalEntries.displayName = \"TablePaginationTotalEntries\"\n\nconst TablePaginationGoTo = React.forwardRef<\n HTMLDivElement,\n TablePaginationGoToProps\n>(\n (\n {\n className,\n label = \"Go to page:\",\n pageLabel = \"-\",\n placeholder = \"-\",\n icon,\n ...props\n },\n ref\n ) => (\n <div\n ref={ref}\n className={cn(\"col-start-3 flex items-center gap-[13px] justify-self-end\", className)}\n {...props}\n >\n <span className=\"text-[14px] font-normal leading-[20px] text-foreground\">\n {label}\n </span>\n <button\n type=\"button\"\n aria-haspopup=\"listbox\"\n className=\"flex h-8 min-w-[72px] items-center justify-between gap-2 rounded-[8px] border border-[#e6e6e6] bg-white px-3 text-[12px] leading-[16px] text-foreground shadow-sm\"\n >\n <span className={pageLabel === placeholder ? \"text-[#7f7d83]\" : undefined}>\n {pageLabel === placeholder ? placeholder : pageLabel}\n </span>\n {icon || <ChevronDown className=\"h-4 w-4 text-[#7f7d83]\" />}\n </button>\n </div>\n )\n)\nTablePaginationGoTo.displayName = \"TablePaginationGoTo\"\n\nconst TablePaginationIcon = ({\n className,\n direction,\n}: {\n className?: string\n direction: \"left\" | \"right\"\n}) =>\n direction === \"left\" ? (\n <ChevronLeft className={cn(\"h-4 w-4\", className)} />\n ) : (\n <ChevronRight className={cn(\"h-4 w-4\", className)} />\n )\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n TablePagination,\n TablePaginationEntries,\n TablePaginationContent,\n TablePaginationPages,\n TablePaginationButton,\n TablePaginationPage,\n TablePaginationTotalEntries,\n TablePaginationGoTo,\n TablePaginationIcon,\n}\n"],"names":["Table","React","className","pagination","maxHeight","scrollContainerClassName","stickyHeader","props","ref","jsxs","jsx","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption","TablePagination","TablePaginationEntries","label","count","TablePaginationContent","TablePaginationPages","TablePaginationButton","TablePaginationPage","isActive","TablePaginationTotalEntries","total","TablePaginationGoTo","pageLabel","placeholder","icon","ChevronDown","TablePaginationIcon","direction","ChevronLeft","ChevronRight"],"mappings":";;;;AAYA,MAAMA,IAAQC,EAAM;AAAA,EAClB,CACE,EAAE,WAAAC,GAAW,YAAAC,GAAY,WAAAC,GAAW,0BAAAC,GAA0B,cAAAC,GAAc,GAAGC,EAAA,GAC/EC,MAEAC,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,kFACb,UAAA;AAAA,IAAAC,gBAAAA,EAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAWC,EAAG,wCAAwCN,CAAwB;AAAA,QAC9E,OACED,IACI,EAAE,WAAW,OAAOA,KAAc,WAAW,GAAGA,CAAS,OAAOA,EAAA,IAChE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,YACC,MAAK;AAAA,YACL,iBAAc;AAAA,YACd,WAAU;AAAA,YAEV,UAAA;AAAA,cAAAC,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAWqB,MAAcC,IAAc,mBAAmB,QAC7D,UAAAD,MAAcC,IAAcA,IAAcD,EAAA,CAC7C;AAAA,cACCE,KAAQvB,gBAAAA,EAAAA,IAACwB,GAAA,EAAY,WAAU,yBAAA,CAAyB;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MAC3D;AAAA,IAAA;AAAA,EAAA;AAGJ;AACAJ,EAAoB,cAAc;AAElC,MAAMK,IAAsB,CAAC;AAAA,EAC3B,WAAAjC;AAAA,EACA,WAAAkC;AACF,MAIEA,MAAc,SACZ1B,gBAAAA,EAAAA,IAAC2B,GAAA,EAAY,WAAW1B,EAAG,WAAWT,CAAS,EAAA,CAAG,0BAEjDoC,GAAA,EAAa,WAAW3B,EAAG,WAAWT,CAAS,EAAA,CAAG;"}
|
package/dist/index.es57.js
CHANGED
|
@@ -1,37 +1,53 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { cn as
|
|
5
|
-
const
|
|
6
|
-
|
|
1
|
+
import { j as s } from "./index.es62.js";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import * as e from "@radix-ui/react-tabs";
|
|
4
|
+
import { cn as r } from "./index.es63.js";
|
|
5
|
+
const d = e.Root, n = o.forwardRef(({ className: t, ...a }, i) => /* @__PURE__ */ s.jsx(
|
|
6
|
+
e.List,
|
|
7
7
|
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
ref: i,
|
|
9
|
+
className: r(
|
|
10
|
+
"flex w-full flex-wrap items-center gap-1 rounded-[8px] bg-[#f5f5f5] p-1",
|
|
11
|
+
"data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-start",
|
|
12
|
+
t
|
|
13
|
+
),
|
|
14
|
+
...a
|
|
15
|
+
}
|
|
16
|
+
));
|
|
17
|
+
n.displayName = e.List.displayName;
|
|
18
|
+
const l = o.forwardRef(({ className: t, ...a }, i) => /* @__PURE__ */ s.jsx(
|
|
19
|
+
e.Trigger,
|
|
20
|
+
{
|
|
21
|
+
ref: i,
|
|
22
|
+
className: r(
|
|
23
|
+
"inline-flex h-7 items-center justify-center gap-1 whitespace-nowrap rounded-[8px] border border-transparent bg-transparent px-2 font-['Inter'] text-[16px] not-italic font-medium leading-[24px] [color:var(--raw-black,#000)] transition-colors",
|
|
24
|
+
"[&_svg]:size-3.5",
|
|
25
|
+
"hover:[color:var(--raw-black,#000)]",
|
|
26
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#1D1C20] focus-visible:ring-offset-2",
|
|
27
|
+
"disabled:pointer-events-none disabled:bg-[#f2f2f2] disabled:text-[#b3b3b3]",
|
|
28
|
+
"data-[state=active]:bg-white data-[state=active]:shadow-[0_2px_4px_-2px_rgba(19,25,39,0.12),_0_4px_4px_-2px_rgba(19,25,39,0.08)]",
|
|
29
|
+
t
|
|
30
|
+
),
|
|
31
|
+
...a
|
|
23
32
|
}
|
|
24
|
-
)
|
|
25
|
-
|
|
33
|
+
));
|
|
34
|
+
l.displayName = e.Trigger.displayName;
|
|
35
|
+
const f = o.forwardRef(({ className: t, ...a }, i) => /* @__PURE__ */ s.jsx(
|
|
36
|
+
e.Content,
|
|
26
37
|
{
|
|
27
38
|
ref: i,
|
|
28
|
-
className:
|
|
29
|
-
|
|
39
|
+
className: r(
|
|
40
|
+
"mt-4 font-['Inter'] text-[16px] not-italic font-medium leading-[24px] [color:var(--raw-black,#000)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#1D1C20] focus-visible:ring-offset-2",
|
|
41
|
+
t
|
|
42
|
+
),
|
|
43
|
+
...a
|
|
30
44
|
}
|
|
31
45
|
));
|
|
32
|
-
|
|
46
|
+
f.displayName = e.Content.displayName;
|
|
33
47
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
48
|
+
d as Tabs,
|
|
49
|
+
f as TabsContent,
|
|
50
|
+
n as TabsList,
|
|
51
|
+
l as TabsTrigger
|
|
36
52
|
};
|
|
37
53
|
//# sourceMappingURL=index.es57.js.map
|
package/dist/index.es57.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es57.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es57.js","sources":["../src/components/ui/tabs.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Tabs = TabsPrimitive.Root\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\n \"flex w-full flex-wrap items-center gap-1 rounded-[8px] bg-[#f5f5f5] p-1\",\n \"data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-start\",\n className\n )}\n {...props}\n />\n))\nTabsList.displayName = TabsPrimitive.List.displayName\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n \"inline-flex h-7 items-center justify-center gap-1 whitespace-nowrap rounded-[8px] border border-transparent bg-transparent px-2 font-['Inter'] text-[16px] not-italic font-medium leading-[24px] [color:var(--raw-black,#000)] transition-colors\",\n \"[&_svg]:size-3.5\",\n \"hover:[color:var(--raw-black,#000)]\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#1D1C20] focus-visible:ring-offset-2\",\n \"disabled:pointer-events-none disabled:bg-[#f2f2f2] disabled:text-[#b3b3b3]\",\n \"data-[state=active]:bg-white data-[state=active]:shadow-[0_2px_4px_-2px_rgba(19,25,39,0.12),_0_4px_4px_-2px_rgba(19,25,39,0.08)]\",\n className\n )}\n {...props}\n />\n))\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName\n\nconst TabsContent = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\n \"mt-4 font-['Inter'] text-[16px] not-italic font-medium leading-[24px] [color:var(--raw-black,#000)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#1D1C20] focus-visible:ring-offset-2\",\n className\n )}\n {...props}\n />\n))\nTabsContent.displayName = TabsPrimitive.Content.displayName\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent }\n"],"names":["Tabs","TabsPrimitive","TabsList","React","className","props","ref","jsx","cn","TabsTrigger","TabsContent"],"mappings":";;;;AAKA,MAAMA,IAAOC,EAAc,MAErBC,IAAWC,EAAM,WAGrB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACN,EAAc;AAAA,EAAd;AAAA,IACC,KAAAK;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACA;AAAA,MACAJ;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAS,cAAcD,EAAc,KAAK;AAE1C,MAAMQ,IAAcN,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACN,EAAc;AAAA,EAAd;AAAA,IACC,KAAAK;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACAJ;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDI,EAAY,cAAcR,EAAc,QAAQ;AAEhD,MAAMS,IAAcP,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACN,EAAc;AAAA,EAAd;AAAA,IACC,KAAAK;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDK,EAAY,cAAcT,EAAc,QAAQ;"}
|
package/dist/index.es58.js
CHANGED
|
@@ -1,41 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import { cn as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
size: "default",
|
|
7
|
-
variant: "default"
|
|
8
|
-
}), f = e.forwardRef(({ className: a, variant: o, size: r, children: m, ...i }, s) => /* @__PURE__ */ e.createElement(
|
|
9
|
-
t.Root,
|
|
1
|
+
import { j as i } from "./index.es62.js";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { cn as t } from "./index.es63.js";
|
|
4
|
+
const d = o.forwardRef(({ className: e, ...r }, a) => /* @__PURE__ */ i.jsx(
|
|
5
|
+
"textarea",
|
|
10
6
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
className: t(
|
|
8
|
+
"flex min-h-[120px] w-full rounded-[8px] border border-[#e6e6e6] bg-white px-3 py-2 text-[14px] leading-[20px] text-[#111111] transition-colors",
|
|
9
|
+
"placeholder:text-[#b3b3b3] focus-visible:outline-none focus-visible:border-[#1D1C20] focus-visible:ring-0",
|
|
10
|
+
"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:text-[#9ca3af] disabled:placeholder:text-[#b3b3b3] disabled:opacity-100",
|
|
11
|
+
"aria-invalid:border-[#ff3b30] aria-invalid:focus-visible:border-[#ff3b30]",
|
|
12
|
+
e
|
|
13
|
+
),
|
|
14
|
+
ref: a,
|
|
15
|
+
...r
|
|
16
|
+
}
|
|
16
17
|
));
|
|
17
|
-
|
|
18
|
-
const g = e.forwardRef(({ className: a, children: o, variant: r, size: m, ...i }, s) => {
|
|
19
|
-
const n = e.useContext(c);
|
|
20
|
-
return /* @__PURE__ */ e.createElement(
|
|
21
|
-
t.Item,
|
|
22
|
-
{
|
|
23
|
-
ref: s,
|
|
24
|
-
className: l(
|
|
25
|
-
p({
|
|
26
|
-
variant: n.variant || r,
|
|
27
|
-
size: n.size || m
|
|
28
|
-
}),
|
|
29
|
-
a
|
|
30
|
-
),
|
|
31
|
-
...i
|
|
32
|
-
},
|
|
33
|
-
o
|
|
34
|
-
);
|
|
35
|
-
});
|
|
36
|
-
g.displayName = t.Item.displayName;
|
|
18
|
+
d.displayName = "Textarea";
|
|
37
19
|
export {
|
|
38
|
-
|
|
39
|
-
g as ToggleGroupItem
|
|
20
|
+
d as Textarea
|
|
40
21
|
};
|
|
41
22
|
//# sourceMappingURL=index.es58.js.map
|
package/dist/index.es58.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es58.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es58.js","sources":["../src/components/ui/textarea.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Textarea = React.forwardRef<\n HTMLTextAreaElement,\n React.ComponentProps<\"textarea\">\n>(({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n \"flex min-h-[120px] w-full rounded-[8px] border border-[#e6e6e6] bg-white px-3 py-2 text-[14px] leading-[20px] text-[#111111] transition-colors\",\n \"placeholder:text-[#b3b3b3] focus-visible:outline-none focus-visible:border-[#1D1C20] focus-visible:ring-0\",\n \"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:text-[#9ca3af] disabled:placeholder:text-[#b3b3b3] disabled:opacity-100\",\n \"aria-invalid:border-[#ff3b30] aria-invalid:focus-visible:border-[#ff3b30]\",\n className\n )}\n ref={ref}\n {...props}\n />\n )\n})\nTextarea.displayName = \"Textarea\"\n\nexport { Textarea }\n"],"names":["Textarea","React","className","props","ref","jsx","cn"],"mappings":";;;AAIA,MAAMA,IAAWC,EAAM,WAGrB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAExBC,gBAAAA,EAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACAJ;AAAA,IAAA;AAAA,IAEF,KAAAE;AAAA,IACC,GAAGD;AAAA,EAAA;AAAA,CAGT;AACDH,EAAS,cAAc;"}
|
package/dist/index.es59.js
CHANGED
|
@@ -1,23 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { j as i } from "./index.es62.js";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import * as e from "@radix-ui/react-toggle";
|
|
4
|
+
import { cva as m } from "class-variance-authority";
|
|
5
|
+
import { cn as d } from "./index.es63.js";
|
|
6
|
+
const g = m(
|
|
7
|
+
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
6
8
|
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "bg-transparent",
|
|
12
|
+
outline: "border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
default: "h-9 px-2 min-w-9",
|
|
16
|
+
sm: "h-8 px-1.5 min-w-8",
|
|
17
|
+
lg: "h-10 px-2.5 min-w-10"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
variant: "default",
|
|
22
|
+
size: "default"
|
|
23
|
+
}
|
|
14
24
|
}
|
|
15
|
-
))
|
|
16
|
-
|
|
25
|
+
), l = s.forwardRef(({ className: t, variant: o, size: n, ...r }, a) => /* @__PURE__ */ i.jsx(
|
|
26
|
+
e.Root,
|
|
27
|
+
{
|
|
28
|
+
ref: a,
|
|
29
|
+
className: d(g({ variant: o, size: n, className: t })),
|
|
30
|
+
...r
|
|
31
|
+
}
|
|
32
|
+
));
|
|
33
|
+
l.displayName = e.Root.displayName;
|
|
17
34
|
export {
|
|
18
|
-
l as
|
|
19
|
-
|
|
20
|
-
s as TooltipProvider,
|
|
21
|
-
p as TooltipTrigger
|
|
35
|
+
l as Toggle,
|
|
36
|
+
g as toggleVariants
|
|
22
37
|
};
|
|
23
38
|
//# sourceMappingURL=index.es59.js.map
|