ml-uikit 1.1.5 → 1.1.7
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/date-range-picker.d.ts +22 -0
- package/dist/components/ui/date-range-picker.d.ts.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +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.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.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.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 +2 -0
- package/dist/index.cjs62.js.map +1 -0
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +208 -206
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +1 -1
- package/dist/index.es11.js +1 -1
- package/dist/index.es12.js +2 -2
- package/dist/index.es13.js +1 -1
- package/dist/index.es14.js +1 -1
- package/dist/index.es15.js +1 -1
- package/dist/index.es16.js +1 -1
- package/dist/index.es17.js +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es21.js +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es23.js +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es25.js +3 -3
- package/dist/index.es26.js +2 -2
- package/dist/index.es27.js +1 -1
- package/dist/index.es28.js +1 -1
- package/dist/index.es29.js +334 -138
- package/dist/index.es29.js.map +1 -1
- package/dist/index.es3.js +1 -1
- package/dist/index.es30.js +145 -37
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es31.js +40 -174
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es32.js +177 -253
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es33.js +253 -185
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es34.js +174 -18
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js +29 -16
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +15 -92
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +91 -189
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +165 -71
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +85 -84
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es4.js +1 -1
- package/dist/index.es40.js +92 -17
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +19 -21
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +19 -26
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +22 -25
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +23 -172
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +180 -19
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +19 -97
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +76 -533
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +552 -11
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +13 -45
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.es50.js +44 -19
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +19 -12
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +13 -25
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +22 -213
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +203 -34
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +43 -12
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es56.js +12 -28
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es57.js +30 -34
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es58.js +37 -19
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es59.js +20 -6
- package/dist/index.es59.js.map +1 -1
- package/dist/index.es60.js +6 -267
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es61.js +267 -6268
- package/dist/index.es61.js.map +1 -1
- package/dist/index.es62.js +6271 -0
- package/dist/index.es62.js.map +1 -0
- package/dist/index.es7.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/index.es9.js +1 -1
- package/dist/style.css +216 -0
- package/package.json +1 -1
package/dist/index.es49.js
CHANGED
|
@@ -1,50 +1,18 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { cn as m } from "./index.es60.js";
|
|
3
|
+
function n({
|
|
4
|
+
className: e,
|
|
5
|
+
...r
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ t.createElement(
|
|
8
|
+
"div",
|
|
8
9
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
className: s(
|
|
13
|
-
"group/slider relative flex w-full touch-none select-none items-center",
|
|
14
|
-
a
|
|
15
|
-
),
|
|
16
|
-
value: o,
|
|
17
|
-
defaultValue: l,
|
|
18
|
-
...n
|
|
19
|
-
},
|
|
20
|
-
/* @__PURE__ */ e.createElement(
|
|
21
|
-
r.Track,
|
|
22
|
-
{
|
|
23
|
-
className: s(
|
|
24
|
-
"relative h-2 w-full grow overflow-hidden rounded-full bg-[#e6e6e6] group-data-[disabled=true]/slider:bg-[#f2f2f2]"
|
|
25
|
-
)
|
|
26
|
-
},
|
|
27
|
-
/* @__PURE__ */ e.createElement(
|
|
28
|
-
r.Range,
|
|
29
|
-
{
|
|
30
|
-
className: s(
|
|
31
|
-
"absolute z-0 h-full bg-[#26453f]",
|
|
32
|
-
c ? "rounded-full" : "rounded-l-full"
|
|
33
|
-
)
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
),
|
|
37
|
-
t.map((u, f) => /* @__PURE__ */ e.createElement(
|
|
38
|
-
r.Thumb,
|
|
39
|
-
{
|
|
40
|
-
key: `thumb-${f}`,
|
|
41
|
-
className: "block h-4 w-4 rounded-full border border-[#26453f] bg-white shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
|
|
42
|
-
}
|
|
43
|
-
))
|
|
10
|
+
className: m("animate-pulse rounded-md bg-primary/10", e),
|
|
11
|
+
...r
|
|
12
|
+
}
|
|
44
13
|
);
|
|
45
|
-
}
|
|
46
|
-
m.displayName = r.Root.displayName;
|
|
14
|
+
}
|
|
47
15
|
export {
|
|
48
|
-
|
|
16
|
+
n as Skeleton
|
|
49
17
|
};
|
|
50
18
|
//# sourceMappingURL=index.es49.js.map
|
package/dist/index.es49.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es49.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es49.js","sources":["../src/components/ui/skeleton.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nfunction Skeleton({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return (\n <div\n className={cn(\"animate-pulse rounded-md bg-primary/10\", className)}\n {...props}\n />\n )\n}\n\nexport { Skeleton }\n"],"names":["Skeleton","className","props","React","cn"],"mappings":";;AAGA,SAASA,EAAS;AAAA,EAChB,WAAAC;AAAA,EACA,GAAGC;AACL,GAAyC;AACvC,SACE,gBAAAC,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAG,0CAA0CH,CAAS;AAAA,MAChE,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
package/dist/index.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import * as l from "@radix-ui/react-alert-dialog";
|
|
3
|
-
import { cn as s } from "./index.
|
|
3
|
+
import { cn as s } from "./index.es60.js";
|
|
4
4
|
import { buttonVariants as r } from "./index.es10.js";
|
|
5
5
|
const A = l.Root, D = l.Trigger, n = l.Portal, i = e.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ e.createElement(
|
|
6
6
|
l.Overlay,
|
package/dist/index.es50.js
CHANGED
|
@@ -1,25 +1,50 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import * as r from "@radix-ui/react-slider";
|
|
3
|
+
import { cn as s } from "./index.es60.js";
|
|
4
|
+
const m = e.forwardRef(({ className: a, disabled: i, value: o, defaultValue: l, ...n }, d) => {
|
|
5
|
+
const t = Array.isArray(o) ? o : Array.isArray(l) ? l : [0], c = t.length > 1;
|
|
6
|
+
return /* @__PURE__ */ e.createElement(
|
|
7
|
+
r.Root,
|
|
7
8
|
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
ref: d,
|
|
10
|
+
"data-disabled": i ? "true" : void 0,
|
|
11
|
+
disabled: i,
|
|
12
|
+
className: s(
|
|
13
|
+
"group/slider relative flex w-full touch-none select-none items-center",
|
|
14
|
+
a
|
|
15
|
+
),
|
|
16
|
+
value: o,
|
|
17
|
+
defaultValue: l,
|
|
18
|
+
...n
|
|
19
|
+
},
|
|
20
|
+
/* @__PURE__ */ e.createElement(
|
|
21
|
+
r.Track,
|
|
22
|
+
{
|
|
23
|
+
className: s(
|
|
24
|
+
"relative h-2 w-full grow overflow-hidden rounded-full bg-[#e6e6e6] group-data-[disabled=true]/slider:bg-[#f2f2f2]"
|
|
25
|
+
)
|
|
17
26
|
},
|
|
18
|
-
|
|
19
|
-
|
|
27
|
+
/* @__PURE__ */ e.createElement(
|
|
28
|
+
r.Range,
|
|
29
|
+
{
|
|
30
|
+
className: s(
|
|
31
|
+
"absolute z-0 h-full bg-[#26453f]",
|
|
32
|
+
c ? "rounded-full" : "rounded-l-full"
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
),
|
|
37
|
+
t.map((u, f) => /* @__PURE__ */ e.createElement(
|
|
38
|
+
r.Thumb,
|
|
39
|
+
{
|
|
40
|
+
key: `thumb-${f}`,
|
|
41
|
+
className: "block h-4 w-4 rounded-full border border-[#26453f] bg-white shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
|
|
42
|
+
}
|
|
43
|
+
))
|
|
20
44
|
);
|
|
21
|
-
};
|
|
45
|
+
});
|
|
46
|
+
m.displayName = r.Root.displayName;
|
|
22
47
|
export {
|
|
23
|
-
|
|
48
|
+
m as Slider
|
|
24
49
|
};
|
|
25
50
|
//# sourceMappingURL=index.es50.js.map
|
package/dist/index.es50.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es50.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es50.js","sources":["../src/components/ui/slider.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as SliderPrimitive from \"@radix-ui/react-slider\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Slider = React.forwardRef<\n React.ElementRef<typeof SliderPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>\n>(({ className, disabled, value, defaultValue, ...props }, ref) => {\n const thumbValues = Array.isArray(value)\n ? value\n : Array.isArray(defaultValue)\n ? defaultValue\n : [0]\n const isRange = thumbValues.length > 1\n\n return (\n <SliderPrimitive.Root\n ref={ref}\n data-disabled={disabled ? \"true\" : undefined}\n disabled={disabled}\n className={cn(\n \"group/slider relative flex w-full touch-none select-none items-center\",\n className\n )}\n value={value}\n defaultValue={defaultValue}\n {...props}\n >\n <SliderPrimitive.Track\n className={cn(\n \"relative h-2 w-full grow overflow-hidden rounded-full bg-[#e6e6e6] group-data-[disabled=true]/slider:bg-[#f2f2f2]\"\n )}\n >\n <SliderPrimitive.Range\n className={cn(\n \"absolute z-0 h-full bg-[#26453f]\",\n isRange ? \"rounded-full\" : \"rounded-l-full\"\n )}\n />\n </SliderPrimitive.Track>\n {thumbValues.map((_, index) => (\n <SliderPrimitive.Thumb\n key={`thumb-${index}`}\n className=\"block h-4 w-4 rounded-full border border-[#26453f] bg-white shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\"\n />\n ))}\n </SliderPrimitive.Root>\n )\n})\nSlider.displayName = SliderPrimitive.Root.displayName\n\nexport { Slider }\n"],"names":["Slider","React","className","disabled","value","defaultValue","props","ref","thumbValues","isRange","SliderPrimitive","cn","_","index"],"mappings":";;;AAKA,MAAMA,IAASC,EAAM,WAGnB,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,OAAAC,GAAO,cAAAC,GAAc,GAAGC,EAAA,GAASC,MAAQ;AACjE,QAAMC,IAAc,MAAM,QAAQJ,CAAK,IACnCA,IACA,MAAM,QAAQC,CAAY,IAC1BA,IACA,CAAC,CAAC,GACAI,IAAUD,EAAY,SAAS;AAErC,SACE,gBAAAP,EAAA;AAAA,IAACS,EAAgB;AAAA,IAAhB;AAAA,MACC,KAAAH;AAAA,MACA,iBAAeJ,IAAW,SAAS;AAAA,MACnC,UAAAA;AAAA,MACA,WAAWQ;AAAA,QACT;AAAA,QACAT;AAAA,MAAA;AAAA,MAEF,OAAAE;AAAA,MACA,cAAAC;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,IAEJ,gBAAAL,EAAA;AAAA,MAACS,EAAgB;AAAA,MAAhB;AAAA,QACC,WAAWC;AAAA,UACT;AAAA,QAAA;AAAA,MACF;AAAA,MAEA,gBAAAV,EAAA;AAAA,QAACS,EAAgB;AAAA,QAAhB;AAAA,UACC,WAAWC;AAAA,YACT;AAAA,YACAF,IAAU,iBAAiB;AAAA,UAAA;AAAA,QAC7B;AAAA,MAAA;AAAA,IACF;AAAA,IAEDD,EAAY,IAAI,CAACI,GAAGC,MACnB,gBAAAZ,EAAA;AAAA,MAACS,EAAgB;AAAA,MAAhB;AAAA,QACC,KAAK,SAASG,CAAK;AAAA,QACnB,WAAU;AAAA,MAAA;AAAA,IAAA,CAEb;AAAA,EAAA;AAGP,CAAC;AACDb,EAAO,cAAcU,EAAgB,KAAK;"}
|
package/dist/index.es51.js
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return /* @__PURE__ */
|
|
6
|
-
|
|
1
|
+
import { useTheme as r } from "next-themes";
|
|
2
|
+
import { Toaster as e } from "sonner";
|
|
3
|
+
const u = ({ ...t }) => {
|
|
4
|
+
const { theme: o = "system" } = r();
|
|
5
|
+
return /* @__PURE__ */ React.createElement(
|
|
6
|
+
e,
|
|
7
7
|
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
theme: o,
|
|
9
|
+
className: "toaster group",
|
|
10
|
+
toastOptions: {
|
|
11
|
+
classNames: {
|
|
12
|
+
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
13
|
+
description: "group-[.toast]:text-muted-foreground",
|
|
14
|
+
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
15
|
+
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
...t
|
|
12
19
|
}
|
|
13
20
|
);
|
|
14
|
-
}
|
|
21
|
+
};
|
|
15
22
|
export {
|
|
16
|
-
|
|
23
|
+
u as Toaster
|
|
17
24
|
};
|
|
18
25
|
//# sourceMappingURL=index.es51.js.map
|
package/dist/index.es51.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es51.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es51.js","sources":["../src/components/ui/sonner.tsx"],"sourcesContent":["\"use client\"\n\nimport { useTheme } from \"next-themes\"\nimport { Toaster as Sonner } from \"sonner\"\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>\n\nconst Toaster = ({ ...props }: ToasterProps) => {\n const { theme = \"system\" } = useTheme()\n\n return (\n <Sonner\n theme={theme as ToasterProps[\"theme\"]}\n className=\"toaster group\"\n toastOptions={{\n classNames: {\n toast:\n \"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg\",\n description: \"group-[.toast]:text-muted-foreground\",\n actionButton:\n \"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground\",\n cancelButton:\n \"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground\",\n },\n }}\n {...props}\n />\n )\n}\n\nexport { Toaster }\n"],"names":["Toaster","props","theme","useTheme","Sonner"],"mappings":";;AAOA,MAAMA,IAAU,CAAC,EAAE,GAAGC,QAA0B;AAC9C,QAAM,EAAE,OAAAC,IAAQ,SAAA,IAAaC,EAAA;AAE7B,SACE,sBAAA;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,OAAAF;AAAA,MACA,WAAU;AAAA,MACV,cAAc;AAAA,QACZ,YAAY;AAAA,UACV,OACE;AAAA,UACF,aAAa;AAAA,UACb,cACE;AAAA,UACF,cACE;AAAA,QAAA;AAAA,MACJ;AAAA,MAED,GAAGD;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
package/dist/index.es52.js
CHANGED
|
@@ -1,30 +1,18 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
className: s(
|
|
8
|
-
"peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-[#e6e6e6] transition-colors",
|
|
9
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2 focus-visible:ring-offset-white",
|
|
10
|
-
"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:opacity-100",
|
|
11
|
-
"data-[state=checked]:bg-[#26453f] data-[state=unchecked]:bg-[#e6e6e6]",
|
|
12
|
-
i
|
|
13
|
-
),
|
|
14
|
-
...a,
|
|
15
|
-
ref: o
|
|
16
|
-
},
|
|
17
|
-
/* @__PURE__ */ e.createElement(
|
|
18
|
-
t.Thumb,
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { Loader2Icon as o } from "lucide-react";
|
|
3
|
+
import { cn as t } from "./index.es60.js";
|
|
4
|
+
function m({ className: e, ...r }) {
|
|
5
|
+
return /* @__PURE__ */ a.createElement(
|
|
6
|
+
o,
|
|
19
7
|
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
)
|
|
8
|
+
role: "status",
|
|
9
|
+
"aria-label": "Loading",
|
|
10
|
+
className: t("size-4 animate-spin", e),
|
|
11
|
+
...r
|
|
23
12
|
}
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
r.displayName = t.Root.displayName;
|
|
13
|
+
);
|
|
14
|
+
}
|
|
27
15
|
export {
|
|
28
|
-
|
|
16
|
+
m as Spinner
|
|
29
17
|
};
|
|
30
18
|
//# sourceMappingURL=index.es52.js.map
|
package/dist/index.es52.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es52.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es52.js","sources":["../src/components/ui/spinner.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { Loader2Icon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Spinner({ className, ...props }: React.ComponentProps<\"svg\">) {\n return (\n <Loader2Icon\n role=\"status\"\n aria-label=\"Loading\"\n className={cn(\"size-4 animate-spin\", className)}\n {...props}\n />\n );\n}\n\nexport { Spinner };\n"],"names":["Spinner","className","props","React","Loader2Icon","cn"],"mappings":";;;AAMA,SAASA,EAAQ,EAAE,WAAAC,GAAW,GAAGC,KAAsC;AACrE,SACE,gBAAAC,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,cAAW;AAAA,MACX,WAAWC,EAAG,uBAAuBJ,CAAS;AAAA,MAC7C,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
package/dist/index.es53.js
CHANGED
|
@@ -1,221 +1,30 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
{
|
|
14
|
-
ref: d,
|
|
15
|
-
className: o(
|
|
16
|
-
"w-full caption-bottom text-[14px] leading-[20px]",
|
|
17
|
-
n ? "[&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10 [&_thead]:bg-[#fafafa]" : void 0,
|
|
18
|
-
r
|
|
19
|
-
),
|
|
20
|
-
...s
|
|
21
|
-
}
|
|
22
|
-
)
|
|
23
|
-
), a ? /* @__PURE__ */ e.createElement("div", { className: "w-full" }, a) : null)
|
|
24
|
-
);
|
|
25
|
-
f.displayName = "Table";
|
|
26
|
-
const b = e.forwardRef(({ className: r, ...a }, t) => /* @__PURE__ */ e.createElement(
|
|
27
|
-
"thead",
|
|
28
|
-
{
|
|
29
|
-
ref: t,
|
|
30
|
-
className: o("bg-[#fafafa] [&_tr]:border-b [&_tr]:border-[#e6e6e6]", r),
|
|
31
|
-
...a
|
|
32
|
-
}
|
|
33
|
-
));
|
|
34
|
-
b.displayName = "TableHeader";
|
|
35
|
-
const p = e.forwardRef(({ className: r, ...a }, t) => /* @__PURE__ */ e.createElement(
|
|
36
|
-
"tbody",
|
|
37
|
-
{
|
|
38
|
-
ref: t,
|
|
39
|
-
className: o("[&_tr:last-child]:border-0", r),
|
|
40
|
-
...a
|
|
41
|
-
}
|
|
42
|
-
));
|
|
43
|
-
p.displayName = "TableBody";
|
|
44
|
-
const x = e.forwardRef(({ className: r, ...a }, t) => /* @__PURE__ */ e.createElement(
|
|
45
|
-
"tfoot",
|
|
46
|
-
{
|
|
47
|
-
ref: t,
|
|
48
|
-
className: o(
|
|
49
|
-
"border-t border-[#e6e6e6] bg-[#fafafa] font-medium [&>tr]:last:border-b-0",
|
|
50
|
-
r
|
|
51
|
-
),
|
|
52
|
-
...a
|
|
53
|
-
}
|
|
54
|
-
));
|
|
55
|
-
x.displayName = "TableFooter";
|
|
56
|
-
const g = e.forwardRef(({ className: r, ...a }, t) => /* @__PURE__ */ e.createElement(
|
|
57
|
-
"tr",
|
|
58
|
-
{
|
|
59
|
-
ref: t,
|
|
60
|
-
className: o(
|
|
61
|
-
"border-b border-[#e6e6e6]",
|
|
62
|
-
r
|
|
63
|
-
),
|
|
64
|
-
...a
|
|
65
|
-
}
|
|
66
|
-
));
|
|
67
|
-
g.displayName = "TableRow";
|
|
68
|
-
const u = e.forwardRef(({ className: r, ...a }, t) => /* @__PURE__ */ e.createElement(
|
|
69
|
-
"th",
|
|
70
|
-
{
|
|
71
|
-
ref: t,
|
|
72
|
-
className: o(
|
|
73
|
-
"h-12 px-3 py-2 text-left align-middle text-[14px] font-medium leading-[20px] text-foreground",
|
|
74
|
-
r
|
|
75
|
-
),
|
|
76
|
-
...a
|
|
77
|
-
}
|
|
78
|
-
));
|
|
79
|
-
u.displayName = "TableHead";
|
|
80
|
-
const N = e.forwardRef(({ className: r, ...a }, t) => /* @__PURE__ */ e.createElement(
|
|
81
|
-
"td",
|
|
82
|
-
{
|
|
83
|
-
ref: t,
|
|
84
|
-
className: o(
|
|
85
|
-
"h-12 px-3 py-2 align-middle text-[14px] font-normal leading-[20px] text-foreground",
|
|
86
|
-
r
|
|
87
|
-
),
|
|
88
|
-
...a
|
|
89
|
-
}
|
|
90
|
-
));
|
|
91
|
-
N.displayName = "TableCell";
|
|
92
|
-
const w = e.forwardRef(({ className: r, ...a }, t) => /* @__PURE__ */ e.createElement(
|
|
93
|
-
"caption",
|
|
94
|
-
{
|
|
95
|
-
ref: t,
|
|
96
|
-
className: o("mt-4 text-sm text-muted-foreground", r),
|
|
97
|
-
...a
|
|
98
|
-
}
|
|
99
|
-
));
|
|
100
|
-
w.displayName = "TableCaption";
|
|
101
|
-
const T = e.forwardRef(({ className: r, ...a }, t) => /* @__PURE__ */ e.createElement(
|
|
102
|
-
"div",
|
|
103
|
-
{
|
|
104
|
-
ref: t,
|
|
105
|
-
className: o(
|
|
106
|
-
"grid w-full grid-cols-[auto_1fr_auto] items-center border-t border-[#e6e6e6] bg-white p-4",
|
|
107
|
-
r
|
|
2
|
+
import * as t from "@radix-ui/react-switch";
|
|
3
|
+
import { cn as s } from "./index.es60.js";
|
|
4
|
+
const r = e.forwardRef(({ className: i, ...a }, o) => /* @__PURE__ */ e.createElement(
|
|
5
|
+
t.Root,
|
|
6
|
+
{
|
|
7
|
+
className: s(
|
|
8
|
+
"peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-[#e6e6e6] transition-colors",
|
|
9
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2 focus-visible:ring-offset-white",
|
|
10
|
+
"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:opacity-100",
|
|
11
|
+
"data-[state=checked]:bg-[#26453f] data-[state=unchecked]:bg-[#e6e6e6]",
|
|
12
|
+
i
|
|
108
13
|
),
|
|
109
|
-
...a
|
|
110
|
-
|
|
111
|
-
));
|
|
112
|
-
T.displayName = "TablePagination";
|
|
113
|
-
const y = e.forwardRef(({ className: r, label: a = "Total entries:", count: t = "-", ...l }, n) => /* @__PURE__ */ e.createElement(
|
|
114
|
-
"div",
|
|
115
|
-
{
|
|
116
|
-
ref: n,
|
|
117
|
-
className: o("col-start-1 flex items-center gap-1 justify-self-start", r),
|
|
118
|
-
...l
|
|
14
|
+
...a,
|
|
15
|
+
ref: o
|
|
119
16
|
},
|
|
120
|
-
/* @__PURE__ */ e.createElement(
|
|
121
|
-
|
|
122
|
-
));
|
|
123
|
-
y.displayName = "TablePaginationEntries";
|
|
124
|
-
const E = e.forwardRef(({ className: r, ...a }, t) => /* @__PURE__ */ e.createElement(
|
|
125
|
-
"div",
|
|
126
|
-
{
|
|
127
|
-
ref: t,
|
|
128
|
-
className: o("col-start-2 flex items-center gap-3 justify-self-center", r),
|
|
129
|
-
...a
|
|
130
|
-
}
|
|
131
|
-
));
|
|
132
|
-
E.displayName = "TablePaginationContent";
|
|
133
|
-
const h = e.forwardRef(({ className: r, ...a }, t) => /* @__PURE__ */ e.createElement(
|
|
134
|
-
"div",
|
|
135
|
-
{
|
|
136
|
-
ref: t,
|
|
137
|
-
className: o("flex items-center gap-2", r),
|
|
138
|
-
...a
|
|
139
|
-
}
|
|
140
|
-
));
|
|
141
|
-
h.displayName = "TablePaginationPages";
|
|
142
|
-
const P = e.forwardRef(({ className: r, ...a }, t) => /* @__PURE__ */ e.createElement(
|
|
143
|
-
"button",
|
|
144
|
-
{
|
|
145
|
-
ref: t,
|
|
146
|
-
type: "button",
|
|
147
|
-
className: o(
|
|
148
|
-
"flex h-7 w-7 items-center justify-center rounded-[8px] text-[#7f7d83] hover:text-foreground",
|
|
149
|
-
r
|
|
150
|
-
),
|
|
151
|
-
...a
|
|
152
|
-
}
|
|
153
|
-
));
|
|
154
|
-
P.displayName = "TablePaginationButton";
|
|
155
|
-
const R = e.forwardRef(({ className: r, isActive: a, ...t }, l) => /* @__PURE__ */ e.createElement(
|
|
156
|
-
"button",
|
|
157
|
-
{
|
|
158
|
-
ref: l,
|
|
159
|
-
type: "button",
|
|
160
|
-
"aria-current": a ? "page" : void 0,
|
|
161
|
-
className: o(
|
|
162
|
-
"flex h-8 w-8 items-center justify-center rounded-[8px] text-[12px] leading-[16px]",
|
|
163
|
-
a ? "border border-[#e6e6e6] bg-white text-foreground" : "text-[#7f7d83]",
|
|
164
|
-
r
|
|
165
|
-
),
|
|
166
|
-
...t
|
|
167
|
-
}
|
|
168
|
-
));
|
|
169
|
-
R.displayName = "TablePaginationPage";
|
|
170
|
-
const v = e.forwardRef(
|
|
171
|
-
({
|
|
172
|
-
className: r,
|
|
173
|
-
label: a = "Go to page:",
|
|
174
|
-
pageLabel: t = "-",
|
|
175
|
-
placeholder: l = "-",
|
|
176
|
-
icon: n,
|
|
177
|
-
...s
|
|
178
|
-
}, d) => /* @__PURE__ */ e.createElement(
|
|
179
|
-
"div",
|
|
17
|
+
/* @__PURE__ */ e.createElement(
|
|
18
|
+
t.Thumb,
|
|
180
19
|
{
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
/* @__PURE__ */ e.createElement("span", { className: "text-[14px] font-normal leading-[20px] text-foreground" }, a),
|
|
186
|
-
/* @__PURE__ */ e.createElement(
|
|
187
|
-
"button",
|
|
188
|
-
{
|
|
189
|
-
type: "button",
|
|
190
|
-
"aria-haspopup": "listbox",
|
|
191
|
-
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"
|
|
192
|
-
},
|
|
193
|
-
/* @__PURE__ */ e.createElement("span", { className: t === l ? "text-[#7f7d83]" : void 0 }, t === l ? l : t),
|
|
194
|
-
n || /* @__PURE__ */ e.createElement(i, { className: "h-4 w-4 text-[#7f7d83]" })
|
|
195
|
-
)
|
|
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
|
+
}
|
|
196
24
|
)
|
|
197
|
-
);
|
|
198
|
-
|
|
199
|
-
const j = ({
|
|
200
|
-
className: r,
|
|
201
|
-
direction: a
|
|
202
|
-
}) => a === "left" ? /* @__PURE__ */ e.createElement(m, { className: o("h-4 w-4", r) }) : /* @__PURE__ */ e.createElement(c, { className: o("h-4 w-4", r) });
|
|
25
|
+
));
|
|
26
|
+
r.displayName = t.Root.displayName;
|
|
203
27
|
export {
|
|
204
|
-
|
|
205
|
-
p as TableBody,
|
|
206
|
-
w as TableCaption,
|
|
207
|
-
N as TableCell,
|
|
208
|
-
x as TableFooter,
|
|
209
|
-
u as TableHead,
|
|
210
|
-
b as TableHeader,
|
|
211
|
-
T as TablePagination,
|
|
212
|
-
P as TablePaginationButton,
|
|
213
|
-
E as TablePaginationContent,
|
|
214
|
-
y as TablePaginationEntries,
|
|
215
|
-
v as TablePaginationGoTo,
|
|
216
|
-
j as TablePaginationIcon,
|
|
217
|
-
R as TablePaginationPage,
|
|
218
|
-
h as TablePaginationPages,
|
|
219
|
-
g as TableRow
|
|
28
|
+
r as Switch
|
|
220
29
|
};
|
|
221
30
|
//# sourceMappingURL=index.es53.js.map
|
package/dist/index.es53.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es53.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\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 TablePaginationGoTo,\n TablePaginationIcon,\n}\n"],"names":["Table","React","className","pagination","maxHeight","scrollContainerClassName","stickyHeader","props","ref","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption","TablePagination","TablePaginationEntries","label","count","TablePaginationContent","TablePaginationPages","TablePaginationButton","TablePaginationPage","isActive","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,MAEA,gBAAAP,EAAA,cAAC,OAAA,EAAI,WAAU,iFAAA,GACb,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWQ,EAAG,wCAAwCJ,CAAwB;AAAA,MAC9E,OACED,IACI,EAAE,WAAW,OAAOA,KAAc,WAAW,GAAGA,CAAS,OAAOA,EAAA,IAChE;AAAA,IAAA;AAAA,IAGN,gBAAAH,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAAO;AAAA,QACA,WAAWC;AAAA,UACT;AAAA,UACAH,IACI,2EACA;AAAA,UACJJ;AAAA,QAAA;AAAA,QAED,GAAGK;AAAA,MAAA;AAAA,IAAA;AAAA,EACN,GAEDJ,IAAa,gBAAAF,EAAA,cAAC,OAAA,EAAI,WAAU,SAAA,GAAUE,CAAW,IAAS,IAC7D;AAEJ;AACAH,EAAM,cAAc;AAEpB,MAAMU,IAAcT,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGK,EAAA,GAASC,MAC1B,gBAAAP,EAAA;A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;AAAA,MACA,WAAWC,EAAG,6DAA6DP,CAAS;AAAA,MACnF,GAAGK;AAAA,IAAA;AAAA,IAEJ,gBAAAN,EAAA,cAAC,QAAA,EAAK,WAAU,yDAAA,GACbkB,CACH;AAAA,IACA,gBAAAlB,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,iBAAc;AAAA,QACd,WAAU;AAAA,MAAA;AAAA,MAEV,gBAAAA,EAAA,cAAC,QAAA,EAAK,WAAW0B,MAAcC,IAAc,mBAAmB,OAAA,GAC7DD,MAAcC,IAAcA,IAAcD,CAC7C;AAAA,MACCE,KAAQ,gBAAA5B,EAAA,cAAC6B,GAAA,EAAY,WAAU,yBAAA,CAAyB;AAAA,IAAA;AAAA,EAC3D;AAGJ;AACAJ,EAAoB,cAAc;AAElC,MAAMK,IAAsB,CAAC;AAAA,EAC3B,WAAA7B;AAAA,EACA,WAAA8B;AACF,MAIEA,MAAc,SACZ,gBAAA/B,EAAA,cAACgC,GAAA,EAAY,WAAWxB,EAAG,WAAWP,CAAS,EAAA,CAAG,oCAEjDgC,GAAA,EAAa,WAAWzB,EAAG,WAAWP,CAAS,EAAA,CAAG;"}
|
|
1
|
+
{"version":3,"file":"index.es53.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","SwitchPrimitives","cn"],"mappings":";;;AAKA,MAAMA,IAASC,EAAM,WAGnB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAH,EAAA;AAAA,EAACI,EAAiB;AAAA,EAAjB;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACAJ;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,IACJ,KAAAC;AAAA,EAAA;AAAA,EAEA,gBAAAH,EAAA;AAAA,IAACI,EAAiB;AAAA,IAAjB;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAEJ,CACD;AACDN,EAAO,cAAcK,EAAiB,KAAK;"}
|