@k8ordo/ui 2.2.0 → 2.3.1

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 (461) hide show
  1. package/README.md +1 -1
  2. package/dist/components/_internal/focus-ring.css +8 -2
  3. package/dist/components/_internal/focus-ring.module.mjs +1 -2
  4. package/dist/components/_internal/form-value.d.mts +0 -2
  5. package/dist/components/_internal/form-value.mjs +1 -2
  6. package/dist/components/_internal/high-contrast.module.mjs +1 -2
  7. package/dist/components/_internal/ignore-changes.d.mts +1 -3
  8. package/dist/components/_internal/ignore-changes.mjs +1 -2
  9. package/dist/components/_internal/nav-link.d.mts +2 -4
  10. package/dist/components/_internal/nav-link.mjs +1 -2
  11. package/dist/components/_internal/nav-link.module.mjs +1 -2
  12. package/dist/components/_internal/sr-only.module.mjs +1 -2
  13. package/dist/components/_internal/status-tone.d.mts +9 -11
  14. package/dist/components/_internal/status-tone.mjs +1 -2
  15. package/dist/components/_internal/status-tone.module.mjs +1 -2
  16. package/dist/components/ai/_internal/attachment-preview.d.mts +0 -2
  17. package/dist/components/ai/_internal/attachment-preview.mjs +1 -2
  18. package/dist/components/ai/_internal/attachment-preview.module.mjs +1 -2
  19. package/dist/components/ai/_internal/collapsible.d.mts +0 -2
  20. package/dist/components/ai/_internal/collapsible.mjs +1 -2
  21. package/dist/components/ai/_internal/collapsible.module.mjs +1 -2
  22. package/dist/components/ai/_internal/icons.d.mts +0 -2
  23. package/dist/components/ai/_internal/icons.mjs +1 -2
  24. package/dist/components/ai/_internal/streaming-cursor.d.mts +1 -3
  25. package/dist/components/ai/_internal/streaming-cursor.mjs +1 -2
  26. package/dist/components/ai/_internal/streaming-cursor.module.mjs +1 -2
  27. package/dist/components/ai/attachment/attachment.d.mts +0 -2
  28. package/dist/components/ai/attachment/attachment.mjs +1 -2
  29. package/dist/components/ai/attachment/attachment.module.mjs +1 -2
  30. package/dist/components/ai/attachment/index.d.mts +1 -3
  31. package/dist/components/ai/attachment/index.mjs +1 -2
  32. package/dist/components/ai/conversation/conversation.d.mts +0 -2
  33. package/dist/components/ai/conversation/conversation.mjs +1 -2
  34. package/dist/components/ai/conversation/conversation.module.mjs +1 -2
  35. package/dist/components/ai/conversation/index.d.mts +1 -3
  36. package/dist/components/ai/conversation/index.mjs +1 -2
  37. package/dist/components/ai/message/index.d.mts +1 -3
  38. package/dist/components/ai/message/index.mjs +1 -2
  39. package/dist/components/ai/message/message.d.mts +0 -2
  40. package/dist/components/ai/message/message.mjs +1 -2
  41. package/dist/components/ai/message/message.module.mjs +1 -2
  42. package/dist/components/ai/prompt-input/index.d.mts +1 -3
  43. package/dist/components/ai/prompt-input/index.mjs +1 -2
  44. package/dist/components/ai/prompt-input/prompt-input.d.mts +0 -2
  45. package/dist/components/ai/prompt-input/prompt-input.mjs +1 -2
  46. package/dist/components/ai/prompt-input/prompt-input.module.mjs +1 -2
  47. package/dist/components/ai/reasoning/reasoning.d.mts +0 -2
  48. package/dist/components/ai/reasoning/reasoning.mjs +1 -2
  49. package/dist/components/ai/reasoning/reasoning.module.mjs +1 -2
  50. package/dist/components/ai/response/response.d.mts +0 -2
  51. package/dist/components/ai/response/response.mjs +1 -2
  52. package/dist/components/ai/response/response.module.mjs +1 -2
  53. package/dist/components/ai/source/index.d.mts +1 -3
  54. package/dist/components/ai/source/index.mjs +1 -2
  55. package/dist/components/ai/source/source.d.mts +0 -2
  56. package/dist/components/ai/source/source.mjs +1 -2
  57. package/dist/components/ai/source/source.module.mjs +1 -2
  58. package/dist/components/ai/suggestion/index.d.mts +1 -3
  59. package/dist/components/ai/suggestion/index.mjs +1 -2
  60. package/dist/components/ai/suggestion/suggestion.d.mts +0 -2
  61. package/dist/components/ai/suggestion/suggestion.mjs +1 -2
  62. package/dist/components/ai/suggestion/suggestion.module.mjs +1 -2
  63. package/dist/components/ai/tool-invocation/approval-bar.d.mts +0 -2
  64. package/dist/components/ai/tool-invocation/approval-bar.mjs +1 -2
  65. package/dist/components/ai/tool-invocation/approval-bar.module.mjs +1 -2
  66. package/dist/components/ai/tool-invocation/tool-invocation.d.mts +0 -2
  67. package/dist/components/ai/tool-invocation/tool-invocation.mjs +1 -2
  68. package/dist/components/ai/tool-invocation/tool-invocation.module.mjs +1 -2
  69. package/dist/components/ai/types.d.mts +1 -3
  70. package/dist/components/buttons/button/button.d.mts +0 -2
  71. package/dist/components/buttons/button/button.mjs +1 -2
  72. package/dist/components/buttons/button/button.module.mjs +1 -2
  73. package/dist/components/buttons/copy-button/copy-button.d.mts +1 -3
  74. package/dist/components/buttons/copy-button/copy-button.mjs +1 -2
  75. package/dist/components/buttons/copy-button/copy-button.module.mjs +1 -2
  76. package/dist/components/buttons/icon-button/icon-button.d.mts +0 -2
  77. package/dist/components/buttons/icon-button/icon-button.mjs +1 -2
  78. package/dist/components/buttons/icon-button/icon-button.module.mjs +1 -2
  79. package/dist/components/buttons/toolbar/index.d.mts +0 -2
  80. package/dist/components/buttons/toolbar/index.mjs +1 -2
  81. package/dist/components/buttons/toolbar/toolbar.d.mts +0 -2
  82. package/dist/components/buttons/toolbar/toolbar.mjs +1 -2
  83. package/dist/components/buttons/toolbar/toolbar.module.mjs +1 -2
  84. package/dist/components/data-display/accordion/accordion-button.d.mts +1 -3
  85. package/dist/components/data-display/accordion/accordion-button.mjs +1 -2
  86. package/dist/components/data-display/accordion/accordion-button.module.mjs +1 -2
  87. package/dist/components/data-display/accordion/accordion-item.d.mts +1 -3
  88. package/dist/components/data-display/accordion/accordion-item.mjs +1 -2
  89. package/dist/components/data-display/accordion/accordion-item.module.mjs +1 -2
  90. package/dist/components/data-display/accordion/accordion-panel.d.mts +1 -3
  91. package/dist/components/data-display/accordion/accordion-panel.mjs +1 -2
  92. package/dist/components/data-display/accordion/accordion-panel.module.mjs +1 -2
  93. package/dist/components/data-display/accordion/accordion.d.mts +1 -3
  94. package/dist/components/data-display/accordion/accordion.mjs +1 -2
  95. package/dist/components/data-display/accordion/accordion.module.mjs +1 -2
  96. package/dist/components/data-display/accordion/context.d.mts +0 -2
  97. package/dist/components/data-display/accordion/context.mjs +1 -2
  98. package/dist/components/data-display/accordion/index.d.mts +1 -3
  99. package/dist/components/data-display/accordion/index.mjs +1 -2
  100. package/dist/components/data-display/avatar/avatar.d.mts +0 -2
  101. package/dist/components/data-display/avatar/avatar.mjs +1 -2
  102. package/dist/components/data-display/avatar/avatar.module.mjs +1 -2
  103. package/dist/components/data-display/badge/badge.d.mts +0 -2
  104. package/dist/components/data-display/badge/badge.mjs +1 -2
  105. package/dist/components/data-display/badge/badge.module.mjs +1 -2
  106. package/dist/components/data-display/card/card.d.mts +0 -2
  107. package/dist/components/data-display/card/card.mjs +1 -2
  108. package/dist/components/data-display/card/card.module.mjs +1 -2
  109. package/dist/components/data-display/carousel/carousel.d.mts +0 -2
  110. package/dist/components/data-display/carousel/carousel.mjs +1 -2
  111. package/dist/components/data-display/carousel/carousel.module.mjs +1 -2
  112. package/dist/components/data-display/carousel/index.d.mts +1 -3
  113. package/dist/components/data-display/carousel/index.mjs +1 -2
  114. package/dist/components/data-display/code/code.d.mts +0 -2
  115. package/dist/components/data-display/code/code.mjs +1 -2
  116. package/dist/components/data-display/code/code.module.mjs +1 -2
  117. package/dist/components/data-display/code/find-all-colors.d.mts +0 -2
  118. package/dist/components/data-display/code/find-all-colors.mjs +1 -2
  119. package/dist/components/data-display/code-block/code-block.d.mts +0 -2
  120. package/dist/components/data-display/code-block/code-block.mjs +1 -2
  121. package/dist/components/data-display/code-block/code-block.module.mjs +1 -2
  122. package/dist/components/data-display/code-block/highlight.d.mts +0 -2
  123. package/dist/components/data-display/code-block/highlight.mjs +1 -2
  124. package/dist/components/data-display/data-table/data-table.d.mts +0 -2
  125. package/dist/components/data-display/data-table/data-table.mjs +1 -2
  126. package/dist/components/data-display/data-table/data-table.module.mjs +1 -2
  127. package/dist/components/data-display/heading/heading.d.mts +0 -2
  128. package/dist/components/data-display/heading/heading.mjs +1 -2
  129. package/dist/components/data-display/heading/heading.module.mjs +1 -2
  130. package/dist/components/data-display/kbd/kbd.d.mts +0 -2
  131. package/dist/components/data-display/kbd/kbd.mjs +1 -2
  132. package/dist/components/data-display/kbd/kbd.module.mjs +1 -2
  133. package/dist/components/data-display/prose/prose.css +5 -0
  134. package/dist/components/data-display/prose/prose.d.mts +0 -2
  135. package/dist/components/data-display/prose/prose.mjs +1 -2
  136. package/dist/components/data-display/prose/prose.module.mjs +1 -2
  137. package/dist/components/data-display/table/table.d.mts +0 -2
  138. package/dist/components/data-display/table/table.mjs +1 -2
  139. package/dist/components/data-display/table/table.module.mjs +1 -2
  140. package/dist/components/data-display/tree/tree.d.mts +0 -2
  141. package/dist/components/data-display/tree/tree.mjs +1 -2
  142. package/dist/components/data-display/tree/tree.module.mjs +1 -2
  143. package/dist/components/feedback/alert/alert.d.mts +0 -2
  144. package/dist/components/feedback/alert/alert.mjs +1 -2
  145. package/dist/components/feedback/alert/alert.module.mjs +1 -2
  146. package/dist/components/feedback/callout/callout.d.mts +0 -2
  147. package/dist/components/feedback/callout/callout.mjs +1 -2
  148. package/dist/components/feedback/callout/callout.module.mjs +1 -2
  149. package/dist/components/feedback/empty-state/empty-state.d.mts +0 -2
  150. package/dist/components/feedback/empty-state/empty-state.mjs +1 -2
  151. package/dist/components/feedback/empty-state/empty-state.module.mjs +1 -2
  152. package/dist/components/feedback/progress/progress.d.mts +0 -2
  153. package/dist/components/feedback/progress/progress.mjs +1 -2
  154. package/dist/components/feedback/progress/progress.module.mjs +1 -2
  155. package/dist/components/feedback/skeleton/skeleton.d.mts +0 -2
  156. package/dist/components/feedback/skeleton/skeleton.mjs +1 -2
  157. package/dist/components/feedback/skeleton/skeleton.module.mjs +1 -2
  158. package/dist/components/feedback/spinner/spinner.d.mts +0 -2
  159. package/dist/components/feedback/spinner/spinner.mjs +1 -2
  160. package/dist/components/feedback/spinner/spinner.module.mjs +1 -2
  161. package/dist/components/feedback/toast/context.d.mts +1 -3
  162. package/dist/components/feedback/toast/context.mjs +1 -2
  163. package/dist/components/feedback/toast/provider.d.mts +1 -3
  164. package/dist/components/feedback/toast/provider.mjs +51 -51
  165. package/dist/components/feedback/toast/provider.module.mjs +1 -2
  166. package/dist/components/feedback/toast/toast.d.mts +0 -2
  167. package/dist/components/feedback/toast/toast.mjs +4 -8
  168. package/dist/components/form/autocomplete/autocomplete.css +1 -1
  169. package/dist/components/form/autocomplete/autocomplete.d.mts +0 -2
  170. package/dist/components/form/autocomplete/autocomplete.mjs +3 -4
  171. package/dist/components/form/autocomplete/autocomplete.module.mjs +1 -2
  172. package/dist/components/form/calendar/calendar.d.mts +0 -2
  173. package/dist/components/form/calendar/calendar.mjs +1 -2
  174. package/dist/components/form/calendar/calendar.module.mjs +1 -2
  175. package/dist/components/form/checkbox/checkbox.d.mts +0 -2
  176. package/dist/components/form/checkbox/checkbox.mjs +1 -2
  177. package/dist/components/form/checkbox/checkbox.module.mjs +1 -2
  178. package/dist/components/form/checkbox-card/checkbox-card.d.mts +0 -2
  179. package/dist/components/form/checkbox-card/checkbox-card.mjs +1 -2
  180. package/dist/components/form/checkbox-card/checkbox-card.module.mjs +1 -2
  181. package/dist/components/form/checkbox-group/checkbox-group.d.mts +0 -2
  182. package/dist/components/form/checkbox-group/checkbox-group.mjs +1 -2
  183. package/dist/components/form/checkbox-group/checkbox-group.module.mjs +1 -2
  184. package/dist/components/form/checkbox-group/index.d.mts +1 -3
  185. package/dist/components/form/checkbox-group/index.mjs +1 -2
  186. package/dist/components/form/color-picker/color-picker.css +1 -1
  187. package/dist/components/form/color-picker/color-picker.d.mts +0 -2
  188. package/dist/components/form/color-picker/color-picker.mjs +1 -2
  189. package/dist/components/form/color-picker/color-picker.module.mjs +1 -2
  190. package/dist/components/form/combobox/combobox.css +1 -1
  191. package/dist/components/form/combobox/combobox.d.mts +0 -2
  192. package/dist/components/form/combobox/combobox.mjs +3 -7
  193. package/dist/components/form/combobox/combobox.module.mjs +1 -2
  194. package/dist/components/form/date-field/date-field.css +1 -1
  195. package/dist/components/form/date-field/date-field.d.mts +0 -2
  196. package/dist/components/form/date-field/date-field.mjs +1 -2
  197. package/dist/components/form/date-field/date-field.module.mjs +1 -2
  198. package/dist/components/form/date-picker/date-picker.d.mts +0 -2
  199. package/dist/components/form/date-picker/date-picker.mjs +1 -2
  200. package/dist/components/form/date-picker/date-picker.module.mjs +1 -2
  201. package/dist/components/form/file-field/file-field.d.mts +0 -2
  202. package/dist/components/form/file-field/file-field.mjs +1 -2
  203. package/dist/components/form/file-field/file-field.module.mjs +1 -2
  204. package/dist/components/form/file-field/index.d.mts +1 -3
  205. package/dist/components/form/file-field/index.mjs +1 -2
  206. package/dist/components/form/form/form.d.mts +0 -2
  207. package/dist/components/form/form/form.mjs +1 -2
  208. package/dist/components/form/form/form.module.mjs +1 -2
  209. package/dist/components/form/form-control/form-control.d.mts +0 -2
  210. package/dist/components/form/form-control/form-control.mjs +1 -2
  211. package/dist/components/form/form-control/form-control.module.mjs +1 -2
  212. package/dist/components/form/number-field/cast.d.mts +1 -3
  213. package/dist/components/form/number-field/cast.mjs +1 -2
  214. package/dist/components/form/number-field/number-field.css +0 -11
  215. package/dist/components/form/number-field/number-field.d.mts +0 -2
  216. package/dist/components/form/number-field/number-field.mjs +4 -3
  217. package/dist/components/form/number-field/number-field.module.mjs +1 -2
  218. package/dist/components/form/password-input/password-input.d.mts +0 -2
  219. package/dist/components/form/password-input/password-input.mjs +1 -2
  220. package/dist/components/form/password-input/password-input.module.mjs +1 -2
  221. package/dist/components/form/radio/radio.d.mts +0 -2
  222. package/dist/components/form/radio/radio.mjs +1 -2
  223. package/dist/components/form/radio/radio.module.mjs +1 -2
  224. package/dist/components/form/radio-card/radio-card.d.mts +0 -2
  225. package/dist/components/form/radio-card/radio-card.mjs +1 -2
  226. package/dist/components/form/radio-card/radio-card.module.mjs +1 -2
  227. package/dist/components/form/range-slider/range-slider.d.mts +0 -2
  228. package/dist/components/form/range-slider/range-slider.mjs +1 -2
  229. package/dist/components/form/range-slider/range-slider.module.mjs +1 -2
  230. package/dist/components/form/select/select.d.mts +0 -2
  231. package/dist/components/form/select/select.mjs +1 -2
  232. package/dist/components/form/select/select.module.mjs +1 -2
  233. package/dist/components/form/slider/range-input-class.css +12 -0
  234. package/dist/components/form/slider/range-input-class.d.mts +1 -3
  235. package/dist/components/form/slider/range-input-class.mjs +1 -2
  236. package/dist/components/form/slider/range-input-class.module.mjs +1 -2
  237. package/dist/components/form/slider/slider.d.mts +0 -2
  238. package/dist/components/form/slider/slider.mjs +1 -2
  239. package/dist/components/form/slider/slider.module.mjs +1 -2
  240. package/dist/components/form/switch/switch.d.mts +0 -2
  241. package/dist/components/form/switch/switch.mjs +1 -2
  242. package/dist/components/form/switch/switch.module.mjs +1 -2
  243. package/dist/components/form/text-field/text-field.css +0 -11
  244. package/dist/components/form/text-field/text-field.d.mts +0 -2
  245. package/dist/components/form/text-field/text-field.mjs +4 -3
  246. package/dist/components/form/text-field/text-field.module.mjs +1 -2
  247. package/dist/components/form/textarea/textarea.css +0 -11
  248. package/dist/components/form/textarea/textarea.d.mts +0 -2
  249. package/dist/components/form/textarea/textarea.mjs +4 -8
  250. package/dist/components/form/textarea/textarea.module.mjs +1 -2
  251. package/dist/components/icons/base.d.mts +1 -3
  252. package/dist/components/icons/base.mjs +1 -2
  253. package/dist/components/icons/base.module.mjs +1 -2
  254. package/dist/components/icons/browsers.d.mts +1 -3
  255. package/dist/components/icons/browsers.mjs +1 -2
  256. package/dist/components/icons/color-scale.d.mts +1 -3
  257. package/dist/components/icons/color-scale.mjs +1 -2
  258. package/dist/components/icons/github-mark.d.mts +1 -3
  259. package/dist/components/icons/github-mark.mjs +1 -2
  260. package/dist/components/icons/logo.d.mts +1 -3
  261. package/dist/components/icons/logo.mjs +1 -2
  262. package/dist/components/icons/logo.module.mjs +1 -2
  263. package/dist/components/icons/lucide.d.mts +0 -2
  264. package/dist/components/icons/lucide.mjs +1 -2
  265. package/dist/components/icons/qiita.d.mts +1 -3
  266. package/dist/components/icons/qiita.mjs +1 -2
  267. package/dist/components/icons/twitter.d.mts +1 -3
  268. package/dist/components/icons/twitter.mjs +1 -2
  269. package/dist/components/icons/twitter.module.mjs +1 -2
  270. package/dist/components/icons/vertical-writing.d.mts +1 -3
  271. package/dist/components/icons/vertical-writing.mjs +1 -2
  272. package/dist/components/layout/_shared/gap.d.mts +6 -8
  273. package/dist/components/layout/_shared/gap.mjs +1 -2
  274. package/dist/components/layout/_shared/gap.module.mjs +1 -2
  275. package/dist/components/layout/_shared/padding.d.mts +6 -8
  276. package/dist/components/layout/_shared/padding.mjs +1 -2
  277. package/dist/components/layout/_shared/padding.module.mjs +1 -2
  278. package/dist/components/layout/grid/grid.d.mts +1 -3
  279. package/dist/components/layout/grid/grid.mjs +1 -2
  280. package/dist/components/layout/grid/grid.module.mjs +1 -2
  281. package/dist/components/layout/resizable-panels/index.d.mts +1 -3
  282. package/dist/components/layout/resizable-panels/index.mjs +1 -2
  283. package/dist/components/layout/resizable-panels/resizable-panels.d.mts +0 -2
  284. package/dist/components/layout/resizable-panels/resizable-panels.mjs +1 -2
  285. package/dist/components/layout/resizable-panels/resizable-panels.module.mjs +1 -2
  286. package/dist/components/layout/separator/separator.d.mts +0 -2
  287. package/dist/components/layout/separator/separator.mjs +1 -2
  288. package/dist/components/layout/separator/separator.module.mjs +1 -2
  289. package/dist/components/layout/stack/stack.d.mts +1 -3
  290. package/dist/components/layout/stack/stack.mjs +1 -2
  291. package/dist/components/layout/stack/stack.module.mjs +1 -2
  292. package/dist/components/navigation/anchor/anchor.d.mts +0 -2
  293. package/dist/components/navigation/anchor/anchor.mjs +1 -2
  294. package/dist/components/navigation/anchor/anchor.module.mjs +1 -2
  295. package/dist/components/navigation/breadcrumb/breadcrumb.d.mts +0 -2
  296. package/dist/components/navigation/breadcrumb/breadcrumb.mjs +1 -2
  297. package/dist/components/navigation/breadcrumb/breadcrumb.module.mjs +1 -2
  298. package/dist/components/navigation/breadcrumb/index.d.mts +1 -3
  299. package/dist/components/navigation/breadcrumb/index.mjs +1 -2
  300. package/dist/components/navigation/pagination/pagination.d.mts +0 -2
  301. package/dist/components/navigation/pagination/pagination.mjs +1 -2
  302. package/dist/components/navigation/pagination/pagination.module.mjs +1 -2
  303. package/dist/components/navigation/side-nav/index.d.mts +1 -3
  304. package/dist/components/navigation/side-nav/index.mjs +1 -2
  305. package/dist/components/navigation/side-nav/side-nav.d.mts +0 -2
  306. package/dist/components/navigation/side-nav/side-nav.mjs +1 -2
  307. package/dist/components/navigation/side-nav/side-nav.module.mjs +1 -2
  308. package/dist/components/navigation/stepper/stepper.d.mts +0 -2
  309. package/dist/components/navigation/stepper/stepper.mjs +1 -2
  310. package/dist/components/navigation/stepper/stepper.module.mjs +1 -2
  311. package/dist/components/navigation/table-of-contents/table-of-contents.d.mts +1 -3
  312. package/dist/components/navigation/table-of-contents/table-of-contents.mjs +1 -2
  313. package/dist/components/navigation/table-of-contents/table-of-contents.module.mjs +1 -2
  314. package/dist/components/navigation/tabs/index.d.mts +1 -3
  315. package/dist/components/navigation/tabs/index.mjs +1 -2
  316. package/dist/components/navigation/tabs/tabs.d.mts +1 -3
  317. package/dist/components/navigation/tabs/tabs.mjs +1 -2
  318. package/dist/components/navigation/tabs/tabs.module.mjs +1 -2
  319. package/dist/components/observers/in-view/in-view.d.mts +1 -3
  320. package/dist/components/observers/in-view/in-view.mjs +1 -2
  321. package/dist/components/observers/resize/resize.d.mts +1 -3
  322. package/dist/components/observers/resize/resize.mjs +1 -2
  323. package/dist/components/overlays/_internal/modal-dialog-context.d.mts +1 -3
  324. package/dist/components/overlays/_internal/modal-dialog-context.mjs +1 -2
  325. package/dist/components/overlays/_internal/use-can-hover.d.mts +1 -3
  326. package/dist/components/overlays/_internal/use-can-hover.mjs +1 -2
  327. package/dist/components/overlays/_internal/use-hover-intent.d.mts +1 -3
  328. package/dist/components/overlays/_internal/use-hover-intent.mjs +1 -2
  329. package/dist/components/overlays/_internal/use-list-navigation.d.mts +1 -3
  330. package/dist/components/overlays/_internal/use-list-navigation.mjs +1 -2
  331. package/dist/components/overlays/command-palette/command-palette.d.mts +0 -2
  332. package/dist/components/overlays/command-palette/command-palette.mjs +1 -2
  333. package/dist/components/overlays/command-palette/command-palette.module.mjs +1 -2
  334. package/dist/components/overlays/context-menu/context-menu.d.mts +1 -3
  335. package/dist/components/overlays/context-menu/context-menu.mjs +1 -2
  336. package/dist/components/overlays/context-menu/index.d.mts +1 -3
  337. package/dist/components/overlays/context-menu/index.mjs +1 -2
  338. package/dist/components/overlays/dialog/dialog.d.mts +1 -3
  339. package/dist/components/overlays/dialog/dialog.mjs +2 -7
  340. package/dist/components/overlays/dialog/dialog.module.mjs +1 -2
  341. package/dist/components/overlays/dialog/index.d.mts +1 -3
  342. package/dist/components/overlays/dialog/index.mjs +1 -2
  343. package/dist/components/overlays/drawer/drawer.d.mts +1 -3
  344. package/dist/components/overlays/drawer/drawer.mjs +3 -8
  345. package/dist/components/overlays/drawer/drawer.module.mjs +1 -2
  346. package/dist/components/overlays/dropdown-menu/dropdown-menu.d.mts +1 -3
  347. package/dist/components/overlays/dropdown-menu/dropdown-menu.mjs +1 -2
  348. package/dist/components/overlays/dropdown-menu/hooks.d.mts +0 -2
  349. package/dist/components/overlays/dropdown-menu/hooks.mjs +1 -2
  350. package/dist/components/overlays/dropdown-menu/index.d.mts +1 -3
  351. package/dist/components/overlays/dropdown-menu/index.mjs +1 -2
  352. package/dist/components/overlays/dropdown-menu/shared.d.mts +2 -4
  353. package/dist/components/overlays/dropdown-menu/shared.mjs +1 -2
  354. package/dist/components/overlays/dropdown-menu/shared.module.mjs +1 -2
  355. package/dist/components/overlays/dropdown-menu/sub-menu.d.mts +1 -3
  356. package/dist/components/overlays/dropdown-menu/sub-menu.mjs +1 -2
  357. package/dist/components/overlays/dropdown-menu/sub-menu.module.mjs +1 -2
  358. package/dist/components/overlays/dropdown-menu/use-safe-triangle.d.mts +1 -3
  359. package/dist/components/overlays/dropdown-menu/use-safe-triangle.mjs +1 -2
  360. package/dist/components/overlays/list-box/hooks.d.mts +0 -2
  361. package/dist/components/overlays/list-box/hooks.mjs +1 -2
  362. package/dist/components/overlays/list-box/index.d.mts +1 -3
  363. package/dist/components/overlays/list-box/index.mjs +1 -2
  364. package/dist/components/overlays/list-box/list-box.d.mts +1 -3
  365. package/dist/components/overlays/list-box/list-box.mjs +1 -2
  366. package/dist/components/overlays/list-box/list-box.module.mjs +1 -2
  367. package/dist/components/overlays/modal/modal.d.mts +1 -3
  368. package/dist/components/overlays/modal/modal.mjs +1 -2
  369. package/dist/components/overlays/modal/modal.module.mjs +1 -2
  370. package/dist/components/overlays/popover/anchor-positioning.d.mts +0 -5
  371. package/dist/components/overlays/popover/anchor-positioning.mjs +1 -2
  372. package/dist/components/overlays/popover/escape-stack.d.mts +1 -3
  373. package/dist/components/overlays/popover/escape-stack.mjs +1 -2
  374. package/dist/components/overlays/popover/hooks.d.mts +0 -2
  375. package/dist/components/overlays/popover/hooks.mjs +1 -2
  376. package/dist/components/overlays/popover/index.d.mts +0 -2
  377. package/dist/components/overlays/popover/index.mjs +1 -2
  378. package/dist/components/overlays/popover/popover.d.mts +0 -2
  379. package/dist/components/overlays/popover/popover.mjs +1 -2
  380. package/dist/components/overlays/popover/popover.module.mjs +1 -2
  381. package/dist/components/overlays/tooltip/bridge.d.mts +1 -3
  382. package/dist/components/overlays/tooltip/bridge.mjs +1 -2
  383. package/dist/components/overlays/tooltip/bridge.module.mjs +1 -2
  384. package/dist/components/overlays/tooltip/index.d.mts +0 -2
  385. package/dist/components/overlays/tooltip/index.mjs +1 -2
  386. package/dist/components/overlays/tooltip/tooltip.d.mts +1 -3
  387. package/dist/components/overlays/tooltip/tooltip.mjs +1 -2
  388. package/dist/components/overlays/tooltip/tooltip.module.mjs +1 -2
  389. package/dist/components/providers/portal-root.d.mts +1 -3
  390. package/dist/components/providers/portal-root.mjs +1 -2
  391. package/dist/components/providers/ui-provider.d.mts +1 -3
  392. package/dist/components/providers/ui-provider.mjs +1 -2
  393. package/dist/helpers/chain.d.mts +0 -2
  394. package/dist/helpers/chain.mjs +1 -2
  395. package/dist/helpers/create-safe-context.d.mts +0 -2
  396. package/dist/helpers/create-safe-context.mjs +1 -2
  397. package/dist/helpers/merge-props.d.mts +0 -2
  398. package/dist/helpers/merge-props.mjs +1 -2
  399. package/dist/helpers/merge-refs.d.mts +1 -3
  400. package/dist/helpers/merge-refs.mjs +1 -2
  401. package/dist/hooks/click-away/index.d.mts +1 -3
  402. package/dist/hooks/click-away/index.mjs +1 -2
  403. package/dist/hooks/controllable-state/index.d.mts +0 -2
  404. package/dist/hooks/controllable-state/index.mjs +1 -2
  405. package/dist/hooks/writing-mode/index.d.mts +1 -3
  406. package/dist/hooks/writing-mode/index.mjs +1 -2
  407. package/dist/i18n/current.d.mts +1 -3
  408. package/dist/i18n/current.mjs +1 -2
  409. package/dist/i18n/en.d.mts +1 -3
  410. package/dist/i18n/en.mjs +1 -2
  411. package/dist/i18n/ja.d.mts +1 -3
  412. package/dist/i18n/ja.mjs +1 -2
  413. package/dist/i18n/messages.d.mts +1 -3
  414. package/dist/i18n/usage.d.mts +1 -3
  415. package/dist/i18n/usage.mjs +1 -2
  416. package/dist/integrations/_shared/openui-defs.d.mts +1 -3
  417. package/dist/integrations/_shared/openui-defs.mjs +1 -2
  418. package/dist/integrations/_shared/renderers.d.mts +1 -3
  419. package/dist/integrations/_shared/renderers.mjs +1 -2
  420. package/dist/integrations/_shared/renderers.module.mjs +1 -2
  421. package/dist/integrations/_shared/schemas.d.mts +0 -2
  422. package/dist/integrations/_shared/schemas.mjs +1 -2
  423. package/dist/integrations/ai-sdk/map-parts.d.mts +1 -3
  424. package/dist/integrations/ai-sdk/map-parts.mjs +1 -2
  425. package/dist/integrations/json-render/catalog.d.mts +0 -2
  426. package/dist/integrations/json-render/catalog.mjs +1 -2
  427. package/dist/integrations/json-render/registry.d.mts +1 -3
  428. package/dist/integrations/json-render/registry.mjs +1 -2
  429. package/dist/integrations/openui/form-views.d.mts +1 -3
  430. package/dist/integrations/openui/form-views.mjs +1 -2
  431. package/dist/integrations/openui/library.d.mts +0 -2
  432. package/dist/integrations/openui/library.mjs +1 -2
  433. package/dist/integrations/openui/prompt.d.mts +1 -3
  434. package/dist/integrations/openui/prompt.mjs +1 -2
  435. package/dist/internal/accepts-file.d.mts +1 -3
  436. package/dist/internal/accepts-file.mjs +1 -2
  437. package/dist/internal/carries-files.d.mts +1 -3
  438. package/dist/internal/carries-files.mjs +1 -2
  439. package/dist/internal/clamp.d.mts +1 -3
  440. package/dist/internal/clamp.mjs +1 -2
  441. package/dist/internal/commit-input-value.d.mts +1 -3
  442. package/dist/internal/commit-input-value.mjs +1 -2
  443. package/dist/internal/dropped-files.d.mts +1 -3
  444. package/dist/internal/dropped-files.mjs +1 -2
  445. package/dist/internal/focus-trap.d.mts +1 -3
  446. package/dist/internal/focus-trap.mjs +1 -2
  447. package/dist/internal/hex-color.d.mts +1 -3
  448. package/dist/internal/hex-color.mjs +1 -2
  449. package/dist/internal/iso-date.d.mts +1 -3
  450. package/dist/internal/iso-date.mjs +1 -2
  451. package/dist/internal/to-precision.d.mts +1 -3
  452. package/dist/internal/to-precision.mjs +1 -2
  453. package/dist/styles/index.css +81 -0
  454. package/dist/styles/tailwind.css +29 -2
  455. package/dist/styles/tokens.d.mts +1 -1
  456. package/dist/styles/tokens.mjs +1 -1
  457. package/dist/types/variables.d.mts +1 -3
  458. package/docs/GUIDE.md +17 -1
  459. package/docs/llms.txt +1 -1
  460. package/package.json +23 -23
  461. package/dist/components/icons/lucide-deep.d.mts +0 -11
@@ -5,7 +5,7 @@ import checkbox_card_module_default from "./checkbox-card.module.mjs";
5
5
  import { clsx } from "clsx";
6
6
  import { useId } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
- //#region src/components/form/checkbox-card/checkbox-card.tsx
8
+ // src/components/form/checkbox-card/checkbox-card.tsx
9
9
  const CheckboxCard = ({ "aria-labelledby": labelledbyId, name, disabled = false, invalid = false, options, value, defaultValue, onChange, ref, ...rest }) => {
10
10
  const groupId = useId();
11
11
  const isControlled = value !== void 0;
@@ -66,5 +66,4 @@ const CheckboxCard = ({ "aria-labelledby": labelledbyId, name, disabled = false,
66
66
  })
67
67
  });
68
68
  };
69
- //#endregion
70
69
  export { CheckboxCard };
@@ -1,5 +1,5 @@
1
1
  import './checkbox-card.css';
2
- //#region src/components/form/checkbox-card/checkbox-card.module.css
2
+ // src/components/form/checkbox-card/checkbox-card.module.css
3
3
  var checkbox_card_module_default = {
4
4
  "box": "VWx-oW_box",
5
5
  "card": "VWx-oW_card",
@@ -13,5 +13,4 @@ var checkbox_card_module_default = {
13
13
  "text": "VWx-oW_text",
14
14
  "visual": "VWx-oW_visual"
15
15
  };
16
- //#endregion
17
16
  export { checkbox_card_module_default as default };
@@ -1,5 +1,4 @@
1
1
  import { ChangeEvent, FC, FieldsetHTMLAttributes, PropsWithChildren, Ref } from "react";
2
- //#region src/components/form/checkbox-group/checkbox-group.d.ts
3
2
  type CheckboxGroupContextValue = {
4
3
  /** 制御モードの値。非制御では undefined で、各項目は defaultValue から始める */
5
4
  value: string[] | undefined;
@@ -27,5 +26,4 @@ type RootUncontrolledProps = {
27
26
  };
28
27
  type RootProps = RootBaseProps & (RootControlledProps | RootUncontrolledProps);
29
28
  declare const Root: FC<RootProps>;
30
- //#endregion
31
29
  export { Root as CheckboxGroupRoot };
@@ -3,7 +3,7 @@ import checkbox_group_module_default from "./checkbox-group.module.mjs";
3
3
  import { clsx } from "clsx";
4
4
  import { createContext, use, useMemo } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
- //#region src/components/form/checkbox-group/checkbox-group.tsx
6
+ // src/components/form/checkbox-group/checkbox-group.tsx
7
7
  const CheckboxGroupContext = createContext(void 0);
8
8
  const useCheckboxGroupContext = () => use(CheckboxGroupContext);
9
9
  const Root = ({ "aria-labelledby": labelledbyId, children, defaultValue, disabled = false, invalid = false, name, onChange, ref, value, ...rest }) => {
@@ -35,5 +35,4 @@ const Root = ({ "aria-labelledby": labelledbyId, children, defaultValue, disable
35
35
  })
36
36
  });
37
37
  };
38
- //#endregion
39
38
  export { Root as CheckboxGroupRoot, useCheckboxGroupContext };
@@ -1,8 +1,7 @@
1
1
  import './checkbox-group.css';
2
- //#region src/components/form/checkbox-group/checkbox-group.module.css
2
+ // src/components/form/checkbox-group/checkbox-group.module.css
3
3
  var checkbox_group_module_default = {
4
4
  "disabled": "TaM1Za_disabled",
5
5
  "root": "TaM1Za_root"
6
6
  };
7
- //#endregion
8
7
  export { checkbox_group_module_default as default };
@@ -1,4 +1,3 @@
1
- //#region src/components/form/checkbox-group/index.d.ts
2
1
  export declare const CheckboxGroup: {
3
2
  readonly Root: import("react").FC<{
4
3
  'aria-labelledby': string;
@@ -32,5 +31,4 @@ export declare const CheckboxGroup: {
32
31
  checked?: never;
33
32
  onChange?: (checked: boolean, event: import("react").ChangeEvent<HTMLInputElement>) => void;
34
33
  })>;
35
- };
36
- //#endregion
34
+ };
@@ -1,9 +1,8 @@
1
1
  import { CheckboxGroupRoot as Root } from "./checkbox-group.mjs";
2
2
  import { Checkbox } from "../checkbox/checkbox.mjs";
3
- //#region src/components/form/checkbox-group/index.ts
3
+ // src/components/form/checkbox-group/index.ts
4
4
  const CheckboxGroup = {
5
5
  Root,
6
6
  Item: Checkbox
7
7
  };
8
- //#endregion
9
8
  export { CheckboxGroup };
@@ -83,7 +83,7 @@
83
83
  background-color: var(--color-bg-mute);
84
84
  }
85
85
 
86
- &[aria-invalid="true"], &[aria-invalid="true"]:focus-visible {
86
+ &[aria-invalid="true"] {
87
87
  border-color: var(--color-border-error);
88
88
  }
89
89
  }
@@ -1,5 +1,4 @@
1
1
  import { FC, InputHTMLAttributes, Ref } from "react";
2
- //#region src/components/form/color-picker/color-picker.d.ts
3
2
  export type ColorPickerSwatch = Readonly<{
4
3
  /** `#rrggbb` */
5
4
  value: string;
@@ -25,5 +24,4 @@ type UncontrolledProps = {
25
24
  };
26
25
  type Props = BaseProps & (ControlledProps | UncontrolledProps);
27
26
  export declare const ColorPicker: FC<Props>;
28
- //#endregion
29
27
  export {};
@@ -11,7 +11,7 @@ import { clsx } from "clsx";
11
11
  import { useEffect, useEffectEvent, useId, useMemo, useRef, useState } from "react";
12
12
  import { useFormStatus } from "react-dom";
13
13
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
14
- //#region src/components/form/color-picker/color-picker.tsx
14
+ // src/components/form/color-picker/color-picker.tsx
15
15
  const EMPTY = {
16
16
  h: 0,
17
17
  s: 0,
@@ -235,5 +235,4 @@ const ColorPicker = ({ invalid = false, swatches, type: _type, value, defaultVal
235
235
  ]
236
236
  });
237
237
  };
238
- //#endregion
239
238
  export { ColorPicker };
@@ -1,5 +1,5 @@
1
1
  import './color-picker.css';
2
- //#region src/components/form/color-picker/color-picker.module.css
2
+ // src/components/form/color-picker/color-picker.module.css
3
3
  var color_picker_module_default = {
4
4
  "channel": "SyHfiq_channel",
5
5
  "channelDisabled": "SyHfiq_channelDisabled",
@@ -16,5 +16,4 @@ var color_picker_module_default = {
16
16
  "track": "SyHfiq_track",
17
17
  "well": "SyHfiq_well"
18
18
  };
19
- //#endregion
20
19
  export { color_picker_module_default as default };
@@ -22,7 +22,7 @@
22
22
  background-color: var(--color-bg-subtle);
23
23
  }
24
24
 
25
- .-dBzoa_root:has([aria-invalid="true"]), .-dBzoa_root:has([aria-invalid="true"]):focus-within {
25
+ .-dBzoa_root:has([aria-invalid="true"]) {
26
26
  border-color: var(--color-border-error);
27
27
  }
28
28
 
@@ -1,6 +1,5 @@
1
1
  import { Option } from "../../../types/variables.mjs";
2
2
  import { FC, InputHTMLAttributes, Ref } from "react";
3
- //#region src/components/form/combobox/combobox.d.ts
4
3
  export type ComboboxSearch = (query: string, options: {
5
4
  signal: AbortSignal;
6
5
  }) => Promise<readonly Option[]>;
@@ -29,5 +28,4 @@ type UncontrolledProps = {
29
28
  };
30
29
  type Props = BaseProps & (ControlledProps | UncontrolledProps);
31
30
  export declare const Combobox: FC<Props>;
32
- //#endregion
33
31
  export {};
@@ -12,7 +12,7 @@ import { clsx } from "clsx";
12
12
  import { useCallback, useId, useMemo, useRef, useState, useTransition } from "react";
13
13
  import { useFormStatus } from "react-dom";
14
14
  import { jsx, jsxs } from "react/jsx-runtime";
15
- //#region src/components/form/combobox/combobox.tsx
15
+ // src/components/form/combobox/combobox.tsx
16
16
  const NO_OPTIONS = [];
17
17
  const matches = (option, text) => option.label.toLocaleLowerCase().includes(text.trim().toLocaleLowerCase());
18
18
  const Combobox = ({ invalid = false, options: optionsProp, search, type: _type, value, defaultValue, onChange, name, id, disabled = false, readOnly = false, required = false, placeholder, onBlur, onKeyDown, ref, ...rest }) => {
@@ -49,10 +49,6 @@ const Combobox = ({ invalid = false, options: optionsProp, search, type: _type,
49
49
  const [anchor, setAnchor] = useState(null);
50
50
  const writingMode = useWritingMode(anchor);
51
51
  const anchorName = `--ao-combobox-${baseId.replaceAll(/[^a-zA-Z0-9_-]/gu, "")}`;
52
- const anchorRef = useCallback((node) => {
53
- setAnchor(node);
54
- node?.style.setProperty("anchor-name", anchorName);
55
- }, [anchorName]);
56
52
  const listStyle = {
57
53
  position: "fixed",
58
54
  inset: "auto",
@@ -154,7 +150,8 @@ const Combobox = ({ invalid = false, options: optionsProp, search, type: _type,
154
150
  const status = isSearching ? messages.loading : failed ? messages.comboboxFailed : candidates.length === 0 ? messages.comboboxEmpty : null;
155
151
  return /* @__PURE__ */ jsxs("div", {
156
152
  className: clsx(combobox_module_default.root, focus_ring_module_default.ringWithin, (disabled || pending) && combobox_module_default.disabled, readOnly && combobox_module_default.readOnly),
157
- ref: anchorRef,
153
+ ref: setAnchor,
154
+ style: { anchorName },
158
155
  children: [
159
156
  /* @__PURE__ */ jsx(FormValue, {
160
157
  defaultValues: isControlled ? void 0 : defaultValue === void 0 || defaultValue === "" ? [] : [defaultValue],
@@ -274,5 +271,4 @@ const Combobox = ({ invalid = false, options: optionsProp, search, type: _type,
274
271
  ]
275
272
  });
276
273
  };
277
- //#endregion
278
274
  export { Combobox };
@@ -1,5 +1,5 @@
1
1
  import './combobox.css';
2
- //#region src/components/form/combobox/combobox.module.css
2
+ // src/components/form/combobox/combobox.module.css
3
3
  var combobox_module_default = {
4
4
  "active": "-dBzoa_active",
5
5
  "collapsed": "-dBzoa_collapsed",
@@ -15,5 +15,4 @@ var combobox_module_default = {
15
15
  "status": "-dBzoa_status",
16
16
  "toggle": "-dBzoa_toggle"
17
17
  };
18
- //#endregion
19
18
  export { combobox_module_default as default };
@@ -22,7 +22,7 @@
22
22
  background-color: var(--color-bg-mute);
23
23
  }
24
24
 
25
- &[aria-invalid="true"], &[aria-invalid="true"]:focus-visible {
25
+ &[aria-invalid="true"] {
26
26
  border-color: var(--color-border-error);
27
27
  }
28
28
  }
@@ -1,9 +1,7 @@
1
1
  import { FC, InputHTMLAttributes, Ref } from "react";
2
- //#region src/components/form/date-field/date-field.d.ts
3
2
  type Props = {
4
3
  invalid?: boolean;
5
4
  ref?: Ref<HTMLInputElement>;
6
5
  } & Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'style' | 'type' | 'children'>;
7
6
  export declare const DateField: FC<Props>;
8
- //#endregion
9
7
  export {};
@@ -4,7 +4,7 @@ import date_field_module_default from "./date-field.module.mjs";
4
4
  import { clsx } from "clsx";
5
5
  import { useFormStatus } from "react-dom";
6
6
  import { jsx } from "react/jsx-runtime";
7
- //#region src/components/form/date-field/date-field.tsx
7
+ // src/components/form/date-field/date-field.tsx
8
8
  const DateField = ({ invalid = false, readOnly, ref, ...rest }) => {
9
9
  const { pending } = useFormStatus();
10
10
  return /* @__PURE__ */ jsx("input", {
@@ -16,5 +16,4 @@ const DateField = ({ invalid = false, readOnly, ref, ...rest }) => {
16
16
  type: "date"
17
17
  });
18
18
  };
19
- //#endregion
20
19
  export { DateField };
@@ -1,5 +1,4 @@
1
1
  import './date-field.css';
2
- //#region src/components/form/date-field/date-field.module.css
2
+ // src/components/form/date-field/date-field.module.css
3
3
  var date_field_module_default = { "root": "_pBLbq_root" };
4
- //#endregion
5
4
  export { date_field_module_default as default };
@@ -1,5 +1,4 @@
1
1
  import { FC, InputHTMLAttributes, Ref } from "react";
2
- //#region src/components/form/date-picker/date-picker.d.ts
3
2
  type Props = {
4
3
  invalid?: boolean;
5
4
  /** `YYYY-MM-DD`。未入力は `''`。 */
@@ -9,5 +8,4 @@ type Props = {
9
8
  ref?: Ref<HTMLInputElement>;
10
9
  } & Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'style' | 'type' | 'value' | 'defaultValue' | 'onChange' | 'children'>;
11
10
  export declare const DatePicker: FC<Props>;
12
- //#endregion
13
11
  export {};
@@ -11,7 +11,7 @@ import { clsx } from "clsx";
11
11
  import { useMemo, useRef, useState } from "react";
12
12
  import { useFormStatus } from "react-dom";
13
13
  import { jsx, jsxs } from "react/jsx-runtime";
14
- //#region src/components/form/date-picker/date-picker.tsx
14
+ // src/components/form/date-picker/date-picker.tsx
15
15
  const asDate = (bound) => bound === void 0 ? void 0 : String(bound);
16
16
  const DatePicker = ({ invalid = false, value, defaultValue, onChange, disabled = false, readOnly = false, min, max, ref, ...rest }) => {
17
17
  const messages = getMessages();
@@ -73,5 +73,4 @@ const DatePicker = ({ invalid = false, value, defaultValue, onChange, disabled =
73
73
  })]
74
74
  });
75
75
  };
76
- //#endregion
77
76
  export { DatePicker };
@@ -1,5 +1,5 @@
1
1
  import './date-picker.css';
2
- //#region src/components/form/date-picker/date-picker.module.css
2
+ // src/components/form/date-picker/date-picker.module.css
3
3
  var date_picker_module_default = {
4
4
  "dialog": "VmF9ya_dialog",
5
5
  "disabled": "VmF9ya_disabled",
@@ -10,5 +10,4 @@ var date_picker_module_default = {
10
10
  "root": "VmF9ya_root",
11
11
  "trigger": "VmF9ya_trigger"
12
12
  };
13
- //#endregion
14
13
  export { date_picker_module_default as default };
@@ -1,5 +1,4 @@
1
1
  import { ChangeEvent, FC, InputHTMLAttributes, PropsWithChildren, ReactElement, ReactNode, Ref } from "react";
2
- //#region src/components/form/file-field/file-field.d.ts
3
2
  type RootProps = PropsWithChildren<{
4
3
  invalid?: boolean;
5
4
  maxFiles?: number;
@@ -23,5 +22,4 @@ export declare const ItemList: FC<{
23
22
  showWebkitRelativePath?: boolean;
24
23
  clearable?: boolean;
25
24
  }>;
26
- //#endregion
27
25
  export {};
@@ -14,7 +14,7 @@ import { clsx } from "clsx";
14
14
  import { useCallback, useEffect, useEffectEvent, useId, useMemo, useRef, useState } from "react";
15
15
  import { useFormStatus } from "react-dom";
16
16
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
17
- //#region src/components/form/file-field/file-field.tsx
17
+ // src/components/form/file-field/file-field.tsx
18
18
  const [FileFieldProvider, useFileFieldContext] = createSafeContext("useFileFieldContext must be used within a FileField.Root");
19
19
  const toAccepted = (files) => files.map((file) => ({
20
20
  file,
@@ -213,5 +213,4 @@ const ItemList = ({ showWebkitRelativePath, clearable }) => {
213
213
  })
214
214
  });
215
215
  };
216
- //#endregion
217
216
  export { Dropzone, ItemList, Root, Trigger };
@@ -1,5 +1,5 @@
1
1
  import './file-field.css';
2
- //#region src/components/form/file-field/file-field.module.css
2
+ // src/components/form/file-field/file-field.module.css
3
3
  var file_field_module_default = {
4
4
  "disabled": "PPBdPq_disabled",
5
5
  "dragging": "PPBdPq_dragging",
@@ -13,5 +13,4 @@ var file_field_module_default = {
13
13
  "root": "PPBdPq_root",
14
14
  "size": "PPBdPq_size"
15
15
  };
16
- //#endregion
17
16
  export { file_field_module_default as default };
@@ -1,5 +1,4 @@
1
1
  import { Root } from "./file-field.mjs";
2
- //#region src/components/form/file-field/index.d.ts
3
2
  export declare const FileField: {
4
3
  readonly Root: typeof Root;
5
4
  readonly Trigger: import("react").FC<{
@@ -16,5 +15,4 @@ export declare const FileField: {
16
15
  showWebkitRelativePath?: boolean;
17
16
  clearable?: boolean;
18
17
  }>;
19
- };
20
- //#endregion
18
+ };
@@ -1,10 +1,9 @@
1
1
  import { Dropzone, ItemList, Root, Trigger } from "./file-field.mjs";
2
- //#region src/components/form/file-field/index.ts
2
+ // src/components/form/file-field/index.ts
3
3
  const FileField = {
4
4
  Root,
5
5
  Trigger,
6
6
  Dropzone,
7
7
  ItemList
8
8
  };
9
- //#endregion
10
9
  export { FileField };
@@ -1,10 +1,8 @@
1
1
  import { FC, FormHTMLAttributes, ReactNode, Ref } from "react";
2
- //#region src/components/form/form/form.d.ts
3
2
  type Props = {
4
3
  action?: ((formData: FormData) => void | Promise<void>) | string;
5
4
  children: ReactNode;
6
5
  ref?: Ref<HTMLFormElement>;
7
6
  } & Omit<FormHTMLAttributes<HTMLFormElement>, 'action' | 'children' | 'className' | 'style'>;
8
7
  export declare const Form: FC<Props>;
9
- //#endregion
10
8
  export {};
@@ -1,12 +1,11 @@
1
1
  "use client";
2
2
  import form_module_default from "./form.module.mjs";
3
3
  import { jsx } from "react/jsx-runtime";
4
- //#region src/components/form/form/form.tsx
4
+ // src/components/form/form/form.tsx
5
5
  const Form = ({ action, children, ...rest }) => /* @__PURE__ */ jsx("form", {
6
6
  action,
7
7
  className: form_module_default.root,
8
8
  ...rest,
9
9
  children
10
10
  });
11
- //#endregion
12
11
  export { Form };
@@ -1,5 +1,4 @@
1
1
  import './form.css';
2
- //#region src/components/form/form/form.module.css
2
+ // src/components/form/form/form.module.css
3
3
  var form_module_default = { "root": "LLU8LW_root" };
4
- //#endregion
5
4
  export { form_module_default as default };
@@ -1,5 +1,4 @@
1
1
  import { FC, HTMLAttributes, ReactElement, Ref } from "react";
2
- //#region src/components/form/form-control/form-control.d.ts
3
2
  type FormControlProps = {
4
3
  disabled?: boolean;
5
4
  invalid?: boolean;
@@ -19,5 +18,4 @@ type FormControlProps = {
19
18
  ref?: Ref<HTMLElement>;
20
19
  } & Omit<HTMLAttributes<HTMLElement>, 'className' | 'style' | 'children'>;
21
20
  export declare const FormControl: FC<FormControlProps>;
22
- //#endregion
23
21
  export {};
@@ -4,7 +4,7 @@ import form_control_module_default from "./form-control.module.mjs";
4
4
  import { clsx } from "clsx";
5
5
  import { useId } from "react";
6
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
- //#region src/components/form/form-control/form-control.tsx
7
+ // src/components/form/form-control/form-control.tsx
8
8
  const FormControl = ({ disabled = false, invalid = false, required = false, label, labelAs = "label", helpText, errorText, renderInput, ref, ...rest }) => {
9
9
  const messages = getMessages();
10
10
  const id = useId();
@@ -58,5 +58,4 @@ const FormControl = ({ disabled = false, invalid = false, required = false, labe
58
58
  children: content
59
59
  });
60
60
  };
61
- //#endregion
62
61
  export { FormControl };
@@ -1,5 +1,5 @@
1
1
  import './form-control.css';
2
- //#region src/components/form/form-control/form-control.module.css
2
+ // src/components/form/form-control/form-control.module.css
3
3
  var form_control_module_default = {
4
4
  "error": "_8KGDqG_error",
5
5
  "help": "_8KGDqG_help",
@@ -8,5 +8,4 @@ var form_control_module_default = {
8
8
  "required": "_8KGDqG_required",
9
9
  "root": "_8KGDqG_root"
10
10
  };
11
- //#endregion
12
11
  export { form_control_module_default as default };
@@ -1,3 +1 @@
1
- //#region src/components/form/number-field/cast.d.ts
2
- export declare const cast: (value: string, precision: number | undefined) => number | null;
3
- //#endregion
1
+ export declare const cast: (value: string, precision: number | undefined) => number | null;
@@ -1,5 +1,5 @@
1
1
  import { toPrecision } from "../../../internal/to-precision.mjs";
2
- //#region src/components/form/number-field/cast.ts
2
+ // src/components/form/number-field/cast.ts
3
3
  const FLOATING_POINT_REGEX = /^[Ee0-9+\-.]$/u;
4
4
  const isInvalidCharacter = (value) => FLOATING_POINT_REGEX.test(value);
5
5
  const sanitize = (value) => value.split("").filter((char) => isInvalidCharacter(char)).join("");
@@ -9,5 +9,4 @@ const cast = (value, precision) => {
9
9
  if (Number.isNaN(parsedValue)) return null;
10
10
  return toPrecision(parsedValue, precision);
11
11
  };
12
- //#endregion
13
12
  export { cast };
@@ -20,17 +20,6 @@
20
20
  }
21
21
  }
22
22
 
23
- .iUg6Ca_root:focus-within {
24
- box-shadow: var(--shadow-ring-info);
25
- border-color: #0000;
26
- outline-style: none;
27
-
28
- @media (forced-colors: active) {
29
- outline-offset: 2px;
30
- outline: 2px solid #0000;
31
- }
32
- }
33
-
34
23
  .iUg6Ca_root:has(:disabled) {
35
24
  cursor: not-allowed;
36
25
  border-color: var(--color-border-mute);
@@ -1,5 +1,4 @@
1
1
  import { FC, InputHTMLAttributes, Ref } from "react";
2
- //#region src/components/form/number-field/number-field.d.ts
3
2
  type BaseProps = {
4
3
  invalid?: boolean;
5
4
  /** 小数の桁数。省略すると step の桁数に合わせ、step が 'any' なら丸めない */
@@ -22,5 +21,4 @@ type UncontrolledProps = {
22
21
  };
23
22
  type Props = BaseProps & (ControlledProps | UncontrolledProps);
24
23
  export declare const NumberField: FC<Props>;
25
- //#endregion
26
24
  export {};
@@ -2,6 +2,7 @@
2
2
  import { getMessages } from "../../../i18n/current.mjs";
3
3
  import sr_only_module_default from "../../_internal/sr-only.module.mjs";
4
4
  import { mergeRefs } from "../../../helpers/merge-refs.mjs";
5
+ import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
5
6
  import { ChevronIcon } from "../../icons/lucide.mjs";
6
7
  import { chain } from "../../../helpers/chain.mjs";
7
8
  import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
@@ -9,10 +10,11 @@ import { toPrecision } from "../../../internal/to-precision.mjs";
9
10
  import { clamp } from "../../../internal/clamp.mjs";
10
11
  import { cast } from "./cast.mjs";
11
12
  import number_field_module_default from "./number-field.module.mjs";
13
+ import { clsx } from "clsx";
12
14
  import { useEffect, useEffectEvent, useLayoutEffect, useMemo, useRef, useState } from "react";
13
15
  import { useFormStatus } from "react-dom";
14
16
  import { jsx, jsxs } from "react/jsx-runtime";
15
- //#region src/components/form/number-field/number-field.tsx
17
+ // src/components/form/number-field/number-field.tsx
16
18
  const format = (value, precision) => {
17
19
  if (value === null) return "";
18
20
  return precision === void 0 ? String(value) : value.toFixed(precision);
@@ -110,7 +112,7 @@ const NumberField = ({ invalid = false, disabled = false, readOnly = false, requ
110
112
  commit(input, current === null ? clamp(0, min, max) : clamp(toPrecision(current + delta, precision), min, max));
111
113
  };
112
114
  return /* @__PURE__ */ jsxs("div", {
113
- className: number_field_module_default.root,
115
+ className: clsx(number_field_module_default.root, focus_ring_module_default.ringWithin),
114
116
  children: [/* @__PURE__ */ jsx("input", {
115
117
  autoComplete: "off",
116
118
  autoCorrect: "off",
@@ -183,5 +185,4 @@ const NumberField = ({ invalid = false, disabled = false, readOnly = false, requ
183
185
  })]
184
186
  });
185
187
  };
186
- //#endregion
187
188
  export { NumberField };
@@ -1,10 +1,9 @@
1
1
  import './number-field.css';
2
- //#region src/components/form/number-field/number-field.module.css
2
+ // src/components/form/number-field/number-field.module.css
3
3
  var number_field_module_default = {
4
4
  "input": "iUg6Ca_input",
5
5
  "root": "iUg6Ca_root",
6
6
  "step": "iUg6Ca_step",
7
7
  "steppers": "iUg6Ca_steppers"
8
8
  };
9
- //#endregion
10
9
  export { number_field_module_default as default };
@@ -1,5 +1,4 @@
1
1
  import { FC, InputHTMLAttributes, Ref } from "react";
2
- //#region src/components/form/password-input/password-input.d.ts
3
2
  type Props = {
4
3
  invalid?: boolean;
5
4
  showLabel?: string;
@@ -7,5 +6,4 @@ type Props = {
7
6
  ref?: Ref<HTMLInputElement>;
8
7
  } & Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'className' | 'style'>;
9
8
  export declare const PasswordInput: FC<Props>;
10
- //#endregion
11
9
  export {};
@@ -7,7 +7,7 @@ import { clsx } from "clsx";
7
7
  import { useState } from "react";
8
8
  import { useFormStatus } from "react-dom";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
- //#region src/components/form/password-input/password-input.tsx
10
+ // src/components/form/password-input/password-input.tsx
11
11
  const PasswordInput = ({ invalid = false, autoComplete = "current-password", showLabel, hideLabel, disabled = false, readOnly, ref, ...rest }) => {
12
12
  const messages = getMessages();
13
13
  const [isVisible, setIsVisible] = useState(false);
@@ -35,5 +35,4 @@ const PasswordInput = ({ invalid = false, autoComplete = "current-password", sho
35
35
  })]
36
36
  });
37
37
  };
38
- //#endregion
39
38
  export { PasswordInput };
@@ -1,5 +1,5 @@
1
1
  import './password-input.css';
2
- //#region src/components/form/password-input/password-input.module.css
2
+ // src/components/form/password-input/password-input.module.css
3
3
  var password_input_module_default = {
4
4
  "disabled": "StCDRW_disabled",
5
5
  "input": "StCDRW_input",
@@ -8,5 +8,4 @@ var password_input_module_default = {
8
8
  "toggle": "StCDRW_toggle",
9
9
  "toggleDisabled": "StCDRW_toggleDisabled"
10
10
  };
11
- //#endregion
12
11
  export { password_input_module_default as default };
@@ -1,6 +1,5 @@
1
1
  import { Option } from "../../../types/variables.mjs";
2
2
  import { ChangeEvent, FC, HTMLAttributes, Ref } from "react";
3
- //#region src/components/form/radio/radio.d.ts
4
3
  type BaseProps = {
5
4
  'aria-labelledby': string;
6
5
  name?: string;
@@ -22,5 +21,4 @@ type UncontrolledProps = {
22
21
  };
23
22
  type Props = BaseProps & (ControlledProps | UncontrolledProps);
24
23
  export declare const Radio: FC<Props>;
25
- //#endregion
26
24
  export {};
@@ -5,7 +5,7 @@ import radio_module_default from "./radio.module.mjs";
5
5
  import { clsx } from "clsx";
6
6
  import { useFormStatus } from "react-dom";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
- //#region src/components/form/radio/radio.tsx
8
+ // src/components/form/radio/radio.tsx
9
9
  const Radio = ({ "aria-labelledby": labelledbyId, name, disabled = false, invalid = false, required = false, value, defaultValue, onChange, options, ref, ...rest }) => {
10
10
  const { pending } = useFormStatus();
11
11
  const isControlled = value !== void 0;
@@ -44,5 +44,4 @@ const Radio = ({ "aria-labelledby": labelledbyId, name, disabled = false, invali
44
44
  }, option.value))
45
45
  });
46
46
  };
47
- //#endregion
48
47
  export { Radio };
@@ -1,5 +1,5 @@
1
1
  import './radio.css';
2
- //#region src/components/form/radio/radio.module.css
2
+ // src/components/form/radio/radio.module.css
3
3
  var radio_module_default = {
4
4
  "circle": "_8JmqZW_circle",
5
5
  "circleDisabled": "_8JmqZW_circleDisabled",
@@ -12,5 +12,4 @@ var radio_module_default = {
12
12
  "optionDisabled": "_8JmqZW_optionDisabled",
13
13
  "root": "_8JmqZW_root"
14
14
  };
15
- //#endregion
16
15
  export { radio_module_default as default };