@donotdev/components 0.1.0 → 0.1.42

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 (242) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +2 -2
  3. package/dist/{CarouselContent-W2TS6Y5R.js → CarouselContent-UJARFDSE.js} +1 -1
  4. package/dist/CodeContent-JLL6BLG2.js +2 -0
  5. package/dist/advanced/Carousel/CarouselContent.d.ts +1 -0
  6. package/dist/advanced/Carousel/CarouselContent.d.ts.map +1 -1
  7. package/dist/advanced/Carousel/CarouselSkeleton.d.ts +1 -0
  8. package/dist/advanced/Carousel/CarouselSkeleton.d.ts.map +1 -1
  9. package/dist/advanced/Code/CodeContent.d.ts +1 -0
  10. package/dist/advanced/Code/CodeContent.d.ts.map +1 -1
  11. package/dist/advanced/Code/CodeContent.js +2 -3
  12. package/dist/advanced/Code/CodeSkeleton.d.ts +1 -0
  13. package/dist/advanced/Code/CodeSkeleton.d.ts.map +1 -1
  14. package/dist/advanced/Crawl/Crawl.d.ts +1 -0
  15. package/dist/advanced/Crawl/Crawl.d.ts.map +1 -1
  16. package/dist/advanced/Crawl/CrawlContent.d.ts +1 -0
  17. package/dist/advanced/Crawl/CrawlContent.d.ts.map +1 -1
  18. package/dist/advanced/ImageGallery/ImageGallery.d.ts +9 -1
  19. package/dist/advanced/ImageGallery/ImageGallery.d.ts.map +1 -1
  20. package/dist/advanced/ImageGallery/ImageGallery.js +54 -4
  21. package/dist/advanced/JsonViewer/JsonViewer.d.ts +1 -0
  22. package/dist/advanced/JsonViewer/JsonViewer.d.ts.map +1 -1
  23. package/dist/advanced/JsonViewer/JsonViewer.js +11 -11
  24. package/dist/advanced/Marquee/MarqueeContent.d.ts +1 -0
  25. package/dist/advanced/Marquee/MarqueeContent.d.ts.map +1 -1
  26. package/dist/advanced/Marquee/MarqueeSkeleton.d.ts +1 -0
  27. package/dist/advanced/Marquee/MarqueeSkeleton.d.ts.map +1 -1
  28. package/dist/advanced/Reveal/Reveal.d.ts +1 -0
  29. package/dist/advanced/Reveal/Reveal.d.ts.map +1 -1
  30. package/dist/advanced/Reveal/Reveal.js +4 -4
  31. package/dist/advanced/Roadmap/RoadmapContent.d.ts +2 -0
  32. package/dist/advanced/Roadmap/RoadmapContent.d.ts.map +1 -1
  33. package/dist/advanced/Roadmap/RoadmapContent.js +9 -3
  34. package/dist/atomic/Accordion/index.d.ts +2 -0
  35. package/dist/atomic/Accordion/index.d.ts.map +1 -1
  36. package/dist/atomic/ActionButton/index.d.ts +1 -0
  37. package/dist/atomic/ActionButton/index.d.ts.map +1 -1
  38. package/dist/atomic/ActionButton/useAction.d.ts +2 -0
  39. package/dist/atomic/ActionButton/useAction.d.ts.map +1 -1
  40. package/dist/atomic/Alert/index.d.ts +3 -1
  41. package/dist/atomic/Alert/index.d.ts.map +1 -1
  42. package/dist/atomic/Alert/index.js +1 -1
  43. package/dist/atomic/AlertDialog/index.d.ts +1 -0
  44. package/dist/atomic/AlertDialog/index.d.ts.map +1 -1
  45. package/dist/atomic/Avatar/index.d.ts +1 -0
  46. package/dist/atomic/Avatar/index.d.ts.map +1 -1
  47. package/dist/atomic/Badge/index.d.ts +2 -1
  48. package/dist/atomic/Badge/index.d.ts.map +1 -1
  49. package/dist/atomic/Blockquote/index.d.ts +2 -0
  50. package/dist/atomic/Blockquote/index.d.ts.map +1 -1
  51. package/dist/atomic/Button/index.d.ts +6 -3
  52. package/dist/atomic/Button/index.d.ts.map +1 -1
  53. package/dist/atomic/Button/index.js +4 -4
  54. package/dist/atomic/ButtonGroup/index.d.ts +2 -0
  55. package/dist/atomic/ButtonGroup/index.d.ts.map +1 -1
  56. package/dist/atomic/Calendar/index.d.ts +1 -0
  57. package/dist/atomic/Calendar/index.d.ts.map +1 -1
  58. package/dist/atomic/CallToAction/index.d.ts +2 -0
  59. package/dist/atomic/CallToAction/index.d.ts.map +1 -1
  60. package/dist/atomic/CallToAction/index.js +2 -2
  61. package/dist/atomic/Card/index.d.ts +102 -2
  62. package/dist/atomic/Card/index.d.ts.map +1 -1
  63. package/dist/atomic/Card/index.js +87 -9
  64. package/dist/atomic/Checkbox/index.d.ts +3 -2
  65. package/dist/atomic/Checkbox/index.d.ts.map +1 -1
  66. package/dist/atomic/Checkbox/index.js +6 -4
  67. package/dist/atomic/Collapsible/index.d.ts +1 -0
  68. package/dist/atomic/Collapsible/index.d.ts.map +1 -1
  69. package/dist/atomic/ColorPicker/index.d.ts +2 -0
  70. package/dist/atomic/ColorPicker/index.d.ts.map +1 -1
  71. package/dist/atomic/ColorPicker/index.js +7 -7
  72. package/dist/atomic/Combobox/index.d.ts +4 -0
  73. package/dist/atomic/Combobox/index.d.ts.map +1 -1
  74. package/dist/atomic/Combobox/index.js +39 -20
  75. package/dist/atomic/Command/index.d.ts +2 -0
  76. package/dist/atomic/Command/index.d.ts.map +1 -1
  77. package/dist/atomic/CommandDialog/index.d.ts +1 -0
  78. package/dist/atomic/CommandDialog/index.d.ts.map +1 -1
  79. package/dist/atomic/ContextMenu/index.d.ts +1 -0
  80. package/dist/atomic/ContextMenu/index.d.ts.map +1 -1
  81. package/dist/atomic/CopyToClipboard/index.d.ts +1 -0
  82. package/dist/atomic/CopyToClipboard/index.d.ts.map +1 -1
  83. package/dist/atomic/CopyToClipboard/index.js +5 -4
  84. package/dist/atomic/DatePicker/index.d.ts +54 -0
  85. package/dist/atomic/DatePicker/index.d.ts.map +1 -0
  86. package/dist/atomic/DatePicker/index.js +377 -0
  87. package/dist/atomic/DateTimePicker/index.d.ts +54 -0
  88. package/dist/atomic/DateTimePicker/index.d.ts.map +1 -0
  89. package/dist/atomic/DateTimePicker/index.js +460 -0
  90. package/dist/atomic/DescriptionList/index.d.ts +2 -0
  91. package/dist/atomic/DescriptionList/index.d.ts.map +1 -1
  92. package/dist/atomic/Dialog/index.d.ts +3 -0
  93. package/dist/atomic/Dialog/index.d.ts.map +1 -1
  94. package/dist/atomic/DropdownMenu/index.d.ts +2 -0
  95. package/dist/atomic/DropdownMenu/index.d.ts.map +1 -1
  96. package/dist/atomic/DualCard/index.d.ts +2 -0
  97. package/dist/atomic/DualCard/index.d.ts.map +1 -1
  98. package/dist/atomic/FeatureFallback/index.d.ts +1 -0
  99. package/dist/atomic/FeatureFallback/index.d.ts.map +1 -1
  100. package/dist/atomic/FileButton/index.d.ts +1 -0
  101. package/dist/atomic/FileButton/index.d.ts.map +1 -1
  102. package/dist/atomic/FileButton/index.js +3 -3
  103. package/dist/atomic/HeroSection/index.d.ts +7 -0
  104. package/dist/atomic/HeroSection/index.d.ts.map +1 -1
  105. package/dist/atomic/HeroSection/index.js +15 -4
  106. package/dist/atomic/HoverCard/index.d.ts +1 -0
  107. package/dist/atomic/HoverCard/index.d.ts.map +1 -1
  108. package/dist/atomic/Icons/Icon.d.ts +1 -0
  109. package/dist/atomic/Icons/Icon.d.ts.map +1 -1
  110. package/dist/atomic/Icons/Icon.js +3 -11
  111. package/dist/atomic/Icons/Partner/SupabaseIcon.d.ts +17 -0
  112. package/dist/atomic/Icons/Partner/SupabaseIcon.d.ts.map +1 -0
  113. package/dist/atomic/Icons/Partner/SupabaseIcon.js +16 -0
  114. package/dist/atomic/Icons/Partner/index.d.ts +1 -0
  115. package/dist/atomic/Icons/Partner/index.d.ts.map +1 -1
  116. package/dist/atomic/Icons/Partner/index.js +1 -0
  117. package/dist/atomic/Icons/Partner/providerIcons.d.ts +3 -0
  118. package/dist/atomic/Icons/Partner/providerIcons.d.ts.map +1 -1
  119. package/dist/atomic/Icons/Partner/providerIcons.js +2 -0
  120. package/dist/atomic/InfiniteScroll/index.d.ts +1 -0
  121. package/dist/atomic/InfiniteScroll/index.d.ts.map +1 -1
  122. package/dist/atomic/Input/index.d.ts +1 -0
  123. package/dist/atomic/Input/index.d.ts.map +1 -1
  124. package/dist/atomic/Label/FloatingLabel.d.ts +1 -0
  125. package/dist/atomic/Label/FloatingLabel.d.ts.map +1 -1
  126. package/dist/atomic/Label/FloatingLabel.js +2 -5
  127. package/dist/atomic/Label/index.d.ts +1 -0
  128. package/dist/atomic/Label/index.d.ts.map +1 -1
  129. package/dist/atomic/Label/index.js +1 -5
  130. package/dist/atomic/List/index.d.ts +3 -0
  131. package/dist/atomic/List/index.d.ts.map +1 -1
  132. package/dist/atomic/NavigationMenu/index.d.ts +2 -0
  133. package/dist/atomic/NavigationMenu/index.d.ts.map +1 -1
  134. package/dist/atomic/Pagination/index.d.ts +1 -0
  135. package/dist/atomic/Pagination/index.d.ts.map +1 -1
  136. package/dist/atomic/Pagination/index.js +3 -3
  137. package/dist/atomic/PasswordInput/index.d.ts +1 -0
  138. package/dist/atomic/PasswordInput/index.d.ts.map +1 -1
  139. package/dist/atomic/PinInput/index.d.ts +92 -0
  140. package/dist/atomic/PinInput/index.d.ts.map +1 -0
  141. package/dist/atomic/PinInput/index.js +156 -0
  142. package/dist/atomic/Popover/index.d.ts +1 -0
  143. package/dist/atomic/Popover/index.d.ts.map +1 -1
  144. package/dist/atomic/PortalButton/index.d.ts +1 -0
  145. package/dist/atomic/PortalButton/index.d.ts.map +1 -1
  146. package/dist/atomic/RadioGroup/RadioGroupPrimitive.d.ts +1 -0
  147. package/dist/atomic/RadioGroup/RadioGroupPrimitive.d.ts.map +1 -1
  148. package/dist/atomic/RadioGroup/index.d.ts +1 -0
  149. package/dist/atomic/RadioGroup/index.d.ts.map +1 -1
  150. package/dist/atomic/RangeInput/index.d.ts +1 -0
  151. package/dist/atomic/RangeInput/index.d.ts.map +1 -1
  152. package/dist/atomic/RangeInput/index.js +1 -2
  153. package/dist/atomic/Rating/index.d.ts +2 -1
  154. package/dist/atomic/Rating/index.d.ts.map +1 -1
  155. package/dist/atomic/Rating/index.js +5 -5
  156. package/dist/atomic/ScrollArea/index.d.ts +1 -0
  157. package/dist/atomic/ScrollArea/index.d.ts.map +1 -1
  158. package/dist/atomic/Section/index.d.ts +37 -16
  159. package/dist/atomic/Section/index.d.ts.map +1 -1
  160. package/dist/atomic/Section/index.js +22 -9
  161. package/dist/atomic/Select/SelectPrimitive.d.ts +6 -1
  162. package/dist/atomic/Select/SelectPrimitive.d.ts.map +1 -1
  163. package/dist/atomic/Select/SelectPrimitive.js +6 -1
  164. package/dist/atomic/Select/index.d.ts +2 -0
  165. package/dist/atomic/Select/index.d.ts.map +1 -1
  166. package/dist/atomic/Separator/index.d.ts +1 -0
  167. package/dist/atomic/Separator/index.d.ts.map +1 -1
  168. package/dist/atomic/Sheet/index.d.ts +1 -0
  169. package/dist/atomic/Sheet/index.d.ts.map +1 -1
  170. package/dist/atomic/Skeleton/index.d.ts +1 -0
  171. package/dist/atomic/Skeleton/index.d.ts.map +1 -1
  172. package/dist/atomic/SkipLink/index.d.ts +2 -0
  173. package/dist/atomic/SkipLink/index.d.ts.map +1 -1
  174. package/dist/atomic/Slider/index.d.ts +1 -0
  175. package/dist/atomic/Slider/index.d.ts.map +1 -1
  176. package/dist/atomic/Slot/index.d.ts +1 -0
  177. package/dist/atomic/Slot/index.d.ts.map +1 -1
  178. package/dist/atomic/Spinner/index.d.ts +1 -0
  179. package/dist/atomic/Spinner/index.d.ts.map +1 -1
  180. package/dist/atomic/Stack/index.d.ts +1 -0
  181. package/dist/atomic/Stack/index.d.ts.map +1 -1
  182. package/dist/atomic/Stepper/index.d.ts +4 -1
  183. package/dist/atomic/Stepper/index.d.ts.map +1 -1
  184. package/dist/atomic/Switch/index.d.ts +1 -0
  185. package/dist/atomic/Switch/index.d.ts.map +1 -1
  186. package/dist/atomic/Table/index.d.ts +35 -1
  187. package/dist/atomic/Table/index.d.ts.map +1 -1
  188. package/dist/atomic/Table/index.js +27 -0
  189. package/dist/atomic/Tabs/index.d.ts +4 -1
  190. package/dist/atomic/Tabs/index.d.ts.map +1 -1
  191. package/dist/atomic/Tag/index.d.ts +2 -1
  192. package/dist/atomic/Tag/index.d.ts.map +1 -1
  193. package/dist/atomic/Text/index.d.ts +1 -0
  194. package/dist/atomic/Text/index.d.ts.map +1 -1
  195. package/dist/atomic/Textarea/index.d.ts +1 -0
  196. package/dist/atomic/Textarea/index.d.ts.map +1 -1
  197. package/dist/atomic/Toaster/ToastPrimitive.d.ts +1 -1
  198. package/dist/atomic/Toggle/index.d.ts +2 -1
  199. package/dist/atomic/Toggle/index.d.ts.map +1 -1
  200. package/dist/atomic/ToggleGroup/index.d.ts +2 -0
  201. package/dist/atomic/ToggleGroup/index.d.ts.map +1 -1
  202. package/dist/atomic/Tooltip/index.d.ts +4 -1
  203. package/dist/atomic/Tooltip/index.d.ts.map +1 -1
  204. package/dist/atomic/Tooltip/index.js +9 -7
  205. package/dist/atomic/TreeView/index.d.ts +1 -0
  206. package/dist/atomic/TreeView/index.d.ts.map +1 -1
  207. package/dist/atomic/TreeView/index.js +1 -1
  208. package/dist/atomic/VisuallyHidden/index.d.ts +1 -0
  209. package/dist/atomic/VisuallyHidden/index.d.ts.map +1 -1
  210. package/dist/atomic/index.d.ts +6 -0
  211. package/dist/atomic/index.d.ts.map +1 -1
  212. package/dist/atomic/index.js +3 -0
  213. package/dist/chunk-6UB4NXNR.js +3 -0
  214. package/dist/hooks/useSwipeToClose.d.ts +2 -0
  215. package/dist/hooks/useSwipeToClose.d.ts.map +1 -1
  216. package/dist/index.js +9 -4
  217. package/dist/styles/index.css +916 -129
  218. package/dist/symbol-index.json +1 -0
  219. package/dist/types.d.ts +1 -1
  220. package/dist/types.d.ts.map +1 -1
  221. package/dist/utils/constants.d.ts +7 -0
  222. package/dist/utils/constants.d.ts.map +1 -1
  223. package/dist/utils/constants.js +1 -0
  224. package/dist/utils/date.d.ts +46 -0
  225. package/dist/utils/date.d.ts.map +1 -0
  226. package/dist/utils/date.js +130 -0
  227. package/dist/utils/imageRetry.d.ts +24 -0
  228. package/dist/utils/imageRetry.d.ts.map +1 -0
  229. package/dist/utils/imageRetry.js +35 -0
  230. package/dist/utils/index.d.ts +3 -0
  231. package/dist/utils/index.d.ts.map +1 -1
  232. package/dist/utils/index.js +3 -0
  233. package/dist/utils/initRipple.d.ts +22 -0
  234. package/dist/utils/initRipple.d.ts.map +1 -0
  235. package/dist/utils/initRipple.js +77 -0
  236. package/dist/utils/variants.d.ts +2 -1
  237. package/dist/utils/variants.d.ts.map +1 -1
  238. package/guidelines/API_REFERENCE.md +195 -0
  239. package/guidelines/COMPONENTS.md +176 -0
  240. package/package.json +29 -28
  241. package/dist/CodeContent-4RJHYJO7.js +0 -2
  242. package/dist/chunk-FM52VMY6.js +0 -3
@@ -0,0 +1,156 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // packages/components/src/atomic/PinInput/index.tsx
3
+ /**
4
+ * @fileoverview PinInput component
5
+ * @description N-digit PIN / OTP input — N separate single-character
6
+ * boxes with auto-advance, backspace focus retreat, paste
7
+ * handling, and an optional onComplete callback.
8
+ *
9
+ * @version 0.1.0
10
+ * @since 0.1.3
11
+ * @author AMBROISE PARK Consulting
12
+ */
13
+ import { Eye, EyeOff } from 'lucide-react';
14
+ import { useEffect, useId, useRef, useState } from 'react';
15
+ import { cn } from '../../utils/helpers';
16
+ import { FloatingLabel } from '../Label';
17
+ import './PinInput.css';
18
+ /**
19
+ * PinInput Component
20
+ *
21
+ * N-digit PIN / OTP input. Renders `length` single-character boxes with
22
+ * auto-advance on entry, backspace focus retreat, SMS paste handling,
23
+ * and an optional `onComplete` callback that fires when the user
24
+ * enters the final digit.
25
+ *
26
+ * Opinionated: numeric by default (set `numericOnly={false}` for
27
+ * alphanumeric OTPs), uses `autoComplete="one-time-code"` for iOS/Android
28
+ * SMS autofill, respects RTL via logical CSS properties, and ships a
29
+ * shake animation hook via `data-shake` on the container.
30
+ *
31
+ * @component
32
+ * @version 0.1.0
33
+ * @since 0.1.3
34
+ * @author AMBROISE PARK Consulting
35
+ * @example Basic 4-digit PIN
36
+ * ```tsx
37
+ * <PinInput
38
+ * value={pin}
39
+ * onChange={setPin}
40
+ * onComplete={(p) => login(p)}
41
+ * autoFocus
42
+ * />
43
+ * ```
44
+ * @example 6-digit OTP with mask
45
+ * ```tsx
46
+ * <PinInput
47
+ * value={code}
48
+ * onChange={setCode}
49
+ * length={6}
50
+ * mask
51
+ * label="Verification code"
52
+ * />
53
+ * ```
54
+ * @param {PinInputProps} props - The props for the PIN input
55
+ * @returns {JSX.Element} The rendered PIN input
56
+ */
57
+ const PinInput = ({ value, onChange, onComplete, length = 4, mask = true, hideMaskToggle = false, shake = false, numericOnly = true, label, required, autoFocus, disabled, className, digitAriaLabel, revealAriaLabel, 'aria-label': ariaLabel, ...rest }) => {
58
+ const id = useId();
59
+ const refs = useRef([]);
60
+ const [revealed, setRevealed] = useState(false);
61
+ const effectiveMask = mask && !revealed;
62
+ // Keep the refs array in sync with `length` changes
63
+ if (refs.current.length !== length) {
64
+ refs.current = Array.from({ length }, (_, i) => refs.current[i] ?? null);
65
+ }
66
+ // Auto-focus first box on mount if requested.
67
+ useEffect(() => {
68
+ if (autoFocus && !disabled) {
69
+ refs.current[0]?.focus();
70
+ }
71
+ // eslint-disable-next-line react-hooks/exhaustive-deps
72
+ }, []);
73
+ // When the parent clears the value (e.g. after a bad PIN) refocus box 0.
74
+ useEffect(() => {
75
+ if (value.length === 0 && !disabled) {
76
+ refs.current[0]?.focus();
77
+ }
78
+ }, [value, disabled]);
79
+ const isValidChar = (ch) => {
80
+ if (!ch)
81
+ return false;
82
+ return numericOnly ? /^\d$/.test(ch) : /^[A-Za-z0-9]$/.test(ch);
83
+ };
84
+ const commit = (next) => {
85
+ const clamped = next.slice(0, length);
86
+ onChange(clamped);
87
+ if (clamped.length === length && onComplete) {
88
+ onComplete(clamped);
89
+ }
90
+ };
91
+ const setDigit = (index, raw) => {
92
+ // Handle SMS paste / autofill of the whole code in one box.
93
+ if (raw.length > 1) {
94
+ const filtered = Array.from(raw)
95
+ .filter(isValidChar)
96
+ .join('')
97
+ .slice(0, length);
98
+ if (filtered.length) {
99
+ commit(filtered);
100
+ const nextIdx = Math.min(filtered.length, length - 1);
101
+ refs.current[nextIdx]?.focus();
102
+ }
103
+ return;
104
+ }
105
+ if (raw && !isValidChar(raw))
106
+ return;
107
+ const chars = value.padEnd(length, ' ').split('');
108
+ chars[index] = raw || ' ';
109
+ const next = chars.join('').replace(/ /g, '').slice(0, length);
110
+ commit(next);
111
+ if (raw && index < length - 1) {
112
+ refs.current[index + 1]?.focus();
113
+ }
114
+ };
115
+ const handleKeyDown = (index, event) => {
116
+ if (event.key === 'Backspace') {
117
+ const chars = value.split('');
118
+ if (!chars[index] && index > 0) {
119
+ event.preventDefault();
120
+ refs.current[index - 1]?.focus();
121
+ onChange(value.slice(0, index - 1));
122
+ }
123
+ else if (chars[index]) {
124
+ event.preventDefault();
125
+ onChange(value.slice(0, index));
126
+ }
127
+ }
128
+ else if (event.key === 'ArrowLeft' && index > 0) {
129
+ event.preventDefault();
130
+ refs.current[index - 1]?.focus();
131
+ }
132
+ else if (event.key === 'ArrowRight' && index < length - 1) {
133
+ event.preventDefault();
134
+ refs.current[index + 1]?.focus();
135
+ }
136
+ };
137
+ const showToggle = mask && !hideMaskToggle;
138
+ const toggleRevealed = () => setRevealed((r) => !r);
139
+ const group = (_jsxs("div", { className: cn('dndev-pin-input', className), "data-shake": shake ? 'true' : undefined, role: "group", "aria-label": ariaLabel ?? label ?? 'PIN input', children: [Array.from({ length }).map((_, index) => {
140
+ const raw = value[index] ?? '';
141
+ return (_jsx("input", { id: index === 0 ? id : undefined, ref: (el) => {
142
+ refs.current[index] = el;
143
+ }, type: "text", inputMode: numericOnly ? 'numeric' : 'text', pattern: numericOnly ? '[0-9]*' : undefined, maxLength: index === 0 ? length : 1, autoComplete: index === 0 ? 'one-time-code' : 'off', value: raw, disabled: disabled, required: required && index === 0, "aria-label": digitAriaLabel
144
+ ? digitAriaLabel(index + 1, length)
145
+ : `Digit ${index + 1} of ${length}`, className: cn('dndev-input dndev-pin-input__box', effectiveMask && 'dndev-pin-input__box--masked'), onChange: (event) => setDigit(index, event.target.value), onKeyDown: (event) => handleKeyDown(index, event), onFocus: (event) => {
146
+ if (event.currentTarget.value)
147
+ event.currentTarget.select();
148
+ }, ...rest }, index));
149
+ }), showToggle ? (_jsx("button", { type: "button", className: "dndev-pin-input__reveal", onClick: toggleRevealed, "aria-label": revealed
150
+ ? (revealAriaLabel?.hide ?? 'Hide PIN')
151
+ : (revealAriaLabel?.show ?? 'Show PIN'), "aria-pressed": revealed, tabIndex: -1, children: revealed ? (_jsx(EyeOff, { className: "dndev-size-md" })) : (_jsx(Eye, { className: "dndev-size-md" })) })) : null] }));
152
+ if (!label)
153
+ return group;
154
+ return (_jsx(FloatingLabel, { htmlFor: id, label: label, disabled: disabled, required: required, children: group }));
155
+ };
156
+ export default PinInput;
@@ -24,6 +24,7 @@ export declare const POPOVER_VARIANT: {
24
24
  readonly WARNING: "warning";
25
25
  readonly DESTRUCTIVE: "destructive";
26
26
  };
27
+ /** Props for the Popover component. */
27
28
  export interface PopoverProps {
28
29
  /** Trigger element (button, text, etc.) */
29
30
  trigger?: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Popover/index.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG/E;;GAEG;AACH,QAAA,MAAM,WAAW,oEAAmB,CAAC;AACrC,QAAA,MAAM,uBAAuB,qJAAiB,CAAC;AAC/C,QAAA,MAAM,uBAAuB;oBAKL,CAAC;qBAA6C,CAAC;6CALzB,CAAC;AAE/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;CAAmB,CAAC;AAEhD,MAAM,WAAW,YAAY;IAC3B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,sBAAsB;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uCAAuC;IACvC,YAAY,CAAC,EAAE,CAA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3B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,sBAAsB;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uCAAuC;IACvC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,oCAAoC;IACpC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,2BAA2B;IAC3B,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3C,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sEAAsE;IACtE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,gCAAgC;IAChC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAC5C;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,OAAO;wHAYV,YAAY;;;;wBA1DS,CAAC;yBAA6C,CAAC;;CA4EtE,CAAC;wBAMwB,OAAO,OAAO,GAAG;IACzC,IAAI,EAAE,OAAO,WAAW,CAAC;IACzB,OAAO,EAAE,OAAO,uBAAuB,CAAC;IACxC,OAAO,EAAE,OAAO,uBAAuB,CAAC;CACzC;AAJD,wBAIE"}
@@ -7,6 +7,7 @@
7
7
  * @author AMBROISE PARK Consulting
8
8
  */
9
9
  import { type ButtonProps } from '../Button';
10
+ /** Props for the PortalButton component -- Button rendered in a portal to avoid transform issues. */
10
11
  export interface PortalButtonProps extends ButtonProps {
11
12
  }
12
13
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/PortalButton/index.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAe,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAGrD,MAAM,WAAW,iBAAkB,SAAQ,WAAW;CAAG;AAEzD;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,YAAY,GAAI,OAAO,iBAAiB,4CAM7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/PortalButton/index.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAe,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAGrD,qGAAqG;AACrG,MAAM,WAAW,iBAAkB,SAAQ,WAAW;CAAG;AAEzD;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,YAAY,GAAI,OAAO,iBAAiB,4CAM7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -15,6 +15,7 @@ import type { ComponentProps } from 'react';
15
15
  * @since 0.0.1
16
16
  * @author AMBROISE PARK Consulting
17
17
  */
18
+ /** Single option within a RadioGroup. */
18
19
  export interface RadioOption {
19
20
  value: string;
20
21
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroupPrimitive.d.ts","sourceRoot":"","sources":["../../../src/atomic/RadioGroup/RadioGroupPrimitive.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAC;AAI/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,uBAAuB,4HAAuB,CAAC;AAErD,QAAA,MAAM,uBAAuB,GAAI,yBAG9B,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,4CAM7C,CAAC;AAEF,QAAA,MAAM,4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E,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;AAC9E,MAAM,MAAM,wBAAwB,GAAG,cAAc,CACnD,OAAO,eAAe,CAAC,SAAS,CACjC,CAAC"}
@@ -4,6 +4,7 @@ import type { RadioOption, RadioGroupRootProps } from './RadioGroupPrimitive';
4
4
  import type { ControlVariant } from '../../utils/constants';
5
5
  import type { GridCols } from '../Grid';
6
6
  import './RadioGroup.css';
7
+ /** Props for the RadioGroup component. */
7
8
  export interface RadioGroupProps extends Omit<RadioGroupRootProps, 'children'> {
8
9
  /** Semantic color variant */
9
10
  variant?: ControlVariant;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/RadioGroup/index.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAIxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,kBAAkB,CAAC;AAoB1B,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC;IAC5E,6BAA6B;IAC7B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,sDAAsD;IACtD,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,QAAA,MAAM,UAAU,GAAI,6DAOjB,eAAe,4CAoCjB,CAAC;AAEF,eAAe,UAAU,CAAC;AAC1B,OAAO,EAAE,eAAe,IAAI,kBAAkB,EAAE,CAAC;AACjD,YAAY,EAAE,WAAW,EAAE,cAAc,IAAI,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/RadioGroup/index.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAIxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,kBAAkB,CAAC;AAoB1B,0CAA0C;AAC1C,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC;IAC5E,6BAA6B;IAC7B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,sDAAsD;IACtD,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,QAAA,MAAM,UAAU,GAAI,6DAOjB,eAAe,4CAoCjB,CAAC;AAEF,eAAe,UAAU,CAAC;AAC1B,OAAO,EAAE,eAAe,IAAI,kBAAkB,EAAE,CAAC;AACjD,YAAY,EAAE,WAAW,EAAE,cAAc,IAAI,iBAAiB,EAAE,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { InputHTMLAttributes } from 'react';
2
2
  import './RangeInput.css';
3
+ /** Props for the RangeInput component -- two-input range for min/max values. */
3
4
  export interface RangeInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
4
5
  /** Label for the range (single FloatingLabel wrapping both inputs) */
5
6
  label?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/RangeInput/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,kBAAkB,CAAC;AAE1B,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,UAAU,GAAG,OAAO,CACrB;IACC,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gCAAgC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,yCAAyC;IACzC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,wDAAwD;IACxD,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAe,EACf,KAAK,EACL,cAAsB,EACtB,cAAsB,EACtB,QAAa,EACb,QAAa,EACb,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,eAAe,2CA+EjB;AAED,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/RangeInput/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,kBAAkB,CAAC;AAE1B,gFAAgF;AAChF,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,UAAU,GAAG,OAAO,CACrB;IACC,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gCAAgC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,yCAAyC;IACzC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,wDAAwD;IACxD,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAe,EACf,KAAK,EACL,cAAsB,EACtB,cAAsB,EACtB,QAAa,EACb,QAAa,EACb,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,eAAe,2CA+EjB;AAED,eAAe,UAAU,CAAC"}
@@ -9,7 +9,6 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
9
9
  * @author AMBROISE PARK Consulting
10
10
  */
11
11
  import { X } from 'lucide-react';
12
- import Button from '../Button';
13
12
  import Input from '../Input';
14
13
  import { FloatingLabel } from '../Label';
15
14
  import Text from '../Text';
@@ -54,7 +53,7 @@ export function RangeInput({ type = 'number', label, minPlaceholder = 'Min', max
54
53
  }
55
54
  };
56
55
  const hasValue = !!(minValue || maxValue);
57
- const inputs = (_jsxs(_Fragment, { children: [_jsx(Input, { type: type, placeholder: minPlaceholder, value: minValue, min: min, max: max, bare: true, onFocus: handleMinFocus, onChange: (e) => onChange(e.target.value, maxValue), ...props }), _jsx(Text, { level: "small", variant: "muted", className: "dndev-range-input-separator", children: "\u2013" }), _jsx(Input, { type: type, placeholder: maxPlaceholder, value: maxValue, min: min, max: max, bare: true, onFocus: handleMaxFocus, onChange: (e) => onChange(minValue, e.target.value), ...props }), _jsx(Button, { icon: X, variant: "ghost", display: "compact", onClick: onClear, disabled: !hasValue, "aria-label": "Clear", className: "dndev-range-input-clear" })] }));
56
+ const inputs = (_jsxs(_Fragment, { children: [_jsx(Input, { type: type, placeholder: minPlaceholder, value: minValue, min: min, max: max, bare: true, onFocus: handleMinFocus, onChange: (e) => onChange(e.target.value, maxValue), ...props }), _jsx(Text, { level: "small", variant: "muted", className: "dndev-range-input-separator", children: "\u2013" }), _jsx(Input, { type: type, placeholder: maxPlaceholder, value: maxValue, min: min, max: max, bare: true, onFocus: handleMaxFocus, onChange: (e) => onChange(minValue, e.target.value), ...props }), _jsx("button", { type: "button", className: "dndev-inline-action-btn dndev-range-input-clear", onClick: onClear, disabled: !hasValue, "aria-label": "Clear", children: _jsx(X, {}) })] }));
58
57
  if (label) {
59
58
  return (_jsx(FloatingLabel, { label: label, children: _jsx("div", { className: "dndev-range-input", children: inputs }) }));
60
59
  }
@@ -12,8 +12,9 @@ import { CONTROL_VARIANT, type ControlVariant } from '../../utils/constants';
12
12
  import './Rating.css';
13
13
  import type { HTMLAttributes } from 'react';
14
14
  declare const ratingVariants: (props?: ({
15
- variant?: "default" | "muted" | "accent" | "primary" | "destructive" | "warning" | "success" | "secondary" | null | undefined;
15
+ variant?: "default" | "muted" | "accent" | "primary" | "destructive" | "success" | "warning" | "secondary" | null | undefined;
16
16
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
17
+ /** Props for the Rating component -- star-based rating input/display. */
17
18
  export interface RatingProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>, VariantProps<typeof ratingVariants> {
18
19
  /** Current rating value (1-5, supports decimals for display) */
19
20
  value?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Rating/index.tsx"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,OAAO,EAAE,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG7E,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,OAAO,CAAC;AAE3D,QAAA,MAAM,cAAc;;8EAgBlB,CAAC;AAEH,MAAM,WAAW,WACf,SACE,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,EAChD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,2BAA2B;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uBAAuB;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAiBD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,MAAM,GAAI,gHAWb,WAAW,4CAoHb,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,eAAe,IAAI,cAAc,EAAE,CAAC;AAC7D,YAAY,EAAE,cAAc,IAAI,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Rating/index.tsx"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,OAAO,EAAE,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG7E,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,OAAO,CAAC;AAE3D,QAAA,MAAM,cAAc;;8EAgBlB,CAAC;AAEH,yEAAyE;AACzE,MAAM,WAAW,WACf,SACE,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,EAChD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,2BAA2B;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uBAAuB;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAiBD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,MAAM,GAAI,gHAWb,WAAW,4CA8Gb,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,eAAe,IAAI,cAAc,EAAE,CAAC;AAC7D,YAAY,EAAE,cAAc,IAAI,aAAa,EAAE,CAAC"}
@@ -11,7 +11,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  */
12
12
  import { cva } from 'class-variance-authority';
13
13
  import { Star } from 'lucide-react';
14
- import { useState, useCallback, useId } from 'react';
14
+ import { useState, useId } from 'react';
15
15
  import { CONTROL_VARIANT } from '../../utils/constants';
16
16
  import { cn, getVariantDataAttrs } from '../../utils/helpers';
17
17
  import './Rating.css';
@@ -60,12 +60,12 @@ const Rating = ({ value = 0, onChange, max = 5, readonly = false, disabled = fal
60
60
  const [hoverValue, setHoverValue] = useState(null);
61
61
  const displayValue = hoverValue ?? value;
62
62
  const isInteractive = !readonly && !disabled && onChange;
63
- const handleStarClick = useCallback((position) => {
63
+ const handleStarClick = (position) => {
64
64
  if (!isInteractive)
65
65
  return;
66
66
  onChange?.(position);
67
- }, [isInteractive, onChange]);
68
- const handleKeyDown = useCallback((e) => {
67
+ };
68
+ const handleKeyDown = (e) => {
69
69
  if (!isInteractive)
70
70
  return;
71
71
  const currentValue = value || 0;
@@ -103,7 +103,7 @@ const Rating = ({ value = 0, onChange, max = 5, readonly = false, disabled = fal
103
103
  if (newValue !== null) {
104
104
  onChange?.(newValue);
105
105
  }
106
- }, [isInteractive, value, max, onChange]);
106
+ };
107
107
  const variantAttrs = getVariantDataAttrs({ variant });
108
108
  return (_jsxs("div", { className: cn(ratingVariants({ variant }), className), role: isInteractive ? 'slider' : 'img', "aria-label": ariaLabel ?? `Rating: ${value} out of ${max} stars`, "aria-valuemin": 1, "aria-valuemax": max, "aria-valuenow": value, "aria-valuetext": `${value} out of ${max} stars`, "aria-readonly": readonly, "aria-disabled": disabled, tabIndex: isInteractive ? 0 : -1, onKeyDown: handleKeyDown, "data-readonly": readonly || undefined, "data-disabled": disabled || undefined, ...variantAttrs, ...props, children: [_jsx("div", { className: "dndev-rating-stars", children: Array.from({ length: max }, (_, i) => {
109
109
  const position = i + 1;
@@ -8,6 +8,7 @@
8
8
  */
9
9
  import { ScrollAreaPrimitive } from './ScrollAreaPrimitive';
10
10
  import type { ComponentProps, ReactNode } from 'react';
11
+ /** Props for the ScrollArea component -- custom cross-browser scrollbars. */
11
12
  export interface ScrollAreaProps extends ComponentProps<typeof ScrollAreaPrimitive> {
12
13
  children?: ReactNode;
13
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/ScrollArea/index.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EACL,mBAAmB,EAIpB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,eAAgB,SAAQ,cAAc,CACrD,OAAO,mBAAmB,CAC3B;IACC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,UAAU,GAAI,sEAOjB,eAAe,4CAkBjB,CAAC;AAEF,eAAe,UAAU,CAAC;AAC1B,OAAO,EAAE,kBAAkB,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACxE,YAAY,EAAE,uBAAuB,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/ScrollArea/index.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EACL,mBAAmB,EAIpB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,6EAA6E;AAC7E,MAAM,WAAW,eAAgB,SAAQ,cAAc,CACrD,OAAO,mBAAmB,CAC3B;IACC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,UAAU,GAAI,sEAOjB,eAAe,4CAkBjB,CAAC;AAEF,eAAe,UAAU,CAAC;AAC1B,OAAO,EAAE,kBAAkB,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACxE,YAAY,EAAE,uBAAuB,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
@@ -11,6 +11,7 @@ export declare const CONTENT_WIDTH: {
11
11
  readonly DOCS: "docs";
12
12
  readonly NARROW: "narrow";
13
13
  };
14
+ /** Union of available content width presets for Section. */
14
15
  export type ContentWidth = (typeof CONTENT_WIDTH)[keyof typeof CONTENT_WIDTH];
15
16
  /**
16
17
  * Section-specific props
@@ -44,16 +45,20 @@ interface SectionOwnProps {
44
45
  */
45
46
  justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
46
47
  /**
47
- * Grid columns - fixed, responsive, or custom template
48
- * When provided, wraps children in Grid
48
+ * Built-in responsive grid — renders an inner `<Grid>` around children.
49
+ * Same API as `<Grid cols={...}>`: number, string template, or responsive
50
+ * `[mobile, tablet, laptop, desktop]` tuple. Use this instead of nesting
51
+ * a `<Grid>` inside Section — it handles gap and alignment for you.
52
+ *
49
53
  * @example 3 - always 3 equal columns
50
54
  * @example "1fr 3fr" - custom column template
51
- * @example [1, 1, 2, 3] - responsive equal: 1 mobile/tablet, 2 laptop, 3 desktop
52
- * @example ["1fr", "1fr", "1fr 3fr", "1fr 3fr"] - responsive template
55
+ * @example [1, 1, 2, 3] - responsive: 1 col mobile/tablet, 2 laptop, 3 desktop
56
+ * @example [1, 2, 2, 4] - stats row: 1 col mobile, 2 tablet/laptop, 4 desktop
53
57
  */
54
58
  gridCols?: GridCols;
55
59
  /**
56
- * Grid gap size
60
+ * Gap between grid items (only applies when `gridCols` is set).
61
+ * Same values as `<Grid gap={...}>`.
57
62
  * @default 'medium'
58
63
  */
59
64
  gridGap?: 'none' | 'tight' | 'medium' | 'large';
@@ -82,8 +87,11 @@ interface SectionOwnProps {
82
87
  */
83
88
  defaultOpen?: boolean;
84
89
  /**
85
- * Content width constraint — background stays full-width, only inner content narrows
86
- * Uses same semantic widths as PageContainer variants
90
+ * Content width constraint — the tone background stays full-width
91
+ * while inner content narrows to the specified width, matching
92
+ * PageContainer variants: `'standard'` (~1200px), `'docs'` (~900px),
93
+ * `'narrow'` (~720px). Use when a Section needs a different content
94
+ * width than its parent PageContainer.
87
95
  */
88
96
  contentWidth?: ContentWidth;
89
97
  }
@@ -92,20 +100,33 @@ interface SectionOwnProps {
92
100
  */
93
101
  export type SectionProps<T extends ElementType = 'section'> = SectionOwnProps & Omit<ComponentPropsWithRef<T>, keyof SectionOwnProps>;
94
102
  /**
95
- * Minimal layout section with title, optional separator, tone backgrounds, and full-width bleed.
103
+ * Layout section with title, tone backgrounds, built-in grid, and full-width bleed.
96
104
  *
97
- * **Bleed mode:** When `bleed` is set, the section breaks out of `PageContainer`
98
- * content constraints to span the full viewport width. Use for hero images,
99
- * maps, galleries, video players, or any content that needs edge-to-edge display.
100
- * Works at any nesting depth — no fragile calc hacks needed.
105
+ * **Grid:** Pass `gridCols` to lay out children in a responsive grid (same API
106
+ * as `<Grid cols>`). No need to nest a `<Grid>` inside Section.
107
+ *
108
+ * **Tone:** `tone` sets the section background (`'base'` = card bg, `'muted'` = muted bg,
109
+ * `'ghost'` = transparent). Use alternating tones for visual rhythm between sections.
110
+ *
111
+ * **Content width:** `contentWidth` constrains inner content independently of
112
+ * PageContainer (`'standard'` / `'docs'` / `'narrow'`). Background stays full-width.
113
+ *
114
+ * **Bleed:** `bleed` breaks out of PageContainer to span full viewport width.
101
115
  *
102
116
  * @component
103
117
  * @example
104
118
  * ```tsx
105
- * <Section title="Features" gridCols={[1, 1, 2, 3]}>
106
- * <Card />
107
- * <Card />
108
- * <Card />
119
+ * // Stats row — 4 cards in responsive grid with base background
120
+ * <Section title="Overview" tone="base" gridCols={[1, 2, 2, 4]}>
121
+ * <Card>...</Card>
122
+ * <Card>...</Card>
123
+ * <Card>...</Card>
124
+ * <Card>...</Card>
125
+ * </Section>
126
+ *
127
+ * // Activity list — muted background, no grid
128
+ * <Section title="Recent Activity" tone="muted">
129
+ * <Card><List items={...} /></Card>
109
130
  * </Section>
110
131
  *
111
132
  * // Full-width bleed for an image gallery
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Section/index.tsx"],"names":[],"mappings":"AA0CA,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAQ,KAAK,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAOxE,OAAa,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAK9C,OAAO,eAAe,CAAC;AAEvB;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE9E;;GAEG;AACH,UAAU,eAAe;IACvB;;;OAGG;IACH,EAAE,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;IAEtD,sBAAsB;IACtB,QAAQ,EAAE,SAAS,CAAC;IAEpB,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,kDAAkD;IAClD,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,oCAAoC;IACpC,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;IAE/C;;OAEG;IACH,O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G,SAAS,IAAI,eAAe,GAC3E,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,MAAM,eAAe,CAAC,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,QAAA,MAAM,OAAO,8HAkHZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
@@ -59,20 +59,33 @@ export const CONTENT_WIDTH = {
59
59
  NARROW: 'narrow',
60
60
  };
61
61
  /**
62
- * Minimal layout section with title, optional separator, tone backgrounds, and full-width bleed.
62
+ * Layout section with title, tone backgrounds, built-in grid, and full-width bleed.
63
63
  *
64
- * **Bleed mode:** When `bleed` is set, the section breaks out of `PageContainer`
65
- * content constraints to span the full viewport width. Use for hero images,
66
- * maps, galleries, video players, or any content that needs edge-to-edge display.
67
- * Works at any nesting depth — no fragile calc hacks needed.
64
+ * **Grid:** Pass `gridCols` to lay out children in a responsive grid (same API
65
+ * as `<Grid cols>`). No need to nest a `<Grid>` inside Section.
66
+ *
67
+ * **Tone:** `tone` sets the section background (`'base'` = card bg, `'muted'` = muted bg,
68
+ * `'ghost'` = transparent). Use alternating tones for visual rhythm between sections.
69
+ *
70
+ * **Content width:** `contentWidth` constrains inner content independently of
71
+ * PageContainer (`'standard'` / `'docs'` / `'narrow'`). Background stays full-width.
72
+ *
73
+ * **Bleed:** `bleed` breaks out of PageContainer to span full viewport width.
68
74
  *
69
75
  * @component
70
76
  * @example
71
77
  * ```tsx
72
- * <Section title="Features" gridCols={[1, 1, 2, 3]}>
73
- * <Card />
74
- * <Card />
75
- * <Card />
78
+ * // Stats row — 4 cards in responsive grid with base background
79
+ * <Section title="Overview" tone="base" gridCols={[1, 2, 2, 4]}>
80
+ * <Card>...</Card>
81
+ * <Card>...</Card>
82
+ * <Card>...</Card>
83
+ * <Card>...</Card>
84
+ * </Section>
85
+ *
86
+ * // Activity list — muted background, no grid
87
+ * <Section title="Recent Activity" tone="muted">
88
+ * <Card><List items={...} /></Card>
76
89
  * </Section>
77
90
  *
78
91
  * // Full-width bleed for an image gallery
@@ -16,6 +16,11 @@ declare const SelectContentPrimitive: ({ className, ...props }: ComponentProps<t
16
16
  declare const SelectLabelPrimitive: ({ className, ...props }: ComponentProps<typeof SelectPrimitive.Label>) => import("react/jsx-runtime").JSX.Element;
17
17
  declare const SelectItemPrimitive: ({ className, ...props }: ComponentProps<typeof SelectPrimitive.Item>) => import("react/jsx-runtime").JSX.Element;
18
18
  declare const SelectSeparatorPrimitive: ({ className, ...props }: ComponentProps<typeof SelectPrimitive.Separator>) => import("react/jsx-runtime").JSX.Element;
19
+ declare const SelectItemTextPrimitive: ({ className, ...props }: ComponentProps<typeof SelectPrimitive.ItemText>) => import("react/jsx-runtime").JSX.Element;
20
+ declare const SelectPortalPrimitive: import("react").FC<SelectPrimitive.SelectPortalProps>;
21
+ declare const SelectViewportPrimitive: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectViewportProps & import("react").RefAttributes<HTMLDivElement>>;
22
+ declare const SelectIconPrimitive: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectIconProps & import("react").RefAttributes<HTMLSpanElement>>;
23
+ declare const SelectItemIndicatorPrimitive: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectItemIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
19
24
  export { SelectRootPrimitive as SelectPrimitive };
20
- export { SelectGroupPrimitive, SelectValuePrimitive, SelectTriggerPrimitive, SelectContentPrimitive, SelectLabelPrimitive, SelectItemPrimitive, SelectSeparatorPrimitive, };
25
+ export { SelectGroupPrimitive, SelectValuePrimitive, SelectTriggerPrimitive, SelectContentPrimitive, SelectPortalPrimitive, SelectViewportPrimitive, SelectLabelPrimitive, SelectItemPrimitive, SelectItemTextPrimitive, SelectItemIndicatorPrimitive, SelectIconPrimitive, SelectSeparatorPrimitive, };
21
26
  //# sourceMappingURL=SelectPrimitive.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectPrimitive.d.ts","sourceRoot":"","sources":["../../../src/atomic/Select/SelectPrimitive.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,QAAA,MAAM,mBAAmB,iDAAuB,CAAC;AAEjD,QAAA,MAAM,oBAAoB,GAAI,yBAG3B,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,4CAE9C,CAAC;AAEF,QAAA,MAAM,oBAAoB,GAAI,yBAG3B,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,4CAE9C,CAAC;AAEF,QAAA,MAAM,sBAAsB,GAAI,yBAG7B,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,4CAEhD,CAAC;AAEF,QAAA,MAAM,sBAAsB,GAAI,yBAG7B,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,4CAEhD,CAAC;AAEF,QAAA,MAAM,oBAAoB,GAAI,yBAG3B,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,4CAE9C,CAAC;AAEF,QAAA,MAAM,mBAAmB,GAAI,yBAG1B,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,4CAE7C,CAAC;AAEF,QAAA,MAAM,wBAAwB,GAAI,yBAG/B,cAAc,CAAC,OAAO,eAAe,CAAC,SAAS,CAAC,4CAElD,CAAC;AAEF,OAAO,EAAE,mBAAmB,IAAI,eAAe,EAAE,CAAC;AAClD,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,GACzB,CAAC"}
1
+ {"version":3,"file":"SelectPrimitive.d.ts","sourceRoot":"","sources":["../../../src/atomic/Select/SelectPrimitive.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,OAA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AA4B,EAC5B,mBAAmB,EACnB,wBAAwB,GACzB,CAAC"}
@@ -18,5 +18,10 @@ const SelectContentPrimitive = ({ className, ...props }) => (_jsx(SelectPrimitiv
18
18
  const SelectLabelPrimitive = ({ className, ...props }) => (_jsx(SelectPrimitive.Label, { className: cn(className), ...props }));
19
19
  const SelectItemPrimitive = ({ className, ...props }) => (_jsx(SelectPrimitive.Item, { className: cn(className), ...props }));
20
20
  const SelectSeparatorPrimitive = ({ className, ...props }) => (_jsx(SelectPrimitive.Separator, { className: cn(className), ...props }));
21
+ const SelectItemTextPrimitive = ({ className, ...props }) => (_jsx(SelectPrimitive.ItemText, { className: cn(className), ...props }));
22
+ const SelectPortalPrimitive = SelectPrimitive.Portal;
23
+ const SelectViewportPrimitive = SelectPrimitive.Viewport;
24
+ const SelectIconPrimitive = SelectPrimitive.Icon;
25
+ const SelectItemIndicatorPrimitive = SelectPrimitive.ItemIndicator;
21
26
  export { SelectRootPrimitive as SelectPrimitive };
22
- export { SelectGroupPrimitive, SelectValuePrimitive, SelectTriggerPrimitive, SelectContentPrimitive, SelectLabelPrimitive, SelectItemPrimitive, SelectSeparatorPrimitive, };
27
+ export { SelectGroupPrimitive, SelectValuePrimitive, SelectTriggerPrimitive, SelectContentPrimitive, SelectPortalPrimitive, SelectViewportPrimitive, SelectLabelPrimitive, SelectItemPrimitive, SelectItemTextPrimitive, SelectItemIndicatorPrimitive, SelectIconPrimitive, SelectSeparatorPrimitive, };
@@ -5,6 +5,7 @@ import './Select.css';
5
5
  export declare const SELECT_LABEL_VALUE: "__label__";
6
6
  /** Use as `value` in a SelectOption to render a visual separator instead of a selectable item */
7
7
  export declare const SELECT_SEPARATOR_VALUE: "__separator__";
8
+ /** Single option within a Select dropdown. */
8
9
  export interface SelectOption {
9
10
  /**
10
11
  * Option value. Use {@link SELECT_LABEL_VALUE} or {@link SELECT_SEPARATOR_VALUE}
@@ -16,6 +17,7 @@ export interface SelectOption {
16
17
  description?: string;
17
18
  content?: ReactNode;
18
19
  }
20
+ /** Props for the Select component. */
19
21
  export interface SelectProps extends Omit<ComponentProps<typeof SelectPrimitive>, 'children'> {
20
22
  /** Selected value */
21
23
  value?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Select/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,EACL,eAAe,EAOhB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,cAAc,CAAC;AAEtB,4FAA4F;AAC5F,eAAO,MAAM,kBAAkB,EAAG,WAAoB,CAAC;AAEvD,iGAAiG;AACjG,eAAO,MAAM,sBAAsB,EAAG,eAAwB,CAAC;AAE/D,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,cAAc,CAAC,OAAO,eAAe,CAAC,EACtC,UAAU,CACX;IACC,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mGAAmG;IACnG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC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mGAAmG;IACnG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,MAAM,GAAI,uHAYb,WAAW,4CAuHb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -23,6 +23,7 @@ export declare const SEPARATOR_VARIANT: {
23
23
  readonly ACCENT: "accent";
24
24
  readonly MUTED: "muted";
25
25
  };
26
+ /** Props for the Separator component. */
26
27
  export interface SeparatorProps extends ComponentProps<typeof SeparatorPrimitive> {
27
28
  /**
28
29
  * Visual style variant.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Separator/index.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,iBAAiB,CAAC;AAEzB;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB;;;;;CAKpB,CAAC;AAEX,MAAM,WAAW,cAAe,SAAQ,cAAc,CACpD,OAAO,kBAAkB,CAC1B;IACC;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;CACtE;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,QAAA,MAAM,SAAS,GAAI,kEAOhB,cAAc,4CAahB,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Separator/index.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,iBAAiB,CAAC;AAEzB;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB;;;;;CAKpB,CAAC;AAEX,yCAAyC;AACzC,MAAM,WAAW,cAAe,SAAQ,cAAc,CACpD,OAAO,kBAAkB,CAC1B;IACC;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;CACtE;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,QAAA,MAAM,SAAS,GAAI,kEAOhB,cAAc,4CAahB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -9,6 +9,7 @@
9
9
  import * as DialogPrimitive from '@radix-ui/react-dialog';
10
10
  import { type SurfaceVariant } from '../../utils/constants';
11
11
  import type { ComponentProps, ReactNode } from 'react';
12
+ /** Props for the Sheet component -- slide-out panel for sidebars and editing. */
12
13
  export interface SheetProps extends Omit<ComponentProps<typeof DialogPrimitive.Content>, 'title' | 'children'> {
13
14
  /** The element that opens the sheet */
14
15
  trigger?: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Sheet/index.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,OAAO,EAAmB,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI7E,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAElE,MAAM,WAAW,UAAW,SAAQ,IAAI,CACtC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,EAC9C,OAAO,GAAG,UAAU,CACrB;IACC,uCAAuC;IACvC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,+FAA+F;IAC/F,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CA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,CAAC;IAC3B,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,mBAAmB;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uCAAuC;IACvC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAC3C,wCAAwC;IACxC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,qIAAqI;IACrI,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,KAAK,GAAI,wIAcZ,UAAU,4CAwGZ,CAAC;AAEF,eAAe,KAAK,CAAC;AACrB,OAAO,EAAE,eAAe,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACzE,YAAY,EAAE,cAAc,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,3 +1,4 @@
1
+ /** Props for the Skeleton component -- loading placeholder with animation. */
1
2
  export interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
2
3
  /** Animation variant */
3
4
  variant?: 'pulse' | 'wave' | 'shimmer' | 'none';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Skeleton/index.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,wBAAwB;IACxB,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;IAChD,2CAA2C;IAC3C,IAAI,CA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AC,EAChB,SAAS,EACT,OAAiB,EACjB,IAAe,EACf,KAAK,EACL,MAAM,EACN,KAAS,EACT,YAAY,EAAE,SAA6B,EAC3C,GAAG,KAAK,EACT,EAAE,aAAa,2CAiDf;AAED,eAAe,QAAQ,CAAC"}
@@ -1,11 +1,13 @@
1
1
  import type { HTMLAttributes } from 'react';
2
2
  import './SkipLink.css';
3
+ /** Single target within a SkipLink navigation. */
3
4
  export interface SkipLinkItem {
4
5
  /** Target element ID (without #). The href will be `#${targetId}` */
5
6
  targetId: string;
6
7
  /** Visible label when focused (e.g., "Skip to main content") */
7
8
  label: string;
8
9
  }
10
+ /** Props for the SkipLink component -- accessibility skip-to-content links. */
9
11
  export interface SkipLinkProps extends Omit<HTMLAttributes<HTMLElement>, 'role'> {
10
12
  /**
11
13
  * Array of skip link targets.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/SkipLink/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AAExD,OAAO,gBAAgB,CAAC;AAExB,MAAM,WAAW,YAAY;IAC3B,qEAAqE;IACrE,QAAQ,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,cAAc,CAAC,WAAW,CAAC,EAC3B,MAAM,CACP;IACC;;;OAGG;IACH,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA0BD;;;;;;;;;;;;;;;;;GAiBG;AACH,iBAAS,QAAQ,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAmB9D;AAED,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/SkipLink/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AAExD,OAAO,gBAAgB,CAAC;AAExB,kDAAkD;AAClD,MAAM,WAAW,YAAY;IAC3B,qEAAqE;IACrE,QAAQ,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;CACf;AAED,+EAA+E;AAC/E,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,cAAc,CAAC,WAAW,CAAC,EAC3B,MAAM,CACP;IACC;;;OAGG;IACH,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA0BD;;;;;;;;;;;;;;;;;GAiBG;AACH,iBAAS,QAAQ,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAmB9D;AAED,eAAe,QAAQ,CAAC"}