@clubmed/trident-ui 1.0.0-alpha.36 → 1.0.0-alpha.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +56 -28
  3. package/atoms/Icons/Icon.js +8 -7
  4. package/atoms/Icons/IconsResolver.d.ts +4 -43
  5. package/atoms/Icons/IconsResolver.js +15 -38
  6. package/atoms/Icons/contexts/IconsContext.d.ts +43 -0
  7. package/atoms/Icons/contexts/IconsContext.js +46 -0
  8. package/atoms/Icons/fonts/Actions.d.ts +2 -1
  9. package/atoms/Icons/fonts/Actions.js +112 -106
  10. package/atoms/Icons/fonts/Activities.d.ts +2 -1
  11. package/atoms/Icons/fonts/Activities.js +144 -138
  12. package/atoms/Icons/fonts/Brand.d.ts +2 -1
  13. package/atoms/Icons/fonts/Brand.js +91 -85
  14. package/atoms/Icons/fonts/Covid.d.ts +2 -1
  15. package/atoms/Icons/fonts/Covid.js +60 -54
  16. package/atoms/Icons/fonts/FontIconResolver.d.ts +1 -1
  17. package/atoms/Icons/fonts/FontIconResolver.js +6 -7
  18. package/atoms/Icons/fonts/Food.d.ts +2 -1
  19. package/atoms/Icons/fonts/Food.js +105 -99
  20. package/atoms/Icons/fonts/HappyToCare.d.ts +2 -1
  21. package/atoms/Icons/fonts/HappyToCare.js +57 -51
  22. package/atoms/Icons/fonts/Places.d.ts +2 -1
  23. package/atoms/Icons/fonts/Places.js +60 -54
  24. package/atoms/Icons/fonts/Room.d.ts +2 -1
  25. package/atoms/Icons/fonts/Room.js +114 -108
  26. package/atoms/Icons/fonts/Services.d.ts +2 -1
  27. package/atoms/Icons/fonts/Services.js +72 -66
  28. package/atoms/Icons/fonts/Socials.d.ts +2 -1
  29. package/atoms/Icons/fonts/Socials.js +72 -66
  30. package/atoms/Icons/fonts/Transports.d.ts +2 -1
  31. package/atoms/Icons/fonts/Transports.js +48 -42
  32. package/atoms/Icons/fonts/Utilities.d.ts +2 -1
  33. package/atoms/Icons/fonts/Utilities.js +153 -147
  34. package/atoms/Icons/fonts/index.js +4 -4
  35. package/atoms/Icons/hooks/useIcon.d.ts +2 -0
  36. package/atoms/Icons/hooks/useIcon.js +16 -0
  37. package/atoms/Icons/index.js +9 -8
  38. package/atoms/Icons/svg/Actions.d.ts +2 -1
  39. package/atoms/Icons/svg/Actions.js +145 -139
  40. package/atoms/Icons/svg/Activities.d.ts +2 -1
  41. package/atoms/Icons/svg/Activities.js +189 -183
  42. package/atoms/Icons/svg/Brand.d.ts +2 -1
  43. package/atoms/Icons/svg/Brand.js +90 -84
  44. package/atoms/Icons/svg/Covid.d.ts +2 -1
  45. package/atoms/Icons/svg/Covid.js +77 -71
  46. package/atoms/Icons/svg/Food.d.ts +2 -1
  47. package/atoms/Icons/svg/Food.js +137 -131
  48. package/atoms/Icons/svg/HappyToCare.d.ts +2 -1
  49. package/atoms/Icons/svg/HappyToCare.js +73 -67
  50. package/atoms/Icons/svg/Places.d.ts +2 -1
  51. package/atoms/Icons/svg/Places.js +77 -71
  52. package/atoms/Icons/svg/ResortFill-EC.d.ts +2 -1
  53. package/atoms/Icons/svg/ResortFill-EC.js +135 -129
  54. package/atoms/Icons/svg/ResortFill.d.ts +2 -1
  55. package/atoms/Icons/svg/ResortFill.js +399 -393
  56. package/atoms/Icons/svg/ResortOutline-EC.d.ts +2 -1
  57. package/atoms/Icons/svg/ResortOutline-EC.js +135 -129
  58. package/atoms/Icons/svg/ResortOutline.d.ts +2 -1
  59. package/atoms/Icons/svg/ResortOutline.js +399 -393
  60. package/atoms/Icons/svg/Room.d.ts +2 -1
  61. package/atoms/Icons/svg/Room.js +149 -143
  62. package/atoms/Icons/svg/Services.d.ts +2 -1
  63. package/atoms/Icons/svg/Services.js +93 -87
  64. package/atoms/Icons/svg/Socials.d.ts +2 -1
  65. package/atoms/Icons/svg/Socials.js +83 -77
  66. package/atoms/Icons/svg/SvgIconResolver.d.ts +1 -2
  67. package/atoms/Icons/svg/SvgIconResolver.js +6 -8
  68. package/atoms/Icons/svg/Transports.d.ts +2 -1
  69. package/atoms/Icons/svg/Transports.js +61 -55
  70. package/atoms/Icons/svg/Utilities.d.ts +2 -1
  71. package/atoms/Icons/svg/Utilities.js +201 -195
  72. package/atoms/Icons/svg/index.js +3 -2
  73. package/atoms/Icons/svg-use/Actions.d.ts +2 -1
  74. package/atoms/Icons/svg-use/Actions.js +156 -150
  75. package/atoms/Icons/svg-use/Activities.d.ts +2 -1
  76. package/atoms/Icons/svg-use/Activities.js +195 -189
  77. package/atoms/Icons/svg-use/Brand.d.ts +2 -1
  78. package/atoms/Icons/svg-use/Brand.js +97 -91
  79. package/atoms/Icons/svg-use/Covid.d.ts +2 -1
  80. package/atoms/Icons/svg-use/Covid.js +80 -74
  81. package/atoms/Icons/svg-use/Food.d.ts +2 -1
  82. package/atoms/Icons/svg-use/Food.js +145 -139
  83. package/atoms/Icons/svg-use/HappyToCare.d.ts +2 -1
  84. package/atoms/Icons/svg-use/HappyToCare.js +78 -72
  85. package/atoms/Icons/svg-use/Places.d.ts +2 -1
  86. package/atoms/Icons/svg-use/Places.js +83 -77
  87. package/atoms/Icons/svg-use/ResortFill-EC.d.ts +2 -1
  88. package/atoms/Icons/svg-use/ResortFill-EC.js +141 -135
  89. package/atoms/Icons/svg-use/ResortFill.d.ts +2 -1
  90. package/atoms/Icons/svg-use/ResortFill.js +410 -404
  91. package/atoms/Icons/svg-use/ResortOutline-EC.d.ts +2 -1
  92. package/atoms/Icons/svg-use/ResortOutline-EC.js +144 -138
  93. package/atoms/Icons/svg-use/ResortOutline.d.ts +2 -1
  94. package/atoms/Icons/svg-use/ResortOutline.js +408 -402
  95. package/atoms/Icons/svg-use/Room.d.ts +2 -1
  96. package/atoms/Icons/svg-use/Room.js +159 -153
  97. package/atoms/Icons/svg-use/Services.d.ts +2 -1
  98. package/atoms/Icons/svg-use/Services.js +97 -91
  99. package/atoms/Icons/svg-use/Socials.d.ts +2 -1
  100. package/atoms/Icons/svg-use/Socials.js +85 -79
  101. package/atoms/Icons/svg-use/SvgUseIconResolver.d.ts +1 -2
  102. package/atoms/Icons/svg-use/SvgUseIconResolver.js +8 -10
  103. package/atoms/Icons/svg-use/Transports.d.ts +2 -1
  104. package/atoms/Icons/svg-use/Transports.js +67 -61
  105. package/atoms/Icons/svg-use/Utilities.d.ts +2 -1
  106. package/atoms/Icons/svg-use/Utilities.js +212 -206
  107. package/atoms/Icons/svg-use/index.js +3 -2
  108. package/atoms/Icons/utils/getIcons.d.ts +4 -0
  109. package/atoms/Icons/utils/getIcons.js +21 -0
  110. package/fonts/Actions/tui-actions.css +6 -6
  111. package/fonts/Actions/tui-actions.eot +0 -0
  112. package/fonts/Actions/tui-actions.less +6 -6
  113. package/fonts/Actions/tui-actions.module.less +6 -6
  114. package/fonts/Actions/tui-actions.scss +6 -6
  115. package/fonts/Actions/tui-actions.styl +6 -6
  116. package/fonts/Actions/tui-actions.ttf +0 -0
  117. package/fonts/Actions/tui-actions.woff +0 -0
  118. package/fonts/Actions/tui-actions.woff2 +0 -0
  119. package/fonts/Activities/tui-activities.css +6 -6
  120. package/fonts/Activities/tui-activities.eot +0 -0
  121. package/fonts/Activities/tui-activities.less +6 -6
  122. package/fonts/Activities/tui-activities.module.less +6 -6
  123. package/fonts/Activities/tui-activities.scss +6 -6
  124. package/fonts/Activities/tui-activities.styl +6 -6
  125. package/fonts/Activities/tui-activities.ttf +0 -0
  126. package/fonts/Activities/tui-activities.woff +0 -0
  127. package/fonts/Activities/tui-activities.woff2 +0 -0
  128. package/fonts/Brand/tui-brand.css +6 -6
  129. package/fonts/Brand/tui-brand.eot +0 -0
  130. package/fonts/Brand/tui-brand.less +6 -6
  131. package/fonts/Brand/tui-brand.module.less +6 -6
  132. package/fonts/Brand/tui-brand.scss +6 -6
  133. package/fonts/Brand/tui-brand.styl +6 -6
  134. package/fonts/Brand/tui-brand.ttf +0 -0
  135. package/fonts/Brand/tui-brand.woff +0 -0
  136. package/fonts/Brand/tui-brand.woff2 +0 -0
  137. package/fonts/Covid/tui-covid.css +6 -6
  138. package/fonts/Covid/tui-covid.eot +0 -0
  139. package/fonts/Covid/tui-covid.less +6 -6
  140. package/fonts/Covid/tui-covid.module.less +6 -6
  141. package/fonts/Covid/tui-covid.scss +6 -6
  142. package/fonts/Covid/tui-covid.styl +6 -6
  143. package/fonts/Covid/tui-covid.ttf +0 -0
  144. package/fonts/Covid/tui-covid.woff +0 -0
  145. package/fonts/Covid/tui-covid.woff2 +0 -0
  146. package/fonts/Food/tui-food.css +6 -6
  147. package/fonts/Food/tui-food.eot +0 -0
  148. package/fonts/Food/tui-food.less +6 -6
  149. package/fonts/Food/tui-food.module.less +6 -6
  150. package/fonts/Food/tui-food.scss +6 -6
  151. package/fonts/Food/tui-food.styl +6 -6
  152. package/fonts/Food/tui-food.ttf +0 -0
  153. package/fonts/Food/tui-food.woff +0 -0
  154. package/fonts/Food/tui-food.woff2 +0 -0
  155. package/fonts/HappyToCare/tui-happy-to-care.css +6 -6
  156. package/fonts/HappyToCare/tui-happy-to-care.eot +0 -0
  157. package/fonts/HappyToCare/tui-happy-to-care.less +6 -6
  158. package/fonts/HappyToCare/tui-happy-to-care.module.less +6 -6
  159. package/fonts/HappyToCare/tui-happy-to-care.scss +6 -6
  160. package/fonts/HappyToCare/tui-happy-to-care.styl +6 -6
  161. package/fonts/HappyToCare/tui-happy-to-care.ttf +0 -0
  162. package/fonts/HappyToCare/tui-happy-to-care.woff +0 -0
  163. package/fonts/HappyToCare/tui-happy-to-care.woff2 +0 -0
  164. package/fonts/Places/tui-places.css +6 -6
  165. package/fonts/Places/tui-places.eot +0 -0
  166. package/fonts/Places/tui-places.less +6 -6
  167. package/fonts/Places/tui-places.module.less +6 -6
  168. package/fonts/Places/tui-places.scss +6 -6
  169. package/fonts/Places/tui-places.styl +6 -6
  170. package/fonts/Places/tui-places.ttf +0 -0
  171. package/fonts/Places/tui-places.woff +0 -0
  172. package/fonts/Places/tui-places.woff2 +0 -0
  173. package/fonts/Room/tui-room.css +6 -6
  174. package/fonts/Room/tui-room.eot +0 -0
  175. package/fonts/Room/tui-room.less +6 -6
  176. package/fonts/Room/tui-room.module.less +6 -6
  177. package/fonts/Room/tui-room.scss +6 -6
  178. package/fonts/Room/tui-room.styl +6 -6
  179. package/fonts/Room/tui-room.ttf +0 -0
  180. package/fonts/Room/tui-room.woff +0 -0
  181. package/fonts/Room/tui-room.woff2 +0 -0
  182. package/fonts/Services/tui-services.css +6 -6
  183. package/fonts/Services/tui-services.eot +0 -0
  184. package/fonts/Services/tui-services.less +6 -6
  185. package/fonts/Services/tui-services.module.less +6 -6
  186. package/fonts/Services/tui-services.scss +6 -6
  187. package/fonts/Services/tui-services.styl +6 -6
  188. package/fonts/Services/tui-services.ttf +0 -0
  189. package/fonts/Services/tui-services.woff +0 -0
  190. package/fonts/Services/tui-services.woff2 +0 -0
  191. package/fonts/Socials/tui-socials.css +6 -6
  192. package/fonts/Socials/tui-socials.eot +0 -0
  193. package/fonts/Socials/tui-socials.less +6 -6
  194. package/fonts/Socials/tui-socials.module.less +6 -6
  195. package/fonts/Socials/tui-socials.scss +6 -6
  196. package/fonts/Socials/tui-socials.styl +6 -6
  197. package/fonts/Socials/tui-socials.ttf +0 -0
  198. package/fonts/Socials/tui-socials.woff +0 -0
  199. package/fonts/Socials/tui-socials.woff2 +0 -0
  200. package/fonts/Transports/tui-transports.css +6 -6
  201. package/fonts/Transports/tui-transports.eot +0 -0
  202. package/fonts/Transports/tui-transports.less +6 -6
  203. package/fonts/Transports/tui-transports.module.less +6 -6
  204. package/fonts/Transports/tui-transports.scss +6 -6
  205. package/fonts/Transports/tui-transports.styl +6 -6
  206. package/fonts/Transports/tui-transports.ttf +0 -0
  207. package/fonts/Transports/tui-transports.woff +0 -0
  208. package/fonts/Transports/tui-transports.woff2 +0 -0
  209. package/fonts/Utilities/tui-utilities.css +6 -6
  210. package/fonts/Utilities/tui-utilities.eot +0 -0
  211. package/fonts/Utilities/tui-utilities.less +6 -6
  212. package/fonts/Utilities/tui-utilities.module.less +6 -6
  213. package/fonts/Utilities/tui-utilities.scss +6 -6
  214. package/fonts/Utilities/tui-utilities.styl +6 -6
  215. package/fonts/Utilities/tui-utilities.ttf +0 -0
  216. package/fonts/Utilities/tui-utilities.woff +0 -0
  217. package/fonts/Utilities/tui-utilities.woff2 +0 -0
  218. package/molecules/Breadcrumb.js +5 -4
  219. package/molecules/Buttons/ButtonContent.js +5 -4
  220. package/molecules/Card.js +7 -6
  221. package/molecules/Forms/Checkbox.js +8 -7
  222. package/molecules/Forms/DateField.js +3 -2
  223. package/molecules/Forms/Filter.js +15 -14
  224. package/molecules/Forms/FormControl.js +9 -8
  225. package/molecules/Forms/NumberField.d.ts +2 -2
  226. package/molecules/Forms/TextField.js +11 -10
  227. package/molecules/Link.js +8 -7
  228. package/package.json +1 -1
@@ -1,10 +1,11 @@
1
- import { jsxs as i, jsx as l } from "react/jsx-runtime";
1
+ import { jsxs as s, jsx as l } from "react/jsx-runtime";
2
2
  import { c as b } from "../../index-Cu0xwYjD.js";
3
3
  import { Icon as y } from "../../atoms/Icons/Icon.js";
4
+ import "../../atoms/Icons/contexts/IconsContext.js";
4
5
  import { useValue as N } from "../../hooks/useValue.js";
5
6
  import "../../controls-l0sNRNKZ.js";
6
7
  let V = 0;
7
- function D({
8
+ function I({
8
9
  id: m = "checkbox-" + V++,
9
10
  name: r = m,
10
11
  className: h,
@@ -21,18 +22,18 @@ function D({
21
22
  const { value: o, setValue: d } = N({
22
23
  name: r,
23
24
  initialValue: p,
24
- onChange(k, s) {
25
- c == null || c(k, s ? a !== void 0 ? a : s : null);
25
+ onChange(k, i) {
26
+ c == null || c(k, i ? a !== void 0 ? a : i : null);
26
27
  }
27
28
  });
28
- return /* @__PURE__ */ i(
29
+ return /* @__PURE__ */ s(
29
30
  "label",
30
31
  {
31
32
  className: b(h, "relative flex items-center gap-8", {
32
33
  "text-grey": t
33
34
  }),
34
35
  children: [
35
- /* @__PURE__ */ i("span", { className: "relative", children: [
36
+ /* @__PURE__ */ s("span", { className: "relative", children: [
36
37
  /* @__PURE__ */ l(
37
38
  "input",
38
39
  {
@@ -66,5 +67,5 @@ function D({
66
67
  );
67
68
  }
68
69
  export {
69
- D as Checkbox
70
+ I as Checkbox
70
71
  };
@@ -2,6 +2,7 @@ import { jsx as p, jsxs as b } from "react/jsx-runtime";
2
2
  import { c as M } from "../../index-Cu0xwYjD.js";
3
3
  import { useRef as R } from "react";
4
4
  import { Icon as E } from "../../atoms/Icons/Icon.js";
5
+ import "../../atoms/Icons/contexts/IconsContext.js";
5
6
  import { useValue as P } from "../../hooks/useValue.js";
6
7
  import { useInternalStatus as _ } from "../../hooks/useInternalStatus.js";
7
8
  import { FormControl as $ } from "./FormControl.js";
@@ -56,7 +57,7 @@ function G(e, t) {
56
57
  return u;
57
58
  }
58
59
  let V = 0;
59
- const F = (e) => e ? G(e, { representation: "date" }) : "", J = ({
60
+ const F = (e) => e ? G(e, { representation: "date" }) : "", K = ({
60
61
  id: e = `field-date-${++V}`,
61
62
  name: t = e,
62
63
  label: i,
@@ -153,5 +154,5 @@ const F = (e) => e ? G(e, { representation: "date" }) : "", J = ({
153
154
  );
154
155
  };
155
156
  export {
156
- J as DateField
157
+ K as DateField
157
158
  };
@@ -1,17 +1,18 @@
1
- import { jsxs as s, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
2
  import { c } from "../../index-Cu0xwYjD.js";
3
3
  import "../../controls-l0sNRNKZ.js";
4
4
  import { Icon as m } from "../../atoms/Icons/Icon.js";
5
+ import "../../atoms/Icons/contexts/IconsContext.js";
5
6
  import { useValue as D } from "../../hooks/useValue.js";
6
7
  let N = 0;
7
- function A({
8
+ function I({
8
9
  id: n = "filter-" + N++,
9
10
  name: a = n,
10
- className: u,
11
- dataTestId: p,
11
+ className: p,
12
+ dataTestId: u,
12
13
  disabled: r,
13
14
  checked: f = !1,
14
- value: t,
15
+ value: e,
15
16
  tabIndex: d = 0,
16
17
  onChange: l,
17
18
  hasDropdown: x,
@@ -22,16 +23,16 @@ function A({
22
23
  name: a,
23
24
  initialValue: f,
24
25
  onChange(w, o) {
25
- l == null || l(w, o ? t !== void 0 ? t : o : null);
26
+ l == null || l(w, o ? e !== void 0 ? e : o : null);
26
27
  }
27
28
  });
28
- return /* @__PURE__ */ s("label", { className: c(u, "relative"), children: [
29
- /* @__PURE__ */ e(
29
+ return /* @__PURE__ */ s("label", { className: c(p, "relative"), children: [
30
+ /* @__PURE__ */ t(
30
31
  "input",
31
32
  {
32
33
  ...h,
33
34
  name: a,
34
- "data-testid": p,
35
+ "data-testid": u,
35
36
  type: "checkbox",
36
37
  tabIndex: d,
37
38
  onChange: () => {
@@ -40,16 +41,16 @@ function A({
40
41
  checked: i,
41
42
  "data-name": "Filter",
42
43
  disabled: r,
43
- value: t
44
+ value: e
44
45
  }
45
46
  ),
46
47
  /* @__PURE__ */ s("span", { children: [
47
- /* @__PURE__ */ e("span", { className: c("text-b3 font-semibold"), children: b }),
48
- /* @__PURE__ */ e(m, { width: null, name: "CheckDefault", color: "black" }),
49
- x && /* @__PURE__ */ e(m, { name: "ArrowDefaultDown", className: "ml-8", width: "24px", color: "black" })
48
+ /* @__PURE__ */ t("span", { className: c("text-b3 font-semibold"), children: b }),
49
+ /* @__PURE__ */ t(m, { width: null, name: "CheckDefault", color: "black" }),
50
+ x && /* @__PURE__ */ t(m, { name: "ArrowDefaultDown", className: "ml-8", width: "24px", color: "black" })
50
51
  ] })
51
52
  ] });
52
53
  }
53
54
  export {
54
- A as Filter
55
+ I as Filter
55
56
  };
@@ -2,18 +2,19 @@ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
2
  import { useInternalStatus as f } from "../../hooks/useInternalStatus.js";
3
3
  import { FormLabel as u } from "./FormLabel.js";
4
4
  import { Icon as h } from "../../atoms/Icons/Icon.js";
5
+ import "../../atoms/Icons/contexts/IconsContext.js";
5
6
  import { c as b } from "../../index-Cu0xwYjD.js";
6
- const v = ({
7
+ const w = ({
7
8
  id: t,
8
9
  label: r,
9
10
  description: o,
10
11
  disabled: m,
11
12
  className: n,
12
13
  validationStatus: i = "default",
13
- children: c,
14
+ children: p,
14
15
  errorMessage: a,
15
- dataTestId: l,
16
- dataName: p,
16
+ dataTestId: c,
17
+ dataName: l,
17
18
  layout: d
18
19
  }) => {
19
20
  const x = f({
@@ -24,11 +25,11 @@ const v = ({
24
25
  "div",
25
26
  {
26
27
  className: b(n, "space-y-4"),
27
- "data-name": p,
28
- "data-testid": l,
28
+ "data-name": l,
29
+ "data-testid": c,
29
30
  children: [
30
31
  r && t && /* @__PURE__ */ e(u, { description: o, id: t, layout: d, children: r }),
31
- c,
32
+ p,
32
33
  x === "error" && a && /* @__PURE__ */ s("span", { className: "text-red text-b4 flex items-start gap-x-4 px-20", children: [
33
34
  /* @__PURE__ */ e(h, { name: "Error", width: "20px" }),
34
35
  a
@@ -38,5 +39,5 @@ const v = ({
38
39
  );
39
40
  };
40
41
  export {
41
- v as FormControl
42
+ w as FormControl
42
43
  };
@@ -23,6 +23,7 @@ export declare function useNumberField({ id, name, value: initialValue, onChange
23
23
  color?: string | undefined;
24
24
  className?: string | undefined;
25
25
  style?: import("react").CSSProperties | undefined;
26
+ children?: import("react").ReactNode;
26
27
  prefix?: string | undefined;
27
28
  form?: string | undefined;
28
29
  list?: string | undefined;
@@ -31,7 +32,6 @@ export declare function useNumberField({ id, name, value: initialValue, onChange
31
32
  slot?: string | undefined;
32
33
  title?: string | undefined;
33
34
  pattern?: string | undefined;
34
- children?: import("react").ReactNode;
35
35
  suppressHydrationWarning?: boolean | undefined;
36
36
  height?: string | number | undefined;
37
37
  lang?: string | undefined;
@@ -301,7 +301,7 @@ export declare function useNumberField({ id, name, value: initialValue, onChange
301
301
  accept?: string | undefined;
302
302
  capture?: boolean | "user" | "environment" | undefined;
303
303
  checked?: boolean | undefined;
304
- enterKeyHint?: "search" | "enter" | "next" | "done" | "go" | "previous" | "send" | undefined;
304
+ enterKeyHint?: "done" | "search" | "enter" | "next" | "go" | "previous" | "send" | undefined;
305
305
  maxLength?: number | undefined;
306
306
  minLength?: number | undefined;
307
307
  multiple?: boolean | undefined;
@@ -4,8 +4,9 @@ import { useValue as k } from "../../hooks/useValue.js";
4
4
  import { useInternalStatus as C } from "../../hooks/useInternalStatus.js";
5
5
  import { FormControl as T } from "./FormControl.js";
6
6
  import { Icon as r } from "../../atoms/Icons/Icon.js";
7
+ import "../../atoms/Icons/contexts/IconsContext.js";
7
8
  let F = 0;
8
- const M = (u) => {
9
+ const $ = (u) => {
9
10
  const {
10
11
  id: a = `text-field-${++F}`,
11
12
  name: s = a,
@@ -15,15 +16,15 @@ const M = (u) => {
15
16
  validationStatus: c = "default",
16
17
  hasDropdown: l = !1,
17
18
  icon: o,
18
- iconType: n,
19
+ iconType: i,
19
20
  errorMessage: f,
20
- disabled: i = !1,
21
+ disabled: n = !1,
21
22
  className: h,
22
23
  dataTestId: g = "TextField",
23
24
  onChange: v,
24
25
  ...w
25
26
  } = u, { value: y, setValue: N } = k({ name: s, initialValue: x, onChange: v }), e = C({
26
- isDisabled: i,
27
+ isDisabled: n,
27
28
  validationStatus: c
28
29
  });
29
30
  return /* @__PURE__ */ t(
@@ -34,7 +35,7 @@ const M = (u) => {
34
35
  description: b,
35
36
  dataName: "TextField",
36
37
  dataTestId: g,
37
- disabled: i,
38
+ disabled: n,
38
39
  validationStatus: c,
39
40
  errorMessage: f,
40
41
  children: /* @__PURE__ */ d("div", { className: "relative", children: [
@@ -44,7 +45,7 @@ const M = (u) => {
44
45
  ...w,
45
46
  id: a,
46
47
  name: s,
47
- disabled: i,
48
+ disabled: n,
48
49
  value: y,
49
50
  onChange: (D) => N(D.target.value),
50
51
  className: p(
@@ -78,9 +79,9 @@ const M = (u) => {
78
79
  children: [
79
80
  o && /* @__PURE__ */ t(r, { name: o, width: "24px" }),
80
81
  /* @__PURE__ */ d("span", { className: "ms-auto flex gap-x-8", children: [
81
- e === "error" && /* @__PURE__ */ t(r, { name: "CrossDefault", width: "24px", type: n }),
82
- e === "success" && /* @__PURE__ */ t(r, { name: "CheckDefault", width: "24px", type: n }),
83
- l && /* @__PURE__ */ t("button", { className: "pointer-events-auto", children: /* @__PURE__ */ t(r, { name: "ArrowDefaultDown", width: "24px", color: "black", type: n }) })
82
+ e === "error" && /* @__PURE__ */ t(r, { name: "CrossDefault", width: "24px", type: i }),
83
+ e === "success" && /* @__PURE__ */ t(r, { name: "CheckDefault", width: "24px", type: i }),
84
+ l && /* @__PURE__ */ t("button", { className: "pointer-events-auto", children: /* @__PURE__ */ t(r, { name: "ArrowDefaultDown", width: "24px", color: "black", type: i }) })
84
85
  ] })
85
86
  ]
86
87
  }
@@ -90,5 +91,5 @@ const M = (u) => {
90
91
  );
91
92
  };
92
93
  export {
93
- M as TextField
94
+ $ as TextField
94
95
  };
package/molecules/Link.js CHANGED
@@ -1,10 +1,11 @@
1
- import { jsxs as t, jsx as c } from "react/jsx-runtime";
1
+ import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
2
  import { c as a } from "../index-Cu0xwYjD.js";
3
3
  import { Icon as g } from "../atoms/Icons/Icon.js";
4
- const I = ({
4
+ import "../atoms/Icons/contexts/IconsContext.js";
5
+ const j = ({
5
6
  label: n,
6
7
  icon: s,
7
- iconType: o,
8
+ iconType: c,
8
9
  underlined: e = !0,
9
10
  className: m,
10
11
  inert: l,
@@ -21,7 +22,7 @@ const I = ({
21
22
  "data-name": "Link",
22
23
  ...p,
23
24
  children: [
24
- /* @__PURE__ */ c("span", { className: a({ "link-underline": e }), children: d }),
25
+ /* @__PURE__ */ o("span", { className: a({ "link-underline": e }), children: d }),
25
26
  /* @__PURE__ */ t(
26
27
  "span",
27
28
  {
@@ -33,11 +34,11 @@ const I = ({
33
34
  h,
34
35
  /* @__PURE__ */ t("span", { className: "inline-block", children: [
35
36
  x,
36
- s && /* @__PURE__ */ c(
37
+ s && /* @__PURE__ */ o(
37
38
  g,
38
39
  {
39
40
  name: s,
40
- iconType: o,
41
+ iconType: c,
41
42
  width: "24px",
42
43
  style: { marginInlineStart: "8px" }
43
44
  }
@@ -51,5 +52,5 @@ const I = ({
51
52
  );
52
53
  };
53
54
  export {
54
- I as Link
55
+ j as Link
55
56
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clubmed/trident-ui",
3
- "version": "1.0.0-alpha.36",
3
+ "version": "1.0.0-alpha.37",
4
4
  "type": "module",
5
5
  "description": "Shared ClubMed React UI components",
6
6
  "keywords": [