@tpc-mare/mare-ui-components-react 0.1.26 → 0.1.29
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/index.js +1 -1
- package/dist/badge/index.js +1 -1
- package/dist/banner/index.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/combobox/index.js +1 -1
- package/dist/confirm-dialog/index.js +1 -1
- package/dist/counter/index.js +1 -1
- package/dist/date-picker/index.js +1 -1
- package/dist/dialog/index.js +2 -2
- package/dist/divider/index.js +1 -1
- package/dist/drawer/index.js +1 -1
- package/dist/expandable-counter/index.js +1 -1
- package/dist/filter-chip/index.js +1 -1
- package/dist/filter-chip-dropdown-multiple/index.js +1 -1
- package/dist/filter-chip-dropdown-single/index.js +1 -1
- package/dist/floating-action-button/index.js +1 -1
- package/dist/image-item/index.js +1 -1
- package/dist/index/index.js +41 -41
- package/dist/input-number/index.js +1 -1
- package/dist/input-otp/index.js +1 -1
- package/dist/input-text/IconField.d.ts +3 -1
- package/dist/input-text/index.js +2 -2
- package/dist/keyboard-commands/index.d.ts +5 -0
- package/dist/keyboard-commands/index.js +825 -0
- package/dist/keyboard-commands/useKeyboardCommands.d.ts +27 -0
- package/dist/keyboard-commands/useKeyboardNavGrid.d.ts +19 -0
- package/dist/keyboard-commands/useKeyboardNavList.d.ts +17 -0
- package/dist/keyboard-commands/useKeyboardScope.d.ts +20 -0
- package/dist/message/index.js +1 -1
- package/dist/multi-select/index.js +1 -1
- package/dist/overlay-badge/index.js +1 -1
- package/dist/paginator/index.js +1 -1
- package/dist/password/index.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/search-field/index.js +1 -1
- package/dist/segmented-control/index.js +1 -1
- package/dist/select-field/index.js +1 -1
- package/dist/shared/{Avatar-D3QlO3Tz.js → Avatar-BpJDY1wm.js} +24 -22
- package/dist/shared/{Badge-WC6my4Aw.js → Badge-CGotZzok.js} +16 -9
- package/dist/shared/Banner-D4na_bM8.js +60 -0
- package/dist/shared/{Button-DwJ5RTfQ.js → Button-C2ULmKj3.js} +64 -57
- package/dist/shared/{Checkbox-BXnSN2vK.js → Checkbox-DCq3_MWz.js} +35 -33
- package/dist/shared/{Combobox-CcmWgRYZ.js → Combobox-DrkeDMW0.js} +48 -47
- package/dist/shared/{ConfirmDialog-DLHY-c70.js → ConfirmDialog-CjrWhDx8.js} +33 -27
- package/dist/shared/{Counter-DjIoe4h3.js → Counter-0siKQRKc.js} +42 -41
- package/dist/shared/{DatePicker-CwAISvNc.js → DatePicker-DhIWE0V_.js} +246 -240
- package/dist/shared/{DialogFooter-DyltZzK-.js → DialogFooter-CDlh11Gy.js} +34 -32
- package/dist/shared/{DialogHeader-M5Bfyxos.js → DialogHeader-PMBgMjsb.js} +2 -2
- package/dist/shared/{Divider-UgKI7dtK.js → Divider-CSQOHeMo.js} +16 -14
- package/dist/shared/{DrawerFooter-B9-Vrgd3.js → DrawerFooter-Bb-X7keE.js} +62 -54
- package/dist/shared/{ExpandableCounter-DZxbdqRa.js → ExpandableCounter-pPJIrd6L.js} +2 -2
- package/dist/shared/{FilterChip-eECL3oO7.js → FilterChip-TpKF-4vP.js} +21 -20
- package/dist/shared/{FilterChipDropdownMultiple-D2eMYXyS.js → FilterChipDropdownMultiple-2mr_Z57i.js} +43 -42
- package/dist/shared/{FilterChipDropdownSingle-C7ahD-_3.js → FilterChipDropdownSingle-CLmWzX9q.js} +39 -38
- package/dist/shared/FloatingActionButton-BWB5Taeg.js +28 -0
- package/dist/shared/{HelperText-CVWWvLCI.js → HelperText-zmUym82m.js} +1 -1
- package/dist/shared/IconField-CqKydKep.js +81 -0
- package/dist/shared/ImageItem-CL2VGEha.js +19 -0
- package/dist/shared/InputNumber-nxus9h5s.js +64 -0
- package/dist/shared/{InputOtp-CUXXVP2E.js → InputOtp-BxBc6Vhs.js} +16 -15
- package/dist/shared/InputText.types-KhlkzHMw-BtRY371_.js +4 -0
- package/dist/shared/Message-CQUdM9rR.js +81 -0
- package/dist/shared/{MultiSelect-Dowp0_FX.js → MultiSelect-DlaYWcPo.js} +60 -59
- package/dist/shared/{OverlayBadge-DLskqll7.js → OverlayBadge-Dkosm3Il.js} +1 -1
- package/dist/shared/{Paginator-DxZdCXSC.js → Paginator-QTDpAJ-N.js} +2 -2
- package/dist/shared/Password-D4PRaleH.js +97 -0
- package/dist/shared/{RadioGroup-lw27DCoV.js → RadioGroup-B8CXU8-l.js} +44 -38
- package/dist/shared/{SearchField-DjJHDaR4.js → SearchField-DIsFhJ22.js} +1 -1
- package/dist/shared/{SegmentedControl-Ct5ZLXpN.js → SegmentedControl-BfE3jNM6.js} +35 -33
- package/dist/shared/{SelectField-B-g52vHx.js → SelectField-CcnbnPEi.js} +30 -29
- package/dist/shared/Skeleton-DpWtYSz4.js +30 -0
- package/dist/shared/{Slider-CXFkperZ.js → Slider-Cl9PyH2q.js} +28 -22
- package/dist/shared/Snackbar-3BxmqK8x.js +105 -0
- package/dist/shared/{Stepper-By8M5bs0.js → Stepper-DrKKSn_j.js} +42 -37
- package/dist/shared/{Switch-DNCn0xjb.js → Switch-B5DSQLFL.js} +31 -29
- package/dist/shared/{Tabs-BqIorZYD.js → Tabs-DuufYBV2.js} +19 -17
- package/dist/shared/{Tag-BtbmgIwL.js → Tag-uIK_GPrs.js} +24 -15
- package/dist/shared/{TagChip-Bs7srjIL.js → TagChip-CP3aX2_G.js} +28 -26
- package/dist/shared/Textarea-DHJIWBRM.js +42 -0
- package/dist/shared/{field-layout-D34MpDMB.js → field-layout-o6bDLvVU.js} +6 -6
- package/dist/shared/index-ByQ37VXf.js +6 -0
- package/dist/skeleton/index.js +1 -1
- package/dist/slider/index.js +1 -1
- package/dist/snackbar/index.js +1 -1
- package/dist/stepper/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tag-chip/index.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/utilities-standalone.css +1 -1
- package/package.json +1 -1
- package/dist/shared/Banner-C4wLe6N0.js +0 -52
- package/dist/shared/FloatingActionButton-D4FK6uSs.js +0 -19
- package/dist/shared/IconField-Dh6j6SL1.js +0 -78
- package/dist/shared/ImageItem-BBy5fOl3.js +0 -17
- package/dist/shared/InputNumber-D48wsE-o.js +0 -62
- package/dist/shared/Message-BNsFuQU1.js +0 -70
- package/dist/shared/Password-BMKy8dAy.js +0 -95
- package/dist/shared/Skeleton-CAjoF-T2.js +0 -29
- package/dist/shared/Snackbar-CjTqCOaV.js +0 -100
- package/dist/shared/Textarea-iJhYTZos.js +0 -40
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { Dialog as r } from "@ark-ui/react/dialog";
|
|
3
|
-
import { Portal as
|
|
4
|
-
|
|
3
|
+
import { Portal as w } from "@ark-ui/react/portal";
|
|
4
|
+
import { o as h } from "./index-ByQ37VXf.js";
|
|
5
|
+
const _ = (e) => `
|
|
5
6
|
mare:fixed mare:inset-0 mare:z-40
|
|
6
7
|
${e ?? "mare:bg-overlay"}
|
|
7
8
|
mare:ark-open:[animation:mare-dialog-backdrop-enter_300ms_ease-out]
|
|
8
9
|
mare:ark-closed:[animation:mare-dialog-backdrop-exit_200ms_ease-in]
|
|
9
|
-
`,
|
|
10
|
+
`, k = `
|
|
10
11
|
mare:fixed mare:inset-0 mare:z-50
|
|
11
12
|
mare:flex mare:items-center mare:justify-center
|
|
12
13
|
mare:overflow-y-auto mare:px-0 mare:sm:px-10
|
|
13
|
-
`,
|
|
14
|
+
`, $ = {
|
|
14
15
|
small: "mare:sm:w-[28rem] mare:sm:max-w-[28rem]",
|
|
15
16
|
medium: "mare:sm:w-[42rem] mare:sm:max-w-[42rem]",
|
|
16
17
|
large: "mare:sm:w-[64rem] mare:sm:max-w-[64rem]"
|
|
17
|
-
},
|
|
18
|
+
}, y = (e) => `
|
|
18
19
|
mare:group/dialog mare:flex mare:flex-col
|
|
19
|
-
mare:w-full mare:max-w-full mare:max-w-screen ${
|
|
20
|
+
mare:w-full mare:max-w-full mare:max-w-screen ${$[e.size]}
|
|
20
21
|
mare:bg-default mare:text-default
|
|
21
22
|
mare:shadow-[0px_10px_15px_-3px_rgba(0,0,0,0.10),0px_4px_6px_-2px_rgba(0,0,0,0.05)]
|
|
22
23
|
mare:fixed mare:sm:relative mare:bottom-0 mare:sm:bottom-auto mare:left-0 mare:sm:left-auto mare:right-0 mare:sm:right-auto
|
|
@@ -28,59 +29,60 @@ const w = (e) => `
|
|
|
28
29
|
mare:sm:ark-open:[animation:mare-dialog-enter-desktop_300ms_ease-out]
|
|
29
30
|
mare:sm:ark-closed:[animation:mare-dialog-exit-desktop_200ms_ease-in]
|
|
30
31
|
${e.fullScreen ? "mare:top-0 mare:rounded-t-none! mare:sm:rounded-tpc-dialog! mare:sm:top-auto mare:max-h-full mare:sm:max-h-[calc(100%-80px)]" : ""}
|
|
31
|
-
`,
|
|
32
|
+
`, v = (e) => `
|
|
32
33
|
mare:overflow-y-auto mare:px-6 mare:pb-6
|
|
33
34
|
${e ? "mare:grow" : ""}
|
|
34
|
-
`,
|
|
35
|
+
`, C = (e) => `
|
|
35
36
|
mare:flex mare:w-full mare:items-center mare:justify-between mare:shrink-0
|
|
36
37
|
mare:h-14 mare:sm:h-16 mare:px-6
|
|
37
38
|
${e ? "mare:border-b mare:border-default" : ""}
|
|
38
|
-
`,
|
|
39
|
+
`, P = "mare:-ml-1.5", R = "mare:-mr-1.5", B = (e) => `
|
|
39
40
|
mare:grow mare:w-full mare:truncate mare:text-center
|
|
40
41
|
mare:tpc-typography-label-m mare:text-default
|
|
41
42
|
${e.hasRightIcon ? "" : "mare:mr-6.5"}
|
|
42
43
|
${e.hasLeftIcon ? "" : "mare:ml-6.5"}
|
|
43
|
-
`,
|
|
44
|
+
`, z = (e) => `
|
|
44
45
|
mare:flex mare:flex-col-reverse mare:gap-3 mare:justify-end mare:w-full
|
|
45
46
|
mare:px-6 mare:pb-4 mare:sm:pb-6
|
|
46
47
|
${e.layout === "row" ? "mare:sm:flex-row" : ""}
|
|
47
48
|
${e.border ? "mare:pt-3 mare:sm:pt-6 mare:border-t mare:border-t-default" : "mare:pt-0"}
|
|
48
|
-
|
|
49
|
-
function
|
|
49
|
+
`, j = ["small", "medium", "large"];
|
|
50
|
+
function E({
|
|
50
51
|
open: e,
|
|
51
52
|
onOpenChange: m,
|
|
52
|
-
size:
|
|
53
|
-
fullScreen:
|
|
53
|
+
size: o = "medium",
|
|
54
|
+
fullScreen: t = !1,
|
|
54
55
|
modal: s = !0,
|
|
55
56
|
closeOnEscape: i = !0,
|
|
56
57
|
dismissableMask: n = !0,
|
|
57
58
|
maskColor: d,
|
|
58
|
-
portalContainer:
|
|
59
|
-
header:
|
|
59
|
+
portalContainer: u,
|
|
60
|
+
header: p,
|
|
60
61
|
footer: x,
|
|
61
62
|
children: c,
|
|
62
63
|
"aria-label": f
|
|
63
64
|
}) {
|
|
65
|
+
const g = h(o, j, "medium");
|
|
64
66
|
return /* @__PURE__ */ a(
|
|
65
67
|
r.Root,
|
|
66
68
|
{
|
|
67
69
|
open: e,
|
|
68
|
-
onOpenChange: (
|
|
70
|
+
onOpenChange: (b) => m?.(b.open),
|
|
69
71
|
modal: s,
|
|
70
72
|
closeOnEscape: i,
|
|
71
73
|
closeOnInteractOutside: n,
|
|
72
74
|
"aria-label": f,
|
|
73
75
|
lazyMount: !0,
|
|
74
76
|
unmountOnExit: !0,
|
|
75
|
-
children: /* @__PURE__ */ l(
|
|
76
|
-
/* @__PURE__ */ a(r.Backdrop, { className:
|
|
77
|
-
/* @__PURE__ */ a(r.Positioner, { className:
|
|
77
|
+
children: /* @__PURE__ */ l(w, { container: u, children: [
|
|
78
|
+
/* @__PURE__ */ a(r.Backdrop, { className: _(d) }),
|
|
79
|
+
/* @__PURE__ */ a(r.Positioner, { className: k, children: /* @__PURE__ */ l(
|
|
78
80
|
r.Content,
|
|
79
81
|
{
|
|
80
|
-
className:
|
|
82
|
+
className: y({ size: g, fullScreen: t }),
|
|
81
83
|
children: [
|
|
82
|
-
|
|
83
|
-
/* @__PURE__ */ a("div", { className:
|
|
84
|
+
p,
|
|
85
|
+
/* @__PURE__ */ a("div", { className: v(t), children: c }),
|
|
84
86
|
x
|
|
85
87
|
]
|
|
86
88
|
}
|
|
@@ -89,18 +91,18 @@ function C({
|
|
|
89
91
|
}
|
|
90
92
|
);
|
|
91
93
|
}
|
|
92
|
-
function
|
|
94
|
+
function F({
|
|
93
95
|
layout: e = "row",
|
|
94
96
|
border: m = !1,
|
|
95
|
-
children:
|
|
97
|
+
children: o
|
|
96
98
|
}) {
|
|
97
|
-
return /* @__PURE__ */ a("div", { className:
|
|
99
|
+
return /* @__PURE__ */ a("div", { className: z({ layout: e, border: m }), children: o });
|
|
98
100
|
}
|
|
99
101
|
export {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
E as D,
|
|
103
|
+
F as a,
|
|
104
|
+
B as i,
|
|
105
|
+
C as l,
|
|
106
|
+
R as n,
|
|
107
|
+
P as s
|
|
106
108
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as t, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { Dialog as l } from "@ark-ui/react/dialog";
|
|
3
|
-
import {
|
|
4
|
-
import { B as r } from "./Button-
|
|
3
|
+
import { s as h, i as o, n as d, l as u } from "./DialogFooter-CDlh11Gy.js";
|
|
4
|
+
import { B as r } from "./Button-C2ULmKj3.js";
|
|
5
5
|
import { I as p } from "./IconX-CpPADKjZ.js";
|
|
6
6
|
function y({
|
|
7
7
|
title: e,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
import { o as l } from "./index-ByQ37VXf.js";
|
|
3
|
+
const i = ["horizontal", "vertical"], m = `
|
|
3
4
|
mare:data-layout-horizontal:flex mare:data-layout-horizontal:w-full mare:data-layout-horizontal:relative
|
|
4
5
|
mare:data-layout-horizontal:items-center mare:data-layout-horizontal:my-0 mare:data-layout-horizontal:mx-0 mare:data-layout-horizontal:py-0
|
|
5
6
|
mare:data-layout-horizontal:before:absolute mare:data-layout-horizontal:before:block mare:data-layout-horizontal:before:top-1/2
|
|
@@ -11,33 +12,34 @@ const o = `
|
|
|
11
12
|
mare:data-layout-vertical:before:absolute mare:data-layout-vertical:before:block mare:data-layout-vertical:before:top-0
|
|
12
13
|
mare:data-layout-vertical:before:start-1/2 mare:data-layout-vertical:before:h-full
|
|
13
14
|
mare:data-layout-vertical:before:border-s mare:data-layout-vertical:before:border-default
|
|
14
|
-
`,
|
|
15
|
+
`, u = `
|
|
15
16
|
mare:z-10 mare:bg-default mare:tpc-typography-body-xs mare:text-weak
|
|
16
17
|
mare:data-layout-horizontal:py-0 mare:data-layout-horizontal:px-4
|
|
17
18
|
mare:data-layout-vertical:py-4 mare:data-layout-vertical:px-0
|
|
18
19
|
`;
|
|
19
|
-
function
|
|
20
|
-
layout:
|
|
21
|
-
children:
|
|
22
|
-
...
|
|
20
|
+
function c({
|
|
21
|
+
layout: r = "horizontal",
|
|
22
|
+
children: a,
|
|
23
|
+
...o
|
|
23
24
|
}) {
|
|
25
|
+
const t = l(r, i, "horizontal");
|
|
24
26
|
return /* @__PURE__ */ e(
|
|
25
27
|
"div",
|
|
26
28
|
{
|
|
27
|
-
className:
|
|
28
|
-
"data-layout":
|
|
29
|
-
...
|
|
30
|
-
children:
|
|
29
|
+
className: m,
|
|
30
|
+
"data-layout": t,
|
|
31
|
+
...o,
|
|
32
|
+
children: a && /* @__PURE__ */ e(
|
|
31
33
|
"div",
|
|
32
34
|
{
|
|
33
|
-
className:
|
|
34
|
-
"data-layout":
|
|
35
|
-
children:
|
|
35
|
+
className: u,
|
|
36
|
+
"data-layout": t,
|
|
37
|
+
children: a
|
|
36
38
|
}
|
|
37
39
|
)
|
|
38
40
|
}
|
|
39
41
|
);
|
|
40
42
|
}
|
|
41
43
|
export {
|
|
42
|
-
|
|
44
|
+
c as D
|
|
43
45
|
};
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import { Dialog as t } from "@ark-ui/react/dialog";
|
|
3
|
-
import { Portal as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
3
|
+
import { Portal as y } from "@ark-ui/react/portal";
|
|
4
|
+
import { o as _ } from "./index-ByQ37VXf.js";
|
|
5
|
+
import { B as u } from "./Button-C2ULmKj3.js";
|
|
6
|
+
import { I as $ } from "./IconX-CpPADKjZ.js";
|
|
7
|
+
const k = [
|
|
8
|
+
"left",
|
|
9
|
+
"right",
|
|
10
|
+
"top",
|
|
11
|
+
"bottom",
|
|
12
|
+
"full"
|
|
13
|
+
], v = (e) => {
|
|
7
14
|
switch (e) {
|
|
8
15
|
case "left":
|
|
9
16
|
return "translateX(-100%)";
|
|
@@ -15,93 +22,94 @@ const _ = (e) => {
|
|
|
15
22
|
case "full":
|
|
16
23
|
return "translateY(100%)";
|
|
17
24
|
}
|
|
18
|
-
},
|
|
25
|
+
}, N = (e) => `
|
|
19
26
|
mare:fixed mare:inset-0 mare:z-40
|
|
20
27
|
${e ?? "mare:bg-overlay"}
|
|
21
28
|
mare:ark-open:[animation:mare-dialog-backdrop-enter_300ms_ease-out]
|
|
22
29
|
mare:ark-closed:[animation:mare-dialog-backdrop-exit_200ms_ease-in]
|
|
23
|
-
`,
|
|
30
|
+
`, j = {
|
|
24
31
|
left: "mare:justify-start",
|
|
25
32
|
right: "mare:justify-end",
|
|
26
33
|
top: "mare:flex-col mare:justify-start",
|
|
27
34
|
bottom: "mare:flex-col mare:justify-end",
|
|
28
35
|
full: ""
|
|
29
|
-
},
|
|
36
|
+
}, C = (e) => `
|
|
30
37
|
mare:fixed mare:inset-0 mare:z-50 mare:flex
|
|
31
|
-
${
|
|
32
|
-
`,
|
|
38
|
+
${j[e]}
|
|
39
|
+
`, O = {
|
|
33
40
|
left: "mare:w-screen mare:md:w-120",
|
|
34
41
|
right: "mare:w-screen mare:md:w-120",
|
|
35
42
|
top: "mare:border-b mare:border-default",
|
|
36
43
|
bottom: "mare:border-t mare:border-default",
|
|
37
44
|
full: "mare:w-screen mare:h-screen mare:max-h-full"
|
|
38
|
-
},
|
|
45
|
+
}, z = (e) => `
|
|
39
46
|
mare:group/drawer mare:flex mare:flex-col
|
|
40
47
|
mare:bg-default mare:text-default
|
|
41
48
|
mare:outline-none
|
|
42
49
|
${e.shadow ? "mare:shadow-[0px_10px_15px_-3px_rgba(0,0,0,0.10),0px_4px_6px_-2px_rgba(0,0,0,0.05)]" : ""}
|
|
43
|
-
${
|
|
50
|
+
${O[e.position]}
|
|
44
51
|
mare:ark-open:[animation:mare-drawer-enter_300ms_ease-out]
|
|
45
52
|
mare:ark-closed:[animation:mare-drawer-exit_200ms_ease-in]
|
|
46
|
-
`,
|
|
53
|
+
`, D = (e) => `
|
|
47
54
|
mare:grow mare:overflow-y-auto mare:px-6 mare:pb-6
|
|
48
55
|
${e ? "mare:pt-6" : "mare:pt-0"}
|
|
49
|
-
`,
|
|
56
|
+
`, R = (e) => `
|
|
50
57
|
mare:flex mare:w-full mare:items-center mare:justify-between mare:shrink-0
|
|
51
58
|
mare:px-6
|
|
52
59
|
${e.compact ? "mare:h-auto mare:py-4" : "mare:h-14 mare:md:h-16"}
|
|
53
60
|
${e.border ? "mare:border-b mare:border-default" : ""}
|
|
54
|
-
`,
|
|
61
|
+
`, B = "mare:-ml-1.5", I = "mare:-mr-1.5", d = (e) => `
|
|
55
62
|
mare:grow mare:w-full mare:truncate mare:text-center
|
|
56
63
|
mare:tpc-typography-label-m mare:text-default
|
|
57
64
|
${e.hasRightIcon ? "" : "mare:mr-6.5"}
|
|
58
65
|
${e.hasLeftIcon ? "" : "mare:ml-6.5"}
|
|
59
|
-
`,
|
|
66
|
+
`, L = (e) => `
|
|
60
67
|
mare:flex mare:flex-col-reverse mare:sm:flex-row mare:justify-end
|
|
61
68
|
mare:gap-3 mare:sm:gap-4 mare:w-full
|
|
62
69
|
mare:*:w-full mare:sm:*:flex-1
|
|
63
70
|
mare:px-6 mare:pb-4 mare:sm:pb-6
|
|
64
71
|
${e ? "mare:pt-3 mare:sm:pt-6 mare:border-t mare:border-t-default" : "mare:pt-0"}
|
|
65
72
|
`;
|
|
66
|
-
function
|
|
73
|
+
function H({
|
|
67
74
|
open: e,
|
|
68
75
|
onOpenChange: a,
|
|
69
76
|
position: m = "left",
|
|
70
|
-
modal:
|
|
77
|
+
modal: o = !0,
|
|
71
78
|
closeOnEscape: s = !0,
|
|
72
|
-
dismissableMask:
|
|
79
|
+
dismissableMask: l = !0,
|
|
73
80
|
maskColor: n,
|
|
74
|
-
shadow:
|
|
75
|
-
portalContainer:
|
|
76
|
-
header:
|
|
77
|
-
footer:
|
|
78
|
-
children:
|
|
79
|
-
"aria-label":
|
|
81
|
+
shadow: p = !0,
|
|
82
|
+
portalContainer: x,
|
|
83
|
+
header: f,
|
|
84
|
+
footer: h,
|
|
85
|
+
children: b,
|
|
86
|
+
"aria-label": w
|
|
80
87
|
}) {
|
|
88
|
+
const i = _(m, k, "left");
|
|
81
89
|
return /* @__PURE__ */ r(
|
|
82
90
|
t.Root,
|
|
83
91
|
{
|
|
84
92
|
open: e,
|
|
85
|
-
onOpenChange: (
|
|
86
|
-
modal:
|
|
93
|
+
onOpenChange: (g) => a?.(g.open),
|
|
94
|
+
modal: o,
|
|
87
95
|
closeOnEscape: s,
|
|
88
|
-
closeOnInteractOutside:
|
|
89
|
-
"aria-label":
|
|
96
|
+
closeOnInteractOutside: l,
|
|
97
|
+
"aria-label": w,
|
|
90
98
|
lazyMount: !0,
|
|
91
99
|
unmountOnExit: !0,
|
|
92
|
-
children: /* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */ r(t.Backdrop, { className:
|
|
94
|
-
/* @__PURE__ */ r(t.Positioner, { className:
|
|
100
|
+
children: /* @__PURE__ */ c(y, { container: x, children: [
|
|
101
|
+
/* @__PURE__ */ r(t.Backdrop, { className: N(n) }),
|
|
102
|
+
/* @__PURE__ */ r(t.Positioner, { className: C(i), children: /* @__PURE__ */ c(
|
|
95
103
|
t.Content,
|
|
96
104
|
{
|
|
97
|
-
className:
|
|
105
|
+
className: z({ position: i, shadow: p }),
|
|
98
106
|
style: {
|
|
99
|
-
"--mare-drawer-from":
|
|
107
|
+
"--mare-drawer-from": v(i)
|
|
100
108
|
},
|
|
101
109
|
children: [
|
|
102
|
-
|
|
103
|
-
/* @__PURE__ */ r("div", { className:
|
|
104
|
-
|
|
110
|
+
f,
|
|
111
|
+
/* @__PURE__ */ r("div", { className: D(!!f), children: b }),
|
|
112
|
+
h
|
|
105
113
|
]
|
|
106
114
|
}
|
|
107
115
|
) })
|
|
@@ -109,30 +117,30 @@ function T({
|
|
|
109
117
|
}
|
|
110
118
|
);
|
|
111
119
|
}
|
|
112
|
-
function
|
|
120
|
+
function M({
|
|
113
121
|
title: e,
|
|
114
|
-
leftIcon: a = /* @__PURE__ */ r(
|
|
122
|
+
leftIcon: a = /* @__PURE__ */ r($, {}),
|
|
115
123
|
rightIcon: m,
|
|
116
|
-
onLeftIconClick:
|
|
124
|
+
onLeftIconClick: o,
|
|
117
125
|
onRightIconClick: s,
|
|
118
|
-
border:
|
|
126
|
+
border: l = !1,
|
|
119
127
|
compact: n = !1
|
|
120
128
|
}) {
|
|
121
|
-
return /* @__PURE__ */
|
|
122
|
-
a ? /* @__PURE__ */ r("div", { className:
|
|
123
|
-
|
|
129
|
+
return /* @__PURE__ */ c("div", { className: R({ border: l, compact: n }), children: [
|
|
130
|
+
a ? /* @__PURE__ */ r("div", { className: B, children: /* @__PURE__ */ r(t.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ r(
|
|
131
|
+
u,
|
|
124
132
|
{
|
|
125
133
|
severity: "ghost",
|
|
126
134
|
iconOnly: !0,
|
|
127
135
|
size: "xsmall",
|
|
128
136
|
icon: a,
|
|
129
|
-
onClick:
|
|
137
|
+
onClick: o
|
|
130
138
|
}
|
|
131
139
|
) }) }) : null,
|
|
132
140
|
e ? /* @__PURE__ */ r(
|
|
133
141
|
t.Title,
|
|
134
142
|
{
|
|
135
|
-
className:
|
|
143
|
+
className: d({
|
|
136
144
|
hasLeftIcon: !!a,
|
|
137
145
|
hasRightIcon: !!m
|
|
138
146
|
}),
|
|
@@ -141,14 +149,14 @@ function Y({
|
|
|
141
149
|
) : /* @__PURE__ */ r(
|
|
142
150
|
"span",
|
|
143
151
|
{
|
|
144
|
-
className:
|
|
152
|
+
className: d({
|
|
145
153
|
hasLeftIcon: !!a,
|
|
146
154
|
hasRightIcon: !!m
|
|
147
155
|
})
|
|
148
156
|
}
|
|
149
157
|
),
|
|
150
|
-
m ? /* @__PURE__ */ r("div", { className:
|
|
151
|
-
|
|
158
|
+
m ? /* @__PURE__ */ r("div", { className: I, children: /* @__PURE__ */ r(
|
|
159
|
+
u,
|
|
152
160
|
{
|
|
153
161
|
severity: "ghost",
|
|
154
162
|
iconOnly: !0,
|
|
@@ -159,14 +167,14 @@ function Y({
|
|
|
159
167
|
) }) : null
|
|
160
168
|
] });
|
|
161
169
|
}
|
|
162
|
-
function
|
|
170
|
+
function q({
|
|
163
171
|
border: e = !1,
|
|
164
172
|
children: a
|
|
165
173
|
}) {
|
|
166
|
-
return /* @__PURE__ */ r("div", { className:
|
|
174
|
+
return /* @__PURE__ */ r("div", { className: L(e), children: a });
|
|
167
175
|
}
|
|
168
176
|
export {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
177
|
+
H as D,
|
|
178
|
+
q as a,
|
|
179
|
+
M as b
|
|
172
180
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { B as p } from "./Button-
|
|
3
|
-
import { C as x, I as d } from "./Counter-
|
|
2
|
+
import { B as p } from "./Button-C2ULmKj3.js";
|
|
3
|
+
import { C as x, I as d } from "./Counter-0siKQRKc.js";
|
|
4
4
|
const m = `
|
|
5
5
|
mare:inline-flex mare:origin-left mare:[animation:mare-expandable-counter-enter_100ms_ease-out]
|
|
6
6
|
`, C = (e, a) => e > a;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useContext as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsxs as v, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as h } from "react";
|
|
3
|
+
import { o as x } from "./index-ByQ37VXf.js";
|
|
4
|
+
import { a as C } from "./FilterChipGroup-BzE-EQsA.js";
|
|
5
|
+
import { c as z } from "./createReactComponent-Cb6Pzf10.js";
|
|
6
|
+
import { I as y } from "./IconChevronDown-ev2ML7Ex.js";
|
|
7
|
+
const k = [["path", { d: "M6 15l6 -6l6 6", key: "svg-0" }]], N = z("outline", "chevron-up", "ChevronUp", k), F = ["medium", "large"], I = `
|
|
7
8
|
mare:group mare:relative mare:inline-flex mare:items-center mare:gap-1.5
|
|
8
9
|
mare:rounded-full mare:border mare:cursor-pointer mare:select-none
|
|
9
10
|
mare:tpc-typography-body-s mare:transition-colors mare:duration-150
|
|
@@ -21,8 +22,8 @@ const z = [["path", { d: "M6 15l6 -6l6 6", key: "svg-0" }]], y = x("outline", "c
|
|
|
21
22
|
|
|
22
23
|
mare:p-disabled:cursor-not-allowed mare:p-disabled:text-disabled mare:p-disabled:border-disabled-default
|
|
23
24
|
mare:p-disabled:bg-transparent mare:p-disabled:hover:bg-transparent
|
|
24
|
-
`,
|
|
25
|
-
function
|
|
25
|
+
`, j = "mare:truncate mare:px-0.5", G = "mare:flex mare:items-center mare:shrink-0 mare:[&>svg]:size-4 mare:cursor-pointer";
|
|
26
|
+
function $({
|
|
26
27
|
value: d,
|
|
27
28
|
size: c = "medium",
|
|
28
29
|
disabled: t = !1,
|
|
@@ -34,17 +35,17 @@ function M({
|
|
|
34
35
|
onToggleDropdown: b,
|
|
35
36
|
children: s
|
|
36
37
|
}) {
|
|
37
|
-
const
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
const g = x(c, F, "medium"), o = h(C), m = d ?? (typeof s == "string" ? s : ""), l = !!o && !e, i = e ? !1 : l ? o.isSelected(m) : u;
|
|
39
|
+
return /* @__PURE__ */ v(
|
|
39
40
|
"button",
|
|
40
41
|
{
|
|
41
42
|
type: "button",
|
|
42
|
-
className:
|
|
43
|
-
"data-size":
|
|
44
|
-
"data-selected":
|
|
43
|
+
className: I,
|
|
44
|
+
"data-size": g,
|
|
45
|
+
"data-selected": i ? "true" : void 0,
|
|
45
46
|
"data-disabled": t ? "true" : void 0,
|
|
46
47
|
disabled: t,
|
|
47
|
-
"aria-pressed": e ? void 0 :
|
|
48
|
+
"aria-pressed": e ? void 0 : i,
|
|
48
49
|
"aria-expanded": e ? r : void 0,
|
|
49
50
|
onClick: (n) => {
|
|
50
51
|
if (!t) {
|
|
@@ -52,20 +53,20 @@ function M({
|
|
|
52
53
|
f?.(!r), b?.(n, n.currentTarget);
|
|
53
54
|
return;
|
|
54
55
|
}
|
|
55
|
-
if (
|
|
56
|
-
|
|
56
|
+
if (l) {
|
|
57
|
+
o.toggle(m);
|
|
57
58
|
return;
|
|
58
59
|
}
|
|
59
|
-
p?.(!
|
|
60
|
+
p?.(!i);
|
|
60
61
|
}
|
|
61
62
|
},
|
|
62
63
|
children: [
|
|
63
|
-
/* @__PURE__ */ a("span", { className:
|
|
64
|
-
e && /* @__PURE__ */ a("span", { className:
|
|
64
|
+
/* @__PURE__ */ a("span", { className: j, children: s }),
|
|
65
|
+
e && /* @__PURE__ */ a("span", { className: G, children: r ? /* @__PURE__ */ a(N, { size: "1em" }) : /* @__PURE__ */ a(y, { size: "1em" }) })
|
|
65
66
|
]
|
|
66
67
|
}
|
|
67
68
|
);
|
|
68
69
|
}
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
+
$ as F
|
|
71
72
|
};
|