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,173 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<label
|
|
3
|
-
class="ui-checkbox grid cursor-pointer"
|
|
4
|
-
:class="[
|
|
5
|
-
slots.default && 'items-center gap-sm',
|
|
6
|
-
(!justify || justify === EJustify.START) && 'justify-start',
|
|
7
|
-
justify === EJustify.END && 'justify-end',
|
|
8
|
-
justify === EJustify.AROUND && 'justify-around',
|
|
9
|
-
justify === EJustify.BETWEEN && 'justify-between',
|
|
10
|
-
justify === EJustify.EVENLY && 'justify-evenly',
|
|
11
|
-
justify === EJustify.CENTER && 'justify-center',
|
|
12
|
-
disabled && 'ui-checkbox_disabled',
|
|
13
|
-
]"
|
|
14
|
-
>
|
|
15
|
-
<input
|
|
16
|
-
v-model="checkboxModel"
|
|
17
|
-
class="absolute appearance-none"
|
|
18
|
-
type="checkbox"
|
|
19
|
-
:value="value"
|
|
20
|
-
:disabled="disabled"
|
|
21
|
-
>
|
|
22
|
-
<span
|
|
23
|
-
class="
|
|
24
|
-
ui-checkbox_custom
|
|
25
|
-
relative
|
|
26
|
-
flex
|
|
27
|
-
h-md
|
|
28
|
-
w-md
|
|
29
|
-
items-center
|
|
30
|
-
justify-center
|
|
31
|
-
rounded
|
|
32
|
-
border
|
|
33
|
-
border-secondary-alt-500
|
|
34
|
-
hover:border-secondary-alt-700
|
|
35
|
-
"
|
|
36
|
-
:class="invertOrder && 'order-last'"
|
|
37
|
-
>
|
|
38
|
-
<svg
|
|
39
|
-
class="ui-checkbox__icon text-white"
|
|
40
|
-
width="16"
|
|
41
|
-
height="12"
|
|
42
|
-
viewBox="0 0 16 12"
|
|
43
|
-
fill="none"
|
|
44
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
45
|
-
>
|
|
46
|
-
<path
|
|
47
|
-
d="M1 4.40106L6.60071 10.1135L15.1694 1.71245"
|
|
48
|
-
stroke="currentColor"
|
|
49
|
-
stroke-width="1.6"
|
|
50
|
-
stroke-linecap="round"
|
|
51
|
-
/>
|
|
52
|
-
</svg>
|
|
53
|
-
|
|
54
|
-
</span>
|
|
55
|
-
<span
|
|
56
|
-
v-if="slots.default"
|
|
57
|
-
class="ui-checkbox__slot-wrapper"
|
|
58
|
-
>
|
|
59
|
-
<slot />
|
|
60
|
-
</span>
|
|
61
|
-
</label>
|
|
62
|
-
</template>
|
|
63
|
-
|
|
64
|
-
<script lang="ts" setup>
|
|
65
|
-
import { useSlots, computed } from "vue";
|
|
66
|
-
import { EJustify } from "../../_types/align";
|
|
67
|
-
|
|
68
|
-
const slots = useSlots();
|
|
69
|
-
|
|
70
|
-
const props = defineProps<{
|
|
71
|
-
modelValue: boolean | unknown[];
|
|
72
|
-
justify?: EJustify;
|
|
73
|
-
invertOrder?: boolean;
|
|
74
|
-
disabled?: boolean;
|
|
75
|
-
value?: string;
|
|
76
|
-
}>();
|
|
77
|
-
|
|
78
|
-
const emit = defineEmits<{
|
|
79
|
-
(e: "update:modelValue", state: typeof props.modelValue): void
|
|
80
|
-
}>();
|
|
81
|
-
|
|
82
|
-
const checkboxModel = computed({
|
|
83
|
-
get() {
|
|
84
|
-
return props.modelValue;
|
|
85
|
-
},
|
|
86
|
-
set(value) {
|
|
87
|
-
emit("update:modelValue", value);
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
</script>
|
|
92
|
-
|
|
93
|
-
<style scoped>
|
|
94
|
-
.ui-checkbox {
|
|
95
|
-
grid-template-columns: auto auto;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.ui-checkbox_custom {
|
|
99
|
-
transition: background-color ease-in-out 0.3s 0.3s, border-width ease-in-out 0.2s;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.ui-checkbox__icon {
|
|
103
|
-
stroke-dasharray: 70;
|
|
104
|
-
stroke-dashoffset: 70;
|
|
105
|
-
transition: stroke-dashoffset 0.3s ease-in-out;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
input + .ui-checkbox_custom:active {
|
|
109
|
-
transition: background-color ease-in-out 0.1s;
|
|
110
|
-
background-color: var(--color-secondary-alt-200);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
input + .ui-checkbox_custom:active,
|
|
114
|
-
input:focus + .ui-checkbox_custom {
|
|
115
|
-
box-shadow: var(--shadow-border-primary);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
input:disabled + .ui-checkbox_custom {
|
|
119
|
-
background-color: var(--color-secondary-alt-200);
|
|
120
|
-
border-color: var(--color-secondary-alt-400);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
input:checked + .ui-checkbox_custom .ui-checkbox__icon {
|
|
124
|
-
stroke-dashoffset: 0;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
input:checked + .ui-checkbox_custom > svg {
|
|
128
|
-
opacity: 1;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
input:checked + .ui-checkbox_custom {
|
|
132
|
-
border-width: 0;
|
|
133
|
-
background-color: var(--color-primary);
|
|
134
|
-
transition: background-color ease-in-out 0.1s, border-width ease-in-out 0.1s, box-shadow ease-in-out 0.2s;
|
|
135
|
-
animation: cb-pop 0.5s ease-in-out;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
input:checked + .ui-checkbox_custom:hover {
|
|
139
|
-
background-color: var(--color-primary-600);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
input:checked + .ui-checkbox_custom:active {
|
|
143
|
-
background-color: var(--color-primary-700);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
input:checked:disabled + .ui-checkbox_custom {
|
|
147
|
-
background-color: var(--color-primary-300);
|
|
148
|
-
border: 1px solid var(--color-primary-400);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.ui-checkbox_disabled {
|
|
152
|
-
pointer-events: none;
|
|
153
|
-
cursor: default;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
@keyframes cb-pop {
|
|
157
|
-
0% {
|
|
158
|
-
transform: scale(1);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
33% {
|
|
162
|
-
transform: scale(0.95);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
66% {
|
|
166
|
-
transform: scale(1.05);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
100% {
|
|
170
|
-
transform: scale(1);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
</style>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import UiIcon from "./ui-icon.vue";
|
|
2
|
-
import type { Story } from "@storybook/vue3";
|
|
3
|
-
import { ESize } from "../../_types/sizing";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: "Components/ui-icon",
|
|
7
|
-
component: UiIcon,
|
|
8
|
-
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
|
|
9
|
-
argTypes: {
|
|
10
|
-
size: {
|
|
11
|
-
control: {
|
|
12
|
-
type: "select"
|
|
13
|
-
},
|
|
14
|
-
options: Object.values(ESize),
|
|
15
|
-
description: "The Element size",
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
args: {
|
|
20
|
-
size: ESize.LG,
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
type TComponentProps = InstanceType<typeof UiIcon>["$props"];
|
|
25
|
-
|
|
26
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
27
|
-
// Components used in your story `template` are defined in the `components` object
|
|
28
|
-
components: {
|
|
29
|
-
UiIcon
|
|
30
|
-
},
|
|
31
|
-
// The story's `args` need to be mapped into the template through the `setup()` method
|
|
32
|
-
setup() {
|
|
33
|
-
return {
|
|
34
|
-
args
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
|
-
// And then the `args` are bound to your component with `v-bind="args"`
|
|
38
|
-
template: `
|
|
39
|
-
<ui-icon v-bind="args" :icon-name="['far', 'face-smile']" />
|
|
40
|
-
`,
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
export const Default = Template.bind({});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<font-awesome-icon
|
|
3
|
-
class="ui-icon"
|
|
4
|
-
:icon="iconName"
|
|
5
|
-
:class="[
|
|
6
|
-
size === ESize.XXS && 'h-xxs w-xxs',
|
|
7
|
-
size === ESize.XS && 'h-xs w-xs',
|
|
8
|
-
size === ESize.SM && 'h-sm w-sm',
|
|
9
|
-
size === ESize.MD && 'h-md w-md',
|
|
10
|
-
size === ESize.LG && 'h-lg w-lg',
|
|
11
|
-
size === ESize.XL && 'h-xl w-xl',
|
|
12
|
-
size === ESize.XXL && 'h-xxl w-xxl',
|
|
13
|
-
]"
|
|
14
|
-
/>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script lang="ts" setup>
|
|
18
|
-
import { ESize } from "../../_types/sizing";
|
|
19
|
-
import type { TIconName } from "./_typings";
|
|
20
|
-
|
|
21
|
-
withDefaults(defineProps<{
|
|
22
|
-
size?: ESize;
|
|
23
|
-
iconName: TIconName;
|
|
24
|
-
}>(), {
|
|
25
|
-
size: ESize.SM
|
|
26
|
-
});
|
|
27
|
-
</script>
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import UiIconWrapper from "../ui-icon-wrapper";
|
|
2
|
-
import UiIcon from "../ui-icon";
|
|
3
|
-
import UiNotificationBadge, { EBadgeOrigin } from "../ui-notification-badge";
|
|
4
|
-
import { EIconWrapperSizes, EIconWrapperTypes } from "./_typings";
|
|
5
|
-
import type { Story } from "@storybook/vue3";
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: "Components/ui-icon-wrapper",
|
|
9
|
-
component: UiIconWrapper,
|
|
10
|
-
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
|
|
11
|
-
argTypes: {
|
|
12
|
-
kind: {
|
|
13
|
-
control: {
|
|
14
|
-
type: "select"
|
|
15
|
-
},
|
|
16
|
-
options: Object.values(EIconWrapperTypes),
|
|
17
|
-
description: "The Icon Wrapper kinds",
|
|
18
|
-
},
|
|
19
|
-
size: {
|
|
20
|
-
control: {
|
|
21
|
-
type: "select"
|
|
22
|
-
},
|
|
23
|
-
options: Object.values(EIconWrapperSizes),
|
|
24
|
-
description: "The Icon Wrapper sizes",
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
args: {
|
|
28
|
-
slot: "icon",
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
type TComponentProps = InstanceType<typeof UiIconWrapper>["$props"];
|
|
33
|
-
|
|
34
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
35
|
-
components: {
|
|
36
|
-
UiIconWrapper,
|
|
37
|
-
UiIcon,
|
|
38
|
-
UiNotificationBadge
|
|
39
|
-
},
|
|
40
|
-
setup() {
|
|
41
|
-
return {
|
|
42
|
-
args,
|
|
43
|
-
EBadgeOrigin,
|
|
44
|
-
EIconWrapperSizes,
|
|
45
|
-
EIconWrapperTypes
|
|
46
|
-
};
|
|
47
|
-
},
|
|
48
|
-
template: /*html*/`
|
|
49
|
-
<ui-icon-wrapper :kind="EIconWrapperTypes.PRIMARY" v-bind="args" class="mb-sm">
|
|
50
|
-
<p> ${args.slot} </p>
|
|
51
|
-
<UiNotificationBadge :origin=EBadgeOrigin.OFFSET_TOP_RIGHT>
|
|
52
|
-
1
|
|
53
|
-
</UiNotificationBadge>
|
|
54
|
-
</ui-icon-wrapper>
|
|
55
|
-
|
|
56
|
-
<ui-icon-wrapper :kind="EIconWrapperTypes.SECONDARY" v-bind="args" class="mb-sm">
|
|
57
|
-
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/d/d8/Emblem-person-blue.svg/640px-Emblem-person-blue.svg.png" width="20" height="20" />
|
|
58
|
-
</ui-icon-wrapper>
|
|
59
|
-
|
|
60
|
-
<ui-icon-wrapper v-bind="args">
|
|
61
|
-
<ui-icon :icon-name="['far', 'face-smile']" :size=EIconWrapperSizes.SM :style="{color: 'black'}" />
|
|
62
|
-
<UiNotificationBadge slot="badge" :origin=EBadgeOrigin.DEFAULT>
|
|
63
|
-
2
|
|
64
|
-
</UiNotificationBadge>
|
|
65
|
-
</ui-icon-wrapper>
|
|
66
|
-
`
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
export const Default = Template.bind({});
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="icon-wrapper relative grid h-fit w-fit place-items-center rounded-2xl"
|
|
4
|
-
:class="[
|
|
5
|
-
kind === EIconWrapperTypes.PRIMARY && 'bg-primary text-white',
|
|
6
|
-
kind === EIconWrapperTypes.SECONDARY && 'bg-secondary-alt-200 text-black',
|
|
7
|
-
kind === EIconWrapperTypes.DEFAULT && 'border-2 border-primary bg-white text-primary ',
|
|
8
|
-
|
|
9
|
-
size === EIconWrapperSizes.DEFAULT && 'p-sm',
|
|
10
|
-
size === EIconWrapperSizes.SMALL && 'p-xs',
|
|
11
|
-
size === EIconWrapperSizes.MEDIUM && 'icon-wrapper_offset-md p-md',
|
|
12
|
-
size === EIconWrapperSizes.LARGE && 'icon-wrapper_offset-lg p-lg',
|
|
13
|
-
]"
|
|
14
|
-
>
|
|
15
|
-
<slot />
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script lang="ts" setup>
|
|
20
|
-
import { EIconWrapperSizes, EIconWrapperTypes } from "./_typings";
|
|
21
|
-
|
|
22
|
-
type TProps = {
|
|
23
|
-
kind?: EIconWrapperTypes;
|
|
24
|
-
size?: EIconWrapperSizes;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
withDefaults(defineProps<TProps>(),{
|
|
28
|
-
kind: EIconWrapperTypes.DEFAULT,
|
|
29
|
-
size: EIconWrapperSizes.DEFAULT,
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
</script>
|
|
33
|
-
|
|
34
|
-
<style scoped>
|
|
35
|
-
.icon-wrapper_offset-md :deep(.notification-badge) {
|
|
36
|
-
top: 4px;
|
|
37
|
-
right: 4px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.icon-wrapper_offset-lg :deep(.notification-badge) {
|
|
41
|
-
top: 8px;
|
|
42
|
-
right: 8px;
|
|
43
|
-
}
|
|
44
|
-
</style>
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
export enum EInputKinds {
|
|
2
|
-
PRIMARY = "PRIMARY",
|
|
3
|
-
SECONDARY = "SECONDARY",
|
|
4
|
-
ERROR = "ERROR",
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export enum EInputType {
|
|
8
|
-
TEXT = "text",
|
|
9
|
-
NUMBER = "number",
|
|
10
|
-
TEL = "tel",
|
|
11
|
-
PASSWORD = "password",
|
|
12
|
-
EMAIL = "email",
|
|
13
|
-
DATE = "date",
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export enum EAutocomplete {
|
|
17
|
-
OFF = "off",
|
|
18
|
-
ON = "on", // dont forget to add name attribute to input (custom one)
|
|
19
|
-
NAME = "name", // full name
|
|
20
|
-
GIVEN_NAME = "given-name",
|
|
21
|
-
ADDITIONAL_NAME = "additional-name",
|
|
22
|
-
FAMILY_NAME = "family-name",
|
|
23
|
-
|
|
24
|
-
HONORIFIC_PREFIX = "honorific-prefix",
|
|
25
|
-
NICKNAME = "nickname",
|
|
26
|
-
|
|
27
|
-
EMAIL = "email",
|
|
28
|
-
USERNAME = "username",
|
|
29
|
-
NEW_PASSWORD = "new-password",
|
|
30
|
-
CURRENT_PASSWORD = "current-password",
|
|
31
|
-
ORGANIZATION_TITLE = "organization-title",
|
|
32
|
-
ORGANIZATION = "organization",
|
|
33
|
-
STREET_ADDRESS = "street-address",
|
|
34
|
-
SHIPPING = "shipping",
|
|
35
|
-
BUILDING = "building",
|
|
36
|
-
ADDRESS_LINE1 = "address-line1",
|
|
37
|
-
ADDRESS_LINE2 = "address-line2",
|
|
38
|
-
ADDRESS_LINE3 = "address-line3",
|
|
39
|
-
ADDRESS_LEVEL4 = "address-level4",
|
|
40
|
-
ADDRESS_LEVEL3 = "address-level3",
|
|
41
|
-
ADDRESS_LEVEL2 = "address-level2",
|
|
42
|
-
ADDRESS_LEVEL1 = "address-level1",
|
|
43
|
-
COUNTRY = "country",
|
|
44
|
-
COUNTRY_NAME = "country-name",
|
|
45
|
-
POSTAL_CODE = "postal-code",
|
|
46
|
-
CC_NAME = "cc-name",
|
|
47
|
-
CC_GIVEN_NAME = "cc-given-name",
|
|
48
|
-
CC_ADDITIONAL_NAME = "cc-additional-name",
|
|
49
|
-
CC_FAMILY_NAME = "cc-family-name",
|
|
50
|
-
CC_NUMBER = "cc-number",
|
|
51
|
-
CC_EXP = "cc-exp",
|
|
52
|
-
CC_EXP_MONTH = "cc-exp-month",
|
|
53
|
-
CC_EXP_YEAR = "cc-exp-year",
|
|
54
|
-
CC_CSC = "cc-csc",
|
|
55
|
-
CC_TYPE = "cc-type",
|
|
56
|
-
TRANSACTION_CURRENCY = "transaction-currency",
|
|
57
|
-
TRANSACTION_AMOUNT = "transaction-amount",
|
|
58
|
-
LANGUAGE = "language",
|
|
59
|
-
BIRTHDAY = "bday",
|
|
60
|
-
BIRTHDAY_DAY = "bday-day",
|
|
61
|
-
BIRTHDAY_MONTH = "bday-month",
|
|
62
|
-
BIRTHDAY_YEAR = "bday-year",
|
|
63
|
-
SEX = "sex",
|
|
64
|
-
TEL= "tel",
|
|
65
|
-
TEL_COUNTRY_CODE = "tel-country-code",
|
|
66
|
-
TEL_NATIONAL = "tel-national",
|
|
67
|
-
TEL_AREA_CODE = "tel-area-code",
|
|
68
|
-
TEL_LOCAL = "tel-local",
|
|
69
|
-
TEL_EXTENSION = "tel-extension",
|
|
70
|
-
IMPP = "impp",
|
|
71
|
-
URL = "url",
|
|
72
|
-
PHOTO = "photo",
|
|
73
|
-
WEBAUTHN = "webauthn",
|
|
74
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import type { Story } from "@storybook/vue3";
|
|
2
|
-
import UiInput from "./ui-input.vue";
|
|
3
|
-
import Icon from "../../_samples/icon.vue";
|
|
4
|
-
import { ref } from "vue";
|
|
5
|
-
import { EInputKinds, EInputType, EAutocomplete } from "./_typings";
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: "Components/ui-input",
|
|
9
|
-
component: UiInput,
|
|
10
|
-
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
|
|
11
|
-
argTypes: {
|
|
12
|
-
placeholder: {
|
|
13
|
-
control: {
|
|
14
|
-
type: "text"
|
|
15
|
-
},
|
|
16
|
-
description: "Placeholder",
|
|
17
|
-
},
|
|
18
|
-
kind: {
|
|
19
|
-
control: {
|
|
20
|
-
type: "select"
|
|
21
|
-
},
|
|
22
|
-
options: Object.values(EInputKinds),
|
|
23
|
-
description: "The input kinds",
|
|
24
|
-
},
|
|
25
|
-
type: {
|
|
26
|
-
control: {
|
|
27
|
-
type: "select"
|
|
28
|
-
},
|
|
29
|
-
options: Object.values(EInputType),
|
|
30
|
-
description: "The input type",
|
|
31
|
-
},
|
|
32
|
-
disabled: {
|
|
33
|
-
control: {
|
|
34
|
-
type: "boolean"
|
|
35
|
-
},
|
|
36
|
-
description: "The Element disabled state",
|
|
37
|
-
},
|
|
38
|
-
autocomplete: {
|
|
39
|
-
control: {
|
|
40
|
-
type: "select"
|
|
41
|
-
},
|
|
42
|
-
option: Object.values(EAutocomplete),
|
|
43
|
-
description: "The Element autocomplete state",
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
args: {
|
|
47
|
-
placeholder: "Placeholder",
|
|
48
|
-
kind: undefined,
|
|
49
|
-
disabled: false,
|
|
50
|
-
type: EInputType.TEXT,
|
|
51
|
-
autocomplete: EAutocomplete.OFF
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
type MyComponentProps = InstanceType<typeof UiInput>["$props"];
|
|
56
|
-
|
|
57
|
-
const Template: Story<MyComponentProps> = (args: MyComponentProps) => ({
|
|
58
|
-
components: {
|
|
59
|
-
UiInput
|
|
60
|
-
},
|
|
61
|
-
setup() {
|
|
62
|
-
const valueModel = ref("");
|
|
63
|
-
return {
|
|
64
|
-
args,
|
|
65
|
-
valueModel
|
|
66
|
-
};
|
|
67
|
-
},
|
|
68
|
-
template: /*html*/`
|
|
69
|
-
<ui-input v-bind="args" v-model="valueModel" heading="Heading" sub-label="Sub Label" pattern="[\\d]{9}" />
|
|
70
|
-
`
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
const TemplateAll: Story<MyComponentProps> = (args: MyComponentProps) => ({
|
|
74
|
-
components: {
|
|
75
|
-
UiInput,
|
|
76
|
-
Icon
|
|
77
|
-
},
|
|
78
|
-
setup() {
|
|
79
|
-
const valueModel = ref("");
|
|
80
|
-
|
|
81
|
-
return {
|
|
82
|
-
args,
|
|
83
|
-
valueModel
|
|
84
|
-
};
|
|
85
|
-
},
|
|
86
|
-
template: /*html*/`
|
|
87
|
-
<div :style="{
|
|
88
|
-
display: 'grid',
|
|
89
|
-
gridGap: '12px'
|
|
90
|
-
}">
|
|
91
|
-
<ui-input v-bind="args" v-model="valueModel">
|
|
92
|
-
<template v-slot:prefix-icon>
|
|
93
|
-
<span class="text-secondary-alt"> € </span>
|
|
94
|
-
</template>
|
|
95
|
-
</ui-input>
|
|
96
|
-
<ui-input v-bind="args" v-model="valueModel">
|
|
97
|
-
<template v-slot:prefix-icon>
|
|
98
|
-
<Icon :size="16" class="text-secondary-alt" />
|
|
99
|
-
</template>
|
|
100
|
-
</ui-input>
|
|
101
|
-
<ui-input v-bind="args" v-model="valueModel">
|
|
102
|
-
<template v-slot:postfix-icon>
|
|
103
|
-
<Icon :size="16" class="text-secondary-alt" />
|
|
104
|
-
</template>
|
|
105
|
-
</ui-input>
|
|
106
|
-
</div>
|
|
107
|
-
`
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
export const Default = Template.bind({});
|
|
111
|
-
export const AllInputs = TemplateAll.bind({});
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="ui-input">
|
|
3
|
-
<slot name="header">
|
|
4
|
-
<ui-typography
|
|
5
|
-
v-if="heading"
|
|
6
|
-
class="mb-xs"
|
|
7
|
-
:size="ETypographySizes.MD"
|
|
8
|
-
line-height
|
|
9
|
-
>
|
|
10
|
-
{{ heading }}
|
|
11
|
-
</ui-typography>
|
|
12
|
-
</slot>
|
|
13
|
-
<label
|
|
14
|
-
class="ui-input__wrapper flex w-full items-center gap-xs rounded-lg border bg-white p-sm"
|
|
15
|
-
:class="[
|
|
16
|
-
kind === EInputKinds.SECONDARY && 'border-secondary-alt-500 hover:border-secondary-alt-700',
|
|
17
|
-
kind === EInputKinds.PRIMARY && 'border-primary',
|
|
18
|
-
kind === EInputKinds.ERROR && 'border-error',
|
|
19
|
-
|
|
20
|
-
disabled && 'border-secondary-alt-300 bg-secondary-alt-200',
|
|
21
|
-
]"
|
|
22
|
-
>
|
|
23
|
-
<slot name="prefix-icon" />
|
|
24
|
-
|
|
25
|
-
<input
|
|
26
|
-
:autocomplete="autocomplete || getAutoComplete"
|
|
27
|
-
:name="name || autocomplete || getAutoComplete"
|
|
28
|
-
:value="modelValue"
|
|
29
|
-
:pattern="pattern"
|
|
30
|
-
class="w-full border-0 bg-transparent outline-none placeholder:italic placeholder:text-secondary-alt"
|
|
31
|
-
:type="type"
|
|
32
|
-
:placeholder="placeholder"
|
|
33
|
-
:maxlength="maxlength"
|
|
34
|
-
:minlength="minlength"
|
|
35
|
-
@input="$emit('update:modelValue', ($event.target as HTMLTextAreaElement)?.value)"
|
|
36
|
-
@focus="focusHandler || undefined"
|
|
37
|
-
>
|
|
38
|
-
|
|
39
|
-
<slot name="postfix-icon" />
|
|
40
|
-
</label>
|
|
41
|
-
|
|
42
|
-
<slot name="subLabel">
|
|
43
|
-
<ui-typography
|
|
44
|
-
v-if="subLabel"
|
|
45
|
-
line-height
|
|
46
|
-
:size="ETypographySizes.SM"
|
|
47
|
-
:kind="EColors.SECONDARY_ALT"
|
|
48
|
-
class="mt-xs"
|
|
49
|
-
>
|
|
50
|
-
{{ subLabel }}
|
|
51
|
-
</ui-typography>
|
|
52
|
-
</slot>
|
|
53
|
-
</div>
|
|
54
|
-
</template>
|
|
55
|
-
|
|
56
|
-
<script lang="ts" setup>
|
|
57
|
-
import { computed } from "vue";
|
|
58
|
-
import { EAutocomplete, EInputKinds, EInputType } from "./_typings";
|
|
59
|
-
import UiTypography, { ETypographySizes, EColors } from "../ui-typography";
|
|
60
|
-
|
|
61
|
-
const props = withDefaults(defineProps<{
|
|
62
|
-
placeholder?: string;
|
|
63
|
-
modelValue: string | number;
|
|
64
|
-
disabled?: boolean;
|
|
65
|
-
kind?: EInputKinds;
|
|
66
|
-
heading?: string;
|
|
67
|
-
subLabel?: string;
|
|
68
|
-
type?: EInputType;
|
|
69
|
-
pattern?: string;
|
|
70
|
-
maxlength?: string;
|
|
71
|
-
minlength?: string;
|
|
72
|
-
focusHandler?: (e:FocusEvent) => void;
|
|
73
|
-
autocomplete?: EAutocomplete;
|
|
74
|
-
name?: string;
|
|
75
|
-
}>(), {
|
|
76
|
-
modelValue: "",
|
|
77
|
-
placeholder: "",
|
|
78
|
-
autocomplete: undefined,
|
|
79
|
-
name: undefined,
|
|
80
|
-
heading: undefined,
|
|
81
|
-
subLabel: undefined,
|
|
82
|
-
pattern: undefined,
|
|
83
|
-
maxlength: undefined,
|
|
84
|
-
minlength: undefined,
|
|
85
|
-
type: EInputType.TEXT,
|
|
86
|
-
focusHandler: ()=>undefined,
|
|
87
|
-
kind: EInputKinds.SECONDARY
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
defineEmits(["update:modelValue"]);
|
|
91
|
-
|
|
92
|
-
const getAutoComplete = computed(()=> {
|
|
93
|
-
switch (props.type) {
|
|
94
|
-
case EInputType.PASSWORD: return EAutocomplete.CURRENT_PASSWORD;
|
|
95
|
-
case EInputType.EMAIL: return EAutocomplete.EMAIL;
|
|
96
|
-
default: return undefined;
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-input-range.vue";
|