@syscore/ui-library 1.1.10 → 1.1.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/client/App.tsx +47 -0
- package/client/components/icons/ConceptIcons.tsx +667 -0
- package/client/components/icons/NavAccount.tsx +31 -0
- package/client/components/icons/NavBullet.tsx +19 -0
- package/client/components/icons/NavLogo.tsx +36 -0
- package/client/components/icons/ProviderBadges.tsx +295 -0
- package/client/components/icons/ProviderSeals.tsx +319 -0
- package/client/components/icons/SealHealthSafetyRating.tsx +65 -0
- package/client/components/icons/SealIwbiMember.tsx +86 -0
- package/client/components/icons/SealWell.tsx +84 -0
- package/client/components/icons/SealWellCertification.tsx +138 -0
- package/client/components/icons/SealWellCommunity.tsx +122 -0
- package/client/components/icons/SealWellResidence.tsx +122 -0
- package/client/components/icons/SealWorksWithWell.tsx +140 -0
- package/client/components/icons/UtilityAccordion.tsx +21 -0
- package/client/components/icons/UtilityChevronDown.tsx +36 -0
- package/client/components/icons/UtilityClassification.tsx +45 -0
- package/client/components/icons/UtilityClose.tsx +41 -0
- package/client/components/icons/UtilityDrag.tsx +69 -0
- package/client/components/icons/UtilityEdit.tsx +42 -0
- package/client/components/icons/UtilityOptions.tsx +45 -0
- package/client/components/icons/UtilityPortfolio.tsx +87 -0
- package/client/components/icons/UtilityReset.tsx +41 -0
- package/client/components/icons/UtilityScoring.tsx +43 -0
- package/client/components/icons/UtilitySearch.tsx +38 -0
- package/client/components/icons/UtilitySort.tsx +52 -0
- package/client/components/icons/UtilityText.tsx +34 -0
- package/client/components/icons/WaterMarkWWWProducts.tsx +26 -0
- package/client/components/icons/WaterMarkWellProjects.tsx +30 -0
- package/client/components/icons/WatermarkMemberOrg.tsx +59 -0
- package/client/components/icons/WellSeal.tsx +79 -0
- package/client/components/icons/X.tsx +35 -0
- package/client/hooks/UseTabs.tsx +35 -0
- package/client/hooks/use-mobile.tsx +21 -0
- package/client/hooks/use-segmented-control.ts +42 -0
- package/client/hooks/use-toast.ts +188 -0
- package/client/pages/Index.tsx +88 -0
- package/client/pages/NotFound.tsx +29 -0
- package/client/ui/Accordion/Accordion.stories.tsx +74 -0
- package/client/ui/Alert/Alert.stories.tsx +82 -0
- package/client/ui/AlertDialog/AlertDialog.stories.tsx +106 -0
- package/client/ui/AspectRatio.stories.tsx +78 -0
- package/client/ui/Avatar/Avatar.stories.tsx +94 -0
- package/client/ui/Badge/Badge.stories.tsx +60 -0
- package/client/ui/Breadcrumb/Breadcrumb.stories.tsx +97 -0
- package/client/ui/Button.stories.tsx +429 -0
- package/client/ui/Calendar/Calendar.stories.tsx +99 -0
- package/client/ui/Card.stories.tsx +84 -0
- package/client/ui/Carousel/Carousel.stories.tsx +85 -0
- package/client/ui/Chart/Chart.stories.tsx +58 -0
- package/client/ui/Checkbox/Checkbox.stories.tsx +112 -0
- package/client/ui/Collapsible/Collapsible.stories.tsx +101 -0
- package/client/ui/Colors.stories.tsx +1041 -0
- package/client/ui/Command/Command.stories.tsx +97 -0
- package/client/ui/ContextMenu/ContextMenu.stories.tsx +74 -0
- package/client/ui/Dialog.stories.tsx +69 -0
- package/client/ui/Drawer/Drawer.stories.tsx +87 -0
- package/client/ui/DropdownMenu/DropdownMenu.stories.tsx +139 -0
- package/client/ui/Form/Form.stories.tsx +74 -0
- package/client/ui/HoverCard/HoverCard.stories.tsx +94 -0
- package/client/ui/Icons.stories.tsx +328 -0
- package/client/ui/Input/Input.stories.tsx +69 -0
- package/client/ui/InputOTP/InputOTP.stories.tsx +85 -0
- package/client/ui/Label.stories.tsx +66 -0
- package/client/ui/Menubar/Menubar.stories.tsx +88 -0
- package/client/ui/Navigation.stories.tsx +57 -0
- package/client/ui/NavigationMenu/NavigationMenu.stories.tsx +106 -0
- package/client/ui/Pagination/Pagination.stories.tsx +115 -0
- package/client/ui/Popover/Popover.stories.tsx +99 -0
- package/client/ui/Progress/Progress.stories.tsx +63 -0
- package/client/ui/RadioGroup/RadioGroup.stories.tsx +110 -0
- package/client/ui/Resizable/Resizable.stories.tsx +88 -0
- package/client/ui/ScrollArea/ScrollArea.stories.tsx +64 -0
- package/client/ui/SearchField.stories.tsx +63 -0
- package/client/ui/Select/Select.stories.tsx +111 -0
- package/client/ui/Separator/Separator.stories.tsx +67 -0
- package/client/ui/Sheet/Sheet.stories.tsx +138 -0
- package/client/ui/Sidebar/Sidebar.stories.tsx +92 -0
- package/client/ui/Skeleton/Skeleton.stories.tsx +65 -0
- package/client/ui/Slider/Slider.stories.tsx +101 -0
- package/client/ui/Sonner/Sonner.stories.tsx +48 -0
- package/client/ui/StrategyTable.stories.tsx +138 -0
- package/client/ui/Switch/Switch.stories.tsx +96 -0
- package/client/ui/Table/Table.stories.tsx +135 -0
- package/client/ui/Tabs.stories.tsx +33 -0
- package/client/ui/Tag.stories.tsx +190 -0
- package/client/ui/Textarea/Textarea.stories.tsx +56 -0
- package/client/ui/Toast/Toast.stories.tsx +76 -0
- package/client/ui/Toaster/Toaster.stories.tsx +52 -0
- package/client/ui/Toggle.stories.tsx +248 -0
- package/client/ui/ToggleGroup/ToggleGroup.stories.tsx +88 -0
- package/client/ui/Tooltip.stories.tsx +72 -0
- package/client/ui/Typography.stories.tsx +421 -0
- package/client/ui/WELLDashboard/WELLDashboard.stories.tsx +115 -0
- package/client/ui/WELLDashboard/index.tsx +221 -0
- package/client/vite-env.d.ts +1 -0
- package/dist/ui/index.cjs.js +1 -1
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.es.js +163 -1
- package/package.json +2 -1
package/dist/ui/index.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import React__default, { useState, useEffect, useCallback } from "react";
|
|
4
4
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
5
|
-
import { ChevronDown, GripVertical, X, PanelLeft, Check, Circle, Dot, ChevronUp, ChevronRight, ChevronLeft, MoreHorizontal, XIcon, ArrowLeft, ArrowRight, Search } from "lucide-react";
|
|
5
|
+
import { ChevronDown, GripVertical, X, PanelLeft, Check, Circle, Dot, ChevronUp, ChevronRight, ChevronLeft, MoreHorizontal, XIcon, ArrowLeft, ArrowRight, Search, Building2 } from "lucide-react";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { twMerge } from "tailwind-merge";
|
|
8
8
|
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
@@ -3525,6 +3525,167 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
3525
3525
|
}
|
|
3526
3526
|
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
3527
3527
|
}
|
|
3528
|
+
const defaultCertifications = [
|
|
3529
|
+
{ name: "Platinum", locations: 1, color: "#A8A7AE", icon: "platinum" },
|
|
3530
|
+
{ name: "Gold", locations: 1, color: "#D7C686", icon: "gold" },
|
|
3531
|
+
{ name: "Silver", locations: 1, color: "#C0C2C4", icon: "silver" },
|
|
3532
|
+
{ name: "Bronze", locations: 1, color: "#D1A778", icon: "bronze" },
|
|
3533
|
+
{ name: "Precertified", locations: 1, color: "#44B0BC", icon: "precertified" }
|
|
3534
|
+
];
|
|
3535
|
+
const defaultRatings = [
|
|
3536
|
+
{ name: "Health-Safety", locations: 1, color: "#7FB3DC", percentage: 50, icon: "health" },
|
|
3537
|
+
{ name: "Equity", locations: 1, color: "#41937D", percentage: 67, icon: "equity" },
|
|
3538
|
+
{ name: "Performance", locations: "Not Pursued", color: "#0B667F", percentage: 2, icon: "performance", inactive: true },
|
|
3539
|
+
{ name: "Coworking", locations: "Not Pursued", color: "#AD7DA3", percentage: 2, icon: "coworking", inactive: true }
|
|
3540
|
+
];
|
|
3541
|
+
const WELLDashboard = React.forwardRef(
|
|
3542
|
+
({ certifiedPercentage = 60, certifications = defaultCertifications, ratings = defaultRatings, className }, ref) => {
|
|
3543
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: cn("flex flex-col gap-4", className), children: [
|
|
3544
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col lg:flex-row gap-4", children: [
|
|
3545
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0 rounded-md border border-[#DEDEE5] bg-white/0 p-4 shadow-xs", children: [
|
|
3546
|
+
/* @__PURE__ */ jsx("h2", { className: "text-xl font-medium text-[#3D3E46] text-center mb-6", style: { fontFamily: "'DM Sans', sans-serif" }, children: "WELL Certified Locations" }),
|
|
3547
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col md:flex-row justify-center items-center gap-10", children: [
|
|
3548
|
+
/* @__PURE__ */ jsxs("div", { className: "relative w-60 h-60 shrink-0", children: [
|
|
3549
|
+
/* @__PURE__ */ jsxs("svg", { width: "240", height: "240", viewBox: "0 0 240 240", className: "transform -rotate-90", children: [
|
|
3550
|
+
/* @__PURE__ */ jsx("circle", { cx: "120", cy: "120", r: "120", fill: "#F5F9FB" }),
|
|
3551
|
+
/* @__PURE__ */ jsx(
|
|
3552
|
+
"circle",
|
|
3553
|
+
{
|
|
3554
|
+
cx: "120",
|
|
3555
|
+
cy: "120",
|
|
3556
|
+
r: "100",
|
|
3557
|
+
fill: "none",
|
|
3558
|
+
stroke: "#327DB9",
|
|
3559
|
+
strokeWidth: "20",
|
|
3560
|
+
strokeDasharray: `${certifiedPercentage / 100 * 628} 628`,
|
|
3561
|
+
strokeLinecap: "round"
|
|
3562
|
+
}
|
|
3563
|
+
),
|
|
3564
|
+
certifications.map((cert, index) => {
|
|
3565
|
+
const totalSegments = certifications.length;
|
|
3566
|
+
const segmentAngle = certifiedPercentage / 100 * 360 / totalSegments;
|
|
3567
|
+
const startAngle = index * segmentAngle;
|
|
3568
|
+
const arcLength = segmentAngle * Math.PI * 100 / 180;
|
|
3569
|
+
const offset = startAngle * Math.PI * 100 / 180;
|
|
3570
|
+
return /* @__PURE__ */ jsx(
|
|
3571
|
+
"circle",
|
|
3572
|
+
{
|
|
3573
|
+
cx: "120",
|
|
3574
|
+
cy: "120",
|
|
3575
|
+
r: "100",
|
|
3576
|
+
fill: "none",
|
|
3577
|
+
stroke: cert.color,
|
|
3578
|
+
strokeWidth: "20",
|
|
3579
|
+
strokeDasharray: `${arcLength} 628`,
|
|
3580
|
+
strokeDashoffset: -offset,
|
|
3581
|
+
opacity: "0.7"
|
|
3582
|
+
},
|
|
3583
|
+
cert.name
|
|
3584
|
+
);
|
|
3585
|
+
}),
|
|
3586
|
+
/* @__PURE__ */ jsx("circle", { cx: "120", cy: "120", r: "80", fill: "white", filter: "drop-shadow(0 0 16px rgba(0,0,0,0.04))" })
|
|
3587
|
+
] }),
|
|
3588
|
+
/* @__PURE__ */ jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: [
|
|
3589
|
+
/* @__PURE__ */ jsxs("div", { className: "text-5xl font-medium text-[#327DB9]", style: { fontFamily: "'DM Sans', sans-serif" }, children: [
|
|
3590
|
+
certifiedPercentage,
|
|
3591
|
+
"%"
|
|
3592
|
+
] }),
|
|
3593
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm font-medium text-[#78777F] mt-1", style: { fontFamily: "'DM Sans', sans-serif" }, children: "Certified" })
|
|
3594
|
+
] })
|
|
3595
|
+
] }),
|
|
3596
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-4 min-w-[160px]", children: certifications.map((cert) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
3597
|
+
/* @__PURE__ */ jsx(
|
|
3598
|
+
"div",
|
|
3599
|
+
{
|
|
3600
|
+
className: "w-10 h-10 rounded-full shrink-0 flex items-center justify-center",
|
|
3601
|
+
style: { backgroundColor: cert.color },
|
|
3602
|
+
children: cert.icon === "precertified" && /* @__PURE__ */ jsx("div", { className: "w-9 h-6 bg-[#44B0BC] rounded-sm flex items-center justify-center text-white text-[10px] font-bold", children: "WELL" })
|
|
3603
|
+
}
|
|
3604
|
+
),
|
|
3605
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 flex-1", children: [
|
|
3606
|
+
/* @__PURE__ */ jsx("div", { className: "text-base font-medium text-[#3D3E46]", style: { fontFamily: "'DM Sans', sans-serif" }, children: cert.name }),
|
|
3607
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
3608
|
+
/* @__PURE__ */ jsx(Building2, { size: 16, className: "text-[#327DB9]", strokeWidth: 1.2 }),
|
|
3609
|
+
/* @__PURE__ */ jsxs("span", { className: "text-xs font-medium text-[#327DB9]", style: { fontFamily: "'DM Sans', sans-serif" }, children: [
|
|
3610
|
+
cert.locations,
|
|
3611
|
+
" Location",
|
|
3612
|
+
cert.locations !== 1 ? "s" : ""
|
|
3613
|
+
] })
|
|
3614
|
+
] })
|
|
3615
|
+
] })
|
|
3616
|
+
] }, cert.name)) })
|
|
3617
|
+
] })
|
|
3618
|
+
] }),
|
|
3619
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0 rounded-md border border-[#DEDEE5] bg-white/0 p-4 shadow-xs", children: [
|
|
3620
|
+
/* @__PURE__ */ jsx("h2", { className: "text-xl font-medium text-[#3D3E46] text-center mb-6", style: { fontFamily: "'DM Sans', sans-serif" }, children: "WELL Rated Locations" }),
|
|
3621
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col md:flex-row justify-center items-center gap-10", children: [
|
|
3622
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-end gap-4 h-60 px-4", children: [
|
|
3623
|
+
ratings.map((rating) => /* @__PURE__ */ jsxs("div", { className: "w-10 h-60 relative", children: [
|
|
3624
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 rounded-t border border-[#DEDEE5] bg-[#F5F9FB]" }),
|
|
3625
|
+
/* @__PURE__ */ jsx(
|
|
3626
|
+
"div",
|
|
3627
|
+
{
|
|
3628
|
+
className: "absolute bottom-0 left-0 right-0 rounded-t transition-all",
|
|
3629
|
+
style: {
|
|
3630
|
+
backgroundColor: rating.color,
|
|
3631
|
+
height: `${rating.percentage}%`
|
|
3632
|
+
}
|
|
3633
|
+
}
|
|
3634
|
+
)
|
|
3635
|
+
] }, rating.name)),
|
|
3636
|
+
/* @__PURE__ */ jsx("div", { className: "w-px h-60 bg-[#DEDEE5]" })
|
|
3637
|
+
] }),
|
|
3638
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-4 min-w-[160px]", children: ratings.map((rating) => /* @__PURE__ */ jsxs(
|
|
3639
|
+
"div",
|
|
3640
|
+
{
|
|
3641
|
+
className: cn("flex items-center gap-2", rating.inactive && "opacity-50"),
|
|
3642
|
+
children: [
|
|
3643
|
+
/* @__PURE__ */ jsx(
|
|
3644
|
+
"div",
|
|
3645
|
+
{
|
|
3646
|
+
className: "w-10 h-10 rounded-full shrink-0 flex items-center justify-center",
|
|
3647
|
+
style: { backgroundColor: rating.color }
|
|
3648
|
+
}
|
|
3649
|
+
),
|
|
3650
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 flex-1", children: [
|
|
3651
|
+
/* @__PURE__ */ jsx("div", { className: "text-base font-medium text-[#3D3E46]", style: { fontFamily: "'DM Sans', sans-serif" }, children: rating.name }),
|
|
3652
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
3653
|
+
/* @__PURE__ */ jsx(
|
|
3654
|
+
Building2,
|
|
3655
|
+
{
|
|
3656
|
+
size: 16,
|
|
3657
|
+
className: rating.inactive ? "text-[#78777F]" : "text-[#327DB9]",
|
|
3658
|
+
strokeWidth: 1.2
|
|
3659
|
+
}
|
|
3660
|
+
),
|
|
3661
|
+
/* @__PURE__ */ jsx(
|
|
3662
|
+
"span",
|
|
3663
|
+
{
|
|
3664
|
+
className: cn(
|
|
3665
|
+
"text-xs font-medium",
|
|
3666
|
+
rating.inactive ? "text-[#78777F]" : "text-[#327DB9]"
|
|
3667
|
+
),
|
|
3668
|
+
style: { fontFamily: "'DM Sans', sans-serif" },
|
|
3669
|
+
children: typeof rating.locations === "number" ? `${rating.locations} Location${rating.locations !== 1 ? "s" : ""}` : rating.locations
|
|
3670
|
+
}
|
|
3671
|
+
)
|
|
3672
|
+
] })
|
|
3673
|
+
] })
|
|
3674
|
+
]
|
|
3675
|
+
},
|
|
3676
|
+
rating.name
|
|
3677
|
+
)) })
|
|
3678
|
+
] })
|
|
3679
|
+
] })
|
|
3680
|
+
] }),
|
|
3681
|
+
/* @__PURE__ */ jsxs("p", { className: "text-[10px] leading-3 font-medium text-[#78777F] text-center", style: { fontFamily: "'DM Sans', sans-serif" }, children: [
|
|
3682
|
+
"Achievement metrics reflect all active program achievements, as of ",
|
|
3683
|
+
(/* @__PURE__ */ new Date()).toLocaleDateString("en-US", { month: "long", day: "numeric", year: "numeric" })
|
|
3684
|
+
] })
|
|
3685
|
+
] });
|
|
3686
|
+
}
|
|
3687
|
+
);
|
|
3688
|
+
WELLDashboard.displayName = "WELLDashboard";
|
|
3528
3689
|
const Toaster = ({ ...props }) => {
|
|
3529
3690
|
const { theme = "system" } = useTheme();
|
|
3530
3691
|
return /* @__PURE__ */ jsx(
|
|
@@ -3767,6 +3928,7 @@ export {
|
|
|
3767
3928
|
TooltipContent,
|
|
3768
3929
|
TooltipProvider,
|
|
3769
3930
|
TooltipTrigger,
|
|
3931
|
+
WELLDashboard,
|
|
3770
3932
|
badgeVariants,
|
|
3771
3933
|
buttonVariants,
|
|
3772
3934
|
navigationMenuTriggerStyle,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syscore/ui-library",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "A comprehensive React component library built with Radix UI, Tailwind CSS, and TypeScript",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"files": [
|
|
26
26
|
"dist",
|
|
27
27
|
"client/components/ui",
|
|
28
|
+
"client/*",
|
|
28
29
|
"client/lib",
|
|
29
30
|
"tailwind.preset.ts",
|
|
30
31
|
"client/global.css"
|