@paperless/core 0.1.0-alpha.4 → 0.1.0-alpha.401
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 +4168 -0
- package/README.md +27 -2
- package/dist/assets/i18n/page-size-select.i18n.en.json +4 -0
- package/dist/assets/i18n/page-size-select.i18n.nl.json +4 -0
- package/dist/assets/i18n/table-footer.i18n.en.json +3 -0
- package/dist/assets/i18n/table-footer.i18n.nl.json +3 -0
- package/dist/assets/i18n/table-header.i18n.en.json +6 -0
- package/dist/assets/i18n/table-header.i18n.nl.json +6 -0
- package/dist/assets/i18n/table.i18n.en.json +13 -0
- package/dist/assets/i18n/table.i18n.nl.json +13 -0
- package/dist/assets/icons/camera.svg +10 -0
- package/dist/assets/icons/checklist.svg +17 -0
- package/dist/assets/icons/filter.svg +6 -13
- package/dist/assets/icons/folder.svg +19 -0
- package/dist/assets/icons/integration.svg +17 -0
- package/dist/assets/icons/menu.svg +25 -0
- package/dist/assets/icons/more.svg +18 -0
- package/dist/assets/icons/notification.svg +10 -0
- package/dist/assets/icons/reload.svg +10 -0
- package/dist/assets/icons/signout.svg +23 -0
- package/dist/assets/icons/switch.svg +20 -0
- package/dist/assets/icons/task.svg +17 -0
- package/dist/assets/icons/template.svg +17 -0
- package/dist/assets/illustrations/e-mail.svg +1 -0
- package/dist/assets/illustrations/empty-state-add.svg +65 -0
- package/dist/assets/illustrations/empty-state-overview.svg +58 -0
- package/dist/assets/illustrations/empty-state-search.svg +88 -0
- package/dist/assets/images/avatar/company-default.svg +12 -0
- package/dist/assets/images/avatar/user-default.svg +12 -0
- package/dist/assets/images/helper/helper-hover.svg +15 -0
- package/dist/assets/images/helper/helper.svg +15 -0
- package/dist/build/index.esm.js +2 -0
- package/dist/build/index.esm.js.map +1 -0
- package/dist/build/p-09ea2a1a.js +2 -0
- package/dist/build/p-09ea2a1a.js.map +1 -0
- package/dist/build/p-0a3f2fe8.entry.js +2 -0
- package/dist/build/p-0a3f2fe8.entry.js.map +1 -0
- package/dist/build/p-0cb97c5e.entry.js +2 -0
- package/dist/build/p-0cb97c5e.entry.js.map +1 -0
- package/dist/build/p-1b5292a3.entry.js +2 -0
- package/dist/build/p-1b5292a3.entry.js.map +1 -0
- package/dist/build/p-24182b62.entry.js +2 -0
- package/dist/build/p-24182b62.entry.js.map +1 -0
- package/dist/build/p-2b08e371.entry.js +2 -0
- package/dist/build/p-2b08e371.entry.js.map +1 -0
- package/dist/build/p-3b6c4710.entry.js +2 -0
- package/dist/build/p-3b6c4710.entry.js.map +1 -0
- package/dist/build/p-3d8b5cc4.entry.js +2 -0
- package/dist/build/p-3d8b5cc4.entry.js.map +1 -0
- package/dist/build/p-45dfd940.entry.js +2 -0
- package/dist/build/p-45dfd940.entry.js.map +1 -0
- package/dist/build/p-464569dc.entry.js +2 -0
- package/dist/build/p-464569dc.entry.js.map +1 -0
- package/dist/build/p-4e650fe4.js +2 -0
- package/dist/build/p-4e650fe4.js.map +1 -0
- package/dist/build/p-4e66f19d.entry.js +2 -0
- package/dist/build/p-4e66f19d.entry.js.map +1 -0
- package/dist/build/p-5236b565.entry.js +2 -0
- package/dist/build/p-5236b565.entry.js.map +1 -0
- package/dist/build/p-53dca131.entry.js +2 -0
- package/dist/build/p-53dca131.entry.js.map +1 -0
- package/dist/build/p-57411b2b.entry.js +2 -0
- package/dist/build/p-57411b2b.entry.js.map +1 -0
- package/dist/build/p-58b52568.entry.js +2 -0
- package/dist/build/p-58b52568.entry.js.map +1 -0
- package/dist/build/p-5d118f66.entry.js +2 -0
- package/dist/build/p-5d118f66.entry.js.map +1 -0
- package/dist/build/p-5f2e2380.entry.js +2 -0
- package/dist/build/p-5f2e2380.entry.js.map +1 -0
- package/dist/build/p-63ed6e4b.entry.js +2 -0
- package/dist/build/p-63ed6e4b.entry.js.map +1 -0
- package/dist/build/p-6c60fd3d.js +2 -0
- package/dist/build/p-6c60fd3d.js.map +1 -0
- package/dist/build/p-73528e6b.entry.js +2 -0
- package/dist/build/p-73528e6b.entry.js.map +1 -0
- package/dist/build/p-78948e08.entry.js +2 -0
- package/dist/build/p-78948e08.entry.js.map +1 -0
- package/dist/build/p-78ce77d2.entry.js +2 -0
- package/dist/build/p-78ce77d2.entry.js.map +1 -0
- package/dist/build/p-7b94bc6a.entry.js +2 -0
- package/dist/build/p-7b94bc6a.entry.js.map +1 -0
- package/dist/build/p-85dc760d.entry.js +2 -0
- package/dist/build/p-85dc760d.entry.js.map +1 -0
- package/dist/build/p-8959086f.entry.js +2 -0
- package/dist/build/p-8959086f.entry.js.map +1 -0
- package/dist/build/p-8a6728d5.js +2 -0
- package/dist/build/p-8a6728d5.js.map +1 -0
- package/dist/build/p-8fb43cc7.entry.js +2 -0
- package/dist/build/p-8fb43cc7.entry.js.map +1 -0
- package/dist/build/p-93fb216c.entry.js +2 -0
- package/dist/build/p-93fb216c.entry.js.map +1 -0
- package/dist/build/p-ac1af618.js +3 -0
- package/dist/build/p-ac1af618.js.map +1 -0
- package/dist/build/p-ac7b48ff.entry.js +2 -0
- package/dist/build/p-ac7b48ff.entry.js.map +1 -0
- package/dist/build/p-aef8219f.entry.js +2 -0
- package/dist/build/p-aef8219f.entry.js.map +1 -0
- package/dist/build/p-b13a0ee4.entry.js +2 -0
- package/dist/build/p-b13a0ee4.entry.js.map +1 -0
- package/dist/build/p-b273ac6d.js +2 -0
- package/dist/build/p-b273ac6d.js.map +1 -0
- package/dist/build/p-b7b1de31.entry.js +2 -0
- package/dist/build/p-b7b1de31.entry.js.map +1 -0
- package/dist/build/p-c52020cc.entry.js +2 -0
- package/dist/build/p-c52020cc.entry.js.map +1 -0
- package/dist/build/p-c5dff26e.entry.js +2 -0
- package/dist/build/p-c5dff26e.entry.js.map +1 -0
- package/dist/build/p-c6ef7b79.entry.js +2 -0
- package/dist/build/p-c6ef7b79.entry.js.map +1 -0
- package/dist/build/p-d012d066.entry.js +2 -0
- package/dist/build/p-d012d066.entry.js.map +1 -0
- package/dist/build/p-dc01e9eb.entry.js +2 -0
- package/dist/build/p-dc01e9eb.entry.js.map +1 -0
- package/dist/build/p-e0d7a4ee.entry.js +2 -0
- package/dist/build/p-e0d7a4ee.entry.js.map +1 -0
- package/dist/build/p-ea824ef3.entry.js +2 -0
- package/dist/build/p-ea824ef3.entry.js.map +1 -0
- package/dist/build/p-ebc2ae62.entry.js +2 -0
- package/dist/build/p-ebc2ae62.entry.js.map +1 -0
- package/dist/build/p-ebd4ba56.entry.js +2 -0
- package/dist/build/p-ebd4ba56.entry.js.map +1 -0
- package/dist/build/p-ef2eee59.entry.js +2 -0
- package/dist/build/p-ef2eee59.entry.js.map +1 -0
- package/dist/build/p-f07793f6.entry.js +2 -0
- package/dist/build/p-f07793f6.entry.js.map +1 -0
- package/dist/build/p-f6cc1e31.entry.js +2 -0
- package/dist/build/p-f6cc1e31.entry.js.map +1 -0
- package/dist/build/p-f86fcdf4.js +2 -0
- package/dist/build/p-f86fcdf4.js.map +1 -0
- package/dist/build/p-f8c3fff9.entry.js +2 -0
- package/dist/build/p-f8c3fff9.entry.js.map +1 -0
- package/dist/build/paperless.css +1 -81
- package/dist/build/paperless.esm.js +2 -1
- package/dist/build/paperless.esm.js.map +1 -0
- package/dist/cjs/child-of-e472f812.js +11 -0
- package/dist/cjs/child-of-e472f812.js.map +1 -0
- package/dist/cjs/constants-a4459ec9.js +9 -0
- package/dist/cjs/constants-a4459ec9.js.map +1 -0
- package/dist/cjs/index-040ec3f9.js +2483 -0
- package/dist/cjs/index-040ec3f9.js.map +1 -0
- package/dist/cjs/{index-a2da05ae.js → index-13ea09e0.js} +1132 -265
- package/dist/cjs/index-13ea09e0.js.map +1 -0
- package/dist/cjs/index.cjs.js +19 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +6 -3
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/localization-9e2ac7f3.js +62 -0
- package/dist/cjs/localization-9e2ac7f3.js.map +1 -0
- package/dist/cjs/object-get-by-path-6dc21ed5.js +14 -0
- package/dist/cjs/object-get-by-path-6dc21ed5.js.map +1 -0
- package/dist/cjs/p-accordion.cjs.entry.js +36 -0
- package/dist/cjs/p-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/p-attachment.cjs.entry.js +39 -0
- package/dist/cjs/p-attachment.cjs.entry.js.map +1 -0
- package/dist/cjs/p-avatar-group.cjs.entry.js +22 -0
- package/dist/cjs/p-avatar-group.cjs.entry.js.map +1 -0
- package/dist/cjs/p-avatar.cjs.entry.js +45 -0
- package/dist/cjs/p-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/p-backdrop.cjs.entry.js +43 -0
- package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -0
- package/dist/cjs/p-button_3.cjs.entry.js +342 -94
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-calendar.cjs.entry.js +711 -0
- package/dist/cjs/p-calendar.cjs.entry.js.map +1 -0
- package/dist/cjs/p-card-body.cjs.entry.js +22 -0
- package/dist/cjs/p-card-body.cjs.entry.js.map +1 -0
- package/dist/cjs/p-card-container.cjs.entry.js +23 -0
- package/dist/cjs/p-card-container.cjs.entry.js.map +1 -0
- package/dist/cjs/p-card-header.cjs.entry.js +24 -0
- package/dist/cjs/p-card-header.cjs.entry.js.map +1 -0
- package/dist/cjs/p-content-slider.cjs.entry.js +212 -0
- package/dist/cjs/p-content-slider.cjs.entry.js.map +1 -0
- package/dist/cjs/p-counter.cjs.entry.js +23 -0
- package/dist/cjs/p-counter.cjs.entry.js.map +1 -0
- package/dist/cjs/p-datepicker.cjs.entry.js +4083 -0
- package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -0
- package/dist/cjs/p-divider.cjs.entry.js +24 -0
- package/dist/cjs/p-divider.cjs.entry.js.map +1 -0
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +51 -0
- package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-drawer.cjs.entry.js +65 -0
- package/dist/cjs/p-drawer.cjs.entry.js.map +1 -0
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +23 -0
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -0
- package/dist/cjs/p-dropdown_2.cjs.entry.js +167 -0
- package/dist/cjs/p-dropdown_2.cjs.entry.js.map +1 -0
- package/dist/cjs/p-helper_3.cjs.entry.js +135 -0
- package/dist/cjs/p-helper_3.cjs.entry.js.map +1 -0
- package/dist/cjs/{p-illustration.cjs.entry.js → p-illustration_6.cjs.entry.js} +1377 -5
- package/dist/cjs/p-illustration_6.cjs.entry.js.map +1 -0
- package/dist/cjs/p-info-panel.cjs.entry.js +29 -0
- package/dist/cjs/p-info-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/p-label_3.cjs.entry.js +65 -0
- package/dist/cjs/p-label_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-layout.cjs.entry.js +22 -0
- package/dist/cjs/p-layout.cjs.entry.js.map +1 -0
- package/dist/cjs/p-modal-body_4.cjs.entry.js +79 -0
- package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -0
- package/dist/cjs/p-modal.cjs.entry.js +61 -0
- package/dist/cjs/p-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/p-navbar.cjs.entry.js +30 -0
- package/dist/cjs/p-navbar.cjs.entry.js.map +1 -0
- package/dist/cjs/p-navigation-item.cjs.entry.js +26 -0
- package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -0
- package/dist/cjs/p-page-size-select_3.cjs.entry.js +224 -0
- package/dist/cjs/p-page-size-select_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-profile.cjs.entry.js +45 -0
- package/dist/cjs/p-profile.cjs.entry.js.map +1 -0
- package/dist/cjs/p-select.cjs.entry.js +216 -0
- package/dist/cjs/p-select.cjs.entry.js.map +1 -0
- package/dist/cjs/p-slider-indicator.cjs.entry.js +22 -0
- package/dist/cjs/p-slider-indicator.cjs.entry.js.map +1 -0
- package/dist/cjs/p-status.cjs.entry.js +51 -0
- package/dist/cjs/p-status.cjs.entry.js.map +1 -0
- package/dist/cjs/p-stepper-item.cjs.entry.js +26 -0
- package/dist/cjs/p-stepper-item.cjs.entry.js.map +1 -0
- package/dist/cjs/p-stepper-line.cjs.entry.js +23 -0
- package/dist/cjs/p-stepper-line.cjs.entry.js.map +1 -0
- package/dist/cjs/p-stepper.cjs.entry.js +80 -0
- package/dist/cjs/p-stepper.cjs.entry.js.map +1 -0
- package/dist/cjs/p-tab-group.cjs.entry.js +20 -0
- package/dist/cjs/p-tab-group.cjs.entry.js.map +1 -0
- package/dist/cjs/p-tab-item.cjs.entry.js +22 -0
- package/dist/cjs/p-tab-item.cjs.entry.js.map +1 -0
- package/dist/cjs/p-table-column.cjs.entry.js +28 -0
- package/dist/cjs/p-table-column.cjs.entry.js.map +1 -0
- package/dist/cjs/p-table.cjs.entry.js +352 -0
- package/dist/cjs/p-table.cjs.entry.js.map +1 -0
- package/dist/cjs/p-toast-container.cjs.entry.js +22 -0
- package/dist/cjs/p-toast-container.cjs.entry.js.map +1 -0
- package/dist/cjs/p-toast.cjs.entry.js +35 -0
- package/dist/cjs/p-toast.cjs.entry.js.map +1 -0
- package/dist/cjs/p-tooltip.cjs.entry.js +70 -1816
- package/dist/cjs/p-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/paperless.cjs.js +12 -3
- package/dist/cjs/paperless.cjs.js.map +1 -0
- package/dist/cjs/popper-d7a0f999.js +1803 -0
- package/dist/cjs/popper-d7a0f999.js.map +1 -0
- package/dist/collection/assets/icons/camera.svg +10 -0
- package/dist/collection/assets/icons/checklist.svg +17 -0
- package/dist/collection/assets/icons/filter.svg +6 -13
- package/dist/collection/assets/icons/folder.svg +19 -0
- package/dist/collection/assets/icons/integration.svg +17 -0
- package/dist/collection/assets/icons/menu.svg +25 -0
- package/dist/collection/assets/icons/more.svg +18 -0
- package/dist/collection/assets/icons/notification.svg +10 -0
- package/dist/collection/assets/icons/reload.svg +10 -0
- package/dist/collection/assets/icons/signout.svg +23 -0
- package/dist/collection/assets/icons/switch.svg +20 -0
- package/dist/collection/assets/icons/task.svg +17 -0
- package/dist/collection/assets/icons/template.svg +17 -0
- package/dist/collection/assets/illustrations/e-mail.svg +1 -0
- package/dist/collection/assets/illustrations/empty-state-add.svg +65 -0
- package/dist/collection/assets/illustrations/empty-state-overview.svg +58 -0
- package/dist/collection/assets/illustrations/empty-state-search.svg +88 -0
- package/dist/collection/assets/images/avatar/company-default.svg +12 -0
- package/dist/collection/assets/images/avatar/user-default.svg +12 -0
- package/dist/collection/assets/images/helper/helper-hover.svg +15 -0
- package/dist/collection/assets/images/helper/helper.svg +15 -0
- package/dist/collection/collection-manifest.json +59 -3
- package/dist/collection/components/atoms/avatar/avatar.component.css +1 -0
- package/dist/collection/components/atoms/avatar/avatar.component.js +126 -0
- package/dist/collection/components/atoms/avatar/avatar.component.js.map +1 -0
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +1 -0
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +42 -0
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js.map +1 -0
- package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -0
- package/dist/collection/components/atoms/backdrop/backdrop.component.js +149 -0
- package/dist/collection/components/atoms/backdrop/backdrop.component.js.map +1 -0
- package/dist/collection/components/atoms/button/button.component.css +1 -71
- package/dist/collection/components/atoms/button/button.component.js +311 -227
- package/dist/collection/components/atoms/button/button.component.js.map +1 -0
- package/dist/collection/components/atoms/card-body/card-body.component.css +1 -0
- package/dist/collection/components/atoms/card-body/card-body.component.js +43 -0
- package/dist/collection/components/atoms/card-body/card-body.component.js.map +1 -0
- package/dist/collection/components/atoms/card-container/card-container.component.css +1 -0
- package/dist/collection/components/atoms/card-container/card-container.component.js +63 -0
- package/dist/collection/components/atoms/card-container/card-container.component.js.map +1 -0
- package/dist/collection/components/atoms/card-header/card-header.component.css +1 -0
- package/dist/collection/components/atoms/card-header/card-header.component.js +62 -0
- package/dist/collection/components/atoms/card-header/card-header.component.js.map +1 -0
- package/dist/collection/components/atoms/counter/counter.component.css +1 -0
- package/dist/collection/components/atoms/counter/counter.component.js +63 -0
- package/dist/collection/components/atoms/counter/counter.component.js.map +1 -0
- package/dist/collection/components/atoms/divider/divider.component.css +1 -0
- package/dist/collection/components/atoms/divider/divider.component.js +22 -0
- package/dist/collection/components/atoms/divider/divider.component.js.map +1 -0
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.css +1 -0
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +44 -0
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.js.map +1 -0
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.css +1 -0
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.js +48 -0
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.js.map +1 -0
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.css +1 -0
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.js +66 -0
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.js.map +1 -0
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -0
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +62 -0
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js.map +1 -0
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -0
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +86 -0
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -0
- package/dist/collection/components/atoms/helper/helper.component.css +1 -0
- package/dist/collection/components/atoms/helper/helper.component.js +49 -0
- package/dist/collection/components/atoms/helper/helper.component.js.map +1 -0
- package/dist/collection/components/atoms/icon/icon.component.css +1 -0
- package/dist/collection/components/atoms/icon/icon.component.js +141 -96
- package/dist/collection/components/atoms/icon/icon.component.js.map +1 -0
- package/dist/collection/components/atoms/illustration/illustration.component.js +28 -28
- package/dist/collection/components/atoms/illustration/illustration.component.js.map +1 -0
- package/dist/collection/components/atoms/info-panel/info-panel.component.css +1 -0
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +103 -0
- package/dist/collection/components/atoms/info-panel/info-panel.component.js.map +1 -0
- package/dist/collection/components/atoms/label/label.component.css +1 -0
- package/dist/collection/components/atoms/label/label.component.js +171 -0
- package/dist/collection/components/atoms/label/label.component.js.map +1 -0
- package/dist/collection/components/atoms/layout/layout.component.css +1 -0
- package/dist/collection/components/atoms/layout/layout.component.js +44 -0
- package/dist/collection/components/atoms/layout/layout.component.js.map +1 -0
- package/dist/collection/components/atoms/loader/loader.component.css +1 -26
- package/dist/collection/components/atoms/loader/loader.component.js +115 -115
- package/dist/collection/components/atoms/loader/loader.component.js.map +1 -0
- package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -0
- package/dist/collection/components/atoms/modal-body/modal-body.component.js +63 -0
- package/dist/collection/components/atoms/modal-body/modal-body.component.js.map +1 -0
- package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -0
- package/dist/collection/components/atoms/modal-container/modal-container.component.js +75 -0
- package/dist/collection/components/atoms/modal-container/modal-container.component.js.map +1 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +19 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js.map +1 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.js +66 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.js.map +1 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +44 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js.map +1 -0
- package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -0
- package/dist/collection/components/atoms/segment-container/segment-container.component.js +18 -0
- package/dist/collection/components/atoms/segment-container/segment-container.component.js.map +1 -0
- package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -0
- package/dist/collection/components/atoms/segment-item/segment-item.component.js +119 -0
- package/dist/collection/components/atoms/segment-item/segment-item.component.js.map +1 -0
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.css +1 -0
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +44 -0
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js.map +1 -0
- package/dist/collection/components/atoms/status/status.component.css +1 -0
- package/dist/collection/components/atoms/status/status.component.js +138 -0
- package/dist/collection/components/atoms/status/status.component.js.map +1 -0
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +1 -0
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +120 -0
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js.map +1 -0
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +1 -0
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +63 -0
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js.map +1 -0
- package/dist/collection/components/atoms/tab-group/tab-group.component.js +9 -0
- package/dist/collection/components/atoms/tab-group/tab-group.component.js.map +1 -0
- package/dist/collection/components/atoms/tab-item/tab-item.component.css +1 -0
- package/dist/collection/components/atoms/tab-item/tab-item.component.js +44 -0
- package/dist/collection/components/atoms/tab-item/tab-item.component.js.map +1 -0
- package/dist/collection/components/atoms/table-container/table-container.component.css +1 -0
- package/dist/collection/components/atoms/table-container/table-container.component.js +19 -0
- package/dist/collection/components/atoms/table-container/table-container.component.js.map +1 -0
- package/dist/collection/components/atoms/toast-container/toast-container.component.css +1 -0
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +44 -0
- package/dist/collection/components/atoms/toast-container/toast-container.component.js.map +1 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -34
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +253 -122
- package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -0
- package/dist/collection/components/helpers/table-column/table-column.component.js +151 -0
- package/dist/collection/components/helpers/table-column/table-column.component.js.map +1 -0
- package/dist/collection/components/molecules/accordion/accordion.component.css +1 -0
- package/dist/collection/components/molecules/accordion/accordion.component.js +128 -0
- package/dist/collection/components/molecules/accordion/accordion.component.js.map +1 -0
- package/dist/collection/components/molecules/attachment/attachment.component.css +1 -0
- package/dist/collection/components/molecules/attachment/attachment.component.js +145 -0
- package/dist/collection/components/molecules/attachment/attachment.component.js.map +1 -0
- package/dist/collection/components/molecules/calendar/calendar.component.css +1 -0
- package/dist/collection/components/molecules/calendar/calendar.component.js +504 -0
- package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.css +1 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +317 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.js.map +1 -0
- package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -0
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +507 -0
- package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +373 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -0
- package/dist/collection/components/molecules/input-error/input-error.component.js +60 -0
- package/dist/collection/components/molecules/input-error/input-error.component.js.map +1 -0
- package/dist/collection/components/molecules/input-group/input-group.component.css +1 -0
- package/dist/collection/components/molecules/input-group/input-group.component.js +370 -0
- package/dist/collection/components/molecules/input-group/input-group.component.js.map +1 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +1 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +121 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -0
- package/dist/collection/components/molecules/page-size-select/constants.js +3 -0
- package/dist/collection/components/molecules/page-size-select/constants.js.map +1 -0
- package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +207 -0
- package/dist/collection/components/molecules/page-size-select/page-size-select.component.js.map +1 -0
- package/dist/collection/components/molecules/pagination/pagination.component.css +1 -0
- package/dist/collection/components/molecules/pagination/pagination.component.js +267 -0
- package/dist/collection/components/molecules/pagination/pagination.component.js.map +1 -0
- package/dist/collection/components/molecules/profile/profile.component.css +1 -0
- package/dist/collection/components/molecules/profile/profile.component.js +90 -0
- package/dist/collection/components/molecules/profile/profile.component.js.map +1 -0
- package/dist/collection/components/molecules/select/select.component.css +1 -0
- package/dist/collection/components/molecules/select/select.component.js +675 -0
- package/dist/collection/components/molecules/select/select.component.js.map +1 -0
- package/dist/collection/components/molecules/stepper/stepper.component.css +1 -0
- package/dist/collection/components/molecules/stepper/stepper.component.js +141 -0
- package/dist/collection/components/molecules/stepper/stepper.component.js.map +1 -0
- package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -0
- package/dist/collection/components/molecules/table-cell/table-cell.component.js +263 -0
- package/dist/collection/components/molecules/table-cell/table-cell.component.js.map +1 -0
- package/dist/collection/components/molecules/table-footer/table-footer.component.css +1 -0
- package/dist/collection/components/molecules/table-footer/table-footer.component.js +276 -0
- package/dist/collection/components/molecules/table-footer/table-footer.component.js.map +1 -0
- package/dist/collection/components/molecules/table-header/table-header.component.css +1 -0
- package/dist/collection/components/molecules/table-header/table-header.component.js +452 -0
- package/dist/collection/components/molecules/table-header/table-header.component.js.map +1 -0
- package/dist/collection/components/molecules/table-row/table-row.component.css +1 -0
- package/dist/collection/components/molecules/table-row/table-row.component.js +65 -0
- package/dist/collection/components/molecules/table-row/table-row.component.js.map +1 -0
- package/dist/collection/components/molecules/toast/toast.component.css +1 -0
- package/dist/collection/components/molecules/toast/toast.component.js +197 -0
- package/dist/collection/components/molecules/toast/toast.component.js.map +1 -0
- package/dist/collection/components/organisms/drawer/drawer.component.css +1 -0
- package/dist/collection/components/organisms/drawer/drawer.component.js +234 -0
- package/dist/collection/components/organisms/drawer/drawer.component.js.map +1 -0
- package/dist/collection/components/organisms/modal/modal.component.js +259 -0
- package/dist/collection/components/organisms/modal/modal.component.js.map +1 -0
- package/dist/collection/components/organisms/navbar/navbar.component.css +1 -0
- package/dist/collection/components/organisms/navbar/navbar.component.js +90 -0
- package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -0
- package/dist/collection/components/organisms/table/table.component.css +1 -0
- package/dist/collection/components/organisms/table/table.component.js +1292 -0
- package/dist/collection/components/organisms/table/table.component.js.map +1 -0
- package/dist/collection/index.js +3 -1
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/tailwind/animation.js +87 -0
- package/dist/collection/tailwind/backdrop-blur.js +3 -0
- package/dist/collection/tailwind/border-radius.js +9 -6
- package/dist/collection/tailwind/height.js +5 -0
- package/dist/collection/tailwind/plugins/safe-area.js +100 -0
- package/dist/collection/tailwind/screens.js +8 -0
- package/dist/collection/tailwind/shadows.js +11 -5
- package/dist/collection/tailwind/spacing.js +10 -0
- package/dist/collection/tailwind/typography.js +21 -0
- package/dist/collection/tailwind/width.js +20 -0
- package/dist/collection/tailwind/z-index.js +17 -0
- package/dist/collection/tailwind.config.js +33 -14
- package/dist/collection/types/index.js +3 -0
- package/dist/collection/types/index.js.map +1 -0
- package/dist/collection/types/table.js +2 -0
- package/dist/collection/types/table.js.map +1 -0
- package/dist/collection/types/tailwind.js +2 -0
- package/dist/collection/types/tailwind.js.map +1 -0
- package/dist/collection/utils/child-of.js +6 -0
- package/dist/collection/utils/child-of.js.map +1 -0
- package/dist/collection/utils/icons.js +25 -0
- package/dist/collection/utils/icons.js.map +1 -0
- package/dist/collection/utils/illustrations.js +9 -0
- package/dist/collection/utils/illustrations.js.map +1 -0
- package/dist/collection/utils/index.js +7 -0
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/collection/utils/localization.js +56 -0
- package/dist/collection/utils/localization.js.map +1 -0
- package/dist/collection/utils/object-get-by-path.js +9 -0
- package/dist/collection/utils/object-get-by-path.js.map +1 -0
- package/dist/collection/utils/transformers.js +5 -0
- package/dist/collection/utils/transformers.js.map +1 -0
- package/dist/components/backdrop.component.js +59 -0
- package/dist/components/backdrop.component.js.map +1 -0
- package/dist/components/button.component.js +102 -0
- package/dist/components/button.component.js.map +1 -0
- package/dist/components/calendar.component.js +3199 -0
- package/dist/components/calendar.component.js.map +1 -0
- package/dist/components/child-of.js +9 -0
- package/dist/components/child-of.js.map +1 -0
- package/dist/components/counter.component.js +37 -0
- package/dist/components/counter.component.js.map +1 -0
- package/dist/components/divider.component.js +35 -0
- package/dist/components/divider.component.js.map +1 -0
- package/dist/components/drawer-body.component.js +35 -0
- package/dist/components/drawer-body.component.js.map +1 -0
- package/dist/components/drawer-container.component.js +34 -0
- package/dist/components/drawer-container.component.js.map +1 -0
- package/dist/components/drawer-header.component.js +54 -0
- package/dist/components/drawer-header.component.js.map +1 -0
- package/dist/components/dropdown-menu-container.component.js +36 -0
- package/dist/components/dropdown-menu-container.component.js.map +1 -0
- package/dist/components/dropdown-menu-item.component.js +45 -0
- package/dist/components/dropdown-menu-item.component.js.map +1 -0
- package/dist/components/dropdown.component.js +179 -0
- package/dist/components/dropdown.component.js.map +1 -0
- package/dist/components/helper.component.js +41 -0
- package/dist/components/helper.component.js.map +1 -0
- package/dist/components/icon.component.js +273 -23
- package/dist/components/icon.component.js.map +1 -0
- package/dist/{esm/p-illustration.entry.js → components/illustration.component.js} +245 -10
- package/dist/components/illustration.component.js.map +1 -0
- package/dist/components/index.d.ts +9 -8
- package/dist/components/index.js +13 -6
- package/dist/components/index.js.map +1 -0
- package/dist/components/input-error.component.js +50 -0
- package/dist/components/input-error.component.js.map +1 -0
- package/dist/components/input-group.component.js +156 -0
- package/dist/components/input-group.component.js.map +1 -0
- package/dist/components/label.component.js +54 -0
- package/dist/components/label.component.js.map +1 -0
- package/dist/components/loader.component.js +14 -15
- package/dist/components/loader.component.js.map +1 -0
- package/dist/components/localization.js +59 -0
- package/dist/components/localization.js.map +1 -0
- package/dist/components/modal-body.component.js +37 -0
- package/dist/components/modal-body.component.js.map +1 -0
- package/dist/components/modal-container.component.js +49 -0
- package/dist/components/modal-container.component.js.map +1 -0
- package/dist/components/modal-footer.component.js +38 -0
- package/dist/components/modal-footer.component.js.map +1 -0
- package/dist/components/modal-header.component.js +54 -0
- package/dist/components/modal-header.component.js.map +1 -0
- package/dist/components/object-get-by-path.js +12 -0
- package/dist/components/object-get-by-path.js.map +1 -0
- package/dist/components/p-accordion.d.ts +11 -0
- package/dist/components/p-accordion.js +67 -0
- package/dist/components/p-accordion.js.map +1 -0
- package/dist/components/p-attachment.d.ts +11 -0
- package/dist/components/p-attachment.js +88 -0
- package/dist/components/p-attachment.js.map +1 -0
- package/dist/components/p-avatar-group.d.ts +11 -0
- package/dist/components/p-avatar-group.js +37 -0
- package/dist/components/p-avatar-group.js.map +1 -0
- package/dist/components/p-avatar.d.ts +11 -0
- package/dist/components/p-avatar.js +64 -0
- package/dist/components/p-avatar.js.map +1 -0
- package/dist/components/p-backdrop.d.ts +11 -0
- package/dist/components/p-backdrop.js +8 -0
- package/dist/components/p-backdrop.js.map +1 -0
- package/dist/components/p-button.js +3 -93
- package/dist/components/p-button.js.map +1 -0
- package/dist/components/p-calendar.d.ts +11 -0
- package/dist/components/p-calendar.js +8 -0
- package/dist/components/p-calendar.js.map +1 -0
- package/dist/components/p-card-body.d.ts +11 -0
- package/dist/components/p-card-body.js +37 -0
- package/dist/components/p-card-body.js.map +1 -0
- package/dist/components/p-card-container.d.ts +11 -0
- package/dist/components/p-card-container.js +40 -0
- package/dist/components/p-card-container.js.map +1 -0
- package/dist/components/p-card-header.d.ts +11 -0
- package/dist/components/p-card-header.js +46 -0
- package/dist/components/p-card-header.js.map +1 -0
- package/dist/components/p-content-slider.d.ts +11 -0
- package/dist/components/p-content-slider.js +241 -0
- package/dist/components/p-content-slider.js.map +1 -0
- package/dist/components/p-counter.d.ts +11 -0
- package/dist/components/p-counter.js +8 -0
- package/dist/components/p-counter.js.map +1 -0
- package/dist/components/p-datepicker.d.ts +11 -0
- package/dist/components/p-datepicker.js +4164 -0
- package/dist/components/p-datepicker.js.map +1 -0
- package/dist/components/p-divider.d.ts +11 -0
- package/dist/components/p-divider.js +8 -0
- package/dist/components/p-divider.js.map +1 -0
- package/dist/components/p-drawer-body.d.ts +11 -0
- package/dist/components/p-drawer-body.js +8 -0
- package/dist/components/p-drawer-body.js.map +1 -0
- package/dist/components/p-drawer-container.d.ts +11 -0
- package/dist/components/p-drawer-container.js +8 -0
- package/dist/components/p-drawer-container.js.map +1 -0
- package/dist/components/p-drawer-header.d.ts +11 -0
- package/dist/components/p-drawer-header.js +8 -0
- package/dist/components/p-drawer-header.js.map +1 -0
- package/dist/components/p-drawer.d.ts +11 -0
- package/dist/components/p-drawer.js +130 -0
- package/dist/components/p-drawer.js.map +1 -0
- package/dist/components/p-dropdown-menu-container.d.ts +11 -0
- package/dist/components/p-dropdown-menu-container.js +8 -0
- package/dist/components/p-dropdown-menu-container.js.map +1 -0
- package/dist/components/p-dropdown-menu-item.d.ts +11 -0
- package/dist/components/p-dropdown-menu-item.js +8 -0
- package/dist/components/p-dropdown-menu-item.js.map +1 -0
- package/dist/components/p-dropdown.d.ts +11 -0
- package/dist/components/p-dropdown.js +8 -0
- package/dist/components/p-dropdown.js.map +1 -0
- package/dist/components/p-helper.d.ts +11 -0
- package/dist/components/p-helper.js +8 -0
- package/dist/components/p-helper.js.map +1 -0
- package/dist/components/p-icon.js +2 -0
- package/dist/components/p-icon.js.map +1 -0
- package/dist/components/p-illustration.js +3 -1436
- package/dist/components/p-illustration.js.map +1 -0
- package/dist/components/p-info-panel.d.ts +11 -0
- package/dist/components/p-info-panel.js +54 -0
- package/dist/components/p-info-panel.js.map +1 -0
- package/dist/components/p-input-error.d.ts +11 -0
- package/dist/components/p-input-error.js +8 -0
- package/dist/components/p-input-error.js.map +1 -0
- package/dist/components/p-input-group.d.ts +11 -0
- package/dist/components/p-input-group.js +8 -0
- package/dist/components/p-input-group.js.map +1 -0
- package/dist/components/p-label.d.ts +11 -0
- package/dist/components/p-label.js +8 -0
- package/dist/components/p-label.js.map +1 -0
- package/dist/components/p-layout.d.ts +11 -0
- package/dist/components/p-layout.js +38 -0
- package/dist/components/p-layout.js.map +1 -0
- package/dist/components/p-loader.js +2 -0
- package/dist/components/p-loader.js.map +1 -0
- package/dist/components/p-modal-body.d.ts +11 -0
- package/dist/components/p-modal-body.js +8 -0
- package/dist/components/p-modal-body.js.map +1 -0
- package/dist/components/p-modal-container.d.ts +11 -0
- package/dist/components/p-modal-container.js +8 -0
- package/dist/components/p-modal-container.js.map +1 -0
- package/dist/components/p-modal-footer.d.ts +11 -0
- package/dist/components/p-modal-footer.js +8 -0
- package/dist/components/p-modal-footer.js.map +1 -0
- package/dist/components/p-modal-header.d.ts +11 -0
- package/dist/components/p-modal-header.js +8 -0
- package/dist/components/p-modal-header.js.map +1 -0
- package/dist/components/p-modal.d.ts +11 -0
- package/dist/components/p-modal.js +140 -0
- package/dist/components/p-modal.js.map +1 -0
- package/dist/components/p-navbar.d.ts +11 -0
- package/dist/components/p-navbar.js +72 -0
- package/dist/components/p-navbar.js.map +1 -0
- package/dist/components/p-navigation-item.d.ts +11 -0
- package/dist/components/p-navigation-item.js +58 -0
- package/dist/components/p-navigation-item.js.map +1 -0
- package/dist/components/p-page-size-select.d.ts +11 -0
- package/dist/components/p-page-size-select.js +8 -0
- package/dist/components/p-page-size-select.js.map +1 -0
- package/dist/components/p-pagination-item.d.ts +11 -0
- package/dist/components/p-pagination-item.js +8 -0
- package/dist/components/p-pagination-item.js.map +1 -0
- package/dist/components/p-pagination.d.ts +11 -0
- package/dist/components/p-pagination.js +8 -0
- package/dist/components/p-pagination.js.map +1 -0
- package/dist/components/p-profile.d.ts +11 -0
- package/dist/components/p-profile.js +81 -0
- package/dist/components/p-profile.js.map +1 -0
- package/dist/components/p-segment-container.d.ts +11 -0
- package/dist/components/p-segment-container.js +8 -0
- package/dist/components/p-segment-container.js.map +1 -0
- package/dist/components/p-segment-item.d.ts +11 -0
- package/dist/components/p-segment-item.js +8 -0
- package/dist/components/p-segment-item.js.map +1 -0
- package/dist/components/p-select.d.ts +11 -0
- package/dist/components/p-select.js +308 -0
- package/dist/components/p-select.js.map +1 -0
- package/dist/components/p-slider-indicator.d.ts +11 -0
- package/dist/components/p-slider-indicator.js +8 -0
- package/dist/components/p-slider-indicator.js.map +1 -0
- package/dist/components/p-status.d.ts +11 -0
- package/dist/components/p-status.js +75 -0
- package/dist/components/p-status.js.map +1 -0
- package/dist/components/p-stepper-item.d.ts +11 -0
- package/dist/components/p-stepper-item.js +52 -0
- package/dist/components/p-stepper-item.js.map +1 -0
- package/dist/components/p-stepper-line.d.ts +11 -0
- package/dist/components/p-stepper-line.js +8 -0
- package/dist/components/p-stepper-line.js.map +1 -0
- package/dist/components/p-stepper.d.ts +11 -0
- package/dist/components/p-stepper.js +104 -0
- package/dist/components/p-stepper.js.map +1 -0
- package/dist/components/p-tab-group.d.ts +11 -0
- package/dist/components/p-tab-group.js +38 -0
- package/dist/components/p-tab-group.js.map +1 -0
- package/dist/components/p-tab-item.d.ts +11 -0
- package/dist/components/p-tab-item.js +38 -0
- package/dist/components/p-tab-item.js.map +1 -0
- package/dist/components/p-table-cell.d.ts +11 -0
- package/dist/components/p-table-cell.js +8 -0
- package/dist/components/p-table-cell.js.map +1 -0
- package/dist/components/p-table-column.d.ts +11 -0
- package/dist/components/p-table-column.js +48 -0
- package/dist/components/p-table-column.js.map +1 -0
- package/dist/components/p-table-container.d.ts +11 -0
- package/dist/components/p-table-container.js +8 -0
- package/dist/components/p-table-container.js.map +1 -0
- package/dist/components/p-table-footer.d.ts +11 -0
- package/dist/components/p-table-footer.js +8 -0
- package/dist/components/p-table-footer.js.map +1 -0
- package/dist/components/p-table-header.d.ts +11 -0
- package/dist/components/p-table-header.js +8 -0
- package/dist/components/p-table-header.js.map +1 -0
- package/dist/components/p-table-row.d.ts +11 -0
- package/dist/components/p-table-row.js +8 -0
- package/dist/components/p-table-row.js.map +1 -0
- package/dist/components/p-table.d.ts +11 -0
- package/dist/components/p-table.js +544 -0
- package/dist/components/p-table.js.map +1 -0
- package/dist/components/p-toast-container.d.ts +11 -0
- package/dist/components/p-toast-container.js +38 -0
- package/dist/components/p-toast-container.js.map +1 -0
- package/dist/components/p-toast.d.ts +11 -0
- package/dist/components/p-toast.js +75 -0
- package/dist/components/p-toast.js.map +1 -0
- package/dist/components/p-tooltip.js +3 -1886
- package/dist/components/p-tooltip.js.map +1 -0
- package/dist/components/page-size-select.component.js +107 -0
- package/dist/components/page-size-select.component.js.map +1 -0
- package/dist/components/pagination-item.component.js +35 -0
- package/dist/components/pagination-item.component.js.map +1 -0
- package/dist/components/pagination.component.js +196 -0
- package/dist/components/pagination.component.js.map +1 -0
- package/dist/components/popper.js +1801 -0
- package/dist/components/popper.js.map +1 -0
- package/dist/components/segment-container.component.js +31 -0
- package/dist/components/segment-container.component.js.map +1 -0
- package/dist/components/segment-item.component.js +53 -0
- package/dist/components/segment-item.component.js.map +1 -0
- package/dist/components/slider-indicator.component.js +35 -0
- package/dist/components/slider-indicator.component.js.map +1 -0
- package/dist/components/stepper-line.component.js +37 -0
- package/dist/components/stepper-line.component.js.map +1 -0
- package/dist/components/table-cell.component.js +137 -0
- package/dist/components/table-cell.component.js.map +1 -0
- package/dist/components/table-container.component.js +32 -0
- package/dist/components/table-container.component.js.map +1 -0
- package/dist/components/table-footer.component.js +129 -0
- package/dist/components/table-footer.component.js.map +1 -0
- package/dist/components/table-header.component.js +1070 -0
- package/dist/components/table-header.component.js.map +1 -0
- package/dist/components/table-row.component.js +45 -0
- package/dist/components/table-row.component.js.map +1 -0
- package/dist/components/tooltip.component.js +145 -0
- package/dist/components/tooltip.component.js.map +1 -0
- package/dist/esm/child-of-90a8c4b5.js +9 -0
- package/dist/esm/child-of-90a8c4b5.js.map +1 -0
- package/dist/esm/constants-826f9460.js +6 -0
- package/dist/esm/constants-826f9460.js.map +1 -0
- package/dist/esm/index-340e085c.js +2460 -0
- package/dist/esm/index-340e085c.js.map +1 -0
- package/dist/esm/{index-d08bfe75.js → index-94339e77.js} +1132 -266
- package/dist/esm/index-94339e77.js.map +1 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +6 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/localization-901dc2d3.js +59 -0
- package/dist/esm/localization-901dc2d3.js.map +1 -0
- package/dist/esm/object-get-by-path-d6427a61.js +12 -0
- package/dist/esm/object-get-by-path-d6427a61.js.map +1 -0
- package/dist/esm/p-accordion.entry.js +32 -0
- package/dist/esm/p-accordion.entry.js.map +1 -0
- package/dist/esm/p-attachment.entry.js +35 -0
- package/dist/esm/p-attachment.entry.js.map +1 -0
- package/dist/esm/p-avatar-group.entry.js +18 -0
- package/dist/esm/p-avatar-group.entry.js.map +1 -0
- package/dist/esm/p-avatar.entry.js +41 -0
- package/dist/esm/p-avatar.entry.js.map +1 -0
- package/dist/esm/p-backdrop.entry.js +39 -0
- package/dist/esm/p-backdrop.entry.js.map +1 -0
- package/dist/esm/p-button_3.entry.js +342 -94
- package/dist/esm/p-button_3.entry.js.map +1 -0
- package/dist/esm/p-calendar.entry.js +707 -0
- package/dist/esm/p-calendar.entry.js.map +1 -0
- package/dist/esm/p-card-body.entry.js +18 -0
- package/dist/esm/p-card-body.entry.js.map +1 -0
- package/dist/esm/p-card-container.entry.js +19 -0
- package/dist/esm/p-card-container.entry.js.map +1 -0
- package/dist/esm/p-card-header.entry.js +20 -0
- package/dist/esm/p-card-header.entry.js.map +1 -0
- package/dist/esm/p-content-slider.entry.js +208 -0
- package/dist/esm/p-content-slider.entry.js.map +1 -0
- package/dist/esm/p-counter.entry.js +19 -0
- package/dist/esm/p-counter.entry.js.map +1 -0
- package/dist/esm/p-datepicker.entry.js +4079 -0
- package/dist/esm/p-datepicker.entry.js.map +1 -0
- package/dist/esm/p-divider.entry.js +20 -0
- package/dist/esm/p-divider.entry.js.map +1 -0
- package/dist/esm/p-drawer-body_3.entry.js +45 -0
- package/dist/esm/p-drawer-body_3.entry.js.map +1 -0
- package/dist/esm/p-drawer.entry.js +61 -0
- package/dist/esm/p-drawer.entry.js.map +1 -0
- package/dist/esm/p-dropdown-menu-container.entry.js +19 -0
- package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -0
- package/dist/esm/p-dropdown_2.entry.js +162 -0
- package/dist/esm/p-dropdown_2.entry.js.map +1 -0
- package/dist/esm/p-helper_3.entry.js +129 -0
- package/dist/esm/p-helper_3.entry.js.map +1 -0
- package/dist/esm/p-illustration_6.entry.js +2789 -0
- package/dist/esm/p-illustration_6.entry.js.map +1 -0
- package/dist/esm/p-info-panel.entry.js +25 -0
- package/dist/esm/p-info-panel.entry.js.map +1 -0
- package/dist/esm/p-label_3.entry.js +59 -0
- package/dist/esm/p-label_3.entry.js.map +1 -0
- package/dist/esm/p-layout.entry.js +18 -0
- package/dist/esm/p-layout.entry.js.map +1 -0
- package/dist/esm/p-modal-body_4.entry.js +72 -0
- package/dist/esm/p-modal-body_4.entry.js.map +1 -0
- package/dist/esm/p-modal.entry.js +57 -0
- package/dist/esm/p-modal.entry.js.map +1 -0
- package/dist/esm/p-navbar.entry.js +26 -0
- package/dist/esm/p-navbar.entry.js.map +1 -0
- package/dist/esm/p-navigation-item.entry.js +22 -0
- package/dist/esm/p-navigation-item.entry.js.map +1 -0
- package/dist/esm/p-page-size-select_3.entry.js +218 -0
- package/dist/esm/p-page-size-select_3.entry.js.map +1 -0
- package/dist/esm/p-profile.entry.js +41 -0
- package/dist/esm/p-profile.entry.js.map +1 -0
- package/dist/esm/p-select.entry.js +212 -0
- package/dist/esm/p-select.entry.js.map +1 -0
- package/dist/esm/p-slider-indicator.entry.js +18 -0
- package/dist/esm/p-slider-indicator.entry.js.map +1 -0
- package/dist/esm/p-status.entry.js +47 -0
- package/dist/esm/p-status.entry.js.map +1 -0
- package/dist/esm/p-stepper-item.entry.js +22 -0
- package/dist/esm/p-stepper-item.entry.js.map +1 -0
- package/dist/esm/p-stepper-line.entry.js +19 -0
- package/dist/esm/p-stepper-line.entry.js.map +1 -0
- package/dist/esm/p-stepper.entry.js +76 -0
- package/dist/esm/p-stepper.entry.js.map +1 -0
- package/dist/esm/p-tab-group.entry.js +16 -0
- package/dist/esm/p-tab-group.entry.js.map +1 -0
- package/dist/esm/p-tab-item.entry.js +18 -0
- package/dist/esm/p-tab-item.entry.js.map +1 -0
- package/dist/esm/p-table-column.entry.js +24 -0
- package/dist/esm/p-table-column.entry.js.map +1 -0
- package/dist/esm/p-table.entry.js +348 -0
- package/dist/esm/p-table.entry.js.map +1 -0
- package/dist/esm/p-toast-container.entry.js +18 -0
- package/dist/esm/p-toast-container.entry.js.map +1 -0
- package/dist/esm/p-toast.entry.js +31 -0
- package/dist/esm/p-toast.entry.js.map +1 -0
- package/dist/esm/p-tooltip.entry.js +70 -1816
- package/dist/esm/p-tooltip.entry.js.map +1 -0
- package/dist/esm/paperless.js +9 -3
- package/dist/esm/paperless.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/popper-42db9fbd.js +1801 -0
- package/dist/esm/popper-42db9fbd.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +2 -0
- package/dist/paperless/index.esm.js.map +1 -0
- package/dist/paperless/p-09ea2a1a.js +2 -0
- package/dist/paperless/p-09ea2a1a.js.map +1 -0
- package/dist/paperless/p-0a3f2fe8.entry.js +2 -0
- package/dist/paperless/p-0a3f2fe8.entry.js.map +1 -0
- package/dist/paperless/p-0cb97c5e.entry.js +2 -0
- package/dist/paperless/p-0cb97c5e.entry.js.map +1 -0
- package/dist/paperless/p-1b5292a3.entry.js +2 -0
- package/dist/paperless/p-1b5292a3.entry.js.map +1 -0
- package/dist/paperless/p-24182b62.entry.js +2 -0
- package/dist/paperless/p-24182b62.entry.js.map +1 -0
- package/dist/paperless/p-2b08e371.entry.js +2 -0
- package/dist/paperless/p-2b08e371.entry.js.map +1 -0
- package/dist/paperless/p-3b6c4710.entry.js +2 -0
- package/dist/paperless/p-3b6c4710.entry.js.map +1 -0
- package/dist/paperless/p-3d8b5cc4.entry.js +2 -0
- package/dist/paperless/p-3d8b5cc4.entry.js.map +1 -0
- package/dist/paperless/p-45dfd940.entry.js +2 -0
- package/dist/paperless/p-45dfd940.entry.js.map +1 -0
- package/dist/paperless/p-464569dc.entry.js +2 -0
- package/dist/paperless/p-464569dc.entry.js.map +1 -0
- package/dist/paperless/p-4e650fe4.js +2 -0
- package/dist/paperless/p-4e650fe4.js.map +1 -0
- package/dist/paperless/p-4e66f19d.entry.js +2 -0
- package/dist/paperless/p-4e66f19d.entry.js.map +1 -0
- package/dist/paperless/p-5236b565.entry.js +2 -0
- package/dist/paperless/p-5236b565.entry.js.map +1 -0
- package/dist/paperless/p-53dca131.entry.js +2 -0
- package/dist/paperless/p-53dca131.entry.js.map +1 -0
- package/dist/paperless/p-57411b2b.entry.js +2 -0
- package/dist/paperless/p-57411b2b.entry.js.map +1 -0
- package/dist/paperless/p-58b52568.entry.js +2 -0
- package/dist/paperless/p-58b52568.entry.js.map +1 -0
- package/dist/paperless/p-5d118f66.entry.js +2 -0
- package/dist/paperless/p-5d118f66.entry.js.map +1 -0
- package/dist/paperless/p-5f2e2380.entry.js +2 -0
- package/dist/paperless/p-5f2e2380.entry.js.map +1 -0
- package/dist/paperless/p-63ed6e4b.entry.js +2 -0
- package/dist/paperless/p-63ed6e4b.entry.js.map +1 -0
- package/dist/paperless/p-6c60fd3d.js +2 -0
- package/dist/paperless/p-6c60fd3d.js.map +1 -0
- package/dist/paperless/p-73528e6b.entry.js +2 -0
- package/dist/paperless/p-73528e6b.entry.js.map +1 -0
- package/dist/paperless/p-78948e08.entry.js +2 -0
- package/dist/paperless/p-78948e08.entry.js.map +1 -0
- package/dist/paperless/p-78ce77d2.entry.js +2 -0
- package/dist/paperless/p-78ce77d2.entry.js.map +1 -0
- package/dist/paperless/p-7b94bc6a.entry.js +2 -0
- package/dist/paperless/p-7b94bc6a.entry.js.map +1 -0
- package/dist/paperless/p-85dc760d.entry.js +2 -0
- package/dist/paperless/p-85dc760d.entry.js.map +1 -0
- package/dist/paperless/p-8959086f.entry.js +2 -0
- package/dist/paperless/p-8959086f.entry.js.map +1 -0
- package/dist/paperless/p-8a6728d5.js +2 -0
- package/dist/paperless/p-8a6728d5.js.map +1 -0
- package/dist/paperless/p-8fb43cc7.entry.js +2 -0
- package/dist/paperless/p-8fb43cc7.entry.js.map +1 -0
- package/dist/paperless/p-93fb216c.entry.js +2 -0
- package/dist/paperless/p-93fb216c.entry.js.map +1 -0
- package/dist/paperless/p-ac1af618.js +3 -0
- package/dist/paperless/p-ac1af618.js.map +1 -0
- package/dist/paperless/p-ac7b48ff.entry.js +2 -0
- package/dist/paperless/p-ac7b48ff.entry.js.map +1 -0
- package/dist/paperless/p-aef8219f.entry.js +2 -0
- package/dist/paperless/p-aef8219f.entry.js.map +1 -0
- package/dist/paperless/p-b13a0ee4.entry.js +2 -0
- package/dist/paperless/p-b13a0ee4.entry.js.map +1 -0
- package/dist/paperless/p-b273ac6d.js +2 -0
- package/dist/paperless/p-b273ac6d.js.map +1 -0
- package/dist/paperless/p-b7b1de31.entry.js +2 -0
- package/dist/paperless/p-b7b1de31.entry.js.map +1 -0
- package/dist/paperless/p-c52020cc.entry.js +2 -0
- package/dist/paperless/p-c52020cc.entry.js.map +1 -0
- package/dist/paperless/p-c5dff26e.entry.js +2 -0
- package/dist/paperless/p-c5dff26e.entry.js.map +1 -0
- package/dist/paperless/p-c6ef7b79.entry.js +2 -0
- package/dist/paperless/p-c6ef7b79.entry.js.map +1 -0
- package/dist/paperless/p-d012d066.entry.js +2 -0
- package/dist/paperless/p-d012d066.entry.js.map +1 -0
- package/dist/paperless/p-dc01e9eb.entry.js +2 -0
- package/dist/paperless/p-dc01e9eb.entry.js.map +1 -0
- package/dist/paperless/p-e0d7a4ee.entry.js +2 -0
- package/dist/paperless/p-e0d7a4ee.entry.js.map +1 -0
- package/dist/paperless/p-ea824ef3.entry.js +2 -0
- package/dist/paperless/p-ea824ef3.entry.js.map +1 -0
- package/dist/paperless/p-ebc2ae62.entry.js +2 -0
- package/dist/paperless/p-ebc2ae62.entry.js.map +1 -0
- package/dist/paperless/p-ebd4ba56.entry.js +2 -0
- package/dist/paperless/p-ebd4ba56.entry.js.map +1 -0
- package/dist/paperless/p-ef2eee59.entry.js +2 -0
- package/dist/paperless/p-ef2eee59.entry.js.map +1 -0
- package/dist/paperless/p-f07793f6.entry.js +2 -0
- package/dist/paperless/p-f07793f6.entry.js.map +1 -0
- package/dist/paperless/p-f6cc1e31.entry.js +2 -0
- package/dist/paperless/p-f6cc1e31.entry.js.map +1 -0
- package/dist/paperless/p-f86fcdf4.js +2 -0
- package/dist/paperless/p-f86fcdf4.js.map +1 -0
- package/dist/paperless/p-f8c3fff9.entry.js +2 -0
- package/dist/paperless/p-f8c3fff9.entry.js.map +1 -0
- package/dist/paperless/paperless.css +683 -26595
- package/dist/paperless/paperless.esm.js +2 -1
- package/dist/paperless/paperless.esm.js.map +1 -0
- package/dist/style/_fonts.scss +70 -0
- package/dist/style/_helpers.scss +5 -0
- package/dist/style/_reset.scss +30 -0
- package/dist/style/_tailwind.scss +3 -0
- package/dist/style/_typograhpy.scss +29 -0
- package/dist/style/_variables.scss +2 -0
- package/dist/style/form/_checkbox.scss +111 -0
- package/dist/style/form/_input.scss +22 -0
- package/dist/style/form/_mixins.scss +108 -0
- package/dist/style/form/_radio.scss +58 -0
- package/dist/style/form/_textarea.scss +18 -0
- package/dist/style/form/index.scss +4 -0
- package/dist/style/paperless.scss +12 -0
- package/dist/sw.js +2 -260
- package/dist/sw.js.map +1 -0
- package/dist/tailwind/animation.js +87 -0
- package/dist/tailwind/backdrop-blur.js +3 -0
- package/dist/tailwind/border-radius.js +11 -0
- package/dist/tailwind/colors.js +52 -0
- package/dist/tailwind/height.js +5 -0
- package/dist/tailwind/plugins/safe-area.js +100 -0
- package/dist/tailwind/rotate.js +8 -0
- package/dist/tailwind/scale.js +3 -0
- package/dist/tailwind/screens.js +8 -0
- package/dist/tailwind/shadows.js +13 -0
- package/dist/tailwind/spacing.js +10 -0
- package/dist/tailwind/typography.js +21 -0
- package/dist/tailwind/width.js +20 -0
- package/dist/tailwind/z-index.js +17 -0
- package/dist/tailwind.config.js +33 -14
- package/dist/types/components/atoms/avatar/avatar.component.d.ts +23 -0
- package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +7 -0
- package/dist/types/components/atoms/backdrop/backdrop.component.d.ts +31 -0
- package/dist/types/components/atoms/button/button.component.d.ts +20 -3
- package/dist/types/components/atoms/card-body/card-body.component.d.ts +7 -0
- package/dist/types/components/atoms/card-container/card-container.component.d.ts +11 -0
- package/dist/types/components/atoms/card-header/card-header.component.d.ts +11 -0
- package/dist/types/components/atoms/counter/counter.component.d.ts +11 -0
- package/dist/types/components/atoms/divider/divider.component.d.ts +7 -0
- package/dist/types/components/atoms/drawer-body/drawer-body.component.d.ts +7 -0
- package/dist/types/components/atoms/drawer-container/drawer-container.component.d.ts +7 -0
- package/dist/types/components/atoms/drawer-header/drawer-header.component.d.ts +12 -0
- package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +11 -0
- package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +16 -0
- package/dist/types/components/atoms/helper/helper.component.d.ts +8 -0
- package/dist/types/components/atoms/icon/icon.component.d.ts +5 -5
- package/dist/types/components/atoms/illustration/illustration.component.d.ts +1 -1
- package/dist/types/components/atoms/info-panel/info-panel.component.d.ts +24 -0
- package/dist/types/components/atoms/label/label.component.d.ts +33 -0
- package/dist/types/components/atoms/layout/layout.component.d.ts +7 -0
- package/dist/types/components/atoms/loader/loader.component.d.ts +1 -1
- package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +11 -0
- package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +11 -0
- package/dist/types/components/atoms/modal-footer/modal-footer.component.d.ts +3 -0
- package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +12 -0
- package/dist/types/components/atoms/pagination-item/pagination-item.component.d.ts +7 -0
- package/dist/types/components/atoms/segment-container/segment-container.component.d.ts +3 -0
- package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +22 -0
- package/dist/types/components/atoms/slider-indicator/slider-indicator.component.d.ts +7 -0
- package/dist/types/components/atoms/status/status.component.d.ts +23 -0
- package/dist/types/components/atoms/stepper-item/stepper-item.component.d.ts +23 -0
- package/dist/types/components/atoms/stepper-line/stepper-line.component.d.ts +11 -0
- package/dist/types/components/atoms/tab-group/tab-group.component.d.ts +3 -0
- package/dist/types/components/atoms/tab-item/tab-item.component.d.ts +7 -0
- package/dist/types/components/atoms/table-container/table-container.component.d.ts +3 -0
- package/dist/types/components/atoms/toast-container/toast-container.component.d.ts +7 -0
- package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +30 -9
- package/dist/types/components/helpers/table-column/table-column.component.d.ts +34 -0
- package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -0
- package/dist/types/components/molecules/attachment/attachment.component.d.ts +28 -0
- package/dist/types/components/molecules/calendar/calendar.component.d.ts +76 -0
- package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +53 -0
- package/dist/types/components/molecules/datepicker/datepicker.component.d.ts +93 -0
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +69 -0
- package/dist/types/components/molecules/input-error/input-error.component.d.ts +12 -0
- package/dist/types/components/molecules/input-group/input-group.component.d.ts +68 -0
- package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +24 -0
- package/dist/types/components/molecules/page-size-select/constants.d.ts +2 -0
- package/dist/types/components/molecules/page-size-select/page-size-select.component.d.ts +50 -0
- package/dist/types/components/molecules/pagination/pagination.component.d.ts +35 -0
- package/dist/types/components/molecules/profile/profile.component.d.ts +20 -0
- package/dist/types/components/molecules/select/select.component.d.ts +134 -0
- package/dist/types/components/molecules/stepper/stepper.component.d.ts +21 -0
- package/dist/types/components/molecules/table-cell/table-cell.component.d.ts +42 -0
- package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +63 -0
- package/dist/types/components/molecules/table-header/table-header.component.d.ts +101 -0
- package/dist/types/components/molecules/table-row/table-row.component.d.ts +11 -0
- package/dist/types/components/molecules/toast/toast.component.d.ts +39 -0
- package/dist/types/components/organisms/drawer/drawer.component.d.ts +52 -0
- package/dist/types/components/organisms/modal/modal.component.d.ts +58 -0
- package/dist/types/components/organisms/navbar/navbar.component.d.ts +14 -0
- package/dist/types/components/organisms/table/table.component.d.ts +240 -0
- package/dist/types/components.d.ts +3296 -118
- package/dist/types/index.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +91 -19
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/table.d.ts +27 -0
- package/dist/types/types/tailwind.d.ts +2 -0
- package/dist/types/utils/child-of.d.ts +1 -0
- package/dist/types/utils/icons.d.ts +12 -0
- package/dist/types/utils/illustrations.d.ts +4 -0
- package/dist/types/utils/index.d.ts +6 -0
- package/dist/types/utils/localization.d.ts +2 -0
- package/dist/types/utils/object-get-by-path.d.ts +1 -0
- package/dist/types/utils/transformers.d.ts +2 -0
- package/dist/workbox-5b279812.js +2 -0
- package/dist/workbox-5b279812.js.map +1 -0
- package/hydrate/index.d.ts +218 -0
- package/hydrate/index.js +22695 -0
- package/hydrate/package.json +6 -0
- package/loader/index.d.ts +9 -0
- package/loader/package.json +1 -0
- package/package.json +67 -61
- package/dist/build/p-31acefc4.entry.js +0 -1
- package/dist/build/p-4144f8a0.entry.js +0 -1
- package/dist/build/p-f04c4de0.entry.js +0 -1
- package/dist/build/p-f33e1285.js +0 -2
- package/dist/collection/tailwind/grid.js +0 -6
- package/dist/collection/utils/utils.js +0 -3
- package/dist/paperless/p-31acefc4.entry.js +0 -1
- package/dist/paperless/p-4144f8a0.entry.js +0 -1
- package/dist/paperless/p-f04c4de0.entry.js +0 -1
- package/dist/paperless/p-f33e1285.js +0 -2
- package/dist/types/utils/utils.d.ts +0 -1
|
@@ -1,98 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as defineCustomElement$3 } from './icon.component.js';
|
|
3
|
-
import { d as defineCustomElement$2 } from './loader.component.js';
|
|
4
|
-
|
|
5
|
-
const buttonComponentCss = "/*! tailwindcss v3.1.4 | MIT License | https://tailwindcss.com*/*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;border:0 solid;box-sizing:border-box}:after,:before{--tw-content:\"\"}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.flex{display:flex!important}.h-10{height:2.5rem!important}.h-8{height:2rem!important}.items-center{align-items:center!important}.border{border-width:1px!important}.border-mystic-dark{--tw-border-opacity:1!important;border-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-indigo{background-color:rgb(82 138 250/var(--tw-bg-opacity))!important}.bg-indigo,.bg-white{--tw-bg-opacity:1!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.bg-storm-light\\/5{background-color:rgba(176,178,203,.05)!important}.font-semibold{font-weight:600!important}.outline{outline-style:solid!important}.filter{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}p-button{display:inline-block}p-button>a,p-button>button{align-items:center;border:0;border-radius:.375rem;cursor:pointer;display:flex;font-weight:600;height:2.5rem;justify-content:center;line-height:1rem;outline:0}p-button>a.icon-position-end>p-icon,p-button>a>p-loader,p-button>button.icon-position-end>p-icon,p-button>button>p-loader{margin-left:.5rem}p-button>a.icon-position-start>p-icon,p-button>button.icon-position-start>p-icon{margin-right:.5rem}p-button>a.variant-primary,p-button>a.variant-secondary,p-button>button.variant-primary,p-button>button.variant-secondary{padding-left:1rem;padding-right:1rem}p-button>a.variant-primary,p-button>button.variant-primary{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}p-button>a.variant-primary:hover,p-button>button.variant-primary:hover{background-color:rgba(82,138,250,.95)}p-button>a.variant-primary:active,p-button>button.variant-primary:active{--tw-bg-opacity:1;background-color:rgb(44 75 169/var(--tw-bg-opacity))}p-button>a.variant-secondary,p-button>button.variant-secondary{--tw-border-opacity:1!important;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-drop-shadow:drop-shadow(0px 0.3125rem 1rem rgba(0,24,98,.08)) drop-shadow(0px 0.0625rem 0.1875rem rgba(0,24,98,.13));background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(218 230 240/var(--tw-border-opacity))!important;border-width:1px!important;color:rgb(81 83 107/var(--tw-text-opacity));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)}p-button>a.variant-secondary:hover,p-button>button.variant-secondary:hover{--tw-bg-opacity:1;background-color:rgb(247 250 252/var(--tw-bg-opacity))}p-button>a.variant-secondary:active,p-button>button.variant-secondary:active{background-color:rgba(176,178,203,.05);border-color:rgba(176,178,203,.2)}p-button>a.variant-text,p-button>button.variant-text{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity))}p-button>a.variant-text:hover,p-button>button.variant-text:hover{--tw-text-opacity:1;color:rgb(44 75 169/var(--tw-text-opacity))}p-button>a.size-small,p-button>button.size-small{font-size:.875rem;height:2rem;line-height:1.25rem}p-button>a[disabled],p-button>button[disabled]{opacity:.5}.static{position:static!important}.inline-block{display:inline-block!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}.inline{display:inline!important}.justify-center{justify-content:center!important}.text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}";
|
|
6
|
-
|
|
7
|
-
const Button = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this.__registerHost();
|
|
11
|
-
this.click = createEvent(this, "click", 7);
|
|
12
|
-
/**
|
|
13
|
-
* The variant of the button
|
|
14
|
-
*/
|
|
15
|
-
this.variant = 'primary';
|
|
16
|
-
/**
|
|
17
|
-
* The size of the button
|
|
18
|
-
*/
|
|
19
|
-
this.size = 'medium';
|
|
20
|
-
/**
|
|
21
|
-
* Wether to show a loader or not
|
|
22
|
-
*/
|
|
23
|
-
this.loading = false;
|
|
24
|
-
/**
|
|
25
|
-
* Wether the button is disabled
|
|
26
|
-
*/
|
|
27
|
-
this.disabled = false;
|
|
28
|
-
/**
|
|
29
|
-
* Icon position
|
|
30
|
-
*/
|
|
31
|
-
this.iconPosition = 'end';
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
let loaderColor = 'white';
|
|
35
|
-
switch (this.variant) {
|
|
36
|
-
case 'secondary':
|
|
37
|
-
loaderColor = 'storm';
|
|
38
|
-
break;
|
|
39
|
-
case 'text':
|
|
40
|
-
loaderColor = 'indigo';
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
const VariableTag = this.variant === 'text' ? 'a' : 'button';
|
|
44
|
-
return (h(Host, { class: "p-button" }, h(VariableTag, { class: `variant-${this.variant} size-${this.size} icon-position-${this.iconPosition}`, disabled: this.disabled, href: this.href, target: this.target }, this.icon && this.iconPosition === 'start' && this._getIcon(), h("slot", null), this.icon && this.iconPosition === 'end' && this._getIcon(), this.loading && h("p-loader", { color: loaderColor }))));
|
|
45
|
-
}
|
|
46
|
-
handleClick(ev) {
|
|
47
|
-
if (this.loading || this.disabled) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
this.click.emit(ev);
|
|
51
|
-
}
|
|
52
|
-
_getIcon() {
|
|
53
|
-
if (!this.icon) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
return h("p-icon", { variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate });
|
|
57
|
-
}
|
|
58
|
-
static get style() { return buttonComponentCss; }
|
|
59
|
-
}, [4, "p-button", {
|
|
60
|
-
"variant": [1],
|
|
61
|
-
"href": [1],
|
|
62
|
-
"target": [1],
|
|
63
|
-
"size": [1],
|
|
64
|
-
"loading": [4],
|
|
65
|
-
"disabled": [4],
|
|
66
|
-
"icon": [1],
|
|
67
|
-
"iconPosition": [1, "icon-position"],
|
|
68
|
-
"iconFlip": [1, "icon-flip"],
|
|
69
|
-
"iconRotate": [2, "icon-rotate"]
|
|
70
|
-
}, [[2, "click", "handleClick"]]]);
|
|
71
|
-
function defineCustomElement$1() {
|
|
72
|
-
if (typeof customElements === "undefined") {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
const components = ["p-button", "p-icon", "p-loader"];
|
|
76
|
-
components.forEach(tagName => { switch (tagName) {
|
|
77
|
-
case "p-button":
|
|
78
|
-
if (!customElements.get(tagName)) {
|
|
79
|
-
customElements.define(tagName, Button);
|
|
80
|
-
}
|
|
81
|
-
break;
|
|
82
|
-
case "p-icon":
|
|
83
|
-
if (!customElements.get(tagName)) {
|
|
84
|
-
defineCustomElement$3();
|
|
85
|
-
}
|
|
86
|
-
break;
|
|
87
|
-
case "p-loader":
|
|
88
|
-
if (!customElements.get(tagName)) {
|
|
89
|
-
defineCustomElement$2();
|
|
90
|
-
}
|
|
91
|
-
break;
|
|
92
|
-
} });
|
|
93
|
-
}
|
|
1
|
+
import { B as Button, d as defineCustomElement$1 } from './button.component.js';
|
|
94
2
|
|
|
95
3
|
const PButton = Button;
|
|
96
4
|
const defineCustomElement = defineCustomElement$1;
|
|
97
5
|
|
|
98
6
|
export { PButton, defineCustomElement };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=p-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-button.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PCalendar extends Components.PCalendar, HTMLElement {}
|
|
4
|
+
export const PCalendar: {
|
|
5
|
+
prototype: PCalendar;
|
|
6
|
+
new (): PCalendar;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-calendar.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PCardBody extends Components.PCardBody, HTMLElement {}
|
|
4
|
+
export const PCardBody: {
|
|
5
|
+
prototype: PCardBody;
|
|
6
|
+
new (): PCardBody;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const cardBodyComponentCss = ".static{position:static!important}.px-4{padding-left:1rem!important;padding-right:1rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}*{box-sizing:border-box}p-card-body{--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;padding:1.5rem 1rem}p-card-body[inherit-text]{color:inherit!important;font-size:inherit!important;font-weight:inherit!important}";
|
|
4
|
+
|
|
5
|
+
const CardBody = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.inheritText = false;
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return (h(Host, { class: "p-card-body" }, h("slot", null)));
|
|
13
|
+
}
|
|
14
|
+
static get style() { return cardBodyComponentCss; }
|
|
15
|
+
}, [4, "p-card-body", {
|
|
16
|
+
"inheritText": [516, "inherit-text"]
|
|
17
|
+
}]);
|
|
18
|
+
function defineCustomElement$1() {
|
|
19
|
+
if (typeof customElements === "undefined") {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const components = ["p-card-body"];
|
|
23
|
+
components.forEach(tagName => { switch (tagName) {
|
|
24
|
+
case "p-card-body":
|
|
25
|
+
if (!customElements.get(tagName)) {
|
|
26
|
+
customElements.define(tagName, CardBody);
|
|
27
|
+
}
|
|
28
|
+
break;
|
|
29
|
+
} });
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const PCardBody = CardBody;
|
|
33
|
+
const defineCustomElement = defineCustomElement$1;
|
|
34
|
+
|
|
35
|
+
export { PCardBody, defineCustomElement };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=p-card-body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-card-body.js","mappings":";;AAAA,MAAM,oBAAoB,GAAG,kbAAkb;;MCMlc,QAAQ;;;;uBAI+B,KAAK;;EAErD,MAAM;IACF,QACI,EAAC,IAAI,IAAC,KAAK,EAAC,aAAa,IACrB,eAAQ,CACL,EACT;GACL;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/atoms/card-body/card-body.component.scss?tag=p-card-body","./src/components/atoms/card-body/card-body.component.tsx"],"sourcesContent":["p-card-body {\n @apply px-4 py-6;\n @apply text-sm text-storm-vague;\n\n &[inherit-text] {\n color: inherit #{!important};\n font-size: inherit #{!important};\n font-weight: inherit #{!important};\n }\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'p-card-body',\n styleUrl: 'card-body.component.scss',\n})\nexport class CardBody {\n /**\n * Wether the button should inherit text styles\n */\n @Prop({ reflect: true }) inheritText: boolean = false;\n\n render() {\n return (\n <Host class=\"p-card-body\">\n <slot />\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PCardContainer extends Components.PCardContainer, HTMLElement {}
|
|
4
|
+
export const PCardContainer: {
|
|
5
|
+
prototype: PCardContainer;
|
|
6
|
+
new (): PCardContainer;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const cardContainerComponentCss = ".static{position:static!important}.flex{display:flex!important}.flex-col{flex-direction:column!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.drop-shadow-4{--tw-drop-shadow:drop-shadow(0px 0.3125rem 1rem rgba(0,24,98,.08)) drop-shadow(0px 0.0625rem 0.1875rem rgba(0,24,98,.13))!important}.drop-shadow-4,.drop-shadow-5{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-5{--tw-drop-shadow:drop-shadow(0px 0.1875rem 1rem rgba(0,24,98,.3))!important}.drop-shadow-transparent{--tw-drop-shadow:drop-shadow(transparent)!important}.drop-shadow-transparent,.filter{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}*{box-sizing:border-box}.drop-shadow-4,.drop-shadow-5,.drop-shadow-transparent,.filter{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}:host{--tw-bg-opacity:1;--tw-drop-shadow:drop-shadow(0px 0.3125rem 1rem rgba(0,24,98,.08)) drop-shadow(0px 0.0625rem 0.1875rem rgba(0,24,98,.13))!important;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.375rem;display:flex;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;flex-direction:column;width:100%}:host([hoverable]){cursor:pointer}:host([hoverable]:hover){--tw-drop-shadow:drop-shadow(0px 0.1875rem 1rem rgba(0,24,98,.3))!important;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}:host([shadow=false]){--tw-drop-shadow:drop-shadow(transparent)!important;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}";
|
|
4
|
+
|
|
5
|
+
const CardContainer = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
this.hoverable = false;
|
|
11
|
+
this.shadow = true;
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (h(Host, { class: "p-card-container" }, h("slot", null)));
|
|
15
|
+
}
|
|
16
|
+
static get style() { return cardContainerComponentCss; }
|
|
17
|
+
}, [1, "p-card-container", {
|
|
18
|
+
"hoverable": [516],
|
|
19
|
+
"shadow": [516]
|
|
20
|
+
}]);
|
|
21
|
+
function defineCustomElement$1() {
|
|
22
|
+
if (typeof customElements === "undefined") {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const components = ["p-card-container"];
|
|
26
|
+
components.forEach(tagName => { switch (tagName) {
|
|
27
|
+
case "p-card-container":
|
|
28
|
+
if (!customElements.get(tagName)) {
|
|
29
|
+
customElements.define(tagName, CardContainer);
|
|
30
|
+
}
|
|
31
|
+
break;
|
|
32
|
+
} });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const PCardContainer = CardContainer;
|
|
36
|
+
const defineCustomElement = defineCustomElement$1;
|
|
37
|
+
|
|
38
|
+
export { PCardContainer, defineCustomElement };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=p-card-container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-card-container.js","mappings":";;AAAA,MAAM,yBAAyB,GAAG,6uEAA6uE;;MCOlwE,aAAa;;;;;qBAIwB,KAAK;kBAKR,IAAI;;EAE/C,MAAM;IACF,QACI,EAAC,IAAI,IAAC,KAAK,EAAC,kBAAkB,IAC1B,eAAQ,CACL,EACT;GACL;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/atoms/card-container/card-container.component.scss?tag=p-card-container&encapsulation=shadow","./src/components/atoms/card-container/card-container.component.tsx"],"sourcesContent":[":host {\n @apply flex flex-col w-full;\n @apply bg-white rounded-large;\n @apply filter drop-shadow-4 #{!important};\n}\n\n:host([hoverable]) {\n @apply cursor-pointer;\n}\n\n:host([hoverable]:hover) {\n @apply drop-shadow-5 #{!important};\n}\n\n:host([shadow='false']) {\n @apply drop-shadow-transparent #{!important};\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'p-card-container',\n styleUrl: 'card-container.component.scss',\n shadow: true,\n})\nexport class CardContainer {\n /**\n * Wether the card should be hoverable\n */\n @Prop({ reflect: true }) hoverable: boolean = false;\n\n /**\n * Wether the card should have shadow\n */\n @Prop({ reflect: true }) shadow: boolean = true;\n\n render() {\n return (\n <Host class=\"p-card-container\">\n <slot />\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PCardHeader extends Components.PCardHeader, HTMLElement {}
|
|
4
|
+
export const PCardHeader: {
|
|
5
|
+
prototype: PCardHeader;
|
|
6
|
+
new (): PCardHeader;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './icon.component.js';
|
|
3
|
+
|
|
4
|
+
const cardHeaderComponentCss = ".static{position:static!important}.mx-4{margin-left:1rem!important;margin-right:1rem!important}.ml-2{margin-left:.5rem!important}.flex{display:flex!important}.-rotate-0{--tw-rotate:-0deg!important}.-rotate-0,.-rotate-135{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}.-rotate-135{--tw-rotate:-135deg!important}.-rotate-180{--tw-rotate:-180deg!important}.-rotate-180,.-rotate-225{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}.-rotate-225{--tw-rotate:-225deg!important}.-rotate-25{--tw-rotate:-25deg!important}.-rotate-25,.-rotate-270{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}.-rotate-270{--tw-rotate:-270deg!important}.-rotate-315{--tw-rotate:-315deg!important}.-rotate-315,.-rotate-45{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}.-rotate-45{--tw-rotate:-45deg!important}.-rotate-90{--tw-rotate:-90deg!important}.-rotate-90,.rotate-0{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}.rotate-0{--tw-rotate:0deg!important}.rotate-135{--tw-rotate:135deg!important}.rotate-135,.rotate-180{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}.rotate-180{--tw-rotate:180deg!important}.rotate-225{--tw-rotate:225deg!important}.rotate-225,.rotate-25{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}.rotate-25{--tw-rotate:25deg!important}.rotate-270{--tw-rotate:270deg!important}.rotate-270,.rotate-315{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}.rotate-315{--tw-rotate:315deg!important}.rotate-45{--tw-rotate:45deg!important}.rotate-45,.rotate-90{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}.rotate-90{--tw-rotate:90deg!important}.scale-x-flip{--tw-scale-x:-1!important}.scale-x-flip,.scale-y-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-y-flip{--tw-scale-y:-1!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}.gap-3{gap:.75rem!important}.border-b{border-bottom-width:1px!important}.border-b-mystic-medium{--tw-border-opacity:1!important;border-bottom-color:rgb(227 236 243/var(--tw-border-opacity))!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-5xl{font-size:3rem!important}.text-5xl,.text-6xl{line-height:1!important}.text-6xl{font-size:3.75rem!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;line-height:1rem!important}.text-xxs{font-size:.6875rem!important}*{box-sizing:border-box}p-card-header{--tw-text-opacity:1;--tw-border-opacity:1!important;align-items:center;border-bottom-color:rgb(227 236 243/var(--tw-border-opacity))!important;border-bottom-width:1px!important;color:rgb(128 130 158/var(--tw-text-opacity));display:flex;gap:.75rem;height:3.5rem;margin-left:1rem;margin-right:1rem}p-card-header .title{--tw-text-opacity:1;align-items:center;color:rgb(81 83 107/var(--tw-text-opacity));display:flex;font-weight:600;order:2}p-card-header .title>p-icon{--tw-text-opacity:1;color:rgb(218 230 240/var(--tw-text-opacity));margin-left:.5rem}p-card-header [slot=prefix]{order:1}p-card-header [slot=suffix]{order:3}p-card-container.has-hover:hover p-card-header .title>p-icon{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity))}.-rotate-0,.-rotate-135,.-rotate-180,.-rotate-225,.-rotate-25,.-rotate-270,.-rotate-315,.-rotate-45,.-rotate-90,.rotate-0,.rotate-135,.rotate-180,.rotate-225,.rotate-25,.rotate-270,.rotate-315,.rotate-45,.rotate-90,.scale-x-flip,.scale-y-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}";
|
|
5
|
+
|
|
6
|
+
const CardHeader = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.header = undefined;
|
|
11
|
+
this.arrow = false;
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
return (h(Host, { class: "p-card-header" }, h("slot", { name: "prefix" }), (((_a = this.header) === null || _a === void 0 ? void 0 : _a.length) || this.arrow) && (h("div", { class: "title" }, (_b = this.header) !== null && _b !== void 0 ? _b : '', this.arrow && h("p-icon", { variant: "arrow" }))), h("slot", { name: "suffix" })));
|
|
16
|
+
}
|
|
17
|
+
static get style() { return cardHeaderComponentCss; }
|
|
18
|
+
}, [4, "p-card-header", {
|
|
19
|
+
"header": [1],
|
|
20
|
+
"arrow": [4]
|
|
21
|
+
}]);
|
|
22
|
+
function defineCustomElement$1() {
|
|
23
|
+
if (typeof customElements === "undefined") {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const components = ["p-card-header", "p-icon"];
|
|
27
|
+
components.forEach(tagName => { switch (tagName) {
|
|
28
|
+
case "p-card-header":
|
|
29
|
+
if (!customElements.get(tagName)) {
|
|
30
|
+
customElements.define(tagName, CardHeader);
|
|
31
|
+
}
|
|
32
|
+
break;
|
|
33
|
+
case "p-icon":
|
|
34
|
+
if (!customElements.get(tagName)) {
|
|
35
|
+
defineCustomElement$2();
|
|
36
|
+
}
|
|
37
|
+
break;
|
|
38
|
+
} });
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const PCardHeader = CardHeader;
|
|
42
|
+
const defineCustomElement = defineCustomElement$1;
|
|
43
|
+
|
|
44
|
+
export { PCardHeader, defineCustomElement };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=p-card-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-card-header.js","mappings":";;;AAAA,MAAM,sBAAsB,GAAG,m9KAAm9K;;MCMr+K,UAAU;;;;;iBASM,KAAK;;EAE9B,MAAM;;IACF,QACI,EAAC,IAAI,IAAC,KAAK,EAAC,eAAe,IACvB,YAAM,IAAI,EAAC,QAAQ,GAAG,EAErB,CAAC,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,MAAM,KAAI,IAAI,CAAC,KAAK,MAC/B,WAAK,KAAK,EAAC,OAAO,IACb,MAAA,IAAI,CAAC,MAAM,mCAAI,EAAE,EACjB,IAAI,CAAC,KAAK,IAAI,cAAQ,OAAO,EAAC,OAAO,GAAG,CACvC,CACT,EAED,YAAM,IAAI,EAAC,QAAQ,GAAG,CACnB,EACT;GACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/atoms/card-header/card-header.component.scss?tag=p-card-header","./src/components/atoms/card-header/card-header.component.tsx"],"sourcesContent":["p-card-header {\n @apply mx-4 h-14;\n @apply flex gap-3 items-center;\n @apply text-storm-medium;\n @apply border-b border-b-mystic-medium #{!important};\n\n .title {\n @apply order-2;\n @apply flex items-center text-storm;\n @apply font-semibold;\n\n > p-icon {\n @apply ml-2 text-mystic-dark;\n }\n }\n\n [slot='prefix'] {\n @apply order-1;\n }\n\n [slot='suffix'] {\n @apply order-3;\n }\n}\n\np-card-container.has-hover:hover {\n p-card-header {\n .title > p-icon {\n @apply text-indigo;\n }\n }\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'p-card-header',\n styleUrl: 'card-header.component.scss',\n})\nexport class CardHeader {\n /**\n * Content of the card header\n */\n @Prop() header: string;\n\n /**\n * Enable the title arrow\n */\n @Prop() arrow: boolean = false;\n\n render() {\n return (\n <Host class=\"p-card-header\">\n <slot name=\"prefix\" />\n\n {(this.header?.length || this.arrow) && (\n <div class=\"title\">\n {this.header ?? ''}\n {this.arrow && <p-icon variant=\"arrow\" />}\n </div>\n )}\n\n <slot name=\"suffix\" />\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PContentSlider extends Components.PContentSlider, HTMLElement {}
|
|
4
|
+
export const PContentSlider: {
|
|
5
|
+
prototype: PContentSlider;
|
|
6
|
+
new (): PContentSlider;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './slider-indicator.component.js';
|
|
3
|
+
|
|
4
|
+
const contentSliderComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.mt-3{margin-top:.75rem!important}.flex{display:flex!important}.hidden{display:none!important}.w-0{width:0!important}.w-full{width:100%!important}.flex-shrink-0{flex-shrink:0!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}.cursor-grab{cursor:grab!important}.cursor-grabbing{cursor:grabbing!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}.flex-col{flex-direction:column!important}.flex-nowrap{flex-wrap:nowrap!important}.items-center{align-items:center!important}.items-stretch{align-items:stretch!important}.justify-center{justify-content:center!important}.overflow-visible{overflow:visible!important}.p-16{padding:4rem!important}.pt-1{padding-top:.25rem!important}.will-change-transform{will-change:transform!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column;margin:-4rem;overflow:hidden;padding:4rem}:host .slider{box-sizing:content-box;overflow:visible;position:relative}:host .slider.draggable{cursor:grab}@media (min-width:64rem){:host .slider.draggable{cursor:auto}}:host .slider.draggable.dragging{cursor:grabbing}@media (min-width:64rem){:host .slider.draggable.dragging{cursor:auto}}:host .slider.draggable.dragging .inner-slider{transition-property:none}:host .slider .inner-slider{--tw-translate-x:0px;align-items:stretch;display:flex;flex-wrap:nowrap;gap:.5rem;position:absolute;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));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));transition-duration:.5s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%;will-change:transform}@media (min-width:64rem){:host .slider .inner-slider{flex-wrap:wrap;gap:1rem}}:host .slider .inner-slider>::slotted(*){flex-shrink:0;position:relative;width:100%;z-index:10}@media (min-width:40rem){:host .slider .inner-slider>::slotted(*){width:calc(50% - .5rem)}}@media (min-width:64rem){:host .slider .inner-slider>::slotted(*){flex:1 1 0%;width:0}}:host .indicator{align-items:center;display:flex;justify-content:center}@media (min-width:64rem){:host .indicator{display:none}}:host .indicator .item{margin-top:.75rem;padding-left:.25rem;padding-right:.25rem;padding-top:.25rem}@media (min-width:64rem){.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:gap-4{gap:1rem!important}}";
|
|
5
|
+
|
|
6
|
+
const ContentSlider = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
this._items = [];
|
|
12
|
+
this._shouldCheckLocation = false;
|
|
13
|
+
this.hideMobileIndicator = false;
|
|
14
|
+
this.disableDrag = false;
|
|
15
|
+
this.disableAutoCenter = false;
|
|
16
|
+
this.disableIndicatorClick = false;
|
|
17
|
+
this._visibleIndex = undefined;
|
|
18
|
+
this._outerHeight = 0;
|
|
19
|
+
this._totalWidth = 0;
|
|
20
|
+
this._dragging = false;
|
|
21
|
+
}
|
|
22
|
+
componentWillRender() {
|
|
23
|
+
const items = this._el.querySelectorAll(':scope > *');
|
|
24
|
+
this._items = Array.from(items);
|
|
25
|
+
}
|
|
26
|
+
componentDidLoad() {
|
|
27
|
+
this._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);
|
|
28
|
+
this._calculateWidth();
|
|
29
|
+
this._calculateIndicator();
|
|
30
|
+
}
|
|
31
|
+
disconnectedCallback() {
|
|
32
|
+
if (this._innerSliderResizeObserver) {
|
|
33
|
+
this._innerSliderResizeObserver.disconnect();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return (h(Host, { class: "p-content-slider" }, h("div", { class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
|
|
38
|
+
height: `${this._outerHeight}px`,
|
|
39
|
+
}, ref: (el) => (this._sliderRef = el), onMouseDown: (e) => this._mouseDownHandler(e), onTouchStart: (e) => this._mouseDownHandler(e), onMouseMove: (e) => this._mouseMoveHandler(e), onTouchMove: (e) => this._mouseMoveHandler(e) }, h("div", { class: "inner-slider", ref: (ref) => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", null))), h("div", { class: `indicator ${this.hideMobileIndicator && 'hidden'}` }, this._items.map((_, i) => (h("div", { onClick: () => this._scrollTo(i, true), class: `item ${!this.disableIndicatorClick && 'cursor-pointer'}` }, h("p-slider-indicator", { active: i === this._visibleIndex })))))));
|
|
40
|
+
}
|
|
41
|
+
_mouseDownHandler(e) {
|
|
42
|
+
var _a;
|
|
43
|
+
if (this.disableDrag || this._dragging) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const innerSliderStyle = getComputedStyle(this._innerSliderRef);
|
|
47
|
+
if (innerSliderStyle.flexWrap === 'wrap') {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
this._startMouseX = e.x;
|
|
51
|
+
const sliderRect = this._sliderRef.getBoundingClientRect();
|
|
52
|
+
if (e.type === 'touchstart') {
|
|
53
|
+
this._startMouseX = (_a = e.touches) === null || _a === void 0 ? void 0 : _a[0].clientX;
|
|
54
|
+
}
|
|
55
|
+
const innerSliderRect = this._innerSliderRef.getBoundingClientRect();
|
|
56
|
+
const offsetLeft = innerSliderRect.x - sliderRect.x;
|
|
57
|
+
this._startX = this._startMouseX - sliderRect.x - offsetLeft;
|
|
58
|
+
this._lastIndex = this._visibleIndex;
|
|
59
|
+
this._dragging = true;
|
|
60
|
+
}
|
|
61
|
+
_mouseMoveHandler(e) {
|
|
62
|
+
var _a, _b;
|
|
63
|
+
if (!e || !this._dragging || this.disableDrag) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
e.preventDefault();
|
|
67
|
+
this._shouldCheckLocation = true;
|
|
68
|
+
if (this._innerSliderRef.style.getPropertyValue('pointer-events') === '') {
|
|
69
|
+
this._innerSliderRef.style.pointerEvents = 'none';
|
|
70
|
+
}
|
|
71
|
+
const sliderRect = this._sliderRef.getBoundingClientRect();
|
|
72
|
+
let x = e.clientX - sliderRect.left;
|
|
73
|
+
this._lastMouseX = e.x;
|
|
74
|
+
if (e.type === 'touchmove') {
|
|
75
|
+
x = ((_a = e.touches) === null || _a === void 0 ? void 0 : _a[0].clientX) - sliderRect.left;
|
|
76
|
+
this._lastMouseX = (_b = e.touches) === null || _b === void 0 ? void 0 : _b[0].clientX;
|
|
77
|
+
}
|
|
78
|
+
this._innerSliderRef.style.setProperty('--tw-translate-x', `${x - this._startX}px`);
|
|
79
|
+
this._checkBoundary();
|
|
80
|
+
this._calculateIndicator();
|
|
81
|
+
}
|
|
82
|
+
_transitionEndHandler() {
|
|
83
|
+
this._calculateIndicator();
|
|
84
|
+
}
|
|
85
|
+
mouseUpHandler() {
|
|
86
|
+
this._dragging = false;
|
|
87
|
+
this._innerSliderRef.style.removeProperty('pointer-events');
|
|
88
|
+
this._checkLocation();
|
|
89
|
+
}
|
|
90
|
+
resizeHandler() {
|
|
91
|
+
if (this._innerSliderRef) {
|
|
92
|
+
this._innerSliderRef.style.setProperty('--tw-translate-x', '0px');
|
|
93
|
+
this._calculateWidth();
|
|
94
|
+
this._calculateIndicator();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
_setInnerSliderReft(ref) {
|
|
98
|
+
this._innerSliderRef = ref;
|
|
99
|
+
this._innerSliderResizeObserver = new ResizeObserver(() => this._calculateHeight());
|
|
100
|
+
this._innerSliderResizeObserver.observe(this._innerSliderRef);
|
|
101
|
+
}
|
|
102
|
+
_scrollTo(i, manual = false) {
|
|
103
|
+
if (this.disableIndicatorClick && manual) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const el = this._items[i];
|
|
107
|
+
if (i === 0) {
|
|
108
|
+
this._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
const sliderRect = this._sliderRef.getBoundingClientRect();
|
|
112
|
+
const innerSliderRect = this._innerSliderRef.getBoundingClientRect();
|
|
113
|
+
const elRect = el.getBoundingClientRect();
|
|
114
|
+
const offsetLeft = elRect.x - innerSliderRect.x;
|
|
115
|
+
const centerOffset = offsetLeft + elRect.width / 2 - sliderRect.width / 2;
|
|
116
|
+
this._innerSliderRef.style.setProperty('--tw-translate-x', `-${centerOffset}px`);
|
|
117
|
+
this._checkBoundary();
|
|
118
|
+
this._calculateIndicator();
|
|
119
|
+
}
|
|
120
|
+
_checkBoundary() {
|
|
121
|
+
let outer = this._sliderRef.getBoundingClientRect();
|
|
122
|
+
const left = parseInt(this._innerSliderRef.style.getPropertyValue('--tw-translate-x'));
|
|
123
|
+
if (left > 0) {
|
|
124
|
+
this._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);
|
|
125
|
+
}
|
|
126
|
+
const maxLeft = (this._totalWidth - outer.width) * -1;
|
|
127
|
+
if (left < maxLeft) {
|
|
128
|
+
this._innerSliderRef.style.setProperty('--tw-translate-x', `${maxLeft}px`);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
_calculateIndicator() {
|
|
132
|
+
for (let i = 0; i < this._items.length; i++) {
|
|
133
|
+
const item = this._items[i];
|
|
134
|
+
const visible = this._isVisible(item);
|
|
135
|
+
if (visible) {
|
|
136
|
+
this._visibleIndex = i;
|
|
137
|
+
}
|
|
138
|
+
if (i === 0 && visible) {
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
_checkLocation() {
|
|
144
|
+
var _a;
|
|
145
|
+
if (!this._shouldCheckLocation) {
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
let scrollToIndex = null;
|
|
149
|
+
if (this._lastIndex !== this._visibleIndex) {
|
|
150
|
+
scrollToIndex = this._visibleIndex;
|
|
151
|
+
}
|
|
152
|
+
if (this._lastIndex === this._visibleIndex) {
|
|
153
|
+
if (this._lastMouseX > this._startMouseX && this._lastIndex !== 0) {
|
|
154
|
+
scrollToIndex = this._lastIndex - 1;
|
|
155
|
+
}
|
|
156
|
+
if (this._lastMouseX < this._startMouseX &&
|
|
157
|
+
this._lastIndex !== ((_a = this._items) === null || _a === void 0 ? void 0 : _a.length) - 1) {
|
|
158
|
+
scrollToIndex = this._lastIndex + 1;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
if (scrollToIndex !== null) {
|
|
162
|
+
this._shouldCheckLocation = false;
|
|
163
|
+
setTimeout(() => this._scrollTo(scrollToIndex), 100);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
_isVisible(el) {
|
|
167
|
+
if (!this._el || !el) {
|
|
168
|
+
return false;
|
|
169
|
+
}
|
|
170
|
+
const elRect = el.getBoundingClientRect();
|
|
171
|
+
const sliderRect = this._sliderRef.getBoundingClientRect();
|
|
172
|
+
return ((elRect.left >= sliderRect.left &&
|
|
173
|
+
elRect.right <= sliderRect.right) ||
|
|
174
|
+
(this._isMobile(el) &&
|
|
175
|
+
elRect.left + elRect.width / 2 >= sliderRect.left &&
|
|
176
|
+
elRect.left + elRect.width / 2 <= sliderRect.right));
|
|
177
|
+
}
|
|
178
|
+
_calculateWidth() {
|
|
179
|
+
let totalWidth = 0;
|
|
180
|
+
for (let item of this._items) {
|
|
181
|
+
const rect = item.getBoundingClientRect();
|
|
182
|
+
totalWidth += rect.width;
|
|
183
|
+
}
|
|
184
|
+
const sliderStyle = getComputedStyle(this._sliderRef);
|
|
185
|
+
const padding = parseInt(sliderStyle.padding) * 2;
|
|
186
|
+
const innerSliderStyle = getComputedStyle(this._innerSliderRef);
|
|
187
|
+
const gap = parseInt(innerSliderStyle.gap) * (this._items.length - 1);
|
|
188
|
+
totalWidth += padding + gap;
|
|
189
|
+
this._totalWidth = totalWidth;
|
|
190
|
+
}
|
|
191
|
+
_calculateHeight() {
|
|
192
|
+
const outerHeight = this._items.at(0).getBoundingClientRect().height;
|
|
193
|
+
if (outerHeight != this._outerHeight) {
|
|
194
|
+
this._outerHeight = outerHeight;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
_isMobile(el) {
|
|
198
|
+
if (!el) {
|
|
199
|
+
el = this._items.at(0);
|
|
200
|
+
}
|
|
201
|
+
const elRect = el.getBoundingClientRect();
|
|
202
|
+
const sliderRect = this._sliderRef.getBoundingClientRect();
|
|
203
|
+
return sliderRect.width - elRect.width < 10;
|
|
204
|
+
}
|
|
205
|
+
get _el() { return this; }
|
|
206
|
+
static get style() { return contentSliderComponentCss; }
|
|
207
|
+
}, [1, "p-content-slider", {
|
|
208
|
+
"hideMobileIndicator": [4, "hide-mobile-indicator"],
|
|
209
|
+
"disableDrag": [4, "disable-drag"],
|
|
210
|
+
"disableAutoCenter": [4, "disable-auto-center"],
|
|
211
|
+
"disableIndicatorClick": [4, "disable-indicator-click"],
|
|
212
|
+
"_visibleIndex": [32],
|
|
213
|
+
"_outerHeight": [32],
|
|
214
|
+
"_totalWidth": [32],
|
|
215
|
+
"_dragging": [32]
|
|
216
|
+
}, [[9, "mouseup", "mouseUpHandler"], [9, "touchend", "mouseUpHandler"], [9, "resize", "resizeHandler"]]]);
|
|
217
|
+
function defineCustomElement$1() {
|
|
218
|
+
if (typeof customElements === "undefined") {
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
const components = ["p-content-slider", "p-slider-indicator"];
|
|
222
|
+
components.forEach(tagName => { switch (tagName) {
|
|
223
|
+
case "p-content-slider":
|
|
224
|
+
if (!customElements.get(tagName)) {
|
|
225
|
+
customElements.define(tagName, ContentSlider);
|
|
226
|
+
}
|
|
227
|
+
break;
|
|
228
|
+
case "p-slider-indicator":
|
|
229
|
+
if (!customElements.get(tagName)) {
|
|
230
|
+
defineCustomElement$2();
|
|
231
|
+
}
|
|
232
|
+
break;
|
|
233
|
+
} });
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
const PContentSlider = ContentSlider;
|
|
237
|
+
const defineCustomElement = defineCustomElement$1;
|
|
238
|
+
|
|
239
|
+
export { PContentSlider, defineCustomElement };
|
|
240
|
+
|
|
241
|
+
//# sourceMappingURL=p-content-slider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-content-slider.js","mappings":";;;AAAA,MAAM,yBAAyB,GAAG,u0FAAu0F;;MCe51F,aAAa;;;;;IA+Bd,WAAM,GAAkB,EAAE,CAAC;IAQ3B,yBAAoB,GAAG,KAAK,CAAC;+BAnCE,KAAK;uBAKb,KAAK;6BAKC,KAAK;iCAKD,KAAK;;wBAQd,CAAC;uBACF,CAAC;qBAYH,KAAK;;EAElC,mBAAmB;IACf,MAAM,KAAK,GAAG,I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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/molecules/content-slider/content-slider.component.scss?tag=p-content-slider&encapsulation=shadow","./src/components/molecules/content-slider/content-slider.component.tsx"],"sourcesContent":[":host {\n @apply flex flex-col overflow-hidden;\n\n @apply p-16 -m-16;\n\n .slider {\n @apply overflow-visible relative box-content;\n\n &.draggable {\n @apply cursor-grab desktop-xs:cursor-auto;\n\n &.dragging {\n @apply cursor-grabbing desktop-xs:cursor-auto;\n\n .inner-slider {\n @apply transition-none;\n }\n }\n }\n\n .inner-slider {\n @apply absolute flex flex-nowrap items-stretch w-full gap-2;\n\n @apply will-change-transform transform-gpu translate-x-0;\n\n @apply desktop-xs:gap-4 desktop-xs:flex-wrap;\n\n @apply transition-all;\n transition-duration: 0.5s;\n\n > ::slotted(*) {\n @apply w-full;\n @apply flex-shrink-0 z-10;\n\n @screen tablet {\n width: calc(50% - 0.5rem);\n }\n\n @screen desktop-xs {\n @apply w-0 flex-1;\n }\n\n position: relative;\n }\n }\n }\n\n .indicator {\n @apply flex justify-center items-center desktop-xs:hidden;\n\n .item {\n @apply mt-3 pt-1 px-1;\n }\n }\n}\n","import {\n Component,\n Element,\n h,\n Host,\n Listen,\n Prop,\n State,\n} from '@stencil/core';\n\n@Component({\n tag: 'p-content-slider',\n styleUrl: 'content-slider.component.scss',\n shadow: true,\n})\nexport class ContentSlider {\n /**\n * Wether to hide the indicator on mobile\n */\n @Prop() hideMobileIndicator: boolean = false;\n\n /**\n * Wether to disable dragging the content\n */\n @Prop() disableDrag: boolean = false;\n\n /**\n * Wether to disable auto centering the content\n */\n @Prop() disableAutoCenter: boolean = false;\n\n /**\n * Wether to disable clicking the indicator scrolls content\n */\n @Prop() disableIndicatorClick: boolean = false;\n\n /**\n * The host element\n */\n @Element() private _el: HTMLElement;\n\n @State() private _visibleIndex: number;\n @State() private _outerHeight = 0;\n @State() private _totalWidth = 0;\n private _sliderRef: HTMLElement;\n private _innerSliderRef: HTMLElement;\n private _items: HTMLElement[] = [];\n private _innerSliderResizeObserver: ResizeObserver;\n\n // mouse movement stuff\n private _startX: number;\n private _startMouseX: number;\n private _lastMouseX: number;\n private _lastIndex: number;\n private _shouldCheckLocation = false;\n @State() private _dragging = false;\n\n componentWillRender() {\n const items = this._el.querySelectorAll(':scope > *');\n this._items = Array.from(items) as HTMLElement[];\n }\n\n componentDidLoad() {\n this._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);\n this._calculateWidth();\n this._calculateIndicator();\n }\n\n disconnectedCallback() {\n if (this._innerSliderResizeObserver) {\n this._innerSliderResizeObserver.disconnect();\n }\n }\n\n render() {\n return (\n <Host class=\"p-content-slider\">\n <div\n class={`slider ${!this.disableDrag && 'draggable'} ${\n this._dragging && 'dragging'\n }`}\n style={{\n height: `${this._outerHeight}px`,\n }}\n ref={(el) => (this._sliderRef = el)}\n onMouseDown={(e) => this._mouseDownHandler(e)}\n onTouchStart={(e) => this._mouseDownHandler(e)}\n onMouseMove={(e) => this._mouseMoveHandler(e)}\n onTouchMove={(e) => this._mouseMoveHandler(e)}\n >\n <div\n class=\"inner-slider\"\n ref={(ref) => this._setInnerSliderReft(ref)}\n onTransitionEnd={() => this._transitionEndHandler()}\n >\n <slot />\n </div>\n </div>\n <div\n class={`indicator ${this.hideMobileIndicator && 'hidden'}`}\n >\n {this._items.map((_, i) => (\n <div\n onClick={() => this._scrollTo(i, true)}\n class={`item ${\n !this.disableIndicatorClick && 'cursor-pointer'\n }`}\n >\n <p-slider-indicator\n active={i === this._visibleIndex}\n />\n </div>\n ))}\n </div>\n </Host>\n );\n }\n\n private _mouseDownHandler(e) {\n if (this.disableDrag || this._dragging) {\n return;\n }\n\n const innerSliderStyle = getComputedStyle(this._innerSliderRef);\n if (innerSliderStyle.flexWrap === 'wrap') {\n return;\n }\n\n this._startMouseX = e.x;\n const sliderRect = this._sliderRef.getBoundingClientRect();\n if (e.type === 'touchstart') {\n this._startMouseX = e.touches?.[0].clientX;\n }\n\n const innerSliderRect = this._innerSliderRef.getBoundingClientRect();\n const offsetLeft = innerSliderRect.x - sliderRect.x;\n\n this._startX = this._startMouseX - sliderRect.x - offsetLeft;\n this._lastIndex = this._visibleIndex;\n this._dragging = true;\n }\n\n private _mouseMoveHandler(e) {\n if (!e || !this._dragging || this.disableDrag) {\n return;\n }\n\n e.preventDefault();\n\n this._shouldCheckLocation = true;\n\n if (\n this._innerSliderRef.style.getPropertyValue('pointer-events') === ''\n ) {\n this._innerSliderRef.style.pointerEvents = 'none';\n }\n\n const sliderRect = this._sliderRef.getBoundingClientRect();\n let x = e.clientX - sliderRect.left;\n this._lastMouseX = e.x;\n if (e.type === 'touchmove') {\n x = e.touches?.[0].clientX - sliderRect.left;\n this._lastMouseX = e.touches?.[0].clientX;\n }\n\n this._innerSliderRef.style.setProperty(\n '--tw-translate-x',\n `${x - this._startX}px`\n );\n\n this._checkBoundary();\n this._calculateIndicator();\n }\n\n private _transitionEndHandler() {\n this._calculateIndicator();\n }\n\n @Listen('mouseup', { target: 'window' })\n @Listen('touchend', { target: 'window' })\n mouseUpHandler() {\n this._dragging = false;\n this._innerSliderRef.style.removeProperty('pointer-events');\n\n this._checkLocation();\n }\n\n @Listen('resize', { target: 'window' })\n resizeHandler() {\n if (this._innerSliderRef) {\n this._innerSliderRef.style.setProperty('--tw-translate-x', '0px');\n this._calculateWidth();\n this._calculateIndicator();\n }\n }\n\n private _setInnerSliderReft(ref) {\n this._innerSliderRef = ref;\n this._innerSliderResizeObserver = new ResizeObserver(() =>\n this._calculateHeight()\n );\n this._innerSliderResizeObserver.observe(this._innerSliderRef);\n }\n\n private _scrollTo(i: number, manual = false) {\n if (this.disableIndicatorClick && manual) {\n return;\n }\n\n const el = this._items[i];\n\n if (i === 0) {\n this._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);\n return;\n }\n\n const sliderRect = this._sliderRef.getBoundingClientRect();\n const innerSliderRect = this._innerSliderRef.getBoundingClientRect();\n const elRect = el.getBoundingClientRect();\n\n const offsetLeft = elRect.x - innerSliderRect.x;\n\n const centerOffset =\n offsetLeft + elRect.width / 2 - sliderRect.width / 2;\n\n this._innerSliderRef.style.setProperty(\n '--tw-translate-x',\n `-${centerOffset}px`\n );\n\n this._checkBoundary();\n this._calculateIndicator();\n }\n\n private _checkBoundary() {\n let outer = this._sliderRef.getBoundingClientRect();\n\n const left = parseInt(\n this._innerSliderRef.style.getPropertyValue('--tw-translate-x')\n );\n if (left > 0) {\n this._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);\n }\n\n const maxLeft = (this._totalWidth - outer.width) * -1;\n if (left < maxLeft) {\n this._innerSliderRef.style.setProperty(\n '--tw-translate-x',\n `${maxLeft}px`\n );\n }\n }\n\n private _calculateIndicator() {\n for (let i = 0; i < this._items.length; i++) {\n const item = this._items[i];\n const visible = this._isVisible(item);\n\n if (visible) {\n this._visibleIndex = i;\n }\n\n if (i === 0 && visible) {\n break;\n }\n }\n }\n\n private _checkLocation() {\n if (!this._shouldCheckLocation) {\n return;\n }\n\n let scrollToIndex = null;\n if (this._lastIndex !== this._visibleIndex) {\n scrollToIndex = this._visibleIndex;\n }\n\n if (this._lastIndex === this._visibleIndex) {\n if (this._lastMouseX > this._startMouseX && this._lastIndex !== 0) {\n scrollToIndex = this._lastIndex - 1;\n }\n\n if (\n this._lastMouseX < this._startMouseX &&\n this._lastIndex !== this._items?.length - 1\n ) {\n scrollToIndex = this._lastIndex + 1;\n }\n }\n\n if (scrollToIndex !== null) {\n this._shouldCheckLocation = false;\n setTimeout(() => this._scrollTo(scrollToIndex), 100);\n }\n }\n\n private _isVisible(el: HTMLElement) {\n if (!this._el || !el) {\n return false;\n }\n\n const elRect = el.getBoundingClientRect();\n const sliderRect = this._sliderRef.getBoundingClientRect();\n\n return (\n (elRect.left >= sliderRect.left &&\n elRect.right <= sliderRect.right) ||\n (this._isMobile(el) &&\n elRect.left + elRect.width / 2 >= sliderRect.left &&\n elRect.left + elRect.width / 2 <= sliderRect.right)\n );\n }\n\n private _calculateWidth() {\n let totalWidth = 0;\n\n for (let item of this._items) {\n const rect = item.getBoundingClientRect();\n totalWidth += rect.width;\n }\n\n const sliderStyle = getComputedStyle(this._sliderRef);\n const padding = parseInt(sliderStyle.padding) * 2;\n\n const innerSliderStyle = getComputedStyle(this._innerSliderRef);\n const gap = parseInt(innerSliderStyle.gap) * (this._items.length - 1);\n\n totalWidth += padding + gap;\n\n this._totalWidth = totalWidth;\n }\n\n private _calculateHeight() {\n const outerHeight = this._items.at(0).getBoundingClientRect().height;\n if (outerHeight != this._outerHeight) {\n this._outerHeight = outerHeight;\n }\n }\n\n private _isMobile(el?: HTMLElement) {\n if (!el) {\n el = this._items.at(0);\n }\n\n const elRect = el.getBoundingClientRect();\n const sliderRect = this._sliderRef.getBoundingClientRect();\n\n return sliderRect.width - elRect.width < 10;\n }\n}\n"],"version":3}
|