@clubmed/trident-ui 1.6.0-beta.2 → 1.6.0-beta.4
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.
- package/CHANGELOG.md +14 -0
- package/molecules/Forms/Filter.js +27 -27
- package/molecules/Forms/Filter.js.map +1 -1
- package/molecules/Forms/FormControl.d.ts +2 -1
- package/molecules/Forms/FormControl.js +35 -36
- package/molecules/Forms/FormControl.js.map +1 -1
- package/molecules/Forms/FormControlError.d.ts +2 -0
- package/molecules/Forms/FormControlError.js +26 -0
- package/molecules/Forms/FormControlError.js.map +1 -0
- package/molecules/Forms/NumberField.d.ts +1 -0
- package/molecules/Link.d.ts +4 -0
- package/molecules/Link.js +19 -20
- package/molecules/Link.js.map +1 -1
- package/molecules/Popin.js +19 -21
- package/molecules/Popin.js.map +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# ClubMed React UI components changelog
|
|
2
2
|
|
|
3
|
+
# [1.6.0-beta.4](https://scm.clubmed.com/clubmed/ui/trident-ui/compare/v1.6.0-beta.3...v1.6.0-beta.4) (2026-01-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **molecules:** add `FormControlError` component and integrate it into `FormControl` with tests ([82798ae](https://scm.clubmed.com/clubmed/ui/trident-ui/-/commit/82798ae09e2f7ec06441f7c38f774a4a48590035))
|
|
9
|
+
|
|
10
|
+
# [1.6.0-beta.3](https://scm.clubmed.com/clubmed/ui/trident-ui/compare/v1.6.0-beta.2...v1.6.0-beta.3) (2026-01-07)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **molecules:** add `TextSizing` story to `Link` and refactor class merging in `Link` and `Popin` components ([fe37305](https://scm.clubmed.com/clubmed/ui/trident-ui/-/commit/fe37305c572680af9be87eefb2a00639e0ec81c9))
|
|
16
|
+
|
|
3
17
|
# [1.6.0-beta.2](https://scm.clubmed.com/clubmed/ui/trident-ui/compare/v1.6.0-beta.1...v1.6.0-beta.2) (2026-01-07)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as g } from "../../chunks/clsx.js";
|
|
3
3
|
import { useId as C } from "react";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { Icon as l } from "@clubmed/trident-icons";
|
|
6
6
|
import { useValue as S } from "../../hooks/useValue.js";
|
|
7
7
|
import { useInternalStatus as V } from "../../hooks/useInternalStatus.js";
|
|
8
|
-
function q(
|
|
9
|
-
const
|
|
10
|
-
id: r =
|
|
8
|
+
function q(d) {
|
|
9
|
+
const m = C(), {
|
|
10
|
+
id: r = m,
|
|
11
11
|
name: n = r,
|
|
12
|
-
className:
|
|
13
|
-
dataTestId:
|
|
12
|
+
className: u,
|
|
13
|
+
dataTestId: p,
|
|
14
14
|
disabled: t = !1,
|
|
15
|
-
checked:
|
|
15
|
+
checked: h = !1,
|
|
16
16
|
value: s,
|
|
17
|
-
tabIndex:
|
|
18
|
-
validationStatus:
|
|
17
|
+
tabIndex: f = 0,
|
|
18
|
+
validationStatus: x = "default",
|
|
19
19
|
errorMessage: i,
|
|
20
|
-
onChange:
|
|
21
|
-
hasDropdown:
|
|
22
|
-
children:
|
|
23
|
-
...
|
|
24
|
-
} =
|
|
20
|
+
onChange: b,
|
|
21
|
+
hasDropdown: k,
|
|
22
|
+
children: v,
|
|
23
|
+
...N
|
|
24
|
+
} = d, { value: o, setValue: w } = S({
|
|
25
25
|
name: n,
|
|
26
|
-
initialValue:
|
|
27
|
-
onChange(
|
|
28
|
-
|
|
26
|
+
initialValue: h,
|
|
27
|
+
onChange(I, c) {
|
|
28
|
+
b?.(I, c ? s !== void 0 ? s : c : null);
|
|
29
29
|
}
|
|
30
|
-
}),
|
|
30
|
+
}), D = V({
|
|
31
31
|
isDisabled: t,
|
|
32
|
-
validationStatus:
|
|
32
|
+
validationStatus: x
|
|
33
33
|
}) === "error" && i;
|
|
34
|
-
return /* @__PURE__ */ a("div", { className:
|
|
34
|
+
return /* @__PURE__ */ a("div", { className: g(u, "relative"), children: [
|
|
35
35
|
/* @__PURE__ */ a("label", { "data-testid": `filter-container-${r}`, className: "relative", children: [
|
|
36
36
|
/* @__PURE__ */ e(
|
|
37
37
|
"input",
|
|
38
38
|
{
|
|
39
|
-
...
|
|
39
|
+
...N,
|
|
40
40
|
name: n,
|
|
41
|
-
"data-testid":
|
|
41
|
+
"data-testid": p,
|
|
42
42
|
type: "checkbox",
|
|
43
|
-
tabIndex:
|
|
43
|
+
tabIndex: f,
|
|
44
44
|
onChange: () => {
|
|
45
|
-
t ||
|
|
45
|
+
t || w(!o);
|
|
46
46
|
},
|
|
47
47
|
checked: o,
|
|
48
48
|
"data-name": "Filter",
|
|
@@ -51,12 +51,12 @@ function q(m) {
|
|
|
51
51
|
}
|
|
52
52
|
),
|
|
53
53
|
/* @__PURE__ */ a("span", { children: [
|
|
54
|
-
/* @__PURE__ */ e("span", { className:
|
|
54
|
+
/* @__PURE__ */ e("span", { className: "font-semibold", children: v }),
|
|
55
55
|
/* @__PURE__ */ e(l, { className: "check", width: null, name: "CheckDefault", color: "black" }),
|
|
56
|
-
|
|
56
|
+
k && /* @__PURE__ */ e(l, { name: "ArrowDefaultDown", className: "ml-8", width: "24px", color: "black" })
|
|
57
57
|
] })
|
|
58
58
|
] }),
|
|
59
|
-
|
|
59
|
+
D && /* @__PURE__ */ a("span", { className: "text-red text-b4 flex items-start space-x-4 ps-20", role: "alert", children: [
|
|
60
60
|
/* @__PURE__ */ e(l, { name: "Error", width: "20px" }),
|
|
61
61
|
i
|
|
62
62
|
] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Filter.js","sources":["../../../lib/molecules/Forms/Filter.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport { useId } from 'react';\nimport './controls.css';\nimport { Icon } from '@clubmed/trident-icons';\nimport { useValue } from '@/hooks/useValue.js';\nimport type { FormControlProps } from '@/molecules/Forms/FormControl';\nimport { useInternalStatus } from '@/hooks/useInternalStatus';\n\nexport interface FilterProps<Value = string> extends FormControlProps<Value> {\n /**\n * Is it attached to a dropdown?\n */\n hasDropdown?: boolean;\n\n onChange?: (name: string, value: Value | null) => void;\n}\n\nexport function Filter<Value = string>(props: FilterProps<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 tabIndex = 0,\n validationStatus = 'default',\n errorMessage,\n onChange,\n hasDropdown,\n children,\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\n const internalStatus = useInternalStatus({\n isDisabled: disabled,\n validationStatus,\n });\n\n const shouldDisplayErrorMessage = internalStatus === 'error' && errorMessage;\n\n return (\n <div className={clsx(className, 'relative')}>\n <label data-testid={`filter-container-${id}`} className=\"relative\">\n <input\n {...rest}\n name={name}\n data-testid={dataTestId}\n type=\"checkbox\"\n tabIndex={tabIndex}\n onChange={() => {\n if (!disabled) setValue(!checked);\n }}\n checked={checked}\n data-name=\"Filter\"\n disabled={disabled}\n value={value as any}\n />\n <span>\n <span className
|
|
1
|
+
{"version":3,"file":"Filter.js","sources":["../../../lib/molecules/Forms/Filter.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport { useId } from 'react';\nimport './controls.css';\nimport { Icon } from '@clubmed/trident-icons';\nimport { useValue } from '@/hooks/useValue.js';\nimport type { FormControlProps } from '@/molecules/Forms/FormControl';\nimport { useInternalStatus } from '@/hooks/useInternalStatus';\n\nexport interface FilterProps<Value = string> extends FormControlProps<Value> {\n /**\n * Is it attached to a dropdown?\n */\n hasDropdown?: boolean;\n\n onChange?: (name: string, value: Value | null) => void;\n}\n\nexport function Filter<Value = string>(props: FilterProps<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 tabIndex = 0,\n validationStatus = 'default',\n errorMessage,\n onChange,\n hasDropdown,\n children,\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\n const internalStatus = useInternalStatus({\n isDisabled: disabled,\n validationStatus,\n });\n\n const shouldDisplayErrorMessage = internalStatus === 'error' && errorMessage;\n\n return (\n <div className={clsx(className, 'relative')}>\n <label data-testid={`filter-container-${id}`} className=\"relative\">\n <input\n {...rest}\n name={name}\n data-testid={dataTestId}\n type=\"checkbox\"\n tabIndex={tabIndex}\n onChange={() => {\n if (!disabled) setValue(!checked);\n }}\n checked={checked}\n data-name=\"Filter\"\n disabled={disabled}\n value={value as any}\n />\n <span>\n <span className=\"font-semibold\">{children}</span>\n\n <Icon className=\"check\" width={null} name=\"CheckDefault\" color=\"black\" />\n\n {hasDropdown && (\n <Icon name=\"ArrowDefaultDown\" className=\"ml-8\" width=\"24px\" color=\"black\" />\n )}\n </span>\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":["Filter","props","internalId","useId","id","name","className","dataTestId","disabled","initialChecked","value","tabIndex","validationStatus","errorMessage","onChange","hasDropdown","children","rest","checked","setValue","useValue","shouldDisplayErrorMessage","useInternalStatus","clsx","jsxs","jsx","Icon"],"mappings":";;;;;;;AAiBO,SAASA,EAAuBC,GAA2B;AAChE,QAAMC,IAAaC,EAAA,GAEb;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,UAAAC,IAAW;AAAA,IACX,kBAAAC,IAAmB;AAAA,IACnB,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,aAAAC;AAAA,IACA,UAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACDhB,GAEE,EAAE,OAAOiB,GAAS,UAAAC,EAAA,IAAaC,EAAkB;AAAA,IACrD,MAAAf;AAAA,IACA,cAAcI;AAAA,IACd,SAASJ,GAAMa,GAAS;AACtB,MAAAJ,IAAWT,GAAMa,IAAYR,MAAU,SAAYA,IAAQQ,IAAqB,IAAI;AAAA,IACtF;AAAA,EAAA,CACD,GAOKG,IALiBC,EAAkB;AAAA,IACvC,YAAYd;AAAA,IACZ,kBAAAI;AAAA,EAAA,CACD,MAEoD,WAAWC;AAEhE,2BACG,OAAA,EAAI,WAAWU,EAAKjB,GAAW,UAAU,GACxC,UAAA;AAAA,IAAA,gBAAAkB,EAAC,WAAM,eAAa,oBAAoBpB,CAAE,IAAI,WAAU,YACtD,UAAA;AAAA,MAAA,gBAAAqB;AAAA,QAAC;AAAA,QAAA;AAAA,UACE,GAAGR;AAAA,UACJ,MAAAZ;AAAA,UACA,eAAaE;AAAA,UACb,MAAK;AAAA,UACL,UAAAI;AAAA,UACA,UAAU,MAAM;AACd,YAAKH,KAAUW,EAAS,CAACD,CAAO;AAAA,UAClC;AAAA,UACA,SAAAA;AAAA,UACA,aAAU;AAAA,UACV,UAAAV;AAAA,UACA,OAAAE;AAAA,QAAA;AAAA,MAAA;AAAA,wBAED,QAAA,EACC,UAAA;AAAA,QAAA,gBAAAe,EAAC,QAAA,EAAK,WAAU,iBAAiB,UAAAT,EAAA,CAAS;AAAA,QAE1C,gBAAAS,EAACC,KAAK,WAAU,SAAQ,OAAO,MAAM,MAAK,gBAAe,OAAM,QAAA,CAAQ;AAAA,QAEtEX,KACC,gBAAAU,EAACC,GAAA,EAAK,MAAK,oBAAmB,WAAU,QAAO,OAAM,QAAO,OAAM,QAAA,CAAQ;AAAA,MAAA,EAAA,CAE9E;AAAA,IAAA,GACF;AAAA,IAECL,KACC,gBAAAG,EAAC,QAAA,EAAK,WAAU,qDAAoD,MAAK,SACvE,UAAA;AAAA,MAAA,gBAAAC,EAACC,GAAA,EAAK,MAAK,SAAQ,OAAM,QAAO;AAAA,MAC/Bb;AAAA,IAAA,EAAA,CACH;AAAA,EAAA,GAEJ;AAEJ;"}
|
|
@@ -4,10 +4,11 @@ import { FormLabelProps } from './FormLabel';
|
|
|
4
4
|
export type FormControlProps<Value = unknown, Attributes extends HTMLAttributes<HTMLElement> = InputHTMLAttributes<HTMLInputElement>> = {
|
|
5
5
|
value?: Value;
|
|
6
6
|
label?: ReactNode;
|
|
7
|
+
labelClassName?: string;
|
|
7
8
|
validationStatus?: ValidationStatus;
|
|
8
9
|
onChange?: (name: string, value: Value) => void;
|
|
9
10
|
dataTestId?: string;
|
|
10
11
|
dataName?: string;
|
|
11
12
|
errorMessage?: string;
|
|
12
13
|
} & Omit<Attributes & Partial<FormLabelProps>, 'onChange' | 'value'>;
|
|
13
|
-
export declare const FormControl: <Value = string>({ id, label, description, disabled, required, className, validationStatus, children, errorMessage, dataTestId, dataName, hideRequiredStar, layout, }: FormControlProps<Value>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const FormControl: <Value = string>({ id, label, description, disabled, required, className, validationStatus, children, errorMessage, dataTestId, dataName, labelClassName, hideRequiredStar, layout, }: FormControlProps<Value>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,55 +1,54 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useInternalStatus as
|
|
1
|
+
import { jsxs as h, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useInternalStatus as F } from "../../hooks/useInternalStatus.js";
|
|
3
3
|
import { FormLabel as S } from "./FormLabel.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
id:
|
|
8
|
-
label:
|
|
9
|
-
description:
|
|
10
|
-
disabled:
|
|
4
|
+
import { c as j } from "../../chunks/clsx.js";
|
|
5
|
+
import { FormControlError as C } from "./FormControlError.js";
|
|
6
|
+
const y = ({
|
|
7
|
+
id: r,
|
|
8
|
+
label: t,
|
|
9
|
+
description: a,
|
|
10
|
+
disabled: e,
|
|
11
11
|
required: l,
|
|
12
12
|
className: m,
|
|
13
|
-
validationStatus:
|
|
14
|
-
children:
|
|
15
|
-
errorMessage:
|
|
16
|
-
dataTestId:
|
|
17
|
-
dataName:
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
validationStatus: n = "default",
|
|
14
|
+
children: i,
|
|
15
|
+
errorMessage: o,
|
|
16
|
+
dataTestId: c,
|
|
17
|
+
dataName: d,
|
|
18
|
+
labelClassName: f,
|
|
19
|
+
hideRequiredStar: p,
|
|
20
|
+
layout: u
|
|
20
21
|
}) => {
|
|
21
|
-
const
|
|
22
|
-
isDisabled: !!
|
|
23
|
-
validationStatus:
|
|
24
|
-
}) === "error" &&
|
|
25
|
-
return /* @__PURE__ */
|
|
22
|
+
const x = F({
|
|
23
|
+
isDisabled: !!e,
|
|
24
|
+
validationStatus: n
|
|
25
|
+
}) === "error" && o;
|
|
26
|
+
return /* @__PURE__ */ h(
|
|
26
27
|
"div",
|
|
27
28
|
{
|
|
28
|
-
className:
|
|
29
|
-
"data-name":
|
|
30
|
-
"data-testid":
|
|
29
|
+
className: j("flex flex-col gap-4", m),
|
|
30
|
+
"data-name": d,
|
|
31
|
+
"data-testid": c,
|
|
31
32
|
children: [
|
|
32
|
-
|
|
33
|
+
t && r && /* @__PURE__ */ s(
|
|
33
34
|
S,
|
|
34
35
|
{
|
|
35
|
-
description:
|
|
36
|
-
id:
|
|
37
|
-
layout:
|
|
36
|
+
description: a,
|
|
37
|
+
id: r,
|
|
38
|
+
layout: u,
|
|
38
39
|
required: l,
|
|
39
|
-
hideRequiredStar:
|
|
40
|
-
|
|
40
|
+
hideRequiredStar: p,
|
|
41
|
+
className: f,
|
|
42
|
+
children: t
|
|
41
43
|
}
|
|
42
44
|
),
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/* @__PURE__ */ e(b, { name: "Error", width: "20px" }),
|
|
46
|
-
a
|
|
47
|
-
] })
|
|
45
|
+
i,
|
|
46
|
+
x && /* @__PURE__ */ s(C, { children: o })
|
|
48
47
|
]
|
|
49
48
|
}
|
|
50
49
|
);
|
|
51
50
|
};
|
|
52
51
|
export {
|
|
53
|
-
|
|
52
|
+
y as FormControl
|
|
54
53
|
};
|
|
55
54
|
//# sourceMappingURL=FormControl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControl.js","sources":["../../../lib/molecules/Forms/FormControl.tsx"],"sourcesContent":["import type { HTMLAttributes, InputHTMLAttributes, ReactNode } from 'react';\nimport { useInternalStatus, type ValidationStatus } from '@/hooks/useInternalStatus';\nimport { FormLabel, type FormLabelProps } from './FormLabel';\nimport
|
|
1
|
+
{"version":3,"file":"FormControl.js","sources":["../../../lib/molecules/Forms/FormControl.tsx"],"sourcesContent":["import type { HTMLAttributes, InputHTMLAttributes, ReactNode } from 'react';\nimport { useInternalStatus, type ValidationStatus } from '@/hooks/useInternalStatus';\nimport { FormLabel, type FormLabelProps } from './FormLabel';\nimport clsx from 'clsx';\nimport { FormControlError } from '@/molecules/Forms/FormControlError';\n\nexport type FormControlProps<\n Value = unknown,\n Attributes extends HTMLAttributes<HTMLElement> = InputHTMLAttributes<HTMLInputElement>,\n> = {\n value?: Value;\n label?: ReactNode;\n labelClassName?: string;\n validationStatus?: ValidationStatus;\n onChange?: (name: string, value: Value) => void;\n dataTestId?: string;\n dataName?: string;\n errorMessage?: string;\n} & Omit<Attributes & Partial<FormLabelProps>, 'onChange' | 'value'>;\n\nexport const FormControl = <Value = string,>({\n id,\n label,\n description,\n disabled,\n required,\n className,\n validationStatus = 'default',\n children,\n errorMessage,\n dataTestId,\n dataName,\n labelClassName,\n hideRequiredStar,\n layout,\n}: FormControlProps<Value>) => {\n const internalStatus = useInternalStatus({\n isDisabled: !!disabled,\n validationStatus,\n });\n\n const shouldDisplayErrorMessage = internalStatus === 'error' && errorMessage;\n\n return (\n <div\n className={clsx('flex flex-col gap-4', className)}\n data-name={dataName}\n data-testid={dataTestId}\n >\n {label && id && (\n <FormLabel\n description={description}\n id={id}\n layout={layout}\n required={required}\n hideRequiredStar={hideRequiredStar}\n className={labelClassName}\n >\n {label}\n </FormLabel>\n )}\n\n {children}\n\n {shouldDisplayErrorMessage && <FormControlError>{errorMessage}</FormControlError>}\n </div>\n );\n};\n"],"names":["FormControl","id","label","description","disabled","required","className","validationStatus","children","errorMessage","dataTestId","dataName","labelClassName","hideRequiredStar","layout","shouldDisplayErrorMessage","useInternalStatus","jsxs","clsx","jsx","FormLabel","FormControlError"],"mappings":";;;;;AAoBO,MAAMA,IAAc,CAAkB;AAAA,EAC3C,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,kBAAAC,IAAmB;AAAA,EACnB,UAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,QAAAC;AACF,MAA+B;AAM7B,QAAMC,IALiBC,EAAkB;AAAA,IACvC,YAAY,CAAC,CAACZ;AAAA,IACd,kBAAAG;AAAA,EAAA,CACD,MAEoD,WAAWE;AAEhE,SACE,gBAAAQ;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAK,uBAAuBZ,CAAS;AAAA,MAChD,aAAWK;AAAA,MACX,eAAaD;AAAA,MAEZ,UAAA;AAAA,QAAAR,KAASD,KACR,gBAAAkB;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,aAAAjB;AAAA,YACA,IAAAF;AAAA,YACA,QAAAa;AAAA,YACA,UAAAT;AAAA,YACA,kBAAAQ;AAAA,YACA,WAAWD;AAAA,YAEV,UAAAV;AAAA,UAAA;AAAA,QAAA;AAAA,QAIJM;AAAA,QAEAO,KAA6B,gBAAAI,EAACE,GAAA,EAAkB,UAAAZ,EAAA,CAAa;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGpE;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsxs as e, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { t as s } from "../../chunks/bundle-mjs.js";
|
|
3
|
+
import { Icon as a } from "@clubmed/trident-icons";
|
|
4
|
+
import { c as x } from "../../chunks/clsx.js";
|
|
5
|
+
function f({
|
|
6
|
+
children: r,
|
|
7
|
+
className: t,
|
|
8
|
+
...o
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ e(
|
|
11
|
+
"span",
|
|
12
|
+
{
|
|
13
|
+
...o,
|
|
14
|
+
"data-testid": "FormControlError",
|
|
15
|
+
className: x("text-red", s("text-b4 flex items-start gap-x-4 px-20", t)),
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ m(a, { name: "Error", width: "20px" }),
|
|
18
|
+
r
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
f as FormControlError
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=FormControlError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormControlError.js","sources":["../../../lib/molecules/Forms/FormControlError.tsx"],"sourcesContent":["import type { HTMLAttributes, PropsWithChildren } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { Icon } from '@clubmed/trident-icons';\nimport clsx from 'clsx';\n\nexport function FormControlError({\n children,\n className,\n ...args\n}: PropsWithChildren<HTMLAttributes<HTMLSpanElement>>) {\n return (\n <span\n {...args}\n data-testid=\"FormControlError\"\n className={clsx('text-red', twMerge('text-b4 flex items-start gap-x-4 px-20', className))}\n >\n <Icon name=\"Error\" width=\"20px\" />\n {children}\n </span>\n );\n}\n"],"names":["FormControlError","children","className","args","jsxs","clsx","twMerge","jsx","Icon"],"mappings":";;;;AAKO,SAASA,EAAiB;AAAA,EAC/B,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,GAAuD;AACrD,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAGD;AAAA,MACJ,eAAY;AAAA,MACZ,WAAWE,EAAK,YAAYC,EAAQ,0CAA0CJ,CAAS,CAAC;AAAA,MAExF,UAAA;AAAA,QAAA,gBAAAK,EAACC,GAAA,EAAK,MAAK,SAAQ,OAAM,QAAO;AAAA,QAC/BP;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -16,6 +16,7 @@ export declare function useNumberField(props: NumberFieldProps): {
|
|
|
16
16
|
increase: () => void;
|
|
17
17
|
decrease: () => void;
|
|
18
18
|
label?: import('react').ReactNode;
|
|
19
|
+
labelClassName?: string;
|
|
19
20
|
validationStatus?: import('../../hooks/useInternalStatus').ValidationStatus;
|
|
20
21
|
dataName?: string;
|
|
21
22
|
errorMessage?: string;
|
package/molecules/Link.d.ts
CHANGED
package/molecules/Link.js
CHANGED
|
@@ -1,45 +1,44 @@
|
|
|
1
|
-
import { jsxs as t, jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { t as
|
|
5
|
-
const
|
|
1
|
+
import { jsxs as t, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "../chunks/clsx.js";
|
|
3
|
+
import { Icon as f } from "@clubmed/trident-icons";
|
|
4
|
+
import { t as k } from "../chunks/bundle-mjs.js";
|
|
5
|
+
const T = ({
|
|
6
6
|
label: n,
|
|
7
7
|
icon: s,
|
|
8
8
|
component: c = "a",
|
|
9
9
|
iconType: m,
|
|
10
|
-
underlined:
|
|
10
|
+
underlined: e = !0,
|
|
11
11
|
className: l,
|
|
12
12
|
inert: p,
|
|
13
|
-
|
|
13
|
+
width: d = "24px",
|
|
14
|
+
...x
|
|
14
15
|
}) => {
|
|
15
|
-
const
|
|
16
|
+
const r = n.lastIndexOf(" "), a = r === -1 ? n.length : r, g = n.substring(0, 1), h = n.substring(1, a + 1), u = n.substring(a);
|
|
16
17
|
return /* @__PURE__ */ t(
|
|
17
18
|
p ? "span" : c,
|
|
18
19
|
{
|
|
19
|
-
className:
|
|
20
|
-
e("text-b3 decoration-none link-container cursor-pointer text-inherit", l)
|
|
21
|
-
),
|
|
20
|
+
className: k("decoration-none link-container cursor-pointer text-inherit", l),
|
|
22
21
|
"data-name": "Link",
|
|
23
|
-
...
|
|
22
|
+
...x,
|
|
24
23
|
children: [
|
|
25
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ i("span", { className: o({ "link-underline": e }), children: g }),
|
|
26
25
|
/* @__PURE__ */ t(
|
|
27
26
|
"span",
|
|
28
27
|
{
|
|
29
|
-
className:
|
|
28
|
+
className: o("hoverable", {
|
|
30
29
|
"has-icon": s,
|
|
31
|
-
"link-underline":
|
|
30
|
+
"link-underline": e
|
|
32
31
|
}),
|
|
33
32
|
children: [
|
|
34
33
|
h,
|
|
35
34
|
/* @__PURE__ */ t("span", { className: "inline-block", children: [
|
|
36
|
-
|
|
37
|
-
s && /* @__PURE__ */
|
|
38
|
-
|
|
35
|
+
u,
|
|
36
|
+
s && /* @__PURE__ */ i(
|
|
37
|
+
f,
|
|
39
38
|
{
|
|
40
39
|
name: s,
|
|
41
40
|
iconType: m,
|
|
42
|
-
width:
|
|
41
|
+
width: d,
|
|
43
42
|
style: { marginInlineStart: "8px" }
|
|
44
43
|
}
|
|
45
44
|
)
|
|
@@ -52,6 +51,6 @@ const C = ({
|
|
|
52
51
|
);
|
|
53
52
|
};
|
|
54
53
|
export {
|
|
55
|
-
|
|
54
|
+
T as Link
|
|
56
55
|
};
|
|
57
56
|
//# sourceMappingURL=Link.js.map
|
package/molecules/Link.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","sources":["../../lib/molecules/Link.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport type { AnchorHTMLAttributes, FunctionComponent, PropsWithChildren } from 'react';\n\nimport { Icon, type IconicNames, type IconicTypes } from '@clubmed/trident-icons';\nimport { twMerge } from 'tailwind-merge';\n\ninterface LinkProps<T extends HTMLAnchorElement = HTMLAnchorElement>\n extends AnchorHTMLAttributes<T> {\n /**\n * Label text\n */\n label: string;\n /**\n * Icon name\n */\n icon?: IconicNames;\n iconType?: IconicTypes;\n /**\n * Underlined\n */\n underlined?: boolean;\n /**\n * Additional class names\n */\n className?: string;\n /**\n * Is the link inert (not itself clickable but part of a clickable element)\n */\n inert?: boolean;\n /**\n * Allow giving a custom component\n */\n component?: FunctionComponent<PropsWithChildren<any>> | string;\n}\n\nexport const Link: FunctionComponent<LinkProps> = ({\n label,\n icon,\n component = 'a',\n iconType,\n underlined = true,\n className,\n inert,\n ...anchorAttrs\n}) => {\n const lastSpace = label.lastIndexOf(' ');\n const lastIndex = lastSpace === -1 ? label.length : lastSpace;\n\n const first = label.substring(0, 1);\n const middle = label.substring(1, lastIndex + 1);\n const last = label.substring(lastIndex);\n const Cmp = component as FunctionComponent<PropsWithChildren>;\n\n const TagName = inert ? 'span' : Cmp;\n\n return (\n <TagName\n className={twMerge(
|
|
1
|
+
{"version":3,"file":"Link.js","sources":["../../lib/molecules/Link.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport type { AnchorHTMLAttributes, FunctionComponent, PropsWithChildren } from 'react';\n\nimport { Icon, type IconicNames, type IconicTypes } from '@clubmed/trident-icons';\nimport { twMerge } from 'tailwind-merge';\n\ninterface LinkProps<T extends HTMLAnchorElement = HTMLAnchorElement>\n extends AnchorHTMLAttributes<T> {\n /**\n * Label text\n */\n label: string;\n /**\n * Icon name\n */\n icon?: IconicNames;\n iconType?: IconicTypes;\n /**\n * Icon width\n */\n width?: string;\n /**\n * Underlined\n */\n underlined?: boolean;\n /**\n * Additional class names\n */\n className?: string;\n /**\n * Is the link inert (not itself clickable but part of a clickable element)\n */\n inert?: boolean;\n /**\n * Allow giving a custom component\n */\n component?: FunctionComponent<PropsWithChildren<any>> | string;\n}\n\nexport const Link: FunctionComponent<LinkProps> = ({\n label,\n icon,\n component = 'a',\n iconType,\n underlined = true,\n className,\n inert,\n width = '24px',\n ...anchorAttrs\n}) => {\n const lastSpace = label.lastIndexOf(' ');\n const lastIndex = lastSpace === -1 ? label.length : lastSpace;\n\n const first = label.substring(0, 1);\n const middle = label.substring(1, lastIndex + 1);\n const last = label.substring(lastIndex);\n const Cmp = component as FunctionComponent<PropsWithChildren>;\n\n const TagName = inert ? 'span' : Cmp;\n\n return (\n <TagName\n className={twMerge('decoration-none link-container cursor-pointer text-inherit', className)}\n data-name=\"Link\"\n {...anchorAttrs}\n >\n <span className={clsx({ 'link-underline': underlined })}>{first}</span>\n <span\n className={clsx('hoverable', {\n 'has-icon': icon,\n 'link-underline': underlined,\n })}\n >\n {middle}\n <span className=\"inline-block\">\n {last}\n {icon && (\n <Icon\n name={icon}\n iconType={iconType}\n width={width}\n style={{ marginInlineStart: '8px' }}\n />\n )}\n </span>\n </span>\n </TagName>\n );\n};\n"],"names":["Link","label","icon","component","iconType","underlined","className","inert","width","anchorAttrs","lastSpace","lastIndex","first","middle","last","jsxs","twMerge","jsx","clsx","Icon"],"mappings":";;;;AAuCO,MAAMA,IAAqC,CAAC;AAAA,EACjD,OAAAC;AAAA,EACA,MAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,UAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,GAAGC;AACL,MAAM;AACJ,QAAMC,IAAYT,EAAM,YAAY,GAAG,GACjCU,IAAYD,MAAc,KAAKT,EAAM,SAASS,GAE9CE,IAAQX,EAAM,UAAU,GAAG,CAAC,GAC5BY,IAASZ,EAAM,UAAU,GAAGU,IAAY,CAAC,GACzCG,IAAOb,EAAM,UAAUU,CAAS;AAKtC,SACE,gBAAAI;AAAA,IAHcR,IAAQ,SAFZJ;AAAA,IAKT;AAAA,MACC,WAAWa,EAAQ,8DAA8DV,CAAS;AAAA,MAC1F,aAAU;AAAA,MACT,GAAGG;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAQ,EAAC,QAAA,EAAK,WAAWC,EAAK,EAAE,kBAAkBb,GAAY,GAAI,UAAAO,GAAM;AAAA,QAChE,gBAAAG;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWG,EAAK,aAAa;AAAA,cAC3B,YAAYhB;AAAA,cACZ,kBAAkBG;AAAA,YAAA,CACnB;AAAA,YAEA,UAAA;AAAA,cAAAQ;AAAA,cACD,gBAAAE,EAAC,QAAA,EAAK,WAAU,gBACb,UAAA;AAAA,gBAAAD;AAAA,gBACAZ,KACC,gBAAAe;AAAA,kBAACE;AAAA,kBAAA;AAAA,oBACC,MAAMjB;AAAA,oBACN,UAAAE;AAAA,oBACA,OAAAI;AAAA,oBACA,OAAO,EAAE,mBAAmB,MAAA;AAAA,kBAAM;AAAA,gBAAA;AAAA,cACpC,EAAA,CAEJ;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
package/molecules/Popin.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { jsx as r, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as x } from "react";
|
|
3
3
|
import { t as l } from "../chunks/bundle-mjs.js";
|
|
4
|
-
import { Backdrop as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { c as
|
|
4
|
+
import { Backdrop as v } from "./Backdrop.js";
|
|
5
|
+
import { Button as g } from "./Buttons/v2/Button.js";
|
|
6
|
+
import { c as w } from "../chunks/clsx.js";
|
|
7
7
|
import { useSlots as N } from "../hooks/useSlots.js";
|
|
8
8
|
const y = ({ closeLabel: t, onClose: e }) => /* @__PURE__ */ r(
|
|
9
|
-
|
|
9
|
+
g,
|
|
10
10
|
{
|
|
11
11
|
color: "black",
|
|
12
12
|
variant: "circle",
|
|
@@ -18,38 +18,36 @@ const y = ({ closeLabel: t, onClose: e }) => /* @__PURE__ */ r(
|
|
|
18
18
|
), R = ({
|
|
19
19
|
title: t,
|
|
20
20
|
children: e,
|
|
21
|
-
closeLabel:
|
|
21
|
+
closeLabel: s,
|
|
22
22
|
onClose: a,
|
|
23
23
|
isVisible: o,
|
|
24
|
-
className:
|
|
25
|
-
bodyClassName:
|
|
24
|
+
className: p = "sm:w-360",
|
|
25
|
+
bodyClassName: d,
|
|
26
26
|
Footer: n = y
|
|
27
27
|
}) => {
|
|
28
|
-
const { children:
|
|
29
|
-
return m.current = o, /* @__PURE__ */ r(
|
|
28
|
+
const { children: f, popinFooter: c } = N(e, ["popinFooter"]), m = x(o), h = m.current, i = !o && h;
|
|
29
|
+
return m.current = o, /* @__PURE__ */ r(v, { isVisible: o, onClose: a, children: /* @__PURE__ */ r(
|
|
30
30
|
"div",
|
|
31
31
|
{
|
|
32
32
|
className: l(
|
|
33
|
-
|
|
33
|
+
w(
|
|
34
34
|
"border-lightGrey rounded-16 pointer-events-auto mx-20 w-full border bg-white origin-center will-change[transform,opacity]",
|
|
35
35
|
{
|
|
36
36
|
"animate-zoomIn": o,
|
|
37
37
|
"animate-zoomOut": !o && i,
|
|
38
38
|
"opacity-0 scale-90": !o && !i
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
p
|
|
42
42
|
),
|
|
43
|
-
children: /* @__PURE__ */
|
|
43
|
+
children: /* @__PURE__ */ u(
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
46
|
-
className: l(
|
|
47
|
-
s("text-center max-h-[90vh] flex flex-col p-40 gap-40", f)
|
|
48
|
-
),
|
|
46
|
+
className: l("text-center max-h-[90vh] flex flex-col p-40 gap-40", d),
|
|
49
47
|
children: [
|
|
50
48
|
t && /* @__PURE__ */ r("div", { className: "text-h5 mt-0 -mb-20 text-start font-serif", children: t }),
|
|
51
|
-
/* @__PURE__ */ r("div", { className: "text-start overflow-auto", children:
|
|
52
|
-
!c?.length && n && /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(n, { closeLabel:
|
|
49
|
+
/* @__PURE__ */ r("div", { className: "text-start overflow-auto", children: f }),
|
|
50
|
+
!c?.length && n && /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(n, { closeLabel: s, onClose: a }) }),
|
|
53
51
|
c
|
|
54
52
|
]
|
|
55
53
|
}
|
package/molecules/Popin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popin.js","sources":["../../lib/molecules/Popin.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"Popin.js","sources":["../../lib/molecules/Popin.tsx"],"sourcesContent":["import type { FunctionComponent, PropsWithChildren, ReactNode } from 'react';\nimport { useRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\nimport { Backdrop, type BackdropProps } from './Backdrop';\nimport { Button } from './Buttons/v2/Button';\nimport clsx from 'clsx';\nimport { useSlots } from '@/hooks/useSlots';\n\nexport type ClosePopinCallback = () => void;\n\nexport interface PopinFooterProps {\n closeLabel?: string;\n onClose: ClosePopinCallback;\n}\n\nconst PopinFooter = ({ closeLabel, onClose }: PopinFooterProps) => {\n return (\n <Button\n color=\"black\"\n variant=\"circle\"\n icon=\"CrossDefault\"\n className=\"mx-auto\"\n aria-label={closeLabel}\n onClick={onClose}\n />\n );\n};\n\nexport interface PopinProps {\n title?: ReactNode;\n closeLabel?: string;\n onClose: ClosePopinCallback;\n isVisible: boolean;\n className?: string;\n bodyClassName?: string;\n showCloseButton?: boolean;\n target?: BackdropProps['target'];\n /**\n * @deprecated use popinFooter slot instead\n */\n Footer?: FunctionComponent<PopinFooterProps> | false;\n}\n\nexport const Popin: FunctionComponent<PropsWithChildren<PopinProps>> = ({\n title,\n children,\n closeLabel,\n onClose,\n isVisible,\n className = 'sm:w-360',\n bodyClassName,\n Footer = PopinFooter,\n}) => {\n const { children: popinBody, popinFooter } = useSlots(children, ['popinFooter']);\n\n // Prevent initial mount flash when closed: only animate leave if it was visible before\n const wasVisibleRef = useRef(isVisible);\n const wasVisible = wasVisibleRef.current;\n const isLeaving = !isVisible && wasVisible;\n\n // update ref for next render\n wasVisibleRef.current = isVisible;\n return (\n <Backdrop isVisible={isVisible} onClose={onClose}>\n <div\n className={twMerge(\n clsx(\n 'border-lightGrey rounded-16 pointer-events-auto mx-20 w-full border bg-white origin-center will-change[transform,opacity]',\n {\n 'animate-zoomIn': isVisible,\n 'animate-zoomOut': !isVisible && isLeaving,\n 'opacity-0 scale-90': !isVisible && !isLeaving,\n },\n ),\n className,\n )}\n >\n <div\n className={twMerge('text-center max-h-[90vh] flex flex-col p-40 gap-40', bodyClassName)}\n >\n {title && <div className=\"text-h5 mt-0 -mb-20 text-start font-serif\">{title}</div>}\n <div className=\"text-start overflow-auto\">{popinBody}</div>\n {!popinFooter?.length && Footer && (\n <div>\n <Footer closeLabel={closeLabel} onClose={onClose} />\n </div>\n )}\n\n {popinFooter}\n </div>\n </div>\n </Backdrop>\n );\n};\n"],"names":["PopinFooter","closeLabel","onClose","jsx","Button","Popin","title","children","isVisible","className","bodyClassName","Footer","popinBody","popinFooter","useSlots","wasVisibleRef","useRef","wasVisible","isLeaving","Backdrop","twMerge","clsx","jsxs"],"mappings":";;;;;;;AAeA,MAAMA,IAAc,CAAC,EAAE,YAAAC,GAAY,SAAAC,QAE/B,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,OAAM;AAAA,IACN,SAAQ;AAAA,IACR,MAAK;AAAA,IACL,WAAU;AAAA,IACV,cAAYH;AAAA,IACZ,SAASC;AAAA,EAAA;AAAA,GAoBFG,IAA0D,CAAC;AAAA,EACtE,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAN;AAAA,EACA,SAAAC;AAAA,EACA,WAAAM;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,eAAAC;AAAA,EACA,QAAAC,IAASX;AACX,MAAM;AACJ,QAAM,EAAE,UAAUY,GAAW,aAAAC,EAAA,IAAgBC,EAASP,GAAU,CAAC,aAAa,CAAC,GAGzEQ,IAAgBC,EAAOR,CAAS,GAChCS,IAAaF,EAAc,SAC3BG,IAAY,CAACV,KAAaS;AAGhC,SAAAF,EAAc,UAAUP,GAEtB,gBAAAL,EAACgB,GAAA,EAAS,WAAAX,GAAsB,SAAAN,GAC9B,UAAA,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWiB;AAAA,QACTC;AAAA,UACE;AAAA,UACA;AAAA,YACE,kBAAkBb;AAAA,YAClB,mBAAmB,CAACA,KAAaU;AAAA,YACjC,sBAAsB,CAACV,KAAa,CAACU;AAAA,UAAA;AAAA,QACvC;AAAA,QAEFT;AAAA,MAAA;AAAA,MAGF,UAAA,gBAAAa;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAWF,EAAQ,sDAAsDV,CAAa;AAAA,UAErF,UAAA;AAAA,YAAAJ,KAAS,gBAAAH,EAAC,OAAA,EAAI,WAAU,6CAA6C,UAAAG,GAAM;AAAA,YAC5E,gBAAAH,EAAC,OAAA,EAAI,WAAU,4BAA4B,UAAAS,GAAU;AAAA,YACpD,CAACC,GAAa,UAAUF,KACvB,gBAAAR,EAAC,SACC,UAAA,gBAAAA,EAACQ,GAAA,EAAO,YAAAV,GAAwB,SAAAC,EAAA,CAAkB,EAAA,CACpD;AAAA,YAGDW;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACH;AAAA,EAAA,GAEJ;AAEJ;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clubmed/trident-ui",
|
|
3
|
-
"version": "1.6.0-beta.
|
|
3
|
+
"version": "1.6.0-beta.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared ClubMed React UI components",
|
|
6
6
|
"keywords": [
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"import": "./atoms/Icons/index.js",
|
|
32
32
|
"default": "./atoms/Icons/index.js"
|
|
33
33
|
},
|
|
34
|
-
"./atoms/Icons/svg-use": {
|
|
35
|
-
"types": "./atoms/Icons/svg-use/index.d.ts",
|
|
36
|
-
"import": "./atoms/Icons/svg-use/index.js",
|
|
37
|
-
"default": "./atoms/Icons/svg-use/index.js"
|
|
38
|
-
},
|
|
39
34
|
"./atoms/Icons/svg": {
|
|
40
35
|
"types": "./atoms/Icons/svg/index.d.ts",
|
|
41
36
|
"import": "./atoms/Icons/svg/index.js",
|
|
42
37
|
"default": "./atoms/Icons/svg/index.js"
|
|
43
38
|
},
|
|
39
|
+
"./atoms/Icons/svg-use": {
|
|
40
|
+
"types": "./atoms/Icons/svg-use/index.d.ts",
|
|
41
|
+
"import": "./atoms/Icons/svg-use/index.js",
|
|
42
|
+
"default": "./atoms/Icons/svg-use/index.js"
|
|
43
|
+
},
|
|
44
44
|
"./molecules/Tabs": {
|
|
45
45
|
"types": "./molecules/Tabs/index.d.ts",
|
|
46
46
|
"import": "./molecules/Tabs/index.js",
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
"import": "./molecules/Forms/Checkboxes/index.js",
|
|
52
52
|
"default": "./molecules/Forms/Checkboxes/index.js"
|
|
53
53
|
},
|
|
54
|
-
"./molecules/Forms/Password": {
|
|
55
|
-
"types": "./molecules/Forms/Password/index.d.ts",
|
|
56
|
-
"import": "./molecules/Forms/Password/index.js",
|
|
57
|
-
"default": "./molecules/Forms/Password/index.js"
|
|
58
|
-
},
|
|
59
54
|
"./molecules/Forms/Radios": {
|
|
60
55
|
"types": "./molecules/Forms/Radios/index.d.ts",
|
|
61
56
|
"import": "./molecules/Forms/Radios/index.js",
|
|
62
57
|
"default": "./molecules/Forms/Radios/index.js"
|
|
63
58
|
},
|
|
59
|
+
"./molecules/Forms/Password": {
|
|
60
|
+
"types": "./molecules/Forms/Password/index.d.ts",
|
|
61
|
+
"import": "./molecules/Forms/Password/index.js",
|
|
62
|
+
"default": "./molecules/Forms/Password/index.js"
|
|
63
|
+
},
|
|
64
64
|
"./fonts/*": "./fonts/*",
|
|
65
65
|
"./atoms/*": {
|
|
66
66
|
"types": "./atoms/*.d.ts",
|