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,79 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<button
|
|
3
|
-
class="ui-button
|
|
4
|
-
text-base
|
|
5
|
-
grid
|
|
6
|
-
touch-manipulation
|
|
7
|
-
grid-flow-col
|
|
8
|
-
items-center
|
|
9
|
-
justify-center
|
|
10
|
-
whitespace-nowrap
|
|
11
|
-
rounded-lg
|
|
12
|
-
font-bold
|
|
13
|
-
leading-none
|
|
14
|
-
"
|
|
15
|
-
:disabled="disabled"
|
|
16
|
-
:class="[
|
|
17
|
-
(!kind || kind === EButtonTypes.PRIMARY) && [primaryColor, primaryColorHover, primaryColorActive].join(' '),
|
|
18
|
-
kind === EButtonTypes.SECONDARY
|
|
19
|
-
&& 'bg-secondary text-white hover:bg-secondary-600 active:bg-secondary-700 disabled:bg-secondary-300',
|
|
20
|
-
kind === EButtonTypes.WARNING
|
|
21
|
-
&& 'bg-warning text-white hover:bg-warning-600 active:bg-warning-700 disabled:bg-warning-300',
|
|
22
|
-
kind === EButtonTypes.ERROR
|
|
23
|
-
&& 'bg-error text-white hover:bg-error-600 active:bg-error-700 disabled:bg-error-300',
|
|
24
|
-
kind === EButtonTypes.PRIMARY_OVERLAY
|
|
25
|
-
&& `border border-primary text-primary hover:border-transparent hover:bg-primary-600
|
|
26
|
-
hover:text-white active:border-transparent active:bg-primary-700
|
|
27
|
-
active:text-white disabled:border-primary-300 disabled:text-primary-300`,
|
|
28
|
-
kind === EButtonTypes.SECONDARY_OVERLAY
|
|
29
|
-
&& `border border-secondary text-secondary hover:border-transparent hover:bg-secondary-600
|
|
30
|
-
hover:text-white active:border-transparent active:bg-secondary-700
|
|
31
|
-
active:text-white disabled:border-secondary-300 disabled:text-secondary-300`,
|
|
32
|
-
kind === EButtonTypes.WARNING_OVERLAY
|
|
33
|
-
&& `border border-warning text-warning hover:border-transparent hover:bg-warning-600
|
|
34
|
-
hover:text-white active:border-transparent active:bg-warning-700
|
|
35
|
-
active:text-white disabled:border-warning-300 disabled:text-warning-300`,
|
|
36
|
-
kind === EButtonTypes.ERROR_OVERLAY
|
|
37
|
-
&& `border border-error text-error hover:border-transparent hover:bg-error-600
|
|
38
|
-
hover:text-white active:border-transparent active:bg-error-700
|
|
39
|
-
active:text-white disabled:border-error-300 disabled:text-error-300`,
|
|
40
|
-
kind === EButtonTypes.LINK && `hover:text-accent-alt-600 active:text-accent-alt-700
|
|
41
|
-
disabled:text-accent-alt-300 text-accent-alt`,
|
|
42
|
-
(!size || size === EButtonSizes.DEFAULT) && 'px-md py-sm',
|
|
43
|
-
size === EButtonSizes.SMALL && 'px-md py-xs',
|
|
44
|
-
size === EButtonSizes.MEDIUM && 'p-sm',
|
|
45
|
-
size === EButtonSizes.LARGE && 'p-md',
|
|
46
|
-
($slots.default || $slots.postfix) && 'gap-sm',
|
|
47
|
-
fullWidth && 'w-full',
|
|
48
|
-
disabled && 'pointer-events-none',
|
|
49
|
-
]"
|
|
50
|
-
>
|
|
51
|
-
<slot name="prefix" />
|
|
52
|
-
|
|
53
|
-
<slot />
|
|
54
|
-
|
|
55
|
-
<slot name="postfix" />
|
|
56
|
-
</button>
|
|
57
|
-
</template>
|
|
58
|
-
|
|
59
|
-
<script lang="ts" setup>
|
|
60
|
-
import { EButtonSizes, EButtonTypes } from "./_typings";
|
|
61
|
-
|
|
62
|
-
type TProps = {
|
|
63
|
-
kind?: EButtonTypes;
|
|
64
|
-
size?: EButtonSizes;
|
|
65
|
-
fullWidth?: boolean;
|
|
66
|
-
disabled?: boolean;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
const primaryColor = "text-white bg-primary disabled:bg-primary-300";
|
|
70
|
-
const primaryColorHover = "hover:bg-primary-600 ";
|
|
71
|
-
const primaryColorActive = "active:bg-primary-700 ";
|
|
72
|
-
|
|
73
|
-
withDefaults( defineProps<TProps>(), {
|
|
74
|
-
kind: EButtonTypes.PRIMARY,
|
|
75
|
-
size: EButtonSizes.DEFAULT,
|
|
76
|
-
fullWidth: false,
|
|
77
|
-
disabled: false,
|
|
78
|
-
});
|
|
79
|
-
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-card-cta.vue";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ICON_DEFAULT } from "../../CONSTANTS";
|
|
2
|
-
import UiCardCta from "../ui-card-cta";
|
|
3
|
-
import type { Meta } from "@storybook/vue3";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: "Components/ui-card-cta",
|
|
7
|
-
component: UiCardCta,
|
|
8
|
-
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
|
|
9
|
-
} satisfies Meta<typeof UiCardCta>;
|
|
10
|
-
|
|
11
|
-
export const Default = {
|
|
12
|
-
args: {
|
|
13
|
-
iconName: ICON_DEFAULT,
|
|
14
|
-
slot: "Description",
|
|
15
|
-
invertOrder: false,
|
|
16
|
-
disabled: false,
|
|
17
|
-
title: "Title",
|
|
18
|
-
description: "Description"
|
|
19
|
-
},
|
|
20
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<button
|
|
3
|
-
class="
|
|
4
|
-
ui-card-cta
|
|
5
|
-
group
|
|
6
|
-
w-full
|
|
7
|
-
rounded-2xl
|
|
8
|
-
border
|
|
9
|
-
border-secondary-alt-500
|
|
10
|
-
bg-white
|
|
11
|
-
p-sm
|
|
12
|
-
text-left
|
|
13
|
-
shadow-md
|
|
14
|
-
outline-0
|
|
15
|
-
hover:border-secondary-700
|
|
16
|
-
focus:shadow-border-primary
|
|
17
|
-
active:bg-secondary-alt-200
|
|
18
|
-
disabled:pointer-events-none
|
|
19
|
-
disabled:bg-secondary-alt-200"
|
|
20
|
-
:disabled="disabled"
|
|
21
|
-
>
|
|
22
|
-
<span
|
|
23
|
-
class="group-disabled:opcity-50 grid w-full items-center gap-sm"
|
|
24
|
-
:class="{
|
|
25
|
-
'grid-cols-[auto,1fr]': !invertOrder,
|
|
26
|
-
'grid-cols-[1fr,auto]': invertOrder,
|
|
27
|
-
}"
|
|
28
|
-
>
|
|
29
|
-
<slot name="iconSlot">
|
|
30
|
-
<ui-icon-wrapper>
|
|
31
|
-
<ui-icon
|
|
32
|
-
v-if="iconName"
|
|
33
|
-
:icon-name="iconName"
|
|
34
|
-
:size="ESize.SM"
|
|
35
|
-
class="text-secondary-400"
|
|
36
|
-
/>
|
|
37
|
-
</ui-icon-wrapper>
|
|
38
|
-
</slot>
|
|
39
|
-
<span
|
|
40
|
-
class="w-full"
|
|
41
|
-
:class="invertOrder && 'order-first'"
|
|
42
|
-
>
|
|
43
|
-
<slot name="titleSlot">
|
|
44
|
-
<ui-typography
|
|
45
|
-
:kind="EColors.SECONDARY_400"
|
|
46
|
-
class="mb-xxs"
|
|
47
|
-
line-height
|
|
48
|
-
>
|
|
49
|
-
{{ title }}
|
|
50
|
-
</ui-typography>
|
|
51
|
-
</slot>
|
|
52
|
-
|
|
53
|
-
<slot name="descriptionSlot">
|
|
54
|
-
<ui-typography
|
|
55
|
-
:kind="EColors.SECONDARY_300"
|
|
56
|
-
:size="ETypographySizes.SM"
|
|
57
|
-
line-height
|
|
58
|
-
>
|
|
59
|
-
{{ description }}
|
|
60
|
-
</ui-typography>
|
|
61
|
-
</slot>
|
|
62
|
-
</span>
|
|
63
|
-
</span>
|
|
64
|
-
</button>
|
|
65
|
-
</template>
|
|
66
|
-
|
|
67
|
-
<script lang="ts" setup>
|
|
68
|
-
import UiTypography from "../ui-typography";
|
|
69
|
-
import UiIcon from "../ui-icon";
|
|
70
|
-
import UiIconWrapper from "../ui-icon-wrapper";
|
|
71
|
-
import { ETypographySizes } from "../ui-typography";
|
|
72
|
-
import { EColors } from "../../_types/colors";
|
|
73
|
-
import type { TIconName } from "../ui-icon";
|
|
74
|
-
import { ESize } from "../../_types/sizing";
|
|
75
|
-
|
|
76
|
-
defineProps<{
|
|
77
|
-
invertOrder?: boolean;
|
|
78
|
-
disabled?: boolean;
|
|
79
|
-
iconName?: TIconName;
|
|
80
|
-
title?: string;
|
|
81
|
-
description?: string;
|
|
82
|
-
}>();
|
|
83
|
-
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-card-result.vue";
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { EColors } from "./../../_types/colors";
|
|
2
|
-
import UiCardResult from "./ui-card-result.vue";
|
|
3
|
-
import UiTypography, { ETypographySizes, ETextWeight, ETextAlign } from "../ui-typography";
|
|
4
|
-
import UiBadge from "../ui-badge";
|
|
5
|
-
import UiListItem from "../ui-list-item";
|
|
6
|
-
import UiButton, { EButtonTypes } from "../ui-button";
|
|
7
|
-
import UiIcon from "../ui-icon";
|
|
8
|
-
import { ESize } from "../../_types/sizing";
|
|
9
|
-
import type { Story } from "@storybook/vue3";
|
|
10
|
-
|
|
11
|
-
export default {
|
|
12
|
-
title: "Components/ui-card-result",
|
|
13
|
-
component: UiCardResult,
|
|
14
|
-
argTypes: {
|
|
15
|
-
exclusiveText: {
|
|
16
|
-
control: {
|
|
17
|
-
type: "boolean"
|
|
18
|
-
},
|
|
19
|
-
description: "Whether to show the exclusive text",
|
|
20
|
-
},
|
|
21
|
-
exclusiveTextBottom: {
|
|
22
|
-
control: {
|
|
23
|
-
type: "boolean"
|
|
24
|
-
},
|
|
25
|
-
description: "Whether to show the exclusive text",
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
args: {
|
|
29
|
-
slot: "default text",
|
|
30
|
-
exclusiveText: true,
|
|
31
|
-
exclusiveTextBottom: true,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
type TComponentProps = InstanceType<typeof UiCardResult>["$props"];
|
|
36
|
-
|
|
37
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
38
|
-
components: {
|
|
39
|
-
UiCardResult,
|
|
40
|
-
UiTypography,
|
|
41
|
-
UiBadge,
|
|
42
|
-
UiListItem,
|
|
43
|
-
UiButton,
|
|
44
|
-
UiIcon
|
|
45
|
-
},
|
|
46
|
-
setup() {
|
|
47
|
-
return {
|
|
48
|
-
args,
|
|
49
|
-
ETypographySizes,
|
|
50
|
-
ETextWeight,
|
|
51
|
-
ETextAlign,
|
|
52
|
-
EButtonTypes,
|
|
53
|
-
ESize,
|
|
54
|
-
EColors
|
|
55
|
-
};
|
|
56
|
-
},
|
|
57
|
-
template:
|
|
58
|
-
/*html*/`
|
|
59
|
-
<ui-card-result
|
|
60
|
-
v-bind="args"
|
|
61
|
-
header="Some header Some header Some header Some header Some header Some header"
|
|
62
|
-
:exclusive-text="args.exclusiveText
|
|
63
|
-
? 'Only available on bonkers.ie'
|
|
64
|
-
: undefined"
|
|
65
|
-
:exclusive-text-bottom="args.exclusiveTextBottom
|
|
66
|
-
? 'The price changes made available on 04/04/2022 has been factored into your results'
|
|
67
|
-
: undefined"
|
|
68
|
-
>
|
|
69
|
-
<template #sidebar>
|
|
70
|
-
<div class="flex gap-sm">
|
|
71
|
-
<ui-typography :size='ETypographySizes.XXS' line-height :style="{height: '64px', width: '64px', border: '1px solid black'}" class="flex items-center p-sm text-center">
|
|
72
|
-
Special offer text
|
|
73
|
-
</ui-typography>
|
|
74
|
-
|
|
75
|
-
<ui-typography :size='ETypographySizes.XXS' line-height :style="{height: '64px', width: '64px', border: '1px solid black'}" class="flex items-center p-sm text-center">
|
|
76
|
-
Special offer text
|
|
77
|
-
</ui-typography>
|
|
78
|
-
</div>
|
|
79
|
-
</template>
|
|
80
|
-
|
|
81
|
-
<template #default>
|
|
82
|
-
|
|
83
|
-
<div
|
|
84
|
-
class="flex gap-xs items-center mb-xs"
|
|
85
|
-
>
|
|
86
|
-
<ui-icon
|
|
87
|
-
class="text-primary"
|
|
88
|
-
:size="ESize.SM"
|
|
89
|
-
:icon-name="['far', 'face-smile']"
|
|
90
|
-
/>
|
|
91
|
-
|
|
92
|
-
<ui-icon
|
|
93
|
-
class="text-primary"
|
|
94
|
-
:size="ESize.SM"
|
|
95
|
-
:icon-name="['far', 'face-smile']"
|
|
96
|
-
/>
|
|
97
|
-
|
|
98
|
-
<ui-icon
|
|
99
|
-
class="text-secondary-alt-300"
|
|
100
|
-
:size="ESize.SM"
|
|
101
|
-
:icon-name="['far', 'face-smile']"
|
|
102
|
-
/>
|
|
103
|
-
</div>
|
|
104
|
-
|
|
105
|
-
<div class="flex flex-wrap gap-xs mb-sm">
|
|
106
|
-
<ui-badge
|
|
107
|
-
v-for="item in ['Free bank tranfers']"
|
|
108
|
-
:icon="['far', 'face-smile']"
|
|
109
|
-
:key="item"
|
|
110
|
-
>
|
|
111
|
-
{{ item }}
|
|
112
|
-
</ui-badge>
|
|
113
|
-
|
|
114
|
-
<ui-badge
|
|
115
|
-
:icon="['far', 'face-smile']"
|
|
116
|
-
more
|
|
117
|
-
>
|
|
118
|
-
more...
|
|
119
|
-
</ui-badge>
|
|
120
|
-
</div>
|
|
121
|
-
|
|
122
|
-
<ul>
|
|
123
|
-
<ui-list-item
|
|
124
|
-
v-for="item in 4"
|
|
125
|
-
class="mb-xxs items-center"
|
|
126
|
-
:key="item"
|
|
127
|
-
:icon="['far', 'face-smile']"
|
|
128
|
-
icon-class="text-secondary-alt"
|
|
129
|
-
>
|
|
130
|
-
<p>
|
|
131
|
-
<ui-typography is="span" :weight="ETextWeight.BOLD">
|
|
132
|
-
{{item}}
|
|
133
|
-
</ui-typography>
|
|
134
|
-
|
|
135
|
-
<span> Feature item</span>
|
|
136
|
-
</p>
|
|
137
|
-
</ui-list-item>
|
|
138
|
-
</ul>
|
|
139
|
-
|
|
140
|
-
<div :style="{display: 'grid', gridTemplateColumns: '1fr 1fr'}" class="items-center gap-sm mb-sm">
|
|
141
|
-
<ui-typography underline :size="ETypographySizes.SM" :kind="EColors.ACCENT">
|
|
142
|
-
Full Details
|
|
143
|
-
</ui-typography>
|
|
144
|
-
|
|
145
|
-
<ui-typography
|
|
146
|
-
class="text-right"
|
|
147
|
-
:weight="ETextWeight.BOLD"
|
|
148
|
-
:size="ETypographySizes.XL"
|
|
149
|
-
:kind="EColors.SECONDARY"
|
|
150
|
-
>
|
|
151
|
-
<p class="mb-xxs">€1004.63</p>
|
|
152
|
-
<ui-typography
|
|
153
|
-
:size="ETypographySizes.XS"
|
|
154
|
-
:kind="EColors.SECONDARY_400"
|
|
155
|
-
>
|
|
156
|
-
Monthly fee
|
|
157
|
-
</ui-typography>
|
|
158
|
-
</ui-typography>
|
|
159
|
-
</div>
|
|
160
|
-
<ui-button full-width>Some text</ui-button>
|
|
161
|
-
</template>
|
|
162
|
-
</ui-card-result>
|
|
163
|
-
|
|
164
|
-
`,
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
export const Default = Template.bind({});
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="ui-card-result">
|
|
3
|
-
<div
|
|
4
|
-
v-if="exclusiveText"
|
|
5
|
-
class="-mb-lg rounded-2xl bg-primary px-sm pb-lg"
|
|
6
|
-
@click="exclusiveClickAction"
|
|
7
|
-
>
|
|
8
|
-
<ui-typography
|
|
9
|
-
class="py-xs"
|
|
10
|
-
line-height
|
|
11
|
-
:size="ETypographySizes.XXS"
|
|
12
|
-
:kind="EColors.WHITE"
|
|
13
|
-
:align="ETextAlign.CENTER"
|
|
14
|
-
:weight="ETextWeight.SEMI_BOLD"
|
|
15
|
-
>
|
|
16
|
-
{{ exclusiveText }}
|
|
17
|
-
</ui-typography>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
<div class="relative grid overflow-hidden rounded-2xl border border-secondary-alt-400 bg-white">
|
|
21
|
-
<div
|
|
22
|
-
class="
|
|
23
|
-
ui-card-result__header
|
|
24
|
-
m-xs
|
|
25
|
-
mb-sm
|
|
26
|
-
grid
|
|
27
|
-
items-center
|
|
28
|
-
justify-between
|
|
29
|
-
gap-xs
|
|
30
|
-
rounded-lg
|
|
31
|
-
bg-secondary-alt-200
|
|
32
|
-
p-xs
|
|
33
|
-
"
|
|
34
|
-
>
|
|
35
|
-
<ui-typography
|
|
36
|
-
v-if="header"
|
|
37
|
-
line-height
|
|
38
|
-
class="line-clamp flex-1"
|
|
39
|
-
:size="ETypographySizes.SM"
|
|
40
|
-
:weight="ETextWeight.BOLD "
|
|
41
|
-
:kind="EColors.SECONDARY"
|
|
42
|
-
>
|
|
43
|
-
{{ header }}
|
|
44
|
-
</ui-typography>
|
|
45
|
-
|
|
46
|
-
<slot name="sidebar" />
|
|
47
|
-
</div>
|
|
48
|
-
|
|
49
|
-
<main class="w-full overflow-hidden bg-white p-sm pt-0">
|
|
50
|
-
<slot />
|
|
51
|
-
</main>
|
|
52
|
-
</div>
|
|
53
|
-
|
|
54
|
-
<div
|
|
55
|
-
v-if="exclusiveTextBottom"
|
|
56
|
-
class="-mt-lg rounded-2xl border border-secondary-alt-400 bg-secondary-alt-200 px-sm pt-lg"
|
|
57
|
-
@click="exclusiveBottomClickAction"
|
|
58
|
-
>
|
|
59
|
-
<ui-typography
|
|
60
|
-
class="py-xs"
|
|
61
|
-
:size="ETypographySizes.XXS"
|
|
62
|
-
:kind="EColors.SECONDARY"
|
|
63
|
-
:align="ETextAlign.CENTER"
|
|
64
|
-
line-height
|
|
65
|
-
>
|
|
66
|
-
{{ exclusiveTextBottom }}
|
|
67
|
-
</ui-typography>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
</template>
|
|
71
|
-
|
|
72
|
-
<script lang="ts" setup>
|
|
73
|
-
import UiTypography, { ETypographySizes, ETextWeight, ETextAlign } from "../ui-typography";
|
|
74
|
-
import { EColors } from "../../_types/colors";
|
|
75
|
-
|
|
76
|
-
defineProps<{
|
|
77
|
-
header?: string;
|
|
78
|
-
exclusiveText?: string;
|
|
79
|
-
exclusiveTextBottom?: string;
|
|
80
|
-
exclusiveClickAction?: () => void;
|
|
81
|
-
exclusiveBottomClickAction?: () => void;
|
|
82
|
-
}>();
|
|
83
|
-
|
|
84
|
-
</script>
|
|
85
|
-
|
|
86
|
-
<style scoped>
|
|
87
|
-
.ui-card-result__header {
|
|
88
|
-
grid-template-columns: 1fr auto;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.line-clamp {
|
|
92
|
-
display: -webkit-box;
|
|
93
|
-
overflow: hidden;
|
|
94
|
-
-webkit-line-clamp: 2;
|
|
95
|
-
-webkit-box-orient: vertical;
|
|
96
|
-
}
|
|
97
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-card-simple.vue";
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import UiCardSimple from "./ui-card-simple.vue";
|
|
2
|
-
import type { Story } from "@storybook/vue3";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: "Components/ui-card-simple",
|
|
6
|
-
component: UiCardSimple,
|
|
7
|
-
argTypes: {},
|
|
8
|
-
args: {
|
|
9
|
-
slot: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
10
|
-
},
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
type TComponentProps = InstanceType<typeof UiCardSimple>["$props"];
|
|
14
|
-
|
|
15
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
16
|
-
components: {
|
|
17
|
-
UiCardSimple
|
|
18
|
-
},
|
|
19
|
-
setup() {
|
|
20
|
-
return {
|
|
21
|
-
args
|
|
22
|
-
};
|
|
23
|
-
},
|
|
24
|
-
template: /*html*/`
|
|
25
|
-
|
|
26
|
-
<ui-card-simple>
|
|
27
|
-
<template v-slot:title>
|
|
28
|
-
I want to borrow for
|
|
29
|
-
</template>
|
|
30
|
-
<p class="mb-md text-center">
|
|
31
|
-
{{args.slot}}
|
|
32
|
-
</p>
|
|
33
|
-
<template v-slot:footerSubtitle>
|
|
34
|
-
Type in or adjust the amount
|
|
35
|
-
</template>
|
|
36
|
-
</ui-card-simple>
|
|
37
|
-
`,
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
export const Default = Template.bind({});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="ui-card-simple rounded-3xl bg-white px-sm py-md shadow-md"
|
|
4
|
-
>
|
|
5
|
-
<ui-typography
|
|
6
|
-
v-if="slots.title"
|
|
7
|
-
:weight="ETextWeight.BOLD"
|
|
8
|
-
:align="ETextAlign.CENTER"
|
|
9
|
-
class="pb-md"
|
|
10
|
-
>
|
|
11
|
-
<slot name="title" />
|
|
12
|
-
</ui-typography>
|
|
13
|
-
|
|
14
|
-
<slot />
|
|
15
|
-
|
|
16
|
-
<ui-typography
|
|
17
|
-
v-if="slots.footerSubtitle"
|
|
18
|
-
:align="ETextAlign.CENTER"
|
|
19
|
-
>
|
|
20
|
-
<slot name="footerSubtitle" />
|
|
21
|
-
</ui-typography>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script lang="ts" setup>
|
|
26
|
-
import UiTypography, { ETextWeight, ETextAlign } from "../ui-typography";
|
|
27
|
-
import { useSlots } from "vue";
|
|
28
|
-
|
|
29
|
-
const slots = useSlots();
|
|
30
|
-
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-checkbox.vue";
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import UiCheckbox from "./ui-checkbox.vue";
|
|
2
|
-
import type { Story } from "@storybook/vue3";
|
|
3
|
-
import { ref } from "vue";
|
|
4
|
-
import { EJustify } from "../../_types/align";
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: "Components/ui-checkbox",
|
|
8
|
-
component: UiCheckbox,
|
|
9
|
-
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
|
|
10
|
-
argTypes: {
|
|
11
|
-
justify: {
|
|
12
|
-
control: {
|
|
13
|
-
type: "select"
|
|
14
|
-
},
|
|
15
|
-
options: Object.values(EJustify),
|
|
16
|
-
description: "The Element justify",
|
|
17
|
-
},
|
|
18
|
-
invertOrder: {
|
|
19
|
-
control: {
|
|
20
|
-
type: "boolean"
|
|
21
|
-
},
|
|
22
|
-
description: "The Element order",
|
|
23
|
-
},
|
|
24
|
-
disabled: {
|
|
25
|
-
control: {
|
|
26
|
-
type: "boolean"
|
|
27
|
-
},
|
|
28
|
-
description: "The Element disabled state",
|
|
29
|
-
},
|
|
30
|
-
modelValue: {
|
|
31
|
-
control: {
|
|
32
|
-
type: "boolean"
|
|
33
|
-
},
|
|
34
|
-
description: "The Element disabled state",
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
args: {
|
|
39
|
-
slot: "Some text",
|
|
40
|
-
justify: EJustify.START,
|
|
41
|
-
invertOrder: false,
|
|
42
|
-
disabled: false,
|
|
43
|
-
modelValue: false,
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
type TComponentProps = InstanceType<typeof UiCheckbox>["$props"];
|
|
48
|
-
|
|
49
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
50
|
-
// Components used in your story `template` are defined in the `components` object
|
|
51
|
-
components: {
|
|
52
|
-
UiCheckbox
|
|
53
|
-
},
|
|
54
|
-
// The story's `args` need to be mapped into the template through the `setup()` method
|
|
55
|
-
setup() {
|
|
56
|
-
const modelValue = ref(true);
|
|
57
|
-
|
|
58
|
-
return {
|
|
59
|
-
args,
|
|
60
|
-
modelValue
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
// And then the `args` are bound to your component with `v-bind="args"`
|
|
64
|
-
template: `
|
|
65
|
-
<ui-checkbox v-bind="args" v-model="modelValue">
|
|
66
|
-
${args.slot}
|
|
67
|
-
</ui-checkbox>
|
|
68
|
-
`,
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
export const Default = Template.bind({});
|