@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.
- package/README.md +22 -2
- package/package.json +21 -21
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/.tsbuildinfo +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/alert/element.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/alert/element.js +11 -10
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/breadcrumb/element.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/breadcrumb/element.js +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/button-icon/element.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/datalist/element.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/datalist/element.js +0 -6
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/date/element.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/date/element.js +1 -6
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/drawer/element.d.ts +1 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/drawer/element.js +4 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/file/element.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/file/element.js +4 -7
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control/element.d.ts +7 -27
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control/element.js +39 -134
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-group/element.d.ts +5 -17
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-group/element.js +17 -36
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-inline/element.d.ts +0 -9
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-inline/element.js +6 -39
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-label/element.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-label/element.js +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-message/element.d.ts +3 -18
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/control-message/element.js +4 -13
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/form-group/element.d.ts +0 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/form-group/element.js +5 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/utils/context.d.ts +2 -7
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/utils/utils.d.ts +3 -7
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/utils/utils.js +28 -20
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/utils/validate.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/forms/utils/validate.js +19 -17
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/alert.d.ts +7 -7
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/alert.js +7 -7
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/all.d.ts +1 -4
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/all.js +1 -4
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-expand.d.ts +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-expand.js +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-handle.d.ts +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-handle.js +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-icon.d.ts +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-icon.js +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-sort.d.ts +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/button-sort.js +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/color.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/color.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/date.d.ts +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/date.js +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/drawer.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/drawer.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/file.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/file.js +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/forms.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/forms.js +5 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/lazy.d.ts +1 -4
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/lazy.js +1 -4
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/modal.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/modal.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/month.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/month.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/nav.d.ts +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/nav.js +2 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/pagination.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/pagination.js +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/password.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/password.js +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/search.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/search.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/time.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/time.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/{base → components}/button.d.ts +5 -4
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/{base → components}/button.js +5 -9
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-active.controller.d.ts +1 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-active.controller.js +8 -5
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-control.controller.d.ts +17 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-control.controller.js +67 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-disabled.controller.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-pressed.controller.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-readonly.controller.d.ts +12 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-readonly.controller.js +22 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-selected.controller.d.ts +13 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/state-selected.controller.js +29 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-anchor.controller.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-button.controller.d.ts +10 -5
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-button.controller.js +51 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-closable.controller.d.ts +14 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-closable.controller.js +30 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-dialog.controller.js +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-form.controller.d.ts +27 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-form.controller.js +34 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-popup.controller.js +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/index.d.ts +6 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/index.js +6 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/services/global.service.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/services/global.service.js +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/a11y.d.ts +1 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/a11y.js +7 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/dom.d.ts +1 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/dom.js +8 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/events.d.ts +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/utils/events.js +1 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/month/element.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/month/element.js +1 -6
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/nav/element.d.ts +28 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/nav/element.js +13 -10
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/nav/item/element.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/nav/item/element.js +11 -16
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/popup/element.d.ts +4 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/popup/element.js +4 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/radio/element.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/radio/element.js +4 -13
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/radio/group/element.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/radio/group/element.js +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/range/element.d.ts +0 -4
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/range/element.js +0 -15
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/select/element.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/select/element.js +1 -15
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/test/index.d.ts +3 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/test/index.js +6 -36
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/textarea/element.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/textarea/element.js +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/time/element.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/time/element.js +1 -6
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/tooltip/element.js +1 -1
- package/src/index.mjs +31 -1
- package/src/rollup.config.mjs +14 -18
- package/src/utils.mjs +26 -0
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icon/element.d.ts +0 -35
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icon/element.js +0 -91
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icon/index.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icon/index.js +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/angle.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/angle.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/calendar.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/calendar.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/check-circle.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/check-circle.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/clock.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/clock.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/close.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/close.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/cloud.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/cloud.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/color-picker.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/color-picker.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/drag-handle.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/drag-handle.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/ellipsis-vertical.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/ellipsis-vertical.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/exclamation-circle.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/exclamation-circle.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/eye-hide.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/eye-hide.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/eye.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/eye.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/filter.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/filter.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/folder.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/folder.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/home.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/home.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/icon.service.d.ts +0 -5
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/icon.service.js +0 -17
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/image.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/image.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/index.d.ts +0 -25
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/index.js +0 -25
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/info-circle.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/info-circle.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/interfaces.d.ts +0 -10
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/interfaces.js +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/menu.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/menu.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/search.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/search.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/step-forward-two.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/step-forward-two.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/times.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/times.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/unknown.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/unknown.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/user.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/user.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/warning.d.ts +0 -12
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/icons/warning.js +0 -8
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/icon.d.ts +0 -6
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/icon.js +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/link.d.ts +0 -6
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/link.js +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/list.d.ts +0 -7
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/list.js +0 -3
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/text.d.ts +0 -6
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/include/text.js +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-submit.controller.d.ts +0 -15
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/internals/controllers/type-submit.controller.js +0 -64
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/link/element.d.ts +0 -22
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/link/element.js +0 -40
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/link/index.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/link/index.js +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/element.d.ts +0 -19
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/element.js +0 -32
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/index.d.ts +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/index.js +0 -2
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/item/element.d.ts +0 -18
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/list/item/element.js +0 -26
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/text/element.d.ts +0 -25
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/text/element.js +0 -60
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/text/index.d.ts +0 -1
- package/src/.rollup.cache/@blueprintui/components/Users/coryrylan/Repos/blueprintui/components/dist/lib/text/index.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@blueprintui/components/include/forms.js';
|
|
2
2
|
import '@blueprintui/components/include/button.js';
|
|
3
|
-
import '@blueprintui/
|
|
4
|
-
import '@blueprintui/
|
|
5
|
-
import '@blueprintui/
|
|
3
|
+
import '@blueprintui/icons/include.js';
|
|
4
|
+
import '@blueprintui/icons/shapes/folder.js';
|
|
5
|
+
import '@blueprintui/icons/shapes/close.js';
|
|
6
6
|
import { BpFile } from '@blueprintui/components/file';
|
|
7
7
|
declare global {
|
|
8
8
|
interface HTMLElementTagNameMap {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@blueprintui/components/include/forms.js';
|
|
2
2
|
import '@blueprintui/components/include/button.js';
|
|
3
|
-
import '@blueprintui/
|
|
4
|
-
import '@blueprintui/
|
|
5
|
-
import '@blueprintui/
|
|
3
|
+
import '@blueprintui/icons/include.js';
|
|
4
|
+
import '@blueprintui/icons/shapes/folder.js';
|
|
5
|
+
import '@blueprintui/icons/shapes/close.js';
|
|
6
6
|
import { BpFile } from '@blueprintui/components/file';
|
|
7
7
|
customElements.get('bp-file') || customElements.define('bp-file', BpFile);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@blueprintui/components/include/button-icon.js';
|
|
2
|
-
import '@blueprintui/
|
|
3
|
-
import '@blueprintui/
|
|
4
|
-
import '@blueprintui/
|
|
2
|
+
import '@blueprintui/icons/include.js';
|
|
3
|
+
import '@blueprintui/icons/shapes/check-circle.js';
|
|
4
|
+
import '@blueprintui/icons/shapes/exclamation-circle.js';
|
|
5
5
|
import { BpFormGroup, BpControl, BpControlMessage, BpInternalControlInline, BpInternalControlLabel, BpInternalControlGroup } from '@blueprintui/components/forms';
|
|
6
6
|
declare global {
|
|
7
7
|
interface HTMLElementTagNameMap {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ContextRoot } from '@lit-labs/context';
|
|
2
2
|
import '@blueprintui/components/include/button-icon.js';
|
|
3
|
-
import '@blueprintui/
|
|
4
|
-
import '@blueprintui/
|
|
5
|
-
import '@blueprintui/
|
|
3
|
+
import '@blueprintui/icons/include.js';
|
|
4
|
+
import '@blueprintui/icons/shapes/check-circle.js';
|
|
5
|
+
import '@blueprintui/icons/shapes/exclamation-circle.js';
|
|
6
6
|
import { BpFormGroup, BpControl, BpControlMessage, BpInternalControlInline, BpInternalControlLabel, BpInternalControlGroup } from '@blueprintui/components/forms';
|
|
7
|
+
import { attachRootNodeStyles, indicatorStyles } from '@blueprintui/components/internals';
|
|
7
8
|
new ContextRoot().attach(document.body);
|
|
9
|
+
attachRootNodeStyles(document, [indicatorStyles]);
|
|
8
10
|
customElements.get('bp-form-group') || customElements.define('bp-form-group', BpFormGroup);
|
|
9
11
|
customElements.get('bp-control') || customElements.define('bp-control', BpControl);
|
|
10
12
|
customElements.get('bp-control-message') || customElements.define('bp-control-message', BpControlMessage);
|
|
@@ -20,11 +20,9 @@ export declare const loader: {
|
|
|
20
20
|
file: () => Promise<typeof import("@blueprintui/components/include/file.js")>;
|
|
21
21
|
forms: () => Promise<typeof import("@blueprintui/components/include/forms.js")>;
|
|
22
22
|
header: () => Promise<typeof import("@blueprintui/components/include/header.js")>;
|
|
23
|
-
icon: () => Promise<typeof import("@blueprintui/
|
|
23
|
+
icon: () => Promise<typeof import("@blueprintui/icons/include.js")>;
|
|
24
24
|
'input-group': () => Promise<typeof import("@blueprintui/components/include/input-group.js")>;
|
|
25
25
|
input: () => Promise<typeof import("@blueprintui/components/include/input.js")>;
|
|
26
|
-
link: () => Promise<typeof import("@blueprintui/components/include/link.js")>;
|
|
27
|
-
list: () => Promise<typeof import("@blueprintui/components/include/list.js")>;
|
|
28
26
|
menu: () => Promise<typeof import("@blueprintui/components/include/menu.js")>;
|
|
29
27
|
modal: () => Promise<typeof import("@blueprintui/components/include/modal.js")>;
|
|
30
28
|
month: () => Promise<typeof import("@blueprintui/components/include/month.js")>;
|
|
@@ -42,7 +40,6 @@ export declare const loader: {
|
|
|
42
40
|
switch: () => Promise<typeof import("@blueprintui/components/include/switch.js")>;
|
|
43
41
|
tabs: () => Promise<typeof import("@blueprintui/components/include/tabs.js")>;
|
|
44
42
|
tag: () => Promise<typeof import("@blueprintui/components/include/tag.js")>;
|
|
45
|
-
text: () => Promise<typeof import("@blueprintui/components/include/text.js")>;
|
|
46
43
|
textarea: () => Promise<typeof import("@blueprintui/components/include/textarea.js")>;
|
|
47
44
|
time: () => Promise<typeof import("@blueprintui/components/include/time.js")>;
|
|
48
45
|
tooltip: () => Promise<typeof import("@blueprintui/components/include/tooltip.js")>;
|
|
@@ -20,11 +20,9 @@ export const loader = {
|
|
|
20
20
|
'file': () => import('@blueprintui/components/include/file.js'),
|
|
21
21
|
'forms': () => import('@blueprintui/components/include/forms.js'),
|
|
22
22
|
'header': () => import('@blueprintui/components/include/header.js'),
|
|
23
|
-
'icon': () => import('@blueprintui/
|
|
23
|
+
'icon': () => import('@blueprintui/icons/include.js'),
|
|
24
24
|
'input-group': () => import('@blueprintui/components/include/input-group.js'),
|
|
25
25
|
'input': () => import('@blueprintui/components/include/input.js'),
|
|
26
|
-
'link': () => import('@blueprintui/components/include/link.js'),
|
|
27
|
-
'list': () => import('@blueprintui/components/include/list.js'),
|
|
28
26
|
'menu': () => import('@blueprintui/components/include/menu.js'),
|
|
29
27
|
'modal': () => import('@blueprintui/components/include/modal.js'),
|
|
30
28
|
'month': () => import('@blueprintui/components/include/month.js'),
|
|
@@ -42,7 +40,6 @@ export const loader = {
|
|
|
42
40
|
'switch': () => import('@blueprintui/components/include/switch.js'),
|
|
43
41
|
'tabs': () => import('@blueprintui/components/include/tabs.js'),
|
|
44
42
|
'tag': () => import('@blueprintui/components/include/tag.js'),
|
|
45
|
-
'text': () => import('@blueprintui/components/include/text.js'),
|
|
46
43
|
'textarea': () => import('@blueprintui/components/include/textarea.js'),
|
|
47
44
|
'time': () => import('@blueprintui/components/include/time.js'),
|
|
48
45
|
'tooltip': () => import('@blueprintui/components/include/tooltip.js')
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@blueprintui/components/include/button-icon.js';
|
|
2
|
-
import '@blueprintui/
|
|
2
|
+
import '@blueprintui/icons/shapes/close.js';
|
|
3
3
|
import { BpModal, BpModalHeader, BpModalFooter } from '@blueprintui/components/modal';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@blueprintui/components/include/button-icon.js';
|
|
2
|
-
import '@blueprintui/
|
|
2
|
+
import '@blueprintui/icons/shapes/close.js';
|
|
3
3
|
import { BpModal, BpModalHeader, BpModalFooter } from '@blueprintui/components/modal';
|
|
4
4
|
customElements.get('bp-modal') || customElements.define('bp-modal', BpModal);
|
|
5
5
|
customElements.get('bp-modal-header') || customElements.define('bp-modal-header', BpModalHeader);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@blueprintui/components/include/forms.js';
|
|
2
2
|
import '@blueprintui/components/include/dropdown.js';
|
|
3
3
|
import '@blueprintui/components/include/button-icon.js';
|
|
4
|
-
import '@blueprintui/
|
|
4
|
+
import '@blueprintui/icons/shapes/calendar.js';
|
|
5
5
|
import { BpMonth } from '@blueprintui/components/month';
|
|
6
6
|
declare global {
|
|
7
7
|
interface HTMLElementTagNameMap {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@blueprintui/components/include/forms.js';
|
|
2
2
|
import '@blueprintui/components/include/dropdown.js';
|
|
3
3
|
import '@blueprintui/components/include/button-icon.js';
|
|
4
|
-
import '@blueprintui/
|
|
4
|
+
import '@blueprintui/icons/shapes/calendar.js';
|
|
5
5
|
import { BpMonth } from '@blueprintui/components/month';
|
|
6
6
|
customElements.get('bp-month') || customElements.define('bp-month', BpMonth);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '@blueprintui/
|
|
2
|
-
import '@blueprintui/
|
|
1
|
+
import '@blueprintui/icons/include.js';
|
|
2
|
+
import '@blueprintui/icons/shapes/angle.js';
|
|
3
3
|
import { BpNav, BpNavItem, BpNavGroup } from '@blueprintui/components/nav';
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '@blueprintui/
|
|
2
|
-
import '@blueprintui/
|
|
1
|
+
import '@blueprintui/icons/include.js';
|
|
2
|
+
import '@blueprintui/icons/shapes/angle.js';
|
|
3
3
|
import { BpNav, BpNavItem, BpNavGroup } from '@blueprintui/components/nav';
|
|
4
4
|
customElements.get('bp-nav') || customElements.define('bp-nav', BpNav);
|
|
5
5
|
customElements.get('bp-nav-item') || customElements.define('bp-nav-item', BpNavItem);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@blueprintui/components/include/button-icon.js';
|
|
2
|
-
import '@blueprintui/
|
|
3
|
-
import '@blueprintui/
|
|
4
|
-
import '@blueprintui/
|
|
2
|
+
import '@blueprintui/icons/include.js';
|
|
3
|
+
import '@blueprintui/icons/shapes/angle.js';
|
|
4
|
+
import '@blueprintui/icons/shapes/step-forward-2.js';
|
|
5
5
|
import { BpPagination, BpPaginationButton } from '@blueprintui/components/pagination';
|
|
6
6
|
declare global {
|
|
7
7
|
interface HTMLElementTagNameMap {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@blueprintui/components/include/button-icon.js';
|
|
2
|
-
import '@blueprintui/
|
|
3
|
-
import '@blueprintui/
|
|
4
|
-
import '@blueprintui/
|
|
2
|
+
import '@blueprintui/icons/include.js';
|
|
3
|
+
import '@blueprintui/icons/shapes/angle.js';
|
|
4
|
+
import '@blueprintui/icons/shapes/step-forward-2.js';
|
|
5
5
|
import { BpPagination, BpPaginationButton } from '@blueprintui/components/pagination';
|
|
6
6
|
customElements.get('bp-pagination') || customElements.define('bp-pagination', BpPagination);
|
|
7
7
|
customElements.get('bp-pagination-button') || customElements.define('bp-pagination-button', BpPaginationButton);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@blueprintui/components/include/forms.js';
|
|
2
|
-
import '@blueprintui/
|
|
3
|
-
import '@blueprintui/
|
|
4
|
-
import '@blueprintui/
|
|
2
|
+
import '@blueprintui/icons/include.js';
|
|
3
|
+
import '@blueprintui/icons/shapes/eye.js';
|
|
4
|
+
import '@blueprintui/icons/shapes/eye-hide.js';
|
|
5
5
|
import { BpPassword } from '@blueprintui/components/password';
|
|
6
6
|
declare global {
|
|
7
7
|
interface HTMLElementTagNameMap {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@blueprintui/components/include/forms.js';
|
|
2
|
-
import '@blueprintui/
|
|
3
|
-
import '@blueprintui/
|
|
4
|
-
import '@blueprintui/
|
|
2
|
+
import '@blueprintui/icons/include.js';
|
|
3
|
+
import '@blueprintui/icons/shapes/eye.js';
|
|
4
|
+
import '@blueprintui/icons/shapes/eye-hide.js';
|
|
5
5
|
import { BpPassword } from '@blueprintui/components/password';
|
|
6
6
|
customElements.get('bp-password') || customElements.define('bp-password', BpPassword);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@blueprintui/components/include/forms.js';
|
|
2
|
-
import '@blueprintui/
|
|
2
|
+
import '@blueprintui/icons/shapes/search.js';
|
|
3
3
|
import { BpSearch } from '@blueprintui/components/search';
|
|
4
4
|
customElements.get('bp-search') || customElements.define('bp-search', BpSearch);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@blueprintui/components/include/forms.js';
|
|
2
2
|
import '@blueprintui/components/include/dropdown.js';
|
|
3
3
|
import '@blueprintui/components/include/button-icon.js';
|
|
4
|
-
import '@blueprintui/
|
|
4
|
+
import '@blueprintui/icons/shapes/clock.js';
|
|
5
5
|
import { BpTime } from '@blueprintui/components/time';
|
|
6
6
|
declare global {
|
|
7
7
|
interface HTMLElementTagNameMap {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@blueprintui/components/include/forms.js';
|
|
2
2
|
import '@blueprintui/components/include/dropdown.js';
|
|
3
3
|
import '@blueprintui/components/include/button-icon.js';
|
|
4
|
-
import '@blueprintui/
|
|
4
|
+
import '@blueprintui/icons/shapes/clock.js';
|
|
5
5
|
import { BpTime } from '@blueprintui/components/time';
|
|
6
6
|
customElements.get('bp-time') || customElements.define('bp-time', BpTime);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
export declare class BaseButton extends LitElement {
|
|
2
|
+
export declare class BaseButton extends LitElement implements Partial<HTMLButtonElement> {
|
|
3
3
|
pressed: boolean;
|
|
4
4
|
expanded: boolean;
|
|
5
5
|
readonly: boolean;
|
|
@@ -7,8 +7,9 @@ export declare class BaseButton extends LitElement {
|
|
|
7
7
|
type: 'button' | 'submit';
|
|
8
8
|
name: string;
|
|
9
9
|
value: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
_internals: ElementInternals;
|
|
10
|
+
readonly form: HTMLFormElement;
|
|
11
|
+
/** @private */
|
|
12
|
+
readonly _internals: ElementInternals;
|
|
13
|
+
static formAssociated: boolean;
|
|
13
14
|
render(): import("lit-html").TemplateResult<1>;
|
|
14
15
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { html, LitElement } from 'lit';
|
|
3
|
-
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
4
3
|
import { typeAnchor } from '../controllers/type-anchor.controller.js';
|
|
5
4
|
import { typeButton } from '../controllers/type-button.controller.js';
|
|
6
|
-
import { typeSubmit } from '../controllers/type-submit.controller.js';
|
|
7
5
|
import { stateActive } from '../controllers/state-active.controller.js';
|
|
8
6
|
import { stateDisabled } from '../controllers/state-disabled.controller.js';
|
|
9
7
|
import { statePressed } from '../controllers/state-pressed.controller.js';
|
|
10
8
|
import { stateExpanded } from '../controllers/state-expanded.controller.js';
|
|
9
|
+
import { stateReadonly } from '../controllers/state-readonly.controller.js';
|
|
11
10
|
let BaseButton = class BaseButton extends LitElement {
|
|
12
11
|
static properties = {
|
|
13
12
|
pressed: { type: Boolean, reflect: true },
|
|
@@ -16,24 +15,21 @@ let BaseButton = class BaseButton extends LitElement {
|
|
|
16
15
|
disabled: { type: Boolean, reflect: true },
|
|
17
16
|
type: { type: String },
|
|
18
17
|
name: { type: String },
|
|
19
|
-
value: { type: String }
|
|
20
|
-
href: { type: String },
|
|
21
|
-
target: { type: String }
|
|
18
|
+
value: { type: String }
|
|
22
19
|
};
|
|
23
20
|
constructor() {
|
|
24
21
|
super(...arguments);
|
|
25
22
|
this.disabled = false;
|
|
26
23
|
}
|
|
24
|
+
static formAssociated = true;
|
|
27
25
|
render() {
|
|
28
|
-
return html `<div interaction class="private-host"
|
|
29
|
-
${this.href ? html `<a href=${this.href} target=${ifDefined(this.target)}><slot></slot></a>` : html `<slot></slot>`}
|
|
30
|
-
</div>`;
|
|
26
|
+
return html `<div interaction class="private-host"><slot></slot></div>`;
|
|
31
27
|
}
|
|
32
28
|
};
|
|
33
29
|
BaseButton = __decorate([
|
|
34
30
|
typeButton(),
|
|
35
|
-
typeSubmit(),
|
|
36
31
|
typeAnchor(),
|
|
32
|
+
stateReadonly(),
|
|
37
33
|
stateActive(),
|
|
38
34
|
statePressed(),
|
|
39
35
|
stateExpanded(),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { attachInternals } from '../utils/a11y.js';
|
|
2
|
+
import { onKeys } from '../utils/events.js';
|
|
2
3
|
/**
|
|
3
4
|
* Shim fix for CSS psuedo-selector :active on keydown space/enter for custom elements
|
|
4
5
|
*/
|
|
@@ -14,19 +15,21 @@ export class StateActiveController {
|
|
|
14
15
|
async hostConnected() {
|
|
15
16
|
attachInternals(this.host);
|
|
16
17
|
await this.host.updateComplete;
|
|
17
|
-
this.host.addEventListener('
|
|
18
|
+
this.host.addEventListener('keypress', (e) => this.#emulateActive(e));
|
|
18
19
|
this.host.addEventListener('mousedown', (e) => this.#emulateActive(e));
|
|
19
20
|
this.host.addEventListener('keyup', () => this.#emulateInactive());
|
|
20
21
|
this.host.addEventListener('blur', () => this.#emulateInactive());
|
|
21
22
|
this.host.addEventListener('mouseup', () => this.#emulateInactive());
|
|
22
23
|
}
|
|
23
|
-
#emulateActive(
|
|
24
|
+
#emulateActive(event) {
|
|
24
25
|
if (!this.host.disabled) {
|
|
25
26
|
this.host._internals.states.add('--active');
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
onKeys(['Enter', 'Space'], event, () => {
|
|
29
|
+
if (!this.host.disabled && !this.host.readonly) {
|
|
30
|
+
event.preventDefault();
|
|
31
|
+
}
|
|
32
|
+
});
|
|
30
33
|
}
|
|
31
34
|
#emulateInactive() {
|
|
32
35
|
this.host._internals.states.delete('--active');
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactiveController, ReactiveElement } from 'lit';
|
|
2
|
+
export declare type Validity = 'valid' | 'invalid' | '';
|
|
3
|
+
/**
|
|
4
|
+
* Tracks native form control state and applies states to host custom element.
|
|
5
|
+
*/
|
|
6
|
+
export declare type StateControl = ReactiveElement & {
|
|
7
|
+
inputControl: HTMLInputElement;
|
|
8
|
+
_internals?: ElementInternals;
|
|
9
|
+
};
|
|
10
|
+
export declare function stateControl<T extends StateControl>(): ClassDecorator;
|
|
11
|
+
export declare class StateControlController<T extends StateControl> implements ReactiveController {
|
|
12
|
+
#private;
|
|
13
|
+
private host;
|
|
14
|
+
constructor(host: T);
|
|
15
|
+
hostConnected(): Promise<void>;
|
|
16
|
+
hostDisconnected(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { attachInternals } from '../utils/a11y.js';
|
|
2
|
+
import { toggleState } from '../utils/dom.js';
|
|
3
|
+
import { getElementUpdates } from '../utils/events.js';
|
|
4
|
+
export function stateControl() {
|
|
5
|
+
return (target) => target.addInitializer((instance) => new StateControlController(instance));
|
|
6
|
+
}
|
|
7
|
+
export class StateControlController {
|
|
8
|
+
host;
|
|
9
|
+
#observers = [];
|
|
10
|
+
get #input() {
|
|
11
|
+
return (this.host.inputControl ? this.host.inputControl : this.host);
|
|
12
|
+
}
|
|
13
|
+
constructor(host) {
|
|
14
|
+
this.host = host;
|
|
15
|
+
this.host.addController(this);
|
|
16
|
+
}
|
|
17
|
+
async hostConnected() {
|
|
18
|
+
attachInternals(this.host);
|
|
19
|
+
await this.host.updateComplete;
|
|
20
|
+
this.#input.addEventListener('blur', () => {
|
|
21
|
+
this.#updateValidity();
|
|
22
|
+
this.host._internals.states.add('--touched');
|
|
23
|
+
});
|
|
24
|
+
this.#input.addEventListener('input', () => {
|
|
25
|
+
this.#updateValidity();
|
|
26
|
+
this.host._internals.states.add('--dirty');
|
|
27
|
+
});
|
|
28
|
+
this.host.inputControl.addEventListener('change', () => {
|
|
29
|
+
toggleState(this.host._internals, '--checked', this.host.inputControl.checked);
|
|
30
|
+
this.host.requestUpdate();
|
|
31
|
+
});
|
|
32
|
+
this.#observers.push(getElementUpdates(this.host.inputControl, 'size', (value) => {
|
|
33
|
+
toggleState(this.host._internals, '--size', value === '' ? true : value);
|
|
34
|
+
this.host.requestUpdate();
|
|
35
|
+
}), getElementUpdates(this.host.inputControl, 'multiple', (value) => {
|
|
36
|
+
toggleState(this.host._internals, '--multiple', value === '' ? true : value);
|
|
37
|
+
this.host.requestUpdate();
|
|
38
|
+
}), getElementUpdates(this.host.inputControl, 'readonly', (value) => {
|
|
39
|
+
toggleState(this.host._internals, '--readonly', value === '');
|
|
40
|
+
this.host.requestUpdate();
|
|
41
|
+
}), getElementUpdates(this.host.inputControl, 'checked', (value) => {
|
|
42
|
+
toggleState(this.host._internals, '--checked', value === '' ? true : value);
|
|
43
|
+
this.host.requestUpdate();
|
|
44
|
+
}), getElementUpdates(this.host.inputControl, 'aria-disabled', (value) => {
|
|
45
|
+
toggleState(this.host._internals, '--disabled', value === 'true');
|
|
46
|
+
this.host.requestUpdate();
|
|
47
|
+
}), getElementUpdates(this.host.inputControl, 'disabled', (value) => {
|
|
48
|
+
toggleState(this.host._internals, '--disabled', value === '' ? true : value);
|
|
49
|
+
this.host.requestUpdate();
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
hostDisconnected() {
|
|
53
|
+
this.#observers.forEach(observer => observer.disconnect());
|
|
54
|
+
}
|
|
55
|
+
#updateValidity() {
|
|
56
|
+
this.#input.checkValidity();
|
|
57
|
+
if (this.#input.validity.valid) {
|
|
58
|
+
this.host._internals.states.add('--valid');
|
|
59
|
+
this.host._internals.states.delete('--invalid');
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
this.host._internals.states.add('--invalid');
|
|
63
|
+
this.host._internals.states.delete('--valid');
|
|
64
|
+
}
|
|
65
|
+
this.host.requestUpdate();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactiveController, ReactiveElement } from 'lit';
|
|
2
|
-
export declare type
|
|
2
|
+
export declare type StateDisabled = ReactiveElement & {
|
|
3
3
|
disabled: boolean;
|
|
4
4
|
readonly?: boolean;
|
|
5
5
|
_internals?: ElementInternals;
|
|
@@ -7,8 +7,8 @@ export declare type AriaDisabled = ReactiveElement & {
|
|
|
7
7
|
/**
|
|
8
8
|
* Provides all nessesary aria-* attributes to create valid disabled state for interactive components.
|
|
9
9
|
*/
|
|
10
|
-
export declare function stateDisabled<T extends
|
|
11
|
-
export declare class StateDisabledController<T extends
|
|
10
|
+
export declare function stateDisabled<T extends StateDisabled>(): ClassDecorator;
|
|
11
|
+
export declare class StateDisabledController<T extends StateDisabled> implements ReactiveController {
|
|
12
12
|
private host;
|
|
13
13
|
constructor(host: T);
|
|
14
14
|
hostConnected(): void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactiveController, ReactiveElement } from 'lit';
|
|
2
|
-
export declare type
|
|
2
|
+
export declare type StatePressed = ReactiveElement & {
|
|
3
3
|
pressed: boolean;
|
|
4
4
|
readonly?: boolean;
|
|
5
5
|
_internals?: ElementInternals;
|
|
6
6
|
};
|
|
7
|
-
export declare function statePressed<T extends
|
|
8
|
-
export declare class StatePressedController<T extends
|
|
7
|
+
export declare function statePressed<T extends StatePressed>(): ClassDecorator;
|
|
8
|
+
export declare class StatePressedController<T extends StatePressed> implements ReactiveController {
|
|
9
9
|
private host;
|
|
10
10
|
constructor(host: T);
|
|
11
11
|
hostConnected(): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactiveController, ReactiveElement } from 'lit';
|
|
2
|
+
export declare type StateReadonly = ReactiveElement & {
|
|
3
|
+
readonly: boolean;
|
|
4
|
+
_internals?: ElementInternals;
|
|
5
|
+
};
|
|
6
|
+
export declare function stateReadonly<T extends StateReadonly>(): ClassDecorator;
|
|
7
|
+
export declare class StateReadonlyController<T extends StateReadonly> implements ReactiveController {
|
|
8
|
+
private host;
|
|
9
|
+
constructor(host: T);
|
|
10
|
+
hostConnected(): void;
|
|
11
|
+
hostUpdated(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { attachInternals } from '../utils/a11y.js';
|
|
2
|
+
export function stateReadonly() {
|
|
3
|
+
return (target) => target.addInitializer((instance) => new StateReadonlyController(instance));
|
|
4
|
+
}
|
|
5
|
+
export class StateReadonlyController {
|
|
6
|
+
host;
|
|
7
|
+
constructor(host) {
|
|
8
|
+
this.host = host;
|
|
9
|
+
this.host.addController(this);
|
|
10
|
+
}
|
|
11
|
+
hostConnected() {
|
|
12
|
+
attachInternals(this.host);
|
|
13
|
+
}
|
|
14
|
+
hostUpdated() {
|
|
15
|
+
if (this.host.readonly) {
|
|
16
|
+
this.host._internals.states.add('--readonly');
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
this.host._internals.states.delete('--readonly');
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactiveController, ReactiveElement } from 'lit';
|
|
2
|
+
export declare type StateSelected = ReactiveElement & {
|
|
3
|
+
selected: boolean;
|
|
4
|
+
readonly?: boolean;
|
|
5
|
+
_internals?: ElementInternals;
|
|
6
|
+
};
|
|
7
|
+
export declare function stateSelected<T extends StateSelected>(): ClassDecorator;
|
|
8
|
+
export declare class StateSelectedController<T extends StateSelected> implements ReactiveController {
|
|
9
|
+
private host;
|
|
10
|
+
constructor(host: T);
|
|
11
|
+
hostConnected(): void;
|
|
12
|
+
hostUpdated(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { attachInternals } from '../utils/a11y.js';
|
|
2
|
+
export function stateSelected() {
|
|
3
|
+
return (target) => target.addInitializer((instance) => new StateSelectedController(instance));
|
|
4
|
+
}
|
|
5
|
+
export class StateSelectedController {
|
|
6
|
+
host;
|
|
7
|
+
constructor(host) {
|
|
8
|
+
this.host = host;
|
|
9
|
+
this.host.addController(this);
|
|
10
|
+
}
|
|
11
|
+
hostConnected() {
|
|
12
|
+
attachInternals(this.host);
|
|
13
|
+
}
|
|
14
|
+
hostUpdated() {
|
|
15
|
+
if (this.host.selected !== null && this.host.selected !== undefined) {
|
|
16
|
+
this.host._internals.ariaSelected = `${this.host.selected}`;
|
|
17
|
+
}
|
|
18
|
+
if (this.host.selected) {
|
|
19
|
+
this.host._internals.states.add('--selected');
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
this.host._internals.states.delete('--selected');
|
|
23
|
+
}
|
|
24
|
+
if (this.host.readonly) {
|
|
25
|
+
this.host._internals.ariaSelected = null;
|
|
26
|
+
this.host._internals.states.delete('--selected');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ReactiveController, ReactiveElement } from 'lit';
|
|
2
|
-
export interface
|
|
2
|
+
export interface TypeAnchor extends ReactiveElement {
|
|
3
3
|
disabled: boolean;
|
|
4
4
|
readonly: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare function typeAnchor<T extends
|
|
7
|
-
export declare class TypeAnchorController<T extends
|
|
6
|
+
export declare function typeAnchor<T extends TypeAnchor>(): ClassDecorator;
|
|
7
|
+
export declare class TypeAnchorController<T extends TypeAnchor> implements ReactiveController {
|
|
8
8
|
#private;
|
|
9
9
|
private host;
|
|
10
10
|
constructor(host: T);
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { ReactiveController, ReactiveElement } from 'lit';
|
|
2
|
-
export interface
|
|
3
|
-
|
|
2
|
+
export interface TypeButton extends ReactiveElement {
|
|
3
|
+
name: string;
|
|
4
|
+
value: string;
|
|
4
5
|
disabled: boolean;
|
|
5
|
-
|
|
6
|
+
readonly: boolean;
|
|
7
|
+
type: 'button' | 'submit';
|
|
8
|
+
readonly form: HTMLFormElement;
|
|
9
|
+
readonly _internals?: ElementInternals;
|
|
6
10
|
}
|
|
7
11
|
/**
|
|
8
12
|
* Provides nessesary attributes for indicating a non-button element as an accessible button type.
|
|
9
13
|
*/
|
|
10
|
-
export declare function typeButton<T extends
|
|
11
|
-
export declare class TypeButtonController<T extends
|
|
14
|
+
export declare function typeButton<T extends TypeButton>(): ClassDecorator;
|
|
15
|
+
export declare class TypeButtonController<T extends TypeButton> implements ReactiveController {
|
|
16
|
+
#private;
|
|
12
17
|
private host;
|
|
13
18
|
constructor(host: T);
|
|
14
19
|
hostConnected(): void;
|