@tpc-mare/mare-ui-components-react 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/accordion/index.js +1 -1
  2. package/dist/banner/Banner.d.ts +2 -0
  3. package/dist/banner/Banner.types.d.ts +15 -0
  4. package/dist/banner/index.d.ts +2 -0
  5. package/dist/banner/index.js +4 -0
  6. package/dist/checkbox/index.js +1 -1
  7. package/dist/combobox/index.js +1 -1
  8. package/dist/date-picker/index.js +1 -1
  9. package/dist/dialog/index.js +1 -1
  10. package/dist/drawer/index.js +1 -1
  11. package/dist/index/index.d.ts +6 -0
  12. package/dist/index/index.js +54 -47
  13. package/dist/input-otp/InputOtp.d.ts +2 -0
  14. package/dist/input-otp/InputOtp.types.d.ts +27 -0
  15. package/dist/input-otp/index.d.ts +2 -0
  16. package/dist/input-otp/index.js +4 -0
  17. package/dist/paginator/index.js +1 -1
  18. package/dist/panel-menu/index.js +1 -1
  19. package/dist/password/Password.d.ts +7 -0
  20. package/dist/password/Password.types.d.ts +39 -0
  21. package/dist/password/index.d.ts +2 -0
  22. package/dist/password/index.js +5 -0
  23. package/dist/search-field/index.js +1 -1
  24. package/dist/select-field/index.js +1 -1
  25. package/dist/shared/{Accordion-E6aTw9ir.js → Accordion-Cbs8KQ5v.js} +1 -1
  26. package/dist/shared/Banner-BWyV9K8e.js +52 -0
  27. package/dist/shared/{Checkbox-fis7v2xS.js → Checkbox-D17WWbSe.js} +12 -12
  28. package/dist/shared/{Combobox-DK6nHqAL.js → Combobox-CBa1lnAd.js} +1 -1
  29. package/dist/shared/{DatePicker-CF9y6eAm.js → DatePicker-BQulFC2D.js} +1 -1
  30. package/dist/shared/{DialogFooter-BwEB19v9.js → DialogFooter-0gaMdpXV.js} +1 -1
  31. package/dist/shared/{DrawerFooter-C0SLP8KU.js → DrawerFooter-CpO7chLC.js} +1 -1
  32. package/dist/shared/InputOtp-CUXXVP2E.js +72 -0
  33. package/dist/shared/{Paginator-CcN6wND7.js → Paginator-Da0XKfF3.js} +2 -2
  34. package/dist/shared/{PanelMenu-Ch4NsZD_.js → PanelMenu-CYbr6cvz.js} +1 -1
  35. package/dist/shared/Password-vADi8ZJz.js +94 -0
  36. package/dist/shared/{SearchField-DuA4ZkBL.js → SearchField-9bL2s8zj.js} +1 -1
  37. package/dist/shared/{SelectField-DNlX8uuG.js → SelectField-dNCMdSYU.js} +1 -1
  38. package/dist/shared/{Stepper-BYRV6yan.js → Stepper-DApoMP1U.js} +3 -3
  39. package/dist/shared/{icons-Dfn6EUcz.js → icons-bQxPPV8R.js} +25 -16
  40. package/dist/shared/icons.d.ts +2 -0
  41. package/dist/stepper/index.js +1 -1
  42. package/dist/styles.css +1 -1
  43. package/dist/theme.css +1 -0
  44. package/package.json +2 -1
@@ -1,4 +1,4 @@
1
- import { A as c } from "../shared/Accordion-E6aTw9ir.js";
1
+ import { A as c } from "../shared/Accordion-Cbs8KQ5v.js";
2
2
  export {
3
3
  c as Accordion
4
4
  };
@@ -0,0 +1,2 @@
1
+ import { BannerProperties } from './Banner.types';
2
+ export declare function Banner({ severity, title, icon, disabled, closable, onClose, children, }: BannerProperties): import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ import { BannerSeverity } from '@tpc-development/mare-ui-components-core/banner';
3
+ export type { BannerSeverity } from '@tpc-development/mare-ui-components-core/banner';
4
+ export interface BannerProperties {
5
+ /** @default 'neutral' */
6
+ severity?: BannerSeverity;
7
+ title?: string;
8
+ icon?: ReactNode;
9
+ /** @default false */
10
+ disabled?: boolean;
11
+ /** @default false */
12
+ closable?: boolean;
13
+ onClose?: () => void;
14
+ children?: ReactNode;
15
+ }
@@ -0,0 +1,2 @@
1
+ export { Banner } from './Banner';
2
+ export type { BannerProperties, BannerSeverity } from './Banner.types';
@@ -0,0 +1,4 @@
1
+ import { B as e } from "../shared/Banner-BWyV9K8e.js";
2
+ export {
3
+ e as Banner
4
+ };
@@ -1,4 +1,4 @@
1
- import { C as r } from "../shared/Checkbox-fis7v2xS.js";
1
+ import { C as r } from "../shared/Checkbox-D17WWbSe.js";
2
2
  export {
3
3
  r as Checkbox
4
4
  };
@@ -1,4 +1,4 @@
1
- import { C as m } from "../shared/Combobox-DK6nHqAL.js";
1
+ import { C as m } from "../shared/Combobox-CBa1lnAd.js";
2
2
  export {
3
3
  m as Combobox
4
4
  };
@@ -1,4 +1,4 @@
1
- import { D as a } from "../shared/DatePicker-CF9y6eAm.js";
1
+ import { D as a } from "../shared/DatePicker-BQulFC2D.js";
2
2
  export {
3
3
  a as DatePicker
4
4
  };
@@ -1,4 +1,4 @@
1
- import { D as e, a as r, b as D } from "../shared/DialogFooter-BwEB19v9.js";
1
+ import { D as e, a as r, b as D } from "../shared/DialogFooter-0gaMdpXV.js";
2
2
  export {
3
3
  e as Dialog,
4
4
  r as DialogFooter,
@@ -1,4 +1,4 @@
1
- import { D as e, a as o, b as D } from "../shared/DrawerFooter-C0SLP8KU.js";
1
+ import { D as e, a as o, b as D } from "../shared/DrawerFooter-CpO7chLC.js";
2
2
  export {
3
3
  e as Drawer,
4
4
  o as DrawerFooter,
@@ -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 { Banner } from '../banner';
10
+ export type { BannerProperties, BannerSeverity } from '../banner';
9
11
  export { Button } from '../button';
10
12
  export type { ButtonProperties, ButtonSeverity, ButtonSize, ButtonVariant, IconPosition, } from '../button';
11
13
  export { SelectField } from '../select-field';
@@ -22,8 +24,12 @@ export { Textarea } from '../textarea';
22
24
  export type { TextareaProperties } from '../textarea';
23
25
  export { SearchField } from '../search-field';
24
26
  export type { SearchFieldProperties } from '../search-field';
27
+ export { Password, PasswordFooterItem } from '../password';
28
+ export type { PasswordProperties } from '../password';
25
29
  export { InputNumber } from '../input-number';
26
30
  export type { InputNumberProperties, InputNumberSize, } from '../input-number';
31
+ export { InputOtp } from '../input-otp';
32
+ export type { InputOtpProperties, InputOtpSize } from '../input-otp';
27
33
  export { Checkbox } from '../checkbox';
28
34
  export type { CheckboxProperties, CheckboxSize, CheckedState, } from '../checkbox';
29
35
  export { RadioGroup } from '../radio-group';
@@ -1,61 +1,68 @@
1
- import { A as a } from "../shared/Accordion-E6aTw9ir.js";
1
+ import { A as a } from "../shared/Accordion-Cbs8KQ5v.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 m } from "../shared/Tag-BtbmgIwL.js";
5
- import { B as n } from "../shared/Button-AfMqNCme.js";
6
- import { S as i } from "../shared/SelectField-DNlX8uuG.js";
7
- import { C as S } from "../shared/Combobox-DK6nHqAL.js";
8
- import { T as D } from "../shared/Tabs-BqIorZYD.js";
9
- import { P as F } from "../shared/ProgressSpinner-B-lrS-tu.js";
5
+ import { B as n } from "../shared/Banner-BWyV9K8e.js";
6
+ import { B as i } from "../shared/Button-AfMqNCme.js";
7
+ import { S } from "../shared/SelectField-dNCMdSYU.js";
8
+ import { C as b } from "../shared/Combobox-CBa1lnAd.js";
9
+ import { T as F } from "../shared/Tabs-BqIorZYD.js";
10
+ import { P as u } from "../shared/ProgressSpinner-B-lrS-tu.js";
10
11
  import { I as T, a as g } from "../shared/IconField-Dh6j6SL1.js";
11
- import { C as P, F as I, a as h, H as k } from "../shared/HelperText-CVWWvLCI.js";
12
- import { T as A } from "../shared/Textarea-iJhYTZos.js";
13
- import { S as H } from "../shared/SearchField-DuA4ZkBL.js";
14
- import { I as R } from "../shared/InputNumber-D48wsE-o.js";
15
- import { C as G } from "../shared/Checkbox-fis7v2xS.js";
16
- import { R as N } from "../shared/RadioGroup-lw27DCoV.js";
17
- import { S as q } from "../shared/Switch-D6E2OmgE.js";
18
- import { D as z, a as E, b as J } from "../shared/DialogFooter-BwEB19v9.js";
19
- import { D as O, a as Q, b as U } from "../shared/DrawerFooter-C0SLP8KU.js";
20
- import { M as W } from "../shared/Menu-Cv9dU1iA.js";
21
- import { P as Y } from "../shared/PanelMenu-Ch4NsZD_.js";
22
- import { S as _, c as $ } from "../shared/Snackbar-C29nLHO9.js";
23
- import { S as or } from "../shared/Stepper-BYRV6yan.js";
24
- import { D as er } from "../shared/DatePicker-CF9y6eAm.js";
25
- import { P as sr } from "../shared/Paginator-CcN6wND7.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-9bL2s8zj.js";
15
+ import { P as G, a as L } from "../shared/Password-vADi8ZJz.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-D17WWbSe.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-0gaMdpXV.js";
22
+ import { D as Z, a as _, b as $ } from "../shared/DrawerFooter-CpO7chLC.js";
23
+ import { M as or } from "../shared/Menu-Cv9dU1iA.js";
24
+ import { P as er } from "../shared/PanelMenu-CYbr6cvz.js";
25
+ import { S as sr, c as pr } from "../shared/Snackbar-C29nLHO9.js";
26
+ import { S as mr } from "../shared/Stepper-DApoMP1U.js";
27
+ import { D as nr } from "../shared/DatePicker-BQulFC2D.js";
28
+ import { P as ir } from "../shared/Paginator-Da0XKfF3.js";
26
29
  export {
27
30
  a as Accordion,
28
31
  t as Avatar,
29
32
  p as Badge,
30
- n as Button,
31
- P as CharacterCount,
32
- G as Checkbox,
33
- S as Combobox,
34
- er as DatePicker,
35
- z as Dialog,
36
- E as DialogFooter,
37
- J as DialogHeader,
38
- O as Drawer,
39
- Q as DrawerFooter,
40
- U as DrawerHeader,
41
- I as FloatLabel,
33
+ n as Banner,
34
+ i as Button,
35
+ w as CharacterCount,
36
+ z as Checkbox,
37
+ b as Combobox,
38
+ nr as DatePicker,
39
+ V as Dialog,
40
+ W as DialogFooter,
41
+ X as DialogHeader,
42
+ Z as Drawer,
43
+ _ as DrawerFooter,
44
+ $ as DrawerHeader,
45
+ B as FloatLabel,
42
46
  h as FormField,
43
47
  k as HelperText,
44
48
  T as IconField,
45
- R as InputNumber,
49
+ O as InputNumber,
50
+ q as InputOtp,
46
51
  g as InputText,
47
- W as Menu,
48
- sr as Paginator,
49
- Y as PanelMenu,
50
- F as ProgressSpinner,
51
- N as RadioGroup,
52
- H as SearchField,
53
- i as SelectField,
54
- _ as Snackbar,
55
- or as Stepper,
56
- q as Switch,
57
- D as Tabs,
52
+ or as Menu,
53
+ ir as Paginator,
54
+ er as PanelMenu,
55
+ G as Password,
56
+ L as PasswordFooterItem,
57
+ u as ProgressSpinner,
58
+ J as RadioGroup,
59
+ R as SearchField,
60
+ S as SelectField,
61
+ sr as Snackbar,
62
+ mr as Stepper,
63
+ Q as Switch,
64
+ F as Tabs,
58
65
  m as Tag,
59
- A as Textarea,
60
- $ as createSnackbar
66
+ H as Textarea,
67
+ pr as createSnackbar
61
68
  };
@@ -0,0 +1,2 @@
1
+ import { InputOtpProperties } from './InputOtp.types';
2
+ export declare function InputOtp({ length, value, defaultValue, onValueChange, onComplete, size, mask, integerOnly, placeholder, invalid, disabled, readOnly, required, autoFocus, name, id, }: InputOtpProperties): import("react").JSX.Element;
@@ -0,0 +1,27 @@
1
+ import { InputOtpSize } from '@tpc-development/mare-ui-components-core/input-otp';
2
+ export type { InputOtpSize } from '@tpc-development/mare-ui-components-core/input-otp';
3
+ export interface InputOtpProperties {
4
+ /** Number of digit boxes to render. */
5
+ length?: number;
6
+ /** Controlled value, one character per digit. Omit to let Ark manage it. */
7
+ value?: string;
8
+ defaultValue?: string;
9
+ onValueChange?: (value: string) => void;
10
+ /** Fired once all digits are filled with a valid value. */
11
+ onComplete?: (value: string) => void;
12
+ size?: InputOtpSize;
13
+ /** Masks each digit like `type="password"`. */
14
+ mask?: boolean;
15
+ /** Restricts input to digits only. Set `false` for alphanumeric codes. */
16
+ integerOnly?: boolean;
17
+ /** Placeholder shown in each empty box. Defaults to '' (blank box) — Ark's
18
+ * own default is '○', which the Mare design doesn't use. */
19
+ placeholder?: string;
20
+ invalid?: boolean;
21
+ disabled?: boolean;
22
+ readOnly?: boolean;
23
+ required?: boolean;
24
+ autoFocus?: boolean;
25
+ name?: string;
26
+ id?: string;
27
+ }
@@ -0,0 +1,2 @@
1
+ export { InputOtp } from './InputOtp';
2
+ export type { InputOtpProperties, InputOtpSize } from './InputOtp.types';
@@ -0,0 +1,4 @@
1
+ import { I as o } from "../shared/InputOtp-CUXXVP2E.js";
2
+ export {
3
+ o as InputOtp
4
+ };
@@ -1,4 +1,4 @@
1
- import { P as r } from "../shared/Paginator-CcN6wND7.js";
1
+ import { P as r } from "../shared/Paginator-Da0XKfF3.js";
2
2
  export {
3
3
  r as Paginator
4
4
  };
@@ -1,4 +1,4 @@
1
- import { P as n } from "../shared/PanelMenu-Ch4NsZD_.js";
1
+ import { P as n } from "../shared/PanelMenu-CYbr6cvz.js";
2
2
  export {
3
3
  n as PanelMenu
4
4
  };
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { PasswordProperties } from './Password.types';
3
+ export declare function Password({ value, onValueChange, size, rounded, invalid, disabled, toggleMask, showIcon, hideIcon, feedback, header, footer, promptLabel, weakLabel, mediumLabel, strongLabel, mediumRegex, strongRegex, ...native }: PasswordProperties): import("react").JSX.Element;
4
+ /** A single requirement row for `footer` (e.g. "At least one uppercase"). */
5
+ export declare function PasswordFooterItem({ children }: {
6
+ children?: ReactNode;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,39 @@
1
+ import { InputHTMLAttributes, ReactNode } from 'react';
2
+ import { InputTextSize } from '@tpc-development/mare-ui-components-core/input-text';
3
+ type ForwardedNativeProperties = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'size' | 'type' | 'className' | 'style'>;
4
+ export interface PasswordProperties extends ForwardedNativeProperties {
5
+ /** Controlled value. */
6
+ value?: string;
7
+ /** Controlled change handler — receives the next string value. */
8
+ onValueChange?: (value: string) => void;
9
+ size?: InputTextSize;
10
+ rounded?: boolean;
11
+ invalid?: boolean;
12
+ disabled?: boolean;
13
+ /** Shows a button that toggles the value between hidden/visible. @default true */
14
+ toggleMask?: boolean;
15
+ /** Icon shown when the value is hidden — click reveals it. @default an eye icon */
16
+ showIcon?: ReactNode;
17
+ /** Icon shown when the value is visible — click hides it. @default an eye-off icon */
18
+ hideIcon?: ReactNode;
19
+ /** Shows the strength-meter panel while the field has focus. @default true */
20
+ feedback?: boolean;
21
+ /** Custom content at the top of the feedback panel. */
22
+ header?: ReactNode;
23
+ /** Custom content at the bottom of the feedback panel, below a divider —
24
+ * e.g. a list of `PasswordFooterItem`s describing the requirements. */
25
+ footer?: ReactNode;
26
+ /** Label shown before there's a value. @default 'Please enter a password' */
27
+ promptLabel?: string;
28
+ /** @default 'Weak' */
29
+ weakLabel?: string;
30
+ /** @default 'Medium' */
31
+ mediumLabel?: string;
32
+ /** @default 'Strong' */
33
+ strongLabel?: string;
34
+ /** Regex (as a string) a value must match to count as at least 'medium'. */
35
+ mediumRegex?: string;
36
+ /** Regex (as a string) a value must match to count as 'strong'. */
37
+ strongRegex?: string;
38
+ }
39
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Password, PasswordFooterItem } from './Password';
2
+ export type { PasswordProperties } from './Password.types';
@@ -0,0 +1,5 @@
1
+ import { P as a, a as r } from "../shared/Password-vADi8ZJz.js";
2
+ export {
3
+ a as Password,
4
+ r as PasswordFooterItem
5
+ };
@@ -1,4 +1,4 @@
1
- import { S as a } from "../shared/SearchField-DuA4ZkBL.js";
1
+ import { S as a } from "../shared/SearchField-9bL2s8zj.js";
2
2
  export {
3
3
  a as SearchField
4
4
  };
@@ -1,4 +1,4 @@
1
- import { S as o } from "../shared/SelectField-DNlX8uuG.js";
1
+ import { S as o } from "../shared/SelectField-dNCMdSYU.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-Dfn6EUcz.js";
3
+ import { C as c } from "./icons-bQxPPV8R.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" : ""}
@@ -0,0 +1,52 @@
1
+ import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
+ import { B as d } from "./Button-AfMqNCme.js";
3
+ import { a as o } from "./icons-bQxPPV8R.js";
4
+ const c = `
5
+ mare:w-full mare:max-w-md mare:rounded-tpc-container-s mare:p-4
6
+ mare:flex mare:items-start mare:justify-between mare:gap-4
7
+ mare:data-severity-neutral:bg-alternative
8
+ mare:data-severity-brand:bg-accent-weak
9
+ mare:data-severity-positive:bg-positive-weak
10
+ mare:data-severity-warning:bg-warning-weak
11
+ mare:data-severity-danger:bg-danger-weak
12
+ `, p = "mare:flex mare:grow mare:items-start mare:gap-4", g = "mare:shrink-0 mare:text-default mare:[&>svg]:size-3.5", f = "mare:flex mare:grow mare:flex-col mare:gap-2", v = "mare:tpc-typography-label-m mare:text-default", y = (e) => `mare:tpc-typography-body-s ${e ? "mare:text-disabled" : "mare:text-default"}`, x = (e, r) => r ? "disabled" : e;
13
+ function h({
14
+ severity: e = "neutral",
15
+ title: r,
16
+ icon: m,
17
+ disabled: s = !1,
18
+ closable: l = !1,
19
+ onClose: n,
20
+ children: i
21
+ }) {
22
+ return /* @__PURE__ */ t(
23
+ "div",
24
+ {
25
+ className: c,
26
+ "data-severity": x(e, s),
27
+ children: [
28
+ /* @__PURE__ */ t("div", { className: p, children: [
29
+ m && /* @__PURE__ */ a("span", { className: g, children: m }),
30
+ /* @__PURE__ */ t("div", { className: f, children: [
31
+ r && /* @__PURE__ */ a("p", { className: v, children: r }),
32
+ i && /* @__PURE__ */ a("div", { className: y(s), children: i })
33
+ ] })
34
+ ] }),
35
+ l && /* @__PURE__ */ a(
36
+ d,
37
+ {
38
+ severity: "ghost",
39
+ iconOnly: !0,
40
+ size: "xsmall",
41
+ icon: /* @__PURE__ */ a(o, {}),
42
+ onClick: n,
43
+ "aria-label": "Close"
44
+ }
45
+ )
46
+ ]
47
+ }
48
+ );
49
+ }
50
+ export {
51
+ h as B
52
+ };
@@ -1,6 +1,6 @@
1
- import { jsxs as m, jsx as a } from "react/jsx-runtime";
2
- import { Checkbox as e } from "@ark-ui/react/checkbox";
3
- import { a as f, M as x } from "./icons-Dfn6EUcz.js";
1
+ import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
+ import { Checkbox as a } from "@ark-ui/react/checkbox";
3
+ import { b as f, M as x } from "./icons-bQxPPV8R.js";
4
4
  const v = `
5
5
  mare:group/checkbox
6
6
  mare:relative mare:inline-flex mare:items-center mare:gap-2
@@ -68,7 +68,7 @@ function M({
68
68
  id: u
69
69
  }) {
70
70
  return /* @__PURE__ */ m(
71
- e.Root,
71
+ a.Root,
72
72
  {
73
73
  checked: s,
74
74
  defaultChecked: l,
@@ -87,24 +87,24 @@ function M({
87
87
  "data-size": r,
88
88
  children: [
89
89
  /* @__PURE__ */ m(
90
- e.Control,
90
+ a.Control,
91
91
  {
92
92
  className: y,
93
93
  "data-size": r,
94
94
  children: [
95
- /* @__PURE__ */ a(e.Indicator, { className: i, children: /* @__PURE__ */ a(
95
+ /* @__PURE__ */ e(a.Indicator, { className: i, children: /* @__PURE__ */ e(
96
96
  f,
97
97
  {
98
98
  className: t,
99
99
  "data-size": r
100
100
  }
101
101
  ) }),
102
- /* @__PURE__ */ a(
103
- e.Indicator,
102
+ /* @__PURE__ */ e(
103
+ a.Indicator,
104
104
  {
105
105
  indeterminate: !0,
106
106
  className: i,
107
- children: /* @__PURE__ */ a(
107
+ children: /* @__PURE__ */ e(
108
108
  x,
109
109
  {
110
110
  className: t,
@@ -116,15 +116,15 @@ function M({
116
116
  ]
117
117
  }
118
118
  ),
119
- d && /* @__PURE__ */ a(
120
- e.Label,
119
+ d && /* @__PURE__ */ e(
120
+ a.Label,
121
121
  {
122
122
  className: w,
123
123
  "data-size": r,
124
124
  children: d
125
125
  }
126
126
  ),
127
- /* @__PURE__ */ a(e.HiddenInput, { className: C })
127
+ /* @__PURE__ */ e(a.HiddenInput, { className: C })
128
128
  ]
129
129
  }
130
130
  );
@@ -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 { b as A, C as B, S as F, a as G } from "./icons-Dfn6EUcz.js";
4
+ import { c as A, C as B, S as F, b as G } from "./icons-bQxPPV8R.js";
5
5
  const H = {
6
6
  small: "mare:h-10",
7
7
  medium: "mare:h-12"
@@ -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 { h as pr, b as $r, d as gr, e as br } from "./icons-Dfn6EUcz.js";
5
+ import { i as pr, c as $r, e as gr, f as br } from "./icons-bQxPPV8R.js";
6
6
  function O(e, r) {
7
7
  return e - r * Math.floor(e / r);
8
8
  }
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as i } from "react/jsx-runtime";
2
2
  import { Dialog as o } from "@ark-ui/react/dialog";
3
3
  import { Portal as w } from "@ark-ui/react/portal";
4
4
  import { B as n } from "./Button-AfMqNCme.js";
5
- import { g as _ } from "./icons-Dfn6EUcz.js";
5
+ import { a as _ } from "./icons-bQxPPV8R.js";
6
6
  const k = (e) => `
7
7
  mare:fixed mare:inset-0 mare:z-40
8
8
  ${e ?? "mare:bg-overlay"}
@@ -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 { g as y } from "./icons-Dfn6EUcz.js";
5
+ import { a as y } from "./icons-bQxPPV8R.js";
6
6
  const _ = (e) => {
7
7
  switch (e) {
8
8
  case "left":
@@ -0,0 +1,72 @@
1
+ import { jsxs as I, jsx as m } from "react/jsx-runtime";
2
+ import { PinInput as a } from "@ark-ui/react/pin-input";
3
+ const j = "mare:flex mare:items-center mare:gap-2", w = {
4
+ small: "mare:w-10 mare:h-10 mare:px-3",
5
+ medium: "mare:w-12 mare:h-12 mare:px-3.5",
6
+ large: "mare:w-14 mare:h-14 mare:px-3"
7
+ }, k = (e) => `
8
+ mare:text-center mare:tpc-typography-body-m
9
+ mare:appearance-none mare:rounded-input mare:outline-none
10
+ mare:text-default mare:placeholder:text-weak
11
+ mare:border mare:border-strong
12
+ mare:enabled:focus:border-2 mare:enabled:focus:border-accent
13
+ mare:disabled:text-disabled mare:disabled:border-disabled-default
14
+ mare:ark-invalid:border-2 mare:ark-invalid:border-danger
15
+ mare:transition-colors mare:duration-200
16
+ ${w[e]}
17
+ `, d = (e) => Array.from(e);
18
+ function V({
19
+ length: e = 4,
20
+ value: o,
21
+ defaultValue: t,
22
+ onValueChange: i,
23
+ onComplete: l,
24
+ size: s = "medium",
25
+ mask: u = !1,
26
+ integerOnly: p = !0,
27
+ placeholder: c = "",
28
+ invalid: b,
29
+ disabled: f,
30
+ readOnly: x,
31
+ required: h,
32
+ autoFocus: v,
33
+ name: y,
34
+ id: g
35
+ }) {
36
+ const C = k(s);
37
+ return /* @__PURE__ */ I(
38
+ a.Root,
39
+ {
40
+ id: g,
41
+ count: e,
42
+ value: o === void 0 ? void 0 : d(o),
43
+ defaultValue: t === void 0 ? void 0 : d(t),
44
+ otp: !0,
45
+ mask: u,
46
+ placeholder: c,
47
+ type: p ? "numeric" : "alphanumeric",
48
+ invalid: b,
49
+ disabled: f,
50
+ readOnly: x,
51
+ required: h,
52
+ autoFocus: v,
53
+ name: y,
54
+ onValueChange: (r) => i?.(r.value.join("")),
55
+ onValueComplete: (r) => l?.(r.value.join("")),
56
+ children: [
57
+ /* @__PURE__ */ m(a.Control, { className: j, children: Array.from({ length: e }, (r, n) => /* @__PURE__ */ m(
58
+ a.Input,
59
+ {
60
+ index: n,
61
+ className: C
62
+ },
63
+ n
64
+ )) }),
65
+ /* @__PURE__ */ m(a.HiddenInput, {})
66
+ ]
67
+ }
68
+ );
69
+ }
70
+ export {
71
+ V as I
72
+ };
@@ -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-DNlX8uuG.js";
6
- import { c as N, d as k, e as W, f as I } from "./icons-Dfn6EUcz.js";
5
+ import { S as j } from "./SelectField-dNCMdSYU.js";
6
+ import { d as N, e as k, f as W, g as I } from "./icons-bQxPPV8R.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-Dfn6EUcz.js";
4
+ import { C as b } from "./icons-bQxPPV8R.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