flowbite-angular 0.0.2 → 1.0.0-alpha.2

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 (393) hide show
  1. package/{esm2020 → esm2022}/flowbite-angular.mjs +2 -2
  2. package/esm2022/lib/common/flowbite.theme.init.mjs +318 -0
  3. package/esm2022/lib/common/index.mjs +3 -0
  4. package/esm2022/lib/common/type-definitions/colors/flowbite.colors.mjs +2 -0
  5. package/esm2022/lib/common/type-definitions/colors/flowbite.gradient-colors.mjs +2 -0
  6. package/esm2022/lib/common/type-definitions/colors/flowbite.gradient-duo-tone-colors.mjs +2 -0
  7. package/esm2022/lib/common/type-definitions/colors/index.mjs +2 -0
  8. package/esm2022/lib/common/type-definitions/flowbite.boolean.mjs +2 -0
  9. package/esm2022/lib/common/type-definitions/flowbite.class.mjs +2 -0
  10. package/esm2022/lib/common/type-definitions/flowbite.combination.mjs +5 -0
  11. package/esm2022/lib/common/type-definitions/flowbite.content-positions.mjs +2 -0
  12. package/esm2022/lib/common/type-definitions/flowbite.deep-partial.mjs +2 -0
  13. package/esm2022/lib/common/type-definitions/flowbite.heading-levels.mjs +2 -0
  14. package/esm2022/lib/common/type-definitions/flowbite.positions.mjs +2 -0
  15. package/esm2022/lib/common/type-definitions/flowbite.router-link-parameter.mjs +2 -0
  16. package/esm2022/lib/common/type-definitions/flowbite.sizes.mjs +2 -0
  17. package/esm2022/lib/common/type-definitions/flowbite.themes.mjs +2 -0
  18. package/esm2022/lib/common/type-definitions/index.mjs +2 -0
  19. package/esm2022/lib/components/accordion/accordion-content.component.mjs +46 -0
  20. package/esm2022/lib/components/accordion/accordion-content.theme.mjs +19 -0
  21. package/esm2022/lib/components/accordion/accordion-content.theme.service.mjs +17 -0
  22. package/esm2022/lib/components/accordion/accordion-panel.component.mjs +57 -0
  23. package/esm2022/lib/components/accordion/accordion-panel.theme.mjs +7 -0
  24. package/esm2022/lib/components/accordion/accordion-panel.theme.service.mjs +17 -0
  25. package/esm2022/lib/components/accordion/accordion-title.component.mjs +70 -0
  26. package/esm2022/lib/components/accordion/accordion-title.theme.mjs +26 -0
  27. package/esm2022/lib/components/accordion/accordion-title.theme.service.mjs +18 -0
  28. package/esm2022/lib/components/accordion/accordion.component.mjs +49 -0
  29. package/esm2022/lib/components/accordion/accordion.theme.mjs +19 -0
  30. package/esm2022/lib/components/accordion/accordion.theme.service.mjs +17 -0
  31. package/esm2022/lib/components/accordion/index.mjs +13 -0
  32. package/esm2022/lib/components/alert/alert.component.mjs +95 -0
  33. package/esm2022/lib/components/alert/alert.theme.mjs +34 -0
  34. package/esm2022/lib/components/alert/alert.theme.service.mjs +18 -0
  35. package/esm2022/lib/components/alert/index.mjs +4 -0
  36. package/esm2022/lib/components/badge/badge.component.mjs +47 -0
  37. package/esm2022/lib/components/badge/badge.theme.mjs +34 -0
  38. package/esm2022/lib/components/badge/badge.theme.service.mjs +19 -0
  39. package/esm2022/lib/components/badge/index.mjs +4 -0
  40. package/esm2022/lib/components/base-component.directive.mjs +34 -0
  41. package/esm2022/lib/components/breadcrumb/breadcrumb-item.component.mjs +57 -0
  42. package/esm2022/lib/components/breadcrumb/breadcrumb-item.theme.mjs +18 -0
  43. package/esm2022/lib/components/breadcrumb/breadcrumb-item.theme.service.mjs +18 -0
  44. package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +46 -0
  45. package/esm2022/lib/components/breadcrumb/breadcrumb.theme.mjs +7 -0
  46. package/esm2022/lib/components/breadcrumb/breadcrumb.theme.service.mjs +17 -0
  47. package/esm2022/lib/components/breadcrumb/index.mjs +7 -0
  48. package/esm2022/lib/components/button/button.component.mjs +81 -0
  49. package/esm2022/lib/components/button/button.theme.mjs +113 -0
  50. package/esm2022/lib/components/button/button.theme.service.mjs +24 -0
  51. package/esm2022/lib/components/button/index.mjs +4 -0
  52. package/esm2022/lib/components/dark-theme-toggle/dark-theme-toggle.component.mjs +76 -0
  53. package/esm2022/lib/components/dark-theme-toggle/dark-theme-toggle.theme.mjs +7 -0
  54. package/esm2022/lib/components/dark-theme-toggle/dark-theme-toggle.theme.service.mjs +17 -0
  55. package/esm2022/lib/components/dark-theme-toggle/index.mjs +4 -0
  56. package/esm2022/lib/components/dropdown/dropdown-divider.component.mjs +34 -0
  57. package/esm2022/lib/components/dropdown/dropdown-divider.theme.mjs +7 -0
  58. package/esm2022/lib/components/dropdown/dropdown-divider.theme.service.mjs +17 -0
  59. package/esm2022/lib/components/dropdown/dropdown-header.component.mjs +44 -0
  60. package/esm2022/lib/components/dropdown/dropdown-header.theme.mjs +10 -0
  61. package/esm2022/lib/components/dropdown/dropdown-header.theme.service.mjs +18 -0
  62. package/esm2022/lib/components/dropdown/dropdown-item.component.mjs +34 -0
  63. package/esm2022/lib/components/dropdown/dropdown-item.theme.mjs +6 -0
  64. package/esm2022/lib/components/dropdown/dropdown-item.theme.service.mjs +17 -0
  65. package/esm2022/lib/components/dropdown/dropdown.component.mjs +149 -0
  66. package/esm2022/lib/components/dropdown/dropdown.theme.mjs +32 -0
  67. package/esm2022/lib/components/dropdown/dropdown.theme.service.mjs +22 -0
  68. package/esm2022/lib/components/dropdown/index.mjs +13 -0
  69. package/esm2022/lib/components/form-field/directives/addon.directive.mjs +32 -0
  70. package/esm2022/lib/components/form-field/directives/addon.directive.theme.mjs +8 -0
  71. package/esm2022/lib/components/form-field/directives/addon.directive.theme.service.mjs +17 -0
  72. package/esm2022/lib/components/form-field/directives/base-input.directive.mjs +26 -0
  73. package/esm2022/lib/components/form-field/directives/helper.directive.mjs +34 -0
  74. package/esm2022/lib/components/form-field/directives/helper.directive.theme.mjs +12 -0
  75. package/esm2022/lib/components/form-field/directives/helper.directive.theme.service.mjs +17 -0
  76. package/esm2022/lib/components/form-field/directives/icon.directive.mjs +32 -0
  77. package/esm2022/lib/components/form-field/directives/icon.directive.theme.mjs +8 -0
  78. package/esm2022/lib/components/form-field/directives/icon.directive.theme.service.mjs +17 -0
  79. package/esm2022/lib/components/form-field/directives/index.mjs +17 -0
  80. package/esm2022/lib/components/form-field/directives/input.directive.mjs +41 -0
  81. package/esm2022/lib/components/form-field/directives/input.directive.theme.mjs +79 -0
  82. package/esm2022/lib/components/form-field/directives/input.directive.theme.service.mjs +32 -0
  83. package/esm2022/lib/components/form-field/directives/label.directive.mjs +41 -0
  84. package/esm2022/lib/components/form-field/directives/label.directive.theme.mjs +51 -0
  85. package/esm2022/lib/components/form-field/directives/label.directive.theme.service.mjs +23 -0
  86. package/esm2022/lib/components/form-field/form-field.component.mjs +40 -0
  87. package/esm2022/lib/components/form-field/form-field.theme.mjs +8 -0
  88. package/esm2022/lib/components/form-field/form-field.theme.service.mjs +17 -0
  89. package/esm2022/lib/components/form-field/index.mjs +5 -0
  90. package/esm2022/lib/components/icon/icon-registry.mjs +159 -0
  91. package/esm2022/lib/components/icon/icon.component.mjs +67 -0
  92. package/esm2022/lib/components/icon/index.mjs +4 -0
  93. package/esm2022/lib/components/icon/trusted-types.mjs +21 -0
  94. package/esm2022/lib/components/index.mjs +16 -0
  95. package/esm2022/lib/components/indicators/index.mjs +4 -0
  96. package/esm2022/lib/components/indicators/indicators.component.mjs +54 -0
  97. package/esm2022/lib/components/indicators/indicators.theme.mjs +68 -0
  98. package/esm2022/lib/components/indicators/indicators.theme.service.mjs +19 -0
  99. package/esm2022/lib/components/modal/index.mjs +13 -0
  100. package/esm2022/lib/components/modal/modal-body.component.mjs +34 -0
  101. package/esm2022/lib/components/modal/modal-body.theme.mjs +7 -0
  102. package/esm2022/lib/components/modal/modal-body.theme.service.mjs +17 -0
  103. package/esm2022/lib/components/modal/modal-footer.component.mjs +34 -0
  104. package/esm2022/lib/components/modal/modal-footer.theme.mjs +7 -0
  105. package/esm2022/lib/components/modal/modal-footer.theme.service.mjs +17 -0
  106. package/esm2022/lib/components/modal/modal-header.component.mjs +66 -0
  107. package/esm2022/lib/components/modal/modal-header.theme.mjs +13 -0
  108. package/esm2022/lib/components/modal/modal-header.theme.service.mjs +19 -0
  109. package/esm2022/lib/components/modal/modal.component.mjs +142 -0
  110. package/esm2022/lib/components/modal/modal.theme.mjs +33 -0
  111. package/esm2022/lib/components/modal/modal.theme.service.mjs +20 -0
  112. package/esm2022/lib/components/navbar/index.mjs +19 -0
  113. package/esm2022/lib/components/navbar/navbar-brand.component.mjs +34 -0
  114. package/esm2022/lib/components/navbar/navbar-brand.theme.mjs +7 -0
  115. package/esm2022/lib/components/navbar/navbar-brand.theme.service.mjs +17 -0
  116. package/esm2022/lib/components/navbar/navbar-content.component.mjs +45 -0
  117. package/esm2022/lib/components/navbar/navbar-content.theme.mjs +14 -0
  118. package/esm2022/lib/components/navbar/navbar-content.theme.service.mjs +18 -0
  119. package/esm2022/lib/components/navbar/navbar-icon-button.component.mjs +42 -0
  120. package/esm2022/lib/components/navbar/navbar-icon-button.theme.mjs +15 -0
  121. package/esm2022/lib/components/navbar/navbar-icon-button.theme.service.mjs +17 -0
  122. package/esm2022/lib/components/navbar/navbar-item.component.mjs +49 -0
  123. package/esm2022/lib/components/navbar/navbar-item.theme.mjs +11 -0
  124. package/esm2022/lib/components/navbar/navbar-item.theme.service.mjs +17 -0
  125. package/esm2022/lib/components/navbar/navbar-toggle.component.mjs +50 -0
  126. package/esm2022/lib/components/navbar/navbar-toggle.theme.mjs +7 -0
  127. package/esm2022/lib/components/navbar/navbar-toggle.theme.service.mjs +17 -0
  128. package/esm2022/lib/components/navbar/navbar.component.mjs +62 -0
  129. package/esm2022/lib/components/navbar/navbar.theme.mjs +23 -0
  130. package/esm2022/lib/components/navbar/navbar.theme.service.mjs +17 -0
  131. package/esm2022/lib/components/scroll-top/index.mjs +4 -0
  132. package/esm2022/lib/components/scroll-top/scroll-top.component.mjs +50 -0
  133. package/esm2022/lib/components/scroll-top/scroll-top.theme.mjs +27 -0
  134. package/esm2022/lib/components/scroll-top/scroll-top.theme.service.mjs +17 -0
  135. package/esm2022/lib/components/sidebar/index.mjs +19 -0
  136. package/esm2022/lib/components/sidebar/sidebar-item-group.component.mjs +81 -0
  137. package/esm2022/lib/components/sidebar/sidebar-item-group.theme.mjs +18 -0
  138. package/esm2022/lib/components/sidebar/sidebar-item-group.theme.service.mjs +18 -0
  139. package/esm2022/lib/components/sidebar/sidebar-item.component.mjs +77 -0
  140. package/esm2022/lib/components/sidebar/sidebar-item.theme.mjs +18 -0
  141. package/esm2022/lib/components/sidebar/sidebar-item.theme.service.mjs +18 -0
  142. package/esm2022/lib/components/sidebar/sidebar-menu.component.mjs +49 -0
  143. package/esm2022/lib/components/sidebar/sidebar-menu.theme.mjs +24 -0
  144. package/esm2022/lib/components/sidebar/sidebar-menu.theme.service.mjs +17 -0
  145. package/esm2022/lib/components/sidebar/sidebar-page-content.component.mjs +36 -0
  146. package/esm2022/lib/components/sidebar/sidebar-page-content.theme.mjs +12 -0
  147. package/esm2022/lib/components/sidebar/sidebar-page-content.theme.service.mjs +17 -0
  148. package/esm2022/lib/components/sidebar/sidebar-toggle.component.mjs +53 -0
  149. package/esm2022/lib/components/sidebar/sidebar-toggle.theme.mjs +18 -0
  150. package/esm2022/lib/components/sidebar/sidebar-toggle.theme.service.mjs +17 -0
  151. package/esm2022/lib/components/sidebar/sidebar.component.mjs +61 -0
  152. package/esm2022/lib/components/sidebar/sidebar.theme.mjs +11 -0
  153. package/esm2022/lib/components/sidebar/sidebar.theme.service.mjs +17 -0
  154. package/esm2022/lib/directives/flowbite-router-link-active.directive.mjs +51 -0
  155. package/esm2022/lib/directives/flowbite-router-link.directive.mjs +44 -0
  156. package/esm2022/lib/directives/index.mjs +3 -0
  157. package/esm2022/lib/pipes/index.mjs +2 -0
  158. package/esm2022/lib/pipes/sanitize-html/sanitize-html.pipe.mjs +32 -0
  159. package/esm2022/lib/services/flowbite.theme.service.mjs +16 -0
  160. package/{esm2020 → esm2022}/lib/services/index.mjs +2 -3
  161. package/esm2022/lib/utils/boolean.util.mjs +10 -0
  162. package/esm2022/lib/utils/directives/index.mjs +3 -0
  163. package/esm2022/lib/utils/directives/inputs/index.mjs +3 -0
  164. package/esm2022/lib/utils/directives/inputs/router-link-active.input.mjs +8 -0
  165. package/esm2022/lib/utils/directives/inputs/router-link.inputs.mjs +20 -0
  166. package/esm2022/lib/utils/directives/outputs/index.mjs +3 -0
  167. package/esm2022/lib/utils/directives/outputs/router-link-active.output.mjs +8 -0
  168. package/esm2022/lib/utils/directives/outputs/router-link.output.mjs +8 -0
  169. package/esm2022/lib/utils/icon.list.mjs +39 -0
  170. package/esm2022/lib/utils/id.generator.mjs +81 -0
  171. package/esm2022/lib/utils/index.mjs +9 -0
  172. package/esm2022/lib/utils/theme/clone-deep.mjs +18 -0
  173. package/esm2022/lib/utils/theme/create-class.mjs +10 -0
  174. package/esm2022/lib/utils/theme/create-theme.mjs +10 -0
  175. package/esm2022/lib/utils/theme/is-object.mjs +10 -0
  176. package/esm2022/lib/utils/theme/merge-theme.mjs +29 -0
  177. package/esm2022/lib/utils/theme/to-string.mjs +10 -0
  178. package/esm2022/public-api.mjs +7 -0
  179. package/fesm2022/flowbite-angular.mjs +4228 -0
  180. package/fesm2022/flowbite-angular.mjs.map +1 -0
  181. package/index.d.ts +5 -4
  182. package/lib/common/flowbite.theme.init.d.ts +9 -0
  183. package/lib/common/index.d.ts +2 -0
  184. package/lib/common/type-definitions/colors/flowbite.colors.d.ts +19 -0
  185. package/lib/common/type-definitions/colors/flowbite.gradient-colors.d.ts +11 -0
  186. package/lib/common/type-definitions/colors/flowbite.gradient-duo-tone-colors.d.ts +12 -0
  187. package/lib/common/type-definitions/colors/index.d.ts +3 -0
  188. package/lib/common/type-definitions/flowbite.boolean.d.ts +7 -0
  189. package/lib/common/type-definitions/flowbite.class.d.ts +6 -0
  190. package/lib/common/type-definitions/flowbite.combination.d.ts +8 -0
  191. package/lib/common/type-definitions/flowbite.content-positions.d.ts +6 -0
  192. package/lib/common/type-definitions/flowbite.deep-partial.d.ts +6 -0
  193. package/lib/common/type-definitions/flowbite.heading-levels.d.ts +4 -0
  194. package/lib/common/type-definitions/flowbite.positions.d.ts +14 -0
  195. package/lib/common/type-definitions/flowbite.router-link-parameter.d.ts +5 -0
  196. package/lib/common/type-definitions/flowbite.sizes.d.ts +10 -0
  197. package/lib/common/type-definitions/flowbite.themes.d.ts +4 -0
  198. package/lib/common/type-definitions/index.d.ts +11 -0
  199. package/lib/components/accordion/accordion-content.component.d.ts +32 -0
  200. package/lib/components/accordion/accordion-content.theme.d.ts +16 -0
  201. package/lib/components/accordion/accordion-content.theme.service.d.ts +8 -0
  202. package/lib/components/accordion/accordion-panel.component.d.ts +27 -0
  203. package/lib/components/accordion/accordion-panel.theme.d.ts +11 -0
  204. package/lib/components/accordion/accordion-panel.theme.service.d.ts +9 -0
  205. package/lib/components/accordion/accordion-title.component.d.ts +46 -0
  206. package/lib/components/accordion/accordion-title.theme.d.ts +24 -0
  207. package/lib/components/accordion/accordion-title.theme.service.d.ts +8 -0
  208. package/lib/components/accordion/accordion.component.d.ts +35 -0
  209. package/lib/components/accordion/accordion.theme.d.ts +21 -0
  210. package/lib/components/accordion/accordion.theme.service.d.ts +8 -0
  211. package/lib/components/accordion/index.d.ts +16 -0
  212. package/lib/components/alert/alert.component.d.ts +53 -12
  213. package/lib/components/alert/alert.theme.d.ts +27 -0
  214. package/lib/components/alert/alert.theme.service.d.ts +8 -0
  215. package/lib/components/alert/index.d.ts +4 -1
  216. package/lib/components/badge/badge.component.d.ts +50 -10
  217. package/lib/components/badge/badge.theme.d.ts +32 -0
  218. package/lib/components/badge/badge.theme.service.d.ts +8 -0
  219. package/lib/components/badge/index.d.ts +4 -1
  220. package/lib/components/base-component.directive.d.ts +19 -0
  221. package/lib/components/breadcrumb/breadcrumb-item.component.d.ts +39 -0
  222. package/lib/components/breadcrumb/breadcrumb-item.theme.d.ts +22 -0
  223. package/lib/components/breadcrumb/breadcrumb-item.theme.service.d.ts +8 -0
  224. package/lib/components/breadcrumb/breadcrumb.component.d.ts +22 -0
  225. package/lib/components/breadcrumb/breadcrumb.theme.d.ts +14 -0
  226. package/lib/components/breadcrumb/breadcrumb.theme.service.d.ts +8 -0
  227. package/lib/components/breadcrumb/index.d.ts +8 -0
  228. package/lib/components/button/button.component.d.ts +110 -0
  229. package/lib/components/button/button.theme.d.ts +56 -0
  230. package/lib/components/button/button.theme.service.d.ts +8 -0
  231. package/lib/components/button/index.d.ts +4 -0
  232. package/lib/components/dark-theme-toggle/dark-theme-toggle.component.d.ts +21 -9
  233. package/lib/components/dark-theme-toggle/dark-theme-toggle.theme.d.ts +11 -0
  234. package/lib/components/dark-theme-toggle/dark-theme-toggle.theme.service.d.ts +8 -0
  235. package/lib/components/dark-theme-toggle/index.d.ts +4 -1
  236. package/lib/components/dropdown/dropdown-divider.component.d.ts +13 -0
  237. package/lib/components/dropdown/dropdown-divider.theme.d.ts +11 -0
  238. package/lib/components/dropdown/dropdown-divider.theme.service.d.ts +8 -0
  239. package/lib/components/dropdown/dropdown-header.component.d.ts +13 -0
  240. package/lib/components/dropdown/dropdown-header.theme.d.ts +16 -0
  241. package/lib/components/dropdown/dropdown-header.theme.service.d.ts +8 -0
  242. package/lib/components/dropdown/dropdown-item.component.d.ts +17 -0
  243. package/lib/components/dropdown/dropdown-item.theme.d.ts +11 -0
  244. package/lib/components/dropdown/dropdown-item.theme.service.d.ts +8 -0
  245. package/lib/components/dropdown/dropdown.component.d.ts +71 -0
  246. package/lib/components/dropdown/dropdown.theme.d.ts +44 -0
  247. package/lib/components/dropdown/dropdown.theme.service.d.ts +8 -0
  248. package/lib/components/dropdown/index.d.ts +16 -0
  249. package/lib/components/form-field/directives/addon.directive.d.ts +13 -0
  250. package/lib/components/form-field/directives/addon.directive.theme.d.ts +10 -0
  251. package/lib/components/form-field/directives/addon.directive.theme.service.d.ts +8 -0
  252. package/lib/components/form-field/directives/base-input.directive.d.ts +14 -0
  253. package/lib/components/form-field/directives/helper.directive.d.ts +18 -0
  254. package/lib/components/form-field/directives/helper.directive.theme.d.ts +13 -0
  255. package/lib/components/form-field/directives/helper.directive.theme.service.d.ts +8 -0
  256. package/lib/components/form-field/directives/icon.directive.d.ts +13 -0
  257. package/lib/components/form-field/directives/icon.directive.theme.d.ts +10 -0
  258. package/lib/components/form-field/directives/icon.directive.theme.service.d.ts +8 -0
  259. package/lib/components/form-field/directives/index.d.ts +21 -0
  260. package/lib/components/form-field/directives/input.directive.d.ts +100 -0
  261. package/lib/components/form-field/directives/input.directive.theme.d.ts +24 -0
  262. package/lib/components/form-field/directives/input.directive.theme.service.d.ts +8 -0
  263. package/lib/components/form-field/directives/label.directive.d.ts +62 -0
  264. package/lib/components/form-field/directives/label.directive.theme.d.ts +20 -0
  265. package/lib/components/form-field/directives/label.directive.theme.service.d.ts +8 -0
  266. package/lib/components/form-field/form-field.component.d.ts +20 -0
  267. package/lib/components/form-field/form-field.theme.d.ts +45 -0
  268. package/lib/components/form-field/form-field.theme.service.d.ts +8 -0
  269. package/lib/components/form-field/index.d.ts +5 -0
  270. package/lib/components/icon/icon-registry.d.ts +45 -0
  271. package/lib/components/icon/icon.component.d.ts +22 -0
  272. package/lib/components/icon/index.d.ts +5 -0
  273. package/lib/components/icon/trusted-types.d.ts +15 -0
  274. package/lib/components/index.d.ts +10 -0
  275. package/lib/components/indicators/index.d.ts +4 -0
  276. package/lib/components/indicators/indicators.component.d.ts +92 -0
  277. package/lib/components/indicators/indicators.theme.d.ts +43 -0
  278. package/lib/components/indicators/indicators.theme.service.d.ts +8 -0
  279. package/lib/components/modal/index.d.ts +16 -0
  280. package/lib/components/modal/modal-body.component.d.ts +17 -0
  281. package/lib/components/modal/modal-body.theme.d.ts +11 -0
  282. package/lib/components/modal/modal-body.theme.service.d.ts +8 -0
  283. package/lib/components/modal/modal-footer.component.d.ts +17 -0
  284. package/lib/components/modal/modal-footer.theme.d.ts +11 -0
  285. package/lib/components/modal/modal-footer.theme.service.d.ts +8 -0
  286. package/lib/components/modal/modal-header.component.d.ts +29 -0
  287. package/lib/components/modal/modal-header.theme.d.ts +20 -0
  288. package/lib/components/modal/modal-header.theme.service.d.ts +8 -0
  289. package/lib/components/modal/modal.component.d.ts +73 -0
  290. package/lib/components/modal/modal.theme.d.ts +39 -0
  291. package/lib/components/modal/modal.theme.service.d.ts +8 -0
  292. package/lib/components/navbar/index.d.ts +24 -1
  293. package/lib/components/navbar/navbar-brand.component.d.ts +17 -0
  294. package/lib/components/navbar/navbar-brand.theme.d.ts +11 -0
  295. package/lib/components/navbar/navbar-brand.theme.service.d.ts +8 -0
  296. package/lib/components/navbar/navbar-content.component.d.ts +27 -0
  297. package/lib/components/navbar/navbar-content.theme.d.ts +18 -0
  298. package/lib/components/navbar/navbar-content.theme.service.d.ts +8 -0
  299. package/lib/components/navbar/navbar-icon-button.component.d.ts +27 -0
  300. package/lib/components/navbar/navbar-icon-button.theme.d.ts +14 -0
  301. package/lib/components/navbar/navbar-icon-button.theme.service.d.ts +8 -0
  302. package/lib/components/navbar/navbar-item.component.d.ts +29 -0
  303. package/lib/components/navbar/navbar-item.theme.d.ts +15 -0
  304. package/lib/components/navbar/navbar-item.theme.service.d.ts +8 -0
  305. package/lib/components/navbar/navbar-toggle.component.d.ts +23 -0
  306. package/lib/components/navbar/navbar-toggle.theme.d.ts +11 -0
  307. package/lib/components/navbar/navbar-toggle.theme.service.d.ts +8 -0
  308. package/lib/components/navbar/navbar.component.d.ts +45 -6
  309. package/lib/components/navbar/navbar.theme.d.ts +24 -0
  310. package/lib/components/navbar/navbar.theme.service.d.ts +8 -0
  311. package/lib/components/scroll-top/index.d.ts +4 -0
  312. package/lib/components/scroll-top/scroll-top.component.d.ts +46 -0
  313. package/lib/components/scroll-top/scroll-top.theme.d.ts +21 -0
  314. package/lib/components/scroll-top/scroll-top.theme.service.d.ts +8 -0
  315. package/lib/components/sidebar/index.d.ts +24 -3
  316. package/lib/components/sidebar/sidebar-item-group.component.d.ts +41 -2
  317. package/lib/components/sidebar/sidebar-item-group.theme.d.ts +19 -0
  318. package/lib/components/sidebar/sidebar-item-group.theme.service.d.ts +8 -0
  319. package/lib/components/sidebar/sidebar-item.component.d.ts +38 -8
  320. package/lib/components/sidebar/sidebar-item.theme.d.ts +22 -0
  321. package/lib/components/sidebar/sidebar-item.theme.service.d.ts +8 -0
  322. package/lib/components/sidebar/sidebar-menu.component.d.ts +43 -0
  323. package/lib/components/sidebar/sidebar-menu.theme.d.ts +18 -0
  324. package/lib/components/sidebar/sidebar-menu.theme.service.d.ts +8 -0
  325. package/lib/components/sidebar/sidebar-page-content.component.d.ts +22 -0
  326. package/lib/components/sidebar/sidebar-page-content.theme.d.ts +15 -0
  327. package/lib/components/sidebar/sidebar-page-content.theme.service.d.ts +8 -0
  328. package/lib/components/sidebar/sidebar-toggle.component.d.ts +40 -0
  329. package/lib/components/sidebar/sidebar-toggle.theme.d.ts +19 -0
  330. package/lib/components/sidebar/sidebar-toggle.theme.service.d.ts +8 -0
  331. package/lib/components/sidebar/sidebar.component.d.ts +30 -7
  332. package/lib/components/sidebar/sidebar.theme.d.ts +25 -0
  333. package/lib/components/sidebar/sidebar.theme.service.d.ts +8 -0
  334. package/lib/directives/flowbite-router-link-active.directive.d.ts +25 -0
  335. package/lib/directives/flowbite-router-link.directive.d.ts +16 -0
  336. package/lib/directives/index.d.ts +2 -0
  337. package/lib/pipes/index.d.ts +1 -1
  338. package/lib/pipes/sanitize-html/sanitize-html.pipe.d.ts +14 -4
  339. package/lib/services/flowbite.theme.service.d.ts +10 -0
  340. package/lib/services/index.d.ts +1 -2
  341. package/lib/utils/boolean.util.d.ts +8 -0
  342. package/lib/utils/directives/index.d.ts +2 -0
  343. package/lib/utils/directives/inputs/index.d.ts +2 -0
  344. package/lib/utils/directives/inputs/router-link-active.input.d.ts +8 -0
  345. package/lib/utils/directives/inputs/router-link.inputs.d.ts +8 -0
  346. package/lib/utils/directives/outputs/index.d.ts +2 -0
  347. package/lib/utils/directives/outputs/router-link-active.output.d.ts +8 -0
  348. package/lib/utils/directives/outputs/router-link.output.d.ts +8 -0
  349. package/lib/utils/icon.list.d.ts +7 -0
  350. package/lib/utils/id.generator.d.ts +59 -0
  351. package/lib/utils/index.d.ts +8 -0
  352. package/lib/utils/theme/clone-deep.d.ts +7 -0
  353. package/lib/utils/theme/create-class.d.ts +7 -0
  354. package/lib/utils/theme/create-theme.d.ts +7 -0
  355. package/lib/utils/theme/is-object.d.ts +7 -0
  356. package/lib/utils/theme/merge-theme.d.ts +8 -0
  357. package/lib/utils/theme/to-string.d.ts +7 -0
  358. package/package.json +25 -39
  359. package/public-api.d.ts +6 -0
  360. package/LICENSE +0 -21
  361. package/README.md +0 -376
  362. package/esm2020/index.mjs +0 -5
  363. package/esm2020/lib/components/alert/alert.component.mjs +0 -128
  364. package/esm2020/lib/components/alert/index.mjs +0 -2
  365. package/esm2020/lib/components/badge/badge.component.mjs +0 -77
  366. package/esm2020/lib/components/badge/index.mjs +0 -2
  367. package/esm2020/lib/components/dark-theme-toggle/dark-theme-toggle.component.mjs +0 -122
  368. package/esm2020/lib/components/dark-theme-toggle/index.mjs +0 -2
  369. package/esm2020/lib/components/index.mjs +0 -6
  370. package/esm2020/lib/components/navbar/index.mjs +0 -2
  371. package/esm2020/lib/components/navbar/navbar.component.mjs +0 -49
  372. package/esm2020/lib/components/sidebar/index.mjs +0 -4
  373. package/esm2020/lib/components/sidebar/sidebar-item-group.component.mjs +0 -18
  374. package/esm2020/lib/components/sidebar/sidebar-item.component.mjs +0 -73
  375. package/esm2020/lib/components/sidebar/sidebar.component.mjs +0 -50
  376. package/esm2020/lib/flowbite.module.mjs +0 -45
  377. package/esm2020/lib/pipes/index.mjs +0 -2
  378. package/esm2020/lib/pipes/sanitize-html/sanitize-html.pipe.mjs +0 -21
  379. package/esm2020/lib/services/sidebar/index.mjs +0 -2
  380. package/esm2020/lib/services/sidebar/sidebar.service.mjs +0 -24
  381. package/esm2020/lib/services/theme/index.mjs +0 -2
  382. package/esm2020/lib/services/theme/theme.service.mjs +0 -24
  383. package/fesm2015/flowbite-angular.mjs +0 -600
  384. package/fesm2015/flowbite-angular.mjs.map +0 -1
  385. package/fesm2020/flowbite-angular.mjs +0 -599
  386. package/fesm2020/flowbite-angular.mjs.map +0 -1
  387. package/flowbite-angular.d.ts +0 -5
  388. package/lib/flowbite.module.d.ts +0 -16
  389. package/lib/services/sidebar/index.d.ts +0 -1
  390. package/lib/services/sidebar/sidebar.service.d.ts +0 -9
  391. package/lib/services/theme/index.d.ts +0 -1
  392. package/lib/services/theme/theme.service.d.ts +0 -10
  393. /package/{esm2020 → esm2022}/lib/pipes/sanitize-html/index.mjs +0 -0
@@ -0,0 +1,18 @@
1
+ import type { DeepPartial, FlowbiteBoolean, FlowbiteClass } from '../../common';
2
+ import type { SidebarColors, SidebarDisplayMode } from './sidebar.theme';
3
+ export interface SidebarMenuProperties {
4
+ isOpen: keyof FlowbiteBoolean;
5
+ color: keyof SidebarColors;
6
+ displayMode: keyof SidebarDisplayMode;
7
+ customStyle: DeepPartial<SidebarMenuTheme>;
8
+ }
9
+ export interface SidebarMenuTheme {
10
+ root: {
11
+ base: string;
12
+ displayMode: SidebarDisplayMode;
13
+ isOpen: FlowbiteBoolean;
14
+ color: SidebarColors;
15
+ };
16
+ }
17
+ export declare const sidebarMenuTheme: SidebarMenuTheme;
18
+ export type SidebarMenuClass = FlowbiteClass;
@@ -0,0 +1,8 @@
1
+ import type { FlowbiteThemeService } from '../../services';
2
+ import type { SidebarMenuClass, SidebarMenuProperties, SidebarMenuTheme } from './sidebar-menu.theme';
3
+ import { InjectionToken } from '@angular/core';
4
+ export declare const FLOWBITE_SIDEBAR_MENU_THEME_TOKEN: InjectionToken<SidebarMenuTheme>;
5
+ export declare class SidebarMenuThemeService implements FlowbiteThemeService<SidebarMenuProperties> {
6
+ private readonly baseTheme;
7
+ getClasses(properties: SidebarMenuProperties): SidebarMenuClass;
8
+ }
@@ -0,0 +1,22 @@
1
+ import { BaseComponent } from '../base-component.directive';
2
+ import type { SidebarPageContentClass } from './sidebar-page-content.theme';
3
+ import { SidebarPageContentThemeService } from './sidebar-page-content.theme.service';
4
+ import { SidebarComponent } from './sidebar.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class SidebarPageContentComponent extends BaseComponent<SidebarPageContentClass> {
7
+ readonly themeService: SidebarPageContentThemeService;
8
+ readonly sidebarComponent: SidebarComponent;
9
+ customStyle: import("@angular/core").ModelSignal<{
10
+ root?: {
11
+ base?: string | undefined;
12
+ displayMode?: {
13
+ push?: string | undefined;
14
+ over?: string | undefined;
15
+ backdrop?: string | undefined;
16
+ } | undefined;
17
+ } | undefined;
18
+ }>;
19
+ fetchClass(): SidebarPageContentClass;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarPageContentComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarPageContentComponent, "flowbite-sidebar-page-content", never, { "customStyle": { "alias": "customStyle"; "required": false; "isSignal": true; }; }, { "customStyle": "customStyleChange"; }, never, ["*"], true, never>;
22
+ }
@@ -0,0 +1,15 @@
1
+ import type { DeepPartial, FlowbiteBoolean, FlowbiteClass } from '../../common';
2
+ import type { SidebarDisplayMode } from './sidebar.theme';
3
+ export interface SidebarPageContentProperties {
4
+ isOpen: keyof FlowbiteBoolean;
5
+ displayMode: keyof SidebarDisplayMode;
6
+ customStyle: DeepPartial<SidebarPageContentTheme>;
7
+ }
8
+ export interface SidebarPageContentTheme {
9
+ root: {
10
+ base: string;
11
+ displayMode: SidebarDisplayMode;
12
+ };
13
+ }
14
+ export declare const sidebarPageContentTheme: SidebarPageContentTheme;
15
+ export type SidebarPageContentClass = FlowbiteClass;
@@ -0,0 +1,8 @@
1
+ import type { FlowbiteThemeService } from '../../services';
2
+ import type { SidebarPageContentClass, SidebarPageContentProperties, SidebarPageContentTheme } from './sidebar-page-content.theme';
3
+ import { InjectionToken } from '@angular/core';
4
+ export declare const FLOWBITE_SIDEBAR_PAGE_CONTENT_THEME_TOKEN: InjectionToken<SidebarPageContentTheme>;
5
+ export declare class SidebarPageContentThemeService implements FlowbiteThemeService<SidebarPageContentProperties> {
6
+ private readonly baseTheme;
7
+ getClasses(properties: SidebarPageContentProperties): SidebarPageContentClass;
8
+ }
@@ -0,0 +1,40 @@
1
+ import { BaseComponent } from '../base-component.directive';
2
+ import { IconRegistry } from '../icon';
3
+ import type { SidebarToggleClass, SidebarToggleSizes } from './sidebar-toggle.theme';
4
+ import { SidebarToggleThemeService } from './sidebar-toggle.theme.service';
5
+ import { SidebarComponent } from './sidebar.component';
6
+ import type { SidebarColors } from './sidebar.theme';
7
+ import type { OnInit } from '@angular/core';
8
+ import { DomSanitizer } from '@angular/platform-browser';
9
+ import * as i0 from "@angular/core";
10
+ export declare class SidebarToggleComponent extends BaseComponent<SidebarToggleClass> implements OnInit {
11
+ readonly themeService: SidebarToggleThemeService;
12
+ readonly iconRegistry: IconRegistry;
13
+ readonly domSanitizer: DomSanitizer;
14
+ readonly sidebarComponent: import("@angular/core").ModelSignal<SidebarComponent>;
15
+ color: import("@angular/core").ModelSignal<keyof SidebarColors>;
16
+ size: import("@angular/core").ModelSignal<keyof SidebarToggleSizes>;
17
+ customStyle: import("@angular/core").ModelSignal<{
18
+ root?: {
19
+ base?: string | undefined;
20
+ color?: {
21
+ [x: string]: string | undefined;
22
+ primary?: string | undefined;
23
+ blue?: string | undefined;
24
+ red?: string | undefined;
25
+ green?: string | undefined;
26
+ yellow?: string | undefined;
27
+ dark?: string | undefined;
28
+ } | undefined;
29
+ size?: {
30
+ [x: string]: string | undefined;
31
+ sm?: string | undefined;
32
+ } | undefined;
33
+ } | undefined;
34
+ }>;
35
+ fetchClass(): SidebarToggleClass;
36
+ init(): void;
37
+ onClick(): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarToggleComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarToggleComponent, "flowbite-sidebar-toggle", never, { "sidebarComponent": { "alias": "sidebarComponent"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "customStyle": { "alias": "customStyle"; "required": false; "isSignal": true; }; }, { "sidebarComponent": "sidebarComponentChange"; "color": "colorChange"; "size": "sizeChange"; "customStyle": "customStyleChange"; }, never, never, true, never>;
40
+ }
@@ -0,0 +1,19 @@
1
+ import type { DeepPartial, FlowbiteClass, FlowbiteSizes } from '../../common';
2
+ import type { SidebarColors } from './sidebar.theme';
3
+ export interface SidebarToggleSizes extends Pick<FlowbiteSizes, 'sm'> {
4
+ [key: string]: string;
5
+ }
6
+ export interface SidebarToggleProperties {
7
+ color: keyof SidebarColors;
8
+ size: keyof SidebarToggleSizes;
9
+ customStyle: DeepPartial<SidebarToggleTheme>;
10
+ }
11
+ export interface SidebarToggleTheme {
12
+ root: {
13
+ base: string;
14
+ color: SidebarColors;
15
+ size: SidebarToggleSizes;
16
+ };
17
+ }
18
+ export declare const sidebarToggleTheme: SidebarToggleTheme;
19
+ export type SidebarToggleClass = FlowbiteClass;
@@ -0,0 +1,8 @@
1
+ import type { FlowbiteThemeService } from '../../services';
2
+ import type { SidebarToggleClass, SidebarToggleProperties, SidebarToggleTheme } from './sidebar-toggle.theme';
3
+ import { InjectionToken } from '@angular/core';
4
+ export declare const FLOWBITE_SIDEBAR_TOGGLE_THEME_TOKEN: InjectionToken<SidebarToggleTheme>;
5
+ export declare class SidebarToggleThemeService implements FlowbiteThemeService<SidebarToggleProperties> {
6
+ private readonly baseTheme;
7
+ getClasses(properties: SidebarToggleProperties): SidebarToggleClass;
8
+ }
@@ -1,10 +1,33 @@
1
- import { SidebarService } from '../../services';
1
+ import { BaseComponent } from '../base-component.directive';
2
+ import { SidebarMenuComponent } from './sidebar-menu.component';
3
+ import { SidebarPageContentComponent } from './sidebar-page-content.component';
4
+ import type { SidebarClass, SidebarColors, SidebarDisplayMode } from './sidebar.theme';
5
+ import { SidebarThemeService } from './sidebar.theme.service';
6
+ import type { OnInit } from '@angular/core';
2
7
  import * as i0 from "@angular/core";
3
- export declare class SidebarComponent {
4
- readonly sidebarService: SidebarService;
5
- extraClass: string;
6
- rounded: boolean;
7
- constructor(sidebarService: SidebarService);
8
+ /**
9
+ * @see https://flowbite.com/docs/components/sidebar/
10
+ */
11
+ export declare class SidebarComponent extends BaseComponent<SidebarClass> implements OnInit {
12
+ readonly themeService: SidebarThemeService;
13
+ readonly sidebarMenuChild: import("@angular/core").Signal<SidebarMenuComponent | undefined>;
14
+ readonly sidebarPageContentChild: import("@angular/core").Signal<SidebarPageContentComponent | undefined>;
15
+ color: import("@angular/core").ModelSignal<keyof SidebarColors>;
16
+ displayMode: import("@angular/core").ModelSignal<keyof SidebarDisplayMode>;
17
+ isOpen: import("@angular/core").ModelSignal<boolean>;
18
+ isRounded: import("@angular/core").ModelSignal<boolean>;
19
+ customStyle: import("@angular/core").ModelSignal<{
20
+ root?: {
21
+ base?: string | undefined;
22
+ isRounded?: {
23
+ enabled?: string | undefined;
24
+ disabled?: string | undefined;
25
+ } | undefined;
26
+ } | undefined;
27
+ }>;
28
+ fetchClass(): SidebarClass;
29
+ verify(): void;
30
+ toggleVisibility(isOpen?: boolean): void;
8
31
  static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "flowbite-sidebar", never, { "extraClass": "extraClass"; "rounded": "rounded"; }, {}, never, ["*"]>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "flowbite-sidebar", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "displayMode": { "alias": "displayMode"; "required": false; "isSignal": true; }; "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "isRounded": { "alias": "isRounded"; "required": false; "isSignal": true; }; "customStyle": { "alias": "customStyle"; "required": false; "isSignal": true; }; }, { "color": "colorChange"; "displayMode": "displayModeChange"; "isOpen": "isOpenChange"; "isRounded": "isRoundedChange"; "customStyle": "customStyleChange"; }, ["sidebarMenuChild", "sidebarPageContentChild"], ["*"], true, never>;
10
33
  }
@@ -0,0 +1,25 @@
1
+ import type { DeepPartial } from '../../common';
2
+ import type { FlowbiteColors } from '../../common/type-definitions/colors/flowbite.colors';
3
+ import type { FlowbiteBoolean } from '../../common/type-definitions/flowbite.boolean';
4
+ import type { FlowbiteClass } from '../../common/type-definitions/flowbite.class';
5
+ export interface SidebarColors extends Pick<FlowbiteColors, 'primary' | 'dark' | 'blue' | 'red' | 'green' | 'yellow'> {
6
+ [key: string]: string;
7
+ }
8
+ export interface SidebarDisplayMode {
9
+ push: string;
10
+ over: string;
11
+ backdrop: string;
12
+ }
13
+ export interface SidebarProperties {
14
+ displayMode: keyof SidebarDisplayMode;
15
+ isRounded: keyof FlowbiteBoolean;
16
+ customStyle: DeepPartial<SidebarTheme>;
17
+ }
18
+ export interface SidebarTheme {
19
+ root: {
20
+ base: string;
21
+ isRounded: FlowbiteBoolean;
22
+ };
23
+ }
24
+ export declare const sidebarTheme: SidebarTheme;
25
+ export type SidebarClass = FlowbiteClass;
@@ -0,0 +1,8 @@
1
+ import type { FlowbiteThemeService } from '../../services';
2
+ import type { SidebarClass, SidebarProperties, SidebarTheme } from './sidebar.theme';
3
+ import { InjectionToken } from '@angular/core';
4
+ export declare const FLOWBITE_SIDEBAR_THEME_TOKEN: InjectionToken<SidebarTheme>;
5
+ export declare class SidebarThemeService implements FlowbiteThemeService<SidebarProperties> {
6
+ private readonly baseTheme;
7
+ getClasses(properties: SidebarProperties): SidebarClass;
8
+ }
@@ -0,0 +1,25 @@
1
+ import type { Signal } from '@angular/core';
2
+ import { RouterLinkActive } from '@angular/router';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/router";
5
+ /**
6
+ * Wrapping directive over RouterLinkActive.
7
+ *
8
+ * @usageNotes
9
+ * It provides a clean way to have 'isActive' data with signal base value.
10
+ *
11
+ * @see `RouterLinkActive`
12
+ */
13
+ export declare class FlowbiteRouterLinkActiveDirective {
14
+ private readonly ariaCurrentValue;
15
+ routerLinkActive: RouterLinkActive;
16
+ private _isActive;
17
+ get isActive(): Signal<boolean>;
18
+ /**
19
+ * Set the RouterLinkActive's ariaCurrentWhenActive to the value passed to the component (via this Directive).
20
+ */
21
+ constructor();
22
+ onIsActiveChange(): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowbiteRouterLinkActiveDirective, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FlowbiteRouterLinkActiveDirective, "[flowbiteRouterLinkActive]", never, {}, {}, never, never, true, [{ directive: typeof i1.RouterLinkActive; inputs: { "routerLinkActiveOptions": "routerLinkActiveOptions"; "ariaCurrentWhenActive": "ariaCurrentWhenActive"; "routerLinkActive": "routerLinkActive"; }; outputs: { "isActiveChange": "isActiveChange"; }; }]>;
25
+ }
@@ -0,0 +1,16 @@
1
+ import { Router, RouterLink } from '@angular/router';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/router";
4
+ /**
5
+ * Wrapping directive over RouterLink.
6
+ *
7
+ * @see `RouterLink`
8
+ */
9
+ export declare class FlowbiteRouterLinkDirective {
10
+ readonly router: Router;
11
+ readonly routerLink: RouterLink;
12
+ href: import("@angular/core").ModelSignal<string | undefined>;
13
+ onClick(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowbiteRouterLinkDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FlowbiteRouterLinkDirective, "[flowbiteRouterLink]", never, { "href": { "alias": "href"; "required": false; "isSignal": true; }; }, { "href": "hrefChange"; }, never, never, true, [{ directive: typeof i1.RouterLink; inputs: { "target": "target"; "queryParams": "queryParams"; "fragment": "fragment"; "queryParamsHandling": "queryParamsHandling"; "state": "state"; "info": "info"; "relativeTo": "relativeTo"; "preserveFragment": "preserveFragment"; "skipLocationChange": "skipLocationChange"; "replaceUrl": "replaceUrl"; "routerLink": "routerLink"; }; outputs: {}; }]>;
16
+ }
@@ -0,0 +1,2 @@
1
+ export { FlowbiteRouterLinkActiveDirective } from './flowbite-router-link-active.directive';
2
+ export { FlowbiteRouterLinkDirective } from './flowbite-router-link.directive';
@@ -1 +1 @@
1
- export * from './sanitize-html';
1
+ export { SanitizeHtmlPipe } from './sanitize-html';
@@ -1,10 +1,20 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
1
+ import type { PipeTransform } from '@angular/core';
2
+ import type { SafeHtml } from '@angular/platform-browser';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Sanitize a string as trusted HTML.
6
+ *
7
+ * @see `DomSanitizer`
8
+ */
4
9
  export declare class SanitizeHtmlPipe implements PipeTransform {
5
10
  private _sanitizer;
6
- constructor(_sanitizer: DomSanitizer);
11
+ /**
12
+ * Return the result of 'bypassSecurityTrustHtml' function of DomSanitizer for the parameter.
13
+ *
14
+ * @param v The string to be transformed.
15
+ * @returns The SfeHtml from the DomSanitizer.
16
+ */
7
17
  transform(v: string): SafeHtml;
8
18
  static ɵfac: i0.ɵɵFactoryDeclaration<SanitizeHtmlPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<SanitizeHtmlPipe, "sanitizeHtml">;
19
+ static ɵpipe: i0.ɵɵPipeDeclaration<SanitizeHtmlPipe, "sanitizeHtml", true>;
10
20
  }
@@ -0,0 +1,10 @@
1
+ import type { FlowbiteClass } from '../common/type-definitions/flowbite.class';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Provide an abstract class used in themeing system of flowbite-angular.
5
+ */
6
+ export declare abstract class FlowbiteThemeService<TProperties> {
7
+ abstract getClasses(properties: TProperties): FlowbiteClass;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowbiteThemeService<any>, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlowbiteThemeService<any>>;
10
+ }
@@ -1,2 +1 @@
1
- export * from './sidebar';
2
- export * from './theme';
1
+ export { FlowbiteThemeService } from './flowbite.theme.service';
@@ -0,0 +1,8 @@
1
+ import type { FlowbiteBoolean } from '../common/type-definitions/flowbite.boolean';
2
+ /**
3
+ * This function cast a boolean to the internal flowbute-angular boolean type.
4
+ *
5
+ * @param value The input to be cast.
6
+ * @returns enabled if value is true ; disabled if value is false.
7
+ */
8
+ export declare function booleanToFlowbiteBoolean(value: boolean): keyof FlowbiteBoolean;
@@ -0,0 +1,2 @@
1
+ export * from './inputs';
2
+ export * from './outputs';
@@ -0,0 +1,2 @@
1
+ export * from './router-link.inputs';
2
+ export * from './router-link-active.input';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Register every inputs of RouterLinkActive used in FlowbiteRouterLinkActiveDirective.
3
+ *
4
+ * @see `RouterLinkActive`
5
+ * @see `FlowbiteRouterLinkActiveDirective`
6
+ */
7
+ declare const _default: string[];
8
+ export default _default;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Register every inputs of RouterLink used in FlowbiteRouterLinkDirective.
3
+ *
4
+ * @see `RouterLink`
5
+ * @see `FlowbiteRouterLinkDirective`
6
+ */
7
+ declare const _default: string[];
8
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export * from './router-link.output';
2
+ export * from './router-link-active.output';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Register every outputs of RouterLinkActive used in FlowbiteRouterLinkActiveDirective.
3
+ *
4
+ * @see `RouterLinkActive`
5
+ * @see `FlowbiteRouterLinkActiveDirective`
6
+ */
7
+ declare const _default: string[];
8
+ export default _default;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Register every outputs of RouterLink used in FlowbiteRouterLinkDirective.
3
+ *
4
+ * @see `RouterLink`
5
+ * @see `FlowbiteRouterLinkDirective`
6
+ */
7
+ declare const _default: string[];
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export declare const CLOSE_SVG_ICON = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"\n d=\"M6 18 17.94 6M18 18 6.06 6\" />\n</svg>\n";
2
+ export declare const CHEVRON_UP_SVG_ICON = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m16 14-4-4-4 4\" />\n</svg>\n";
3
+ export declare const CHEVRON_DOWN_SVG_ICON = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m8 10 4 4 4-4\" />\n</svg>\n";
4
+ export declare const CHEVRON_RIGHT_SVG_ICON = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m10 16 4-4-4-4\" />\n</svg>\n";
5
+ export declare const SUN_SVG_ICON = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"\n d=\"M12 5V3m0 18v-2M7.05 7.05 5.636 5.636m12.728 12.728L16.95 16.95M5 12H3m18 0h-2M7.05 16.95l-1.414 1.414M18.364 5.636 16.95 7.05M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z\" />\n</svg>\n";
6
+ export declare const MOON_SVG_ICON = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"\n d=\"M12 21a9 9 0 0 1-.5-17.986V3c-.354.966-.5 1.911-.5 3a9 9 0 0 0 9 9c.239 0 .254.018.488 0A9.004 9.004 0 0 1 12 21Z\" />\n</svg>\n";
7
+ export declare const BARS_SVG_ICON = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"2\" d=\"M5 7h14M5 12h14M5 17h14\" />\n</svg>\n";
@@ -0,0 +1,59 @@
1
+ /**
2
+ * This class provide an implementation of Guid used as id for flowbite-angular components.
3
+ *
4
+ * @see https://gist.github.com/emptyother/1fd97db034ef848f38eca3354fa9ee90
5
+ */
6
+ export declare class Guid {
7
+ private value;
8
+ /**
9
+ * If value is given and if the value is a valid Guid, then return a Guid from the string ; Otherwise or if no value is given, create a Guid class without value.
10
+ *
11
+ * @param value Guid as string if you want to get a Guid type from string
12
+ */
13
+ constructor(value?: string);
14
+ /**
15
+ * Function that generate new Guid.
16
+ *
17
+ * @returns New Guid.
18
+ */
19
+ static newGuid(): Guid;
20
+ /**
21
+ * Function that generate an empty Guid.
22
+ *
23
+ * @return "00000000-0000-0000-0000-000000000000".
24
+ */
25
+ static get empty(): string;
26
+ /**
27
+ * Function that generate an empty Guid.
28
+ *
29
+ * @return "00000000-0000-0000-0000-000000000000".
30
+ */
31
+ get empty(): string;
32
+ /**
33
+ * Check if the provided Guid is valid.
34
+ *
35
+ * @param str The Guid to check.
36
+ * @returns true if the Guid is valid ; false otherwise.
37
+ */
38
+ static isValid(str: string): boolean;
39
+ /**
40
+ * ToString base method.
41
+ *
42
+ * @returns Value as string.
43
+ */
44
+ toString(): string;
45
+ /**
46
+ * ToJson base method.
47
+ *
48
+ * @returns Value as Json compatible string.
49
+ */
50
+ toJSON(): string;
51
+ }
52
+ /**
53
+ * Function that return a new Guid.
54
+ *
55
+ * @returns New {@link Guid}.
56
+ *
57
+ * @see `Guid`
58
+ */
59
+ export declare function generateId(): Guid;
@@ -0,0 +1,8 @@
1
+ export * from './directives';
2
+ export { cloneDeep } from './theme/clone-deep';
3
+ export { createClass } from './theme/create-class';
4
+ export { createTheme } from './theme/create-theme';
5
+ export { isObject } from './theme/is-object';
6
+ export { mergeTheme } from './theme/merge-theme';
7
+ export { themeToString } from './theme/to-string';
8
+ export { Guid, generateId } from './id.generator';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Function that return the cloned type of the provided generic type.
3
+ *
4
+ * @param source Generic object to be cloned.
5
+ * @returns The clone type of th eprovided type.
6
+ */
7
+ export declare function cloneDeep<T>(source: T): T;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This function is used to create classes for component's while keeping the intellisens up for TailwindCSS and other extensions.
3
+ *
4
+ * @param input Generic type to be created.
5
+ * @returns The generic type's definition.
6
+ */
7
+ export declare function createClass<T>(input: T): T;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This function is used to create themes for component's while keeping the intellisens up for TailwindCSS and other extensions.
3
+ *
4
+ * @param input Generic type to be created.
5
+ * @returns The generic type's definition.
6
+ */
7
+ export declare function createTheme<T>(input: T): T;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Check if the provided parameter is an object or not.
3
+ *
4
+ * @param item The unknown type parameter.
5
+ * @returns true if it's an ibject ; false otherwise.
6
+ */
7
+ export declare function isObject(item: unknown): item is Record<string, unknown>;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Merge two objects into one.
3
+ *
4
+ * @param target Object to be merged.
5
+ * @param source Object to be merged.
6
+ * @returns The merged object.
7
+ */
8
+ export declare function mergeTheme<T extends object, S extends object>(target: T, source: S): T & S;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Return theme value to an indented string.
3
+ *
4
+ * @param value The theme to be stringify.
5
+ * @returns The theme as string.
6
+ */
7
+ export declare function themeToString(value: unknown): string;
package/package.json CHANGED
@@ -1,32 +1,7 @@
1
1
  {
2
2
  "name": "flowbite-angular",
3
- "version": "0.0.2",
4
- "license": "MIT",
3
+ "version": "1.0.0-alpha.2",
5
4
  "private": false,
6
- "homepage": "https://flowbite-angular.com",
7
- "author": {
8
- "name": "Nasreddine Bac Ali",
9
- "email": "nasreddine.bacali95@gmail.com",
10
- "url": "https://github.com/bacali95"
11
- },
12
- "bugs": {
13
- "url": "https://github.com/themesberg/flowbite-angular/issues"
14
- },
15
- "repository": {
16
- "url": "https://github.com/themesberg/flowbite-angular",
17
- "type": "git"
18
- },
19
- "peerDependencies": {
20
- "@angular/common": "^13.3.0",
21
- "@angular/core": "^13.3.0",
22
- "flowbite": "^1.4.5",
23
- "rxjs": "~7.4.0",
24
- "@angular/router": "~13.3.0",
25
- "@angular/platform-browser": "~13.3.0"
26
- },
27
- "dependencies": {
28
- "tslib": "^2.3.0"
29
- },
30
5
  "keywords": [
31
6
  "angular",
32
7
  "design-system",
@@ -36,24 +11,35 @@
36
11
  "flowbite-angular",
37
12
  "flowbite-angular-components"
38
13
  ],
39
- "module": "fesm2015/flowbite-angular.mjs",
40
- "es2020": "fesm2020/flowbite-angular.mjs",
41
- "esm2020": "esm2020/flowbite-angular.mjs",
42
- "fesm2020": "fesm2020/flowbite-angular.mjs",
43
- "fesm2015": "fesm2015/flowbite-angular.mjs",
44
- "typings": "flowbite-angular.d.ts",
14
+ "homepage": "https://flowbite-angular.com",
15
+ "bugs": {
16
+ "url": "https://github.com/themesberg/flowbite-angular/issues"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/themesberg/flowbite-angular"
21
+ },
22
+ "license": "MIT",
23
+ "author": {
24
+ "name": "Nasreddine Bac Ali",
25
+ "email": "nasreddine.bacali95@gmail.com",
26
+ "url": "https://github.com/bacali95"
27
+ },
28
+ "module": "fesm2022/flowbite-angular.mjs",
29
+ "typings": "index.d.ts",
45
30
  "exports": {
46
31
  "./package.json": {
47
32
  "default": "./package.json"
48
33
  },
49
34
  ".": {
50
- "types": "./flowbite-angular.d.ts",
51
- "esm2020": "./esm2020/flowbite-angular.mjs",
52
- "es2020": "./fesm2020/flowbite-angular.mjs",
53
- "es2015": "./fesm2015/flowbite-angular.mjs",
54
- "node": "./fesm2015/flowbite-angular.mjs",
55
- "default": "./fesm2020/flowbite-angular.mjs"
35
+ "types": "./index.d.ts",
36
+ "esm2022": "./esm2022/flowbite-angular.mjs",
37
+ "esm": "./esm2022/flowbite-angular.mjs",
38
+ "default": "./fesm2022/flowbite-angular.mjs"
56
39
  }
57
40
  },
58
- "sideEffects": false
41
+ "sideEffects": false,
42
+ "dependencies": {
43
+ "tslib": "^2.3.0"
44
+ }
59
45
  }
@@ -0,0 +1,6 @@
1
+ export * from './lib/common';
2
+ export * from './lib/components';
3
+ export * from './lib/pipes';
4
+ export * from './lib/services';
5
+ export * from './lib/utils';
6
+ export * from './lib/directives';