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,57 +0,0 @@
|
|
|
1
|
-
import { ref } from "vue";
|
|
2
|
-
import UiInputRange from "./ui-input-range.vue";
|
|
3
|
-
import type { Story } from "@storybook/vue3";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: "Components/ui-input-range",
|
|
7
|
-
component: UiInputRange,
|
|
8
|
-
argTypes: {
|
|
9
|
-
min: {
|
|
10
|
-
control: {
|
|
11
|
-
type: "number"
|
|
12
|
-
},
|
|
13
|
-
description: "The Element min value",
|
|
14
|
-
},
|
|
15
|
-
max: {
|
|
16
|
-
control: {
|
|
17
|
-
type: "number"
|
|
18
|
-
},
|
|
19
|
-
description: "The Element max value",
|
|
20
|
-
},
|
|
21
|
-
step: {
|
|
22
|
-
control: {
|
|
23
|
-
type: "number"
|
|
24
|
-
},
|
|
25
|
-
description: "The Element max value",
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
args: {
|
|
29
|
-
min: 0,
|
|
30
|
-
max: 100,
|
|
31
|
-
step: 1,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
type TComponentProps = InstanceType<typeof UiInputRange>["$props"];
|
|
36
|
-
|
|
37
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
38
|
-
components: {
|
|
39
|
-
UiInputRange
|
|
40
|
-
},
|
|
41
|
-
setup() {
|
|
42
|
-
const modelValue = ref(50);
|
|
43
|
-
|
|
44
|
-
return {
|
|
45
|
-
args,
|
|
46
|
-
modelValue
|
|
47
|
-
};
|
|
48
|
-
},
|
|
49
|
-
template: /*html*/`
|
|
50
|
-
<div :style="{border: '1px solid'}">
|
|
51
|
-
<ui-input-range v-bind="args" v-model:modelValue="modelValue"/>
|
|
52
|
-
</div>
|
|
53
|
-
<div>{{ modelValue }}</div>
|
|
54
|
-
`,
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
export const Default = Template.bind({});
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="ui-input-range relative box-content h-lg py-xs"
|
|
4
|
-
>
|
|
5
|
-
<input
|
|
6
|
-
ref="track"
|
|
7
|
-
v-model.number="rangeModel"
|
|
8
|
-
class="absolute left-0 top-0 h-full w-full cursor-pointer appearance-none bg-transparent"
|
|
9
|
-
type="range"
|
|
10
|
-
:min="min"
|
|
11
|
-
:max="max"
|
|
12
|
-
:step="step"
|
|
13
|
-
@touchmove="moveHandler"
|
|
14
|
-
>
|
|
15
|
-
|
|
16
|
-
<div
|
|
17
|
-
class="pointer-events-none absolute left-0 top-1/2 h-xs w-full -translate-y-1/2 rounded bg-secondary-alt"
|
|
18
|
-
/>
|
|
19
|
-
|
|
20
|
-
<div
|
|
21
|
-
class="pointer-events-none absolute left-0 top-1/2 h-xs -translate-y-1/2 rounded bg-primary"
|
|
22
|
-
:style="{
|
|
23
|
-
width: getPercentage + '%',
|
|
24
|
-
}"
|
|
25
|
-
/>
|
|
26
|
-
|
|
27
|
-
<div
|
|
28
|
-
class="
|
|
29
|
-
ui-input-range__thumb
|
|
30
|
-
pointer-events-none
|
|
31
|
-
absolute
|
|
32
|
-
box-content
|
|
33
|
-
h-xs
|
|
34
|
-
w-xs
|
|
35
|
-
-translate-x-1/2
|
|
36
|
-
-translate-y-1/2
|
|
37
|
-
rounded-full
|
|
38
|
-
border-white
|
|
39
|
-
bg-primary
|
|
40
|
-
"
|
|
41
|
-
:style="{left: getPercentage + '%'}"
|
|
42
|
-
/>
|
|
43
|
-
</div>
|
|
44
|
-
</template>
|
|
45
|
-
|
|
46
|
-
<script lang="ts" setup>
|
|
47
|
-
import { computed, ref, watch } from "vue";
|
|
48
|
-
|
|
49
|
-
const props = defineProps<{
|
|
50
|
-
modelValue: number;
|
|
51
|
-
min: string | number;
|
|
52
|
-
max: string | number;
|
|
53
|
-
step: string | number;
|
|
54
|
-
}>();
|
|
55
|
-
|
|
56
|
-
const emit = defineEmits<{
|
|
57
|
-
(e: "update:modelValue", state: number): void
|
|
58
|
-
}>();
|
|
59
|
-
|
|
60
|
-
const rangeModel = computed({
|
|
61
|
-
get() {
|
|
62
|
-
return props.modelValue;
|
|
63
|
-
},
|
|
64
|
-
set(value) {
|
|
65
|
-
emit("update:modelValue", value);
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
watch(()=>[props.min, props.max], () => {
|
|
70
|
-
if (rangeModel.value < +props.min) {
|
|
71
|
-
rangeModel.value = +props.min;
|
|
72
|
-
} else if (rangeModel.value > +props.max) {
|
|
73
|
-
rangeModel.value = +props.max;
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
const track = ref();
|
|
78
|
-
|
|
79
|
-
const getPercentage = computed(() => {
|
|
80
|
-
return Math.round(((+props.modelValue - +props.min) / (+props.max - +props.min)) * 100);
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
const parseMouseMove = (e: MouseEvent | TouchEvent) => {
|
|
84
|
-
if (track.value) {
|
|
85
|
-
const CLICK = "clientX";
|
|
86
|
-
|
|
87
|
-
const {
|
|
88
|
-
left: trackStart,
|
|
89
|
-
width: trackLength,
|
|
90
|
-
} = track.value.getBoundingClientRect();
|
|
91
|
-
|
|
92
|
-
const clickOffset = "touches" in e ? e.touches[0][CLICK] : e[CLICK];
|
|
93
|
-
|
|
94
|
-
// It is possible for left to be NaN, force to number
|
|
95
|
-
const clickPos = Math.min(Math.max((clickOffset - trackStart ) / trackLength, 0), 1) || 0;
|
|
96
|
-
|
|
97
|
-
const mousePositionInPercent = parseFloat(String(props.min)) + clickPos * (+props.max - +props.min);
|
|
98
|
-
|
|
99
|
-
const newValue = Math.round((mousePositionInPercent) / +props.step) * +props.step;
|
|
100
|
-
|
|
101
|
-
return parseFloat(Math.min(newValue, +props.max).toFixed(2));
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
const moveHandler = (e: MouseEvent | TouchEvent) => {
|
|
106
|
-
const newValue = parseMouseMove(e);
|
|
107
|
-
|
|
108
|
-
if (newValue) {
|
|
109
|
-
rangeModel.value = newValue;
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
</script>
|
|
114
|
-
|
|
115
|
-
<style scoped>
|
|
116
|
-
input[type="range"]::-webkit-slider-thumb {
|
|
117
|
-
appearance: none;
|
|
118
|
-
height: 10px;
|
|
119
|
-
width: 10px;
|
|
120
|
-
transform: scale(4);
|
|
121
|
-
background-color: transparent;
|
|
122
|
-
border: 0;
|
|
123
|
-
box-shadow: none;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
input[type="range"]::-moz-range-thumb {
|
|
127
|
-
appearance: none;
|
|
128
|
-
background-color: transparent;
|
|
129
|
-
border: 0;
|
|
130
|
-
box-shadow: none;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.ui-input-range__thumb {
|
|
134
|
-
top: 50%;
|
|
135
|
-
border-width: 12px;
|
|
136
|
-
box-shadow: 0 0 0 4px var(--color-primary);
|
|
137
|
-
}
|
|
138
|
-
</style>
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import UiListItem from "../ui-list-item";
|
|
2
|
-
import { EListItemSize, EListItemSpacing, EListItemTypes } from "./_types";
|
|
3
|
-
import { ICON_DEFAULT } from "./../../CONSTANTS";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: "Components/ui-list-item",
|
|
7
|
-
component: UiListItem,
|
|
8
|
-
argTypes: {
|
|
9
|
-
kind: {
|
|
10
|
-
control: {
|
|
11
|
-
type: "select"
|
|
12
|
-
},
|
|
13
|
-
options: Object.values(EListItemTypes),
|
|
14
|
-
description: "The Element kind",
|
|
15
|
-
},
|
|
16
|
-
size: {
|
|
17
|
-
control: {
|
|
18
|
-
type: "select"
|
|
19
|
-
},
|
|
20
|
-
options: Object.values(EListItemSize),
|
|
21
|
-
description: "The Element size"
|
|
22
|
-
},
|
|
23
|
-
spacing: {
|
|
24
|
-
control: {
|
|
25
|
-
type: "select"
|
|
26
|
-
},
|
|
27
|
-
options: Object.values(EListItemSpacing),
|
|
28
|
-
description: "The Element spacing"
|
|
29
|
-
},
|
|
30
|
-
title: {
|
|
31
|
-
control: {
|
|
32
|
-
type: "text"
|
|
33
|
-
},
|
|
34
|
-
description: "The Element title"
|
|
35
|
-
},
|
|
36
|
-
slot: {
|
|
37
|
-
control: {
|
|
38
|
-
type: "text"
|
|
39
|
-
},
|
|
40
|
-
description: "The slot text or component",
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
args: {
|
|
44
|
-
title: "default text",
|
|
45
|
-
kind: EListItemTypes.DEFAULT,
|
|
46
|
-
size: EListItemSize.SM,
|
|
47
|
-
spacing: EListItemSpacing.DEFAULT,
|
|
48
|
-
slot: "default slot"
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export const Default = (args) => ({
|
|
53
|
-
components: {
|
|
54
|
-
UiListItem
|
|
55
|
-
},
|
|
56
|
-
setup() {
|
|
57
|
-
return {
|
|
58
|
-
args,
|
|
59
|
-
ICON_DEFAULT
|
|
60
|
-
};
|
|
61
|
-
},
|
|
62
|
-
template: /*html*/`
|
|
63
|
-
<ul>
|
|
64
|
-
<ui-list-item v-bind="args" :icon="ICON_DEFAULT" title="title only" icon-class="text-secondary-alt" />
|
|
65
|
-
|
|
66
|
-
<ui-list-item :icon="ICON_DEFAULT" :kind="args.kind" :spacing="args.spacing">
|
|
67
|
-
text only
|
|
68
|
-
</ui-list-item>
|
|
69
|
-
|
|
70
|
-
<ui-list-item v-bind="args" v-for= "item in 5" :key="item" :icon="ICON_DEFAULT">
|
|
71
|
-
{{ args.title }}
|
|
72
|
-
</ui-list-item>
|
|
73
|
-
|
|
74
|
-
<ui-list-item v-bind="args" icon-class="text-secondary-alt" :icon="ICON_DEFAULT" />
|
|
75
|
-
</ul>
|
|
76
|
-
`,
|
|
77
|
-
});
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<template>
|
|
3
|
-
<li
|
|
4
|
-
class="ui-list-item group relative grid grid-flow-col justify-start gap-xs text-secondary"
|
|
5
|
-
:class="[
|
|
6
|
-
size === EListItemSize.SM && 'text-sm',
|
|
7
|
-
size === EListItemSize.MD && 'text-md',
|
|
8
|
-
spacing === EListItemSpacing.DEFAULT && 'pb-sm',
|
|
9
|
-
spacing === EListItemSpacing.COMPACT && 'pb-xs'
|
|
10
|
-
]"
|
|
11
|
-
>
|
|
12
|
-
<div
|
|
13
|
-
v-if="kind === EListItemTypes.PROGRESS"
|
|
14
|
-
class="
|
|
15
|
-
ui-list-item__line
|
|
16
|
-
absolute
|
|
17
|
-
left-xs
|
|
18
|
-
top-sm
|
|
19
|
-
h-full
|
|
20
|
-
w-xxs
|
|
21
|
-
-translate-x-2/4
|
|
22
|
-
bg-primary-300
|
|
23
|
-
group-last:hidden
|
|
24
|
-
"
|
|
25
|
-
/>
|
|
26
|
-
|
|
27
|
-
<slot name="icon">
|
|
28
|
-
<ui-icon
|
|
29
|
-
v-if="icon"
|
|
30
|
-
class="bg-white"
|
|
31
|
-
:class="iconClass"
|
|
32
|
-
:icon-name="icon"
|
|
33
|
-
:size="ESize.SM"
|
|
34
|
-
/>
|
|
35
|
-
</slot>
|
|
36
|
-
|
|
37
|
-
<div>
|
|
38
|
-
<ui-typography
|
|
39
|
-
v-if="title"
|
|
40
|
-
:weight="ETextWeight.SEMI_BOLD"
|
|
41
|
-
>
|
|
42
|
-
{{ title }}
|
|
43
|
-
</ui-typography>
|
|
44
|
-
|
|
45
|
-
<ui-typography
|
|
46
|
-
v-if="$slots.default"
|
|
47
|
-
:class="[title && 'mt-xxs']"
|
|
48
|
-
:weight="ETextWeight.LIGHT"
|
|
49
|
-
>
|
|
50
|
-
<slot />
|
|
51
|
-
</ui-typography>
|
|
52
|
-
</div>
|
|
53
|
-
</li>
|
|
54
|
-
</template>
|
|
55
|
-
|
|
56
|
-
<script lang="ts" setup>
|
|
57
|
-
import UiIcon, { type TIconName } from "../ui-icon";
|
|
58
|
-
import UiTypography, { ETextWeight } from "../ui-typography";
|
|
59
|
-
import { ESize } from "../../_types/sizing";
|
|
60
|
-
import { EListItemTypes, EListItemSpacing, EListItemSize } from "./_types";
|
|
61
|
-
import { HTMLAttributes } from "vue";
|
|
62
|
-
|
|
63
|
-
withDefaults(defineProps<{
|
|
64
|
-
icon?: TIconName
|
|
65
|
-
title?: string
|
|
66
|
-
kind?: EListItemTypes
|
|
67
|
-
size?: EListItemSize
|
|
68
|
-
spacing?: EListItemSpacing
|
|
69
|
-
iconClass?: HTMLAttributes["class"]
|
|
70
|
-
}>(), {
|
|
71
|
-
kind: EListItemTypes.DEFAULT,
|
|
72
|
-
size: EListItemSize.SM,
|
|
73
|
-
spacing: EListItemSpacing.COMPACT,
|
|
74
|
-
title: "",
|
|
75
|
-
icon: undefined,
|
|
76
|
-
iconClass: "",
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-backdrop.vue";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div
|
|
4
|
-
class="
|
|
5
|
-
backdrop-color
|
|
6
|
-
fixed
|
|
7
|
-
inset-0
|
|
8
|
-
z-0
|
|
9
|
-
backdrop-blur-sm
|
|
10
|
-
transition-all
|
|
11
|
-
"
|
|
12
|
-
/>
|
|
13
|
-
|
|
14
|
-
<slot />
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<style lang="css" scoped>
|
|
19
|
-
.backdrop-color {
|
|
20
|
-
background-color: rgb(0 0 0 / 50%);
|
|
21
|
-
}
|
|
22
|
-
</style>
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import type { Story } from "@storybook/vue3";
|
|
2
|
-
import UiModal from "./ui-modal.vue";
|
|
3
|
-
import UiButton from "../ui-button";
|
|
4
|
-
import UiBackdrop from "./ui-backdrop";
|
|
5
|
-
import UiIcon from "../ui-icon";
|
|
6
|
-
import UiTypography from "../ui-typography";
|
|
7
|
-
import { ESize } from "../../_types/sizing";
|
|
8
|
-
import { EModalSizes } from "./_typings";
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
title: "Components/ui-modal",
|
|
12
|
-
component: UiModal,
|
|
13
|
-
argTypes: {
|
|
14
|
-
title: {
|
|
15
|
-
control: {
|
|
16
|
-
type: "text"
|
|
17
|
-
},
|
|
18
|
-
description: "The modal title text",
|
|
19
|
-
},
|
|
20
|
-
modalSize: {
|
|
21
|
-
control: {
|
|
22
|
-
type: "select"
|
|
23
|
-
},
|
|
24
|
-
options: Object.values(EModalSizes),
|
|
25
|
-
description: "The modal kinds",
|
|
26
|
-
},
|
|
27
|
-
modalVisible: {
|
|
28
|
-
control: {
|
|
29
|
-
type: "boolean"
|
|
30
|
-
},
|
|
31
|
-
description: "Control Modal Visibility",
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
args: {
|
|
36
|
-
title: "Password Updated",
|
|
37
|
-
body: "You can now use your new security info to sign in to your account",
|
|
38
|
-
modalSize: ESize.SM,
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
type TComponentProps = InstanceType<typeof UiModal>["$props"];
|
|
43
|
-
|
|
44
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
45
|
-
components: {
|
|
46
|
-
UiModal,
|
|
47
|
-
UiBackdrop,
|
|
48
|
-
UiButton,
|
|
49
|
-
UiIcon,
|
|
50
|
-
UiTypography
|
|
51
|
-
},
|
|
52
|
-
setup() {
|
|
53
|
-
return {
|
|
54
|
-
args,
|
|
55
|
-
ESize
|
|
56
|
-
};
|
|
57
|
-
},
|
|
58
|
-
template: /*html*/`
|
|
59
|
-
<ui-modal
|
|
60
|
-
class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2"
|
|
61
|
-
:title="args.title"
|
|
62
|
-
:modalSize="args.modalSize"
|
|
63
|
-
>
|
|
64
|
-
<template #icon>
|
|
65
|
-
<ui-icon class="text-primary" :icon-name="['far', 'circle-check']" :size=ESize.XL />
|
|
66
|
-
</template>
|
|
67
|
-
|
|
68
|
-
<template #default>
|
|
69
|
-
{{args.body}}
|
|
70
|
-
</template>
|
|
71
|
-
|
|
72
|
-
<template #footer>
|
|
73
|
-
<ui-button
|
|
74
|
-
fullWidth
|
|
75
|
-
>
|
|
76
|
-
Ok
|
|
77
|
-
</ui-button>
|
|
78
|
-
</template>
|
|
79
|
-
</ui-modal>
|
|
80
|
-
|
|
81
|
-
<ui-backdrop />
|
|
82
|
-
`
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
export const Default = Template.bind({});
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="
|
|
4
|
-
ui-modal
|
|
5
|
-
max-height max-width
|
|
6
|
-
inset-0
|
|
7
|
-
z-10
|
|
8
|
-
flex
|
|
9
|
-
w-full
|
|
10
|
-
flex-col
|
|
11
|
-
items-center
|
|
12
|
-
overflow-y-scroll
|
|
13
|
-
rounded-2xl
|
|
14
|
-
bg-white
|
|
15
|
-
p-md
|
|
16
|
-
shadow-md
|
|
17
|
-
"
|
|
18
|
-
:class="[
|
|
19
|
-
modalSize === EModalSizes.SM &&'h-fit max-w-[24rem]',
|
|
20
|
-
modalSize === EModalSizes.MD &&'h-fit max-w-[32rem]',
|
|
21
|
-
modalSize === EModalSizes.LG &&'h-fit max-w-[40rem]',
|
|
22
|
-
modalSize === EModalSizes.RESPONSIVE && 'h-full',
|
|
23
|
-
]"
|
|
24
|
-
>
|
|
25
|
-
<div
|
|
26
|
-
v-if="$slots.icon"
|
|
27
|
-
class="mb-sm mt-md"
|
|
28
|
-
>
|
|
29
|
-
<slot name="icon" />
|
|
30
|
-
</div>
|
|
31
|
-
|
|
32
|
-
<slot name="title">
|
|
33
|
-
<ui-typography
|
|
34
|
-
v-if="title"
|
|
35
|
-
class="my-md"
|
|
36
|
-
:weight="ETextWeight.BOLD"
|
|
37
|
-
:align="ETextAlign.CENTER"
|
|
38
|
-
:size="ETypographySizes.LG"
|
|
39
|
-
>
|
|
40
|
-
{{ title }}
|
|
41
|
-
</ui-typography>
|
|
42
|
-
</slot>
|
|
43
|
-
|
|
44
|
-
<ui-typography
|
|
45
|
-
is="div"
|
|
46
|
-
v-if="$slots.default"
|
|
47
|
-
:weight="ETextWeight.REGULAR"
|
|
48
|
-
:align="ETextAlign.CENTER"
|
|
49
|
-
line-height
|
|
50
|
-
class="mb-md w-full overflow-y-auto text-secondary"
|
|
51
|
-
>
|
|
52
|
-
<slot />
|
|
53
|
-
</ui-typography>
|
|
54
|
-
|
|
55
|
-
<div
|
|
56
|
-
v-if="$slots.footer"
|
|
57
|
-
class="mt-auto w-full"
|
|
58
|
-
>
|
|
59
|
-
<slot name="footer" />
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
|
|
64
|
-
<script lang="ts" setup>
|
|
65
|
-
import { ETypographySizes } from "../ui-typography/";
|
|
66
|
-
import UiTypography, { ETextWeight, ETextAlign } from "../ui-typography";
|
|
67
|
-
import { EModalSizes } from "./_typings";
|
|
68
|
-
|
|
69
|
-
withDefaults(
|
|
70
|
-
defineProps<{
|
|
71
|
-
title?: string;
|
|
72
|
-
modalSize?: EModalSizes;
|
|
73
|
-
}>(),
|
|
74
|
-
{
|
|
75
|
-
title: undefined,
|
|
76
|
-
modalSize: EModalSizes.SM,
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
|
|
80
|
-
</script>
|
|
81
|
-
|
|
82
|
-
<style scoped>
|
|
83
|
-
.max-height{
|
|
84
|
-
max-height: calc(100vh - var(--md));
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.max-width{
|
|
88
|
-
max-width: calc(100vw - var(--md));
|
|
89
|
-
}
|
|
90
|
-
</style>
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import UiNotificationBadge from ".";
|
|
2
|
-
import type { Story } from "@storybook/vue3";
|
|
3
|
-
import { EBadgeOrigin } from "./_types";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: "Components/ui-notification-badge",
|
|
7
|
-
component: UiNotificationBadge,
|
|
8
|
-
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
|
|
9
|
-
argTypes: {
|
|
10
|
-
origin: {
|
|
11
|
-
control: {
|
|
12
|
-
type: "select"
|
|
13
|
-
},
|
|
14
|
-
options: Object.values(EBadgeOrigin),
|
|
15
|
-
description: "The Element origin",
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
args: {
|
|
19
|
-
slot: "1",
|
|
20
|
-
origin: EBadgeOrigin.OFFSET_TOP_RIGHT,
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
type TComponentProps = InstanceType<typeof UiNotificationBadge>["$props"];
|
|
25
|
-
|
|
26
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
27
|
-
components: {
|
|
28
|
-
UiNotificationBadge
|
|
29
|
-
},
|
|
30
|
-
setup() {
|
|
31
|
-
return {
|
|
32
|
-
args
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
template: /*html*/`
|
|
36
|
-
<div class="relative rounded-full bg-primary w-lg h-lg">
|
|
37
|
-
<ui-notification-badge :origin="args.origin">
|
|
38
|
-
{{args.slot}}
|
|
39
|
-
</ui-notification-badge>
|
|
40
|
-
</div>
|
|
41
|
-
`
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
export const Default = Template.bind({});
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="
|
|
4
|
-
notification-badge
|
|
5
|
-
absolute
|
|
6
|
-
h-sm
|
|
7
|
-
min-w-sm
|
|
8
|
-
rounded-full
|
|
9
|
-
border
|
|
10
|
-
border-white
|
|
11
|
-
bg-error
|
|
12
|
-
text-center
|
|
13
|
-
text-xxs
|
|
14
|
-
font-bold
|
|
15
|
-
leading-none
|
|
16
|
-
text-white
|
|
17
|
-
"
|
|
18
|
-
:class="[
|
|
19
|
-
origin === EBadgeOrigin.DEFAULT && 'right-0 top-0',
|
|
20
|
-
origin === EBadgeOrigin.OFFSET_TOP_RIGHT && '-right-xxs -top-xxs',
|
|
21
|
-
]"
|
|
22
|
-
>
|
|
23
|
-
<slot />
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
26
|
-
|
|
27
|
-
<script lang="ts" setup>
|
|
28
|
-
import { EBadgeOrigin } from "./_types";
|
|
29
|
-
|
|
30
|
-
withDefaults(defineProps<{
|
|
31
|
-
origin?: EBadgeOrigin,
|
|
32
|
-
}>(),{
|
|
33
|
-
origin: EBadgeOrigin.DEFAULT,
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
</script>
|
|
37
|
-
|
|
38
|
-
<style>
|
|
39
|
-
.notification-badge {
|
|
40
|
-
padding: 2px;
|
|
41
|
-
}
|
|
42
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-order-card.vue";
|