@clubmed/trident-ui 1.0.0-alpha.51 → 1.0.0-beta.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. package/CHANGELOG.md +310 -0
  2. package/atoms/Icons/Iconics.d.ts +1 -1
  3. package/atoms/Icons/fonts/Utilities.js +0 -6
  4. package/atoms/Icons/svg/Utilities.js +0 -8
  5. package/atoms/Icons/svg-use/Utilities.js +58 -68
  6. package/fonts/Actions/tui-actions.css +6 -6
  7. package/fonts/Actions/tui-actions.eot +0 -0
  8. package/fonts/Actions/tui-actions.less +6 -6
  9. package/fonts/Actions/tui-actions.module.less +6 -6
  10. package/fonts/Actions/tui-actions.scss +6 -6
  11. package/fonts/Actions/tui-actions.styl +6 -6
  12. package/fonts/Actions/tui-actions.ttf +0 -0
  13. package/fonts/Actions/tui-actions.woff +0 -0
  14. package/fonts/Actions/tui-actions.woff2 +0 -0
  15. package/fonts/Activities/tui-activities.css +6 -6
  16. package/fonts/Activities/tui-activities.eot +0 -0
  17. package/fonts/Activities/tui-activities.less +6 -6
  18. package/fonts/Activities/tui-activities.module.less +6 -6
  19. package/fonts/Activities/tui-activities.scss +6 -6
  20. package/fonts/Activities/tui-activities.styl +6 -6
  21. package/fonts/Activities/tui-activities.ttf +0 -0
  22. package/fonts/Activities/tui-activities.woff +0 -0
  23. package/fonts/Activities/tui-activities.woff2 +0 -0
  24. package/fonts/Brand/tui-brand.css +6 -6
  25. package/fonts/Brand/tui-brand.eot +0 -0
  26. package/fonts/Brand/tui-brand.less +6 -6
  27. package/fonts/Brand/tui-brand.module.less +6 -6
  28. package/fonts/Brand/tui-brand.scss +6 -6
  29. package/fonts/Brand/tui-brand.styl +6 -6
  30. package/fonts/Brand/tui-brand.ttf +0 -0
  31. package/fonts/Brand/tui-brand.woff +0 -0
  32. package/fonts/Brand/tui-brand.woff2 +0 -0
  33. package/fonts/Covid/tui-covid.css +6 -6
  34. package/fonts/Covid/tui-covid.eot +0 -0
  35. package/fonts/Covid/tui-covid.less +6 -6
  36. package/fonts/Covid/tui-covid.module.less +6 -6
  37. package/fonts/Covid/tui-covid.scss +6 -6
  38. package/fonts/Covid/tui-covid.styl +6 -6
  39. package/fonts/Covid/tui-covid.ttf +0 -0
  40. package/fonts/Covid/tui-covid.woff +0 -0
  41. package/fonts/Covid/tui-covid.woff2 +0 -0
  42. package/fonts/Food/tui-food.css +6 -6
  43. package/fonts/Food/tui-food.eot +0 -0
  44. package/fonts/Food/tui-food.less +6 -6
  45. package/fonts/Food/tui-food.module.less +6 -6
  46. package/fonts/Food/tui-food.scss +6 -6
  47. package/fonts/Food/tui-food.styl +6 -6
  48. package/fonts/Food/tui-food.ttf +0 -0
  49. package/fonts/Food/tui-food.woff +0 -0
  50. package/fonts/Food/tui-food.woff2 +0 -0
  51. package/fonts/HappyToCare/tui-happy-to-care.css +6 -6
  52. package/fonts/HappyToCare/tui-happy-to-care.eot +0 -0
  53. package/fonts/HappyToCare/tui-happy-to-care.less +6 -6
  54. package/fonts/HappyToCare/tui-happy-to-care.module.less +6 -6
  55. package/fonts/HappyToCare/tui-happy-to-care.scss +6 -6
  56. package/fonts/HappyToCare/tui-happy-to-care.styl +6 -6
  57. package/fonts/HappyToCare/tui-happy-to-care.ttf +0 -0
  58. package/fonts/HappyToCare/tui-happy-to-care.woff +0 -0
  59. package/fonts/HappyToCare/tui-happy-to-care.woff2 +0 -0
  60. package/fonts/Places/tui-places.css +6 -6
  61. package/fonts/Places/tui-places.eot +0 -0
  62. package/fonts/Places/tui-places.less +6 -6
  63. package/fonts/Places/tui-places.module.less +6 -6
  64. package/fonts/Places/tui-places.scss +6 -6
  65. package/fonts/Places/tui-places.styl +6 -6
  66. package/fonts/Places/tui-places.ttf +0 -0
  67. package/fonts/Places/tui-places.woff +0 -0
  68. package/fonts/Places/tui-places.woff2 +0 -0
  69. package/fonts/Room/tui-room.css +6 -6
  70. package/fonts/Room/tui-room.eot +0 -0
  71. package/fonts/Room/tui-room.less +6 -6
  72. package/fonts/Room/tui-room.module.less +6 -6
  73. package/fonts/Room/tui-room.scss +6 -6
  74. package/fonts/Room/tui-room.styl +6 -6
  75. package/fonts/Room/tui-room.ttf +0 -0
  76. package/fonts/Room/tui-room.woff +0 -0
  77. package/fonts/Room/tui-room.woff2 +0 -0
  78. package/fonts/Services/tui-services.css +6 -6
  79. package/fonts/Services/tui-services.eot +0 -0
  80. package/fonts/Services/tui-services.less +6 -6
  81. package/fonts/Services/tui-services.module.less +6 -6
  82. package/fonts/Services/tui-services.scss +6 -6
  83. package/fonts/Services/tui-services.styl +6 -6
  84. package/fonts/Services/tui-services.ttf +0 -0
  85. package/fonts/Services/tui-services.woff +0 -0
  86. package/fonts/Services/tui-services.woff2 +0 -0
  87. package/fonts/Socials/tui-socials.css +6 -6
  88. package/fonts/Socials/tui-socials.eot +0 -0
  89. package/fonts/Socials/tui-socials.less +6 -6
  90. package/fonts/Socials/tui-socials.module.less +6 -6
  91. package/fonts/Socials/tui-socials.scss +6 -6
  92. package/fonts/Socials/tui-socials.styl +6 -6
  93. package/fonts/Socials/tui-socials.ttf +0 -0
  94. package/fonts/Socials/tui-socials.woff +0 -0
  95. package/fonts/Socials/tui-socials.woff2 +0 -0
  96. package/fonts/Transports/tui-transports.css +6 -6
  97. package/fonts/Transports/tui-transports.eot +0 -0
  98. package/fonts/Transports/tui-transports.less +6 -6
  99. package/fonts/Transports/tui-transports.module.less +6 -6
  100. package/fonts/Transports/tui-transports.scss +6 -6
  101. package/fonts/Transports/tui-transports.styl +6 -6
  102. package/fonts/Transports/tui-transports.ttf +0 -0
  103. package/fonts/Transports/tui-transports.woff +0 -0
  104. package/fonts/Transports/tui-transports.woff2 +0 -0
  105. package/fonts/Utilities/tui-utilities.css +36 -38
  106. package/fonts/Utilities/tui-utilities.eot +0 -0
  107. package/fonts/Utilities/tui-utilities.less +36 -38
  108. package/fonts/Utilities/tui-utilities.module.less +36 -38
  109. package/fonts/Utilities/tui-utilities.scss +66 -70
  110. package/fonts/Utilities/tui-utilities.styl +36 -38
  111. package/fonts/Utilities/tui-utilities.svg +30 -36
  112. package/fonts/Utilities/tui-utilities.symbol.svg +0 -4
  113. package/fonts/Utilities/tui-utilities.ttf +0 -0
  114. package/fonts/Utilities/tui-utilities.woff +0 -0
  115. package/fonts/Utilities/tui-utilities.woff2 +0 -0
  116. package/molecules/Backdrop.js +13 -12
  117. package/molecules/Forms/Checkboxes/Checkbox.d.ts +1 -1
  118. package/molecules/Forms/Checkboxes/Checkbox.js +36 -36
  119. package/molecules/Forms/Checkboxes/Checkboxes.d.ts +1 -1
  120. package/molecules/Forms/Checkboxes/Checkboxes.js +30 -31
  121. package/molecules/Forms/DateField.d.ts +1 -17
  122. package/molecules/Forms/DateField.js +99 -97
  123. package/molecules/Forms/Filter.d.ts +1 -1
  124. package/molecules/Forms/Filter.js +38 -38
  125. package/molecules/Forms/FormControl.d.ts +3 -2
  126. package/molecules/Forms/FormControl.js +22 -21
  127. package/molecules/Forms/FormLabel.d.ts +4 -17
  128. package/molecules/Forms/FormLabel.js +24 -19
  129. package/molecules/Forms/NumberField.d.ts +4 -4
  130. package/molecules/Forms/NumberField.js +75 -72
  131. package/molecules/Forms/Password/Password.d.ts +1 -0
  132. package/molecules/Forms/Password/Password.js +77 -52
  133. package/molecules/Forms/Password/ValidationMessage.js +1 -1
  134. package/molecules/Forms/Radios/Radio.d.ts +1 -1
  135. package/molecules/Forms/Radios/Radio.js +31 -31
  136. package/molecules/Forms/Radios/RadioGroup.d.ts +1 -1
  137. package/molecules/Forms/Radios/RadioGroup.js +28 -29
  138. package/molecules/Forms/Range.d.ts +2 -2
  139. package/molecules/Forms/Range.js +181 -183
  140. package/molecules/Forms/Select.d.ts +10 -0
  141. package/molecules/Forms/Select.js +102 -0
  142. package/molecules/Forms/Switch.d.ts +1 -1
  143. package/molecules/Forms/Switch.js +28 -28
  144. package/molecules/Forms/TextField.d.ts +0 -4
  145. package/molecules/Forms/TextField.js +52 -52
  146. package/package.json +1 -1
  147. package/styles/globals.css +4 -0
  148. package/EyeClosed-vWGtzMgE.js +0 -5
  149. package/EyeOpened-CsQwqVMl.js +0 -5
  150. package/assets/icons/Utilities/EyeClosed.svg +0 -12
  151. package/assets/icons/Utilities/EyeOpened.svg +0 -11
@@ -1,39 +1,38 @@
1
- import { jsx as g } from "react/jsx-runtime";
2
- import { Children as v, isValidElement as x, cloneElement as V } from "react";
3
- import { useValue as C } from "../../../hooks/useValue.js";
1
+ import { jsx as v } from "react/jsx-runtime";
2
+ import { useId as x, Children as I, isValidElement as b, cloneElement as C } from "react";
3
+ import { useValue as h } from "../../../hooks/useValue.js";
4
4
  import { c as E } from "../../../index-Cu0xwYjD.js";
5
- let N = 0;
6
- function I({
7
- id: o = "radio-group-" + N++,
8
- name: r = o,
9
- children: s,
10
- value: u,
11
- defaultValue: l,
12
- onChange: m,
13
- disabled: t,
14
- readOnly: n,
15
- tabIndex: i = 0,
16
- ...a
17
- }) {
18
- const { value: c, setValue: f } = C({
5
+ function G(l) {
6
+ const s = x(), {
7
+ id: a = s,
8
+ name: r = a,
9
+ children: t,
10
+ value: i,
11
+ defaultValue: m,
12
+ onChange: u,
13
+ disabled: d,
14
+ readOnly: p,
15
+ tabIndex: c = 0,
16
+ ...n
17
+ } = l, { value: f, setValue: V } = h({
19
18
  name: r,
20
- initialValue: u,
21
- defaultValue: l,
22
- onChange: m
19
+ initialValue: i,
20
+ defaultValue: m,
21
+ onChange: u
23
22
  });
24
- return /* @__PURE__ */ g("div", { ...a, className: E("flex gap-12", a.className), role: "radiogroup", children: v.map(s, (e, p) => x(e) ? V(e, {
23
+ return /* @__PURE__ */ v("div", { ...n, className: E("flex gap-12", n.className), role: "radiogroup", children: I.map(t, (e, o) => b(e) ? C(e, {
25
24
  ...e.props,
26
25
  name: r,
27
- id: `${o}-${p}`,
28
- disabled: t,
29
- readOnly: n,
30
- tabIndex: i + p + 1,
31
- checked: c === e.props.value,
32
- onChange($, d) {
33
- f(d);
26
+ id: `${a}-${o}`,
27
+ disabled: d,
28
+ readOnly: p,
29
+ tabIndex: c + o + 1,
30
+ checked: f === e.props.value,
31
+ onChange(N, g) {
32
+ V(g);
34
33
  }
35
34
  }) : e) });
36
35
  }
37
36
  export {
38
- I as RadioGroup
37
+ G as RadioGroup
39
38
  };
@@ -1,4 +1,4 @@
1
- import { FunctionComponent, InputHTMLAttributes } from 'react';
1
+ import { InputHTMLAttributes } from 'react';
2
2
  import './range.css';
3
3
  interface RangeProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
4
4
  /**
@@ -37,5 +37,5 @@ interface RangeProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChan
37
37
  label: string;
38
38
  }[];
39
39
  }
40
- export declare const Range: FunctionComponent<RangeProps>;
40
+ export declare const Range: (props: RangeProps) => import("react/jsx-runtime").JSX.Element;
41
41
  export {};