@pine-ds/core 0.0.2-alpha.0
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/LICENSE +21 -0
- package/dist/cjs/index-13500e25.js +2468 -0
- package/dist/cjs/index-13500e25.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/pds-avatar.cjs.entry.js +70 -0
- package/dist/cjs/pds-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-button.cjs.entry.js +57 -0
- package/dist/cjs/pds-button.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-checkbox.cjs.entry.js +57 -0
- package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-chip.cjs.entry.js +49 -0
- package/dist/cjs/pds-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-copytext.cjs.entry.js +68 -0
- package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-divider.cjs.entry.js +35 -0
- package/dist/cjs/pds-divider.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-icon.cjs.entry.js +277 -0
- package/dist/cjs/pds-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-image.cjs.entry.js +31 -0
- package/dist/cjs/pds-image.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-input.cjs.entry.js +44 -0
- package/dist/cjs/pds-input.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-label-71ea2cad.js +44 -0
- package/dist/cjs/pds-label-71ea2cad.js.map +1 -0
- package/dist/cjs/pds-link.cjs.entry.js +37 -0
- package/dist/cjs/pds-link.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-progress.cjs.entry.js +27 -0
- package/dist/cjs/pds-progress.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-radio.cjs.entry.js +53 -0
- package/dist/cjs/pds-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-sortable-item.cjs.entry.js +24 -0
- package/dist/cjs/pds-sortable-item.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-sortable.cjs.entry.js +2706 -0
- package/dist/cjs/pds-sortable.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-switch.cjs.entry.js +55 -0
- package/dist/cjs/pds-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-tab.cjs.entry.js +33 -0
- package/dist/cjs/pds-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-tabpanel.cjs.entry.js +26 -0
- package/dist/cjs/pds-tabpanel.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-tabs.cjs.entry.js +98 -0
- package/dist/cjs/pds-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-textarea.cjs.entry.js +54 -0
- package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-tooltip.cjs.entry.js +151 -0
- package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/pine-core.cjs.js +25 -0
- package/dist/cjs/pine-core.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +37 -0
- package/dist/collection/components/_internal/pds-label/pds-label.js +7 -0
- package/dist/collection/components/_internal/pds-label/pds-label.js.map +1 -0
- package/dist/collection/components/pds-avatar/pds-avatar.css +59 -0
- package/dist/collection/components/pds-avatar/pds-avatar.js +217 -0
- package/dist/collection/components/pds-avatar/pds-avatar.js.map +1 -0
- package/dist/collection/components/pds-avatar/stories/pds-avatar.stories.js +65 -0
- package/dist/collection/components/pds-button/pds-button.css +122 -0
- package/dist/collection/components/pds-button/pds-button.js +187 -0
- package/dist/collection/components/pds-button/pds-button.js.map +1 -0
- package/dist/collection/components/pds-button/stories/pds-button.stories.js +65 -0
- package/dist/collection/components/pds-checkbox/pds-checkbox.css +106 -0
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +266 -0
- package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -0
- package/dist/collection/components/pds-checkbox/stories/pds-checkbox.stories.js +80 -0
- package/dist/collection/components/pds-chip/pds-chip.css +245 -0
- package/dist/collection/components/pds-chip/pds-chip.js +188 -0
- package/dist/collection/components/pds-chip/pds-chip.js.map +1 -0
- package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +79 -0
- package/dist/collection/components/pds-copytext/pds-copytext.css +85 -0
- package/dist/collection/components/pds-copytext/pds-copytext.js +186 -0
- package/dist/collection/components/pds-copytext/pds-copytext.js.map +1 -0
- package/dist/collection/components/pds-copytext/stories/pds-copytext.stories.js +57 -0
- package/dist/collection/components/pds-divider/pds-divider.css +92 -0
- package/dist/collection/components/pds-divider/pds-divider.js +94 -0
- package/dist/collection/components/pds-divider/pds-divider.js.map +1 -0
- package/dist/collection/components/pds-divider/stories/pds-divider.stories.js +25 -0
- package/dist/collection/components/pds-icon/stories/pds-icon.stories.js +16 -0
- package/dist/collection/components/pds-image/pds-image.css +13 -0
- package/dist/collection/components/pds-image/pds-image.js +173 -0
- package/dist/collection/components/pds-image/pds-image.js.map +1 -0
- package/dist/collection/components/pds-image/stories/pds-image.stories.js +35 -0
- package/dist/collection/components/pds-input/pds-input.css +88 -0
- package/dist/collection/components/pds-input/pds-input.js +279 -0
- package/dist/collection/components/pds-input/pds-input.js.map +1 -0
- package/dist/collection/components/pds-input/stories/pds-input.stories.js +110 -0
- package/dist/collection/components/pds-link/pds-link.css +67 -0
- package/dist/collection/components/pds-link/pds-link.js +138 -0
- package/dist/collection/components/pds-link/pds-link.js.map +1 -0
- package/dist/collection/components/pds-link/stories/pds-link.stories.js +49 -0
- package/dist/collection/components/pds-progress/pds-progress.css +77 -0
- package/dist/collection/components/pds-progress/pds-progress.js +148 -0
- package/dist/collection/components/pds-progress/pds-progress.js.map +1 -0
- package/dist/collection/components/pds-progress/stories/pds-progress.stories.js +65 -0
- package/dist/collection/components/pds-radio/pds-radio.css +101 -0
- package/dist/collection/components/pds-radio/pds-radio.js +261 -0
- package/dist/collection/components/pds-radio/pds-radio.js.map +1 -0
- package/dist/collection/components/pds-radio/stories/pds-radio.stories.js +71 -0
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.css +63 -0
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +90 -0
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js.map +1 -0
- package/dist/collection/components/pds-sortable/pds-sortable-item/stories/pds-sortable-item.stories.js +24 -0
- package/dist/collection/components/pds-sortable/pds-sortable.css +10 -0
- package/dist/collection/components/pds-sortable/pds-sortable.js +150 -0
- package/dist/collection/components/pds-sortable/pds-sortable.js.map +1 -0
- package/dist/collection/components/pds-sortable/stories/pds-sortable.stories.js +130 -0
- package/dist/collection/components/pds-switch/pds-switch.css +134 -0
- package/dist/collection/components/pds-switch/pds-switch.js +277 -0
- package/dist/collection/components/pds-switch/pds-switch.js.map +1 -0
- package/dist/collection/components/pds-switch/stories/pds-switch.stories.js +102 -0
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +158 -0
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +154 -0
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js.map +1 -0
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.css +12 -0
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +107 -0
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js.map +1 -0
- package/dist/collection/components/pds-tabs/pds-tabs.css +33 -0
- package/dist/collection/components/pds-tabs/pds-tabs.js +209 -0
- package/dist/collection/components/pds-tabs/pds-tabs.js.map +1 -0
- package/dist/collection/components/pds-tabs/stories/pds-tabs.stories.js +63 -0
- package/dist/collection/components/pds-textarea/pds-textarea.css +84 -0
- package/dist/collection/components/pds-textarea/pds-textarea.js +303 -0
- package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -0
- package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +111 -0
- package/dist/collection/components/pds-textarea/textarea-interface.js +2 -0
- package/dist/collection/components/pds-textarea/textarea-interface.js.map +1 -0
- package/dist/collection/components/pds-tooltip/pds-tooltip.css +143 -0
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +287 -0
- package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -0
- package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +114 -0
- package/dist/collection/global/pine-ui-global.js +2 -0
- package/dist/collection/global/pine-ui-global.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/stories/_helpers/index.js +15 -0
- package/dist/collection/stories/_helpers/index.js.map +1 -0
- package/dist/collection/utils/form.js +28 -0
- package/dist/collection/utils/form.js.map +1 -0
- package/dist/collection/utils/overlay.js +68 -0
- package/dist/collection/utils/overlay.js.map +1 -0
- package/dist/collection/utils/types.js +2 -0
- package/dist/collection/utils/types.js.map +1 -0
- package/dist/collection/utils/utils.js +7 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/docs.d.ts +421 -0
- package/dist/docs.json +3718 -0
- package/dist/esm/index-a58668b3.js +2438 -0
- package/dist/esm/index-a58668b3.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/pds-avatar.entry.js +66 -0
- package/dist/esm/pds-avatar.entry.js.map +1 -0
- package/dist/esm/pds-button.entry.js +53 -0
- package/dist/esm/pds-button.entry.js.map +1 -0
- package/dist/esm/pds-checkbox.entry.js +53 -0
- package/dist/esm/pds-checkbox.entry.js.map +1 -0
- package/dist/esm/pds-chip.entry.js +45 -0
- package/dist/esm/pds-chip.entry.js.map +1 -0
- package/dist/esm/pds-copytext.entry.js +64 -0
- package/dist/esm/pds-copytext.entry.js.map +1 -0
- package/dist/esm/pds-divider.entry.js +31 -0
- package/dist/esm/pds-divider.entry.js.map +1 -0
- package/dist/esm/pds-icon.entry.js +273 -0
- package/dist/esm/pds-icon.entry.js.map +1 -0
- package/dist/esm/pds-image.entry.js +27 -0
- package/dist/esm/pds-image.entry.js.map +1 -0
- package/dist/esm/pds-input.entry.js +40 -0
- package/dist/esm/pds-input.entry.js.map +1 -0
- package/dist/esm/pds-label-a26dd876.js +39 -0
- package/dist/esm/pds-label-a26dd876.js.map +1 -0
- package/dist/esm/pds-link.entry.js +33 -0
- package/dist/esm/pds-link.entry.js.map +1 -0
- package/dist/esm/pds-progress.entry.js +23 -0
- package/dist/esm/pds-progress.entry.js.map +1 -0
- package/dist/esm/pds-radio.entry.js +49 -0
- package/dist/esm/pds-radio.entry.js.map +1 -0
- package/dist/esm/pds-sortable-item.entry.js +20 -0
- package/dist/esm/pds-sortable-item.entry.js.map +1 -0
- package/dist/esm/pds-sortable.entry.js +2702 -0
- package/dist/esm/pds-sortable.entry.js.map +1 -0
- package/dist/esm/pds-switch.entry.js +51 -0
- package/dist/esm/pds-switch.entry.js.map +1 -0
- package/dist/esm/pds-tab.entry.js +29 -0
- package/dist/esm/pds-tab.entry.js.map +1 -0
- package/dist/esm/pds-tabpanel.entry.js +22 -0
- package/dist/esm/pds-tabpanel.entry.js.map +1 -0
- package/dist/esm/pds-tabs.entry.js +94 -0
- package/dist/esm/pds-tabs.entry.js.map +1 -0
- package/dist/esm/pds-textarea.entry.js +50 -0
- package/dist/esm/pds-textarea.entry.js.map +1 -0
- package/dist/esm/pds-tooltip.entry.js +147 -0
- package/dist/esm/pds-tooltip.entry.js.map +1 -0
- package/dist/esm/pine-core.js +20 -0
- package/dist/esm/pine-core.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm-es5/index-a58668b3.js +3 -0
- package/dist/esm-es5/index-a58668b3.js.map +1 -0
- package/dist/esm-es5/index.js +2 -0
- package/dist/esm-es5/index.js.map +1 -0
- package/dist/esm-es5/loader.js +2 -0
- package/dist/esm-es5/loader.js.map +1 -0
- package/dist/esm-es5/pds-avatar.entry.js +2 -0
- package/dist/esm-es5/pds-avatar.entry.js.map +1 -0
- package/dist/esm-es5/pds-button.entry.js +2 -0
- package/dist/esm-es5/pds-button.entry.js.map +1 -0
- package/dist/esm-es5/pds-checkbox.entry.js +2 -0
- package/dist/esm-es5/pds-checkbox.entry.js.map +1 -0
- package/dist/esm-es5/pds-chip.entry.js +2 -0
- package/dist/esm-es5/pds-chip.entry.js.map +1 -0
- package/dist/esm-es5/pds-copytext.entry.js +2 -0
- package/dist/esm-es5/pds-copytext.entry.js.map +1 -0
- package/dist/esm-es5/pds-divider.entry.js +2 -0
- package/dist/esm-es5/pds-divider.entry.js.map +1 -0
- package/dist/esm-es5/pds-icon.entry.js +2 -0
- package/dist/esm-es5/pds-icon.entry.js.map +1 -0
- package/dist/esm-es5/pds-image.entry.js +2 -0
- package/dist/esm-es5/pds-image.entry.js.map +1 -0
- package/dist/esm-es5/pds-input.entry.js +2 -0
- package/dist/esm-es5/pds-input.entry.js.map +1 -0
- package/dist/esm-es5/pds-label-a26dd876.js +2 -0
- package/dist/esm-es5/pds-label-a26dd876.js.map +1 -0
- package/dist/esm-es5/pds-link.entry.js +2 -0
- package/dist/esm-es5/pds-link.entry.js.map +1 -0
- package/dist/esm-es5/pds-progress.entry.js +2 -0
- package/dist/esm-es5/pds-progress.entry.js.map +1 -0
- package/dist/esm-es5/pds-radio.entry.js +2 -0
- package/dist/esm-es5/pds-radio.entry.js.map +1 -0
- package/dist/esm-es5/pds-sortable-item.entry.js +2 -0
- package/dist/esm-es5/pds-sortable-item.entry.js.map +1 -0
- package/dist/esm-es5/pds-sortable.entry.js +8 -0
- package/dist/esm-es5/pds-sortable.entry.js.map +1 -0
- package/dist/esm-es5/pds-switch.entry.js +2 -0
- package/dist/esm-es5/pds-switch.entry.js.map +1 -0
- package/dist/esm-es5/pds-tab.entry.js +2 -0
- package/dist/esm-es5/pds-tab.entry.js.map +1 -0
- package/dist/esm-es5/pds-tabpanel.entry.js +2 -0
- package/dist/esm-es5/pds-tabpanel.entry.js.map +1 -0
- package/dist/esm-es5/pds-tabs.entry.js +2 -0
- package/dist/esm-es5/pds-tabs.entry.js.map +1 -0
- package/dist/esm-es5/pds-textarea.entry.js +2 -0
- package/dist/esm-es5/pds-textarea.entry.js.map +1 -0
- package/dist/esm-es5/pds-tooltip.entry.js +2 -0
- package/dist/esm-es5/pds-tooltip.entry.js.map +1 -0
- package/dist/esm-es5/pine-core.js +2 -0
- package/dist/esm-es5/pine-core.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/pine-core/index.esm.js +2 -0
- package/dist/pine-core/index.esm.js.map +1 -0
- package/dist/pine-core/p-0a776a7b.entry.js +2 -0
- package/dist/pine-core/p-0a776a7b.entry.js.map +1 -0
- package/dist/pine-core/p-0adb4b48.entry.js +2 -0
- package/dist/pine-core/p-0adb4b48.entry.js.map +1 -0
- package/dist/pine-core/p-0c26a00d.entry.js +2 -0
- package/dist/pine-core/p-0c26a00d.entry.js.map +1 -0
- package/dist/pine-core/p-1c0ffcab.entry.js +2 -0
- package/dist/pine-core/p-1c0ffcab.entry.js.map +1 -0
- package/dist/pine-core/p-22bd3102.system.entry.js +9 -0
- package/dist/pine-core/p-22bd3102.system.entry.js.map +1 -0
- package/dist/pine-core/p-22dd8116.entry.js +2 -0
- package/dist/pine-core/p-22dd8116.entry.js.map +1 -0
- package/dist/pine-core/p-23fb6af2.system.entry.js +2 -0
- package/dist/pine-core/p-23fb6af2.system.entry.js.map +1 -0
- package/dist/pine-core/p-24077dcd.entry.js +2 -0
- package/dist/pine-core/p-24077dcd.entry.js.map +1 -0
- package/dist/pine-core/p-27fd7f08.system.entry.js +2 -0
- package/dist/pine-core/p-27fd7f08.system.entry.js.map +1 -0
- package/dist/pine-core/p-331cbf1d.entry.js +2 -0
- package/dist/pine-core/p-331cbf1d.entry.js.map +1 -0
- package/dist/pine-core/p-3386bfe1.system.entry.js +2 -0
- package/dist/pine-core/p-3386bfe1.system.entry.js.map +1 -0
- package/dist/pine-core/p-401cd4bc.entry.js +2 -0
- package/dist/pine-core/p-401cd4bc.entry.js.map +1 -0
- package/dist/pine-core/p-4a804680.entry.js +2 -0
- package/dist/pine-core/p-4a804680.entry.js.map +1 -0
- package/dist/pine-core/p-4fc42ff3.system.entry.js +2 -0
- package/dist/pine-core/p-4fc42ff3.system.entry.js.map +1 -0
- package/dist/pine-core/p-50ea2036.system.js +2 -0
- package/dist/pine-core/p-50ea2036.system.js.map +1 -0
- package/dist/pine-core/p-5b37a4a2.system.entry.js +2 -0
- package/dist/pine-core/p-5b37a4a2.system.entry.js.map +1 -0
- package/dist/pine-core/p-643f5378.entry.js +2 -0
- package/dist/pine-core/p-643f5378.entry.js.map +1 -0
- package/dist/pine-core/p-669d948a.system.entry.js +2 -0
- package/dist/pine-core/p-669d948a.system.entry.js.map +1 -0
- package/dist/pine-core/p-73262287.system.entry.js +2 -0
- package/dist/pine-core/p-73262287.system.entry.js.map +1 -0
- package/dist/pine-core/p-79d7e0b1.system.entry.js +2 -0
- package/dist/pine-core/p-79d7e0b1.system.entry.js.map +1 -0
- package/dist/pine-core/p-7bc01826.entry.js +2 -0
- package/dist/pine-core/p-7bc01826.entry.js.map +1 -0
- package/dist/pine-core/p-7fcd5f0b.entry.js +8 -0
- package/dist/pine-core/p-7fcd5f0b.entry.js.map +1 -0
- package/dist/pine-core/p-85f6a94e.system.entry.js +2 -0
- package/dist/pine-core/p-85f6a94e.system.entry.js.map +1 -0
- package/dist/pine-core/p-8f62c812.entry.js +2 -0
- package/dist/pine-core/p-8f62c812.entry.js.map +1 -0
- package/dist/pine-core/p-930ab8a3.system.entry.js +2 -0
- package/dist/pine-core/p-930ab8a3.system.entry.js.map +1 -0
- package/dist/pine-core/p-938886d8.system.entry.js +2 -0
- package/dist/pine-core/p-938886d8.system.entry.js.map +1 -0
- package/dist/pine-core/p-97cb4285.entry.js +2 -0
- package/dist/pine-core/p-97cb4285.entry.js.map +1 -0
- package/dist/pine-core/p-abdca153.js +3 -0
- package/dist/pine-core/p-abdca153.js.map +1 -0
- package/dist/pine-core/p-ac31a7c8.system.entry.js +2 -0
- package/dist/pine-core/p-ac31a7c8.system.entry.js.map +1 -0
- package/dist/pine-core/p-af75cc15.entry.js +2 -0
- package/dist/pine-core/p-af75cc15.entry.js.map +1 -0
- package/dist/pine-core/p-b17b818b.entry.js +2 -0
- package/dist/pine-core/p-b17b818b.entry.js.map +1 -0
- package/dist/pine-core/p-b79a8b07.entry.js +2 -0
- package/dist/pine-core/p-b79a8b07.entry.js.map +1 -0
- package/dist/pine-core/p-bce2d5b5.system.entry.js +2 -0
- package/dist/pine-core/p-bce2d5b5.system.entry.js.map +1 -0
- package/dist/pine-core/p-bff583bd.system.js +2 -0
- package/dist/pine-core/p-bff583bd.system.js.map +1 -0
- package/dist/pine-core/p-c0f9dbe1.system.entry.js +2 -0
- package/dist/pine-core/p-c0f9dbe1.system.entry.js.map +1 -0
- package/dist/pine-core/p-c4dbae0e.system.js +2 -0
- package/dist/pine-core/p-c4dbae0e.system.js.map +1 -0
- package/dist/pine-core/p-c6d878f8.entry.js +2 -0
- package/dist/pine-core/p-c6d878f8.entry.js.map +1 -0
- package/dist/pine-core/p-c8a41b43.system.entry.js +2 -0
- package/dist/pine-core/p-c8a41b43.system.entry.js.map +1 -0
- package/dist/pine-core/p-d3e173ea.system.entry.js +2 -0
- package/dist/pine-core/p-d3e173ea.system.entry.js.map +1 -0
- package/dist/pine-core/p-f09892d3.system.entry.js +2 -0
- package/dist/pine-core/p-f09892d3.system.entry.js.map +1 -0
- package/dist/pine-core/p-f168654a.entry.js +2 -0
- package/dist/pine-core/p-f168654a.entry.js.map +1 -0
- package/dist/pine-core/p-f1d7f16f.js +2 -0
- package/dist/pine-core/p-f1d7f16f.js.map +1 -0
- package/dist/pine-core/p-f2c3035d.system.entry.js +2 -0
- package/dist/pine-core/p-f2c3035d.system.entry.js.map +1 -0
- package/dist/pine-core/p-f3af6d74.system.entry.js +2 -0
- package/dist/pine-core/p-f3af6d74.system.entry.js.map +1 -0
- package/dist/pine-core/p-fa5d4e73.system.js +3 -0
- package/dist/pine-core/p-fa5d4e73.system.js.map +1 -0
- package/dist/pine-core/p-fba29e90.entry.js +2 -0
- package/dist/pine-core/p-fba29e90.entry.js.map +1 -0
- package/dist/pine-core/pine-core.css +1 -0
- package/dist/pine-core/pine-core.esm.js +2 -0
- package/dist/pine-core/pine-core.esm.js.map +1 -0
- package/dist/pine-core/pine-core.js +127 -0
- package/dist/pine-core/svg/access-key.svg +1 -0
- package/dist/pine-core/svg/add-circle.svg +1 -0
- package/dist/pine-core/svg/add-image.svg +1 -0
- package/dist/pine-core/svg/add-small.svg +1 -0
- package/dist/pine-core/svg/add.svg +1 -0
- package/dist/pine-core/svg/ai-sparkle.svg +1 -0
- package/dist/pine-core/svg/ai-writer-filled.svg +1 -0
- package/dist/pine-core/svg/ai-writer.svg +1 -0
- package/dist/pine-core/svg/align-center.svg +1 -0
- package/dist/pine-core/svg/align-justify.svg +1 -0
- package/dist/pine-core/svg/align-left.svg +1 -0
- package/dist/pine-core/svg/align-right.svg +1 -0
- package/dist/pine-core/svg/analytics-filled.svg +1 -0
- package/dist/pine-core/svg/analytics-outline.svg +1 -0
- package/dist/pine-core/svg/app-store.svg +1 -0
- package/dist/pine-core/svg/archive.svg +1 -0
- package/dist/pine-core/svg/arrow-corner.svg +1 -0
- package/dist/pine-core/svg/arrow-down.svg +1 -0
- package/dist/pine-core/svg/arrow-left.svg +1 -0
- package/dist/pine-core/svg/arrow-right.svg +1 -0
- package/dist/pine-core/svg/arrow-up.svg +1 -0
- package/dist/pine-core/svg/assessment.svg +1 -0
- package/dist/pine-core/svg/at-sign.svg +1 -0
- package/dist/pine-core/svg/attach.svg +1 -0
- package/dist/pine-core/svg/automations.svg +1 -0
- package/dist/pine-core/svg/ban.svg +1 -0
- package/dist/pine-core/svg/bank.svg +1 -0
- package/dist/pine-core/svg/bell.svg +1 -0
- package/dist/pine-core/svg/blog-filled.svg +1 -0
- package/dist/pine-core/svg/blog.svg +1 -0
- package/dist/pine-core/svg/bold.svg +1 -0
- package/dist/pine-core/svg/broadcast.svg +1 -0
- package/dist/pine-core/svg/calendar-date.svg +1 -0
- package/dist/pine-core/svg/calendar-schedule.svg +1 -0
- package/dist/pine-core/svg/calendar-simple.svg +1 -0
- package/dist/pine-core/svg/card-bw-amex.svg +1 -0
- package/dist/pine-core/svg/card-bw-apple-card.svg +1 -0
- package/dist/pine-core/svg/card-bw-diners-club.svg +1 -0
- package/dist/pine-core/svg/card-bw-discover.svg +1 -0
- package/dist/pine-core/svg/card-bw-gpay-card.svg +1 -0
- package/dist/pine-core/svg/card-bw-mastercard.svg +1 -0
- package/dist/pine-core/svg/card-bw-paypal.svg +1 -0
- package/dist/pine-core/svg/card-bw-stripe.svg +1 -0
- package/dist/pine-core/svg/card-bw-visa.svg +1 -0
- package/dist/pine-core/svg/card-update.svg +1 -0
- package/dist/pine-core/svg/caret-down.svg +1 -0
- package/dist/pine-core/svg/caret-left.svg +1 -0
- package/dist/pine-core/svg/caret-right.svg +1 -0
- package/dist/pine-core/svg/caret-up.svg +1 -0
- package/dist/pine-core/svg/cart-add.svg +1 -0
- package/dist/pine-core/svg/cart.svg +1 -0
- package/dist/pine-core/svg/certificate.svg +1 -0
- package/dist/pine-core/svg/check-circle-filled.svg +1 -0
- package/dist/pine-core/svg/check-circle.svg +1 -0
- package/dist/pine-core/svg/check.svg +1 -0
- package/dist/pine-core/svg/circle-1.svg +1 -0
- package/dist/pine-core/svg/circle-2.svg +1 -0
- package/dist/pine-core/svg/circle-3.svg +1 -0
- package/dist/pine-core/svg/circle-4.svg +1 -0
- package/dist/pine-core/svg/circle-5.svg +1 -0
- package/dist/pine-core/svg/circle-6.svg +1 -0
- package/dist/pine-core/svg/circle-7.svg +1 -0
- package/dist/pine-core/svg/circle-8.svg +1 -0
- package/dist/pine-core/svg/circle-9.svg +1 -0
- package/dist/pine-core/svg/clock.svg +1 -0
- package/dist/pine-core/svg/closed-captions.svg +1 -0
- package/dist/pine-core/svg/cloud-upload.svg +1 -0
- package/dist/pine-core/svg/code.svg +1 -0
- package/dist/pine-core/svg/color.svg +1 -0
- package/dist/pine-core/svg/columns.svg +1 -0
- package/dist/pine-core/svg/comment.svg +1 -0
- package/dist/pine-core/svg/connect.svg +1 -0
- package/dist/pine-core/svg/contact.svg +1 -0
- package/dist/pine-core/svg/contacts-filled.svg +1 -0
- package/dist/pine-core/svg/contacts-outline.svg +1 -0
- package/dist/pine-core/svg/conversation.svg +1 -0
- package/dist/pine-core/svg/copy.svg +1 -0
- package/dist/pine-core/svg/coupon.svg +1 -0
- package/dist/pine-core/svg/course.svg +1 -0
- package/dist/pine-core/svg/creator-studio-filled.svg +1 -0
- package/dist/pine-core/svg/creator-studio.svg +1 -0
- package/dist/pine-core/svg/credit-card.svg +1 -0
- package/dist/pine-core/svg/custom-field.svg +1 -0
- package/dist/pine-core/svg/customize.svg +1 -0
- package/dist/pine-core/svg/danger-filled.svg +1 -0
- package/dist/pine-core/svg/danger.svg +1 -0
- package/dist/pine-core/svg/dashboard-filled.svg +1 -0
- package/dist/pine-core/svg/dashboard-outline.svg +1 -0
- package/dist/pine-core/svg/delete-circle.svg +1 -0
- package/dist/pine-core/svg/delete-key.svg +1 -0
- package/dist/pine-core/svg/delete-x.svg +1 -0
- package/dist/pine-core/svg/dollar-sign.svg +1 -0
- package/dist/pine-core/svg/dot-menu-horizontal.svg +1 -0
- package/dist/pine-core/svg/down-small.svg +1 -0
- package/dist/pine-core/svg/download.svg +1 -0
- package/dist/pine-core/svg/downsell.svg +1 -0
- package/dist/pine-core/svg/draft.svg +1 -0
- package/dist/pine-core/svg/drop.svg +1 -0
- package/dist/pine-core/svg/duplicate.svg +1 -0
- package/dist/pine-core/svg/email-activity.svg +1 -0
- package/dist/pine-core/svg/emoji.svg +1 -0
- package/dist/pine-core/svg/enlarge-vertical.svg +1 -0
- package/dist/pine-core/svg/enlarge.svg +1 -0
- package/dist/pine-core/svg/expand.svg +1 -0
- package/dist/pine-core/svg/facebook-2.svg +1 -0
- package/dist/pine-core/svg/facebook.svg +1 -0
- package/dist/pine-core/svg/favorite.svg +1 -0
- package/dist/pine-core/svg/feedback.svg +1 -0
- package/dist/pine-core/svg/file-money.svg +1 -0
- package/dist/pine-core/svg/file.svg +1 -0
- package/dist/pine-core/svg/filter.svg +1 -0
- package/dist/pine-core/svg/flag.svg +1 -0
- package/dist/pine-core/svg/flash-filled.svg +1 -0
- package/dist/pine-core/svg/flash.svg +1 -0
- package/dist/pine-core/svg/folder-group.svg +1 -0
- package/dist/pine-core/svg/folder.svg +1 -0
- package/dist/pine-core/svg/form-field.svg +1 -0
- package/dist/pine-core/svg/form-filled.svg +1 -0
- package/dist/pine-core/svg/form.svg +1 -0
- package/dist/pine-core/svg/fullscreen.svg +1 -0
- package/dist/pine-core/svg/funnel.svg +1 -0
- package/dist/pine-core/svg/grant-offer.svg +1 -0
- package/dist/pine-core/svg/handle-2-vertical.svg +1 -0
- package/dist/pine-core/svg/handle-2.svg +1 -0
- package/dist/pine-core/svg/handle.svg +1 -0
- package/dist/pine-core/svg/hashtag.svg +1 -0
- package/dist/pine-core/svg/hd-video.svg +1 -0
- package/dist/pine-core/svg/heading-large.svg +1 -0
- package/dist/pine-core/svg/heading-small.svg +1 -0
- package/dist/pine-core/svg/headset.svg +1 -0
- package/dist/pine-core/svg/help-filled.svg +1 -0
- package/dist/pine-core/svg/help-outline.svg +1 -0
- package/dist/pine-core/svg/home-alt.svg +1 -0
- package/dist/pine-core/svg/horizontal-line.svg +1 -0
- package/dist/pine-core/svg/image.svg +1 -0
- package/dist/pine-core/svg/info-circle-filled.svg +1 -0
- package/dist/pine-core/svg/info-circle.svg +1 -0
- package/dist/pine-core/svg/instagram.svg +1 -0
- package/dist/pine-core/svg/ios-battery.svg +1 -0
- package/dist/pine-core/svg/ios-data.svg +1 -0
- package/dist/pine-core/svg/ios-wifi.svg +1 -0
- package/dist/pine-core/svg/italic.svg +1 -0
- package/dist/pine-core/svg/kajabi-filled.svg +1 -0
- package/dist/pine-core/svg/kajabi-outlined.svg +1 -0
- package/dist/pine-core/svg/lab.svg +1 -0
- package/dist/pine-core/svg/launch.svg +1 -0
- package/dist/pine-core/svg/layout-grid.svg +1 -0
- package/dist/pine-core/svg/layout-list.svg +1 -0
- package/dist/pine-core/svg/left-small.svg +1 -0
- package/dist/pine-core/svg/linkedin.svg +1 -0
- package/dist/pine-core/svg/list-bullet.svg +1 -0
- package/dist/pine-core/svg/list-numbers.svg +1 -0
- package/dist/pine-core/svg/location.svg +1 -0
- package/dist/pine-core/svg/lock-alt.svg +1 -0
- package/dist/pine-core/svg/lock.svg +1 -0
- package/dist/pine-core/svg/logo-afterpay.svg +1 -0
- package/dist/pine-core/svg/loop.svg +1 -0
- package/dist/pine-core/svg/mail-filled.svg +1 -0
- package/dist/pine-core/svg/mail.svg +1 -0
- package/dist/pine-core/svg/map.svg +1 -0
- package/dist/pine-core/svg/mapped.svg +1 -0
- package/dist/pine-core/svg/margin-left.svg +1 -0
- package/dist/pine-core/svg/margin-right.svg +1 -0
- package/dist/pine-core/svg/marker-filled.svg +1 -0
- package/dist/pine-core/svg/marker.svg +1 -0
- package/dist/pine-core/svg/marketing-filled.svg +1 -0
- package/dist/pine-core/svg/marketing-outline.svg +1 -0
- package/dist/pine-core/svg/menu-2.svg +1 -0
- package/dist/pine-core/svg/menu-alt.svg +1 -0
- package/dist/pine-core/svg/menu.svg +1 -0
- package/dist/pine-core/svg/merge.svg +1 -0
- package/dist/pine-core/svg/microphone-off.svg +1 -0
- package/dist/pine-core/svg/microphone.svg +1 -0
- package/dist/pine-core/svg/move-left.svg +1 -0
- package/dist/pine-core/svg/move-right.svg +1 -0
- package/dist/pine-core/svg/multi-pay.svg +1 -0
- package/dist/pine-core/svg/newsletter.svg +1 -0
- package/dist/pine-core/svg/one-off-session.svg +1 -0
- package/dist/pine-core/svg/one-time.svg +1 -0
- package/dist/pine-core/svg/partners-filled.svg +1 -0
- package/dist/pine-core/svg/partners-outline.svg +1 -0
- package/dist/pine-core/svg/pause-circle.svg +1 -0
- package/dist/pine-core/svg/pause.svg +1 -0
- package/dist/pine-core/svg/payout.svg +1 -0
- package/dist/pine-core/svg/pen.svg +1 -0
- package/dist/pine-core/svg/phone-portrait.svg +1 -0
- package/dist/pine-core/svg/phone-toolbar.svg +1 -0
- package/dist/pine-core/svg/play-circle.svg +1 -0
- package/dist/pine-core/svg/play-outline.svg +1 -0
- package/dist/pine-core/svg/play-store.svg +1 -0
- package/dist/pine-core/svg/play.svg +1 -0
- package/dist/pine-core/svg/plug.svg +1 -0
- package/dist/pine-core/svg/premium.svg +1 -0
- package/dist/pine-core/svg/present.svg +1 -0
- package/dist/pine-core/svg/preview-off.svg +1 -0
- package/dist/pine-core/svg/preview-on.svg +1 -0
- package/dist/pine-core/svg/products-filled.svg +1 -0
- package/dist/pine-core/svg/products-outline.svg +1 -0
- package/dist/pine-core/svg/question-circle.svg +1 -0
- package/dist/pine-core/svg/quote.svg +1 -0
- package/dist/pine-core/svg/redo.svg +1 -0
- package/dist/pine-core/svg/refresh.svg +1 -0
- package/dist/pine-core/svg/remove-circle.svg +1 -0
- package/dist/pine-core/svg/remove.svg +1 -0
- package/dist/pine-core/svg/rename.svg +1 -0
- package/dist/pine-core/svg/reset-password.svg +1 -0
- package/dist/pine-core/svg/restore.svg +1 -0
- package/dist/pine-core/svg/right-small.svg +1 -0
- package/dist/pine-core/svg/round-dollar.svg +1 -0
- package/dist/pine-core/svg/rows.svg +1 -0
- package/dist/pine-core/svg/sales-filled.svg +1 -0
- package/dist/pine-core/svg/sales-outline.svg +1 -0
- package/dist/pine-core/svg/scissor.svg +1 -0
- package/dist/pine-core/svg/screen-share-off.svg +1 -0
- package/dist/pine-core/svg/screen-share-on.svg +1 -0
- package/dist/pine-core/svg/search-small.svg +1 -0
- package/dist/pine-core/svg/search.svg +1 -0
- package/dist/pine-core/svg/send-message.svg +1 -0
- package/dist/pine-core/svg/sequences.svg +1 -0
- package/dist/pine-core/svg/series.svg +1 -0
- package/dist/pine-core/svg/settings-filled.svg +1 -0
- package/dist/pine-core/svg/settings-outline.svg +1 -0
- package/dist/pine-core/svg/share.svg +1 -0
- package/dist/pine-core/svg/skipped.svg +1 -0
- package/dist/pine-core/svg/slash-divider.svg +1 -0
- package/dist/pine-core/svg/sparkle-filled.svg +1 -0
- package/dist/pine-core/svg/sparkle.svg +1 -0
- package/dist/pine-core/svg/speaker.svg +1 -0
- package/dist/pine-core/svg/stack.svg +1 -0
- package/dist/pine-core/svg/star.svg +1 -0
- package/dist/pine-core/svg/stop.svg +1 -0
- package/dist/pine-core/svg/stopwatch.svg +1 -0
- package/dist/pine-core/svg/strikethrough.svg +1 -0
- package/dist/pine-core/svg/subscript.svg +1 -0
- package/dist/pine-core/svg/subscriptions.svg +1 -0
- package/dist/pine-core/svg/super-admin.svg +1 -0
- package/dist/pine-core/svg/superscript.svg +1 -0
- package/dist/pine-core/svg/sync.svg +1 -0
- package/dist/pine-core/svg/tablet-landscape.svg +1 -0
- package/dist/pine-core/svg/tablet-portrait.svg +1 -0
- package/dist/pine-core/svg/text-styles.svg +1 -0
- package/dist/pine-core/svg/theme-store-filled.svg +1 -0
- package/dist/pine-core/svg/theme-store.svg +1 -0
- package/dist/pine-core/svg/thumbs-down-filled.svg +1 -0
- package/dist/pine-core/svg/thumbs-down.svg +1 -0
- package/dist/pine-core/svg/thumbs-up-filled.svg +1 -0
- package/dist/pine-core/svg/thumbs-up.svg +1 -0
- package/dist/pine-core/svg/tiktok.svg +1 -0
- package/dist/pine-core/svg/trash.svg +1 -0
- package/dist/pine-core/svg/twitter.svg +1 -0
- package/dist/pine-core/svg/underline.svg +1 -0
- package/dist/pine-core/svg/undo.svg +1 -0
- package/dist/pine-core/svg/unlock.svg +1 -0
- package/dist/pine-core/svg/unmapped.svg +1 -0
- package/dist/pine-core/svg/up-small.svg +1 -0
- package/dist/pine-core/svg/upload.svg +1 -0
- package/dist/pine-core/svg/url.svg +1 -0
- package/dist/pine-core/svg/user-filled.svg +1 -0
- package/dist/pine-core/svg/user.svg +1 -0
- package/dist/pine-core/svg/users-wm.svg +1 -0
- package/dist/pine-core/svg/users.svg +1 -0
- package/dist/pine-core/svg/video-off.svg +1 -0
- package/dist/pine-core/svg/video-on.svg +1 -0
- package/dist/pine-core/svg/warning-filled.svg +1 -0
- package/dist/pine-core/svg/warning.svg +1 -0
- package/dist/pine-core/svg/website-filled.svg +1 -0
- package/dist/pine-core/svg/website-outline.svg +1 -0
- package/dist/pine-core/svg/window-paragraph.svg +1 -0
- package/dist/pine-core/svg/world.svg +1 -0
- package/dist/pine-core/svg/wrench.svg +1 -0
- package/dist/pine-core/svg/youtube.svg +1 -0
- package/dist/scripts/build-tokens.js +160 -0
- package/dist/scripts/build-tokens.js.map +1 -0
- package/dist/types/components/_internal/pds-label/pds-label.d.ts +22 -0
- package/dist/types/components/pds-avatar/pds-avatar.d.ts +42 -0
- package/dist/types/components/pds-button/pds-button.d.ts +36 -0
- package/dist/types/components/pds-checkbox/pds-checkbox.d.ts +55 -0
- package/dist/types/components/pds-chip/pds-chip.d.ts +39 -0
- package/dist/types/components/pds-copytext/pds-copytext.d.ts +34 -0
- package/dist/types/components/pds-divider/pds-divider.d.ts +17 -0
- package/dist/types/components/pds-image/pds-image.d.ts +42 -0
- package/dist/types/components/pds-input/pds-input.d.ts +59 -0
- package/dist/types/components/pds-link/pds-link.d.ts +34 -0
- package/dist/types/components/pds-progress/pds-progress.d.ts +31 -0
- package/dist/types/components/pds-radio/pds-radio.d.ts +54 -0
- package/dist/types/components/pds-sortable/pds-sortable-item/pds-sortable-item.d.ts +20 -0
- package/dist/types/components/pds-sortable/pds-sortable.d.ts +28 -0
- package/dist/types/components/pds-switch/pds-switch.d.ts +59 -0
- package/dist/types/components/pds-tabs/pds-tab/pds-tab.d.ts +35 -0
- package/dist/types/components/pds-tabs/pds-tabpanel/pds-tabpanel.d.ts +23 -0
- package/dist/types/components/pds-tabs/pds-tabs.d.ts +40 -0
- package/dist/types/components/pds-textarea/pds-textarea.d.ts +64 -0
- package/dist/types/components/pds-textarea/textarea-interface.d.ts +8 -0
- package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +68 -0
- package/dist/types/components.d.ts +1566 -0
- package/dist/types/global/pine-ui-global.d.ts +1 -0
- package/dist/types/home/runner/work/pine/pine/libs/core/.stencil/scripts/build-tokens.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/interface.d.ts +17 -0
- package/dist/types/stencil-public-runtime.d.ts +1681 -0
- package/dist/types/stories/_helpers/index.d.ts +12 -0
- package/dist/types/utils/form.d.ts +12 -0
- package/dist/types/utils/overlay.d.ts +8 -0
- package/dist/types/utils/types.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +21 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +115 -0
- package/readme.md +75 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { positionTooltip } from "../../utils/overlay";
|
|
3
|
+
/**
|
|
4
|
+
* @slot (default) - The tooltip's target element
|
|
5
|
+
* @slot content - HTML content for the tooltip
|
|
6
|
+
*/
|
|
7
|
+
export class PdsTooltip {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.handleHide = () => {
|
|
10
|
+
this.hideTooltip();
|
|
11
|
+
this.pdsTooltipHide.emit();
|
|
12
|
+
};
|
|
13
|
+
this.handleShow = () => {
|
|
14
|
+
this.showTooltip();
|
|
15
|
+
this.pdsTooltipShow.emit();
|
|
16
|
+
};
|
|
17
|
+
this.isOpen = false;
|
|
18
|
+
this.content = undefined;
|
|
19
|
+
this.componentId = undefined;
|
|
20
|
+
this.hasArrow = true;
|
|
21
|
+
this.htmlContent = false;
|
|
22
|
+
this.placement = 'right';
|
|
23
|
+
this.opened = false;
|
|
24
|
+
}
|
|
25
|
+
handleOpenToggle() {
|
|
26
|
+
if (this.opened) {
|
|
27
|
+
this.handleShow();
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
this.handleHide();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
componentWillLoad() {
|
|
34
|
+
if (this.opened) {
|
|
35
|
+
this.showTooltip();
|
|
36
|
+
}
|
|
37
|
+
this.el.addEventListener('blur', this.handleHide, true);
|
|
38
|
+
this.el.addEventListener('focus', this.handleShow, true);
|
|
39
|
+
}
|
|
40
|
+
componentDidUpdate() {
|
|
41
|
+
if (this.opened) {
|
|
42
|
+
this.showTooltip();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
componentDidRender() {
|
|
46
|
+
positionTooltip({ elem: this.el, elemPlacement: this.placement, overlay: this.contentEl });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Shows the tooltip by enabling the opened property
|
|
50
|
+
*/
|
|
51
|
+
async showTooltip() {
|
|
52
|
+
this.opened = true;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Hides the tooltip by disabling the opened property
|
|
56
|
+
*/
|
|
57
|
+
async hideTooltip() {
|
|
58
|
+
this.opened = false;
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
return (h(Host, { onMouseEnter: this.handleShow, onMouseLeave: this.handleHide, onFocusin: this.handleShow, onFocusout: this.handleHide }, h("div", { class: `
|
|
62
|
+
pds-tooltip
|
|
63
|
+
pds-tooltip--${this.placement}
|
|
64
|
+
${this.htmlContent ? 'pds-tooltip--has-html-content' : ''}
|
|
65
|
+
${this.opened ? 'pds-tooltip--is-open' : ''}
|
|
66
|
+
${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}
|
|
67
|
+
` }, h("span", { "aria-describedby": this.componentId, class: "pds-tooltip__trigger" }, h("slot", null)), h("div", { class: "pds-tooltip__content", "aria-hidden": this.opened ? 'false' : 'true', "aria-live": this.opened ? 'polite' : 'off', id: this.componentId, ref: (el) => (this.contentEl = el), role: "tooltip" }, h("slot", { name: "content" }), this.content))));
|
|
68
|
+
}
|
|
69
|
+
static get is() { return "pds-tooltip"; }
|
|
70
|
+
static get encapsulation() { return "shadow"; }
|
|
71
|
+
static get originalStyleUrls() {
|
|
72
|
+
return {
|
|
73
|
+
"$": ["pds-tooltip.scss"]
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
static get styleUrls() {
|
|
77
|
+
return {
|
|
78
|
+
"$": ["pds-tooltip.css"]
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
static get properties() {
|
|
82
|
+
return {
|
|
83
|
+
"content": {
|
|
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": "Content for the tooltip. If HTML is required, use the content slot"
|
|
96
|
+
},
|
|
97
|
+
"attribute": "content",
|
|
98
|
+
"reflect": false
|
|
99
|
+
},
|
|
100
|
+
"componentId": {
|
|
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": "A unique identifier used for the underlying component `id` attribute."
|
|
113
|
+
},
|
|
114
|
+
"attribute": "component-id",
|
|
115
|
+
"reflect": false
|
|
116
|
+
},
|
|
117
|
+
"hasArrow": {
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"mutable": false,
|
|
120
|
+
"complexType": {
|
|
121
|
+
"original": "boolean",
|
|
122
|
+
"resolved": "boolean",
|
|
123
|
+
"references": {}
|
|
124
|
+
},
|
|
125
|
+
"required": false,
|
|
126
|
+
"optional": true,
|
|
127
|
+
"docs": {
|
|
128
|
+
"tags": [{
|
|
129
|
+
"name": "defaultValue",
|
|
130
|
+
"text": "true"
|
|
131
|
+
}],
|
|
132
|
+
"text": "Determines whether or not the tooltip has an arrow"
|
|
133
|
+
},
|
|
134
|
+
"attribute": "has-arrow",
|
|
135
|
+
"reflect": false,
|
|
136
|
+
"defaultValue": "true"
|
|
137
|
+
},
|
|
138
|
+
"htmlContent": {
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"mutable": false,
|
|
141
|
+
"complexType": {
|
|
142
|
+
"original": "boolean",
|
|
143
|
+
"resolved": "boolean",
|
|
144
|
+
"references": {}
|
|
145
|
+
},
|
|
146
|
+
"required": false,
|
|
147
|
+
"optional": false,
|
|
148
|
+
"docs": {
|
|
149
|
+
"tags": [{
|
|
150
|
+
"name": "defaultValue",
|
|
151
|
+
"text": "false"
|
|
152
|
+
}],
|
|
153
|
+
"text": "Enable this option when using the content slot"
|
|
154
|
+
},
|
|
155
|
+
"attribute": "html-content",
|
|
156
|
+
"reflect": false,
|
|
157
|
+
"defaultValue": "false"
|
|
158
|
+
},
|
|
159
|
+
"placement": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"mutable": false,
|
|
162
|
+
"complexType": {
|
|
163
|
+
"original": "'top'\n | 'top-start'\n | 'top-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'left'\n | 'left-start'\n | 'left-end'",
|
|
164
|
+
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
165
|
+
"references": {}
|
|
166
|
+
},
|
|
167
|
+
"required": false,
|
|
168
|
+
"optional": false,
|
|
169
|
+
"docs": {
|
|
170
|
+
"tags": [{
|
|
171
|
+
"name": "defaultValue",
|
|
172
|
+
"text": "\"right\""
|
|
173
|
+
}],
|
|
174
|
+
"text": "Determines the preferred position of the tooltip"
|
|
175
|
+
},
|
|
176
|
+
"attribute": "placement",
|
|
177
|
+
"reflect": true,
|
|
178
|
+
"defaultValue": "'right'"
|
|
179
|
+
},
|
|
180
|
+
"opened": {
|
|
181
|
+
"type": "boolean",
|
|
182
|
+
"mutable": true,
|
|
183
|
+
"complexType": {
|
|
184
|
+
"original": "boolean",
|
|
185
|
+
"resolved": "boolean",
|
|
186
|
+
"references": {}
|
|
187
|
+
},
|
|
188
|
+
"required": false,
|
|
189
|
+
"optional": false,
|
|
190
|
+
"docs": {
|
|
191
|
+
"tags": [{
|
|
192
|
+
"name": "defaultValue",
|
|
193
|
+
"text": "false"
|
|
194
|
+
}],
|
|
195
|
+
"text": "Determines whether or not the tooltip is visible"
|
|
196
|
+
},
|
|
197
|
+
"attribute": "opened",
|
|
198
|
+
"reflect": true,
|
|
199
|
+
"defaultValue": "false"
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
static get states() {
|
|
204
|
+
return {
|
|
205
|
+
"isOpen": {}
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
static get events() {
|
|
209
|
+
return [{
|
|
210
|
+
"method": "pdsTooltipHide",
|
|
211
|
+
"name": "pdsTooltipHide",
|
|
212
|
+
"bubbles": true,
|
|
213
|
+
"cancelable": true,
|
|
214
|
+
"composed": true,
|
|
215
|
+
"docs": {
|
|
216
|
+
"tags": [],
|
|
217
|
+
"text": "Emitted after a tooltip is closed"
|
|
218
|
+
},
|
|
219
|
+
"complexType": {
|
|
220
|
+
"original": "any",
|
|
221
|
+
"resolved": "any",
|
|
222
|
+
"references": {}
|
|
223
|
+
}
|
|
224
|
+
}, {
|
|
225
|
+
"method": "pdsTooltipShow",
|
|
226
|
+
"name": "pdsTooltipShow",
|
|
227
|
+
"bubbles": true,
|
|
228
|
+
"cancelable": true,
|
|
229
|
+
"composed": true,
|
|
230
|
+
"docs": {
|
|
231
|
+
"tags": [],
|
|
232
|
+
"text": "Emitted after a tooltip is shown"
|
|
233
|
+
},
|
|
234
|
+
"complexType": {
|
|
235
|
+
"original": "any",
|
|
236
|
+
"resolved": "any",
|
|
237
|
+
"references": {}
|
|
238
|
+
}
|
|
239
|
+
}];
|
|
240
|
+
}
|
|
241
|
+
static get methods() {
|
|
242
|
+
return {
|
|
243
|
+
"showTooltip": {
|
|
244
|
+
"complexType": {
|
|
245
|
+
"signature": "() => Promise<void>",
|
|
246
|
+
"parameters": [],
|
|
247
|
+
"references": {
|
|
248
|
+
"Promise": {
|
|
249
|
+
"location": "global",
|
|
250
|
+
"id": "global::Promise"
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"return": "Promise<void>"
|
|
254
|
+
},
|
|
255
|
+
"docs": {
|
|
256
|
+
"text": "Shows the tooltip by enabling the opened property",
|
|
257
|
+
"tags": []
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"hideTooltip": {
|
|
261
|
+
"complexType": {
|
|
262
|
+
"signature": "() => Promise<void>",
|
|
263
|
+
"parameters": [],
|
|
264
|
+
"references": {
|
|
265
|
+
"Promise": {
|
|
266
|
+
"location": "global",
|
|
267
|
+
"id": "global::Promise"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"return": "Promise<void>"
|
|
271
|
+
},
|
|
272
|
+
"docs": {
|
|
273
|
+
"text": "Hides the tooltip by disabling the opened property",
|
|
274
|
+
"tags": []
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
static get elementRef() { return "el"; }
|
|
280
|
+
static get watchers() {
|
|
281
|
+
return [{
|
|
282
|
+
"propName": "opened",
|
|
283
|
+
"methodName": "handleOpenToggle"
|
|
284
|
+
}];
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
//# sourceMappingURL=pds-tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pds-tooltip.js","sourceRoot":"","sources":["../../../../src/components/pds-tooltip/pds-tooltip.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Element, Event, Host, Prop, State, h, EventEmitter, Method, Watch } from '@stencil/core';\nimport {\n positionTooltip\n} from '../../utils/overlay';\n\n/**\n * @slot (default) - The tooltip's target element\n * @slot content - HTML content for the tooltip\n */\n\n@Component({\n tag: 'pds-tooltip',\n styleUrl: 'pds-tooltip.scss',\n shadow: true,\n})\nexport class PdsTooltip {\n private contentEl: HTMLElement | null;\n\n /**\n * Reference to the Host element\n */\n @Element() el: HTMLPdsTooltipElement;\n\n /**\n * Determines when the tooltip is open\n * @defaultValue false\n */\n @State() isOpen = false;\n\n /**\n * Content for the tooltip. If HTML is required, use the content slot\n */\n @Prop() content: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines whether or not the tooltip has an arrow\n * @defaultValue true\n */\n @Prop() hasArrow? = true;\n\n /**\n * Enable this option when using the content slot\n * @defaultValue false\n */\n @Prop() htmlContent = false;\n\n /**\n * Determines the preferred position of the tooltip\n * @defaultValue \"right\"\n */\n @Prop({ reflect: true }) placement:\n 'top'\n | 'top-start'\n | 'top-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'left'\n | 'left-start'\n | 'left-end' = 'right';\n\n /**\n * Determines whether or not the tooltip is visible\n * @defaultValue false\n */\n @Prop({mutable: true, reflect: true}) opened = false;\n\n @Watch('opened')\n handleOpenToggle() {\n if (this.opened) {\n this.handleShow();\n } else {\n this.handleHide();\n }\n }\n\n /**\n * Emitted after a tooltip is closed\n */\n @Event() pdsTooltipHide: EventEmitter;\n\n /**\n * Emitted after a tooltip is shown\n */\n @Event() pdsTooltipShow: EventEmitter;\n\n componentWillLoad() {\n if (this.opened) {\n this.showTooltip();\n }\n\n this.el.addEventListener('blur', this.handleHide, true);\n this.el.addEventListener('focus', this.handleShow, true);\n }\n\n componentDidUpdate() {\n if (this.opened) {\n this.showTooltip();\n }\n }\n\n componentDidRender() {\n positionTooltip({elem: this.el, elemPlacement: this.placement, overlay: this.contentEl});\n }\n\n /**\n * Shows the tooltip by enabling the opened property\n */\n @Method()\n async showTooltip() {\n this.opened = true;\n }\n\n /**\n * Hides the tooltip by disabling the opened property\n */\n @Method()\n async hideTooltip() {\n this.opened = false;\n }\n\n private handleHide = () => {\n this.hideTooltip();\n this.pdsTooltipHide.emit();\n };\n\n private handleShow = () => {\n this.showTooltip();\n this.pdsTooltipShow.emit();\n };\n\n render() {\n return (\n <Host\n onMouseEnter={this.handleShow}\n onMouseLeave={this.handleHide}\n onFocusin={this.handleShow}\n onFocusout={this.handleHide}\n >\n <div\n class={`\n pds-tooltip\n pds-tooltip--${this.placement}\n ${this.htmlContent ? 'pds-tooltip--has-html-content' : ''}\n ${this.opened ? 'pds-tooltip--is-open' : ''}\n ${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}\n `}\n >\n <span\n aria-describedby={this.componentId}\n class=\"pds-tooltip__trigger\"\n >\n <slot />\n </span>\n\n <div class=\"pds-tooltip__content\"\n aria-hidden={this.opened ? 'false' : 'true'}\n aria-live={this.opened ? 'polite' : 'off'}\n id={this.componentId}\n ref={(el) => (this.contentEl = el)}\n role=\"tooltip\"\n >\n <slot\n name=\"content\"\n ></slot>\n {this.content}\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { extractArgTypes } from '@pxtrn/storybook-addon-docs-stencil';
|
|
3
|
+
import { withActions } from '@storybook/addon-actions/decorator';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
argTypes: extractArgTypes('pds-tooltip'),
|
|
7
|
+
component: 'pds-tooltip',
|
|
8
|
+
decorators: [withActions],
|
|
9
|
+
parameters: {
|
|
10
|
+
actions: {
|
|
11
|
+
handles: ['mouseEnter', 'pdsTooltipShow', 'mouseLeave', 'pdsTooltipHide'],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
title: 'components/Tooltip'
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const defaultParameters = {
|
|
18
|
+
docs: {
|
|
19
|
+
disable: true
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const BaseTemplate = (args) => html`
|
|
24
|
+
<pds-tooltip content=${args.content} has-arrow=${args.hasArrow} placement=${args.placement}>${args.slot}</pds-tooltip>`;
|
|
25
|
+
|
|
26
|
+
const HTMLContentTemplate = (args) => html`
|
|
27
|
+
<pds-tooltip has-arrow=${args.hasArrow} placement=${args.placement} html-content=${args.htmlContent}>
|
|
28
|
+
<div slot="content">
|
|
29
|
+
<p><strong>This is a tooltip</strong></p>
|
|
30
|
+
<p>Tooltips are used to describe or identify an element. In most scenarios, tooltips help the user understand the meaning, function or alt-text of an element.</p>
|
|
31
|
+
</div>
|
|
32
|
+
<pds-button variant="secondary">Hover</pds-button>
|
|
33
|
+
</pds-tooltip>`;
|
|
34
|
+
|
|
35
|
+
const PositionTemplate = (args) => html`
|
|
36
|
+
<div class="demo-container" style="min-height: 50vh; width: 100%; display: flex; align-items: center; justify-content: center;">
|
|
37
|
+
<div class="position-demo-grid">
|
|
38
|
+
<div class="position-demo-grid-item">
|
|
39
|
+
<pds-tooltip content="content 2" has-arrow=${args.hasArrow} placement="top-start" opened=${args.opened}>
|
|
40
|
+
<pds-button variant="accent">t</pds-button>
|
|
41
|
+
</pds-tooltip>
|
|
42
|
+
<pds-tooltip content="content 2" has-arrow=${args.hasArrow} placement="top" opened=${args.opened}>
|
|
43
|
+
<pds-button variant="accent">t</pds-button>
|
|
44
|
+
</pds-tooltip>
|
|
45
|
+
<pds-tooltip content="content 3" has-arrow=${args.hasArrow} placement="top-end" opened=${args.opened}>
|
|
46
|
+
<pds-button variant="accent">te</pds-button>
|
|
47
|
+
</pds-tooltip>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="position-demo-grid-item">
|
|
50
|
+
<pds-tooltip content="content 1" has-arrow=${args.hasArrow} placement="left-start" opened=${args.opened}>
|
|
51
|
+
<pds-button variant="accent">ls</pds-button>
|
|
52
|
+
</pds-tooltip>
|
|
53
|
+
<pds-tooltip content="content 2" has-arrow=${args.hasArrow} placement="left" opened=${args.opened}>
|
|
54
|
+
<pds-button variant="accent">l</pds-button>
|
|
55
|
+
</pds-tooltip>
|
|
56
|
+
<pds-tooltip content="content 3" has-arrow=${args.hasArrow} placement="left-end" opened=${args.opened}>
|
|
57
|
+
<pds-button variant="accent">le</pds-button>
|
|
58
|
+
</pds-tooltip>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="position-demo-grid-item">
|
|
61
|
+
<pds-tooltip content="content 1" has-arrow=${args.hasArrow} placement="bottom-start" opened=${args.opened}>
|
|
62
|
+
<pds-button variant="accent">bs</pds-button>
|
|
63
|
+
</pds-tooltip>
|
|
64
|
+
<pds-tooltip content="content 2" has-arrow=${args.hasArrow} placement="bottom" opened=${args.opened}>
|
|
65
|
+
<pds-button variant="accent">b</pds-button>
|
|
66
|
+
</pds-tooltip>
|
|
67
|
+
<pds-tooltip content="content 3" has-arrow=${args.hasArrow} placement="bottom-end" opened=${args.opened}>
|
|
68
|
+
<pds-button variant="accent">be</pds-button>
|
|
69
|
+
</pds-tooltip>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="position-demo-grid-item">
|
|
72
|
+
<pds-tooltip content="content 1" has-arrow=${args.hasArrow} placement="right-start" opened=${args.opened}>
|
|
73
|
+
<pds-button variant="accent">rs</pds-button>
|
|
74
|
+
</pds-tooltip>
|
|
75
|
+
<pds-tooltip content="content 2" has-arrow=${args.hasArrow} placement="right" opened=${args.opened}>
|
|
76
|
+
<pds-button variant="accent">r</pds-button>
|
|
77
|
+
</pds-tooltip>
|
|
78
|
+
<pds-tooltip content="content 3" has-arrow=${args.hasArrow} placement="right-end" opened=${args.opened}>
|
|
79
|
+
<pds-button variant="accent">re</pds-button>
|
|
80
|
+
</pds-tooltip>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</div>`;
|
|
84
|
+
|
|
85
|
+
export const Default = BaseTemplate.bind({});
|
|
86
|
+
Default.args = {
|
|
87
|
+
content: "The tooltip content",
|
|
88
|
+
placement: "right",
|
|
89
|
+
slot: "target text"
|
|
90
|
+
};
|
|
91
|
+
Default.parameters = { ...defaultParameters };
|
|
92
|
+
|
|
93
|
+
export const HTMLContent = HTMLContentTemplate.bind({});
|
|
94
|
+
HTMLContent.args = {
|
|
95
|
+
htmlContent: true,
|
|
96
|
+
placement: "bottom-start",
|
|
97
|
+
};
|
|
98
|
+
HTMLContent.parameters = { ...defaultParameters }
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
export const Positioning = PositionTemplate.bind({});
|
|
102
|
+
Positioning.args = {
|
|
103
|
+
content: "Trigger",
|
|
104
|
+
};
|
|
105
|
+
Positioning.parameters = { ...defaultParameters }
|
|
106
|
+
|
|
107
|
+
export const NoArrow = BaseTemplate.bind({});
|
|
108
|
+
NoArrow.args = {
|
|
109
|
+
content: "The tooltip content",
|
|
110
|
+
hasArrow: false,
|
|
111
|
+
placement: "bottom-start",
|
|
112
|
+
slot: "target text"
|
|
113
|
+
};
|
|
114
|
+
NoArrow.parameters = { ...defaultParameters }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pine-ui-global.js","sourceRoot":"","sources":["../../../src/global/pine-ui-global.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC","sourcesContent":["import '@pine-ds/icons';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC","sourcesContent":["import '@pine-ds/icons';\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { extractArgTypes } from "@pxtrn/storybook-addon-docs-stencil";
|
|
2
|
+
import pdsIconsJson from "@pine-ds/icons/dist/pds-icons.json";
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param component - string - Name of the compoennt to extract args. e.g pds-button
|
|
6
|
+
* @param property - string - Name of the property used within the component e.g icon
|
|
7
|
+
* @returns object
|
|
8
|
+
*/
|
|
9
|
+
export const customArgsWithIconControl = ({ component, property }) => {
|
|
10
|
+
const extractedArgs = extractArgTypes(component);
|
|
11
|
+
extractedArgs[property].control.type = 'select';
|
|
12
|
+
extractedArgs[property].options = Object.values(pdsIconsJson["icons"]).map((icon) => (icon.name));
|
|
13
|
+
return extractedArgs;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/stories/_helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,OAAO,YAAY,MAAM,oCAAoC,CAAC;AAO9D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAkB,EAAE,EAAE;IAClF,MAAM,aAAa,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;IAEjD,aAAa,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,IAAI,GAAG,QAAQ,CAAC;IAChD,aAAa,CAAC,QAAQ,CAAC,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAElG,OAAO,aAAa,CAAC;AACvB,CAAC,CAAA","sourcesContent":["import { extractArgTypes } from '@pxtrn/storybook-addon-docs-stencil';\n\nimport pdsIconsJson from '@pine-ds/icons/dist/pds-icons.json';\n\ninterface IconControlArgs {\n component: string,\n property: string\n}\n\n/**\n *\n * @param component - string - Name of the compoennt to extract args. e.g pds-button\n * @param property - string - Name of the property used within the component e.g icon\n * @returns object\n */\nexport const customArgsWithIconControl = ({component, property}: IconControlArgs) => {\n const extractedArgs = extractArgTypes(component);\n\n extractedArgs[property].control.type = 'select';\n extractedArgs[property].options = Object.values(pdsIconsJson[\"icons\"]).map((icon) => (icon.name));\n\n return extractedArgs;\n}\n\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create id for messaging
|
|
3
|
+
*/
|
|
4
|
+
export const messageId = (id, messageType) => {
|
|
5
|
+
return `${id}__${messageType}-message`;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Assign aria-description id to relate messages with form element
|
|
9
|
+
*/
|
|
10
|
+
export const assignDescription = (id, invalid, helperMessage) => {
|
|
11
|
+
if (!helperMessage)
|
|
12
|
+
return;
|
|
13
|
+
let relatedId = messageId(id, 'helper');
|
|
14
|
+
if (invalid)
|
|
15
|
+
relatedId = messageId(id, 'error');
|
|
16
|
+
return relatedId;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Updates the `invalid` prop of a form element based on it's values validity
|
|
20
|
+
*/
|
|
21
|
+
export const isRequired = (target, component) => {
|
|
22
|
+
if (!target || !component)
|
|
23
|
+
return;
|
|
24
|
+
if (component.required === true) {
|
|
25
|
+
(target.checkValidity() === false) ? component.invalid = true : component.invalid = false;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.js","sourceRoot":"","sources":["../../../src/utils/form.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAU,EAAE,WAAmB,EAAE,EAAE;IAC3D,OAAO,GAAG,EAAE,KAAK,WAAW,UAAU,CAAC;AACzC,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAU,EAAE,OAAgB,EAAE,aAAqB,EAAE,EAAE;IACvF,IAAI,CAAC,aAAa;QAAE,OAAM;IAE1B,IAAI,SAAS,GAAG,SAAS,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAA;IAEvC,IAAI,OAAO;QAAE,SAAS,GAAG,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAEhD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE;IAC9C,IAAK,CAAC,MAAM,IAAI,CAAC,SAAS;QAAG,OAAO;IACpC,IAAI,SAAS,CAAC,QAAQ,KAAK,IAAI,EAAE;QAC/B,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,GAAG,KAAK,CAAC;KAC3F;AACH,CAAC,CAAA","sourcesContent":["/**\n * Create id for messaging\n */\nexport const messageId = (id: string, messageType: string) => {\n return `${id}__${messageType}-message`;\n};\n\n/**\n * Assign aria-description id to relate messages with form element\n */\nexport const assignDescription = (id: string, invalid: boolean, helperMessage: string) => {\n if (!helperMessage) return\n\n let relatedId = messageId(id, 'helper')\n\n if (invalid) relatedId = messageId(id, 'error');\n\n return relatedId;\n};\n\n/**\n * Updates the `invalid` prop of a form element based on it's values validity\n */\nexport const isRequired = (target, component) => {\n if ( !target || !component ) return;\n if (component.required === true) {\n (target.checkValidity() === false) ? component.invalid = true : component.invalid = false;\n }\n}\n"]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export const positionTooltip = ({ elem, elemPlacement, overlay, offset = 8 }) => {
|
|
2
|
+
if (elem == undefined)
|
|
3
|
+
return;
|
|
4
|
+
const rect = elem.getBoundingClientRect();
|
|
5
|
+
const contentRect = overlay.getBoundingClientRect();
|
|
6
|
+
// Exit the function if the placement is not set
|
|
7
|
+
if (!elemPlacement || elemPlacement == "")
|
|
8
|
+
return;
|
|
9
|
+
switch (true) {
|
|
10
|
+
case elemPlacement.includes("right"):
|
|
11
|
+
overlay.style.top = '50%';
|
|
12
|
+
overlay.style.left = `calc(${rect.width}px + ${offset}px)`;
|
|
13
|
+
overlay.style.transform = 'translateY(-50%)';
|
|
14
|
+
if (elemPlacement.includes("start")) {
|
|
15
|
+
overlay.style.top = '0';
|
|
16
|
+
overlay.style.transform = 'translateY(0)';
|
|
17
|
+
}
|
|
18
|
+
if (elemPlacement.includes("end")) {
|
|
19
|
+
overlay.style.bottom = '0';
|
|
20
|
+
overlay.style.top = 'initial';
|
|
21
|
+
overlay.style.transform = 'translateY(0)';
|
|
22
|
+
}
|
|
23
|
+
break;
|
|
24
|
+
case elemPlacement.includes("left"):
|
|
25
|
+
overlay.style.top = '50%';
|
|
26
|
+
overlay.style.right = `calc(${rect.width}px + ${offset}px)`;
|
|
27
|
+
overlay.style.transform = 'translateY(-50%)';
|
|
28
|
+
if (elemPlacement.includes("start")) {
|
|
29
|
+
overlay.style.top = '0';
|
|
30
|
+
overlay.style.transform = 'translateY(0)';
|
|
31
|
+
}
|
|
32
|
+
if (elemPlacement.includes("end")) {
|
|
33
|
+
overlay.style.bottom = '0';
|
|
34
|
+
overlay.style.top = 'initial';
|
|
35
|
+
overlay.style.transform = 'translateY(0)';
|
|
36
|
+
}
|
|
37
|
+
break;
|
|
38
|
+
case elemPlacement.includes("bottom"):
|
|
39
|
+
overlay.style.top = `calc(${rect.height}px + ${offset}px)`;
|
|
40
|
+
overlay.style.left = '50%';
|
|
41
|
+
overlay.style.transform = 'translateX(-50%)';
|
|
42
|
+
if (elemPlacement.includes("start")) {
|
|
43
|
+
overlay.style.left = '0';
|
|
44
|
+
overlay.style.transform = 'translateX(0)';
|
|
45
|
+
}
|
|
46
|
+
if (elemPlacement.includes("end")) {
|
|
47
|
+
overlay.style.left = 'initial';
|
|
48
|
+
overlay.style.right = '0';
|
|
49
|
+
overlay.style.transform = 'translateX(0)';
|
|
50
|
+
}
|
|
51
|
+
break;
|
|
52
|
+
case elemPlacement.includes("top"):
|
|
53
|
+
overlay.style.top = `calc((${contentRect.height}px + ${offset}px) * -1)`;
|
|
54
|
+
overlay.style.left = '50%';
|
|
55
|
+
overlay.style.transform = 'translateX(-50%)';
|
|
56
|
+
if (elemPlacement.includes("start")) {
|
|
57
|
+
overlay.style.left = '0';
|
|
58
|
+
overlay.style.transform = 'translateX(0)';
|
|
59
|
+
}
|
|
60
|
+
if (elemPlacement.includes("end")) {
|
|
61
|
+
overlay.style.left = 'initial';
|
|
62
|
+
overlay.style.right = '0';
|
|
63
|
+
overlay.style.transform = 'translateX(0)';
|
|
64
|
+
}
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=overlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay.js","sourceRoot":"","sources":["../../../src/utils/overlay.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAC,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,EAAc,EAAE,EAAE;IACzF,IAAI,IAAI,IAAI,SAAS;QAAE,OAAO;IAE9B,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;IAC1C,MAAM,WAAW,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAEpD,gDAAgD;IAChD,IAAI,CAAC,aAAa,IAAI,aAAa,IAAI,EAAE;QAAE,OAAO;IAElD,QAAQ,IAAI,EAAE;QACZ,KAAK,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC;YAClC,OAAO,CAAC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC;YAC1B,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,QAAQ,IAAI,CAAC,KAAK,QAAQ,MAAM,KAAK,CAAC;YAC3D,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,kBAAkB,CAAC;YAE7C,IAAI,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;gBACnC,OAAO,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;gBACxB,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,eAAe,CAAC;aAC3C;YAED,IAAI,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;gBACjC,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC;gBAC3B,OAAO,CAAC,KAAK,CAAC,GAAG,GAAG,SAAS,CAAC;gBAC9B,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,eAAe,CAAC;aAC3C;YAED,MAAM;QAER,KAAK,aAAa,CAAC,QAAQ,CAAC,MAAM,CAAC;YACjC,OAAO,CAAC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC;YAC1B,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,QAAQ,IAAI,CAAC,KAAK,QAAQ,MAAM,KAAK,CAAC;YAC5D,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,kBAAkB,CAAC;YAE7C,IAAI,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;gBACnC,OAAO,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;gBACxB,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,eAAe,CAAC;aAC3C;YAED,IAAI,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;gBACjC,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC;gBAC3B,OAAO,CAAC,KAAK,CAAC,GAAG,GAAG,SAAS,CAAC;gBAC9B,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,eAAe,CAAC;aAC3C;YAED,MAAM;QAER,KAAK,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC;YACnC,OAAO,CAAC,KAAK,CAAC,GAAG,GAAG,QAAQ,IAAI,CAAC,MAAM,QAAQ,MAAM,KAAK,CAAC;YAC3D,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC;YAC3B,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,kBAAkB,CAAC;YAE7C,IAAI,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;gBACnC,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC;gBACzB,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,eAAe,CAAC;aAC3C;YAED,IAAI,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;gBACjC,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC;gBAC/B,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC;gBAC1B,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,eAAe,CAAC;aAC3C;YAED,MAAM;QAER,KAAK,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC;YAChC,OAAO,CAAC,KAAK,CAAC,GAAG,GAAG,SAAS,WAAW,CAAC,MAAM,QAAQ,MAAM,WAAW,CAAC;YACzE,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC;YAC3B,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,kBAAkB,CAAC;YAE7C,IAAI,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;gBACnC,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC;gBACzB,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,eAAe,CAAC;aAC3C;YACD,IAAI,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;gBACjC,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC;gBAC/B,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC;gBAC1B,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,eAAe,CAAC;aAC3C;YAED,MAAM;KACT;AACH,CAAC,CAAA","sourcesContent":["interface OverlayArgs {\n elem: HTMLElement;\n elemPlacement: string;\n overlay: HTMLElement;\n offset?: number;\n}\n\nexport const positionTooltip = ({elem, elemPlacement, overlay, offset = 8}: OverlayArgs) => {\n if (elem == undefined) return;\n\n const rect = elem.getBoundingClientRect();\n const contentRect = overlay.getBoundingClientRect();\n\n // Exit the function if the placement is not set\n if (!elemPlacement || elemPlacement == \"\") return;\n\n switch (true) {\n case elemPlacement.includes(\"right\"):\n overlay.style.top = '50%';\n overlay.style.left = `calc(${rect.width}px + ${offset}px)`;\n overlay.style.transform = 'translateY(-50%)';\n\n if (elemPlacement.includes(\"start\")) {\n overlay.style.top = '0';\n overlay.style.transform = 'translateY(0)';\n }\n\n if (elemPlacement.includes(\"end\")) {\n overlay.style.bottom = '0';\n overlay.style.top = 'initial';\n overlay.style.transform = 'translateY(0)';\n }\n\n break;\n\n case elemPlacement.includes(\"left\"):\n overlay.style.top = '50%';\n overlay.style.right = `calc(${rect.width}px + ${offset}px)`;\n overlay.style.transform = 'translateY(-50%)';\n\n if (elemPlacement.includes(\"start\")) {\n overlay.style.top = '0';\n overlay.style.transform = 'translateY(0)';\n }\n\n if (elemPlacement.includes(\"end\")) {\n overlay.style.bottom = '0';\n overlay.style.top = 'initial';\n overlay.style.transform = 'translateY(0)';\n }\n\n break;\n\n case elemPlacement.includes(\"bottom\"):\n overlay.style.top = `calc(${rect.height}px + ${offset}px)`;\n overlay.style.left = '50%';\n overlay.style.transform = 'translateX(-50%)';\n\n if (elemPlacement.includes(\"start\")) {\n overlay.style.left = '0';\n overlay.style.transform = 'translateX(0)';\n }\n\n if (elemPlacement.includes(\"end\")) {\n overlay.style.left = 'initial';\n overlay.style.right = '0';\n overlay.style.transform = 'translateX(0)';\n }\n\n break;\n\n case elemPlacement.includes(\"top\"):\n overlay.style.top = `calc((${contentRect.height}px + ${offset}px) * -1)`;\n overlay.style.left = '50%';\n overlay.style.transform = 'translateX(-50%)';\n\n if (elemPlacement.includes(\"start\")) {\n overlay.style.left = '0';\n overlay.style.transform = 'translateX(0)';\n }\n if (elemPlacement.includes(\"end\")) {\n overlay.style.left = 'initial';\n overlay.style.right = '0';\n overlay.style.transform = 'translateX(0)';\n }\n\n break;\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"","sourcesContent":["export type TooltipPlacementType =\n | 'top-start'\n | 'top'\n | 'top-end'\n | 'left-start'\n | 'left'\n | 'left-end'\n | 'right-start'\n | 'right'\n | 'right-end'\n | 'bottom-start'\n | 'bottom'\n | 'bottom-end';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,KAAa,EAAE,MAAc,EAAE,IAAY;IAChE,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AACjF,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAe,EAAE,EAAE;IAC9C,OAAO,CAAC,CAAC,EAAE,CAAC,UAAU,IAAI,CAAC,CAAE,EAAU,CAAC,YAAY,CAAA;AACtD,CAAC,CAAA","sourcesContent":["export function format(first: string, middle: string, last: string): string {\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\n}\n\nexport const hasShadowDom = (el: HTMLElement) => {\n return !!el.shadowRoot && !!(el as any).attachShadow\n}\n"]}
|