bonkers-ui 1.0.61 → 1.0.62
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/_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 +10 -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 +6 -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 +8 -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 +8 -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 +8 -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 +8 -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 +15 -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 +8 -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 +10 -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 +6 -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 +8 -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 +8 -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 +6 -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 +8 -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 +8 -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 +8 -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 +8 -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 +8 -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 +200 -0
- package/index.js.map +1 -0
- package/package.json +67 -38
- 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 +71 -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/README.md +0 -38
- 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,92 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<label
|
|
3
|
-
class="
|
|
4
|
-
ui-radio-compact
|
|
5
|
-
relative
|
|
6
|
-
"
|
|
7
|
-
>
|
|
8
|
-
<input
|
|
9
|
-
v-model="radioModel"
|
|
10
|
-
type="radio"
|
|
11
|
-
:name="name"
|
|
12
|
-
:value="value"
|
|
13
|
-
class="group peer absolute appearance-none"
|
|
14
|
-
:disabled="disabled"
|
|
15
|
-
>
|
|
16
|
-
<div
|
|
17
|
-
class="
|
|
18
|
-
ui-radio-compact_content
|
|
19
|
-
box-border
|
|
20
|
-
grid
|
|
21
|
-
cursor-pointer
|
|
22
|
-
items-center
|
|
23
|
-
justify-items-center
|
|
24
|
-
rounded-xl
|
|
25
|
-
border
|
|
26
|
-
border-secondary-alt-500
|
|
27
|
-
bg-white
|
|
28
|
-
before:absolute
|
|
29
|
-
before:-z-10
|
|
30
|
-
before:box-border
|
|
31
|
-
before:rounded-[16px]
|
|
32
|
-
|
|
33
|
-
before:bg-primary-300
|
|
34
|
-
hover:border-secondary-alt-700
|
|
35
|
-
peer-checked:border-transparent
|
|
36
|
-
peer-checked:shadow-selected-shadow
|
|
37
|
-
peer-checked:hover:shadow-border-selected
|
|
38
|
-
|
|
39
|
-
peer-checked:active:shadow-border-primary
|
|
40
|
-
peer-checked:active:before:-bottom-xs
|
|
41
|
-
peer-checked:active:before:-left-xs
|
|
42
|
-
peer-checked:active:before:-right-xs
|
|
43
|
-
peer-checked:active:before:-top-xs
|
|
44
|
-
peer-focus:before:-bottom-xs
|
|
45
|
-
|
|
46
|
-
peer-focus:before:-left-xs
|
|
47
|
-
peer-focus:before:-right-xs
|
|
48
|
-
|
|
49
|
-
peer-focus:before:-top-xs
|
|
50
|
-
peer-active:before:-bottom-xxs
|
|
51
|
-
peer-active:before:-left-xxs
|
|
52
|
-
peer-active:before:-right-xxs
|
|
53
|
-
|
|
54
|
-
peer-active:before:-top-xxs
|
|
55
|
-
"
|
|
56
|
-
>
|
|
57
|
-
|
|
58
|
-
<ui-typography
|
|
59
|
-
class="px-md py-sm"
|
|
60
|
-
:size="ETypographySizes.MD"
|
|
61
|
-
line-height
|
|
62
|
-
:align="ETextAlign.CENTER"
|
|
63
|
-
>
|
|
64
|
-
<slot />
|
|
65
|
-
</ui-typography>
|
|
66
|
-
|
|
67
|
-
</div>
|
|
68
|
-
</label>
|
|
69
|
-
</template>
|
|
70
|
-
|
|
71
|
-
<script lang="ts" setup>
|
|
72
|
-
import { computed } from "vue";
|
|
73
|
-
import UiTypography, { ETypographySizes, ETextAlign } from "../ui-typography";
|
|
74
|
-
|
|
75
|
-
const props = defineProps<{
|
|
76
|
-
modelValue: string | number | boolean;
|
|
77
|
-
name: string;
|
|
78
|
-
value: string | number | boolean;
|
|
79
|
-
disabled?: boolean;
|
|
80
|
-
}>();
|
|
81
|
-
|
|
82
|
-
const emit = defineEmits(["update:modelValue"]);
|
|
83
|
-
|
|
84
|
-
const radioModel = computed({
|
|
85
|
-
get() {
|
|
86
|
-
return props.modelValue;
|
|
87
|
-
},
|
|
88
|
-
set(value) {
|
|
89
|
-
emit("update:modelValue", value);
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-radio-fancy.vue";
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { ERadioSizes } from "./_typings";
|
|
2
|
-
import UiRadioFancy from "../ui-radio-fancy";
|
|
3
|
-
import { ICON_DEFAULT } from "./../../CONSTANTS";
|
|
4
|
-
import UiTypography, { ETypographySizes } from "../ui-typography";
|
|
5
|
-
import type { Meta } from "@storybook/vue3";
|
|
6
|
-
import { ref } from "vue";
|
|
7
|
-
|
|
8
|
-
const meta: Meta<typeof UiRadioFancy> = {
|
|
9
|
-
title: "Components/ui-radio-fancy",
|
|
10
|
-
component: UiRadioFancy,
|
|
11
|
-
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
|
|
12
|
-
argTypes: {
|
|
13
|
-
disabled: {
|
|
14
|
-
control: {
|
|
15
|
-
type: "boolean"
|
|
16
|
-
},
|
|
17
|
-
description: "The full width size",
|
|
18
|
-
},
|
|
19
|
-
radioSize: {
|
|
20
|
-
control: {
|
|
21
|
-
type: "select"
|
|
22
|
-
},
|
|
23
|
-
options: Object.values(ERadioSizes),
|
|
24
|
-
description: "The radio kinds",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export default meta;
|
|
30
|
-
|
|
31
|
-
export const Default = {
|
|
32
|
-
args: {
|
|
33
|
-
iconName: ICON_DEFAULT,
|
|
34
|
-
default: "Description",
|
|
35
|
-
invertOrder: false,
|
|
36
|
-
disabled: false,
|
|
37
|
-
radioSize: ERadioSizes.DEFAULT
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export const Compact = {
|
|
42
|
-
args: {
|
|
43
|
-
default: "1",
|
|
44
|
-
radioSize: ERadioSizes.COMPACT
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
render: (args) => ({
|
|
48
|
-
components: {
|
|
49
|
-
UiRadioFancy,
|
|
50
|
-
UiTypography
|
|
51
|
-
},
|
|
52
|
-
setup() {
|
|
53
|
-
const modelValue = ref("1");
|
|
54
|
-
return {
|
|
55
|
-
args,
|
|
56
|
-
ETypographySizes,
|
|
57
|
-
modelValue
|
|
58
|
-
};
|
|
59
|
-
},
|
|
60
|
-
template: /*html*/`
|
|
61
|
-
<div class="flex gap-sm" :style="{}">
|
|
62
|
-
<ui-radio-fancy v-for="item in 2"
|
|
63
|
-
:key="item"
|
|
64
|
-
:value="String(item)"
|
|
65
|
-
v-model="modelValue"
|
|
66
|
-
name="radio" title="title"
|
|
67
|
-
:radioSize="args.radioSize"
|
|
68
|
-
:disabled="args.disabled"
|
|
69
|
-
>
|
|
70
|
-
<ui-typography :size="ETypographySizes.MD">
|
|
71
|
-
{{item}}
|
|
72
|
-
</ui-typography>
|
|
73
|
-
</ui-radio-fancy>
|
|
74
|
-
</div>
|
|
75
|
-
`,
|
|
76
|
-
args: {
|
|
77
|
-
default: "1",
|
|
78
|
-
radioSize: ERadioSizes.COMPACT
|
|
79
|
-
},
|
|
80
|
-
}),
|
|
81
|
-
};
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<label
|
|
3
|
-
class="
|
|
4
|
-
ui-radio-fancy
|
|
5
|
-
relative
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
:class="disabled && 'pointer-events-none'"
|
|
9
|
-
>
|
|
10
|
-
<input
|
|
11
|
-
v-model="radioModel"
|
|
12
|
-
type="radio"
|
|
13
|
-
:name="name"
|
|
14
|
-
:value="value"
|
|
15
|
-
class="group peer absolute appearance-none"
|
|
16
|
-
:disabled="disabled"
|
|
17
|
-
>
|
|
18
|
-
<div
|
|
19
|
-
class="
|
|
20
|
-
ui-radio-fancy__content
|
|
21
|
-
box-border
|
|
22
|
-
h-full
|
|
23
|
-
w-full
|
|
24
|
-
cursor-pointer rounded-xl
|
|
25
|
-
border
|
|
26
|
-
border-secondary-alt-500
|
|
27
|
-
bg-white
|
|
28
|
-
p-sm
|
|
29
|
-
before:absolute
|
|
30
|
-
before:-z-10
|
|
31
|
-
|
|
32
|
-
before:box-border
|
|
33
|
-
before:rounded-[16px]
|
|
34
|
-
before:bg-primary-300
|
|
35
|
-
hover:border-secondary-alt-700
|
|
36
|
-
peer-checked:border-transparent
|
|
37
|
-
|
|
38
|
-
peer-checked:shadow-selected-shadow
|
|
39
|
-
peer-checked:hover:shadow-border-selected
|
|
40
|
-
peer-checked:active:shadow-border-primary
|
|
41
|
-
peer-checked:active:before:-bottom-xs
|
|
42
|
-
peer-checked:active:before:-left-xs
|
|
43
|
-
peer-checked:active:before:-right-xs
|
|
44
|
-
|
|
45
|
-
peer-checked:active:before:-top-xs
|
|
46
|
-
peer-focus:before:-bottom-xs
|
|
47
|
-
|
|
48
|
-
peer-focus:before:-left-xs
|
|
49
|
-
peer-focus:before:-right-xs
|
|
50
|
-
peer-focus:before:-top-xs
|
|
51
|
-
peer-active:before:-bottom-xxs
|
|
52
|
-
|
|
53
|
-
peer-active:before:-left-xxs
|
|
54
|
-
peer-active:before:-right-xxs
|
|
55
|
-
peer-active:before:-top-xxs
|
|
56
|
-
"
|
|
57
|
-
:class="[
|
|
58
|
-
disabled
|
|
59
|
-
&& 'pointer-events-none border-secondary-alt-400 peer-checked:shadow-border-primary-disabled',
|
|
60
|
-
radioSize === ERadioSizes.MINIMAL && 'flex gap-sm align-middle',
|
|
61
|
-
radioSize === ERadioSizes.COMPACT && 'grid cursor-pointer grid-flow-col px-md'
|
|
62
|
-
|
|
63
|
-
]"
|
|
64
|
-
>
|
|
65
|
-
<div
|
|
66
|
-
v-if="radioSize === ERadioSizes.DEFAULT && iconName"
|
|
67
|
-
>
|
|
68
|
-
<ui-icon
|
|
69
|
-
:icon-name="iconName"
|
|
70
|
-
:size="ESize.MD"
|
|
71
|
-
class=" mb-md peer-checked:text-primary-500"
|
|
72
|
-
:class="[value === modelValue && 'text-primary',
|
|
73
|
-
disabled && 'text-secondary-alt-400',
|
|
74
|
-
disabled && value === modelValue && 'text-primary-300'
|
|
75
|
-
]"
|
|
76
|
-
/>
|
|
77
|
-
</div>
|
|
78
|
-
<div v-else-if="radioSize === ERadioSizes.MINIMAL && iconName">
|
|
79
|
-
<ui-icon
|
|
80
|
-
:icon-name="iconName"
|
|
81
|
-
:size="ESize.MD"
|
|
82
|
-
:class="[value === modelValue && 'text-primary',
|
|
83
|
-
disabled && 'text-secondary-alt-400',
|
|
84
|
-
disabled && value === modelValue && 'text-primary-300'
|
|
85
|
-
]"
|
|
86
|
-
/>
|
|
87
|
-
|
|
88
|
-
</div>
|
|
89
|
-
<div
|
|
90
|
-
v-else-if="radioSize === ERadioSizes.COMPACT"
|
|
91
|
-
/>
|
|
92
|
-
<ui-typography
|
|
93
|
-
:size="ETypographySizes.SM"
|
|
94
|
-
:kind="EColors.SECONDARY"
|
|
95
|
-
class="pt-xxs"
|
|
96
|
-
>
|
|
97
|
-
<slot />
|
|
98
|
-
</ui-typography>
|
|
99
|
-
</div>
|
|
100
|
-
</label>
|
|
101
|
-
</template>
|
|
102
|
-
|
|
103
|
-
<script lang="ts" setup>
|
|
104
|
-
import { computed } from "vue";
|
|
105
|
-
import UiTypography, { ETypographySizes } from "../ui-typography";
|
|
106
|
-
import type { TIconName } from "../ui-icon";
|
|
107
|
-
import { ESize } from "../../_types/sizing";
|
|
108
|
-
import { EColors } from "../../_types/colors";
|
|
109
|
-
import { ERadioSizes } from "./_typings";
|
|
110
|
-
import uiIcon from "../ui-icon";
|
|
111
|
-
|
|
112
|
-
const props = withDefaults(defineProps<{
|
|
113
|
-
modelValue: string | number | boolean;
|
|
114
|
-
name: string;
|
|
115
|
-
value: string | number | boolean;
|
|
116
|
-
iconName?: TIconName;
|
|
117
|
-
disabled?: boolean;
|
|
118
|
-
radioSize?: ERadioSizes;
|
|
119
|
-
}>(), {
|
|
120
|
-
radioSize: ERadioSizes.DEFAULT,
|
|
121
|
-
iconName: undefined
|
|
122
|
-
});
|
|
123
|
-
const emit = defineEmits(["update:modelValue"]);
|
|
124
|
-
const radioModel = computed({
|
|
125
|
-
get() {
|
|
126
|
-
return props.modelValue;
|
|
127
|
-
},
|
|
128
|
-
set(value) {
|
|
129
|
-
emit("update:modelValue", value);
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-result-card-range.vue";
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import UiResultCardRange from "../ui-result-card-range";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/ui-result-card-range",
|
|
5
|
-
component: UiResultCardRange,
|
|
6
|
-
argTypes: {
|
|
7
|
-
slot: {
|
|
8
|
-
control: {
|
|
9
|
-
type: "text"
|
|
10
|
-
},
|
|
11
|
-
description: "The slot text or component",
|
|
12
|
-
},
|
|
13
|
-
title: {
|
|
14
|
-
control: {
|
|
15
|
-
type: "text"
|
|
16
|
-
},
|
|
17
|
-
description: "The title text",
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
args: {
|
|
21
|
-
title: "This is a Title",
|
|
22
|
-
slot: "This is the body",
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
const Template = (args) => ({
|
|
27
|
-
components: {
|
|
28
|
-
UiResultCardRange
|
|
29
|
-
},
|
|
30
|
-
setup() {
|
|
31
|
-
return {
|
|
32
|
-
args
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
template: /*html*/`
|
|
36
|
-
<ui-result-card-range :icon-name="['far', 'face-smile']" :title="args.title">
|
|
37
|
-
{{args.slot}}
|
|
38
|
-
</ui-result-card-range>
|
|
39
|
-
`,
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
const TemplateAll = (args) => ({
|
|
43
|
-
components: {
|
|
44
|
-
UiResultCardRange
|
|
45
|
-
},
|
|
46
|
-
setup() {
|
|
47
|
-
return {
|
|
48
|
-
args
|
|
49
|
-
};
|
|
50
|
-
},
|
|
51
|
-
template: /*html*/`
|
|
52
|
-
<div class="ui-result-card-range grid gap-sm w-full">
|
|
53
|
-
|
|
54
|
-
<ui-result-card-range style="grid-column: 1 / 1"
|
|
55
|
-
:icon-name="['far', 'face-smile']" :title="args.title">
|
|
56
|
-
{{args.slot}}
|
|
57
|
-
</ui-result-card-range>
|
|
58
|
-
|
|
59
|
-
<ui-result-card-range style="grid-column: 2 / 2"
|
|
60
|
-
:icon-name="['far', 'face-smile']" :title="args.title">
|
|
61
|
-
{{args.slot}}
|
|
62
|
-
|
|
63
|
-
</ui-result-card-range>
|
|
64
|
-
|
|
65
|
-
<ui-result-card-range style="grid-column: 1 / 3; flex-direction: row; justify-content: space-between;">
|
|
66
|
-
|
|
67
|
-
<b>25/02/2022</b>
|
|
68
|
-
<b>→</b>
|
|
69
|
-
<b>26/01/2023</b>
|
|
70
|
-
|
|
71
|
-
</ui-result-card-range>
|
|
72
|
-
</div>
|
|
73
|
-
`,
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
export const SingleCard = Template.bind({});
|
|
77
|
-
|
|
78
|
-
export const FullCard = TemplateAll.bind({});
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="
|
|
4
|
-
ui-result-card-range
|
|
5
|
-
flex
|
|
6
|
-
w-full
|
|
7
|
-
flex-col
|
|
8
|
-
items-center
|
|
9
|
-
rounded-3xl
|
|
10
|
-
border-4
|
|
11
|
-
border-secondary-alt-300
|
|
12
|
-
bg-secondary-alt-200
|
|
13
|
-
p-md text-secondary-500"
|
|
14
|
-
>
|
|
15
|
-
<ui-icon
|
|
16
|
-
v-if="iconName"
|
|
17
|
-
class="mb-md"
|
|
18
|
-
:size="ESize.MD"
|
|
19
|
-
:icon-name="iconName"
|
|
20
|
-
/>
|
|
21
|
-
<ui-typography
|
|
22
|
-
v-if="title"
|
|
23
|
-
class="mb-xs"
|
|
24
|
-
:size="ETypographySizes.MD"
|
|
25
|
-
:weight="ETextWeight.SEMI_BOLD"
|
|
26
|
-
:align="ETextAlign.CENTER"
|
|
27
|
-
>
|
|
28
|
-
{{ title }}
|
|
29
|
-
</ui-typography>
|
|
30
|
-
|
|
31
|
-
<slot />
|
|
32
|
-
</div>
|
|
33
|
-
</template>
|
|
34
|
-
|
|
35
|
-
<script lang="ts" setup>
|
|
36
|
-
import uiIcon, { ESize, type TIconName } from "../ui-icon";
|
|
37
|
-
import UiTypography, { ETextWeight, ETypographySizes, ETextAlign } from "../ui-typography";
|
|
38
|
-
|
|
39
|
-
defineProps<{
|
|
40
|
-
iconName?: TIconName;
|
|
41
|
-
title?: string;
|
|
42
|
-
size?: string;
|
|
43
|
-
description?: string;
|
|
44
|
-
}>();
|
|
45
|
-
|
|
46
|
-
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-ripple.vue";
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import UiRipple from "./ui-ripple.vue";
|
|
2
|
-
import UiButton from "../ui-button";
|
|
3
|
-
import UiTypography from "../ui-typography";
|
|
4
|
-
|
|
5
|
-
import type { Story } from "@storybook/vue3";
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: "Components/ui-ripple",
|
|
9
|
-
component: UiRipple,
|
|
10
|
-
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
|
|
11
|
-
argTypes: {},
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
type TComponentProps = InstanceType<typeof UiRipple>["$props"];
|
|
15
|
-
|
|
16
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
17
|
-
components: {
|
|
18
|
-
UiRipple
|
|
19
|
-
},
|
|
20
|
-
setup() {
|
|
21
|
-
return {
|
|
22
|
-
args
|
|
23
|
-
};
|
|
24
|
-
},
|
|
25
|
-
template: `
|
|
26
|
-
<div
|
|
27
|
-
:style="{
|
|
28
|
-
width: '500px',
|
|
29
|
-
height: '500px',
|
|
30
|
-
border: '2px solid red',
|
|
31
|
-
}"
|
|
32
|
-
class="relative">
|
|
33
|
-
<ui-ripple v-bind="args" />
|
|
34
|
-
</div>
|
|
35
|
-
`,
|
|
36
|
-
});
|
|
37
|
-
const Template2: Story<TComponentProps> = (args) => ({
|
|
38
|
-
components: {
|
|
39
|
-
UiRipple,
|
|
40
|
-
UiButton,
|
|
41
|
-
UiTypography
|
|
42
|
-
},
|
|
43
|
-
setup() {
|
|
44
|
-
return {
|
|
45
|
-
args
|
|
46
|
-
};
|
|
47
|
-
},
|
|
48
|
-
template: `
|
|
49
|
-
<div class="flex">
|
|
50
|
-
<ui-button class="relative">
|
|
51
|
-
<ui-typography is="div">
|
|
52
|
-
<ui-ripple v-bind="args" />
|
|
53
|
-
hello world
|
|
54
|
-
</ui-typography>
|
|
55
|
-
</ui-button>
|
|
56
|
-
</div>
|
|
57
|
-
`,
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
export const Default = Template.bind({});
|
|
61
|
-
export const WithButton = Template2.bind({});
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
ref="tiBtn"
|
|
4
|
-
class="ui-ripple"
|
|
5
|
-
@click="animateRipple"
|
|
6
|
-
>
|
|
7
|
-
<slot />
|
|
8
|
-
|
|
9
|
-
<transition-group>
|
|
10
|
-
<svg
|
|
11
|
-
v-for="val in ripples"
|
|
12
|
-
:ref="inputsRefs"
|
|
13
|
-
:key="val.id"
|
|
14
|
-
viewBox="0 0 100 100"
|
|
15
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
-
class="ripple"
|
|
17
|
-
:style="{'top': val.y + 'px', 'left': val.x + 'px'}"
|
|
18
|
-
fill="currentColor"
|
|
19
|
-
@animationend="rippleEnd(val.id)"
|
|
20
|
-
>
|
|
21
|
-
<circle
|
|
22
|
-
cx="50"
|
|
23
|
-
cy="50"
|
|
24
|
-
r="50"
|
|
25
|
-
/>
|
|
26
|
-
</svg>
|
|
27
|
-
</transition-group>
|
|
28
|
-
</div>
|
|
29
|
-
</template>
|
|
30
|
-
|
|
31
|
-
<script lang="ts" setup>
|
|
32
|
-
import { ref, type VNodeRef } from "vue";
|
|
33
|
-
|
|
34
|
-
const ripples = ref<{x:number, y:number, id:string}[]>([]);
|
|
35
|
-
const tiBtn = ref<HTMLDivElement>();
|
|
36
|
-
const inputsRefs = ref<VNodeRef>();
|
|
37
|
-
|
|
38
|
-
const animateRipple = (e:MouseEvent)=> {
|
|
39
|
-
if (tiBtn.value) {
|
|
40
|
-
const pos = tiBtn.value.getBoundingClientRect();
|
|
41
|
-
|
|
42
|
-
ripples.value.push({
|
|
43
|
-
x: e.clientX - pos.left,
|
|
44
|
-
y: e.clientY - pos.top,
|
|
45
|
-
id: Math.random().toString(36).substr(2, 9)
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
const rippleEnd = (i: string)=> {
|
|
50
|
-
ripples.value = ripples.value.filter(val=>val.id !== i);
|
|
51
|
-
};
|
|
52
|
-
</script>
|
|
53
|
-
|
|
54
|
-
<style>
|
|
55
|
-
.ui-ripple {
|
|
56
|
-
position: absolute;
|
|
57
|
-
top: 0;
|
|
58
|
-
left: 0;
|
|
59
|
-
width: 100%;
|
|
60
|
-
height: 100%;
|
|
61
|
-
overflow: hidden;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.ripple {
|
|
65
|
-
position: absolute;
|
|
66
|
-
will-change: transform, opacity;
|
|
67
|
-
transform: translate3d(-50%, -50%, 0) scale(0);
|
|
68
|
-
mix-blend-mode: screen;
|
|
69
|
-
animation: ripple 1s ease-out forwards, fade 1s ease-out forwards;
|
|
70
|
-
z-index: 1;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@keyframes ripple {
|
|
74
|
-
0% { transform: translate3d(-50%, -50%, 0) scale(0); }
|
|
75
|
-
80% { transform: translate3d(-50%, -50%, 0) scale(10); }
|
|
76
|
-
100% { transform: translate3d(-50%, -50%, 0) scale(10); }
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@keyframes fade {
|
|
80
|
-
0% { opacity: 1; }
|
|
81
|
-
100% { opacity: 0; }
|
|
82
|
-
}
|
|
83
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-select.vue";
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import UiSelect from "./ui-select.vue";
|
|
2
|
-
import type { Story } from "@storybook/vue3";
|
|
3
|
-
import { ref } from "vue";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: "Components/ui-select",
|
|
7
|
-
component: UiSelect,
|
|
8
|
-
argTypes: {
|
|
9
|
-
disabled: {
|
|
10
|
-
control: {
|
|
11
|
-
type: "boolean"
|
|
12
|
-
},
|
|
13
|
-
description: "The Element disabled state",
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
args: {
|
|
17
|
-
disabled: false,
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
type TComponentProps = InstanceType<typeof UiSelect>["$props"];
|
|
22
|
-
|
|
23
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
24
|
-
components: {
|
|
25
|
-
UiSelect
|
|
26
|
-
},
|
|
27
|
-
setup() {
|
|
28
|
-
const list = ["Option 1", "Option 2", "Option 3"];
|
|
29
|
-
const valueModel = ref(list[0]);
|
|
30
|
-
return {
|
|
31
|
-
args,
|
|
32
|
-
valueModel,
|
|
33
|
-
list
|
|
34
|
-
};
|
|
35
|
-
},
|
|
36
|
-
template: /*html*/`
|
|
37
|
-
<ui-select v-bind="args" v-model="valueModel" heading="Heading" subLabel="Sub Label">
|
|
38
|
-
<option
|
|
39
|
-
v-for="item in list"
|
|
40
|
-
:key="item"
|
|
41
|
-
:value="item"
|
|
42
|
-
>
|
|
43
|
-
{{ item }}
|
|
44
|
-
</option>
|
|
45
|
-
</ui-select>
|
|
46
|
-
`,
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
export const Default = Template.bind({});
|