@pine-ds/core 4.0.0-mercury.0 → 4.0.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/components/attributes.js +1 -0
- package/components/closest.js +1 -11
- package/components/floating-ui.dom.js +1 -0
- package/components/form.js +1 -0
- package/components/i18n-format.js +1 -0
- package/components/index.d.ts +41 -0
- package/components/index.js +1 -33
- package/components/index2.js +1 -14
- package/components/mock-pds-modal.d.ts +11 -0
- package/components/mock-pds-modal.js +1 -0
- package/components/pds-accordion.js +1 -68
- package/components/pds-alert.d.ts +11 -0
- package/components/pds-alert.js +1 -0
- package/components/pds-avatar.js +1 -103
- package/components/pds-box.js +1 -124
- package/components/pds-box2.js +1 -0
- package/components/pds-button.js +1 -8
- package/components/pds-button2.js +1 -84
- package/components/pds-checkbox.js +1 -8
- package/components/pds-checkbox2.js +1 -101
- package/components/pds-chip.js +1 -78
- package/components/pds-chip2.js +1 -0
- package/components/pds-combobox.d.ts +11 -0
- package/components/pds-combobox.js +2 -0
- package/components/pds-container.d.ts +11 -0
- package/components/pds-container.js +1 -0
- package/components/pds-copytext.js +1 -88
- package/components/pds-divider.js +1 -54
- package/components/pds-dropdown-menu-item.d.ts +11 -0
- package/components/pds-dropdown-menu-item.js +1 -0
- package/components/pds-dropdown-menu-separator.d.ts +11 -0
- package/components/pds-dropdown-menu-separator.js +1 -0
- package/components/pds-dropdown-menu.d.ts +11 -0
- package/components/pds-dropdown-menu.js +1 -0
- package/components/pds-filter.d.ts +11 -0
- package/components/pds-filter.js +1 -0
- package/components/pds-filters.d.ts +11 -0
- package/components/pds-filters.js +1 -0
- package/components/pds-icon.js +1 -8
- package/components/pds-icon2.js +1 -370
- package/components/pds-image.js +1 -55
- package/components/pds-input.js +1 -72
- package/components/pds-link.js +1 -65
- package/components/pds-link2.js +1 -0
- package/components/pds-loader.js +1 -68
- package/components/pds-loader2.js +1 -0
- package/components/pds-modal-content.d.ts +11 -0
- package/components/pds-modal-content.js +1 -0
- package/components/pds-modal-footer.d.ts +11 -0
- package/components/pds-modal-footer.js +1 -0
- package/components/pds-modal-header.d.ts +11 -0
- package/components/pds-modal-header.js +1 -0
- package/components/pds-modal.d.ts +11 -0
- package/components/pds-modal.js +1 -0
- package/components/pds-multiselect.d.ts +11 -0
- package/components/pds-multiselect.js +1 -0
- package/components/pds-popover.d.ts +11 -0
- package/components/pds-popover.js +1 -0
- package/components/pds-progress.js +1 -49
- package/components/pds-property.d.ts +11 -0
- package/components/pds-property.js +1 -0
- package/components/pds-radio-group.d.ts +11 -0
- package/components/pds-radio-group.js +1 -0
- package/components/pds-radio.js +1 -78
- package/components/pds-row.js +1 -72
- package/components/pds-select.d.ts +11 -0
- package/components/pds-select.js +1 -0
- package/components/pds-sortable-item.js +1 -58
- package/components/pds-sortable.js +3 -2718
- package/components/pds-switch.js +1 -82
- package/components/pds-tab.js +1 -53
- package/components/pds-table-body.js +1 -36
- package/components/pds-table-cell.js +1 -8
- package/components/pds-table-cell2.js +1 -72
- package/components/pds-table-head-cell.js +1 -8
- package/components/pds-table-head-cell2.js +1 -98
- package/components/pds-table-head.js +1 -90
- package/components/pds-table-row.js +1 -95
- package/components/pds-table.js +1 -124
- package/components/pds-tabpanel.js +1 -45
- package/components/pds-tabs.js +1 -119
- package/components/pds-text.d.ts +11 -0
- package/components/pds-text.js +1 -0
- package/components/pds-text2.js +1 -0
- package/components/pds-textarea.js +1 -82
- package/components/pds-toast.d.ts +11 -0
- package/components/pds-toast.js +1 -0
- package/components/pds-tooltip.js +1 -178
- package/components/reconnected-content.js +1 -0
- package/components/scroll.js +1 -0
- package/components/truncation-tooltip.js +1 -0
- package/components/utils.js +1 -0
- package/dist/cjs/attributes-oNMnBEnP.js +85 -0
- package/dist/cjs/closest-BZXvuB_Y.js +11 -0
- package/dist/cjs/floating-ui.dom-BZk7Blsu.js +1635 -0
- package/dist/cjs/form-MhwfKTuo.js +69 -0
- package/dist/cjs/i18n-format-CrpIhahc.js +64 -0
- package/dist/cjs/index-BdFrBXCD.js +2926 -0
- package/dist/cjs/index-CKNNY-lQ.js +31 -0
- package/dist/cjs/index.cjs.js +0 -4
- package/dist/cjs/loader.cjs.js +3 -8
- package/dist/cjs/mock-pds-modal.cjs.entry.js +91 -0
- package/dist/cjs/pds-accordion.cjs.entry.js +15 -14
- package/dist/cjs/pds-alert.cjs.entry.js +74 -0
- package/dist/cjs/pds-avatar.cjs.entry.js +92 -25
- package/dist/cjs/pds-box.cjs.entry.js +111 -38
- package/dist/cjs/pds-button.cjs.entry.js +169 -25
- package/dist/cjs/pds-checkbox.cjs.entry.js +66 -26
- package/dist/cjs/pds-chip.cjs.entry.js +157 -23
- package/dist/cjs/pds-combobox.cjs.entry.js +2905 -0
- package/dist/cjs/pds-container.cjs.entry.js +36 -0
- package/dist/cjs/pds-copytext.cjs.entry.js +72 -17
- package/dist/cjs/pds-divider.cjs.entry.js +8 -11
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +85 -0
- package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +22 -0
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js +318 -0
- package/dist/cjs/pds-filter.cjs.entry.js +489 -0
- package/dist/cjs/pds-filters.cjs.entry.js +17 -0
- package/dist/cjs/pds-icon.cjs.entry.js +273 -40
- package/dist/cjs/pds-image.cjs.entry.js +15 -16
- package/dist/cjs/pds-input.cjs.entry.js +296 -26
- package/dist/cjs/pds-link.cjs.entry.js +41 -13
- package/dist/cjs/pds-loader.cjs.entry.js +21 -14
- package/dist/cjs/pds-modal-content.cjs.entry.js +196 -0
- package/dist/cjs/pds-modal-footer.cjs.entry.js +23 -0
- package/dist/cjs/pds-modal-header.cjs.entry.js +23 -0
- package/dist/cjs/pds-modal.cjs.entry.js +297 -0
- package/dist/cjs/pds-multiselect.cjs.entry.js +1068 -0
- package/dist/cjs/pds-popover.cjs.entry.js +571 -0
- package/dist/cjs/pds-progress.cjs.entry.js +16 -12
- package/dist/cjs/pds-property.cjs.entry.js +21 -0
- package/dist/cjs/pds-radio-group.cjs.entry.js +193 -0
- package/dist/cjs/pds-radio.cjs.entry.js +79 -23
- package/dist/cjs/pds-row.cjs.entry.js +35 -17
- package/dist/cjs/pds-select.cjs.entry.js +256 -0
- package/dist/cjs/pds-sortable-item.cjs.entry.js +26 -11
- package/dist/cjs/pds-sortable.cjs.entry.js +139 -117
- package/dist/cjs/pds-switch.cjs.entry.js +78 -26
- package/dist/cjs/pds-tab.cjs.entry.js +66 -16
- package/dist/cjs/pds-table-body.cjs.entry.js +4 -9
- package/dist/cjs/pds-table-cell.cjs.entry.js +107 -17
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +169 -26
- package/dist/cjs/pds-table-head.cjs.entry.js +16 -13
- package/dist/cjs/pds-table-row.cjs.entry.js +103 -16
- package/dist/cjs/pds-table.cjs.entry.js +178 -22
- package/dist/cjs/pds-tabpanel.cjs.entry.js +19 -13
- package/dist/cjs/pds-tabs.cjs.entry.js +88 -17
- package/dist/cjs/pds-text.cjs.entry.js +122 -0
- package/dist/cjs/pds-textarea.cjs.entry.js +311 -29
- package/dist/cjs/pds-toast.cjs.entry.js +145 -0
- package/dist/cjs/pds-tooltip.cjs.entry.js +318 -109
- package/dist/cjs/pine-core.cjs.js +7 -10
- package/dist/cjs/reconnected-content-CpnEQcTp.js +29 -0
- package/dist/cjs/scroll-2XcoE_6Q.js +79 -0
- package/dist/cjs/truncation-tooltip-CVzAha5B.js +246 -0
- package/dist/cjs/utils-7jx8T2mW.js +76 -0
- package/dist/collection/collection-manifest.json +23 -2
- package/dist/collection/components/_internal/pds-label/pds-label.js +0 -1
- package/dist/collection/components/pds-accordion/pds-accordion.css +24 -29
- package/dist/collection/components/pds-accordion/pds-accordion.js +35 -8
- package/dist/collection/components/pds-accordion/stories/pds-accordion.stories.js +12 -18
- package/dist/collection/components/pds-alert/pds-alert.css +131 -0
- package/dist/collection/components/pds-alert/pds-alert.js +255 -0
- package/dist/collection/components/pds-alert/pds-alert.tokens.css +85 -0
- package/dist/collection/components/pds-alert/stories/pds-alert.stories.js +110 -0
- package/dist/collection/components/pds-avatar/pds-avatar.css +56 -23
- package/dist/collection/components/pds-avatar/pds-avatar.js +226 -24
- package/dist/collection/components/pds-avatar/stories/pds-avatar.stories.js +38 -2
- package/dist/collection/components/pds-box/pds-box.css +5435 -263
- package/dist/collection/components/pds-box/pds-box.js +2796 -231
- package/dist/collection/components/pds-box/stories/pds-box.stories.js +20 -6
- package/dist/collection/components/pds-button/pds-button.css +256 -93
- package/dist/collection/components/pds-button/pds-button.js +404 -39
- package/dist/collection/components/pds-button/stories/pds-button.stories.js +228 -16
- package/dist/collection/components/pds-checkbox/checkbox-interface.js +0 -1
- package/dist/collection/components/pds-checkbox/pds-checkbox.css +68 -58
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +112 -46
- package/dist/collection/components/pds-checkbox/stories/pds-checkbox.stories.js +8 -16
- package/dist/collection/components/pds-chip/pds-chip.css +185 -114
- package/dist/collection/components/pds-chip/pds-chip.js +330 -60
- package/dist/collection/components/pds-chip/pds-chip.tokens.css +53 -0
- package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +109 -24
- package/dist/collection/components/pds-combobox/combobox-interface.js +1 -0
- package/dist/collection/components/pds-combobox/pds-combobox.css +499 -0
- package/dist/collection/components/pds-combobox/pds-combobox.js +2347 -0
- package/dist/collection/components/pds-combobox/stories/pds-combobox.stories.js +485 -0
- package/dist/collection/components/pds-container/pds-container.css +26 -0
- package/dist/collection/components/pds-container/pds-container.js +111 -0
- package/dist/collection/components/pds-container/stories/pds-container.stories.js +89 -0
- package/dist/collection/components/pds-copytext/pds-copytext.css +39 -51
- package/dist/collection/components/pds-copytext/pds-copytext.js +90 -21
- package/dist/collection/components/pds-copytext/stories/pds-copytext.stories.js +6 -12
- package/dist/collection/components/pds-divider/pds-divider.css +30 -40
- package/dist/collection/components/pds-divider/pds-divider.js +17 -10
- package/dist/collection/components/pds-divider/stories/pds-divider.stories.js +0 -2
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.css +76 -0
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +291 -0
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.css +7 -0
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +71 -0
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.css +52 -0
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +394 -0
- package/dist/collection/components/pds-dropdown-menu/stories/pds-dropdown-menu.stories.js +38 -0
- package/dist/collection/components/pds-filters/pds-filter/filter-interface.js +1 -0
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.css +199 -0
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +739 -0
- package/dist/collection/components/pds-filters/pds-filter/stories/pds-filter.stories.js +87 -0
- package/dist/collection/components/pds-filters/pds-filters.css +10 -0
- package/dist/collection/components/pds-filters/pds-filters.js +44 -0
- package/dist/collection/components/pds-filters/stories/pds-filters.stories.js +34 -0
- package/dist/collection/components/pds-icon/stories/pds-icon.stories.js +2 -2
- package/dist/collection/components/pds-image/pds-image.css +3 -2
- package/dist/collection/components/pds-image/pds-image.js +54 -29
- package/dist/collection/components/pds-image/stories/pds-image.stories.js +8 -8
- package/dist/collection/components/pds-input/input-interface.js +1 -0
- package/dist/collection/components/pds-input/pds-input.css +275 -63
- package/dist/collection/components/pds-input/pds-input.js +678 -56
- package/dist/collection/components/pds-input/pds-input.tokens.css +3 -0
- package/dist/collection/components/pds-input/stories/pds-input.stories.js +309 -14
- package/dist/collection/components/pds-link/pds-link.css +45 -30
- package/dist/collection/components/pds-link/pds-link.js +305 -19
- package/dist/collection/components/pds-link/stories/pds-link.stories.js +29 -4
- package/dist/collection/components/pds-loader/pds-loader.css +17 -30
- package/dist/collection/components/pds-loader/pds-loader.js +31 -11
- package/dist/collection/components/pds-loader/stories/pds-loader.stories.js +3 -5
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.css +25 -0
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +230 -0
- package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.css +8 -0
- package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +23 -0
- package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.css +8 -0
- package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +23 -0
- package/dist/collection/components/pds-modal/pds-modal.css +122 -0
- package/dist/collection/components/pds-modal/pds-modal.js +516 -0
- package/dist/collection/components/pds-modal/stories/pds-modal.stories.js +731 -0
- package/dist/collection/components/pds-modal/test/mock-pds-modal.js +286 -0
- package/dist/collection/components/pds-multiselect/multiselect-interface.js +1 -0
- package/dist/collection/components/pds-multiselect/pds-multiselect.css +324 -0
- package/dist/collection/components/pds-multiselect/pds-multiselect.js +2153 -0
- package/dist/collection/components/pds-multiselect/stories/pds-multiselect.stories.js +731 -0
- package/dist/collection/components/pds-popover/pds-popover.css +10 -0
- package/dist/collection/components/pds-popover/pds-popover.js +802 -0
- package/dist/collection/components/pds-popover/popover-interface.js +1 -0
- package/dist/collection/components/pds-popover/stories/pds-popover.stories.js +86 -0
- package/dist/collection/components/pds-progress/pds-progress.css +11 -24
- package/dist/collection/components/pds-progress/pds-progress.js +34 -14
- package/dist/collection/components/pds-progress/stories/pds-progress.stories.js +2 -4
- package/dist/collection/components/pds-property/pds-property.css +4 -0
- package/dist/collection/components/pds-property/pds-property.js +70 -0
- package/dist/collection/components/pds-property/stories/pds-property.stories.js +16 -0
- package/dist/collection/components/pds-radio/pds-radio.css +219 -54
- package/dist/collection/components/pds-radio/pds-radio.js +179 -51
- package/dist/collection/components/pds-radio/stories/pds-radio.stories.js +47 -15
- package/dist/collection/components/pds-radio-group/pds-radio-group.css +45 -0
- package/dist/collection/components/pds-radio-group/pds-radio-group.js +447 -0
- package/dist/collection/components/pds-radio-group/radio-group-interface.js +1 -0
- package/dist/collection/components/pds-radio-group/stories/pds-radio-group.stories.js +134 -0
- package/dist/collection/components/pds-row/pds-row.css +10 -9
- package/dist/collection/components/pds-row/pds-row.js +115 -26
- package/dist/collection/components/pds-row/stories/pds-row.stories.js +16 -14
- package/dist/collection/components/pds-select/pds-select.css +168 -0
- package/dist/collection/components/pds-select/pds-select.js +602 -0
- package/dist/collection/components/pds-select/pds-select.tokens.css +3 -0
- package/dist/collection/components/pds-select/stories/pds-select.stories.js +205 -0
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.css +26 -26
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +32 -7
- package/dist/collection/components/pds-sortable/pds-sortable-item/stories/pds-sortable-item.stories.js +0 -2
- package/dist/collection/components/pds-sortable/pds-sortable.css +2 -4
- package/dist/collection/components/pds-sortable/pds-sortable.js +77 -12
- package/dist/collection/components/pds-sortable/sortable-interface.js +0 -1
- package/dist/collection/components/pds-sortable/stories/pds-sortable.stories.js +22 -13
- package/dist/collection/components/pds-switch/pds-switch.css +56 -58
- package/dist/collection/components/pds-switch/pds-switch.js +142 -70
- package/dist/collection/components/pds-switch/stories/pds-switch.stories.js +11 -28
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -2
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.css +36 -19
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +128 -13
- package/dist/collection/components/pds-table/pds-table-cell/stories/pds-table-cell.stories.js +22 -7
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.css +22 -5
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +71 -11
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.css +46 -25
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +236 -20
- package/dist/collection/components/pds-table/pds-table-head-cell/stories/pds-table-head-cell.stories.js +12 -7
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.css +14 -5
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +114 -13
- package/dist/collection/components/pds-table/pds-table-row/stories/pds-table-row.stories.js +3 -9
- package/dist/collection/components/pds-table/pds-table.css +98 -17
- package/dist/collection/components/pds-table/pds-table.js +285 -41
- package/dist/collection/components/pds-table/stories/pds-table.stories.js +297 -27
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +102 -60
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +226 -18
- package/dist/collection/components/pds-tabs/pds-tab/stories/pds-tab.stories.js +15 -0
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.css +15 -2
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +53 -12
- package/dist/collection/components/pds-tabs/pds-tabpanel/stories/pds-tabpanel.stories.js +15 -0
- package/dist/collection/components/pds-tabs/pds-tabs.css +31 -11
- package/dist/collection/components/pds-tabs/pds-tabs.js +180 -25
- package/dist/collection/components/pds-tabs/stories/pds-tabs.stories.js +69 -26
- package/dist/collection/components/pds-text/pds-text.css +207 -0
- package/dist/collection/components/pds-text/pds-text.js +293 -0
- package/dist/collection/components/pds-text/stories/pds-text.stories.js +125 -0
- package/dist/collection/components/pds-textarea/pds-textarea.css +127 -57
- package/dist/collection/components/pds-textarea/pds-textarea.js +591 -57
- package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +112 -25
- package/dist/collection/components/pds-textarea/textarea-interface.js +0 -1
- package/dist/collection/components/pds-toast/pds-toast.css +153 -0
- package/dist/collection/components/pds-toast/pds-toast.js +330 -0
- package/dist/collection/components/pds-toast/stories/pds-toast.stories.js +95 -0
- package/dist/collection/components/pds-tooltip/pds-tooltip.css +63 -81
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +366 -78
- package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +22 -24
- package/dist/collection/global/pine-ui-global.js +0 -1
- package/dist/collection/global/styles/utils/label.css +17 -0
- package/dist/collection/i18n/i18n-format.js +59 -0
- package/dist/collection/i18n/index.js +1 -0
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/attributes.js +83 -0
- package/dist/collection/utils/closest.js +0 -1
- package/dist/collection/utils/form.js +41 -8
- package/dist/collection/utils/interfaces.js +1 -0
- package/dist/collection/utils/overlay.js +66 -50
- package/dist/collection/utils/reconnected-content.js +25 -0
- package/dist/collection/utils/scroll.js +77 -0
- package/dist/collection/utils/test/axe.js +106 -0
- package/dist/collection/utils/test/reconnect-safety.js +31 -0
- package/dist/collection/utils/truncation-tooltip.js +241 -0
- package/dist/collection/utils/types.js +18 -2
- package/dist/collection/utils/utils.js +66 -4
- package/dist/docs.d.ts +45 -0
- package/dist/docs.json +22498 -3270
- package/dist/esm/attributes-C0M1gTKv.js +82 -0
- package/dist/esm/closest-DnUJodVd.js +9 -0
- package/dist/esm/floating-ui.dom-DDtwbwIl.js +1628 -0
- package/dist/esm/form-BuRbS7Hp.js +63 -0
- package/dist/esm/i18n-format-BKsJZTyn.js +61 -0
- package/dist/esm/index-BjlFq0VD.js +17 -0
- package/dist/esm/index-NNDTPCWx.js +2915 -0
- package/dist/esm/index.js +0 -2
- package/dist/esm/loader.js +3 -6
- package/dist/esm/mock-pds-modal.entry.js +89 -0
- package/dist/esm/pds-accordion.entry.js +15 -12
- package/dist/esm/pds-alert.entry.js +72 -0
- package/dist/esm/pds-avatar.entry.js +92 -23
- package/dist/esm/pds-box.entry.js +111 -36
- package/dist/esm/pds-button.entry.js +168 -22
- package/dist/esm/pds-checkbox.entry.js +67 -25
- package/dist/esm/pds-chip.entry.js +158 -22
- package/dist/esm/pds-combobox.entry.js +2903 -0
- package/dist/esm/pds-container.entry.js +34 -0
- package/dist/esm/pds-copytext.entry.js +72 -15
- package/dist/esm/pds-divider.entry.js +8 -9
- package/dist/esm/pds-dropdown-menu-item.entry.js +83 -0
- package/dist/esm/pds-dropdown-menu-separator.entry.js +20 -0
- package/dist/esm/pds-dropdown-menu.entry.js +316 -0
- package/dist/esm/pds-filter.entry.js +487 -0
- package/dist/esm/pds-filters.entry.js +15 -0
- package/dist/esm/pds-icon.entry.js +273 -38
- package/dist/esm/pds-image.entry.js +15 -14
- package/dist/esm/pds-input.entry.js +297 -25
- package/dist/esm/pds-link.entry.js +41 -11
- package/dist/esm/pds-loader.entry.js +21 -12
- package/dist/esm/pds-modal-content.entry.js +194 -0
- package/dist/esm/pds-modal-footer.entry.js +21 -0
- package/dist/esm/pds-modal-header.entry.js +21 -0
- package/dist/esm/pds-modal.entry.js +295 -0
- package/dist/esm/pds-multiselect.entry.js +1066 -0
- package/dist/esm/pds-popover.entry.js +569 -0
- package/dist/esm/pds-progress.entry.js +16 -10
- package/dist/esm/pds-property.entry.js +19 -0
- package/dist/esm/pds-radio-group.entry.js +191 -0
- package/dist/esm/pds-radio.entry.js +80 -22
- package/dist/esm/pds-row.entry.js +35 -15
- package/dist/esm/pds-select.entry.js +254 -0
- package/dist/esm/pds-sortable-item.entry.js +26 -9
- package/dist/esm/pds-sortable.entry.js +139 -115
- package/dist/esm/pds-switch.entry.js +79 -25
- package/dist/esm/pds-tab.entry.js +66 -14
- package/dist/esm/pds-table-body.entry.js +4 -7
- package/dist/esm/pds-table-cell.entry.js +107 -15
- package/dist/esm/pds-table-head-cell.entry.js +169 -24
- package/dist/esm/pds-table-head.entry.js +16 -11
- package/dist/esm/pds-table-row.entry.js +103 -14
- package/dist/esm/pds-table.entry.js +178 -20
- package/dist/esm/pds-tabpanel.entry.js +19 -11
- package/dist/esm/pds-tabs.entry.js +88 -15
- package/dist/esm/pds-text.entry.js +120 -0
- package/dist/esm/pds-textarea.entry.js +312 -28
- package/dist/esm/pds-toast.entry.js +143 -0
- package/dist/esm/pds-tooltip.entry.js +318 -107
- package/dist/esm/pine-core.js +5 -7
- package/dist/esm/reconnected-content-RFpTWV6r.js +27 -0
- package/dist/esm/scroll-DtgUQhjl.js +75 -0
- package/dist/esm/truncation-tooltip-Blk4GigP.js +244 -0
- package/dist/esm/utils-tJa4KYNO.js +71 -0
- package/dist/esm-es5/attributes-C0M1gTKv.js +1 -0
- package/dist/esm-es5/closest-DnUJodVd.js +1 -0
- package/dist/esm-es5/floating-ui.dom-DDtwbwIl.js +1 -0
- package/dist/esm-es5/form-BuRbS7Hp.js +1 -0
- package/dist/esm-es5/i18n-format-BKsJZTyn.js +1 -0
- package/dist/esm-es5/index-BjlFq0VD.js +1 -0
- package/dist/esm-es5/index-NNDTPCWx.js +2 -0
- package/dist/esm-es5/index.js +0 -2
- package/dist/esm-es5/loader.js +1 -2
- package/dist/esm-es5/mock-pds-modal.entry.js +1 -0
- package/dist/esm-es5/pds-accordion.entry.js +1 -2
- package/dist/esm-es5/pds-alert.entry.js +1 -0
- package/dist/esm-es5/pds-avatar.entry.js +1 -2
- package/dist/esm-es5/pds-box.entry.js +1 -2
- package/dist/esm-es5/pds-button.entry.js +1 -2
- package/dist/esm-es5/pds-checkbox.entry.js +1 -2
- package/dist/esm-es5/pds-chip.entry.js +1 -2
- package/dist/esm-es5/pds-combobox.entry.js +2 -0
- package/dist/esm-es5/pds-container.entry.js +1 -0
- package/dist/esm-es5/pds-copytext.entry.js +1 -2
- package/dist/esm-es5/pds-divider.entry.js +1 -2
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -0
- package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -0
- package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -0
- package/dist/esm-es5/pds-filter.entry.js +1 -0
- package/dist/esm-es5/pds-filters.entry.js +1 -0
- package/dist/esm-es5/pds-icon.entry.js +1 -2
- package/dist/esm-es5/pds-image.entry.js +1 -2
- package/dist/esm-es5/pds-input.entry.js +1 -2
- package/dist/esm-es5/pds-link.entry.js +1 -2
- package/dist/esm-es5/pds-loader.entry.js +1 -2
- package/dist/esm-es5/pds-modal-content.entry.js +1 -0
- package/dist/esm-es5/pds-modal-footer.entry.js +1 -0
- package/dist/esm-es5/pds-modal-header.entry.js +1 -0
- package/dist/esm-es5/pds-modal.entry.js +1 -0
- package/dist/esm-es5/pds-multiselect.entry.js +1 -0
- package/dist/esm-es5/pds-popover.entry.js +1 -0
- package/dist/esm-es5/pds-progress.entry.js +1 -2
- package/dist/esm-es5/pds-property.entry.js +1 -0
- package/dist/esm-es5/pds-radio-group.entry.js +1 -0
- package/dist/esm-es5/pds-radio.entry.js +1 -2
- package/dist/esm-es5/pds-row.entry.js +1 -2
- package/dist/esm-es5/pds-select.entry.js +1 -0
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -2
- package/dist/esm-es5/pds-sortable.entry.js +3 -4
- package/dist/esm-es5/pds-switch.entry.js +1 -2
- package/dist/esm-es5/pds-tab.entry.js +1 -2
- package/dist/esm-es5/pds-table-body.entry.js +1 -2
- package/dist/esm-es5/pds-table-cell.entry.js +1 -2
- package/dist/esm-es5/pds-table-head-cell.entry.js +1 -2
- package/dist/esm-es5/pds-table-head.entry.js +1 -2
- package/dist/esm-es5/pds-table-row.entry.js +1 -2
- package/dist/esm-es5/pds-table.entry.js +1 -2
- package/dist/esm-es5/pds-tabpanel.entry.js +1 -2
- package/dist/esm-es5/pds-tabs.entry.js +1 -2
- package/dist/esm-es5/pds-text.entry.js +1 -0
- package/dist/esm-es5/pds-textarea.entry.js +1 -2
- package/dist/esm-es5/pds-toast.entry.js +1 -0
- package/dist/esm-es5/pds-tooltip.entry.js +1 -2
- package/dist/esm-es5/pine-core.js +1 -2
- package/dist/esm-es5/reconnected-content-RFpTWV6r.js +1 -0
- package/dist/esm-es5/scroll-DtgUQhjl.js +1 -0
- package/dist/esm-es5/truncation-tooltip-Blk4GigP.js +1 -0
- package/dist/esm-es5/utils-tJa4KYNO.js +1 -0
- package/dist/pine-core/index.esm.js +0 -2
- package/dist/pine-core/p-076aaa00.system.entry.js +1 -0
- package/dist/pine-core/p-08b0d298.entry.js +1 -0
- package/dist/pine-core/p-0a09ccbe.entry.js +1 -0
- package/dist/pine-core/p-0a4f2d5f.system.entry.js +1 -0
- package/dist/pine-core/p-16f13b17.entry.js +1 -0
- package/dist/pine-core/p-17d4a99a.system.entry.js +1 -0
- package/dist/pine-core/p-18ae43e3.entry.js +1 -0
- package/dist/pine-core/p-1b8ac76c.system.entry.js +1 -0
- package/dist/pine-core/p-1e87e72a.entry.js +1 -0
- package/dist/pine-core/p-1f20608e.system.entry.js +1 -0
- package/dist/pine-core/p-20e0d06c.system.entry.js +1 -0
- package/dist/pine-core/p-24fcf841.system.entry.js +1 -0
- package/dist/pine-core/p-292cf8f9.entry.js +1 -0
- package/dist/pine-core/p-2c5fe3d9.system.entry.js +1 -0
- package/dist/pine-core/p-2d1cc047.entry.js +1 -0
- package/dist/pine-core/p-2ec460e1.system.entry.js +1 -0
- package/dist/pine-core/p-2fc127b4.system.entry.js +1 -0
- package/dist/pine-core/p-31679dbc.system.entry.js +1 -0
- package/dist/pine-core/p-3170d53b.system.entry.js +1 -0
- package/dist/pine-core/p-36fc1ade.system.entry.js +1 -0
- package/dist/pine-core/p-39c6e6c9.entry.js +1 -0
- package/dist/pine-core/p-3cece186.system.entry.js +1 -0
- package/dist/pine-core/p-419e711c.entry.js +1 -0
- package/dist/pine-core/p-43268325.system.entry.js +1 -0
- package/dist/pine-core/p-43a1d9d7.entry.js +1 -0
- package/dist/pine-core/p-43d6ab33.system.entry.js +3 -0
- package/dist/pine-core/p-43ef94bc.entry.js +1 -0
- package/dist/pine-core/p-464ec4eb.system.entry.js +1 -0
- package/dist/pine-core/p-47708864.entry.js +1 -0
- package/dist/pine-core/p-5c7a72aa.system.entry.js +1 -0
- package/dist/pine-core/p-5d1228cb.entry.js +1 -0
- package/dist/pine-core/p-5e6e8d4e.system.entry.js +1 -0
- package/dist/pine-core/p-606418b7.system.entry.js +1 -0
- package/dist/pine-core/p-6254d112.entry.js +1 -0
- package/dist/pine-core/p-62f75f84.entry.js +1 -0
- package/dist/pine-core/p-6630f428.system.entry.js +1 -0
- package/dist/pine-core/p-69372e72.system.entry.js +1 -0
- package/dist/pine-core/p-6bc9b904.system.entry.js +1 -0
- package/dist/pine-core/p-6f82e8dc.system.entry.js +1 -0
- package/dist/pine-core/p-7153efaf.system.entry.js +1 -0
- package/dist/pine-core/p-73619cfc.system.entry.js +1 -0
- package/dist/pine-core/p-73b40545.system.entry.js +1 -0
- package/dist/pine-core/p-7803c5b6.system.entry.js +1 -0
- package/dist/pine-core/p-78cd9f97.system.entry.js +1 -0
- package/dist/pine-core/p-7ad6f313.entry.js +1 -0
- package/dist/pine-core/p-7b85115b.system.entry.js +1 -0
- package/dist/pine-core/p-7b97974e.system.entry.js +1 -0
- package/dist/pine-core/p-7bac161d.entry.js +1 -0
- package/dist/pine-core/p-7e065b59.entry.js +1 -0
- package/dist/pine-core/p-7e146a45.entry.js +1 -0
- package/dist/pine-core/p-8249e027.entry.js +1 -0
- package/dist/pine-core/p-83e8f145.entry.js +1 -0
- package/dist/pine-core/p-85f7428b.system.entry.js +1 -0
- package/dist/pine-core/p-86d12f3c.system.entry.js +1 -0
- package/dist/pine-core/p-8c0040c4.entry.js +1 -0
- package/dist/pine-core/p-8c85f53a.entry.js +1 -0
- package/dist/pine-core/p-8cb0eed9.entry.js +1 -0
- package/dist/pine-core/p-8d6fd5a7.system.entry.js +1 -0
- package/dist/pine-core/p-92f648ba.entry.js +1 -0
- package/dist/pine-core/p-9374cf48.system.entry.js +1 -0
- package/dist/pine-core/p-950dd70e.system.entry.js +1 -0
- package/dist/pine-core/p-B1rytYxP.system.js +1 -0
- package/dist/pine-core/p-BG6uGRQj.system.js +1 -0
- package/dist/pine-core/p-BKsJZTyn.js +1 -0
- package/dist/pine-core/p-BNSGedhN.js +1 -0
- package/dist/pine-core/p-BbXp4qBM.system.js +1 -0
- package/dist/pine-core/p-BhQhw0S3.system.js +1 -0
- package/dist/pine-core/p-BjlFq0VD.js +1 -0
- package/dist/pine-core/p-BrLs99ML.system.js +1 -0
- package/dist/pine-core/p-BuRbS7Hp.js +1 -0
- package/dist/pine-core/p-BxIzb-Wc.system.js +1 -0
- package/dist/pine-core/p-C0M1gTKv.js +1 -0
- package/dist/pine-core/p-CRCxGYgw.system.js +1 -0
- package/dist/pine-core/p-Cr7-rJtJ.system.js +1 -0
- package/dist/pine-core/p-DDtwbwIl.js +1 -0
- package/dist/pine-core/p-DVZjHa4_.system.js +2 -0
- package/dist/pine-core/p-DVra397g.system.js +1 -0
- package/dist/pine-core/p-DnUJodVd.js +1 -0
- package/dist/pine-core/p-DtgUQhjl.js +1 -0
- package/dist/pine-core/p-NNDTPCWx.js +2 -0
- package/dist/pine-core/p-RFpTWV6r.js +1 -0
- package/dist/pine-core/p-WYNNo1N0.system.js +1 -0
- package/dist/pine-core/p-YWpyar7R.system.js +1 -0
- package/dist/pine-core/p-a03c12a4.system.entry.js +1 -0
- package/dist/pine-core/p-a0edb4ad.entry.js +1 -0
- package/dist/pine-core/p-a8a1ae32.system.entry.js +1 -0
- package/dist/pine-core/p-ab0b992b.entry.js +2 -0
- package/dist/pine-core/p-ac2775b5.entry.js +1 -0
- package/dist/pine-core/p-af1e2778.entry.js +1 -0
- package/dist/pine-core/p-b0058cb0.entry.js +1 -0
- package/dist/pine-core/p-b1e5e8b1.system.entry.js +1 -0
- package/dist/pine-core/p-b3b44b80.entry.js +1 -0
- package/dist/pine-core/p-b5c760c8.system.entry.js +1 -0
- package/dist/pine-core/p-b6812452.system.entry.js +1 -0
- package/dist/pine-core/p-b759dc21.entry.js +1 -0
- package/dist/pine-core/p-b89583e7.system.entry.js +1 -0
- package/dist/pine-core/p-b8f288e8.entry.js +1 -0
- package/dist/pine-core/p-b9380ce8.entry.js +1 -0
- package/dist/pine-core/p-bf759fc0.entry.js +1 -0
- package/dist/pine-core/p-c2688710.entry.js +1 -0
- package/dist/pine-core/p-c35fe2e2.entry.js +1 -0
- package/dist/pine-core/p-c3748812.system.entry.js +8 -0
- package/dist/pine-core/p-caf73216.entry.js +1 -0
- package/dist/pine-core/p-cd2370d0.system.entry.js +1 -0
- package/dist/pine-core/p-cd407bed.system.entry.js +1 -0
- package/dist/pine-core/p-cf389430.system.entry.js +1 -0
- package/dist/pine-core/p-d12a93d6.entry.js +1 -0
- package/dist/pine-core/p-d281464e.entry.js +1 -0
- package/dist/pine-core/p-d70201bb.entry.js +1 -0
- package/dist/pine-core/p-d9cb26fe.system.entry.js +1 -0
- package/dist/pine-core/p-dc460e2d.system.entry.js +1 -0
- package/dist/pine-core/p-dcc4ee5e.entry.js +1 -0
- package/dist/pine-core/p-def5d3d3.entry.js +1 -0
- package/dist/pine-core/p-dfa70d20.entry.js +1 -0
- package/dist/pine-core/p-ebe218f8.entry.js +1 -0
- package/dist/pine-core/p-ec2c0e57.entry.js +7 -0
- package/dist/pine-core/p-eed4b552.system.entry.js +1 -0
- package/dist/pine-core/p-f145e018.entry.js +1 -0
- package/dist/pine-core/p-f6d1469d.entry.js +1 -0
- package/dist/pine-core/p-f7cbdb81.system.entry.js +1 -0
- package/dist/pine-core/p-fef6694d.entry.js +1 -0
- package/dist/pine-core/p-ff1e9a32.entry.js +1 -0
- package/dist/pine-core/p-kYMYDfJY.system.js +1 -0
- package/dist/pine-core/p-tJa4KYNO.js +1 -0
- package/dist/pine-core/pine-core.css +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -2
- package/dist/pine-core/pine-core.js +1 -1
- package/dist/scripts/vscode-custom-data-generator.js +406 -0
- package/dist/scripts/vscode-settings-patcher.cjs +89 -0
- package/dist/types/components/pds-accordion/pds-accordion.d.ts +8 -0
- package/dist/types/components/pds-alert/pds-alert.d.ts +51 -0
- package/dist/types/components/pds-avatar/pds-avatar.d.ts +38 -0
- package/dist/types/components/pds-box/pds-box.d.ts +475 -14
- package/dist/types/components/pds-button/pds-button.d.ts +70 -12
- package/dist/types/components/pds-checkbox/pds-checkbox.d.ts +11 -1
- package/dist/types/components/pds-chip/pds-chip.d.ts +62 -13
- package/dist/types/components/pds-combobox/combobox-interface.d.ts +23 -0
- package/dist/types/components/pds-combobox/pds-combobox.d.ts +372 -0
- package/dist/types/components/pds-container/pds-container.d.ts +22 -0
- package/dist/types/components/pds-copytext/pds-copytext.d.ts +14 -4
- package/dist/types/components/pds-divider/pds-divider.d.ts +1 -1
- package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.d.ts +66 -0
- package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.d.ts +13 -0
- package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu.d.ts +39 -0
- package/dist/types/components/pds-filters/pds-filter/filter-interface.d.ts +19 -0
- package/dist/types/components/pds-filters/pds-filter/pds-filter.d.ts +133 -0
- package/dist/types/components/pds-filters/pds-filters.d.ts +11 -0
- package/dist/types/components/pds-image/pds-image.d.ts +7 -3
- package/dist/types/components/pds-input/input-interface.d.ts +12 -0
- package/dist/types/components/pds-input/pds-input.d.ts +163 -8
- package/dist/types/components/pds-link/pds-link.d.ts +73 -11
- package/dist/types/components/pds-loader/pds-loader.d.ts +2 -1
- package/dist/types/components/pds-modal/pds-modal-content/pds-modal-content.d.ts +38 -0
- package/dist/types/components/pds-modal/pds-modal-footer/pds-modal-footer.d.ts +5 -0
- package/dist/types/components/pds-modal/pds-modal-header/pds-modal-header.d.ts +5 -0
- package/dist/types/components/pds-modal/pds-modal.d.ts +88 -0
- package/dist/types/components/pds-modal/test/mock-pds-modal.d.ts +68 -0
- package/dist/types/components/pds-multiselect/multiselect-interface.d.ts +42 -0
- package/dist/types/components/pds-multiselect/pds-multiselect.d.ts +326 -0
- package/dist/types/components/pds-popover/pds-popover.d.ts +179 -0
- package/dist/types/components/pds-popover/popover-interface.d.ts +4 -0
- package/dist/types/components/pds-property/pds-property.d.ts +14 -0
- package/dist/types/components/pds-radio/pds-radio.d.ts +30 -9
- package/dist/types/components/pds-radio-group/pds-radio-group.d.ts +73 -0
- package/dist/types/components/pds-radio-group/radio-group-interface.d.ts +5 -0
- package/dist/types/components/pds-row/pds-row.d.ts +10 -2
- package/dist/types/components/pds-select/pds-select.d.ts +146 -0
- package/dist/types/components/pds-sortable/pds-sortable-item/pds-sortable-item.d.ts +1 -0
- package/dist/types/components/pds-sortable/pds-sortable.d.ts +10 -2
- package/dist/types/components/pds-sortable/sortable-interface.d.ts +3 -1
- package/dist/types/components/pds-switch/pds-switch.d.ts +24 -19
- package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +26 -1
- package/dist/types/components/pds-table/pds-table-head/pds-table-head.d.ts +15 -2
- package/dist/types/components/pds-table/pds-table-head-cell/pds-table-head-cell.d.ts +52 -2
- package/dist/types/components/pds-table/pds-table-row/pds-table-row.d.ts +23 -4
- package/dist/types/components/pds-table/pds-table.d.ts +62 -10
- package/dist/types/components/pds-tabs/pds-tab/pds-tab.d.ts +49 -0
- package/dist/types/components/pds-tabs/pds-tabpanel/pds-tabpanel.d.ts +6 -0
- package/dist/types/components/pds-tabs/pds-tabs.d.ts +27 -3
- package/dist/types/components/pds-text/pds-text.d.ts +55 -0
- package/dist/types/components/pds-textarea/pds-textarea.d.ts +138 -15
- package/dist/types/components/pds-textarea/textarea-interface.d.ts +5 -1
- package/dist/types/components/pds-toast/pds-toast.d.ts +70 -0
- package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +45 -19
- package/dist/types/components.d.ts +5585 -1191
- package/dist/types/home/runner/work/pine/pine/libs/core/.stencil/scripts/vscode-custom-data-generator.d.ts +6 -0
- package/dist/types/i18n/i18n-format.d.ts +38 -0
- package/dist/types/i18n/index.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +195 -8
- package/dist/types/utils/attributes.d.ts +10 -0
- package/dist/types/utils/form.d.ts +23 -1
- package/dist/types/utils/interfaces.d.ts +6 -0
- package/dist/types/utils/overlay.d.ts +3 -3
- package/dist/types/utils/reconnected-content.d.ts +14 -0
- package/dist/types/utils/scroll.d.ts +21 -0
- package/dist/types/utils/test/axe.d.ts +81 -0
- package/dist/types/utils/test/reconnect-safety.d.ts +11 -0
- package/dist/types/utils/truncation-tooltip.d.ts +21 -0
- package/dist/types/utils/types.d.ts +8 -2
- package/dist/types/utils/utils.d.ts +14 -2
- package/dist/vscode.html-data.json +10937 -0
- package/hydrate/index.d.ts +58 -7
- package/hydrate/index.js +21559 -3575
- package/hydrate/index.mjs +21557 -3575
- package/package.json +47 -25
- package/readme.md +1 -1
- package/components/closest.js.map +0 -1
- package/components/index.js.map +0 -1
- package/components/index2.js.map +0 -1
- package/components/pds-accordion.js.map +0 -1
- package/components/pds-avatar.js.map +0 -1
- package/components/pds-box.js.map +0 -1
- package/components/pds-button.js.map +0 -1
- package/components/pds-button2.js.map +0 -1
- package/components/pds-checkbox.js.map +0 -1
- package/components/pds-checkbox2.js.map +0 -1
- package/components/pds-chip.js.map +0 -1
- package/components/pds-copytext.js.map +0 -1
- package/components/pds-divider.js.map +0 -1
- package/components/pds-icon.js.map +0 -1
- package/components/pds-icon2.js.map +0 -1
- package/components/pds-image.js.map +0 -1
- package/components/pds-input.js.map +0 -1
- package/components/pds-label.js +0 -39
- package/components/pds-label.js.map +0 -1
- package/components/pds-link.js.map +0 -1
- package/components/pds-loader.js.map +0 -1
- package/components/pds-progress.js.map +0 -1
- package/components/pds-radio.js.map +0 -1
- package/components/pds-row.js.map +0 -1
- package/components/pds-sortable-item.js.map +0 -1
- package/components/pds-sortable.js.map +0 -1
- package/components/pds-switch.js.map +0 -1
- package/components/pds-tab.js.map +0 -1
- package/components/pds-table-body.js.map +0 -1
- package/components/pds-table-cell.js.map +0 -1
- package/components/pds-table-cell2.js.map +0 -1
- package/components/pds-table-head-cell.js.map +0 -1
- package/components/pds-table-head-cell2.js.map +0 -1
- package/components/pds-table-head.js.map +0 -1
- package/components/pds-table-row.js.map +0 -1
- package/components/pds-table.js.map +0 -1
- package/components/pds-tabpanel.js.map +0 -1
- package/components/pds-tabs.js.map +0 -1
- package/components/pds-textarea.js.map +0 -1
- package/components/pds-tooltip.js.map +0 -1
- package/dist/cjs/app-globals-3a1e7e63.js +0 -7
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/closest-b45138d3.js +0 -13
- package/dist/cjs/closest-b45138d3.js.map +0 -1
- package/dist/cjs/index-46fb0736.js +0 -1956
- package/dist/cjs/index-46fb0736.js.map +0 -1
- package/dist/cjs/index-de3f0730.js +0 -24
- package/dist/cjs/index-de3f0730.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/pds-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-avatar.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-box.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-button.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-chip.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-copytext.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-divider.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-image.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-input.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-label-7aabdc4e.js +0 -44
- package/dist/cjs/pds-label-7aabdc4e.js.map +0 -1
- package/dist/cjs/pds-link.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-loader.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-progress.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-row.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-sortable-item.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-sortable.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-tab.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-body.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-cell.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-head.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-row.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-tabpanel.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-textarea.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/pine-core.cjs.js.map +0 -1
- package/dist/collection/components/_internal/pds-label/pds-label.js.map +0 -1
- package/dist/collection/components/pds-accordion/pds-accordion.js.map +0 -1
- package/dist/collection/components/pds-avatar/pds-avatar.js.map +0 -1
- package/dist/collection/components/pds-box/pds-box.js.map +0 -1
- package/dist/collection/components/pds-button/pds-button.js.map +0 -1
- package/dist/collection/components/pds-checkbox/checkbox-interface.js.map +0 -1
- package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +0 -1
- package/dist/collection/components/pds-chip/pds-chip.js.map +0 -1
- package/dist/collection/components/pds-copytext/pds-copytext.js.map +0 -1
- package/dist/collection/components/pds-divider/pds-divider.js.map +0 -1
- package/dist/collection/components/pds-image/pds-image.js.map +0 -1
- package/dist/collection/components/pds-input/pds-input.js.map +0 -1
- package/dist/collection/components/pds-link/pds-link.js.map +0 -1
- package/dist/collection/components/pds-loader/pds-loader.js.map +0 -1
- package/dist/collection/components/pds-progress/pds-progress.js.map +0 -1
- package/dist/collection/components/pds-radio/pds-radio.js.map +0 -1
- package/dist/collection/components/pds-row/pds-row.js.map +0 -1
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js.map +0 -1
- package/dist/collection/components/pds-sortable/pds-sortable.js.map +0 -1
- package/dist/collection/components/pds-sortable/sortable-interface.js.map +0 -1
- package/dist/collection/components/pds-switch/pds-switch.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table.js.map +0 -1
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js.map +0 -1
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js.map +0 -1
- package/dist/collection/components/pds-tabs/pds-tabs.js.map +0 -1
- package/dist/collection/components/pds-textarea/pds-textarea.js.map +0 -1
- package/dist/collection/components/pds-textarea/textarea-interface.js.map +0 -1
- package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +0 -1
- package/dist/collection/global/pine-ui-global.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/stories/_helpers/index.js +0 -15
- package/dist/collection/stories/_helpers/index.js.map +0 -1
- package/dist/collection/utils/closest.js.map +0 -1
- package/dist/collection/utils/form.js.map +0 -1
- package/dist/collection/utils/overlay.js.map +0 -1
- package/dist/collection/utils/types.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/esm/app-globals-0f993ce5.js +0 -5
- package/dist/esm/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm/closest-d2d192be.js +0 -11
- package/dist/esm/closest-d2d192be.js.map +0 -1
- package/dist/esm/index-2a33b470.js +0 -1927
- package/dist/esm/index-2a33b470.js.map +0 -1
- package/dist/esm/index-a1e2f9af.js +0 -14
- package/dist/esm/index-a1e2f9af.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/pds-accordion.entry.js.map +0 -1
- package/dist/esm/pds-avatar.entry.js.map +0 -1
- package/dist/esm/pds-box.entry.js.map +0 -1
- package/dist/esm/pds-button.entry.js.map +0 -1
- package/dist/esm/pds-checkbox.entry.js.map +0 -1
- package/dist/esm/pds-chip.entry.js.map +0 -1
- package/dist/esm/pds-copytext.entry.js.map +0 -1
- package/dist/esm/pds-divider.entry.js.map +0 -1
- package/dist/esm/pds-icon.entry.js.map +0 -1
- package/dist/esm/pds-image.entry.js.map +0 -1
- package/dist/esm/pds-input.entry.js.map +0 -1
- package/dist/esm/pds-label-31a5848b.js +0 -39
- package/dist/esm/pds-label-31a5848b.js.map +0 -1
- package/dist/esm/pds-link.entry.js.map +0 -1
- package/dist/esm/pds-loader.entry.js.map +0 -1
- package/dist/esm/pds-progress.entry.js.map +0 -1
- package/dist/esm/pds-radio.entry.js.map +0 -1
- package/dist/esm/pds-row.entry.js.map +0 -1
- package/dist/esm/pds-sortable-item.entry.js.map +0 -1
- package/dist/esm/pds-sortable.entry.js.map +0 -1
- package/dist/esm/pds-switch.entry.js.map +0 -1
- package/dist/esm/pds-tab.entry.js.map +0 -1
- package/dist/esm/pds-table-body.entry.js.map +0 -1
- package/dist/esm/pds-table-cell.entry.js.map +0 -1
- package/dist/esm/pds-table-head-cell.entry.js.map +0 -1
- package/dist/esm/pds-table-head.entry.js.map +0 -1
- package/dist/esm/pds-table-row.entry.js.map +0 -1
- package/dist/esm/pds-table.entry.js.map +0 -1
- package/dist/esm/pds-tabpanel.entry.js.map +0 -1
- package/dist/esm/pds-tabs.entry.js.map +0 -1
- package/dist/esm/pds-textarea.entry.js.map +0 -1
- package/dist/esm/pds-tooltip.entry.js.map +0 -1
- package/dist/esm/pine-core.js.map +0 -1
- package/dist/esm-es5/app-globals-0f993ce5.js +0 -2
- package/dist/esm-es5/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm-es5/closest-d2d192be.js +0 -2
- package/dist/esm-es5/closest-d2d192be.js.map +0 -1
- package/dist/esm-es5/index-2a33b470.js +0 -3
- package/dist/esm-es5/index-2a33b470.js.map +0 -1
- package/dist/esm-es5/index-a1e2f9af.js +0 -2
- package/dist/esm-es5/index-a1e2f9af.js.map +0 -1
- package/dist/esm-es5/index.js.map +0 -1
- package/dist/esm-es5/loader.js.map +0 -1
- package/dist/esm-es5/pds-accordion.entry.js.map +0 -1
- package/dist/esm-es5/pds-avatar.entry.js.map +0 -1
- package/dist/esm-es5/pds-box.entry.js.map +0 -1
- package/dist/esm-es5/pds-button.entry.js.map +0 -1
- package/dist/esm-es5/pds-checkbox.entry.js.map +0 -1
- package/dist/esm-es5/pds-chip.entry.js.map +0 -1
- package/dist/esm-es5/pds-copytext.entry.js.map +0 -1
- package/dist/esm-es5/pds-divider.entry.js.map +0 -1
- package/dist/esm-es5/pds-icon.entry.js.map +0 -1
- package/dist/esm-es5/pds-image.entry.js.map +0 -1
- package/dist/esm-es5/pds-input.entry.js.map +0 -1
- package/dist/esm-es5/pds-label-31a5848b.js +0 -2
- package/dist/esm-es5/pds-label-31a5848b.js.map +0 -1
- package/dist/esm-es5/pds-link.entry.js.map +0 -1
- package/dist/esm-es5/pds-loader.entry.js.map +0 -1
- package/dist/esm-es5/pds-progress.entry.js.map +0 -1
- package/dist/esm-es5/pds-radio.entry.js.map +0 -1
- package/dist/esm-es5/pds-row.entry.js.map +0 -1
- package/dist/esm-es5/pds-sortable-item.entry.js.map +0 -1
- package/dist/esm-es5/pds-sortable.entry.js.map +0 -1
- package/dist/esm-es5/pds-switch.entry.js.map +0 -1
- package/dist/esm-es5/pds-tab.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-body.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-cell.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-head.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-row.entry.js.map +0 -1
- package/dist/esm-es5/pds-table.entry.js.map +0 -1
- package/dist/esm-es5/pds-tabpanel.entry.js.map +0 -1
- package/dist/esm-es5/pds-tabs.entry.js.map +0 -1
- package/dist/esm-es5/pds-textarea.entry.js.map +0 -1
- package/dist/esm-es5/pds-tooltip.entry.js.map +0 -1
- package/dist/esm-es5/pine-core.js.map +0 -1
- package/dist/pine-core/index.esm.js.map +0 -1
- package/dist/pine-core/p-06c33261.system.entry.js +0 -2
- package/dist/pine-core/p-06c33261.system.entry.js.map +0 -1
- package/dist/pine-core/p-07f80cb6.entry.js +0 -2
- package/dist/pine-core/p-07f80cb6.entry.js.map +0 -1
- package/dist/pine-core/p-09b1c7f1.system.entry.js +0 -2
- package/dist/pine-core/p-09b1c7f1.system.entry.js.map +0 -1
- package/dist/pine-core/p-0a4b1ce9.system.entry.js +0 -2
- package/dist/pine-core/p-0a4b1ce9.system.entry.js.map +0 -1
- package/dist/pine-core/p-0b541f88.js +0 -3
- package/dist/pine-core/p-0b541f88.js.map +0 -1
- package/dist/pine-core/p-0b77685e.js +0 -2
- package/dist/pine-core/p-0b77685e.js.map +0 -1
- package/dist/pine-core/p-0d6fafef.system.entry.js +0 -2
- package/dist/pine-core/p-0d6fafef.system.entry.js.map +0 -1
- package/dist/pine-core/p-0e1c0d03.entry.js +0 -8
- package/dist/pine-core/p-0e1c0d03.entry.js.map +0 -1
- package/dist/pine-core/p-0e936138.entry.js +0 -2
- package/dist/pine-core/p-0e936138.entry.js.map +0 -1
- package/dist/pine-core/p-143795e5.system.entry.js +0 -2
- package/dist/pine-core/p-143795e5.system.entry.js.map +0 -1
- package/dist/pine-core/p-1f2b0be3.system.entry.js +0 -2
- package/dist/pine-core/p-1f2b0be3.system.entry.js.map +0 -1
- package/dist/pine-core/p-224a435b.system.js +0 -2
- package/dist/pine-core/p-224a435b.system.js.map +0 -1
- package/dist/pine-core/p-31056348.system.entry.js +0 -2
- package/dist/pine-core/p-31056348.system.entry.js.map +0 -1
- package/dist/pine-core/p-32498622.system.entry.js +0 -2
- package/dist/pine-core/p-32498622.system.entry.js.map +0 -1
- package/dist/pine-core/p-3261fdf5.system.entry.js +0 -2
- package/dist/pine-core/p-3261fdf5.system.entry.js.map +0 -1
- package/dist/pine-core/p-32e41e3d.system.entry.js +0 -2
- package/dist/pine-core/p-32e41e3d.system.entry.js.map +0 -1
- package/dist/pine-core/p-34631565.system.js +0 -2
- package/dist/pine-core/p-34631565.system.js.map +0 -1
- package/dist/pine-core/p-3aa152c6.entry.js +0 -2
- package/dist/pine-core/p-3aa152c6.entry.js.map +0 -1
- package/dist/pine-core/p-3ba3d44c.entry.js +0 -2
- package/dist/pine-core/p-3ba3d44c.entry.js.map +0 -1
- package/dist/pine-core/p-46161cec.entry.js +0 -2
- package/dist/pine-core/p-46161cec.entry.js.map +0 -1
- package/dist/pine-core/p-4f69a7b7.entry.js +0 -2
- package/dist/pine-core/p-4f69a7b7.entry.js.map +0 -1
- package/dist/pine-core/p-50a23474.entry.js +0 -2
- package/dist/pine-core/p-50a23474.entry.js.map +0 -1
- package/dist/pine-core/p-511bf308.entry.js +0 -2
- package/dist/pine-core/p-511bf308.entry.js.map +0 -1
- package/dist/pine-core/p-52515d64.system.entry.js +0 -2
- package/dist/pine-core/p-52515d64.system.entry.js.map +0 -1
- package/dist/pine-core/p-56ba5cbf.system.js +0 -2
- package/dist/pine-core/p-56ba5cbf.system.js.map +0 -1
- package/dist/pine-core/p-5a384517.entry.js +0 -2
- package/dist/pine-core/p-5a384517.entry.js.map +0 -1
- package/dist/pine-core/p-5bee6677.system.entry.js +0 -2
- package/dist/pine-core/p-5bee6677.system.entry.js.map +0 -1
- package/dist/pine-core/p-5df76e04.system.js +0 -2
- package/dist/pine-core/p-5df76e04.system.js.map +0 -1
- package/dist/pine-core/p-62ec9a0f.system.entry.js +0 -2
- package/dist/pine-core/p-62ec9a0f.system.entry.js.map +0 -1
- package/dist/pine-core/p-6a7a864f.entry.js +0 -2
- package/dist/pine-core/p-6a7a864f.entry.js.map +0 -1
- package/dist/pine-core/p-6ae2f0f5.entry.js +0 -2
- package/dist/pine-core/p-6ae2f0f5.entry.js.map +0 -1
- package/dist/pine-core/p-6d9edf7d.system.entry.js +0 -2
- package/dist/pine-core/p-6d9edf7d.system.entry.js.map +0 -1
- package/dist/pine-core/p-6e146962.entry.js +0 -2
- package/dist/pine-core/p-6e146962.entry.js.map +0 -1
- package/dist/pine-core/p-6ff9ebfa.entry.js +0 -2
- package/dist/pine-core/p-6ff9ebfa.entry.js.map +0 -1
- package/dist/pine-core/p-701ba882.entry.js +0 -2
- package/dist/pine-core/p-701ba882.entry.js.map +0 -1
- package/dist/pine-core/p-73eb1722.entry.js +0 -2
- package/dist/pine-core/p-73eb1722.entry.js.map +0 -1
- package/dist/pine-core/p-78c6c37a.system.entry.js +0 -2
- package/dist/pine-core/p-78c6c37a.system.entry.js.map +0 -1
- package/dist/pine-core/p-79ca4ab9.system.entry.js +0 -2
- package/dist/pine-core/p-79ca4ab9.system.entry.js.map +0 -1
- package/dist/pine-core/p-7c33a02e.entry.js +0 -2
- package/dist/pine-core/p-7c33a02e.entry.js.map +0 -1
- package/dist/pine-core/p-7dac515e.system.entry.js +0 -2
- package/dist/pine-core/p-7dac515e.system.entry.js.map +0 -1
- package/dist/pine-core/p-7ea6838b.system.entry.js +0 -2
- package/dist/pine-core/p-7ea6838b.system.entry.js.map +0 -1
- package/dist/pine-core/p-7ebfdef4.system.entry.js +0 -2
- package/dist/pine-core/p-7ebfdef4.system.entry.js.map +0 -1
- package/dist/pine-core/p-829777e4.system.entry.js +0 -2
- package/dist/pine-core/p-829777e4.system.entry.js.map +0 -1
- package/dist/pine-core/p-8317c6c2.js +0 -2
- package/dist/pine-core/p-8317c6c2.js.map +0 -1
- package/dist/pine-core/p-8469b65a.entry.js +0 -2
- package/dist/pine-core/p-8469b65a.entry.js.map +0 -1
- package/dist/pine-core/p-8d8de5fd.entry.js +0 -2
- package/dist/pine-core/p-8d8de5fd.entry.js.map +0 -1
- package/dist/pine-core/p-8df8debd.entry.js +0 -2
- package/dist/pine-core/p-8df8debd.entry.js.map +0 -1
- package/dist/pine-core/p-8f73bf14.system.entry.js +0 -2
- package/dist/pine-core/p-8f73bf14.system.entry.js.map +0 -1
- package/dist/pine-core/p-8fbec4fe.system.js +0 -2
- package/dist/pine-core/p-8fbec4fe.system.js.map +0 -1
- package/dist/pine-core/p-909b305c.system.entry.js +0 -2
- package/dist/pine-core/p-909b305c.system.entry.js.map +0 -1
- package/dist/pine-core/p-936d96ec.system.entry.js +0 -9
- package/dist/pine-core/p-936d96ec.system.entry.js.map +0 -1
- package/dist/pine-core/p-9583e6d5.entry.js +0 -2
- package/dist/pine-core/p-9583e6d5.entry.js.map +0 -1
- package/dist/pine-core/p-96c750d1.entry.js +0 -2
- package/dist/pine-core/p-96c750d1.entry.js.map +0 -1
- package/dist/pine-core/p-a03e587c.entry.js +0 -2
- package/dist/pine-core/p-a03e587c.entry.js.map +0 -1
- package/dist/pine-core/p-a79a8159.entry.js +0 -2
- package/dist/pine-core/p-a79a8159.entry.js.map +0 -1
- package/dist/pine-core/p-a962fe8e.entry.js +0 -2
- package/dist/pine-core/p-a962fe8e.entry.js.map +0 -1
- package/dist/pine-core/p-ad4238c9.system.entry.js +0 -2
- package/dist/pine-core/p-ad4238c9.system.entry.js.map +0 -1
- package/dist/pine-core/p-af7df3c2.system.entry.js +0 -2
- package/dist/pine-core/p-af7df3c2.system.entry.js.map +0 -1
- package/dist/pine-core/p-b18b20f4.system.js +0 -2
- package/dist/pine-core/p-b18b20f4.system.js.map +0 -1
- package/dist/pine-core/p-b4518566.entry.js +0 -2
- package/dist/pine-core/p-b4518566.entry.js.map +0 -1
- package/dist/pine-core/p-b5c7e02a.entry.js +0 -2
- package/dist/pine-core/p-b5c7e02a.entry.js.map +0 -1
- package/dist/pine-core/p-bc20946b.system.entry.js +0 -2
- package/dist/pine-core/p-bc20946b.system.entry.js.map +0 -1
- package/dist/pine-core/p-c52d0465.system.entry.js +0 -2
- package/dist/pine-core/p-c52d0465.system.entry.js.map +0 -1
- package/dist/pine-core/p-c84cc2f8.system.entry.js +0 -2
- package/dist/pine-core/p-c84cc2f8.system.entry.js.map +0 -1
- package/dist/pine-core/p-ca239d59.system.entry.js +0 -2
- package/dist/pine-core/p-ca239d59.system.entry.js.map +0 -1
- package/dist/pine-core/p-e1255160.js +0 -2
- package/dist/pine-core/p-e1255160.js.map +0 -1
- package/dist/pine-core/p-e4b3115c.entry.js +0 -2
- package/dist/pine-core/p-e4b3115c.entry.js.map +0 -1
- package/dist/pine-core/p-e60fccc0.js +0 -2
- package/dist/pine-core/p-e60fccc0.js.map +0 -1
- package/dist/pine-core/p-eb56f262.system.entry.js +0 -2
- package/dist/pine-core/p-eb56f262.system.entry.js.map +0 -1
- package/dist/pine-core/p-ec484bf6.entry.js +0 -2
- package/dist/pine-core/p-ec484bf6.entry.js.map +0 -1
- package/dist/pine-core/p-f59d4a46.entry.js +0 -2
- package/dist/pine-core/p-f59d4a46.entry.js.map +0 -1
- package/dist/pine-core/p-f74c489d.system.js +0 -3
- package/dist/pine-core/p-f74c489d.system.js.map +0 -1
- package/dist/pine-core/pine-core.esm.js.map +0 -1
- package/dist/pine-core/svg/access-key.svg +0 -1
- package/dist/pine-core/svg/add-circle.svg +0 -1
- package/dist/pine-core/svg/add-image.svg +0 -1
- package/dist/pine-core/svg/add-small.svg +0 -1
- package/dist/pine-core/svg/add-square.svg +0 -1
- package/dist/pine-core/svg/add.svg +0 -1
- package/dist/pine-core/svg/advanced.svg +0 -1
- package/dist/pine-core/svg/ai-sparkle.svg +0 -1
- package/dist/pine-core/svg/ai-writer-filled.svg +0 -1
- package/dist/pine-core/svg/ai-writer.svg +0 -1
- package/dist/pine-core/svg/align-center.svg +0 -1
- package/dist/pine-core/svg/align-justify.svg +0 -1
- package/dist/pine-core/svg/align-left.svg +0 -1
- package/dist/pine-core/svg/align-right.svg +0 -1
- package/dist/pine-core/svg/app-store.svg +0 -1
- package/dist/pine-core/svg/archive.svg +0 -1
- package/dist/pine-core/svg/arrow-corner.svg +0 -1
- package/dist/pine-core/svg/arrow-down.svg +0 -1
- package/dist/pine-core/svg/arrow-left.svg +0 -1
- package/dist/pine-core/svg/arrow-right.svg +0 -1
- package/dist/pine-core/svg/arrow-up.svg +0 -1
- package/dist/pine-core/svg/assessment.svg +0 -1
- package/dist/pine-core/svg/at-sign.svg +0 -1
- package/dist/pine-core/svg/attach.svg +0 -1
- package/dist/pine-core/svg/automations.svg +0 -1
- package/dist/pine-core/svg/ban.svg +0 -1
- package/dist/pine-core/svg/bank.svg +0 -1
- package/dist/pine-core/svg/bar-chart-10-tone.svg +0 -1
- package/dist/pine-core/svg/bell-01-tone.svg +0 -1
- package/dist/pine-core/svg/bell.svg +0 -1
- package/dist/pine-core/svg/block.svg +0 -1
- package/dist/pine-core/svg/blog-filled.svg +0 -1
- package/dist/pine-core/svg/blog.svg +0 -1
- package/dist/pine-core/svg/bold.svg +0 -1
- package/dist/pine-core/svg/broadcast.svg +0 -1
- package/dist/pine-core/svg/bulb.svg +0 -1
- package/dist/pine-core/svg/button.svg +0 -1
- package/dist/pine-core/svg/calendar-date.svg +0 -1
- package/dist/pine-core/svg/calendar-schedule.svg +0 -1
- package/dist/pine-core/svg/calendar-simple.svg +0 -1
- package/dist/pine-core/svg/card-amex.svg +0 -1
- package/dist/pine-core/svg/card-android.svg +0 -1
- package/dist/pine-core/svg/card-apple.svg +0 -1
- package/dist/pine-core/svg/card-diners-club.svg +0 -1
- package/dist/pine-core/svg/card-discover.svg +0 -1
- package/dist/pine-core/svg/card-generic.svg +0 -1
- package/dist/pine-core/svg/card-gpay.svg +0 -1
- package/dist/pine-core/svg/card-mastercard.svg +0 -1
- package/dist/pine-core/svg/card-paypal.svg +0 -1
- package/dist/pine-core/svg/card-stripe.svg +0 -1
- package/dist/pine-core/svg/card-update.svg +0 -1
- package/dist/pine-core/svg/card-visa.svg +0 -1
- package/dist/pine-core/svg/caret-down.svg +0 -1
- package/dist/pine-core/svg/caret-left.svg +0 -1
- package/dist/pine-core/svg/caret-right.svg +0 -1
- package/dist/pine-core/svg/caret-up.svg +0 -1
- package/dist/pine-core/svg/cart-add.svg +0 -1
- package/dist/pine-core/svg/cart.svg +0 -1
- package/dist/pine-core/svg/certificate.svg +0 -1
- package/dist/pine-core/svg/chart-filled.svg +0 -1
- package/dist/pine-core/svg/chart.svg +0 -1
- package/dist/pine-core/svg/check-circle-filled.svg +0 -1
- package/dist/pine-core/svg/check-circle.svg +0 -1
- package/dist/pine-core/svg/check.svg +0 -1
- package/dist/pine-core/svg/circle-1.svg +0 -1
- package/dist/pine-core/svg/circle-2.svg +0 -1
- package/dist/pine-core/svg/circle-3.svg +0 -1
- package/dist/pine-core/svg/circle-4.svg +0 -1
- package/dist/pine-core/svg/circle-5.svg +0 -1
- package/dist/pine-core/svg/circle-6.svg +0 -1
- package/dist/pine-core/svg/circle-7.svg +0 -1
- package/dist/pine-core/svg/circle-8.svg +0 -1
- package/dist/pine-core/svg/circle-9.svg +0 -1
- package/dist/pine-core/svg/circle-a.svg +0 -1
- package/dist/pine-core/svg/circle-b.svg +0 -1
- package/dist/pine-core/svg/circle-dashed.svg +0 -1
- package/dist/pine-core/svg/clapperboard-tone.svg +0 -1
- package/dist/pine-core/svg/clock.svg +0 -1
- package/dist/pine-core/svg/closed-captions.svg +0 -1
- package/dist/pine-core/svg/cloud-upload.svg +0 -1
- package/dist/pine-core/svg/code-block.svg +0 -1
- package/dist/pine-core/svg/code.svg +0 -1
- package/dist/pine-core/svg/color.svg +0 -1
- package/dist/pine-core/svg/columns.svg +0 -1
- package/dist/pine-core/svg/comment-no.svg +0 -1
- package/dist/pine-core/svg/comment.svg +0 -1
- package/dist/pine-core/svg/connect.svg +0 -1
- package/dist/pine-core/svg/contact.svg +0 -1
- package/dist/pine-core/svg/conversation.svg +0 -1
- package/dist/pine-core/svg/copy.svg +0 -1
- package/dist/pine-core/svg/coupon.svg +0 -1
- package/dist/pine-core/svg/course-filled.svg +0 -1
- package/dist/pine-core/svg/course.svg +0 -1
- package/dist/pine-core/svg/creator-studio-filled.svg +0 -1
- package/dist/pine-core/svg/creator-studio.svg +0 -1
- package/dist/pine-core/svg/credit-card-02-tone.svg +0 -1
- package/dist/pine-core/svg/cube-01-tone.svg +0 -1
- package/dist/pine-core/svg/cursor-pointer.svg +0 -1
- package/dist/pine-core/svg/cursor.svg +0 -1
- package/dist/pine-core/svg/custom-field.svg +0 -1
- package/dist/pine-core/svg/customize.svg +0 -1
- package/dist/pine-core/svg/danger-filled.svg +0 -1
- package/dist/pine-core/svg/danger.svg +0 -1
- package/dist/pine-core/svg/delete-circle.svg +0 -1
- package/dist/pine-core/svg/delete-key.svg +0 -1
- package/dist/pine-core/svg/delete-x.svg +0 -1
- package/dist/pine-core/svg/dollar.svg +0 -1
- package/dist/pine-core/svg/dot-menu-horizontal.svg +0 -1
- package/dist/pine-core/svg/dots-horizontal-tone.svg +0 -1
- package/dist/pine-core/svg/down-small.svg +0 -1
- package/dist/pine-core/svg/download.svg +0 -1
- package/dist/pine-core/svg/downsell.svg +0 -1
- package/dist/pine-core/svg/draft.svg +0 -1
- package/dist/pine-core/svg/drawer-collapse.svg +0 -1
- package/dist/pine-core/svg/drawer-expand.svg +0 -1
- package/dist/pine-core/svg/drop.svg +0 -1
- package/dist/pine-core/svg/duplicate.svg +0 -1
- package/dist/pine-core/svg/editor-filled.svg +0 -1
- package/dist/pine-core/svg/editor.svg +0 -1
- package/dist/pine-core/svg/email-activity.svg +0 -1
- package/dist/pine-core/svg/emoji.svg +0 -1
- package/dist/pine-core/svg/enlarge-vertical.svg +0 -1
- package/dist/pine-core/svg/enlarge.svg +0 -1
- package/dist/pine-core/svg/expand.svg +0 -1
- package/dist/pine-core/svg/favorite.svg +0 -1
- package/dist/pine-core/svg/feedback.svg +0 -1
- package/dist/pine-core/svg/file-02.svg +0 -1
- package/dist/pine-core/svg/file-money.svg +0 -1
- package/dist/pine-core/svg/file.svg +0 -1
- package/dist/pine-core/svg/filter.svg +0 -1
- package/dist/pine-core/svg/flag.svg +0 -1
- package/dist/pine-core/svg/flash-filled.svg +0 -1
- package/dist/pine-core/svg/flash.svg +0 -1
- package/dist/pine-core/svg/floppy-disk.svg +0 -1
- package/dist/pine-core/svg/folder-group.svg +0 -1
- package/dist/pine-core/svg/folder.svg +0 -1
- package/dist/pine-core/svg/form-field.svg +0 -1
- package/dist/pine-core/svg/form-filled.svg +0 -1
- package/dist/pine-core/svg/form.svg +0 -1
- package/dist/pine-core/svg/fullscreen.svg +0 -1
- package/dist/pine-core/svg/funnel.svg +0 -1
- package/dist/pine-core/svg/gear-filled.svg +0 -1
- package/dist/pine-core/svg/gear.svg +0 -1
- package/dist/pine-core/svg/grant-offer.svg +0 -1
- package/dist/pine-core/svg/handle-2-vertical.svg +0 -1
- package/dist/pine-core/svg/handle-2.svg +0 -1
- package/dist/pine-core/svg/handle.svg +0 -1
- package/dist/pine-core/svg/hashtag.svg +0 -1
- package/dist/pine-core/svg/hd-video.svg +0 -1
- package/dist/pine-core/svg/heading-1.svg +0 -1
- package/dist/pine-core/svg/heading-2.svg +0 -1
- package/dist/pine-core/svg/heading-3.svg +0 -1
- package/dist/pine-core/svg/heading-4.svg +0 -1
- package/dist/pine-core/svg/heading-5.svg +0 -1
- package/dist/pine-core/svg/heading-6.svg +0 -1
- package/dist/pine-core/svg/heading-large.svg +0 -1
- package/dist/pine-core/svg/heading-small.svg +0 -1
- package/dist/pine-core/svg/headset-tone.svg +0 -1
- package/dist/pine-core/svg/headset.svg +0 -1
- package/dist/pine-core/svg/help-filled.svg +0 -1
- package/dist/pine-core/svg/help.svg +0 -1
- package/dist/pine-core/svg/home-02-tone.svg +0 -1
- package/dist/pine-core/svg/home-alt.svg +0 -1
- package/dist/pine-core/svg/home-filled.svg +0 -1
- package/dist/pine-core/svg/home.svg +0 -1
- package/dist/pine-core/svg/horizontal-line.svg +0 -1
- package/dist/pine-core/svg/image.svg +0 -1
- package/dist/pine-core/svg/info-circle-filled.svg +0 -1
- package/dist/pine-core/svg/info-circle.svg +0 -1
- package/dist/pine-core/svg/ios-battery.svg +0 -1
- package/dist/pine-core/svg/ios-data.svg +0 -1
- package/dist/pine-core/svg/ios-wifi.svg +0 -1
- package/dist/pine-core/svg/italic.svg +0 -1
- package/dist/pine-core/svg/kajabi-filled.svg +0 -1
- package/dist/pine-core/svg/kajabi.svg +0 -1
- package/dist/pine-core/svg/klarna.svg +0 -1
- package/dist/pine-core/svg/lab.svg +0 -1
- package/dist/pine-core/svg/launch.svg +0 -1
- package/dist/pine-core/svg/layout-grid.svg +0 -1
- package/dist/pine-core/svg/layout-list.svg +0 -1
- package/dist/pine-core/svg/left-small.svg +0 -1
- package/dist/pine-core/svg/list-bullet.svg +0 -1
- package/dist/pine-core/svg/list-details.svg +0 -1
- package/dist/pine-core/svg/list-numbers.svg +0 -1
- package/dist/pine-core/svg/location.svg +0 -1
- package/dist/pine-core/svg/lock-alt.svg +0 -1
- package/dist/pine-core/svg/lock.svg +0 -1
- package/dist/pine-core/svg/logo-afterpay.svg +0 -1
- package/dist/pine-core/svg/logo-facebook-round.svg +0 -1
- package/dist/pine-core/svg/logo-facebook.svg +0 -1
- package/dist/pine-core/svg/logo-instagram.svg +0 -1
- package/dist/pine-core/svg/logo-linkedin.svg +0 -1
- package/dist/pine-core/svg/logo-tiktok.svg +0 -1
- package/dist/pine-core/svg/logo-twitter-x.svg +0 -1
- package/dist/pine-core/svg/logo-twitter.svg +0 -1
- package/dist/pine-core/svg/logo-youtube.svg +0 -1
- package/dist/pine-core/svg/loop.svg +0 -1
- package/dist/pine-core/svg/mail-01-tone.svg +0 -1
- package/dist/pine-core/svg/mail-filled.svg +0 -1
- package/dist/pine-core/svg/mail-open.svg +0 -1
- package/dist/pine-core/svg/mail.svg +0 -1
- package/dist/pine-core/svg/map.svg +0 -1
- package/dist/pine-core/svg/mapped.svg +0 -1
- package/dist/pine-core/svg/margin-left.svg +0 -1
- package/dist/pine-core/svg/margin-right.svg +0 -1
- package/dist/pine-core/svg/marker-filled.svg +0 -1
- package/dist/pine-core/svg/marker.svg +0 -1
- package/dist/pine-core/svg/megaphone-filled.svg +0 -1
- package/dist/pine-core/svg/megaphone.svg +0 -1
- package/dist/pine-core/svg/menu-alt.svg +0 -1
- package/dist/pine-core/svg/menu-bordered.svg +0 -1
- package/dist/pine-core/svg/menu.svg +0 -1
- package/dist/pine-core/svg/merge.svg +0 -1
- package/dist/pine-core/svg/microphone-off.svg +0 -1
- package/dist/pine-core/svg/microphone.svg +0 -1
- package/dist/pine-core/svg/monitor-03-tone.svg +0 -1
- package/dist/pine-core/svg/monitor-filled.svg +0 -1
- package/dist/pine-core/svg/monitor.svg +0 -1
- package/dist/pine-core/svg/more-menu-filled.svg +0 -1
- package/dist/pine-core/svg/more-menu.svg +0 -1
- package/dist/pine-core/svg/move-left.svg +0 -1
- package/dist/pine-core/svg/move-right.svg +0 -1
- package/dist/pine-core/svg/multi-pay.svg +0 -1
- package/dist/pine-core/svg/newsletter-2.svg +0 -1
- package/dist/pine-core/svg/newsletter.svg +0 -1
- package/dist/pine-core/svg/one-off-session.svg +0 -1
- package/dist/pine-core/svg/one-time.svg +0 -1
- package/dist/pine-core/svg/packages.svg +0 -1
- package/dist/pine-core/svg/pause-circle.svg +0 -1
- package/dist/pine-core/svg/pause.svg +0 -1
- package/dist/pine-core/svg/payout.svg +0 -1
- package/dist/pine-core/svg/pen.svg +0 -1
- package/dist/pine-core/svg/phone-02-tone.svg +0 -1
- package/dist/pine-core/svg/phone-portrait.svg +0 -1
- package/dist/pine-core/svg/phone-toolbar-filled.svg +0 -1
- package/dist/pine-core/svg/phone-toolbar.svg +0 -1
- package/dist/pine-core/svg/play-circle.svg +0 -1
- package/dist/pine-core/svg/play-outline.svg +0 -1
- package/dist/pine-core/svg/play-store.svg +0 -1
- package/dist/pine-core/svg/play.svg +0 -1
- package/dist/pine-core/svg/plug.svg +0 -1
- package/dist/pine-core/svg/premium.svg +0 -1
- package/dist/pine-core/svg/present.svg +0 -1
- package/dist/pine-core/svg/preview-off.svg +0 -1
- package/dist/pine-core/svg/preview-on.svg +0 -1
- package/dist/pine-core/svg/product-filled.svg +0 -1
- package/dist/pine-core/svg/product.svg +0 -1
- package/dist/pine-core/svg/question-circle.svg +0 -1
- package/dist/pine-core/svg/quote.svg +0 -1
- package/dist/pine-core/svg/redo.svg +0 -1
- package/dist/pine-core/svg/refresh.svg +0 -1
- package/dist/pine-core/svg/remove-circle.svg +0 -1
- package/dist/pine-core/svg/remove.svg +0 -1
- package/dist/pine-core/svg/rename.svg +0 -1
- package/dist/pine-core/svg/reset-password.svg +0 -1
- package/dist/pine-core/svg/restore.svg +0 -1
- package/dist/pine-core/svg/right-small.svg +0 -1
- package/dist/pine-core/svg/rocket-filled.svg +0 -1
- package/dist/pine-core/svg/rocket.svg +0 -1
- package/dist/pine-core/svg/round-dollar.svg +0 -1
- package/dist/pine-core/svg/rows.svg +0 -1
- package/dist/pine-core/svg/scissor.svg +0 -1
- package/dist/pine-core/svg/screen-share-off.svg +0 -1
- package/dist/pine-core/svg/screen-share-on.svg +0 -1
- package/dist/pine-core/svg/search-md-tone.svg +0 -1
- package/dist/pine-core/svg/search-small.svg +0 -1
- package/dist/pine-core/svg/search.svg +0 -1
- package/dist/pine-core/svg/send-message.svg +0 -1
- package/dist/pine-core/svg/sequences.svg +0 -1
- package/dist/pine-core/svg/settings-01-tone.svg +0 -1
- package/dist/pine-core/svg/share.svg +0 -1
- package/dist/pine-core/svg/skipped.svg +0 -1
- package/dist/pine-core/svg/slash-divider.svg +0 -1
- package/dist/pine-core/svg/speaker.svg +0 -1
- package/dist/pine-core/svg/stack.svg +0 -1
- package/dist/pine-core/svg/star.svg +0 -1
- package/dist/pine-core/svg/stars-01-tone.svg +0 -1
- package/dist/pine-core/svg/stop.svg +0 -1
- package/dist/pine-core/svg/stopwatch.svg +0 -1
- package/dist/pine-core/svg/strikethrough.svg +0 -1
- package/dist/pine-core/svg/subscript.svg +0 -1
- package/dist/pine-core/svg/subscriptions.svg +0 -1
- package/dist/pine-core/svg/super-admin.svg +0 -1
- package/dist/pine-core/svg/superscript.svg +0 -1
- package/dist/pine-core/svg/sync.svg +0 -1
- package/dist/pine-core/svg/tablet-landscape.svg +0 -1
- package/dist/pine-core/svg/tablet-portrait.svg +0 -1
- package/dist/pine-core/svg/tag-filled.svg +0 -1
- package/dist/pine-core/svg/tag.svg +0 -1
- package/dist/pine-core/svg/text-styles.svg +0 -1
- package/dist/pine-core/svg/theme-store-filled.svg +0 -1
- package/dist/pine-core/svg/theme-store.svg +0 -1
- package/dist/pine-core/svg/thumb-down-filled.svg +0 -1
- package/dist/pine-core/svg/thumb-down.svg +0 -1
- package/dist/pine-core/svg/thumb-up-filled.svg +0 -1
- package/dist/pine-core/svg/thumb-up.svg +0 -1
- package/dist/pine-core/svg/trash.svg +0 -1
- package/dist/pine-core/svg/trophy-filled.svg +0 -1
- package/dist/pine-core/svg/trophy.svg +0 -1
- package/dist/pine-core/svg/underline.svg +0 -1
- package/dist/pine-core/svg/undo.svg +0 -1
- package/dist/pine-core/svg/unlock.svg +0 -1
- package/dist/pine-core/svg/unmapped.svg +0 -1
- package/dist/pine-core/svg/up-small.svg +0 -1
- package/dist/pine-core/svg/upload.svg +0 -1
- package/dist/pine-core/svg/url.svg +0 -1
- package/dist/pine-core/svg/user-circle-filled.svg +0 -1
- package/dist/pine-core/svg/user-circle.svg +0 -1
- package/dist/pine-core/svg/user-filled.svg +0 -1
- package/dist/pine-core/svg/user-star-filled.svg +0 -1
- package/dist/pine-core/svg/user-star.svg +0 -1
- package/dist/pine-core/svg/user.svg +0 -1
- package/dist/pine-core/svg/users-02-tone.svg +0 -1
- package/dist/pine-core/svg/users-alt.svg +0 -1
- package/dist/pine-core/svg/users-filled.svg +0 -1
- package/dist/pine-core/svg/users.svg +0 -1
- package/dist/pine-core/svg/video-off.svg +0 -1
- package/dist/pine-core/svg/video-on.svg +0 -1
- package/dist/pine-core/svg/warning-filled.svg +0 -1
- package/dist/pine-core/svg/warning.svg +0 -1
- package/dist/pine-core/svg/window-paragraph.svg +0 -1
- package/dist/pine-core/svg/world.svg +0 -1
- package/dist/pine-core/svg/wrench.svg +0 -1
- package/dist/types/stories/_helpers/index.d.ts +0 -12
- package/loader/package.json +0 -11
|
@@ -0,0 +1,802 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @slot trigger - The trigger element for the popover
|
|
4
|
+
* @slot (default) - The content to display inside the popover
|
|
5
|
+
*/
|
|
6
|
+
export class PdsPopover {
|
|
7
|
+
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* Determines when the popover is active
|
|
10
|
+
* @defaultValue false
|
|
11
|
+
*/
|
|
12
|
+
this.active = false;
|
|
13
|
+
/**
|
|
14
|
+
* Tracks if the component is still mounted to prevent memory leaks
|
|
15
|
+
*/
|
|
16
|
+
this.isComponentMounted = true;
|
|
17
|
+
/**
|
|
18
|
+
* Reference to the trigger element
|
|
19
|
+
*/
|
|
20
|
+
this.triggerEl = null;
|
|
21
|
+
/**
|
|
22
|
+
* Portal element rendered in document.body
|
|
23
|
+
*/
|
|
24
|
+
this.portalEl = null;
|
|
25
|
+
/**
|
|
26
|
+
* Guard to prevent repositioning loops
|
|
27
|
+
*/
|
|
28
|
+
this.isRepositioning = false;
|
|
29
|
+
/**
|
|
30
|
+
* Debounce timers for performance optimization
|
|
31
|
+
*/
|
|
32
|
+
this.scrollDebounceTimer = null;
|
|
33
|
+
this.resizeDebounceTimer = null;
|
|
34
|
+
/**
|
|
35
|
+
* Track moved nodes and their placeholders for restoration
|
|
36
|
+
*/
|
|
37
|
+
this.movedNodes = [];
|
|
38
|
+
/**
|
|
39
|
+
* Timestamp when popover was opened (for preventing immediate close)
|
|
40
|
+
*/
|
|
41
|
+
this.openTimestamp = 0;
|
|
42
|
+
/**
|
|
43
|
+
* Determines the action that triggers the popover. For manual popovers, the consumer is responsible for toggling this value.
|
|
44
|
+
* @defaultValue "show"
|
|
45
|
+
*/
|
|
46
|
+
this.popoverTargetAction = 'show';
|
|
47
|
+
/**
|
|
48
|
+
* Determines the type of popover. Auto popovers can be "light dismissed" by clicking outside of the popover.
|
|
49
|
+
* Manual popovers require the consumer to handle the visibility of the popover.
|
|
50
|
+
*/
|
|
51
|
+
this.popoverType = 'auto';
|
|
52
|
+
/**
|
|
53
|
+
* Sets the maximum width of the popover content
|
|
54
|
+
* @defaultValue 352
|
|
55
|
+
*/
|
|
56
|
+
this.maxWidth = 352;
|
|
57
|
+
/**
|
|
58
|
+
* Determines the preferred position of the popover
|
|
59
|
+
* @defaultValue "right"
|
|
60
|
+
*/
|
|
61
|
+
this.placement = 'right';
|
|
62
|
+
/**
|
|
63
|
+
* Handles changes to the trigger slot
|
|
64
|
+
*/
|
|
65
|
+
this.handleTriggerSlotChange = (event) => {
|
|
66
|
+
const slot = event.target;
|
|
67
|
+
const assignedElements = slot.assignedElements();
|
|
68
|
+
// Clean up previous trigger's event listener if it exists
|
|
69
|
+
if (this.triggerEl != null) {
|
|
70
|
+
this.triggerEl.removeEventListener('click', this.handleTriggerClick);
|
|
71
|
+
}
|
|
72
|
+
if (assignedElements.length > 0) {
|
|
73
|
+
// Use the first assigned element as the trigger
|
|
74
|
+
this.triggerEl = assignedElements[0];
|
|
75
|
+
// Set ARIA attributes to establish relationship between trigger and popover
|
|
76
|
+
// This mirrors the native Popover API's accessibility behavior
|
|
77
|
+
if (this.portalEl) {
|
|
78
|
+
this.triggerEl.setAttribute('aria-expanded', String(this.active));
|
|
79
|
+
this.triggerEl.setAttribute('aria-controls', this.portalEl.id);
|
|
80
|
+
}
|
|
81
|
+
// Attach click listener to handle popover visibility
|
|
82
|
+
this.triggerEl.addEventListener('click', this.handleTriggerClick);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
this.triggerEl = null;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Handles changes to the default slot (popover content)
|
|
90
|
+
* When the popover is active, re-sync content with portal to handle dynamic updates
|
|
91
|
+
*/
|
|
92
|
+
this.handleContentSlotChange = () => {
|
|
93
|
+
if (!this.active)
|
|
94
|
+
return;
|
|
95
|
+
this.updatePortalContent();
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Handles clicks on the trigger element
|
|
99
|
+
*/
|
|
100
|
+
this.handleTriggerClick = (event) => {
|
|
101
|
+
// Only prevent default if the trigger is not an anchor with href
|
|
102
|
+
// This allows link navigation while still controlling popover visibility
|
|
103
|
+
const composedPath = event.composedPath();
|
|
104
|
+
const anchorWithHref = composedPath.find((el) => el instanceof HTMLAnchorElement && el.href);
|
|
105
|
+
if (!anchorWithHref) {
|
|
106
|
+
event.preventDefault();
|
|
107
|
+
}
|
|
108
|
+
// Execute the appropriate action based on popoverTargetAction prop
|
|
109
|
+
switch (this.popoverTargetAction) {
|
|
110
|
+
case 'show':
|
|
111
|
+
this.show();
|
|
112
|
+
break;
|
|
113
|
+
case 'hide':
|
|
114
|
+
this.hide();
|
|
115
|
+
break;
|
|
116
|
+
case 'toggle':
|
|
117
|
+
default:
|
|
118
|
+
this.toggle();
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
componentDidLoad() {
|
|
124
|
+
var _a;
|
|
125
|
+
// Bind event handlers for cleanup
|
|
126
|
+
this.boundClickOutsideHandler = this.handleClickOutside.bind(this);
|
|
127
|
+
this.boundEscapeKeyHandler = this.handleEscapeKey.bind(this);
|
|
128
|
+
this.boundScrollHandler = this.handleScroll.bind(this);
|
|
129
|
+
this.boundResizeHandler = this.handleResize.bind(this);
|
|
130
|
+
// Create portal element
|
|
131
|
+
this.createPortal();
|
|
132
|
+
// Initialize trigger element by calling slot change handler
|
|
133
|
+
// This is a fallback for environments where slot change might not fire reliably
|
|
134
|
+
const triggerSlot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot[name="trigger"]');
|
|
135
|
+
if (triggerSlot && this.triggerEl == null) {
|
|
136
|
+
const CustomEvent = (typeof window !== 'undefined' ? window.Event : global.Event);
|
|
137
|
+
const slotChangeEvent = new CustomEvent('slotchange');
|
|
138
|
+
Object.defineProperty(slotChangeEvent, 'target', { value: triggerSlot, enumerable: true });
|
|
139
|
+
this.handleTriggerSlotChange(slotChangeEvent);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
disconnectedCallback() {
|
|
143
|
+
this.isComponentMounted = false;
|
|
144
|
+
// Clean up trigger click event listener
|
|
145
|
+
if (this.triggerEl != null) {
|
|
146
|
+
this.triggerEl.removeEventListener('click', this.handleTriggerClick);
|
|
147
|
+
}
|
|
148
|
+
// Clean up all event listeners
|
|
149
|
+
this.removeLightDismissListeners();
|
|
150
|
+
this.removeScrollAndResizeListeners();
|
|
151
|
+
// Clear any pending debounce timers
|
|
152
|
+
this.clearDebounceTimers();
|
|
153
|
+
// Remove portal from DOM
|
|
154
|
+
this.removePortal();
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Clears any pending debounce timers
|
|
158
|
+
*/
|
|
159
|
+
clearDebounceTimers() {
|
|
160
|
+
if (this.scrollDebounceTimer !== null) {
|
|
161
|
+
clearTimeout(this.scrollDebounceTimer);
|
|
162
|
+
this.scrollDebounceTimer = null;
|
|
163
|
+
}
|
|
164
|
+
if (this.resizeDebounceTimer !== null) {
|
|
165
|
+
clearTimeout(this.resizeDebounceTimer);
|
|
166
|
+
this.resizeDebounceTimer = null;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
createPortal() {
|
|
170
|
+
if (this.portalEl !== null)
|
|
171
|
+
return;
|
|
172
|
+
this.portalEl = document.createElement('div');
|
|
173
|
+
this.portalEl.className = 'pds-popover';
|
|
174
|
+
// Apply all styles inline since portal is outside shadow DOM
|
|
175
|
+
this.portalEl.style.position = 'fixed';
|
|
176
|
+
this.portalEl.style.zIndex = 'var(--pine-z-index-raised)';
|
|
177
|
+
this.portalEl.style.maxWidth = `${this.maxWidth}px`;
|
|
178
|
+
this.portalEl.style.display = 'none';
|
|
179
|
+
this.portalEl.style.opacity = '0';
|
|
180
|
+
this.portalEl.style.visibility = 'hidden';
|
|
181
|
+
this.portalEl.style.backgroundColor = 'var(--pine-color-background-overlay)';
|
|
182
|
+
this.portalEl.style.borderRadius = 'var(--pine-dimension-125)';
|
|
183
|
+
this.portalEl.style.boxShadow = 'var(--pine-box-shadow-200)';
|
|
184
|
+
this.portalEl.style.margin = 'var(--pine-dimension-none)';
|
|
185
|
+
this.portalEl.style.padding = 'var(--pine-dimension-md)';
|
|
186
|
+
// Generate unique ID
|
|
187
|
+
if (!this.componentId) {
|
|
188
|
+
const suffix = PdsPopover.instanceCounter++;
|
|
189
|
+
this.portalEl.id = `pds-popover-portal-${suffix}`;
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
this.portalEl.id = `${this.componentId}-portal`;
|
|
193
|
+
}
|
|
194
|
+
// Add accessibility attributes for screen readers
|
|
195
|
+
// Note: Native Popover API doesn't add a specific role, keeping semantic HTML
|
|
196
|
+
this.portalEl.setAttribute('aria-modal', 'false'); // Not a modal, can interact with rest of page
|
|
197
|
+
// Append to body
|
|
198
|
+
document.body.appendChild(this.portalEl);
|
|
199
|
+
// Add global focus styles to match Pine design system
|
|
200
|
+
// This is done after appending to ensure it's part of the document and can access CSS variables
|
|
201
|
+
this.addPortalFocusStyles();
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Adds Pine design system focus styles and dark mode border to the portal element
|
|
205
|
+
* Uses CSS variables from Pine's design tokens
|
|
206
|
+
*/
|
|
207
|
+
addPortalFocusStyles() {
|
|
208
|
+
if (!this.portalEl)
|
|
209
|
+
return;
|
|
210
|
+
const portalId = this.portalEl.id;
|
|
211
|
+
// Check if style element already exists
|
|
212
|
+
const existingStyle = document.querySelector(`style[data-pds-popover-focus="${portalId}"]`);
|
|
213
|
+
if (existingStyle)
|
|
214
|
+
return;
|
|
215
|
+
// Create style element with Pine's focus ring styles and dark mode border
|
|
216
|
+
const styleEl = document.createElement('style');
|
|
217
|
+
styleEl.setAttribute('data-pds-popover-focus', portalId);
|
|
218
|
+
styleEl.textContent = `
|
|
219
|
+
#${portalId}:focus {
|
|
220
|
+
outline: var(--pine-outline-focus, 2px solid var(--pine-color-focus-ring, #6366f1)) !important;
|
|
221
|
+
outline-offset: var(--pine-border-width, 1px);
|
|
222
|
+
}
|
|
223
|
+
#${portalId}:focus:not(:focus-visible) {
|
|
224
|
+
outline: none;
|
|
225
|
+
}
|
|
226
|
+
[data-theme="dark"] #${portalId} {
|
|
227
|
+
border: var(--pine-border);
|
|
228
|
+
}
|
|
229
|
+
`;
|
|
230
|
+
document.head.appendChild(styleEl);
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Moves slot content into portal (preserves event handlers and component instances)
|
|
234
|
+
*/
|
|
235
|
+
updatePortalContent() {
|
|
236
|
+
var _a;
|
|
237
|
+
if (!this.portalEl)
|
|
238
|
+
return;
|
|
239
|
+
const contentSlotWrapper = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.pds-popover__content-slot-wrapper');
|
|
240
|
+
const defaultSlot = contentSlotWrapper === null || contentSlotWrapper === void 0 ? void 0 : contentSlotWrapper.querySelector('slot');
|
|
241
|
+
if (defaultSlot) {
|
|
242
|
+
const assignedNodes = defaultSlot.assignedNodes();
|
|
243
|
+
// Move each node into portal and track with placeholder for restoration
|
|
244
|
+
assignedNodes.forEach(node => {
|
|
245
|
+
var _a;
|
|
246
|
+
// Skip if node is already in the portal or already tracked
|
|
247
|
+
const isAlreadyInPortal = node.parentNode === this.portalEl;
|
|
248
|
+
const isAlreadyTracked = this.movedNodes.some(moved => moved.node === node);
|
|
249
|
+
if (isAlreadyInPortal || isAlreadyTracked) {
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
// Create a placeholder comment to mark original position
|
|
253
|
+
const placeholder = document.createComment('pds-popover-placeholder');
|
|
254
|
+
// Insert placeholder before moving the node
|
|
255
|
+
(_a = node.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(placeholder, node);
|
|
256
|
+
// Move the actual node to portal (preserves all handlers and state)
|
|
257
|
+
this.portalEl.appendChild(node);
|
|
258
|
+
// Track for restoration
|
|
259
|
+
this.movedNodes.push({ node, placeholder });
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Restores moved nodes back to their original positions
|
|
265
|
+
*/
|
|
266
|
+
restorePortalContent() {
|
|
267
|
+
// Restore each moved node to its original position
|
|
268
|
+
this.movedNodes.forEach(({ node, placeholder }) => {
|
|
269
|
+
if (placeholder.parentNode) {
|
|
270
|
+
placeholder.parentNode.insertBefore(node, placeholder);
|
|
271
|
+
placeholder.parentNode.removeChild(placeholder);
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
// Clear tracking array
|
|
275
|
+
this.movedNodes = [];
|
|
276
|
+
}
|
|
277
|
+
removePortal() {
|
|
278
|
+
if (this.portalEl) {
|
|
279
|
+
// Remove the portal element from DOM
|
|
280
|
+
if (this.portalEl.parentNode) {
|
|
281
|
+
this.portalEl.parentNode.removeChild(this.portalEl);
|
|
282
|
+
}
|
|
283
|
+
// Remove the associated focus style element
|
|
284
|
+
const portalId = this.portalEl.id;
|
|
285
|
+
const styleEl = document.querySelector(`style[data-pds-popover-focus="${portalId}"]`);
|
|
286
|
+
if (styleEl && styleEl.parentNode) {
|
|
287
|
+
styleEl.parentNode.removeChild(styleEl);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
this.portalEl = null;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Opens the popover programmatically
|
|
294
|
+
*/
|
|
295
|
+
async show() {
|
|
296
|
+
if (this.active || !this.portalEl)
|
|
297
|
+
return;
|
|
298
|
+
this.active = true;
|
|
299
|
+
// Record open timestamp to prevent immediate close from opening click
|
|
300
|
+
this.openTimestamp = Date.now();
|
|
301
|
+
// Update ARIA expanded state on trigger
|
|
302
|
+
if (this.triggerEl) {
|
|
303
|
+
this.triggerEl.setAttribute('aria-expanded', 'true');
|
|
304
|
+
}
|
|
305
|
+
// Update portal content with latest slot content
|
|
306
|
+
this.updatePortalContent();
|
|
307
|
+
// Show portal
|
|
308
|
+
this.portalEl.style.display = 'block';
|
|
309
|
+
this.portalEl.style.opacity = '1';
|
|
310
|
+
this.portalEl.style.visibility = 'visible';
|
|
311
|
+
// Position the popover
|
|
312
|
+
requestAnimationFrame(() => {
|
|
313
|
+
if (!this.isComponentMounted)
|
|
314
|
+
return;
|
|
315
|
+
this.handlePopoverPositioning();
|
|
316
|
+
});
|
|
317
|
+
// Add scroll and resize listeners for repositioning (always)
|
|
318
|
+
this.addScrollAndResizeListeners();
|
|
319
|
+
// Add document listeners for light dismiss and escape key (auto type only)
|
|
320
|
+
if (this.popoverType === 'auto') {
|
|
321
|
+
this.addLightDismissListeners();
|
|
322
|
+
}
|
|
323
|
+
// Emit open event
|
|
324
|
+
this.pdsPopoverOpen.emit({
|
|
325
|
+
componentId: this.componentId,
|
|
326
|
+
popoverType: this.popoverType,
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Closes the popover programmatically
|
|
331
|
+
*/
|
|
332
|
+
async hide() {
|
|
333
|
+
if (!this.active || !this.portalEl)
|
|
334
|
+
return;
|
|
335
|
+
this.active = false;
|
|
336
|
+
// Update ARIA expanded state on trigger
|
|
337
|
+
if (this.triggerEl) {
|
|
338
|
+
this.triggerEl.setAttribute('aria-expanded', 'false');
|
|
339
|
+
}
|
|
340
|
+
// Restore content back to original slot positions
|
|
341
|
+
this.restorePortalContent();
|
|
342
|
+
// Hide portal
|
|
343
|
+
this.portalEl.style.display = 'none';
|
|
344
|
+
this.portalEl.style.opacity = '0';
|
|
345
|
+
this.portalEl.style.visibility = 'hidden';
|
|
346
|
+
// Return focus to trigger for keyboard accessibility
|
|
347
|
+
// This mirrors native Popover API behavior on close
|
|
348
|
+
this.returnFocusToTrigger();
|
|
349
|
+
// Remove all listeners
|
|
350
|
+
this.removeLightDismissListeners();
|
|
351
|
+
this.removeScrollAndResizeListeners();
|
|
352
|
+
// Clear any pending timers
|
|
353
|
+
this.clearDebounceTimers();
|
|
354
|
+
// Emit close event
|
|
355
|
+
this.pdsPopoverClose.emit({
|
|
356
|
+
componentId: this.componentId,
|
|
357
|
+
popoverType: this.popoverType,
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Toggles the popover open/closed state programmatically
|
|
362
|
+
*/
|
|
363
|
+
async toggle() {
|
|
364
|
+
if (this.active) {
|
|
365
|
+
this.hide();
|
|
366
|
+
}
|
|
367
|
+
else {
|
|
368
|
+
this.show();
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Adds light dismiss listeners (click outside and escape key)
|
|
373
|
+
*/
|
|
374
|
+
addLightDismissListeners() {
|
|
375
|
+
// Add listeners immediately - handleClickOutside will check timestamp
|
|
376
|
+
document.addEventListener('click', this.boundClickOutsideHandler, true);
|
|
377
|
+
document.addEventListener('keydown', this.boundEscapeKeyHandler);
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Removes light dismiss listeners
|
|
381
|
+
*/
|
|
382
|
+
removeLightDismissListeners() {
|
|
383
|
+
document.removeEventListener('click', this.boundClickOutsideHandler, true);
|
|
384
|
+
document.removeEventListener('keydown', this.boundEscapeKeyHandler);
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Adds scroll and resize listeners for repositioning
|
|
388
|
+
*/
|
|
389
|
+
addScrollAndResizeListeners() {
|
|
390
|
+
window.addEventListener('scroll', this.boundScrollHandler, true);
|
|
391
|
+
window.addEventListener('resize', this.boundResizeHandler);
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Removes scroll and resize listeners
|
|
395
|
+
*/
|
|
396
|
+
removeScrollAndResizeListeners() {
|
|
397
|
+
window.removeEventListener('scroll', this.boundScrollHandler, true);
|
|
398
|
+
window.removeEventListener('resize', this.boundResizeHandler);
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Handles clicks outside the popover for light dismiss (auto type only)
|
|
402
|
+
*/
|
|
403
|
+
handleClickOutside(event) {
|
|
404
|
+
var _a, _b;
|
|
405
|
+
// Ignore events that occurred at or before the popover opened
|
|
406
|
+
// This prevents the opening click from immediately closing the popover
|
|
407
|
+
// Convert event.timeStamp (DOMHighResTimeStamp from performance.now()) to epoch time
|
|
408
|
+
// by calculating: currentEpochTime - (currentPerfTime - eventPerfTime)
|
|
409
|
+
const eventTime = event.timeStamp
|
|
410
|
+
? Date.now() - (performance.now() - event.timeStamp)
|
|
411
|
+
: Date.now();
|
|
412
|
+
if (eventTime <= this.openTimestamp) {
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
const target = event.target;
|
|
416
|
+
// Check if click is outside both the popover portal and the trigger
|
|
417
|
+
const clickedInsidePopover = (_a = this.portalEl) === null || _a === void 0 ? void 0 : _a.contains(target);
|
|
418
|
+
const clickedInsideTrigger = (_b = this.triggerEl) === null || _b === void 0 ? void 0 : _b.contains(target);
|
|
419
|
+
if (!clickedInsidePopover && !clickedInsideTrigger) {
|
|
420
|
+
this.hide();
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Returns focus to the trigger element with visible focus indicator
|
|
425
|
+
* This ensures focus rings/outlines are shown as they would be with keyboard navigation
|
|
426
|
+
*/
|
|
427
|
+
returnFocusToTrigger() {
|
|
428
|
+
if (!this.triggerEl)
|
|
429
|
+
return;
|
|
430
|
+
// Focus immediately while still in keyboard event context
|
|
431
|
+
// This ensures the browser treats it as keyboard-initiated and shows focus ring
|
|
432
|
+
this.triggerEl.focus({ preventScroll: true });
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Handles escape key press to close the popover
|
|
436
|
+
* Mirrors native Popover API: Escape closes and returns focus to trigger
|
|
437
|
+
*/
|
|
438
|
+
handleEscapeKey(event) {
|
|
439
|
+
if (event.key === 'Escape') {
|
|
440
|
+
// Prevent default Escape behavior and stop propagation
|
|
441
|
+
// This mirrors native Popover API which handles Escape exclusively
|
|
442
|
+
event.preventDefault();
|
|
443
|
+
event.stopPropagation();
|
|
444
|
+
// Close popover and return focus to trigger
|
|
445
|
+
this.hide();
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Handles scroll events to reposition the popover (debounced for performance)
|
|
450
|
+
*/
|
|
451
|
+
handleScroll() {
|
|
452
|
+
if (!this.active)
|
|
453
|
+
return;
|
|
454
|
+
if (this.scrollDebounceTimer !== null) {
|
|
455
|
+
clearTimeout(this.scrollDebounceTimer);
|
|
456
|
+
}
|
|
457
|
+
this.scrollDebounceTimer = setTimeout(() => {
|
|
458
|
+
this.handlePopoverPositioning();
|
|
459
|
+
this.scrollDebounceTimer = null;
|
|
460
|
+
}, 10); // 10ms debounce for smooth repositioning
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Handles resize events to reposition the popover (debounced for performance)
|
|
464
|
+
*/
|
|
465
|
+
handleResize() {
|
|
466
|
+
if (!this.active)
|
|
467
|
+
return;
|
|
468
|
+
if (this.resizeDebounceTimer !== null) {
|
|
469
|
+
clearTimeout(this.resizeDebounceTimer);
|
|
470
|
+
}
|
|
471
|
+
this.resizeDebounceTimer = setTimeout(() => {
|
|
472
|
+
this.handlePopoverPositioning();
|
|
473
|
+
this.resizeDebounceTimer = null;
|
|
474
|
+
}, 100); // 100ms debounce for resize
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* Positions the popover relative to its trigger element
|
|
478
|
+
*/
|
|
479
|
+
handlePopoverPositioning() {
|
|
480
|
+
// Prevent repositioning loops
|
|
481
|
+
if (this.isRepositioning) {
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
484
|
+
this.isRepositioning = true;
|
|
485
|
+
if (this.triggerEl == null || this.portalEl == null) {
|
|
486
|
+
this.isRepositioning = false;
|
|
487
|
+
return;
|
|
488
|
+
}
|
|
489
|
+
const triggerRect = this.triggerEl.getBoundingClientRect();
|
|
490
|
+
const popoverRect = this.portalEl.getBoundingClientRect();
|
|
491
|
+
// Safety check: ensure trigger has valid dimensions (is rendered and visible)
|
|
492
|
+
if (triggerRect.width === 0 || triggerRect.height === 0) {
|
|
493
|
+
this.isRepositioning = false;
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
let top = 0;
|
|
497
|
+
let left = 0;
|
|
498
|
+
const offset = 8;
|
|
499
|
+
switch (this.placement) {
|
|
500
|
+
case 'top':
|
|
501
|
+
top = triggerRect.top - popoverRect.height - offset;
|
|
502
|
+
left = triggerRect.left + (triggerRect.width - popoverRect.width) / 2;
|
|
503
|
+
break;
|
|
504
|
+
case 'top-start':
|
|
505
|
+
top = triggerRect.top - popoverRect.height - offset;
|
|
506
|
+
left = triggerRect.left;
|
|
507
|
+
break;
|
|
508
|
+
case 'top-end':
|
|
509
|
+
top = triggerRect.top - popoverRect.height - offset;
|
|
510
|
+
left = triggerRect.right - popoverRect.width;
|
|
511
|
+
break;
|
|
512
|
+
case 'right':
|
|
513
|
+
top = triggerRect.top + (triggerRect.height - popoverRect.height) / 2;
|
|
514
|
+
left = triggerRect.right + offset;
|
|
515
|
+
break;
|
|
516
|
+
case 'right-start':
|
|
517
|
+
top = triggerRect.top;
|
|
518
|
+
left = triggerRect.right + offset;
|
|
519
|
+
break;
|
|
520
|
+
case 'right-end':
|
|
521
|
+
top = triggerRect.bottom - popoverRect.height;
|
|
522
|
+
left = triggerRect.right + offset;
|
|
523
|
+
break;
|
|
524
|
+
case 'bottom':
|
|
525
|
+
top = triggerRect.bottom + offset;
|
|
526
|
+
left = triggerRect.left + (triggerRect.width - popoverRect.width) / 2;
|
|
527
|
+
break;
|
|
528
|
+
case 'bottom-start':
|
|
529
|
+
top = triggerRect.bottom + offset;
|
|
530
|
+
left = triggerRect.left;
|
|
531
|
+
break;
|
|
532
|
+
case 'bottom-end':
|
|
533
|
+
top = triggerRect.bottom + offset;
|
|
534
|
+
left = triggerRect.right - popoverRect.width;
|
|
535
|
+
break;
|
|
536
|
+
case 'left':
|
|
537
|
+
top = triggerRect.top + (triggerRect.height - popoverRect.height) / 2;
|
|
538
|
+
left = triggerRect.left - popoverRect.width - offset;
|
|
539
|
+
break;
|
|
540
|
+
case 'left-start':
|
|
541
|
+
top = triggerRect.top;
|
|
542
|
+
left = triggerRect.left - popoverRect.width - offset;
|
|
543
|
+
break;
|
|
544
|
+
case 'left-end':
|
|
545
|
+
top = triggerRect.bottom - popoverRect.height;
|
|
546
|
+
left = triggerRect.left - popoverRect.width - offset;
|
|
547
|
+
break;
|
|
548
|
+
}
|
|
549
|
+
this.portalEl.style.top = `${top}px`;
|
|
550
|
+
this.portalEl.style.left = `${left}px`;
|
|
551
|
+
// Reset the repositioning guard after a short delay
|
|
552
|
+
setTimeout(() => {
|
|
553
|
+
this.isRepositioning = false;
|
|
554
|
+
}, 16); // ~1 frame at 60fps
|
|
555
|
+
}
|
|
556
|
+
render() {
|
|
557
|
+
return (h(Host, { key: '2e19ac35068ac25b013bd146da0b3b343eb89d75', id: this.componentId }, h("span", { key: 'e982ade010dc6539593759704e5afae29ce5eba8', class: "pds-popover__trigger-wrapper" }, h("slot", { key: 'f1e1ef5e3b0b52a96cb566175ea420e1d1545ccc', name: "trigger", onSlotchange: this.handleTriggerSlotChange })), h("div", { key: 'caa5762029db6430f174c8936611fe332889620d', class: "pds-popover__content-slot-wrapper" }, h("slot", { key: 'cdad839643d1a5a2024cd55cdd33750f8665a366', onSlotchange: this.handleContentSlotChange }))));
|
|
558
|
+
}
|
|
559
|
+
static get is() { return "pds-popover"; }
|
|
560
|
+
static get encapsulation() { return "shadow"; }
|
|
561
|
+
static get originalStyleUrls() {
|
|
562
|
+
return {
|
|
563
|
+
"$": ["pds-popover.scss"]
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
static get styleUrls() {
|
|
567
|
+
return {
|
|
568
|
+
"$": ["pds-popover.css"]
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
static get properties() {
|
|
572
|
+
return {
|
|
573
|
+
"popoverTargetAction": {
|
|
574
|
+
"type": "string",
|
|
575
|
+
"mutable": false,
|
|
576
|
+
"complexType": {
|
|
577
|
+
"original": "'show' | 'toggle' | 'hide'",
|
|
578
|
+
"resolved": "\"hide\" | \"show\" | \"toggle\"",
|
|
579
|
+
"references": {}
|
|
580
|
+
},
|
|
581
|
+
"required": false,
|
|
582
|
+
"optional": false,
|
|
583
|
+
"docs": {
|
|
584
|
+
"tags": [{
|
|
585
|
+
"name": "defaultValue",
|
|
586
|
+
"text": "\"show\""
|
|
587
|
+
}],
|
|
588
|
+
"text": "Determines the action that triggers the popover. For manual popovers, the consumer is responsible for toggling this value."
|
|
589
|
+
},
|
|
590
|
+
"getter": false,
|
|
591
|
+
"setter": false,
|
|
592
|
+
"reflect": false,
|
|
593
|
+
"attribute": "popover-target-action",
|
|
594
|
+
"defaultValue": "'show'"
|
|
595
|
+
},
|
|
596
|
+
"popoverType": {
|
|
597
|
+
"type": "string",
|
|
598
|
+
"mutable": false,
|
|
599
|
+
"complexType": {
|
|
600
|
+
"original": "'auto' | 'manual'",
|
|
601
|
+
"resolved": "\"auto\" | \"manual\"",
|
|
602
|
+
"references": {}
|
|
603
|
+
},
|
|
604
|
+
"required": false,
|
|
605
|
+
"optional": false,
|
|
606
|
+
"docs": {
|
|
607
|
+
"tags": [],
|
|
608
|
+
"text": "Determines the type of popover. Auto popovers can be \"light dismissed\" by clicking outside of the popover.\nManual popovers require the consumer to handle the visibility of the popover."
|
|
609
|
+
},
|
|
610
|
+
"getter": false,
|
|
611
|
+
"setter": false,
|
|
612
|
+
"reflect": false,
|
|
613
|
+
"attribute": "popover-type",
|
|
614
|
+
"defaultValue": "'auto'"
|
|
615
|
+
},
|
|
616
|
+
"componentId": {
|
|
617
|
+
"type": "string",
|
|
618
|
+
"mutable": false,
|
|
619
|
+
"complexType": {
|
|
620
|
+
"original": "string",
|
|
621
|
+
"resolved": "string",
|
|
622
|
+
"references": {}
|
|
623
|
+
},
|
|
624
|
+
"required": false,
|
|
625
|
+
"optional": false,
|
|
626
|
+
"docs": {
|
|
627
|
+
"tags": [],
|
|
628
|
+
"text": "A unique identifier used for the underlying component `id` attribute."
|
|
629
|
+
},
|
|
630
|
+
"getter": false,
|
|
631
|
+
"setter": false,
|
|
632
|
+
"reflect": false,
|
|
633
|
+
"attribute": "component-id"
|
|
634
|
+
},
|
|
635
|
+
"maxWidth": {
|
|
636
|
+
"type": "number",
|
|
637
|
+
"mutable": false,
|
|
638
|
+
"complexType": {
|
|
639
|
+
"original": "number",
|
|
640
|
+
"resolved": "number",
|
|
641
|
+
"references": {}
|
|
642
|
+
},
|
|
643
|
+
"required": false,
|
|
644
|
+
"optional": true,
|
|
645
|
+
"docs": {
|
|
646
|
+
"tags": [{
|
|
647
|
+
"name": "defaultValue",
|
|
648
|
+
"text": "352"
|
|
649
|
+
}],
|
|
650
|
+
"text": "Sets the maximum width of the popover content"
|
|
651
|
+
},
|
|
652
|
+
"getter": false,
|
|
653
|
+
"setter": false,
|
|
654
|
+
"reflect": false,
|
|
655
|
+
"attribute": "max-width",
|
|
656
|
+
"defaultValue": "352"
|
|
657
|
+
},
|
|
658
|
+
"placement": {
|
|
659
|
+
"type": "string",
|
|
660
|
+
"mutable": false,
|
|
661
|
+
"complexType": {
|
|
662
|
+
"original": "PlacementType",
|
|
663
|
+
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
664
|
+
"references": {
|
|
665
|
+
"PlacementType": {
|
|
666
|
+
"location": "import",
|
|
667
|
+
"path": "@utils/types",
|
|
668
|
+
"id": "src/utils/types.ts::PlacementType",
|
|
669
|
+
"referenceLocation": "PlacementType"
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
"required": false,
|
|
674
|
+
"optional": false,
|
|
675
|
+
"docs": {
|
|
676
|
+
"tags": [{
|
|
677
|
+
"name": "defaultValue",
|
|
678
|
+
"text": "\"right\""
|
|
679
|
+
}],
|
|
680
|
+
"text": "Determines the preferred position of the popover"
|
|
681
|
+
},
|
|
682
|
+
"getter": false,
|
|
683
|
+
"setter": false,
|
|
684
|
+
"reflect": true,
|
|
685
|
+
"attribute": "placement",
|
|
686
|
+
"defaultValue": "'right'"
|
|
687
|
+
}
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
static get states() {
|
|
691
|
+
return {
|
|
692
|
+
"active": {}
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
static get events() {
|
|
696
|
+
return [{
|
|
697
|
+
"method": "pdsPopoverOpen",
|
|
698
|
+
"name": "pdsPopoverOpen",
|
|
699
|
+
"bubbles": true,
|
|
700
|
+
"cancelable": true,
|
|
701
|
+
"composed": true,
|
|
702
|
+
"docs": {
|
|
703
|
+
"tags": [],
|
|
704
|
+
"text": "Emitted when the popover is opened"
|
|
705
|
+
},
|
|
706
|
+
"complexType": {
|
|
707
|
+
"original": "PdsPopoverEventDetail",
|
|
708
|
+
"resolved": "PdsPopoverEventDetail",
|
|
709
|
+
"references": {
|
|
710
|
+
"PdsPopoverEventDetail": {
|
|
711
|
+
"location": "import",
|
|
712
|
+
"path": "./popover-interface",
|
|
713
|
+
"id": "src/components/pds-popover/popover-interface.ts::PdsPopoverEventDetail",
|
|
714
|
+
"referenceLocation": "PdsPopoverEventDetail"
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
}, {
|
|
719
|
+
"method": "pdsPopoverClose",
|
|
720
|
+
"name": "pdsPopoverClose",
|
|
721
|
+
"bubbles": true,
|
|
722
|
+
"cancelable": true,
|
|
723
|
+
"composed": true,
|
|
724
|
+
"docs": {
|
|
725
|
+
"tags": [],
|
|
726
|
+
"text": "Emitted when the popover is closed"
|
|
727
|
+
},
|
|
728
|
+
"complexType": {
|
|
729
|
+
"original": "PdsPopoverEventDetail",
|
|
730
|
+
"resolved": "PdsPopoverEventDetail",
|
|
731
|
+
"references": {
|
|
732
|
+
"PdsPopoverEventDetail": {
|
|
733
|
+
"location": "import",
|
|
734
|
+
"path": "./popover-interface",
|
|
735
|
+
"id": "src/components/pds-popover/popover-interface.ts::PdsPopoverEventDetail",
|
|
736
|
+
"referenceLocation": "PdsPopoverEventDetail"
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
}];
|
|
741
|
+
}
|
|
742
|
+
static get methods() {
|
|
743
|
+
return {
|
|
744
|
+
"show": {
|
|
745
|
+
"complexType": {
|
|
746
|
+
"signature": "() => Promise<void>",
|
|
747
|
+
"parameters": [],
|
|
748
|
+
"references": {
|
|
749
|
+
"Promise": {
|
|
750
|
+
"location": "global",
|
|
751
|
+
"id": "global::Promise"
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
"return": "Promise<void>"
|
|
755
|
+
},
|
|
756
|
+
"docs": {
|
|
757
|
+
"text": "Opens the popover programmatically",
|
|
758
|
+
"tags": []
|
|
759
|
+
}
|
|
760
|
+
},
|
|
761
|
+
"hide": {
|
|
762
|
+
"complexType": {
|
|
763
|
+
"signature": "() => Promise<void>",
|
|
764
|
+
"parameters": [],
|
|
765
|
+
"references": {
|
|
766
|
+
"Promise": {
|
|
767
|
+
"location": "global",
|
|
768
|
+
"id": "global::Promise"
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
"return": "Promise<void>"
|
|
772
|
+
},
|
|
773
|
+
"docs": {
|
|
774
|
+
"text": "Closes the popover programmatically",
|
|
775
|
+
"tags": []
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
"toggle": {
|
|
779
|
+
"complexType": {
|
|
780
|
+
"signature": "() => Promise<void>",
|
|
781
|
+
"parameters": [],
|
|
782
|
+
"references": {
|
|
783
|
+
"Promise": {
|
|
784
|
+
"location": "global",
|
|
785
|
+
"id": "global::Promise"
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
"return": "Promise<void>"
|
|
789
|
+
},
|
|
790
|
+
"docs": {
|
|
791
|
+
"text": "Toggles the popover open/closed state programmatically",
|
|
792
|
+
"tags": []
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
static get elementRef() { return "el"; }
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* Instance counter for unique IDs
|
|
801
|
+
*/
|
|
802
|
+
PdsPopover.instanceCounter = 0;
|