89 lines
1.3 KiB
JavaScript
89 lines
1.3 KiB
JavaScript
export const swalPrefix = 'swal2-'
|
|
|
|
export const prefix = (items) => {
|
|
const result = {}
|
|
for (const i in items) {
|
|
result[items[i]] = swalPrefix + items[i]
|
|
}
|
|
return result
|
|
}
|
|
|
|
export const swalClasses = prefix([
|
|
'container',
|
|
'shown',
|
|
'height-auto',
|
|
'iosfix',
|
|
'popup',
|
|
'modal',
|
|
'no-backdrop',
|
|
'no-transition',
|
|
'toast',
|
|
'toast-shown',
|
|
'toast-column',
|
|
'show',
|
|
'hide',
|
|
'close',
|
|
'title',
|
|
'header',
|
|
'content',
|
|
'html-container',
|
|
'actions',
|
|
'confirm',
|
|
'cancel',
|
|
'footer',
|
|
'icon',
|
|
'icon-content',
|
|
'image',
|
|
'input',
|
|
'file',
|
|
'range',
|
|
'select',
|
|
'radio',
|
|
'checkbox',
|
|
'label',
|
|
'textarea',
|
|
'inputerror',
|
|
'validation-message',
|
|
'progress-steps',
|
|
'active-progress-step',
|
|
'progress-step',
|
|
'progress-step-line',
|
|
'loading',
|
|
'styled',
|
|
'top',
|
|
'top-start',
|
|
'top-end',
|
|
'top-left',
|
|
'top-right',
|
|
'center',
|
|
'center-start',
|
|
'center-end',
|
|
'center-left',
|
|
'center-right',
|
|
'bottom',
|
|
'bottom-start',
|
|
'bottom-end',
|
|
'bottom-left',
|
|
'bottom-right',
|
|
'grow-row',
|
|
'grow-column',
|
|
'grow-fullscreen',
|
|
'rtl',
|
|
'timer-progress-bar',
|
|
'timer-progress-bar-container',
|
|
'scrollbar-measure',
|
|
'icon-success',
|
|
'icon-warning',
|
|
'icon-info',
|
|
'icon-question',
|
|
'icon-error',
|
|
])
|
|
|
|
export const iconTypes = prefix([
|
|
'success',
|
|
'warning',
|
|
'info',
|
|
'question',
|
|
'error'
|
|
])
|