@blueprintui/cli 0.0.7 → 0.0.10

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 (210) hide show
  1. package/README.md +22 -2
  2. package/package.json +21 -21
  3. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/.tsbuildinfo +1 -1
  4. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/alert/element.d.ts +1 -1
  5. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/alert/element.js +11 -10
  6. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/breadcrumb/element.d.ts +3 -3
  7. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/breadcrumb/element.js +3 -3
  8. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/button-icon/element.js +1 -1
  9. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/datalist/element.d.ts +0 -2
  10. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/datalist/element.js +0 -6
  11. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/date/element.d.ts +0 -2
  12. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/date/element.js +1 -6
  13. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/drawer/element.d.ts +1 -2
  14. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/drawer/element.js +4 -3
  15. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/file/element.d.ts +0 -1
  16. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/file/element.js +4 -7
  17. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control/element.d.ts +7 -27
  18. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control/element.js +39 -134
  19. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-group/element.d.ts +5 -17
  20. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-group/element.js +17 -36
  21. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-inline/element.d.ts +0 -9
  22. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-inline/element.js +6 -39
  23. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-label/element.d.ts +0 -1
  24. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-label/element.js +0 -2
  25. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-message/element.d.ts +3 -18
  26. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-message/element.js +4 -13
  27. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/form-group/element.d.ts +0 -3
  28. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/form-group/element.js +5 -8
  29. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/utils/context.d.ts +2 -7
  30. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/utils/utils.d.ts +3 -7
  31. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/utils/utils.js +28 -20
  32. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/utils/validate.d.ts +0 -1
  33. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/utils/validate.js +19 -17
  34. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/alert.d.ts +7 -7
  35. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/alert.js +7 -7
  36. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/all.d.ts +1 -4
  37. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/all.js +1 -4
  38. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-expand.d.ts +2 -2
  39. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-expand.js +2 -2
  40. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-handle.d.ts +2 -2
  41. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-handle.js +2 -2
  42. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-icon.d.ts +2 -2
  43. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-icon.js +2 -2
  44. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-sort.d.ts +2 -2
  45. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-sort.js +2 -2
  46. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/color.d.ts +1 -1
  47. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/color.js +1 -1
  48. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/date.d.ts +2 -2
  49. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/date.js +2 -2
  50. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/drawer.d.ts +1 -1
  51. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/drawer.js +1 -1
  52. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/file.d.ts +3 -3
  53. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/file.js +3 -3
  54. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/forms.d.ts +3 -3
  55. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/forms.js +5 -3
  56. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/lazy.d.ts +1 -4
  57. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/lazy.js +1 -4
  58. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/modal.d.ts +1 -1
  59. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/modal.js +1 -1
  60. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/month.d.ts +1 -1
  61. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/month.js +1 -1
  62. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/nav.d.ts +2 -2
  63. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/nav.js +2 -2
  64. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/pagination.d.ts +3 -3
  65. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/pagination.js +3 -3
  66. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/password.d.ts +3 -3
  67. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/password.js +3 -3
  68. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/search.d.ts +1 -1
  69. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/search.js +1 -1
  70. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/time.d.ts +1 -1
  71. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/time.js +1 -1
  72. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/{base → components}/button.d.ts +5 -4
  73. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/{base → components}/button.js +5 -9
  74. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-active.controller.d.ts +1 -0
  75. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-active.controller.js +8 -5
  76. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-control.controller.d.ts +17 -0
  77. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-control.controller.js +67 -0
  78. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-disabled.controller.d.ts +3 -3
  79. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-pressed.controller.d.ts +3 -3
  80. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-readonly.controller.d.ts +12 -0
  81. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-readonly.controller.js +22 -0
  82. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-selected.controller.d.ts +13 -0
  83. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-selected.controller.js +29 -0
  84. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-anchor.controller.d.ts +3 -3
  85. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-button.controller.d.ts +10 -5
  86. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-button.controller.js +51 -1
  87. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-closable.controller.d.ts +14 -0
  88. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-closable.controller.js +30 -0
  89. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-dialog.controller.js +3 -3
  90. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-form.controller.d.ts +27 -0
  91. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-form.controller.js +34 -0
  92. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-popup.controller.js +3 -3
  93. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/index.d.ts +6 -2
  94. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/index.js +6 -2
  95. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/services/global.service.d.ts +0 -2
  96. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/services/global.service.js +0 -1
  97. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/a11y.d.ts +1 -0
  98. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/a11y.js +7 -0
  99. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/dom.d.ts +1 -0
  100. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/dom.js +8 -0
  101. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/events.d.ts +1 -1
  102. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/events.js +1 -1
  103. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/month/element.d.ts +0 -2
  104. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/month/element.js +1 -6
  105. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/nav/element.d.ts +28 -0
  106. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/nav/element.js +13 -10
  107. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/nav/item/element.d.ts +0 -2
  108. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/nav/item/element.js +11 -16
  109. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/popup/element.d.ts +4 -3
  110. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/popup/element.js +4 -3
  111. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/radio/element.d.ts +0 -1
  112. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/radio/element.js +4 -13
  113. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/radio/group/element.d.ts +0 -1
  114. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/radio/group/element.js +0 -12
  115. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/range/element.d.ts +0 -4
  116. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/range/element.js +0 -15
  117. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/select/element.d.ts +0 -2
  118. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/select/element.js +1 -15
  119. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/test/index.d.ts +3 -3
  120. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/test/index.js +6 -36
  121. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/textarea/element.d.ts +0 -1
  122. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/textarea/element.js +0 -1
  123. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/time/element.d.ts +0 -2
  124. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/time/element.js +1 -6
  125. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/tooltip/element.js +1 -1
  126. package/src/index.mjs +31 -1
  127. package/src/rollup.config.mjs +14 -18
  128. package/src/utils.mjs +26 -0
  129. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icon/element.d.ts +0 -35
  130. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icon/element.js +0 -91
  131. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icon/index.d.ts +0 -1
  132. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icon/index.js +0 -1
  133. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/angle.d.ts +0 -12
  134. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/angle.js +0 -8
  135. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/calendar.d.ts +0 -12
  136. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/calendar.js +0 -8
  137. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/check-circle.d.ts +0 -12
  138. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/check-circle.js +0 -8
  139. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/clock.d.ts +0 -12
  140. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/clock.js +0 -8
  141. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/close.d.ts +0 -12
  142. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/close.js +0 -8
  143. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/cloud.d.ts +0 -12
  144. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/cloud.js +0 -8
  145. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/color-picker.d.ts +0 -12
  146. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/color-picker.js +0 -8
  147. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/drag-handle.d.ts +0 -12
  148. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/drag-handle.js +0 -8
  149. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/ellipsis-vertical.d.ts +0 -12
  150. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/ellipsis-vertical.js +0 -8
  151. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/exclamation-circle.d.ts +0 -12
  152. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/exclamation-circle.js +0 -8
  153. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/eye-hide.d.ts +0 -12
  154. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/eye-hide.js +0 -8
  155. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/eye.d.ts +0 -12
  156. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/eye.js +0 -8
  157. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/filter.d.ts +0 -12
  158. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/filter.js +0 -8
  159. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/folder.d.ts +0 -12
  160. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/folder.js +0 -8
  161. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/home.d.ts +0 -12
  162. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/home.js +0 -8
  163. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/icon.service.d.ts +0 -5
  164. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/icon.service.js +0 -17
  165. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/image.d.ts +0 -12
  166. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/image.js +0 -8
  167. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/index.d.ts +0 -25
  168. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/index.js +0 -25
  169. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/info-circle.d.ts +0 -12
  170. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/info-circle.js +0 -8
  171. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/interfaces.d.ts +0 -10
  172. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/interfaces.js +0 -1
  173. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/menu.d.ts +0 -12
  174. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/menu.js +0 -8
  175. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/search.d.ts +0 -12
  176. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/search.js +0 -8
  177. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/step-forward-two.d.ts +0 -12
  178. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/step-forward-two.js +0 -8
  179. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/times.d.ts +0 -12
  180. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/times.js +0 -8
  181. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/unknown.d.ts +0 -12
  182. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/unknown.js +0 -8
  183. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/user.d.ts +0 -12
  184. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/user.js +0 -8
  185. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/warning.d.ts +0 -12
  186. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/warning.js +0 -8
  187. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/icon.d.ts +0 -6
  188. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/icon.js +0 -2
  189. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/link.d.ts +0 -6
  190. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/link.js +0 -2
  191. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/list.d.ts +0 -7
  192. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/list.js +0 -3
  193. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/text.d.ts +0 -6
  194. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/text.js +0 -2
  195. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-submit.controller.d.ts +0 -15
  196. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-submit.controller.js +0 -64
  197. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/link/element.d.ts +0 -22
  198. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/link/element.js +0 -40
  199. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/link/index.d.ts +0 -1
  200. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/link/index.js +0 -1
  201. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/element.d.ts +0 -19
  202. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/element.js +0 -32
  203. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/index.d.ts +0 -2
  204. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/index.js +0 -2
  205. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/item/element.d.ts +0 -18
  206. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/item/element.js +0 -26
  207. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/text/element.d.ts +0 -25
  208. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/text/element.js +0 -60
  209. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/text/index.d.ts +0 -1
  210. package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/text/index.js +0 -1
@@ -32,18 +32,6 @@ export class BpRadioGroup extends BpInternalControlGroup {
32
32
  }
33
33
  firstUpdated(props) {
34
34
  super.firstUpdated(props);
35
- this.#associateRadioControls();
36
- this.#syncRadioControls();
37
- }
38
- #associateRadioControls() {
39
35
  this.controls.forEach(radio => radio && radio.inputControl.setAttribute('name', this.radioName));
40
36
  }
41
- #syncRadioControls() {
42
- this.controls.forEach(c => c.addEventListener('checkedChange', (e) => {
43
- if (e.detail) {
44
- Array.from(this.controls).forEach(c => (c.inputControl.checked = false));
45
- e.target.inputControl.checked = true;
46
- }
47
- }));
48
- }
49
37
  }
@@ -1,4 +1,3 @@
1
- import { PropertyValues } from 'lit';
2
1
  import { BpControl } from '@blueprintui/components/forms';
3
2
  /**
4
3
  * Range
@@ -19,8 +18,5 @@ import { BpControl } from '@blueprintui/components/forms';
19
18
  * @slot - For projecting range input
20
19
  */
21
20
  export declare class BpRange extends BpControl {
22
- #private;
23
21
  static get styles(): CSSStyleSheet[];
24
- protected get inputTemplate(): import("lit-html").TemplateResult<1>;
25
- firstUpdated(props: PropertyValues<this>): void;
26
22
  }
@@ -1,4 +1,3 @@
1
- import { html } from 'lit';
2
1
  import { BpControl } from '@blueprintui/components/forms';
3
2
  import styles from './element.css' assert { type: 'css' };
4
3
  /**
@@ -23,18 +22,4 @@ export class BpRange extends BpControl {
23
22
  static get styles() {
24
23
  return [...super.styles, styles];
25
24
  }
26
- get inputTemplate() {
27
- return html `<div class="input-track"></div>`;
28
- }
29
- firstUpdated(props) {
30
- super.firstUpdated(props);
31
- this.#setTrackWidth();
32
- this.inputControl.addEventListener('input', () => this.#setTrackWidth());
33
- }
34
- #setTrackWidth() {
35
- const value = this.inputControl.valueAsNumber;
36
- const min = this.inputControl.min ? parseInt(this.inputControl.min) : 0;
37
- const max = this.inputControl.max ? parseInt(this.inputControl.max) : 100;
38
- this.style.setProperty('--track-width', `${Math.floor(((value - min) / (max - min)) * 100)}%`);
39
- }
40
25
  }
@@ -24,7 +24,5 @@ import { BpControl } from '@blueprintui/components/forms';
24
24
  export declare class BpSelect extends BpControl {
25
25
  protected get suffixTemplate(): import("lit-html").TemplateResult<1>;
26
26
  static get styles(): CSSStyleSheet[];
27
- protected multiple: boolean;
28
- protected size: boolean;
29
27
  firstUpdated(props: PropertyValues<this>): void;
30
28
  }
@@ -1,5 +1,5 @@
1
1
  import { html } from 'lit';
2
- import { attachRootNodeStyles, listenForAttributeChange } from '@blueprintui/components/internals';
2
+ import { attachRootNodeStyles } from '@blueprintui/components/internals';
3
3
  import { BpControl } from '@blueprintui/components/forms';
4
4
  import { styles as inputStyles } from '@blueprintui/components/input';
5
5
  import globalStyles from './element.global.css' assert { type: 'css' };
@@ -26,28 +26,14 @@ import styles from './element.css' assert { type: 'css' };
26
26
  * @slot - For projecting select and label
27
27
  */
28
28
  export class BpSelect extends BpControl {
29
- static properties = {
30
- multiple: { type: Boolean, reflect: true, attribute: '_multiple' },
31
- size: { type: Boolean, reflect: true, attribute: '_size' }
32
- };
33
29
  get suffixTemplate() {
34
30
  return html `<bp-button-expand expanded readonly></bp-button-expand>`;
35
31
  }
36
32
  static get styles() {
37
33
  return [...super.styles, inputStyles, styles];
38
34
  }
39
- //__BLANK_LINE_PLACEHOLDER_G1JVXUEBNCL6YN5NFE13MD1PT3H9OIHB__
40
- constructor() {
41
- super();
42
- this.multiple = false;
43
- this.size = false;
44
- }
45
35
  firstUpdated(props) {
46
36
  super.firstUpdated(props);
47
37
  attachRootNodeStyles(this, [globalStyles]);
48
- this.multiple = this.inputControl.hasAttribute('multiple');
49
- this.observers.push(listenForAttributeChange(this.inputControl, 'multiple', val => (this.multiple = val !== null)));
50
- this.size = this.inputControl.hasAttribute('size');
51
- this.observers.push(listenForAttributeChange(this.inputControl, 'size', val => (this.size = val !== null)));
52
38
  }
53
39
  }
@@ -1,7 +1,7 @@
1
1
  import { TemplateResult } from 'lit';
2
- export declare function createTestElement(template?: TemplateResult): Promise<HTMLElement>;
3
- export declare function removeTestElement(element: HTMLElement): void;
4
- export declare function componentIsStable(component: any): Promise<any>;
2
+ export declare function createFixture(template?: TemplateResult): Promise<HTMLElement>;
3
+ export declare function removeFixture(element: HTMLElement): void;
4
+ export declare function elementIsStable(component: any): any;
5
5
  export declare function emulateClick(component: HTMLElement | Element): void;
6
6
  /** helpful for capturing a single event in a async test */
7
7
  export declare function onceEvent(element: HTMLElement | Document, event: string): Promise<any>;
@@ -1,5 +1,5 @@
1
1
  import { render } from 'lit';
2
- export function createTestElement(template) {
2
+ export function createFixture(template) {
3
3
  const element = document.createElement('div');
4
4
  document.body.appendChild(element);
5
5
  if (template) {
@@ -7,44 +7,14 @@ export function createTestElement(template) {
7
7
  }
8
8
  return Promise.all(Array.from(document.querySelectorAll(':not(:defined)')).map(el => customElements.whenDefined(el.tagName))).then(() => element);
9
9
  }
10
- export function removeTestElement(element) {
10
+ export function removeFixture(element) {
11
11
  element.remove();
12
12
  }
13
- function retry(fn, maxTries = 10, promise, promiseObject = {
14
- resolve: null,
15
- reject: null,
16
- }) {
17
- maxTries--;
18
- promise =
19
- promise ||
20
- new Promise((resolve, reject) => {
21
- promiseObject.resolve = resolve;
22
- promiseObject.reject = reject;
23
- });
24
- fn()
25
- .then((result) => {
26
- promiseObject.resolve(result);
27
- })
28
- .catch(() => {
29
- if (maxTries > 0) {
30
- retry(fn, maxTries, promise, promiseObject);
31
- }
32
- else {
33
- promiseObject.reject('Max attempts reached');
34
- }
35
- });
36
- return promise;
13
+ function retry(fn, maxTries = 10) {
14
+ return fn().catch(() => maxTries > 0 ? retry(fn, maxTries--) : Promise.reject());
37
15
  }
38
- export function componentIsStable(component) {
39
- return retry(() => new Promise(async (resolve, reject) => {
40
- const stable = await component.updateComplete;
41
- if (stable) {
42
- resolve('success');
43
- }
44
- else {
45
- reject('error');
46
- }
47
- }));
16
+ export function elementIsStable(component) {
17
+ return retry(() => component.updateComplete ? Promise.resolve('') : Promise.reject());
48
18
  }
49
19
  export function emulateClick(component) {
50
20
  const event1 = new MouseEvent('mousedown');
@@ -18,6 +18,5 @@ import { BpControl } from '@blueprintui/components/forms';
18
18
  * @cssprop --background
19
19
  */
20
20
  export declare class BpTextarea extends BpControl {
21
- protected supportsPrefixSuffixActions: boolean;
22
21
  static get styles(): CSSStyleSheet[];
23
22
  }
@@ -19,7 +19,6 @@ import styles from './element.css' assert { type: 'css' };
19
19
  * @cssprop --background
20
20
  */
21
21
  export class BpTextarea extends BpControl {
22
- supportsPrefixSuffixActions = false;
23
22
  static get styles() {
24
23
  return [...super.styles, styles];
25
24
  }
@@ -1,4 +1,3 @@
1
- import { PropertyValues } from 'lit';
2
1
  import { BpControl } from '@blueprintui/components/forms';
3
2
  /**
4
3
  * Time Input
@@ -22,5 +21,4 @@ import { BpControl } from '@blueprintui/components/forms';
22
21
  export declare class BpTime extends BpControl {
23
22
  protected get suffixTemplate(): import("lit-html").TemplateResult<1>;
24
23
  static get styles(): CSSStyleSheet[];
25
- firstUpdated(props: PropertyValues<this>): void;
26
24
  }
@@ -1,5 +1,4 @@
1
1
  import { html } from 'lit';
2
- import { attachRootNodeStyles, indicatorStyles } from '@blueprintui/components/internals';
3
2
  import { BpControl } from '@blueprintui/components/forms';
4
3
  import { styles as inputStyles } from '@blueprintui/components/input';
5
4
  /**
@@ -23,13 +22,9 @@ import { styles as inputStyles } from '@blueprintui/components/input';
23
22
  */
24
23
  export class BpTime extends BpControl {
25
24
  get suffixTemplate() {
26
- return html `<bp-button-icon shape="clock" readonly></bp-button-icon>`;
25
+ return html `<bp-button-icon shape="clock" @click=${() => this.inputControl.showPicker()}></bp-button-icon>`;
27
26
  }
28
27
  static get styles() {
29
28
  return [...super.styles, inputStyles];
30
29
  }
31
- firstUpdated(props) {
32
- super.firstUpdated(props);
33
- attachRootNodeStyles(this, [indicatorStyles]);
34
- }
35
30
  }
@@ -33,6 +33,6 @@ export class BpTooltip extends BpPopup {
33
33
  }
34
34
  firstUpdated(props) {
35
35
  super.firstUpdated(props);
36
- this.popupController.middleware = [arrow({ element: this.arrow, padding: 2 }), offset(15)];
36
+ this.typePopupController.middleware = [arrow({ element: this.arrow, padding: 2 }), offset(15)];
37
37
  }
38
38
  }
package/src/index.mjs CHANGED
@@ -10,6 +10,7 @@ import loadConfigFile from 'rollup/loadConfigFile';
10
10
  import { cp, lstat, readdir } from 'fs/promises';
11
11
  import { readFileSync, writeFileSync } from 'fs';
12
12
  import { join, resolve } from 'path';
13
+ import { getUserConfig } from './utils.mjs';
13
14
 
14
15
  const deepReadDir = async (dirPath) => await Promise.all(
15
16
  (await readdir(dirPath)).map(async (entity) => {
@@ -34,7 +35,7 @@ program
34
35
  .description('build library')
35
36
  .action(async (options, command) => {
36
37
  process.env.BLUEPRINTUI_BUILD = !options.watch ? 'production' : 'development';
37
- process.env.BLUEPRINTUI_CONFIG = command.args[0] ? resolve(command.args[0]) : resolve('./blueprint.config.js');
38
+ process.env.BLUEPRINTUI_CONFIG = command.args[0] ? path.resolve(command.args[0]) : path.resolve('./blueprint.config.js');
38
39
  buildRollup(options);
39
40
  });
40
41
 
@@ -53,6 +54,35 @@ program
53
54
  });
54
55
  });
55
56
 
57
+ program
58
+ .command('api')
59
+ .option('--update')
60
+ .option('--test')
61
+ .description('verify and update custom elements manifest API lockfile')
62
+ .action(async (options, command) => {
63
+ process.env.BLUEPRINTUI_BUILD = !options.watch ? 'production' : 'development';
64
+ process.env.BLUEPRINTUI_CONFIG = command.args[0] ? path.resolve(command.args[0]) : path.resolve('./blueprint.config.js');
65
+
66
+ const config = await getUserConfig();
67
+ const lockfilePath = config.customElementsManifestLockFile ? path.resolve(config.customElementsManifestLockFile) : path.resolve('./custom-elements.lock.json');
68
+ const manifestPath = path.resolve(config.outDir, './custom-elements.json');
69
+ const lockfile = readFileSync(lockfilePath, 'utf8').toString();
70
+ const manifest = readFileSync(manifestPath, 'utf8').toString();
71
+
72
+ if (options.test) {
73
+ if (lockfile !== manifest) {
74
+ console.error(status.error, '🚫 new custom element API changes detected, run "bp api --update" to update the custom-elements.lock.json');
75
+ } else {
76
+ console.log(status.success, `✅ No custom element API changes detected`);
77
+ }
78
+ }
79
+
80
+ if (options.update) {
81
+ writeFileSync(lockfilePath, manifest);
82
+ console.log(status.success, `🔏 custom-elements.lock.json updated to latest API changes`);
83
+ }
84
+ });
85
+
56
86
  program.parse();
57
87
 
58
88
  function buildRollup(args) {
@@ -14,27 +14,13 @@ import { importAssertions } from 'acorn-import-assertions';
14
14
  import { idiomaticDecoratorsTransformer, constructorCleanupTransformer } from '@lit/ts-transformers';
15
15
  import { fileURLToPath } from 'url';
16
16
  import { importAssertionsPlugin } from './import-assert.mjs';
17
+ import { runCustomElementsAnalyzer, getUserConfig } from './utils.mjs';
17
18
  // import { importAssertionsPlugin } from 'rollup-plugin-import-assert';
18
19
 
19
20
  const __filename = fileURLToPath(import.meta.url);
20
21
  const __dirname = path.dirname(__filename);
21
22
 
22
- let userConfig = { };
23
- if (process.env.BLUEPRINTUI_CONFIG) {
24
- userConfig = await import(process.env.BLUEPRINTUI_CONFIG);
25
- }
26
-
27
- const config = {
28
- externals: [],
29
- assets: ['./README.md', './LICENSE.md', './package.json'],
30
- baseDir: './src',
31
- outDir: './dist/lib',
32
- entryPoints: ['./src/**/index.ts'],
33
- tsconfig: './tsconfig.lib.json',
34
- sourcemap: false,
35
- ...userConfig.default?.library
36
- };
37
-
23
+ const config = await getUserConfig();
38
24
  const cwd = process.cwd();
39
25
  const project = {
40
26
  externals: config.externals,
@@ -76,6 +62,7 @@ export default [
76
62
  project.prod ? minifyHTML.default() : [],
77
63
  project.prod ? minifyJavaScript() : [],
78
64
  project.prod ? inlinePackageVersion() : [],
65
+ project.prod ? patchSuperMinify() : [],
79
66
  project.prod ? postClean(): [],
80
67
  project.prod ? packageCheck() : [],
81
68
  project.prod ? customElementsAnalyzer() : [],
@@ -121,6 +108,16 @@ function inlinePackageVersion() {
121
108
  return replace({ preventAssignment: false, values: { PACKAGE_VERSION: project.packageJSON.version } });
122
109
  }
123
110
 
111
+ function patchSuperMinify() {
112
+ return replace({
113
+ preventAssignment: false,
114
+ values: {
115
+ 'super(...arguments),': 'super(...arguments);',
116
+ 'super(),': 'super();',
117
+ }, // safari 15 and latest chromium pupeteer bug with minification optimization in terser
118
+ });
119
+ }
120
+
124
121
  function postClean() {
125
122
  return del({ targets: [`${project.outDir}/**/.tsbuildinfo`, `${project.outDir}/**/_virtual`], hook: 'writeBundle' });
126
123
  }
@@ -137,8 +134,7 @@ function customElementsAnalyzer() {
137
134
  if (copied) {
138
135
  return;
139
136
  } else {
140
- const cemPath = path.resolve('node_modules', '@custom-elements-manifest/analyzer/index.js');
141
- await $`${cemPath} analyze --config ${project.customElementsManifestConfig}`;
137
+ await runCustomElementsAnalyzer(project.customElementsManifestConfig);
142
138
  copied = true;
143
139
  }
144
140
  }
package/src/utils.mjs ADDED
@@ -0,0 +1,26 @@
1
+ import { $, path } from 'zx';
2
+
3
+ export async function runCustomElementsAnalyzer(customElementsManifestConfig) {
4
+ const cemPath = path.resolve('node_modules', '@custom-elements-manifest/analyzer/index.js');
5
+ $.verbose = false;
6
+ return await $`${cemPath} analyze --config ${customElementsManifestConfig} --quiet`;
7
+ }
8
+
9
+ export async function getUserConfig() {
10
+ let userConfig = { };
11
+ if (process.env.BLUEPRINTUI_CONFIG) {
12
+ userConfig = await import(process.env.BLUEPRINTUI_CONFIG);
13
+ }
14
+
15
+ return {
16
+ externals: [],
17
+ assets: ['./README.md', './LICENSE.md', './package.json'],
18
+ customElementsManifestLockFile: './custom-elements.lock.json',
19
+ baseDir: './src',
20
+ outDir: './dist/lib',
21
+ entryPoints: ['./src/**/index.ts'],
22
+ tsconfig: './tsconfig.lib.json',
23
+ sourcemap: false,
24
+ ...userConfig.default?.library
25
+ };
26
+ }
@@ -1,35 +0,0 @@
1
- import { LitElement, PropertyValues } from 'lit';
2
- import { Directions } from '@blueprintui/components/internals';
3
- /**
4
- * Icon
5
- *
6
- * ```typescript
7
- * import '@blueprintui/components/include/icon.js';
8
- * import '@blueprintui/components/icons/user.js';
9
- * ```
10
- *
11
- * ```html
12
- * <bp-icon shape="user"></bp-icon>
13
- * ```
14
- *
15
- * @element bp-icon
16
- * @cssprop --color
17
- * @cssprop --badge-color
18
- */
19
- export declare class BpIcon extends LitElement {
20
- #private;
21
- shape: string;
22
- size: string | 'sm' | 'md' | 'lg' | 'xl';
23
- status: 'neutral' | 'accent' | 'success' | 'warning' | 'danger';
24
- badge: 'neutral' | 'accent' | 'success' | 'warning' | 'danger' | boolean;
25
- direction: Directions;
26
- flip: 'horizontal' | 'vertical';
27
- innerOffset: number;
28
- solid: boolean;
29
- static styles: CSSStyleSheet[];
30
- private svg;
31
- render(): import("lit-html").TemplateResult<1> | import("lit-html").TemplateResult<2>;
32
- firstUpdated(props: PropertyValues<this>): void;
33
- updated(props: PropertyValues<this>): void;
34
- disconnectedCallback(): void;
35
- }
@@ -1,91 +0,0 @@
1
- import { html, LitElement, svg } from 'lit';
2
- import { baseStyles, GlobalStateService, isNumericString } from '@blueprintui/components/internals';
3
- import { IconService } from '@blueprintui/components/icons/icon.service.js';
4
- import styles from './element.css' assert { type: 'css' };
5
- /**
6
- * Icon
7
- *
8
- * ```typescript
9
- * import '@blueprintui/components/include/icon.js';
10
- * import '@blueprintui/components/icons/user.js';
11
- * ```
12
- *
13
- * ```html
14
- * <bp-icon shape="user"></bp-icon>
15
- * ```
16
- *
17
- * @element bp-icon
18
- * @cssprop --color
19
- * @cssprop --badge-color
20
- */
21
- export class BpIcon extends LitElement {
22
- static properties = {
23
- shape: { type: String, reflect: true },
24
- size: { type: String, reflect: true },
25
- status: { type: String, reflect: true },
26
- badge: { type: String, reflect: true },
27
- direction: { type: String, reflect: true },
28
- flip: { type: String, reflect: true },
29
- innerOffset: { type: Number, attribute: 'inner-offset' },
30
- solid: { type: Boolean, reflect: true }
31
- };
32
- static styles = [baseStyles, styles];
33
- //__BLANK_LINE_PLACEHOLDER_G1JVXUEBNCL6YN5NFE13MD1PT3H9OIHB__
34
- constructor() {
35
- super();
36
- this.shape = 'unknown';
37
- this.status = 'neutral';
38
- this.solid = false;
39
- }
40
- get svg() {
41
- return this.renderRoot?.querySelector("svg") ?? null;
42
- }
43
- #subscription;
44
- get #iconSvg() {
45
- return `${(IconService.registry[this.shape] ?? IconService.registry['unknown']).shape.default}${this.badge ? '<circle cx="20" cy="4" r="3" class="badge"></circle>' : ''}`;
46
- }
47
- render() {
48
- return typeof IconService.registry[this.shape]?.shape === 'string'
49
- ? html `<span .innerHTML=${IconService.registry[this.shape]?.shape}></span>`
50
- : svg `<svg .innerHTML=${this.#iconSvg} fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"></svg>`;
51
- }
52
- firstUpdated(props) {
53
- super.firstUpdated(props);
54
- let prev = 'unknown';
55
- this.#subscription = GlobalStateService.stateUpdate.subscribe(update => {
56
- if (update.type === 'iconRegistry' && IconService.registry[this.shape] && prev !== this.shape) {
57
- prev = this.shape;
58
- this.requestUpdate('shape');
59
- }
60
- });
61
- }
62
- updated(props) {
63
- if (props.has('innerOffset') && this.innerOffset > 0) {
64
- this.#calculateInnerOffset();
65
- }
66
- if (props.has('size') && this.size !== props.get('size')) {
67
- this.#calculateSize();
68
- }
69
- }
70
- disconnectedCallback() {
71
- super.disconnectedCallback();
72
- this.#subscription?.unsubscribe();
73
- }
74
- #calculateSize() {
75
- if (isNumericString(this.size)) {
76
- this.style.setProperty('--width', `${this.size}px`);
77
- this.style.setProperty('--height', `${this.size}px`);
78
- }
79
- else {
80
- this.style.removeProperty('--width');
81
- this.style.removeProperty('--height');
82
- }
83
- }
84
- #calculateInnerOffset() {
85
- const val = `${-1 * this.innerOffset}px`;
86
- const dimension = `calc(100% + ${this.innerOffset * 2}px)`;
87
- this.svg.style.width = dimension;
88
- this.svg.style.height = dimension;
89
- this.svg.style.margin = `${val} 0 0 ${val}`;
90
- }
91
- }
@@ -1,12 +0,0 @@
1
- import { IconDefinition } from './interfaces.js';
2
- export declare const angleIcon: {
3
- name: string;
4
- shape: {
5
- default: string;
6
- };
7
- };
8
- declare module '@blueprintui/components/icon' {
9
- interface IconRegistry {
10
- ['angle']: IconDefinition;
11
- }
12
- }
@@ -1,8 +0,0 @@
1
- import { IconService } from './icon.service.js';
2
- export const angleIcon = {
3
- name: 'angle',
4
- shape: {
5
- default: '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 15l7-7 7 7"></path></svg>'
6
- }
7
- };
8
- IconService.add(angleIcon);
@@ -1,12 +0,0 @@
1
- import { IconDefinition } from './interfaces.js';
2
- export declare const calendarIcon: {
3
- name: string;
4
- shape: {
5
- default: string;
6
- };
7
- };
8
- declare module '@blueprintui/components/icon' {
9
- interface IconRegistry {
10
- ['calendar']: IconDefinition;
11
- }
12
- }
@@ -1,8 +0,0 @@
1
- import { IconService } from './icon.service.js';
2
- export const calendarIcon = {
3
- name: 'calendar',
4
- shape: {
5
- default: '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path>'
6
- }
7
- };
8
- IconService.add(calendarIcon);
@@ -1,12 +0,0 @@
1
- import { IconDefinition } from './interfaces.js';
2
- export declare const checkCircleIcon: {
3
- name: string;
4
- shape: {
5
- default: string;
6
- };
7
- };
8
- declare module '@blueprintui/components/icon' {
9
- interface IconRegistry {
10
- ['check-circle']: IconDefinition;
11
- }
12
- }
@@ -1,8 +0,0 @@
1
- import { IconService } from './icon.service.js';
2
- export const checkCircleIcon = {
3
- name: 'check-circle',
4
- shape: {
5
- default: '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>'
6
- }
7
- };
8
- IconService.add(checkCircleIcon);
@@ -1,12 +0,0 @@
1
- import { IconDefinition } from './interfaces.js';
2
- export declare const clockIcon: {
3
- name: string;
4
- shape: {
5
- default: string;
6
- };
7
- };
8
- declare module '@blueprintui/components/icon' {
9
- interface IconRegistry {
10
- ['clock']: IconDefinition;
11
- }
12
- }
@@ -1,8 +0,0 @@
1
- import { IconService } from './icon.service.js';
2
- export const clockIcon = {
3
- name: 'clock',
4
- shape: {
5
- default: '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>'
6
- }
7
- };
8
- IconService.add(clockIcon);
@@ -1,12 +0,0 @@
1
- import { IconDefinition } from './interfaces.js';
2
- export declare const closeIcon: {
3
- name: string;
4
- shape: {
5
- default: string;
6
- };
7
- };
8
- declare module '@blueprintui/components/icon' {
9
- interface IconRegistry {
10
- ['close']: IconDefinition;
11
- }
12
- }
@@ -1,8 +0,0 @@
1
- import { IconService } from './icon.service.js';
2
- export const closeIcon = {
3
- name: 'close',
4
- shape: {
5
- default: '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>',
6
- }
7
- };
8
- IconService.add(closeIcon);
@@ -1,12 +0,0 @@
1
- import { IconDefinition } from './interfaces.js';
2
- export declare const cloudIcon: {
3
- name: string;
4
- shape: {
5
- default: string;
6
- };
7
- };
8
- declare module '@blueprintui/components/icon' {
9
- interface IconRegistry {
10
- ['cloud']: IconDefinition;
11
- }
12
- }
@@ -1,8 +0,0 @@
1
- import { IconService } from './icon.service.js';
2
- export const cloudIcon = {
3
- name: 'cloud',
4
- shape: {
5
- default: '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"></path>'
6
- }
7
- };
8
- IconService.add(cloudIcon);