@ojiepermana/angular 22.1.10 → 22.1.12

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 (340) hide show
  1. package/README.md +32 -26
  2. package/chart/README.md +272 -0
  3. package/component/README.md +89 -0
  4. package/component/accordion/README.md +195 -0
  5. package/component/alert/README.md +184 -0
  6. package/component/alert-dialog/README.md +255 -0
  7. package/component/aspect-ratio/README.md +116 -0
  8. package/component/avatar/README.md +182 -0
  9. package/component/badge/README.md +143 -0
  10. package/component/breadcrumb/README.md +223 -0
  11. package/component/button/README.md +141 -0
  12. package/component/button-group/README.md +214 -0
  13. package/component/calendar/README.md +137 -0
  14. package/component/card/README.md +232 -0
  15. package/component/carousel/README.md +276 -0
  16. package/component/checkbox/README.md +153 -0
  17. package/component/collapsible/README.md +216 -0
  18. package/component/combobox/README.md +202 -0
  19. package/component/command/README.md +287 -0
  20. package/component/composer/README.md +241 -0
  21. package/component/context-menu/README.md +268 -0
  22. package/component/date-picker/README.md +202 -0
  23. package/component/dialog/README.md +276 -0
  24. package/component/drawer/README.md +147 -0
  25. package/component/dropdown-menu/README.md +336 -0
  26. package/component/editor/README.md +152 -0
  27. package/component/empty/README.md +193 -0
  28. package/component/form/README.md +216 -0
  29. package/component/hover-card/README.md +150 -0
  30. package/component/icon/README.md +25 -0
  31. package/component/input/README.md +160 -0
  32. package/component/input-group/README.md +245 -0
  33. package/component/input-otp/README.md +331 -0
  34. package/component/item/README.md +254 -0
  35. package/component/kanban/README.md +81 -0
  36. package/component/kbd/README.md +141 -0
  37. package/component/label/README.md +137 -0
  38. package/component/menubar/README.md +270 -0
  39. package/component/native-select/README.md +176 -0
  40. package/component/navigation-menu/README.md +165 -0
  41. package/component/pagination/README.md +151 -0
  42. package/component/pillbox/README.md +68 -0
  43. package/component/popover/README.md +54 -0
  44. package/component/progress/README.md +160 -0
  45. package/component/radio/README.md +212 -0
  46. package/component/resizable/README.md +178 -0
  47. package/component/scroll-area/README.md +150 -0
  48. package/component/select/README.md +228 -0
  49. package/component/separator/README.md +175 -0
  50. package/component/sheet/README.md +190 -0
  51. package/component/skeleton/README.md +158 -0
  52. package/component/slider/README.md +207 -0
  53. package/component/spinner/README.md +160 -0
  54. package/component/switch/README.md +170 -0
  55. package/component/table/README.md +292 -0
  56. package/component/tabs/README.md +220 -0
  57. package/component/textarea/README.md +169 -0
  58. package/component/timeline/README.md +94 -0
  59. package/component/toast/README.md +173 -0
  60. package/component/toggle/README.md +133 -0
  61. package/component/toggle-group/README.md +234 -0
  62. package/component/tooltip/README.md +230 -0
  63. package/fesm2022/ojiepermana-angular-chart-area.mjs +289 -3
  64. package/fesm2022/ojiepermana-angular-chart-bar.mjs +722 -3
  65. package/fesm2022/ojiepermana-angular-chart-core.mjs +1482 -3
  66. package/fesm2022/ojiepermana-angular-chart-line.mjs +294 -3
  67. package/fesm2022/ojiepermana-angular-chart-pie.mjs +291 -3
  68. package/fesm2022/ojiepermana-angular-chart-primitives.mjs +1301 -3
  69. package/fesm2022/ojiepermana-angular-chart-radar.mjs +421 -3
  70. package/fesm2022/ojiepermana-angular-chart-radial.mjs +295 -3
  71. package/fesm2022/ojiepermana-angular-chart-scatter.mjs +306 -3
  72. package/fesm2022/ojiepermana-angular-chart.mjs +12 -3
  73. package/fesm2022/ojiepermana-angular-component-accordion.mjs +267 -3
  74. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +359 -3
  75. package/fesm2022/ojiepermana-angular-component-alert.mjs +101 -3
  76. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +31 -3
  77. package/fesm2022/ojiepermana-angular-component-avatar.mjs +139 -3
  78. package/fesm2022/ojiepermana-angular-component-badge.mjs +57 -3
  79. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +192 -3
  80. package/fesm2022/ojiepermana-angular-component-button-group.mjs +95 -3
  81. package/fesm2022/ojiepermana-angular-component-button.mjs +73 -3
  82. package/fesm2022/ojiepermana-angular-component-calendar.mjs +718 -3
  83. package/fesm2022/ojiepermana-angular-component-card.mjs +167 -3
  84. package/fesm2022/ojiepermana-angular-component-carousel.mjs +326 -3
  85. package/fesm2022/ojiepermana-angular-component-checkbox.mjs +190 -3
  86. package/fesm2022/ojiepermana-angular-component-collapsible.mjs +117 -3
  87. package/fesm2022/ojiepermana-angular-component-combobox.mjs +327 -3
  88. package/fesm2022/ojiepermana-angular-component-command.mjs +351 -3
  89. package/fesm2022/ojiepermana-angular-component-composer.mjs +359 -3
  90. package/fesm2022/ojiepermana-angular-component-context-menu.mjs +158 -3
  91. package/fesm2022/ojiepermana-angular-component-date-picker.mjs +482 -3
  92. package/fesm2022/ojiepermana-angular-component-dialog.mjs +400 -3
  93. package/fesm2022/ojiepermana-angular-component-drawer.mjs +1 -3
  94. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +689 -3
  95. package/fesm2022/ojiepermana-angular-component-editor.mjs +511 -3
  96. package/fesm2022/ojiepermana-angular-component-empty.mjs +134 -3
  97. package/fesm2022/ojiepermana-angular-component-form.mjs +438 -3
  98. package/fesm2022/ojiepermana-angular-component-hover-card.mjs +273 -3
  99. package/fesm2022/ojiepermana-angular-component-icon.mjs +139 -3
  100. package/fesm2022/ojiepermana-angular-component-input-group.mjs +176 -3
  101. package/fesm2022/ojiepermana-angular-component-input-otp.mjs +550 -3
  102. package/fesm2022/ojiepermana-angular-component-input.mjs +52 -3
  103. package/fesm2022/ojiepermana-angular-component-item.mjs +264 -3
  104. package/fesm2022/ojiepermana-angular-component-kanban.mjs +310 -3
  105. package/fesm2022/ojiepermana-angular-component-kbd.mjs +48 -3
  106. package/fesm2022/ojiepermana-angular-component-label.mjs +27 -3
  107. package/fesm2022/ojiepermana-angular-component-menubar.mjs +327 -3
  108. package/fesm2022/ojiepermana-angular-component-native-select.mjs +62 -3
  109. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +378 -3
  110. package/fesm2022/ojiepermana-angular-component-pagination.mjs +238 -3
  111. package/fesm2022/ojiepermana-angular-component-pillbox.mjs +999 -3
  112. package/fesm2022/ojiepermana-angular-component-popover.mjs +201 -3
  113. package/fesm2022/ojiepermana-angular-component-progress.mjs +57 -3
  114. package/fesm2022/ojiepermana-angular-component-radio.mjs +180 -3
  115. package/fesm2022/ojiepermana-angular-component-resizable.mjs +493 -3
  116. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +51 -3
  117. package/fesm2022/ojiepermana-angular-component-segmented-control.mjs +227 -3
  118. package/fesm2022/ojiepermana-angular-component-select.mjs +609 -3
  119. package/fesm2022/ojiepermana-angular-component-separator.mjs +31 -3
  120. package/fesm2022/ojiepermana-angular-component-sheet.mjs +407 -3
  121. package/fesm2022/ojiepermana-angular-component-skeleton.mjs +25 -3
  122. package/fesm2022/ojiepermana-angular-component-slider.mjs +456 -3
  123. package/fesm2022/ojiepermana-angular-component-spinner.mjs +56 -3
  124. package/fesm2022/ojiepermana-angular-component-switch.mjs +145 -3
  125. package/fesm2022/ojiepermana-angular-component-table.mjs +155 -3
  126. package/fesm2022/ojiepermana-angular-component-tabs.mjs +315 -3
  127. package/fesm2022/ojiepermana-angular-component-textarea.mjs +46 -3
  128. package/fesm2022/ojiepermana-angular-component-timeline.mjs +237 -3
  129. package/fesm2022/ojiepermana-angular-component-toast.mjs +241 -3
  130. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +290 -3
  131. package/fesm2022/ojiepermana-angular-component-toggle.mjs +76 -3
  132. package/fesm2022/ojiepermana-angular-component-tooltip.mjs +519 -3
  133. package/fesm2022/ojiepermana-angular-component-utils-core.mjs +310 -3
  134. package/fesm2022/ojiepermana-angular-component-utils-overlay.mjs +62 -3
  135. package/fesm2022/ojiepermana-angular-component-utils-scale.mjs +34 -3
  136. package/fesm2022/ojiepermana-angular-component-utils.mjs +3 -2
  137. package/fesm2022/ojiepermana-angular-component.mjs +4 -4
  138. package/fesm2022/ojiepermana-angular-navigation-core.mjs +21 -3
  139. package/fesm2022/ojiepermana-angular-navigation-icon.mjs +20 -3
  140. package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-CDBxQ8rk.mjs +91 -0
  141. package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-DBQHdvGa.mjs +512 -0
  142. package/fesm2022/ojiepermana-angular-navigation-navigation-entry-grid.component-Cd-jh6tg.mjs +623 -0
  143. package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-BCGvhoYj.mjs +404 -0
  144. package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-Dk_03e-6.mjs +466 -0
  145. package/fesm2022/ojiepermana-angular-navigation-ojiepermana-angular-navigation-DNKU6viC.mjs +2642 -0
  146. package/fesm2022/ojiepermana-angular-navigation-service.mjs +725 -3
  147. package/fesm2022/ojiepermana-angular-navigation-types.mjs +65 -4
  148. package/fesm2022/ojiepermana-angular-navigation.mjs +4 -10
  149. package/fesm2022/ojiepermana-angular-sdk.mjs +204 -4
  150. package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +1387 -3
  151. package/fesm2022/ojiepermana-angular-theme-layout-services.mjs +331 -3
  152. package/fesm2022/ojiepermana-angular-theme-layout-types.mjs +45 -4
  153. package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +1044 -3
  154. package/fesm2022/ojiepermana-angular-theme-layout.mjs +729 -3
  155. package/fesm2022/ojiepermana-angular-theme-page-core.mjs +381 -3
  156. package/fesm2022/ojiepermana-angular-theme-page-filter.mjs +267 -3
  157. package/fesm2022/ojiepermana-angular-theme-page-root.mjs +361 -3
  158. package/fesm2022/ojiepermana-angular-theme-page-side.mjs +198 -3
  159. package/fesm2022/ojiepermana-angular-theme-page-slots.mjs +110 -3
  160. package/fesm2022/ojiepermana-angular-theme-page.mjs +7 -2
  161. package/fesm2022/ojiepermana-angular-theme-shell-services.mjs +338 -3
  162. package/fesm2022/ojiepermana-angular-theme-shell-types.mjs +160 -4
  163. package/fesm2022/ojiepermana-angular-theme-shell.mjs +811 -3
  164. package/fesm2022/ojiepermana-angular-theme-styles.mjs +783 -3
  165. package/fesm2022/ojiepermana-angular-theme.mjs +4 -4
  166. package/fesm2022/ojiepermana-angular.mjs +6 -11
  167. package/navigation/README.md +374 -0
  168. package/package.json +81 -20
  169. package/sdk/README.md +212 -0
  170. package/sdk/schematics/collection.json +20 -0
  171. package/sdk/schematics/init/index.js +83 -0
  172. package/sdk/schematics/init/schema.json +19 -0
  173. package/sdk/schematics/ng-add/index.js +147 -0
  174. package/sdk/schematics/ng-add/schema.json +14 -0
  175. package/sdk/schematics/package.json +3 -0
  176. package/sdk/schematics/sdk/index.js +175 -0
  177. package/sdk/schematics/sdk/schema.json +19 -0
  178. package/sdk/sdk.config.example.json +24 -0
  179. package/sdk/src/config/loader.js +43 -0
  180. package/sdk/src/config/schema.js +59 -0
  181. package/sdk/src/emit/client.js +251 -0
  182. package/sdk/src/emit/metadata.js +310 -0
  183. package/sdk/src/emit/models.js +104 -0
  184. package/sdk/src/emit/navigation.js +56 -0
  185. package/sdk/src/emit/operations.js +118 -0
  186. package/sdk/src/emit/public-api.js +54 -0
  187. package/sdk/src/emit/services.js +110 -0
  188. package/sdk/src/engine.js +67 -0
  189. package/sdk/src/layout/per-domain.js +360 -0
  190. package/sdk/src/package.json +3 -0
  191. package/sdk/src/parser/bundle.js +25 -0
  192. package/sdk/src/parser/ir.js +429 -0
  193. package/sdk/src/parser/types.js +7 -0
  194. package/sdk/src/render/template.js +152 -0
  195. package/sdk/src/writer/index.js +286 -0
  196. package/theme/README.md +126 -0
  197. package/theme/component/settings/README.md +135 -0
  198. package/theme/layout/README.md +539 -0
  199. package/theme/page/README.md +453 -0
  200. package/theme/shell/README.md +340 -0
  201. package/theme/styles/README.md +178 -0
  202. package/theme/styles/css/base/components.css +553 -0
  203. package/theme/styles/css/base/index.css +14 -0
  204. package/theme/styles/css/base/package.css +9 -0
  205. package/theme/styles/css/base/prefers-dark.css +86 -0
  206. package/theme/styles/css/base/print.css +62 -0
  207. package/theme/styles/css/base/status.css +38 -0
  208. package/theme/styles/css/base/tailwind.css +165 -0
  209. package/theme/styles/css/base/theme.css +373 -0
  210. package/theme/styles/css/base/tokens.css +361 -0
  211. package/theme/styles/css/color/amber.css +72 -0
  212. package/theme/styles/css/color/blue.css +72 -0
  213. package/theme/styles/css/color/brand.css +38 -0
  214. package/theme/styles/css/color/cyan.css +72 -0
  215. package/theme/styles/css/color/emerald.css +72 -0
  216. package/theme/styles/css/color/fuchsia.css +72 -0
  217. package/theme/styles/css/color/green.css +72 -0
  218. package/theme/styles/css/color/index.css +19 -0
  219. package/theme/styles/css/color/indigo.css +72 -0
  220. package/theme/styles/css/color/lime.css +72 -0
  221. package/theme/styles/css/color/orange.css +72 -0
  222. package/theme/styles/css/color/pink.css +72 -0
  223. package/theme/styles/css/color/purple.css +72 -0
  224. package/theme/styles/css/color/red.css +72 -0
  225. package/theme/styles/css/color/rose.css +72 -0
  226. package/theme/styles/css/color/sky.css +72 -0
  227. package/theme/styles/css/color/teal.css +72 -0
  228. package/theme/styles/css/color/violet.css +72 -0
  229. package/theme/styles/css/color/yellow.css +72 -0
  230. package/theme/styles/css/index.css +18 -0
  231. package/theme/styles/css/neutral/gray.css +63 -0
  232. package/theme/styles/css/neutral/index.css +11 -0
  233. package/theme/styles/css/neutral/mauve.css +63 -0
  234. package/theme/styles/css/neutral/mist.css +63 -0
  235. package/theme/styles/css/neutral/neutral.css +63 -0
  236. package/theme/styles/css/neutral/olive.css +63 -0
  237. package/theme/styles/css/neutral/slate.css +63 -0
  238. package/theme/styles/css/neutral/stone.css +63 -0
  239. package/theme/styles/css/neutral/taupe.css +63 -0
  240. package/theme/styles/css/neutral/zinc.css +63 -0
  241. package/theme/styles/css/radius/index.css +30 -0
  242. package/theme/styles/css/space/index.css +20 -0
  243. package/types/ojiepermana-angular-chart-area.d.ts +76 -1
  244. package/types/ojiepermana-angular-chart-bar.d.ts +201 -1
  245. package/types/ojiepermana-angular-chart-core.d.ts +811 -1
  246. package/types/ojiepermana-angular-chart-line.d.ts +75 -1
  247. package/types/ojiepermana-angular-chart-pie.d.ts +131 -1
  248. package/types/ojiepermana-angular-chart-primitives.d.ts +291 -1
  249. package/types/ojiepermana-angular-chart-radar.d.ts +116 -1
  250. package/types/ojiepermana-angular-chart-radial.d.ts +116 -1
  251. package/types/ojiepermana-angular-chart-scatter.d.ts +125 -1
  252. package/types/ojiepermana-angular-chart.d.ts +2 -1
  253. package/types/ojiepermana-angular-component-accordion.d.ts +85 -1
  254. package/types/ojiepermana-angular-component-alert-dialog.d.ts +140 -1
  255. package/types/ojiepermana-angular-component-alert.d.ts +42 -1
  256. package/types/ojiepermana-angular-component-aspect-ratio.d.ts +12 -1
  257. package/types/ojiepermana-angular-component-avatar.d.ts +56 -1
  258. package/types/ojiepermana-angular-component-badge.d.ts +24 -1
  259. package/types/ojiepermana-angular-component-breadcrumb.d.ts +46 -1
  260. package/types/ojiepermana-angular-component-button-group.d.ts +26 -1
  261. package/types/ojiepermana-angular-component-button.d.ts +27 -1
  262. package/types/ojiepermana-angular-component-calendar.d.ts +111 -1
  263. package/types/ojiepermana-angular-component-card.d.ts +69 -1
  264. package/types/ojiepermana-angular-component-carousel.d.ts +86 -1
  265. package/types/ojiepermana-angular-component-checkbox.d.ts +42 -1
  266. package/types/ojiepermana-angular-component-collapsible.d.ts +42 -1
  267. package/types/ojiepermana-angular-component-combobox.d.ts +60 -1
  268. package/types/ojiepermana-angular-component-command.d.ts +130 -1
  269. package/types/ojiepermana-angular-component-composer.d.ts +90 -1
  270. package/types/ojiepermana-angular-component-context-menu.d.ts +54 -1
  271. package/types/ojiepermana-angular-component-date-picker.d.ts +109 -1
  272. package/types/ojiepermana-angular-component-dialog.d.ts +136 -1
  273. package/types/ojiepermana-angular-component-drawer.d.ts +1 -1
  274. package/types/ojiepermana-angular-component-dropdown-menu.d.ts +248 -1
  275. package/types/ojiepermana-angular-component-editor.d.ts +135 -1
  276. package/types/ojiepermana-angular-component-empty.d.ts +50 -1
  277. package/types/ojiepermana-angular-component-form.d.ts +159 -1
  278. package/types/ojiepermana-angular-component-hover-card.d.ts +75 -1
  279. package/types/ojiepermana-angular-component-icon.d.ts +89 -1
  280. package/types/ojiepermana-angular-component-input-group.d.ts +51 -1
  281. package/types/ojiepermana-angular-component-input-otp.d.ts +155 -1
  282. package/types/ojiepermana-angular-component-input.d.ts +21 -1
  283. package/types/ojiepermana-angular-component-item.d.ts +93 -1
  284. package/types/ojiepermana-angular-component-kanban.d.ts +70 -1
  285. package/types/ojiepermana-angular-component-kbd.d.ts +16 -1
  286. package/types/ojiepermana-angular-component-label.d.ts +11 -1
  287. package/types/ojiepermana-angular-component-menubar.d.ts +93 -1
  288. package/types/ojiepermana-angular-component-native-select.d.ts +26 -1
  289. package/types/ojiepermana-angular-component-navigation-menu.d.ts +104 -1
  290. package/types/ojiepermana-angular-component-pagination.d.ts +33 -1
  291. package/types/ojiepermana-angular-component-pillbox.d.ts +222 -1
  292. package/types/ojiepermana-angular-component-popover.d.ts +66 -1
  293. package/types/ojiepermana-angular-component-progress.d.ts +17 -1
  294. package/types/ojiepermana-angular-component-radio.d.ts +60 -1
  295. package/types/ojiepermana-angular-component-resizable.d.ts +117 -1
  296. package/types/ojiepermana-angular-component-scroll-area.d.ts +19 -1
  297. package/types/ojiepermana-angular-component-segmented-control.d.ts +58 -1
  298. package/types/ojiepermana-angular-component-select.d.ts +122 -1
  299. package/types/ojiepermana-angular-component-separator.d.ts +14 -1
  300. package/types/ojiepermana-angular-component-sheet.d.ts +130 -1
  301. package/types/ojiepermana-angular-component-skeleton.d.ts +10 -1
  302. package/types/ojiepermana-angular-component-slider.d.ts +83 -1
  303. package/types/ojiepermana-angular-component-spinner.d.ts +13 -1
  304. package/types/ojiepermana-angular-component-switch.d.ts +44 -1
  305. package/types/ojiepermana-angular-component-table.d.ts +57 -1
  306. package/types/ojiepermana-angular-component-tabs.d.ts +124 -1
  307. package/types/ojiepermana-angular-component-textarea.d.ts +17 -1
  308. package/types/ojiepermana-angular-component-timeline.d.ts +64 -1
  309. package/types/ojiepermana-angular-component-toast.d.ts +64 -1
  310. package/types/ojiepermana-angular-component-toggle-group.d.ts +90 -1
  311. package/types/ojiepermana-angular-component-toggle.d.ts +25 -1
  312. package/types/ojiepermana-angular-component-tooltip.d.ts +143 -1
  313. package/types/ojiepermana-angular-component-utils-core.d.ts +184 -1
  314. package/types/ojiepermana-angular-component-utils-overlay.d.ts +21 -1
  315. package/types/ojiepermana-angular-component-utils-scale.d.ts +19 -1
  316. package/types/ojiepermana-angular-component-utils.d.ts +2 -1
  317. package/types/ojiepermana-angular-component.d.ts +2 -1
  318. package/types/ojiepermana-angular-navigation-core.d.ts +59 -1
  319. package/types/ojiepermana-angular-navigation-icon.d.ts +12 -1
  320. package/types/ojiepermana-angular-navigation-service.d.ts +116 -1
  321. package/types/ojiepermana-angular-navigation-types.d.ts +144 -1
  322. package/types/ojiepermana-angular-navigation.d.ts +507 -1
  323. package/types/ojiepermana-angular-sdk.d.ts +89 -1
  324. package/types/ojiepermana-angular-theme-component-settings.d.ts +154 -1
  325. package/types/ojiepermana-angular-theme-layout-services.d.ts +147 -1
  326. package/types/ojiepermana-angular-theme-layout-types.d.ts +40 -1
  327. package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +299 -1
  328. package/types/ojiepermana-angular-theme-layout.d.ts +129 -1
  329. package/types/ojiepermana-angular-theme-page-core.d.ts +157 -1
  330. package/types/ojiepermana-angular-theme-page-filter.d.ts +77 -1
  331. package/types/ojiepermana-angular-theme-page-root.d.ts +88 -1
  332. package/types/ojiepermana-angular-theme-page-side.d.ts +50 -1
  333. package/types/ojiepermana-angular-theme-page-slots.d.ts +40 -1
  334. package/types/ojiepermana-angular-theme-page.d.ts +5 -1
  335. package/types/ojiepermana-angular-theme-shell-services.d.ts +193 -1
  336. package/types/ojiepermana-angular-theme-shell-types.d.ts +105 -1
  337. package/types/ojiepermana-angular-theme-shell.d.ts +100 -1
  338. package/types/ojiepermana-angular-theme-styles.d.ts +319 -1
  339. package/types/ojiepermana-angular-theme.d.ts +2 -1
  340. package/types/ojiepermana-angular.d.ts +5 -5
@@ -0,0 +1,151 @@
1
+ # Pagination
2
+
3
+ Compact page navigation with previous and next controls, windowed page numbers, optional icon-only mode, and localized labels.
4
+
5
+ Use Pagination when a feature page needs to move through a paged API result, a dense table footer, or a navigable list of routes or guides.
6
+
7
+ ## Import
8
+
9
+ ```ts
10
+ import { PaginationComponent } from '@ojiepermana/angular/component/pagination';
11
+ ```
12
+
13
+ ## Structure
14
+
15
+ The Angular package intentionally wraps the shadcn multi-part composition in a single standalone primitive.
16
+
17
+ ```text
18
+ Pagination
19
+ ├── previous button
20
+ ├── page buttons and ellipsis
21
+ └── next button
22
+ ```
23
+
24
+ ## Basic usage
25
+
26
+ Bind `[(page)]` to a signal and keep your collection, router state, or server request outside the primitive.
27
+
28
+ ```html
29
+ <Pagination
30
+ [(page)]="currentPage"
31
+ [total]="totalPages"
32
+ [siblingCount]="1"
33
+ (pageChange)="load($event)"
34
+ />
35
+ ```
36
+
37
+ ## Common patterns
38
+
39
+ ### Navigation data
40
+
41
+ Keep the rendered collection in sync with the pager through `computed()`.
42
+
43
+ ```ts
44
+ const navigationPage = signal(1);
45
+ const pageSize = 4;
46
+
47
+ const navigationItems = [
48
+ { title: 'Introduction', route: '/docs/introduction' },
49
+ { title: 'Accordion', route: '/ui/shadcn/accordion' },
50
+ { title: 'Button', route: '/ui/shadcn/button' },
51
+ { title: 'Input', route: '/ui/shadcn/input' },
52
+ // ...more items
53
+ ];
54
+
55
+ const totalPages = Math.ceil(navigationItems.length / pageSize);
56
+ const visibleItems = computed(() => {
57
+ const start = (navigationPage() - 1) * pageSize;
58
+ return navigationItems.slice(start, start + pageSize);
59
+ });
60
+ ```
61
+
62
+ ### Icons only
63
+
64
+ Hide page numbers and visible labels when the pager sits next to a dense table or feed footer.
65
+
66
+ ```html
67
+ <Pagination
68
+ [(page)]="compactPage"
69
+ [total]="9"
70
+ [showPageNumbers]="false"
71
+ previousText=""
72
+ nextText=""
73
+ class="mx-0 w-auto"
74
+ />
75
+ ```
76
+
77
+ ### RTL and translated labels
78
+
79
+ Translate the previous and next text and provide a page formatter when locale-specific numerals should appear.
80
+
81
+ ```ts
82
+ const arabicDigits = ['٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩'];
83
+ const toArabicNumerals = (page: number): string =>
84
+ page
85
+ .toString()
86
+ .split('')
87
+ .map((digit) => arabicDigits[Number(digit)] ?? digit)
88
+ .join('');
89
+ ```
90
+
91
+ ```html
92
+ <section dir="rtl" lang="ar" class="text-right">
93
+ <Pagination
94
+ [(page)]="rtlPage"
95
+ [total]="7"
96
+ previousText="السابق"
97
+ nextText="التالي"
98
+ previousAriaLabel="الانتقال إلى الصفحة السابقة"
99
+ nextAriaLabel="الانتقال إلى الصفحة التالية"
100
+ [formatPageLabel]="toArabicNumerals"
101
+ />
102
+ </section>
103
+ ```
104
+
105
+ ## API reference
106
+
107
+ | Input | Type | Default | Description |
108
+ | ------------------- | -------------------------- | ------------------------- | ---------------------------------------------------------------------- |
109
+ | `page` (model) | `number` | `1` | Two-way bound current page. |
110
+ | `total` | `number` | `1` | Total number of pages available. |
111
+ | `siblingCount` | `number` | `1` | Page buttons shown on either side of the active page. |
112
+ | `showPageNumbers` | `boolean` | `true` | Hide numbered page buttons for compact previous and next only layouts. |
113
+ | `previousText` | `string` | `'Previous'` | Visible previous label. Set to an empty string for icon-only mode. |
114
+ | `nextText` | `string` | `'Next'` | Visible next label. Set to an empty string for icon-only mode. |
115
+ | `previousAriaLabel` | `string` | `'Go to previous page'` | Accessible name for the previous button. |
116
+ | `nextAriaLabel` | `string` | `'Go to next page'` | Accessible name for the next button. |
117
+ | `formatPageLabel` | `(page: number) => string` | `page => page.toString()` | Formats the rendered page label. |
118
+ | `class` | `string` | `''` | Extra container classes. |
119
+
120
+ | Output | Payload | Description |
121
+ | ------------ | -------- | ---------------------------------------------------- |
122
+ | `pageChange` | `number` | Emits the next page number after a user interaction. |
123
+
124
+ ## Styling and theming
125
+
126
+ Pagination reuses `buttonVariants`, so the previous and next controls plus numbered page buttons inherit the same shape, focus ring, and theme tokens as the Button primitive.
127
+
128
+ Pass `class` to adjust width and alignment, for example `mx-0 w-auto` in a table footer or `justify-start` when the pager should align to the left edge of a card.
129
+
130
+ ## Accessibility
131
+
132
+ - The root renders as `<nav role="navigation" aria-label="pagination">`.
133
+ - The active page is marked with `aria-current="page"`.
134
+ - Previous and next disable natively at the start and end of the available range.
135
+ - Ellipses are `aria-hidden="true"`.
136
+ - When visible text is removed for icon-only mode, keep meaningful aria labels on the previous and next buttons.
137
+
138
+ ## Keyboard interactions
139
+
140
+ - Tab moves focus through the previous button, page buttons, and next button in DOM order.
141
+ - Enter and Space activate the focused button through native button semantics.
142
+
143
+ ## Angular notes
144
+
145
+ - Keep the paged collection outside the component and derive the visible slice with `computed()`.
146
+ - Import `PaginationComponent` into the standalone feature component that renders the pager.
147
+ - `showPageNumbers`, `previousText`, `nextText`, and `formatPageLabel` are deliberate Angular-specific conveniences that cover the upstream icon-only and RTL guidance without exposing React-style child parts.
148
+
149
+ ## Source parity
150
+
151
+ shadcn documents Pagination as several composable parts such as `PaginationLink`, `PaginationPrevious`, and `PaginationNext`. This Angular implementation intentionally collapses that structure into one primitive so route-driven and data-driven pagination can be wired quickly while still matching the upstream previous, next, ellipsis, compact, and RTL behavior.
@@ -0,0 +1,68 @@
1
+ # Pillbox
2
+
3
+ Multi-value selection primitives inspired by Flux Pillbox and implemented with local shadcn-style Angular patterns.
4
+
5
+ ## Import
6
+
7
+ ```ts
8
+ import {
9
+ PillboxComponent,
10
+ PillboxOptionComponent,
11
+ PillboxOptionCreateComponent,
12
+ PillboxOptionEmptyComponent,
13
+ PillboxSelectedDirective,
14
+ } from '@ojiepermana/angular/component/pillbox';
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ```html
20
+ <Pillbox multiple placeholder="Choose tags..." [(ngModel)]="selectedTags">
21
+ <PillboxOption value="design">Design</PillboxOption>
22
+ <PillboxOption value="development">Development</PillboxOption>
23
+ <PillboxOption value="marketing">Marketing</PillboxOption>
24
+ </Pillbox>
25
+ ```
26
+
27
+ ## Composition
28
+
29
+ - `Pillbox` owns the trigger, selected pills, search state, option filtering, and form control integration.
30
+ - `PillboxOption` projects the visible option content and stores the option value.
31
+ - `ng-template[PillboxSelected]` customizes the rendered selected pill content for an option.
32
+ - `PillboxOptionCreate` emits create requests when the search query is long enough and does not match an existing option.
33
+ - `PillboxOptionEmpty` customizes empty and loading messages.
34
+
35
+ ## Inputs
36
+
37
+ ### PillboxComponent
38
+
39
+ | Input | Type | Default | Description |
40
+ | ------------------- | ------------------------- | --------------------- | -------------------------------------------------------------------------- |
41
+ | `placeholder` | `string` | `'Choose options...'` | Text shown when nothing is selected. |
42
+ | `searchPlaceholder` | `string` | `'Search...'` | Placeholder for the dropdown search input. |
43
+ | `size` | `'default' \| 'sm'` | `'default'` | Trigger and pill density. |
44
+ | `variant` | `'default' \| 'combobox'` | `'default'` | Use `combobox` to place the search input directly in the trigger. |
45
+ | `multiple` | `boolean` | `false` | Emits an array of selected values when enabled. |
46
+ | `searchable` | `boolean` | `false` | Adds a search input to the dropdown for the default variant. |
47
+ | `filter` | `boolean` | `true` | Enables client-side filtering. Disable it for backend-driven option lists. |
48
+ | `compareWith` | `(a, b) => boolean` | `Object.is` | Matches bound values to options. Compare by key for object values. |
49
+ | `clearable` | `boolean` | `true` | Shows a clear-all control when values are selected. |
50
+ | `disabled` | `boolean` | `false` | Prevents interaction. |
51
+ | `invalid` | `boolean` | `false` | Applies error styling and `aria-invalid`. |
52
+ | `loading` | `boolean` | `false` | Shows loading copy through the empty option when no options match. |
53
+
54
+ ## Events
55
+
56
+ | Output | Payload | Description |
57
+ | -------------- | --------- | ------------------------------------------------------------------------- |
58
+ | `valueChange` | `unknown` | Emits the selected array for `multiple` mode or a single value otherwise. |
59
+ | `searchChange` | `string` | Emits whenever the search query changes. |
60
+ | `create` | `string` | Emits the current query from `PillboxOptionCreate`. |
61
+ | `openedChange` | `boolean` | Emits when the option list opens or closes. |
62
+
63
+ ## Accessibility
64
+
65
+ - Use a visible label or `aria-label`/`aria-labelledby` on `Pillbox`.
66
+ - Use `multiple` when binding to an array of values.
67
+ - Provide readable option labels; set `label` or `selectedLabel` when custom option content is not textual.
68
+ - Keep create actions explicit and validate new values in the owning form or backend.
@@ -0,0 +1,54 @@
1
+ # Popover
2
+
3
+ Anchored floating panel with CDK overlay. Click the trigger to toggle.
4
+
5
+ ## Import
6
+
7
+ ```ts
8
+ import {
9
+ PopoverTriggerDirective,
10
+ PopoverContentDirective,
11
+ } from '@ojiepermana/angular/component/popover';
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ ```html
17
+ <button Button [PopoverTrigger]="content" side="bottom" align="start">Open</button>
18
+
19
+ <ng-template PopoverContent #content="PopoverContent">
20
+ <div class="w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md">
21
+ Popover body
22
+ </div>
23
+ </ng-template>
24
+ ```
25
+
26
+ ## API
27
+
28
+ ### `PopoverTriggerDirective` (`[PopoverTrigger]`)
29
+
30
+ | Input | Type | Default |
31
+ | ---------------- | ---------------------------------------- | ---------- |
32
+ | `PopoverTrigger` | `PopoverContentDirective` | — |
33
+ | `side` | `'top' \| 'right' \| 'bottom' \| 'left'` | `'bottom'` |
34
+ | `align` | `'start' \| 'center' \| 'end'` | `'center'` |
35
+ | `disabled` | `boolean` | `false` |
36
+
37
+ Exposes `isOpen()` signal. Trigger automatically sets `aria-haspopup="dialog"`
38
+ and `aria-expanded` on the host.
39
+
40
+ ### `PopoverContentDirective` (`ng-template[PopoverContent]`)
41
+
42
+ Marker directive that exposes the template via `exportAs="PopoverContent"`.
43
+
44
+ ## Accessibility
45
+
46
+ - Close on `Escape`.
47
+ - Close on backdrop click.
48
+ - Trigger reflects state via `aria-expanded` and `aria-haspopup`.
49
+ - Opening moves focus to the first tabbable element in the pane, or to the pane
50
+ itself when it holds none. The pane is a non-modal dialog, so focus is placed
51
+ there but never trapped: `Tab` walks straight back out into the page.
52
+ - `Escape`, and closing from the trigger, return focus to the trigger. Dismissal
53
+ by a pointer press outside does not, because that press is already handing
54
+ focus to whatever was pressed.
@@ -0,0 +1,160 @@
1
+ # Progress
2
+
3
+ Displays an indicator showing the completion progress of a task, typically as a
4
+ slim passive progress bar.
5
+
6
+ Use Progress for uploads, background jobs, onboarding steps, and other cases
7
+ where the user should understand status without directly interacting with the
8
+ bar itself.
9
+
10
+ ## Import
11
+
12
+ ```ts
13
+ import { ProgressComponent } from '@ojiepermana/angular/component/progress';
14
+ ```
15
+
16
+ For the visible label and slider-driven examples below, also import the existing
17
+ label and slider entrypoints:
18
+
19
+ ```ts
20
+ import { LabelComponent } from '@ojiepermana/angular/component/label';
21
+ import { SliderComponent } from '@ojiepermana/angular/component/slider';
22
+ ```
23
+
24
+ ## Basic usage
25
+
26
+ Provide an accessible name directly when the bar stands on its own.
27
+
28
+ ```html
29
+ <ProgressBar [value]="33" aria-label="Upload progress" class="w-full max-w-sm" />
30
+ ```
31
+
32
+ ## Common patterns
33
+
34
+ ### Visible label row
35
+
36
+ The current shadcn Radix docs place Progress inside a Field layout with a
37
+ visible label and percentage. In Angular, keep the visible copy outside the
38
+ bar and connect it with `aria-labelledby`.
39
+
40
+ ```html
41
+ <label id="progress-upload-label" class="mb-2 flex items-center gap-3">
42
+ <span>Upload progress</span>
43
+ <span class="ms-auto text-muted-foreground">66%</span>
44
+ </label>
45
+
46
+ <ProgressBar [value]="66" aria-labelledby="progress-upload-label" class="w-full max-w-sm" />
47
+ ```
48
+
49
+ Use `aria-labelledby` here instead of `label[for]`, because `ProgressBar` is a
50
+ custom element with `role="progressbar"`, not a native labelable form control.
51
+
52
+ ### Controlled progress
53
+
54
+ Keep the progress bar passive and let surrounding controls own the interaction.
55
+ The built-in range slider directive works well for the same pattern shown in the
56
+ upstream docs.
57
+
58
+ ```ts
59
+ const controlledValue = signal(50);
60
+
61
+ <Label id="progress-controlled-label" class="mb-2 flex items-center gap-3">
62
+ <span>Upload progress</span>
63
+ <span class="ms-auto text-muted-foreground">{{ controlledValue() }}%</span>
64
+ </Label>
65
+
66
+ <ProgressBar [value]="controlledValue()" aria-labelledby="progress-controlled-label" class="w-full" />
67
+
68
+ <Label for="progress-controlled-slider" class="mb-2 block">Adjust progress</Label>
69
+ <input
70
+ id="progress-controlled-slider"
71
+ type="range"
72
+ Slider
73
+ min="0"
74
+ max="100"
75
+ step="1"
76
+ [value]="controlledValue()"
77
+ (input)="onControlledInput($event)" />
78
+ ```
79
+
80
+ ### Indeterminate loading
81
+
82
+ Switch to `indeterminate` when work is running but no stable percentage is
83
+ available yet.
84
+
85
+ ```html
86
+ <ProgressBar [indeterminate]="true" aria-label="Loading deployment" class="w-full max-w-sm" />
87
+ ```
88
+
89
+ ### RTL
90
+
91
+ Follow the upstream guidance by setting `dir="rtl"` on the surrounding
92
+ container and flipping the bar with `rtl:rotate-180`.
93
+
94
+ ```html
95
+ <section dir="rtl" lang="ar" class="w-full max-w-sm text-right">
96
+ <label id="progress-rtl-label" class="mb-2 flex items-center gap-3">
97
+ <span>تقدم الرفع</span>
98
+ <span class="ms-auto text-muted-foreground">٦٦%</span>
99
+ </label>
100
+
101
+ <ProgressBar [value]="66" aria-labelledby="progress-rtl-label" class="w-full rtl:rotate-180" />
102
+ </section>
103
+ ```
104
+
105
+ ## API reference
106
+
107
+ | Input | Type | Default |
108
+ | ----------------- | ---------------- | ------- |
109
+ | `value` | `number \| null` | `0` |
110
+ | `max` | `number` | `100` |
111
+ | `indeterminate` | `boolean` | `false` |
112
+ | `aria-label` | `string \| null` | `null` |
113
+ | `aria-labelledby` | `string \| null` | `null` |
114
+ | `class` | `string` | `''` |
115
+
116
+ Native host attributes such as `id`, `dir`, and `data-*` still pass through to
117
+ the rendered custom element and can be used for surrounding composition.
118
+
119
+ ## Styling and theming
120
+
121
+ Tokens consumed:
122
+
123
+ - `--secondary` for the track.
124
+ - `--primary` for the indicator.
125
+
126
+ Use the `class` input for width and layout utilities such as `w-full`,
127
+ `max-w-sm`, or `rtl:rotate-180`. Indeterminate state is animated via a CSS
128
+ keyframe that respects `prefers-reduced-motion`.
129
+
130
+ ## Accessibility
131
+
132
+ - Host is `role="progressbar"`.
133
+ - Determinate mode sets `aria-valuemin="0"`, `aria-valuemax="max"`, and
134
+ `aria-valuenow="clamped value"`.
135
+ - Indeterminate mode omits `aria-valuenow` and adds `data-state="indeterminate"`.
136
+ - Always provide an accessible name via `aria-label` or `aria-labelledby`.
137
+ - If visible label text already exists on the page, connect it with
138
+ `aria-labelledby` instead of relying on native label semantics.
139
+
140
+ ## Keyboard interactions
141
+
142
+ Progress is passive and not focusable by default. Any keyboard interaction
143
+ belongs to surrounding controls such as the slider used in the controlled
144
+ example.
145
+
146
+ ## Angular notes
147
+
148
+ - Keep Progress focused on status display. Do not nest buttons or other
149
+ interactive controls inside the bar.
150
+ - Drive determinate state from signals, reactive forms, or any other existing
151
+ Angular state source.
152
+ - For visible label rows, `Label` is a good lightweight companion, but plain
153
+ text with the right ARIA wiring works too.
154
+
155
+ ## Source parity
156
+
157
+ This Angular implementation follows the shadcn Radix progress examples while
158
+ translating `Field` and `FieldLabel` to ordinary Angular markup plus explicit
159
+ ARIA wiring. The controlled example reuses the existing range slider directive,
160
+ and the RTL pattern matches the upstream `rtl:rotate-180` approach.
@@ -0,0 +1,212 @@
1
+ # Radio Group
2
+
3
+ Accessible exclusive-choice control composed from `RadioGroup` and `Radio`.
4
+
5
+ ## Import
6
+
7
+ ```ts
8
+ import {
9
+ FormContentComponent,
10
+ FormDescriptionComponent,
11
+ FormFieldComponent,
12
+ FormFieldsetComponent,
13
+ FormLegendComponent,
14
+ FormTitleComponent,
15
+ } from '@ojiepermana/angular/component/form';
16
+ import { LabelComponent } from '@ojiepermana/angular/component/label';
17
+ import { RadioComponent, RadioGroupComponent } from '@ojiepermana/angular/component/radio';
18
+ ```
19
+
20
+ ## Composition
21
+
22
+ The upstream shadcn `RadioGroup` examples map to the existing Angular radio and form primitives.
23
+
24
+ ```text
25
+ RadioGroup
26
+ ├── label[Label]
27
+ │ ├── Radio
28
+ │ └── FormContent
29
+ │ ├── FormTitle
30
+ │ └── p[FormDescription]
31
+ └── label[Label]
32
+ ├── Radio
33
+ └── copy or FormContent
34
+ ```
35
+
36
+ ## Basic Usage
37
+
38
+ Use `RadioGroup` as the value owner and wrap each option in `label[Label]` when the whole row should toggle the radio.
39
+
40
+ ```html
41
+ <RadioGroup name="density" [(ngModel)]="density" class="w-fit">
42
+ <label Label class="flex items-center gap-3">
43
+ <Radio value="default" />
44
+ <span>Default</span>
45
+ </label>
46
+ <label Label class="flex items-center gap-3">
47
+ <Radio value="comfortable" />
48
+ <span>Comfortable</span>
49
+ </label>
50
+ <label Label class="flex items-center gap-3">
51
+ <Radio value="compact" />
52
+ <span>Compact</span>
53
+ </label>
54
+ </RadioGroup>
55
+ ```
56
+
57
+ Reactive forms also work because the group implements `ControlValueAccessor`.
58
+
59
+ ## Common Patterns
60
+
61
+ ### Descriptive rows
62
+
63
+ Map the shadcn `Field` and `FieldContent` helpers to `FormField` and `FormContent`.
64
+
65
+ ```html
66
+ <RadioGroup name="density" [(ngModel)]="density" class="w-full max-w-md">
67
+ <label Label class="block rounded-xl border border-border bg-card/40 p-4">
68
+ <FormField orientation="horizontal" class="gap-4">
69
+ <Radio value="default" />
70
+ <FormContent>
71
+ <FormTitle>Default</FormTitle>
72
+ <p FormDescription>Standard spacing for most use cases.</p>
73
+ </FormContent>
74
+ </FormField>
75
+ </label>
76
+ </RadioGroup>
77
+ ```
78
+
79
+ ### Choice cards
80
+
81
+ Wrap each plan card in `label[Label]` so the full surface toggles the choice.
82
+
83
+ ```html
84
+ <RadioGroup name="plan" [(ngModel)]="selectedPlan" class="w-full max-w-md">
85
+ <label Label class="block rounded-xl border border-border bg-card/40 p-4">
86
+ <FormField orientation="horizontal" class="items-start gap-4">
87
+ <FormContent>
88
+ <FormTitle>Pro</FormTitle>
89
+ <p FormDescription>For growing businesses.</p>
90
+ </FormContent>
91
+ <Radio value="pro" />
92
+ </FormField>
93
+ </label>
94
+ </RadioGroup>
95
+ ```
96
+
97
+ ### Semantic fieldsets
98
+
99
+ Use a real fieldset and legend when the radio list answers one grouped question.
100
+
101
+ ```html
102
+ <fieldset FormFieldset class="max-w-md rounded-xl border border-border bg-card/40 p-5">
103
+ <legend FormLegend variant="label">Subscription plan</legend>
104
+ <p class="text-sm leading-6 text-muted-foreground">
105
+ Yearly and lifetime plans offer significant savings.
106
+ </p>
107
+
108
+ <RadioGroup name="subscription-plan" [(ngModel)]="subscriptionPlan" class="mt-4">
109
+ <label Label class="block rounded-lg border border-border/70 bg-background/80 p-3">
110
+ <FormField orientation="horizontal" class="gap-4">
111
+ <Radio value="monthly" />
112
+ <FormContent>
113
+ <FormTitle>Monthly ($9.99/month)</FormTitle>
114
+ </FormContent>
115
+ </FormField>
116
+ </label>
117
+ </RadioGroup>
118
+ </fieldset>
119
+ ```
120
+
121
+ ### Validation and helper text
122
+
123
+ Forward helper and error relationships from the group when the descriptive copy sits outside the individual items.
124
+
125
+ ```html
126
+ <FormField invalid class="max-w-md rounded-xl border border-destructive/40 bg-destructive/5 p-5">
127
+ <FormTitle>Notification Preferences</FormTitle>
128
+ <p id="notification-help" class="text-sm leading-6 text-muted-foreground">
129
+ Choose how you want to receive notifications.
130
+ </p>
131
+
132
+ <RadioGroup
133
+ name="notification-preferences"
134
+ [(ngModel)]="notificationPreference"
135
+ aria-describedby="notification-help notification-error"
136
+ aria-invalid="true"
137
+ >
138
+ <label Label class="block rounded-lg border border-destructive/40 bg-background/80 p-3">
139
+ <FormField orientation="horizontal" class="gap-4">
140
+ <Radio value="email" />
141
+ <FormContent>
142
+ <FormTitle>Email only</FormTitle>
143
+ </FormContent>
144
+ </FormField>
145
+ </label>
146
+ </RadioGroup>
147
+
148
+ <p id="notification-error" class="text-sm font-medium text-destructive">
149
+ Select one delivery channel before saving notification settings.
150
+ </p>
151
+ </FormField>
152
+ ```
153
+
154
+ ## API Reference
155
+
156
+ ### `RadioGroupComponent`
157
+
158
+ | Input | Type | Default | Notes |
159
+ | ------------------ | -------------------------------------- | ------------ | ------------------------------------------------------------ |
160
+ | `name` | `string` | `''` | Shared native `name` so the browser groups the radios. |
161
+ | `orientation` | `'horizontal' \| 'vertical'` | `'vertical'` | Switches between stacked rows and inline columns. |
162
+ | `aria-label` | `string \| null` | `null` | Use when the group needs an explicit accessible name. |
163
+ | `aria-labelledby` | `string \| null` | `null` | Alternative to `aria-label` for external group headings. |
164
+ | `aria-describedby` | `string \| null` | `null` | Connects helper or error text outside the group. |
165
+ | `aria-invalid` | `boolean \| 'true' \| 'false' \| null` | `null` | Marks the group invalid for validation-driven presentations. |
166
+ | `class` | `string` | `''` | Adds utility classes to the wrapped group host. |
167
+
168
+ | Output | Payload |
169
+ | ------------- | -------- |
170
+ | `valueChange` | `string` |
171
+
172
+ Public method: `focus()`.
173
+
174
+ ### `RadioComponent`
175
+
176
+ | Input | Type | Default |
177
+ | ---------- | --------- | ------- |
178
+ | `value` | `string` | — |
179
+ | `disabled` | `boolean` | `false` |
180
+ | `class` | `string` | `''` |
181
+
182
+ ## Styling and Theming
183
+
184
+ The radio primitives render native radio inputs (no Material dependency) and restyle them through the shared theme tokens.
185
+
186
+ - The selected dot uses the `primary` token.
187
+ - Unselected outlines use the `input` token rather than current text color.
188
+ - The group uses CSS grid; horizontal orientation flips to `grid-flow-col auto-cols-max`.
189
+ - Card-style layouts and invalid treatments are best handled by surrounding `label[Label]` and `FormField` composition.
190
+
191
+ ## Accessibility
192
+
193
+ - Use a real `fieldset` and `legend` when the radio list answers one grouped question.
194
+ - Wrap each option in `label[Label]` when the whole row or card should toggle the control.
195
+ - Use `aria-describedby` on `RadioGroup` to connect helper or error text rendered outside the option rows.
196
+ - Use `aria-invalid` on `RadioGroup` when validation fails and the group should be announced as invalid.
197
+
198
+ ## Keyboard Interactions
199
+
200
+ - `Tab` moves focus to the selected item or first enabled item in the group.
201
+ - Arrow keys move between options using native radio-group behavior.
202
+ - `Space` selects the focused option.
203
+
204
+ ## Angular Notes
205
+
206
+ - `RadioGroup` owns the selected value and works with both `ngModel` and reactive forms.
207
+ - `Radio` represents only the selectable item; visible copy usually lives beside it in a wrapper label or `FormContent` block.
208
+ - The shadcn `Field` family maps to the existing `form` entrypoint rather than a separate radio-specific helper package.
209
+
210
+ ## Source Parity
211
+
212
+ This Angular implementation follows the same high-value shadcn radio-group examples: descriptive rows, choice cards, semantic fieldsets, disabled states, invalid messaging, and RTL. The deliberate difference is the use of the existing `form` and `label` primitives instead of introducing a separate runtime `Field` API.