@tpc-mare/mare-ui-components-react 0.1.26 → 0.1.28

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