@dashforge/tw 0.1.0-beta → 0.2.1-beta

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 (195) hide show
  1. package/A11Y.md +130 -0
  2. package/CHANGELOG.md +231 -0
  3. package/dist/index.d.ts +1 -82
  4. package/dist/index.esm.js +1608 -11
  5. package/dist/src/components/AspectRatio/AspectRatio.d.ts +36 -0
  6. package/dist/src/components/AspectRatio/AspectRatio.d.ts.map +1 -0
  7. package/dist/src/components/AspectRatio/aspectRatio.types.d.ts +50 -0
  8. package/dist/src/components/AspectRatio/aspectRatio.types.d.ts.map +1 -0
  9. package/dist/src/components/Box/Box.d.ts +36 -0
  10. package/dist/src/components/Box/Box.d.ts.map +1 -0
  11. package/dist/src/components/Box/box.types.d.ts +54 -0
  12. package/dist/src/components/Box/box.types.d.ts.map +1 -0
  13. package/dist/src/components/Box/box.variants.d.ts +402 -0
  14. package/dist/src/components/Box/box.variants.d.ts.map +1 -0
  15. package/dist/src/components/Button/Button.d.ts.map +1 -1
  16. package/dist/src/components/Checkbox/Checkbox.d.ts.map +1 -1
  17. package/dist/src/components/Container/Container.d.ts +35 -0
  18. package/dist/src/components/Container/Container.d.ts.map +1 -0
  19. package/dist/src/components/Container/container.types.d.ts +41 -0
  20. package/dist/src/components/Container/container.types.d.ts.map +1 -0
  21. package/dist/src/components/Container/container.variants.d.ts +93 -0
  22. package/dist/src/components/Container/container.variants.d.ts.map +1 -0
  23. package/dist/src/components/Divider/Divider.d.ts +50 -0
  24. package/dist/src/components/Divider/Divider.d.ts.map +1 -0
  25. package/dist/src/components/Divider/divider.types.d.ts +47 -0
  26. package/dist/src/components/Divider/divider.types.d.ts.map +1 -0
  27. package/dist/src/components/Divider/divider.variants.d.ts +129 -0
  28. package/dist/src/components/Divider/divider.variants.d.ts.map +1 -0
  29. package/dist/src/components/Grid/Grid.d.ts +32 -0
  30. package/dist/src/components/Grid/Grid.d.ts.map +1 -0
  31. package/dist/src/components/Grid/grid.types.d.ts +103 -0
  32. package/dist/src/components/Grid/grid.types.d.ts.map +1 -0
  33. package/dist/src/components/Grid/grid.variants.d.ts +453 -0
  34. package/dist/src/components/Grid/grid.variants.d.ts.map +1 -0
  35. package/dist/src/components/NumberField/NumberField.d.ts.map +1 -1
  36. package/dist/src/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  37. package/dist/src/components/Stack/Stack.d.ts +24 -0
  38. package/dist/src/components/Stack/Stack.d.ts.map +1 -0
  39. package/dist/src/components/Stack/stack.types.d.ts +61 -0
  40. package/dist/src/components/Stack/stack.types.d.ts.map +1 -0
  41. package/dist/src/components/Stack/stack.variants.d.ts +163 -0
  42. package/dist/src/components/Stack/stack.variants.d.ts.map +1 -0
  43. package/dist/src/components/Typography/Typography.d.ts +42 -0
  44. package/dist/src/components/Typography/Typography.d.ts.map +1 -0
  45. package/dist/src/components/Typography/typography.types.d.ts +61 -0
  46. package/dist/src/components/Typography/typography.types.d.ts.map +1 -0
  47. package/dist/src/components/Typography/typography.variants.d.ts +167 -0
  48. package/dist/src/components/Typography/typography.variants.d.ts.map +1 -0
  49. package/dist/src/components/VisuallyHidden/VisuallyHidden.d.ts +42 -0
  50. package/dist/src/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
  51. package/dist/src/components/VisuallyHidden/visuallyHidden.types.d.ts +42 -0
  52. package/dist/src/components/VisuallyHidden/visuallyHidden.types.d.ts.map +1 -0
  53. package/dist/src/index.d.ts +23 -1
  54. package/dist/src/index.d.ts.map +1 -1
  55. package/package.json +3 -3
  56. package/src/components/AspectRatio/AspectRatio.test.tsx +173 -0
  57. package/src/components/AspectRatio/AspectRatio.tsx +73 -0
  58. package/src/components/AspectRatio/aspectRatio.types.ts +54 -0
  59. package/src/components/Box/Box.test.tsx +349 -0
  60. package/src/components/Box/Box.tsx +83 -0
  61. package/src/components/Box/box.types.ts +61 -0
  62. package/src/components/Box/box.variants.ts +211 -0
  63. package/src/components/Button/Button.tsx +11 -0
  64. package/src/components/Checkbox/Checkbox.tsx +26 -2
  65. package/src/components/Container/Container.test.tsx +209 -0
  66. package/src/components/Container/Container.tsx +74 -0
  67. package/src/components/Container/container.types.ts +45 -0
  68. package/src/components/Container/container.variants.ts +81 -0
  69. package/src/components/Divider/Divider.test.tsx +241 -0
  70. package/src/components/Divider/Divider.tsx +140 -0
  71. package/src/components/Divider/divider.types.ts +52 -0
  72. package/src/components/Divider/divider.variants.ts +115 -0
  73. package/src/components/Grid/Grid.test.tsx +321 -0
  74. package/src/components/Grid/Grid.tsx +148 -0
  75. package/src/components/Grid/grid.types.ts +112 -0
  76. package/src/components/Grid/grid.variants.ts +133 -0
  77. package/src/components/NumberField/NumberField.tsx +30 -2
  78. package/src/components/RadioGroup/RadioGroup.tsx +23 -1
  79. package/src/components/Stack/Stack.test.tsx +309 -0
  80. package/src/components/Stack/Stack.tsx +115 -0
  81. package/src/components/Stack/stack.types.ts +68 -0
  82. package/src/components/Stack/stack.variants.ts +80 -0
  83. package/src/components/Typography/Typography.test.tsx +230 -0
  84. package/src/components/Typography/Typography.tsx +112 -0
  85. package/src/components/Typography/typography.types.ts +65 -0
  86. package/src/components/Typography/typography.variants.ts +113 -0
  87. package/src/components/VisuallyHidden/VisuallyHidden.test.tsx +86 -0
  88. package/src/components/VisuallyHidden/VisuallyHidden.tsx +59 -0
  89. package/src/components/VisuallyHidden/visuallyHidden.types.ts +45 -0
  90. package/src/index.ts +50 -1
  91. package/LICENSE +0 -21
  92. package/dist/components/AppShell/AppShell.d.ts +0 -32
  93. package/dist/components/AppShell/AppShell.d.ts.map +0 -1
  94. package/dist/components/AppShell/appShell.types.d.ts +0 -62
  95. package/dist/components/AppShell/appShell.types.d.ts.map +0 -1
  96. package/dist/components/AppShell/appShell.variants.d.ts +0 -65
  97. package/dist/components/AppShell/appShell.variants.d.ts.map +0 -1
  98. package/dist/components/Autocomplete/Autocomplete.d.ts +0 -32
  99. package/dist/components/Autocomplete/Autocomplete.d.ts.map +0 -1
  100. package/dist/components/Autocomplete/autocomplete.types.d.ts +0 -214
  101. package/dist/components/Autocomplete/autocomplete.types.d.ts.map +0 -1
  102. package/dist/components/Autocomplete/autocomplete.variants.d.ts +0 -214
  103. package/dist/components/Autocomplete/autocomplete.variants.d.ts.map +0 -1
  104. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -23
  105. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +0 -1
  106. package/dist/components/Breadcrumbs/breadcrumbs.types.d.ts +0 -98
  107. package/dist/components/Breadcrumbs/breadcrumbs.types.d.ts.map +0 -1
  108. package/dist/components/Breadcrumbs/breadcrumbs.variants.d.ts +0 -85
  109. package/dist/components/Breadcrumbs/breadcrumbs.variants.d.ts.map +0 -1
  110. package/dist/components/Button/Button.d.ts +0 -44
  111. package/dist/components/Button/Button.d.ts.map +0 -1
  112. package/dist/components/Button/button.types.d.ts +0 -66
  113. package/dist/components/Button/button.types.d.ts.map +0 -1
  114. package/dist/components/Button/button.variants.d.ts +0 -104
  115. package/dist/components/Button/button.variants.d.ts.map +0 -1
  116. package/dist/components/Checkbox/Checkbox.d.ts +0 -31
  117. package/dist/components/Checkbox/Checkbox.d.ts.map +0 -1
  118. package/dist/components/Checkbox/checkbox.types.d.ts +0 -86
  119. package/dist/components/Checkbox/checkbox.types.d.ts.map +0 -1
  120. package/dist/components/Checkbox/checkbox.variants.d.ts +0 -109
  121. package/dist/components/Checkbox/checkbox.variants.d.ts.map +0 -1
  122. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +0 -38
  123. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +0 -1
  124. package/dist/components/ConfirmDialog/confirmDialog.types.d.ts +0 -80
  125. package/dist/components/ConfirmDialog/confirmDialog.types.d.ts.map +0 -1
  126. package/dist/components/ConfirmDialog/confirmDialog.variants.d.ts +0 -90
  127. package/dist/components/ConfirmDialog/confirmDialog.variants.d.ts.map +0 -1
  128. package/dist/components/DateTimePicker/DateTimePicker.d.ts +0 -49
  129. package/dist/components/DateTimePicker/DateTimePicker.d.ts.map +0 -1
  130. package/dist/components/DateTimePicker/dateTimePicker.types.d.ts +0 -95
  131. package/dist/components/DateTimePicker/dateTimePicker.types.d.ts.map +0 -1
  132. package/dist/components/DateTimePicker/dateTimePicker.variants.d.ts +0 -165
  133. package/dist/components/DateTimePicker/dateTimePicker.variants.d.ts.map +0 -1
  134. package/dist/components/LeftNav/LeftNav.d.ts +0 -34
  135. package/dist/components/LeftNav/LeftNav.d.ts.map +0 -1
  136. package/dist/components/LeftNav/leftNav.types.d.ts +0 -136
  137. package/dist/components/LeftNav/leftNav.types.d.ts.map +0 -1
  138. package/dist/components/LeftNav/leftNav.variants.d.ts +0 -143
  139. package/dist/components/LeftNav/leftNav.variants.d.ts.map +0 -1
  140. package/dist/components/NumberField/NumberField.d.ts +0 -18
  141. package/dist/components/NumberField/NumberField.d.ts.map +0 -1
  142. package/dist/components/NumberField/numberField.types.d.ts +0 -79
  143. package/dist/components/NumberField/numberField.types.d.ts.map +0 -1
  144. package/dist/components/NumberField/numberField.variants.d.ts +0 -169
  145. package/dist/components/NumberField/numberField.variants.d.ts.map +0 -1
  146. package/dist/components/OTPField/OTPField.d.ts +0 -25
  147. package/dist/components/OTPField/OTPField.d.ts.map +0 -1
  148. package/dist/components/OTPField/otpField.types.d.ts +0 -74
  149. package/dist/components/OTPField/otpField.types.d.ts.map +0 -1
  150. package/dist/components/OTPField/otpField.variants.d.ts +0 -105
  151. package/dist/components/OTPField/otpField.variants.d.ts.map +0 -1
  152. package/dist/components/RadioGroup/RadioGroup.d.ts +0 -35
  153. package/dist/components/RadioGroup/RadioGroup.d.ts.map +0 -1
  154. package/dist/components/RadioGroup/radioGroup.types.d.ts +0 -103
  155. package/dist/components/RadioGroup/radioGroup.types.d.ts.map +0 -1
  156. package/dist/components/RadioGroup/radioGroup.variants.d.ts +0 -166
  157. package/dist/components/RadioGroup/radioGroup.variants.d.ts.map +0 -1
  158. package/dist/components/Snackbar/Snackbar.d.ts +0 -37
  159. package/dist/components/Snackbar/Snackbar.d.ts.map +0 -1
  160. package/dist/components/Snackbar/snackbar.types.d.ts +0 -86
  161. package/dist/components/Snackbar/snackbar.types.d.ts.map +0 -1
  162. package/dist/components/Snackbar/snackbar.variants.d.ts +0 -153
  163. package/dist/components/Snackbar/snackbar.variants.d.ts.map +0 -1
  164. package/dist/components/Switch/Switch.d.ts +0 -15
  165. package/dist/components/Switch/Switch.d.ts.map +0 -1
  166. package/dist/components/Switch/switch.types.d.ts +0 -47
  167. package/dist/components/Switch/switch.types.d.ts.map +0 -1
  168. package/dist/components/Switch/switch.variants.d.ts +0 -105
  169. package/dist/components/Switch/switch.variants.d.ts.map +0 -1
  170. package/dist/components/TextField/TextField.d.ts +0 -25
  171. package/dist/components/TextField/TextField.d.ts.map +0 -1
  172. package/dist/components/TextField/textField.types.d.ts +0 -72
  173. package/dist/components/TextField/textField.types.d.ts.map +0 -1
  174. package/dist/components/TextField/textField.variants.d.ts +0 -160
  175. package/dist/components/TextField/textField.variants.d.ts.map +0 -1
  176. package/dist/components/Textarea/Textarea.d.ts +0 -16
  177. package/dist/components/Textarea/Textarea.d.ts.map +0 -1
  178. package/dist/components/Textarea/textarea.types.d.ts +0 -63
  179. package/dist/components/Textarea/textarea.types.d.ts.map +0 -1
  180. package/dist/components/Textarea/textarea.variants.d.ts +0 -197
  181. package/dist/components/Textarea/textarea.variants.d.ts.map +0 -1
  182. package/dist/components/TopBar/TopBar.d.ts +0 -33
  183. package/dist/components/TopBar/TopBar.d.ts.map +0 -1
  184. package/dist/components/TopBar/topBar.types.d.ts +0 -49
  185. package/dist/components/TopBar/topBar.types.d.ts.map +0 -1
  186. package/dist/components/TopBar/topBar.variants.d.ts +0 -79
  187. package/dist/components/TopBar/topBar.variants.d.ts.map +0 -1
  188. package/dist/components/_shared/resolveValidationState.d.ts +0 -42
  189. package/dist/components/_shared/resolveValidationState.d.ts.map +0 -1
  190. package/dist/hooks/useAccessState.d.ts +0 -37
  191. package/dist/hooks/useAccessState.d.ts.map +0 -1
  192. package/dist/index.d.ts.map +0 -1
  193. package/dist/tsconfig.lib.tsbuildinfo +0 -1
  194. package/dist/utils/cn.d.ts +0 -26
  195. package/dist/utils/cn.d.ts.map +0 -1
@@ -0,0 +1,163 @@
1
+ import { type VariantProps } from 'tailwind-variants';
2
+ /**
3
+ * `stackVariants` — flex container 1D, the layout primitive of @dashforge/tw.
4
+ *
5
+ * Architectural role (planned with the user — F9 deep dive):
6
+ *
7
+ * Stack is the ONLY way to do flex in this library. Box is the
8
+ * surface (border / bg / shadow); Stack is the arrangement (direction
9
+ * / align / justify / gap). Two primitives, two responsibilities,
10
+ * zero overlap.
11
+ *
12
+ * This rules out the MUI failure mode where every `<Box display="flex"
13
+ * gap={2}>` quietly becomes the de-facto flex container, drowning
14
+ * the surface vs layout distinction. Here, if you see `<Stack>` in
15
+ * the JSX, you KNOW it's flex; if you see `<Box>`, you KNOW it's
16
+ * not. The component name carries the intent.
17
+ *
18
+ * Axes:
19
+ * • direction — row / col (+ reverse variants)
20
+ * • align / justify — cross-axis / main-axis alignment
21
+ * • gap — token-scale step (mirror Box spacing scale)
22
+ * • wrap — flex-wrap
23
+ * • divider — runtime-only (handled in Stack.tsx, not here)
24
+ *
25
+ * Sizing (`fullWidth`, `fullHeight`) is duplicated from Box because
26
+ * Stack often plays the role of a full-width strip / full-height
27
+ * column — re-typing `sx="w-full"` every time would be friction.
28
+ */
29
+ export declare const stackVariants: import("tailwind-variants").TVReturnType<{
30
+ direction: {
31
+ row: string;
32
+ col: string;
33
+ 'row-reverse': string;
34
+ 'col-reverse': string;
35
+ };
36
+ align: {
37
+ start: string;
38
+ center: string;
39
+ end: string;
40
+ stretch: string;
41
+ baseline: string;
42
+ };
43
+ justify: {
44
+ start: string;
45
+ center: string;
46
+ end: string;
47
+ between: string;
48
+ around: string;
49
+ evenly: string;
50
+ };
51
+ gap: {
52
+ 0: string;
53
+ '0.5': string;
54
+ 1: string;
55
+ 2: string;
56
+ 3: string;
57
+ 4: string;
58
+ 6: string;
59
+ 8: string;
60
+ 12: string;
61
+ 16: string;
62
+ 24: string;
63
+ };
64
+ wrap: {
65
+ true: string;
66
+ };
67
+ fullWidth: {
68
+ true: string;
69
+ };
70
+ fullHeight: {
71
+ true: string;
72
+ };
73
+ }, undefined, "flex", {
74
+ direction: {
75
+ row: string;
76
+ col: string;
77
+ 'row-reverse': string;
78
+ 'col-reverse': string;
79
+ };
80
+ align: {
81
+ start: string;
82
+ center: string;
83
+ end: string;
84
+ stretch: string;
85
+ baseline: string;
86
+ };
87
+ justify: {
88
+ start: string;
89
+ center: string;
90
+ end: string;
91
+ between: string;
92
+ around: string;
93
+ evenly: string;
94
+ };
95
+ gap: {
96
+ 0: string;
97
+ '0.5': string;
98
+ 1: string;
99
+ 2: string;
100
+ 3: string;
101
+ 4: string;
102
+ 6: string;
103
+ 8: string;
104
+ 12: string;
105
+ 16: string;
106
+ 24: string;
107
+ };
108
+ wrap: {
109
+ true: string;
110
+ };
111
+ fullWidth: {
112
+ true: string;
113
+ };
114
+ fullHeight: {
115
+ true: string;
116
+ };
117
+ }, undefined, import("tailwind-variants").TVReturnType<{
118
+ direction: {
119
+ row: string;
120
+ col: string;
121
+ 'row-reverse': string;
122
+ 'col-reverse': string;
123
+ };
124
+ align: {
125
+ start: string;
126
+ center: string;
127
+ end: string;
128
+ stretch: string;
129
+ baseline: string;
130
+ };
131
+ justify: {
132
+ start: string;
133
+ center: string;
134
+ end: string;
135
+ between: string;
136
+ around: string;
137
+ evenly: string;
138
+ };
139
+ gap: {
140
+ 0: string;
141
+ '0.5': string;
142
+ 1: string;
143
+ 2: string;
144
+ 3: string;
145
+ 4: string;
146
+ 6: string;
147
+ 8: string;
148
+ 12: string;
149
+ 16: string;
150
+ 24: string;
151
+ };
152
+ wrap: {
153
+ true: string;
154
+ };
155
+ fullWidth: {
156
+ true: string;
157
+ };
158
+ fullHeight: {
159
+ true: string;
160
+ };
161
+ }, undefined, "flex", unknown, unknown, undefined>>;
162
+ export type StackVariants = VariantProps<typeof stackVariants>;
163
+ //# sourceMappingURL=stack.variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stack.variants.d.ts","sourceRoot":"","sources":["../../../../src/components/Stack/stack.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAgDxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -0,0 +1,42 @@
1
+ import type { TypographyProps } from './typography.types.js';
2
+ /**
3
+ * `<Typography>` — semantic typed text, the foundation of every readable
4
+ * surface in @dashforge/tw.
5
+ *
6
+ * Why this exists:
7
+ * Tailwind ships a typographic scale (`text-xl`, `font-bold`,
8
+ * `leading-relaxed`) but leaves the SEMANTIC HTML tag and the
9
+ * intent-coloured palette to the consumer. That's fine for one-off
10
+ * marketing surfaces, but at app scale it means every `<h2>` and every
11
+ * body paragraph re-derives its own utility chain — and they drift.
12
+ *
13
+ * Typography moves that decision into a typed prop set: the visual
14
+ * scale, the intent colour, the alignment, the truncation all live in
15
+ * `tailwind-variants` and resolve to the same utility chain everywhere
16
+ * in the app. The default HTML tag is inferred from `variant` so the
17
+ * semantic layer follows the visual layer; `as` and `asChild` are the
18
+ * two escape hatches when you need something else.
19
+ *
20
+ * Layering:
21
+ * • Sits BENEATH every component that renders text — `<Button>`'s
22
+ * label, `<TextField>`'s helper text, MDX prose in our own docs.
23
+ * • Composes ON TOP of `@dashforge/tw-tokens` colour scales (so
24
+ * `color="primary"` paints `text-primary-700` in light, `-400` in dark,
25
+ * reactive to `setMode()`).
26
+ * • Polymorphic via Radix Slot — pairs cleanly with router `<Link>`,
27
+ * `<button>`, or `<a>` without injecting an extra wrapper element.
28
+ *
29
+ * Polymorphism rules — `as` vs `asChild`:
30
+ * • `as` swaps the rendered tag (we still render the element ourselves).
31
+ * • `asChild` removes our element entirely — the single React child
32
+ * becomes the rendered tag, with our className/ref merged onto it.
33
+ * This is the Radix Slot pattern; use when you need a router Link
34
+ * to style as a heading.
35
+ * When BOTH are passed, `asChild` wins. We considered making this a
36
+ * compile-time error via discriminated unions, but the API surface
37
+ * already has 8 axes and adding one more dimension to the props type
38
+ * would inflate IntelliSense suggestions for marginal benefit. The
39
+ * runtime preference is documented; the test asserts it.
40
+ */
41
+ export declare const Typography: import("react").ForwardRefExoticComponent<TypographyProps & import("react").RefAttributes<HTMLElement>>;
42
+ //# sourceMappingURL=Typography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../../src/components/Typography/Typography.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AA0B7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,UAAU,yGAwCtB,CAAC"}
@@ -0,0 +1,61 @@
1
+ import type { ElementType, HTMLAttributes } from 'react';
2
+ import type { TypographyVariants } from './typography.variants.js';
3
+ /**
4
+ * Props for `<Typography>`.
5
+ *
6
+ * Composition with native `HTMLAttributes`:
7
+ * • `className` is omitted in favour of `sx` (string of utility classes)
8
+ * — same convention as Button/TextField/Checkbox/Switch in this
9
+ * package. `sx` is merged via `tailwind-merge`, so the consumer's
10
+ * classes always win over variant defaults.
11
+ * • `color` is omitted because the native HTML attribute (the
12
+ * deprecated `color="red"` from HTML4) collides with our intent
13
+ * prop — TypeScript would otherwise widen to a confusing union.
14
+ *
15
+ * Variant axes picked from `TypographyVariants`:
16
+ * • `variant` — the type scale (h1–h6, subtitle1/2, body1/2, caption, overline)
17
+ * • `color` — the intent (primary, secondary, success, warning, danger, info, neutral, muted, inherit)
18
+ * • `weight` — overrides the variant's default font-weight
19
+ * • `align` — text-align
20
+ * • `truncate` — one-line ellipsis
21
+ * • `noWrap` — one-line without ellipsis
22
+ * • `gutterBottom` — adds mb-3 (mirror of MUI's same prop)
23
+ *
24
+ * Polymorphism:
25
+ * • `as` — override the HTML tag while keeping the variant's visual
26
+ * style (e.g. `<Typography variant="h1" as="h2">` renders an
27
+ * `<h2>` styled like h1 — useful when the semantic heading
28
+ * level matters more than the type scale).
29
+ * • `asChild` — render as the single child element via Radix Slot
30
+ * (so the styles paint onto a `<Link>`, `<a>`, etc.).
31
+ * Mutually exclusive with `as` — see component header for
32
+ * the rationale.
33
+ */
34
+ export interface TypographyProps extends Omit<HTMLAttributes<HTMLElement>, 'className' | 'color'>, Pick<TypographyVariants, 'variant' | 'color' | 'weight' | 'align' | 'truncate' | 'noWrap' | 'gutterBottom'> {
35
+ /**
36
+ * Override the HTML tag. Defaults to a sensible mapping per variant
37
+ * (h1→h1, …, body1→p, caption→span, overline→span). Use when the
38
+ * semantic heading level should differ from the visual scale —
39
+ * e.g. a "hero" rendered as an `<h2>` but styled like `h1`.
40
+ *
41
+ * Ignored when `asChild` is true.
42
+ */
43
+ as?: ElementType;
44
+ /**
45
+ * Render via Radix `Slot` — the Typography styles paint onto the
46
+ * single React child instead of wrapping it in our own tag. Useful
47
+ * for `<Typography asChild><Link>...</Link></Typography>` to get a
48
+ * styled router link with no extra DOM.
49
+ *
50
+ * Mutually exclusive with `as` (when both are passed, `asChild` wins
51
+ * and `as` is ignored — see Typography.tsx for the reason).
52
+ */
53
+ asChild?: boolean;
54
+ /**
55
+ * Utility classes appended to the variant chain. Resolved via
56
+ * `tailwind-merge` so the consumer's classes always win over the
57
+ * variant defaults — e.g. `sx="text-pink-500"` overrides `color="primary"`.
58
+ */
59
+ sx?: string;
60
+ }
61
+ //# sourceMappingURL=typography.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Typography/typography.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,EACxD,IAAI,CAAC,kBAAkB,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,cAAc,CAAC;IACnH;;;;;;;OAOG;IACH,EAAE,CAAC,EAAE,WAAW,CAAC;IAEjB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb"}
@@ -0,0 +1,167 @@
1
+ import { type VariantProps } from 'tailwind-variants';
2
+ /**
3
+ * `typographyVariants` — the full type scale for the @dashforge/tw library.
4
+ *
5
+ * Mirrors the MUI Typography variant set (h1–h6 · subtitle1/2 · body1/2 ·
6
+ * caption · overline) so the mental model carries over for developers
7
+ * moving between the two ecosystems. Each variant baseline maps to a
8
+ * Tailwind utility chain that resolves through the @dashforge/tw-tokens
9
+ * scale (so the visual stays in sync with the rest of the system when the
10
+ * token theme is patched).
11
+ *
12
+ * Variant axes are intentionally ORTHOGONAL — `variant` chooses the type
13
+ * scale, `weight` overrides the variant's default weight (useful for "h2
14
+ * but lighter"), `color` picks the intent, `align` picks the axis. They
15
+ * never collide, so consumers can mix them freely.
16
+ *
17
+ * Two boolean flags (`truncate`, `noWrap`) encode the most common one-line
18
+ * patterns; `gutterBottom` adds the conventional bottom margin used when a
19
+ * heading precedes a paragraph block (mirror of MUI's same flag).
20
+ */
21
+ export declare const typographyVariants: import("tailwind-variants").TVReturnType<{
22
+ variant: {
23
+ h1: string;
24
+ h2: string;
25
+ h3: string;
26
+ h4: string;
27
+ h5: string;
28
+ h6: string;
29
+ subtitle1: string;
30
+ subtitle2: string;
31
+ body1: string;
32
+ body2: string;
33
+ caption: string;
34
+ overline: string;
35
+ };
36
+ color: {
37
+ inherit: string;
38
+ primary: string;
39
+ secondary: string;
40
+ success: string;
41
+ warning: string;
42
+ danger: string;
43
+ info: string;
44
+ neutral: string;
45
+ muted: string;
46
+ };
47
+ weight: {
48
+ normal: string;
49
+ medium: string;
50
+ semibold: string;
51
+ bold: string;
52
+ extrabold: string;
53
+ };
54
+ align: {
55
+ left: string;
56
+ center: string;
57
+ right: string;
58
+ justify: string;
59
+ };
60
+ truncate: {
61
+ true: string;
62
+ };
63
+ noWrap: {
64
+ true: string;
65
+ };
66
+ gutterBottom: {
67
+ true: string;
68
+ };
69
+ }, undefined, "text-inherit", {
70
+ variant: {
71
+ h1: string;
72
+ h2: string;
73
+ h3: string;
74
+ h4: string;
75
+ h5: string;
76
+ h6: string;
77
+ subtitle1: string;
78
+ subtitle2: string;
79
+ body1: string;
80
+ body2: string;
81
+ caption: string;
82
+ overline: string;
83
+ };
84
+ color: {
85
+ inherit: string;
86
+ primary: string;
87
+ secondary: string;
88
+ success: string;
89
+ warning: string;
90
+ danger: string;
91
+ info: string;
92
+ neutral: string;
93
+ muted: string;
94
+ };
95
+ weight: {
96
+ normal: string;
97
+ medium: string;
98
+ semibold: string;
99
+ bold: string;
100
+ extrabold: string;
101
+ };
102
+ align: {
103
+ left: string;
104
+ center: string;
105
+ right: string;
106
+ justify: string;
107
+ };
108
+ truncate: {
109
+ true: string;
110
+ };
111
+ noWrap: {
112
+ true: string;
113
+ };
114
+ gutterBottom: {
115
+ true: string;
116
+ };
117
+ }, undefined, import("tailwind-variants").TVReturnType<{
118
+ variant: {
119
+ h1: string;
120
+ h2: string;
121
+ h3: string;
122
+ h4: string;
123
+ h5: string;
124
+ h6: string;
125
+ subtitle1: string;
126
+ subtitle2: string;
127
+ body1: string;
128
+ body2: string;
129
+ caption: string;
130
+ overline: string;
131
+ };
132
+ color: {
133
+ inherit: string;
134
+ primary: string;
135
+ secondary: string;
136
+ success: string;
137
+ warning: string;
138
+ danger: string;
139
+ info: string;
140
+ neutral: string;
141
+ muted: string;
142
+ };
143
+ weight: {
144
+ normal: string;
145
+ medium: string;
146
+ semibold: string;
147
+ bold: string;
148
+ extrabold: string;
149
+ };
150
+ align: {
151
+ left: string;
152
+ center: string;
153
+ right: string;
154
+ justify: string;
155
+ };
156
+ truncate: {
157
+ true: string;
158
+ };
159
+ noWrap: {
160
+ true: string;
161
+ };
162
+ gutterBottom: {
163
+ true: string;
164
+ };
165
+ }, undefined, "text-inherit", unknown, unknown, undefined>>;
166
+ export type TypographyVariants = VariantProps<typeof typographyVariants>;
167
+ //# sourceMappingURL=typography.variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.variants.d.ts","sourceRoot":"","sources":["../../../../src/components/Typography/typography.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2DAyF7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,42 @@
1
+ import type { VisuallyHiddenProps } from './visuallyHidden.types.js';
2
+ /**
3
+ * `<VisuallyHidden>` — the accessibility primitive.
4
+ *
5
+ * Hides children from sighted users (zero pixels rendered, no layout
6
+ * impact) while keeping them in the accessibility tree. Screen readers
7
+ * speak the content; voice control software uses it for click targets;
8
+ * keyboard users see nothing — same as if it weren't there.
9
+ *
10
+ * Implementation: Tailwind's built-in `sr-only` utility, which expands to:
11
+ *
12
+ * .sr-only {
13
+ * position: absolute;
14
+ * width: 1px;
15
+ * height: 1px;
16
+ * padding: 0;
17
+ * margin: -1px;
18
+ * overflow: hidden;
19
+ * clip: rect(0,0,0,0);
20
+ * white-space: nowrap;
21
+ * border-width: 0;
22
+ * }
23
+ *
24
+ * This is the canonical "visually-hidden but screen-reader-accessible"
25
+ * pattern, also known as the WebAIM clip technique. Critically:
26
+ *
27
+ * • NOT `display: none` (removes from a11y tree)
28
+ * • NOT `visibility: hidden` (also removes from a11y tree)
29
+ * • NOT `opacity: 0` (technically still rendered, doesn't help AT)
30
+ * • NOT `width/height: 0` (collapses, some AT skips it)
31
+ *
32
+ * Default tag is `<span>` (inline) — the 99% case is "label inside a
33
+ * button or link". For block content, override with `as="div"`, but
34
+ * be aware nesting block inside inline is invalid HTML.
35
+ *
36
+ * The component is intentionally tiny (~30 LoC total): one className,
37
+ * one tag. The value is the COMPONENT NAME — `<VisuallyHidden>` reads
38
+ * as an intentional a11y decision in code review, while
39
+ * `className="sr-only"` looks like a typo or a forgotten utility.
40
+ */
41
+ export declare const VisuallyHidden: import("react").ForwardRefExoticComponent<VisuallyHiddenProps & import("react").RefAttributes<HTMLElement>>;
42
+ //# sourceMappingURL=VisuallyHidden.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VisuallyHidden.d.ts","sourceRoot":"","sources":["../../../../src/components/VisuallyHidden/VisuallyHidden.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,cAAc,6GAa1B,CAAC"}
@@ -0,0 +1,42 @@
1
+ import type { ElementType, HTMLAttributes, ReactElement } from 'react';
2
+ /**
3
+ * Props for `<VisuallyHidden>` — the a11y primitive.
4
+ *
5
+ * Hides content visually (zero pixels rendered) while keeping it
6
+ * accessible to assistive technology (screen readers, voice control).
7
+ * The canonical use case: icon-only buttons that need an audible label
8
+ * for non-visual users.
9
+ *
10
+ * <button>
11
+ * <CloseIcon />
12
+ * <VisuallyHidden>Close dialog</VisuallyHidden>
13
+ * </button>
14
+ *
15
+ * Implementation uses Tailwind's `sr-only` utility, which sets
16
+ * `position: absolute; width: 1px; height: 1px; padding: 0;
17
+ * margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
18
+ * white-space: nowrap; border-width: 0;` — the canonical
19
+ * "visually-hidden but screen-reader-accessible" pattern. Better
20
+ * than `display: none` (removes from a11y tree) and better than
21
+ * `visibility: hidden` (also removes from a11y tree).
22
+ */
23
+ export interface VisuallyHiddenProps extends Omit<HTMLAttributes<HTMLElement>, 'className'> {
24
+ /**
25
+ * The text or markup hidden from sighted users but read by AT.
26
+ * Most often a string label.
27
+ */
28
+ children?: ReactElement | string | number;
29
+ /**
30
+ * Override the rendered HTML tag. Defaults to `'span'` — inline
31
+ * placement is the most common case (label inside a button or link).
32
+ * Use `as="div"` when the hidden content is block-level, but be
33
+ * aware: nesting a block inside an inline parent is invalid HTML.
34
+ */
35
+ as?: ElementType;
36
+ /**
37
+ * Utility classes appended to `sr-only`. RARELY needed for this
38
+ * primitive (it's just hidden text) — kept for API parity.
39
+ */
40
+ sx?: string;
41
+ }
42
+ //# sourceMappingURL=visuallyHidden.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visuallyHidden.types.d.ts","sourceRoot":"","sources":["../../../../src/components/VisuallyHidden/visuallyHidden.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC;IACtD;;;OAGG;IACH,QAAQ,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;IAE1C;;;;;OAKG;IACH,EAAE,CAAC,EAAE,WAAW,CAAC;IAEjB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb"}
@@ -71,6 +71,28 @@ export { confirmDialogVariants } from './components/ConfirmDialog/confirmDialog.
71
71
  export { SnackbarProvider, useSnackbar, } from './components/Snackbar/Snackbar.js';
72
72
  export type { SnackbarProviderProps, SnackbarApi, SnackbarOptions, SnackbarRecord, SnackbarSeverity, SnackbarPosition, SnackbarSlotProps, } from './components/Snackbar/snackbar.types.js';
73
73
  export { snackbarVariants } from './components/Snackbar/snackbar.variants.js';
74
+ export { Typography } from './components/Typography/Typography.js';
75
+ export type { TypographyProps } from './components/Typography/typography.types.js';
76
+ export { typographyVariants } from './components/Typography/typography.variants.js';
77
+ export { Box } from './components/Box/Box.js';
78
+ export type { BoxProps } from './components/Box/box.types.js';
79
+ export { boxVariants } from './components/Box/box.variants.js';
80
+ export { Stack } from './components/Stack/Stack.js';
81
+ export type { StackProps } from './components/Stack/stack.types.js';
82
+ export { stackVariants } from './components/Stack/stack.variants.js';
83
+ export { Grid } from './components/Grid/Grid.js';
84
+ export type { GridProps, GridContainerProps, GridItemProps, ColSpan, GridSpacingStep, } from './components/Grid/grid.types.js';
85
+ export { gridVariants } from './components/Grid/grid.variants.js';
86
+ export { Container } from './components/Container/Container.js';
87
+ export type { ContainerProps } from './components/Container/container.types.js';
88
+ export { containerVariants } from './components/Container/container.variants.js';
89
+ export { Divider } from './components/Divider/Divider.js';
90
+ export type { DividerProps } from './components/Divider/divider.types.js';
91
+ export { dividerVariants, dividerLineVariants, } from './components/Divider/divider.variants.js';
92
+ export { AspectRatio } from './components/AspectRatio/AspectRatio.js';
93
+ export type { AspectRatioProps } from './components/AspectRatio/aspectRatio.types.js';
94
+ export { VisuallyHidden } from './components/VisuallyHidden/VisuallyHidden.js';
95
+ export type { VisuallyHiddenProps } from './components/VisuallyHidden/visuallyHidden.types.js';
74
96
  export { useAccessState } from './hooks/useAccessState.js';
75
97
  export { cn } from './utils/cn.js';
76
98
  export { tv } from 'tailwind-variants';
@@ -78,5 +100,5 @@ export type { VariantProps } from 'tailwind-variants';
78
100
  /**
79
101
  * Package version (synced with `package.json` at publish time).
80
102
  */
81
- export declare const VERSION = "0.1.0-beta";
103
+ export declare const VERSION = "0.2.1-beta";
82
104
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,YAAY,EACV,cAAc,EACd,kBAAkB,GACnB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAC7D,YAAY,EACV,aAAa,EACb,iBAAiB,GAClB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,YAAY,EACV,WAAW,EACX,eAAe,GAChB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAIxE,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,YAAY,EACV,eAAe,EACf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C;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAOlE,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,YAAY,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,YAAY,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EACL,eAAe,EACf,mBAAmB,GACpB,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACtE,YAAY,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,YAAY,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAG/F,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAInC,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACvC,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,OAAO,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashforge/tw",
3
- "version": "0.1.0-beta",
3
+ "version": "0.2.1-beta",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.esm.js",
@@ -26,8 +26,8 @@
26
26
  "tailwind-variants": "^3.1.1",
27
27
  "vitest": "*",
28
28
  "@dashforge/forms": "0.2.3-beta",
29
- "@dashforge/ui-core": "0.2.3-beta",
30
- "@dashforge/rbac": "0.2.3-beta"
29
+ "@dashforge/rbac": "0.2.3-beta",
30
+ "@dashforge/ui-core": "0.2.3-beta"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": "^18.0.0 || ^19.0.0",