@clubmed/trident-ui 1.2.0-beta.2 → 1.2.0-beta.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/atoms/Icons/Icon.d.ts +5 -1
  3. package/atoms/Icons/Icon.js +3 -2
  4. package/atoms/Icons/Icon.js.map +1 -1
  5. package/atoms/Icons/Iconics.d.ts +9 -1
  6. package/atoms/Icons/Iconics.js +1 -1
  7. package/atoms/Icons/IconsResolver.d.ts +33 -1
  8. package/atoms/Icons/IconsResolver.js +6 -5
  9. package/atoms/Icons/IconsResolver.js.map +1 -1
  10. package/atoms/Icons/contexts/IconsContext.d.ts +8 -1
  11. package/atoms/Icons/contexts/IconsContext.js +8 -1
  12. package/atoms/Icons/contexts/IconsContext.js.map +1 -1
  13. package/atoms/Icons/index.js +8 -6
  14. package/atoms/Icons/index.js.map +1 -1
  15. package/atoms/Icons/svg/SvgIcon.d.ts +9 -1
  16. package/atoms/Icons/svg/SvgIcon.js +5 -1
  17. package/atoms/Icons/svg/SvgIcon.js.map +1 -1
  18. package/atoms/Icons/svg/SvgIconResolver.d.ts +5 -1
  19. package/atoms/Icons/svg/SvgIconResolver.js +5 -1
  20. package/atoms/Icons/svg/SvgIconResolver.js.map +1 -1
  21. package/atoms/Icons/svg/index.d.ts +2 -1
  22. package/atoms/Icons/svg/index.js +6 -2
  23. package/atoms/Icons/svg-use/SvgUseIcon.d.ts +9 -1
  24. package/atoms/Icons/svg-use/SvgUseIcon.js +5 -1
  25. package/atoms/Icons/svg-use/SvgUseIcon.js.map +1 -1
  26. package/atoms/Icons/svg-use/SvgUseIconResolver.d.ts +5 -1
  27. package/atoms/Icons/svg-use/SvgUseIconResolver.js +5 -1
  28. package/atoms/Icons/svg-use/SvgUseIconResolver.js.map +1 -1
  29. package/atoms/Icons/svg-use/index.d.ts +2 -1
  30. package/atoms/Icons/svg-use/index.js +6 -2
  31. package/molecules/Breadcrumb.js +9 -8
  32. package/molecules/Breadcrumb.js.map +1 -1
  33. package/molecules/Buttons/ButtonContent.js +6 -5
  34. package/molecules/Buttons/ButtonContent.js.map +1 -1
  35. package/molecules/Card.js +8 -7
  36. package/molecules/Card.js.map +1 -1
  37. package/molecules/Forms/Checkboxes/Checkbox.js +13 -12
  38. package/molecules/Forms/Checkboxes/Checkbox.js.map +1 -1
  39. package/molecules/Forms/DateField.js +4 -3
  40. package/molecules/Forms/DateField.js.map +1 -1
  41. package/molecules/Forms/Filter.js +13 -12
  42. package/molecules/Forms/Filter.js.map +1 -1
  43. package/molecules/Forms/FormControl.js +16 -15
  44. package/molecules/Forms/FormControl.js.map +1 -1
  45. package/molecules/Forms/Password/Password.js +11 -10
  46. package/molecules/Forms/Password/Password.js.map +1 -1
  47. package/molecules/Forms/Password/ValidationMessage.js +9 -8
  48. package/molecules/Forms/Password/ValidationMessage.js.map +1 -1
  49. package/molecules/Forms/Select.js +4 -3
  50. package/molecules/Forms/Select.js.map +1 -1
  51. package/molecules/Forms/TextField.js +8 -7
  52. package/molecules/Forms/TextField.js.map +1 -1
  53. package/molecules/Link.js +9 -8
  54. package/molecules/Link.js.map +1 -1
  55. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # ClubMed React UI components changelog
2
2
 
3
+ # [1.2.0-beta.4](https://scm.clubmed.com/clubmed/cm-trident-ui/compare/v1.2.0-beta.3...v1.2.0-beta.4) (2024-11-22)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **ci:** fix external option for @clubmed/trident-icons ([2b656c6](https://scm.clubmed.com/clubmed/cm-trident-ui/-/commit/2b656c652395bb1076896675c16eea8abf7a4770))
9
+
10
+ # [1.2.0-beta.3](https://scm.clubmed.com/clubmed/cm-trident-ui/compare/v1.2.0-beta.2...v1.2.0-beta.3) (2024-11-21)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **icons:** fix re-exported names in barrels files ([575c2c0](https://scm.clubmed.com/clubmed/cm-trident-ui/-/commit/575c2c08c26fac157cd4000bc2d216157a52c875))
16
+
3
17
  # [1.2.0-beta.2](https://scm.clubmed.com/clubmed/cm-trident-ui/compare/v1.2.0-beta.1...v1.2.0-beta.2) (2024-11-21)
4
18
 
5
19
 
@@ -1 +1,5 @@
1
- export { Icon } from '../../../node_modules/@clubmed/trident-icons';
1
+ import { Icon as I } from '../../../node_modules/@clubmed/trident-icons';
2
+ /**
3
+ * @deprecated use Icon from '@clubmed/trident-icons'.
4
+ */
5
+ export declare const Icon: typeof I;
@@ -1,5 +1,6 @@
1
- import { Icon as c } from "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
1
+ import { Icon as o } from "@clubmed/trident-icons";
2
+ const n = o;
2
3
  export {
3
- c as Icon
4
+ n as Icon
4
5
  };
5
6
  //# sourceMappingURL=Icon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"Icon.js","sources":["../../../lib/atoms/Icons/Icon.tsx"],"sourcesContent":["import { Icon as I } from '@clubmed/trident-icons';\n\n/**\n * @deprecated use Icon from '@clubmed/trident-icons'.\n */\nexport const Icon: typeof I = I;\n"],"names":["Icon","I"],"mappings":";AAKO,MAAMA,IAAiBC;"}
@@ -1 +1,9 @@
1
- export { type IconicNames, type IconicTypes } from '../../../node_modules/@clubmed/trident-icons';
1
+ import { type IconicNames as N, type IconicTypes as T } from '../../../node_modules/@clubmed/trident-icons';
2
+ /**
3
+ * @deprecated use IconicNames from '@clubmed/trident-icons'.
4
+ */
5
+ export type IconicNames = N;
6
+ /**
7
+ * @deprecated use IconicTypes from '@clubmed/trident-icons'.
8
+ */
9
+ export type IconicTypes = T;
@@ -1,2 +1,2 @@
1
- import "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
1
+ import "@clubmed/trident-icons";
2
2
  //# sourceMappingURL=Iconics.js.map
@@ -1 +1,33 @@
1
- export { resolverIconsFactory, IconsContext, IconTypesRegistry, type IconProps, type IconsRegistryValue, type IconResolverProps, IconsProvider, loadIcons, } from '../../../node_modules/@clubmed/trident-icons';
1
+ import { type IconProps as IP, type IconResolverProps as IRP, IconsContext as IC, IconsProvider as IPR, type IconsRegistryValue as IRV, IconTypesRegistry as IT, loadIcons as L, resolverIconsFactory as R } from '../../../node_modules/@clubmed/trident-icons';
2
+ /**
3
+ * @deprecated use resolverIconsFactory from '@clubmed/trident-icons'.
4
+ */
5
+ export declare const resolverIconsFactory: typeof R;
6
+ /**
7
+ * @deprecated use IconsContext from '@clubmed/trident-icons'.
8
+ */
9
+ export declare const IconsContext: typeof IC;
10
+ /**
11
+ * @deprecated use IconTypesRegistry from '@clubmed/trident-icons'.
12
+ */
13
+ export declare const IconTypesRegistry: typeof IT;
14
+ /**
15
+ * @deprecated use IconProps from '@clubmed/trident-icons'.
16
+ */
17
+ export type IconProps = IP;
18
+ /**
19
+ * @deprecated use IconsRegistryValue from '@clubmed/trident-icons'.
20
+ */
21
+ export type IconsRegistryValue = IRV;
22
+ /**
23
+ * @deprecated use IconResolverProps from '@clubmed/trident-icons'.
24
+ */
25
+ export type IconResolverProps = IRP;
26
+ /**
27
+ * @deprecated use IconsProvider from '@clubmed/trident-icons'.
28
+ */
29
+ export declare const IconsProvider: typeof IPR;
30
+ /**
31
+ * @deprecated use loadIcons from '@clubmed/trident-icons'.
32
+ */
33
+ export declare const loadIcons: typeof L;
@@ -1,9 +1,10 @@
1
- import { IconTypesRegistry as e, IconsContext as s, IconsProvider as c, loadIcons as n, resolverIconsFactory as t } from "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
1
+ import { resolverIconsFactory as o, IconsContext as s, IconTypesRegistry as c, IconsProvider as n, loadIcons as r } from "@clubmed/trident-icons";
2
+ const t = o, I = s, a = c, y = n, i = r;
2
3
  export {
3
- e as IconTypesRegistry,
4
- s as IconsContext,
5
- c as IconsProvider,
6
- n as loadIcons,
4
+ a as IconTypesRegistry,
5
+ I as IconsContext,
6
+ y as IconsProvider,
7
+ i as loadIcons,
7
8
  t as resolverIconsFactory
8
9
  };
9
10
  //# sourceMappingURL=IconsResolver.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconsResolver.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"IconsResolver.js","sources":["../../../lib/atoms/Icons/IconsResolver.ts"],"sourcesContent":["import {\n type IconProps as IP,\n type IconResolverProps as IRP,\n IconsContext as IC,\n IconsProvider as IPR,\n type IconsRegistryValue as IRV,\n IconTypesRegistry as IT,\n loadIcons as L,\n resolverIconsFactory as R,\n} from '@clubmed/trident-icons';\n\n/**\n * @deprecated use resolverIconsFactory from '@clubmed/trident-icons'.\n */\nexport const resolverIconsFactory: typeof R = R;\n/**\n * @deprecated use IconsContext from '@clubmed/trident-icons'.\n */\nexport const IconsContext: typeof IC = IC;\n/**\n * @deprecated use IconTypesRegistry from '@clubmed/trident-icons'.\n */\nexport const IconTypesRegistry: typeof IT = IT;\n/**\n * @deprecated use IconProps from '@clubmed/trident-icons'.\n */\nexport type IconProps = IP;\n/**\n * @deprecated use IconsRegistryValue from '@clubmed/trident-icons'.\n */\nexport type IconsRegistryValue = IRV;\n/**\n * @deprecated use IconResolverProps from '@clubmed/trident-icons'.\n */\nexport type IconResolverProps = IRP;\n/**\n * @deprecated use IconsProvider from '@clubmed/trident-icons'.\n */\nexport const IconsProvider: typeof IPR = IPR;\n/**\n * @deprecated use loadIcons from '@clubmed/trident-icons'.\n */\nexport const loadIcons: typeof L = L;\n"],"names":["resolverIconsFactory","R","IconsContext","IC","IconTypesRegistry","IT","IconsProvider","IPR","loadIcons","L"],"mappings":";AAcO,MAAMA,IAAiCC,GAIjCC,IAA0BC,GAI1BC,IAA+BC,GAgB/BC,IAA4BC,GAI5BC,IAAsBC;"}
@@ -1 +1,8 @@
1
- export * from '../../../../node_modules/@clubmed/trident-icons/contexts/IconsContext';
1
+ import { IconsContext as IC, type IconProps as IP, type IconResolverProps as IRP, type IconsRegistryValue as IRV, IconsProvider as IPV, loadIcons as L, IconTypesRegistry as IT } from '../../../../node_modules/@clubmed/trident-icons/contexts/IconsContext';
2
+ export declare const IconsContext: typeof IC;
3
+ export type IconProps = IP;
4
+ export type IconResolverProps = IRP;
5
+ export type IconsRegistryValue = IRV;
6
+ export declare const IconsProvider: typeof IPV;
7
+ export declare const loadIcons: typeof L;
8
+ export declare const IconTypesRegistry: typeof IT;
@@ -1,2 +1,9 @@
1
- export * from "@clubmed/trident-icons/contexts/IconsContext";
1
+ import { IconsContext as o, IconsProvider as s, loadIcons as n, IconTypesRegistry as c } from "@clubmed/trident-icons/contexts/IconsContext";
2
+ const e = o, r = s, I = n, a = c;
3
+ export {
4
+ a as IconTypesRegistry,
5
+ e as IconsContext,
6
+ r as IconsProvider,
7
+ I as loadIcons
8
+ };
2
9
  //# sourceMappingURL=IconsContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconsContext.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"IconsContext.js","sources":["../../../../lib/atoms/Icons/contexts/IconsContext.tsx"],"sourcesContent":["import {\n IconsContext as IC,\n type IconProps as IP,\n type IconResolverProps as IRP,\n type IconsRegistryValue as IRV,\n IconsProvider as IPV,\n loadIcons as L,\n IconTypesRegistry as IT,\n} from '@clubmed/trident-icons/contexts/IconsContext';\n\nexport const IconsContext: typeof IC = IC;\nexport type IconProps = IP;\nexport type IconResolverProps = IRP;\nexport type IconsRegistryValue = IRV;\nexport const IconsProvider: typeof IPV = IPV;\nexport const loadIcons: typeof L = L;\nexport const IconTypesRegistry: typeof IT = IT;\n"],"names":["IconsContext","IC","IconsProvider","IPV","loadIcons","L","IconTypesRegistry","IT"],"mappings":";AAUO,MAAMA,IAA0BC,GAI1BC,IAA4BC,GAC5BC,IAAsBC,GACtBC,IAA+BC;"}
@@ -1,10 +1,12 @@
1
- import { Icon as c, IconTypesRegistry as e, IconsContext as n, IconsProvider as s, loadIcons as I, resolverIconsFactory as t } from "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
1
+ import { Icon as c } from "./Icon.js";
2
+ import "@clubmed/trident-icons";
3
+ import { IconTypesRegistry as s, IconsContext as t, IconsProvider as I, loadIcons as p, resolverIconsFactory as i } from "./IconsResolver.js";
2
4
  export {
3
5
  c as Icon,
4
- e as IconTypesRegistry,
5
- n as IconsContext,
6
- s as IconsProvider,
7
- I as loadIcons,
8
- t as resolverIconsFactory
6
+ s as IconTypesRegistry,
7
+ t as IconsContext,
8
+ I as IconsProvider,
9
+ p as loadIcons,
10
+ i as resolverIconsFactory
9
11
  };
10
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -1 +1,9 @@
1
- export * from '../../../../node_modules/@clubmed/trident-icons/svg/SvgIcon';
1
+ import { SvgIcon as S, type SvgIconProps as Props } from '../../../../node_modules/@clubmed/trident-icons/svg/SvgIcon';
2
+ /**
3
+ * @deprecated use SvgIconProps from '@clubmed/trident-icons/svg/SvgIcon'.
4
+ */
5
+ export type SvgIconProps = Props;
6
+ /**
7
+ * @deprecated use SvgIcon from '@clubmed/trident-icons/svg/SvgIcon'.
8
+ */
9
+ export declare const SvgIcon: typeof S;
@@ -1,2 +1,6 @@
1
- export * from "@clubmed/trident-icons/svg/SvgIcon";
1
+ import { SvgIcon as o } from "@clubmed/trident-icons/svg/SvgIcon";
2
+ const n = o;
3
+ export {
4
+ n as SvgIcon
5
+ };
2
6
  //# sourceMappingURL=SvgIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SvgIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"SvgIcon.js","sources":["../../../../lib/atoms/Icons/svg/SvgIcon.tsx"],"sourcesContent":["import { SvgIcon as S, type SvgIconProps as Props } from '@clubmed/trident-icons/svg/SvgIcon';\n\n/**\n * @deprecated use SvgIconProps from '@clubmed/trident-icons/svg/SvgIcon'.\n */\nexport type SvgIconProps = Props;\n/**\n * @deprecated use SvgIcon from '@clubmed/trident-icons/svg/SvgIcon'.\n */\nexport const SvgIcon = S;\n"],"names":["SvgIcon","S"],"mappings":";AASO,MAAMA,IAAUC;"}
@@ -1 +1,5 @@
1
- export * from '../../../../node_modules/@clubmed/trident-icons/svg/SvgIconResolver';
1
+ import { resolver as r } from '../../../../node_modules/@clubmed/trident-icons/svg/SvgIconResolver';
2
+ /**
3
+ * @deprecated use resolver from '@clubmed/trident-icons/svg/SvgIconResolver'.
4
+ */
5
+ export declare const resolver: typeof r;
@@ -1,2 +1,6 @@
1
- export * from "@clubmed/trident-icons/svg/SvgIconResolver";
1
+ import { resolver as r } from "@clubmed/trident-icons/svg/SvgIconResolver";
2
+ const o = r;
3
+ export {
4
+ o as resolver
5
+ };
2
6
  //# sourceMappingURL=SvgIconResolver.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SvgIconResolver.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"SvgIconResolver.js","sources":["../../../../lib/atoms/Icons/svg/SvgIconResolver.tsx"],"sourcesContent":["import { resolver as r } from '@clubmed/trident-icons/svg/SvgIconResolver';\n\n/**\n * @deprecated use resolver from '@clubmed/trident-icons/svg/SvgIconResolver'.\n */\nexport const resolver: typeof r = r;\n"],"names":["resolver","r"],"mappings":";AAKO,MAAMA,IAAqBC;"}
@@ -1 +1,2 @@
1
- export * from './SvgIcon';
1
+ export * from './SvgIconResolver';
2
+ export { SvgIcon, type SvgIconProps } from './SvgIcon';
@@ -1,3 +1,7 @@
1
- import "@clubmed/trident-icons/svg/SvgIconResolver";
2
- export * from "@clubmed/trident-icons/svg/SvgIcon";
1
+ import { resolver as e } from "./SvgIconResolver.js";
2
+ import { SvgIcon as m } from "./SvgIcon.js";
3
+ export {
4
+ m as SvgIcon,
5
+ e as resolver
6
+ };
3
7
  //# sourceMappingURL=index.js.map
@@ -1 +1,9 @@
1
- export * from '../../../../node_modules/@clubmed/trident-icons/svg-use/SvgUseIcon';
1
+ import { type SvgUseIconProps as Props, SvgUseIcon as S } from '../../../../node_modules/@clubmed/trident-icons/svg-use/SvgUseIcon';
2
+ /**
3
+ * @deprecated use SvgUseIconProps from '@clubmed/trident-icons/svg-use/SvgUseIcon'.
4
+ */
5
+ export type SvgUseIconProps = Props;
6
+ /**
7
+ * @deprecated use SvgUseIcon from '@clubmed/trident-icons/svg-use/SvgUseIcon'.
8
+ */
9
+ export declare const SvgUseIcon: typeof S;
@@ -1,2 +1,6 @@
1
- export * from "@clubmed/trident-icons/svg-use/SvgUseIcon";
1
+ import { SvgUseIcon as o } from "@clubmed/trident-icons/svg-use/SvgUseIcon";
2
+ const c = o;
3
+ export {
4
+ c as SvgUseIcon
5
+ };
2
6
  //# sourceMappingURL=SvgUseIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SvgUseIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"SvgUseIcon.js","sources":["../../../../lib/atoms/Icons/svg-use/SvgUseIcon.tsx"],"sourcesContent":["import {\n type SvgUseIconProps as Props,\n SvgUseIcon as S,\n} from '@clubmed/trident-icons/svg-use/SvgUseIcon';\n\n/**\n * @deprecated use SvgUseIconProps from '@clubmed/trident-icons/svg-use/SvgUseIcon'.\n */\nexport type SvgUseIconProps = Props;\n/**\n * @deprecated use SvgUseIcon from '@clubmed/trident-icons/svg-use/SvgUseIcon'.\n */\nexport const SvgUseIcon = S;\n"],"names":["SvgUseIcon","S"],"mappings":";AAYO,MAAMA,IAAaC;"}
@@ -1 +1,5 @@
1
- export * from '../../../../node_modules/@clubmed/trident-icons/svg-use/SvgUseIconResolver';
1
+ import { resolver as r } from '../../../../node_modules/@clubmed/trident-icons/svg-use/SvgUseIconResolver';
2
+ /**
3
+ * @deprecated use resolver from '@clubmed/trident-icons/svg/SvgIconResolver'.
4
+ */
5
+ export declare const resolver: typeof r;
@@ -1,2 +1,6 @@
1
- export * from "@clubmed/trident-icons/svg-use/SvgUseIconResolver";
1
+ import { resolver as r } from "@clubmed/trident-icons/svg-use/SvgUseIconResolver";
2
+ const o = r;
3
+ export {
4
+ o as resolver
5
+ };
2
6
  //# sourceMappingURL=SvgUseIconResolver.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SvgUseIconResolver.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"SvgUseIconResolver.js","sources":["../../../../lib/atoms/Icons/svg-use/SvgUseIconResolver.tsx"],"sourcesContent":["import { resolver as r } from '@clubmed/trident-icons/svg-use/SvgUseIconResolver';\n/**\n * @deprecated use resolver from '@clubmed/trident-icons/svg/SvgIconResolver'.\n */\nexport const resolver: typeof r = r;\n"],"names":["resolver","r"],"mappings":";AAIO,MAAMA,IAAqBC;"}
@@ -1 +1,2 @@
1
- export * from './SvgUseIcon';
1
+ export { resolver } from './SvgUseIconResolver';
2
+ export { type SvgUseIconProps, SvgUseIcon } from './SvgUseIcon';
@@ -1,3 +1,7 @@
1
- import "@clubmed/trident-icons/svg-use/SvgUseIconResolver";
2
- export * from "@clubmed/trident-icons/svg-use/SvgUseIcon";
1
+ import { resolver as e } from "./SvgUseIconResolver.js";
2
+ import { SvgUseIcon as m } from "./SvgUseIcon.js";
3
+ export {
4
+ m as SvgUseIcon,
5
+ e as resolver
6
+ };
3
7
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,7 @@
1
1
  import { jsx as e, jsxs as k } from "react/jsx-runtime";
2
2
  import { c as w } from "../chunks/index.js";
3
- import { Icon as B } from "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
3
+ import { Icon as B } from "../atoms/Icons/Icon.js";
4
+ import "@clubmed/trident-icons";
4
5
  const E = {
5
6
  light: {
6
7
  thStart: "text-middleGrey",
@@ -10,14 +11,14 @@ const E = {
10
11
  thStart: "text-white",
11
12
  thEnd: "text-white font-bold"
12
13
  }
13
- }, I = ({
14
- className: l,
14
+ }, L = ({
15
+ className: o,
15
16
  items: n,
16
- theme: o = "light",
17
- component: h = "a"
17
+ theme: l = "light",
18
+ component: i = "a"
18
19
  }) => {
19
- const [i, m, , ...r] = n, d = r.length ? r[r.length - 1] : n[n.length - 1], x = { label: "...", href: "" }, s = r.length ? [i, m, x, d] : n, { thStart: p, thEnd: f } = E[o], g = h;
20
- return /* @__PURE__ */ e("nav", { "data-name": "Breadcrumb", "aria-label": "Breadcrumb", className: l, children: /* @__PURE__ */ e("ul", { className: "flex items-center", children: s.map(({ label: a, href: c }, b) => {
20
+ const [m, h, , ...r] = n, d = r.length ? r[r.length - 1] : n[n.length - 1], x = { label: "...", href: "" }, s = r.length ? [m, h, x, d] : n, { thStart: p, thEnd: f } = E[l], g = i;
21
+ return /* @__PURE__ */ e("nav", { "data-name": "Breadcrumb", "aria-label": "Breadcrumb", className: o, children: /* @__PURE__ */ e("ul", { className: "flex items-center", children: s.map(({ label: a, href: c }, b) => {
21
22
  const t = b === s.length - 1, u = c && !t;
22
23
  return /* @__PURE__ */ k(
23
24
  "li",
@@ -37,6 +38,6 @@ const E = {
37
38
  }) }) });
38
39
  };
39
40
  export {
40
- I as Breadcrumb
41
+ L as Breadcrumb
41
42
  };
42
43
  //# sourceMappingURL=Breadcrumb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumb.js","sources":["../../lib/molecules/Breadcrumb.tsx"],"sourcesContent":["import classnames from 'classnames';\n\nimport type { FunctionComponent, PropsWithChildren } from 'react';\n\nimport { Icon } from '@/atoms/Icons';\n\nexport interface BreadcrumbProps {\n className?: string;\n items: {\n label: string;\n href: string;\n }[];\n theme?: 'dark' | 'light';\n /**\n * Allow giving a custom component\n */\n component?: FunctionComponent<PropsWithChildren<any>> | string;\n}\n\nconst themes = {\n light: {\n thStart: 'text-middleGrey',\n thEnd: 'text-black font-bold',\n },\n dark: {\n thStart: 'text-white',\n thEnd: 'text-white font-bold',\n },\n};\n\nexport const Breadcrumb: FunctionComponent<BreadcrumbProps> = ({\n className,\n items,\n theme = 'light',\n component = 'a',\n}) => {\n const [first, second, , ...rest] = items;\n const lastItem = rest.length ? rest[rest.length - 1] : items[items.length - 1];\n const spacer = { label: '...', href: '' };\n const itemsToRender = !rest.length ? items : [first, second, spacer, lastItem];\n const { thStart, thEnd } = themes[theme];\n const Cmp = component as FunctionComponent<PropsWithChildren<{ href: string }>>;\n\n return (\n <nav data-name=\"Breadcrumb\" aria-label=\"Breadcrumb\" className={className}>\n <ul className=\"flex items-center\">\n {itemsToRender.map(({ label, href }, index) => {\n const isLast = index === itemsToRender.length - 1;\n const isLink = href && !isLast;\n return (\n <li\n key={label}\n className={classnames('text-b4 flex items-center', {\n [thStart]: !isLast,\n [thEnd]: isLast,\n })}\n {...(isLast && { 'aria-current': 'page' })}\n >\n <span>{isLink ? <Cmp href={href}>{label}</Cmp> : label}</span>\n {!isLast && <Icon name=\"Diamond\" width=\"14px\" className=\"mx-4\" />}\n </li>\n );\n })}\n </ul>\n </nav>\n );\n};\n"],"names":["themes","Breadcrumb","className","items","theme","component","first","second","rest","lastItem","spacer","itemsToRender","thStart","thEnd","Cmp","jsx","label","href","index","isLast","isLink","jsxs","classnames","Icon"],"mappings":";;;AAmBA,MAAMA,IAAS;AAAA,EACb,OAAO;AAAA,IACL,SAAS;AAAA,IACT,OAAO;AAAA,EACT;AAAA,EACA,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,OAAO;AAAA,EACT;AACF,GAEaC,IAAiD,CAAC;AAAA,EAC7D,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,WAAAC,IAAY;AACd,MAAM;AACJ,QAAM,CAACC,GAAOC,GAAU,EAAA,GAAGC,CAAI,IAAIL,GAC7BM,IAAWD,EAAK,SAASA,EAAKA,EAAK,SAAS,CAAC,IAAIL,EAAMA,EAAM,SAAS,CAAC,GACvEO,IAAS,EAAE,OAAO,OAAO,MAAM,GAAG,GAClCC,IAAiBH,EAAK,SAAiB,CAACF,GAAOC,GAAQG,GAAQD,CAAQ,IAAxCN,GAC/B,EAAE,SAAAS,GAAS,OAAAC,EAAM,IAAIb,EAAOI,CAAK,GACjCU,IAAMT;AAEZ,2BACG,OAAI,EAAA,aAAU,cAAa,cAAW,cAAa,WAAAH,GAClD,UAAC,gBAAAa,EAAA,MAAA,EAAG,WAAU,qBACX,YAAc,IAAI,CAAC,EAAE,OAAAC,GAAO,MAAAC,KAAQC,MAAU;AACvC,UAAAC,IAASD,MAAUP,EAAc,SAAS,GAC1CS,IAASH,KAAQ,CAACE;AAEtB,WAAA,gBAAAE;AAAA,MAAC;AAAA,MAAA;AAAA,QAEC,WAAWC,EAAW,6BAA6B;AAAA,UACjD,CAACV,CAAO,GAAG,CAACO;AAAA,UACZ,CAACN,CAAK,GAAGM;AAAA,QAAA,CACV;AAAA,QACA,GAAIA,KAAU,EAAE,gBAAgB,OAAO;AAAA,QAExC,UAAA;AAAA,UAAA,gBAAAJ,EAAC,UAAM,UAASK,IAAA,gBAAAL,EAACD,KAAI,MAAAG,GAAa,UAAAD,GAAM,IAASA,EAAM,CAAA;AAAA,UACtD,CAACG,KAAW,gBAAAJ,EAAAQ,GAAA,EAAK,MAAK,WAAU,OAAM,QAAO,WAAU,QAAO;AAAA,QAAA;AAAA,MAAA;AAAA,MAR1DP;AAAA,IAAA;AAAA,EASP,CAEH,GACH,EACF,CAAA;AAEJ;"}
1
+ {"version":3,"file":"Breadcrumb.js","sources":["../../lib/molecules/Breadcrumb.tsx"],"sourcesContent":["import classnames from 'classnames';\n\nimport type { FunctionComponent, PropsWithChildren } from 'react';\n\nimport { Icon } from '@/atoms/Icons';\n\nexport interface BreadcrumbProps {\n className?: string;\n items: {\n label: string;\n href: string;\n }[];\n theme?: 'dark' | 'light';\n /**\n * Allow giving a custom component\n */\n component?: FunctionComponent<PropsWithChildren<any>> | string;\n}\n\nconst themes = {\n light: {\n thStart: 'text-middleGrey',\n thEnd: 'text-black font-bold',\n },\n dark: {\n thStart: 'text-white',\n thEnd: 'text-white font-bold',\n },\n};\n\nexport const Breadcrumb: FunctionComponent<BreadcrumbProps> = ({\n className,\n items,\n theme = 'light',\n component = 'a',\n}) => {\n const [first, second, , ...rest] = items;\n const lastItem = rest.length ? rest[rest.length - 1] : items[items.length - 1];\n const spacer = { label: '...', href: '' };\n const itemsToRender = !rest.length ? items : [first, second, spacer, lastItem];\n const { thStart, thEnd } = themes[theme];\n const Cmp = component as FunctionComponent<PropsWithChildren<{ href: string }>>;\n\n return (\n <nav data-name=\"Breadcrumb\" aria-label=\"Breadcrumb\" className={className}>\n <ul className=\"flex items-center\">\n {itemsToRender.map(({ label, href }, index) => {\n const isLast = index === itemsToRender.length - 1;\n const isLink = href && !isLast;\n return (\n <li\n key={label}\n className={classnames('text-b4 flex items-center', {\n [thStart]: !isLast,\n [thEnd]: isLast,\n })}\n {...(isLast && { 'aria-current': 'page' })}\n >\n <span>{isLink ? <Cmp href={href}>{label}</Cmp> : label}</span>\n {!isLast && <Icon name=\"Diamond\" width=\"14px\" className=\"mx-4\" />}\n </li>\n );\n })}\n </ul>\n </nav>\n );\n};\n"],"names":["themes","Breadcrumb","className","items","theme","component","first","second","rest","lastItem","spacer","itemsToRender","thStart","thEnd","Cmp","jsx","label","href","index","isLast","isLink","jsxs","classnames","Icon"],"mappings":";;;;AAmBA,MAAMA,IAAS;AAAA,EACb,OAAO;AAAA,IACL,SAAS;AAAA,IACT,OAAO;AAAA,EACT;AAAA,EACA,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,OAAO;AAAA,EACT;AACF,GAEaC,IAAiD,CAAC;AAAA,EAC7D,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,WAAAC,IAAY;AACd,MAAM;AACJ,QAAM,CAACC,GAAOC,GAAU,EAAA,GAAGC,CAAI,IAAIL,GAC7BM,IAAWD,EAAK,SAASA,EAAKA,EAAK,SAAS,CAAC,IAAIL,EAAMA,EAAM,SAAS,CAAC,GACvEO,IAAS,EAAE,OAAO,OAAO,MAAM,GAAG,GAClCC,IAAiBH,EAAK,SAAiB,CAACF,GAAOC,GAAQG,GAAQD,CAAQ,IAAxCN,GAC/B,EAAE,SAAAS,GAAS,OAAAC,EAAM,IAAIb,EAAOI,CAAK,GACjCU,IAAMT;AAEZ,2BACG,OAAI,EAAA,aAAU,cAAa,cAAW,cAAa,WAAAH,GAClD,UAAC,gBAAAa,EAAA,MAAA,EAAG,WAAU,qBACX,YAAc,IAAI,CAAC,EAAE,OAAAC,GAAO,MAAAC,KAAQC,MAAU;AACvC,UAAAC,IAASD,MAAUP,EAAc,SAAS,GAC1CS,IAASH,KAAQ,CAACE;AAEtB,WAAA,gBAAAE;AAAA,MAAC;AAAA,MAAA;AAAA,QAEC,WAAWC,EAAW,6BAA6B;AAAA,UACjD,CAACV,CAAO,GAAG,CAACO;AAAA,UACZ,CAACN,CAAK,GAAGM;AAAA,QAAA,CACV;AAAA,QACA,GAAIA,KAAU,EAAE,gBAAgB,OAAO;AAAA,QAExC,UAAA;AAAA,UAAA,gBAAAJ,EAAC,UAAM,UAASK,IAAA,gBAAAL,EAACD,KAAI,MAAAG,GAAa,UAAAD,GAAM,IAASA,EAAM,CAAA;AAAA,UACtD,CAACG,KAAW,gBAAAJ,EAAAQ,GAAA,EAAK,MAAK,WAAU,OAAM,QAAO,WAAU,QAAO;AAAA,QAAA;AAAA,MAAA;AAAA,MAR1DP;AAAA,IAAA;AAAA,EASP,CAEH,GACH,EACF,CAAA;AAEJ;"}
@@ -1,11 +1,12 @@
1
1
  import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
- import { Icon as p } from "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
3
- const i = ({ showLabel: s, label: t, children: r, icon: e, iconType: o }) => /* @__PURE__ */ m("span", { className: "flex items-center justify-center gap-x-8 w-full", children: [
4
- s ? t : /* @__PURE__ */ n("span", { className: "sr-only", children: t }),
5
- r,
2
+ import { Icon as p } from "../../atoms/Icons/Icon.js";
3
+ import "@clubmed/trident-icons";
4
+ const l = ({ showLabel: r, label: t, children: s, icon: e, iconType: o }) => /* @__PURE__ */ m("span", { className: "flex items-center justify-center gap-x-8 w-full", children: [
5
+ r ? t : /* @__PURE__ */ n("span", { className: "sr-only", children: t }),
6
+ s,
6
7
  e && /* @__PURE__ */ n(p, { width: "24px", name: e, type: o })
7
8
  ] });
8
9
  export {
9
- i as ButtonContent
10
+ l as ButtonContent
10
11
  };
11
12
  //# sourceMappingURL=ButtonContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonContent.js","sources":["../../../lib/molecules/Buttons/ButtonContent.tsx"],"sourcesContent":["import type { FunctionComponent, ReactNode } from 'react';\n\nimport { Icon, type IconicNames, type IconicTypes } from '@/atoms/Icons';\n\nexport const ButtonContent: FunctionComponent<{\n showLabel: boolean;\n label?: string;\n children?: ReactNode;\n icon?: IconicNames;\n iconType?: IconicTypes;\n}> = ({ showLabel, label, children, icon, iconType }) => {\n return (\n <span className=\"flex items-center justify-center gap-x-8 w-full\">\n {showLabel ? label : <span className=\"sr-only\">{label}</span>}\n {children}\n {icon && <Icon width=\"24px\" name={icon} type={iconType} />}\n </span>\n );\n};\n"],"names":["ButtonContent","showLabel","label","children","icon","iconType","jsxs","jsx","Icon"],"mappings":";;AAIa,MAAAA,IAMR,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,UAAAC,GAAU,MAAAC,GAAM,UAAAC,QAEtC,gBAAAC,EAAC,QAAK,EAAA,WAAU,mDACb,UAAA;AAAA,EAAAL,IAAYC,IAAQ,gBAAAK,EAAC,QAAK,EAAA,WAAU,WAAW,UAAML,GAAA;AAAA,EACrDC;AAAA,EACAC,uBAASI,GAAK,EAAA,OAAM,QAAO,MAAMJ,GAAM,MAAMC,GAAU;AAC1D,EAAA,CAAA;"}
1
+ {"version":3,"file":"ButtonContent.js","sources":["../../../lib/molecules/Buttons/ButtonContent.tsx"],"sourcesContent":["import type { FunctionComponent, ReactNode } from 'react';\n\nimport { Icon, type IconicNames, type IconicTypes } from '@/atoms/Icons';\n\nexport const ButtonContent: FunctionComponent<{\n showLabel: boolean;\n label?: string;\n children?: ReactNode;\n icon?: IconicNames;\n iconType?: IconicTypes;\n}> = ({ showLabel, label, children, icon, iconType }) => {\n return (\n <span className=\"flex items-center justify-center gap-x-8 w-full\">\n {showLabel ? label : <span className=\"sr-only\">{label}</span>}\n {children}\n {icon && <Icon width=\"24px\" name={icon} type={iconType} />}\n </span>\n );\n};\n"],"names":["ButtonContent","showLabel","label","children","icon","iconType","jsxs","jsx","Icon"],"mappings":";;;AAIa,MAAAA,IAMR,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,UAAAC,GAAU,MAAAC,GAAM,UAAAC,QAEtC,gBAAAC,EAAC,QAAK,EAAA,WAAU,mDACb,UAAA;AAAA,EAAAL,IAAYC,IAAQ,gBAAAK,EAAC,QAAK,EAAA,WAAU,WAAW,UAAML,GAAA;AAAA,EACrDC;AAAA,EACAC,uBAASI,GAAK,EAAA,OAAM,QAAO,MAAMJ,GAAM,MAAMC,GAAU;AAC1D,EAAA,CAAA;"}
package/molecules/Card.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import { c as d } from "../chunks/index.js";
3
- import { Icon as o } from "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
4
- const f = ({
3
+ import { Icon as o } from "../atoms/Icons/Icon.js";
4
+ import "@clubmed/trident-icons";
5
+ const x = ({
5
6
  title: a,
6
- children: s,
7
- icon: i,
7
+ children: i,
8
+ icon: s,
8
9
  iconType: l,
9
10
  theme: r = "light",
10
11
  dataName: n = "Card"
@@ -21,17 +22,17 @@ const f = ({
21
22
  "bg-ultramarine text-white": r === "dark",
22
23
  "bg-lightSand text-black": r === "light"
23
24
  }),
24
- children: /* @__PURE__ */ e(o, { name: i, type: l, width: "24px" })
25
+ children: /* @__PURE__ */ e(o, { name: s, type: l, width: "24px" })
25
26
  }
26
27
  ),
27
28
  /* @__PURE__ */ t("div", { className: "space-y-8 font-sans", children: [
28
29
  /* @__PURE__ */ e("div", { className: "text-b3 font-semibold", children: a }),
29
- /* @__PURE__ */ e("div", { className: "text-b4 font-normal", children: s })
30
+ /* @__PURE__ */ e("div", { className: "text-b4 font-normal", children: i })
30
31
  ] })
31
32
  ]
32
33
  }
33
34
  );
34
35
  export {
35
- f as Card
36
+ x as Card
36
37
  };
37
38
  //# sourceMappingURL=Card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.js","sources":["../../lib/molecules/Card.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport type { FunctionComponent, PropsWithChildren } from 'react';\n\nimport { Icon, type IconicNames, type IconicTypes } from '@/atoms/Icons';\n\ninterface CardProps {\n title: string;\n icon: IconicNames;\n iconType?: IconicTypes;\n theme?: 'light' | 'dark';\n dataName?: string;\n}\n\nexport const Card: FunctionComponent<PropsWithChildren<CardProps>> = ({\n title,\n children,\n icon,\n iconType,\n theme = 'light',\n dataName = 'Card',\n}) => {\n return (\n <div\n className=\"border-lightGrey rounded-16 flex shrink-0 flex-row gap-20 border bg-white p-20\"\n data-name={dataName}\n >\n <div\n className={classnames('flex h-48 w-48 shrink-0 items-center justify-center rounded-full', {\n 'bg-ultramarine text-white': theme === 'dark',\n 'bg-lightSand text-black': theme === 'light',\n })}\n >\n <Icon name={icon} type={iconType} width=\"24px\" />\n </div>\n <div className=\"space-y-8 font-sans\">\n <div className=\"text-b3 font-semibold\">{title}</div>\n <div className=\"text-b4 font-normal\">{children}</div>\n </div>\n </div>\n );\n};\n"],"names":["Card","title","children","icon","iconType","theme","dataName","jsxs","jsx","classnames","Icon"],"mappings":";;;AAaO,MAAMA,IAAwD,CAAC;AAAA,EACpE,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,UAAAC,IAAW;AACb,MAEI,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAU;AAAA,IACV,aAAWD;AAAA,IAEX,UAAA;AAAA,MAAA,gBAAAE;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAWC,EAAW,oEAAoE;AAAA,YACxF,6BAA6BJ,MAAU;AAAA,YACvC,2BAA2BA,MAAU;AAAA,UAAA,CACtC;AAAA,UAED,4BAACK,GAAK,EAAA,MAAMP,GAAM,MAAMC,GAAU,OAAM,QAAO;AAAA,QAAA;AAAA,MACjD;AAAA,MACA,gBAAAG,EAAC,OAAI,EAAA,WAAU,uBACb,UAAA;AAAA,QAAC,gBAAAC,EAAA,OAAA,EAAI,WAAU,yBAAyB,UAAMP,GAAA;AAAA,QAC7C,gBAAAO,EAAA,OAAA,EAAI,WAAU,uBAAuB,UAAAN,EAAS,CAAA;AAAA,MAAA,GACjD;AAAA,IAAA;AAAA,EAAA;AAAA;"}
1
+ {"version":3,"file":"Card.js","sources":["../../lib/molecules/Card.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport type { FunctionComponent, PropsWithChildren } from 'react';\n\nimport { Icon, type IconicNames, type IconicTypes } from '@/atoms/Icons';\n\ninterface CardProps {\n title: string;\n icon: IconicNames;\n iconType?: IconicTypes;\n theme?: 'light' | 'dark';\n dataName?: string;\n}\n\nexport const Card: FunctionComponent<PropsWithChildren<CardProps>> = ({\n title,\n children,\n icon,\n iconType,\n theme = 'light',\n dataName = 'Card',\n}) => {\n return (\n <div\n className=\"border-lightGrey rounded-16 flex shrink-0 flex-row gap-20 border bg-white p-20\"\n data-name={dataName}\n >\n <div\n className={classnames('flex h-48 w-48 shrink-0 items-center justify-center rounded-full', {\n 'bg-ultramarine text-white': theme === 'dark',\n 'bg-lightSand text-black': theme === 'light',\n })}\n >\n <Icon name={icon} type={iconType} width=\"24px\" />\n </div>\n <div className=\"space-y-8 font-sans\">\n <div className=\"text-b3 font-semibold\">{title}</div>\n <div className=\"text-b4 font-normal\">{children}</div>\n </div>\n </div>\n );\n};\n"],"names":["Card","title","children","icon","iconType","theme","dataName","jsxs","jsx","classnames","Icon"],"mappings":";;;;AAaO,MAAMA,IAAwD,CAAC;AAAA,EACpE,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,UAAAC,IAAW;AACb,MAEI,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAU;AAAA,IACV,aAAWD;AAAA,IAEX,UAAA;AAAA,MAAA,gBAAAE;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAWC,EAAW,oEAAoE;AAAA,YACxF,6BAA6BJ,MAAU;AAAA,YACvC,2BAA2BA,MAAU;AAAA,UAAA,CACtC;AAAA,UAED,4BAACK,GAAK,EAAA,MAAMP,GAAM,MAAMC,GAAU,OAAM,QAAO;AAAA,QAAA;AAAA,MACjD;AAAA,MACA,gBAAAG,EAAC,OAAI,EAAA,WAAU,uBACb,UAAA;AAAA,QAAC,gBAAAC,EAAA,OAAA,EAAI,WAAU,yBAAyB,UAAMP,GAAA;AAAA,QAC7C,gBAAAO,EAAA,OAAA,EAAI,WAAU,uBAAuB,UAAAN,EAAS,CAAA;AAAA,MAAA,GACjD;AAAA,IAAA;AAAA,EAAA;AAAA;"}
@@ -1,11 +1,12 @@
1
1
  import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
- import { c as o } from "../../../chunks/index.js";
2
+ import { c } from "../../../chunks/index.js";
3
3
  import { useId as D } from "react";
4
- import { Icon as p } from "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
4
+ import { Icon as h } from "../../../atoms/Icons/Icon.js";
5
+ import "@clubmed/trident-icons";
5
6
  import { useValue as S } from "../../../hooks/useValue.js";
6
7
  /* empty css */
7
8
  import { useInternalStatus as V } from "../../../hooks/useInternalStatus.js";
8
- function A(u) {
9
+ function B(u) {
9
10
  const x = D(), {
10
11
  id: s = x,
11
12
  name: n = s,
@@ -19,13 +20,13 @@ function A(u) {
19
20
  validationStatus: N = "default",
20
21
  errorMessage: d,
21
22
  children: g,
22
- onChange: c,
23
+ onChange: o,
23
24
  ...y
24
25
  } = u, { value: m, setValue: I } = S({
25
26
  name: n,
26
27
  initialValue: k,
27
- onChange(w, h) {
28
- c == null || c(w, h ? l !== void 0 ? l : h : null);
28
+ onChange(w, p) {
29
+ o == null || o(w, p ? l !== void 0 ? l : p : null);
29
30
  }
30
31
  }), e = V({
31
32
  isDisabled: r,
@@ -34,13 +35,13 @@ function A(u) {
34
35
  return /* @__PURE__ */ t(
35
36
  "div",
36
37
  {
37
- className: o("flex flex-col space-y-2", f),
38
+ className: c("flex flex-col space-y-2", f),
38
39
  "data-testid": `checkbox-container-${s}`,
39
40
  children: [
40
41
  /* @__PURE__ */ t(
41
42
  "label",
42
43
  {
43
- className: o("cursor-pointer relative flex text-b3 items-center", {
44
+ className: c("cursor-pointer relative flex text-b3 items-center", {
44
45
  "text-grey": e === "disabled",
45
46
  "text-black": e !== "default"
46
47
  }),
@@ -67,10 +68,10 @@ function A(u) {
67
68
  "span",
68
69
  {
69
70
  style: { height: i, width: i },
70
- className: o({ "!border-red": e === "error" }),
71
+ className: c({ "!border-red": e === "error" }),
71
72
  "data-testid": `check-container-${s}`,
72
73
  children: /* @__PURE__ */ a(
73
- p,
74
+ h,
74
75
  {
75
76
  name: "CheckDefault",
76
77
  type: "svg",
@@ -87,7 +88,7 @@ function A(u) {
87
88
  }
88
89
  ),
89
90
  C && /* @__PURE__ */ t("span", { className: "text-red text-b4 flex items-start space-x-4 ps-20", role: "alert", children: [
90
- /* @__PURE__ */ a(p, { name: "Error", width: "20px" }),
91
+ /* @__PURE__ */ a(h, { name: "Error", width: "20px" }),
91
92
  d
92
93
  ] })
93
94
  ]
@@ -95,6 +96,6 @@ function A(u) {
95
96
  );
96
97
  }
97
98
  export {
98
- A as Checkbox
99
+ B as Checkbox
99
100
  };
100
101
  //# sourceMappingURL=Checkbox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","sources":["../../../../lib/molecules/Forms/Checkboxes/Checkbox.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport { useId } from 'react';\nimport { Icon } from '@/atoms/Icons/index.js';\nimport { useValue } from '@/hooks/useValue.js';\nimport '../controls.css';\nimport type { FormControlProps } from '@/molecules/Forms/FormControl';\nimport { useInternalStatus } from '@/hooks/useInternalStatus';\n\nexport interface CheckboxProps<Value = string> extends FormControlProps<Value> {\n size?: number;\n onChange?: (name: string, value: Value | null) => void;\n}\n\nexport function Checkbox<Value = string>(props: CheckboxProps<Value>) {\n const internalId = useId();\n\n const {\n id = internalId,\n name = id,\n className,\n dataTestId,\n disabled = false,\n checked: initialChecked = false,\n value,\n size = 24,\n tabIndex = 0,\n validationStatus = 'default',\n errorMessage,\n children,\n onChange,\n ...rest\n } = props;\n\n const { value: checked, setValue } = useValue<boolean>({\n name,\n initialValue: initialChecked,\n onChange(name, checked) {\n onChange?.(name, checked ? ((value !== undefined ? value : checked) as Value) : null);\n },\n });\n const internalStatus = useInternalStatus({\n isDisabled: disabled,\n validationStatus,\n });\n\n const shouldDisplayErrorMessage = internalStatus === 'error' && errorMessage;\n\n return (\n <div\n className={classnames('flex flex-col space-y-2', className)}\n data-testid={`checkbox-container-${id}`}\n >\n <label\n className={classnames('cursor-pointer relative flex text-b3 items-center', {\n 'text-grey': internalStatus === 'disabled',\n 'text-black': internalStatus !== 'default',\n })}\n >\n <span className=\"relative self-start me-8\">\n <input\n {...rest}\n name={name}\n data-testid={dataTestId}\n type=\"checkbox\"\n tabIndex={tabIndex}\n onChange={() => {\n !disabled && setValue(!checked);\n }}\n checked={checked}\n data-name=\"Checkbox\"\n disabled={disabled}\n value={value as any}\n />\n\n <span\n style={{ height: size, width: size }}\n className={classnames({ '!border-red': internalStatus === 'error' })}\n data-testid={`check-container-${id}`}\n >\n <Icon\n name=\"CheckDefault\"\n type=\"svg\"\n width={`${size}px`}\n color=\"black\"\n className=\"absolute\"\n />\n </span>\n </span>\n\n {children}\n </label>\n\n {shouldDisplayErrorMessage && (\n <span className=\"text-red text-b4 flex items-start space-x-4 ps-20\" role=\"alert\">\n <Icon name=\"Error\" width=\"20px\" />\n {errorMessage}\n </span>\n )}\n </div>\n );\n}\n"],"names":["Checkbox","props","internalId","useId","id","name","className","dataTestId","disabled","initialChecked","value","size","tabIndex","validationStatus","errorMessage","children","onChange","rest","checked","setValue","useValue","internalStatus","useInternalStatus","shouldDisplayErrorMessage","jsxs","classnames","jsx","Icon"],"mappings":";;;;;;;AAaO,SAASA,EAAyBC,GAA6B;AACpE,QAAMC,IAAaC,KAEb;AAAA,IACJ,IAAAC,IAAKF;AAAA,IACL,MAAAG,IAAOD;AAAA,IACP,WAAAE;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,SAASC,IAAiB;AAAA,IAC1B,OAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,UAAAC,IAAW;AAAA,IACX,kBAAAC,IAAmB;AAAA,IACnB,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,GAAGC;AAAA,EACD,IAAAhB,GAEE,EAAE,OAAOiB,GAAS,UAAAC,EAAA,IAAaC,EAAkB;AAAA,IACrD,MAAAf;AAAA,IACA,cAAcI;AAAA,IACd,SAASJ,GAAMa,GAAS;AACtB,MAAAF,KAAA,QAAAA,EAAWX,GAAMa,IAAYR,MAAU,SAAYA,IAAQQ,IAAqB;AAAA,IAClF;AAAA,EAAA,CACD,GACKG,IAAiBC,EAAkB;AAAA,IACvC,YAAYd;AAAA,IACZ,kBAAAK;AAAA,EAAA,CACD,GAEKU,IAA4BF,MAAmB,WAAWP;AAG9D,SAAA,gBAAAU;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAW,2BAA2BnB,CAAS;AAAA,MAC1D,eAAa,sBAAsBF,CAAE;AAAA,MAErC,UAAA;AAAA,QAAA,gBAAAoB;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWC,EAAW,qDAAqD;AAAA,cACzE,aAAaJ,MAAmB;AAAA,cAChC,cAAcA,MAAmB;AAAA,YAAA,CAClC;AAAA,YAED,UAAA;AAAA,cAAC,gBAAAG,EAAA,QAAA,EAAK,WAAU,4BACd,UAAA;AAAA,gBAAA,gBAAAE;AAAA,kBAAC;AAAA,kBAAA;AAAA,oBACE,GAAGT;AAAA,oBACJ,MAAAZ;AAAA,oBACA,eAAaE;AAAA,oBACb,MAAK;AAAA,oBACL,UAAAK;AAAA,oBACA,UAAU,MAAM;AACb,uBAAAJ,KAAYW,EAAS,CAACD,CAAO;AAAA,oBAChC;AAAA,oBACA,SAAAA;AAAA,oBACA,aAAU;AAAA,oBACV,UAAAV;AAAA,oBACA,OAAAE;AAAA,kBAAA;AAAA,gBACF;AAAA,gBAEA,gBAAAgB;AAAA,kBAAC;AAAA,kBAAA;AAAA,oBACC,OAAO,EAAE,QAAQf,GAAM,OAAOA,EAAK;AAAA,oBACnC,WAAWc,EAAW,EAAE,eAAeJ,MAAmB,SAAS;AAAA,oBACnE,eAAa,mBAAmBjB,CAAE;AAAA,oBAElC,UAAA,gBAAAsB;AAAA,sBAACC;AAAA,sBAAA;AAAA,wBACC,MAAK;AAAA,wBACL,MAAK;AAAA,wBACL,OAAO,GAAGhB,CAAI;AAAA,wBACd,OAAM;AAAA,wBACN,WAAU;AAAA,sBAAA;AAAA,oBACZ;AAAA,kBAAA;AAAA,gBACF;AAAA,cAAA,GACF;AAAA,cAECI;AAAA,YAAA;AAAA,UAAA;AAAA,QACH;AAAA,QAECQ,KACE,gBAAAC,EAAA,QAAA,EAAK,WAAU,qDAAoD,MAAK,SACvE,UAAA;AAAA,UAAA,gBAAAE,EAACC,GAAK,EAAA,MAAK,SAAQ,OAAM,QAAO;AAAA,UAC/Bb;AAAA,QAAA,GACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
1
+ {"version":3,"file":"Checkbox.js","sources":["../../../../lib/molecules/Forms/Checkboxes/Checkbox.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport { useId } from 'react';\nimport { Icon } from '@/atoms/Icons/index.js';\nimport { useValue } from '@/hooks/useValue.js';\nimport '../controls.css';\nimport type { FormControlProps } from '@/molecules/Forms/FormControl';\nimport { useInternalStatus } from '@/hooks/useInternalStatus';\n\nexport interface CheckboxProps<Value = string> extends FormControlProps<Value> {\n size?: number;\n onChange?: (name: string, value: Value | null) => void;\n}\n\nexport function Checkbox<Value = string>(props: CheckboxProps<Value>) {\n const internalId = useId();\n\n const {\n id = internalId,\n name = id,\n className,\n dataTestId,\n disabled = false,\n checked: initialChecked = false,\n value,\n size = 24,\n tabIndex = 0,\n validationStatus = 'default',\n errorMessage,\n children,\n onChange,\n ...rest\n } = props;\n\n const { value: checked, setValue } = useValue<boolean>({\n name,\n initialValue: initialChecked,\n onChange(name, checked) {\n onChange?.(name, checked ? ((value !== undefined ? value : checked) as Value) : null);\n },\n });\n const internalStatus = useInternalStatus({\n isDisabled: disabled,\n validationStatus,\n });\n\n const shouldDisplayErrorMessage = internalStatus === 'error' && errorMessage;\n\n return (\n <div\n className={classnames('flex flex-col space-y-2', className)}\n data-testid={`checkbox-container-${id}`}\n >\n <label\n className={classnames('cursor-pointer relative flex text-b3 items-center', {\n 'text-grey': internalStatus === 'disabled',\n 'text-black': internalStatus !== 'default',\n })}\n >\n <span className=\"relative self-start me-8\">\n <input\n {...rest}\n name={name}\n data-testid={dataTestId}\n type=\"checkbox\"\n tabIndex={tabIndex}\n onChange={() => {\n !disabled && setValue(!checked);\n }}\n checked={checked}\n data-name=\"Checkbox\"\n disabled={disabled}\n value={value as any}\n />\n\n <span\n style={{ height: size, width: size }}\n className={classnames({ '!border-red': internalStatus === 'error' })}\n data-testid={`check-container-${id}`}\n >\n <Icon\n name=\"CheckDefault\"\n type=\"svg\"\n width={`${size}px`}\n color=\"black\"\n className=\"absolute\"\n />\n </span>\n </span>\n\n {children}\n </label>\n\n {shouldDisplayErrorMessage && (\n <span className=\"text-red text-b4 flex items-start space-x-4 ps-20\" role=\"alert\">\n <Icon name=\"Error\" width=\"20px\" />\n {errorMessage}\n </span>\n )}\n </div>\n );\n}\n"],"names":["Checkbox","props","internalId","useId","id","name","className","dataTestId","disabled","initialChecked","value","size","tabIndex","validationStatus","errorMessage","children","onChange","rest","checked","setValue","useValue","internalStatus","useInternalStatus","shouldDisplayErrorMessage","jsxs","classnames","jsx","Icon"],"mappings":";;;;;;;;AAaO,SAASA,EAAyBC,GAA6B;AACpE,QAAMC,IAAaC,KAEb;AAAA,IACJ,IAAAC,IAAKF;AAAA,IACL,MAAAG,IAAOD;AAAA,IACP,WAAAE;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,SAASC,IAAiB;AAAA,IAC1B,OAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,UAAAC,IAAW;AAAA,IACX,kBAAAC,IAAmB;AAAA,IACnB,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,GAAGC;AAAA,EACD,IAAAhB,GAEE,EAAE,OAAOiB,GAAS,UAAAC,EAAA,IAAaC,EAAkB;AAAA,IACrD,MAAAf;AAAA,IACA,cAAcI;AAAA,IACd,SAASJ,GAAMa,GAAS;AACtB,MAAAF,KAAA,QAAAA,EAAWX,GAAMa,IAAYR,MAAU,SAAYA,IAAQQ,IAAqB;AAAA,IAClF;AAAA,EAAA,CACD,GACKG,IAAiBC,EAAkB;AAAA,IACvC,YAAYd;AAAA,IACZ,kBAAAK;AAAA,EAAA,CACD,GAEKU,IAA4BF,MAAmB,WAAWP;AAG9D,SAAA,gBAAAU;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAW,2BAA2BnB,CAAS;AAAA,MAC1D,eAAa,sBAAsBF,CAAE;AAAA,MAErC,UAAA;AAAA,QAAA,gBAAAoB;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWC,EAAW,qDAAqD;AAAA,cACzE,aAAaJ,MAAmB;AAAA,cAChC,cAAcA,MAAmB;AAAA,YAAA,CAClC;AAAA,YAED,UAAA;AAAA,cAAC,gBAAAG,EAAA,QAAA,EAAK,WAAU,4BACd,UAAA;AAAA,gBAAA,gBAAAE;AAAA,kBAAC;AAAA,kBAAA;AAAA,oBACE,GAAGT;AAAA,oBACJ,MAAAZ;AAAA,oBACA,eAAaE;AAAA,oBACb,MAAK;AAAA,oBACL,UAAAK;AAAA,oBACA,UAAU,MAAM;AACb,uBAAAJ,KAAYW,EAAS,CAACD,CAAO;AAAA,oBAChC;AAAA,oBACA,SAAAA;AAAA,oBACA,aAAU;AAAA,oBACV,UAAAV;AAAA,oBACA,OAAAE;AAAA,kBAAA;AAAA,gBACF;AAAA,gBAEA,gBAAAgB;AAAA,kBAAC;AAAA,kBAAA;AAAA,oBACC,OAAO,EAAE,QAAQf,GAAM,OAAOA,EAAK;AAAA,oBACnC,WAAWc,EAAW,EAAE,eAAeJ,MAAmB,SAAS;AAAA,oBACnE,eAAa,mBAAmBjB,CAAE;AAAA,oBAElC,UAAA,gBAAAsB;AAAA,sBAACC;AAAA,sBAAA;AAAA,wBACC,MAAK;AAAA,wBACL,MAAK;AAAA,wBACL,OAAO,GAAGhB,CAAI;AAAA,wBACd,OAAM;AAAA,wBACN,WAAU;AAAA,sBAAA;AAAA,oBACZ;AAAA,kBAAA;AAAA,gBACF;AAAA,cAAA,GACF;AAAA,cAECI;AAAA,YAAA;AAAA,UAAA;AAAA,QACH;AAAA,QAECQ,KACE,gBAAAC,EAAA,QAAA,EAAK,WAAU,qDAAoD,MAAK,SACvE,UAAA;AAAA,UAAA,gBAAAE,EAACC,GAAK,EAAA,MAAK,SAAQ,OAAM,QAAO;AAAA,UAC/Bb;AAAA,QAAA,GACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
@@ -1,7 +1,8 @@
1
1
  import { jsx as m, jsxs as x } from "react/jsx-runtime";
2
2
  import { c as E } from "../../chunks/index.js";
3
3
  import { useId as _, useRef as z } from "react";
4
- import { Icon as I } from "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
4
+ import { Icon as I } from "../../atoms/Icons/Icon.js";
5
+ import "@clubmed/trident-icons";
5
6
  import { useValue as G } from "../../hooks/useValue.js";
6
7
  import { useInternalStatus as Z } from "../../hooks/useInternalStatus.js";
7
8
  import { FormControl as $ } from "./FormControl.js";
@@ -55,7 +56,7 @@ function H(t, e) {
55
56
  }
56
57
  return s;
57
58
  }
58
- const M = (t) => t ? H(new Date(t), { representation: "date" }) : "", W = (t) => {
59
+ const M = (t) => t ? H(new Date(t), { representation: "date" }) : "", X = (t) => {
59
60
  const e = _(), {
60
61
  id: i = e,
61
62
  name: n = i,
@@ -157,6 +158,6 @@ const M = (t) => t ? H(new Date(t), { representation: "date" }) : "", W = (t) =>
157
158
  );
158
159
  };
159
160
  export {
160
- W as DateField
161
+ X as DateField
161
162
  };
162
163
  //# sourceMappingURL=DateField.js.map