@pine-ds/core 0.0.4 → 0.1.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/pds-accordion.d.ts +11 -0
- package/components/pds-accordion.js +67 -0
- package/components/pds-accordion.js.map +1 -0
- package/components/pds-avatar.js +1 -1
- package/components/pds-box.js +1 -1
- package/components/pds-button2.js +1 -1
- package/components/pds-checkbox2.js +1 -1
- package/components/pds-chip.js +1 -1
- package/components/pds-copytext.js +1 -1
- package/components/pds-divider.js +1 -1
- package/components/pds-image.js +2 -2
- package/components/pds-input.js +1 -1
- package/components/pds-link.js +1 -1
- package/components/pds-progress.js +1 -1
- package/components/pds-radio.js +1 -1
- package/components/pds-row.js +1 -1
- package/components/pds-sortable-item.js +1 -1
- package/components/pds-sortable.js +1 -1
- package/components/pds-switch.js +1 -1
- package/components/pds-tab.js +3 -3
- package/components/pds-table-body.js +1 -1
- package/components/pds-table-cell2.js +2 -2
- package/components/pds-table-head-cell2.js +2 -2
- 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-tabpanel.js +1 -1
- package/components/pds-tabs.js +1 -1
- package/components/pds-textarea.js +2 -2
- package/components/pds-tooltip.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pds-accordion.cjs.entry.js +42 -0
- package/dist/cjs/pds-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-avatar.cjs.entry.js +1 -1
- package/dist/cjs/pds-box.cjs.entry.js +1 -1
- package/dist/cjs/pds-button.cjs.entry.js +1 -1
- package/dist/cjs/pds-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/pds-chip.cjs.entry.js +1 -1
- package/dist/cjs/pds-copytext.cjs.entry.js +1 -1
- package/dist/cjs/pds-divider.cjs.entry.js +1 -1
- package/dist/cjs/pds-image.cjs.entry.js +2 -2
- package/dist/cjs/pds-input.cjs.entry.js +1 -1
- package/dist/cjs/pds-link.cjs.entry.js +1 -1
- package/dist/cjs/pds-progress.cjs.entry.js +1 -1
- package/dist/cjs/pds-radio.cjs.entry.js +1 -1
- package/dist/cjs/pds-row.cjs.entry.js +1 -1
- package/dist/cjs/pds-sortable-item.cjs.entry.js +1 -1
- package/dist/cjs/pds-sortable.cjs.entry.js +1 -1
- package/dist/cjs/pds-switch.cjs.entry.js +1 -1
- package/dist/cjs/pds-tab.cjs.entry.js +3 -3
- package/dist/cjs/pds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
- package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
- package/dist/cjs/pds-textarea.cjs.entry.js +2 -2
- package/dist/cjs/pds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/pine-core.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/pds-accordion/pds-accordion.css +55 -0
- package/dist/collection/components/pds-accordion/pds-accordion.js +93 -0
- package/dist/collection/components/pds-accordion/pds-accordion.js.map +1 -0
- package/dist/collection/components/pds-accordion/stories/pds-accordion.stories.js +34 -0
- package/dist/collection/components/pds-avatar/pds-avatar.js +1 -1
- package/dist/collection/components/pds-box/pds-box.js +1 -1
- package/dist/collection/components/pds-button/pds-button.js +1 -1
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +1 -1
- package/dist/collection/components/pds-chip/pds-chip.js +1 -1
- package/dist/collection/components/pds-copytext/pds-copytext.js +1 -1
- package/dist/collection/components/pds-divider/pds-divider.js +1 -1
- package/dist/collection/components/pds-image/pds-image.js +2 -2
- package/dist/collection/components/pds-input/pds-input.js +1 -1
- package/dist/collection/components/pds-link/pds-link.js +1 -1
- package/dist/collection/components/pds-progress/pds-progress.js +1 -1
- package/dist/collection/components/pds-radio/pds-radio.js +1 -1
- package/dist/collection/components/pds-row/pds-row.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
- package/dist/collection/components/pds-switch/pds-switch.js +1 -1
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
- package/dist/collection/components/pds-table/pds-table.js +1 -1
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
- package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
- package/dist/collection/components/pds-textarea/pds-textarea.js +2 -2
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
- package/dist/docs.json +98 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pds-accordion.entry.js +38 -0
- package/dist/esm/pds-accordion.entry.js.map +1 -0
- package/dist/esm/pds-avatar.entry.js +1 -1
- package/dist/esm/pds-box.entry.js +1 -1
- package/dist/esm/pds-button.entry.js +1 -1
- package/dist/esm/pds-checkbox_2.entry.js +3 -3
- package/dist/esm/pds-chip.entry.js +1 -1
- package/dist/esm/pds-copytext.entry.js +1 -1
- package/dist/esm/pds-divider.entry.js +1 -1
- package/dist/esm/pds-image.entry.js +2 -2
- package/dist/esm/pds-input.entry.js +1 -1
- package/dist/esm/pds-link.entry.js +1 -1
- package/dist/esm/pds-progress.entry.js +1 -1
- package/dist/esm/pds-radio.entry.js +1 -1
- package/dist/esm/pds-row.entry.js +1 -1
- package/dist/esm/pds-sortable-item.entry.js +1 -1
- package/dist/esm/pds-sortable.entry.js +1 -1
- package/dist/esm/pds-switch.entry.js +1 -1
- package/dist/esm/pds-tab.entry.js +3 -3
- package/dist/esm/pds-table-body.entry.js +1 -1
- package/dist/esm/pds-table-head-cell.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/pds-tabpanel.entry.js +1 -1
- package/dist/esm/pds-tabs.entry.js +1 -1
- package/dist/esm/pds-textarea.entry.js +2 -2
- package/dist/esm/pds-tooltip.entry.js +2 -2
- package/dist/esm/pine-core.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/pds-accordion.entry.js +2 -0
- package/dist/esm-es5/pds-accordion.entry.js.map +1 -0
- 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_2.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-divider.entry.js +1 -1
- package/dist/esm-es5/pds-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-progress.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-sortable-item.entry.js +1 -1
- package/dist/esm-es5/pds-sortable.entry.js +1 -1
- 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-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-textarea.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/pine-core.js.map +1 -1
- package/dist/pine-core/{p-c36795fd.entry.js → p-01866f1a.entry.js} +2 -2
- package/dist/pine-core/p-0223de0a.entry.js +2 -0
- package/dist/pine-core/p-0e6e1833.entry.js +2 -0
- package/dist/pine-core/{p-c743e545.entry.js.map → p-0e6e1833.entry.js.map} +1 -1
- package/dist/pine-core/{p-590b8bc3.system.entry.js → p-135ee6e2.system.entry.js} +2 -2
- package/dist/pine-core/{p-be00178d.entry.js → p-18ba9e23.entry.js} +2 -2
- package/dist/pine-core/{p-54d324c2.system.entry.js → p-1977bfef.system.entry.js} +2 -2
- package/dist/pine-core/{p-9b5cd6ab.entry.js → p-22017122.entry.js} +2 -2
- package/dist/pine-core/{p-9fe27345.system.entry.js → p-35817ea5.system.entry.js} +2 -2
- package/dist/pine-core/{p-dbe98ba2.system.entry.js → p-360d4f79.system.entry.js} +2 -2
- package/dist/pine-core/{p-5eaff61a.system.entry.js → p-3813ace7.system.entry.js} +2 -2
- package/dist/pine-core/{p-0305f8c8.entry.js → p-416b7bd0.entry.js} +2 -2
- package/dist/pine-core/{p-763e2f83.entry.js → p-42ac8791.entry.js} +2 -2
- package/dist/pine-core/{p-d94dd844.system.entry.js → p-49ab971c.system.entry.js} +2 -2
- package/dist/pine-core/{p-627d088d.entry.js → p-4e4221e7.entry.js} +2 -2
- package/dist/pine-core/{p-25ffc9e2.entry.js → p-53eef5cf.entry.js} +2 -2
- package/dist/pine-core/{p-f17edd95.entry.js → p-54f515b7.entry.js} +2 -2
- package/dist/pine-core/{p-7a7416d5.system.entry.js → p-58245cbe.system.entry.js} +2 -2
- package/dist/pine-core/{p-ad186d12.system.entry.js → p-6044a5e6.system.entry.js} +2 -2
- package/dist/pine-core/{p-462f2b14.entry.js → p-608b7117.entry.js} +2 -2
- package/dist/pine-core/{p-5af9b6e2.entry.js → p-6457ee90.entry.js} +2 -2
- package/dist/pine-core/{p-bdebf156.system.entry.js → p-66bdd195.system.entry.js} +2 -2
- package/dist/pine-core/{p-f2c6b33e.system.entry.js → p-67980c37.system.entry.js} +2 -2
- package/dist/pine-core/{p-8fe57bfa.entry.js → p-694b1551.entry.js} +2 -2
- package/dist/pine-core/{p-c5641077.entry.js → p-6cf3a95f.entry.js} +2 -2
- package/dist/pine-core/p-7080c3d8.system.entry.js +2 -0
- package/dist/pine-core/{p-b5b59894.system.entry.js → p-70aafb29.system.entry.js} +2 -2
- package/dist/pine-core/{p-25f4a2c1.entry.js → p-713203a1.entry.js} +2 -2
- package/dist/pine-core/{p-84c19af2.system.entry.js → p-7bb9c112.system.entry.js} +2 -2
- package/dist/pine-core/{p-57da3e93.system.entry.js → p-7dbf72d0.system.entry.js} +2 -2
- package/dist/pine-core/{p-a246e1d1.system.entry.js → p-7e77ef60.system.entry.js} +2 -2
- package/dist/pine-core/{p-0c37f840.system.entry.js → p-81c5ccc0.system.entry.js} +2 -2
- package/dist/pine-core/{p-72065c3a.system.entry.js → p-8e6e3903.system.entry.js} +2 -2
- package/dist/pine-core/p-90dc441e.entry.js +2 -0
- package/dist/pine-core/p-90dc441e.entry.js.map +1 -0
- package/dist/pine-core/{p-f198ef17.entry.js → p-925cd323.entry.js} +2 -2
- package/dist/pine-core/p-988c3c8e.system.entry.js +2 -0
- package/dist/pine-core/p-988c3c8e.system.entry.js.map +1 -0
- package/dist/pine-core/{p-36862fec.system.entry.js → p-99778b1f.system.entry.js} +2 -2
- package/dist/pine-core/{p-c76ace76.system.entry.js → p-9e986a25.system.entry.js} +2 -2
- package/dist/pine-core/{p-6c3a05cf.entry.js → p-a1fab6ca.entry.js} +2 -2
- package/dist/pine-core/{p-4abda138.system.entry.js → p-aa5d045c.system.entry.js} +2 -2
- package/dist/pine-core/{p-68e7924e.system.entry.js → p-b4fcd4c2.system.entry.js} +2 -2
- package/dist/pine-core/p-b6a4d813.system.js +1 -1
- package/dist/pine-core/p-b6a4d813.system.js.map +1 -1
- package/dist/pine-core/{p-a923b153.entry.js → p-b854a2b6.entry.js} +2 -2
- package/dist/pine-core/{p-59db2abd.system.entry.js → p-bde59444.system.entry.js} +2 -2
- package/dist/pine-core/{p-748df843.entry.js → p-c0773da6.entry.js} +2 -2
- package/dist/pine-core/{p-d833e66e.entry.js → p-c584ec61.entry.js} +2 -2
- package/dist/pine-core/{p-20266cb6.entry.js → p-cc79e06a.entry.js} +2 -2
- package/dist/pine-core/{p-1d55b43e.entry.js → p-d4e439f5.entry.js} +2 -2
- package/dist/pine-core/{p-5fd196d6.entry.js → p-d9dcf4b5.entry.js} +2 -2
- package/dist/pine-core/{p-85a97505.system.entry.js → p-de162d6f.system.entry.js} +2 -2
- package/dist/pine-core/{p-a090344d.entry.js → p-ee6381bd.entry.js} +2 -2
- package/dist/pine-core/{p-1e1f6bc4.system.entry.js → p-f56a956a.system.entry.js} +2 -2
- package/dist/pine-core/{p-f329268a.entry.js → p-f953fd02.entry.js} +2 -2
- package/dist/pine-core/{p-0dacd1cd.entry.js → p-fb80556c.entry.js} +2 -2
- package/dist/pine-core/{p-588cb0d6.system.entry.js → p-fd1136bd.system.entry.js} +2 -2
- package/dist/pine-core/{p-3fc7e481.system.entry.js → p-fd9e7deb.system.entry.js} +2 -2
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/pine-core/pine-core.esm.js.map +1 -1
- package/dist/types/components/pds-accordion/pds-accordion.d.ts +22 -0
- package/dist/types/components.d.ts +33 -0
- package/package.json +3 -3
- package/dist/pine-core/p-4c2fa718.entry.js +0 -2
- package/dist/pine-core/p-a3ad3496.system.entry.js +0 -2
- package/dist/pine-core/p-c743e545.entry.js +0 -2
- /package/dist/pine-core/{p-c36795fd.entry.js.map → p-01866f1a.entry.js.map} +0 -0
- /package/dist/pine-core/{p-4c2fa718.entry.js.map → p-0223de0a.entry.js.map} +0 -0
- /package/dist/pine-core/{p-590b8bc3.system.entry.js.map → p-135ee6e2.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-be00178d.entry.js.map → p-18ba9e23.entry.js.map} +0 -0
- /package/dist/pine-core/{p-54d324c2.system.entry.js.map → p-1977bfef.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9b5cd6ab.entry.js.map → p-22017122.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9fe27345.system.entry.js.map → p-35817ea5.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-dbe98ba2.system.entry.js.map → p-360d4f79.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5eaff61a.system.entry.js.map → p-3813ace7.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0305f8c8.entry.js.map → p-416b7bd0.entry.js.map} +0 -0
- /package/dist/pine-core/{p-763e2f83.entry.js.map → p-42ac8791.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d94dd844.system.entry.js.map → p-49ab971c.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-627d088d.entry.js.map → p-4e4221e7.entry.js.map} +0 -0
- /package/dist/pine-core/{p-25ffc9e2.entry.js.map → p-53eef5cf.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f17edd95.entry.js.map → p-54f515b7.entry.js.map} +0 -0
- /package/dist/pine-core/{p-7a7416d5.system.entry.js.map → p-58245cbe.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ad186d12.system.entry.js.map → p-6044a5e6.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-462f2b14.entry.js.map → p-608b7117.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5af9b6e2.entry.js.map → p-6457ee90.entry.js.map} +0 -0
- /package/dist/pine-core/{p-bdebf156.system.entry.js.map → p-66bdd195.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f2c6b33e.system.entry.js.map → p-67980c37.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8fe57bfa.entry.js.map → p-694b1551.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c5641077.entry.js.map → p-6cf3a95f.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a3ad3496.system.entry.js.map → p-7080c3d8.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b5b59894.system.entry.js.map → p-70aafb29.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-25f4a2c1.entry.js.map → p-713203a1.entry.js.map} +0 -0
- /package/dist/pine-core/{p-84c19af2.system.entry.js.map → p-7bb9c112.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-57da3e93.system.entry.js.map → p-7dbf72d0.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a246e1d1.system.entry.js.map → p-7e77ef60.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0c37f840.system.entry.js.map → p-81c5ccc0.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-72065c3a.system.entry.js.map → p-8e6e3903.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f198ef17.entry.js.map → p-925cd323.entry.js.map} +0 -0
- /package/dist/pine-core/{p-36862fec.system.entry.js.map → p-99778b1f.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c76ace76.system.entry.js.map → p-9e986a25.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-6c3a05cf.entry.js.map → p-a1fab6ca.entry.js.map} +0 -0
- /package/dist/pine-core/{p-4abda138.system.entry.js.map → p-aa5d045c.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-68e7924e.system.entry.js.map → p-b4fcd4c2.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a923b153.entry.js.map → p-b854a2b6.entry.js.map} +0 -0
- /package/dist/pine-core/{p-59db2abd.system.entry.js.map → p-bde59444.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-748df843.entry.js.map → p-c0773da6.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d833e66e.entry.js.map → p-c584ec61.entry.js.map} +0 -0
- /package/dist/pine-core/{p-20266cb6.entry.js.map → p-cc79e06a.entry.js.map} +0 -0
- /package/dist/pine-core/{p-1d55b43e.entry.js.map → p-d4e439f5.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5fd196d6.entry.js.map → p-d9dcf4b5.entry.js.map} +0 -0
- /package/dist/pine-core/{p-85a97505.system.entry.js.map → p-de162d6f.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a090344d.entry.js.map → p-ee6381bd.entry.js.map} +0 -0
- /package/dist/pine-core/{p-1e1f6bc4.system.entry.js.map → p-f56a956a.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f329268a.entry.js.map → p-f953fd02.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0dacd1cd.entry.js.map → p-fb80556c.entry.js.map} +0 -0
- /package/dist/pine-core/{p-588cb0d6.system.entry.js.map → p-fd1136bd.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3fc7e481.system.entry.js.map → p-fd9e7deb.system.entry.js.map} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface PdsAccordion extends Components.PdsAccordion, HTMLElement {}
|
|
4
|
+
export const PdsAccordion: {
|
|
5
|
+
prototype: PdsAccordion;
|
|
6
|
+
new (): PdsAccordion;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './pds-icon2.js';
|
|
3
|
+
|
|
4
|
+
const pdsAccordionCss = ":host{display:block}details{--border-radius:var(--pine-spacing-xs);--box-shadow-focus:0 0 0 4px var(--pine-color-primary-200);--color-content-background:var(--pine-base-color-white);--color-background-hover:var(--pine-color-neutral-grey-300);--color-font:var(--pine-color-neutral-charcoal-200);--color-font-active:var(--pine-color-neutral-charcoal-400);--color-font-hover:var(--pine-color-neutral-charcoal-300);--font-weight:var(--pine-font-weight-medium);--spacing-details-padding-inline:12px;--spacing-summary-padding-block:var(--pine-spacing-xxs);--spacing-summary-padding-inline-start:var(--pine-spacing-xs);--spacing-summary-padding-inline-end:var(--pine-spacing-xxs);border-radius:var(--border-radius);padding-inline:var(--spacing-details-padding-inline)}details[open]{background-color:var(--color-content-background)}details[open] summary{color:var(--color-font-active)}summary{border-radius:var(--border-radius);color:var(--color-font);font-weight:var(--font-weight);padding-block:var(--spacing-summary-padding-block);-webkit-padding-end:var(--spacing-summary-padding-inline-end);padding-inline-end:var(--spacing-summary-padding-inline-end);-webkit-padding-start:var(--spacing-summary-padding-inline-start);padding-inline-start:var(--spacing-summary-padding-inline-start);-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}summary::-webkit-details-marker{display:none}summary:hover{background:var(--color-background-hover);color:var(--color-font-hover);cursor:pointer}summary:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}summary pds-icon{-webkit-margin-start:auto;margin-inline-start:auto}";
|
|
5
|
+
const PdsAccordionStyle0 = pdsAccordionCss;
|
|
6
|
+
|
|
7
|
+
const PdsAccordion$1 = /*@__PURE__*/ proxyCustomElement(class PdsAccordion extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.__attachShadow();
|
|
12
|
+
this.handleToggle = () => {
|
|
13
|
+
this.isOpen = this.detailsEl.open;
|
|
14
|
+
};
|
|
15
|
+
this.getOpenAttribute = () => {
|
|
16
|
+
if (this.isOpen !== false) {
|
|
17
|
+
return { open: true };
|
|
18
|
+
}
|
|
19
|
+
return '';
|
|
20
|
+
};
|
|
21
|
+
this.componentId = undefined;
|
|
22
|
+
this.isOpen = false;
|
|
23
|
+
}
|
|
24
|
+
handleOpenState(newValue) {
|
|
25
|
+
this.isOpen = newValue;
|
|
26
|
+
}
|
|
27
|
+
componentDidLoad() {
|
|
28
|
+
this.detailsEl.addEventListener('toggle', this.handleToggle);
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return (h(Host, { key: 'e2e795c93ddd812acd5f9ac26546953d7172ba39', class: "pds-accordion", id: this.componentId }, h("details", Object.assign({ key: '772f09a0f28f03a0feffa7a6ea1fd0cbf0947c56' }, this.getOpenAttribute(), { ref: (el) => this.detailsEl = el }), h("summary", { key: 'f8987032a8e8468f9e8728ed673c26210fd0c2a2' }, h("slot", { key: '5dfcd343dfdc7b5eb6f75e75dff494aab0fbea36', name: "label" }, "Details"), h("pds-icon", { key: '2e6cd67ca003428c48b0c0545287b629918f243a', name: this.isOpen ? 'up-small' : 'down-small' })), h("div", { key: '508b2e5d33c4a83e6f569ba30ef042e5ffc01318', class: "pds-accordion__body" }, h("slot", { key: '13bc1ae447df49043efbbf631844add1245fbabe' })))));
|
|
32
|
+
}
|
|
33
|
+
static get watchers() { return {
|
|
34
|
+
"isOpen": ["handleOpenState"]
|
|
35
|
+
}; }
|
|
36
|
+
static get style() { return PdsAccordionStyle0; }
|
|
37
|
+
}, [1, "pds-accordion", {
|
|
38
|
+
"componentId": [1, "component-id"],
|
|
39
|
+
"isOpen": [1540, "open"]
|
|
40
|
+
}, undefined, {
|
|
41
|
+
"isOpen": ["handleOpenState"]
|
|
42
|
+
}]);
|
|
43
|
+
function defineCustomElement$1() {
|
|
44
|
+
if (typeof customElements === "undefined") {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const components = ["pds-accordion", "pds-icon"];
|
|
48
|
+
components.forEach(tagName => { switch (tagName) {
|
|
49
|
+
case "pds-accordion":
|
|
50
|
+
if (!customElements.get(tagName)) {
|
|
51
|
+
customElements.define(tagName, PdsAccordion$1);
|
|
52
|
+
}
|
|
53
|
+
break;
|
|
54
|
+
case "pds-icon":
|
|
55
|
+
if (!customElements.get(tagName)) {
|
|
56
|
+
defineCustomElement$2();
|
|
57
|
+
}
|
|
58
|
+
break;
|
|
59
|
+
} });
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const PdsAccordion = PdsAccordion$1;
|
|
63
|
+
const defineCustomElement = defineCustomElement$1;
|
|
64
|
+
|
|
65
|
+
export { PdsAccordion, defineCustomElement };
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=pds-accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"pds-accordion.js","mappings":";;;AAAA,MAAM,eAAe,GAAG,kpDAAkpD,CAAC;AAC3qD,2BAAe,eAAe;;MCUjBA,cAAY;;;;;QAwBf,iBAAY,GAAG;YACrB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;SACnC,CAAA;QAEO,qBAAgB,GAAG;YACzB,IAAI,IAAI,CAAC,MAAM,KAAK,KAAK,EAAE;gBACzB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;aACvB;YACD,OAAO,EAAE,CAAC;SACX,CAAA;;sBAhBoB,KAAK;;IAG1B,eAAe,CAAC,QAAiB;QAC/B,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC;KACxB;IAaD,gBAAgB;QACd,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;KAC9D;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,KAAK,EAAC,eAAe,EAAC,EAAE,EAAE,IAAI,CAAC,WAAW,IAC9C,gFAAa,IAAI,CAAC,gBAAgB,EAAE,IAAE,GAAG,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC,SAAS,GAAG,EAAwB,KAC1F,kEACE,6DAAM,IAAI,EAAC,OAAO,cAAe,EACjC,iEAAU,IAAI,EAAE,IAAI,CAAC,MAAM,GAAG,UAAU,GAAG,YAAY,GAAI,CACnD,EACV,4DAAK,KAAK,EAAC,qBAAqB,IAC9B,8DAAQ,CACJ,CACE,CACL,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsAccordion"],"sources":["src/components/pds-accordion/pds-accordion.scss?tag=pds-accordion&encapsulation=shadow","src/components/pds-accordion/pds-accordion.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\ndetails {\n --border-radius: var(--pine-spacing-xs);\n --box-shadow-focus: 0 0 0 4px var(--pine-color-primary-200);\n --color-content-background: var(--pine-base-color-white);\n --color-background-hover: var(--pine-color-neutral-grey-300);\n --color-font: var(--pine-color-neutral-charcoal-200);\n --color-font-active: var(--pine-color-neutral-charcoal-400);\n --color-font-hover: var(--pine-color-neutral-charcoal-300);\n --font-weight: var(--pine-font-weight-medium);\n --spacing-details-padding-inline: 12px;\n --spacing-summary-padding-block: var(--pine-spacing-xxs);\n --spacing-summary-padding-inline-start: var(--pine-spacing-xs);\n --spacing-summary-padding-inline-end: var(--pine-spacing-xxs);\n\n border-radius: var(--border-radius);\n padding-inline: var(--spacing-details-padding-inline)\n}\n\n/* stylelint-disable-next-line */\ndetails[open] {\n background-color: var(--color-content-background);\n\n summary {\n color: var(--color-font-active);\n }\n}\n\nsummary {\n border-radius: var(--border-radius);\n color: var(--color-font);\n font-weight: var(--font-weight);\n padding-block: var(--spacing-summary-padding-block);\n padding-inline-end: var(--spacing-summary-padding-inline-end);\n padding-inline-start: var(--spacing-summary-padding-inline-start);\n\n // Removes marker on Firefox/Chrome\n /* stylelint-disable-next-line */\n align-items: center;\n display: flex;\n\n // Removes marker on Safari\n &::-webkit-details-marker {\n display: none;\n }\n\n &:hover {\n background: var(--color-background-hover);\n color: var(--color-font-hover);\n cursor: pointer;\n }\n\n &:focus-visible {\n // outline: var(--pine-border-focus); Border radius for outline does not work in Safari\n box-shadow: var(--box-shadow-focus); // Remove when outline radius is supported in Safari\n outline: none;\n }\n\n pds-icon {\n margin-inline-start: auto;\n }\n}\n","import { Component, h, Host, Prop, Watch } from '@stencil/core';\n\n/**\n * @slot (default) - Accordion body content.\n * @slot label - Accordion trigger button content.\n */\n@Component({\n tag: 'pds-accordion',\n styleUrl: 'pds-accordion.scss',\n shadow: true,\n})\nexport class PdsAccordion {\n private detailsEl: HTMLDetailsElement;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n * @defaultValue null\n */\n @Prop() componentId: string;\n\n /**\n * Can be used to manually set the open state of the accordion.\n * @defaultValue false\n */\n @Prop({ \n attribute: 'open',\n mutable: true,\n reflect: true \n }) isOpen: boolean = false;\n\n @Watch('isOpen')\n handleOpenState(newValue: boolean) {\n this.isOpen = newValue;\n }\n\n private handleToggle = () => {\n this.isOpen = this.detailsEl.open;\n }\n\n private getOpenAttribute = () => {\n if (this.isOpen !== false) {\n return { open: true };\n }\n return '';\n }\n\n componentDidLoad() {\n this.detailsEl.addEventListener('toggle', this.handleToggle);\n }\n\n render() {\n return (\n <Host class=\"pds-accordion\" id={this.componentId}>\n <details {...this.getOpenAttribute()} ref={(el) => this.detailsEl = el as HTMLDetailsElement}>\n <summary>\n <slot name=\"label\">Details</slot>\n <pds-icon name={this.isOpen ? 'up-small' : 'down-small'} />\n </summary>\n <div class=\"pds-accordion__body\">\n <slot />\n </div>\n </details>\n </Host>\n );\n }\n}\n"],"version":3}
|
package/components/pds-avatar.js
CHANGED
|
@@ -60,7 +60,7 @@ const PdsAvatar$1 = /*@__PURE__*/ proxyCustomElement(class PdsAvatar extends HTM
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: '179b1d53b2250e1fab6807a324c474c2d02c8d43', id: this.componentId, class: Object.assign({}, this.classNames()) }, this.renderAvatar()));
|
|
64
64
|
}
|
|
65
65
|
static get style() { return PdsAvatarStyle0; }
|
|
66
66
|
}, [1, "pds-avatar", {
|
package/components/pds-box.js
CHANGED
|
@@ -69,7 +69,7 @@ const PdsBox$1 = /*@__PURE__*/ proxyCustomElement(class PdsBox extends HTMLEleme
|
|
|
69
69
|
this.sizeXl == undefined ? 'pds-box' : ''}
|
|
70
70
|
`;
|
|
71
71
|
const boxInlineStyles = Object.assign(Object.assign(Object.assign(Object.assign({}, (this.backgroundColor && { '--box-background-color': this.backgroundColor })), (this.borderColor && { '--box-border-color': this.borderColor })), (this.minHeight && { '--box-min-height': this.minHeight })), (this.minWidth && { '--box-min-width': this.minWidth }));
|
|
72
|
-
return (h(Host, { key: '
|
|
72
|
+
return (h(Host, { key: 'c04696c04b987f82aa03e23d41078ffa32ed6e78', class: boxClasses, style: boxInlineStyles }));
|
|
73
73
|
}
|
|
74
74
|
static get style() { return PdsBoxStyle0; }
|
|
75
75
|
}, [0, "pds-box", {
|
|
@@ -46,7 +46,7 @@ const PdsButton = /*@__PURE__*/ proxyCustomElement(class PdsButton extends HTMLE
|
|
|
46
46
|
return classNames.join(' ');
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '0f8f16b8e8d941481d66f1833a4a7e5402aab2bc', "aria-disabled": this.disabled ? 'true' : null, id: this.componentId, onClick: this.handleClick, variant: this.variant }, h("button", { key: 'c8b0a1f8b0f6c984477e2bb6cdb77226f8250ac3', class: this.classNames(), disabled: this.disabled, name: this.name, part: "button", type: this.type, value: this.value }, this.icon && this.variant !== 'disclosure' && h("pds-icon", { name: this.icon, part: "icon" }), h("slot", { key: '76310f327aad59ecd150261a186e256c52cf6251' }), this.variant === 'disclosure' && h("pds-icon", { name: "caret-down", part: "caret" }))));
|
|
50
50
|
}
|
|
51
51
|
get el() { return this; }
|
|
52
52
|
static get style() { return PdsButtonStyle0; }
|
|
@@ -48,7 +48,7 @@ const PdsCheckbox = /*@__PURE__*/ proxyCustomElement(class PdsCheckbox extends H
|
|
|
48
48
|
return classNames.join(' ');
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: 'df4d541eb43253bac6d9f0396d5af5c0a0181db0', class: this.classNames() }, h("input", { key: '59f4ff764cdf4fac9ff38a734b91cf31219f2a59', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, type: "checkbox", id: this.componentId, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleCheckboxChange }), h(PdsLabel, { key: '99da91ab0d67c72f29092a623164b0822ff56a66', htmlFor: this.componentId, text: this.label, classNames: this.labelHidden ? 'visually-hidden' : '' }), this.helperMessage &&
|
|
52
52
|
h("div", { class: 'pds-checkbox__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
53
53
|
h("div", { class: `pds-checkbox__message pds-checkbox__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, this.errorMessage)));
|
|
54
54
|
}
|
package/components/pds-chip.js
CHANGED
|
@@ -39,7 +39,7 @@ const PdsChip$1 = /*@__PURE__*/ proxyCustomElement(class PdsChip extends HTMLEle
|
|
|
39
39
|
return chipContent;
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '224fcbae613eb1a7a8ab5661582e06612aa3c491', class: this.classNames(), id: this.componentId }, this.setChipContent(), this.variant === 'tag' && (h("button", { class: "pds-chip__close", type: "button", onClick: this.handleCloseClick, "aria-label": "Remove" }, h("pds-icon", { name: "remove", size: "12px" })))));
|
|
43
43
|
}
|
|
44
44
|
static get style() { return PdsChipStyle0; }
|
|
45
45
|
}, [1, "pds-chip", {
|
|
@@ -59,7 +59,7 @@ const PdsCopytext$1 = /*@__PURE__*/ proxyCustomElement(class PdsCopytext extends
|
|
|
59
59
|
return classNames.join(' ');
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: '650ef9a2f68e604211c98721ef61e68a44a619b2', class: this.classNames(), id: this.componentId }, h("pds-button", { key: '3c4e3d7779e794c65115431ea93e6c321c5e8f83', type: "button", variant: "unstyled", onClick: this.handleClick }, h("span", { key: 'e755703bd191e440d1b10250027c1dfcf1340cbe' }, this.value), h("pds-icon", { key: '6fc35fd7fef1a98b9f248054a2927a1b006561d0', name: "copy", size: "16px" }))));
|
|
63
63
|
}
|
|
64
64
|
static get style() { return PdsCopytextStyle0; }
|
|
65
65
|
}, [1, "pds-copytext", {
|
|
@@ -24,7 +24,7 @@ const PdsDivider$1 = /*@__PURE__*/ proxyCustomElement(class PdsDivider extends H
|
|
|
24
24
|
return classNames.join(' ');
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: 'd5d42d70c2417e0fc801f87f8460557bb1756443', id: this.componentId }, h("hr", { key: '49554a46b6949d09adc4794b22441a1f76eb1d13', class: this.classNames() })));
|
|
28
28
|
}
|
|
29
29
|
static get style() { return PdsDividerStyle0; }
|
|
30
30
|
}, [1, "pds-divider", {
|
package/components/pds-image.js
CHANGED
|
@@ -18,9 +18,9 @@ const PdsImage$1 = /*@__PURE__*/ proxyCustomElement(class PdsImage extends HTMLE
|
|
|
18
18
|
this.width = undefined;
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '835f04e58f7a7f831575512bb4582fc22a563652', class: {
|
|
22
22
|
'pds-image': true,
|
|
23
|
-
}, id: this.componentId }, h("img", { key: '
|
|
23
|
+
}, id: this.componentId }, h("img", { key: 'd002c0ae968a6a4a8d965c9bbae905da31629d7f', alt: this.alt, height: this.height, loading: this.loading, sizes: this.sizes, src: this.src, srcset: this.srcset, width: this.width })));
|
|
24
24
|
}
|
|
25
25
|
static get style() { return PdsImageStyle0; }
|
|
26
26
|
}, [1, "pds-image", {
|
package/components/pds-input.js
CHANGED
|
@@ -31,7 +31,7 @@ const PdsInput$1 = /*@__PURE__*/ proxyCustomElement(class PdsInput extends HTMLE
|
|
|
31
31
|
this.value = undefined;
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'bb6e9f4cb7515c3b8fbbc583ba1c9ade05d8ae90', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: '960462be7a176c6b62412ce4b44af79f9b137a0c', class: "pds-input" }, h(PdsLabel, { key: 'beb8f1c8e8a1b4b692d2838abc99e427cc13c392', htmlFor: this.componentId, text: this.label }), h("input", { key: 'c69ceb5d687fb37b843e71e8aa9bad8b9f7bcaa8', class: "pds-input__field", "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, disabled: this.disabled, id: this.componentId, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, type: this.type, value: this.value, onInput: this.onInputEvent }), this.helperMessage &&
|
|
35
35
|
h("p", { class: "pds-input__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
36
36
|
h("p", { class: "pds-input__error-message", id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, this.errorMessage))));
|
|
37
37
|
}
|
package/components/pds-link.js
CHANGED
|
@@ -29,7 +29,7 @@ const PdsLink$1 = /*@__PURE__*/ proxyCustomElement(class PdsLink extends HTMLEle
|
|
|
29
29
|
return classNames.join(' ');
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h("a", { key: '
|
|
32
|
+
return (h("a", { key: 'cf71f4d333aa1adc5e23ad3d605e04951e10dca4', class: this.classNames(), href: this.href, id: this.componentId, target: this.external ? '_blank' : undefined }, h("slot", { key: '0ecbd6a838cb2f61fb34457c94b02b098e6bbd41' }, this.href), this.external &&
|
|
33
33
|
h("pds-icon", { icon: launch, size: this.fontSize })));
|
|
34
34
|
}
|
|
35
35
|
static get style() { return PdsLinkStyle0; }
|
|
@@ -16,7 +16,7 @@ const PdsProgress$1 = /*@__PURE__*/ proxyCustomElement(class PdsProgress extends
|
|
|
16
16
|
this.showPercent = false;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '68d38c1c9c0b21d20df22d9c9e21102f78143df7', class: this.animated ? { 'is-animated': this.animated } : '' }, h("div", { key: '2342ec7043319f3c9d6ee40b3d516523c40f8881', class: "pds-progress" }, h("label", { key: '56740d2f23e1cf0039751eac229b6c81234c45a8', class: "pds-progress__label", htmlFor: this.componentId }, this.label), h("progress", { key: 'b11e4117dae38cc8828623fbd1e25d666a5ec63c', id: this.componentId, max: "100", style: this.fillColor ? { '--progress-fill-color': this.fillColor } : {}, value: this.percent })), this.showPercent && h("div", { class: "pds-progress__percentage" }, this.percent, "%")));
|
|
20
20
|
}
|
|
21
21
|
static get style() { return PdsProgressStyle0; }
|
|
22
22
|
}, [1, "pds-progress", {
|
package/components/pds-radio.js
CHANGED
|
@@ -39,7 +39,7 @@ const PdsRadio$1 = /*@__PURE__*/ proxyCustomElement(class PdsRadio extends HTMLE
|
|
|
39
39
|
return classNames.join(' ');
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '1427cdb78f9e67d64f1d41fbbcd69f142568be54', class: this.classNames() }, h("input", { key: 'e657db2c4d043871913ba314adb0b1666001dc8e', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "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 }), h(PdsLabel, { key: 'c7a15d4d55f7a82f21754d5a5c711ae2b60b5cdc', htmlFor: this.componentId, text: this.label }), this.helperMessage &&
|
|
43
43
|
h("div", { class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
44
44
|
h("div", { class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, this.errorMessage)));
|
|
45
45
|
}
|
package/components/pds-row.js
CHANGED
|
@@ -38,7 +38,7 @@ const PdsRow$1 = /*@__PURE__*/ proxyCustomElement(class PdsRow extends HTMLEleme
|
|
|
38
38
|
})), (this.minHeight && {
|
|
39
39
|
'min-height': this.minHeight,
|
|
40
40
|
}));
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: 'a0661e2e13c93d93f8fd8a2f692adce3eac2b9f7', class: `pds-row ${rowClasses}`, style: rowInlineStyles }));
|
|
42
42
|
}
|
|
43
43
|
static get style() { return PdsRowStyle0; }
|
|
44
44
|
}, [0, "pds-row", {
|
|
@@ -13,7 +13,7 @@ const PdsSortableItem$1 = /*@__PURE__*/ proxyCustomElement(class PdsSortableItem
|
|
|
13
13
|
this.handle = false;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '0af9e3cba44c18a8ded0ed71337076ebf761a437', class: "pds-sortable-item", id: this.componentId }, this.handle && (h("div", { class: "pds-sortable-item__handle" }, h("pds-icon", { name: "handle" }))), h("slot", { key: '44365ade9216eacdf72723d4bbf18bac5e6ba734' }), this.enableActions && (h("div", { class: "pds-sortable-item__actions" }, h("slot", { name: "sortable-item-actions" })))));
|
|
17
17
|
}
|
|
18
18
|
static get style() { return PdsSortableItemStyle0; }
|
|
19
19
|
}, [6, "pds-sortable-item", {
|
|
@@ -2690,7 +2690,7 @@ const PdsSortable$1 = /*@__PURE__*/ proxyCustomElement(class PdsSortable extends
|
|
|
2690
2690
|
Sortable.create(this.el, sortableOptions);
|
|
2691
2691
|
}
|
|
2692
2692
|
render() {
|
|
2693
|
-
return (h(Host, { key: '
|
|
2693
|
+
return (h(Host, { key: 'ec0e4e8ab9f84b3163160f23cfe15796b1c8ca79', class: this.classNames(), id: this.componentId }, h("slot", { key: '9c3f9cbc3b0cdd50bc57d0f4f2a6231d1f2f9d2e' })));
|
|
2694
2694
|
}
|
|
2695
2695
|
get el() { return this; }
|
|
2696
2696
|
static get style() { return PdsSortableStyle0; }
|
package/components/pds-switch.js
CHANGED
|
@@ -41,7 +41,7 @@ const PdsSwitch$1 = /*@__PURE__*/ proxyCustomElement(class PdsSwitch extends HTM
|
|
|
41
41
|
this.value = undefined;
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: 'cdb6f34b8eb4a40fa9477b820461276ea07b9346', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, h("input", { key: 'cdb0f78abe53f7c84da5aa75e878d40180821e44', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, checked: this.checked, class: "pds-switch__input", disabled: this.disabled, id: this.componentId, name: this.name ? this.name : this.componentId, onChange: this.onSwitchUpdate, required: this.required, type: this.type, value: this.value }), h(PdsLabel, { key: '37d5f8106e84f5820f0e27b1a2d656a6090293a3', classNames: "pds-switch__label", htmlFor: this.componentId, text: this.label }), this.helperMessage &&
|
|
45
45
|
h("div", { class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
46
46
|
h("div", { class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, this.errorMessage)));
|
|
47
47
|
}
|
package/components/pds-tab.js
CHANGED
|
@@ -18,9 +18,9 @@ const PdsTab$1 = /*@__PURE__*/ proxyCustomElement(class PdsTab extends HTMLEleme
|
|
|
18
18
|
this.pdsTabClick.emit([index, parentComponentId]);
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
const availabilityTabEdgeInlineStart = (h("span", { key: '
|
|
22
|
-
const availabilityTabEdgeInlineEnd = (h("span", { key: '
|
|
23
|
-
return (h(Host, { key: '
|
|
21
|
+
const availabilityTabEdgeInlineStart = (h("span", { key: '08277d7cbe950dd18f41bd95c90f7c7389833311', class: "pds-tab-edge", role: "presentation" }));
|
|
22
|
+
const availabilityTabEdgeInlineEnd = (h("span", { key: '02d2d1acbc122a56bd01c53af8ff0f42b46cb3db', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
|
|
23
|
+
return (h(Host, { key: 'ae62d16ff39d937d3d635892a904870c436d1747', variant: this.variant, slot: "tabs", index: this.index }, h("button", { key: '45221be5eb829f64c5a1f19de600d68da9c27ed2', role: "tab", id: this.parentComponentId + "__" + this.name, "aria-controls": this.parentComponentId + "__" + this.name + "-panel", tabindex: this.selected ? "0" : "-1", "aria-selected": this.selected ? "true" : "false", class: this.selected ? "pds-tab is-active" : "pds-tab", onClick: this.onTabClick.bind(this, this.index, this.parentComponentId) }, this.variant === "availability" && availabilityTabEdgeInlineStart, this.variant === "availability" && availabilityTabEdgeInlineEnd, h("div", { key: '3e529a0253e4ecbfad3ab47760fa6d58771a58b8', class: "pds-tab__content" }, h("slot", { key: '4491e7c5442c386623e389ac247c5a8a6a6db254' })))));
|
|
24
24
|
}
|
|
25
25
|
get el() { return this; }
|
|
26
26
|
static get style() { return PdsTabStyle0; }
|
|
@@ -10,7 +10,7 @@ const PdsTableBody$1 = /*@__PURE__*/ proxyCustomElement(class PdsTableBody exten
|
|
|
10
10
|
this.__attachShadow();
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '8d71f826ae509e6ca5ab06016c3343036840af88', role: "rowgroup" }, h("slot", { key: 'b34bf96e2dc5232585dc3a28bbd81f5eafa42748' })));
|
|
14
14
|
}
|
|
15
15
|
static get style() { return PdsTableBodyStyle0; }
|
|
16
16
|
}, [1, "pds-table-body"]);
|
|
@@ -41,11 +41,11 @@ const PdsTableCell = /*@__PURE__*/ proxyCustomElement(class PdsTableCell extends
|
|
|
41
41
|
return classNames.join(' ');
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: '71ff527047eaafcf9b9c57a6aa96634e4a887f0b', class: this.classNames(), role: "gridcell", style: this.tableRef &&
|
|
45
45
|
this.tableRef.fixedColumn &&
|
|
46
46
|
this.tableRef.selectable
|
|
47
47
|
? { '--fixed-cell-position': '40px' }
|
|
48
|
-
: {} }, h("slot", { key: '
|
|
48
|
+
: {} }, h("slot", { key: 'b62c595da7fbf8795e90c67c3d50b9f5e7449067' })));
|
|
49
49
|
}
|
|
50
50
|
get hostElement() { return this; }
|
|
51
51
|
static get style() { return PdsTableCellStyle0; }
|
|
@@ -58,11 +58,11 @@ const PdsTableHeadCell = /*@__PURE__*/ proxyCustomElement(class PdsTableHeadCell
|
|
|
58
58
|
return classNames.join(' ');
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: 'de6a3a9f17d49206d61755cf49902ca414982ad3', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, style: this.tableRef &&
|
|
62
62
|
this.tableRef.fixedColumn &&
|
|
63
63
|
this.tableRef.selectable
|
|
64
64
|
? { '--fixed-cell-position': '40px' }
|
|
65
|
-
: {} }, h("slot", { key: '
|
|
65
|
+
: {} }, h("slot", { key: 'c46427a01cd95972cb97fd244e4caf348bdefe03' }), this.sortable && (h("pds-icon", { name: this.sortingDirection === 'asc' ? 'up-small' : 'down-small' }))));
|
|
66
66
|
}
|
|
67
67
|
get hostElement() { return this; }
|
|
68
68
|
static get style() { return PdsTableHeadCellStyle0; }
|
|
@@ -19,7 +19,7 @@ const PdsTableHead$1 = /*@__PURE__*/ proxyCustomElement(class PdsTableHead exten
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '3fc715433db735a23fa49fd37553a8f430af78bc', role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-head-cell", { part: this.tableRef.fixedColumn ? 'checkbox-cell' : '' })), h("slot", { key: 'f24a1ebc93b6718aaefbf9006d7fd89e43eb557c' })));
|
|
23
23
|
}
|
|
24
24
|
get hostElement() { return this; }
|
|
25
25
|
static get style() { return PdsTableHeadStyle0; }
|
|
@@ -39,7 +39,7 @@ const PdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(class PdsTableRow extends
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '6eb4558d3c5970174833e11c74b8243f549e3c9a', class: this.classNames(), role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-cell", { part: this.tableRef.fixedColumn ? 'checkbox-cell' : '', class: this.tableRef.selectable ? 'has-checkbox' : '' }, h("pds-checkbox", { componentId: this.generateUniqueId(), onClick: this.handleCheckboxClick, label: "Select Row", labelHidden: true, checked: this.isSelected }))), h("slot", { key: 'd2ee3546bfe11f36278887b6261a0c5bca91202f' })));
|
|
43
43
|
}
|
|
44
44
|
get hostElement() { return this; }
|
|
45
45
|
static get style() { return PdsTableRowStyle0; }
|
package/components/pds-table.js
CHANGED
|
@@ -65,7 +65,7 @@ const PdsTable$1 = /*@__PURE__*/ proxyCustomElement(class PdsTable extends HTMLE
|
|
|
65
65
|
this.sortingDirection = direction;
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: '61e4788551b8e01ce7e5d0e96869b742157a9f2b', class: this.classNames(), id: this.componentId, role: "grid", selectable: this.selectable }, h("slot", { key: 'bab0e40123fe8bc257221bbd1a2b2f6076a6c691' })));
|
|
69
69
|
}
|
|
70
70
|
get el() { return this; }
|
|
71
71
|
static get style() { return PdsTableStyle0; }
|
|
@@ -13,7 +13,7 @@ const PdsTabpanel$1 = /*@__PURE__*/ proxyCustomElement(class PdsTabpanel extends
|
|
|
13
13
|
this.selected = false;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'e38cf8aa09d76ce8e971d4e64f635fd2ac237aad', slot: "tabpanels" }, h("div", { key: '316151ef0e305ecba207d2ea6d171fcb0c28b539', role: "tabpanel", id: this.parentComponentId + "__" + this.name + '-panel', tabindex: "0", "aria-labelledby": this.parentComponentId + "__" + this.name, class: this.selected ? "pds-tabpanel is-active" : "pds-tabpanel" }, h("slot", { key: '4214b2d070c6964f7d3ae41b1ed3d6713aaddf11' }))));
|
|
17
17
|
}
|
|
18
18
|
get el() { return this; }
|
|
19
19
|
static get style() { return PdsTabpanelStyle0; }
|
package/components/pds-tabs.js
CHANGED
|
@@ -86,7 +86,7 @@ const PdsTabs$1 = /*@__PURE__*/ proxyCustomElement(class PdsTabs extends HTMLEle
|
|
|
86
86
|
this.passPropsToChildren();
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: 'e6d5ba53ccd3f58d0e63ddee1a3f395c6f15c841', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, h("div", { key: 'b66c6f29bd3612c94130de2e44ca33e46facf401', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel }, h("slot", { key: 'eeaa4bacc8ae08964a106fed26af7c3927b83df7', name: "tabs" })), h("slot", { key: 'f6d0b358f7387a850e1f3db93eaf32cc7723b7a2', name: "tabpanels" })));
|
|
90
90
|
}
|
|
91
91
|
get el() { return this; }
|
|
92
92
|
static get style() { return PdsTabsStyle0; }
|
|
@@ -39,8 +39,8 @@ const PdsTextarea$1 = /*@__PURE__*/ proxyCustomElement(class PdsTextarea extends
|
|
|
39
39
|
return classNames.join(' ');
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
43
|
-
h(PdsLabel, { htmlFor: this.componentId, text: this.label }), h("textarea", { key: '
|
|
42
|
+
return (h(Host, { key: '741dcb258f9992f943e898b4f8ac569046f40a73', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: 'cb678d3e24cec028b7220b4d087e82ce24e26205', class: "pds-textarea" }, this.label &&
|
|
43
|
+
h(PdsLabel, { htmlFor: this.componentId, text: this.label }), h("textarea", { key: '667cec0eb152e45a01f87ca64865c816afe5b67b', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onChange: this.onTextareaChange }, this.value), this.helperMessage &&
|
|
44
44
|
h("p", { class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
|
|
45
45
|
h("p", { "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, this.errorMessage))));
|
|
46
46
|
}
|
|
@@ -130,13 +130,13 @@ const PdsTooltip$1 = /*@__PURE__*/ proxyCustomElement(class PdsTooltip extends H
|
|
|
130
130
|
this.opened = false;
|
|
131
131
|
}
|
|
132
132
|
render() {
|
|
133
|
-
return (h(Host, { key: '
|
|
133
|
+
return (h(Host, { key: 'b4b6ca5fbf3a5b99b4fe74d4b874c81f51d46e8d', onMouseEnter: this.handleShow, onMouseLeave: this.handleHide, onFocusin: this.handleShow, onFocusout: this.handleHide }, h("div", { key: '234af23d5c082cbaf02c3f4026d094e19514520e', class: `
|
|
134
134
|
pds-tooltip
|
|
135
135
|
pds-tooltip--${this.placement}
|
|
136
136
|
${this.htmlContent ? 'pds-tooltip--has-html-content' : ''}
|
|
137
137
|
${this.opened ? 'pds-tooltip--is-open' : ''}
|
|
138
138
|
${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}
|
|
139
|
-
` }, h("span", { key: '
|
|
139
|
+
` }, h("span", { key: '8636e6ec54ca42b7a96683b2a97f26ee4994ce75', "aria-describedby": this.componentId, class: "pds-tooltip__trigger" }, h("slot", { key: '915856a37e16dd9a5d19afec7111d90f3a1e1d0d' })), h("div", { key: '0e50c1c3559cfc529da2fc67a8b248e63ad8f75b', class: "pds-tooltip__content", "aria-hidden": this.opened ? 'false' : 'true', "aria-live": this.opened ? 'polite' : 'off', id: this.componentId, ref: (el) => (this.contentEl = el), role: "tooltip" }, h("slot", { key: 'dafafd2a343b10ed140eb5bd325d3b17a3dc062a', name: "content" }), this.content))));
|
|
140
140
|
}
|
|
141
141
|
get el() { return this; }
|
|
142
142
|
static get watchers() { return {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -6,7 +6,7 @@ const index = require('./index-c18b5a7b.js');
|
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
9
|
-
return index.bootstrapLazy([["pds-copytext.cjs",[[1,"pds-copytext",{"border":[516],"componentId":[1,"component-id"],"fullWidth":[4,"full-width"],"truncate":[4],"value":[1]}]]],["pds-table-head.cjs",[[1,"pds-table-head"]]],["pds-table-row.cjs",[[1,"pds-table-row",{"isSelected":[32]}]]],["pds-avatar.cjs",[[1,"pds-avatar",{"alt":[1],"badge":[4],"componentId":[1,"component-id"],"dropdown":[4],"image":[1],"size":[513],"variant":[513]}]]],["pds-chip.cjs",[[1,"pds-chip",{"componentId":[1,"component-id"],"sentiment":[1],"dot":[4],"label":[1],"large":[4],"variant":[1]}]]],["pds-link.cjs",[[1,"pds-link",{"componentId":[1,"component-id"],"external":[4],"variant":[1],"fontSize":[1,"font-size"],"href":[1]}]]],["pds-sortable-item.cjs",[[6,"pds-sortable-item",{"enableActions":[4,"enable-actions"],"componentId":[1,"component-id"],"handle":[4]}]]],["pds-box.cjs",[[0,"pds-box",{"alignItems":[1,"align-items"],"auto":[4],"backgroundColor":[1,"background-color"],"border":[4],"borderColor":[1,"border-color"],"borderRadius":[1,"border-radius"],"direction":[1],"display":[1],"fit":[4],"gap":[1],"flex":[1],"justifyContent":[1,"justify-content"],"minHeight":[1,"min-height"],"minWidth":[1,"min-width"],"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"padding":[1],"shadow":[1],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]}]]],["pds-divider.cjs",[[1,"pds-divider",{"componentId":[1,"component-id"],"offset":[1],"vertical":[4]}]]],["pds-image.cjs",[[1,"pds-image",{"alt":[1],"componentId":[1,"component-id"],"height":[2],"loading":[1],"sizes":[1],"src":[1],"srcset":[1],"width":[2]}]]],["pds-input.cjs",[[1,"pds-input",{"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[4],"label":[1],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"type":[1],"value":[1025]}]]],["pds-progress.cjs",[[1,"pds-progress",{"animated":[4],"componentId":[1,"component-id"],"fillColor":[1,"fill-color"],"label":[1],"percent":[2],"showPercent":[4,"show-percent"]}]]],["pds-radio.cjs",[[2,"pds-radio",{"checked":[4],"disabled":[4],"errorMessage":[1,"error-message"],"invalid":[4],"componentId":[1,"component-id"],"label":[1],"helperMessage":[1,"helper-message"],"name":[1],"required":[4],"value":[1]}]]],["pds-row.cjs",[[0,"pds-row",{"alignItems":[1,"align-items"],"border":[4],"colGap":[1,"col-gap"],"componentId":[1,"component-id"],"justifyContent":[1,"justify-content"],"minHeight":[1,"min-height"],"noWrap":[4,"no-wrap"]}]]],["pds-sortable.cjs",[[6,"pds-sortable",{"border":[516],"componentId":[1,"component-id"],"dividers":[516],"handleType":[1,"handle-type"]}]]],["pds-switch.cjs",[[1,"pds-switch",{"componentId":[1,"component-id"],"checked":[4],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[4],"label":[1],"name":[1],"required":[4],"type":[1],"value":[1]}]]],["pds-tab.cjs",[[4,"pds-tab",{"name":[1],"parentComponentId":[1,"parent-component-id"],"variant":[1],"index":[2],"selected":[4]}]]],["pds-table.cjs",[[1,"pds-table",{"compact":[4],"componentId":[1,"component-id"],"responsive":[4],"fixedColumn":[4,"fixed-column"],"selectable":[4],"sortingColumn":[32],"sortingDirection":[32]},[[0,"pdsTableSort","handleTableSort"]]]]],["pds-table-body.cjs",[[1,"pds-table-body"]]],["pds-tabpanel.cjs",[[4,"pds-tabpanel",{"name":[1],"parentComponentId":[1,"parent-component-id"],"variant":[1],"selected":[1028]}]]],["pds-tabs.cjs",[[1,"pds-tabs",{"tablistLabel":[1,"tablist-label"],"componentId":[1,"component-id"],"variant":[1],"activeTabName":[1025,"active-tab-name"],"activeTabIndex":[1026,"active-tab-index"]},[[16,"pdsTabClick","tabClickHandler"],[0,"keydown","handleKeyDown"]]]]],["pds-textarea.cjs",[[1,"pds-textarea",{"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[1028],"label":[1],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1025]}]]],["pds-tooltip.cjs",[[1,"pds-tooltip",{"content":[1],"componentId":[1,"component-id"],"hasArrow":[4,"has-arrow"],"htmlContent":[4,"html-content"],"placement":[513],"opened":[1540],"isOpen":[32],"showTooltip":[64],"hideTooltip":[64]},null,{"opened":["handleOpenToggle"]}]]],["pds-icon.cjs",[[1,"pds-icon",{"color":[1],"icon":[8],"name":[513],"size":[513],"src":[1],"ariaLabel":[32],"isVisible":[32],"svgContent":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"]}]]],["pds-button.cjs",[[1,"pds-button",{"componentId":[1,"component-id"],"disabled":[4],"icon":[1],"name":[1],"value":[1],"type":[1],"variant":[1]}]]],["pds-table-head-cell.cjs",[[1,"pds-table-head-cell",{"sortable":[4],"sortingDirection":[32],"tableScrolling":[32]}]]],["pds-checkbox_2.cjs",[[1,"pds-checkbox",{"checked":[4],"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"indeterminate":[4],"invalid":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1]}],[1,"pds-table-cell",{"truncate":[4],"tableScrolling":[32]}]]]], options);
|
|
9
|
+
return index.bootstrapLazy([["pds-copytext.cjs",[[1,"pds-copytext",{"border":[516],"componentId":[1,"component-id"],"fullWidth":[4,"full-width"],"truncate":[4],"value":[1]}]]],["pds-table-head.cjs",[[1,"pds-table-head"]]],["pds-table-row.cjs",[[1,"pds-table-row",{"isSelected":[32]}]]],["pds-accordion.cjs",[[1,"pds-accordion",{"componentId":[1,"component-id"],"isOpen":[1540,"open"]},null,{"isOpen":["handleOpenState"]}]]],["pds-avatar.cjs",[[1,"pds-avatar",{"alt":[1],"badge":[4],"componentId":[1,"component-id"],"dropdown":[4],"image":[1],"size":[513],"variant":[513]}]]],["pds-chip.cjs",[[1,"pds-chip",{"componentId":[1,"component-id"],"sentiment":[1],"dot":[4],"label":[1],"large":[4],"variant":[1]}]]],["pds-link.cjs",[[1,"pds-link",{"componentId":[1,"component-id"],"external":[4],"variant":[1],"fontSize":[1,"font-size"],"href":[1]}]]],["pds-sortable-item.cjs",[[6,"pds-sortable-item",{"enableActions":[4,"enable-actions"],"componentId":[1,"component-id"],"handle":[4]}]]],["pds-box.cjs",[[0,"pds-box",{"alignItems":[1,"align-items"],"auto":[4],"backgroundColor":[1,"background-color"],"border":[4],"borderColor":[1,"border-color"],"borderRadius":[1,"border-radius"],"direction":[1],"display":[1],"fit":[4],"gap":[1],"flex":[1],"justifyContent":[1,"justify-content"],"minHeight":[1,"min-height"],"minWidth":[1,"min-width"],"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"padding":[1],"shadow":[1],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]}]]],["pds-divider.cjs",[[1,"pds-divider",{"componentId":[1,"component-id"],"offset":[1],"vertical":[4]}]]],["pds-image.cjs",[[1,"pds-image",{"alt":[1],"componentId":[1,"component-id"],"height":[2],"loading":[1],"sizes":[1],"src":[1],"srcset":[1],"width":[2]}]]],["pds-input.cjs",[[1,"pds-input",{"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[4],"label":[1],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"type":[1],"value":[1025]}]]],["pds-progress.cjs",[[1,"pds-progress",{"animated":[4],"componentId":[1,"component-id"],"fillColor":[1,"fill-color"],"label":[1],"percent":[2],"showPercent":[4,"show-percent"]}]]],["pds-radio.cjs",[[2,"pds-radio",{"checked":[4],"disabled":[4],"errorMessage":[1,"error-message"],"invalid":[4],"componentId":[1,"component-id"],"label":[1],"helperMessage":[1,"helper-message"],"name":[1],"required":[4],"value":[1]}]]],["pds-row.cjs",[[0,"pds-row",{"alignItems":[1,"align-items"],"border":[4],"colGap":[1,"col-gap"],"componentId":[1,"component-id"],"justifyContent":[1,"justify-content"],"minHeight":[1,"min-height"],"noWrap":[4,"no-wrap"]}]]],["pds-sortable.cjs",[[6,"pds-sortable",{"border":[516],"componentId":[1,"component-id"],"dividers":[516],"handleType":[1,"handle-type"]}]]],["pds-switch.cjs",[[1,"pds-switch",{"componentId":[1,"component-id"],"checked":[4],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[4],"label":[1],"name":[1],"required":[4],"type":[1],"value":[1]}]]],["pds-tab.cjs",[[4,"pds-tab",{"name":[1],"parentComponentId":[1,"parent-component-id"],"variant":[1],"index":[2],"selected":[4]}]]],["pds-table.cjs",[[1,"pds-table",{"compact":[4],"componentId":[1,"component-id"],"responsive":[4],"fixedColumn":[4,"fixed-column"],"selectable":[4],"sortingColumn":[32],"sortingDirection":[32]},[[0,"pdsTableSort","handleTableSort"]]]]],["pds-table-body.cjs",[[1,"pds-table-body"]]],["pds-tabpanel.cjs",[[4,"pds-tabpanel",{"name":[1],"parentComponentId":[1,"parent-component-id"],"variant":[1],"selected":[1028]}]]],["pds-tabs.cjs",[[1,"pds-tabs",{"tablistLabel":[1,"tablist-label"],"componentId":[1,"component-id"],"variant":[1],"activeTabName":[1025,"active-tab-name"],"activeTabIndex":[1026,"active-tab-index"]},[[16,"pdsTabClick","tabClickHandler"],[0,"keydown","handleKeyDown"]]]]],["pds-textarea.cjs",[[1,"pds-textarea",{"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[1028],"label":[1],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1025]}]]],["pds-tooltip.cjs",[[1,"pds-tooltip",{"content":[1],"componentId":[1,"component-id"],"hasArrow":[4,"has-arrow"],"htmlContent":[4,"html-content"],"placement":[513],"opened":[1540],"isOpen":[32],"showTooltip":[64],"hideTooltip":[64]},null,{"opened":["handleOpenToggle"]}]]],["pds-icon.cjs",[[1,"pds-icon",{"color":[1],"icon":[8],"name":[513],"size":[513],"src":[1],"ariaLabel":[32],"isVisible":[32],"svgContent":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"]}]]],["pds-button.cjs",[[1,"pds-button",{"componentId":[1,"component-id"],"disabled":[4],"icon":[1],"name":[1],"value":[1],"type":[1],"variant":[1]}]]],["pds-table-head-cell.cjs",[[1,"pds-table-head-cell",{"sortable":[4],"sortingDirection":[32],"tableScrolling":[32]}]]],["pds-checkbox_2.cjs",[[1,"pds-checkbox",{"checked":[4],"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"indeterminate":[4],"invalid":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1]}],[1,"pds-table-cell",{"truncate":[4],"tableScrolling":[32]}]]]], options);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
exports.setNonce = index.setNonce;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-c18b5a7b.js');
|
|
6
|
+
|
|
7
|
+
const pdsAccordionCss = ":host{display:block}details{--border-radius:var(--pine-spacing-xs);--box-shadow-focus:0 0 0 4px var(--pine-color-primary-200);--color-content-background:var(--pine-base-color-white);--color-background-hover:var(--pine-color-neutral-grey-300);--color-font:var(--pine-color-neutral-charcoal-200);--color-font-active:var(--pine-color-neutral-charcoal-400);--color-font-hover:var(--pine-color-neutral-charcoal-300);--font-weight:var(--pine-font-weight-medium);--spacing-details-padding-inline:12px;--spacing-summary-padding-block:var(--pine-spacing-xxs);--spacing-summary-padding-inline-start:var(--pine-spacing-xs);--spacing-summary-padding-inline-end:var(--pine-spacing-xxs);border-radius:var(--border-radius);padding-inline:var(--spacing-details-padding-inline)}details[open]{background-color:var(--color-content-background)}details[open] summary{color:var(--color-font-active)}summary{border-radius:var(--border-radius);color:var(--color-font);font-weight:var(--font-weight);padding-block:var(--spacing-summary-padding-block);-webkit-padding-end:var(--spacing-summary-padding-inline-end);padding-inline-end:var(--spacing-summary-padding-inline-end);-webkit-padding-start:var(--spacing-summary-padding-inline-start);padding-inline-start:var(--spacing-summary-padding-inline-start);-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}summary::-webkit-details-marker{display:none}summary:hover{background:var(--color-background-hover);color:var(--color-font-hover);cursor:pointer}summary:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}summary pds-icon{-webkit-margin-start:auto;margin-inline-start:auto}";
|
|
8
|
+
const PdsAccordionStyle0 = pdsAccordionCss;
|
|
9
|
+
|
|
10
|
+
const PdsAccordion = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.handleToggle = () => {
|
|
14
|
+
this.isOpen = this.detailsEl.open;
|
|
15
|
+
};
|
|
16
|
+
this.getOpenAttribute = () => {
|
|
17
|
+
if (this.isOpen !== false) {
|
|
18
|
+
return { open: true };
|
|
19
|
+
}
|
|
20
|
+
return '';
|
|
21
|
+
};
|
|
22
|
+
this.componentId = undefined;
|
|
23
|
+
this.isOpen = false;
|
|
24
|
+
}
|
|
25
|
+
handleOpenState(newValue) {
|
|
26
|
+
this.isOpen = newValue;
|
|
27
|
+
}
|
|
28
|
+
componentDidLoad() {
|
|
29
|
+
this.detailsEl.addEventListener('toggle', this.handleToggle);
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return (index.h(index.Host, { key: 'e2e795c93ddd812acd5f9ac26546953d7172ba39', class: "pds-accordion", id: this.componentId }, index.h("details", Object.assign({ key: '772f09a0f28f03a0feffa7a6ea1fd0cbf0947c56' }, this.getOpenAttribute(), { ref: (el) => this.detailsEl = el }), index.h("summary", { key: 'f8987032a8e8468f9e8728ed673c26210fd0c2a2' }, index.h("slot", { key: '5dfcd343dfdc7b5eb6f75e75dff494aab0fbea36', name: "label" }, "Details"), index.h("pds-icon", { key: '2e6cd67ca003428c48b0c0545287b629918f243a', name: this.isOpen ? 'up-small' : 'down-small' })), index.h("div", { key: '508b2e5d33c4a83e6f569ba30ef042e5ffc01318', class: "pds-accordion__body" }, index.h("slot", { key: '13bc1ae447df49043efbbf631844add1245fbabe' })))));
|
|
33
|
+
}
|
|
34
|
+
static get watchers() { return {
|
|
35
|
+
"isOpen": ["handleOpenState"]
|
|
36
|
+
}; }
|
|
37
|
+
};
|
|
38
|
+
PdsAccordion.style = PdsAccordionStyle0;
|
|
39
|
+
|
|
40
|
+
exports.pds_accordion = PdsAccordion;
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=pds-accordion.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"pds-accordion.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,kpDAAkpD,CAAC;AAC3qD,2BAAe,eAAe;;MCUjB,YAAY;;;QAwBf,iBAAY,GAAG;YACrB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;SACnC,CAAA;QAEO,qBAAgB,GAAG;YACzB,IAAI,IAAI,CAAC,MAAM,KAAK,KAAK,EAAE;gBACzB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;aACvB;YACD,OAAO,EAAE,CAAC;SACX,CAAA;;sBAhBoB,KAAK;;IAG1B,eAAe,CAAC,QAAiB;QAC/B,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC;KACxB;IAaD,gBAAgB;QACd,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;KAC9D;IAED,MAAM;QACJ,QACEA,QAACC,UAAI,qDAAC,KAAK,EAAC,eAAe,EAAC,EAAE,EAAE,IAAI,CAAC,WAAW,IAC9CD,sFAAa,IAAI,CAAC,gBAAgB,EAAE,IAAE,GAAG,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC,SAAS,GAAG,EAAwB,KAC1FA,wEACEA,mEAAM,IAAI,EAAC,OAAO,cAAe,EACjCA,uEAAU,IAAI,EAAE,IAAI,CAAC,MAAM,GAAG,UAAU,GAAG,YAAY,GAAI,CACnD,EACVA,kEAAK,KAAK,EAAC,qBAAqB,IAC9BA,oEAAQ,CACJ,CACE,CACL,EACP;KACH;;;;;;;;;","names":["h","Host"],"sources":["src/components/pds-accordion/pds-accordion.scss?tag=pds-accordion&encapsulation=shadow","src/components/pds-accordion/pds-accordion.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\ndetails {\n --border-radius: var(--pine-spacing-xs);\n --box-shadow-focus: 0 0 0 4px var(--pine-color-primary-200);\n --color-content-background: var(--pine-base-color-white);\n --color-background-hover: var(--pine-color-neutral-grey-300);\n --color-font: var(--pine-color-neutral-charcoal-200);\n --color-font-active: var(--pine-color-neutral-charcoal-400);\n --color-font-hover: var(--pine-color-neutral-charcoal-300);\n --font-weight: var(--pine-font-weight-medium);\n --spacing-details-padding-inline: 12px;\n --spacing-summary-padding-block: var(--pine-spacing-xxs);\n --spacing-summary-padding-inline-start: var(--pine-spacing-xs);\n --spacing-summary-padding-inline-end: var(--pine-spacing-xxs);\n\n border-radius: var(--border-radius);\n padding-inline: var(--spacing-details-padding-inline)\n}\n\n/* stylelint-disable-next-line */\ndetails[open] {\n background-color: var(--color-content-background);\n\n summary {\n color: var(--color-font-active);\n }\n}\n\nsummary {\n border-radius: var(--border-radius);\n color: var(--color-font);\n font-weight: var(--font-weight);\n padding-block: var(--spacing-summary-padding-block);\n padding-inline-end: var(--spacing-summary-padding-inline-end);\n padding-inline-start: var(--spacing-summary-padding-inline-start);\n\n // Removes marker on Firefox/Chrome\n /* stylelint-disable-next-line */\n align-items: center;\n display: flex;\n\n // Removes marker on Safari\n &::-webkit-details-marker {\n display: none;\n }\n\n &:hover {\n background: var(--color-background-hover);\n color: var(--color-font-hover);\n cursor: pointer;\n }\n\n &:focus-visible {\n // outline: var(--pine-border-focus); Border radius for outline does not work in Safari\n box-shadow: var(--box-shadow-focus); // Remove when outline radius is supported in Safari\n outline: none;\n }\n\n pds-icon {\n margin-inline-start: auto;\n }\n}\n","import { Component, h, Host, Prop, Watch } from '@stencil/core';\n\n/**\n * @slot (default) - Accordion body content.\n * @slot label - Accordion trigger button content.\n */\n@Component({\n tag: 'pds-accordion',\n styleUrl: 'pds-accordion.scss',\n shadow: true,\n})\nexport class PdsAccordion {\n private detailsEl: HTMLDetailsElement;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n * @defaultValue null\n */\n @Prop() componentId: string;\n\n /**\n * Can be used to manually set the open state of the accordion.\n * @defaultValue false\n */\n @Prop({ \n attribute: 'open',\n mutable: true,\n reflect: true \n }) isOpen: boolean = false;\n\n @Watch('isOpen')\n handleOpenState(newValue: boolean) {\n this.isOpen = newValue;\n }\n\n private handleToggle = () => {\n this.isOpen = this.detailsEl.open;\n }\n\n private getOpenAttribute = () => {\n if (this.isOpen !== false) {\n return { open: true };\n }\n return '';\n }\n\n componentDidLoad() {\n this.detailsEl.addEventListener('toggle', this.handleToggle);\n }\n\n render() {\n return (\n <Host class=\"pds-accordion\" id={this.componentId}>\n <details {...this.getOpenAttribute()} ref={(el) => this.detailsEl = el as HTMLDetailsElement}>\n <summary>\n <slot name=\"label\">Details</slot>\n <pds-icon name={this.isOpen ? 'up-small' : 'down-small'} />\n </summary>\n <div class=\"pds-accordion__body\">\n <slot />\n </div>\n </details>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -61,7 +61,7 @@ const PdsAvatar = class {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (index.h(index.Host, { key: '
|
|
64
|
+
return (index.h(index.Host, { key: '179b1d53b2250e1fab6807a324c474c2d02c8d43', id: this.componentId, class: Object.assign({}, this.classNames()) }, this.renderAvatar()));
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
PdsAvatar.style = PdsAvatarStyle0;
|
|
@@ -72,7 +72,7 @@ const PdsBox = class {
|
|
|
72
72
|
this.sizeXl == undefined ? 'pds-box' : ''}
|
|
73
73
|
`;
|
|
74
74
|
const boxInlineStyles = Object.assign(Object.assign(Object.assign(Object.assign({}, (this.backgroundColor && { '--box-background-color': this.backgroundColor })), (this.borderColor && { '--box-border-color': this.borderColor })), (this.minHeight && { '--box-min-height': this.minHeight })), (this.minWidth && { '--box-min-width': this.minWidth }));
|
|
75
|
-
return (index.h(index.Host, { key: '
|
|
75
|
+
return (index.h(index.Host, { key: 'c04696c04b987f82aa03e23d41078ffa32ed6e78', class: boxClasses, style: boxInlineStyles }));
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
PdsBox.style = PdsBoxStyle0;
|
|
@@ -47,7 +47,7 @@ const PdsButton = class {
|
|
|
47
47
|
return classNames.join(' ');
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (index.h(index.Host, { key: '
|
|
50
|
+
return (index.h(index.Host, { key: '0f8f16b8e8d941481d66f1833a4a7e5402aab2bc', "aria-disabled": this.disabled ? 'true' : null, id: this.componentId, onClick: this.handleClick, variant: this.variant }, index.h("button", { key: 'c8b0a1f8b0f6c984477e2bb6cdb77226f8250ac3', class: this.classNames(), disabled: this.disabled, name: this.name, part: "button", type: this.type, value: this.value }, this.icon && this.variant !== 'disclosure' && index.h("pds-icon", { name: this.icon, part: "icon" }), index.h("slot", { key: '76310f327aad59ecd150261a186e256c52cf6251' }), this.variant === 'disclosure' && index.h("pds-icon", { name: "caret-down", part: "caret" }))));
|
|
51
51
|
}
|
|
52
52
|
get el() { return index.getElement(this); }
|
|
53
53
|
};
|