@pine-ds/core 3.23.0 → 3.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/index.d.ts +2 -0
- package/components/index.js +1 -0
- package/components/index.js.map +1 -1
- package/components/mock-pds-modal.js +1 -1
- package/components/pds-container.d.ts +11 -0
- package/components/pds-container.js +61 -0
- package/components/pds-container.js.map +1 -0
- package/components/pds-copytext.js +1 -1
- package/components/pds-divider.js +1 -1
- package/components/pds-dropdown-menu-item.js +1 -1
- package/components/pds-dropdown-menu-separator.js +1 -1
- package/components/pds-dropdown-menu.js +1 -1
- package/components/pds-filter.js +1 -1
- package/components/pds-filters.js +1 -1
- package/components/pds-image.js +2 -2
- package/components/pds-input.js +1 -1
- package/components/pds-link2.js +2 -2
- package/components/pds-loader2.js +1 -1
- package/components/pds-modal-content.js +2 -2
- package/components/pds-modal-footer.js +1 -1
- package/components/pds-modal-header.js +1 -1
- package/components/pds-modal.js +3 -3
- package/components/pds-multiselect.js +3 -3
- package/components/pds-popover.js +1 -1
- package/components/pds-progress.js +1 -1
- package/components/pds-property.js +1 -1
- package/components/pds-radio-group.js +3 -3
- package/components/pds-radio.js +3 -3
- package/components/pds-row.js +1 -1
- package/components/pds-select.js +1 -1
- package/components/pds-sortable-item.js +1 -1
- package/components/pds-sortable.js +1 -1
- package/components/pds-switch.js +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/mock-pds-modal.cjs.entry.js +1 -1
- package/dist/cjs/pds-container.cjs.entry.js +37 -0
- package/dist/cjs/pds-container.entry.cjs.js.map +1 -0
- package/dist/cjs/pds-copytext.cjs.entry.js +1 -1
- package/dist/cjs/pds-divider.cjs.entry.js +1 -1
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +1 -1
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js +1 -1
- package/dist/cjs/pds-filter.cjs.entry.js +1 -1
- package/dist/cjs/pds-filters.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 +2 -2
- package/dist/cjs/pds-loader.cjs.entry.js +1 -1
- package/dist/cjs/pds-modal-content.cjs.entry.js +2 -2
- package/dist/cjs/pds-modal-footer.cjs.entry.js +1 -1
- package/dist/cjs/pds-modal-header.cjs.entry.js +1 -1
- package/dist/cjs/pds-modal.cjs.entry.js +3 -3
- package/dist/cjs/pds-multiselect.cjs.entry.js +3 -3
- package/dist/cjs/pds-popover.cjs.entry.js +1 -1
- package/dist/cjs/pds-progress.cjs.entry.js +1 -1
- package/dist/cjs/pds-property.cjs.entry.js +1 -1
- package/dist/cjs/pds-radio-group.cjs.entry.js +3 -3
- package/dist/cjs/pds-radio.cjs.entry.js +3 -3
- package/dist/cjs/pds-row.cjs.entry.js +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/collection-manifest.json +1 -0
- package/dist/collection/components/pds-container/pds-container.css +26 -0
- package/dist/collection/components/pds-container/pds-container.js +112 -0
- package/dist/collection/components/pds-container/pds-container.js.map +1 -0
- package/dist/collection/components/pds-container/stories/pds-container.stories.js +89 -0
- 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-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +1 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +1 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +1 -1
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +1 -1
- package/dist/collection/components/pds-filters/pds-filters.js +1 -1
- package/dist/collection/components/pds-image/pds-image.js +2 -2
- package/dist/collection/components/pds-input/pds-input.js +1 -1
- package/dist/collection/components/pds-link/pds-link.js +2 -2
- package/dist/collection/components/pds-loader/pds-loader.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +2 -2
- package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal.js +3 -3
- package/dist/collection/components/pds-modal/test/mock-pds-modal.js +1 -1
- package/dist/collection/components/pds-multiselect/pds-multiselect.js +3 -3
- package/dist/collection/components/pds-popover/pds-popover.js +1 -1
- package/dist/collection/components/pds-progress/pds-progress.js +1 -1
- package/dist/collection/components/pds-property/pds-property.js +1 -1
- package/dist/collection/components/pds-radio/pds-radio.js +3 -3
- package/dist/collection/components/pds-radio-group/pds-radio-group.js +3 -3
- package/dist/collection/components/pds-row/pds-row.js +1 -1
- package/dist/collection/components/pds-select/pds-select.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
- package/dist/collection/components/pds-switch/pds-switch.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/docs.json +125 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mock-pds-modal.entry.js +1 -1
- package/dist/esm/pds-container.entry.js +35 -0
- package/dist/esm/pds-container.entry.js.map +1 -0
- package/dist/esm/pds-copytext.entry.js +1 -1
- package/dist/esm/pds-divider.entry.js +1 -1
- package/dist/esm/pds-dropdown-menu-item.entry.js +1 -1
- package/dist/esm/pds-dropdown-menu-separator.entry.js +1 -1
- package/dist/esm/pds-dropdown-menu.entry.js +1 -1
- package/dist/esm/pds-filter.entry.js +1 -1
- package/dist/esm/pds-filters.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 +2 -2
- package/dist/esm/pds-loader.entry.js +1 -1
- package/dist/esm/pds-modal-content.entry.js +2 -2
- package/dist/esm/pds-modal-footer.entry.js +1 -1
- package/dist/esm/pds-modal-header.entry.js +1 -1
- package/dist/esm/pds-modal.entry.js +3 -3
- package/dist/esm/pds-multiselect.entry.js +3 -3
- package/dist/esm/pds-popover.entry.js +1 -1
- package/dist/esm/pds-progress.entry.js +1 -1
- package/dist/esm/pds-property.entry.js +1 -1
- package/dist/esm/pds-radio-group.entry.js +3 -3
- package/dist/esm/pds-radio.entry.js +3 -3
- package/dist/esm/pds-row.entry.js +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/mock-pds-modal.entry.js +1 -1
- package/dist/esm-es5/pds-container.entry.js +2 -0
- package/dist/esm-es5/pds-container.entry.js.map +1 -0
- 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-dropdown-menu-item.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
- package/dist/esm-es5/pds-filter.entry.js +1 -1
- package/dist/esm-es5/pds-filters.entry.js +1 -1
- package/dist/esm-es5/pds-image.entry.js +1 -1
- package/dist/esm-es5/pds-input.entry.js +1 -1
- package/dist/esm-es5/pds-link.entry.js +1 -1
- package/dist/esm-es5/pds-loader.entry.js +1 -1
- package/dist/esm-es5/pds-modal-content.entry.js +1 -1
- package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
- package/dist/esm-es5/pds-modal-header.entry.js +1 -1
- package/dist/esm-es5/pds-modal.entry.js +1 -1
- package/dist/esm-es5/pds-multiselect.entry.js +1 -1
- package/dist/esm-es5/pds-popover.entry.js +1 -1
- package/dist/esm-es5/pds-progress.entry.js +1 -1
- package/dist/esm-es5/pds-property.entry.js +1 -1
- package/dist/esm-es5/pds-radio-group.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js +1 -1
- package/dist/esm-es5/pds-row.entry.js +1 -1
- package/dist/esm-es5/pds-select.entry.js +1 -1
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
- package/dist/esm-es5/pds-sortable.entry.js +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-244f0325.system.entry.js → p-06921b1a.system.entry.js} +2 -2
- package/dist/pine-core/{p-d5d9cf28.entry.js → p-0e35b09a.entry.js} +2 -2
- package/dist/pine-core/{p-95af50ed.entry.js → p-0f376270.entry.js} +2 -2
- package/dist/pine-core/p-10e0be55.entry.js +2 -0
- package/dist/pine-core/{p-c6682c9d.system.entry.js → p-137517ea.system.entry.js} +2 -2
- package/dist/pine-core/{p-fa62518b.entry.js → p-14ca4f31.entry.js} +2 -2
- package/dist/pine-core/{p-c78a7729.entry.js → p-1951d49e.entry.js} +2 -2
- package/dist/pine-core/{p-1855322f.entry.js → p-1fa303af.entry.js} +2 -2
- package/dist/pine-core/{p-61943627.system.entry.js → p-213d0f72.system.entry.js} +2 -2
- package/dist/pine-core/{p-41382eb3.system.entry.js → p-23450d7a.system.entry.js} +2 -2
- package/dist/pine-core/{p-eec6b183.system.entry.js → p-2483b797.system.entry.js} +2 -2
- package/dist/pine-core/{p-67b78dd8.system.entry.js → p-2883cb69.system.entry.js} +2 -2
- package/dist/pine-core/p-29a8ef8a.entry.js +2 -0
- package/dist/pine-core/{p-40734388.entry.js.map → p-29a8ef8a.entry.js.map} +1 -1
- package/dist/pine-core/{p-BQsz2Ppb.system.js.map → p-2DR2iuEU.system.js.map} +1 -1
- package/dist/pine-core/{p-6939924a.system.entry.js → p-2f0eb2b5.system.entry.js} +2 -2
- package/dist/pine-core/{p-33e8d130.entry.js → p-2f6f60d9.entry.js} +2 -2
- package/dist/pine-core/{p-48a646d8.entry.js → p-3a527283.entry.js} +2 -2
- package/dist/pine-core/{p-46e11e20.entry.js → p-3b342c35.entry.js} +2 -2
- package/dist/pine-core/{p-e017b42e.system.entry.js → p-3e45826f.system.entry.js} +2 -2
- package/dist/pine-core/{p-bc7a4275.system.entry.js → p-3f0a6a75.system.entry.js} +2 -2
- package/dist/pine-core/{p-98b493e5.entry.js → p-426e90cb.entry.js} +2 -2
- package/dist/pine-core/{p-e47524a6.entry.js → p-426f5f57.entry.js} +2 -2
- package/dist/pine-core/{p-a1d58592.entry.js → p-439e3343.entry.js} +2 -2
- package/dist/pine-core/{p-fa4c5b6b.system.entry.js → p-4591a359.system.entry.js} +2 -2
- package/dist/pine-core/p-4f6487b9.system.entry.js +2 -0
- package/dist/pine-core/p-4f6487b9.system.entry.js.map +1 -0
- package/dist/pine-core/p-50a439b5.entry.js +2 -0
- package/dist/pine-core/{p-59--X9ih.system.js.map → p-5L_gsODn.system.js.map} +1 -1
- package/dist/pine-core/p-65d0032c.system.entry.js +2 -0
- package/dist/pine-core/{p-fe2ba477.entry.js → p-66644048.entry.js} +2 -2
- package/dist/pine-core/{p-98d82bf0.system.entry.js → p-6b456e02.system.entry.js} +2 -2
- package/dist/pine-core/{p-e1402563.system.entry.js → p-6be19a23.system.entry.js} +2 -2
- package/dist/pine-core/{p-8f3d6de0.entry.js → p-6c25dfc3.entry.js} +2 -2
- package/dist/pine-core/p-6cbad264.entry.js +2 -0
- package/dist/pine-core/{p-a3543531.entry.js.map → p-6cbad264.entry.js.map} +1 -1
- package/dist/pine-core/{p-91200079.system.entry.js → p-6dcd7876.system.entry.js} +2 -2
- package/dist/pine-core/{p-781bdbf7.system.entry.js → p-712e0d82.system.entry.js} +2 -2
- package/dist/pine-core/{p-a61e92c3.system.entry.js → p-72a27cb7.system.entry.js} +2 -2
- package/dist/pine-core/{p-ed125c22.system.entry.js → p-72ca815d.system.entry.js} +2 -2
- package/dist/pine-core/{p-4c7055bb.system.entry.js → p-75a53dce.system.entry.js} +2 -2
- package/dist/pine-core/{p-75dc3a1f.entry.js → p-766e52a3.entry.js} +2 -2
- package/dist/pine-core/{p-0d7eddea.system.entry.js → p-811e510d.system.entry.js} +2 -2
- package/dist/pine-core/{p-14cceca6.entry.js → p-838452e0.entry.js} +2 -2
- package/dist/pine-core/{p-adbe19c7.system.entry.js → p-84b696ce.system.entry.js} +2 -2
- package/dist/pine-core/{p-b6465152.entry.js → p-8501bb6b.entry.js} +2 -2
- package/dist/pine-core/{p-a720a925.entry.js → p-88eb4f6c.entry.js} +2 -2
- package/dist/pine-core/{p-2a185f0b.system.entry.js → p-8b7246ea.system.entry.js} +2 -2
- package/dist/pine-core/p-8c000d7c.entry.js +2 -0
- package/dist/pine-core/{p-c9ced0ee.entry.js → p-8c0fc8ff.entry.js} +2 -2
- package/dist/pine-core/{p-DZLD6m8S.system.js.map → p-8tpU1leU.system.js.map} +1 -1
- package/dist/pine-core/{p-519d9af1.system.entry.js → p-92df334f.system.entry.js} +2 -2
- package/dist/pine-core/{p-3e96ea38.system.entry.js → p-93eeca70.system.entry.js} +2 -2
- package/dist/pine-core/{p-182b5617.system.entry.js → p-9606f567.system.entry.js} +2 -2
- package/dist/pine-core/{p-48a6762b.system.entry.js → p-98e202b8.system.entry.js} +2 -2
- package/dist/pine-core/{p-ab2c2298.system.entry.js → p-9947c6cd.system.entry.js} +2 -2
- package/dist/pine-core/p-9f0f1389.entry.js +2 -0
- package/dist/pine-core/{p-caf01891.entry.js.map → p-9f0f1389.entry.js.map} +1 -1
- package/dist/pine-core/{p-DOdbcaFd.system.js.map → p-B036z4h-.system.js.map} +1 -1
- package/dist/pine-core/{p-Be6iza_Y.system.js.map → p-B5CyjPYU.system.js.map} +1 -1
- package/dist/pine-core/{p-Cw6YcRuA.system.js.map → p-B8OHXU49.system.js.map} +1 -1
- package/dist/pine-core/{p-BpespFXE.system.js.map → p-B_IKQKhn.system.js.map} +1 -1
- package/dist/pine-core/{p-BOuz9091.system.js.map → p-BfOM0dtX.system.js.map} +1 -1
- package/dist/pine-core/{p-e7dY1RIu.system.js.map → p-BgNsCT1R.system.js.map} +1 -1
- package/dist/pine-core/{p-3XkugpdY.system.js.map → p-Bng_-RSY.system.js.map} +1 -1
- package/dist/pine-core/{p-IEIIi5zq.system.js.map → p-Bp9jwGLH.system.js.map} +1 -1
- package/dist/pine-core/{p-Dq_WxIls.system.js.map → p-BqPhyc8k.system.js.map} +1 -1
- package/dist/pine-core/{p-DMF-DSOl.system.js.map → p-BqkabXR7.system.js.map} +1 -1
- package/dist/pine-core/{p-CjvjDEg9.system.js.map → p-CI7DD4Gj.system.js.map} +1 -1
- package/dist/pine-core/{p-CI57amJO.system.js.map → p-CUv9KdhN.system.js.map} +1 -1
- package/dist/pine-core/{p-BOuxAvbi.system.js.map → p-CYFz3obB.system.js.map} +1 -1
- package/dist/pine-core/{p-KVyVRPM1.system.js.map → p-CZnOhE0g.system.js.map} +1 -1
- package/dist/pine-core/{p-BTrLNF2B.system.js.map → p-CdMCGjQj.system.js.map} +1 -1
- package/dist/pine-core/{p-BR9D7jOC.system.js.map → p-CijIWK3K.system.js.map} +1 -1
- package/dist/pine-core/{p-DwSw16ZT.system.js.map → p-ClPf_JF1.system.js.map} +1 -1
- package/dist/pine-core/{p-B5fynusC.system.js.map → p-ClY6yIBF.system.js.map} +1 -1
- package/dist/pine-core/{p-BR1tCsTx.system.js.map → p-Co9FFVKs.system.js.map} +1 -1
- package/dist/pine-core/{p-CG-bCfvj.system.js.map → p-Cvql9iy1.system.js.map} +1 -1
- package/dist/pine-core/{p-Dp80V3ht.system.js.map → p-D0GkJmlY.system.js.map} +1 -1
- package/dist/pine-core/{p-BUEOyE3W.system.js.map → p-DFWnxG_e.system.js.map} +1 -1
- package/dist/pine-core/{p-DAxrTjDa.system.js.map → p-DLZO3aKG.system.js.map} +1 -1
- package/dist/pine-core/p-DO--6n89.system.js.map +1 -0
- package/dist/pine-core/{p-C2pSDIG-.system.js.map → p-DQJGHOVq.system.js.map} +1 -1
- package/dist/pine-core/{p-CP845yj_.system.js.map → p-DenbFuEN.system.js.map} +1 -1
- package/dist/pine-core/{p-ssoi7rVs.system.js.map → p-DkNlmqjM.system.js.map} +1 -1
- package/dist/pine-core/{p-CHDzBR_K.system.js.map → p-Dl-o5ymF.system.js.map} +1 -1
- package/dist/pine-core/{p-C4-dix13.system.js.map → p-DqfjMab8.system.js.map} +1 -1
- package/dist/pine-core/{p-DNbBVaLv.system.js.map → p-DyrMiAYl.system.js.map} +1 -1
- package/dist/pine-core/{p-WysX4rk5.system.js.map → p-FWsvMskO.system.js.map} +1 -1
- package/dist/pine-core/p-JAVnELnm.system.js +1 -1
- package/dist/pine-core/{p-PMiwIPVl.system.js.map → p-P65hM6YU.system.js.map} +1 -1
- package/dist/pine-core/p-a11c3642.system.entry.js +2 -0
- package/dist/pine-core/{p-BMoAGblt.system.js.map → p-abrage-l.system.js.map} +1 -1
- package/dist/pine-core/p-ac186cd4.system.entry.js +2 -0
- package/dist/pine-core/{p-13f28e2a.system.entry.js → p-ae238530.system.entry.js} +2 -2
- package/dist/pine-core/{p-ce47aaaa.system.entry.js → p-afad45f6.system.entry.js} +2 -2
- package/dist/pine-core/p-b2218fa1.entry.js +2 -0
- package/dist/pine-core/p-b2218fa1.entry.js.map +1 -0
- package/dist/pine-core/{p-d6c72b79.system.entry.js → p-b3ee3c4c.system.entry.js} +2 -2
- package/dist/pine-core/{p-0f990fae.system.entry.js → p-b416cb4b.system.entry.js} +2 -2
- package/dist/pine-core/{p-f86fbde7.entry.js → p-b83f79a7.entry.js} +2 -2
- package/dist/pine-core/{p-D32r9DeF.system.js.map → p-bkQbPz-z.system.js.map} +1 -1
- package/dist/pine-core/{p-645564d9.entry.js → p-c38eb8e9.entry.js} +2 -2
- package/dist/pine-core/{p-32e54df7.entry.js → p-c73ef42b.entry.js} +2 -2
- package/dist/pine-core/p-c91fd600.entry.js +2 -0
- package/dist/pine-core/{p-499dcb3b.system.entry.js → p-ca9da7ea.system.entry.js} +2 -2
- package/dist/pine-core/{p-16bf3993.system.entry.js → p-cb668b61.system.entry.js} +2 -2
- package/dist/pine-core/{p-f352e850.entry.js → p-ceca2cb1.entry.js} +2 -2
- package/dist/pine-core/{p-536451ee.entry.js → p-d045b245.entry.js} +2 -2
- package/dist/pine-core/{p-16b7a61d.entry.js → p-d0eebd6d.entry.js} +2 -2
- package/dist/pine-core/{p-bc462592.system.entry.js → p-d1313dd6.system.entry.js} +2 -2
- package/dist/pine-core/{p-583c3ac5.entry.js → p-d4844049.entry.js} +2 -2
- package/dist/pine-core/p-d62a5444.system.entry.js +2 -0
- package/dist/pine-core/p-e0f21c22.entry.js +2 -0
- package/dist/pine-core/{p-a6b01b1e.entry.js → p-e463b9d3.entry.js} +2 -2
- package/dist/pine-core/{p-CYraaUrg.system.js.map → p-eUcBQ_fh.system.js.map} +1 -1
- package/dist/pine-core/{p-773d1b8d.entry.js → p-ed447b3e.entry.js} +2 -2
- package/dist/pine-core/{p-e776269e.system.entry.js → p-f42e65fd.system.entry.js} +2 -2
- package/dist/pine-core/{p-82f9a81a.entry.js → p-f74bd712.entry.js} +2 -2
- package/dist/pine-core/{p-52d1a7a1.system.entry.js → p-f81b0dbb.system.entry.js} +2 -2
- package/dist/pine-core/{p-96c4106f.entry.js → p-f84b6b5a.entry.js} +2 -2
- package/dist/pine-core/p-fa21e054.system.entry.js +2 -0
- package/dist/pine-core/{p-3f8e9f3f.entry.js → p-fa51ae5d.entry.js} +2 -2
- package/dist/pine-core/{p-b3c50d38.entry.js → p-fc830d8b.entry.js} +2 -2
- package/dist/pine-core/{p-Ob6d9Y86.system.js.map → p-k9PMan7S.system.js.map} +1 -1
- package/dist/pine-core/{p-5KztFcgn.system.js.map → p-uIsnJ30J.system.js.map} +1 -1
- package/dist/pine-core/pds-container.entry.esm.js.map +1 -0
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/types/components/pds-container/pds-container.d.ts +22 -0
- package/dist/types/components.d.ts +41 -0
- package/dist/vscode.html-data.json +70 -20
- package/hydrate/index.js +109 -62
- package/hydrate/index.mjs +109 -62
- package/package.json +2 -2
- package/dist/pine-core/p-0582a3b3.entry.js +0 -2
- package/dist/pine-core/p-40734388.entry.js +0 -2
- package/dist/pine-core/p-4175a61c.system.entry.js +0 -2
- package/dist/pine-core/p-5453ff49.system.entry.js +0 -2
- package/dist/pine-core/p-5f391ebf.entry.js +0 -2
- package/dist/pine-core/p-74392e33.system.entry.js +0 -2
- package/dist/pine-core/p-902818eb.system.entry.js +0 -2
- package/dist/pine-core/p-a3543531.entry.js +0 -2
- package/dist/pine-core/p-c6dd00b1.entry.js +0 -2
- package/dist/pine-core/p-caf01891.entry.js +0 -2
- package/dist/pine-core/p-d845fd1d.system.entry.js +0 -2
- package/dist/pine-core/p-e6097fd3.entry.js +0 -2
- package/dist/pine-core/p-fc0df65c.entry.js +0 -2
- /package/dist/pine-core/{p-244f0325.system.entry.js.map → p-06921b1a.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d5d9cf28.entry.js.map → p-0e35b09a.entry.js.map} +0 -0
- /package/dist/pine-core/{p-95af50ed.entry.js.map → p-0f376270.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5f391ebf.entry.js.map → p-10e0be55.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c6682c9d.system.entry.js.map → p-137517ea.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-fa62518b.entry.js.map → p-14ca4f31.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c78a7729.entry.js.map → p-1951d49e.entry.js.map} +0 -0
- /package/dist/pine-core/{p-1855322f.entry.js.map → p-1fa303af.entry.js.map} +0 -0
- /package/dist/pine-core/{p-61943627.system.entry.js.map → p-213d0f72.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-41382eb3.system.entry.js.map → p-23450d7a.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-eec6b183.system.entry.js.map → p-2483b797.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-67b78dd8.system.entry.js.map → p-2883cb69.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-6939924a.system.entry.js.map → p-2f0eb2b5.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-33e8d130.entry.js.map → p-2f6f60d9.entry.js.map} +0 -0
- /package/dist/pine-core/{p-48a646d8.entry.js.map → p-3a527283.entry.js.map} +0 -0
- /package/dist/pine-core/{p-46e11e20.entry.js.map → p-3b342c35.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e017b42e.system.entry.js.map → p-3e45826f.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-bc7a4275.system.entry.js.map → p-3f0a6a75.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-98b493e5.entry.js.map → p-426e90cb.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e47524a6.entry.js.map → p-426f5f57.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a1d58592.entry.js.map → p-439e3343.entry.js.map} +0 -0
- /package/dist/pine-core/{p-fa4c5b6b.system.entry.js.map → p-4591a359.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e6097fd3.entry.js.map → p-50a439b5.entry.js.map} +0 -0
- /package/dist/pine-core/{p-74392e33.system.entry.js.map → p-65d0032c.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-fe2ba477.entry.js.map → p-66644048.entry.js.map} +0 -0
- /package/dist/pine-core/{p-98d82bf0.system.entry.js.map → p-6b456e02.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e1402563.system.entry.js.map → p-6be19a23.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8f3d6de0.entry.js.map → p-6c25dfc3.entry.js.map} +0 -0
- /package/dist/pine-core/{p-91200079.system.entry.js.map → p-6dcd7876.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-781bdbf7.system.entry.js.map → p-712e0d82.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a61e92c3.system.entry.js.map → p-72a27cb7.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ed125c22.system.entry.js.map → p-72ca815d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-4c7055bb.system.entry.js.map → p-75a53dce.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-75dc3a1f.entry.js.map → p-766e52a3.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0d7eddea.system.entry.js.map → p-811e510d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-14cceca6.entry.js.map → p-838452e0.entry.js.map} +0 -0
- /package/dist/pine-core/{p-adbe19c7.system.entry.js.map → p-84b696ce.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b6465152.entry.js.map → p-8501bb6b.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a720a925.entry.js.map → p-88eb4f6c.entry.js.map} +0 -0
- /package/dist/pine-core/{p-2a185f0b.system.entry.js.map → p-8b7246ea.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0582a3b3.entry.js.map → p-8c000d7c.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c9ced0ee.entry.js.map → p-8c0fc8ff.entry.js.map} +0 -0
- /package/dist/pine-core/{p-519d9af1.system.entry.js.map → p-92df334f.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3e96ea38.system.entry.js.map → p-93eeca70.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-182b5617.system.entry.js.map → p-9606f567.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-48a6762b.system.entry.js.map → p-98e202b8.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ab2c2298.system.entry.js.map → p-9947c6cd.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-4175a61c.system.entry.js.map → p-a11c3642.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-902818eb.system.entry.js.map → p-ac186cd4.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-13f28e2a.system.entry.js.map → p-ae238530.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ce47aaaa.system.entry.js.map → p-afad45f6.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d6c72b79.system.entry.js.map → p-b3ee3c4c.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0f990fae.system.entry.js.map → p-b416cb4b.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f86fbde7.entry.js.map → p-b83f79a7.entry.js.map} +0 -0
- /package/dist/pine-core/{p-645564d9.entry.js.map → p-c38eb8e9.entry.js.map} +0 -0
- /package/dist/pine-core/{p-32e54df7.entry.js.map → p-c73ef42b.entry.js.map} +0 -0
- /package/dist/pine-core/{p-fc0df65c.entry.js.map → p-c91fd600.entry.js.map} +0 -0
- /package/dist/pine-core/{p-499dcb3b.system.entry.js.map → p-ca9da7ea.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-16bf3993.system.entry.js.map → p-cb668b61.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f352e850.entry.js.map → p-ceca2cb1.entry.js.map} +0 -0
- /package/dist/pine-core/{p-536451ee.entry.js.map → p-d045b245.entry.js.map} +0 -0
- /package/dist/pine-core/{p-16b7a61d.entry.js.map → p-d0eebd6d.entry.js.map} +0 -0
- /package/dist/pine-core/{p-bc462592.system.entry.js.map → p-d1313dd6.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-583c3ac5.entry.js.map → p-d4844049.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5453ff49.system.entry.js.map → p-d62a5444.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c6dd00b1.entry.js.map → p-e0f21c22.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a6b01b1e.entry.js.map → p-e463b9d3.entry.js.map} +0 -0
- /package/dist/pine-core/{p-773d1b8d.entry.js.map → p-ed447b3e.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e776269e.system.entry.js.map → p-f42e65fd.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-82f9a81a.entry.js.map → p-f74bd712.entry.js.map} +0 -0
- /package/dist/pine-core/{p-52d1a7a1.system.entry.js.map → p-f81b0dbb.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-96c4106f.entry.js.map → p-f84b6b5a.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d845fd1d.system.entry.js.map → p-fa21e054.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3f8e9f3f.entry.js.map → p-fa51ae5d.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b3c50d38.entry.js.map → p-fc830d8b.entry.js.map} +0 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
const NAMED_SIZES = new Set(['sm', 'md', 'lg', 'xl', 'full']);
|
|
3
|
+
/**
|
|
4
|
+
* @part container - The inner semantic container element
|
|
5
|
+
*/
|
|
6
|
+
export class PdsContainer {
|
|
7
|
+
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* Sets the semantic HTML tag rendered as the inner container element.
|
|
10
|
+
* @default 'div'
|
|
11
|
+
*/
|
|
12
|
+
this.tag = 'div';
|
|
13
|
+
/**
|
|
14
|
+
* If `true`, the container is centered horizontally using `margin-inline: auto`.
|
|
15
|
+
* @default true
|
|
16
|
+
*/
|
|
17
|
+
this.centered = true;
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
const Tag = this.tag;
|
|
21
|
+
const isNamed = this.size !== undefined && NAMED_SIZES.has(this.size);
|
|
22
|
+
const customSize = this.size !== undefined && !isNamed ? this.size : undefined;
|
|
23
|
+
const hostStyle = {};
|
|
24
|
+
if (customSize)
|
|
25
|
+
hostStyle['--pine-container-max-width'] = customSize;
|
|
26
|
+
if (!this.centered)
|
|
27
|
+
hostStyle['margin-inline'] = '0';
|
|
28
|
+
return (h(Host, { key: 'b8055b9add2e9abfeaf61f233a0f22e559829eb2', class: { [`pds-container--${this.size}`]: isNamed }, style: Object.keys(hostStyle).length ? hostStyle : undefined }, h(Tag, { key: '8aac62d1a6639063d10b8c51539ca0bc3ca0bae4', part: "container" }, h("slot", { key: '747e55553b7660159ee9d0192ccb8ed29a99f0b0' }))));
|
|
29
|
+
}
|
|
30
|
+
static get is() { return "pds-container"; }
|
|
31
|
+
static get encapsulation() { return "shadow"; }
|
|
32
|
+
static get originalStyleUrls() {
|
|
33
|
+
return {
|
|
34
|
+
"$": ["pds-container.scss"]
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
static get styleUrls() {
|
|
38
|
+
return {
|
|
39
|
+
"$": ["pds-container.css"]
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
static get properties() {
|
|
43
|
+
return {
|
|
44
|
+
"size": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"mutable": false,
|
|
47
|
+
"complexType": {
|
|
48
|
+
"original": "string",
|
|
49
|
+
"resolved": "string",
|
|
50
|
+
"references": {}
|
|
51
|
+
},
|
|
52
|
+
"required": false,
|
|
53
|
+
"optional": true,
|
|
54
|
+
"docs": {
|
|
55
|
+
"tags": [],
|
|
56
|
+
"text": "Sets the maximum width of the container. Accepts a named size token\n(`'sm'` | `'md'` | `'lg'` | `'xl'` | `'full'`) or any valid CSS length value (e.g. `'640px'`, `'50rem'`).\nWhen omitted, no max-width is applied."
|
|
57
|
+
},
|
|
58
|
+
"getter": false,
|
|
59
|
+
"setter": false,
|
|
60
|
+
"reflect": false,
|
|
61
|
+
"attribute": "size"
|
|
62
|
+
},
|
|
63
|
+
"tag": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"mutable": false,
|
|
66
|
+
"complexType": {
|
|
67
|
+
"original": "'div' | 'main' | 'section' | 'article'",
|
|
68
|
+
"resolved": "\"article\" | \"div\" | \"main\" | \"section\"",
|
|
69
|
+
"references": {}
|
|
70
|
+
},
|
|
71
|
+
"required": false,
|
|
72
|
+
"optional": false,
|
|
73
|
+
"docs": {
|
|
74
|
+
"tags": [{
|
|
75
|
+
"name": "default",
|
|
76
|
+
"text": "'div'"
|
|
77
|
+
}],
|
|
78
|
+
"text": "Sets the semantic HTML tag rendered as the inner container element."
|
|
79
|
+
},
|
|
80
|
+
"getter": false,
|
|
81
|
+
"setter": false,
|
|
82
|
+
"reflect": false,
|
|
83
|
+
"attribute": "tag",
|
|
84
|
+
"defaultValue": "'div'"
|
|
85
|
+
},
|
|
86
|
+
"centered": {
|
|
87
|
+
"type": "boolean",
|
|
88
|
+
"mutable": false,
|
|
89
|
+
"complexType": {
|
|
90
|
+
"original": "boolean",
|
|
91
|
+
"resolved": "boolean",
|
|
92
|
+
"references": {}
|
|
93
|
+
},
|
|
94
|
+
"required": false,
|
|
95
|
+
"optional": false,
|
|
96
|
+
"docs": {
|
|
97
|
+
"tags": [{
|
|
98
|
+
"name": "default",
|
|
99
|
+
"text": "true"
|
|
100
|
+
}],
|
|
101
|
+
"text": "If `true`, the container is centered horizontally using `margin-inline: auto`."
|
|
102
|
+
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false,
|
|
105
|
+
"reflect": false,
|
|
106
|
+
"attribute": "centered",
|
|
107
|
+
"defaultValue": "true"
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=pds-container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pds-container.js","sourceRoot":"","sources":["../../../../src/components/pds-container/pds-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzD,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;AAE9D;;GAEG;AAMH,MAAM,OAAO,YAAY;IALzB;QAaE;;;WAGG;QACK,QAAG,GAA2C,KAAK,CAAC;QAE5D;;;WAGG;QACK,aAAQ,GAAY,IAAI,CAAC;KAsBlC;IApBC,MAAM;QACJ,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QACrB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtE,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;QAE/E,MAAM,SAAS,GAA2B,EAAE,CAAC;QAC7C,IAAI,UAAU;YAAE,SAAS,CAAC,4BAA4B,CAAC,GAAG,UAAU,CAAC;QACrE,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,SAAS,CAAC,eAAe,CAAC,GAAG,GAAG,CAAC;QAErD,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,EAAE,EAAE,CAAC,kBAAkB,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,EACnD,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,CAAE,SAAiB,CAAC,CAAC,CAAC,SAAS;YAErE,EAAC,GAAG,qDAAC,IAAI,EAAC,WAAW;gBACnB,8DAAQ,CACJ,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop } from '@stencil/core';\n\nconst NAMED_SIZES = new Set(['sm', 'md', 'lg', 'xl', 'full']);\n\n/**\n * @part container - The inner semantic container element\n */\n@Component({\n tag: 'pds-container',\n styleUrl: 'pds-container.scss',\n shadow: true,\n})\nexport class PdsContainer {\n /**\n * Sets the maximum width of the container. Accepts a named size token\n * (`'sm'` | `'md'` | `'lg'` | `'xl'` | `'full'`) or any valid CSS length value (e.g. `'640px'`, `'50rem'`).\n * When omitted, no max-width is applied.\n */\n @Prop() size?: string;\n\n /**\n * Sets the semantic HTML tag rendered as the inner container element.\n * @default 'div'\n */\n @Prop() tag: 'div' | 'main' | 'section' | 'article' = 'div';\n\n /**\n * If `true`, the container is centered horizontally using `margin-inline: auto`.\n * @default true\n */\n @Prop() centered: boolean = true;\n\n render() {\n const Tag = this.tag;\n const isNamed = this.size !== undefined && NAMED_SIZES.has(this.size);\n const customSize = this.size !== undefined && !isNamed ? this.size : undefined;\n\n const hostStyle: Record<string, string> = {};\n if (customSize) hostStyle['--pine-container-max-width'] = customSize;\n if (!this.centered) hostStyle['margin-inline'] = '0';\n\n return (\n <Host\n class={{ [`pds-container--${this.size}`]: isNamed }}\n style={Object.keys(hostStyle).length ? (hostStyle as any) : undefined}\n >\n <Tag part=\"container\">\n <slot />\n </Tag>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
component: 'pds-container',
|
|
5
|
+
title: 'components/Layout/Container',
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const BaseTemplate = (args) => html`
|
|
9
|
+
<pds-container
|
|
10
|
+
${args.size ? `size="${args.size}"` : ''}
|
|
11
|
+
tag="${args.tag}"
|
|
12
|
+
centered="${args.centered}"
|
|
13
|
+
>
|
|
14
|
+
${args.slot}
|
|
15
|
+
</pds-container>`;
|
|
16
|
+
|
|
17
|
+
export const Default = BaseTemplate.bind();
|
|
18
|
+
Default.args = {
|
|
19
|
+
slot: html`<pds-box background-color="secondary" padding="md"><pds-text tag="p">No max-width applied — container grows to fill its parent.</pds-text></pds-box>`,
|
|
20
|
+
tag: 'div',
|
|
21
|
+
centered: true,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const Sm = BaseTemplate.bind();
|
|
25
|
+
Sm.args = {
|
|
26
|
+
size: 'sm',
|
|
27
|
+
tag: 'div',
|
|
28
|
+
centered: true,
|
|
29
|
+
slot: html`<pds-box background-color="secondary" padding="md"><pds-text tag="p">sm — 340px max-width. Narrow forms, confirmations.</pds-text></pds-box>`,
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const Md = BaseTemplate.bind();
|
|
33
|
+
Md.args = {
|
|
34
|
+
size: 'md',
|
|
35
|
+
tag: 'div',
|
|
36
|
+
centered: true,
|
|
37
|
+
slot: html`<pds-box background-color="secondary" padding="md"><pds-text tag="p">md — 520px max-width. Standard forms, settings panels.</pds-text></pds-box>`,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const Lg = BaseTemplate.bind();
|
|
41
|
+
Lg.args = {
|
|
42
|
+
size: 'lg',
|
|
43
|
+
tag: 'div',
|
|
44
|
+
centered: true,
|
|
45
|
+
slot: html`<pds-box background-color="secondary" padding="md"><pds-text tag="p">lg — 700px max-width. Wide panels, content pages.</pds-text></pds-box>`,
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const Xl = BaseTemplate.bind();
|
|
49
|
+
Xl.args = {
|
|
50
|
+
size: 'xl',
|
|
51
|
+
tag: 'div',
|
|
52
|
+
centered: true,
|
|
53
|
+
slot: html`<pds-box background-color="secondary" padding="md"><pds-text tag="p">xl — 1064px max-width. Page-level wrappers.</pds-text></pds-box>`,
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export const Full = BaseTemplate.bind();
|
|
57
|
+
Full.args = {
|
|
58
|
+
size: 'full',
|
|
59
|
+
tag: 'div',
|
|
60
|
+
centered: true,
|
|
61
|
+
slot: html`<pds-box background-color="secondary" padding="md"><pds-text tag="p">full — 1440px max-width. Max-width site container.</pds-text></pds-box>`,
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export const ArbitrarySize = BaseTemplate.bind();
|
|
65
|
+
ArbitrarySize.args = {
|
|
66
|
+
size: '640px',
|
|
67
|
+
tag: 'div',
|
|
68
|
+
centered: true,
|
|
69
|
+
slot: html`<pds-box background-color="secondary" padding="md"><pds-text tag="p">Arbitrary size — 640px passed directly as a CSS length.</pds-text></pds-box>`,
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export const NotCentered = BaseTemplate.bind();
|
|
73
|
+
NotCentered.args = {
|
|
74
|
+
size: 'md',
|
|
75
|
+
tag: 'div',
|
|
76
|
+
centered: false,
|
|
77
|
+
slot: html`<pds-box background-color="secondary" padding="md"><pds-text tag="p">centered=false — aligned to the start of its container.</pds-text></pds-box>`,
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export const SemanticTag = (args) => html`
|
|
81
|
+
<pds-container size="${args.size}" tag="main">
|
|
82
|
+
<pds-box direction="column" background-color="secondary" padding="md">
|
|
83
|
+
<pds-text tag="h1">Page title</pds-text>
|
|
84
|
+
<pds-text tag="p">Using tag="main" as the inner container element.</pds-text>
|
|
85
|
+
</pds-box>
|
|
86
|
+
</pds-container>`;
|
|
87
|
+
SemanticTag.args = {
|
|
88
|
+
size: 'lg',
|
|
89
|
+
};
|
|
@@ -86,7 +86,7 @@ export class PdsCopytext {
|
|
|
86
86
|
return classNames.join(' ');
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: '43a3870fa4c24416e2e6e99dd7c423a5c32ac91e', class: this.classNames(), id: this.componentId }, h("pds-button", { key: 'f0735d3f245dd7150e88b3dd1a191c3ee86b6293', type: "button", variant: "unstyled", onClick: this.handleClick }, h("span", { key: 'ddf7cf205f9bb11dd4b4111435bb7efc15b0af61', ref: (el) => this.valueSpanEl = el }, this.value), h("pds-icon", { key: '0f35d997eb1766631ac6098bdb12d0aff9813012', icon: copyIcon, size: "16px" }))));
|
|
90
90
|
}
|
|
91
91
|
static get is() { return "pds-copytext"; }
|
|
92
92
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class PdsDivider {
|
|
|
19
19
|
return classNames.join(' ');
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: 'c3a01882db1119b8397353aaed193813cba0bfb8', id: this.componentId }, h("hr", { key: 'fe20a28dbd2f10cec125df4dbb4ba7a2837628f1', class: this.classNames() })));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "pds-divider"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -72,7 +72,7 @@ export class PdsDropdownMenuItem {
|
|
|
72
72
|
}, tabIndex: this.disabled ? -1 : 0, type: "button", part: "button", onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : null }, h("slot", null)));
|
|
73
73
|
}
|
|
74
74
|
render() {
|
|
75
|
-
return (h(Host, { key: '
|
|
75
|
+
return (h(Host, { key: 'd2a6c182b330dae3738650002a4643c0f1fd3d1a', id: this.componentId, class: { 'is-disabled': this.disabled, 'destructive': !this.disabled && this.destructive }, onClick: () => !this.disabled && this.handleClick(), role: "none", tabIndex: -1, "aria-disabled": this.disabled ? 'true' : null }, this.renderElement()));
|
|
76
76
|
}
|
|
77
77
|
static get is() { return "pds-dropdown-menu-item"; }
|
|
78
78
|
static get encapsulation() { return "shadow"; }
|
|
@@ -8,7 +8,7 @@ export class PdsDropdownMenuSeparator {
|
|
|
8
8
|
this.disabled = false;
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: '1058ea61d2ad7c311ee162b909df2531f3589e4c', id: this.componentId }, h("hr", { key: 'a8c2f69ef5fba5ea4ea74553fe72544e31eafb1b' })));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "pds-dropdown-menu-separator"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -306,7 +306,7 @@ export class PdsDropdownMenu {
|
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
render() {
|
|
309
|
-
return (h(Host, { key: '
|
|
309
|
+
return (h(Host, { key: '467662b4b14612153ba10a4d3a6f578edec52d89', id: this.componentId }, h("slot", { key: 'ba1b44fe9276b96fd123694742a34bd7c8717a3d', name: "trigger", onSlotchange: this.handleTriggerSlotChange }), h("pds-box", { key: '8287d0cc6fea80eeb73ca355eb247883d6257c19', "border-radius": "sm", display: "flex", direction: "column", class: "pds-dropdown-menu--panel is-hidden", shadow: "100", role: "menu", "aria-orientation": "vertical", part: "menu-panel" }, h("slot", { key: '5d5aa3cc226fabaadb4572bfa38f9189dbcb55c7', onSlotchange: this.handleSlotChange }))));
|
|
310
310
|
}
|
|
311
311
|
static get is() { return "pds-dropdown-menu"; }
|
|
312
312
|
static get encapsulation() { return "shadow"; }
|
|
@@ -481,7 +481,7 @@ export class PdsFilter {
|
|
|
481
481
|
return null;
|
|
482
482
|
}
|
|
483
483
|
render() {
|
|
484
|
-
return (h(Host, { key: '
|
|
484
|
+
return (h(Host, { key: 'e70f7bf3612c5c8abe7445ba3a4e53391a68de9e', id: this.componentId }, h("button", { key: '2cba723795c43509762f75cb4b6607ce547f7c39', class: this.getTriggerClasses(), type: "button", popoverTarget: this.variant !== 'clear' ? `${this.componentId}-popover` : undefined, popoverTargetAction: this.variant !== 'clear' ? 'toggle' : undefined, onKeyDown: this.variant === 'clear' ? this.handleKeyDown : undefined, onClick: (event) => this.handleClick(event), part: "button", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": this.variant !== 'clear' ? 'true' : undefined, "aria-controls": this.variant !== 'clear' ? `${this.componentId}-popover` : undefined }, h("span", { key: '8244dd35cc74c6f0138be2d3495d94b97f60474f', class: "pds-filter__button-content", part: "button-content" }, this.renderIcon(), this.text && (h("span", { key: 'd97c085d1df1ca13ccaf1f26ca2dac81bdfb105a', class: "pds-filter__button-text", part: "button-text" }, this.text)), this.renderDropdownIcon())), this.variant !== 'clear' && (h("div", { key: '0b9daf4591ea20db06813ce4c39442d69af3fda1', ref: el => this.popoverEl = el, id: `${this.componentId}-popover`, class: "pds-filter__popover", popover: "auto", part: "popover" }, h("slot", { key: 'f4499fe2d5a6a169318fe65cbbc558565c8644f9' })))));
|
|
485
485
|
}
|
|
486
486
|
static get is() { return "pds-filter"; }
|
|
487
487
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ import { Host, h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class PdsFilters {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '7007a635d3866781dfd67bd2d3b2dab46d36cffc', id: this.componentId }, h("div", { key: 'e6eb4c76bfb39050aaa01ad297df995de7df484b', class: "pds-filters" }, h("slot", { key: '543c83c7422b3e1e9a2446618fe8119d76478df4' }))));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "pds-filters"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,9 +15,9 @@ export class PdsImage {
|
|
|
15
15
|
this.loading = 'eager';
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'fa205f03d5c378d27a66cbfd520ae2bc7ab9e9df', class: {
|
|
19
19
|
'pds-image': true,
|
|
20
|
-
}, id: this.componentId }, h("img", { key: '
|
|
20
|
+
}, id: this.componentId }, h("img", { key: '8d03dddf6e924ef8aebea2bf34a32e326bee329a', alt: this.alt, height: this.height, loading: this.loading, sizes: this.sizes, src: this.src, srcset: this.srcset, width: this.width })));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "pds-image"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -286,7 +286,7 @@ export class PdsInput {
|
|
|
286
286
|
'has-prepend': this.hasPrepend,
|
|
287
287
|
'has-append': this.hasAppend,
|
|
288
288
|
};
|
|
289
|
-
return (h(Host, { key: '
|
|
289
|
+
return (h(Host, { key: 'ecf4cc212e5c3ebc18082b790803e6b2ccb8ca77', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null, "has-prefix": this.hasPrefix ? 'true' : null, "has-suffix": this.hasSuffix ? 'true' : null, "has-prepend": this.hasPrepend ? 'true' : null, "has-append": this.hasAppend ? 'true' : null, "has-action": this.hasAction && !this.hideLabel ? 'true' : null, "full-width": this.fullWidth ? 'true' : null }, h("div", { key: 'acdf92a30068fc04a17816ec6d85295b47e512ee', class: "pds-input" }, label && (h("div", { key: 'cc804ec7ec9bb1e588863bdb636f2cc9d61108e0', class: "pds-input__label-wrapper" }, h("label", { key: 'c6d8e54070422bb9856978d17dc99e6633e98e23', htmlFor: componentId, class: "pds-input__label" }, h("span", { key: 'beee330abe246af7e256c42237d061b1e3ed34fe', class: this.hideLabel ? 'visually-hidden' : '' }, label, this.required && h("span", { key: 'd4b6792646b18514f9c5ab008467ebd8e009efa8', class: "pds-input__required-indicator" }, " *"))), !this.hideLabel && this.renderAction())), h("div", { key: '0c147663fad34fc1fd3b294dbe93dc0618f32664', class: inputWrapperClasses }, this.renderPrepend(), this.renderPrefix(), h("input", Object.assign({ key: 'fcf07f3facc9494a9422ac5a54bbcd1dc083ce28', ref: (input) => (this.nativeInput = input), class: "pds-input__field", "aria-describedby": assignDescription(componentId, invalid, helperMessage), "aria-invalid": invalid ? "true" : undefined, autocomplete: this.autocomplete, disabled: disabled, id: componentId, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, step: this.step, type: this.type, value: value, onInput: this.onInputEvent, onChange: this.onChangeEvent, onBlur: this.onBlurEvent, onFocus: this.onFocusEvent, onKeyDown: this.onKeyDownEvent, onCompositionstart: this.onCompositionStart, onCompositionend: this.onCompositionEnd }, this.inheritedAttributes)), this.renderSuffix(), this.renderAppend()), helperMessage && (h("p", { key: 'dbed2e91b2431beaf630460b5d042f4aa7532665', class: "pds-input__helper-message", id: messageId(componentId, 'helper') }, helperMessage)), errorMessage && (h("p", { key: 'ad14be8e2280b58742486cddba591355ed7d3df6', class: "pds-input__error-message", id: messageId(componentId, 'error') }, h("pds-icon", { key: '0badd7b84d29e826f3ca9bd1ad108823c24e3996', icon: danger, size: "small" }), errorMessage)))));
|
|
290
290
|
}
|
|
291
291
|
static get is() { return "pds-input"; }
|
|
292
292
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,8 +49,8 @@ export class PdsLink {
|
|
|
49
49
|
const targetValue = this.target || (this.external ? '_blank' : undefined);
|
|
50
50
|
const showExternalIcon = this.external;
|
|
51
51
|
const relValue = targetValue === '_blank' ? 'noopener noreferrer' : undefined;
|
|
52
|
-
return (h("a", { key: '
|
|
53
|
-
h("pds-icon", { key: '
|
|
52
|
+
return (h("a", { key: '8ab68ceb91a4c7b155a4ae54d2cb421af4d0eec1', class: this.classNames(), download: this.download, href: this.href, id: this.componentId, part: "link", target: targetValue, rel: relValue, style: this.setLinkStyles() }, h("slot", { key: 'b90dc967867a3b765d632c16458236e6e4ccf97e' }, this.href), showExternalIcon &&
|
|
53
|
+
h("pds-icon", { key: 'ebffdba1a21f7b0f5730608ec5eb88519ee79d1b', icon: launch, size: this.fontSize })));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "pds-link"; }
|
|
56
56
|
static get encapsulation() { return "shadow"; }
|
|
@@ -46,7 +46,7 @@ export class PdsLoader {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: 'fc312fc9ebf973506190e693cd251f25e37f3d0a', class: `pds-loader ${this.isLoading ? '' : 'pds-loader--hidden'}`, "aria-hidden": !this.isLoading, "aria-busy": this.isLoading, "aria-live": "polite" }, this.variant === 'spinner' && (h("div", { key: 'c9eab32510368d1fd6db7669b3db640c229911f2', class: "pds-loader--spinner" }, h("svg", { key: '359d9f171378064c6121e583efe09eace3377e44', style: this.getSvgStyle(), viewBox: "0 0 200 200", fill: "none", part: "loader-svg" }, h("defs", { key: '263409d92ab95fa34df4e879934e04e6a587f23b' }, h("linearGradient", { key: 'e9b32747efcb60bbebd8734fdd2c2d5a400974c1', id: "spinner-secondHalf" }, h("stop", { key: 'db61c891cf635b72e36a152b944b6c9ce3569be3', offset: "0%", "stop-opacity": "0", "stop-color": "currentColor" }), h("stop", { key: 'fb964af08941ad174ecaf0c329d79e25fff45a9c', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" })), h("linearGradient", { key: '89d815d1f076ffe82d189d51fce14fb48ecb0926', id: "spinner-firstHalf" }, h("stop", { key: '43b753f80ab136d38635a6ab921899fc8fd3a6b2', offset: "0%", "stop-opacity": "1", "stop-color": "currentColor" }), h("stop", { key: '7ce201ac86ae5cd291f8fba22f1e6517d53af025', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" }))), h("g", { key: 'ea7e594df07f7d634fa2142785f0791b21a71d41', class: "pds-loader__spinner-path" }, h("path", { key: '8ac8cead5078716ca9169150be8c0c64ecedc854', stroke: "url(#spinner-secondHalf)", d: "M 4 100 A 96 96 0 0 1 196 100" }), h("path", { key: 'c4ed3d7f386ac59dcb540b369f52925b216ea950', stroke: "url(#spinner-firstHalf)", d: "M 196 100 A 96 96 0 0 1 4 100" }), h("path", { key: 'ecc2e2b7240c23e35af8b9aa049ac45dff43ac9f', stroke: "currentColor", "stroke-linecap": "round", d: "M 4 100 A 96 96 0 0 1 4 98" }))))), this.variant === 'typing' && (h("div", { key: '8cb7180432a6cca86c7fcc2af3f1e05afb751a9d', class: "pds-loader--typing" }, h("span", { key: 'c09247cbcf86fef899f206bee1458a1388cbdd39' }), h("span", { key: '07bdfe8ab1971fa20544022412e2141721111506' }), h("span", { key: '9444f7ed6a13475694e1eda50b891ff63fb91297' }))), h("div", { key: '3b717ff6b9f38f9710ca0556ebbc66bd86b7e1b6', class: `pds-loader__label ${this.showLabel ? '' : 'pds-loader--hidden'}` }, h("slot", { key: 'ab65224fab189a30d0cf18caf086c621cbd78eaa', name: "label" }, "Loading..."))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "pds-loader"; }
|
|
52
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -173,10 +173,10 @@ export class PdsModalContent {
|
|
|
173
173
|
render() {
|
|
174
174
|
// Only apply max-height style if it's not 'none'
|
|
175
175
|
const styleObj = this.contentMaxHeight !== 'none' ? { maxHeight: this.contentMaxHeight } : {};
|
|
176
|
-
return (h(Host, { key: '
|
|
176
|
+
return (h(Host, { key: 'fae42c1fc151e4855cd2c731802c15851473be79' }, h("div", { key: 'feb61d6a7227d8113b931df6280358cd9b4fe583', class: {
|
|
177
177
|
'pds-modal-content': true,
|
|
178
178
|
[`pds-modal-content--border-${this.border}`]: true
|
|
179
|
-
}, style: styleObj, tabindex: "-1" }, h("slot", { key: '
|
|
179
|
+
}, style: styleObj, tabindex: "-1" }, h("slot", { key: '1c9e55ecd1ad353699e5a4590ee04c9005719f6d' }))));
|
|
180
180
|
}
|
|
181
181
|
static get is() { return "pds-modal-content"; }
|
|
182
182
|
static get originalStyleUrls() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class PdsModalFooter {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("footer", { key: '
|
|
4
|
+
return (h("footer", { key: '0fa58ce225ce31a1f40d6ce1d3276e716b36de8d', class: "pds-modal__footer" }, h("slot", { key: 'df0bbdb56c711c7eb34db7181f940de11d4449ef' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "pds-modal-footer"; }
|
|
7
7
|
static get originalStyleUrls() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class PdsModalHeader {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("header", { key: '
|
|
4
|
+
return (h("header", { key: '1a471bd6dfa2b654f5a6ebdf8fb5baef728324b3', class: "pds-modal__header" }, h("slot", { key: '946a365ab3c2ca627d618188890d385c054b4c16' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "pds-modal-header"; }
|
|
7
7
|
static get originalStyleUrls() {
|
|
@@ -233,14 +233,14 @@ export class PdsModal {
|
|
|
233
233
|
return thisZIndex === maxZIndex;
|
|
234
234
|
}
|
|
235
235
|
render() {
|
|
236
|
-
return (h("dialog", { key: '
|
|
236
|
+
return (h("dialog", { key: 'cf2710a889d8f0e80a3551088ab38a88dc44ad1e', class: {
|
|
237
237
|
'pds-modal__backdrop': true,
|
|
238
238
|
'open': this.open
|
|
239
|
-
}, "aria-modal": "true", "aria-labelledby": `${this.componentId}-heading`, onClick: this.handleBackdropClick }, h("div", { key: '
|
|
239
|
+
}, "aria-modal": "true", "aria-labelledby": `${this.componentId}-heading`, onClick: this.handleBackdropClick }, h("div", { key: 'a06d017153e67ad38bc1ced56ba22aeade977aaf', class: {
|
|
240
240
|
'pds-modal': true,
|
|
241
241
|
[`pds-modal--${this.size}`]: true,
|
|
242
242
|
'pds-modal--scrollable': this.scrollable
|
|
243
|
-
}, part: "modal" }, h("slot", { key: '
|
|
243
|
+
}, part: "modal" }, h("slot", { key: 'd995c586809a4940c091912244a86cb4605a961c' }))));
|
|
244
244
|
}
|
|
245
245
|
static get is() { return "pds-modal"; }
|
|
246
246
|
static get originalStyleUrls() {
|
|
@@ -77,7 +77,7 @@ export class MockPdsModal {
|
|
|
77
77
|
'pds-modal__backdrop': true,
|
|
78
78
|
'open': this.open,
|
|
79
79
|
};
|
|
80
|
-
return (h("div", { key: '
|
|
80
|
+
return (h("div", { key: '6e7f71b339764894e1f17d253fc3c8e0243e4f90', class: backdropClasses }, h("div", { key: '25b2f82c1af743156d152880631d4294dfec68b5', class: modalClasses, role: "dialog", "aria-modal": "true", "aria-labelledby": this.componentId ? `${this.componentId}-heading` : null, part: "modal" }, h("div", { key: '6bc97e805daee5e5dd547fa0b919a05cf1b6a6a1', class: "pds-modal__header" }, h("slot", { key: 'd9e7c248d983e3c055ed7e0aea5a4d5a15dfea12', name: "header" })), h("div", { key: '5608ee069b59cb34dc812bde22f83c6bce7e6904', class: "pds-modal-content" }, h("slot", { key: '6e3e790330598e1bde733350e5e216d269426e51' })), h("div", { key: '381f3c4e1c9c83b0687e1f1484b64334e388d669', class: "pds-modal__footer" }, h("slot", { key: '6e3a3cb64623de59a409072ab9c1bf65af8c2f6c', name: "footer" })))));
|
|
81
81
|
}
|
|
82
82
|
static get is() { return "mock-pds-modal"; }
|
|
83
83
|
static get originalStyleUrls() {
|
|
@@ -942,10 +942,10 @@ export class PdsMultiselect {
|
|
|
942
942
|
}
|
|
943
943
|
render() {
|
|
944
944
|
const hasSelections = this.selectedItems.length > 0;
|
|
945
|
-
return (h(Host, { key: '
|
|
945
|
+
return (h(Host, { key: '086b6d2d199b35110e64ba1da3c12f1a81360581', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: 'c2faf217a97de056a9111a78e7077025e4ab5ee1', class: "pds-multiselect", onFocusout: this.handleContainerFocusOut }, this.label && (h("label", { key: '0aff86a3a0054aef256bac5c0204dd914a9bd3ae', id: `${this.componentId}-label`, htmlFor: this.componentId, class: {
|
|
946
946
|
'pds-multiselect__label': true,
|
|
947
947
|
'visually-hidden': this.hideLabel,
|
|
948
|
-
} }, this.label)), h("div", { key: '
|
|
948
|
+
} }, this.label)), h("div", { key: '3b92119871dc32bb3c9a559be816bdece2fc30a6', class: "pds-multiselect__wrapper", ref: el => (this.containerEl = el), style: { width: this.triggerWidth } }, this.selectedDisplay === 'pill' && this.pillPosition === 'inline' ? (h("div", { ref: el => (this.pillInlineTriggerEl = el || undefined), part: "trigger", class: {
|
|
949
949
|
'pds-multiselect__trigger': true,
|
|
950
950
|
'pds-multiselect__trigger--open': this.isOpen,
|
|
951
951
|
'pds-multiselect__trigger--disabled': this.disabled,
|
|
@@ -961,7 +961,7 @@ export class PdsMultiselect {
|
|
|
961
961
|
}, id: this.componentId, disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-describedby": assignDescription(this.componentId, this.invalid || !!this.errorMessage, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid || !!this.errorMessage ? 'true' : undefined, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, h("span", { class: {
|
|
962
962
|
'pds-multiselect__trigger-text': true,
|
|
963
963
|
'pds-multiselect__trigger-text--placeholder': !hasSelections || (this.selectedDisplay === 'pill' && this.pillPosition === 'below'),
|
|
964
|
-
} }, this.getTriggerText()), h("pds-icon", { class: "pds-multiselect__icon", icon: enlarge }))), this.renderDropdown()), this.selectedDisplay === 'pill' && this.pillPosition === 'below' && this.renderBelowPills(), h("span", { key: '
|
|
964
|
+
} }, this.getTriggerText()), h("pds-icon", { class: "pds-multiselect__icon", icon: enlarge }))), this.renderDropdown()), this.selectedDisplay === 'pill' && this.pillPosition === 'below' && this.renderBelowPills(), h("span", { key: '07d6a6bf9ccc2fe8bfcf9502a1cd4b7abf5c5e6f', class: "visually-hidden", "aria-live": "polite", "aria-atomic": "true" }, this.removalAnnouncement), this.helperMessage && !(this.errorMessage && this.errorMessage.length > 0) && (h("p", { key: 'a94bb6f31805d31ec3cd5b5f2ca8b1984f4d41d1', class: "pds-multiselect__helper", id: messageId(this.componentId, 'helper') }, this.helperMessage)), this.errorMessage && (h("p", { key: '15afc6b9313e1fe22bd56b00eee1ebcf9e085c2e', class: "pds-multiselect__error", id: messageId(this.componentId, 'error') }, h("pds-icon", { key: '452814577b14ca8f891b101903bd1a7a7e5d8bb1', icon: danger, size: "small" }), this.errorMessage)), h("div", { key: 'd8ce787886e666303759cd2654c78b44269a40ff', style: { display: 'none' } }, h("slot", { key: '8295376fb03b23d44c5baeca9bc967514e433e0f' })))));
|
|
965
965
|
}
|
|
966
966
|
static get is() { return "pds-multiselect"; }
|
|
967
967
|
static get encapsulation() { return "shadow"; }
|
|
@@ -554,7 +554,7 @@ export class PdsPopover {
|
|
|
554
554
|
}, 16); // ~1 frame at 60fps
|
|
555
555
|
}
|
|
556
556
|
render() {
|
|
557
|
-
return (h(Host, { key: '
|
|
557
|
+
return (h(Host, { key: '835196832cb0dcec61f0bc6e5f4df08038335d5a', id: this.componentId }, h("span", { key: 'e4aadaa17ce565e00f5e038a92aae8957b22be64', class: "pds-popover__trigger-wrapper" }, h("slot", { key: '97fe58bed551bed9f3159faa430ef54fd09d2412', name: "trigger", onSlotchange: this.handleTriggerSlotChange })), h("div", { key: '8d1330a58ff77182100fb40afa78ee89ccd3146f', class: "pds-popover__content-slot-wrapper" }, h("slot", { key: '5d1136682ba7bff4a4c904fb8310443e9feb9e5b', onSlotchange: this.handleContentSlotChange }))));
|
|
558
558
|
}
|
|
559
559
|
static get is() { return "pds-popover"; }
|
|
560
560
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,7 +18,7 @@ export class PdsProgress {
|
|
|
18
18
|
this.showPercent = false;
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '23b8b17a11e6537d1f73cd435c66e779267c6909', class: this.animated ? { 'is-animated': this.animated } : '' }, h("div", { key: '6bf201015c284f26b2bb794237aef8d4e4d532ee', class: "pds-progress" }, h("label", { key: '7e144a90c1fde70e58095bda2e23b250529a8114', class: "pds-progress__label", htmlFor: this.componentId }, this.label), h("progress", { key: 'ebf00485c3c7523e184fcc022e2bcc325a13458f', id: this.componentId, max: "100", style: this.fillColor ? { '--color-progress-fill': this.fillColor } : {}, value: this.percent })), this.showPercent && h("div", { key: '6f37bd88ccb9228b0d0ca4d934a2d3cff0026533', class: "pds-progress__percentage" }, this.percent, "%")));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "pds-progress"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class PdsProperty {
|
|
|
10
10
|
this.icon = 'star';
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '947e0adfc46ab267b4a5f3e3da5dedcd8ab64d3e', id: this.componentId }, h("pds-box", { key: 'bc6fbd4eaa162a7d9ff6348d74bf15f71e776db6', "align-items": "center", gap: "xs" }, h("pds-icon", { key: '5d703e9afd94761aae842c82c7b5e9223b63b894', icon: this.icon, size: "var(--pine-dimension-sm)", "aria-hidden": "true" }), h("slot", { key: 'e5e02fb21c783f7e4027591e99cd966981babc04' }))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "pds-property"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -80,11 +80,11 @@ export class PdsRadio {
|
|
|
80
80
|
}
|
|
81
81
|
render() {
|
|
82
82
|
const renderLabelAndMessages = () => [
|
|
83
|
-
h("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, h("input", { key: '
|
|
83
|
+
h("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, h("input", { key: '75aca490be2db050f66ddd9cb45ce122bea4db53', "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, class: this.hasImage() ? 'visually-hidden' : '' }), h("span", { key: '1bbc7398d3be35e301526b0f842274a3f1db4457', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)),
|
|
84
84
|
this.helperMessage && (h("div", { key: `${this.componentId}-helper`, class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage)),
|
|
85
|
-
this.errorMessage && (h("div", { key: `${this.componentId}-error`, class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: '
|
|
85
|
+
this.errorMessage && (h("div", { key: `${this.componentId}-error`, class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: 'e1a1228fa52e68623098f09493d93aa03d2e65c4', icon: danger, size: "small" }), this.errorMessage))
|
|
86
86
|
];
|
|
87
|
-
return (h(Host, { key: '
|
|
87
|
+
return (h(Host, { key: '60fabeef5778fd30e46cfd23d05684e1743bc57f', class: this.classNames() }, this.hasImage() && (h("div", { key: '9ba3e60182a68cc8e996623cf46e17001ff451f6', class: "pds-radio__image-container", part: "image-container" }, h("slot", { key: 'bf8927129eb68ee7ed07a1f8f8727f013254e133', name: "image", onSlotchange: () => (this._hasImage = this.hasImageSlot()) }))), this.hasImage() ? (h("div", { class: "pds-radio__content-wrapper" }, renderLabelAndMessages())) : (renderLabelAndMessages())));
|
|
88
88
|
}
|
|
89
89
|
static get is() { return "pds-radio"; }
|
|
90
90
|
static get encapsulation() { return "scoped"; }
|
|
@@ -144,13 +144,13 @@ export class PdsRadioGroup {
|
|
|
144
144
|
render() {
|
|
145
145
|
const gapValue = this.getGapValue();
|
|
146
146
|
const ariaDescribedBy = this.getAriaDescribedBy();
|
|
147
|
-
return (h(Host, { key: '
|
|
147
|
+
return (h(Host, { key: '53949e8e878887189482a13e0402402b8ee79c46', class: this.classNames(), id: this._groupId, role: "group", "aria-describedby": ariaDescribedBy, style: {
|
|
148
148
|
'--pds-radio-group-gap': gapValue,
|
|
149
|
-
} }, this.groupLabel && (h("div", { key: '
|
|
149
|
+
} }, this.groupLabel && (h("div", { key: '9aa547ff0b60d1eb78ab6806c552391c119c6511', class: "pds-radio-group__label" }, this.groupLabel)), h("div", { key: '5bad4f6d4c685eca8a97b574511f21b93bdf4821', class: {
|
|
150
150
|
'pds-radio-group__radios': true,
|
|
151
151
|
'pds-radio-group__radios--row': this.direction === 'row',
|
|
152
152
|
'pds-radio-group__radios--column': this.direction === 'column',
|
|
153
|
-
} }, h("slot", { key: '
|
|
153
|
+
} }, h("slot", { key: 'ffd76f30b308f124e1df925b2fe354ffb80f59bc', onSlotchange: () => this.updateChildRadios() })), this.helperMessage && (h("div", { key: 'ea8995384b1e1c1e98d01d704bd969a97bfd2b2a', class: "pds-radio-group__message", id: messageId(this._groupId, 'helper') }, this.helperMessage)), this.errorMessage && (h("div", { key: '30726bc368c7ad2820ae4cb43faf0a45e94a51e8', class: "pds-radio-group__message pds-radio-group__message--error", id: messageId(this._groupId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: 'acc00b6e36ead10cc5cc01033ad0f619bd75f5da', icon: danger, size: "small" }), this.errorMessage))));
|
|
154
154
|
}
|
|
155
155
|
static get is() { return "pds-radio-group"; }
|
|
156
156
|
static get encapsulation() { return "scoped"; }
|
|
@@ -55,7 +55,7 @@ export class PdsRow {
|
|
|
55
55
|
})), (this.minHeight && {
|
|
56
56
|
'min-height': this.minHeight,
|
|
57
57
|
}));
|
|
58
|
-
return h(Host, { key: '
|
|
58
|
+
return h(Host, { key: '7d99184153a86e5d7d2c90fce98e05e9c4a36b81', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "pds-row"; }
|
|
61
61
|
static get originalStyleUrls() {
|
|
@@ -223,7 +223,7 @@ export class PdsSelect {
|
|
|
223
223
|
}
|
|
224
224
|
render() {
|
|
225
225
|
const hasAction = this.el.querySelector('[slot="action"]') !== null;
|
|
226
|
-
return (h(Host, { key: '
|
|
226
|
+
return (h(Host, { key: '28292440973cbb60c63a296415a617e05fc9c5ce', "aria-disabled": this.disabled ? 'true' : null, class: this.classNames(), "has-action": hasAction && !this.hideLabel ? 'true' : null }, h("div", { key: '4a0f255ecc75c9fcedfc933c0a728d26918d9a9c', class: "pds-select" }, !this.hideLabel && (h("div", { key: '1f0b2a9ccf4ce2b79d5bb4dd40ff076b415bc6ac', class: "pds-select__label-wrapper" }, h("label", { key: '9e30b1b0266981f73f0821c05e833cb66a3caf3c', htmlFor: this.componentId }, h("span", { key: '7790be41907be6c5e3b460aa84b7ea54773cc14d', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), hasAction && this.renderAction())), h("select", { key: 'd66b39ee412bfbf3c6dfff722cb061f24ba82df6', "aria-label": this.hideLabel ? this.label : undefined, autocomplete: this.autocomplete || undefined, class: "pds-select__field", disabled: this.disabled, id: this.componentId, multiple: this.multiple, name: this.name, onBlur: this.onBlur, onChange: this.onSelectUpdate, onFocus: this.onFocus, onKeyDown: this.onKeyDown, part: "select", required: this.required, ref: (el) => (this.selectEl = el) }), h("div", { key: 'daf4846494666ebade54249c8d925423e71e7d33', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, h("slot", { key: '545f421fd2679d4bb6ee34658f7dd4089ece4f81', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && h("pds-icon", { key: '0b3bcd3ceee6e6b2ab24b52f16f6cbd89ae88322', class: "pds-select__select-icon", icon: enlarge }))));
|
|
227
227
|
}
|
|
228
228
|
static get is() { return "pds-select"; }
|
|
229
229
|
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: '631a0c1150226256cdb47d1a7bc6635144bb56d0', class: "pds-sortable-item", id: this.componentId }, this.showHandle && (h("div", { key: 'bdb6ff779a5d750b75d404521bc91cad02176ea8', class: "pds-sortable-item__handle" }, h("pds-icon", { key: '144f4b6fe33a3a3a864ac48041fc93935fbf99c3', icon: handleIcon }))), h("slot", { key: 'cdddce9c5fa3fde34481c41c46c5f6504e33a358' }), this.enableActions && (h("div", { key: '527e1d22f20223a850dbd956dea4db93878fd9f9', class: "pds-sortable-item__actions" }, h("slot", { key: '85ea35dbfdf0393721471dd229e80e9e57f58230', name: "sortable-item-actions" })))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "pds-sortable-item"; }
|
|
31
31
|
static get encapsulation() { return "scoped"; }
|
|
@@ -57,7 +57,7 @@ export class PdsSortable {
|
|
|
57
57
|
this.sortableInstance = Sortable.create(this.el, sortableOptions);
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: '562bfb1ecea0b3a3f246b2e277b71f70d14b854c', class: this.classNames(), id: this.componentId }, h("slot", { key: 'a1ff894a9cd6049e532d2fa744429cec6d97e280' })));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "pds-sortable"; }
|
|
63
63
|
static get encapsulation() { return "scoped"; }
|