@paperless/core 2.0.1-beta.20 → 2.0.1-beta.21
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/CHANGELOG.md +20 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/build/index.esm.js.map +1 -1
- package/dist/build/{p-d26ee54b.entry.js → p-036bb6f4.entry.js} +2 -2
- package/dist/build/p-0413fcd0.entry.js +2 -0
- package/dist/build/p-0413fcd0.entry.js.map +1 -0
- package/dist/build/p-0bbd4d1c.entry.js +2 -0
- package/dist/build/p-0bbd4d1c.entry.js.map +1 -0
- package/dist/build/{p-8b28c5be.entry.js → p-0c040d86.entry.js} +2 -2
- package/dist/build/{p-46cf79b4.entry.js → p-0e1935d5.entry.js} +2 -2
- package/dist/build/p-14e63599.entry.js +2 -0
- package/dist/build/{p-716a92ae.entry.js → p-1b5ec2b1.entry.js} +2 -2
- package/dist/{paperless/p-5f54e4b8.entry.js → build/p-1ed4a75e.entry.js} +3 -3
- package/dist/build/{p-5f54e4b8.entry.js.map → p-1ed4a75e.entry.js.map} +1 -1
- package/dist/{paperless/p-9f191ebc.entry.js → build/p-214a2978.entry.js} +2 -2
- package/dist/{paperless/p-e9ddf7b0.entry.js → build/p-2bd123f4.entry.js} +2 -2
- package/dist/{paperless/p-8b38f27d.entry.js → build/p-3a428a06.entry.js} +2 -2
- package/dist/build/{p-276d2804.entry.js → p-3b5242e9.entry.js} +2 -2
- package/dist/build/{p-8b3b5d3b.entry.js → p-3e393301.entry.js} +2 -2
- package/dist/build/{p-d31d6714.entry.js → p-46362798.entry.js} +2 -2
- package/dist/build/{p-1ea8012a.entry.js → p-48efb6e4.entry.js} +2 -2
- package/dist/{paperless/p-7ef827d5.entry.js → build/p-50134fa1.entry.js} +2 -2
- package/dist/build/{p-b27bbec2.entry.js → p-62843ca0.entry.js} +2 -2
- package/dist/build/{p-5c6050aa.entry.js → p-638d2138.entry.js} +2 -2
- package/dist/{paperless/p-e102e82d.entry.js → build/p-65d9a61f.entry.js} +2 -2
- package/dist/build/p-6d8852ca.entry.js +2 -0
- package/dist/build/p-889eb696.js +2 -0
- package/dist/build/p-958f3c09.entry.js +2 -0
- package/dist/build/p-958f3c09.entry.js.map +1 -0
- package/dist/build/{p-2f821184.entry.js → p-a56474ea.entry.js} +2 -2
- package/dist/build/{p-68ae68c8.entry.js → p-a5934232.entry.js} +2 -2
- package/dist/build/p-af468e9f.entry.js +2 -0
- package/dist/build/p-af468e9f.entry.js.map +1 -0
- package/dist/build/p-bf261165.entry.js +2 -0
- package/dist/{paperless/p-db4ea9ce.entry.js → build/p-c3ba61ac.entry.js} +2 -2
- package/dist/build/p-c605a1c1.js +2 -0
- package/dist/build/p-c605a1c1.js.map +1 -0
- package/dist/build/p-c8e79e30.entry.js +2 -0
- package/dist/build/{p-00534c3c.entry.js → p-cc3445fc.entry.js} +2 -2
- package/dist/{paperless/p-c6a042f7.entry.js → build/p-cfe6ec9a.entry.js} +2 -2
- package/dist/{paperless/p-0ffb8f53.entry.js → build/p-d044f441.entry.js} +2 -2
- package/dist/build/p-d63066b0.css +1 -0
- package/dist/build/p-d6ca5bce.entry.js +2 -0
- package/dist/build/p-d6ca5bce.entry.js.map +1 -0
- package/dist/build/{p-117de4a8.entry.js → p-d70b3539.entry.js} +2 -2
- package/dist/build/p-d8eb3b7b.entry.js +2 -0
- package/dist/build/p-d8eb3b7b.entry.js.map +1 -0
- package/dist/build/{p-e9a323f2.entry.js → p-d9d8c17c.entry.js} +2 -2
- package/dist/build/{p-57fc0eb5.entry.js → p-d9fae6bd.entry.js} +2 -2
- package/dist/build/p-dfce711d.entry.js +2 -0
- package/dist/build/p-dfce711d.entry.js.map +1 -0
- package/dist/build/p-ea577bae.entry.js +2 -0
- package/dist/build/p-ea577bae.entry.js.map +1 -0
- package/dist/build/{p-b26d5130.entry.js → p-eec56c71.entry.js} +2 -2
- package/dist/build/{p-448b6640.entry.js → p-f3d0ea94.entry.js} +2 -2
- package/dist/build/{p-955d149f.entry.js → p-f40f89a7.entry.js} +2 -2
- package/dist/build/{p-c6fa153f.entry.js → p-fd53acd3.entry.js} +2 -2
- package/dist/build/paperless.css +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +1 -1
- package/dist/cjs/index-3f9bbc0c.js +16 -4
- package/dist/cjs/index.cjs.js +2 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nonce-0feefc04.js +17 -0
- package/dist/cjs/nonce-0feefc04.js.map +1 -0
- package/dist/cjs/p-accordion.cjs.entry.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +4 -4
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +446 -0
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-checkbox_3.cjs.entry.js +444 -0
- package/dist/cjs/p-checkbox_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-counter.cjs.entry.js +1 -1
- package/dist/cjs/p-cropper.cjs.entry.js +3 -3
- package/dist/cjs/p-cropper.cjs.entry.js.map +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/p-divider.cjs.entry.js +1 -1
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +3 -3
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +2 -2
- package/dist/cjs/p-field_3.cjs.entry.js +316 -0
- package/dist/cjs/p-field_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +7 -7
- package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
- package/dist/cjs/p-input-error.cjs.entry.js +1 -1
- package/dist/cjs/p-label_3.cjs.entry.js +4 -4
- package/dist/cjs/p-layout.cjs.entry.js +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js +4 -4
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +4 -3
- package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
- package/dist/cjs/p-page-size-select_3.cjs.entry.js +2 -2
- package/dist/cjs/p-portal_2.cjs.entry.js +233 -0
- package/dist/cjs/p-portal_2.cjs.entry.js.map +1 -0
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +8 -19
- package/dist/cjs/p-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/p-select.cjs.entry.js +1 -1
- package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
- package/dist/cjs/p-status.cjs.entry.js +2 -2
- package/dist/cjs/p-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +15 -17
- package/dist/cjs/p-table.cjs.entry.js.map +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +148 -0
- package/dist/cjs/p-toggle.cjs.entry.js.map +1 -0
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/atoms/checkbox/checkbox.component.css +1 -0
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +283 -0
- package/dist/collection/components/atoms/checkbox/checkbox.component.js.map +1 -0
- package/dist/collection/components/atoms/counter/counter.component.js +1 -1
- package/dist/collection/components/atoms/divider/divider.component.js +1 -1
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +1 -1
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.js +1 -1
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.js +1 -1
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +2 -2
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +4 -4
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -1
- package/dist/collection/components/atoms/floating-menu-container/floating-menu-container.component.js +1 -1
- package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js +1 -1
- package/dist/collection/components/atoms/helper/helper.component.js +1 -1
- package/dist/collection/components/atoms/iban-icon/iban-icon.component.js +1 -1
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +1 -1
- package/dist/collection/components/atoms/label/label.component.js +2 -2
- package/dist/collection/components/atoms/layout/layout.component.js +1 -1
- package/dist/collection/components/atoms/modal-body/modal-body.component.js +1 -1
- package/dist/collection/components/atoms/modal-container/modal-container.component.js +1 -1
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +1 -1
- package/dist/collection/components/atoms/modal-header/modal-header.component.js +1 -1
- package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +1 -1
- package/dist/collection/components/atoms/portal/portal.component.js +1 -1
- package/dist/collection/components/atoms/radio/radio.component.css +1 -1
- package/dist/collection/components/atoms/radio/radio.component.js +5 -5
- package/dist/collection/components/atoms/radio/radio.component.js.map +1 -1
- package/dist/collection/components/atoms/segment-container/segment-container.component.js +1 -1
- package/dist/collection/components/atoms/segment-item/segment-item.component.js +1 -1
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +1 -1
- package/dist/collection/components/atoms/status/status.component.js +2 -2
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +1 -1
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +1 -1
- package/dist/collection/components/atoms/tab-group/tab-group.component.js +1 -1
- package/dist/collection/components/atoms/tab-item/tab-item.component.js +1 -1
- package/dist/collection/components/atoms/table-container/table-container.component.js +1 -1
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +1 -1
- package/dist/collection/components/atoms/toggle/toggle.component.css +1 -0
- package/dist/collection/components/atoms/toggle/toggle.component.js +321 -0
- package/dist/collection/components/atoms/toggle/toggle.component.js.map +1 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +4 -4
- package/dist/collection/components/molecules/accordion/accordion.component.js +1 -1
- package/dist/collection/components/molecules/attachment/attachment.component.js +4 -4
- package/dist/collection/components/molecules/button/button.component.css +1 -1
- package/dist/collection/components/molecules/button/button.component.js +4 -4
- package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
- package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
- package/dist/collection/components/molecules/cropper/cropper.component.css +1 -1
- package/dist/collection/components/molecules/cropper/cropper.component.js +2 -2
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +3 -3
- package/dist/collection/components/molecules/field/field.component.js +9 -6
- package/dist/collection/components/molecules/field/field.component.js.map +1 -1
- package/dist/collection/components/molecules/input-error/input-error.component.js +1 -1
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +1 -1
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +23 -2
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -1
- package/dist/collection/components/molecules/navigation-section/navigation-section.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination.component.js +1 -1
- package/dist/collection/components/molecules/profile/profile.component.js +1 -1
- package/dist/collection/components/molecules/select/select.component.js +1 -1
- package/dist/collection/components/molecules/stepper/stepper.component.js +1 -1
- package/dist/collection/components/molecules/table-cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table-footer/table-footer.component.js +1 -1
- package/dist/collection/components/molecules/table-row/table-row.component.js +2 -2
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/collection/components/organisms/table/table.component.css +1 -1
- package/dist/collection/components/organisms/table/table.component.js +13 -16
- package/dist/collection/components/organisms/table/table.component.js.map +1 -1
- package/dist/collection/tailwind/theme/shadows.js +2 -1
- package/dist/collection/tailwind/theme/shadows.js.map +1 -1
- package/dist/components/button.component.js +5 -5
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/calendar.component.js +1 -1
- package/dist/components/checkbox.component.js +134 -0
- package/dist/components/checkbox.component.js.map +1 -0
- package/dist/components/divider.component.js +1 -1
- package/dist/components/drawer-body.component.js +1 -1
- package/dist/components/drawer-container.component.js +1 -1
- package/dist/components/drawer-header.component.js +1 -1
- package/dist/components/dropdown-menu-container.component.js +2 -2
- package/dist/components/dropdown-menu-item.component.js +12 -6
- package/dist/components/dropdown-menu-item.component.js.map +1 -1
- package/dist/components/dropdown.component.js +3 -3
- package/dist/components/field.component.js +9 -6
- package/dist/components/field.component.js.map +1 -1
- package/dist/components/floating-menu-container.component.js +1 -1
- package/dist/components/floating-menu-item.component.js +1 -1
- package/dist/components/helper.component.js +1 -1
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/input-error.component.js +1 -1
- package/dist/components/label.component.js +2 -2
- package/dist/components/modal-body.component.js +1 -1
- package/dist/components/modal-container.component.js +1 -1
- package/dist/components/modal-footer.component.js +1 -1
- package/dist/components/modal-header.component.js +1 -1
- package/dist/components/navigation-title.component.js +1 -1
- package/dist/components/nonce.js +15 -0
- package/dist/components/nonce.js.map +1 -0
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +4 -4
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-checkbox.d.ts +11 -0
- package/dist/components/p-checkbox.js +8 -0
- package/dist/components/p-checkbox.js.map +1 -0
- package/dist/components/p-content-slider.js +2 -2
- package/dist/components/p-counter.js +1 -1
- package/dist/components/p-cropper.js +3 -3
- package/dist/components/p-cropper.js.map +1 -1
- package/dist/components/p-datepicker.js +1 -1
- package/dist/components/p-iban-icon.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-layout.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +15 -7
- package/dist/components/p-navigation-item.js.map +1 -1
- package/dist/components/p-navigation-section.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-radio.js +7 -18
- package/dist/components/p-radio.js.map +1 -1
- package/dist/components/p-select.js +11 -5
- package/dist/components/p-select.js.map +1 -1
- package/dist/components/p-status.js +2 -2
- package/dist/components/p-stepper-item.js +1 -1
- package/dist/components/p-stepper.js +1 -1
- package/dist/components/p-tab-group.js +1 -1
- package/dist/components/p-tab-item.js +1 -1
- package/dist/components/p-table.js +22 -19
- package/dist/components/p-table.js.map +1 -1
- package/dist/components/p-toast-container.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.d.ts +11 -0
- package/dist/components/p-toggle.js +169 -0
- package/dist/components/p-toggle.js.map +1 -0
- package/dist/components/page-size-select.component.js +8 -2
- package/dist/components/page-size-select.component.js.map +1 -1
- package/dist/components/pagination-item.component.js +1 -1
- package/dist/components/pagination.component.js +1 -1
- package/dist/components/portal.component.js +1 -1
- package/dist/components/segment-container.component.js +1 -1
- package/dist/components/segment-item.component.js +1 -1
- package/dist/components/slider-indicator.component.js +1 -1
- package/dist/components/stepper-line.component.js +1 -1
- package/dist/components/table-cell.component.js +1 -1
- package/dist/components/table-container.component.js +1 -1
- package/dist/components/table-footer.component.js +9 -3
- package/dist/components/table-footer.component.js.map +1 -1
- package/dist/components/table-row.component.js +2 -2
- package/dist/components/tooltip.component.js +4 -4
- package/dist/esm/index-2ef94580.js +16 -4
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nonce-a9254eb4.js +15 -0
- package/dist/esm/nonce-a9254eb4.js.map +1 -0
- package/dist/esm/p-accordion.entry.js +1 -1
- package/dist/esm/p-attachment.entry.js +4 -4
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +440 -0
- package/dist/esm/p-button_3.entry.js.map +1 -0
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-checkbox_3.entry.js +438 -0
- package/dist/esm/p-checkbox_3.entry.js.map +1 -0
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-counter.entry.js +1 -1
- package/dist/esm/p-cropper.entry.js +3 -3
- package/dist/esm/p-cropper.entry.js.map +1 -1
- package/dist/esm/p-datepicker.entry.js +1 -1
- package/dist/esm/p-divider.entry.js +1 -1
- package/dist/esm/p-drawer-body_3.entry.js +3 -3
- package/dist/esm/p-dropdown-menu-container.entry.js +2 -2
- package/dist/esm/p-field_3.entry.js +310 -0
- package/dist/esm/p-field_3.entry.js.map +1 -0
- package/dist/esm/p-floating-menu-container_8.entry.js +7 -7
- package/dist/esm/p-iban-icon.entry.js +1 -1
- package/dist/esm/p-info-panel.entry.js +1 -1
- package/dist/esm/p-input-error.entry.js +1 -1
- package/dist/esm/p-label_3.entry.js +4 -4
- package/dist/esm/p-layout.entry.js +1 -1
- package/dist/esm/p-modal-body_4.entry.js +4 -4
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +4 -3
- package/dist/esm/p-navigation-item.entry.js.map +1 -1
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-navigation-title.entry.js +1 -1
- package/dist/esm/p-page-size-select_3.entry.js +2 -2
- package/dist/esm/p-portal_2.entry.js +228 -0
- package/dist/esm/p-portal_2.entry.js.map +1 -0
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-radio.entry.js +7 -18
- package/dist/esm/p-radio.entry.js.map +1 -1
- package/dist/esm/p-select.entry.js +1 -1
- package/dist/esm/p-slider-indicator.entry.js +1 -1
- package/dist/esm/p-status.entry.js +2 -2
- package/dist/esm/p-stepper-item.entry.js +1 -1
- package/dist/esm/p-stepper-line.entry.js +1 -1
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-tab-group.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +1 -1
- package/dist/esm/p-table.entry.js +15 -17
- package/dist/esm/p-table.entry.js.map +1 -1
- package/dist/esm/p-toast-container.entry.js +1 -1
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-toggle.entry.js +144 -0
- package/dist/esm/p-toggle.entry.js.map +1 -0
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/index.esm.js.map +1 -1
- package/dist/paperless/{p-d26ee54b.entry.js → p-036bb6f4.entry.js} +2 -2
- package/dist/paperless/p-0413fcd0.entry.js +2 -0
- package/dist/paperless/p-0413fcd0.entry.js.map +1 -0
- package/dist/paperless/p-0bbd4d1c.entry.js +2 -0
- package/dist/paperless/p-0bbd4d1c.entry.js.map +1 -0
- package/dist/paperless/{p-8b28c5be.entry.js → p-0c040d86.entry.js} +2 -2
- package/dist/paperless/{p-46cf79b4.entry.js → p-0e1935d5.entry.js} +2 -2
- package/dist/paperless/p-14e63599.entry.js +2 -0
- package/dist/paperless/{p-716a92ae.entry.js → p-1b5ec2b1.entry.js} +2 -2
- package/dist/{build/p-5f54e4b8.entry.js → paperless/p-1ed4a75e.entry.js} +3 -3
- package/dist/paperless/{p-5f54e4b8.entry.js.map → p-1ed4a75e.entry.js.map} +1 -1
- package/dist/{build/p-9f191ebc.entry.js → paperless/p-214a2978.entry.js} +2 -2
- package/dist/{build/p-e9ddf7b0.entry.js → paperless/p-2bd123f4.entry.js} +2 -2
- package/dist/{build/p-8b38f27d.entry.js → paperless/p-3a428a06.entry.js} +2 -2
- package/dist/paperless/{p-276d2804.entry.js → p-3b5242e9.entry.js} +2 -2
- package/dist/paperless/{p-8b3b5d3b.entry.js → p-3e393301.entry.js} +2 -2
- package/dist/paperless/{p-d31d6714.entry.js → p-46362798.entry.js} +2 -2
- package/dist/paperless/{p-1ea8012a.entry.js → p-48efb6e4.entry.js} +2 -2
- package/dist/{build/p-7ef827d5.entry.js → paperless/p-50134fa1.entry.js} +2 -2
- package/dist/paperless/{p-b27bbec2.entry.js → p-62843ca0.entry.js} +2 -2
- package/dist/paperless/{p-5c6050aa.entry.js → p-638d2138.entry.js} +2 -2
- package/dist/{build/p-e102e82d.entry.js → paperless/p-65d9a61f.entry.js} +2 -2
- package/dist/paperless/p-6d8852ca.entry.js +2 -0
- package/dist/paperless/p-958f3c09.entry.js +2 -0
- package/dist/paperless/p-958f3c09.entry.js.map +1 -0
- package/dist/paperless/{p-2f821184.entry.js → p-a56474ea.entry.js} +2 -2
- package/dist/paperless/{p-68ae68c8.entry.js → p-a5934232.entry.js} +2 -2
- package/dist/paperless/p-af468e9f.entry.js +2 -0
- package/dist/paperless/p-af468e9f.entry.js.map +1 -0
- package/dist/paperless/p-bf261165.entry.js +2 -0
- package/dist/{build/p-db4ea9ce.entry.js → paperless/p-c3ba61ac.entry.js} +2 -2
- package/dist/paperless/p-c605a1c1.js +2 -0
- package/dist/paperless/p-c605a1c1.js.map +1 -0
- package/dist/paperless/p-c8e79e30.entry.js +2 -0
- package/dist/paperless/{p-00534c3c.entry.js → p-cc3445fc.entry.js} +2 -2
- package/dist/{build/p-c6a042f7.entry.js → paperless/p-cfe6ec9a.entry.js} +2 -2
- package/dist/{build/p-0ffb8f53.entry.js → paperless/p-d044f441.entry.js} +2 -2
- package/dist/paperless/p-d6ca5bce.entry.js +2 -0
- package/dist/paperless/p-d6ca5bce.entry.js.map +1 -0
- package/dist/paperless/{p-117de4a8.entry.js → p-d70b3539.entry.js} +2 -2
- package/dist/paperless/p-d8eb3b7b.entry.js +2 -0
- package/dist/paperless/p-d8eb3b7b.entry.js.map +1 -0
- package/dist/paperless/{p-e9a323f2.entry.js → p-d9d8c17c.entry.js} +2 -2
- package/dist/paperless/{p-57fc0eb5.entry.js → p-d9fae6bd.entry.js} +2 -2
- package/dist/paperless/p-dfce711d.entry.js +2 -0
- package/dist/paperless/p-dfce711d.entry.js.map +1 -0
- package/dist/paperless/p-ea577bae.entry.js +2 -0
- package/dist/paperless/p-ea577bae.entry.js.map +1 -0
- package/dist/paperless/{p-b26d5130.entry.js → p-eec56c71.entry.js} +2 -2
- package/dist/paperless/{p-448b6640.entry.js → p-f3d0ea94.entry.js} +2 -2
- package/dist/paperless/{p-955d149f.entry.js → p-f40f89a7.entry.js} +2 -2
- package/dist/paperless/{p-c6fa153f.entry.js → p-fd53acd3.entry.js} +2 -2
- package/dist/paperless/paperless.css +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/paperless/paperless.esm.js.map +1 -1
- package/dist/style/paperless.scss +0 -2
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/tailwind/theme/shadows.ts +2 -1
- package/dist/types/components/atoms/checkbox/checkbox.component.d.ts +42 -0
- package/dist/types/components/atoms/toggle/toggle.component.d.ts +42 -0
- package/dist/types/components/molecules/field/field.component.d.ts +2 -1
- package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +4 -0
- package/dist/types/components/organisms/table/table.component.d.ts +0 -1
- package/dist/types/components.d.ts +194 -0
- package/dist/types/tailwind/theme/shadows.d.ts +1 -0
- package/hydrate/index.js +393 -122
- package/hydrate/index.mjs +393 -122
- package/package.json +1 -1
- package/dist/build/p-17457a9a.entry.js +0 -2
- package/dist/build/p-2beae871.entry.js +0 -2
- package/dist/build/p-5021f212.entry.js +0 -2
- package/dist/build/p-5021f212.entry.js.map +0 -1
- package/dist/build/p-8f4ccbe0.entry.js +0 -2
- package/dist/build/p-a2ff0942.entry.js +0 -2
- package/dist/build/p-a2ff0942.entry.js.map +0 -1
- package/dist/build/p-b8a88966.css +0 -1
- package/dist/build/p-c8616c4a.js +0 -2
- package/dist/build/p-d12bb2d3.entry.js +0 -2
- package/dist/build/p-d12bb2d3.entry.js.map +0 -1
- package/dist/build/p-ddde168c.entry.js +0 -2
- package/dist/build/p-e7bfc9c0.entry.js +0 -2
- package/dist/build/p-e7bfc9c0.entry.js.map +0 -1
- package/dist/build/p-fb0087cc.entry.js +0 -2
- package/dist/build/p-fb0087cc.entry.js.map +0 -1
- package/dist/cjs/p-button_8.cjs.entry.js +0 -972
- package/dist/cjs/p-button_8.cjs.entry.js.map +0 -1
- package/dist/cjs/p-dropdown_2.cjs.entry.js +0 -344
- package/dist/cjs/p-dropdown_2.cjs.entry.js.map +0 -1
- package/dist/esm/p-button_8.entry.js +0 -961
- package/dist/esm/p-button_8.entry.js.map +0 -1
- package/dist/esm/p-dropdown_2.entry.js +0 -339
- package/dist/esm/p-dropdown_2.entry.js.map +0 -1
- package/dist/paperless/p-17457a9a.entry.js +0 -2
- package/dist/paperless/p-2beae871.entry.js +0 -2
- package/dist/paperless/p-5021f212.entry.js +0 -2
- package/dist/paperless/p-5021f212.entry.js.map +0 -1
- package/dist/paperless/p-8f4ccbe0.entry.js +0 -2
- package/dist/paperless/p-a2ff0942.entry.js +0 -2
- package/dist/paperless/p-a2ff0942.entry.js.map +0 -1
- package/dist/paperless/p-d12bb2d3.entry.js +0 -2
- package/dist/paperless/p-d12bb2d3.entry.js.map +0 -1
- package/dist/paperless/p-ddde168c.entry.js +0 -2
- package/dist/paperless/p-e7bfc9c0.entry.js +0 -2
- package/dist/paperless/p-e7bfc9c0.entry.js.map +0 -1
- package/dist/paperless/p-fb0087cc.entry.js +0 -2
- package/dist/paperless/p-fb0087cc.entry.js.map +0 -1
- package/dist/style/form/_checkbox.scss +0 -135
- package/dist/style/form/_input.scss +0 -31
- package/dist/style/form/_mixins.scss +0 -140
- package/dist/style/form/_radio.scss +0 -58
- package/dist/style/form/_range.scss +0 -20
- package/dist/style/form/_textarea.scss +0 -31
- package/dist/style/form/index.scss +0 -5
- /package/dist/build/{p-d26ee54b.entry.js.map → p-036bb6f4.entry.js.map} +0 -0
- /package/dist/build/{p-8b28c5be.entry.js.map → p-0c040d86.entry.js.map} +0 -0
- /package/dist/build/{p-46cf79b4.entry.js.map → p-0e1935d5.entry.js.map} +0 -0
- /package/dist/build/{p-2beae871.entry.js.map → p-14e63599.entry.js.map} +0 -0
- /package/dist/build/{p-716a92ae.entry.js.map → p-1b5ec2b1.entry.js.map} +0 -0
- /package/dist/build/{p-9f191ebc.entry.js.map → p-214a2978.entry.js.map} +0 -0
- /package/dist/build/{p-e9ddf7b0.entry.js.map → p-2bd123f4.entry.js.map} +0 -0
- /package/dist/build/{p-8b38f27d.entry.js.map → p-3a428a06.entry.js.map} +0 -0
- /package/dist/build/{p-276d2804.entry.js.map → p-3b5242e9.entry.js.map} +0 -0
- /package/dist/build/{p-8b3b5d3b.entry.js.map → p-3e393301.entry.js.map} +0 -0
- /package/dist/build/{p-d31d6714.entry.js.map → p-46362798.entry.js.map} +0 -0
- /package/dist/build/{p-1ea8012a.entry.js.map → p-48efb6e4.entry.js.map} +0 -0
- /package/dist/build/{p-7ef827d5.entry.js.map → p-50134fa1.entry.js.map} +0 -0
- /package/dist/build/{p-b27bbec2.entry.js.map → p-62843ca0.entry.js.map} +0 -0
- /package/dist/build/{p-5c6050aa.entry.js.map → p-638d2138.entry.js.map} +0 -0
- /package/dist/build/{p-e102e82d.entry.js.map → p-65d9a61f.entry.js.map} +0 -0
- /package/dist/build/{p-ddde168c.entry.js.map → p-6d8852ca.entry.js.map} +0 -0
- /package/dist/build/{p-2f821184.entry.js.map → p-a56474ea.entry.js.map} +0 -0
- /package/dist/build/{p-68ae68c8.entry.js.map → p-a5934232.entry.js.map} +0 -0
- /package/dist/build/{p-17457a9a.entry.js.map → p-bf261165.entry.js.map} +0 -0
- /package/dist/build/{p-db4ea9ce.entry.js.map → p-c3ba61ac.entry.js.map} +0 -0
- /package/dist/build/{p-8f4ccbe0.entry.js.map → p-c8e79e30.entry.js.map} +0 -0
- /package/dist/build/{p-00534c3c.entry.js.map → p-cc3445fc.entry.js.map} +0 -0
- /package/dist/build/{p-c6a042f7.entry.js.map → p-cfe6ec9a.entry.js.map} +0 -0
- /package/dist/build/{p-0ffb8f53.entry.js.map → p-d044f441.entry.js.map} +0 -0
- /package/dist/build/{p-117de4a8.entry.js.map → p-d70b3539.entry.js.map} +0 -0
- /package/dist/build/{p-e9a323f2.entry.js.map → p-d9d8c17c.entry.js.map} +0 -0
- /package/dist/build/{p-57fc0eb5.entry.js.map → p-d9fae6bd.entry.js.map} +0 -0
- /package/dist/build/{p-b26d5130.entry.js.map → p-eec56c71.entry.js.map} +0 -0
- /package/dist/build/{p-448b6640.entry.js.map → p-f3d0ea94.entry.js.map} +0 -0
- /package/dist/build/{p-955d149f.entry.js.map → p-f40f89a7.entry.js.map} +0 -0
- /package/dist/build/{p-c6fa153f.entry.js.map → p-fd53acd3.entry.js.map} +0 -0
- /package/dist/paperless/{p-d26ee54b.entry.js.map → p-036bb6f4.entry.js.map} +0 -0
- /package/dist/paperless/{p-8b28c5be.entry.js.map → p-0c040d86.entry.js.map} +0 -0
- /package/dist/paperless/{p-46cf79b4.entry.js.map → p-0e1935d5.entry.js.map} +0 -0
- /package/dist/paperless/{p-2beae871.entry.js.map → p-14e63599.entry.js.map} +0 -0
- /package/dist/paperless/{p-716a92ae.entry.js.map → p-1b5ec2b1.entry.js.map} +0 -0
- /package/dist/paperless/{p-9f191ebc.entry.js.map → p-214a2978.entry.js.map} +0 -0
- /package/dist/paperless/{p-e9ddf7b0.entry.js.map → p-2bd123f4.entry.js.map} +0 -0
- /package/dist/paperless/{p-8b38f27d.entry.js.map → p-3a428a06.entry.js.map} +0 -0
- /package/dist/paperless/{p-276d2804.entry.js.map → p-3b5242e9.entry.js.map} +0 -0
- /package/dist/paperless/{p-8b3b5d3b.entry.js.map → p-3e393301.entry.js.map} +0 -0
- /package/dist/paperless/{p-d31d6714.entry.js.map → p-46362798.entry.js.map} +0 -0
- /package/dist/paperless/{p-1ea8012a.entry.js.map → p-48efb6e4.entry.js.map} +0 -0
- /package/dist/paperless/{p-7ef827d5.entry.js.map → p-50134fa1.entry.js.map} +0 -0
- /package/dist/paperless/{p-b27bbec2.entry.js.map → p-62843ca0.entry.js.map} +0 -0
- /package/dist/paperless/{p-5c6050aa.entry.js.map → p-638d2138.entry.js.map} +0 -0
- /package/dist/paperless/{p-e102e82d.entry.js.map → p-65d9a61f.entry.js.map} +0 -0
- /package/dist/paperless/{p-ddde168c.entry.js.map → p-6d8852ca.entry.js.map} +0 -0
- /package/dist/paperless/{p-2f821184.entry.js.map → p-a56474ea.entry.js.map} +0 -0
- /package/dist/paperless/{p-68ae68c8.entry.js.map → p-a5934232.entry.js.map} +0 -0
- /package/dist/paperless/{p-17457a9a.entry.js.map → p-bf261165.entry.js.map} +0 -0
- /package/dist/paperless/{p-db4ea9ce.entry.js.map → p-c3ba61ac.entry.js.map} +0 -0
- /package/dist/paperless/{p-8f4ccbe0.entry.js.map → p-c8e79e30.entry.js.map} +0 -0
- /package/dist/paperless/{p-00534c3c.entry.js.map → p-cc3445fc.entry.js.map} +0 -0
- /package/dist/paperless/{p-c6a042f7.entry.js.map → p-cfe6ec9a.entry.js.map} +0 -0
- /package/dist/paperless/{p-0ffb8f53.entry.js.map → p-d044f441.entry.js.map} +0 -0
- /package/dist/paperless/{p-117de4a8.entry.js.map → p-d70b3539.entry.js.map} +0 -0
- /package/dist/paperless/{p-e9a323f2.entry.js.map → p-d9d8c17c.entry.js.map} +0 -0
- /package/dist/paperless/{p-57fc0eb5.entry.js.map → p-d9fae6bd.entry.js.map} +0 -0
- /package/dist/paperless/{p-b26d5130.entry.js.map → p-eec56c71.entry.js.map} +0 -0
- /package/dist/paperless/{p-448b6640.entry.js.map → p-f3d0ea94.entry.js.map} +0 -0
- /package/dist/paperless/{p-955d149f.entry.js.map → p-f40f89a7.entry.js.map} +0 -0
- /package/dist/paperless/{p-c6fa153f.entry.js.map → p-fd53acd3.entry.js.map} +0 -0
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-2ef94580.js';
|
|
2
|
+
import { c as cva } from './index-10317a74.js';
|
|
3
|
+
import { i as icons } from './icons-a3270aaf.js';
|
|
4
|
+
import './clsx-297c1ffe.js';
|
|
5
|
+
|
|
6
|
+
const buttonComponentCss = "*{box-sizing:border-box}.static{position:static!important}.block{display:block!important}.flex{display:flex!important}.h-10{height:2.5rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-10{width:2.5rem!important}.w-6{width:1.5rem!important}.w-8{width:2rem!important}.w-inherit{width:inherit!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.cursor-wait{cursor:wait!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-lg{border-radius:.5rem!important}.rounded-e-lg{border-end-end-radius:.5rem!important;border-start-end-radius:.5rem!important}.rounded-s-lg{border-end-start-radius:.5rem!important;border-start-start-radius:.5rem!important}.border{border-width:1px!important}.border-b{border-bottom-width:1px!important}.border-black-teal\\/10{border-color:rgba(3,42,36,.1)!important}.border-black-teal\\/20{border-color:rgba(3,42,36,.2)!important}.border-supportive-lilac-800{--tw-border-opacity:1!important;border-color:rgb(189 140 255/var(--tw-border-opacity,1))!important}.border-teal{border-color:rgb(8 136 121/var(--tw-border-opacity,1))!important}.border-teal,.border-teal-100{--tw-border-opacity:1!important}.border-teal-100{border-color:rgb(206 231 228/var(--tw-border-opacity,1))!important}.bg-supportive-lilac{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.bg-supportive-lilac-100{--tw-bg-opacity:1!important;background-color:rgb(246 239 255/var(--tw-bg-opacity,1))!important}.bg-transparent{background-color:transparent!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.p-2{padding:.5rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-semibold{font-weight:600!important}.leading-4{line-height:1rem!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-100{--tw-text-opacity:1!important;color:rgb(205 212 211/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.text-dark-teal-100{--tw-text-opacity:1!important;color:rgb(204 220 218/var(--tw-text-opacity,1))!important}.text-dark-teal-100\\/60{color:rgba(204,220,218,.6)!important}.text-dark-teal-200{--tw-text-opacity:1!important;color:rgb(153 185 182/var(--tw-text-opacity,1))!important}.text-teal{color:rgb(8 136 121/var(--tw-text-opacity,1))!important}.text-teal,.text-teal-100{--tw-text-opacity:1!important}.text-teal-100{color:rgb(206 231 228/var(--tw-text-opacity,1))!important}.text-teal-300{--tw-text-opacity:1!important;color:rgb(107 184 175/var(--tw-text-opacity,1))!important}.underline{text-decoration-line:underline!important}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.ring,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.ring-black-teal\\/10{--tw-ring-color:rgba(3,42,36,.1)!important}.ring-supportive-lilac-100{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.drop-shadow-1{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08))!important}.drop-shadow-1,.drop-shadow-supportive-lilac{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.drop-shadow-supportive-lilac{--tw-drop-shadow:drop-shadow(0px 1px 1px rgba(189,140,255,.2))!important}.hover\\:bg-dark-teal:hover{--tw-bg-opacity:1!important;background-color:rgb(0 81 72/var(--tw-bg-opacity,1))!important}.hover\\:bg-supportive-lilac-700:hover{--tw-bg-opacity:1!important;background-color:rgb(200 159 255/var(--tw-bg-opacity,1))!important}.hover\\:bg-white-600:hover{--tw-bg-opacity:1!important;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.hover\\:drop-shadow-1:hover{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08))!important}.hover\\:drop-shadow-1:hover,.hover\\:drop-shadow-2:hover{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.hover\\:drop-shadow-2:hover{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.04)) drop-shadow(0 2px 2px rgba(0,2,2,.04)) drop-shadow(0 4px 4px rgba(0,2,2,.04))!important}.active\\:border-supportive-lilac-800:active{--tw-border-opacity:1!important;border-color:rgb(189 140 255/var(--tw-border-opacity,1))!important}.active\\:text-black-teal\\/60:active{color:rgba(3,42,36,.6)!important}.active\\:text-dark-teal-100\\/60:active{color:rgba(204,220,218,.6)!important}.active\\:text-teal-800:active{--tw-text-opacity:1!important;color:rgb(2 102 92/var(--tw-text-opacity,1))!important}.active\\:ring:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.active\\:ring-2:active,.active\\:ring:active{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.active\\:ring-2:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.active\\:ring-black-teal\\/10:active{--tw-ring-color:rgba(3,42,36,.1)!important}.active\\:ring-supportive-lilac-100:active{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.group:hover .group-hover\\:text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.group:hover .group-hover\\:text-dark-teal-100{--tw-text-opacity:1!important;color:rgb(204 220 218/var(--tw-text-opacity,1))!important}.group:hover .group-hover\\:text-teal{--tw-text-opacity:1!important;color:rgb(8 136 121/var(--tw-text-opacity,1))!important}";
|
|
7
|
+
const PButtonStyle0 = buttonComponentCss;
|
|
8
|
+
|
|
9
|
+
const button = cva([
|
|
10
|
+
'group',
|
|
11
|
+
'font-semibold leading-4',
|
|
12
|
+
'flex items-center justify-center gap-2',
|
|
13
|
+
'cursor-pointer',
|
|
14
|
+
], {
|
|
15
|
+
variants: {
|
|
16
|
+
variant: {
|
|
17
|
+
primary: ['bg-supportive-lilac border-black-teal/20'],
|
|
18
|
+
secondary: null,
|
|
19
|
+
text: ['text-teal'],
|
|
20
|
+
transparent: ['bg-transparent'],
|
|
21
|
+
dropdown: null,
|
|
22
|
+
},
|
|
23
|
+
active: {
|
|
24
|
+
true: null,
|
|
25
|
+
false: null,
|
|
26
|
+
},
|
|
27
|
+
loading: {
|
|
28
|
+
true: 'cursor-wait',
|
|
29
|
+
false: null,
|
|
30
|
+
},
|
|
31
|
+
size: {
|
|
32
|
+
sm: ['text-xs h-6'],
|
|
33
|
+
base: ['text-sm h-8'],
|
|
34
|
+
lg: ['text-base h-10'],
|
|
35
|
+
},
|
|
36
|
+
disabled: {
|
|
37
|
+
true: 'cursor-not-allowed',
|
|
38
|
+
false: null,
|
|
39
|
+
},
|
|
40
|
+
underline: {
|
|
41
|
+
true: null,
|
|
42
|
+
false: null,
|
|
43
|
+
},
|
|
44
|
+
buttonGroupPosition: {
|
|
45
|
+
none: null,
|
|
46
|
+
start: null,
|
|
47
|
+
center: null,
|
|
48
|
+
end: null,
|
|
49
|
+
},
|
|
50
|
+
iconOnly: {
|
|
51
|
+
true: 'justify-center',
|
|
52
|
+
false: 'w-inherit py-1',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
compoundVariants: [
|
|
56
|
+
// variants
|
|
57
|
+
{
|
|
58
|
+
variant: ['secondary', 'dropdown'],
|
|
59
|
+
class: ['bg-white border-black-teal/10'],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
variant: ['primary', 'secondary', 'dropdown'],
|
|
63
|
+
disabled: false,
|
|
64
|
+
class: 'border',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
variant: ['primary', 'secondary', 'dropdown'],
|
|
68
|
+
disabled: false,
|
|
69
|
+
loading: false,
|
|
70
|
+
class: 'active:border-supportive-lilac-800 active:ring active:ring-2',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
variant: ['primary', 'secondary', 'dropdown'],
|
|
74
|
+
disabled: false,
|
|
75
|
+
loading: false,
|
|
76
|
+
active: true,
|
|
77
|
+
class: 'border-supportive-lilac-800 ring ring-2',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
variant: ['primary', 'secondary', 'transparent', 'dropdown'],
|
|
81
|
+
buttonGroupPosition: 'none',
|
|
82
|
+
class: 'rounded-lg',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
variant: ['primary', 'secondary', 'transparent', 'dropdown'],
|
|
86
|
+
buttonGroupPosition: 'start',
|
|
87
|
+
class: 'rounded-s-lg',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
variant: ['primary', 'secondary', 'transparent', 'dropdown'],
|
|
91
|
+
buttonGroupPosition: 'end',
|
|
92
|
+
class: 'rounded-e-lg',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
variant: ['primary', 'secondary', 'dropdown'],
|
|
96
|
+
disabled: false,
|
|
97
|
+
class: 'text-black-teal',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
variant: 'primary',
|
|
101
|
+
disabled: true,
|
|
102
|
+
class: 'bg-supportive-lilac-100 text-black-teal-100',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
variant: 'primary',
|
|
106
|
+
disabled: false,
|
|
107
|
+
loading: false,
|
|
108
|
+
class: 'drop-shadow-supportive-lilac hover:drop-shadow-2 hover:bg-supportive-lilac-700 active:text-black-teal/60 active:ring-black-teal/10',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
variant: 'primary',
|
|
112
|
+
disabled: false,
|
|
113
|
+
loading: false,
|
|
114
|
+
active: true,
|
|
115
|
+
class: 'ring-black-teal/10',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
variant: ['secondary', 'dropdown'],
|
|
119
|
+
disabled: true,
|
|
120
|
+
class: 'border bg-white-600 text-black-teal-100',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
variant: ['secondary', 'dropdown'],
|
|
124
|
+
disabled: false,
|
|
125
|
+
loading: false,
|
|
126
|
+
class: 'drop-shadow-1 hover:drop-shadow-1 hover:bg-white-600 active:text-black-teal/60 active:ring-supportive-lilac-100',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
variant: ['secondary', 'dropdown'],
|
|
130
|
+
disabled: false,
|
|
131
|
+
loading: false,
|
|
132
|
+
active: true,
|
|
133
|
+
class: 'ring-supportive-lilac-100',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
variant: 'text',
|
|
137
|
+
underline: true,
|
|
138
|
+
disabled: false,
|
|
139
|
+
class: 'border-b border-teal',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
variant: 'text',
|
|
143
|
+
underline: true,
|
|
144
|
+
disabled: true,
|
|
145
|
+
class: 'border-b border-teal-100',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
variant: 'text',
|
|
149
|
+
disabled: true,
|
|
150
|
+
class: 'text-teal-100',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
variant: 'text',
|
|
154
|
+
disabled: false,
|
|
155
|
+
loading: false,
|
|
156
|
+
class: 'active:text-teal-800',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
variant: 'transparent',
|
|
160
|
+
disabled: false,
|
|
161
|
+
class: 'text-dark-teal-100',
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
variant: 'transparent',
|
|
165
|
+
disabled: false,
|
|
166
|
+
loading: false,
|
|
167
|
+
class: 'hover:bg-dark-teal active:text-dark-teal-100/60',
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
variant: 'transparent',
|
|
171
|
+
disabled: true,
|
|
172
|
+
class: 'text-dark-teal-100/60',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
variant: ['primary', 'secondary', 'transparent'],
|
|
176
|
+
size: ['base', 'sm'],
|
|
177
|
+
iconOnly: false,
|
|
178
|
+
class: 'px-2',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
variant: ['primary', 'secondary', 'transparent'],
|
|
182
|
+
size: 'lg',
|
|
183
|
+
iconOnly: false,
|
|
184
|
+
class: 'px-3',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
variant: 'dropdown',
|
|
188
|
+
iconOnly: false,
|
|
189
|
+
class: 'p-2',
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
variant: ['primary', 'secondary', 'transparent', 'text'],
|
|
193
|
+
iconOnly: false,
|
|
194
|
+
class: 'py-1',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
size: 'sm',
|
|
198
|
+
iconOnly: true,
|
|
199
|
+
class: 'w-6',
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
size: 'base',
|
|
203
|
+
iconOnly: true,
|
|
204
|
+
class: 'w-8',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
size: 'lg',
|
|
208
|
+
iconOnly: true,
|
|
209
|
+
class: 'w-10',
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
});
|
|
213
|
+
const icon$1 = cva([], {
|
|
214
|
+
variants: {
|
|
215
|
+
size: {
|
|
216
|
+
sm: 'text-sm',
|
|
217
|
+
base: 'text-base',
|
|
218
|
+
lg: 'text-base',
|
|
219
|
+
},
|
|
220
|
+
variant: {
|
|
221
|
+
primary: null,
|
|
222
|
+
secondary: null,
|
|
223
|
+
text: null,
|
|
224
|
+
transparent: null,
|
|
225
|
+
dropdown: null,
|
|
226
|
+
},
|
|
227
|
+
disabled: {
|
|
228
|
+
true: null,
|
|
229
|
+
false: null,
|
|
230
|
+
},
|
|
231
|
+
active: {
|
|
232
|
+
true: null,
|
|
233
|
+
false: null,
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
compoundVariants: [
|
|
237
|
+
{
|
|
238
|
+
variant: ['secondary', 'dropdown'],
|
|
239
|
+
disabled: false,
|
|
240
|
+
active: false,
|
|
241
|
+
class: 'text-black-teal-300 group-hover:text-black-teal',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
variant: 'text',
|
|
245
|
+
disabled: false,
|
|
246
|
+
active: false,
|
|
247
|
+
class: 'text-teal-300 group-hover:text-teal',
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
variant: 'transparent',
|
|
251
|
+
disabled: false,
|
|
252
|
+
active: false,
|
|
253
|
+
class: 'text-dark-teal-200 group-hover:text-dark-teal-100',
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
});
|
|
257
|
+
const Button = class {
|
|
258
|
+
constructor(hostRef) {
|
|
259
|
+
registerInstance(this, hostRef);
|
|
260
|
+
this.onClick = createEvent(this, "onClick", 3);
|
|
261
|
+
this.as = 'button';
|
|
262
|
+
this.variant = 'primary';
|
|
263
|
+
this.active = false;
|
|
264
|
+
this.underline = true;
|
|
265
|
+
this.href = undefined;
|
|
266
|
+
this.target = undefined;
|
|
267
|
+
this.size = 'base';
|
|
268
|
+
this.type = 'button';
|
|
269
|
+
this.loading = false;
|
|
270
|
+
this.chevron = false;
|
|
271
|
+
this.chevronPosition = 'end';
|
|
272
|
+
this.disabled = false;
|
|
273
|
+
this.icon = undefined;
|
|
274
|
+
this.iconOnly = false;
|
|
275
|
+
this.iconPosition = 'end';
|
|
276
|
+
this.iconFlip = undefined;
|
|
277
|
+
this.iconRotate = undefined;
|
|
278
|
+
this.inheritText = false;
|
|
279
|
+
this.buttonGroupPosition = 'none';
|
|
280
|
+
this.class = undefined;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Button click event
|
|
284
|
+
*/
|
|
285
|
+
onClick;
|
|
286
|
+
render() {
|
|
287
|
+
let loaderColor = 'white';
|
|
288
|
+
switch (this.variant) {
|
|
289
|
+
case 'secondary':
|
|
290
|
+
loaderColor = 'storm';
|
|
291
|
+
break;
|
|
292
|
+
case 'text':
|
|
293
|
+
loaderColor = 'indigo';
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
const VariableTag = this.variant === 'text' || this.href?.length || this.as === 'a'
|
|
297
|
+
? 'a'
|
|
298
|
+
: 'button';
|
|
299
|
+
const active = this.active || this.class?.includes('active');
|
|
300
|
+
return (h(Host, { key: 'c528dd1f603ec9602af623f74ff422d1745f5f88', class: 'p-button block' }, h(VariableTag, { key: 'ed0b7309950f72321c0c355288afdaa3ffbe9a3c', disabled: this.disabled, href: this.href, type: this.variant !== 'text' ? this.type : undefined, target: this.target, class: button({
|
|
301
|
+
variant: this.variant,
|
|
302
|
+
size: this.size,
|
|
303
|
+
underline: this.underline,
|
|
304
|
+
loading: this.loading,
|
|
305
|
+
disabled: this.disabled,
|
|
306
|
+
buttonGroupPosition: this.buttonGroupPosition,
|
|
307
|
+
iconOnly: this.iconOnly,
|
|
308
|
+
active,
|
|
309
|
+
}) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: '4f20df27c82f4b43f4b3d0ce1584571e0854c61d', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
|
|
310
|
+
this.iconPosition === 'start' &&
|
|
311
|
+
!(this.iconOnly && this.loading) &&
|
|
312
|
+
this._getIcon(), h("slot", { key: 'ce4ed96beafa7bebb83e8f8346350e56a27fc8e3' }), this.icon &&
|
|
313
|
+
this.iconPosition === 'end' &&
|
|
314
|
+
!this.loading &&
|
|
315
|
+
!this.chevron &&
|
|
316
|
+
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: '1f2613670560b7ce499df4d08dddb011c92971a7', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.loading && h("p-loader", { key: '282534a7fb06fa16769cdb6dbd736564f8d41beb', color: loaderColor }))));
|
|
317
|
+
}
|
|
318
|
+
handleClick(ev) {
|
|
319
|
+
if (this.loading || this.disabled) {
|
|
320
|
+
ev.preventDefault();
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
this.onClick.emit(ev);
|
|
324
|
+
}
|
|
325
|
+
_getIcon() {
|
|
326
|
+
if (!this.icon) {
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
return (h("p-icon", { class: icon$1({
|
|
330
|
+
size: this.size,
|
|
331
|
+
variant: this.variant,
|
|
332
|
+
disabled: this.disabled,
|
|
333
|
+
active: this.active,
|
|
334
|
+
}), variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate }));
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
Button.style = PButtonStyle0;
|
|
338
|
+
|
|
339
|
+
const iconComponentCss = "*{box-sizing:border-box}:host{-webkit-transform-origin:50% 51%}.static{position:static!important}.flex{display:flex!important}.scale-\\[0\\.99\\]{--tw-scale-x:0.99!important;--tw-scale-y:0.99!important}.scale-\\[0\\.99\\],.scale-x-flip{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.scale-x-flip{--tw-scale-x:-1!important}.scale-y-flip{--tw-scale-y:-1!important}.scale-y-flip,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-3xl{font-size:2rem!important;line-height:2.5rem!important}.text-4xl{font-size:2.5rem!important;line-height:3rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.text-xs{font-size:.75rem!important}.text-xs,.text-xxs{line-height:1rem!important}.text-xxs{font-size:.5rem!important}";
|
|
340
|
+
const PIconStyle0 = iconComponentCss;
|
|
341
|
+
|
|
342
|
+
const icon = cva(['p-icon flex'], {
|
|
343
|
+
variants: {
|
|
344
|
+
flip: {
|
|
345
|
+
none: null,
|
|
346
|
+
horizontal: 'scale-x-flip',
|
|
347
|
+
vertical: 'scale-y-flip',
|
|
348
|
+
},
|
|
349
|
+
size: {
|
|
350
|
+
auto: 'text-auto',
|
|
351
|
+
xxs: 'text-xxs',
|
|
352
|
+
xs: 'text-xs',
|
|
353
|
+
sm: 'text-sm',
|
|
354
|
+
base: 'text-base',
|
|
355
|
+
lg: 'text-lg',
|
|
356
|
+
xl: 'text-xl',
|
|
357
|
+
'2xl': 'text-2xl',
|
|
358
|
+
'3xl': 'text-3xl',
|
|
359
|
+
'4xl': 'text-4xl',
|
|
360
|
+
},
|
|
361
|
+
transform: {
|
|
362
|
+
true: 'transform-gpu scale-[0.99]',
|
|
363
|
+
false: null,
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
});
|
|
367
|
+
const Icon = class {
|
|
368
|
+
constructor(hostRef) {
|
|
369
|
+
registerInstance(this, hostRef);
|
|
370
|
+
this.variant = undefined;
|
|
371
|
+
this.size = 'base';
|
|
372
|
+
this.rotate = 0;
|
|
373
|
+
this.flip = 'none';
|
|
374
|
+
}
|
|
375
|
+
render() {
|
|
376
|
+
const svg = icons[this.variant];
|
|
377
|
+
return (h(Host, { key: 'bf9559d3ea263753b66321c184077ee7163ec27b', class: icon({
|
|
378
|
+
flip: this.flip,
|
|
379
|
+
size: this.size,
|
|
380
|
+
transform: this.flip !== 'none' || this.rotate > 0 || this.rotate < 0,
|
|
381
|
+
}), style: {
|
|
382
|
+
'--tw-rotate': `${this.rotate}deg`,
|
|
383
|
+
}, innerHTML: svg }));
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
Icon.style = PIconStyle0;
|
|
387
|
+
|
|
388
|
+
const loaderComponentCss = ".fixed{position:fixed!important}.top-0{top:0!important}.box-border{box-sizing:border-box!important}.block{display:block!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.h-\\[1em\\]{height:1em!important}.w-\\[1em\\]{width:1em!important}.w-full{width:100%!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.items-center{align-items:center!important}.border-2{border-width:2px!important}.border-solid{border-style:solid!important}.border-indigo-light{--tw-border-opacity:1!important;border-color:rgb(241 246 255/var(--tw-border-opacity,1))!important}.border-indigo-light\\/40{border-color:rgba(241,246,255,.4)!important}.border-storm-light\\/40{border-color:rgba(176,178,203,.4)!important}.border-t-storm{--tw-border-opacity:1!important;border-top-color:rgb(81 83 107/var(--tw-border-opacity,1))!important}.border-t-white{--tw-border-opacity:1!important;border-top-color:rgb(255 255 255/var(--tw-border-opacity,1))!important}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.h-screen-safe{height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}.w-screen-safe{width:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right))!important}*{box-sizing:border-box}:host .loader{--tw-border-opacity:1;animation:spin .5s linear infinite;border-color:rgb(241 246 255/var(--tw-border-opacity,1));border-radius:9999px;border-style:solid;border-top:solid rgb(82 138 250/var(--tw-border-opacity,1));border-width:2px;display:inline-block;height:1em;width:1em;will-change:transform}:host .loader.color-storm{--tw-border-opacity:1!important;border-color:rgba(176,178,203,.4)!important;border-top-color:rgb(81 83 107/var(--tw-border-opacity,1))!important}:host .loader.color-white{--tw-border-opacity:1!important;border-color:rgba(241,246,255,.4)!important;border-top-color:rgb(255 255 255/var(--tw-border-opacity,1))!important}:host .loading-screen{--tw-bg-opacity:1;align-items:center;background-color:rgb(247 250 252/var(--tw-bg-opacity,1));display:flex;height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));justify-content:center;left:0;position:fixed;top:0;width:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));z-index:1001}:host .loading-screen .content{max-width:20rem}:host .loading-screen .content .loader-wrapper{display:flex;justify-content:center;width:100%}:host .loading-screen .content .loader-wrapper .loader{font-size:2.5rem;line-height:3rem}:host(.variant-ghost){--loading-bg:#f7fafc;--loading-stripe:#fcfdfe;animation:loading 1s ease-in-out infinite;background-color:var(--loading-bg);background:linear-gradient(100deg,hsla(0,0%,100%,0) 40%,var(--loading-stripe) 50%,hsla(0,0%,100%,0) 60%) var(--loading-bg);background-position-x:180%;background-size:200% 100%;box-sizing:border-box;display:block;min-height:1em;min-width:1em;will-change:background,background-position-x,background-color}@keyframes loading{to{background-position-x:-20%}}@keyframes spin{to{transform:rotate(1turn)}}.static{position:static!important}.inline{display:inline!important}.justify-center{justify-content:center!important}.text-4xl{font-size:2.5rem!important;line-height:3rem!important}";
|
|
389
|
+
const PLoaderStyle0 = loaderComponentCss;
|
|
390
|
+
|
|
391
|
+
const Loader = class {
|
|
392
|
+
constructor(hostRef) {
|
|
393
|
+
registerInstance(this, hostRef);
|
|
394
|
+
this.show = true;
|
|
395
|
+
this.variant = 'inline';
|
|
396
|
+
this.color = 'indigo';
|
|
397
|
+
this.modalTitle = undefined;
|
|
398
|
+
this.modalDescription = undefined;
|
|
399
|
+
}
|
|
400
|
+
_show = false;
|
|
401
|
+
_showSubscriber;
|
|
402
|
+
componendDidLoad() {
|
|
403
|
+
this._show = this.show;
|
|
404
|
+
}
|
|
405
|
+
componentWillRender() {
|
|
406
|
+
this._checkShow();
|
|
407
|
+
}
|
|
408
|
+
componentShouldUpdate() {
|
|
409
|
+
this._checkShow();
|
|
410
|
+
}
|
|
411
|
+
render() {
|
|
412
|
+
if (!this._show) {
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
if (this.variant === 'ghost') {
|
|
416
|
+
return h(Host, { class: 'p-loader variant-ghost' });
|
|
417
|
+
}
|
|
418
|
+
const loader = h("div", { class: `loader color-${this.color}` });
|
|
419
|
+
if (this.variant === 'full-screen') {
|
|
420
|
+
return (h(Host, { class: 'p-loader variant-full-screen' }, h("div", { class: 'loading-screen' }, h("div", { class: 'content' }, h("slot", null), h("div", { class: 'loader-wrapper' }, loader)))));
|
|
421
|
+
}
|
|
422
|
+
return (h(Host, { class: `p-loader variant-default flex ${this.variant === 'full-width' && 'flex w-full justify-center text-4xl'}` }, loader));
|
|
423
|
+
}
|
|
424
|
+
_checkShow() {
|
|
425
|
+
if (this._showSubscriber) {
|
|
426
|
+
this._showSubscriber.unsubscribe();
|
|
427
|
+
this._showSubscriber = null;
|
|
428
|
+
}
|
|
429
|
+
if (typeof this.show !== 'boolean') {
|
|
430
|
+
this._showSubscriber = this.show?.subscribe(show => (this._show = show));
|
|
431
|
+
return;
|
|
432
|
+
}
|
|
433
|
+
this._show = this.show;
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
Loader.style = PLoaderStyle0;
|
|
437
|
+
|
|
438
|
+
export { Button as p_button, Icon as p_icon, Loader as p_loader };
|
|
439
|
+
|
|
440
|
+
//# sourceMappingURL=p-button_3.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-button.p-icon.p-loader.entry.js","mappings":";;;;;AAAA,MAAM,kBAAkB,GAAG,25NAA25N,CAAC;AACv7N,sBAAe,kBAAkB;;ACYjC,MAAM,MAAM,GAAG,GAAG,CACjB;IACC,OAAO;IACP,yBAAyB;IACzB,wCAAwC;IACxC,gBAAgB;CAChB,EACD;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,0CAA0C,CAAC;YACrD,SAAS,EAAE,IAAI;YACf,IAAI,EAAE,CAAC,WAAW,CAAC;YACnB,WAAW,EAAE,CAAC,gBAAgB,CAAC;YAC/B,QAAQ,EAAE,IAAI;SACd;QACD,MAAM,EAAE;YACP,IAAI,EAAE,IAAI;YAC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molecules/button/button.component.scss?tag=p-button","src/components/molecules/button/button.component.tsx","src/components/atoms/icon/icon.component.scss?tag=p-icon","src/components/atoms/icon/icon.component.tsx","src/components/atoms/loader/loader.component.scss?tag=p-loader&encapsulation=shadow","src/components/atoms/loader/loader.component.tsx"],"sourcesContent":["","import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\n\nconst button = cva(\n\t[\n\t\t'group',\n\t\t'font-semibold leading-4',\n\t\t'flex items-center justify-center gap-2',\n\t\t'cursor-pointer',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tprimary: ['bg-supportive-lilac border-black-teal/20'],\n\t\t\t\tsecondary: null,\n\t\t\t\ttext: ['text-teal'],\n\t\t\t\ttransparent: ['bg-transparent'],\n\t\t\t\tdropdown: null,\n\t\t\t},\n\t\t\tactive: {\n\t\t\t\ttrue: null,\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\tloading: {\n\t\t\t\ttrue: 'cursor-wait',\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tsm: ['text-xs h-6'],\n\t\t\t\tbase: ['text-sm h-8'],\n\t\t\t\tlg: ['text-base h-10'],\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\tunderline: {\n\t\t\t\ttrue: null,\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\tbuttonGroupPosition: {\n\t\t\t\tnone: null,\n\t\t\t\tstart: null,\n\t\t\t\tcenter: null,\n\t\t\t\tend: null,\n\t\t\t},\n\t\t\ticonOnly: {\n\t\t\t\ttrue: 'justify-center',\n\t\t\t\tfalse: 'w-inherit py-1',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t// variants\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tclass: ['bg-white border-black-teal/10'],\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'border',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: 'active:border-supportive-lilac-800 active:ring active:ring-2',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'border-supportive-lilac-800 ring ring-2',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'dropdown'],\n\t\t\t\tbuttonGroupPosition: 'none',\n\t\t\t\tclass: 'rounded-lg',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'dropdown'],\n\t\t\t\tbuttonGroupPosition: 'start',\n\t\t\t\tclass: 'rounded-s-lg',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'dropdown'],\n\t\t\t\tbuttonGroupPosition: 'end',\n\t\t\t\tclass: 'rounded-e-lg',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-black-teal',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'bg-supportive-lilac-100 text-black-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass:\n\t\t\t\t\t'drop-shadow-supportive-lilac hover:drop-shadow-2 hover:bg-supportive-lilac-700 active:text-black-teal/60 active:ring-black-teal/10',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'ring-black-teal/10',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'border bg-white-600 text-black-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass:\n\t\t\t\t\t'drop-shadow-1 hover:drop-shadow-1 hover:bg-white-600 active:text-black-teal/60 active:ring-supportive-lilac-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'ring-supportive-lilac-100',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: 'text',\n\t\t\t\tunderline: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'border-b border-teal',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'text',\n\t\t\t\tunderline: true,\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'border-b border-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'text',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'text',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: 'active:text-teal-800',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: 'transparent',\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-dark-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'transparent',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: 'hover:bg-dark-teal active:text-dark-teal-100/60',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'transparent',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-dark-teal-100/60',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent'],\n\t\t\t\tsize: ['base', 'sm'],\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'px-2',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent'],\n\t\t\t\tsize: 'lg',\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'px-3',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'dropdown',\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'p-2',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'text'],\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'py-1',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tsize: 'sm',\n\t\t\t\ticonOnly: true,\n\t\t\t\tclass: 'w-6',\n\t\t\t},\n\t\t\t{\n\t\t\t\tsize: 'base',\n\t\t\t\ticonOnly: true,\n\t\t\t\tclass: 'w-8',\n\t\t\t},\n\t\t\t{\n\t\t\t\tsize: 'lg',\n\t\t\t\ticonOnly: true,\n\t\t\t\tclass: 'w-10',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst icon = cva([], {\n\tvariants: {\n\t\tsize: {\n\t\t\tsm: 'text-sm',\n\t\t\tbase: 'text-base',\n\t\t\tlg: 'text-base',\n\t\t},\n\t\tvariant: {\n\t\t\tprimary: null,\n\t\t\tsecondary: null,\n\t\t\ttext: null,\n\t\t\ttransparent: null,\n\t\t\tdropdown: null,\n\t\t},\n\t\tdisabled: {\n\t\t\ttrue: null,\n\t\t\tfalse: null,\n\t\t},\n\t\tactive: {\n\t\t\ttrue: null,\n\t\t\tfalse: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\tdisabled: false,\n\t\t\tactive: false,\n\t\t\tclass: 'text-black-teal-300 group-hover:text-black-teal',\n\t\t},\n\t\t{\n\t\t\tvariant: 'text',\n\t\t\tdisabled: false,\n\t\t\tactive: false,\n\t\t\tclass: 'text-teal-300 group-hover:text-teal',\n\t\t},\n\t\t{\n\t\t\tvariant: 'transparent',\n\t\t\tdisabled: false,\n\t\t\tactive: false,\n\t\t\tclass: 'text-dark-teal-200 group-hover:text-dark-teal-100',\n\t\t},\n\t],\n});\n\n@Component({\n\ttag: 'p-button',\n\tstyleUrl: 'button.component.scss',\n})\nexport class Button {\n\t/**\n\t * The type of the button\n\t */\n\t@Prop() as: 'a' | 'button' = 'button';\n\n\t/**\n\t * The variant of the button\n\t */\n\t@Prop() variant:\n\t\t| 'primary'\n\t\t| 'secondary'\n\t\t| 'transparent'\n\t\t| 'text'\n\t\t| 'dropdown' = 'primary';\n\n\t/**\n\t * Wether to force an active state\n\t */\n\t@Prop() active: boolean = false;\n\n\t/**\n\t * Wether the text variant has underline\n\t */\n\t@Prop() underline: boolean = true;\n\n\t/**\n\t * Href in case of \"text\" version\n\t */\n\t@Prop() href: string;\n\n\t/**\n\t * Target in case of \"text\" version\n\t */\n\t@Prop() target: string;\n\n\t/**\n\t * The size of the button\n\t */\n\t@Prop() size: 'sm' | 'base' | 'lg' = 'base';\n\n\t/**\n\t * The type of the button\n\t */\n\t@Prop() type: 'button' | 'submit' = 'button';\n\n\t/**\n\t * Wether to show a loader or not\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * Wether to show a chevron or not\n\t */\n\t@Prop() chevron: boolean | 'up' | 'down' = false;\n\n\t/**\n\t * Chevron position\n\t */\n\t@Prop() chevronPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Wether the button is disabled\n\t */\n\t@Prop() disabled: boolean = false;\n\n\t/**\n\t * Icon to show on the button\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * Wether the button is icon only\n\t */\n\t@Prop() iconOnly: boolean = false;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Icon flip\n\t */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * Wether the button should inherit text styles\n\t */\n\t@Prop() inheritText: boolean = false;\n\n\t/**\n\t * Position of the button in the button group, mostly un-used if not in a group\n\t */\n\t@Prop() buttonGroupPosition: 'start' | 'center' | 'end' | 'none' = 'none';\n\n\t/**\n\t * The class of the container passed by parent\n\t */\n\t@Prop() class: string;\n\n\t/**\n\t * Button click event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tonClick: EventEmitter<MouseEvent>;\n\n\trender() {\n\t\tlet loaderColor: 'white' | 'storm' | 'indigo' = 'white';\n\t\tswitch (this.variant) {\n\t\t\tcase 'secondary':\n\t\t\t\tloaderColor = 'storm';\n\t\t\t\tbreak;\n\t\t\tcase 'text':\n\t\t\t\tloaderColor = 'indigo';\n\t\t\t\tbreak;\n\t\t}\n\n\t\tconst VariableTag =\n\t\t\tthis.variant === 'text' || this.href?.length || this.as === 'a'\n\t\t\t\t? 'a'\n\t\t\t\t: 'button';\n\n\t\tconst active = this.active || this.class?.includes('active');\n\n\t\treturn (\n\t\t\t<Host class='p-button block'>\n\t\t\t\t<VariableTag\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttype={this.variant !== 'text' ? this.type : undefined}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tclass={button({\n\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\tunderline: this.underline,\n\t\t\t\t\t\tloading: this.loading,\n\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\tbuttonGroupPosition: this.buttonGroupPosition,\n\t\t\t\t\t\ticonOnly: this.iconOnly,\n\t\t\t\t\t\tactive,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{this.chevron && this.chevronPosition === 'start' && (\n\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\tvariant='caret'\n\t\t\t\t\t\t\trotate={this.chevron === 'up' ? 180 : 0}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.icon &&\n\t\t\t\t\t\tthis.iconPosition === 'start' &&\n\t\t\t\t\t\t!(this.iconOnly && this.loading) &&\n\t\t\t\t\t\tthis._getIcon()}\n\n\t\t\t\t\t<slot />\n\n\t\t\t\t\t{this.icon &&\n\t\t\t\t\t\tthis.iconPosition === 'end' &&\n\t\t\t\t\t\t!this.loading &&\n\t\t\t\t\t\t!this.chevron &&\n\t\t\t\t\t\tthis._getIcon()}\n\n\t\t\t\t\t{this.chevron && !this.loading && this.chevronPosition === 'end' && (\n\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\tvariant='caret'\n\t\t\t\t\t\t\trotate={this.chevron === 'up' ? 180 : 0}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.loading && <p-loader color={loaderColor} />}\n\t\t\t\t</VariableTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('click', { capture: true })\n\thandleClick(ev: MouseEvent) {\n\t\tif (this.loading || this.disabled) {\n\t\t\tev.preventDefault();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.onClick.emit(ev);\n\t}\n\n\tprivate _getIcon() {\n\t\tif (!this.icon) {\n\t\t\treturn;\n\t\t}\n\n\t\treturn (\n\t\t\t<p-icon\n\t\t\t\tclass={icon({\n\t\t\t\t\tsize: this.size,\n\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\tactive: this.active,\n\t\t\t\t})}\n\t\t\t\tvariant={this.icon}\n\t\t\t\tflip={this.iconFlip}\n\t\t\t\trotate={this.iconRotate}\n\t\t\t/>\n\t\t);\n\t}\n}\n",":host {\n\t-webkit-transform-origin: 50% 51%;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { TextSizeOptions } from '../../../types/tailwind';\nimport { icons } from '../../../utils/icons';\n\nexport type IconVariant = keyof typeof icons;\nexport type IconFlipOptions = 'none' | 'horizontal' | 'vertical';\n\nconst icon = cva(['p-icon flex'], {\n\tvariants: {\n\t\tflip: {\n\t\t\tnone: null,\n\t\t\thorizontal: 'scale-x-flip',\n\t\t\tvertical: 'scale-y-flip',\n\t\t},\n\t\tsize: {\n\t\t\tauto: 'text-auto',\n\t\t\txxs: 'text-xxs',\n\t\t\txs: 'text-xs',\n\t\t\tsm: 'text-sm',\n\t\t\tbase: 'text-base',\n\t\t\tlg: 'text-lg',\n\t\t\txl: 'text-xl',\n\t\t\t'2xl': 'text-2xl',\n\t\t\t'3xl': 'text-3xl',\n\t\t\t'4xl': 'text-4xl',\n\t\t},\n\t\ttransform: {\n\t\t\ttrue: 'transform-gpu scale-[0.99]',\n\t\t\tfalse: null,\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-icon',\n\tstyleUrl: 'icon.component.scss',\n\t// shadow: true,\n})\nexport class Icon {\n\t/**\n\t * The icon the be displayed\n\t */\n\t@Prop() variant!: IconVariant;\n\n\t/**\n\t * The size of the icon, using tailwind sizes\n\t */\n\t@Prop() size: TextSizeOptions = 'base';\n\n\t/**\n\t * Wether to rotate the icon x degrees\n\t */\n\t@Prop() rotate: number = 0;\n\n\t/**\n\t * Wether to flip the icon horizontally or vertically\n\t */\n\t@Prop() flip: IconFlipOptions = 'none';\n\n\trender() {\n\t\tconst svg = icons[this.variant];\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={icon({\n\t\t\t\t\tflip: this.flip,\n\t\t\t\t\tsize: this.size,\n\t\t\t\t\ttransform: this.flip !== 'none' || this.rotate > 0 || this.rotate < 0,\n\t\t\t\t})}\n\t\t\t\tstyle={{\n\t\t\t\t\t'--tw-rotate': `${this.rotate}deg`,\n\t\t\t\t}}\n\t\t\t\tinnerHTML={svg}\n\t\t\t></Host>\n\t\t);\n\t}\n}\n",":host {\n\t.loader {\n\t\t@apply inline-block h-[1em] w-[1em] rounded-full;\n\t\t@apply border-2 border-solid border-indigo-light border-t-indigo;\n\t\tanimation: 500ms spin linear infinite;\n\n\t\twill-change: transform;\n\n\t\t&.color-storm {\n\t\t\t@apply border-storm-light/40 border-t-storm #{!important};\n\t\t}\n\n\t\t&.color-white {\n\t\t\t@apply border-indigo-light/40 border-t-white #{!important};\n\t\t}\n\t}\n\n\t.loading-screen {\n\t\t@apply w-screen-safe h-screen-safe fixed top-0 left-0;\n\t\t@apply flex items-center justify-center;\n\t\t@apply bg-mystic;\n\n\t\tz-index: 1001;\n\n\t\t.content {\n\t\t\t@apply max-w-xs;\n\n\t\t\t.loader-wrapper {\n\t\t\t\t@apply flex w-full justify-center;\n\n\t\t\t\t.loader {\n\t\t\t\t\t@apply text-4xl;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n:host(.variant-ghost) {\n\t@apply box-border block;\n\n\twill-change: background, background-position-x, background-color;\n\n\tmin-height: 1em;\n\tmin-width: 1em;\n\n\t--loading-bg: #f7fafc;\n\t--loading-stripe: rgba(252, 253, 254, 1);\n\n\tbackground-color: var(--loading-bg);\n\tbackground: linear-gradient(\n\t\t\t100deg,\n\t\t\trgba(255, 255, 255, 0) 40%,\n\t\t\tvar(--loading-stripe) 50%,\n\t\t\trgba(255, 255, 255, 0) 60%\n\t\t)\n\t\tvar(--loading-bg);\n\tbackground-size: 200% 100%;\n\tbackground-position-x: 180%;\n\tanimation: 1s loading ease-in-out infinite;\n}\n\n@keyframes loading {\n\tto {\n\t\tbackground-position-x: -20%;\n\t}\n}\n\n@keyframes spin {\n\t100% {\n\t\ttransform: rotate(1turn);\n\t}\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\nimport { Observable, Subscription } from 'rxjs';\n\n@Component({\n\ttag: 'p-loader',\n\tstyleUrl: 'loader.component.scss',\n\tshadow: true,\n})\nexport class Loader {\n\t/**\n\t * Wether to show or hide the loader\n\t */\n\t@Prop() show: boolean | Observable<boolean> = true;\n\n\t/**\n\t * Variant of loader\n\t */\n\t@Prop() variant: 'inline' | 'full-width' | 'full-screen' | 'modal' | 'ghost' =\n\t\t'inline';\n\n\t/**\n\t * Color of the loader\n\t */\n\t@Prop() color: 'indigo' | 'white' | 'storm' = 'indigo';\n\n\t/**\n\t * !NOT IMPLEMENTED! Modal title for modal variant\n\t */\n\t@Prop() modalTitle: string;\n\n\t/**\n\t * !NOT IMPLEMENTED! Modal description for modal variant\n\t */\n\t@Prop() modalDescription: string;\n\n\tprivate _show: boolean | Observable<boolean> = false;\n\tprivate _showSubscriber: Subscription;\n\n\tcomponendDidLoad() {\n\t\tthis._show = this.show;\n\t}\n\n\tcomponentWillRender() {\n\t\tthis._checkShow();\n\t}\n\n\tcomponentShouldUpdate() {\n\t\tthis._checkShow();\n\t}\n\n\trender() {\n\t\tif (!this._show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.variant === 'ghost') {\n\t\t\treturn <Host class='p-loader variant-ghost'></Host>;\n\t\t}\n\n\t\tconst loader = <div class={`loader color-${this.color}`}></div>;\n\n\t\tif (this.variant === 'full-screen') {\n\t\t\treturn (\n\t\t\t\t<Host class='p-loader variant-full-screen'>\n\t\t\t\t\t<div class='loading-screen'>\n\t\t\t\t\t\t<div class='content'>\n\t\t\t\t\t\t\t<slot />\n\n\t\t\t\t\t\t\t<div class='loader-wrapper'>{loader}</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</Host>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-loader variant-default flex ${\n\t\t\t\t\tthis.variant === 'full-width' && 'flex w-full justify-center text-4xl'\n\t\t\t\t}`}\n\t\t\t>\n\t\t\t\t{loader}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _checkShow() {\n\t\tif (this._showSubscriber) {\n\t\t\tthis._showSubscriber.unsubscribe();\n\t\t\tthis._showSubscriber = null;\n\t\t}\n\n\t\tif (typeof this.show !== 'boolean') {\n\t\t\tthis._showSubscriber = this.show?.subscribe(show => (this._show = show));\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show = this.show;\n\t}\n}\n"],"version":3}
|
|
@@ -532,7 +532,7 @@ const Calendar = class {
|
|
|
532
532
|
.filter(date => isValid(date));
|
|
533
533
|
}
|
|
534
534
|
render() {
|
|
535
|
-
return (h(Host, { key: '
|
|
535
|
+
return (h(Host, { key: '624da5939a3391fc98be636153ca8a296af47390', class: calendar({ variant: this.variant }) }, this._getView()));
|
|
536
536
|
}
|
|
537
537
|
_getView() {
|
|
538
538
|
if (this._view === 'year') {
|