pdm-ui-kit 0.1.4 → 0.1.5

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 (376) hide show
  1. package/package.json +20 -13
  2. package/dist/corelusa-pdm-ui-kit/README.md +0 -79
  3. package/dist/corelusa-pdm-ui-kit/esm2020/corelusa-pdm-ui-kit.mjs +0 -5
  4. package/dist/corelusa-pdm-ui-kit/esm2020/lib/components/field/field.component.mjs +0 -52
  5. package/dist/corelusa-pdm-ui-kit/esm2020/lib/components/input/input.component.mjs +0 -65
  6. package/dist/corelusa-pdm-ui-kit/esm2020/lib/components/input-group/input-group.component.mjs +0 -54
  7. package/dist/corelusa-pdm-ui-kit/esm2020/lib/components/input-password/input-password.component.mjs +0 -72
  8. package/dist/corelusa-pdm-ui-kit/fesm2015/corelusa-pdm-ui-kit.mjs +0 -2959
  9. package/dist/corelusa-pdm-ui-kit/fesm2015/corelusa-pdm-ui-kit.mjs.map +0 -1
  10. package/dist/corelusa-pdm-ui-kit/fesm2020/corelusa-pdm-ui-kit.mjs +0 -2954
  11. package/dist/corelusa-pdm-ui-kit/fesm2020/corelusa-pdm-ui-kit.mjs.map +0 -1
  12. package/dist/corelusa-pdm-ui-kit/index.d.ts +0 -5
  13. package/dist/corelusa-pdm-ui-kit/lib/components/field/field.component.d.ts +0 -18
  14. package/dist/corelusa-pdm-ui-kit/lib/components/input-group/input-group.component.d.ts +0 -19
  15. package/dist/corelusa-pdm-ui-kit/package.json +0 -47
  16. package/dist/pdm-ui-kit/README.md +0 -128
  17. package/dist/pdm-ui-kit/esm2020/lib/components/accordion/accordion.component.mjs +0 -42
  18. package/dist/pdm-ui-kit/esm2020/lib/components/alert/alert.component.mjs +0 -35
  19. package/dist/pdm-ui-kit/esm2020/lib/components/alert-dialog/alert-dialog.component.mjs +0 -69
  20. package/dist/pdm-ui-kit/esm2020/lib/components/aspect-ratio/aspect-ratio.component.mjs +0 -31
  21. package/dist/pdm-ui-kit/esm2020/lib/components/avatar/avatar.component.mjs +0 -46
  22. package/dist/pdm-ui-kit/esm2020/lib/components/badge/badge.component.mjs +0 -23
  23. package/dist/pdm-ui-kit/esm2020/lib/components/breadcrumb/breadcrumb.component.mjs +0 -29
  24. package/dist/pdm-ui-kit/esm2020/lib/components/button/button.component.mjs +0 -82
  25. package/dist/pdm-ui-kit/esm2020/lib/components/button-group/button-group.component.mjs +0 -23
  26. package/dist/pdm-ui-kit/esm2020/lib/components/calendar/calendar.component.mjs +0 -71
  27. package/dist/pdm-ui-kit/esm2020/lib/components/card/card.component.mjs +0 -65
  28. package/dist/pdm-ui-kit/esm2020/lib/components/carousel/carousel.component.mjs +0 -97
  29. package/dist/pdm-ui-kit/esm2020/lib/components/chart/chart.component.mjs +0 -174
  30. package/dist/pdm-ui-kit/esm2020/lib/components/checkbox/checkbox.component.mjs +0 -47
  31. package/dist/pdm-ui-kit/esm2020/lib/components/collapsible/collapsible.component.mjs +0 -43
  32. package/dist/pdm-ui-kit/esm2020/lib/components/combobox/combobox.component.mjs +0 -51
  33. package/dist/pdm-ui-kit/esm2020/lib/components/command/command.component.mjs +0 -75
  34. package/dist/pdm-ui-kit/esm2020/lib/components/context-menu/context-menu.component.mjs +0 -78
  35. package/dist/pdm-ui-kit/esm2020/lib/components/data-table/data-table.component.mjs +0 -89
  36. package/dist/pdm-ui-kit/esm2020/lib/components/date-picker/date-picker.component.mjs +0 -63
  37. package/dist/pdm-ui-kit/esm2020/lib/components/dialog/dialog.component.mjs +0 -90
  38. package/dist/pdm-ui-kit/esm2020/lib/components/drawer/drawer.component.mjs +0 -72
  39. package/dist/pdm-ui-kit/esm2020/lib/components/dropdown-menu/dropdown-menu.component.mjs +0 -120
  40. package/dist/pdm-ui-kit/esm2020/lib/components/empty/empty.component.mjs +0 -58
  41. package/dist/pdm-ui-kit/esm2020/lib/components/hover-card/hover-card.component.mjs +0 -44
  42. package/dist/pdm-ui-kit/esm2020/lib/components/icon/icon.component.mjs +0 -94
  43. package/dist/pdm-ui-kit/esm2020/lib/components/input-otp/input-otp.component.mjs +0 -140
  44. package/dist/pdm-ui-kit/esm2020/lib/components/item/item.component.mjs +0 -23
  45. package/dist/pdm-ui-kit/esm2020/lib/components/kbd/kbd.component.mjs +0 -17
  46. package/dist/pdm-ui-kit/esm2020/lib/components/label/label.component.mjs +0 -23
  47. package/dist/pdm-ui-kit/esm2020/lib/components/menubar/menubar.component.mjs +0 -31
  48. package/dist/pdm-ui-kit/esm2020/lib/components/native-select/native-select.component.mjs +0 -42
  49. package/dist/pdm-ui-kit/esm2020/lib/components/navigation-menu/navigation-menu.component.mjs +0 -20
  50. package/dist/pdm-ui-kit/esm2020/lib/components/pagination/pagination.component.mjs +0 -47
  51. package/dist/pdm-ui-kit/esm2020/lib/components/popover/popover.component.mjs +0 -58
  52. package/dist/pdm-ui-kit/esm2020/lib/components/progress/progress.component.mjs +0 -33
  53. package/dist/pdm-ui-kit/esm2020/lib/components/radio-group/radio-group.component.mjs +0 -38
  54. package/dist/pdm-ui-kit/esm2020/lib/components/scroll-area/scroll-area.component.mjs +0 -20
  55. package/dist/pdm-ui-kit/esm2020/lib/components/select/select.component.mjs +0 -38
  56. package/dist/pdm-ui-kit/esm2020/lib/components/separator/separator.component.mjs +0 -26
  57. package/dist/pdm-ui-kit/esm2020/lib/components/sheet/sheet.component.mjs +0 -39
  58. package/dist/pdm-ui-kit/esm2020/lib/components/sidebar/sidebar.component.mjs +0 -20
  59. package/dist/pdm-ui-kit/esm2020/lib/components/skeleton/skeleton.component.mjs +0 -17
  60. package/dist/pdm-ui-kit/esm2020/lib/components/slider/slider.component.mjs +0 -46
  61. package/dist/pdm-ui-kit/esm2020/lib/components/sonner/sonner.component.mjs +0 -39
  62. package/dist/pdm-ui-kit/esm2020/lib/components/spinner/spinner.component.mjs +0 -20
  63. package/dist/pdm-ui-kit/esm2020/lib/components/switch/switch.component.mjs +0 -35
  64. package/dist/pdm-ui-kit/esm2020/lib/components/table/table.component.mjs +0 -17
  65. package/dist/pdm-ui-kit/esm2020/lib/components/tabs/tabs.component.mjs +0 -31
  66. package/dist/pdm-ui-kit/esm2020/lib/components/textarea/textarea.component.mjs +0 -59
  67. package/dist/pdm-ui-kit/esm2020/lib/components/toggle/toggle.component.mjs +0 -41
  68. package/dist/pdm-ui-kit/esm2020/lib/components/toggle-group/toggle-group.component.mjs +0 -31
  69. package/dist/pdm-ui-kit/esm2020/lib/components/tooltip/tooltip.component.mjs +0 -33
  70. package/dist/pdm-ui-kit/esm2020/lib/pdm-ui-kit.module.mjs +0 -245
  71. package/dist/pdm-ui-kit/esm2020/public-api.mjs +0 -59
  72. package/dist/pdm-ui-kit/lib/components/accordion/accordion.component.d.ts +0 -19
  73. package/dist/pdm-ui-kit/lib/components/alert/alert.component.d.ts +0 -13
  74. package/dist/pdm-ui-kit/lib/components/alert-dialog/alert-dialog.component.d.ts +0 -21
  75. package/dist/pdm-ui-kit/lib/components/aspect-ratio/aspect-ratio.component.d.ts +0 -10
  76. package/dist/pdm-ui-kit/lib/components/avatar/avatar.component.d.ts +0 -20
  77. package/dist/pdm-ui-kit/lib/components/badge/badge.component.d.ts +0 -9
  78. package/dist/pdm-ui-kit/lib/components/breadcrumb/breadcrumb.component.d.ts +0 -10
  79. package/dist/pdm-ui-kit/lib/components/button/button.component.d.ts +0 -24
  80. package/dist/pdm-ui-kit/lib/components/button-group/button-group.component.d.ts +0 -9
  81. package/dist/pdm-ui-kit/lib/components/calendar/calendar.component.d.ts +0 -28
  82. package/dist/pdm-ui-kit/lib/components/card/card.component.d.ts +0 -24
  83. package/dist/pdm-ui-kit/lib/components/carousel/carousel.component.d.ts +0 -25
  84. package/dist/pdm-ui-kit/lib/components/chart/chart.component.d.ts +0 -41
  85. package/dist/pdm-ui-kit/lib/components/checkbox/checkbox.component.d.ts +0 -17
  86. package/dist/pdm-ui-kit/lib/components/collapsible/collapsible.component.d.ts +0 -14
  87. package/dist/pdm-ui-kit/lib/components/combobox/combobox.component.d.ts +0 -18
  88. package/dist/pdm-ui-kit/lib/components/command/command.component.d.ts +0 -33
  89. package/dist/pdm-ui-kit/lib/components/context-menu/context-menu.component.d.ts +0 -26
  90. package/dist/pdm-ui-kit/lib/components/data-table/data-table.component.d.ts +0 -36
  91. package/dist/pdm-ui-kit/lib/components/date-picker/date-picker.component.d.ts +0 -23
  92. package/dist/pdm-ui-kit/lib/components/dialog/dialog.component.d.ts +0 -30
  93. package/dist/pdm-ui-kit/lib/components/drawer/drawer.component.d.ts +0 -27
  94. package/dist/pdm-ui-kit/lib/components/dropdown-menu/dropdown-menu.component.d.ts +0 -34
  95. package/dist/pdm-ui-kit/lib/components/empty/empty.component.d.ts +0 -19
  96. package/dist/pdm-ui-kit/lib/components/hover-card/hover-card.component.d.ts +0 -14
  97. package/dist/pdm-ui-kit/lib/components/icon/icon.component.d.ts +0 -18
  98. package/dist/pdm-ui-kit/lib/components/input/input.component.d.ts +0 -23
  99. package/dist/pdm-ui-kit/lib/components/input-otp/input-otp.component.d.ts +0 -26
  100. package/dist/pdm-ui-kit/lib/components/input-password/input-password.component.d.ts +0 -25
  101. package/dist/pdm-ui-kit/lib/components/item/item.component.d.ts +0 -8
  102. package/dist/pdm-ui-kit/lib/components/kbd/kbd.component.d.ts +0 -6
  103. package/dist/pdm-ui-kit/lib/components/label/label.component.d.ts +0 -8
  104. package/dist/pdm-ui-kit/lib/components/menubar/menubar.component.d.ts +0 -17
  105. package/dist/pdm-ui-kit/lib/components/native-select/native-select.component.d.ts +0 -20
  106. package/dist/pdm-ui-kit/lib/components/navigation-menu/navigation-menu.component.d.ts +0 -12
  107. package/dist/pdm-ui-kit/lib/components/pagination/pagination.component.d.ts +0 -13
  108. package/dist/pdm-ui-kit/lib/components/popover/popover.component.d.ts +0 -17
  109. package/dist/pdm-ui-kit/lib/components/progress/progress.component.d.ts +0 -10
  110. package/dist/pdm-ui-kit/lib/components/radio-group/radio-group.component.d.ts +0 -19
  111. package/dist/pdm-ui-kit/lib/components/scroll-area/scroll-area.component.d.ts +0 -7
  112. package/dist/pdm-ui-kit/lib/components/select/select.component.d.ts +0 -19
  113. package/dist/pdm-ui-kit/lib/components/separator/separator.component.d.ts +0 -9
  114. package/dist/pdm-ui-kit/lib/components/sheet/sheet.component.d.ts +0 -13
  115. package/dist/pdm-ui-kit/lib/components/sidebar/sidebar.component.d.ts +0 -7
  116. package/dist/pdm-ui-kit/lib/components/skeleton/skeleton.component.d.ts +0 -6
  117. package/dist/pdm-ui-kit/lib/components/slider/slider.component.d.ts +0 -15
  118. package/dist/pdm-ui-kit/lib/components/sonner/sonner.component.d.ts +0 -13
  119. package/dist/pdm-ui-kit/lib/components/spinner/spinner.component.d.ts +0 -7
  120. package/dist/pdm-ui-kit/lib/components/switch/switch.component.d.ts +0 -13
  121. package/dist/pdm-ui-kit/lib/components/table/table.component.d.ts +0 -6
  122. package/dist/pdm-ui-kit/lib/components/tabs/tabs.component.d.ts +0 -16
  123. package/dist/pdm-ui-kit/lib/components/textarea/textarea.component.d.ts +0 -21
  124. package/dist/pdm-ui-kit/lib/components/toggle/toggle.component.d.ts +0 -14
  125. package/dist/pdm-ui-kit/lib/components/toggle-group/toggle-group.component.d.ts +0 -16
  126. package/dist/pdm-ui-kit/lib/components/tooltip/tooltip.component.d.ts +0 -10
  127. package/dist/pdm-ui-kit/lib/pdm-ui-kit.module.d.ts +0 -64
  128. package/dist/pdm-ui-kit/package.json +0 -44
  129. package/dist/pdm-ui-kit/public-api.d.ts +0 -58
  130. package/ng-package.json +0 -8
  131. package/pdm-ui-kit-0.1.1.tgz +0 -0
  132. package/pdm-ui-kit-0.1.2.tgz +0 -0
  133. package/pdm-ui-kit-0.1.3.tgz +0 -0
  134. package/pdm-ui-kit-0.1.4.tgz +0 -0
  135. package/src/lib/components/accordion/accordion.component.html +0 -34
  136. package/src/lib/components/accordion/accordion.component.ts +0 -38
  137. package/src/lib/components/alert/alert.component.html +0 -52
  138. package/src/lib/components/alert/alert.component.ts +0 -25
  139. package/src/lib/components/alert-dialog/alert-dialog.component.html +0 -41
  140. package/src/lib/components/alert-dialog/alert-dialog.component.ts +0 -45
  141. package/src/lib/components/aspect-ratio/aspect-ratio.component.html +0 -11
  142. package/src/lib/components/aspect-ratio/aspect-ratio.component.ts +0 -18
  143. package/src/lib/components/avatar/avatar.component.html +0 -21
  144. package/src/lib/components/avatar/avatar.component.ts +0 -32
  145. package/src/lib/components/badge/badge.component.html +0 -28
  146. package/src/lib/components/badge/badge.component.ts +0 -23
  147. package/src/lib/components/breadcrumb/breadcrumb.component.html +0 -39
  148. package/src/lib/components/breadcrumb/breadcrumb.component.ts +0 -26
  149. package/src/lib/components/button/button.component.html +0 -15
  150. package/src/lib/components/button/button.component.ts +0 -84
  151. package/src/lib/components/button-group/button-group.component.html +0 -39
  152. package/src/lib/components/button-group/button-group.component.ts +0 -15
  153. package/src/lib/components/calendar/calendar.component.html +0 -73
  154. package/src/lib/components/calendar/calendar.component.ts +0 -78
  155. package/src/lib/components/card/card.component.html +0 -77
  156. package/src/lib/components/card/card.component.ts +0 -39
  157. package/src/lib/components/carousel/carousel.component.html +0 -86
  158. package/src/lib/components/carousel/carousel.component.ts +0 -100
  159. package/src/lib/components/chart/chart.component.html +0 -143
  160. package/src/lib/components/chart/chart.component.ts +0 -147
  161. package/src/lib/components/checkbox/checkbox.component.html +0 -38
  162. package/src/lib/components/checkbox/checkbox.component.ts +0 -32
  163. package/src/lib/components/collapsible/collapsible.component.html +0 -26
  164. package/src/lib/components/collapsible/collapsible.component.ts +0 -29
  165. package/src/lib/components/combobox/combobox.component.html +0 -42
  166. package/src/lib/components/combobox/combobox.component.ts +0 -32
  167. package/src/lib/components/command/command.component.html +0 -55
  168. package/src/lib/components/command/command.component.ts +0 -67
  169. package/src/lib/components/context-menu/context-menu.component.html +0 -47
  170. package/src/lib/components/context-menu/context-menu.component.ts +0 -67
  171. package/src/lib/components/data-table/data-table.component.html +0 -63
  172. package/src/lib/components/data-table/data-table.component.ts +0 -78
  173. package/src/lib/components/date-picker/date-picker.component.html +0 -38
  174. package/src/lib/components/date-picker/date-picker.component.ts +0 -38
  175. package/src/lib/components/dialog/dialog.component.html +0 -78
  176. package/src/lib/components/dialog/dialog.component.ts +0 -55
  177. package/src/lib/components/drawer/drawer.component.html +0 -56
  178. package/src/lib/components/drawer/drawer.component.ts +0 -43
  179. package/src/lib/components/dropdown-menu/dropdown-menu.component.html +0 -56
  180. package/src/lib/components/dropdown-menu/dropdown-menu.component.ts +0 -126
  181. package/src/lib/components/empty/empty.component.html +0 -29
  182. package/src/lib/components/empty/empty.component.ts +0 -35
  183. package/src/lib/components/field/field.component.html +0 -26
  184. package/src/lib/components/field/field.component.ts +0 -42
  185. package/src/lib/components/hover-card/hover-card.component.html +0 -24
  186. package/src/lib/components/hover-card/hover-card.component.ts +0 -36
  187. package/src/lib/components/icon/icon.component.html +0 -286
  188. package/src/lib/components/icon/icon.component.ts +0 -133
  189. package/src/lib/components/input/input.component.html +0 -25
  190. package/src/lib/components/input/input.component.ts +0 -33
  191. package/src/lib/components/input-group/input-group.component.html +0 -59
  192. package/src/lib/components/input-group/input-group.component.ts +0 -32
  193. package/src/lib/components/input-otp/input-otp.component.html +0 -25
  194. package/src/lib/components/input-otp/input-otp.component.ts +0 -146
  195. package/src/lib/components/input-password/input-password.component.html +0 -66
  196. package/src/lib/components/input-password/input-password.component.ts +0 -46
  197. package/src/lib/components/item/item.component.html +0 -10
  198. package/src/lib/components/item/item.component.ts +0 -12
  199. package/src/lib/components/kbd/kbd.component.html +0 -3
  200. package/src/lib/components/kbd/kbd.component.ts +0 -10
  201. package/src/lib/components/label/label.component.html +0 -7
  202. package/src/lib/components/label/label.component.ts +0 -12
  203. package/src/lib/components/menubar/menubar.component.html +0 -16
  204. package/src/lib/components/menubar/menubar.component.ts +0 -29
  205. package/src/lib/components/native-select/native-select.component.html +0 -17
  206. package/src/lib/components/native-select/native-select.component.ts +0 -28
  207. package/src/lib/components/navigation-menu/navigation-menu.component.html +0 -15
  208. package/src/lib/components/navigation-menu/navigation-menu.component.ts +0 -17
  209. package/src/lib/components/pagination/pagination.component.html +0 -30
  210. package/src/lib/components/pagination/pagination.component.ts +0 -37
  211. package/src/lib/components/popover/popover.component.html +0 -6
  212. package/src/lib/components/popover/popover.component.ts +0 -40
  213. package/src/lib/components/progress/progress.component.html +0 -9
  214. package/src/lib/components/progress/progress.component.ts +0 -20
  215. package/src/lib/components/radio-group/radio-group.component.html +0 -25
  216. package/src/lib/components/radio-group/radio-group.component.ts +0 -30
  217. package/src/lib/components/scroll-area/scroll-area.component.html +0 -5
  218. package/src/lib/components/scroll-area/scroll-area.component.ts +0 -11
  219. package/src/lib/components/select/select.component.html +0 -14
  220. package/src/lib/components/select/select.component.ts +0 -27
  221. package/src/lib/components/separator/separator.component.html +0 -5
  222. package/src/lib/components/separator/separator.component.ts +0 -16
  223. package/src/lib/components/sheet/sheet.component.html +0 -10
  224. package/src/lib/components/sheet/sheet.component.ts +0 -28
  225. package/src/lib/components/sidebar/sidebar.component.html +0 -3
  226. package/src/lib/components/sidebar/sidebar.component.ts +0 -11
  227. package/src/lib/components/skeleton/skeleton.component.html +0 -1
  228. package/src/lib/components/skeleton/skeleton.component.ts +0 -10
  229. package/src/lib/components/slider/slider.component.html +0 -15
  230. package/src/lib/components/slider/slider.component.ts +0 -31
  231. package/src/lib/components/sonner/sonner.component.html +0 -10
  232. package/src/lib/components/sonner/sonner.component.ts +0 -25
  233. package/src/lib/components/spinner/spinner.component.html +0 -6
  234. package/src/lib/components/spinner/spinner.component.ts +0 -11
  235. package/src/lib/components/switch/switch.component.html +0 -14
  236. package/src/lib/components/switch/switch.component.ts +0 -20
  237. package/src/lib/components/table/table.component.html +0 -5
  238. package/src/lib/components/table/table.component.ts +0 -10
  239. package/src/lib/components/tabs/tabs.component.html +0 -21
  240. package/src/lib/components/tabs/tabs.component.ts +0 -26
  241. package/src/lib/components/textarea/textarea.component.html +0 -21
  242. package/src/lib/components/textarea/textarea.component.ts +0 -28
  243. package/src/lib/components/toggle/toggle.component.html +0 -16
  244. package/src/lib/components/toggle/toggle.component.ts +0 -29
  245. package/src/lib/components/toggle-group/toggle-group.component.html +0 -17
  246. package/src/lib/components/toggle-group/toggle-group.component.ts +0 -26
  247. package/src/lib/components/tooltip/tooltip.component.html +0 -6
  248. package/src/lib/components/tooltip/tooltip.component.ts +0 -20
  249. package/src/lib/pdm-ui-kit.module.ts +0 -126
  250. package/src/public-api.ts +0 -58
  251. package/tsconfig.json +0 -30
  252. package/tsconfig.lib.json +0 -17
  253. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/accordion/accordion.component.mjs +0 -0
  254. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/alert/alert.component.mjs +0 -0
  255. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/alert-dialog/alert-dialog.component.mjs +0 -0
  256. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/aspect-ratio/aspect-ratio.component.mjs +0 -0
  257. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/avatar/avatar.component.mjs +0 -0
  258. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/badge/badge.component.mjs +0 -0
  259. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/breadcrumb/breadcrumb.component.mjs +0 -0
  260. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/button/button.component.mjs +0 -0
  261. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/button-group/button-group.component.mjs +0 -0
  262. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/calendar/calendar.component.mjs +0 -0
  263. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/card/card.component.mjs +0 -0
  264. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/carousel/carousel.component.mjs +0 -0
  265. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/chart/chart.component.mjs +0 -0
  266. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/checkbox/checkbox.component.mjs +0 -0
  267. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/collapsible/collapsible.component.mjs +0 -0
  268. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/combobox/combobox.component.mjs +0 -0
  269. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/command/command.component.mjs +0 -0
  270. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/context-menu/context-menu.component.mjs +0 -0
  271. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/data-table/data-table.component.mjs +0 -0
  272. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/date-picker/date-picker.component.mjs +0 -0
  273. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/dialog/dialog.component.mjs +0 -0
  274. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/drawer/drawer.component.mjs +0 -0
  275. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/dropdown-menu/dropdown-menu.component.mjs +0 -0
  276. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/empty/empty.component.mjs +0 -0
  277. /package/{dist/pdm-ui-kit/esm2020 → esm2020}/lib/components/field/field.component.mjs +0 -0
  278. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/hover-card/hover-card.component.mjs +0 -0
  279. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/icon/icon.component.mjs +0 -0
  280. /package/{dist/pdm-ui-kit/esm2020 → esm2020}/lib/components/input/input.component.mjs +0 -0
  281. /package/{dist/pdm-ui-kit/esm2020 → esm2020}/lib/components/input-group/input-group.component.mjs +0 -0
  282. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/input-otp/input-otp.component.mjs +0 -0
  283. /package/{dist/pdm-ui-kit/esm2020 → esm2020}/lib/components/input-password/input-password.component.mjs +0 -0
  284. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/item/item.component.mjs +0 -0
  285. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/kbd/kbd.component.mjs +0 -0
  286. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/label/label.component.mjs +0 -0
  287. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/menubar/menubar.component.mjs +0 -0
  288. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/native-select/native-select.component.mjs +0 -0
  289. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/navigation-menu/navigation-menu.component.mjs +0 -0
  290. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/pagination/pagination.component.mjs +0 -0
  291. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/popover/popover.component.mjs +0 -0
  292. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/progress/progress.component.mjs +0 -0
  293. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/radio-group/radio-group.component.mjs +0 -0
  294. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/scroll-area/scroll-area.component.mjs +0 -0
  295. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/select/select.component.mjs +0 -0
  296. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/separator/separator.component.mjs +0 -0
  297. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/sheet/sheet.component.mjs +0 -0
  298. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/sidebar/sidebar.component.mjs +0 -0
  299. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/skeleton/skeleton.component.mjs +0 -0
  300. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/slider/slider.component.mjs +0 -0
  301. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/sonner/sonner.component.mjs +0 -0
  302. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/spinner/spinner.component.mjs +0 -0
  303. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/switch/switch.component.mjs +0 -0
  304. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/table/table.component.mjs +0 -0
  305. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/tabs/tabs.component.mjs +0 -0
  306. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/textarea/textarea.component.mjs +0 -0
  307. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/toggle/toggle.component.mjs +0 -0
  308. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/toggle-group/toggle-group.component.mjs +0 -0
  309. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/tooltip/tooltip.component.mjs +0 -0
  310. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/pdm-ui-kit.module.mjs +0 -0
  311. /package/{dist/pdm-ui-kit/esm2020 → esm2020}/pdm-ui-kit.mjs +0 -0
  312. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/public-api.mjs +0 -0
  313. /package/{dist/pdm-ui-kit/fesm2015 → fesm2015}/pdm-ui-kit.mjs +0 -0
  314. /package/{dist/pdm-ui-kit/fesm2015 → fesm2015}/pdm-ui-kit.mjs.map +0 -0
  315. /package/{dist/pdm-ui-kit/fesm2020 → fesm2020}/pdm-ui-kit.mjs +0 -0
  316. /package/{dist/pdm-ui-kit/fesm2020 → fesm2020}/pdm-ui-kit.mjs.map +0 -0
  317. /package/{dist/pdm-ui-kit/index.d.ts → index.d.ts} +0 -0
  318. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/accordion/accordion.component.d.ts +0 -0
  319. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/alert/alert.component.d.ts +0 -0
  320. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/alert-dialog/alert-dialog.component.d.ts +0 -0
  321. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/aspect-ratio/aspect-ratio.component.d.ts +0 -0
  322. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/avatar/avatar.component.d.ts +0 -0
  323. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/badge/badge.component.d.ts +0 -0
  324. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/breadcrumb/breadcrumb.component.d.ts +0 -0
  325. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/button/button.component.d.ts +0 -0
  326. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/button-group/button-group.component.d.ts +0 -0
  327. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/calendar/calendar.component.d.ts +0 -0
  328. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/card/card.component.d.ts +0 -0
  329. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/carousel/carousel.component.d.ts +0 -0
  330. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/chart/chart.component.d.ts +0 -0
  331. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/checkbox/checkbox.component.d.ts +0 -0
  332. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/collapsible/collapsible.component.d.ts +0 -0
  333. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/combobox/combobox.component.d.ts +0 -0
  334. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/command/command.component.d.ts +0 -0
  335. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/context-menu/context-menu.component.d.ts +0 -0
  336. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/data-table/data-table.component.d.ts +0 -0
  337. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/date-picker/date-picker.component.d.ts +0 -0
  338. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/dialog/dialog.component.d.ts +0 -0
  339. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/drawer/drawer.component.d.ts +0 -0
  340. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/dropdown-menu/dropdown-menu.component.d.ts +0 -0
  341. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/empty/empty.component.d.ts +0 -0
  342. /package/{dist/pdm-ui-kit/lib → lib}/components/field/field.component.d.ts +0 -0
  343. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/hover-card/hover-card.component.d.ts +0 -0
  344. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/icon/icon.component.d.ts +0 -0
  345. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/input/input.component.d.ts +0 -0
  346. /package/{dist/pdm-ui-kit/lib → lib}/components/input-group/input-group.component.d.ts +0 -0
  347. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/input-otp/input-otp.component.d.ts +0 -0
  348. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/input-password/input-password.component.d.ts +0 -0
  349. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/item/item.component.d.ts +0 -0
  350. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/kbd/kbd.component.d.ts +0 -0
  351. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/label/label.component.d.ts +0 -0
  352. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/menubar/menubar.component.d.ts +0 -0
  353. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/native-select/native-select.component.d.ts +0 -0
  354. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/navigation-menu/navigation-menu.component.d.ts +0 -0
  355. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/pagination/pagination.component.d.ts +0 -0
  356. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/popover/popover.component.d.ts +0 -0
  357. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/progress/progress.component.d.ts +0 -0
  358. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/radio-group/radio-group.component.d.ts +0 -0
  359. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/scroll-area/scroll-area.component.d.ts +0 -0
  360. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/select/select.component.d.ts +0 -0
  361. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/separator/separator.component.d.ts +0 -0
  362. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/sheet/sheet.component.d.ts +0 -0
  363. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/sidebar/sidebar.component.d.ts +0 -0
  364. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/skeleton/skeleton.component.d.ts +0 -0
  365. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/slider/slider.component.d.ts +0 -0
  366. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/sonner/sonner.component.d.ts +0 -0
  367. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/spinner/spinner.component.d.ts +0 -0
  368. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/switch/switch.component.d.ts +0 -0
  369. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/table/table.component.d.ts +0 -0
  370. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/tabs/tabs.component.d.ts +0 -0
  371. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/textarea/textarea.component.d.ts +0 -0
  372. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/toggle/toggle.component.d.ts +0 -0
  373. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/toggle-group/toggle-group.component.d.ts +0 -0
  374. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/tooltip/tooltip.component.d.ts +0 -0
  375. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/pdm-ui-kit.module.d.ts +0 -0
  376. /package/{dist/corelusa-pdm-ui-kit/public-api.d.ts → public-api.d.ts} +0 -0
@@ -1,26 +0,0 @@
1
- <div [ngClass]="['flex w-[350px] flex-col gap-2', className]">
2
- <button
3
- type="button"
4
- [disabled]="disabled"
5
- class="flex w-full items-center justify-between px-4 text-left"
6
- [attr.aria-expanded]="open"
7
- (click)="toggle()"
8
- >
9
- <span class="text-[14px] font-semibold leading-5 text-[#0a0a0a]">{{ title }}</span>
10
- <span class="inline-flex h-8 w-8 items-center justify-center text-[#0a0a0a]">
11
- <svg viewBox="0 0 24 24" class="h-4 w-4" fill="none" xmlns="http://www.w3.org/2000/svg">
12
- <path d="M7 15L12 20L17 15" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
13
- <path d="M17 9L12 4L7 9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
14
- </svg>
15
- </span>
16
- </button>
17
-
18
- <div class="flex w-full flex-col gap-2">
19
- <div
20
- *ngFor="let item of visibleItems"
21
- class="w-full rounded-[8px] border border-[#e5e5e5] bg-white px-4 py-2"
22
- >
23
- <span class="font-mono text-[14px] leading-5 text-[#0a0a0a]">{{ item }}</span>
24
- </div>
25
- </div>
26
- </div>
@@ -1,29 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'pdm-collapsible',
5
- templateUrl: './collapsible.component.html',
6
- changeDetection: ChangeDetectionStrategy.OnPush
7
- })
8
- export class PdmCollapsibleComponent {
9
- @Input() title = '@peduarte starred 3 repositories';
10
- @Input() open = false;
11
- @Input() disabled = false;
12
- @Input() items: string[] = ['@radix-ui/primitives', '@radix-ui/colors', '@stitches/react'];
13
- @Input() className = '';
14
-
15
- @Output() openChange = new EventEmitter<boolean>();
16
-
17
- get visibleItems(): string[] {
18
- if (!this.items.length) {
19
- return [];
20
- }
21
- return this.open ? this.items : this.items.slice(0, 1);
22
- }
23
-
24
- toggle(): void {
25
- if (!this.disabled) {
26
- this.openChange.emit(!this.open);
27
- }
28
- }
29
- }
@@ -1,42 +0,0 @@
1
- <div [ngClass]="['flex flex-col gap-1', className]" [style.width.px]="width">
2
- <button
3
- type="button"
4
- class="flex h-9 w-full items-center gap-2 rounded-[8px] border border-[#e5e5e5] bg-white px-3 py-2 shadow-[0_1px_2px_rgba(0,0,0,0.1)]"
5
- [attr.aria-expanded]="open"
6
- (click)="toggle()"
7
- >
8
- <span class="min-w-0 flex-1 truncate text-left text-[14px] font-medium leading-5 text-[#0a0a0a]">{{ selectedLabel }}</span>
9
- <svg viewBox="0 0 24 24" class="h-4 w-4 text-[#0a0a0a]" fill="none" xmlns="http://www.w3.org/2000/svg">
10
- <path d="M7 15L12 20L17 15" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
11
- <path d="M17 9L12 4L7 9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
12
- </svg>
13
- </button>
14
-
15
- <div
16
- *ngIf="open"
17
- class="w-full rounded-[8px] border border-[#e5e5e5] bg-white shadow-[0_2px_4px_-2px_rgba(0,0,0,0.1),0_4px_6px_-1px_rgba(0,0,0,0.1)]"
18
- >
19
- <div class="flex items-center gap-2 border-b border-[#e5e5e5] px-3">
20
- <svg viewBox="0 0 24 24" class="h-4 w-4 text-[#737373]" fill="none" xmlns="http://www.w3.org/2000/svg">
21
- <circle cx="11" cy="11" r="7" stroke="currentColor" stroke-width="1.5"></circle>
22
- <path d="M20 20L16.6 16.6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path>
23
- </svg>
24
- <div class="h-9 flex-1 py-2 text-[14px] leading-5 text-[#737373]">{{ searchPlaceholder }}</div>
25
- </div>
26
-
27
- <div class="p-1">
28
- <button
29
- *ngFor="let option of options"
30
- type="button"
31
- class="flex w-full items-center gap-2 rounded-[4px] px-2 py-[6px] text-left"
32
- [ngClass]="option === value ? 'bg-[#f5f5f5]' : ''"
33
- (click)="select(option)"
34
- >
35
- <span [ngClass]="['min-w-0 flex-1 truncate text-[14px] leading-5', option === value ? 'text-[#171717]' : 'text-[#0a0a0a]']">{{ option }}</span>
36
- <svg *ngIf="option === value" viewBox="0 0 24 24" class="h-4 w-4 text-[#0a0a0a]" fill="none" xmlns="http://www.w3.org/2000/svg">
37
- <path d="M5 12.5L9.2 16.7L19 7" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path>
38
- </svg>
39
- </button>
40
- </div>
41
- </div>
42
- </div>
@@ -1,32 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'pdm-combobox',
5
- templateUrl: './combobox.component.html',
6
- changeDetection: ChangeDetectionStrategy.OnPush
7
- })
8
- export class PdmComboboxComponent {
9
- @Input() open = false;
10
- @Input() placeholder = 'Select framework...';
11
- @Input() searchPlaceholder = 'Search framework';
12
- @Input() className = '';
13
- @Input() options: string[] = ['Next.js', 'SvelteKit', 'Nuxt.js', 'Remix', 'Astro'];
14
- @Input() value = '';
15
- @Input() width = 200;
16
-
17
- @Output() openChange = new EventEmitter<boolean>();
18
- @Output() valueChange = new EventEmitter<string>();
19
-
20
- get selectedLabel(): string {
21
- return this.value || this.placeholder;
22
- }
23
-
24
- toggle(): void {
25
- this.openChange.emit(!this.open);
26
- }
27
-
28
- select(option: string): void {
29
- this.valueChange.emit(option);
30
- this.openChange.emit(false);
31
- }
32
- }
@@ -1,55 +0,0 @@
1
- <div [ngClass]="['w-full', className]">
2
- <div *ngIf="!open" class="flex items-center gap-1">
3
- <span class="text-[14px] font-medium leading-5 text-[#737373]">{{ hintLabel }}</span>
4
- <button
5
- type="button"
6
- class="inline-flex h-5 items-center gap-0.5 rounded-[6px] border border-[#e5e5e5] bg-[#f5f5f5] px-1.5"
7
- (click)="toggleOpen()"
8
- >
9
- <pdm-icon name="command" [size]="12" className="text-[#737373]" [decorative]="true"></pdm-icon>
10
- <span class="text-[12px] leading-4 text-[#737373]">{{ hintKey }}</span>
11
- </button>
12
- </div>
13
-
14
- <section
15
- *ngIf="open"
16
- class="flex w-full flex-col overflow-hidden rounded-[10px] border border-[#e5e5e5] bg-white shadow-[0_2px_4px_-2px_rgba(0,0,0,0.1),0_4px_6px_-1px_rgba(0,0,0,0.1)]"
17
- >
18
- <div class="flex items-center gap-2 border-b border-[#e5e5e5] px-3">
19
- <pdm-icon name="search" [size]="16" className="text-[#737373]" [decorative]="true"></pdm-icon>
20
- <input
21
- type="text"
22
- [placeholder]="placeholder"
23
- [value]="query"
24
- (input)="onQueryChange($event)"
25
- class="h-10 w-full bg-transparent py-3 text-[14px] leading-5 text-[#0a0a0a] outline-none placeholder:text-[#737373]"
26
- />
27
- </div>
28
-
29
- <div class="max-h-[300px] overflow-y-auto p-1">
30
- <ng-container *ngFor="let group of groupedItems; let groupIndex = index">
31
- <div *ngIf="group.name" class="px-2 py-[6px] text-[12px] leading-4 text-[#737373]">{{ group.name }}</div>
32
- <button
33
- *ngFor="let item of group.items"
34
- type="button"
35
- [disabled]="item.disabled"
36
- class="flex w-full items-center gap-2 rounded-[6px] px-2 py-[6px] text-left"
37
- [ngClass]="[
38
- item.disabled ? 'opacity-50' : '',
39
- item.label === 'Calendar' ? 'bg-[#f5f5f5]' : ''
40
- ]"
41
- (click)="select(item.value)"
42
- >
43
- <span class="inline-flex h-4 w-4 items-center justify-center text-[#0a0a0a]">
44
- <pdm-icon *ngIf="item.icon" [name]="item.icon" [size]="16" [decorative]="true"></pdm-icon>
45
- </span>
46
- <span class="min-w-0 flex-1 text-[14px] leading-5 text-[#0a0a0a]">{{ item.label }}</span>
47
- <span *ngIf="item.shortcut" class="text-[12px] leading-4 text-[#737373]">{{ item.shortcut }}</span>
48
- </button>
49
- <div *ngIf="groupIndex === 0 && groupedItems.length > 1" class="my-1 border-t border-[#e5e5e5]"></div>
50
- </ng-container>
51
-
52
- <p *ngIf="filteredItems.length === 0" class="py-6 text-center text-[14px] text-[#737373]">{{ emptyMessage }}</p>
53
- </div>
54
- </section>
55
- </div>
@@ -1,67 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
2
- import type { PdmIconName } from '../icon/icon.component';
3
-
4
- export interface PdmCommandItem {
5
- label: string;
6
- value: string;
7
- group?: string;
8
- icon?: PdmIconName;
9
- shortcut?: string;
10
- disabled?: boolean;
11
- }
12
-
13
- @Component({
14
- selector: 'pdm-command',
15
- templateUrl: './command.component.html',
16
- changeDetection: ChangeDetectionStrategy.OnPush
17
- })
18
- export class PdmCommandComponent {
19
- @Input() open = true;
20
- @Input() hintLabel = 'Press';
21
- @Input() hintKey = 'J';
22
- @Input() placeholder = 'Type a command or search...';
23
- @Input() emptyMessage = 'No results found.';
24
- @Input() items: PdmCommandItem[] = [
25
- { label: 'Calendar', value: 'calendar', group: 'Suggestions', icon: 'calendar' },
26
- { label: 'Search emoji', value: 'emoji', group: 'Suggestions', icon: 'smile' },
27
- { label: 'Calculator', value: 'calculator', group: 'Suggestions', icon: 'calculator', disabled: true },
28
- { label: 'Profile', value: 'profile', group: 'Settings', icon: 'user', shortcut: '⌘P' },
29
- { label: 'Billing', value: 'billing', group: 'Settings', icon: 'credit-card', shortcut: '⌘B' },
30
- { label: 'Settings', value: 'settings', group: 'Settings', icon: 'settings', shortcut: '⌘S' }
31
- ];
32
- @Input() className = '';
33
-
34
- @Output() itemSelect = new EventEmitter<string>();
35
- @Output() openChange = new EventEmitter<boolean>();
36
-
37
- query = '';
38
-
39
- get filteredItems(): PdmCommandItem[] {
40
- const q = this.query.toLowerCase().trim();
41
- if (!q) return this.items;
42
- return this.items.filter((item) => item.label.toLowerCase().includes(q));
43
- }
44
-
45
- get groupedItems(): { name: string; items: PdmCommandItem[] }[] {
46
- const map = new Map<string, PdmCommandItem[]>();
47
- for (const item of this.filteredItems) {
48
- const key = item.group || '';
49
- const arr = map.get(key) ?? [];
50
- arr.push(item);
51
- map.set(key, arr);
52
- }
53
- return Array.from(map.entries()).map(([name, items]) => ({ name, items }));
54
- }
55
-
56
- onQueryChange(event: Event): void {
57
- this.query = (event.target as HTMLInputElement).value;
58
- }
59
-
60
- toggleOpen(): void {
61
- this.openChange.emit(!this.open);
62
- }
63
-
64
- select(value: string): void {
65
- this.itemSelect.emit(value);
66
- }
67
- }
@@ -1,47 +0,0 @@
1
- <div class="relative" [ngClass]="className" (contextmenu)="onContextMenu($event)">
2
- <div
3
- class="flex items-center justify-center rounded-[8px] border border-dashed border-[#e5e5e5]"
4
- [style.width.px]="width"
5
- [style.height.px]="height"
6
- >
7
- <span class="text-[14px] font-medium leading-5 text-[#0a0a0a]">{{ triggerLabel }}</span>
8
- </div>
9
-
10
- <div
11
- *ngIf="open"
12
- class="fixed z-50 w-[208px] rounded-[8px] border border-[#e5e5e5] bg-white shadow-[0_2px_4px_-2px_rgba(0,0,0,0.1),0_4px_6px_-1px_rgba(0,0,0,0.1)]"
13
- [style.left.px]="x + 4"
14
- [style.top.px]="y + 2"
15
- >
16
- <div class="px-1 pt-1">
17
- <ng-container *ngFor="let item of items">
18
- <div *ngIf="item.type === 'separator'" class="my-1 border-t border-[#e5e5e5]"></div>
19
-
20
- <div *ngIf="item.type === 'label'" class="h-8 px-8 py-[6px] text-[14px] font-semibold leading-5 text-[#0a0a0a]">
21
- {{ item.label }}
22
- </div>
23
-
24
- <button
25
- *ngIf="!item.type || item.type === 'item'"
26
- type="button"
27
- [disabled]="item.disabled"
28
- class="flex h-8 w-full items-center rounded-[6px] py-[6px] pr-2 text-left disabled:opacity-50"
29
- [ngClass]="item.inset ? 'pl-8' : 'px-2'"
30
- (click)="select(item)"
31
- >
32
- <span class="mr-2 inline-flex w-4 shrink-0 items-center justify-center text-[#0a0a0a]">
33
- <svg *ngIf="item.checked" viewBox="0 0 24 24" class="h-3.5 w-3.5" fill="none" xmlns="http://www.w3.org/2000/svg">
34
- <path d="M5 12.5L9.2 16.7L19 7" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path>
35
- </svg>
36
- <span *ngIf="item.selectedDot" class="h-2 w-2 rounded-full bg-[#0a0a0a]"></span>
37
- </span>
38
- <span class="min-w-0 flex-1 truncate text-[14px] leading-5 text-[#0a0a0a]">{{ item.label }}</span>
39
- <span *ngIf="item.shortcut" class="text-[12px] leading-4 text-[#737373]">{{ item.shortcut }}</span>
40
- <svg *ngIf="item.showChevron" viewBox="0 0 24 24" class="h-3.5 w-3.5 text-[#0a0a0a]" fill="none" xmlns="http://www.w3.org/2000/svg">
41
- <path d="M9 6L15 12L9 18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
42
- </svg>
43
- </button>
44
- </ng-container>
45
- </div>
46
- </div>
47
- </div>
@@ -1,67 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostListener, Input, Output } from '@angular/core';
2
- import { PdmMenuItem } from '../dropdown-menu/dropdown-menu.component';
3
-
4
- export interface PdmContextMenuItem extends PdmMenuItem {
5
- checked?: boolean;
6
- selectedDot?: boolean;
7
- }
8
-
9
- @Component({
10
- selector: 'pdm-context-menu',
11
- templateUrl: './context-menu.component.html',
12
- changeDetection: ChangeDetectionStrategy.OnPush
13
- })
14
- export class PdmContextMenuComponent {
15
- @Input() items: PdmContextMenuItem[] = [
16
- { type: 'item', label: 'Back', value: 'back', inset: true, shortcut: '⌘[' },
17
- { type: 'item', label: 'Forward', value: 'forward', inset: true, shortcut: '⌘]', disabled: true },
18
- { type: 'item', label: 'Reload', value: 'reload', inset: true, shortcut: '⌘R' },
19
- { type: 'item', label: 'More Tools', value: 'more-tools', inset: true, showChevron: true },
20
- { type: 'separator' },
21
- { type: 'item', label: 'Show Bookmarks Bar', value: 'show-bookmarks', checked: true },
22
- { type: 'item', label: 'Show Full URLs', value: 'show-urls', inset: true },
23
- { type: 'separator' },
24
- { type: 'label', label: 'People' },
25
- { type: 'separator' },
26
- { type: 'item', label: 'Pedro Duarte', value: 'pedro', selectedDot: true },
27
- { type: 'item', label: 'Colm Tuite', value: 'colm', inset: true }
28
- ];
29
- @Input() className = '';
30
- @Input() triggerLabel = 'Right click here';
31
- @Input() width = 300;
32
- @Input() height = 150;
33
- @Output() itemSelect = new EventEmitter<string>();
34
-
35
- open = false;
36
- x = 0;
37
- y = 0;
38
-
39
- constructor(private readonly elementRef: ElementRef<HTMLElement>) {}
40
-
41
- onContextMenu(event: MouseEvent): void {
42
- event.preventDefault();
43
- this.x = event.clientX;
44
- this.y = event.clientY;
45
- this.open = true;
46
- }
47
-
48
- select(item: PdmContextMenuItem): void {
49
- if (item.disabled || item.type === 'separator' || item.type === 'label' || !item.value) return;
50
- this.itemSelect.emit(item.value);
51
- this.open = false;
52
- }
53
-
54
- @HostListener('document:keydown.escape')
55
- onEsc(): void {
56
- this.open = false;
57
- }
58
-
59
- @HostListener('document:click', ['$event'])
60
- onDocumentClick(event: MouseEvent): void {
61
- if (!this.open) return;
62
- const target = event.target as Node | null;
63
- if (target && !this.elementRef.nativeElement.contains(target)) {
64
- this.open = false;
65
- }
66
- }
67
- }
@@ -1,63 +0,0 @@
1
- <section [ngClass]="['flex w-[590px] flex-col items-end', className]">
2
- <div class="flex w-full items-center justify-between py-4">
3
- <input
4
- type="text"
5
- [placeholder]="filterPlaceholder"
6
- [value]="query"
7
- (input)="onQueryInput($event)"
8
- class="h-9 w-[384px] rounded-[8px] border border-[#e5e5e5] bg-white px-3 py-1 text-[16px] leading-6 text-[#0a0a0a] shadow-[0_1px_2px_rgba(0,0,0,0.1)] placeholder:text-[#737373] outline-none"
9
- />
10
-
11
- <button type="button" class="inline-flex h-9 items-center gap-2 rounded-[8px] border border-[#e5e5e5] bg-white px-3 py-2 shadow-[0_1px_2px_rgba(0,0,0,0.1)]">
12
- <span class="text-[14px] font-medium leading-5 text-[#0a0a0a]">{{ columnsLabel }}</span>
13
- <svg viewBox="0 0 24 24" class="h-4 w-4 text-[#0a0a0a]" fill="none" xmlns="http://www.w3.org/2000/svg">
14
- <path d="M7 10L12 15L17 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
15
- </svg>
16
- </button>
17
- </div>
18
-
19
- <div class="w-full overflow-hidden rounded-[8px] border border-[#e5e5e5] bg-white">
20
- <table class="w-full border-collapse text-[14px] leading-5 text-[#0a0a0a]">
21
- <thead>
22
- <tr class="border-b border-[#e5e5e5]">
23
- <th class="w-[32px] px-2 text-left font-medium"><input type="checkbox" class="h-4 w-4 rounded-[4px] border border-[#e5e5e5]" /></th>
24
- <th class="w-[120px] px-2 py-2 text-left font-medium">Status</th>
25
- <th class="w-[270px] px-2 py-2 text-left font-medium">
26
- <button type="button" class="inline-flex items-center gap-1 rounded-[6px] px-3 py-2">
27
- <span>Email</span>
28
- <svg viewBox="0 0 24 24" class="h-4 w-4" fill="none" xmlns="http://www.w3.org/2000/svg">
29
- <path d="M8 6L4 10L8 14M16 18L20 14L16 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
30
- </svg>
31
- </button>
32
- </th>
33
- <th class="w-[100px] px-2 py-2 text-right font-medium">Amount</th>
34
- <th class="px-2 py-2"></th>
35
- </tr>
36
- </thead>
37
-
38
- <tbody>
39
- <tr *ngFor="let row of pagedRows" class="border-b border-[#e5e5e5] last:border-b-0">
40
- <td class="px-2 py-2"><input type="checkbox" [checked]="row.selected" (change)="onToggleRow(row, $event)" class="h-4 w-4 rounded-[4px] border border-[#e5e5e5]" /></td>
41
- <td class="px-2 py-2">{{ row.status }}</td>
42
- <td class="px-2 py-2">{{ row.email }}</td>
43
- <td class="px-2 py-2 text-right">{{ row.amount }}</td>
44
- <td class="px-2 py-2">
45
- <button type="button" class="inline-flex h-8 w-8 items-center justify-center" (click)="onAction(row)">
46
- <svg viewBox="0 0 24 24" class="h-4 w-4" fill="none" xmlns="http://www.w3.org/2000/svg">
47
- <circle cx="6" cy="12" r="1.5" fill="currentColor"></circle>
48
- <circle cx="12" cy="12" r="1.5" fill="currentColor"></circle>
49
- <circle cx="18" cy="12" r="1.5" fill="currentColor"></circle>
50
- </svg>
51
- </button>
52
- </td>
53
- </tr>
54
- </tbody>
55
- </table>
56
- </div>
57
-
58
- <div class="flex w-full items-center gap-2 py-4">
59
- <p class="flex-1 pr-2 text-[14px] leading-5 text-[#737373]">{{ selectedCount }} of {{ rows.length }} row(s) selected.</p>
60
- <button type="button" class="h-9 rounded-[10px] border border-[#e5e5e5] bg-white px-4 text-[14px] font-medium text-[#0a0a0a] shadow-[0_1px_2px_rgba(0,0,0,0.1)] disabled:opacity-50" [disabled]="page <= 1" (click)="previous()">Previous</button>
61
- <button type="button" class="h-9 rounded-[10px] border border-[#e5e5e5] bg-white px-4 text-[14px] font-medium text-[#0a0a0a] shadow-[0_1px_2px_rgba(0,0,0,0.1)] disabled:opacity-50" [disabled]="page >= totalPages" (click)="next()">Next</button>
62
- </div>
63
- </section>
@@ -1,78 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
2
-
3
- export interface PdmDataTableRow {
4
- id: string;
5
- status: string;
6
- email: string;
7
- amount: string;
8
- selected?: boolean;
9
- }
10
-
11
- @Component({
12
- selector: 'pdm-data-table',
13
- templateUrl: './data-table.component.html',
14
- changeDetection: ChangeDetectionStrategy.OnPush
15
- })
16
- export class PdmDataTableComponent {
17
- @Input() className = '';
18
- @Input() filterPlaceholder = 'Filter emails...';
19
- @Input() columnsLabel = 'Columns';
20
- @Input() rows: PdmDataTableRow[] = [
21
- { id: '1', status: 'Success', email: 'ken99@yahoo.com', amount: '$316.00' },
22
- { id: '2', status: 'Success', email: 'abe45@gmail.com', amount: '$242.00' },
23
- { id: '3', status: 'Processing', email: 'monserrat44@gmail.com', amount: '$837.00' },
24
- { id: '4', status: 'Success', email: 'silas22@gmail.com', amount: '$874.00' },
25
- { id: '5', status: 'Failed', email: 'carmella@hotmail.com', amount: '$721.00' }
26
- ];
27
-
28
- @Input() page = 1;
29
- @Input() pageSize = 5;
30
- @Input() query = '';
31
-
32
- @Output() queryChange = new EventEmitter<string>();
33
- @Output() rowAction = new EventEmitter<string>();
34
- @Output() pageChange = new EventEmitter<number>();
35
- @Output() selectionChange = new EventEmitter<{ id: string; selected: boolean }>();
36
-
37
- get filteredRows(): PdmDataTableRow[] {
38
- const q = this.query.trim().toLowerCase();
39
- if (!q) return this.rows;
40
- return this.rows.filter((r) => r.email.toLowerCase().includes(q));
41
- }
42
-
43
- get pagedRows(): PdmDataTableRow[] {
44
- const start = (this.page - 1) * this.pageSize;
45
- return this.filteredRows.slice(start, start + this.pageSize);
46
- }
47
-
48
- get totalPages(): number {
49
- return Math.max(1, Math.ceil(this.filteredRows.length / this.pageSize));
50
- }
51
-
52
- get selectedCount(): number {
53
- return this.rows.filter((row) => row.selected).length;
54
- }
55
-
56
- onQueryInput(event: Event): void {
57
- const value = (event.target as HTMLInputElement).value;
58
- this.queryChange.emit(value);
59
- }
60
-
61
- onToggleRow(row: PdmDataTableRow, event: Event): void {
62
- this.selectionChange.emit({ id: row.id, selected: (event.target as HTMLInputElement).checked });
63
- }
64
-
65
- previous(): void {
66
- if (this.page <= 1) return;
67
- this.pageChange.emit(this.page - 1);
68
- }
69
-
70
- next(): void {
71
- if (this.page >= this.totalPages) return;
72
- this.pageChange.emit(this.page + 1);
73
- }
74
-
75
- onAction(row: PdmDataTableRow): void {
76
- this.rowAction.emit(row.id);
77
- }
78
- }
@@ -1,38 +0,0 @@
1
- <section [ngClass]="['flex flex-col gap-3', className]" class="w-[250px]">
2
- <label class="text-[14px] font-medium leading-5 text-[#0a0a0a]">{{ label }}</label>
3
-
4
- <div class="flex items-center gap-2" *ngIf="variant === 'date-time'">
5
- <button type="button" class="flex h-9 w-[150px] items-center justify-between rounded-[8px] border border-[#e5e5e5] bg-white px-3 py-1 shadow-[0_1px_2px_rgba(0,0,0,0.1)]" (click)="toggle()">
6
- <span class="truncate text-[12px] leading-4 text-[#0a0a0a]">{{ value }}</span>
7
- <svg viewBox="0 0 24 24" class="h-4 w-4 text-[#0a0a0a]" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 10L12 15L17 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>
8
- </button>
9
- <div class="flex h-9 w-[92px] items-center rounded-[8px] border border-[#e5e5e5] bg-white px-3 py-1 text-[12px] leading-4 text-[#0a0a0a] shadow-[0_1px_2px_rgba(0,0,0,0.1)]">{{ time }}</div>
10
- </div>
11
-
12
- <div *ngIf="variant !== 'date-time'" class="flex flex-col gap-2">
13
- <button type="button" class="flex h-9 w-[192px] items-center justify-between rounded-[8px] border border-[#e5e5e5] bg-white px-3 py-1 shadow-[0_1px_2px_rgba(0,0,0,0.1)]" (click)="toggle()">
14
- <span class="truncate text-[16px] leading-6 text-[#0a0a0a]">{{ variant === 'natural-language' ? naturalLanguageValue : value }}</span>
15
- <svg viewBox="0 0 24 24" class="h-4 w-4 text-[#0a0a0a]" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 10L12 15L17 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>
16
- </button>
17
-
18
- <p *ngIf="variant === 'natural-language'" class="max-w-[192px] text-[12px] leading-4 text-[#737373]">{{ naturalLanguageHint }}</p>
19
- </div>
20
-
21
- <div *ngIf="open" class="w-[250px] rounded-[10px] border border-[#e5e5e5] bg-white p-3 shadow-[0_1px_3px_rgba(0,0,0,0.1)]">
22
- <div class="mb-4 flex items-center justify-between">
23
- <button type="button" class="h-8 w-8 rounded-[6px] text-[#0a0a0a]">‹</button>
24
- <div class="flex items-center gap-1.5">
25
- <button type="button" class="inline-flex h-8 items-center gap-1 rounded-[6px] border border-[#e5e5e5] px-2 text-[14px] font-medium text-[#0a0a0a] shadow-[0_1px_2px_rgba(0,0,0,0.1)]">{{ monthLabel }} <span>˅</span></button>
26
- <button type="button" class="inline-flex h-8 items-center gap-1 rounded-[6px] border border-[#e5e5e5] px-2 text-[14px] font-medium text-[#0a0a0a] shadow-[0_1px_2px_rgba(0,0,0,0.1)]">{{ year }} <span>˅</span></button>
27
- </div>
28
- <button type="button" class="h-8 w-8 rounded-[6px] text-[#0a0a0a]">›</button>
29
- </div>
30
-
31
- <pdm-calendar [month]="month" [year]="year" [selectedDay]="selectedDay" mode="single"></pdm-calendar>
32
-
33
- <div *ngIf="variant === 'with-input' || variant === 'natural-language'" class="mt-3 flex gap-2">
34
- <button type="button" class="h-8 rounded-[8px] border border-[#e5e5e5] px-3 text-[12px] text-[#0a0a0a]" (click)="selectPreset('Today')">Today</button>
35
- <button type="button" class="h-8 rounded-[8px] border border-[#e5e5e5] px-3 text-[12px] text-[#0a0a0a]" (click)="selectPreset('Tomorrow')">Tomorrow</button>
36
- </div>
37
- </div>
38
- </section>
@@ -1,38 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
2
-
3
- export type PdmDatePickerVariant = 'default' | 'with-input' | 'date-time' | 'natural-language';
4
-
5
- @Component({
6
- selector: 'pdm-date-picker',
7
- templateUrl: './date-picker.component.html',
8
- changeDetection: ChangeDetectionStrategy.OnPush
9
- })
10
- export class PdmDatePickerComponent {
11
- @Input() variant: PdmDatePickerVariant = 'default';
12
- @Input() className = '';
13
- @Input() open = false;
14
-
15
- @Input() label = 'Date of Birth';
16
- @Input() value = 'Select a date';
17
- @Input() month = 6;
18
- @Input() year = 2025;
19
- @Input() selectedDay = 25;
20
- @Input() time = '10:30:00';
21
- @Input() naturalLanguageValue = 'In 2 days';
22
- @Input() naturalLanguageHint = 'Your post will be published on June 21, 2025.';
23
-
24
- @Output() openChange = new EventEmitter<boolean>();
25
- @Output() valueChange = new EventEmitter<string>();
26
-
27
- toggle(): void {
28
- this.openChange.emit(!this.open);
29
- }
30
-
31
- selectPreset(value: string): void {
32
- this.valueChange.emit(value);
33
- }
34
-
35
- get monthLabel(): string {
36
- return new Date(this.year, this.month - 1, 1).toLocaleString('en-US', { month: 'short' });
37
- }
38
- }