bonkers-ui 1.0.61 → 1.0.63
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/README.md +135 -21
- 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 +11 -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 +7 -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 +9 -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 +9 -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 +9 -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 +9 -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 +16 -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 +9 -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 +11 -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 +7 -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 +9 -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 +9 -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 +7 -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 +9 -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 +9 -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 +9 -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 +9 -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 +9 -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 +203 -0
- package/index.js.map +1 -0
- package/package.json +71 -42
- 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 +77 -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/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 -20
- package/src/components/ui-card-cta/ui-card-cta.vue +0 -83
- 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 -111
- 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 -49
- package/src/components/ui-select/ui-select.vue +0 -85
- 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 -110
- 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
package/src/_types/colors.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export enum EColors {
|
|
2
|
-
WHITE = "--color-white",
|
|
3
|
-
BLACK = "--color-black",
|
|
4
|
-
TRANSPARENT = "--color-transparent",
|
|
5
|
-
CURRENT = "--color-current",
|
|
6
|
-
|
|
7
|
-
PRIMARY = "--color-primary",
|
|
8
|
-
PRIMARY_300 = "--color-primary-300",
|
|
9
|
-
PRIMARY_400 = "--color-primary-400",
|
|
10
|
-
PRIMARY_500 = "--color-primary-500",
|
|
11
|
-
PRIMARY_600 = "--color-primary-600",
|
|
12
|
-
PRIMARY_700 = "--color-primary-700",
|
|
13
|
-
|
|
14
|
-
PRIMARY_ALT = "--color-primary-alt",
|
|
15
|
-
PRIMARY_ALT_300 = "--color-primary-alt-300",
|
|
16
|
-
PRIMARY_ALT_400 = "--color-primary-alt-400",
|
|
17
|
-
PRIMARY_ALT_500 = "--color-primary-alt-500",
|
|
18
|
-
PRIMARY_ALT_600 = "--color-primary-alt-600",
|
|
19
|
-
PRIMARY_ALT_700 = "--color-primary-alt-700",
|
|
20
|
-
|
|
21
|
-
SECONDARY = "--color-secondary",
|
|
22
|
-
SECONDARY_300 = "--color-secondary-300",
|
|
23
|
-
SECONDARY_400 = "--color-secondary-400",
|
|
24
|
-
SECONDARY_500 = "--color-secondary-500",
|
|
25
|
-
SECONDARY_600 = "--color-secondary-600",
|
|
26
|
-
SECONDARY_700 = "--color-secondary-700",
|
|
27
|
-
|
|
28
|
-
WARNING = "--color-warning",
|
|
29
|
-
WARNING_300 = "--color-warning-300",
|
|
30
|
-
WARNING_400 = "--color-warning-400",
|
|
31
|
-
WARNING_500 = "--color-warning-500",
|
|
32
|
-
WARNING_600 = "--color-warning-600",
|
|
33
|
-
WARNING_700 = "--color-warning-700",
|
|
34
|
-
|
|
35
|
-
ERROR = "--color-error",
|
|
36
|
-
ERROR_300 = "--color-error-300",
|
|
37
|
-
ERROR_400 = "--color-error-400",
|
|
38
|
-
ERROR_500 = "--color-error-500",
|
|
39
|
-
ERROR_600 = "--color-error-600",
|
|
40
|
-
ERROR_700 = "--color-error-700",
|
|
41
|
-
|
|
42
|
-
ACCENT = "--color-accent",
|
|
43
|
-
ACCENT_300 = "--color-accent-300",
|
|
44
|
-
ACCENT_500 = "--color-accent-500",
|
|
45
|
-
ACCENT_600 = "--color-accent-600",
|
|
46
|
-
ACCENT_700 = "--color-accent-700",
|
|
47
|
-
|
|
48
|
-
ACCENT_ALT = "--color-accent-alt",
|
|
49
|
-
ACCENT_ALT_500 = "--color-accent-alt-500",
|
|
50
|
-
|
|
51
|
-
SECONDARY_ALT = "--color-secondary-alt",
|
|
52
|
-
SECONDARY_ALT_200 = "--color-secondary-alt-200",
|
|
53
|
-
SECONDARY_ALT_300 = "--color-secondary-alt-300",
|
|
54
|
-
SECONDARY_ALT_400 = "--color-secondary-alt-400",
|
|
55
|
-
SECONDARY_ALT_500 = "--color-secondary-alt-500",
|
|
56
|
-
SECONDARY_ALT_600 = "--color-secondary-alt-600",
|
|
57
|
-
SECONDARY_ALT_700 = "--color-secondary-alt-700",
|
|
58
|
-
}
|
package/src/_types/sizing.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/vue3";
|
|
2
|
-
import { ICON_DEFAULT } from "./../../CONSTANTS";
|
|
3
|
-
import { EAlertTypes } from "./_types";
|
|
4
|
-
import UiAlert from "../ui-alert";
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: "Components/ui-alert",
|
|
8
|
-
component: UiAlert,
|
|
9
|
-
|
|
10
|
-
argTypes: {
|
|
11
|
-
kind: {
|
|
12
|
-
control: {
|
|
13
|
-
type: "select"
|
|
14
|
-
},
|
|
15
|
-
options: Object.values(EAlertTypes),
|
|
16
|
-
description: "The button kinds",
|
|
17
|
-
},
|
|
18
|
-
default: {
|
|
19
|
-
control: {
|
|
20
|
-
type: "text"
|
|
21
|
-
},
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
} satisfies Meta<typeof UiAlert>;
|
|
25
|
-
|
|
26
|
-
export const Default = {
|
|
27
|
-
args: {
|
|
28
|
-
icon: ICON_DEFAULT,
|
|
29
|
-
default: "This is a default slot"
|
|
30
|
-
},
|
|
31
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="ui-alert flex gap-sm rounded-lg border bg-white p-sm"
|
|
4
|
-
:class="[
|
|
5
|
-
(!kind || kind === EAlertTypes.PRIMARY) && 'border-primary',
|
|
6
|
-
kind === EAlertTypes.WARNING && 'border-warning',
|
|
7
|
-
kind === EAlertTypes.ERROR && 'border-error',
|
|
8
|
-
kind === EAlertTypes.SECONDARY && 'border-secondary'
|
|
9
|
-
]"
|
|
10
|
-
>
|
|
11
|
-
<ui-icon
|
|
12
|
-
:icon-name="icon"
|
|
13
|
-
:size="ESize.SM"
|
|
14
|
-
:class="[
|
|
15
|
-
(!kind || kind === EAlertTypes.PRIMARY) && 'text-primary',
|
|
16
|
-
kind === EAlertTypes.WARNING && 'text-warning',
|
|
17
|
-
kind === EAlertTypes.ERROR && 'text-error',
|
|
18
|
-
kind === EAlertTypes.SECONDARY && 'text-secondary',
|
|
19
|
-
]"
|
|
20
|
-
/>
|
|
21
|
-
<ui-typography
|
|
22
|
-
:size="ETypographySizes.XS"
|
|
23
|
-
line-height
|
|
24
|
-
>
|
|
25
|
-
<slot />
|
|
26
|
-
</ui-typography>
|
|
27
|
-
</div>
|
|
28
|
-
</template>
|
|
29
|
-
|
|
30
|
-
<script lang="ts" setup>
|
|
31
|
-
import UiTypography, { ETypographySizes } from "../ui-typography";
|
|
32
|
-
import UiIcon, { type TIconName } from "../ui-icon";
|
|
33
|
-
import { ESize } from "../../_types/sizing";
|
|
34
|
-
import { EAlertTypes } from "./_types";
|
|
35
|
-
|
|
36
|
-
defineProps<{
|
|
37
|
-
icon: TIconName
|
|
38
|
-
kind?: EAlertTypes
|
|
39
|
-
}>();
|
|
40
|
-
</script>
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import UiBadge from "./ui-badge.vue";
|
|
2
|
-
import type { Story } from "@storybook/vue3";
|
|
3
|
-
import { EBadgeKind, EBadgeSize } from "./_typings";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: "Components/ui-badge",
|
|
7
|
-
component: UiBadge,
|
|
8
|
-
argTypes: {
|
|
9
|
-
kind: {
|
|
10
|
-
control: {
|
|
11
|
-
type: "select"
|
|
12
|
-
},
|
|
13
|
-
options: Object.values(EBadgeKind),
|
|
14
|
-
description: "The Element kinds",
|
|
15
|
-
},
|
|
16
|
-
size: {
|
|
17
|
-
control: {
|
|
18
|
-
type: "select"
|
|
19
|
-
},
|
|
20
|
-
options: Object.values(EBadgeSize),
|
|
21
|
-
description: "The Element size",
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
args: {
|
|
25
|
-
slot: "default text",
|
|
26
|
-
kind: EBadgeKind.PRIMARY,
|
|
27
|
-
size: EBadgeSize.SMALL,
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
type TComponentProps = InstanceType<typeof UiBadge>["$props"];
|
|
32
|
-
|
|
33
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
34
|
-
components: {
|
|
35
|
-
UiBadge
|
|
36
|
-
},
|
|
37
|
-
setup() {
|
|
38
|
-
return {
|
|
39
|
-
args
|
|
40
|
-
};
|
|
41
|
-
},
|
|
42
|
-
template: /*html*/`
|
|
43
|
-
<ui-badge :icon="['far', 'face-smile']" v-bind="args" class="inline-flex">
|
|
44
|
-
{{ args.slot }}
|
|
45
|
-
</ui-badge>
|
|
46
|
-
`,
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
export const Default = Template.bind({});
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="ui-badge relative overflow-hidden text-white"
|
|
4
|
-
>
|
|
5
|
-
<div class="relative z-[1] flex content-center items-center gap-xxs px-xs py-xxs">
|
|
6
|
-
<ui-icon
|
|
7
|
-
v-if="icon"
|
|
8
|
-
:size="ESize.SM"
|
|
9
|
-
:icon-name="icon"
|
|
10
|
-
/>
|
|
11
|
-
|
|
12
|
-
<ui-typography
|
|
13
|
-
v-if="slots.default"
|
|
14
|
-
:size="getBadgeSize"
|
|
15
|
-
class="whitespace-nowrap"
|
|
16
|
-
line-height
|
|
17
|
-
:class="[
|
|
18
|
-
elipsis && 'overflow-hidden text-ellipsis',
|
|
19
|
-
]"
|
|
20
|
-
>
|
|
21
|
-
<slot />
|
|
22
|
-
</ui-typography>
|
|
23
|
-
</div>
|
|
24
|
-
|
|
25
|
-
<div
|
|
26
|
-
class="absolute left-0 top-0 h-full w-full rounded-full"
|
|
27
|
-
:class="[
|
|
28
|
-
(!kind || kind === EBadgeKind.PRIMARY) && 'bg-primary-600',
|
|
29
|
-
|
|
30
|
-
kind === EBadgeKind.ERROR && 'bg-error-600',
|
|
31
|
-
kind === EBadgeKind.ACCENT && 'bg-accent-600',
|
|
32
|
-
elipsis && 'max-w-full',
|
|
33
|
-
]"
|
|
34
|
-
/>
|
|
35
|
-
</div>
|
|
36
|
-
</template>
|
|
37
|
-
|
|
38
|
-
<script lang="ts" setup>
|
|
39
|
-
import { computed, useSlots } from "vue";
|
|
40
|
-
import { EBadgeKind, EBadgeSize } from "./_typings";
|
|
41
|
-
import UiIcon, { type TIconName } from "../ui-icon";
|
|
42
|
-
import { ESize } from "../../_types/sizing";
|
|
43
|
-
import UiTypography, { ETypographySizes, ETextWeight } from "../ui-typography";
|
|
44
|
-
|
|
45
|
-
const props = defineProps<{
|
|
46
|
-
size?: EBadgeSize;
|
|
47
|
-
kind?: EBadgeKind;
|
|
48
|
-
icon?: TIconName;
|
|
49
|
-
elipsis?: boolean;
|
|
50
|
-
}>();
|
|
51
|
-
|
|
52
|
-
const slots = useSlots();
|
|
53
|
-
|
|
54
|
-
const getBadgeSize = computed(()=>{
|
|
55
|
-
switch (props.size) {
|
|
56
|
-
case EBadgeSize.MEDIUM:
|
|
57
|
-
return ETypographySizes.XS;
|
|
58
|
-
case EBadgeSize.LARGE:
|
|
59
|
-
return ETypographySizes.SM;
|
|
60
|
-
case EBadgeSize.SMALL:
|
|
61
|
-
default:
|
|
62
|
-
return ETypographySizes.XXS;
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
</script>
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { EColors } from "../../_types/colors";
|
|
2
|
-
|
|
3
|
-
type Ran<T extends number> = number extends T ? number :_Range<T, []>;
|
|
4
|
-
type _Range<T extends number, R extends unknown[]> = R["length"] extends T ? R[number] : _Range<T, [R["length"], ...R]>;
|
|
5
|
-
|
|
6
|
-
export type TBerPropNumber = Ran<typeof berRankDictionary.length>
|
|
7
|
-
export type TBerPropString = `${TBerPropNumber}`;
|
|
8
|
-
export type TBerRank = typeof berRankDictionary[TBerPropNumber]["text"];
|
|
9
|
-
|
|
10
|
-
export const berRankDictionary = [
|
|
11
|
-
{
|
|
12
|
-
text: "N/A",
|
|
13
|
-
color: EColors.SECONDARY_ALT,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
text: "G",
|
|
17
|
-
color: EColors.ERROR,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
text: "F",
|
|
21
|
-
color: EColors.WARNING,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
text: "E2",
|
|
25
|
-
color: EColors.WARNING_600,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
text: "E1",
|
|
29
|
-
color: EColors.WARNING_600,
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
text: "D2",
|
|
33
|
-
color: EColors.WARNING_400,
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
text: "D1",
|
|
37
|
-
color: EColors.WARNING_400,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
text: "C3",
|
|
41
|
-
color: EColors.PRIMARY_ALT,
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
text: "C2",
|
|
45
|
-
color: EColors.PRIMARY_ALT,
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
text: "C1",
|
|
49
|
-
color: EColors.PRIMARY_ALT,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
text: "B3",
|
|
53
|
-
color: EColors.PRIMARY_ALT_600,
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
text: "B2",
|
|
57
|
-
color: EColors.PRIMARY_ALT_600,
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
text: "B1",
|
|
61
|
-
color: EColors.PRIMARY_ALT_600,
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
text: "A3",
|
|
65
|
-
color: EColors.PRIMARY_ALT_700,
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
text: "A2",
|
|
69
|
-
color: EColors.PRIMARY_ALT_700,
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
text: "A1",
|
|
73
|
-
color: EColors.PRIMARY_ALT_700,
|
|
74
|
-
},
|
|
75
|
-
] as const;
|
|
76
|
-
|
|
77
|
-
export const berRanksList = berRankDictionary.map(({ text }) => text);
|
|
78
|
-
|
|
79
|
-
export enum EBerSize {
|
|
80
|
-
SMALL = "small",
|
|
81
|
-
MEDIUM = "medium",
|
|
82
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/vue3";
|
|
2
|
-
|
|
3
|
-
import { EBerSize } from "./_types";
|
|
4
|
-
import UiBerRank from "../ui-ber-rank";
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: "Components/ui-ber-rank",
|
|
8
|
-
component: UiBerRank,
|
|
9
|
-
argTypes: {
|
|
10
|
-
rank: {
|
|
11
|
-
control: {
|
|
12
|
-
type: "number"
|
|
13
|
-
},
|
|
14
|
-
description: "The Element rank from 0 to 15",
|
|
15
|
-
},
|
|
16
|
-
size: {
|
|
17
|
-
control: {
|
|
18
|
-
type: "select"
|
|
19
|
-
},
|
|
20
|
-
options: Object.values(EBerSize),
|
|
21
|
-
description: "The size of the rank",
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
args: {
|
|
25
|
-
rank: 0,
|
|
26
|
-
},
|
|
27
|
-
}satisfies Meta<typeof UiBerRank>;
|
|
28
|
-
|
|
29
|
-
export const Default = {};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="ui-ber-rank flex">
|
|
3
|
-
<div class="ui-ber-rank__icon-wrapper relative">
|
|
4
|
-
<svg
|
|
5
|
-
class="text-secondary"
|
|
6
|
-
:class="[
|
|
7
|
-
size === EBerSize.SMALL && 'ui-ber-rank__icon_small',
|
|
8
|
-
size === EBerSize.MEDIUM && 'ui-ber-rank__icon_medium',
|
|
9
|
-
]"
|
|
10
|
-
viewBox="0 0 160 60"
|
|
11
|
-
fill="none"
|
|
12
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
-
>
|
|
14
|
-
<path
|
|
15
|
-
fill-rule="evenodd"
|
|
16
|
-
d="M0.279251 15.36C0.279251 9.9835 0.279251 7.29524 1.32559 5.24169C2.24597 3.43534 3.71459 1.96672 5.52094 1.04634C7.5745 0 10.2627 0 15.6393 0H139.208C143.189 0 145.18 0 146.874 0.666121C148.369 1.25435 149.693 2.20864 150.724 3.44151C151.892 4.83764 152.521 6.72601 153.78 10.5027L158.93 25.9523C159.431 27.4541 159.681 28.205 159.78 28.9732C159.869 29.6549 159.869 30.3451 159.78 31.0268C159.681 31.795 159.431 32.5459 158.93 34.0477L153.78 49.4973C152.521 53.274 151.892 55.1624 150.724 56.5585C149.693 57.7914 148.369 58.7457 146.874 59.3339C145.18 60 143.189 60 139.208 60H15.6393C10.2627 60 7.5745 60 5.52094 58.9537C3.71459 58.0333 2.24597 56.5647 1.32559 54.7583C0.279251 52.7048 0.279251 50.0165 0.279251 44.64V15.36Z"
|
|
17
|
-
fill="currentColor"
|
|
18
|
-
/>
|
|
19
|
-
</svg>
|
|
20
|
-
<ui-typography
|
|
21
|
-
:kind="EColors.WHITE"
|
|
22
|
-
:weight="ETextWeight.BOLD"
|
|
23
|
-
:size="textSize"
|
|
24
|
-
:text-transform="ETextTransform.UPPERCASE"
|
|
25
|
-
class="absolute left-0 top-0 flex h-full w-full items-center justify-center"
|
|
26
|
-
>
|
|
27
|
-
ber
|
|
28
|
-
</ui-typography>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<div class="ui-ber-rank__icon-wrapper relative">
|
|
32
|
-
<ui-typography :kind="berRankDictionary[+rank]?.color || berRankDictionary[0].color">
|
|
33
|
-
<svg
|
|
34
|
-
:class="[
|
|
35
|
-
size === EBerSize.SMALL && 'ui-ber-rank__icon_small',
|
|
36
|
-
size === EBerSize.MEDIUM && 'ui-ber-rank__icon_medium',
|
|
37
|
-
]"
|
|
38
|
-
viewBox="0 0 106 60"
|
|
39
|
-
fill="none"
|
|
40
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
41
|
-
>
|
|
42
|
-
<path
|
|
43
|
-
fill-rule="evenodd"
|
|
44
|
-
d="M3.01833 20.2172C0.74308 13.3915 -0.394547 9.9786 0.287586 7.26202C0.884697 4.88404 2.36903 2.82464 4.43616 1.50619C6.79762 0 10.3951 0 17.5901 0H90.3607C95.7373 0 98.4255 0 100.479 1.04634C102.285 1.96672 103.754 3.43534 104.674 5.24169C105.721 7.29524 105.721 9.9835 105.721 15.36V44.64C105.721 50.0165 105.721 52.7048 104.674 54.7583C103.754 56.5647 102.285 58.0333 100.479 58.9537C98.4255 60 95.7373 60 90.3607 60H17.5901C10.3951 60 6.79762 60 4.43616 58.4938C2.36903 57.1754 0.884697 55.116 0.287586 52.738C-0.394547 50.0214 0.743081 46.6085 3.01834 39.7827L4.93001 34.0477C5.43062 32.5459 5.68093 31.795 5.78035 31.0268C5.86857 30.3451 5.86857 29.6549 5.78035 28.9732C5.68093 28.205 5.43062 27.4541 4.93001 25.9523L3.01833 20.2172Z"
|
|
45
|
-
fill="currentColor"
|
|
46
|
-
/>
|
|
47
|
-
</svg>
|
|
48
|
-
</ui-typography>
|
|
49
|
-
|
|
50
|
-
<ui-typography
|
|
51
|
-
:kind="EColors.WHITE"
|
|
52
|
-
:weight="ETextWeight.BOLD"
|
|
53
|
-
:size="textSize"
|
|
54
|
-
:text-transform="ETextTransform.UPPERCASE"
|
|
55
|
-
class="absolute left-0 top-0 flex h-full w-full items-center justify-center"
|
|
56
|
-
>
|
|
57
|
-
{{ berRankDictionary[+rank]?.text || berRankDictionary[0].text }}
|
|
58
|
-
</ui-typography>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
</template>
|
|
62
|
-
|
|
63
|
-
<script lang="ts" setup>
|
|
64
|
-
import { computed } from "vue";
|
|
65
|
-
import UiTypography, { ETextWeight, ETypographySizes, ETextTransform } from "../ui-typography";
|
|
66
|
-
import { EColors } from "../../_types/colors";
|
|
67
|
-
import { berRankDictionary, type TBerPropNumber, type TBerPropString, EBerSize } from "./_types";
|
|
68
|
-
|
|
69
|
-
const props = withDefaults(defineProps<{
|
|
70
|
-
rank: TBerPropNumber | TBerPropString | number; // from 0 to 15
|
|
71
|
-
size?: EBerSize
|
|
72
|
-
}>(), {
|
|
73
|
-
size: EBerSize.MEDIUM
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
const textSize = computed(()=>{
|
|
77
|
-
switch (props.size) {
|
|
78
|
-
case EBerSize.SMALL:
|
|
79
|
-
return ETypographySizes.SM;
|
|
80
|
-
case EBerSize.MEDIUM:
|
|
81
|
-
return ETypographySizes.XXXL;
|
|
82
|
-
default:
|
|
83
|
-
return ETypographySizes.XXXL;
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
</script>
|
|
87
|
-
|
|
88
|
-
<style>
|
|
89
|
-
.ui-ber-rank__icon_medium {
|
|
90
|
-
height: 60px;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.ui-ber-rank__icon_small {
|
|
94
|
-
height: 30px;
|
|
95
|
-
}
|
|
96
|
-
</style>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export enum EButtonTypes {
|
|
2
|
-
PRIMARY = "primary",
|
|
3
|
-
SECONDARY = "secondary",
|
|
4
|
-
ERROR = "error",
|
|
5
|
-
WARNING = "warning",
|
|
6
|
-
PRIMARY_OVERLAY = "primary-overlay",
|
|
7
|
-
SECONDARY_OVERLAY = "secondary-overlay",
|
|
8
|
-
ERROR_OVERLAY = "error-overlay",
|
|
9
|
-
WARNING_OVERLAY = "warning-overlay",
|
|
10
|
-
LINK = "link",
|
|
11
|
-
}
|
|
12
|
-
export enum EButtonSizes {
|
|
13
|
-
DEFAULT = "default",
|
|
14
|
-
SMALL = "sm",
|
|
15
|
-
MEDIUM = "md",
|
|
16
|
-
LARGE = "lg"
|
|
17
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import UiButton from "../ui-button";
|
|
2
|
-
import UiIcon from "../ui-icon";
|
|
3
|
-
import { ESize } from "../../_types/sizing";
|
|
4
|
-
import { EButtonSizes, EButtonTypes } from "./_typings";
|
|
5
|
-
import type { Story } from "@storybook/vue3";
|
|
6
|
-
export default {
|
|
7
|
-
title: "Components/ui-button",
|
|
8
|
-
component: UiButton,
|
|
9
|
-
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
|
|
10
|
-
argTypes: {
|
|
11
|
-
kind: {
|
|
12
|
-
control: {
|
|
13
|
-
type: "select"
|
|
14
|
-
},
|
|
15
|
-
options: Object.values(EButtonTypes),
|
|
16
|
-
description: "The button kinds",
|
|
17
|
-
},
|
|
18
|
-
size: {
|
|
19
|
-
control: {
|
|
20
|
-
type: "select"
|
|
21
|
-
},
|
|
22
|
-
options: Object.values(EButtonSizes),
|
|
23
|
-
description: "The button sizes",
|
|
24
|
-
},
|
|
25
|
-
fullWidth: {
|
|
26
|
-
control: {
|
|
27
|
-
type: "boolean"
|
|
28
|
-
},
|
|
29
|
-
description: "The full width size",
|
|
30
|
-
},
|
|
31
|
-
disabled: {
|
|
32
|
-
control: {
|
|
33
|
-
type: "boolean"
|
|
34
|
-
},
|
|
35
|
-
description: "Disabled state",
|
|
36
|
-
},
|
|
37
|
-
slot: {
|
|
38
|
-
control: {
|
|
39
|
-
type: "text"
|
|
40
|
-
},
|
|
41
|
-
description: "The slot text or component",
|
|
42
|
-
},
|
|
43
|
-
hasPrefix: {
|
|
44
|
-
control: {
|
|
45
|
-
type: "boolean"
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
hasPostfix: {
|
|
49
|
-
control: {
|
|
50
|
-
type: "boolean"
|
|
51
|
-
},
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
args: {
|
|
55
|
-
slot: "default text",
|
|
56
|
-
hasPrefix: false,
|
|
57
|
-
hasPostfix: false,
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
type TComponentProps = InstanceType<typeof UiButton>["$props"];
|
|
62
|
-
|
|
63
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
64
|
-
// Components used in your story `template` are defined in the `components` object
|
|
65
|
-
components: {
|
|
66
|
-
UiButton,
|
|
67
|
-
UiIcon
|
|
68
|
-
},
|
|
69
|
-
// The story's `args` need to be mapped into the template through the `setup()` method
|
|
70
|
-
setup() {
|
|
71
|
-
return {
|
|
72
|
-
args,
|
|
73
|
-
ESize
|
|
74
|
-
};
|
|
75
|
-
},
|
|
76
|
-
// And then the `args` are bound to your component with `v-bind="args"`
|
|
77
|
-
template: /*html*/`
|
|
78
|
-
<ui-button :kind="args.kind"
|
|
79
|
-
:size="args.size"
|
|
80
|
-
:fullWidth="args.fullWidth"
|
|
81
|
-
:disabled="args.disabled"
|
|
82
|
-
>
|
|
83
|
-
<template #prefix v-if="args.hasPrefix">
|
|
84
|
-
<ui-icon
|
|
85
|
-
:icon-name="['far', 'face-smile']"
|
|
86
|
-
:size="ESize.SM"
|
|
87
|
-
/>
|
|
88
|
-
</template>
|
|
89
|
-
${args.slot}
|
|
90
|
-
<template #postfix v-if="args.hasPostfix">
|
|
91
|
-
<ui-icon
|
|
92
|
-
:icon-name="['far', 'face-smile']"
|
|
93
|
-
:size="ESize.SM"
|
|
94
|
-
/>
|
|
95
|
-
</template>
|
|
96
|
-
</ui-button>`,
|
|
97
|
-
});
|
|
98
|
-
const TemplateAll: Story<TComponentProps> = () => ({
|
|
99
|
-
components: {
|
|
100
|
-
UiButton
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
setup() {
|
|
104
|
-
return {
|
|
105
|
-
EButtonSizes,
|
|
106
|
-
EButtonTypes
|
|
107
|
-
};
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
template: /*html*/`
|
|
111
|
-
<div :style="{
|
|
112
|
-
display: 'flex',
|
|
113
|
-
flexWrap: 'wrap'
|
|
114
|
-
}"
|
|
115
|
-
>
|
|
116
|
-
<div
|
|
117
|
-
:style="{margin: '10px'}"
|
|
118
|
-
v-for="kind in EButtonTypes"
|
|
119
|
-
:key="kind"
|
|
120
|
-
>
|
|
121
|
-
<ui-button
|
|
122
|
-
:kind="kind"
|
|
123
|
-
:size="EButtonSizes.MEDIUM"
|
|
124
|
-
>
|
|
125
|
-
{{ kind }}
|
|
126
|
-
</ui-button>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
`,
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
export const Primary = Template.bind({});
|
|
133
|
-
// More on args: https://storybook.js.org/docs/vue/writing-stories/args
|
|
134
|
-
|
|
135
|
-
Primary.args = {
|
|
136
|
-
...Primary,
|
|
137
|
-
kind: EButtonTypes.PRIMARY,
|
|
138
|
-
size: EButtonSizes.MEDIUM,
|
|
139
|
-
fullWidth: false,
|
|
140
|
-
disabled: false,
|
|
141
|
-
};
|
|
142
|
-
export const Buttons = TemplateAll.bind({});
|
|
143
|
-
// More on args: https://storybook.js.org/docs/vue/writing-stories/args
|