shadcn-glass-ui 1.0.11 → 2.0.0
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/CHANGELOG.md +213 -0
- package/README.md +174 -17
- package/context7.json +58 -0
- package/dist/cli/index.cjs +470 -0
- package/dist/cli/index.cjs.map +1 -0
- package/dist/cli/index.d.ts +18 -0
- package/dist/cli/index.js +469 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/components.cjs +4 -4
- package/dist/components.d.ts +153 -22
- package/dist/components.js +2 -2
- package/dist/hooks.cjs +2 -2
- package/dist/index.cjs +872 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -2390
- package/dist/index.js +844 -3
- package/dist/index.js.map +1 -1
- package/dist/r/ai-card-glass.json +5 -12
- package/dist/r/avatar-glass.json +5 -15
- package/dist/r/circular-metric-glass.json +5 -11
- package/dist/r/circular-progress-glass.json +5 -12
- package/dist/r/combobox-glass.json +5 -13
- package/dist/r/flag-alert-glass.json +5 -11
- package/dist/r/flags-section-glass.json +5 -12
- package/dist/r/insight-card-glass.json +17 -0
- package/dist/r/interactive-card.json +5 -12
- package/dist/r/language-bar-glass.json +5 -11
- package/dist/r/metric-card-glass.json +6 -13
- package/dist/r/metrics-grid-glass.json +5 -11
- package/dist/r/modal-glass.json +5 -15
- package/dist/r/progress-glass.json +5 -13
- package/dist/r/registry.json +20 -2
- package/dist/r/segmented-control-glass.json +5 -11
- package/dist/r/sparkline-glass.json +17 -0
- package/dist/r/stepper-glass.json +33 -0
- package/dist/r/tabs-glass.json +4 -9
- package/dist/r/trust-score-card-glass.json +5 -12
- package/dist/r/year-card-glass.json +5 -13
- package/dist/shadcn-glass-ui.css +1 -1
- package/dist/{theme-context-XtasSxRT.cjs → theme-context-CVW50BKW.cjs} +2 -2
- package/dist/{theme-context-XtasSxRT.cjs.map → theme-context-CVW50BKW.cjs.map} +1 -1
- package/dist/themes.cjs +1 -1
- package/dist/trust-score-card-glass-BcZbul0P.js +26895 -0
- package/dist/trust-score-card-glass-BcZbul0P.js.map +1 -0
- package/dist/trust-score-card-glass-r3qM09Jp.cjs +27689 -0
- package/dist/trust-score-card-glass-r3qM09Jp.cjs.map +1 -0
- package/dist/{use-focus-BbpE2qGq.cjs → use-focus-ZE8ozmZE.cjs} +2 -2
- package/dist/{use-focus-BbpE2qGq.cjs.map → use-focus-ZE8ozmZE.cjs.map} +1 -1
- package/dist/{use-wallpaper-tint-CIqtoETa.cjs → use-wallpaper-tint-BuS80tbN.cjs} +2 -2
- package/dist/{use-wallpaper-tint-CIqtoETa.cjs.map → use-wallpaper-tint-BuS80tbN.cjs.map} +1 -1
- package/dist/{utils-CGCOTvxT.js → utils-CcyeqpKQ.js} +1 -1
- package/dist/{utils-CGCOTvxT.js.map → utils-CcyeqpKQ.js.map} +1 -1
- package/dist/{utils-CriE74ig.cjs → utils-DLXayspX.cjs} +2 -2
- package/dist/{utils-CriE74ig.cjs.map → utils-DLXayspX.cjs.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/docs/AI_IMPROVEMENTS_COMPLETE.md +574 -0
- package/docs/AI_USAGE.md +1328 -0
- package/docs/API_PATTERNS_COMPARISON.md +418 -0
- package/docs/BEST_PRACTICES.md +800 -0
- package/docs/COMPLIANCE_CHECKLIST.md +307 -0
- package/docs/COMPLIANCE_TESTING.md +436 -0
- package/docs/COMPONENTS_CATALOG.md +1076 -0
- package/docs/CSS_VARIABLES_AUDIT.md +306 -0
- package/docs/CSS_VARIABLES_REFACTORING_PLAN.md +330 -0
- package/docs/EXPORTS_MAP.json +875 -0
- package/docs/EXPORTS_STRUCTURE.md +729 -0
- package/docs/GETTING_STARTED.md +655 -0
- package/docs/METRIC_CARD_API_REDESIGN.md +354 -0
- package/docs/PRIMITIVE_MAPPING.md +404 -0
- package/docs/PUBLISHING.md +593 -0
- package/docs/REGISTRY_SUMMARY.md +96 -0
- package/docs/REGISTRY_USAGE.md +339 -0
- package/docs/SECURITY.md +117 -0
- package/docs/THEME_CREATION_GUIDE.md +455 -0
- package/docs/TOKEN_ARCHITECTURE.md +365 -0
- package/docs/announcements/v1.0.5-devto.md +363 -0
- package/docs/announcements/v1.0.5-reddit.md +115 -0
- package/docs/announcements/v1.0.5-twitter.md +70 -0
- package/docs/api/README.md +725 -0
- package/docs/api/functions/ThemeProvider.md +21 -0
- package/docs/api/functions/cn.md +27 -0
- package/docs/api/functions/getNextTheme.md +21 -0
- package/docs/api/functions/getThemeConfig.md +21 -0
- package/docs/api/functions/useFocus.md +53 -0
- package/docs/api/functions/useHover.md +47 -0
- package/docs/api/functions/useResponsive.md +31 -0
- package/docs/api/functions/useTheme.md +15 -0
- package/docs/api/functions/useWallpaperTint.md +36 -0
- package/docs/api/globals.md +139 -0
- package/docs/api/interfaces/AlertGlassProps.md +131 -0
- package/docs/api/interfaces/AvatarGlassProps.md +114 -0
- package/docs/api/interfaces/BadgeGlassProps.md +118 -0
- package/docs/api/interfaces/ButtonGlassProps.md +179 -0
- package/docs/api/interfaces/CheckboxGlassProps.md +125 -0
- package/docs/api/interfaces/DropdownGlassProps.md +123 -0
- package/docs/api/interfaces/DropdownItem.md +53 -0
- package/docs/api/interfaces/GlassCardProps.md +151 -0
- package/docs/api/interfaces/InputGlassProps.md +169 -0
- package/docs/api/interfaces/NotificationGlassProps.md +67 -0
- package/docs/api/interfaces/ProgressGlassProps.md +49 -0
- package/docs/api/interfaces/SkeletonGlassProps.md +41 -0
- package/docs/api/interfaces/SliderGlassProps.md +107 -0
- package/docs/api/interfaces/TabItem.md +25 -0
- package/docs/api/interfaces/ThemeConfig.md +25 -0
- package/docs/api/interfaces/ThemeContextValue.md +47 -0
- package/docs/api/interfaces/ToggleGlassProps.md +59 -0
- package/docs/api/interfaces/TooltipGlassProps.md +119 -0
- package/docs/api/type-aliases/AlertType.md +11 -0
- package/docs/api/type-aliases/AlertVariant.md +11 -0
- package/docs/api/type-aliases/AvatarSize.md +11 -0
- package/docs/api/type-aliases/AvatarStatus.md +13 -0
- package/docs/api/type-aliases/BadgeSize.md +11 -0
- package/docs/api/type-aliases/BadgeVariant.md +11 -0
- package/docs/api/type-aliases/ButtonGlassSize.md +11 -0
- package/docs/api/type-aliases/ButtonGlassVariant.md +11 -0
- package/docs/api/type-aliases/DropdownAlign.md +11 -0
- package/docs/api/type-aliases/GlowType.md +11 -0
- package/docs/api/type-aliases/InputGlassSize.md +11 -0
- package/docs/api/type-aliases/IntensityType.md +11 -0
- package/docs/api/type-aliases/ModalSize.md +11 -0
- package/docs/api/type-aliases/NotificationType.md +11 -0
- package/docs/api/type-aliases/PaddingType.md +11 -0
- package/docs/api/type-aliases/ProgressGradient.md +11 -0
- package/docs/api/type-aliases/ProgressSize.md +11 -0
- package/docs/api/type-aliases/SkeletonVariant.md +11 -0
- package/docs/api/type-aliases/Theme.md +11 -0
- package/docs/api/type-aliases/ToggleGlassSize.md +11 -0
- package/docs/api/type-aliases/TooltipPosition.md +11 -0
- package/docs/api/variables/AICardGlass.md +11 -0
- package/docs/api/variables/AlertGlass.md +11 -0
- package/docs/api/variables/AvatarGlass.md +11 -0
- package/docs/api/variables/BadgeGlass.md +11 -0
- package/docs/api/variables/BaseProgressGlass.md +11 -0
- package/docs/api/variables/ButtonGlass.md +11 -0
- package/docs/api/variables/CareerStatsGlass.md +11 -0
- package/docs/api/variables/CareerStatsHeaderGlass.md +11 -0
- package/docs/api/variables/CheckboxGlass.md +11 -0
- package/docs/api/variables/CircularMetricGlass.md +22 -0
- package/docs/api/variables/CircularProgressGlass.md +11 -0
- package/docs/api/variables/ComboBoxGlass.md +27 -0
- package/docs/api/variables/ContributionMetricsGlass.md +11 -0
- package/docs/api/variables/DropdownGlass.md +11 -0
- package/docs/api/variables/ExpandableHeaderGlass.md +11 -0
- package/docs/api/variables/FlagAlertGlass.md +11 -0
- package/docs/api/variables/FlagsSectionGlass.md +11 -0
- package/docs/api/variables/FormFieldWrapper.md +44 -0
- package/docs/api/variables/GlassCard.md +11 -0
- package/docs/api/variables/HeaderBrandingGlass.md +11 -0
- package/docs/api/variables/HeaderNavGlass.md +11 -0
- package/docs/api/variables/IconButtonGlass.md +11 -0
- package/docs/api/variables/InputGlass.md +11 -0
- package/docs/api/variables/InteractiveCard.md +45 -0
- package/docs/api/variables/LanguageBarGlass.md +11 -0
- package/docs/api/variables/MetricCardGlass.md +11 -0
- package/docs/api/variables/MetricsGridGlass.md +11 -0
- package/docs/api/variables/ModalGlass.md +72 -0
- package/docs/api/variables/NotificationGlass.md +11 -0
- package/docs/api/variables/PopoverGlass.md +11 -0
- package/docs/api/variables/ProfileAvatarGlass.md +11 -0
- package/docs/api/variables/ProfileHeaderGlass.md +11 -0
- package/docs/api/variables/ProgressGlass.md +11 -0
- package/docs/api/variables/ProjectsListGlass.md +11 -0
- package/docs/api/variables/RainbowProgressGlass.md +11 -0
- package/docs/api/variables/RepositoryCardGlass.md +11 -0
- package/docs/api/variables/RepositoryHeaderGlass.md +11 -0
- package/docs/api/variables/RepositoryMetadataGlass.md +11 -0
- package/docs/api/variables/SearchBoxGlass.md +11 -0
- package/docs/api/variables/SegmentedControlGlass.md +11 -0
- package/docs/api/variables/SkeletonGlass.md +11 -0
- package/docs/api/variables/SliderGlass.md +11 -0
- package/docs/api/variables/SortDropdownGlass.md +11 -0
- package/docs/api/variables/StatItemGlass.md +11 -0
- package/docs/api/variables/StatusIndicatorGlass.md +11 -0
- package/docs/api/variables/THEMES.md +11 -0
- package/docs/api/variables/THEME_CONFIG.md +11 -0
- package/docs/api/variables/TabsGlass.md +52 -0
- package/docs/api/variables/ThemeToggleGlass.md +11 -0
- package/docs/api/variables/ToggleGlass.md +11 -0
- package/docs/api/variables/TooltipGlass.md +11 -0
- package/docs/api/variables/TouchTarget.md +35 -0
- package/docs/api/variables/TrustScoreCardGlass.md +11 -0
- package/docs/api/variables/TrustScoreDisplayGlass.md +11 -0
- package/docs/api/variables/UserInfoGlass.md +11 -0
- package/docs/api/variables/UserStatsLineGlass.md +11 -0
- package/docs/api/variables/YearCardGlass.md +11 -0
- package/docs/api/variables/alertVariants.md +21 -0
- package/docs/api/variables/avatarSizes.md +21 -0
- package/docs/api/variables/badgeVariants.md +21 -0
- package/docs/api/variables/buttonGlassVariants.md +21 -0
- package/docs/api/variables/cardIntensity.md +21 -0
- package/docs/api/variables/dropdownAlign.md +21 -0
- package/docs/api/variables/inputVariants.md +21 -0
- package/docs/api/variables/modalSizes.md +21 -0
- package/docs/api/variables/notificationVariants.md +21 -0
- package/docs/api/variables/progressSizes.md +21 -0
- package/docs/api/variables/shadcnAlertVariants.md +21 -0
- package/docs/api/variables/shadcnBadgeVariants.md +21 -0
- package/docs/api/variables/shadcnButtonVariants.md +21 -0
- package/docs/api/variables/skeletonVariants.md +21 -0
- package/docs/api/variables/statusSizes.md +21 -0
- package/docs/api/variables/toggleSizes.md +21 -0
- package/docs/api/variables/tooltipPositions.md +21 -0
- package/docs/design-system/UI_DESIGN.md +628 -0
- package/docs/migration/CSS_VARIABLES_MIGRATION_2.0.md +325 -0
- package/docs/migration/modal-glass-compound-api.md +458 -0
- package/docs/migration/select-to-combobox.md +386 -0
- package/docs/migration/tabs-glass-compound-api.md +579 -0
- package/docs/technical/DEPENDENCIES.md +291 -0
- package/docs/visual-testing-guide.md +324 -0
- package/package.json +16 -3
- package/dist/trust-score-card-glass-CNcQveNY.cjs +0 -8231
- package/dist/trust-score-card-glass-CNcQveNY.cjs.map +0 -1
- package/dist/trust-score-card-glass-CowcDyxH.js +0 -7795
- package/dist/trust-score-card-glass-CowcDyxH.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,850 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
1
|
+
import { $ as BaseProgressGlass, A as useChartHeight, At as ButtonGlass, B as adaptEventsOfChild, Bt as TouchTarget, C as sparklineContainerVariants, Ct as GlassCard, D as Tooltip, Dt as inputVariants, E as Cell, Et as ComboBoxGlass, F as selectLegendPayload, Ft as avatarSizes, G as SegmentedControlGlass, H as isNumber, I as useAppDispatch, It as statusSizes, J as progressSizes, K as RainbowProgressGlass, L as useAppSelector, Lt as AlertGlass, M as useMargin, Mt as BadgeGlass, N as ResponsiveContainer, Nt as badgeVariants, O as setLegendSettings, Ot as CircularProgressGlass, P as useElementOffset, Pt as AvatarGlass, Q as StatusIndicatorGlass, R as getUniqPayload, Rt as InteractiveCard, S as sparklineBarVariants, St as InputGlass, T as Bar, Tt as DropdownGlass, U as useLegendPortal, V as Symbols, Vt as alertVariants, W as Surface, X as LanguageBarGlass, Y as ProfileAvatarGlass, Z as FlagAlertGlass, _ as ContributionMetricsGlass, _t as PopoverGlass, a as HeaderBrandingGlass, at as insightCardVariants, b as AICardGlass, bt as ModalGlass, c as YearCardGlass, ct as ExpandableHeaderGlass, d as TrustScoreDisplayGlass, dt as ToggleGlass, et as ThemeToggleGlass, f as RepositoryMetadataGlass, ft as toggleSizes, g as MetricCardGlass, gt as skeletonVariants, h as MetricsGridGlass, ht as SkeletonGlass, i as HeaderNavGlass, it as InsightCardGlass, j as useChartWidth, jt as buttonGlassVariants, k as setLegendSize, kt as CheckboxGlass, l as UserStatsLineGlass, lt as TooltipGlass, m as RepositoryCardGlass, mt as SliderGlass, n as ProjectsListGlass, nt as SortDropdownGlass, o as FlagsSectionGlass, ot as insightVariantConfig, p as RepositoryHeaderGlass, pt as TabsGlass, q as ProgressGlass, r as ProfileHeaderGlass, rt as SearchBoxGlass, s as CareerStatsGlass, st as IconButtonGlass, t as TrustScoreCardGlass, tt as StatItemGlass, u as UserInfoGlass, ut as tooltipPositions, v as CircularMetricGlass, vt as NotificationGlass, w as BarChart, wt as cardIntensity, x as SparklineGlass, xt as modalSizes, y as CareerStatsHeaderGlass, yt as notificationVariants, z as resolveDefaultProps, zt as FormFieldWrapper } from "./trust-score-card-glass-BcZbul0P.js";
|
|
2
|
+
import { t as cn } from "./utils-CcyeqpKQ.js";
|
|
3
3
|
import { n as useHover, t as useFocus } from "./use-focus-CX0TJJIj.js";
|
|
4
4
|
import { a as getThemeConfig, i as getNextTheme, n as THEME_CONFIG, o as useTheme, r as ThemeProvider, t as THEMES } from "./theme-context-BZoCplcU.js";
|
|
5
5
|
import { n as useResponsive, t as useWallpaperTint } from "./use-wallpaper-tint-DUgmytlY.js";
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
import { createContext, forwardRef, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useState } from "react";
|
|
8
|
+
import { Check } from "lucide-react";
|
|
9
|
+
import { clsx } from "clsx";
|
|
6
10
|
import { cva } from "class-variance-authority";
|
|
11
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { createPortal } from "react-dom";
|
|
13
|
+
const stepperRootVariants = cva("flex w-full", {
|
|
14
|
+
variants: { orientation: {
|
|
15
|
+
horizontal: "flex-col",
|
|
16
|
+
vertical: "flex-col"
|
|
17
|
+
} },
|
|
18
|
+
defaultVariants: { orientation: "horizontal" }
|
|
19
|
+
});
|
|
20
|
+
const stepperListVariants = cva("flex", {
|
|
21
|
+
variants: { orientation: {
|
|
22
|
+
horizontal: "flex-row items-center w-full",
|
|
23
|
+
vertical: "flex-col gap-0"
|
|
24
|
+
} },
|
|
25
|
+
defaultVariants: { orientation: "horizontal" }
|
|
26
|
+
});
|
|
27
|
+
const stepperStepContainerVariants = cva("relative flex transition-all duration-300", {
|
|
28
|
+
variants: { orientation: {
|
|
29
|
+
horizontal: "flex-col items-center flex-1",
|
|
30
|
+
vertical: "flex-row items-start gap-3"
|
|
31
|
+
} },
|
|
32
|
+
defaultVariants: { orientation: "horizontal" }
|
|
33
|
+
});
|
|
34
|
+
const stepperIndicatorVariants = cva("relative flex items-center justify-center rounded-full font-medium transition-all duration-300 shrink-0", {
|
|
35
|
+
variants: {
|
|
36
|
+
size: {
|
|
37
|
+
sm: "w-8 h-8 text-xs",
|
|
38
|
+
md: "w-10 h-10 text-sm",
|
|
39
|
+
lg: "w-12 h-12 text-base"
|
|
40
|
+
},
|
|
41
|
+
variant: {
|
|
42
|
+
numbered: "",
|
|
43
|
+
icon: "",
|
|
44
|
+
dots: ""
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
defaultVariants: {
|
|
48
|
+
size: "md",
|
|
49
|
+
variant: "numbered"
|
|
50
|
+
},
|
|
51
|
+
compoundVariants: [
|
|
52
|
+
{
|
|
53
|
+
variant: "dots",
|
|
54
|
+
size: "sm",
|
|
55
|
+
className: "!w-2.5 !h-2.5"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
variant: "dots",
|
|
59
|
+
size: "md",
|
|
60
|
+
className: "!w-3 !h-3"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
variant: "dots",
|
|
64
|
+
size: "lg",
|
|
65
|
+
className: "!w-4 !h-4"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
});
|
|
69
|
+
const stepperConnectorVariants = cva("transition-all duration-500 ease-out", {
|
|
70
|
+
variants: { orientation: {
|
|
71
|
+
horizontal: "h-0.5 flex-1 mx-2 md:mx-3",
|
|
72
|
+
vertical: "w-0.5 min-h-6 ml-5 my-1"
|
|
73
|
+
} },
|
|
74
|
+
defaultVariants: { orientation: "horizontal" }
|
|
75
|
+
});
|
|
76
|
+
const stepperLabelVariants = cva("font-medium transition-colors duration-300 whitespace-nowrap", {
|
|
77
|
+
variants: {
|
|
78
|
+
size: {
|
|
79
|
+
sm: "text-xs",
|
|
80
|
+
md: "text-sm",
|
|
81
|
+
lg: "text-base"
|
|
82
|
+
},
|
|
83
|
+
orientation: {
|
|
84
|
+
horizontal: "mt-2 text-center",
|
|
85
|
+
vertical: ""
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
defaultVariants: {
|
|
89
|
+
size: "md",
|
|
90
|
+
orientation: "horizontal"
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
const stepperDescriptionVariants = cva("transition-colors duration-300", {
|
|
94
|
+
variants: {
|
|
95
|
+
size: {
|
|
96
|
+
sm: "text-[10px]",
|
|
97
|
+
md: "text-xs",
|
|
98
|
+
lg: "text-sm"
|
|
99
|
+
},
|
|
100
|
+
orientation: {
|
|
101
|
+
horizontal: "text-center max-w-[100px] md:max-w-[120px]",
|
|
102
|
+
vertical: "max-w-[200px]"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
defaultVariants: {
|
|
106
|
+
size: "md",
|
|
107
|
+
orientation: "horizontal"
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
const stepperContentVariants = cva("animate-in fade-in-0 duration-200", {
|
|
111
|
+
variants: { orientation: {
|
|
112
|
+
horizontal: "mt-6",
|
|
113
|
+
vertical: "mt-4"
|
|
114
|
+
} },
|
|
115
|
+
defaultVariants: { orientation: "horizontal" }
|
|
116
|
+
});
|
|
117
|
+
var StepperContext = createContext(null);
|
|
118
|
+
var useStepperContext = () => {
|
|
119
|
+
const context = useContext(StepperContext);
|
|
120
|
+
if (!context) throw new Error("Stepper compound components must be used within StepperGlass.Root");
|
|
121
|
+
return context;
|
|
122
|
+
};
|
|
123
|
+
function getStepStatus(stepValue, currentValue, steps, linear, disabled) {
|
|
124
|
+
if (disabled) return "disabled";
|
|
125
|
+
const stepIndex = steps.indexOf(stepValue);
|
|
126
|
+
const currentIndex = steps.indexOf(currentValue);
|
|
127
|
+
if (stepIndex === -1 || currentIndex === -1) return "pending";
|
|
128
|
+
if (stepIndex === currentIndex) return "active";
|
|
129
|
+
if (stepIndex < currentIndex) return "completed";
|
|
130
|
+
if (linear && stepIndex > currentIndex) return "disabled";
|
|
131
|
+
return "pending";
|
|
132
|
+
}
|
|
133
|
+
var StepperRoot = ({ value, onValueChange, orientation = "horizontal", variant = "numbered", size = "md", linear = false, children, className }) => {
|
|
134
|
+
const [steps, setSteps] = useState([]);
|
|
135
|
+
const registerStep = useCallback((stepValue, index) => {
|
|
136
|
+
setSteps((prev) => {
|
|
137
|
+
if (prev.includes(stepValue)) return prev;
|
|
138
|
+
const newSteps = [...prev];
|
|
139
|
+
newSteps.splice(index, 0, stepValue);
|
|
140
|
+
return newSteps;
|
|
141
|
+
});
|
|
142
|
+
}, []);
|
|
143
|
+
const unregisterStep = useCallback((stepValue) => {
|
|
144
|
+
setSteps((prev) => prev.filter((s) => s !== stepValue));
|
|
145
|
+
}, []);
|
|
146
|
+
const contextValue = useMemo(() => ({
|
|
147
|
+
value,
|
|
148
|
+
onValueChange,
|
|
149
|
+
orientation,
|
|
150
|
+
variant,
|
|
151
|
+
size,
|
|
152
|
+
linear,
|
|
153
|
+
steps,
|
|
154
|
+
registerStep,
|
|
155
|
+
unregisterStep
|
|
156
|
+
}), [
|
|
157
|
+
value,
|
|
158
|
+
onValueChange,
|
|
159
|
+
orientation,
|
|
160
|
+
variant,
|
|
161
|
+
size,
|
|
162
|
+
linear,
|
|
163
|
+
steps,
|
|
164
|
+
registerStep,
|
|
165
|
+
unregisterStep
|
|
166
|
+
]);
|
|
167
|
+
return /* @__PURE__ */ jsx(StepperContext.Provider, {
|
|
168
|
+
value: contextValue,
|
|
169
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
170
|
+
className: cn(stepperRootVariants({ orientation }), className),
|
|
171
|
+
"aria-label": "Progress steps",
|
|
172
|
+
children
|
|
173
|
+
})
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
var StepperList = forwardRef(({ children, className, ...props }, ref) => {
|
|
177
|
+
const { orientation } = useStepperContext();
|
|
178
|
+
return /* @__PURE__ */ jsx("div", {
|
|
179
|
+
ref,
|
|
180
|
+
role: "tablist",
|
|
181
|
+
"aria-orientation": orientation,
|
|
182
|
+
className: cn(stepperListVariants({ orientation }), className),
|
|
183
|
+
...props,
|
|
184
|
+
children
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
StepperList.displayName = "StepperList";
|
|
188
|
+
var StepperStep = forwardRef(({ value: stepValue, label, description, icon, completedIcon, disabled: forcedDisabled, className, index: providedIndex }, ref) => {
|
|
189
|
+
const { value: currentValue, onValueChange, orientation, variant, size, linear, steps, registerStep, unregisterStep } = useStepperContext();
|
|
190
|
+
const { isFocusVisible, focusProps } = useFocus({ focusVisible: true });
|
|
191
|
+
const [mountIndex] = useState(() => providedIndex ?? Date.now());
|
|
192
|
+
useLayoutEffect(() => {
|
|
193
|
+
registerStep(stepValue, mountIndex);
|
|
194
|
+
return () => unregisterStep(stepValue);
|
|
195
|
+
}, [
|
|
196
|
+
stepValue,
|
|
197
|
+
mountIndex,
|
|
198
|
+
registerStep,
|
|
199
|
+
unregisterStep
|
|
200
|
+
]);
|
|
201
|
+
const status = getStepStatus(stepValue, currentValue, steps, linear, forcedDisabled);
|
|
202
|
+
const stepIndex = steps.indexOf(stepValue);
|
|
203
|
+
const isLast = stepIndex === steps.length - 1;
|
|
204
|
+
const isClickable = status !== "disabled";
|
|
205
|
+
const indicatorStyles = {
|
|
206
|
+
background: status === "completed" ? "var(--stepper-step-completed-bg)" : status === "active" ? "var(--stepper-step-active-bg)" : status === "disabled" ? "var(--stepper-step-disabled-bg)" : "var(--stepper-step-bg)",
|
|
207
|
+
border: `2px solid ${status === "completed" ? "var(--stepper-step-completed-border)" : status === "active" ? "var(--stepper-step-active-border)" : status === "disabled" ? "var(--stepper-step-disabled-border)" : "var(--stepper-step-border)"}`,
|
|
208
|
+
color: status === "completed" ? "var(--stepper-step-completed-text)" : status === "active" ? "var(--stepper-step-active-text)" : status === "disabled" ? "var(--stepper-step-disabled-text)" : "var(--stepper-step-text)",
|
|
209
|
+
boxShadow: status === "active" ? "var(--stepper-step-active-glow)" : status === "completed" ? "var(--stepper-step-glow)" : isFocusVisible ? "var(--focus-glow)" : "none",
|
|
210
|
+
backdropFilter: "blur(var(--blur-sm))"
|
|
211
|
+
};
|
|
212
|
+
const connectorStyles = { background: stepIndex < steps.indexOf(currentValue) ? "var(--stepper-connector-active-bg)" : "var(--stepper-connector-bg)" };
|
|
213
|
+
const labelStyles = { color: status === "active" || status === "completed" ? "var(--stepper-label-text)" : "var(--stepper-description-text)" };
|
|
214
|
+
const descriptionStyles = { color: "var(--stepper-description-text)" };
|
|
215
|
+
const renderIndicatorContent = () => {
|
|
216
|
+
if (status === "completed") {
|
|
217
|
+
if (completedIcon) return completedIcon;
|
|
218
|
+
return /* @__PURE__ */ jsx(Check, { className: "w-4 h-4" });
|
|
219
|
+
}
|
|
220
|
+
if (variant === "icon" && icon) return icon;
|
|
221
|
+
if (variant === "dots") return null;
|
|
222
|
+
return stepIndex >= 0 ? stepIndex + 1 : "";
|
|
223
|
+
};
|
|
224
|
+
const handleClick = () => {
|
|
225
|
+
if (isClickable && onValueChange) onValueChange(stepValue);
|
|
226
|
+
};
|
|
227
|
+
const handleKeyDown = (e) => {
|
|
228
|
+
if (!isClickable) return;
|
|
229
|
+
const stepList = e.currentTarget.closest("[role=\"tablist\"]");
|
|
230
|
+
if (!stepList) return;
|
|
231
|
+
const allSteps = Array.from(stepList.querySelectorAll("[role=\"tab\"]:not([aria-disabled=\"true\"])"));
|
|
232
|
+
const currentIdx = allSteps.indexOf(e.currentTarget);
|
|
233
|
+
let nextIdx = currentIdx;
|
|
234
|
+
const isHorizontal = orientation === "horizontal";
|
|
235
|
+
switch (e.key) {
|
|
236
|
+
case isHorizontal ? "ArrowRight" : "ArrowDown":
|
|
237
|
+
e.preventDefault();
|
|
238
|
+
nextIdx = (currentIdx + 1) % allSteps.length;
|
|
239
|
+
break;
|
|
240
|
+
case isHorizontal ? "ArrowLeft" : "ArrowUp":
|
|
241
|
+
e.preventDefault();
|
|
242
|
+
nextIdx = currentIdx - 1 < 0 ? allSteps.length - 1 : currentIdx - 1;
|
|
243
|
+
break;
|
|
244
|
+
case "Home":
|
|
245
|
+
e.preventDefault();
|
|
246
|
+
nextIdx = 0;
|
|
247
|
+
break;
|
|
248
|
+
case "End":
|
|
249
|
+
e.preventDefault();
|
|
250
|
+
nextIdx = allSteps.length - 1;
|
|
251
|
+
break;
|
|
252
|
+
default: return;
|
|
253
|
+
}
|
|
254
|
+
const nextStep = allSteps[nextIdx];
|
|
255
|
+
if (nextStep) {
|
|
256
|
+
nextStep.focus();
|
|
257
|
+
const nextValue = nextStep.getAttribute("data-value");
|
|
258
|
+
if (nextValue && onValueChange) onValueChange(nextValue);
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
if (orientation === "horizontal") return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
|
|
262
|
+
className: cn(stepperStepContainerVariants({ orientation }), className),
|
|
263
|
+
children: [/* @__PURE__ */ jsx("button", {
|
|
264
|
+
ref,
|
|
265
|
+
type: "button",
|
|
266
|
+
role: "tab",
|
|
267
|
+
"aria-selected": status === "active",
|
|
268
|
+
"aria-disabled": !isClickable,
|
|
269
|
+
"aria-current": status === "active" ? "step" : void 0,
|
|
270
|
+
"data-value": stepValue,
|
|
271
|
+
"data-status": status,
|
|
272
|
+
onClick: handleClick,
|
|
273
|
+
onKeyDown: handleKeyDown,
|
|
274
|
+
onFocus: focusProps.onFocus,
|
|
275
|
+
onBlur: focusProps.onBlur,
|
|
276
|
+
disabled: !isClickable,
|
|
277
|
+
className: cn(stepperIndicatorVariants({
|
|
278
|
+
size,
|
|
279
|
+
variant
|
|
280
|
+
}), !isClickable && "cursor-not-allowed opacity-60", isClickable && "cursor-pointer hover:scale-105", "min-w-[44px] min-h-[44px]"),
|
|
281
|
+
style: indicatorStyles,
|
|
282
|
+
children: renderIndicatorContent()
|
|
283
|
+
}), label && /* @__PURE__ */ jsxs("div", {
|
|
284
|
+
className: "flex flex-col items-center",
|
|
285
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
286
|
+
className: cn(stepperLabelVariants({
|
|
287
|
+
size,
|
|
288
|
+
orientation
|
|
289
|
+
})),
|
|
290
|
+
style: labelStyles,
|
|
291
|
+
children: label
|
|
292
|
+
}), description && /* @__PURE__ */ jsx("span", {
|
|
293
|
+
className: cn(stepperDescriptionVariants({
|
|
294
|
+
size,
|
|
295
|
+
orientation
|
|
296
|
+
})),
|
|
297
|
+
style: descriptionStyles,
|
|
298
|
+
children: description
|
|
299
|
+
})]
|
|
300
|
+
})]
|
|
301
|
+
}), !isLast && /* @__PURE__ */ jsx("div", {
|
|
302
|
+
className: cn(stepperConnectorVariants({ orientation })),
|
|
303
|
+
style: connectorStyles,
|
|
304
|
+
"aria-hidden": "true"
|
|
305
|
+
})] });
|
|
306
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
307
|
+
className: "flex flex-col",
|
|
308
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
309
|
+
className: cn(stepperStepContainerVariants({ orientation }), className),
|
|
310
|
+
children: [/* @__PURE__ */ jsx("button", {
|
|
311
|
+
ref,
|
|
312
|
+
type: "button",
|
|
313
|
+
role: "tab",
|
|
314
|
+
"aria-selected": status === "active",
|
|
315
|
+
"aria-disabled": !isClickable,
|
|
316
|
+
"aria-current": status === "active" ? "step" : void 0,
|
|
317
|
+
"data-value": stepValue,
|
|
318
|
+
"data-status": status,
|
|
319
|
+
onClick: handleClick,
|
|
320
|
+
onKeyDown: handleKeyDown,
|
|
321
|
+
onFocus: focusProps.onFocus,
|
|
322
|
+
onBlur: focusProps.onBlur,
|
|
323
|
+
disabled: !isClickable,
|
|
324
|
+
className: cn(stepperIndicatorVariants({
|
|
325
|
+
size,
|
|
326
|
+
variant
|
|
327
|
+
}), !isClickable && "cursor-not-allowed opacity-60", isClickable && "cursor-pointer hover:scale-105", "min-w-[44px] min-h-[44px]"),
|
|
328
|
+
style: indicatorStyles,
|
|
329
|
+
children: renderIndicatorContent()
|
|
330
|
+
}), label && /* @__PURE__ */ jsxs("div", {
|
|
331
|
+
className: "flex flex-col justify-center",
|
|
332
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
333
|
+
className: cn(stepperLabelVariants({
|
|
334
|
+
size,
|
|
335
|
+
orientation
|
|
336
|
+
})),
|
|
337
|
+
style: labelStyles,
|
|
338
|
+
children: label
|
|
339
|
+
}), description && /* @__PURE__ */ jsx("span", {
|
|
340
|
+
className: cn(stepperDescriptionVariants({
|
|
341
|
+
size,
|
|
342
|
+
orientation
|
|
343
|
+
})),
|
|
344
|
+
style: descriptionStyles,
|
|
345
|
+
children: description
|
|
346
|
+
})]
|
|
347
|
+
})]
|
|
348
|
+
}), !isLast && /* @__PURE__ */ jsx("div", {
|
|
349
|
+
className: cn(stepperConnectorVariants({ orientation })),
|
|
350
|
+
style: connectorStyles,
|
|
351
|
+
"aria-hidden": "true"
|
|
352
|
+
})]
|
|
353
|
+
});
|
|
354
|
+
});
|
|
355
|
+
StepperStep.displayName = "StepperStep";
|
|
356
|
+
var StepperContent = ({ value, children, className }) => {
|
|
357
|
+
const { value: currentValue, orientation } = useStepperContext();
|
|
358
|
+
const isActive = currentValue === value;
|
|
359
|
+
if (!isActive) return null;
|
|
360
|
+
return /* @__PURE__ */ jsx("div", {
|
|
361
|
+
role: "tabpanel",
|
|
362
|
+
"aria-hidden": !isActive,
|
|
363
|
+
className: cn(stepperContentVariants({ orientation }), className),
|
|
364
|
+
children
|
|
365
|
+
});
|
|
366
|
+
};
|
|
367
|
+
const StepperGlass = {
|
|
368
|
+
Root: StepperRoot,
|
|
369
|
+
List: StepperList,
|
|
370
|
+
Step: StepperStep,
|
|
371
|
+
Content: StepperContent
|
|
372
|
+
};
|
|
373
|
+
function _extends$1() {
|
|
374
|
+
return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
|
|
375
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
376
|
+
var t = arguments[e];
|
|
377
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
378
|
+
}
|
|
379
|
+
return n;
|
|
380
|
+
}, _extends$1.apply(null, arguments);
|
|
381
|
+
}
|
|
382
|
+
function ownKeys$1(e, r) {
|
|
383
|
+
var t = Object.keys(e);
|
|
384
|
+
if (Object.getOwnPropertySymbols) {
|
|
385
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
386
|
+
r && (o = o.filter(function(r$1) {
|
|
387
|
+
return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
|
|
388
|
+
})), t.push.apply(t, o);
|
|
389
|
+
}
|
|
390
|
+
return t;
|
|
391
|
+
}
|
|
392
|
+
function _objectSpread$1(e) {
|
|
393
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
394
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
395
|
+
r % 2 ? ownKeys$1(Object(t), !0).forEach(function(r$1) {
|
|
396
|
+
_defineProperty$1(e, r$1, t[r$1]);
|
|
397
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r$1) {
|
|
398
|
+
Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
return e;
|
|
402
|
+
}
|
|
403
|
+
function _defineProperty$1(e, r, t) {
|
|
404
|
+
return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
|
|
405
|
+
value: t,
|
|
406
|
+
enumerable: !0,
|
|
407
|
+
configurable: !0,
|
|
408
|
+
writable: !0
|
|
409
|
+
}) : e[r] = t, e;
|
|
410
|
+
}
|
|
411
|
+
function _toPropertyKey$1(t) {
|
|
412
|
+
var i = _toPrimitive$1(t, "string");
|
|
413
|
+
return "symbol" == typeof i ? i : i + "";
|
|
414
|
+
}
|
|
415
|
+
function _toPrimitive$1(t, r) {
|
|
416
|
+
if ("object" != typeof t || !t) return t;
|
|
417
|
+
var e = t[Symbol.toPrimitive];
|
|
418
|
+
if (void 0 !== e) {
|
|
419
|
+
var i = e.call(t, r || "default");
|
|
420
|
+
if ("object" != typeof i) return i;
|
|
421
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
422
|
+
}
|
|
423
|
+
return ("string" === r ? String : Number)(t);
|
|
424
|
+
}
|
|
425
|
+
var SIZE = 32;
|
|
426
|
+
var defaultLegendContentDefaultProps = {
|
|
427
|
+
align: "center",
|
|
428
|
+
iconSize: 14,
|
|
429
|
+
inactiveColor: "#ccc",
|
|
430
|
+
layout: "horizontal",
|
|
431
|
+
verticalAlign: "middle"
|
|
432
|
+
};
|
|
433
|
+
function Icon(_ref) {
|
|
434
|
+
var { data, iconType, inactiveColor } = _ref;
|
|
435
|
+
var halfSize = SIZE / 2;
|
|
436
|
+
var sixthSize = SIZE / 6;
|
|
437
|
+
var thirdSize = SIZE / 3;
|
|
438
|
+
var color = data.inactive ? inactiveColor : data.color;
|
|
439
|
+
var preferredIcon = iconType !== null && iconType !== void 0 ? iconType : data.type;
|
|
440
|
+
if (preferredIcon === "none") return null;
|
|
441
|
+
if (preferredIcon === "plainline") {
|
|
442
|
+
var _data$payload;
|
|
443
|
+
return /* @__PURE__ */ React.createElement("line", {
|
|
444
|
+
strokeWidth: 4,
|
|
445
|
+
fill: "none",
|
|
446
|
+
stroke: color,
|
|
447
|
+
strokeDasharray: (_data$payload = data.payload) === null || _data$payload === void 0 ? void 0 : _data$payload.strokeDasharray,
|
|
448
|
+
x1: 0,
|
|
449
|
+
y1: halfSize,
|
|
450
|
+
x2: SIZE,
|
|
451
|
+
y2: halfSize,
|
|
452
|
+
className: "recharts-legend-icon"
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
if (preferredIcon === "line") return /* @__PURE__ */ React.createElement("path", {
|
|
456
|
+
strokeWidth: 4,
|
|
457
|
+
fill: "none",
|
|
458
|
+
stroke: color,
|
|
459
|
+
d: "M0,".concat(halfSize, "h").concat(thirdSize, "\n A").concat(sixthSize, ",").concat(sixthSize, ",0,1,1,").concat(2 * thirdSize, ",").concat(halfSize, "\n H").concat(SIZE, "M").concat(2 * thirdSize, ",").concat(halfSize, "\n A").concat(sixthSize, ",").concat(sixthSize, ",0,1,1,").concat(thirdSize, ",").concat(halfSize),
|
|
460
|
+
className: "recharts-legend-icon"
|
|
461
|
+
});
|
|
462
|
+
if (preferredIcon === "rect") return /* @__PURE__ */ React.createElement("path", {
|
|
463
|
+
stroke: "none",
|
|
464
|
+
fill: color,
|
|
465
|
+
d: "M0,".concat(SIZE / 8, "h").concat(SIZE, "v").concat(SIZE * 3 / 4, "h").concat(-SIZE, "z"),
|
|
466
|
+
className: "recharts-legend-icon"
|
|
467
|
+
});
|
|
468
|
+
if (/* @__PURE__ */ React.isValidElement(data.legendIcon)) {
|
|
469
|
+
var iconProps = _objectSpread$1({}, data);
|
|
470
|
+
delete iconProps.legendIcon;
|
|
471
|
+
return /* @__PURE__ */ React.cloneElement(data.legendIcon, iconProps);
|
|
472
|
+
}
|
|
473
|
+
return /* @__PURE__ */ React.createElement(Symbols, {
|
|
474
|
+
fill: color,
|
|
475
|
+
cx: halfSize,
|
|
476
|
+
cy: halfSize,
|
|
477
|
+
size: SIZE,
|
|
478
|
+
sizeType: "diameter",
|
|
479
|
+
type: preferredIcon
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
function Items(props) {
|
|
483
|
+
var { payload, iconSize, layout, formatter, inactiveColor, iconType } = props;
|
|
484
|
+
var viewBox = {
|
|
485
|
+
x: 0,
|
|
486
|
+
y: 0,
|
|
487
|
+
width: SIZE,
|
|
488
|
+
height: SIZE
|
|
489
|
+
};
|
|
490
|
+
var itemStyle = {
|
|
491
|
+
display: layout === "horizontal" ? "inline-block" : "block",
|
|
492
|
+
marginRight: 10
|
|
493
|
+
};
|
|
494
|
+
var svgStyle = {
|
|
495
|
+
display: "inline-block",
|
|
496
|
+
verticalAlign: "middle",
|
|
497
|
+
marginRight: 4
|
|
498
|
+
};
|
|
499
|
+
return payload.map((entry, i) => {
|
|
500
|
+
var finalFormatter = entry.formatter || formatter;
|
|
501
|
+
var className = clsx({
|
|
502
|
+
"recharts-legend-item": true,
|
|
503
|
+
["legend-item-".concat(i)]: true,
|
|
504
|
+
inactive: entry.inactive
|
|
505
|
+
});
|
|
506
|
+
if (entry.type === "none") return null;
|
|
507
|
+
var color = entry.inactive ? inactiveColor : entry.color;
|
|
508
|
+
var finalValue = finalFormatter ? finalFormatter(entry.value, entry, i) : entry.value;
|
|
509
|
+
return /* @__PURE__ */ React.createElement("li", _extends$1({
|
|
510
|
+
className,
|
|
511
|
+
style: itemStyle,
|
|
512
|
+
key: "legend-item-".concat(i)
|
|
513
|
+
}, adaptEventsOfChild(props, entry, i)), /* @__PURE__ */ React.createElement(Surface, {
|
|
514
|
+
width: iconSize,
|
|
515
|
+
height: iconSize,
|
|
516
|
+
viewBox,
|
|
517
|
+
style: svgStyle,
|
|
518
|
+
"aria-label": "".concat(finalValue, " legend icon")
|
|
519
|
+
}, /* @__PURE__ */ React.createElement(Icon, {
|
|
520
|
+
data: entry,
|
|
521
|
+
iconType,
|
|
522
|
+
inactiveColor
|
|
523
|
+
})), /* @__PURE__ */ React.createElement("span", {
|
|
524
|
+
className: "recharts-legend-item-text",
|
|
525
|
+
style: { color }
|
|
526
|
+
}, finalValue));
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
var DefaultLegendContent = (outsideProps) => {
|
|
530
|
+
var props = resolveDefaultProps(outsideProps, defaultLegendContentDefaultProps);
|
|
531
|
+
var { payload, layout, align } = props;
|
|
532
|
+
if (!payload || !payload.length) return null;
|
|
533
|
+
var finalStyle = {
|
|
534
|
+
padding: 0,
|
|
535
|
+
margin: 0,
|
|
536
|
+
textAlign: layout === "horizontal" ? align : "left"
|
|
537
|
+
};
|
|
538
|
+
return /* @__PURE__ */ React.createElement("ul", {
|
|
539
|
+
className: "recharts-default-legend",
|
|
540
|
+
style: finalStyle
|
|
541
|
+
}, /* @__PURE__ */ React.createElement(Items, _extends$1({}, props, { payload })));
|
|
542
|
+
};
|
|
543
|
+
function useLegendPayload() {
|
|
544
|
+
return useAppSelector(selectLegendPayload);
|
|
545
|
+
}
|
|
546
|
+
var _excluded = ["contextPayload"];
|
|
547
|
+
function _extends() {
|
|
548
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
549
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
550
|
+
var t = arguments[e];
|
|
551
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
552
|
+
}
|
|
553
|
+
return n;
|
|
554
|
+
}, _extends.apply(null, arguments);
|
|
555
|
+
}
|
|
556
|
+
function ownKeys(e, r) {
|
|
557
|
+
var t = Object.keys(e);
|
|
558
|
+
if (Object.getOwnPropertySymbols) {
|
|
559
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
560
|
+
r && (o = o.filter(function(r$1) {
|
|
561
|
+
return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
|
|
562
|
+
})), t.push.apply(t, o);
|
|
563
|
+
}
|
|
564
|
+
return t;
|
|
565
|
+
}
|
|
566
|
+
function _objectSpread(e) {
|
|
567
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
568
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
569
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r$1) {
|
|
570
|
+
_defineProperty(e, r$1, t[r$1]);
|
|
571
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
|
|
572
|
+
Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
return e;
|
|
576
|
+
}
|
|
577
|
+
function _defineProperty(e, r, t) {
|
|
578
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
579
|
+
value: t,
|
|
580
|
+
enumerable: !0,
|
|
581
|
+
configurable: !0,
|
|
582
|
+
writable: !0
|
|
583
|
+
}) : e[r] = t, e;
|
|
584
|
+
}
|
|
585
|
+
function _toPropertyKey(t) {
|
|
586
|
+
var i = _toPrimitive(t, "string");
|
|
587
|
+
return "symbol" == typeof i ? i : i + "";
|
|
588
|
+
}
|
|
589
|
+
function _toPrimitive(t, r) {
|
|
590
|
+
if ("object" != typeof t || !t) return t;
|
|
591
|
+
var e = t[Symbol.toPrimitive];
|
|
592
|
+
if (void 0 !== e) {
|
|
593
|
+
var i = e.call(t, r || "default");
|
|
594
|
+
if ("object" != typeof i) return i;
|
|
595
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
596
|
+
}
|
|
597
|
+
return ("string" === r ? String : Number)(t);
|
|
598
|
+
}
|
|
599
|
+
function _objectWithoutProperties(e, t) {
|
|
600
|
+
if (null == e) return {};
|
|
601
|
+
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
602
|
+
if (Object.getOwnPropertySymbols) {
|
|
603
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
604
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
605
|
+
}
|
|
606
|
+
return i;
|
|
607
|
+
}
|
|
608
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
609
|
+
if (null == r) return {};
|
|
610
|
+
var t = {};
|
|
611
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
612
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
613
|
+
t[n] = r[n];
|
|
614
|
+
}
|
|
615
|
+
return t;
|
|
616
|
+
}
|
|
617
|
+
function defaultUniqBy(entry) {
|
|
618
|
+
return entry.value;
|
|
619
|
+
}
|
|
620
|
+
function LegendContent(props) {
|
|
621
|
+
var { contextPayload } = props, otherProps = _objectWithoutProperties(props, _excluded);
|
|
622
|
+
var finalPayload = getUniqPayload(contextPayload, props.payloadUniqBy, defaultUniqBy);
|
|
623
|
+
var contentProps = _objectSpread(_objectSpread({}, otherProps), {}, { payload: finalPayload });
|
|
624
|
+
if (/* @__PURE__ */ React.isValidElement(props.content)) return /* @__PURE__ */ React.cloneElement(props.content, contentProps);
|
|
625
|
+
if (typeof props.content === "function") return /* @__PURE__ */ React.createElement(props.content, contentProps);
|
|
626
|
+
return /* @__PURE__ */ React.createElement(DefaultLegendContent, contentProps);
|
|
627
|
+
}
|
|
628
|
+
function getDefaultPosition(style, props, margin, chartWidth, chartHeight, box) {
|
|
629
|
+
var { layout, align, verticalAlign } = props;
|
|
630
|
+
var hPos, vPos;
|
|
631
|
+
if (!style || (style.left === void 0 || style.left === null) && (style.right === void 0 || style.right === null)) if (align === "center" && layout === "vertical") hPos = { left: ((chartWidth || 0) - box.width) / 2 };
|
|
632
|
+
else hPos = align === "right" ? { right: margin && margin.right || 0 } : { left: margin && margin.left || 0 };
|
|
633
|
+
if (!style || (style.top === void 0 || style.top === null) && (style.bottom === void 0 || style.bottom === null)) if (verticalAlign === "middle") vPos = { top: ((chartHeight || 0) - box.height) / 2 };
|
|
634
|
+
else vPos = verticalAlign === "bottom" ? { bottom: margin && margin.bottom || 0 } : { top: margin && margin.top || 0 };
|
|
635
|
+
return _objectSpread(_objectSpread({}, hPos), vPos);
|
|
636
|
+
}
|
|
637
|
+
function LegendSettingsDispatcher(props) {
|
|
638
|
+
var dispatch = useAppDispatch();
|
|
639
|
+
useEffect(() => {
|
|
640
|
+
dispatch(setLegendSettings(props));
|
|
641
|
+
}, [dispatch, props]);
|
|
642
|
+
return null;
|
|
643
|
+
}
|
|
644
|
+
function LegendSizeDispatcher(props) {
|
|
645
|
+
var dispatch = useAppDispatch();
|
|
646
|
+
useEffect(() => {
|
|
647
|
+
dispatch(setLegendSize(props));
|
|
648
|
+
return () => {
|
|
649
|
+
dispatch(setLegendSize({
|
|
650
|
+
width: 0,
|
|
651
|
+
height: 0
|
|
652
|
+
}));
|
|
653
|
+
};
|
|
654
|
+
}, [dispatch, props]);
|
|
655
|
+
return null;
|
|
656
|
+
}
|
|
657
|
+
function getWidthOrHeight(layout, height, width, maxWidth) {
|
|
658
|
+
if (layout === "vertical" && isNumber(height)) return { height };
|
|
659
|
+
if (layout === "horizontal") return { width: width || maxWidth };
|
|
660
|
+
return null;
|
|
661
|
+
}
|
|
662
|
+
var legendDefaultProps = {
|
|
663
|
+
align: "center",
|
|
664
|
+
iconSize: 14,
|
|
665
|
+
itemSorter: "value",
|
|
666
|
+
layout: "horizontal",
|
|
667
|
+
verticalAlign: "bottom"
|
|
668
|
+
};
|
|
669
|
+
function Legend(outsideProps) {
|
|
670
|
+
var props = resolveDefaultProps(outsideProps, legendDefaultProps);
|
|
671
|
+
var contextPayload = useLegendPayload();
|
|
672
|
+
var legendPortalFromContext = useLegendPortal();
|
|
673
|
+
var margin = useMargin();
|
|
674
|
+
var { width: widthFromProps, height: heightFromProps, wrapperStyle, portal: portalFromProps } = props;
|
|
675
|
+
var [lastBoundingBox, updateBoundingBox] = useElementOffset([contextPayload]);
|
|
676
|
+
var chartWidth = useChartWidth();
|
|
677
|
+
var chartHeight = useChartHeight();
|
|
678
|
+
if (chartWidth == null || chartHeight == null) return null;
|
|
679
|
+
var maxWidth = chartWidth - ((margin === null || margin === void 0 ? void 0 : margin.left) || 0) - ((margin === null || margin === void 0 ? void 0 : margin.right) || 0);
|
|
680
|
+
var widthOrHeight = getWidthOrHeight(props.layout, heightFromProps, widthFromProps, maxWidth);
|
|
681
|
+
var outerStyle = portalFromProps ? wrapperStyle : _objectSpread(_objectSpread({
|
|
682
|
+
position: "absolute",
|
|
683
|
+
width: (widthOrHeight === null || widthOrHeight === void 0 ? void 0 : widthOrHeight.width) || widthFromProps || "auto",
|
|
684
|
+
height: (widthOrHeight === null || widthOrHeight === void 0 ? void 0 : widthOrHeight.height) || heightFromProps || "auto"
|
|
685
|
+
}, getDefaultPosition(wrapperStyle, props, margin, chartWidth, chartHeight, lastBoundingBox)), wrapperStyle);
|
|
686
|
+
var legendPortal = portalFromProps !== null && portalFromProps !== void 0 ? portalFromProps : legendPortalFromContext;
|
|
687
|
+
if (legendPortal == null || contextPayload == null) return null;
|
|
688
|
+
return /* @__PURE__ */ createPortal(/* @__PURE__ */ React.createElement("div", {
|
|
689
|
+
className: "recharts-legend-wrapper",
|
|
690
|
+
style: outerStyle,
|
|
691
|
+
ref: updateBoundingBox
|
|
692
|
+
}, /* @__PURE__ */ React.createElement(LegendSettingsDispatcher, {
|
|
693
|
+
layout: props.layout,
|
|
694
|
+
align: props.align,
|
|
695
|
+
verticalAlign: props.verticalAlign,
|
|
696
|
+
itemSorter: props.itemSorter
|
|
697
|
+
}), !portalFromProps && /* @__PURE__ */ React.createElement(LegendSizeDispatcher, {
|
|
698
|
+
width: lastBoundingBox.width,
|
|
699
|
+
height: lastBoundingBox.height
|
|
700
|
+
}), /* @__PURE__ */ React.createElement(LegendContent, _extends({}, props, widthOrHeight, {
|
|
701
|
+
margin,
|
|
702
|
+
chartWidth,
|
|
703
|
+
chartHeight,
|
|
704
|
+
contextPayload
|
|
705
|
+
}))), legendPortal);
|
|
706
|
+
}
|
|
707
|
+
Legend.displayName = "Legend";
|
|
708
|
+
var ChartContext = React.createContext(null);
|
|
709
|
+
function useChart() {
|
|
710
|
+
const context = React.useContext(ChartContext);
|
|
711
|
+
if (!context) throw new Error("useChart must be used within a <ChartContainer />");
|
|
712
|
+
return context;
|
|
713
|
+
}
|
|
714
|
+
var ChartContainer = React.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
715
|
+
const uniqueId = React.useId();
|
|
716
|
+
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
717
|
+
return /* @__PURE__ */ jsx(ChartContext.Provider, {
|
|
718
|
+
value: { config },
|
|
719
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
720
|
+
"data-chart": chartId,
|
|
721
|
+
ref,
|
|
722
|
+
className: cn("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-[var(--text-muted)] [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-[var(--glass-border)] [&_.recharts-curve.recharts-tooltip-cursor]:stroke-[var(--glass-border)] [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-[var(--glass-border)] [&_.recharts-radial-bar-background-sector]:fill-[var(--glass-frost-5)] [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-[var(--glass-frost-10)] [&_.recharts-reference-line_[stroke='#ccc']]:stroke-[var(--glass-border)] [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none", className),
|
|
723
|
+
...props,
|
|
724
|
+
children: [/* @__PURE__ */ jsx(ChartStyle, {
|
|
725
|
+
id: chartId,
|
|
726
|
+
config
|
|
727
|
+
}), /* @__PURE__ */ jsx(ResponsiveContainer, { children })]
|
|
728
|
+
})
|
|
729
|
+
});
|
|
730
|
+
});
|
|
731
|
+
ChartContainer.displayName = "ChartContainer";
|
|
732
|
+
var ChartStyle = ({ id, config }) => {
|
|
733
|
+
const colorConfig = Object.entries(config).filter(([, itemConfig]) => itemConfig.color || itemConfig.theme);
|
|
734
|
+
if (!colorConfig.length) return null;
|
|
735
|
+
return /* @__PURE__ */ jsx("style", { dangerouslySetInnerHTML: { __html: `
|
|
736
|
+
[data-chart="${id}"] {
|
|
737
|
+
${colorConfig.map(([key, itemConfig]) => {
|
|
738
|
+
const color = itemConfig.color || itemConfig.theme?.light;
|
|
739
|
+
return color ? ` --color-${key}: ${color};` : null;
|
|
740
|
+
}).filter(Boolean).join("\n")}
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
[data-theme="glass"] [data-chart="${id}"],
|
|
744
|
+
.dark [data-chart="${id}"] {
|
|
745
|
+
${colorConfig.map(([key, itemConfig]) => {
|
|
746
|
+
const color = itemConfig.theme?.dark || itemConfig.color;
|
|
747
|
+
return color ? ` --color-${key}: ${color};` : null;
|
|
748
|
+
}).filter(Boolean).join("\n")}
|
|
749
|
+
}
|
|
750
|
+
` } });
|
|
751
|
+
};
|
|
752
|
+
var ChartTooltip = Tooltip;
|
|
753
|
+
var ChartTooltipContent = React.forwardRef(({ active, payload, className, indicator = "dot", hideLabel = false, hideIndicator = false, label, labelFormatter, labelClassName, nameKey, labelKey, valueFormatter }, ref) => {
|
|
754
|
+
const { config } = useChart();
|
|
755
|
+
const tooltipLabel = React.useMemo(() => {
|
|
756
|
+
if (hideLabel || !payload?.length) return null;
|
|
757
|
+
const [item] = payload;
|
|
758
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, `${labelKey || item?.dataKey || item?.name || "value"}`);
|
|
759
|
+
const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
|
|
760
|
+
if (labelFormatter && typeof label === "string") return /* @__PURE__ */ jsx("div", {
|
|
761
|
+
className: cn("font-medium", labelClassName),
|
|
762
|
+
children: labelFormatter(label, payload)
|
|
763
|
+
});
|
|
764
|
+
if (!value) return null;
|
|
765
|
+
return /* @__PURE__ */ jsx("div", {
|
|
766
|
+
className: cn("font-medium", labelClassName),
|
|
767
|
+
children: value
|
|
768
|
+
});
|
|
769
|
+
}, [
|
|
770
|
+
label,
|
|
771
|
+
labelFormatter,
|
|
772
|
+
payload,
|
|
773
|
+
hideLabel,
|
|
774
|
+
labelClassName,
|
|
775
|
+
config,
|
|
776
|
+
labelKey
|
|
777
|
+
]);
|
|
778
|
+
if (!active || !payload?.length) return null;
|
|
779
|
+
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
780
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
781
|
+
ref,
|
|
782
|
+
className: cn("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-[var(--glass-border)] bg-[var(--glass-bg)] px-2.5 py-1.5 text-xs shadow-xl backdrop-blur-md", className),
|
|
783
|
+
children: [!nestLabel ? tooltipLabel : null, /* @__PURE__ */ jsx("div", {
|
|
784
|
+
className: "grid gap-1.5",
|
|
785
|
+
children: payload.map((item, index) => {
|
|
786
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, `${nameKey || item.name || item.dataKey || "value"}`);
|
|
787
|
+
const indicatorColor = item.fill || item.color;
|
|
788
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
789
|
+
className: cn("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-[var(--text-muted)]", indicator === "dot" && "items-center"),
|
|
790
|
+
children: [itemConfig?.icon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx("div", {
|
|
791
|
+
className: cn("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]", {
|
|
792
|
+
"h-2.5 w-2.5": indicator === "dot",
|
|
793
|
+
"w-1": indicator === "line",
|
|
794
|
+
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
795
|
+
"my-0.5": nestLabel && indicator === "dashed"
|
|
796
|
+
}),
|
|
797
|
+
style: {
|
|
798
|
+
"--color-bg": indicatorColor,
|
|
799
|
+
"--color-border": indicatorColor
|
|
800
|
+
}
|
|
801
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
802
|
+
className: cn("flex flex-1 justify-between leading-none", nestLabel ? "items-end" : "items-center"),
|
|
803
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
804
|
+
className: "grid gap-1.5",
|
|
805
|
+
children: [nestLabel ? tooltipLabel : null, /* @__PURE__ */ jsx("span", {
|
|
806
|
+
className: "text-[var(--text-muted)]",
|
|
807
|
+
children: itemConfig?.label || item.name
|
|
808
|
+
})]
|
|
809
|
+
}), item.value !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
810
|
+
className: "font-mono font-medium tabular-nums text-[var(--text-primary)]",
|
|
811
|
+
children: valueFormatter ? valueFormatter(item.value) : item.value.toLocaleString()
|
|
812
|
+
})]
|
|
813
|
+
})]
|
|
814
|
+
}, `${item.dataKey}-${index}`);
|
|
815
|
+
})
|
|
816
|
+
})]
|
|
817
|
+
});
|
|
818
|
+
});
|
|
819
|
+
ChartTooltipContent.displayName = "ChartTooltipContent";
|
|
820
|
+
var ChartLegend = Legend;
|
|
821
|
+
var ChartLegendContent = React.forwardRef(({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
822
|
+
const { config } = useChart();
|
|
823
|
+
if (!payload?.length) return null;
|
|
824
|
+
return /* @__PURE__ */ jsx("div", {
|
|
825
|
+
ref,
|
|
826
|
+
className: cn("flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className),
|
|
827
|
+
children: payload.map((item) => {
|
|
828
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, `${nameKey || item.dataKey || "value"}`);
|
|
829
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
830
|
+
className: cn("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-[var(--text-muted)]"),
|
|
831
|
+
children: [itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : /* @__PURE__ */ jsx("div", {
|
|
832
|
+
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
833
|
+
style: { backgroundColor: item.color }
|
|
834
|
+
}), itemConfig?.label]
|
|
835
|
+
}, item.value);
|
|
836
|
+
})
|
|
837
|
+
});
|
|
838
|
+
});
|
|
839
|
+
ChartLegendContent.displayName = "ChartLegendContent";
|
|
840
|
+
function getPayloadConfigFromPayload(config, payload, key) {
|
|
841
|
+
if (typeof payload !== "object" || payload === null) return;
|
|
842
|
+
const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
|
|
843
|
+
let configLabelKey = key;
|
|
844
|
+
if (key in config) return config[key];
|
|
845
|
+
if (payloadPayload && key in payloadPayload) configLabelKey = payloadPayload[key];
|
|
846
|
+
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
847
|
+
}
|
|
7
848
|
const dropdownAlign = cva("absolute mt-2 min-w-[160px] md:min-w-[200px] rounded-2xl py-1.5 md:py-2", {
|
|
8
849
|
variants: { align: {
|
|
9
850
|
left: "left-0",
|
|
@@ -51,6 +892,6 @@ const buttonVariants = cva("inline-flex items-center justify-center gap-2 whites
|
|
|
51
892
|
size: "default"
|
|
52
893
|
}
|
|
53
894
|
});
|
|
54
|
-
export { AICardGlass, AlertGlass, AvatarGlass, BadgeGlass, BaseProgressGlass, ButtonGlass, CareerStatsGlass, CareerStatsHeaderGlass, CheckboxGlass, CircularMetricGlass, CircularProgressGlass, ComboBoxGlass, ContributionMetricsGlass, DropdownGlass, ExpandableHeaderGlass, FlagAlertGlass, FlagsSectionGlass, FormFieldWrapper, GlassCard, HeaderBrandingGlass, HeaderNavGlass, IconButtonGlass, InputGlass, InteractiveCard, LanguageBarGlass, MetricCardGlass, MetricsGridGlass, ModalGlass, NotificationGlass, PopoverGlass, ProfileAvatarGlass, ProfileHeaderGlass, ProgressGlass, ProjectsListGlass, RainbowProgressGlass, RepositoryCardGlass, RepositoryHeaderGlass, RepositoryMetadataGlass, SearchBoxGlass, SegmentedControlGlass, SkeletonGlass, SliderGlass, SortDropdownGlass, StatItemGlass, StatusIndicatorGlass, THEMES, THEME_CONFIG, TabsGlass, ThemeProvider, ThemeToggleGlass, ToggleGlass, TooltipGlass, TouchTarget, TrustScoreCardGlass, TrustScoreDisplayGlass, UserInfoGlass, UserStatsLineGlass, YearCardGlass, alertVariants, avatarSizes, badgeVariants, buttonGlassVariants, cardIntensity, cn, dropdownAlign, getNextTheme, getThemeConfig, inputVariants, modalSizes, notificationVariants, progressSizes, alertVariants$1 as shadcnAlertVariants, badgeVariants$1 as shadcnBadgeVariants, buttonVariants as shadcnButtonVariants, skeletonVariants, statusSizes, toggleSizes, tooltipPositions, useFocus, useHover, useResponsive, useTheme, useWallpaperTint };
|
|
895
|
+
export { AICardGlass, AlertGlass, AvatarGlass, BadgeGlass, Bar, BarChart, BaseProgressGlass, ButtonGlass, CareerStatsGlass, CareerStatsHeaderGlass, Cell, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, CheckboxGlass, CircularMetricGlass, CircularProgressGlass, ComboBoxGlass, ContributionMetricsGlass, DropdownGlass, ExpandableHeaderGlass, FlagAlertGlass, FlagsSectionGlass, FormFieldWrapper, GlassCard, HeaderBrandingGlass, HeaderNavGlass, IconButtonGlass, InputGlass, InsightCardGlass, InteractiveCard, LanguageBarGlass, MetricCardGlass, MetricsGridGlass, ModalGlass, NotificationGlass, PopoverGlass, ProfileAvatarGlass, ProfileHeaderGlass, ProgressGlass, ProjectsListGlass, RainbowProgressGlass, RepositoryCardGlass, RepositoryHeaderGlass, RepositoryMetadataGlass, ResponsiveContainer, SearchBoxGlass, SegmentedControlGlass, SkeletonGlass, SliderGlass, SortDropdownGlass, SparklineGlass, StatItemGlass, StatusIndicatorGlass, StepperGlass, THEMES, THEME_CONFIG, TabsGlass, ThemeProvider, ThemeToggleGlass, ToggleGlass, TooltipGlass, TouchTarget, TrustScoreCardGlass, TrustScoreDisplayGlass, UserInfoGlass, UserStatsLineGlass, YearCardGlass, alertVariants, avatarSizes, badgeVariants, buttonGlassVariants, cardIntensity, cn, dropdownAlign, getNextTheme, getThemeConfig, inputVariants, insightCardVariants, insightVariantConfig, modalSizes, notificationVariants, progressSizes, alertVariants$1 as shadcnAlertVariants, badgeVariants$1 as shadcnBadgeVariants, buttonVariants as shadcnButtonVariants, skeletonVariants, sparklineBarVariants, sparklineContainerVariants, statusSizes, stepperConnectorVariants, stepperContentVariants, stepperDescriptionVariants, stepperIndicatorVariants, stepperLabelVariants, stepperListVariants, stepperRootVariants, stepperStepContainerVariants, toggleSizes, tooltipPositions, useChart, useFocus, useHover, useResponsive, useTheme, useWallpaperTint };
|
|
55
896
|
|
|
56
897
|
//# sourceMappingURL=index.js.map
|