@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,452 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { motion, AnimatePresence } from "motion/react";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { NavLogo } from "../icons/NavLogo.js";
|
|
7
|
+
import { NavAccount } from "../icons/NavAccount.js";
|
|
8
|
+
import { NavBullet } from "../icons/NavBullet.js";
|
|
9
|
+
import { UtilityClearRegular } from "../icons/UtilityClearRegular.js";
|
|
10
|
+
import { buttonVariants } from "./button.js";
|
|
11
|
+
const NavigationContext = React.createContext(
|
|
12
|
+
null
|
|
13
|
+
);
|
|
14
|
+
function useNavigation() {
|
|
15
|
+
const ctx = React.useContext(NavigationContext);
|
|
16
|
+
if (!ctx)
|
|
17
|
+
throw new Error("Navigation components must be used within <Navigation>");
|
|
18
|
+
return ctx;
|
|
19
|
+
}
|
|
20
|
+
const Navigation = React.forwardRef(
|
|
21
|
+
({ className, light = false, children, ...props }, ref) => {
|
|
22
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
23
|
+
const [activeIndex, setActiveIndex] = React.useState(null);
|
|
24
|
+
const [trays, setTrays] = React.useState([]);
|
|
25
|
+
const closeTimeoutRef = React.useRef(null);
|
|
26
|
+
const CLOSE_DELAY_MS = 150;
|
|
27
|
+
const cancelClose = React.useCallback(() => {
|
|
28
|
+
if (closeTimeoutRef.current !== null) {
|
|
29
|
+
clearTimeout(closeTimeoutRef.current);
|
|
30
|
+
closeTimeoutRef.current = null;
|
|
31
|
+
}
|
|
32
|
+
}, []);
|
|
33
|
+
const handleMouseLeave = () => {
|
|
34
|
+
cancelClose();
|
|
35
|
+
closeTimeoutRef.current = setTimeout(() => {
|
|
36
|
+
setIsOpen(false);
|
|
37
|
+
setActiveIndex(null);
|
|
38
|
+
closeTimeoutRef.current = null;
|
|
39
|
+
}, CLOSE_DELAY_MS);
|
|
40
|
+
};
|
|
41
|
+
React.useEffect(() => () => cancelClose(), [cancelClose]);
|
|
42
|
+
const registerTrays = React.useCallback((newTrays) => {
|
|
43
|
+
setTrays(newTrays);
|
|
44
|
+
}, []);
|
|
45
|
+
const contextValue = React.useMemo(
|
|
46
|
+
() => ({
|
|
47
|
+
light,
|
|
48
|
+
isOpen,
|
|
49
|
+
activeIndex,
|
|
50
|
+
setActiveIndex,
|
|
51
|
+
setIsOpen,
|
|
52
|
+
registerTrays,
|
|
53
|
+
cancelClose
|
|
54
|
+
}),
|
|
55
|
+
[light, isOpen, activeIndex, registerTrays, cancelClose]
|
|
56
|
+
);
|
|
57
|
+
return /* @__PURE__ */ jsx(NavigationContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs(
|
|
58
|
+
"nav",
|
|
59
|
+
{
|
|
60
|
+
ref,
|
|
61
|
+
className: cn("navigation", light && "navigation--light", className),
|
|
62
|
+
onMouseEnter: cancelClose,
|
|
63
|
+
onMouseLeave: handleMouseLeave,
|
|
64
|
+
...props,
|
|
65
|
+
children: [
|
|
66
|
+
!light && /* @__PURE__ */ jsx(
|
|
67
|
+
motion.div,
|
|
68
|
+
{
|
|
69
|
+
className: "navigation__backdrop",
|
|
70
|
+
initial: false,
|
|
71
|
+
animate: {
|
|
72
|
+
height: isOpen ? 340 : 64,
|
|
73
|
+
backgroundColor: isOpen ? "rgba(62, 64, 73, 0.90)" : "rgba(0, 0, 0, 0.16)"
|
|
74
|
+
},
|
|
75
|
+
transition: { duration: 0.25, ease: "easeOut" },
|
|
76
|
+
style: { willChange: "transform" }
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ jsx("div", { className: "navigation__content", children }),
|
|
80
|
+
isOpen && !light && /* @__PURE__ */ jsx("div", { className: "navigation__separator" }),
|
|
81
|
+
/* @__PURE__ */ jsx("div", { className: "navigation__tray-container", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: isOpen && activeIndex !== null && /* @__PURE__ */ jsx(
|
|
82
|
+
motion.div,
|
|
83
|
+
{
|
|
84
|
+
initial: { y: -10, opacity: 0 },
|
|
85
|
+
animate: { y: 0, opacity: 1 },
|
|
86
|
+
exit: { y: -10, opacity: 0 },
|
|
87
|
+
transition: { duration: 0.2 },
|
|
88
|
+
style: { willChange: "transform, opacity" },
|
|
89
|
+
children: trays[activeIndex - 1]
|
|
90
|
+
},
|
|
91
|
+
activeIndex
|
|
92
|
+
) }) })
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
) });
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
Navigation.displayName = "Navigation";
|
|
99
|
+
const NavigationBrand = React.forwardRef(
|
|
100
|
+
({ className, children }, ref) => {
|
|
101
|
+
return /* @__PURE__ */ jsx(
|
|
102
|
+
motion.div,
|
|
103
|
+
{
|
|
104
|
+
ref,
|
|
105
|
+
className: cn("navigation-brand", className),
|
|
106
|
+
layout: true,
|
|
107
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
108
|
+
children
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
NavigationBrand.displayName = "NavigationBrand";
|
|
114
|
+
const NavigationBack = React.forwardRef(
|
|
115
|
+
({ className, show, asChild, children, ...props }, ref) => {
|
|
116
|
+
const { light } = useNavigation();
|
|
117
|
+
const linkClassName = cn(
|
|
118
|
+
buttonVariants({ size: "icon" }),
|
|
119
|
+
"navigation-back",
|
|
120
|
+
light ? "navigation-back--light" : "navigation-back--dark",
|
|
121
|
+
className
|
|
122
|
+
);
|
|
123
|
+
const defaultIcon = /* @__PURE__ */ jsx(
|
|
124
|
+
UtilityClearRegular,
|
|
125
|
+
{
|
|
126
|
+
className: light ? "navigation-back__icon--light" : "navigation-back__icon--dark"
|
|
127
|
+
}
|
|
128
|
+
);
|
|
129
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", children: show && /* @__PURE__ */ jsx(
|
|
130
|
+
motion.div,
|
|
131
|
+
{
|
|
132
|
+
layout: true,
|
|
133
|
+
initial: { opacity: 0, scale: 0.8 },
|
|
134
|
+
animate: { opacity: 1, scale: 1 },
|
|
135
|
+
exit: { opacity: 0, scale: 0.8 },
|
|
136
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
137
|
+
style: { willChange: "transform, opacity" },
|
|
138
|
+
children: asChild && React.isValidElement(children) ? (() => {
|
|
139
|
+
const childElement = children;
|
|
140
|
+
const hasChildContent = childElement.props.children != null;
|
|
141
|
+
return /* @__PURE__ */ jsx(
|
|
142
|
+
Slot,
|
|
143
|
+
{
|
|
144
|
+
ref,
|
|
145
|
+
className: linkClassName,
|
|
146
|
+
"aria-label": "Back",
|
|
147
|
+
...props,
|
|
148
|
+
children: hasChildContent ? children : React.cloneElement(childElement, {}, defaultIcon)
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
})() : /* @__PURE__ */ jsx(
|
|
152
|
+
"a",
|
|
153
|
+
{
|
|
154
|
+
ref,
|
|
155
|
+
className: linkClassName,
|
|
156
|
+
"aria-label": "Back",
|
|
157
|
+
href: "/",
|
|
158
|
+
...props,
|
|
159
|
+
children: children || defaultIcon
|
|
160
|
+
}
|
|
161
|
+
)
|
|
162
|
+
}
|
|
163
|
+
) });
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
NavigationBack.displayName = "NavigationBack";
|
|
167
|
+
const NavigationLogo = React.forwardRef(
|
|
168
|
+
({ className, asChild, children, ...props }, ref) => {
|
|
169
|
+
const { light } = useNavigation();
|
|
170
|
+
const defaultLogo = /* @__PURE__ */ jsx(NavLogo, { dark: light });
|
|
171
|
+
const linkClassName = cn("navigation-logo", className);
|
|
172
|
+
if (asChild && React.isValidElement(children)) {
|
|
173
|
+
const childElement = children;
|
|
174
|
+
const hasChildContent = childElement.props.children != null;
|
|
175
|
+
return /* @__PURE__ */ jsx(
|
|
176
|
+
motion.div,
|
|
177
|
+
{
|
|
178
|
+
layout: true,
|
|
179
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
180
|
+
style: { willChange: "transform" },
|
|
181
|
+
children: /* @__PURE__ */ jsx(
|
|
182
|
+
Slot,
|
|
183
|
+
{
|
|
184
|
+
ref,
|
|
185
|
+
className: linkClassName,
|
|
186
|
+
"aria-label": "Home",
|
|
187
|
+
...props,
|
|
188
|
+
children: hasChildContent ? children : React.cloneElement(childElement, {}, defaultLogo)
|
|
189
|
+
}
|
|
190
|
+
)
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
return /* @__PURE__ */ jsx(
|
|
195
|
+
motion.div,
|
|
196
|
+
{
|
|
197
|
+
layout: true,
|
|
198
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
199
|
+
style: { willChange: "transform" },
|
|
200
|
+
children: /* @__PURE__ */ jsxs(
|
|
201
|
+
"a",
|
|
202
|
+
{
|
|
203
|
+
ref,
|
|
204
|
+
className: linkClassName,
|
|
205
|
+
"aria-label": "Home",
|
|
206
|
+
href: "/",
|
|
207
|
+
...props,
|
|
208
|
+
children: [
|
|
209
|
+
defaultLogo,
|
|
210
|
+
children
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
)
|
|
214
|
+
}
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
NavigationLogo.displayName = "NavigationLogo";
|
|
219
|
+
const NavigationMenu = React.forwardRef(
|
|
220
|
+
({ className, children, ...props }, ref) => {
|
|
221
|
+
const { registerTrays } = useNavigation();
|
|
222
|
+
React.useEffect(() => {
|
|
223
|
+
const trayElements = React.Children.toArray(children).filter(
|
|
224
|
+
(child) => React.isValidElement(child) && child.type === NavigationTray
|
|
225
|
+
).map((child, index) => {
|
|
226
|
+
if (React.isValidElement(child)) {
|
|
227
|
+
return React.cloneElement(
|
|
228
|
+
child,
|
|
229
|
+
{
|
|
230
|
+
_index: index + 1,
|
|
231
|
+
_renderTriggerOnly: false
|
|
232
|
+
}
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
return child;
|
|
236
|
+
});
|
|
237
|
+
registerTrays(trayElements);
|
|
238
|
+
}, [children, registerTrays]);
|
|
239
|
+
return /* @__PURE__ */ jsx("div", { ref, className: cn("navigation-menu", className), ...props, children: /* @__PURE__ */ jsx("ul", { className: "navigation-menu__list", children: React.Children.map(children, (child, index) => {
|
|
240
|
+
if (React.isValidElement(child) && child.type === NavigationTray) {
|
|
241
|
+
return React.cloneElement(
|
|
242
|
+
child,
|
|
243
|
+
{
|
|
244
|
+
_index: index + 1,
|
|
245
|
+
_renderTriggerOnly: true
|
|
246
|
+
}
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
return child;
|
|
250
|
+
}) }) });
|
|
251
|
+
}
|
|
252
|
+
);
|
|
253
|
+
NavigationMenu.displayName = "NavigationMenu";
|
|
254
|
+
const NavigationTray = React.forwardRef(
|
|
255
|
+
({
|
|
256
|
+
className,
|
|
257
|
+
trigger,
|
|
258
|
+
title,
|
|
259
|
+
children,
|
|
260
|
+
_index,
|
|
261
|
+
_renderTriggerOnly,
|
|
262
|
+
...props
|
|
263
|
+
}, ref) => {
|
|
264
|
+
const { light, activeIndex, setActiveIndex, setIsOpen, isOpen, cancelClose } = useNavigation();
|
|
265
|
+
const isActive = activeIndex === _index;
|
|
266
|
+
const handleMouseEnter = () => {
|
|
267
|
+
cancelClose();
|
|
268
|
+
setIsOpen(true);
|
|
269
|
+
setActiveIndex(_index ?? null);
|
|
270
|
+
};
|
|
271
|
+
if (_renderTriggerOnly) {
|
|
272
|
+
return /* @__PURE__ */ jsxs("li", { className: "navigation-tray-trigger", onMouseEnter: handleMouseEnter, children: [
|
|
273
|
+
/* @__PURE__ */ jsx(
|
|
274
|
+
"span",
|
|
275
|
+
{
|
|
276
|
+
className: cn(
|
|
277
|
+
"body-small navigation-tray-trigger__text",
|
|
278
|
+
light ? "navigation-tray-trigger__text--light" : "navigation-tray-trigger__text--dark"
|
|
279
|
+
),
|
|
280
|
+
children: trigger
|
|
281
|
+
}
|
|
282
|
+
),
|
|
283
|
+
isActive && /* @__PURE__ */ jsx(
|
|
284
|
+
motion.div,
|
|
285
|
+
{
|
|
286
|
+
className: "navigation-tray-trigger__indicator",
|
|
287
|
+
layoutId: "nav-underline",
|
|
288
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
289
|
+
children: /* @__PURE__ */ jsx("div", { className: "navigation-tray-trigger__indicator-shape" })
|
|
290
|
+
}
|
|
291
|
+
),
|
|
292
|
+
_index === 1 && !light && /* @__PURE__ */ jsx("div", { className: "navigation-tray-trigger__static-indicator", children: /* @__PURE__ */ jsx("div", { className: "navigation-tray-trigger__static-indicator-shape" }) })
|
|
293
|
+
] });
|
|
294
|
+
}
|
|
295
|
+
return /* @__PURE__ */ jsxs(
|
|
296
|
+
"div",
|
|
297
|
+
{
|
|
298
|
+
ref,
|
|
299
|
+
className: cn("navigation-tray", className),
|
|
300
|
+
...props,
|
|
301
|
+
"data-open": isOpen,
|
|
302
|
+
children: [
|
|
303
|
+
/* @__PURE__ */ jsx(
|
|
304
|
+
"h2",
|
|
305
|
+
{
|
|
306
|
+
className: "heading-xsmall navigation-tray__title",
|
|
307
|
+
style: {
|
|
308
|
+
background: "linear-gradient(90deg, #41D5F6 0%, #3EECD1 25%, #66FCD9 50%, #66FCD9 75%, #3EECD1 100%)",
|
|
309
|
+
WebkitBackgroundClip: "text",
|
|
310
|
+
WebkitTextFillColor: "transparent",
|
|
311
|
+
backgroundClip: "text"
|
|
312
|
+
},
|
|
313
|
+
children: title
|
|
314
|
+
}
|
|
315
|
+
),
|
|
316
|
+
/* @__PURE__ */ jsx("div", { className: "navigation-tray__content", children })
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
);
|
|
322
|
+
NavigationTray.displayName = "NavigationTray";
|
|
323
|
+
const NavigationColumn = React.forwardRef(({ className, title, children, ...props }, ref) => {
|
|
324
|
+
const { light } = useNavigation();
|
|
325
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: cn("navigation-column", className), ...props, children: [
|
|
326
|
+
/* @__PURE__ */ jsx(
|
|
327
|
+
"h3",
|
|
328
|
+
{
|
|
329
|
+
className: cn(
|
|
330
|
+
"overline-medium navigation-column__title",
|
|
331
|
+
light ? "navigation-column__title--light" : "navigation-column__title--dark"
|
|
332
|
+
),
|
|
333
|
+
children: title
|
|
334
|
+
}
|
|
335
|
+
),
|
|
336
|
+
/* @__PURE__ */ jsx("ul", { className: "navigation-column__list", children })
|
|
337
|
+
] });
|
|
338
|
+
});
|
|
339
|
+
NavigationColumn.displayName = "NavigationColumn";
|
|
340
|
+
const NavigationLink = React.forwardRef(
|
|
341
|
+
({ className, asChild, sub, bullet, badge, children, onClick, ...props }, ref) => {
|
|
342
|
+
const { light } = useNavigation();
|
|
343
|
+
const Comp = asChild ? Slot : "a";
|
|
344
|
+
const handleClick = (e) => {
|
|
345
|
+
e.stopPropagation();
|
|
346
|
+
onClick == null ? void 0 : onClick(e);
|
|
347
|
+
};
|
|
348
|
+
const isSubItem = sub || bullet;
|
|
349
|
+
const baseClassName = isSubItem ? cn(
|
|
350
|
+
"body-small navigation-link--sub",
|
|
351
|
+
light ? "navigation-link--sub-light" : "navigation-link--sub-dark"
|
|
352
|
+
) : cn(
|
|
353
|
+
"body-base navigation-link",
|
|
354
|
+
light ? "navigation-link--light" : "navigation-link--dark"
|
|
355
|
+
);
|
|
356
|
+
if (isSubItem) {
|
|
357
|
+
const bulletElement = bullet ? /* @__PURE__ */ jsx(NavBullet, { color: bullet }) : /* @__PURE__ */ jsx("div", { className: "navigation-link__bullet" });
|
|
358
|
+
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-link__container", children: [
|
|
359
|
+
bulletElement,
|
|
360
|
+
/* @__PURE__ */ jsx(
|
|
361
|
+
Comp,
|
|
362
|
+
{
|
|
363
|
+
ref,
|
|
364
|
+
className: cn(baseClassName, className),
|
|
365
|
+
onClick: handleClick,
|
|
366
|
+
...props,
|
|
367
|
+
children
|
|
368
|
+
}
|
|
369
|
+
)
|
|
370
|
+
] }) });
|
|
371
|
+
}
|
|
372
|
+
const linkClassName = cn(
|
|
373
|
+
baseClassName,
|
|
374
|
+
badge && "navigation-link__badge-wrapper",
|
|
375
|
+
className
|
|
376
|
+
);
|
|
377
|
+
if (badge) {
|
|
378
|
+
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("span", { className: "navigation-link__badge-wrapper", children: [
|
|
379
|
+
/* @__PURE__ */ jsx(
|
|
380
|
+
Comp,
|
|
381
|
+
{
|
|
382
|
+
ref,
|
|
383
|
+
className: cn(baseClassName, className),
|
|
384
|
+
onClick: handleClick,
|
|
385
|
+
...props,
|
|
386
|
+
children
|
|
387
|
+
}
|
|
388
|
+
),
|
|
389
|
+
/* @__PURE__ */ jsx("span", { className: "overline-small navigation-link__badge", children: badge })
|
|
390
|
+
] }) });
|
|
391
|
+
}
|
|
392
|
+
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
393
|
+
Comp,
|
|
394
|
+
{
|
|
395
|
+
ref,
|
|
396
|
+
className: linkClassName,
|
|
397
|
+
onClick: handleClick,
|
|
398
|
+
...props,
|
|
399
|
+
children
|
|
400
|
+
}
|
|
401
|
+
) });
|
|
402
|
+
}
|
|
403
|
+
);
|
|
404
|
+
NavigationLink.displayName = "NavigationLink";
|
|
405
|
+
const NavigationActions = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
406
|
+
return /* @__PURE__ */ jsx("div", { ref, className: cn("navigation-actions", className), ...props, children });
|
|
407
|
+
});
|
|
408
|
+
NavigationActions.displayName = "NavigationActions";
|
|
409
|
+
const NavigationAccount = React.forwardRef(({ className, asChild, children, ...props }, ref) => {
|
|
410
|
+
const { light } = useNavigation();
|
|
411
|
+
const linkClassName = cn(
|
|
412
|
+
buttonVariants({ size: "icon" }),
|
|
413
|
+
"navigation-account",
|
|
414
|
+
light && "navigation-account--light",
|
|
415
|
+
className
|
|
416
|
+
);
|
|
417
|
+
const defaultIcon = /* @__PURE__ */ jsx(
|
|
418
|
+
NavAccount,
|
|
419
|
+
{
|
|
420
|
+
className: light ? "navigation-account__icon--light" : "navigation-account__icon--dark"
|
|
421
|
+
}
|
|
422
|
+
);
|
|
423
|
+
if (asChild && React.isValidElement(children)) {
|
|
424
|
+
const childElement = children;
|
|
425
|
+
const hasChildContent = childElement.props.children != null;
|
|
426
|
+
return /* @__PURE__ */ jsx(Slot, { ref, className: linkClassName, "aria-label": "Account", ...props, children: hasChildContent ? children : React.cloneElement(childElement, {}, defaultIcon) });
|
|
427
|
+
}
|
|
428
|
+
return /* @__PURE__ */ jsx(
|
|
429
|
+
"a",
|
|
430
|
+
{
|
|
431
|
+
ref,
|
|
432
|
+
className: linkClassName,
|
|
433
|
+
"aria-label": "Account",
|
|
434
|
+
href: "/account",
|
|
435
|
+
...props,
|
|
436
|
+
children: children || defaultIcon
|
|
437
|
+
}
|
|
438
|
+
);
|
|
439
|
+
});
|
|
440
|
+
NavigationAccount.displayName = "NavigationAccount";
|
|
441
|
+
export {
|
|
442
|
+
Navigation,
|
|
443
|
+
NavigationAccount,
|
|
444
|
+
NavigationActions,
|
|
445
|
+
NavigationBack,
|
|
446
|
+
NavigationBrand,
|
|
447
|
+
NavigationColumn,
|
|
448
|
+
NavigationLink,
|
|
449
|
+
NavigationLogo,
|
|
450
|
+
NavigationMenu,
|
|
451
|
+
NavigationTray
|
|
452
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } 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 outlineNodeVariants = cva("tree-node", {
|
|
6
|
+
variants: {
|
|
7
|
+
level: {
|
|
8
|
+
section: "tree-node--section",
|
|
9
|
+
branch: "tree-node--branch",
|
|
10
|
+
leaf: "tree-node--leaf"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: { level: "section" }
|
|
14
|
+
});
|
|
15
|
+
const OutlineNode = React.forwardRef(
|
|
16
|
+
({ className, level, inactive = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
ref,
|
|
20
|
+
"data-inactive": inactive || void 0,
|
|
21
|
+
className: cn(outlineNodeVariants({ level }), className),
|
|
22
|
+
...props
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
OutlineNode.displayName = "OutlineNode";
|
|
27
|
+
const OutlineNodeHead = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("tree-node__head", className), ...props }));
|
|
28
|
+
OutlineNodeHead.displayName = "OutlineNodeHead";
|
|
29
|
+
const OutlineNodeTitle = React.forwardRef(
|
|
30
|
+
({ className, code, children, ...props }, ref) => /* @__PURE__ */ jsxs("div", { ref, className: cn("tree-node__title", className), ...props, children: [
|
|
31
|
+
code != null ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
32
|
+
/* @__PURE__ */ jsx("strong", { className: "tree-node__code", children: code }),
|
|
33
|
+
"· "
|
|
34
|
+
] }) : null,
|
|
35
|
+
children
|
|
36
|
+
] })
|
|
37
|
+
);
|
|
38
|
+
OutlineNodeTitle.displayName = "OutlineNodeTitle";
|
|
39
|
+
const OutlineNodeMeta = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("span", { ref, className: cn("tree-node__meta", className), ...props }));
|
|
40
|
+
OutlineNodeMeta.displayName = "OutlineNodeMeta";
|
|
41
|
+
const OutlineNodeControls = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
ref,
|
|
45
|
+
className: cn("tree-node__controls", className),
|
|
46
|
+
...props
|
|
47
|
+
}
|
|
48
|
+
));
|
|
49
|
+
OutlineNodeControls.displayName = "OutlineNodeControls";
|
|
50
|
+
export {
|
|
51
|
+
OutlineNode,
|
|
52
|
+
OutlineNodeControls,
|
|
53
|
+
OutlineNodeHead,
|
|
54
|
+
OutlineNodeMeta,
|
|
55
|
+
OutlineNodeTitle,
|
|
56
|
+
outlineNodeVariants
|
|
57
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
const PageHeader = React.forwardRef(
|
|
6
|
+
({ children, className, ...props }, ref) => {
|
|
7
|
+
return /* @__PURE__ */ jsx("header", { ref, className: cn("page-header", className), ...props, children });
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
PageHeader.displayName = "PageHeader";
|
|
11
|
+
const PageHeaderTopSection = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
12
|
+
return /* @__PURE__ */ jsx(
|
|
13
|
+
"div",
|
|
14
|
+
{
|
|
15
|
+
ref,
|
|
16
|
+
className: cn("page-header-top-section", className),
|
|
17
|
+
...props,
|
|
18
|
+
children
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
});
|
|
22
|
+
PageHeaderTopSection.displayName = "PageHeaderTopSection";
|
|
23
|
+
const PageHeaderLeftContent = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
24
|
+
return /* @__PURE__ */ jsx(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
ref,
|
|
28
|
+
className: cn("page-header-left-content", className),
|
|
29
|
+
...props,
|
|
30
|
+
children
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
});
|
|
34
|
+
PageHeaderLeftContent.displayName = "PageHeaderLeftContent";
|
|
35
|
+
const PageHeaderBadge = React.forwardRef(
|
|
36
|
+
({ children, animated = false, show = true, className, style, ...props }, ref) => {
|
|
37
|
+
if (animated) {
|
|
38
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { children: show && /* @__PURE__ */ jsx(
|
|
39
|
+
motion.div,
|
|
40
|
+
{
|
|
41
|
+
initial: { opacity: 0, scale: 0.8 },
|
|
42
|
+
animate: { opacity: 1, scale: 1 },
|
|
43
|
+
exit: { opacity: 0, scale: 0.8 },
|
|
44
|
+
transition: { duration: 0.2 },
|
|
45
|
+
className,
|
|
46
|
+
style,
|
|
47
|
+
children
|
|
48
|
+
}
|
|
49
|
+
) });
|
|
50
|
+
}
|
|
51
|
+
if (!show) return null;
|
|
52
|
+
return /* @__PURE__ */ jsx("div", { ref, className, style, ...props, children });
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
PageHeaderBadge.displayName = "PageHeaderBadge";
|
|
56
|
+
const PageHeaderTitle = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
57
|
+
return /* @__PURE__ */ jsx("h1", { ref, className: cn("page-header-title", className), ...props, children });
|
|
58
|
+
});
|
|
59
|
+
PageHeaderTitle.displayName = "PageHeaderTitle";
|
|
60
|
+
const PageHeaderDescription = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
61
|
+
return /* @__PURE__ */ jsx(
|
|
62
|
+
"p",
|
|
63
|
+
{
|
|
64
|
+
ref,
|
|
65
|
+
className: cn("page-header-description", className),
|
|
66
|
+
...props,
|
|
67
|
+
children
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
});
|
|
71
|
+
PageHeaderDescription.displayName = "PageHeaderDescription";
|
|
72
|
+
export {
|
|
73
|
+
PageHeader,
|
|
74
|
+
PageHeaderBadge,
|
|
75
|
+
PageHeaderDescription,
|
|
76
|
+
PageHeaderLeftContent,
|
|
77
|
+
PageHeaderTitle,
|
|
78
|
+
PageHeaderTopSection
|
|
79
|
+
};
|