@nuka-ui/core 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (766) hide show
  1. package/README.md +7 -7
  2. package/dist/bundle.css +1 -1
  3. package/dist/components/Accordion/Accordion.cjs +1 -1
  4. package/dist/components/Accordion/Accordion.cjs.map +1 -1
  5. package/dist/components/Accordion/Accordion.d.ts.map +1 -1
  6. package/dist/components/Accordion/Accordion.js +2 -0
  7. package/dist/components/Accordion/Accordion.js.map +1 -1
  8. package/dist/components/Accordion/AccordionItem.cjs +1 -1
  9. package/dist/components/Accordion/AccordionItem.cjs.map +1 -1
  10. package/dist/components/Accordion/AccordionItem.d.ts.map +1 -1
  11. package/dist/components/Accordion/AccordionItem.js +1 -0
  12. package/dist/components/Accordion/AccordionItem.js.map +1 -1
  13. package/dist/components/Accordion/AccordionTrigger.cjs +1 -1
  14. package/dist/components/Accordion/AccordionTrigger.cjs.map +1 -1
  15. package/dist/components/Accordion/AccordionTrigger.js +1 -0
  16. package/dist/components/Accordion/AccordionTrigger.js.map +1 -1
  17. package/dist/components/AppShell/AppShell.cjs +1 -1
  18. package/dist/components/AppShell/AppShell.cjs.map +1 -1
  19. package/dist/components/AppShell/AppShell.d.ts.map +1 -1
  20. package/dist/components/AppShell/AppShell.js +1 -0
  21. package/dist/components/AppShell/AppShell.js.map +1 -1
  22. package/dist/components/AppShell/AppShellBody.cjs +1 -1
  23. package/dist/components/AppShell/AppShellBody.cjs.map +1 -1
  24. package/dist/components/AppShell/AppShellBody.d.ts.map +1 -1
  25. package/dist/components/AppShell/AppShellBody.js +1 -0
  26. package/dist/components/AppShell/AppShellBody.js.map +1 -1
  27. package/dist/components/AppShell/AppShellHeader.cjs +1 -1
  28. package/dist/components/AppShell/AppShellHeader.cjs.map +1 -1
  29. package/dist/components/AppShell/AppShellHeader.d.ts.map +1 -1
  30. package/dist/components/AppShell/AppShellHeader.js +1 -0
  31. package/dist/components/AppShell/AppShellHeader.js.map +1 -1
  32. package/dist/components/AppShell/AppShellMain.cjs +1 -1
  33. package/dist/components/AppShell/AppShellMain.cjs.map +1 -1
  34. package/dist/components/AppShell/AppShellMain.d.ts.map +1 -1
  35. package/dist/components/AppShell/AppShellMain.js +1 -0
  36. package/dist/components/AppShell/AppShellMain.js.map +1 -1
  37. package/dist/components/Avatar/Avatar.variants.cjs +1 -1
  38. package/dist/components/Avatar/Avatar.variants.cjs.map +1 -1
  39. package/dist/components/Avatar/Avatar.variants.js +1 -1
  40. package/dist/components/Avatar/Avatar.variants.js.map +1 -1
  41. package/dist/components/Badge/Badge.variants.cjs +1 -1
  42. package/dist/components/Badge/Badge.variants.cjs.map +1 -1
  43. package/dist/components/Badge/Badge.variants.js +1 -1
  44. package/dist/components/Badge/Badge.variants.js.map +1 -1
  45. package/dist/components/Breadcrumb/Breadcrumb.cjs +1 -1
  46. package/dist/components/Breadcrumb/Breadcrumb.cjs.map +1 -1
  47. package/dist/components/Breadcrumb/Breadcrumb.js +1 -0
  48. package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -1
  49. package/dist/components/Breadcrumb/BreadcrumbEllipsis.cjs +1 -1
  50. package/dist/components/Breadcrumb/BreadcrumbEllipsis.cjs.map +1 -1
  51. package/dist/components/Breadcrumb/BreadcrumbEllipsis.d.ts.map +1 -1
  52. package/dist/components/Breadcrumb/BreadcrumbEllipsis.js +1 -0
  53. package/dist/components/Breadcrumb/BreadcrumbEllipsis.js.map +1 -1
  54. package/dist/components/Breadcrumb/BreadcrumbItem.cjs +1 -1
  55. package/dist/components/Breadcrumb/BreadcrumbItem.cjs.map +1 -1
  56. package/dist/components/Breadcrumb/BreadcrumbItem.d.ts.map +1 -1
  57. package/dist/components/Breadcrumb/BreadcrumbItem.js +1 -0
  58. package/dist/components/Breadcrumb/BreadcrumbItem.js.map +1 -1
  59. package/dist/components/Breadcrumb/BreadcrumbLink.cjs +1 -1
  60. package/dist/components/Breadcrumb/BreadcrumbLink.cjs.map +1 -1
  61. package/dist/components/Breadcrumb/BreadcrumbLink.d.ts.map +1 -1
  62. package/dist/components/Breadcrumb/BreadcrumbLink.js +1 -0
  63. package/dist/components/Breadcrumb/BreadcrumbLink.js.map +1 -1
  64. package/dist/components/Breadcrumb/BreadcrumbList.cjs +1 -1
  65. package/dist/components/Breadcrumb/BreadcrumbList.cjs.map +1 -1
  66. package/dist/components/Breadcrumb/BreadcrumbList.d.ts.map +1 -1
  67. package/dist/components/Breadcrumb/BreadcrumbList.js +1 -0
  68. package/dist/components/Breadcrumb/BreadcrumbList.js.map +1 -1
  69. package/dist/components/Breadcrumb/BreadcrumbPage.cjs +1 -1
  70. package/dist/components/Breadcrumb/BreadcrumbPage.cjs.map +1 -1
  71. package/dist/components/Breadcrumb/BreadcrumbPage.d.ts.map +1 -1
  72. package/dist/components/Breadcrumb/BreadcrumbPage.js +2 -1
  73. package/dist/components/Breadcrumb/BreadcrumbPage.js.map +1 -1
  74. package/dist/components/Breadcrumb/BreadcrumbSeparator.cjs +1 -1
  75. package/dist/components/Breadcrumb/BreadcrumbSeparator.cjs.map +1 -1
  76. package/dist/components/Breadcrumb/BreadcrumbSeparator.d.ts.map +1 -1
  77. package/dist/components/Breadcrumb/BreadcrumbSeparator.js +1 -0
  78. package/dist/components/Breadcrumb/BreadcrumbSeparator.js.map +1 -1
  79. package/dist/components/Button/Button.cjs +1 -1
  80. package/dist/components/Button/Button.cjs.map +1 -1
  81. package/dist/components/Button/Button.d.ts +2 -1
  82. package/dist/components/Button/Button.d.ts.map +1 -1
  83. package/dist/components/Button/Button.js +3 -3
  84. package/dist/components/Button/Button.js.map +1 -1
  85. package/dist/components/Button/Button.variants.cjs +1 -1
  86. package/dist/components/Button/Button.variants.cjs.map +1 -1
  87. package/dist/components/Button/Button.variants.js +1 -1
  88. package/dist/components/Button/Button.variants.js.map +1 -1
  89. package/dist/components/Callout/Callout.cjs +2 -0
  90. package/dist/components/Callout/Callout.cjs.map +1 -0
  91. package/dist/components/Callout/Callout.d.ts +13 -0
  92. package/dist/components/Callout/Callout.d.ts.map +1 -0
  93. package/dist/components/Callout/Callout.js +37 -0
  94. package/dist/components/Callout/Callout.js.map +1 -0
  95. package/dist/components/Callout/Callout.variants.cjs +2 -0
  96. package/dist/components/Callout/Callout.variants.cjs.map +1 -0
  97. package/dist/components/Callout/Callout.variants.d.ts +8 -0
  98. package/dist/components/Callout/Callout.variants.d.ts.map +1 -0
  99. package/dist/components/Callout/Callout.variants.js +42 -0
  100. package/dist/components/Callout/Callout.variants.js.map +1 -0
  101. package/dist/components/Callout/index.d.ts +4 -0
  102. package/dist/components/Callout/index.d.ts.map +1 -0
  103. package/dist/components/Card/Card.cjs +1 -1
  104. package/dist/components/Card/Card.cjs.map +1 -1
  105. package/dist/components/Card/Card.d.ts +9 -3
  106. package/dist/components/Card/Card.d.ts.map +1 -1
  107. package/dist/components/Card/Card.js +27 -11
  108. package/dist/components/Card/Card.js.map +1 -1
  109. package/dist/components/Card/index.d.ts +1 -1
  110. package/dist/components/Card/index.d.ts.map +1 -1
  111. package/dist/components/Checkbox/Checkbox.cjs +1 -1
  112. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  113. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  114. package/dist/components/Checkbox/Checkbox.js +4 -0
  115. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  116. package/dist/components/Checkbox/Checkbox.variants.cjs.map +1 -1
  117. package/dist/components/Checkbox/Checkbox.variants.d.ts.map +1 -1
  118. package/dist/components/Checkbox/Checkbox.variants.js.map +1 -1
  119. package/dist/components/Chip/Chip.variants.cjs +1 -1
  120. package/dist/components/Chip/Chip.variants.cjs.map +1 -1
  121. package/dist/components/Chip/Chip.variants.js +1 -1
  122. package/dist/components/Chip/Chip.variants.js.map +1 -1
  123. package/dist/components/Collapsible/Collapsible.cjs +1 -1
  124. package/dist/components/Collapsible/Collapsible.cjs.map +1 -1
  125. package/dist/components/Collapsible/Collapsible.d.ts.map +1 -1
  126. package/dist/components/Collapsible/Collapsible.js +1 -0
  127. package/dist/components/Collapsible/Collapsible.js.map +1 -1
  128. package/dist/components/Collapsible/CollapsibleContent.cjs +1 -1
  129. package/dist/components/Collapsible/CollapsibleContent.cjs.map +1 -1
  130. package/dist/components/Collapsible/CollapsibleContent.d.ts.map +1 -1
  131. package/dist/components/Collapsible/CollapsibleContent.js +2 -0
  132. package/dist/components/Collapsible/CollapsibleContent.js.map +1 -1
  133. package/dist/components/Collapsible/CollapsibleTrigger.cjs +1 -1
  134. package/dist/components/Collapsible/CollapsibleTrigger.cjs.map +1 -1
  135. package/dist/components/Collapsible/CollapsibleTrigger.d.ts.map +1 -1
  136. package/dist/components/Collapsible/CollapsibleTrigger.js +1 -0
  137. package/dist/components/Collapsible/CollapsibleTrigger.js.map +1 -1
  138. package/dist/components/Combobox/ComboboxContent.cjs +1 -1
  139. package/dist/components/Combobox/ComboboxContent.cjs.map +1 -1
  140. package/dist/components/Combobox/ComboboxContent.d.ts.map +1 -1
  141. package/dist/components/Combobox/ComboboxContent.js +2 -0
  142. package/dist/components/Combobox/ComboboxContent.js.map +1 -1
  143. package/dist/components/Combobox/ComboboxEmpty.cjs +1 -1
  144. package/dist/components/Combobox/ComboboxEmpty.cjs.map +1 -1
  145. package/dist/components/Combobox/ComboboxEmpty.d.ts.map +1 -1
  146. package/dist/components/Combobox/ComboboxEmpty.js +1 -0
  147. package/dist/components/Combobox/ComboboxEmpty.js.map +1 -1
  148. package/dist/components/Combobox/ComboboxGroup.cjs +1 -1
  149. package/dist/components/Combobox/ComboboxGroup.cjs.map +1 -1
  150. package/dist/components/Combobox/ComboboxGroup.d.ts.map +1 -1
  151. package/dist/components/Combobox/ComboboxGroup.js +1 -0
  152. package/dist/components/Combobox/ComboboxGroup.js.map +1 -1
  153. package/dist/components/Combobox/ComboboxInput.cjs +1 -1
  154. package/dist/components/Combobox/ComboboxInput.cjs.map +1 -1
  155. package/dist/components/Combobox/ComboboxInput.d.ts.map +1 -1
  156. package/dist/components/Combobox/ComboboxInput.js +2 -0
  157. package/dist/components/Combobox/ComboboxInput.js.map +1 -1
  158. package/dist/components/Combobox/ComboboxListbox.cjs +1 -1
  159. package/dist/components/Combobox/ComboboxListbox.cjs.map +1 -1
  160. package/dist/components/Combobox/ComboboxListbox.d.ts.map +1 -1
  161. package/dist/components/Combobox/ComboboxListbox.js +1 -0
  162. package/dist/components/Combobox/ComboboxListbox.js.map +1 -1
  163. package/dist/components/Combobox/ComboboxOption.cjs +1 -1
  164. package/dist/components/Combobox/ComboboxOption.cjs.map +1 -1
  165. package/dist/components/Combobox/ComboboxOption.d.ts.map +1 -1
  166. package/dist/components/Combobox/ComboboxOption.js +1 -0
  167. package/dist/components/Combobox/ComboboxOption.js.map +1 -1
  168. package/dist/components/Combobox/ComboboxTrigger.cjs +1 -1
  169. package/dist/components/Combobox/ComboboxTrigger.cjs.map +1 -1
  170. package/dist/components/Combobox/ComboboxTrigger.d.ts.map +1 -1
  171. package/dist/components/Combobox/ComboboxTrigger.js +1 -0
  172. package/dist/components/Combobox/ComboboxTrigger.js.map +1 -1
  173. package/dist/components/CommandMenu/CommandMenu.cjs +1 -1
  174. package/dist/components/CommandMenu/CommandMenu.cjs.map +1 -1
  175. package/dist/components/CommandMenu/CommandMenu.d.ts.map +1 -1
  176. package/dist/components/CommandMenu/CommandMenu.js +2 -0
  177. package/dist/components/CommandMenu/CommandMenu.js.map +1 -1
  178. package/dist/components/CommandMenu/CommandMenuEmpty.cjs +1 -1
  179. package/dist/components/CommandMenu/CommandMenuEmpty.cjs.map +1 -1
  180. package/dist/components/CommandMenu/CommandMenuEmpty.d.ts.map +1 -1
  181. package/dist/components/CommandMenu/CommandMenuEmpty.js +1 -0
  182. package/dist/components/CommandMenu/CommandMenuEmpty.js.map +1 -1
  183. package/dist/components/CommandMenu/CommandMenuGroup.cjs +1 -1
  184. package/dist/components/CommandMenu/CommandMenuGroup.cjs.map +1 -1
  185. package/dist/components/CommandMenu/CommandMenuGroup.d.ts.map +1 -1
  186. package/dist/components/CommandMenu/CommandMenuGroup.js +3 -1
  187. package/dist/components/CommandMenu/CommandMenuGroup.js.map +1 -1
  188. package/dist/components/CommandMenu/CommandMenuInput.cjs +1 -1
  189. package/dist/components/CommandMenu/CommandMenuInput.cjs.map +1 -1
  190. package/dist/components/CommandMenu/CommandMenuInput.d.ts.map +1 -1
  191. package/dist/components/CommandMenu/CommandMenuInput.js +2 -0
  192. package/dist/components/CommandMenu/CommandMenuInput.js.map +1 -1
  193. package/dist/components/CommandMenu/CommandMenuItem.cjs +1 -1
  194. package/dist/components/CommandMenu/CommandMenuItem.cjs.map +1 -1
  195. package/dist/components/CommandMenu/CommandMenuItem.d.ts.map +1 -1
  196. package/dist/components/CommandMenu/CommandMenuItem.js +1 -0
  197. package/dist/components/CommandMenu/CommandMenuItem.js.map +1 -1
  198. package/dist/components/CommandMenu/CommandMenuList.cjs +1 -1
  199. package/dist/components/CommandMenu/CommandMenuList.cjs.map +1 -1
  200. package/dist/components/CommandMenu/CommandMenuList.d.ts.map +1 -1
  201. package/dist/components/CommandMenu/CommandMenuList.js +1 -0
  202. package/dist/components/CommandMenu/CommandMenuList.js.map +1 -1
  203. package/dist/components/CommandMenu/CommandMenuShortcut.cjs +1 -1
  204. package/dist/components/CommandMenu/CommandMenuShortcut.cjs.map +1 -1
  205. package/dist/components/CommandMenu/CommandMenuShortcut.d.ts.map +1 -1
  206. package/dist/components/CommandMenu/CommandMenuShortcut.js +1 -0
  207. package/dist/components/CommandMenu/CommandMenuShortcut.js.map +1 -1
  208. package/dist/components/Container/Container.cjs +1 -1
  209. package/dist/components/Container/Container.cjs.map +1 -1
  210. package/dist/components/Container/Container.d.ts +11 -3
  211. package/dist/components/Container/Container.d.ts.map +1 -1
  212. package/dist/components/Container/Container.js +4 -4
  213. package/dist/components/Container/Container.js.map +1 -1
  214. package/dist/components/ContextMenu/ContextMenuContent.cjs +1 -1
  215. package/dist/components/ContextMenu/ContextMenuContent.cjs.map +1 -1
  216. package/dist/components/ContextMenu/ContextMenuContent.d.ts.map +1 -1
  217. package/dist/components/ContextMenu/ContextMenuContent.js +1 -0
  218. package/dist/components/ContextMenu/ContextMenuContent.js.map +1 -1
  219. package/dist/components/ContextMenu/ContextMenuTrigger.cjs +1 -1
  220. package/dist/components/ContextMenu/ContextMenuTrigger.cjs.map +1 -1
  221. package/dist/components/ContextMenu/ContextMenuTrigger.d.ts.map +1 -1
  222. package/dist/components/ContextMenu/ContextMenuTrigger.js +1 -0
  223. package/dist/components/ContextMenu/ContextMenuTrigger.js.map +1 -1
  224. package/dist/components/DatePicker/DatePickerCalendar.cjs +1 -1
  225. package/dist/components/DatePicker/DatePickerCalendar.cjs.map +1 -1
  226. package/dist/components/DatePicker/DatePickerCalendar.d.ts.map +1 -1
  227. package/dist/components/DatePicker/DatePickerCalendar.js +12 -0
  228. package/dist/components/DatePicker/DatePickerCalendar.js.map +1 -1
  229. package/dist/components/DatePicker/DatePickerInput.cjs +1 -1
  230. package/dist/components/DatePicker/DatePickerInput.cjs.map +1 -1
  231. package/dist/components/DatePicker/DatePickerInput.d.ts.map +1 -1
  232. package/dist/components/DatePicker/DatePickerInput.js +4 -1
  233. package/dist/components/DatePicker/DatePickerInput.js.map +1 -1
  234. package/dist/components/Dialog/Dialog.cjs +1 -1
  235. package/dist/components/Dialog/Dialog.cjs.map +1 -1
  236. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  237. package/dist/components/Dialog/Dialog.js +2 -0
  238. package/dist/components/Dialog/Dialog.js.map +1 -1
  239. package/dist/components/DropdownMenu/DropdownMenuContent.cjs +1 -1
  240. package/dist/components/DropdownMenu/DropdownMenuContent.cjs.map +1 -1
  241. package/dist/components/DropdownMenu/DropdownMenuContent.d.ts.map +1 -1
  242. package/dist/components/DropdownMenu/DropdownMenuContent.js +1 -0
  243. package/dist/components/DropdownMenu/DropdownMenuContent.js.map +1 -1
  244. package/dist/components/DropdownMenu/DropdownMenuTrigger.cjs +1 -1
  245. package/dist/components/DropdownMenu/DropdownMenuTrigger.cjs.map +1 -1
  246. package/dist/components/DropdownMenu/DropdownMenuTrigger.d.ts.map +1 -1
  247. package/dist/components/DropdownMenu/DropdownMenuTrigger.js +1 -0
  248. package/dist/components/DropdownMenu/DropdownMenuTrigger.js.map +1 -1
  249. package/dist/components/EmptyState/EmptyState.cjs +1 -1
  250. package/dist/components/EmptyState/EmptyState.cjs.map +1 -1
  251. package/dist/components/EmptyState/EmptyState.d.ts +4 -1
  252. package/dist/components/EmptyState/EmptyState.d.ts.map +1 -1
  253. package/dist/components/EmptyState/EmptyState.js +16 -8
  254. package/dist/components/EmptyState/EmptyState.js.map +1 -1
  255. package/dist/components/Eyebrow/Eyebrow.cjs +1 -1
  256. package/dist/components/Eyebrow/Eyebrow.cjs.map +1 -1
  257. package/dist/components/Eyebrow/Eyebrow.d.ts +1 -1
  258. package/dist/components/Eyebrow/Eyebrow.d.ts.map +1 -1
  259. package/dist/components/Eyebrow/Eyebrow.js +6 -3
  260. package/dist/components/Eyebrow/Eyebrow.js.map +1 -1
  261. package/dist/components/Eyebrow/Eyebrow.variants.cjs +1 -1
  262. package/dist/components/Eyebrow/Eyebrow.variants.cjs.map +1 -1
  263. package/dist/components/Eyebrow/Eyebrow.variants.d.ts +2 -1
  264. package/dist/components/Eyebrow/Eyebrow.variants.d.ts.map +1 -1
  265. package/dist/components/Eyebrow/Eyebrow.variants.js +28 -7
  266. package/dist/components/Eyebrow/Eyebrow.variants.js.map +1 -1
  267. package/dist/components/FileInput/FileInput.cjs +1 -1
  268. package/dist/components/FileInput/FileInput.cjs.map +1 -1
  269. package/dist/components/FileInput/FileInput.d.ts.map +1 -1
  270. package/dist/components/FileInput/FileInput.js +10 -2
  271. package/dist/components/FileInput/FileInput.js.map +1 -1
  272. package/dist/components/FormField/FormField.cjs +1 -1
  273. package/dist/components/FormField/FormField.cjs.map +1 -1
  274. package/dist/components/FormField/FormField.d.ts.map +1 -1
  275. package/dist/components/FormField/FormField.js +3 -0
  276. package/dist/components/FormField/FormField.js.map +1 -1
  277. package/dist/components/Grid/Grid.cjs +1 -1
  278. package/dist/components/Grid/Grid.cjs.map +1 -1
  279. package/dist/components/Grid/Grid.d.ts +11 -3
  280. package/dist/components/Grid/Grid.d.ts.map +1 -1
  281. package/dist/components/Grid/Grid.js +4 -4
  282. package/dist/components/Grid/Grid.js.map +1 -1
  283. package/dist/components/Heading/Heading.variants.cjs +1 -1
  284. package/dist/components/Heading/Heading.variants.cjs.map +1 -1
  285. package/dist/components/Heading/Heading.variants.d.ts +1 -1
  286. package/dist/components/Heading/Heading.variants.d.ts.map +1 -1
  287. package/dist/components/Heading/Heading.variants.js +7 -2
  288. package/dist/components/Heading/Heading.variants.js.map +1 -1
  289. package/dist/components/Icon/Icon.variants.cjs.map +1 -1
  290. package/dist/components/Icon/Icon.variants.d.ts.map +1 -1
  291. package/dist/components/Icon/Icon.variants.js.map +1 -1
  292. package/dist/components/Kbd/Kbd.variants.cjs.map +1 -1
  293. package/dist/components/Kbd/Kbd.variants.d.ts.map +1 -1
  294. package/dist/components/Kbd/Kbd.variants.js.map +1 -1
  295. package/dist/components/Label/Label.cjs +1 -1
  296. package/dist/components/Label/Label.cjs.map +1 -1
  297. package/dist/components/Label/Label.d.ts +4 -1
  298. package/dist/components/Label/Label.d.ts.map +1 -1
  299. package/dist/components/Label/Label.js +21 -10
  300. package/dist/components/Label/Label.js.map +1 -1
  301. package/dist/components/Menu/MenuCheckboxItemBase.cjs +1 -1
  302. package/dist/components/Menu/MenuCheckboxItemBase.cjs.map +1 -1
  303. package/dist/components/Menu/MenuCheckboxItemBase.d.ts.map +1 -1
  304. package/dist/components/Menu/MenuCheckboxItemBase.js +2 -0
  305. package/dist/components/Menu/MenuCheckboxItemBase.js.map +1 -1
  306. package/dist/components/Menu/MenuItemBase.cjs +1 -1
  307. package/dist/components/Menu/MenuItemBase.cjs.map +1 -1
  308. package/dist/components/Menu/MenuItemBase.d.ts.map +1 -1
  309. package/dist/components/Menu/MenuItemBase.js +1 -0
  310. package/dist/components/Menu/MenuItemBase.js.map +1 -1
  311. package/dist/components/Menu/MenuLabelBase.cjs +1 -1
  312. package/dist/components/Menu/MenuLabelBase.cjs.map +1 -1
  313. package/dist/components/Menu/MenuLabelBase.d.ts.map +1 -1
  314. package/dist/components/Menu/MenuLabelBase.js +1 -0
  315. package/dist/components/Menu/MenuLabelBase.js.map +1 -1
  316. package/dist/components/Menu/MenuRadioGroupBase.cjs +1 -1
  317. package/dist/components/Menu/MenuRadioGroupBase.cjs.map +1 -1
  318. package/dist/components/Menu/MenuRadioGroupBase.js +1 -0
  319. package/dist/components/Menu/MenuRadioGroupBase.js.map +1 -1
  320. package/dist/components/Menu/MenuRadioItemBase.cjs +1 -1
  321. package/dist/components/Menu/MenuRadioItemBase.cjs.map +1 -1
  322. package/dist/components/Menu/MenuRadioItemBase.d.ts.map +1 -1
  323. package/dist/components/Menu/MenuRadioItemBase.js +2 -0
  324. package/dist/components/Menu/MenuRadioItemBase.js.map +1 -1
  325. package/dist/components/Menu/MenuSeparatorBase.cjs +1 -1
  326. package/dist/components/Menu/MenuSeparatorBase.cjs.map +1 -1
  327. package/dist/components/Menu/MenuSeparatorBase.d.ts.map +1 -1
  328. package/dist/components/Menu/MenuSeparatorBase.js +1 -0
  329. package/dist/components/Menu/MenuSeparatorBase.js.map +1 -1
  330. package/dist/components/Menu/menuItemVariants.cjs +1 -1
  331. package/dist/components/Menu/menuItemVariants.cjs.map +1 -1
  332. package/dist/components/Menu/menuItemVariants.js +1 -1
  333. package/dist/components/Menu/menuItemVariants.js.map +1 -1
  334. package/dist/components/Menubar/Menubar.cjs +1 -1
  335. package/dist/components/Menubar/Menubar.cjs.map +1 -1
  336. package/dist/components/Menubar/Menubar.d.ts.map +1 -1
  337. package/dist/components/Menubar/Menubar.js +1 -0
  338. package/dist/components/Menubar/Menubar.js.map +1 -1
  339. package/dist/components/Menubar/MenubarContent.cjs +1 -1
  340. package/dist/components/Menubar/MenubarContent.cjs.map +1 -1
  341. package/dist/components/Menubar/MenubarContent.d.ts.map +1 -1
  342. package/dist/components/Menubar/MenubarContent.js +1 -0
  343. package/dist/components/Menubar/MenubarContent.js.map +1 -1
  344. package/dist/components/Menubar/MenubarTrigger.cjs +1 -1
  345. package/dist/components/Menubar/MenubarTrigger.cjs.map +1 -1
  346. package/dist/components/Menubar/MenubarTrigger.d.ts.map +1 -1
  347. package/dist/components/Menubar/MenubarTrigger.js +2 -1
  348. package/dist/components/Menubar/MenubarTrigger.js.map +1 -1
  349. package/dist/components/Nav/Nav.cjs +1 -1
  350. package/dist/components/Nav/Nav.cjs.map +1 -1
  351. package/dist/components/Nav/Nav.js +1 -0
  352. package/dist/components/Nav/Nav.js.map +1 -1
  353. package/dist/components/Nav/NavItem.cjs +1 -1
  354. package/dist/components/Nav/NavItem.cjs.map +1 -1
  355. package/dist/components/Nav/NavItem.d.ts.map +1 -1
  356. package/dist/components/Nav/NavItem.js +1 -0
  357. package/dist/components/Nav/NavItem.js.map +1 -1
  358. package/dist/components/Nav/NavLink.cjs +1 -1
  359. package/dist/components/Nav/NavLink.cjs.map +1 -1
  360. package/dist/components/Nav/NavLink.d.ts.map +1 -1
  361. package/dist/components/Nav/NavLink.js +2 -1
  362. package/dist/components/Nav/NavLink.js.map +1 -1
  363. package/dist/components/Nav/NavList.cjs +1 -1
  364. package/dist/components/Nav/NavList.cjs.map +1 -1
  365. package/dist/components/Nav/NavList.d.ts.map +1 -1
  366. package/dist/components/Nav/NavList.js +1 -0
  367. package/dist/components/Nav/NavList.js.map +1 -1
  368. package/dist/components/Nav/NavSubmenu.cjs +1 -1
  369. package/dist/components/Nav/NavSubmenu.cjs.map +1 -1
  370. package/dist/components/Nav/NavSubmenu.d.ts.map +1 -1
  371. package/dist/components/Nav/NavSubmenu.js +1 -0
  372. package/dist/components/Nav/NavSubmenu.js.map +1 -1
  373. package/dist/components/Nav/NavTrigger.cjs +1 -1
  374. package/dist/components/Nav/NavTrigger.cjs.map +1 -1
  375. package/dist/components/Nav/NavTrigger.d.ts.map +1 -1
  376. package/dist/components/Nav/NavTrigger.js +3 -1
  377. package/dist/components/Nav/NavTrigger.js.map +1 -1
  378. package/dist/components/NavigationMenu/NavigationMenu.cjs +1 -1
  379. package/dist/components/NavigationMenu/NavigationMenu.cjs.map +1 -1
  380. package/dist/components/NavigationMenu/NavigationMenu.d.ts.map +1 -1
  381. package/dist/components/NavigationMenu/NavigationMenu.js +1 -0
  382. package/dist/components/NavigationMenu/NavigationMenu.js.map +1 -1
  383. package/dist/components/NavigationMenu/NavigationMenuContent.cjs +1 -1
  384. package/dist/components/NavigationMenu/NavigationMenuContent.cjs.map +1 -1
  385. package/dist/components/NavigationMenu/NavigationMenuContent.d.ts.map +1 -1
  386. package/dist/components/NavigationMenu/NavigationMenuContent.js +1 -0
  387. package/dist/components/NavigationMenu/NavigationMenuContent.js.map +1 -1
  388. package/dist/components/NavigationMenu/NavigationMenuItem.cjs +1 -1
  389. package/dist/components/NavigationMenu/NavigationMenuItem.cjs.map +1 -1
  390. package/dist/components/NavigationMenu/NavigationMenuItem.d.ts.map +1 -1
  391. package/dist/components/NavigationMenu/NavigationMenuItem.js +1 -0
  392. package/dist/components/NavigationMenu/NavigationMenuItem.js.map +1 -1
  393. package/dist/components/NavigationMenu/NavigationMenuLink.cjs +1 -1
  394. package/dist/components/NavigationMenu/NavigationMenuLink.cjs.map +1 -1
  395. package/dist/components/NavigationMenu/NavigationMenuLink.d.ts.map +1 -1
  396. package/dist/components/NavigationMenu/NavigationMenuLink.js +2 -1
  397. package/dist/components/NavigationMenu/NavigationMenuLink.js.map +1 -1
  398. package/dist/components/NavigationMenu/NavigationMenuList.cjs +1 -1
  399. package/dist/components/NavigationMenu/NavigationMenuList.cjs.map +1 -1
  400. package/dist/components/NavigationMenu/NavigationMenuList.d.ts.map +1 -1
  401. package/dist/components/NavigationMenu/NavigationMenuList.js +1 -0
  402. package/dist/components/NavigationMenu/NavigationMenuList.js.map +1 -1
  403. package/dist/components/NavigationMenu/NavigationMenuTrigger.cjs +1 -1
  404. package/dist/components/NavigationMenu/NavigationMenuTrigger.cjs.map +1 -1
  405. package/dist/components/NavigationMenu/NavigationMenuTrigger.d.ts.map +1 -1
  406. package/dist/components/NavigationMenu/NavigationMenuTrigger.js +2 -1
  407. package/dist/components/NavigationMenu/NavigationMenuTrigger.js.map +1 -1
  408. package/dist/components/NumberInput/NumberInput.cjs +1 -1
  409. package/dist/components/NumberInput/NumberInput.cjs.map +1 -1
  410. package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
  411. package/dist/components/NumberInput/NumberInput.js +3 -0
  412. package/dist/components/NumberInput/NumberInput.js.map +1 -1
  413. package/dist/components/Pagination/Pagination.cjs +1 -1
  414. package/dist/components/Pagination/Pagination.cjs.map +1 -1
  415. package/dist/components/Pagination/Pagination.d.ts.map +1 -1
  416. package/dist/components/Pagination/Pagination.js +1 -0
  417. package/dist/components/Pagination/Pagination.js.map +1 -1
  418. package/dist/components/Pagination/PaginationContent.cjs +1 -1
  419. package/dist/components/Pagination/PaginationContent.cjs.map +1 -1
  420. package/dist/components/Pagination/PaginationContent.d.ts.map +1 -1
  421. package/dist/components/Pagination/PaginationContent.js +1 -0
  422. package/dist/components/Pagination/PaginationContent.js.map +1 -1
  423. package/dist/components/Pagination/PaginationEllipsis.cjs +1 -1
  424. package/dist/components/Pagination/PaginationEllipsis.cjs.map +1 -1
  425. package/dist/components/Pagination/PaginationEllipsis.d.ts.map +1 -1
  426. package/dist/components/Pagination/PaginationEllipsis.js +1 -0
  427. package/dist/components/Pagination/PaginationEllipsis.js.map +1 -1
  428. package/dist/components/Pagination/PaginationItem.cjs +1 -1
  429. package/dist/components/Pagination/PaginationItem.cjs.map +1 -1
  430. package/dist/components/Pagination/PaginationItem.js +1 -0
  431. package/dist/components/Pagination/PaginationItem.js.map +1 -1
  432. package/dist/components/Pagination/PaginationLink.cjs +1 -1
  433. package/dist/components/Pagination/PaginationLink.cjs.map +1 -1
  434. package/dist/components/Pagination/PaginationLink.d.ts.map +1 -1
  435. package/dist/components/Pagination/PaginationLink.js +1 -0
  436. package/dist/components/Pagination/PaginationLink.js.map +1 -1
  437. package/dist/components/Pagination/PaginationNext.cjs +1 -1
  438. package/dist/components/Pagination/PaginationNext.cjs.map +1 -1
  439. package/dist/components/Pagination/PaginationNext.d.ts.map +1 -1
  440. package/dist/components/Pagination/PaginationNext.js +3 -0
  441. package/dist/components/Pagination/PaginationNext.js.map +1 -1
  442. package/dist/components/Pagination/PaginationPrevious.cjs +1 -1
  443. package/dist/components/Pagination/PaginationPrevious.cjs.map +1 -1
  444. package/dist/components/Pagination/PaginationPrevious.d.ts.map +1 -1
  445. package/dist/components/Pagination/PaginationPrevious.js +3 -0
  446. package/dist/components/Pagination/PaginationPrevious.js.map +1 -1
  447. package/dist/components/Popover/PopoverContent.cjs +1 -1
  448. package/dist/components/Popover/PopoverContent.cjs.map +1 -1
  449. package/dist/components/Popover/PopoverContent.d.ts.map +1 -1
  450. package/dist/components/Popover/PopoverContent.js +1 -0
  451. package/dist/components/Popover/PopoverContent.js.map +1 -1
  452. package/dist/components/Popover/PopoverTrigger.cjs +1 -1
  453. package/dist/components/Popover/PopoverTrigger.cjs.map +1 -1
  454. package/dist/components/Popover/PopoverTrigger.d.ts.map +1 -1
  455. package/dist/components/Popover/PopoverTrigger.js +1 -0
  456. package/dist/components/Popover/PopoverTrigger.js.map +1 -1
  457. package/dist/components/Progress/Progress.variants.cjs.map +1 -1
  458. package/dist/components/Progress/Progress.variants.d.ts.map +1 -1
  459. package/dist/components/Progress/Progress.variants.js.map +1 -1
  460. package/dist/components/RadioGroup/Radio.cjs +1 -1
  461. package/dist/components/RadioGroup/Radio.cjs.map +1 -1
  462. package/dist/components/RadioGroup/Radio.d.ts.map +1 -1
  463. package/dist/components/RadioGroup/Radio.js +4 -0
  464. package/dist/components/RadioGroup/Radio.js.map +1 -1
  465. package/dist/components/RadioGroup/Radio.variants.cjs.map +1 -1
  466. package/dist/components/RadioGroup/Radio.variants.d.ts.map +1 -1
  467. package/dist/components/RadioGroup/Radio.variants.js.map +1 -1
  468. package/dist/components/RadioGroup/RadioGroup.cjs +1 -1
  469. package/dist/components/RadioGroup/RadioGroup.cjs.map +1 -1
  470. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  471. package/dist/components/RadioGroup/RadioGroup.js +1 -0
  472. package/dist/components/RadioGroup/RadioGroup.js.map +1 -1
  473. package/dist/components/ScrollArea/ScrollArea.cjs +1 -1
  474. package/dist/components/ScrollArea/ScrollArea.cjs.map +1 -1
  475. package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -1
  476. package/dist/components/ScrollArea/ScrollArea.js +1 -0
  477. package/dist/components/ScrollArea/ScrollArea.js.map +1 -1
  478. package/dist/components/Section/Section.cjs +1 -1
  479. package/dist/components/Section/Section.cjs.map +1 -1
  480. package/dist/components/Section/Section.d.ts.map +1 -1
  481. package/dist/components/Section/Section.js +1 -0
  482. package/dist/components/Section/Section.js.map +1 -1
  483. package/dist/components/Select/Select.cjs +1 -1
  484. package/dist/components/Select/Select.cjs.map +1 -1
  485. package/dist/components/Select/Select.d.ts.map +1 -1
  486. package/dist/components/Select/Select.js +1 -0
  487. package/dist/components/Select/Select.js.map +1 -1
  488. package/dist/components/Select/SelectContent.cjs +1 -1
  489. package/dist/components/Select/SelectContent.cjs.map +1 -1
  490. package/dist/components/Select/SelectContent.d.ts.map +1 -1
  491. package/dist/components/Select/SelectContent.js +1 -0
  492. package/dist/components/Select/SelectContent.js.map +1 -1
  493. package/dist/components/Select/SelectItem.cjs +1 -1
  494. package/dist/components/Select/SelectItem.cjs.map +1 -1
  495. package/dist/components/Select/SelectItem.d.ts.map +1 -1
  496. package/dist/components/Select/SelectItem.js +1 -0
  497. package/dist/components/Select/SelectItem.js.map +1 -1
  498. package/dist/components/Select/SelectSeparator.cjs +1 -1
  499. package/dist/components/Select/SelectSeparator.cjs.map +1 -1
  500. package/dist/components/Select/SelectSeparator.d.ts.map +1 -1
  501. package/dist/components/Select/SelectSeparator.js +1 -0
  502. package/dist/components/Select/SelectSeparator.js.map +1 -1
  503. package/dist/components/Select/SelectTrigger.cjs +1 -1
  504. package/dist/components/Select/SelectTrigger.cjs.map +1 -1
  505. package/dist/components/Select/SelectTrigger.d.ts.map +1 -1
  506. package/dist/components/Select/SelectTrigger.js +1 -0
  507. package/dist/components/Select/SelectTrigger.js.map +1 -1
  508. package/dist/components/Sheet/Sheet.cjs +1 -1
  509. package/dist/components/Sheet/Sheet.cjs.map +1 -1
  510. package/dist/components/Sheet/Sheet.d.ts.map +1 -1
  511. package/dist/components/Sheet/Sheet.js +2 -0
  512. package/dist/components/Sheet/Sheet.js.map +1 -1
  513. package/dist/components/Sidebar/Sidebar.cjs +1 -1
  514. package/dist/components/Sidebar/Sidebar.cjs.map +1 -1
  515. package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
  516. package/dist/components/Sidebar/Sidebar.js +2 -0
  517. package/dist/components/Sidebar/Sidebar.js.map +1 -1
  518. package/dist/components/Sidebar/SidebarContent.cjs +1 -1
  519. package/dist/components/Sidebar/SidebarContent.cjs.map +1 -1
  520. package/dist/components/Sidebar/SidebarContent.d.ts.map +1 -1
  521. package/dist/components/Sidebar/SidebarContent.js +1 -0
  522. package/dist/components/Sidebar/SidebarContent.js.map +1 -1
  523. package/dist/components/Sidebar/SidebarFooter.cjs +1 -1
  524. package/dist/components/Sidebar/SidebarFooter.cjs.map +1 -1
  525. package/dist/components/Sidebar/SidebarFooter.d.ts.map +1 -1
  526. package/dist/components/Sidebar/SidebarFooter.js +1 -0
  527. package/dist/components/Sidebar/SidebarFooter.js.map +1 -1
  528. package/dist/components/Sidebar/SidebarGroup.cjs +1 -1
  529. package/dist/components/Sidebar/SidebarGroup.cjs.map +1 -1
  530. package/dist/components/Sidebar/SidebarGroup.d.ts.map +1 -1
  531. package/dist/components/Sidebar/SidebarGroup.js +1 -0
  532. package/dist/components/Sidebar/SidebarGroup.js.map +1 -1
  533. package/dist/components/Sidebar/SidebarGroupLabel.cjs +1 -1
  534. package/dist/components/Sidebar/SidebarGroupLabel.cjs.map +1 -1
  535. package/dist/components/Sidebar/SidebarGroupLabel.d.ts.map +1 -1
  536. package/dist/components/Sidebar/SidebarGroupLabel.js +1 -0
  537. package/dist/components/Sidebar/SidebarGroupLabel.js.map +1 -1
  538. package/dist/components/Sidebar/SidebarHeader.cjs +1 -1
  539. package/dist/components/Sidebar/SidebarHeader.cjs.map +1 -1
  540. package/dist/components/Sidebar/SidebarHeader.d.ts.map +1 -1
  541. package/dist/components/Sidebar/SidebarHeader.js +1 -0
  542. package/dist/components/Sidebar/SidebarHeader.js.map +1 -1
  543. package/dist/components/Sidebar/SidebarInset.cjs +1 -1
  544. package/dist/components/Sidebar/SidebarInset.cjs.map +1 -1
  545. package/dist/components/Sidebar/SidebarInset.d.ts.map +1 -1
  546. package/dist/components/Sidebar/SidebarInset.js +1 -0
  547. package/dist/components/Sidebar/SidebarInset.js.map +1 -1
  548. package/dist/components/Sidebar/SidebarMenu.cjs +1 -1
  549. package/dist/components/Sidebar/SidebarMenu.cjs.map +1 -1
  550. package/dist/components/Sidebar/SidebarMenu.d.ts.map +1 -1
  551. package/dist/components/Sidebar/SidebarMenu.js +1 -0
  552. package/dist/components/Sidebar/SidebarMenu.js.map +1 -1
  553. package/dist/components/Sidebar/SidebarMenuButton.cjs +1 -1
  554. package/dist/components/Sidebar/SidebarMenuButton.cjs.map +1 -1
  555. package/dist/components/Sidebar/SidebarMenuButton.d.ts.map +1 -1
  556. package/dist/components/Sidebar/SidebarMenuButton.js +1 -0
  557. package/dist/components/Sidebar/SidebarMenuButton.js.map +1 -1
  558. package/dist/components/Sidebar/SidebarMenuItem.cjs +1 -1
  559. package/dist/components/Sidebar/SidebarMenuItem.cjs.map +1 -1
  560. package/dist/components/Sidebar/SidebarMenuItem.d.ts.map +1 -1
  561. package/dist/components/Sidebar/SidebarMenuItem.js +1 -0
  562. package/dist/components/Sidebar/SidebarMenuItem.js.map +1 -1
  563. package/dist/components/Sidebar/SidebarProvider.cjs +1 -1
  564. package/dist/components/Sidebar/SidebarProvider.cjs.map +1 -1
  565. package/dist/components/Sidebar/SidebarProvider.d.ts.map +1 -1
  566. package/dist/components/Sidebar/SidebarProvider.js +1 -0
  567. package/dist/components/Sidebar/SidebarProvider.js.map +1 -1
  568. package/dist/components/Sidebar/SidebarTrigger.cjs +1 -1
  569. package/dist/components/Sidebar/SidebarTrigger.cjs.map +1 -1
  570. package/dist/components/Sidebar/SidebarTrigger.d.ts.map +1 -1
  571. package/dist/components/Sidebar/SidebarTrigger.js +1 -0
  572. package/dist/components/Sidebar/SidebarTrigger.js.map +1 -1
  573. package/dist/components/SkipLink/SkipLink.cjs +1 -1
  574. package/dist/components/SkipLink/SkipLink.cjs.map +1 -1
  575. package/dist/components/SkipLink/SkipLink.js +1 -1
  576. package/dist/components/SkipLink/SkipLink.js.map +1 -1
  577. package/dist/components/Slider/Slider.cjs +1 -1
  578. package/dist/components/Slider/Slider.cjs.map +1 -1
  579. package/dist/components/Slider/Slider.d.ts.map +1 -1
  580. package/dist/components/Slider/Slider.js +6 -0
  581. package/dist/components/Slider/Slider.js.map +1 -1
  582. package/dist/components/Slider/Slider.variants.cjs.map +1 -1
  583. package/dist/components/Slider/Slider.variants.d.ts.map +1 -1
  584. package/dist/components/Slider/Slider.variants.js.map +1 -1
  585. package/dist/components/Spinner/Spinner.variants.cjs.map +1 -1
  586. package/dist/components/Spinner/Spinner.variants.d.ts.map +1 -1
  587. package/dist/components/Spinner/Spinner.variants.js.map +1 -1
  588. package/dist/components/SplitLayout/SplitLayout.cjs +1 -1
  589. package/dist/components/SplitLayout/SplitLayout.cjs.map +1 -1
  590. package/dist/components/SplitLayout/SplitLayout.d.ts.map +1 -1
  591. package/dist/components/SplitLayout/SplitLayout.js +1 -0
  592. package/dist/components/SplitLayout/SplitLayout.js.map +1 -1
  593. package/dist/components/Stack/Stack.cjs +1 -1
  594. package/dist/components/Stack/Stack.cjs.map +1 -1
  595. package/dist/components/Stack/Stack.d.ts +11 -3
  596. package/dist/components/Stack/Stack.d.ts.map +1 -1
  597. package/dist/components/Stack/Stack.js +4 -4
  598. package/dist/components/Stack/Stack.js.map +1 -1
  599. package/dist/components/Stepper/Stepper.cjs +1 -1
  600. package/dist/components/Stepper/Stepper.cjs.map +1 -1
  601. package/dist/components/Stepper/Stepper.d.ts.map +1 -1
  602. package/dist/components/Stepper/Stepper.js +3 -0
  603. package/dist/components/Stepper/Stepper.js.map +1 -1
  604. package/dist/components/Stepper/StepperContent.cjs +1 -1
  605. package/dist/components/Stepper/StepperContent.cjs.map +1 -1
  606. package/dist/components/Stepper/StepperContent.d.ts.map +1 -1
  607. package/dist/components/Stepper/StepperContent.js +1 -0
  608. package/dist/components/Stepper/StepperContent.js.map +1 -1
  609. package/dist/components/Stepper/StepperDescription.cjs +1 -1
  610. package/dist/components/Stepper/StepperDescription.cjs.map +1 -1
  611. package/dist/components/Stepper/StepperDescription.d.ts.map +1 -1
  612. package/dist/components/Stepper/StepperDescription.js +1 -0
  613. package/dist/components/Stepper/StepperDescription.js.map +1 -1
  614. package/dist/components/Stepper/StepperIndicator.cjs +1 -1
  615. package/dist/components/Stepper/StepperIndicator.cjs.map +1 -1
  616. package/dist/components/Stepper/StepperIndicator.d.ts.map +1 -1
  617. package/dist/components/Stepper/StepperIndicator.js +2 -1
  618. package/dist/components/Stepper/StepperIndicator.js.map +1 -1
  619. package/dist/components/Stepper/StepperItem.cjs +1 -1
  620. package/dist/components/Stepper/StepperItem.cjs.map +1 -1
  621. package/dist/components/Stepper/StepperItem.d.ts.map +1 -1
  622. package/dist/components/Stepper/StepperItem.js +1 -0
  623. package/dist/components/Stepper/StepperItem.js.map +1 -1
  624. package/dist/components/Stepper/StepperTitle.cjs +1 -1
  625. package/dist/components/Stepper/StepperTitle.cjs.map +1 -1
  626. package/dist/components/Stepper/StepperTitle.d.ts.map +1 -1
  627. package/dist/components/Stepper/StepperTitle.js +1 -0
  628. package/dist/components/Stepper/StepperTitle.js.map +1 -1
  629. package/dist/components/Switch/Switch.cjs +1 -1
  630. package/dist/components/Switch/Switch.cjs.map +1 -1
  631. package/dist/components/Switch/Switch.d.ts.map +1 -1
  632. package/dist/components/Switch/Switch.js +6 -3
  633. package/dist/components/Switch/Switch.js.map +1 -1
  634. package/dist/components/Switch/Switch.variants.cjs +1 -1
  635. package/dist/components/Switch/Switch.variants.cjs.map +1 -1
  636. package/dist/components/Switch/Switch.variants.d.ts.map +1 -1
  637. package/dist/components/Switch/Switch.variants.js +4 -4
  638. package/dist/components/Switch/Switch.variants.js.map +1 -1
  639. package/dist/components/Table/Table.cjs +1 -1
  640. package/dist/components/Table/Table.cjs.map +1 -1
  641. package/dist/components/Table/Table.d.ts.map +1 -1
  642. package/dist/components/Table/Table.js +3 -0
  643. package/dist/components/Table/Table.js.map +1 -1
  644. package/dist/components/Table/TableBody.cjs +1 -1
  645. package/dist/components/Table/TableBody.cjs.map +1 -1
  646. package/dist/components/Table/TableBody.d.ts.map +1 -1
  647. package/dist/components/Table/TableBody.js +1 -0
  648. package/dist/components/Table/TableBody.js.map +1 -1
  649. package/dist/components/Table/TableCell.cjs +1 -1
  650. package/dist/components/Table/TableCell.cjs.map +1 -1
  651. package/dist/components/Table/TableCell.d.ts.map +1 -1
  652. package/dist/components/Table/TableCell.js +1 -0
  653. package/dist/components/Table/TableCell.js.map +1 -1
  654. package/dist/components/Table/TableFooter.cjs +1 -1
  655. package/dist/components/Table/TableFooter.cjs.map +1 -1
  656. package/dist/components/Table/TableFooter.d.ts.map +1 -1
  657. package/dist/components/Table/TableFooter.js +2 -1
  658. package/dist/components/Table/TableFooter.js.map +1 -1
  659. package/dist/components/Table/TableHead.cjs +1 -1
  660. package/dist/components/Table/TableHead.cjs.map +1 -1
  661. package/dist/components/Table/TableHead.d.ts.map +1 -1
  662. package/dist/components/Table/TableHead.js +2 -1
  663. package/dist/components/Table/TableHead.js.map +1 -1
  664. package/dist/components/Table/TableHeader.cjs +1 -1
  665. package/dist/components/Table/TableHeader.cjs.map +1 -1
  666. package/dist/components/Table/TableHeader.d.ts.map +1 -1
  667. package/dist/components/Table/TableHeader.js +1 -0
  668. package/dist/components/Table/TableHeader.js.map +1 -1
  669. package/dist/components/Table/TableRow.cjs +1 -1
  670. package/dist/components/Table/TableRow.cjs.map +1 -1
  671. package/dist/components/Table/TableRow.d.ts.map +1 -1
  672. package/dist/components/Table/TableRow.js +1 -0
  673. package/dist/components/Table/TableRow.js.map +1 -1
  674. package/dist/components/Tabs/Tabs.cjs +1 -1
  675. package/dist/components/Tabs/Tabs.cjs.map +1 -1
  676. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  677. package/dist/components/Tabs/Tabs.js +1 -0
  678. package/dist/components/Tabs/Tabs.js.map +1 -1
  679. package/dist/components/Tabs/TabsContent.cjs +1 -1
  680. package/dist/components/Tabs/TabsContent.cjs.map +1 -1
  681. package/dist/components/Tabs/TabsContent.d.ts.map +1 -1
  682. package/dist/components/Tabs/TabsContent.js +1 -0
  683. package/dist/components/Tabs/TabsContent.js.map +1 -1
  684. package/dist/components/Tabs/TabsList.cjs +1 -1
  685. package/dist/components/Tabs/TabsList.cjs.map +1 -1
  686. package/dist/components/Tabs/TabsList.d.ts.map +1 -1
  687. package/dist/components/Tabs/TabsList.js +1 -0
  688. package/dist/components/Tabs/TabsList.js.map +1 -1
  689. package/dist/components/Tabs/TabsTrigger.cjs +1 -1
  690. package/dist/components/Tabs/TabsTrigger.cjs.map +1 -1
  691. package/dist/components/Tabs/TabsTrigger.d.ts.map +1 -1
  692. package/dist/components/Tabs/TabsTrigger.js +1 -0
  693. package/dist/components/Tabs/TabsTrigger.js.map +1 -1
  694. package/dist/components/Tag/Tag.variants.cjs +1 -1
  695. package/dist/components/Tag/Tag.variants.cjs.map +1 -1
  696. package/dist/components/Tag/Tag.variants.js +1 -1
  697. package/dist/components/Tag/Tag.variants.js.map +1 -1
  698. package/dist/components/Text/Text.cjs.map +1 -1
  699. package/dist/components/Text/Text.d.ts +1 -1
  700. package/dist/components/Text/Text.d.ts.map +1 -1
  701. package/dist/components/Text/Text.js.map +1 -1
  702. package/dist/components/Text/Text.variants.cjs +1 -1
  703. package/dist/components/Text/Text.variants.cjs.map +1 -1
  704. package/dist/components/Text/Text.variants.d.ts +1 -1
  705. package/dist/components/Text/Text.variants.d.ts.map +1 -1
  706. package/dist/components/Text/Text.variants.js +6 -1
  707. package/dist/components/Text/Text.variants.js.map +1 -1
  708. package/dist/components/Timeline/Timeline.cjs +1 -1
  709. package/dist/components/Timeline/Timeline.cjs.map +1 -1
  710. package/dist/components/Timeline/Timeline.d.ts.map +1 -1
  711. package/dist/components/Timeline/Timeline.js +1 -0
  712. package/dist/components/Timeline/Timeline.js.map +1 -1
  713. package/dist/components/Timeline/TimelineItem.cjs +1 -1
  714. package/dist/components/Timeline/TimelineItem.cjs.map +1 -1
  715. package/dist/components/Timeline/TimelineItem.d.ts +2 -1
  716. package/dist/components/Timeline/TimelineItem.d.ts.map +1 -1
  717. package/dist/components/Timeline/TimelineItem.js +48 -28
  718. package/dist/components/Timeline/TimelineItem.js.map +1 -1
  719. package/dist/components/Toast/Toast.cjs +1 -1
  720. package/dist/components/Toast/Toast.cjs.map +1 -1
  721. package/dist/components/Toast/Toast.d.ts.map +1 -1
  722. package/dist/components/Toast/Toast.js +4 -0
  723. package/dist/components/Toast/Toast.js.map +1 -1
  724. package/dist/components/Toast/Toaster.cjs +1 -1
  725. package/dist/components/Toast/Toaster.cjs.map +1 -1
  726. package/dist/components/Toast/Toaster.d.ts.map +1 -1
  727. package/dist/components/Toast/Toaster.js +1 -0
  728. package/dist/components/Toast/Toaster.js.map +1 -1
  729. package/dist/components/Tooltip/TooltipContent.cjs +1 -1
  730. package/dist/components/Tooltip/TooltipContent.cjs.map +1 -1
  731. package/dist/components/Tooltip/TooltipContent.d.ts.map +1 -1
  732. package/dist/components/Tooltip/TooltipContent.js +1 -0
  733. package/dist/components/Tooltip/TooltipContent.js.map +1 -1
  734. package/dist/components/Tooltip/TooltipTrigger.cjs +1 -1
  735. package/dist/components/Tooltip/TooltipTrigger.cjs.map +1 -1
  736. package/dist/components/Tooltip/TooltipTrigger.d.ts.map +1 -1
  737. package/dist/components/Tooltip/TooltipTrigger.js +1 -0
  738. package/dist/components/Tooltip/TooltipTrigger.js.map +1 -1
  739. package/dist/index.cjs +1 -1
  740. package/dist/index.d.ts +3 -1
  741. package/dist/index.d.ts.map +1 -1
  742. package/dist/index.js +190 -188
  743. package/dist/styles-root.css +12 -1
  744. package/dist/styles.css +22 -1
  745. package/dist/utils/_tailwind-safelist.d.ts +2 -0
  746. package/dist/utils/_tailwind-safelist.d.ts.map +1 -0
  747. package/dist/utils/modal-primitive.cjs +1 -1
  748. package/dist/utils/modal-primitive.cjs.map +1 -1
  749. package/dist/utils/modal-primitive.d.ts.map +1 -1
  750. package/dist/utils/modal-primitive.js +5 -0
  751. package/dist/utils/modal-primitive.js.map +1 -1
  752. package/dist/utils/polymorphic.d.ts +11 -0
  753. package/dist/utils/polymorphic.d.ts.map +1 -0
  754. package/dist/utils/responsive-maps.cjs +2 -0
  755. package/dist/utils/responsive-maps.cjs.map +1 -0
  756. package/dist/utils/responsive-maps.d.ts +50 -0
  757. package/dist/utils/responsive-maps.d.ts.map +1 -0
  758. package/dist/utils/responsive-maps.js +103 -0
  759. package/dist/utils/responsive-maps.js.map +1 -0
  760. package/dist/utils/responsive.cjs +1 -1
  761. package/dist/utils/responsive.cjs.map +1 -1
  762. package/dist/utils/responsive.d.ts +2 -19
  763. package/dist/utils/responsive.d.ts.map +1 -1
  764. package/dist/utils/responsive.js +23 -113
  765. package/dist/utils/responsive.js.map +1 -1
  766. package/package.json +6 -2
@@ -55,10 +55,12 @@ function g({ ref: g, className: _, ...v }) {
55
55
  style: y.floatingStyles,
56
56
  role: "dialog",
57
57
  "aria-label": "Date picker",
58
+ "data-slot": "calendar",
58
59
  ...L,
59
60
  className: e("z-(--nuka-z-dropdown) rounded-(--radius-md) border border-(--nuka-border-base)", "bg-(--nuka-bg-base) shadow-md p-(--space-3)", "focus-visible:outline-none", _),
60
61
  children: [/* @__PURE__ */ h("div", {
61
62
  className: "flex items-center justify-between mb-(--space-2)",
63
+ "data-slot": "calendar-header",
62
64
  children: [
63
65
  /* @__PURE__ */ m(r, {
64
66
  variant: "ghost",
@@ -66,6 +68,7 @@ function g({ ref: g, className: _, ...v }) {
66
68
  onClick: D,
67
69
  disabled: !T,
68
70
  "aria-label": "Previous month",
71
+ "data-slot": "prev-button",
69
72
  children: /* @__PURE__ */ m(n, {
70
73
  size: "sm",
71
74
  children: /* @__PURE__ */ m("svg", {
@@ -84,6 +87,7 @@ function g({ ref: g, className: _, ...v }) {
84
87
  as: "span",
85
88
  size: "sm",
86
89
  weight: "medium",
90
+ "data-slot": "month-year-label",
87
91
  children: P
88
92
  }),
89
93
  /* @__PURE__ */ m(r, {
@@ -92,6 +96,7 @@ function g({ ref: g, className: _, ...v }) {
92
96
  onClick: O,
93
97
  disabled: !E,
94
98
  "aria-label": "Next month",
99
+ "data-slot": "next-button",
95
100
  children: /* @__PURE__ */ m(n, {
96
101
  size: "sm",
97
102
  children: /* @__PURE__ */ m("svg", {
@@ -111,28 +116,34 @@ function g({ ref: g, className: _, ...v }) {
111
116
  role: "grid",
112
117
  "aria-label": P,
113
118
  id: `${y.baseId}-grid`,
119
+ "data-slot": "grid",
114
120
  onKeyDown: I,
115
121
  children: [/* @__PURE__ */ m("div", {
116
122
  role: "row",
117
123
  "aria-hidden": "true",
118
124
  className: "grid grid-cols-7 mb-(--space-1)",
125
+ "data-slot": "weekday-row",
119
126
  children: M.map((e) => /* @__PURE__ */ m("abbr", {
120
127
  title: e.long,
121
128
  className: "flex items-center justify-center text-xs text-(--nuka-text-muted) no-underline py-(--space-1)",
129
+ "data-slot": "weekday",
122
130
  children: e.short
123
131
  }, e.short))
124
132
  }), N.map((t, n) => /* @__PURE__ */ m("div", {
125
133
  role: "row",
126
134
  className: "grid grid-cols-7",
135
+ "data-slot": "week-row",
127
136
  children: t.map((t, n) => {
128
137
  if (t === null) return /* @__PURE__ */ m("div", {
129
138
  role: "gridcell",
130
139
  "aria-hidden": "true",
140
+ "data-slot": "day-cell",
131
141
  children: /* @__PURE__ */ m("span", { className: "block size-9" })
132
142
  }, `empty-${String(n)}`);
133
143
  let r = new Date(x, C, t), i = c(r, y.min, y.max), a = y.selectedDate !== void 0 && l(r, y.selectedDate), o = l(r, y.focusedDate), s = l(r, R), u = A.format(r);
134
144
  return /* @__PURE__ */ m("div", {
135
145
  role: "gridcell",
146
+ "data-slot": "day-cell",
136
147
  children: /* @__PURE__ */ m("button", {
137
148
  ref: o ? k : void 0,
138
149
  type: "button",
@@ -142,6 +153,7 @@ function g({ ref: g, className: _, ...v }) {
142
153
  "aria-disabled": i || void 0,
143
154
  disabled: i,
144
155
  onClick: () => F(r),
156
+ "data-slot": "day-button",
145
157
  className: e("flex items-center justify-center size-9 rounded-(--radius-md) text-sm", "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--nuka-border-focus)", "cursor-pointer", a && "bg-(--nuka-accent-bg) text-(--nuka-accent-fg)", !a && !i && "hover:bg-(--nuka-bg-muted)", s && !a && "ring-1 ring-(--nuka-border-strong)", i && "opacity-50 cursor-default"),
146
158
  children: t
147
159
  })
@@ -1 +1 @@
1
- {"version":3,"file":"DatePickerCalendar.js","names":[],"sources":["../../../src/components/DatePicker/DatePickerCalendar.tsx"],"sourcesContent":["\"use client\";\n// Exceeds 200 lines: calendar grid JSX is inseparable from the hooks that feed it.\n// Hook calls, Intl formatters, memos, and selectDay/navigateToDate callbacks all\n// close over the same display state and cannot be moved to a sibling file.\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { composeRefs } from \"@nuka/utils/slot\";\nimport { Portal } from \"@nuka/utils/portal\";\nimport { Button } from \"@nuka/components/Button\";\nimport { Icon } from \"@nuka/components/Icon\";\nimport { Text } from \"@nuka/components/Text\";\nimport { useDatePickerContext } from \"@nuka/components/DatePicker/DatePicker.context\";\nimport {\n isSameDay,\n isDateDisabled,\n buildMonthGrid,\n} from \"@nuka/components/DatePicker/DatePicker.utils\";\nimport {\n useCalendarNavigation,\n useCalendarFocus,\n useCalendarKeyboard,\n} from \"@nuka/components/DatePicker/DatePicker.hooks\";\n\nexport interface DatePickerCalendarProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n}\n\nfunction DatePickerCalendar({\n ref,\n className,\n ...props\n}: DatePickerCalendarProps) {\n const ctx = useDatePickerContext();\n const contentRef = React.useRef<HTMLDivElement>(null);\n const composedRef = composeRefs(\n ref,\n contentRef,\n ctx.refs.setFloating as React.Ref<HTMLDivElement>,\n );\n\n const {\n displayedYear,\n setDisplayedYear,\n displayedMonth,\n setDisplayedMonth,\n canGoPrev,\n canGoNext,\n goToPrevMonth,\n goToNextMonth,\n } = useCalendarNavigation(ctx);\n\n const { focusedDayRef } = useCalendarFocus(\n ctx,\n displayedYear,\n displayedMonth,\n );\n\n const labelFormatter = React.useMemo(\n () =>\n new Intl.DateTimeFormat(ctx.locale, {\n weekday: \"long\",\n year: \"numeric\",\n month: \"long\",\n day: \"numeric\",\n }),\n [ctx.locale],\n );\n\n const headerFormatter = React.useMemo(\n () =>\n new Intl.DateTimeFormat(ctx.locale, {\n month: \"long\",\n year: \"numeric\",\n }),\n [ctx.locale],\n );\n\n const weekdayLabels = React.useMemo(() => {\n const shortFmt = new Intl.DateTimeFormat(ctx.locale, { weekday: \"short\" });\n const longFmt = new Intl.DateTimeFormat(ctx.locale, { weekday: \"long\" });\n return Array.from({ length: 7 }, (_, i) => {\n const date = new Date(2026, 0, 5 + i);\n return {\n short: shortFmt.format(date),\n long: longFmt.format(date),\n };\n });\n }, [ctx.locale]);\n\n const weeks = React.useMemo(\n () => buildMonthGrid(displayedYear, displayedMonth),\n [displayedYear, displayedMonth],\n );\n\n const headerLabel = React.useMemo(\n () => headerFormatter.format(new Date(displayedYear, displayedMonth, 1)),\n [displayedYear, displayedMonth, headerFormatter],\n );\n\n const selectDay = React.useCallback(\n (date: Date) => {\n if (isDateDisabled(date, ctx.min, ctx.max)) return;\n ctx.onSelectedDateChange(date);\n ctx.onOpenChange(false);\n requestAnimationFrame(() => {\n ctx.triggerButtonRef.current?.focus();\n });\n },\n [ctx],\n );\n\n const navigateToDate = React.useCallback(\n (candidate: Date, stepFn: (d: Date) => Date) => {\n let current = candidate;\n let attempts = 0;\n while (isDateDisabled(current, ctx.min, ctx.max) && attempts < 366) {\n current = stepFn(current);\n attempts++;\n }\n if (isDateDisabled(current, ctx.min, ctx.max)) return;\n\n ctx.setFocusedDate(current);\n if (\n current.getMonth() !== displayedMonth ||\n current.getFullYear() !== displayedYear\n ) {\n setDisplayedYear(current.getFullYear());\n setDisplayedMonth(current.getMonth());\n }\n },\n [ctx, displayedMonth, displayedYear, setDisplayedYear, setDisplayedMonth],\n );\n\n const { handleKeyDown } = useCalendarKeyboard(ctx, navigateToDate, selectDay);\n\n if (!ctx.open) return null;\n\n const floatingProps = ctx.getFloatingProps(props);\n const today = new Date();\n\n return (\n <Portal>\n <div\n ref={composedRef}\n style={ctx.floatingStyles}\n role=\"dialog\"\n aria-label=\"Date picker\"\n {...(floatingProps as React.HTMLAttributes<HTMLDivElement>)}\n className={cn(\n \"z-(--nuka-z-dropdown) rounded-(--radius-md) border border-(--nuka-border-base)\",\n \"bg-(--nuka-bg-base) shadow-md p-(--space-3)\",\n \"focus-visible:outline-none\",\n className,\n )}\n >\n <div className=\"flex items-center justify-between mb-(--space-2)\">\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={goToPrevMonth}\n disabled={!canGoPrev}\n aria-label=\"Previous month\"\n >\n <Icon size=\"sm\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"15 18 9 12 15 6\" />\n </svg>\n </Icon>\n </Button>\n <Text as=\"span\" size=\"sm\" weight=\"medium\">\n {headerLabel}\n </Text>\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={goToNextMonth}\n disabled={!canGoNext}\n aria-label=\"Next month\"\n >\n <Icon size=\"sm\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"9 18 15 12 9 6\" />\n </svg>\n </Icon>\n </Button>\n </div>\n\n <div\n role=\"grid\"\n aria-label={headerLabel}\n id={`${ctx.baseId}-grid`}\n onKeyDown={handleKeyDown}\n >\n <div\n role=\"row\"\n aria-hidden=\"true\"\n className=\"grid grid-cols-7 mb-(--space-1)\"\n >\n {weekdayLabels.map((day) => (\n <abbr\n key={day.short}\n title={day.long}\n className=\"flex items-center justify-center text-xs text-(--nuka-text-muted) no-underline py-(--space-1)\"\n >\n {day.short}\n </abbr>\n ))}\n </div>\n\n {weeks.map((week, weekIndex) => (\n <div role=\"row\" key={weekIndex} className=\"grid grid-cols-7\">\n {week.map((day, dayIndex) => {\n if (day === null) {\n return (\n <div\n role=\"gridcell\"\n key={`empty-${String(dayIndex)}`}\n aria-hidden=\"true\"\n >\n <span className=\"block size-9\" />\n </div>\n );\n }\n\n const date = new Date(displayedYear, displayedMonth, day);\n const disabled = isDateDisabled(date, ctx.min, ctx.max);\n const isSelected =\n ctx.selectedDate !== undefined &&\n isSameDay(date, ctx.selectedDate);\n const isFocused = isSameDay(date, ctx.focusedDate);\n const isToday = isSameDay(date, today);\n const dayLabel = labelFormatter.format(date);\n\n return (\n <div role=\"gridcell\" key={day}>\n <button\n ref={isFocused ? focusedDayRef : undefined}\n type=\"button\"\n tabIndex={isFocused ? 0 : -1}\n aria-label={dayLabel}\n aria-selected={isSelected}\n aria-disabled={disabled || undefined}\n disabled={disabled}\n onClick={() => selectDay(date)}\n className={cn(\n \"flex items-center justify-center size-9 rounded-(--radius-md) text-sm\",\n \"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--nuka-border-focus)\",\n \"cursor-pointer\",\n isSelected &&\n \"bg-(--nuka-accent-bg) text-(--nuka-accent-fg)\",\n !isSelected &&\n !disabled &&\n \"hover:bg-(--nuka-bg-muted)\",\n isToday &&\n !isSelected &&\n \"ring-1 ring-(--nuka-border-strong)\",\n disabled && \"opacity-50 cursor-default\",\n )}\n >\n {day}\n </button>\n </div>\n );\n })}\n </div>\n ))}\n </div>\n </div>\n </Portal>\n );\n}\n\nDatePickerCalendar.displayName = \"DatePickerCalendar\";\n\nexport { DatePickerCalendar };\n"],"mappings":";;;;;;;;;;;;;AA2BA,SAAS,EAAmB,EAC1B,QACA,cACA,GAAG,KACuB;CAC1B,IAAM,IAAM,GAAsB,EAE5B,IAAc,EAClB,GAFiB,EAAM,OAAuB,KAAK,EAInD,EAAI,KAAK,YACV,EAEK,EACJ,kBACA,qBACA,mBACA,sBACA,cACA,cACA,kBACA,qBACE,EAAsB,EAAI,EAExB,EAAE,qBAAkB,EACxB,GACA,GACA,EACD,EAEK,IAAiB,EAAM,cAEzB,IAAI,KAAK,eAAe,EAAI,QAAQ;EAClC,SAAS;EACT,MAAM;EACN,OAAO;EACP,KAAK;EACN,CAAC,EACJ,CAAC,EAAI,OAAO,CACb,EAEK,IAAkB,EAAM,cAE1B,IAAI,KAAK,eAAe,EAAI,QAAQ;EAClC,OAAO;EACP,MAAM;EACP,CAAC,EACJ,CAAC,EAAI,OAAO,CACb,EAEK,IAAgB,EAAM,cAAc;EACxC,IAAM,IAAW,IAAI,KAAK,eAAe,EAAI,QAAQ,EAAE,SAAS,SAAS,CAAC,EACpE,IAAU,IAAI,KAAK,eAAe,EAAI,QAAQ,EAAE,SAAS,QAAQ,CAAC;AACxE,SAAO,MAAM,KAAK,EAAE,QAAQ,GAAG,GAAG,GAAG,MAAM;GAC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,IAAM,IAAO,IAAI,KAAK,GAAe,GAAgB,EAAI,EACnD,IAAW,EAAe,GAAM,EAAI,KAAK,EAAI,IAAI,EACjD,IACJ,EAAI,iBAAiB,KAAA,KACrB,EAAU,GAAM,EAAI,aAAa,EAC7B,IAAY,EAAU,GAAM,EAAI,YAAY,EAC5C,IAAU,EAAU,GAAM,EAAM,EAChC,IAAW,EAAe,OAAO,EAAK;AAE5C,YACE,kBAAC,OAAD;MAAK,MAAK;gBACR,kBAAC,UAAD;OACE,KAAK,IAAY,IAAgB,KAAA;OACjC,MAAK;OACL,UAAU,IAAY,IAAI;OAC1B,cAAY;OACZ,iBAAe;OACf,iBAAe,KAAY,KAAA;OACjB;OACV,eAAe,EAAU,EAAK;OAC9B,WAAW,EACT,yEACA,sGACA,kBACA,KACE,iDACF,CAAC,KACC,CAAC,KACD,8BACF,KACE,CAAC,KACD,sCACF,KAAY,4BACb;iBAEA;OACM,CAAA;MACL,EA3BoB,EA2BpB;MAER;IACE,EAtDe,EAsDf,CACN,CACE;KACF;KACC,CAAA;;AAIb,EAAmB,cAAc"}
1
+ {"version":3,"file":"DatePickerCalendar.js","names":[],"sources":["../../../src/components/DatePicker/DatePickerCalendar.tsx"],"sourcesContent":["\"use client\";\n// Exceeds 200 lines: calendar grid JSX is inseparable from the hooks that feed it.\n// Hook calls, Intl formatters, memos, and selectDay/navigateToDate callbacks all\n// close over the same display state and cannot be moved to a sibling file.\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { composeRefs } from \"@nuka/utils/slot\";\nimport { Portal } from \"@nuka/utils/portal\";\nimport { Button } from \"@nuka/components/Button\";\nimport { Icon } from \"@nuka/components/Icon\";\nimport { Text } from \"@nuka/components/Text\";\nimport { useDatePickerContext } from \"@nuka/components/DatePicker/DatePicker.context\";\nimport {\n isSameDay,\n isDateDisabled,\n buildMonthGrid,\n} from \"@nuka/components/DatePicker/DatePicker.utils\";\nimport {\n useCalendarNavigation,\n useCalendarFocus,\n useCalendarKeyboard,\n} from \"@nuka/components/DatePicker/DatePicker.hooks\";\n\nexport interface DatePickerCalendarProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n}\n\nfunction DatePickerCalendar({\n ref,\n className,\n ...props\n}: DatePickerCalendarProps) {\n const ctx = useDatePickerContext();\n const contentRef = React.useRef<HTMLDivElement>(null);\n const composedRef = composeRefs(\n ref,\n contentRef,\n ctx.refs.setFloating as React.Ref<HTMLDivElement>,\n );\n\n const {\n displayedYear,\n setDisplayedYear,\n displayedMonth,\n setDisplayedMonth,\n canGoPrev,\n canGoNext,\n goToPrevMonth,\n goToNextMonth,\n } = useCalendarNavigation(ctx);\n\n const { focusedDayRef } = useCalendarFocus(\n ctx,\n displayedYear,\n displayedMonth,\n );\n\n const labelFormatter = React.useMemo(\n () =>\n new Intl.DateTimeFormat(ctx.locale, {\n weekday: \"long\",\n year: \"numeric\",\n month: \"long\",\n day: \"numeric\",\n }),\n [ctx.locale],\n );\n\n const headerFormatter = React.useMemo(\n () =>\n new Intl.DateTimeFormat(ctx.locale, {\n month: \"long\",\n year: \"numeric\",\n }),\n [ctx.locale],\n );\n\n const weekdayLabels = React.useMemo(() => {\n const shortFmt = new Intl.DateTimeFormat(ctx.locale, { weekday: \"short\" });\n const longFmt = new Intl.DateTimeFormat(ctx.locale, { weekday: \"long\" });\n return Array.from({ length: 7 }, (_, i) => {\n const date = new Date(2026, 0, 5 + i);\n return {\n short: shortFmt.format(date),\n long: longFmt.format(date),\n };\n });\n }, [ctx.locale]);\n\n const weeks = React.useMemo(\n () => buildMonthGrid(displayedYear, displayedMonth),\n [displayedYear, displayedMonth],\n );\n\n const headerLabel = React.useMemo(\n () => headerFormatter.format(new Date(displayedYear, displayedMonth, 1)),\n [displayedYear, displayedMonth, headerFormatter],\n );\n\n const selectDay = React.useCallback(\n (date: Date) => {\n if (isDateDisabled(date, ctx.min, ctx.max)) return;\n ctx.onSelectedDateChange(date);\n ctx.onOpenChange(false);\n requestAnimationFrame(() => {\n ctx.triggerButtonRef.current?.focus();\n });\n },\n [ctx],\n );\n\n const navigateToDate = React.useCallback(\n (candidate: Date, stepFn: (d: Date) => Date) => {\n let current = candidate;\n let attempts = 0;\n while (isDateDisabled(current, ctx.min, ctx.max) && attempts < 366) {\n current = stepFn(current);\n attempts++;\n }\n if (isDateDisabled(current, ctx.min, ctx.max)) return;\n\n ctx.setFocusedDate(current);\n if (\n current.getMonth() !== displayedMonth ||\n current.getFullYear() !== displayedYear\n ) {\n setDisplayedYear(current.getFullYear());\n setDisplayedMonth(current.getMonth());\n }\n },\n [ctx, displayedMonth, displayedYear, setDisplayedYear, setDisplayedMonth],\n );\n\n const { handleKeyDown } = useCalendarKeyboard(ctx, navigateToDate, selectDay);\n\n if (!ctx.open) return null;\n\n const floatingProps = ctx.getFloatingProps(props);\n const today = new Date();\n\n return (\n <Portal>\n <div\n ref={composedRef}\n style={ctx.floatingStyles}\n role=\"dialog\"\n aria-label=\"Date picker\"\n data-slot=\"calendar\"\n {...(floatingProps as React.HTMLAttributes<HTMLDivElement>)}\n className={cn(\n \"z-(--nuka-z-dropdown) rounded-(--radius-md) border border-(--nuka-border-base)\",\n \"bg-(--nuka-bg-base) shadow-md p-(--space-3)\",\n \"focus-visible:outline-none\",\n className,\n )}\n >\n <div\n className=\"flex items-center justify-between mb-(--space-2)\"\n data-slot=\"calendar-header\"\n >\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={goToPrevMonth}\n disabled={!canGoPrev}\n aria-label=\"Previous month\"\n data-slot=\"prev-button\"\n >\n <Icon size=\"sm\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"15 18 9 12 15 6\" />\n </svg>\n </Icon>\n </Button>\n <Text\n as=\"span\"\n size=\"sm\"\n weight=\"medium\"\n data-slot=\"month-year-label\"\n >\n {headerLabel}\n </Text>\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={goToNextMonth}\n disabled={!canGoNext}\n aria-label=\"Next month\"\n data-slot=\"next-button\"\n >\n <Icon size=\"sm\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"9 18 15 12 9 6\" />\n </svg>\n </Icon>\n </Button>\n </div>\n\n <div\n role=\"grid\"\n aria-label={headerLabel}\n id={`${ctx.baseId}-grid`}\n data-slot=\"grid\"\n onKeyDown={handleKeyDown}\n >\n <div\n role=\"row\"\n aria-hidden=\"true\"\n className=\"grid grid-cols-7 mb-(--space-1)\"\n data-slot=\"weekday-row\"\n >\n {weekdayLabels.map((day) => (\n <abbr\n key={day.short}\n title={day.long}\n className=\"flex items-center justify-center text-xs text-(--nuka-text-muted) no-underline py-(--space-1)\"\n data-slot=\"weekday\"\n >\n {day.short}\n </abbr>\n ))}\n </div>\n\n {weeks.map((week, weekIndex) => (\n <div\n role=\"row\"\n key={weekIndex}\n className=\"grid grid-cols-7\"\n data-slot=\"week-row\"\n >\n {week.map((day, dayIndex) => {\n if (day === null) {\n return (\n <div\n role=\"gridcell\"\n key={`empty-${String(dayIndex)}`}\n aria-hidden=\"true\"\n data-slot=\"day-cell\"\n >\n <span className=\"block size-9\" />\n </div>\n );\n }\n\n const date = new Date(displayedYear, displayedMonth, day);\n const disabled = isDateDisabled(date, ctx.min, ctx.max);\n const isSelected =\n ctx.selectedDate !== undefined &&\n isSameDay(date, ctx.selectedDate);\n const isFocused = isSameDay(date, ctx.focusedDate);\n const isToday = isSameDay(date, today);\n const dayLabel = labelFormatter.format(date);\n\n return (\n <div role=\"gridcell\" key={day} data-slot=\"day-cell\">\n <button\n ref={isFocused ? focusedDayRef : undefined}\n type=\"button\"\n tabIndex={isFocused ? 0 : -1}\n aria-label={dayLabel}\n aria-selected={isSelected}\n aria-disabled={disabled || undefined}\n disabled={disabled}\n onClick={() => selectDay(date)}\n data-slot=\"day-button\"\n className={cn(\n \"flex items-center justify-center size-9 rounded-(--radius-md) text-sm\",\n \"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--nuka-border-focus)\",\n \"cursor-pointer\",\n isSelected &&\n \"bg-(--nuka-accent-bg) text-(--nuka-accent-fg)\",\n !isSelected &&\n !disabled &&\n \"hover:bg-(--nuka-bg-muted)\",\n isToday &&\n !isSelected &&\n \"ring-1 ring-(--nuka-border-strong)\",\n disabled && \"opacity-50 cursor-default\",\n )}\n >\n {day}\n </button>\n </div>\n );\n })}\n </div>\n ))}\n </div>\n </div>\n </Portal>\n );\n}\n\nDatePickerCalendar.displayName = \"DatePickerCalendar\";\n\nexport { DatePickerCalendar };\n"],"mappings":";;;;;;;;;;;;;AA2BA,SAAS,EAAmB,EAC1B,QACA,cACA,GAAG,KACuB;CAC1B,IAAM,IAAM,GAAsB,EAE5B,IAAc,EAClB,GAFiB,EAAM,OAAuB,KAAK,EAInD,EAAI,KAAK,YACV,EAEK,EACJ,kBACA,qBACA,mBACA,sBACA,cACA,cACA,kBACA,qBACE,EAAsB,EAAI,EAExB,EAAE,qBAAkB,EACxB,GACA,GACA,EACD,EAEK,IAAiB,EAAM,cAEzB,IAAI,KAAK,eAAe,EAAI,QAAQ;EAClC,SAAS;EACT,MAAM;EACN,OAAO;EACP,KAAK;EACN,CAAC,EACJ,CAAC,EAAI,OAAO,CACb,EAEK,IAAkB,EAAM,cAE1B,IAAI,KAAK,eAAe,EAAI,QAAQ;EAClC,OAAO;EACP,MAAM;EACP,CAAC,EACJ,CAAC,EAAI,OAAO,CACb,EAEK,IAAgB,EAAM,cAAc;EACxC,IAAM,IAAW,IAAI,KAAK,eAAe,EAAI,QAAQ,EAAE,SAAS,SAAS,CAAC,EACpE,IAAU,IAAI,KAAK,eAAe,EAA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;cAET,EAAK,KAAK,GAAK,MAAa;AAC3B,SAAI,MAAQ,KACV,QACE,kBAAC,OAAD;MACE,MAAK;MAEL,eAAY;MACZ,aAAU;gBAEV,kBAAC,QAAD,EAAM,WAAU,gBAAiB,CAAA;MAC7B,EALC,SAAS,OAAO,EAAS,GAK1B;KAIV,IAAM,IAAO,IAAI,KAAK,GAAe,GAAgB,EAAI,EACnD,IAAW,EAAe,GAAM,EAAI,KAAK,EAAI,IAAI,EACjD,IACJ,EAAI,iBAAiB,KAAA,KACrB,EAAU,GAAM,EAAI,aAAa,EAC7B,IAAY,EAAU,GAAM,EAAI,YAAY,EAC5C,IAAU,EAAU,GAAM,EAAM,EAChC,IAAW,EAAe,OAAO,EAAK;AAE5C,YACE,kBAAC,OAAD;MAAK,MAAK;MAAqB,aAAU;gBACvC,kBAAC,UAAD;OACE,KAAK,IAAY,IAAgB,KAAA;OACjC,MAAK;OACL,UAAU,IAAY,IAAI;OAC1B,cAAY;OACZ,iBAAe;OACf,iBAAe,KAAY,KAAA;OACjB;OACV,eAAe,EAAU,EAAK;OAC9B,aAAU;OACV,WAAW,EACT,yEACA,sGACA,kBACA,KACE,iDACF,CAAC,KACC,CAAC,KACD,8BACF,KACE,CAAC,KACD,sCACF,KAAY,4BACb;iBAEA;OACM,CAAA;MACL,EA5BoB,EA4BpB;MAER;IACE,EA3DC,EA2DD,CACN,CACE;KACF;KACC,CAAA;;AAIb,EAAmB,cAAc"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../../utils/slot.cjs`),r=require(`../Icon/Icon.cjs`),i=require(`../../hooks/use-form-field-props.cjs`),a=require(`../Input/Input.cjs`),o=require(`./DatePicker.context.cjs`),s=require(`./DatePicker.utils.cjs`);let c=require(`react`);c=e.__toESM(c,1);let l=require(`react/jsx-runtime`);function u({ref:e,className:u,placeholder:d=`YYYY-MM-DD`,size:f,id:p,"aria-invalid":m,"aria-describedby":h,"aria-required":g,..._}){let v=o.useDatePickerContext(),y=n.composeRefs(e,c.useCallback(e=>{e&&v.refs.setPositionReference(e)},[v.refs])),b=i.useFormFieldProps({id:p,"aria-invalid":m,"aria-describedby":h,"aria-required":g}),{selectedDate:x,open:S,formatDate:C}=v,[w,T]=c.useState(x===void 0?``:C(x));c.useEffect(()=>{S||T(x===void 0?``:C(x))},[x,S,C]);let E=b.ariaInvalid??void 0,D=c.useCallback(()=>{!v.disabled&&!v.open&&(v.focusCalendarOnOpen.current=!1,v.onOpenChange(!0))},[v]),O=c.useCallback(()=>{let e=v.parseDate(w);e!==null&&!s.isDateDisabled(e,v.min,v.max)?v.onSelectedDateChange(e):T(v.selectedDate===void 0?``:v.formatDate(v.selectedDate))},[w,v]),k=c.useCallback(e=>{e.key===`Enter`?(e.preventDefault(),O()):e.key===`Escape`?v.open?(e.preventDefault(),v.onOpenChange(!1)):T(v.selectedDate===void 0?``:v.formatDate(v.selectedDate)):e.key===`Tab`&&v.open&&v.onOpenChange(!1)},[O,v]),A=c.useCallback(e=>{let t=e.relatedTarget;t&&v.refs.floating.current?.contains(t)||O()},[O,v.refs.floating]),j=c.useCallback(()=>{v.disabled||(v.focusCalendarOnOpen.current=!v.open,v.onOpenChange(!v.open))},[v]),M=v.getReferenceProps({});return(0,l.jsxs)(`div`,{ref:y,className:t.cn(`relative inline-flex w-full items-center`,u),..._,children:[(0,l.jsx)(a.Input,{type:`text`,value:w,onChange:e=>T(e.target.value),onClick:D,onKeyDown:k,onBlur:A,placeholder:d,size:f,id:b.resolvedId,disabled:v.disabled||b.resolvedDisabled,"aria-invalid":E,"aria-describedby":b.ariaDescribedBy,"aria-required":b.ariaRequired,className:`pr-(--space-10)`,autoComplete:`off`}),(0,l.jsx)(`button`,{ref:n.composeRefs(v.triggerButtonRef,v.refs.setReference),type:`button`,...M,onClick:j,disabled:v.disabled,"aria-label":`Open calendar`,className:t.cn(`absolute right-0 top-0 bottom-0 flex items-center justify-center`,`px-(--space-3) text-(--nuka-text-muted) hover:text-(--nuka-text-base)`,`disabled:pointer-events-none disabled:opacity-50`,`cursor-pointer`),children:(0,l.jsx)(r.Icon,{size:`sm`,children:(0,l.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,l.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`18`,rx:`2`,ry:`2`}),(0,l.jsx)(`line`,{x1:`16`,y1:`2`,x2:`16`,y2:`6`}),(0,l.jsx)(`line`,{x1:`8`,y1:`2`,x2:`8`,y2:`6`}),(0,l.jsx)(`line`,{x1:`3`,y1:`10`,x2:`21`,y2:`10`})]})})})]})}u.displayName=`DatePickerInput`,exports.DatePickerInput=u;
1
+ "use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../../utils/slot.cjs`),r=require(`../Icon/Icon.cjs`),i=require(`../../hooks/use-form-field-props.cjs`),a=require(`../Input/Input.cjs`),o=require(`./DatePicker.context.cjs`),s=require(`./DatePicker.utils.cjs`);let c=require(`react`);c=e.__toESM(c,1);let l=require(`react/jsx-runtime`);function u({ref:e,className:u,placeholder:d=`YYYY-MM-DD`,size:f,id:p,"aria-invalid":m,"aria-describedby":h,"aria-required":g,..._}){let v=o.useDatePickerContext(),y=n.composeRefs(e,c.useCallback(e=>{e&&v.refs.setPositionReference(e)},[v.refs])),b=i.useFormFieldProps({id:p,"aria-invalid":m,"aria-describedby":h,"aria-required":g}),{selectedDate:x,open:S,formatDate:C}=v,[w,T]=c.useState(x===void 0?``:C(x));c.useEffect(()=>{S||T(x===void 0?``:C(x))},[x,S,C]);let E=b.ariaInvalid??void 0,D=c.useCallback(()=>{!v.disabled&&!v.open&&(v.focusCalendarOnOpen.current=!1,v.onOpenChange(!0))},[v]),O=c.useCallback(()=>{let e=v.parseDate(w);e!==null&&!s.isDateDisabled(e,v.min,v.max)?v.onSelectedDateChange(e):T(v.selectedDate===void 0?``:v.formatDate(v.selectedDate))},[w,v]),k=c.useCallback(e=>{e.key===`Enter`?(e.preventDefault(),O()):e.key===`Escape`?v.open?(e.preventDefault(),v.onOpenChange(!1)):T(v.selectedDate===void 0?``:v.formatDate(v.selectedDate)):e.key===`Tab`&&v.open&&v.onOpenChange(!1)},[O,v]),A=c.useCallback(e=>{let t=e.relatedTarget;t&&v.refs.floating.current?.contains(t)||O()},[O,v.refs.floating]),j=c.useCallback(()=>{v.disabled||(v.focusCalendarOnOpen.current=!v.open,v.onOpenChange(!v.open))},[v]),M=v.getReferenceProps({});return(0,l.jsxs)(`div`,{ref:y,className:t.cn(`relative inline-flex w-full items-center`,u),"data-slot":`input-root`,..._,children:[(0,l.jsx)(a.Input,{type:`text`,value:w,onChange:e=>T(e.target.value),onClick:D,onKeyDown:k,onBlur:A,placeholder:d,size:f,id:b.resolvedId,disabled:v.disabled||b.resolvedDisabled,"aria-invalid":E,"aria-describedby":b.ariaDescribedBy,"aria-required":b.ariaRequired,className:`pr-(--space-10)`,autoComplete:`off`,"data-slot":`input`}),(0,l.jsx)(`button`,{ref:n.composeRefs(v.triggerButtonRef,v.refs.setReference),type:`button`,...M,onClick:j,disabled:v.disabled,"aria-label":`Open calendar`,"data-slot":`toggle`,className:t.cn(`absolute right-0 top-0 bottom-0 flex items-center justify-center`,`px-(--space-3) text-(--nuka-text-muted) hover:text-(--nuka-text-base)`,`disabled:pointer-events-none disabled:opacity-50`,`cursor-pointer`),children:(0,l.jsx)(r.Icon,{size:`sm`,children:(0,l.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,l.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`18`,rx:`2`,ry:`2`}),(0,l.jsx)(`line`,{x1:`16`,y1:`2`,x2:`16`,y2:`6`}),(0,l.jsx)(`line`,{x1:`8`,y1:`2`,x2:`8`,y2:`6`}),(0,l.jsx)(`line`,{x1:`3`,y1:`10`,x2:`21`,y2:`10`})]})})})]})}u.displayName=`DatePickerInput`,exports.DatePickerInput=u;
2
2
  //# sourceMappingURL=DatePickerInput.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatePickerInput.cjs","names":[],"sources":["../../../src/components/DatePicker/DatePickerInput.tsx"],"sourcesContent":["\"use client\";\n// Exceeds 200 lines: single forwardRef component with input handling, blur/keydown/click\n// callbacks, form field integration, and calendar toggle. Cannot split without violating\n// single-component-per-file.\nimport * as React from \"react\";\nimport { useFormFieldProps } from \"@nuka/hooks/use-form-field-props\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { composeRefs } from \"@nuka/utils/slot\";\nimport { Input } from \"@nuka/components/Input\";\nimport { Icon } from \"@nuka/components/Icon\";\nimport { useDatePickerContext } from \"@nuka/components/DatePicker/DatePicker.context\";\nimport { isDateDisabled } from \"@nuka/components/DatePicker/DatePicker.utils\";\n\nexport interface DatePickerInputProps extends Omit<\n React.HTMLAttributes<HTMLDivElement>,\n \"id\"\n> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n placeholder?: string;\n size?: \"sm\" | \"md\" | \"lg\";\n id?: string;\n \"aria-invalid\"?: React.AriaAttributes[\"aria-invalid\"];\n \"aria-describedby\"?: string;\n \"aria-required\"?: React.AriaAttributes[\"aria-required\"];\n}\n\nfunction DatePickerInput({\n ref,\n className,\n placeholder = \"YYYY-MM-DD\",\n size,\n id,\n \"aria-invalid\": ariaInvalidProp,\n \"aria-describedby\": ariaDescribedByProp,\n \"aria-required\": ariaRequiredProp,\n ...props\n}: DatePickerInputProps) {\n const ctx = useDatePickerContext();\n const setPositionRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n if (node) {\n ctx.refs.setPositionReference(node);\n }\n },\n [ctx.refs],\n );\n const composedRef = composeRefs(ref, setPositionRef);\n\n const field = useFormFieldProps({\n id,\n \"aria-invalid\": ariaInvalidProp,\n \"aria-describedby\": ariaDescribedByProp,\n \"aria-required\": ariaRequiredProp,\n });\n\n const { selectedDate, open, formatDate: ctxFormatDate } = ctx;\n\n const [inputText, setInputText] = React.useState(\n selectedDate !== undefined ? ctxFormatDate(selectedDate) : \"\",\n );\n\n React.useEffect(() => {\n if (!open) {\n setInputText(\n selectedDate !== undefined ? ctxFormatDate(selectedDate) : \"\",\n );\n }\n }, [selectedDate, open, ctxFormatDate]);\n\n const ariaInvalid = field.ariaInvalid ?? undefined;\n\n const handleInputClick = React.useCallback(() => {\n if (!ctx.disabled && !ctx.open) {\n ctx.focusCalendarOnOpen.current = false;\n ctx.onOpenChange(true);\n }\n }, [ctx]);\n\n const commitValue = React.useCallback(() => {\n const parsed = ctx.parseDate(inputText);\n if (parsed !== null && !isDateDisabled(parsed, ctx.min, ctx.max)) {\n ctx.onSelectedDateChange(parsed);\n } else {\n setInputText(\n ctx.selectedDate !== undefined ? ctx.formatDate(ctx.selectedDate) : \"\",\n );\n }\n }, [inputText, ctx]);\n\n const handleInputKeyDown = React.useCallback(\n (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === \"Enter\") {\n e.preventDefault();\n commitValue();\n } else if (e.key === \"Escape\") {\n if (ctx.open) {\n e.preventDefault();\n ctx.onOpenChange(false);\n } else {\n setInputText(\n ctx.selectedDate !== undefined\n ? ctx.formatDate(ctx.selectedDate)\n : \"\",\n );\n }\n } else if (e.key === \"Tab\") {\n if (ctx.open) {\n ctx.onOpenChange(false);\n }\n }\n },\n [commitValue, ctx],\n );\n\n const handleInputBlur = React.useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n const relatedTarget = e.relatedTarget as Node | null;\n if (relatedTarget && ctx.refs.floating.current?.contains(relatedTarget)) {\n return;\n }\n commitValue();\n },\n [commitValue, ctx.refs.floating],\n );\n\n const handleToggle = React.useCallback(() => {\n if (!ctx.disabled) {\n ctx.focusCalendarOnOpen.current = !ctx.open;\n ctx.onOpenChange(!ctx.open);\n }\n }, [ctx]);\n\n const referenceProps = ctx.getReferenceProps({});\n\n return (\n <div\n ref={composedRef}\n className={cn(\"relative inline-flex w-full items-center\", className)}\n {...props}\n >\n <Input\n type=\"text\"\n value={inputText}\n onChange={(e) => setInputText(e.target.value)}\n onClick={handleInputClick}\n onKeyDown={handleInputKeyDown}\n onBlur={handleInputBlur}\n placeholder={placeholder}\n size={size}\n id={field.resolvedId}\n disabled={ctx.disabled || field.resolvedDisabled}\n aria-invalid={ariaInvalid}\n aria-describedby={field.ariaDescribedBy}\n aria-required={field.ariaRequired}\n className=\"pr-(--space-10)\"\n autoComplete=\"off\"\n />\n <button\n ref={composeRefs(\n ctx.triggerButtonRef,\n ctx.refs.setReference as React.Ref<HTMLButtonElement>,\n )}\n type=\"button\"\n {...(referenceProps as React.ButtonHTMLAttributes<HTMLButtonElement>)}\n onClick={handleToggle}\n disabled={ctx.disabled}\n aria-label=\"Open calendar\"\n className={cn(\n \"absolute right-0 top-0 bottom-0 flex items-center justify-center\",\n \"px-(--space-3) text-(--nuka-text-muted) hover:text-(--nuka-text-base)\",\n \"disabled:pointer-events-none disabled:opacity-50\",\n \"cursor-pointer\",\n )}\n >\n <Icon size=\"sm\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\" />\n <line x1=\"16\" y1=\"2\" x2=\"16\" y2=\"6\" />\n <line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"6\" />\n <line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\" />\n </svg>\n </Icon>\n </button>\n </div>\n );\n}\n\nDatePickerInput.displayName = \"DatePickerInput\";\n\nexport { DatePickerInput };\n"],"mappings":"4YA0BA,SAAS,EAAgB,CACvB,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KAAK,OAAO,KAAK,GAAG,IAAI,GAAG,IAAM,CAAA,EACzD,EAAA,EAAA,KAAC,OAAD,CAAM,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,GAAG,IAAM,CAAA,EACtC,EAAA,EAAA,KAAC,OAAD,CAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAM,CAAA,EACpC,EAAA,EAAA,KAAC,OAAD,CAAM,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAO,CAAA,CACnC,GACD,CAAA,CACA,CAAA,CACL,GAIV,EAAgB,YAAc"}
1
+ {"version":3,"file":"DatePickerInput.cjs","names":[],"sources":["../../../src/components/DatePicker/DatePickerInput.tsx"],"sourcesContent":["\"use client\";\n// Exceeds 200 lines: single forwardRef component with input handling, blur/keydown/click\n// callbacks, form field integration, and calendar toggle. Cannot split without violating\n// single-component-per-file.\nimport * as React from \"react\";\nimport { useFormFieldProps } from \"@nuka/hooks/use-form-field-props\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { composeRefs } from \"@nuka/utils/slot\";\nimport { Input } from \"@nuka/components/Input\";\nimport { Icon } from \"@nuka/components/Icon\";\nimport { useDatePickerContext } from \"@nuka/components/DatePicker/DatePicker.context\";\nimport { isDateDisabled } from \"@nuka/components/DatePicker/DatePicker.utils\";\n\nexport interface DatePickerInputProps extends Omit<\n React.HTMLAttributes<HTMLDivElement>,\n \"id\"\n> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n placeholder?: string;\n size?: \"sm\" | \"md\" | \"lg\";\n id?: string;\n \"aria-invalid\"?: React.AriaAttributes[\"aria-invalid\"];\n \"aria-describedby\"?: string;\n \"aria-required\"?: React.AriaAttributes[\"aria-required\"];\n}\n\nfunction DatePickerInput({\n ref,\n className,\n placeholder = \"YYYY-MM-DD\",\n size,\n id,\n \"aria-invalid\": ariaInvalidProp,\n \"aria-describedby\": ariaDescribedByProp,\n \"aria-required\": ariaRequiredProp,\n ...props\n}: DatePickerInputProps) {\n const ctx = useDatePickerContext();\n const setPositionRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n if (node) {\n ctx.refs.setPositionReference(node);\n }\n },\n [ctx.refs],\n );\n const composedRef = composeRefs(ref, setPositionRef);\n\n const field = useFormFieldProps({\n id,\n \"aria-invalid\": ariaInvalidProp,\n \"aria-describedby\": ariaDescribedByProp,\n \"aria-required\": ariaRequiredProp,\n });\n\n const { selectedDate, open, formatDate: ctxFormatDate } = ctx;\n\n const [inputText, setInputText] = React.useState(\n selectedDate !== undefined ? ctxFormatDate(selectedDate) : \"\",\n );\n\n React.useEffect(() => {\n if (!open) {\n setInputText(\n selectedDate !== undefined ? ctxFormatDate(selectedDate) : \"\",\n );\n }\n }, [selectedDate, open, ctxFormatDate]);\n\n const ariaInvalid = field.ariaInvalid ?? undefined;\n\n const handleInputClick = React.useCallback(() => {\n if (!ctx.disabled && !ctx.open) {\n ctx.focusCalendarOnOpen.current = false;\n ctx.onOpenChange(true);\n }\n }, [ctx]);\n\n const commitValue = React.useCallback(() => {\n const parsed = ctx.parseDate(inputText);\n if (parsed !== null && !isDateDisabled(parsed, ctx.min, ctx.max)) {\n ctx.onSelectedDateChange(parsed);\n } else {\n setInputText(\n ctx.selectedDate !== undefined ? ctx.formatDate(ctx.selectedDate) : \"\",\n );\n }\n }, [inputText, ctx]);\n\n const handleInputKeyDown = React.useCallback(\n (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === \"Enter\") {\n e.preventDefault();\n commitValue();\n } else if (e.key === \"Escape\") {\n if (ctx.open) {\n e.preventDefault();\n ctx.onOpenChange(false);\n } else {\n setInputText(\n ctx.selectedDate !== undefined\n ? ctx.formatDate(ctx.selectedDate)\n : \"\",\n );\n }\n } else if (e.key === \"Tab\") {\n if (ctx.open) {\n ctx.onOpenChange(false);\n }\n }\n },\n [commitValue, ctx],\n );\n\n const handleInputBlur = React.useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n const relatedTarget = e.relatedTarget as Node | null;\n if (relatedTarget && ctx.refs.floating.current?.contains(relatedTarget)) {\n return;\n }\n commitValue();\n },\n [commitValue, ctx.refs.floating],\n );\n\n const handleToggle = React.useCallback(() => {\n if (!ctx.disabled) {\n ctx.focusCalendarOnOpen.current = !ctx.open;\n ctx.onOpenChange(!ctx.open);\n }\n }, [ctx]);\n\n const referenceProps = ctx.getReferenceProps({});\n\n return (\n <div\n ref={composedRef}\n className={cn(\"relative inline-flex w-full items-center\", className)}\n data-slot=\"input-root\"\n {...props}\n >\n <Input\n type=\"text\"\n value={inputText}\n onChange={(e) => setInputText(e.target.value)}\n onClick={handleInputClick}\n onKeyDown={handleInputKeyDown}\n onBlur={handleInputBlur}\n placeholder={placeholder}\n size={size}\n id={field.resolvedId}\n disabled={ctx.disabled || field.resolvedDisabled}\n aria-invalid={ariaInvalid}\n aria-describedby={field.ariaDescribedBy}\n aria-required={field.ariaRequired}\n className=\"pr-(--space-10)\"\n autoComplete=\"off\"\n data-slot=\"input\"\n />\n <button\n ref={composeRefs(\n ctx.triggerButtonRef,\n ctx.refs.setReference as React.Ref<HTMLButtonElement>,\n )}\n type=\"button\"\n {...(referenceProps as React.ButtonHTMLAttributes<HTMLButtonElement>)}\n onClick={handleToggle}\n disabled={ctx.disabled}\n aria-label=\"Open calendar\"\n data-slot=\"toggle\"\n className={cn(\n \"absolute right-0 top-0 bottom-0 flex items-center justify-center\",\n \"px-(--space-3) text-(--nuka-text-muted) hover:text-(--nuka-text-base)\",\n \"disabled:pointer-events-none disabled:opacity-50\",\n \"cursor-pointer\",\n )}\n >\n <Icon size=\"sm\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\" />\n <line x1=\"16\" y1=\"2\" x2=\"16\" y2=\"6\" />\n <line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"6\" />\n <line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\" />\n </svg>\n </Icon>\n </button>\n </div>\n );\n}\n\nDatePickerInput.displayName = \"DatePickerInput\";\n\nexport { DatePickerInput };\n"],"mappings":"4YA0BA,SAAS,EAAgB,CACvB,MACA,YACA,cAAc,aACd,OACA,KACA,eAAgB,EAChB,mBAAoB,EACpB,gBAAiB,EACjB,GAAG,GACoB,CACvB,IAAM,EAAM,EAAA,sBAAsB,CAS5B,EAAc,EAAA,YAAY,EART,EAAM,YAC1B,GAAgC,CAC3B,GACF,EAAI,KAAK,qBAAqB,EAAK,EAGvC,CAAC,EAAI,KAAK,CACX,CACmD,CAE9C,EAAQ,EAAA,kBAAkB,CAC9B,KACA,eAAgB,EAChB,mBAAoB,EACpB,gBAAiB,EAClB,CAAC,CAEI,CAAE,eAAc,OAAM,WAAY,GAAkB,EAEpD,CAAC,EAAW,GAAgB,EAAM,SACtC,IAAiB,IAAA,GAA0C,GAA9B,EAAc,EAAa,CACzD,CAED,EAAM,cAAgB,CACf,GACH,EACE,IAAiB,IAAA,GAA0C,GAA9B,EAAc,EAAa,CACzD,EAEF,CAAC,EAAc,EAAM,EAAc,CAAC,CAEvC,IAAM,EAAc,EAAM,aAAe,IAAA,GAEnC,EAAmB,EAAM,gBAAkB,CAC3C,CAAC,EAAI,UAAY,CAAC,EAAI,OACxB,EAAI,oBAAoB,QAAU,GAClC,EAAI,aAAa,GAAK,GAEvB,CAAC,EAAI,CAAC,CAEH,EAAc,EAAM,gBAAkB,CAC1C,IAAM,EAAS,EAAI,UAAU,EAAU,CACnC,IAAW,MAAQ,CAAC,EAAA,eAAe,EAAQ,EAAI,IAAK,EAAI,IAAI,CAC9D,EAAI,qBAAqB,EAAO,CAEhC,EACE,EAAI,eAAiB,IAAA,GAA+C,GAAnC,EAAI,WAAW,EAAI,aAAa,CAClE,EAEF,CAAC,EAAW,EAAI,CAAC,CAEd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C,eAAe,CAAC,CAAC;CACzD;AAED,iBAAS,eAAe,CAAC,EACvB,GAAG,EACH,SAAS,EACT,WAA0B,EAC1B,IAAI,EACJ,EAAE,EACF,cAAc,EAAE,eAAe,EAC/B,kBAAkB,EAAE,mBAAmB,EACvC,eAAe,EAAE,gBAAgB,EACjC,GAAG,KAAK,EACT,EAAE,oBAAoB,2CA6JtB;kBAvKQ,eAAe;;;AA2KxB,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"DatePickerInput.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/DatePickerInput.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAChD,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EACpC,IAAI,CACL;IACC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;CACzD;AAED,iBAAS,eAAe,CAAC,EACvB,GAAG,EACH,SAAS,EACT,WAA0B,EAC1B,IAAI,EACJ,EAAE,EACF,cAAc,EAAE,eAAe,EAC/B,kBAAkB,EAAE,mBAAmB,EACvC,eAAe,EAAE,gBAAgB,EACjC,GAAG,KAAK,EACT,EAAE,oBAAoB,2CAgKtB;kBA1KQ,eAAe;;;AA8KxB,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -41,6 +41,7 @@ function u({ ref: u, className: d, placeholder: f = "YYYY-MM-DD", size: p, id: m
41
41
  return /* @__PURE__ */ l("div", {
42
42
  ref: b,
43
43
  className: e("relative inline-flex w-full items-center", d),
44
+ "data-slot": "input-root",
44
45
  ...v,
45
46
  children: [/* @__PURE__ */ c(i, {
46
47
  type: "text",
@@ -57,7 +58,8 @@ function u({ ref: u, className: d, placeholder: f = "YYYY-MM-DD", size: p, id: m
57
58
  "aria-describedby": x.ariaDescribedBy,
58
59
  "aria-required": x.ariaRequired,
59
60
  className: "pr-(--space-10)",
60
- autoComplete: "off"
61
+ autoComplete: "off",
62
+ "data-slot": "input"
61
63
  }), /* @__PURE__ */ c("button", {
62
64
  ref: t(y.triggerButtonRef, y.refs.setReference),
63
65
  type: "button",
@@ -65,6 +67,7 @@ function u({ ref: u, className: d, placeholder: f = "YYYY-MM-DD", size: p, id: m
65
67
  onClick: M,
66
68
  disabled: y.disabled,
67
69
  "aria-label": "Open calendar",
70
+ "data-slot": "toggle",
68
71
  className: e("absolute right-0 top-0 bottom-0 flex items-center justify-center", "px-(--space-3) text-(--nuka-text-muted) hover:text-(--nuka-text-base)", "disabled:pointer-events-none disabled:opacity-50", "cursor-pointer"),
69
72
  children: /* @__PURE__ */ c(n, {
70
73
  size: "sm",
@@ -1 +1 @@
1
- {"version":3,"file":"DatePickerInput.js","names":[],"sources":["../../../src/components/DatePicker/DatePickerInput.tsx"],"sourcesContent":["\"use client\";\n// Exceeds 200 lines: single forwardRef component with input handling, blur/keydown/click\n// callbacks, form field integration, and calendar toggle. Cannot split without violating\n// single-component-per-file.\nimport * as React from \"react\";\nimport { useFormFieldProps } from \"@nuka/hooks/use-form-field-props\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { composeRefs } from \"@nuka/utils/slot\";\nimport { Input } from \"@nuka/components/Input\";\nimport { Icon } from \"@nuka/components/Icon\";\nimport { useDatePickerContext } from \"@nuka/components/DatePicker/DatePicker.context\";\nimport { isDateDisabled } from \"@nuka/components/DatePicker/DatePicker.utils\";\n\nexport interface DatePickerInputProps extends Omit<\n React.HTMLAttributes<HTMLDivElement>,\n \"id\"\n> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n placeholder?: string;\n size?: \"sm\" | \"md\" | \"lg\";\n id?: string;\n \"aria-invalid\"?: React.AriaAttributes[\"aria-invalid\"];\n \"aria-describedby\"?: string;\n \"aria-required\"?: React.AriaAttributes[\"aria-required\"];\n}\n\nfunction DatePickerInput({\n ref,\n className,\n placeholder = \"YYYY-MM-DD\",\n size,\n id,\n \"aria-invalid\": ariaInvalidProp,\n \"aria-describedby\": ariaDescribedByProp,\n \"aria-required\": ariaRequiredProp,\n ...props\n}: DatePickerInputProps) {\n const ctx = useDatePickerContext();\n const setPositionRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n if (node) {\n ctx.refs.setPositionReference(node);\n }\n },\n [ctx.refs],\n );\n const composedRef = composeRefs(ref, setPositionRef);\n\n const field = useFormFieldProps({\n id,\n \"aria-invalid\": ariaInvalidProp,\n \"aria-describedby\": ariaDescribedByProp,\n \"aria-required\": ariaRequiredProp,\n });\n\n const { selectedDate, open, formatDate: ctxFormatDate } = ctx;\n\n const [inputText, setInputText] = React.useState(\n selectedDate !== undefined ? ctxFormatDate(selectedDate) : \"\",\n );\n\n React.useEffect(() => {\n if (!open) {\n setInputText(\n selectedDate !== undefined ? ctxFormatDate(selectedDate) : \"\",\n );\n }\n }, [selectedDate, open, ctxFormatDate]);\n\n const ariaInvalid = field.ariaInvalid ?? undefined;\n\n const handleInputClick = React.useCallback(() => {\n if (!ctx.disabled && !ctx.open) {\n ctx.focusCalendarOnOpen.current = false;\n ctx.onOpenChange(true);\n }\n }, [ctx]);\n\n const commitValue = React.useCallback(() => {\n const parsed = ctx.parseDate(inputText);\n if (parsed !== null && !isDateDisabled(parsed, ctx.min, ctx.max)) {\n ctx.onSelectedDateChange(parsed);\n } else {\n setInputText(\n ctx.selectedDate !== undefined ? ctx.formatDate(ctx.selectedDate) : \"\",\n );\n }\n }, [inputText, ctx]);\n\n const handleInputKeyDown = React.useCallback(\n (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === \"Enter\") {\n e.preventDefault();\n commitValue();\n } else if (e.key === \"Escape\") {\n if (ctx.open) {\n e.preventDefault();\n ctx.onOpenChange(false);\n } else {\n setInputText(\n ctx.selectedDate !== undefined\n ? ctx.formatDate(ctx.selectedDate)\n : \"\",\n );\n }\n } else if (e.key === \"Tab\") {\n if (ctx.open) {\n ctx.onOpenChange(false);\n }\n }\n },\n [commitValue, ctx],\n );\n\n const handleInputBlur = React.useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n const relatedTarget = e.relatedTarget as Node | null;\n if (relatedTarget && ctx.refs.floating.current?.contains(relatedTarget)) {\n return;\n }\n commitValue();\n },\n [commitValue, ctx.refs.floating],\n );\n\n const handleToggle = React.useCallback(() => {\n if (!ctx.disabled) {\n ctx.focusCalendarOnOpen.current = !ctx.open;\n ctx.onOpenChange(!ctx.open);\n }\n }, [ctx]);\n\n const referenceProps = ctx.getReferenceProps({});\n\n return (\n <div\n ref={composedRef}\n className={cn(\"relative inline-flex w-full items-center\", className)}\n {...props}\n >\n <Input\n type=\"text\"\n value={inputText}\n onChange={(e) => setInputText(e.target.value)}\n onClick={handleInputClick}\n onKeyDown={handleInputKeyDown}\n onBlur={handleInputBlur}\n placeholder={placeholder}\n size={size}\n id={field.resolvedId}\n disabled={ctx.disabled || field.resolvedDisabled}\n aria-invalid={ariaInvalid}\n aria-describedby={field.ariaDescribedBy}\n aria-required={field.ariaRequired}\n className=\"pr-(--space-10)\"\n autoComplete=\"off\"\n />\n <button\n ref={composeRefs(\n ctx.triggerButtonRef,\n ctx.refs.setReference as React.Ref<HTMLButtonElement>,\n )}\n type=\"button\"\n {...(referenceProps as React.ButtonHTMLAttributes<HTMLButtonElement>)}\n onClick={handleToggle}\n disabled={ctx.disabled}\n aria-label=\"Open calendar\"\n className={cn(\n \"absolute right-0 top-0 bottom-0 flex items-center justify-center\",\n \"px-(--space-3) text-(--nuka-text-muted) hover:text-(--nuka-text-base)\",\n \"disabled:pointer-events-none disabled:opacity-50\",\n \"cursor-pointer\",\n )}\n >\n <Icon size=\"sm\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\" />\n <line x1=\"16\" y1=\"2\" x2=\"16\" y2=\"6\" />\n <line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"6\" />\n <line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\" />\n </svg>\n </Icon>\n </button>\n </div>\n );\n}\n\nDatePickerInput.displayName = \"DatePickerInput\";\n\nexport { DatePickerInput };\n"],"mappings":";;;;;;;;;;;AA0BA,SAAS,EAAgB,EACvB,QACA,cACA,iBAAc,cACd,SACA,OACA,gBAAgB,GAChB,oBAAoB,GACpB,iBAAiB,GACjB,GAAG,KACoB;CACvB,IAAM,IAAM,GAAsB,EAS5B,IAAc,EAAY,GART,EAAM,aAC1B,MAAgC;AAC/B,EAAI,KACF,EAAI,KAAK,qBAAqB,EAAK;IAGvC,CAAC,EAAI,KAAK,CACX,CACmD,EAE9C,IAAQ,EAAkB;EAC9B;EACA,gBAAgB;EAChB,oBAAoB;EACpB,iBAAiB;EAClB,CAAC,EAEI,EAAE,iBAAc,SAAM,YAAY,MAAkB,GAEpD,CAAC,GAAW,KAAgB,EAAM,SACtC,MAAiB,KAAA,IAA0C,KAA9B,EAAc,EAAa,CACzD;AAED,GAAM,gBAAgB;AACpB,EAAK,KACH,EACE,MAAiB,KAAA,IAA0C,KAA9B,EAAc,EAAa,CACzD;IAEF;EAAC;EAAc;EAAM;EAAc,CAAC;CAEvC,IAAM,IAAc,EAAM,eAAe,KAAA,GAEnC,IAAmB,EAAM,kBAAkB;AAC/C,EAAI,CAAC,EA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,QAAQ;GACK;GACP;GACN,IAAI,EAAM;GACV,UAAU,EAAI,YAAY,EAAM;GAChC,gBAAc;GACd,oBAAkB,EAAM;GACxB,iBAAe,EAAM;GACrB,WAAU;GACV,cAAa;GACb,CAAA,EACF,kBAAC,UAAD;GACE,KAAK,EACH,EAAI,kBACJ,EAAI,KAAK,aACV;GACD,MAAK;GACL,GAAK;GACL,SAAS;GACT,UAAU,EAAI;GACd,cAAW;GACX,WAAW,EACT,oEACA,yEACA,oDACA,iBACD;aAED,kBAAC,GAAD;IAAM,MAAK;cACT,kBAAC,OAAD;KACE,OAAM;KACN,SAAQ;KACR,MAAK;KACL,QAAO;KACP,aAAY;KACZ,eAAc;KACd,gBAAe;eAPjB;MASE,kBAAC,QAAD;OAAM,GAAE;OAAI,GAAE;OAAI,OAAM;OAAK,QAAO;OAAK,IAAG;OAAI,IAAG;OAAM,CAAA;MACzD,kBAAC,QAAD;OAAM,IAAG;OAAK,IAAG;OAAI,IAAG;OAAK,IAAG;OAAM,CAAA;MACtC,kBAAC,QAAD;OAAM,IAAG;OAAI,IAAG;OAAI,IAAG;OAAI,IAAG;OAAM,CAAA;MACpC,kBAAC,QAAD;OAAM,IAAG;OAAI,IAAG;OAAK,IAAG;OAAK,IAAG;OAAO,CAAA;MACnC;;IACD,CAAA;GACA,CAAA,CACL;;;AAIV,EAAgB,cAAc"}
1
+ {"version":3,"file":"DatePickerInput.js","names":[],"sources":["../../../src/components/DatePicker/DatePickerInput.tsx"],"sourcesContent":["\"use client\";\n// Exceeds 200 lines: single forwardRef component with input handling, blur/keydown/click\n// callbacks, form field integration, and calendar toggle. Cannot split without violating\n// single-component-per-file.\nimport * as React from \"react\";\nimport { useFormFieldProps } from \"@nuka/hooks/use-form-field-props\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { composeRefs } from \"@nuka/utils/slot\";\nimport { Input } from \"@nuka/components/Input\";\nimport { Icon } from \"@nuka/components/Icon\";\nimport { useDatePickerContext } from \"@nuka/components/DatePicker/DatePicker.context\";\nimport { isDateDisabled } from \"@nuka/components/DatePicker/DatePicker.utils\";\n\nexport interface DatePickerInputProps extends Omit<\n React.HTMLAttributes<HTMLDivElement>,\n \"id\"\n> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n placeholder?: string;\n size?: \"sm\" | \"md\" | \"lg\";\n id?: string;\n \"aria-invalid\"?: React.AriaAttributes[\"aria-invalid\"];\n \"aria-describedby\"?: string;\n \"aria-required\"?: React.AriaAttributes[\"aria-required\"];\n}\n\nfunction DatePickerInput({\n ref,\n className,\n placeholder = \"YYYY-MM-DD\",\n size,\n id,\n \"aria-invalid\": ariaInvalidProp,\n \"aria-describedby\": ariaDescribedByProp,\n \"aria-required\": ariaRequiredProp,\n ...props\n}: DatePickerInputProps) {\n const ctx = useDatePickerContext();\n const setPositionRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n if (node) {\n ctx.refs.setPositionReference(node);\n }\n },\n [ctx.refs],\n );\n const composedRef = composeRefs(ref, setPositionRef);\n\n const field = useFormFieldProps({\n id,\n \"aria-invalid\": ariaInvalidProp,\n \"aria-describedby\": ariaDescribedByProp,\n \"aria-required\": ariaRequiredProp,\n });\n\n const { selectedDate, open, formatDate: ctxFormatDate } = ctx;\n\n const [inputText, setInputText] = React.useState(\n selectedDate !== undefined ? ctxFormatDate(selectedDate) : \"\",\n );\n\n React.useEffect(() => {\n if (!open) {\n setInputText(\n selectedDate !== undefined ? ctxFormatDate(selectedDate) : \"\",\n );\n }\n }, [selectedDate, open, ctxFormatDate]);\n\n const ariaInvalid = field.ariaInvalid ?? undefined;\n\n const handleInputClick = React.useCallback(() => {\n if (!ctx.disabled && !ctx.open) {\n ctx.focusCalendarOnOpen.current = false;\n ctx.onOpenChange(true);\n }\n }, [ctx]);\n\n const commitValue = React.useCallback(() => {\n const parsed = ctx.parseDate(inputText);\n if (parsed !== null && !isDateDisabled(parsed, ctx.min, ctx.max)) {\n ctx.onSelectedDateChange(parsed);\n } else {\n setInputText(\n ctx.selectedDate !== undefined ? ctx.formatDate(ctx.selectedDate) : \"\",\n );\n }\n }, [inputText, ctx]);\n\n const handleInputKeyDown = React.useCallback(\n (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === \"Enter\") {\n e.preventDefault();\n commitValue();\n } else if (e.key === \"Escape\") {\n if (ctx.open) {\n e.preventDefault();\n ctx.onOpenChange(false);\n } else {\n setInputText(\n ctx.selectedDate !== undefined\n ? ctx.formatDate(ctx.selectedDate)\n : \"\",\n );\n }\n } else if (e.key === \"Tab\") {\n if (ctx.open) {\n ctx.onOpenChange(false);\n }\n }\n },\n [commitValue, ctx],\n );\n\n const handleInputBlur = React.useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n const relatedTarget = e.relatedTarget as Node | null;\n if (relatedTarget && ctx.refs.floating.current?.contains(relatedTarget)) {\n return;\n }\n commitValue();\n },\n [commitValue, ctx.refs.floating],\n );\n\n const handleToggle = React.useCallback(() => {\n if (!ctx.disabled) {\n ctx.focusCalendarOnOpen.current = !ctx.open;\n ctx.onOpenChange(!ctx.open);\n }\n }, [ctx]);\n\n const referenceProps = ctx.getReferenceProps({});\n\n return (\n <div\n ref={composedRef}\n className={cn(\"relative inline-flex w-full items-center\", className)}\n data-slot=\"input-root\"\n {...props}\n >\n <Input\n type=\"text\"\n value={inputText}\n onChange={(e) => setInputText(e.target.value)}\n onClick={handleInputClick}\n onKeyDown={handleInputKeyDown}\n onBlur={handleInputBlur}\n placeholder={placeholder}\n size={size}\n id={field.resolvedId}\n disabled={ctx.disabled || field.resolvedDisabled}\n aria-invalid={ariaInvalid}\n aria-describedby={field.ariaDescribedBy}\n aria-required={field.ariaRequired}\n className=\"pr-(--space-10)\"\n autoComplete=\"off\"\n data-slot=\"input\"\n />\n <button\n ref={composeRefs(\n ctx.triggerButtonRef,\n ctx.refs.setReference as React.Ref<HTMLButtonElement>,\n )}\n type=\"button\"\n {...(referenceProps as React.ButtonHTMLAttributes<HTMLButtonElement>)}\n onClick={handleToggle}\n disabled={ctx.disabled}\n aria-label=\"Open calendar\"\n data-slot=\"toggle\"\n className={cn(\n \"absolute right-0 top-0 bottom-0 flex items-center justify-center\",\n \"px-(--space-3) text-(--nuka-text-muted) hover:text-(--nuka-text-base)\",\n \"disabled:pointer-events-none disabled:opacity-50\",\n \"cursor-pointer\",\n )}\n >\n <Icon size=\"sm\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\" />\n <line x1=\"16\" y1=\"2\" x2=\"16\" y2=\"6\" />\n <line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"6\" />\n <line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\" />\n </svg>\n </Icon>\n </button>\n </div>\n );\n}\n\nDatePickerInput.displayName = \"DatePickerInput\";\n\nexport { DatePickerInput };\n"],"mappings":";;;;;;;;;;;AA0BA,SAAS,EAAgB,EACvB,QACA,cACA,iBAAc,cACd,SACA,OACA,gBAAgB,GAChB,oBAAoB,GACpB,iBAAiB,GACjB,GAAG,KACoB;CACvB,IAAM,IAAM,GAAsB,EAS5B,IAAc,EAAY,GART,EAAM,aAC1B,MAAgC;AAC/B,EAAI,KACF,EAAI,KAAK,qBAAqB,EAAK;IAGvC,CAAC,EAAI,KAAK,CACX,CACmD,EAE9C,IAAQ,EAAkB;EAC9B;EACA,gBAAgB;EAChB,oBAAoB;EACpB,iBAAiB;EAClB,CAAC,EAEI,EAAE,iBAAc,SAAM,YAAY,MAAkB,GAEpD,CAAC,GAAW,KAAgB,EAAM,SACtC,MAAiB,KAAA,IAA0C,KAA9B,EAAc,EAAa,CACzD;AAED,GAAM,gBAAgB;AACpB,EAAK,KACH,EACE,MAAiB,KAAA,IAA0C,KAA9B,EAAc,EAAa,CACzD;IAEF;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U;EACV,GAAI;YAJN,CAME,kBAAC,GAAD;GACE,MAAK;GACL,OAAO;GACP,WAAW,MAAM,EAAa,EAAE,OAAO,MAAM;GAC7C,SAAS;GACT,WAAW;GACX,QAAQ;GACK;GACP;GACN,IAAI,EAAM;GACV,UAAU,EAAI,YAAY,EAAM;GAChC,gBAAc;GACd,oBAAkB,EAAM;GACxB,iBAAe,EAAM;GACrB,WAAU;GACV,cAAa;GACb,aAAU;GACV,CAAA,EACF,kBAAC,UAAD;GACE,KAAK,EACH,EAAI,kBACJ,EAAI,KAAK,aACV;GACD,MAAK;GACL,GAAK;GACL,SAAS;GACT,UAAU,EAAI;GACd,cAAW;GACX,aAAU;GACV,WAAW,EACT,oEACA,yEACA,oDACA,iBACD;aAED,kBAAC,GAAD;IAAM,MAAK;cACT,kBAAC,OAAD;KACE,OAAM;KACN,SAAQ;KACR,MAAK;KACL,QAAO;KACP,aAAY;KACZ,eAAc;KACd,gBAAe;eAPjB;MASE,kBAAC,QAAD;OAAM,GAAE;OAAI,GAAE;OAAI,OAAM;OAAK,QAAO;OAAK,IAAG;OAAI,IAAG;OAAM,CAAA;MACzD,kBAAC,QAAD;OAAM,IAAG;OAAK,IAAG;OAAI,IAAG;OAAK,IAAG;OAAM,CAAA;MACtC,kBAAC,QAAD;OAAM,IAAG;OAAI,IAAG;OAAI,IAAG;OAAI,IAAG;OAAM,CAAA;MACpC,kBAAC,QAAD;OAAM,IAAG;OAAI,IAAG;OAAK,IAAG;OAAK,IAAG;OAAO,CAAA;MACnC;;IACD,CAAA;GACA,CAAA,CACL;;;AAIV,EAAgB,cAAc"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../../utils/slot.cjs`),r=require(`../../utils/dismiss-button.cjs`),i=require(`../../utils/portal.cjs`),a=require(`../../hooks/use-scroll-lock.cjs`),o=require(`../../hooks/use-escape-key.cjs`),s=require(`../../hooks/use-focus-trap.cjs`),c=require(`../../utils/modal-primitive.cjs`),l=require(`../../hooks/use-modal-title-warning.cjs`),u=require(`./Dialog.context.cjs`);let d=require(`react`);d=e.__toESM(d,1);let f=require(`react/jsx-runtime`);var{Root:p,Trigger:m,Title:h,Description:g,Close:_}=c.createModalPrimitive({displayNamePrefix:`Dialog`,closeLabel:`Close dialog`,Context:u.DialogContext,useContext:u.useDialogContext});function v({ref:e,className:c,children:p,...m}){let h=u.useDialogContext(),g=d.useRef(null),_=n.composeRefs(e,g);return s.useFocusTrap(g,h.open),a.useScrollLock(h.open),l.useModalTitleWarning(`Dialog`,h.titleId,h.open),o.useEscapeKey(()=>h.onOpenChange(!1),h.open),h.open?(0,f.jsxs)(i.Portal,{children:[(0,f.jsx)(`div`,{className:t.cn(`fixed inset-0 z-(--nuka-z-modal)`,`bg-(--nuka-bg-overlay)`,`data-[state=open]:animate-[nuka-dialog-overlay-enter_150ms_ease-out]`),"data-state":`open`,onClick:()=>h.onOpenChange(!1),"aria-hidden":`true`}),(0,f.jsxs)(`div`,{ref:_,role:`dialog`,"aria-modal":`true`,"aria-labelledby":h.titleId,"aria-describedby":h.hasDescription?h.descriptionId:void 0,tabIndex:-1,"data-state":`open`,className:t.cn(`fixed z-(--nuka-z-modal)`,`left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2`,`w-full max-w-lg`,`rounded-(--radius-xl) border border-(--nuka-border-base)`,`bg-(--nuka-bg-base) shadow-md`,`p-(--space-6)`,`data-[state=open]:animate-[nuka-dialog-enter_150ms_ease-out]`,`focus-visible:outline-none`,c),...m,children:[(0,f.jsx)(r.DismissButton,{onClick:()=>h.onOpenChange(!1),label:`Close dialog`,className:`absolute top-(--space-4) right-(--space-4) text-(--nuka-text-muted)`}),p]})]}):null}v.displayName=`DialogContent`,exports.Dialog=p,exports.DialogClose=_,exports.DialogContent=v,exports.DialogDescription=g,exports.DialogTitle=h,exports.DialogTrigger=m;
1
+ "use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../../utils/slot.cjs`),r=require(`../../utils/dismiss-button.cjs`),i=require(`../../utils/portal.cjs`),a=require(`../../hooks/use-scroll-lock.cjs`),o=require(`../../hooks/use-escape-key.cjs`),s=require(`../../hooks/use-focus-trap.cjs`),c=require(`../../utils/modal-primitive.cjs`),l=require(`../../hooks/use-modal-title-warning.cjs`),u=require(`./Dialog.context.cjs`);let d=require(`react`);d=e.__toESM(d,1);let f=require(`react/jsx-runtime`);var{Root:p,Trigger:m,Title:h,Description:g,Close:_}=c.createModalPrimitive({displayNamePrefix:`Dialog`,closeLabel:`Close dialog`,Context:u.DialogContext,useContext:u.useDialogContext});function v({ref:e,className:c,children:p,...m}){let h=u.useDialogContext(),g=d.useRef(null),_=n.composeRefs(e,g);return s.useFocusTrap(g,h.open),a.useScrollLock(h.open),l.useModalTitleWarning(`Dialog`,h.titleId,h.open),o.useEscapeKey(()=>h.onOpenChange(!1),h.open),h.open?(0,f.jsxs)(i.Portal,{children:[(0,f.jsx)(`div`,{className:t.cn(`fixed inset-0 z-(--nuka-z-modal)`,`bg-(--nuka-bg-overlay)`,`data-[state=open]:animate-[nuka-dialog-overlay-enter_150ms_ease-out]`),"data-slot":`overlay`,"data-state":`open`,onClick:()=>h.onOpenChange(!1),"aria-hidden":`true`}),(0,f.jsxs)(`div`,{ref:_,role:`dialog`,"aria-modal":`true`,"aria-labelledby":h.titleId,"aria-describedby":h.hasDescription?h.descriptionId:void 0,tabIndex:-1,"data-slot":`content`,"data-state":`open`,className:t.cn(`fixed z-(--nuka-z-modal)`,`left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2`,`w-full max-w-lg`,`rounded-(--radius-xl) border border-(--nuka-border-base)`,`bg-(--nuka-bg-base) shadow-md`,`p-(--space-6)`,`data-[state=open]:animate-[nuka-dialog-enter_150ms_ease-out]`,`focus-visible:outline-none`,c),...m,children:[(0,f.jsx)(r.DismissButton,{onClick:()=>h.onOpenChange(!1),label:`Close dialog`,className:`absolute top-(--space-4) right-(--space-4) text-(--nuka-text-muted)`}),p]})]}):null}v.displayName=`DialogContent`,exports.Dialog=p,exports.DialogClose=_,exports.DialogContent=v,exports.DialogDescription=g,exports.DialogTitle=h,exports.DialogTrigger=m;
2
2
  //# sourceMappingURL=Dialog.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.cjs","names":[],"sources":["../../../src/components/Dialog/Dialog.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { composeRefs } from \"@nuka/utils/slot\";\nimport { Portal } from \"@nuka/utils/portal\";\nimport { DismissButton } from \"@nuka/utils/dismiss-button\";\nimport { useFocusTrap } from \"@nuka/hooks/use-focus-trap\";\nimport { useScrollLock } from \"@nuka/hooks/use-scroll-lock\";\nimport {\n createModalPrimitive,\n useEscapeKey,\n} from \"@nuka/utils/modal-primitive\";\nimport { useModalTitleWarning } from \"@nuka/hooks/use-modal-title-warning\";\nimport type {\n ModalRootProps,\n ModalTriggerProps,\n ModalTitleProps,\n ModalDescriptionProps,\n ModalCloseProps,\n} from \"@nuka/utils/modal-primitive\";\nimport {\n DialogContext,\n useDialogContext,\n} from \"@nuka/components/Dialog/Dialog.context\";\n\nconst {\n Root: Dialog,\n Trigger: DialogTrigger,\n Title: DialogTitle,\n Description: DialogDescription,\n Close: DialogClose,\n} = createModalPrimitive({\n displayNamePrefix: \"Dialog\",\n closeLabel: \"Close dialog\",\n Context: DialogContext,\n useContext: useDialogContext,\n});\n\nexport type DialogProps = ModalRootProps;\nexport type DialogTriggerProps = ModalTriggerProps;\nexport type DialogTitleProps = ModalTitleProps;\nexport type DialogDescriptionProps = ModalDescriptionProps;\nexport type DialogCloseProps = ModalCloseProps;\n\nexport interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n}\n\nfunction DialogContent({\n ref,\n className,\n children,\n ...props\n}: DialogContentProps) {\n const ctx = useDialogContext();\n const panelRef = React.useRef<HTMLDivElement>(null);\n const composedRef = composeRefs(ref, panelRef);\n\n useFocusTrap(panelRef, ctx.open);\n useScrollLock(ctx.open);\n useModalTitleWarning(\"Dialog\", ctx.titleId, ctx.open);\n useEscapeKey(() => ctx.onOpenChange(false), ctx.open);\n\n if (!ctx.open) return null;\n\n return (\n <Portal>\n <div\n className={cn(\n \"fixed inset-0 z-(--nuka-z-modal)\",\n \"bg-(--nuka-bg-overlay)\",\n \"data-[state=open]:animate-[nuka-dialog-overlay-enter_150ms_ease-out]\",\n )}\n data-state=\"open\"\n onClick={() => ctx.onOpenChange(false)}\n aria-hidden=\"true\"\n />\n <div\n ref={composedRef}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={ctx.titleId}\n aria-describedby={ctx.hasDescription ? ctx.descriptionId : undefined}\n tabIndex={-1}\n data-state=\"open\"\n className={cn(\n \"fixed z-(--nuka-z-modal)\",\n \"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2\",\n \"w-full max-w-lg\",\n \"rounded-(--radius-xl) border border-(--nuka-border-base)\",\n \"bg-(--nuka-bg-base) shadow-md\",\n \"p-(--space-6)\",\n \"data-[state=open]:animate-[nuka-dialog-enter_150ms_ease-out]\",\n // Programmatic focus via useFocusTrap; :focus-visible does not activate, so this is inert\n \"focus-visible:outline-none\",\n className,\n )}\n {...props}\n >\n <DismissButton\n onClick={() => ctx.onOpenChange(false)}\n label=\"Close dialog\"\n className=\"absolute top-(--space-4) right-(--space-4) text-(--nuka-text-muted)\"\n />\n {children}\n </div>\n </Portal>\n );\n}\n\nDialogContent.displayName = \"DialogContent\";\n\nexport {\n Dialog,\n DialogTrigger,\n DialogContent,\n DialogTitle,\n DialogDescription,\n DialogClose,\n};\n"],"mappings":"2iBAyBA,GAAM,CACJ,KAAM,EACN,QAAS,EACT,MAAO,EACP,YAAa,EACb,MAAO,GACL,EAAA,qBAAqB,CACvB,kBAAmB,SACnB,WAAY,eACZ,QAAS,EAAA,cACT,WAAY,EAAA,iBACb,CAAC,CAYF,SAAS,EAAc,CACrB,MACA,YACA,WACA,GAAG,GACkB,CACrB,IAAM,EAAM,EAAA,kBAAkB,CACxB,EAAW,EAAM,OAAuB,KAAK,CAC7C,EAAc,EAAA,YAAY,EAAK,EAAS,CAS9C,OAPA,EAAA,aAAa,EAAU,EAAI,KAAK,CAChC,EAAA,cAAc,EAAI,KAAK,CACvB,EAAA,qBAAqB,SAAU,EAAI,QAAS,EAAI,KAAK,CACrD,EAAA,iBAAmB,EAAI,aAAa,GAAM,CAAE,EAAI,KAAK,CAEhD,EAAI,MAGP,EAAA,EAAA,MAAC,EAAA,OAAD,CAAA,SAAA,EACE,EAAA,EAAA,KAAC,MAAD,CACE,UAAW,EAAA,GACT,mCACA,yBACA,uEACD,CACD,aAAW,OACX,YAAe,EAAI,aAAa,GAAM,CACtC,cAAY,OACZ,CAAA,EACF,EAAA,EAAA,MAAC,MAAD,CACE,IAAK,EACL,KAAK,SACL,aAAW,OACX,kBAAiB,EAAI,QACrB,mBAAkB,EAAI,eAAiB,EAAI,cAAgB,IAAA,GAC3D,SAAU,GACV,aAAW,OACX,UAAW,EAAA,GACT,2BACA,qDACA,kBACA,2DACA,gCACA,gBACA,+DAEA,6BACA,EACD,CACD,GAAI,WApBN,EAsBE,EAAA,EAAA,KAAC,EAAA,cAAD,CACE,YAAe,EAAI,aAAa,GAAM,CACtC,MAAM,eACN,UAAU,sEACV,CAAA,CACD,EACG,GACC,CAAA,CAAA,CA3CW,KA+CxB,EAAc,YAAc"}
1
+ {"version":3,"file":"Dialog.cjs","names":[],"sources":["../../../src/components/Dialog/Dialog.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { composeRefs } from \"@nuka/utils/slot\";\nimport { Portal } from \"@nuka/utils/portal\";\nimport { DismissButton } from \"@nuka/utils/dismiss-button\";\nimport { useFocusTrap } from \"@nuka/hooks/use-focus-trap\";\nimport { useScrollLock } from \"@nuka/hooks/use-scroll-lock\";\nimport {\n createModalPrimitive,\n useEscapeKey,\n} from \"@nuka/utils/modal-primitive\";\nimport { useModalTitleWarning } from \"@nuka/hooks/use-modal-title-warning\";\nimport type {\n ModalRootProps,\n ModalTriggerProps,\n ModalTitleProps,\n ModalDescriptionProps,\n ModalCloseProps,\n} from \"@nuka/utils/modal-primitive\";\nimport {\n DialogContext,\n useDialogContext,\n} from \"@nuka/components/Dialog/Dialog.context\";\n\nconst {\n Root: Dialog,\n Trigger: DialogTrigger,\n Title: DialogTitle,\n Description: DialogDescription,\n Close: DialogClose,\n} = createModalPrimitive({\n displayNamePrefix: \"Dialog\",\n closeLabel: \"Close dialog\",\n Context: DialogContext,\n useContext: useDialogContext,\n});\n\nexport type DialogProps = ModalRootProps;\nexport type DialogTriggerProps = ModalTriggerProps;\nexport type DialogTitleProps = ModalTitleProps;\nexport type DialogDescriptionProps = ModalDescriptionProps;\nexport type DialogCloseProps = ModalCloseProps;\n\nexport interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n}\n\nfunction DialogContent({\n ref,\n className,\n children,\n ...props\n}: DialogContentProps) {\n const ctx = useDialogContext();\n const panelRef = React.useRef<HTMLDivElement>(null);\n const composedRef = composeRefs(ref, panelRef);\n\n useFocusTrap(panelRef, ctx.open);\n useScrollLock(ctx.open);\n useModalTitleWarning(\"Dialog\", ctx.titleId, ctx.open);\n useEscapeKey(() => ctx.onOpenChange(false), ctx.open);\n\n if (!ctx.open) return null;\n\n return (\n <Portal>\n <div\n className={cn(\n \"fixed inset-0 z-(--nuka-z-modal)\",\n \"bg-(--nuka-bg-overlay)\",\n \"data-[state=open]:animate-[nuka-dialog-overlay-enter_150ms_ease-out]\",\n )}\n data-slot=\"overlay\"\n data-state=\"open\"\n onClick={() => ctx.onOpenChange(false)}\n aria-hidden=\"true\"\n />\n <div\n ref={composedRef}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={ctx.titleId}\n aria-describedby={ctx.hasDescription ? ctx.descriptionId : undefined}\n tabIndex={-1}\n data-slot=\"content\"\n data-state=\"open\"\n className={cn(\n \"fixed z-(--nuka-z-modal)\",\n \"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2\",\n \"w-full max-w-lg\",\n \"rounded-(--radius-xl) border border-(--nuka-border-base)\",\n \"bg-(--nuka-bg-base) shadow-md\",\n \"p-(--space-6)\",\n \"data-[state=open]:animate-[nuka-dialog-enter_150ms_ease-out]\",\n // Programmatic focus via useFocusTrap; :focus-visible does not activate, so this is inert\n \"focus-visible:outline-none\",\n className,\n )}\n {...props}\n >\n <DismissButton\n onClick={() => ctx.onOpenChange(false)}\n label=\"Close dialog\"\n className=\"absolute top-(--space-4) right-(--space-4) text-(--nuka-text-muted)\"\n />\n {children}\n </div>\n </Portal>\n );\n}\n\nDialogContent.displayName = \"DialogContent\";\n\nexport {\n Dialog,\n DialogTrigger,\n DialogContent,\n DialogTitle,\n DialogDescription,\n DialogClose,\n};\n"],"mappings":"2iBAyBA,GAAM,CACJ,KAAM,EACN,QAAS,EACT,MAAO,EACP,YAAa,EACb,MAAO,GACL,EAAA,qBAAqB,CACvB,kBAAmB,SACnB,WAAY,eACZ,QAAS,EAAA,cACT,WAAY,EAAA,iBACb,CAAC,CAYF,SAAS,EAAc,CACrB,MACA,YACA,WACA,GAAG,GACkB,CACrB,IAAM,EAAM,EAAA,kBAAkB,CACxB,EAAW,EAAM,OAAuB,KAAK,CAC7C,EAAc,EAAA,YAAY,EAAK,EAAS,CAS9C,OAPA,EAAA,aAAa,EAAU,EAAI,KAAK,CAChC,EAAA,cAAc,EAAI,KAAK,CACvB,EAAA,qBAAqB,SAAU,EAAI,QAAS,EAAI,KAAK,CACrD,EAAA,iBAAmB,EAAI,aAAa,GAAM,CAAE,EAAI,KAAK,CAEhD,EAAI,MAGP,EAAA,EAAA,MAAC,EAAA,OAAD,CAAA,SAAA,EACE,EAAA,EAAA,KAAC,MAAD,CACE,UAAW,EAAA,GACT,mCACA,yBACA,uEACD,CACD,YAAU,UACV,aAAW,OACX,YAAe,EAAI,aAAa,GAAM,CACtC,cAAY,OACZ,CAAA,EACF,EAAA,EAAA,MAAC,MAAD,CACE,IAAK,EACL,KAAK,SACL,aAAW,OACX,kBAAiB,EAAI,QACrB,mBAAkB,EAAI,eAAiB,EAAI,cAAgB,IAAA,GAC3D,SAAU,GACV,YAAU,UACV,aAAW,OACX,UAAW,EAAA,GACT,2BACA,qDACA,kBACA,2DACA,gCACA,gBACA,+DAEA,6BACA,EACD,CACD,GAAI,WArBN,EAuBE,EAAA,EAAA,KAAC,EAAA,cAAD,CACE,YAAe,EAAI,aAAa,GAAM,CACtC,MAAM,eACN,UAAU,sEACV,CAAA,CACD,EACG,GACC,CAAA,CAAA,CA7CW,KAiDxB,EAAc,YAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAMrC,QAAA,MACQ,MAAM,4BACH,aAAa,+BACf,WAAW,6BACL,iBAAiB,mCACvB,WAAW,2BAMlB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC;AACzC,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AACnD,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAC/C,MAAM,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AAC3D,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAE/C,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC9E,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;CAC7C;AAED,iBAAS,aAAa,CAAC,EACrB,GAAG,EACH,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,kDAuDpB;kBA5DQ,aAAa;;;AAgEtB,OAAO,EACL,MAAM,EACN,aAAa,EACb,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,WAAW,GACZ,CAAC"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAMrC,QAAA,MACQ,MAAM,4BACH,aAAa,+BACf,WAAW,6BACL,iBAAiB,mCACvB,WAAW,2BAMlB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC;AACzC,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AACnD,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAC/C,MAAM,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AAC3D,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAE/C,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC9E,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;CAC7C;AAED,iBAAS,aAAa,CAAC,EACrB,GAAG,EACH,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,kDAyDpB;kBA9DQ,aAAa;;;AAkEtB,OAAO,EACL,MAAM,EACN,aAAa,EACb,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,WAAW,GACZ,CAAC"}
@@ -22,6 +22,7 @@ function y({ ref: s, className: l, children: m, ...h }) {
22
22
  let g = u(), _ = d.useRef(null), v = t(s, _);
23
23
  return o(_, g.open), i(g.open), c("Dialog", g.titleId, g.open), a(() => g.onOpenChange(!1), g.open), g.open ? /* @__PURE__ */ p(r, { children: [/* @__PURE__ */ f("div", {
24
24
  className: e("fixed inset-0 z-(--nuka-z-modal)", "bg-(--nuka-bg-overlay)", "data-[state=open]:animate-[nuka-dialog-overlay-enter_150ms_ease-out]"),
25
+ "data-slot": "overlay",
25
26
  "data-state": "open",
26
27
  onClick: () => g.onOpenChange(!1),
27
28
  "aria-hidden": "true"
@@ -32,6 +33,7 @@ function y({ ref: s, className: l, children: m, ...h }) {
32
33
  "aria-labelledby": g.titleId,
33
34
  "aria-describedby": g.hasDescription ? g.descriptionId : void 0,
34
35
  tabIndex: -1,
36
+ "data-slot": "content",
35
37
  "data-state": "open",
36
38
  className: e("fixed z-(--nuka-z-modal)", "left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2", "w-full max-w-lg", "rounded-(--radius-xl) border border-(--nuka-border-base)", "bg-(--nuka-bg-base) shadow-md", "p-(--space-6)", "data-[state=open]:animate-[nuka-dialog-enter_150ms_ease-out]", "focus-visible:outline-none", l),
37
39
  ...h,
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.js","names":[],"sources":["../../../src/components/Dialog/Dialog.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { composeRefs } from \"@nuka/utils/slot\";\nimport { Portal } from \"@nuka/utils/portal\";\nimport { DismissButton } from \"@nuka/utils/dismiss-button\";\nimport { useFocusTrap } from \"@nuka/hooks/use-focus-trap\";\nimport { useScrollLock } from \"@nuka/hooks/use-scroll-lock\";\nimport {\n createModalPrimitive,\n useEscapeKey,\n} from \"@nuka/utils/modal-primitive\";\nimport { useModalTitleWarning } from \"@nuka/hooks/use-modal-title-warning\";\nimport type {\n ModalRootProps,\n ModalTriggerProps,\n ModalTitleProps,\n ModalDescriptionProps,\n ModalCloseProps,\n} from \"@nuka/utils/modal-primitive\";\nimport {\n DialogContext,\n useDialogContext,\n} from \"@nuka/components/Dialog/Dialog.context\";\n\nconst {\n Root: Dialog,\n Trigger: DialogTrigger,\n Title: DialogTitle,\n Description: DialogDescription,\n Close: DialogClose,\n} = createModalPrimitive({\n displayNamePrefix: \"Dialog\",\n closeLabel: \"Close dialog\",\n Context: DialogContext,\n useContext: useDialogContext,\n});\n\nexport type DialogProps = ModalRootProps;\nexport type DialogTriggerProps = ModalTriggerProps;\nexport type DialogTitleProps = ModalTitleProps;\nexport type DialogDescriptionProps = ModalDescriptionProps;\nexport type DialogCloseProps = ModalCloseProps;\n\nexport interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n}\n\nfunction DialogContent({\n ref,\n className,\n children,\n ...props\n}: DialogContentProps) {\n const ctx = useDialogContext();\n const panelRef = React.useRef<HTMLDivElement>(null);\n const composedRef = composeRefs(ref, panelRef);\n\n useFocusTrap(panelRef, ctx.open);\n useScrollLock(ctx.open);\n useModalTitleWarning(\"Dialog\", ctx.titleId, ctx.open);\n useEscapeKey(() => ctx.onOpenChange(false), ctx.open);\n\n if (!ctx.open) return null;\n\n return (\n <Portal>\n <div\n className={cn(\n \"fixed inset-0 z-(--nuka-z-modal)\",\n \"bg-(--nuka-bg-overlay)\",\n \"data-[state=open]:animate-[nuka-dialog-overlay-enter_150ms_ease-out]\",\n )}\n data-state=\"open\"\n onClick={() => ctx.onOpenChange(false)}\n aria-hidden=\"true\"\n />\n <div\n ref={composedRef}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={ctx.titleId}\n aria-describedby={ctx.hasDescription ? ctx.descriptionId : undefined}\n tabIndex={-1}\n data-state=\"open\"\n className={cn(\n \"fixed z-(--nuka-z-modal)\",\n \"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2\",\n \"w-full max-w-lg\",\n \"rounded-(--radius-xl) border border-(--nuka-border-base)\",\n \"bg-(--nuka-bg-base) shadow-md\",\n \"p-(--space-6)\",\n \"data-[state=open]:animate-[nuka-dialog-enter_150ms_ease-out]\",\n // Programmatic focus via useFocusTrap; :focus-visible does not activate, so this is inert\n \"focus-visible:outline-none\",\n className,\n )}\n {...props}\n >\n <DismissButton\n onClick={() => ctx.onOpenChange(false)}\n label=\"Close dialog\"\n className=\"absolute top-(--space-4) right-(--space-4) text-(--nuka-text-muted)\"\n />\n {children}\n </div>\n </Portal>\n );\n}\n\nDialogContent.displayName = \"DialogContent\";\n\nexport {\n Dialog,\n DialogTrigger,\n DialogContent,\n DialogTitle,\n DialogDescription,\n DialogClose,\n};\n"],"mappings":";;;;;;;;;;;;;;AAyBA,IAAM,EACJ,MAAM,GACN,SAAS,GACT,OAAO,GACP,aAAa,GACb,OAAO,MACL,EAAqB;CACvB,mBAAmB;CACnB,YAAY;CACZ,SAAS;CACT,YAAY;CACb,CAAC;AAYF,SAAS,EAAc,EACrB,QACA,cACA,aACA,GAAG,KACkB;CACrB,IAAM,IAAM,GAAkB,EACxB,IAAW,EAAM,OAAuB,KAAK,EAC7C,IAAc,EAAY,GAAK,EAAS;AAS9C,QAPA,EAAa,GAAU,EAAI,KAAK,EAChC,EAAc,EAAI,KAAK,EACvB,EAAqB,UAAU,EAAI,SAAS,EAAI,KAAK,EACrD,QAAmB,EAAI,aAAa,GAAM,EAAE,EAAI,KAAK,EAEhD,EAAI,OAGP,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,OAAD;EACE,WAAW,EACT,oCACA,0BACA,uEACD;EACD,cAAW;EACX,eAAe,EAAI,aAAa,GAAM;EACtC,eAAY;EACZ,CAAA,EACF,kBAAC,OAAD;EACE,KAAK;EACL,MAAK;EACL,cAAW;EACX,mBAAiB,EAAI;EACrB,oBAAkB,EAAI,iBAAiB,EAAI,gBAAgB,KAAA;EAC3D,UAAU;EACV,cAAW;EACX,WAAW,EACT,4BACA,sDACA,mBACA,4DACA,iCACA,iBACA,gEAEA,8BACA,EACD;EACD,GAAI;YApBN,CAsBE,kBAAC,GAAD;GACE,eAAe,EAAI,aAAa,GAAM;GACtC,OAAM;GACN,WAAU;GACV,CAAA,EACD,EACG;IACC,EAAA,CAAA,GA3CW;;AA+CxB,EAAc,cAAc"}
1
+ {"version":3,"file":"Dialog.js","names":[],"sources":["../../../src/components/Dialog/Dialog.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { composeRefs } from \"@nuka/utils/slot\";\nimport { Portal } from \"@nuka/utils/portal\";\nimport { DismissButton } from \"@nuka/utils/dismiss-button\";\nimport { useFocusTrap } from \"@nuka/hooks/use-focus-trap\";\nimport { useScrollLock } from \"@nuka/hooks/use-scroll-lock\";\nimport {\n createModalPrimitive,\n useEscapeKey,\n} from \"@nuka/utils/modal-primitive\";\nimport { useModalTitleWarning } from \"@nuka/hooks/use-modal-title-warning\";\nimport type {\n ModalRootProps,\n ModalTriggerProps,\n ModalTitleProps,\n ModalDescriptionProps,\n ModalCloseProps,\n} from \"@nuka/utils/modal-primitive\";\nimport {\n DialogContext,\n useDialogContext,\n} from \"@nuka/components/Dialog/Dialog.context\";\n\nconst {\n Root: Dialog,\n Trigger: DialogTrigger,\n Title: DialogTitle,\n Description: DialogDescription,\n Close: DialogClose,\n} = createModalPrimitive({\n displayNamePrefix: \"Dialog\",\n closeLabel: \"Close dialog\",\n Context: DialogContext,\n useContext: useDialogContext,\n});\n\nexport type DialogProps = ModalRootProps;\nexport type DialogTriggerProps = ModalTriggerProps;\nexport type DialogTitleProps = ModalTitleProps;\nexport type DialogDescriptionProps = ModalDescriptionProps;\nexport type DialogCloseProps = ModalCloseProps;\n\nexport interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n}\n\nfunction DialogContent({\n ref,\n className,\n children,\n ...props\n}: DialogContentProps) {\n const ctx = useDialogContext();\n const panelRef = React.useRef<HTMLDivElement>(null);\n const composedRef = composeRefs(ref, panelRef);\n\n useFocusTrap(panelRef, ctx.open);\n useScrollLock(ctx.open);\n useModalTitleWarning(\"Dialog\", ctx.titleId, ctx.open);\n useEscapeKey(() => ctx.onOpenChange(false), ctx.open);\n\n if (!ctx.open) return null;\n\n return (\n <Portal>\n <div\n className={cn(\n \"fixed inset-0 z-(--nuka-z-modal)\",\n \"bg-(--nuka-bg-overlay)\",\n \"data-[state=open]:animate-[nuka-dialog-overlay-enter_150ms_ease-out]\",\n )}\n data-slot=\"overlay\"\n data-state=\"open\"\n onClick={() => ctx.onOpenChange(false)}\n aria-hidden=\"true\"\n />\n <div\n ref={composedRef}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={ctx.titleId}\n aria-describedby={ctx.hasDescription ? ctx.descriptionId : undefined}\n tabIndex={-1}\n data-slot=\"content\"\n data-state=\"open\"\n className={cn(\n \"fixed z-(--nuka-z-modal)\",\n \"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2\",\n \"w-full max-w-lg\",\n \"rounded-(--radius-xl) border border-(--nuka-border-base)\",\n \"bg-(--nuka-bg-base) shadow-md\",\n \"p-(--space-6)\",\n \"data-[state=open]:animate-[nuka-dialog-enter_150ms_ease-out]\",\n // Programmatic focus via useFocusTrap; :focus-visible does not activate, so this is inert\n \"focus-visible:outline-none\",\n className,\n )}\n {...props}\n >\n <DismissButton\n onClick={() => ctx.onOpenChange(false)}\n label=\"Close dialog\"\n className=\"absolute top-(--space-4) right-(--space-4) text-(--nuka-text-muted)\"\n />\n {children}\n </div>\n </Portal>\n );\n}\n\nDialogContent.displayName = \"DialogContent\";\n\nexport {\n Dialog,\n DialogTrigger,\n DialogContent,\n DialogTitle,\n DialogDescription,\n DialogClose,\n};\n"],"mappings":";;;;;;;;;;;;;;AAyBA,IAAM,EACJ,MAAM,GACN,SAAS,GACT,OAAO,GACP,aAAa,GACb,OAAO,MACL,EAAqB;CACvB,mBAAmB;CACnB,YAAY;CACZ,SAAS;CACT,YAAY;CACb,CAAC;AAYF,SAAS,EAAc,EACrB,QACA,cACA,aACA,GAAG,KACkB;CACrB,IAAM,IAAM,GAAkB,EACxB,IAAW,EAAM,OAAuB,KAAK,EAC7C,IAAc,EAAY,GAAK,EAAS;AAS9C,QAPA,EAAa,GAAU,EAAI,KAAK,EAChC,EAAc,EAAI,KAAK,EACvB,EAAqB,UAAU,EAAI,SAAS,EAAI,KAAK,EACrD,QAAmB,EAAI,aAAa,GAAM,EAAE,EAAI,KAAK,EAEhD,EAAI,OAGP,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,OAAD;EACE,WAAW,EACT,oCACA,0BACA,uEACD;EACD,aAAU;EACV,cAAW;EACX,eAAe,EAAI,aAAa,GAAM;EACtC,eAAY;EACZ,CAAA,EACF,kBAAC,OAAD;EACE,KAAK;EACL,MAAK;EACL,cAAW;EACX,mBAAiB,EAAI;EACrB,oBAAkB,EAAI,iBAAiB,EAAI,gBAAgB,KAAA;EAC3D,UAAU;EACV,aAAU;EACV,cAAW;EACX,WAAW,EACT,4BACA,sDACA,mBACA,4DACA,iCACA,iBACA,gEAEA,8BACA,EACD;EACD,GAAI;YArBN,CAuBE,kBAAC,GAAD;GACE,eAAe,EAAI,aAAa,GAAM;GACtC,OAAM;GACN,WAAU;GACV,CAAA,EACD,EACG;IACC,EAAA,CAAA,GA7CW;;AAiDxB,EAAc,cAAc"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../../utils/slot.cjs`),r=require(`../../utils/portal.cjs`),i=require(`../../hooks/use-menu-navigation.cjs`),a=require(`../Menu/menuItemVariants.cjs`),o=require(`../Menu/MenuContentBase.cjs`),s=require(`./DropdownMenu.context.cjs`);let c=require(`react`);c=e.__toESM(c,1);let l=require(`react/jsx-runtime`);function u({ref:e,className:u,children:d,...f}){let p=s.useDropdownMenuContext(),m=n.composeRefs(e,c.useRef(null),p.refs.setFloating),{getItemProps:h,focusItem:g,itemsRef:_,resetTypeAhead:v}=i.useMenuNavigation({onEscape:()=>p.onOpenChange(!1),onTab:()=>p.onOpenChange(!1)}),y=c.useRef(0);if(c.useEffect(()=>{p.open||v()},[p.open,v]),o.useAutoFocusFirstItem(p.open,g,_,y),!p.open)return null;y.current=0;let b=p.getFloatingProps(f);return(0,l.jsx)(r.Portal,{children:(0,l.jsx)(o.MenuItemContext,{value:{getItemProps:h,indexRef:y,close:()=>p.onOpenChange(!1)},children:(0,l.jsx)(`div`,{ref:m,style:p.floatingStyles,"data-state":`open`,...b,className:t.cn(a.menuContentVariants(),u),children:d})})})}u.displayName=`DropdownMenuContent`,exports.DropdownMenuContent=u;
1
+ "use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../../utils/slot.cjs`),r=require(`../../utils/portal.cjs`),i=require(`../../hooks/use-menu-navigation.cjs`),a=require(`../Menu/menuItemVariants.cjs`),o=require(`../Menu/MenuContentBase.cjs`),s=require(`./DropdownMenu.context.cjs`);let c=require(`react`);c=e.__toESM(c,1);let l=require(`react/jsx-runtime`);function u({ref:e,className:u,children:d,...f}){let p=s.useDropdownMenuContext(),m=n.composeRefs(e,c.useRef(null),p.refs.setFloating),{getItemProps:h,focusItem:g,itemsRef:_,resetTypeAhead:v}=i.useMenuNavigation({onEscape:()=>p.onOpenChange(!1),onTab:()=>p.onOpenChange(!1)}),y=c.useRef(0);if(c.useEffect(()=>{p.open||v()},[p.open,v]),o.useAutoFocusFirstItem(p.open,g,_,y),!p.open)return null;y.current=0;let b=p.getFloatingProps(f);return(0,l.jsx)(r.Portal,{children:(0,l.jsx)(o.MenuItemContext,{value:{getItemProps:h,indexRef:y,close:()=>p.onOpenChange(!1)},children:(0,l.jsx)(`div`,{ref:m,style:p.floatingStyles,"data-slot":`content`,"data-state":`open`,...b,className:t.cn(a.menuContentVariants(),u),children:d})})})}u.displayName=`DropdownMenuContent`,exports.DropdownMenuContent=u;
2
2
  //# sourceMappingURL=DropdownMenuContent.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenuContent.cjs","names":[],"sources":["../../../src/components/DropdownMenu/DropdownMenuContent.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { composeRefs } from \"@nuka/utils/slot\";\nimport { useMenuNavigation } from \"@nuka/hooks/use-menu-navigation\";\nimport { Portal } from \"@nuka/utils/portal\";\nimport { menuContentVariants } from \"@nuka/components/Menu/menuItemVariants\";\nimport {\n MenuItemContext,\n useAutoFocusFirstItem,\n} from \"@nuka/components/Menu/MenuContentBase\";\nimport { useDropdownMenuContext } from \"@nuka/components/DropdownMenu/DropdownMenu.context\";\n\nexport interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n}\n\nfunction DropdownMenuContent({\n ref,\n className,\n children,\n ...props\n}: DropdownMenuContentProps) {\n const ctx = useDropdownMenuContext();\n const contentRef = React.useRef<HTMLDivElement>(null);\n const composedRef = composeRefs(ref, contentRef, ctx.refs.setFloating);\n\n const { getItemProps, focusItem, itemsRef, resetTypeAhead } =\n useMenuNavigation({\n onEscape: () => ctx.onOpenChange(false),\n onTab: () => ctx.onOpenChange(false),\n });\n\n const itemIndexRef = React.useRef(0);\n\n React.useEffect(() => {\n if (!ctx.open) resetTypeAhead();\n }, [ctx.open, resetTypeAhead]);\n\n useAutoFocusFirstItem(ctx.open, focusItem, itemsRef, itemIndexRef);\n\n if (!ctx.open) return null;\n\n itemIndexRef.current = 0;\n\n const floatingProps = ctx.getFloatingProps(props);\n\n return (\n <Portal>\n <MenuItemContext\n value={{\n getItemProps,\n indexRef: itemIndexRef,\n close: () => ctx.onOpenChange(false),\n }}\n >\n <div\n ref={composedRef}\n style={ctx.floatingStyles}\n data-state=\"open\"\n {...floatingProps}\n className={cn(menuContentVariants(), className)}\n >\n {children}\n </div>\n </MenuItemContext>\n </Portal>\n );\n}\n\nDropdownMenuContent.displayName = \"DropdownMenuContent\";\n\nexport { DropdownMenuContent };\n"],"mappings":"kaAiBA,SAAS,EAAoB,CAC3B,MACA,YACA,WACA,GAAG,GACwB,CAC3B,IAAM,EAAM,EAAA,wBAAwB,CAE9B,EAAc,EAAA,YAAY,EADb,EAAM,OAAuB,KAAK,CACJ,EAAI,KAAK,YAAY,CAEhE,CAAE,eAAc,YAAW,WAAU,kBACzC,EAAA,kBAAkB,CAChB,aAAgB,EAAI,aAAa,GAAM,CACvC,UAAa,EAAI,aAAa,GAAM,CACrC,CAAC,CAEE,EAAe,EAAM,OAAO,EAAE,CAQpC,GANA,EAAM,cAAgB,CACf,EAAI,MAAM,GAAgB,EAC9B,CAAC,EAAI,KAAM,EAAe,CAAC,CAE9B,EAAA,sBAAsB,EAAI,KAAM,EAAW,EAAU,EAAa,CAE9D,CAAC,EAAI,KAAM,OAAO,KAEtB,EAAa,QAAU,EAEvB,IAAM,EAAgB,EAAI,iBAAiB,EAAM,CAEjD,OACE,EAAA,EAAA,KAAC,EAAA,OAAD,CAAA,UACE,EAAA,EAAA,KAAC,EAAA,gBAAD,CACE,MAAO,CACL,eACA,SAAU,EACV,UAAa,EAAI,aAAa,GAAM,CACrC,WAED,EAAA,EAAA,KAAC,MAAD,CACE,IAAK,EACL,MAAO,EAAI,eACX,aAAW,OACX,GAAI,EACJ,UAAW,EAAA,GAAG,EAAA,qBAAqB,CAAE,EAAU,CAE9C,WACG,CAAA,CACU,CAAA,CACX,CAAA,CAIb,EAAoB,YAAc"}
1
+ {"version":3,"file":"DropdownMenuContent.cjs","names":[],"sources":["../../../src/components/DropdownMenu/DropdownMenuContent.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { composeRefs } from \"@nuka/utils/slot\";\nimport { useMenuNavigation } from \"@nuka/hooks/use-menu-navigation\";\nimport { Portal } from \"@nuka/utils/portal\";\nimport { menuContentVariants } from \"@nuka/components/Menu/menuItemVariants\";\nimport {\n MenuItemContext,\n useAutoFocusFirstItem,\n} from \"@nuka/components/Menu/MenuContentBase\";\nimport { useDropdownMenuContext } from \"@nuka/components/DropdownMenu/DropdownMenu.context\";\n\nexport interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n}\n\nfunction DropdownMenuContent({\n ref,\n className,\n children,\n ...props\n}: DropdownMenuContentProps) {\n const ctx = useDropdownMenuContext();\n const contentRef = React.useRef<HTMLDivElement>(null);\n const composedRef = composeRefs(ref, contentRef, ctx.refs.setFloating);\n\n const { getItemProps, focusItem, itemsRef, resetTypeAhead } =\n useMenuNavigation({\n onEscape: () => ctx.onOpenChange(false),\n onTab: () => ctx.onOpenChange(false),\n });\n\n const itemIndexRef = React.useRef(0);\n\n React.useEffect(() => {\n if (!ctx.open) resetTypeAhead();\n }, [ctx.open, resetTypeAhead]);\n\n useAutoFocusFirstItem(ctx.open, focusItem, itemsRef, itemIndexRef);\n\n if (!ctx.open) return null;\n\n itemIndexRef.current = 0;\n\n const floatingProps = ctx.getFloatingProps(props);\n\n return (\n <Portal>\n <MenuItemContext\n value={{\n getItemProps,\n indexRef: itemIndexRef,\n close: () => ctx.onOpenChange(false),\n }}\n >\n <div\n ref={composedRef}\n style={ctx.floatingStyles}\n data-slot=\"content\"\n data-state=\"open\"\n {...floatingProps}\n className={cn(menuContentVariants(), className)}\n >\n {children}\n </div>\n </MenuItemContext>\n </Portal>\n );\n}\n\nDropdownMenuContent.displayName = \"DropdownMenuContent\";\n\nexport { DropdownMenuContent };\n"],"mappings":"kaAiBA,SAAS,EAAoB,CAC3B,MACA,YACA,WACA,GAAG,GACwB,CAC3B,IAAM,EAAM,EAAA,wBAAwB,CAE9B,EAAc,EAAA,YAAY,EADb,EAAM,OAAuB,KAAK,CACJ,EAAI,KAAK,YAAY,CAEhE,CAAE,eAAc,YAAW,WAAU,kBACzC,EAAA,kBAAkB,CAChB,aAAgB,EAAI,aAAa,GAAM,CACvC,UAAa,EAAI,aAAa,GAAM,CACrC,CAAC,CAEE,EAAe,EAAM,OAAO,EAAE,CAQpC,GANA,EAAM,cAAgB,CACf,EAAI,MAAM,GAAgB,EAC9B,CAAC,EAAI,KAAM,EAAe,CAAC,CAE9B,EAAA,sBAAsB,EAAI,KAAM,EAAW,EAAU,EAAa,CAE9D,CAAC,EAAI,KAAM,OAAO,KAEtB,EAAa,QAAU,EAEvB,IAAM,EAAgB,EAAI,iBAAiB,EAAM,CAEjD,OACE,EAAA,EAAA,KAAC,EAAA,OAAD,CAAA,UACE,EAAA,EAAA,KAAC,EAAA,gBAAD,CACE,MAAO,CACL,eACA,SAAU,EACV,UAAa,EAAI,aAAa,GAAM,CACrC,WAED,EAAA,EAAA,KAAC,MAAD,CACE,IAAK,EACL,MAAO,EAAI,eACX,YAAU,UACV,aAAW,OACX,GAAI,EACJ,UAAW,EAAA,GAAG,EAAA,qBAAqB,CAAE,EAAU,CAE9C,WACG,CAAA,CACU,CAAA,CACX,CAAA,CAIb,EAAoB,YAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenuContent.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenuContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,MAAM,WAAW,wBAAyB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACpF,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;CAC7C;AAED,iBAAS,mBAAmB,CAAC,EAC3B,GAAG,EACH,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,wBAAwB,kDA8C1B;kBAnDQ,mBAAmB;;;AAuD5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"DropdownMenuContent.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenuContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,MAAM,WAAW,wBAAyB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACpF,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;CAC7C;AAED,iBAAS,mBAAmB,CAAC,EAC3B,GAAG,EACH,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,wBAAwB,kDA+C1B;kBApDQ,mBAAmB;;;AAwD5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -28,6 +28,7 @@ function u({ ref: u, className: d, children: f, ...p }) {
28
28
  children: /* @__PURE__ */ l("div", {
29
29
  ref: h,
30
30
  style: m.floatingStyles,
31
+ "data-slot": "content",
31
32
  "data-state": "open",
32
33
  ...x,
33
34
  className: e(i(), d),
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenuContent.js","names":[],"sources":["../../../src/components/DropdownMenu/DropdownMenuContent.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { composeRefs } from \"@nuka/utils/slot\";\nimport { useMenuNavigation } from \"@nuka/hooks/use-menu-navigation\";\nimport { Portal } from \"@nuka/utils/portal\";\nimport { menuContentVariants } from \"@nuka/components/Menu/menuItemVariants\";\nimport {\n MenuItemContext,\n useAutoFocusFirstItem,\n} from \"@nuka/components/Menu/MenuContentBase\";\nimport { useDropdownMenuContext } from \"@nuka/components/DropdownMenu/DropdownMenu.context\";\n\nexport interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n}\n\nfunction DropdownMenuContent({\n ref,\n className,\n children,\n ...props\n}: DropdownMenuContentProps) {\n const ctx = useDropdownMenuContext();\n const contentRef = React.useRef<HTMLDivElement>(null);\n const composedRef = composeRefs(ref, contentRef, ctx.refs.setFloating);\n\n const { getItemProps, focusItem, itemsRef, resetTypeAhead } =\n useMenuNavigation({\n onEscape: () => ctx.onOpenChange(false),\n onTab: () => ctx.onOpenChange(false),\n });\n\n const itemIndexRef = React.useRef(0);\n\n React.useEffect(() => {\n if (!ctx.open) resetTypeAhead();\n }, [ctx.open, resetTypeAhead]);\n\n useAutoFocusFirstItem(ctx.open, focusItem, itemsRef, itemIndexRef);\n\n if (!ctx.open) return null;\n\n itemIndexRef.current = 0;\n\n const floatingProps = ctx.getFloatingProps(props);\n\n return (\n <Portal>\n <MenuItemContext\n value={{\n getItemProps,\n indexRef: itemIndexRef,\n close: () => ctx.onOpenChange(false),\n }}\n >\n <div\n ref={composedRef}\n style={ctx.floatingStyles}\n data-state=\"open\"\n {...floatingProps}\n className={cn(menuContentVariants(), className)}\n >\n {children}\n </div>\n </MenuItemContext>\n </Portal>\n );\n}\n\nDropdownMenuContent.displayName = \"DropdownMenuContent\";\n\nexport { DropdownMenuContent };\n"],"mappings":";;;;;;;;;;;AAiBA,SAAS,EAAoB,EAC3B,QACA,cACA,aACA,GAAG,KACwB;CAC3B,IAAM,IAAM,GAAwB,EAE9B,IAAc,EAAY,GADb,EAAM,OAAuB,KAAK,EACJ,EAAI,KAAK,YAAY,EAEhE,EAAE,iBAAc,cAAW,aAAU,sBACzC,EAAkB;EAChB,gBAAgB,EAAI,aAAa,GAAM;EACvC,aAAa,EAAI,aAAa,GAAM;EACrC,CAAC,EAEE,IAAe,EAAM,OAAO,EAAE;AAQpC,KANA,EAAM,gBAAgB;AACpB,EAAK,EAAI,QAAM,GAAgB;IAC9B,CAAC,EAAI,MAAM,EAAe,CAAC,EAE9B,EAAsB,EAAI,MAAM,GAAW,GAAU,EAAa,EAE9D,CAAC,EAAI,KAAM,QAAO;AAEtB,GAAa,UAAU;CAEvB,IAAM,IAAgB,EAAI,iBAAiB,EAAM;AAEjD,QACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;EACE,OAAO;GACL;GACA,UAAU;GACV,aAAa,EAAI,aAAa,GAAM;GACrC;YAED,kBAAC,OAAD;GACE,KAAK;GACL,OAAO,EAAI;GACX,cAAW;GACX,GAAI;GACJ,WAAW,EAAG,GAAqB,EAAE,EAAU;GAE9C;GACG,CAAA;EACU,CAAA,EACX,CAAA;;AAIb,EAAoB,cAAc"}
1
+ {"version":3,"file":"DropdownMenuContent.js","names":[],"sources":["../../../src/components/DropdownMenu/DropdownMenuContent.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { composeRefs } from \"@nuka/utils/slot\";\nimport { useMenuNavigation } from \"@nuka/hooks/use-menu-navigation\";\nimport { Portal } from \"@nuka/utils/portal\";\nimport { menuContentVariants } from \"@nuka/components/Menu/menuItemVariants\";\nimport {\n MenuItemContext,\n useAutoFocusFirstItem,\n} from \"@nuka/components/Menu/MenuContentBase\";\nimport { useDropdownMenuContext } from \"@nuka/components/DropdownMenu/DropdownMenu.context\";\n\nexport interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n}\n\nfunction DropdownMenuContent({\n ref,\n className,\n children,\n ...props\n}: DropdownMenuContentProps) {\n const ctx = useDropdownMenuContext();\n const contentRef = React.useRef<HTMLDivElement>(null);\n const composedRef = composeRefs(ref, contentRef, ctx.refs.setFloating);\n\n const { getItemProps, focusItem, itemsRef, resetTypeAhead } =\n useMenuNavigation({\n onEscape: () => ctx.onOpenChange(false),\n onTab: () => ctx.onOpenChange(false),\n });\n\n const itemIndexRef = React.useRef(0);\n\n React.useEffect(() => {\n if (!ctx.open) resetTypeAhead();\n }, [ctx.open, resetTypeAhead]);\n\n useAutoFocusFirstItem(ctx.open, focusItem, itemsRef, itemIndexRef);\n\n if (!ctx.open) return null;\n\n itemIndexRef.current = 0;\n\n const floatingProps = ctx.getFloatingProps(props);\n\n return (\n <Portal>\n <MenuItemContext\n value={{\n getItemProps,\n indexRef: itemIndexRef,\n close: () => ctx.onOpenChange(false),\n }}\n >\n <div\n ref={composedRef}\n style={ctx.floatingStyles}\n data-slot=\"content\"\n data-state=\"open\"\n {...floatingProps}\n className={cn(menuContentVariants(), className)}\n >\n {children}\n </div>\n </MenuItemContext>\n </Portal>\n );\n}\n\nDropdownMenuContent.displayName = \"DropdownMenuContent\";\n\nexport { DropdownMenuContent };\n"],"mappings":";;;;;;;;;;;AAiBA,SAAS,EAAoB,EAC3B,QACA,cACA,aACA,GAAG,KACwB;CAC3B,IAAM,IAAM,GAAwB,EAE9B,IAAc,EAAY,GADb,EAAM,OAAuB,KAAK,EACJ,EAAI,KAAK,YAAY,EAEhE,EAAE,iBAAc,cAAW,aAAU,sBACzC,EAAkB;EAChB,gBAAgB,EAAI,aAAa,GAAM;EACvC,aAAa,EAAI,aAAa,GAAM;EACrC,CAAC,EAEE,IAAe,EAAM,OAAO,EAAE;AAQpC,KANA,EAAM,gBAAgB;AACpB,EAAK,EAAI,QAAM,GAAgB;IAC9B,CAAC,EAAI,MAAM,EAAe,CAAC,EAE9B,EAAsB,EAAI,MAAM,GAAW,GAAU,EAAa,EAE9D,CAAC,EAAI,KAAM,QAAO;AAEtB,GAAa,UAAU;CAEvB,IAAM,IAAgB,EAAI,iBAAiB,EAAM;AAEjD,QACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;EACE,OAAO;GACL;GACA,UAAU;GACV,aAAa,EAAI,aAAa,GAAM;GACrC;YAED,kBAAC,OAAD;GACE,KAAK;GACL,OAAO,EAAI;GACX,aAAU;GACV,cAAW;GACX,GAAI;GACJ,WAAW,EAAG,GAAqB,EAAE,EAAU;GAE9C;GACG,CAAA;EACU,CAAA,EACX,CAAA;;AAIb,EAAoB,cAAc"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/slot.cjs`),n=require(`./DropdownMenu.context.cjs`);let r=require(`react`);r=e.__toESM(r,1);let i=require(`react/jsx-runtime`);function a({ref:e,asChild:r=!1,children:a,...o}){let s=n.useDropdownMenuContext(),c=t.composeRefs(e,s.refs.setReference),l=r?t.Slot:`button`,u=s.getReferenceProps(o);return(0,i.jsx)(l,{ref:c,type:r?void 0:`button`,"aria-haspopup":`menu`,"aria-expanded":s.open,...u,children:a})}a.displayName=`DropdownMenuTrigger`,exports.DropdownMenuTrigger=a;
1
+ "use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/slot.cjs`),n=require(`./DropdownMenu.context.cjs`);let r=require(`react`);r=e.__toESM(r,1);let i=require(`react/jsx-runtime`);function a({ref:e,asChild:r=!1,children:a,...o}){let s=n.useDropdownMenuContext(),c=t.composeRefs(e,s.refs.setReference),l=r?t.Slot:`button`,u=s.getReferenceProps(o);return(0,i.jsx)(l,{ref:c,type:r?void 0:`button`,"aria-haspopup":`menu`,"aria-expanded":s.open,"data-slot":`trigger`,...u,children:a})}a.displayName=`DropdownMenuTrigger`,exports.DropdownMenuTrigger=a;
2
2
  //# sourceMappingURL=DropdownMenuTrigger.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenuTrigger.cjs","names":[],"sources":["../../../src/components/DropdownMenu/DropdownMenuTrigger.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { Slot, composeRefs } from \"@nuka/utils/slot\";\nimport { useDropdownMenuContext } from \"@nuka/components/DropdownMenu/DropdownMenu.context\";\n\nexport interface DropdownMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n ref?: React.Ref<HTMLButtonElement> | undefined;\n asChild?: boolean;\n}\n\nfunction DropdownMenuTrigger({\n ref,\n asChild = false,\n children,\n ...props\n}: DropdownMenuTriggerProps) {\n const ctx = useDropdownMenuContext();\n const composedRef = composeRefs(ref, ctx.refs.setReference);\n const Comp = asChild ? Slot : \"button\";\n const triggerProps = ctx.getReferenceProps(props);\n\n return (\n <Comp\n ref={composedRef}\n type={asChild ? undefined : \"button\"}\n aria-haspopup=\"menu\"\n aria-expanded={ctx.open}\n // Safe: Floating UI's getReferenceProps() returns Record<string, unknown>;\n // values are standard DOM event handlers (onClick, onKeyDown, etc.).\n {...(triggerProps as React.ButtonHTMLAttributes<HTMLButtonElement>)}\n >\n {children}\n </Comp>\n );\n}\n\nDropdownMenuTrigger.displayName = \"DropdownMenuTrigger\";\n\nexport { DropdownMenuTrigger };\n"],"mappings":"0NAUA,SAAS,EAAoB,CAC3B,MACA,UAAU,GACV,WACA,GAAG,GACwB,CAC3B,IAAM,EAAM,EAAA,wBAAwB,CAC9B,EAAc,EAAA,YAAY,EAAK,EAAI,KAAK,aAAa,CACrD,EAAO,EAAU,EAAA,KAAO,SACxB,EAAe,EAAI,kBAAkB,EAAM,CAEjD,OACE,EAAA,EAAA,KAAC,EAAD,CACE,IAAK,EACL,KAAM,EAAU,IAAA,GAAY,SAC5B,gBAAc,OACd,gBAAe,EAAI,KAGnB,GAAK,EAEJ,WACI,CAAA,CAIX,EAAoB,YAAc"}
1
+ {"version":3,"file":"DropdownMenuTrigger.cjs","names":[],"sources":["../../../src/components/DropdownMenu/DropdownMenuTrigger.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { Slot, composeRefs } from \"@nuka/utils/slot\";\nimport { useDropdownMenuContext } from \"@nuka/components/DropdownMenu/DropdownMenu.context\";\n\nexport interface DropdownMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n ref?: React.Ref<HTMLButtonElement> | undefined;\n asChild?: boolean;\n}\n\nfunction DropdownMenuTrigger({\n ref,\n asChild = false,\n children,\n ...props\n}: DropdownMenuTriggerProps) {\n const ctx = useDropdownMenuContext();\n const composedRef = composeRefs(ref, ctx.refs.setReference);\n const Comp = asChild ? Slot : \"button\";\n const triggerProps = ctx.getReferenceProps(props);\n\n return (\n <Comp\n ref={composedRef}\n type={asChild ? undefined : \"button\"}\n aria-haspopup=\"menu\"\n aria-expanded={ctx.open}\n data-slot=\"trigger\"\n // Safe: Floating UI's getReferenceProps() returns Record<string, unknown>;\n // values are standard DOM event handlers (onClick, onKeyDown, etc.).\n {...(triggerProps as React.ButtonHTMLAttributes<HTMLButtonElement>)}\n >\n {children}\n </Comp>\n );\n}\n\nDropdownMenuTrigger.displayName = \"DropdownMenuTrigger\";\n\nexport { DropdownMenuTrigger };\n"],"mappings":"0NAUA,SAAS,EAAoB,CAC3B,MACA,UAAU,GACV,WACA,GAAG,GACwB,CAC3B,IAAM,EAAM,EAAA,wBAAwB,CAC9B,EAAc,EAAA,YAAY,EAAK,EAAI,KAAK,aAAa,CACrD,EAAO,EAAU,EAAA,KAAO,SACxB,EAAe,EAAI,kBAAkB,EAAM,CAEjD,OACE,EAAA,EAAA,KAAC,EAAD,CACE,IAAK,EACL,KAAM,EAAU,IAAA,GAAY,SAC5B,gBAAc,OACd,gBAAe,EAAI,KACnB,YAAU,UAGV,GAAK,EAEJ,WACI,CAAA,CAIX,EAAoB,YAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenuTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenuTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,wBAAyB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC7F,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,iBAAS,mBAAmB,CAAC,EAC3B,GAAG,EACH,OAAe,EACf,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,wBAAwB,2CAmB1B;kBAxBQ,mBAAmB;;;AA4B5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"DropdownMenuTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenuTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,wBAAyB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC7F,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,iBAAS,mBAAmB,CAAC,EAC3B,GAAG,EACH,OAAe,EACf,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,wBAAwB,2CAoB1B;kBAzBQ,mBAAmB;;;AA6B5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -11,6 +11,7 @@ function i({ ref: i, asChild: a = !1, children: o, ...s }) {
11
11
  type: a ? void 0 : "button",
12
12
  "aria-haspopup": "menu",
13
13
  "aria-expanded": c.open,
14
+ "data-slot": "trigger",
14
15
  ...d,
15
16
  children: o
16
17
  });
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenuTrigger.js","names":[],"sources":["../../../src/components/DropdownMenu/DropdownMenuTrigger.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { Slot, composeRefs } from \"@nuka/utils/slot\";\nimport { useDropdownMenuContext } from \"@nuka/components/DropdownMenu/DropdownMenu.context\";\n\nexport interface DropdownMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n ref?: React.Ref<HTMLButtonElement> | undefined;\n asChild?: boolean;\n}\n\nfunction DropdownMenuTrigger({\n ref,\n asChild = false,\n children,\n ...props\n}: DropdownMenuTriggerProps) {\n const ctx = useDropdownMenuContext();\n const composedRef = composeRefs(ref, ctx.refs.setReference);\n const Comp = asChild ? Slot : \"button\";\n const triggerProps = ctx.getReferenceProps(props);\n\n return (\n <Comp\n ref={composedRef}\n type={asChild ? undefined : \"button\"}\n aria-haspopup=\"menu\"\n aria-expanded={ctx.open}\n // Safe: Floating UI's getReferenceProps() returns Record<string, unknown>;\n // values are standard DOM event handlers (onClick, onKeyDown, etc.).\n {...(triggerProps as React.ButtonHTMLAttributes<HTMLButtonElement>)}\n >\n {children}\n </Comp>\n );\n}\n\nDropdownMenuTrigger.displayName = \"DropdownMenuTrigger\";\n\nexport { DropdownMenuTrigger };\n"],"mappings":";;;;;;AAUA,SAAS,EAAoB,EAC3B,QACA,aAAU,IACV,aACA,GAAG,KACwB;CAC3B,IAAM,IAAM,GAAwB,EAC9B,IAAc,EAAY,GAAK,EAAI,KAAK,aAAa,EACrD,IAAO,IAAU,IAAO,UACxB,IAAe,EAAI,kBAAkB,EAAM;AAEjD,QACE,kBAAC,GAAD;EACE,KAAK;EACL,MAAM,IAAU,KAAA,IAAY;EAC5B,iBAAc;EACd,iBAAe,EAAI;EAGnB,GAAK;EAEJ;EACI,CAAA;;AAIX,EAAoB,cAAc"}
1
+ {"version":3,"file":"DropdownMenuTrigger.js","names":[],"sources":["../../../src/components/DropdownMenu/DropdownMenuTrigger.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { Slot, composeRefs } from \"@nuka/utils/slot\";\nimport { useDropdownMenuContext } from \"@nuka/components/DropdownMenu/DropdownMenu.context\";\n\nexport interface DropdownMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n ref?: React.Ref<HTMLButtonElement> | undefined;\n asChild?: boolean;\n}\n\nfunction DropdownMenuTrigger({\n ref,\n asChild = false,\n children,\n ...props\n}: DropdownMenuTriggerProps) {\n const ctx = useDropdownMenuContext();\n const composedRef = composeRefs(ref, ctx.refs.setReference);\n const Comp = asChild ? Slot : \"button\";\n const triggerProps = ctx.getReferenceProps(props);\n\n return (\n <Comp\n ref={composedRef}\n type={asChild ? undefined : \"button\"}\n aria-haspopup=\"menu\"\n aria-expanded={ctx.open}\n data-slot=\"trigger\"\n // Safe: Floating UI's getReferenceProps() returns Record<string, unknown>;\n // values are standard DOM event handlers (onClick, onKeyDown, etc.).\n {...(triggerProps as React.ButtonHTMLAttributes<HTMLButtonElement>)}\n >\n {children}\n </Comp>\n );\n}\n\nDropdownMenuTrigger.displayName = \"DropdownMenuTrigger\";\n\nexport { DropdownMenuTrigger };\n"],"mappings":";;;;;;AAUA,SAAS,EAAoB,EAC3B,QACA,aAAU,IACV,aACA,GAAG,KACwB;CAC3B,IAAM,IAAM,GAAwB,EAC9B,IAAc,EAAY,GAAK,EAAI,KAAK,aAAa,EACrD,IAAO,IAAU,IAAO,UACxB,IAAe,EAAI,kBAAkB,EAAM;AAEjD,QACE,kBAAC,GAAD;EACE,KAAK;EACL,MAAM,IAAU,KAAA,IAAY;EAC5B,iBAAc;EACd,iBAAe,EAAI;EACnB,aAAU;EAGV,GAAK;EAEJ;EACI,CAAA;;AAIX,EAAoB,cAAc"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../Text/Text.cjs`);let r=require(`react`);r=e.__toESM(r,1);let i=require(`react/jsx-runtime`);function a({ref:e,className:r,illustration:a,icon:o,heading:s,description:c,action:l,children:u,...d}){let f=a??o??null;return(0,i.jsxs)(`div`,{ref:e,className:t.cn(`flex flex-col items-center justify-center text-center`,`gap-(--space-4)`,`py-(--space-12) px-(--space-6)`,r),...d,children:[f&&(0,i.jsx)(`div`,{className:`flex items-center justify-center text-(--nuka-text-muted)`,children:f}),(0,i.jsxs)(`div`,{className:`flex flex-col gap-(--space-2) max-w-sm`,children:[(0,i.jsx)(n.Text,{as:`p`,size:`md`,weight:`semibold`,children:s}),c!=null&&(0,i.jsx)(n.Text,{as:`p`,size:`sm`,color:`muted`,children:c})]}),l&&(0,i.jsx)(`div`,{children:l}),u]})}a.displayName=`EmptyState`,exports.EmptyState=a;
1
+ "use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../Text/Text.cjs`);let r=require(`react`);r=e.__toESM(r,1);let i=require(`react/jsx-runtime`);function a({ref:e,className:r,illustration:a,icon:o,heading:s,description:c,action:l,headingWeight:u,descriptionWeight:d,children:f,...p}){let m=a??o??null;return(0,i.jsxs)(`div`,{ref:e,className:t.cn(`flex flex-col items-center justify-center text-center`,`gap-(--space-4)`,`py-(--space-12) px-(--space-6)`,r),"data-slot":`root`,...p,children:[m&&(0,i.jsx)(`div`,{className:`flex items-center justify-center text-(--nuka-text-muted)`,"data-slot":`visual`,children:m}),(0,i.jsxs)(`div`,{className:`flex flex-col gap-(--space-2) max-w-sm`,children:[(0,i.jsx)(n.Text,{as:`p`,size:`md`,weight:u??`semibold`,"data-slot":`heading`,children:s}),c!=null&&(0,i.jsx)(n.Text,{as:`p`,size:`sm`,color:`muted`,"data-slot":`description`,...d===void 0?{}:{weight:d},children:c})]}),l&&(0,i.jsx)(`div`,{"data-slot":`action`,children:l}),f]})}a.displayName=`EmptyState`,exports.EmptyState=a;
2
2
  //# sourceMappingURL=EmptyState.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyState.cjs","names":[],"sources":["../../../src/components/EmptyState/EmptyState.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Text } from \"@nuka/components/Text\";\n\nexport interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n illustration?: React.ReactNode;\n icon?: React.ReactNode;\n heading: string;\n description?: string;\n action?: React.ReactNode;\n}\n\nfunction EmptyState({\n ref,\n className,\n illustration,\n icon,\n heading,\n description,\n action,\n children,\n ...props\n}: EmptyStateProps) {\n const visual = illustration ?? icon ?? null;\n\n return (\n <div\n ref={ref}\n className={cn(\n \"flex flex-col items-center justify-center text-center\",\n \"gap-(--space-4)\",\n \"py-(--space-12) px-(--space-6)\",\n className,\n )}\n {...props}\n >\n {visual && (\n <div className=\"flex items-center justify-center text-(--nuka-text-muted)\">\n {visual}\n </div>\n )}\n <div className=\"flex flex-col gap-(--space-2) max-w-sm\">\n <Text as=\"p\" size=\"md\" weight=\"semibold\">\n {heading}\n </Text>\n {description != null && (\n <Text as=\"p\" size=\"sm\" color=\"muted\">\n {description}\n </Text>\n )}\n </div>\n {action && <div>{action}</div>}\n {children}\n </div>\n );\n}\n\nEmptyState.displayName = \"EmptyState\";\n\nexport { EmptyState };\n"],"mappings":"8MAeA,SAAS,EAAW,CAClB,MACA,YACA,eACA,OACA,UACA,cACA,SACA,WACA,GAAG,GACe,CAClB,IAAM,EAAS,GAAgB,GAAQ,KAEvC,OACE,EAAA,EAAA,MAAC,MAAD,CACO,MACL,UAAW,EAAA,GACT,wDACA,kBACA,iCACA,EACD,CACD,GAAI,WARN,CAUG,IACC,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,qEACZ,EACG,CAAA,EAER,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,kDAAf,EACE,EAAA,EAAA,KAAC,EAAA,KAAD,CAAM,GAAG,IAAI,KAAK,KAAK,OAAO,oBAC3B,EACI,CAAA,CACN,GAAe,OACd,EAAA,EAAA,KAAC,EAAA,KAAD,CAAM,GAAG,IAAI,KAAK,KAAK,MAAM,iBAC1B,EACI,CAAA,CAEL,GACL,IAAU,EAAA,EAAA,KAAC,MAAD,CAAA,SAAM,EAAa,CAAA,CAC7B,EACG,GAIV,EAAW,YAAc"}
1
+ {"version":3,"file":"EmptyState.cjs","names":[],"sources":["../../../src/components/EmptyState/EmptyState.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Text } from \"@nuka/components/Text\";\nimport type { TextVariantProps } from \"@nuka/components/Text/Text.variants\";\n\nexport interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n illustration?: React.ReactNode;\n icon?: React.ReactNode;\n heading: string;\n description?: string;\n action?: React.ReactNode;\n headingWeight?: TextVariantProps[\"weight\"];\n descriptionWeight?: TextVariantProps[\"weight\"];\n}\n\nfunction EmptyState({\n ref,\n className,\n illustration,\n icon,\n heading,\n description,\n action,\n headingWeight,\n descriptionWeight,\n children,\n ...props\n}: EmptyStateProps) {\n const visual = illustration ?? icon ?? null;\n\n return (\n <div\n ref={ref}\n className={cn(\n \"flex flex-col items-center justify-center text-center\",\n \"gap-(--space-4)\",\n \"py-(--space-12) px-(--space-6)\",\n className,\n )}\n data-slot=\"root\"\n {...props}\n >\n {visual && (\n <div\n className=\"flex items-center justify-center text-(--nuka-text-muted)\"\n data-slot=\"visual\"\n >\n {visual}\n </div>\n )}\n <div className=\"flex flex-col gap-(--space-2) max-w-sm\">\n <Text\n as=\"p\"\n size=\"md\"\n weight={headingWeight ?? \"semibold\"}\n data-slot=\"heading\"\n >\n {heading}\n </Text>\n {description != null && (\n <Text\n as=\"p\"\n size=\"sm\"\n color=\"muted\"\n data-slot=\"description\"\n {...(descriptionWeight !== undefined\n ? { weight: descriptionWeight }\n : {})}\n >\n {description}\n </Text>\n )}\n </div>\n {action && <div data-slot=\"action\">{action}</div>}\n {children}\n </div>\n );\n}\n\nEmptyState.displayName = \"EmptyState\";\n\nexport { EmptyState };\n"],"mappings":"8MAkBA,SAAS,EAAW,CAClB,MACA,YACA,eACA,OACA,UACA,cACA,SACA,gBACA,oBACA,WACA,GAAG,GACe,CAClB,IAAM,EAAS,GAAgB,GAAQ,KAEvC,OACE,EAAA,EAAA,MAAC,MAAD,CACO,MACL,UAAW,EAAA,GACT,wDACA,kBACA,iCACA,EACD,CACD,YAAU,OACV,GAAI,WATN,CAWG,IACC,EAAA,EAAA,KAAC,MAAD,CACE,UAAU,4DACV,YAAU,kBAET,EACG,CAAA,EAER,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,kDAAf,EACE,EAAA,EAAA,KAAC,EAAA,KAAD,CACE,GAAG,IACH,KAAK,KACL,OAAQ,GAAiB,WACzB,YAAU,mBAET,EACI,CAAA,CACN,GAAe,OACd,EAAA,EAAA,KAAC,EAAA,KAAD,CACE,GAAG,IACH,KAAK,KACL,MAAM,QACN,YAAU,cACV,GAAK,IAAsB,IAAA,GAEvB,EAAE,CADF,CAAE,OAAQ,EAAmB,UAGhC,EACI,CAAA,CAEL,GACL,IAAU,EAAA,EAAA,KAAC,MAAD,CAAK,YAAU,kBAAU,EAAa,CAAA,CAChD,EACG,GAIV,EAAW,YAAc"}
@@ -1,3 +1,4 @@
1
+ import { TextVariantProps } from '../Text/Text.variants';
1
2
  import * as React from "react";
2
3
  export interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {
3
4
  ref?: React.Ref<HTMLDivElement> | undefined;
@@ -6,8 +7,10 @@ export interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {
6
7
  heading: string;
7
8
  description?: string;
8
9
  action?: React.ReactNode;
10
+ headingWeight?: TextVariantProps["weight"];
11
+ descriptionWeight?: TextVariantProps["weight"];
9
12
  }
10
- declare function EmptyState({ ref, className, illustration, icon, heading, description, action, children, ...props }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function EmptyState({ ref, className, illustration, icon, heading, description, action, headingWeight, descriptionWeight, children, ...props }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
11
14
  declare namespace EmptyState {
12
15
  var displayName: string;
13
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;IAC5C,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,iBAAS,UAAU,C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