@treeal/ds 0.2.1 → 0.2.2

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 (64) hide show
  1. package/dist/components/Input/Input.d.ts.map +1 -1
  2. package/dist/index.cjs10.js +1 -1
  3. package/dist/index.cjs10.js.map +1 -1
  4. package/dist/index.cjs11.js +1 -1
  5. package/dist/index.cjs12.js +1 -1
  6. package/dist/index.cjs13.js +1 -1
  7. package/dist/index.cjs14.js +1 -1
  8. package/dist/index.cjs15.js +1 -1
  9. package/dist/index.cjs16.js +1 -1
  10. package/dist/index.cjs17.js +1 -1
  11. package/dist/index.cjs18.js +1 -1
  12. package/dist/index.cjs19.js +1 -1
  13. package/dist/index.cjs20.js +1 -1
  14. package/dist/index.cjs21.js +1 -1
  15. package/dist/index.cjs22.js +1 -1
  16. package/dist/index.cjs23.js +1 -1
  17. package/dist/index.cjs24.js +1 -1
  18. package/dist/index.cjs25.js +1 -1
  19. package/dist/index.cjs26.js +1 -1
  20. package/dist/index.cjs27.js +1 -1
  21. package/dist/index.cjs28.js +1 -1
  22. package/dist/index.cjs29.js +1 -1
  23. package/dist/index.cjs5.js +1 -1
  24. package/dist/index.cjs6.js +1 -1
  25. package/dist/index.cjs7.js +1 -1
  26. package/dist/index.cjs8.js +1 -1
  27. package/dist/index.esm10.js +81 -75
  28. package/dist/index.esm10.js.map +1 -1
  29. package/dist/index.esm11.js +1 -1
  30. package/dist/index.esm12.js +1 -1
  31. package/dist/index.esm13.js +1 -1
  32. package/dist/index.esm14.js +1 -1
  33. package/dist/index.esm15.js +1 -1
  34. package/dist/index.esm16.js +1 -1
  35. package/dist/index.esm17.js +1 -1
  36. package/dist/index.esm18.js +40 -22
  37. package/dist/index.esm18.js.map +1 -1
  38. package/dist/index.esm19.js +22 -102
  39. package/dist/index.esm19.js.map +1 -1
  40. package/dist/index.esm20.js +46 -20
  41. package/dist/index.esm20.js.map +1 -1
  42. package/dist/index.esm21.js +21 -19
  43. package/dist/index.esm21.js.map +1 -1
  44. package/dist/index.esm22.js +22 -60
  45. package/dist/index.esm22.js.map +1 -1
  46. package/dist/index.esm23.js +102 -38
  47. package/dist/index.esm23.js.map +1 -1
  48. package/dist/index.esm24.js +38 -60
  49. package/dist/index.esm24.js.map +1 -1
  50. package/dist/index.esm25.js +20 -12
  51. package/dist/index.esm25.js.map +1 -1
  52. package/dist/index.esm26.js +12 -40
  53. package/dist/index.esm26.js.map +1 -1
  54. package/dist/index.esm27.js +20 -46
  55. package/dist/index.esm27.js.map +1 -1
  56. package/dist/index.esm28.js +60 -22
  57. package/dist/index.esm28.js.map +1 -1
  58. package/dist/index.esm29.js +60 -22
  59. package/dist/index.esm29.js.map +1 -1
  60. package/dist/index.esm5.js +1 -1
  61. package/dist/index.esm6.js +1 -1
  62. package/dist/index.esm7.js +1 -1
  63. package/dist/index.esm8.js +1 -1
  64. package/package.json +1 -1
@@ -1,139 +1,145 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { useId as S, useState as x } from "react";
3
- import r from "./index.esm26.js";
4
- function z() {
5
- return /* @__PURE__ */ n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { useId as y, useState as A, useRef as D } from "react";
3
+ import r from "./index.esm18.js";
4
+ function R() {
5
+ return /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
6
6
  /* @__PURE__ */ e("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }),
7
7
  /* @__PURE__ */ e("polyline", { points: "22,6 12,13 2,6", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" })
8
8
  ] });
9
9
  }
10
- function H() {
11
- return /* @__PURE__ */ n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
10
+ function S() {
11
+ return /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
12
12
  /* @__PURE__ */ e("circle", { cx: "11", cy: "11", r: "7", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round" }),
13
13
  /* @__PURE__ */ e("path", { d: "M16.5 16.5L21 21", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round" })
14
14
  ] });
15
15
  }
16
- function O() {
17
- return /* @__PURE__ */ n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
16
+ function P() {
17
+ return /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
18
18
  /* @__PURE__ */ e("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }),
19
19
  /* @__PURE__ */ e("path", { d: "M16 2v4M8 2v4M3 10h18", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" })
20
20
  ] });
21
21
  }
22
- function P() {
23
- return /* @__PURE__ */ n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
22
+ function z() {
23
+ return /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
24
24
  /* @__PURE__ */ e("rect", { x: "5", y: "11", width: "14", height: "11", rx: "2", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }),
25
25
  /* @__PURE__ */ e("path", { d: "M8 11V7a4 4 0 0 1 8 0v4", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" })
26
26
  ] });
27
27
  }
28
- function R() {
29
- return /* @__PURE__ */ n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
28
+ function H() {
29
+ return /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
30
30
  /* @__PURE__ */ e("path", { d: "M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }),
31
31
  /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "3", stroke: "currentColor", strokeWidth: "1.75" })
32
32
  ] });
33
33
  }
34
- function V() {
35
- return /* @__PURE__ */ n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
34
+ function O() {
35
+ return /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
36
36
  /* @__PURE__ */ e("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }),
37
37
  /* @__PURE__ */ e("path", { d: "M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }),
38
38
  /* @__PURE__ */ e("path", { d: "M1 1l22 22", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round" })
39
39
  ] });
40
40
  }
41
- function G({
42
- state: d = "Default",
43
- size: g = "md",
41
+ function q({
42
+ state: i = "Default",
43
+ size: m = "md",
44
44
  inputType: o = "text",
45
- label: k,
46
- placeholder: b,
47
- message: c,
48
- iconLabel: f,
49
- iconLeft: C,
50
- iconRight: B,
51
- value: v,
52
- onChange: j,
53
- onSearch: I,
54
- id: W,
55
- className: M,
56
- ...t
45
+ label: h,
46
+ placeholder: w,
47
+ message: d,
48
+ iconLabel: u,
49
+ iconLeft: b,
50
+ iconRight: L,
51
+ value: g,
52
+ onChange: x,
53
+ onSearch: C,
54
+ id: j,
55
+ className: I,
56
+ ...B
57
57
  }) {
58
- const N = S(), a = W ?? N, [l, E] = x(!1), [F, m] = x(!1), h = d === "Disabled", u = d === "Error", D = o === "password" ? l ? "text" : "password" : o === "search" ? "text" : o === "date" ? F || v ? "date" : "text" : o, w = C ?? (o === "email" ? /* @__PURE__ */ e(z, {}) : o === "password" ? /* @__PURE__ */ e(P, {}) : void 0), L = B ?? (o === "password" ? /* @__PURE__ */ e(
58
+ const W = y(), s = j ?? W, [a, M] = A(!1), k = D(null), c = i === "Disabled", l = i === "Error", N = o === "password" ? a ? "text" : "password" : o === "search" ? "text" : o, f = b ?? (o === "email" ? /* @__PURE__ */ e(R, {}) : o === "password" ? /* @__PURE__ */ e(z, {}) : void 0), v = L ?? (o === "password" ? /* @__PURE__ */ e(
59
+ "button",
60
+ {
61
+ type: "button",
62
+ className: r.toggleBtn,
63
+ onClick: () => M((n) => !n),
64
+ "aria-label": a ? "Ocultar senha" : "Mostrar senha",
65
+ tabIndex: -1,
66
+ children: a ? /* @__PURE__ */ e(H, {}) : /* @__PURE__ */ e(O, {})
67
+ }
68
+ ) : o === "date" ? /* @__PURE__ */ e(
59
69
  "button",
60
70
  {
61
71
  type: "button",
62
72
  className: r.toggleBtn,
63
- onClick: () => E((i) => !i),
64
- "aria-label": l ? "Ocultar senha" : "Mostrar senha",
73
+ onClick: () => {
74
+ var n, p;
75
+ return (p = (n = k.current) == null ? void 0 : n.showPicker) == null ? void 0 : p.call(n);
76
+ },
77
+ "aria-label": "Abrir calendário",
65
78
  tabIndex: -1,
66
- children: l ? /* @__PURE__ */ e(R, {}) : /* @__PURE__ */ e(V, {})
79
+ children: /* @__PURE__ */ e(P, {})
67
80
  }
68
- ) : o === "date" ? /* @__PURE__ */ e(O, {}) : o === "search" ? /* @__PURE__ */ e(
81
+ ) : o === "search" ? /* @__PURE__ */ e(
69
82
  "button",
70
83
  {
71
84
  type: "button",
72
85
  className: r.searchBtn,
73
- onClick: I,
86
+ onClick: C,
74
87
  "aria-label": "Buscar",
75
88
  tabIndex: -1,
76
- children: /* @__PURE__ */ e(H, {})
89
+ children: /* @__PURE__ */ e(S, {})
77
90
  }
78
- ) : void 0), A = [
91
+ ) : void 0), E = [
79
92
  r.field,
80
- g === "sm" ? r.fieldSm : r.fieldMd,
81
- d === "Hover" ? r.hover : "",
82
- d === "Active" ? r.active : "",
83
- h ? r.disabled : "",
84
- u ? r.error : "",
85
- M
93
+ m === "sm" ? r.fieldSm : r.fieldMd,
94
+ i === "Hover" ? r.hover : "",
95
+ i === "Active" ? r.active : "",
96
+ c ? r.disabled : "",
97
+ l ? r.error : "",
98
+ I
86
99
  ].filter(Boolean).join(" ");
87
- return /* @__PURE__ */ n("div", { className: r.wrapper, children: [
88
- k && /* @__PURE__ */ n("div", { className: r.labelRow, children: [
100
+ return /* @__PURE__ */ t("div", { className: r.wrapper, children: [
101
+ h && /* @__PURE__ */ t("div", { className: r.labelRow, children: [
89
102
  /* @__PURE__ */ e(
90
103
  "label",
91
104
  {
92
- htmlFor: a,
93
- className: [r.label, h ? r.labelDisabled : ""].filter(Boolean).join(" "),
94
- children: k
105
+ htmlFor: s,
106
+ className: [r.label, c ? r.labelDisabled : ""].filter(Boolean).join(" "),
107
+ children: h
95
108
  }
96
109
  ),
97
- f && /* @__PURE__ */ e("span", { className: r.labelIcon, "aria-hidden": "true", children: f })
110
+ u && /* @__PURE__ */ e("span", { className: r.labelIcon, "aria-hidden": "true", children: u })
98
111
  ] }),
99
- /* @__PURE__ */ n("div", { className: A, children: [
100
- w && /* @__PURE__ */ e("span", { className: r.icon, "aria-hidden": "true", children: w }),
112
+ /* @__PURE__ */ t("div", { className: E, children: [
113
+ f && /* @__PURE__ */ e("span", { className: r.icon, "aria-hidden": "true", children: f }),
101
114
  /* @__PURE__ */ e(
102
115
  "input",
103
116
  {
104
- id: a,
105
- type: D,
117
+ ref: k,
118
+ id: s,
119
+ type: N,
106
120
  className: r.input,
107
- placeholder: b,
108
- disabled: h,
109
- value: v,
110
- onChange: j,
111
- onFocus: o === "date" ? (i) => {
112
- var s;
113
- m(!0), (s = t.onFocus) == null || s.call(t, i);
114
- } : t.onFocus,
115
- onBlur: o === "date" ? (i) => {
116
- var s;
117
- m(!1), (s = t.onBlur) == null || s.call(t, i);
118
- } : t.onBlur,
119
- "aria-invalid": u,
120
- "aria-describedby": c ? `${a}-message` : void 0,
121
- ...t
121
+ placeholder: w,
122
+ disabled: c,
123
+ value: g,
124
+ onChange: x,
125
+ "aria-invalid": l,
126
+ "aria-describedby": d ? `${s}-message` : void 0,
127
+ ...B
122
128
  }
123
129
  ),
124
- L && /* @__PURE__ */ e("span", { className: [r.icon, o === "search" || o === "password" ? r.iconAction : ""].filter(Boolean).join(" "), children: L })
130
+ v && /* @__PURE__ */ e("span", { className: [r.icon, o === "search" || o === "password" ? r.iconAction : ""].filter(Boolean).join(" "), children: v })
125
131
  ] }),
126
- c && /* @__PURE__ */ e(
132
+ d && /* @__PURE__ */ e(
127
133
  "p",
128
134
  {
129
- id: `${a}-message`,
130
- className: [r.message, u ? r.messageError : ""].filter(Boolean).join(" "),
131
- children: c
135
+ id: `${s}-message`,
136
+ className: [r.message, l ? r.messageError : ""].filter(Boolean).join(" "),
137
+ children: d
132
138
  }
133
139
  )
134
140
  ] });
135
141
  }
136
142
  export {
137
- G as Input
143
+ q as Input
138
144
  };
139
145
  //# sourceMappingURL=index.esm10.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm10.js","sources":["../components/Input/Input.tsx"],"sourcesContent":["import React, { useId, useState } from 'react';\nimport styles from './Input.module.css';\n\nexport type InputState = 'Default' | 'Hover' | 'Active' | 'Disabled' | 'Error';\nexport type InputType = 'text' | 'email' | 'password' | 'search' | 'date';\nexport type InputSize = 'sm' | 'md';\n\n// ─── Built-in SVG icons ───────────────────────────────────────────────────────\n\nfunction IconEmail() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <polyline points=\"22,6 12,13 2,6\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </svg>\n );\n}\n\nfunction IconSearch() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <circle cx=\"11\" cy=\"11\" r=\"7\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\"/>\n <path d=\"M16.5 16.5L21 21\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\"/>\n </svg>\n );\n}\n\nfunction IconCalendar() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M16 2v4M8 2v4M3 10h18\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </svg>\n );\n}\n\nfunction IconLock() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"5\" y=\"11\" width=\"14\" height=\"11\" rx=\"2\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M8 11V7a4 4 0 0 1 8 0v4\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </svg>\n );\n}\n\nfunction IconEye() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <circle cx=\"12\" cy=\"12\" r=\"3\" stroke=\"currentColor\" strokeWidth=\"1.75\"/>\n </svg>\n );\n}\n\nfunction IconEyeOff() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M1 1l22 22\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\"/>\n </svg>\n );\n}\n\n// ─── Types ────────────────────────────────────────────────────────────────────\n\nexport interface InputProps\n extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'type' | 'size'> {\n /** Visual/interaction state. Defaults to 'Default'. */\n state?: InputState;\n /** Size variant. sm = 36px height, md = 48px height. Defaults to 'md'. */\n size?: InputSize;\n /**\n * Semantic input type. Sets the correct HTML type and auto-adds icons.\n * - email → envelope icon left\n * - password → lock icon left + show/hide toggle right\n * - search → search icon left + green search button right\n * - date → calendar icon right\n */\n inputType?: InputType;\n /** Label text rendered above the field. */\n label?: string;\n placeholder?: string;\n /** Helper or error message rendered below the field. */\n message?: string;\n /** Info icon rendered beside the label. */\n iconLabel?: React.ReactNode;\n /** Icon rendered inside the field, left side (24×24 slot). */\n iconLeft?: React.ReactNode;\n /** Icon rendered inside the field, right side (24×24 slot). */\n iconRight?: React.ReactNode;\n value?: string;\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;\n /** Called when search button is clicked (only for inputType=\"search\") */\n onSearch?: () => void;\n}\n\n// ─── Component ────────────────────────────────────────────────────────────────\n\nexport function Input({\n state = 'Default',\n size = 'md',\n inputType = 'text',\n label,\n placeholder,\n message,\n iconLabel,\n iconLeft,\n iconRight,\n value,\n onChange,\n onSearch,\n id: idProp,\n className,\n ...props\n}: InputProps) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n const [showPassword, setShowPassword] = useState(false);\n const [dateFocused, setDateFocused] = useState(false);\n\n const isDisabled = state === 'Disabled';\n const isError = state === 'Error';\n\n // ── Resolve HTML type ──────────────────────────────────────────────────────\n const htmlType = inputType === 'password'\n ? (showPassword ? 'text' : 'password')\n : inputType === 'search'\n ? 'text'\n : inputType === 'date'\n ? (dateFocused || !!value ? 'date' : 'text')\n : inputType;\n\n // ── Resolve built-in icons ─────────────────────────────────────────────────\n const resolvedIconLeft: React.ReactNode =\n iconLeft ??\n (inputType === 'email' ? <IconEmail /> :\n inputType === 'password' ? <IconLock /> :\n undefined);\n\n const resolvedIconRight: React.ReactNode =\n iconRight ??\n (inputType === 'password'\n ? (\n <button\n type=\"button\"\n className={styles.toggleBtn}\n onClick={() => setShowPassword((v) => !v)}\n aria-label={showPassword ? 'Ocultar senha' : 'Mostrar senha'}\n tabIndex={-1}\n >\n {showPassword ? <IconEye /> : <IconEyeOff />}\n </button>\n )\n : inputType === 'date'\n ? <IconCalendar />\n : inputType === 'search'\n ? (\n <button\n type=\"button\"\n className={styles.searchBtn}\n onClick={onSearch}\n aria-label=\"Buscar\"\n tabIndex={-1}\n >\n <IconSearch />\n </button>\n )\n : undefined);\n\n const fieldClass = [\n styles.field,\n size === 'sm' ? styles.fieldSm : styles.fieldMd,\n state === 'Hover' ? styles.hover : '',\n state === 'Active' ? styles.active : '',\n isDisabled ? styles.disabled : '',\n isError ? styles.error : '',\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div className={styles.wrapper}>\n {label && (\n <div className={styles.labelRow}>\n <label\n htmlFor={id}\n className={[styles.label, isDisabled ? styles.labelDisabled : '']\n .filter(Boolean)\n .join(' ')}\n >\n {label}\n </label>\n {iconLabel && (\n <span className={styles.labelIcon} aria-hidden=\"true\">\n {iconLabel}\n </span>\n )}\n </div>\n )}\n\n <div className={fieldClass}>\n {resolvedIconLeft && (\n <span className={styles.icon} aria-hidden=\"true\">\n {resolvedIconLeft}\n </span>\n )}\n <input\n id={id}\n type={htmlType}\n className={styles.input}\n placeholder={placeholder}\n disabled={isDisabled}\n value={value}\n onChange={onChange}\n onFocus={inputType === 'date' ? (e) => { setDateFocused(true); props.onFocus?.(e); } : props.onFocus}\n onBlur={inputType === 'date' ? (e) => { setDateFocused(false); props.onBlur?.(e); } : props.onBlur}\n aria-invalid={isError}\n aria-describedby={message ? `${id}-message` : undefined}\n {...props}\n />\n {resolvedIconRight && (\n <span className={[styles.icon, inputType === 'search' || inputType === 'password' ? styles.iconAction : ''].filter(Boolean).join(' ')}>\n {resolvedIconRight}\n </span>\n )}\n </div>\n\n {message && (\n <p\n id={`${id}-message`}\n className={[styles.message, isError ? styles.messageError : '']\n .filter(Boolean)\n .join(' ')}\n >\n {message}\n </p>\n )}\n </div>\n );\n}\n"],"names":["IconEmail","jsxs","jsx","IconSearch","IconCalendar","IconLock","IconEye","IconEyeOff","Input","state","size","inputType","label","placeholder","message","iconLabel","iconLeft","iconRight","value","onChange","onSearch","idProp","className","props","generatedId","useId","id","showPassword","setShowPassword","useState","dateFocused","setDateFocused","isDisabled","isError","htmlType","resolvedIconLeft","resolvedIconRight","styles","v","fieldClass","e","_a"],"mappings":";;;AASA,SAASA,IAAY;AACnB,SACE,gBAAAC,EAAC,O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U,IAAAlB,EAAM,WAAN,QAAAkB,EAAA,KAAAlB,GAAeiB;AAAA,UAAI,IAAIjB,EAAM;AAAA,UAC7F,gBAAcU;AAAA,UACd,oBAAkBnB,IAAU,GAAGY,CAAE,aAAa;AAAA,UAC7C,GAAGH;AAAA,QAAA;AAAA,MAAA;AAAA,MAELa,uBACE,QAAA,EAAK,WAAW,CAACC,EAAO,MAAM1B,MAAc,YAAYA,MAAc,aAAa0B,EAAO,aAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,GACjI,UAAAD,EAAA,CACH;AAAA,IAAA,GAEJ;AAAA,IAECtB,KACC,gBAAAZ;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,IAAI,GAAGwB,CAAE;AAAA,QACT,WAAW,CAACW,EAAO,SAASJ,IAAUI,EAAO,eAAe,EAAE,EAC3D,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,QAEV,UAAAvB;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,GAEJ;AAEJ;"}
1
+ {"version":3,"file":"index.esm10.js","sources":["../components/Input/Input.tsx"],"sourcesContent":["import React, { useId, useRef, useState } from 'react';\nimport styles from './Input.module.css';\n\nexport type InputState = 'Default' | 'Hover' | 'Active' | 'Disabled' | 'Error';\nexport type InputType = 'text' | 'email' | 'password' | 'search' | 'date';\nexport type InputSize = 'sm' | 'md';\n\n// ─── Built-in SVG icons ───────────────────────────────────────────────────────\n\nfunction IconEmail() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <polyline points=\"22,6 12,13 2,6\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </svg>\n );\n}\n\nfunction IconSearch() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <circle cx=\"11\" cy=\"11\" r=\"7\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\"/>\n <path d=\"M16.5 16.5L21 21\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\"/>\n </svg>\n );\n}\n\nfunction IconCalendar() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M16 2v4M8 2v4M3 10h18\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </svg>\n );\n}\n\nfunction IconLock() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"5\" y=\"11\" width=\"14\" height=\"11\" rx=\"2\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M8 11V7a4 4 0 0 1 8 0v4\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </svg>\n );\n}\n\nfunction IconEye() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <circle cx=\"12\" cy=\"12\" r=\"3\" stroke=\"currentColor\" strokeWidth=\"1.75\"/>\n </svg>\n );\n}\n\nfunction IconEyeOff() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M1 1l22 22\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\"/>\n </svg>\n );\n}\n\n// ─── Types ────────────────────────────────────────────────────────────────────\n\nexport interface InputProps\n extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'type' | 'size'> {\n /** Visual/interaction state. Defaults to 'Default'. */\n state?: InputState;\n /** Size variant. sm = 36px height, md = 48px height. Defaults to 'md'. */\n size?: InputSize;\n /**\n * Semantic input type. Sets the correct HTML type and auto-adds icons.\n * - email → envelope icon left\n * - password → lock icon left + show/hide toggle right\n * - search → search icon left + green search button right\n * - date → calendar icon right\n */\n inputType?: InputType;\n /** Label text rendered above the field. */\n label?: string;\n placeholder?: string;\n /** Helper or error message rendered below the field. */\n message?: string;\n /** Info icon rendered beside the label. */\n iconLabel?: React.ReactNode;\n /** Icon rendered inside the field, left side (24×24 slot). */\n iconLeft?: React.ReactNode;\n /** Icon rendered inside the field, right side (24×24 slot). */\n iconRight?: React.ReactNode;\n value?: string;\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;\n /** Called when search button is clicked (only for inputType=\"search\") */\n onSearch?: () => void;\n}\n\n// ─── Component ────────────────────────────────────────────────────────────────\n\nexport function Input({\n state = 'Default',\n size = 'md',\n inputType = 'text',\n label,\n placeholder,\n message,\n iconLabel,\n iconLeft,\n iconRight,\n value,\n onChange,\n onSearch,\n id: idProp,\n className,\n ...props\n}: InputProps) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n const [showPassword, setShowPassword] = useState(false);\n const inputRef = useRef<HTMLInputElement>(null);\n\n const isDisabled = state === 'Disabled';\n const isError = state === 'Error';\n\n // ── Resolve HTML type ──────────────────────────────────────────────────────\n const htmlType = inputType === 'password'\n ? (showPassword ? 'text' : 'password')\n : inputType === 'search'\n ? 'text'\n : inputType;\n\n // ── Resolve built-in icons ─────────────────────────────────────────────────\n const resolvedIconLeft: React.ReactNode =\n iconLeft ??\n (inputType === 'email' ? <IconEmail /> :\n inputType === 'password' ? <IconLock /> :\n undefined);\n\n const resolvedIconRight: React.ReactNode =\n iconRight ??\n (inputType === 'password'\n ? (\n <button\n type=\"button\"\n className={styles.toggleBtn}\n onClick={() => setShowPassword((v) => !v)}\n aria-label={showPassword ? 'Ocultar senha' : 'Mostrar senha'}\n tabIndex={-1}\n >\n {showPassword ? <IconEye /> : <IconEyeOff />}\n </button>\n )\n : inputType === 'date'\n ? (\n <button\n type=\"button\"\n className={styles.toggleBtn}\n onClick={() => inputRef.current?.showPicker?.()}\n aria-label=\"Abrir calendário\"\n tabIndex={-1}\n >\n <IconCalendar />\n </button>\n )\n : inputType === 'search'\n ? (\n <button\n type=\"button\"\n className={styles.searchBtn}\n onClick={onSearch}\n aria-label=\"Buscar\"\n tabIndex={-1}\n >\n <IconSearch />\n </button>\n )\n : undefined);\n\n const fieldClass = [\n styles.field,\n size === 'sm' ? styles.fieldSm : styles.fieldMd,\n state === 'Hover' ? styles.hover : '',\n state === 'Active' ? styles.active : '',\n isDisabled ? styles.disabled : '',\n isError ? styles.error : '',\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div className={styles.wrapper}>\n {label && (\n <div className={styles.labelRow}>\n <label\n htmlFor={id}\n className={[styles.label, isDisabled ? styles.labelDisabled : '']\n .filter(Boolean)\n .join(' ')}\n >\n {label}\n </label>\n {iconLabel && (\n <span className={styles.labelIcon} aria-hidden=\"true\">\n {iconLabel}\n </span>\n )}\n </div>\n )}\n\n <div className={fieldClass}>\n {resolvedIconLeft && (\n <span className={styles.icon} aria-hidden=\"true\">\n {resolvedIconLeft}\n </span>\n )}\n <input\n ref={inputRef}\n id={id}\n type={htmlType}\n className={styles.input}\n placeholder={placeholder}\n disabled={isDisabled}\n value={value}\n onChange={onChange}\n aria-invalid={isError}\n aria-describedby={message ? `${id}-message` : undefined}\n {...props}\n />\n {resolvedIconRight && (\n <span className={[styles.icon, inputType === 'search' || inputType === 'password' ? styles.iconAction : ''].filter(Boolean).join(' ')}>\n {resolvedIconRight}\n </span>\n )}\n </div>\n\n {message && (\n <p\n id={`${id}-message`}\n className={[styles.message, isError ? styles.messageError : '']\n .filter(Boolean)\n .join(' ')}\n >\n {message}\n </p>\n )}\n </div>\n );\n}\n"],"names":["IconEmail","jsxs","jsx","IconSearch","IconCalendar","IconLock","IconEye","IconEyeOff","Input","state","size","inputType","label","placeholder","message","iconLabel","iconLeft","iconRight","value","onChange","onSearch","idProp","className","props","generatedId","useId","id","showPassword","setShowPassword","useState","inputRef","useRef","isDisabled","isError","htmlType","resolvedIconLeft","resolvedIconRight","styles","v","_b","_a","fieldClass"],"mappings":";;;AASA,SAASA,IAAY;AACnB,SACE,gBAAAC,EAAC,OAAA,EAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,eAAY,QACtE,UAAA;AAAA,IAAA,gBAAAC,EAAC,QAAA,EAAK,GAAE,+EAA8E,QAAO,gBAAe,aAAY,QAAO,eAAc,SAAQ,gBAAe,QAAA,CAAO;AAAA,IAC3K,gBAAAA,EAAC,YAAA,EAAS,QAAO,kBAAiB,QAAO,gBAAe,aAAY,QAAO,eAAc,SAAQ,gBAAe,QAAA,CAAO;AAAA,EAAA,GACzH;AAEJ;AAEA,SAASC,IAAa;AACpB,SACE,gBAAAF,EAAC,OAAA,EAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO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EAC3D,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,QAEV,UAAAvB;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,GAEJ;AAEJ;"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as l, jsxs as r } from "react/jsx-runtime";
2
2
  import { useCallback as u, useEffect as v } from "react";
3
- import e from "./index.esm28.js";
3
+ import e from "./index.esm21.js";
4
4
  function k({
5
5
  isOpen: d,
6
6
  title: m,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as l, jsx as a } from "react/jsx-runtime";
2
- import e from "./index.esm19.js";
2
+ import e from "./index.esm23.js";
3
3
  function m() {
4
4
  return /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ a("path", { d: "M6 12l4-4-4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { jsxs as a, jsx as n } from "react/jsx-runtime";
2
- import r from "./index.esm21.js";
2
+ import r from "./index.esm25.js";
3
3
  const f = { xs: 12, md: 20, lg: 24 }, v = ({ s: i }) => /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 12 12", fill: "currentColor", "aria-hidden": "true", children: [
4
4
  /* @__PURE__ */ n("circle", { cx: "2", cy: "6", r: "1.25" }),
5
5
  /* @__PURE__ */ n("circle", { cx: "6", cy: "6", r: "1.25" }),
@@ -1,6 +1,6 @@
1
1
  import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
2
  import { useId as N } from "react";
3
- import e from "./index.esm29.js";
3
+ import e from "./index.esm22.js";
4
4
  function B() {
5
5
  return /* @__PURE__ */ r("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { d: "M5 7.5l5 5 5-5", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }) });
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as n, jsxs as d } from "react/jsx-runtime";
2
2
  import S from "react";
3
- import e from "./index.esm27.js";
3
+ import e from "./index.esm20.js";
4
4
  function u(t, o) {
5
5
  return t < o ? "Complete" : t === o ? "Active" : "Default";
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
- import s from "./index.esm25.js";
2
+ import s from "./index.esm26.js";
3
3
  function p({ items: o, activeId: n, onChange: r, className: d }) {
4
4
  return /* @__PURE__ */ e(
5
5
  "div",
@@ -1,6 +1,6 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
2
  import { useRef as L, useState as w } from "react";
3
- import r from "./index.esm24.js";
3
+ import r from "./index.esm28.js";
4
4
  const y = () => /* @__PURE__ */ a("svg", { viewBox: "0 0 12 12", width: "12", height: "12", "aria-hidden": "true", children: [
5
5
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ a("linearGradient", { id: "fileGrad", x1: "0%", y1: "100%", x2: "100%", y2: "0%", children: [
6
6
  /* @__PURE__ */ e("stop", { offset: "0%", stopColor: "#2970FF" }),
@@ -1,26 +1,44 @@
1
- const _ = "_button_1ri91_8", t = "_sm_1ri91_40", o = "_md_1ri91_48", n = "_outline_1ri91_58", s = "_fill_1ri91_74", i = "_secondary_1ri91_89", l = "_text_1ri91_104", e = "_disabled_1ri91_119", c = "_label_1ri91_130", r = "_icon_1ri91_136", d = {
2
- button: _,
3
- sm: t,
4
- md: o,
5
- outline: n,
6
- fill: s,
7
- secondary: i,
8
- text: l,
9
- disabled: e,
10
- label: c,
11
- icon: r
1
+ const e = "_wrapper_142dk_9", _ = "_labelRow_142dk_19", o = "_label_142dk_19", l = "_labelDisabled_142dk_37", s = "_labelIcon_142dk_41", d = "_field_142dk_53", n = "_fieldMd_142dk_67", t = "_fieldSm_142dk_72", c = "_hover_142dk_79", a = "_active_142dk_86", r = "_disabled_142dk_94", i = "_error_142dk_107", k = "_icon_142dk_119", b = "_input_142dk_131", g = "_iconAction_142dk_155", f = "_toggleBtn_142dk_162", p = "_searchBtn_142dk_181", m = "_message_142dk_217", h = "_messageError_142dk_232", v = {
2
+ wrapper: e,
3
+ labelRow: _,
4
+ label: o,
5
+ labelDisabled: l,
6
+ labelIcon: s,
7
+ field: d,
8
+ fieldMd: n,
9
+ fieldSm: t,
10
+ hover: c,
11
+ active: a,
12
+ disabled: r,
13
+ error: i,
14
+ icon: k,
15
+ input: b,
16
+ iconAction: g,
17
+ toggleBtn: f,
18
+ searchBtn: p,
19
+ message: m,
20
+ messageError: h
12
21
  };
13
22
  export {
14
- _ as button,
15
- d as default,
16
- e as disabled,
17
- s as fill,
18
- r as icon,
19
- c as label,
20
- o as md,
21
- n as outline,
22
- i as secondary,
23
- t as sm,
24
- l as text
23
+ a as active,
24
+ v as default,
25
+ r as disabled,
26
+ i as error,
27
+ d as field,
28
+ n as fieldMd,
29
+ t as fieldSm,
30
+ c as hover,
31
+ k as icon,
32
+ g as iconAction,
33
+ b as input,
34
+ o as label,
35
+ l as labelDisabled,
36
+ s as labelIcon,
37
+ _ as labelRow,
38
+ m as message,
39
+ h as messageError,
40
+ p as searchBtn,
41
+ f as toggleBtn,
42
+ e as wrapper
25
43
  };
26
44
  //# sourceMappingURL=index.esm18.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm18.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm18.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
@@ -1,106 +1,26 @@
1
- const t = "_nav_1gutd_22", e = "_navOpen_1gutd_32", o = "_navClosed_1gutd_33", _ = "_navMobile_1gutd_42", n = "_header_1gutd_51", a = "_headerOpen_1gutd_58", s = "_headerClosed_1gutd_64", l = "_headerMobile_1gutd_73", c = "_logoIcon_1gutd_80", i = "_logoFull_1gutd_87", d = "_headerTitle_1gutd_93", g = "_headerActions_1gutd_102", r = "_bellBtn_1gutd_108", u = "_links_1gutd_129", m = "_linksOpen_1gutd_136", v = "_linksClosed_1gutd_137", b = "_linksMobile_1gutd_138", p = "_section_1gutd_142", I = "_sectionTitle_1gutd_147", h = "_sectionItems_1gutd_160", k = "_item_1gutd_168", M = "_itemOpen_1gutd_181", C = "_itemOpenActive_1gutd_191", L = "_itemClosed_1gutd_201", A = "_itemClosedActive_1gutd_211", B = "_itemMobile_1gutd_222", O = "_itemMobileActive_1gutd_231", f = "_itemIcon_1gutd_237", w = "_itemIconDark_1gutd_246", D = "_itemIconLight_1gutd_247", R = "_itemLabel_1gutd_251", T = "_itemLabelDefault_1gutd_263", F = "_itemLabelActive_1gutd_264", N = "_itemLabelMobile_1gutd_265", x = "_chevron_1gutd_269", y = "_footer_1gutd_283", j = "_collapseBtn_1gutd_289", q = "_collapseBtnClosed_1gutd_310", z = "_collapseBtnIcon_1gutd_314", E = "_footerMobile_1gutd_326", G = "_ctaBtn_1gutd_335", H = "_workspace_1gutd_358", J = "_workspaceIcon_1gutd_372", K = "_workspaceLabel_1gutd_383", P = "_avatarRow_1gutd_397", Q = "_avatar_1gutd_397", S = "_avatarInitials_1gutd_415", U = "_avatarInfo_1gutd_422", V = "_avatarName_1gutd_430", W = "_avatarRole_1gutd_441", X = {
2
- nav: t,
3
- navOpen: e,
4
- navClosed: o,
5
- navMobile: _,
6
- header: n,
7
- headerOpen: a,
8
- headerClosed: s,
9
- headerMobile: l,
10
- logoIcon: c,
11
- logoFull: i,
12
- headerTitle: d,
13
- headerActions: g,
14
- bellBtn: r,
15
- links: u,
16
- linksOpen: m,
17
- linksClosed: v,
18
- linksMobile: b,
19
- section: p,
20
- sectionTitle: I,
21
- sectionItems: h,
22
- item: k,
23
- itemOpen: M,
24
- itemOpenActive: C,
25
- itemClosed: L,
26
- itemClosedActive: A,
27
- itemMobile: B,
28
- itemMobileActive: O,
29
- itemIcon: f,
30
- itemIconDark: w,
31
- itemIconLight: D,
32
- itemLabel: R,
33
- itemLabelDefault: T,
34
- itemLabelActive: F,
35
- itemLabelMobile: N,
36
- chevron: x,
37
- footer: y,
38
- collapseBtn: j,
39
- collapseBtnClosed: q,
40
- collapseBtnIcon: z,
41
- footerMobile: E,
42
- ctaBtn: G,
43
- workspace: H,
44
- workspaceIcon: J,
45
- workspaceLabel: K,
46
- avatarRow: P,
47
- avatar: Q,
48
- avatarInitials: S,
49
- avatarInfo: U,
50
- avatarName: V,
51
- avatarRole: W
1
+ const _ = "_button_1ri91_8", t = "_sm_1ri91_40", o = "_md_1ri91_48", n = "_outline_1ri91_58", s = "_fill_1ri91_74", i = "_secondary_1ri91_89", l = "_text_1ri91_104", e = "_disabled_1ri91_119", c = "_label_1ri91_130", r = "_icon_1ri91_136", d = {
2
+ button: _,
3
+ sm: t,
4
+ md: o,
5
+ outline: n,
6
+ fill: s,
7
+ secondary: i,
8
+ text: l,
9
+ disabled: e,
10
+ label: c,
11
+ icon: r
52
12
  };
53
13
  export {
54
- Q as avatar,
55
- U as avatarInfo,
56
- S as avatarInitials,
57
- V as avatarName,
58
- W as avatarRole,
59
- P as avatarRow,
60
- r as bellBtn,
61
- x as chevron,
62
- j as collapseBtn,
63
- q as collapseBtnClosed,
64
- z as collapseBtnIcon,
65
- G as ctaBtn,
66
- X as default,
67
- y as footer,
68
- E as footerMobile,
69
- n as header,
70
- g as headerActions,
71
- s as headerClosed,
72
- l as headerMobile,
73
- a as headerOpen,
74
- d as headerTitle,
75
- k as item,
76
- L as itemClosed,
77
- A as itemClosedActive,
78
- f as itemIcon,
79
- w as itemIconDark,
80
- D as itemIconLight,
81
- R as itemLabel,
82
- F as itemLabelActive,
83
- T as itemLabelDefault,
84
- N as itemLabelMobile,
85
- B as itemMobile,
86
- O as itemMobileActive,
87
- M as itemOpen,
88
- C as itemOpenActive,
89
- u as links,
90
- v as linksClosed,
91
- b as linksMobile,
92
- m as linksOpen,
93
- i as logoFull,
94
- c as logoIcon,
95
- t as nav,
96
- o as navClosed,
97
- _ as navMobile,
98
- e as navOpen,
99
- p as section,
100
- h as sectionItems,
101
- I as sectionTitle,
102
- H as workspace,
103
- J as workspaceIcon,
104
- K as workspaceLabel
14
+ _ as button,
15
+ d as default,
16
+ e as disabled,
17
+ s as fill,
18
+ r as icon,
19
+ c as label,
20
+ o as md,
21
+ n as outline,
22
+ i as secondary,
23
+ t as sm,
24
+ l as text
105
25
  };
106
26
  //# sourceMappingURL=index.esm19.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm19.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm19.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}