@pine-ds/core 4.11.0 → 4.12.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/aria-references.js +1 -0
- package/components/attributes.js +1 -1
- package/components/index2.js +1 -1
- package/components/pds-alert.js +1 -1
- package/components/pds-avatar.js +1 -1
- package/components/pds-box2.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 +2 -2
- package/components/pds-copytext.js +1 -1
- package/components/pds-datepicker.js +1 -1
- package/components/pds-drawer-content.js +1 -1
- package/components/pds-drawer-footer.js +1 -1
- package/components/pds-drawer-header.js +1 -1
- package/components/pds-drawer.js +1 -1
- 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-image.js +1 -1
- package/components/pds-input2.js +1 -1
- package/components/pds-link2.js +1 -1
- package/components/pds-loader2.js +1 -1
- package/components/pds-modal-footer.js +1 -1
- package/components/pds-modal-header.js +1 -1
- package/components/pds-modal2.js +1 -1
- package/components/pds-multiselect.js +1 -1
- package/components/pds-popover.js +1 -1
- package/components/pds-progress.js +1 -1
- package/components/pds-radio-group.js +1 -1
- package/components/pds-radio.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-table.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/sortable-label.js +1 -0
- package/components/truncation-tooltip.js +1 -1
- package/dist/cjs/aria-references-CUmqibnO.js +54 -0
- package/dist/cjs/{attributes-CW49XqaL.js → attributes-Cgbkw6gO.js} +3 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pds-alert.cjs.entry.js +2 -2
- package/dist/cjs/pds-avatar.cjs.entry.js +3 -2
- package/dist/cjs/pds-box.cjs.entry.js +4 -3
- package/dist/cjs/pds-button.cjs.entry.js +25 -45
- package/dist/cjs/pds-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/pds-chip.cjs.entry.js +3 -3
- package/dist/cjs/pds-combobox.cjs.entry.js +246 -106
- package/dist/cjs/pds-copytext.cjs.entry.js +3 -3
- package/dist/cjs/pds-datepicker.cjs.entry.js +44 -9
- package/dist/cjs/pds-drawer-content.cjs.entry.js +1 -1
- package/dist/cjs/pds-drawer-footer.cjs.entry.js +1 -1
- package/dist/cjs/pds-drawer-header.cjs.entry.js +1 -1
- package/dist/cjs/pds-drawer.cjs.entry.js +5 -7
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +85 -49
- package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +2 -2
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js +83 -10
- package/dist/cjs/pds-filter.cjs.entry.js +24 -2
- package/dist/cjs/pds-image.cjs.entry.js +148 -6
- package/dist/cjs/pds-input.cjs.entry.js +4 -4
- package/dist/cjs/pds-link.cjs.entry.js +4 -5
- package/dist/cjs/pds-loader.cjs.entry.js +4 -3
- package/dist/cjs/pds-modal-footer.cjs.entry.js +1 -1
- package/dist/cjs/pds-modal-header.cjs.entry.js +1 -1
- package/dist/cjs/pds-modal.cjs.entry.js +9 -12
- package/dist/cjs/pds-multiselect.cjs.entry.js +64 -18
- package/dist/cjs/pds-popover.cjs.entry.js +8 -6
- package/dist/cjs/pds-progress.cjs.entry.js +3 -3
- package/dist/cjs/pds-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/pds-radio.cjs.entry.js +6 -6
- package/dist/cjs/pds-row.cjs.entry.js +1 -1
- package/dist/cjs/pds-select.cjs.entry.js +2 -2
- package/dist/cjs/pds-sortable-item.cjs.entry.js +28 -5
- package/dist/cjs/pds-sortable.cjs.entry.js +356 -4
- package/dist/cjs/pds-switch.cjs.entry.js +92 -15
- package/dist/cjs/pds-tab.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-cell.cjs.entry.js +24 -5
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +59 -11
- package/dist/cjs/pds-table-head.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-row.cjs.entry.js +1 -1
- package/dist/cjs/pds-table.cjs.entry.js +260 -5
- package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
- package/dist/cjs/pds-tabs.cjs.entry.js +3 -3
- package/dist/cjs/pds-text.cjs.entry.js +5 -3
- package/dist/cjs/pds-textarea.cjs.entry.js +8 -7
- package/dist/cjs/pds-toast.cjs.entry.js +8 -4
- package/dist/cjs/pds-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/pine-core.cjs.js +1 -1
- package/dist/cjs/sortable-label-DOcJrHvA.js +37 -0
- package/dist/cjs/{truncation-tooltip-Bikp7n9I.js → truncation-tooltip-CM5HgRHh.js} +69 -0
- package/dist/collection/components/pds-alert/pds-alert.css +0 -3
- package/dist/collection/components/pds-alert/pds-alert.js +3 -2
- package/dist/collection/components/pds-avatar/pds-avatar.js +7 -6
- package/dist/collection/components/pds-avatar/stories/pds-avatar.stories.js +1 -1
- package/dist/collection/components/pds-box/pds-box.css +1273 -1189
- package/dist/collection/components/pds-box/pds-box.js +180 -156
- package/dist/collection/components/pds-box/stories/pds-box.stories.js +79 -37
- package/dist/collection/components/pds-button/pds-button.js +26 -4
- package/dist/collection/components/pds-button/stories/pds-button.stories.js +25 -11
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +10 -10
- package/dist/collection/components/pds-chip/pds-chip.js +3 -3
- package/dist/collection/components/pds-combobox/pds-combobox.css +162 -53
- package/dist/collection/components/pds-combobox/pds-combobox.js +261 -121
- package/dist/collection/components/pds-combobox/stories/pds-combobox.stories.js +35 -4
- package/dist/collection/components/pds-copytext/pds-copytext.js +2 -2
- package/dist/collection/components/pds-datepicker/pds-datepicker.js +3 -3
- package/dist/collection/components/pds-datepicker/presets.js +42 -7
- package/dist/collection/components/pds-drawer/pds-drawer-content/pds-drawer-content.js +2 -5
- package/dist/collection/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.js +2 -1
- package/dist/collection/components/pds-drawer/pds-drawer-header/pds-drawer-header.js +2 -1
- package/dist/collection/components/pds-drawer/pds-drawer.js +8 -10
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.css +17 -8
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +95 -62
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +3 -3
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.css +2 -0
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +84 -9
- package/dist/collection/components/pds-dropdown-menu/stories/pds-dropdown-menu.stories.js +24 -1
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.css +2 -1
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +24 -7
- package/dist/collection/components/pds-image/image-interface.js +1 -0
- package/dist/collection/components/pds-image/pds-image.css +11 -0
- package/dist/collection/components/pds-image/pds-image.js +249 -8
- package/dist/collection/components/pds-image/stories/pds-image.stories.js +117 -1
- package/dist/collection/components/pds-input/pds-input.js +14 -9
- package/dist/collection/components/pds-link/pds-link.js +10 -14
- package/dist/collection/components/pds-link/stories/pds-link.stories.js +6 -2
- package/dist/collection/components/pds-loader/pds-loader.js +5 -4
- package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +2 -1
- package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +2 -1
- package/dist/collection/components/pds-modal/pds-modal.js +11 -13
- package/dist/collection/components/pds-modal/stories/pds-modal.stories.js +7 -7
- package/dist/collection/components/pds-multiselect/pds-multiselect.css +2 -2
- package/dist/collection/components/pds-multiselect/pds-multiselect.js +63 -18
- package/dist/collection/components/pds-popover/pds-popover.css +1 -1
- package/dist/collection/components/pds-popover/pds-popover.js +9 -7
- package/dist/collection/components/pds-progress/pds-progress.js +4 -4
- package/dist/collection/components/pds-radio/pds-radio.css +5 -1
- package/dist/collection/components/pds-radio/pds-radio.js +9 -9
- package/dist/collection/components/pds-radio/stories/pds-radio.stories.js +9 -9
- package/dist/collection/components/pds-radio-group/pds-radio-group.js +7 -7
- package/dist/collection/components/pds-radio-group/stories/pds-radio-group.stories.js +3 -3
- package/dist/collection/components/pds-row/stories/pds-row.stories.js +15 -14
- package/dist/collection/components/pds-select/pds-select.js +7 -4
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.css +38 -0
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +47 -5
- package/dist/collection/components/pds-sortable/pds-sortable.js +481 -5
- package/dist/collection/components/pds-sortable/sortable-label.js +33 -0
- package/dist/collection/components/pds-sortable/stories/pds-sortable.stories.js +27 -0
- package/dist/collection/components/pds-switch/pds-switch.js +114 -17
- package/dist/collection/components/pds-switch/stories/pds-switch.stories.js +79 -0
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +4 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +47 -4
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +6 -2
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.css +11 -0
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +98 -10
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +5 -1
- package/dist/collection/components/pds-table/pds-table.css +8 -0
- package/dist/collection/components/pds-table/pds-table.js +295 -7
- package/dist/collection/components/pds-table/stories/pds-table.stories.js +131 -6
- package/dist/collection/components/pds-tabs/pds-tabs.js +3 -3
- package/dist/collection/components/pds-tabs/stories/pds-tabs.stories.js +1 -1
- package/dist/collection/components/pds-text/pds-text.js +5 -3
- package/dist/collection/components/pds-textarea/pds-textarea.js +16 -14
- package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +2 -13
- package/dist/collection/components/pds-toast/pds-toast.css +4 -3
- package/dist/collection/components/pds-toast/pds-toast.js +9 -5
- package/dist/collection/components/pds-toast/stories/pds-toast.stories.js +2 -2
- package/dist/collection/components/pds-tooltip/pds-tooltip.css +2 -1
- package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +17 -17
- package/dist/collection/utils/aria-references.js +9 -3
- package/dist/collection/utils/truncation-tooltip.js +67 -0
- package/dist/docs.json +1124 -374
- package/dist/esm/aria-references-CNn1lObg.js +50 -0
- package/dist/esm/{attributes-DkeVeN0g.js → attributes-CD8knu3a.js} +3 -0
- package/dist/esm/{index-DvN3tyZp.js → index-B0DXTeeV.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pds-accordion.entry.js +1 -1
- package/dist/esm/pds-alert.entry.js +2 -2
- package/dist/esm/pds-avatar.entry.js +4 -3
- package/dist/esm/pds-box.entry.js +4 -3
- package/dist/esm/pds-button.entry.js +24 -44
- package/dist/esm/pds-checkbox.entry.js +5 -5
- package/dist/esm/pds-chip.entry.js +4 -4
- package/dist/esm/pds-combobox.entry.js +246 -106
- package/dist/esm/pds-copytext.entry.js +4 -4
- package/dist/esm/pds-datepicker.entry.js +45 -10
- package/dist/esm/pds-drawer-content.entry.js +1 -1
- package/dist/esm/pds-drawer-footer.entry.js +1 -1
- package/dist/esm/pds-drawer-header.entry.js +1 -1
- package/dist/esm/pds-drawer.entry.js +5 -7
- package/dist/esm/pds-dropdown-menu-item.entry.js +85 -49
- package/dist/esm/pds-dropdown-menu-separator.entry.js +2 -2
- package/dist/esm/pds-dropdown-menu.entry.js +84 -11
- package/dist/esm/pds-filter.entry.js +25 -3
- package/dist/esm/pds-image.entry.js +149 -7
- package/dist/esm/pds-input.entry.js +5 -5
- package/dist/esm/pds-link.entry.js +5 -6
- package/dist/esm/pds-loader.entry.js +4 -3
- package/dist/esm/pds-modal-footer.entry.js +1 -1
- package/dist/esm/pds-modal-header.entry.js +1 -1
- package/dist/esm/pds-modal.entry.js +9 -12
- package/dist/esm/pds-multiselect.entry.js +65 -19
- package/dist/esm/pds-popover.entry.js +8 -6
- package/dist/esm/pds-progress.entry.js +3 -3
- package/dist/esm/pds-radio-group.entry.js +5 -5
- package/dist/esm/pds-radio.entry.js +7 -7
- package/dist/esm/pds-row.entry.js +1 -1
- package/dist/esm/pds-select.entry.js +3 -3
- package/dist/esm/pds-sortable-item.entry.js +29 -6
- package/dist/esm/pds-sortable.entry.js +357 -5
- package/dist/esm/pds-switch.entry.js +94 -17
- package/dist/esm/pds-tab.entry.js +1 -1
- package/dist/esm/pds-table-body.entry.js +1 -1
- package/dist/esm/pds-table-cell.entry.js +24 -5
- package/dist/esm/pds-table-head-cell.entry.js +60 -12
- package/dist/esm/pds-table-head.entry.js +1 -1
- package/dist/esm/pds-table-row.entry.js +1 -1
- package/dist/esm/pds-table.entry.js +261 -6
- package/dist/esm/pds-tabpanel.entry.js +1 -1
- package/dist/esm/pds-tabs.entry.js +3 -3
- package/dist/esm/pds-text.entry.js +5 -3
- package/dist/esm/pds-textarea.entry.js +9 -8
- package/dist/esm/pds-toast.entry.js +8 -4
- package/dist/esm/pds-tooltip.entry.js +1 -1
- package/dist/esm/pine-core.js +1 -1
- package/dist/esm/sortable-label-PItnzVVR.js +35 -0
- package/dist/esm/{truncation-tooltip-DBcPipr9.js → truncation-tooltip-CkIWm6Z-.js} +68 -1
- package/dist/esm-es5/aria-references-CNn1lObg.js +1 -0
- package/dist/esm-es5/{attributes-DkeVeN0g.js → attributes-CD8knu3a.js} +1 -1
- package/dist/esm-es5/{index-DvN3tyZp.js → index-B0DXTeeV.js} +1 -1
- package/dist/esm-es5/loader.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-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-datepicker.entry.js +1 -1
- package/dist/esm-es5/pds-drawer-content.entry.js +1 -1
- package/dist/esm-es5/pds-drawer-footer.entry.js +1 -1
- package/dist/esm-es5/pds-drawer-header.entry.js +1 -1
- package/dist/esm-es5/pds-drawer.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
- package/dist/esm-es5/pds-filter.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-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-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/sortable-label-PItnzVVR.js +1 -0
- package/dist/esm-es5/truncation-tooltip-CkIWm6Z-.js +1 -0
- package/dist/pine-core/{p-f834cb07.system.entry.js → p-00891b8d.system.entry.js} +1 -1
- package/dist/pine-core/{p-3f8bd3fb.system.entry.js → p-053ff8eb.system.entry.js} +1 -1
- package/dist/pine-core/p-08b9e3ad.entry.js +1 -0
- package/dist/pine-core/{p-4d98bc0c.system.entry.js → p-0a7570dd.system.entry.js} +1 -1
- package/dist/pine-core/{p-d018dc60.system.entry.js → p-0ac4262e.system.entry.js} +1 -1
- package/dist/pine-core/{p-89d38a82.system.entry.js → p-0e1b8bd1.system.entry.js} +1 -1
- package/dist/pine-core/{p-e1d1b5d8.entry.js → p-12fdc65f.entry.js} +1 -1
- package/dist/pine-core/{p-d48fe5a0.system.entry.js → p-16fceef6.system.entry.js} +1 -1
- package/dist/pine-core/p-1765a41b.system.entry.js +1 -0
- package/dist/pine-core/{p-a594c41f.entry.js → p-18524c25.entry.js} +1 -1
- package/dist/pine-core/p-1a013a5c.system.entry.js +1 -0
- package/dist/pine-core/{p-2b9622c1.system.entry.js → p-1ab52531.system.entry.js} +1 -1
- package/dist/pine-core/p-1c584a20.entry.js +1 -0
- package/dist/pine-core/p-1edef412.entry.js +1 -0
- package/dist/pine-core/{p-5946203c.entry.js → p-1f998e3e.entry.js} +1 -1
- package/dist/pine-core/{p-39e57657.entry.js → p-1fb1ca3d.entry.js} +1 -1
- package/dist/pine-core/p-2b6becc2.entry.js +1 -0
- package/dist/pine-core/p-2cc7c682.entry.js +1 -0
- package/dist/pine-core/{p-639acef8.system.entry.js → p-2ddcd845.system.entry.js} +1 -1
- package/dist/pine-core/{p-6a1aa8d3.entry.js → p-2f15e85f.entry.js} +1 -1
- package/dist/pine-core/{p-67f795d5.system.entry.js → p-33da254f.system.entry.js} +1 -1
- package/dist/pine-core/{p-c6a9e62c.system.entry.js → p-3fc9ef80.system.entry.js} +1 -1
- package/dist/pine-core/p-4125a4a6.system.entry.js +1 -0
- package/dist/pine-core/p-47df9e9f.system.entry.js +3 -0
- package/dist/pine-core/p-51680c9c.system.entry.js +1 -0
- package/dist/pine-core/p-55535481.system.entry.js +1 -0
- package/dist/pine-core/p-55a4659a.system.entry.js +1 -0
- package/dist/pine-core/{p-c5e1eb3c.system.entry.js → p-57af5c29.system.entry.js} +1 -1
- package/dist/pine-core/p-57edd301.system.entry.js +1 -0
- package/dist/pine-core/{p-bfa34194.entry.js → p-5d582798.entry.js} +1 -1
- package/dist/pine-core/p-5db87fda.system.entry.js +1 -0
- package/dist/pine-core/{p-19cf1d91.system.entry.js → p-5eb0c78c.system.entry.js} +1 -1
- package/dist/pine-core/{p-42f70f93.system.entry.js → p-6017afb5.system.entry.js} +1 -1
- package/dist/pine-core/{p-63f85859.system.entry.js → p-60e65fe0.system.entry.js} +1 -1
- package/dist/pine-core/{p-973c3ac0.entry.js → p-627a94da.entry.js} +1 -1
- package/dist/pine-core/{p-a9d96e22.entry.js → p-68328afc.entry.js} +1 -1
- package/dist/pine-core/{p-bd7dc317.system.entry.js → p-72668673.system.entry.js} +1 -1
- package/dist/pine-core/p-72ff5ad2.system.entry.js +1 -0
- package/dist/pine-core/p-736ea7dd.entry.js +7 -0
- package/dist/pine-core/p-765f4207.entry.js +1 -0
- package/dist/pine-core/{p-2a18852f.entry.js → p-77530cf2.entry.js} +1 -1
- package/dist/pine-core/p-77a22399.entry.js +1 -0
- package/dist/pine-core/p-783127bf.entry.js +1 -0
- package/dist/pine-core/{p-d9719e37.entry.js → p-82f7eed1.entry.js} +1 -1
- package/dist/pine-core/{p-124a0a24.entry.js → p-84d4ae26.entry.js} +1 -1
- package/dist/pine-core/p-8deeda07.entry.js +1 -0
- package/dist/pine-core/{p-849ec281.system.entry.js → p-8e17a6d8.system.entry.js} +1 -1
- package/dist/pine-core/p-8e7e7bba.entry.js +1 -0
- package/dist/pine-core/{p-e82f758f.system.entry.js → p-907c69e9.system.entry.js} +1 -1
- package/dist/pine-core/{p-1415c988.system.entry.js → p-90f83a5b.system.entry.js} +1 -1
- package/dist/pine-core/p-97145eee.system.entry.js +1 -0
- package/dist/pine-core/{p-a09c9c5e.system.entry.js → p-9d983e09.system.entry.js} +1 -1
- package/dist/pine-core/{p-1e3ef425.entry.js → p-9e005996.entry.js} +1 -1
- package/dist/pine-core/{p-DvN3tyZp.js → p-B0DXTeeV.js} +1 -1
- package/dist/pine-core/{p-CNXspDYs.system.js → p-BlJQebvG.system.js} +1 -1
- package/dist/pine-core/p-C35-349-.system.js +1 -0
- package/dist/pine-core/{p-vFsJv75D.system.js → p-CIe1DGXa.system.js} +1 -1
- package/dist/pine-core/p-CNn1lObg.js +1 -0
- package/dist/pine-core/p-CQJ44c6o.system.js +1 -0
- package/dist/pine-core/p-Dv9QBmIF.js +1 -0
- package/dist/pine-core/p-PItnzVVR.js +1 -0
- package/dist/pine-core/p-VPGVqK3P.system.js +1 -0
- package/dist/pine-core/p-XK45dzWR.system.js +1 -1
- package/dist/pine-core/p-a149af29.entry.js +1 -0
- package/dist/pine-core/p-a20d9eca.system.entry.js +1 -0
- package/dist/pine-core/{p-f6f4fd42.entry.js → p-a5782d99.entry.js} +1 -1
- package/dist/pine-core/p-a5e9c583.entry.js +1 -0
- package/dist/pine-core/{p-4d47023c.system.entry.js → p-a9eaf160.system.entry.js} +1 -1
- package/dist/pine-core/{p-143b33a6.entry.js → p-b00b07e3.entry.js} +1 -1
- package/dist/pine-core/{p-c7a53c4f.entry.js → p-b7b29392.entry.js} +1 -1
- package/dist/pine-core/p-b96bdff6.entry.js +1 -0
- package/dist/pine-core/{p-f71d71ca.entry.js → p-bbd9ab75.entry.js} +1 -1
- package/dist/pine-core/p-bdab6c9f.entry.js +1 -0
- package/dist/pine-core/p-biShcgLI.js +1 -0
- package/dist/pine-core/{p-548bce53.system.entry.js → p-c12b5cd7.system.entry.js} +1 -1
- package/dist/pine-core/p-c1dc7692.entry.js +1 -0
- package/dist/pine-core/p-c76d8b9e.system.entry.js +1 -0
- package/dist/pine-core/{p-590df41a.entry.js → p-c89ea2d3.entry.js} +1 -1
- package/dist/pine-core/{p-d920d759.system.entry.js → p-c9630934.system.entry.js} +1 -1
- package/dist/pine-core/{p-6f4ab1ea.system.entry.js → p-cb9227f6.system.entry.js} +1 -1
- package/dist/pine-core/p-ceef0eb1.entry.js +1 -0
- package/dist/pine-core/p-d1283e8d.entry.js +1 -0
- package/dist/pine-core/p-d676926d.system.entry.js +1 -0
- package/dist/pine-core/{p-61cfdbb2.entry.js → p-d7d7a4e1.entry.js} +1 -1
- package/dist/pine-core/p-d85d50cb.entry.js +1 -0
- package/dist/pine-core/p-daa802f1.entry.js +2 -0
- package/dist/pine-core/p-ddf4b9b5.system.entry.js +1 -0
- package/dist/pine-core/p-de3b319e.system.entry.js +8 -0
- package/dist/pine-core/{p-cb9baf78.system.entry.js → p-e00777da.system.entry.js} +1 -1
- package/dist/pine-core/p-e2541eeb.entry.js +1 -0
- package/dist/pine-core/{p-01f1cdaf.system.entry.js → p-e2a1a49a.system.entry.js} +1 -1
- package/dist/pine-core/p-e4ebea88.system.entry.js +1 -0
- package/dist/pine-core/{p-947582e1.entry.js → p-e554bd64.entry.js} +1 -1
- package/dist/pine-core/{p-dd7ded84.entry.js → p-e6427c87.entry.js} +1 -1
- package/dist/pine-core/{p-50ddadbf.entry.js → p-e72e8b8f.entry.js} +1 -1
- package/dist/pine-core/p-e92d0f0f.system.entry.js +1 -0
- package/dist/pine-core/{p-9b32727a.system.entry.js → p-eab165b9.system.entry.js} +1 -1
- package/dist/pine-core/p-eabc4bd8.entry.js +1 -0
- package/dist/pine-core/p-ef9f84f2.system.entry.js +1 -0
- package/dist/pine-core/{p-c9ae7964.entry.js → p-f026af73.entry.js} +1 -1
- package/dist/pine-core/{p-99530cb5.entry.js → p-f0509c8e.entry.js} +1 -1
- package/dist/pine-core/p-f1252e72.system.entry.js +1 -0
- package/dist/pine-core/p-f3496fd1.entry.js +1 -0
- package/dist/pine-core/{p-eecd9ad8.system.entry.js → p-f90f4be7.system.entry.js} +1 -1
- package/dist/pine-core/p-f9bdaadd.system.entry.js +1 -0
- package/dist/pine-core/{p-128c04e7.entry.js → p-fda791df.entry.js} +1 -1
- package/dist/pine-core/p-fea4296d.entry.js +1 -0
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/types/components/pds-alert/pds-alert.d.ts +2 -1
- package/dist/types/components/pds-avatar/pds-avatar.d.ts +5 -4
- package/dist/types/components/pds-box/pds-box.d.ts +68 -57
- package/dist/types/components/pds-button/pds-button.d.ts +14 -3
- package/dist/types/components/pds-checkbox/pds-checkbox.d.ts +15 -8
- package/dist/types/components/pds-chip/pds-chip.d.ts +2 -2
- package/dist/types/components/pds-combobox/pds-combobox.d.ts +48 -11
- package/dist/types/components/pds-copytext/pds-copytext.d.ts +3 -1
- package/dist/types/components/pds-datepicker/datepicker-interface.d.ts +20 -4
- package/dist/types/components/pds-datepicker/pds-datepicker.d.ts +3 -2
- package/dist/types/components/pds-datepicker/presets.d.ts +3 -2
- package/dist/types/components/pds-drawer/pds-drawer-content/pds-drawer-content.d.ts +1 -4
- package/dist/types/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.d.ts +1 -0
- package/dist/types/components/pds-drawer/pds-drawer-header/pds-drawer-header.d.ts +1 -0
- package/dist/types/components/pds-drawer/pds-drawer.d.ts +4 -6
- package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.d.ts +20 -16
- package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.d.ts +1 -1
- package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu.d.ts +7 -0
- package/dist/types/components/pds-filters/pds-filter/pds-filter.d.ts +6 -5
- package/dist/types/components/pds-image/image-interface.d.ts +12 -0
- package/dist/types/components/pds-image/pds-image.d.ts +69 -9
- package/dist/types/components/pds-input/pds-input.d.ts +17 -7
- package/dist/types/components/pds-link/pds-link.d.ts +8 -8
- package/dist/types/components/pds-loader/pds-loader.d.ts +3 -2
- package/dist/types/components/pds-modal/pds-modal-footer/pds-modal-footer.d.ts +1 -0
- package/dist/types/components/pds-modal/pds-modal-header/pds-modal-header.d.ts +1 -0
- package/dist/types/components/pds-modal/pds-modal.d.ts +7 -9
- package/dist/types/components/pds-multiselect/pds-multiselect.d.ts +14 -8
- package/dist/types/components/pds-popover/pds-popover.d.ts +2 -2
- package/dist/types/components/pds-progress/pds-progress.d.ts +2 -2
- package/dist/types/components/pds-radio/pds-radio.d.ts +6 -5
- package/dist/types/components/pds-radio-group/pds-radio-group.d.ts +5 -4
- package/dist/types/components/pds-select/pds-select.d.ts +9 -3
- package/dist/types/components/pds-sortable/pds-sortable-item/pds-sortable-item.d.ts +8 -2
- package/dist/types/components/pds-sortable/pds-sortable.d.ts +82 -1
- package/dist/types/components/pds-sortable/sortable-label.d.ts +7 -0
- package/dist/types/components/pds-switch/pds-switch.d.ts +17 -2
- package/dist/types/components/pds-table/pds-table-body/pds-table-body.d.ts +3 -0
- package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +10 -0
- package/dist/types/components/pds-table/pds-table-head/pds-table-head.d.ts +5 -1
- package/dist/types/components/pds-table/pds-table-head-cell/pds-table-head-cell.d.ts +21 -0
- package/dist/types/components/pds-table/pds-table-row/pds-table-row.d.ts +4 -0
- package/dist/types/components/pds-table/pds-table.d.ts +76 -2
- package/dist/types/components/pds-tabs/pds-tabs.d.ts +1 -1
- package/dist/types/components/pds-textarea/pds-textarea.d.ts +15 -13
- package/dist/types/components/pds-toast/pds-toast.d.ts +5 -1
- package/dist/types/components.d.ts +480 -325
- package/dist/types/utils/aria-references.d.ts +4 -0
- package/dist/types/utils/truncation-tooltip.d.ts +39 -0
- package/dist/types/utils/types.d.ts +3 -0
- package/dist/vscode.html-data.json +340 -134
- package/hydrate/index.js +1800 -353
- package/hydrate/index.mjs +1800 -353
- package/package.json +3 -3
- package/readme.md +26 -55
- package/dist/esm-es5/truncation-tooltip-DBcPipr9.js +0 -1
- package/dist/pine-core/p-07323107.entry.js +0 -1
- package/dist/pine-core/p-08b8e941.entry.js +0 -1
- package/dist/pine-core/p-0b7b3fc2.system.entry.js +0 -3
- package/dist/pine-core/p-0d5f0ab5.system.entry.js +0 -1
- package/dist/pine-core/p-14dedf01.system.entry.js +0 -1
- package/dist/pine-core/p-1ca8d183.entry.js +0 -1
- package/dist/pine-core/p-1f62bb71.entry.js +0 -7
- package/dist/pine-core/p-2dd30d12.entry.js +0 -1
- package/dist/pine-core/p-3359a935.entry.js +0 -1
- package/dist/pine-core/p-35s7h-dk.js +0 -1
- package/dist/pine-core/p-3610cb3b.entry.js +0 -1
- package/dist/pine-core/p-39276663.entry.js +0 -1
- package/dist/pine-core/p-3a1dc752.system.entry.js +0 -1
- package/dist/pine-core/p-42d43c3f.system.entry.js +0 -1
- package/dist/pine-core/p-4a90b9c8.system.entry.js +0 -1
- package/dist/pine-core/p-4cfe922b.entry.js +0 -1
- package/dist/pine-core/p-5f181694.system.entry.js +0 -1
- package/dist/pine-core/p-60a30975.system.entry.js +0 -1
- package/dist/pine-core/p-62aa6a78.system.entry.js +0 -1
- package/dist/pine-core/p-64bcb378.entry.js +0 -1
- package/dist/pine-core/p-724baba3.system.entry.js +0 -1
- package/dist/pine-core/p-72659a0e.system.entry.js +0 -1
- package/dist/pine-core/p-8ade17ce.entry.js +0 -1
- package/dist/pine-core/p-8e7f75e6.entry.js +0 -1
- package/dist/pine-core/p-8fb520df.entry.js +0 -1
- package/dist/pine-core/p-92115e88.entry.js +0 -1
- package/dist/pine-core/p-94c9b7d1.system.entry.js +0 -1
- package/dist/pine-core/p-97356d4b.entry.js +0 -1
- package/dist/pine-core/p-97653e60.entry.js +0 -1
- package/dist/pine-core/p-97b73359.entry.js +0 -1
- package/dist/pine-core/p-BZVUD2on.js +0 -1
- package/dist/pine-core/p-Dj-z_ugg.system.js +0 -1
- package/dist/pine-core/p-ad5208a4.system.entry.js +0 -1
- package/dist/pine-core/p-afc2f165.entry.js +0 -1
- package/dist/pine-core/p-bcc378ba.system.entry.js +0 -8
- package/dist/pine-core/p-c8a0b562.system.entry.js +0 -1
- package/dist/pine-core/p-d4968f9d.system.entry.js +0 -1
- package/dist/pine-core/p-d6f338e0.entry.js +0 -1
- package/dist/pine-core/p-da8b864a.entry.js +0 -2
- package/dist/pine-core/p-db7fb5a3.entry.js +0 -1
- package/dist/pine-core/p-de455073.system.entry.js +0 -1
- package/dist/pine-core/p-e3de6a1d.entry.js +0 -1
- package/dist/pine-core/p-e84fa9ed.entry.js +0 -1
- package/dist/pine-core/p-eb4f0daa.system.entry.js +0 -1
- package/dist/pine-core/p-eb56af4a.system.entry.js +0 -1
- package/dist/pine-core/p-ef0eba9b.system.entry.js +0 -1
- package/dist/pine-core/p-f11cce27.system.entry.js +0 -1
- package/dist/pine-core/p-f354dbac.entry.js +0 -1
|
@@ -11,54 +11,96 @@ export default {
|
|
|
11
11
|
|
|
12
12
|
const BaseTemplate = (args) => html`
|
|
13
13
|
<pds-box
|
|
14
|
-
align-items="${args.alignItems}"
|
|
15
|
-
align-self="${args.alignSelf}"
|
|
16
|
-
auto
|
|
17
|
-
background-color="${args.backgroundColor}"
|
|
14
|
+
align-items="${ifDefined(args.alignItems)}"
|
|
15
|
+
align-self="${ifDefined(args.alignSelf)}"
|
|
16
|
+
?auto=${args.auto}
|
|
17
|
+
background-color="${ifDefined(args.backgroundColor)}"
|
|
18
18
|
?border=${args.border}
|
|
19
19
|
border-block-start="${ifDefined(args.borderBlockStart)}"
|
|
20
20
|
border-block-end="${ifDefined(args.borderBlockEnd)}"
|
|
21
21
|
border-inline-start="${ifDefined(args.borderInlineStart)}"
|
|
22
22
|
border-inline-end="${ifDefined(args.borderInlineEnd)}"
|
|
23
|
-
border-color="${args.borderColor}"
|
|
24
|
-
border-radius="${args.borderRadius}"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
margin-
|
|
33
|
-
margin-inline-
|
|
34
|
-
margin-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
offset
|
|
38
|
-
offset-
|
|
39
|
-
offset-
|
|
40
|
-
offset-
|
|
41
|
-
offset-
|
|
42
|
-
|
|
43
|
-
padding
|
|
44
|
-
padding-block-
|
|
45
|
-
padding-
|
|
46
|
-
padding-inline-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
size
|
|
51
|
-
size-
|
|
52
|
-
size-
|
|
53
|
-
size-
|
|
54
|
-
size-
|
|
23
|
+
border-color="${ifDefined(args.borderColor)}"
|
|
24
|
+
border-radius="${ifDefined(args.borderRadius)}"
|
|
25
|
+
container="${ifDefined(args.container)}"
|
|
26
|
+
direction="${ifDefined(args.direction)}"
|
|
27
|
+
display="${ifDefined(args.display)}"
|
|
28
|
+
?fit=${args.fit}
|
|
29
|
+
flex="${ifDefined(args.flex)}"
|
|
30
|
+
gap="${ifDefined(args.gap)}"
|
|
31
|
+
justify-content="${ifDefined(args.justifyContent)}"
|
|
32
|
+
margin-block-start="${ifDefined(args.marginBlockStart)}"
|
|
33
|
+
margin-inline-start="${ifDefined(args.marginInlineStart)}"
|
|
34
|
+
margin-inline-end="${ifDefined(args.marginInlineEnd)}"
|
|
35
|
+
margin-block-end="${ifDefined(args.marginBlockEnd)}"
|
|
36
|
+
min-width="${ifDefined(args.minWidth)}"
|
|
37
|
+
offset="${ifDefined(args.offset)}"
|
|
38
|
+
offset-xs="${ifDefined(args.offsetXs)}"
|
|
39
|
+
offset-sm="${ifDefined(args.offsetSm)}"
|
|
40
|
+
offset-md="${ifDefined(args.offsetMd)}"
|
|
41
|
+
offset-lg="${ifDefined(args.offsetLg)}"
|
|
42
|
+
offset-xl="${ifDefined(args.offsetXl)}"
|
|
43
|
+
padding="${ifDefined(args.padding)}"
|
|
44
|
+
padding-block-start="${ifDefined(args.paddingBlockStart)}"
|
|
45
|
+
padding-block-end="${ifDefined(args.paddingBlockEnd)}"
|
|
46
|
+
padding-inline-start="${ifDefined(args.paddingInlineStart)}"
|
|
47
|
+
padding-inline-end="${ifDefined(args.paddingInlineEnd)}"
|
|
48
|
+
min-height="${ifDefined(args.minHeight)}"
|
|
49
|
+
shadow="${ifDefined(args.shadow)}"
|
|
50
|
+
size="${ifDefined(args.size)}"
|
|
51
|
+
size-xs="${ifDefined(args.sizeXs)}"
|
|
52
|
+
size-sm="${ifDefined(args.sizeSm)}"
|
|
53
|
+
size-md="${ifDefined(args.sizeMd)}"
|
|
54
|
+
size-lg="${ifDefined(args.sizeLg)}"
|
|
55
|
+
size-xl="${ifDefined(args.sizeXl)}"
|
|
55
56
|
>
|
|
56
57
|
Box content
|
|
57
58
|
</pds-box>`;
|
|
58
59
|
|
|
59
60
|
export const Default = BaseTemplate.bind();
|
|
60
61
|
Default.args = {
|
|
61
|
-
componentId: 'opt0',
|
|
62
62
|
border: true,
|
|
63
63
|
minHeight: '100px',
|
|
64
64
|
};
|
|
65
|
+
|
|
66
|
+
const footerTemplate = (args) => html`
|
|
67
|
+
<pds-box fit border="true" padding="sm" gap="sm" align-items="center">
|
|
68
|
+
<pds-button variant="destructive">Delete</pds-button>
|
|
69
|
+
<pds-box flex="none" gap="sm" margin-inline-start="${ifDefined(args.marginInlineStart)}">
|
|
70
|
+
<pds-button variant="secondary">Cancel</pds-button>
|
|
71
|
+
<pds-button>Save</pds-button>
|
|
72
|
+
</pds-box>
|
|
73
|
+
</pds-box>`;
|
|
74
|
+
|
|
75
|
+
export const MarginAuto = footerTemplate.bind();
|
|
76
|
+
MarginAuto.args = {
|
|
77
|
+
marginInlineStart: 'auto',
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const flexTemplate = (args) => html`
|
|
81
|
+
<pds-container size="sm">
|
|
82
|
+
<pds-box fit border="true" padding="xs" gap="xs">
|
|
83
|
+
<pds-box flex="${ifDefined(args.flex)}" border="true" padding="xs">A box with long text that needs more room than the row has to give it.</pds-box>
|
|
84
|
+
<pds-box flex="${ifDefined(args.flex)}" border="true" padding="xs">A second box with long text that also needs more room than the row has.</pds-box>
|
|
85
|
+
</pds-box>
|
|
86
|
+
</pds-container>`;
|
|
87
|
+
|
|
88
|
+
export const FlexShrink = flexTemplate.bind();
|
|
89
|
+
FlexShrink.args = {
|
|
90
|
+
flex: 'shrink',
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const containerTemplate = (args) => html`
|
|
94
|
+
<pds-container size="sm">
|
|
95
|
+
<pds-box fit border="true" padding="sm" gap="sm" align-items="center">
|
|
96
|
+
<pds-box container="${ifDefined(args.container)}" direction="column">
|
|
97
|
+
<pds-text truncate>A long file name that should truncate rather than push the action out of the card.pdf</pds-text>
|
|
98
|
+
</pds-box>
|
|
99
|
+
<pds-button variant="secondary">Replace</pds-button>
|
|
100
|
+
</pds-box>
|
|
101
|
+
</pds-container>`;
|
|
102
|
+
|
|
103
|
+
export const Container = containerTemplate.bind();
|
|
104
|
+
Container.args = {
|
|
105
|
+
container: 'inline-size',
|
|
106
|
+
};
|
|
@@ -125,6 +125,15 @@ export class PdsButton {
|
|
|
125
125
|
(_a = this.hostAriaObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
126
126
|
this.hostAriaObserver = undefined;
|
|
127
127
|
}
|
|
128
|
+
componentWillLoad() {
|
|
129
|
+
// slotchange only fires after the first render, and when the button is inserted inside a
|
|
130
|
+
// requestAnimationFrame callback the update it triggers lands a frame later, so the first paint
|
|
131
|
+
// would hide slotted icons and draw the button narrower.
|
|
132
|
+
// Only a slot the first render creates is seeded: a slot inserted later with no assigned
|
|
133
|
+
// nodes fires no slotchange, so a seeded true there would keep an empty gap.
|
|
134
|
+
this.hasStartContent = this.rendersStartSlot() && this.hasSlottedElement('start');
|
|
135
|
+
this.hasEndContent = this.rendersEndSlot() && this.hasSlottedElement('end');
|
|
136
|
+
}
|
|
128
137
|
componentDidRender() {
|
|
129
138
|
this.forwardAriaReferences();
|
|
130
139
|
}
|
|
@@ -181,6 +190,19 @@ export class PdsButton {
|
|
|
181
190
|
if (this.contentEl)
|
|
182
191
|
forwardAriaReferences(this.el, this.contentEl);
|
|
183
192
|
}
|
|
193
|
+
// A first-render guess; the slotchange handlers below stay the source of truth (a forwarded,
|
|
194
|
+
// empty <slot> counts here and is corrected on slotchange).
|
|
195
|
+
hasSlottedElement(name) {
|
|
196
|
+
return Array.from(this.el.children).some((child) => child.getAttribute('slot') === name);
|
|
197
|
+
}
|
|
198
|
+
// The filter variant and the deprecated icon prop draw their own start icon instead of the slot.
|
|
199
|
+
rendersStartSlot() {
|
|
200
|
+
return this.variant !== 'filter' && !(this.icon && this.variant !== 'disclosure');
|
|
201
|
+
}
|
|
202
|
+
// Icon-only and disclosure buttons draw no end slot.
|
|
203
|
+
rendersEndSlot() {
|
|
204
|
+
return !this.iconOnly && this.variant !== 'disclosure';
|
|
205
|
+
}
|
|
184
206
|
classNames() {
|
|
185
207
|
const classNames = ['pds-button'];
|
|
186
208
|
if (this.variant) {
|
|
@@ -352,7 +374,7 @@ export class PdsButton {
|
|
|
352
374
|
"optional": true,
|
|
353
375
|
"docs": {
|
|
354
376
|
"tags": [],
|
|
355
|
-
"text": "If provided, renders the component as an anchor (`<a>`) element instead of a button.\nWhen using href,
|
|
377
|
+
"text": "If provided, renders the component as an anchor (`<a>`) element instead of a button.\nWhen using href, `type`, `name` and `value` are ignored, `loading` blocks navigation, and `disabled` removes the link's `href`."
|
|
356
378
|
},
|
|
357
379
|
"getter": false,
|
|
358
380
|
"setter": false,
|
|
@@ -440,7 +462,7 @@ export class PdsButton {
|
|
|
440
462
|
"optional": true,
|
|
441
463
|
"docs": {
|
|
442
464
|
"tags": [],
|
|
443
|
-
"text": "
|
|
465
|
+
"text": "Sets the `name` attribute of the inner button. Not included in submitted form data,\nbecause the form is submitted through a hidden button that carries only the `type`."
|
|
444
466
|
},
|
|
445
467
|
"getter": false,
|
|
446
468
|
"setter": false,
|
|
@@ -501,7 +523,7 @@ export class PdsButton {
|
|
|
501
523
|
"optional": true,
|
|
502
524
|
"docs": {
|
|
503
525
|
"tags": [],
|
|
504
|
-
"text": "
|
|
526
|
+
"text": "Sets the `value` attribute of the inner button. Not included in submitted form data,\nbecause the form is submitted through a hidden button that carries only the `type`."
|
|
505
527
|
},
|
|
506
528
|
"getter": false,
|
|
507
529
|
"setter": false,
|
|
@@ -572,7 +594,7 @@ export class PdsButton {
|
|
|
572
594
|
"composed": true,
|
|
573
595
|
"docs": {
|
|
574
596
|
"tags": [],
|
|
575
|
-
"text": ""
|
|
597
|
+
"text": "Emitted when the button is clicked, including from the keyboard, carrying the native click event.\nNot emitted while the button is `disabled` or `loading`. In a form, a `submit` or `reset` button's `submit` or `reset` event fires\nbefore this one. A form that fails validation fires no `submit` event."
|
|
576
598
|
},
|
|
577
599
|
"complexType": {
|
|
578
600
|
"original": "Event",
|
|
@@ -135,16 +135,29 @@ Disclosure.parameters = {
|
|
|
135
135
|
controls: { exclude: 'icon' }
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
export const IconOnly =
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
138
|
+
export const IconOnly = {
|
|
139
|
+
render: (args) => html`
|
|
140
|
+
<pds-button
|
|
141
|
+
aria-label=${ifDefined(args.ariaLabel)}
|
|
142
|
+
?disabled=${args.disabled}
|
|
143
|
+
?full-width=${args.fullWidth}
|
|
144
|
+
?icon-only=${args.iconOnly}
|
|
145
|
+
?loading=${args.loading}
|
|
146
|
+
size=${ifDefined(args.size)}
|
|
147
|
+
type=${args.type}
|
|
148
|
+
variant=${args.variant}
|
|
149
|
+
>
|
|
150
|
+
<pds-icon slot="start" name="favorite" aria-hidden="true"></pds-icon>
|
|
151
|
+
</pds-button>`,
|
|
152
|
+
args: {
|
|
153
|
+
ariaLabel: 'Favorite',
|
|
154
|
+
disabled: false,
|
|
155
|
+
fullWidth: false,
|
|
156
|
+
iconOnly: true,
|
|
157
|
+
loading: false,
|
|
158
|
+
type: 'button',
|
|
159
|
+
variant: 'secondary',
|
|
160
|
+
},
|
|
148
161
|
};
|
|
149
162
|
|
|
150
163
|
export const Filter = BaseTemplate.bind({});
|
|
@@ -268,7 +281,8 @@ export const CompactIconButtonViaPart = {
|
|
|
268
281
|
color: var(--pine-color-text-primary);
|
|
269
282
|
}
|
|
270
283
|
</style>
|
|
271
|
-
<pds-button class="compact-inverse-icon-button" variant="unstyled" icon-only
|
|
284
|
+
<pds-button class="compact-inverse-icon-button" variant="unstyled" icon-only>
|
|
285
|
+
<pds-icon slot="start" name="arrow-up" aria-hidden="true"></pds-icon>
|
|
272
286
|
Send message
|
|
273
287
|
</pds-button>
|
|
274
288
|
`,
|
|
@@ -124,9 +124,9 @@ export class PdsCheckbox {
|
|
|
124
124
|
render() {
|
|
125
125
|
const hostClass = this.classNames();
|
|
126
126
|
this.hostKeeper.record(hostClass);
|
|
127
|
-
return (h(Host, { key: '
|
|
128
|
-
h("div", { key: '
|
|
129
|
-
h("div", { key: '
|
|
127
|
+
return (h(Host, { key: 'ba31bb0a6b87946aabd6c919701d0f8ffb02e390', class: hostClass }, h("label", { key: '8670fb23e0eda01a23c2246f1f147adc682976e6', htmlFor: this.componentId }, h("input", Object.assign({ key: '1382be5f2887193e5b0d44586769ef3c36d7a994', type: "checkbox", "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage, this.errorMessage), "aria-invalid": this.invalid ? "true" : undefined, id: this.componentId, indeterminate: this.indeterminate, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleCheckboxChange, onInput: this.handleInput, class: this.variant === 'pill' ? 'visually-hidden' : undefined }, this.inheritedAttributes)), h("span", { key: '0717737091cf2045064f11e2b9478e3adb3aa1e3', class: this.hideLabel && this.variant !== 'pill' ? 'visually-hidden' : '' }, h("slot", { key: '93c4e2842fcfd738a95fe8a34193339d683533e8', name: "label", onSlotchange: this.updateHasLabelSlot }), !this.hasLabelSlot && this.label)), this.helperMessage &&
|
|
128
|
+
h("div", { key: 'd7c6aca24d1b1eea0e8c892349fea3380e23e70e', class: 'pds-checkbox__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
129
|
+
h("div", { key: '77983f7f87bb722adad8f2ea9ba479bf738071c8', class: `pds-checkbox__message pds-checkbox__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: 'b7ed2ed0012573a04cda9bc1ba10de03ac38d8de', "aria-hidden": "true", icon: danger, size: "small" }), this.errorMessage)));
|
|
130
130
|
}
|
|
131
131
|
static get is() { return "pds-checkbox"; }
|
|
132
132
|
static get encapsulation() { return "shadow"; }
|
|
@@ -213,7 +213,7 @@ export class PdsCheckbox {
|
|
|
213
213
|
"optional": false,
|
|
214
214
|
"docs": {
|
|
215
215
|
"tags": [],
|
|
216
|
-
"text": "Displays message
|
|
216
|
+
"text": "Displays an error message below the checkbox. It becomes the checkbox's accessible description only while `invalid` is set."
|
|
217
217
|
},
|
|
218
218
|
"getter": false,
|
|
219
219
|
"setter": false,
|
|
@@ -232,7 +232,7 @@ export class PdsCheckbox {
|
|
|
232
232
|
"optional": false,
|
|
233
233
|
"docs": {
|
|
234
234
|
"tags": [],
|
|
235
|
-
"text": "
|
|
235
|
+
"text": "Displays a message or hint below the checkbox."
|
|
236
236
|
},
|
|
237
237
|
"getter": false,
|
|
238
238
|
"setter": false,
|
|
@@ -251,7 +251,7 @@ export class PdsCheckbox {
|
|
|
251
251
|
"optional": false,
|
|
252
252
|
"docs": {
|
|
253
253
|
"tags": [],
|
|
254
|
-
"text": "
|
|
254
|
+
"text": "Shows the checkbox as indeterminate, for a checkbox whose group is only partly selected. It's exposed to screen readers as mixed.\nChanging `checked` clears it. Has no visual style when `variant` is `pill`."
|
|
255
255
|
},
|
|
256
256
|
"getter": false,
|
|
257
257
|
"setter": false,
|
|
@@ -270,7 +270,7 @@ export class PdsCheckbox {
|
|
|
270
270
|
"optional": false,
|
|
271
271
|
"docs": {
|
|
272
272
|
"tags": [],
|
|
273
|
-
"text": "
|
|
273
|
+
"text": "Determines whether or not the checkbox is invalid."
|
|
274
274
|
},
|
|
275
275
|
"getter": false,
|
|
276
276
|
"setter": false,
|
|
@@ -289,7 +289,7 @@ export class PdsCheckbox {
|
|
|
289
289
|
"optional": false,
|
|
290
290
|
"docs": {
|
|
291
291
|
"tags": [],
|
|
292
|
-
"text": "
|
|
292
|
+
"text": "Text to be displayed as the checkbox label."
|
|
293
293
|
},
|
|
294
294
|
"getter": false,
|
|
295
295
|
"setter": false,
|
|
@@ -411,7 +411,7 @@ export class PdsCheckbox {
|
|
|
411
411
|
"composed": true,
|
|
412
412
|
"docs": {
|
|
413
413
|
"tags": [],
|
|
414
|
-
"text": "
|
|
414
|
+
"text": "Emitted when the user toggles the checkbox, by a click or `Space`, carrying the `value` and the new `checked` state.\n\nThis event will not emit when programmatically setting the `checked` property."
|
|
415
415
|
},
|
|
416
416
|
"complexType": {
|
|
417
417
|
"original": "CheckboxChangeEventDetail",
|
|
@@ -433,7 +433,7 @@ export class PdsCheckbox {
|
|
|
433
433
|
"composed": true,
|
|
434
434
|
"docs": {
|
|
435
435
|
"tags": [],
|
|
436
|
-
"text": ""
|
|
436
|
+
"text": "Emitted when the user toggles the checkbox, just before `pdsCheckboxChange`, carrying the `value` and `checked`.\n`checked` is still the state from before the toggle, so read the new state from `pdsCheckboxChange`.\n\nThis event will not emit when programmatically setting the `checked` property."
|
|
437
437
|
},
|
|
438
438
|
"complexType": {
|
|
439
439
|
"original": "CheckboxChangeEventDetail",
|
|
@@ -32,7 +32,7 @@ function besideListbox(wrapper) {
|
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* @slot (default) - The chip's label text.
|
|
35
|
-
* @part button
|
|
35
|
+
* @part button - Exposes the trigger button for styling. Appears only on the dropdown variant.
|
|
36
36
|
* @part dot - Exposes the dot for styling, such as a custom color. Appears only when `dot` is set.
|
|
37
37
|
* @part icon - Exposes the icon component for styling, such as a custom color. Appears only when `icon` is set.
|
|
38
38
|
*/
|
|
@@ -239,7 +239,7 @@ export class PdsChip {
|
|
|
239
239
|
const hostClass = this.classNames();
|
|
240
240
|
const hostStyles = this.hostStyles;
|
|
241
241
|
this.hostKeeper.record(hostClass, hostStyles);
|
|
242
|
-
return (h(Host, { key: '
|
|
242
|
+
return (h(Host, { key: 'd8c5e90c4d55959e7b2d0cc8a994136fb0abc5dc', class: hostClass, id: this.componentId, style: hostStyles }, this.setChipContent(), this.effectiveVariant === 'tag' && this.renderCloseButton()));
|
|
243
243
|
}
|
|
244
244
|
static get is() { return "pds-chip"; }
|
|
245
245
|
static get encapsulation() { return "shadow"; }
|
|
@@ -474,7 +474,7 @@ export class PdsChip {
|
|
|
474
474
|
"optional": true,
|
|
475
475
|
"docs": {
|
|
476
476
|
"tags": [],
|
|
477
|
-
"text": "HTTP method to use for the remove action.\
|
|
477
|
+
"text": "HTTP method to use for the remove action.\nMaps to the `data-method` and `data-turbo-method` attributes on the remove link, for frameworks that read link methods from them.\nOnly applies when removeUrl is provided."
|
|
478
478
|
},
|
|
479
479
|
"getter": false,
|
|
480
480
|
"setter": false,
|