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/components.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
2
|
import { ClassProp } from 'class-variance-authority/types';
|
|
3
|
+
import { default as default_2 } from 'react';
|
|
3
4
|
import { FC } from 'react';
|
|
4
5
|
import { ForwardRefExoticComponent } from 'react';
|
|
5
6
|
import { HTMLAttributes } from 'react';
|
|
@@ -743,7 +744,7 @@ declare interface FlagsSectionGlassProps extends React.HTMLAttributes<HTMLDivEle
|
|
|
743
744
|
readonly onToggle?: () => void;
|
|
744
745
|
}
|
|
745
746
|
|
|
746
|
-
declare type FlagType =
|
|
747
|
+
declare type FlagType = 'warning' | 'danger';
|
|
747
748
|
|
|
748
749
|
/**
|
|
749
750
|
* FormFieldWrapper component
|
|
@@ -1070,7 +1071,7 @@ declare const inputVariants: (props?: ({
|
|
|
1070
1071
|
* <InteractiveCard
|
|
1071
1072
|
* blur="md"
|
|
1072
1073
|
* rounded="rounded-3xl"
|
|
1073
|
-
* baseBg="var(--metric-
|
|
1074
|
+
* baseBg="var(--metric-success-bg)"
|
|
1074
1075
|
* >
|
|
1075
1076
|
* <StatusCard />
|
|
1076
1077
|
* </InteractiveCard>
|
|
@@ -1148,24 +1149,96 @@ declare interface LanguageData {
|
|
|
1148
1149
|
|
|
1149
1150
|
export declare const MetricCardGlass: ForwardRefExoticComponent<MetricCardGlassProps & RefAttributes<HTMLDivElement>>;
|
|
1150
1151
|
|
|
1152
|
+
/**
|
|
1153
|
+
* MetricCardGlass Props
|
|
1154
|
+
*
|
|
1155
|
+
* Follows shadcn/ui Card pattern with Glass UI extensions.
|
|
1156
|
+
* Compatible with AlertGlass, BadgeGlass, ButtonGlass variant system.
|
|
1157
|
+
*
|
|
1158
|
+
* @example Simple usage (shadcn/ui style)
|
|
1159
|
+
* ```tsx
|
|
1160
|
+
* <MetricCardGlass
|
|
1161
|
+
* title="Total Revenue"
|
|
1162
|
+
* value="$45,231"
|
|
1163
|
+
* change="+12.5%"
|
|
1164
|
+
* variant="success"
|
|
1165
|
+
* icon={<DollarSign />}
|
|
1166
|
+
* />
|
|
1167
|
+
* ```
|
|
1168
|
+
*
|
|
1169
|
+
* @example With progress and sparkline (Glass UI extensions)
|
|
1170
|
+
* ```tsx
|
|
1171
|
+
* <MetricCardGlass
|
|
1172
|
+
* title="Completion Rate"
|
|
1173
|
+
* value="85%"
|
|
1174
|
+
* description="Project milestones"
|
|
1175
|
+
* change={{ value: 5.2, direction: 'up', period: 'vs last month' }}
|
|
1176
|
+
* variant="success"
|
|
1177
|
+
* progress={85}
|
|
1178
|
+
* sparklineData={[70, 75, 78, 80, 82, 84, 85]}
|
|
1179
|
+
* showProgress
|
|
1180
|
+
* showSparkline
|
|
1181
|
+
* />
|
|
1182
|
+
* ```
|
|
1183
|
+
*/
|
|
1151
1184
|
declare interface MetricCardGlassProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1152
|
-
|
|
1153
|
-
readonly
|
|
1185
|
+
/** Metric title (shadcn/ui Card: title) */
|
|
1186
|
+
readonly title: string;
|
|
1187
|
+
/** Display value (shadcn/ui Card: value) */
|
|
1188
|
+
readonly value: string | number;
|
|
1189
|
+
/** Optional description/subtitle (shadcn/ui Card: description) */
|
|
1190
|
+
readonly description?: string;
|
|
1191
|
+
/** Change indicator (shadcn/ui: change). Can be string "+12.5%" or detailed object */
|
|
1192
|
+
readonly change?: string | number | MetricChange;
|
|
1193
|
+
/** Semantic variant (follows AlertGlass, BadgeGlass pattern) */
|
|
1194
|
+
readonly variant?: MetricVariant;
|
|
1195
|
+
/** Icon to display */
|
|
1196
|
+
readonly icon?: ReactNode;
|
|
1197
|
+
/** Data for sparkline visualization */
|
|
1198
|
+
readonly sparklineData?: readonly number[];
|
|
1199
|
+
/** Show sparkline chart */
|
|
1200
|
+
readonly showSparkline?: boolean;
|
|
1201
|
+
/** Show progress bar (requires progress prop) */
|
|
1202
|
+
readonly showProgress?: boolean;
|
|
1203
|
+
/** Progress percentage (0-100, separate from display value) */
|
|
1204
|
+
readonly progress?: number;
|
|
1205
|
+
/** @deprecated Use `title` instead. Will be removed in v2.0 */
|
|
1206
|
+
readonly label?: string;
|
|
1207
|
+
/** @deprecated Use `variant` instead. Mapping: emerald→success, amber→warning, blue→default, red→destructive. Will be removed in v2.0 */
|
|
1154
1208
|
readonly color?: MetricColor;
|
|
1209
|
+
/** @deprecated Format value before passing. Use `value` prop directly. Will be removed in v2.0 */
|
|
1210
|
+
readonly valueFormatter?: (value: number) => string;
|
|
1211
|
+
/** @deprecated Use `description` instead. Will be removed in v2.0 */
|
|
1212
|
+
readonly valueSuffix?: string;
|
|
1213
|
+
/** @deprecated Use `change` instead. Will be removed in v2.0 */
|
|
1214
|
+
readonly trend?: MetricTrend;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* Detailed change object with trend information
|
|
1219
|
+
*/
|
|
1220
|
+
declare interface MetricChange {
|
|
1221
|
+
/** Change value (e.g., 12.5 for +12.5%) */
|
|
1222
|
+
readonly value: number;
|
|
1223
|
+
/** Trend direction (auto-detected from value if not provided) */
|
|
1224
|
+
readonly direction?: TrendDirection;
|
|
1225
|
+
/** Optional period label (e.g., "vs last month") */
|
|
1226
|
+
readonly period?: string;
|
|
1155
1227
|
}
|
|
1156
1228
|
|
|
1157
|
-
|
|
1229
|
+
/** @deprecated Use MetricVariant instead */
|
|
1230
|
+
declare type MetricColor = 'emerald' | 'amber' | 'blue' | 'red';
|
|
1158
1231
|
|
|
1159
1232
|
declare interface MetricData {
|
|
1160
|
-
readonly
|
|
1161
|
-
readonly value: number;
|
|
1162
|
-
readonly
|
|
1233
|
+
readonly title: string;
|
|
1234
|
+
readonly value: string | number;
|
|
1235
|
+
readonly variant: MetricVariant;
|
|
1163
1236
|
}
|
|
1164
1237
|
|
|
1165
1238
|
declare interface MetricData_2 {
|
|
1166
|
-
readonly
|
|
1167
|
-
readonly value: number;
|
|
1168
|
-
readonly
|
|
1239
|
+
readonly title: string;
|
|
1240
|
+
readonly value: string | number;
|
|
1241
|
+
readonly variant: MetricVariant;
|
|
1169
1242
|
}
|
|
1170
1243
|
|
|
1171
1244
|
export declare const MetricsGridGlass: ForwardRefExoticComponent<MetricsGridGlassProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -1179,6 +1252,23 @@ declare interface MetricsGridGlassProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1179
1252
|
readonly gap?: 'sm' | 'md' | 'lg';
|
|
1180
1253
|
}
|
|
1181
1254
|
|
|
1255
|
+
/** @deprecated Use MetricChange instead */
|
|
1256
|
+
declare interface MetricTrend {
|
|
1257
|
+
readonly value: number;
|
|
1258
|
+
readonly direction: TrendDirection;
|
|
1259
|
+
readonly label?: string;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* Metric variant system (following AlertGlass, BadgeGlass pattern)
|
|
1264
|
+
* - default: Blue (primary metric)
|
|
1265
|
+
* - secondary: Gray (neutral metric)
|
|
1266
|
+
* - success: Green (positive metric)
|
|
1267
|
+
* - warning: Yellow (caution metric)
|
|
1268
|
+
* - destructive: Red (negative metric)
|
|
1269
|
+
*/
|
|
1270
|
+
declare type MetricVariant = 'default' | 'secondary' | 'success' | 'warning' | 'destructive';
|
|
1271
|
+
|
|
1182
1272
|
declare interface ModalBodyProps {
|
|
1183
1273
|
children: ReactNode;
|
|
1184
1274
|
className?: string;
|
|
@@ -1227,15 +1317,15 @@ declare interface ModalFooterProps {
|
|
|
1227
1317
|
* ```
|
|
1228
1318
|
*/
|
|
1229
1319
|
export declare const ModalGlass: {
|
|
1230
|
-
Root: FC<ModalRootProps>;
|
|
1231
|
-
Overlay: FC<ModalOverlayProps>;
|
|
1232
|
-
Content: ForwardRefExoticComponent<ModalContentProps & RefAttributes<HTMLDivElement>>;
|
|
1233
|
-
Header: FC<ModalHeaderProps>;
|
|
1234
|
-
Body: FC<ModalBodyProps>;
|
|
1235
|
-
Footer: FC<ModalFooterProps>;
|
|
1236
|
-
Title: FC<ModalTitleProps>;
|
|
1237
|
-
Description: FC<ModalDescriptionProps>;
|
|
1238
|
-
Close: FC<ModalCloseProps>;
|
|
1320
|
+
Root: default_2.FC<ModalRootProps>;
|
|
1321
|
+
Overlay: default_2.FC<ModalOverlayProps>;
|
|
1322
|
+
Content: default_2.ForwardRefExoticComponent<ModalContentProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
1323
|
+
Header: default_2.FC<ModalHeaderProps>;
|
|
1324
|
+
Body: default_2.FC<ModalBodyProps>;
|
|
1325
|
+
Footer: default_2.FC<ModalFooterProps>;
|
|
1326
|
+
Title: default_2.FC<ModalTitleProps>;
|
|
1327
|
+
Description: default_2.FC<ModalDescriptionProps>;
|
|
1328
|
+
Close: default_2.FC<ModalCloseProps>;
|
|
1239
1329
|
};
|
|
1240
1330
|
|
|
1241
1331
|
declare interface ModalHeaderProps {
|
|
@@ -1341,7 +1431,7 @@ declare interface ModalOverlayProps {
|
|
|
1341
1431
|
* </ModalGlass.Root>
|
|
1342
1432
|
* ```
|
|
1343
1433
|
*/
|
|
1344
|
-
declare interface ModalRootProps extends
|
|
1434
|
+
declare interface ModalRootProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
1345
1435
|
/** Open state */
|
|
1346
1436
|
open: boolean;
|
|
1347
1437
|
/** Callback when open state changes */
|
|
@@ -1573,7 +1663,7 @@ declare interface SearchBoxGlassProps extends Omit<InputHTMLAttributes<HTMLInput
|
|
|
1573
1663
|
|
|
1574
1664
|
export declare const SegmentedControlGlass: ForwardRefExoticComponent<SegmentedControlGlassProps & RefAttributes<HTMLDivElement>>;
|
|
1575
1665
|
|
|
1576
|
-
declare interface SegmentedControlGlassProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
1666
|
+
declare interface SegmentedControlGlassProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
1577
1667
|
readonly options: readonly SegmentOption[];
|
|
1578
1668
|
readonly value: string;
|
|
1579
1669
|
readonly onChange?: (value: string) => void;
|
|
@@ -1963,6 +2053,8 @@ declare interface TouchTargetProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1963
2053
|
center?: boolean;
|
|
1964
2054
|
}
|
|
1965
2055
|
|
|
2056
|
+
declare type TrendDirection = 'up' | 'down' | 'neutral';
|
|
2057
|
+
|
|
1966
2058
|
export declare const TrustScoreCardGlass: ForwardRefExoticComponent<TrustScoreCardGlassProps & RefAttributes<HTMLDivElement>>;
|
|
1967
2059
|
|
|
1968
2060
|
declare interface TrustScoreCardGlassProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -2017,17 +2109,56 @@ declare interface UserStatsLineGlassProps extends HTMLAttributes<HTMLDivElement>
|
|
|
2017
2109
|
|
|
2018
2110
|
export declare const YearCardGlass: ForwardRefExoticComponent<YearCardGlassProps & RefAttributes<HTMLDivElement>>;
|
|
2019
2111
|
|
|
2112
|
+
declare interface YearCardGlassInsight {
|
|
2113
|
+
readonly variant?: 'default' | 'tip' | 'highlight' | 'warning' | 'stat' | 'growth' | 'decline';
|
|
2114
|
+
readonly emoji?: string;
|
|
2115
|
+
readonly text: string;
|
|
2116
|
+
readonly detail?: string;
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2020
2119
|
declare interface YearCardGlassProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2120
|
+
/** Year to display (string or number) */
|
|
2021
2121
|
readonly year: string | number;
|
|
2122
|
+
/** Emoji for the badge */
|
|
2022
2123
|
readonly emoji: string;
|
|
2124
|
+
/** Label for the badge (e.g., "Peak Year") */
|
|
2023
2125
|
readonly label: string;
|
|
2126
|
+
/** Primary metric value (e.g., "629 commits") */
|
|
2024
2127
|
readonly commits: string;
|
|
2128
|
+
/** Progress percentage (0-100) */
|
|
2025
2129
|
readonly progress: number;
|
|
2130
|
+
/** Whether the card is expanded to show details */
|
|
2026
2131
|
readonly isExpanded?: boolean;
|
|
2132
|
+
/** Progress bar gradient color */
|
|
2027
2133
|
readonly gradient?: ProgressGradient;
|
|
2134
|
+
/** Number of PRs (shown in expanded view) */
|
|
2028
2135
|
readonly prs?: number;
|
|
2136
|
+
/** Number of repos (shown in expanded view) */
|
|
2029
2137
|
readonly repos?: number;
|
|
2138
|
+
/** Callback when "Show repos" button is clicked */
|
|
2030
2139
|
readonly onShowYear?: () => void;
|
|
2140
|
+
/** Monthly activity data for sparkline */
|
|
2141
|
+
readonly sparklineData?: readonly number[];
|
|
2142
|
+
/** Labels for sparkline (e.g., month names) */
|
|
2143
|
+
readonly sparklineLabels?: readonly string[];
|
|
2144
|
+
/** Insights to display in expanded view */
|
|
2145
|
+
readonly insights?: readonly YearCardGlassInsight[];
|
|
2146
|
+
/** Custom stats for expanded view (replaces default commits/prs/repos grid) */
|
|
2147
|
+
readonly stats?: readonly YearCardGlassStat[];
|
|
2148
|
+
/** Custom action button text */
|
|
2149
|
+
readonly actionLabel?: string;
|
|
2150
|
+
/** Show sparkline in collapsed view */
|
|
2151
|
+
readonly showSparklineCollapsed?: boolean;
|
|
2152
|
+
/** Custom value formatter for commits display */
|
|
2153
|
+
readonly valueFormatter?: (commits: string) => string;
|
|
2154
|
+
/** Additional content for expanded section */
|
|
2155
|
+
readonly children?: ReactNode;
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
declare interface YearCardGlassStat {
|
|
2159
|
+
readonly label: string;
|
|
2160
|
+
readonly value: string | number;
|
|
2161
|
+
readonly icon?: ReactNode;
|
|
2031
2162
|
}
|
|
2032
2163
|
|
|
2033
2164
|
declare interface YearData {
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
1
|
+
import { $ as BaseProgressGlass, At as ButtonGlass, Bt as TouchTarget, Ct as GlassCard, Et as ComboBoxGlass, G as SegmentedControlGlass, K as RainbowProgressGlass, Lt as AlertGlass, Mt as BadgeGlass, Ot as CircularProgressGlass, Pt as AvatarGlass, Q as StatusIndicatorGlass, Rt as InteractiveCard, St as InputGlass, Tt as DropdownGlass, X as LanguageBarGlass, Y as ProfileAvatarGlass, Z as FlagAlertGlass, _ as ContributionMetricsGlass, _t as PopoverGlass, a as HeaderBrandingGlass, b as AICardGlass, bt as ModalGlass, c as YearCardGlass, ct as ExpandableHeaderGlass, d as TrustScoreDisplayGlass, dt as ToggleGlass, et as ThemeToggleGlass, f as RepositoryMetadataGlass, g as MetricCardGlass, h as MetricsGridGlass, ht as SkeletonGlass, i as HeaderNavGlass, kt as CheckboxGlass, l as UserStatsLineGlass, lt as TooltipGlass, m as RepositoryCardGlass, mt as SliderGlass, n as ProjectsListGlass, nt as SortDropdownGlass, o as FlagsSectionGlass, 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, v as CircularMetricGlass, vt as NotificationGlass, y as CareerStatsHeaderGlass, zt as FormFieldWrapper } from "./trust-score-card-glass-BcZbul0P.js";
|
|
2
|
+
import "./utils-CcyeqpKQ.js";
|
|
3
3
|
import "./use-focus-CX0TJJIj.js";
|
|
4
4
|
import "./theme-context-BZoCplcU.js";
|
|
5
5
|
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, TabsGlass, ThemeToggleGlass, ToggleGlass, TooltipGlass, TouchTarget, TrustScoreCardGlass, TrustScoreDisplayGlass, UserInfoGlass, UserStatsLineGlass, YearCardGlass };
|
package/dist/hooks.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_focus = require("./use-focus-
|
|
2
|
-
const require_use_wallpaper_tint = require("./use-wallpaper-tint-
|
|
1
|
+
const require_use_focus = require("./use-focus-ZE8ozmZE.cjs");
|
|
2
|
+
const require_use_wallpaper_tint = require("./use-wallpaper-tint-BuS80tbN.cjs");
|
|
3
3
|
exports.useFocus = require_use_focus.useFocus;
|
|
4
4
|
exports.useHover = require_use_focus.useHover;
|
|
5
5
|
exports.useResponsive = require_use_wallpaper_tint.useResponsive;
|