@sudobility/healthcare-components 1.1.2 → 1.1.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.
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
*
|
|
20
20
|
* @see {@link https://docs.example.com/components/allergen-filter}
|
|
21
21
|
*/
|
|
22
|
+
/** Tracking data for AllergenFilter actions */
|
|
23
|
+
export interface AllergenFilterTrackingData {
|
|
24
|
+
action: 'click';
|
|
25
|
+
trackingLabel?: string;
|
|
26
|
+
componentName?: string;
|
|
27
|
+
}
|
|
22
28
|
export interface UallergenUfilterProps {
|
|
23
29
|
/** Additional CSS classes */
|
|
24
30
|
className?: string;
|
|
@@ -28,6 +34,12 @@ export interface UallergenUfilterProps {
|
|
|
28
34
|
disabled?: boolean;
|
|
29
35
|
/** Callback when component is interacted with */
|
|
30
36
|
onClick?: () => void;
|
|
37
|
+
/** Optional tracking callback */
|
|
38
|
+
onTrack?: (data: AllergenFilterTrackingData) => void;
|
|
39
|
+
/** Optional tracking label */
|
|
40
|
+
trackingLabel?: string;
|
|
41
|
+
/** Optional component name for tracking */
|
|
42
|
+
componentName?: string;
|
|
31
43
|
}
|
|
32
|
-
export declare const UallergenUfilter: ({ className, children, disabled, onClick, }: UallergenUfilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const UallergenUfilter: ({ className, children, disabled, onClick, onTrack, trackingLabel, componentName, }: UallergenUfilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
45
|
//# sourceMappingURL=allergen-filter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allergen-filter.d.ts","sourceRoot":"","sources":["../src/allergen-filter.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,qBAAqB;IACpC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"allergen-filter.d.ts","sourceRoot":"","sources":["../src/allergen-filter.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,+CAA+C;AAC/C,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAC;IACrD,8BAA8B;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,GAAI,oFAQ9B,qBAAqB,4CA0BvB,CAAC"}
|
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
*
|
|
20
20
|
* @see {@link https://docs.example.com/components/appointment-slot}
|
|
21
21
|
*/
|
|
22
|
+
/** Tracking data for AppointmentSlot actions */
|
|
23
|
+
export interface AppointmentSlotTrackingData {
|
|
24
|
+
action: 'click';
|
|
25
|
+
trackingLabel?: string;
|
|
26
|
+
componentName?: string;
|
|
27
|
+
}
|
|
22
28
|
export interface UappointmentUslotProps {
|
|
23
29
|
/** Additional CSS classes */
|
|
24
30
|
className?: string;
|
|
@@ -28,6 +34,12 @@ export interface UappointmentUslotProps {
|
|
|
28
34
|
disabled?: boolean;
|
|
29
35
|
/** Callback when component is interacted with */
|
|
30
36
|
onClick?: () => void;
|
|
37
|
+
/** Optional tracking callback */
|
|
38
|
+
onTrack?: (data: AppointmentSlotTrackingData) => void;
|
|
39
|
+
/** Optional tracking label */
|
|
40
|
+
trackingLabel?: string;
|
|
41
|
+
/** Optional component name for tracking */
|
|
42
|
+
componentName?: string;
|
|
31
43
|
}
|
|
32
|
-
export declare const UappointmentUslot: ({ className, children, disabled, onClick, }: UappointmentUslotProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const UappointmentUslot: ({ className, children, disabled, onClick, onTrack, trackingLabel, componentName, }: UappointmentUslotProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
45
|
//# sourceMappingURL=appointment-slot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appointment-slot.d.ts","sourceRoot":"","sources":["../src/appointment-slot.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,sBAAsB;IACrC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"appointment-slot.d.ts","sourceRoot":"","sources":["../src/appointment-slot.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,gDAAgD;AAChD,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,IAAI,CAAC;IACtD,8BAA8B;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,iBAAiB,GAAI,oFAQ/B,sBAAsB,4CA0BxB,CAAC"}
|
package/dist/index.esm.js
CHANGED
|
@@ -1,28 +1,36 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { cn as t } from "@sudobility/components";
|
|
3
|
-
const
|
|
3
|
+
const b = ({
|
|
4
4
|
className: e,
|
|
5
5
|
children: o,
|
|
6
6
|
disabled: r = !1,
|
|
7
|
-
onClick: n
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
7
|
+
onClick: n,
|
|
8
|
+
onTrack: i,
|
|
9
|
+
trackingLabel: l,
|
|
10
|
+
componentName: d = "UallergenUfilter"
|
|
11
|
+
}) => {
|
|
12
|
+
const g = () => {
|
|
13
|
+
r || (i?.({ action: "click", trackingLabel: l, componentName: d }), n?.());
|
|
14
|
+
};
|
|
15
|
+
return /* @__PURE__ */ a(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
className: t(
|
|
19
|
+
"p-4 rounded-lg border transition-colors",
|
|
20
|
+
"bg-white dark:bg-gray-900",
|
|
21
|
+
"border-gray-200 dark:border-gray-700",
|
|
22
|
+
"text-gray-900 dark:text-white",
|
|
23
|
+
r && "opacity-50 cursor-not-allowed",
|
|
24
|
+
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
25
|
+
e
|
|
26
|
+
),
|
|
27
|
+
onClick: g,
|
|
28
|
+
role: "region",
|
|
29
|
+
"aria-label": "UallergenUfilter",
|
|
30
|
+
children: o || "UallergenUfilter Component"
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}, p = ({
|
|
26
34
|
className: e,
|
|
27
35
|
children: o,
|
|
28
36
|
disabled: r
|
|
@@ -41,7 +49,7 @@ const d = ({
|
|
|
41
49
|
"aria-label": "ComplianceChecker",
|
|
42
50
|
children: o || "ComplianceChecker Component"
|
|
43
51
|
}
|
|
44
|
-
),
|
|
52
|
+
), y = ({
|
|
45
53
|
className: e,
|
|
46
54
|
children: o,
|
|
47
55
|
disabled: r
|
|
@@ -60,29 +68,37 @@ const d = ({
|
|
|
60
68
|
"aria-label": "AppointmentBooking",
|
|
61
69
|
children: o || "AppointmentBooking Component"
|
|
62
70
|
}
|
|
63
|
-
),
|
|
71
|
+
), k = ({
|
|
64
72
|
className: e,
|
|
65
73
|
children: o,
|
|
66
74
|
disabled: r = !1,
|
|
67
|
-
onClick: n
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
75
|
+
onClick: n,
|
|
76
|
+
onTrack: i,
|
|
77
|
+
trackingLabel: l,
|
|
78
|
+
componentName: d = "UappointmentUslot"
|
|
79
|
+
}) => {
|
|
80
|
+
const g = () => {
|
|
81
|
+
r || (i?.({ action: "click", trackingLabel: l, componentName: d }), n?.());
|
|
82
|
+
};
|
|
83
|
+
return /* @__PURE__ */ a(
|
|
84
|
+
"div",
|
|
85
|
+
{
|
|
86
|
+
className: t(
|
|
87
|
+
"p-4 rounded-lg border transition-colors",
|
|
88
|
+
"bg-white dark:bg-gray-900",
|
|
89
|
+
"border-gray-200 dark:border-gray-700",
|
|
90
|
+
"text-gray-900 dark:text-white",
|
|
91
|
+
r && "opacity-50 cursor-not-allowed",
|
|
92
|
+
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
93
|
+
e
|
|
94
|
+
),
|
|
95
|
+
onClick: g,
|
|
96
|
+
role: "region",
|
|
97
|
+
"aria-label": "UappointmentUslot",
|
|
98
|
+
children: o || "UappointmentUslot Component"
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}, h = ({
|
|
86
102
|
className: e,
|
|
87
103
|
children: o,
|
|
88
104
|
disabled: r
|
|
@@ -101,7 +117,7 @@ const d = ({
|
|
|
101
117
|
"aria-label": "PatientRecord",
|
|
102
118
|
children: o || "PatientRecord Component"
|
|
103
119
|
}
|
|
104
|
-
),
|
|
120
|
+
), m = ({
|
|
105
121
|
className: e,
|
|
106
122
|
children: o,
|
|
107
123
|
disabled: r
|
|
@@ -120,7 +136,7 @@ const d = ({
|
|
|
120
136
|
"aria-label": "PrescriptionManager",
|
|
121
137
|
children: o || "PrescriptionManager Component"
|
|
122
138
|
}
|
|
123
|
-
),
|
|
139
|
+
), u = ({
|
|
124
140
|
className: e,
|
|
125
141
|
children: o,
|
|
126
142
|
disabled: r
|
|
@@ -141,11 +157,11 @@ const d = ({
|
|
|
141
157
|
}
|
|
142
158
|
);
|
|
143
159
|
export {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
160
|
+
y as AppointmentBooking,
|
|
161
|
+
p as ComplianceChecker,
|
|
162
|
+
h as PatientRecord,
|
|
163
|
+
m as PrescriptionManager,
|
|
164
|
+
b as UallergenUfilter,
|
|
165
|
+
k as UappointmentUslot,
|
|
166
|
+
u as VitalSigns
|
|
151
167
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("@sudobility/components")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@sudobility/components"],a):(e=typeof globalThis<"u"?globalThis:e||self,a(e.Web3Components={},e.ReactJSXRuntime,e.SudobilityComponents))})(this,(function(e,a,n){"use strict";const s=({className:o,children:t,disabled:r=!1,onClick:i,onTrack:l,trackingLabel:d,componentName:g="UallergenUfilter"})=>{const c=()=>{r||(l?.({action:"click",trackingLabel:d,componentName:g}),i?.())};return a.jsx("div",{className:n.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:c,role:"region","aria-label":"UallergenUfilter",children:t||"UallergenUfilter Component"})},b=({className:o,children:t,disabled:r})=>a.jsx("div",{className:n.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed",o),role:"region","aria-label":"ComplianceChecker",children:t||"ComplianceChecker Component"}),p=({className:o,children:t,disabled:r})=>a.jsx("div",{className:n.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed",o),role:"region","aria-label":"AppointmentBooking",children:t||"AppointmentBooking Component"}),y=({className:o,children:t,disabled:r=!1,onClick:i,onTrack:l,trackingLabel:d,componentName:g="UappointmentUslot"})=>{const c=()=>{r||(l?.({action:"click",trackingLabel:d,componentName:g}),i?.())};return a.jsx("div",{className:n.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",o),onClick:c,role:"region","aria-label":"UappointmentUslot",children:t||"UappointmentUslot Component"})},k=({className:o,children:t,disabled:r})=>a.jsx("div",{className:n.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed",o),role:"region","aria-label":"PatientRecord",children:t||"PatientRecord Component"}),h=({className:o,children:t,disabled:r})=>a.jsx("div",{className:n.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed",o),role:"region","aria-label":"PrescriptionManager",children:t||"PrescriptionManager Component"}),u=({className:o,children:t,disabled:r})=>a.jsx("div",{className:n.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",r&&"opacity-50 cursor-not-allowed",o),role:"region","aria-label":"VitalSigns",children:t||"VitalSigns Component"});e.AppointmentBooking=p,e.ComplianceChecker=b,e.PatientRecord=k,e.PrescriptionManager=h,e.UallergenUfilter=s,e.UappointmentUslot=y,e.VitalSigns=u,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sudobility/healthcare-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Healthcare and medical UI components for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@heroicons/react": "^2.2.0",
|
|
36
|
-
"@sudobility/components": "
|
|
36
|
+
"@sudobility/components": "*",
|
|
37
37
|
"@sudobility/design": "^1.1.14",
|
|
38
38
|
"react": "^18.0.0 || ^19.0.0",
|
|
39
39
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@eslint/js": "^9.38.0",
|
|
43
43
|
"@heroicons/react": "^2.2.0",
|
|
44
|
-
"@sudobility/components": "
|
|
44
|
+
"@sudobility/components": "*",
|
|
45
45
|
"@sudobility/design": "^1.1.14",
|
|
46
46
|
"@types/node": "^24.7.1",
|
|
47
47
|
"@types/react": "^19.2.2",
|