@pine-ds/core 3.9.0 → 3.10.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.map +1 -1
- package/components/form.js.map +1 -1
- package/components/index.js +1 -1
- package/components/index2.js +1 -1
- package/components/index2.js.map +1 -1
- package/components/mock-pds-modal.js +5 -3
- package/components/mock-pds-modal.js.map +1 -1
- package/components/pds-accordion.js +5 -3
- package/components/pds-accordion.js.map +1 -1
- package/components/pds-alert.js +5 -3
- package/components/pds-alert.js.map +1 -1
- package/components/pds-avatar.js +5 -3
- package/components/pds-avatar.js.map +1 -1
- package/components/pds-box2.js +5 -3
- package/components/pds-box2.js.map +1 -1
- package/components/pds-button2.js +15 -4
- package/components/pds-button2.js.map +1 -1
- package/components/pds-checkbox2.js +5 -3
- package/components/pds-checkbox2.js.map +1 -1
- package/components/pds-chip2.js +5 -3
- package/components/pds-chip2.js.map +1 -1
- package/components/pds-combobox.js +5 -3
- package/components/pds-combobox.js.map +1 -1
- package/components/pds-copytext.js +5 -3
- package/components/pds-copytext.js.map +1 -1
- package/components/pds-divider.js +5 -3
- package/components/pds-divider.js.map +1 -1
- package/components/pds-dropdown-menu-item.js +5 -3
- package/components/pds-dropdown-menu-item.js.map +1 -1
- package/components/pds-dropdown-menu-separator.js +5 -3
- package/components/pds-dropdown-menu-separator.js.map +1 -1
- package/components/pds-dropdown-menu.js +6 -4
- package/components/pds-dropdown-menu.js.map +1 -1
- package/components/pds-filter.js +5 -3
- package/components/pds-filter.js.map +1 -1
- package/components/pds-filters.js +5 -3
- package/components/pds-filters.js.map +1 -1
- package/components/pds-icon2.js +5 -3
- package/components/pds-icon2.js.map +1 -1
- package/components/pds-image.js +5 -3
- package/components/pds-image.js.map +1 -1
- package/components/pds-input.js +5 -3
- package/components/pds-input.js.map +1 -1
- package/components/pds-link2.js +5 -3
- package/components/pds-link2.js.map +1 -1
- package/components/pds-loader2.js +5 -3
- package/components/pds-loader2.js.map +1 -1
- package/components/pds-modal-content.js +7 -5
- package/components/pds-modal-content.js.map +1 -1
- package/components/pds-modal-footer.js +5 -3
- package/components/pds-modal-footer.js.map +1 -1
- package/components/pds-modal-header.js +5 -3
- package/components/pds-modal-header.js.map +1 -1
- package/components/pds-modal.js +5 -3
- package/components/pds-modal.js.map +1 -1
- package/components/pds-popover.js +437 -90
- package/components/pds-popover.js.map +1 -1
- package/components/pds-progress.js +6 -4
- package/components/pds-progress.js.map +1 -1
- package/components/pds-property.js +6 -4
- package/components/pds-property.js.map +1 -1
- package/components/pds-radio.js +8 -6
- package/components/pds-radio.js.map +1 -1
- package/components/pds-row.js +6 -4
- package/components/pds-row.js.map +1 -1
- package/components/pds-select.js +6 -4
- package/components/pds-select.js.map +1 -1
- package/components/pds-sortable-item.js +6 -4
- package/components/pds-sortable-item.js.map +1 -1
- package/components/pds-sortable.js +6 -4
- package/components/pds-sortable.js.map +1 -1
- package/components/pds-switch.js +8 -6
- package/components/pds-switch.js.map +1 -1
- package/components/pds-tab.js +8 -6
- package/components/pds-tab.js.map +1 -1
- package/components/pds-table-body.js +6 -4
- package/components/pds-table-body.js.map +1 -1
- package/components/pds-table-cell2.js +7 -5
- package/components/pds-table-cell2.js.map +1 -1
- package/components/pds-table-head-cell2.js +7 -5
- package/components/pds-table-head-cell2.js.map +1 -1
- package/components/pds-table-head.js +6 -4
- package/components/pds-table-head.js.map +1 -1
- package/components/pds-table-row.js +6 -4
- package/components/pds-table-row.js.map +1 -1
- package/components/pds-table.js +5 -3
- package/components/pds-table.js.map +1 -1
- package/components/pds-tabpanel.js +6 -4
- package/components/pds-tabpanel.js.map +1 -1
- package/components/pds-tabs.js +6 -4
- package/components/pds-tabs.js.map +1 -1
- package/components/pds-text2.js +6 -4
- package/components/pds-text2.js.map +1 -1
- package/components/pds-textarea.js +9 -7
- package/components/pds-textarea.js.map +1 -1
- package/components/pds-toast.js +8 -6
- package/components/pds-toast.js.map +1 -1
- package/components/pds-tooltip.js +7 -5
- package/components/pds-tooltip.js.map +1 -1
- package/components/utils.js.map +1 -1
- package/dist/cjs/attributes-oNMnBEnP.js.map +1 -1
- package/dist/cjs/form-hmpgbT1I.js.map +1 -1
- package/dist/cjs/{index-DDTyvZD7.js → index-2Lf0E1JO.js} +505 -182
- package/dist/cjs/index-2Lf0E1JO.js.map +1 -0
- package/dist/cjs/{index-DtnvzYhe.js → index-B17J2UZb.js} +3 -3
- package/dist/cjs/index-B17J2UZb.js.map +1 -0
- package/dist/cjs/index.cjs.js +0 -4
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/mock-pds-modal.cjs.entry.js +1 -3
- package/dist/cjs/pds-accordion.cjs.entry.js +2 -4
- package/dist/cjs/pds-alert.cjs.entry.js +1 -3
- package/dist/cjs/pds-avatar.cjs.entry.js +2 -4
- package/dist/cjs/pds-box.cjs.entry.js +1 -3
- package/dist/cjs/pds-button.cjs.entry.js +11 -5
- package/dist/cjs/pds-button.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-checkbox.cjs.entry.js +2 -4
- package/dist/cjs/pds-chip.cjs.entry.js +2 -4
- package/dist/cjs/pds-combobox.cjs.entry.js +1 -3
- package/dist/cjs/pds-copytext.cjs.entry.js +2 -4
- package/dist/cjs/pds-divider.cjs.entry.js +1 -3
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +1 -3
- package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +1 -3
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js +2 -4
- package/dist/cjs/pds-dropdown-menu.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-filter.cjs.entry.js +2 -4
- package/dist/cjs/pds-filters.cjs.entry.js +1 -3
- package/dist/cjs/pds-icon.cjs.entry.js +1 -3
- package/dist/cjs/pds-image.cjs.entry.js +1 -3
- package/dist/cjs/pds-input.cjs.entry.js +2 -4
- package/dist/cjs/pds-link.cjs.entry.js +2 -4
- package/dist/cjs/pds-loader.cjs.entry.js +1 -3
- package/dist/cjs/pds-modal-content.cjs.entry.js +3 -5
- package/dist/cjs/pds-modal-content.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-modal-footer.cjs.entry.js +1 -3
- package/dist/cjs/pds-modal-header.cjs.entry.js +1 -3
- package/dist/cjs/pds-modal.cjs.entry.js +1 -3
- package/dist/cjs/pds-popover.cjs.entry.js +432 -88
- package/dist/cjs/pds-popover.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-progress.cjs.entry.js +2 -4
- package/dist/cjs/pds-property.cjs.entry.js +2 -4
- package/dist/cjs/pds-radio.cjs.entry.js +5 -7
- package/dist/cjs/pds-row.cjs.entry.js +2 -4
- package/dist/cjs/pds-select.cjs.entry.js +3 -5
- package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -5
- package/dist/cjs/pds-sortable.cjs.entry.js +2 -4
- package/dist/cjs/pds-sortable.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-switch.cjs.entry.js +5 -7
- package/dist/cjs/pds-tab.cjs.entry.js +4 -6
- package/dist/cjs/pds-table-body.cjs.entry.js +2 -4
- package/dist/cjs/pds-table-cell.cjs.entry.js +3 -5
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +4 -6
- package/dist/cjs/pds-table-head.cjs.entry.js +2 -4
- package/dist/cjs/pds-table-row.cjs.entry.js +2 -4
- package/dist/cjs/pds-table.cjs.entry.js +1 -3
- package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -4
- package/dist/cjs/pds-tabs.cjs.entry.js +2 -4
- package/dist/cjs/pds-text.cjs.entry.js +2 -4
- package/dist/cjs/pds-textarea.cjs.entry.js +6 -8
- package/dist/cjs/pds-toast.cjs.entry.js +4 -6
- package/dist/cjs/pds-tooltip.cjs.entry.js +3 -5
- package/dist/cjs/pine-core.cjs.js +4 -7
- package/dist/cjs/pine-core.cjs.js.map +1 -1
- package/dist/cjs/utils-7jx8T2mW.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/pds-accordion/pds-accordion.js +3 -3
- package/dist/collection/components/pds-alert/pds-alert.js +7 -7
- package/dist/collection/components/pds-avatar/pds-avatar.js +8 -8
- package/dist/collection/components/pds-box/pds-box.js +235 -235
- package/dist/collection/components/pds-button/pds-button.css +38 -0
- package/dist/collection/components/pds-button/pds-button.js +50 -19
- package/dist/collection/components/pds-button/pds-button.js.map +1 -1
- package/dist/collection/components/pds-button/stories/pds-button.stories.js +109 -55
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +23 -23
- package/dist/collection/components/pds-chip/pds-chip.js +8 -8
- package/dist/collection/components/pds-combobox/pds-combobox.js +26 -26
- package/dist/collection/components/pds-copytext/pds-copytext.js +7 -7
- package/dist/collection/components/pds-divider/pds-divider.js +5 -5
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +6 -6
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +3 -3
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +4 -4
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js.map +1 -1
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +7 -7
- package/dist/collection/components/pds-filters/pds-filters.js +2 -2
- package/dist/collection/components/pds-image/pds-image.js +14 -14
- package/dist/collection/components/pds-input/pds-input.js +44 -44
- package/dist/collection/components/pds-link/pds-link.js +9 -9
- package/dist/collection/components/pds-loader/pds-loader.js +4 -4
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +3 -3
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js.map +1 -1
- package/dist/collection/components/pds-modal/pds-modal.js +6 -6
- package/dist/collection/components/pds-modal/test/mock-pds-modal.js +6 -6
- package/dist/collection/components/pds-popover/pds-popover.css +4 -31
- package/dist/collection/components/pds-popover/pds-popover.js +440 -130
- package/dist/collection/components/pds-popover/pds-popover.js.map +1 -1
- package/dist/collection/components/pds-popover/popover-interface.js.map +1 -1
- package/dist/collection/components/pds-popover/stories/pds-popover.stories.js +66 -18
- package/dist/collection/components/pds-progress/pds-progress.js +10 -10
- package/dist/collection/components/pds-property/pds-property.js +4 -4
- package/dist/collection/components/pds-radio/pds-radio.js +22 -22
- package/dist/collection/components/pds-row/pds-row.js +17 -17
- package/dist/collection/components/pds-select/pds-select.js +24 -24
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +5 -5
- package/dist/collection/components/pds-sortable/pds-sortable.js +6 -6
- package/dist/collection/components/pds-sortable/pds-sortable.js.map +1 -1
- package/dist/collection/components/pds-switch/pds-switch.js +21 -21
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +6 -6
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +5 -5
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +6 -6
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +5 -5
- package/dist/collection/components/pds-table/pds-table.js +10 -10
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +12 -12
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +8 -8
- package/dist/collection/components/pds-tabs/pds-tabs.js +11 -11
- package/dist/collection/components/pds-text/pds-text.js +18 -18
- package/dist/collection/components/pds-textarea/pds-textarea.js +32 -32
- package/dist/collection/components/pds-toast/pds-toast.js +10 -10
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +11 -11
- package/dist/collection/utils/attributes.js.map +1 -1
- package/dist/collection/utils/form.js.map +1 -1
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/docs.json +242 -79
- package/dist/esm/attributes-C0M1gTKv.js.map +1 -1
- package/dist/esm/form-DwjNklzi.js.map +1 -1
- package/dist/esm/{index-Bf1dou5H.js → index-Bh07GI-d.js} +505 -183
- package/dist/esm/index-Bh07GI-d.js.map +1 -0
- package/dist/esm/{index-D4zJBIgl.js → index-QXCASaCq.js} +3 -3
- package/dist/esm/index-QXCASaCq.js.map +1 -0
- package/dist/esm/index.js +1 -3
- package/dist/esm/loader.js +3 -6
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/mock-pds-modal.entry.js +1 -3
- package/dist/esm/pds-accordion.entry.js +2 -4
- package/dist/esm/pds-alert.entry.js +1 -3
- package/dist/esm/pds-avatar.entry.js +2 -4
- package/dist/esm/pds-box.entry.js +1 -3
- package/dist/esm/pds-button.entry.js +11 -5
- package/dist/esm/pds-button.entry.js.map +1 -1
- package/dist/esm/pds-checkbox.entry.js +2 -4
- package/dist/esm/pds-chip.entry.js +2 -4
- package/dist/esm/pds-combobox.entry.js +1 -3
- package/dist/esm/pds-copytext.entry.js +2 -4
- package/dist/esm/pds-divider.entry.js +1 -3
- package/dist/esm/pds-dropdown-menu-item.entry.js +1 -3
- package/dist/esm/pds-dropdown-menu-separator.entry.js +1 -3
- package/dist/esm/pds-dropdown-menu.entry.js +2 -4
- package/dist/esm/pds-dropdown-menu.entry.js.map +1 -1
- package/dist/esm/pds-filter.entry.js +2 -4
- package/dist/esm/pds-filters.entry.js +1 -3
- package/dist/esm/pds-icon.entry.js +1 -3
- package/dist/esm/pds-image.entry.js +1 -3
- package/dist/esm/pds-input.entry.js +2 -4
- package/dist/esm/pds-link.entry.js +2 -4
- package/dist/esm/pds-loader.entry.js +1 -3
- package/dist/esm/pds-modal-content.entry.js +3 -5
- package/dist/esm/pds-modal-content.entry.js.map +1 -1
- package/dist/esm/pds-modal-footer.entry.js +1 -3
- package/dist/esm/pds-modal-header.entry.js +1 -3
- package/dist/esm/pds-modal.entry.js +1 -3
- package/dist/esm/pds-popover.entry.js +432 -88
- package/dist/esm/pds-popover.entry.js.map +1 -1
- package/dist/esm/pds-progress.entry.js +2 -4
- package/dist/esm/pds-property.entry.js +2 -4
- package/dist/esm/pds-radio.entry.js +5 -7
- package/dist/esm/pds-row.entry.js +2 -4
- package/dist/esm/pds-select.entry.js +3 -5
- package/dist/esm/pds-sortable-item.entry.js +3 -5
- package/dist/esm/pds-sortable.entry.js +2 -4
- package/dist/esm/pds-sortable.entry.js.map +1 -1
- package/dist/esm/pds-switch.entry.js +5 -7
- package/dist/esm/pds-tab.entry.js +4 -6
- package/dist/esm/pds-table-body.entry.js +2 -4
- package/dist/esm/pds-table-cell.entry.js +3 -5
- package/dist/esm/pds-table-head-cell.entry.js +4 -6
- package/dist/esm/pds-table-head.entry.js +2 -4
- package/dist/esm/pds-table-row.entry.js +2 -4
- package/dist/esm/pds-table.entry.js +1 -3
- package/dist/esm/pds-tabpanel.entry.js +2 -4
- package/dist/esm/pds-tabs.entry.js +2 -4
- package/dist/esm/pds-text.entry.js +2 -4
- package/dist/esm/pds-textarea.entry.js +6 -8
- package/dist/esm/pds-toast.entry.js +4 -6
- package/dist/esm/pds-tooltip.entry.js +3 -5
- package/dist/esm/pine-core.js +4 -7
- package/dist/esm/pine-core.js.map +1 -1
- package/dist/esm/utils-tJa4KYNO.js.map +1 -1
- package/dist/esm-es5/attributes-C0M1gTKv.js.map +1 -1
- package/dist/esm-es5/form-DwjNklzi.js.map +1 -1
- package/dist/esm-es5/index-Bh07GI-d.js +3 -0
- package/dist/esm-es5/index-Bh07GI-d.js.map +1 -0
- package/dist/esm-es5/{index-D4zJBIgl.js → index-QXCASaCq.js} +1 -1
- package/dist/esm-es5/index-QXCASaCq.js.map +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
- package/dist/esm-es5/pds-accordion.entry.js +1 -1
- package/dist/esm-es5/pds-alert.entry.js +1 -1
- package/dist/esm-es5/pds-avatar.entry.js +1 -1
- package/dist/esm-es5/pds-box.entry.js +1 -1
- package/dist/esm-es5/pds-button.entry.js +1 -1
- package/dist/esm-es5/pds-button.entry.js.map +1 -1
- package/dist/esm-es5/pds-checkbox.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-combobox.entry.js +2 -2
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-divider.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu.entry.js.map +1 -1
- package/dist/esm-es5/pds-filter.entry.js +1 -1
- package/dist/esm-es5/pds-filters.entry.js +1 -1
- package/dist/esm-es5/pds-icon.entry.js +1 -1
- package/dist/esm-es5/pds-image.entry.js +1 -1
- package/dist/esm-es5/pds-input.entry.js +1 -1
- package/dist/esm-es5/pds-link.entry.js +1 -1
- package/dist/esm-es5/pds-loader.entry.js +1 -1
- package/dist/esm-es5/pds-modal-content.entry.js +1 -1
- package/dist/esm-es5/pds-modal-content.entry.js.map +1 -1
- package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
- package/dist/esm-es5/pds-modal-header.entry.js +1 -1
- package/dist/esm-es5/pds-modal.entry.js +1 -1
- package/dist/esm-es5/pds-popover.entry.js +1 -1
- package/dist/esm-es5/pds-popover.entry.js.map +1 -1
- package/dist/esm-es5/pds-progress.entry.js +1 -1
- package/dist/esm-es5/pds-property.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js +1 -1
- package/dist/esm-es5/pds-row.entry.js +1 -1
- package/dist/esm-es5/pds-select.entry.js +1 -1
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
- package/dist/esm-es5/pds-sortable.entry.js +2 -2
- package/dist/esm-es5/pds-sortable.entry.js.map +1 -1
- package/dist/esm-es5/pds-switch.entry.js +1 -1
- package/dist/esm-es5/pds-tab.entry.js +1 -1
- package/dist/esm-es5/pds-table-body.entry.js +1 -1
- package/dist/esm-es5/pds-table-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-head.entry.js +1 -1
- package/dist/esm-es5/pds-table-row.entry.js +1 -1
- package/dist/esm-es5/pds-table.entry.js +1 -1
- package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
- package/dist/esm-es5/pds-tabs.entry.js +1 -1
- package/dist/esm-es5/pds-text.entry.js +1 -1
- package/dist/esm-es5/pds-textarea.entry.js +1 -1
- package/dist/esm-es5/pds-toast.entry.js +1 -1
- package/dist/esm-es5/pds-tooltip.entry.js +1 -1
- package/dist/esm-es5/pine-core.js +1 -1
- package/dist/esm-es5/pine-core.js.map +1 -1
- package/dist/esm-es5/utils-tJa4KYNO.js.map +1 -1
- package/dist/pine-core/index.esm.js +1 -1
- package/dist/pine-core/loader.esm.js.map +1 -1
- package/dist/pine-core/{p-9766923f.entry.js → p-01c4eac9.entry.js} +2 -2
- package/dist/pine-core/p-01c4eac9.entry.js.map +1 -0
- package/dist/pine-core/p-04390d80.system.entry.js +2 -0
- package/dist/pine-core/p-04390d80.system.entry.js.map +1 -0
- package/dist/pine-core/{p-4ef17b95.system.entry.js → p-052eedc2.system.entry.js} +2 -2
- package/dist/pine-core/p-052eedc2.system.entry.js.map +1 -0
- package/dist/pine-core/p-06f164fe.system.entry.js +2 -0
- package/dist/pine-core/p-06f164fe.system.entry.js.map +1 -0
- package/dist/pine-core/{p-725c350c.entry.js → p-0819d524.entry.js} +2 -2
- package/dist/pine-core/p-0819d524.entry.js.map +1 -0
- package/dist/pine-core/p-105951b7.system.entry.js +2 -0
- package/dist/pine-core/p-105951b7.system.entry.js.map +1 -0
- package/dist/pine-core/{p-307f415a.system.entry.js → p-168b5a5b.system.entry.js} +2 -2
- package/dist/pine-core/p-168b5a5b.system.entry.js.map +1 -0
- package/dist/pine-core/{p-ee583234.system.entry.js → p-1ab0a7b1.system.entry.js} +2 -2
- package/dist/pine-core/p-1ab0a7b1.system.entry.js.map +1 -0
- package/dist/pine-core/{p-da1fb45d.system.entry.js → p-1ac7cb0f.system.entry.js} +2 -2
- package/dist/pine-core/p-1ac7cb0f.system.entry.js.map +1 -0
- package/dist/pine-core/{p-f61ee383.system.entry.js → p-1bf75b30.system.entry.js} +2 -2
- package/dist/pine-core/p-1bf75b30.system.entry.js.map +1 -0
- package/dist/pine-core/{p-1039e8e9.entry.js → p-1c6def68.entry.js} +2 -2
- package/dist/pine-core/p-1c6def68.entry.js.map +1 -0
- package/dist/pine-core/p-1d3c4f2d.entry.js +2 -0
- package/dist/pine-core/p-1d3c4f2d.entry.js.map +1 -0
- package/dist/pine-core/{p-8ff41ba8.entry.js → p-1d83f560.entry.js} +2 -2
- package/dist/pine-core/p-1d83f560.entry.js.map +1 -0
- package/dist/pine-core/{p-90e83476.system.entry.js → p-1f28575b.system.entry.js} +2 -2
- package/dist/pine-core/p-1f28575b.system.entry.js.map +1 -0
- package/dist/pine-core/{p-88773b86.entry.js → p-1f67a7d6.entry.js} +2 -2
- package/dist/pine-core/p-1f67a7d6.entry.js.map +1 -0
- package/dist/pine-core/{p-e18c3044.entry.js → p-1fbe221a.entry.js} +2 -2
- package/dist/pine-core/p-1fbe221a.entry.js.map +1 -0
- package/dist/pine-core/{p-e692908e.entry.js → p-239cbdb2.entry.js} +2 -2
- package/dist/pine-core/p-239cbdb2.entry.js.map +1 -0
- package/dist/pine-core/{p-a9cfaa1f.entry.js → p-2551ed1a.entry.js} +2 -2
- package/dist/pine-core/p-2551ed1a.entry.js.map +1 -0
- package/dist/pine-core/p-285bc185.entry.js +2 -0
- package/dist/pine-core/p-285bc185.entry.js.map +1 -0
- package/dist/pine-core/{p-ozqEY4Zc.system.js.map → p-2NVJY0Vc.system.js.map} +1 -1
- package/dist/pine-core/{p-97299c83.system.entry.js → p-2aed6c67.system.entry.js} +2 -2
- package/dist/pine-core/p-2aed6c67.system.entry.js.map +1 -0
- package/dist/pine-core/p-2f5d1411.entry.js +2 -0
- package/dist/pine-core/p-2f5d1411.entry.js.map +1 -0
- package/dist/pine-core/{p-96a60a99.entry.js → p-35dd09be.entry.js} +2 -2
- package/dist/pine-core/p-35dd09be.entry.js.map +1 -0
- package/dist/pine-core/p-37795a28.system.entry.js +2 -0
- package/dist/pine-core/p-37795a28.system.entry.js.map +1 -0
- package/dist/pine-core/{p-c55fc47e.entry.js → p-3900b6f6.entry.js} +2 -2
- package/dist/pine-core/p-3900b6f6.entry.js.map +1 -0
- package/dist/pine-core/p-3ca2c7d0.system.entry.js +2 -0
- package/dist/pine-core/p-3ca2c7d0.system.entry.js.map +1 -0
- package/dist/pine-core/{p-B-Doh1Wu.system.js.map → p-3fR7iol3.system.js.map} +1 -1
- package/dist/pine-core/p-43b758af.entry.js +2 -0
- package/dist/pine-core/p-43b758af.entry.js.map +1 -0
- package/dist/pine-core/{p-f25274c9.entry.js → p-45c81df5.entry.js} +2 -2
- package/dist/pine-core/p-45c81df5.entry.js.map +1 -0
- package/dist/pine-core/{p-378df5eb.system.entry.js → p-4792d0c8.system.entry.js} +2 -2
- package/dist/pine-core/p-4792d0c8.system.entry.js.map +1 -0
- package/dist/pine-core/{p-3cc92094.system.entry.js → p-49c5234f.system.entry.js} +2 -2
- package/dist/pine-core/p-49c5234f.system.entry.js.map +1 -0
- package/dist/pine-core/p-4HGk7WFM.system.js.map +1 -0
- package/dist/pine-core/{p-c44d3551.entry.js → p-51e0ea73.entry.js} +2 -2
- package/dist/pine-core/p-51e0ea73.entry.js.map +1 -0
- package/dist/pine-core/{p-7af21e83.system.entry.js → p-52e92b68.system.entry.js} +2 -2
- package/dist/pine-core/p-52e92b68.system.entry.js.map +1 -0
- package/dist/pine-core/{p-b9aafec7.system.entry.js → p-54e04c59.system.entry.js} +2 -2
- package/dist/pine-core/p-54e04c59.system.entry.js.map +1 -0
- package/dist/pine-core/{p-972a511a.entry.js → p-55d120d1.entry.js} +2 -2
- package/dist/pine-core/p-55d120d1.entry.js.map +1 -0
- package/dist/pine-core/{p-9b335a9f.entry.js → p-57120758.entry.js} +2 -2
- package/dist/pine-core/p-57120758.entry.js.map +1 -0
- package/dist/pine-core/{p-b9e12535.system.entry.js → p-59166970.system.entry.js} +2 -2
- package/dist/pine-core/p-59166970.system.entry.js.map +1 -0
- package/dist/pine-core/p-5a332f9e.system.entry.js +2 -0
- package/dist/pine-core/p-5a332f9e.system.entry.js.map +1 -0
- package/dist/pine-core/{p-4802f8de.system.entry.js → p-5a94e426.system.entry.js} +2 -2
- package/dist/pine-core/p-5a94e426.system.entry.js.map +1 -0
- package/dist/pine-core/{p-bc637bed.system.entry.js → p-5d379706.system.entry.js} +2 -2
- package/dist/pine-core/p-5d379706.system.entry.js.map +1 -0
- package/dist/pine-core/p-5e1804a3.system.entry.js +2 -0
- package/dist/pine-core/p-5e1804a3.system.entry.js.map +1 -0
- package/dist/pine-core/{p-b23dd01c.entry.js → p-6046e0b1.entry.js} +2 -2
- package/dist/pine-core/p-6046e0b1.entry.js.map +1 -0
- package/dist/pine-core/{p-544fea4c.system.entry.js → p-6448829b.system.entry.js} +3 -3
- package/dist/pine-core/p-6448829b.system.entry.js.map +1 -0
- package/dist/pine-core/{p-DmdrRtWG.system.js.map → p-6R6wgf3i.system.js.map} +1 -1
- package/dist/pine-core/{p-dace69e7.system.entry.js → p-6b8903e4.system.entry.js} +2 -2
- package/dist/pine-core/p-6b8903e4.system.entry.js.map +1 -0
- package/dist/pine-core/{p-c3f84df8.system.entry.js → p-6d9ca1ff.system.entry.js} +2 -2
- package/dist/pine-core/p-6d9ca1ff.system.entry.js.map +1 -0
- package/dist/pine-core/{p-6381a811.system.entry.js → p-6e4be339.system.entry.js} +3 -3
- package/dist/pine-core/p-6e4be339.system.entry.js.map +1 -0
- package/dist/pine-core/{p-2c407961.entry.js → p-71a30434.entry.js} +2 -2
- package/dist/pine-core/p-71a30434.entry.js.map +1 -0
- package/dist/pine-core/p-730ea265.entry.js +2 -0
- package/dist/pine-core/p-730ea265.entry.js.map +1 -0
- package/dist/pine-core/{p-100de2b7.entry.js → p-73353346.entry.js} +2 -2
- package/dist/pine-core/p-73353346.entry.js.map +1 -0
- package/dist/pine-core/p-770eefdd.entry.js +2 -0
- package/dist/pine-core/p-770eefdd.entry.js.map +1 -0
- package/dist/pine-core/p-79466624.entry.js +2 -0
- package/dist/pine-core/p-79466624.entry.js.map +1 -0
- package/dist/pine-core/{p-9fbb9f0e.system.entry.js → p-7a12238d.system.entry.js} +2 -2
- package/dist/pine-core/p-7a12238d.system.entry.js.map +1 -0
- package/dist/pine-core/p-7a5e0609.system.entry.js +2 -0
- package/dist/pine-core/p-7a5e0609.system.entry.js.map +1 -0
- package/dist/pine-core/{p-f5d78141.entry.js → p-7a63e1ec.entry.js} +2 -2
- package/dist/pine-core/p-7a63e1ec.entry.js.map +1 -0
- package/dist/pine-core/p-7bbe537d.system.entry.js +2 -0
- package/dist/pine-core/p-7bbe537d.system.entry.js.map +1 -0
- package/dist/pine-core/p-7c69ca77.entry.js +2 -0
- package/dist/pine-core/p-7c69ca77.entry.js.map +1 -0
- package/dist/pine-core/p-7ccd095b.entry.js +2 -0
- package/dist/pine-core/p-7ccd095b.entry.js.map +1 -0
- package/dist/pine-core/{p-f8e1545e.entry.js → p-841a6445.entry.js} +2 -2
- package/dist/pine-core/p-841a6445.entry.js.map +1 -0
- package/dist/pine-core/p-88040f36.entry.js +2 -0
- package/dist/pine-core/p-88040f36.entry.js.map +1 -0
- package/dist/pine-core/{p-538b3902.system.entry.js → p-89565b3c.system.entry.js} +2 -2
- package/dist/pine-core/p-89565b3c.system.entry.js.map +1 -0
- package/dist/pine-core/{p-5ac7af9e.entry.js → p-996072ce.entry.js} +2 -2
- package/dist/pine-core/p-996072ce.entry.js.map +1 -0
- package/dist/pine-core/{p-0486ecc6.system.entry.js → p-9c0577eb.system.entry.js} +2 -2
- package/dist/pine-core/p-9c0577eb.system.entry.js.map +1 -0
- package/dist/pine-core/{p-CTkQ9Pq-.system.js.map → p-B8ftT2uA.system.js.map} +1 -1
- package/dist/pine-core/{p-Cl47ROcT.system.js.map → p-B9oQYxlC.system.js.map} +1 -1
- package/dist/pine-core/{p-BbhWs2I3.system.js.map → p-BCGaZxvq.system.js.map} +1 -1
- package/dist/pine-core/p-BG6uGRQj.system.js.map +1 -1
- package/dist/pine-core/p-BHavepTY.system.js.map +1 -1
- package/dist/pine-core/{p-BJ3oNLWN.system.js.map → p-BLpHPllL.system.js.map} +1 -1
- package/dist/pine-core/{p-CSa_b_JX.system.js.map → p-BMBJoTMg.system.js.map} +1 -1
- package/dist/pine-core/{p-Dw7zXw_6.system.js.map → p-BMv60T1z.system.js.map} +1 -1
- package/dist/pine-core/p-BOmQOnQe.system.js +1 -1
- package/dist/pine-core/p-BeWjxtlo.system.js.map +1 -0
- package/dist/pine-core/{p-k9JOparb.system.js.map → p-BeaxER_z.system.js.map} +1 -1
- package/dist/pine-core/p-Bh07GI-d.js +3 -0
- package/dist/pine-core/p-Bh07GI-d.js.map +1 -0
- package/dist/pine-core/p-BhQhw0S3.system.js.map +1 -1
- package/dist/pine-core/{p-C2W-sHx5.system.js.map → p-BhoJR5O9.system.js.map} +1 -1
- package/dist/pine-core/{p-B8JDvOCM.system.js.map → p-Btz7Q5Hx.system.js.map} +1 -1
- package/dist/pine-core/{p-CEUtKiTx.system.js.map → p-Bv5KzSWg.system.js.map} +1 -1
- package/dist/pine-core/{p-qQVNUF7F.system.js.map → p-BwYg-WQV.system.js.map} +1 -1
- package/dist/pine-core/p-C0M1gTKv.js.map +1 -1
- package/dist/pine-core/{p-CG2PKUWT.system.js.map → p-C2AG52JP.system.js.map} +1 -1
- package/dist/pine-core/{p-kcOuXqWo.system.js.map → p-C4UrydrO.system.js.map} +1 -1
- package/dist/pine-core/{p-Bkfqi7zE.system.js.map → p-C6_QgODF.system.js.map} +1 -1
- package/dist/pine-core/{p-CQwYeJqz.system.js.map → p-CEUHG_Nb.system.js.map} +1 -1
- package/dist/pine-core/{p-K3LH4gRE.system.js.map → p-CIoeutZO.system.js.map} +1 -1
- package/dist/pine-core/{p-DW3lkDNz.system.js.map → p-CMbWVxYl.system.js.map} +1 -1
- package/dist/pine-core/{p-DiWDsjtE.system.js.map → p-CNOoGfj8.system.js.map} +1 -1
- package/dist/pine-core/{p-ByzULH8m.system.js.map → p-CSVIgMVz.system.js.map} +1 -1
- package/dist/pine-core/{p-CCQd5PVN.system.js.map → p-CVjjaBaW.system.js.map} +1 -1
- package/dist/pine-core/p-CZsWy9_t.system.js +3 -0
- package/dist/pine-core/p-CZsWy9_t.system.js.map +1 -0
- package/dist/pine-core/{p-BEgEi4w5.system.js.map → p-CbrMVAcu.system.js.map} +1 -1
- package/dist/pine-core/{p-ch9PI3Vl.system.js.map → p-ChQGk39M.system.js.map} +1 -1
- package/dist/pine-core/{p-M-zMP2QX.system.js.map → p-CoBzoZzZ.system.js.map} +1 -1
- package/dist/pine-core/{p-DJ7iTbji.system.js.map → p-CqtdHqyo.system.js.map} +1 -1
- package/dist/pine-core/{p-DExobiBX.system.js.map → p-CrpTd0PB.system.js.map} +1 -1
- package/dist/pine-core/{p-rnM09DN4.system.js.map → p-CtiVxXhr.system.js.map} +1 -1
- package/dist/pine-core/p-CuF_eckL.system.js.map +1 -0
- package/dist/pine-core/p-Cua7cmvq.system.js +2 -0
- package/dist/pine-core/p-Cua7cmvq.system.js.map +1 -0
- package/dist/pine-core/{p-CdcQ02yR.system.js.map → p-D5MCs-6L.system.js.map} +1 -1
- package/dist/pine-core/{p-BLC5kuro.system.js.map → p-DCLLstWD.system.js.map} +1 -1
- package/dist/pine-core/{p-CfyzuJNE.system.js.map → p-DDsUR6MK.system.js.map} +1 -1
- package/dist/pine-core/{p-BILpjGVZ.system.js.map → p-DLKKVRBm.system.js.map} +1 -1
- package/dist/pine-core/{p-D52TGCLt.system.js.map → p-DTMMULoz.system.js.map} +1 -1
- package/dist/pine-core/p-DwjNklzi.js.map +1 -1
- package/dist/pine-core/{p-DhDw2HLE.system.js.map → p-DxdUBbJz.system.js.map} +1 -1
- package/dist/pine-core/{p-BDK6YCRb.system.js.map → p-DySPwKLZ.system.js.map} +1 -1
- package/dist/pine-core/{p-Cid662up.system.js.map → p-GdAtTGB0.system.js.map} +1 -1
- package/dist/pine-core/{p-D4zJBIgl.js → p-QXCASaCq.js} +1 -1
- package/dist/pine-core/p-QXCASaCq.js.map +1 -0
- package/dist/pine-core/{p-BRIdBthP.system.js.map → p-W2_s_Evj.system.js.map} +1 -1
- package/dist/pine-core/p-YWpyar7R.system.js +2 -0
- package/dist/pine-core/p-YWpyar7R.system.js.map +1 -0
- package/dist/pine-core/{p-85c41629.entry.js → p-a037df25.entry.js} +2 -2
- package/dist/pine-core/p-a037df25.entry.js.map +1 -0
- package/dist/pine-core/{p-ae2d59cd.entry.js → p-a1ddcc69.entry.js} +2 -2
- package/dist/pine-core/p-a1ddcc69.entry.js.map +1 -0
- package/dist/pine-core/{p-96c27dba.entry.js → p-a494b7d1.entry.js} +2 -2
- package/dist/pine-core/p-a494b7d1.entry.js.map +1 -0
- package/dist/pine-core/{p-db12273e.system.entry.js → p-b07bb58f.system.entry.js} +2 -2
- package/dist/pine-core/p-b07bb58f.system.entry.js.map +1 -0
- package/dist/pine-core/p-b0948892.system.entry.js +2 -0
- package/dist/pine-core/p-b0948892.system.entry.js.map +1 -0
- package/dist/pine-core/{p-9ac84e63.entry.js → p-b151a37d.entry.js} +3 -3
- package/dist/pine-core/p-b151a37d.entry.js.map +1 -0
- package/dist/pine-core/{p-6d48604a.system.entry.js → p-b38d8113.system.entry.js} +2 -2
- package/dist/pine-core/p-b38d8113.system.entry.js.map +1 -0
- package/dist/pine-core/{p-18179981.system.entry.js → p-ba1a4643.system.entry.js} +2 -2
- package/dist/pine-core/p-ba1a4643.system.entry.js.map +1 -0
- package/dist/pine-core/p-ba609b1e.entry.js +2 -0
- package/dist/pine-core/p-ba609b1e.entry.js.map +1 -0
- package/dist/pine-core/{p-cffc98ae.entry.js → p-bd11961c.entry.js} +3 -3
- package/dist/pine-core/p-bd11961c.entry.js.map +1 -0
- package/dist/pine-core/{p-c2599425.entry.js → p-bd5369b5.entry.js} +2 -2
- package/dist/pine-core/p-bd5369b5.entry.js.map +1 -0
- package/dist/pine-core/{p-2b102034.system.entry.js → p-c28c54c2.system.entry.js} +2 -2
- package/dist/pine-core/p-c28c54c2.system.entry.js.map +1 -0
- package/dist/pine-core/{p-86263a62.entry.js → p-c697e76a.entry.js} +2 -2
- package/dist/pine-core/p-c697e76a.entry.js.map +1 -0
- package/dist/pine-core/{p-25cb810d.entry.js → p-c7175497.entry.js} +2 -2
- package/dist/pine-core/p-c7175497.entry.js.map +1 -0
- package/dist/pine-core/{p-04ad9d2c.system.entry.js → p-ca094b21.system.entry.js} +2 -2
- package/dist/pine-core/p-ca094b21.system.entry.js.map +1 -0
- package/dist/pine-core/{p-07e129db.entry.js → p-d6cff25a.entry.js} +2 -2
- package/dist/pine-core/p-d6cff25a.entry.js.map +1 -0
- package/dist/pine-core/{p-Dq7Wu9rr.system.js.map → p-dWrReyPk.system.js.map} +1 -1
- package/dist/pine-core/{p-f911dde3.system.entry.js → p-db3b827e.system.entry.js} +2 -2
- package/dist/pine-core/p-db3b827e.system.entry.js.map +1 -0
- package/dist/pine-core/{p-1009009c.entry.js → p-de4ebf0b.entry.js} +2 -2
- package/dist/pine-core/p-de4ebf0b.entry.js.map +1 -0
- package/dist/pine-core/{p-6c36cab6.entry.js → p-e25d2c53.entry.js} +2 -2
- package/dist/pine-core/p-e25d2c53.entry.js.map +1 -0
- package/dist/pine-core/{p-2fd7f74e.entry.js → p-e47fbd71.entry.js} +2 -2
- package/dist/pine-core/p-e47fbd71.entry.js.map +1 -0
- package/dist/pine-core/{p-5b1d6cd2.entry.js → p-e4b73c71.entry.js} +2 -2
- package/dist/pine-core/p-e4b73c71.entry.js.map +1 -0
- package/dist/pine-core/p-e87633c0.system.entry.js +2 -0
- package/dist/pine-core/p-e87633c0.system.entry.js.map +1 -0
- package/dist/pine-core/p-e948a514.system.entry.js +2 -0
- package/dist/pine-core/p-e948a514.system.entry.js.map +1 -0
- package/dist/pine-core/p-eb3fe298.system.entry.js +2 -0
- package/dist/pine-core/p-eb3fe298.system.entry.js.map +1 -0
- package/dist/pine-core/{p-9c1bfa68.entry.js → p-ed214033.entry.js} +2 -2
- package/dist/pine-core/p-ed214033.entry.js.map +1 -0
- package/dist/pine-core/{p-d61f3ab0.system.entry.js → p-f38e87ad.system.entry.js} +2 -2
- package/dist/pine-core/p-f38e87ad.system.entry.js.map +1 -0
- package/dist/pine-core/{p-f0e44449.system.entry.js → p-f6020738.system.entry.js} +2 -2
- package/dist/pine-core/p-f6020738.system.entry.js.map +1 -0
- package/dist/pine-core/p-f6049a55.system.entry.js +2 -0
- package/dist/pine-core/p-f6049a55.system.entry.js.map +1 -0
- package/dist/pine-core/{p-00f6f3af.system.entry.js → p-f70327de.system.entry.js} +2 -2
- package/dist/pine-core/p-f70327de.system.entry.js.map +1 -0
- package/dist/pine-core/{p-e702a8dc.system.entry.js → p-f73aef05.system.entry.js} +2 -2
- package/dist/pine-core/p-f73aef05.system.entry.js.map +1 -0
- package/dist/pine-core/{p-1a7cd7a6.entry.js → p-fb877b9d.entry.js} +2 -2
- package/dist/pine-core/p-fb877b9d.entry.js.map +1 -0
- package/dist/pine-core/{p-1c32ffb3.entry.js → p-fbf10641.entry.js} +2 -2
- package/dist/pine-core/p-fbf10641.entry.js.map +1 -0
- package/dist/pine-core/p-fdf7a1db.system.entry.js +2 -0
- package/dist/pine-core/p-fdf7a1db.system.entry.js.map +1 -0
- package/dist/pine-core/p-fe23aa6f.system.entry.js +2 -0
- package/dist/pine-core/p-fe23aa6f.system.entry.js.map +1 -0
- package/dist/pine-core/{p-DmWU0f_O.system.js.map → p-oqHEiE2W.system.js.map} +1 -1
- package/dist/pine-core/p-pKEraGuG.system.js.map +1 -0
- package/dist/pine-core/{p-CyFXZIZs.system.js.map → p-pStt9pIi.system.js.map} +1 -1
- package/dist/pine-core/{p-BG99uNIQ.system.js → p-r1rzi0o4.system.js} +1 -1
- package/dist/pine-core/p-r1rzi0o4.system.js.map +1 -0
- package/dist/pine-core/p-tJa4KYNO.js.map +1 -1
- package/dist/pine-core/{p-4xv5UVkx.system.js.map → p-w6Q6Xc-v.system.js.map} +1 -1
- package/dist/pine-core/{p-CypP0PZf.system.js.map → p-y8wq27x0.system.js.map} +1 -1
- package/dist/pine-core/{p-hop4Cgg5.system.js.map → p-zZn2-0Xb.system.js.map} +1 -1
- package/dist/pine-core/pds-button.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-dropdown-menu.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-modal-content.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-popover.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-sortable.entry.esm.js.map +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/pine-core/pine-core.esm.js.map +1 -1
- package/dist/pine-core/pine-core.js +1 -1
- package/dist/types/components/pds-button/pds-button.d.ts +6 -1
- package/dist/types/components/pds-modal/pds-modal-content/pds-modal-content.d.ts +0 -5
- package/dist/types/components/pds-popover/pds-popover.d.ts +113 -10
- package/dist/types/components/pds-popover/popover-interface.d.ts +0 -4
- package/dist/types/components.d.ts +76 -10
- package/dist/types/stencil-public-runtime.d.ts +83 -8
- package/dist/types/utils/attributes.d.ts +2 -2
- package/dist/types/utils/form.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +1 -1
- package/hydrate/index.d.ts +40 -24
- package/hydrate/index.js +1619 -451
- package/hydrate/index.mjs +1618 -452
- package/package.json +12 -12
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/index-DDTyvZD7.js.map +0 -1
- package/dist/cjs/index-DtnvzYhe.js.map +0 -1
- package/dist/cjs/mock-pds-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-alert.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-combobox.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-dropdown-menu-item.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-filter.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-filters.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-link.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-loader.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-modal-content.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-modal-footer.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-modal-header.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-popover.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-progress.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-property.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-select.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-text.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-textarea.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-toast.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-tooltip.cjs.entry.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/index-Bf1dou5H.js.map +0 -1
- package/dist/esm/index-D4zJBIgl.js.map +0 -1
- package/dist/esm-es5/app-globals-DQuL1Twl.js +0 -2
- package/dist/esm-es5/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm-es5/index-Bf1dou5H.js +0 -3
- package/dist/esm-es5/index-Bf1dou5H.js.map +0 -1
- package/dist/esm-es5/index-D4zJBIgl.js.map +0 -1
- package/dist/pine-core/p-00f6f3af.system.entry.js.map +0 -1
- package/dist/pine-core/p-0486ecc6.system.entry.js.map +0 -1
- package/dist/pine-core/p-04ad9d2c.system.entry.js.map +0 -1
- package/dist/pine-core/p-07e129db.entry.js.map +0 -1
- package/dist/pine-core/p-0b593535.system.entry.js +0 -2
- package/dist/pine-core/p-0b593535.system.entry.js.map +0 -1
- package/dist/pine-core/p-1009009c.entry.js.map +0 -1
- package/dist/pine-core/p-100de2b7.entry.js.map +0 -1
- package/dist/pine-core/p-1039e8e9.entry.js.map +0 -1
- package/dist/pine-core/p-18179981.system.entry.js.map +0 -1
- package/dist/pine-core/p-1a7cd7a6.entry.js.map +0 -1
- package/dist/pine-core/p-1c32ffb3.entry.js.map +0 -1
- package/dist/pine-core/p-1d127ddc.system.entry.js +0 -2
- package/dist/pine-core/p-1d127ddc.system.entry.js.map +0 -1
- package/dist/pine-core/p-25cb810d.entry.js.map +0 -1
- package/dist/pine-core/p-2b102034.system.entry.js.map +0 -1
- package/dist/pine-core/p-2b12bc55.system.entry.js +0 -2
- package/dist/pine-core/p-2b12bc55.system.entry.js.map +0 -1
- package/dist/pine-core/p-2c407961.entry.js.map +0 -1
- package/dist/pine-core/p-2efc646c.system.entry.js +0 -2
- package/dist/pine-core/p-2efc646c.system.entry.js.map +0 -1
- package/dist/pine-core/p-2fd7f74e.entry.js.map +0 -1
- package/dist/pine-core/p-302849cf.system.entry.js +0 -2
- package/dist/pine-core/p-302849cf.system.entry.js.map +0 -1
- package/dist/pine-core/p-307f415a.system.entry.js.map +0 -1
- package/dist/pine-core/p-332338ee.entry.js +0 -2
- package/dist/pine-core/p-332338ee.entry.js.map +0 -1
- package/dist/pine-core/p-378df5eb.system.entry.js.map +0 -1
- package/dist/pine-core/p-3cc92094.system.entry.js.map +0 -1
- package/dist/pine-core/p-41abb654.entry.js +0 -2
- package/dist/pine-core/p-41abb654.entry.js.map +0 -1
- package/dist/pine-core/p-45d574f1.system.entry.js +0 -2
- package/dist/pine-core/p-45d574f1.system.entry.js.map +0 -1
- package/dist/pine-core/p-4802f8de.system.entry.js.map +0 -1
- package/dist/pine-core/p-4c6ec7c4.entry.js +0 -2
- package/dist/pine-core/p-4c6ec7c4.entry.js.map +0 -1
- package/dist/pine-core/p-4ef17b95.system.entry.js.map +0 -1
- package/dist/pine-core/p-538b3902.system.entry.js.map +0 -1
- package/dist/pine-core/p-544fea4c.system.entry.js.map +0 -1
- package/dist/pine-core/p-5ac7af9e.entry.js.map +0 -1
- package/dist/pine-core/p-5b1d6cd2.entry.js.map +0 -1
- package/dist/pine-core/p-6381a811.system.entry.js.map +0 -1
- package/dist/pine-core/p-6c36cab6.entry.js.map +0 -1
- package/dist/pine-core/p-6d48604a.system.entry.js.map +0 -1
- package/dist/pine-core/p-725c350c.entry.js.map +0 -1
- package/dist/pine-core/p-7792f47d.system.entry.js +0 -2
- package/dist/pine-core/p-7792f47d.system.entry.js.map +0 -1
- package/dist/pine-core/p-7af21e83.system.entry.js.map +0 -1
- package/dist/pine-core/p-81972d0f.entry.js +0 -2
- package/dist/pine-core/p-81972d0f.entry.js.map +0 -1
- package/dist/pine-core/p-81bc089e.entry.js +0 -2
- package/dist/pine-core/p-81bc089e.entry.js.map +0 -1
- package/dist/pine-core/p-85c41629.entry.js.map +0 -1
- package/dist/pine-core/p-86263a62.entry.js.map +0 -1
- package/dist/pine-core/p-87ed43d5.entry.js +0 -2
- package/dist/pine-core/p-87ed43d5.entry.js.map +0 -1
- package/dist/pine-core/p-88773b86.entry.js.map +0 -1
- package/dist/pine-core/p-8b3f4c31.entry.js +0 -2
- package/dist/pine-core/p-8b3f4c31.entry.js.map +0 -1
- package/dist/pine-core/p-8ff41ba8.entry.js.map +0 -1
- package/dist/pine-core/p-90e83476.system.entry.js.map +0 -1
- package/dist/pine-core/p-96a60a99.entry.js.map +0 -1
- package/dist/pine-core/p-96c27dba.entry.js.map +0 -1
- package/dist/pine-core/p-97299c83.system.entry.js.map +0 -1
- package/dist/pine-core/p-972a511a.entry.js.map +0 -1
- package/dist/pine-core/p-9766923f.entry.js.map +0 -1
- package/dist/pine-core/p-9ac84e63.entry.js.map +0 -1
- package/dist/pine-core/p-9b335a9f.entry.js.map +0 -1
- package/dist/pine-core/p-9c1bfa68.entry.js.map +0 -1
- package/dist/pine-core/p-9c579956.system.entry.js +0 -2
- package/dist/pine-core/p-9c579956.system.entry.js.map +0 -1
- package/dist/pine-core/p-9fbb9f0e.system.entry.js.map +0 -1
- package/dist/pine-core/p-BG99uNIQ.system.js.map +0 -1
- package/dist/pine-core/p-BPjnTOEL.system.js +0 -2
- package/dist/pine-core/p-BPjnTOEL.system.js.map +0 -1
- package/dist/pine-core/p-BbPAtVJG.system.js +0 -2
- package/dist/pine-core/p-BbPAtVJG.system.js.map +0 -1
- package/dist/pine-core/p-Bf1dou5H.js +0 -3
- package/dist/pine-core/p-Bf1dou5H.js.map +0 -1
- package/dist/pine-core/p-CIBXMJd-.system.js.map +0 -1
- package/dist/pine-core/p-Cqzmj3D8.system.js.map +0 -1
- package/dist/pine-core/p-CwNRZQss.system.js.map +0 -1
- package/dist/pine-core/p-Cxvdulqq.system.js +0 -3
- package/dist/pine-core/p-Cxvdulqq.system.js.map +0 -1
- package/dist/pine-core/p-D4zJBIgl.js.map +0 -1
- package/dist/pine-core/p-DCjZr2HA.system.js.map +0 -1
- package/dist/pine-core/p-DQuL1Twl.js +0 -2
- package/dist/pine-core/p-DQuL1Twl.js.map +0 -1
- package/dist/pine-core/p-WWWd_vEd.system.js +0 -2
- package/dist/pine-core/p-WWWd_vEd.system.js.map +0 -1
- package/dist/pine-core/p-a707a7da.system.entry.js +0 -2
- package/dist/pine-core/p-a707a7da.system.entry.js.map +0 -1
- package/dist/pine-core/p-a9cfaa1f.entry.js.map +0 -1
- package/dist/pine-core/p-ae2d59cd.entry.js.map +0 -1
- package/dist/pine-core/p-b23dd01c.entry.js.map +0 -1
- package/dist/pine-core/p-b669e1d9.entry.js +0 -2
- package/dist/pine-core/p-b669e1d9.entry.js.map +0 -1
- package/dist/pine-core/p-b9aafec7.system.entry.js.map +0 -1
- package/dist/pine-core/p-b9e12535.system.entry.js.map +0 -1
- package/dist/pine-core/p-bc2530d7.entry.js +0 -2
- package/dist/pine-core/p-bc2530d7.entry.js.map +0 -1
- package/dist/pine-core/p-bc637bed.system.entry.js.map +0 -1
- package/dist/pine-core/p-c2599425.entry.js.map +0 -1
- package/dist/pine-core/p-c3f84df8.system.entry.js.map +0 -1
- package/dist/pine-core/p-c44d3551.entry.js.map +0 -1
- package/dist/pine-core/p-c55fc47e.entry.js.map +0 -1
- package/dist/pine-core/p-cffc98ae.entry.js.map +0 -1
- package/dist/pine-core/p-d2b15290.system.entry.js +0 -2
- package/dist/pine-core/p-d2b15290.system.entry.js.map +0 -1
- package/dist/pine-core/p-d61f3ab0.system.entry.js.map +0 -1
- package/dist/pine-core/p-da1fb45d.system.entry.js.map +0 -1
- package/dist/pine-core/p-dace69e7.system.entry.js.map +0 -1
- package/dist/pine-core/p-db12273e.system.entry.js.map +0 -1
- package/dist/pine-core/p-e18c3044.entry.js.map +0 -1
- package/dist/pine-core/p-e6085566.system.entry.js +0 -2
- package/dist/pine-core/p-e6085566.system.entry.js.map +0 -1
- package/dist/pine-core/p-e683e197.system.entry.js +0 -2
- package/dist/pine-core/p-e683e197.system.entry.js.map +0 -1
- package/dist/pine-core/p-e692908e.entry.js.map +0 -1
- package/dist/pine-core/p-e6b051e8.system.entry.js +0 -2
- package/dist/pine-core/p-e6b051e8.system.entry.js.map +0 -1
- package/dist/pine-core/p-e702a8dc.system.entry.js.map +0 -1
- package/dist/pine-core/p-ed724664.system.entry.js +0 -2
- package/dist/pine-core/p-ed724664.system.entry.js.map +0 -1
- package/dist/pine-core/p-ed7bea99.system.entry.js +0 -2
- package/dist/pine-core/p-ed7bea99.system.entry.js.map +0 -1
- package/dist/pine-core/p-ee583234.system.entry.js.map +0 -1
- package/dist/pine-core/p-f0e44449.system.entry.js.map +0 -1
- package/dist/pine-core/p-f15cd180.entry.js +0 -2
- package/dist/pine-core/p-f15cd180.entry.js.map +0 -1
- package/dist/pine-core/p-f25274c9.entry.js.map +0 -1
- package/dist/pine-core/p-f5d78141.entry.js.map +0 -1
- package/dist/pine-core/p-f61ee383.system.entry.js.map +0 -1
- package/dist/pine-core/p-f8e1545e.entry.js.map +0 -1
- package/dist/pine-core/p-f911dde3.system.entry.js.map +0 -1
- package/dist/pine-core/p-fc2f3466.system.entry.js +0 -2
- package/dist/pine-core/p-fc2f3466.system.entry.js.map +0 -1
- package/dist/pine-core/p-fe60ee09.entry.js +0 -2
- package/dist/pine-core/p-fe60ee09.entry.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["pdsTabsCss","PdsTabs","exports","class_1","prototype","tabClickHandler","event","this","componentId","detail","activeTabIndex","activeTabName","tabs","name","handleKeyDown","ev","keySet","target","targetTab","closest","isOwnTab","el","includes","key","preventDefault","moveActiveTab","firstTabNumber","lastTabNumber","length","moveFocusTo","children","focus","findAllChildren","_this","allTabs","Array","from","querySelectorAll","allTabPanels","filter","tab","tabPanels","panel","propGeneration","child","index","parentComponentId","toString","variant","selected","passPropsToChildren","forEach","classNames","className","variantClassName","concat","componentWillLoad","componentWillRender","render","h","Host","class","id","role","tablistLabel","part"],"sources":["src/components/pds-tabs/pds-tabs.scss?tag=pds-tabs&encapsulation=shadow","src/components/pds-tabs/pds-tabs.tsx"],"sourcesContent":[":host {\n /**\n * @prop --tabs-dimension-panel-margin-top: Optional margin-top for panels\n */\n --tabs-dimension-panel-margin-top: var(--pine-dimension-none);\n /**\n * @prop --tabs-dimension-panel-padding: Optional padding for panels\n */\n --tabs-dimension-panel-padding: 0;\n\n display: block;\n}\n\n.pds-tabs__tablist {\n display: flex;\n flex-wrap: wrap;\n gap: var(--pine-dimension-md);\n}\n\n:host(.pds-tabs--availability) .pds-tabs__tablist {\n gap: var(--pine-dimension-xs);\n}\n\n:host(.pds-tabs--filter) .pds-tabs__tablist {\n gap: var(--pine-dimension-sm);\n}\n\n:host(.pds-tabs--pill) .pds-tabs__tablist {\n background-color: var(--pine-color-grey-100);\n border: var(--pine-border-width-thin) solid var(--pine-color-grey-200);\n border-radius: var(--pine-dimension-100);\n display: inline-flex;\n display: flex;\n gap: 0;\n height: var(--pine-dimension-450);\n}\n","import { Component, Element, Host, h, Prop, Listen } from '@stencil/core';\n\n /**\n * @slot tabs - Content is placed within the `div[role=\"tablist\"]` element as children\n * @slot tabpanels - Content is placed directly after the `div[role=\"tablist\"]` element as siblings\n * @part tab-list - Exposes the container element that holds all the tab buttons for styling.\n */\n@Component({\n tag: 'pds-tabs',\n styleUrls: ['pds-tabs.scss'],\n shadow: true,\n})\nexport class PdsTabs {\n private tabs;\n private tabPanels;\n\n @Element() el: HTMLPdsTabsElement;\n\n /**\n * Sets the aria-label attached to the tablist element\n */\n @Prop() tablistLabel!: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Sets tabs variant styles as outlined in Figma documentation\n */\n @Prop() variant!: 'primary' | 'availability' | 'filter' | 'pill';\n\n /**\n * Sets the starting active tab name and maintains the name as the component re-renders\n */\n @Prop({mutable: true}) activeTabName!: string;\n\n /**\n * Sets the starting active tab index number and maintains the index number as the component re-renders\n */\n /** @internal */\n @Prop({mutable: true}) activeTabIndex: number;\n\n @Listen('pdsTabClick', {\n target: 'body',\n })\n tabClickHandler(event: CustomEvent<any>) {\n if (this.componentId === event.detail[1]) {\n this.activeTabIndex = event.detail[0];\n this.activeTabName = this.tabs[this.activeTabIndex].name;\n }\n }\n\n @Listen('keydown', {})\n handleKeyDown(ev: KeyboardEvent) {\n const keySet = [\"ArrowLeft\", \"ArrowRight\", \"Home\", \"End\"];\n\n // Only handle keyboard navigation if the event originated from a tab button\n // that belongs to THIS tabs component\n const target = ev.target as HTMLElement;\n const targetTab = target.closest('pds-tab');\n\n // Check if the tab belongs to this tabs instance (not a nested one)\n const isOwnTab = targetTab && targetTab.closest('pds-tabs') === this.el;\n\n if (keySet.includes(ev.key) && isOwnTab) {\n ev.preventDefault();\n this.moveActiveTab(ev.key);\n }\n }\n\n private moveActiveTab(key: string) {\n const firstTabNumber = 0;\n const lastTabNumber = this.tabs.length - 1;\n\n let moveFocusTo = null;\n\n switch (key) {\n case 'ArrowLeft':\n moveFocusTo = (this.activeTabIndex === firstTabNumber) ? lastTabNumber : (this.activeTabIndex + (-1));\n break;\n case 'ArrowRight':\n moveFocusTo = (this.activeTabIndex === lastTabNumber) ? firstTabNumber : (this.activeTabIndex + 1);\n break;\n case 'Home':\n moveFocusTo = firstTabNumber;\n break;\n case 'End':\n moveFocusTo = lastTabNumber;\n break;\n }\n\n // Move focus to the button element within `pds-tab`\n this.tabs[moveFocusTo].children[0].focus();\n this.activeTabName = this.tabs[moveFocusTo].name;\n this.activeTabIndex = moveFocusTo;\n }\n\n private findAllChildren() {\n // Only select direct children tabs/tabpanels, not nested ones\n const allTabs = Array.from(this.el.querySelectorAll('pds-tab'));\n const allTabPanels = Array.from(this.el.querySelectorAll('pds-tabpanel'));\n\n // Filter to only include tabs that belong to this tabs component (not nested)\n this.tabs = allTabs.filter(tab => tab.closest('pds-tabs') === this.el);\n this.tabPanels = allTabPanels.filter(panel => panel.closest('pds-tabs') === this.el);\n }\n\n private propGeneration(child, index = 0) {\n child.parentComponentId = this.componentId.toString();\n child.variant = this.variant.toString();\n child.selected = (this.activeTabName === child.name) ? true : false;\n child['index'] = index;\n }\n\n private passPropsToChildren() {\n this.tabs.forEach((child, index) => {\n if (this.activeTabName === child.name) this.activeTabIndex = index;\n this.propGeneration(child, index);\n });\n\n this.tabPanels.forEach((child) => {\n this.propGeneration(child);\n });\n }\n\n private classNames() {\n let className = `pds-tabs`;\n if (this.variant && this.variant != 'primary') {\n const variantClassName = `pds-tabs--${this.variant}`;\n className += ' ' + variantClassName;\n }\n\n return className;\n };\n\n componentWillLoad() {\n this.findAllChildren();\n }\n\n componentWillRender() {\n this.passPropsToChildren();\n }\n\n render() {\n return (\n <Host active-tab-name={this.activeTabName} class={this.classNames()} id={this.componentId}>\n <div class=\"pds-tabs__tablist\" role=\"tablist\" aria-label={this.tablistLabel} part=\"tab-list\">\n <slot name=\"tabs\" />\n </div>\n <slot name=\"tabpanels\" />\n </Host>\n );\n }\n}\n"],"mappings":"0JAAA,IAAMA,EAAa,2rB,ICYNC,EAAOC,EAAA,sB,wBAmClBC,EAAAC,UAAAC,gBAAA,SAAgBC,GACd,GAAIC,KAAKC,cAAgBF,EAAMG,OAAO,GAAI,CACxCF,KAAKG,eAAiBJ,EAAMG,OAAO,GACnCF,KAAKI,cAAgBJ,KAAKK,K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-items:center;display:-ms-flexbox;display:flex;padding-block:var(--pine-dimension-xs);padding-inline:var(--pine-dimension-md)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__actions.sc-pds-sortable-item{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-padding-start:var(--pine-dimension-md);padding-inline-start:var(--pine-dimension-md)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{line-height:1;-webkit-margin-end:var(--pine-dimension-md);margin-inline-end:var(--pine-dimension-md)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:first-child{border-start-end-radius:calc(var(--pine-dimension-xs) * 1.25);border-start-start-radius:calc(var(--pine-dimension-xs) * 1.25)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:last-child{border-end-end-radius:calc(var(--pine-dimension-xs) * 1.25);border-end-start-radius:calc(var(--pine-dimension-xs) * 1.25)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h:last-child{-webkit-border-after:0;border-block-end:0}.pds-sortable--handle-type-row .pds-sortable-item.sc-pds-sortable-item-h{cursor:-webkit-grab;cursor:grab}.pds-sortable--handle-type-handle .pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{cursor:-webkit-grab;cursor:grab}.pds-sortable-item.sc-pds-sortable-item-h:hover{background-color:var(--pine-color-background-container-hover)}.pds-sortable-item.sc-pds-sortable-item-h:hover pds-icon.sc-pds-sortable-item{color:var(--pine-color-info)}.pds-sortable-item--drag.sc-pds-sortable-item-h{background-color:var(--pine-color-background-container);border-radius:0;-webkit-box-shadow:var(--pine-box-shadow-400);box-shadow:var(--pine-box-shadow-400);opacity:1}.pds-sortable-item--ghost.sc-pds-sortable-item-h{background-color:var(--pine-color-background-container-hover);border-radius:0}";const d=class{constructor(s){e(this,s);this.enableActions=false;this.showHandle=false}componentWillRender(){this.sortableRef=this.el.closest("pds-sortable");if(this.sortableRef&&this.sortableRef.handleType==="handle"){this.showHandle=true}}render(){return s(r,{key:"c09d0efc16e9cfb2e3eb567620d768e55aedaf77",class:"pds-sortable-item",id:this.componentId},this.showHandle&&s("div",{key:"256c70c9ae566781ee3647196ba7bfa8b2e8f7cf",class:"pds-sortable-item__handle"},s("pds-icon",{key:"ec56d4eac7f1f464df061297a613554565130d3d",icon:t})),s("slot",{key:"6131eda3a2b8a7ef96883f9f791a2cf777407fa4"}),this.enableActions&&s("div",{key:"126589fa42498a25f5049786def7fb96f16087aa",class:"pds-sortable-item__actions"},s("slot",{key:"e2726fb1ae3f74c5ff4b7879ee32b826fb2b8518",name:"sortable-item-actions"})))}get el(){return a(this)}};d.style=i;export{d as pds_sortable_item};
|
|
2
|
-
//# sourceMappingURL=p-41abb654.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["pdsSortableItemCss","PdsSortableItem","constructor","hostRef","this","enableActions","showHandle","componentWillRender","sortableRef","el","closest","handleType","render","h","Host","key","class","id","componentId","icon","handleIcon","name"],"sources":["src/components/pds-sortable/pds-sortable-item/pds-sortable-item.scss?tag=pds-sortable-item&encapsulation=scoped","src/components/pds-sortable/pds-sortable-item/pds-sortable-item.tsx"],"sourcesContent":[":host(.pds-sortable-item) {\n align-items: center;\n display: flex;\n padding-block: var(--pine-dimension-xs);\n padding-inline: var(--pine-dimension-md);\n\n .pds-sortable-item__actions {\n margin-inline-start: auto;\n padding-inline-start: var(--pine-dimension-md);\n }\n\n .pds-sortable-item__handle {\n line-height: 1;\n margin-inline-end: var(--pine-dimension-md);\n }\n\n // styles when sortable is bordered\n .pds-sortable--bordered & {\n &:first-child {\n border-start-end-radius: calc(var(--pine-dimension-xs) * 1.25);\n border-start-start-radius: calc(var(--pine-dimension-xs) * 1.25);\n }\n\n &:last-child {\n border-end-end-radius: calc(var(--pine-dimension-xs) * 1.25);\n border-end-start-radius: calc(var(--pine-dimension-xs) * 1.25);\n }\n }\n\n // styles when sortable is divided\n .pds-sortable--divided & {\n border-block-end: var(--pine-border);\n\n &:last-child {\n border-block-end: 0;\n }\n }\n\n // cursor styles based on handle-type\n .pds-sortable--handle-type-row & {\n cursor: grab;\n }\n\n .pds-sortable--handle-type-handle & {\n .pds-sortable-item__handle {\n cursor: grab;\n }\n }\n}\n\n:host(.pds-sortable-item):hover {\n background-color: var(--pine-color-background-container-hover);\n\n pds-icon {\n color: var(--pine-color-info)\n }\n}\n\n:host(.pds-sortable-item--drag) {\n background-color: var(--pine-color-background-container);\n border-radius: 0;\n box-shadow: var(--pine-box-shadow-400);\n opacity: 1;\n}\n\n:host(.pds-sortable-item--ghost) {\n background-color: var(--pine-color-background-container-hover);\n border-radius: 0;\n}\n","import { Component, Element, Host, h, Prop } from '@stencil/core';\n\nimport { handle as handleIcon } from '@pine-ds/icons/icons';\n/**\n * @slot sortable-item-actions - Content is placed within the `pds-sortable-item__actions` element as children. This slot is only rendered if `actions` is set to `true`.\n */\n@Component({\n tag: 'pds-sortable-item',\n styleUrl: 'pds-sortable-item.scss',\n scoped: true,\n})\nexport class PdsSortableItem {\n @Element() el: HTMLPdsSortableItemElement;\n sortableRef: HTMLPdsSortableElement;\n /**\n * Determines whether `sortable-item-actions` slot should be enabled.\n * @defaultValue false\n */\n @Prop() enableActions = false;\n\n /**\n * A unique identifier used for the sortable item `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines whether `sortable-item` should have a handle.\n * @defaultValue false\n */\n @Prop({ mutable: true }) showHandle = false;\n\n componentWillRender() {\n // When the parent sortable has a type of 'handle', the sortable items\n // will automatically set showHandle to 'true'.\n this.sortableRef = this.el.closest('pds-sortable') as HTMLPdsSortableElement;\n\n if (this.sortableRef && this.sortableRef.handleType === 'handle') {\n this.showHandle = true;\n }\n }\n\n render() {\n return (\n <Host class=\"pds-sortable-item\" id={this.componentId}>\n {this.showHandle && (\n <div class=\"pds-sortable-item__handle\">\n <pds-icon icon={handleIcon}></pds-icon>\n </div>\n )}\n <slot></slot>\n {this.enableActions && (\n <div class=\"pds-sortable-item__actions\">\n <slot name=\"sortable-item-actions\" />\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"6FAAA,MAAMA,EAAqB,yjE,MCWdC,EAAe,MAL5B,WAAAC,CAAAC,G,UAYUC,KAAaC,cAAG,MAWCD,KAAUE,WAAG,KA6BvC,CA3BC,mBAAAC,GAGEH,KAAKI,YAAcJ,KAAKK,GAAGC,QAAQ,gBAEnC,GAAIN,KAAKI,aAAeJ,KAAKI,YAAYG,aAAe,SAAU,CAChEP,KAAKE,WAAa,I,EAItB,MAAAM,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,oBAAoBC,GAAIb,KAAKc,aACtCd,KAAKE,YACJO,EAAK,OAAAE,IAAA,2CAAAC,MAAM,6BACTH,EAAA,YAAAE,IAAA,2CAAUI,KAAMC,KAGpBP,EAAa,QAAAE,IAAA,6CACZX,KAAKC,eACJQ,EAAK,OAAAE,IAAA,2CAAAC,MAAM,8BACTH,EAAM,QAAAE,IAAA,2CAAAM,KAAK,2B","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,r){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function o(t){try{d(r.next(t))}catch(t){a(t)}}function s(t){try{d(r["throw"](t))}catch(t){a(t)}}function d(t){t.done?i(t.value):n(t.value).then(o,s)}d((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return d([t,e])}}function d(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(r=1,n&&(a=s[0]&2?n["return"]:s[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;if(n=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;n=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){i.label=s[1];break}if(s[0]===6&&i.label<a[1]){i.label=a[1];a=s;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(s);break}if(a[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];n=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-Cxvdulqq.system.js"],(function(t){"use strict";var e,i,r,n;return{setters:[function(t){e=t.r;i=t.c;r=t.h;n=t.g}],execute:function(){var a=".pds-modal__backdrop{-ms-flex-align:start;align-items:flex-start;background-color:rgba(0, 0, 0, 0.4);border:0;display:-ms-flexbox;display:flex;height:100%;inset:0;-ms-flex-pack:center;justify-content:center;margin:0;max-height:100%;max-width:100%;opacity:0;padding:0;position:fixed;-webkit-transition:opacity 0.2s ease, visibility 0.2s ease;transition:opacity 0.2s ease, visibility 0.2s ease;visibility:hidden;width:100%;z-index:var(--pine-z-index-modal)}@supports ((-webkit-backdrop-filter: blur(3px)) or (backdrop-filter: blur(3px))){.pds-modal__backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}}pds-modal .pds-modal__backdrop{z-index:var(--pine-z-index-priority)}.pds-modal__backdrop::-webkit-backdrop{background:transparent}.pds-modal__backdrop::-ms-backdrop{background:transparent}.pds-modal__backdrop::backdrop{background:transparent}.pds-modal__backdrop.open{opacity:1;visibility:visible}.pds-modal{background:var(--pine-color-background-container);border-radius:var(--pine-dimension-sm);-webkit-box-shadow:var(--pine-box-shadow-400);box-shadow:var(--pine-box-shadow-400);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:var(--pine-dimension-md);max-height:none;width:100%}.pds-modal.pds-modal--scrollable{max-height:calc(100vh - (5vh + 96px))}@supports (height: 100dvh){.pds-modal.pds-modal--scrollable{max-height:calc(100dvh - (5dvh + 96px))}}@media (min-width: 992px){.pds-modal{-webkit-margin-before:6vh;margin-block-start:6vh}@supports (height: 100dvh){.pds-modal{-webkit-margin-before:6dvh;margin-block-start:6dvh}}}@media (min-width: 1200px){.pds-modal{-webkit-margin-before:8vh;margin-block-start:8vh}@supports (height: 100dvh){.pds-modal{-webkit-margin-before:8dvh;margin-block-start:8dvh}}}.pds-modal--sm{max-width:520px}.pds-modal--md{max-width:700px}.pds-modal--lg{max-width:900px}.pds-modal--fullscreen{border-radius:0;height:100%;margin:0;max-height:100vh;max-width:100%}@supports (height: 100dvh){.pds-modal--fullscreen{max-height:100dvh}}.pds-modal--fullscreen.pds-modal--scrollable{max-height:100vh}@supports (height: 100dvh){.pds-modal--fullscreen.pds-modal--scrollable{max-height:100dvh}}.pds-modal--fullscreen .pds-modal-content{-ms-flex:1;flex:1}.pds-modal--scrollable pds-modal-content{-webkit-border-after:1px solid transparent;border-block-end:1px solid transparent;-webkit-border-before:1px solid transparent;border-block-start:1px solid transparent;overflow-y:auto}.pds-modal:not(.pds-modal--scrollable) pds-modal-content{overflow-y:visible}";var o=t("pds_modal",function(){function t(t){var r=this;e(this,t);this.pdsModalOpen=i(this,"pdsModalOpen");this.pdsModalClose=i(this,"pdsModalClose");this.focusableElements=[];this.backdropDismiss=true;this.open=false;this.size="md";this.scrollable=true;this.focusableElementsArray=[];this.handleBackdropClick=function(t){if(!r.backdropDismiss||!r.open)return;if(t.target.classList.contains("pds-modal__backdrop")){t.stopPropagation();if(r.isInnermostModal()){r.hideModal()}}};this.handleKeyDown=function(t){if(!r.open)return;if(t.key==="Escape"){if(r.isInnermostModal()){t.preventDefault();r.hideModal()}return}if(t.key==="Tab"){if(r.focusableElements.length===0)return;var e=r.focusableElements[0];var i=r.focusableElements[r.focusableElements.length-1];var n=document.activeElement;var a=n===e||e.contains(n);var o=n===i||i.contains(n);if(t.shiftKey&&a){t.preventDefault();r.focusElement(i)}else if(!t.shiftKey&&o){t.preventDefault();r.focusElement(e)}}}}t.prototype.componentDidLoad=function(){this.modalRef=this.el.querySelector(".pds-modal__backdrop");document.addEventListener("keydown",this.handleKeyDown)};t.prototype.disconnectedCallback=function(){document.removeEventListener("keydown",this.handleKeyDown)};t.prototype.handleOpenChange=function(t){if(t){this.showModal()}else{this.hideModal()}};t.prototype.updateFocusableElements=function(){if(!this.modalRef)return;var t=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"pds-button:not([disabled])","pds-link:not([disabled])","pds-input:not([disabled])","pds-checkbox:not([disabled])","pds-radio:not([disabled])","pds-switch:not([disabled])","pds-select:not([disabled])"].join(",");this.focusableElements=Array.from(this.modalRef.querySelectorAll(t));this.focusableElements=this.focusableElements.filter((function(t){var e=window.getComputedStyle(t);return e.display!=="none"&&e.visibility!=="hidden"}))};t.prototype.setInitialFocus=function(){if(this.focusableElements.length===0)return;var t=this.focusableElements[0];this.focusElement(t)};t.prototype.focusElement=function(t){if(!t)return;try{t.focus();setTimeout((function(){if(document.activeElement!==t){if(t.shadowRoot){var e=t.shadowRoot.querySelector("button, [tabindex], input, a[href]");if(e){e.focus()}}}}),0)}catch(t){console.error("Error focusing element:",t)}};t.prototype.showModal=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(this.modalRef){try{this.previousActiveElement=document.activeElement;this.modalRef.showModal();this.open=true;setTimeout((function(){t.updateFocusableElements();t.setInitialFocus();t.pdsModalOpen.emit()}),100)}catch(t){console.error("Failed to show modal:",t)}}return[2]}))}))};t.prototype.hideModal=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.modalRef){try{this.modalRef.close();this.open=false;if(this.previousActiveElement&&typeof this.previousActiveElement.focus==="function"){this.previousActiveElement.focus()}this.pdsModalClose.emit()}catch(t){console.error("Failed to hide modal:",t)}}return[2]}))}))};t.prototype.getBackdropZIndex=function(t){var e=t.querySelector(".pds-modal__backdrop");return e?parseInt(getComputedStyle(e).zIndex,10):-1};t.prototype.isInnermostModal=function(){var t=this;var e=Array.from(document.querySelectorAll("pds-modal")).filter((function(t){return t.open}));if(e.length===0)return false;var i=this.el.querySelector(".pds-modal__backdrop");if(!i)return false;var r=e.map((function(e){return t.getBackdropZIndex(e)}));var n=Math.max.apply(Math,r);var a=this.getBackdropZIndex(this.el);return a===n};t.prototype.render=function(){var t;return r("dialog",{key:"ca1fe22c9f9aa26e74234e5195c007760cbbf818",class:{"pds-modal__backdrop":true,open:this.open},"aria-modal":"true","aria-labelledby":"".concat(this.componentId,"-heading"),onClick:this.handleBackdropClick},r("div",{key:"d0f297574d53dc1718277a58c2ade00a5451f96b",class:(t={"pds-modal":true},t["pds-modal--".concat(this.size)]=true,t["pds-modal--scrollable"]=this.scrollable,t)},r("slot",{key:"37bb5abda88b4db9304884532951980ea8b9eaf8"})))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:["handleOpenChange"]}},enumerable:false,configurable:true});return t}());o.style=a}}}));
|
|
2
|
-
//# sourceMappingURL=p-45d574f1.system.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["pdsModalCss","PdsModal","exports","class_1","hostRef","_this","this","focusableElements","backdropDismiss","open","size","scrollable","focusableElementsArray","handleBackdropClick","e","target","classList","contains","stopPropagation","isInnermostModal","hideModal","handleKeyDown","key","preventDefault","length","firstFocusableElement","lastFocusableElement","activeElement","document","isFirstElement","isLastElement","shiftKey","focusElement","prototype","componentDidLoad","modalRef","el","querySelector","addEventListener","disconnectedCallback","removeEventListener","handleOpenChange","newValue","showModal","updateFocusableElements","selector","join","Array","from","querySelectorAll","filter","style","window","getComputedStyle","display","visibility","setInitialFocus","firstElement","element","focus","setTimeout","shadowRoot","focusableInShadow","error","console","previousActiveElement","pdsModalOpen","emit","close","pdsModalClose","getBackdropZIndex","modal","backdrop","parseInt","zIndex","openModals","thisBackdrop","modalZIndexes","map","maxZIndex","Math","max","apply","thisZIndex","render","h","class","concat","componentId","onClick","_a"],"sources":["src/components/pds-modal/pds-modal.scss?tag=pds-modal","src/components/pds-modal/pds-modal.tsx"],"sourcesContent":[".pds-modal__backdrop {\n align-items: flex-start;\n background-color: rgba(0, 0, 0, 0.4);\n border: 0;\n display: flex;\n height: 100%;\n inset: 0;\n justify-content: center;\n margin: 0;\n max-height: 100%;\n max-width: 100%;\n opacity: 0;\n padding: 0;\n position: fixed;\n transition: opacity 0.2s ease, visibility 0.2s ease;\n visibility: hidden;\n width: 100%;\n z-index: var(--pine-z-index-modal);\n\n @supports (backdrop-filter: blur(3px)) {\n backdrop-filter: blur(3px);\n }\n\n // Increase z-index for nested modals\n pds-modal & {\n z-index: var(--pine-z-index-priority);\n }\n\n &::backdrop {\n background: transparent;\n }\n\n &.open {\n opacity: 1;\n visibility: visible;\n }\n}\n\n.pds-modal {\n background: var(--pine-color-background-container);\n border-radius: var(--pine-dimension-sm);\n box-shadow: var(--pine-box-shadow-400);\n display: flex;\n flex-direction: column;\n margin: var(--pine-dimension-md);\n max-height: none;\n width: 100%;\n\n &.pds-modal--scrollable {\n max-height: calc(100vh - (calc(5vh + 96px)));\n\n @supports (height: 100dvh) {\n max-height: calc(100dvh - (calc(5dvh + 96px)));\n }\n }\n\n @media (min-width: 992px) {\n margin-block-start: 6vh;\n\n @supports (height: 100dvh) {\n margin-block-start: 6dvh;\n }\n }\n\n @media (min-width: 1200px) {\n margin-block-start: 8vh;\n\n @supports (height: 100dvh) {\n margin-block-start: 8dvh;\n }\n }\n}\n\n.pds-modal--sm {\n max-width: 520px;\n}\n\n.pds-modal--md {\n max-width: 700px;\n}\n\n.pds-modal--lg {\n max-width: 900px;\n}\n\n.pds-modal--fullscreen {\n border-radius: 0;\n height: 100%;\n margin: 0;\n max-height: 100vh;\n max-width: 100%;\n\n @supports (height: 100dvh) {\n max-height: 100dvh;\n }\n\n &.pds-modal--scrollable {\n max-height: 100vh;\n\n @supports (height: 100dvh) {\n max-height: 100dvh;\n }\n }\n}\n\n.pds-modal-content {\n .pds-modal--fullscreen & {\n flex: 1;\n }\n}\n\n// Scrollable modal styles (default behavior)\n.pds-modal--scrollable {\n pds-modal-content {\n border-block-end: 1px solid transparent;\n border-block-start: 1px solid transparent;\n overflow-y: auto;\n }\n}\n\n// Non-scrollable modal styles\n.pds-modal:not(.pds-modal--scrollable) {\n pds-modal-content {\n overflow-y: visible;\n }\n}\n\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\n\n@Component({\n tag: 'pds-modal',\n styleUrl: 'pds-modal.scss',\n shadow: false\n})\nexport class PdsModal {\n private modalRef: HTMLDialogElement;\n private previousActiveElement: HTMLElement;\n private focusableElements: HTMLElement[] = [];\n\n @Element() el: HTMLPdsModalElement;\n\n /**\n * Whether the modal can be dismissed by clicking the backdrop\n * @default true\n */\n @Prop() backdropDismiss = true;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Whether the modal is open\n * @default false\n */\n @Prop({ mutable: true }) open = false;\n\n /**\n * The size of the modal\n * @default 'md'\n */\n @Prop() size: 'sm' | 'md' | 'lg' | 'fullscreen' = 'md';\n\n /**\n * Whether the modal content should be scrollable\n * @default true\n */\n @Prop() scrollable = true;\n\n /**\n * Emitted when the modal is opened\n */\n @Event() pdsModalOpen: EventEmitter<void>;\n\n /**\n * Emitted when the modal is closed\n */\n @Event() pdsModalClose: EventEmitter<void>;\n\n /**\n * Stores the list of focusable elements in the modal\n */\n @State() focusableElementsArray: HTMLElement[] = [];\n\n componentDidLoad() {\n this.modalRef = this.el.querySelector('.pds-modal__backdrop') as HTMLDialogElement;\n // Add keyboard event listener\n document.addEventListener('keydown', this.handleKeyDown);\n }\n\n disconnectedCallback() {\n // Clean up event listener\n document.removeEventListener('keydown', this.handleKeyDown);\n }\n\n @Watch('open')\n handleOpenChange(newValue: boolean) {\n if (newValue) {\n this.showModal();\n } else {\n this.hideModal();\n }\n }\n\n /**\n * Updates the list of focusable elements in the modal\n */\n private updateFocusableElements() {\n if (!this.modalRef) return;\n\n // Get all focusable elements within the modal\n const selector = [\n 'a[href]',\n 'button:not([disabled])',\n 'input:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n 'pds-button:not([disabled])',\n 'pds-link:not([disabled])',\n 'pds-input:not([disabled])',\n 'pds-checkbox:not([disabled])',\n 'pds-radio:not([disabled])',\n 'pds-switch:not([disabled])',\n 'pds-select:not([disabled])',\n ].join(',');\n\n this.focusableElements = Array.from(\n this.modalRef.querySelectorAll(selector)\n ) as HTMLElement[];\n\n // Filter out elements with display: none or visibility: hidden\n this.focusableElements = this.focusableElements.filter(el => {\n const style = window.getComputedStyle(el);\n return style.display !== 'none' && style.visibility !== 'hidden';\n });\n }\n\n /**\n * Sets focus to the first focusable element in the modal\n */\n private setInitialFocus() {\n if (this.focusableElements.length === 0) return;\n\n // Focus the first focusable element\n const firstElement = this.focusableElements[0];\n\n // For web components, we need to ensure they're properly focused\n this.focusElement(firstElement);\n }\n\n /**\n * Helper method to focus an element, with special handling for web components\n */\n private focusElement(element: HTMLElement) {\n if (!element) return;\n\n try {\n // Try standard focus first\n element.focus();\n\n // Check if focus worked\n setTimeout(() => {\n if (document.activeElement !== element) {\n // For web components, try to find a focusable element inside\n if (element.shadowRoot) {\n const focusableInShadow = element.shadowRoot.querySelector(\n 'button, [tabindex], input, a[href]'\n ) as HTMLElement;\n\n if (focusableInShadow) {\n focusableInShadow.focus();\n }\n }\n }\n }, 0);\n } catch (error) {\n console.error('Error focusing element:', error);\n }\n }\n\n /**\n * Opens the modal\n */\n @Method()\n async showModal() {\n if (this.modalRef) {\n try {\n // Store the currently focused element to restore focus when modal closes\n this.previousActiveElement = document.activeElement as HTMLElement;\n\n // Use native dialog showModal method which makes the rest of the page inert\n this.modalRef.showModal();\n this.open = true;\n\n // Update focusable elements and set initial focus\n // Using a longer timeout to ensure all components are fully rendered\n setTimeout(() => {\n this.updateFocusableElements();\n this.setInitialFocus();\n this.pdsModalOpen.emit();\n }, 100);\n } catch (error) {\n console.error('Failed to show modal:', error);\n }\n }\n }\n\n /**\n * Closes the modal\n */\n @Method()\n async hideModal() {\n if (this.modalRef) {\n try {\n this.modalRef.close();\n this.open = false;\n\n // Restore focus to the element that was focused before the modal was opened\n if (this.previousActiveElement && typeof this.previousActiveElement.focus === 'function') {\n this.previousActiveElement.focus();\n }\n\n this.pdsModalClose.emit();\n } catch (error) {\n console.error('Failed to hide modal:', error);\n }\n }\n }\n\n private handleBackdropClick = (e: MouseEvent) => {\n if (!this.backdropDismiss || !this.open) return;\n\n if ((e.target as HTMLElement).classList.contains('pds-modal__backdrop')) {\n e.stopPropagation();\n\n // Only close if this is the innermost modal\n if (this.isInnermostModal()) {\n this.hideModal();\n }\n }\n };\n\n /**\n * Gets the z-index of a modal's backdrop element\n */\n private getBackdropZIndex(modal: Element): number {\n const backdrop = modal.querySelector('.pds-modal__backdrop');\n return backdrop ? parseInt(getComputedStyle(backdrop).zIndex, 10) : -1;\n }\n\n /**\n * Checks if this modal is the innermost (highest z-index) modal\n */\n private isInnermostModal(): boolean {\n // Find all open modals\n const openModals = Array.from(document.querySelectorAll('pds-modal')).filter(\n modal => modal.open\n );\n\n if (openModals.length === 0) return false;\n\n // Get this modal's backdrop element\n const thisBackdrop = this.el.querySelector('.pds-modal__backdrop');\n if (!thisBackdrop) return false;\n\n // Get computed z-index of all open modal backdrops\n const modalZIndexes = openModals.map(modal => this.getBackdropZIndex(modal));\n\n // Get the highest z-index\n const maxZIndex = Math.max(...modalZIndexes);\n\n // Check if this modal's backdrop has the highest z-index\n const thisZIndex = this.getBackdropZIndex(this.el);\n return thisZIndex === maxZIndex;\n }\n\n private handleKeyDown = (e: KeyboardEvent) => {\n // If the modal is not open, don't handle any keyboard events\n if (!this.open) return;\n\n // Handle Escape key to close the modal\n if (e.key === 'Escape') {\n // Only close if this is the innermost modal\n if (this.isInnermostModal()) {\n e.preventDefault();\n this.hideModal();\n }\n return;\n }\n\n // Handle Tab key for focus trapping\n if (e.key === 'Tab') {\n // If there are no focusable elements, do nothing\n if (this.focusableElements.length === 0) return;\n\n // Get the first and last focusable elements\n const firstFocusableElement = this.focusableElements[0];\n const lastFocusableElement = this.focusableElements[this.focusableElements.length - 1];\n\n // Get the current active element\n const activeElement = document.activeElement;\n\n // Check if we need to wrap focus\n const isFirstElement = activeElement === firstFocusableElement ||\n firstFocusableElement.contains(activeElement as Node);\n\n const isLastElement = activeElement === lastFocusableElement ||\n lastFocusableElement.contains(activeElement as Node);\n\n // If shift + tab is pressed and focus is on the first element, move to the last element\n if (e.shiftKey && isFirstElement) {\n e.preventDefault();\n this.focusElement(lastFocusableElement);\n }\n // If tab is pressed and focus is on the last element, move to the first element\n else if (!e.shiftKey && isLastElement) {\n e.preventDefault();\n this.focusElement(firstFocusableElement);\n }\n }\n };\n\n render() {\n return (\n <dialog\n class={{\n 'pds-modal__backdrop': true,\n 'open': this.open\n }}\n aria-modal=\"true\"\n aria-labelledby={`${this.componentId}-heading`}\n onClick={this.handleBackdropClick}\n >\n <div\n class={{\n 'pds-modal': true,\n [`pds-modal--${this.size}`]: true,\n 'pds-modal--scrollable': this.scrollable\n }}\n >\n <slot></slot>\n </div>\n </dialog>\n );\n }\n}\n"],"mappings":"wmDAAA,IAAMA,EAAc,w+E,ICOPC,EAAQC,EAAA,uBALrB,SAAAC,EAAAC,GAAA,IAAAC,EAAAC,K,8FAQUA,KAAiBC,kBAAkB,GAQnCD,KAAeE,gBAAG,KAW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rollContainer","setupRetries","tableScrolling","handleScroll","scrollLeft","error","console","warn","prototype","componentWillRender","tableRef","hostElement","closest","componentDidLoad","responsive","fixedColumn","setupScrollListener","disconnectedCallback","cleanupScrollListener","container","_a","shadowRoot","querySelector","addEventListener","passive","setupTimer","window","setTimeout","removeEventListener","undefined","clearTimeout","classNames","compact","push","cellAlign","concat","truncate","join","render","h","Host","key","class","role","part","style","selectable"],"sources":["src/components/pds-table/pds-table-cell/pds-table-cell.scss?tag=pds-table-cell&encapsulation=shadow","src/components/pds-table/pds-table-cell/pds-table-cell.tsx"],"sourcesContent":[":host {\n --box-shadow-fixed: 3px 3px 6px -2px rgba(0, 0, 0, 0.2);\n\n color: var(--pine-color-text);\n display: table-cell;\n font-family: var(--pine-font-family-body);\n font-size: var(--pine-font-size);\n font-weight: var(--pine-font-weight-regular);\n inset-inline-start: var(--pine-dimension-none);\n letter-spacing: var(--pine-letter-spacing);\n line-height: var(--pine-line-height-body);\n padding: var(--pine-dimension-sm);\n vertical-align: inherit;\n}\n\n:host(.is-compact) {\n padding-block: var(--pine-dimension-2xs)\n}\n\n:host(.is-fixed) {\n background: var(--pine-color-background-container);\n left: 0;\n position: sticky;\n z-index: var(--pine-z-index-raised);\n}\n\n// box shadow when table has scrolled and cell is fixed\n:host(.has-scrolled.is-fixed) {\n box-shadow: var(--box-shadow-fixed);\n}\n\n:host(.is-truncated) {\n max-width: 100px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n:host(.has-checkbox) {\n vertical-align: middle;\n width: 16px;\n}\n\n// Text Alignment\n:host(.pds-table-cell--align-start) {\n text-align: start;\n}\n\n:host(.pds-table-cell--align-center) {\n text-align: center;\n}\n\n:host(.pds-table-cell--align-end) {\n text-align: end;\n}\n\n:host(.pds-table-cell--align-justify) {\n text-align: justify;\n}\n","import { Component, Element, Host, Prop, State, h } from '@stencil/core';\n\n@Component({\n tag: 'pds-table-cell',\n styleUrls: ['pds-table-cell.scss'],\n shadow: true,\n})\nexport class PdsTableCell {\n @Element() hostElement: HTMLPdsTableCellElement;\n private tableRef: HTMLPdsTableElement;\n private scrollContainer: HTMLElement | null = null;\n private setupTimer: number | undefined;\n private setupRetries: number = 0;\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n }\n\n componentDidLoad() {\n if (this.tableRef && this.tableRef.responsive && this.tableRef.fixedColumn) {\n // For responsive tables with fixed columns, set up scroll detection\n // This enables the first column to show a shadow when the table is scrolled horizontally\n this.setupScrollListener();\n }\n }\n\n disconnectedCallback() {\n this.cleanupScrollListener();\n }\n\n private setupScrollListener() {\n if (!this.tableRef) return;\n\n // Query shadowRoot once and cache the container\n const container = this.tableRef.shadowRoot?.querySelector('.pds-table-responsive-container') as HTMLElement;\n\n if (container) {\n // Container available immediately\n this.scrollContainer = container;\n this.scrollContainer.addEventListener('scroll', this.handleScroll, { passive: true });\n this.handleScroll(); // Initial check\n this.setupRetries = 0; // Reset counter on success\n } else {\n // Container not ready, set up timer for retry with bounds\n this.setupTimer = window.setTimeout(() => {\n if (this.scrollContainer) return; // Already found\n this.setupRetries = (this.setupRetries || 0) + 1;\n if (this.setupRetries <= 50) {\n this.setupScrollListener();\n } else {\n console.warn('Failed to find responsive container after 50 attempts');\n }\n }, 100);\n }\n }\n\n private cleanupScrollListener() {\n if (this.scrollContainer) {\n this.scrollContainer.removeEventListener('scroll', this.handleScroll);\n this.scrollContainer = null;\n }\n\n if (this.setupTimer !== undefined) {\n window.clearTimeout(this.setupTimer);\n this.setupTimer = undefined;\n }\n\n this.setupRetries = 0; // Reset retry counter\n }\n\n /**\n * Sets the text alignment within the cell.\n */\n @Prop() cellAlign?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * Truncates content to a max width of 100px and adds an ellipsis.\n */\n @Prop() truncate: boolean;\n\n /**\n * Determines if the table is currently scrolling.\n * @defaultValue false\n */\n @State() private tableScrolling: boolean = false;\n\n private classNames() {\n const classNames = [];\n\n if (this.tableRef && this.tableRef.compact) {\n classNames.push('is-compact');\n }\n\n if (this.cellAlign) {\n classNames.push(`pds-table-cell--align-${this.cellAlign}`);\n }\n\n if (this.truncate) {\n classNames.push('is-truncated');\n }\n\n if (this.tableRef && this.tableRef.fixedColumn && this.tableScrolling) {\n classNames.push('has-scrolled');\n }\n\n return classNames.join(' ');\n }\n\n /**\n * Handles scroll events to update fixed column shadow state.\n * Updates the tableScrolling state to control CSS classes for fixed column shadows.\n * @private\n */\n private handleScroll = () => {\n if (!this.scrollContainer) {\n return;\n }\n\n try {\n this.tableScrolling = this.scrollContainer.scrollLeft > 0;\n } catch (error) {\n console.warn('Scroll handler error:', error);\n }\n };\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"gridcell\"\n part=\"cell\"\n style={\n this.tableRef &&\n this.tableRef.fixedColumn &&\n this.tableRef.selectable\n ? { '--fixed-cell-position': '40px' }\n : {}\n }\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"mappings":"0JAAA,IAAMA,EAAkB,qkC,ICOXC,EAAYC,EAAA,4BALzB,SAAAC,EAAAC,GAAA,IAAAC,EAAAC,K,UAQUA,KAAeC,gBAAuB,KAEtCD,KAAYE,aAAW,EAwEdF,KAAcG,eAAY,MA6BnCH,KAAYI,aAAG,WACrB,IAAKL,EAAKE,gBAAiB,CACzB,M,CAGF,IACEF,EAAKI,eAAiBJ,EAAKE,gBAAgBI,WAAa,C,CACxD,MAAOC,GACPC,QAAQC,KAAK,wBAAyBF,E,CAE1C,CAoBD,CAjICT,EAAAY,UAAAC,oBAAA,WACEV,KAAKW,SAAWX,KAAKY,YAAYC,QAAQ,Y,EAG3ChB,EAAAY,UAAAK,iBAAA,WACE,GAAId,KAAKW,UAAYX,KAAKW,SAASI,YAAcf,KAAKW,SAASK,YAAa,CAG1EhB,KAAKiB,qB,GAITpB,EAAAY,UAAAS,qBAAA,WACElB,KAAKmB,uB,EAGCtB,EAAAY,UAAAQ,oBAAA,eAAAlB,EAAAC,K,MACN,I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AAKW,SAASK,aACdhB,KAAKW,SAASoC,WACV,CAAE,wBAAyB,QAC3B,IAGNP,EAAa,QAAAE,IAAA,6C,gIApII,I","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as s,H as i,g as o}from"./p-Bf1dou5H.js";import{c}from"./p-DnUJodVd.js";const r=":host{--color-background-interactive:var(--pine-color-grey-200);border-color:inherit;display:table-row;vertical-align:inherit}:host::part(checkbox-cell){background-color:var(--pine-color-background-container);inset-inline-start:var(--pine-dimension-none);position:-webkit-sticky;position:sticky;z-index:var(--pine-z-index-raised)}:host(:hover),:host(:hover)::part(checkbox-cell),:host(:hover) ::slotted(pds-table-cell),:host(.is-selected),:host(.is-selected)::part(checkbox-cell),:host(.is-selected) ::slotted(pds-table-cell){background:var(--color-background-interactive)}";const l=class{constructor(s){e(this,s);this.pdsTableRowSelected=t(this,"pdsTableRowSelected");this.handleClick=()=>{this.isSelected=!this.isSelected;this.handleSelect(this.isSelected)};this.handleSelect=e=>{this.indeterminate=false;if(!c("pds-table-head",this.hostElement)){const t=Array.from(this.hostElement.parentNode.children).indexOf(this.hostElement);this.pdsTableRowSelected.emit({rowIndex:t,isSelected:e})}};this.generateUniqueId=()=>{const e=Math.random().toString(36).substring(2,8);const t=(new Date).toISOString().replace(/[:.]/g,"-");const s=`${e}-${t}`;return s}}classNames(){const e=[];if(this.isSelected){e.push("is-selected")}return e.join(" ")}componentWillRender(){this.tableRef=this.hostElement.closest("pds-table");if(this.tableRef&&this.tableRef.fixedColumn){const e=this.hostElement.querySelector("pds-table-cell");e===null||e===void 0?void 0:e.classList.add("is-fixed")}}componentWillLoad(){if(this.isSelected){this.handleSelect(this.isSelected)}}render(){return s(i,{key:"5853e143e9866a596924b204c25d20a3983fc064",class:this.classNames(),role:"row",part:"row"},this.tableRef&&this.tableRef.selectable&&s("pds-table-cell",{key:"687d0a86e434d2422e794b14d0a9514b213c2afc",part:this.tableRef.fixedColumn?"checkbox-cell":"checkbox-cell",class:this.tableRef.selectable?"has-checkbox":""},s("pds-checkbox",{key:"109474126dbf72c218a180985169ef608d7d0c40",componentId:this.generateUniqueId(),onClick:this.handleClick,indeterminate:this.indeterminate,label:"Select Row",hideLabel:true,checked:this.isSelected,part:"row-checkbox"})),s("slot",{key:"e685aa96c44d590ddf0d1d1842f8e672c11cadcb"}))}get hostElement(){return o(this)}};l.style=r;export{l as pds_table_row};
|
|
2
|
-
//# sourceMappingURL=p-4c6ec7c4.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["pdsTableRowCss","PdsTableRow","constructor","hostRef","this","handleClick","isSelected","handleSelect","indeterminate","closest","hostElement","rowIndex","Array","from","parentNode","children","indexOf","pdsTableRowSelected","emit","generateUniqueId","randomString","Math","random","toString","substring","timestamp","Date","toISOString","replace","uniqueId","classNames","push","join","componentWillRender","tableRef","fixedColumn","tableCell","querySelector","classList","add","componentWillLoad","render","h","Host","key","class","role","part","selectable","componentId","onClick","label","hideLabel","checked"],"sources":["src/components/pds-table/pds-table-row/pds-table-row.scss?tag=pds-table-row&encapsulation=shadow","src/components/pds-table/pds-table-row/pds-table-row.tsx"],"sourcesContent":[":host {\n --color-background-interactive: var(--pine-color-grey-200);\n\n border-color: inherit;\n display: table-row;\n vertical-align: inherit;\n\n // used for pds-checkbox-cell\n // because it is in the ShadowDom\n &::part(checkbox-cell) {\n background-color: var(--pine-color-background-container);\n inset-inline-start: var(--pine-dimension-none);\n position: sticky;\n z-index: var(--pine-z-index-raised);\n }\n}\n\n:host(:hover),\n:host(:hover)::part(checkbox-cell),\n:host(:hover) ::slotted(pds-table-cell),\n:host(.is-selected),\n:host(.is-selected)::part(checkbox-cell),\n:host(.is-selected) ::slotted(pds-table-cell) {\n background: var(--color-background-interactive);\n}\n","import { Component, Element, Host, h, Event, EventEmitter, Prop } from '@stencil/core';\n\nimport { closest } from '../../../utils/closest';\n\n@Component({\n tag: 'pds-table-row',\n styleUrls: ['pds-table-row.scss'],\n shadow: true,\n})\nexport class PdsTableRow {\n @Element() hostElement: HTMLPdsTableRowElement;\n private tableRef: HTMLPdsTableElement;\n\n /**\n * Determines if the row selected is in an indeterminate state.\n */\n @Prop({ mutable: true }) indeterminate?: boolean;\n\n /**\n * Determines if the table row is currently selected.\n */\n @Prop({ mutable: true }) isSelected?: boolean;\n\n /**\n * Event that is emitted when the checkbox is clicked, carrying the selected value.\n */\n @Event() pdsTableRowSelected: EventEmitter<{ rowIndex: number; isSelected: boolean; }>;\n\n private handleClick = () => {\n this.isSelected = !this.isSelected; // Toggle the selected state\n this.handleSelect(this.isSelected);\n }\n\n private handleSelect = (isSelected: boolean) => {\n this.indeterminate = false;\n\n if (!closest('pds-table-head', this.hostElement)) {\n const rowIndex = Array.from(this.hostElement.parentNode.children).indexOf(this.hostElement)\n this.pdsTableRowSelected.emit({\n rowIndex,\n isSelected,\n })\n }\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.isSelected) {\n classNames.push(\"is-selected\");\n }\n\n return classNames.join(' ');\n }\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n\n if (this.tableRef && this.tableRef.fixedColumn) {\n const tableCell = this.hostElement.querySelector('pds-table-cell');\n tableCell?.classList.add(\"is-fixed\");\n }\n }\n\n componentWillLoad() {\n if (this.isSelected) {\n this.handleSelect(this.isSelected);\n }\n }\n\n private generateUniqueId = () => {\n const randomString = Math.random().toString(36).substring(2, 8);\n const timestamp = new Date().toISOString().replace(/[:.]/g, '-');\n const uniqueId = `${randomString}-${timestamp}`;\n\n return uniqueId;\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"row\"\n part=\"row\"\n >\n {this.tableRef && this.tableRef.selectable && (\n <pds-table-cell part={this.tableRef.fixedColumn ? 'checkbox-cell' : 'checkbox-cell'} class={this.tableRef.selectable ? 'has-checkbox' : ''} >\n <pds-checkbox\n componentId={this.generateUniqueId()}\n onClick={this.handleClick}\n indeterminate={this.indeterminate}\n label={\"Select Row\"}\n hideLabel={true}\n checked={this.isSelected}\n part=\"row-checkbox\"\n />\n </pds-table-cell>\n )}\n <slot></slot>\n </Host>\n );\n }\n}\n"],"mappings":"+FAAA,MAAMA,EAAiB,gkB,MCSVC,EAAW,MALxB,WAAAC,CAAAC,G,iEAwBUC,KAAWC,YAAG,KACpBD,KAAKE,YAAcF,KAAKE,WACxBF,KAAKG,aAAaH,KAAKE,WAAW,EAG5BF,KAAAG,aAAgBD,IACtBF,KAAKI,cAAgB,MAErB,IAAKC,EAAQ,iBAAkBL,KAAKM,aAAc,CAChD,MAAMC,EAAWC,MAAMC,KAAKT,KAAKM,YAAYI,WAAWC,UAAUC,QAAQZ,KAAKM,aAC/EN,KAAKa,oBAAoBC,KAAK,CAC5BP,WACAL,c,GA8BEF,KAAgBe,iBAAG,KACzB,MAAMC,EAAeC,KAAKC,SAASC,SAAS,IAAIC,UAAU,EAAG,GAC7D,MAAMC,GAAY,IAAIC,MAAOC,cAAcC,QAAQ,QAAS,KAC5D,MAAMC,EAAW,GAAGT,KAAgBK,IAEpC,OAAOI,CAAQ,CA2BlB,CAzDS,UAAAC,GACN,MAAMA,EAAa,GAEnB,GAAI1B,KAAKE,WAAY,CACnBwB,EAAWC,KAAK,c,CAGlB,OAAOD,EAAWE,KAAK,K,CAGzB,mBAAAC,GACE7B,KAAK8B,SAAW9B,KAAKM,YAAYD,QAAQ,aAEzC,GAAIL,KAAK8B,UAAY9B,KAAK8B,SAASC,YAAa,CAC9C,MAAMC,EAAYhC,KAAKM,YAAY2B,cAAc,kBACjDD,IAAS,MAATA,SAAS,SAATA,EAAWE,UAAUC,IAAI,W,EAI7B,iBAAAC,GACE,GAAIpC,KAAKE,WAAY,CACnBF,KAAKG,aAAaH,KAAKE,W,EAY3B,MAAAmC,GACE,OACEC,EAACC,EACC,CAAAC,IAAA,2CAAAC,MAAOzC,KAAK0B,aACZgB,KAAK,MACLC,KAAK,OAEJ3C,KAAK8B,UAAY9B,KAAK8B,SAASc,YAC9BN,EAAA,kBAAAE,IAAA,2CAAgBG,KAAM3C,KAAK8B,SAASC,YAAc,gBAAkB,gBAAiBU,MAAOzC,KAAK8B,SAASc,WAAa,eAAiB,IACtIN,EAAA,gBAAAE,IAAA,2CACEK,YAAa7C,KAAKe,mBAClB+B,QAAS9C,KAAKC,YACdG,cAAeJ,KAAKI,cACpB2C,MAAO,aACPC,UAAW,KACXC,QAASjD,KAAKE,WACdyC,KAAK,kBAIXL,EAAa,QAAAE,IAAA,6C","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["pdsTextCss","PdsText","exports","class_1","hostRef","this","tag","prototype","render","Tag","typeClasses","concat","align","undefined","trim","gutter","size","weight","decoration","h","key","style","color","setColor","class","part"],"sources":["src/components/pds-text/pds-text.scss?tag=pds-text&encapsulation=shadow","src/components/pds-text/pds-text.tsx"],"sourcesContent":[":host {\n display: inline;\n}\n\n:host([decoration=\"underline-dotted\"]) > * {\n text-decoration-color: var(--pine-color-grey-600);\n text-decoration-line: underline;\n text-decoration-style: dotted;\n text-decoration-thickness: 12%;\n text-underline-offset: 0.3rem;\n text-underline-position: under;\n}\n\n:host([decoration=\"strikethrough\"])>* {\n text-decoration: line-through;\n}\n\n/* stylelint-disable */\nh1 {\n font: var(--pine-typography-heading-1);\n letter-spacing: var(--pine-letter-spacing-heading-1);\n}\n\nh2 {\n font: var(--pine-typography-heading-2);\n letter-spacing: var(--pine-letter-spacing-heading-2);\n}\n\nh3 {\n font: var(--pine-typography-heading-3);\n letter-spacing: var(--pine-letter-spacing-heading-3);\n}\n\nh4 {\n font: var(--pine-typography-heading-4);\n letter-spacing: var(--pine-letter-spacing-heading-4);\n}\n\nh5 {\n font: var(--pine-typography-heading-5);\n letter-spacing: var(--pine-letter-spacing-heading-5);\n}\n\nh6 {\n font: var(--pine-typography-heading-6);\n letter-spacing: var(--pine-letter-spacing-heading-6);\n}\n\ncode, em, p, pre, strong {\n font: var(--pine-typography-body);\n letter-spacing: var(--pine-letter-spacing);\n}\n/* stylelint-enable */\n\ncode, pre {\n font-family: monospace;\n letter-spacing: 0;\n line-height: 1;\n}\n\nem {\n font-style: normal;\n}\n\nstrong {\n font-weight: bolder;\n}\n\n:host([truncate]) > * {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n:host([italic]) > * {\n font-style: italic;\n}\n\n// Colors/Variants/Sentiment\n\n// Variable is set in TSX\n// If color prop value isn't valid, will default to body text color\n.pds-text {\n color: var(--color, var(--pine-color-text));\n margin: var(--pine-dimension-none);\n}\n\n// Font Sizes\n$type-sizes: (\n 2xl: var(--pine-font-size-body-2xl),\n xl: var(--pine-font-size-body-xl),\n lg: var(--pine-font-size-body-lg),\n md: var(--pine-font-size-body-md),\n sm: var(--pine-font-size-body-sm),\n xs: var(--pine-font-size-body-xs),\n 2xs: var(--pine-font-size-body-2xs),\n h1: var(--pine-font-size-heading-1),\n h2: var(--pine-font-size-heading-2),\n h3: var(--pine-font-size-heading-3),\n h4: var(--pine-font-size-heading-4),\n h5: var(--pine-font-size-heading-5),\n h6: var(--pine-font-size-heading-6),\n);\n\n@mixin generate-type-sizes($type-sizes) {\n @each $key, $value in $type-sizes {\n .pds-text--size-#{$key} {\n font-size: $value;\n }\n }\n}\n\n@include generate-type-sizes($type-sizes);\n\n// Font Weights\n$type-weights: (\n extra-light: var(--pine-font-weight-extra-light),\n light: var(--pine-font-weight-light),\n regular: var(--pine-font-weight-regular),\n medium: var(--pine-font-weight-medium),\n semibold: var(--pine-font-weight-semi-bold),\n bold: var(--pine-font-weight-bold),\n);\n\n@mixin generate-type-weights($type-weights) {\n @each $key, $value in $type-weights {\n .pds-text--weight-#{$key} {\n font-weight: $value;\n }\n }\n}\n\n@include generate-type-weights($type-weights);\n\n// Gutter Sizes\n$type-gutters: (\n 2xl: var(--pine-dimension-2xl),\n xl: var(--pine-dimension-xl),\n lg: var(--pine-dimension-lg),\n md: var(--pine-dimension-md),\n sm: var(--pine-dimension-sm),\n xs: var(--pine-dimension-xs),\n 2xs: var(--pine-dimension-2xs),\n);\n\n@mixin generate-type-gutters($type-gutters) {\n @each $key, $value in $type-gutters {\n .pds-text--gutter-#{$key} {\n margin-block-end: $value;\n }\n }\n}\n\n@include generate-type-gutters($type-gutters);\n\n// Text Alignment\n$type-alignments: (\n start: start,\n center: center,\n end: end,\n justify: justify,\n);\n\n@mixin generate-type-alignments($type-alignments) {\n @each $key, $value in $type-alignments {\n .pds-text--align-#{$key} {\n text-align: $value;\n }\n }\n}\n\n@include generate-type-alignments($type-alignments);\n","import { Component, h, Prop, Element } from '@stencil/core';\nimport { setColor } from '../../utils/utils';\n\n/**\n * @part content - The text content container\n */\n@Component({\n tag: 'pds-text',\n styleUrl: 'pds-text.scss',\n shadow: true,\n})\nexport class PdsText {\n @Element() el: HTMLPdsTextElement;\n /**\n * Sets the text alignment.\n */\n @Prop() align?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * Sets the text color.\n */\n @Prop() color?: string;\n\n /**\n * Sets the text decoration.\n */\n @Prop() decoration?:\n | 'strikethrough'\n | 'underline-dotted';\n\n /**\n * Set the bottom margin for the text.\n */\n @Prop() gutter?:\n | '2xl'\n | 'xl'\n | 'lg'\n | 'md'\n | 'sm'\n | 'xs'\n | '2xs';\n\n /**\n * If set or `true`, the text will be italic.\n */\n @Prop() italic?: boolean;\n\n /**\n * Sets the font size.\n */\n @Prop() size?:\n | '2xl'\n | 'xl'\n | 'lg'\n | 'md'\n | 'sm'\n | 'xs'\n | '2xs'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6';\n\n /**\n * Sets the font weight.\n */\n @Prop() weight?:\n | 'extra-light'\n | 'light'\n | 'regular'\n | 'medium'\n | 'semibold'\n | 'bold';\n\n /**\n * Determines what semantic text tag to render.\n */\n @Prop() tag:\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'p'\n | 'code'\n | 'pre'\n | 'strong'\n | 'em' = \"p\";\n\n /**\n * If set or `true`, the text will be truncated. Must add a `width` to the element.\n */\n @Prop({ reflect: true }) truncate?: boolean;\n\n render() {\n const Tag = this.tag;\n\n const typeClasses = `\n pds-text\n ${this.align !== undefined && this.align.trim() !== '' ? `pds-text--align-${this.align}` : ''}\n ${this.gutter !== undefined && this.gutter.trim() !== '' ? `pds-text--gutter-${this.gutter}` : ''}\n ${this.size !== undefined && this.size.trim() !== '' ? `pds-text--size-${this.size}` : ''}\n ${this.weight !== undefined && this.weight.trim() !== '' ? `pds-text--weight-${this.weight}` : ''}\n ${this.decoration !== undefined && this.decoration.trim() !== '' ? `pds-text--decoration-${this.decoration}` : ''}\n `;\n\n return (\n <Tag style={this.color && setColor(this.color)} class={typeClasses} part=\"content\">\n <slot />\n </Tag>\n );\n }\n}\n"],"mappings":"gMAAA,IAAMA,EAAa,o+G,ICWNC,EAAOC,EAAA,sBALpB,SAAAC,EAAAC,G,UAyEUC,KAAGC,IAWF,GAyBV,CAlBCH,EAAAI,UAAAC,OAAA,WACE,IAAMC,EAAMJ,KAAKC,IAEjB,IAAMI,EAAc,2BAAAC,OAEhBN,KAAKO,QAAUC,WAAaR,KAAKO,MAAME,SAAW,GAAK,mBAAAH,OAAmBN,KAAKO,OAAU,GAAE,YAAAD,OAC3FN,KAAKU,SAAWF,WAAaR,KAAKU,OAAOD,SAAW,GAAK,oBAAAH,OAAoBN,KAAKU,QAAW,GAAE,YAAAJ,OAC/FN,KAAKW,OAASH,WAAaR,KAAKW,KAAKF,SAAW,GAAK,kBAAAH,OAAkBN,KAAKW,MAAS,GAAE,YAAAL,OACvFN,KAAKY,SAAWJ,WAAaR,KAAKY,OAAOH,SAAW,GAAK,oBAAAH,OAAoBN,KAAKY,QAAW,GAAE,YAAAN,OAC/FN,KAAKa,aAAeL,WAAaR,KAAKa,WAAWJ,SAAW,GAAK,wBAAAH,OAAwBN,KAAKa,YAAe,GAAE,UAGnH,OACEC,EAACV,EAAG,CAAAW,IAAA,2CAACC,MAAOhB,KAAKiB,OAASC,EAASlB,KAAKiB,OAAQE,MAAOd,EAAae,KAAK,WACvEN,EAAQ,QAAAC,IAAA,6C,uHApGI,I","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["labelCss","pdsCheckboxCss","PdsCheckbox","exports","class_1","hostRef","_this","this","inheritedAttributes","_type","checked","handleCheckboxChange","e","disabled","target","updateFormValue","pdsCheckboxChange","emit","value","handleInput","pdsCheckboxInput","prototype","updateIndeterminate","indeterminate","undefined","classNames","invalid","push","join","connectedCallback","el","attachInternals","internals","exposeTypeProperty","componentDidLoad","checkedChanged","jest","process","_a","env","NODE_ENV","setFormValue","formValue","setValidity","formStateRestoreCallback","state","FormData","get","name","componentWillLoad","Object","assign","inheritAriaAttributes","render","h","Host","key","class","htmlFor","componentId","type","assignDescription","errorMessage","helperMessage","id","required","onChange","onInput","hideLabel","label","messageId","icon","danger","size"],"sources":["src/global/styles/utils/label.scss?tag=pds-checkbox&encapsulation=shadow","src/components/pds-checkbox/pds-checkbox.scss?tag=pds-checkbox&encapsulation=shadow","src/components/pds-checkbox/pds-checkbox.tsx"],"sourcesContent":[":host {\n display: inline-block;\n}\n\n:host([aria-disabled=\"true\"]) label {\n color: var(--pine-color-text-label-disabled);\n}\n\n:host([aria-readonly=\"true\"]) {\n label {\n color: var(--pine-color-text-label-readonly);\n }\n}\n\nlabel {\n color: var(--pine-color-text-label);\n font: var(--pine-typography-body-medium);\n letter-spacing: var(--pine-letter-spacing);\n}\n",":host {\n align-items: center;\n display: flex;\n flex-flow: row wrap;\n}\n\n:host(.is-invalid) {\n input {\n border-color: var(--pine-color-border-danger);\n\n &:checked {\n background: var( --pine-color-danger);\n\n &:hover {\n background: var(--pine-color-danger-hover);\n border-color: var(--pine-color-border-danger-hover);\n }\n }\n\n &:focus-visible {\n outline-color: var(--pine-color-focus-ring-danger);\n }\n }\n\n label,\n .pds-checkbox__message--error {\n color: var(--pine-color-text-message-danger);\n }\n}\n\n:host(.is-indeterminate) {\n input {\n background: var(--pine-color-accent);\n border-color: var(--pine-color-accent);\n\n &:hover {\n background: var(--pine-color-accent);\n border-color: var(--pine-color-accent-hover);\n }\n\n &::after {\n border: 1px solid var(--pine-color-secondary);\n border-block-end: var(--pine-border-width-none);\n border-block-start: var(--pine-border-width-none);\n border-inline-start: var(--pine-border-width-none);\n content: \"\";\n display: block;\n height: 7px;\n left: 50%;\n position: absolute;\n top: 50%;\n transform: rotate(90deg) translate3d(-103%, 32%, 0);\n width: 4px;\n }\n }\n}\n\ninput {\n appearance: none;\n background: var(--pine-color-background-container);\n border: var(--pine-border);\n border-radius: var(--pine-dimension-2xs);\n flex: none;\n height: var(--pine-dimension-sm);\n margin: 0;\n margin-block-start: var(--pine-dimension-025);\n position: relative;\n width: var(--pine-dimension-sm);\n\n &:hover {\n background: var(--pine-color-background-container-hover);\n border: var(--pine-border-hover);\n }\n\n &:checked {\n background: var(--pine-color-accent);\n border-color: var(--pine-color-accent);\n\n &:hover {\n background: var(--pine-color-accent-hover);\n border-color: var(--pine-color-accent-hover);\n }\n\n &::after {\n border: 1px solid var(--pine-color-secondary);\n border-block-start: var(--pine-border-width-none);\n border-inline-start: var(--pine-border-width-none);\n content: \"\";\n display: block;\n height: 7px;\n left: 50%;\n position: absolute;\n top: 50%;\n transform: rotate(43deg) translate3d(-110%, -30%, 0);\n width: 4px;\n }\n }\n\n &:disabled {\n background: var(--pine-color-background-container-disabled);\n border-color: var(--pine-color-border-disabled);\n cursor: not-allowed;\n\n &:checked {\n background: var(--pine-color-background-container-disabled);\n border-color: var(--pine-color-border-disabled);\n\n &::after {\n border-color: var(--pine-color-grey-300);\n }\n }\n\n + label {\n cursor: not-allowed;\n }\n\n ~ .pds-checkbox__message {\n color: var(--pine-color-text-disabled);\n }\n }\n\n &:focus-visible {\n outline: var(--pine-outline-focus);\n }\n}\n\nlabel {\n display: flex;\n gap: var(--pine-dimension-xs);\n}\n\n.visually-hidden {\n border: 0;\n clip: rect(0 0 0 0);\n clip-path: polygon(0 0, 0 0, 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.pds-checkbox__message {\n color: var(--pine-color-text-message);\n font: var(--pine-typography-body-sm-medium);\n margin-block-start: 6px;\n margin-inline-start: var(--pine-dimension-md);\n width: 100%;\n}\n\n.pds-checkbox__message--error {\n display: flex;\n font-size: var(--pine-font-size-085);\n gap: var(--pine-dimension-050);\n\n pds-icon {\n margin-block-start: var(--pine-dimension-025);\n }\n}\n","import { Component, Element, h, Prop, Host, Event, EventEmitter, Watch } from '@stencil/core';\nimport { assignDescription, messageId, exposeTypeProperty } from '../../utils/form';\nimport { CheckboxChangeEventDetail } from './checkbox-interface';\nimport { danger } from '@pine-ds/icons/icons';\n\nimport { inheritAriaAttributes } from '@utils/attributes';\nimport type { Attributes } from '@utils/attributes';\n\n@Component({\n tag: 'pds-checkbox',\n styleUrls: ['../../global/styles/utils/label.scss', 'pds-checkbox.scss'],\n shadow: true,\n formAssociated: true,\n})\nexport class PdsCheckbox {\n private inheritedAttributes: Attributes = {};\n private internals?: ElementInternals;\n private readonly _type = 'checkbox' as const;\n\n @Element() el: HTMLPdsCheckboxElement;\n\n /**\n * It determines whether or not the checkbox is checked.\n */\n @Prop({ mutable: true }) checked?: boolean = false;\n\n /**\n * A unique identifier used for the underlying component `id` attribute and the label `for` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * It determines whether or not the checkbox is disabled.\n */\n @Prop() disabled: boolean;\n\n /**\n * Displays message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * String used for helper message below checkbox.\n */\n @Prop() helperMessage: string;\n\n /**\n * If `true`, the checkbox will visually appear as indeterminate.\n * Only JavaScript can set the objects `indeterminate` property. See [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes).\n */\n @Prop({ mutable: true }) indeterminate: boolean;\n\n /**\n * It determines whether or not the checkbox is invalid.\n */\n @Prop() invalid: boolean;\n\n /**\n * String used for label text next to checkbox.\n */\n @Prop() label: string;\n\n /**\n * Visually hides the label text for instances where only the checkbox should be displayed. Label remains accessible to assistive technology such as screen readers.\n */\n @Prop() hideLabel: boolean;\n\n /**\n * String used for checkbox `name` attribute.\n */\n @Prop() name: string;\n\n /**\n * It determines whether or not the checkbox is required.\n */\n @Prop() required: boolean;\n\n /**\n * The value of the checkbox that is submitted with a form.\n */\n @Prop() value: string;\n\n\n /**\n * Event emitted that contains the `value` and `checked`.\n */\n @Event() pdsCheckboxChange: EventEmitter<CheckboxChangeEventDetail>;\n\n @Event() pdsCheckboxInput: EventEmitter<CheckboxChangeEventDetail>;\n\n @Watch('checked')\n updateIndeterminate() {\n this.indeterminate = undefined\n }\n\n private handleCheckboxChange = (e: Event) => {\n if (this.disabled) {\n return;\n }\n\n const target = e.target as HTMLInputElement;\n this.checked = target.checked;\n\n this.updateFormValue();\n\n this.pdsCheckboxChange.emit({\n checked: target.checked,\n value: this.value\n });\n }\n\n private handleInput = () => {\n this.pdsCheckboxInput.emit({\n checked: this.checked,\n value: this.value\n });\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) { classNames.push('is-invalid'); }\n if (this.indeterminate) { classNames.push('is-indeterminate'); }\n if (this.disabled) { classNames.push('is-disabled'); }\n\n return classNames.join(' ');\n }\n\n connectedCallback() {\n if (this.el.attachInternals) {\n this.internals = this.el.attachInternals();\n }\n\n // Expose type property on the element instance to match native form element behavior\n exposeTypeProperty(this.el, () => this._type);\n }\n\n componentDidLoad() {\n this.updateFormValue();\n }\n\n @Watch('checked')\n checkedChanged() {\n this.updateFormValue();\n }\n\n private updateFormValue() {\n if (typeof jest !== 'undefined' || typeof process !== 'undefined' && process.env?.NODE_ENV === 'test') {\n return;\n }\n\n if (this.internals && this.internals.setFormValue) {\n // For checkboxes, only send the value when checked, otherwise send null\n const formValue = this.checked ? (this.value || 'on') : null;\n this.internals.setFormValue(formValue);\n }\n\n if (this.internals && this.internals.setValidity) {\n this.internals.setValidity({});\n }\n }\n\n formStateRestoreCallback(state: string | FormData | null) {\n if (state instanceof FormData) {\n // For checkboxes, restore if the value exists in FormData\n const value = this.value || 'on';\n this.checked = state.get(this.name as string) === value;\n } else if (typeof state === 'string') {\n // Restore from string state\n this.checked = state === (this.value || 'on');\n }\n }\n\n componentWillLoad() {\n this.inheritedAttributes = {\n ...inheritAriaAttributes(this.el)\n }\n }\n\n render() {\n return (\n <Host class={this.classNames()}>\n <label htmlFor={this.componentId}>\n <input\n type=\"checkbox\"\n aria-describedby={assignDescription(this.componentId, this.invalid, this.errorMessage || this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n id={this.componentId}\n indeterminate={this.indeterminate}\n name={this.name}\n value={this.value}\n checked={this.checked}\n required={this.required}\n disabled={this.disabled}\n onChange={this.handleCheckboxChange}\n onInput={this.handleInput}\n {...this.inheritedAttributes}\n />\n <span class={this.hideLabel ? 'visually-hidden' : ''}>\n {this.label}\n </span>\n </label>\n {this.helperMessage &&\n <div\n class={'pds-checkbox__message'}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-checkbox__message pds-checkbox__message--error`}\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n <pds-icon icon={danger} size=\"small\" />\n {this.errorMessage}\n </div>\n }\n </Host>\n );\n }\n}\n"],"mappings":"4TAAA,IAAMA,EAAW,qTCAjB,IAAMC,EAAiB,2wH,ICcVC,EAAWC,EAAA,0BANxB,SAAAC,EAAAC,GAAA,IAAAC,EAAAC,K,8GAOUA,KAAmBC,oBAAe,GAEzBD,KAAKE,MAAG,WAOAF,KAAOG,QAAa,MAuErCH,KAAAI,qBAAuB,SAACC,GAC9B,GAAIN,EAAKO,SAAU,CACjB,M,CAGF,IAAMC,EAASF,EAAEE,OACjBR,EAAKI,QAAUI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