@pine-ds/core 4.10.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 +295 -82
- 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/date-utils.js +42 -0
- package/dist/collection/components/pds-datepicker/pds-datepicker.js +164 -65
- package/dist/collection/components/pds-datepicker/presets.js +42 -7
- package/dist/collection/components/pds-datepicker/stories/pds-datepicker.stories.js +11 -0
- package/dist/collection/components/pds-datepicker/value.js +76 -18
- 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 +1150 -371
- 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 +296 -83
- 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/date-utils.d.ts +19 -0
- package/dist/types/components/pds-datepicker/datepicker-interface.d.ts +22 -5
- package/dist/types/components/pds-datepicker/pds-datepicker.d.ts +33 -7
- package/dist/types/components/pds-datepicker/presets.d.ts +3 -2
- package/dist/types/components/pds-datepicker/value.d.ts +14 -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 +505 -335
- 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 +350 -137
- package/hydrate/index.js +2054 -427
- package/hydrate/index.mjs +2054 -427
- 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-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-8436cbfb.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-d47b2a6a.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
|
@@ -13,7 +13,7 @@ export class PdsRadio {
|
|
|
13
13
|
this.hostKeeper = new HostStylingKeeper();
|
|
14
14
|
this._hasImage = false;
|
|
15
15
|
/**
|
|
16
|
-
* Determines whether or not the radio is checked.
|
|
16
|
+
* Determines whether or not the radio is checked. It keeps the value you set and doesn't change when the user picks a radio.
|
|
17
17
|
* @defaultValue false
|
|
18
18
|
*/
|
|
19
19
|
this.checked = false;
|
|
@@ -111,14 +111,14 @@ export class PdsRadio {
|
|
|
111
111
|
}
|
|
112
112
|
render() {
|
|
113
113
|
const renderLabelAndMessages = () => [
|
|
114
|
-
h("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, h("input", { key: '
|
|
114
|
+
h("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, h("input", { key: '245464683e5944a26a94509f487deb10ed4e8f05', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage, this.errorMessage), "aria-invalid": this.invalid ? "true" : undefined, type: "radio", id: this.componentId, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleRadioChange, class: this.hasImage() || this.isPill() ? 'visually-hidden' : '' }), h("span", { key: '4d21fa0984501adc8ffc5fd7328b5dbd9cdfb98a', class: this.hideLabel && !this.isPill() ? 'visually-hidden' : '' }, this.label)),
|
|
115
115
|
this.helperMessage && (h("div", { key: `${this.componentId}-helper`, class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage)),
|
|
116
|
-
this.errorMessage && (h("div", { key: `${this.componentId}-error`, class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: '
|
|
116
|
+
this.errorMessage && (h("div", { key: `${this.componentId}-error`, class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: 'ed7bc193c25165d38a227887acda90675fe318f2', "aria-hidden": "true", icon: danger, size: "small" }), this.errorMessage))
|
|
117
117
|
];
|
|
118
118
|
const hostClass = this.classNames();
|
|
119
119
|
this.hostKeeper.record(hostClass);
|
|
120
120
|
const showImage = this.hasImage() && !this.isPill();
|
|
121
|
-
return (h(Host, { key: '
|
|
121
|
+
return (h(Host, { key: 'b8d059bab47b36b7e7b89172e54c57b8df4ce9c7', class: hostClass }, showImage && (h("div", { key: 'bea622fc1afdaacd91f2e89aa7529e54c22c88da', class: "pds-radio__image-container", part: "image-container" }, h("slot", { key: '3eca85a2457b25fa51509b28543ba897e3d99ab6', name: "image", onSlotchange: () => (this._hasImage = this.hasImageSlot()) }))), showImage ? (h("div", { class: "pds-radio__content-wrapper" }, renderLabelAndMessages())) : (renderLabelAndMessages())));
|
|
122
122
|
}
|
|
123
123
|
static get is() { return "pds-radio"; }
|
|
124
124
|
static get encapsulation() { return "scoped"; }
|
|
@@ -149,7 +149,7 @@ export class PdsRadio {
|
|
|
149
149
|
"name": "defaultValue",
|
|
150
150
|
"text": "false"
|
|
151
151
|
}],
|
|
152
|
-
"text": "Determines whether or not the radio is checked."
|
|
152
|
+
"text": "Determines whether or not the radio is checked. It keeps the value you set and doesn't change when the user picks a radio."
|
|
153
153
|
},
|
|
154
154
|
"getter": false,
|
|
155
155
|
"setter": false,
|
|
@@ -211,7 +211,7 @@ export class PdsRadio {
|
|
|
211
211
|
"optional": false,
|
|
212
212
|
"docs": {
|
|
213
213
|
"tags": [],
|
|
214
|
-
"text": "Displays error message
|
|
214
|
+
"text": "Displays an error message below the radio. It becomes the radio's accessible description only while `invalid` is set."
|
|
215
215
|
},
|
|
216
216
|
"getter": false,
|
|
217
217
|
"setter": false,
|
|
@@ -230,7 +230,7 @@ export class PdsRadio {
|
|
|
230
230
|
"optional": false,
|
|
231
231
|
"docs": {
|
|
232
232
|
"tags": [],
|
|
233
|
-
"text": "Displays
|
|
233
|
+
"text": "Displays a message or hint below the radio."
|
|
234
234
|
},
|
|
235
235
|
"getter": false,
|
|
236
236
|
"setter": false,
|
|
@@ -295,7 +295,7 @@ export class PdsRadio {
|
|
|
295
295
|
"optional": false,
|
|
296
296
|
"docs": {
|
|
297
297
|
"tags": [],
|
|
298
|
-
"text": "
|
|
298
|
+
"text": "Text to be displayed as the radio label."
|
|
299
299
|
},
|
|
300
300
|
"getter": false,
|
|
301
301
|
"setter": false,
|
|
@@ -421,7 +421,7 @@ export class PdsRadio {
|
|
|
421
421
|
"composed": true,
|
|
422
422
|
"docs": {
|
|
423
423
|
"tags": [],
|
|
424
|
-
"text": "
|
|
424
|
+
"text": "Emitted with `true` when the user checks the radio, by a click or an arrow key. The radio is `event.target`, so read its `value` there.\nNot emitted when picking another radio unchecks this one. Not emitted inside `pds-radio-group` either; listen for `pdsRadioGroupChange` there."
|
|
425
425
|
},
|
|
426
426
|
"complexType": {
|
|
427
427
|
"original": "boolean",
|
|
@@ -42,34 +42,34 @@ const BaseTemplate = (args) =>
|
|
|
42
42
|
|
|
43
43
|
export const Default = BaseTemplate.bind();
|
|
44
44
|
Default.args = {
|
|
45
|
-
componentId: 'default',
|
|
45
|
+
componentId: 'radio-default',
|
|
46
46
|
label: 'Label text',
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
export const Checked = BaseTemplate.bind();
|
|
50
50
|
Checked.args = {
|
|
51
|
-
componentId: 'checked',
|
|
51
|
+
componentId: 'radio-checked',
|
|
52
52
|
label: 'Label text',
|
|
53
53
|
checked: true,
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
export const Disabled = BaseTemplate.bind();
|
|
57
57
|
Disabled.args = {
|
|
58
|
-
componentId: 'disabled',
|
|
58
|
+
componentId: 'radio-disabled',
|
|
59
59
|
label: 'Label text',
|
|
60
60
|
disabled: true,
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
export const withMessage = BaseTemplate.bind();
|
|
64
64
|
withMessage.args = {
|
|
65
|
-
componentId: 'with-message',
|
|
65
|
+
componentId: 'radio-with-message',
|
|
66
66
|
label: 'Label text',
|
|
67
67
|
helperMessage: 'This is short message text',
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
export const Invalid = BaseTemplate.bind();
|
|
71
71
|
Invalid.args = {
|
|
72
|
-
componentId: 'invalid',
|
|
72
|
+
componentId: 'radio-invalid',
|
|
73
73
|
errorMessage: 'This is a short error message',
|
|
74
74
|
label: 'Label text',
|
|
75
75
|
invalid: true,
|
|
@@ -77,7 +77,7 @@ Invalid.args = {
|
|
|
77
77
|
|
|
78
78
|
export const WithBorder = BaseTemplate.bind();
|
|
79
79
|
WithBorder.args = {
|
|
80
|
-
componentId: 'with-border',
|
|
80
|
+
componentId: 'radio-with-border',
|
|
81
81
|
label: 'Label text',
|
|
82
82
|
hasBorder: true,
|
|
83
83
|
helperMessage: 'This radio has a border for better visual separation',
|
|
@@ -98,21 +98,21 @@ const ImageTemplate = (args) =>
|
|
|
98
98
|
value=${args.value}
|
|
99
99
|
?invalid=${args.invalid}
|
|
100
100
|
>
|
|
101
|
-
<pds-box slot="image" background-color="var(--pine-color-accent)" border-radius="
|
|
101
|
+
<pds-box slot="image" background-color="var(--pine-color-accent)" border-radius="circle" padding="sm">
|
|
102
102
|
<pds-icon icon="danger" size="medium" color="var(--pine-color-white)" />
|
|
103
103
|
</pds-box>
|
|
104
104
|
</pds-radio>`;
|
|
105
105
|
|
|
106
106
|
export const WithImage = ImageTemplate.bind();
|
|
107
107
|
WithImage.args = {
|
|
108
|
-
componentId: 'with-image',
|
|
108
|
+
componentId: 'radio-with-image',
|
|
109
109
|
label: 'Option with image',
|
|
110
110
|
helperMessage: 'This radio includes an image using the image slot',
|
|
111
111
|
};
|
|
112
112
|
|
|
113
113
|
export const Pill = BaseTemplate.bind();
|
|
114
114
|
Pill.args = {
|
|
115
|
-
componentId: 'pill',
|
|
115
|
+
componentId: 'radio-pill',
|
|
116
116
|
label: 'Label text',
|
|
117
117
|
variant: 'pill',
|
|
118
118
|
};
|
|
@@ -222,13 +222,13 @@ export class PdsRadioGroup {
|
|
|
222
222
|
'aria-describedby': ariaDescribedBy,
|
|
223
223
|
'aria-labelledby': ariaLabelledBy === this.labelId ? ariaLabelledBy : undefined,
|
|
224
224
|
});
|
|
225
|
-
return (h(Host, { key: '
|
|
225
|
+
return (h(Host, { key: 'c0d30ada4c215a2a316e55e0c564eb2d74f811be', class: hostClass, id: this._groupId, role: "radiogroup", "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, style: {
|
|
226
226
|
'--pds-radio-group-gap': gapValue,
|
|
227
|
-
} }, this.groupLabel && (h("div", { key: '
|
|
227
|
+
} }, this.groupLabel && (h("div", { key: 'c237d7907b458131fd248b50b36f45df3c49f084', class: "pds-radio-group__label", id: this.labelId }, this.groupLabel)), h("div", { key: 'd31f36e69c4ee2fc9f9c86f0a25d56a4a5272372', class: {
|
|
228
228
|
'pds-radio-group__radios': true,
|
|
229
229
|
'pds-radio-group__radios--row': this.direction === 'row',
|
|
230
230
|
'pds-radio-group__radios--column': this.direction === 'column',
|
|
231
|
-
} }, h("slot", { key: '
|
|
231
|
+
} }, h("slot", { key: '20153277b51dfe816596d7c4d7d1d12eaf08362a', onSlotchange: () => this.updateChildRadios() })), this.helperMessage && (h("div", { key: '1d48f78e3c3c56c949868a868bf9d73bdff81beb', class: "pds-radio-group__message", id: messageId(this._groupId, 'helper') }, this.helperMessage)), this.errorMessage && (h("div", { key: 'c2d0d3f60b9a598d60b372945852f0a7e512abbf', class: "pds-radio-group__message pds-radio-group__message--error", id: messageId(this._groupId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: '2f187a2fea00871f9980cc0fe799c758723174fe', "aria-hidden": "true", icon: danger, size: "small" }), this.errorMessage))));
|
|
232
232
|
}
|
|
233
233
|
static get is() { return "pds-radio-group"; }
|
|
234
234
|
static get encapsulation() { return "scoped"; }
|
|
@@ -298,7 +298,7 @@ export class PdsRadioGroup {
|
|
|
298
298
|
"optional": false,
|
|
299
299
|
"docs": {
|
|
300
300
|
"tags": [],
|
|
301
|
-
"text": "Displays error message
|
|
301
|
+
"text": "Displays an error message below the radio group. It's part of the group's accessible description, with or without `invalid`."
|
|
302
302
|
},
|
|
303
303
|
"getter": false,
|
|
304
304
|
"setter": false,
|
|
@@ -317,7 +317,7 @@ export class PdsRadioGroup {
|
|
|
317
317
|
"optional": false,
|
|
318
318
|
"docs": {
|
|
319
319
|
"tags": [],
|
|
320
|
-
"text": "Displays
|
|
320
|
+
"text": "Displays a message or hint below the radio group."
|
|
321
321
|
},
|
|
322
322
|
"getter": false,
|
|
323
323
|
"setter": false,
|
|
@@ -405,7 +405,7 @@ export class PdsRadioGroup {
|
|
|
405
405
|
"optional": false,
|
|
406
406
|
"docs": {
|
|
407
407
|
"tags": [],
|
|
408
|
-
"text": "
|
|
408
|
+
"text": "Text to be displayed as the radio group label. It also names the group, unless you set `aria-label` or `aria-labelledby` on it."
|
|
409
409
|
},
|
|
410
410
|
"getter": false,
|
|
411
411
|
"setter": false,
|
|
@@ -465,7 +465,7 @@ export class PdsRadioGroup {
|
|
|
465
465
|
"composed": true,
|
|
466
466
|
"docs": {
|
|
467
467
|
"tags": [],
|
|
468
|
-
"text": "
|
|
468
|
+
"text": "Emitted when the user checks a radio in the group, by a click or an arrow key. `detail` has that radio's `value`\nand `componentId`, and `checked`, which is always `true`."
|
|
469
469
|
},
|
|
470
470
|
"complexType": {
|
|
471
471
|
"original": "RadioGroupChangeEventDetail",
|
|
@@ -101,17 +101,17 @@ const ImageTemplate = (args) =>
|
|
|
101
101
|
?required=${args.required}
|
|
102
102
|
>
|
|
103
103
|
<pds-radio component-id="radio1" label="John Doe" value="john" helper-message="Senior Developer">
|
|
104
|
-
<pds-box slot="image" background-color="var(--pine-color-accent)" border-radius="
|
|
104
|
+
<pds-box slot="image" background-color="var(--pine-color-accent)" border-radius="circle" padding="sm">
|
|
105
105
|
<pds-icon icon="danger" size="medium" color="var(--pine-color-white)"></pds-icon>
|
|
106
106
|
</pds-box>
|
|
107
107
|
</pds-radio>
|
|
108
108
|
<pds-radio component-id="radio2" label="Jane Smith" value="jane" helper-message="Product Manager">
|
|
109
|
-
<pds-box slot="image" background-color="var(--pine-color-accent)" border-radius="
|
|
109
|
+
<pds-box slot="image" background-color="var(--pine-color-accent)" border-radius="circle" padding="sm">
|
|
110
110
|
<pds-icon icon="danger" size="medium" color="var(--pine-color-white)"></pds-icon>
|
|
111
111
|
</pds-box>
|
|
112
112
|
</pds-radio>
|
|
113
113
|
<pds-radio component-id="radio3" label="Mike Johnson" value="mike" helper-message="UX Designer">
|
|
114
|
-
<pds-box slot="image" background-color="var(--pine-color-accent)" border-radius="
|
|
114
|
+
<pds-box slot="image" background-color="var(--pine-color-accent)" border-radius="circle" padding="sm">
|
|
115
115
|
<pds-icon icon="danger" size="medium" color="var(--pine-color-white)"></pds-icon>
|
|
116
116
|
</pds-box>
|
|
117
117
|
</pds-radio>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { html } from 'lit-html';
|
|
2
|
+
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
component: 'pds-row',
|
|
@@ -7,13 +8,13 @@ export default {
|
|
|
7
8
|
|
|
8
9
|
const BaseTemplate = (args) => html`
|
|
9
10
|
<pds-row
|
|
10
|
-
align-items="${args.alignItems}"
|
|
11
|
+
align-items="${ifDefined(args.alignItems)}"
|
|
11
12
|
?border=${args.border}
|
|
12
|
-
component-id="${args.componentId}"
|
|
13
|
-
col-gap="${args.colGap}"
|
|
14
|
-
justify-content="${args.justifyContent}"
|
|
15
|
-
min-height="${args.minHeight}"
|
|
16
|
-
no-wrap
|
|
13
|
+
component-id="${ifDefined(args.componentId)}"
|
|
14
|
+
col-gap="${ifDefined(args.colGap)}"
|
|
15
|
+
justify-content="${ifDefined(args.justifyContent)}"
|
|
16
|
+
min-height="${ifDefined(args.minHeight)}"
|
|
17
|
+
?no-wrap=${args.noWrap}
|
|
17
18
|
>
|
|
18
19
|
<pds-box>
|
|
19
20
|
<pds-box border>Item 1</pds-box>
|
|
@@ -31,24 +32,24 @@ export const Default = BaseTemplate.bind();
|
|
|
31
32
|
Default.args = {
|
|
32
33
|
border: true,
|
|
33
34
|
componentId: 'opt0',
|
|
34
|
-
colGap: '
|
|
35
|
+
colGap: 'sm',
|
|
35
36
|
};
|
|
36
37
|
|
|
37
38
|
const GapTemplate = (args) => html`
|
|
38
39
|
<pds-row
|
|
39
|
-
align-items="${args.alignItems}"
|
|
40
|
+
align-items="${ifDefined(args.alignItems)}"
|
|
40
41
|
?border=${args.border}
|
|
41
|
-
component-id="${args.componentId}"
|
|
42
|
-
col-gap="${args.colGap}"
|
|
43
|
-
justify-content="${args.justifyContent}"
|
|
44
|
-
min-height="${args.minHeight}"
|
|
42
|
+
component-id="${ifDefined(args.componentId)}"
|
|
43
|
+
col-gap="${ifDefined(args.colGap)}"
|
|
44
|
+
justify-content="${ifDefined(args.justifyContent)}"
|
|
45
|
+
min-height="${ifDefined(args.minHeight)}"
|
|
45
46
|
>
|
|
46
47
|
<pds-box size="4">
|
|
47
48
|
<pds-box
|
|
48
49
|
border="true"
|
|
49
50
|
border-radius="sm"
|
|
50
51
|
padding="sm"
|
|
51
|
-
shadow="
|
|
52
|
+
shadow="100"
|
|
52
53
|
>
|
|
53
54
|
Item 1
|
|
54
55
|
</pds-box>
|
|
@@ -58,7 +59,7 @@ const GapTemplate = (args) => html`
|
|
|
58
59
|
border="true"
|
|
59
60
|
border-radius="sm"
|
|
60
61
|
padding="sm"
|
|
61
|
-
shadow="
|
|
62
|
+
shadow="100"
|
|
62
63
|
>
|
|
63
64
|
Item 2
|
|
64
65
|
</pds-box>
|
|
@@ -22,7 +22,10 @@ const patchInPlace = (target, copy) => {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
|
+
* @slot (default) - The `option` and `optgroup` elements to choose from. Other elements are ignored.
|
|
25
26
|
* @slot action - Content to be displayed in the label area, typically for help icons or links
|
|
27
|
+
* @part action - Exposes the wrapper around the `action` slot for styling. Appears only when the `action` slot has content.
|
|
28
|
+
* @part select - Exposes the native `select` element for styling.
|
|
26
29
|
*/
|
|
27
30
|
export class PdsSelect {
|
|
28
31
|
constructor() {
|
|
@@ -351,7 +354,7 @@ export class PdsSelect {
|
|
|
351
354
|
'has-action': hasAction && !this.hideLabel ? 'true' : null,
|
|
352
355
|
};
|
|
353
356
|
this.hostKeeper.record(hostClass, {}, hostAttributes);
|
|
354
|
-
return (h(Host, Object.assign({ key: '
|
|
357
|
+
return (h(Host, Object.assign({ key: '6ffb35c5166a0759fbe7b3daa0b674c5f10458fa', class: hostClass }, hostAttributes), h("div", { key: '1e2d73b3a65189c29a34c1ce4473cce190f052c0', class: "pds-select" }, !this.hideLabel && (h("div", { key: '467c75d7232e4667975419a0dcad28231ca240a1', class: "pds-select__label-wrapper" }, h("label", { key: '9dd08c5c71a23c762f9d38fcec525a05ced7d48b', htmlFor: this.componentId }, h("span", { key: '94e5f054aa6e75e458f24c02ba9a6cda81f112d7', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), hasAction && this.renderAction())), h("select", { key: '18c626e10851041042ab4d6dfe700d49a9b3312b', "aria-describedby": assignDescription(this.componentId, this.isInvalid(), this.helperMessage, this.errorMessage), "aria-invalid": this.isInvalid() ? 'true' : undefined, "aria-label": this.hideLabel ? this.label : undefined, autocomplete: this.autocomplete || undefined, class: "pds-select__field", disabled: this.disabled, id: this.componentId, multiple: this.multiple, name: this.name, onBlur: this.onBlur, onChange: this.onSelectUpdate, onFocus: this.onFocus, onKeyDown: this.onKeyDown, part: "select", required: this.required, ref: (el) => (this.selectEl = el) }), h("div", { key: '08c6cee6b009d22b0ed70cc8231d3c2c8637099d', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, h("slot", { key: '2ebcb906f8816e3bf26d5e4f82f8ea2d9ca2256a', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && h("pds-icon", { key: '191f489efb78fc7066fc0b5a1f5da1f7cda446e8', "aria-hidden": "true", class: "pds-select__select-icon", icon: enlarge }))));
|
|
355
358
|
}
|
|
356
359
|
static get is() { return "pds-select"; }
|
|
357
360
|
static get encapsulation() { return "shadow"; }
|
|
@@ -441,7 +444,7 @@ export class PdsSelect {
|
|
|
441
444
|
"optional": false,
|
|
442
445
|
"docs": {
|
|
443
446
|
"tags": [],
|
|
444
|
-
"text": "Displays error message
|
|
447
|
+
"text": "Displays an error message below the select and marks the select as invalid, with or without `invalid`."
|
|
445
448
|
},
|
|
446
449
|
"getter": false,
|
|
447
450
|
"setter": false,
|
|
@@ -479,7 +482,7 @@ export class PdsSelect {
|
|
|
479
482
|
"optional": false,
|
|
480
483
|
"docs": {
|
|
481
484
|
"tags": [],
|
|
482
|
-
"text": "Displays
|
|
485
|
+
"text": "Displays a message or hint below the select."
|
|
483
486
|
},
|
|
484
487
|
"getter": false,
|
|
485
488
|
"setter": false,
|
|
@@ -638,7 +641,7 @@ export class PdsSelect {
|
|
|
638
641
|
"composed": true,
|
|
639
642
|
"docs": {
|
|
640
643
|
"tags": [],
|
|
641
|
-
"text": "Emitted when the select value
|
|
644
|
+
"text": "Emitted when the user changes the selection. `detail` is the native `change` event, so read the new value\nfrom the select's `value`: a string, or an array with `multiple`.\n\nThis event will not emit when programmatically setting the `value` property."
|
|
642
645
|
},
|
|
643
646
|
"complexType": {
|
|
644
647
|
"original": "InputEvent",
|
|
@@ -3,15 +3,34 @@
|
|
|
3
3
|
display: flex;
|
|
4
4
|
padding-block: var(--pine-dimension-xs);
|
|
5
5
|
padding-inline: var(--pine-dimension-md);
|
|
6
|
+
position: relative;
|
|
7
|
+
transition: box-shadow var(--pine-motion-duration-fast) var(--pine-motion-easing-out);
|
|
6
8
|
}
|
|
7
9
|
:host(.pds-sortable-item) .pds-sortable-item__actions {
|
|
8
10
|
margin-inline-start: auto;
|
|
9
11
|
padding-inline-start: var(--pine-dimension-md);
|
|
10
12
|
}
|
|
11
13
|
:host(.pds-sortable-item) .pds-sortable-item__handle {
|
|
14
|
+
border-radius: var(--pine-border-radius-sm);
|
|
12
15
|
line-height: 1;
|
|
13
16
|
margin-inline-end: var(--pine-dimension-md);
|
|
14
17
|
}
|
|
18
|
+
:host(.pds-sortable-item) .pds-sortable-item__handle:focus-visible {
|
|
19
|
+
outline: var(--pine-outline-focus);
|
|
20
|
+
outline-offset: var(--pine-border-width);
|
|
21
|
+
}
|
|
22
|
+
:host(.pds-sortable-item) .pds-sortable-item__handle--hidden {
|
|
23
|
+
clip-path: inset(50%);
|
|
24
|
+
height: 1px;
|
|
25
|
+
margin: 0;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
position: absolute;
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
width: 1px;
|
|
30
|
+
}
|
|
31
|
+
:host(.pds-sortable-item) .pds-sortable-item__handle--hidden:focus-visible {
|
|
32
|
+
outline: 0;
|
|
33
|
+
}
|
|
15
34
|
.pds-sortable--bordered :host(.pds-sortable-item):first-child {
|
|
16
35
|
border-start-end-radius: calc(var(--pine-dimension-xs) * 1.25);
|
|
17
36
|
border-start-start-radius: calc(var(--pine-dimension-xs) * 1.25);
|
|
@@ -50,6 +69,25 @@
|
|
|
50
69
|
color: var(--pine-color-info);
|
|
51
70
|
}
|
|
52
71
|
|
|
72
|
+
:host(.pds-sortable-item:has(> .pds-sortable-item__handle--hidden:focus-visible)) {
|
|
73
|
+
outline: var(--pine-outline-focus);
|
|
74
|
+
outline-offset: calc(var(--pine-border-width-thick) * -1);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:host(.pds-sortable-item--grabbed) {
|
|
78
|
+
background-color: var(--pine-color-background-container-hover);
|
|
79
|
+
box-shadow: var(--pine-box-shadow-400), inset 0 0 0 var(--pine-border-width-thick) var(--pine-color-border-active);
|
|
80
|
+
position: relative;
|
|
81
|
+
z-index: 1;
|
|
82
|
+
}
|
|
83
|
+
@media (forced-colors: active) {
|
|
84
|
+
:host(.pds-sortable-item--grabbed) {
|
|
85
|
+
border: var(--pine-border-width-thick) solid Highlight;
|
|
86
|
+
padding-block: calc(var(--pine-dimension-xs) - var(--pine-border-width-thick));
|
|
87
|
+
padding-inline: calc(var(--pine-dimension-md) - var(--pine-border-width-thick));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
53
91
|
:host(.pds-sortable-item--drag) {
|
|
54
92
|
background-color: var(--pine-color-background-container);
|
|
55
93
|
border-radius: 0;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { HostStylingKeeper } from "../../../utils/attributes";
|
|
3
|
+
import { formatMessage } from "../../../i18n";
|
|
4
|
+
import { sortableItemLabel } from "../sortable-label";
|
|
3
5
|
import { handle as handleIcon } from "@pine-ds/icons/icons";
|
|
6
|
+
const GRABBED_CLASS = 'pds-sortable-item--grabbed';
|
|
4
7
|
/**
|
|
5
|
-
* @slot sortable-item-actions - Content is placed within the `pds-sortable-item__actions` element as children. This slot is only rendered
|
|
8
|
+
* @slot sortable-item-actions - Content is placed within the `pds-sortable-item__actions` element as children. This slot is only rendered when `enable-actions` is set.
|
|
6
9
|
* @lightDom renders-markup
|
|
7
10
|
*/
|
|
8
11
|
export class PdsSortableItem {
|
|
@@ -14,7 +17,9 @@ export class PdsSortableItem {
|
|
|
14
17
|
*/
|
|
15
18
|
this.enableActions = false;
|
|
16
19
|
/**
|
|
17
|
-
* Determines whether
|
|
20
|
+
* Determines whether the reorder handle is shown. The handle itself renders whenever the list
|
|
21
|
+
* is reorderable, regardless of this prop; without it, the handle is visually hidden but still
|
|
22
|
+
* reachable from the keyboard.
|
|
18
23
|
* @defaultValue false
|
|
19
24
|
*/
|
|
20
25
|
this.showHandle = false;
|
|
@@ -47,8 +52,26 @@ export class PdsSortableItem {
|
|
|
47
52
|
}
|
|
48
53
|
}
|
|
49
54
|
render() {
|
|
50
|
-
this.
|
|
51
|
-
|
|
55
|
+
const sortable = this.sortableRef;
|
|
56
|
+
// In a list that can be reordered, the handle is what the keyboard reorders with. It's always
|
|
57
|
+
// rendered, and only hidden visually when `show-handle` is off, so every row has a named button.
|
|
58
|
+
const reorderable = typeof (sortable === null || sortable === void 0 ? void 0 : sortable.handleLabel) === 'string' && !sortable.disabled;
|
|
59
|
+
// `pds-sortable` sets the grabbed class and `aria-pressed` directly on this element and its
|
|
60
|
+
// handle, not through a prop -- read back whatever's there now rather than hardcoding the
|
|
61
|
+
// rest state, so a re-render for an unrelated reason (`handleLabel` changing, for one,
|
|
62
|
+
// `forceUpdate`s every row) carries the current grabbed state forward instead of resetting it.
|
|
63
|
+
const wasGrabbed = this.el.classList.contains(GRABBED_CLASS);
|
|
64
|
+
const hostClasses = {
|
|
65
|
+
'pds-sortable-item': true,
|
|
66
|
+
[GRABBED_CLASS]: wasGrabbed,
|
|
67
|
+
};
|
|
68
|
+
this.hostKeeper.record(hostClasses);
|
|
69
|
+
const existingHandle = this.el.querySelector('.pds-sortable-item__handle');
|
|
70
|
+
const wasPressed = (existingHandle === null || existingHandle === void 0 ? void 0 : existingHandle.getAttribute('aria-pressed')) === 'true';
|
|
71
|
+
return (h(Host, { key: '5fdef76101ce86c7769bb49bff9869246c3bdb32', class: hostClasses, id: this.componentId }, (this.showHandle || reorderable) && (h("div", { key: 'e54b5a0006b395dc67ff78c6a115e4e498cae096', class: {
|
|
72
|
+
'pds-sortable-item__handle': true,
|
|
73
|
+
'pds-sortable-item__handle--hidden': !this.showHandle,
|
|
74
|
+
}, role: reorderable ? 'button' : undefined, tabindex: reorderable ? '0' : undefined, "aria-label": reorderable ? formatMessage(sortable.handleLabel, { item: sortableItemLabel(this.el) }) : undefined, "aria-pressed": reorderable ? String(wasPressed) : undefined }, h("pds-icon", { key: 'e7099e03ea68c9f48c50d20868835081c4fdbc75', "aria-hidden": "true", icon: handleIcon }))), h("slot", { key: 'c75d20569c150da8d0698657db787aa6d27e3408' }), this.enableActions && (h("div", { key: '14281b2eaedfa57ff90342fb1dcbff48cd656242', class: "pds-sortable-item__actions" }, h("slot", { key: 'ec1f75b331d136a00fc39db9ab2cadd86a416e8d', name: "sortable-item-actions" })))));
|
|
52
75
|
}
|
|
53
76
|
static get is() { return "pds-sortable-item"; }
|
|
54
77
|
static get encapsulation() { return "scoped"; }
|
|
@@ -121,13 +144,32 @@ export class PdsSortableItem {
|
|
|
121
144
|
"name": "defaultValue",
|
|
122
145
|
"text": "false"
|
|
123
146
|
}],
|
|
124
|
-
"text": "Determines whether
|
|
147
|
+
"text": "Determines whether the reorder handle is shown. The handle itself renders whenever the list\nis reorderable, regardless of this prop; without it, the handle is visually hidden but still\nreachable from the keyboard."
|
|
125
148
|
},
|
|
126
149
|
"getter": false,
|
|
127
150
|
"setter": false,
|
|
128
151
|
"reflect": false,
|
|
129
152
|
"attribute": "show-handle",
|
|
130
153
|
"defaultValue": "false"
|
|
154
|
+
},
|
|
155
|
+
"itemLabel": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"mutable": false,
|
|
158
|
+
"complexType": {
|
|
159
|
+
"original": "string",
|
|
160
|
+
"resolved": "string",
|
|
161
|
+
"references": {}
|
|
162
|
+
},
|
|
163
|
+
"required": false,
|
|
164
|
+
"optional": true,
|
|
165
|
+
"docs": {
|
|
166
|
+
"tags": [],
|
|
167
|
+
"text": "Name of the item in its reorder handle's label and in the reorder announcements. Pass a translated string to localize it; defaults to the item's text content."
|
|
168
|
+
},
|
|
169
|
+
"getter": false,
|
|
170
|
+
"setter": false,
|
|
171
|
+
"reflect": false,
|
|
172
|
+
"attribute": "item-label"
|
|
131
173
|
}
|
|
132
174
|
};
|
|
133
175
|
}
|