@tpc-mare/mare-ui-components-react 0.1.9 → 0.1.11

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 (45) hide show
  1. package/dist/accordion/index.js +1 -1
  2. package/dist/banner/index.js +1 -1
  3. package/dist/checkbox/index.js +1 -1
  4. package/dist/combobox/index.js +1 -1
  5. package/dist/confirm-dialog/ConfirmDialog.d.ts +2 -0
  6. package/dist/confirm-dialog/ConfirmDialog.types.d.ts +21 -0
  7. package/dist/confirm-dialog/index.d.ts +2 -0
  8. package/dist/confirm-dialog/index.js +4 -0
  9. package/dist/date-picker/index.js +1 -1
  10. package/dist/dialog/index.js +5 -4
  11. package/dist/drawer/index.js +1 -1
  12. package/dist/image-slider/index.js +1 -1
  13. package/dist/index/index.d.ts +4 -0
  14. package/dist/index/index.js +67 -62
  15. package/dist/paginator/index.js +1 -1
  16. package/dist/panel-menu/index.js +1 -1
  17. package/dist/password/index.js +1 -1
  18. package/dist/search-field/index.js +1 -1
  19. package/dist/select-field/index.js +1 -1
  20. package/dist/shared/{Accordion-CiSnCOHD.js → Accordion-Dhs7EeM6.js} +1 -1
  21. package/dist/shared/{Banner-GuoT4U9D.js → Banner-B41NQS5P.js} +1 -1
  22. package/dist/shared/{Checkbox-B6RWHWrC.js → Checkbox-B7vM1mxP.js} +1 -1
  23. package/dist/shared/{Combobox-DbY_pKve.js → Combobox-oSS0Rlbv.js} +1 -1
  24. package/dist/shared/ConfirmDialog-Bvk8KZ0M.js +79 -0
  25. package/dist/shared/{DatePicker-D9YdpbT1.js → DatePicker-GYH3uorm.js} +1 -1
  26. package/dist/shared/DialogFooter-DyltZzK-.js +106 -0
  27. package/dist/shared/DialogHeader-CZ5OrC8_.js +57 -0
  28. package/dist/shared/{DrawerFooter-BZTmEepg.js → DrawerFooter-OFrTFvy2.js} +1 -1
  29. package/dist/shared/{ImageSlider-CO34btjQ.js → ImageSlider-CdBVmAYC.js} +1 -1
  30. package/dist/shared/{Paginator-Bn8HJXCg.js → Paginator-BndcA6Ax.js} +2 -2
  31. package/dist/shared/{PanelMenu-Dq570xnF.js → PanelMenu-Bz-fg6px.js} +1 -1
  32. package/dist/shared/{Password-DMVUbmGP.js → Password-cqTK9OlT.js} +1 -1
  33. package/dist/shared/{SearchField-ifduhshF.js → SearchField-CgZV2Am-.js} +1 -1
  34. package/dist/shared/{SelectField-R01ijqFZ.js → SelectField-CGbdf8C2.js} +4 -4
  35. package/dist/shared/{Stepper-K59S7ztj.js → Stepper-BpKdB3ip.js} +1 -1
  36. package/dist/shared/TagChip-BNszVayi.js +69 -0
  37. package/dist/shared/{icons-CQQSG2_s.js → icons-BFOFrum4.js} +2 -2
  38. package/dist/stepper/index.js +1 -1
  39. package/dist/styles.css +1 -1
  40. package/dist/tag-chip/TagChip.d.ts +2 -0
  41. package/dist/tag-chip/TagChip.types.d.ts +21 -0
  42. package/dist/tag-chip/index.d.ts +2 -0
  43. package/dist/tag-chip/index.js +4 -0
  44. package/package.json +1 -1
  45. package/dist/shared/DialogFooter-AfXLN8ps.js +0 -154
@@ -1,4 +1,4 @@
1
- import { A as c } from "../shared/Accordion-CiSnCOHD.js";
1
+ import { A as c } from "../shared/Accordion-Dhs7EeM6.js";
2
2
  export {
3
3
  c as Accordion
4
4
  };
@@ -1,4 +1,4 @@
1
- import { B as e } from "../shared/Banner-GuoT4U9D.js";
1
+ import { B as e } from "../shared/Banner-B41NQS5P.js";
2
2
  export {
3
3
  e as Banner
4
4
  };
@@ -1,4 +1,4 @@
1
- import { C as r } from "../shared/Checkbox-B6RWHWrC.js";
1
+ import { C as r } from "../shared/Checkbox-B7vM1mxP.js";
2
2
  export {
3
3
  r as Checkbox
4
4
  };
@@ -1,4 +1,4 @@
1
- import { C as m } from "../shared/Combobox-DbY_pKve.js";
1
+ import { C as m } from "../shared/Combobox-oSS0Rlbv.js";
2
2
  export {
3
3
  m as Combobox
4
4
  };
@@ -0,0 +1,2 @@
1
+ import { ConfirmDialogProperties } from './ConfirmDialog.types';
2
+ export declare function ConfirmDialog({ open, onOpenChange, header, message, severity, layout, icon, acceptLabel, rejectLabel, onAccept, onReject, portalContainer, }: ConfirmDialogProperties): import("react").JSX.Element;
@@ -0,0 +1,21 @@
1
+ import { ReactNode, RefObject } from 'react';
2
+ import { ConfirmDialogSeverity, ConfirmDialogLayout } from '@tpc-development/mare-ui-components-core/confirm-dialog';
3
+ export type { ConfirmDialogSeverity, ConfirmDialogLayout, } from '@tpc-development/mare-ui-components-core/confirm-dialog';
4
+ export interface ConfirmDialogProperties {
5
+ open: boolean;
6
+ onOpenChange?: (open: boolean) => void;
7
+ header: string;
8
+ message: string;
9
+ /** @default 'none' — 'warning' also swaps the accept button to `danger` severity. */
10
+ severity?: ConfirmDialogSeverity;
11
+ /** @default 'row' */
12
+ layout?: ConfirmDialogLayout;
13
+ icon?: ReactNode;
14
+ /** @default 'Confirm' */
15
+ acceptLabel?: string;
16
+ /** @default 'Cancel' */
17
+ rejectLabel?: string;
18
+ onAccept?: () => void;
19
+ onReject?: () => void;
20
+ portalContainer?: RefObject<HTMLElement | null>;
21
+ }
@@ -0,0 +1,2 @@
1
+ export { ConfirmDialog } from './ConfirmDialog';
2
+ export type { ConfirmDialogProperties, ConfirmDialogSeverity, ConfirmDialogLayout, } from './ConfirmDialog.types';
@@ -0,0 +1,4 @@
1
+ import { C as a } from "../shared/ConfirmDialog-Bvk8KZ0M.js";
2
+ export {
3
+ a as ConfirmDialog
4
+ };
@@ -1,4 +1,4 @@
1
- import { D as a } from "../shared/DatePicker-D9YdpbT1.js";
1
+ import { D as a } from "../shared/DatePicker-GYH3uorm.js";
2
2
  export {
3
3
  a as DatePicker
4
4
  };
@@ -1,6 +1,7 @@
1
- import { D as e, a as r, b as D } from "../shared/DialogFooter-AfXLN8ps.js";
1
+ import { D as r, a as e } from "../shared/DialogFooter-DyltZzK-.js";
2
+ import { D as g } from "../shared/DialogHeader-CZ5OrC8_.js";
2
3
  export {
3
- e as Dialog,
4
- r as DialogFooter,
5
- D as DialogHeader
4
+ r as Dialog,
5
+ e as DialogFooter,
6
+ g as DialogHeader
6
7
  };
@@ -1,4 +1,4 @@
1
- import { D as e, a as o, b as D } from "../shared/DrawerFooter-BZTmEepg.js";
1
+ import { D as e, a as o, b as D } from "../shared/DrawerFooter-OFrTFvy2.js";
2
2
  export {
3
3
  e as Drawer,
4
4
  o as DrawerFooter,
@@ -1,4 +1,4 @@
1
- import { I as a } from "../shared/ImageSlider-CO34btjQ.js";
1
+ import { I as a } from "../shared/ImageSlider-CdBVmAYC.js";
2
2
  export {
3
3
  a as ImageSlider
4
4
  };
@@ -6,6 +6,8 @@ export { Badge } from '../badge';
6
6
  export type { BadgeProperties, BadgeSeverity } from '../badge';
7
7
  export { Tag } from '../tag';
8
8
  export type { TagProperties, TagSeverity, TagSize } from '../tag';
9
+ export { TagChip } from '../tag-chip';
10
+ export type { TagChipProperties, TagChipSeverity, TagChipSize, } from '../tag-chip';
9
11
  export { Banner } from '../banner';
10
12
  export type { BannerProperties, BannerSeverity } from '../banner';
11
13
  export { Button } from '../button';
@@ -38,6 +40,8 @@ export { Switch } from '../switch';
38
40
  export type { SwitchProperties, SwitchSize } from '../switch';
39
41
  export { Dialog, DialogHeader, DialogFooter } from '../dialog';
40
42
  export type { DialogProperties, DialogSize, DialogHeaderProperties, DialogFooterProperties, DialogFooterLayout, } from '../dialog';
43
+ export { ConfirmDialog } from '../confirm-dialog';
44
+ export type { ConfirmDialogProperties, ConfirmDialogSeverity, ConfirmDialogLayout, } from '../confirm-dialog';
41
45
  export { Drawer, DrawerHeader, DrawerFooter } from '../drawer';
42
46
  export type { DrawerProperties, DrawerPosition, DrawerHeaderProperties, DrawerFooterProperties, } from '../drawer';
43
47
  export { Menu } from '../menu';
@@ -1,72 +1,77 @@
1
- import { A as a } from "../shared/Accordion-CiSnCOHD.js";
1
+ import { A as a } from "../shared/Accordion-Dhs7EeM6.js";
2
2
  import { A as t } from "../shared/Avatar-D3QlO3Tz.js";
3
3
  import { B as p } from "../shared/Badge-WC6my4Aw.js";
4
4
  import { T as x } from "../shared/Tag-BtbmgIwL.js";
5
- import { B as n } from "../shared/Banner-GuoT4U9D.js";
6
- import { B as c } from "../shared/Button-AfMqNCme.js";
7
- import { S as I } from "../shared/SelectField-R01ijqFZ.js";
8
- import { C as d } from "../shared/Combobox-DbY_pKve.js";
9
- import { T as D } from "../shared/Tabs-BqIorZYD.js";
10
- import { P } from "../shared/ProgressSpinner-B-lrS-tu.js";
11
- import { I as u, a as T } from "../shared/IconField-Dh6j6SL1.js";
12
- import { C as w, F as B, a as h, H as k } from "../shared/HelperText-CVWWvLCI.js";
13
- import { T as H } from "../shared/Textarea-iJhYTZos.js";
14
- import { S as R } from "../shared/SearchField-ifduhshF.js";
15
- import { P as G, a as L } from "../shared/Password-DMVUbmGP.js";
16
- import { I as O } from "../shared/InputNumber-D48wsE-o.js";
17
- import { I as q } from "../shared/InputOtp-CUXXVP2E.js";
18
- import { C as z } from "../shared/Checkbox-B6RWHWrC.js";
19
- import { R as J } from "../shared/RadioGroup-lw27DCoV.js";
20
- import { S as Q } from "../shared/Switch-D6E2OmgE.js";
21
- import { D as V, a as W, b as X } from "../shared/DialogFooter-AfXLN8ps.js";
22
- import { D as Z, a as _, b as $ } from "../shared/DrawerFooter-BZTmEepg.js";
23
- import { M as or } from "../shared/Menu-Cv9dU1iA.js";
24
- import { P as er } from "../shared/PanelMenu-Dq570xnF.js";
25
- import { S as sr, c as pr } from "../shared/Snackbar-C29nLHO9.js";
26
- import { S as xr } from "../shared/Stepper-K59S7ztj.js";
27
- import { D as nr } from "../shared/DatePicker-D9YdpbT1.js";
28
- import { P as cr } from "../shared/Paginator-Bn8HJXCg.js";
29
- import { I as Ir } from "../shared/ImageItem-BBy5fOl3.js";
30
- import { I as dr } from "../shared/ImageSlider-CO34btjQ.js";
5
+ import { T as n } from "../shared/TagChip-BNszVayi.js";
6
+ import { B as l } from "../shared/Banner-B41NQS5P.js";
7
+ import { B as I } from "../shared/Button-AfMqNCme.js";
8
+ import { S as d } from "../shared/SelectField-CGbdf8C2.js";
9
+ import { C as g } from "../shared/Combobox-oSS0Rlbv.js";
10
+ import { T as F } from "../shared/Tabs-BqIorZYD.js";
11
+ import { P as T } from "../shared/ProgressSpinner-B-lrS-tu.js";
12
+ import { I as u, a as w } from "../shared/IconField-Dh6j6SL1.js";
13
+ import { C as h, F as k, a as A, H } from "../shared/HelperText-CVWWvLCI.js";
14
+ import { T as R } from "../shared/Textarea-iJhYTZos.js";
15
+ import { S as G } from "../shared/SearchField-CgZV2Am-.js";
16
+ import { P as N, a as O } from "../shared/Password-cqTK9OlT.js";
17
+ import { I as q } from "../shared/InputNumber-D48wsE-o.js";
18
+ import { I as z } from "../shared/InputOtp-CUXXVP2E.js";
19
+ import { C as J } from "../shared/Checkbox-B7vM1mxP.js";
20
+ import { R as Q } from "../shared/RadioGroup-lw27DCoV.js";
21
+ import { S as V } from "../shared/Switch-D6E2OmgE.js";
22
+ import { D as X, a as Y } from "../shared/DialogFooter-DyltZzK-.js";
23
+ import { D as _ } from "../shared/DialogHeader-CZ5OrC8_.js";
24
+ import { C as rr } from "../shared/ConfirmDialog-Bvk8KZ0M.js";
25
+ import { D as ar, a as er, b as tr } from "../shared/DrawerFooter-OFrTFvy2.js";
26
+ import { M as pr } from "../shared/Menu-Cv9dU1iA.js";
27
+ import { P as xr } from "../shared/PanelMenu-Bz-fg6px.js";
28
+ import { S as nr, c as ir } from "../shared/Snackbar-C29nLHO9.js";
29
+ import { S as cr } from "../shared/Stepper-BpKdB3ip.js";
30
+ import { D as Sr } from "../shared/DatePicker-GYH3uorm.js";
31
+ import { P as Dr } from "../shared/Paginator-BndcA6Ax.js";
32
+ import { I as Cr } from "../shared/ImageItem-BBy5fOl3.js";
33
+ import { I as Pr } from "../shared/ImageSlider-CdBVmAYC.js";
31
34
  export {
32
35
  a as Accordion,
33
36
  t as Avatar,
34
37
  p as Badge,
35
- n as Banner,
36
- c as Button,
37
- w as CharacterCount,
38
- z as Checkbox,
39
- d as Combobox,
40
- nr as DatePicker,
41
- V as Dialog,
42
- W as DialogFooter,
43
- X as DialogHeader,
44
- Z as Drawer,
45
- _ as DrawerFooter,
46
- $ as DrawerHeader,
47
- B as FloatLabel,
48
- h as FormField,
49
- k as HelperText,
38
+ l as Banner,
39
+ I as Button,
40
+ h as CharacterCount,
41
+ J as Checkbox,
42
+ g as Combobox,
43
+ rr as ConfirmDialog,
44
+ Sr as DatePicker,
45
+ X as Dialog,
46
+ Y as DialogFooter,
47
+ _ as DialogHeader,
48
+ ar as Drawer,
49
+ er as DrawerFooter,
50
+ tr as DrawerHeader,
51
+ k as FloatLabel,
52
+ A as FormField,
53
+ H as HelperText,
50
54
  u as IconField,
51
- Ir as ImageItem,
52
- dr as ImageSlider,
53
- O as InputNumber,
54
- q as InputOtp,
55
- T as InputText,
56
- or as Menu,
57
- cr as Paginator,
58
- er as PanelMenu,
59
- G as Password,
60
- L as PasswordFooterItem,
61
- P as ProgressSpinner,
62
- J as RadioGroup,
63
- R as SearchField,
64
- I as SelectField,
65
- sr as Snackbar,
66
- xr as Stepper,
67
- Q as Switch,
68
- D as Tabs,
55
+ Cr as ImageItem,
56
+ Pr as ImageSlider,
57
+ q as InputNumber,
58
+ z as InputOtp,
59
+ w as InputText,
60
+ pr as Menu,
61
+ Dr as Paginator,
62
+ xr as PanelMenu,
63
+ N as Password,
64
+ O as PasswordFooterItem,
65
+ T as ProgressSpinner,
66
+ Q as RadioGroup,
67
+ G as SearchField,
68
+ d as SelectField,
69
+ nr as Snackbar,
70
+ cr as Stepper,
71
+ V as Switch,
72
+ F as Tabs,
69
73
  x as Tag,
70
- H as Textarea,
71
- pr as createSnackbar
74
+ n as TagChip,
75
+ R as Textarea,
76
+ ir as createSnackbar
72
77
  };
@@ -1,4 +1,4 @@
1
- import { P as r } from "../shared/Paginator-Bn8HJXCg.js";
1
+ import { P as r } from "../shared/Paginator-BndcA6Ax.js";
2
2
  export {
3
3
  r as Paginator
4
4
  };
@@ -1,4 +1,4 @@
1
- import { P as n } from "../shared/PanelMenu-Dq570xnF.js";
1
+ import { P as n } from "../shared/PanelMenu-Bz-fg6px.js";
2
2
  export {
3
3
  n as PanelMenu
4
4
  };
@@ -1,4 +1,4 @@
1
- import { P as a, a as r } from "../shared/Password-DMVUbmGP.js";
1
+ import { P as a, a as r } from "../shared/Password-cqTK9OlT.js";
2
2
  export {
3
3
  a as Password,
4
4
  r as PasswordFooterItem
@@ -1,4 +1,4 @@
1
- import { S as a } from "../shared/SearchField-ifduhshF.js";
1
+ import { S as a } from "../shared/SearchField-CgZV2Am-.js";
2
2
  export {
3
3
  a as SearchField
4
4
  };
@@ -1,4 +1,4 @@
1
- import { S as o } from "../shared/SelectField-R01ijqFZ.js";
1
+ import { S as o } from "../shared/SelectField-CGbdf8C2.js";
2
2
  export {
3
3
  o as SelectField
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as a, jsxs as m } from "react/jsx-runtime";
2
2
  import { Accordion as r } from "@ark-ui/react/accordion";
3
- import { C as c } from "./icons-CQQSG2_s.js";
3
+ import { a as c } from "./icons-BFOFrum4.js";
4
4
  const d = "mare:w-full", u = (t) => `
5
5
  mare:flex mare:flex-col
6
6
  ${t ? "mare:border-b mare:border-default" : ""}
@@ -1,6 +1,6 @@
1
1
  import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
2
  import { B as d } from "./Button-AfMqNCme.js";
3
- import { a as o } from "./icons-CQQSG2_s.js";
3
+ import { C as o } from "./icons-BFOFrum4.js";
4
4
  const c = `
5
5
  mare:w-full mare:max-w-md mare:rounded-tpc-container-s mare:p-4
6
6
  mare:flex mare:items-start mare:justify-between mare:gap-4
@@ -1,6 +1,6 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
2
  import { Checkbox as a } from "@ark-ui/react/checkbox";
3
- import { b as f, M as x } from "./icons-CQQSG2_s.js";
3
+ import { b as f, M as x } from "./icons-BFOFrum4.js";
4
4
  const v = `
5
5
  mare:group/checkbox
6
6
  mare:relative mare:inline-flex mare:items-center mare:gap-2
@@ -1,7 +1,7 @@
1
1
  import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
2
  import { useState as T, useMemo as b } from "react";
3
3
  import { createListCollection as V, ComboboxRoot as _, ComboboxLabel as j, ComboboxControl as $, ComboboxTrigger as q, ComboboxClearTrigger as D, ComboboxPositioner as E, ComboboxContent as M, ComboboxInput as O, ComboboxEmpty as P, ComboboxItem as Q, ComboboxItemText as R, ComboboxItemIndicator as z } from "@ark-ui/react/combobox";
4
- import { c as A, C as B, S as F, b as G } from "./icons-CQQSG2_s.js";
4
+ import { c as A, a as B, S as F, b as G } from "./icons-BFOFrum4.js";
5
5
  const H = {
6
6
  small: "mare:h-10",
7
7
  medium: "mare:h-12"
@@ -0,0 +1,79 @@
1
+ import { jsx as r, jsxs as t } from "react/jsx-runtime";
2
+ import { D as g, a as h } from "./DialogFooter-DyltZzK-.js";
3
+ import { B as n } from "./Button-AfMqNCme.js";
4
+ const u = (e) => `
5
+ mare:w-full mare:h-full
6
+ ${e === "column" ? "mare:pt-10 mare:pb-4" : "mare:pt-8"}
7
+ `, v = (e) => e === "column" ? "mare:flex mare:flex-col mare:items-center mare:gap-4" : "mare:flex mare:flex-col mare:sm:flex-row mare:items-center mare:sm:items-start mare:gap-4 mare:sm:gap-6", w = (e) => `mare:flex-1 mare:flex mare:flex-col mare:gap-2 ${e === "column" ? "mare:items-center mare:text-center" : "mare:items-center mare:sm:items-start mare:text-center mare:sm:text-left"}`, y = "mare:tpc-typography-title-s mare:text-default", k = "mare:overflow-y-auto mare:tpc-typography-body-m mare:text-weak", N = (e) => `
8
+ mare:size-10 mare:shrink-0 mare:rounded-full
9
+ mare:flex mare:items-center mare:justify-center
10
+ mare:[&>svg]:size-5
11
+ ${e === "warning" ? "mare:bg-danger-weak mare:text-danger" : ""}
12
+ ${e === "positive" ? "mare:bg-positive-weak mare:text-positive" : ""}
13
+ `;
14
+ function D({
15
+ open: e,
16
+ onOpenChange: m,
17
+ header: s,
18
+ message: c,
19
+ severity: l = "none",
20
+ layout: a = "row",
21
+ icon: i,
22
+ acceptLabel: o = "Confirm",
23
+ rejectLabel: f = "Cancel",
24
+ onAccept: d,
25
+ onReject: p,
26
+ portalContainer: x
27
+ }) {
28
+ return /* @__PURE__ */ r(
29
+ g,
30
+ {
31
+ open: e,
32
+ onOpenChange: m,
33
+ size: "small",
34
+ portalContainer: x,
35
+ "aria-label": s,
36
+ footer: /* @__PURE__ */ t(h, { layout: a, children: [
37
+ /* @__PURE__ */ r(
38
+ n,
39
+ {
40
+ severity: "secondary",
41
+ size: "large",
42
+ onClick: () => {
43
+ p?.(), m?.(!1);
44
+ },
45
+ children: f
46
+ }
47
+ ),
48
+ /* @__PURE__ */ r(
49
+ n,
50
+ {
51
+ severity: l === "warning" ? "danger" : "primary",
52
+ size: "large",
53
+ onClick: () => {
54
+ d?.(), m?.(!1);
55
+ },
56
+ children: o
57
+ }
58
+ )
59
+ ] }),
60
+ children: /* @__PURE__ */ r("div", { className: u(a), children: /* @__PURE__ */ t("div", { className: v(a), children: [
61
+ i && /* @__PURE__ */ r(
62
+ "span",
63
+ {
64
+ className: N(l),
65
+ "aria-hidden": "true",
66
+ children: i
67
+ }
68
+ ),
69
+ /* @__PURE__ */ t("div", { className: w(a), children: [
70
+ /* @__PURE__ */ r("span", { className: y, children: s }),
71
+ /* @__PURE__ */ r("div", { className: k, children: c })
72
+ ] })
73
+ ] }) })
74
+ }
75
+ );
76
+ }
77
+ export {
78
+ D as C
79
+ };
@@ -2,7 +2,7 @@ import { jsxs as u, jsx as l, Fragment as ne } from "react/jsx-runtime";
2
2
  import { useState as er, useEffect as rr, useMemo as oe } from "react";
3
3
  import { DatePickerRoot as ar, DatePickerLabel as tr, DatePickerControl as nr, DatePickerTrigger as or, DatePickerContext as le, DatePickerClearTrigger as lr, DatePickerPositioner as ir, DatePickerContent as cr, DatePickerView as j, DatePickerViewControl as sr, DatePickerPrevTrigger as mr, DatePickerViewTrigger as dr, DatePickerRangeText as ie, DatePickerNextTrigger as ur, DatePickerTable as $e, DatePickerTableHead as hr, DatePickerTableRow as G, DatePickerTableHeader as fr, DatePickerTableBody as ge, DatePickerTableCell as be, DatePickerTableCellTrigger as xe } from "@ark-ui/react/date-picker";
4
4
  import { Portal as yr } from "@ark-ui/react/portal";
5
- import { i as pr, c as $r, d as gr, e as br } from "./icons-CQQSG2_s.js";
5
+ import { i as pr, c as $r, d as gr, e as br } from "./icons-BFOFrum4.js";
6
6
  function O(e, r) {
7
7
  return e - r * Math.floor(e / r);
8
8
  }
@@ -0,0 +1,106 @@
1
+ import { jsx as a, jsxs as l } from "react/jsx-runtime";
2
+ import { Dialog as r } from "@ark-ui/react/dialog";
3
+ import { Portal as b } from "@ark-ui/react/portal";
4
+ const w = (e) => `
5
+ mare:fixed mare:inset-0 mare:z-40
6
+ ${e ?? "mare:bg-overlay"}
7
+ mare:ark-open:[animation:mare-dialog-backdrop-enter_300ms_ease-out]
8
+ mare:ark-closed:[animation:mare-dialog-backdrop-exit_200ms_ease-in]
9
+ `, h = `
10
+ mare:fixed mare:inset-0 mare:z-50
11
+ mare:flex mare:items-center mare:justify-center
12
+ mare:overflow-y-auto mare:px-0 mare:sm:px-10
13
+ `, _ = {
14
+ small: "mare:sm:w-[28rem] mare:sm:max-w-[28rem]",
15
+ medium: "mare:sm:w-[42rem] mare:sm:max-w-[42rem]",
16
+ large: "mare:sm:w-[64rem] mare:sm:max-w-[64rem]"
17
+ }, k = (e) => `
18
+ mare:group/dialog mare:flex mare:flex-col
19
+ mare:w-full mare:max-w-full mare:max-w-screen ${_[e.size]}
20
+ mare:bg-default mare:text-default
21
+ mare:shadow-[0px_10px_15px_-3px_rgba(0,0,0,0.10),0px_4px_6px_-2px_rgba(0,0,0,0.05)]
22
+ 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
23
+ mare:rounded-t-tpc-sheet mare:sm:rounded-tpc-dialog
24
+ mare:max-h-[calc(100%-32px)] mare:sm:max-h-[calc(100%-80px)]
25
+ mare:outline-none
26
+ mare:ark-open:[animation:mare-dialog-enter-mobile_300ms_ease-out]
27
+ mare:ark-closed:[animation:mare-dialog-exit-mobile_200ms_ease-in]
28
+ mare:sm:ark-open:[animation:mare-dialog-enter-desktop_300ms_ease-out]
29
+ mare:sm:ark-closed:[animation:mare-dialog-exit-desktop_200ms_ease-in]
30
+ ${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
+ mare:overflow-y-auto mare:px-6 mare:pb-6
33
+ ${e ? "mare:grow" : ""}
34
+ `, N = (e) => `
35
+ mare:flex mare:w-full mare:items-center mare:justify-between mare:shrink-0
36
+ mare:h-14 mare:sm:h-16 mare:px-6
37
+ ${e ? "mare:border-b mare:border-default" : ""}
38
+ `, z = "mare:-ml-1.5", O = "mare:-mr-1.5", I = (e) => `
39
+ mare:grow mare:w-full mare:truncate mare:text-center
40
+ mare:tpc-typography-label-m mare:text-default
41
+ ${e.hasRightIcon ? "" : "mare:mr-6.5"}
42
+ ${e.hasLeftIcon ? "" : "mare:ml-6.5"}
43
+ `, $ = (e) => `
44
+ mare:flex mare:flex-col-reverse mare:gap-3 mare:justify-end mare:w-full
45
+ mare:px-6 mare:pb-4 mare:sm:pb-6
46
+ ${e.layout === "row" ? "mare:sm:flex-row" : ""}
47
+ ${e.border ? "mare:pt-3 mare:sm:pt-6 mare:border-t mare:border-t-default" : "mare:pt-0"}
48
+ `;
49
+ function C({
50
+ open: e,
51
+ onOpenChange: m,
52
+ size: t = "medium",
53
+ fullScreen: o = !1,
54
+ modal: s = !0,
55
+ closeOnEscape: i = !0,
56
+ dismissableMask: n = !0,
57
+ maskColor: d,
58
+ portalContainer: p,
59
+ header: u,
60
+ footer: x,
61
+ children: c,
62
+ "aria-label": f
63
+ }) {
64
+ return /* @__PURE__ */ a(
65
+ r.Root,
66
+ {
67
+ open: e,
68
+ onOpenChange: (g) => m?.(g.open),
69
+ modal: s,
70
+ closeOnEscape: i,
71
+ closeOnInteractOutside: n,
72
+ "aria-label": f,
73
+ lazyMount: !0,
74
+ 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(
78
+ r.Content,
79
+ {
80
+ className: k({ size: t, fullScreen: o }),
81
+ children: [
82
+ u,
83
+ /* @__PURE__ */ a("div", { className: y(o), children: c }),
84
+ x
85
+ ]
86
+ }
87
+ ) })
88
+ ] })
89
+ }
90
+ );
91
+ }
92
+ function P({
93
+ layout: e = "row",
94
+ border: m = !1,
95
+ children: t
96
+ }) {
97
+ return /* @__PURE__ */ a("div", { className: $({ layout: e, border: m }), children: t });
98
+ }
99
+ 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
106
+ };
@@ -0,0 +1,57 @@
1
+ import { jsxs as t, jsx as s } from "react/jsx-runtime";
2
+ import { Dialog as a } 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-AfMqNCme.js";
5
+ import { C as p } from "./icons-BFOFrum4.js";
6
+ function N({
7
+ title: l,
8
+ leftIcon: i = /* @__PURE__ */ s(p, {}),
9
+ rightIcon: e,
10
+ onLeftIconClick: n,
11
+ onRightIconClick: m,
12
+ border: c = !1
13
+ }) {
14
+ return /* @__PURE__ */ t("div", { className: u(c), children: [
15
+ i ? /* @__PURE__ */ s("div", { className: h, children: /* @__PURE__ */ s(a.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(
16
+ r,
17
+ {
18
+ severity: "ghost",
19
+ iconOnly: !0,
20
+ size: "xsmall",
21
+ icon: i,
22
+ onClick: n
23
+ }
24
+ ) }) }) : null,
25
+ l ? /* @__PURE__ */ s(
26
+ a.Title,
27
+ {
28
+ className: o({
29
+ hasLeftIcon: !!i,
30
+ hasRightIcon: !!e
31
+ }),
32
+ children: l
33
+ }
34
+ ) : /* @__PURE__ */ s(
35
+ "span",
36
+ {
37
+ className: o({
38
+ hasLeftIcon: !!i,
39
+ hasRightIcon: !!e
40
+ })
41
+ }
42
+ ),
43
+ e ? /* @__PURE__ */ s("div", { className: d, children: /* @__PURE__ */ s(
44
+ r,
45
+ {
46
+ severity: "ghost",
47
+ iconOnly: !0,
48
+ size: "xsmall",
49
+ icon: e,
50
+ onClick: m
51
+ }
52
+ ) }) : null
53
+ ] });
54
+ }
55
+ export {
56
+ N as D
57
+ };
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
2
  import { Dialog as t } from "@ark-ui/react/dialog";
3
3
  import { Portal as g } from "@ark-ui/react/portal";
4
4
  import { B as d } from "./Button-AfMqNCme.js";
5
- import { a as y } from "./icons-CQQSG2_s.js";
5
+ import { C as y } from "./icons-BFOFrum4.js";
6
6
  const _ = (e) => {
7
7
  switch (e) {
8
8
  case "left":
@@ -1,7 +1,7 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { Children as i } from "react";
3
3
  import { CarouselRoot as c, CarouselControl as u, CarouselPrevTrigger as d, CarouselItemGroup as h, CarouselItem as p, CarouselNextTrigger as f, CarouselIndicatorGroup as b, CarouselIndicator as g } from "@ark-ui/react/carousel";
4
- import { d as C, e as w } from "./icons-CQQSG2_s.js";
4
+ import { d as C, e as w } from "./icons-BFOFrum4.js";
5
5
  const y = "mare:group mare:relative mare:overflow-hidden mare:rounded-container-m", N = "mare:relative mare:flex mare:items-stretch", x = `
6
6
  mare:flex mare:flex-1 mare:min-w-0
7
7
  mare:[scrollbar-width:none] mare:[&::-webkit-scrollbar]:hidden
@@ -2,8 +2,8 @@ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
2
  import { useRef as P, useState as w, useEffect as R } from "react";
3
3
  import { Pagination as c } from "@ark-ui/react/pagination";
4
4
  import { B as h } from "./Button-AfMqNCme.js";
5
- import { S as j } from "./SelectField-R01ijqFZ.js";
6
- import { f as N, d as k, e as W, g as I } from "./icons-CQQSG2_s.js";
5
+ import { S as j } from "./SelectField-CGbdf8C2.js";
6
+ import { f as N, d as k, e as W, g as I } from "./icons-BFOFrum4.js";
7
7
  const O = (a) => `
8
8
  mare:w-full mare:flex mare:flex-wrap mare:items-center mare:gap-2
9
9
  ${a ? "mare:justify-between" : "mare:justify-center"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as a, jsxs as s, Fragment as u } from "react/jsx-runtime";
2
2
  import { useMemo as x } from "react";
3
3
  import { createTreeCollection as f, TreeView as n } from "@ark-ui/react/tree-view";
4
- import { C as b } from "./icons-CQQSG2_s.js";
4
+ import { a as b } from "./icons-BFOFrum4.js";
5
5
  const g = "mare:flex mare:flex-col mare:gap-1", v = "mare:flex mare:flex-col mare:gap-1", k = `
6
6
  mare:group mare:flex mare:items-center mare:gap-2 mare:min-h-10 mare:px-3 mare:py-2
7
7
  mare:rounded-menu-item mare:cursor-pointer mare:select-none mare:outline-none
@@ -1,7 +1,7 @@
1
1
  import { jsxs as r, jsx as e, Fragment as k } from "react/jsx-runtime";
2
2
  import { PasswordInput as l } from "@ark-ui/react/password-input";
3
3
  import { useFieldContext as A } from "@ark-ui/react/field";
4
- import { E as R, h as Z } from "./icons-CQQSG2_s.js";
4
+ import { E as R, h as Z } from "./icons-BFOFrum4.js";
5
5
  import { u as $, m as j, d as D, f as O } from "./field-layout-D34MpDMB.js";
6
6
  const T = "mare:relative mare:w-full mare:group", V = "mare:relative mare:w-full", W = `
7
7
  mare:hidden mare:group-focus-within:flex mare:flex-col mare:gap-2