@pine-ds/core 4.1.0 → 4.3.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/index.d.ts +8 -0
- package/components/index.js +1 -1
- package/components/mock-pds-modal.js +1 -1
- package/components/pds-button2.js +1 -1
- package/components/pds-checkbox2.js +1 -1
- package/components/pds-chip2.js +1 -1
- package/components/pds-combobox.js +1 -1
- package/components/pds-copytext.js +1 -1
- package/components/pds-drawer-content.d.ts +11 -0
- package/components/pds-drawer-content.js +1 -0
- package/components/pds-drawer-footer.d.ts +11 -0
- package/components/pds-drawer-footer.js +1 -0
- package/components/pds-drawer-header.d.ts +11 -0
- package/components/pds-drawer-header.js +1 -0
- package/components/pds-drawer.d.ts +11 -0
- package/components/pds-drawer.js +1 -0
- package/components/pds-dropdown-menu-item.js +1 -1
- package/components/pds-dropdown-menu-separator.js +1 -1
- package/components/pds-dropdown-menu.js +1 -1
- package/components/pds-filter.js +1 -1
- package/components/pds-filters.js +1 -1
- package/components/pds-icon2.js +1 -1
- package/components/pds-image.js +1 -1
- package/components/pds-input.js +1 -1
- package/components/pds-link2.js +1 -1
- package/components/pds-loader2.js +1 -1
- package/components/pds-modal-content.js +1 -1
- package/components/pds-modal-footer.js +1 -1
- package/components/pds-modal-header.js +1 -1
- package/components/pds-modal.js +1 -1
- package/components/pds-modal2.js +1 -0
- package/components/pds-multiselect.js +1 -1
- package/components/pds-popover.js +1 -1
- package/components/pds-progress.js +1 -1
- package/components/pds-property.js +1 -1
- package/components/pds-radio-group.js +1 -1
- package/components/pds-radio.js +1 -1
- package/components/pds-row.js +1 -1
- package/components/pds-select.js +1 -1
- package/components/pds-sortable-item.js +1 -1
- package/components/pds-sortable.js +2 -2
- package/components/pds-switch.js +1 -1
- package/components/pds-table-body.js +1 -1
- package/components/pds-table-cell2.js +1 -1
- package/components/pds-table-head-cell2.js +1 -1
- package/components/pds-table-head.js +1 -1
- package/components/pds-table-row.js +1 -1
- package/components/pds-tabpanel.js +1 -1
- package/components/pds-tabs.js +1 -1
- package/components/pds-text2.js +1 -1
- package/components/pds-textarea.js +1 -1
- package/components/pds-toast.js +1 -1
- package/components/pds-tooltip.js +1 -1
- package/components/truncation-tooltip.js +1 -1
- package/dist/cjs/{index-CuQil7H0.js → index-CaLa1zy9.js} +1 -1
- package/dist/cjs/{index-BMV0nzMk.js → index-DYvijwA6.js} +1 -1
- package/dist/cjs/index.cjs.js +20 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mock-pds-modal.cjs.entry.js +3 -3
- package/dist/cjs/pds-accordion.cjs.entry.js +2 -2
- package/dist/cjs/pds-alert.cjs.entry.js +1 -1
- package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
- package/dist/cjs/pds-box.cjs.entry.js +2 -2
- package/dist/cjs/pds-button.cjs.entry.js +4 -4
- package/dist/cjs/pds-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/pds-chip.cjs.entry.js +46 -12
- package/dist/cjs/pds-combobox.cjs.entry.js +3 -3
- package/dist/cjs/pds-container.cjs.entry.js +1 -1
- package/dist/cjs/pds-copytext.cjs.entry.js +8 -4
- package/dist/cjs/pds-divider.cjs.entry.js +1 -1
- package/dist/cjs/pds-drawer-content.cjs.entry.js +23 -0
- package/dist/cjs/pds-drawer-footer.cjs.entry.js +23 -0
- package/dist/cjs/pds-drawer-header.cjs.entry.js +23 -0
- package/dist/cjs/pds-drawer.cjs.entry.js +137 -0
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +2 -2
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js +2 -2
- package/dist/cjs/pds-filter.cjs.entry.js +3 -3
- package/dist/cjs/pds-filters.cjs.entry.js +2 -2
- package/dist/cjs/pds-icon.cjs.entry.js +2 -2
- package/dist/cjs/pds-image.cjs.entry.js +3 -3
- package/dist/cjs/pds-input.cjs.entry.js +5 -5
- package/dist/cjs/pds-link.cjs.entry.js +5 -5
- package/dist/cjs/pds-loader.cjs.entry.js +2 -2
- package/dist/cjs/pds-modal-content.cjs.entry.js +3 -3
- package/dist/cjs/pds-modal-footer.cjs.entry.js +2 -2
- package/dist/cjs/pds-modal-header.cjs.entry.js +2 -2
- package/dist/cjs/pds-modal.cjs.entry.js +173 -14
- package/dist/cjs/pds-multiselect.cjs.entry.js +6 -6
- package/dist/cjs/pds-popover.cjs.entry.js +2 -2
- package/dist/cjs/pds-progress.cjs.entry.js +4 -2
- package/dist/cjs/pds-property.cjs.entry.js +2 -2
- package/dist/cjs/pds-radio-group.cjs.entry.js +5 -5
- package/dist/cjs/pds-radio.cjs.entry.js +6 -6
- package/dist/cjs/pds-row.cjs.entry.js +2 -2
- package/dist/cjs/pds-select.cjs.entry.js +3 -3
- package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -3
- package/dist/cjs/pds-sortable.cjs.entry.js +2 -2
- package/dist/cjs/pds-switch.cjs.entry.js +6 -6
- package/dist/cjs/pds-tab.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-body.cjs.entry.js +2 -2
- package/dist/cjs/pds-table-cell.cjs.entry.js +4 -4
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +4 -4
- package/dist/cjs/pds-table-head.cjs.entry.js +2 -2
- package/dist/cjs/pds-table-row.cjs.entry.js +2 -2
- package/dist/cjs/pds-table.cjs.entry.js +1 -1
- package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -2
- package/dist/cjs/pds-tabs.cjs.entry.js +2 -2
- package/dist/cjs/pds-text.cjs.entry.js +7 -25
- package/dist/cjs/pds-textarea.cjs.entry.js +7 -7
- package/dist/cjs/pds-toast.cjs.entry.js +4 -4
- package/dist/cjs/pds-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/pine-core.cjs.js +2 -2
- package/dist/cjs/{truncation-tooltip-CVzAha5B.js → truncation-tooltip-Bps7_rUy.js} +51 -1
- package/dist/cjs/{utils-7jx8T2mW.js → utils-KWALOgy9.js} +16 -2
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/pds-button/pds-button.css +1 -2
- package/dist/collection/components/pds-checkbox/pds-checkbox.css +6 -4
- package/dist/collection/components/pds-chip/pds-chip.css +60 -6
- package/dist/collection/components/pds-chip/pds-chip.js +82 -8
- package/dist/collection/components/pds-chip/pds-chip.tokens.css +16 -0
- package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +39 -1
- package/dist/collection/components/pds-combobox/pds-combobox.css +1 -2
- package/dist/collection/components/pds-combobox/pds-combobox.js +1 -1
- package/dist/collection/components/pds-copytext/pds-copytext.js +5 -1
- package/dist/collection/components/pds-drawer/pds-drawer-content/pds-drawer-content.css +22 -0
- package/dist/collection/components/pds-drawer/pds-drawer-content/pds-drawer-content.js +29 -0
- package/dist/collection/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.css +15 -0
- package/dist/collection/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.js +23 -0
- package/dist/collection/components/pds-drawer/pds-drawer-header/pds-drawer-header.css +15 -0
- package/dist/collection/components/pds-drawer/pds-drawer-header/pds-drawer-header.js +23 -0
- package/dist/collection/components/pds-drawer/pds-drawer.css +36 -0
- package/dist/collection/components/pds-drawer/pds-drawer.js +362 -0
- package/dist/collection/components/pds-drawer/stories/pds-drawer.stories.js +72 -0
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +1 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +1 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +1 -1
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +1 -1
- package/dist/collection/components/pds-filters/pds-filters.js +1 -1
- package/dist/collection/components/pds-image/pds-image.js +2 -2
- package/dist/collection/components/pds-input/pds-input.js +2 -2
- package/dist/collection/components/pds-link/pds-link.js +2 -2
- package/dist/collection/components/pds-loader/pds-loader.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +2 -2
- package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal.css +4 -0
- package/dist/collection/components/pds-modal/pds-modal.js +209 -16
- package/dist/collection/components/pds-modal/stories/pds-modal.stories.js +14 -0
- package/dist/collection/components/pds-modal/test/mock-pds-modal.js +1 -1
- package/dist/collection/components/pds-multiselect/pds-multiselect.js +3 -3
- package/dist/collection/components/pds-popover/pds-popover.js +1 -1
- package/dist/collection/components/pds-progress/pds-progress.js +3 -1
- package/dist/collection/components/pds-property/pds-property.js +1 -1
- package/dist/collection/components/pds-radio/pds-radio.css +1 -2
- package/dist/collection/components/pds-radio/pds-radio.js +3 -3
- package/dist/collection/components/pds-radio-group/pds-radio-group.js +3 -3
- package/dist/collection/components/pds-row/pds-row.js +1 -1
- package/dist/collection/components/pds-select/pds-select.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
- package/dist/collection/components/pds-switch/pds-switch.css +1 -1
- package/dist/collection/components/pds-switch/pds-switch.js +3 -3
- 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 +3 -3
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
- package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
- package/dist/collection/components/pds-text/pds-text.js +2 -2
- package/dist/collection/components/pds-textarea/pds-textarea.js +4 -4
- package/dist/collection/components/pds-toast/pds-toast.js +3 -3
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/test/reduced-motion.js +78 -0
- package/dist/collection/utils/truncation-tooltip.js +51 -1
- package/dist/collection/utils/utils.js +16 -2
- package/dist/docs.json +492 -15
- package/dist/esm/{index-Bu9gFIxM.js → index-BU1hN5Vy.js} +1 -1
- package/dist/esm/{index-CTLu1TM4.js → index-DcT8--Dn.js} +1 -1
- package/dist/esm/index.js +19 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mock-pds-modal.entry.js +3 -3
- package/dist/esm/pds-accordion.entry.js +2 -2
- package/dist/esm/pds-alert.entry.js +1 -1
- package/dist/esm/pds-avatar.entry.js +2 -2
- package/dist/esm/pds-box.entry.js +2 -2
- package/dist/esm/pds-button.entry.js +4 -4
- package/dist/esm/pds-checkbox.entry.js +3 -3
- package/dist/esm/pds-chip.entry.js +46 -12
- package/dist/esm/pds-combobox.entry.js +3 -3
- package/dist/esm/pds-container.entry.js +1 -1
- package/dist/esm/pds-copytext.entry.js +8 -4
- package/dist/esm/pds-divider.entry.js +1 -1
- package/dist/esm/pds-drawer-content.entry.js +21 -0
- package/dist/esm/pds-drawer-footer.entry.js +21 -0
- package/dist/esm/pds-drawer-header.entry.js +21 -0
- package/dist/esm/pds-drawer.entry.js +135 -0
- package/dist/esm/pds-dropdown-menu-item.entry.js +2 -2
- package/dist/esm/pds-dropdown-menu-separator.entry.js +2 -2
- package/dist/esm/pds-dropdown-menu.entry.js +2 -2
- package/dist/esm/pds-filter.entry.js +3 -3
- package/dist/esm/pds-filters.entry.js +2 -2
- package/dist/esm/pds-icon.entry.js +2 -2
- package/dist/esm/pds-image.entry.js +3 -3
- package/dist/esm/pds-input.entry.js +5 -5
- package/dist/esm/pds-link.entry.js +5 -5
- package/dist/esm/pds-loader.entry.js +2 -2
- package/dist/esm/pds-modal-content.entry.js +3 -3
- package/dist/esm/pds-modal-footer.entry.js +2 -2
- package/dist/esm/pds-modal-header.entry.js +2 -2
- package/dist/esm/pds-modal.entry.js +173 -14
- package/dist/esm/pds-multiselect.entry.js +6 -6
- package/dist/esm/pds-popover.entry.js +2 -2
- package/dist/esm/pds-progress.entry.js +4 -2
- package/dist/esm/pds-property.entry.js +2 -2
- package/dist/esm/pds-radio-group.entry.js +5 -5
- package/dist/esm/pds-radio.entry.js +6 -6
- package/dist/esm/pds-row.entry.js +2 -2
- package/dist/esm/pds-select.entry.js +3 -3
- package/dist/esm/pds-sortable-item.entry.js +3 -3
- package/dist/esm/pds-sortable.entry.js +2 -2
- package/dist/esm/pds-switch.entry.js +6 -6
- package/dist/esm/pds-tab.entry.js +1 -1
- package/dist/esm/pds-table-body.entry.js +2 -2
- package/dist/esm/pds-table-cell.entry.js +4 -4
- package/dist/esm/pds-table-head-cell.entry.js +4 -4
- package/dist/esm/pds-table-head.entry.js +2 -2
- package/dist/esm/pds-table-row.entry.js +2 -2
- package/dist/esm/pds-table.entry.js +1 -1
- package/dist/esm/pds-tabpanel.entry.js +2 -2
- package/dist/esm/pds-tabs.entry.js +2 -2
- package/dist/esm/pds-text.entry.js +5 -23
- package/dist/esm/pds-textarea.entry.js +7 -7
- package/dist/esm/pds-toast.entry.js +4 -4
- package/dist/esm/pds-tooltip.entry.js +3 -3
- package/dist/esm/pine-core.js +3 -3
- package/dist/esm/{truncation-tooltip-Blk4GigP.js → truncation-tooltip-CdtEBn_5.js} +51 -1
- package/dist/esm/{utils-tJa4KYNO.js → utils-u_0lxWnH.js} +16 -2
- package/dist/esm-es5/{index-CTLu1TM4.js → index-DcT8--Dn.js} +2 -2
- package/dist/esm-es5/index.js +1 -0
- package/dist/esm-es5/loader.js +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-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-container.entry.js +1 -1
- 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-drawer-content.entry.js +1 -0
- package/dist/esm-es5/pds-drawer-footer.entry.js +1 -0
- package/dist/esm-es5/pds-drawer-header.entry.js +1 -0
- package/dist/esm-es5/pds-drawer.entry.js +1 -0
- 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-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-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-multiselect.entry.js +1 -1
- package/dist/esm-es5/pds-popover.entry.js +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-group.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-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/truncation-tooltip-CdtEBn_5.js +1 -0
- package/dist/pine-core/index.esm.js +1 -0
- package/dist/pine-core/p-003df3b3.entry.js +1 -0
- package/dist/pine-core/{p-92ef1608.system.entry.js → p-02452806.system.entry.js} +1 -1
- package/dist/pine-core/{p-5d585aa8.entry.js → p-026ee6de.entry.js} +1 -1
- package/dist/pine-core/{p-463eb0e6.system.entry.js → p-03f3fc92.system.entry.js} +1 -1
- package/dist/pine-core/p-06375326.system.entry.js +1 -0
- package/dist/pine-core/p-08196d6c.entry.js +1 -0
- package/dist/pine-core/{p-bf3afa16.system.entry.js → p-089606b8.system.entry.js} +1 -1
- package/dist/pine-core/p-12941e0d.entry.js +1 -0
- package/dist/pine-core/{p-3b9e77b3.entry.js → p-13bb89ff.entry.js} +1 -1
- package/dist/pine-core/{p-1649dd61.system.entry.js → p-15a0fa0a.system.entry.js} +1 -1
- package/dist/pine-core/{p-3050c66f.entry.js → p-1abae35f.entry.js} +1 -1
- package/dist/pine-core/p-1df5e088.entry.js +1 -0
- package/dist/pine-core/{p-460aa66f.system.entry.js → p-20753e42.system.entry.js} +1 -1
- package/dist/pine-core/{p-12ec8186.system.entry.js → p-24214ab9.system.entry.js} +1 -1
- package/dist/pine-core/p-250011ba.entry.js +1 -0
- package/dist/pine-core/{p-9b68669f.entry.js → p-2b420257.entry.js} +1 -1
- package/dist/pine-core/{p-86bc2a0c.entry.js → p-2bb101c2.entry.js} +1 -1
- package/dist/pine-core/{p-6089d811.entry.js → p-2dbc90ba.entry.js} +1 -1
- package/dist/pine-core/{p-2fd71a0c.entry.js → p-317337e4.entry.js} +1 -1
- package/dist/pine-core/{p-a9e54964.entry.js → p-32fc82c2.entry.js} +1 -1
- package/dist/pine-core/{p-714bfdbd.entry.js → p-35edd8b0.entry.js} +1 -1
- package/dist/pine-core/p-375eb7f4.entry.js +1 -0
- package/dist/pine-core/{p-e1653d75.system.entry.js → p-3b555f06.system.entry.js} +1 -1
- package/dist/pine-core/p-3b796898.entry.js +1 -0
- package/dist/pine-core/{p-c0753d9f.entry.js → p-3c5489ce.entry.js} +1 -1
- package/dist/pine-core/{p-8702635d.system.entry.js → p-3e868906.system.entry.js} +1 -1
- package/dist/pine-core/{p-eb4058ed.system.entry.js → p-441682f4.system.entry.js} +1 -1
- package/dist/pine-core/{p-7b1e3e91.entry.js → p-44222439.entry.js} +1 -1
- package/dist/pine-core/p-45d55983.entry.js +1 -0
- package/dist/pine-core/{p-544ccf67.entry.js → p-464f23e6.entry.js} +1 -1
- package/dist/pine-core/{p-aecaff12.entry.js → p-49c6112a.entry.js} +1 -1
- package/dist/pine-core/p-4bd57896.system.entry.js +1 -0
- package/dist/pine-core/{p-b0531455.entry.js → p-4cbb691f.entry.js} +1 -1
- package/dist/pine-core/{p-46f0dda5.system.entry.js → p-4ebdb90b.system.entry.js} +1 -1
- package/dist/pine-core/{p-b109de2e.entry.js → p-4f5aacd9.entry.js} +1 -1
- package/dist/pine-core/{p-9187c26c.system.entry.js → p-55532d56.system.entry.js} +1 -1
- package/dist/pine-core/{p-f35596cd.entry.js → p-558ac401.entry.js} +1 -1
- package/dist/pine-core/{p-c09dab1a.system.entry.js → p-57784f2f.system.entry.js} +1 -1
- package/dist/pine-core/p-5a8345e2.entry.js +1 -0
- package/dist/pine-core/{p-4923a3fe.entry.js → p-5c5bd609.entry.js} +1 -1
- package/dist/pine-core/p-5d2f95bd.entry.js +1 -0
- package/dist/pine-core/p-5f3d0c86.system.entry.js +1 -0
- package/dist/pine-core/{p-a3c4c0ee.entry.js → p-5f5339ab.entry.js} +1 -1
- package/dist/pine-core/{p-bfa640f4.system.entry.js → p-67fc26e5.system.entry.js} +1 -1
- package/dist/pine-core/p-6a6a767b.system.entry.js +1 -0
- package/dist/pine-core/p-6b260a97.entry.js +1 -0
- package/dist/pine-core/{p-d804d37b.system.entry.js → p-6b3d8c2b.system.entry.js} +1 -1
- package/dist/pine-core/p-6dabeebc.system.entry.js +3 -0
- package/dist/pine-core/{p-d157a33a.entry.js → p-70891202.entry.js} +1 -1
- package/dist/pine-core/p-70fb83d4.entry.js +1 -0
- package/dist/pine-core/{p-7a1971ec.entry.js → p-73c3a73f.entry.js} +1 -1
- package/dist/pine-core/p-73fa955a.system.entry.js +1 -0
- package/dist/pine-core/p-755e0b3c.system.entry.js +1 -0
- package/dist/pine-core/p-77082557.system.entry.js +1 -0
- package/dist/pine-core/{p-65557500.entry.js → p-7e4729e0.entry.js} +1 -1
- package/dist/pine-core/p-8b051229.entry.js +1 -0
- package/dist/pine-core/{p-c713ffc6.system.entry.js → p-8d1e7b3c.system.entry.js} +1 -1
- package/dist/pine-core/{p-63f5f66f.system.entry.js → p-8d8a8550.system.entry.js} +1 -1
- package/dist/pine-core/{p-2d4b9253.entry.js → p-93486f2e.entry.js} +1 -1
- package/dist/pine-core/{p-b255d3b7.entry.js → p-93ae562d.entry.js} +1 -1
- package/dist/pine-core/{p-ce79321b.system.entry.js → p-93c52e2b.system.entry.js} +1 -1
- package/dist/pine-core/{p-08151143.system.entry.js → p-95b8bece.system.entry.js} +1 -1
- package/dist/pine-core/{p-af4a24d9.entry.js → p-95defb53.entry.js} +1 -1
- package/dist/pine-core/{p-92c79ed4.system.entry.js → p-99f300ef.system.entry.js} +1 -1
- package/dist/pine-core/p-9d77f2f8.system.entry.js +1 -0
- package/dist/pine-core/p-9d902000.system.entry.js +1 -0
- package/dist/pine-core/p-9ef355b7.entry.js +1 -0
- package/dist/pine-core/p-B2nn1gSd.js +1 -0
- package/dist/pine-core/{p-CRCxGYgw.system.js → p-B2qvvB3q.system.js} +1 -1
- package/dist/pine-core/p-BI7Ml0VF.system.js +1 -0
- package/dist/pine-core/p-CJ8t3EBJ.system.js +2 -0
- package/dist/pine-core/p-DcT8--Dn.js +2 -0
- package/dist/pine-core/p-G3CPPJEt.system.js +1 -0
- package/dist/pine-core/p-a009ab10.system.entry.js +1 -0
- package/dist/pine-core/p-a616385b.system.entry.js +1 -0
- package/dist/pine-core/{p-bba759f8.system.entry.js → p-a6a269da.system.entry.js} +1 -1
- package/dist/pine-core/p-a8cd2ab5.entry.js +1 -0
- package/dist/pine-core/p-a8f1a48d.entry.js +1 -0
- package/dist/pine-core/p-b0becff3.system.entry.js +1 -0
- package/dist/pine-core/p-b45b8f8b.system.entry.js +1 -0
- package/dist/pine-core/{p-e16dfb32.system.entry.js → p-b53d9620.system.entry.js} +1 -1
- package/dist/pine-core/p-b85bb61d.system.entry.js +1 -0
- package/dist/pine-core/{p-ae296598.entry.js → p-b8a5597d.entry.js} +1 -1
- package/dist/pine-core/p-b9a857fc.system.entry.js +1 -0
- package/dist/pine-core/p-bd9b2931.system.entry.js +1 -0
- package/dist/pine-core/p-bdded57a.system.entry.js +1 -0
- package/dist/pine-core/{p-4dad0878.entry.js → p-bf025e38.entry.js} +1 -1
- package/dist/pine-core/{p-0fcda1ec.entry.js → p-c08b1697.entry.js} +1 -1
- package/dist/pine-core/p-c1a65082.entry.js +1 -0
- package/dist/pine-core/p-c1d1befb.system.entry.js +1 -0
- package/dist/pine-core/{p-1e952dbb.entry.js → p-c5b6b545.entry.js} +2 -2
- package/dist/pine-core/{p-ce63f726.system.entry.js → p-c6426e16.system.entry.js} +1 -1
- package/dist/pine-core/{p-d54af26c.system.entry.js → p-cfcb89d1.system.entry.js} +1 -1
- package/dist/pine-core/{p-aa208514.entry.js → p-d33d65f6.entry.js} +1 -1
- package/dist/pine-core/p-d70aa0c7.system.entry.js +1 -0
- package/dist/pine-core/{p-902b3e8b.system.entry.js → p-d9c1ee36.system.entry.js} +1 -1
- package/dist/pine-core/{p-e450eb27.system.entry.js → p-df285ece.system.entry.js} +1 -1
- package/dist/pine-core/{p-04a30a2d.system.entry.js → p-e039ebb6.system.entry.js} +1 -1
- package/dist/pine-core/{p-4d6944aa.entry.js → p-e055c543.entry.js} +1 -1
- package/dist/pine-core/{p-2af19aa7.entry.js → p-e08e4ca7.entry.js} +1 -1
- package/dist/pine-core/p-ea986474.system.entry.js +1 -0
- package/dist/pine-core/{p-afd07d5b.entry.js → p-ec04d4c3.entry.js} +1 -1
- package/dist/pine-core/p-ee114aef.entry.js +1 -0
- package/dist/pine-core/{p-d415bb01.entry.js → p-ee997fbf.entry.js} +2 -2
- package/dist/pine-core/{p-8e6a8a8e.entry.js → p-f1365550.entry.js} +1 -1
- package/dist/pine-core/{p-fcf91f14.system.entry.js → p-f26dcbc2.system.entry.js} +1 -1
- package/dist/pine-core/{p-cf72e9b1.system.entry.js → p-f5cf98be.system.entry.js} +1 -1
- package/dist/pine-core/{p-b17fa86a.system.entry.js → p-f682f08a.system.entry.js} +1 -1
- package/dist/pine-core/p-f89197c9.entry.js +1 -0
- package/dist/pine-core/p-f9f7101e.entry.js +1 -0
- package/dist/pine-core/{p-226232a7.system.entry.js → p-fa2a786d.system.entry.js} +1 -1
- package/dist/pine-core/{p-7c18e9e8.system.entry.js → p-fa8d3155.system.entry.js} +2 -2
- package/dist/pine-core/p-fb774f89.system.entry.js +1 -0
- package/dist/pine-core/{p-ba8bd9dc.system.entry.js → p-fbb72e66.system.entry.js} +1 -1
- package/dist/pine-core/pine-core.css +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/pine-core/pine-core.js +1 -1
- package/dist/types/components/pds-chip/pds-chip.d.ts +12 -0
- package/dist/types/components/pds-drawer/pds-drawer-content/pds-drawer-content.d.ts +11 -0
- package/dist/types/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.d.ts +5 -0
- package/dist/types/components/pds-drawer/pds-drawer-header/pds-drawer-header.d.ts +5 -0
- package/dist/types/components/pds-drawer/pds-drawer.d.ts +78 -0
- package/dist/types/components/pds-modal/pds-modal.d.ts +47 -2
- package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +2 -1
- package/dist/types/components/pds-text/pds-text.d.ts +2 -1
- package/dist/types/components.d.ts +253 -11
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/test/reduced-motion.d.ts +30 -0
- package/dist/types/utils/truncation-tooltip.d.ts +12 -0
- package/dist/types/utils/types.d.ts +2 -1
- package/dist/types/utils/utils.d.ts +16 -1
- package/dist/vscode.html-data.json +169 -6
- package/hydrate/index.js +623 -115
- package/hydrate/index.mjs +623 -115
- package/package.json +7 -3
- package/dist/esm-es5/truncation-tooltip-Blk4GigP.js +0 -1
- package/dist/pine-core/p-056667f0.entry.js +0 -1
- package/dist/pine-core/p-0d73d473.entry.js +0 -1
- package/dist/pine-core/p-0e89a189.entry.js +0 -1
- package/dist/pine-core/p-1ba361cb.entry.js +0 -1
- package/dist/pine-core/p-210f0994.system.entry.js +0 -1
- package/dist/pine-core/p-222ff58e.system.entry.js +0 -1
- package/dist/pine-core/p-228a9068.system.entry.js +0 -1
- package/dist/pine-core/p-2e214db6.entry.js +0 -1
- package/dist/pine-core/p-33de0eb7.system.entry.js +0 -1
- package/dist/pine-core/p-3aec9079.entry.js +0 -1
- package/dist/pine-core/p-3cdc1a5b.entry.js +0 -1
- package/dist/pine-core/p-4faff617.entry.js +0 -1
- package/dist/pine-core/p-50e0f726.system.entry.js +0 -1
- package/dist/pine-core/p-520f7a5b.entry.js +0 -1
- package/dist/pine-core/p-53999cd6.system.entry.js +0 -1
- package/dist/pine-core/p-5c239f0a.entry.js +0 -1
- package/dist/pine-core/p-611f68b7.system.entry.js +0 -1
- package/dist/pine-core/p-7691a875.system.entry.js +0 -3
- package/dist/pine-core/p-85434de8.system.entry.js +0 -1
- package/dist/pine-core/p-897fe88c.entry.js +0 -1
- package/dist/pine-core/p-9487ff20.system.entry.js +0 -1
- package/dist/pine-core/p-9507eb49.system.entry.js +0 -1
- package/dist/pine-core/p-97198cb6.system.entry.js +0 -1
- package/dist/pine-core/p-9a7294e7.system.entry.js +0 -1
- package/dist/pine-core/p-9fd1e8f4.system.entry.js +0 -1
- package/dist/pine-core/p-BNSGedhN.js +0 -1
- package/dist/pine-core/p-CTLu1TM4.js +0 -2
- package/dist/pine-core/p-DAIsVNlL.system.js +0 -2
- package/dist/pine-core/p-Dr-FzkdE.system.js +0 -1
- package/dist/pine-core/p-YWpyar7R.system.js +0 -1
- package/dist/pine-core/p-a53222f7.entry.js +0 -1
- package/dist/pine-core/p-a7eabc0c.system.entry.js +0 -1
- package/dist/pine-core/p-a8ab4d9b.entry.js +0 -1
- package/dist/pine-core/p-b52deffb.entry.js +0 -1
- package/dist/pine-core/p-b6c2090f.system.entry.js +0 -1
- package/dist/pine-core/p-d27ef352.system.entry.js +0 -1
- package/dist/pine-core/p-e11795db.system.entry.js +0 -1
- package/dist/pine-core/p-f09ce49e.entry.js +0 -1
- package/dist/pine-core/p-f3683be8.entry.js +0 -1
- /package/dist/esm-es5/{index-Bu9gFIxM.js → index-BU1hN5Vy.js} +0 -0
- /package/dist/esm-es5/{utils-tJa4KYNO.js → utils-u_0lxWnH.js} +0 -0
- /package/dist/pine-core/{p-Bu9gFIxM.js → p-BU1hN5Vy.js} +0 -0
- /package/dist/pine-core/{p-BG6uGRQj.system.js → p-D_I-k33A.system.js} +0 -0
- /package/dist/pine-core/{p-Bjc6fc_Y.system.js → p-ctdGub9B.system.js} +0 -0
- /package/dist/pine-core/{p-tJa4KYNO.js → p-u_0lxWnH.js} +0 -0
|
@@ -8,7 +8,7 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
import { BoxColumnType, BoxShadowSizeType, BoxSpacingType, TextSizeType } from "./utils/types";
|
|
9
9
|
import { Event } from "./stencil-public-runtime";
|
|
10
10
|
import { CheckboxChangeEventDetail } from "./components/pds-checkbox/checkbox-interface";
|
|
11
|
-
import { ChipSentimentType, ChipSizeType, ChipVariantType, PlacementType } from "./utils/types";
|
|
11
|
+
import { ChipSentimentType, ChipSizeType, ChipVariantType, ModalSizeType, PlacementType } from "./utils/types";
|
|
12
12
|
import { ComboboxLoadOptionsEventDetail, ComboboxOption, ComboboxSearchEventDetail } from "./components/pds-combobox/combobox-interface";
|
|
13
13
|
import { PdsFilterClearEventDetail, PdsFilterCloseEventDetail, PdsFilterOpenEventDetail, PdsFilterVariant } from "./components/pds-filters/pds-filter/filter-interface";
|
|
14
14
|
import { InputChangeEventDetail, InputInputEventDetail } from "./components/pds-input/input-interface";
|
|
@@ -21,7 +21,7 @@ import { TextareaChangeEventDetail, TextareaInputEventDetail } from "./component
|
|
|
21
21
|
export { BoxColumnType, BoxShadowSizeType, BoxSpacingType, TextSizeType } from "./utils/types";
|
|
22
22
|
export { Event } from "./stencil-public-runtime";
|
|
23
23
|
export { CheckboxChangeEventDetail } from "./components/pds-checkbox/checkbox-interface";
|
|
24
|
-
export { ChipSentimentType, ChipSizeType, ChipVariantType, PlacementType } from "./utils/types";
|
|
24
|
+
export { ChipSentimentType, ChipSizeType, ChipVariantType, ModalSizeType, PlacementType } from "./utils/types";
|
|
25
25
|
export { ComboboxLoadOptionsEventDetail, ComboboxOption, ComboboxSearchEventDetail } from "./components/pds-combobox/combobox-interface";
|
|
26
26
|
export { PdsFilterClearEventDetail, PdsFilterCloseEventDetail, PdsFilterOpenEventDetail, PdsFilterVariant } from "./components/pds-filters/pds-filter/filter-interface";
|
|
27
27
|
export { InputChangeEventDetail, InputInputEventDetail } from "./components/pds-input/input-interface";
|
|
@@ -891,10 +891,18 @@ export namespace Components {
|
|
|
891
891
|
* @defaultValue false
|
|
892
892
|
*/
|
|
893
893
|
"dot": boolean;
|
|
894
|
+
/**
|
|
895
|
+
* Sets the dot color. Accepts a sentiment name other than `brand` (e.g. `success`), a color token, or a [valid color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value). Defaults to the dot color of the chip's sentiment. Only applies when `dot` is set.
|
|
896
|
+
*/
|
|
897
|
+
"dotColor"?: string;
|
|
894
898
|
/**
|
|
895
899
|
* The name of the icon to display before the chip text.
|
|
896
900
|
*/
|
|
897
901
|
"icon"?: string;
|
|
902
|
+
/**
|
|
903
|
+
* Sets the icon color. Accepts a sentiment name other than `brand` (e.g. `success`), a color token, or a [valid color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value). Defaults to the chip's text color. Only applies when `icon` is set.
|
|
904
|
+
*/
|
|
905
|
+
"iconColor"?: string;
|
|
898
906
|
/**
|
|
899
907
|
* Sets the maximum width of the chip, truncating the label with an ellipsis when it overflows. Accepts any CSS length (e.g. '200px', '20ch'). The slot is documented as label text — slotting richer markup may not truncate the way you expect.
|
|
900
908
|
*/
|
|
@@ -1149,6 +1157,63 @@ export namespace Components {
|
|
|
1149
1157
|
*/
|
|
1150
1158
|
"vertical": boolean;
|
|
1151
1159
|
}
|
|
1160
|
+
/**
|
|
1161
|
+
* A non-modal side panel composed from `pds-modal`.
|
|
1162
|
+
* Unlike `pds-modal`, the page stays interactive while a drawer is open: no
|
|
1163
|
+
* dimming, no blur, no scroll lock, no click blocking. `pds-drawer` renders a
|
|
1164
|
+
* `pds-modal` internally with `disableTopLayer` always on and its backdrop
|
|
1165
|
+
* suppressed, and adds the edge, width and dismiss behavior a side panel
|
|
1166
|
+
* needs on top. It does not reimplement focus, Escape or dialog semantics —
|
|
1167
|
+
* those come from `pds-modal` unchanged.
|
|
1168
|
+
*/
|
|
1169
|
+
interface PdsDrawer {
|
|
1170
|
+
/**
|
|
1171
|
+
* A unique identifier used for the underlying component `id` attribute.
|
|
1172
|
+
*/
|
|
1173
|
+
"componentId": string;
|
|
1174
|
+
/**
|
|
1175
|
+
* Whether to move focus into the drawer when it opens. `auto` is right for a drawer opened by a direct user action (a click, a deep link the user just navigated to). Set to `none` for a drawer that can open from a background event while the user is mid-task elsewhere on the page — moving focus there would interrupt them, and the page stays live under a non-modal drawer, so it is a genuine data-entry risk, not just an annoyance.
|
|
1176
|
+
* @default 'auto'
|
|
1177
|
+
*/
|
|
1178
|
+
"initialFocus": 'auto' | 'none';
|
|
1179
|
+
/**
|
|
1180
|
+
* Whether the drawer can be dismissed with a pointerdown outside it. Replaces `pds-modal`'s `backdropDismiss` — there is no backdrop to click. This also gates Escape, matching how `backdropDismiss` gates Escape on `pds-modal` today: setting this to `false` means the close button is the only way out. A trigger outside the drawer should only ever set `open` to `true` and leave closing to the drawer itself. A toggle-style trigger (`open = !open`) fights light dismiss: clicking it while open closes the drawer on `pointerdown`, then the trigger's own click handler re-opens it.
|
|
1181
|
+
* @default true
|
|
1182
|
+
*/
|
|
1183
|
+
"lightDismiss": boolean;
|
|
1184
|
+
/**
|
|
1185
|
+
* Whether the drawer is open
|
|
1186
|
+
* @default false
|
|
1187
|
+
*/
|
|
1188
|
+
"open": boolean;
|
|
1189
|
+
/**
|
|
1190
|
+
* Whether the drawer content should be scrollable
|
|
1191
|
+
* @default true
|
|
1192
|
+
*/
|
|
1193
|
+
"scrollable": boolean;
|
|
1194
|
+
/**
|
|
1195
|
+
* Which edge of the viewport the drawer is docked to. Logical, so this is free under RTL — `end` is the inline-end edge regardless of direction.
|
|
1196
|
+
* @default 'end'
|
|
1197
|
+
*/
|
|
1198
|
+
"side": 'start' | 'end';
|
|
1199
|
+
/**
|
|
1200
|
+
* The drawer's width.
|
|
1201
|
+
* @default 'md'
|
|
1202
|
+
*/
|
|
1203
|
+
"size": 'sm' | 'md';
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* Fills the drawer panel's height by default — unlike `pds-modal-content`,
|
|
1207
|
+
* which caps itself against the viewport for a centered, possibly-shorter
|
|
1208
|
+
* modal, a drawer panel is already edge-to-edge, so its content can simply
|
|
1209
|
+
* flex to fill whatever space the header and footer leave.
|
|
1210
|
+
*/
|
|
1211
|
+
interface PdsDrawerContent {
|
|
1212
|
+
}
|
|
1213
|
+
interface PdsDrawerFooter {
|
|
1214
|
+
}
|
|
1215
|
+
interface PdsDrawerHeader {
|
|
1216
|
+
}
|
|
1152
1217
|
interface PdsDropdownMenu {
|
|
1153
1218
|
/**
|
|
1154
1219
|
* A unique identifier used for the underlying component `id` attribute.
|
|
@@ -1498,6 +1563,11 @@ export namespace Components {
|
|
|
1498
1563
|
* A unique identifier used for the underlying component `id` attribute.
|
|
1499
1564
|
*/
|
|
1500
1565
|
"componentId": string;
|
|
1566
|
+
/**
|
|
1567
|
+
* Whether to skip moving focus into the modal when it opens — both our own `setInitialFocus()` and the browser's native "dialog focusing steps", which move focus into the dialog as soon as `show()`/`showModal()` is called regardless of application code. Focus return on close is unaffected either way. For a modal opened by something other than a direct user click — a redirect, a deep link, a background event — stealing focus on open can interrupt whatever the user was already doing. Default `false` preserves today's behavior for every existing consumer.
|
|
1568
|
+
* @default false
|
|
1569
|
+
*/
|
|
1570
|
+
"disableInitialFocus": boolean;
|
|
1501
1571
|
/**
|
|
1502
1572
|
* Whether the modal opens outside the browser top layer as a non-modal dialog. When `true` it opens with `dialog.show()` instead of `dialog.showModal()`, so overlays rendered elsewhere in the DOM (file pickers, editor menus) can display above it via `z-index`. The page is not made inert and focus is not trapped in this mode. Read when the modal opens; changing it while the modal is open is not supported.
|
|
1503
1573
|
* @default false
|
|
@@ -1522,10 +1592,10 @@ export namespace Components {
|
|
|
1522
1592
|
*/
|
|
1523
1593
|
"showModal": () => Promise<void>;
|
|
1524
1594
|
/**
|
|
1525
|
-
* The size of the modal
|
|
1595
|
+
* The size of the modal. Can be a predefined value ('sm', 'md', 'lg', 'fullscreen') or a custom max-width as a CSS length (e.g., '1250px', '80vw'). A custom width stays fluid below that size. A value that is neither falls back to 'md'.
|
|
1526
1596
|
* @default 'md'
|
|
1527
1597
|
*/
|
|
1528
|
-
"size":
|
|
1598
|
+
"size": ModalSizeType | (string & Record<never, never>);
|
|
1529
1599
|
}
|
|
1530
1600
|
interface PdsModalContent {
|
|
1531
1601
|
/**
|
|
@@ -2211,7 +2281,7 @@ export namespace Components {
|
|
|
2211
2281
|
*/
|
|
2212
2282
|
"cellAlign"?: 'start' | 'center' | 'end' | 'justify';
|
|
2213
2283
|
/**
|
|
2214
|
-
* Truncates content to a max width and adds an ellipsis. When text overflows, a tooltip showing the full text will appear on hover/focus. Note:
|
|
2284
|
+
* Truncates content to a max width and adds an ellipsis. When text overflows, a tooltip showing the full text will appear on hover/focus. Note: While the content is overflowing, the cell receives tabindex="0" so the tooltip can be reached by keyboard. Content that fits is left out of the tab order.
|
|
2215
2285
|
*/
|
|
2216
2286
|
"truncate": boolean;
|
|
2217
2287
|
}
|
|
@@ -2357,7 +2427,7 @@ export namespace Components {
|
|
|
2357
2427
|
| 'strong'
|
|
2358
2428
|
| 'em';
|
|
2359
2429
|
/**
|
|
2360
|
-
* If set or `true`, the text will be truncated. Must add a `width` to the element. When text overflows, a tooltip showing the full text will appear on hover/focus. Note:
|
|
2430
|
+
* If set or `true`, the text will be truncated. Must add a `width` to the element. When text overflows, a tooltip showing the full text will appear on hover/focus. Note: While the text is overflowing, the element receives tabindex="0" so the tooltip can be reached by keyboard. Text that fits is left out of the tab order.
|
|
2361
2431
|
*/
|
|
2362
2432
|
"truncate"?: boolean;
|
|
2363
2433
|
/**
|
|
@@ -2562,6 +2632,10 @@ export interface PdsCopytextCustomEvent<T> extends CustomEvent<T> {
|
|
|
2562
2632
|
detail: T;
|
|
2563
2633
|
target: HTMLPdsCopytextElement;
|
|
2564
2634
|
}
|
|
2635
|
+
export interface PdsDrawerCustomEvent<T> extends CustomEvent<T> {
|
|
2636
|
+
detail: T;
|
|
2637
|
+
target: HTMLPdsDrawerElement;
|
|
2638
|
+
}
|
|
2565
2639
|
export interface PdsDropdownMenuItemCustomEvent<T> extends CustomEvent<T> {
|
|
2566
2640
|
detail: T;
|
|
2567
2641
|
target: HTMLPdsDropdownMenuItemElement;
|
|
@@ -2804,6 +2878,57 @@ declare global {
|
|
|
2804
2878
|
prototype: HTMLPdsDividerElement;
|
|
2805
2879
|
new (): HTMLPdsDividerElement;
|
|
2806
2880
|
};
|
|
2881
|
+
interface HTMLPdsDrawerElementEventMap {
|
|
2882
|
+
"pdsDrawerOpen": void;
|
|
2883
|
+
"pdsDrawerClose": void;
|
|
2884
|
+
}
|
|
2885
|
+
/**
|
|
2886
|
+
* A non-modal side panel composed from `pds-modal`.
|
|
2887
|
+
* Unlike `pds-modal`, the page stays interactive while a drawer is open: no
|
|
2888
|
+
* dimming, no blur, no scroll lock, no click blocking. `pds-drawer` renders a
|
|
2889
|
+
* `pds-modal` internally with `disableTopLayer` always on and its backdrop
|
|
2890
|
+
* suppressed, and adds the edge, width and dismiss behavior a side panel
|
|
2891
|
+
* needs on top. It does not reimplement focus, Escape or dialog semantics —
|
|
2892
|
+
* those come from `pds-modal` unchanged.
|
|
2893
|
+
*/
|
|
2894
|
+
interface HTMLPdsDrawerElement extends Components.PdsDrawer, HTMLStencilElement {
|
|
2895
|
+
addEventListener<K extends keyof HTMLPdsDrawerElementEventMap>(type: K, listener: (this: HTMLPdsDrawerElement, ev: PdsDrawerCustomEvent<HTMLPdsDrawerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2896
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2897
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2898
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2899
|
+
removeEventListener<K extends keyof HTMLPdsDrawerElementEventMap>(type: K, listener: (this: HTMLPdsDrawerElement, ev: PdsDrawerCustomEvent<HTMLPdsDrawerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2900
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2901
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2902
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2903
|
+
}
|
|
2904
|
+
var HTMLPdsDrawerElement: {
|
|
2905
|
+
prototype: HTMLPdsDrawerElement;
|
|
2906
|
+
new (): HTMLPdsDrawerElement;
|
|
2907
|
+
};
|
|
2908
|
+
/**
|
|
2909
|
+
* Fills the drawer panel's height by default — unlike `pds-modal-content`,
|
|
2910
|
+
* which caps itself against the viewport for a centered, possibly-shorter
|
|
2911
|
+
* modal, a drawer panel is already edge-to-edge, so its content can simply
|
|
2912
|
+
* flex to fill whatever space the header and footer leave.
|
|
2913
|
+
*/
|
|
2914
|
+
interface HTMLPdsDrawerContentElement extends Components.PdsDrawerContent, HTMLStencilElement {
|
|
2915
|
+
}
|
|
2916
|
+
var HTMLPdsDrawerContentElement: {
|
|
2917
|
+
prototype: HTMLPdsDrawerContentElement;
|
|
2918
|
+
new (): HTMLPdsDrawerContentElement;
|
|
2919
|
+
};
|
|
2920
|
+
interface HTMLPdsDrawerFooterElement extends Components.PdsDrawerFooter, HTMLStencilElement {
|
|
2921
|
+
}
|
|
2922
|
+
var HTMLPdsDrawerFooterElement: {
|
|
2923
|
+
prototype: HTMLPdsDrawerFooterElement;
|
|
2924
|
+
new (): HTMLPdsDrawerFooterElement;
|
|
2925
|
+
};
|
|
2926
|
+
interface HTMLPdsDrawerHeaderElement extends Components.PdsDrawerHeader, HTMLStencilElement {
|
|
2927
|
+
}
|
|
2928
|
+
var HTMLPdsDrawerHeaderElement: {
|
|
2929
|
+
prototype: HTMLPdsDrawerHeaderElement;
|
|
2930
|
+
new (): HTMLPdsDrawerHeaderElement;
|
|
2931
|
+
};
|
|
2807
2932
|
interface HTMLPdsDropdownMenuElement extends Components.PdsDropdownMenu, HTMLStencilElement {
|
|
2808
2933
|
}
|
|
2809
2934
|
var HTMLPdsDropdownMenuElement: {
|
|
@@ -3262,6 +3387,10 @@ declare global {
|
|
|
3262
3387
|
"pds-container": HTMLPdsContainerElement;
|
|
3263
3388
|
"pds-copytext": HTMLPdsCopytextElement;
|
|
3264
3389
|
"pds-divider": HTMLPdsDividerElement;
|
|
3390
|
+
"pds-drawer": HTMLPdsDrawerElement;
|
|
3391
|
+
"pds-drawer-content": HTMLPdsDrawerContentElement;
|
|
3392
|
+
"pds-drawer-footer": HTMLPdsDrawerFooterElement;
|
|
3393
|
+
"pds-drawer-header": HTMLPdsDrawerHeaderElement;
|
|
3265
3394
|
"pds-dropdown-menu": HTMLPdsDropdownMenuElement;
|
|
3266
3395
|
"pds-dropdown-menu-item": HTMLPdsDropdownMenuItemElement;
|
|
3267
3396
|
"pds-dropdown-menu-separator": HTMLPdsDropdownMenuSeparatorElement;
|
|
@@ -4185,10 +4314,18 @@ declare namespace LocalJSX {
|
|
|
4185
4314
|
* @defaultValue false
|
|
4186
4315
|
*/
|
|
4187
4316
|
"dot"?: boolean;
|
|
4317
|
+
/**
|
|
4318
|
+
* Sets the dot color. Accepts a sentiment name other than `brand` (e.g. `success`), a color token, or a [valid color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value). Defaults to the dot color of the chip's sentiment. Only applies when `dot` is set.
|
|
4319
|
+
*/
|
|
4320
|
+
"dotColor"?: string;
|
|
4188
4321
|
/**
|
|
4189
4322
|
* The name of the icon to display before the chip text.
|
|
4190
4323
|
*/
|
|
4191
4324
|
"icon"?: string;
|
|
4325
|
+
/**
|
|
4326
|
+
* Sets the icon color. Accepts a sentiment name other than `brand` (e.g. `success`), a color token, or a [valid color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value). Defaults to the chip's text color. Only applies when `icon` is set.
|
|
4327
|
+
*/
|
|
4328
|
+
"iconColor"?: string;
|
|
4192
4329
|
/**
|
|
4193
4330
|
* Sets the maximum width of the chip, truncating the label with an ellipsis when it overflows. Accepts any CSS length (e.g. '200px', '20ch'). The slot is documented as label text — slotting richer markup may not truncate the way you expect.
|
|
4194
4331
|
*/
|
|
@@ -4455,6 +4592,71 @@ declare namespace LocalJSX {
|
|
|
4455
4592
|
*/
|
|
4456
4593
|
"vertical"?: boolean;
|
|
4457
4594
|
}
|
|
4595
|
+
/**
|
|
4596
|
+
* A non-modal side panel composed from `pds-modal`.
|
|
4597
|
+
* Unlike `pds-modal`, the page stays interactive while a drawer is open: no
|
|
4598
|
+
* dimming, no blur, no scroll lock, no click blocking. `pds-drawer` renders a
|
|
4599
|
+
* `pds-modal` internally with `disableTopLayer` always on and its backdrop
|
|
4600
|
+
* suppressed, and adds the edge, width and dismiss behavior a side panel
|
|
4601
|
+
* needs on top. It does not reimplement focus, Escape or dialog semantics —
|
|
4602
|
+
* those come from `pds-modal` unchanged.
|
|
4603
|
+
*/
|
|
4604
|
+
interface PdsDrawer {
|
|
4605
|
+
/**
|
|
4606
|
+
* A unique identifier used for the underlying component `id` attribute.
|
|
4607
|
+
*/
|
|
4608
|
+
"componentId"?: string;
|
|
4609
|
+
/**
|
|
4610
|
+
* Whether to move focus into the drawer when it opens. `auto` is right for a drawer opened by a direct user action (a click, a deep link the user just navigated to). Set to `none` for a drawer that can open from a background event while the user is mid-task elsewhere on the page — moving focus there would interrupt them, and the page stays live under a non-modal drawer, so it is a genuine data-entry risk, not just an annoyance.
|
|
4611
|
+
* @default 'auto'
|
|
4612
|
+
*/
|
|
4613
|
+
"initialFocus"?: 'auto' | 'none';
|
|
4614
|
+
/**
|
|
4615
|
+
* Whether the drawer can be dismissed with a pointerdown outside it. Replaces `pds-modal`'s `backdropDismiss` — there is no backdrop to click. This also gates Escape, matching how `backdropDismiss` gates Escape on `pds-modal` today: setting this to `false` means the close button is the only way out. A trigger outside the drawer should only ever set `open` to `true` and leave closing to the drawer itself. A toggle-style trigger (`open = !open`) fights light dismiss: clicking it while open closes the drawer on `pointerdown`, then the trigger's own click handler re-opens it.
|
|
4616
|
+
* @default true
|
|
4617
|
+
*/
|
|
4618
|
+
"lightDismiss"?: boolean;
|
|
4619
|
+
/**
|
|
4620
|
+
* Emitted when the drawer is closed
|
|
4621
|
+
*/
|
|
4622
|
+
"onPdsDrawerClose"?: (event: PdsDrawerCustomEvent<void>) => void;
|
|
4623
|
+
/**
|
|
4624
|
+
* Emitted when the drawer is opened
|
|
4625
|
+
*/
|
|
4626
|
+
"onPdsDrawerOpen"?: (event: PdsDrawerCustomEvent<void>) => void;
|
|
4627
|
+
/**
|
|
4628
|
+
* Whether the drawer is open
|
|
4629
|
+
* @default false
|
|
4630
|
+
*/
|
|
4631
|
+
"open"?: boolean;
|
|
4632
|
+
/**
|
|
4633
|
+
* Whether the drawer content should be scrollable
|
|
4634
|
+
* @default true
|
|
4635
|
+
*/
|
|
4636
|
+
"scrollable"?: boolean;
|
|
4637
|
+
/**
|
|
4638
|
+
* Which edge of the viewport the drawer is docked to. Logical, so this is free under RTL — `end` is the inline-end edge regardless of direction.
|
|
4639
|
+
* @default 'end'
|
|
4640
|
+
*/
|
|
4641
|
+
"side"?: 'start' | 'end';
|
|
4642
|
+
/**
|
|
4643
|
+
* The drawer's width.
|
|
4644
|
+
* @default 'md'
|
|
4645
|
+
*/
|
|
4646
|
+
"size"?: 'sm' | 'md';
|
|
4647
|
+
}
|
|
4648
|
+
/**
|
|
4649
|
+
* Fills the drawer panel's height by default — unlike `pds-modal-content`,
|
|
4650
|
+
* which caps itself against the viewport for a centered, possibly-shorter
|
|
4651
|
+
* modal, a drawer panel is already edge-to-edge, so its content can simply
|
|
4652
|
+
* flex to fill whatever space the header and footer leave.
|
|
4653
|
+
*/
|
|
4654
|
+
interface PdsDrawerContent {
|
|
4655
|
+
}
|
|
4656
|
+
interface PdsDrawerFooter {
|
|
4657
|
+
}
|
|
4658
|
+
interface PdsDrawerHeader {
|
|
4659
|
+
}
|
|
4458
4660
|
interface PdsDropdownMenu {
|
|
4459
4661
|
/**
|
|
4460
4662
|
* A unique identifier used for the underlying component `id` attribute.
|
|
@@ -4828,6 +5030,11 @@ declare namespace LocalJSX {
|
|
|
4828
5030
|
* A unique identifier used for the underlying component `id` attribute.
|
|
4829
5031
|
*/
|
|
4830
5032
|
"componentId"?: string;
|
|
5033
|
+
/**
|
|
5034
|
+
* Whether to skip moving focus into the modal when it opens — both our own `setInitialFocus()` and the browser's native "dialog focusing steps", which move focus into the dialog as soon as `show()`/`showModal()` is called regardless of application code. Focus return on close is unaffected either way. For a modal opened by something other than a direct user click — a redirect, a deep link, a background event — stealing focus on open can interrupt whatever the user was already doing. Default `false` preserves today's behavior for every existing consumer.
|
|
5035
|
+
* @default false
|
|
5036
|
+
*/
|
|
5037
|
+
"disableInitialFocus"?: boolean;
|
|
4831
5038
|
/**
|
|
4832
5039
|
* Whether the modal opens outside the browser top layer as a non-modal dialog. When `true` it opens with `dialog.show()` instead of `dialog.showModal()`, so overlays rendered elsewhere in the DOM (file pickers, editor menus) can display above it via `z-index`. The page is not made inert and focus is not trapped in this mode. Read when the modal opens; changing it while the modal is open is not supported.
|
|
4833
5040
|
* @default false
|
|
@@ -4852,10 +5059,10 @@ declare namespace LocalJSX {
|
|
|
4852
5059
|
*/
|
|
4853
5060
|
"scrollable"?: boolean;
|
|
4854
5061
|
/**
|
|
4855
|
-
* The size of the modal
|
|
5062
|
+
* The size of the modal. Can be a predefined value ('sm', 'md', 'lg', 'fullscreen') or a custom max-width as a CSS length (e.g., '1250px', '80vw'). A custom width stays fluid below that size. A value that is neither falls back to 'md'.
|
|
4856
5063
|
* @default 'md'
|
|
4857
5064
|
*/
|
|
4858
|
-
"size"?:
|
|
5065
|
+
"size"?: ModalSizeType | (string & Record<never, never>);
|
|
4859
5066
|
}
|
|
4860
5067
|
interface PdsModalContent {
|
|
4861
5068
|
/**
|
|
@@ -5589,7 +5796,7 @@ declare namespace LocalJSX {
|
|
|
5589
5796
|
*/
|
|
5590
5797
|
"cellAlign"?: 'start' | 'center' | 'end' | 'justify';
|
|
5591
5798
|
/**
|
|
5592
|
-
* Truncates content to a max width and adds an ellipsis. When text overflows, a tooltip showing the full text will appear on hover/focus. Note:
|
|
5799
|
+
* Truncates content to a max width and adds an ellipsis. When text overflows, a tooltip showing the full text will appear on hover/focus. Note: While the content is overflowing, the cell receives tabindex="0" so the tooltip can be reached by keyboard. Content that fits is left out of the tab order.
|
|
5593
5800
|
*/
|
|
5594
5801
|
"truncate"?: boolean;
|
|
5595
5802
|
}
|
|
@@ -5727,7 +5934,7 @@ declare namespace LocalJSX {
|
|
|
5727
5934
|
| 'strong'
|
|
5728
5935
|
| 'em';
|
|
5729
5936
|
/**
|
|
5730
|
-
* If set or `true`, the text will be truncated. Must add a `width` to the element. When text overflows, a tooltip showing the full text will appear on hover/focus. Note:
|
|
5937
|
+
* If set or `true`, the text will be truncated. Must add a `width` to the element. When text overflows, a tooltip showing the full text will appear on hover/focus. Note: While the text is overflowing, the element receives tabindex="0" so the tooltip can be reached by keyboard. Text that fits is left out of the tab order.
|
|
5731
5938
|
*/
|
|
5732
5939
|
"truncate"?: boolean;
|
|
5733
5940
|
/**
|
|
@@ -6111,7 +6318,9 @@ declare namespace LocalJSX {
|
|
|
6111
6318
|
interface PdsChipAttributes {
|
|
6112
6319
|
"componentId": string;
|
|
6113
6320
|
"dot": boolean;
|
|
6321
|
+
"dotColor": string;
|
|
6114
6322
|
"icon": string;
|
|
6323
|
+
"iconColor": string;
|
|
6115
6324
|
"size": ChipSizeType;
|
|
6116
6325
|
"sentiment": ChipSentimentType;
|
|
6117
6326
|
"variant": ChipVariantType;
|
|
@@ -6171,6 +6380,15 @@ declare namespace LocalJSX {
|
|
|
6171
6380
|
"offset": 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
6172
6381
|
"vertical": boolean;
|
|
6173
6382
|
}
|
|
6383
|
+
interface PdsDrawerAttributes {
|
|
6384
|
+
"componentId": string;
|
|
6385
|
+
"open": boolean;
|
|
6386
|
+
"side": 'start' | 'end';
|
|
6387
|
+
"size": 'sm' | 'md';
|
|
6388
|
+
"scrollable": boolean;
|
|
6389
|
+
"lightDismiss": boolean;
|
|
6390
|
+
"initialFocus": 'auto' | 'none';
|
|
6391
|
+
}
|
|
6174
6392
|
interface PdsDropdownMenuAttributes {
|
|
6175
6393
|
"componentId": string;
|
|
6176
6394
|
"placement": PlacementType;
|
|
@@ -6266,9 +6484,10 @@ declare namespace LocalJSX {
|
|
|
6266
6484
|
"backdropDismiss": boolean;
|
|
6267
6485
|
"componentId": string;
|
|
6268
6486
|
"open": boolean;
|
|
6269
|
-
"size":
|
|
6487
|
+
"size": ModalSizeType | (string & Record<never, never>);
|
|
6270
6488
|
"scrollable": boolean;
|
|
6271
6489
|
"disableTopLayer": boolean;
|
|
6490
|
+
"disableInitialFocus": boolean;
|
|
6272
6491
|
}
|
|
6273
6492
|
interface PdsModalContentAttributes {
|
|
6274
6493
|
"border": 'none' | 'both' | 'top' | 'bottom';
|
|
@@ -6539,6 +6758,10 @@ declare namespace LocalJSX {
|
|
|
6539
6758
|
"pds-container": Omit<PdsContainer, keyof PdsContainerAttributes> & { [K in keyof PdsContainer & keyof PdsContainerAttributes]?: PdsContainer[K] } & { [K in keyof PdsContainer & keyof PdsContainerAttributes as `attr:${K}`]?: PdsContainerAttributes[K] } & { [K in keyof PdsContainer & keyof PdsContainerAttributes as `prop:${K}`]?: PdsContainer[K] };
|
|
6540
6759
|
"pds-copytext": Omit<PdsCopytext, keyof PdsCopytextAttributes> & { [K in keyof PdsCopytext & keyof PdsCopytextAttributes]?: PdsCopytext[K] } & { [K in keyof PdsCopytext & keyof PdsCopytextAttributes as `attr:${K}`]?: PdsCopytextAttributes[K] } & { [K in keyof PdsCopytext & keyof PdsCopytextAttributes as `prop:${K}`]?: PdsCopytext[K] } & OneOf<"value", PdsCopytext["value"], PdsCopytextAttributes["value"]>;
|
|
6541
6760
|
"pds-divider": Omit<PdsDivider, keyof PdsDividerAttributes> & { [K in keyof PdsDivider & keyof PdsDividerAttributes]?: PdsDivider[K] } & { [K in keyof PdsDivider & keyof PdsDividerAttributes as `attr:${K}`]?: PdsDividerAttributes[K] } & { [K in keyof PdsDivider & keyof PdsDividerAttributes as `prop:${K}`]?: PdsDivider[K] };
|
|
6761
|
+
"pds-drawer": Omit<PdsDrawer, keyof PdsDrawerAttributes> & { [K in keyof PdsDrawer & keyof PdsDrawerAttributes]?: PdsDrawer[K] } & { [K in keyof PdsDrawer & keyof PdsDrawerAttributes as `attr:${K}`]?: PdsDrawerAttributes[K] } & { [K in keyof PdsDrawer & keyof PdsDrawerAttributes as `prop:${K}`]?: PdsDrawer[K] };
|
|
6762
|
+
"pds-drawer-content": PdsDrawerContent;
|
|
6763
|
+
"pds-drawer-footer": PdsDrawerFooter;
|
|
6764
|
+
"pds-drawer-header": PdsDrawerHeader;
|
|
6542
6765
|
"pds-dropdown-menu": Omit<PdsDropdownMenu, keyof PdsDropdownMenuAttributes> & { [K in keyof PdsDropdownMenu & keyof PdsDropdownMenuAttributes]?: PdsDropdownMenu[K] } & { [K in keyof PdsDropdownMenu & keyof PdsDropdownMenuAttributes as `attr:${K}`]?: PdsDropdownMenuAttributes[K] } & { [K in keyof PdsDropdownMenu & keyof PdsDropdownMenuAttributes as `prop:${K}`]?: PdsDropdownMenu[K] };
|
|
6543
6766
|
"pds-dropdown-menu-item": Omit<PdsDropdownMenuItem, keyof PdsDropdownMenuItemAttributes> & { [K in keyof PdsDropdownMenuItem & keyof PdsDropdownMenuItemAttributes]?: PdsDropdownMenuItem[K] } & { [K in keyof PdsDropdownMenuItem & keyof PdsDropdownMenuItemAttributes as `attr:${K}`]?: PdsDropdownMenuItemAttributes[K] } & { [K in keyof PdsDropdownMenuItem & keyof PdsDropdownMenuItemAttributes as `prop:${K}`]?: PdsDropdownMenuItem[K] };
|
|
6544
6767
|
"pds-dropdown-menu-separator": Omit<PdsDropdownMenuSeparator, keyof PdsDropdownMenuSeparatorAttributes> & { [K in keyof PdsDropdownMenuSeparator & keyof PdsDropdownMenuSeparatorAttributes]?: PdsDropdownMenuSeparator[K] } & { [K in keyof PdsDropdownMenuSeparator & keyof PdsDropdownMenuSeparatorAttributes as `attr:${K}`]?: PdsDropdownMenuSeparatorAttributes[K] } & { [K in keyof PdsDropdownMenuSeparator & keyof PdsDropdownMenuSeparatorAttributes as `prop:${K}`]?: PdsDropdownMenuSeparator[K] };
|
|
@@ -6598,6 +6821,25 @@ declare module "@stencil/core" {
|
|
|
6598
6821
|
"pds-container": LocalJSX.IntrinsicElements["pds-container"] & JSXBase.HTMLAttributes<HTMLPdsContainerElement>;
|
|
6599
6822
|
"pds-copytext": LocalJSX.IntrinsicElements["pds-copytext"] & JSXBase.HTMLAttributes<HTMLPdsCopytextElement>;
|
|
6600
6823
|
"pds-divider": LocalJSX.IntrinsicElements["pds-divider"] & JSXBase.HTMLAttributes<HTMLPdsDividerElement>;
|
|
6824
|
+
/**
|
|
6825
|
+
* A non-modal side panel composed from `pds-modal`.
|
|
6826
|
+
* Unlike `pds-modal`, the page stays interactive while a drawer is open: no
|
|
6827
|
+
* dimming, no blur, no scroll lock, no click blocking. `pds-drawer` renders a
|
|
6828
|
+
* `pds-modal` internally with `disableTopLayer` always on and its backdrop
|
|
6829
|
+
* suppressed, and adds the edge, width and dismiss behavior a side panel
|
|
6830
|
+
* needs on top. It does not reimplement focus, Escape or dialog semantics —
|
|
6831
|
+
* those come from `pds-modal` unchanged.
|
|
6832
|
+
*/
|
|
6833
|
+
"pds-drawer": LocalJSX.IntrinsicElements["pds-drawer"] & JSXBase.HTMLAttributes<HTMLPdsDrawerElement>;
|
|
6834
|
+
/**
|
|
6835
|
+
* Fills the drawer panel's height by default — unlike `pds-modal-content`,
|
|
6836
|
+
* which caps itself against the viewport for a centered, possibly-shorter
|
|
6837
|
+
* modal, a drawer panel is already edge-to-edge, so its content can simply
|
|
6838
|
+
* flex to fill whatever space the header and footer leave.
|
|
6839
|
+
*/
|
|
6840
|
+
"pds-drawer-content": LocalJSX.IntrinsicElements["pds-drawer-content"] & JSXBase.HTMLAttributes<HTMLPdsDrawerContentElement>;
|
|
6841
|
+
"pds-drawer-footer": LocalJSX.IntrinsicElements["pds-drawer-footer"] & JSXBase.HTMLAttributes<HTMLPdsDrawerFooterElement>;
|
|
6842
|
+
"pds-drawer-header": LocalJSX.IntrinsicElements["pds-drawer-header"] & JSXBase.HTMLAttributes<HTMLPdsDrawerHeaderElement>;
|
|
6601
6843
|
"pds-dropdown-menu": LocalJSX.IntrinsicElements["pds-dropdown-menu"] & JSXBase.HTMLAttributes<HTMLPdsDropdownMenuElement>;
|
|
6602
6844
|
"pds-dropdown-menu-item": LocalJSX.IntrinsicElements["pds-dropdown-menu-item"] & JSXBase.HTMLAttributes<HTMLPdsDropdownMenuItemElement>;
|
|
6603
6845
|
"pds-dropdown-menu-separator": LocalJSX.IntrinsicElements["pds-dropdown-menu-separator"] & JSXBase.HTMLAttributes<HTMLPdsDropdownMenuSeparatorElement>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { E2EPage } from '@stencil/core/testing';
|
|
2
|
+
/**
|
|
3
|
+
* Asserts that an element's `transition-duration` collapses to `0s` once the
|
|
4
|
+
* page emulates `prefers-reduced-motion: reduce`.
|
|
5
|
+
*
|
|
6
|
+
* This is the runtime counterpart to the `pine-design-system/no-hardcoded-motion`
|
|
7
|
+
* Stylelint rule: the rule can only see a component's *source* — that it
|
|
8
|
+
* references `var(--pine-motion-duration-*)` somewhere. It can't see whether
|
|
9
|
+
* that reference actually reaches the declaration that runs at render time
|
|
10
|
+
* (a `var()` could be shadowed, overridden, or simply never wired up right).
|
|
11
|
+
* This closes that gap by reading the real computed style before and after
|
|
12
|
+
* emulating the preference, so a target that *doesn't* zero out fails loudly
|
|
13
|
+
* here even if it fooled the lint rule.
|
|
14
|
+
*
|
|
15
|
+
* Usage:
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* const page = await newE2EPage();
|
|
19
|
+
* await page.setContent('<pds-switch></pds-switch>');
|
|
20
|
+
* await expectRespectsReducedMotion(page, 'pds-switch', 'input', 'after');
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @param page Stencil E2E page.
|
|
24
|
+
* @param hostTag Custom element tag hosting the shadow root to read from.
|
|
25
|
+
* @param innerSelector Selector for the element within `hostTag`'s shadow
|
|
26
|
+
* root, or `null`/omitted to read `hostTag` itself.
|
|
27
|
+
* @param pseudoElement Pseudo-element to read from the target (e.g. `'after'`
|
|
28
|
+
* for `::after`), or `null`/omitted to read the element's own style.
|
|
29
|
+
*/
|
|
30
|
+
export declare function expectRespectsReducedMotion(page: E2EPage, hostTag: string, innerSelector?: string | null, pseudoElement?: string | null): Promise<void>;
|
|
@@ -8,6 +8,16 @@ export interface TruncationTooltipOptions {
|
|
|
8
8
|
getTooltipText: () => string;
|
|
9
9
|
/** Tooltip placement preference (default: 'top') */
|
|
10
10
|
placement?: PlacementType;
|
|
11
|
+
/**
|
|
12
|
+
* Whether to give `contentEl` a tab stop while its text is clipped (default: true).
|
|
13
|
+
*
|
|
14
|
+
* Set to `false` when `contentEl` already sits inside its own focusable
|
|
15
|
+
* control (e.g. a wrapping `<button>` or `<pds-button>`) that already
|
|
16
|
+
* receives focus and triggers this tooltip via `hostEl`'s `focusin`
|
|
17
|
+
* listener. Managing the tabindex there too would nest a second, nameless
|
|
18
|
+
* tab stop inside an already-interactive element.
|
|
19
|
+
*/
|
|
20
|
+
manageTabIndex?: boolean;
|
|
11
21
|
}
|
|
12
22
|
/**
|
|
13
23
|
* Sets up automatic tooltip behavior for a truncated element.
|
|
@@ -16,6 +26,8 @@ export interface TruncationTooltipOptions {
|
|
|
16
26
|
* will display a tooltip showing the full text content. The tooltip is
|
|
17
27
|
* rendered as a portal on document.body and positioned with Floating UI.
|
|
18
28
|
*
|
|
29
|
+
* Also owns the element's `tabindex` while it is clipped — see syncTabIndex.
|
|
30
|
+
*
|
|
19
31
|
* @returns A cleanup function that removes all listeners, observers, and DOM elements.
|
|
20
32
|
*/
|
|
21
33
|
export declare function setupTruncationTooltip(options: TruncationTooltipOptions): () => void;
|
|
@@ -2,7 +2,8 @@ export type PlacementType = 'top-start' | 'top' | 'top-end' | 'left-start' | 'le
|
|
|
2
2
|
export type BoxColumnType = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
|
|
3
3
|
export type BoxSpacingType = 'none' | 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | '025' | '050' | '100' | '125' | '150' | '200' | '250' | '300' | '350' | '400' | '450' | '500' | '550' | '600' | '650' | '700' | '750' | '800';
|
|
4
4
|
export type BoxShadowSizeType = 'none' | '050' | '100' | '150' | '200' | '300' | '400' | '500';
|
|
5
|
-
export type ChipSentimentType = 'accent' | 'brand' | 'danger' | 'info' | 'neutral' | 'success' | 'warning';
|
|
5
|
+
export type ChipSentimentType = 'accent' | 'brand' | 'danger' | 'info' | 'neutral' | 'solid' | 'subtle' | 'success' | 'warning';
|
|
6
|
+
export type ModalSizeType = 'sm' | 'md' | 'lg' | 'fullscreen';
|
|
6
7
|
export type ChipSizeType = 'sm' | 'md' | 'lg';
|
|
7
8
|
export type ChipVariantType = 'text' | 'tag' | 'dropdown';
|
|
8
9
|
export declare const TEXT_SIZES: readonly ["2xl", "xl", "lg", "md", "sm", "xs", "2xs", "h1", "h2", "h3", "h4", "h5", "h6"];
|
|
@@ -3,7 +3,15 @@ export declare const hasShadowDom: (el: Element) => boolean;
|
|
|
3
3
|
export declare const debounceEvent: (event: EventEmitter, wait: number) => EventEmitter;
|
|
4
4
|
export declare const debounce: (func: (...args: any[]) => void, wait?: number) => (...args: any[]) => any;
|
|
5
5
|
/**
|
|
6
|
-
* Normalizes color values to ensure consistent CSS variable usage
|
|
6
|
+
* Normalizes color values to ensure consistent CSS variable usage.
|
|
7
|
+
*
|
|
8
|
+
* This is the single low-level primitive for color-prop normalization in
|
|
9
|
+
* Pine. A component with its own semantic-keyword set (e.g. pds-chip's
|
|
10
|
+
* sentiment-to-dot-color map) should call this directly with its own
|
|
11
|
+
* `semanticMap` rather than inventing a new normalization helper. Reach for
|
|
12
|
+
* `setColor` below only when its specific text-role semantic set and
|
|
13
|
+
* `--color` output key already match what the component needs.
|
|
14
|
+
*
|
|
7
15
|
* @param value - Raw token (--token), CSS variable (var(--token)), semantic name, or literal color
|
|
8
16
|
* @param options.semanticMap - Optional mapping of semantic names to CSS variables
|
|
9
17
|
* @returns Normalized color value or undefined for invalid inputs
|
|
@@ -11,4 +19,11 @@ export declare const debounce: (func: (...args: any[]) => void, wait?: number) =
|
|
|
11
19
|
export declare const normalizeColorValue: (value: string | undefined, options?: {
|
|
12
20
|
semanticMap?: Record<string, string>;
|
|
13
21
|
}) => string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Convenience wrapper around `normalizeColorValue` for the common text-role
|
|
24
|
+
* semantic set (primary/secondary/accent/etc.), returned as a `--color`
|
|
25
|
+
* custom property. If a component needs a different semantic map or a
|
|
26
|
+
* different custom-property name (e.g. pds-chip's dot/icon-specific tokens),
|
|
27
|
+
* call `normalizeColorValue` directly instead of extending this function.
|
|
28
|
+
*/
|
|
14
29
|
export declare const setColor: (color: string, customColors?: Record<string, string>) => Record<string, string>;
|