@syscore/ui-library 2.0.0-beta-publish-workflow-beta.15 → 2.0.0-beta-publish-workflow-beta.17
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/components/icons/IconUtility.tsx +353 -0
- package/client/components/icons/X.tsx +4 -3
- package/client/components/ui/alert-v02.tsx +2 -6
- package/client/components/ui/button-v01.tsx +2 -12
- package/client/components/ui/button.tsx +39 -3
- package/client/components/ui/dropdown.tsx +10 -12
- package/client/components/ui/form.tsx +1 -1
- package/client/components/ui/label.tsx +21 -4
- package/client/components/ui/navigation.tsx +25 -4
- package/client/components/ui/radio-v01.tsx +84 -0
- package/client/components/ui/search-field-v01.tsx +10 -28
- package/client/components/ui/section-heading.tsx +1 -1
- package/client/components/ui/sign-in-field-v01.tsx +150 -0
- package/client/global.css +358 -73
- package/client/lib/system-icons.ts +1583 -0
- package/client/lib/utility-icons.ts +121 -0
- package/client/ui/Button.stories.tsx +63 -0
- package/client/ui/Colors.stories.tsx +34 -31
- package/client/ui/Icons.stories.tsx +179 -0
- package/client/ui/RadioGroup/RadioGroup.stories.tsx +1 -1
- package/client/ui/RadioV01/RadioV01.stories.tsx +136 -0
- package/client/ui/SearchField/SearchField.stories.tsx +4 -1
- package/client/ui/TextAreaV01/TextAreaV01.stories.tsx +23 -2
- package/client/ui/TextFieldV01/PasswordFieldV01.stories.tsx +25 -11
- package/client/ui/TextFieldV01/SignInFieldV01.stories.tsx +196 -0
- package/dist/client/assets/alert/icon-clear.svg.js +4 -0
- package/dist/client/assets/alert/icon-done.svg.js +4 -0
- package/dist/client/assets/avatar-identity/placeholder-icon.svg.js +4 -0
- package/dist/client/assets/breadcrumb/icon-ellipsis.svg.js +4 -0
- package/dist/client/assets/breadcrumb/icon-home.svg.js +4 -0
- package/dist/client/assets/breadcrumb/icon-separator.svg.js +4 -0
- package/dist/client/assets/button-v01/icon-back.svg.js +4 -0
- package/dist/client/assets/button-v01/icon-check.svg.js +4 -0
- package/dist/client/assets/button-v01/icon-close.svg.js +4 -0
- package/dist/client/assets/button-v01/icon-delete.svg.js +4 -0
- package/dist/client/assets/button-v01/icon-device.svg.js +4 -0
- package/dist/client/assets/dropdown/icon-carrot-contract.svg.js +4 -0
- package/dist/client/assets/dropdown/icon-carrot-expand.svg.js +4 -0
- package/dist/client/assets/dropdown/icon-clear.svg.js +4 -0
- package/dist/client/assets/dropdown/icon-enter.svg.js +4 -0
- package/dist/client/components/icons/AlphaIcon.js +129 -0
- package/dist/client/components/icons/ConceptIcons.js +905 -0
- package/dist/client/components/icons/IconUtility.js +410 -0
- package/dist/client/components/icons/NavAccount.js +37 -0
- package/dist/client/components/icons/NavBullet.js +17 -0
- package/dist/client/components/icons/NavLogo.js +48 -0
- package/dist/client/components/icons/StandardLogo.js +93 -0
- package/dist/client/components/icons/UtilityAccordion.js +27 -0
- package/dist/client/components/icons/UtilityChangeType.js +26 -0
- package/dist/client/components/icons/UtilityCheck.js +28 -0
- package/dist/client/components/icons/UtilityChevronDown.js +39 -0
- package/dist/client/components/icons/UtilityClassification.js +53 -0
- package/dist/client/components/icons/UtilityClearRegular.js +51 -0
- package/dist/client/components/icons/UtilityClose.js +49 -0
- package/dist/client/components/icons/UtilityCompare.js +91 -0
- package/dist/client/components/icons/UtilityDrag.js +89 -0
- package/dist/client/components/icons/UtilityEdit.js +50 -0
- package/dist/client/components/icons/UtilityFeedback.js +38 -0
- package/dist/client/components/icons/UtilityHome.js +34 -0
- package/dist/client/components/icons/UtilityMessage.js +41 -0
- package/dist/client/components/icons/UtilityOptions.js +53 -0
- package/dist/client/components/icons/UtilityPortfolio.js +116 -0
- package/dist/client/components/icons/UtilityReset.js +49 -0
- package/dist/client/components/icons/UtilityRevisionsHide.js +76 -0
- package/dist/client/components/icons/UtilityRevisionsShow.js +56 -0
- package/dist/client/components/icons/UtilitySave.js +38 -0
- package/dist/client/components/icons/UtilityScopeLarge.js +123 -0
- package/dist/client/components/icons/UtilityScoring.js +51 -0
- package/dist/client/components/icons/UtilitySearch.js +46 -0
- package/dist/client/components/icons/UtilityShow.js +49 -0
- package/dist/client/components/icons/UtilitySort.js +63 -0
- package/dist/client/components/icons/UtilityTarget.js +29 -0
- package/dist/client/components/icons/UtilityTargetActive.js +48 -0
- package/dist/client/components/icons/UtilityText.js +59 -0
- package/dist/client/components/icons/UtilityTrash.js +66 -0
- package/dist/client/components/icons/UtilityTriangleInfo.js +38 -0
- package/dist/client/components/icons/X.js +40 -0
- package/dist/client/components/icons/achievement-badges/BadgeCertificationBronze.js +144 -0
- package/dist/client/components/icons/achievement-badges/BadgeCertificationGold.js +144 -0
- package/dist/client/components/icons/achievement-badges/BadgeCertificationPlatinum.js +144 -0
- package/dist/client/components/icons/achievement-badges/BadgeCertificationSilver.js +144 -0
- package/dist/client/components/icons/achievement-badges/BadgeRatingCoworking.js +91 -0
- package/dist/client/components/icons/achievement-badges/BadgeRatingDesign.js +91 -0
- package/dist/client/components/icons/achievement-badges/BadgeRatingEquity.js +91 -0
- package/dist/client/components/icons/achievement-badges/BadgeRatingHealthySafety.js +93 -0
- package/dist/client/components/icons/achievement-badges/BadgeRatingOperations.js +93 -0
- package/dist/client/components/icons/achievement-badges/BadgeRatingPerformance.js +93 -0
- package/dist/client/components/icons/achievement-badges/BadgeRatingRealEstate.js +93 -0
- package/dist/client/components/icons/achievement-badges/BadgeRatingResidential.js +93 -0
- package/dist/client/components/icons/achievement-badges/BadgeRatingWorkforce.js +91 -0
- package/dist/client/components/icons/imperative-badges/BadgeImperativePrimary.js +58 -0
- package/dist/client/components/icons/imperative-badges/BadgeImperativeSecondary.js +69 -0
- package/dist/client/components/icons/provider-badges/BadgeEnterpriseProvider.js +117 -0
- package/dist/client/components/icons/provider-badges/BadgePerformanceTestingProvider.js +124 -0
- package/dist/client/components/icons/provider-badges/BadgeProductProvider.js +117 -0
- package/dist/client/components/icons/provider-badges/BadgeSurveyProvider.js +117 -0
- package/dist/client/components/icons/provider-seals/SealEnterpriseProvider.js +100 -0
- package/dist/client/components/icons/provider-seals/SealPerformanceTestingProvider.js +100 -0
- package/dist/client/components/icons/provider-seals/SealProductProvider.js +98 -0
- package/dist/client/components/icons/provider-seals/SealProviders.js +98 -0
- package/dist/client/components/icons/provider-seals/SealSurveyProvider.js +98 -0
- package/dist/client/components/icons/seals/IWBILogo.js +301 -0
- package/dist/client/components/icons/seals/SealCertification.js +206 -0
- package/dist/client/components/icons/seals/SealCertificationBronze.js +140 -0
- package/dist/client/components/icons/seals/SealCertificationGold.js +140 -0
- package/dist/client/components/icons/seals/SealCertificationPlatinum.js +140 -0
- package/dist/client/components/icons/seals/SealCertificationSilver.js +140 -0
- package/dist/client/components/icons/seals/SealIwbiMember.js +134 -0
- package/dist/client/components/icons/seals/SealRating.js +157 -0
- package/dist/client/components/icons/seals/SealRatingCoworking.js +89 -0
- package/dist/client/components/icons/seals/SealRatingDesign.js +89 -0
- package/dist/client/components/icons/seals/SealRatingEquity.js +89 -0
- package/dist/client/components/icons/seals/SealRatingHealthSafety.js +91 -0
- package/dist/client/components/icons/seals/SealRatingOperations.js +89 -0
- package/dist/client/components/icons/seals/SealRatingPerformance.js +91 -0
- package/dist/client/components/icons/seals/SealRatingRealEstate.js +89 -0
- package/dist/client/components/icons/seals/SealRatingWorkforce.js +89 -0
- package/dist/client/components/icons/seals/SealWell.js +132 -0
- package/dist/client/components/icons/seals/SealWellCertification.js +225 -0
- package/dist/client/components/icons/seals/SealWellCommunity.js +197 -0
- package/dist/client/components/icons/seals/SealWellResidence.js +197 -0
- package/dist/client/components/icons/seals/SealWorksWithWell.js +227 -0
- package/dist/client/components/icons/seals/WaterMarkWWWProducts.js +27 -0
- package/dist/client/components/icons/seals/WaterMarkWellProjects.js +36 -0
- package/dist/client/components/icons/seals/WatermarkMemberOrg.js +24 -0
- package/dist/client/components/ui/accordion.js +326 -0
- package/dist/client/components/ui/alert-dialog-panel.js +156 -0
- package/dist/client/components/ui/alert-dialog.js +103 -0
- package/dist/client/components/ui/alert-v02.js +157 -0
- package/dist/client/components/ui/alert.js +55 -0
- package/dist/client/components/ui/app-bar.js +203 -0
- package/dist/client/components/ui/aspect-ratio.js +5 -0
- package/dist/client/components/ui/avatar-identity.js +93 -0
- package/dist/client/components/ui/avatar.js +56 -0
- package/dist/client/components/ui/back-link.js +27 -0
- package/dist/client/components/ui/banner.js +75 -0
- package/dist/client/components/ui/bottom-navigation.js +127 -0
- package/dist/client/components/ui/breadcrumb-trail.js +137 -0
- package/dist/client/components/ui/breadcrumb.js +91 -0
- package/dist/client/components/ui/button-v01.js +173 -0
- package/dist/client/components/ui/button.js +99 -0
- package/dist/client/components/ui/calendar.js +62 -0
- package/dist/client/components/ui/card.js +177 -0
- package/dist/client/components/ui/carousel.js +198 -0
- package/dist/client/components/ui/centered-page.js +10 -0
- package/dist/client/components/ui/chart.js +239 -0
- package/dist/client/components/ui/checkbox-field.js +39 -0
- package/dist/client/components/ui/checkbox.js +18 -0
- package/dist/client/components/ui/code-badge.js +29 -0
- package/dist/client/components/ui/collapsible.js +9 -0
- package/dist/client/components/ui/command.js +79 -0
- package/dist/client/components/ui/context-menu.js +138 -0
- package/dist/client/components/ui/copy.js +39 -0
- package/dist/client/components/ui/credit-card-preview.js +74 -0
- package/dist/client/components/ui/data-grid.js +156 -0
- package/dist/client/components/ui/date-picker.js +142 -0
- package/dist/client/components/ui/dialog.js +179 -0
- package/dist/client/components/ui/drawer.js +95 -0
- package/dist/client/components/ui/drop-zone.js +87 -0
- package/dist/client/components/ui/dropdown-menu.js +139 -0
- package/dist/client/components/ui/dropdown.js +339 -0
- package/dist/client/components/ui/empty-state.js +76 -0
- package/dist/client/components/ui/field-group.js +32 -0
- package/dist/client/components/ui/file-upload-trigger.js +70 -0
- package/dist/client/components/ui/file-upload.js +171 -0
- package/dist/client/components/ui/footer.js +97 -0
- package/dist/client/components/ui/form.js +109 -0
- package/dist/client/components/ui/height-container.js +41 -0
- package/dist/client/components/ui/hero-section.js +44 -0
- package/dist/client/components/ui/hero-split-image.js +45 -0
- package/dist/client/components/ui/hover-card.js +22 -0
- package/dist/client/components/ui/icon-button.js +30 -0
- package/dist/client/components/ui/inline-notice.js +19 -0
- package/dist/client/components/ui/input-otp.js +46 -0
- package/dist/client/components/ui/input.js +37 -0
- package/dist/client/components/ui/label.js +31 -0
- package/dist/client/components/ui/labeled-divider.js +23 -0
- package/dist/client/components/ui/layout.js +724 -0
- package/dist/client/components/ui/menubar.js +157 -0
- package/dist/client/components/ui/meta-row.js +19 -0
- package/dist/client/components/ui/mobile-nav.js +230 -0
- package/dist/client/components/ui/modal-panel.js +116 -0
- package/dist/client/components/ui/navigation-menu.js +89 -0
- package/dist/client/components/ui/navigation.js +452 -0
- package/dist/client/components/ui/outline-node.js +57 -0
- package/dist/client/components/ui/page-header.js +79 -0
- package/dist/client/components/ui/pagination-v01.js +124 -0
- package/dist/client/components/ui/pagination.js +105 -0
- package/dist/client/components/ui/password-field-v01.js +46 -0
- package/dist/client/components/ui/pill-button.js +34 -0
- package/dist/client/components/ui/popover.js +22 -0
- package/dist/client/components/ui/price-tag.js +20 -0
- package/dist/client/components/ui/profile-avatar.js +92 -0
- package/dist/client/components/ui/progress.js +23 -0
- package/dist/client/components/ui/radio-card.js +30 -0
- package/dist/client/components/ui/radio-group.js +32 -0
- package/dist/client/components/ui/radio-v01.js +58 -0
- package/dist/client/components/ui/resizable.js +32 -0
- package/dist/client/components/ui/resource-thumbnail.js +24 -0
- package/dist/client/components/ui/scroll-area.js +37 -0
- package/dist/client/components/ui/search-field-v01.js +111 -0
- package/dist/client/components/ui/search.js +109 -0
- package/dist/client/components/ui/section-badge.js +22 -0
- package/dist/client/components/ui/section-heading.js +21 -0
- package/dist/client/components/ui/select.js +96 -0
- package/dist/client/components/ui/separator.js +24 -0
- package/dist/client/components/ui/sheet.js +106 -0
- package/dist/client/components/ui/side-nav.js +173 -0
- package/dist/client/components/ui/sidebar.js +580 -0
- package/dist/client/components/ui/sign-in-field-v01.js +107 -0
- package/dist/client/components/ui/skeleton.js +17 -0
- package/dist/client/components/ui/slider.js +20 -0
- package/dist/client/components/ui/social-button.js +34 -0
- package/dist/client/components/ui/standard-navigation.js +454 -0
- package/dist/client/components/ui/status-pill.js +42 -0
- package/dist/client/components/ui/stepper.js +111 -0
- package/dist/client/components/ui/switch-v01.js +39 -0
- package/dist/client/components/ui/switch.js +17 -0
- package/dist/client/components/ui/system-bar.js +76 -0
- package/dist/client/components/ui/table.js +107 -0
- package/dist/client/components/ui/tabs-v01.js +74 -0
- package/dist/client/components/ui/tabs.js +253 -0
- package/dist/client/components/ui/tag-v02.js +85 -0
- package/dist/client/components/ui/tag.js +73 -0
- package/dist/client/components/ui/text-area-v01.js +26 -0
- package/dist/client/components/ui/text-field-v01.js +78 -0
- package/dist/client/components/ui/text-link.js +23 -0
- package/dist/client/components/ui/textarea.js +19 -0
- package/dist/client/components/ui/timeline.js +87 -0
- package/dist/client/components/ui/toast-v01.js +155 -0
- package/dist/client/components/ui/toast.js +88 -0
- package/dist/client/components/ui/toaster.js +22 -0
- package/dist/client/components/ui/toggle.js +56 -0
- package/dist/client/components/ui/tooltip.js +328 -0
- package/dist/client/components/ui/typography.js +119 -0
- package/dist/client/hooks/use-mobile.js +20 -0
- package/dist/client/hooks/use-segmented-control.js +32 -0
- package/dist/client/hooks/use-tabs.js +22 -0
- package/dist/client/hooks/use-toast.js +122 -0
- package/dist/client/lib/concept-colors.js +74 -0
- package/dist/client/lib/concept-icons.js +32 -0
- package/dist/client/lib/utility-icons.js +73 -0
- package/dist/client/lib/utils.js +13 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +159 -0
- package/dist/ui/index.js +774 -0
- package/package.json +9 -6
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -18973
- /package/{dist → client}/fonts/FT-Made/FTMade-Regular.otf +0 -0
- /package/{dist → client}/fonts/FT-Made/FTMade-Regular.ttf +0 -0
- /package/{dist → client}/fonts/FT-Made/FTMade-Regular.woff +0 -0
- /package/{dist → client}/fonts/FT-Made/FTMade-Regular.woff2 +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-black.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-blackitalic.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-bold.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-bolditalic.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-extrabold.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-extrabolditalic.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-extralight.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-extralightitalic.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-italic.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-light.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-lightitalic.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-medium.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-mediumitalic.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-regular.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-semibold.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-semibolditalic.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-thin.otf +0 -0
- /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-thinitalic.otf +0 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
const Footer = React.forwardRef(
|
|
5
|
+
({
|
|
6
|
+
className,
|
|
7
|
+
children,
|
|
8
|
+
bordered = false,
|
|
9
|
+
rounded = false,
|
|
10
|
+
elevated = false,
|
|
11
|
+
color,
|
|
12
|
+
style,
|
|
13
|
+
...props
|
|
14
|
+
}, ref) => /* @__PURE__ */ jsx(
|
|
15
|
+
"footer",
|
|
16
|
+
{
|
|
17
|
+
ref,
|
|
18
|
+
style: { backgroundColor: color, ...style },
|
|
19
|
+
className: cn(
|
|
20
|
+
"footer",
|
|
21
|
+
bordered && "footer--bordered",
|
|
22
|
+
rounded && "footer--rounded",
|
|
23
|
+
elevated && "footer--elevated",
|
|
24
|
+
className
|
|
25
|
+
),
|
|
26
|
+
...props,
|
|
27
|
+
children
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
Footer.displayName = "Footer";
|
|
32
|
+
const FooterRow = React.forwardRef(
|
|
33
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("footer-row", className), ...props })
|
|
34
|
+
);
|
|
35
|
+
FooterRow.displayName = "FooterRow";
|
|
36
|
+
const FooterLinks = React.forwardRef(
|
|
37
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("footer-links", className), ...props })
|
|
38
|
+
);
|
|
39
|
+
FooterLinks.displayName = "FooterLinks";
|
|
40
|
+
const FooterLink = React.forwardRef(
|
|
41
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("a", { ref, className: cn("footer-link", className), ...props })
|
|
42
|
+
);
|
|
43
|
+
FooterLink.displayName = "FooterLink";
|
|
44
|
+
const FooterIconButton = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
45
|
+
"button",
|
|
46
|
+
{
|
|
47
|
+
ref,
|
|
48
|
+
type: "button",
|
|
49
|
+
className: cn("footer-icon-btn", className),
|
|
50
|
+
...props,
|
|
51
|
+
children
|
|
52
|
+
}
|
|
53
|
+
));
|
|
54
|
+
FooterIconButton.displayName = "FooterIconButton";
|
|
55
|
+
const FooterDivider = React.forwardRef(
|
|
56
|
+
({ className, width, style, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
57
|
+
"hr",
|
|
58
|
+
{
|
|
59
|
+
ref,
|
|
60
|
+
style: { width, ...style },
|
|
61
|
+
className: cn("footer-divider", className),
|
|
62
|
+
...props
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
);
|
|
66
|
+
FooterDivider.displayName = "FooterDivider";
|
|
67
|
+
const FooterCopyright = React.forwardRef(
|
|
68
|
+
({
|
|
69
|
+
className,
|
|
70
|
+
company = "International WELL Building Institute",
|
|
71
|
+
year,
|
|
72
|
+
...props
|
|
73
|
+
}, ref) => /* @__PURE__ */ jsxs("div", { ref, className: cn("footer-copyright", className), ...props, children: [
|
|
74
|
+
year ?? (/* @__PURE__ */ new Date()).getFullYear(),
|
|
75
|
+
" —",
|
|
76
|
+
" ",
|
|
77
|
+
/* @__PURE__ */ jsxs("strong", { children: [
|
|
78
|
+
"© ",
|
|
79
|
+
company
|
|
80
|
+
] })
|
|
81
|
+
] })
|
|
82
|
+
);
|
|
83
|
+
FooterCopyright.displayName = "FooterCopyright";
|
|
84
|
+
const FooterBand = React.forwardRef(
|
|
85
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("footer-band", className), ...props })
|
|
86
|
+
);
|
|
87
|
+
FooterBand.displayName = "FooterBand";
|
|
88
|
+
export {
|
|
89
|
+
Footer,
|
|
90
|
+
FooterBand,
|
|
91
|
+
FooterCopyright,
|
|
92
|
+
FooterDivider,
|
|
93
|
+
FooterIconButton,
|
|
94
|
+
FooterLink,
|
|
95
|
+
FooterLinks,
|
|
96
|
+
FooterRow
|
|
97
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { FormProvider, Controller, useFormContext } from "react-hook-form";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { Label } from "./label.js";
|
|
7
|
+
const Form = FormProvider;
|
|
8
|
+
const FormFieldContext = React.createContext(
|
|
9
|
+
{}
|
|
10
|
+
);
|
|
11
|
+
const FormField = ({
|
|
12
|
+
...props
|
|
13
|
+
}) => {
|
|
14
|
+
return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
|
|
15
|
+
};
|
|
16
|
+
const useFormField = () => {
|
|
17
|
+
const fieldContext = React.useContext(FormFieldContext);
|
|
18
|
+
const itemContext = React.useContext(FormItemContext);
|
|
19
|
+
const { getFieldState, formState } = useFormContext();
|
|
20
|
+
const fieldState = getFieldState(fieldContext.name, formState);
|
|
21
|
+
if (!fieldContext) {
|
|
22
|
+
throw new Error("useFormField should be used within <FormField>");
|
|
23
|
+
}
|
|
24
|
+
const { id } = itemContext;
|
|
25
|
+
return {
|
|
26
|
+
id,
|
|
27
|
+
name: fieldContext.name,
|
|
28
|
+
formItemId: `${id}-form-item`,
|
|
29
|
+
formDescriptionId: `${id}-form-item-description`,
|
|
30
|
+
formMessageId: `${id}-form-item-message`,
|
|
31
|
+
...fieldState
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
const FormItemContext = React.createContext(
|
|
35
|
+
{}
|
|
36
|
+
);
|
|
37
|
+
const FormItem = React.forwardRef(({ className, ...props }, ref) => {
|
|
38
|
+
const id = React.useId();
|
|
39
|
+
return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx("div", { ref, className: cn("form-item", className), ...props }) });
|
|
40
|
+
});
|
|
41
|
+
FormItem.displayName = "FormItem";
|
|
42
|
+
const FormLabel = React.forwardRef(({ className, ...props }, ref) => {
|
|
43
|
+
const { error, formItemId } = useFormField();
|
|
44
|
+
return /* @__PURE__ */ jsx(
|
|
45
|
+
Label,
|
|
46
|
+
{
|
|
47
|
+
ref,
|
|
48
|
+
className: cn(error && "form-label--error", className),
|
|
49
|
+
htmlFor: formItemId,
|
|
50
|
+
...props
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
});
|
|
54
|
+
FormLabel.displayName = "FormLabel";
|
|
55
|
+
const FormControl = React.forwardRef(({ ...props }, ref) => {
|
|
56
|
+
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
57
|
+
return /* @__PURE__ */ jsx(
|
|
58
|
+
Slot,
|
|
59
|
+
{
|
|
60
|
+
ref,
|
|
61
|
+
id: formItemId,
|
|
62
|
+
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
63
|
+
"aria-invalid": !!error,
|
|
64
|
+
...props
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
});
|
|
68
|
+
FormControl.displayName = "FormControl";
|
|
69
|
+
const FormDescription = React.forwardRef(({ className, ...props }, ref) => {
|
|
70
|
+
const { formDescriptionId } = useFormField();
|
|
71
|
+
return /* @__PURE__ */ jsx(
|
|
72
|
+
"p",
|
|
73
|
+
{
|
|
74
|
+
ref,
|
|
75
|
+
id: formDescriptionId,
|
|
76
|
+
className: cn("form-description", className),
|
|
77
|
+
...props
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
});
|
|
81
|
+
FormDescription.displayName = "FormDescription";
|
|
82
|
+
const FormMessage = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
83
|
+
const { error, formMessageId } = useFormField();
|
|
84
|
+
const body = error ? String(error == null ? void 0 : error.message) : children;
|
|
85
|
+
if (!body) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
return /* @__PURE__ */ jsx(
|
|
89
|
+
"p",
|
|
90
|
+
{
|
|
91
|
+
ref,
|
|
92
|
+
id: formMessageId,
|
|
93
|
+
className: cn("form-message", className),
|
|
94
|
+
...props,
|
|
95
|
+
children: body
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
});
|
|
99
|
+
FormMessage.displayName = "FormMessage";
|
|
100
|
+
export {
|
|
101
|
+
Form,
|
|
102
|
+
FormControl,
|
|
103
|
+
FormDescription,
|
|
104
|
+
FormField,
|
|
105
|
+
FormItem,
|
|
106
|
+
FormLabel,
|
|
107
|
+
FormMessage,
|
|
108
|
+
useFormField
|
|
109
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useRef, useLayoutEffect } from "react";
|
|
3
|
+
import { animate } from "motion/react";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
function HeightContainer({
|
|
6
|
+
children,
|
|
7
|
+
stateKey,
|
|
8
|
+
className
|
|
9
|
+
}) {
|
|
10
|
+
const containerRef = useRef(null);
|
|
11
|
+
const innerRef = useRef(null);
|
|
12
|
+
const currentHeight = useRef(0);
|
|
13
|
+
useLayoutEffect(() => {
|
|
14
|
+
const container = containerRef.current;
|
|
15
|
+
const inner = innerRef.current;
|
|
16
|
+
if (!container || !inner) return;
|
|
17
|
+
const initialHeight = inner.offsetHeight;
|
|
18
|
+
if (currentHeight.current === 0 && initialHeight > 0) {
|
|
19
|
+
currentHeight.current = initialHeight;
|
|
20
|
+
container.style.height = `${initialHeight}px`;
|
|
21
|
+
}
|
|
22
|
+
const ro = new ResizeObserver(() => {
|
|
23
|
+
const targetHeight = inner.offsetHeight;
|
|
24
|
+
if (targetHeight > 0 && targetHeight !== currentHeight.current) {
|
|
25
|
+
const shouldAnimate = currentHeight.current > 0;
|
|
26
|
+
currentHeight.current = targetHeight;
|
|
27
|
+
if (shouldAnimate) {
|
|
28
|
+
animate(container, { height: targetHeight }, { duration: 0.25, ease: "easeInOut" });
|
|
29
|
+
} else {
|
|
30
|
+
container.style.height = `${targetHeight}px`;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
ro.observe(inner);
|
|
35
|
+
return () => ro.disconnect();
|
|
36
|
+
}, [stateKey]);
|
|
37
|
+
return /* @__PURE__ */ jsx("div", { ref: containerRef, className: cn("overflow-clip", className), children: /* @__PURE__ */ jsx("div", { ref: innerRef, children }) });
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
HeightContainer
|
|
41
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { motion } from "motion/react";
|
|
3
|
+
const HeroSection = ({ backgroundSlot, contentSlot }) => {
|
|
4
|
+
return /* @__PURE__ */ jsxs("section", { className: "relative flex flex-col sm:pt-[169px] pt-24 items-center min-h-[454px] bg-cyan-900 overflow-hidden", children: [
|
|
5
|
+
backgroundSlot,
|
|
6
|
+
/* @__PURE__ */ jsxs("header", { className: "relative z-10 flex flex-col items-center text-center overflow-visible", children: [
|
|
7
|
+
/* @__PURE__ */ jsx(
|
|
8
|
+
motion.h2,
|
|
9
|
+
{
|
|
10
|
+
className: "heading-small mb-6",
|
|
11
|
+
initial: { opacity: 0, y: 20 },
|
|
12
|
+
animate: { opacity: 1, y: 0 },
|
|
13
|
+
transition: { duration: 0.6, delay: 0.3 },
|
|
14
|
+
children: /* @__PURE__ */ jsx(
|
|
15
|
+
"span",
|
|
16
|
+
{
|
|
17
|
+
style: {
|
|
18
|
+
background: "linear-gradient(90deg, #084654 0.08%, #2D718A 50.08%, #084654 100.08%)",
|
|
19
|
+
backgroundClip: "text",
|
|
20
|
+
WebkitBackgroundClip: "text",
|
|
21
|
+
WebkitTextFillColor: "transparent"
|
|
22
|
+
},
|
|
23
|
+
children: "One unified, harmonized standard"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ jsx(
|
|
29
|
+
motion.h1,
|
|
30
|
+
{
|
|
31
|
+
className: "text-white heading-large mb-[70px]",
|
|
32
|
+
initial: { opacity: 0, y: 20 },
|
|
33
|
+
animate: { opacity: 1, y: 0 },
|
|
34
|
+
transition: { duration: 0.6, delay: 0.4 },
|
|
35
|
+
children: "One WELL"
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
contentSlot
|
|
39
|
+
] })
|
|
40
|
+
] });
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
HeroSection
|
|
44
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
const HeroSplitImage = React.forwardRef(
|
|
5
|
+
({ src, alt = "" }, ref) => {
|
|
6
|
+
const [current, setCurrent] = React.useState(src);
|
|
7
|
+
const [previous, setPrevious] = React.useState(null);
|
|
8
|
+
const [isCurrentLoaded, setIsCurrentLoaded] = React.useState(false);
|
|
9
|
+
React.useEffect(() => {
|
|
10
|
+
if (src === current) return;
|
|
11
|
+
setPrevious(current);
|
|
12
|
+
setCurrent(src);
|
|
13
|
+
setIsCurrentLoaded(false);
|
|
14
|
+
}, [src, current]);
|
|
15
|
+
return /* @__PURE__ */ jsxs("span", { className: "hero-split-image-frame", children: [
|
|
16
|
+
previous ? /* @__PURE__ */ jsx(
|
|
17
|
+
"img",
|
|
18
|
+
{
|
|
19
|
+
src: previous,
|
|
20
|
+
alt: "",
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
className: cn("hero-split-image", !isCurrentLoaded && "hero-split-image--loaded"),
|
|
23
|
+
onTransitionEnd: (event) => {
|
|
24
|
+
if (event.propertyName === "opacity" && isCurrentLoaded) setPrevious(null);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
) : null,
|
|
28
|
+
/* @__PURE__ */ jsx(
|
|
29
|
+
"img",
|
|
30
|
+
{
|
|
31
|
+
ref,
|
|
32
|
+
src: current,
|
|
33
|
+
alt,
|
|
34
|
+
className: cn("hero-split-image", isCurrentLoaded && "hero-split-image--loaded"),
|
|
35
|
+
onLoad: () => setIsCurrentLoaded(true)
|
|
36
|
+
},
|
|
37
|
+
current
|
|
38
|
+
)
|
|
39
|
+
] });
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
HeroSplitImage.displayName = "HeroSplitImage";
|
|
43
|
+
export {
|
|
44
|
+
HeroSplitImage
|
|
45
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
const HoverCard = HoverCardPrimitive.Root;
|
|
6
|
+
const HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
7
|
+
const HoverCardContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8
|
+
HoverCardPrimitive.Content,
|
|
9
|
+
{
|
|
10
|
+
ref,
|
|
11
|
+
align,
|
|
12
|
+
sideOffset,
|
|
13
|
+
className: cn("hover-card-content", className),
|
|
14
|
+
...props
|
|
15
|
+
}
|
|
16
|
+
));
|
|
17
|
+
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
18
|
+
export {
|
|
19
|
+
HoverCard,
|
|
20
|
+
HoverCardContent,
|
|
21
|
+
HoverCardTrigger
|
|
22
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
const iconButtonVariants = cva("icon-button", {
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
sm: "icon-button--sm",
|
|
9
|
+
md: "icon-button--md",
|
|
10
|
+
bare: "icon-button--bare"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: { size: "md" }
|
|
14
|
+
});
|
|
15
|
+
const IconButton = React.forwardRef(
|
|
16
|
+
({ className, size, type = "button", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
17
|
+
"button",
|
|
18
|
+
{
|
|
19
|
+
ref,
|
|
20
|
+
type,
|
|
21
|
+
className: cn(iconButtonVariants({ size }), className),
|
|
22
|
+
...props
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
IconButton.displayName = "IconButton";
|
|
27
|
+
export {
|
|
28
|
+
IconButton,
|
|
29
|
+
iconButtonVariants
|
|
30
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
const InlineNotice = React.forwardRef(
|
|
5
|
+
({ tone = "error", children, className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
ref,
|
|
9
|
+
className: cn("inline-notice", `inline-notice--${tone}`, className),
|
|
10
|
+
role: tone === "error" ? "alert" : "status",
|
|
11
|
+
...props,
|
|
12
|
+
children: /* @__PURE__ */ jsx("span", { className: "inline-notice__text", children })
|
|
13
|
+
}
|
|
14
|
+
)
|
|
15
|
+
);
|
|
16
|
+
InlineNotice.displayName = "InlineNotice";
|
|
17
|
+
export {
|
|
18
|
+
InlineNotice
|
|
19
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { OTPInput, OTPInputContext } from "input-otp";
|
|
4
|
+
import { Dot } from "lucide-react";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
const InputOTP = React.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
7
|
+
OTPInput,
|
|
8
|
+
{
|
|
9
|
+
ref,
|
|
10
|
+
containerClassName: cn("input-otp-container", containerClassName),
|
|
11
|
+
className: cn("input-otp", className),
|
|
12
|
+
...props
|
|
13
|
+
}
|
|
14
|
+
));
|
|
15
|
+
InputOTP.displayName = "InputOTP";
|
|
16
|
+
const InputOTPGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("input-otp-group", className), ...props }));
|
|
17
|
+
InputOTPGroup.displayName = "InputOTPGroup";
|
|
18
|
+
const InputOTPSlot = React.forwardRef(({ index, className, ...props }, ref) => {
|
|
19
|
+
const inputOTPContext = React.useContext(OTPInputContext);
|
|
20
|
+
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
21
|
+
return /* @__PURE__ */ jsxs(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
ref,
|
|
25
|
+
className: cn(
|
|
26
|
+
"input-otp-slot",
|
|
27
|
+
isActive && "input-otp-slot--active",
|
|
28
|
+
className
|
|
29
|
+
),
|
|
30
|
+
...props,
|
|
31
|
+
children: [
|
|
32
|
+
char,
|
|
33
|
+
hasFakeCaret && /* @__PURE__ */ jsx("div", { className: "input-otp-caret", children: /* @__PURE__ */ jsx("div", { className: "input-otp-caret-line" }) })
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
});
|
|
38
|
+
InputOTPSlot.displayName = "InputOTPSlot";
|
|
39
|
+
const InputOTPSeparator = React.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx(Dot, {}) }));
|
|
40
|
+
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
41
|
+
export {
|
|
42
|
+
InputOTP,
|
|
43
|
+
InputOTPGroup,
|
|
44
|
+
InputOTPSeparator,
|
|
45
|
+
InputOTPSlot
|
|
46
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
const Input = React.forwardRef(
|
|
5
|
+
({ className, type, startIcon, endIcon, ...props }, ref) => {
|
|
6
|
+
const isReadOnly = props.readOnly;
|
|
7
|
+
const isDisabled = props.disabled;
|
|
8
|
+
return /* @__PURE__ */ jsxs(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
className: cn(
|
|
12
|
+
"input-wrapper body-base font-mazzard",
|
|
13
|
+
className
|
|
14
|
+
),
|
|
15
|
+
children: [
|
|
16
|
+
startIcon ? /* @__PURE__ */ jsx("div", { className: "input-icon-start", children: startIcon }) : null,
|
|
17
|
+
/* @__PURE__ */ jsx(
|
|
18
|
+
"input",
|
|
19
|
+
{
|
|
20
|
+
type,
|
|
21
|
+
className: "well-input ",
|
|
22
|
+
ref,
|
|
23
|
+
disabled: isDisabled,
|
|
24
|
+
readOnly: isReadOnly,
|
|
25
|
+
...props
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
endIcon ? /* @__PURE__ */ jsx("div", { className: "input-icon-end", children: endIcon }) : null
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
Input.displayName = "Input";
|
|
35
|
+
export {
|
|
36
|
+
Input
|
|
37
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
const labelVariants = cva("label");
|
|
7
|
+
const Label = React.forwardRef(({ className, children, required, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8
|
+
LabelPrimitive.Root,
|
|
9
|
+
{
|
|
10
|
+
ref,
|
|
11
|
+
className: cn(labelVariants(), className),
|
|
12
|
+
...props,
|
|
13
|
+
children: /* @__PURE__ */ jsxs("div", { className: "overline-medium", children: [
|
|
14
|
+
" ",
|
|
15
|
+
children,
|
|
16
|
+
required ? /* @__PURE__ */ jsxs("span", { className: "label__required-mark", "aria-hidden": "true", children: [
|
|
17
|
+
" ",
|
|
18
|
+
"*"
|
|
19
|
+
] }) : null
|
|
20
|
+
] })
|
|
21
|
+
}
|
|
22
|
+
));
|
|
23
|
+
Label.displayName = LabelPrimitive.Root.displayName;
|
|
24
|
+
const RequiredAsterisk = () => /* @__PURE__ */ jsxs("span", { className: "label__required-mark", "aria-hidden": "true", children: [
|
|
25
|
+
" ",
|
|
26
|
+
"*"
|
|
27
|
+
] });
|
|
28
|
+
export {
|
|
29
|
+
Label,
|
|
30
|
+
RequiredAsterisk
|
|
31
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
const LabeledDivider = React.forwardRef(
|
|
5
|
+
({ children, className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
ref,
|
|
9
|
+
className: cn("labeled-divider", className),
|
|
10
|
+
role: "separator",
|
|
11
|
+
...props,
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ jsx("span", { className: "labeled-divider__rule", "aria-hidden": "true" }),
|
|
14
|
+
/* @__PURE__ */ jsx("span", { className: "labeled-divider__label overline-medium", children }),
|
|
15
|
+
/* @__PURE__ */ jsx("span", { className: "labeled-divider__rule", "aria-hidden": "true" })
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
);
|
|
20
|
+
LabeledDivider.displayName = "LabeledDivider";
|
|
21
|
+
export {
|
|
22
|
+
LabeledDivider
|
|
23
|
+
};
|