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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { EBadgeOrigin } from "./_types";
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
origin?: EBadgeOrigin | undefined;
|
|
5
|
+
}>, {
|
|
6
|
+
origin: EBadgeOrigin;
|
|
7
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
origin?: EBadgeOrigin | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
origin: EBadgeOrigin;
|
|
11
|
+
}>>>, {
|
|
12
|
+
origin: EBadgeOrigin;
|
|
13
|
+
}, {}>, {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_WithDefaults<P, D> = {
|
|
27
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
28
|
+
default: D[K];
|
|
29
|
+
}> : P[K];
|
|
30
|
+
};
|
|
31
|
+
type __VLS_Prettify<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as r, openBlock as n, createElementBlock as i, normalizeClass as a, unref as t, renderSlot as s } from "vue";
|
|
2
|
+
import { EBadgeOrigin as o } from "./_types.js";
|
|
3
|
+
const p = /* @__PURE__ */ r({
|
|
4
|
+
__name: "ui-notification-badge",
|
|
5
|
+
props: {
|
|
6
|
+
origin: { default: o.DEFAULT }
|
|
7
|
+
},
|
|
8
|
+
setup(l) {
|
|
9
|
+
return (e, d) => (n(), i("div", {
|
|
10
|
+
class: a(["notification-badge absolute h-sm min-w-sm rounded-full border border-white bg-error text-center text-xxs font-bold leading-none text-white", [
|
|
11
|
+
e.origin === t(o).DEFAULT && "right-0 top-0",
|
|
12
|
+
e.origin === t(o).OFFSET_TOP_RIGHT && "-right-xxs -top-xxs"
|
|
13
|
+
]])
|
|
14
|
+
}, [
|
|
15
|
+
s(e.$slots, "default")
|
|
16
|
+
], 2));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
p as default
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=ui-notification-badge.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-notification-badge.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".notification-badge{padding:2px}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
import o from "./ui-notification-badge.vue.js";
|
|
3
|
+
export {
|
|
4
|
+
o as default
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=ui-notification-badge.vue3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-notification-badge.vue3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_types.js","sources":["../../../src/components/ui-order-card/_types.ts"],"sourcesContent":["export enum EOrderCardTypes {\n\tDEFAULT = \"DEFAULT\",\n\tWARNING = \"WARNING\"\n}\n"],"names":["EOrderCardTypes"],"mappings":"AAAY,IAAAA,sBAAAA,OACXA,EAAA,UAAU,WACVA,EAAA,UAAU,WAFCA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { TIconName } from '../ui-icon';
|
|
2
|
+
import { EOrderCardTypes } from './_types';
|
|
3
|
+
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
4
|
+
import UiOrderCard from "./ui-order-card.vue";
|
|
5
|
+
export { UiOrderCard };
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
|
|
8
|
+
*/
|
|
9
|
+
declare const deprecatedDefault: {
|
|
10
|
+
new (...args: any[]): {
|
|
11
|
+
$: ComponentInternalInstance;
|
|
12
|
+
$data: {};
|
|
13
|
+
$props: Partial<{
|
|
14
|
+
kind: EOrderCardTypes;
|
|
15
|
+
}> & Omit<{
|
|
16
|
+
readonly kind: EOrderCardTypes;
|
|
17
|
+
readonly iconName: TIconName;
|
|
18
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
|
|
19
|
+
kind: {
|
|
20
|
+
type: PropType<EOrderCardTypes>;
|
|
21
|
+
default: EOrderCardTypes;
|
|
22
|
+
};
|
|
23
|
+
iconName: {
|
|
24
|
+
type: PropType<TIconName>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
}>>, "kind">;
|
|
28
|
+
$attrs: {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
$refs: {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
$slots: Readonly<{
|
|
35
|
+
[name: string]: Slot<any> | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
38
|
+
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
39
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
40
|
+
$el: any;
|
|
41
|
+
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
42
|
+
kind: {
|
|
43
|
+
type: PropType<EOrderCardTypes>;
|
|
44
|
+
default: EOrderCardTypes;
|
|
45
|
+
};
|
|
46
|
+
iconName: {
|
|
47
|
+
type: PropType<TIconName>;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
51
|
+
kind: EOrderCardTypes;
|
|
52
|
+
}, {}, string, {}> & {
|
|
53
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
54
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
55
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
57
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
58
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
59
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
60
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
61
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
+
renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
66
|
+
renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
67
|
+
errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
68
|
+
};
|
|
69
|
+
$forceUpdate: () => void;
|
|
70
|
+
$nextTick: typeof nextTick;
|
|
71
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
72
|
+
} & Readonly<ExtractPropTypes<{
|
|
73
|
+
kind: {
|
|
74
|
+
type: PropType<EOrderCardTypes>;
|
|
75
|
+
default: EOrderCardTypes;
|
|
76
|
+
};
|
|
77
|
+
iconName: {
|
|
78
|
+
type: PropType<TIconName>;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
}>> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
82
|
+
__isFragment?: undefined;
|
|
83
|
+
__isTeleport?: undefined;
|
|
84
|
+
__isSuspense?: undefined;
|
|
85
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
86
|
+
kind: {
|
|
87
|
+
type: PropType<EOrderCardTypes>;
|
|
88
|
+
default: EOrderCardTypes;
|
|
89
|
+
};
|
|
90
|
+
iconName: {
|
|
91
|
+
type: PropType<TIconName>;
|
|
92
|
+
required: true;
|
|
93
|
+
};
|
|
94
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
95
|
+
kind: EOrderCardTypes;
|
|
96
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
97
|
+
$slots: {
|
|
98
|
+
title?(_: {}): any;
|
|
99
|
+
textBody?(_: {}): any;
|
|
100
|
+
footer?(_: {}): any;
|
|
101
|
+
};
|
|
102
|
+
});
|
|
103
|
+
export default deprecatedDefault;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/ui-order-card/index.ts"],"sourcesContent":["import UiOrderCard from \"./ui-order-card.vue\";\n\nexport { UiOrderCard };\n/**\n * @deprecated The default should not be used - use named import as - import {[name]} from \"ui/[name]\"\n */\nconst deprecatedDefault = UiOrderCard;\nexport default deprecatedDefault;\n"],"names":["deprecatedDefault","UiOrderCard"],"mappings":";AAMA,MAAMA,IAAoBC;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import type { TIconName } from "../ui-icon";
|
|
3
|
+
import { EOrderCardTypes } from "./_types";
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
iconName: TIconName;
|
|
6
|
+
kind?: EOrderCardTypes | undefined;
|
|
7
|
+
}>, {
|
|
8
|
+
kind: EOrderCardTypes;
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
iconName: TIconName;
|
|
11
|
+
kind?: EOrderCardTypes | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
kind: EOrderCardTypes;
|
|
14
|
+
}>>>, {
|
|
15
|
+
kind: EOrderCardTypes;
|
|
16
|
+
}, {}>, {
|
|
17
|
+
title?(_: {}): any;
|
|
18
|
+
textBody?(_: {}): any;
|
|
19
|
+
footer?(_: {}): any;
|
|
20
|
+
}>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
type __VLS_WithDefaults<P, D> = {
|
|
32
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
33
|
+
default: D[K];
|
|
34
|
+
}> : P[K];
|
|
35
|
+
};
|
|
36
|
+
type __VLS_Prettify<T> = {
|
|
37
|
+
[K in keyof T]: T[K];
|
|
38
|
+
} & {};
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent as c, computed as w, openBlock as s, createElementBlock as N, normalizeClass as i, unref as e, createVNode as A, createBlock as n, withCtx as o, renderSlot as a, createCommentVNode as d } from "vue";
|
|
2
|
+
import { ESize as h } from "../../_types/sizing.js";
|
|
3
|
+
import { EColors as u } from "../../_types/colors.js";
|
|
4
|
+
import l from "../ui-typography/index.js";
|
|
5
|
+
import y from "../ui-icon/index.js";
|
|
6
|
+
import { EOrderCardTypes as r } from "./_types.js";
|
|
7
|
+
import { ETypographySizes as m, ETextWeight as p } from "../ui-typography/_typings.js";
|
|
8
|
+
const I = /* @__PURE__ */ c({
|
|
9
|
+
__name: "ui-order-card",
|
|
10
|
+
props: {
|
|
11
|
+
iconName: {},
|
|
12
|
+
kind: { default: r.DEFAULT }
|
|
13
|
+
},
|
|
14
|
+
setup(f) {
|
|
15
|
+
const g = f, k = w(() => {
|
|
16
|
+
switch (g.kind) {
|
|
17
|
+
case r.WARNING:
|
|
18
|
+
return u.WARNING_700;
|
|
19
|
+
default:
|
|
20
|
+
return u.PRIMARY_700;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
return (t, E) => (s(), N("div", {
|
|
24
|
+
class: i(["ui-order-card relative mt-sm rounded-md pt-md text-center", [
|
|
25
|
+
t.kind === e(r).DEFAULT && "bg-primary-300 text-white",
|
|
26
|
+
t.kind === e(r).WARNING && "bg-warning-300 text-warning-700"
|
|
27
|
+
]])
|
|
28
|
+
}, [
|
|
29
|
+
A(e(y), {
|
|
30
|
+
"icon-name": t.iconName,
|
|
31
|
+
size: e(h).LG,
|
|
32
|
+
class: i(["absolute left-1/2 top-0 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-300", [
|
|
33
|
+
t.kind === e(r).DEFAULT && "text-white",
|
|
34
|
+
t.kind === e(r).WARNING && "bg-warning-300 text-white"
|
|
35
|
+
]])
|
|
36
|
+
}, null, 8, ["icon-name", "size", "class"]),
|
|
37
|
+
t.$slots.title ? (s(), n(e(l), {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: i(["pt-sm", [
|
|
40
|
+
t.kind === e(r).DEFAULT && "text-primary-700",
|
|
41
|
+
t.kind === e(r).WARNING && "text-warning-700"
|
|
42
|
+
]]),
|
|
43
|
+
kind: k.value,
|
|
44
|
+
size: e(m).XL,
|
|
45
|
+
weight: e(p).BOLD
|
|
46
|
+
}, {
|
|
47
|
+
default: o(() => [
|
|
48
|
+
a(t.$slots, "title")
|
|
49
|
+
]),
|
|
50
|
+
_: 3
|
|
51
|
+
}, 8, ["class", "kind", "size", "weight"])) : d("", !0),
|
|
52
|
+
t.$slots.textBody ? (s(), n(e(l), {
|
|
53
|
+
key: 1,
|
|
54
|
+
class: i(["mb-sm p-sm", [
|
|
55
|
+
t.kind === e(r).DEFAULT && "text-primary-700",
|
|
56
|
+
t.kind === e(r).WARNING && "text-warning-700"
|
|
57
|
+
]]),
|
|
58
|
+
size: e(m).MD,
|
|
59
|
+
weight: e(p).REGULAR
|
|
60
|
+
}, {
|
|
61
|
+
default: o(() => [
|
|
62
|
+
a(t.$slots, "textBody")
|
|
63
|
+
]),
|
|
64
|
+
_: 3
|
|
65
|
+
}, 8, ["class", "size", "weight"])) : d("", !0),
|
|
66
|
+
t.$slots.footer ? (s(), n(e(l), {
|
|
67
|
+
key: 2,
|
|
68
|
+
class: i(["rounded-b-lg py-sm text-white", [
|
|
69
|
+
t.kind === e(r).DEFAULT && "bg-primary-700",
|
|
70
|
+
t.kind === e(r).WARNING && "bg-warning-700"
|
|
71
|
+
]]),
|
|
72
|
+
size: e(m).XXS,
|
|
73
|
+
weight: e(p).REGULAR
|
|
74
|
+
}, {
|
|
75
|
+
default: o(() => [
|
|
76
|
+
a(t.$slots, "footer")
|
|
77
|
+
]),
|
|
78
|
+
_: 3
|
|
79
|
+
}, 8, ["class", "size", "weight"])) : d("", !0)
|
|
80
|
+
], 2));
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
export {
|
|
84
|
+
I as default
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=ui-order-card.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-order-card.vue.js","sources":["../../../src/components/ui-order-card/ui-order-card.vue"],"sourcesContent":["<template>\n\t<div\n\t\tclass=\"ui-order-card relative mt-sm rounded-md pt-md text-center\"\n\t\t:class=\"[\n\t\t\tkind === EOrderCardTypes.DEFAULT && 'bg-primary-300 text-white',\n\t\t\tkind === EOrderCardTypes.WARNING && 'bg-warning-300 text-warning-700'\n\t\t]\"\n\t>\n\t\t<ui-icon\n\t\t\t:icon-name=\"iconName\"\n\t\t\t:size=\"ESize.LG\"\n\t\t\tclass=\"absolute left-1/2 top-0 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-300\"\n\t\t\t:class=\"[\n\t\t\t\tkind === EOrderCardTypes.DEFAULT && 'text-white',\n\t\t\t\tkind === EOrderCardTypes.WARNING && 'bg-warning-300 text-white'\n\t\t\t]\"\n\t\t/>\n\t\t<ui-typography\n\t\t\tv-if=\"$slots.title\"\n\t\t\tclass=\"pt-sm\"\n\t\t\t:class=\"[\n\t\t\t\tkind === EOrderCardTypes.DEFAULT && 'text-primary-700',\n\t\t\t\tkind === EOrderCardTypes.WARNING && 'text-warning-700'\n\t\t\t]\"\n\t\t\t:kind=\"pickKind\"\n\t\t\t:size=\"ETypographySizes.XL\"\n\t\t\t:weight=\"ETextWeight.BOLD\"\n\t\t>\n\t\t\t<slot name=\"title\" />\n\t\t</ui-typography>\n\n\t\t<ui-typography\n\t\t\tv-if=\"$slots.textBody\"\n\t\t\tclass=\"mb-sm p-sm\"\n\t\t\t:class=\"[\n\t\t\t\tkind === EOrderCardTypes.DEFAULT && 'text-primary-700',\n\t\t\t\tkind === EOrderCardTypes.WARNING && 'text-warning-700'\n\t\t\t]\"\n\t\t\t:size=\"ETypographySizes.MD\"\n\t\t\t:weight=\"ETextWeight.REGULAR\"\n\t\t>\n\t\t\t<slot name=\"textBody\" />\n\t\t</ui-typography>\n\n\t\t<ui-typography\n\t\t\tv-if=\"$slots.footer\"\n\t\t\tclass=\"rounded-b-lg py-sm text-white\"\n\t\t\t:class=\"[\n\t\t\t\tkind === EOrderCardTypes.DEFAULT && 'bg-primary-700',\n\t\t\t\tkind === EOrderCardTypes.WARNING && 'bg-warning-700'\n\t\t\t]\"\n\t\t\t:size=\"ETypographySizes.XXS\"\n\t\t\t:weight=\"ETextWeight.REGULAR\"\n\t\t>\n\t\t\t<slot name=\"footer\" />\n\t\t</ui-typography>\n\t</div>\n</template>\n\n<script lang=\"ts\" setup>\n\timport { computed } from \"vue\";\n\timport { ESize } from \"../../_types/sizing\";\n\timport { EColors } from \"../../_types/colors\";\n\timport UiTypography, { ETextWeight, ETypographySizes } from \"../ui-typography\";\n\timport type { TIconName } from \"../ui-icon\";\n\timport UiIcon from \"../ui-icon\";\n\timport { EOrderCardTypes } from \"./_types\";\n\n\tconst props = withDefaults(defineProps<{\n\t\ticonName: TIconName;\n\t\tkind?: EOrderCardTypes;\n\t}>(), {\n\t\tkind: EOrderCardTypes.DEFAULT\n\t});\n\n\tconst pickKind = computed(()=>{\n\t\tswitch (props.kind) {\n\t\t\tcase EOrderCardTypes.WARNING: return EColors.WARNING_700;\n\t\t\tdefault: return EColors.PRIMARY_700;\n\t\t}\n\t});\n\n</script>\n"],"names":["props","__props","pickKind","computed","EOrderCardTypes","EColors"],"mappings":";;;;;;;;;;;;;;AAoEC,UAAMA,IAAQC,GAORC,IAAWC,EAAS,MAAI;AAC7B,cAAQH,EAAM,MAAM;AAAA,QACnB,KAAKI,EAAgB;AAAS,iBAAOC,EAAQ;AAAA,QAC7C;AAAS,iBAAOA,EAAQ;AAAA,MACzB;AAAA,IAAA,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-order-card.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
2
|
+
import UiPlainRadio from "./ui-plain-radio.vue";
|
|
3
|
+
export { UiPlainRadio };
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
|
|
6
|
+
*/
|
|
7
|
+
declare const deprecatedDefault: {
|
|
8
|
+
new (...args: any[]): {
|
|
9
|
+
$: ComponentInternalInstance;
|
|
10
|
+
$data: {};
|
|
11
|
+
$props: Partial<{}> & Omit<{
|
|
12
|
+
readonly modelValue: string | number | boolean;
|
|
13
|
+
readonly value: string | number | boolean;
|
|
14
|
+
readonly name: string;
|
|
15
|
+
readonly header?: string | undefined;
|
|
16
|
+
readonly disabled?: boolean | undefined;
|
|
17
|
+
readonly subHeader?: string | undefined;
|
|
18
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
|
|
20
|
+
modelValue: {
|
|
21
|
+
type: PropType<string | number | boolean>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
header: {
|
|
25
|
+
type: PropType<string>;
|
|
26
|
+
};
|
|
27
|
+
subHeader: {
|
|
28
|
+
type: PropType<string>;
|
|
29
|
+
};
|
|
30
|
+
name: {
|
|
31
|
+
type: PropType<string>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
value: {
|
|
35
|
+
type: PropType<string | number | boolean>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
disabled: {
|
|
39
|
+
type: PropType<boolean>;
|
|
40
|
+
};
|
|
41
|
+
}>> & {
|
|
42
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}, never>;
|
|
44
|
+
$attrs: {
|
|
45
|
+
[x: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
$refs: {
|
|
48
|
+
[x: string]: unknown;
|
|
49
|
+
};
|
|
50
|
+
$slots: Readonly<{
|
|
51
|
+
[name: string]: Slot<any> | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
54
|
+
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
55
|
+
$emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
56
|
+
$el: any;
|
|
57
|
+
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
58
|
+
modelValue: {
|
|
59
|
+
type: PropType<string | number | boolean>;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
header: {
|
|
63
|
+
type: PropType<string>;
|
|
64
|
+
};
|
|
65
|
+
subHeader: {
|
|
66
|
+
type: PropType<string>;
|
|
67
|
+
};
|
|
68
|
+
name: {
|
|
69
|
+
type: PropType<string>;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
value: {
|
|
73
|
+
type: PropType<string | number | boolean>;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
disabled: {
|
|
77
|
+
type: PropType<boolean>;
|
|
78
|
+
};
|
|
79
|
+
}>> & {
|
|
80
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
82
|
+
"update:modelValue": (...args: any[]) => void;
|
|
83
|
+
}, string, {}, {}, string, {}> & {
|
|
84
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
85
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
86
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
87
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
88
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
89
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
90
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
91
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
92
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
93
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
94
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
95
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
96
|
+
renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
97
|
+
renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
98
|
+
errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
99
|
+
};
|
|
100
|
+
$forceUpdate: () => void;
|
|
101
|
+
$nextTick: typeof nextTick;
|
|
102
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
103
|
+
} & Readonly<ExtractPropTypes<{
|
|
104
|
+
modelValue: {
|
|
105
|
+
type: PropType<string | number | boolean>;
|
|
106
|
+
required: true;
|
|
107
|
+
};
|
|
108
|
+
header: {
|
|
109
|
+
type: PropType<string>;
|
|
110
|
+
};
|
|
111
|
+
subHeader: {
|
|
112
|
+
type: PropType<string>;
|
|
113
|
+
};
|
|
114
|
+
name: {
|
|
115
|
+
type: PropType<string>;
|
|
116
|
+
required: true;
|
|
117
|
+
};
|
|
118
|
+
value: {
|
|
119
|
+
type: PropType<string | number | boolean>;
|
|
120
|
+
required: true;
|
|
121
|
+
};
|
|
122
|
+
disabled: {
|
|
123
|
+
type: PropType<boolean>;
|
|
124
|
+
};
|
|
125
|
+
}>> & {
|
|
126
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
127
|
+
} & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
128
|
+
__isFragment?: undefined;
|
|
129
|
+
__isTeleport?: undefined;
|
|
130
|
+
__isSuspense?: undefined;
|
|
131
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
132
|
+
modelValue: {
|
|
133
|
+
type: PropType<string | number | boolean>;
|
|
134
|
+
required: true;
|
|
135
|
+
};
|
|
136
|
+
header: {
|
|
137
|
+
type: PropType<string>;
|
|
138
|
+
};
|
|
139
|
+
subHeader: {
|
|
140
|
+
type: PropType<string>;
|
|
141
|
+
};
|
|
142
|
+
name: {
|
|
143
|
+
type: PropType<string>;
|
|
144
|
+
required: true;
|
|
145
|
+
};
|
|
146
|
+
value: {
|
|
147
|
+
type: PropType<string | number | boolean>;
|
|
148
|
+
required: true;
|
|
149
|
+
};
|
|
150
|
+
disabled: {
|
|
151
|
+
type: PropType<boolean>;
|
|
152
|
+
};
|
|
153
|
+
}>> & {
|
|
154
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
155
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
156
|
+
"update:modelValue": (...args: any[]) => void;
|
|
157
|
+
}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
158
|
+
$slots: {
|
|
159
|
+
header?(_: {}): any;
|
|
160
|
+
subHeader?(_: {}): any;
|
|
161
|
+
};
|
|
162
|
+
});
|
|
163
|
+
export default deprecatedDefault;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/ui-plain-radio/index.ts"],"sourcesContent":["import UiPlainRadio from \"./ui-plain-radio.vue\";\n\nexport { UiPlainRadio };\n/**\n * @deprecated The default should not be used - use named import as - import {[name]} from \"ui/[name]\"\n */\nconst deprecatedDefault = UiPlainRadio;\nexport default deprecatedDefault;\n"],"names":["deprecatedDefault","UiPlainRadio"],"mappings":";AAMA,MAAMA,IAAoBC;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
modelValue: string | number | boolean;
|
|
4
|
+
header?: string | undefined;
|
|
5
|
+
subHeader?: string | undefined;
|
|
6
|
+
name: string;
|
|
7
|
+
value: string | number | boolean;
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (...args: any[]) => void;
|
|
11
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
+
modelValue: string | number | boolean;
|
|
13
|
+
header?: string | undefined;
|
|
14
|
+
subHeader?: string | undefined;
|
|
15
|
+
name: string;
|
|
16
|
+
value: string | number | boolean;
|
|
17
|
+
disabled?: boolean | undefined;
|
|
18
|
+
}>>> & {
|
|
19
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}, {}, {}>, {
|
|
21
|
+
header?(_: {}): any;
|
|
22
|
+
subHeader?(_: {}): any;
|
|
23
|
+
}>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { defineComponent as g, computed as k, openBlock as y, createElementBlock as w, withDirectives as x, createElementVNode as t, vModelRadio as S, normalizeClass as V, createVNode as l, unref as r, renderSlot as i, withCtx as s, createTextVNode as n, toDisplayString as p } from "vue";
|
|
2
|
+
import E from "../ui-radio/index.js";
|
|
3
|
+
import u from "../ui-typography/index.js";
|
|
4
|
+
import { ETypographySizes as b, ETextWeight as z } from "../ui-typography/_typings.js";
|
|
5
|
+
import { EColors as m } from "../../_types/colors.js";
|
|
6
|
+
const D = ["for"], N = ["id", "value", "disabled"], H = /* @__PURE__ */ g({
|
|
7
|
+
__name: "ui-plain-radio",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { type: [String, Number, Boolean] },
|
|
10
|
+
header: {},
|
|
11
|
+
subHeader: {},
|
|
12
|
+
name: {},
|
|
13
|
+
value: { type: [String, Number, Boolean] },
|
|
14
|
+
disabled: { type: Boolean }
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:modelValue"],
|
|
17
|
+
setup(c, { emit: f }) {
|
|
18
|
+
const h = c, v = f, o = k({
|
|
19
|
+
get() {
|
|
20
|
+
return h.modelValue;
|
|
21
|
+
},
|
|
22
|
+
set(e) {
|
|
23
|
+
v("update:modelValue", e);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
return (e, a) => (y(), w("label", {
|
|
27
|
+
class: "ui-plain-radio relative mb-sm",
|
|
28
|
+
for: e.name + e.value
|
|
29
|
+
}, [
|
|
30
|
+
x(t("input", {
|
|
31
|
+
id: e.name + e.value,
|
|
32
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => o.value = d),
|
|
33
|
+
value: e.value,
|
|
34
|
+
name: "ui-plain-radio",
|
|
35
|
+
type: "radio",
|
|
36
|
+
disabled: e.disabled,
|
|
37
|
+
class: "peer absolute appearance-none"
|
|
38
|
+
}, null, 8, N), [
|
|
39
|
+
[S, o.value]
|
|
40
|
+
]),
|
|
41
|
+
t("div", {
|
|
42
|
+
class: V(["ui-plain-radio__content box-border grid h-full w-full cursor-pointer grid-flow-col items-center justify-start gap-sm rounded-xl border border-secondary-alt-500 bg-white p-sm before:absolute before:-z-10 before:box-border before:rounded-[16px] before:bg-primary-300 hover:border-secondary-alt-700 peer-checked:border-transparent peer-checked:shadow-selected-shadow peer-checked:hover:shadow-border-selected peer-checked:active:shadow-border-primary peer-checked:active:before:-bottom-xs peer-checked:active:before:-left-xs peer-checked:active:before:-right-xs peer-checked:active:before:-top-xs peer-focus:before:-bottom-xs peer-focus:before:-left-xs peer-focus:before:-right-xs peer-focus:before:-top-xs peer-active:before:-bottom-xxs peer-active:before:-left-xxs peer-active:before:-right-xxs peer-active:before:-top-xxs", e.disabled && "pointer-events-none border-secondary-alt-400 peer-checked:shadow-border-primary-disabled"])
|
|
43
|
+
}, [
|
|
44
|
+
l(r(E), {
|
|
45
|
+
modelValue: o.value,
|
|
46
|
+
"onUpdate:modelValue": a[1] || (a[1] = (d) => o.value = d),
|
|
47
|
+
value: e.value.toString(),
|
|
48
|
+
name: e.name,
|
|
49
|
+
disabled: e.disabled,
|
|
50
|
+
class: "pointer-events-none"
|
|
51
|
+
}, null, 8, ["modelValue", "value", "name", "disabled"]),
|
|
52
|
+
t("span", null, [
|
|
53
|
+
i(e.$slots, "header", {}, () => [
|
|
54
|
+
l(r(u), {
|
|
55
|
+
size: r(b).SM,
|
|
56
|
+
kind: r(m).SECONDARY,
|
|
57
|
+
weight: r(z).SEMI_BOLD,
|
|
58
|
+
"line-height": ""
|
|
59
|
+
}, {
|
|
60
|
+
default: s(() => [
|
|
61
|
+
n(p(e.header), 1)
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
}, 8, ["size", "kind", "weight"])
|
|
65
|
+
]),
|
|
66
|
+
i(e.$slots, "subHeader", {}, () => [
|
|
67
|
+
l(r(u), {
|
|
68
|
+
size: r(b).XS,
|
|
69
|
+
kind: r(m).SECONDARY_ALT
|
|
70
|
+
}, {
|
|
71
|
+
default: s(() => [
|
|
72
|
+
n(p(e.subHeader), 1)
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}, 8, ["size", "kind"])
|
|
76
|
+
])
|
|
77
|
+
])
|
|
78
|
+
], 2)
|
|
79
|
+
], 8, D));
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
export {
|
|
83
|
+
H as default
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=ui-plain-radio.vue.js.map
|