@raystack/apsara 0.10.7 → 0.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avatar/avatar.d.ts +3 -5
- package/dist/avatar/avatar.d.ts.map +1 -1
- package/dist/dialog/dialog.d.ts.map +1 -1
- package/dist/errorstate/errorstate.d.ts +11 -0
- package/dist/errorstate/errorstate.d.ts.map +1 -0
- package/dist/errorstate/index.d.ts +2 -0
- package/dist/errorstate/index.d.ts.map +1 -0
- package/dist/flex/flex.d.ts +1 -1
- package/dist/grid/grid.d.ts +3 -3
- package/dist/index.cjs +290 -180
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +55 -68
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +290 -181
- package/dist/index.js.map +1 -1
- package/dist/sidebar/sidebar.d.ts +22 -4
- package/dist/sidebar/sidebar.d.ts.map +1 -1
- package/dist/table/DataTableGloabalSearch.d.ts.map +1 -1
- package/dist/table/datatable.d.ts.map +1 -1
- package/dist/textfield/textfield.d.ts +5 -2
- package/dist/textfield/textfield.d.ts.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1810,64 +1810,45 @@ const cva = (base, config)=>{
|
|
|
1810
1810
|
};
|
|
1811
1811
|
};
|
|
1812
1812
|
|
|
1813
|
-
var styles$
|
|
1813
|
+
var styles$w = {"box":"box-module_box__ETj3v"};
|
|
1814
1814
|
|
|
1815
|
-
const box = cva(styles$
|
|
1815
|
+
const box = cva(styles$w.box);
|
|
1816
1816
|
function Box({ children, className, ...props }) {
|
|
1817
1817
|
return (jsxRuntimeExports.jsx("div", { className: box({ className }), ...props, children: children }));
|
|
1818
1818
|
}
|
|
1819
1819
|
|
|
1820
|
-
var styles$
|
|
1820
|
+
var styles$v = {"avatar":"avatar-module_avatar__jlJnk","avatar-square":"avatar-module_avatar-square__vypF7","avatar-circle":"avatar-module_avatar-circle__XP6E3","avatar-disabled":"avatar-module_avatar-disabled__rsBE6","imageWrapper":"avatar-module_imageWrapper__dhsku","image":"avatar-module_image__P6Pav","fallback":"avatar-module_fallback__NzNwU"};
|
|
1821
1821
|
|
|
1822
|
-
const avatar = cva(styles$
|
|
1822
|
+
const avatar = cva(styles$v.avatar, {
|
|
1823
1823
|
variants: {
|
|
1824
|
-
size: {
|
|
1825
|
-
small: styles$u["avatar-sm"],
|
|
1826
|
-
medium: styles$u["avatar-md"],
|
|
1827
|
-
large: styles$u["avatar-lg"],
|
|
1828
|
-
"extra-large": styles$u["avatar-xl"],
|
|
1829
|
-
},
|
|
1830
1824
|
shape: {
|
|
1831
|
-
square: styles$
|
|
1832
|
-
circle: styles$
|
|
1825
|
+
square: styles$v["avatar-square"],
|
|
1826
|
+
circle: styles$v["avatar-circle"],
|
|
1833
1827
|
},
|
|
1834
1828
|
disabled: {
|
|
1835
|
-
true: styles$
|
|
1829
|
+
true: styles$v["avatar-disabled"],
|
|
1836
1830
|
},
|
|
1837
1831
|
},
|
|
1838
1832
|
defaultVariants: {
|
|
1839
|
-
size: "medium",
|
|
1840
1833
|
shape: "circle",
|
|
1841
1834
|
},
|
|
1842
1835
|
});
|
|
1843
|
-
const image$1 = cva(styles$
|
|
1844
|
-
const AvatarRoot = forwardRef(({ className, alt, src, fallback,
|
|
1836
|
+
const image$1 = cva(styles$v.image);
|
|
1837
|
+
const AvatarRoot = forwardRef(({ className, alt, src, fallback, shape, style, imageProps, ...props }, ref) => (jsxRuntimeExports.jsx(Box, { className: styles$v.imageWrapper, style: style, children: jsxRuntimeExports.jsxs($cddcb0b647441e34$export$be92b6f5f03c0fe9, { ref: ref, className: avatar({ shape, className }), style: imageProps, ...props, children: [jsxRuntimeExports.jsx(AvatarImage, { alt: alt, src: src }), jsxRuntimeExports.jsx(AvatarFallback, { children: fallback })] }) })));
|
|
1845
1838
|
AvatarRoot.displayName = $cddcb0b647441e34$export$be92b6f5f03c0fe9.displayName;
|
|
1846
1839
|
const AvatarImage = forwardRef(({ className, sizes, ...props }, ref) => (jsxRuntimeExports.jsx($cddcb0b647441e34$export$3e431a229df88919, { ref: ref, className: image$1({ className }), ...props })));
|
|
1847
1840
|
AvatarImage.displayName = $cddcb0b647441e34$export$3e431a229df88919.displayName;
|
|
1848
|
-
const fallback = cva(styles$
|
|
1849
|
-
|
|
1850
|
-
size: {
|
|
1851
|
-
small: styles$u["fallback-sm"],
|
|
1852
|
-
medium: styles$u["fallback-md"],
|
|
1853
|
-
large: styles$u["fallback-lg"],
|
|
1854
|
-
"extra-large": styles$u["fallback-xl"],
|
|
1855
|
-
},
|
|
1856
|
-
},
|
|
1857
|
-
defaultVariants: {
|
|
1858
|
-
size: "small",
|
|
1859
|
-
},
|
|
1860
|
-
});
|
|
1861
|
-
const AvatarFallback = forwardRef(({ className, size, ...props }, ref) => (jsxRuntimeExports.jsx($cddcb0b647441e34$export$fb8d7f40caaeea67, { ref: ref, className: fallback({ size, className }), ...props })));
|
|
1841
|
+
const fallback = cva(styles$v.fallback);
|
|
1842
|
+
const AvatarFallback = forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($cddcb0b647441e34$export$fb8d7f40caaeea67, { ref: ref, className: fallback({ className }), ...props })));
|
|
1862
1843
|
AvatarFallback.displayName = $cddcb0b647441e34$export$fb8d7f40caaeea67.displayName;
|
|
1863
1844
|
const Avatar = Object.assign(AvatarRoot, {
|
|
1864
1845
|
Image: AvatarImage,
|
|
1865
1846
|
Fallback: AvatarFallback,
|
|
1866
1847
|
});
|
|
1867
1848
|
|
|
1868
|
-
var styles$
|
|
1849
|
+
var styles$u = {"badge":"badge-module_badge__NAloH"};
|
|
1869
1850
|
|
|
1870
|
-
const badge = cva(styles$
|
|
1851
|
+
const badge = cva(styles$u.badge, {
|
|
1871
1852
|
variants: {
|
|
1872
1853
|
color: {},
|
|
1873
1854
|
},
|
|
@@ -1878,14 +1859,14 @@ const Badge = (props, ref) => {
|
|
|
1878
1859
|
};
|
|
1879
1860
|
var badge$1 = React__default.forwardRef(Badge);
|
|
1880
1861
|
|
|
1881
|
-
var styles$
|
|
1862
|
+
var styles$t = {"body":"body-module_body__0sfEI","body-small":"body-module_body-small__CjW1C","body-medium":"body-module_body-medium__XVmQw","body-large":"body-module_body-large__KqAga"};
|
|
1882
1863
|
|
|
1883
|
-
const body$1 = cva(styles$
|
|
1864
|
+
const body$1 = cva(styles$t.body, {
|
|
1884
1865
|
variants: {
|
|
1885
1866
|
size: {
|
|
1886
|
-
small: styles$
|
|
1887
|
-
medium: styles$
|
|
1888
|
-
large: styles$
|
|
1867
|
+
small: styles$t["body-small"],
|
|
1868
|
+
medium: styles$t["body-medium"],
|
|
1869
|
+
large: styles$t["body-large"],
|
|
1889
1870
|
},
|
|
1890
1871
|
},
|
|
1891
1872
|
defaultVariants: {
|
|
@@ -1896,21 +1877,21 @@ function Body({ children, className, size, ...props }) {
|
|
|
1896
1877
|
return (jsxRuntimeExports.jsx("span", { className: body$1({ size, className }), ...props, children: children }));
|
|
1897
1878
|
}
|
|
1898
1879
|
|
|
1899
|
-
var styles$
|
|
1880
|
+
var styles$s = {"button":"button-module_button__9VQ21","button-small":"button-module_button-small__RR1mh","button-medium":"button-module_button-medium__79Bf1","button-large":"button-module_button-large__BQy6w","button-round":"button-module_button-round__Gd30S","button-primary":"button-module_button-primary__R0k9n","button-outline":"button-module_button-outline__MN25q","button-secondary":"button-module_button-secondary__zDkNV","button-ghost":"button-module_button-ghost__KcZUm","button-danger":"button-module_button-danger__dnB-7"};
|
|
1900
1881
|
|
|
1901
|
-
const button = cva(styles$
|
|
1882
|
+
const button = cva(styles$s.button, {
|
|
1902
1883
|
variants: {
|
|
1903
1884
|
variant: {
|
|
1904
|
-
primary: styles$
|
|
1905
|
-
outline: styles$
|
|
1906
|
-
secondary: styles$
|
|
1907
|
-
ghost: styles$
|
|
1908
|
-
danger: styles$
|
|
1885
|
+
primary: styles$s["button-primary"],
|
|
1886
|
+
outline: styles$s["button-outline"],
|
|
1887
|
+
secondary: styles$s["button-secondary"],
|
|
1888
|
+
ghost: styles$s["button-ghost"],
|
|
1889
|
+
danger: styles$s["button-danger"],
|
|
1909
1890
|
},
|
|
1910
1891
|
size: {
|
|
1911
|
-
small: styles$
|
|
1912
|
-
medium: styles$
|
|
1913
|
-
large: styles$
|
|
1892
|
+
small: styles$s["button-small"],
|
|
1893
|
+
medium: styles$s["button-medium"],
|
|
1894
|
+
large: styles$s["button-large"],
|
|
1914
1895
|
},
|
|
1915
1896
|
},
|
|
1916
1897
|
});
|
|
@@ -2470,6 +2451,72 @@ var Cross2Icon = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
|
|
|
2470
2451
|
}));
|
|
2471
2452
|
});
|
|
2472
2453
|
|
|
2454
|
+
var _excluded$20 = ["color"];
|
|
2455
|
+
var ExclamationTriangleIcon = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
|
|
2456
|
+
var _ref$color = _ref.color,
|
|
2457
|
+
color = _ref$color === void 0 ? 'currentColor' : _ref$color,
|
|
2458
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$20);
|
|
2459
|
+
|
|
2460
|
+
return createElement("svg", Object.assign({
|
|
2461
|
+
width: "15",
|
|
2462
|
+
height: "15",
|
|
2463
|
+
viewBox: "0 0 15 15",
|
|
2464
|
+
fill: "none",
|
|
2465
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2466
|
+
}, props, {
|
|
2467
|
+
ref: forwardedRef
|
|
2468
|
+
}), createElement("path", {
|
|
2469
|
+
d: "M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",
|
|
2470
|
+
fill: color,
|
|
2471
|
+
fillRule: "evenodd",
|
|
2472
|
+
clipRule: "evenodd"
|
|
2473
|
+
}));
|
|
2474
|
+
});
|
|
2475
|
+
|
|
2476
|
+
var _excluded$29 = ["color"];
|
|
2477
|
+
var FileIcon = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
|
|
2478
|
+
var _ref$color = _ref.color,
|
|
2479
|
+
color = _ref$color === void 0 ? 'currentColor' : _ref$color,
|
|
2480
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$29);
|
|
2481
|
+
|
|
2482
|
+
return createElement("svg", Object.assign({
|
|
2483
|
+
width: "15",
|
|
2484
|
+
height: "15",
|
|
2485
|
+
viewBox: "0 0 15 15",
|
|
2486
|
+
fill: "none",
|
|
2487
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2488
|
+
}, props, {
|
|
2489
|
+
ref: forwardedRef
|
|
2490
|
+
}), createElement("path", {
|
|
2491
|
+
d: "M3.5 2C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V6H8.5C8.22386 6 8 5.77614 8 5.5V2H3.5ZM9 2.70711L11.2929 5H9V2.70711ZM2 2.5C2 1.67157 2.67157 1 3.5 1H8.5C8.63261 1 8.75979 1.05268 8.85355 1.14645L12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V12.5C13 13.3284 12.3284 14 11.5 14H3.5C2.67157 14 2 13.3284 2 12.5V2.5Z",
|
|
2492
|
+
fill: color,
|
|
2493
|
+
fillRule: "evenodd",
|
|
2494
|
+
clipRule: "evenodd"
|
|
2495
|
+
}));
|
|
2496
|
+
});
|
|
2497
|
+
|
|
2498
|
+
var _excluded$2c = ["color"];
|
|
2499
|
+
var FileTextIcon = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
|
|
2500
|
+
var _ref$color = _ref.color,
|
|
2501
|
+
color = _ref$color === void 0 ? 'currentColor' : _ref$color,
|
|
2502
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2c);
|
|
2503
|
+
|
|
2504
|
+
return createElement("svg", Object.assign({
|
|
2505
|
+
width: "15",
|
|
2506
|
+
height: "15",
|
|
2507
|
+
viewBox: "0 0 15 15",
|
|
2508
|
+
fill: "none",
|
|
2509
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2510
|
+
}, props, {
|
|
2511
|
+
ref: forwardedRef
|
|
2512
|
+
}), createElement("path", {
|
|
2513
|
+
d: "M3 2.5C3 2.22386 3.22386 2 3.5 2H9.08579C9.21839 2 9.34557 2.05268 9.43934 2.14645L11.8536 4.56066C11.9473 4.65443 12 4.78161 12 4.91421V12.5C12 12.7761 11.7761 13 11.5 13H3.5C3.22386 13 3 12.7761 3 12.5V2.5ZM3.5 1C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H11.5C12.3284 14 13 13.3284 13 12.5V4.91421C13 4.51639 12.842 4.13486 12.5607 3.85355L10.1464 1.43934C9.86514 1.15804 9.48361 1 9.08579 1H3.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5C4 4.77614 4.22386 5 4.5 5H7.5C7.77614 5 8 4.77614 8 4.5C8 4.22386 7.77614 4 7.5 4H4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H10.5C10.7761 8 11 7.77614 11 7.5C11 7.22386 10.7761 7 10.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H10.5C10.7761 11 11 10.7761 11 10.5C11 10.2239 10.7761 10 10.5 10H4.5Z",
|
|
2514
|
+
fill: color,
|
|
2515
|
+
fillRule: "evenodd",
|
|
2516
|
+
clipRule: "evenodd"
|
|
2517
|
+
}));
|
|
2518
|
+
});
|
|
2519
|
+
|
|
2473
2520
|
var _excluded$33 = ["color"];
|
|
2474
2521
|
var MagnifyingGlassIcon = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
|
|
2475
2522
|
var _ref$color = _ref.color,
|
|
@@ -2558,40 +2605,40 @@ var SunIcon = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
|
|
|
2558
2605
|
}));
|
|
2559
2606
|
});
|
|
2560
2607
|
|
|
2561
|
-
var styles$
|
|
2608
|
+
var styles$r = {"flex":"flex-module_flex__tfvHj","direction-row":"flex-module_direction-row__ZZCCO","direction-column":"flex-module_direction-column__MZhja","direction-rowReverse":"flex-module_direction-rowReverse__cODeQ","direction-columnReverse":"flex-module_direction-columnReverse__uxwTT","align-start":"flex-module_align-start__d1cB2","align-center":"flex-module_align-center__zZ1E6","align-end":"flex-module_align-end__z2g3F","align-stretch":"flex-module_align-stretch__X-Zb0","align-baseline":"flex-module_align-baseline__UImQH","justify-start":"flex-module_justify-start__4eduw","justify-center":"flex-module_justify-center__BMDDv","justify-end":"flex-module_justify-end__pWfzn","justify-between":"flex-module_justify-between__9NSwF","wrap-noWrap":"flex-module_wrap-noWrap__Ly8Pu","wrap-wrap":"flex-module_wrap-wrap__5WZOm","wrap-wrapReverse":"flex-module_wrap-wrapReverse__6u3Es","gap-xs":"flex-module_gap-xs__3h3LG","gap-sm":"flex-module_gap-sm__UMdVH","gap-md":"flex-module_gap-md__sfd7f","gap-lg":"flex-module_gap-lg__LAcQC","gap-xl":"flex-module_gap-xl__3-8uA"};
|
|
2562
2609
|
|
|
2563
|
-
const flex = cva(styles$
|
|
2610
|
+
const flex = cva(styles$r.flex, {
|
|
2564
2611
|
variants: {
|
|
2565
2612
|
direction: {
|
|
2566
|
-
row: styles$
|
|
2567
|
-
column: styles$
|
|
2568
|
-
rowReverse: styles$
|
|
2569
|
-
columnReverse: styles$
|
|
2613
|
+
row: styles$r["direction-row"],
|
|
2614
|
+
column: styles$r["direction-column"],
|
|
2615
|
+
rowReverse: styles$r["direction-rowReverse"],
|
|
2616
|
+
columnReverse: styles$r["direction-columnReverse"],
|
|
2570
2617
|
},
|
|
2571
2618
|
align: {
|
|
2572
|
-
start: styles$
|
|
2573
|
-
center: styles$
|
|
2574
|
-
end: styles$
|
|
2575
|
-
stretch: styles$
|
|
2576
|
-
baseline: styles$
|
|
2619
|
+
start: styles$r["align-start"],
|
|
2620
|
+
center: styles$r["align-center"],
|
|
2621
|
+
end: styles$r["align-end"],
|
|
2622
|
+
stretch: styles$r["align-stretch"],
|
|
2623
|
+
baseline: styles$r["align-baseline"],
|
|
2577
2624
|
},
|
|
2578
2625
|
justify: {
|
|
2579
|
-
start: styles$
|
|
2580
|
-
center: styles$
|
|
2581
|
-
end: styles$
|
|
2582
|
-
between: styles$
|
|
2626
|
+
start: styles$r["justify-start"],
|
|
2627
|
+
center: styles$r["justify-center"],
|
|
2628
|
+
end: styles$r["justify-end"],
|
|
2629
|
+
between: styles$r["justify-between"],
|
|
2583
2630
|
},
|
|
2584
2631
|
wrap: {
|
|
2585
|
-
noWrap: styles$
|
|
2586
|
-
wrap: styles$
|
|
2587
|
-
wrapReverse: styles$
|
|
2632
|
+
noWrap: styles$r["wrap-noWrap"],
|
|
2633
|
+
wrap: styles$r["wrap-wrap"],
|
|
2634
|
+
wrapReverse: styles$r["wrap-wrapReverse"],
|
|
2588
2635
|
},
|
|
2589
2636
|
gap: {
|
|
2590
|
-
"extra-small": styles$
|
|
2591
|
-
small: styles$
|
|
2592
|
-
medium: styles$
|
|
2593
|
-
large: styles$
|
|
2594
|
-
"extra-large": styles$
|
|
2637
|
+
"extra-small": styles$r["gap-xs"],
|
|
2638
|
+
small: styles$r["gap-sm"],
|
|
2639
|
+
medium: styles$r["gap-md"],
|
|
2640
|
+
large: styles$r["gap-lg"],
|
|
2641
|
+
"extra-large": styles$r["gap-xl"],
|
|
2595
2642
|
},
|
|
2596
2643
|
},
|
|
2597
2644
|
defaultVariants: {
|
|
@@ -2605,14 +2652,14 @@ function Flex({ children, direction, align, justify, wrap, gap, className, ...pr
|
|
|
2605
2652
|
return (jsxRuntimeExports.jsx("div", { className: flex({ direction, align, justify, wrap, gap, className }), ...props, children: children }));
|
|
2606
2653
|
}
|
|
2607
2654
|
|
|
2608
|
-
var styles$
|
|
2655
|
+
var styles$q = {"label":"label-module_label__hM2lk","label-small":"label-module_label-small__se5gE","label-medium":"label-module_label-medium__Z4Tcb","label-large":"label-module_label-large__ba4Jb"};
|
|
2609
2656
|
|
|
2610
|
-
const label$2 = cva(styles$
|
|
2657
|
+
const label$2 = cva(styles$q.label, {
|
|
2611
2658
|
variants: {
|
|
2612
2659
|
size: {
|
|
2613
|
-
small: styles$
|
|
2614
|
-
medium: styles$
|
|
2615
|
-
large: styles$
|
|
2660
|
+
small: styles$q["label-small"],
|
|
2661
|
+
medium: styles$q["label-medium"],
|
|
2662
|
+
large: styles$q["label-large"],
|
|
2616
2663
|
},
|
|
2617
2664
|
},
|
|
2618
2665
|
defaultVariants: {
|
|
@@ -2623,13 +2670,13 @@ function Label({ children, className, size, ...props }) {
|
|
|
2623
2670
|
return (jsxRuntimeExports.jsx("label", { className: label$2({ size, className }), ...props, children: children }));
|
|
2624
2671
|
}
|
|
2625
2672
|
|
|
2626
|
-
var styles$
|
|
2673
|
+
var styles$p = {"checkbox":"checkbox-module_checkbox__QdlAc","checkbox-sm":"checkbox-module_checkbox-sm__tVhlX","checkbox-md":"checkbox-module_checkbox-md__G04e5","indicator":"checkbox-module_indicator__oGvoN"};
|
|
2627
2674
|
|
|
2628
|
-
const checkbox = cva(styles$
|
|
2675
|
+
const checkbox = cva(styles$p.checkbox, {
|
|
2629
2676
|
variants: {
|
|
2630
2677
|
size: {
|
|
2631
|
-
small: styles$
|
|
2632
|
-
medium: styles$
|
|
2678
|
+
small: styles$p["checkbox-sm"],
|
|
2679
|
+
medium: styles$p["checkbox-md"],
|
|
2633
2680
|
},
|
|
2634
2681
|
},
|
|
2635
2682
|
defaultVariants: {
|
|
@@ -2637,7 +2684,7 @@ const checkbox = cva(styles$o.checkbox, {
|
|
|
2637
2684
|
},
|
|
2638
2685
|
});
|
|
2639
2686
|
const Checkbox = forwardRef(({ className, size, children, ...props }, forwardedRef) => (jsxRuntimeExports.jsxs(Flex, { gap: "small", children: [jsxRuntimeExports.jsx($e698a72e93240346$export$be92b6f5f03c0fe9, { ...props, ref: forwardedRef, className: checkbox({ size, className }), children: jsxRuntimeExports.jsx(CheckboxIndicator, { children: jsxRuntimeExports.jsx(CheckIcon, {}) }) }), jsxRuntimeExports.jsx(Label, { children: children })] })));
|
|
2640
|
-
const indicator$1 = cva(styles$
|
|
2687
|
+
const indicator$1 = cva(styles$p.indicator);
|
|
2641
2688
|
const CheckboxIndicator = forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($e698a72e93240346$export$adb584737d712b70, { ref: ref, className: indicator$1({ className }), ...props })));
|
|
2642
2689
|
CheckboxIndicator.displayName = $e698a72e93240346$export$adb584737d712b70.displayName;
|
|
2643
2690
|
|
|
@@ -4782,7 +4829,7 @@ var le = /*@__PURE__*/getDefaultExportFromCjs(commandScore_1);
|
|
|
4782
4829
|
|
|
4783
4830
|
var ue='[cmdk-list-sizer=""]',M='[cmdk-group=""]',N='[cmdk-group-items=""]',de='[cmdk-group-heading=""]',ee='[cmdk-item=""]',Z=`${ee}:not([aria-disabled="true"])`,z="cmdk-item-select",S="data-value",fe=(n,a)=>le(n,a),te=React.createContext(void 0),k=()=>React.useContext(te),re=React.createContext(void 0),U=()=>React.useContext(re),ne=React.createContext(void 0),oe=React.forwardRef((n,a)=>{let r=React.useRef(null),o=x(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),u=x(()=>new Set),l=x(()=>new Map),p=x(()=>new Map),f=x(()=>new Set),d=ae(n),{label:v,children:E,value:R,onValueChange:w,filter:O,shouldFilter:ie,...D}=n,F=React.useId(),g=React.useId(),A=React.useId(),y=ye();L(()=>{if(R!==void 0){let e=R.trim().toLowerCase();o.current.value=e,y(6,W),h.emit();}},[R]);let h=React.useMemo(()=>({subscribe:e=>(f.current.add(e),()=>f.current.delete(e)),snapshot:()=>o.current,setState:(e,c,i)=>{var s,m,b;if(!Object.is(o.current[e],c)){if(o.current[e]=c,e==="search")j(),G(),y(1,V);else if(e==="value")if(((s=d.current)==null?void 0:s.value)!==void 0){(b=(m=d.current).onValueChange)==null||b.call(m,c);return}else i||y(5,W);h.emit();}},emit:()=>{f.current.forEach(e=>e());}}),[]),K=React.useMemo(()=>({value:(e,c)=>{c!==p.current.get(e)&&(p.current.set(e,c),o.current.filtered.items.set(e,B(c)),y(2,()=>{G(),h.emit();}));},item:(e,c)=>(u.current.add(e),c&&(l.current.has(c)?l.current.get(c).add(e):l.current.set(c,new Set([e]))),y(3,()=>{j(),G(),o.current.value||V(),h.emit();}),()=>{p.current.delete(e),u.current.delete(e),o.current.filtered.items.delete(e),y(4,()=>{j(),V(),h.emit();});}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{p.current.delete(e),l.current.delete(e);}),filter:()=>d.current.shouldFilter,label:v||n["aria-label"],listId:F,inputId:A,labelId:g}),[]);function B(e){var i;let c=((i=d.current)==null?void 0:i.filter)??fe;return e?c(e,o.current.search):0}function G(){if(!r.current||!o.current.search||d.current.shouldFilter===!1)return;let e=o.current.filtered.items,c=[];o.current.filtered.groups.forEach(s=>{let m=l.current.get(s),b=0;m.forEach(P=>{let ce=e.get(P);b=Math.max(ce,b);}),c.push([s,b]);});let i=r.current.querySelector(ue);I().sort((s,m)=>{let b=s.getAttribute(S),P=m.getAttribute(S);return (e.get(P)??0)-(e.get(b)??0)}).forEach(s=>{let m=s.closest(N);m?m.appendChild(s.parentElement===m?s:s.closest(`${N} > *`)):i.appendChild(s.parentElement===i?s:s.closest(`${N} > *`));}),c.sort((s,m)=>m[1]-s[1]).forEach(s=>{let m=r.current.querySelector(`${M}[${S}="${s[0]}"]`);m==null||m.parentElement.appendChild(m);});}function V(){let e=I().find(i=>!i.ariaDisabled),c=e==null?void 0:e.getAttribute(S);h.setState("value",c||void 0);}function j(){if(!o.current.search||d.current.shouldFilter===!1){o.current.filtered.count=u.current.size;return}o.current.filtered.groups=new Set;let e=0;for(let c of u.current){let i=p.current.get(c),s=B(i);o.current.filtered.items.set(c,s),s>0&&e++;}for(let[c,i]of l.current)for(let s of i)if(o.current.filtered.items.get(s)>0){o.current.filtered.groups.add(c);break}o.current.filtered.count=e;}function W(){var c,i,s;let e=_();e&&(((c=e.parentElement)==null?void 0:c.firstChild)===e&&((s=(i=e.closest(M))==null?void 0:i.querySelector(de))==null||s.scrollIntoView({block:"nearest"})),e.scrollIntoView({block:"nearest"}));}function _(){return r.current.querySelector(`${ee}[aria-selected="true"]`)}function I(){return Array.from(r.current.querySelectorAll(Z))}function q(e){let i=I()[e];i&&h.setState("value",i.getAttribute(S));}function $(e){var b;let c=_(),i=I(),s=i.findIndex(P=>P===c),m=i[s+e];(b=d.current)!=null&&b.loop&&(m=s+e<0?i[i.length-1]:s+e===i.length?i[0]:i[s+e]),m&&h.setState("value",m.getAttribute(S));}function J(e){let c=_(),i=c==null?void 0:c.closest(M),s;for(;i&&!s;)i=e>0?Se(i,M):Ce(i,M),s=i==null?void 0:i.querySelector(Z);s?h.setState("value",s.getAttribute(S)):$(e);}let Q=()=>q(I().length-1),X=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):$(1);},Y=e=>{e.preventDefault(),e.metaKey?q(0):e.altKey?J(-1):$(-1);};return React.createElement("div",{ref:H([r,a]),...D,"cmdk-root":"",onKeyDown:e=>{var c;if((c=D.onKeyDown)==null||c.call(D,e),!e.defaultPrevented)switch(e.key){case"n":case"j":{e.ctrlKey&&X(e);break}case"ArrowDown":{X(e);break}case"p":case"k":{e.ctrlKey&&Y(e);break}case"ArrowUp":{Y(e);break}case"Home":{e.preventDefault(),q(0);break}case"End":{e.preventDefault(),Q();break}case"Enter":{e.preventDefault();let i=_();if(i){let s=new Event(z);i.dispatchEvent(s);}}}}},React.createElement("label",{"cmdk-label":"",htmlFor:K.inputId,id:K.labelId,style:xe},v),React.createElement(re.Provider,{value:h},React.createElement(te.Provider,{value:K},E)))}),me=React.forwardRef((n,a)=>{let r=React.useId(),o=React.useRef(null),u=React.useContext(ne),l=k(),p=ae(n);L(()=>l.item(r,u),[]);let f=se(r,o,[n.value,n.children,o]),d=U(),v=T(g=>g.value&&g.value===f.current),E=T(g=>l.filter()===!1?!0:g.search?g.filtered.items.get(r)>0:!0);React.useEffect(()=>{let g=o.current;if(!(!g||n.disabled))return g.addEventListener(z,R),()=>g.removeEventListener(z,R)},[E,n.onSelect,n.disabled]);function R(){var g,A;(A=(g=p.current).onSelect)==null||A.call(g,f.current);}function w(){d.setState("value",f.current,!0);}if(!E)return null;let{disabled:O,value:ie,onSelect:D,...F}=n;return React.createElement("div",{ref:H([o,a]),...F,"cmdk-item":"",role:"option","aria-disabled":O||void 0,"aria-selected":v||void 0,"data-selected":v||void 0,onPointerMove:O?void 0:w,onClick:O?void 0:R},n.children)}),pe=React.forwardRef((n,a)=>{let{heading:r,children:o,...u}=n,l=React.useId(),p=React.useRef(null),f=React.useRef(null),d=React.useId(),v=k(),E=T(w=>v.filter()===!1?!0:w.search?w.filtered.groups.has(l):!0);L(()=>v.group(l),[]),se(l,p,[n.value,n.heading,f]);let R=React.createElement(ne.Provider,{value:l},o);return React.createElement("div",{ref:H([p,a]),...u,"cmdk-group":"",role:"presentation",hidden:E?void 0:!0},r&&React.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),React.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},R))}),ge=React.forwardRef((n,a)=>{let{alwaysRender:r,...o}=n,u=React.useRef(null),l=T(p=>!p.search);return !r&&!l?null:React.createElement("div",{ref:H([u,a]),...o,"cmdk-separator":"",role:"separator"})}),ve=React.forwardRef((n,a)=>{let{onValueChange:r,...o}=n,u=n.value!=null,l=U(),p=T(d=>d.search),f=k();return React.useEffect(()=>{n.value!=null&&l.setState("search",n.value);},[n.value]),React.createElement("input",{ref:a,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,id:f.inputId,type:"text",value:u?n.value:p,onChange:d=>{u||l.setState("search",d.target.value),r==null||r(d.target.value);}})}),Re=React.forwardRef((n,a)=>{let{children:r,...o}=n,u=React.useRef(null),l=React.useRef(null),p=k();return React.useEffect(()=>{if(l.current&&u.current){let f=l.current,d=u.current,v,E=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{let R=f.getBoundingClientRect().height;d.style.setProperty("--cmdk-list-height",R.toFixed(1)+"px");});});return E.observe(f),()=>{cancelAnimationFrame(v),E.unobserve(f);}}},[]),React.createElement("div",{ref:H([u,a]),...o,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:p.listId,"aria-labelledby":p.inputId},React.createElement("div",{ref:l,"cmdk-list-sizer":""},r))}),be=React.forwardRef((n,a)=>{let{open:r,onOpenChange:o,container:u,...l}=n;return React.createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9$1,{open:r,onOpenChange:o},React.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{container:u},React.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1,{"cmdk-overlay":""}),React.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{"aria-label":n.label,"cmdk-dialog":""},React.createElement(oe,{ref:a,...l}))))}),he=React.forwardRef((n,a)=>{let r=React.useRef(!0),o=T(u=>u.filtered.count===0);return React.useEffect(()=>{r.current=!1;},[]),r.current||!o?null:React.createElement("div",{ref:a,...n,"cmdk-empty":"",role:"presentation"})}),Ee=React.forwardRef((n,a)=>{let{progress:r,children:o,...u}=n;return React.createElement("div",{ref:a,...u,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},React.createElement("div",{"aria-hidden":!0},o))}),Le=Object.assign(oe,{List:Re,Item:me,Input:ve,Group:pe,Separator:ge,Dialog:be,Empty:he,Loading:Ee});function Se(n,a){let r=n.nextElementSibling;for(;r;){if(r.matches(a))return r;r=r.nextElementSibling;}}function Ce(n,a){let r=n.previousElementSibling;for(;r;){if(r.matches(a))return r;r=r.previousElementSibling;}}function ae(n){let a=React.useRef(n);return L(()=>{a.current=n;}),a}var L=typeof window>"u"?React.useEffect:React.useLayoutEffect;function x(n){let a=React.useRef();return a.current===void 0&&(a.current=n()),a}function H(n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a);});}}function T(n){let a=U(),r=()=>n(a.snapshot());return React.useSyncExternalStore(a.subscribe,r,r)}function se(n,a,r){let o=React.useRef(),u=k();return L(()=>{var p;let l=(()=>{var f;for(let d of r){if(typeof d=="string")return d.trim().toLowerCase();if(typeof d=="object"&&"current"in d&&d.current)return (f=d.current.textContent)==null?void 0:f.trim().toLowerCase()}})();u.value(n,l),(p=a.current)==null||p.setAttribute(S,l),o.current=l;}),o}var ye=()=>{let[n,a]=React.useState(),r=x(()=>new Map);return L(()=>{r.current.forEach(o=>o()),r.current=new Map;},[n]),(o,u)=>{r.current.set(o,u),a({});}},xe={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};
|
|
4784
4831
|
|
|
4785
|
-
var styles$
|
|
4832
|
+
var styles$o = {"command":"command-module_command__uWauu","inputWrapper":"command-module_inputWrapper__3p35Y","inputIcon":"command-module_inputIcon__A5omD","input":"command-module_input__l18cJ","list":"command-module_list__R5zPY","empty":"command-module_empty__had3w","group":"command-module_group__eVKQy","item":"command-module_item__J5y6v","separator":"command-module_separator__etEyE"};
|
|
4786
4833
|
|
|
4787
4834
|
const $1746a345f3d73bb7$var$useReactId = React['useId'.toString()] || (()=>undefined
|
|
4788
4835
|
);
|
|
@@ -5907,17 +5954,16 @@ const $5d3850c4d0b4e6c7$export$f99233281efd08a0 = $5d3850c4d0b4e6c7$export$16f76
|
|
|
5907
5954
|
const $5d3850c4d0b4e6c7$export$393edc798c47379d = $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5;
|
|
5908
5955
|
const $5d3850c4d0b4e6c7$export$f39c2d165cd861fe = $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac;
|
|
5909
5956
|
|
|
5910
|
-
var styles$
|
|
5957
|
+
var styles$n = {"dialogContent":"dialog-module_dialogContent__bljTL","overlay":"dialog-module_overlay__t-jUE","close":"dialog-module_close__n9JNt"};
|
|
5911
5958
|
|
|
5912
|
-
const dialogContent = cva(styles$
|
|
5959
|
+
const dialogContent = cva(styles$n.dialogContent);
|
|
5913
5960
|
const DialogContent = forwardRef(({ className, children, close, ...props }, forwardedRef) => {
|
|
5914
|
-
console.log(close);
|
|
5915
5961
|
return (jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$602eac185826482c, { children: [jsxRuntimeExports.jsx(Overlay$1, {}), jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, { ...props, ref: forwardedRef, className: dialogContent({ className }), children: [children, close && (jsxRuntimeExports.jsx(CloseButton$1, { children: jsxRuntimeExports.jsx(Cross1Icon, {}) }))] })] }));
|
|
5916
5962
|
});
|
|
5917
|
-
const overlay$1 = cva(styles$
|
|
5963
|
+
const overlay$1 = cva(styles$n.overlay);
|
|
5918
5964
|
const Overlay$1 = forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, { ref: ref, className: overlay$1({ className }), ...props })));
|
|
5919
5965
|
Overlay$1.displayName = $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff.displayName;
|
|
5920
|
-
const close$1 = cva(styles$
|
|
5966
|
+
const close$1 = cva(styles$n.close);
|
|
5921
5967
|
function CloseButton$1({ children, className, ...props }) {
|
|
5922
5968
|
return (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, { className: close$1({ className }), ...props, children: children }));
|
|
5923
5969
|
}
|
|
@@ -5929,30 +5975,30 @@ const Dialog = Object.assign($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, {
|
|
|
5929
5975
|
Description: $5d3850c4d0b4e6c7$export$393edc798c47379d,
|
|
5930
5976
|
});
|
|
5931
5977
|
|
|
5932
|
-
const command = cva(styles$
|
|
5978
|
+
const command = cva(styles$o.command);
|
|
5933
5979
|
const CommandRoot = React__default.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx(Le, { ref: ref, className: command({ className }), ...props })));
|
|
5934
5980
|
CommandRoot.displayName = Le.displayName;
|
|
5935
5981
|
const CommandDialog = ({ children, ...props }) => {
|
|
5936
|
-
return (jsxRuntimeExports.jsx(Dialog, { ...props, children: jsxRuntimeExports.jsx(Dialog.Content, { style: { overflow: "hidden", padding: "0" }, children: jsxRuntimeExports.jsx(Command, { className: styles$
|
|
5982
|
+
return (jsxRuntimeExports.jsx(Dialog, { ...props, children: jsxRuntimeExports.jsx(Dialog.Content, { style: { overflow: "hidden", padding: "0" }, children: jsxRuntimeExports.jsx(Command, { className: styles$o.dialogcommand, children: children }) }) }));
|
|
5937
5983
|
};
|
|
5938
|
-
const input = cva(styles$
|
|
5939
|
-
const CommandInput = React__default.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsxs(Flex, { align: "center", gap: "small", "cmdk-input-wrapper": "", className: styles$
|
|
5984
|
+
const input = cva(styles$o.input);
|
|
5985
|
+
const CommandInput = React__default.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsxs(Flex, { align: "center", gap: "small", "cmdk-input-wrapper": "", className: styles$o.inputWrapper, children: [jsxRuntimeExports.jsx(MagnifyingGlassIcon, { className: styles$o.inputIcon, width: 16, height: 16 }), jsxRuntimeExports.jsx(Le.Input, { ref: ref, className: input({ className }), ...props })] })));
|
|
5940
5986
|
CommandInput.displayName = Le.Input.displayName;
|
|
5941
|
-
const list = cva(styles$
|
|
5987
|
+
const list = cva(styles$o.list);
|
|
5942
5988
|
const CommandList = React__default.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx(Le.List, { ref: ref, className: list({ className }), ...props })));
|
|
5943
5989
|
CommandList.displayName = Le.List.displayName;
|
|
5944
|
-
const CommandEmpty = React__default.forwardRef((props, ref) => (jsxRuntimeExports.jsx(Le.Empty, { ref: ref, className: styles$
|
|
5990
|
+
const CommandEmpty = React__default.forwardRef((props, ref) => (jsxRuntimeExports.jsx(Le.Empty, { ref: ref, className: styles$o.empty, ...props })));
|
|
5945
5991
|
CommandEmpty.displayName = Le.Empty.displayName;
|
|
5946
|
-
const group = cva(styles$
|
|
5992
|
+
const group = cva(styles$o.group);
|
|
5947
5993
|
const CommandGroup = React__default.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx(Le.Group, { ref: ref, className: group({ className }), ...props })));
|
|
5948
5994
|
CommandGroup.displayName = Le.Group.displayName;
|
|
5949
|
-
const separator$3 = cva(styles$
|
|
5995
|
+
const separator$3 = cva(styles$o.separator);
|
|
5950
5996
|
const CommandSeparator = React__default.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx(Le.Separator, { ref: ref, className: separator$3({ className }), ...props })));
|
|
5951
5997
|
CommandSeparator.displayName = Le.Separator.displayName;
|
|
5952
|
-
const item = cva(styles$
|
|
5998
|
+
const item = cva(styles$o.item);
|
|
5953
5999
|
const CommandItem = React__default.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx(Le.Item, { ref: ref, className: item({ className }), ...props })));
|
|
5954
6000
|
CommandItem.displayName = Le.Item.displayName;
|
|
5955
|
-
const shortcut = cva(styles$
|
|
6001
|
+
const shortcut = cva(styles$o.shortcut);
|
|
5956
6002
|
const CommandShortcut = ({ className, ...props }) => {
|
|
5957
6003
|
return jsxRuntimeExports.jsx("span", { className: shortcut({ className }), ...props });
|
|
5958
6004
|
};
|
|
@@ -5968,15 +6014,15 @@ const Command = Object.assign(CommandRoot, {
|
|
|
5968
6014
|
Separator: CommandSeparator,
|
|
5969
6015
|
});
|
|
5970
6016
|
|
|
5971
|
-
var styles$
|
|
6017
|
+
var styles$m = {"container":"container-module_container__gisZb","container-small":"container-module_container-small__gfmeG","container-medium":"container-module_container-medium__sA5rc","container-large":"container-module_container-large__bk-Wg","container-none":"container-module_container-none__hVnHU"};
|
|
5972
6018
|
|
|
5973
|
-
const container = cva(styles$
|
|
6019
|
+
const container = cva(styles$m.container, {
|
|
5974
6020
|
variants: {
|
|
5975
6021
|
size: {
|
|
5976
|
-
small: styles$
|
|
5977
|
-
medium: styles$
|
|
5978
|
-
large: styles$
|
|
5979
|
-
none: styles$
|
|
6022
|
+
small: styles$m["container-small"],
|
|
6023
|
+
medium: styles$m["container-medium"],
|
|
6024
|
+
large: styles$m["container-large"],
|
|
6025
|
+
none: styles$m["container-none"],
|
|
5980
6026
|
},
|
|
5981
6027
|
},
|
|
5982
6028
|
defaultVariants: {
|
|
@@ -5987,14 +6033,14 @@ function Container({ children, size, className, ...props }) {
|
|
|
5987
6033
|
return (jsxRuntimeExports.jsx("div", { className: container({ size, className }), ...props, children: children }));
|
|
5988
6034
|
}
|
|
5989
6035
|
|
|
5990
|
-
var styles$
|
|
6036
|
+
var styles$l = {"display":"display-module_display__fImHP","display-small":"display-module_display-small__n9Y4F","display-medium":"display-module_display-medium__p8Iyc","display-large":"display-module_display-large__3LvKv"};
|
|
5991
6037
|
|
|
5992
|
-
const display = cva(styles$
|
|
6038
|
+
const display = cva(styles$l.display, {
|
|
5993
6039
|
variants: {
|
|
5994
6040
|
size: {
|
|
5995
|
-
small: styles$
|
|
5996
|
-
medium: styles$
|
|
5997
|
-
large: styles$
|
|
6041
|
+
small: styles$l["display-small"],
|
|
6042
|
+
medium: styles$l["display-medium"],
|
|
6043
|
+
large: styles$l["display-large"],
|
|
5998
6044
|
},
|
|
5999
6045
|
},
|
|
6000
6046
|
defaultVariants: {
|
|
@@ -9066,21 +9112,21 @@ const $d08ef79370b62062$export$b04be29aa201d4f5 = $d08ef79370b62062$export$76e48
|
|
|
9066
9112
|
const $d08ef79370b62062$export$6d08773d2e66f8f2 = $d08ef79370b62062$export$ed97964d1871885d;
|
|
9067
9113
|
const $d08ef79370b62062$export$1ff3c3f08ae963c0 = $d08ef79370b62062$export$da160178fd3bc7e9;
|
|
9068
9114
|
|
|
9069
|
-
var styles$
|
|
9115
|
+
var styles$k = {"content":"dropdown-menu-module_content__-LWeL","menuitem":"dropdown-menu-module_menuitem__IuV4n","label":"dropdown-menu-module_label__2h-4H","separator":"dropdown-menu-module_separator__0-EoW","menugroup":"dropdown-menu-module_menugroup__AmbLX"};
|
|
9070
9116
|
|
|
9071
|
-
const content$2 = cva(styles$
|
|
9117
|
+
const content$2 = cva(styles$k.content);
|
|
9072
9118
|
const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (jsxRuntimeExports.jsx($d08ef79370b62062$export$602eac185826482c, { children: jsxRuntimeExports.jsx($d08ef79370b62062$export$7c6e2c02157bb7d2, { ref: ref, sideOffset: sideOffset, className: content$2({ className }), ...props }) })));
|
|
9073
9119
|
DropdownMenuContent.displayName = $d08ef79370b62062$export$7c6e2c02157bb7d2.displayName;
|
|
9074
|
-
const menuitem$1 = cva(styles$
|
|
9120
|
+
const menuitem$1 = cva(styles$k.menuitem);
|
|
9075
9121
|
const DropdownMenuItem = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($d08ef79370b62062$export$6d08773d2e66f8f2, { ref: ref, className: menuitem$1({ className }), ...props })));
|
|
9076
9122
|
DropdownMenuItem.displayName = $d08ef79370b62062$export$6d08773d2e66f8f2.displayName;
|
|
9077
|
-
const label$1 = cva(styles$
|
|
9123
|
+
const label$1 = cva(styles$k.label);
|
|
9078
9124
|
const DropdownMenuLabel = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($d08ef79370b62062$export$b04be29aa201d4f5, { ref: ref, className: label$1({ className }), ...props })));
|
|
9079
9125
|
DropdownMenuLabel.displayName = $d08ef79370b62062$export$b04be29aa201d4f5.displayName;
|
|
9080
|
-
const separator$2 = cva(styles$
|
|
9126
|
+
const separator$2 = cva(styles$k.separator);
|
|
9081
9127
|
const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($d08ef79370b62062$export$1ff3c3f08ae963c0, { ref: ref, className: separator$2({ className }), ...props })));
|
|
9082
9128
|
DropdownMenuSeparator.displayName = $d08ef79370b62062$export$1ff3c3f08ae963c0.displayName;
|
|
9083
|
-
const menugroup = cva(styles$
|
|
9129
|
+
const menugroup = cva(styles$k.menugroup);
|
|
9084
9130
|
const DropdownMenuGroup = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($d08ef79370b62062$export$eb2fcfdbd7ba97d4, { ref: ref, className: menugroup({ className }), ...props })));
|
|
9085
9131
|
DropdownMenuGroup.displayName = $d08ef79370b62062$export$eb2fcfdbd7ba97d4.displayName;
|
|
9086
9132
|
const DropdownMenu = Object.assign($d08ef79370b62062$export$be92b6f5f03c0fe9, {
|
|
@@ -9092,63 +9138,130 @@ const DropdownMenu = Object.assign($d08ef79370b62062$export$be92b6f5f03c0fe9, {
|
|
|
9092
9138
|
Separator: DropdownMenuSeparator,
|
|
9093
9139
|
});
|
|
9094
9140
|
|
|
9095
|
-
var styles$
|
|
9141
|
+
var styles$j = {"emptystate":"emptystate-module_emptystate__5wz7s"};
|
|
9096
9142
|
|
|
9097
|
-
const emptystate = cva(styles$
|
|
9143
|
+
const emptystate = cva(styles$j.emptystate);
|
|
9098
9144
|
function EmptyState({ children, className, ...props }) {
|
|
9099
9145
|
return (jsxRuntimeExports.jsx("div", { className: emptystate({ className }), ...props, children: children }));
|
|
9100
9146
|
}
|
|
9101
9147
|
|
|
9102
|
-
var styles$
|
|
9148
|
+
var styles$i = {"headline":"headline-module_headline__0IEEf","headline-small":"headline-module_headline-small__nNKzH","headline-medium":"headline-module_headline-medium__ZA01P","headline-large":"headline-module_headline-large__jJ-9s"};
|
|
9103
9149
|
|
|
9104
|
-
const
|
|
9150
|
+
const headline = cva(styles$i.headline, {
|
|
9151
|
+
variants: {
|
|
9152
|
+
size: {
|
|
9153
|
+
small: styles$i["headline-small"],
|
|
9154
|
+
medium: styles$i["headline-medium"],
|
|
9155
|
+
large: styles$i["headline-large"],
|
|
9156
|
+
},
|
|
9157
|
+
},
|
|
9158
|
+
defaultVariants: {
|
|
9159
|
+
size: "small",
|
|
9160
|
+
},
|
|
9161
|
+
});
|
|
9162
|
+
function Headline({ children, className, size, ...props }) {
|
|
9163
|
+
return (jsxRuntimeExports.jsx("span", { className: headline({ size, className }), ...props, children: children }));
|
|
9164
|
+
}
|
|
9165
|
+
|
|
9166
|
+
var styles$h = {};
|
|
9167
|
+
|
|
9168
|
+
const getIcon = (status = "") => {
|
|
9169
|
+
switch (status) {
|
|
9170
|
+
case "400":
|
|
9171
|
+
return jsxRuntimeExports.jsx(FileTextIcon, { width: 80, height: 80 });
|
|
9172
|
+
case "NOT_FOUND":
|
|
9173
|
+
return jsxRuntimeExports.jsx(FileIcon, { width: 80, height: 80 });
|
|
9174
|
+
case "UNDER_MAINTENANCE":
|
|
9175
|
+
return jsxRuntimeExports.jsx(ExclamationTriangleIcon, { width: 80, height: 80 });
|
|
9176
|
+
case "SOMETHING_WENT_WRONG":
|
|
9177
|
+
return jsxRuntimeExports.jsx(ExclamationTriangleIcon, { width: 80, height: 80 });
|
|
9178
|
+
default:
|
|
9179
|
+
return jsxRuntimeExports.jsx(ExclamationTriangleIcon, { width: 80, height: 80 });
|
|
9180
|
+
}
|
|
9181
|
+
};
|
|
9182
|
+
const getMessage = (status = "System is facing some issue with your request, please try again later") => {
|
|
9183
|
+
switch (status) {
|
|
9184
|
+
case "400":
|
|
9185
|
+
return "Sorry, the page you are looking for doesn’t exist or has been moved.";
|
|
9186
|
+
case "NOT_FOUND":
|
|
9187
|
+
return "Sorry, the resource you are looking for doesn’t exist or has been deleted.";
|
|
9188
|
+
case "UNDER_MAINTENANCE":
|
|
9189
|
+
return "The page you are looking for is under maintenance and will be back soon.";
|
|
9190
|
+
case "SOMETHING_WENT_WRONG":
|
|
9191
|
+
return "System is facing some issue with your request, please try again later";
|
|
9192
|
+
default:
|
|
9193
|
+
return status;
|
|
9194
|
+
}
|
|
9195
|
+
};
|
|
9196
|
+
const getHeadline = (status = "Something gone wrong") => {
|
|
9197
|
+
switch (status) {
|
|
9198
|
+
case "400":
|
|
9199
|
+
return "404 error";
|
|
9200
|
+
case "NOT_FOUND":
|
|
9201
|
+
return "Resource not found";
|
|
9202
|
+
case "UNDER_MAINTENANCE":
|
|
9203
|
+
return "Under maintenance";
|
|
9204
|
+
case "SOMETHING_WENT_WRONG":
|
|
9205
|
+
return "Something gone wrong";
|
|
9206
|
+
default:
|
|
9207
|
+
return status;
|
|
9208
|
+
}
|
|
9209
|
+
};
|
|
9210
|
+
const errorstate = cva(styles$h.errorstate);
|
|
9211
|
+
function ErrorState({ children, className, status, icon, ...props }) {
|
|
9212
|
+
return (jsxRuntimeExports.jsx(Flex, { justify: "center", style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsxs(Flex, { direction: "column", gap: "large", align: "center", justify: "center", className: errorstate({ className }), style: { textAlign: "center", maxWidth: "400px" }, ...props, children: [icon ? icon : getIcon(status), jsxRuntimeExports.jsxs(Flex, { direction: "column", gap: "medium", children: [jsxRuntimeExports.jsx(Headline, { size: "large", children: getHeadline(status) }), jsxRuntimeExports.jsx(Body, { size: "large", children: getMessage(status) })] })] }) }));
|
|
9213
|
+
}
|
|
9214
|
+
|
|
9215
|
+
var styles$g = {"grid":"grid-module_grid__UQeew","align-start":"grid-module_align-start__Z7pvl","align-center":"grid-module_align-center__Rwlbt","align-end":"grid-module_align-end__nuXn1","align-stretch":"grid-module_align-stretch__6SP1w","align-baseline":"grid-module_align-baseline__ajEPv","justify-start":"grid-module_justify-start__hRYMn","justify-center":"grid-module_justify-center__zQ7Ym","justify-end":"grid-module_justify-end__92x6b","justify-between":"grid-module_justify-between__vQXi3","flow-row":"grid-module_flow-row__bI9DV","flow-column":"grid-module_flow-column__lsmAV","flow-dense":"grid-module_flow-dense__rAnOn","flow-rowDense":"grid-module_flow-rowDense__vvLwD","flow-columnDense":"grid-module_flow-columnDense__HnI7j","columns-1":"grid-module_columns-1__ISyE5","columns-2":"grid-module_columns-2__nAJXX","columns-3":"grid-module_columns-3__jSanv","columns-4":"grid-module_columns-4__TPrmV","gap-xs":"grid-module_gap-xs__jJXAg","gap-sm":"grid-module_gap-sm__lSOTF","gap-md":"grid-module_gap-md__d44tx","gap-lg":"grid-module_gap-lg__QxI9L","gap-xl":"grid-module_gap-xl__0VXE9","gapX-xs":"grid-module_gapX-xs__vCzot","gapX-sm":"grid-module_gapX-sm__3p68N","gapX-md":"grid-module_gapX-md__JPO3S","gapX-lg":"grid-module_gapX-lg__qFCBX","gapX-xl":"grid-module_gapX-xl__J141F","gapY-xs":"grid-module_gapY-xs__yx6Mm","gapY-sm":"grid-module_gapY-sm__uopNl","gapY-md":"grid-module_gapY-md__4XBeo","gapY-lg":"grid-module_gapY-lg__QrF6Z","gapY-xl":"grid-module_gapY-xl__Y6SHF"};
|
|
9216
|
+
|
|
9217
|
+
const grid = cva(styles$g.grid, {
|
|
9105
9218
|
variants: {
|
|
9106
9219
|
align: {
|
|
9107
|
-
start: styles$
|
|
9108
|
-
center: styles$
|
|
9109
|
-
end: styles$
|
|
9110
|
-
stretch: styles$
|
|
9111
|
-
baseline: styles$
|
|
9220
|
+
start: styles$g["align-start"],
|
|
9221
|
+
center: styles$g["align-center"],
|
|
9222
|
+
end: styles$g["align-end"],
|
|
9223
|
+
stretch: styles$g["align-stretch"],
|
|
9224
|
+
baseline: styles$g["align-baseline"],
|
|
9112
9225
|
},
|
|
9113
9226
|
justify: {
|
|
9114
|
-
start: styles$
|
|
9115
|
-
center: styles$
|
|
9116
|
-
end: styles$
|
|
9117
|
-
between: styles$
|
|
9227
|
+
start: styles$g["justify-start"],
|
|
9228
|
+
center: styles$g["justify-center"],
|
|
9229
|
+
end: styles$g["justify-end"],
|
|
9230
|
+
between: styles$g["justify-between"],
|
|
9118
9231
|
},
|
|
9119
9232
|
flow: {
|
|
9120
|
-
row: styles$
|
|
9121
|
-
column: styles$
|
|
9122
|
-
dense: styles$
|
|
9123
|
-
rowDense: styles$
|
|
9124
|
-
columnDense: styles$
|
|
9233
|
+
row: styles$g["flow-row"],
|
|
9234
|
+
column: styles$g["flow-column"],
|
|
9235
|
+
dense: styles$g["flow-dense"],
|
|
9236
|
+
rowDense: styles$g["flow-rowDense"],
|
|
9237
|
+
columnDense: styles$g["flow-columnDense"],
|
|
9125
9238
|
},
|
|
9126
9239
|
columns: {
|
|
9127
|
-
1: styles$
|
|
9128
|
-
2: styles$
|
|
9129
|
-
3: styles$
|
|
9130
|
-
4: styles$
|
|
9240
|
+
1: styles$g["columns-1"],
|
|
9241
|
+
2: styles$g["columns-2"],
|
|
9242
|
+
3: styles$g["columns-3"],
|
|
9243
|
+
4: styles$g["columns-4"],
|
|
9131
9244
|
},
|
|
9132
9245
|
gap: {
|
|
9133
|
-
"extra-small": styles$
|
|
9134
|
-
small: styles$
|
|
9135
|
-
medium: styles$
|
|
9136
|
-
large: styles$
|
|
9137
|
-
"extra-large": styles$
|
|
9246
|
+
"extra-small": styles$g["gap-xs"],
|
|
9247
|
+
small: styles$g["gap-sm"],
|
|
9248
|
+
medium: styles$g["gap-md"],
|
|
9249
|
+
large: styles$g["gap-lg"],
|
|
9250
|
+
"extra-large": styles$g["gap-xl"],
|
|
9138
9251
|
},
|
|
9139
9252
|
gapX: {
|
|
9140
|
-
"extra-small": styles$
|
|
9141
|
-
small: styles$
|
|
9142
|
-
medium: styles$
|
|
9143
|
-
large: styles$
|
|
9144
|
-
"extra-large": styles$
|
|
9253
|
+
"extra-small": styles$g["gapX-xs"],
|
|
9254
|
+
small: styles$g["gapX-sm"],
|
|
9255
|
+
medium: styles$g["gapX-md"],
|
|
9256
|
+
large: styles$g["gapX-lg"],
|
|
9257
|
+
"extra-large": styles$g["gapX-xl"],
|
|
9145
9258
|
},
|
|
9146
9259
|
gapY: {
|
|
9147
|
-
"extra-small": styles$
|
|
9148
|
-
small: styles$
|
|
9149
|
-
medium: styles$
|
|
9150
|
-
large: styles$
|
|
9151
|
-
"extra-large": styles$
|
|
9260
|
+
"extra-small": styles$g["gapY-xs"],
|
|
9261
|
+
small: styles$g["gapY-sm"],
|
|
9262
|
+
medium: styles$g["gapY-md"],
|
|
9263
|
+
large: styles$g["gapY-lg"],
|
|
9264
|
+
"extra-large": styles$g["gapY-xl"],
|
|
9152
9265
|
},
|
|
9153
9266
|
},
|
|
9154
9267
|
});
|
|
@@ -9165,24 +9278,6 @@ function Grid({ children, align, justify, flow, columns, gap, gapX, gapY, classN
|
|
|
9165
9278
|
}), ...props, children: children }));
|
|
9166
9279
|
}
|
|
9167
9280
|
|
|
9168
|
-
var styles$g = {"headline":"headline-module_headline__0IEEf","headline-small":"headline-module_headline-small__nNKzH","headline-medium":"headline-module_headline-medium__ZA01P","headline-large":"headline-module_headline-large__jJ-9s"};
|
|
9169
|
-
|
|
9170
|
-
const headline = cva(styles$g.headline, {
|
|
9171
|
-
variants: {
|
|
9172
|
-
size: {
|
|
9173
|
-
small: styles$g["headline-small"],
|
|
9174
|
-
medium: styles$g["headline-medium"],
|
|
9175
|
-
large: styles$g["headline-large"],
|
|
9176
|
-
},
|
|
9177
|
-
},
|
|
9178
|
-
defaultVariants: {
|
|
9179
|
-
size: "small",
|
|
9180
|
-
},
|
|
9181
|
-
});
|
|
9182
|
-
function Headline({ children, className, size, ...props }) {
|
|
9183
|
-
return (jsxRuntimeExports.jsx("span", { className: headline({ size, className }), ...props, children: children }));
|
|
9184
|
-
}
|
|
9185
|
-
|
|
9186
9281
|
var styles$f = {"image":"image-module_image__KDN-Q"};
|
|
9187
9282
|
|
|
9188
9283
|
const image = cva(styles$f.image);
|
|
@@ -11568,18 +11663,20 @@ function Text({ children, className, size, ...props }) {
|
|
|
11568
11663
|
return (jsxRuntimeExports.jsx("span", { className: text$1({ size, className }), ...props, children: children }));
|
|
11569
11664
|
}
|
|
11570
11665
|
|
|
11571
|
-
var styles$6 = {"sidebar":"sidebar-module_sidebar__NXH3O","
|
|
11666
|
+
var styles$6 = {"sidebar":"sidebar-module_sidebar__NXH3O","navigations":"sidebar-module_navigations__z5B4k","navigationgroup":"sidebar-module_navigationgroup__bBDHs","navigationgroupheading":"sidebar-module_navigationgroupheading__MkRud","navigationgroupcontent":"sidebar-module_navigationgroupcontent__q70dL","cell":"sidebar-module_cell__NHLSi","active":"sidebar-module_active__lfMUF","disabled":"sidebar-module_disabled__nYLU3","cellText":"sidebar-module_cellText__JV292","footer":"sidebar-module_footer__wLl-f"};
|
|
11572
11667
|
|
|
11573
|
-
const baseLogo = jsxRuntimeExports.jsx("img", { src: "./logo.svg", alt: "apsara", width: 16, height: 16 });
|
|
11574
11668
|
const SidebarRoot = ({ children }) => {
|
|
11575
11669
|
return (jsxRuntimeExports.jsx(Flex, { direction: "column", justify: "between", className: styles$6.sidebar, children: children }));
|
|
11576
11670
|
};
|
|
11577
|
-
const SidebarLogo = ({
|
|
11578
|
-
return (jsxRuntimeExports.jsxs(Flex, { align: "center", direction: "row", gap: "small", className: styles$6.logo,
|
|
11671
|
+
const SidebarLogo = ({ name = "Apsara", logo, onClick }) => {
|
|
11672
|
+
return (jsxRuntimeExports.jsxs(Flex, { align: "center", direction: "row", gap: "small", onClick: onClick, className: styles$6.logo, children: [jsxRuntimeExports.jsx(Flex, { gap: "small", children: logo }), jsxRuntimeExports.jsx(Text, { children: name })] }));
|
|
11579
11673
|
};
|
|
11580
11674
|
const SidebarNavigations = ({ children, ...props }) => {
|
|
11581
11675
|
return (jsxRuntimeExports.jsx(Flex, { direction: "column", className: styles$6.navigations, ...props, children: children }));
|
|
11582
11676
|
};
|
|
11677
|
+
const SidebarNavigationsGroup = ({ icon, name, children, ...props }) => {
|
|
11678
|
+
return (jsxRuntimeExports.jsxs(Flex, { direction: "column", className: styles$6.navigationgroup, ...props, children: [jsxRuntimeExports.jsxs(Flex, { className: styles$6.navigationgroupheading, children: [icon && icon, jsxRuntimeExports.jsx(Text, { size: 2, style: { color: "var(--foreground-muted)" }, children: name })] }), jsxRuntimeExports.jsx(Flex, { direction: "column", className: styles$6.navigationgroupcontent, children: children })] }));
|
|
11679
|
+
};
|
|
11583
11680
|
const cell$1 = cva(styles$6.cell, {
|
|
11584
11681
|
variants: {
|
|
11585
11682
|
active: {
|
|
@@ -11590,8 +11687,8 @@ const cell$1 = cva(styles$6.cell, {
|
|
|
11590
11687
|
},
|
|
11591
11688
|
},
|
|
11592
11689
|
});
|
|
11593
|
-
const SidebarNavigationCell = ({ leadingIcon, trailingIcon, active, disabled, children,
|
|
11594
|
-
return (jsxRuntimeExports.
|
|
11690
|
+
const SidebarNavigationCell = ({ leadingIcon, trailingIcon, active, disabled, children, asChild = false, ...props }) => {
|
|
11691
|
+
return (jsxRuntimeExports.jsx(Flex, { className: cell$1({ active, disabled }), ...props, children: asChild ? (children) : (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs(Flex, { gap: "small", children: [leadingIcon, jsxRuntimeExports.jsx(Text, { className: styles$6.cellText, children: children })] }), trailingIcon] })) }));
|
|
11595
11692
|
};
|
|
11596
11693
|
const SidebarFooter = ({ children, action }) => {
|
|
11597
11694
|
return (jsxRuntimeExports.jsxs(Flex, { className: styles$6.footer, gap: "small", justify: "between", children: [jsxRuntimeExports.jsx(Text, { children: children }), action] }));
|
|
@@ -11599,6 +11696,7 @@ const SidebarFooter = ({ children, action }) => {
|
|
|
11599
11696
|
const Sidebar = Object.assign(SidebarRoot, {
|
|
11600
11697
|
Logo: SidebarLogo,
|
|
11601
11698
|
Navigations: SidebarNavigations,
|
|
11699
|
+
NavigationGroup: SidebarNavigationsGroup,
|
|
11602
11700
|
NavigationCell: SidebarNavigationCell,
|
|
11603
11701
|
Footer: SidebarFooter,
|
|
11604
11702
|
});
|
|
@@ -15205,7 +15303,7 @@ function DataTableFilterOptions({ children, ...props }) {
|
|
|
15205
15303
|
})] })) : null] }));
|
|
15206
15304
|
}
|
|
15207
15305
|
|
|
15208
|
-
var styles$3 = {"textfield":"textfield-module_textfield__u4AGg","textfield-sm":"textfield-module_textfield-sm__OKPic","textfield-md":"textfield-module_textfield-md__e2ayW","textfield-invlid":"textfield-module_textfield-invlid__zo9MF","textfield-valid":"textfield-module_textfield-valid__6rMM9"};
|
|
15306
|
+
var styles$3 = {"textfield":"textfield-module_textfield__u4AGg","textfield-sm":"textfield-module_textfield-sm__OKPic","textfield-md":"textfield-module_textfield-md__e2ayW","textfield-invlid":"textfield-module_textfield-invlid__zo9MF","textfield-valid":"textfield-module_textfield-valid__6rMM9","textfield-leading":"textfield-module_textfield-leading__AE-ld"};
|
|
15209
15307
|
|
|
15210
15308
|
const textfield = cva(styles$3.textfield, {
|
|
15211
15309
|
variants: {
|
|
@@ -15217,13 +15315,16 @@ const textfield = cva(styles$3.textfield, {
|
|
|
15217
15315
|
invalid: styles$3["textfield-invalid"],
|
|
15218
15316
|
valid: styles$3["textfield-valid"],
|
|
15219
15317
|
},
|
|
15318
|
+
leading: {
|
|
15319
|
+
true: styles$3["textfield-leading"],
|
|
15320
|
+
},
|
|
15220
15321
|
},
|
|
15221
15322
|
defaultVariants: {
|
|
15222
15323
|
size: "small",
|
|
15223
15324
|
},
|
|
15224
15325
|
});
|
|
15225
|
-
const TextField = ({ className, src, size, state, style, ...props }) => {
|
|
15226
|
-
return jsxRuntimeExports.jsx("input", { className: textfield({ size, state, className }), ...props });
|
|
15326
|
+
const TextField = ({ leading, className, src, size, state, style, ...props }) => {
|
|
15327
|
+
return (jsxRuntimeExports.jsxs(Flex, { align: "center", style: { position: "relative", width: "100%" }, children: [leading ? (jsxRuntimeExports.jsx(Flex, { style: { position: "absolute", left: "8px" }, children: leading })) : null, jsxRuntimeExports.jsx("input", { className: cx(textfield({ size, state, className, leading })), style: leading ? { paddingLeft: "32px" } : {}, ...props })] }));
|
|
15227
15328
|
};
|
|
15228
15329
|
TextField.displayName = "TextField";
|
|
15229
15330
|
|
|
@@ -15285,7 +15386,11 @@ function DataTableFooter({ children, }) {
|
|
|
15285
15386
|
|
|
15286
15387
|
function DataTableGloabalSearch(props) {
|
|
15287
15388
|
const { table, globalFilter, onGlobalFilterChange } = useTable();
|
|
15288
|
-
return (jsxRuntimeExports.jsx(TextField
|
|
15389
|
+
return (jsxRuntimeExports.jsx(TextField
|
|
15390
|
+
// @ts-ignore
|
|
15391
|
+
, {
|
|
15392
|
+
// @ts-ignore
|
|
15393
|
+
leading: jsxRuntimeExports.jsx(MagnifyingGlassIcon, {}), placeholder: "Filter tasks...", value: globalFilter ?? "", onChange: (event) => onGlobalFilterChange(String(event.target.value)), ...props }));
|
|
15289
15394
|
}
|
|
15290
15395
|
|
|
15291
15396
|
function DataTableToolbar({ children, ...props }) {
|
|
@@ -15410,13 +15515,17 @@ function DataTableRoot({ columns, data, emptyState, children, parentStyle, ...pr
|
|
|
15410
15515
|
onGlobalFilterChange: setGlobalFilter,
|
|
15411
15516
|
onChange: () => ({}),
|
|
15412
15517
|
}, children: [jsxRuntimeExports.jsxs(Flex, { direction: "column", className: styles$4.datatable, children: [header, jsxRuntimeExports.jsxs(Flex, { style: parentStyle, children: [jsxRuntimeExports.jsxs(Table, { ...props, children: [jsxRuntimeExports.jsx(Table.Header, { children: table.getHeaderGroups().map((headerGroup) => (jsxRuntimeExports.jsx(Table.Row, { children: headerGroup.headers.map((header) => {
|
|
15413
|
-
return (jsxRuntimeExports.jsx(Table.Head, {
|
|
15518
|
+
return (jsxRuntimeExports.jsx(Table.Head, { style: {
|
|
15519
|
+
...(header.column.columnDef?.meta?.style ?? {}),
|
|
15520
|
+
}, children: jsxRuntimeExports.jsxs(Text, { className: styles$4.head, children: [header.isPlaceholder
|
|
15414
15521
|
? null
|
|
15415
15522
|
: flexRender(header.column.columnDef.header, header.getContext()), {
|
|
15416
15523
|
asc: jsxRuntimeExports.jsx(ArrowUpIcon, {}),
|
|
15417
15524
|
desc: jsxRuntimeExports.jsx(ArrowDownIcon, {}),
|
|
15418
15525
|
}[header.column.getIsSorted()] ?? null] }) }, header.id));
|
|
15419
|
-
}) }, headerGroup.id))) }), jsxRuntimeExports.jsx(Table.Body, { children: table.getRowModel().rows?.length ? (table.getRowModel().rows.map((row) => (jsxRuntimeExports.jsx(Table.Row, { "data-state": row.getIsSelected() && "selected", children: row.getVisibleCells().map((cell) => (jsxRuntimeExports.jsx(Table.Cell, {
|
|
15526
|
+
}) }, headerGroup.id))) }), jsxRuntimeExports.jsx(Table.Body, { children: table.getRowModel().rows?.length ? (table.getRowModel().rows.map((row) => (jsxRuntimeExports.jsx(Table.Row, { "data-state": row.getIsSelected() && "selected", children: row.getVisibleCells().map((cell) => (jsxRuntimeExports.jsx(Table.Cell, { style: {
|
|
15527
|
+
...(cell.column.columnDef?.meta?.style ?? {}),
|
|
15528
|
+
}, children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))) }, row.id)))) : (jsxRuntimeExports.jsx(Table.Row, { children: jsxRuntimeExports.jsx(Table.Cell, { colSpan: columns.length, children: emptyState || "No results." }) })) })] }), detail] })] }), footer] }) }));
|
|
15420
15529
|
}
|
|
15421
15530
|
const DataTable = Object.assign(DataTableRoot, {
|
|
15422
15531
|
Toolbar: DataTableToolbar,
|
|
@@ -15856,5 +15965,5 @@ function Title({ children, className, size, ...props }) {
|
|
|
15856
15965
|
return (jsxRuntimeExports.jsx("span", { className: title({ size, className }), ...props, children: children }));
|
|
15857
15966
|
}
|
|
15858
15967
|
|
|
15859
|
-
export { Avatar, badge$1 as Badge, Body, Box, Button, Checkbox, Command, Container, DataTable, Dialog, Display, DropdownMenu, EmptyState, Flex, Grid, Headline, Image, InputField, Label, Link, Popover, Radio, ScrollArea, Select, Separator, Sheet, Sidebar, Switch, Table, Tabs, Text, TextField, ThemeProvider, ThemeSwitcher, Title, useTable, useTheme };
|
|
15968
|
+
export { Avatar, badge$1 as Badge, Body, Box, Button, Checkbox, Command, Container, DataTable, Dialog, Display, DropdownMenu, EmptyState, ErrorState, Flex, Grid, Headline, Image, InputField, Label, Link, Popover, Radio, ScrollArea, Select, Separator, Sheet, Sidebar, Switch, Table, Tabs, Text, TextField, ThemeProvider, ThemeSwitcher, Title, useTable, useTheme };
|
|
15860
15969
|
//# sourceMappingURL=index.js.map
|