@oyolincc/create 0.4.0 → 0.5.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 (682) hide show
  1. package/package.json +2 -2
  2. package/templates/{monorepo/.agents/skills/grilling → hono-fullstack/.agents/skills/ask-grilling}/SKILL.md +1 -1
  3. package/templates/hono-fullstack/.agents/skills/build-api-and-interface-design/SKILL.md +369 -0
  4. package/templates/hono-fullstack/.agents/skills/build-context-engineering/SKILL.md +353 -0
  5. package/templates/hono-fullstack/.agents/skills/build-incremental-implementation/SKILL.md +249 -0
  6. package/templates/hono-fullstack/.agents/skills/build-observability-and-instrumentation/SKILL.md +239 -0
  7. package/templates/hono-fullstack/.agents/skills/plan-planning-and-task-breakdown/SKILL.md +257 -0
  8. package/templates/{monorepo/.agents/skills/prototype → hono-fullstack/.agents/skills/plan-prototype}/LOGIC.md +1 -1
  9. package/templates/{monorepo/.agents/skills/prototype → hono-fullstack/.agents/skills/plan-prototype}/SKILL.md +2 -2
  10. package/templates/hono-fullstack/.agents/skills/{prototype → plan-prototype}/UI.md +2 -2
  11. package/templates/{monorepo/.agents/skills/research → hono-fullstack/.agents/skills/plan-research}/SKILL.md +2 -2
  12. package/templates/hono-fullstack/.agents/skills/plan-using-agent-skills/SKILL.md +185 -0
  13. package/templates/{monorepo/.agents/skills/wayfinder → hono-fullstack/.agents/skills/plan-wayfinder}/SKILL.md +43 -29
  14. package/templates/hono-fullstack/.agents/skills/review-code-review-and-quality/SKILL.md +400 -0
  15. package/templates/hono-fullstack/.agents/skills/review-doubt-driven-development/SKILL.md +244 -0
  16. package/templates/hono-fullstack/.agents/skills/review-security-and-hardening/SKILL.md +216 -0
  17. package/templates/hono-fullstack/.agents/skills/review-security-and-hardening/references/hardening-patterns.md +331 -0
  18. package/templates/hono-fullstack/.agents/skills/ship-ci-cd-and-automation/SKILL.md +393 -0
  19. package/templates/hono-fullstack/.agents/skills/ship-deprecation-and-migration/SKILL.md +252 -0
  20. package/templates/hono-fullstack/.agents/skills/ship-documentation-and-adrs/SKILL.md +298 -0
  21. package/templates/hono-fullstack/.agents/skills/ship-git-workflow-and-versioning/SKILL.md +355 -0
  22. package/templates/hono-fullstack/.agents/skills/ship-shipping-and-launch/SKILL.md +336 -0
  23. package/templates/hono-fullstack/.agents/skills/simplify-code-simplification/SKILL.md +332 -0
  24. package/templates/hono-fullstack/.agents/skills/simplify-performance-optimization/SKILL.md +268 -0
  25. package/templates/hono-fullstack/.agents/skills/simplify-performance-optimization/references/optimization-patterns.md +250 -0
  26. package/templates/hono-fullstack/.agents/skills/spec-constraint-driven-development/SKILL.md +318 -0
  27. package/templates/hono-fullstack/.agents/skills/spec-constraint-driven-development/references/floor-guard.md +182 -0
  28. package/templates/hono-fullstack/.agents/skills/spec-constraint-driven-development/scripts/quality-gate.mjs +45 -0
  29. package/templates/hono-fullstack/.agents/skills/spec-driven-development/SKILL.md +261 -0
  30. package/templates/hono-fullstack/.agents/skills/test-browser-testing-with-devtools/SKILL.md +319 -0
  31. package/templates/hono-fullstack/.agents/skills/test-debugging-and-error-recovery/SKILL.md +300 -0
  32. package/templates/hono-fullstack/.agents/skills/test-driven-development/SKILL.md +400 -0
  33. package/templates/hono-fullstack/.codegraph/.gitignore +5 -0
  34. package/templates/hono-fullstack/AGENTS.md +9 -20
  35. package/templates/hono-fullstack/README.md +22 -1
  36. package/templates/hono-fullstack/_gitignore +1 -0
  37. package/templates/hono-fullstack/apps/server/package.json +7 -2
  38. package/templates/hono-fullstack/apps/server/src/adapters/cloudflare/entry.ts +4 -30
  39. package/templates/hono-fullstack/apps/server/src/adapters/nodejs/bootstrap.ts +20 -12
  40. package/templates/hono-fullstack/apps/server/src/adapters/nodejs/entry.ts +7 -57
  41. package/templates/hono-fullstack/apps/server/src/app.ts +37 -21
  42. package/templates/hono-fullstack/apps/server/src/config.ts +1 -1
  43. package/templates/hono-fullstack/apps/server/src/di-container.ts +51 -0
  44. package/templates/hono-fullstack/apps/server/src/infra/logger/getter.ts +1 -1
  45. package/templates/hono-fullstack/apps/server/src/infra/logger/pino.ts +21 -34
  46. package/templates/hono-fullstack/apps/server/src/infra/work-runner/errors.ts +22 -0
  47. package/templates/hono-fullstack/apps/server/src/infra/work-runner/pass-through/runner.ts +28 -22
  48. package/templates/hono-fullstack/apps/server/src/infra/work-runner/piscina/runner.ts +11 -34
  49. package/templates/{hono-server/apps/server/src/infra/work-runner/example → hono-fullstack/apps/server/src/infra/work-runner/piscina}/worker-entry.ts +6 -2
  50. package/templates/hono-fullstack/apps/server/src/infra/work-runner/types.ts +2 -16
  51. package/templates/hono-fullstack/apps/server/src/infra/work-runner/utils/business-error.ts +10 -5
  52. package/templates/hono-fullstack/apps/server/src/infra/work-runner/utils/message.ts +5 -17
  53. package/templates/hono-fullstack/apps/server/src/middlewares/cors.ts +16 -22
  54. package/templates/hono-fullstack/apps/server/src/middlewares/logger.ts +34 -0
  55. package/templates/hono-fullstack/apps/server/src/modules/example/module.ts +8 -0
  56. package/templates/hono-fullstack/apps/server/src/modules/example/queries.ts +8 -0
  57. package/templates/hono-fullstack/apps/server/src/modules/example/routes.ts +74 -68
  58. package/templates/hono-fullstack/apps/server/src/modules/example/service.test.ts +53 -0
  59. package/templates/hono-fullstack/apps/server/src/modules/example/service.ts +54 -0
  60. package/templates/hono-fullstack/apps/server/src/modules/example/types.ts +12 -0
  61. package/templates/hono-fullstack/apps/server/src/modules/example/work-task/tasks.test.ts +9 -35
  62. package/templates/hono-fullstack/apps/server/src/modules/example/work-task/tasks.ts +15 -46
  63. package/templates/hono-fullstack/apps/server/src/shared/errors/defs/index.ts +6 -1
  64. package/templates/hono-fullstack/apps/server/src/shared/errors/handler.ts +1 -1
  65. package/templates/hono-fullstack/apps/server/src/shared/network/openapi/index.ts +1 -1
  66. package/templates/hono-fullstack/apps/server/src/shared/types/app.ts +51 -0
  67. package/templates/hono-fullstack/apps/server/src/shared/types/db.ts +126 -0
  68. package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/check.ts +19 -0
  69. package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/model.ts +47 -0
  70. package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/params.ts +105 -0
  71. package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/query.test.ts +139 -0
  72. package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/query.ts +236 -0
  73. package/templates/hono-fullstack/apps/server/vite.config.ts +2 -2
  74. package/templates/hono-fullstack/apps/server/wrangler.jsonc +1 -1
  75. package/templates/hono-fullstack/apps/stack/frontend/assets/styles.css +6 -0
  76. package/templates/hono-fullstack/apps/stack/frontend/components/general/ErrorMessage.tsx +3 -1
  77. package/templates/hono-fullstack/apps/stack/frontend/components/layouts/AppLayout.tsx +2 -1
  78. package/templates/hono-fullstack/apps/stack/frontend/components/layouts/Header.tsx +14 -2
  79. package/templates/hono-fullstack/apps/stack/frontend/components/layouts/Page.tsx +2 -1
  80. package/templates/hono-fullstack/apps/stack/frontend/components/layouts/PageContainer.tsx +4 -1
  81. package/templates/hono-fullstack/apps/stack/frontend/modules/example/api.ts +16 -9
  82. package/templates/hono-fullstack/apps/stack/frontend/modules/example/components/ExampleForm.tsx +25 -12
  83. package/templates/hono-fullstack/apps/stack/frontend/modules/example/components/ExampleList.tsx +13 -4
  84. package/templates/hono-fullstack/apps/stack/frontend/modules/example/hooks/api-hooks.ts +3 -3
  85. package/templates/hono-fullstack/apps/stack/frontend/routes/__root.tsx +1 -1
  86. package/templates/hono-fullstack/apps/stack/frontend/routes/index.tsx +16 -4
  87. package/templates/hono-fullstack/apps/stack/package.json +9 -4
  88. package/templates/hono-fullstack/apps/stack/panda.config.ts +31 -0
  89. package/templates/hono-fullstack/apps/stack/tsconfig.json +1 -0
  90. package/templates/hono-fullstack/apps/stack/turbo.json +20 -0
  91. package/templates/hono-fullstack/apps/stack/vite.config.ts +48 -12
  92. package/templates/hono-fullstack/apps/stack/wrangler.jsonc +1 -1
  93. package/templates/hono-fullstack/envs/.env.example.sqlite-d1 +1 -0
  94. package/templates/hono-fullstack/libs/db/drizzle-kit/sqlite-d1.config.ts +29 -10
  95. package/templates/hono-fullstack/libs/db/package.json +1 -0
  96. package/templates/hono-fullstack/libs/db/src/dialects/sqlite/schema/columns.ts +1 -1
  97. package/templates/hono-fullstack/libs/db/src/dialects/sqlite/schema/modules/examples/examples.ts +6 -3
  98. package/templates/hono-fullstack/libs/db/src/dialects/sqlite/schema/vo.ts +7 -1
  99. package/templates/hono-fullstack/libs/definition/README.md +81 -0
  100. package/templates/hono-fullstack/libs/definition/package.json +3 -1
  101. package/templates/hono-fullstack/libs/definition/src/constants/index.ts +1 -0
  102. package/templates/hono-fullstack/libs/definition/src/constants/pagination.ts +3 -0
  103. package/templates/hono-fullstack/libs/definition/src/modules/common-contracts.ts +24 -0
  104. package/templates/hono-fullstack/libs/definition/src/modules/example/contracts.ts +34 -0
  105. package/templates/hono-fullstack/libs/definition/src/modules/example/index.ts +1 -16
  106. package/templates/hono-fullstack/libs/definition/src/modules/index.ts +2 -0
  107. package/templates/hono-fullstack/libs/definition/src/modules/vo-generated-types.ts +12 -0
  108. package/templates/hono-fullstack/libs/ui/.storybook/main.ts +32 -0
  109. package/templates/hono-fullstack/libs/ui/.storybook/panda.config.ts +22 -0
  110. package/templates/hono-fullstack/libs/ui/.storybook/preview.tsx +79 -0
  111. package/templates/hono-fullstack/libs/ui/.storybook/styles.css +1 -0
  112. package/templates/hono-fullstack/libs/ui/.storybook/vite.config.ts +37 -0
  113. package/templates/hono-fullstack/libs/ui/components.json +15 -0
  114. package/templates/hono-fullstack/libs/ui/package.json +114 -0
  115. package/templates/hono-fullstack/libs/ui/panda.config.ts +41 -0
  116. package/templates/hono-fullstack/libs/ui/src/Tooltip.tsx +47 -0
  117. package/templates/hono-fullstack/libs/ui/src/components/atoms/buttons/Button.tsx +80 -0
  118. package/templates/hono-fullstack/libs/ui/src/components/atoms/buttons/CloseButton.tsx +15 -0
  119. package/templates/hono-fullstack/libs/ui/src/components/atoms/buttons/IconButton.tsx +10 -0
  120. package/templates/hono-fullstack/libs/ui/src/components/atoms/collections/Combobox.tsx +91 -0
  121. package/templates/hono-fullstack/libs/ui/src/components/atoms/collections/Select.tsx +88 -0
  122. package/templates/hono-fullstack/libs/ui/src/components/atoms/collections/TreeView.tsx +142 -0
  123. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Avatar.tsx +64 -0
  124. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Badge.tsx +7 -0
  125. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Card.tsx +23 -0
  126. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Clipboard.tsx +77 -0
  127. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Icon.tsx +9 -0
  128. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Table.tsx +51 -0
  129. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Tag.tsx +23 -0
  130. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Timeline.tsx +33 -0
  131. package/templates/hono-fullstack/libs/ui/src/components/atoms/date-and-time/DatePicker.tsx +255 -0
  132. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Accordion.tsx +48 -0
  133. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Breadcrumb.tsx +50 -0
  134. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Collapsible.tsx +34 -0
  135. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Pagination.tsx +74 -0
  136. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Steps.tsx +91 -0
  137. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Tabs.tsx +37 -0
  138. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Alert.tsx +52 -0
  139. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Progress.tsx +41 -0
  140. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/ProgressCircle.tsx +40 -0
  141. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Skeleton.tsx +37 -0
  142. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Spinner.tsx +7 -0
  143. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Toast.tsx +99 -0
  144. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Checkbox.tsx +95 -0
  145. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/ColorPicker.tsx +148 -0
  146. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Editable.tsx +44 -0
  147. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Field.tsx +36 -0
  148. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Fieldset.tsx +34 -0
  149. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/FileUpload.tsx +143 -0
  150. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Input.tsx +7 -0
  151. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/InputAddon.tsx +7 -0
  152. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/InputGroup.tsx +61 -0
  153. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/NativeSelect.tsx +81 -0
  154. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/NumberInput.tsx +63 -0
  155. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/PasswordInput.tsx +76 -0
  156. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/PinInput.tsx +36 -0
  157. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/RadioCard.tsx +96 -0
  158. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/RadioGroup.tsx +61 -0
  159. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/RatingGroup.tsx +106 -0
  160. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/SegmentGroup.tsx +68 -0
  161. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Slider.tsx +87 -0
  162. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Switch.tsx +74 -0
  163. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/TagsInput.tsx +77 -0
  164. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Textarea.tsx +7 -0
  165. package/templates/hono-fullstack/libs/ui/src/components/atoms/index.ts +98 -0
  166. package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/AbsoluteCenter.tsx +7 -0
  167. package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/Loader.tsx +69 -0
  168. package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/Span.tsx +5 -0
  169. package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/create-layout.ts +18 -0
  170. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Float.tsx +7 -0
  171. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Grid.tsx +17 -0
  172. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Group.tsx +7 -0
  173. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/ScrollArea.tsx +46 -0
  174. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Separator.tsx +26 -0
  175. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Stack.tsx +54 -0
  176. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Dialog.tsx +69 -0
  177. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Drawer.tsx +49 -0
  178. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/HoverCard.tsx +37 -0
  179. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Menu.tsx +74 -0
  180. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/OverlayManager.test.ts +124 -0
  181. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/OverlayManager.tsx +189 -0
  182. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Popover.tsx +57 -0
  183. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Tooltip.tsx +37 -0
  184. package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/Heading.tsx +6 -0
  185. package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/Link.tsx +7 -0
  186. package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/LinkOverlay.tsx +21 -0
  187. package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/Text.tsx +6 -0
  188. package/templates/hono-fullstack/libs/ui/src/components/atoms/utilities/VisuallyHidden.tsx +13 -0
  189. package/templates/hono-fullstack/libs/ui/src/hooks.ts +242 -0
  190. package/templates/hono-fullstack/libs/ui/src/index.ts +19 -0
  191. package/templates/hono-fullstack/libs/ui/src/theme/animation-styles.ts +50 -0
  192. package/templates/hono-fullstack/libs/ui/src/theme/breakpoints.ts +7 -0
  193. package/templates/hono-fullstack/libs/ui/src/theme/conditions.ts +12 -0
  194. package/templates/hono-fullstack/libs/ui/src/theme/containers.ts +16 -0
  195. package/templates/hono-fullstack/libs/ui/src/theme/global-css.ts +12 -0
  196. package/templates/hono-fullstack/libs/ui/src/theme/keyframes.ts +157 -0
  197. package/templates/hono-fullstack/libs/ui/src/theme/layer-styles.ts +11 -0
  198. package/templates/hono-fullstack/libs/ui/src/theme/patterns/grid.ts +51 -0
  199. package/templates/hono-fullstack/libs/ui/src/theme/patterns/index.ts +60 -0
  200. package/templates/hono-fullstack/libs/ui/src/theme/patterns/stack.ts +46 -0
  201. package/templates/hono-fullstack/libs/ui/src/theme/recipes/absolute-center.ts +38 -0
  202. package/templates/hono-fullstack/libs/ui/src/theme/recipes/accordion.ts +68 -0
  203. package/templates/hono-fullstack/libs/ui/src/theme/recipes/alert.ts +83 -0
  204. package/templates/hono-fullstack/libs/ui/src/theme/recipes/avatar.ts +155 -0
  205. package/templates/hono-fullstack/libs/ui/src/theme/recipes/badge.ts +67 -0
  206. package/templates/hono-fullstack/libs/ui/src/theme/recipes/breadcrumb.ts +69 -0
  207. package/templates/hono-fullstack/libs/ui/src/theme/recipes/button.ts +149 -0
  208. package/templates/hono-fullstack/libs/ui/src/theme/recipes/card.ts +36 -0
  209. package/templates/hono-fullstack/libs/ui/src/theme/recipes/checkbox.ts +120 -0
  210. package/templates/hono-fullstack/libs/ui/src/theme/recipes/clipboard.ts +22 -0
  211. package/templates/hono-fullstack/libs/ui/src/theme/recipes/collapsible.ts +26 -0
  212. package/templates/hono-fullstack/libs/ui/src/theme/recipes/color-picker.ts +299 -0
  213. package/templates/hono-fullstack/libs/ui/src/theme/recipes/combobox.ts +141 -0
  214. package/templates/hono-fullstack/libs/ui/src/theme/recipes/date-picker.ts +302 -0
  215. package/templates/hono-fullstack/libs/ui/src/theme/recipes/dialog.ts +191 -0
  216. package/templates/hono-fullstack/libs/ui/src/theme/recipes/drawer.ts +170 -0
  217. package/templates/hono-fullstack/libs/ui/src/theme/recipes/editable.ts +64 -0
  218. package/templates/hono-fullstack/libs/ui/src/theme/recipes/field.ts +41 -0
  219. package/templates/hono-fullstack/libs/ui/src/theme/recipes/fieldset.ts +47 -0
  220. package/templates/hono-fullstack/libs/ui/src/theme/recipes/file-upload.ts +86 -0
  221. package/templates/hono-fullstack/libs/ui/src/theme/recipes/group.ts +78 -0
  222. package/templates/hono-fullstack/libs/ui/src/theme/recipes/heading.ts +24 -0
  223. package/templates/hono-fullstack/libs/ui/src/theme/recipes/hover-card.ts +47 -0
  224. package/templates/hono-fullstack/libs/ui/src/theme/recipes/icon.ts +25 -0
  225. package/templates/hono-fullstack/libs/ui/src/theme/recipes/index.ts +120 -0
  226. package/templates/hono-fullstack/libs/ui/src/theme/recipes/input-addon.ts +51 -0
  227. package/templates/hono-fullstack/libs/ui/src/theme/recipes/input-group.ts +77 -0
  228. package/templates/hono-fullstack/libs/ui/src/theme/recipes/input.ts +99 -0
  229. package/templates/hono-fullstack/libs/ui/src/theme/recipes/link.ts +36 -0
  230. package/templates/hono-fullstack/libs/ui/src/theme/recipes/menu.ts +114 -0
  231. package/templates/hono-fullstack/libs/ui/src/theme/recipes/native-select.ts +92 -0
  232. package/templates/hono-fullstack/libs/ui/src/theme/recipes/number-input.ts +91 -0
  233. package/templates/hono-fullstack/libs/ui/src/theme/recipes/pagination.ts +9 -0
  234. package/templates/hono-fullstack/libs/ui/src/theme/recipes/pin-input.ts +33 -0
  235. package/templates/hono-fullstack/libs/ui/src/theme/recipes/popover.ts +78 -0
  236. package/templates/hono-fullstack/libs/ui/src/theme/recipes/progress-circle.ts +50 -0
  237. package/templates/hono-fullstack/libs/ui/src/theme/recipes/progress.ts +112 -0
  238. package/templates/hono-fullstack/libs/ui/src/theme/recipes/radio-card.ts +223 -0
  239. package/templates/hono-fullstack/libs/ui/src/theme/recipes/radio-group.ts +78 -0
  240. package/templates/hono-fullstack/libs/ui/src/theme/recipes/rating-group.ts +98 -0
  241. package/templates/hono-fullstack/libs/ui/src/theme/recipes/scroll-area.ts +119 -0
  242. package/templates/hono-fullstack/libs/ui/src/theme/recipes/segment-group.ts +162 -0
  243. package/templates/hono-fullstack/libs/ui/src/theme/recipes/select.ts +157 -0
  244. package/templates/hono-fullstack/libs/ui/src/theme/recipes/separator.ts +25 -0
  245. package/templates/hono-fullstack/libs/ui/src/theme/recipes/skeleton.ts +65 -0
  246. package/templates/hono-fullstack/libs/ui/src/theme/recipes/slider.ts +164 -0
  247. package/templates/hono-fullstack/libs/ui/src/theme/recipes/spinner.ts +34 -0
  248. package/templates/hono-fullstack/libs/ui/src/theme/recipes/steps.ts +162 -0
  249. package/templates/hono-fullstack/libs/ui/src/theme/recipes/switch.ts +150 -0
  250. package/templates/hono-fullstack/libs/ui/src/theme/recipes/table.ts +150 -0
  251. package/templates/hono-fullstack/libs/ui/src/theme/recipes/tabs.ts +128 -0
  252. package/templates/hono-fullstack/libs/ui/src/theme/recipes/tag.ts +114 -0
  253. package/templates/hono-fullstack/libs/ui/src/theme/recipes/tags-input.ts +201 -0
  254. package/templates/hono-fullstack/libs/ui/src/theme/recipes/text.ts +7 -0
  255. package/templates/hono-fullstack/libs/ui/src/theme/recipes/textarea.ts +90 -0
  256. package/templates/hono-fullstack/libs/ui/src/theme/recipes/timeline.ts +137 -0
  257. package/templates/hono-fullstack/libs/ui/src/theme/recipes/toast.ts +52 -0
  258. package/templates/hono-fullstack/libs/ui/src/theme/recipes/tooltip.ts +44 -0
  259. package/templates/hono-fullstack/libs/ui/src/theme/recipes/tree-view.ts +200 -0
  260. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/amber.ts +91 -0
  261. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/gray.ts +103 -0
  262. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/green.ts +88 -0
  263. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/index.ts +14 -0
  264. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/lime.ts +91 -0
  265. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/red.ts +88 -0
  266. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/index.ts +8 -0
  267. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/shadows.ts +46 -0
  268. package/templates/hono-fullstack/libs/ui/src/theme/text-styles.ts +82 -0
  269. package/templates/hono-fullstack/libs/ui/src/theme/tokens/animations.ts +8 -0
  270. package/templates/hono-fullstack/libs/ui/src/theme/tokens/aspect-ratio.ts +6 -0
  271. package/templates/hono-fullstack/libs/ui/src/theme/tokens/borders.ts +5 -0
  272. package/templates/hono-fullstack/libs/ui/src/theme/tokens/colors.ts +35 -0
  273. package/templates/hono-fullstack/libs/ui/src/theme/tokens/durations.ts +11 -0
  274. package/templates/hono-fullstack/libs/ui/src/theme/tokens/easings.ts +9 -0
  275. package/templates/hono-fullstack/libs/ui/src/theme/tokens/index.ts +42 -0
  276. package/templates/hono-fullstack/libs/ui/src/theme/tokens/radii.ts +13 -0
  277. package/templates/hono-fullstack/libs/ui/src/theme/tokens/sizes.ts +27 -0
  278. package/templates/hono-fullstack/libs/ui/src/theme/tokens/spacing.ts +41 -0
  279. package/templates/hono-fullstack/libs/ui/src/theme/tokens/typography.ts +86 -0
  280. package/templates/hono-fullstack/libs/ui/src/theme/tokens/z-index.ts +43 -0
  281. package/templates/hono-fullstack/libs/ui/stories/README.md +107 -0
  282. package/templates/hono-fullstack/libs/ui/stories/actions/Button.stories.tsx +260 -0
  283. package/templates/hono-fullstack/libs/ui/stories/actions/Clipboard.stories.tsx +87 -0
  284. package/templates/hono-fullstack/libs/ui/stories/actions/IconButton.stories.tsx +33 -0
  285. package/templates/hono-fullstack/libs/ui/stories/collections/Combobox.stories.tsx +334 -0
  286. package/templates/hono-fullstack/libs/ui/stories/collections/Select.stories.tsx +342 -0
  287. package/templates/hono-fullstack/libs/ui/stories/collections/TreeView.stories.tsx +252 -0
  288. package/templates/hono-fullstack/libs/ui/stories/color/ColorPicker.stories.tsx +217 -0
  289. package/templates/hono-fullstack/libs/ui/stories/date/DatePicker.stories.tsx +302 -0
  290. package/templates/hono-fullstack/libs/ui/stories/disclosure/Accordion.stories.tsx +105 -0
  291. package/templates/hono-fullstack/libs/ui/stories/disclosure/Collapsible.stories.tsx +55 -0
  292. package/templates/hono-fullstack/libs/ui/stories/disclosure/Steps.stories.tsx +208 -0
  293. package/templates/hono-fullstack/libs/ui/stories/disclosure/Tabs.stories.tsx +176 -0
  294. package/templates/hono-fullstack/libs/ui/stories/display/Avatar.stories.tsx +108 -0
  295. package/templates/hono-fullstack/libs/ui/stories/display/Badge.stories.tsx +90 -0
  296. package/templates/hono-fullstack/libs/ui/stories/display/Card.stories.tsx +121 -0
  297. package/templates/hono-fullstack/libs/ui/stories/display/Heading.stories.tsx +62 -0
  298. package/templates/hono-fullstack/libs/ui/stories/display/Icon.stories.tsx +51 -0
  299. package/templates/hono-fullstack/libs/ui/stories/display/Table.stories.tsx +222 -0
  300. package/templates/hono-fullstack/libs/ui/stories/display/Tag.stories.tsx +168 -0
  301. package/templates/hono-fullstack/libs/ui/stories/display/Text.stories.tsx +32 -0
  302. package/templates/hono-fullstack/libs/ui/stories/display/Timeline.stories.tsx +241 -0
  303. package/templates/hono-fullstack/libs/ui/stories/feedback/Alert.stories.tsx +122 -0
  304. package/templates/hono-fullstack/libs/ui/stories/feedback/Progress.stories.tsx +163 -0
  305. package/templates/hono-fullstack/libs/ui/stories/feedback/ProgressCircle.stories.tsx +176 -0
  306. package/templates/hono-fullstack/libs/ui/stories/feedback/Skeleton.stories.tsx +75 -0
  307. package/templates/hono-fullstack/libs/ui/stories/feedback/Spinner.stories.tsx +49 -0
  308. package/templates/hono-fullstack/libs/ui/stories/feedback/Toast.stories.tsx +145 -0
  309. package/templates/hono-fullstack/libs/ui/stories/forms/Checkbox.stories.tsx +281 -0
  310. package/templates/hono-fullstack/libs/ui/stories/forms/Editable.stories.tsx +94 -0
  311. package/templates/hono-fullstack/libs/ui/stories/forms/Field.stories.tsx +72 -0
  312. package/templates/hono-fullstack/libs/ui/stories/forms/Fieldset.stories.tsx +109 -0
  313. package/templates/hono-fullstack/libs/ui/stories/forms/FileUpload.stories.tsx +115 -0
  314. package/templates/hono-fullstack/libs/ui/stories/forms/Form.stories.tsx +120 -0
  315. package/templates/hono-fullstack/libs/ui/stories/forms/Input.stories.tsx +155 -0
  316. package/templates/hono-fullstack/libs/ui/stories/forms/InputGroup.stories.tsx +79 -0
  317. package/templates/hono-fullstack/libs/ui/stories/forms/NativeSelect.stories.tsx +160 -0
  318. package/templates/hono-fullstack/libs/ui/stories/forms/NumberInput.stories.tsx +149 -0
  319. package/templates/hono-fullstack/libs/ui/stories/forms/PasswordInput.stories.tsx +141 -0
  320. package/templates/hono-fullstack/libs/ui/stories/forms/PinInput.stories.tsx +155 -0
  321. package/templates/hono-fullstack/libs/ui/stories/forms/RadioCard.stories.tsx +265 -0
  322. package/templates/hono-fullstack/libs/ui/stories/forms/RadioGroup.stories.tsx +109 -0
  323. package/templates/hono-fullstack/libs/ui/stories/forms/RatingGroup.stories.tsx +123 -0
  324. package/templates/hono-fullstack/libs/ui/stories/forms/SegmentGroup.stories.tsx +130 -0
  325. package/templates/hono-fullstack/libs/ui/stories/forms/Slider.stories.tsx +190 -0
  326. package/templates/hono-fullstack/libs/ui/stories/forms/Switch.stories.tsx +124 -0
  327. package/templates/hono-fullstack/libs/ui/stories/forms/TagsInput.stories.tsx +154 -0
  328. package/templates/hono-fullstack/libs/ui/stories/forms/Textarea.stories.tsx +148 -0
  329. package/templates/hono-fullstack/libs/ui/stories/layout/Grid.stories.tsx +60 -0
  330. package/templates/hono-fullstack/libs/ui/stories/layout/Positioning.stories.tsx +90 -0
  331. package/templates/hono-fullstack/libs/ui/stories/layout/ScrollArea.stories.tsx +68 -0
  332. package/templates/hono-fullstack/libs/ui/stories/layout/Stack.stories.tsx +87 -0
  333. package/templates/hono-fullstack/libs/ui/stories/navigation/Breadcrumb.stories.tsx +104 -0
  334. package/templates/hono-fullstack/libs/ui/stories/navigation/Link.stories.tsx +62 -0
  335. package/templates/hono-fullstack/libs/ui/stories/navigation/LinkBox.stories.tsx +45 -0
  336. package/templates/hono-fullstack/libs/ui/stories/navigation/Pagination.stories.tsx +74 -0
  337. package/templates/hono-fullstack/libs/ui/stories/overlays/Dialog.stories.tsx +255 -0
  338. package/templates/hono-fullstack/libs/ui/stories/overlays/Drawer.stories.tsx +114 -0
  339. package/templates/hono-fullstack/libs/ui/stories/overlays/HoverCard.stories.tsx +47 -0
  340. package/templates/hono-fullstack/libs/ui/stories/overlays/Menu.stories.tsx +133 -0
  341. package/templates/hono-fullstack/libs/ui/stories/overlays/OverlayManager.stories.tsx +206 -0
  342. package/templates/hono-fullstack/libs/ui/stories/overlays/Popover.stories.tsx +73 -0
  343. package/templates/hono-fullstack/libs/ui/stories/overlays/Tooltip.stories.tsx +114 -0
  344. package/templates/hono-fullstack/libs/ui/stories/tsconfig.json +14 -0
  345. package/templates/hono-fullstack/libs/ui/tsconfig.build.json +5 -0
  346. package/templates/hono-fullstack/libs/ui/tsconfig.json +13 -0
  347. package/templates/hono-fullstack/libs/ui/turbo.json +28 -0
  348. package/templates/hono-fullstack/libs/ui/vite.config.ts +33 -0
  349. package/templates/hono-fullstack/oyo.config.json +30 -4
  350. package/templates/hono-fullstack/package.json +1 -0
  351. package/templates/hono-fullstack/pnpm-workspace.yaml +20 -10
  352. package/templates/hono-fullstack/turbo.json +10 -0
  353. package/templates/hono-server/.agents/skills/{grilling → ask-grilling}/SKILL.md +1 -1
  354. package/templates/hono-server/.agents/skills/build-api-and-interface-design/SKILL.md +369 -0
  355. package/templates/hono-server/.agents/skills/build-context-engineering/SKILL.md +353 -0
  356. package/templates/hono-server/.agents/skills/build-incremental-implementation/SKILL.md +249 -0
  357. package/templates/hono-server/.agents/skills/build-observability-and-instrumentation/SKILL.md +239 -0
  358. package/templates/hono-server/.agents/skills/plan-planning-and-task-breakdown/SKILL.md +257 -0
  359. package/templates/hono-server/.agents/skills/{prototype → plan-prototype}/LOGIC.md +1 -1
  360. package/templates/hono-server/.agents/skills/{prototype → plan-prototype}/SKILL.md +2 -2
  361. package/templates/{monorepo/.agents/skills/prototype → hono-server/.agents/skills/plan-prototype}/UI.md +2 -2
  362. package/templates/{hono-fullstack/.agents/skills/research → hono-server/.agents/skills/plan-research}/SKILL.md +2 -2
  363. package/templates/hono-server/.agents/skills/plan-using-agent-skills/SKILL.md +185 -0
  364. package/templates/{hono-fullstack/.agents/skills/wayfinder → hono-server/.agents/skills/plan-wayfinder}/SKILL.md +43 -29
  365. package/templates/hono-server/.agents/skills/review-code-review-and-quality/SKILL.md +400 -0
  366. package/templates/hono-server/.agents/skills/review-doubt-driven-development/SKILL.md +244 -0
  367. package/templates/hono-server/.agents/skills/review-security-and-hardening/SKILL.md +216 -0
  368. package/templates/hono-server/.agents/skills/review-security-and-hardening/references/hardening-patterns.md +331 -0
  369. package/templates/hono-server/.agents/skills/ship-ci-cd-and-automation/SKILL.md +393 -0
  370. package/templates/hono-server/.agents/skills/ship-deprecation-and-migration/SKILL.md +252 -0
  371. package/templates/hono-server/.agents/skills/ship-documentation-and-adrs/SKILL.md +298 -0
  372. package/templates/hono-server/.agents/skills/ship-git-workflow-and-versioning/SKILL.md +355 -0
  373. package/templates/hono-server/.agents/skills/ship-shipping-and-launch/SKILL.md +336 -0
  374. package/templates/hono-server/.agents/skills/simplify-code-simplification/SKILL.md +332 -0
  375. package/templates/hono-server/.agents/skills/simplify-performance-optimization/SKILL.md +268 -0
  376. package/templates/hono-server/.agents/skills/simplify-performance-optimization/references/optimization-patterns.md +250 -0
  377. package/templates/hono-server/.agents/skills/spec-constraint-driven-development/SKILL.md +318 -0
  378. package/templates/hono-server/.agents/skills/spec-constraint-driven-development/references/floor-guard.md +182 -0
  379. package/templates/hono-server/.agents/skills/spec-constraint-driven-development/scripts/quality-gate.mjs +45 -0
  380. package/templates/hono-server/.agents/skills/spec-driven-development/SKILL.md +261 -0
  381. package/templates/hono-server/.agents/skills/test-browser-testing-with-devtools/SKILL.md +319 -0
  382. package/templates/hono-server/.agents/skills/test-debugging-and-error-recovery/SKILL.md +300 -0
  383. package/templates/hono-server/.agents/skills/test-driven-development/SKILL.md +400 -0
  384. package/templates/hono-server/.codegraph/.gitignore +5 -0
  385. package/templates/hono-server/AGENTS.md +9 -20
  386. package/templates/hono-server/README.md +9 -1
  387. package/templates/hono-server/_gitignore +1 -0
  388. package/templates/hono-server/apps/server/package.json +7 -2
  389. package/templates/hono-server/apps/server/src/adapters/cloudflare/entry.ts +4 -30
  390. package/templates/hono-server/apps/server/src/adapters/nodejs/bootstrap.ts +20 -12
  391. package/templates/hono-server/apps/server/src/adapters/nodejs/entry.ts +7 -57
  392. package/templates/hono-server/apps/server/src/app.ts +37 -21
  393. package/templates/hono-server/apps/server/src/config.ts +1 -1
  394. package/templates/hono-server/apps/server/src/di-container.ts +51 -0
  395. package/templates/hono-server/apps/server/src/infra/logger/getter.ts +1 -1
  396. package/templates/hono-server/apps/server/src/infra/logger/pino.ts +21 -34
  397. package/templates/hono-server/apps/server/src/infra/work-runner/errors.ts +22 -0
  398. package/templates/hono-server/apps/server/src/infra/work-runner/pass-through/runner.ts +28 -22
  399. package/templates/hono-server/apps/server/src/infra/work-runner/piscina/runner.ts +11 -34
  400. package/templates/{hono-fullstack/apps/server/src/infra/work-runner/example → hono-server/apps/server/src/infra/work-runner/piscina}/worker-entry.ts +6 -2
  401. package/templates/hono-server/apps/server/src/infra/work-runner/types.ts +2 -16
  402. package/templates/hono-server/apps/server/src/infra/work-runner/utils/business-error.ts +10 -5
  403. package/templates/hono-server/apps/server/src/infra/work-runner/utils/message.ts +5 -17
  404. package/templates/hono-server/apps/server/src/middlewares/cors.ts +16 -22
  405. package/templates/hono-server/apps/server/src/middlewares/logger.ts +34 -0
  406. package/templates/hono-server/apps/server/src/modules/example/module.ts +8 -0
  407. package/templates/hono-server/apps/server/src/modules/example/queries.ts +8 -0
  408. package/templates/hono-server/apps/server/src/modules/example/routes.ts +74 -68
  409. package/templates/hono-server/apps/server/src/modules/example/service.test.ts +53 -0
  410. package/templates/hono-server/apps/server/src/modules/example/service.ts +54 -0
  411. package/templates/hono-server/apps/server/src/modules/example/types.ts +12 -0
  412. package/templates/hono-server/apps/server/src/modules/example/work-task/tasks.test.ts +9 -35
  413. package/templates/hono-server/apps/server/src/modules/example/work-task/tasks.ts +15 -46
  414. package/templates/hono-server/apps/server/src/shared/errors/defs/index.ts +6 -1
  415. package/templates/hono-server/apps/server/src/shared/errors/handler.ts +1 -1
  416. package/templates/hono-server/apps/server/src/shared/network/openapi/index.ts +1 -1
  417. package/templates/hono-server/apps/server/src/shared/types/app.ts +51 -0
  418. package/templates/hono-server/apps/server/src/shared/types/db.ts +126 -0
  419. package/templates/hono-server/apps/server/src/shared/utils/data-access/check.ts +19 -0
  420. package/templates/hono-server/apps/server/src/shared/utils/data-access/model.ts +47 -0
  421. package/templates/hono-server/apps/server/src/shared/utils/data-access/params.ts +105 -0
  422. package/templates/hono-server/apps/server/src/shared/utils/data-access/query.test.ts +139 -0
  423. package/templates/hono-server/apps/server/src/shared/utils/data-access/query.ts +236 -0
  424. package/templates/hono-server/apps/server/vite.config.ts +2 -2
  425. package/templates/hono-server/apps/server/wrangler.jsonc +1 -1
  426. package/templates/hono-server/docker/README.md +1 -1
  427. package/templates/hono-server/envs/.env.example.sqlite-d1 +1 -0
  428. package/templates/hono-server/libs/db/drizzle-kit/sqlite-d1.config.ts +29 -10
  429. package/templates/hono-server/libs/db/package.json +1 -0
  430. package/templates/hono-server/libs/db/src/dialects/sqlite/schema/columns.ts +1 -1
  431. package/templates/hono-server/libs/db/src/dialects/sqlite/schema/modules/examples/examples.ts +6 -3
  432. package/templates/hono-server/libs/db/src/dialects/sqlite/schema/vo.ts +7 -1
  433. package/templates/hono-server/libs/definition/README.md +81 -0
  434. package/templates/hono-server/libs/definition/package.json +3 -1
  435. package/templates/hono-server/libs/definition/src/constants/index.ts +1 -0
  436. package/templates/hono-server/libs/definition/src/constants/pagination.ts +3 -0
  437. package/templates/hono-server/libs/definition/src/modules/common-contracts.ts +24 -0
  438. package/templates/hono-server/libs/definition/src/modules/example/contracts.ts +34 -0
  439. package/templates/hono-server/libs/definition/src/modules/example/index.ts +1 -16
  440. package/templates/hono-server/libs/definition/src/modules/index.ts +2 -0
  441. package/templates/hono-server/libs/definition/src/modules/vo-generated-types.ts +12 -0
  442. package/templates/hono-server/oyo.config.json +30 -4
  443. package/templates/hono-server/package.json +1 -0
  444. package/templates/hono-server/pnpm-workspace.yaml +9 -7
  445. package/templates/hono-server/turbo.json +10 -0
  446. package/templates/{hono-fullstack/.agents/skills/grilling → monorepo/.agents/skills/ask-grilling}/SKILL.md +1 -1
  447. package/templates/monorepo/.agents/skills/build-api-and-interface-design/SKILL.md +369 -0
  448. package/templates/monorepo/.agents/skills/build-context-engineering/SKILL.md +353 -0
  449. package/templates/monorepo/.agents/skills/build-incremental-implementation/SKILL.md +249 -0
  450. package/templates/monorepo/.agents/skills/build-observability-and-instrumentation/SKILL.md +239 -0
  451. package/templates/monorepo/.agents/skills/plan-planning-and-task-breakdown/SKILL.md +257 -0
  452. package/templates/{hono-fullstack/.agents/skills/prototype → monorepo/.agents/skills/plan-prototype}/LOGIC.md +1 -1
  453. package/templates/{hono-fullstack/.agents/skills/prototype → monorepo/.agents/skills/plan-prototype}/SKILL.md +2 -2
  454. package/templates/{hono-server/.agents/skills/prototype → monorepo/.agents/skills/plan-prototype}/UI.md +2 -2
  455. package/templates/{hono-server/.agents/skills/research → monorepo/.agents/skills/plan-research}/SKILL.md +2 -2
  456. package/templates/monorepo/.agents/skills/plan-using-agent-skills/SKILL.md +185 -0
  457. package/templates/{hono-server/.agents/skills/wayfinder → monorepo/.agents/skills/plan-wayfinder}/SKILL.md +43 -29
  458. package/templates/monorepo/.agents/skills/review-code-review-and-quality/SKILL.md +400 -0
  459. package/templates/monorepo/.agents/skills/review-doubt-driven-development/SKILL.md +244 -0
  460. package/templates/monorepo/.agents/skills/review-security-and-hardening/SKILL.md +216 -0
  461. package/templates/monorepo/.agents/skills/review-security-and-hardening/references/hardening-patterns.md +331 -0
  462. package/templates/monorepo/.agents/skills/ship-ci-cd-and-automation/SKILL.md +393 -0
  463. package/templates/monorepo/.agents/skills/ship-deprecation-and-migration/SKILL.md +252 -0
  464. package/templates/monorepo/.agents/skills/ship-documentation-and-adrs/SKILL.md +298 -0
  465. package/templates/monorepo/.agents/skills/ship-git-workflow-and-versioning/SKILL.md +355 -0
  466. package/templates/monorepo/.agents/skills/ship-shipping-and-launch/SKILL.md +336 -0
  467. package/templates/monorepo/.agents/skills/simplify-code-simplification/SKILL.md +332 -0
  468. package/templates/monorepo/.agents/skills/simplify-performance-optimization/SKILL.md +268 -0
  469. package/templates/monorepo/.agents/skills/simplify-performance-optimization/references/optimization-patterns.md +250 -0
  470. package/templates/monorepo/.agents/skills/spec-constraint-driven-development/SKILL.md +318 -0
  471. package/templates/monorepo/.agents/skills/spec-constraint-driven-development/references/floor-guard.md +182 -0
  472. package/templates/monorepo/.agents/skills/spec-constraint-driven-development/scripts/quality-gate.mjs +45 -0
  473. package/templates/monorepo/.agents/skills/spec-driven-development/SKILL.md +261 -0
  474. package/templates/monorepo/.agents/skills/test-browser-testing-with-devtools/SKILL.md +319 -0
  475. package/templates/monorepo/.agents/skills/test-debugging-and-error-recovery/SKILL.md +300 -0
  476. package/templates/monorepo/.agents/skills/test-driven-development/SKILL.md +400 -0
  477. package/templates/monorepo/.codegraph/.gitignore +5 -0
  478. package/templates/monorepo/AGENTS.md +9 -20
  479. package/templates/monorepo/_gitignore +1 -0
  480. package/templates/monorepo/oyo.config.json +6 -4
  481. package/templates/monorepo/pnpm-workspace.yaml +4 -4
  482. package/templates/monorepo/turbo.json +10 -0
  483. package/templates/hono-fullstack/.agents/skills/ask-matt/PHASE-BOUNDARIES.md +0 -55
  484. package/templates/hono-fullstack/.agents/skills/ask-matt/SKILL.md +0 -90
  485. package/templates/hono-fullstack/.agents/skills/ask-matt/agents/openai.yaml +0 -5
  486. package/templates/hono-fullstack/.agents/skills/code-review/SKILL.md +0 -87
  487. package/templates/hono-fullstack/.agents/skills/code-review/agents/openai.yaml +0 -3
  488. package/templates/hono-fullstack/.agents/skills/codebase-design/DEEPENING.md +0 -37
  489. package/templates/hono-fullstack/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
  490. package/templates/hono-fullstack/.agents/skills/codebase-design/SKILL.md +0 -114
  491. package/templates/hono-fullstack/.agents/skills/codebase-design/agents/openai.yaml +0 -3
  492. package/templates/hono-fullstack/.agents/skills/confirm-requirements/SKILL.md +0 -25
  493. package/templates/hono-fullstack/.agents/skills/diagnosing-bugs/SKILL.md +0 -140
  494. package/templates/hono-fullstack/.agents/skills/diagnosing-bugs/agents/openai.yaml +0 -3
  495. package/templates/hono-fullstack/.agents/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -44
  496. package/templates/hono-fullstack/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
  497. package/templates/hono-fullstack/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  498. package/templates/hono-fullstack/.agents/skills/domain-modeling/SKILL.md +0 -74
  499. package/templates/hono-fullstack/.agents/skills/domain-modeling/agents/openai.yaml +0 -3
  500. package/templates/hono-fullstack/.agents/skills/grill-me/SKILL.md +0 -7
  501. package/templates/hono-fullstack/.agents/skills/grill-me/agents/openai.yaml +0 -5
  502. package/templates/hono-fullstack/.agents/skills/implement/SKILL.md +0 -15
  503. package/templates/hono-fullstack/.agents/skills/implement/agents/openai.yaml +0 -5
  504. package/templates/hono-fullstack/.agents/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
  505. package/templates/hono-fullstack/.agents/skills/improve-codebase-architecture/SKILL.md +0 -71
  506. package/templates/hono-fullstack/.agents/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
  507. package/templates/hono-fullstack/.agents/skills/resolving-merge-conflicts/SKILL.md +0 -14
  508. package/templates/hono-fullstack/.agents/skills/resolving-merge-conflicts/agents/openai.yaml +0 -3
  509. package/templates/hono-fullstack/.agents/skills/scoped-code-review/SKILL.md +0 -113
  510. package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/SKILL.md +0 -116
  511. package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/agents/openai.yaml +0 -5
  512. package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/domain.md +0 -51
  513. package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -45
  514. package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
  515. package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
  516. package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
  517. package/templates/hono-fullstack/.agents/skills/tdd/SKILL.md +0 -38
  518. package/templates/hono-fullstack/.agents/skills/tdd/agents/openai.yaml +0 -3
  519. package/templates/hono-fullstack/.agents/skills/tdd/mocking.md +0 -59
  520. package/templates/hono-fullstack/.agents/skills/tdd/tests.md +0 -77
  521. package/templates/hono-fullstack/.agents/skills/teach/GLOSSARY-FORMAT.md +0 -35
  522. package/templates/hono-fullstack/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +0 -46
  523. package/templates/hono-fullstack/.agents/skills/teach/MISSION-FORMAT.md +0 -31
  524. package/templates/hono-fullstack/.agents/skills/teach/RESOURCES-FORMAT.md +0 -32
  525. package/templates/hono-fullstack/.agents/skills/teach/SKILL.md +0 -140
  526. package/templates/hono-fullstack/.agents/skills/teach/agents/openai.yaml +0 -5
  527. package/templates/hono-fullstack/.agents/skills/to-questionnaire/SKILL.md +0 -53
  528. package/templates/hono-fullstack/.agents/skills/to-questionnaire/agents/openai.yaml +0 -5
  529. package/templates/hono-fullstack/.agents/skills/triage/AGENT-BRIEF.md +0 -207
  530. package/templates/hono-fullstack/.agents/skills/triage/OUT-OF-SCOPE.md +0 -105
  531. package/templates/hono-fullstack/.agents/skills/triage/SKILL.md +0 -112
  532. package/templates/hono-fullstack/.agents/skills/triage/agents/openai.yaml +0 -5
  533. package/templates/hono-fullstack/.agents/skills/wait-what/SKILL.md +0 -7
  534. package/templates/hono-fullstack/.agents/skills/wait-what/agents/openai.yaml +0 -5
  535. package/templates/hono-fullstack/.agents/skills/wizard/SKILL.md +0 -44
  536. package/templates/hono-fullstack/.agents/skills/wizard/agents/openai.yaml +0 -3
  537. package/templates/hono-fullstack/.agents/skills/wizard/template.sh +0 -204
  538. package/templates/hono-fullstack/.agents/skills/writing-for-agents/SKILL-MECHANICS.md +0 -22
  539. package/templates/hono-fullstack/.agents/skills/writing-for-agents/SKILL.md +0 -81
  540. package/templates/hono-fullstack/.agents/skills/writing-for-agents/agents/openai.yaml +0 -3
  541. package/templates/hono-fullstack/apps/server/src/modules/example/contracts.ts +0 -9
  542. package/templates/hono-fullstack/apps/server/src/shared/app/types.ts +0 -44
  543. package/templates/hono-fullstack/apps/stack/frontend/styles.css +0 -23
  544. package/templates/hono-fullstack/docs/agents/domain.md +0 -41
  545. package/templates/hono-fullstack/docs/agents/issue-tracker.md +0 -30
  546. package/templates/hono-fullstack/docs/agents/triage-labels.md +0 -15
  547. package/templates/hono-server/.agents/skills/ask-matt/PHASE-BOUNDARIES.md +0 -55
  548. package/templates/hono-server/.agents/skills/ask-matt/SKILL.md +0 -90
  549. package/templates/hono-server/.agents/skills/ask-matt/agents/openai.yaml +0 -5
  550. package/templates/hono-server/.agents/skills/code-review/SKILL.md +0 -87
  551. package/templates/hono-server/.agents/skills/code-review/agents/openai.yaml +0 -3
  552. package/templates/hono-server/.agents/skills/codebase-design/DEEPENING.md +0 -37
  553. package/templates/hono-server/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
  554. package/templates/hono-server/.agents/skills/codebase-design/SKILL.md +0 -114
  555. package/templates/hono-server/.agents/skills/codebase-design/agents/openai.yaml +0 -3
  556. package/templates/hono-server/.agents/skills/confirm-requirements/SKILL.md +0 -25
  557. package/templates/hono-server/.agents/skills/diagnosing-bugs/SKILL.md +0 -140
  558. package/templates/hono-server/.agents/skills/diagnosing-bugs/agents/openai.yaml +0 -3
  559. package/templates/hono-server/.agents/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -44
  560. package/templates/hono-server/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
  561. package/templates/hono-server/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  562. package/templates/hono-server/.agents/skills/domain-modeling/SKILL.md +0 -74
  563. package/templates/hono-server/.agents/skills/domain-modeling/agents/openai.yaml +0 -3
  564. package/templates/hono-server/.agents/skills/grill-me/SKILL.md +0 -7
  565. package/templates/hono-server/.agents/skills/grill-me/agents/openai.yaml +0 -5
  566. package/templates/hono-server/.agents/skills/implement/SKILL.md +0 -15
  567. package/templates/hono-server/.agents/skills/implement/agents/openai.yaml +0 -5
  568. package/templates/hono-server/.agents/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
  569. package/templates/hono-server/.agents/skills/improve-codebase-architecture/SKILL.md +0 -71
  570. package/templates/hono-server/.agents/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
  571. package/templates/hono-server/.agents/skills/resolving-merge-conflicts/SKILL.md +0 -14
  572. package/templates/hono-server/.agents/skills/resolving-merge-conflicts/agents/openai.yaml +0 -3
  573. package/templates/hono-server/.agents/skills/scoped-code-review/SKILL.md +0 -113
  574. package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/SKILL.md +0 -116
  575. package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/agents/openai.yaml +0 -5
  576. package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/domain.md +0 -51
  577. package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -45
  578. package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
  579. package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
  580. package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
  581. package/templates/hono-server/.agents/skills/tdd/SKILL.md +0 -38
  582. package/templates/hono-server/.agents/skills/tdd/agents/openai.yaml +0 -3
  583. package/templates/hono-server/.agents/skills/tdd/mocking.md +0 -59
  584. package/templates/hono-server/.agents/skills/tdd/tests.md +0 -77
  585. package/templates/hono-server/.agents/skills/teach/GLOSSARY-FORMAT.md +0 -35
  586. package/templates/hono-server/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +0 -46
  587. package/templates/hono-server/.agents/skills/teach/MISSION-FORMAT.md +0 -31
  588. package/templates/hono-server/.agents/skills/teach/RESOURCES-FORMAT.md +0 -32
  589. package/templates/hono-server/.agents/skills/teach/SKILL.md +0 -140
  590. package/templates/hono-server/.agents/skills/teach/agents/openai.yaml +0 -5
  591. package/templates/hono-server/.agents/skills/to-questionnaire/SKILL.md +0 -53
  592. package/templates/hono-server/.agents/skills/to-questionnaire/agents/openai.yaml +0 -5
  593. package/templates/hono-server/.agents/skills/triage/AGENT-BRIEF.md +0 -207
  594. package/templates/hono-server/.agents/skills/triage/OUT-OF-SCOPE.md +0 -105
  595. package/templates/hono-server/.agents/skills/triage/SKILL.md +0 -112
  596. package/templates/hono-server/.agents/skills/triage/agents/openai.yaml +0 -5
  597. package/templates/hono-server/.agents/skills/wait-what/SKILL.md +0 -7
  598. package/templates/hono-server/.agents/skills/wait-what/agents/openai.yaml +0 -5
  599. package/templates/hono-server/.agents/skills/wizard/SKILL.md +0 -44
  600. package/templates/hono-server/.agents/skills/wizard/agents/openai.yaml +0 -3
  601. package/templates/hono-server/.agents/skills/wizard/template.sh +0 -204
  602. package/templates/hono-server/.agents/skills/writing-for-agents/SKILL-MECHANICS.md +0 -22
  603. package/templates/hono-server/.agents/skills/writing-for-agents/SKILL.md +0 -81
  604. package/templates/hono-server/.agents/skills/writing-for-agents/agents/openai.yaml +0 -3
  605. package/templates/hono-server/apps/server/src/modules/example/contracts.ts +0 -9
  606. package/templates/hono-server/apps/server/src/shared/app/types.ts +0 -44
  607. package/templates/hono-server/docs/agents/domain.md +0 -41
  608. package/templates/hono-server/docs/agents/issue-tracker.md +0 -30
  609. package/templates/hono-server/docs/agents/triage-labels.md +0 -15
  610. package/templates/monorepo/.agents/skills/ask-matt/PHASE-BOUNDARIES.md +0 -55
  611. package/templates/monorepo/.agents/skills/ask-matt/SKILL.md +0 -90
  612. package/templates/monorepo/.agents/skills/ask-matt/agents/openai.yaml +0 -5
  613. package/templates/monorepo/.agents/skills/code-review/SKILL.md +0 -87
  614. package/templates/monorepo/.agents/skills/code-review/agents/openai.yaml +0 -3
  615. package/templates/monorepo/.agents/skills/codebase-design/DEEPENING.md +0 -37
  616. package/templates/monorepo/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
  617. package/templates/monorepo/.agents/skills/codebase-design/SKILL.md +0 -114
  618. package/templates/monorepo/.agents/skills/codebase-design/agents/openai.yaml +0 -3
  619. package/templates/monorepo/.agents/skills/confirm-requirements/SKILL.md +0 -25
  620. package/templates/monorepo/.agents/skills/diagnosing-bugs/SKILL.md +0 -140
  621. package/templates/monorepo/.agents/skills/diagnosing-bugs/agents/openai.yaml +0 -3
  622. package/templates/monorepo/.agents/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -44
  623. package/templates/monorepo/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
  624. package/templates/monorepo/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  625. package/templates/monorepo/.agents/skills/domain-modeling/SKILL.md +0 -74
  626. package/templates/monorepo/.agents/skills/domain-modeling/agents/openai.yaml +0 -3
  627. package/templates/monorepo/.agents/skills/grill-me/SKILL.md +0 -7
  628. package/templates/monorepo/.agents/skills/grill-me/agents/openai.yaml +0 -5
  629. package/templates/monorepo/.agents/skills/implement/SKILL.md +0 -15
  630. package/templates/monorepo/.agents/skills/implement/agents/openai.yaml +0 -5
  631. package/templates/monorepo/.agents/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
  632. package/templates/monorepo/.agents/skills/improve-codebase-architecture/SKILL.md +0 -71
  633. package/templates/monorepo/.agents/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
  634. package/templates/monorepo/.agents/skills/resolving-merge-conflicts/SKILL.md +0 -14
  635. package/templates/monorepo/.agents/skills/resolving-merge-conflicts/agents/openai.yaml +0 -3
  636. package/templates/monorepo/.agents/skills/scoped-code-review/SKILL.md +0 -113
  637. package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/SKILL.md +0 -116
  638. package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/agents/openai.yaml +0 -5
  639. package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/domain.md +0 -51
  640. package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -45
  641. package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
  642. package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
  643. package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
  644. package/templates/monorepo/.agents/skills/tdd/SKILL.md +0 -38
  645. package/templates/monorepo/.agents/skills/tdd/agents/openai.yaml +0 -3
  646. package/templates/monorepo/.agents/skills/tdd/mocking.md +0 -59
  647. package/templates/monorepo/.agents/skills/tdd/tests.md +0 -77
  648. package/templates/monorepo/.agents/skills/teach/GLOSSARY-FORMAT.md +0 -35
  649. package/templates/monorepo/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +0 -46
  650. package/templates/monorepo/.agents/skills/teach/MISSION-FORMAT.md +0 -31
  651. package/templates/monorepo/.agents/skills/teach/RESOURCES-FORMAT.md +0 -32
  652. package/templates/monorepo/.agents/skills/teach/SKILL.md +0 -140
  653. package/templates/monorepo/.agents/skills/teach/agents/openai.yaml +0 -5
  654. package/templates/monorepo/.agents/skills/to-questionnaire/SKILL.md +0 -53
  655. package/templates/monorepo/.agents/skills/to-questionnaire/agents/openai.yaml +0 -5
  656. package/templates/monorepo/.agents/skills/triage/AGENT-BRIEF.md +0 -207
  657. package/templates/monorepo/.agents/skills/triage/OUT-OF-SCOPE.md +0 -105
  658. package/templates/monorepo/.agents/skills/triage/SKILL.md +0 -112
  659. package/templates/monorepo/.agents/skills/triage/agents/openai.yaml +0 -5
  660. package/templates/monorepo/.agents/skills/wait-what/SKILL.md +0 -7
  661. package/templates/monorepo/.agents/skills/wait-what/agents/openai.yaml +0 -5
  662. package/templates/monorepo/.agents/skills/wizard/SKILL.md +0 -44
  663. package/templates/monorepo/.agents/skills/wizard/agents/openai.yaml +0 -3
  664. package/templates/monorepo/.agents/skills/wizard/template.sh +0 -204
  665. package/templates/monorepo/.agents/skills/writing-for-agents/SKILL-MECHANICS.md +0 -22
  666. package/templates/monorepo/.agents/skills/writing-for-agents/SKILL.md +0 -81
  667. package/templates/monorepo/.agents/skills/writing-for-agents/agents/openai.yaml +0 -3
  668. package/templates/monorepo/docs/agents/domain.md +0 -41
  669. package/templates/monorepo/docs/agents/issue-tracker.md +0 -30
  670. package/templates/monorepo/docs/agents/triage-labels.md +0 -15
  671. /package/templates/hono-fullstack/.agents/skills/{grilling → ask-grilling}/agents/openai.yaml +0 -0
  672. /package/templates/hono-fullstack/.agents/skills/{prototype → plan-prototype}/agents/openai.yaml +0 -0
  673. /package/templates/hono-fullstack/.agents/skills/{research → plan-research}/agents/openai.yaml +0 -0
  674. /package/templates/hono-fullstack/.agents/skills/{wayfinder → plan-wayfinder}/agents/openai.yaml +0 -0
  675. /package/templates/hono-server/.agents/skills/{grilling → ask-grilling}/agents/openai.yaml +0 -0
  676. /package/templates/hono-server/.agents/skills/{prototype → plan-prototype}/agents/openai.yaml +0 -0
  677. /package/templates/hono-server/.agents/skills/{research → plan-research}/agents/openai.yaml +0 -0
  678. /package/templates/hono-server/.agents/skills/{wayfinder → plan-wayfinder}/agents/openai.yaml +0 -0
  679. /package/templates/monorepo/.agents/skills/{grilling → ask-grilling}/agents/openai.yaml +0 -0
  680. /package/templates/monorepo/.agents/skills/{prototype → plan-prototype}/agents/openai.yaml +0 -0
  681. /package/templates/monorepo/.agents/skills/{research → plan-research}/agents/openai.yaml +0 -0
  682. /package/templates/monorepo/.agents/skills/{wayfinder → plan-wayfinder}/agents/openai.yaml +0 -0
@@ -0,0 +1,64 @@
1
+ 'use client'
2
+ import { Avatar } from '@ark-ui/react/avatar'
3
+ import { UserIcon } from 'lucide-react'
4
+ import { type ComponentProps, forwardRef } from 'react'
5
+ import { createSlotRecipeContext } from 'styled-system/jsx'
6
+ import { avatar, type AvatarVariantProps } from 'styled-system/recipes'
7
+ import type { StyledComponent } from 'styled-system/types'
8
+
9
+ const { withProvider, withContext } = createSlotRecipeContext(avatar)
10
+
11
+ export type RootProps = ComponentProps<typeof Root>
12
+ export const Root: StyledComponent<typeof Avatar.Root, AvatarVariantProps> = withProvider(
13
+ Avatar.Root,
14
+ 'root',
15
+ )
16
+ export const RootProvider: StyledComponent<typeof Avatar.RootProvider, AvatarVariantProps> =
17
+ withProvider(Avatar.RootProvider, 'root')
18
+ export const Image = withContext(Avatar.Image, 'image', {
19
+ defaultProps: {
20
+ draggable: 'false',
21
+ referrerPolicy: 'no-referrer',
22
+ },
23
+ })
24
+
25
+ export { AvatarContext as Context } from '@ark-ui/react/avatar'
26
+
27
+ export interface FallbackProps extends ComponentProps<typeof StyledFallback> {
28
+ /**
29
+ * The name to derive the initials from.
30
+ * If not provided, the fallback will display a generic icon.
31
+ */
32
+ name?: string | undefined
33
+ }
34
+
35
+ const StyledFallback: StyledComponent<typeof Avatar.Fallback> = withContext(
36
+ Avatar.Fallback,
37
+ 'fallback',
38
+ )
39
+
40
+ export const Fallback = forwardRef<HTMLDivElement, FallbackProps>(function Fallback(props, ref) {
41
+ const { name, children, asChild, ...rest } = props
42
+ const names = name?.trim().split(/\s+/) || []
43
+ const initials =
44
+ (names[0]?.[0] || '') + (names.length > 1 ? names[names.length - 1]?.[0] || '' : '')
45
+
46
+ const fallbackContent = children !== undefined || asChild ? children : initials || <UserIcon />
47
+
48
+ return (
49
+ <StyledFallback ref={ref} asChild={asChild} {...rest}>
50
+ {fallbackContent}
51
+ </StyledFallback>
52
+ )
53
+ })
54
+
55
+ export type RootProviderProps = ComponentProps<typeof RootProvider>
56
+ export type ImageProps = ComponentProps<typeof Image>
57
+
58
+ export {
59
+ useAvatar,
60
+ useAvatarContext,
61
+ type UseAvatarProps,
62
+ type UseAvatarReturn,
63
+ type AvatarStatusChangeDetails as StatusChangeDetails,
64
+ } from '@ark-ui/react/avatar'
@@ -0,0 +1,7 @@
1
+ import { ark } from '@ark-ui/react/factory'
2
+ import type { ComponentProps } from 'react'
3
+ import { styled } from 'styled-system/jsx'
4
+ import { badge } from 'styled-system/recipes'
5
+
6
+ export type BadgeProps = ComponentProps<typeof Badge>
7
+ export const Badge = styled(ark.div, badge)
@@ -0,0 +1,23 @@
1
+ 'use client'
2
+ import { ark } from '@ark-ui/react/factory'
3
+ import type { ComponentProps } from 'react'
4
+ import { createSlotRecipeContext } from 'styled-system/jsx'
5
+ import { card, type CardVariantProps } from 'styled-system/recipes'
6
+
7
+ import type { StyledComponent } from 'styled-system/types'
8
+
9
+ const { withProvider, withContext } = createSlotRecipeContext(card)
10
+
11
+ export type RootProps = ComponentProps<typeof Root>
12
+ export const Root: StyledComponent<typeof ark.div, CardVariantProps> = withProvider(ark.div, 'root')
13
+ export const Header = withContext(ark.div, 'header')
14
+ export const Body = withContext(ark.div, 'body')
15
+ export const Footer = withContext(ark.div, 'footer')
16
+ export const Title = withContext(ark.h3, 'title')
17
+ export const Description = withContext(ark.div, 'description')
18
+
19
+ export type HeaderProps = ComponentProps<typeof Header>
20
+ export type BodyProps = ComponentProps<typeof Body>
21
+ export type FooterProps = ComponentProps<typeof Footer>
22
+ export type TitleProps = ComponentProps<typeof Title>
23
+ export type DescriptionProps = ComponentProps<typeof Description>
@@ -0,0 +1,77 @@
1
+ 'use client'
2
+ import { Clipboard } from '@ark-ui/react/clipboard'
3
+ import { CheckIcon, CopyIcon } from 'lucide-react'
4
+ import { type ComponentProps, forwardRef } from 'react'
5
+ import { createSlotRecipeContext } from 'styled-system/jsx'
6
+ import { clipboard, type ClipboardVariantProps } from 'styled-system/recipes'
7
+
8
+ import type { StyledComponent } from 'styled-system/types'
9
+
10
+ const { withProvider, withContext } = createSlotRecipeContext(clipboard)
11
+
12
+ export type RootProps = ComponentProps<typeof Root>
13
+ export const Root: StyledComponent<typeof Clipboard.Root, ClipboardVariantProps> = withProvider(
14
+ Clipboard.Root,
15
+ 'root',
16
+ )
17
+ export const RootProvider: StyledComponent<typeof Clipboard.RootProvider, ClipboardVariantProps> =
18
+ withProvider(Clipboard.RootProvider, 'root')
19
+ export const Control = withContext(Clipboard.Control, 'control')
20
+ export const Input = withContext(Clipboard.Input, 'input')
21
+ export const Label = withContext(Clipboard.Label, 'label')
22
+ export const Trigger = withContext(Clipboard.Trigger, 'trigger')
23
+ export const ValueText = withContext(Clipboard.ValueText, 'valueText')
24
+
25
+ export { ClipboardContext as Context } from '@ark-ui/react/clipboard'
26
+
27
+ export interface IndicatorProps extends ComponentProps<typeof StyledIndicator> {}
28
+
29
+ const StyledIndicator: StyledComponent<typeof Clipboard.Indicator> = withContext(
30
+ Clipboard.Indicator,
31
+ 'indicator',
32
+ )
33
+
34
+ export const Indicator = forwardRef<HTMLDivElement, IndicatorProps>(function Indicator(
35
+ { children, ...props },
36
+ ref,
37
+ ) {
38
+ return (
39
+ <StyledIndicator ref={ref} copied={<CheckIcon />} {...props}>
40
+ {children == null ? <CopyIcon /> : children}
41
+ </StyledIndicator>
42
+ )
43
+ })
44
+
45
+ export const CopyText = forwardRef<HTMLDivElement, IndicatorProps>(function CopyText(
46
+ { children, ...props },
47
+ ref,
48
+ ) {
49
+ return (
50
+ <StyledIndicator ref={ref} copied="Copied" {...props}>
51
+ {children == null ? 'Copy' : children}
52
+ </StyledIndicator>
53
+ )
54
+ })
55
+
56
+ export type RootProviderProps = ComponentProps<typeof RootProvider>
57
+
58
+ export type ControlProps = ComponentProps<typeof Control>
59
+
60
+ export type InputProps = ComponentProps<typeof Input>
61
+
62
+ export type LabelProps = ComponentProps<typeof Label>
63
+
64
+ export type TriggerProps = ComponentProps<typeof Trigger>
65
+
66
+ export type ValueTextProps = ComponentProps<typeof ValueText>
67
+
68
+ export {
69
+ useClipboard,
70
+ useClipboardContext,
71
+ type UseClipboardProps,
72
+ type UseClipboardReturn,
73
+ type ClipboardCopyStatusDetails as CopyStatusDetails,
74
+ type ClipboardValueChangeDetails as ValueChangeDetails,
75
+ } from '@ark-ui/react/clipboard'
76
+
77
+ export type CopyTextProps = IndicatorProps
@@ -0,0 +1,9 @@
1
+ import { ark } from '@ark-ui/react/factory'
2
+ import type { ComponentProps } from 'react'
3
+ import { styled } from 'styled-system/jsx'
4
+ import { icon } from 'styled-system/recipes'
5
+
6
+ export type IconProps = ComponentProps<typeof Icon>
7
+ export const Icon = styled(ark.svg, icon, {
8
+ defaultProps: { asChild: true },
9
+ })
@@ -0,0 +1,51 @@
1
+ 'use client'
2
+ import { ark } from '@ark-ui/react/factory'
3
+ import { forwardRef, type ComponentProps } from 'react'
4
+ import { createSlotRecipeContext, styled } from 'styled-system/jsx'
5
+ import { table, type TableVariantProps } from 'styled-system/recipes'
6
+ import type { StyledComponent } from 'styled-system/types'
7
+
8
+ const { withProvider, withContext } = createSlotRecipeContext(table)
9
+
10
+ const StyledRoot: StyledComponent<typeof ark.table, TableVariantProps> = withProvider(
11
+ ark.table,
12
+ 'root',
13
+ )
14
+ export interface RootProps extends ComponentProps<typeof StyledRoot> {
15
+ native?: boolean
16
+ }
17
+ export const Root = forwardRef<HTMLTableElement, RootProps>(function Root(
18
+ { native, ...props },
19
+ ref,
20
+ ) {
21
+ return <StyledRoot {...props} data-native={native ? '' : undefined} ref={ref} />
22
+ })
23
+ export const Body = withContext(ark.tbody, 'body')
24
+ export const Caption = withContext(ark.caption, 'caption')
25
+ export const Cell = withContext(ark.td, 'cell')
26
+ export const Footer = withContext(ark.tfoot, 'foot')
27
+ export const Header = withContext(ark.thead, 'head')
28
+ export const ColumnHeader = withContext(ark.th, 'header', { defaultProps: { scope: 'col' } })
29
+ export const Row = withContext(ark.tr, 'row')
30
+ export const ColumnGroup = styled(ark.colgroup)
31
+ export const Column = styled(ark.col)
32
+ export const ScrollArea = styled(ark.div, {
33
+ base: {
34
+ display: 'block',
35
+ whiteSpace: 'nowrap',
36
+ overflow: 'auto',
37
+ maxWidth: 'full',
38
+ WebkitOverflowScrolling: 'touch',
39
+ },
40
+ })
41
+
42
+ export type BodyProps = ComponentProps<typeof Body>
43
+ export type CaptionProps = ComponentProps<typeof Caption>
44
+ export type CellProps = ComponentProps<typeof Cell>
45
+ export type FooterProps = ComponentProps<typeof Footer>
46
+ export type HeaderProps = ComponentProps<typeof Header>
47
+ export type ColumnHeaderProps = ComponentProps<typeof ColumnHeader>
48
+ export type RowProps = ComponentProps<typeof Row>
49
+ export type ColumnGroupProps = ComponentProps<typeof ColumnGroup>
50
+ export type ColumnProps = ComponentProps<typeof Column>
51
+ export type ScrollAreaProps = ComponentProps<typeof ScrollArea>
@@ -0,0 +1,23 @@
1
+ 'use client'
2
+ import { ark } from '@ark-ui/react/factory'
3
+ import { XIcon } from 'lucide-react'
4
+ import type { ComponentProps } from 'react'
5
+ import { createSlotRecipeContext } from 'styled-system/jsx'
6
+ import { tag, type TagVariantProps } from 'styled-system/recipes'
7
+ import type { StyledComponent } from 'styled-system/types'
8
+
9
+ const { withProvider, withContext } = createSlotRecipeContext(tag)
10
+
11
+ export const Root: StyledComponent<typeof ark.div, TagVariantProps> = withProvider(ark.div, 'root')
12
+ export const Label = withContext(ark.span, 'label')
13
+ export const StartElement = withContext(ark.span, 'startElement')
14
+ export const EndElement = withContext(ark.span, 'endElement')
15
+ export const CloseTrigger = withContext(ark.button, 'closeTrigger', {
16
+ defaultProps: { type: 'button', 'aria-label': 'Remove tag', children: <XIcon /> },
17
+ })
18
+
19
+ export type RootProps = ComponentProps<typeof Root>
20
+ export type LabelProps = ComponentProps<typeof Label>
21
+ export type StartElementProps = ComponentProps<typeof StartElement>
22
+ export type EndElementProps = ComponentProps<typeof EndElement>
23
+ export type CloseTriggerProps = ComponentProps<typeof CloseTrigger>
@@ -0,0 +1,33 @@
1
+ 'use client'
2
+ import { ark } from '@ark-ui/react/factory'
3
+ import type { ComponentProps } from 'react'
4
+ import { createSlotRecipeContext } from 'styled-system/jsx'
5
+ import { timeline, type TimelineVariantProps } from 'styled-system/recipes'
6
+ import type { StyledComponent } from 'styled-system/types'
7
+
8
+ const { withProvider, withContext, PropsProvider } = createSlotRecipeContext(timeline)
9
+
10
+ export { PropsProvider }
11
+ export const Root: StyledComponent<typeof ark.div, TimelineVariantProps> = withProvider(
12
+ ark.div,
13
+ 'root',
14
+ { defaultProps: { role: 'list' } },
15
+ )
16
+ export const Item = withContext(ark.div, 'item', { defaultProps: { role: 'listitem' } })
17
+ export const Connector = withContext(ark.div, 'connector')
18
+ export const Separator = withContext(ark.div, 'separator', {
19
+ defaultProps: { 'aria-hidden': true },
20
+ })
21
+ export const Indicator = withContext(ark.div, 'indicator')
22
+ export const Content = withContext(ark.div, 'content')
23
+ export const Title = withContext(ark.div, 'title')
24
+ export const Description = withContext(ark.div, 'description')
25
+
26
+ export type RootProps = ComponentProps<typeof Root>
27
+ export type ItemProps = ComponentProps<typeof Item>
28
+ export type ConnectorProps = ComponentProps<typeof Connector>
29
+ export type SeparatorProps = ComponentProps<typeof Separator>
30
+ export type IndicatorProps = ComponentProps<typeof Indicator>
31
+ export type ContentProps = ComponentProps<typeof Content>
32
+ export type TitleProps = ComponentProps<typeof Title>
33
+ export type DescriptionProps = ComponentProps<typeof Description>
@@ -0,0 +1,255 @@
1
+ 'use client'
2
+ import { DatePicker, useDatePickerContext } from '@ark-ui/react/date-picker'
3
+ import { ark } from '@ark-ui/react/factory'
4
+ import { CalendarIcon, ChevronLeftIcon, ChevronRightIcon, XIcon } from 'lucide-react'
5
+ import { forwardRef, type ComponentProps, type Provider } from 'react'
6
+ import type { StyledComponent } from 'styled-system/types'
7
+ import { Button } from '@/components/atoms/buttons/Button'
8
+ import { createSlotRecipeContext } from 'styled-system/jsx'
9
+ import { datePicker, type DatePickerVariantProps } from 'styled-system/recipes'
10
+
11
+ const {
12
+ withProvider,
13
+ withContext,
14
+ PropsProvider: DatePropsProvider,
15
+ } = createSlotRecipeContext(datePicker)
16
+
17
+ export type RootProps = ComponentProps<typeof Root>
18
+ export const Root: StyledComponent<typeof DatePicker.Root, DatePickerVariantProps> = withProvider(
19
+ DatePicker.Root,
20
+ 'root',
21
+ )
22
+ export const RootProvider: StyledComponent<typeof DatePicker.RootProvider, DatePickerVariantProps> =
23
+ withProvider(DatePicker.RootProvider, 'root')
24
+ export const ClearTrigger = withContext(DatePicker.ClearTrigger, 'clearTrigger', {
25
+ defaultProps: { children: <XIcon /> },
26
+ })
27
+ export const Content = withContext(DatePicker.Content, 'content')
28
+ export const Control = withContext(DatePicker.Control, 'control')
29
+ export const Input = withContext(DatePicker.Input, 'input')
30
+ export const Label = withContext(DatePicker.Label, 'label')
31
+ export const MonthSelect = withContext(DatePicker.MonthSelect, 'monthSelect')
32
+ export const NextTrigger = withContext(DatePicker.NextTrigger, 'nextTrigger', {
33
+ defaultProps: { children: <ChevronRightIcon /> },
34
+ })
35
+ export const Positioner = withContext(DatePicker.Positioner, 'positioner')
36
+ export const PresetTrigger = withContext(DatePicker.PresetTrigger, 'presetTrigger')
37
+ export const PrevTrigger = withContext(DatePicker.PrevTrigger, 'prevTrigger', {
38
+ defaultProps: { children: <ChevronLeftIcon /> },
39
+ })
40
+ export const RangeText = withContext(DatePicker.RangeText, 'rangeText')
41
+ export const Table: StyledComponent<typeof DatePicker.Table> = withContext(
42
+ DatePicker.Table,
43
+ 'table',
44
+ )
45
+ export const TableBody = withContext(DatePicker.TableBody, 'tableBody')
46
+ export const TableCell = withContext(DatePicker.TableCell, 'tableCell')
47
+ export const TableCellTrigger = withContext(DatePicker.TableCellTrigger, 'tableCellTrigger')
48
+ export const TableHead = withContext(DatePicker.TableHead, 'tableHead')
49
+ export const TableHeader = withContext(DatePicker.TableHeader, 'tableHeader')
50
+ export const TableRow = withContext(DatePicker.TableRow, 'tableRow')
51
+ export const Trigger = withContext(DatePicker.Trigger, 'trigger', {
52
+ defaultProps: { children: <CalendarIcon /> },
53
+ })
54
+ export const View = withContext(DatePicker.View, 'view')
55
+ export const ViewControl = withContext(DatePicker.ViewControl, 'viewControl')
56
+ export const ViewTrigger = withContext(DatePicker.ViewTrigger, 'viewTrigger')
57
+ export const YearSelect = withContext(DatePicker.YearSelect, 'yearSelect')
58
+
59
+ export { DatePickerContext as Context } from '@ark-ui/react/date-picker'
60
+ export const IndicatorGroup = withContext(ark.div, 'indicatorGroup')
61
+ export const WeekNumberHeaderCell = withContext(DatePicker.WeekNumberHeaderCell, 'tableHeader', {
62
+ defaultProps: { 'data-type': 'week-number' },
63
+ })
64
+ export const WeekNumberCell = withContext(DatePicker.WeekNumberCell, 'tableCell', {
65
+ defaultProps: { 'data-type': 'week-number' },
66
+ })
67
+ export const WeekNumberCellText = withContext(ark.span, 'weekNumberCellText')
68
+ export const ValueText = withContext(DatePicker.ValueText, 'valueText')
69
+ export const PropsProvider = DatePropsProvider as Provider<Partial<RootProps>>
70
+ export const Header = withContext(DatePicker.ViewControl, 'viewControl', {
71
+ defaultProps: {
72
+ children: (
73
+ <>
74
+ <PrevTrigger />
75
+ <ViewTrigger>
76
+ <RangeText />
77
+ </ViewTrigger>
78
+ <NextTrigger />
79
+ </>
80
+ ),
81
+ },
82
+ })
83
+
84
+ export interface DayTableProps extends TableProps {
85
+ offset?: number
86
+ weekNumberLabel?: string
87
+ }
88
+ export const DayTable = forwardRef<HTMLTableElement, DayTableProps>(function DayTable(
89
+ { offset = 0, weekNumberLabel = '#', children, ...props },
90
+ ref,
91
+ ) {
92
+ const picker = useDatePickerContext()
93
+ if (children == null && picker.view !== 'day') return null
94
+ const shifted = offset ? picker.getOffset({ months: offset }) : undefined
95
+ const weeks = shifted ? shifted.weeks : picker.weeks
96
+ return (
97
+ <Table {...props} ref={ref}>
98
+ {children == null ? (
99
+ <>
100
+ <TableHead>
101
+ <TableRow>
102
+ {picker.showWeekNumbers && (
103
+ <WeekNumberHeaderCell>{weekNumberLabel}</WeekNumberHeaderCell>
104
+ )}
105
+ {picker.weekDays.map((day, index) => (
106
+ <TableHeader key={index} scope="col" aria-label={day.long}>
107
+ {day.narrow}
108
+ </TableHeader>
109
+ ))}
110
+ </TableRow>
111
+ </TableHead>
112
+ <TableBody>
113
+ {weeks.map((week, index) => (
114
+ <TableRow key={index}>
115
+ {picker.showWeekNumbers && (
116
+ <WeekNumberCell weekIndex={index} week={week}>
117
+ <WeekNumberCellText>{picker.getWeekNumber(week)}</WeekNumberCellText>
118
+ </WeekNumberCell>
119
+ )}
120
+ {week.map((day) => (
121
+ <TableCell key={day.toString()} value={day} visibleRange={shifted?.visibleRange}>
122
+ <TableCellTrigger>{day.day}</TableCellTrigger>
123
+ </TableCell>
124
+ ))}
125
+ </TableRow>
126
+ ))}
127
+ </TableBody>
128
+ </>
129
+ ) : (
130
+ children
131
+ )}
132
+ </Table>
133
+ )
134
+ })
135
+ export interface MonthTableProps extends TableProps {
136
+ columns?: number
137
+ format?: 'short' | 'long'
138
+ }
139
+ export const MonthTable = forwardRef<HTMLTableElement, MonthTableProps>(function MonthTable(
140
+ { columns = 4, format = 'short', children, ...props },
141
+ ref,
142
+ ) {
143
+ const picker = useDatePickerContext()
144
+ if (children == null && picker.view !== 'month') return null
145
+ return (
146
+ <Table {...props} ref={ref}>
147
+ {children == null ? (
148
+ <TableBody>
149
+ {picker.getMonthsGrid({ columns, format }).map((months, index) => (
150
+ <TableRow key={index}>
151
+ {months.map((month) => (
152
+ <TableCell key={month.value} value={month.value}>
153
+ <TableCellTrigger>{month.label}</TableCellTrigger>
154
+ </TableCell>
155
+ ))}
156
+ </TableRow>
157
+ ))}
158
+ </TableBody>
159
+ ) : (
160
+ children
161
+ )}
162
+ </Table>
163
+ )
164
+ })
165
+ export interface YearTableProps extends TableProps {
166
+ columns?: number
167
+ }
168
+ export const YearTable = forwardRef<HTMLTableElement, YearTableProps>(function YearTable(
169
+ { columns = 4, children, ...props },
170
+ ref,
171
+ ) {
172
+ const picker = useDatePickerContext()
173
+ if (children == null && picker.view !== 'year') return null
174
+ return (
175
+ <Table {...props} ref={ref}>
176
+ {children == null ? (
177
+ <TableBody>
178
+ {picker.getYearsGrid({ columns }).map((years, index) => (
179
+ <TableRow key={index}>
180
+ {years.map((year) => (
181
+ <TableCell key={year.value} value={year.value}>
182
+ <TableCellTrigger>{year.label}</TableCellTrigger>
183
+ </TableCell>
184
+ ))}
185
+ </TableRow>
186
+ ))}
187
+ </TableBody>
188
+ ) : (
189
+ children
190
+ )}
191
+ </Table>
192
+ )
193
+ })
194
+ export interface ValueProps extends Omit<TriggerProps, 'children'> {
195
+ placeholder?: string
196
+ }
197
+ export const Value = forwardRef<HTMLButtonElement, ValueProps>(function Value(
198
+ { placeholder = 'Select date', ...props },
199
+ ref,
200
+ ) {
201
+ return (
202
+ <Trigger asChild unstyled {...props} ref={ref}>
203
+ <Button variant="outline" width="full" justifyContent="flex-start">
204
+ <ValueText placeholder={placeholder} />
205
+ </Button>
206
+ </Trigger>
207
+ )
208
+ })
209
+ export type RootProviderProps = ComponentProps<typeof RootProvider>
210
+ export type ClearTriggerProps = ComponentProps<typeof ClearTrigger>
211
+ export type ContentProps = ComponentProps<typeof Content>
212
+ export type ControlProps = ComponentProps<typeof Control>
213
+ export type InputProps = ComponentProps<typeof Input>
214
+ export type LabelProps = ComponentProps<typeof Label>
215
+ export type MonthSelectProps = ComponentProps<typeof MonthSelect>
216
+ export type NextTriggerProps = ComponentProps<typeof NextTrigger>
217
+ export type PositionerProps = ComponentProps<typeof Positioner>
218
+ export type PresetTriggerProps = ComponentProps<typeof PresetTrigger>
219
+ export type PrevTriggerProps = ComponentProps<typeof PrevTrigger>
220
+ export type RangeTextProps = ComponentProps<typeof RangeText>
221
+ export type TableProps = ComponentProps<typeof Table>
222
+ export type TableBodyProps = ComponentProps<typeof TableBody>
223
+ export type TableCellProps = ComponentProps<typeof TableCell>
224
+ export type TableCellTriggerProps = ComponentProps<typeof TableCellTrigger>
225
+ export type TableHeadProps = ComponentProps<typeof TableHead>
226
+ export type TableHeaderProps = ComponentProps<typeof TableHeader>
227
+ export type TableRowProps = ComponentProps<typeof TableRow>
228
+ export type TriggerProps = ComponentProps<typeof Trigger>
229
+ export type ViewProps = ComponentProps<typeof View>
230
+ export type ViewControlProps = ComponentProps<typeof ViewControl>
231
+ export type ViewTriggerProps = ComponentProps<typeof ViewTrigger>
232
+ export type YearSelectProps = ComponentProps<typeof YearSelect>
233
+ export type IndicatorGroupProps = ComponentProps<typeof IndicatorGroup>
234
+ export type WeekNumberHeaderCellProps = ComponentProps<typeof WeekNumberHeaderCell>
235
+ export type WeekNumberCellProps = ComponentProps<typeof WeekNumberCell>
236
+ export type WeekNumberCellTextProps = ComponentProps<typeof WeekNumberCellText>
237
+ export type ValueTextProps = ComponentProps<typeof ValueText>
238
+ export type HeaderProps = ComponentProps<typeof Header>
239
+ export {
240
+ useDatePicker,
241
+ useDatePickerContext,
242
+ type UseDatePickerProps,
243
+ type UseDatePickerReturn,
244
+ } from '@ark-ui/react/date-picker'
245
+ export type {
246
+ DateValue,
247
+ DatePickerDateRangePreset as DateRangePreset,
248
+ DatePickerDateView as DateView,
249
+ DatePickerSelectionMode as SelectionMode,
250
+ DatePickerValueChangeDetails as ValueChangeDetails,
251
+ DatePickerFocusChangeDetails as FocusChangeDetails,
252
+ DatePickerOpenChangeDetails as OpenChangeDetails,
253
+ DatePickerViewChangeDetails as ViewChangeDetails,
254
+ DatePickerVisibleRangeChangeDetails as VisibleRangeChangeDetails,
255
+ } from '@ark-ui/react/date-picker'
@@ -0,0 +1,48 @@
1
+ 'use client'
2
+ import { Accordion } from '@ark-ui/react/accordion'
3
+ import { ark } from '@ark-ui/react/factory'
4
+ import { ChevronDownIcon } from 'lucide-react'
5
+ import type { ComponentProps } from 'react'
6
+ import { createSlotRecipeContext } from 'styled-system/jsx'
7
+ import { accordion, type AccordionVariantProps } from 'styled-system/recipes'
8
+
9
+ import type { StyledComponent } from 'styled-system/types'
10
+
11
+ const { withProvider, withContext } = createSlotRecipeContext(accordion)
12
+
13
+ export type RootProps = ComponentProps<typeof Root>
14
+ export const Root: StyledComponent<typeof Accordion.Root, AccordionVariantProps> = withProvider(
15
+ Accordion.Root,
16
+ 'root',
17
+ )
18
+ export const RootProvider: StyledComponent<typeof Accordion.RootProvider, AccordionVariantProps> =
19
+ withProvider(Accordion.RootProvider, 'root')
20
+ export const Item = withContext(Accordion.Item, 'item')
21
+ export const ItemContent = withContext(Accordion.ItemContent, 'itemContent')
22
+ export const ItemIndicator = withContext(Accordion.ItemIndicator, 'itemIndicator', {
23
+ defaultProps: { children: <ChevronDownIcon /> },
24
+ })
25
+ export const ItemTrigger = withContext(Accordion.ItemTrigger, 'itemTrigger')
26
+ export const ItemBody = withContext(ark.div, 'itemBody')
27
+
28
+ export {
29
+ AccordionContext as Context,
30
+ AccordionItemContext as ItemContext,
31
+ } from '@ark-ui/react/accordion'
32
+
33
+ export type RootProviderProps = ComponentProps<typeof RootProvider>
34
+ export type ItemProps = ComponentProps<typeof Item>
35
+ export type ItemContentProps = ComponentProps<typeof ItemContent>
36
+ export type ItemIndicatorProps = ComponentProps<typeof ItemIndicator>
37
+ export type ItemTriggerProps = ComponentProps<typeof ItemTrigger>
38
+ export type ItemBodyProps = ComponentProps<typeof ItemBody>
39
+
40
+ export {
41
+ useAccordion,
42
+ useAccordionContext,
43
+ useAccordionItemContext,
44
+ type UseAccordionProps,
45
+ type UseAccordionReturn,
46
+ type AccordionFocusChangeDetails as FocusChangeDetails,
47
+ type AccordionValueChangeDetails as ValueChangeDetails,
48
+ } from '@ark-ui/react/accordion'
@@ -0,0 +1,50 @@
1
+ 'use client'
2
+ import { ark } from '@ark-ui/react/factory'
3
+ import { ChevronRightIcon } from 'lucide-react'
4
+ import type { ComponentProps } from 'react'
5
+ import { createSlotRecipeContext } from 'styled-system/jsx'
6
+ import { breadcrumb, type BreadcrumbVariantProps } from 'styled-system/recipes'
7
+
8
+ import type { StyledComponent } from 'styled-system/types'
9
+
10
+ const { withProvider, withContext } = createSlotRecipeContext(breadcrumb)
11
+
12
+ export type RootProps = ComponentProps<typeof Root>
13
+
14
+ export const Root: StyledComponent<typeof ark.nav, BreadcrumbVariantProps> = withProvider(
15
+ ark.nav,
16
+ 'root',
17
+ { defaultProps: { 'aria-label': 'breadcrumb' } },
18
+ )
19
+ export const List = withContext(ark.ol, 'list')
20
+ export const Item = withContext(ark.li, 'item')
21
+ export const Link = withContext(ark.a, 'link')
22
+ export const CurrentLink = withContext(ark.span, 'currentLink', {
23
+ defaultProps: { role: 'link', 'aria-current': 'page' },
24
+ })
25
+ export const Ellipsis = withContext(ark.li, 'ellipsis', {
26
+ defaultProps: {
27
+ role: 'presentation',
28
+ 'aria-hidden': true,
29
+ children: '...',
30
+ },
31
+ })
32
+
33
+ export const Separator = withContext(ark.li, 'separator', {
34
+ defaultProps: {
35
+ 'aria-hidden': true,
36
+ children: <ChevronRightIcon />,
37
+ },
38
+ })
39
+
40
+ export type ListProps = ComponentProps<typeof List>
41
+
42
+ export type ItemProps = ComponentProps<typeof Item>
43
+
44
+ export type LinkProps = ComponentProps<typeof Link>
45
+
46
+ export type CurrentLinkProps = ComponentProps<typeof CurrentLink>
47
+
48
+ export type EllipsisProps = ComponentProps<typeof Ellipsis>
49
+
50
+ export type SeparatorProps = ComponentProps<typeof Separator>