bonkers-ui 1.0.60 → 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 +69 -40
- 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 -53
- package/src/components/ui-card-cta/ui-card-cta.vue +0 -94
- 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 -103
- 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 -55
- package/src/components/ui-select/ui-select.vue +0 -72
- 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 -109
- package/src/components/ui-verification-input/index.ts +0 -1
- package/src/components/ui-verification-input/ui-verification-input.stories.ts +0 -48
- package/src/components/ui-verification-input/ui-verification-input.vue +0 -126
- package/src/main.css +0 -34
- package/src/shims-vue.d.ts +0 -5
- package/src/stories/Introduction.stories.mdx +0 -131
- package/src/stories/assets/code-brackets.svg +0 -1
- package/src/stories/colors/colors.stories.ts +0 -15
- package/src/stories/colors/ui-colors.vue +0 -96
- package/src/stories/font-sizes/font-sizes.stories.ts +0 -15
- package/src/stories/font-sizes/ui-font-sizes.vue +0 -28
- package/src/stories/helper.ts +0 -5
- package/src/stories/spacings/spacings.stories.ts +0 -15
- package/src/stories/spacings/ui-spacings.vue +0 -50
- package/tailwind.config.js +0 -30
- package/vite.config.ts +0 -14
- package/vitest.config.ts +0 -17
- /package/src/_styles/{classTypes/_colors.json → _colors.json} +0 -0
- /package/src/_styles/{classTypes/_font-sizes.json → _font-sizes.json} +0 -0
- /package/src/_styles/{classTypes/_shadow.json → _shadow.json} +0 -0
- /package/src/_styles/{classTypes/_spacing.json → _spacing.json} +0 -0
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import UiOrderCard from "./ui-order-card.vue";
|
|
2
|
-
import type { Story } from "@storybook/vue3";
|
|
3
|
-
import { EOrderCardTypes } from "./_types";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: "Components/ui-order-card",
|
|
7
|
-
component: UiOrderCard,
|
|
8
|
-
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
|
|
9
|
-
argTypes: {
|
|
10
|
-
kind: {
|
|
11
|
-
control: {
|
|
12
|
-
type: "select"
|
|
13
|
-
},
|
|
14
|
-
options: Object.values(EOrderCardTypes),
|
|
15
|
-
description: "The Element kinds",
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
args: {
|
|
20
|
-
slot: "But we still need your gas and electricity meter readings before processing it.",
|
|
21
|
-
kind: EOrderCardTypes.DEFAULT
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
type TComponentProps = InstanceType<typeof UiOrderCard>["$props"];
|
|
26
|
-
|
|
27
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
28
|
-
components: {
|
|
29
|
-
UiOrderCard
|
|
30
|
-
},
|
|
31
|
-
setup() {
|
|
32
|
-
|
|
33
|
-
return {
|
|
34
|
-
args
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
template: /*html*/`
|
|
39
|
-
<ui-order-card v-bind="args" :iconName="['far', 'face-smile']">
|
|
40
|
-
<template #title>
|
|
41
|
-
Thank you for your order!
|
|
42
|
-
</template>
|
|
43
|
-
|
|
44
|
-
<template #textBody>
|
|
45
|
-
{{args.slot}}
|
|
46
|
-
</template>
|
|
47
|
-
|
|
48
|
-
<template #footer>
|
|
49
|
-
We’ll send a confirmation email to william.moran@bonkers.ie
|
|
50
|
-
</template>
|
|
51
|
-
</ui-order-card>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
`,
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
export const Default = Template.bind({});
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="ui-order-card relative mt-sm rounded-md pt-md text-center"
|
|
4
|
-
:class="[
|
|
5
|
-
kind === EOrderCardTypes.DEFAULT && 'bg-primary-300 text-white',
|
|
6
|
-
kind === EOrderCardTypes.WARNING && 'bg-warning-300 text-warning-700'
|
|
7
|
-
]"
|
|
8
|
-
>
|
|
9
|
-
<ui-icon
|
|
10
|
-
:icon-name="iconName"
|
|
11
|
-
:size="ESize.LG"
|
|
12
|
-
class="absolute left-1/2 top-0 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-300"
|
|
13
|
-
:class="[
|
|
14
|
-
kind === EOrderCardTypes.DEFAULT && 'text-white',
|
|
15
|
-
kind === EOrderCardTypes.WARNING && 'bg-warning-300 text-white'
|
|
16
|
-
]"
|
|
17
|
-
/>
|
|
18
|
-
<ui-typography
|
|
19
|
-
v-if="$slots.title"
|
|
20
|
-
class="pt-sm"
|
|
21
|
-
:class="[
|
|
22
|
-
kind === EOrderCardTypes.DEFAULT && 'text-primary-700',
|
|
23
|
-
kind === EOrderCardTypes.WARNING && 'text-warning-700'
|
|
24
|
-
]"
|
|
25
|
-
:kind="pickKind"
|
|
26
|
-
:size="ETypographySizes.XL"
|
|
27
|
-
:weight="ETextWeight.BOLD"
|
|
28
|
-
>
|
|
29
|
-
<slot name="title" />
|
|
30
|
-
</ui-typography>
|
|
31
|
-
|
|
32
|
-
<ui-typography
|
|
33
|
-
v-if="$slots.textBody"
|
|
34
|
-
class="mb-sm p-sm"
|
|
35
|
-
:class="[
|
|
36
|
-
kind === EOrderCardTypes.DEFAULT && 'text-primary-700',
|
|
37
|
-
kind === EOrderCardTypes.WARNING && 'text-warning-700'
|
|
38
|
-
]"
|
|
39
|
-
:size="ETypographySizes.MD"
|
|
40
|
-
:weight="ETextWeight.REGULAR"
|
|
41
|
-
>
|
|
42
|
-
<slot name="textBody" />
|
|
43
|
-
</ui-typography>
|
|
44
|
-
|
|
45
|
-
<ui-typography
|
|
46
|
-
v-if="$slots.footer"
|
|
47
|
-
class="rounded-b-lg py-sm text-white"
|
|
48
|
-
:class="[
|
|
49
|
-
kind === EOrderCardTypes.DEFAULT && 'bg-primary-700',
|
|
50
|
-
kind === EOrderCardTypes.WARNING && 'bg-warning-700'
|
|
51
|
-
]"
|
|
52
|
-
:size="ETypographySizes.XXS"
|
|
53
|
-
:weight="ETextWeight.REGULAR"
|
|
54
|
-
>
|
|
55
|
-
<slot name="footer" />
|
|
56
|
-
</ui-typography>
|
|
57
|
-
</div>
|
|
58
|
-
</template>
|
|
59
|
-
|
|
60
|
-
<script lang="ts" setup>
|
|
61
|
-
import { computed } from "vue";
|
|
62
|
-
import { ESize } from "../../_types/sizing";
|
|
63
|
-
import { EColors } from "../../_types/colors";
|
|
64
|
-
import UiTypography, { ETextWeight, ETypographySizes } from "../ui-typography";
|
|
65
|
-
import type { TIconName } from "../ui-icon";
|
|
66
|
-
import UiIcon from "../ui-icon";
|
|
67
|
-
import { EOrderCardTypes } from "./_types";
|
|
68
|
-
|
|
69
|
-
const props = withDefaults(defineProps<{
|
|
70
|
-
iconName: TIconName;
|
|
71
|
-
kind?: EOrderCardTypes;
|
|
72
|
-
}>(), {
|
|
73
|
-
kind: EOrderCardTypes.DEFAULT
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
const pickKind = computed(()=>{
|
|
77
|
-
switch (props.kind) {
|
|
78
|
-
case EOrderCardTypes.WARNING: return EColors.WARNING_700;
|
|
79
|
-
default: return EColors.PRIMARY_700;
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-plain-radio.vue";
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import UiPlainRadio from "./ui-plain-radio.vue";
|
|
2
|
-
import { ETypographySizes } from "../ui-typography";
|
|
3
|
-
import EColors from "../ui-typography";
|
|
4
|
-
import type { Story } from "@storybook/vue3";
|
|
5
|
-
import { ref } from "vue";
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: "Components/ui-plain-radio",
|
|
9
|
-
component: UiPlainRadio,
|
|
10
|
-
ETypographySizes,
|
|
11
|
-
EColors,
|
|
12
|
-
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
|
|
13
|
-
argTypes: {
|
|
14
|
-
disabled: {
|
|
15
|
-
control: {
|
|
16
|
-
type: "boolean"
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
header: {
|
|
20
|
-
control: {
|
|
21
|
-
type: "text"
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
subHeader: {
|
|
25
|
-
control: {
|
|
26
|
-
type: "text"
|
|
27
|
-
},
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
args: {
|
|
31
|
-
disabled: false,
|
|
32
|
-
header: "Header",
|
|
33
|
-
subHeader: "SubHeader"
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
type TComponentProps = InstanceType<typeof UiPlainRadio>["$props"];
|
|
38
|
-
|
|
39
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
40
|
-
components: {
|
|
41
|
-
UiPlainRadio
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
setup() {
|
|
45
|
-
const modelValue = ref("1");
|
|
46
|
-
|
|
47
|
-
return {
|
|
48
|
-
modelValue,
|
|
49
|
-
args,
|
|
50
|
-
ETypographySizes,
|
|
51
|
-
EColors
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
template: /*html*/ `
|
|
57
|
-
<div :style="{display: 'grid', gridGap: '5px'}">
|
|
58
|
-
<ui-plain-radio
|
|
59
|
-
v-for="item in 2"
|
|
60
|
-
:name="String(item)"
|
|
61
|
-
:key="item"
|
|
62
|
-
:value="String(item)"
|
|
63
|
-
v-model="modelValue"
|
|
64
|
-
:header="args.header"
|
|
65
|
-
:sub-header="args.subHeader"
|
|
66
|
-
title="title"
|
|
67
|
-
:disabled="args.disabled"
|
|
68
|
-
>
|
|
69
|
-
</ui-plain-radio>
|
|
70
|
-
</div>
|
|
71
|
-
`,
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
export const Default = Template.bind({});
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<label
|
|
3
|
-
class="ui-plain-radio relative mb-sm"
|
|
4
|
-
:for="name + value"
|
|
5
|
-
>
|
|
6
|
-
|
|
7
|
-
<input
|
|
8
|
-
:id="name + value"
|
|
9
|
-
v-model="radioModel"
|
|
10
|
-
:value="value"
|
|
11
|
-
name="ui-plain-radio"
|
|
12
|
-
type="radio"
|
|
13
|
-
:disabled="disabled"
|
|
14
|
-
class="peer absolute appearance-none"
|
|
15
|
-
>
|
|
16
|
-
|
|
17
|
-
<div
|
|
18
|
-
class="ui-plain-radio__content
|
|
19
|
-
box-border
|
|
20
|
-
grid
|
|
21
|
-
h-full
|
|
22
|
-
w-full
|
|
23
|
-
cursor-pointer
|
|
24
|
-
grid-flow-col
|
|
25
|
-
items-center
|
|
26
|
-
justify-start
|
|
27
|
-
gap-sm rounded-xl
|
|
28
|
-
border
|
|
29
|
-
border-secondary-alt-500
|
|
30
|
-
bg-white
|
|
31
|
-
p-sm
|
|
32
|
-
before:absolute
|
|
33
|
-
before:-z-10
|
|
34
|
-
|
|
35
|
-
before:box-border
|
|
36
|
-
before:rounded-[16px]
|
|
37
|
-
before:bg-primary-300
|
|
38
|
-
hover:border-secondary-alt-700
|
|
39
|
-
peer-checked:border-transparent
|
|
40
|
-
|
|
41
|
-
peer-checked:shadow-selected-shadow
|
|
42
|
-
peer-checked:hover:shadow-border-selected
|
|
43
|
-
peer-checked:active:shadow-border-primary
|
|
44
|
-
peer-checked:active:before:-bottom-xs
|
|
45
|
-
peer-checked:active:before:-left-xs
|
|
46
|
-
peer-checked:active:before:-right-xs
|
|
47
|
-
|
|
48
|
-
peer-checked:active:before:-top-xs
|
|
49
|
-
peer-focus:before:-bottom-xs
|
|
50
|
-
|
|
51
|
-
peer-focus:before:-left-xs
|
|
52
|
-
peer-focus:before:-right-xs
|
|
53
|
-
peer-focus:before:-top-xs
|
|
54
|
-
peer-active:before:-bottom-xxs
|
|
55
|
-
|
|
56
|
-
peer-active:before:-left-xxs
|
|
57
|
-
peer-active:before:-right-xxs
|
|
58
|
-
peer-active:before:-top-xxs"
|
|
59
|
-
:class="disabled
|
|
60
|
-
&& 'pointer-events-none border-secondary-alt-400 peer-checked:shadow-border-primary-disabled'"
|
|
61
|
-
>
|
|
62
|
-
<ui-radio
|
|
63
|
-
v-model="radioModel"
|
|
64
|
-
:value="value.toString()"
|
|
65
|
-
:name="name"
|
|
66
|
-
:disabled="disabled"
|
|
67
|
-
class="pointer-events-none"
|
|
68
|
-
/>
|
|
69
|
-
|
|
70
|
-
<span>
|
|
71
|
-
<slot name="header">
|
|
72
|
-
<ui-typography
|
|
73
|
-
:size="ETypographySizes.SM"
|
|
74
|
-
:kind="EColors.SECONDARY"
|
|
75
|
-
:weight="ETextWeight.SEMI_BOLD"
|
|
76
|
-
line-height
|
|
77
|
-
>
|
|
78
|
-
{{ header }}
|
|
79
|
-
</ui-typography>
|
|
80
|
-
</slot>
|
|
81
|
-
|
|
82
|
-
<slot name="subHeader">
|
|
83
|
-
<ui-typography
|
|
84
|
-
:size="ETypographySizes.XS"
|
|
85
|
-
:kind="EColors.SECONDARY_ALT"
|
|
86
|
-
>
|
|
87
|
-
{{ subHeader }}
|
|
88
|
-
</ui-typography>
|
|
89
|
-
</slot>
|
|
90
|
-
</span>
|
|
91
|
-
</div>
|
|
92
|
-
</label>
|
|
93
|
-
</template>
|
|
94
|
-
|
|
95
|
-
<script lang="ts" setup>
|
|
96
|
-
import { computed } from "vue";
|
|
97
|
-
import UiRadio from "../ui-radio";
|
|
98
|
-
import UiTypography, { ETypographySizes, EColors, ETextWeight } from "../ui-typography";
|
|
99
|
-
|
|
100
|
-
const props = defineProps<{
|
|
101
|
-
modelValue: string | number | boolean;
|
|
102
|
-
header?: string;
|
|
103
|
-
subHeader?: string;
|
|
104
|
-
name: string;
|
|
105
|
-
value: string | number | boolean;
|
|
106
|
-
disabled?: boolean;
|
|
107
|
-
}>();
|
|
108
|
-
|
|
109
|
-
const emit = defineEmits(["update:modelValue"]);
|
|
110
|
-
|
|
111
|
-
const radioModel = computed({
|
|
112
|
-
get() {
|
|
113
|
-
return props.modelValue;
|
|
114
|
-
},
|
|
115
|
-
set(value) {
|
|
116
|
-
emit ("update:modelValue", value);
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
</script>
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-progress.vue";
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { Meta } from "@storybook/vue3";
|
|
2
|
-
import UiProgress from ".";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: "Components/ui-progress",
|
|
6
|
-
component: UiProgress,
|
|
7
|
-
|
|
8
|
-
argTypes: {
|
|
9
|
-
// kind: {
|
|
10
|
-
// control: { type: "select" },
|
|
11
|
-
// options: Object.values(EAlertTypes),
|
|
12
|
-
// description: "The button kinds",
|
|
13
|
-
// },
|
|
14
|
-
min: {
|
|
15
|
-
control: {
|
|
16
|
-
type: "number"
|
|
17
|
-
},
|
|
18
|
-
description: "The minimum value",
|
|
19
|
-
},
|
|
20
|
-
max: {
|
|
21
|
-
control: {
|
|
22
|
-
type: "number"
|
|
23
|
-
},
|
|
24
|
-
description: "The maximum value",
|
|
25
|
-
},
|
|
26
|
-
current: {
|
|
27
|
-
control: {
|
|
28
|
-
type: "number"
|
|
29
|
-
},
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
} satisfies Meta<typeof UiProgress>;
|
|
33
|
-
|
|
34
|
-
export const Default = {
|
|
35
|
-
args: {
|
|
36
|
-
min: 0,
|
|
37
|
-
max: 10,
|
|
38
|
-
current: 3,
|
|
39
|
-
},
|
|
40
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="ui-progress">
|
|
3
|
-
<div
|
|
4
|
-
class="relative h-xs w-full overflow-hidden rounded-lg bg-primary-200"
|
|
5
|
-
>
|
|
6
|
-
<div
|
|
7
|
-
class="
|
|
8
|
-
ui-progress__bar-fill
|
|
9
|
-
absolute
|
|
10
|
-
left-0
|
|
11
|
-
top-0
|
|
12
|
-
z-10
|
|
13
|
-
h-full
|
|
14
|
-
rounded-lg
|
|
15
|
-
bg-primary-alt-700
|
|
16
|
-
transition-all
|
|
17
|
-
duration-300
|
|
18
|
-
"
|
|
19
|
-
:style="{
|
|
20
|
-
width: filler + '%'
|
|
21
|
-
}"
|
|
22
|
-
/>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
26
|
-
|
|
27
|
-
<script lang="ts" setup>
|
|
28
|
-
import { computed } from "vue";
|
|
29
|
-
|
|
30
|
-
const props = withDefaults(defineProps<{
|
|
31
|
-
min: number
|
|
32
|
-
max: number
|
|
33
|
-
current: number
|
|
34
|
-
}>(),{
|
|
35
|
-
min: 0,
|
|
36
|
-
max: 100,
|
|
37
|
-
current: 0
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
const filler = computed(() => {
|
|
41
|
-
return ((props.current - props.min) / (props.max - props.min)) * 100;
|
|
42
|
-
});
|
|
43
|
-
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-radio.vue";
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import UiRadio from "./ui-radio.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-radio",
|
|
8
|
-
component: UiRadio,
|
|
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
|
-
},
|
|
31
|
-
args: {
|
|
32
|
-
slot: "Some text",
|
|
33
|
-
justify: EJustify.START,
|
|
34
|
-
invertOrder: false,
|
|
35
|
-
disabled: false,
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
type TComponentProps = InstanceType<typeof UiRadio>["$props"];
|
|
40
|
-
|
|
41
|
-
const Template: Story<TComponentProps> = (args) => ({
|
|
42
|
-
// Components used in your story `template` are defined in the `components` object
|
|
43
|
-
components: {
|
|
44
|
-
UiRadio
|
|
45
|
-
},
|
|
46
|
-
// The story's `args` need to be mapped into the template through the `setup()` method
|
|
47
|
-
setup() {
|
|
48
|
-
const modelValue = ref("value4");
|
|
49
|
-
|
|
50
|
-
return {
|
|
51
|
-
args,
|
|
52
|
-
modelValue
|
|
53
|
-
};
|
|
54
|
-
},
|
|
55
|
-
// And then the `args` are bound to your component with `v-bind="args"`
|
|
56
|
-
template: `
|
|
57
|
-
<div :style="{display: 'grid', gridGap: '3px'}">
|
|
58
|
-
<ui-radio v-bind="args" name="radio" value="value1" v-model="modelValue">
|
|
59
|
-
{{args.slot}}
|
|
60
|
-
</ui-radio>
|
|
61
|
-
<ui-radio v-bind="args" name="radio" value="value2" v-model="modelValue">
|
|
62
|
-
{{args.slot}}
|
|
63
|
-
</ui-radio>
|
|
64
|
-
<ui-radio v-bind="args" name="radio" value="value3" v-model="modelValue">
|
|
65
|
-
{{args.slot}}
|
|
66
|
-
</ui-radio>
|
|
67
|
-
<ui-radio v-bind="args" name="radio" disabled value="value4" v-model="modelValue">
|
|
68
|
-
{{args.slot}}
|
|
69
|
-
</ui-radio>
|
|
70
|
-
</div>
|
|
71
|
-
`,
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
export const Default = Template.bind({});
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<label
|
|
3
|
-
class="ui-radio group grid cursor-pointer grid-flow-col"
|
|
4
|
-
:class="[
|
|
5
|
-
slots.default && 'items-center gap-xs',
|
|
6
|
-
(!justify || justify === EJustify.START) && 'justify-start',
|
|
7
|
-
justify === EJustify.END && 'justify-end',
|
|
8
|
-
justify === EJustify.AROUND && 'justify-around',
|
|
9
|
-
justify === EJustify.BETWEEN && 'justify-between',
|
|
10
|
-
justify === EJustify.EVENLY && 'justify-evenly',
|
|
11
|
-
justify === EJustify.CENTER && 'justify-center',
|
|
12
|
-
disabled && 'pointer-events-none',
|
|
13
|
-
]"
|
|
14
|
-
>
|
|
15
|
-
<input
|
|
16
|
-
:id="value"
|
|
17
|
-
v-model="radioModel"
|
|
18
|
-
type="radio"
|
|
19
|
-
:name="name.toString()"
|
|
20
|
-
:value="value"
|
|
21
|
-
:disabled="disabled"
|
|
22
|
-
class="peer absolute appearance-none"
|
|
23
|
-
>
|
|
24
|
-
<span
|
|
25
|
-
class="
|
|
26
|
-
ui-radio_custom
|
|
27
|
-
relative
|
|
28
|
-
block
|
|
29
|
-
h-md
|
|
30
|
-
w-md
|
|
31
|
-
rounded-full
|
|
32
|
-
border
|
|
33
|
-
border-secondary-alt
|
|
34
|
-
bg-white
|
|
35
|
-
group-hover:border-secondary-alt-700
|
|
36
|
-
group-focus:border-secondary-alt-700
|
|
37
|
-
peer-checked:border-2
|
|
38
|
-
peer-checked:border-primary
|
|
39
|
-
peer-checked:hover:border-primary-600
|
|
40
|
-
peer-focus:shadow-border-primary
|
|
41
|
-
peer-disabled:border-secondary-alt-400
|
|
42
|
-
peer-disabled:bg-secondary-alt-200"
|
|
43
|
-
:class="invertOrder && 'order-last'"
|
|
44
|
-
>
|
|
45
|
-
<span
|
|
46
|
-
class="
|
|
47
|
-
ui-radio__dot
|
|
48
|
-
absolute
|
|
49
|
-
left-2/4
|
|
50
|
-
top-2/4
|
|
51
|
-
block
|
|
52
|
-
h-xs
|
|
53
|
-
w-xs
|
|
54
|
-
rounded-full
|
|
55
|
-
bg-primary"
|
|
56
|
-
/>
|
|
57
|
-
</span>
|
|
58
|
-
<slot />
|
|
59
|
-
</label>
|
|
60
|
-
</template>
|
|
61
|
-
|
|
62
|
-
<script lang="ts" setup>
|
|
63
|
-
import { computed, useSlots } from "vue";
|
|
64
|
-
import { EJustify } from "../../_types/align";
|
|
65
|
-
const slots = useSlots();
|
|
66
|
-
const props = defineProps<{
|
|
67
|
-
modelValue: string | number | boolean;
|
|
68
|
-
name: string | number | boolean;
|
|
69
|
-
value: string;
|
|
70
|
-
justify?: EJustify;
|
|
71
|
-
invertOrder?: boolean;
|
|
72
|
-
disabled?: boolean;
|
|
73
|
-
}>();
|
|
74
|
-
|
|
75
|
-
const emit = defineEmits(["update:modelValue"]);
|
|
76
|
-
|
|
77
|
-
const radioModel = computed({
|
|
78
|
-
get() {
|
|
79
|
-
return props.modelValue;
|
|
80
|
-
},
|
|
81
|
-
set(value) {
|
|
82
|
-
emit("update:modelValue", value);
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
</script>
|
|
86
|
-
|
|
87
|
-
<style>
|
|
88
|
-
.ui-radio__dot {
|
|
89
|
-
transform: translate3d(-50%, -50%, 0) scale(0);
|
|
90
|
-
transition: transform 0.2s ease-in-out;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
input:checked + .ui-radio_custom .ui-radio__dot {
|
|
94
|
-
transform: translate3d(-50%, -50%, 0) scale(1);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
input:checked + .ui-radio_custom:hover .ui-radio__dot {
|
|
98
|
-
background-color: var(--color-primary-600);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
input:checked:disabled + .ui-radio_custom {
|
|
102
|
-
border: 2px solid var(--color-primary-300);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
input:checked:disabled + .ui-radio_custom .ui-radio__dot {
|
|
106
|
-
background-color: var(--color-primary-300);
|
|
107
|
-
}
|
|
108
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./ui-radio-compact.vue";
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import UiRadioCompact from "../ui-radio-compact";
|
|
2
|
-
import UiTypography, { ETypographySizes, ETextAlign } from "../ui-typography";
|
|
3
|
-
import { ref } from "vue";
|
|
4
|
-
import type { Meta } from "@storybook/vue3";
|
|
5
|
-
|
|
6
|
-
const meta: Meta<typeof UiRadioCompact> = {
|
|
7
|
-
title: "Components/ui-radio-compact",
|
|
8
|
-
component: UiRadioCompact,
|
|
9
|
-
argTypes: {}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export default meta;
|
|
13
|
-
|
|
14
|
-
export const Default = {
|
|
15
|
-
args: {
|
|
16
|
-
default: "1"
|
|
17
|
-
},
|
|
18
|
-
render: (args) => ({
|
|
19
|
-
components: {
|
|
20
|
-
UiRadioCompact,
|
|
21
|
-
UiTypography
|
|
22
|
-
},
|
|
23
|
-
setup() {
|
|
24
|
-
const modelValue = ref("1");
|
|
25
|
-
return {
|
|
26
|
-
args,
|
|
27
|
-
ETypographySizes,
|
|
28
|
-
ETextAlign,
|
|
29
|
-
modelValue
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
template: /*html*/`
|
|
33
|
-
<div class="flex flex-row gap-sm align-middle" :style="{}">
|
|
34
|
-
<ui-radio-compact v-for="item in 8"
|
|
35
|
-
:key="item"
|
|
36
|
-
:value="String(item)"
|
|
37
|
-
v-model="modelValue"
|
|
38
|
-
name="radio" title="title"
|
|
39
|
-
|
|
40
|
-
>
|
|
41
|
-
{{item}}
|
|
42
|
-
</ui-radio-compact>
|
|
43
|
-
|
|
44
|
-
</div>
|
|
45
|
-
`,
|
|
46
|
-
args: {
|
|
47
|
-
default: "1"
|
|
48
|
-
},
|
|
49
|
-
}),
|
|
50
|
-
|
|
51
|
-
};
|