bonkers-ui 1.0.60 → 1.0.62
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/.eslintrc.js +1 -0
- package/CONSTANTS.d.ts +1 -0
- package/_types/align.js +5 -0
- package/_types/align.js.map +1 -0
- package/_types/colors.js +5 -0
- package/_types/colors.js.map +1 -0
- package/_types/sizing.js +5 -0
- package/_types/sizing.js.map +1 -0
- package/_virtual/_plugin-vue_export-helper.js +10 -0
- package/_virtual/_plugin-vue_export-helper.js.map +1 -0
- package/bonkers-ui.umd.js +12 -0
- package/bonkers-ui.umd.js.map +1 -0
- package/components/ui-alert/_types.d.ts +6 -0
- package/components/ui-alert/_types.js +5 -0
- package/components/ui-alert/_types.js.map +1 -0
- package/components/ui-alert/index.d.ts +92 -0
- package/components/ui-alert/index.js +9 -0
- package/components/ui-alert/index.js.map +1 -0
- package/components/ui-alert/ui-alert.vue.d.ts +27 -0
- package/components/ui-alert/ui-alert.vue.js +47 -0
- package/components/ui-alert/ui-alert.vue.js.map +1 -0
- package/components/ui-alert/ui-alert.vue2.js +5 -0
- package/components/ui-alert/ui-alert.vue2.js.map +1 -0
- package/components/ui-badge/_typings.d.ts +10 -0
- package/components/ui-badge/_typings.js +6 -0
- package/components/ui-badge/_typings.js.map +1 -0
- package/components/ui-badge/index.d.ts +114 -0
- package/components/ui-badge/index.js +10 -0
- package/components/ui-badge/index.js.map +1 -0
- package/components/ui-badge/ui-badge.vue.d.ts +31 -0
- package/components/ui-badge/ui-badge.vue.js +62 -0
- package/components/ui-badge/ui-badge.vue.js.map +1 -0
- package/components/ui-badge/ui-badge.vue2.js +5 -0
- package/components/ui-badge/ui-badge.vue2.js.map +1 -0
- package/components/ui-ber-rank/_types.d.ts +61 -0
- package/components/ui-ber-rank/_types.js +74 -0
- package/components/ui-ber-rank/_types.js.map +1 -0
- package/components/ui-ber-rank/index.d.ts +30 -0
- package/components/ui-ber-rank/index.js +10 -0
- package/components/ui-ber-rank/index.js.map +1 -0
- package/components/ui-ber-rank/ui-ber-rank.vue.d.ts +33 -0
- package/components/ui-ber-rank/ui-ber-rank.vue.js +101 -0
- package/components/ui-ber-rank/ui-ber-rank.vue.js.map +1 -0
- package/components/ui-ber-rank/ui-ber-rank.vue3.js +6 -0
- package/components/ui-ber-rank/ui-ber-rank.vue3.js.map +1 -0
- package/components/ui-button/_typings.d.ts +17 -0
- package/components/ui-button/_typings.js +6 -0
- package/components/ui-button/_typings.js.map +1 -0
- package/components/ui-button/index.d.ts +146 -0
- package/components/ui-button/index.js +10 -0
- package/components/ui-button/index.js.map +1 -0
- package/components/ui-button/ui-button.vue.d.ts +51 -0
- package/components/ui-button/ui-button.vue.js +51 -0
- package/components/ui-button/ui-button.vue.js.map +1 -0
- package/components/ui-button/ui-button.vue2.js +5 -0
- package/components/ui-button/ui-button.vue2.js.map +1 -0
- package/components/ui-card-cta/index.d.ts +127 -0
- package/components/ui-card-cta/index.js +7 -0
- package/components/ui-card-cta/index.js.map +1 -0
- package/components/ui-card-cta/ui-card-cta.vue.d.ts +34 -0
- package/components/ui-card-cta/ui-card-cta.vue.js +76 -0
- package/components/ui-card-cta/ui-card-cta.vue.js.map +1 -0
- package/components/ui-card-cta/ui-card-cta.vue2.js +5 -0
- package/components/ui-card-cta/ui-card-cta.vue2.js.map +1 -0
- package/components/ui-card-result/index.d.ts +125 -0
- package/components/ui-card-result/index.js +7 -0
- package/components/ui-card-result/index.js.map +1 -0
- package/components/ui-card-result/ui-card-result.vue.d.ts +32 -0
- package/components/ui-card-result/ui-card-result.vue.js +8 -0
- package/components/ui-card-result/ui-card-result.vue.js.map +1 -0
- package/components/ui-card-result/ui-card-result.vue2.js +82 -0
- package/components/ui-card-result/ui-card-result.vue2.js.map +1 -0
- package/components/ui-card-simple/index.d.ts +56 -0
- package/components/ui-card-simple/index.js +7 -0
- package/components/ui-card-simple/index.js.map +1 -0
- package/components/ui-card-simple/ui-card-simple.vue.d.ts +12 -0
- package/components/ui-card-simple/ui-card-simple.vue.js +36 -0
- package/components/ui-card-simple/ui-card-simple.vue.js.map +1 -0
- package/components/ui-card-simple/ui-card-simple.vue2.js +5 -0
- package/components/ui-card-simple/ui-card-simple.vue2.js.map +1 -0
- package/components/ui-checkbox/index.d.ts +142 -0
- package/components/ui-checkbox/index.js +7 -0
- package/components/ui-checkbox/index.js.map +1 -0
- package/components/ui-checkbox/ui-checkbox.vue.d.ts +36 -0
- package/components/ui-checkbox/ui-checkbox.vue.js +8 -0
- package/components/ui-checkbox/ui-checkbox.vue.js.map +1 -0
- package/components/ui-checkbox/ui-checkbox.vue2.js +74 -0
- package/components/ui-checkbox/ui-checkbox.vue2.js.map +1 -0
- package/components/ui-dropdown/_typings.d.ts +4 -0
- package/components/ui-dropdown/_typings.js +5 -0
- package/components/ui-dropdown/_typings.js.map +1 -0
- package/components/ui-dropdown/index.d.ts +148 -0
- package/components/ui-dropdown/index.js +9 -0
- package/components/ui-dropdown/index.js.map +1 -0
- package/components/ui-dropdown/ui-dropdown.vue.d.ts +50 -0
- package/components/ui-dropdown/ui-dropdown.vue.js +82 -0
- package/components/ui-dropdown/ui-dropdown.vue.js.map +1 -0
- package/components/ui-dropdown/ui-dropdown.vue2.js +5 -0
- package/components/ui-dropdown/ui-dropdown.vue2.js.map +1 -0
- package/components/ui-icon/_typings.d.ts +10 -0
- package/components/ui-icon/_typings.js +5 -0
- package/components/ui-icon/_typings.js.map +1 -0
- package/components/ui-icon/index.d.ts +33 -0
- package/components/ui-icon/index.js +11 -0
- package/components/ui-icon/index.js.map +1 -0
- package/components/ui-icon/ui-icon.vue.d.ts +34 -0
- package/components/ui-icon/ui-icon.vue.js +30 -0
- package/components/ui-icon/ui-icon.vue.js.map +1 -0
- package/components/ui-icon/ui-icon.vue2.js +5 -0
- package/components/ui-icon/ui-icon.vue2.js.map +1 -0
- package/components/ui-icon-wrapper/_typings.d.ts +11 -0
- package/components/ui-icon-wrapper/_typings.js +6 -0
- package/components/ui-icon-wrapper/_typings.js.map +1 -0
- package/components/ui-icon-wrapper/index.d.ts +104 -0
- package/components/ui-icon-wrapper/index.js +10 -0
- package/components/ui-icon-wrapper/index.js.map +1 -0
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue.d.ts +41 -0
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue.js +8 -0
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue.js.map +1 -0
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue2.js +28 -0
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue2.js.map +1 -0
- package/components/ui-input/_typings.d.ts +70 -0
- package/components/ui-input/_typings.js +7 -0
- package/components/ui-input/_typings.js.map +1 -0
- package/components/ui-input/index.d.ts +337 -0
- package/components/ui-input/index.js +11 -0
- package/components/ui-input/index.js.map +1 -0
- package/components/ui-input/ui-input.vue.d.ts +102 -0
- package/components/ui-input/ui-input.vue.js +97 -0
- package/components/ui-input/ui-input.vue.js.map +1 -0
- package/components/ui-input/ui-input.vue2.js +5 -0
- package/components/ui-input/ui-input.vue2.js.map +1 -0
- package/components/ui-input-range/index.d.ts +46 -0
- package/components/ui-input-range/index.js +7 -0
- package/components/ui-input-range/index.js.map +1 -0
- package/components/ui-input-range/ui-input-range.vue.d.ts +26 -0
- package/components/ui-input-range/ui-input-range.vue.js +8 -0
- package/components/ui-input-range/ui-input-range.vue.js.map +1 -0
- package/components/ui-input-range/ui-input-range.vue2.js +71 -0
- package/components/ui-input-range/ui-input-range.vue2.js.map +1 -0
- package/components/ui-list-item/_types.d.ts +12 -0
- package/components/ui-list-item/_types.js +7 -0
- package/components/ui-list-item/_types.js.map +1 -0
- package/components/ui-list-item/index.d.ts +186 -0
- package/components/ui-list-item/index.js +11 -0
- package/components/ui-list-item/index.js.map +1 -0
- package/components/ui-list-item/ui-list-item.vue.d.ts +65 -0
- package/components/ui-list-item/ui-list-item.vue.js +65 -0
- package/components/ui-list-item/ui-list-item.vue.js.map +1 -0
- package/components/ui-list-item/ui-list-item.vue2.js +5 -0
- package/components/ui-list-item/ui-list-item.vue2.js.map +1 -0
- package/components/ui-modal/_typings.d.ts +6 -0
- package/components/ui-modal/_typings.js +5 -0
- package/components/ui-modal/_typings.js.map +1 -0
- package/components/ui-modal/index.d.ts +107 -0
- package/components/ui-modal/index.js +9 -0
- package/components/ui-modal/index.js.map +1 -0
- package/components/ui-modal/ui-backdrop/index.d.ts +54 -0
- package/components/ui-modal/ui-backdrop/index.js +7 -0
- package/components/ui-modal/ui-backdrop/index.js.map +1 -0
- package/components/ui-modal/ui-backdrop/ui-backdrop.vue.d.ts +10 -0
- package/components/ui-modal/ui-backdrop/ui-backdrop.vue.js +15 -0
- package/components/ui-modal/ui-backdrop/ui-backdrop.vue.js.map +1 -0
- package/components/ui-modal/ui-modal.vue.d.ts +46 -0
- package/components/ui-modal/ui-modal.vue.js +8 -0
- package/components/ui-modal/ui-modal.vue.js.map +1 -0
- package/components/ui-modal/ui-modal.vue2.js +65 -0
- package/components/ui-modal/ui-modal.vue2.js.map +1 -0
- package/components/ui-notification-badge/_types.d.ts +10 -0
- package/components/ui-notification-badge/_types.js +5 -0
- package/components/ui-notification-badge/_types.js.map +1 -0
- package/components/ui-notification-badge/index.d.ts +84 -0
- package/components/ui-notification-badge/index.js +10 -0
- package/components/ui-notification-badge/index.js.map +1 -0
- package/components/ui-notification-badge/ui-notification-badge.vue.d.ts +38 -0
- package/components/ui-notification-badge/ui-notification-badge.vue.js +22 -0
- package/components/ui-notification-badge/ui-notification-badge.vue.js.map +1 -0
- package/components/ui-notification-badge/ui-notification-badge.vue3.js +6 -0
- package/components/ui-notification-badge/ui-notification-badge.vue3.js.map +1 -0
- package/components/ui-order-card/_types.d.ts +4 -0
- package/components/ui-order-card/_types.js +5 -0
- package/components/ui-order-card/_types.js.map +1 -0
- package/components/ui-order-card/index.d.ts +103 -0
- package/components/ui-order-card/index.js +7 -0
- package/components/ui-order-card/index.js.map +1 -0
- package/components/ui-order-card/ui-order-card.vue.d.ts +43 -0
- package/components/ui-order-card/ui-order-card.vue.js +86 -0
- package/components/ui-order-card/ui-order-card.vue.js.map +1 -0
- package/components/ui-order-card/ui-order-card.vue2.js +5 -0
- package/components/ui-order-card/ui-order-card.vue2.js.map +1 -0
- package/components/ui-plain-radio/index.d.ts +163 -0
- package/components/ui-plain-radio/index.js +7 -0
- package/components/ui-plain-radio/index.js.map +1 -0
- package/components/ui-plain-radio/ui-plain-radio.vue.d.ts +38 -0
- package/components/ui-plain-radio/ui-plain-radio.vue.js +85 -0
- package/components/ui-plain-radio/ui-plain-radio.vue.js.map +1 -0
- package/components/ui-plain-radio/ui-plain-radio.vue2.js +5 -0
- package/components/ui-plain-radio/ui-plain-radio.vue2.js.map +1 -0
- package/components/ui-progress/_types.d.ts +1 -0
- package/components/ui-progress/index.d.ts +44 -0
- package/components/ui-progress/index.js +7 -0
- package/components/ui-progress/index.js.map +1 -0
- package/components/ui-progress/ui-progress.vue.d.ts +40 -0
- package/components/ui-progress/ui-progress.vue.js +26 -0
- package/components/ui-progress/ui-progress.vue.js.map +1 -0
- package/components/ui-progress/ui-progress.vue2.js +5 -0
- package/components/ui-progress/ui-progress.vue2.js.map +1 -0
- package/components/ui-radio/index.d.ts +163 -0
- package/components/ui-radio/index.js +7 -0
- package/components/ui-radio/index.js.map +1 -0
- package/components/ui-radio/ui-radio.vue.d.ts +38 -0
- package/components/ui-radio/ui-radio.vue.js +8 -0
- package/components/ui-radio/ui-radio.vue.js.map +1 -0
- package/components/ui-radio/ui-radio.vue2.js +58 -0
- package/components/ui-radio/ui-radio.vue2.js.map +1 -0
- package/components/ui-radio-compact/index.d.ts +136 -0
- package/components/ui-radio-compact/index.js +7 -0
- package/components/ui-radio-compact/index.js.map +1 -0
- package/components/ui-radio-compact/ui-radio-compact.vue.d.ts +33 -0
- package/components/ui-radio-compact/ui-radio-compact.vue.js +52 -0
- package/components/ui-radio-compact/ui-radio-compact.vue.js.map +1 -0
- package/components/ui-radio-compact/ui-radio-compact.vue2.js +5 -0
- package/components/ui-radio-compact/ui-radio-compact.vue2.js.map +1 -0
- package/components/ui-radio-fancy/_typings.d.ts +5 -0
- package/components/ui-radio-fancy/_typings.js +5 -0
- package/components/ui-radio-fancy/_typings.js.map +1 -0
- package/components/ui-radio-fancy/index.d.ts +181 -0
- package/components/ui-radio-fancy/index.js +7 -0
- package/components/ui-radio-fancy/index.js.map +1 -0
- package/components/ui-radio-fancy/ui-radio-fancy.vue.d.ts +56 -0
- package/components/ui-radio-fancy/ui-radio-fancy.vue.js +86 -0
- package/components/ui-radio-fancy/ui-radio-fancy.vue.js.map +1 -0
- package/components/ui-radio-fancy/ui-radio-fancy.vue2.js +5 -0
- package/components/ui-radio-fancy/ui-radio-fancy.vue2.js.map +1 -0
- package/components/ui-result-card-range/_types.d.ts +7 -0
- package/components/ui-result-card-range/index.d.ts +112 -0
- package/components/ui-result-card-range/index.js +7 -0
- package/components/ui-result-card-range/index.js.map +1 -0
- package/components/ui-result-card-range/ui-result-card-range.vue.d.ts +30 -0
- package/components/ui-result-card-range/ui-result-card-range.vue.js +41 -0
- package/components/ui-result-card-range/ui-result-card-range.vue.js.map +1 -0
- package/components/ui-result-card-range/ui-result-card-range.vue2.js +5 -0
- package/components/ui-result-card-range/ui-result-card-range.vue2.js.map +1 -0
- package/components/ui-ripple/index.d.ts +54 -0
- package/components/ui-ripple/index.js +8 -0
- package/components/ui-ripple/index.js.map +1 -0
- package/components/ui-ripple/ui-ripple.vue.d.ts +10 -0
- package/components/ui-ripple/ui-ripple.vue.js +52 -0
- package/components/ui-ripple/ui-ripple.vue.js.map +1 -0
- package/components/ui-ripple/ui-ripple.vue3.js +6 -0
- package/components/ui-ripple/ui-ripple.vue3.js.map +1 -0
- package/components/ui-select/index.d.ts +131 -0
- package/components/ui-select/index.js +7 -0
- package/components/ui-select/index.js.map +1 -0
- package/components/ui-select/ui-select.vue.d.ts +36 -0
- package/components/ui-select/ui-select.vue.js +83 -0
- package/components/ui-select/ui-select.vue.js.map +1 -0
- package/components/ui-select/ui-select.vue2.js +5 -0
- package/components/ui-select/ui-select.vue2.js.map +1 -0
- package/components/ui-skeleton/_typings.d.ts +4 -0
- package/components/ui-skeleton/_typings.js +5 -0
- package/components/ui-skeleton/_typings.js.map +1 -0
- package/components/ui-skeleton/index.d.ts +21 -0
- package/components/ui-skeleton/index.js +7 -0
- package/components/ui-skeleton/index.js.map +1 -0
- package/components/ui-skeleton/ui-skeleton.vue.d.ts +31 -0
- package/components/ui-skeleton/ui-skeleton.vue.js +43 -0
- package/components/ui-skeleton/ui-skeleton.vue.js.map +1 -0
- package/components/ui-skeleton/ui-skeleton.vue2.js +5 -0
- package/components/ui-skeleton/ui-skeleton.vue2.js.map +1 -0
- package/components/ui-snackbar/_types.d.ts +7 -0
- package/components/ui-snackbar/_types.js +5 -0
- package/components/ui-snackbar/_types.js.map +1 -0
- package/components/ui-snackbar/index.d.ts +103 -0
- package/components/ui-snackbar/index.js +9 -0
- package/components/ui-snackbar/index.js.map +1 -0
- package/components/ui-snackbar/ui-snackbar.vue.d.ts +42 -0
- package/components/ui-snackbar/ui-snackbar.vue.js +49 -0
- package/components/ui-snackbar/ui-snackbar.vue.js.map +1 -0
- package/components/ui-snackbar/ui-snackbar.vue2.js +5 -0
- package/components/ui-snackbar/ui-snackbar.vue2.js.map +1 -0
- package/components/ui-table/_types.d.ts +5 -0
- package/components/ui-table/_types.js +5 -0
- package/components/ui-table/_types.js.map +1 -0
- package/components/ui-table/index.d.ts +87 -0
- package/components/ui-table/index.js +19 -0
- package/components/ui-table/index.js.map +1 -0
- package/components/ui-table/ui-table-cell/index.d.ts +87 -0
- package/components/ui-table/ui-table-cell/index.js +7 -0
- package/components/ui-table/ui-table-cell/index.js.map +1 -0
- package/components/ui-table/ui-table-cell/ui-table-cell.vue.d.ts +27 -0
- package/components/ui-table/ui-table-cell/ui-table-cell.vue.js +41 -0
- package/components/ui-table/ui-table-cell/ui-table-cell.vue.js.map +1 -0
- package/components/ui-table/ui-table-cell/ui-table-cell.vue2.js +5 -0
- package/components/ui-table/ui-table-cell/ui-table-cell.vue2.js.map +1 -0
- package/components/ui-table/ui-table-row/_typings.d.ts +3 -0
- package/components/ui-table/ui-table-row/_typings.js +5 -0
- package/components/ui-table/ui-table-row/_typings.js.map +1 -0
- package/components/ui-table/ui-table-row/index.d.ts +74 -0
- package/components/ui-table/ui-table-row/index.js +9 -0
- package/components/ui-table/ui-table-row/index.js.map +1 -0
- package/components/ui-table/ui-table-row/ui-table-row.vue.d.ts +24 -0
- package/components/ui-table/ui-table-row/ui-table-row.vue.js +8 -0
- package/components/ui-table/ui-table-row/ui-table-row.vue.js.map +1 -0
- package/components/ui-table/ui-table-row/ui-table-row.vue3.js +19 -0
- package/components/ui-table/ui-table-row/ui-table-row.vue3.js.map +1 -0
- package/components/ui-table/ui-table.vue.d.ts +38 -0
- package/components/ui-table/ui-table.vue.js +8 -0
- package/components/ui-table/ui-table.vue.js.map +1 -0
- package/components/ui-table/ui-table.vue2.js +23 -0
- package/components/ui-table/ui-table.vue2.js.map +1 -0
- package/components/ui-tabs/index.d.ts +40 -0
- package/components/ui-tabs/index.js +7 -0
- package/components/ui-tabs/index.js.map +1 -0
- package/components/ui-tabs/ui-tabs.vue.d.ts +38 -0
- package/components/ui-tabs/ui-tabs.vue.js +8 -0
- package/components/ui-tabs/ui-tabs.vue.js.map +1 -0
- package/components/ui-tabs/ui-tabs.vue2.js +56 -0
- package/components/ui-tabs/ui-tabs.vue2.js.map +1 -0
- package/components/ui-toggle/index.d.ts +168 -0
- package/components/ui-toggle/index.js +7 -0
- package/components/ui-toggle/index.js.map +1 -0
- package/components/ui-toggle/ui-toggle.vue.d.ts +40 -0
- package/components/ui-toggle/ui-toggle.vue.js +8 -0
- package/components/ui-toggle/ui-toggle.vue.js.map +1 -0
- package/components/ui-toggle/ui-toggle.vue2.js +94 -0
- package/components/ui-toggle/ui-toggle.vue2.js.map +1 -0
- package/components/ui-typography/_typings.d.ts +69 -0
- package/components/ui-typography/_typings.js +8 -0
- package/components/ui-typography/_typings.js.map +1 -0
- package/components/ui-typography/index.d.ts +167 -0
- package/components/ui-typography/index.js +14 -0
- package/components/ui-typography/index.js.map +1 -0
- package/components/ui-typography/ui-typography.vue.d.ts +39 -0
- package/components/ui-typography/ui-typography.vue.js +101 -0
- package/components/ui-typography/ui-typography.vue.js.map +1 -0
- package/components/ui-typography/ui-typography.vue2.js +5 -0
- package/components/ui-typography/ui-typography.vue2.js.map +1 -0
- package/components/ui-verification-input/index.d.ts +102 -0
- package/components/ui-verification-input/index.js +7 -0
- package/components/ui-verification-input/index.js.map +1 -0
- package/components/ui-verification-input/ui-verification-input.vue.d.ts +27 -0
- package/components/ui-verification-input/ui-verification-input.vue.js +8 -0
- package/components/ui-verification-input/ui-verification-input.vue.js.map +1 -0
- package/components/ui-verification-input/ui-verification-input.vue2.js +53 -0
- package/components/ui-verification-input/ui-verification-input.vue2.js.map +1 -0
- package/index.d.ts +40 -0
- package/index.js +200 -0
- package/index.js.map +1 -0
- package/package.json +69 -40
- package/plugin.ts +129 -0
- package/postcss.config.js +3 -0
- package/tailwind.config.ts +13 -0
- package/tsconfig.json +32 -19
- package/tsconfig.node.json +4 -2
- package/types.d.ts +20 -0
- package/types.js +71 -0
- package/types.js.map +1 -0
- package/.editorconfig +0 -14
- package/.github/workflows/deploy-beta.yaml +0 -31
- package/.github/workflows/deploy.yaml +0 -28
- package/.github/workflows/linting.yaml +0 -28
- package/.storybook/BonkersTheme.js +0 -32
- package/.storybook/main.js +0 -29
- package/.storybook/manager.js +0 -7
- package/.storybook/preview-head.html +0 -3
- package/.storybook/preview.js +0 -56
- package/LICENCE +0 -21
- package/README.md +0 -38
- package/publish.js +0 -45
- package/src/CONSTANTS.ts +0 -1
- package/src/_samples/check-icon.vue +0 -22
- package/src/_samples/icon.vue +0 -19
- package/src/_styles/variables/colors.css +0 -75
- package/src/_styles/variables/font-sizes.css +0 -15
- package/src/_styles/variables/shadow.css +0 -11
- package/src/_styles/variables/spacing.css +0 -15
- package/src/_types/align.ts +0 -8
- package/src/_types/colors.ts +0 -58
- package/src/_types/sizing.ts +0 -9
- package/src/components/ui-alert/_types.ts +0 -6
- package/src/components/ui-alert/index.ts +0 -2
- package/src/components/ui-alert/ui-alert.stories.ts +0 -31
- package/src/components/ui-alert/ui-alert.vue +0 -40
- package/src/components/ui-badge/_typings.ts +0 -11
- package/src/components/ui-badge/index.ts +0 -2
- package/src/components/ui-badge/ui-badge.stories.ts +0 -49
- package/src/components/ui-badge/ui-badge.vue +0 -65
- package/src/components/ui-ber-rank/_types.ts +0 -82
- package/src/components/ui-ber-rank/index.ts +0 -2
- package/src/components/ui-ber-rank/ui-ber-rank.stories.ts +0 -29
- package/src/components/ui-ber-rank/ui-ber-rank.vue +0 -96
- package/src/components/ui-button/_typings.ts +0 -17
- package/src/components/ui-button/index.ts +0 -2
- package/src/components/ui-button/ui-button.stories.ts +0 -143
- package/src/components/ui-button/ui-button.test.ts +0 -9
- package/src/components/ui-button/ui-button.vue +0 -79
- package/src/components/ui-card-cta/index.ts +0 -1
- package/src/components/ui-card-cta/ui-card-cta.stories.ts +0 -53
- package/src/components/ui-card-cta/ui-card-cta.vue +0 -94
- package/src/components/ui-card-result/index.ts +0 -1
- package/src/components/ui-card-result/ui-card-result.stories.ts +0 -167
- package/src/components/ui-card-result/ui-card-result.vue +0 -97
- package/src/components/ui-card-simple/index.ts +0 -1
- package/src/components/ui-card-simple/ui-card-simple.stories.ts +0 -40
- package/src/components/ui-card-simple/ui-card-simple.vue +0 -30
- package/src/components/ui-checkbox/index.ts +0 -1
- package/src/components/ui-checkbox/ui-checkbox.stories.ts +0 -71
- package/src/components/ui-checkbox/ui-checkbox.vue +0 -173
- package/src/components/ui-icon/_typings.ts +0 -11
- package/src/components/ui-icon/index.ts +0 -3
- package/src/components/ui-icon/ui-icon.stories.ts +0 -43
- package/src/components/ui-icon/ui-icon.vue +0 -27
- package/src/components/ui-icon-wrapper/_typings.ts +0 -11
- package/src/components/ui-icon-wrapper/index.ts +0 -2
- package/src/components/ui-icon-wrapper/ui-icon-wrapper.stories.ts +0 -69
- package/src/components/ui-icon-wrapper/ui-icon-wrapper.vue +0 -44
- package/src/components/ui-input/_typings.ts +0 -74
- package/src/components/ui-input/index.ts +0 -2
- package/src/components/ui-input/ui-input.stories.ts +0 -103
- package/src/components/ui-input/ui-input.vue +0 -100
- package/src/components/ui-input-range/index.ts +0 -1
- package/src/components/ui-input-range/ui-input-range.stories.ts +0 -57
- package/src/components/ui-input-range/ui-input-range.vue +0 -138
- package/src/components/ui-list-item/_types.ts +0 -13
- package/src/components/ui-list-item/index.ts +0 -2
- package/src/components/ui-list-item/ui-list-item.stories.ts +0 -77
- package/src/components/ui-list-item/ui-list-item.vue +0 -79
- package/src/components/ui-modal/_typings.ts +0 -6
- package/src/components/ui-modal/index.ts +0 -2
- package/src/components/ui-modal/ui-backdrop/index.ts +0 -1
- package/src/components/ui-modal/ui-backdrop/ui-backdrop.vue +0 -22
- package/src/components/ui-modal/ui-modal.stories.ts +0 -85
- package/src/components/ui-modal/ui-modal.vue +0 -90
- package/src/components/ui-notification-badge/_types.ts +0 -11
- package/src/components/ui-notification-badge/index.ts +0 -2
- package/src/components/ui-notification-badge/ui-notification-badge.stories.ts +0 -44
- package/src/components/ui-notification-badge/ui-notification-badge.vue +0 -42
- package/src/components/ui-order-card/_types.ts +0 -4
- package/src/components/ui-order-card/index.ts +0 -1
- package/src/components/ui-order-card/ui-order-card.stories.ts +0 -57
- package/src/components/ui-order-card/ui-order-card.vue +0 -83
- package/src/components/ui-plain-radio/index.ts +0 -1
- package/src/components/ui-plain-radio/ui-plain-radio.stories.ts +0 -74
- package/src/components/ui-plain-radio/ui-plain-radio.vue +0 -119
- package/src/components/ui-progress/_types.ts +0 -0
- package/src/components/ui-progress/index.ts +0 -1
- package/src/components/ui-progress/ui-progress.stories.ts +0 -40
- package/src/components/ui-progress/ui-progress.vue +0 -43
- package/src/components/ui-radio/index.ts +0 -1
- package/src/components/ui-radio/ui-radio.stories.ts +0 -74
- package/src/components/ui-radio/ui-radio.vue +0 -108
- package/src/components/ui-radio-compact/index.ts +0 -1
- package/src/components/ui-radio-compact/ui-radio-compact.stories.ts +0 -51
- package/src/components/ui-radio-compact/ui-radio-compact.vue +0 -92
- package/src/components/ui-radio-fancy/_typings.ts +0 -5
- package/src/components/ui-radio-fancy/index.ts +0 -1
- package/src/components/ui-radio-fancy/ui-radio-fancy.stories.ts +0 -81
- package/src/components/ui-radio-fancy/ui-radio-fancy.vue +0 -132
- package/src/components/ui-result-card-range/_types.ts +0 -8
- package/src/components/ui-result-card-range/index.ts +0 -1
- package/src/components/ui-result-card-range/ui-result-card-range.stories.ts +0 -78
- package/src/components/ui-result-card-range/ui-result-card-range.vue +0 -46
- package/src/components/ui-ripple/index.ts +0 -1
- package/src/components/ui-ripple/ui-ripple.stories.ts +0 -61
- package/src/components/ui-ripple/ui-ripple.vue +0 -83
- package/src/components/ui-select/index.ts +0 -1
- package/src/components/ui-select/ui-select.stories.ts +0 -55
- package/src/components/ui-select/ui-select.vue +0 -72
- package/src/components/ui-skeleton/_typings.ts +0 -4
- package/src/components/ui-skeleton/index.ts +0 -1
- package/src/components/ui-skeleton/ui-skeleton.stories.ts +0 -42
- package/src/components/ui-skeleton/ui-skeleton.vue +0 -61
- package/src/components/ui-snackbar/_types.ts +0 -7
- package/src/components/ui-snackbar/index.ts +0 -2
- package/src/components/ui-snackbar/ui-snackbar.stories.ts +0 -30
- package/src/components/ui-snackbar/ui-snackbar.vue +0 -42
- package/src/components/ui-table/_types.ts +0 -5
- package/src/components/ui-table/index.ts +0 -5
- package/src/components/ui-table/ui-table-cell/index.ts +0 -1
- package/src/components/ui-table/ui-table-cell/ui-table-cell.vue +0 -33
- package/src/components/ui-table/ui-table-row/_typings.ts +0 -3
- package/src/components/ui-table/ui-table-row/index.ts +0 -2
- package/src/components/ui-table/ui-table-row/ui-table-row.vue +0 -31
- package/src/components/ui-table/ui-table.stories.ts +0 -86
- package/src/components/ui-table/ui-table.vue +0 -31
- package/src/components/ui-tabs/index.ts +0 -1
- package/src/components/ui-tabs/ui-tabs.stories.ts +0 -33
- package/src/components/ui-tabs/ui-tabs.vue +0 -60
- package/src/components/ui-toggle/index.ts +0 -1
- package/src/components/ui-toggle/ui-toggle.stories.ts +0 -55
- package/src/components/ui-toggle/ui-toggle.vue +0 -149
- package/src/components/ui-typography/_typings.ts +0 -30
- package/src/components/ui-typography/index.ts +0 -3
- package/src/components/ui-typography/ui-typography.stories.ts +0 -101
- package/src/components/ui-typography/ui-typography.vue +0 -109
- package/src/components/ui-verification-input/index.ts +0 -1
- package/src/components/ui-verification-input/ui-verification-input.stories.ts +0 -48
- package/src/components/ui-verification-input/ui-verification-input.vue +0 -126
- package/src/main.css +0 -34
- package/src/shims-vue.d.ts +0 -5
- package/src/stories/Introduction.stories.mdx +0 -131
- package/src/stories/assets/code-brackets.svg +0 -1
- package/src/stories/colors/colors.stories.ts +0 -15
- package/src/stories/colors/ui-colors.vue +0 -96
- package/src/stories/font-sizes/font-sizes.stories.ts +0 -15
- package/src/stories/font-sizes/ui-font-sizes.vue +0 -28
- package/src/stories/helper.ts +0 -5
- package/src/stories/spacings/spacings.stories.ts +0 -15
- package/src/stories/spacings/ui-spacings.vue +0 -50
- package/tailwind.config.js +0 -30
- package/vite.config.ts +0 -14
- package/vitest.config.ts +0 -17
- /package/src/_styles/{classTypes/_colors.json → _colors.json} +0 -0
- /package/src/_styles/{classTypes/_font-sizes.json → _font-sizes.json} +0 -0
- /package/src/_styles/{classTypes/_shadow.json → _shadow.json} +0 -0
- /package/src/_styles/{classTypes/_spacing.json → _spacing.json} +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { EJustify } from "../../_types/align";
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
modelValue: boolean | unknown[];
|
|
5
|
+
justify?: EJustify | undefined;
|
|
6
|
+
invertOrder?: boolean | undefined;
|
|
7
|
+
disabled?: boolean | undefined;
|
|
8
|
+
value?: string | undefined;
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (state: boolean | unknown[]) => void;
|
|
11
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
+
modelValue: boolean | unknown[];
|
|
13
|
+
justify?: EJustify | undefined;
|
|
14
|
+
invertOrder?: boolean | undefined;
|
|
15
|
+
disabled?: boolean | undefined;
|
|
16
|
+
value?: string | undefined;
|
|
17
|
+
}>>> & {
|
|
18
|
+
"onUpdate:modelValue"?: ((state: boolean | unknown[]) => any) | undefined;
|
|
19
|
+
}, {}, {}>, {
|
|
20
|
+
default?(_: {}): any;
|
|
21
|
+
}>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(".ui-checkbox[data-v-1bc5e146]{grid-template-columns:auto auto}.ui-checkbox_custom[data-v-1bc5e146]{transition:background-color ease-in-out .3s .3s,border-width ease-in-out .2s}.ui-checkbox__icon[data-v-1bc5e146]{stroke-dasharray:70;stroke-dashoffset:70;transition:stroke-dashoffset .3s ease-in-out}input+.ui-checkbox_custom[data-v-1bc5e146]:active{transition:background-color ease-in-out .1s;background-color:var(--color-secondary-alt-200)}input+.ui-checkbox_custom[data-v-1bc5e146]:active,input:focus+.ui-checkbox_custom[data-v-1bc5e146]{box-shadow:var(--shadow-border-primary)}input:disabled+.ui-checkbox_custom[data-v-1bc5e146]{background-color:var(--color-secondary-alt-200);border-color:var(--color-secondary-alt-400)}input:checked+.ui-checkbox_custom .ui-checkbox__icon[data-v-1bc5e146]{stroke-dashoffset:0}input:checked+.ui-checkbox_custom>svg[data-v-1bc5e146]{opacity:1}input:checked+.ui-checkbox_custom[data-v-1bc5e146]{border-width:0;background-color:var(--color-primary);transition:background-color ease-in-out .1s,border-width ease-in-out .1s,box-shadow ease-in-out .2s;animation:cb-pop-1bc5e146 .5s ease-in-out}input:checked+.ui-checkbox_custom[data-v-1bc5e146]:hover{background-color:var(--color-primary-600)}input:checked+.ui-checkbox_custom[data-v-1bc5e146]:active{background-color:var(--color-primary-700)}input:checked:disabled+.ui-checkbox_custom[data-v-1bc5e146]{background-color:var(--color-primary-300);border:1px solid var(--color-primary-400)}.ui-checkbox_disabled[data-v-1bc5e146]{pointer-events:none;cursor:default}@keyframes cb-pop-1bc5e146{0%{transform:scale(1)}33%{transform:scale(.95)}66%{transform:scale(1.05)}to{transform:scale(1)}}")),document.head.appendChild(o)}}catch(c){console.error("vite-plugin-css-injected-by-js",c)}})();
|
|
2
|
+
import o from "./ui-checkbox.vue2.js";
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1bc5e146"]]);
|
|
5
|
+
export {
|
|
6
|
+
m as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=ui-checkbox.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-checkbox.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as y, useSlots as h, computed as b, openBlock as d, createElementBlock as u, normalizeClass as n, unref as t, withDirectives as v, createElementVNode as r, vModelCheckbox as j, renderSlot as k, createCommentVNode as w, pushScopeId as E, popScopeId as V } from "vue";
|
|
2
|
+
import { EJustify as o } from "../../_types/align.js";
|
|
3
|
+
const g = (s) => (E("data-v-1bc5e146"), s = s(), V(), s), B = ["value", "disabled"], N = /* @__PURE__ */ g(() => /* @__PURE__ */ r("svg", {
|
|
4
|
+
class: "ui-checkbox__icon text-white",
|
|
5
|
+
width: "16",
|
|
6
|
+
height: "12",
|
|
7
|
+
viewBox: "0 0 16 12",
|
|
8
|
+
fill: "none",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10
|
+
}, [
|
|
11
|
+
/* @__PURE__ */ r("path", {
|
|
12
|
+
d: "M1 4.40106L6.60071 10.1135L15.1694 1.71245",
|
|
13
|
+
stroke: "currentColor",
|
|
14
|
+
"stroke-width": "1.6",
|
|
15
|
+
"stroke-linecap": "round"
|
|
16
|
+
})
|
|
17
|
+
], -1)), _ = [
|
|
18
|
+
N
|
|
19
|
+
], C = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "ui-checkbox__slot-wrapper"
|
|
22
|
+
}, x = /* @__PURE__ */ y({
|
|
23
|
+
__name: "ui-checkbox",
|
|
24
|
+
props: {
|
|
25
|
+
modelValue: { type: [Boolean, Array] },
|
|
26
|
+
justify: {},
|
|
27
|
+
invertOrder: { type: Boolean },
|
|
28
|
+
disabled: { type: Boolean },
|
|
29
|
+
value: {}
|
|
30
|
+
},
|
|
31
|
+
emits: ["update:modelValue"],
|
|
32
|
+
setup(s, { emit: c }) {
|
|
33
|
+
const l = h(), p = s, m = c, a = b({
|
|
34
|
+
get() {
|
|
35
|
+
return p.modelValue;
|
|
36
|
+
},
|
|
37
|
+
set(e) {
|
|
38
|
+
m("update:modelValue", e);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
return (e, i) => (d(), u("label", {
|
|
42
|
+
class: n(["ui-checkbox grid cursor-pointer", [
|
|
43
|
+
t(l).default && "items-center gap-sm",
|
|
44
|
+
(!e.justify || e.justify === t(o).START) && "justify-start",
|
|
45
|
+
e.justify === t(o).END && "justify-end",
|
|
46
|
+
e.justify === t(o).AROUND && "justify-around",
|
|
47
|
+
e.justify === t(o).BETWEEN && "justify-between",
|
|
48
|
+
e.justify === t(o).EVENLY && "justify-evenly",
|
|
49
|
+
e.justify === t(o).CENTER && "justify-center",
|
|
50
|
+
e.disabled && "ui-checkbox_disabled"
|
|
51
|
+
]])
|
|
52
|
+
}, [
|
|
53
|
+
v(r("input", {
|
|
54
|
+
"onUpdate:modelValue": i[0] || (i[0] = (f) => a.value = f),
|
|
55
|
+
class: "absolute appearance-none",
|
|
56
|
+
type: "checkbox",
|
|
57
|
+
value: e.value,
|
|
58
|
+
disabled: e.disabled
|
|
59
|
+
}, null, 8, B), [
|
|
60
|
+
[j, a.value]
|
|
61
|
+
]),
|
|
62
|
+
r("span", {
|
|
63
|
+
class: n(["ui-checkbox_custom relative flex h-md w-md items-center justify-center rounded border border-secondary-alt-500 hover:border-secondary-alt-700", e.invertOrder && "order-last"])
|
|
64
|
+
}, _, 2),
|
|
65
|
+
t(l).default ? (d(), u("span", C, [
|
|
66
|
+
k(e.$slots, "default", {}, void 0, !0)
|
|
67
|
+
])) : w("", !0)
|
|
68
|
+
], 2));
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
export {
|
|
72
|
+
x as default
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=ui-checkbox.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-checkbox.vue2.js","sources":["../../../src/components/ui-checkbox/ui-checkbox.vue"],"sourcesContent":["<template>\n\t<label\n\t\tclass=\"ui-checkbox grid cursor-pointer\"\n\t\t:class=\"[\n\t\t\tslots.default && 'items-center gap-sm',\n\t\t\t(!justify || justify === EJustify.START) && 'justify-start',\n\t\t\tjustify === EJustify.END && 'justify-end',\n\t\t\tjustify === EJustify.AROUND && 'justify-around',\n\t\t\tjustify === EJustify.BETWEEN && 'justify-between',\n\t\t\tjustify === EJustify.EVENLY && 'justify-evenly',\n\t\t\tjustify === EJustify.CENTER && 'justify-center',\n\t\t\tdisabled && 'ui-checkbox_disabled',\n\t\t]\"\n\t>\n\t\t<input\n\t\t\tv-model=\"checkboxModel\"\n\t\t\tclass=\"absolute appearance-none\"\n\t\t\ttype=\"checkbox\"\n\t\t\t:value=\"value\"\n\t\t\t:disabled=\"disabled\"\n\t\t>\n\t\t<span\n\t\t\tclass=\"\n\t\t\t\tui-checkbox_custom\n\t\t\t\trelative\n\t\t\t\tflex\n\t\t\t\th-md\n\t\t\t\tw-md\n\t\t\t\titems-center\n\t\t\t\tjustify-center\n\t\t\t\trounded\n\t\t\t\tborder\n\t\t\t\tborder-secondary-alt-500\n\t\t\t\thover:border-secondary-alt-700\n\t\t\t\t\"\n\t\t\t:class=\"invertOrder && 'order-last'\"\n\t\t>\n\t\t\t<svg\n\t\t\t\tclass=\"ui-checkbox__icon text-white\"\n\t\t\t\twidth=\"16\"\n\t\t\t\theight=\"12\"\n\t\t\t\tviewBox=\"0 0 16 12\"\n\t\t\t\tfill=\"none\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t>\n\t\t\t\t<path\n\t\t\t\t\td=\"M1 4.40106L6.60071 10.1135L15.1694 1.71245\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"1.6\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t/>\n\t\t\t</svg>\n\n\t\t</span>\n\t\t<span\n\t\t\tv-if=\"slots.default\"\n\t\t\tclass=\"ui-checkbox__slot-wrapper\"\n\t\t>\n\t\t\t<slot />\n\t\t</span>\n\t</label>\n</template>\n\n<script lang=\"ts\" setup>\n\timport { useSlots, computed } from \"vue\";\n\timport { EJustify } from \"../../_types/align\";\n\n\tconst slots = useSlots();\n\n\tconst props = defineProps<{\n\t\tmodelValue: boolean | unknown[];\n\t\tjustify?: EJustify;\n\t\tinvertOrder?: boolean;\n\t\tdisabled?: boolean;\n\t\tvalue?: string;\n\t}>();\n\n\tconst emit = defineEmits<{\n\t\t(e: \"update:modelValue\", state: typeof props.modelValue): void\n\t}>();\n\n\tconst checkboxModel = computed({\n\t\tget() {\n\t\t\treturn props.modelValue;\n\t\t},\n\t\tset(value) {\n\t\t\temit(\"update:modelValue\", value);\n\t\t}\n\t});\n\n</script>\n\n<style scoped>\n\t.ui-checkbox {\n\t\tgrid-template-columns: auto auto;\n\t}\n\n\t.ui-checkbox_custom {\n\t\ttransition: background-color ease-in-out 0.3s 0.3s, border-width ease-in-out 0.2s;\n\t}\n\n\t.ui-checkbox__icon {\n\t\tstroke-dasharray: 70;\n\t\tstroke-dashoffset: 70;\n\t\ttransition: stroke-dashoffset 0.3s ease-in-out;\n\t}\n\n\tinput + .ui-checkbox_custom:active {\n\t\ttransition: background-color ease-in-out 0.1s;\n\t\tbackground-color: var(--color-secondary-alt-200);\n\t}\n\n\tinput + .ui-checkbox_custom:active,\n\tinput:focus + .ui-checkbox_custom {\n\t\tbox-shadow: var(--shadow-border-primary);\n\t}\n\n\tinput:disabled + .ui-checkbox_custom {\n\t\tbackground-color: var(--color-secondary-alt-200);\n\t\tborder-color: var(--color-secondary-alt-400);\n\t}\n\n\tinput:checked + .ui-checkbox_custom .ui-checkbox__icon {\n\t\tstroke-dashoffset: 0;\n\t}\n\n\tinput:checked + .ui-checkbox_custom > svg {\n\t\topacity: 1;\n\t}\n\n\tinput:checked + .ui-checkbox_custom {\n\t\tborder-width: 0;\n\t\tbackground-color: var(--color-primary);\n\t\ttransition: background-color ease-in-out 0.1s, border-width ease-in-out 0.1s, box-shadow ease-in-out 0.2s;\n\t\tanimation: cb-pop 0.5s ease-in-out;\n\t}\n\n\tinput:checked + .ui-checkbox_custom:hover {\n\t\tbackground-color: var(--color-primary-600);\n\t}\n\n\tinput:checked + .ui-checkbox_custom:active {\n\t\tbackground-color: var(--color-primary-700);\n\t}\n\n\tinput:checked:disabled + .ui-checkbox_custom {\n\t\tbackground-color: var(--color-primary-300);\n\t\tborder: 1px solid var(--color-primary-400);\n\t}\n\n\t.ui-checkbox_disabled {\n\t\tpointer-events: none;\n\t\tcursor: default;\n\t}\n\n\t@keyframes cb-pop {\n\t\t0% {\n\t\t\ttransform: scale(1);\n\t\t}\n\n\t\t33% {\n\t\t\ttransform: scale(0.95);\n\t\t}\n\n\t\t66% {\n\t\t\ttransform: scale(1.05);\n\t\t}\n\n\t\t100% {\n\t\t\ttransform: scale(1);\n\t\t}\n\t}\n</style>\n"],"names":["slots","useSlots","props","__props","emit","__emit","checkboxModel","computed","value"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEC,UAAMA,IAAQC,KAERC,IAAQC,GAQRC,IAAOC,GAIPC,IAAgBC,EAAS;AAAA,MAC9B,MAAM;AACL,eAAOL,EAAM;AAAA,MACd;AAAA,MACA,IAAIM,GAAO;AACV,QAAAJ,EAAK,qBAAqBI,CAAK;AAAA,MAChC;AAAA,IAAA,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_typings.js","sources":["../../../src/components/ui-dropdown/_typings.ts"],"sourcesContent":["export enum EDropdownKinds {\n\tDEFAULT = \"default\",\n\tSECONDARY = \"secondary\"\n\n}\n"],"names":["EDropdownKinds"],"mappings":"AAAY,IAAAA,sBAAAA,OACXA,EAAA,UAAU,WACVA,EAAA,YAAY,aAFDA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { TIconName } from '../ui-icon/_typings.ts';
|
|
2
|
+
import { EDropdownKinds } from './_typings.ts';
|
|
3
|
+
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
4
|
+
import UiDropdown from "./ui-dropdown.vue";
|
|
5
|
+
export { UiDropdown };
|
|
6
|
+
export { EDropdownKinds } from "./_typings.ts";
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
|
|
9
|
+
*/
|
|
10
|
+
declare const deprecatedDefault: {
|
|
11
|
+
new (...args: any[]): {
|
|
12
|
+
$: ComponentInternalInstance;
|
|
13
|
+
$data: {};
|
|
14
|
+
$props: Partial<{
|
|
15
|
+
kind: EDropdownKinds;
|
|
16
|
+
active: boolean;
|
|
17
|
+
}> & Omit<{
|
|
18
|
+
readonly kind: EDropdownKinds;
|
|
19
|
+
readonly iconName: TIconName;
|
|
20
|
+
readonly active: boolean;
|
|
21
|
+
readonly header?: string | undefined;
|
|
22
|
+
readonly subText?: string | undefined;
|
|
23
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
|
|
24
|
+
header: {
|
|
25
|
+
type: PropType<string>;
|
|
26
|
+
};
|
|
27
|
+
kind: {
|
|
28
|
+
type: PropType<EDropdownKinds>;
|
|
29
|
+
default: EDropdownKinds;
|
|
30
|
+
};
|
|
31
|
+
iconName: {
|
|
32
|
+
type: PropType<TIconName>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
subText: {
|
|
36
|
+
type: PropType<string>;
|
|
37
|
+
};
|
|
38
|
+
active: {
|
|
39
|
+
type: PropType<boolean>;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
}>>, "kind" | "active">;
|
|
43
|
+
$attrs: {
|
|
44
|
+
[x: string]: unknown;
|
|
45
|
+
};
|
|
46
|
+
$refs: {
|
|
47
|
+
[x: string]: unknown;
|
|
48
|
+
};
|
|
49
|
+
$slots: Readonly<{
|
|
50
|
+
[name: string]: Slot<any> | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
53
|
+
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
54
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
55
|
+
$el: any;
|
|
56
|
+
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
57
|
+
header: {
|
|
58
|
+
type: PropType<string>;
|
|
59
|
+
};
|
|
60
|
+
kind: {
|
|
61
|
+
type: PropType<EDropdownKinds>;
|
|
62
|
+
default: EDropdownKinds;
|
|
63
|
+
};
|
|
64
|
+
iconName: {
|
|
65
|
+
type: PropType<TIconName>;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
subText: {
|
|
69
|
+
type: PropType<string>;
|
|
70
|
+
};
|
|
71
|
+
active: {
|
|
72
|
+
type: PropType<boolean>;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
76
|
+
kind: EDropdownKinds;
|
|
77
|
+
active: boolean;
|
|
78
|
+
}, {}, string, {}> & {
|
|
79
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
80
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
81
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
82
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
83
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
84
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
85
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
86
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
87
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
88
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
89
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
90
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
91
|
+
renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
92
|
+
renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
93
|
+
errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
94
|
+
};
|
|
95
|
+
$forceUpdate: () => void;
|
|
96
|
+
$nextTick: typeof nextTick;
|
|
97
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
98
|
+
} & Readonly<ExtractPropTypes<{
|
|
99
|
+
header: {
|
|
100
|
+
type: PropType<string>;
|
|
101
|
+
};
|
|
102
|
+
kind: {
|
|
103
|
+
type: PropType<EDropdownKinds>;
|
|
104
|
+
default: EDropdownKinds;
|
|
105
|
+
};
|
|
106
|
+
iconName: {
|
|
107
|
+
type: PropType<TIconName>;
|
|
108
|
+
required: true;
|
|
109
|
+
};
|
|
110
|
+
subText: {
|
|
111
|
+
type: PropType<string>;
|
|
112
|
+
};
|
|
113
|
+
active: {
|
|
114
|
+
type: PropType<boolean>;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
117
|
+
}>> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
118
|
+
__isFragment?: undefined;
|
|
119
|
+
__isTeleport?: undefined;
|
|
120
|
+
__isSuspense?: undefined;
|
|
121
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
122
|
+
header: {
|
|
123
|
+
type: PropType<string>;
|
|
124
|
+
};
|
|
125
|
+
kind: {
|
|
126
|
+
type: PropType<EDropdownKinds>;
|
|
127
|
+
default: EDropdownKinds;
|
|
128
|
+
};
|
|
129
|
+
iconName: {
|
|
130
|
+
type: PropType<TIconName>;
|
|
131
|
+
required: true;
|
|
132
|
+
};
|
|
133
|
+
subText: {
|
|
134
|
+
type: PropType<string>;
|
|
135
|
+
};
|
|
136
|
+
active: {
|
|
137
|
+
type: PropType<boolean>;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
141
|
+
kind: EDropdownKinds;
|
|
142
|
+
active: boolean;
|
|
143
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
144
|
+
$slots: {
|
|
145
|
+
default?(_: {}): any;
|
|
146
|
+
};
|
|
147
|
+
});
|
|
148
|
+
export default deprecatedDefault;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/ui-dropdown/index.ts"],"sourcesContent":["import UiDropdown from \"./ui-dropdown.vue\";\n\nexport { UiDropdown };\nexport { EDropdownKinds } from \"./_typings.ts\";\n/**\n * @deprecated The default should not be used - use named import as - import {[name]} from \"ui/[name]\"\n */\nconst deprecatedDefault = UiDropdown;\nexport default deprecatedDefault;\n"],"names":["deprecatedDefault","UiDropdown"],"mappings":";;AAOA,MAAMA,IAAoBC;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { type TIconName } from "../ui-icon";
|
|
3
|
+
import { EDropdownKinds } from "./_typings";
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
header?: string | undefined;
|
|
6
|
+
iconName: TIconName;
|
|
7
|
+
subText?: string | undefined;
|
|
8
|
+
kind?: EDropdownKinds | undefined;
|
|
9
|
+
active?: boolean | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
kind: EDropdownKinds;
|
|
12
|
+
active: boolean;
|
|
13
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
+
header?: string | undefined;
|
|
15
|
+
iconName: TIconName;
|
|
16
|
+
subText?: string | undefined;
|
|
17
|
+
kind?: EDropdownKinds | undefined;
|
|
18
|
+
active?: boolean | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
kind: EDropdownKinds;
|
|
21
|
+
active: boolean;
|
|
22
|
+
}>>>, {
|
|
23
|
+
kind: EDropdownKinds;
|
|
24
|
+
active: boolean;
|
|
25
|
+
}, {}>, {
|
|
26
|
+
default?(_: {}): any;
|
|
27
|
+
}>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
31
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
32
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
33
|
+
} : {
|
|
34
|
+
type: PropType<T[K]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
type __VLS_WithDefaults<P, D> = {
|
|
39
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
40
|
+
default: D[K];
|
|
41
|
+
}> : P[K];
|
|
42
|
+
};
|
|
43
|
+
type __VLS_Prettify<T> = {
|
|
44
|
+
[K in keyof T]: T[K];
|
|
45
|
+
} & {};
|
|
46
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { defineComponent as f, ref as i, onMounted as v, openBlock as h, createElementBlock as g, normalizeClass as r, unref as o, createElementVNode as d, createVNode as u, withCtx as y, createTextVNode as c, toDisplayString as p, normalizeStyle as b, renderSlot as D } from "vue";
|
|
2
|
+
import E from "../ui-typography/index.js";
|
|
3
|
+
import k from "../ui-icon/index.js";
|
|
4
|
+
import { EDropdownKinds as n } from "./_typings.js";
|
|
5
|
+
import { ETypographySizes as T, ETextWeight as w } from "../ui-typography/_typings.js";
|
|
6
|
+
import { ESize as z } from "../../_types/sizing.js";
|
|
7
|
+
const S = ["active"], U = /* @__PURE__ */ f({
|
|
8
|
+
__name: "ui-dropdown",
|
|
9
|
+
props: {
|
|
10
|
+
header: {},
|
|
11
|
+
iconName: {},
|
|
12
|
+
subText: {},
|
|
13
|
+
kind: { default: n.DEFAULT },
|
|
14
|
+
active: { type: Boolean, default: !0 }
|
|
15
|
+
},
|
|
16
|
+
setup(m) {
|
|
17
|
+
const a = i(null), l = i(0), t = i(m.active);
|
|
18
|
+
return v(() => {
|
|
19
|
+
if (a.value) {
|
|
20
|
+
const { height: e } = a.value.getBoundingClientRect();
|
|
21
|
+
l.value = e;
|
|
22
|
+
}
|
|
23
|
+
}), (e, s) => (h(), g("div", {
|
|
24
|
+
class: r(["bg-white", {
|
|
25
|
+
"rounded-lg border border-secondary-alt-300": e.kind === o(n).DEFAULT
|
|
26
|
+
}])
|
|
27
|
+
}, [
|
|
28
|
+
d("div", {
|
|
29
|
+
class: r(["flex justify-between px-md py-sm", {
|
|
30
|
+
"rounded-lg border border-secondary": e.kind === o(n).SECONDARY
|
|
31
|
+
}]),
|
|
32
|
+
onClick: s[0] || (s[0] = (N) => t.value = !t.value)
|
|
33
|
+
}, [
|
|
34
|
+
u(o(E), {
|
|
35
|
+
"line-height": "",
|
|
36
|
+
size: o(T).MD,
|
|
37
|
+
weight: o(w).SEMI_BOLD
|
|
38
|
+
}, {
|
|
39
|
+
default: y(() => [
|
|
40
|
+
c(p(e.header), 1)
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}, 8, ["size", "weight"]),
|
|
44
|
+
u(o(k), {
|
|
45
|
+
class: r(["item-icon duration-200", {
|
|
46
|
+
"rotate-180": t.value,
|
|
47
|
+
"rotate-0": !t.value
|
|
48
|
+
}]),
|
|
49
|
+
"icon-name": e.iconName,
|
|
50
|
+
size: o(z).MD
|
|
51
|
+
}, null, 8, ["class", "icon-name", "size"])
|
|
52
|
+
], 2),
|
|
53
|
+
d("div", {
|
|
54
|
+
class: r(["overflow-hidden duration-300", {
|
|
55
|
+
"border border-transparent border-t-secondary-alt-300": e.kind === o(n).DEFAULT,
|
|
56
|
+
"!h-0 opacity-0": !t.value,
|
|
57
|
+
"h-auto opacity-100": t.value
|
|
58
|
+
}]),
|
|
59
|
+
style: b({
|
|
60
|
+
height: l.value + "px"
|
|
61
|
+
}),
|
|
62
|
+
active: e.active
|
|
63
|
+
}, [
|
|
64
|
+
d("div", {
|
|
65
|
+
ref_key: "contentRef",
|
|
66
|
+
ref: a,
|
|
67
|
+
class: r(["box-border pt-sm", {
|
|
68
|
+
"p-sm": e.kind === o(n).DEFAULT
|
|
69
|
+
}])
|
|
70
|
+
}, [
|
|
71
|
+
D(e.$slots, "default", {}, () => [
|
|
72
|
+
c(p(e.subText), 1)
|
|
73
|
+
])
|
|
74
|
+
], 2)
|
|
75
|
+
], 14, S)
|
|
76
|
+
], 2));
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
export {
|
|
80
|
+
U as default
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=ui-dropdown.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-dropdown.vue.js","sources":["../../../src/components/ui-dropdown/ui-dropdown.vue"],"sourcesContent":["<template>\n\t<div\n\t\tclass=\"bg-white\"\n\t\t:class=\"{\n\t\t\t'rounded-lg border border-secondary-alt-300': kind === EDropdownKinds.DEFAULT\n\t\t}\"\n\t>\n\t\t<div\n\t\t\tclass=\"flex justify-between px-md py-sm\"\n\t\t\t:class=\"{\n\t\t\t\t'rounded-lg border border-secondary': kind === EDropdownKinds.SECONDARY\n\t\t\t}\"\n\t\t\t@click=\"isOpen = !isOpen\"\n\t\t>\n\t\t\t<ui-typography\n\t\t\t\tline-height\n\t\t\t\t:size=\"ETypographySizes.MD\"\n\t\t\t\t:weight=\"ETextWeight.SEMI_BOLD \"\n\t\t\t>\n\t\t\t\t{{ header }}\n\t\t\t</ui-typography>\n\n\t\t\t<ui-icon\n\t\t\t\tclass=\"item-icon duration-200\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t'rotate-180': isOpen,\n\t\t\t\t\t'rotate-0': !isOpen\n\t\t\t\t}\"\n\t\t\t\t:icon-name=\"iconName\"\n\t\t\t\t:size=\"ESize.MD\"\n\t\t\t/>\n\t\t</div>\n\n\t\t<div\n\t\t\tclass=\"overflow-hidden duration-300\"\n\t\t\t:style=\"{\n\t\t\t\theight: accordionHeight + 'px'\n\t\t\t}\"\n\t\t\t:class=\"{\n\t\t\t\t'border border-transparent border-t-secondary-alt-300':\n\t\t\t\t\tkind === EDropdownKinds.DEFAULT,\n\t\t\t\t'!h-0 opacity-0': !isOpen,\n\t\t\t\t'h-auto opacity-100': isOpen\n\n\t\t\t}\"\n\t\t\t:active=\"active\"\n\t\t>\n\t\t\t<div\n\t\t\t\tref=\"contentRef\"\n\t\t\t\tclass=\"box-border pt-sm\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t'p-sm': kind === EDropdownKinds.DEFAULT\n\n\t\t\t\t}\"\n\t\t\t>\n\t\t\t\t<slot>\n\t\t\t\t\t{{ subText }}\n\t\t\t\t</slot>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n<script lang=\"ts\" setup>\n\timport { onMounted, ref } from \"vue\";\n\timport UiTypography, { ETypographySizes, ETextWeight } from \"../ui-typography\";\n\timport UiIcon, { type TIconName, ESize } from \"../ui-icon\";\n\timport { EDropdownKinds } from \"./_typings\";\n\n\tconst contentRef = ref<null | HTMLDivElement>(null);\n\tconst accordionHeight = ref<number>(0);\n\n\tconst props = withDefaults(defineProps<{\n\t\theader?: string;\n\t\ticonName: TIconName;\n\t\tsubText?: string;\n\t\tkind?: EDropdownKinds;\n\t\tactive?: boolean;\n\n\t}>(), {\n\t\tkind: EDropdownKinds.DEFAULT,\n\t\tactive: true\n\t});\n\n\t// eslint-disable-next-line vue/no-setup-props-destructure\n\tconst isOpen = ref(props.active);\n\n\tonMounted(()=>{\n\t\tif (contentRef.value) {\n\t\t\tconst { height } = contentRef.value.getBoundingClientRect();\n\t\t\taccordionHeight.value = height;\n\t\t}\n\t});\n\n</script>\n"],"names":["contentRef","ref","accordionHeight","isOpen","__props","onMounted","height"],"mappings":";;;;;;;;;;;;;;;;AAqEO,UAAAA,IAAaC,EAA2B,IAAI,GAC5CC,IAAkBD,EAAY,CAAC,GAe/BE,IAASF,EAbDG,EAaW,MAAM;AAE/B,WAAAC,EAAU,MAAI;AACb,UAAIL,EAAW,OAAO;AACrB,cAAM,EAAE,QAAAM,EAAW,IAAAN,EAAW,MAAM,sBAAsB;AAC1D,QAAAE,EAAgB,QAAQI;AAAA,MACzB;AAAA,IAAA,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-dropdown.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_typings.js","sources":["../../../src/components/ui-icon/_typings.ts"],"sourcesContent":["export enum EIconType {\n\tFAR = \"far\",\n\tFAS = \"fas\",\n\tFAB = \"fab\",\n\tFAL = \"fal\",\n\tFAD = \"fad\",\n\tFAT = \"fat\",\n\tBRANDS = \"fa-brands\",\n}\n\nexport type TIconName = [EIconType, string];\n"],"names":["EIconType"],"mappings":"AAAY,IAAAA,sBAAAA,OACXA,EAAA,MAAM,OACNA,EAAA,MAAM,OACNA,EAAA,MAAM,OACNA,EAAA,MAAM,OACNA,EAAA,MAAM,OACNA,EAAA,MAAM,OACNA,EAAA,SAAS,aAPEA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { TIconName } from './_typings';
|
|
2
|
+
import { ESize } from '../../_types/sizing';
|
|
3
|
+
import { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
4
|
+
import UiIcon from "./ui-icon.vue";
|
|
5
|
+
export { UiIcon };
|
|
6
|
+
export { ESize } from "../../_types/sizing";
|
|
7
|
+
export { EIconType } from "./_typings";
|
|
8
|
+
export type { TIconName } from "./_typings";
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
|
|
11
|
+
*/
|
|
12
|
+
declare const deprecatedDefault: DefineComponent<{
|
|
13
|
+
size: {
|
|
14
|
+
type: PropType<ESize>;
|
|
15
|
+
default: ESize;
|
|
16
|
+
};
|
|
17
|
+
iconName: {
|
|
18
|
+
type: PropType<TIconName>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
22
|
+
size: {
|
|
23
|
+
type: PropType<ESize>;
|
|
24
|
+
default: ESize;
|
|
25
|
+
};
|
|
26
|
+
iconName: {
|
|
27
|
+
type: PropType<TIconName>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
}>>, {
|
|
31
|
+
size: ESize;
|
|
32
|
+
}, {}>;
|
|
33
|
+
export default deprecatedDefault;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "./ui-icon.vue.js";
|
|
2
|
+
import { ESize as f } from "../../_types/sizing.js";
|
|
3
|
+
import { EIconType as c } from "./_typings.js";
|
|
4
|
+
const r = e;
|
|
5
|
+
export {
|
|
6
|
+
c as EIconType,
|
|
7
|
+
f as ESize,
|
|
8
|
+
e as UiIcon,
|
|
9
|
+
r as default
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/ui-icon/index.ts"],"sourcesContent":["import UiIcon from \"./ui-icon.vue\";\n\nexport { UiIcon };\n\nexport { ESize } from \"../../_types/sizing\";\nexport { EIconType } from \"./_typings\";\nexport type { TIconName } from \"./_typings\";\n/**\n * @deprecated The default should not be used - use named import as - import {[name]} from \"ui/[name]\"\n */\nconst deprecatedDefault = UiIcon;\nexport default deprecatedDefault;\n"],"names":["deprecatedDefault","UiIcon"],"mappings":";;;AAUA,MAAMA,IAAoBC;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { ESize } from "../../_types/sizing";
|
|
3
|
+
import type { TIconName } from "./_typings";
|
|
4
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
size?: ESize | undefined;
|
|
6
|
+
iconName: TIconName;
|
|
7
|
+
}>, {
|
|
8
|
+
size: ESize;
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
size?: ESize | undefined;
|
|
11
|
+
iconName: TIconName;
|
|
12
|
+
}>, {
|
|
13
|
+
size: ESize;
|
|
14
|
+
}>>>, {
|
|
15
|
+
size: ESize;
|
|
16
|
+
}, {}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type __VLS_WithDefaults<P, D> = {
|
|
28
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
29
|
+
default: D[K];
|
|
30
|
+
}> : P[K];
|
|
31
|
+
};
|
|
32
|
+
type __VLS_Prettify<T> = {
|
|
33
|
+
[K in keyof T]: T[K];
|
|
34
|
+
} & {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as i, resolveComponent as m, openBlock as l, createBlock as a, normalizeClass as r, unref as s } from "vue";
|
|
2
|
+
import { ESize as o } from "../../_types/sizing.js";
|
|
3
|
+
const t = /* @__PURE__ */ i({
|
|
4
|
+
__name: "ui-icon",
|
|
5
|
+
props: {
|
|
6
|
+
size: { default: o.SM },
|
|
7
|
+
iconName: {}
|
|
8
|
+
},
|
|
9
|
+
setup(c) {
|
|
10
|
+
return (e, p) => {
|
|
11
|
+
const n = m("font-awesome-icon");
|
|
12
|
+
return l(), a(n, {
|
|
13
|
+
class: r(["ui-icon", [
|
|
14
|
+
e.size === s(o).XXS && "h-xxs w-xxs",
|
|
15
|
+
e.size === s(o).XS && "h-xs w-xs",
|
|
16
|
+
e.size === s(o).SM && "h-sm w-sm",
|
|
17
|
+
e.size === s(o).MD && "h-md w-md",
|
|
18
|
+
e.size === s(o).LG && "h-lg w-lg",
|
|
19
|
+
e.size === s(o).XL && "h-xl w-xl",
|
|
20
|
+
e.size === s(o).XXL && "h-xxl w-xxl"
|
|
21
|
+
]]),
|
|
22
|
+
icon: e.iconName
|
|
23
|
+
}, null, 8, ["icon", "class"]);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
t as default
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=ui-icon.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-icon.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-icon.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var R = /* @__PURE__ */ ((A) => (A.DEFAULT = "DEFAULT", A.PRIMARY = "PRIMARY", A.SECONDARY = "SECONDARY", A))(R || {}), D = /* @__PURE__ */ ((A) => (A.DEFAULT = "default", A.SMALL = "sm", A.MEDIUM = "md", A.LARGE = "lg", A))(D || {});
|
|
2
|
+
export {
|
|
3
|
+
D as EIconWrapperSizes,
|
|
4
|
+
R as EIconWrapperTypes
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=_typings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_typings.js","sources":["../../../src/components/ui-icon-wrapper/_typings.ts"],"sourcesContent":["export enum EIconWrapperTypes {\n\tDEFAULT = \"DEFAULT\",\n\tPRIMARY = \"PRIMARY\",\n\tSECONDARY = \"SECONDARY\",\n}\nexport enum EIconWrapperSizes {\n\tDEFAULT = \"default\",\n\tSMALL = \"sm\",\n\tMEDIUM = \"md\",\n\tLARGE = \"lg\"\n}\n"],"names":["EIconWrapperTypes","EIconWrapperSizes"],"mappings":"AAAY,IAAAA,sBAAAA,OACXA,EAAA,UAAU,WACVA,EAAA,UAAU,WACVA,EAAA,YAAY,aAHDA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OACXA,EAAA,UAAU,WACVA,EAAA,QAAQ,MACRA,EAAA,SAAS,MACTA,EAAA,QAAQ,MAJGA,IAAAA,KAAA,CAAA,CAAA;"}
|