@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
@@ -1,4 +1,5 @@
1
1
  import { attachInternals } from '../utils/a11y.js';
2
+ import { onKeys, stopEvent } from '../utils/events.js';
2
3
  /**
3
4
  * Provides nessesary attributes for indicating a non-button element as an accessible button type.
4
5
  */
@@ -9,22 +10,71 @@ export class TypeButtonController {
9
10
  host;
10
11
  constructor(host) {
11
12
  this.host = host;
13
+ attachInternals(this.host);
12
14
  this.host.addController(this);
13
15
  }
14
16
  hostConnected() {
15
- attachInternals(this.host);
16
17
  this.host.tabIndex = 0; // element can be focused synchronously
18
+ Object.defineProperty(this.host, 'form', { get: () => this.host._internals.form });
17
19
  }
18
20
  async hostUpdated() {
19
21
  await this.host.updateComplete;
22
+ this.#updateFocus();
23
+ this.#updateRole();
24
+ this.#updateType();
25
+ this.#updateReadonly();
26
+ this.#updateEventListeners();
27
+ }
28
+ #updateRole() {
20
29
  if (!this.host._internals.role) {
21
30
  this.host._internals.role = 'button';
22
31
  }
32
+ }
33
+ #updateType() {
34
+ if (!this.host.type && this.host.closest('form')) {
35
+ this.host.type = 'submit';
36
+ }
37
+ }
38
+ #updateFocus() {
23
39
  this.host.tabIndex = !this.host.disabled ? 0 : -1;
40
+ }
41
+ #updateReadonly() {
24
42
  if (this.host.readonly) {
25
43
  this.host._internals.role = null;
26
44
  this.host.tabIndex = null;
27
45
  this.host.removeAttribute('tabindex');
28
46
  }
29
47
  }
48
+ #updateEventListeners() {
49
+ if (this.host.readonly || this.host.disabled) {
50
+ this.host.removeEventListener('click', this.#click.bind(this));
51
+ this.host.removeEventListener('keyup', this.#keyup.bind(this));
52
+ }
53
+ else {
54
+ this.host.addEventListener('click', this.#click.bind(this));
55
+ this.host.addEventListener('keyup', this.#keyup.bind(this));
56
+ }
57
+ }
58
+ #click(event) {
59
+ if (this.host.disabled) {
60
+ stopEvent(event);
61
+ }
62
+ else if (this.host.type === 'submit') {
63
+ const event = new SubmitEvent('submit', { cancelable: true });
64
+ this.host._internals.form.dispatchEvent(event);
65
+ if (!event.defaultPrevented) {
66
+ this.host._internals.form.submit();
67
+ }
68
+ }
69
+ }
70
+ #keyup(event) {
71
+ onKeys(['Enter', 'Space'], event, () => {
72
+ if (this.host.disabled) {
73
+ stopEvent(event);
74
+ }
75
+ else {
76
+ this.host.click();
77
+ }
78
+ });
79
+ }
30
80
  }
@@ -0,0 +1,14 @@
1
+ import { ReactiveController, ReactiveElement } from 'lit';
2
+ export declare type TypeClosable = ReactiveElement & {
3
+ closable: boolean;
4
+ };
5
+ /**
6
+ * Provides closable interaction behavior to a component.
7
+ */
8
+ export declare function typeClosable<T extends TypeClosable>(): ClassDecorator;
9
+ export declare class TypeClosableController<T extends TypeClosable> implements ReactiveController {
10
+ private host;
11
+ constructor(host: T);
12
+ hostConnected(): void;
13
+ close(): void;
14
+ }
@@ -0,0 +1,30 @@
1
+ import { attachInternals } from '../utils/a11y.js';
2
+ /**
3
+ * Provides closable interaction behavior to a component.
4
+ */
5
+ export function typeClosable() {
6
+ return (target) => target.addInitializer((instance) => {
7
+ if (!instance.typeClosableController) {
8
+ Object.defineProperty(instance, 'typeClosableController', {
9
+ value: new TypeClosableController(instance),
10
+ writable: false
11
+ });
12
+ }
13
+ return instance.typeClosableController;
14
+ });
15
+ }
16
+ export class TypeClosableController {
17
+ host;
18
+ constructor(host) {
19
+ this.host = host;
20
+ this.host.addController(this);
21
+ }
22
+ hostConnected() {
23
+ attachInternals(this.host);
24
+ }
25
+ close() {
26
+ if (this.host.closable) {
27
+ this.host.dispatchEvent(new CustomEvent('close'));
28
+ }
29
+ }
30
+ }
@@ -4,13 +4,13 @@ import { listenForAttributeChange } from '../utils/events';
4
4
  */
5
5
  export function typeDialog() {
6
6
  return (target) => target.addInitializer((instance) => {
7
- if (!instance.dialogController) {
8
- Object.defineProperty(instance, 'dialogController', {
7
+ if (!instance.typeDialogController) {
8
+ Object.defineProperty(instance, 'typeDialogController', {
9
9
  value: new TypeDialogController(instance),
10
10
  writable: false
11
11
  });
12
12
  }
13
- return instance.dialogController;
13
+ return instance.typeDialogController;
14
14
  });
15
15
  }
16
16
  export class TypeDialogController {
@@ -0,0 +1,27 @@
1
+ import { ReactiveController, ReactiveElement } from 'lit';
2
+ export declare type FormControlBase = {
3
+ formAssociated?: true;
4
+ form: HTMLFormElement;
5
+ name: string;
6
+ type: string;
7
+ validity: any;
8
+ validationMessage: string;
9
+ willValidate: boolean;
10
+ labels: NodeListOf<HTMLLabelElement>;
11
+ checkValidity: () => any;
12
+ reportValidity: () => any;
13
+ };
14
+ export declare type FormControl = FormControlBase & {
15
+ _internals?: ElementInternals;
16
+ checked?: boolean;
17
+ type?: string;
18
+ disabled: boolean;
19
+ value: string;
20
+ };
21
+ export declare function typeFormControl<T extends FormControl & ReactiveElement>(): ClassDecorator;
22
+ export declare class TypeFormControlController<T extends FormControl & ReactiveElement> implements ReactiveController {
23
+ private host;
24
+ constructor(host: T & FormControl);
25
+ hostConnected(): void;
26
+ hostUpdated(): void;
27
+ }
@@ -0,0 +1,34 @@
1
+ import { attachInternals } from '../utils/a11y.js';
2
+ import { StateActiveController } from './state-active.controller.js';
3
+ import { StateDisabledController } from './state-disabled.controller.js';
4
+ export function typeFormControl() {
5
+ return (target) => target.addInitializer((instance) => new TypeFormControlController(instance));
6
+ }
7
+ export class TypeFormControlController {
8
+ host;
9
+ constructor(host) {
10
+ this.host = host;
11
+ attachInternals(this.host);
12
+ new StateDisabledController(this.host);
13
+ new StateActiveController(this.host);
14
+ this.host.addController(this);
15
+ this.host._internals.role = 'none';
16
+ Object.defineProperty(this.host, 'form', { get: () => this.host._internals.form });
17
+ Object.defineProperty(this.host, 'name', { get: () => this.host.getAttribute('name') });
18
+ Object.defineProperty(this.host, 'labels', { get: () => this.host._internals.labels });
19
+ Object.defineProperty(this.host, 'validity', { get: () => this.host._internals.validity });
20
+ Object.defineProperty(this.host, 'validationMessage', { get: () => this.host._internals.validationMessage });
21
+ Object.defineProperty(this.host, 'willValidate', { get: () => this.host._internals.willValidate });
22
+ this.host.checkValidity = () => this.host._internals.checkValidity();
23
+ this.host.reportValidity = () => this.host._internals.reportValidity();
24
+ }
25
+ hostConnected() {
26
+ this.host.setAttribute('bp-control', '');
27
+ }
28
+ hostUpdated() {
29
+ this.host._internals.setFormValue(this.host.value);
30
+ if (this.host.checked === false) {
31
+ this.host._internals.setFormValue(null);
32
+ }
33
+ }
34
+ }
@@ -1,13 +1,13 @@
1
1
  import { computePosition, autoUpdate, autoPlacement } from '@floating-ui/dom';
2
2
  export function typePopup() {
3
3
  return (target) => target.addInitializer((instance) => {
4
- if (!instance.popupController) {
5
- Object.defineProperty(instance, 'popupController', {
4
+ if (!instance.typePopupController) {
5
+ Object.defineProperty(instance, 'typePopupController', {
6
6
  value: new TypePopupController(instance),
7
7
  writable: false
8
8
  });
9
9
  }
10
- return instance.popupController;
10
+ return instance.typePopupController;
11
11
  });
12
12
  }
13
13
  export class TypePopupController {
@@ -1,5 +1,5 @@
1
1
  export * from './styles/styles.js';
2
- export * from './base/button.js';
2
+ export * from './components/button.js';
3
3
  export * from './controllers/aria-group.controller.js';
4
4
  export * from './controllers/aria-menu.controller.js';
5
5
  export * from './controllers/aria-multiselectable.controller.js';
@@ -13,13 +13,17 @@ export * from './controllers/key-grid.controller.js';
13
13
  export * from './controllers/key-list.controller.js';
14
14
  export * from './controllers/state-active.controller.js';
15
15
  export * from './controllers/state-disabled.controller.js';
16
+ export * from './controllers/state-control.controller.js';
16
17
  export * from './controllers/state-expanded.controller.js';
17
18
  export * from './controllers/state-pressed.controller.js';
19
+ export * from './controllers/state-readonly.controller.js';
20
+ export * from './controllers/state-selected.controller.js';
18
21
  export * from './controllers/type-anchor.controller.js';
19
22
  export * from './controllers/type-button.controller.js';
23
+ export * from './controllers/type-closable.controller.js';
20
24
  export * from './controllers/type-dialog.controller.js';
25
+ export * from './controllers/type-form.controller.js';
21
26
  export * from './controllers/type-popup.controller.js';
22
- export * from './controllers/type-submit.controller.js';
23
27
  export * from './interfaces/interfaces.js';
24
28
  export * from './services/global.service.js';
25
29
  export * from './services/i18n.service.js';
@@ -1,5 +1,5 @@
1
1
  export * from './styles/styles.js';
2
- export * from './base/button.js';
2
+ export * from './components/button.js';
3
3
  export * from './controllers/aria-group.controller.js';
4
4
  export * from './controllers/aria-menu.controller.js';
5
5
  export * from './controllers/aria-multiselectable.controller.js';
@@ -13,13 +13,17 @@ export * from './controllers/key-grid.controller.js';
13
13
  export * from './controllers/key-list.controller.js';
14
14
  export * from './controllers/state-active.controller.js';
15
15
  export * from './controllers/state-disabled.controller.js';
16
+ export * from './controllers/state-control.controller.js';
16
17
  export * from './controllers/state-expanded.controller.js';
17
18
  export * from './controllers/state-pressed.controller.js';
19
+ export * from './controllers/state-readonly.controller.js';
20
+ export * from './controllers/state-selected.controller.js';
18
21
  export * from './controllers/type-anchor.controller.js';
19
22
  export * from './controllers/type-button.controller.js';
23
+ export * from './controllers/type-closable.controller.js';
20
24
  export * from './controllers/type-dialog.controller.js';
25
+ export * from './controllers/type-form.controller.js';
21
26
  export * from './controllers/type-popup.controller.js';
22
- export * from './controllers/type-submit.controller.js';
23
27
  export * from './interfaces/interfaces.js';
24
28
  export * from './services/global.service.js';
25
29
  export * from './services/i18n.service.js';
@@ -1,7 +1,6 @@
1
1
  declare global {
2
2
  interface Window {
3
3
  blueprintuiGlobal: GlobalState;
4
- blueprintuiGlobalChannelId: string;
5
4
  structuredClone: <T>(value: T, transferables?: any) => T;
6
5
  }
7
6
  }
@@ -10,7 +9,6 @@ export interface BpState {
10
9
  production: boolean;
11
10
  };
12
11
  i18nRegistry: Readonly<Record<string, any>>;
13
- iconRegistry: Readonly<Record<string, unknown>>;
14
12
  }
15
13
  export declare class GlobalState {
16
14
  #private;
@@ -5,7 +5,6 @@ export class GlobalState {
5
5
  #state = {
6
6
  environment: { production: false },
7
7
  i18nRegistry: {},
8
- iconRegistry: {},
9
8
  };
10
9
  stateUpdate = this.#stateUpdate.toEventObservable();
11
10
  get state() {
@@ -1,3 +1,4 @@
1
1
  export declare function attachInternals(element: HTMLElement & {
2
2
  _internals?: ElementInternals;
3
3
  }): void;
4
+ export declare function associateAriaDescribedBy(element: HTMLElement, descriptions: HTMLElement[]): void;
@@ -1,3 +1,4 @@
1
+ import { createId } from './string.js';
1
2
  export function attachInternals(element) {
2
3
  try {
3
4
  element._internals = element.attachInternals();
@@ -6,3 +7,9 @@ export function attachInternals(element) {
6
7
  return;
7
8
  }
8
9
  }
10
+ export function associateAriaDescribedBy(element, descriptions) {
11
+ element.setAttribute('aria-describedby', descriptions.map(d => {
12
+ d.id = d.id?.length ? d.id : createId();
13
+ return d.id;
14
+ }).join(' '));
15
+ }
@@ -1,3 +1,4 @@
1
1
  export declare function attachRootNodeStyles(host: HTMLElement | Element | ParentNode, styles: CSSStyleSheet[]): void;
2
2
  /** right click with context menus & keyboard mouse control https://apple.stackexchange.com/questions/32715/how-do-i-open-the-context-menu-from-a-mac-keyboard */
3
3
  export declare function contextMenuClick(event: MouseEvent): boolean;
4
+ export declare function toggleState(internals: ElementInternals, state: string, value: boolean): void;
@@ -7,3 +7,11 @@ export function attachRootNodeStyles(host, styles) {
7
7
  export function contextMenuClick(event) {
8
8
  return (event.buttons === 2 && !event.ctrlKey) || (event.buttons === 1 && event.ctrlKey);
9
9
  }
10
+ export function toggleState(internals, state, value) {
11
+ if (value) {
12
+ internals.states.add(state);
13
+ }
14
+ else {
15
+ internals.states.delete(state);
16
+ }
17
+ }
@@ -3,5 +3,5 @@ export declare function onKeys(events: string[], event: KeyboardEvent, fn: () =>
3
3
  export declare const getElementUpdates: (element: HTMLElement, propertyKey: string, fn: (value: any) => void) => MutationObserver;
4
4
  export declare function listenForAttributeChange(element: HTMLElement, attrName: string, fn: (attrValue: string | null) => void): MutationObserver;
5
5
  export declare function onChildListMutation(element: HTMLElement, fn: (mutation?: MutationRecord) => void): MutationObserver;
6
- export declare function listenForAttributeListChange(element: HTMLElement, attrNames: string[], fn: (attrValue: string | null) => void): MutationObserver;
6
+ export declare function listenForAttributeListChange(element: HTMLElement, attrNames: string[], fn: (mutation: MutationRecord) => void): MutationObserver;
7
7
  export declare function onFirstInteraction(element: HTMLElement): Promise<null>;
@@ -50,7 +50,7 @@ export function listenForAttributeListChange(element, attrNames, fn) {
50
50
  const observer = new MutationObserver(mutations => {
51
51
  const mutation = mutations.find(m => attrNames.find(i => m.attributeName === i));
52
52
  if (mutation) {
53
- fn(element.getAttribute(mutation.attributeName));
53
+ fn(mutation);
54
54
  }
55
55
  });
56
56
  observer.observe(element, { attributes: true, attributeFilter: attrNames, subtree: true });
@@ -1,4 +1,3 @@
1
- import { PropertyValues } from 'lit';
2
1
  import { BpControl } from '@blueprintui/components/forms';
3
2
  /**
4
3
  * Month Input
@@ -22,5 +21,4 @@ import { BpControl } from '@blueprintui/components/forms';
22
21
  export declare class BpMonth 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,6 +1,5 @@
1
1
  import { html } from 'lit';
2
2
  import { BpControl } from '@blueprintui/components/forms';
3
- import { attachRootNodeStyles, indicatorStyles } from '@blueprintui/components/internals';
4
3
  import { styles as inputStyles } from '@blueprintui/components/input';
5
4
  /**
6
5
  * Month Input
@@ -23,13 +22,9 @@ import { styles as inputStyles } from '@blueprintui/components/input';
23
22
  */
24
23
  export class BpMonth extends BpControl {
25
24
  get suffixTemplate() {
26
- return html `<bp-button-icon shape="calendar" readonly></bp-button-icon>`;
25
+ return html `<bp-button-icon shape="calendar" @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
  }
@@ -17,6 +17,34 @@ export declare class BpNav extends LitElement {
17
17
  #private;
18
18
  expanded: boolean;
19
19
  expandable: boolean;
20
+ i18n: {
21
+ sort: string;
22
+ expand: string;
23
+ close: string;
24
+ resize: string;
25
+ filter: string;
26
+ loading: string;
27
+ show: string;
28
+ hide: string;
29
+ previous: string;
30
+ next: string;
31
+ first: string;
32
+ last: string;
33
+ today: string;
34
+ browse: string;
35
+ removeFile: string;
36
+ files: string;
37
+ resizeColumn: string;
38
+ closeDetails: string;
39
+ noData: string;
40
+ action: string;
41
+ dropTarget: string;
42
+ firstPage: string;
43
+ previousPage: string;
44
+ nextPage: string;
45
+ lastPage: string;
46
+ pageSize: string;
47
+ };
20
48
  get ref(): {
21
49
  items: NodeListOf<BpNavItem>;
22
50
  };
@@ -1,6 +1,6 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { html, LitElement } from 'lit';
3
- import { ariaNavigation, baseStyles, elevationStyles, keyList } from '@blueprintui/components/internals';
3
+ import { ariaNavigation, baseStyles, elevationStyles, I18nService, keyList, stateExpanded, toggleState } from '@blueprintui/components/internals';
4
4
  import styles from './element.css' assert { type: 'css' };
5
5
  /**
6
6
  * ```typescript
@@ -18,12 +18,14 @@ import styles from './element.css' assert { type: 'css' };
18
18
  let BpNav = class BpNav extends LitElement {
19
19
  static properties = {
20
20
  expanded: { type: Boolean, reflect: true },
21
- expandable: { type: Boolean, reflect: true }
21
+ expandable: { type: Boolean, reflect: true },
22
+ i18n: { type: Object }
22
23
  };
23
24
  constructor() {
24
25
  super(...arguments);
25
26
  this.expanded = false;
26
27
  this.expandable = false;
28
+ this.i18n = I18nService.keys.actions;
27
29
  }
28
30
  get ref() {
29
31
  return {
@@ -38,13 +40,13 @@ let BpNav = class BpNav extends LitElement {
38
40
  }
39
41
  render() {
40
42
  return html `
41
- <div elevation class="private-host">
42
- ${this.expandable ? html `
43
- <bp-nav-item @click=${this.#change}>
44
- <bp-icon shape="angle" .direction=${this.expanded ? 'left' : 'right'}></bp-icon>
45
- </bp-nav-item>` : ''}
46
- <slot></slot>
47
- </div>
43
+ <div elevation class="private-host">
44
+ ${this.expandable ? html `
45
+ <bp-nav-item @click=${this.#change} aria-label=${this.expanded ? this.i18n.close : this.i18n.expand}>
46
+ <bp-icon shape="angle" .direction=${this.expanded ? 'left' : 'right'}></bp-icon>
47
+ </bp-nav-item>` : ''}
48
+ <slot></slot>
49
+ </div>
48
50
  `;
49
51
  }
50
52
  async connectedCallback() {
@@ -55,13 +57,14 @@ let BpNav = class BpNav extends LitElement {
55
57
  }
56
58
  updated(props) {
57
59
  super.updated(props);
58
- this.#items.forEach(i => i._expanded = this.expanded);
60
+ this.#items.forEach(i => toggleState(i._internals, '--group-expanded', this.expanded));
59
61
  }
60
62
  #change() {
61
63
  this.dispatchEvent(new CustomEvent('change', { detail: this.expanded }));
62
64
  }
63
65
  };
64
66
  BpNav = __decorate([
67
+ stateExpanded(),
65
68
  ariaNavigation(),
66
69
  keyList({ layout: 'both', loop: true })
67
70
  ], BpNav);
@@ -8,8 +8,6 @@ import { BaseButton } from '@blueprintui/components/internals';
8
8
  */
9
9
  export declare class BpNavItem extends BaseButton {
10
10
  #private;
11
- /** @private */
12
- _expanded: boolean;
13
11
  selected: boolean;
14
12
  static styles: CSSStyleSheet[];
15
13
  render(): import("lit-html").TemplateResult<1>;
@@ -1,6 +1,6 @@
1
+ import { __decorate } from "tslib";
1
2
  import { html } from 'lit';
2
- import { ifDefined } from 'lit/directives/if-defined.js';
3
- import { baseStyles, interactionStyles, BaseButton } from '@blueprintui/components/internals';
3
+ import { baseStyles, interactionStyles, BaseButton, stateSelected } from '@blueprintui/components/internals';
4
4
  import styles from './element.css' assert { type: 'css' };
5
5
  /**
6
6
  * Nav Item
@@ -9,33 +9,28 @@ import styles from './element.css' assert { type: 'css' };
9
9
  * @slot - content
10
10
  * @cssprop --background
11
11
  */
12
- export class BpNavItem extends BaseButton {
12
+ let BpNavItem = class BpNavItem extends BaseButton {
13
13
  static properties = {
14
- _expanded: { type: Boolean, reflect: true },
15
14
  selected: { type: Boolean, reflect: true }
16
15
  };
17
- static styles = [baseStyles, interactionStyles, styles];
18
- //__BLANK_LINE_PLACEHOLDER_G1JVXUEBNCL6YN5NFE13MD1PT3H9OIHB__
19
16
  constructor() {
20
- super();
21
- /** @private */
22
- this._expanded = false;
17
+ super(...arguments);
23
18
  this.selected = false;
24
19
  }
20
+ static styles = [baseStyles, interactionStyles, styles];
25
21
  get #icons() {
26
22
  return this.querySelectorAll('bp-icon');
27
23
  }
28
24
  render() {
29
25
  return html `<div interaction class="private-host">
30
- ${this.href ? html `
31
- <a href=${this.href} target=${ifDefined(this.target)}>
32
- <slot name="icon"></slot>
33
- <slot default @slotchange=${this.#updateSlots}></slot>
34
- </a>`
35
- : html `<slot name="icon"></slot><slot default @slotchange=${this.#updateSlots}></slot>`}
26
+ <slot name="icon"></slot><slot default @slotchange=${this.#updateSlots}></slot>
36
27
  </div>`;
37
28
  }
38
29
  #updateSlots() {
39
30
  this.#icons.forEach(i => i.slot = 'icon');
40
31
  }
41
- }
32
+ };
33
+ BpNavItem = __decorate([
34
+ stateSelected()
35
+ ], BpNavItem);
36
+ export { BpNavItem };
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
- import { Position, TypeDialogController, TypePopupController } from '@blueprintui/components/internals';
2
+ import { Position, TypeDialogController, TypePopupController, TypeClosableController } from '@blueprintui/components/internals';
3
3
  /**
4
4
  * ```typescript
5
5
  * import '@blueprintui/components/include/popup.js';
@@ -27,7 +27,8 @@ export declare class BpPopup extends LitElement {
27
27
  get popup(): HTMLElement;
28
28
  get dialog(): HTMLElement;
29
29
  protected get arrowTemplate(): import("lit-html").TemplateResult<1>;
30
- protected dialogController: TypeDialogController<this>;
31
- protected popupController: TypePopupController<this>;
30
+ protected typeDialogController: TypeDialogController<this>;
31
+ protected typePopupController: TypePopupController<this>;
32
+ protected typeClosableController: TypeClosableController<this>;
32
33
  render(): import("lit-html").TemplateResult<1>;
33
34
  }
@@ -1,6 +1,6 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { html, LitElement } from 'lit';
3
- import { baseStyles, typePopup, typeDialog } from '@blueprintui/components/internals';
3
+ import { baseStyles, typePopup, typeDialog, typeClosable } from '@blueprintui/components/internals';
4
4
  import styles from './element.css' assert { type: 'css' };
5
5
  /**
6
6
  * ```typescript
@@ -49,7 +49,7 @@ let BpPopup = class BpPopup extends LitElement {
49
49
  return html `
50
50
  ${this.arrowTemplate}
51
51
  <div class="focus-wrap"></div>
52
- ${this.closable ? html `<bp-button-icon @click=${() => this.dialogController.close()} aria-label="close modal" shape="close" type="button"></bp-button-icon>` : ''}
52
+ ${this.closable ? html `<bp-button-icon @click=${() => this.typeClosableController.close()} aria-label="close modal" shape="close" type="button"></bp-button-icon>` : ''}
53
53
  <slot name="header"></slot>
54
54
  <div class="content">
55
55
  <slot></slot>
@@ -66,6 +66,7 @@ let BpPopup = class BpPopup extends LitElement {
66
66
  };
67
67
  BpPopup = __decorate([
68
68
  typePopup(),
69
- typeDialog()
69
+ typeDialog(),
70
+ typeClosable()
70
71
  ], BpPopup);
71
72
  export { BpPopup };
@@ -18,7 +18,6 @@ import { BpInternalControlInline } from '@blueprintui/components/forms';
18
18
  * @slot - For projecting radio input
19
19
  */
20
20
  export declare class BpRadio extends BpInternalControlInline {
21
- #private;
22
21
  static get styles(): CSSStyleSheet[];
23
22
  firstUpdated(props: PropertyValues<this>): void;
24
23
  }
@@ -23,19 +23,10 @@ export class BpRadio extends BpInternalControlInline {
23
23
  }
24
24
  firstUpdated(props) {
25
25
  super.firstUpdated(props);
26
- if (!this.isControlGroup) {
27
- this.#associateNonGroupRadios();
28
- }
29
- }
30
- #associateNonGroupRadios() {
31
- const root = this.getRootNode();
32
- root.addEventListener('checkedChange', (e) => {
33
- if (this.inputControl.name && e.target.tagName === 'BP-RADIO' && e.target.inputControl.name === this.inputControl.name) {
34
- root
35
- .querySelectorAll(`bp-radio input[type=radio][name=${this.inputControl.name}]`)
36
- .forEach(c => (c.checked = false));
37
- e.target.inputControl.checked = true;
38
- }
26
+ // needed as radios do not provide a hook for when they are unchecked within a group
27
+ this.inputControl.addEventListener('change', (e) => {
28
+ this.parentElement.controls.forEach(c => (c.inputControl.checked = false));
29
+ e.target.checked = true;
39
30
  });
40
31
  }
41
32
  }
@@ -26,7 +26,6 @@ import { BpInternalControlGroup } from '@blueprintui/components/forms';
26
26
  * @slot - For projecting bp-radio controls
27
27
  */
28
28
  export declare class BpRadioGroup extends BpInternalControlGroup {
29
- #private;
30
29
  protected radioName: string;
31
30
  static get styles(): CSSStyleSheet[];
32
31
  firstUpdated(props: PropertyValues<this>): void;