@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
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { downSmall, remove } from "@pine-ds/icons/icons";
|
|
2
2
|
import { Host, h } from "@stencil/core";
|
|
3
3
|
import { setupTruncationTooltip } from "../../utils/truncation-tooltip";
|
|
4
|
+
import { normalizeColorValue } from "../../utils/utils";
|
|
5
|
+
const SENTIMENT_DOT_COLORS = {
|
|
6
|
+
accent: 'var(--pine-chip-color-accent-dot)',
|
|
7
|
+
danger: 'var(--pine-chip-color-danger-dot)',
|
|
8
|
+
info: 'var(--pine-chip-color-info-dot)',
|
|
9
|
+
neutral: 'var(--pine-chip-color-neutral-dot)',
|
|
10
|
+
solid: 'var(--pine-chip-color-solid-dot)',
|
|
11
|
+
subtle: 'var(--pine-chip-color-subtle-dot)',
|
|
12
|
+
success: 'var(--pine-chip-color-success-dot)',
|
|
13
|
+
warning: 'var(--pine-chip-color-warning-dot)',
|
|
14
|
+
};
|
|
4
15
|
/**
|
|
5
16
|
* @slot (default) - The chip's label text.
|
|
6
17
|
* @part button
|
|
18
|
+
* @part dot - Exposes the dot for styling, such as a custom color. Appears only when `dot` is set.
|
|
19
|
+
* @part icon - Exposes the icon component for styling, such as a custom color. Appears only when `icon` is set.
|
|
7
20
|
*/
|
|
8
21
|
export class PdsChip {
|
|
9
22
|
constructor() {
|
|
@@ -60,6 +73,11 @@ export class PdsChip {
|
|
|
60
73
|
hostEl: this.el,
|
|
61
74
|
contentEl: this.labelTextEl,
|
|
62
75
|
getTooltipText: () => this.el.textContent || '',
|
|
76
|
+
// The dropdown variant's label span already sits inside
|
|
77
|
+
// `<button class="pds-chip__button">`, which is already focusable and
|
|
78
|
+
// bubbles focusin to the host — a tabindex on the span too would nest
|
|
79
|
+
// a second tab stop inside the button.
|
|
80
|
+
manageTabIndex: this.effectiveVariant !== 'dropdown',
|
|
63
81
|
});
|
|
64
82
|
this.tooltipBoundEl = this.labelTextEl;
|
|
65
83
|
}
|
|
@@ -110,11 +128,15 @@ export class PdsChip {
|
|
|
110
128
|
// node — and a plain `<pds-chip>Some text</pds-chip>` slots text with no
|
|
111
129
|
// wrapping element. Wrapping the slot itself in an internal span gives
|
|
112
130
|
// maxWidth something to ellipsize regardless of what's slotted.
|
|
113
|
-
// A focus-triggered tooltip needs a focusable anchor
|
|
114
|
-
//
|
|
115
|
-
//
|
|
116
|
-
|
|
117
|
-
|
|
131
|
+
// A focus-triggered tooltip needs a focusable anchor, but the label span
|
|
132
|
+
// only earns a tab stop while its text is actually clipped — a chip whose
|
|
133
|
+
// label fits has nothing to reveal. setupTruncationTooltip owns that
|
|
134
|
+
// tabindex off the measurement for every variant except dropdown: its
|
|
135
|
+
// label span already sits inside `<button class="pds-chip__button">`,
|
|
136
|
+
// which is already focusable and bubbles focusin to the host, so
|
|
137
|
+
// initTruncationTooltip passes `manageTabIndex: false` there to avoid
|
|
138
|
+
// nesting a second tab stop inside the button.
|
|
139
|
+
const chipContent = isDropdown ? (h("button", { class: "pds-chip__button", type: "button", part: "button" }, this.icon && h("pds-icon", { class: "pds-chip__icon", part: "icon", icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && h("i", { class: "pds-chip__dot", part: "dot", "aria-hidden": "true" }), h("span", { class: "pds-chip__label-text", ref: (el) => (this.labelTextEl = el) }, h("slot", null)), h("pds-icon", { icon: downSmall, size: this.iconSize, "aria-hidden": "true" }))) : (h("span", { class: "pds-chip__label" }, this.icon && h("pds-icon", { class: "pds-chip__icon", part: "icon", icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && h("i", { class: "pds-chip__dot", part: "dot", "aria-hidden": "true" }), h("span", { class: "pds-chip__label-text", ref: (el) => (this.labelTextEl = el) }, h("slot", null))));
|
|
118
140
|
return chipContent;
|
|
119
141
|
}
|
|
120
142
|
get hostStyles() {
|
|
@@ -123,7 +145,21 @@ export class PdsChip {
|
|
|
123
145
|
// query) without !important — the same pattern pds-box uses for min-width.
|
|
124
146
|
// The width and the min-width/box-sizing that make it work are applied in
|
|
125
147
|
// pds-chip.scss under :host([max-width]).
|
|
126
|
-
|
|
148
|
+
const styles = {};
|
|
149
|
+
if (this.maxWidth) {
|
|
150
|
+
styles['--pds-chip-max-width'] = this.maxWidth;
|
|
151
|
+
}
|
|
152
|
+
// Custom properties rather than inline colors on the dot/icon, so a
|
|
153
|
+
// consumer's ::part(dot) or ::part(icon) rule still wins over the prop.
|
|
154
|
+
const dotColor = normalizeColorValue(this.dotColor, { semanticMap: SENTIMENT_DOT_COLORS });
|
|
155
|
+
if (dotColor !== undefined) {
|
|
156
|
+
styles['--pds-chip-dot-color'] = dotColor;
|
|
157
|
+
}
|
|
158
|
+
const iconColor = normalizeColorValue(this.iconColor, { semanticMap: SENTIMENT_DOT_COLORS });
|
|
159
|
+
if (iconColor !== undefined) {
|
|
160
|
+
styles['--pds-chip-icon-color'] = iconColor;
|
|
161
|
+
}
|
|
162
|
+
return styles;
|
|
127
163
|
}
|
|
128
164
|
renderCloseButton() {
|
|
129
165
|
const CloseElement = this.removeUrl ? 'a' : 'button';
|
|
@@ -170,7 +206,7 @@ export class PdsChip {
|
|
|
170
206
|
return (h(CloseElement, Object.assign({}, closeAttributes(), { onClick: this.handleCloseClick }), h("pds-icon", { icon: remove, size: this.iconSize })));
|
|
171
207
|
}
|
|
172
208
|
render() {
|
|
173
|
-
return (h(Host, { key: '
|
|
209
|
+
return (h(Host, { key: '323831a875b5f0e786e1e835c230d6950c71d009', class: this.classNames(), id: this.componentId, style: this.hostStyles }, this.setChipContent(), this.effectiveVariant === 'tag' && this.renderCloseButton()));
|
|
174
210
|
}
|
|
175
211
|
static get is() { return "pds-chip"; }
|
|
176
212
|
static get encapsulation() { return "shadow"; }
|
|
@@ -228,6 +264,25 @@ export class PdsChip {
|
|
|
228
264
|
"attribute": "dot",
|
|
229
265
|
"defaultValue": "false"
|
|
230
266
|
},
|
|
267
|
+
"dotColor": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"mutable": false,
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "string",
|
|
272
|
+
"resolved": "string",
|
|
273
|
+
"references": {}
|
|
274
|
+
},
|
|
275
|
+
"required": false,
|
|
276
|
+
"optional": true,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": "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).\nDefaults to the dot color of the chip's sentiment. Only applies when `dot` is set."
|
|
280
|
+
},
|
|
281
|
+
"getter": false,
|
|
282
|
+
"setter": false,
|
|
283
|
+
"reflect": false,
|
|
284
|
+
"attribute": "dot-color"
|
|
285
|
+
},
|
|
231
286
|
"icon": {
|
|
232
287
|
"type": "string",
|
|
233
288
|
"mutable": false,
|
|
@@ -247,6 +302,25 @@ export class PdsChip {
|
|
|
247
302
|
"reflect": false,
|
|
248
303
|
"attribute": "icon"
|
|
249
304
|
},
|
|
305
|
+
"iconColor": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"mutable": false,
|
|
308
|
+
"complexType": {
|
|
309
|
+
"original": "string",
|
|
310
|
+
"resolved": "string",
|
|
311
|
+
"references": {}
|
|
312
|
+
},
|
|
313
|
+
"required": false,
|
|
314
|
+
"optional": true,
|
|
315
|
+
"docs": {
|
|
316
|
+
"tags": [],
|
|
317
|
+
"text": "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).\nDefaults to the chip's text color. Only applies when `icon` is set."
|
|
318
|
+
},
|
|
319
|
+
"getter": false,
|
|
320
|
+
"setter": false,
|
|
321
|
+
"reflect": false,
|
|
322
|
+
"attribute": "icon-color"
|
|
323
|
+
},
|
|
250
324
|
"size": {
|
|
251
325
|
"type": "string",
|
|
252
326
|
"mutable": false,
|
|
@@ -281,7 +355,7 @@ export class PdsChip {
|
|
|
281
355
|
"mutable": false,
|
|
282
356
|
"complexType": {
|
|
283
357
|
"original": "ChipSentimentType",
|
|
284
|
-
"resolved": "\"accent\" | \"brand\" | \"danger\" | \"info\" | \"neutral\" | \"success\" | \"warning\"",
|
|
358
|
+
"resolved": "\"accent\" | \"brand\" | \"danger\" | \"info\" | \"neutral\" | \"solid\" | \"subtle\" | \"success\" | \"warning\"",
|
|
285
359
|
"references": {
|
|
286
360
|
"ChipSentimentType": {
|
|
287
361
|
"location": "import",
|
|
@@ -15,6 +15,14 @@
|
|
|
15
15
|
--pine-chip-color-neutral-hover: var(--pine-color-grey-300);
|
|
16
16
|
--pine-chip-color-neutral-dot: var(--pine-color-grey-600);
|
|
17
17
|
--pine-chip-color-neutral-text: var(--pine-color-grey-950);
|
|
18
|
+
--pine-chip-color-solid: var(--pine-color-grey-900);
|
|
19
|
+
--pine-chip-color-solid-hover: var(--pine-color-grey-950);
|
|
20
|
+
--pine-chip-color-solid-dot: var(--pine-color-white);
|
|
21
|
+
--pine-chip-color-solid-text: var(--pine-color-white);
|
|
22
|
+
--pine-chip-color-subtle: var(--pine-color-white);
|
|
23
|
+
--pine-chip-color-subtle-hover: var(--pine-color-grey-300);
|
|
24
|
+
--pine-chip-color-subtle-dot: var(--pine-color-grey-900);
|
|
25
|
+
--pine-chip-color-subtle-text: var(--pine-color-grey-900);
|
|
18
26
|
--pine-chip-color-success: var(--pine-color-green-100);
|
|
19
27
|
--pine-chip-color-success-hover: var(--pine-color-green-300);
|
|
20
28
|
--pine-chip-color-success-dot: var(--pine-color-green-600);
|
|
@@ -42,6 +50,14 @@
|
|
|
42
50
|
--pine-chip-color-neutral-hover: var(--pine-color-grey-600);
|
|
43
51
|
--pine-chip-color-neutral-dot: var(--pine-color-grey-300);
|
|
44
52
|
--pine-chip-color-neutral-text: var(--pine-color-grey-100);
|
|
53
|
+
--pine-chip-color-solid: var(--pine-color-white);
|
|
54
|
+
--pine-chip-color-solid-hover: var(--pine-color-grey-100);
|
|
55
|
+
--pine-chip-color-solid-dot: var(--pine-color-grey-900);
|
|
56
|
+
--pine-chip-color-solid-text: var(--pine-color-grey-900);
|
|
57
|
+
--pine-chip-color-subtle: var(--pine-color-grey-900);
|
|
58
|
+
--pine-chip-color-subtle-hover: var(--pine-color-grey-500);
|
|
59
|
+
--pine-chip-color-subtle-dot: var(--pine-color-white);
|
|
60
|
+
--pine-chip-color-subtle-text: var(--pine-color-white);
|
|
45
61
|
--pine-chip-color-success: var(--pine-color-green-900);
|
|
46
62
|
--pine-chip-color-success-hover: var(--pine-color-green-800);
|
|
47
63
|
--pine-chip-color-success-dot: var(--pine-color-green-400);
|
|
@@ -2,10 +2,24 @@ import { html } from 'lit';
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
+
args: {
|
|
6
|
+
dotColor: '',
|
|
7
|
+
iconColor: '',
|
|
8
|
+
},
|
|
5
9
|
argTypes: {
|
|
10
|
+
// `dot` and `icon` are also CSS part names; without these the parts
|
|
11
|
+
// entries replace the prop controls in the Controls panel.
|
|
12
|
+
dot: {
|
|
13
|
+
control: { type: 'boolean' },
|
|
14
|
+
table: { category: 'properties' },
|
|
15
|
+
},
|
|
16
|
+
icon: {
|
|
17
|
+
control: { type: 'text' },
|
|
18
|
+
table: { category: 'properties' },
|
|
19
|
+
},
|
|
6
20
|
sentiment: {
|
|
7
21
|
control: { type: 'select' },
|
|
8
|
-
options: ['accent', 'brand', 'danger', 'info', 'neutral', 'success', 'warning'],
|
|
22
|
+
options: ['accent', 'brand', 'danger', 'info', 'neutral', 'solid', 'subtle', 'success', 'warning'],
|
|
9
23
|
},
|
|
10
24
|
size: {
|
|
11
25
|
control: { type: 'select' },
|
|
@@ -25,7 +39,9 @@ const BaseTemplate = (args) => html`
|
|
|
25
39
|
<pds-chip
|
|
26
40
|
component-id="${args.componentId}"
|
|
27
41
|
?dot=${args.dot}
|
|
42
|
+
dot-color="${args.dotColor}"
|
|
28
43
|
icon="${args.icon}"
|
|
44
|
+
icon-color="${args.iconColor}"
|
|
29
45
|
size="${args.size}"
|
|
30
46
|
sentiment="${args.sentiment}"
|
|
31
47
|
variant="${args.variant}"
|
|
@@ -77,6 +93,28 @@ Icon.args = {
|
|
|
77
93
|
variant: "text",
|
|
78
94
|
}
|
|
79
95
|
|
|
96
|
+
export const DotColor = BaseTemplate.bind();
|
|
97
|
+
DotColor.args = {
|
|
98
|
+
dot: true,
|
|
99
|
+
dotColor: "success",
|
|
100
|
+
icon: "",
|
|
101
|
+
size: "md",
|
|
102
|
+
sentiment: "neutral",
|
|
103
|
+
slot: "Active",
|
|
104
|
+
variant: "text",
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export const IconColor = BaseTemplate.bind();
|
|
108
|
+
IconColor.args = {
|
|
109
|
+
dot: false,
|
|
110
|
+
icon: "check",
|
|
111
|
+
iconColor: "success",
|
|
112
|
+
size: "md",
|
|
113
|
+
sentiment: "neutral",
|
|
114
|
+
slot: "Paid",
|
|
115
|
+
variant: "text",
|
|
116
|
+
}
|
|
117
|
+
|
|
80
118
|
export const Dropdown = BaseTemplate.bind();
|
|
81
119
|
Dropdown.args = {
|
|
82
120
|
dot: false,
|
|
@@ -279,8 +279,7 @@
|
|
|
279
279
|
--color-border-hover: var(--pine-color-accent-hover);
|
|
280
280
|
--color-border-disabled: var(--pine-color-accent-disabled);
|
|
281
281
|
--color-border-focus: var(--pine-color-accent);
|
|
282
|
-
|
|
283
|
-
--color-text-default: var(--pine-color-white);
|
|
282
|
+
--color-text-default: var(--pine-color-text-primary);
|
|
284
283
|
--color-text-disabled: var(--pine-color-text-accent-disabled);
|
|
285
284
|
--color-outline: var(--pine-color-focus-ring);
|
|
286
285
|
}
|
|
@@ -1935,7 +1935,7 @@ export class PdsCombobox {
|
|
|
1935
1935
|
"mutable": false,
|
|
1936
1936
|
"complexType": {
|
|
1937
1937
|
"original": "ChipSentimentType",
|
|
1938
|
-
"resolved": "\"accent\" | \"brand\" | \"danger\" | \"info\" | \"neutral\" | \"success\" | \"warning\"",
|
|
1938
|
+
"resolved": "\"accent\" | \"brand\" | \"danger\" | \"info\" | \"neutral\" | \"solid\" | \"subtle\" | \"success\" | \"warning\"",
|
|
1939
1939
|
"references": {
|
|
1940
1940
|
"ChipSentimentType": {
|
|
1941
1941
|
"location": "import",
|
|
@@ -63,6 +63,10 @@ export class PdsCopytext {
|
|
|
63
63
|
hostEl: this.el,
|
|
64
64
|
contentEl: this.valueSpanEl,
|
|
65
65
|
getTooltipText: () => this.value || '',
|
|
66
|
+
// valueSpanEl already sits inside the `<pds-button>` below, which is
|
|
67
|
+
// already focusable and bubbles focusin to the host — a tabindex on
|
|
68
|
+
// the span too would nest a second tab stop inside the button.
|
|
69
|
+
manageTabIndex: false,
|
|
66
70
|
});
|
|
67
71
|
}
|
|
68
72
|
}
|
|
@@ -86,7 +90,7 @@ export class PdsCopytext {
|
|
|
86
90
|
return classNames.join(' ');
|
|
87
91
|
}
|
|
88
92
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
93
|
+
return (h(Host, { key: '6e3ff4eb0dc42e57156a162196a06a675cac6f91', class: this.classNames(), id: this.componentId }, h("pds-button", { key: '749a8dde35eb3c70941229d11dc6477aaf717ed1', type: "button", variant: "unstyled", onClick: this.handleClick }, h("span", { key: '7f457a164f3ae76a37814d37d7b5e3fce86bd803', ref: (el) => this.valueSpanEl = el }, this.value), h("pds-icon", { key: '0ff6dad44148c23ee9d693e82880598b91b0630e', "aria-hidden": "true", icon: copyIcon, size: "16px" }))));
|
|
90
94
|
}
|
|
91
95
|
static get is() { return "pds-copytext"; }
|
|
92
96
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
pds-drawer-content {
|
|
2
|
+
display: block;
|
|
3
|
+
flex: 1 1 auto;
|
|
4
|
+
min-height: 0;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.pds-drawer-content {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
display: block;
|
|
11
|
+
height: 100%;
|
|
12
|
+
padding: var(--pine-dimension-md);
|
|
13
|
+
width: 100%;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.pds-modal--scrollable pds-drawer-content {
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.pds-modal:not(.pds-modal--scrollable) pds-drawer-content {
|
|
21
|
+
overflow-y: visible;
|
|
22
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { unwrapReconnectedContent } from "../../../utils/reconnected-content";
|
|
3
|
+
/**
|
|
4
|
+
* Fills the drawer panel's height by default — unlike `pds-modal-content`,
|
|
5
|
+
* which caps itself against the viewport for a centered, possibly-shorter
|
|
6
|
+
* modal, a drawer panel is already edge-to-edge, so its content can simply
|
|
7
|
+
* flex to fill whatever space the header and footer leave.
|
|
8
|
+
*/
|
|
9
|
+
export class PdsDrawerContent {
|
|
10
|
+
// Unwraps a nested .pds-drawer-content left by a page-cache (Turbo, bfcache) reconnect.
|
|
11
|
+
componentDidRender() {
|
|
12
|
+
unwrapReconnectedContent(this.el.querySelector('.pds-drawer-content'), '.pds-drawer-content');
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (h("div", { key: '432db626c93ab42365ec1af83562eec7ae1c4674', class: "pds-drawer-content" }, h("slot", { key: '901ab074f31726023add709a4953bddb43842de2' })));
|
|
16
|
+
}
|
|
17
|
+
static get is() { return "pds-drawer-content"; }
|
|
18
|
+
static get originalStyleUrls() {
|
|
19
|
+
return {
|
|
20
|
+
"$": ["pds-drawer-content.scss"]
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
static get styleUrls() {
|
|
24
|
+
return {
|
|
25
|
+
"$": ["pds-drawer-content.css"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get elementRef() { return "el"; }
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
pds-drawer-footer {
|
|
2
|
+
display: block;
|
|
3
|
+
flex: 0 0 auto;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.pds-drawer__footer {
|
|
8
|
+
border-block-start: 1px solid var(--pine-color-border-subtle);
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
display: flex;
|
|
11
|
+
gap: var(--pine-dimension-sm);
|
|
12
|
+
justify-content: flex-end;
|
|
13
|
+
padding: var(--pine-dimension-md);
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { unwrapReconnectedContent } from "../../../utils/reconnected-content";
|
|
3
|
+
export class PdsDrawerFooter {
|
|
4
|
+
// Unwraps a nested .pds-drawer__footer left by a page-cache (Turbo, bfcache) reconnect.
|
|
5
|
+
componentDidRender() {
|
|
6
|
+
unwrapReconnectedContent(this.el.querySelector('.pds-drawer__footer'), '.pds-drawer__footer');
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return (h("footer", { key: '71cb35f7b1ccba9e4187eb8942771741f13510dc', class: "pds-drawer__footer" }, h("slot", { key: '28927c76ee8194c44f416ee5d4e9ea2e0376bf5a' })));
|
|
10
|
+
}
|
|
11
|
+
static get is() { return "pds-drawer-footer"; }
|
|
12
|
+
static get originalStyleUrls() {
|
|
13
|
+
return {
|
|
14
|
+
"$": ["pds-drawer-footer.scss"]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
static get styleUrls() {
|
|
18
|
+
return {
|
|
19
|
+
"$": ["pds-drawer-footer.css"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static get elementRef() { return "el"; }
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
pds-drawer-header {
|
|
2
|
+
display: block;
|
|
3
|
+
flex: 0 0 auto;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.pds-drawer__header {
|
|
8
|
+
align-items: center;
|
|
9
|
+
border-block-end: 1px solid var(--pine-color-border-subtle);
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
padding: var(--pine-dimension-md);
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { unwrapReconnectedContent } from "../../../utils/reconnected-content";
|
|
3
|
+
export class PdsDrawerHeader {
|
|
4
|
+
// Unwraps a nested .pds-drawer__header left by a page-cache (Turbo, bfcache) reconnect.
|
|
5
|
+
componentDidRender() {
|
|
6
|
+
unwrapReconnectedContent(this.el.querySelector('.pds-drawer__header'), '.pds-drawer__header');
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return (h("header", { key: '48d0585e0e20c9d3142635f0fc0184c0803413b8', class: "pds-drawer__header" }, h("slot", { key: '14d9d0bde0116c81892140b22a2b6e9a2b1d969f' })));
|
|
10
|
+
}
|
|
11
|
+
static get is() { return "pds-drawer-header"; }
|
|
12
|
+
static get originalStyleUrls() {
|
|
13
|
+
return {
|
|
14
|
+
"$": ["pds-drawer-header.scss"]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
static get styleUrls() {
|
|
18
|
+
return {
|
|
19
|
+
"$": ["pds-drawer-header.css"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static get elementRef() { return "el"; }
|
|
23
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.pds-drawer__modal > .pds-modal__backdrop {
|
|
2
|
+
align-items: stretch;
|
|
3
|
+
background-color: transparent;
|
|
4
|
+
pointer-events: none;
|
|
5
|
+
}
|
|
6
|
+
@supports (backdrop-filter: blur(3px)) {
|
|
7
|
+
.pds-drawer__modal > .pds-modal__backdrop {
|
|
8
|
+
backdrop-filter: none;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.pds-drawer__modal > .pds-modal__backdrop > .pds-modal {
|
|
13
|
+
border-radius: 0;
|
|
14
|
+
height: 100%;
|
|
15
|
+
margin: 0;
|
|
16
|
+
max-height: 100%;
|
|
17
|
+
max-width: 100%;
|
|
18
|
+
pointer-events: auto;
|
|
19
|
+
width: var(--pds-drawer-width, 500px);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.pds-drawer {
|
|
23
|
+
display: contents;
|
|
24
|
+
}
|
|
25
|
+
.pds-drawer.pds-drawer--end .pds-drawer__modal > .pds-modal__backdrop {
|
|
26
|
+
justify-content: flex-end;
|
|
27
|
+
}
|
|
28
|
+
.pds-drawer.pds-drawer--start .pds-drawer__modal > .pds-modal__backdrop {
|
|
29
|
+
justify-content: flex-start;
|
|
30
|
+
}
|
|
31
|
+
.pds-drawer.pds-drawer--sm {
|
|
32
|
+
--pds-drawer-width: 360px;
|
|
33
|
+
}
|
|
34
|
+
.pds-drawer.pds-drawer--md {
|
|
35
|
+
--pds-drawer-width: 500px;
|
|
36
|
+
}
|