@pine-ds/core 3.8.1 → 3.8.2
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-box2.js +2 -2
- package/components/pds-box2.js.map +1 -1
- package/components/pds-progress.js +1 -1
- package/components/pds-progress.js.map +1 -1
- package/components/pds-radio.js +34 -7
- package/components/pds-radio.js.map +1 -1
- package/components/pds-row.js +19 -1
- package/components/pds-row.js.map +1 -1
- package/components/pds-select.js +1 -1
- package/components/pds-sortable-item.js +1 -1
- package/components/pds-sortable.js +1 -1
- package/components/pds-switch.js +3 -3
- 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-tabpanel.js +1 -1
- package/components/pds-tabs.js +1 -1
- package/components/pds-text2.js +1 -1
- package/components/pds-textarea.js +4 -4
- package/components/pds-toast.js +3 -3
- package/components/pds-tooltip.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pds-box.cjs.entry.js +2 -2
- package/dist/cjs/pds-box.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-box.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-progress.cjs.entry.js +1 -1
- package/dist/cjs/pds-progress.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-progress.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-radio.cjs.entry.js +30 -5
- package/dist/cjs/pds-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-radio.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-row.cjs.entry.js +19 -1
- package/dist/cjs/pds-row.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-row.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-select.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 +3 -3
- 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-cell.cjs.entry.js +2 -2
- 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-tabpanel.cjs.entry.js +1 -1
- package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
- package/dist/cjs/pds-text.cjs.entry.js +1 -1
- package/dist/cjs/pds-textarea.cjs.entry.js +4 -4
- package/dist/cjs/pds-toast.cjs.entry.js +3 -3
- package/dist/cjs/pds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/pine-core.cjs.js +1 -1
- package/dist/collection/components/pds-box/pds-box.css +2740 -40
- package/dist/collection/components/pds-box/pds-box.js +241 -241
- package/dist/collection/components/pds-box/pds-box.js.map +1 -1
- package/dist/collection/components/pds-progress/pds-progress.css +2 -2
- package/dist/collection/components/pds-radio/pds-radio.css +145 -3
- package/dist/collection/components/pds-radio/pds-radio.js +62 -5
- package/dist/collection/components/pds-radio/pds-radio.js.map +1 -1
- package/dist/collection/components/pds-radio/stories/pds-radio.stories.js +37 -0
- package/dist/collection/components/pds-row/pds-row.js +31 -13
- package/dist/collection/components/pds-row/pds-row.js.map +1 -1
- package/dist/collection/components/pds-select/pds-select.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
- package/dist/collection/components/pds-switch/pds-switch.js +3 -3
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +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-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-text/pds-text.js +1 -1
- package/dist/collection/components/pds-textarea/pds-textarea.js +4 -4
- package/dist/collection/components/pds-toast/pds-toast.js +3 -3
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/docs.json +6764 -2180
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pds-box.entry.js +2 -2
- package/dist/esm/pds-box.entry.js.map +1 -1
- package/dist/esm/pds-progress.entry.js +1 -1
- package/dist/esm/pds-progress.entry.js.map +1 -1
- package/dist/esm/pds-radio.entry.js +31 -6
- package/dist/esm/pds-radio.entry.js.map +1 -1
- package/dist/esm/pds-row.entry.js +19 -1
- package/dist/esm/pds-row.entry.js.map +1 -1
- package/dist/esm/pds-select.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 +3 -3
- package/dist/esm/pds-tab.entry.js +3 -3
- package/dist/esm/pds-table-body.entry.js +1 -1
- package/dist/esm/pds-table-cell.entry.js +2 -2
- 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-tabpanel.entry.js +1 -1
- package/dist/esm/pds-tabs.entry.js +1 -1
- package/dist/esm/pds-text.entry.js +1 -1
- package/dist/esm/pds-textarea.entry.js +4 -4
- package/dist/esm/pds-toast.entry.js +3 -3
- 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/pds-box.entry.js +1 -1
- package/dist/esm-es5/pds-box.entry.js.map +1 -1
- package/dist/esm-es5/pds-progress.entry.js +1 -1
- package/dist/esm-es5/pds-progress.entry.js.map +1 -1
- package/dist/esm-es5/pds-radio.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js.map +1 -1
- package/dist/esm-es5/pds-row.entry.js +1 -1
- package/dist/esm-es5/pds-row.entry.js.map +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 +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-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-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/pine-core/p-00f6f3af.system.entry.js +2 -0
- package/dist/pine-core/p-00f6f3af.system.entry.js.map +1 -0
- package/dist/pine-core/p-04ad9d2c.system.entry.js +2 -0
- package/dist/pine-core/p-04ad9d2c.system.entry.js.map +1 -0
- package/dist/pine-core/p-0b593535.system.entry.js +2 -0
- package/dist/pine-core/p-1039e8e9.entry.js +2 -0
- package/dist/pine-core/{p-a2708028.entry.js.map → p-1039e8e9.entry.js.map} +1 -1
- package/dist/pine-core/{p-73a2e028.system.entry.js → p-18179981.system.entry.js} +2 -2
- package/dist/pine-core/p-18179981.system.entry.js.map +1 -0
- package/dist/pine-core/{p-bac9fcfa.entry.js → p-1a7cd7a6.entry.js} +2 -2
- package/dist/pine-core/p-2c407961.entry.js +2 -0
- package/dist/pine-core/p-2c407961.entry.js.map +1 -0
- package/dist/pine-core/{p-94183716.entry.js → p-332338ee.entry.js} +2 -2
- package/dist/pine-core/{p-e5adbf74.system.entry.js → p-3cc92094.system.entry.js} +2 -2
- package/dist/pine-core/{p-a3785977.entry.js → p-41abb654.entry.js} +2 -2
- package/dist/pine-core/{p-ae4ec5cf.system.entry.js → p-4802f8de.system.entry.js} +2 -2
- package/dist/pine-core/{p-61a25ab2.entry.js → p-4bc02df0.entry.js} +2 -2
- package/dist/pine-core/{p-f6d0bd39.entry.js → p-4c6ec7c4.entry.js} +2 -2
- package/dist/pine-core/{p-8f69dd71.system.entry.js → p-4ef17b95.system.entry.js} +2 -2
- package/dist/pine-core/{p-55d06d0a.system.entry.js → p-544fea4c.system.entry.js} +2 -2
- package/dist/pine-core/{p-00346c62.system.entry.js → p-6d48604a.system.entry.js} +2 -2
- package/dist/pine-core/{p-449ebe39.system.entry.js → p-7792f47d.system.entry.js} +2 -2
- package/dist/pine-core/{p-75187352.system.entry.js → p-7fa6cf39.system.entry.js} +2 -2
- package/dist/pine-core/{p-d4d22aee.entry.js → p-81972d0f.entry.js} +2 -2
- package/dist/pine-core/p-8b3f4c31.entry.js +2 -0
- package/dist/pine-core/{p-41e2fe3a.entry.js → p-8ff41ba8.entry.js} +2 -2
- package/dist/pine-core/{p-8b5fc4b4.system.entry.js → p-90e83476.system.entry.js} +2 -2
- package/dist/pine-core/{p-c3579585.system.entry.js → p-97299c83.system.entry.js} +2 -2
- package/dist/pine-core/p-972a511a.entry.js +2 -0
- package/dist/pine-core/p-972a511a.entry.js.map +1 -0
- package/dist/pine-core/{p-a2cb65df.entry.js → p-9ac84e63.entry.js} +2 -2
- package/dist/pine-core/{p-2fb6f9d5.entry.js → p-9c1bfa68.entry.js} +2 -2
- package/dist/pine-core/p-9c1bfa68.entry.js.map +1 -0
- package/dist/pine-core/{p-3dce3bc0.system.entry.js → p-9fbb9f0e.system.entry.js} +2 -2
- package/dist/pine-core/{p-yaM1kuaC.system.js.map → p-B8JDvOCM.system.js.map} +1 -1
- package/dist/pine-core/{p-DtdXdmNp.system.js.map → p-BDK6YCRb.system.js.map} +1 -1
- package/dist/pine-core/{p-CJNB_wrl.system.js.map → p-BJ3oNLWN.system.js.map} +1 -1
- package/dist/pine-core/p-BPjnTOEL.system.js +1 -1
- package/dist/pine-core/p-BbhWs2I3.system.js.map +1 -0
- package/dist/pine-core/p-CEUtKiTx.system.js.map +1 -0
- package/dist/pine-core/{p-DN3VK2yy.system.js.map → p-CTkQ9Pq-.system.js.map} +1 -1
- package/dist/pine-core/{p-iazk4jjL.system.js.map → p-CdcQ02yR.system.js.map} +1 -1
- package/dist/pine-core/{p-Cxlv_2hD.system.js.map → p-CfyzuJNE.system.js.map} +1 -1
- package/dist/pine-core/p-CyFXZIZs.system.js.map +1 -0
- package/dist/pine-core/p-CypP0PZf.system.js.map +1 -0
- package/dist/pine-core/{p-BVDuy7iI.system.js.map → p-DExobiBX.system.js.map} +1 -1
- package/dist/pine-core/{p-C3iAHQC6.system.js.map → p-DJ7iTbji.system.js.map} +1 -1
- package/dist/pine-core/{p-Ctdx1tCG.system.js.map → p-DiWDsjtE.system.js.map} +1 -1
- package/dist/pine-core/{p-DpemOPFJ.system.js.map → p-DpBO6epv.system.js.map} +1 -1
- package/dist/pine-core/{p-DfrSuf6X.system.js.map → p-DsyFbeEi.system.js.map} +1 -1
- package/dist/pine-core/{p-D0foS5EP.system.js.map → p-K3LH4gRE.system.js.map} +1 -1
- package/dist/pine-core/{p-1b9d4482.entry.js → p-ae2d59cd.entry.js} +2 -2
- package/dist/pine-core/{p-f92d7570.system.entry.js → p-b8127114.system.entry.js} +2 -2
- package/dist/pine-core/{p-2054b5cb.system.entry.js → p-b9e12535.system.entry.js} +2 -2
- package/dist/pine-core/p-bc2530d7.entry.js +2 -0
- package/dist/pine-core/{p-6ed297cb.entry.js → p-c09c8fa7.entry.js} +2 -2
- package/dist/pine-core/{p-DpzRSULT.system.js.map → p-ch9PI3Vl.system.js.map} +1 -1
- package/dist/pine-core/p-d61f3ab0.system.entry.js +2 -0
- package/dist/pine-core/p-d61f3ab0.system.entry.js.map +1 -0
- package/dist/pine-core/{p-d69f0f51.system.entry.js → p-da1fb45d.system.entry.js} +2 -2
- package/dist/pine-core/{p-9cf2b7a6.entry.js → p-e18c3044.entry.js} +2 -2
- package/dist/pine-core/p-e692908e.entry.js +2 -0
- package/dist/pine-core/p-e692908e.entry.js.map +1 -0
- package/dist/pine-core/{p-2597bc59.system.entry.js → p-ed724664.system.entry.js} +2 -2
- package/dist/pine-core/{p-e34c1224.system.entry.js → p-ed7bea99.system.entry.js} +2 -2
- package/dist/pine-core/{p-1b932ee3.entry.js → p-f8e1545e.entry.js} +2 -2
- package/dist/pine-core/{p-79422986.entry.js → p-fe60ee09.entry.js} +2 -2
- package/dist/pine-core/{p-BIjeWHX_.system.js.map → p-hop4Cgg5.system.js.map} +1 -1
- package/dist/pine-core/{p-DOqVoXeA.system.js.map → p-qQVNUF7F.system.js.map} +1 -1
- package/dist/pine-core/{p-C1KChp5Q.system.js.map → p-rnM09DN4.system.js.map} +1 -1
- package/dist/pine-core/pds-box.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-progress.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-radio.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-row.entry.esm.js.map +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/types/components/pds-box/pds-box.d.ts +61 -61
- package/dist/types/components/pds-radio/pds-radio.d.ts +14 -1
- package/dist/types/components/pds-row/pds-row.d.ts +4 -4
- package/dist/types/components.d.ts +139 -129
- package/dist/types/utils/types.d.ts +1 -1
- package/hydrate/index.js +88 -39
- package/hydrate/index.mjs +88 -39
- package/package.json +2 -2
- package/dist/pine-core/p-25cf2860.system.entry.js +0 -2
- package/dist/pine-core/p-25cf2860.system.entry.js.map +0 -1
- package/dist/pine-core/p-2fb6f9d5.entry.js.map +0 -1
- package/dist/pine-core/p-39648ce2.entry.js +0 -2
- package/dist/pine-core/p-39648ce2.entry.js.map +0 -1
- package/dist/pine-core/p-708e963c.system.entry.js +0 -2
- package/dist/pine-core/p-708e963c.system.entry.js.map +0 -1
- package/dist/pine-core/p-73a2e028.system.entry.js.map +0 -1
- package/dist/pine-core/p-786967e8.entry.js +0 -2
- package/dist/pine-core/p-875d5d5a.system.entry.js +0 -2
- package/dist/pine-core/p-BJjdD3yf.system.js.map +0 -1
- package/dist/pine-core/p-CnPN6prI.system.js.map +0 -1
- package/dist/pine-core/p-D7B3vOdC.system.js.map +0 -1
- package/dist/pine-core/p-HHZU8rBT.system.js.map +0 -1
- package/dist/pine-core/p-a2708028.entry.js +0 -2
- package/dist/pine-core/p-a645818a.entry.js +0 -2
- package/dist/pine-core/p-acd87a10.entry.js +0 -2
- package/dist/pine-core/p-acd87a10.entry.js.map +0 -1
- package/dist/pine-core/p-bc2fecd4.system.entry.js +0 -2
- package/dist/pine-core/p-bc2fecd4.system.entry.js.map +0 -1
- package/dist/pine-core/p-be5ef841.entry.js +0 -2
- package/dist/pine-core/p-be5ef841.entry.js.map +0 -1
- /package/dist/pine-core/{p-875d5d5a.system.entry.js.map → p-0b593535.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-bac9fcfa.entry.js.map → p-1a7cd7a6.entry.js.map} +0 -0
- /package/dist/pine-core/{p-94183716.entry.js.map → p-332338ee.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e5adbf74.system.entry.js.map → p-3cc92094.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a3785977.entry.js.map → p-41abb654.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ae4ec5cf.system.entry.js.map → p-4802f8de.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-61a25ab2.entry.js.map → p-4bc02df0.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f6d0bd39.entry.js.map → p-4c6ec7c4.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8f69dd71.system.entry.js.map → p-4ef17b95.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-55d06d0a.system.entry.js.map → p-544fea4c.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-00346c62.system.entry.js.map → p-6d48604a.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-449ebe39.system.entry.js.map → p-7792f47d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-75187352.system.entry.js.map → p-7fa6cf39.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d4d22aee.entry.js.map → p-81972d0f.entry.js.map} +0 -0
- /package/dist/pine-core/{p-786967e8.entry.js.map → p-8b3f4c31.entry.js.map} +0 -0
- /package/dist/pine-core/{p-41e2fe3a.entry.js.map → p-8ff41ba8.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8b5fc4b4.system.entry.js.map → p-90e83476.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c3579585.system.entry.js.map → p-97299c83.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a2cb65df.entry.js.map → p-9ac84e63.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3dce3bc0.system.entry.js.map → p-9fbb9f0e.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-1b9d4482.entry.js.map → p-ae2d59cd.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f92d7570.system.entry.js.map → p-b8127114.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-2054b5cb.system.entry.js.map → p-b9e12535.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a645818a.entry.js.map → p-bc2530d7.entry.js.map} +0 -0
- /package/dist/pine-core/{p-6ed297cb.entry.js.map → p-c09c8fa7.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d69f0f51.system.entry.js.map → p-da1fb45d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9cf2b7a6.entry.js.map → p-e18c3044.entry.js.map} +0 -0
- /package/dist/pine-core/{p-2597bc59.system.entry.js.map → p-ed724664.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e34c1224.system.entry.js.map → p-ed7bea99.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-1b932ee3.entry.js.map → p-f8e1545e.entry.js.map} +0 -0
- /package/dist/pine-core/{p-79422986.entry.js.map → p-fe60ee09.entry.js.map} +0 -0
|
@@ -6,6 +6,7 @@ export default {
|
|
|
6
6
|
args: {
|
|
7
7
|
checked: false,
|
|
8
8
|
disabled: false,
|
|
9
|
+
hasBorder: false,
|
|
9
10
|
invalid: false,
|
|
10
11
|
hideLabel: false,
|
|
11
12
|
required: false,
|
|
@@ -28,6 +29,7 @@ const BaseTemplate = (args) =>
|
|
|
28
29
|
?checked=${args.checked}
|
|
29
30
|
?disabled=${args.disabled}
|
|
30
31
|
error-message=${args.errorMessage}
|
|
32
|
+
?has-border=${args.hasBorder}
|
|
31
33
|
helper-message=${args.helperMessage}
|
|
32
34
|
?hide-label=${args.hideLabel}
|
|
33
35
|
name=${args.name}
|
|
@@ -71,3 +73,38 @@ Invalid.args = {
|
|
|
71
73
|
label: 'Label text',
|
|
72
74
|
invalid: true,
|
|
73
75
|
};
|
|
76
|
+
|
|
77
|
+
export const WithBorder = BaseTemplate.bind();
|
|
78
|
+
WithBorder.args = {
|
|
79
|
+
componentId: 'with-border',
|
|
80
|
+
label: 'Label text',
|
|
81
|
+
hasBorder: true,
|
|
82
|
+
helperMessage: 'This radio has a border for better visual separation',
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const ImageTemplate = (args) =>
|
|
86
|
+
html` <pds-radio
|
|
87
|
+
component-id=${args.componentId}
|
|
88
|
+
label=${args.label}
|
|
89
|
+
?checked=${args.checked}
|
|
90
|
+
?disabled=${args.disabled}
|
|
91
|
+
error-message=${args.errorMessage}
|
|
92
|
+
?has-border=${args.hasBorder}
|
|
93
|
+
helper-message=${args.helperMessage}
|
|
94
|
+
?hide-label=${args.hideLabel}
|
|
95
|
+
name=${args.name}
|
|
96
|
+
?required=${args.required}
|
|
97
|
+
value=${args.value}
|
|
98
|
+
?invalid=${args.invalid}
|
|
99
|
+
>
|
|
100
|
+
<pds-box slot="image" background-color="var(--pine-color-accent)" border-radius="full" padding="sm">
|
|
101
|
+
<pds-icon icon="danger" size="medium" color="var(--pine-color-white)" />
|
|
102
|
+
</pds-box>
|
|
103
|
+
</pds-radio>`;
|
|
104
|
+
|
|
105
|
+
export const WithImage = ImageTemplate.bind();
|
|
106
|
+
WithImage.args = {
|
|
107
|
+
componentId: 'with-image',
|
|
108
|
+
label: 'Option with image',
|
|
109
|
+
helperMessage: 'This radio includes an image using the image slot',
|
|
110
|
+
};
|
|
@@ -18,6 +18,24 @@ export class PdsRow {
|
|
|
18
18
|
lg: '2.25rem',
|
|
19
19
|
xl: '3rem',
|
|
20
20
|
xxl: '4rem',
|
|
21
|
+
'025': 'var(--pine-dimension-025)',
|
|
22
|
+
'050': 'var(--pine-dimension-050)',
|
|
23
|
+
'100': 'var(--pine-dimension-100)',
|
|
24
|
+
'125': 'var(--pine-dimension-125)',
|
|
25
|
+
'150': 'var(--pine-dimension-150)',
|
|
26
|
+
'200': 'var(--pine-dimension-200)',
|
|
27
|
+
'250': 'var(--pine-dimension-250)',
|
|
28
|
+
'300': 'var(--pine-dimension-300)',
|
|
29
|
+
'350': 'var(--pine-dimension-350)',
|
|
30
|
+
'400': 'var(--pine-dimension-400)',
|
|
31
|
+
'450': 'var(--pine-dimension-450)',
|
|
32
|
+
'500': 'var(--pine-dimension-500)',
|
|
33
|
+
'550': 'var(--pine-dimension-550)',
|
|
34
|
+
'600': 'var(--pine-dimension-600)',
|
|
35
|
+
'650': 'var(--pine-dimension-650)',
|
|
36
|
+
'700': 'var(--pine-dimension-700)',
|
|
37
|
+
'750': 'var(--pine-dimension-750)',
|
|
38
|
+
'800': 'var(--pine-dimension-800)'
|
|
21
39
|
};
|
|
22
40
|
}
|
|
23
41
|
render() {
|
|
@@ -37,7 +55,7 @@ export class PdsRow {
|
|
|
37
55
|
})), (this.minHeight && {
|
|
38
56
|
'min-height': this.minHeight,
|
|
39
57
|
}));
|
|
40
|
-
return h(Host, { key: '
|
|
58
|
+
return h(Host, { key: '8e3f5095c33ca22b26dc2cd328ec84663e3bc46b', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
|
|
41
59
|
}
|
|
42
60
|
static get is() { return "pds-row"; }
|
|
43
61
|
static get originalStyleUrls() {
|
|
@@ -98,13 +116,13 @@ export class PdsRow {
|
|
|
98
116
|
"type": "string",
|
|
99
117
|
"mutable": false,
|
|
100
118
|
"complexType": {
|
|
101
|
-
"original": "
|
|
102
|
-
"resolved": "\"
|
|
119
|
+
"original": "BoxSpacingType | null",
|
|
120
|
+
"resolved": "\"none\" | \"xxs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\" | \"025\" | \"050\" | \"100\" | \"125\" | \"150\" | \"200\" | \"250\" | \"300\" | \"350\" | \"400\" | \"450\" | \"500\" | \"550\" | \"600\" | \"650\" | \"700\" | \"750\" | \"800\"",
|
|
103
121
|
"references": {
|
|
104
|
-
"
|
|
122
|
+
"BoxSpacingType": {
|
|
105
123
|
"location": "import",
|
|
106
124
|
"path": "../../utils/types",
|
|
107
|
-
"id": "src/utils/types.ts::
|
|
125
|
+
"id": "src/utils/types.ts::BoxSpacingType"
|
|
108
126
|
}
|
|
109
127
|
}
|
|
110
128
|
},
|
|
@@ -123,13 +141,13 @@ export class PdsRow {
|
|
|
123
141
|
"type": "string",
|
|
124
142
|
"mutable": false,
|
|
125
143
|
"complexType": {
|
|
126
|
-
"original": "
|
|
127
|
-
"resolved": "\"
|
|
144
|
+
"original": "BoxSpacingType | null",
|
|
145
|
+
"resolved": "\"none\" | \"xxs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\" | \"025\" | \"050\" | \"100\" | \"125\" | \"150\" | \"200\" | \"250\" | \"300\" | \"350\" | \"400\" | \"450\" | \"500\" | \"550\" | \"600\" | \"650\" | \"700\" | \"750\" | \"800\"",
|
|
128
146
|
"references": {
|
|
129
|
-
"
|
|
147
|
+
"BoxSpacingType": {
|
|
130
148
|
"location": "import",
|
|
131
149
|
"path": "../../utils/types",
|
|
132
|
-
"id": "src/utils/types.ts::
|
|
150
|
+
"id": "src/utils/types.ts::BoxSpacingType"
|
|
133
151
|
}
|
|
134
152
|
}
|
|
135
153
|
},
|
|
@@ -148,13 +166,13 @@ export class PdsRow {
|
|
|
148
166
|
"type": "string",
|
|
149
167
|
"mutable": false,
|
|
150
168
|
"complexType": {
|
|
151
|
-
"original": "
|
|
152
|
-
"resolved": "\"
|
|
169
|
+
"original": "BoxSpacingType | null",
|
|
170
|
+
"resolved": "\"none\" | \"xxs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\" | \"025\" | \"050\" | \"100\" | \"125\" | \"150\" | \"200\" | \"250\" | \"300\" | \"350\" | \"400\" | \"450\" | \"500\" | \"550\" | \"600\" | \"650\" | \"700\" | \"750\" | \"800\"",
|
|
153
171
|
"references": {
|
|
154
|
-
"
|
|
172
|
+
"BoxSpacingType": {
|
|
155
173
|
"location": "import",
|
|
156
174
|
"path": "../../utils/types",
|
|
157
|
-
"id": "src/utils/types.ts::
|
|
175
|
+
"id": "src/utils/types.ts::BoxSpacingType"
|
|
158
176
|
}
|
|
159
177
|
}
|
|
160
178
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-row.js","sourceRoot":"","sources":["../../../src/components/pds-row/pds-row.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAQzD,MAAM,OAAO,MAAM;IAJnB;QAWE;;WAEG;QACK,WAAM,GAAI,KAAK,CAAC;QAiCxB;;WAEG;QACK,WAAM,GAAI,KAAK,CAAC;QAEhB,cAAS,
|
|
1
|
+
{"version":3,"file":"pds-row.js","sourceRoot":"","sources":["../../../src/components/pds-row/pds-row.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Prop, h, Host } from '@stencil/core';\n\nimport { BoxSpacingType } from '../../utils/types';\n\n@Component({\n tag: 'pds-row',\n styleUrl: 'pds-row.scss',\n})\nexport class PdsRow {\n /**\n * Defines the vertical alignment of the row items.\n * @defaultValue start\n */\n @Prop() alignItems?: `start` | `center` | `end` | `baseline` | `stretch`;\n\n /**\n * If `true`, the row will have a border.\n */\n @Prop() border? = false;\n\n /**\n * Defines the spacing between the row items.\n */\n @Prop() colGap?: BoxSpacingType | null;\n\n /**\n * Defines the spacing between the row items vertically.\n */\n @Prop() colGapBlock?: BoxSpacingType | null;\n\n /**\n * Defines the spacing between the row items horizontally.\n */\n @Prop() colGapInline?: BoxSpacingType | null;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Defines the horizontal alignment of the row items.\n * @defaultValue start\n */\n @Prop() justifyContent?: `start` | `center` | `end` | `space-between` | `space-around`;\n\n /**\n * The minimum height of the row. Used in conjunction with alignment props\n */\n @Prop() minHeight?: string;\n\n /**\n * If `true`, the row items will not wrap to the next line if horizontal space is not available.\n */\n @Prop() noWrap? = false;\n\n private colGapMap: { [key in BoxSpacingType]: string } = {\n none: '0',\n xxs: '.25rem',\n xs: '.5rem',\n sm: '1rem',\n md: '1.5rem',\n lg: '2.25rem',\n xl: '3rem',\n xxl: '4rem',\n '025': 'var(--pine-dimension-025)',\n '050': 'var(--pine-dimension-050)',\n '100': 'var(--pine-dimension-100)',\n '125': 'var(--pine-dimension-125)',\n '150': 'var(--pine-dimension-150)',\n '200': 'var(--pine-dimension-200)',\n '250': 'var(--pine-dimension-250)',\n '300': 'var(--pine-dimension-300)',\n '350': 'var(--pine-dimension-350)',\n '400': 'var(--pine-dimension-400)',\n '450': 'var(--pine-dimension-450)',\n '500': 'var(--pine-dimension-500)',\n '550': 'var(--pine-dimension-550)',\n '600': 'var(--pine-dimension-600)',\n '650': 'var(--pine-dimension-650)',\n '700': 'var(--pine-dimension-700)',\n '750': 'var(--pine-dimension-750)',\n '800': 'var(--pine-dimension-800)'\n };\n\n render() {\n const rowClasses = `\n ${this.alignItems !== undefined && this.alignItems.trim() !== '' ? `pds-align-items-${this.alignItems}` : ''}\n ${this.border ? 'pds-row--border' : ''}\n ${this.justifyContent !== undefined && this.justifyContent.trim() !== '' ? `pds-justify-content-${this.justifyContent}` : ''}\n ${this.noWrap ? 'pds-row--no-wrap' : ''}\n `;\n\n const rowInlineStyles = {\n ...(this.colGap && {\n '--row-gap-x': this.colGap !== undefined && this.colGap.trim() !== '' ? this.colGapMap[this.colGap] : '',\n '--row-gap-y': this.colGap !== undefined && this.colGap.trim() !== '' ? this.colGapMap[this.colGap] : '',\n }),\n ...(this.colGapBlock && {\n '--row-gap-y': this.colGapBlock !== undefined && this.colGapBlock.trim() !== '' ? this.colGapMap[this.colGapBlock] : '',\n }),\n ...(this.colGapInline && {\n '--row-gap-x': this.colGapInline !== undefined && this.colGapInline.trim() !== '' ? this.colGapMap[this.colGapInline] : '',\n }),\n ...(this.minHeight && {\n 'min-height': this.minHeight,\n }),\n };\n\n return <Host class={`pds-row ${rowClasses}`} style={rowInlineStyles}></Host>;\n }\n}\n"]}
|
|
@@ -212,7 +212,7 @@ export class PdsSelect {
|
|
|
212
212
|
}
|
|
213
213
|
render() {
|
|
214
214
|
const hasAction = this.el.querySelector('[slot="action"]') !== null;
|
|
215
|
-
return (h(Host, { key: '
|
|
215
|
+
return (h(Host, { key: 'a64fae51ba6d998c3ce87734995a25a29e0b793a', "aria-disabled": this.disabled ? 'true' : null, class: this.classNames(), "has-action": hasAction && !this.hideLabel ? 'true' : null }, h("div", { key: 'a0ee61f1a0e649a1ac0266934ea39bd02afb8eca', class: "pds-select" }, !this.hideLabel && (h("div", { key: '6cd3676bf388328ae44f3c0e5bdf20b0dc3743a4', class: "pds-select__label-wrapper" }, h("label", { key: '4dee9e78745b8ed65495cc42c7570eb24297c44d', htmlFor: this.componentId }, h("span", { key: '9c08d2ff302dea008340f88508b9506fa8499f35', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), hasAction && this.renderAction())), h("select", { key: '2039ee8a246e57507a0a803212cebfad5f730622', "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, onChange: this.onSelectUpdate, part: "select", required: this.required, ref: (el) => (this.selectEl = el) }), h("div", { key: '8fa779a58b2525e7dfee965863aa53d2588bb8e5', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, h("slot", { key: '514b1f3d61e2001961ed4293b0489a7b87b9db37', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && h("pds-icon", { key: 'c46733d532d26c2f780db13473cfcb877faf565b', class: "pds-select__select-icon", icon: enlarge }))));
|
|
216
216
|
}
|
|
217
217
|
static get is() { return "pds-select"; }
|
|
218
218
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,7 +25,7 @@ export class PdsSortableItem {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: 'c09d0efc16e9cfb2e3eb567620d768e55aedaf77', class: "pds-sortable-item", id: this.componentId }, this.showHandle && (h("div", { key: '256c70c9ae566781ee3647196ba7bfa8b2e8f7cf', class: "pds-sortable-item__handle" }, h("pds-icon", { key: 'ec56d4eac7f1f464df061297a613554565130d3d', icon: handleIcon }))), h("slot", { key: '6131eda3a2b8a7ef96883f9f791a2cf777407fa4' }), this.enableActions && (h("div", { key: '126589fa42498a25f5049786def7fb96f16087aa', class: "pds-sortable-item__actions" }, h("slot", { key: 'e2726fb1ae3f74c5ff4b7879ee32b826fb2b8518', name: "sortable-item-actions" })))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "pds-sortable-item"; }
|
|
31
31
|
static get encapsulation() { return "scoped"; }
|
|
@@ -44,7 +44,7 @@ export class PdsSortable {
|
|
|
44
44
|
Sortable.create(this.el, sortableOptions);
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: '8d6acb29c18b53a699281b86f73c566b9ebfd291', class: this.classNames(), id: this.componentId }, h("slot", { key: '32fee1636973846016311c70e885a0e5c7645431' })));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "pds-sortable"; }
|
|
50
50
|
static get encapsulation() { return "scoped"; }
|
|
@@ -83,9 +83,9 @@ export class PdsSwitch {
|
|
|
83
83
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
|
-
return (h(Host, { key: '
|
|
87
|
-
h("div", { key: '
|
|
88
|
-
h("div", { key: '
|
|
86
|
+
return (h(Host, { key: 'ab8da77b752d017bafd9ce22daf8973967d4b063', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, h("label", { key: '95245686f147a5b1a50540319ab4a6e87dd04451', htmlFor: this.componentId }, h("input", Object.assign({ key: 'f32fbaf3997fee37c645b7578d117f4f9ed8c23a', "aria-describedby": assignDescription(this.componentId, this.invalid, this.errorMessage || 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: "checkbox", value: this.value }, this.inheritedAttributes)), h("span", { key: 'ff8441d3d043a4fd7f7f4d5fac659ca9ba7554a7', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), this.helperMessage &&
|
|
87
|
+
h("div", { key: '2a4ee4dbe651f76e782f9c20314b0d46aa6faf04', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
88
|
+
h("div", { key: '58a3dfb0ca96cc90da7fc606152f63f23d41391d', class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: 'e8db31c01ba78b986e3f746f11dddb8c28dbd6be', icon: danger, size: "small" }), this.errorMessage)));
|
|
89
89
|
}
|
|
90
90
|
static get is() { return "pds-switch"; }
|
|
91
91
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class PdsTableBody {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '0f587d936a93187caa879ae07b9f54072e4b9aa2', role: "rowgroup", part: "body" }, h("slot", { key: '026fd33ac51c548fccd5465dfd675566e95fae33' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "pds-table-body"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -94,11 +94,11 @@ export class PdsTableCell {
|
|
|
94
94
|
return classNames.join(' ');
|
|
95
95
|
}
|
|
96
96
|
render() {
|
|
97
|
-
return (h(Host, { key: '
|
|
97
|
+
return (h(Host, { key: '5c3d35742f438d2bbb3bc9194e6bc0abf769e66f', class: this.classNames(), role: "gridcell", part: "cell", style: this.tableRef &&
|
|
98
98
|
this.tableRef.fixedColumn &&
|
|
99
99
|
this.tableRef.selectable
|
|
100
100
|
? { '--fixed-cell-position': '40px' }
|
|
101
|
-
: {} }, h("slot", { key: '
|
|
101
|
+
: {} }, h("slot", { key: 'dcc7fe8ffa481915dbe61bad294855a05d9e8aeb' })));
|
|
102
102
|
}
|
|
103
103
|
static get is() { return "pds-table-cell"; }
|
|
104
104
|
static get encapsulation() { return "shadow"; }
|
|
@@ -32,7 +32,7 @@ export class PdsTableHead {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: '773bc9ea7631958d8ef6adcbdc862f47e4052687', role: "row", part: "head" }, this.tableRef && this.tableRef.selectable && (h("pds-table-head-cell", { key: 'b065650fb881746ce17cd702c51aecb1abe07898', part: this.tableRef.selectable ? 'checkbox-cell' : '' }, h("pds-checkbox", { key: 'eab146eb7bca6f4cf04cbd3adc5a90c76ede9ca1', componentId: this.generateUniqueId(), indeterminate: this.indeterminate, onInput: this.handleInput, label: "Select All Rows", hideLabel: true, checked: this.isSelected, part: "select-all-checkbox" }))), h("slot", { key: '5b18fb5c6e7f09cbff336e8922b39eacc34fa692' })));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "pds-table-head"; }
|
|
38
38
|
static get encapsulation() { return "shadow"; }
|
|
@@ -118,11 +118,11 @@ export class PdsTableHeadCell {
|
|
|
118
118
|
return classNames.join(' ');
|
|
119
119
|
}
|
|
120
120
|
render() {
|
|
121
|
-
return (h(Host, { key: '
|
|
121
|
+
return (h(Host, { key: '6ee9e95f9ccdaa15037875425e5512b5b5e2c540', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, part: "head-cell", style: this.tableRef &&
|
|
122
122
|
this.tableRef.fixedColumn &&
|
|
123
123
|
this.tableRef.selectable
|
|
124
124
|
? { '--fixed-cell-position': '40px' }
|
|
125
|
-
: {} }, h("slot", { key: '
|
|
125
|
+
: {} }, h("slot", { key: '9f6716080ff52e32ea65080f29102fd8111436bf' }), this.sortable && (h("pds-icon", { key: '538ea6761216c10f716e4d53b53bbcd69b73fd45', icon: this.sortingDirection === 'asc' ? upSmall : downSmall, part: "sort-icon" }))));
|
|
126
126
|
}
|
|
127
127
|
static get is() { return "pds-table-head-cell"; }
|
|
128
128
|
static get encapsulation() { return "shadow"; }
|
|
@@ -43,7 +43,7 @@ export class PdsTableRow {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: '5853e143e9866a596924b204c25d20a3983fc064', class: this.classNames(), role: "row", part: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-cell", { key: '687d0a86e434d2422e794b14d0a9514b213c2afc', part: this.tableRef.fixedColumn ? 'checkbox-cell' : 'checkbox-cell', class: this.tableRef.selectable ? 'has-checkbox' : '' }, h("pds-checkbox", { key: '109474126dbf72c218a180985169ef608d7d0c40', componentId: this.generateUniqueId(), onClick: this.handleClick, indeterminate: this.indeterminate, label: "Select Row", hideLabel: true, checked: this.isSelected, part: "row-checkbox" }))), h("slot", { key: 'e685aa96c44d590ddf0d1d1842f8e672c11cadcb' })));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "pds-table-row"; }
|
|
49
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,9 +11,9 @@ export class PdsTab {
|
|
|
11
11
|
this.pdsTabClick.emit([index, parentComponentId]);
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
const availabilityTabEdgeInlineStart = (h("span", { key: '
|
|
15
|
-
const availabilityTabEdgeInlineEnd = (h("span", { key: '
|
|
16
|
-
return (h(Host, { key: '
|
|
14
|
+
const availabilityTabEdgeInlineStart = (h("span", { key: '6a1adf68c8774382c193832185552d89bd0c0c6c', class: "pds-tab-edge", role: "presentation" }));
|
|
15
|
+
const availabilityTabEdgeInlineEnd = (h("span", { key: 'df0dfc8e49b647e1050b938eb78438bcfff752b9', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
|
|
16
|
+
return (h(Host, { key: 'e1c195404903faf1c8d0d69a532a9dbc74972ff3', variant: this.variant, slot: "tabs", index: this.index }, h("button", { key: '48b87755de0d0f30c8a9e0e33262b0db61e5fe89', 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: 'e14fe7ca40faca035ec6bc4f6ead950af31b320c', class: "pds-tab__content" }, h("slot", { key: 'f9377c907178ef8c02c840c35c3fcbad9afee997' })))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "pds-tab"; }
|
|
19
19
|
static get originalStyleUrls() {
|
|
@@ -8,7 +8,7 @@ export class PdsTabpanel {
|
|
|
8
8
|
this.selected = false; // eslint-disable-line @stencil-community/strict-mutable
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: '024cffb191c49db6049ec281eba1877c6618f4f2', slot: "tabpanels" }, h("div", { key: '3ab5918e75ae4708bbd12394d55f4b86cc614fdc', 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: '5c7ede2a36c7594b1943ae5f248df22c71b86537' }))));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "pds-tabpanel"; }
|
|
14
14
|
static get originalStyleUrls() {
|
|
@@ -87,7 +87,7 @@ export class PdsTabs {
|
|
|
87
87
|
this.passPropsToChildren();
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return (h(Host, { key: '
|
|
90
|
+
return (h(Host, { key: '729d6b9d3deb5a31cc7b1d9b18334761a856f933', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, h("div", { key: '87e06225508059a3c1b548440cf7da9b68df77fd', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel, part: "tab-list" }, h("slot", { key: '5e8c4c941a7f6aea1ce3378641931c104b6b45cf', name: "tabs" })), h("slot", { key: 'b396ed81d9a1c957803a94dbfe965986c6afc870', name: "tabpanels" })));
|
|
91
91
|
}
|
|
92
92
|
static get is() { return "pds-tabs"; }
|
|
93
93
|
static get encapsulation() { return "shadow"; }
|
|
@@ -20,7 +20,7 @@ export class PdsText {
|
|
|
20
20
|
${this.weight !== undefined && this.weight.trim() !== '' ? `pds-text--weight-${this.weight}` : ''}
|
|
21
21
|
${this.decoration !== undefined && this.decoration.trim() !== '' ? `pds-text--decoration-${this.decoration}` : ''}
|
|
22
22
|
`;
|
|
23
|
-
return (h(Tag, { key: '
|
|
23
|
+
return (h(Tag, { key: '9cc756733434abd9798577fae889c441ea53072e', style: this.color && setColor(this.color), class: typeClasses, part: "content" }, h("slot", { key: 'c6face46ad09ba9cb147f23211a98ee6c465680f' })));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "pds-text"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -289,10 +289,10 @@ export class PdsTextarea {
|
|
|
289
289
|
}
|
|
290
290
|
render() {
|
|
291
291
|
const value = this.getValue();
|
|
292
|
-
return (h(Host, { key: '
|
|
293
|
-
h("div", { key: '
|
|
294
|
-
h("p", { key: '
|
|
295
|
-
h("p", { key: '
|
|
292
|
+
return (h(Host, { key: 'a718c10bf2fd9113209878b84387d06c2fbfad66', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null, "has-action": this.hasAction && !this.hideLabel ? 'true' : null }, h("div", { key: 'f59de790c251614f539de0cb00b5e3661e6376e2', class: "pds-textarea" }, this.label &&
|
|
293
|
+
h("div", { key: 'efdec9daf775720f1f9fa185dc8c664652f093b4', class: "pds-textarea__label-wrapper" }, h("label", { key: '40738fda5b65d7c7f4498e62ec57fc467a9b32cf', htmlFor: this.componentId }, h("span", { key: '349ebac4880268669d5de6276586f3fd9aca225a', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), !this.hideLabel && this.renderAction()), h("div", { key: '9d1fa860ae895501aa5976a90cbe6ef7a0d92585', class: "pds-textarea__field-wrapper" }, h("textarea", Object.assign({ key: '319299eacb31f6a423a670cbc06e4510111962cb', ref: (el) => this.nativeTextarea = el, "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, maxlength: this.maxLength, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onBlur: this.onBlur, onChange: this.onTextareaChange, onFocus: this.onFocus, onInput: this.onInput }, this.inheritedAttributes), value), this.renderCharacterCounter()), this.helperMessage &&
|
|
294
|
+
h("p", { key: '4622e04c1461424685690c641cef902d02b61a32', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
|
|
295
|
+
h("p", { key: '2d728afc5f3bef9526c70810b528651e9681e6ab', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, h("pds-icon", { key: '96d3020437432da7edabc629a26fab00860e9ce4', icon: danger, size: "small" }), this.errorMessage))));
|
|
296
296
|
}
|
|
297
297
|
static get is() { return "pds-textarea"; }
|
|
298
298
|
static get encapsulation() { return "shadow"; }
|
|
@@ -77,13 +77,13 @@ export class PdsToast {
|
|
|
77
77
|
return this.icon && h("pds-icon", { name: this.icon, class: "pds-toast__icon" });
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: '6951589c3f851a7f45301488882f0b2742936f2a', hidden: !this.isVisible }, h("div", { key: 'd8dea7ba93f56a6d3b7b13bba54174f8b262ed2f', class: {
|
|
81
81
|
'pds-toast': true,
|
|
82
82
|
[`pds-toast--${this.type}`]: this.type !== 'default',
|
|
83
83
|
'pds-toast--animating-out': this.isAnimatingOut
|
|
84
|
-
}, role: "alert", "aria-live": "polite" }, this.renderIcon(), h("span", { key: '
|
|
84
|
+
}, role: "alert", "aria-live": "polite" }, this.renderIcon(), h("span", { key: '003fd79841065a615ba3d7ef8ee934bc23284da3', class: "pds-toast__message" }, h("slot", { key: 'b78d5f17d8b2d8133c9fed325122299be12c55af' })), this.dismissible && (h("button", { key: '9e681cb13f0d63f4295efa41e1f5ac7dd4b59f31', type: "button", class: "pds-toast__button", onClick: () => {
|
|
85
85
|
this.dismiss();
|
|
86
|
-
}, "aria-label": "Dismiss message" }, h("pds-icon", { key: '
|
|
86
|
+
}, "aria-label": "Dismiss message" }, h("pds-icon", { key: 'f8784f5776604cb2a0f4b201ed6bb9d4ac12297f', name: "remove" }))))));
|
|
87
87
|
}
|
|
88
88
|
static get is() { return "pds-toast"; }
|
|
89
89
|
static get encapsulation() { return "shadow"; }
|
|
@@ -312,9 +312,9 @@ export class PdsTooltip {
|
|
|
312
312
|
}
|
|
313
313
|
render() {
|
|
314
314
|
const hostId = this.componentId || undefined;
|
|
315
|
-
return (h(Host, { key: '
|
|
315
|
+
return (h(Host, { key: 'af1e569128ba37226fd2fc36059f3c829a8f0c6f', id: hostId, class: { 'pds-tooltip--is-open': this.opened } }, h("span", { key: '16a834eb3ac201e8ab7b42000d89ee7f04a15ec9', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide,
|
|
316
316
|
/* focusin/out bubble; ensure keyboard users see tooltips */
|
|
317
|
-
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, h("slot", { key: '
|
|
317
|
+
onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, h("slot", { key: '2c15603e660ef296a9e2d47958b858d7162d0cc5' })), h("div", { key: 'e3bfefad4fe5f2c2d67ca1cc00d65f353ee08332', class: "pds-tooltip__content-slot-wrapper", hidden: true }, h("slot", { key: '0f63d8e02dba9ba43df2c92ec5e5509ab5f8f920', name: "content" }))));
|
|
318
318
|
}
|
|
319
319
|
static get is() { return "pds-tooltip"; }
|
|
320
320
|
static get originalStyleUrls() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"","sourcesContent":["export type PlacementType =\n | 'top-start'\n | 'top'\n | 'top-end'\n | 'left-start'\n | 'left'\n | 'left-end'\n | 'right-start'\n | 'right'\n | 'right-end'\n | 'bottom-start'\n | 'bottom'\n | 'bottom-end';\n\nexport type BoxColumnType =\n '0'\n | '1'\n | '2'\n | '3'\n | '4'\n | '5'\n | '6'\n | '7'\n | '8'\n | '9'\n | '10'\n | '11'\n | '12';\n\
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"","sourcesContent":["export type PlacementType =\n | 'top-start'\n | 'top'\n | 'top-end'\n | 'left-start'\n | 'left'\n | 'left-end'\n | 'right-start'\n | 'right'\n | 'right-end'\n | 'bottom-start'\n | 'bottom'\n | 'bottom-end';\n\nexport type BoxColumnType =\n '0'\n | '1'\n | '2'\n | '3'\n | '4'\n | '5'\n | '6'\n | '7'\n | '8'\n | '9'\n | '10'\n | '11'\n | '12';\n\nexport type BoxSpacingType =\n 'none'\n | 'xxs'\n | 'xs'\n | 'sm'\n | 'md'\n | 'lg'\n | 'xl'\n | 'xxl'\n | '025'\n | '050'\n | '100'\n | '125'\n | '150'\n | '200'\n | '250'\n | '300'\n | '350'\n | '400'\n | '450'\n | '500'\n | '550'\n | '600'\n | '650'\n | '700'\n | '750'\n | '800';\n\nexport type BoxShadowSizeType =\n 'none'\n | '050'\n | '100'\n | '150'\n | '200'\n | '300'\n | '400'\n | '500'\n\nexport type ChipSentimentType =\n 'accent'\n | 'brand'\n | 'danger'\n | 'info'\n | 'neutral'\n | 'success'\n | 'warning';\n\nexport type ChipVariantType =\n 'text'\n | 'tag'\n | 'dropdown';"]}
|