@zentauri-ui/zentauri-components 1.4.5 → 1.4.6

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 (60) hide show
  1. package/README.md +63 -1
  2. package/cli/registry.json +2 -1
  3. package/dist/ui/search/search-suggestion-list.d.ts.map +1 -1
  4. package/dist/ui/search.js +10 -6
  5. package/dist/ui/search.js.map +1 -1
  6. package/dist/ui/search.mjs +10 -6
  7. package/dist/ui/search.mjs.map +1 -1
  8. package/dist/ui/typography/blockquote-base.d.ts +6 -0
  9. package/dist/ui/typography/blockquote-base.d.ts.map +1 -0
  10. package/dist/ui/typography/blockquote.d.ts +6 -0
  11. package/dist/ui/typography/blockquote.d.ts.map +1 -0
  12. package/dist/ui/typography/code-block-base.d.ts +6 -0
  13. package/dist/ui/typography/code-block-base.d.ts.map +1 -0
  14. package/dist/ui/typography/code-block.d.ts +6 -0
  15. package/dist/ui/typography/code-block.d.ts.map +1 -0
  16. package/dist/ui/typography/heading-base.d.ts +6 -0
  17. package/dist/ui/typography/heading-base.d.ts.map +1 -0
  18. package/dist/ui/typography/heading.d.ts +6 -0
  19. package/dist/ui/typography/heading.d.ts.map +1 -0
  20. package/dist/ui/typography/index.d.ts +9 -0
  21. package/dist/ui/typography/index.d.ts.map +1 -0
  22. package/dist/ui/typography/inline-code-base.d.ts +6 -0
  23. package/dist/ui/typography/inline-code-base.d.ts.map +1 -0
  24. package/dist/ui/typography/inline-code.d.ts +6 -0
  25. package/dist/ui/typography/inline-code.d.ts.map +1 -0
  26. package/dist/ui/typography/list-base.d.ts +10 -0
  27. package/dist/ui/typography/list-base.d.ts.map +1 -0
  28. package/dist/ui/typography/list.d.ts +12 -0
  29. package/dist/ui/typography/list.d.ts.map +1 -0
  30. package/dist/ui/typography/text-base.d.ts +6 -0
  31. package/dist/ui/typography/text-base.d.ts.map +1 -0
  32. package/dist/ui/typography/text.d.ts +6 -0
  33. package/dist/ui/typography/text.d.ts.map +1 -0
  34. package/dist/ui/typography/types.d.ts +56 -0
  35. package/dist/ui/typography/types.d.ts.map +1 -0
  36. package/dist/ui/typography/variants.d.ts +16 -0
  37. package/dist/ui/typography/variants.d.ts.map +1 -0
  38. package/dist/ui/typography.js +334 -0
  39. package/dist/ui/typography.js.map +1 -0
  40. package/dist/ui/typography.mjs +321 -0
  41. package/dist/ui/typography.mjs.map +1 -0
  42. package/package.json +1 -1
  43. package/src/ui/search/search-bar.tsx +1 -1
  44. package/src/ui/search/search-suggestion-list.tsx +14 -6
  45. package/src/ui/typography/blockquote-base.tsx +39 -0
  46. package/src/ui/typography/blockquote.tsx +8 -0
  47. package/src/ui/typography/code-block-base.tsx +37 -0
  48. package/src/ui/typography/code-block.tsx +8 -0
  49. package/src/ui/typography/heading-base.tsx +59 -0
  50. package/src/ui/typography/heading.tsx +8 -0
  51. package/src/ui/typography/index.ts +28 -0
  52. package/src/ui/typography/inline-code-base.tsx +27 -0
  53. package/src/ui/typography/inline-code.tsx +8 -0
  54. package/src/ui/typography/list-base.tsx +88 -0
  55. package/src/ui/typography/list.tsx +15 -0
  56. package/src/ui/typography/text-base.tsx +43 -0
  57. package/src/ui/typography/text.tsx +8 -0
  58. package/src/ui/typography/types.ts +90 -0
  59. package/src/ui/typography/typography.test.tsx +80 -0
  60. package/src/ui/typography/variants.ts +72 -0
@@ -0,0 +1,72 @@
1
+ import { cva } from "class-variance-authority";
2
+
3
+ /** Semantic text colors aligned with slate/cyan/violet accents used across the kit (dark-first). */
4
+ export const typographyToneVariants = cva("", {
5
+ variants: {
6
+ tone: {
7
+ default: "text-slate-50 border-white/15",
8
+ muted: "text-slate-400 border-white/15",
9
+ primary: "text-cyan-300 border-cyan-300/40",
10
+ secondary: "text-slate-300 border-white/15",
11
+ accent: "text-violet-300 border-violet-300/40",
12
+ destructive: "text-rose-400 border-rose-300/40",
13
+ info: "text-sky-300 border-sky-300/40",
14
+ success: "text-emerald-300 border-emerald-300/40",
15
+ warning: "text-amber-300 border-amber-300/40",
16
+ error: "text-red-300 border-red-300/40",
17
+ "gradient-pink-violet": "bg-linear-to-r from-pink-400 to-violet-400 bg-clip-text text-transparent w-fit",
18
+ "gradient-cyan-violet": "bg-linear-to-r from-cyan-400 to-violet-400 bg-clip-text text-transparent w-fit",
19
+ "gradient-cyan-blue": "bg-linear-to-r from-cyan-400 to-blue-400 bg-clip-text text-transparent w-fit",
20
+ "gradient-cyan-green": "bg-linear-to-r from-cyan-400 to-green-400 bg-clip-text text-transparent w-fit",
21
+ "gradient-cyan-orange": "bg-linear-to-r from-cyan-400 to-orange-400 bg-clip-text text-transparent w-fit",
22
+ "gradient-cyan-red": "bg-linear-to-r from-cyan-400 to-red-400 bg-clip-text text-transparent w-fit",
23
+ "gradient-cyan-purple": "bg-linear-to-r from-cyan-400 to-purple-400 bg-clip-text text-transparent w-fit",
24
+ "gradient-cyan-pink": "bg-linear-to-r from-cyan-400 to-pink-400 bg-clip-text text-transparent w-fit",
25
+ },
26
+ },
27
+ defaultVariants: {
28
+ tone: "default",
29
+ },
30
+ });
31
+
32
+ export const headingLevelVariants = cva("scroll-m-20", {
33
+ variants: {
34
+ level: {
35
+ 1: "text-4xl font-bold tracking-tight md:text-5xl",
36
+ 2: "text-3xl font-semibold tracking-tight",
37
+ 3: "text-2xl font-semibold tracking-tight",
38
+ 4: "text-xl font-semibold tracking-tight",
39
+ 5: "text-lg font-medium",
40
+ 6: "text-base font-medium",
41
+ },
42
+ },
43
+ });
44
+
45
+ export const textSizeVariants = cva("", {
46
+ variants: {
47
+ size: {
48
+ sm: "text-sm leading-relaxed",
49
+ base: "text-base leading-relaxed",
50
+ lg: "text-lg leading-relaxed",
51
+ },
52
+ },
53
+ defaultVariants: {
54
+ size: "base",
55
+ },
56
+ });
57
+
58
+ /** Marker style for unordered lists; ignored when `ordered` is true (decimal numbering). */
59
+ export const unorderedListMarkerVariants = cva("space-y-2 pl-5", {
60
+ variants: {
61
+ marker: {
62
+ disc: "list-disc",
63
+ circle: "[list-style-type:circle]",
64
+ none: "list-none pl-0",
65
+ },
66
+ },
67
+ defaultVariants: {
68
+ marker: "disc",
69
+ },
70
+ });
71
+
72
+ export const orderedListVariants = cva("list-decimal space-y-2 pl-5");