@sudobility/insurance-components 1.0.9
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/dist/coverage-chart.d.ts +33 -0
- package/dist/coverage-chart.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +308 -0
- package/dist/index.umd.js +6 -0
- package/dist/risk-assessment.d.ts +18 -0
- package/dist/risk-assessment.d.ts.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UcoverageUchart Component
|
|
3
|
+
*
|
|
4
|
+
* A reusable UcoverageUchart component with full dark mode support.
|
|
5
|
+
* Optimized for accessibility and AI-assisted development.
|
|
6
|
+
*
|
|
7
|
+
* @component
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <UcoverageUchart className="custom-class" />
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* This component supports:
|
|
15
|
+
* - Light and dark themes automatically
|
|
16
|
+
* - Responsive design
|
|
17
|
+
* - Accessibility features
|
|
18
|
+
* - TypeScript type safety
|
|
19
|
+
*
|
|
20
|
+
* @see {@link https://docs.example.com/components/coverage-chart}
|
|
21
|
+
*/
|
|
22
|
+
export interface UcoverageUchartProps {
|
|
23
|
+
/** Additional CSS classes */
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Component children */
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
/** Disabled state */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** Callback when component is interacted with */
|
|
30
|
+
onClick?: () => void;
|
|
31
|
+
}
|
|
32
|
+
export declare const UcoverageUchart: ({ className, children, disabled, onClick, }: UcoverageUchartProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=coverage-chart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coverage-chart.d.ts","sourceRoot":"","sources":["../src/coverage-chart.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,oBAAoB;IACnC,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;CACtB;AAED,eAAO,MAAM,eAAe,GAAI,6CAK7B,oBAAoB,4CAmBtB,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import re from "react";
|
|
2
|
+
import { cn as F } from "@sudobility/components";
|
|
3
|
+
var R = { exports: {} }, b = {};
|
|
4
|
+
var $;
|
|
5
|
+
function te() {
|
|
6
|
+
if ($) return b;
|
|
7
|
+
$ = 1;
|
|
8
|
+
var o = Symbol.for("react.transitional.element"), c = Symbol.for("react.fragment");
|
|
9
|
+
function l(i, s, u) {
|
|
10
|
+
var d = null;
|
|
11
|
+
if (u !== void 0 && (d = "" + u), s.key !== void 0 && (d = "" + s.key), "key" in s) {
|
|
12
|
+
u = {};
|
|
13
|
+
for (var m in s)
|
|
14
|
+
m !== "key" && (u[m] = s[m]);
|
|
15
|
+
} else u = s;
|
|
16
|
+
return s = u.ref, {
|
|
17
|
+
$$typeof: o,
|
|
18
|
+
type: i,
|
|
19
|
+
key: d,
|
|
20
|
+
ref: s !== void 0 ? s : null,
|
|
21
|
+
props: u
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
return b.Fragment = c, b.jsx = l, b.jsxs = l, b;
|
|
25
|
+
}
|
|
26
|
+
var _ = {};
|
|
27
|
+
var U;
|
|
28
|
+
function ae() {
|
|
29
|
+
return U || (U = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
30
|
+
function o(e) {
|
|
31
|
+
if (e == null) return null;
|
|
32
|
+
if (typeof e == "function")
|
|
33
|
+
return e.$$typeof === Q ? null : e.displayName || e.name || null;
|
|
34
|
+
if (typeof e == "string") return e;
|
|
35
|
+
switch (e) {
|
|
36
|
+
case p:
|
|
37
|
+
return "Fragment";
|
|
38
|
+
case J:
|
|
39
|
+
return "Profiler";
|
|
40
|
+
case q:
|
|
41
|
+
return "StrictMode";
|
|
42
|
+
case X:
|
|
43
|
+
return "Suspense";
|
|
44
|
+
case B:
|
|
45
|
+
return "SuspenseList";
|
|
46
|
+
case Z:
|
|
47
|
+
return "Activity";
|
|
48
|
+
}
|
|
49
|
+
if (typeof e == "object")
|
|
50
|
+
switch (typeof e.tag == "number" && console.error(
|
|
51
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
52
|
+
), e.$$typeof) {
|
|
53
|
+
case W:
|
|
54
|
+
return "Portal";
|
|
55
|
+
case z:
|
|
56
|
+
return e.displayName || "Context";
|
|
57
|
+
case V:
|
|
58
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
59
|
+
case G:
|
|
60
|
+
var r = e.render;
|
|
61
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
62
|
+
case H:
|
|
63
|
+
return r = e.displayName || null, r !== null ? r : o(e.type) || "Memo";
|
|
64
|
+
case T:
|
|
65
|
+
r = e._payload, e = e._init;
|
|
66
|
+
try {
|
|
67
|
+
return o(e(r));
|
|
68
|
+
} catch {
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
function c(e) {
|
|
74
|
+
return "" + e;
|
|
75
|
+
}
|
|
76
|
+
function l(e) {
|
|
77
|
+
try {
|
|
78
|
+
c(e);
|
|
79
|
+
var r = !1;
|
|
80
|
+
} catch {
|
|
81
|
+
r = !0;
|
|
82
|
+
}
|
|
83
|
+
if (r) {
|
|
84
|
+
r = console;
|
|
85
|
+
var t = r.error, a = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
86
|
+
return t.call(
|
|
87
|
+
r,
|
|
88
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
89
|
+
a
|
|
90
|
+
), c(e);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function i(e) {
|
|
94
|
+
if (e === p) return "<>";
|
|
95
|
+
if (typeof e == "object" && e !== null && e.$$typeof === T)
|
|
96
|
+
return "<...>";
|
|
97
|
+
try {
|
|
98
|
+
var r = o(e);
|
|
99
|
+
return r ? "<" + r + ">" : "<...>";
|
|
100
|
+
} catch {
|
|
101
|
+
return "<...>";
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function s() {
|
|
105
|
+
var e = k.A;
|
|
106
|
+
return e === null ? null : e.getOwner();
|
|
107
|
+
}
|
|
108
|
+
function u() {
|
|
109
|
+
return Error("react-stack-top-frame");
|
|
110
|
+
}
|
|
111
|
+
function d(e) {
|
|
112
|
+
if (S.call(e, "key")) {
|
|
113
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
114
|
+
if (r && r.isReactWarning) return !1;
|
|
115
|
+
}
|
|
116
|
+
return e.key !== void 0;
|
|
117
|
+
}
|
|
118
|
+
function m(e, r) {
|
|
119
|
+
function t() {
|
|
120
|
+
P || (P = !0, console.error(
|
|
121
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
122
|
+
r
|
|
123
|
+
));
|
|
124
|
+
}
|
|
125
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
126
|
+
get: t,
|
|
127
|
+
configurable: !0
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
function L() {
|
|
131
|
+
var e = o(this.type);
|
|
132
|
+
return j[e] || (j[e] = !0, console.error(
|
|
133
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
134
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
135
|
+
}
|
|
136
|
+
function M(e, r, t, a, v, y) {
|
|
137
|
+
var n = t.ref;
|
|
138
|
+
return e = {
|
|
139
|
+
$$typeof: x,
|
|
140
|
+
type: e,
|
|
141
|
+
key: r,
|
|
142
|
+
props: t,
|
|
143
|
+
_owner: a
|
|
144
|
+
}, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
|
|
145
|
+
enumerable: !1,
|
|
146
|
+
get: L
|
|
147
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
148
|
+
configurable: !1,
|
|
149
|
+
enumerable: !1,
|
|
150
|
+
writable: !0,
|
|
151
|
+
value: 0
|
|
152
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
153
|
+
configurable: !1,
|
|
154
|
+
enumerable: !1,
|
|
155
|
+
writable: !0,
|
|
156
|
+
value: null
|
|
157
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
158
|
+
configurable: !1,
|
|
159
|
+
enumerable: !1,
|
|
160
|
+
writable: !0,
|
|
161
|
+
value: v
|
|
162
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
163
|
+
configurable: !1,
|
|
164
|
+
enumerable: !1,
|
|
165
|
+
writable: !0,
|
|
166
|
+
value: y
|
|
167
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
168
|
+
}
|
|
169
|
+
function A(e, r, t, a, v, y) {
|
|
170
|
+
var n = r.children;
|
|
171
|
+
if (n !== void 0)
|
|
172
|
+
if (a)
|
|
173
|
+
if (K(n)) {
|
|
174
|
+
for (a = 0; a < n.length; a++)
|
|
175
|
+
w(n[a]);
|
|
176
|
+
Object.freeze && Object.freeze(n);
|
|
177
|
+
} else
|
|
178
|
+
console.error(
|
|
179
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
180
|
+
);
|
|
181
|
+
else w(n);
|
|
182
|
+
if (S.call(r, "key")) {
|
|
183
|
+
n = o(e);
|
|
184
|
+
var f = Object.keys(r).filter(function(ee) {
|
|
185
|
+
return ee !== "key";
|
|
186
|
+
});
|
|
187
|
+
a = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", Y[n + a] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
188
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
189
|
+
let props = %s;
|
|
190
|
+
<%s {...props} />
|
|
191
|
+
React keys must be passed directly to JSX without using spread:
|
|
192
|
+
let props = %s;
|
|
193
|
+
<%s key={someKey} {...props} />`,
|
|
194
|
+
a,
|
|
195
|
+
n,
|
|
196
|
+
f,
|
|
197
|
+
n
|
|
198
|
+
), Y[n + a] = !0);
|
|
199
|
+
}
|
|
200
|
+
if (n = null, t !== void 0 && (l(t), n = "" + t), d(r) && (l(r.key), n = "" + r.key), "key" in r) {
|
|
201
|
+
t = {};
|
|
202
|
+
for (var h in r)
|
|
203
|
+
h !== "key" && (t[h] = r[h]);
|
|
204
|
+
} else t = r;
|
|
205
|
+
return n && m(
|
|
206
|
+
t,
|
|
207
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
208
|
+
), M(
|
|
209
|
+
e,
|
|
210
|
+
n,
|
|
211
|
+
t,
|
|
212
|
+
s(),
|
|
213
|
+
v,
|
|
214
|
+
y
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
function w(e) {
|
|
218
|
+
O(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === T && (e._payload.status === "fulfilled" ? O(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
219
|
+
}
|
|
220
|
+
function O(e) {
|
|
221
|
+
return typeof e == "object" && e !== null && e.$$typeof === x;
|
|
222
|
+
}
|
|
223
|
+
var E = re, x = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), J = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), z = Symbol.for("react.context"), G = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), Z = Symbol.for("react.activity"), Q = Symbol.for("react.client.reference"), k = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, S = Object.prototype.hasOwnProperty, K = Array.isArray, g = console.createTask ? console.createTask : function() {
|
|
224
|
+
return null;
|
|
225
|
+
};
|
|
226
|
+
E = {
|
|
227
|
+
react_stack_bottom_frame: function(e) {
|
|
228
|
+
return e();
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
var P, j = {}, N = E.react_stack_bottom_frame.bind(
|
|
232
|
+
E,
|
|
233
|
+
u
|
|
234
|
+
)(), C = g(i(u)), Y = {};
|
|
235
|
+
_.Fragment = p, _.jsx = function(e, r, t) {
|
|
236
|
+
var a = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
237
|
+
return A(
|
|
238
|
+
e,
|
|
239
|
+
r,
|
|
240
|
+
t,
|
|
241
|
+
!1,
|
|
242
|
+
a ? Error("react-stack-top-frame") : N,
|
|
243
|
+
a ? g(i(e)) : C
|
|
244
|
+
);
|
|
245
|
+
}, _.jsxs = function(e, r, t) {
|
|
246
|
+
var a = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
247
|
+
return A(
|
|
248
|
+
e,
|
|
249
|
+
r,
|
|
250
|
+
t,
|
|
251
|
+
!0,
|
|
252
|
+
a ? Error("react-stack-top-frame") : N,
|
|
253
|
+
a ? g(i(e)) : C
|
|
254
|
+
);
|
|
255
|
+
};
|
|
256
|
+
})()), _;
|
|
257
|
+
}
|
|
258
|
+
var I;
|
|
259
|
+
function ne() {
|
|
260
|
+
return I || (I = 1, process.env.NODE_ENV === "production" ? R.exports = te() : R.exports = ae()), R.exports;
|
|
261
|
+
}
|
|
262
|
+
var D = ne();
|
|
263
|
+
const le = ({
|
|
264
|
+
className: o,
|
|
265
|
+
children: c,
|
|
266
|
+
disabled: l = !1,
|
|
267
|
+
onClick: i
|
|
268
|
+
}) => /* @__PURE__ */ D.jsx(
|
|
269
|
+
"div",
|
|
270
|
+
{
|
|
271
|
+
className: F(
|
|
272
|
+
"p-4 rounded-lg border transition-colors",
|
|
273
|
+
"bg-white dark:bg-gray-900",
|
|
274
|
+
"border-gray-200 dark:border-gray-700",
|
|
275
|
+
"text-gray-900 dark:text-white",
|
|
276
|
+
l && "opacity-50 cursor-not-allowed",
|
|
277
|
+
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
278
|
+
o
|
|
279
|
+
),
|
|
280
|
+
onClick: l ? void 0 : i,
|
|
281
|
+
role: "region",
|
|
282
|
+
"aria-label": "UcoverageUchart",
|
|
283
|
+
children: c || "UcoverageUchart Component"
|
|
284
|
+
}
|
|
285
|
+
), ue = ({
|
|
286
|
+
className: o,
|
|
287
|
+
children: c,
|
|
288
|
+
disabled: l
|
|
289
|
+
}) => /* @__PURE__ */ D.jsx(
|
|
290
|
+
"div",
|
|
291
|
+
{
|
|
292
|
+
className: F(
|
|
293
|
+
"p-4 rounded-lg border transition-colors",
|
|
294
|
+
"bg-white dark:bg-gray-900",
|
|
295
|
+
"border-gray-200 dark:border-gray-700",
|
|
296
|
+
"text-gray-900 dark:text-white",
|
|
297
|
+
l && "opacity-50 cursor-not-allowed",
|
|
298
|
+
o
|
|
299
|
+
),
|
|
300
|
+
role: "region",
|
|
301
|
+
"aria-label": "RiskAssessment",
|
|
302
|
+
children: c || "RiskAssessment Component"
|
|
303
|
+
}
|
|
304
|
+
);
|
|
305
|
+
export {
|
|
306
|
+
ue as RiskAssessment,
|
|
307
|
+
le as UcoverageUchart
|
|
308
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
(function(c,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react"),require("@sudobility/components")):typeof define=="function"&&define.amd?define(["exports","react","@sudobility/components"],m):(c=typeof globalThis<"u"?globalThis:c||self,m(c.Components={},c.React,c.components))})(this,(function(c,m,w){"use strict";var v={exports:{}},b={};var x;function W(){if(x)return b;x=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(f,s,u){var E=null;if(u!==void 0&&(E=""+u),s.key!==void 0&&(E=""+s.key),"key"in s){u={};for(var p in s)p!=="key"&&(u[p]=s[p])}else u=s;return s=u.ref,{$$typeof:a,type:f,key:E,ref:s!==void 0?s:null,props:u}}return b.Fragment=i,b.jsx=l,b.jsxs=l,b}var _={};var S;function q(){return S||(S=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case Z:return"Profiler";case H:return"StrictMode";case re:return"Suspense";case te:return"SuspenseList";case oe:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case B:return"Portal";case K:return e.displayName||"Context";case Q:return(e._context.displayName||"Context")+".Consumer";case ee:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case g:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function i(e){return""+e}function l(e){try{i(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),i(e)}}function f(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===g)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function s(){var e=y.A;return e===null?null:e.getOwner()}function u(){return Error("react-stack-top-frame")}function E(e){if(I.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function p(e,r){function t(){$||($=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function G(){var e=a(this.type);return F[e]||(F[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function X(e,r,t,n,T,A){var o=t.ref;return e={$$typeof:U,type:e,key:r,props:t,_owner:n},(o!==void 0?o:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:G}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:T}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function N(e,r,t,n,T,A){var o=r.children;if(o!==void 0)if(n)if(se(o)){for(n=0;n<o.length;n++)C(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else C(o);if(I.call(r,"key")){o=a(e);var d=Object.keys(r).filter(function(le){return le!=="key"});n=0<d.length?"{key: someKey, "+d.join(": ..., ")+": ...}":"{key: someKey}",L[o+n]||(d=0<d.length?"{"+d.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
+
let props = %s;
|
|
3
|
+
<%s {...props} />
|
|
4
|
+
React keys must be passed directly to JSX without using spread:
|
|
5
|
+
let props = %s;
|
|
6
|
+
<%s key={someKey} {...props} />`,n,o,d,o),L[o+n]=!0)}if(o=null,t!==void 0&&(l(t),o=""+t),E(r)&&(l(r.key),o=""+r.key),"key"in r){t={};for(var O in r)O!=="key"&&(t[O]=r[O])}else t=r;return o&&p(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),X(e,o,t,s(),T,A)}function C(e){Y(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===g&&(e._payload.status==="fulfilled"?Y(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function Y(e){return typeof e=="object"&&e!==null&&e.$$typeof===U}var R=m,U=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),K=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ae=Symbol.for("react.client.reference"),y=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,se=Array.isArray,h=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(e){return e()}};var $,F={},D=R.react_stack_bottom_frame.bind(R,u)(),M=h(f(u)),L={};_.Fragment=k,_.jsx=function(e,r,t){var n=1e4>y.recentlyCreatedOwnerStacks++;return N(e,r,t,!1,n?Error("react-stack-top-frame"):D,n?h(f(e)):M)},_.jsxs=function(e,r,t){var n=1e4>y.recentlyCreatedOwnerStacks++;return N(e,r,t,!0,n?Error("react-stack-top-frame"):D,n?h(f(e)):M)}})()),_}var P;function J(){return P||(P=1,process.env.NODE_ENV==="production"?v.exports=W():v.exports=q()),v.exports}var j=J();const V=({className:a,children:i,disabled:l=!1,onClick:f})=>j.jsx("div",{className:w.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",l&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",a),onClick:l?void 0:f,role:"region","aria-label":"UcoverageUchart",children:i||"UcoverageUchart Component"}),z=({className:a,children:i,disabled:l})=>j.jsx("div",{className:w.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",l&&"opacity-50 cursor-not-allowed",a),role:"region","aria-label":"RiskAssessment",children:i||"RiskAssessment Component"});c.RiskAssessment=z,c.UcoverageUchart=V,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RiskAssessment Component
|
|
3
|
+
*
|
|
4
|
+
* Insurance component with full dark mode support.
|
|
5
|
+
*
|
|
6
|
+
* @component
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <RiskAssessment className="custom-class" />
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export interface RiskAssessmentProps {
|
|
13
|
+
className?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const RiskAssessment: ({ className, children, disabled, }: RiskAssessmentProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=risk-assessment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"risk-assessment.d.ts","sourceRoot":"","sources":["../src/risk-assessment.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,GAAI,oCAI5B,mBAAmB,4CAiBrB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sudobility/insurance-components",
|
|
3
|
+
"version": "1.0.9",
|
|
4
|
+
"description": "insurance UI components for React",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.umd.js",
|
|
7
|
+
"module": "dist/index.esm.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.esm.js",
|
|
13
|
+
"require": "./dist/index.umd.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc && vite build",
|
|
22
|
+
"dev": "vite build --watch",
|
|
23
|
+
"type-check": "tsc --noEmit"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"react",
|
|
27
|
+
"components",
|
|
28
|
+
"insurance",
|
|
29
|
+
"typescript"
|
|
30
|
+
],
|
|
31
|
+
"author": "John Q Huang",
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@sudobility/components": "^3.0.0",
|
|
35
|
+
"@sudobility/design": "^1.1.3",
|
|
36
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
37
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@sudobility/components": "^3.0.0",
|
|
41
|
+
"@sudobility/design": "^1.1.3",
|
|
42
|
+
"@types/node": "^24.7.1",
|
|
43
|
+
"@types/react": "^19.2.2",
|
|
44
|
+
"@types/react-dom": "^19.2.2",
|
|
45
|
+
"@vitejs/plugin-react": "^5.1.0",
|
|
46
|
+
"class-variance-authority": "^0.7.1",
|
|
47
|
+
"clsx": "^2.1.1",
|
|
48
|
+
"react": "^19.2.0",
|
|
49
|
+
"react-dom": "^19.2.0",
|
|
50
|
+
"tailwind-merge": "^3.3.1",
|
|
51
|
+
"typescript": "^5.9.3",
|
|
52
|
+
"vite": "^7.1.12",
|
|
53
|
+
"vite-plugin-dts": "^4.5.4"
|
|
54
|
+
}
|
|
55
|
+
}
|