@pine-ds/core 4.0.0 → 4.2.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-chip2.js +1 -1
- package/components/pds-copytext.js +1 -1
- package/components/pds-divider.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-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 +1 -1
- 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-CKNNY-lQ.js → index-Bu3NXpbK.js} +1 -1
- package/dist/cjs/{index-BdFrBXCD.js → index-CuQil7H0.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 +2 -2
- 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 +1 -1
- package/dist/cjs/pds-button.cjs.entry.js +2 -2
- package/dist/cjs/pds-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/pds-chip.cjs.entry.js +18 -9
- package/dist/cjs/pds-combobox.cjs.entry.js +1 -1
- 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 +10 -3
- 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 +1 -1
- package/dist/cjs/pds-image.cjs.entry.js +3 -3
- package/dist/cjs/pds-input.cjs.entry.js +4 -4
- package/dist/cjs/pds-link.cjs.entry.js +4 -4
- 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 +142 -11
- package/dist/cjs/pds-multiselect.cjs.entry.js +5 -5
- package/dist/cjs/pds-popover.cjs.entry.js +2 -2
- package/dist/cjs/pds-progress.cjs.entry.js +2 -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 +5 -5
- 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 +6 -24
- package/dist/cjs/pds-textarea.cjs.entry.js +6 -6
- 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/collection/collection-manifest.json +4 -0
- package/dist/collection/components/pds-chip/pds-chip.js +15 -6
- package/dist/collection/components/pds-copytext/pds-copytext.js +5 -1
- package/dist/collection/components/pds-divider/pds-divider.css +41 -0
- package/dist/collection/components/pds-divider/pds-divider.js +30 -1
- package/dist/collection/components/pds-divider/stories/pds-divider.stories.js +7 -0
- 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.js +164 -10
- 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 +1 -1
- package/dist/collection/components/pds-property/pds-property.js +1 -1
- 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/docs.json +419 -6
- package/dist/esm/{index-NNDTPCWx.js → index-CTLu1TM4.js} +1 -1
- package/dist/esm/{index-BjlFq0VD.js → index-DdPaBxPo.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 +2 -2
- 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 +1 -1
- package/dist/esm/pds-button.entry.js +2 -2
- package/dist/esm/pds-checkbox.entry.js +2 -2
- package/dist/esm/pds-chip.entry.js +18 -9
- package/dist/esm/pds-combobox.entry.js +1 -1
- 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 +10 -3
- 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 +1 -1
- package/dist/esm/pds-image.entry.js +3 -3
- package/dist/esm/pds-input.entry.js +4 -4
- package/dist/esm/pds-link.entry.js +4 -4
- 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 +142 -11
- package/dist/esm/pds-multiselect.entry.js +5 -5
- package/dist/esm/pds-popover.entry.js +2 -2
- package/dist/esm/pds-progress.entry.js +2 -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 +5 -5
- 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 +4 -22
- package/dist/esm/pds-textarea.entry.js +6 -6
- 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-es5/{index-NNDTPCWx.js → index-CTLu1TM4.js} +1 -1
- 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 +1 -1
- 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-02a47ebb.entry.js +1 -0
- package/dist/pine-core/{p-b3b44b80.entry.js → p-049681fc.entry.js} +1 -1
- package/dist/pine-core/p-053b0898.system.entry.js +1 -0
- package/dist/pine-core/p-09413b07.entry.js +1 -0
- package/dist/pine-core/{p-17d4a99a.system.entry.js → p-0ab735aa.system.entry.js} +1 -1
- package/dist/pine-core/p-12182cab.entry.js +1 -0
- package/dist/pine-core/{p-3170d53b.system.entry.js → p-12ec8186.system.entry.js} +1 -1
- package/dist/pine-core/p-15d3a4bc.system.entry.js +1 -0
- package/dist/pine-core/{p-606418b7.system.entry.js → p-1614c000.system.entry.js} +1 -1
- package/dist/pine-core/{p-6254d112.entry.js → p-17dc3f87.entry.js} +1 -1
- package/dist/pine-core/p-18a59cdd.system.entry.js +1 -0
- package/dist/pine-core/{p-2ec460e1.system.entry.js → p-1e2a9b5d.system.entry.js} +1 -1
- package/dist/pine-core/{p-6f82e8dc.system.entry.js → p-1f307e59.system.entry.js} +1 -1
- package/dist/pine-core/{p-f145e018.entry.js → p-2016c878.entry.js} +1 -1
- package/dist/pine-core/{p-5e6e8d4e.system.entry.js → p-222ff58e.system.entry.js} +1 -1
- package/dist/pine-core/{p-cd407bed.system.entry.js → p-2eb8d697.system.entry.js} +1 -1
- package/dist/pine-core/{p-bf759fc0.entry.js → p-31e1722e.entry.js} +1 -1
- package/dist/pine-core/p-324a7ae4.system.entry.js +1 -0
- package/dist/pine-core/{p-c35fe2e2.entry.js → p-32f10aa9.entry.js} +1 -1
- package/dist/pine-core/p-33c0f3c9.system.entry.js +1 -0
- package/dist/pine-core/{p-31679dbc.system.entry.js → p-3464b456.system.entry.js} +1 -1
- package/dist/pine-core/{p-69372e72.system.entry.js → p-34e38037.system.entry.js} +1 -1
- package/dist/pine-core/{p-2d1cc047.entry.js → p-3605a5f5.entry.js} +1 -1
- package/dist/pine-core/{p-c2688710.entry.js → p-376f8286.entry.js} +1 -1
- package/dist/pine-core/{p-292cf8f9.entry.js → p-3873f55b.entry.js} +1 -1
- package/dist/pine-core/{p-b0058cb0.entry.js → p-3aec9079.entry.js} +1 -1
- package/dist/pine-core/{p-464ec4eb.system.entry.js → p-3c229a00.system.entry.js} +1 -1
- package/dist/pine-core/{p-2fc127b4.system.entry.js → p-3c4236a8.system.entry.js} +1 -1
- package/dist/pine-core/{p-43ef94bc.entry.js → p-3e0c6384.entry.js} +1 -1
- package/dist/pine-core/p-3eca0b00.entry.js +1 -0
- package/dist/pine-core/{p-62f75f84.entry.js → p-3f12afb1.entry.js} +1 -1
- package/dist/pine-core/p-43338f77.system.entry.js +1 -0
- package/dist/pine-core/{p-b89583e7.system.entry.js → p-4661259e.system.entry.js} +1 -1
- package/dist/pine-core/{p-5c7a72aa.system.entry.js → p-4d388957.system.entry.js} +1 -1
- package/dist/pine-core/{p-7e065b59.entry.js → p-51b8490d.entry.js} +1 -1
- package/dist/pine-core/{p-d9cb26fe.system.entry.js → p-51dff5af.system.entry.js} +1 -1
- package/dist/pine-core/p-53a4852e.system.entry.js +1 -0
- package/dist/pine-core/{p-076aaa00.system.entry.js → p-56b34569.system.entry.js} +1 -1
- package/dist/pine-core/{p-a03c12a4.system.entry.js → p-5772f260.system.entry.js} +1 -1
- package/dist/pine-core/{p-3cece186.system.entry.js → p-585ad368.system.entry.js} +1 -1
- package/dist/pine-core/p-591fbff5.entry.js +1 -0
- package/dist/pine-core/{p-83e8f145.entry.js → p-5aea1082.entry.js} +1 -1
- package/dist/pine-core/{p-ff1e9a32.entry.js → p-5d585aa8.entry.js} +1 -1
- package/dist/pine-core/{p-1f20608e.system.entry.js → p-5dd393cd.system.entry.js} +1 -1
- package/dist/pine-core/p-613a64f1.entry.js +1 -0
- package/dist/pine-core/p-630f33d6.system.entry.js +1 -0
- package/dist/pine-core/{p-9374cf48.system.entry.js → p-63686e2a.system.entry.js} +1 -1
- package/dist/pine-core/{p-fef6694d.entry.js → p-6f7a7d55.entry.js} +1 -1
- package/dist/pine-core/{p-0a4f2d5f.system.entry.js → p-6fd863e5.system.entry.js} +1 -1
- package/dist/pine-core/{p-18ae43e3.entry.js → p-714bfdbd.entry.js} +1 -1
- package/dist/pine-core/{p-43268325.system.entry.js → p-76286a68.system.entry.js} +1 -1
- package/dist/pine-core/{p-43d6ab33.system.entry.js → p-7691a875.system.entry.js} +1 -1
- package/dist/pine-core/p-78fd593d.system.entry.js +1 -0
- package/dist/pine-core/{p-8c0040c4.entry.js → p-7b1e3e91.entry.js} +1 -1
- package/dist/pine-core/{p-7bac161d.entry.js → p-7e2b934d.entry.js} +1 -1
- package/dist/pine-core/p-7e44106e.entry.js +1 -0
- package/dist/pine-core/p-84ade640.entry.js +1 -0
- package/dist/pine-core/{p-24fcf841.system.entry.js → p-869ed1c0.system.entry.js} +1 -1
- package/dist/pine-core/p-86bc2a0c.entry.js +1 -0
- package/dist/pine-core/{p-caf73216.entry.js → p-8be301b6.entry.js} +1 -1
- package/dist/pine-core/{p-73b40545.system.entry.js → p-8cc270f0.system.entry.js} +1 -1
- package/dist/pine-core/p-8cea0d7a.system.entry.js +1 -0
- package/dist/pine-core/{p-b759dc21.entry.js → p-8eef80d5.entry.js} +1 -1
- package/dist/pine-core/p-9187c26c.system.entry.js +1 -0
- package/dist/pine-core/{p-2c5fe3d9.system.entry.js → p-92ef1608.system.entry.js} +1 -1
- package/dist/pine-core/{p-d12a93d6.entry.js → p-957dbb0c.entry.js} +1 -1
- 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-CTLu1TM4.js +2 -0
- package/dist/pine-core/{p-DVZjHa4_.system.js → p-DAIsVNlL.system.js} +1 -1
- package/dist/pine-core/p-Dr-FzkdE.system.js +1 -0
- package/dist/pine-core/p-G3CPPJEt.system.js +1 -0
- package/dist/pine-core/{p-1b8ac76c.system.entry.js → p-a11a9c40.system.entry.js} +1 -1
- package/dist/pine-core/p-a4a58477.entry.js +1 -0
- package/dist/pine-core/{p-6630f428.system.entry.js → p-a98bf89f.system.entry.js} +1 -1
- package/dist/pine-core/{p-ac2775b5.entry.js → p-ac0098fd.entry.js} +1 -1
- package/dist/pine-core/{p-8cb0eed9.entry.js → p-b109de2e.entry.js} +1 -1
- package/dist/pine-core/{p-cf389430.system.entry.js → p-b32e3174.system.entry.js} +1 -1
- package/dist/pine-core/{p-16f13b17.entry.js → p-b923a70b.entry.js} +1 -1
- package/dist/pine-core/p-be4a6cc2.entry.js +1 -0
- package/dist/pine-core/{p-f7cbdb81.system.entry.js → p-be819bff.system.entry.js} +1 -1
- package/dist/pine-core/{p-78cd9f97.system.entry.js → p-bf3afa16.system.entry.js} +1 -1
- package/dist/pine-core/{p-85f7428b.system.entry.js → p-c09dab1a.system.entry.js} +1 -1
- package/dist/pine-core/p-c0b3f2c1.system.entry.js +1 -0
- package/dist/pine-core/p-c1f8a187.entry.js +1 -0
- package/dist/pine-core/{p-47708864.entry.js → p-c5ce6dea.entry.js} +1 -1
- package/dist/pine-core/{p-6bc9b904.system.entry.js → p-c8bffb08.system.entry.js} +1 -1
- package/dist/pine-core/p-cf24ed1e.system.entry.js +1 -0
- package/dist/pine-core/{p-b1e5e8b1.system.entry.js → p-d0d2a886.system.entry.js} +1 -1
- package/dist/pine-core/{p-1e87e72a.entry.js → p-d12ef40d.entry.js} +1 -1
- package/dist/pine-core/{p-5d1228cb.entry.js → p-d21739eb.entry.js} +1 -1
- package/dist/pine-core/p-d280741f.entry.js +1 -0
- package/dist/pine-core/{p-ab0b992b.entry.js → p-d415bb01.entry.js} +2 -2
- package/dist/pine-core/p-d43db3ba.entry.js +1 -0
- package/dist/pine-core/{p-ec2c0e57.entry.js → p-d46adf7d.entry.js} +2 -2
- package/dist/pine-core/{p-419e711c.entry.js → p-d7865297.entry.js} +1 -1
- package/dist/pine-core/{p-8d6fd5a7.system.entry.js → p-d9ffb2d9.system.entry.js} +1 -1
- package/dist/pine-core/p-db5703f2.entry.js +1 -0
- package/dist/pine-core/p-dd6d9807.system.entry.js +1 -0
- package/dist/pine-core/p-e0da17aa.system.entry.js +1 -0
- package/dist/pine-core/{p-a8a1ae32.system.entry.js → p-e1653d75.system.entry.js} +1 -1
- package/dist/pine-core/{p-a0edb4ad.entry.js → p-e3600c53.entry.js} +1 -1
- package/dist/pine-core/{p-ebe218f8.entry.js → p-e3a7d2db.entry.js} +1 -1
- package/dist/pine-core/{p-b5c760c8.system.entry.js → p-e3cd4627.system.entry.js} +1 -1
- package/dist/pine-core/{p-950dd70e.system.entry.js → p-e410b0d8.system.entry.js} +1 -1
- package/dist/pine-core/p-e5bbe8cc.entry.js +1 -0
- package/dist/pine-core/{p-f6d1469d.entry.js → p-e95225cf.entry.js} +1 -1
- package/dist/pine-core/{p-43a1d9d7.entry.js → p-ed297f3e.entry.js} +1 -1
- package/dist/pine-core/{p-7153efaf.system.entry.js → p-f21aea90.system.entry.js} +1 -1
- package/dist/pine-core/{p-39c6e6c9.entry.js → p-f35596cd.entry.js} +1 -1
- package/dist/pine-core/{p-b9380ce8.entry.js → p-f7a5062f.entry.js} +1 -1
- package/dist/pine-core/{p-d70201bb.entry.js → p-f94667b5.entry.js} +1 -1
- package/dist/pine-core/p-fbf5f315.entry.js +1 -0
- package/dist/pine-core/{p-c3748812.system.entry.js → p-fec298bb.system.entry.js} +2 -2
- 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-divider/pds-divider.d.ts +8 -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 +38 -0
- 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 +237 -4
- 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/vscode.html-data.json +147 -3
- package/hydrate/index.js +551 -103
- package/hydrate/index.mjs +551 -103
- package/package.json +7 -3
- package/dist/esm-es5/truncation-tooltip-Blk4GigP.js +0 -1
- package/dist/pine-core/p-08b0d298.entry.js +0 -1
- package/dist/pine-core/p-0a09ccbe.entry.js +0 -1
- package/dist/pine-core/p-20e0d06c.system.entry.js +0 -1
- package/dist/pine-core/p-36fc1ade.system.entry.js +0 -1
- package/dist/pine-core/p-73619cfc.system.entry.js +0 -1
- package/dist/pine-core/p-7803c5b6.system.entry.js +0 -1
- package/dist/pine-core/p-7ad6f313.entry.js +0 -1
- package/dist/pine-core/p-7b85115b.system.entry.js +0 -1
- package/dist/pine-core/p-7b97974e.system.entry.js +0 -1
- package/dist/pine-core/p-7e146a45.entry.js +0 -1
- package/dist/pine-core/p-8249e027.entry.js +0 -1
- package/dist/pine-core/p-86d12f3c.system.entry.js +0 -1
- package/dist/pine-core/p-8c85f53a.entry.js +0 -1
- package/dist/pine-core/p-92f648ba.entry.js +0 -1
- package/dist/pine-core/p-B1rytYxP.system.js +0 -1
- package/dist/pine-core/p-BNSGedhN.js +0 -1
- package/dist/pine-core/p-NNDTPCWx.js +0 -2
- package/dist/pine-core/p-YWpyar7R.system.js +0 -1
- package/dist/pine-core/p-af1e2778.entry.js +0 -1
- package/dist/pine-core/p-b6812452.system.entry.js +0 -1
- package/dist/pine-core/p-b8f288e8.entry.js +0 -1
- package/dist/pine-core/p-cd2370d0.system.entry.js +0 -1
- package/dist/pine-core/p-d281464e.entry.js +0 -1
- package/dist/pine-core/p-dc460e2d.system.entry.js +0 -1
- package/dist/pine-core/p-dcc4ee5e.entry.js +0 -1
- package/dist/pine-core/p-def5d3d3.entry.js +0 -1
- package/dist/pine-core/p-dfa70d20.entry.js +0 -1
- package/dist/pine-core/p-eed4b552.system.entry.js +0 -1
- /package/dist/esm-es5/{index-BjlFq0VD.js → index-DdPaBxPo.js} +0 -0
- /package/dist/pine-core/{p-WYNNo1N0.system.js → p--Llh7wKm.system.js} +0 -0
- /package/dist/pine-core/{p-BjlFq0VD.js → p-DdPaBxPo.js} +0 -0
|
@@ -60,6 +60,11 @@ export class PdsChip {
|
|
|
60
60
|
hostEl: this.el,
|
|
61
61
|
contentEl: this.labelTextEl,
|
|
62
62
|
getTooltipText: () => this.el.textContent || '',
|
|
63
|
+
// The dropdown variant's label span already sits inside
|
|
64
|
+
// `<button class="pds-chip__button">`, which is already focusable and
|
|
65
|
+
// bubbles focusin to the host — a tabindex on the span too would nest
|
|
66
|
+
// a second tab stop inside the button.
|
|
67
|
+
manageTabIndex: this.effectiveVariant !== 'dropdown',
|
|
63
68
|
});
|
|
64
69
|
this.tooltipBoundEl = this.labelTextEl;
|
|
65
70
|
}
|
|
@@ -110,11 +115,15 @@ export class PdsChip {
|
|
|
110
115
|
// node — and a plain `<pds-chip>Some text</pds-chip>` slots text with no
|
|
111
116
|
// wrapping element. Wrapping the slot itself in an internal span gives
|
|
112
117
|
// maxWidth something to ellipsize regardless of what's slotted.
|
|
113
|
-
// A focus-triggered tooltip needs a focusable anchor
|
|
114
|
-
//
|
|
115
|
-
//
|
|
116
|
-
|
|
117
|
-
|
|
118
|
+
// A focus-triggered tooltip needs a focusable anchor, but the label span
|
|
119
|
+
// only earns a tab stop while its text is actually clipped — a chip whose
|
|
120
|
+
// label fits has nothing to reveal. setupTruncationTooltip owns that
|
|
121
|
+
// tabindex off the measurement for every variant except dropdown: its
|
|
122
|
+
// label span already sits inside `<button class="pds-chip__button">`,
|
|
123
|
+
// which is already focusable and bubbles focusin to the host, so
|
|
124
|
+
// initTruncationTooltip passes `manageTabIndex: false` there to avoid
|
|
125
|
+
// nesting a second tab stop inside the button.
|
|
126
|
+
const chipContent = isDropdown ? (h("button", { class: "pds-chip__button", type: "button", part: "button" }, this.icon && h("pds-icon", { icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && h("i", { class: "pds-chip__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", { icon: this.icon, size: this.iconSize, "aria-hidden": "true" }), showDot && h("i", { class: "pds-chip__dot", "aria-hidden": "true" }), h("span", { class: "pds-chip__label-text", ref: (el) => (this.labelTextEl = el) }, h("slot", null))));
|
|
118
127
|
return chipContent;
|
|
119
128
|
}
|
|
120
129
|
get hostStyles() {
|
|
@@ -170,7 +179,7 @@ export class PdsChip {
|
|
|
170
179
|
return (h(CloseElement, Object.assign({}, closeAttributes(), { onClick: this.handleCloseClick }), h("pds-icon", { icon: remove, size: this.iconSize })));
|
|
171
180
|
}
|
|
172
181
|
render() {
|
|
173
|
-
return (h(Host, { key: '
|
|
182
|
+
return (h(Host, { key: '3b796c1340ac4e37569bf7904dbed05ba6938e4b', class: this.classNames(), id: this.componentId, style: this.hostStyles }, this.setChipContent(), this.effectiveVariant === 'tag' && this.renderCloseButton()));
|
|
174
183
|
}
|
|
175
184
|
static get is() { return "pds-chip"; }
|
|
176
185
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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"; }
|
|
@@ -12,6 +12,26 @@
|
|
|
12
12
|
width: 1px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
.pds-divider--labeled {
|
|
16
|
+
align-items: center;
|
|
17
|
+
background: none;
|
|
18
|
+
color: var(--pine-color-text);
|
|
19
|
+
font: var(--pine-typography-body-sm-medium);
|
|
20
|
+
gap: var(--pine-dimension-sm);
|
|
21
|
+
height: auto;
|
|
22
|
+
width: auto;
|
|
23
|
+
}
|
|
24
|
+
.pds-divider--labeled::before, .pds-divider--labeled::after {
|
|
25
|
+
background: var(--pine-color-border);
|
|
26
|
+
content: "";
|
|
27
|
+
flex: 1;
|
|
28
|
+
height: var(--pine-border-width);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.pds-divider__label {
|
|
32
|
+
text-align: center;
|
|
33
|
+
}
|
|
34
|
+
|
|
15
35
|
.pds-divider--offset-xxs {
|
|
16
36
|
margin: 0 calc(var(--pine-dimension-2xs) * -1);
|
|
17
37
|
padding: 0 var(--pine-dimension-2xs);
|
|
@@ -20,6 +40,9 @@
|
|
|
20
40
|
margin: calc(var(--pine-dimension-2xs) * -1) 0;
|
|
21
41
|
padding: var(--pine-dimension-2xs) 0;
|
|
22
42
|
}
|
|
43
|
+
.pds-divider--offset-xxs.pds-divider--labeled {
|
|
44
|
+
padding: 0;
|
|
45
|
+
}
|
|
23
46
|
|
|
24
47
|
.pds-divider--offset-xs {
|
|
25
48
|
margin: 0 calc(var(--pine-dimension-xs) * -1);
|
|
@@ -29,6 +52,9 @@
|
|
|
29
52
|
margin: calc(var(--pine-dimension-xs) * -1) 0;
|
|
30
53
|
padding: var(--pine-dimension-xs) 0;
|
|
31
54
|
}
|
|
55
|
+
.pds-divider--offset-xs.pds-divider--labeled {
|
|
56
|
+
padding: 0;
|
|
57
|
+
}
|
|
32
58
|
|
|
33
59
|
.pds-divider--offset-sm {
|
|
34
60
|
margin: 0 calc(var(--pine-dimension-sm) * -1);
|
|
@@ -38,6 +64,9 @@
|
|
|
38
64
|
margin: calc(var(--pine-dimension-sm) * -1) 0;
|
|
39
65
|
padding: var(--pine-dimension-sm) 0;
|
|
40
66
|
}
|
|
67
|
+
.pds-divider--offset-sm.pds-divider--labeled {
|
|
68
|
+
padding: 0;
|
|
69
|
+
}
|
|
41
70
|
|
|
42
71
|
.pds-divider--offset-md {
|
|
43
72
|
margin: 0 calc(var(--pine-dimension-md) * -1);
|
|
@@ -47,6 +76,9 @@
|
|
|
47
76
|
margin: calc(var(--pine-dimension-md) * -1) 0;
|
|
48
77
|
padding: var(--pine-dimension-md) 0;
|
|
49
78
|
}
|
|
79
|
+
.pds-divider--offset-md.pds-divider--labeled {
|
|
80
|
+
padding: 0;
|
|
81
|
+
}
|
|
50
82
|
|
|
51
83
|
.pds-divider--offset-lg {
|
|
52
84
|
margin: 0 calc(var(--pine-dimension-lg) * -1);
|
|
@@ -56,6 +88,9 @@
|
|
|
56
88
|
margin: calc(var(--pine-dimension-lg) * -1) 0;
|
|
57
89
|
padding: var(--pine-dimension-lg) 0;
|
|
58
90
|
}
|
|
91
|
+
.pds-divider--offset-lg.pds-divider--labeled {
|
|
92
|
+
padding: 0;
|
|
93
|
+
}
|
|
59
94
|
|
|
60
95
|
.pds-divider--offset-xl {
|
|
61
96
|
margin: 0 calc(var(--pine-dimension-xl) * -1);
|
|
@@ -65,6 +100,9 @@
|
|
|
65
100
|
margin: calc(var(--pine-dimension-xl) * -1) 0;
|
|
66
101
|
padding: var(--pine-dimension-xl) 0;
|
|
67
102
|
}
|
|
103
|
+
.pds-divider--offset-xl.pds-divider--labeled {
|
|
104
|
+
padding: 0;
|
|
105
|
+
}
|
|
68
106
|
|
|
69
107
|
.pds-divider--offset-xxl {
|
|
70
108
|
margin: 0 calc(var(--pine-dimension-2xl) * -1);
|
|
@@ -74,6 +112,9 @@
|
|
|
74
112
|
margin: calc(var(--pine-dimension-2xl) * -1) 0;
|
|
75
113
|
padding: var(--pine-dimension-2xl) 0;
|
|
76
114
|
}
|
|
115
|
+
.pds-divider--offset-xxl.pds-divider--labeled {
|
|
116
|
+
padding: 0;
|
|
117
|
+
}
|
|
77
118
|
|
|
78
119
|
@media (max-width: 767px) {
|
|
79
120
|
.pds-divider--vertical {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @part label - Exposes the label text for styling, such as a custom color. Appears only when `label` is set and `vertical` is `false`.
|
|
4
|
+
*/
|
|
2
5
|
export class PdsDivider {
|
|
3
6
|
constructor() {
|
|
4
7
|
/**
|
|
@@ -7,11 +10,18 @@ export class PdsDivider {
|
|
|
7
10
|
*/
|
|
8
11
|
this.vertical = false;
|
|
9
12
|
}
|
|
13
|
+
get hasLabel() {
|
|
14
|
+
var _a;
|
|
15
|
+
return Boolean((_a = this.label) === null || _a === void 0 ? void 0 : _a.trim()) && !this.vertical;
|
|
16
|
+
}
|
|
10
17
|
classNames() {
|
|
11
18
|
const classNames = ['pds-divider'];
|
|
12
19
|
if (this.vertical) {
|
|
13
20
|
classNames.push('pds-divider--vertical');
|
|
14
21
|
}
|
|
22
|
+
if (this.hasLabel) {
|
|
23
|
+
classNames.push('pds-divider--labeled');
|
|
24
|
+
}
|
|
15
25
|
if (this.offset) {
|
|
16
26
|
const offsetClassName = 'pds-divider--offset-' + this.offset;
|
|
17
27
|
classNames.push(offsetClassName);
|
|
@@ -19,7 +29,7 @@ export class PdsDivider {
|
|
|
19
29
|
return classNames.join(' ');
|
|
20
30
|
}
|
|
21
31
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: 'c6f887ca1f68c8e572bd518c43d88f052f6d9dd1', id: this.componentId }, this.hasLabel ? (h("div", { class: this.classNames(), role: "separator", "aria-label": this.label }, h("span", { class: "pds-divider__label", part: "label", "aria-hidden": "true" }, this.label))) : (h("hr", { class: this.classNames() }))));
|
|
23
33
|
}
|
|
24
34
|
static get is() { return "pds-divider"; }
|
|
25
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -54,6 +64,25 @@ export class PdsDivider {
|
|
|
54
64
|
"reflect": false,
|
|
55
65
|
"attribute": "component-id"
|
|
56
66
|
},
|
|
67
|
+
"label": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "string",
|
|
72
|
+
"resolved": "string",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": true,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": "Text to be displayed as the divider label, centered between two lines. Ignored when `vertical` is `true`."
|
|
80
|
+
},
|
|
81
|
+
"getter": false,
|
|
82
|
+
"setter": false,
|
|
83
|
+
"reflect": false,
|
|
84
|
+
"attribute": "label"
|
|
85
|
+
},
|
|
57
86
|
"offset": {
|
|
58
87
|
"type": "string",
|
|
59
88
|
"mutable": false,
|
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
const BaseTemplate = (args) => html`
|
|
9
9
|
<pds-divider
|
|
10
10
|
component-id=${args.componentId}
|
|
11
|
+
label=${args.label ?? ''}
|
|
11
12
|
offset=${args.offset}
|
|
12
13
|
vertical=${args.vertical}
|
|
13
14
|
/>`;
|
|
@@ -21,3 +22,9 @@ export const Vertical = BaseTemplate.bind();
|
|
|
21
22
|
Vertical.args = {
|
|
22
23
|
vertical: true,
|
|
23
24
|
}
|
|
25
|
+
|
|
26
|
+
export const WithLabel = BaseTemplate.bind();
|
|
27
|
+
WithLabel.args = {
|
|
28
|
+
label: 'Today',
|
|
29
|
+
vertical: false,
|
|
30
|
+
}
|
|
@@ -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
|
+
}
|