@minidev.fun/ui 1.0.3 → 1.0.4

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 (263) hide show
  1. package/dist/accordion.d.ts +36 -0
  2. package/dist/alert-dialog.d.ts +114 -0
  3. package/dist/alert.d.ts +41 -0
  4. package/dist/aspect-ratio.d.ts +14 -0
  5. package/dist/avatar.d.ts +55 -0
  6. package/dist/{components/ui/badge.d.ts → badge.d.ts} +22 -16
  7. package/dist/breadcrumb.d.ts +54 -0
  8. package/dist/button-group.d.ts +45 -0
  9. package/dist/{components/ui/button.d.ts → button.d.ts} +46 -41
  10. package/dist/calendar.d.ts +68 -0
  11. package/dist/card.d.ts +45 -0
  12. package/dist/carousel.d.ts +116 -0
  13. package/dist/{components/ui/chart.d.ts → chart.d.ts} +85 -73
  14. package/dist/checkbox.d.ts +14 -0
  15. package/dist/collapsible.d.ts +28 -0
  16. package/dist/combobox.d.ts +113 -0
  17. package/dist/command.d.ts +90 -0
  18. package/dist/components/minidev.fun/undefined/index.d.ts +2 -0
  19. package/dist/components/minidev.fun/undefined/index.js +3 -3
  20. package/dist/components/ui/src/components/ui/accordion.d.ts +2 -0
  21. package/dist/components/ui/src/components/ui/alert-dialog.d.ts +2 -0
  22. package/dist/components/ui/src/components/ui/alert.d.ts +2 -0
  23. package/dist/components/ui/src/components/ui/aspect-ratio.d.ts +2 -0
  24. package/dist/components/ui/src/components/ui/avatar.d.ts +2 -0
  25. package/dist/components/ui/src/components/ui/badge.d.ts +2 -0
  26. package/dist/components/ui/src/components/ui/breadcrumb.d.ts +2 -0
  27. package/dist/components/ui/src/components/ui/button-group.d.ts +2 -0
  28. package/dist/components/ui/src/components/ui/button.d.ts +2 -0
  29. package/dist/components/ui/src/components/ui/calendar.d.ts +2 -0
  30. package/dist/components/ui/src/components/ui/card.d.ts +2 -0
  31. package/dist/components/ui/src/components/ui/carousel.d.ts +2 -0
  32. package/dist/components/ui/src/components/ui/chart.d.ts +2 -0
  33. package/dist/components/ui/src/components/ui/checkbox.d.ts +2 -0
  34. package/dist/components/ui/src/components/ui/collapsible.d.ts +2 -0
  35. package/dist/components/ui/src/components/ui/combobox.d.ts +2 -0
  36. package/dist/components/ui/src/components/ui/command.d.ts +2 -0
  37. package/dist/components/ui/src/components/ui/context-menu.d.ts +2 -0
  38. package/dist/components/ui/src/components/ui/context-menu.js +1 -1
  39. package/dist/components/ui/src/components/ui/dialog.d.ts +2 -0
  40. package/dist/components/ui/src/components/ui/drawer.d.ts +2 -0
  41. package/dist/components/ui/src/components/ui/dropdown-menu.d.ts +2 -0
  42. package/dist/components/ui/src/components/ui/dropdown-menu.js +1 -1
  43. package/dist/components/ui/src/components/ui/empty.d.ts +2 -0
  44. package/dist/components/ui/src/components/ui/field.d.ts +2 -0
  45. package/dist/components/ui/src/components/ui/hover-card.d.ts +2 -0
  46. package/dist/components/ui/src/components/ui/input-group.d.ts +2 -0
  47. package/dist/components/ui/src/components/ui/input-otp.d.ts +2 -0
  48. package/dist/components/ui/src/components/ui/input.d.ts +2 -0
  49. package/dist/components/ui/src/components/ui/item.d.ts +2 -0
  50. package/dist/components/ui/src/components/ui/kbd.d.ts +2 -0
  51. package/dist/components/ui/src/components/ui/label.d.ts +2 -0
  52. package/dist/components/ui/src/components/ui/menubar.d.ts +2 -0
  53. package/dist/components/ui/src/components/ui/menubar.js +1 -1
  54. package/dist/components/ui/src/components/ui/modal.d.ts +2 -0
  55. package/dist/components/ui/src/components/ui/navigation-menu.d.ts +2 -0
  56. package/dist/components/ui/src/components/ui/pagination.d.ts +2 -0
  57. package/dist/components/ui/src/components/ui/popover.d.ts +2 -0
  58. package/dist/components/ui/src/components/ui/progress.d.ts +2 -0
  59. package/dist/components/ui/src/components/ui/radio-group.d.ts +2 -0
  60. package/dist/components/ui/src/components/ui/resizable.d.ts +2 -0
  61. package/dist/components/ui/src/components/ui/scroll-area.d.ts +2 -0
  62. package/dist/components/ui/src/components/ui/select.d.ts +2 -0
  63. package/dist/components/ui/src/components/ui/separator.d.ts +2 -0
  64. package/dist/components/ui/src/components/ui/sheet.d.ts +2 -0
  65. package/dist/components/ui/src/components/ui/sidebar.d.ts +2 -0
  66. package/dist/components/ui/src/components/ui/skeleton.d.ts +2 -0
  67. package/dist/components/ui/src/components/ui/slider.d.ts +2 -0
  68. package/dist/components/ui/src/components/ui/sonner.d.ts +2 -0
  69. package/dist/components/ui/src/components/ui/spinner.d.ts +2 -0
  70. package/dist/components/ui/src/components/ui/switch.d.ts +2 -0
  71. package/dist/components/ui/src/components/ui/table.d.ts +2 -0
  72. package/dist/components/ui/src/components/ui/tabs.d.ts +2 -0
  73. package/dist/components/ui/src/components/ui/textarea.d.ts +2 -0
  74. package/dist/components/ui/src/components/ui/toast.d.ts +2 -0
  75. package/dist/components/ui/src/components/ui/toggle-group.d.ts +2 -0
  76. package/dist/components/ui/src/components/ui/toggle.d.ts +2 -0
  77. package/dist/components/ui/src/components/ui/tooltip.d.ts +2 -0
  78. package/dist/context-menu.d.ts +97 -0
  79. package/dist/dialog.d.ts +90 -0
  80. package/dist/drawer.d.ts +61 -0
  81. package/dist/dropdown-menu.d.ts +121 -0
  82. package/dist/empty.d.ts +56 -0
  83. package/dist/field.d.ts +109 -0
  84. package/dist/hooks/src/hooks/use-mobile.d.ts +2 -0
  85. package/dist/hover-card.d.ts +28 -0
  86. package/dist/index.d.ts +290 -0
  87. package/dist/input-group.d.ts +106 -0
  88. package/dist/input-otp.d.ts +43 -0
  89. package/dist/input.d.ts +14 -0
  90. package/dist/item.d.ts +101 -0
  91. package/dist/kbd.d.ts +19 -0
  92. package/dist/label.d.ts +12 -0
  93. package/dist/lib/utils.d.ts +2 -23
  94. package/dist/menubar.d.ts +205 -0
  95. package/dist/modal.d.ts +104 -0
  96. package/dist/navigation-menu.d.ts +66 -0
  97. package/dist/pagination.d.ts +99 -0
  98. package/dist/popover.d.ts +55 -0
  99. package/dist/progress.d.ts +41 -0
  100. package/dist/radio-group.d.ts +21 -0
  101. package/dist/{components/ui/resizable.d.ts → resizable.d.ts} +47 -38
  102. package/dist/{components/ui/scroll-area.d.ts → scroll-area.d.ts} +69 -64
  103. package/dist/select.d.ts +79 -0
  104. package/dist/separator.d.ts +12 -0
  105. package/dist/sheet.d.ts +68 -0
  106. package/dist/sidebar.d.ts +288 -0
  107. package/dist/skeleton.d.ts +11 -0
  108. package/dist/{components/ui/slider.d.ts → slider.d.ts} +24 -21
  109. package/dist/{components/ui/sonner.d.ts → sonner.d.ts} +27 -21
  110. package/dist/spinner.d.ts +11 -0
  111. package/dist/src/components/minidev.fun/color-mode/color-mode-initializer.js.map +1 -0
  112. package/dist/{components → src/components}/minidev.fun/color-mode/color-mode-toggle.js +6 -6
  113. package/dist/src/components/minidev.fun/color-mode/color-mode-toggle.js.map +1 -0
  114. package/dist/src/components/minidev.fun/color-mode/use-color-mode.js.map +1 -0
  115. package/dist/{lib → src/lib}/variants.js +1 -1
  116. package/dist/src/lib/variants.js.map +1 -0
  117. package/dist/switch.d.ts +15 -0
  118. package/dist/table.d.ts +68 -0
  119. package/dist/tabs.d.ts +42 -0
  120. package/dist/{components/ui/textarea.d.ts → textarea.d.ts} +21 -18
  121. package/dist/toast.d.ts +15 -0
  122. package/dist/toggle-group.d.ts +36 -0
  123. package/dist/toggle.d.ts +19 -0
  124. package/dist/tooltip.d.ts +36 -0
  125. package/dist/{hooks/use-mobile.d.ts → use-mobile.d.ts} +19 -18
  126. package/dist/utils.d.ts +25 -0
  127. package/package.json +1 -1
  128. package/dist/components/minidev.fun/color-mode/color-mode-initializer.d.ts +0 -46
  129. package/dist/components/minidev.fun/color-mode/color-mode-initializer.d.ts.map +0 -1
  130. package/dist/components/minidev.fun/color-mode/color-mode-initializer.js.map +0 -1
  131. package/dist/components/minidev.fun/color-mode/color-mode-toggle.d.ts +0 -106
  132. package/dist/components/minidev.fun/color-mode/color-mode-toggle.d.ts.map +0 -1
  133. package/dist/components/minidev.fun/color-mode/color-mode-toggle.js.map +0 -1
  134. package/dist/components/minidev.fun/color-mode/index.d.ts +0 -4
  135. package/dist/components/minidev.fun/color-mode/index.d.ts.map +0 -1
  136. package/dist/components/minidev.fun/color-mode/use-color-mode.d.ts +0 -91
  137. package/dist/components/minidev.fun/color-mode/use-color-mode.d.ts.map +0 -1
  138. package/dist/components/minidev.fun/color-mode/use-color-mode.js.map +0 -1
  139. package/dist/components/minidev.fun/first-light/first-light-filters.d.ts +0 -27
  140. package/dist/components/minidev.fun/first-light/first-light-filters.d.ts.map +0 -1
  141. package/dist/components/minidev.fun/first-light/index.d.ts +0 -2
  142. package/dist/components/minidev.fun/first-light/index.d.ts.map +0 -1
  143. package/dist/components/minidev.fun/typography/blockquote.d.ts +0 -13
  144. package/dist/components/minidev.fun/typography/blockquote.d.ts.map +0 -1
  145. package/dist/components/minidev.fun/typography/code.d.ts +0 -13
  146. package/dist/components/minidev.fun/typography/code.d.ts.map +0 -1
  147. package/dist/components/minidev.fun/typography/index.d.ts +0 -6
  148. package/dist/components/minidev.fun/typography/index.d.ts.map +0 -1
  149. package/dist/components/minidev.fun/typography/list-item.d.ts +0 -27
  150. package/dist/components/minidev.fun/typography/list-item.d.ts.map +0 -1
  151. package/dist/components/minidev.fun/typography/text.d.ts +0 -44
  152. package/dist/components/minidev.fun/typography/text.d.ts.map +0 -1
  153. package/dist/components/minidev.fun/typography/title.d.ts +0 -22
  154. package/dist/components/minidev.fun/typography/title.d.ts.map +0 -1
  155. package/dist/components/ui/accordion.d.ts +0 -27
  156. package/dist/components/ui/accordion.d.ts.map +0 -1
  157. package/dist/components/ui/alert-dialog.d.ts +0 -47
  158. package/dist/components/ui/alert-dialog.d.ts.map +0 -1
  159. package/dist/components/ui/alert.d.ts +0 -30
  160. package/dist/components/ui/alert.d.ts.map +0 -1
  161. package/dist/components/ui/aspect-ratio.d.ts +0 -11
  162. package/dist/components/ui/aspect-ratio.d.ts.map +0 -1
  163. package/dist/components/ui/avatar.d.ts +0 -42
  164. package/dist/components/ui/avatar.d.ts.map +0 -1
  165. package/dist/components/ui/badge.d.ts.map +0 -1
  166. package/dist/components/ui/breadcrumb.d.ts +0 -39
  167. package/dist/components/ui/breadcrumb.d.ts.map +0 -1
  168. package/dist/components/ui/button-group.d.ts +0 -26
  169. package/dist/components/ui/button-group.d.ts.map +0 -1
  170. package/dist/components/ui/button.d.ts.map +0 -1
  171. package/dist/components/ui/calendar.d.ts +0 -20
  172. package/dist/components/ui/calendar.d.ts.map +0 -1
  173. package/dist/components/ui/card.d.ts +0 -30
  174. package/dist/components/ui/card.d.ts.map +0 -1
  175. package/dist/components/ui/carousel.d.ts +0 -56
  176. package/dist/components/ui/carousel.d.ts.map +0 -1
  177. package/dist/components/ui/chart.d.ts.map +0 -1
  178. package/dist/components/ui/checkbox.d.ts +0 -11
  179. package/dist/components/ui/checkbox.d.ts.map +0 -1
  180. package/dist/components/ui/collapsible.d.ts +0 -21
  181. package/dist/components/ui/collapsible.d.ts.map +0 -1
  182. package/dist/components/ui/combobox.d.ts +0 -80
  183. package/dist/components/ui/combobox.d.ts.map +0 -1
  184. package/dist/components/ui/command.d.ts +0 -63
  185. package/dist/components/ui/command.d.ts.map +0 -1
  186. package/dist/components/ui/context-menu.d.ts +0 -64
  187. package/dist/components/ui/context-menu.d.ts.map +0 -1
  188. package/dist/components/ui/dialog.d.ts +0 -69
  189. package/dist/components/ui/dialog.d.ts.map +0 -1
  190. package/dist/components/ui/drawer.d.ts +0 -40
  191. package/dist/components/ui/drawer.d.ts.map +0 -1
  192. package/dist/components/ui/dropdown-menu.d.ts +0 -88
  193. package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
  194. package/dist/components/ui/empty.d.ts +0 -41
  195. package/dist/components/ui/empty.d.ts.map +0 -1
  196. package/dist/components/ui/field.d.ts +0 -78
  197. package/dist/components/ui/field.d.ts.map +0 -1
  198. package/dist/components/ui/hover-card.d.ts +0 -21
  199. package/dist/components/ui/hover-card.d.ts.map +0 -1
  200. package/dist/components/ui/input-group.d.ts +0 -50
  201. package/dist/components/ui/input-group.d.ts.map +0 -1
  202. package/dist/components/ui/input-otp.d.ts +0 -34
  203. package/dist/components/ui/input-otp.d.ts.map +0 -1
  204. package/dist/components/ui/input.d.ts +0 -11
  205. package/dist/components/ui/input.d.ts.map +0 -1
  206. package/dist/components/ui/item.d.ts +0 -69
  207. package/dist/components/ui/item.d.ts.map +0 -1
  208. package/dist/components/ui/kbd.d.ts +0 -14
  209. package/dist/components/ui/kbd.d.ts.map +0 -1
  210. package/dist/components/ui/label.d.ts +0 -9
  211. package/dist/components/ui/label.d.ts.map +0 -1
  212. package/dist/components/ui/menubar.d.ts +0 -87
  213. package/dist/components/ui/menubar.d.ts.map +0 -1
  214. package/dist/components/ui/modal.d.ts +0 -41
  215. package/dist/components/ui/modal.d.ts.map +0 -1
  216. package/dist/components/ui/navigation-menu.d.ts +0 -52
  217. package/dist/components/ui/navigation-menu.d.ts.map +0 -1
  218. package/dist/components/ui/pagination.d.ts +0 -42
  219. package/dist/components/ui/pagination.d.ts.map +0 -1
  220. package/dist/components/ui/popover.d.ts +0 -42
  221. package/dist/components/ui/popover.d.ts.map +0 -1
  222. package/dist/components/ui/progress.d.ts +0 -30
  223. package/dist/components/ui/progress.d.ts.map +0 -1
  224. package/dist/components/ui/radio-group.d.ts +0 -16
  225. package/dist/components/ui/radio-group.d.ts.map +0 -1
  226. package/dist/components/ui/resizable.d.ts.map +0 -1
  227. package/dist/components/ui/scroll-area.d.ts.map +0 -1
  228. package/dist/components/ui/select.d.ts +0 -58
  229. package/dist/components/ui/select.d.ts.map +0 -1
  230. package/dist/components/ui/separator.d.ts +0 -9
  231. package/dist/components/ui/separator.d.ts.map +0 -1
  232. package/dist/components/ui/sheet.d.ts +0 -51
  233. package/dist/components/ui/sheet.d.ts.map +0 -1
  234. package/dist/components/ui/sidebar.d.ts +0 -172
  235. package/dist/components/ui/sidebar.d.ts.map +0 -1
  236. package/dist/components/ui/skeleton.d.ts +0 -8
  237. package/dist/components/ui/skeleton.d.ts.map +0 -1
  238. package/dist/components/ui/slider.d.ts.map +0 -1
  239. package/dist/components/ui/sonner.d.ts.map +0 -1
  240. package/dist/components/ui/spinner.d.ts +0 -8
  241. package/dist/components/ui/spinner.d.ts.map +0 -1
  242. package/dist/components/ui/switch.d.ts +0 -12
  243. package/dist/components/ui/switch.d.ts.map +0 -1
  244. package/dist/components/ui/table.d.ts +0 -51
  245. package/dist/components/ui/table.d.ts.map +0 -1
  246. package/dist/components/ui/tabs.d.ts +0 -31
  247. package/dist/components/ui/tabs.d.ts.map +0 -1
  248. package/dist/components/ui/textarea.d.ts.map +0 -1
  249. package/dist/components/ui/toast.d.ts +0 -11
  250. package/dist/components/ui/toast.d.ts.map +0 -1
  251. package/dist/components/ui/toggle-group.d.ts +0 -26
  252. package/dist/components/ui/toggle-group.d.ts.map +0 -1
  253. package/dist/components/ui/toggle.d.ts +0 -14
  254. package/dist/components/ui/toggle.d.ts.map +0 -1
  255. package/dist/components/ui/tooltip.d.ts +0 -27
  256. package/dist/components/ui/tooltip.d.ts.map +0 -1
  257. package/dist/hooks/use-mobile.d.ts.map +0 -1
  258. package/dist/lib/utils.d.ts.map +0 -1
  259. package/dist/lib/variants.d.ts +0 -107
  260. package/dist/lib/variants.d.ts.map +0 -1
  261. package/dist/lib/variants.js.map +0 -1
  262. /package/dist/{components → src/components}/minidev.fun/color-mode/color-mode-initializer.js +0 -0
  263. /package/dist/{components → src/components}/minidev.fun/color-mode/use-color-mode.js +0 -0
@@ -1,107 +0,0 @@
1
- /**
2
- * @internal
3
- * Shared CVA variants used by menu and typography components.
4
- * Not exported publicly - use component props instead:
5
- * - Menu styling: <DropdownMenuItem variant="destructive">
6
- * - Typography: <Text color="muted" size="sm">
7
- */
8
- /**
9
- * Shared menu item variants for DropdownMenuItem, ContextMenuItem, and MenubarItem.
10
- * Provides consistent styling across all menu-style components.
11
- */
12
- export declare const menuItemVariants: (props?: ({
13
- variant?: "default" | "success" | "destructive" | "info" | "warning" | null | undefined;
14
- inset?: boolean | null | undefined;
15
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
16
- /** Variant options for menu items: default, destructive, success, warning, info */
17
- export type MenuItemVariant = "default" | "destructive" | "success" | "warning" | "info";
18
- /**
19
- * Typography color variants shared across Title, Text, Code, ListItem, and Blockquote components.
20
- * Provides semantic color options for consistent text styling.
21
- *
22
- * @example
23
- * ```tsx
24
- * import { typographyColorVariants } from "@minidev.fun/ui/lib/variants"
25
- * import { cn } from "@minidev.fun/ui/lib/utils"
26
- *
27
- * <span className={cn(typographyColorVariants({ color: "muted" }))}>
28
- * Secondary text
29
- * </span>
30
- * ```
31
- */
32
- export declare const typographyColorVariants: (props?: ({
33
- color?: "default" | "success" | "destructive" | "info" | "primary" | "warning" | "muted" | "subtle" | null | undefined;
34
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
35
- /** Semantic color options for typography: default, muted, subtle, destructive, success, warning, info */
36
- export type TypographyColor = "default" | "primary" | "muted" | "subtle" | "destructive" | "success" | "warning" | "info";
37
- /**
38
- * Title order-based size defaults (only used when size prop is not specified).
39
- * Maps heading levels (h1-h6) to responsive font sizes.
40
- *
41
- * @example
42
- * ```tsx
43
- * // order: 1 → "text-3xl md:text-4xl lg:text-5xl"
44
- * // order: 6 → "text-sm md:text-base lg:text-lg"
45
- * ```
46
- */
47
- export declare const titleOrderSizeVariants: (props?: ({
48
- order?: 4 | 1 | 2 | 3 | 5 | 6 | null | undefined;
49
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
50
- /**
51
- * Title order-based style defaults (weight, tracking, leading).
52
- * Provides appropriate font-weight and line-height for each heading level.
53
- *
54
- * @example
55
- * ```tsx
56
- * // order: 1 → "font-bold tracking-tight leading-[1.1]"
57
- * // order: 6 → "font-medium leading-normal"
58
- * ```
59
- */
60
- export declare const titleOrderStyleVariants: (props?: ({
61
- order?: 4 | 1 | 2 | 3 | 5 | 6 | null | undefined;
62
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
63
- /**
64
- * Title component variants for explicit size and weight overrides.
65
- * Use when you need to override the order-based defaults.
66
- *
67
- * @example
68
- * ```tsx
69
- * import { titleVariants } from "@minidev.fun/ui/lib/variants"
70
- * import { cn } from "@minidev.fun/ui/lib/utils"
71
- *
72
- * <h2 className={cn(titleVariants({ size: "4xl", weight: "bold" }))}>
73
- * Large Bold Title
74
- * </h2>
75
- * ```
76
- */
77
- export declare const titleVariants: (props?: ({
78
- size?: "base" | "sm" | "lg" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
79
- weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
80
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
81
- /** Heading level 1-6, maps to h1-h6 elements */
82
- export type TitleOrder = 1 | 2 | 3 | 4 | 5 | 6;
83
- /** Font size options from xs to 6xl */
84
- export type TitleSize = "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl";
85
- /** Font weight options: normal, medium, semibold, bold */
86
- export type TitleWeight = "normal" | "medium" | "semibold" | "bold";
87
- /**
88
- * Text component variants with auto-scaling line-height and letter-spacing.
89
- * Provides consistent paragraph and body text styling.
90
- *
91
- * @example
92
- * ```tsx
93
- * import { textVariants } from "@minidev.fun/ui/lib/variants"
94
- * import { cn } from "@minidev.fun/ui/lib/utils"
95
- *
96
- * <p className={cn(textVariants({ size: "lg", weight: "medium", align: "center" }))}>
97
- * Centered large text
98
- * </p>
99
- * ```
100
- */
101
- export declare const textVariants: (props?: ({
102
- size?: "base" | "sm" | "lg" | "xs" | "xl" | "2xl" | null | undefined;
103
- weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
104
- align?: "center" | "left" | "right" | null | undefined;
105
- transform?: "capitalize" | "lowercase" | "uppercase" | null | undefined;
106
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
107
- //# sourceMappingURL=variants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../src/lib/variants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;8EAyB5B,CAAC;AAEF,mFAAmF;AACnF,MAAM,MAAM,eAAe,GACvB,SAAS,GACT,aAAa,GACb,SAAS,GACT,SAAS,GACT,MAAM,CAAC;AAEX;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB;;8EAgBlC,CAAC;AAEH,yGAAyG;AACzG,MAAM,MAAM,eAAe,GACvB,SAAS,GACT,SAAS,GACT,OAAO,GACP,QAAQ,GACR,aAAa,GACb,SAAS,GACT,SAAS,GACT,MAAM,CAAC;AAEX;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB;;8EAWjC,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB;;8EAclC,CAAC;AAEH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa;;;8EAqBxB,CAAC;AAEH,gDAAgD;AAChD,MAAM,MAAM,UAAU,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE/C,uCAAuC;AACvC,MAAM,MAAM,SAAS,GACjB,IAAI,GACJ,IAAI,GACJ,MAAM,GACN,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;AAEV,0DAA0D;AAC1D,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY;;;;;8EA8BvB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"variants.js","sources":["../../src/lib/variants.ts"],"sourcesContent":["/**\n * @internal\n * Shared CVA variants used by menu and typography components.\n * Not exported publicly - use component props instead:\n * - Menu styling: <DropdownMenuItem variant=\"destructive\">\n * - Typography: <Text color=\"muted\" size=\"sm\">\n */\n\nimport { cva } from \"class-variance-authority\";\n\n/**\n * Shared menu item variants for DropdownMenuItem, ContextMenuItem, and MenubarItem.\n * Provides consistent styling across all menu-style components.\n */\nexport const menuItemVariants = cva(\n \"gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default:\n \"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground\",\n destructive:\n \"text-destructive focus:bg-destructive/10 dark:focus:bg-destructive/20 focus:text-destructive *:[svg]:text-destructive\",\n success:\n \"text-success focus:bg-success/10 dark:focus:bg-success/20 focus:text-success *:[svg]:text-success\",\n warning:\n \"text-warning focus:bg-warning/10 dark:focus:bg-warning/20 focus:text-warning *:[svg]:text-warning\",\n info: \"text-info focus:bg-info/10 dark:focus:bg-info/20 focus:text-info *:[svg]:text-info\",\n },\n inset: {\n true: \"pl-8\",\n false: \"\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n inset: false,\n },\n },\n);\n\n/** Variant options for menu items: default, destructive, success, warning, info */\nexport type MenuItemVariant =\n | \"default\"\n | \"destructive\"\n | \"success\"\n | \"warning\"\n | \"info\";\n\n/**\n * Typography color variants shared across Title, Text, Code, ListItem, and Blockquote components.\n * Provides semantic color options for consistent text styling.\n *\n * @example\n * ```tsx\n * import { typographyColorVariants } from \"@minidev.fun/ui/lib/variants\"\n * import { cn } from \"@minidev.fun/ui/lib/utils\"\n *\n * <span className={cn(typographyColorVariants({ color: \"muted\" }))}>\n * Secondary text\n * </span>\n * ```\n */\nexport const typographyColorVariants = cva(\"\", {\n variants: {\n color: {\n primary: \"text-primary\",\n default: \"text-foreground\",\n muted: \"text-muted-foreground\",\n subtle: \"text-subtle-foreground\",\n destructive: \"text-destructive\",\n success: \"text-success\",\n warning: \"text-warning\",\n info: \"text-info\",\n },\n },\n defaultVariants: {\n color: \"default\",\n },\n});\n\n/** Semantic color options for typography: default, muted, subtle, destructive, success, warning, info */\nexport type TypographyColor =\n | \"default\"\n | \"primary\"\n | \"muted\"\n | \"subtle\"\n | \"destructive\"\n | \"success\"\n | \"warning\"\n | \"info\";\n\n/**\n * Title order-based size defaults (only used when size prop is not specified).\n * Maps heading levels (h1-h6) to responsive font sizes.\n *\n * @example\n * ```tsx\n * // order: 1 → \"text-3xl md:text-4xl lg:text-5xl\"\n * // order: 6 → \"text-sm md:text-base lg:text-lg\"\n * ```\n */\nexport const titleOrderSizeVariants = cva(\"\", {\n variants: {\n order: {\n 1: \"text-3xl md:text-4xl lg:text-5xl\",\n 2: \"text-2xl md:text-3xl lg:text-4xl\",\n 3: \"text-xl md:text-2xl lg:text-3xl\",\n 4: \"text-lg md:text-xl lg:text-2xl\",\n 5: \"text-base md:text-lg lg:text-xl\",\n 6: \"text-sm md:text-base lg:text-lg\",\n },\n },\n});\n\n/**\n * Title order-based style defaults (weight, tracking, leading).\n * Provides appropriate font-weight and line-height for each heading level.\n *\n * @example\n * ```tsx\n * // order: 1 → \"font-bold tracking-tight leading-[1.1]\"\n * // order: 6 → \"font-medium leading-normal\"\n * ```\n */\nexport const titleOrderStyleVariants = cva(\"\", {\n variants: {\n order: {\n 1: \"font-bold tracking-tight leading-[1.1]\",\n 2: \"font-semibold tracking-tight leading-[1.2]\",\n 3: \"font-semibold tracking-tight leading-[1.25]\",\n 4: \"font-semibold leading-[1.3]\",\n 5: \"font-medium leading-[1.4]\",\n 6: \"font-medium leading-normal\",\n },\n },\n defaultVariants: {\n order: 2,\n },\n});\n\n/**\n * Title component variants for explicit size and weight overrides.\n * Use when you need to override the order-based defaults.\n *\n * @example\n * ```tsx\n * import { titleVariants } from \"@minidev.fun/ui/lib/variants\"\n * import { cn } from \"@minidev.fun/ui/lib/utils\"\n *\n * <h2 className={cn(titleVariants({ size: \"4xl\", weight: \"bold\" }))}>\n * Large Bold Title\n * </h2>\n * ```\n */\nexport const titleVariants = cva(\"\", {\n variants: {\n size: {\n xs: \"text-xs leading-4\",\n sm: \"text-sm leading-5\",\n base: \"text-base leading-6\",\n lg: \"text-lg leading-7\",\n xl: \"text-xl leading-7 tracking-tight\",\n \"2xl\": \"text-2xl leading-8 tracking-tight\",\n \"3xl\": \"text-3xl leading-9 tracking-tight\",\n \"4xl\": \"text-4xl leading-10 tracking-tighter\",\n \"5xl\": \"text-5xl leading-[1.1] tracking-tighter\",\n \"6xl\": \"text-6xl leading-[1.1] tracking-tighter\",\n },\n weight: {\n normal: \"font-normal\",\n medium: \"font-medium\",\n semibold: \"font-semibold\",\n bold: \"font-bold\",\n },\n },\n});\n\n/** Heading level 1-6, maps to h1-h6 elements */\nexport type TitleOrder = 1 | 2 | 3 | 4 | 5 | 6;\n\n/** Font size options from xs to 6xl */\nexport type TitleSize =\n | \"xs\"\n | \"sm\"\n | \"base\"\n | \"lg\"\n | \"xl\"\n | \"2xl\"\n | \"3xl\"\n | \"4xl\"\n | \"5xl\"\n | \"6xl\";\n\n/** Font weight options: normal, medium, semibold, bold */\nexport type TitleWeight = \"normal\" | \"medium\" | \"semibold\" | \"bold\";\n\n/**\n * Text component variants with auto-scaling line-height and letter-spacing.\n * Provides consistent paragraph and body text styling.\n *\n * @example\n * ```tsx\n * import { textVariants } from \"@minidev.fun/ui/lib/variants\"\n * import { cn } from \"@minidev.fun/ui/lib/utils\"\n *\n * <p className={cn(textVariants({ size: \"lg\", weight: \"medium\", align: \"center\" }))}>\n * Centered large text\n * </p>\n * ```\n */\nexport const textVariants = cva(\"\", {\n variants: {\n size: {\n xs: \"text-xs leading-4\",\n sm: \"text-sm leading-5\",\n base: \"text-base leading-6\",\n lg: \"text-lg leading-7\",\n xl: \"text-xl leading-7 tracking-tight\",\n \"2xl\": \"text-2xl leading-8 tracking-tighter\",\n },\n weight: {\n normal: \"font-normal\",\n medium: \"font-medium\",\n semibold: \"font-semibold\",\n bold: \"font-bold\",\n },\n align: {\n left: \"text-left\",\n center: \"text-center\",\n right: \"text-right\",\n },\n transform: {\n uppercase: \"uppercase tracking-wider\",\n lowercase: \"lowercase\",\n capitalize: \"capitalize\",\n },\n },\n defaultVariants: {\n size: \"base\",\n },\n});\n"],"names":[],"mappings":";AAcO,MAAM,mBAAmB;AAAA,EAC9B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,SACE;AAAA,QACF,MAAM;AAAA,MAAA;AAAA,MAER,OAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MAAA;AAAA,IACT;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,OAAO;AAAA,IAAA;AAAA,EACT;AAEJ;"}