@candidhealth/react-vitals 1.0.0-alpha.10 → 1.0.0-alpha.11
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/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -515,7 +515,7 @@ var TooltipContent = ({ children, variant = "dark", ...rest }) => {
|
|
|
515
515
|
...rest,
|
|
516
516
|
hideWhenDetached: true,
|
|
517
517
|
sideOffset: 6,
|
|
518
|
-
className: `z-9000000000 max-w-prose rounded-lg px-5 py-3 text-sm break-
|
|
518
|
+
className: `z-9000000000 max-w-prose rounded-lg px-5 py-3 text-sm wrap-break-word shadow-lg ${variant === "dark" ? "bg-gray-900 text-white" : "bg-white text-gray-600"}`,
|
|
519
519
|
children: [
|
|
520
520
|
children,
|
|
521
521
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadixTooltip.Arrow, { className: variant === "dark" ? "fill-gray-900" : "fill-white", offset: 8 })
|
|
@@ -661,10 +661,10 @@ var Callout = ({
|
|
|
661
661
|
),
|
|
662
662
|
children: [
|
|
663
663
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex gap-2", children: [
|
|
664
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: (0, import_tailwind_merge6.twJoin)("text-sm", title ? "leading-
|
|
664
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: (0, import_tailwind_merge6.twJoin)("text-sm", title ? "leading-xs" : "leading-5", calloutIconStyles[intent]), children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { icon: customIcon ?? calloutIcons[intent] }) }),
|
|
665
665
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex flex-1 flex-col gap-1", children: [
|
|
666
|
-
title && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "leading-
|
|
667
|
-
children && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "text-sm
|
|
666
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "leading-xs font-medium whitespace-pre-line text-neutral", children: title }),
|
|
667
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "text-sm/5 text-muted", children })
|
|
668
668
|
] })
|
|
669
669
|
] }),
|
|
670
670
|
rightSlot
|
|
@@ -1080,6 +1080,7 @@ var inputBoxStyles = ({
|
|
|
1080
1080
|
}) => (0, import_tailwind_merge11.twJoin)(
|
|
1081
1081
|
"flex w-full items-center focus-within:ring-0 focus:ring-0 has-disabled:bg-surface-neutral has-disabled:text-placeholder",
|
|
1082
1082
|
sizeStyles2[size],
|
|
1083
|
+
// eslint-disable-next-line better-tailwindcss/no-unknown-classes
|
|
1083
1084
|
variantStyles[variant][hasError ? "error" : hasWarning ? "warning" : hasSuccess ? "success" : "default"]
|
|
1084
1085
|
);
|
|
1085
1086
|
var inputStyles = "w-full text-gray-800 placeholder:text-placeholder disabled:text-placeholder";
|
|
@@ -1272,7 +1273,7 @@ var DatePicker = (props) => props.range ? /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
1272
1273
|
|
|
1273
1274
|
// src/core/divider/Divider.tsx
|
|
1274
1275
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1275
|
-
var Divider = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: twMerge("h-
|
|
1276
|
+
var Divider = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: twMerge("h-px w-full border-b border-surface-neutral", className) });
|
|
1276
1277
|
|
|
1277
1278
|
// src/core/error-text/ErrorText.tsx
|
|
1278
1279
|
var import_react11 = require("react");
|
|
@@ -1713,7 +1714,7 @@ var DollarInput = (0, import_react20.forwardRef)(
|
|
|
1713
1714
|
"div",
|
|
1714
1715
|
{
|
|
1715
1716
|
className: (0, import_tailwind_merge18.twJoin)(
|
|
1716
|
-
"flex h-md w-
|
|
1717
|
+
"flex h-md w-md items-center justify-center rounded-l-md border-y border-l px-2.5 text-sm text-muted",
|
|
1717
1718
|
hasError ? "border-red-300 bg-red-200 text-red-700" : hasWarning ? "border-yellow-300 bg-surface-warning text-warning" : hasSuccess ? "border-green-300 bg-surface-success text-success" : "border-surface-neutral bg-surface-neutral"
|
|
1718
1719
|
),
|
|
1719
1720
|
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { icon: import_sharp_solid_svg_icons9.faDollarSign })
|
|
@@ -1853,7 +1854,7 @@ var PercentInput = (0, import_react21.forwardRef)(
|
|
|
1853
1854
|
"div",
|
|
1854
1855
|
{
|
|
1855
1856
|
className: (0, import_tailwind_merge19.twJoin)(
|
|
1856
|
-
"flex h-md w-
|
|
1857
|
+
"flex h-md w-md items-center justify-center rounded-l-md border-y border-l px-2.5 text-sm text-muted",
|
|
1857
1858
|
hasError ? "border-red-300 bg-red-200 text-red-700" : hasWarning ? "border-yellow-300 bg-surface-warning text-warning" : hasSuccess ? "border-green-300 bg-surface-success text-success" : "border-surface-neutral bg-surface-neutral"
|
|
1858
1859
|
),
|
|
1859
1860
|
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, { icon: import_sharp_solid_svg_icons10.faPercent })
|
|
@@ -3250,7 +3251,7 @@ var Drawer = (0, import_react31.forwardRef)(
|
|
|
3250
3251
|
{
|
|
3251
3252
|
className: (0, import_tailwind_merge27.twJoin)(
|
|
3252
3253
|
"absolute inset-0 z-30 transition-all",
|
|
3253
|
-
isOpen && blurredOverlay && "bg-surface-
|
|
3254
|
+
isOpen && blurredOverlay && "bg-surface-light/10 backdrop-blur-sm",
|
|
3254
3255
|
// If the drawer is open, and the blurredOverlay prop is given, stop the user from clicking through the overlay
|
|
3255
3256
|
isOpen && blurredOverlay ? "pointer-events-auto" : "pointer-events-none"
|
|
3256
3257
|
),
|
|
@@ -3343,7 +3344,7 @@ var TableCheckboxSkeleton = ({
|
|
|
3343
3344
|
{
|
|
3344
3345
|
className: (0, import_tailwind_merge29.twJoin)("flex gap-4", hasBorder && "px-2 not-last:border-b"),
|
|
3345
3346
|
style: rowHeight ? { height: rowHeight } : void 0,
|
|
3346
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("td", { className: "flex grow items-center px-1", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Skeleton, { className: (0, import_tailwind_merge29.twJoin)("w-full
|
|
3347
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("td", { className: "flex grow items-center px-1", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Skeleton, { className: (0, import_tailwind_merge29.twJoin)("w-full rounded-none", rowHeight ? "h-3" : "h-6") }, index) }, index)
|
|
3347
3348
|
},
|
|
3348
3349
|
index
|
|
3349
3350
|
)) }) });
|
|
@@ -4077,7 +4078,7 @@ var TableRow = ({ table, rowClassName, cellClassName, row }) => {
|
|
|
4077
4078
|
"data-depth": isStaticSubRow ? row.depth : void 0,
|
|
4078
4079
|
onClick: !isStaticSubRow && row.getCanExpand() ? row.getToggleExpandedHandler() : void 0,
|
|
4079
4080
|
className: (0, import_tailwind_merge38.twJoin)(
|
|
4080
|
-
"data-
|
|
4081
|
+
"data-active:bg-indigo-100 data-clickable:hover:cursor-pointer data-clickable:hover:bg-surface-primary data-active:data-clickable:hover:bg-indigo-200",
|
|
4081
4082
|
rowClassName
|
|
4082
4083
|
),
|
|
4083
4084
|
children: cells.map((cell) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|