shadcn-glass-ui 1.0.11 → 2.0.1

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.
Files changed (215) hide show
  1. package/CHANGELOG.md +213 -0
  2. package/README.md +174 -17
  3. package/context7.json +58 -0
  4. package/dist/cli/index.cjs +470 -0
  5. package/dist/cli/index.cjs.map +1 -0
  6. package/dist/cli/index.d.ts +18 -0
  7. package/dist/cli/index.js +469 -0
  8. package/dist/cli/index.js.map +1 -0
  9. package/dist/components.cjs +4 -4
  10. package/dist/components.d.ts +153 -22
  11. package/dist/components.js +2 -2
  12. package/dist/hooks.cjs +2 -2
  13. package/dist/index.cjs +872 -5
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.ts +0 -2390
  16. package/dist/index.js +844 -3
  17. package/dist/index.js.map +1 -1
  18. package/dist/r/ai-card-glass.json +1 -1
  19. package/dist/r/avatar-glass.json +1 -1
  20. package/dist/r/circular-metric-glass.json +1 -1
  21. package/dist/r/circular-progress-glass.json +1 -1
  22. package/dist/r/combobox-glass.json +1 -1
  23. package/dist/r/flag-alert-glass.json +1 -1
  24. package/dist/r/flags-section-glass.json +1 -1
  25. package/dist/r/insight-card-glass.json +26 -0
  26. package/dist/r/interactive-card.json +1 -1
  27. package/dist/r/language-bar-glass.json +1 -1
  28. package/dist/r/metric-card-glass.json +3 -2
  29. package/dist/r/metrics-grid-glass.json +1 -1
  30. package/dist/r/modal-glass.json +1 -1
  31. package/dist/r/progress-glass.json +1 -1
  32. package/dist/r/registry.json +19 -1
  33. package/dist/r/segmented-control-glass.json +1 -1
  34. package/dist/r/sparkline-glass.json +26 -0
  35. package/dist/r/stepper-glass.json +41 -0
  36. package/dist/r/tabs-glass.json +1 -1
  37. package/dist/r/trust-score-card-glass.json +1 -1
  38. package/dist/r/year-card-glass.json +1 -1
  39. package/dist/shadcn-glass-ui.css +1 -1
  40. package/dist/{theme-context-XtasSxRT.cjs → theme-context-CVW50BKW.cjs} +2 -2
  41. package/dist/{theme-context-XtasSxRT.cjs.map → theme-context-CVW50BKW.cjs.map} +1 -1
  42. package/dist/themes.cjs +1 -1
  43. package/dist/trust-score-card-glass-BcZbul0P.js +26895 -0
  44. package/dist/trust-score-card-glass-BcZbul0P.js.map +1 -0
  45. package/dist/trust-score-card-glass-r3qM09Jp.cjs +27689 -0
  46. package/dist/trust-score-card-glass-r3qM09Jp.cjs.map +1 -0
  47. package/dist/{use-focus-BbpE2qGq.cjs → use-focus-ZE8ozmZE.cjs} +2 -2
  48. package/dist/{use-focus-BbpE2qGq.cjs.map → use-focus-ZE8ozmZE.cjs.map} +1 -1
  49. package/dist/{use-wallpaper-tint-CIqtoETa.cjs → use-wallpaper-tint-BuS80tbN.cjs} +2 -2
  50. package/dist/{use-wallpaper-tint-CIqtoETa.cjs.map → use-wallpaper-tint-BuS80tbN.cjs.map} +1 -1
  51. package/dist/{utils-CGCOTvxT.js → utils-CcyeqpKQ.js} +1 -1
  52. package/dist/{utils-CGCOTvxT.js.map → utils-CcyeqpKQ.js.map} +1 -1
  53. package/dist/{utils-CriE74ig.cjs → utils-DLXayspX.cjs} +2 -2
  54. package/dist/{utils-CriE74ig.cjs.map → utils-DLXayspX.cjs.map} +1 -1
  55. package/dist/utils.cjs +1 -1
  56. package/dist/utils.js +1 -1
  57. package/docs/AI_IMPROVEMENTS_COMPLETE.md +574 -0
  58. package/docs/AI_USAGE.md +1328 -0
  59. package/docs/API_PATTERNS_COMPARISON.md +418 -0
  60. package/docs/BEST_PRACTICES.md +800 -0
  61. package/docs/COMPLIANCE_CHECKLIST.md +307 -0
  62. package/docs/COMPLIANCE_TESTING.md +436 -0
  63. package/docs/COMPONENTS_CATALOG.md +1076 -0
  64. package/docs/CSS_VARIABLES_AUDIT.md +306 -0
  65. package/docs/CSS_VARIABLES_REFACTORING_PLAN.md +330 -0
  66. package/docs/EXPORTS_MAP.json +875 -0
  67. package/docs/EXPORTS_STRUCTURE.md +729 -0
  68. package/docs/GETTING_STARTED.md +655 -0
  69. package/docs/METRIC_CARD_API_REDESIGN.md +354 -0
  70. package/docs/PRIMITIVE_MAPPING.md +404 -0
  71. package/docs/PUBLISHING.md +593 -0
  72. package/docs/REGISTRY_SUMMARY.md +96 -0
  73. package/docs/REGISTRY_USAGE.md +339 -0
  74. package/docs/SECURITY.md +117 -0
  75. package/docs/THEME_CREATION_GUIDE.md +455 -0
  76. package/docs/TOKEN_ARCHITECTURE.md +365 -0
  77. package/docs/announcements/v1.0.5-devto.md +363 -0
  78. package/docs/announcements/v1.0.5-reddit.md +115 -0
  79. package/docs/announcements/v1.0.5-twitter.md +70 -0
  80. package/docs/api/README.md +725 -0
  81. package/docs/api/functions/ThemeProvider.md +21 -0
  82. package/docs/api/functions/cn.md +27 -0
  83. package/docs/api/functions/getNextTheme.md +21 -0
  84. package/docs/api/functions/getThemeConfig.md +21 -0
  85. package/docs/api/functions/useFocus.md +53 -0
  86. package/docs/api/functions/useHover.md +47 -0
  87. package/docs/api/functions/useResponsive.md +31 -0
  88. package/docs/api/functions/useTheme.md +15 -0
  89. package/docs/api/functions/useWallpaperTint.md +36 -0
  90. package/docs/api/globals.md +139 -0
  91. package/docs/api/interfaces/AlertGlassProps.md +131 -0
  92. package/docs/api/interfaces/AvatarGlassProps.md +114 -0
  93. package/docs/api/interfaces/BadgeGlassProps.md +118 -0
  94. package/docs/api/interfaces/ButtonGlassProps.md +179 -0
  95. package/docs/api/interfaces/CheckboxGlassProps.md +125 -0
  96. package/docs/api/interfaces/DropdownGlassProps.md +123 -0
  97. package/docs/api/interfaces/DropdownItem.md +53 -0
  98. package/docs/api/interfaces/GlassCardProps.md +151 -0
  99. package/docs/api/interfaces/InputGlassProps.md +169 -0
  100. package/docs/api/interfaces/NotificationGlassProps.md +67 -0
  101. package/docs/api/interfaces/ProgressGlassProps.md +49 -0
  102. package/docs/api/interfaces/SkeletonGlassProps.md +41 -0
  103. package/docs/api/interfaces/SliderGlassProps.md +107 -0
  104. package/docs/api/interfaces/TabItem.md +25 -0
  105. package/docs/api/interfaces/ThemeConfig.md +25 -0
  106. package/docs/api/interfaces/ThemeContextValue.md +47 -0
  107. package/docs/api/interfaces/ToggleGlassProps.md +59 -0
  108. package/docs/api/interfaces/TooltipGlassProps.md +119 -0
  109. package/docs/api/type-aliases/AlertType.md +11 -0
  110. package/docs/api/type-aliases/AlertVariant.md +11 -0
  111. package/docs/api/type-aliases/AvatarSize.md +11 -0
  112. package/docs/api/type-aliases/AvatarStatus.md +13 -0
  113. package/docs/api/type-aliases/BadgeSize.md +11 -0
  114. package/docs/api/type-aliases/BadgeVariant.md +11 -0
  115. package/docs/api/type-aliases/ButtonGlassSize.md +11 -0
  116. package/docs/api/type-aliases/ButtonGlassVariant.md +11 -0
  117. package/docs/api/type-aliases/DropdownAlign.md +11 -0
  118. package/docs/api/type-aliases/GlowType.md +11 -0
  119. package/docs/api/type-aliases/InputGlassSize.md +11 -0
  120. package/docs/api/type-aliases/IntensityType.md +11 -0
  121. package/docs/api/type-aliases/ModalSize.md +11 -0
  122. package/docs/api/type-aliases/NotificationType.md +11 -0
  123. package/docs/api/type-aliases/PaddingType.md +11 -0
  124. package/docs/api/type-aliases/ProgressGradient.md +11 -0
  125. package/docs/api/type-aliases/ProgressSize.md +11 -0
  126. package/docs/api/type-aliases/SkeletonVariant.md +11 -0
  127. package/docs/api/type-aliases/Theme.md +11 -0
  128. package/docs/api/type-aliases/ToggleGlassSize.md +11 -0
  129. package/docs/api/type-aliases/TooltipPosition.md +11 -0
  130. package/docs/api/variables/AICardGlass.md +11 -0
  131. package/docs/api/variables/AlertGlass.md +11 -0
  132. package/docs/api/variables/AvatarGlass.md +11 -0
  133. package/docs/api/variables/BadgeGlass.md +11 -0
  134. package/docs/api/variables/BaseProgressGlass.md +11 -0
  135. package/docs/api/variables/ButtonGlass.md +11 -0
  136. package/docs/api/variables/CareerStatsGlass.md +11 -0
  137. package/docs/api/variables/CareerStatsHeaderGlass.md +11 -0
  138. package/docs/api/variables/CheckboxGlass.md +11 -0
  139. package/docs/api/variables/CircularMetricGlass.md +22 -0
  140. package/docs/api/variables/CircularProgressGlass.md +11 -0
  141. package/docs/api/variables/ComboBoxGlass.md +27 -0
  142. package/docs/api/variables/ContributionMetricsGlass.md +11 -0
  143. package/docs/api/variables/DropdownGlass.md +11 -0
  144. package/docs/api/variables/ExpandableHeaderGlass.md +11 -0
  145. package/docs/api/variables/FlagAlertGlass.md +11 -0
  146. package/docs/api/variables/FlagsSectionGlass.md +11 -0
  147. package/docs/api/variables/FormFieldWrapper.md +44 -0
  148. package/docs/api/variables/GlassCard.md +11 -0
  149. package/docs/api/variables/HeaderBrandingGlass.md +11 -0
  150. package/docs/api/variables/HeaderNavGlass.md +11 -0
  151. package/docs/api/variables/IconButtonGlass.md +11 -0
  152. package/docs/api/variables/InputGlass.md +11 -0
  153. package/docs/api/variables/InteractiveCard.md +45 -0
  154. package/docs/api/variables/LanguageBarGlass.md +11 -0
  155. package/docs/api/variables/MetricCardGlass.md +11 -0
  156. package/docs/api/variables/MetricsGridGlass.md +11 -0
  157. package/docs/api/variables/ModalGlass.md +72 -0
  158. package/docs/api/variables/NotificationGlass.md +11 -0
  159. package/docs/api/variables/PopoverGlass.md +11 -0
  160. package/docs/api/variables/ProfileAvatarGlass.md +11 -0
  161. package/docs/api/variables/ProfileHeaderGlass.md +11 -0
  162. package/docs/api/variables/ProgressGlass.md +11 -0
  163. package/docs/api/variables/ProjectsListGlass.md +11 -0
  164. package/docs/api/variables/RainbowProgressGlass.md +11 -0
  165. package/docs/api/variables/RepositoryCardGlass.md +11 -0
  166. package/docs/api/variables/RepositoryHeaderGlass.md +11 -0
  167. package/docs/api/variables/RepositoryMetadataGlass.md +11 -0
  168. package/docs/api/variables/SearchBoxGlass.md +11 -0
  169. package/docs/api/variables/SegmentedControlGlass.md +11 -0
  170. package/docs/api/variables/SkeletonGlass.md +11 -0
  171. package/docs/api/variables/SliderGlass.md +11 -0
  172. package/docs/api/variables/SortDropdownGlass.md +11 -0
  173. package/docs/api/variables/StatItemGlass.md +11 -0
  174. package/docs/api/variables/StatusIndicatorGlass.md +11 -0
  175. package/docs/api/variables/THEMES.md +11 -0
  176. package/docs/api/variables/THEME_CONFIG.md +11 -0
  177. package/docs/api/variables/TabsGlass.md +52 -0
  178. package/docs/api/variables/ThemeToggleGlass.md +11 -0
  179. package/docs/api/variables/ToggleGlass.md +11 -0
  180. package/docs/api/variables/TooltipGlass.md +11 -0
  181. package/docs/api/variables/TouchTarget.md +35 -0
  182. package/docs/api/variables/TrustScoreCardGlass.md +11 -0
  183. package/docs/api/variables/TrustScoreDisplayGlass.md +11 -0
  184. package/docs/api/variables/UserInfoGlass.md +11 -0
  185. package/docs/api/variables/UserStatsLineGlass.md +11 -0
  186. package/docs/api/variables/YearCardGlass.md +11 -0
  187. package/docs/api/variables/alertVariants.md +21 -0
  188. package/docs/api/variables/avatarSizes.md +21 -0
  189. package/docs/api/variables/badgeVariants.md +21 -0
  190. package/docs/api/variables/buttonGlassVariants.md +21 -0
  191. package/docs/api/variables/cardIntensity.md +21 -0
  192. package/docs/api/variables/dropdownAlign.md +21 -0
  193. package/docs/api/variables/inputVariants.md +21 -0
  194. package/docs/api/variables/modalSizes.md +21 -0
  195. package/docs/api/variables/notificationVariants.md +21 -0
  196. package/docs/api/variables/progressSizes.md +21 -0
  197. package/docs/api/variables/shadcnAlertVariants.md +21 -0
  198. package/docs/api/variables/shadcnBadgeVariants.md +21 -0
  199. package/docs/api/variables/shadcnButtonVariants.md +21 -0
  200. package/docs/api/variables/skeletonVariants.md +21 -0
  201. package/docs/api/variables/statusSizes.md +21 -0
  202. package/docs/api/variables/toggleSizes.md +21 -0
  203. package/docs/api/variables/tooltipPositions.md +21 -0
  204. package/docs/design-system/UI_DESIGN.md +628 -0
  205. package/docs/migration/CSS_VARIABLES_MIGRATION_2.0.md +325 -0
  206. package/docs/migration/modal-glass-compound-api.md +458 -0
  207. package/docs/migration/select-to-combobox.md +386 -0
  208. package/docs/migration/tabs-glass-compound-api.md +579 -0
  209. package/docs/technical/DEPENDENCIES.md +291 -0
  210. package/docs/visual-testing-guide.md +324 -0
  211. package/package.json +20 -3
  212. package/dist/trust-score-card-glass-CNcQveNY.cjs +0 -8231
  213. package/dist/trust-score-card-glass-CNcQveNY.cjs.map +0 -1
  214. package/dist/trust-score-card-glass-CowcDyxH.js +0 -7795
  215. package/dist/trust-score-card-glass-CowcDyxH.js.map +0 -1
@@ -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 = "warning" | "danger";
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-emerald-bg)"
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
- readonly label: string;
1153
- readonly value: number;
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
- declare type MetricColor = "emerald" | "amber" | "blue" | "red";
1229
+ /** @deprecated Use MetricVariant instead */
1230
+ declare type MetricColor = 'emerald' | 'amber' | 'blue' | 'red';
1158
1231
 
1159
1232
  declare interface MetricData {
1160
- readonly label: string;
1161
- readonly value: number;
1162
- readonly color: MetricColor;
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 label: string;
1167
- readonly value: number;
1168
- readonly color: MetricColor;
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 React.HTMLAttributes<HTMLDivElement> {
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>, "onChange"> {
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 {
@@ -1,5 +1,5 @@
1
- import "./utils-CGCOTvxT.js";
2
- import { $ as ComboBoxGlass, A as ThemeToggleGlass, B as TabsGlass, C as ProgressGlass, D as FlagAlertGlass, E as LanguageBarGlass, F as ExpandableHeaderGlass, G as NotificationGlass, H as SkeletonGlass, I as TooltipGlass, M as SortDropdownGlass, N as SearchBoxGlass, O as StatusIndicatorGlass, P as IconButtonGlass, Q as DropdownGlass, R as ToggleGlass, S as RainbowProgressGlass, T as ProfileAvatarGlass, V as SliderGlass, W as PopoverGlass, X as GlassCard, Y as InputGlass, _ as ContributionMetricsGlass, a as HeaderBrandingGlass, at as BadgeGlass, b as AICardGlass, c as YearCardGlass, d as TrustScoreDisplayGlass, dt as InteractiveCard, f as RepositoryMetadataGlass, ft as FormFieldWrapper, g as MetricCardGlass, h as MetricsGridGlass, i as HeaderNavGlass, j as StatItemGlass, k as BaseProgressGlass, l as UserStatsLineGlass, m as RepositoryCardGlass, n as ProjectsListGlass, nt as CheckboxGlass, o as FlagsSectionGlass, p as RepositoryHeaderGlass, pt as TouchTarget, q as ModalGlass, r as ProfileHeaderGlass, rt as ButtonGlass, s as CareerStatsGlass, st as AvatarGlass, t as TrustScoreCardGlass, tt as CircularProgressGlass, u as UserInfoGlass, ut as AlertGlass, v as CircularMetricGlass, x as SegmentedControlGlass, y as CareerStatsHeaderGlass } from "./trust-score-card-glass-CowcDyxH.js";
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-BbpE2qGq.cjs");
2
- const require_use_wallpaper_tint = require("./use-wallpaper-tint-CIqtoETa.cjs");
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;