pdm-ui-kit 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) hide show
  1. package/dist/corelusa-pdm-ui-kit/README.md +79 -0
  2. package/dist/corelusa-pdm-ui-kit/esm2020/corelusa-pdm-ui-kit.mjs +5 -0
  3. package/{fesm2015/pdm-ui-kit.mjs → dist/corelusa-pdm-ui-kit/fesm2015/corelusa-pdm-ui-kit.mjs} +1 -1
  4. package/dist/corelusa-pdm-ui-kit/fesm2015/corelusa-pdm-ui-kit.mjs.map +1 -0
  5. package/{fesm2020/pdm-ui-kit.mjs → dist/corelusa-pdm-ui-kit/fesm2020/corelusa-pdm-ui-kit.mjs} +1 -1
  6. package/dist/corelusa-pdm-ui-kit/fesm2020/corelusa-pdm-ui-kit.mjs.map +1 -0
  7. package/dist/corelusa-pdm-ui-kit/index.d.ts +5 -0
  8. package/dist/corelusa-pdm-ui-kit/package.json +47 -0
  9. package/dist/pdm-ui-kit/README.md +128 -0
  10. package/dist/pdm-ui-kit/esm2020/lib/components/accordion/accordion.component.mjs +42 -0
  11. package/dist/pdm-ui-kit/esm2020/lib/components/alert/alert.component.mjs +35 -0
  12. package/dist/pdm-ui-kit/esm2020/lib/components/alert-dialog/alert-dialog.component.mjs +69 -0
  13. package/dist/pdm-ui-kit/esm2020/lib/components/aspect-ratio/aspect-ratio.component.mjs +31 -0
  14. package/dist/pdm-ui-kit/esm2020/lib/components/avatar/avatar.component.mjs +46 -0
  15. package/dist/pdm-ui-kit/esm2020/lib/components/badge/badge.component.mjs +23 -0
  16. package/dist/pdm-ui-kit/esm2020/lib/components/breadcrumb/breadcrumb.component.mjs +29 -0
  17. package/dist/pdm-ui-kit/esm2020/lib/components/button/button.component.mjs +82 -0
  18. package/dist/pdm-ui-kit/esm2020/lib/components/button-group/button-group.component.mjs +23 -0
  19. package/dist/pdm-ui-kit/esm2020/lib/components/calendar/calendar.component.mjs +71 -0
  20. package/dist/pdm-ui-kit/esm2020/lib/components/card/card.component.mjs +65 -0
  21. package/dist/pdm-ui-kit/esm2020/lib/components/carousel/carousel.component.mjs +97 -0
  22. package/dist/pdm-ui-kit/esm2020/lib/components/chart/chart.component.mjs +174 -0
  23. package/dist/pdm-ui-kit/esm2020/lib/components/checkbox/checkbox.component.mjs +47 -0
  24. package/dist/pdm-ui-kit/esm2020/lib/components/collapsible/collapsible.component.mjs +43 -0
  25. package/dist/pdm-ui-kit/esm2020/lib/components/combobox/combobox.component.mjs +51 -0
  26. package/dist/pdm-ui-kit/esm2020/lib/components/command/command.component.mjs +75 -0
  27. package/dist/pdm-ui-kit/esm2020/lib/components/context-menu/context-menu.component.mjs +78 -0
  28. package/dist/pdm-ui-kit/esm2020/lib/components/data-table/data-table.component.mjs +89 -0
  29. package/dist/pdm-ui-kit/esm2020/lib/components/date-picker/date-picker.component.mjs +63 -0
  30. package/dist/pdm-ui-kit/esm2020/lib/components/dialog/dialog.component.mjs +90 -0
  31. package/dist/pdm-ui-kit/esm2020/lib/components/drawer/drawer.component.mjs +72 -0
  32. package/dist/pdm-ui-kit/esm2020/lib/components/dropdown-menu/dropdown-menu.component.mjs +120 -0
  33. package/dist/pdm-ui-kit/esm2020/lib/components/empty/empty.component.mjs +58 -0
  34. package/dist/pdm-ui-kit/esm2020/lib/components/field/field.component.mjs +64 -0
  35. package/dist/pdm-ui-kit/esm2020/lib/components/hover-card/hover-card.component.mjs +44 -0
  36. package/dist/pdm-ui-kit/esm2020/lib/components/icon/icon.component.mjs +94 -0
  37. package/dist/pdm-ui-kit/esm2020/lib/components/input/input.component.mjs +65 -0
  38. package/dist/pdm-ui-kit/esm2020/lib/components/input-group/input-group.component.mjs +63 -0
  39. package/dist/pdm-ui-kit/esm2020/lib/components/input-otp/input-otp.component.mjs +140 -0
  40. package/dist/pdm-ui-kit/esm2020/lib/components/input-password/input-password.component.mjs +72 -0
  41. package/dist/pdm-ui-kit/esm2020/lib/components/item/item.component.mjs +23 -0
  42. package/dist/pdm-ui-kit/esm2020/lib/components/kbd/kbd.component.mjs +17 -0
  43. package/dist/pdm-ui-kit/esm2020/lib/components/label/label.component.mjs +23 -0
  44. package/dist/pdm-ui-kit/esm2020/lib/components/menubar/menubar.component.mjs +31 -0
  45. package/dist/pdm-ui-kit/esm2020/lib/components/native-select/native-select.component.mjs +42 -0
  46. package/dist/pdm-ui-kit/esm2020/lib/components/navigation-menu/navigation-menu.component.mjs +20 -0
  47. package/dist/pdm-ui-kit/esm2020/lib/components/pagination/pagination.component.mjs +47 -0
  48. package/dist/pdm-ui-kit/esm2020/lib/components/popover/popover.component.mjs +58 -0
  49. package/dist/pdm-ui-kit/esm2020/lib/components/progress/progress.component.mjs +33 -0
  50. package/dist/pdm-ui-kit/esm2020/lib/components/radio-group/radio-group.component.mjs +38 -0
  51. package/dist/pdm-ui-kit/esm2020/lib/components/scroll-area/scroll-area.component.mjs +20 -0
  52. package/dist/pdm-ui-kit/esm2020/lib/components/select/select.component.mjs +38 -0
  53. package/dist/pdm-ui-kit/esm2020/lib/components/separator/separator.component.mjs +26 -0
  54. package/dist/pdm-ui-kit/esm2020/lib/components/sheet/sheet.component.mjs +39 -0
  55. package/dist/pdm-ui-kit/esm2020/lib/components/sidebar/sidebar.component.mjs +20 -0
  56. package/dist/pdm-ui-kit/esm2020/lib/components/skeleton/skeleton.component.mjs +17 -0
  57. package/dist/pdm-ui-kit/esm2020/lib/components/slider/slider.component.mjs +46 -0
  58. package/dist/pdm-ui-kit/esm2020/lib/components/sonner/sonner.component.mjs +39 -0
  59. package/dist/pdm-ui-kit/esm2020/lib/components/spinner/spinner.component.mjs +20 -0
  60. package/dist/pdm-ui-kit/esm2020/lib/components/switch/switch.component.mjs +35 -0
  61. package/dist/pdm-ui-kit/esm2020/lib/components/table/table.component.mjs +17 -0
  62. package/dist/pdm-ui-kit/esm2020/lib/components/tabs/tabs.component.mjs +31 -0
  63. package/dist/pdm-ui-kit/esm2020/lib/components/textarea/textarea.component.mjs +59 -0
  64. package/dist/pdm-ui-kit/esm2020/lib/components/toggle/toggle.component.mjs +41 -0
  65. package/dist/pdm-ui-kit/esm2020/lib/components/toggle-group/toggle-group.component.mjs +31 -0
  66. package/dist/pdm-ui-kit/esm2020/lib/components/tooltip/tooltip.component.mjs +33 -0
  67. package/dist/pdm-ui-kit/esm2020/lib/pdm-ui-kit.module.mjs +245 -0
  68. package/dist/pdm-ui-kit/esm2020/public-api.mjs +59 -0
  69. package/dist/pdm-ui-kit/fesm2015/pdm-ui-kit.mjs +2980 -0
  70. package/dist/pdm-ui-kit/fesm2015/pdm-ui-kit.mjs.map +1 -0
  71. package/dist/pdm-ui-kit/fesm2020/pdm-ui-kit.mjs +2975 -0
  72. package/dist/pdm-ui-kit/fesm2020/pdm-ui-kit.mjs.map +1 -0
  73. package/dist/pdm-ui-kit/lib/components/accordion/accordion.component.d.ts +19 -0
  74. package/dist/pdm-ui-kit/lib/components/alert/alert.component.d.ts +13 -0
  75. package/dist/pdm-ui-kit/lib/components/alert-dialog/alert-dialog.component.d.ts +21 -0
  76. package/dist/pdm-ui-kit/lib/components/aspect-ratio/aspect-ratio.component.d.ts +10 -0
  77. package/dist/pdm-ui-kit/lib/components/avatar/avatar.component.d.ts +20 -0
  78. package/dist/pdm-ui-kit/lib/components/badge/badge.component.d.ts +9 -0
  79. package/dist/pdm-ui-kit/lib/components/breadcrumb/breadcrumb.component.d.ts +10 -0
  80. package/dist/pdm-ui-kit/lib/components/button/button.component.d.ts +24 -0
  81. package/dist/pdm-ui-kit/lib/components/button-group/button-group.component.d.ts +9 -0
  82. package/dist/pdm-ui-kit/lib/components/calendar/calendar.component.d.ts +28 -0
  83. package/dist/pdm-ui-kit/lib/components/card/card.component.d.ts +24 -0
  84. package/dist/pdm-ui-kit/lib/components/carousel/carousel.component.d.ts +25 -0
  85. package/dist/pdm-ui-kit/lib/components/chart/chart.component.d.ts +41 -0
  86. package/dist/pdm-ui-kit/lib/components/checkbox/checkbox.component.d.ts +17 -0
  87. package/dist/pdm-ui-kit/lib/components/collapsible/collapsible.component.d.ts +14 -0
  88. package/dist/pdm-ui-kit/lib/components/combobox/combobox.component.d.ts +18 -0
  89. package/dist/pdm-ui-kit/lib/components/command/command.component.d.ts +33 -0
  90. package/dist/pdm-ui-kit/lib/components/context-menu/context-menu.component.d.ts +26 -0
  91. package/dist/pdm-ui-kit/lib/components/data-table/data-table.component.d.ts +36 -0
  92. package/dist/pdm-ui-kit/lib/components/date-picker/date-picker.component.d.ts +23 -0
  93. package/dist/pdm-ui-kit/lib/components/dialog/dialog.component.d.ts +30 -0
  94. package/dist/pdm-ui-kit/lib/components/drawer/drawer.component.d.ts +27 -0
  95. package/dist/pdm-ui-kit/lib/components/dropdown-menu/dropdown-menu.component.d.ts +34 -0
  96. package/dist/pdm-ui-kit/lib/components/empty/empty.component.d.ts +19 -0
  97. package/dist/pdm-ui-kit/lib/components/field/field.component.d.ts +23 -0
  98. package/dist/pdm-ui-kit/lib/components/hover-card/hover-card.component.d.ts +14 -0
  99. package/dist/pdm-ui-kit/lib/components/icon/icon.component.d.ts +18 -0
  100. package/dist/pdm-ui-kit/lib/components/input/input.component.d.ts +23 -0
  101. package/dist/pdm-ui-kit/lib/components/input-group/input-group.component.d.ts +22 -0
  102. package/dist/pdm-ui-kit/lib/components/input-otp/input-otp.component.d.ts +26 -0
  103. package/dist/pdm-ui-kit/lib/components/input-password/input-password.component.d.ts +25 -0
  104. package/dist/pdm-ui-kit/lib/components/item/item.component.d.ts +8 -0
  105. package/dist/pdm-ui-kit/lib/components/kbd/kbd.component.d.ts +6 -0
  106. package/dist/pdm-ui-kit/lib/components/label/label.component.d.ts +8 -0
  107. package/dist/pdm-ui-kit/lib/components/menubar/menubar.component.d.ts +17 -0
  108. package/dist/pdm-ui-kit/lib/components/native-select/native-select.component.d.ts +20 -0
  109. package/dist/pdm-ui-kit/lib/components/navigation-menu/navigation-menu.component.d.ts +12 -0
  110. package/dist/pdm-ui-kit/lib/components/pagination/pagination.component.d.ts +13 -0
  111. package/dist/pdm-ui-kit/lib/components/popover/popover.component.d.ts +17 -0
  112. package/dist/pdm-ui-kit/lib/components/progress/progress.component.d.ts +10 -0
  113. package/dist/pdm-ui-kit/lib/components/radio-group/radio-group.component.d.ts +19 -0
  114. package/dist/pdm-ui-kit/lib/components/scroll-area/scroll-area.component.d.ts +7 -0
  115. package/dist/pdm-ui-kit/lib/components/select/select.component.d.ts +19 -0
  116. package/dist/pdm-ui-kit/lib/components/separator/separator.component.d.ts +9 -0
  117. package/dist/pdm-ui-kit/lib/components/sheet/sheet.component.d.ts +13 -0
  118. package/dist/pdm-ui-kit/lib/components/sidebar/sidebar.component.d.ts +7 -0
  119. package/dist/pdm-ui-kit/lib/components/skeleton/skeleton.component.d.ts +6 -0
  120. package/dist/pdm-ui-kit/lib/components/slider/slider.component.d.ts +15 -0
  121. package/dist/pdm-ui-kit/lib/components/sonner/sonner.component.d.ts +13 -0
  122. package/dist/pdm-ui-kit/lib/components/spinner/spinner.component.d.ts +7 -0
  123. package/dist/pdm-ui-kit/lib/components/switch/switch.component.d.ts +13 -0
  124. package/dist/pdm-ui-kit/lib/components/table/table.component.d.ts +6 -0
  125. package/dist/pdm-ui-kit/lib/components/tabs/tabs.component.d.ts +16 -0
  126. package/dist/pdm-ui-kit/lib/components/textarea/textarea.component.d.ts +21 -0
  127. package/dist/pdm-ui-kit/lib/components/toggle/toggle.component.d.ts +14 -0
  128. package/dist/pdm-ui-kit/lib/components/toggle-group/toggle-group.component.d.ts +16 -0
  129. package/dist/pdm-ui-kit/lib/components/tooltip/tooltip.component.d.ts +10 -0
  130. package/dist/pdm-ui-kit/lib/pdm-ui-kit.module.d.ts +64 -0
  131. package/dist/pdm-ui-kit/package.json +44 -0
  132. package/dist/pdm-ui-kit/public-api.d.ts +58 -0
  133. package/ng-package.json +8 -0
  134. package/package.json +13 -20
  135. package/pdm-ui-kit-0.1.1.tgz +0 -0
  136. package/pdm-ui-kit-0.1.2.tgz +0 -0
  137. package/pdm-ui-kit-0.1.3.tgz +0 -0
  138. package/pdm-ui-kit-0.1.4.tgz +0 -0
  139. package/src/lib/components/accordion/accordion.component.html +34 -0
  140. package/src/lib/components/accordion/accordion.component.ts +38 -0
  141. package/src/lib/components/alert/alert.component.html +52 -0
  142. package/src/lib/components/alert/alert.component.ts +25 -0
  143. package/src/lib/components/alert-dialog/alert-dialog.component.html +41 -0
  144. package/src/lib/components/alert-dialog/alert-dialog.component.ts +45 -0
  145. package/src/lib/components/aspect-ratio/aspect-ratio.component.html +11 -0
  146. package/src/lib/components/aspect-ratio/aspect-ratio.component.ts +18 -0
  147. package/src/lib/components/avatar/avatar.component.html +21 -0
  148. package/src/lib/components/avatar/avatar.component.ts +32 -0
  149. package/src/lib/components/badge/badge.component.html +28 -0
  150. package/src/lib/components/badge/badge.component.ts +23 -0
  151. package/src/lib/components/breadcrumb/breadcrumb.component.html +39 -0
  152. package/src/lib/components/breadcrumb/breadcrumb.component.ts +26 -0
  153. package/src/lib/components/button/button.component.html +15 -0
  154. package/src/lib/components/button/button.component.ts +84 -0
  155. package/src/lib/components/button-group/button-group.component.html +39 -0
  156. package/src/lib/components/button-group/button-group.component.ts +15 -0
  157. package/src/lib/components/calendar/calendar.component.html +73 -0
  158. package/src/lib/components/calendar/calendar.component.ts +78 -0
  159. package/src/lib/components/card/card.component.html +77 -0
  160. package/src/lib/components/card/card.component.ts +39 -0
  161. package/src/lib/components/carousel/carousel.component.html +86 -0
  162. package/src/lib/components/carousel/carousel.component.ts +100 -0
  163. package/src/lib/components/chart/chart.component.html +143 -0
  164. package/src/lib/components/chart/chart.component.ts +147 -0
  165. package/src/lib/components/checkbox/checkbox.component.html +38 -0
  166. package/src/lib/components/checkbox/checkbox.component.ts +32 -0
  167. package/src/lib/components/collapsible/collapsible.component.html +26 -0
  168. package/src/lib/components/collapsible/collapsible.component.ts +29 -0
  169. package/src/lib/components/combobox/combobox.component.html +42 -0
  170. package/src/lib/components/combobox/combobox.component.ts +32 -0
  171. package/src/lib/components/command/command.component.html +55 -0
  172. package/src/lib/components/command/command.component.ts +67 -0
  173. package/src/lib/components/context-menu/context-menu.component.html +47 -0
  174. package/src/lib/components/context-menu/context-menu.component.ts +67 -0
  175. package/src/lib/components/data-table/data-table.component.html +63 -0
  176. package/src/lib/components/data-table/data-table.component.ts +78 -0
  177. package/src/lib/components/date-picker/date-picker.component.html +38 -0
  178. package/src/lib/components/date-picker/date-picker.component.ts +38 -0
  179. package/src/lib/components/dialog/dialog.component.html +78 -0
  180. package/src/lib/components/dialog/dialog.component.ts +55 -0
  181. package/src/lib/components/drawer/drawer.component.html +56 -0
  182. package/src/lib/components/drawer/drawer.component.ts +43 -0
  183. package/src/lib/components/dropdown-menu/dropdown-menu.component.html +56 -0
  184. package/src/lib/components/dropdown-menu/dropdown-menu.component.ts +126 -0
  185. package/src/lib/components/empty/empty.component.html +29 -0
  186. package/src/lib/components/empty/empty.component.ts +35 -0
  187. package/src/lib/components/field/field.component.html +26 -0
  188. package/src/lib/components/field/field.component.ts +42 -0
  189. package/src/lib/components/hover-card/hover-card.component.html +24 -0
  190. package/src/lib/components/hover-card/hover-card.component.ts +36 -0
  191. package/src/lib/components/icon/icon.component.html +286 -0
  192. package/src/lib/components/icon/icon.component.ts +133 -0
  193. package/src/lib/components/input/input.component.html +25 -0
  194. package/src/lib/components/input/input.component.ts +33 -0
  195. package/src/lib/components/input-group/input-group.component.html +59 -0
  196. package/src/lib/components/input-group/input-group.component.ts +32 -0
  197. package/src/lib/components/input-otp/input-otp.component.html +25 -0
  198. package/src/lib/components/input-otp/input-otp.component.ts +146 -0
  199. package/src/lib/components/input-password/input-password.component.html +66 -0
  200. package/src/lib/components/input-password/input-password.component.ts +46 -0
  201. package/src/lib/components/item/item.component.html +10 -0
  202. package/src/lib/components/item/item.component.ts +12 -0
  203. package/src/lib/components/kbd/kbd.component.html +3 -0
  204. package/src/lib/components/kbd/kbd.component.ts +10 -0
  205. package/src/lib/components/label/label.component.html +7 -0
  206. package/src/lib/components/label/label.component.ts +12 -0
  207. package/src/lib/components/menubar/menubar.component.html +16 -0
  208. package/src/lib/components/menubar/menubar.component.ts +29 -0
  209. package/src/lib/components/native-select/native-select.component.html +17 -0
  210. package/src/lib/components/native-select/native-select.component.ts +28 -0
  211. package/src/lib/components/navigation-menu/navigation-menu.component.html +15 -0
  212. package/src/lib/components/navigation-menu/navigation-menu.component.ts +17 -0
  213. package/src/lib/components/pagination/pagination.component.html +30 -0
  214. package/src/lib/components/pagination/pagination.component.ts +37 -0
  215. package/src/lib/components/popover/popover.component.html +6 -0
  216. package/src/lib/components/popover/popover.component.ts +40 -0
  217. package/src/lib/components/progress/progress.component.html +9 -0
  218. package/src/lib/components/progress/progress.component.ts +20 -0
  219. package/src/lib/components/radio-group/radio-group.component.html +25 -0
  220. package/src/lib/components/radio-group/radio-group.component.ts +30 -0
  221. package/src/lib/components/scroll-area/scroll-area.component.html +5 -0
  222. package/src/lib/components/scroll-area/scroll-area.component.ts +11 -0
  223. package/src/lib/components/select/select.component.html +14 -0
  224. package/src/lib/components/select/select.component.ts +27 -0
  225. package/src/lib/components/separator/separator.component.html +5 -0
  226. package/src/lib/components/separator/separator.component.ts +16 -0
  227. package/src/lib/components/sheet/sheet.component.html +10 -0
  228. package/src/lib/components/sheet/sheet.component.ts +28 -0
  229. package/src/lib/components/sidebar/sidebar.component.html +3 -0
  230. package/src/lib/components/sidebar/sidebar.component.ts +11 -0
  231. package/src/lib/components/skeleton/skeleton.component.html +1 -0
  232. package/src/lib/components/skeleton/skeleton.component.ts +10 -0
  233. package/src/lib/components/slider/slider.component.html +15 -0
  234. package/src/lib/components/slider/slider.component.ts +31 -0
  235. package/src/lib/components/sonner/sonner.component.html +10 -0
  236. package/src/lib/components/sonner/sonner.component.ts +25 -0
  237. package/src/lib/components/spinner/spinner.component.html +6 -0
  238. package/src/lib/components/spinner/spinner.component.ts +11 -0
  239. package/src/lib/components/switch/switch.component.html +14 -0
  240. package/src/lib/components/switch/switch.component.ts +20 -0
  241. package/src/lib/components/table/table.component.html +5 -0
  242. package/src/lib/components/table/table.component.ts +10 -0
  243. package/src/lib/components/tabs/tabs.component.html +21 -0
  244. package/src/lib/components/tabs/tabs.component.ts +26 -0
  245. package/src/lib/components/textarea/textarea.component.html +21 -0
  246. package/src/lib/components/textarea/textarea.component.ts +28 -0
  247. package/src/lib/components/toggle/toggle.component.html +16 -0
  248. package/src/lib/components/toggle/toggle.component.ts +29 -0
  249. package/src/lib/components/toggle-group/toggle-group.component.html +17 -0
  250. package/src/lib/components/toggle-group/toggle-group.component.ts +26 -0
  251. package/src/lib/components/tooltip/tooltip.component.html +6 -0
  252. package/src/lib/components/tooltip/tooltip.component.ts +20 -0
  253. package/src/lib/pdm-ui-kit.module.ts +126 -0
  254. package/src/public-api.ts +58 -0
  255. package/tsconfig.json +30 -0
  256. package/tsconfig.lib.json +17 -0
  257. package/fesm2015/pdm-ui-kit.mjs.map +0 -1
  258. package/fesm2020/pdm-ui-kit.mjs.map +0 -1
  259. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/accordion/accordion.component.mjs +0 -0
  260. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/alert/alert.component.mjs +0 -0
  261. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/alert-dialog/alert-dialog.component.mjs +0 -0
  262. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/aspect-ratio/aspect-ratio.component.mjs +0 -0
  263. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/avatar/avatar.component.mjs +0 -0
  264. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/badge/badge.component.mjs +0 -0
  265. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/breadcrumb/breadcrumb.component.mjs +0 -0
  266. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/button/button.component.mjs +0 -0
  267. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/button-group/button-group.component.mjs +0 -0
  268. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/calendar/calendar.component.mjs +0 -0
  269. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/card/card.component.mjs +0 -0
  270. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/carousel/carousel.component.mjs +0 -0
  271. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/chart/chart.component.mjs +0 -0
  272. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/checkbox/checkbox.component.mjs +0 -0
  273. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/collapsible/collapsible.component.mjs +0 -0
  274. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/combobox/combobox.component.mjs +0 -0
  275. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/command/command.component.mjs +0 -0
  276. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/context-menu/context-menu.component.mjs +0 -0
  277. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/data-table/data-table.component.mjs +0 -0
  278. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/date-picker/date-picker.component.mjs +0 -0
  279. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/dialog/dialog.component.mjs +0 -0
  280. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/drawer/drawer.component.mjs +0 -0
  281. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/dropdown-menu/dropdown-menu.component.mjs +0 -0
  282. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/empty/empty.component.mjs +0 -0
  283. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/field/field.component.mjs +0 -0
  284. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/hover-card/hover-card.component.mjs +0 -0
  285. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/icon/icon.component.mjs +0 -0
  286. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/input/input.component.mjs +0 -0
  287. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/input-group/input-group.component.mjs +0 -0
  288. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/input-otp/input-otp.component.mjs +0 -0
  289. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/input-password/input-password.component.mjs +0 -0
  290. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/item/item.component.mjs +0 -0
  291. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/kbd/kbd.component.mjs +0 -0
  292. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/label/label.component.mjs +0 -0
  293. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/menubar/menubar.component.mjs +0 -0
  294. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/native-select/native-select.component.mjs +0 -0
  295. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/navigation-menu/navigation-menu.component.mjs +0 -0
  296. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/pagination/pagination.component.mjs +0 -0
  297. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/popover/popover.component.mjs +0 -0
  298. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/progress/progress.component.mjs +0 -0
  299. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/radio-group/radio-group.component.mjs +0 -0
  300. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/scroll-area/scroll-area.component.mjs +0 -0
  301. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/select/select.component.mjs +0 -0
  302. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/separator/separator.component.mjs +0 -0
  303. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/sheet/sheet.component.mjs +0 -0
  304. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/sidebar/sidebar.component.mjs +0 -0
  305. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/skeleton/skeleton.component.mjs +0 -0
  306. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/slider/slider.component.mjs +0 -0
  307. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/sonner/sonner.component.mjs +0 -0
  308. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/spinner/spinner.component.mjs +0 -0
  309. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/switch/switch.component.mjs +0 -0
  310. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/table/table.component.mjs +0 -0
  311. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/tabs/tabs.component.mjs +0 -0
  312. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/textarea/textarea.component.mjs +0 -0
  313. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/toggle/toggle.component.mjs +0 -0
  314. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/toggle-group/toggle-group.component.mjs +0 -0
  315. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/components/tooltip/tooltip.component.mjs +0 -0
  316. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/lib/pdm-ui-kit.module.mjs +0 -0
  317. /package/{esm2020 → dist/corelusa-pdm-ui-kit/esm2020}/public-api.mjs +0 -0
  318. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/accordion/accordion.component.d.ts +0 -0
  319. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/alert/alert.component.d.ts +0 -0
  320. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/alert-dialog/alert-dialog.component.d.ts +0 -0
  321. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/aspect-ratio/aspect-ratio.component.d.ts +0 -0
  322. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/avatar/avatar.component.d.ts +0 -0
  323. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/badge/badge.component.d.ts +0 -0
  324. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/breadcrumb/breadcrumb.component.d.ts +0 -0
  325. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/button/button.component.d.ts +0 -0
  326. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/button-group/button-group.component.d.ts +0 -0
  327. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/calendar/calendar.component.d.ts +0 -0
  328. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/card/card.component.d.ts +0 -0
  329. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/carousel/carousel.component.d.ts +0 -0
  330. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/chart/chart.component.d.ts +0 -0
  331. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/checkbox/checkbox.component.d.ts +0 -0
  332. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/collapsible/collapsible.component.d.ts +0 -0
  333. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/combobox/combobox.component.d.ts +0 -0
  334. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/command/command.component.d.ts +0 -0
  335. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/context-menu/context-menu.component.d.ts +0 -0
  336. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/data-table/data-table.component.d.ts +0 -0
  337. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/date-picker/date-picker.component.d.ts +0 -0
  338. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/dialog/dialog.component.d.ts +0 -0
  339. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/drawer/drawer.component.d.ts +0 -0
  340. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/dropdown-menu/dropdown-menu.component.d.ts +0 -0
  341. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/empty/empty.component.d.ts +0 -0
  342. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/field/field.component.d.ts +0 -0
  343. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/hover-card/hover-card.component.d.ts +0 -0
  344. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/icon/icon.component.d.ts +0 -0
  345. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/input/input.component.d.ts +0 -0
  346. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/input-group/input-group.component.d.ts +0 -0
  347. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/input-otp/input-otp.component.d.ts +0 -0
  348. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/input-password/input-password.component.d.ts +0 -0
  349. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/item/item.component.d.ts +0 -0
  350. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/kbd/kbd.component.d.ts +0 -0
  351. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/label/label.component.d.ts +0 -0
  352. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/menubar/menubar.component.d.ts +0 -0
  353. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/native-select/native-select.component.d.ts +0 -0
  354. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/navigation-menu/navigation-menu.component.d.ts +0 -0
  355. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/pagination/pagination.component.d.ts +0 -0
  356. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/popover/popover.component.d.ts +0 -0
  357. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/progress/progress.component.d.ts +0 -0
  358. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/radio-group/radio-group.component.d.ts +0 -0
  359. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/scroll-area/scroll-area.component.d.ts +0 -0
  360. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/select/select.component.d.ts +0 -0
  361. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/separator/separator.component.d.ts +0 -0
  362. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/sheet/sheet.component.d.ts +0 -0
  363. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/sidebar/sidebar.component.d.ts +0 -0
  364. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/skeleton/skeleton.component.d.ts +0 -0
  365. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/slider/slider.component.d.ts +0 -0
  366. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/sonner/sonner.component.d.ts +0 -0
  367. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/spinner/spinner.component.d.ts +0 -0
  368. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/switch/switch.component.d.ts +0 -0
  369. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/table/table.component.d.ts +0 -0
  370. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/tabs/tabs.component.d.ts +0 -0
  371. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/textarea/textarea.component.d.ts +0 -0
  372. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/toggle/toggle.component.d.ts +0 -0
  373. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/toggle-group/toggle-group.component.d.ts +0 -0
  374. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/components/tooltip/tooltip.component.d.ts +0 -0
  375. /package/{lib → dist/corelusa-pdm-ui-kit/lib}/pdm-ui-kit.module.d.ts +0 -0
  376. /package/{public-api.d.ts → dist/corelusa-pdm-ui-kit/public-api.d.ts} +0 -0
  377. /package/{esm2020 → dist/pdm-ui-kit/esm2020}/pdm-ui-kit.mjs +0 -0
  378. /package/{index.d.ts → dist/pdm-ui-kit/index.d.ts} +0 -0
@@ -0,0 +1,133 @@
1
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
+
3
+ export type PdmIconLibrary = 'lucide' | 'tabler' | 'hugeicons' | 'phosphor' | 'remix';
4
+
5
+ export type PdmIconName =
6
+ | 'command'
7
+ | 'check'
8
+ | 'check-circle'
9
+ | 'circle'
10
+ | 'dot'
11
+ | 'x'
12
+ | 'alert-circle'
13
+ | 'info'
14
+ | 'loader-2'
15
+ | 'menu'
16
+ | 'search'
17
+ | 'calendar'
18
+ | 'panel-left'
19
+ | 'monitor'
20
+ | 'laptop'
21
+ | 'sun'
22
+ | 'moon'
23
+ | 'chevron-down'
24
+ | 'chevron-up'
25
+ | 'chevron-left'
26
+ | 'chevron-right'
27
+ | 'chevrons-left'
28
+ | 'chevrons-right'
29
+ | 'chevrons-up-down'
30
+ | 'arrow-up-down'
31
+ | 'ellipsis'
32
+ | 'filter'
33
+ | 'sort-asc'
34
+ | 'sort-desc'
35
+ | 'plus'
36
+ | 'minus'
37
+ | 'copy'
38
+ | 'pencil'
39
+ | 'trash-2'
40
+ | 'download'
41
+ | 'upload'
42
+ | 'home'
43
+ | 'mail'
44
+ | 'phone'
45
+ | 'log-in'
46
+ | 'log-out'
47
+ | 'user'
48
+ | 'settings'
49
+ | 'credit-card'
50
+ | 'smile'
51
+ | 'calculator'
52
+ | 'external-link'
53
+ | 'folder'
54
+ | 'arrow-up-right';
55
+
56
+ @Component({
57
+ selector: 'pdm-icon',
58
+ templateUrl: './icon.component.html',
59
+ changeDetection: ChangeDetectionStrategy.OnPush
60
+ })
61
+ export class PdmIconComponent {
62
+ @Input() name: PdmIconName | string = 'check';
63
+ @Input() library: PdmIconLibrary = 'lucide';
64
+ @Input() assetUrl: string | null = null;
65
+ @Input() size = 16;
66
+ @Input() strokeWidth = 1.5;
67
+ @Input() className = '';
68
+ @Input() ariaLabel: string | null = null;
69
+ @Input() decorative = false;
70
+
71
+ get resolvedStrokeWidth(): number {
72
+ if (this.strokeWidth) {
73
+ return this.strokeWidth;
74
+ }
75
+
76
+ if (this.library === 'phosphor') {
77
+ return 1.6;
78
+ }
79
+
80
+ if (this.library === 'tabler') {
81
+ return 1.8;
82
+ }
83
+
84
+ return 1.5;
85
+ }
86
+
87
+ get iconKey(): string {
88
+ const raw = `${this.name || ''}`.trim();
89
+ if (!raw) {
90
+ return 'circle';
91
+ }
92
+
93
+ const trimmed = raw.replace(/^(lucide|tabler|hugeicons|phosphor|remix)\//, '');
94
+ const aliases = this.aliasMapByLibrary[this.library] ?? {};
95
+ return aliases[trimmed] ?? trimmed;
96
+ }
97
+
98
+ private readonly aliasMapByLibrary: Record<PdmIconLibrary, Record<string, string>> = {
99
+ lucide: {},
100
+ tabler: {
101
+ 'alert-triangle': 'alert-circle',
102
+ 'chevron-down': 'chevron-down',
103
+ 'chevron-right': 'chevron-right',
104
+ 'user-circle': 'user',
105
+ 'settings-2': 'settings',
106
+ 'external-link': 'external-link'
107
+ },
108
+ hugeicons: {
109
+ 'alert-02': 'alert-circle',
110
+ 'user-circle': 'user',
111
+ 'search-01': 'search',
112
+ 'settings-01': 'settings',
113
+ 'arrow-right-01': 'chevron-right',
114
+ 'arrow-down-01': 'chevron-down'
115
+ },
116
+ phosphor: {
117
+ 'warning-circle': 'alert-circle',
118
+ 'caret-down': 'chevron-down',
119
+ 'caret-right': 'chevron-right',
120
+ 'user-circle': 'user',
121
+ gear: 'settings',
122
+ 'arrow-square-out': 'external-link'
123
+ },
124
+ remix: {
125
+ 'alert-line': 'alert-circle',
126
+ 'arrow-right-line': 'chevron-right',
127
+ 'arrow-down-s-line': 'chevron-down',
128
+ 'external-link-line': 'external-link',
129
+ 'user-line': 'user',
130
+ 'settings-3-line': 'settings'
131
+ }
132
+ };
133
+ }
@@ -0,0 +1,25 @@
1
+ <div [ngClass]="['grid w-full gap-3', className]">
2
+ <label *ngIf="label" [attr.for]="id" class="text-sm font-medium leading-5 text-[hsl(var(--foreground))]">{{ label }}</label>
3
+ <input
4
+ [id]="id"
5
+ [type]="type"
6
+ [value]="value"
7
+ [placeholder]="placeholder"
8
+ [disabled]="disabled"
9
+ [readonly]="readonly"
10
+ [required]="required"
11
+ [attr.aria-invalid]="invalid"
12
+ [ngClass]="[
13
+ 'flex h-9 w-full rounded-[8px] border bg-[hsl(var(--background))] px-3 py-1 text-[hsl(var(--foreground))] shadow-[0_1px_2px_rgba(0,0,0,0.1)] outline-none transition-[border-color,box-shadow] placeholder:text-[hsl(var(--muted-foreground))] focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 file:mr-1 file:border-0 file:bg-transparent file:px-[6px] file:py-px file:text-sm file:font-medium file:leading-5 file:text-[hsl(var(--foreground))]',
14
+ type === 'file' ? 'text-sm leading-5' : 'text-base leading-6',
15
+ invalid
16
+ ? 'border-[hsl(var(--destructive))] focus:border-[hsl(var(--destructive))] focus:shadow-[0_0_0_3px_hsl(var(--destructive)/0.2)]'
17
+ : 'border-[hsl(var(--input))] focus:border-[hsl(var(--ring))] focus:shadow-[0_0_0_3px_hsl(var(--ring)/0.5)]',
18
+ inputClassName
19
+ ]"
20
+ (input)="onInput($event)"
21
+ (blur)="onBlur($event)"
22
+ />
23
+ <p *ngIf="!invalid && helperText" class="text-sm leading-5 text-[hsl(var(--muted-foreground))]">{{ helperText }}</p>
24
+ <p *ngIf="invalid && errorText" class="text-sm leading-5 text-[hsl(var(--destructive))]">{{ errorText }}</p>
25
+ </div>
@@ -0,0 +1,33 @@
1
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'pdm-input',
5
+ templateUrl: './input.component.html',
6
+ changeDetection: ChangeDetectionStrategy.OnPush
7
+ })
8
+ export class PdmInputComponent {
9
+ @Input() id = '';
10
+ @Input() type = 'text';
11
+ @Input() value = '';
12
+ @Input() placeholder = '';
13
+ @Input() disabled = false;
14
+ @Input() readonly = false;
15
+ @Input() required = false;
16
+ @Input() invalid = false;
17
+ @Input() className = '';
18
+ @Input() inputClassName = '';
19
+ @Input() label = '';
20
+ @Input() helperText = '';
21
+ @Input() errorText = '';
22
+
23
+ @Output() valueChange = new EventEmitter<string>();
24
+ @Output() blurred = new EventEmitter<FocusEvent>();
25
+
26
+ onInput(event: Event): void {
27
+ this.valueChange.emit((event.target as HTMLInputElement).value);
28
+ }
29
+
30
+ onBlur(event: FocusEvent): void {
31
+ this.blurred.emit(event);
32
+ }
33
+ }
@@ -0,0 +1,59 @@
1
+ <div
2
+ [ngClass]="[
3
+ 'flex w-full items-center gap-2',
4
+ disabled ? 'opacity-50' : '',
5
+ className
6
+ ]"
7
+ >
8
+ <div
9
+ [ngClass]="[
10
+ 'flex h-9 min-w-0 flex-1 items-center overflow-hidden rounded-[8px] border bg-[hsl(var(--background))] px-3 py-1 text-base leading-6 text-[hsl(var(--foreground))] shadow-[0_1px_2px_rgba(0,0,0,0.1)] transition-[border-color,box-shadow]',
11
+ invalid ? 'border-[hsl(var(--destructive))]' : 'border-[hsl(var(--input))]',
12
+ !invalid && !disabled ? 'focus-within:border-[hsl(var(--ring))] focus-within:shadow-[0_0_0_3px_hsl(var(--ring)/0.5)]' : '',
13
+ invalid && !disabled ? 'focus-within:border-[hsl(var(--destructive))] focus-within:shadow-[0_0_0_3px_hsl(var(--destructive)/0.2)]' : '',
14
+ disabled ? 'cursor-not-allowed' : ''
15
+ ]"
16
+ >
17
+ <div
18
+ *ngIf="prefixText || prefixIcon"
19
+ class="inline-flex h-full shrink-0 items-center gap-2 pr-2 text-sm leading-5 text-[hsl(var(--muted-foreground))]"
20
+ >
21
+ <pdm-icon *ngIf="prefixIcon" [name]="prefixIcon" [size]="16"></pdm-icon>
22
+ <span *ngIf="prefixText">{{ prefixText }}</span>
23
+ <ng-content select="[pdmInputGroupPrefix]"></ng-content>
24
+ </div>
25
+
26
+ <input
27
+ [id]="id"
28
+ [type]="type"
29
+ [value]="value"
30
+ [placeholder]="placeholder"
31
+ [disabled]="disabled"
32
+ [attr.aria-invalid]="invalid"
33
+ [ngClass]="[
34
+ 'h-full min-w-0 flex-1 border-0 bg-transparent p-0 text-base leading-6 text-[hsl(var(--foreground))] outline-none placeholder:text-[hsl(var(--muted-foreground))]',
35
+ type === 'file' ? 'text-sm leading-5 file:mr-1 file:border-0 file:bg-transparent file:px-[6px] file:py-px file:text-sm file:font-medium file:leading-5 file:text-[hsl(var(--foreground))]' : ''
36
+ ]"
37
+ (input)="onInput($event)"
38
+ />
39
+
40
+ <div
41
+ *ngIf="!buttonText && (suffixText || suffixIcon)"
42
+ class="inline-flex h-full shrink-0 items-center gap-2 pl-2 text-sm leading-5 text-[hsl(var(--muted-foreground))]"
43
+ >
44
+ <pdm-icon *ngIf="suffixIcon" [name]="suffixIcon" [size]="16"></pdm-icon>
45
+ <span *ngIf="suffixText" class="font-medium">{{ suffixText }}</span>
46
+ <ng-content select="[pdmInputGroupSuffix]"></ng-content>
47
+ </div>
48
+ </div>
49
+
50
+ <button
51
+ *ngIf="buttonText"
52
+ type="button"
53
+ [disabled]="disabled"
54
+ class="inline-flex h-9 shrink-0 items-center justify-center rounded-[10px] border border-[hsl(var(--input))] bg-[hsl(var(--background))] px-4 py-2 text-sm font-medium leading-5 text-[hsl(var(--foreground))] shadow-[0_1px_2px_rgba(0,0,0,0.1)] outline-none transition-[border-color,box-shadow] focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed"
55
+ (click)="onButtonClick($event)"
56
+ >
57
+ {{ buttonText }}
58
+ </button>
59
+ </div>
@@ -0,0 +1,32 @@
1
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'pdm-input-group',
5
+ templateUrl: './input-group.component.html',
6
+ changeDetection: ChangeDetectionStrategy.OnPush
7
+ })
8
+ export class PdmInputGroupComponent {
9
+ @Input() id = '';
10
+ @Input() type = 'text';
11
+ @Input() value = '';
12
+ @Input() placeholder = '';
13
+ @Input() disabled = false;
14
+ @Input() invalid = false;
15
+ @Input() prefixText = '';
16
+ @Input() suffixText = '';
17
+ @Input() prefixIcon = '';
18
+ @Input() suffixIcon = '';
19
+ @Input() buttonText = '';
20
+ @Input() className = '';
21
+
22
+ @Output() valueChange = new EventEmitter<string>();
23
+ @Output() buttonClick = new EventEmitter<MouseEvent>();
24
+
25
+ onInput(event: Event): void {
26
+ this.valueChange.emit((event.target as HTMLInputElement).value);
27
+ }
28
+
29
+ onButtonClick(event: MouseEvent): void {
30
+ this.buttonClick.emit(event);
31
+ }
32
+ }
@@ -0,0 +1,25 @@
1
+ <div [ngClass]="['inline-flex items-center justify-center', className]" (paste)="onPaste($event)">
2
+ <ng-container *ngFor="let value of values; let index = index; trackBy: trackByIndex">
3
+ <input
4
+ #otpInput
5
+ [class]="getInputClasses(index)"
6
+ [value]="value"
7
+ [disabled]="disabled"
8
+ inputmode="numeric"
9
+ maxlength="1"
10
+ [attr.name]="'otp-digit-' + index"
11
+ autocomplete="off"
12
+ autocapitalize="off"
13
+ spellcheck="false"
14
+ [attr.aria-invalid]="invalid"
15
+ [attr.aria-label]="'OTP digit ' + (index + 1)"
16
+ (input)="onInput(index, $event)"
17
+ (keydown)="onKeyDown(index, $event)"
18
+ />
19
+ <span
20
+ *ngIf="shouldShowSeparator(index)"
21
+ class="mx-2 mt-[-1px] h-px w-6 bg-foreground opacity-80"
22
+ aria-hidden="true"
23
+ ></span>
24
+ </ng-container>
25
+ </div>
@@ -0,0 +1,146 @@
1
+ import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Input, Output, QueryList, ViewChildren } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'pdm-input-otp',
5
+ templateUrl: './input-otp.component.html',
6
+ changeDetection: ChangeDetectionStrategy.OnPush
7
+ })
8
+ export class PdmInputOtpComponent {
9
+ @Input() length = 6;
10
+ @Input() groupSize = 3;
11
+ @Input() disabled = false;
12
+ @Input() invalid = false;
13
+ @Input() className = '';
14
+
15
+ @Output() valueChange = new EventEmitter<string>();
16
+ @Output() completed = new EventEmitter<string>();
17
+
18
+ @ViewChildren('otpInput') private readonly inputs?: QueryList<ElementRef<HTMLInputElement>>;
19
+
20
+ values: string[] = Array.from({ length: this.length }, () => '');
21
+
22
+ ngOnChanges(): void {
23
+ if (this.values.length !== this.length) {
24
+ this.values = Array.from({ length: this.length }, (_, index) => this.values[index] ?? '');
25
+ }
26
+ }
27
+
28
+ trackByIndex(index: number): number {
29
+ return index;
30
+ }
31
+
32
+ onInput(index: number, event: Event): void {
33
+ const input = event.target as HTMLInputElement;
34
+ const char = (input.value || '').replace(/\D+/g, '').slice(-1);
35
+
36
+ this.values[index] = char;
37
+ input.value = char;
38
+ this.emit();
39
+
40
+ if (char) {
41
+ this.focusInput(index + 1, true);
42
+ }
43
+ }
44
+
45
+ onKeyDown(index: number, event: KeyboardEvent): void {
46
+ if (event.key === 'Backspace' && !this.values[index]) {
47
+ this.focusInput(index - 1);
48
+ return;
49
+ }
50
+
51
+ if (event.key === 'ArrowLeft') {
52
+ event.preventDefault();
53
+ this.focusInput(index - 1);
54
+ return;
55
+ }
56
+
57
+ if (event.key === 'ArrowRight') {
58
+ event.preventDefault();
59
+ this.focusInput(index + 1);
60
+ }
61
+ }
62
+
63
+ onPaste(event: ClipboardEvent): void {
64
+ event.preventDefault();
65
+
66
+ const pastedText = (event.clipboardData?.getData('text') ?? '').replace(/\D+/g, '').slice(0, this.length);
67
+
68
+ if (!pastedText) {
69
+ return;
70
+ }
71
+
72
+ this.values = Array.from({ length: this.length }, (_, index) => pastedText[index] ?? '');
73
+ this.emit();
74
+
75
+ const nextIndex = Math.min(pastedText.length, this.length - 1);
76
+ this.focusInput(nextIndex);
77
+ }
78
+
79
+ getInputClasses(index: number): string {
80
+ const classes = [
81
+ 'h-9 w-9 appearance-none border bg-background text-center text-sm font-normal text-foreground outline-none transition focus:outline-none focus-visible:outline-none',
82
+ 'shadow-[0_1px_2px_0_rgba(0,0,0,0.1)]',
83
+ 'focus:border-input focus:ring-1 focus:ring-primary/30',
84
+ 'disabled:cursor-not-allowed disabled:opacity-50',
85
+ ];
86
+
87
+ if (this.invalid) {
88
+ classes.push('border-destructive focus:border-destructive focus:ring-destructive');
89
+ } else {
90
+ classes.push('border-input');
91
+ }
92
+
93
+ if (this.isGroupStart(index)) {
94
+ classes.push('rounded-l-md border-l');
95
+ } else {
96
+ classes.push('border-l-0');
97
+ }
98
+
99
+ if (this.isGroupEnd(index)) {
100
+ classes.push('rounded-r-md');
101
+ }
102
+
103
+ return classes.join(' ');
104
+ }
105
+
106
+ shouldShowSeparator(index: number): boolean {
107
+ return this.groupSize > 0 && (index + 1) % this.groupSize === 0 && index < this.length - 1;
108
+ }
109
+
110
+ private isGroupStart(index: number): boolean {
111
+ return this.groupSize <= 0 || index % this.groupSize === 0;
112
+ }
113
+
114
+ private isGroupEnd(index: number): boolean {
115
+ if (this.groupSize <= 0) {
116
+ return index === this.length - 1;
117
+ }
118
+ return (index + 1) % this.groupSize === 0 || index === this.length - 1;
119
+ }
120
+
121
+ private emit(): void {
122
+ const value = this.values.join('');
123
+ this.valueChange.emit(value);
124
+
125
+ if (value.length === this.length && !this.values.includes('')) {
126
+ this.completed.emit(value);
127
+ }
128
+ }
129
+
130
+ private focusInput(index: number, deferred = false): void {
131
+ if (deferred) {
132
+ requestAnimationFrame(() => this.focusInput(index, false));
133
+ return;
134
+ }
135
+
136
+ if (!this.inputs || index < 0 || index >= this.length) {
137
+ return;
138
+ }
139
+
140
+ const input = this.inputs.get(index)?.nativeElement;
141
+ if (input) {
142
+ input.focus();
143
+ input.select();
144
+ }
145
+ }
146
+ }
@@ -0,0 +1,66 @@
1
+ <div [ngClass]="['grid w-full gap-3', className]">
2
+ <label *ngIf="label" [attr.for]="id" class="text-sm font-medium leading-5 text-[hsl(var(--foreground))]">{{ label }}</label>
3
+ <div class="relative">
4
+ <input
5
+ [id]="id"
6
+ [type]="inputType"
7
+ [value]="value"
8
+ [placeholder]="placeholder"
9
+ [disabled]="disabled"
10
+ [readonly]="readonly"
11
+ [required]="required"
12
+ [attr.aria-invalid]="invalid"
13
+ [ngClass]="[
14
+ 'flex h-9 w-full rounded-[8px] border bg-[hsl(var(--background))] px-3 py-1 pr-10 text-base leading-6 text-[hsl(var(--foreground))] shadow-[0_1px_2px_rgba(0,0,0,0.1)] outline-none transition-[border-color,box-shadow] placeholder:text-[hsl(var(--muted-foreground))] focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50',
15
+ invalid
16
+ ? 'border-[hsl(var(--destructive))] focus:border-[hsl(var(--destructive))] focus:shadow-[0_0_0_3px_hsl(var(--destructive)/0.2)]'
17
+ : 'border-[hsl(var(--input))] focus:border-[hsl(var(--ring))] focus:shadow-[0_0_0_3px_hsl(var(--ring)/0.5)]',
18
+ inputClassName
19
+ ]"
20
+ (input)="onInput($event)"
21
+ (blur)="onBlur($event)"
22
+ />
23
+ <button
24
+ type="button"
25
+ class="absolute right-2 top-1/2 inline-flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded border-0 bg-transparent p-0 text-[hsl(var(--muted-foreground))] outline-none transition-colors hover:text-[hsl(var(--foreground))] focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
26
+ [disabled]="disabled"
27
+ [attr.aria-label]="showPassword ? 'Hide password' : 'Show password'"
28
+ (click)="toggleVisibility()"
29
+ >
30
+ <svg
31
+ *ngIf="!showPassword"
32
+ aria-hidden="true"
33
+ xmlns="http://www.w3.org/2000/svg"
34
+ viewBox="0 0 24 24"
35
+ fill="none"
36
+ stroke="currentColor"
37
+ stroke-width="2"
38
+ stroke-linecap="round"
39
+ stroke-linejoin="round"
40
+ class="h-4 w-4"
41
+ >
42
+ <path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"></path>
43
+ <circle cx="12" cy="12" r="3"></circle>
44
+ </svg>
45
+ <svg
46
+ *ngIf="showPassword"
47
+ aria-hidden="true"
48
+ xmlns="http://www.w3.org/2000/svg"
49
+ viewBox="0 0 24 24"
50
+ fill="none"
51
+ stroke="currentColor"
52
+ stroke-width="2"
53
+ stroke-linecap="round"
54
+ stroke-linejoin="round"
55
+ class="h-4 w-4"
56
+ >
57
+ <path d="M3 3l18 18"></path>
58
+ <path d="M10.58 10.58a2 2 0 1 0 2.83 2.83"></path>
59
+ <path d="M9.88 5.09A10.94 10.94 0 0 1 12 4.91c5.05 0 9.27 3.11 10.6 7.09a1 1 0 0 1 0 .64 11.9 11.9 0 0 1-1.84 3.2"></path>
60
+ <path d="M6.61 6.61A11.81 11.81 0 0 0 1.4 12a1 1 0 0 0 0 .64 11.83 11.83 0 0 0 8.79 7.54"></path>
61
+ </svg>
62
+ </button>
63
+ </div>
64
+ <p *ngIf="!invalid && helperText" class="text-sm leading-5 text-[hsl(var(--muted-foreground))]">{{ helperText }}</p>
65
+ <p *ngIf="invalid && errorText" class="text-sm leading-5 text-[hsl(var(--destructive))]">{{ errorText }}</p>
66
+ </div>
@@ -0,0 +1,46 @@
1
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'pdm-input-password',
5
+ templateUrl: './input-password.component.html',
6
+ changeDetection: ChangeDetectionStrategy.OnPush
7
+ })
8
+ export class PdmInputPasswordComponent {
9
+ @Input() id = '';
10
+ @Input() value = '';
11
+ @Input() placeholder = '';
12
+ @Input() disabled = false;
13
+ @Input() readonly = false;
14
+ @Input() required = false;
15
+ @Input() invalid = false;
16
+ @Input() className = '';
17
+ @Input() inputClassName = '';
18
+ @Input() label = '';
19
+ @Input() helperText = '';
20
+ @Input() errorText = '';
21
+
22
+ @Output() valueChange = new EventEmitter<string>();
23
+ @Output() blurred = new EventEmitter<FocusEvent>();
24
+
25
+ showPassword = false;
26
+
27
+ get inputType(): 'text' | 'password' {
28
+ return this.showPassword ? 'text' : 'password';
29
+ }
30
+
31
+ onInput(event: Event): void {
32
+ this.valueChange.emit((event.target as HTMLInputElement).value);
33
+ }
34
+
35
+ onBlur(event: FocusEvent): void {
36
+ this.blurred.emit(event);
37
+ }
38
+
39
+ toggleVisibility(): void {
40
+ if (this.disabled) {
41
+ return;
42
+ }
43
+
44
+ this.showPassword = !this.showPassword;
45
+ }
46
+ }
@@ -0,0 +1,10 @@
1
+ <div
2
+ [ngClass]="[
3
+ 'relative flex w-full select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors',
4
+ selected ? 'bg-[hsl(var(--accent))] text-[hsl(var(--accent-foreground))]' : 'text-[hsl(var(--foreground))]',
5
+ disabled ? 'pointer-events-none opacity-50' : 'hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]',
6
+ className
7
+ ]"
8
+ >
9
+ <ng-content></ng-content>
10
+ </div>
@@ -0,0 +1,12 @@
1
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'pdm-item',
5
+ templateUrl: './item.component.html',
6
+ changeDetection: ChangeDetectionStrategy.OnPush
7
+ })
8
+ export class PdmItemComponent {
9
+ @Input() className = '';
10
+ @Input() disabled = false;
11
+ @Input() selected = false;
12
+ }
@@ -0,0 +1,3 @@
1
+ <kbd [ngClass]="['inline-flex h-6 min-w-[24px] items-center justify-center rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--muted))] px-1.5 font-mono text-xs font-medium text-[hsl(var(--muted-foreground))]', className]">
2
+ <ng-content></ng-content>
3
+ </kbd>
@@ -0,0 +1,10 @@
1
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'pdm-kbd',
5
+ templateUrl: './kbd.component.html',
6
+ changeDetection: ChangeDetectionStrategy.OnPush
7
+ })
8
+ export class PdmKbdComponent {
9
+ @Input() className = '';
10
+ }
@@ -0,0 +1,7 @@
1
+ <label
2
+ [attr.for]="forId"
3
+ [ngClass]="['text-sm font-medium leading-5 text-[hsl(var(--foreground))] peer-disabled:cursor-not-allowed peer-disabled:opacity-70', className]"
4
+ >
5
+ <ng-content></ng-content>
6
+ <span *ngIf="required" class="ml-1 text-[hsl(var(--destructive))]">*</span>
7
+ </label>
@@ -0,0 +1,12 @@
1
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'pdm-label',
5
+ templateUrl: './label.component.html',
6
+ changeDetection: ChangeDetectionStrategy.OnPush
7
+ })
8
+ export class PdmLabelComponent {
9
+ @Input() forId = '';
10
+ @Input() required = false;
11
+ @Input() className = '';
12
+ }
@@ -0,0 +1,16 @@
1
+ <nav role="menubar" [ngClass]="['inline-flex h-9 items-center gap-0.5 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--background))] p-1 shadow-[0_1px_2px_rgba(0,0,0,0.1)]', className]">
2
+ <div *ngFor="let menu of menus; let i = index" class="relative">
3
+ <button type="button" class="inline-flex h-7 items-center rounded-sm px-3 text-sm leading-5 text-[hsl(var(--foreground))] hover:bg-[hsl(var(--accent))]" (click)="toggle(i)">{{ menu.label }}</button>
4
+ <div *ngIf="openIndex === i" class="absolute left-0 top-full z-50 mt-1 min-w-[12rem] rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--popover))] p-1 text-[hsl(var(--popover-foreground))] shadow-[0_4px_6px_rgba(0,0,0,0.09)]">
5
+ <button
6
+ *ngFor="let item of menu.items"
7
+ type="button"
8
+ [disabled]="item.disabled"
9
+ class="relative flex w-full cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm leading-5 outline-none hover:bg-[hsl(var(--accent))] disabled:pointer-events-none disabled:opacity-50"
10
+ (click)="select(item.value)"
11
+ >
12
+ {{ item.label }}
13
+ </button>
14
+ </div>
15
+ </div>
16
+ </nav>