@paperless/core 0.1.0-alpha.10 → 0.1.0-alpha.100
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 +924 -0
- package/README.md +1 -1
- package/dist/assets/icons/checklist.svg +17 -0
- 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/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/build/p-113baa35.entry.js +1 -0
- package/dist/build/p-19c20c8e.entry.js +1 -0
- package/dist/build/p-1ef22f4e.entry.js +1 -0
- package/dist/build/p-2672f14b.entry.js +1 -0
- package/dist/build/p-2beaf0e8.entry.js +1 -0
- package/dist/build/p-4336cbbc.entry.js +1 -0
- package/dist/build/p-58ce5668.entry.js +1 -0
- package/dist/build/p-6088647a.entry.js +1 -0
- package/dist/build/p-6835a9e3.entry.js +1 -0
- package/dist/build/p-6e778574.entry.js +1 -0
- package/dist/build/p-79d3258f.entry.js +1 -0
- package/dist/build/p-801d05b6.entry.js +1 -0
- package/dist/build/p-829c4101.entry.js +1 -0
- package/dist/build/p-89fda3a8.entry.js +1 -0
- package/dist/build/p-8ac8a69d.entry.js +1 -0
- package/dist/build/{p-22129b00.entry.js → p-8b743795.entry.js} +1 -1
- package/dist/build/p-92b6c76c.entry.js +1 -0
- package/dist/build/p-938f52ee.entry.js +1 -0
- package/dist/build/p-985ee694.entry.js +1 -0
- package/dist/build/p-9d98d0d9.entry.js +1 -0
- package/dist/build/p-a5ebbd0c.entry.js +1 -0
- package/dist/build/p-a6127c75.entry.js +1 -0
- package/dist/build/p-a7086ffa.js +1 -0
- package/dist/build/p-bc7e8cc4.js +2 -0
- package/dist/build/p-bd50db3d.entry.js +1 -0
- package/dist/build/p-c27046e6.entry.js +1 -0
- package/dist/build/p-c59d9fc2.entry.js +1 -0
- package/dist/build/p-cc177072.entry.js +1 -0
- package/dist/build/p-cece7715.entry.js +1 -0
- package/dist/build/p-d32f2578.entry.js +1 -0
- package/dist/build/p-e20a1842.entry.js +1 -0
- package/dist/build/p-e2a98d53.entry.js +1 -0
- package/dist/build/p-e934ef94.entry.js +1 -0
- package/dist/build/p-e9e20ac3.entry.js +1 -0
- package/dist/build/p-ec2a5f95.entry.js +1 -0
- package/dist/build/p-ede5e914.entry.js +1 -0
- package/dist/build/paperless.css +190 -18
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-7caa3dae.js → index-9d3b51c9.js} +235 -5
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/p-accordion.cjs.entry.js +42 -0
- package/dist/cjs/p-avatar-group.cjs.entry.js +19 -0
- package/dist/cjs/p-avatar_2.cjs.entry.js +179 -0
- package/dist/cjs/p-button_3.cjs.entry.js +265 -13
- package/dist/cjs/p-card-body.cjs.entry.js +23 -0
- package/dist/cjs/p-card-container.cjs.entry.js +27 -0
- package/dist/cjs/p-card-header.cjs.entry.js +24 -0
- package/dist/cjs/p-content-slider.cjs.entry.js +153 -0
- package/dist/cjs/p-counter.cjs.entry.js +11 -3
- package/dist/cjs/p-divider.cjs.entry.js +22 -0
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +19 -0
- package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +23 -0
- package/dist/cjs/p-helper.cjs.entry.js +7 -3
- package/dist/cjs/p-illustration.cjs.entry.js +5 -2
- package/dist/cjs/p-info-panel.cjs.entry.js +2 -2
- package/dist/cjs/p-input-group.cjs.entry.js +51 -0
- package/dist/cjs/p-layout.cjs.entry.js +23 -0
- package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +101 -0
- package/dist/cjs/p-modal.cjs.entry.js +48 -0
- package/dist/cjs/p-navbar.cjs.entry.js +34 -0
- package/dist/cjs/p-navigation-item.cjs.entry.js +23 -0
- package/dist/cjs/p-pagination-item.cjs.entry.js +23 -0
- package/dist/cjs/p-pagination.cjs.entry.js +171 -0
- package/dist/cjs/p-profile.cjs.entry.js +46 -0
- package/dist/cjs/p-segment-container.cjs.entry.js +19 -0
- package/dist/cjs/p-segment-item.cjs.entry.js +29 -0
- package/dist/cjs/p-slider-indicator.cjs.entry.js +23 -0
- package/dist/cjs/p-status.cjs.entry.js +49 -0
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +56 -0
- package/dist/cjs/p-stepper.cjs.entry.js +71 -0
- package/dist/cjs/p-tab-group.cjs.entry.js +19 -0
- package/dist/cjs/p-tab-item.cjs.entry.js +23 -0
- package/dist/cjs/p-tag.cjs.entry.js +27 -0
- package/dist/cjs/p-tooltip.cjs.entry.js +35 -1807
- package/dist/cjs/paperless.cjs.js +3 -3
- package/dist/cjs/popper-e0c4ed4c.js +1790 -0
- package/dist/collection/assets/icons/checklist.svg +17 -0
- 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/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/collection-manifest.json +35 -2
- package/dist/collection/components/atoms/avatar/avatar.component.css +12 -19
- package/dist/collection/components/atoms/avatar/avatar.component.js +10 -5
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +18 -0
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +36 -0
- package/dist/collection/components/atoms/button/button.component.css +41 -17
- package/dist/collection/components/atoms/button/button.component.js +109 -11
- package/dist/collection/components/atoms/card-body/card-body.component.css +9 -0
- package/dist/collection/components/atoms/card-body/card-body.component.js +40 -0
- package/dist/collection/components/atoms/card-container/card-container.component.css +17 -0
- package/dist/collection/components/atoms/card-container/card-container.component.js +63 -0
- package/dist/collection/components/atoms/card-header/card-header.component.css +17 -0
- package/dist/collection/components/atoms/card-header/card-header.component.js +61 -0
- package/dist/collection/components/atoms/counter/counter.component.css +26 -1
- package/dist/collection/components/atoms/counter/counter.component.js +50 -2
- package/dist/collection/components/atoms/divider/divider.component.css +10 -0
- package/dist/collection/components/atoms/divider/divider.component.js +20 -0
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +6 -0
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +14 -0
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +13 -0
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +64 -0
- package/dist/collection/components/atoms/helper/helper.component.css +1 -1
- package/dist/collection/components/atoms/helper/helper.component.js +33 -2
- package/dist/collection/components/atoms/icon/icon.component.css +1 -0
- package/dist/collection/components/atoms/icon/icon.component.js +62 -13
- package/dist/collection/components/atoms/illustration/illustration.component.js +1 -1
- package/dist/collection/components/atoms/info-panel/info-panel.component.css +1 -1
- package/dist/collection/components/atoms/layout/layout.component.css +73 -0
- package/dist/collection/components/atoms/layout/layout.component.js +47 -0
- package/dist/collection/components/atoms/loader/loader.component.css +2 -2
- package/dist/collection/components/atoms/loader/loader.component.js +4 -3
- package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +7 -0
- package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.js +15 -0
- package/dist/collection/components/atoms/modal-body/modal-body.component.css +7 -0
- package/dist/collection/components/atoms/modal-body/modal-body.component.js +41 -0
- package/dist/collection/components/atoms/modal-container/modal-container.component.css +6 -0
- package/dist/collection/components/atoms/modal-container/modal-container.component.js +53 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +8 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +42 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.css +16 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.js +64 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +16 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +41 -0
- package/dist/collection/components/atoms/segment-container/segment-container.component.css +5 -0
- package/dist/collection/components/atoms/segment-container/segment-container.component.js +14 -0
- package/dist/collection/components/atoms/segment-item/segment-item.component.css +21 -0
- package/dist/collection/components/atoms/segment-item/segment-item.component.js +112 -0
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.css +7 -0
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +40 -0
- package/dist/collection/components/atoms/status/status.component.css +16 -0
- package/dist/collection/components/atoms/status/status.component.js +133 -0
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +59 -0
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +109 -0
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +18 -0
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +62 -0
- package/dist/collection/components/atoms/tab-group/tab-group.component.css +9 -0
- package/dist/collection/components/atoms/tab-group/tab-group.component.js +17 -0
- package/dist/collection/components/atoms/tab-item/tab-item.component.css +10 -0
- package/dist/collection/components/atoms/tab-item/tab-item.component.js +41 -0
- package/dist/collection/components/atoms/tag/tag.component.css +51 -0
- package/dist/collection/components/atoms/tag/tag.component.js +64 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +19 -13
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +77 -24
- package/dist/collection/components/molecules/accordion/accordion.component.css +3 -0
- package/dist/collection/components/molecules/accordion/accordion.component.js +133 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.css +26 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +229 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +12 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +267 -0
- package/dist/collection/components/molecules/input-group/input-group.component.css +204 -0
- package/dist/collection/components/molecules/input-group/input-group.component.js +264 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +22 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +118 -0
- package/dist/collection/components/molecules/pagination/pagination.component.css +3 -0
- package/dist/collection/components/molecules/pagination/pagination.component.js +242 -0
- package/dist/collection/components/molecules/profile/profile.component.css +36 -0
- package/dist/collection/components/molecules/profile/profile.component.js +92 -0
- package/dist/collection/components/molecules/stepper/stepper.component.css +12 -0
- package/dist/collection/components/molecules/stepper/stepper.component.js +106 -0
- package/dist/collection/components/organisms/modal/modal.component.js +175 -0
- package/dist/collection/components/organisms/navbar/navbar.component.css +56 -0
- package/dist/collection/components/organisms/navbar/navbar.component.js +99 -0
- package/dist/collection/tailwind/animation.js +17 -0
- package/dist/collection/tailwind/backdrop-blur.js +3 -0
- package/dist/collection/tailwind/border-radius.js +8 -7
- package/dist/collection/tailwind/screens.js +8 -0
- package/dist/collection/tailwind/shadows.js +9 -5
- package/dist/collection/tailwind/spacing.js +10 -0
- package/dist/collection/tailwind/typography.js +21 -0
- package/dist/collection/tailwind/width.js +18 -0
- package/dist/collection/tailwind/z-index.js +3 -0
- package/dist/collection/tailwind.config.js +26 -14
- package/dist/collection/utils/child-of.js +5 -0
- package/dist/collection/utils/icons.js +18 -0
- package/dist/collection/utils/illustrations.js +2 -0
- package/dist/collection/utils/types.js +1 -0
- package/dist/components/avatar.component.js +54 -0
- package/dist/components/button.component.js +119 -0
- package/dist/components/counter.component.js +41 -0
- package/dist/components/divider.component.js +33 -0
- package/dist/components/dropdown-menu-container.component.js +29 -0
- package/dist/components/dropdown.component.js +170 -0
- package/dist/components/helper.component.js +42 -0
- package/dist/components/icon.component.js +236 -5
- package/dist/components/index.d.ts +42 -9
- package/dist/components/index.js +33 -0
- package/dist/components/loader.component.js +5 -4
- package/dist/components/modal-backdrop.component.js +30 -0
- package/dist/components/modal-body.component.js +36 -0
- package/dist/components/modal-container.component.js +48 -0
- package/dist/components/modal-footer.component.js +42 -0
- package/dist/components/modal-header.component.js +43 -0
- package/dist/components/p-accordion.d.ts +11 -0
- package/dist/components/p-accordion.js +73 -0
- package/dist/components/p-avatar-group.d.ts +11 -0
- package/dist/components/p-avatar-group.js +34 -0
- package/dist/components/p-avatar.js +1 -47
- package/dist/components/p-button.js +1 -93
- package/dist/components/p-card-body.d.ts +11 -0
- package/dist/components/p-card-body.js +38 -0
- package/dist/components/p-card-container.d.ts +11 -0
- package/dist/components/p-card-container.js +44 -0
- package/dist/components/p-card-header.d.ts +11 -0
- package/dist/components/p-card-header.js +46 -0
- package/dist/components/p-content-slider.d.ts +11 -0
- package/dist/components/p-content-slider.js +181 -0
- package/dist/components/p-counter.js +1 -28
- package/dist/components/p-divider.d.ts +11 -0
- package/dist/components/p-divider.js +6 -0
- package/dist/components/p-dropdown-menu-container.d.ts +11 -0
- package/dist/components/p-dropdown-menu-container.js +6 -0
- package/dist/components/p-dropdown-menu-item.d.ts +11 -0
- package/dist/components/p-dropdown-menu-item.js +46 -0
- package/dist/components/p-dropdown.d.ts +11 -0
- package/dist/components/p-dropdown.js +6 -0
- package/dist/components/p-helper.js +1 -34
- package/dist/components/p-illustration.js +3 -0
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-input-group.d.ts +11 -0
- package/dist/components/p-input-group.js +96 -0
- package/dist/components/p-layout.d.ts +11 -0
- package/dist/components/p-layout.js +39 -0
- package/dist/components/p-modal-backdrop.d.ts +11 -0
- package/dist/components/p-modal-backdrop.js +6 -0
- package/dist/components/p-modal-body.d.ts +11 -0
- package/dist/components/p-modal-body.js +6 -0
- package/dist/components/p-modal-container.d.ts +11 -0
- package/dist/components/p-modal-container.js +6 -0
- package/dist/components/p-modal-footer.d.ts +11 -0
- package/dist/components/p-modal-footer.js +6 -0
- package/dist/components/p-modal-header.d.ts +11 -0
- package/dist/components/p-modal-header.js +6 -0
- package/dist/components/p-modal.d.ts +11 -0
- package/dist/components/p-modal.js +111 -0
- package/dist/components/p-navbar.d.ts +11 -0
- package/dist/components/p-navbar.js +70 -0
- package/dist/components/p-navigation-item.d.ts +11 -0
- package/dist/components/p-navigation-item.js +55 -0
- package/dist/components/p-pagination-item.d.ts +11 -0
- package/dist/components/p-pagination-item.js +6 -0
- package/dist/components/p-pagination.d.ts +11 -0
- package/dist/components/p-pagination.js +200 -0
- package/dist/components/p-profile.d.ts +11 -0
- package/dist/components/p-profile.js +88 -0
- package/dist/components/p-segment-container.d.ts +11 -0
- package/dist/components/p-segment-container.js +32 -0
- package/dist/components/p-segment-item.d.ts +11 -0
- package/dist/components/p-segment-item.js +54 -0
- package/dist/components/p-slider-indicator.d.ts +11 -0
- package/dist/components/p-slider-indicator.js +6 -0
- package/dist/components/p-status.d.ts +11 -0
- package/dist/components/p-status.js +73 -0
- package/dist/components/p-stepper-item.d.ts +11 -0
- package/dist/components/p-stepper-item.js +6 -0
- package/dist/components/p-stepper-line.d.ts +11 -0
- package/dist/components/p-stepper-line.js +6 -0
- package/dist/components/p-stepper.d.ts +11 -0
- package/dist/components/p-stepper.js +106 -0
- package/dist/components/p-tab-group.d.ts +11 -0
- package/dist/components/p-tab-group.js +39 -0
- package/dist/components/p-tab-item.d.ts +11 -0
- package/dist/components/p-tab-item.js +39 -0
- package/dist/components/p-tag.d.ts +11 -0
- package/dist/components/p-tag.js +44 -0
- package/dist/components/pagination-item.component.js +36 -0
- package/dist/components/popper.js +1788 -0
- package/dist/components/slider-indicator.component.js +36 -0
- package/dist/components/stepper-item.component.js +57 -0
- package/dist/components/stepper-line.component.js +41 -0
- package/dist/components/tooltip.component.js +37 -1808
- package/dist/esm/{index-d61d31b2.js → index-9062156b.js} +235 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/p-accordion.entry.js +38 -0
- package/dist/esm/p-avatar-group.entry.js +15 -0
- package/dist/esm/p-avatar_2.entry.js +174 -0
- package/dist/esm/p-button_3.entry.js +265 -13
- package/dist/esm/p-card-body.entry.js +19 -0
- package/dist/esm/p-card-container.entry.js +23 -0
- package/dist/esm/p-card-header.entry.js +20 -0
- package/dist/esm/p-content-slider.entry.js +149 -0
- package/dist/esm/p-counter.entry.js +11 -3
- package/dist/esm/p-divider.entry.js +18 -0
- package/dist/esm/p-dropdown-menu-container.entry.js +15 -0
- package/dist/esm/p-dropdown-menu-item.entry.js +19 -0
- package/dist/esm/p-helper.entry.js +7 -3
- package/dist/esm/p-illustration.entry.js +5 -2
- package/dist/esm/p-info-panel.entry.js +2 -2
- package/dist/esm/p-input-group.entry.js +47 -0
- package/dist/esm/p-layout.entry.js +19 -0
- package/dist/esm/p-modal-backdrop_5.entry.js +93 -0
- package/dist/esm/p-modal.entry.js +44 -0
- package/dist/esm/p-navbar.entry.js +30 -0
- package/dist/esm/p-navigation-item.entry.js +19 -0
- package/dist/esm/p-pagination-item.entry.js +19 -0
- package/dist/esm/p-pagination.entry.js +167 -0
- package/dist/esm/p-profile.entry.js +42 -0
- package/dist/esm/p-segment-container.entry.js +15 -0
- package/dist/esm/p-segment-item.entry.js +25 -0
- package/dist/esm/p-slider-indicator.entry.js +19 -0
- package/dist/esm/p-status.entry.js +45 -0
- package/dist/esm/p-stepper-item_2.entry.js +51 -0
- package/dist/esm/p-stepper.entry.js +67 -0
- package/dist/esm/p-tab-group.entry.js +15 -0
- package/dist/esm/p-tab-item.entry.js +19 -0
- package/dist/esm/p-tag.entry.js +23 -0
- package/dist/esm/p-tooltip.entry.js +35 -1807
- package/dist/esm/paperless.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- 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-41c6f9cd.js +1788 -0
- package/dist/index.html +1 -1
- package/dist/paperless/p-113baa35.entry.js +1 -0
- package/dist/paperless/p-19c20c8e.entry.js +1 -0
- package/dist/paperless/p-1ef22f4e.entry.js +1 -0
- package/dist/paperless/p-2672f14b.entry.js +1 -0
- package/dist/paperless/p-2beaf0e8.entry.js +1 -0
- package/dist/paperless/p-4336cbbc.entry.js +1 -0
- package/dist/paperless/p-58ce5668.entry.js +1 -0
- package/dist/paperless/p-6088647a.entry.js +1 -0
- package/dist/paperless/p-6835a9e3.entry.js +1 -0
- package/dist/paperless/p-6e778574.entry.js +1 -0
- package/dist/paperless/p-79d3258f.entry.js +1 -0
- package/dist/paperless/p-801d05b6.entry.js +1 -0
- package/dist/paperless/p-829c4101.entry.js +1 -0
- package/dist/paperless/p-89fda3a8.entry.js +1 -0
- package/dist/paperless/p-8ac8a69d.entry.js +1 -0
- package/dist/paperless/{p-22129b00.entry.js → p-8b743795.entry.js} +1 -1
- package/dist/paperless/p-92b6c76c.entry.js +1 -0
- package/dist/paperless/p-938f52ee.entry.js +1 -0
- package/dist/paperless/p-985ee694.entry.js +1 -0
- package/dist/paperless/p-9d98d0d9.entry.js +1 -0
- package/dist/paperless/p-a5ebbd0c.entry.js +1 -0
- package/dist/paperless/p-a6127c75.entry.js +1 -0
- package/dist/paperless/p-a7086ffa.js +1 -0
- package/dist/paperless/p-bc7e8cc4.js +2 -0
- package/dist/paperless/p-bd50db3d.entry.js +1 -0
- package/dist/paperless/p-c27046e6.entry.js +1 -0
- package/dist/paperless/p-c59d9fc2.entry.js +1 -0
- package/dist/paperless/p-cc177072.entry.js +1 -0
- package/dist/paperless/p-cece7715.entry.js +1 -0
- package/dist/paperless/p-d32f2578.entry.js +1 -0
- package/dist/paperless/p-e20a1842.entry.js +1 -0
- package/dist/paperless/p-e2a98d53.entry.js +1 -0
- package/dist/paperless/p-e934ef94.entry.js +1 -0
- package/dist/paperless/p-e9e20ac3.entry.js +1 -0
- package/dist/paperless/p-ec2a5f95.entry.js +1 -0
- package/dist/paperless/p-ede5e914.entry.js +1 -0
- package/dist/paperless/paperless.css +288 -26451
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +2 -368
- package/dist/sw.js.map +1 -0
- package/dist/tailwind/animation.js +17 -0
- package/dist/tailwind/backdrop-blur.js +3 -0
- package/dist/tailwind/border-radius.js +10 -0
- package/dist/tailwind/colors.js +52 -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 +11 -0
- package/dist/tailwind/spacing.js +10 -0
- package/dist/tailwind/typography.js +21 -0
- package/dist/tailwind/width.js +18 -0
- package/dist/tailwind/z-index.js +3 -0
- package/dist/tailwind.config.js +26 -14
- package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +7 -0
- package/dist/types/components/atoms/button/button.component.d.ts +18 -1
- 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 +8 -0
- package/dist/types/components/atoms/divider/divider.component.d.ts +7 -0
- package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +3 -0
- package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +12 -0
- package/dist/types/components/atoms/helper/helper.component.d.ts +5 -0
- package/dist/types/components/atoms/icon/icon.component.d.ts +3 -3
- package/dist/types/components/atoms/layout/layout.component.d.ts +7 -0
- package/dist/types/components/atoms/modal-backdrop/modal-backdrop.component.d.ts +3 -0
- package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +7 -0
- package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +7 -0
- package/dist/types/components/atoms/modal-footer/modal-footer.component.d.ts +7 -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 +19 -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/tag/tag.component.d.ts +11 -0
- package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +12 -3
- package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -0
- package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +44 -0
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +47 -0
- package/dist/types/components/molecules/input-group/input-group.component.d.ts +53 -0
- package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +24 -0
- package/dist/types/components/molecules/pagination/pagination.component.d.ts +28 -0
- package/dist/types/components/molecules/profile/profile.component.d.ts +19 -0
- package/dist/types/components/molecules/stepper/stepper.component.d.ts +18 -0
- package/dist/types/components/organisms/modal/modal.component.d.ts +38 -0
- package/dist/types/components/organisms/navbar/navbar.component.d.ts +14 -0
- package/dist/types/components.d.ts +1277 -140
- package/dist/types/utils/child-of.d.ts +1 -0
- package/dist/types/utils/icons.d.ts +9 -0
- package/dist/types/utils/illustrations.d.ts +1 -0
- package/dist/types/utils/types.d.ts +2 -0
- package/dist/workbox-5fe694da.js +2 -0
- package/dist/workbox-5fe694da.js.map +1 -0
- package/package.json +61 -61
- package/dist/build/p-44a929c9.entry.js +0 -1
- package/dist/build/p-6794871e.entry.js +0 -1
- package/dist/build/p-8cb80a47.entry.js +0 -1
- package/dist/build/p-a2fc051b.entry.js +0 -1
- package/dist/build/p-a4ea5760.entry.js +0 -1
- package/dist/build/p-b4ef7a57.entry.js +0 -1
- package/dist/build/p-fa6ab882.js +0 -2
- package/dist/cjs/p-avatar.cjs.entry.js +0 -32
- package/dist/collection/tailwind/grid.js +0 -26
- package/dist/esm/p-avatar.entry.js +0 -28
- package/dist/paperless/p-44a929c9.entry.js +0 -1
- package/dist/paperless/p-6794871e.entry.js +0 -1
- package/dist/paperless/p-8cb80a47.entry.js +0 -1
- package/dist/paperless/p-a2fc051b.entry.js +0 -1
- package/dist/paperless/p-a4ea5760.entry.js +0 -1
- package/dist/paperless/p-b4ef7a57.entry.js +0 -1
- package/dist/paperless/p-fa6ab882.js +0 -2
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
@apply flex flex-col w-full;
|
|
3
|
+
}
|
|
4
|
+
:host .input-label {
|
|
5
|
+
@apply text-xs text-storm-vague font-semibold uppercase tracking-wider;
|
|
6
|
+
}
|
|
7
|
+
:host .input-header {
|
|
8
|
+
@apply flex gap-2 items-end mb-[2px];
|
|
9
|
+
}
|
|
10
|
+
:host .content {
|
|
11
|
+
@apply flex;
|
|
12
|
+
}
|
|
13
|
+
:host .content .prefix,
|
|
14
|
+
:host .content .suffix {
|
|
15
|
+
@apply flex justify-start items-center h-10;
|
|
16
|
+
@apply text-storm-dark;
|
|
17
|
+
@apply bg-white px-4 w-full;
|
|
18
|
+
@apply rounded-large;
|
|
19
|
+
@apply border border-mystic-dark border-solid !important;
|
|
20
|
+
@apply outline-0 !important;
|
|
21
|
+
@apply flex-1 text-storm box-border;
|
|
22
|
+
}
|
|
23
|
+
:host .content .prefix::placeholder,
|
|
24
|
+
:host .content .suffix::placeholder {
|
|
25
|
+
@apply text-storm-medium;
|
|
26
|
+
}
|
|
27
|
+
:host .content .prefix:focus, :host .content .prefix:focus-visible, :host .content .prefix.focus,
|
|
28
|
+
:host .content .suffix:focus,
|
|
29
|
+
:host .content .suffix:focus-visible,
|
|
30
|
+
:host .content .suffix.focus {
|
|
31
|
+
@apply border-indigo !important;
|
|
32
|
+
}
|
|
33
|
+
:host .content .prefix {
|
|
34
|
+
@apply rounded-tr-none rounded-br-none;
|
|
35
|
+
@apply border-r-0 !important;
|
|
36
|
+
@apply order-1;
|
|
37
|
+
@apply pr-2;
|
|
38
|
+
}
|
|
39
|
+
:host .content .suffix {
|
|
40
|
+
@apply rounded-tl-none rounded-bl-none;
|
|
41
|
+
@apply border-l-0 !important;
|
|
42
|
+
@apply order-3;
|
|
43
|
+
@apply pl-2;
|
|
44
|
+
}
|
|
45
|
+
:host .content ::slotted(input[type=text].p-input),
|
|
46
|
+
:host .content ::slotted(input[type=number].p-input),
|
|
47
|
+
:host .content ::slotted(input[type=date].p-input),
|
|
48
|
+
:host .content ::slotted(input[type=month].p-input),
|
|
49
|
+
:host .content ::slotted(input[type=datetime-local].p-input),
|
|
50
|
+
:host .content ::slotted(input[type=time].p-input),
|
|
51
|
+
:host .content ::slotted(input[type=tel].p-input),
|
|
52
|
+
:host .content ::slotted(input[type=password].p-input),
|
|
53
|
+
:host .content ::slotted(input[type=email].p-input) {
|
|
54
|
+
@apply order-2;
|
|
55
|
+
}
|
|
56
|
+
:host .content .prefix + ::slotted(input[type=text].p-input),
|
|
57
|
+
:host .content .prefix + ::slotted(input[type=number].p-input),
|
|
58
|
+
:host .content .prefix + ::slotted(input[type=date].p-input),
|
|
59
|
+
:host .content .prefix + ::slotted(input[type=month].p-input),
|
|
60
|
+
:host .content .prefix + ::slotted(input[type=datetime-local].p-input),
|
|
61
|
+
:host .content .prefix + ::slotted(input[type=time].p-input),
|
|
62
|
+
:host .content .prefix + ::slotted(input[type=tel].p-input),
|
|
63
|
+
:host .content .prefix + ::slotted(input[type=password].p-input),
|
|
64
|
+
:host .content .prefix + ::slotted(input[type=email].p-input) {
|
|
65
|
+
@apply rounded-tl-none rounded-bl-none !important;
|
|
66
|
+
@apply flex-auto;
|
|
67
|
+
@apply border-l-0 pl-0 !important;
|
|
68
|
+
}
|
|
69
|
+
:host .content .suffix + ::slotted(input[type=text].p-input),
|
|
70
|
+
:host .content .suffix + ::slotted(input[type=number].p-input),
|
|
71
|
+
:host .content .suffix + ::slotted(input[type=date].p-input),
|
|
72
|
+
:host .content .suffix + ::slotted(input[type=month].p-input),
|
|
73
|
+
:host .content .suffix + ::slotted(input[type=datetime-local].p-input),
|
|
74
|
+
:host .content .suffix + ::slotted(input[type=time].p-input),
|
|
75
|
+
:host .content .suffix + ::slotted(input[type=tel].p-input),
|
|
76
|
+
:host .content .suffix + ::slotted(input[type=password].p-input),
|
|
77
|
+
:host .content .suffix + ::slotted(input[type=email].p-input) {
|
|
78
|
+
@apply rounded-tr-none rounded-br-none !important;
|
|
79
|
+
@apply flex-auto;
|
|
80
|
+
@apply border-r-0 pr-0 !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host(.focused) .prefix,
|
|
84
|
+
:host(.focused) .suffix,
|
|
85
|
+
:host([focused]) .prefix,
|
|
86
|
+
:host([focused]) .suffix,
|
|
87
|
+
:host(:focus-within) .prefix,
|
|
88
|
+
:host(:focus-within) .suffix {
|
|
89
|
+
@apply border-indigo !important;
|
|
90
|
+
@apply text-indigo;
|
|
91
|
+
}
|
|
92
|
+
:host(.focused) ::slotted(input[type=text].p-input),
|
|
93
|
+
:host(.focused) ::slotted(input[type=number].p-input),
|
|
94
|
+
:host(.focused) ::slotted(input[type=date].p-input),
|
|
95
|
+
:host(.focused) ::slotted(input[type=month].p-input),
|
|
96
|
+
:host(.focused) ::slotted(input[type=datetime-local].p-input),
|
|
97
|
+
:host(.focused) ::slotted(input[type=time].p-input),
|
|
98
|
+
:host(.focused) ::slotted(input[type=tel].p-input),
|
|
99
|
+
:host(.focused) ::slotted(input[type=password].p-input),
|
|
100
|
+
:host(.focused) ::slotted(input[type=email].p-input),
|
|
101
|
+
:host([focused]) ::slotted(input[type=text].p-input),
|
|
102
|
+
:host([focused]) ::slotted(input[type=number].p-input),
|
|
103
|
+
:host([focused]) ::slotted(input[type=date].p-input),
|
|
104
|
+
:host([focused]) ::slotted(input[type=month].p-input),
|
|
105
|
+
:host([focused]) ::slotted(input[type=datetime-local].p-input),
|
|
106
|
+
:host([focused]) ::slotted(input[type=time].p-input),
|
|
107
|
+
:host([focused]) ::slotted(input[type=tel].p-input),
|
|
108
|
+
:host([focused]) ::slotted(input[type=password].p-input),
|
|
109
|
+
:host([focused]) ::slotted(input[type=email].p-input),
|
|
110
|
+
:host(:focus-within) ::slotted(input[type=text].p-input),
|
|
111
|
+
:host(:focus-within) ::slotted(input[type=number].p-input),
|
|
112
|
+
:host(:focus-within) ::slotted(input[type=date].p-input),
|
|
113
|
+
:host(:focus-within) ::slotted(input[type=month].p-input),
|
|
114
|
+
:host(:focus-within) ::slotted(input[type=datetime-local].p-input),
|
|
115
|
+
:host(:focus-within) ::slotted(input[type=time].p-input),
|
|
116
|
+
:host(:focus-within) ::slotted(input[type=tel].p-input),
|
|
117
|
+
:host(:focus-within) ::slotted(input[type=password].p-input),
|
|
118
|
+
:host(:focus-within) ::slotted(input[type=email].p-input) {
|
|
119
|
+
@apply border-indigo !important;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:host(.error) .prefix,
|
|
123
|
+
:host(.error) .suffix,
|
|
124
|
+
:host([error]) .prefix,
|
|
125
|
+
:host([error]) .suffix {
|
|
126
|
+
@apply text-negative-dark;
|
|
127
|
+
@apply border-negative !important;
|
|
128
|
+
@apply text-negative;
|
|
129
|
+
}
|
|
130
|
+
:host(.error) .prefix::placeholder,
|
|
131
|
+
:host(.error) .suffix::placeholder,
|
|
132
|
+
:host([error]) .prefix::placeholder,
|
|
133
|
+
:host([error]) .suffix::placeholder {
|
|
134
|
+
@apply text-negative-light;
|
|
135
|
+
}
|
|
136
|
+
:host(.error) ::slotted(input[type=text].p-input),
|
|
137
|
+
:host(.error) ::slotted(input[type=number].p-input),
|
|
138
|
+
:host(.error) ::slotted(input[type=date].p-input),
|
|
139
|
+
:host(.error) ::slotted(input[type=month].p-input),
|
|
140
|
+
:host(.error) ::slotted(input[type=datetime-local].p-input),
|
|
141
|
+
:host(.error) ::slotted(input[type=time].p-input),
|
|
142
|
+
:host(.error) ::slotted(input[type=tel].p-input),
|
|
143
|
+
:host(.error) ::slotted(input[type=password].p-input),
|
|
144
|
+
:host(.error) ::slotted(input[type=email].p-input),
|
|
145
|
+
:host([error]) ::slotted(input[type=text].p-input),
|
|
146
|
+
:host([error]) ::slotted(input[type=number].p-input),
|
|
147
|
+
:host([error]) ::slotted(input[type=date].p-input),
|
|
148
|
+
:host([error]) ::slotted(input[type=month].p-input),
|
|
149
|
+
:host([error]) ::slotted(input[type=datetime-local].p-input),
|
|
150
|
+
:host([error]) ::slotted(input[type=time].p-input),
|
|
151
|
+
:host([error]) ::slotted(input[type=tel].p-input),
|
|
152
|
+
:host([error]) ::slotted(input[type=password].p-input),
|
|
153
|
+
:host([error]) ::slotted(input[type=email].p-input) {
|
|
154
|
+
@apply text-negative-dark;
|
|
155
|
+
@apply border-negative !important;
|
|
156
|
+
}
|
|
157
|
+
:host(.error) ::slotted(input[type=text].p-input)::placeholder,
|
|
158
|
+
:host(.error) ::slotted(input[type=number].p-input)::placeholder,
|
|
159
|
+
:host(.error) ::slotted(input[type=date].p-input)::placeholder,
|
|
160
|
+
:host(.error) ::slotted(input[type=month].p-input)::placeholder,
|
|
161
|
+
:host(.error) ::slotted(input[type=datetime-local].p-input)::placeholder,
|
|
162
|
+
:host(.error) ::slotted(input[type=time].p-input)::placeholder,
|
|
163
|
+
:host(.error) ::slotted(input[type=tel].p-input)::placeholder,
|
|
164
|
+
:host(.error) ::slotted(input[type=password].p-input)::placeholder,
|
|
165
|
+
:host(.error) ::slotted(input[type=email].p-input)::placeholder,
|
|
166
|
+
:host([error]) ::slotted(input[type=text].p-input)::placeholder,
|
|
167
|
+
:host([error]) ::slotted(input[type=number].p-input)::placeholder,
|
|
168
|
+
:host([error]) ::slotted(input[type=date].p-input)::placeholder,
|
|
169
|
+
:host([error]) ::slotted(input[type=month].p-input)::placeholder,
|
|
170
|
+
:host([error]) ::slotted(input[type=datetime-local].p-input)::placeholder,
|
|
171
|
+
:host([error]) ::slotted(input[type=time].p-input)::placeholder,
|
|
172
|
+
:host([error]) ::slotted(input[type=tel].p-input)::placeholder,
|
|
173
|
+
:host([error]) ::slotted(input[type=password].p-input)::placeholder,
|
|
174
|
+
:host([error]) ::slotted(input[type=email].p-input)::placeholder {
|
|
175
|
+
@apply text-negative-light;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
:host(.disabled) .prefix,
|
|
179
|
+
:host(.disabled) .suffix,
|
|
180
|
+
:host([disabled]) .prefix,
|
|
181
|
+
:host([disabled]) .suffix {
|
|
182
|
+
@apply opacity-40;
|
|
183
|
+
}
|
|
184
|
+
:host(.disabled) ::slotted(input[type=text].p-input),
|
|
185
|
+
:host(.disabled) ::slotted(input[type=number].p-input),
|
|
186
|
+
:host(.disabled) ::slotted(input[type=date].p-input),
|
|
187
|
+
:host(.disabled) ::slotted(input[type=month].p-input),
|
|
188
|
+
:host(.disabled) ::slotted(input[type=datetime-local].p-input),
|
|
189
|
+
:host(.disabled) ::slotted(input[type=time].p-input),
|
|
190
|
+
:host(.disabled) ::slotted(input[type=tel].p-input),
|
|
191
|
+
:host(.disabled) ::slotted(input[type=password].p-input),
|
|
192
|
+
:host(.disabled) ::slotted(input[type=email].p-input),
|
|
193
|
+
:host([disabled]) ::slotted(input[type=text].p-input),
|
|
194
|
+
:host([disabled]) ::slotted(input[type=number].p-input),
|
|
195
|
+
:host([disabled]) ::slotted(input[type=date].p-input),
|
|
196
|
+
:host([disabled]) ::slotted(input[type=month].p-input),
|
|
197
|
+
:host([disabled]) ::slotted(input[type=datetime-local].p-input),
|
|
198
|
+
:host([disabled]) ::slotted(input[type=time].p-input),
|
|
199
|
+
:host([disabled]) ::slotted(input[type=tel].p-input),
|
|
200
|
+
:host([disabled]) ::slotted(input[type=password].p-input),
|
|
201
|
+
:host([disabled]) ::slotted(input[type=email].p-input) {
|
|
202
|
+
@apply opacity-40;
|
|
203
|
+
pointer-events: none;
|
|
204
|
+
} .static{position:static!important}.ml-2{margin-left:.5rem!important}.flex{display:flex!important}.items-end{align-items:flex-end!important}.justify-between{justify-content:space-between!important}.text-negative{--tw-text-opacity:1!important;color:rgb(185 30 40/var(--tw-text-opacity))!important}.text-negative-light{--tw-text-opacity:1!important;color:rgb(255 204 211/var(--tw-text-opacity))!important}*{box-sizing:border-box}.hover\:text-negative:hover{--tw-text-opacity:1!important;color:rgb(185 30 40/var(--tw-text-opacity))!important}.visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.blur{--tw-blur:blur(8px)!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}*{box-sizing:border-box}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { Component, Element, h, Host, Listen, Prop, State, } from '@stencil/core';
|
|
2
|
+
export class InputGroup {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Wether the input group is disabled
|
|
6
|
+
*/
|
|
7
|
+
this.disabled = false;
|
|
8
|
+
/**
|
|
9
|
+
* Wether the input group is focused
|
|
10
|
+
*/
|
|
11
|
+
this.focused = false;
|
|
12
|
+
this._showTooltip = false;
|
|
13
|
+
this._forceShowTooltip = false;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
var _a;
|
|
17
|
+
const hasHelperSlot = !!this._el.querySelector('[slot="helper"]');
|
|
18
|
+
const hasLabelSlot = !!this._el.querySelector('[slot="label"]');
|
|
19
|
+
const hasPrefixSlot = !!this._el.querySelector('[slot="prefix"]');
|
|
20
|
+
const hasSuffixSlot = !!this._el.querySelector('[slot="suffix"]');
|
|
21
|
+
const hasHeaderSlot = !!this._el.querySelector('[slot="header"]');
|
|
22
|
+
const helper = hasHelperSlot ? h("slot", { name: "helper" }) : this.helper;
|
|
23
|
+
const label = hasLabelSlot ? h("slot", { name: "label" }) : this.label;
|
|
24
|
+
const prefix = hasPrefixSlot ? h("slot", { name: "prefix" }) : this.prefix;
|
|
25
|
+
const suffix = hasSuffixSlot ? h("slot", { name: "suffix" }) : this.suffix;
|
|
26
|
+
const errorAndErrorIsNotBoolean = this.error &&
|
|
27
|
+
typeof this.error === 'string' &&
|
|
28
|
+
this.error !== 'true';
|
|
29
|
+
return (h(Host, { class: `p-input-group ${((_a = this.error) === null || _a === void 0 ? void 0 : _a.length) && 'error'} ${this.disabled && 'disabled'} ${this.focused && 'focused'}` },
|
|
30
|
+
h("div", { class: "flex justify-between items-end" },
|
|
31
|
+
label && h("div", { class: "input-label" }, label),
|
|
32
|
+
(helper || hasHeaderSlot) && (h("div", { class: "input-header" },
|
|
33
|
+
hasHeaderSlot && h("slot", { name: "header" }),
|
|
34
|
+
helper && (h("p-helper", { class: `flex ${hasHeaderSlot ? 'ml-2' : ''}`, placement: "top-end" }, helper))))),
|
|
35
|
+
h("div", { class: "content" },
|
|
36
|
+
(prefix || this.icon) && (h("div", { class: "prefix" }, this.icon ? (h("p-icon", { class: "flex", variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))),
|
|
37
|
+
(suffix || errorAndErrorIsNotBoolean) && (h("div", { class: "suffix" }, errorAndErrorIsNotBoolean ? (h("p-tooltip", { variant: "error", popover: this.error, show: this._forceShowTooltip, onIsOpen: (ev) => (this._showTooltip = ev.detail) },
|
|
38
|
+
h("p-icon", { class: `${this._showTooltip
|
|
39
|
+
? 'text-negative'
|
|
40
|
+
: 'text-negative-light'} hover:text-negative`, slot: "content", variant: "explanation" }))) : (suffix))),
|
|
41
|
+
h("slot", { name: "input" }))));
|
|
42
|
+
}
|
|
43
|
+
handleFocusIn() {
|
|
44
|
+
this._forceShowTooltip = true;
|
|
45
|
+
}
|
|
46
|
+
handleFocusOut() {
|
|
47
|
+
this._forceShowTooltip = false;
|
|
48
|
+
}
|
|
49
|
+
static get is() { return "p-input-group"; }
|
|
50
|
+
static get encapsulation() { return "shadow"; }
|
|
51
|
+
static get originalStyleUrls() { return {
|
|
52
|
+
"$": ["./input-group.component.scss"]
|
|
53
|
+
}; }
|
|
54
|
+
static get styleUrls() { return {
|
|
55
|
+
"$": ["input-group.component.css"]
|
|
56
|
+
}; }
|
|
57
|
+
static get properties() { return {
|
|
58
|
+
"prefix": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"mutable": false,
|
|
61
|
+
"complexType": {
|
|
62
|
+
"original": "string",
|
|
63
|
+
"resolved": "string",
|
|
64
|
+
"references": {}
|
|
65
|
+
},
|
|
66
|
+
"required": false,
|
|
67
|
+
"optional": false,
|
|
68
|
+
"docs": {
|
|
69
|
+
"tags": [],
|
|
70
|
+
"text": "The prefix of the input group"
|
|
71
|
+
},
|
|
72
|
+
"attribute": "prefix",
|
|
73
|
+
"reflect": false
|
|
74
|
+
},
|
|
75
|
+
"suffix": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"mutable": false,
|
|
78
|
+
"complexType": {
|
|
79
|
+
"original": "string",
|
|
80
|
+
"resolved": "string",
|
|
81
|
+
"references": {}
|
|
82
|
+
},
|
|
83
|
+
"required": false,
|
|
84
|
+
"optional": false,
|
|
85
|
+
"docs": {
|
|
86
|
+
"tags": [],
|
|
87
|
+
"text": "The suffix of the input group"
|
|
88
|
+
},
|
|
89
|
+
"attribute": "suffix",
|
|
90
|
+
"reflect": false
|
|
91
|
+
},
|
|
92
|
+
"icon": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"mutable": false,
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "IconVariant",
|
|
97
|
+
"resolved": "\"arrow\" | \"attachment\" | \"bread\" | \"calendar\" | \"car\" | \"checklist\" | \"checkmark\" | \"chevron\" | \"clock\" | \"cogs\" | \"comment\" | \"document\" | \"download\" | \"envelope\" | \"explanation\" | \"eye\" | \"filter\" | \"folder\" | \"grid\" | \"headset\" | \"integration\" | \"list\" | \"location\" | \"megaphone\" | \"menu\" | \"minus\" | \"more\" | \"negative\" | \"pagination\" | \"payment\" | \"pencil\" | \"person\" | \"plus\" | \"question\" | \"receipt\" | \"report\" | \"search\" | \"settings\" | \"sick\" | \"signout\" | \"switch\" | \"tachometer\" | \"task\" | \"template\" | \"tool\" | \"trash\" | \"turn\" | \"upload\" | \"warning\"",
|
|
98
|
+
"references": {
|
|
99
|
+
"IconVariant": {
|
|
100
|
+
"location": "import",
|
|
101
|
+
"path": "../../atoms/icon/icon.component"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"required": false,
|
|
106
|
+
"optional": false,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": "Icon of the navigation item"
|
|
110
|
+
},
|
|
111
|
+
"attribute": "icon",
|
|
112
|
+
"reflect": false
|
|
113
|
+
},
|
|
114
|
+
"iconFlip": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"mutable": false,
|
|
117
|
+
"complexType": {
|
|
118
|
+
"original": "IconFlipOptions",
|
|
119
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
120
|
+
"references": {
|
|
121
|
+
"IconFlipOptions": {
|
|
122
|
+
"location": "import",
|
|
123
|
+
"path": "../../atoms/icon/icon.component"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": false,
|
|
128
|
+
"optional": false,
|
|
129
|
+
"docs": {
|
|
130
|
+
"tags": [],
|
|
131
|
+
"text": "Icon flip"
|
|
132
|
+
},
|
|
133
|
+
"attribute": "icon-flip",
|
|
134
|
+
"reflect": false
|
|
135
|
+
},
|
|
136
|
+
"iconRotate": {
|
|
137
|
+
"type": "number",
|
|
138
|
+
"mutable": false,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "RotateOptions",
|
|
141
|
+
"resolved": "-135 | -180 | -225 | -25 | -270 | -315 | -45 | -90 | 0 | 135 | 180 | 225 | 25 | 270 | 315 | 45 | 90",
|
|
142
|
+
"references": {
|
|
143
|
+
"RotateOptions": {
|
|
144
|
+
"location": "import",
|
|
145
|
+
"path": "../../../utils/types"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"required": false,
|
|
150
|
+
"optional": false,
|
|
151
|
+
"docs": {
|
|
152
|
+
"tags": [],
|
|
153
|
+
"text": "Icon rotate"
|
|
154
|
+
},
|
|
155
|
+
"attribute": "icon-rotate",
|
|
156
|
+
"reflect": false
|
|
157
|
+
},
|
|
158
|
+
"label": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"mutable": false,
|
|
161
|
+
"complexType": {
|
|
162
|
+
"original": "string",
|
|
163
|
+
"resolved": "string",
|
|
164
|
+
"references": {}
|
|
165
|
+
},
|
|
166
|
+
"required": false,
|
|
167
|
+
"optional": false,
|
|
168
|
+
"docs": {
|
|
169
|
+
"tags": [],
|
|
170
|
+
"text": "The label of the input group"
|
|
171
|
+
},
|
|
172
|
+
"attribute": "label",
|
|
173
|
+
"reflect": false
|
|
174
|
+
},
|
|
175
|
+
"helper": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"mutable": false,
|
|
178
|
+
"complexType": {
|
|
179
|
+
"original": "string",
|
|
180
|
+
"resolved": "string",
|
|
181
|
+
"references": {}
|
|
182
|
+
},
|
|
183
|
+
"required": false,
|
|
184
|
+
"optional": false,
|
|
185
|
+
"docs": {
|
|
186
|
+
"tags": [],
|
|
187
|
+
"text": "The helper of the input group"
|
|
188
|
+
},
|
|
189
|
+
"attribute": "helper",
|
|
190
|
+
"reflect": false
|
|
191
|
+
},
|
|
192
|
+
"error": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"mutable": false,
|
|
195
|
+
"complexType": {
|
|
196
|
+
"original": "string",
|
|
197
|
+
"resolved": "string",
|
|
198
|
+
"references": {}
|
|
199
|
+
},
|
|
200
|
+
"required": false,
|
|
201
|
+
"optional": false,
|
|
202
|
+
"docs": {
|
|
203
|
+
"tags": [],
|
|
204
|
+
"text": "The helper of the input group"
|
|
205
|
+
},
|
|
206
|
+
"attribute": "error",
|
|
207
|
+
"reflect": true
|
|
208
|
+
},
|
|
209
|
+
"disabled": {
|
|
210
|
+
"type": "boolean",
|
|
211
|
+
"mutable": false,
|
|
212
|
+
"complexType": {
|
|
213
|
+
"original": "boolean",
|
|
214
|
+
"resolved": "boolean",
|
|
215
|
+
"references": {}
|
|
216
|
+
},
|
|
217
|
+
"required": false,
|
|
218
|
+
"optional": false,
|
|
219
|
+
"docs": {
|
|
220
|
+
"tags": [],
|
|
221
|
+
"text": "Wether the input group is disabled"
|
|
222
|
+
},
|
|
223
|
+
"attribute": "disabled",
|
|
224
|
+
"reflect": true,
|
|
225
|
+
"defaultValue": "false"
|
|
226
|
+
},
|
|
227
|
+
"focused": {
|
|
228
|
+
"type": "boolean",
|
|
229
|
+
"mutable": false,
|
|
230
|
+
"complexType": {
|
|
231
|
+
"original": "boolean",
|
|
232
|
+
"resolved": "boolean",
|
|
233
|
+
"references": {}
|
|
234
|
+
},
|
|
235
|
+
"required": false,
|
|
236
|
+
"optional": false,
|
|
237
|
+
"docs": {
|
|
238
|
+
"tags": [],
|
|
239
|
+
"text": "Wether the input group is focused"
|
|
240
|
+
},
|
|
241
|
+
"attribute": "focused",
|
|
242
|
+
"reflect": true,
|
|
243
|
+
"defaultValue": "false"
|
|
244
|
+
}
|
|
245
|
+
}; }
|
|
246
|
+
static get states() { return {
|
|
247
|
+
"_showTooltip": {},
|
|
248
|
+
"_forceShowTooltip": {}
|
|
249
|
+
}; }
|
|
250
|
+
static get elementRef() { return "_el"; }
|
|
251
|
+
static get listeners() { return [{
|
|
252
|
+
"name": "focusin",
|
|
253
|
+
"method": "handleFocusIn",
|
|
254
|
+
"target": undefined,
|
|
255
|
+
"capture": false,
|
|
256
|
+
"passive": false
|
|
257
|
+
}, {
|
|
258
|
+
"name": "focusout",
|
|
259
|
+
"method": "handleFocusOut",
|
|
260
|
+
"target": undefined,
|
|
261
|
+
"capture": false,
|
|
262
|
+
"passive": false
|
|
263
|
+
}]; }
|
|
264
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
@apply w-full inline-block mb-1;
|
|
3
|
+
}
|
|
4
|
+
:host > a {
|
|
5
|
+
@apply w-full h-8 px-2 cursor-pointer rounded-large no-underline;
|
|
6
|
+
@apply flex items-center gap-2;
|
|
7
|
+
@apply text-storm font-semibold;
|
|
8
|
+
@apply hover:bg-indigo-light;
|
|
9
|
+
}
|
|
10
|
+
:host > a > p-icon {
|
|
11
|
+
@apply text-storm;
|
|
12
|
+
}
|
|
13
|
+
:host > a > p-counter {
|
|
14
|
+
@apply ml-auto;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host(.active) > a {
|
|
18
|
+
@apply text-indigo bg-indigo-light;
|
|
19
|
+
}
|
|
20
|
+
:host(.active) > a > p-icon {
|
|
21
|
+
@apply text-indigo;
|
|
22
|
+
} .static{position:static!important}*{box-sizing:border-box}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Component, h, Host, Prop } from '@stencil/core';
|
|
2
|
+
export class NavigationItem {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Wether the navigation item is active
|
|
6
|
+
*/
|
|
7
|
+
this.active = false;
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h(Host, { class: `p-navigation-item ${this.active && 'active'}` },
|
|
11
|
+
h("a", { href: this.href, target: this.target },
|
|
12
|
+
this.icon && h("p-icon", { variant: this.icon }),
|
|
13
|
+
h("span", { class: this.counter && 'has-counter' },
|
|
14
|
+
h("slot", null)),
|
|
15
|
+
this.counter && (h("p-counter", { variant: "negative" }, this.counter)))));
|
|
16
|
+
}
|
|
17
|
+
static get is() { return "p-navigation-item"; }
|
|
18
|
+
static get encapsulation() { return "shadow"; }
|
|
19
|
+
static get originalStyleUrls() { return {
|
|
20
|
+
"$": ["navigation-item.component.scss"]
|
|
21
|
+
}; }
|
|
22
|
+
static get styleUrls() { return {
|
|
23
|
+
"$": ["navigation-item.component.css"]
|
|
24
|
+
}; }
|
|
25
|
+
static get properties() { return {
|
|
26
|
+
"active": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"mutable": false,
|
|
29
|
+
"complexType": {
|
|
30
|
+
"original": "boolean",
|
|
31
|
+
"resolved": "boolean",
|
|
32
|
+
"references": {}
|
|
33
|
+
},
|
|
34
|
+
"required": false,
|
|
35
|
+
"optional": false,
|
|
36
|
+
"docs": {
|
|
37
|
+
"tags": [],
|
|
38
|
+
"text": "Wether the navigation item is active"
|
|
39
|
+
},
|
|
40
|
+
"attribute": "active",
|
|
41
|
+
"reflect": false,
|
|
42
|
+
"defaultValue": "false"
|
|
43
|
+
},
|
|
44
|
+
"icon": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"mutable": false,
|
|
47
|
+
"complexType": {
|
|
48
|
+
"original": "IconVariant",
|
|
49
|
+
"resolved": "\"arrow\" | \"attachment\" | \"bread\" | \"calendar\" | \"car\" | \"checklist\" | \"checkmark\" | \"chevron\" | \"clock\" | \"cogs\" | \"comment\" | \"document\" | \"download\" | \"envelope\" | \"explanation\" | \"eye\" | \"filter\" | \"folder\" | \"grid\" | \"headset\" | \"integration\" | \"list\" | \"location\" | \"megaphone\" | \"menu\" | \"minus\" | \"more\" | \"negative\" | \"pagination\" | \"payment\" | \"pencil\" | \"person\" | \"plus\" | \"question\" | \"receipt\" | \"report\" | \"search\" | \"settings\" | \"sick\" | \"signout\" | \"switch\" | \"tachometer\" | \"task\" | \"template\" | \"tool\" | \"trash\" | \"turn\" | \"upload\" | \"warning\"",
|
|
50
|
+
"references": {
|
|
51
|
+
"IconVariant": {
|
|
52
|
+
"location": "import",
|
|
53
|
+
"path": "../../atoms/icon/icon.component"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": false,
|
|
58
|
+
"optional": false,
|
|
59
|
+
"docs": {
|
|
60
|
+
"tags": [],
|
|
61
|
+
"text": "Icon of the navigation item"
|
|
62
|
+
},
|
|
63
|
+
"attribute": "icon",
|
|
64
|
+
"reflect": false
|
|
65
|
+
},
|
|
66
|
+
"counter": {
|
|
67
|
+
"type": "any",
|
|
68
|
+
"mutable": false,
|
|
69
|
+
"complexType": {
|
|
70
|
+
"original": "number | string",
|
|
71
|
+
"resolved": "number | string",
|
|
72
|
+
"references": {}
|
|
73
|
+
},
|
|
74
|
+
"required": false,
|
|
75
|
+
"optional": false,
|
|
76
|
+
"docs": {
|
|
77
|
+
"tags": [],
|
|
78
|
+
"text": "Icon of the navigation item"
|
|
79
|
+
},
|
|
80
|
+
"attribute": "counter",
|
|
81
|
+
"reflect": false
|
|
82
|
+
},
|
|
83
|
+
"href": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"mutable": false,
|
|
86
|
+
"complexType": {
|
|
87
|
+
"original": "string",
|
|
88
|
+
"resolved": "string",
|
|
89
|
+
"references": {}
|
|
90
|
+
},
|
|
91
|
+
"required": false,
|
|
92
|
+
"optional": false,
|
|
93
|
+
"docs": {
|
|
94
|
+
"tags": [],
|
|
95
|
+
"text": "The href of the navigation item"
|
|
96
|
+
},
|
|
97
|
+
"attribute": "href",
|
|
98
|
+
"reflect": false
|
|
99
|
+
},
|
|
100
|
+
"target": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"mutable": false,
|
|
103
|
+
"complexType": {
|
|
104
|
+
"original": "string",
|
|
105
|
+
"resolved": "string",
|
|
106
|
+
"references": {}
|
|
107
|
+
},
|
|
108
|
+
"required": false,
|
|
109
|
+
"optional": false,
|
|
110
|
+
"docs": {
|
|
111
|
+
"tags": [],
|
|
112
|
+
"text": "The target of the navigation item"
|
|
113
|
+
},
|
|
114
|
+
"attribute": "target",
|
|
115
|
+
"reflect": false
|
|
116
|
+
}
|
|
117
|
+
}; }
|
|
118
|
+
}
|