@syscore/ui-library 2.0.0-beta-publish-workflow-beta.16 → 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 +2 -12
- 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 +354 -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 +156 -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 -18989
- /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,124 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { MoreHorizontal } from "lucide-react";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
const ChevronLeftFilled = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 12 12", fill: "none", "aria-hidden": true, ...props, children: /* @__PURE__ */ jsx(
|
|
6
|
+
"path",
|
|
7
|
+
{
|
|
8
|
+
d: "M7.18279 1.18276C7.42687 0.938681 7.82348 0.938681 8.06755 1.18276C8.31159 1.42684 8.31162 1.82346 8.06755 2.06752L4.50994 5.62514L8.06755 9.18276C8.31159 9.42684 8.31162 9.82346 8.06755 10.0675C7.82349 10.3116 7.42687 10.3116 7.18279 10.0675L3.18279 6.06752C2.93871 5.82345 2.93871 5.42684 3.18279 5.18276L7.18279 1.18276Z",
|
|
9
|
+
fill: "currentColor"
|
|
10
|
+
}
|
|
11
|
+
) });
|
|
12
|
+
const ChevronRightFilled = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 12 12", fill: "none", "aria-hidden": true, ...props, children: /* @__PURE__ */ jsx(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
d: "M4.06774 10.0677C3.8238 10.3116 3.42708 10.3113 3.18297 10.0677C2.9389 9.82361 2.9389 9.427 3.18297 9.18292L6.74059 5.62531L3.18297 2.06769C2.9389 1.82361 2.9389 1.427 3.18297 1.18292C3.42705 0.938845 3.82366 0.938845 4.06774 1.18292L8.06774 5.18292C8.31139 5.42704 8.31167 5.82375 8.06774 6.06769L4.06774 10.0677Z",
|
|
16
|
+
fill: "currentColor"
|
|
17
|
+
}
|
|
18
|
+
) });
|
|
19
|
+
const PaginationV01 = ({
|
|
20
|
+
className,
|
|
21
|
+
children,
|
|
22
|
+
...props
|
|
23
|
+
}) => /* @__PURE__ */ jsx(
|
|
24
|
+
"nav",
|
|
25
|
+
{
|
|
26
|
+
role: "navigation",
|
|
27
|
+
"aria-label": "Pagination",
|
|
28
|
+
className: cn("pagination-v01", className),
|
|
29
|
+
...props,
|
|
30
|
+
children
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
PaginationV01.displayName = "PaginationV01";
|
|
34
|
+
const PaginationV01Previous = React.forwardRef(
|
|
35
|
+
({ className, state = "default", disabled, children = "Previous", ...props }, ref) => {
|
|
36
|
+
const isDisabled = disabled || state === "disabled";
|
|
37
|
+
return /* @__PURE__ */ jsxs(
|
|
38
|
+
"button",
|
|
39
|
+
{
|
|
40
|
+
ref,
|
|
41
|
+
type: "button",
|
|
42
|
+
"data-state": state,
|
|
43
|
+
disabled: isDisabled,
|
|
44
|
+
"aria-label": "Go to previous page",
|
|
45
|
+
className: cn("pagination-v01-control font-mazzardSoft", className),
|
|
46
|
+
...props,
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ jsx(ChevronLeftFilled, { className: "pagination-v01-icon" }),
|
|
49
|
+
/* @__PURE__ */ jsx("span", { className: "pagination-v01-label body-small", children })
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
PaginationV01Previous.displayName = "PaginationV01Previous";
|
|
56
|
+
const PaginationV01Next = React.forwardRef(
|
|
57
|
+
({ className, state = "default", disabled, children = "Next", ...props }, ref) => {
|
|
58
|
+
const isDisabled = disabled || state === "disabled";
|
|
59
|
+
return /* @__PURE__ */ jsxs(
|
|
60
|
+
"button",
|
|
61
|
+
{
|
|
62
|
+
ref,
|
|
63
|
+
type: "button",
|
|
64
|
+
"data-state": state,
|
|
65
|
+
disabled: isDisabled,
|
|
66
|
+
"aria-label": "Go to next page",
|
|
67
|
+
className: cn("pagination-v01-control font-mazzardSoft", className),
|
|
68
|
+
...props,
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ jsx("span", { className: "pagination-v01-label body-small", children }),
|
|
71
|
+
/* @__PURE__ */ jsx(ChevronRightFilled, { className: "pagination-v01-icon" })
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
PaginationV01Next.displayName = "PaginationV01Next";
|
|
78
|
+
const PaginationV01Page = React.forwardRef(
|
|
79
|
+
({ className, state = "default", current, disabled, children, ...props }, ref) => {
|
|
80
|
+
const resolved = current ? "active" : state;
|
|
81
|
+
const isDisabled = disabled || resolved === "disabled";
|
|
82
|
+
const isCurrent = resolved === "active";
|
|
83
|
+
return /* @__PURE__ */ jsx(
|
|
84
|
+
"button",
|
|
85
|
+
{
|
|
86
|
+
ref,
|
|
87
|
+
type: "button",
|
|
88
|
+
"data-state": resolved,
|
|
89
|
+
disabled: isDisabled,
|
|
90
|
+
"aria-current": isCurrent ? "page" : void 0,
|
|
91
|
+
"aria-label": typeof children === "string" ? `Page ${children}` : "Page",
|
|
92
|
+
className: cn("pagination-v01-page", className),
|
|
93
|
+
...props,
|
|
94
|
+
children
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
PaginationV01Page.displayName = "PaginationV01Page";
|
|
100
|
+
const PaginationV01Ellipsis = ({
|
|
101
|
+
className,
|
|
102
|
+
state = "default",
|
|
103
|
+
...props
|
|
104
|
+
}) => /* @__PURE__ */ jsxs(
|
|
105
|
+
"span",
|
|
106
|
+
{
|
|
107
|
+
"aria-hidden": true,
|
|
108
|
+
"data-state": state,
|
|
109
|
+
className: cn("pagination-v01-ellipsis", className),
|
|
110
|
+
...props,
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ jsx(MoreHorizontal, { className: "pagination-v01-icon", strokeWidth: 4 }),
|
|
113
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
PaginationV01Ellipsis.displayName = "PaginationV01Ellipsis";
|
|
118
|
+
export {
|
|
119
|
+
PaginationV01,
|
|
120
|
+
PaginationV01Ellipsis,
|
|
121
|
+
PaginationV01Next,
|
|
122
|
+
PaginationV01Page,
|
|
123
|
+
PaginationV01Previous
|
|
124
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { MoreHorizontal, ChevronRight, ChevronLeft } from "lucide-react";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
import { buttonVariants } from "./button.js";
|
|
6
|
+
const Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
7
|
+
"nav",
|
|
8
|
+
{
|
|
9
|
+
role: "navigation",
|
|
10
|
+
"aria-label": "pagination",
|
|
11
|
+
className: cn("pagination", className),
|
|
12
|
+
...props
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
Pagination.displayName = "Pagination";
|
|
16
|
+
const PaginationContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
17
|
+
"ul",
|
|
18
|
+
{
|
|
19
|
+
ref,
|
|
20
|
+
className: cn("pagination-content", className),
|
|
21
|
+
...props
|
|
22
|
+
}
|
|
23
|
+
));
|
|
24
|
+
PaginationContent.displayName = "PaginationContent";
|
|
25
|
+
const PaginationItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("", className), ...props }));
|
|
26
|
+
PaginationItem.displayName = "PaginationItem";
|
|
27
|
+
const PaginationLink = ({
|
|
28
|
+
className,
|
|
29
|
+
isActive,
|
|
30
|
+
size = "icon",
|
|
31
|
+
...props
|
|
32
|
+
}) => /* @__PURE__ */ jsx(
|
|
33
|
+
"a",
|
|
34
|
+
{
|
|
35
|
+
"aria-current": isActive ? "page" : void 0,
|
|
36
|
+
className: cn(
|
|
37
|
+
buttonVariants({
|
|
38
|
+
variant: isActive ? "general-secondary" : "general-tertiary",
|
|
39
|
+
size
|
|
40
|
+
}),
|
|
41
|
+
className
|
|
42
|
+
),
|
|
43
|
+
...props
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
PaginationLink.displayName = "PaginationLink";
|
|
47
|
+
const PaginationPrevious = ({
|
|
48
|
+
className,
|
|
49
|
+
...props
|
|
50
|
+
}) => /* @__PURE__ */ jsxs(
|
|
51
|
+
PaginationLink,
|
|
52
|
+
{
|
|
53
|
+
"aria-label": "Go to previous page",
|
|
54
|
+
size: "utility",
|
|
55
|
+
className: cn("pagination-previous", className),
|
|
56
|
+
...props,
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ jsx(ChevronLeft, { className: "icon-4" }),
|
|
59
|
+
/* @__PURE__ */ jsx("span", { children: "Previous" })
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
PaginationPrevious.displayName = "PaginationPrevious";
|
|
64
|
+
const PaginationNext = ({
|
|
65
|
+
className,
|
|
66
|
+
...props
|
|
67
|
+
}) => /* @__PURE__ */ jsxs(
|
|
68
|
+
PaginationLink,
|
|
69
|
+
{
|
|
70
|
+
"aria-label": "Go to next page",
|
|
71
|
+
size: "utility",
|
|
72
|
+
className: cn("pagination-next", className),
|
|
73
|
+
...props,
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ jsx("span", { children: "Next" }),
|
|
76
|
+
/* @__PURE__ */ jsx(ChevronRight, { className: "icon-4" })
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
PaginationNext.displayName = "PaginationNext";
|
|
81
|
+
const PaginationEllipsis = ({
|
|
82
|
+
className,
|
|
83
|
+
...props
|
|
84
|
+
}) => /* @__PURE__ */ jsxs(
|
|
85
|
+
"span",
|
|
86
|
+
{
|
|
87
|
+
"aria-hidden": true,
|
|
88
|
+
className: cn("pagination-ellipsis", className),
|
|
89
|
+
...props,
|
|
90
|
+
children: [
|
|
91
|
+
/* @__PURE__ */ jsx(MoreHorizontal, { className: "icon-4" }),
|
|
92
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
97
|
+
export {
|
|
98
|
+
Pagination,
|
|
99
|
+
PaginationContent,
|
|
100
|
+
PaginationEllipsis,
|
|
101
|
+
PaginationItem,
|
|
102
|
+
PaginationLink,
|
|
103
|
+
PaginationNext,
|
|
104
|
+
PaginationPrevious
|
|
105
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Eye, EyeOff } from "lucide-react";
|
|
4
|
+
import { TextFieldV01 } from "./text-field-v01.js";
|
|
5
|
+
const PasswordFieldV01 = React.forwardRef(
|
|
6
|
+
({
|
|
7
|
+
visible: controlledVisible,
|
|
8
|
+
defaultVisible = false,
|
|
9
|
+
onVisibleChange,
|
|
10
|
+
disabled,
|
|
11
|
+
...props
|
|
12
|
+
}, ref) => {
|
|
13
|
+
const isControlled = controlledVisible !== void 0;
|
|
14
|
+
const [internal, setInternal] = React.useState(defaultVisible);
|
|
15
|
+
const visible = isControlled ? controlledVisible : internal;
|
|
16
|
+
const toggle = () => {
|
|
17
|
+
if (!isControlled) setInternal(!visible);
|
|
18
|
+
onVisibleChange == null ? void 0 : onVisibleChange(!visible);
|
|
19
|
+
};
|
|
20
|
+
return /* @__PURE__ */ jsx(
|
|
21
|
+
TextFieldV01,
|
|
22
|
+
{
|
|
23
|
+
ref,
|
|
24
|
+
type: visible ? "text" : "password",
|
|
25
|
+
disabled,
|
|
26
|
+
action: /* @__PURE__ */ jsx(
|
|
27
|
+
"button",
|
|
28
|
+
{
|
|
29
|
+
type: "button",
|
|
30
|
+
className: "text-field-v01-action",
|
|
31
|
+
onClick: toggle,
|
|
32
|
+
disabled,
|
|
33
|
+
"aria-label": visible ? "Hide password" : "Show password",
|
|
34
|
+
"aria-pressed": visible,
|
|
35
|
+
children: visible ? /* @__PURE__ */ jsx(Eye, { size: 16, strokeWidth: 1.5, "aria-hidden": true }) : /* @__PURE__ */ jsx(EyeOff, { size: 16, strokeWidth: 1.5, "aria-hidden": true })
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
...props
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
PasswordFieldV01.displayName = "PasswordFieldV01";
|
|
44
|
+
export {
|
|
45
|
+
PasswordFieldV01
|
|
46
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
const PillButton = React.forwardRef(
|
|
5
|
+
({
|
|
6
|
+
tone = "gradient",
|
|
7
|
+
fill = false,
|
|
8
|
+
angle = 142.25319251189774,
|
|
9
|
+
children,
|
|
10
|
+
className,
|
|
11
|
+
type = "button",
|
|
12
|
+
style,
|
|
13
|
+
...props
|
|
14
|
+
}, ref) => /* @__PURE__ */ jsx(
|
|
15
|
+
"button",
|
|
16
|
+
{
|
|
17
|
+
ref,
|
|
18
|
+
type,
|
|
19
|
+
className: cn(
|
|
20
|
+
"pill-button",
|
|
21
|
+
`pill-button--${tone}`,
|
|
22
|
+
fill && "pill-button--fill",
|
|
23
|
+
className
|
|
24
|
+
),
|
|
25
|
+
style: tone === "gradient" ? { ["--pill-gradient-angle"]: `${angle}deg`, ...style } : style,
|
|
26
|
+
...props,
|
|
27
|
+
children: /* @__PURE__ */ jsx("span", { className: "pill-button__label", children })
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
PillButton.displayName = "PillButton";
|
|
32
|
+
export {
|
|
33
|
+
PillButton
|
|
34
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
const Popover = PopoverPrimitive.Root;
|
|
6
|
+
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
7
|
+
const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
8
|
+
PopoverPrimitive.Content,
|
|
9
|
+
{
|
|
10
|
+
ref,
|
|
11
|
+
align,
|
|
12
|
+
sideOffset,
|
|
13
|
+
className: cn("popover-content", className),
|
|
14
|
+
...props
|
|
15
|
+
}
|
|
16
|
+
) }));
|
|
17
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
18
|
+
export {
|
|
19
|
+
Popover,
|
|
20
|
+
PopoverContent,
|
|
21
|
+
PopoverTrigger
|
|
22
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
const PriceTag = React.forwardRef(
|
|
5
|
+
({ amount, currency = "$", tone = "brand" }, ref) => /* @__PURE__ */ jsxs(
|
|
6
|
+
"span",
|
|
7
|
+
{
|
|
8
|
+
ref,
|
|
9
|
+
className: cn("price-tag", tone === "neutral" && "price-tag--neutral"),
|
|
10
|
+
children: [
|
|
11
|
+
currency,
|
|
12
|
+
amount
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
PriceTag.displayName = "PriceTag";
|
|
18
|
+
export {
|
|
19
|
+
PriceTag
|
|
20
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
const ProfileAvatar = React.forwardRef(
|
|
5
|
+
({
|
|
6
|
+
src,
|
|
7
|
+
initials,
|
|
8
|
+
alt,
|
|
9
|
+
size = 88,
|
|
10
|
+
onEdit,
|
|
11
|
+
editLabel = "Change profile image",
|
|
12
|
+
editIcon,
|
|
13
|
+
className,
|
|
14
|
+
...props
|
|
15
|
+
}, ref) => /* @__PURE__ */ jsxs(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
ref,
|
|
19
|
+
className: cn(
|
|
20
|
+
"profile-avatar",
|
|
21
|
+
// The disc is pulled up 28px to sit behind the edit badge. Without a
|
|
22
|
+
// badge that offset would just eat the gap to whatever follows.
|
|
23
|
+
onEdit && "profile-avatar--editable",
|
|
24
|
+
className
|
|
25
|
+
),
|
|
26
|
+
style: {
|
|
27
|
+
["--avatar-size"]: `${size}px`,
|
|
28
|
+
// 2.8px ring on the 88px disc; the 32px instance is the same
|
|
29
|
+
// component scaled, so the stroke scales with it.
|
|
30
|
+
["--avatar-ring"]: `${size * 2.8 / 88}px`,
|
|
31
|
+
["--avatar-initials"]: `${size * 38.5 / 88}px`,
|
|
32
|
+
...props.style
|
|
33
|
+
},
|
|
34
|
+
...props,
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ jsxs("span", { className: "profile-avatar__disc", children: [
|
|
37
|
+
src ? /* @__PURE__ */ jsx("img", { className: "profile-avatar__photo", src, alt: alt ?? "" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
38
|
+
/* @__PURE__ */ jsx("span", { className: "profile-avatar__bg", "aria-hidden": "true" }),
|
|
39
|
+
/* @__PURE__ */ jsx("span", { className: "profile-avatar__initials", "aria-hidden": "true", children: initials })
|
|
40
|
+
] }),
|
|
41
|
+
/* @__PURE__ */ jsx("span", { className: "profile-avatar__ring", "aria-hidden": "true" })
|
|
42
|
+
] }),
|
|
43
|
+
onEdit ? /* @__PURE__ */ jsx(
|
|
44
|
+
"button",
|
|
45
|
+
{
|
|
46
|
+
type: "button",
|
|
47
|
+
className: "profile-avatar__edit",
|
|
48
|
+
onClick: onEdit,
|
|
49
|
+
"aria-label": editLabel,
|
|
50
|
+
children: editIcon
|
|
51
|
+
}
|
|
52
|
+
) : null
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
);
|
|
57
|
+
ProfileAvatar.displayName = "ProfileAvatar";
|
|
58
|
+
const ProfileRow = React.forwardRef(
|
|
59
|
+
({ name, tone = "value", children, className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { ref, className: cn("profile-row", className), ...props, children: [
|
|
60
|
+
children,
|
|
61
|
+
/* @__PURE__ */ jsx("span", { className: "profile-row__name", children: /* @__PURE__ */ jsx(
|
|
62
|
+
"span",
|
|
63
|
+
{
|
|
64
|
+
className: cn(
|
|
65
|
+
"profile-row__name-text heading-xxsmall",
|
|
66
|
+
`profile-row__name-text--${tone}`
|
|
67
|
+
),
|
|
68
|
+
children: name
|
|
69
|
+
}
|
|
70
|
+
) })
|
|
71
|
+
] })
|
|
72
|
+
);
|
|
73
|
+
ProfileRow.displayName = "ProfileRow";
|
|
74
|
+
const AvatarButton = React.forwardRef(
|
|
75
|
+
({ src, initials, label = "Your account", size = 32, className, type = "button", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
76
|
+
"button",
|
|
77
|
+
{
|
|
78
|
+
ref,
|
|
79
|
+
type,
|
|
80
|
+
className: cn("avatar-button", className),
|
|
81
|
+
"aria-label": label,
|
|
82
|
+
...props,
|
|
83
|
+
children: /* @__PURE__ */ jsx(ProfileAvatar, { src, initials, size, alt: "" })
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
);
|
|
87
|
+
AvatarButton.displayName = "AvatarButton";
|
|
88
|
+
export {
|
|
89
|
+
AvatarButton,
|
|
90
|
+
ProfileAvatar,
|
|
91
|
+
ProfileRow
|
|
92
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
const Progress = React.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6
|
+
ProgressPrimitive.Root,
|
|
7
|
+
{
|
|
8
|
+
ref,
|
|
9
|
+
className: cn("progress", className),
|
|
10
|
+
...props,
|
|
11
|
+
children: /* @__PURE__ */ jsx(
|
|
12
|
+
ProgressPrimitive.Indicator,
|
|
13
|
+
{
|
|
14
|
+
className: "progress-indicator",
|
|
15
|
+
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
}
|
|
19
|
+
));
|
|
20
|
+
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
21
|
+
export {
|
|
22
|
+
Progress
|
|
23
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
const RadioCardGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6
|
+
RadioGroupPrimitive.Root,
|
|
7
|
+
{
|
|
8
|
+
ref,
|
|
9
|
+
className: cn("radio-card-group", className),
|
|
10
|
+
...props
|
|
11
|
+
}
|
|
12
|
+
));
|
|
13
|
+
RadioCardGroup.displayName = "RadioCardGroup";
|
|
14
|
+
const RadioCardItem = React.forwardRef(({ className, title, description, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
15
|
+
RadioGroupPrimitive.Item,
|
|
16
|
+
{
|
|
17
|
+
ref,
|
|
18
|
+
className: cn("radio-card", className),
|
|
19
|
+
...props,
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ jsx("span", { className: "radio-card__title", children: title }),
|
|
22
|
+
description ? /* @__PURE__ */ jsx("span", { className: "radio-card__description", children: description }) : null
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
));
|
|
26
|
+
RadioCardItem.displayName = "RadioCardItem";
|
|
27
|
+
export {
|
|
28
|
+
RadioCardGroup,
|
|
29
|
+
RadioCardItem
|
|
30
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
4
|
+
import { Circle } from "lucide-react";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
const RadioGroup = React.forwardRef(({ className, ...props }, ref) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
RadioGroupPrimitive.Root,
|
|
9
|
+
{
|
|
10
|
+
className: cn("radio-group", className),
|
|
11
|
+
...props,
|
|
12
|
+
ref
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
});
|
|
16
|
+
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
17
|
+
const RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => {
|
|
18
|
+
return /* @__PURE__ */ jsx(
|
|
19
|
+
RadioGroupPrimitive.Item,
|
|
20
|
+
{
|
|
21
|
+
ref,
|
|
22
|
+
className: cn("radio-group-item", className),
|
|
23
|
+
...props,
|
|
24
|
+
children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: "radio-group-indicator", children: /* @__PURE__ */ jsx(Circle, { className: "icon-2-5 fill-current text-current" }) })
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
});
|
|
28
|
+
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
29
|
+
export {
|
|
30
|
+
RadioGroup,
|
|
31
|
+
RadioGroupItem
|
|
32
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
const RadioV01 = React.forwardRef(
|
|
5
|
+
({
|
|
6
|
+
className,
|
|
7
|
+
containerClassName,
|
|
8
|
+
state,
|
|
9
|
+
error = false,
|
|
10
|
+
label,
|
|
11
|
+
disabled,
|
|
12
|
+
onFocus,
|
|
13
|
+
onBlur,
|
|
14
|
+
id,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) => {
|
|
17
|
+
const [focused, setFocused] = React.useState(false);
|
|
18
|
+
const generated = React.useId();
|
|
19
|
+
const inputId = id ?? generated;
|
|
20
|
+
const resolved = state ?? (disabled ? "disabled" : error ? focused ? "error-focus" : "error" : focused ? "focus" : "default");
|
|
21
|
+
return /* @__PURE__ */ jsxs(
|
|
22
|
+
"label",
|
|
23
|
+
{
|
|
24
|
+
htmlFor: inputId,
|
|
25
|
+
"data-state": resolved,
|
|
26
|
+
className: cn("radio-v01 font-mazzardSoft", containerClassName),
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ jsx(
|
|
29
|
+
"input",
|
|
30
|
+
{
|
|
31
|
+
ref,
|
|
32
|
+
id: inputId,
|
|
33
|
+
type: "radio",
|
|
34
|
+
className: cn("radio-v01-input", className),
|
|
35
|
+
disabled: disabled || resolved === "disabled",
|
|
36
|
+
"aria-invalid": error || void 0,
|
|
37
|
+
onFocus: (event) => {
|
|
38
|
+
setFocused(true);
|
|
39
|
+
onFocus == null ? void 0 : onFocus(event);
|
|
40
|
+
},
|
|
41
|
+
onBlur: (event) => {
|
|
42
|
+
setFocused(false);
|
|
43
|
+
onBlur == null ? void 0 : onBlur(event);
|
|
44
|
+
},
|
|
45
|
+
...props
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ jsx("span", { className: "radio-v01-control", "aria-hidden": "true", children: /* @__PURE__ */ jsx("span", { className: "radio-v01-dot" }) }),
|
|
49
|
+
label != null && label !== "" ? /* @__PURE__ */ jsx("span", { className: "radio-v01-label", children: label }) : null
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
RadioV01.displayName = "RadioV01";
|
|
56
|
+
export {
|
|
57
|
+
RadioV01
|
|
58
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { GripVertical } from "lucide-react";
|
|
3
|
+
import * as ResizablePrimitive from "react-resizable-panels";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
const ResizablePanelGroup = ({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}) => /* @__PURE__ */ jsx(
|
|
9
|
+
ResizablePrimitive.PanelGroup,
|
|
10
|
+
{
|
|
11
|
+
className: cn("resizable-panel-group", className),
|
|
12
|
+
...props
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
const ResizablePanel = ResizablePrimitive.Panel;
|
|
16
|
+
const ResizableHandle = ({
|
|
17
|
+
withHandle,
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
|
+
}) => /* @__PURE__ */ jsx(
|
|
21
|
+
ResizablePrimitive.PanelResizeHandle,
|
|
22
|
+
{
|
|
23
|
+
className: cn("resizable-handle", className),
|
|
24
|
+
...props,
|
|
25
|
+
children: withHandle && /* @__PURE__ */ jsx("div", { className: "resizable-handle-grip", children: /* @__PURE__ */ jsx(GripVertical, { className: "icon-2-5" }) })
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
export {
|
|
29
|
+
ResizableHandle,
|
|
30
|
+
ResizablePanel,
|
|
31
|
+
ResizablePanelGroup
|
|
32
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
function ResourceThumbnail({
|
|
4
|
+
src,
|
|
5
|
+
alt = "",
|
|
6
|
+
size = "default"
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
"img",
|
|
10
|
+
{
|
|
11
|
+
className: cn(
|
|
12
|
+
"resource-thumbnail",
|
|
13
|
+
size === "preview" && "resource-thumbnail--preview",
|
|
14
|
+
size === "thumb" && "resource-thumbnail--thumb"
|
|
15
|
+
),
|
|
16
|
+
src,
|
|
17
|
+
alt,
|
|
18
|
+
loading: "lazy"
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
ResourceThumbnail
|
|
24
|
+
};
|