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
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="ui-toggle"
|
|
4
|
-
>
|
|
5
|
-
<slot name="header">
|
|
6
|
-
<ui-typography
|
|
7
|
-
line-height
|
|
8
|
-
class="mb-sm"
|
|
9
|
-
:weight="ETextWeight.SEMI_BOLD"
|
|
10
|
-
>
|
|
11
|
-
{{ header }}
|
|
12
|
-
</ui-typography>
|
|
13
|
-
</slot>
|
|
14
|
-
|
|
15
|
-
<label
|
|
16
|
-
class="flex cursor-pointer gap-sm rounded-full"
|
|
17
|
-
:class="[
|
|
18
|
-
disabled && 'ui-toggle_disabled pointer-events-none',
|
|
19
|
-
invertOrder && 'flex-row-reverse',
|
|
20
|
-
alignCenter && 'items-center'
|
|
21
|
-
]"
|
|
22
|
-
>
|
|
23
|
-
<span
|
|
24
|
-
class="ui-input__input-wrapper relative block h-md"
|
|
25
|
-
>
|
|
26
|
-
<input
|
|
27
|
-
v-model="checkboxModel"
|
|
28
|
-
type="checkbox"
|
|
29
|
-
class="absolute h-0 w-0 appearance-none border-0"
|
|
30
|
-
:value="value"
|
|
31
|
-
>
|
|
32
|
-
|
|
33
|
-
<span class="ui-toggle__bg-block block h-md w-lg rounded-full bg-secondary-alt" />
|
|
34
|
-
|
|
35
|
-
<span class="ui-toggle__dot absolute top-0 block rounded-full bg-white">
|
|
36
|
-
<svg
|
|
37
|
-
class="ui-toggle__check-icon absolute"
|
|
38
|
-
:class="disabled ? 'text-primary-300' : 'text-primary'"
|
|
39
|
-
width="16"
|
|
40
|
-
height="12"
|
|
41
|
-
viewBox="0 0 16 12"
|
|
42
|
-
fill="none"
|
|
43
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
-
>
|
|
45
|
-
<path
|
|
46
|
-
d="M1 4.40106L6.60071 10.1135L15.1694 1.71245"
|
|
47
|
-
stroke="currentColor"
|
|
48
|
-
stroke-width="1.6"
|
|
49
|
-
stroke-linecap="round"
|
|
50
|
-
/>
|
|
51
|
-
</svg>
|
|
52
|
-
</span>
|
|
53
|
-
</span>
|
|
54
|
-
|
|
55
|
-
<slot name="title">
|
|
56
|
-
<ui-typography
|
|
57
|
-
:size="ETypographySizes.MD"
|
|
58
|
-
class="w-full"
|
|
59
|
-
line-height
|
|
60
|
-
>
|
|
61
|
-
{{ title }}
|
|
62
|
-
</ui-typography>
|
|
63
|
-
</slot>
|
|
64
|
-
</label>
|
|
65
|
-
</div>
|
|
66
|
-
</template>
|
|
67
|
-
|
|
68
|
-
<script lang="ts" setup>
|
|
69
|
-
import UiTypography, { ETypographySizes, ETextWeight } from "../ui-typography";
|
|
70
|
-
import { computed } from "vue";
|
|
71
|
-
|
|
72
|
-
const props = defineProps<{
|
|
73
|
-
header?: string;
|
|
74
|
-
title?: string;
|
|
75
|
-
modelValue: boolean | unknown[];
|
|
76
|
-
disabled?: boolean;
|
|
77
|
-
invertOrder?: boolean;
|
|
78
|
-
alignCenter?: boolean;
|
|
79
|
-
value?: string;
|
|
80
|
-
}>();
|
|
81
|
-
|
|
82
|
-
const emit = defineEmits<{
|
|
83
|
-
(e: "update:modelValue", state: unknown): void
|
|
84
|
-
}>();
|
|
85
|
-
|
|
86
|
-
const checkboxModel = computed({
|
|
87
|
-
get() {
|
|
88
|
-
return props.modelValue;
|
|
89
|
-
},
|
|
90
|
-
set(value) {
|
|
91
|
-
emit("update:modelValue", value);
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
</script>
|
|
95
|
-
|
|
96
|
-
<style scoped>
|
|
97
|
-
.ui-toggle__dot {
|
|
98
|
-
top: 50%;
|
|
99
|
-
width: 22px;
|
|
100
|
-
height: 22px;
|
|
101
|
-
transform: translate3d(1px, -50%, 0);
|
|
102
|
-
transition: transform 0.2s ease-in-out;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.ui-toggle__check-icon {
|
|
106
|
-
top: 50%;
|
|
107
|
-
left: 50%;
|
|
108
|
-
transform: translate3d(-50%, -50%, 0);
|
|
109
|
-
stroke-dasharray: 70;
|
|
110
|
-
stroke-dashoffset: 70;
|
|
111
|
-
transition: stroke-dashoffset 0.2s ease-in-out;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.ui-toggle:hover .ui-toggle__dot,
|
|
115
|
-
.ui-toggle:active .ui-toggle__dot,
|
|
116
|
-
.ui-toggle:focus .ui-toggle__dot {
|
|
117
|
-
box-shadow: var(--shadow-border-secondary);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.ui-toggle input:checked ~ .ui-toggle__dot {
|
|
121
|
-
transform: translate3d(calc(var(--lg) - 100% - 1px), -50%, 0);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.ui-toggle:hover input:checked ~ .ui-toggle__dot,
|
|
125
|
-
.ui-toggle:active input:checked ~ .ui-toggle__dot,
|
|
126
|
-
.ui-toggle:focus input:checked ~ .ui-toggle__dot {
|
|
127
|
-
box-shadow: var(--shadow-border-primary);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.ui-toggle__bg-block {
|
|
131
|
-
transition: background-color 0.2s ease-in-out;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.ui-toggle_disabled .ui-toggle__bg-block {
|
|
135
|
-
background-color: var(--color-secondary-alt-300);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.ui-toggle input:checked ~ .ui-toggle__bg-block {
|
|
139
|
-
background-color: var(--color-primary);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.ui-toggle input:checked ~ .ui-toggle__dot .ui-toggle__check-icon {
|
|
143
|
-
stroke-dashoffset: 0;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.ui-toggle_disabled input:checked ~ .ui-toggle__bg-block {
|
|
147
|
-
background-color: var(--color-primary-300);
|
|
148
|
-
}
|
|
149
|
-
</style>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export enum ETypographySizes {
|
|
2
|
-
XXS = "xxs",
|
|
3
|
-
XS = "xs",
|
|
4
|
-
SM = "sm",
|
|
5
|
-
MD = "m",
|
|
6
|
-
LG = "lg",
|
|
7
|
-
XL = "xl",
|
|
8
|
-
XXL = "2xl",
|
|
9
|
-
XXXL = "3xl",
|
|
10
|
-
XXXXL = "4xl",
|
|
11
|
-
XXXXXL = "5xl",
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export enum ETextWeight {
|
|
15
|
-
LIGHT = "light", // 300
|
|
16
|
-
REGULAR = "regular", // 500
|
|
17
|
-
SEMI_BOLD = "semi_bold", // 700
|
|
18
|
-
BOLD = "bold", // 900
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export enum ETextAlign {
|
|
22
|
-
LEFT = "left",
|
|
23
|
-
CENTER = "center",
|
|
24
|
-
RIGHT = "right",
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export enum ETextTransform {
|
|
28
|
-
LOWERCASE = "lowercase",
|
|
29
|
-
UPPERCASE = "uppercase",
|
|
30
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { ETypographySizes, ETextWeight, ETextAlign, ETextTransform } from "./_typings";
|
|
2
|
-
import UiTypography from "./ui-typography.vue";
|
|
3
|
-
import type { Story } from "@storybook/vue3";
|
|
4
|
-
import { EColors } from "../../_types/colors";
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: "Components/ui-typography",
|
|
8
|
-
component: UiTypography,
|
|
9
|
-
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
|
|
10
|
-
argTypes: {
|
|
11
|
-
is: {
|
|
12
|
-
control: {
|
|
13
|
-
type: "text"
|
|
14
|
-
},
|
|
15
|
-
description: "The Element component or tag",
|
|
16
|
-
},
|
|
17
|
-
kind: {
|
|
18
|
-
control: {
|
|
19
|
-
type: "select"
|
|
20
|
-
},
|
|
21
|
-
options: Object.values(EColors),
|
|
22
|
-
description: "The Element kinds",
|
|
23
|
-
},
|
|
24
|
-
weight: {
|
|
25
|
-
control: {
|
|
26
|
-
type: "select"
|
|
27
|
-
},
|
|
28
|
-
options: Object.values(ETextWeight),
|
|
29
|
-
description: "The Element weights",
|
|
30
|
-
},
|
|
31
|
-
align: {
|
|
32
|
-
control: {
|
|
33
|
-
type: "select"
|
|
34
|
-
},
|
|
35
|
-
options: Object.values(ETextAlign),
|
|
36
|
-
description: "The Element align",
|
|
37
|
-
},
|
|
38
|
-
textTransform: {
|
|
39
|
-
control: {
|
|
40
|
-
type: "select"
|
|
41
|
-
},
|
|
42
|
-
options: Object.values(ETextTransform),
|
|
43
|
-
description: "The Element transform",
|
|
44
|
-
},
|
|
45
|
-
lineHeight: {
|
|
46
|
-
control: {
|
|
47
|
-
type: "boolean"
|
|
48
|
-
},
|
|
49
|
-
description: "The Element line height 1.6",
|
|
50
|
-
},
|
|
51
|
-
underline: {
|
|
52
|
-
control: {
|
|
53
|
-
type: "boolean"
|
|
54
|
-
},
|
|
55
|
-
description: "The Element underline",
|
|
56
|
-
},
|
|
57
|
-
size: {
|
|
58
|
-
control: {
|
|
59
|
-
type: "select"
|
|
60
|
-
},
|
|
61
|
-
options: Object.values(ETypographySizes),
|
|
62
|
-
description: "The Element sizes",
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
args: {
|
|
66
|
-
slot: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
|
|
67
|
-
underline: false
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
type TComponentProps = InstanceType<typeof UiTypography>["$props"];
|
|
72
|
-
|
|
73
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
74
|
-
// Components used in your story `template` are defined in the `components` object
|
|
75
|
-
components: {
|
|
76
|
-
UiTypography
|
|
77
|
-
},
|
|
78
|
-
// The story's `args` need to be mapped into the template through the `setup()` method
|
|
79
|
-
setup() {
|
|
80
|
-
return {
|
|
81
|
-
args
|
|
82
|
-
};
|
|
83
|
-
},
|
|
84
|
-
// And then the `args` are bound to your component with `v-bind="args"`
|
|
85
|
-
template: `
|
|
86
|
-
<ui-typography v-bind="args">
|
|
87
|
-
${args.slot}
|
|
88
|
-
</ui-typography>
|
|
89
|
-
`,
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
export const Default = Template.bind({});
|
|
93
|
-
|
|
94
|
-
Default.args = {
|
|
95
|
-
size: ETypographySizes.MD,
|
|
96
|
-
weight: ETextWeight.REGULAR,
|
|
97
|
-
align: ETextAlign.LEFT,
|
|
98
|
-
lineHeight: true,
|
|
99
|
-
kind: EColors.PRIMARY,
|
|
100
|
-
is: "p",
|
|
101
|
-
};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component
|
|
3
|
-
:is="is || 'p'"
|
|
4
|
-
class="ui-typography"
|
|
5
|
-
:class="[
|
|
6
|
-
size === ETypographySizes.MD && 'text-md',
|
|
7
|
-
size === ETypographySizes.XXS && 'text-xxs',
|
|
8
|
-
size === ETypographySizes.XS && 'text-xs',
|
|
9
|
-
size === ETypographySizes.SM && 'text-sm',
|
|
10
|
-
size === ETypographySizes.LG && 'text-lg',
|
|
11
|
-
size === ETypographySizes.XL && 'text-xl',
|
|
12
|
-
size === ETypographySizes.XXL && 'text-2xl',
|
|
13
|
-
size === ETypographySizes.XXS && 'text-xxs',
|
|
14
|
-
size === ETypographySizes.XXXL && 'text-3xl',
|
|
15
|
-
size === ETypographySizes.XXXXL && 'text-4xl',
|
|
16
|
-
size === ETypographySizes.XXXXXL && 'text-5xl',
|
|
17
|
-
|
|
18
|
-
kind === EColors.WHITE && 'text-white',
|
|
19
|
-
kind === EColors.BLACK && 'text-black',
|
|
20
|
-
kind === EColors.TRANSPARENT && 'text-transparent',
|
|
21
|
-
kind === EColors.CURRENT && 'text-current',
|
|
22
|
-
|
|
23
|
-
kind === EColors.PRIMARY && 'text-primary',
|
|
24
|
-
kind === EColors.PRIMARY_300 && 'text-primary-300',
|
|
25
|
-
kind === EColors.PRIMARY_400 && 'text-primary-400',
|
|
26
|
-
kind === EColors.PRIMARY_500 && 'text-primary-500',
|
|
27
|
-
kind === EColors.PRIMARY_600 && 'text-primary-600',
|
|
28
|
-
kind === EColors.PRIMARY_700 && 'text-primary-700',
|
|
29
|
-
|
|
30
|
-
kind === EColors.PRIMARY_ALT && 'text-primary',
|
|
31
|
-
kind === EColors.PRIMARY_ALT_300 && 'text-primary-300',
|
|
32
|
-
kind === EColors.PRIMARY_ALT_400 && 'text-primary-400',
|
|
33
|
-
kind === EColors.PRIMARY_ALT_500 && 'text-primary-500',
|
|
34
|
-
kind === EColors.PRIMARY_ALT_600 && 'text-primary-600',
|
|
35
|
-
kind === EColors.PRIMARY_ALT_700 && 'text-primary-700',
|
|
36
|
-
|
|
37
|
-
kind === EColors.SECONDARY && 'text-secondary',
|
|
38
|
-
kind === EColors.SECONDARY_300 && 'text-secondary-300',
|
|
39
|
-
kind === EColors.SECONDARY_400 && 'text-secondary-400',
|
|
40
|
-
kind === EColors.SECONDARY_500 && 'text-secondary-500',
|
|
41
|
-
kind === EColors.SECONDARY_600 && 'text-secondary-600',
|
|
42
|
-
kind === EColors.SECONDARY_700 && 'text-secondary-700',
|
|
43
|
-
|
|
44
|
-
kind === EColors.WARNING && 'text-warning',
|
|
45
|
-
kind === EColors.WARNING_300 && 'text-warning-300',
|
|
46
|
-
kind === EColors.WARNING_400 && 'text-warning-400',
|
|
47
|
-
kind === EColors.WARNING_500 && 'text-warning-500',
|
|
48
|
-
kind === EColors.WARNING_600 && 'text-warning-600',
|
|
49
|
-
kind === EColors.WARNING_700 && 'text-warning-700',
|
|
50
|
-
|
|
51
|
-
kind === EColors.ERROR && 'text-error',
|
|
52
|
-
kind === EColors.ERROR_300 && 'text-error-300',
|
|
53
|
-
kind === EColors.ERROR_400 && 'text-error-400',
|
|
54
|
-
kind === EColors.ERROR_500 && 'text-error-500',
|
|
55
|
-
kind === EColors.ERROR_600 && 'text-error-600',
|
|
56
|
-
kind === EColors.ERROR_700 && 'text-error-700',
|
|
57
|
-
|
|
58
|
-
kind === EColors.ACCENT && 'text-accent',
|
|
59
|
-
kind === EColors.ACCENT_300 && 'text-accent-300',
|
|
60
|
-
kind === EColors.ACCENT_500 && 'text-accent-500',
|
|
61
|
-
kind === EColors.ACCENT_600 && 'text-accent-600',
|
|
62
|
-
kind === EColors.ACCENT_700 && 'text-accent-700',
|
|
63
|
-
|
|
64
|
-
kind === EColors.ACCENT_ALT && 'text-accent-alt',
|
|
65
|
-
kind === EColors.ACCENT_ALT_500 && 'text-accent-alt-500',
|
|
66
|
-
|
|
67
|
-
kind === EColors.SECONDARY_ALT && 'text-secondary-alt',
|
|
68
|
-
kind === EColors.SECONDARY_ALT_200 && 'text-secondary-alt-200',
|
|
69
|
-
kind === EColors.SECONDARY_ALT_300 && 'text-secondary-alt-300',
|
|
70
|
-
kind === EColors.SECONDARY_ALT_400 && 'text-secondary-alt-400',
|
|
71
|
-
kind === EColors.SECONDARY_ALT_500 && 'text-secondary-alt-500',
|
|
72
|
-
kind === EColors.SECONDARY_ALT_600 && 'text-secondary-alt-600',
|
|
73
|
-
kind === EColors.SECONDARY_ALT_700 && 'text-secondary-alt-700',
|
|
74
|
-
|
|
75
|
-
weight === ETextWeight.LIGHT && 'font-light',
|
|
76
|
-
weight === ETextWeight.REGULAR && 'font-medium',
|
|
77
|
-
weight === ETextWeight.SEMI_BOLD && 'font-bold',
|
|
78
|
-
weight === ETextWeight.BOLD && 'font-black',
|
|
79
|
-
|
|
80
|
-
align === ETextAlign.LEFT && 'text-left',
|
|
81
|
-
align === ETextAlign.CENTER && 'text-center',
|
|
82
|
-
align === ETextAlign.RIGHT && 'text-right',
|
|
83
|
-
|
|
84
|
-
textTransform === ETextTransform.LOWERCASE && 'lowercase',
|
|
85
|
-
textTransform === ETextTransform.UPPERCASE && 'uppercase',
|
|
86
|
-
|
|
87
|
-
lineHeight ? 'leading-normal' : 'leading-none',
|
|
88
|
-
underline && 'underline',
|
|
89
|
-
]"
|
|
90
|
-
>
|
|
91
|
-
<slot />
|
|
92
|
-
</component>
|
|
93
|
-
</template>
|
|
94
|
-
|
|
95
|
-
<script lang="ts" setup>
|
|
96
|
-
import type { Component } from "vue";
|
|
97
|
-
import { ETextAlign, ETextTransform, ETextWeight, ETypographySizes } from "./_typings";
|
|
98
|
-
import { EColors } from "../../_types/colors";
|
|
99
|
-
|
|
100
|
-
defineProps<{
|
|
101
|
-
align?: ETextAlign;
|
|
102
|
-
size?: ETypographySizes;
|
|
103
|
-
kind?: EColors;
|
|
104
|
-
weight?: ETextWeight;
|
|
105
|
-
lineHeight?: boolean;
|
|
106
|
-
textTransform?: ETextTransform;
|
|
107
|
-
underline?: boolean;
|
|
108
|
-
is?: string | Component;
|
|
109
|
-
}>();
|
|
110
|
-
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-verification-input.vue";
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import UiVerificationInput from "./ui-verification-input.vue";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/ui-verification-input",
|
|
5
|
-
component: UiVerificationInput,
|
|
6
|
-
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
|
|
7
|
-
argTypes: {
|
|
8
|
-
inputsCount: {
|
|
9
|
-
control: {
|
|
10
|
-
type: "number"
|
|
11
|
-
},
|
|
12
|
-
description: "Number of inputs",
|
|
13
|
-
},
|
|
14
|
-
type: {
|
|
15
|
-
control: {
|
|
16
|
-
type: "select"
|
|
17
|
-
},
|
|
18
|
-
options: ["text"],
|
|
19
|
-
description: "Inputs type",
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
args: {
|
|
23
|
-
inputsCount: 4,
|
|
24
|
-
type: "text"
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
type MyComponentProps = InstanceType<typeof UiVerificationInput>["$props"];
|
|
29
|
-
|
|
30
|
-
const Template = (args: MyComponentProps) => ({
|
|
31
|
-
components: {
|
|
32
|
-
UiVerificationInput
|
|
33
|
-
},
|
|
34
|
-
setup() {
|
|
35
|
-
const filedHandler = (payload: string)=>{
|
|
36
|
-
console.log("=--->",payload);
|
|
37
|
-
};
|
|
38
|
-
return {
|
|
39
|
-
args,
|
|
40
|
-
filedHandler
|
|
41
|
-
};
|
|
42
|
-
},
|
|
43
|
-
template: `
|
|
44
|
-
<ui-verification-input @onFiled="filedHandler" :className="args.className" :inputsCount="args.inputsCount" :type="args.type"/>
|
|
45
|
-
`
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
export const Default = Template.bind({});
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="inputs grid"
|
|
4
|
-
>
|
|
5
|
-
<div
|
|
6
|
-
v-for="(_, index) in inputsCount"
|
|
7
|
-
:key="index"
|
|
8
|
-
class="input-wrapper"
|
|
9
|
-
>
|
|
10
|
-
<input
|
|
11
|
-
ref="inputsRefs"
|
|
12
|
-
:type="type || 'text'"
|
|
13
|
-
maxlength="1"
|
|
14
|
-
placeholder="•"
|
|
15
|
-
@input="(e)=>inputHandler(e, index)"
|
|
16
|
-
@focus="focusHandler"
|
|
17
|
-
@paste="handlePaste"
|
|
18
|
-
>
|
|
19
|
-
<div class="bottom-wrapper" />
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
<slot name="button" />
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script lang="ts" setup>
|
|
26
|
-
import { ref } from "vue";
|
|
27
|
-
|
|
28
|
-
type TProps = {
|
|
29
|
-
inputsCount: number;
|
|
30
|
-
type?: "text";
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const props = defineProps<TProps>();
|
|
34
|
-
const emit = defineEmits(["onFiled"]);
|
|
35
|
-
|
|
36
|
-
const inputsRefs = ref<Array<HTMLInputElement | null>>([]);
|
|
37
|
-
|
|
38
|
-
const doSubmit = ()=>{
|
|
39
|
-
const generateString = inputsRefs.value.map(input => input?.value).join("");
|
|
40
|
-
emit("onFiled", generateString);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
const inputHandler = (event:Event, index:number)=>{
|
|
44
|
-
if (index < props.inputsCount) {
|
|
45
|
-
inputsRefs.value[index + 1]?.focus();
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
if (index === props.inputsCount - 1) {
|
|
49
|
-
doSubmit();
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const focusHandler = (e:FocusEvent) => {
|
|
54
|
-
if (e.target) {
|
|
55
|
-
(e.target as HTMLInputElement).select();
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
const handlePaste = (e:ClipboardEvent) => {
|
|
60
|
-
e.preventDefault();
|
|
61
|
-
const pasteText = e.clipboardData?.getData("text");
|
|
62
|
-
if (pasteText && pasteText.length === props.inputsCount) {
|
|
63
|
-
inputsRefs.value[props.inputsCount - 1]?.focus();
|
|
64
|
-
|
|
65
|
-
inputsRefs.value.forEach((input, index)=>{
|
|
66
|
-
if (input) {
|
|
67
|
-
input.value = pasteText[index];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
doSubmit();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
</script>
|
|
76
|
-
|
|
77
|
-
<style scoped>
|
|
78
|
-
.inputs {
|
|
79
|
-
grid-template-columns: repeat(auto-fill, 38px);
|
|
80
|
-
grid-gap: 24px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.inputs .input-wrapper {
|
|
84
|
-
position: relative;
|
|
85
|
-
height: 58px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.inputs input {
|
|
89
|
-
width: 100%;
|
|
90
|
-
border: none;
|
|
91
|
-
text-align: center;
|
|
92
|
-
font-size: 36px;
|
|
93
|
-
font-weight: bold;
|
|
94
|
-
outline: none;
|
|
95
|
-
|
|
96
|
-
/* caret-color: var(--color-transparent); */
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.inputs .input-wrapper .bottom-wrapper {
|
|
100
|
-
position: absolute;
|
|
101
|
-
bottom: 0;
|
|
102
|
-
width: 100%;
|
|
103
|
-
height: 5px;
|
|
104
|
-
background-color: var(--color-secondary-300);
|
|
105
|
-
border-radius: 3px;
|
|
106
|
-
transition: background-color 0.3s ease-in-out;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.inputs input:focus ~ .bottom-wrapper {
|
|
110
|
-
background-color: var(--color-primary);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.inputs input::placeholder {
|
|
114
|
-
font-size: 55px;
|
|
115
|
-
color: var(--color-secondary-300);
|
|
116
|
-
opacity: 1;
|
|
117
|
-
transform: scale(1);
|
|
118
|
-
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.inputs input:focus::placeholder {
|
|
122
|
-
opacity: 0;
|
|
123
|
-
transform: scale(0);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
</style>
|
package/src/main.css
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
@import url("_styles/variables/colors.css");
|
|
2
|
-
@import url("_styles/variables/spacing.css");
|
|
3
|
-
@import url("_styles/variables/font-sizes.css");
|
|
4
|
-
@import url("_styles/variables/shadow.css");
|
|
5
|
-
|
|
6
|
-
@tailwind base;
|
|
7
|
-
@tailwind components;
|
|
8
|
-
@tailwind utilities;
|
|
9
|
-
|
|
10
|
-
@layer base {
|
|
11
|
-
:root {
|
|
12
|
-
/* text */
|
|
13
|
-
--base-line-height: 1.6;
|
|
14
|
-
--base-font: museo-sans, sans-serif;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
body {
|
|
19
|
-
font-family: var(--base-font);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
*:focus,
|
|
23
|
-
*:active {
|
|
24
|
-
outline: none;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
input,
|
|
28
|
-
textarea,
|
|
29
|
-
button,
|
|
30
|
-
select,
|
|
31
|
-
label,
|
|
32
|
-
a {
|
|
33
|
-
-webkit-tap-highlight-color: transparent;
|
|
34
|
-
}
|