@yuva-devlab/ui 1.4.4 → 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.
Files changed (90) hide show
  1. package/README.md +117 -33
  2. package/dist/components/accordion/accordion.mdx +18 -0
  3. package/dist/components/alert/alert.css +2 -2
  4. package/dist/components/alert-dialog/alert-dialog.mdx +18 -0
  5. package/dist/components/aspect-ratio/aspect-ratio.mdx +22 -0
  6. package/dist/components/breadcrumb/breadcrumb.mdx +18 -0
  7. package/dist/components/calendar/calendar-nav.css +111 -0
  8. package/dist/components/calendar/calendar.css +27 -82
  9. package/dist/components/calendar/calendar.mdx +18 -0
  10. package/dist/components/card/card.css +4 -4
  11. package/dist/components/carousel/carousel.css +4 -4
  12. package/dist/components/carousel/carousel.mdx +18 -0
  13. package/dist/components/chart/chart.css +86 -0
  14. package/dist/components/chart/chart.mdx +18 -0
  15. package/dist/components/checkbox/checkbox.css +11 -0
  16. package/dist/components/collapsible/collapsible.mdx +18 -0
  17. package/dist/components/command/command.css +3 -3
  18. package/dist/components/command/command.mdx +18 -0
  19. package/dist/components/confirm-dialog/confirm-dialog.mdx +18 -0
  20. package/dist/components/context-menu/context-menu.mdx +18 -0
  21. package/dist/components/copy-button/copy-button.mdx +18 -0
  22. package/dist/components/date-picker/date-picker.css +2 -2
  23. package/dist/components/date-picker/date-picker.mdx +18 -0
  24. package/dist/components/dialog/dialog.css +6 -6
  25. package/dist/components/drawer/drawer.mdx +18 -0
  26. package/dist/components/dropdown-menu/dropdown-menu.css +18 -0
  27. package/dist/components/dropdown-menu/dropdown-menu.mdx +18 -0
  28. package/dist/components/empty-state/empty-state.css +67 -0
  29. package/dist/components/empty-state/empty-state.mdx +18 -0
  30. package/dist/components/form/form.mdx +18 -0
  31. package/dist/components/hover-card/hover-card.mdx +18 -0
  32. package/dist/components/input-otp/input-otp.mdx +18 -0
  33. package/dist/components/label/label.mdx +18 -0
  34. package/dist/components/layout/layout.css +158 -0
  35. package/dist/components/layout/layout.mdx +30 -0
  36. package/dist/components/loading-state/loading-state.css +11 -0
  37. package/dist/components/loading-state/loading-state.mdx +18 -0
  38. package/dist/components/menubar/menubar.css +4 -4
  39. package/dist/components/menubar/menubar.mdx +18 -0
  40. package/dist/components/metric-card/metric-card.mdx +18 -0
  41. package/dist/components/navigation-menu/navigation-menu.css +2 -2
  42. package/dist/components/navigation-menu/navigation-menu.mdx +18 -0
  43. package/dist/components/pagination/pagination.css +8 -2
  44. package/dist/components/pagination/pagination.mdx +18 -0
  45. package/dist/components/panel/panel.mdx +18 -0
  46. package/dist/components/popover/popover.css +2 -2
  47. package/dist/components/popover/popover.mdx +18 -0
  48. package/dist/components/radio-group/radio-group.mdx +18 -0
  49. package/dist/components/resizable/resizable.mdx +18 -0
  50. package/dist/components/scroll-area/scroll-area.mdx +18 -0
  51. package/dist/components/searchable-select/searchable-select.css +26 -3
  52. package/dist/components/searchable-select/searchable-select.mdx +18 -0
  53. package/dist/components/secret-reveal-card/secret-reveal-card.css +6 -0
  54. package/dist/components/secret-reveal-card/secret-reveal-card.mdx +18 -0
  55. package/dist/components/select/select.css +16 -1
  56. package/dist/components/separator/separator.mdx +18 -0
  57. package/dist/components/sheet/sheet.css +5 -1
  58. package/dist/components/sheet/sheet.mdx +18 -0
  59. package/dist/components/sidebar/sidebar-menu.css +183 -0
  60. package/dist/components/sidebar/sidebar-submenu.css +69 -0
  61. package/dist/components/sidebar/sidebar.css +171 -4
  62. package/dist/components/sidebar/sidebar.mdx +18 -0
  63. package/dist/components/slider/slider.mdx +18 -0
  64. package/dist/components/status-chip/status-chip.mdx +18 -0
  65. package/dist/components/table/table.css +5 -3
  66. package/dist/components/tabs/tabs.css +3 -3
  67. package/dist/components/textarea/textarea.css +3 -3
  68. package/dist/components/textarea/textarea.mdx +18 -0
  69. package/dist/components/toggle/toggle.css +9 -9
  70. package/dist/components/toggle/toggle.mdx +18 -0
  71. package/dist/components/toggle-group/toggle-group.mdx +18 -0
  72. package/dist/components/tooltip/tooltip.mdx +18 -0
  73. package/dist/components/typography/heading.mdx +36 -0
  74. package/dist/components/typography/text.mdx +34 -0
  75. package/dist/components/typography/typography.css +98 -0
  76. package/dist/components.css +1156 -164
  77. package/dist/index.cjs +1206 -958
  78. package/dist/index.cjs.map +1 -1
  79. package/dist/index.d.cts +657 -196
  80. package/dist/index.d.ts +657 -196
  81. package/dist/index.js +1174 -948
  82. package/dist/index.js.map +1 -1
  83. package/dist/preset.css +2 -4
  84. package/dist/styles/components.css +1156 -164
  85. package/dist/styles/preset.css +2 -4
  86. package/dist/styles/styles.css +7 -4
  87. package/dist/styles/utilities.css +137 -0
  88. package/dist/styles.css +7 -4
  89. package/dist/utilities.css +137 -0
  90. package/package.json +5 -6
@@ -0,0 +1,34 @@
1
+ import { Meta, Title, Description, Canvas, Controls } from "@storybook/blocks";
2
+ import * as TextStories from "./text.stories";
3
+
4
+ <Meta of={TextStories} />
5
+
6
+ <Title />
7
+
8
+ # Text
9
+
10
+ Versatile body, caption, code, and metric typography primitive with semantic color tokens and responsive hierarchy.
11
+
12
+ ## Default
13
+
14
+ <Canvas of={TextStories.Default} />
15
+
16
+ ## All Variants
17
+
18
+ Available in `body-lg`, `body`, `body-sm`, `caption`, `code`, and `metric`.
19
+
20
+ <Canvas of={TextStories.AllVariants} />
21
+
22
+ ## Color Variants
23
+
24
+ Supports `default`, `muted`, `subtle`, `primary`, `success`, `warning`, `destructive`, and `info`.
25
+
26
+ <Canvas of={TextStories.ColorVariants} />
27
+
28
+ ## Single-Line Truncation
29
+
30
+ <Canvas of={TextStories.Truncated} />
31
+
32
+ ## Component Properties
33
+
34
+ <Controls />
@@ -0,0 +1,98 @@
1
+ /**
2
+ * @file typography.css
3
+ * @description Typography primitive styling and modifier attributes.
4
+ * Governed by W3C Cascade Layers.
5
+ */
6
+
7
+ @layer dl-components {
8
+ /* ── Color Modifiers ───────────────────────────────────────────────────── */
9
+ .dl-heading[data-typography-color="default"],
10
+ .dl-text[data-typography-color="default"] {
11
+ color: var(--foreground);
12
+ }
13
+
14
+ .dl-heading[data-typography-color="muted"],
15
+ .dl-text[data-typography-color="muted"] {
16
+ color: var(--muted-foreground);
17
+ }
18
+
19
+ .dl-heading[data-typography-color="subtle"],
20
+ .dl-text[data-typography-color="subtle"] {
21
+ color: color-mix(in oklch, var(--muted-foreground) 80%, transparent);
22
+ }
23
+
24
+ .dl-heading[data-typography-color="primary"],
25
+ .dl-text[data-typography-color="primary"] {
26
+ color: var(--primary);
27
+ }
28
+
29
+ .dl-heading[data-typography-color="destructive"],
30
+ .dl-text[data-typography-color="destructive"] {
31
+ color: var(--destructive);
32
+ }
33
+
34
+ .dl-heading[data-typography-color="warning"],
35
+ .dl-text[data-typography-color="warning"] {
36
+ color: var(--warning);
37
+ }
38
+
39
+ .dl-heading[data-typography-color="success"],
40
+ .dl-text[data-typography-color="success"] {
41
+ color: var(--success);
42
+ }
43
+
44
+ .dl-heading[data-typography-color="info"],
45
+ .dl-text[data-typography-color="info"] {
46
+ color: var(--info);
47
+ }
48
+
49
+ /* ── Alignment Modifiers ───────────────────────────────────────────────── */
50
+ .dl-heading[data-typography-align="left"],
51
+ .dl-text[data-typography-align="left"] {
52
+ text-align: left;
53
+ }
54
+
55
+ .dl-heading[data-typography-align="center"],
56
+ .dl-text[data-typography-align="center"] {
57
+ text-align: center;
58
+ }
59
+
60
+ .dl-heading[data-typography-align="right"],
61
+ .dl-text[data-typography-align="right"] {
62
+ text-align: right;
63
+ }
64
+
65
+ /* ── Truncation Modifier ───────────────────────────────────────────────── */
66
+ .dl-heading[data-typography-truncate="true"],
67
+ .dl-text[data-typography-truncate="true"] {
68
+ overflow: hidden;
69
+ text-overflow: ellipsis;
70
+ white-space: nowrap;
71
+ }
72
+
73
+ /* ── Weight Overrides ──────────────────────────────────────────────────── */
74
+ .dl-heading[data-typography-weight="normal"],
75
+ .dl-text[data-typography-weight="normal"] {
76
+ font-weight: 400;
77
+ }
78
+
79
+ .dl-heading[data-typography-weight="medium"],
80
+ .dl-text[data-typography-weight="medium"] {
81
+ font-weight: 500;
82
+ }
83
+
84
+ .dl-heading[data-typography-weight="semibold"],
85
+ .dl-text[data-typography-weight="semibold"] {
86
+ font-weight: 600;
87
+ }
88
+
89
+ .dl-heading[data-typography-weight="bold"],
90
+ .dl-text[data-typography-weight="bold"] {
91
+ font-weight: 700;
92
+ }
93
+
94
+ .dl-heading[data-typography-weight="extrabold"],
95
+ .dl-text[data-typography-weight="extrabold"] {
96
+ font-weight: 800;
97
+ }
98
+ }