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,92 @@
|
|
|
1
|
+
import { EAlertTypes } from './_types';
|
|
2
|
+
import { TIconName } from '../ui-icon';
|
|
3
|
+
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
4
|
+
import UiAlert from "./ui-alert.vue";
|
|
5
|
+
export { UiAlert };
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
|
|
8
|
+
*/
|
|
9
|
+
declare const deprecatedDefault: {
|
|
10
|
+
new (...args: any[]): {
|
|
11
|
+
$: ComponentInternalInstance;
|
|
12
|
+
$data: {};
|
|
13
|
+
$props: Partial<{}> & Omit<{
|
|
14
|
+
readonly icon: TIconName;
|
|
15
|
+
readonly kind?: EAlertTypes | undefined;
|
|
16
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
|
|
17
|
+
icon: {
|
|
18
|
+
type: PropType<TIconName>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
kind: {
|
|
22
|
+
type: PropType<EAlertTypes>;
|
|
23
|
+
};
|
|
24
|
+
}>>, never>;
|
|
25
|
+
$attrs: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
$refs: {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
$slots: Readonly<{
|
|
32
|
+
[name: string]: Slot<any> | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
35
|
+
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
36
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
37
|
+
$el: any;
|
|
38
|
+
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
39
|
+
icon: {
|
|
40
|
+
type: PropType<TIconName>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
kind: {
|
|
44
|
+
type: PropType<EAlertTypes>;
|
|
45
|
+
};
|
|
46
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
|
|
47
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
48
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
49
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
50
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
51
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
52
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
53
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
54
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
55
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
57
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
58
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
59
|
+
renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
60
|
+
renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
61
|
+
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;
|
|
62
|
+
};
|
|
63
|
+
$forceUpdate: () => void;
|
|
64
|
+
$nextTick: typeof nextTick;
|
|
65
|
+
$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;
|
|
66
|
+
} & Readonly<ExtractPropTypes<{
|
|
67
|
+
icon: {
|
|
68
|
+
type: PropType<TIconName>;
|
|
69
|
+
required: true;
|
|
70
|
+
};
|
|
71
|
+
kind: {
|
|
72
|
+
type: PropType<EAlertTypes>;
|
|
73
|
+
};
|
|
74
|
+
}>> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
75
|
+
__isFragment?: undefined;
|
|
76
|
+
__isTeleport?: undefined;
|
|
77
|
+
__isSuspense?: undefined;
|
|
78
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
79
|
+
icon: {
|
|
80
|
+
type: PropType<TIconName>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
kind: {
|
|
84
|
+
type: PropType<EAlertTypes>;
|
|
85
|
+
};
|
|
86
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
87
|
+
$slots: {
|
|
88
|
+
default?(_: {}): any;
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
export default deprecatedDefault;
|
|
92
|
+
export { EAlertTypes } from "./_types";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/ui-alert/index.ts"],"sourcesContent":["import UiAlert from \"./ui-alert.vue\";\n\nexport { UiAlert };\n/**\n * @deprecated The default should not be used - use named import as - import {[name]} from \"ui/[name]\"\n */\nconst deprecatedDefault = UiAlert;\nexport default deprecatedDefault;\n\nexport { EAlertTypes } from \"./_types\";\n"],"names":["deprecatedDefault","UiAlert"],"mappings":";;AAMA,MAAMA,IAAoBC;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { type TIconName } from "../ui-icon";
|
|
3
|
+
import { EAlertTypes } from "./_types";
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
icon: TIconName;
|
|
6
|
+
kind?: EAlertTypes | undefined;
|
|
7
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
icon: TIconName;
|
|
9
|
+
kind?: EAlertTypes | undefined;
|
|
10
|
+
}>>>, {}, {}>, {
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineComponent as d, openBlock as a, createElementBlock as t, normalizeClass as o, unref as r, createVNode as n, withCtx as s, renderSlot as l } from "vue";
|
|
2
|
+
import m from "../ui-typography/index.js";
|
|
3
|
+
import p from "../ui-icon/index.js";
|
|
4
|
+
import { ESize as f } from "../../_types/sizing.js";
|
|
5
|
+
import { EAlertTypes as i } from "./_types.js";
|
|
6
|
+
import { ETypographySizes as R } from "../ui-typography/_typings.js";
|
|
7
|
+
const N = /* @__PURE__ */ d({
|
|
8
|
+
__name: "ui-alert",
|
|
9
|
+
props: {
|
|
10
|
+
icon: {},
|
|
11
|
+
kind: {}
|
|
12
|
+
},
|
|
13
|
+
setup(k) {
|
|
14
|
+
return (e, u) => (a(), t("div", {
|
|
15
|
+
class: o(["ui-alert flex gap-sm rounded-lg border bg-white p-sm", [
|
|
16
|
+
(!e.kind || e.kind === r(i).PRIMARY) && "border-primary",
|
|
17
|
+
e.kind === r(i).WARNING && "border-warning",
|
|
18
|
+
e.kind === r(i).ERROR && "border-error",
|
|
19
|
+
e.kind === r(i).SECONDARY && "border-secondary"
|
|
20
|
+
]])
|
|
21
|
+
}, [
|
|
22
|
+
n(r(p), {
|
|
23
|
+
"icon-name": e.icon,
|
|
24
|
+
size: r(f).SM,
|
|
25
|
+
class: o([
|
|
26
|
+
(!e.kind || e.kind === r(i).PRIMARY) && "text-primary",
|
|
27
|
+
e.kind === r(i).WARNING && "text-warning",
|
|
28
|
+
e.kind === r(i).ERROR && "text-error",
|
|
29
|
+
e.kind === r(i).SECONDARY && "text-secondary"
|
|
30
|
+
])
|
|
31
|
+
}, null, 8, ["icon-name", "size", "class"]),
|
|
32
|
+
n(r(m), {
|
|
33
|
+
size: r(R).XS,
|
|
34
|
+
"line-height": ""
|
|
35
|
+
}, {
|
|
36
|
+
default: s(() => [
|
|
37
|
+
l(e.$slots, "default")
|
|
38
|
+
]),
|
|
39
|
+
_: 3
|
|
40
|
+
}, 8, ["size"])
|
|
41
|
+
], 2));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
N as default
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=ui-alert.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-alert.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-alert.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var R = /* @__PURE__ */ ((r) => (r.SMALL = "small", r.MEDIUM = "medium", r.LARGE = "large", r))(R || {}), m = /* @__PURE__ */ ((r) => (r.PRIMARY = "primary", r.ERROR = "error", r.ACCENT = "accent", r))(m || {});
|
|
2
|
+
export {
|
|
3
|
+
m as EBadgeKind,
|
|
4
|
+
R as EBadgeSize
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=_typings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_typings.js","sources":["../../../src/components/ui-badge/_typings.ts"],"sourcesContent":["export enum EBadgeSize {\n\tSMALL = \"small\",\n\tMEDIUM = \"medium\",\n\tLARGE = \"large\",\n}\n\nexport enum EBadgeKind {\n\tPRIMARY = \"primary\",\n\tERROR = \"error\",\n\tACCENT = \"accent\",\n}\n"],"names":["EBadgeSize","EBadgeKind"],"mappings":"AAAY,IAAAA,sBAAAA,OACXA,EAAA,QAAQ,SACRA,EAAA,SAAS,UACTA,EAAA,QAAQ,SAHGA,IAAAA,KAAA,CAAA,CAAA,GAMAC,sBAAAA,OACXA,EAAA,UAAU,WACVA,EAAA,QAAQ,SACRA,EAAA,SAAS,UAHEA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { TIconName } from '../ui-icon';
|
|
2
|
+
import { EBadgeSize, EBadgeKind } from './_typings';
|
|
3
|
+
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
4
|
+
import UiBadge from "./ui-badge.vue";
|
|
5
|
+
export { UiBadge };
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
|
|
8
|
+
*/
|
|
9
|
+
declare const deprecatedDefault: {
|
|
10
|
+
new (...args: any[]): {
|
|
11
|
+
$: ComponentInternalInstance;
|
|
12
|
+
$data: {};
|
|
13
|
+
$props: Partial<{}> & Omit<{
|
|
14
|
+
readonly size?: EBadgeSize | undefined;
|
|
15
|
+
readonly icon?: TIconName | undefined;
|
|
16
|
+
readonly kind?: EBadgeKind | undefined;
|
|
17
|
+
readonly elipsis?: boolean | undefined;
|
|
18
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
|
|
19
|
+
size: {
|
|
20
|
+
type: PropType<EBadgeSize>;
|
|
21
|
+
};
|
|
22
|
+
kind: {
|
|
23
|
+
type: PropType<EBadgeKind>;
|
|
24
|
+
};
|
|
25
|
+
icon: {
|
|
26
|
+
type: PropType<TIconName>;
|
|
27
|
+
};
|
|
28
|
+
elipsis: {
|
|
29
|
+
type: PropType<boolean>;
|
|
30
|
+
};
|
|
31
|
+
}>>, never>;
|
|
32
|
+
$attrs: {
|
|
33
|
+
[x: string]: unknown;
|
|
34
|
+
};
|
|
35
|
+
$refs: {
|
|
36
|
+
[x: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
$slots: Readonly<{
|
|
39
|
+
[name: string]: Slot<any> | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
42
|
+
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
43
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
44
|
+
$el: any;
|
|
45
|
+
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
46
|
+
size: {
|
|
47
|
+
type: PropType<EBadgeSize>;
|
|
48
|
+
};
|
|
49
|
+
kind: {
|
|
50
|
+
type: PropType<EBadgeKind>;
|
|
51
|
+
};
|
|
52
|
+
icon: {
|
|
53
|
+
type: PropType<TIconName>;
|
|
54
|
+
};
|
|
55
|
+
elipsis: {
|
|
56
|
+
type: PropType<boolean>;
|
|
57
|
+
};
|
|
58
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
|
|
59
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
60
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
61
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
67
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
68
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
69
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
70
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
71
|
+
renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
72
|
+
renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
73
|
+
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;
|
|
74
|
+
};
|
|
75
|
+
$forceUpdate: () => void;
|
|
76
|
+
$nextTick: typeof nextTick;
|
|
77
|
+
$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;
|
|
78
|
+
} & Readonly<ExtractPropTypes<{
|
|
79
|
+
size: {
|
|
80
|
+
type: PropType<EBadgeSize>;
|
|
81
|
+
};
|
|
82
|
+
kind: {
|
|
83
|
+
type: PropType<EBadgeKind>;
|
|
84
|
+
};
|
|
85
|
+
icon: {
|
|
86
|
+
type: PropType<TIconName>;
|
|
87
|
+
};
|
|
88
|
+
elipsis: {
|
|
89
|
+
type: PropType<boolean>;
|
|
90
|
+
};
|
|
91
|
+
}>> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
92
|
+
__isFragment?: undefined;
|
|
93
|
+
__isTeleport?: undefined;
|
|
94
|
+
__isSuspense?: undefined;
|
|
95
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
96
|
+
size: {
|
|
97
|
+
type: PropType<EBadgeSize>;
|
|
98
|
+
};
|
|
99
|
+
kind: {
|
|
100
|
+
type: PropType<EBadgeKind>;
|
|
101
|
+
};
|
|
102
|
+
icon: {
|
|
103
|
+
type: PropType<TIconName>;
|
|
104
|
+
};
|
|
105
|
+
elipsis: {
|
|
106
|
+
type: PropType<boolean>;
|
|
107
|
+
};
|
|
108
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
109
|
+
$slots: {
|
|
110
|
+
default?(_: {}): any;
|
|
111
|
+
};
|
|
112
|
+
});
|
|
113
|
+
export default deprecatedDefault;
|
|
114
|
+
export { EBadgeKind, EBadgeSize } from "./_typings";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/ui-badge/index.ts"],"sourcesContent":["import UiBadge from \"./ui-badge.vue\";\n\nexport { UiBadge };\n\n/**\n * @deprecated The default should not be used - use named import as - import {[name]} from \"ui/[name]\"\n */\nconst deprecatedDefault = UiBadge;\nexport default deprecatedDefault;\n\nexport { EBadgeKind, EBadgeSize } from \"./_typings\";\n"],"names":["deprecatedDefault","UiBadge"],"mappings":";;AAOA,MAAMA,IAAoBC;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { EBadgeKind, EBadgeSize } from "./_typings";
|
|
3
|
+
import { type TIconName } from "../ui-icon";
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
size?: EBadgeSize | undefined;
|
|
6
|
+
kind?: EBadgeKind | undefined;
|
|
7
|
+
icon?: TIconName | undefined;
|
|
8
|
+
elipsis?: boolean | undefined;
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
size?: EBadgeSize | undefined;
|
|
11
|
+
kind?: EBadgeKind | undefined;
|
|
12
|
+
icon?: TIconName | undefined;
|
|
13
|
+
elipsis?: boolean | undefined;
|
|
14
|
+
}>>>, {}, {}>, {
|
|
15
|
+
default?(_: {}): any;
|
|
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_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent as f, useSlots as h, computed as g, openBlock as i, createElementBlock as z, createElementVNode as l, createBlock as n, unref as t, createCommentVNode as a, normalizeClass as d, withCtx as S, renderSlot as k } from "vue";
|
|
2
|
+
import { EBadgeSize as o, EBadgeKind as s } from "./_typings.js";
|
|
3
|
+
import E from "../ui-icon/index.js";
|
|
4
|
+
import { ESize as w } from "../../_types/sizing.js";
|
|
5
|
+
import v from "../ui-typography/index.js";
|
|
6
|
+
import { ETypographySizes as r } from "../ui-typography/_typings.js";
|
|
7
|
+
const y = { class: "ui-badge relative overflow-hidden text-white" }, B = { class: "relative z-[1] flex content-center items-center gap-xxs px-xs py-xxs" }, L = /* @__PURE__ */ f({
|
|
8
|
+
__name: "ui-badge",
|
|
9
|
+
props: {
|
|
10
|
+
size: {},
|
|
11
|
+
kind: {},
|
|
12
|
+
icon: {},
|
|
13
|
+
elipsis: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
setup(c) {
|
|
16
|
+
const p = c, u = h(), m = g(() => {
|
|
17
|
+
switch (p.size) {
|
|
18
|
+
case o.MEDIUM:
|
|
19
|
+
return r.XS;
|
|
20
|
+
case o.LARGE:
|
|
21
|
+
return r.SM;
|
|
22
|
+
case o.SMALL:
|
|
23
|
+
default:
|
|
24
|
+
return r.XXS;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
return (e, b) => (i(), z("div", y, [
|
|
28
|
+
l("div", B, [
|
|
29
|
+
e.icon ? (i(), n(t(E), {
|
|
30
|
+
key: 0,
|
|
31
|
+
size: t(w).SM,
|
|
32
|
+
"icon-name": e.icon
|
|
33
|
+
}, null, 8, ["size", "icon-name"])) : a("", !0),
|
|
34
|
+
t(u).default ? (i(), n(t(v), {
|
|
35
|
+
key: 1,
|
|
36
|
+
size: m.value,
|
|
37
|
+
class: d(["whitespace-nowrap", [
|
|
38
|
+
e.elipsis && "overflow-hidden text-ellipsis"
|
|
39
|
+
]]),
|
|
40
|
+
"line-height": ""
|
|
41
|
+
}, {
|
|
42
|
+
default: S(() => [
|
|
43
|
+
k(e.$slots, "default")
|
|
44
|
+
]),
|
|
45
|
+
_: 3
|
|
46
|
+
}, 8, ["size", "class"])) : a("", !0)
|
|
47
|
+
]),
|
|
48
|
+
l("div", {
|
|
49
|
+
class: d(["absolute left-0 top-0 h-full w-full rounded-full", [
|
|
50
|
+
(!e.kind || e.kind === t(s).PRIMARY) && "bg-primary-600",
|
|
51
|
+
e.kind === t(s).ERROR && "bg-error-600",
|
|
52
|
+
e.kind === t(s).ACCENT && "bg-accent-600",
|
|
53
|
+
e.elipsis && "max-w-full"
|
|
54
|
+
]])
|
|
55
|
+
}, null, 2)
|
|
56
|
+
]));
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
L as default
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=ui-badge.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-badge.vue.js","sources":["../../../src/components/ui-badge/ui-badge.vue"],"sourcesContent":["<template>\n\t<div\n\t\tclass=\"ui-badge relative overflow-hidden text-white\"\n\t>\n\t\t<div class=\"relative z-[1] flex content-center items-center gap-xxs px-xs py-xxs\">\n\t\t\t<ui-icon\n\t\t\t\tv-if=\"icon\"\n\t\t\t\t:size=\"ESize.SM\"\n\t\t\t\t:icon-name=\"icon\"\n\t\t\t/>\n\n\t\t\t<ui-typography\n\t\t\t\tv-if=\"slots.default\"\n\t\t\t\t:size=\"getBadgeSize\"\n\t\t\t\tclass=\"whitespace-nowrap\"\n\t\t\t\tline-height\n\t\t\t\t:class=\"[\n\t\t\t\t\telipsis && 'overflow-hidden text-ellipsis',\n\t\t\t\t]\"\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</ui-typography>\n\t\t</div>\n\n\t\t<div\n\t\t\tclass=\"absolute left-0 top-0 h-full w-full rounded-full\"\n\t\t\t:class=\"[\n\t\t\t\t(!kind || kind === EBadgeKind.PRIMARY) && 'bg-primary-600',\n\n\t\t\t\tkind === EBadgeKind.ERROR && 'bg-error-600',\n\t\t\t\tkind === EBadgeKind.ACCENT && 'bg-accent-600',\n\t\t\t\telipsis && 'max-w-full',\n\t\t\t]\"\n\t\t/>\n\t</div>\n</template>\n\n<script lang=\"ts\" setup>\n\timport { computed, useSlots } from \"vue\";\n\timport { EBadgeKind, EBadgeSize } from \"./_typings\";\n\timport UiIcon, { type TIconName } from \"../ui-icon\";\n\timport { ESize } from \"../../_types/sizing\";\n\timport UiTypography, { ETypographySizes } from \"../ui-typography\";\n\n\tconst props = defineProps<{\n\t\tsize?: EBadgeSize;\n\t\tkind?: EBadgeKind;\n\t\ticon?: TIconName;\n\t\telipsis?: boolean;\n\t}>();\n\n\tconst slots = useSlots();\n\n\tconst getBadgeSize = computed(()=>{\n\t\tswitch (props.size) {\n\t\t\tcase EBadgeSize.MEDIUM:\n\t\t\t\treturn ETypographySizes.XS;\n\t\t\tcase EBadgeSize.LARGE:\n\t\t\t\treturn ETypographySizes.SM;\n\t\t\tcase EBadgeSize.SMALL:\n\t\t\tdefault:\n\t\t\t\treturn ETypographySizes.XXS;\n\t\t}\n\t});\n</script>\n"],"names":["props","__props","slots","useSlots","getBadgeSize","computed","EBadgeSize","ETypographySizes"],"mappings":";;;;;;;;;;;;;;;AA4CC,UAAMA,IAAQC,GAORC,IAAQC,KAERC,IAAeC,EAAS,MAAI;AACjC,cAAQL,EAAM,MAAM;AAAA,QACnB,KAAKM,EAAW;AACf,iBAAOC,EAAiB;AAAA,QACzB,KAAKD,EAAW;AACf,iBAAOC,EAAiB;AAAA,QACzB,KAAKD,EAAW;AAAA,QAChB;AACC,iBAAOC,EAAiB;AAAA,MAC1B;AAAA,IAAA,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-badge.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { EColors } from "../../_types/colors";
|
|
2
|
+
type Ran<T extends number> = number extends T ? number : _Range<T, []>;
|
|
3
|
+
type _Range<T extends number, R extends unknown[]> = R["length"] extends T ? R[number] : _Range<T, [R["length"], ...R]>;
|
|
4
|
+
export type TBerPropNumber = Ran<typeof berRankDictionary.length>;
|
|
5
|
+
export type TBerPropString = `${TBerPropNumber}`;
|
|
6
|
+
export type TBerRank = typeof berRankDictionary[TBerPropNumber]["text"];
|
|
7
|
+
export declare const berRankDictionary: readonly [{
|
|
8
|
+
readonly text: "N/A";
|
|
9
|
+
readonly color: EColors.SECONDARY_ALT;
|
|
10
|
+
}, {
|
|
11
|
+
readonly text: "G";
|
|
12
|
+
readonly color: EColors.ERROR;
|
|
13
|
+
}, {
|
|
14
|
+
readonly text: "F";
|
|
15
|
+
readonly color: EColors.WARNING;
|
|
16
|
+
}, {
|
|
17
|
+
readonly text: "E2";
|
|
18
|
+
readonly color: EColors.WARNING_600;
|
|
19
|
+
}, {
|
|
20
|
+
readonly text: "E1";
|
|
21
|
+
readonly color: EColors.WARNING_600;
|
|
22
|
+
}, {
|
|
23
|
+
readonly text: "D2";
|
|
24
|
+
readonly color: EColors.WARNING_400;
|
|
25
|
+
}, {
|
|
26
|
+
readonly text: "D1";
|
|
27
|
+
readonly color: EColors.WARNING_400;
|
|
28
|
+
}, {
|
|
29
|
+
readonly text: "C3";
|
|
30
|
+
readonly color: EColors.PRIMARY_ALT;
|
|
31
|
+
}, {
|
|
32
|
+
readonly text: "C2";
|
|
33
|
+
readonly color: EColors.PRIMARY_ALT;
|
|
34
|
+
}, {
|
|
35
|
+
readonly text: "C1";
|
|
36
|
+
readonly color: EColors.PRIMARY_ALT;
|
|
37
|
+
}, {
|
|
38
|
+
readonly text: "B3";
|
|
39
|
+
readonly color: EColors.PRIMARY_ALT_600;
|
|
40
|
+
}, {
|
|
41
|
+
readonly text: "B2";
|
|
42
|
+
readonly color: EColors.PRIMARY_ALT_600;
|
|
43
|
+
}, {
|
|
44
|
+
readonly text: "B1";
|
|
45
|
+
readonly color: EColors.PRIMARY_ALT_600;
|
|
46
|
+
}, {
|
|
47
|
+
readonly text: "A3";
|
|
48
|
+
readonly color: EColors.PRIMARY_ALT_700;
|
|
49
|
+
}, {
|
|
50
|
+
readonly text: "A2";
|
|
51
|
+
readonly color: EColors.PRIMARY_ALT_700;
|
|
52
|
+
}, {
|
|
53
|
+
readonly text: "A1";
|
|
54
|
+
readonly color: EColors.PRIMARY_ALT_700;
|
|
55
|
+
}];
|
|
56
|
+
export declare const berRanksList: ("N/A" | "G" | "F" | "E2" | "E1" | "D2" | "D1" | "C3" | "C2" | "C1" | "B3" | "B2" | "B1" | "A3" | "A2" | "A1")[];
|
|
57
|
+
export declare enum EBerSize {
|
|
58
|
+
SMALL = "small",
|
|
59
|
+
MEDIUM = "medium"
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { EColors as o } from "../../_types/colors.js";
|
|
2
|
+
const A = [
|
|
3
|
+
{
|
|
4
|
+
text: "N/A",
|
|
5
|
+
color: o.SECONDARY_ALT
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
text: "G",
|
|
9
|
+
color: o.ERROR
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
text: "F",
|
|
13
|
+
color: o.WARNING
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
text: "E2",
|
|
17
|
+
color: o.WARNING_600
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
text: "E1",
|
|
21
|
+
color: o.WARNING_600
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
text: "D2",
|
|
25
|
+
color: o.WARNING_400
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
text: "D1",
|
|
29
|
+
color: o.WARNING_400
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
text: "C3",
|
|
33
|
+
color: o.PRIMARY_ALT
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
text: "C2",
|
|
37
|
+
color: o.PRIMARY_ALT
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
text: "C1",
|
|
41
|
+
color: o.PRIMARY_ALT
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
text: "B3",
|
|
45
|
+
color: o.PRIMARY_ALT_600
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
text: "B2",
|
|
49
|
+
color: o.PRIMARY_ALT_600
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
text: "B1",
|
|
53
|
+
color: o.PRIMARY_ALT_600
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
text: "A3",
|
|
57
|
+
color: o.PRIMARY_ALT_700
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
text: "A2",
|
|
61
|
+
color: o.PRIMARY_ALT_700
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
text: "A1",
|
|
65
|
+
color: o.PRIMARY_ALT_700
|
|
66
|
+
}
|
|
67
|
+
];
|
|
68
|
+
A.map(({ text: t }) => t);
|
|
69
|
+
var R = /* @__PURE__ */ ((t) => (t.SMALL = "small", t.MEDIUM = "medium", t))(R || {});
|
|
70
|
+
export {
|
|
71
|
+
R as EBerSize,
|
|
72
|
+
A as berRankDictionary
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=_types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_types.js","sources":["../../../src/components/ui-ber-rank/_types.ts"],"sourcesContent":["import { EColors } from \"../../_types/colors\";\n\ntype Ran<T extends number> = number extends T ? number :_Range<T, []>;\ntype _Range<T extends number, R extends unknown[]> = R[\"length\"] extends T ? R[number] : _Range<T, [R[\"length\"], ...R]>;\n\nexport type TBerPropNumber = Ran<typeof berRankDictionary.length>\nexport type TBerPropString = `${TBerPropNumber}`;\nexport type TBerRank = typeof berRankDictionary[TBerPropNumber][\"text\"];\n\nexport const berRankDictionary = [\n\t{\n\t\ttext: \"N/A\",\n\t\tcolor: EColors.SECONDARY_ALT,\n\t},\n\t{\n\t\ttext: \"G\",\n\t\tcolor: EColors.ERROR,\n\t},\n\t{\n\t\ttext: \"F\",\n\t\tcolor: EColors.WARNING,\n\t},\n\t{\n\t\ttext: \"E2\",\n\t\tcolor: EColors.WARNING_600,\n\t},\n\t{\n\t\ttext: \"E1\",\n\t\tcolor: EColors.WARNING_600,\n\t},\n\t{\n\t\ttext: \"D2\",\n\t\tcolor: EColors.WARNING_400,\n\t},\n\t{\n\t\ttext: \"D1\",\n\t\tcolor: EColors.WARNING_400,\n\t},\n\t{\n\t\ttext: \"C3\",\n\t\tcolor: EColors.PRIMARY_ALT,\n\t},\n\t{\n\t\ttext: \"C2\",\n\t\tcolor: EColors.PRIMARY_ALT,\n\t},\n\t{\n\t\ttext: \"C1\",\n\t\tcolor: EColors.PRIMARY_ALT,\n\t},\n\t{\n\t\ttext: \"B3\",\n\t\tcolor: EColors.PRIMARY_ALT_600,\n\t},\n\t{\n\t\ttext: \"B2\",\n\t\tcolor: EColors.PRIMARY_ALT_600,\n\t},\n\t{\n\t\ttext: \"B1\",\n\t\tcolor: EColors.PRIMARY_ALT_600,\n\t},\n\t{\n\t\ttext: \"A3\",\n\t\tcolor: EColors.PRIMARY_ALT_700,\n\t},\n\t{\n\t\ttext: \"A2\",\n\t\tcolor: EColors.PRIMARY_ALT_700,\n\t},\n\t{\n\t\ttext: \"A1\",\n\t\tcolor: EColors.PRIMARY_ALT_700,\n\t},\n] as const;\n\nexport const berRanksList = berRankDictionary.map(({ text }) => text);\n\nexport enum EBerSize {\n\tSMALL = \"small\",\n\tMEDIUM = \"medium\",\n}\n"],"names":["berRankDictionary","EColors","text","EBerSize"],"mappings":";AASO,MAAMA,IAAoB;AAAA,EAChC;AAAA,IACC,MAAM;AAAA,IACN,OAAOC,EAAQ;AAAA,EAChB;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,OAAOA,EAAQ;AAAA,EAChB;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,OAAOA,EAAQ;AAAA,EAChB;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,OAAOA,EAAQ;AAAA,EAChB;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,OAAOA,EAAQ;AAAA,EAChB;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,OAAOA,EAAQ;AAAA,EAChB;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,OAAOA,EAAQ;AAAA,EAChB;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,OAAOA,EAAQ;AAAA,EAChB;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,OAAOA,EAAQ;AAAA,EAChB;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,OAAOA,EAAQ;AAAA,EAChB;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,OAAOA,EAAQ;AAAA,EAChB;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,OAAOA,EAAQ;AAAA,EAChB;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,OAAOA,EAAQ;AAAA,EAChB;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,OAAOA,EAAQ;AAAA,EAChB;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,OAAOA,EAAQ;AAAA,EAChB;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,OAAOA,EAAQ;AAAA,EAChB;AACD;AAE4BD,EAAkB,IAAI,CAAC,EAAE,MAAAE,EAAA,MAAWA,CAAI;AAExD,IAAAC,sBAAAA,OACXA,EAAA,QAAQ,SACRA,EAAA,SAAS,UAFEA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EBerSize } from './_types';
|
|
2
|
+
import { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
import UiBerRank from "./ui-ber-rank.vue";
|
|
4
|
+
export { UiBerRank };
|
|
5
|
+
export { EBerSize } from "./_types";
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
|
|
8
|
+
*/
|
|
9
|
+
declare const deprecatedDefault: DefineComponent<{
|
|
10
|
+
size: {
|
|
11
|
+
type: PropType<EBerSize>;
|
|
12
|
+
default: EBerSize;
|
|
13
|
+
};
|
|
14
|
+
rank: {
|
|
15
|
+
type: PropType<number | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15">;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
19
|
+
size: {
|
|
20
|
+
type: PropType<EBerSize>;
|
|
21
|
+
default: EBerSize;
|
|
22
|
+
};
|
|
23
|
+
rank: {
|
|
24
|
+
type: PropType<number | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15">;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
}>>, {
|
|
28
|
+
size: EBerSize;
|
|
29
|
+
}, {}>;
|
|
30
|
+
export default deprecatedDefault;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".ui-ber-rank__icon_medium{height:60px}.ui-ber-rank__icon_small{height:30px}")),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();
|
|
2
|
+
import e from "./ui-ber-rank.vue.js";
|
|
3
|
+
import { EBerSize as i } from "./_types.js";
|
|
4
|
+
const a = e;
|
|
5
|
+
export {
|
|
6
|
+
i as EBerSize,
|
|
7
|
+
e as UiBerRank,
|
|
8
|
+
a as default
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/ui-ber-rank/index.ts"],"sourcesContent":["import UiBerRank from \"./ui-ber-rank.vue\";\n\nexport { UiBerRank };\nexport { EBerSize } from \"./_types\";\n\n/**\n * @deprecated The default should not be used - use named import as - import {[name]} from \"ui/[name]\"\n */\nconst deprecatedDefault = UiBerRank;\nexport default deprecatedDefault;\n"],"names":["deprecatedDefault","UiBerRank"],"mappings":";;;AAQA,MAAMA,IAAoBC;"}
|