@treeal/ds 0.1.1 → 0.1.3

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 (83) hide show
  1. package/dist/assets/style.css +1 -1
  2. package/dist/components/Input/Input.d.ts +13 -2
  3. package/dist/components/Input/Input.d.ts.map +1 -1
  4. package/dist/components/Select/Select.d.ts +24 -0
  5. package/dist/components/Select/Select.d.ts.map +1 -0
  6. package/dist/components/Select/index.d.ts +3 -0
  7. package/dist/components/Select/index.d.ts.map +1 -0
  8. package/dist/components/Tab/Tab.d.ts +22 -0
  9. package/dist/components/Tab/Tab.d.ts.map +1 -0
  10. package/dist/components/Tab/index.d.ts +3 -0
  11. package/dist/components/Tab/index.d.ts.map +1 -0
  12. package/dist/components/index.d.ts +4 -0
  13. package/dist/components/index.d.ts.map +1 -1
  14. package/dist/index.cjs.js +1 -1
  15. package/dist/index.cjs10.js +1 -1
  16. package/dist/index.cjs11.js +1 -1
  17. package/dist/index.cjs12.js +1 -1
  18. package/dist/index.cjs13.js +1 -1
  19. package/dist/index.cjs13.js.map +1 -1
  20. package/dist/index.cjs14.js +1 -1
  21. package/dist/index.cjs14.js.map +1 -1
  22. package/dist/index.cjs15.js +1 -1
  23. package/dist/index.cjs15.js.map +1 -1
  24. package/dist/index.cjs16.js +1 -1
  25. package/dist/index.cjs16.js.map +1 -1
  26. package/dist/index.cjs17.js +1 -1
  27. package/dist/index.cjs18.js +1 -1
  28. package/dist/index.cjs20.js +1 -1
  29. package/dist/index.cjs21.js +1 -1
  30. package/dist/index.cjs22.js +1 -1
  31. package/dist/index.cjs23.js +1 -1
  32. package/dist/index.cjs25.js +2 -0
  33. package/dist/index.cjs25.js.map +1 -0
  34. package/dist/index.cjs26.js +2 -0
  35. package/dist/index.cjs26.js.map +1 -0
  36. package/dist/index.cjs27.js +2 -0
  37. package/dist/index.cjs27.js.map +1 -0
  38. package/dist/index.cjs28.js +2 -0
  39. package/dist/index.cjs28.js.map +1 -0
  40. package/dist/index.cjs5.js +1 -1
  41. package/dist/index.cjs6.js +1 -1
  42. package/dist/index.cjs7.js +1 -1
  43. package/dist/index.cjs9.js +1 -1
  44. package/dist/index.cjs9.js.map +1 -1
  45. package/dist/index.esm.js +15 -11
  46. package/dist/index.esm.js.map +1 -1
  47. package/dist/index.esm10.js +1 -1
  48. package/dist/index.esm11.js +1 -1
  49. package/dist/index.esm12.js +1 -1
  50. package/dist/index.esm13.js +58 -84
  51. package/dist/index.esm13.js.map +1 -1
  52. package/dist/index.esm14.js +83 -212
  53. package/dist/index.esm14.js.map +1 -1
  54. package/dist/index.esm15.js +35 -23
  55. package/dist/index.esm15.js.map +1 -1
  56. package/dist/index.esm16.js +219 -39
  57. package/dist/index.esm16.js.map +1 -1
  58. package/dist/index.esm17.js +22 -30
  59. package/dist/index.esm17.js.map +1 -1
  60. package/dist/index.esm18.js +102 -22
  61. package/dist/index.esm18.js.map +1 -1
  62. package/dist/index.esm20.js +60 -20
  63. package/dist/index.esm20.js.map +1 -1
  64. package/dist/index.esm21.js +22 -102
  65. package/dist/index.esm21.js.map +1 -1
  66. package/dist/index.esm22.js +12 -22
  67. package/dist/index.esm22.js.map +1 -1
  68. package/dist/index.esm23.js +20 -60
  69. package/dist/index.esm23.js.map +1 -1
  70. package/dist/index.esm25.js +26 -0
  71. package/dist/index.esm25.js.map +1 -0
  72. package/dist/index.esm26.js +26 -0
  73. package/dist/index.esm26.js.map +1 -0
  74. package/dist/index.esm27.js +40 -0
  75. package/dist/index.esm27.js.map +1 -0
  76. package/dist/index.esm28.js +42 -0
  77. package/dist/index.esm28.js.map +1 -0
  78. package/dist/index.esm5.js +1 -1
  79. package/dist/index.esm6.js +1 -1
  80. package/dist/index.esm7.js +1 -1
  81. package/dist/index.esm9.js +104 -44
  82. package/dist/index.esm9.js.map +1 -1
  83. package/package.json +1 -1
@@ -1,106 +1,26 @@
1
- const e = "_nav_53r24_22", t = "_navOpen_53r24_32", o = "_navClosed_53r24_33", _ = "_navMobile_53r24_42", n = "_header_53r24_51", a = "_headerOpen_53r24_58", s = "_headerClosed_53r24_64", l = "_headerMobile_53r24_73", c = "_logoIcon_53r24_80", i = "_logoFull_53r24_87", r = "_headerTitle_53r24_93", m = "_headerActions_53r24_102", v = "_bellBtn_53r24_108", b = "_links_53r24_129", d = "_linksOpen_53r24_136", p = "_linksClosed_53r24_137", I = "_linksMobile_53r24_138", h = "_section_53r24_142", k = "_sectionTitle_53r24_147", M = "_sectionItems_53r24_160", C = "_item_53r24_168", L = "_itemOpen_53r24_181", A = "_itemOpenActive_53r24_191", B = "_itemClosed_53r24_201", O = "_itemClosedActive_53r24_211", f = "_itemMobile_53r24_222", w = "_itemMobileActive_53r24_231", g = "_itemIcon_53r24_237", u = "_itemIconDark_53r24_246", D = "_itemIconLight_53r24_247", R = "_itemLabel_53r24_251", T = "_itemLabelDefault_53r24_263", F = "_itemLabelActive_53r24_264", N = "_itemLabelMobile_53r24_265", x = "_chevron_53r24_269", y = "_footer_53r24_283", j = "_collapseBtn_53r24_289", q = "_collapseBtnClosed_53r24_310", z = "_collapseBtnIcon_53r24_314", E = "_footerMobile_53r24_326", G = "_ctaBtn_53r24_335", H = "_workspace_53r24_358", J = "_workspaceIcon_53r24_372", K = "_workspaceLabel_53r24_383", P = "_avatarRow_53r24_397", Q = "_avatar_53r24_397", S = "_avatarInitials_53r24_415", U = "_avatarInfo_53r24_422", V = "_avatarName_53r24_430", W = "_avatarRole_53r24_441", X = {
2
- nav: e,
3
- navOpen: t,
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: r,
13
- headerActions: m,
14
- bellBtn: v,
15
- links: b,
16
- linksOpen: d,
17
- linksClosed: p,
18
- linksMobile: I,
19
- section: h,
20
- sectionTitle: k,
21
- sectionItems: M,
22
- item: C,
23
- itemOpen: L,
24
- itemOpenActive: A,
25
- itemClosed: B,
26
- itemClosedActive: O,
27
- itemMobile: f,
28
- itemMobileActive: w,
29
- itemIcon: g,
30
- itemIconDark: u,
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 e = "_base_106pz_9", c = "_checkDefault_106pz_18", o = "_radioDefault_106pz_19", _ = "_checkChecked_106pz_40", t = "_radioChecked_106pz_41", a = "_checkIcon_106pz_64", k = "_radioIcon_106pz_86", d = "_toggleWrapper_106pz_105", r = "_toggleTrack_106pz_113", g = "_toggleChecked_106pz_140", h = {
2
+ base: e,
3
+ checkDefault: c,
4
+ radioDefault: o,
5
+ checkChecked: _,
6
+ radioChecked: t,
7
+ checkIcon: a,
8
+ radioIcon: k,
9
+ toggleWrapper: d,
10
+ toggleTrack: r,
11
+ toggleChecked: g
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
- v 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
- m as headerActions,
71
- s as headerClosed,
72
- l as headerMobile,
73
- a as headerOpen,
74
- r as headerTitle,
75
- C as item,
76
- B as itemClosed,
77
- O as itemClosedActive,
78
- g as itemIcon,
79
- u as itemIconDark,
80
- D as itemIconLight,
81
- R as itemLabel,
82
- F as itemLabelActive,
83
- T as itemLabelDefault,
84
- N as itemLabelMobile,
85
- f as itemMobile,
86
- w as itemMobileActive,
87
- L as itemOpen,
88
- A as itemOpenActive,
89
- b as links,
90
- p as linksClosed,
91
- I as linksMobile,
92
- d as linksOpen,
93
- i as logoFull,
94
- c as logoIcon,
95
- e as nav,
96
- o as navClosed,
97
- _ as navMobile,
98
- t as navOpen,
99
- h as section,
100
- M as sectionItems,
101
- k as sectionTitle,
102
- H as workspace,
103
- J as workspaceIcon,
104
- K as workspaceLabel
14
+ e as base,
15
+ _ as checkChecked,
16
+ c as checkDefault,
17
+ a as checkIcon,
18
+ h as default,
19
+ t as radioChecked,
20
+ o as radioDefault,
21
+ k as radioIcon,
22
+ g as toggleChecked,
23
+ r as toggleTrack,
24
+ d as toggleWrapper
105
25
  };
106
26
  //# sourceMappingURL=index.esm21.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm21.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm21.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -1,26 +1,16 @@
1
- const o = "_button_1hwro_8", _ = "_sm_1hwro_40", t = "_md_1hwro_48", n = "_outline_1hwro_58", s = "_fill_1hwro_74", l = "_secondary_1hwro_89", e = "_text_1hwro_104", c = "_disabled_1hwro_119", r = "_label_1hwro_130", d = "_icon_1hwro_136", i = {
2
- button: o,
3
- sm: _,
4
- md: t,
5
- outline: n,
6
- fill: s,
7
- secondary: l,
8
- text: e,
9
- disabled: c,
10
- label: r,
11
- icon: d
1
+ const t = "_tabList_dww9d_3", d = "_tab_dww9d_3", s = "_active_dww9d_40", _ = "_disabled_dww9d_40", a = "_icon_dww9d_65", c = {
2
+ tabList: t,
3
+ tab: d,
4
+ active: s,
5
+ disabled: _,
6
+ icon: a
12
7
  };
13
8
  export {
14
- o as button,
15
- i as default,
16
- c as disabled,
17
- s as fill,
18
- d as icon,
19
- r as label,
20
- t as md,
21
- n as outline,
22
- l as secondary,
23
- _ as sm,
24
- e as text
9
+ s as active,
10
+ c as default,
11
+ _ as disabled,
12
+ a as icon,
13
+ d as tab,
14
+ t as tabList
25
15
  };
26
16
  //# sourceMappingURL=index.esm22.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm22.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm22.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -1,64 +1,24 @@
1
- const o = "_dropzone_19kgn_8", e = "_dropzoneMd_19kgn_22", n = "_dropzoneLg_19kgn_29", _ = "_dropzoneDragging_19kgn_39", t = "_dropzoneIconMd_19kgn_48", r = "_dropzoneIconLg_19kgn_56", s = "_dropzoneContent_19kgn_67", g = "_dropzoneTitleRow_19kgn_81", i = "_dropzoneTitle_19kgn_81", p = "_dropzoneBrowse_19kgn_99", l = "_dropzoneSubtitle_19kgn_114", d = "_fileList_19kgn_128", c = "_fileItem_19kgn_137", z = "_fileItemLg_19kgn_150", k = "_fileItemMd_19kgn_155", f = "_fileBadge_19kgn_161", a = "_fileContent_19kgn_176", I = "_fileHeader_19kgn_186", L = "_fileTexts_19kgn_193", m = "_fileName_19kgn_202", w = "_fileSize_19kgn_216", T = "_actions_19kgn_229", B = "_actionBtn_19kgn_236", M = "_progressRow_19kgn_259", b = "_progressTrack_19kgn_267", C = "_progressFill_19kgn_277", R = "_progressLabel_19kgn_288", S = "_spinner_19kgn_301", u = "_wrapper_19kgn_317", x = {
2
- dropzone: o,
3
- dropzoneMd: e,
4
- dropzoneLg: n,
5
- dropzoneDragging: _,
6
- dropzoneIconMd: t,
7
- dropzoneIconLg: r,
8
- dropzoneContent: s,
9
- dropzoneTitleRow: g,
10
- dropzoneTitle: i,
11
- dropzoneBrowse: p,
12
- dropzoneSubtitle: l,
13
- fileList: d,
14
- fileItem: c,
15
- fileItemLg: z,
16
- fileItemMd: k,
17
- fileBadge: f,
18
- fileContent: a,
19
- fileHeader: I,
20
- fileTexts: L,
21
- fileName: m,
22
- fileSize: w,
23
- actions: T,
24
- actionBtn: B,
25
- progressRow: M,
26
- progressTrack: b,
27
- progressFill: C,
28
- progressLabel: R,
29
- spinner: S,
30
- wrapper: u
1
+ const o = "_pagination_olot7_11", t = "_item_olot7_20", _ = "_xs_olot7_55", n = "_md_olot7_63", c = "_lg_olot7_71", s = "_active_olot7_81", i = "_inactive_olot7_88", l = "_dots_olot7_102", a = "_control_olot7_110", e = {
2
+ pagination: o,
3
+ item: t,
4
+ xs: _,
5
+ md: n,
6
+ lg: c,
7
+ active: s,
8
+ inactive: i,
9
+ dots: l,
10
+ control: a
31
11
  };
32
12
  export {
33
- B as actionBtn,
34
- T as actions,
35
- x as default,
36
- o as dropzone,
37
- p as dropzoneBrowse,
38
- s as dropzoneContent,
39
- _ as dropzoneDragging,
40
- r as dropzoneIconLg,
41
- t as dropzoneIconMd,
42
- n as dropzoneLg,
43
- e as dropzoneMd,
44
- l as dropzoneSubtitle,
45
- i as dropzoneTitle,
46
- g as dropzoneTitleRow,
47
- f as fileBadge,
48
- a as fileContent,
49
- I as fileHeader,
50
- c as fileItem,
51
- z as fileItemLg,
52
- k as fileItemMd,
53
- d as fileList,
54
- m as fileName,
55
- w as fileSize,
56
- L as fileTexts,
57
- C as progressFill,
58
- R as progressLabel,
59
- M as progressRow,
60
- b as progressTrack,
61
- S as spinner,
62
- u as wrapper
13
+ s as active,
14
+ a as control,
15
+ e as default,
16
+ l as dots,
17
+ i as inactive,
18
+ t as item,
19
+ c as lg,
20
+ n as md,
21
+ o as pagination,
22
+ _ as xs
63
23
  };
64
24
  //# sourceMappingURL=index.esm23.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm23.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm23.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -0,0 +1,26 @@
1
+ const o = "_button_1hwro_8", _ = "_sm_1hwro_40", t = "_md_1hwro_48", n = "_outline_1hwro_58", s = "_fill_1hwro_74", l = "_secondary_1hwro_89", e = "_text_1hwro_104", c = "_disabled_1hwro_119", r = "_label_1hwro_130", d = "_icon_1hwro_136", i = {
2
+ button: o,
3
+ sm: _,
4
+ md: t,
5
+ outline: n,
6
+ fill: s,
7
+ secondary: l,
8
+ text: e,
9
+ disabled: c,
10
+ label: r,
11
+ icon: d
12
+ };
13
+ export {
14
+ o as button,
15
+ i as default,
16
+ c as disabled,
17
+ s as fill,
18
+ d as icon,
19
+ r as label,
20
+ t as md,
21
+ n as outline,
22
+ l as secondary,
23
+ _ as sm,
24
+ e as text
25
+ };
26
+ //# sourceMappingURL=index.esm25.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm25.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,26 @@
1
+ const e = "_wrapper_pivx7_3", s = "_label_pivx7_13", r = "_labelDisabled_pivx7_23", _ = "_field_pivx7_29", l = "_select_pivx7_36", o = "_placeholder_pivx7_75", a = "_error_pivx7_81", c = "_chevron_pivx7_93", p = "_message_pivx7_109", t = "_messageError_pivx7_123", i = {
2
+ wrapper: e,
3
+ label: s,
4
+ labelDisabled: r,
5
+ field: _,
6
+ select: l,
7
+ placeholder: o,
8
+ error: a,
9
+ chevron: c,
10
+ message: p,
11
+ messageError: t
12
+ };
13
+ export {
14
+ c as chevron,
15
+ i as default,
16
+ a as error,
17
+ _ as field,
18
+ s as label,
19
+ r as labelDisabled,
20
+ p as message,
21
+ t as messageError,
22
+ o as placeholder,
23
+ l as select,
24
+ e as wrapper
25
+ };
26
+ //# sourceMappingURL=index.esm26.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm26.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,40 @@
1
+ const e = "_wrapper_39ray_9", a = "_labelRow_39ray_19", _ = "_label_39ray_19", r = "_labelDisabled_39ray_37", o = "_labelIcon_39ray_41", s = "_field_39ray_53", n = "_hover_39ray_70", t = "_active_39ray_77", l = "_disabled_39ray_85", c = "_error_39ray_98", i = "_icon_39ray_110", b = "_input_39ray_122", y = "_iconAction_39ray_146", d = "_toggleBtn_39ray_153", g = "_searchBtn_39ray_172", p = "_message_39ray_202", h = "_messageError_39ray_217", m = {
2
+ wrapper: e,
3
+ labelRow: a,
4
+ label: _,
5
+ labelDisabled: r,
6
+ labelIcon: o,
7
+ field: s,
8
+ hover: n,
9
+ active: t,
10
+ disabled: l,
11
+ error: c,
12
+ icon: i,
13
+ input: b,
14
+ iconAction: y,
15
+ toggleBtn: d,
16
+ searchBtn: g,
17
+ message: p,
18
+ messageError: h
19
+ };
20
+ export {
21
+ t as active,
22
+ m as default,
23
+ l as disabled,
24
+ c as error,
25
+ s as field,
26
+ n as hover,
27
+ i as icon,
28
+ y as iconAction,
29
+ b as input,
30
+ _ as label,
31
+ r as labelDisabled,
32
+ o as labelIcon,
33
+ a as labelRow,
34
+ p as message,
35
+ h as messageError,
36
+ g as searchBtn,
37
+ d as toggleBtn,
38
+ e as wrapper
39
+ };
40
+ //# sourceMappingURL=index.esm27.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm27.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,42 @@
1
+ const t = "_alert_p4b5i_21", e = "_typeDefault_p4b5i_36", n = "_typeInfo_p4b5i_37", _ = "_typeSuccess_p4b5i_38", i = "_typeWarning_p4b5i_39", o = "_typeError_p4b5i_40", s = "_iconSlot_p4b5i_44", c = "_textContent_p4b5i_54", l = "_title_p4b5i_63", p = "_titleDefault_p4b5i_72", r = "_titleInfo_p4b5i_73", a = "_titleSuccess_p4b5i_74", b = "_titleWarning_p4b5i_75", y = "_titleError_p4b5i_76", f = "_message_p4b5i_78", u = "_rightSlot_p4b5i_90", g = "_actionBtn_p4b5i_101", S = "_closeBtn_p4b5i_127", B = {
2
+ alert: t,
3
+ typeDefault: e,
4
+ typeInfo: n,
5
+ typeSuccess: _,
6
+ typeWarning: i,
7
+ typeError: o,
8
+ iconSlot: s,
9
+ textContent: c,
10
+ title: l,
11
+ titleDefault: p,
12
+ titleInfo: r,
13
+ titleSuccess: a,
14
+ titleWarning: b,
15
+ titleError: y,
16
+ message: f,
17
+ rightSlot: u,
18
+ actionBtn: g,
19
+ closeBtn: S
20
+ };
21
+ export {
22
+ g as actionBtn,
23
+ t as alert,
24
+ S as closeBtn,
25
+ B as default,
26
+ s as iconSlot,
27
+ f as message,
28
+ u as rightSlot,
29
+ c as textContent,
30
+ l as title,
31
+ p as titleDefault,
32
+ y as titleError,
33
+ r as titleInfo,
34
+ a as titleSuccess,
35
+ b as titleWarning,
36
+ e as typeDefault,
37
+ o as typeError,
38
+ n as typeInfo,
39
+ _ as typeSuccess,
40
+ i as typeWarning
41
+ };
42
+ //# sourceMappingURL=index.esm28.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm28.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import t from "./index.esm16.js";
2
+ import t from "./index.esm28.js";
3
3
  const p = {
4
4
  Default: "#9490AC",
5
5
  Info: "#2472BA",
@@ -1,5 +1,5 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
- import e from "./index.esm15.js";
2
+ import e from "./index.esm21.js";
3
3
  function u({
4
4
  type: n = "Check",
5
5
  status: k = "Default",
@@ -1,5 +1,5 @@
1
1
  import { jsxs as p, jsx as n } from "react/jsx-runtime";
2
- import s from "./index.esm22.js";
2
+ import s from "./index.esm25.js";
3
3
  function d({
4
4
  variant: t = "outline",
5
5
  size: e = "sm",
@@ -1,69 +1,129 @@
1
- import { jsxs as n, jsx as a } from "react/jsx-runtime";
2
- import { useId as D } from "react";
3
- import e from "./index.esm17.js";
4
- function E({
5
- state: i = "Default",
6
- label: o,
7
- placeholder: p,
1
+ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
+ import { useId as N, useState as E } from "react";
3
+ import e from "./index.esm27.js";
4
+ function A() {
5
+ return /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
6
+ /* @__PURE__ */ r("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
+ /* @__PURE__ */ r("polyline", { points: "22,6 12,13 2,6", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" })
8
+ ] });
9
+ }
10
+ function v() {
11
+ return /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
12
+ /* @__PURE__ */ r("circle", { cx: "11", cy: "11", r: "7", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round" }),
13
+ /* @__PURE__ */ r("path", { d: "M16.5 16.5L21 21", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round" })
14
+ ] });
15
+ }
16
+ function D() {
17
+ return /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
18
+ /* @__PURE__ */ r("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }),
19
+ /* @__PURE__ */ r("path", { d: "M16 2v4M8 2v4M3 10h18", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" })
20
+ ] });
21
+ }
22
+ function y() {
23
+ return /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
24
+ /* @__PURE__ */ r("rect", { x: "5", y: "11", width: "14", height: "11", rx: "2", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }),
25
+ /* @__PURE__ */ r("path", { d: "M8 11V7a4 4 0 0 1 8 0v4", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" })
26
+ ] });
27
+ }
28
+ function S() {
29
+ return /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
30
+ /* @__PURE__ */ r("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
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "3", stroke: "currentColor", strokeWidth: "1.75" })
32
+ ] });
33
+ }
34
+ function z() {
35
+ return /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
36
+ /* @__PURE__ */ r("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
+ /* @__PURE__ */ r("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
+ /* @__PURE__ */ r("path", { d: "M1 1l22 22", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round" })
39
+ ] });
40
+ }
41
+ function R({
42
+ state: n = "Default",
43
+ inputType: o = "text",
44
+ label: l,
45
+ placeholder: f,
8
46
  message: s,
9
- iconLabel: c,
10
- iconLeft: m,
11
- iconRight: t,
12
- value: h,
13
- onChange: b,
14
- id: u,
15
- className: f,
16
- ...v
47
+ iconLabel: h,
48
+ iconLeft: w,
49
+ iconRight: p,
50
+ value: m,
51
+ onChange: L,
52
+ onSearch: g,
53
+ id: x,
54
+ className: b,
55
+ ...C
17
56
  }) {
18
- const N = D(), r = u ?? N, l = i === "Disabled", d = i === "Error", j = [
57
+ const j = N(), i = x ?? j, [d, I] = E(!1), a = n === "Disabled", c = n === "Error", B = o === "password" ? d ? "text" : "password" : o === "search" ? "text" : o, u = w ?? (o === "email" ? /* @__PURE__ */ r(A, {}) : o === "password" ? /* @__PURE__ */ r(y, {}) : o === "search" ? /* @__PURE__ */ r(v, {}) : void 0), k = p ?? (o === "password" ? /* @__PURE__ */ r(
58
+ "button",
59
+ {
60
+ type: "button",
61
+ className: e.toggleBtn,
62
+ onClick: () => I((M) => !M),
63
+ "aria-label": d ? "Ocultar senha" : "Mostrar senha",
64
+ tabIndex: -1,
65
+ children: d ? /* @__PURE__ */ r(S, {}) : /* @__PURE__ */ r(z, {})
66
+ }
67
+ ) : o === "date" ? /* @__PURE__ */ r(D, {}) : o === "search" ? /* @__PURE__ */ r(
68
+ "button",
69
+ {
70
+ type: "button",
71
+ className: e.searchBtn,
72
+ onClick: g,
73
+ "aria-label": "Buscar",
74
+ tabIndex: -1,
75
+ children: /* @__PURE__ */ r(v, {})
76
+ }
77
+ ) : void 0), W = [
19
78
  e.field,
20
- i === "Hover" ? e.hover : "",
21
- i === "Active" ? e.active : "",
22
- l ? e.disabled : "",
23
- d ? e.error : "",
24
- f
79
+ n === "Hover" ? e.hover : "",
80
+ n === "Active" ? e.active : "",
81
+ a ? e.disabled : "",
82
+ c ? e.error : "",
83
+ b
25
84
  ].filter(Boolean).join(" ");
26
- return /* @__PURE__ */ n("div", { className: e.wrapper, children: [
27
- o && /* @__PURE__ */ n("div", { className: e.labelRow, children: [
28
- /* @__PURE__ */ a(
85
+ return /* @__PURE__ */ t("div", { className: e.wrapper, children: [
86
+ l && /* @__PURE__ */ t("div", { className: e.labelRow, children: [
87
+ /* @__PURE__ */ r(
29
88
  "label",
30
89
  {
31
- htmlFor: r,
32
- className: [e.label, l ? e.labelDisabled : ""].filter(Boolean).join(" "),
33
- children: o
90
+ htmlFor: i,
91
+ className: [e.label, a ? e.labelDisabled : ""].filter(Boolean).join(" "),
92
+ children: l
34
93
  }
35
94
  ),
36
- c && /* @__PURE__ */ a("span", { className: e.labelIcon, "aria-hidden": "true", children: c })
95
+ h && /* @__PURE__ */ r("span", { className: e.labelIcon, "aria-hidden": "true", children: h })
37
96
  ] }),
38
- /* @__PURE__ */ n("div", { className: j, children: [
39
- m && /* @__PURE__ */ a("span", { className: e.icon, "aria-hidden": "true", children: m }),
40
- /* @__PURE__ */ a(
97
+ /* @__PURE__ */ t("div", { className: W, children: [
98
+ u && /* @__PURE__ */ r("span", { className: e.icon, "aria-hidden": "true", children: u }),
99
+ /* @__PURE__ */ r(
41
100
  "input",
42
101
  {
43
- id: r,
102
+ id: i,
103
+ type: B,
44
104
  className: e.input,
45
- placeholder: p,
46
- disabled: l,
47
- value: h,
48
- onChange: b,
49
- "aria-invalid": d,
50
- "aria-describedby": s ? `${r}-message` : void 0,
51
- ...v
105
+ placeholder: f,
106
+ disabled: a,
107
+ value: m,
108
+ onChange: L,
109
+ "aria-invalid": c,
110
+ "aria-describedby": s ? `${i}-message` : void 0,
111
+ ...C
52
112
  }
53
113
  ),
54
- t && /* @__PURE__ */ a("span", { className: e.icon, "aria-hidden": "true", children: t })
114
+ k && /* @__PURE__ */ r("span", { className: [e.icon, o === "search" || o === "password" ? e.iconAction : ""].filter(Boolean).join(" "), children: k })
55
115
  ] }),
56
- s && /* @__PURE__ */ a(
116
+ s && /* @__PURE__ */ r(
57
117
  "p",
58
118
  {
59
- id: `${r}-message`,
60
- className: [e.message, d ? e.messageError : ""].filter(Boolean).join(" "),
119
+ id: `${i}-message`,
120
+ className: [e.message, c ? e.messageError : ""].filter(Boolean).join(" "),
61
121
  children: s
62
122
  }
63
123
  )
64
124
  ] });
65
125
  }
66
126
  export {
67
- E as Input
127
+ R as Input
68
128
  };
69
129
  //# sourceMappingURL=index.esm9.js.map