@pine-ds/core 1.1.0 → 1.3.0-dev.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/pds-accordion.d.ts +0 -0
- package/components/pds-avatar.d.ts +0 -0
- package/components/pds-box.d.ts +0 -0
- package/components/pds-button.d.ts +0 -0
- package/components/pds-checkbox.d.ts +0 -0
- package/components/pds-chip.d.ts +0 -0
- package/components/pds-copytext.d.ts +0 -0
- package/components/pds-divider.d.ts +0 -0
- package/components/pds-image.d.ts +0 -0
- package/components/pds-input.d.ts +0 -0
- package/components/pds-link.d.ts +0 -0
- package/components/pds-loader.d.ts +11 -0
- package/components/pds-progress.d.ts +0 -0
- package/components/pds-radio.d.ts +0 -0
- package/components/pds-row.d.ts +0 -0
- package/components/pds-sortable-item.d.ts +0 -0
- package/components/pds-sortable.d.ts +0 -0
- package/components/pds-switch.d.ts +0 -0
- package/components/pds-tab.d.ts +0 -0
- package/components/pds-table-body.d.ts +0 -0
- package/components/pds-table-cell.d.ts +0 -0
- package/components/pds-table-head-cell.d.ts +0 -0
- package/components/pds-table-head.d.ts +0 -0
- package/components/pds-table-row.d.ts +0 -0
- package/components/pds-table.d.ts +0 -0
- package/components/pds-tabpanel.d.ts +0 -0
- package/components/pds-tabs.d.ts +0 -0
- package/components/pds-textarea.d.ts +0 -0
- package/components/pds-tooltip.d.ts +0 -0
- package/dist/docs.json +312 -70
- package/dist/pine-core/closest-d2d192be.js +11 -0
- package/dist/pine-core/closest-d2d192be.js.map +1 -0
- package/dist/pine-core/index-00e73f84.js +329 -0
- package/dist/pine-core/index-00e73f84.js.map +1 -0
- package/dist/{cjs/index-7d9c71f6.js → pine-core/index-cccc19b7.js} +1575 -213
- package/dist/pine-core/index-cccc19b7.js.map +1 -0
- package/dist/pine-core/index.esm.js +1 -0
- package/dist/pine-core/index.esm.js.map +1 -1
- package/dist/{esm → pine-core}/pds-accordion.entry.js +4 -5
- package/dist/pine-core/pds-accordion.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-avatar.entry.js +6 -7
- package/dist/pine-core/pds-avatar.entry.js.map +1 -0
- package/dist/pine-core/pds-box.entry.js +77 -0
- package/dist/pine-core/pds-box.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-button.entry.js +7 -5
- package/dist/pine-core/pds-button.entry.js.map +1 -0
- package/dist/pine-core/pds-checkbox.entry.js +70 -0
- package/dist/pine-core/pds-checkbox.entry.js.map +1 -0
- package/dist/pine-core/pds-chip.entry.js +46 -0
- package/dist/pine-core/pds-chip.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-copytext.entry.js +4 -5
- package/dist/pine-core/pds-copytext.entry.js.map +1 -0
- package/dist/pine-core/pds-divider.entry.js +31 -0
- package/dist/pine-core/pds-divider.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-image.entry.js +2 -3
- package/dist/pine-core/pds-image.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-input.entry.js +4 -5
- package/dist/pine-core/pds-input.entry.js.map +1 -0
- package/dist/{esm/pds-label-d7e11551.js → pine-core/pds-label-7201663d.js} +2 -2
- package/dist/{esm/pds-label-d7e11551.js.map → pine-core/pds-label-7201663d.js.map} +1 -1
- package/dist/{esm → pine-core}/pds-link.entry.js +4 -5
- package/dist/pine-core/pds-link.entry.js.map +1 -0
- package/dist/pine-core/pds-loader.entry.js +44 -0
- package/dist/pine-core/pds-loader.entry.js.map +1 -0
- package/dist/pine-core/pds-progress.entry.js +23 -0
- package/dist/pine-core/pds-progress.entry.js.map +1 -0
- package/dist/pine-core/pds-radio.entry.js +49 -0
- package/dist/pine-core/pds-radio.entry.js.map +1 -0
- package/dist/pine-core/pds-row.entry.js +46 -0
- package/dist/pine-core/pds-row.entry.js.map +1 -0
- package/dist/pine-core/pds-sortable-item.entry.js +30 -0
- package/dist/pine-core/pds-sortable-item.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-sortable.entry.js +705 -5
- package/dist/pine-core/pds-sortable.entry.js.map +1 -0
- package/dist/pine-core/pds-switch.entry.js +51 -0
- package/dist/pine-core/pds-switch.entry.js.map +1 -0
- package/dist/pine-core/pds-tab.entry.js +29 -0
- package/dist/pine-core/pds-tab.entry.js.map +1 -0
- package/dist/pine-core/pds-table-body.entry.js +17 -0
- package/dist/pine-core/pds-table-body.entry.js.map +1 -0
- package/{components/pds-table-cell2.js → dist/pine-core/pds-table-cell.entry.js} +12 -31
- package/dist/pine-core/pds-table-cell.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-table-head-cell.entry.js +7 -7
- package/dist/pine-core/pds-table-head-cell.entry.js.map +1 -0
- package/dist/pine-core/pds-table-head.entry.js +50 -0
- package/dist/pine-core/pds-table-head.entry.js.map +1 -0
- package/dist/pine-core/pds-table-row.entry.js +61 -0
- package/dist/pine-core/pds-table-row.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-table.entry.js +28 -5
- package/dist/pine-core/pds-table.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-tabpanel.entry.js +3 -4
- package/dist/pine-core/pds-tabpanel.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-tabs.entry.js +4 -5
- package/dist/pine-core/pds-tabs.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-textarea.entry.js +8 -9
- package/dist/pine-core/pds-textarea.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-tooltip.entry.js +5 -6
- package/dist/pine-core/pds-tooltip.entry.js.map +1 -0
- package/dist/pine-core/pine-core.css +180 -1
- package/dist/pine-core/pine-core.esm.js +52 -1
- package/dist/pine-core/pine-core.esm.js.map +1 -1
- package/dist/pine-core/shadow-css-2e0fed52.js +478 -0
- package/dist/pine-core/shadow-css-2e0fed52.js.map +1 -0
- package/dist/types/components/pds-checkbox/pds-checkbox.d.ts +4 -1
- package/dist/types/components/pds-loader/pds-loader.d.ts +24 -0
- package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +1 -1
- package/dist/types/components/pds-table/pds-table-head/pds-table-head.d.ts +18 -1
- package/dist/types/components/pds-table/pds-table-head-cell/pds-table-head-cell.d.ts +5 -1
- package/dist/types/components/pds-table/pds-table-row/pds-table-row.d.ts +12 -6
- package/dist/types/components/pds-table/pds-table.d.ts +21 -1
- package/dist/types/components.d.ts +133 -1
- package/dist/types/utils/closest.d.ts +1 -0
- package/hydrate/index.js +241 -248
- package/hydrate/package.json +0 -0
- package/package.json +2 -2
- package/components/index.js +0 -32
- package/components/index.js.map +0 -1
- package/components/index2.js +0 -14
- package/components/index2.js.map +0 -1
- package/components/pds-accordion.js +0 -68
- package/components/pds-accordion.js.map +0 -1
- package/components/pds-avatar.js +0 -103
- package/components/pds-avatar.js.map +0 -1
- package/components/pds-box.js +0 -124
- package/components/pds-box.js.map +0 -1
- package/components/pds-button.js +0 -8
- package/components/pds-button.js.map +0 -1
- package/components/pds-button2.js +0 -84
- package/components/pds-button2.js.map +0 -1
- package/components/pds-checkbox.js +0 -8
- package/components/pds-checkbox.js.map +0 -1
- package/components/pds-checkbox2.js +0 -86
- package/components/pds-checkbox2.js.map +0 -1
- package/components/pds-chip.js +0 -78
- package/components/pds-chip.js.map +0 -1
- package/components/pds-copytext.js +0 -88
- package/components/pds-copytext.js.map +0 -1
- package/components/pds-divider.js +0 -54
- package/components/pds-divider.js.map +0 -1
- package/components/pds-icon.js +0 -8
- package/components/pds-icon.js.map +0 -1
- package/components/pds-icon2.js +0 -359
- package/components/pds-icon2.js.map +0 -1
- package/components/pds-image.js +0 -55
- package/components/pds-image.js.map +0 -1
- package/components/pds-input.js +0 -72
- package/components/pds-input.js.map +0 -1
- package/components/pds-label.js +0 -39
- package/components/pds-label.js.map +0 -1
- package/components/pds-link.js +0 -65
- package/components/pds-link.js.map +0 -1
- package/components/pds-progress.js +0 -49
- package/components/pds-progress.js.map +0 -1
- package/components/pds-radio.js +0 -78
- package/components/pds-radio.js.map +0 -1
- package/components/pds-row.js +0 -72
- package/components/pds-row.js.map +0 -1
- package/components/pds-sortable-item.js +0 -58
- package/components/pds-sortable-item.js.map +0 -1
- package/components/pds-sortable.js +0 -2722
- package/components/pds-sortable.js.map +0 -1
- package/components/pds-switch.js +0 -82
- package/components/pds-switch.js.map +0 -1
- package/components/pds-tab.js +0 -53
- package/components/pds-tab.js.map +0 -1
- package/components/pds-table-body.js +0 -36
- package/components/pds-table-body.js.map +0 -1
- package/components/pds-table-cell.js +0 -8
- package/components/pds-table-cell.js.map +0 -1
- package/components/pds-table-cell2.js.map +0 -1
- package/components/pds-table-head-cell.js +0 -8
- package/components/pds-table-head-cell.js.map +0 -1
- package/components/pds-table-head-cell2.js +0 -96
- package/components/pds-table-head-cell2.js.map +0 -1
- package/components/pds-table-head.js +0 -56
- package/components/pds-table-head.js.map +0 -1
- package/components/pds-table-row.js +0 -78
- package/components/pds-table-row.js.map +0 -1
- package/components/pds-table.js +0 -100
- package/components/pds-table.js.map +0 -1
- package/components/pds-tabpanel.js +0 -45
- package/components/pds-tabpanel.js.map +0 -1
- package/components/pds-tabs.js +0 -119
- package/components/pds-tabs.js.map +0 -1
- package/components/pds-textarea.js +0 -82
- package/components/pds-textarea.js.map +0 -1
- package/components/pds-tooltip.js +0 -178
- package/components/pds-tooltip.js.map +0 -1
- package/dist/cjs/app-globals-3a1e7e63.js +0 -7
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/index-33465846.js +0 -24
- package/dist/cjs/index-33465846.js.map +0 -1
- package/dist/cjs/index-7d9c71f6.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -4
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -17
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/pds-accordion.cjs.entry.js +0 -43
- package/dist/cjs/pds-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-avatar.cjs.entry.js +0 -75
- package/dist/cjs/pds-avatar.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-box.cjs.entry.js +0 -82
- package/dist/cjs/pds-box.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-button.cjs.entry.js +0 -59
- package/dist/cjs/pds-button.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-checkbox_2.cjs.entry.js +0 -112
- package/dist/cjs/pds-checkbox_2.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-chip.cjs.entry.js +0 -51
- package/dist/cjs/pds-chip.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-copytext.cjs.entry.js +0 -56
- package/dist/cjs/pds-copytext.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-divider.cjs.entry.js +0 -36
- package/dist/cjs/pds-divider.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-icon.cjs.entry.js +0 -335
- package/dist/cjs/pds-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-image.cjs.entry.js +0 -32
- package/dist/cjs/pds-image.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-input.cjs.entry.js +0 -45
- package/dist/cjs/pds-input.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-label-5ebae56e.js +0 -44
- package/dist/cjs/pds-label-5ebae56e.js.map +0 -1
- package/dist/cjs/pds-link.cjs.entry.js +0 -39
- package/dist/cjs/pds-link.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-progress.cjs.entry.js +0 -28
- package/dist/cjs/pds-progress.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-radio.cjs.entry.js +0 -54
- package/dist/cjs/pds-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-row.cjs.entry.js +0 -51
- package/dist/cjs/pds-row.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-sortable-item.cjs.entry.js +0 -35
- package/dist/cjs/pds-sortable-item.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-sortable.cjs.entry.js +0 -2704
- package/dist/cjs/pds-sortable.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-switch.cjs.entry.js +0 -56
- package/dist/cjs/pds-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-tab.cjs.entry.js +0 -34
- package/dist/cjs/pds-tab.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-body.cjs.entry.js +0 -22
- package/dist/cjs/pds-table-body.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +0 -75
- package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-head.cjs.entry.js +0 -30
- package/dist/cjs/pds-table-head.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-row.cjs.entry.js +0 -50
- package/dist/cjs/pds-table-row.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table.cjs.entry.js +0 -78
- package/dist/cjs/pds-table.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-tabpanel.cjs.entry.js +0 -27
- package/dist/cjs/pds-tabpanel.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-tabs.cjs.entry.js +0 -99
- package/dist/cjs/pds-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-textarea.cjs.entry.js +0 -55
- package/dist/cjs/pds-textarea.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-tooltip.cjs.entry.js +0 -152
- package/dist/cjs/pds-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/pine-core.cjs.js +0 -27
- package/dist/cjs/pine-core.cjs.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -46
- package/dist/collection/components/_internal/pds-label/pds-label.js +0 -7
- package/dist/collection/components/_internal/pds-label/pds-label.js.map +0 -1
- package/dist/collection/components/pds-accordion/pds-accordion.css +0 -65
- package/dist/collection/components/pds-accordion/pds-accordion.js +0 -94
- package/dist/collection/components/pds-accordion/pds-accordion.js.map +0 -1
- package/dist/collection/components/pds-accordion/stories/pds-accordion.stories.js +0 -34
- package/dist/collection/components/pds-avatar/pds-avatar.css +0 -65
- package/dist/collection/components/pds-avatar/pds-avatar.js +0 -224
- package/dist/collection/components/pds-avatar/pds-avatar.js.map +0 -1
- package/dist/collection/components/pds-avatar/stories/pds-avatar.stories.js +0 -65
- package/dist/collection/components/pds-box/pds-box.css +0 -1234
- package/dist/collection/components/pds-box/pds-box.js +0 -678
- package/dist/collection/components/pds-box/pds-box.js.map +0 -1
- package/dist/collection/components/pds-box/stories/pds-box.stories.js +0 -50
- package/dist/collection/components/pds-button/pds-button.css +0 -131
- package/dist/collection/components/pds-button/pds-button.js +0 -193
- package/dist/collection/components/pds-button/pds-button.js.map +0 -1
- package/dist/collection/components/pds-button/stories/pds-button.stories.js +0 -66
- package/dist/collection/components/pds-checkbox/checkbox-interface.js +0 -2
- package/dist/collection/components/pds-checkbox/checkbox-interface.js.map +0 -1
- package/dist/collection/components/pds-checkbox/pds-checkbox.css +0 -121
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +0 -293
- package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +0 -1
- package/dist/collection/components/pds-checkbox/stories/pds-checkbox.stories.js +0 -82
- package/dist/collection/components/pds-chip/pds-chip.css +0 -239
- package/dist/collection/components/pds-chip/pds-chip.js +0 -189
- package/dist/collection/components/pds-chip/pds-chip.js.map +0 -1
- package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +0 -79
- package/dist/collection/components/pds-copytext/pds-copytext.css +0 -87
- package/dist/collection/components/pds-copytext/pds-copytext.js +0 -173
- package/dist/collection/components/pds-copytext/pds-copytext.js.map +0 -1
- package/dist/collection/components/pds-copytext/stories/pds-copytext.stories.js +0 -57
- package/dist/collection/components/pds-divider/pds-divider.css +0 -92
- package/dist/collection/components/pds-divider/pds-divider.js +0 -94
- package/dist/collection/components/pds-divider/pds-divider.js.map +0 -1
- package/dist/collection/components/pds-divider/stories/pds-divider.stories.js +0 -25
- package/dist/collection/components/pds-icon/stories/pds-icon.stories.js +0 -16
- package/dist/collection/components/pds-image/pds-image.css +0 -13
- package/dist/collection/components/pds-image/pds-image.js +0 -173
- package/dist/collection/components/pds-image/pds-image.js.map +0 -1
- package/dist/collection/components/pds-image/stories/pds-image.stories.js +0 -35
- package/dist/collection/components/pds-input/pds-input.css +0 -92
- package/dist/collection/components/pds-input/pds-input.js +0 -279
- package/dist/collection/components/pds-input/pds-input.js.map +0 -1
- package/dist/collection/components/pds-input/stories/pds-input.stories.js +0 -110
- package/dist/collection/components/pds-link/pds-link.css +0 -68
- package/dist/collection/components/pds-link/pds-link.js +0 -140
- package/dist/collection/components/pds-link/pds-link.js.map +0 -1
- package/dist/collection/components/pds-link/stories/pds-link.stories.js +0 -49
- package/dist/collection/components/pds-progress/pds-progress.css +0 -79
- package/dist/collection/components/pds-progress/pds-progress.js +0 -148
- package/dist/collection/components/pds-progress/pds-progress.js.map +0 -1
- package/dist/collection/components/pds-progress/stories/pds-progress.stories.js +0 -65
- package/dist/collection/components/pds-radio/pds-radio.css +0 -104
- package/dist/collection/components/pds-radio/pds-radio.js +0 -261
- package/dist/collection/components/pds-radio/pds-radio.js.map +0 -1
- package/dist/collection/components/pds-radio/stories/pds-radio.stories.js +0 -71
- package/dist/collection/components/pds-row/pds-row.css +0 -78
- package/dist/collection/components/pds-row/pds-row.js +0 -186
- package/dist/collection/components/pds-row/pds-row.js.map +0 -1
- package/dist/collection/components/pds-row/stories/pds-row.stories.js +0 -75
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.css +0 -63
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +0 -100
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js.map +0 -1
- package/dist/collection/components/pds-sortable/pds-sortable-item/stories/pds-sortable-item.stories.js +0 -24
- package/dist/collection/components/pds-sortable/pds-sortable.css +0 -10
- package/dist/collection/components/pds-sortable/pds-sortable.js +0 -150
- package/dist/collection/components/pds-sortable/pds-sortable.js.map +0 -1
- package/dist/collection/components/pds-sortable/sortable-interface.js +0 -2
- package/dist/collection/components/pds-sortable/sortable-interface.js.map +0 -1
- package/dist/collection/components/pds-sortable/stories/pds-sortable.stories.js +0 -130
- package/dist/collection/components/pds-switch/pds-switch.css +0 -136
- package/dist/collection/components/pds-switch/pds-switch.js +0 -277
- package/dist/collection/components/pds-switch/pds-switch.js.map +0 -1
- package/dist/collection/components/pds-switch/stories/pds-switch.stories.js +0 -102
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.css +0 -5
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +0 -19
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.css +0 -45
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +0 -83
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-cell/stories/pds-table-cell.stories.js +0 -26
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.css +0 -18
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +0 -27
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.css +0 -54
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +0 -118
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-head-cell/stories/pds-table-head-cell.stories.js +0 -24
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.css +0 -22
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +0 -71
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js.map +0 -1
- package/dist/collection/components/pds-table/pds-table-row/stories/pds-table-row.stories.js +0 -26
- package/dist/collection/components/pds-table/pds-table.css +0 -21
- package/dist/collection/components/pds-table/pds-table.js +0 -181
- package/dist/collection/components/pds-table/pds-table.js.map +0 -1
- package/dist/collection/components/pds-table/stories/pds-table.stories.js +0 -227
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +0 -160
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +0 -154
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js.map +0 -1
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.css +0 -12
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +0 -107
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js.map +0 -1
- package/dist/collection/components/pds-tabs/pds-tabs.css +0 -29
- package/dist/collection/components/pds-tabs/pds-tabs.js +0 -209
- package/dist/collection/components/pds-tabs/pds-tabs.js.map +0 -1
- package/dist/collection/components/pds-tabs/stories/pds-tabs.stories.js +0 -63
- package/dist/collection/components/pds-textarea/pds-textarea.css +0 -88
- package/dist/collection/components/pds-textarea/pds-textarea.js +0 -303
- package/dist/collection/components/pds-textarea/pds-textarea.js.map +0 -1
- package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +0 -111
- package/dist/collection/components/pds-textarea/textarea-interface.js +0 -2
- package/dist/collection/components/pds-textarea/textarea-interface.js.map +0 -1
- package/dist/collection/components/pds-tooltip/pds-tooltip.css +0 -147
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +0 -287
- package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +0 -1
- package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +0 -103
- package/dist/collection/global/pine-ui-global.js +0 -2
- package/dist/collection/global/pine-ui-global.js.map +0 -1
- package/dist/collection/index.js +0 -2
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/stories/_helpers/index.js +0 -15
- package/dist/collection/stories/_helpers/index.js.map +0 -1
- package/dist/collection/utils/form.js +0 -28
- package/dist/collection/utils/form.js.map +0 -1
- package/dist/collection/utils/overlay.js +0 -68
- package/dist/collection/utils/overlay.js.map +0 -1
- package/dist/collection/utils/types.js +0 -2
- package/dist/collection/utils/types.js.map +0 -1
- package/dist/collection/utils/utils.js +0 -7
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/esm/index-6f0bb1b9.js +0 -2792
- package/dist/esm/index-6f0bb1b9.js.map +0 -1
- package/dist/esm/index-bdeab80c.js +0 -14
- package/dist/esm/index-bdeab80c.js.map +0 -1
- package/dist/esm/index.js +0 -3
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -13
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/pds-accordion.entry.js.map +0 -1
- package/dist/esm/pds-avatar.entry.js.map +0 -1
- package/dist/esm/pds-box.entry.js +0 -78
- package/dist/esm/pds-box.entry.js.map +0 -1
- package/dist/esm/pds-button.entry.js.map +0 -1
- package/dist/esm/pds-checkbox_2.entry.js +0 -107
- package/dist/esm/pds-checkbox_2.entry.js.map +0 -1
- package/dist/esm/pds-chip.entry.js +0 -47
- package/dist/esm/pds-chip.entry.js.map +0 -1
- package/dist/esm/pds-copytext.entry.js.map +0 -1
- package/dist/esm/pds-divider.entry.js +0 -32
- package/dist/esm/pds-divider.entry.js.map +0 -1
- package/dist/esm/pds-icon.entry.js +0 -331
- package/dist/esm/pds-icon.entry.js.map +0 -1
- package/dist/esm/pds-image.entry.js.map +0 -1
- package/dist/esm/pds-input.entry.js.map +0 -1
- package/dist/esm/pds-link.entry.js.map +0 -1
- package/dist/esm/pds-progress.entry.js +0 -24
- package/dist/esm/pds-progress.entry.js.map +0 -1
- package/dist/esm/pds-radio.entry.js +0 -50
- package/dist/esm/pds-radio.entry.js.map +0 -1
- package/dist/esm/pds-row.entry.js +0 -47
- package/dist/esm/pds-row.entry.js.map +0 -1
- package/dist/esm/pds-sortable-item.entry.js +0 -31
- package/dist/esm/pds-sortable-item.entry.js.map +0 -1
- package/dist/esm/pds-sortable.entry.js.map +0 -1
- package/dist/esm/pds-switch.entry.js +0 -52
- package/dist/esm/pds-switch.entry.js.map +0 -1
- package/dist/esm/pds-tab.entry.js +0 -30
- package/dist/esm/pds-tab.entry.js.map +0 -1
- package/dist/esm/pds-table-body.entry.js +0 -18
- package/dist/esm/pds-table-body.entry.js.map +0 -1
- package/dist/esm/pds-table-head-cell.entry.js.map +0 -1
- package/dist/esm/pds-table-head.entry.js +0 -26
- package/dist/esm/pds-table-head.entry.js.map +0 -1
- package/dist/esm/pds-table-row.entry.js +0 -46
- package/dist/esm/pds-table-row.entry.js.map +0 -1
- package/dist/esm/pds-table.entry.js.map +0 -1
- package/dist/esm/pds-tabpanel.entry.js.map +0 -1
- package/dist/esm/pds-tabs.entry.js.map +0 -1
- package/dist/esm/pds-textarea.entry.js.map +0 -1
- package/dist/esm/pds-tooltip.entry.js.map +0 -1
- package/dist/esm/pine-core.js +0 -22
- package/dist/esm/pine-core.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm-es5/app-globals-0f993ce5.js +0 -2
- package/dist/esm-es5/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm-es5/index-6f0bb1b9.js +0 -3
- package/dist/esm-es5/index-6f0bb1b9.js.map +0 -1
- package/dist/esm-es5/index-bdeab80c.js +0 -2
- package/dist/esm-es5/index-bdeab80c.js.map +0 -1
- package/dist/esm-es5/index.js +0 -2
- package/dist/esm-es5/index.js.map +0 -1
- package/dist/esm-es5/loader.js +0 -2
- package/dist/esm-es5/loader.js.map +0 -1
- package/dist/esm-es5/pds-accordion.entry.js +0 -2
- package/dist/esm-es5/pds-accordion.entry.js.map +0 -1
- package/dist/esm-es5/pds-avatar.entry.js +0 -2
- package/dist/esm-es5/pds-avatar.entry.js.map +0 -1
- package/dist/esm-es5/pds-box.entry.js +0 -2
- package/dist/esm-es5/pds-box.entry.js.map +0 -1
- package/dist/esm-es5/pds-button.entry.js +0 -2
- package/dist/esm-es5/pds-button.entry.js.map +0 -1
- package/dist/esm-es5/pds-checkbox_2.entry.js +0 -2
- package/dist/esm-es5/pds-checkbox_2.entry.js.map +0 -1
- package/dist/esm-es5/pds-chip.entry.js +0 -2
- package/dist/esm-es5/pds-chip.entry.js.map +0 -1
- package/dist/esm-es5/pds-copytext.entry.js +0 -2
- package/dist/esm-es5/pds-copytext.entry.js.map +0 -1
- package/dist/esm-es5/pds-divider.entry.js +0 -2
- package/dist/esm-es5/pds-divider.entry.js.map +0 -1
- package/dist/esm-es5/pds-icon.entry.js +0 -2
- package/dist/esm-es5/pds-icon.entry.js.map +0 -1
- package/dist/esm-es5/pds-image.entry.js +0 -2
- package/dist/esm-es5/pds-image.entry.js.map +0 -1
- package/dist/esm-es5/pds-input.entry.js +0 -2
- package/dist/esm-es5/pds-input.entry.js.map +0 -1
- package/dist/esm-es5/pds-label-d7e11551.js +0 -2
- package/dist/esm-es5/pds-label-d7e11551.js.map +0 -1
- package/dist/esm-es5/pds-link.entry.js +0 -2
- package/dist/esm-es5/pds-link.entry.js.map +0 -1
- package/dist/esm-es5/pds-progress.entry.js +0 -2
- package/dist/esm-es5/pds-progress.entry.js.map +0 -1
- package/dist/esm-es5/pds-radio.entry.js +0 -2
- package/dist/esm-es5/pds-radio.entry.js.map +0 -1
- package/dist/esm-es5/pds-row.entry.js +0 -2
- package/dist/esm-es5/pds-row.entry.js.map +0 -1
- package/dist/esm-es5/pds-sortable-item.entry.js +0 -2
- package/dist/esm-es5/pds-sortable-item.entry.js.map +0 -1
- package/dist/esm-es5/pds-sortable.entry.js +0 -8
- package/dist/esm-es5/pds-sortable.entry.js.map +0 -1
- package/dist/esm-es5/pds-switch.entry.js +0 -2
- package/dist/esm-es5/pds-switch.entry.js.map +0 -1
- package/dist/esm-es5/pds-tab.entry.js +0 -2
- package/dist/esm-es5/pds-tab.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-body.entry.js +0 -2
- package/dist/esm-es5/pds-table-body.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js +0 -2
- package/dist/esm-es5/pds-table-head-cell.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-head.entry.js +0 -2
- package/dist/esm-es5/pds-table-head.entry.js.map +0 -1
- package/dist/esm-es5/pds-table-row.entry.js +0 -2
- package/dist/esm-es5/pds-table-row.entry.js.map +0 -1
- package/dist/esm-es5/pds-table.entry.js +0 -2
- package/dist/esm-es5/pds-table.entry.js.map +0 -1
- package/dist/esm-es5/pds-tabpanel.entry.js +0 -2
- package/dist/esm-es5/pds-tabpanel.entry.js.map +0 -1
- package/dist/esm-es5/pds-tabs.entry.js +0 -2
- package/dist/esm-es5/pds-tabs.entry.js.map +0 -1
- package/dist/esm-es5/pds-textarea.entry.js +0 -2
- package/dist/esm-es5/pds-textarea.entry.js.map +0 -1
- package/dist/esm-es5/pds-tooltip.entry.js +0 -2
- package/dist/esm-es5/pds-tooltip.entry.js.map +0 -1
- package/dist/esm-es5/pine-core.js +0 -2
- package/dist/esm-es5/pine-core.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/pine-core/p-019edcbb.entry.js +0 -2
- package/dist/pine-core/p-019edcbb.entry.js.map +0 -1
- package/dist/pine-core/p-0a1e2528.system.entry.js +0 -2
- package/dist/pine-core/p-0a1e2528.system.entry.js.map +0 -1
- package/dist/pine-core/p-0a636312.system.entry.js +0 -2
- package/dist/pine-core/p-0a636312.system.entry.js.map +0 -1
- package/dist/pine-core/p-0af86d62.entry.js +0 -2
- package/dist/pine-core/p-0af86d62.entry.js.map +0 -1
- package/dist/pine-core/p-0ec12306.system.js +0 -2
- package/dist/pine-core/p-0ec12306.system.js.map +0 -1
- package/dist/pine-core/p-12e537ba.system.entry.js +0 -2
- package/dist/pine-core/p-12e537ba.system.entry.js.map +0 -1
- package/dist/pine-core/p-1330a135.entry.js +0 -2
- package/dist/pine-core/p-1330a135.entry.js.map +0 -1
- package/dist/pine-core/p-16e9d55b.entry.js +0 -2
- package/dist/pine-core/p-16e9d55b.entry.js.map +0 -1
- package/dist/pine-core/p-1922e07e.system.entry.js +0 -2
- package/dist/pine-core/p-1922e07e.system.entry.js.map +0 -1
- package/dist/pine-core/p-209bc3fd.entry.js +0 -2
- package/dist/pine-core/p-209bc3fd.entry.js.map +0 -1
- package/dist/pine-core/p-2250dc45.entry.js +0 -2
- package/dist/pine-core/p-2250dc45.entry.js.map +0 -1
- package/dist/pine-core/p-2af2432d.system.entry.js +0 -2
- package/dist/pine-core/p-2af2432d.system.entry.js.map +0 -1
- package/dist/pine-core/p-2e19ec3d.system.entry.js +0 -2
- package/dist/pine-core/p-2e19ec3d.system.entry.js.map +0 -1
- package/dist/pine-core/p-2f77dbd3.js +0 -3
- package/dist/pine-core/p-2f77dbd3.js.map +0 -1
- package/dist/pine-core/p-30ca2db1.entry.js +0 -2
- package/dist/pine-core/p-30ca2db1.entry.js.map +0 -1
- package/dist/pine-core/p-30cb97ee.system.entry.js +0 -2
- package/dist/pine-core/p-30cb97ee.system.entry.js.map +0 -1
- package/dist/pine-core/p-320e4c53.system.entry.js +0 -2
- package/dist/pine-core/p-320e4c53.system.entry.js.map +0 -1
- package/dist/pine-core/p-327e1afa.system.entry.js +0 -2
- package/dist/pine-core/p-327e1afa.system.entry.js.map +0 -1
- package/dist/pine-core/p-380e465b.entry.js +0 -2
- package/dist/pine-core/p-380e465b.entry.js.map +0 -1
- package/dist/pine-core/p-3caa5870.system.entry.js +0 -2
- package/dist/pine-core/p-3caa5870.system.entry.js.map +0 -1
- package/dist/pine-core/p-3e527956.system.entry.js +0 -2
- package/dist/pine-core/p-3e527956.system.entry.js.map +0 -1
- package/dist/pine-core/p-43783da1.system.entry.js +0 -2
- package/dist/pine-core/p-43783da1.system.entry.js.map +0 -1
- package/dist/pine-core/p-478689a0.system.entry.js +0 -2
- package/dist/pine-core/p-478689a0.system.entry.js.map +0 -1
- package/dist/pine-core/p-49a28a19.system.entry.js +0 -2
- package/dist/pine-core/p-49a28a19.system.entry.js.map +0 -1
- package/dist/pine-core/p-4d4bea0a.entry.js +0 -2
- package/dist/pine-core/p-4d4bea0a.entry.js.map +0 -1
- package/dist/pine-core/p-4f7ee11c.entry.js +0 -2
- package/dist/pine-core/p-4f7ee11c.entry.js.map +0 -1
- package/dist/pine-core/p-5073b1c0.entry.js +0 -8
- package/dist/pine-core/p-5073b1c0.entry.js.map +0 -1
- package/dist/pine-core/p-50ea2036.system.js +0 -2
- package/dist/pine-core/p-50ea2036.system.js.map +0 -1
- package/dist/pine-core/p-51651124.entry.js +0 -2
- package/dist/pine-core/p-51651124.entry.js.map +0 -1
- package/dist/pine-core/p-564e8159.entry.js +0 -2
- package/dist/pine-core/p-564e8159.entry.js.map +0 -1
- package/dist/pine-core/p-56ba5cbf.system.js +0 -2
- package/dist/pine-core/p-56ba5cbf.system.js.map +0 -1
- package/dist/pine-core/p-5f2b3f57.entry.js +0 -2
- package/dist/pine-core/p-5f2b3f57.entry.js.map +0 -1
- package/dist/pine-core/p-5f9fa644.system.entry.js +0 -2
- package/dist/pine-core/p-5f9fa644.system.entry.js.map +0 -1
- package/dist/pine-core/p-5ffec55d.system.js +0 -2
- package/dist/pine-core/p-5ffec55d.system.js.map +0 -1
- package/dist/pine-core/p-61ab207f.entry.js +0 -2
- package/dist/pine-core/p-61ab207f.entry.js.map +0 -1
- package/dist/pine-core/p-6370aa12.system.entry.js +0 -2
- package/dist/pine-core/p-6370aa12.system.entry.js.map +0 -1
- package/dist/pine-core/p-64b4cb70.system.js +0 -3
- package/dist/pine-core/p-64b4cb70.system.js.map +0 -1
- package/dist/pine-core/p-65a167b8.entry.js +0 -2
- package/dist/pine-core/p-65a167b8.entry.js.map +0 -1
- package/dist/pine-core/p-737d5042.entry.js +0 -2
- package/dist/pine-core/p-737d5042.entry.js.map +0 -1
- package/dist/pine-core/p-7611d073.system.js +0 -2
- package/dist/pine-core/p-7611d073.system.js.map +0 -1
- package/dist/pine-core/p-77da68b4.system.entry.js +0 -2
- package/dist/pine-core/p-77da68b4.system.entry.js.map +0 -1
- package/dist/pine-core/p-78ae6c93.system.entry.js +0 -2
- package/dist/pine-core/p-78ae6c93.system.entry.js.map +0 -1
- package/dist/pine-core/p-7f917c20.entry.js +0 -2
- package/dist/pine-core/p-7f917c20.entry.js.map +0 -1
- package/dist/pine-core/p-8144b8d8.system.entry.js +0 -2
- package/dist/pine-core/p-8144b8d8.system.entry.js.map +0 -1
- package/dist/pine-core/p-825cdc06.entry.js +0 -2
- package/dist/pine-core/p-825cdc06.entry.js.map +0 -1
- package/dist/pine-core/p-87c2ac18.entry.js +0 -2
- package/dist/pine-core/p-87c2ac18.entry.js.map +0 -1
- package/dist/pine-core/p-8c5e76d4.system.entry.js +0 -2
- package/dist/pine-core/p-8c5e76d4.system.entry.js.map +0 -1
- package/dist/pine-core/p-9e33f4fb.system.entry.js +0 -9
- package/dist/pine-core/p-9e33f4fb.system.entry.js.map +0 -1
- package/dist/pine-core/p-9f8a1aa6.entry.js +0 -2
- package/dist/pine-core/p-9f8a1aa6.entry.js.map +0 -1
- package/dist/pine-core/p-afdfadb0.entry.js +0 -2
- package/dist/pine-core/p-afdfadb0.entry.js.map +0 -1
- package/dist/pine-core/p-b7897f94.js +0 -2
- package/dist/pine-core/p-b7897f94.js.map +0 -1
- package/dist/pine-core/p-bb099830.system.entry.js +0 -2
- package/dist/pine-core/p-bb099830.system.entry.js.map +0 -1
- package/dist/pine-core/p-bc1cb8e2.entry.js +0 -2
- package/dist/pine-core/p-bc1cb8e2.entry.js.map +0 -1
- package/dist/pine-core/p-bc3782a0.entry.js +0 -2
- package/dist/pine-core/p-bc3782a0.entry.js.map +0 -1
- package/dist/pine-core/p-bd5135c3.entry.js +0 -2
- package/dist/pine-core/p-bd5135c3.entry.js.map +0 -1
- package/dist/pine-core/p-c721d912.system.entry.js +0 -2
- package/dist/pine-core/p-c721d912.system.entry.js.map +0 -1
- package/dist/pine-core/p-cf147dfc.system.entry.js +0 -2
- package/dist/pine-core/p-cf147dfc.system.entry.js.map +0 -1
- package/dist/pine-core/p-d99998a4.system.entry.js +0 -2
- package/dist/pine-core/p-d99998a4.system.entry.js.map +0 -1
- package/dist/pine-core/p-dacd68cf.system.entry.js +0 -2
- package/dist/pine-core/p-dacd68cf.system.entry.js.map +0 -1
- package/dist/pine-core/p-e1255160.js +0 -2
- package/dist/pine-core/p-e1255160.js.map +0 -1
- package/dist/pine-core/p-e43fd36e.entry.js +0 -2
- package/dist/pine-core/p-e43fd36e.entry.js.map +0 -1
- package/dist/pine-core/p-e4f30321.js +0 -2
- package/dist/pine-core/p-e4f30321.js.map +0 -1
- package/dist/pine-core/p-ec56491f.system.entry.js +0 -2
- package/dist/pine-core/p-ec56491f.system.entry.js.map +0 -1
- package/dist/pine-core/p-ecbf0b15.system.entry.js +0 -2
- package/dist/pine-core/p-ecbf0b15.system.entry.js.map +0 -1
- package/dist/pine-core/p-edbc3b8d.entry.js +0 -2
- package/dist/pine-core/p-edbc3b8d.entry.js.map +0 -1
- package/dist/pine-core/p-ff9044ed.entry.js +0 -2
- package/dist/pine-core/p-ff9044ed.entry.js.map +0 -1
- package/dist/pine-core/pine-core.js +0 -127
- package/dist/pine-core/svg/access-key.svg +0 -1
- package/dist/pine-core/svg/add-circle.svg +0 -1
- package/dist/pine-core/svg/add-image.svg +0 -1
- package/dist/pine-core/svg/add-small.svg +0 -1
- package/dist/pine-core/svg/add-square.svg +0 -1
- package/dist/pine-core/svg/add.svg +0 -1
- package/dist/pine-core/svg/advanced.svg +0 -1
- package/dist/pine-core/svg/ai-sparkle.svg +0 -1
- package/dist/pine-core/svg/ai-writer-filled.svg +0 -1
- package/dist/pine-core/svg/ai-writer.svg +0 -1
- package/dist/pine-core/svg/align-center.svg +0 -1
- package/dist/pine-core/svg/align-justify.svg +0 -1
- package/dist/pine-core/svg/align-left.svg +0 -1
- package/dist/pine-core/svg/align-right.svg +0 -1
- package/dist/pine-core/svg/app-store.svg +0 -1
- package/dist/pine-core/svg/archive.svg +0 -1
- package/dist/pine-core/svg/arrow-corner.svg +0 -1
- package/dist/pine-core/svg/arrow-down.svg +0 -1
- package/dist/pine-core/svg/arrow-left.svg +0 -1
- package/dist/pine-core/svg/arrow-right.svg +0 -1
- package/dist/pine-core/svg/arrow-up.svg +0 -1
- package/dist/pine-core/svg/assessment.svg +0 -1
- package/dist/pine-core/svg/at-sign.svg +0 -1
- package/dist/pine-core/svg/attach.svg +0 -1
- package/dist/pine-core/svg/automations.svg +0 -1
- package/dist/pine-core/svg/ban.svg +0 -1
- package/dist/pine-core/svg/bank.svg +0 -1
- package/dist/pine-core/svg/bell.svg +0 -1
- package/dist/pine-core/svg/block.svg +0 -1
- package/dist/pine-core/svg/blog-filled.svg +0 -1
- package/dist/pine-core/svg/blog.svg +0 -1
- package/dist/pine-core/svg/bold.svg +0 -1
- package/dist/pine-core/svg/broadcast.svg +0 -1
- package/dist/pine-core/svg/button.svg +0 -1
- package/dist/pine-core/svg/calendar-date.svg +0 -1
- package/dist/pine-core/svg/calendar-schedule.svg +0 -1
- package/dist/pine-core/svg/calendar-simple.svg +0 -1
- package/dist/pine-core/svg/card-amex.svg +0 -1
- package/dist/pine-core/svg/card-android.svg +0 -1
- package/dist/pine-core/svg/card-apple.svg +0 -1
- package/dist/pine-core/svg/card-diners-club.svg +0 -1
- package/dist/pine-core/svg/card-discover.svg +0 -1
- package/dist/pine-core/svg/card-generic.svg +0 -1
- package/dist/pine-core/svg/card-gpay.svg +0 -1
- package/dist/pine-core/svg/card-mastercard.svg +0 -1
- package/dist/pine-core/svg/card-paypal.svg +0 -1
- package/dist/pine-core/svg/card-stripe.svg +0 -1
- package/dist/pine-core/svg/card-update.svg +0 -1
- package/dist/pine-core/svg/card-visa.svg +0 -1
- package/dist/pine-core/svg/caret-down.svg +0 -1
- package/dist/pine-core/svg/caret-left.svg +0 -1
- package/dist/pine-core/svg/caret-right.svg +0 -1
- package/dist/pine-core/svg/caret-up.svg +0 -1
- package/dist/pine-core/svg/cart-add.svg +0 -1
- package/dist/pine-core/svg/cart.svg +0 -1
- package/dist/pine-core/svg/certificate.svg +0 -1
- package/dist/pine-core/svg/chart-filled.svg +0 -1
- package/dist/pine-core/svg/chart.svg +0 -1
- package/dist/pine-core/svg/check-circle-filled.svg +0 -1
- package/dist/pine-core/svg/check-circle.svg +0 -1
- package/dist/pine-core/svg/check.svg +0 -1
- package/dist/pine-core/svg/circle-1.svg +0 -1
- package/dist/pine-core/svg/circle-2.svg +0 -1
- package/dist/pine-core/svg/circle-3.svg +0 -1
- package/dist/pine-core/svg/circle-4.svg +0 -1
- package/dist/pine-core/svg/circle-5.svg +0 -1
- package/dist/pine-core/svg/circle-6.svg +0 -1
- package/dist/pine-core/svg/circle-7.svg +0 -1
- package/dist/pine-core/svg/circle-8.svg +0 -1
- package/dist/pine-core/svg/circle-9.svg +0 -1
- package/dist/pine-core/svg/circle-a.svg +0 -1
- package/dist/pine-core/svg/circle-b.svg +0 -1
- package/dist/pine-core/svg/circle-dashed.svg +0 -1
- package/dist/pine-core/svg/clock.svg +0 -1
- package/dist/pine-core/svg/closed-captions.svg +0 -1
- package/dist/pine-core/svg/cloud-upload.svg +0 -1
- package/dist/pine-core/svg/code-block.svg +0 -1
- package/dist/pine-core/svg/code.svg +0 -1
- package/dist/pine-core/svg/color.svg +0 -1
- package/dist/pine-core/svg/columns.svg +0 -1
- package/dist/pine-core/svg/comment-no.svg +0 -1
- package/dist/pine-core/svg/comment.svg +0 -1
- package/dist/pine-core/svg/connect.svg +0 -1
- package/dist/pine-core/svg/contact.svg +0 -1
- package/dist/pine-core/svg/conversation.svg +0 -1
- package/dist/pine-core/svg/copy.svg +0 -1
- package/dist/pine-core/svg/coupon.svg +0 -1
- package/dist/pine-core/svg/course.svg +0 -1
- package/dist/pine-core/svg/creator-studio-filled.svg +0 -1
- package/dist/pine-core/svg/creator-studio.svg +0 -1
- package/dist/pine-core/svg/cursor-pointer.svg +0 -1
- package/dist/pine-core/svg/cursor.svg +0 -1
- package/dist/pine-core/svg/custom-field.svg +0 -1
- package/dist/pine-core/svg/customize.svg +0 -1
- package/dist/pine-core/svg/danger-filled.svg +0 -1
- package/dist/pine-core/svg/danger.svg +0 -1
- package/dist/pine-core/svg/delete-circle.svg +0 -1
- package/dist/pine-core/svg/delete-key.svg +0 -1
- package/dist/pine-core/svg/delete-x.svg +0 -1
- package/dist/pine-core/svg/dollar.svg +0 -1
- package/dist/pine-core/svg/dot-menu-horizontal.svg +0 -1
- package/dist/pine-core/svg/down-small.svg +0 -1
- package/dist/pine-core/svg/download.svg +0 -1
- package/dist/pine-core/svg/downsell.svg +0 -1
- package/dist/pine-core/svg/draft.svg +0 -1
- package/dist/pine-core/svg/drawer-collapse.svg +0 -1
- package/dist/pine-core/svg/drawer-expand.svg +0 -1
- package/dist/pine-core/svg/drop.svg +0 -1
- package/dist/pine-core/svg/duplicate.svg +0 -1
- package/dist/pine-core/svg/editor-filled.svg +0 -1
- package/dist/pine-core/svg/editor.svg +0 -1
- package/dist/pine-core/svg/email-activity.svg +0 -1
- package/dist/pine-core/svg/emoji.svg +0 -1
- package/dist/pine-core/svg/enlarge-vertical.svg +0 -1
- package/dist/pine-core/svg/enlarge.svg +0 -1
- package/dist/pine-core/svg/expand.svg +0 -1
- package/dist/pine-core/svg/favorite.svg +0 -1
- package/dist/pine-core/svg/feedback.svg +0 -1
- package/dist/pine-core/svg/file-money.svg +0 -1
- package/dist/pine-core/svg/file.svg +0 -1
- package/dist/pine-core/svg/filter.svg +0 -1
- package/dist/pine-core/svg/flag.svg +0 -1
- package/dist/pine-core/svg/flash-filled.svg +0 -1
- package/dist/pine-core/svg/flash.svg +0 -1
- package/dist/pine-core/svg/floppy-disk.svg +0 -1
- package/dist/pine-core/svg/folder-group.svg +0 -1
- package/dist/pine-core/svg/folder.svg +0 -1
- package/dist/pine-core/svg/form-field.svg +0 -1
- package/dist/pine-core/svg/form-filled.svg +0 -1
- package/dist/pine-core/svg/form.svg +0 -1
- package/dist/pine-core/svg/fullscreen.svg +0 -1
- package/dist/pine-core/svg/funnel.svg +0 -1
- package/dist/pine-core/svg/gear-filled.svg +0 -1
- package/dist/pine-core/svg/gear.svg +0 -1
- package/dist/pine-core/svg/grant-offer.svg +0 -1
- package/dist/pine-core/svg/handle-2-vertical.svg +0 -1
- package/dist/pine-core/svg/handle-2.svg +0 -1
- package/dist/pine-core/svg/handle.svg +0 -1
- package/dist/pine-core/svg/hashtag.svg +0 -1
- package/dist/pine-core/svg/hd-video.svg +0 -1
- package/dist/pine-core/svg/heading-1.svg +0 -1
- package/dist/pine-core/svg/heading-2.svg +0 -1
- package/dist/pine-core/svg/heading-3.svg +0 -1
- package/dist/pine-core/svg/heading-4.svg +0 -1
- package/dist/pine-core/svg/heading-5.svg +0 -1
- package/dist/pine-core/svg/heading-6.svg +0 -1
- package/dist/pine-core/svg/heading-large.svg +0 -1
- package/dist/pine-core/svg/heading-small.svg +0 -1
- package/dist/pine-core/svg/headset.svg +0 -1
- package/dist/pine-core/svg/help-filled.svg +0 -1
- package/dist/pine-core/svg/help.svg +0 -1
- package/dist/pine-core/svg/home-alt.svg +0 -1
- package/dist/pine-core/svg/home-filled.svg +0 -1
- package/dist/pine-core/svg/home.svg +0 -1
- package/dist/pine-core/svg/horizontal-line.svg +0 -1
- package/dist/pine-core/svg/image.svg +0 -1
- package/dist/pine-core/svg/info-circle-filled.svg +0 -1
- package/dist/pine-core/svg/info-circle.svg +0 -1
- package/dist/pine-core/svg/ios-battery.svg +0 -1
- package/dist/pine-core/svg/ios-data.svg +0 -1
- package/dist/pine-core/svg/ios-wifi.svg +0 -1
- package/dist/pine-core/svg/italic.svg +0 -1
- package/dist/pine-core/svg/kajabi-filled.svg +0 -1
- package/dist/pine-core/svg/kajabi.svg +0 -1
- package/dist/pine-core/svg/klarna.svg +0 -1
- package/dist/pine-core/svg/lab.svg +0 -1
- package/dist/pine-core/svg/launch.svg +0 -1
- package/dist/pine-core/svg/layout-grid.svg +0 -1
- package/dist/pine-core/svg/layout-list.svg +0 -1
- package/dist/pine-core/svg/left-small.svg +0 -1
- package/dist/pine-core/svg/list-bullet.svg +0 -1
- package/dist/pine-core/svg/list-details.svg +0 -1
- package/dist/pine-core/svg/list-numbers.svg +0 -1
- package/dist/pine-core/svg/location.svg +0 -1
- package/dist/pine-core/svg/lock-alt.svg +0 -1
- package/dist/pine-core/svg/lock.svg +0 -1
- package/dist/pine-core/svg/logo-afterpay.svg +0 -1
- package/dist/pine-core/svg/logo-facebook-round.svg +0 -1
- package/dist/pine-core/svg/logo-facebook.svg +0 -1
- package/dist/pine-core/svg/logo-instagram.svg +0 -1
- package/dist/pine-core/svg/logo-linkedin.svg +0 -1
- package/dist/pine-core/svg/logo-tiktok.svg +0 -1
- package/dist/pine-core/svg/logo-twitter-x.svg +0 -1
- package/dist/pine-core/svg/logo-twitter.svg +0 -1
- package/dist/pine-core/svg/logo-youtube.svg +0 -1
- package/dist/pine-core/svg/loop.svg +0 -1
- package/dist/pine-core/svg/mail-filled.svg +0 -1
- package/dist/pine-core/svg/mail-open.svg +0 -1
- package/dist/pine-core/svg/mail.svg +0 -1
- package/dist/pine-core/svg/map.svg +0 -1
- package/dist/pine-core/svg/mapped.svg +0 -1
- package/dist/pine-core/svg/margin-left.svg +0 -1
- package/dist/pine-core/svg/margin-right.svg +0 -1
- package/dist/pine-core/svg/marker-filled.svg +0 -1
- package/dist/pine-core/svg/marker.svg +0 -1
- package/dist/pine-core/svg/megaphone-filled.svg +0 -1
- package/dist/pine-core/svg/megaphone.svg +0 -1
- package/dist/pine-core/svg/menu-alt.svg +0 -1
- package/dist/pine-core/svg/menu-bordered.svg +0 -1
- package/dist/pine-core/svg/menu.svg +0 -1
- package/dist/pine-core/svg/merge.svg +0 -1
- package/dist/pine-core/svg/microphone-off.svg +0 -1
- package/dist/pine-core/svg/microphone.svg +0 -1
- package/dist/pine-core/svg/monitor-filled.svg +0 -1
- package/dist/pine-core/svg/monitor.svg +0 -1
- package/dist/pine-core/svg/more-menu-filled.svg +0 -1
- package/dist/pine-core/svg/more-menu.svg +0 -1
- package/dist/pine-core/svg/move-left.svg +0 -1
- package/dist/pine-core/svg/move-right.svg +0 -1
- package/dist/pine-core/svg/multi-pay.svg +0 -1
- package/dist/pine-core/svg/newsletter-2.svg +0 -1
- package/dist/pine-core/svg/newsletter.svg +0 -1
- package/dist/pine-core/svg/one-off-session.svg +0 -1
- package/dist/pine-core/svg/one-time.svg +0 -1
- package/dist/pine-core/svg/packages.svg +0 -1
- package/dist/pine-core/svg/pause-circle.svg +0 -1
- package/dist/pine-core/svg/pause.svg +0 -1
- package/dist/pine-core/svg/payout.svg +0 -1
- package/dist/pine-core/svg/pen.svg +0 -1
- package/dist/pine-core/svg/phone-portrait.svg +0 -1
- package/dist/pine-core/svg/phone-toolbar-filled.svg +0 -1
- package/dist/pine-core/svg/phone-toolbar.svg +0 -1
- package/dist/pine-core/svg/play-circle.svg +0 -1
- package/dist/pine-core/svg/play-outline.svg +0 -1
- package/dist/pine-core/svg/play-store.svg +0 -1
- package/dist/pine-core/svg/play.svg +0 -1
- package/dist/pine-core/svg/plug.svg +0 -1
- package/dist/pine-core/svg/premium.svg +0 -1
- package/dist/pine-core/svg/present.svg +0 -1
- package/dist/pine-core/svg/preview-off.svg +0 -1
- package/dist/pine-core/svg/preview-on.svg +0 -1
- package/dist/pine-core/svg/product-filled.svg +0 -1
- package/dist/pine-core/svg/product.svg +0 -1
- package/dist/pine-core/svg/question-circle.svg +0 -1
- package/dist/pine-core/svg/quote.svg +0 -1
- package/dist/pine-core/svg/redo.svg +0 -1
- package/dist/pine-core/svg/refresh.svg +0 -1
- package/dist/pine-core/svg/remove-circle.svg +0 -1
- package/dist/pine-core/svg/remove.svg +0 -1
- package/dist/pine-core/svg/rename.svg +0 -1
- package/dist/pine-core/svg/reset-password.svg +0 -1
- package/dist/pine-core/svg/restore.svg +0 -1
- package/dist/pine-core/svg/right-small.svg +0 -1
- package/dist/pine-core/svg/rocket-filled.svg +0 -1
- package/dist/pine-core/svg/rocket.svg +0 -1
- package/dist/pine-core/svg/round-dollar.svg +0 -1
- package/dist/pine-core/svg/rows.svg +0 -1
- package/dist/pine-core/svg/scissor.svg +0 -1
- package/dist/pine-core/svg/screen-share-off.svg +0 -1
- package/dist/pine-core/svg/screen-share-on.svg +0 -1
- package/dist/pine-core/svg/search-small.svg +0 -1
- package/dist/pine-core/svg/search.svg +0 -1
- package/dist/pine-core/svg/send-message.svg +0 -1
- package/dist/pine-core/svg/sequences.svg +0 -1
- package/dist/pine-core/svg/share.svg +0 -1
- package/dist/pine-core/svg/skipped.svg +0 -1
- package/dist/pine-core/svg/slash-divider.svg +0 -1
- package/dist/pine-core/svg/speaker.svg +0 -1
- package/dist/pine-core/svg/stack.svg +0 -1
- package/dist/pine-core/svg/star.svg +0 -1
- package/dist/pine-core/svg/stop.svg +0 -1
- package/dist/pine-core/svg/stopwatch.svg +0 -1
- package/dist/pine-core/svg/strikethrough.svg +0 -1
- package/dist/pine-core/svg/subscript.svg +0 -1
- package/dist/pine-core/svg/subscriptions.svg +0 -1
- package/dist/pine-core/svg/super-admin.svg +0 -1
- package/dist/pine-core/svg/superscript.svg +0 -1
- package/dist/pine-core/svg/sync.svg +0 -1
- package/dist/pine-core/svg/tablet-landscape.svg +0 -1
- package/dist/pine-core/svg/tablet-portrait.svg +0 -1
- package/dist/pine-core/svg/tag-filled.svg +0 -1
- package/dist/pine-core/svg/tag.svg +0 -1
- package/dist/pine-core/svg/text-styles.svg +0 -1
- package/dist/pine-core/svg/theme-store-filled.svg +0 -1
- package/dist/pine-core/svg/theme-store.svg +0 -1
- package/dist/pine-core/svg/thumb-down-filled.svg +0 -1
- package/dist/pine-core/svg/thumb-down.svg +0 -1
- package/dist/pine-core/svg/thumb-up-filled.svg +0 -1
- package/dist/pine-core/svg/thumb-up.svg +0 -1
- package/dist/pine-core/svg/trash.svg +0 -1
- package/dist/pine-core/svg/trophy.svg +0 -1
- package/dist/pine-core/svg/underline.svg +0 -1
- package/dist/pine-core/svg/undo.svg +0 -1
- package/dist/pine-core/svg/unlock.svg +0 -1
- package/dist/pine-core/svg/unmapped.svg +0 -1
- package/dist/pine-core/svg/up-small.svg +0 -1
- package/dist/pine-core/svg/upload.svg +0 -1
- package/dist/pine-core/svg/url.svg +0 -1
- package/dist/pine-core/svg/user-circle-filled.svg +0 -1
- package/dist/pine-core/svg/user-circle.svg +0 -1
- package/dist/pine-core/svg/user-filled.svg +0 -1
- package/dist/pine-core/svg/user-star-filled.svg +0 -1
- package/dist/pine-core/svg/user-star.svg +0 -1
- package/dist/pine-core/svg/user.svg +0 -1
- package/dist/pine-core/svg/users-alt.svg +0 -1
- package/dist/pine-core/svg/users.svg +0 -1
- package/dist/pine-core/svg/video-off.svg +0 -1
- package/dist/pine-core/svg/video-on.svg +0 -1
- package/dist/pine-core/svg/warning-filled.svg +0 -1
- package/dist/pine-core/svg/warning.svg +0 -1
- package/dist/pine-core/svg/window-paragraph.svg +0 -1
- package/dist/pine-core/svg/world.svg +0 -1
- package/dist/pine-core/svg/wrench.svg +0 -1
- /package/dist/{esm → pine-core}/app-globals-0f993ce5.js +0 -0
- /package/dist/{esm → pine-core}/app-globals-0f993ce5.js.map +0 -0
package/components/pds-switch.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { a as assignDescription, P as PdsLabel, m as messageId } from './pds-label.js';
|
|
3
|
-
|
|
4
|
-
const pdsSwitchCss = ":host{--border-radius-input:var(--pine-border-radius-200);--box-shadow-focus:0 0 0 2px var(--color-outline-focus);--box-shadow-focus-error:0 0 0 2px var(--color-outline-focus-error);--box-shadow-input-toggle:0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.08);--color-background-checked:var(--pine-color-charcoal-400);--color-background-checked-hover:var(--pine-color-charcoal-400);--color-background-disabled:var(--pine-color-grey-300);--color-background-hover:var(--pine-color-grey-500);--color-background-input-default:var(--pine-color-grey-400);--color-input-toggle:var(--pine-color-white);--color-message-text:var(--pine-color-charcoal-200);--color-outline-focus:var(--pine-color-blue-200);--color-outline-focus-error:var(--pine-color-red-200);--color-text-default:var(--pine-color-charcoal-400);--color-text-disabled:var(--pine-color-grey-500);--color-text-error:var(--pine-color-red-300);--dimension-input-height:20px;--dimension-input-width:36px;--line-height-label:var(--pine-line-height-150);--sizing-input-toggle-size:calc(var(--dimension-input-height) - (var(--spacing-input-toggle-offset) * 2));--spacing-label-gap-size:var(--pine-spacing-150);--spacing-input-toggle-offset:calc(var(--pine-spacing-050) / 2);--spacing-message-block:var(--pine-spacing-050);--spacing-message-inline:calc(var(--dimension-input-width) + var(--spacing-label-gap-size));--number-transition-timing:0.15s ease-out;-ms-flex-align:start;align-items:flex-start;color:var(--color-text-default);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-margin-after:var(--pine-spacing-md);margin-block-end:var(--pine-spacing-md);position:relative}:host(.pds-switch--error){color:var(--color-text-error)}:host(.pds-switch--error) input,:host(.pds-switch--error) input:checked,:host(.pds-switch--error) input:hover:not(:disabled):not(:checked){background-color:var(--color-text-error)}:host(.pds-switch--error) input:focus-visible:not(:disabled):not(:checked){-webkit-box-shadow:var(--box-shadow-focus-error);box-shadow:var(--box-shadow-focus-error)}input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--color-background-input-default);border:0;border-radius:var(--border-radius-input);cursor:pointer;display:inline-block;height:var(--dimension-input-height);margin:0;padding:0;position:relative;-webkit-transform:translateY(2px);transform:translateY(2px);-webkit-transition:var(--number-transition-timing);transition:var(--number-transition-timing);-webkit-transition-property:background, border, color;transition-property:background, border, color;width:var(--dimension-input-width)}input::after{background:var(--color-input-toggle);border-radius:50%;-webkit-box-shadow:var(--box-shadow-input-toggle);box-shadow:var(--box-shadow-input-toggle);content:\"\";display:block;height:var(--sizing-input-toggle-size);inset-block-start:50%;inset-inline-start:50%;position:absolute;-webkit-transform:translate3d(-100%, -50%, 0);transform:translate3d(-100%, -50%, 0);-webkit-transition:-webkit-transform var(--number-transition-timing);transition:-webkit-transform var(--number-transition-timing);transition:transform var(--number-transition-timing);transition:transform var(--number-transition-timing), -webkit-transform var(--number-transition-timing);width:var(--sizing-input-toggle-size)}label{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-positive:1;flex-grow:1;line-height:var(--line-height-label);-webkit-margin-start:var(--spacing-label-gap-size);margin-inline-start:var(--spacing-label-gap-size)}.pds-switch--error label{color:inherit}.pds-switch__message{color:var(--color-message-text);-ms-flex:1 0 100%;flex:1 0 100%;font-size:var(--pine-font-size-body-sm);line-height:var(--pine-line-height-sm);-webkit-margin-start:var(--spacing-message-inline);margin-inline-start:var(--spacing-message-inline)}.pds-switch__message+.pds-switch__message{-webkit-margin-before:var(--spacing-message-block);margin-block-start:var(--spacing-message-block)}.pds-switch__message--error{color:inherit}input:disabled{background-color:var(--color-background-disabled);cursor:not-allowed}input:disabled~label{color:var(--color-text-disabled);cursor:initial}input:disabled .pds-switch__message{color:initial}input:hover:not(:disabled){background-color:var(--color-background-hover)}input:focus-visible:not(:disabled){-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}input:checked::after{-webkit-transform:translate3d(0, -50%, 0);transform:translate3d(0, -50%, 0)}input:checked:not(:disabled){background-color:currentColor;color:var(--color-background-checked)}input:checked:not(:disabled):hover{border-color:currentColor;color:var(--color-background-checked-hover)}";
|
|
5
|
-
const PdsSwitchStyle0 = pdsSwitchCss;
|
|
6
|
-
|
|
7
|
-
const PdsSwitch$1 = /*@__PURE__*/ proxyCustomElement(class PdsSwitch extends HTMLElement {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this.__registerHost();
|
|
11
|
-
this.__attachShadow();
|
|
12
|
-
this.pdsSwitchChange = createEvent(this, "pdsSwitchChange", 7);
|
|
13
|
-
this.onSwitchUpdate = (e) => {
|
|
14
|
-
if (this.disabled)
|
|
15
|
-
return;
|
|
16
|
-
this.pdsSwitchChange.emit(e);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Generate switch classes
|
|
20
|
-
*/
|
|
21
|
-
this.switchClassNames = () => {
|
|
22
|
-
let switchClasses = `pds-switch`;
|
|
23
|
-
if (this.invalid === true) {
|
|
24
|
-
switchClasses += " pds-switch--error";
|
|
25
|
-
}
|
|
26
|
-
if (this.helperMessage !== undefined) {
|
|
27
|
-
switchClasses += " pds-switch--message";
|
|
28
|
-
}
|
|
29
|
-
return switchClasses;
|
|
30
|
-
};
|
|
31
|
-
this.componentId = undefined;
|
|
32
|
-
this.checked = false;
|
|
33
|
-
this.disabled = false;
|
|
34
|
-
this.errorMessage = undefined;
|
|
35
|
-
this.helperMessage = undefined;
|
|
36
|
-
this.invalid = false;
|
|
37
|
-
this.label = undefined;
|
|
38
|
-
this.name = undefined;
|
|
39
|
-
this.required = false;
|
|
40
|
-
this.type = 'checkbox';
|
|
41
|
-
this.value = undefined;
|
|
42
|
-
}
|
|
43
|
-
render() {
|
|
44
|
-
return (h(Host, { key: 'f00007b5d1bde6895cb7f410b82e5c3669d75327', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, h("input", { key: 'c6c0ae9576a198c9f0038ebd22b78df0c5a41794', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, checked: this.checked, class: "pds-switch__input", disabled: this.disabled, id: this.componentId, name: this.name ? this.name : this.componentId, onChange: this.onSwitchUpdate, required: this.required, type: this.type, value: this.value }), h(PdsLabel, { key: 'd6c3b0c584d2c4fd6cc99507794a3e961fbf99a5', classNames: "pds-switch__label", htmlFor: this.componentId, text: this.label }), this.helperMessage &&
|
|
45
|
-
h("div", { key: '4f9f581e9a01e67d076bafaf1d28fe52b87081fc', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
46
|
-
h("div", { key: 'aeca71b92664b2e7ef4c7fb0d103996a05c5318f', class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, this.errorMessage)));
|
|
47
|
-
}
|
|
48
|
-
get el() { return this; }
|
|
49
|
-
static get style() { return PdsSwitchStyle0; }
|
|
50
|
-
}, [1, "pds-switch", {
|
|
51
|
-
"componentId": [1, "component-id"],
|
|
52
|
-
"checked": [4],
|
|
53
|
-
"disabled": [4],
|
|
54
|
-
"errorMessage": [1, "error-message"],
|
|
55
|
-
"helperMessage": [1, "helper-message"],
|
|
56
|
-
"invalid": [4],
|
|
57
|
-
"label": [1],
|
|
58
|
-
"name": [1],
|
|
59
|
-
"required": [4],
|
|
60
|
-
"type": [1],
|
|
61
|
-
"value": [1]
|
|
62
|
-
}]);
|
|
63
|
-
function defineCustomElement$1() {
|
|
64
|
-
if (typeof customElements === "undefined") {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
const components = ["pds-switch"];
|
|
68
|
-
components.forEach(tagName => { switch (tagName) {
|
|
69
|
-
case "pds-switch":
|
|
70
|
-
if (!customElements.get(tagName)) {
|
|
71
|
-
customElements.define(tagName, PdsSwitch$1);
|
|
72
|
-
}
|
|
73
|
-
break;
|
|
74
|
-
} });
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
const PdsSwitch = PdsSwitch$1;
|
|
78
|
-
const defineCustomElement = defineCustomElement$1;
|
|
79
|
-
|
|
80
|
-
export { PdsSwitch, defineCustomElement };
|
|
81
|
-
|
|
82
|
-
//# sourceMappingURL=pds-switch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-switch.js","mappings":";;;AAAA,MAAM,YAAY,GAAG,sqJAAsqJ,CAAC;AAC5rJ,wBAAe,YAAY;;MCQdA,WAAS;;;;;;QAgEZ,mBAAc,GAAG,CAAC,CAAQ;YAChC,IAAI,IAAI,CAAC,QAAQ;gBAAE,OAAO;YAC1B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAe,CAAC,CAAC;SAC5C,CAAC;;;;QAKM,qBAAgB,GAAG;YACzB,IAAI,aAAa,GAAG,YAAY,CAAC;YAEjC,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,EAAE;gBACzB,aAAa,IAAI,oBAAoB,CAAC;aACvC;YACD,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS,EAAE;gBACpC,aAAa,IAAI,sBAAsB,CAAC;aACzC;YACD,OAAO,aAAa,CAAC;SACtB,CAAC;;uBAvEgB,KAAK;wBAKH,KAAK;;;uBAeN,KAAK;;;wBAeJ,KAAK;oBAMY,UAAU;;;IAgC/C,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,mBAAiB,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,IAAI,IAChF,kFACoB,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,kBACzE,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,SAAS,EAC/C,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAC,mBAAmB,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,EAC9C,QAAQ,EAAE,IAAI,CAAC,cAAc,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,EACF,EAAC,QAAQ,qDAAC,UAAU,EAAC,mBAAmB,EAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI,EACvF,IAAI,CAAC,aAAa;YACjB,4DACE,KAAK,EAAE,qBAAqB,EAC5B,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,IAExC,IAAI,CAAC,aAAa,CACf,EAEP,IAAI,CAAC,YAAY;YAChB,4DACE,KAAK,EAAE,gDAAgD,EACvD,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,eAC9B,WAAW,IAEpB,IAAI,CAAC,YAAY,CACd,CAEH,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsSwitch"],"sources":["src/components/pds-switch/pds-switch.scss?tag=pds-switch&encapsulation=shadow","src/components/pds-switch/pds-switch.tsx"],"sourcesContent":[":host {\n --border-radius-input: var(--pine-border-radius-200);\n\n --box-shadow-focus: 0 0 0 2px var(--color-outline-focus);\n --box-shadow-focus-error: 0 0 0 2px var(--color-outline-focus-error);\n --box-shadow-input-toggle: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.08);\n\n --color-background-checked: var(--pine-color-charcoal-400);\n --color-background-checked-hover: var(--pine-color-charcoal-400);\n --color-background-disabled: var(--pine-color-grey-300);\n --color-background-hover: var(--pine-color-grey-500);\n --color-background-input-default: var(--pine-color-grey-400);\n --color-input-toggle: var(--pine-color-white);\n --color-message-text: var(--pine-color-charcoal-200);\n --color-outline-focus: var(--pine-color-blue-200);\n --color-outline-focus-error: var(--pine-color-red-200);\n --color-text-default: var(--pine-color-charcoal-400);\n --color-text-disabled: var(--pine-color-grey-500);\n --color-text-error: var(--pine-color-red-300);\n\n --dimension-input-height: 20px;\n --dimension-input-width: 36px;\n\n --line-height-label: var(--pine-line-height-150);\n\n --sizing-input-toggle-size: calc(var(--dimension-input-height) - (var(--spacing-input-toggle-offset) * 2));\n\n --spacing-label-gap-size: var(--pine-spacing-150);\n --spacing-input-toggle-offset: calc(var(--pine-spacing-050) / 2);\n --spacing-message-block: var(--pine-spacing-050);\n --spacing-message-inline: calc(var(--dimension-input-width) + var(--spacing-label-gap-size));\n\n --number-transition-timing: 0.15s ease-out;\n\n\n align-items: flex-start;\n color: var(--color-text-default);\n display: inline-flex;\n flex-flow: row wrap;\n margin-block-end: var(--pine-spacing-md);\n position: relative;\n}\n\n:host(.pds-switch--error) {\n color: var(--color-text-error);\n\n input,\n input:checked,\n input:hover:not(:disabled):not(:checked) {\n background-color: var(--color-text-error);\n }\n\n input:focus-visible:not(:disabled):not(:checked) {\n box-shadow: var(--box-shadow-focus-error);\n }\n}\n\n// switch container\ninput {\n appearance: none;\n background: var(--color-background-input-default);\n border: 0;\n border-radius: var(--border-radius-input);\n cursor: pointer;\n display: inline-block;\n height: var(--dimension-input-height);\n margin: 0;\n padding: 0;\n position: relative;\n transform: translateY(2px);\n transition: var(--number-transition-timing);\n transition-property: background, border, color;\n width: var(--dimension-input-width);\n\n // switch toggle\n &::after {\n background: var(--color-input-toggle);\n border-radius: 50%;\n box-shadow: var(--box-shadow-input-toggle);\n content: \"\";\n display: block;\n height: var(--sizing-input-toggle-size);\n inset-block-start: 50%;\n inset-inline-start: 50%;\n position: absolute;\n transform: translate3d(-100%, -50%, 0);\n transition: transform var(--number-transition-timing);\n width: var(--sizing-input-toggle-size);\n }\n}\n\nlabel {\n cursor: pointer;\n display: inline-flex;\n flex-grow: 1;\n line-height: var(--line-height-label);\n margin-inline-start: var(--spacing-label-gap-size);\n\n .pds-switch--error & {\n color: inherit;\n }\n}\n\n// Help and error messages\n.pds-switch__message {\n color: var(--color-message-text);\n flex: 1 0 100%;\n font-size: var(--pine-font-size-body-sm);\n line-height: var(--pine-line-height-sm);\n margin-inline-start: var(--spacing-message-inline);\n\n + .pds-switch__message {\n margin-block-start: var(--spacing-message-block);\n }\n}\n\n.pds-switch__message--error {\n color: inherit;\n}\n\n// Disabled state\ninput:disabled {\n background-color: var(--color-background-disabled);\n cursor: not-allowed;\n\n ~ label {\n color: var(--color-text-disabled);\n cursor: initial;\n }\n\n .pds-switch__message {\n color: initial;\n }\n}\n\n// Hover state\ninput:hover:not(:disabled) {\n background-color: var(--color-background-hover);\n}\n\n // Focus state\ninput:focus-visible:not(:disabled) {\n box-shadow: var(--box-shadow-focus);\n outline: none;\n}\n\n// 'Checked' state\n// switch toggle\ninput:checked::after {\n transform: translate3d(0, -50%, 0);\n}\n\n// switch container\ninput:checked:not(:disabled) {\n background-color: currentColor;\n color: var(--color-background-checked);\n\n &:hover {\n border-color: currentColor;\n color: var(--color-background-checked-hover);\n }\n}\n","import { Component, Element, Event, EventEmitter, Host, h, Prop } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-switch',\n styleUrl: 'pds-switch.scss',\n shadow: true,\n})\nexport class PdsSwitch {\n @Element() el: HTMLPdsSwitchElement;\n\n /**\n * A unique identifier used for the underlying component `id` attribute and the label `for` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Determines the input 'checked' state\n */\n @Prop() checked = false;\n\n /**\n * Determines the input 'disabled' state, preventing user interaction\n */\n @Prop() disabled? = false;\n\n /**\n * Displays message text describing an invalid state\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays help text for additional description of an input\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines the input 'invalid' state, signifying an error is present\n */\n @Prop() invalid? = false;\n\n /**\n * Displays text to describe the input\n */\n @Prop() label!: string;\n\n /**\n * Identifies form data and unifies a group of radio inputs for toggling a single property/value\n */\n @Prop() name: string;\n\n /**\n * Determines the 'required' state of the input\n */\n @Prop() required? = false;\n\n /**\n * Specifies the underlying input element type\n * @defaultValue 'checkbox'\n */\n @Prop() type: 'checkbox' | 'radio' = 'checkbox';\n\n /**\n * Provides input with a string submitted in form data, and can be used to distinguish radio inputs\n */\n @Prop() value: string;\n\n /**\n * Emits an event on input change\n */\n @Event() pdsSwitchChange: EventEmitter<InputEvent>;\n\n private onSwitchUpdate = (e: Event) => {\n if (this.disabled) return;\n this.pdsSwitchChange.emit(e as InputEvent);\n };\n\n /**\n * Generate switch classes\n */\n private switchClassNames = () => {\n let switchClasses = `pds-switch`;\n\n if (this.invalid === true) {\n switchClasses += \" pds-switch--error\";\n }\n if (this.helperMessage !== undefined) {\n switchClasses += \" pds-switch--message\";\n }\n return switchClasses;\n };\n\n render() {\n return (\n <Host class={this.switchClassNames()} aria-disabled={this.disabled ? 'true' : null}>\n <input\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n checked={this.checked}\n class=\"pds-switch__input\"\n disabled={this.disabled}\n id={this.componentId}\n name={this.name ? this.name : this.componentId}\n onChange={this.onSwitchUpdate}\n required={this.required}\n type={this.type}\n value={this.value}\n />\n <PdsLabel classNames=\"pds-switch__label\" htmlFor={this.componentId} text={this.label} />\n {this.helperMessage &&\n <div\n class={`pds-switch__message`}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-switch__message pds-switch__message--error`}\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n {this.errorMessage}\n </div>\n }\n </Host>\n );\n }\n}\n"],"version":3}
|
package/components/pds-tab.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const pdsTabCss = "pds-tab{--border-none:var(--pine-border-width-none);--border-radius-availability:var(--pine-border-radius-100);--border-radius-default:var(--pine-border-radius-125);--border-radius-none:var(--pine-border-radius-0);--box-shadow-focus:0 0 0 2px var(--pine-color-blue-200);--color-background-active:var(--pine-color-charcoal-400);--color-background-availability:var(--pine-color-white);--color-background-default:var(--pine-color-grey-300);--color-background-hover:var(--pine-color-grey-400);--color-text-active:var(--pine-color-charcoal-400);--color-text-active-inverse:var(--pine-color-white);--color-text-default:var(--pine-color-charcoal-200);--color-text-focus:var(--pine-color-charcoal-300);--font-size-availability-content:var(--pine-font-size-075);--font-size-default:var(--pine-font-size-100);--font-size-filter-content:var(--pine-font-size-087);--font-weight-default:var(--pine-font-weight-medium);--line-height-availability-content:var(--pine-line-height-100);--line-height-default:var(--pine-line-height-150);--line-height-filter-content:var(--pine-line-height-125);--outline:4px solid var(--pine-color-blue-200);--spacing-padding-none:var(--pine-spacing-0);display:inline-block;position:relative}.pds-tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:var(--border-none);-webkit-box-shadow:none;box-shadow:none;color:inherit;cursor:pointer;font-family:inherit;padding:var(--spacing-padding-none);-ms-flex-align:center;align-items:center;color:var(--color-text-default);display:-ms-inline-flexbox;display:inline-flex;position:relative;text-decoration:none;white-space:nowrap}.pds-tab.is-active,.pds-tab[aria-selected=true]{color:var(--color-text-active)}.pds-tab.is-active .pds-tab__content::after,.pds-tab[aria-selected=true] .pds-tab__content::after{opacity:1}.pds-tab:hover{color:var(--color-text-active)}.pds-tab:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-tab .pds-tab__content{font-family:inherit;font-size:var(--font-size-default);font-weight:var(--font-weight-default);line-height:var(--line-height-default);-webkit-padding-after:11px;padding-block-end:11px;position:relative}.pds-tab .pds-tab__content::after{background-color:currentColor;bottom:0;content:\"\";height:3px;left:0;opacity:0;position:absolute;right:0}.pds-tab .pds-tab-edge{display:none}.pds-tabs--availability{--color-background-tab:transparent}.pds-tabs--availability .pds-tab{background-color:var(--color-background-tab);border-radius:var(--border-radius-availability) var(--border-radius-availability) var(--border-radius-none) var(--border-radius-none);padding:8px 16px 13px}.pds-tabs--availability .pds-tab.is-active,.pds-tabs--availability .pds-tab[aria-selected=true]{--color-background-tab:var(--color-background-availability)}.pds-tabs--availability .pds-tab.is-active .pds-tab__content::after,.pds-tabs--availability .pds-tab[aria-selected=true] .pds-tab__content::after{opacity:1}.pds-tabs--availability .pds-tab.is-active .pds-tab-edge,.pds-tabs--availability .pds-tab[aria-selected=true] .pds-tab-edge{z-index:1}.pds-tabs--availability .pds-tab:hover:not(.is-active,[aria-selected=true]){--color-background-tab:var(--color-background-default)}.pds-tabs--availability .pds-tab:focus-visible{color:var(--color-text-default)}.pds-tabs--availability .pds-tab__content{font-size:var(--font-size-availability-content);line-height:var(--line-height-availability-content);padding-bottom:7px}.pds-tabs--availability .pds-tab-edge{bottom:0;display:block;height:8px;inset-inline-end:100%;overflow:hidden;position:absolute;width:8px}.pds-tabs--availability .pds-tab-edge::before{border-radius:50%;bottom:0;-webkit-box-shadow:4px 4px 0 0 var(--color-background-tab);box-shadow:4px 4px 0 0 var(--color-background-tab);content:\"\";display:block;height:200%;inset-inline-end:0;position:absolute;width:200%}.pds-tabs--availability .pds-tab-edge--end{inset-inline-end:unset;inset-inline-start:100%}.pds-tabs--availability .pds-tab-edge--end::before{-webkit-box-shadow:-4px 4px 0 0 var(--color-background-tab);box-shadow:-4px 4px 0 0 var(--color-background-tab);inset-inline-end:unset;inset-inline-start:0}.pds-tabs--filter{--color-background-tab:var(--color-background-active)}.pds-tabs--filter .pds-tab{background-color:var(--color-background-tab);border-radius:50px;color:var(--color-text-active);padding:6px 15px}.pds-tabs--filter .pds-tab.is-active,.pds-tabs--filter .pds-tab[aria-selected=true]{--color-background-tab:var(--color-background-active);color:var(--color-text-active-inverse)}.pds-tabs--filter .pds-tab:hover:not(.is-active,[aria-selected=true]){--color-background-tab:var(--color-background-hover)}.pds-tabs--filter .pds-tab__content{font-size:var(--font-size-filter-content);line-height:var(--line-height-filter-content);-webkit-padding-after:0;padding-block-end:0}.pds-tabs--filter .pds-tab__content::after{content:unset}";
|
|
4
|
-
const PdsTabStyle0 = pdsTabCss;
|
|
5
|
-
|
|
6
|
-
const PdsTab$1 = /*@__PURE__*/ proxyCustomElement(class PdsTab extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.pdsTabClick = createEvent(this, "pdsTabClick", 7);
|
|
11
|
-
this.name = undefined;
|
|
12
|
-
this.parentComponentId = undefined;
|
|
13
|
-
this.variant = undefined;
|
|
14
|
-
this.index = undefined;
|
|
15
|
-
this.selected = false;
|
|
16
|
-
}
|
|
17
|
-
onTabClick(index, parentComponentId) {
|
|
18
|
-
this.pdsTabClick.emit([index, parentComponentId]);
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
const availabilityTabEdgeInlineStart = (h("span", { key: 'c315c8920c12da7d1913db7e53dc075dc9734280', class: "pds-tab-edge", role: "presentation" }));
|
|
22
|
-
const availabilityTabEdgeInlineEnd = (h("span", { key: '37dfaa651e87a0291d28c50fbdda9c1cfa70f41b', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
|
|
23
|
-
return (h(Host, { key: '0aa73a4a6b1ff12fff6f212135f8f33c14e6ff5f', variant: this.variant, slot: "tabs", index: this.index }, h("button", { key: '72443536e14ddad4ac8e19c025165884de81697f', 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: '547a022cb0354b176a11e681e9103bb4486ab1ef', class: "pds-tab__content" }, h("slot", { key: 'db859b0d21de4e57a75e588d069a9b1b86d271c4' })))));
|
|
24
|
-
}
|
|
25
|
-
get el() { return this; }
|
|
26
|
-
static get style() { return PdsTabStyle0; }
|
|
27
|
-
}, [4, "pds-tab", {
|
|
28
|
-
"name": [1],
|
|
29
|
-
"parentComponentId": [1, "parent-component-id"],
|
|
30
|
-
"variant": [1],
|
|
31
|
-
"index": [2],
|
|
32
|
-
"selected": [4]
|
|
33
|
-
}]);
|
|
34
|
-
function defineCustomElement$1() {
|
|
35
|
-
if (typeof customElements === "undefined") {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
const components = ["pds-tab"];
|
|
39
|
-
components.forEach(tagName => { switch (tagName) {
|
|
40
|
-
case "pds-tab":
|
|
41
|
-
if (!customElements.get(tagName)) {
|
|
42
|
-
customElements.define(tagName, PdsTab$1);
|
|
43
|
-
}
|
|
44
|
-
break;
|
|
45
|
-
} });
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const PdsTab = PdsTab$1;
|
|
49
|
-
const defineCustomElement = defineCustomElement$1;
|
|
50
|
-
|
|
51
|
-
export { PdsTab, defineCustomElement };
|
|
52
|
-
|
|
53
|
-
//# sourceMappingURL=pds-tab.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-tab.js","mappings":";;AAAA,MAAM,SAAS,GAAG,00JAA00J,CAAC;AAC71J,qBAAe,SAAS;;MCMXA,QAAM;;;;;;;;;wBA8BE,KAAK;;IAOhB,UAAU,CAAC,KAAK,EAAE,iBAAiB;QACzC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC;KACnD;IAED,MAAM;QACJ,MAAM,8BAA8B,IAClC,6DAAM,KAAK,EAAC,cAAc,EAAC,IAAI,EAAC,cAAc,GAAQ,CACvD,CAAA;QAED,MAAM,4BAA4B,IAChC,6DAAM,KAAK,EAAC,gCAAgC,EAAC,IAAI,EAAC,cAAc,GAAQ,CACzE,CAAA;QAED,QACE,EAAC,IAAI,qDAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,IACxD,+DACE,IAAI,EAAC,KAAK,EACV,EAAE,EAAE,IAAI,CAAC,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,mBAC9B,IAAI,CAAC,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,QAAQ,EACnE,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,GAAG,GAAG,IAAI,mBACrB,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO,EAC/C,KAAK,EAAE,IAAI,CAAC,QAAQ,GAAG,mBAAmB,GAAG,SAAS,EACtD,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAEtE,IAAI,CAAC,OAAO,KAAK,cAAc,IAAI,8BAA8B,EACjE,IAAI,CAAC,OAAO,KAAK,cAAc,IAAI,4BAA4B,EAChE,4DAAK,KAAK,EAAC,kBAAkB,IAAC,8DAAO,CAAM,CACpC,CACJ,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsTab"],"sources":["src/components/pds-tabs/pds-tab/pds-tab.scss?tag=pds-tab","src/components/pds-tabs/pds-tab/pds-tab.tsx"],"sourcesContent":["pds-tab {\n --border-none: var(--pine-border-width-none);\n\n --border-radius-availability: var(--pine-border-radius-100);\n --border-radius-default: var(--pine-border-radius-125);\n --border-radius-none: var(--pine-border-radius-0);\n\n --box-shadow-focus: 0 0 0 2px var(--pine-color-blue-200);\n\n --color-background-active: var(--pine-color-charcoal-400);\n --color-background-availability: var(--pine-color-white);\n --color-background-default: var(--pine-color-grey-300);\n --color-background-hover: var(--pine-color-grey-400);\n --color-text-active: var(--pine-color-charcoal-400);\n --color-text-active-inverse: var(--pine-color-white);\n --color-text-default: var(--pine-color-charcoal-200);\n --color-text-focus: var(--pine-color-charcoal-300);\n\n --font-size-availability-content: var(--pine-font-size-075);\n --font-size-default: var(--pine-font-size-100);\n --font-size-filter-content: var(--pine-font-size-087);\n\n --font-weight-default: var(--pine-font-weight-medium);\n\n --line-height-availability-content: var(--pine-line-height-100);\n --line-height-default: var(--pine-line-height-150);\n --line-height-filter-content: var(--pine-line-height-125);\n\n --outline: 4px solid var(--pine-color-blue-200);\n\n --spacing-padding-none: var(--pine-spacing-0);\n\n display: inline-block;\n position: relative;\n}\n\n///\n/// Resets base button styles\n///\n@mixin pds-button-style-reset {\n appearance: none;\n background-color: transparent;\n border: var(--border-none);\n box-shadow: none;\n color: inherit;\n cursor: pointer;\n font-family: inherit;\n padding: var(--spacing-padding-none);\n}\n\n.pds-tab {\n @include pds-button-style-reset();\n\n align-items: center;\n color: var(--color-text-default);\n display: inline-flex;\n position: relative;\n text-decoration: none;\n white-space: nowrap;\n\n &.is-active,\n &[aria-selected='true'] {\n color: var(--color-text-active);\n\n .pds-tab__content::after {\n opacity: 1;\n }\n }\n\n &:hover {\n color: var(--color-text-active);\n }\n\n &:focus-visible {\n // outline: var(--pine-border-focus); Border radius for outline does not work in Safari\n box-shadow: var(--box-shadow-focus); // Remove when outline radius is supported in Safari\n outline: none;\n }\n\n .pds-tab__content {\n font-family: inherit;\n font-size: var(--font-size-default);\n font-weight: var(--font-weight-default);\n line-height: var(--line-height-default);\n padding-block-end: 11px;\n position: relative;\n\n &::after {\n background-color: currentColor;\n bottom: 0;\n content: '';\n height: 3px;\n left: 0;\n opacity: 0;\n position: absolute;\n right: 0;\n }\n }\n\n .pds-tab-edge {\n display: none;\n }\n}\n\n.pds-tabs--availability {\n --color-background-tab: transparent;\n\n .pds-tab {\n background-color: var(--color-background-tab);\n border-radius: var(--border-radius-availability) var(--border-radius-availability) var(--border-radius-none) var(--border-radius-none);\n padding: 8px 16px 13px;\n\n &.is-active,\n &[aria-selected='true'] {\n --color-background-tab: var(--color-background-availability);\n\n .pds-tab__content::after {\n opacity: 1;\n }\n\n .pds-tab-edge {\n z-index: 1;\n }\n }\n\n &:hover:not(.is-active, [aria-selected='true']) {\n --color-background-tab: var(--color-background-default);\n }\n\n &:focus-visible {\n color: var(--color-text-default);\n }\n }\n\n .pds-tab__content {\n font-size: var(--font-size-availability-content);\n line-height: var(--line-height-availability-content);\n padding-bottom: 7px;\n }\n\n .pds-tab-edge {\n bottom: 0;\n display: block;\n height: 8px;\n inset-inline-end: 100%;\n overflow: hidden;\n position: absolute;\n width: 8px;\n\n &::before {\n border-radius: 50%;\n bottom: 0;\n box-shadow: 4px 4px 0 0 var(--color-background-tab);\n content: '';\n display: block;\n height: 200%;\n inset-inline-end: 0;\n position: absolute;\n width: 200%;\n }\n }\n\n .pds-tab-edge--end {\n inset-inline-end: unset;\n inset-inline-start: 100%;\n\n &::before {\n box-shadow: -4px 4px 0 0 var(--color-background-tab);\n inset-inline-end: unset;\n inset-inline-start: 0;\n }\n }\n}\n\n.pds-tabs--filter {\n --color-background-tab: var(--color-background-active);\n\n .pds-tab {\n background-color: var(--color-background-tab);\n border-radius: 50px;\n color: var(--color-text-active);\n padding: 6px 15px;\n\n &.is-active,\n &[aria-selected='true'] {\n --color-background-tab: var(--color-background-active);\n color: var(--color-text-active-inverse)\n }\n\n &:hover:not(.is-active, [aria-selected='true']) {\n --color-background-tab: var(--color-background-hover);\n }\n }\n\n .pds-tab__content {\n font-size: var(--font-size-filter-content);\n line-height: var(--line-height-filter-content);\n padding-block-end: 0;\n\n &::after {\n content: unset;\n }\n }\n}\n","import { Component, Element, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'pds-tab',\n styleUrl: 'pds-tab.scss',\n shadow: false,\n})\nexport class PdsTab {\n @Element() el: HTMLPdsTabElement;\n\n /**\n * Sets the related tab name, this name must match a `pds-tabpanel`'s tab name property\n */\n @Prop() name!: string;\n\n /**\n * Keeps track of the parentComponentId unique id, this property is passed by parent component\n */\n /** @internal */\n @Prop() parentComponentId: string;\n\n /**\n * Keeps track of if the expected tab variant, this property is passed by parent component\n */\n /** @internal */\n @Prop() variant: string;\n\n /**\n * Keeps track of if the tab index number, this property is passed by parent component\n */\n /** @internal */\n @Prop() index: number;\n\n /**\n * Keeps track of the tabpanel selected state, this property is passed by parent component\n */\n /** @internal */\n @Prop() selected = false;\n\n /**\n * Emits an event upon tab click for `pds-tab` and `pds-tabpanel` to listen for\n */\n /** @internal */\n @Event() pdsTabClick: EventEmitter<object>;\n private onTabClick(index, parentComponentId) {\n this.pdsTabClick.emit([index, parentComponentId]);\n }\n\n render() {\n const availabilityTabEdgeInlineStart = (\n <span class=\"pds-tab-edge\" role=\"presentation\"></span>\n )\n\n const availabilityTabEdgeInlineEnd = (\n <span class=\"pds-tab-edge pds-tab-edge--end\" role=\"presentation\"></span>\n )\n\n return (\n <Host variant={this.variant} slot=\"tabs\" index={this.index}>\n <button\n role=\"tab\"\n id={this.parentComponentId + \"__\" + this.name}\n aria-controls={this.parentComponentId + \"__\" + this.name + \"-panel\"}\n tabindex={this.selected ? \"0\" : \"-1\"}\n aria-selected={this.selected ? \"true\" : \"false\"}\n class={this.selected ? \"pds-tab is-active\" : \"pds-tab\"}\n onClick={this.onTabClick.bind(this, this.index, this.parentComponentId)}\n >\n {this.variant === \"availability\" && availabilityTabEdgeInlineStart}\n {this.variant === \"availability\" && availabilityTabEdgeInlineEnd}\n <div class=\"pds-tab__content\"><slot/></div>\n </button>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const pdsTableBodyCss = ":host{border-color:inherit;display:table-row-group;vertical-align:middle}";
|
|
4
|
-
const PdsTableBodyStyle0 = pdsTableBodyCss;
|
|
5
|
-
|
|
6
|
-
const PdsTableBody$1 = /*@__PURE__*/ proxyCustomElement(class PdsTableBody extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
return (h(Host, { key: '6d312a1c25591258df1f47699b2b7a3b74d85fe3', role: "rowgroup" }, h("slot", { key: '423f7e680e9eff6daf2d4a08544b619f2c420beb' })));
|
|
14
|
-
}
|
|
15
|
-
static get style() { return PdsTableBodyStyle0; }
|
|
16
|
-
}, [1, "pds-table-body"]);
|
|
17
|
-
function defineCustomElement$1() {
|
|
18
|
-
if (typeof customElements === "undefined") {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
const components = ["pds-table-body"];
|
|
22
|
-
components.forEach(tagName => { switch (tagName) {
|
|
23
|
-
case "pds-table-body":
|
|
24
|
-
if (!customElements.get(tagName)) {
|
|
25
|
-
customElements.define(tagName, PdsTableBody$1);
|
|
26
|
-
}
|
|
27
|
-
break;
|
|
28
|
-
} });
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const PdsTableBody = PdsTableBody$1;
|
|
32
|
-
const defineCustomElement = defineCustomElement$1;
|
|
33
|
-
|
|
34
|
-
export { PdsTableBody, defineCustomElement };
|
|
35
|
-
|
|
36
|
-
//# sourceMappingURL=pds-table-body.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-table-body.js","mappings":";;AAAA,MAAM,eAAe,GAAG,2EAA2E,CAAC;AACpG,2BAAe,eAAe;;MCMjBA,cAAY;;;;;;IAEvB,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU,IACnB,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;","names":["PdsTableBody"],"sources":["src/components/pds-table/pds-table-body/pds-table-body.scss?tag=pds-table-body&encapsulation=shadow","src/components/pds-table/pds-table-body/pds-table-body.tsx"],"sourcesContent":[":host {\n border-color: inherit;\n display: table-row-group;\n vertical-align: middle;\n}\n","import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'pds-table-body',\n styleUrl: 'pds-table-body.scss',\n shadow: true,\n})\nexport class PdsTableBody {\n\n render() {\n return (\n <Host role=\"rowgroup\">\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { P as PdsTableCell$1, d as defineCustomElement$1 } from './pds-table-cell2.js';
|
|
2
|
-
|
|
3
|
-
const PdsTableCell = PdsTableCell$1;
|
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
|
5
|
-
|
|
6
|
-
export { PdsTableCell, defineCustomElement };
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=pds-table-cell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-table-cell.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-table-cell2.js","mappings":";;AAAA,MAAM,eAAe,GAAG,urCAAurC,CAAC;AAChtC,2BAAe,eAAe;;MCMjB,YAAY;;;;;QAuCf,iBAAY,GAAG;YACrB,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,CAAC,EAAE;gBAChC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;aAC5B;iBAAM;gBACL,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;aAC7B;SACF,CAAC;;8BA1ByC,KAAK;;IAfhD,mBAAmB;QACjB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,WAAW,CAAwB,CAAC;KAC9E;IAED,gBAAgB;QACd,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE;YAC1E,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;SAC7D;KACF;IASO,UAAU;QAChB,MAAM,UAAU,GAAG,EAAE,CAAC;QAEtB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE;YAC1C,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SAC/B;QAED,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;SACjC;QAED,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,IAAI,IAAI,CAAC,cAAc,EAAE;YACrE,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;SACjC;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC7B;IAUD,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,IAAI,EAAC,UAAU,EACf,KAAK,EACH,IAAI,CAAC,QAAQ;gBACb,IAAI,CAAC,QAAQ,CAAC,WAAW;gBACzB,IAAI,CAAC,QAAQ,CAAC,UAAU;kBACpB,EAAE,uBAAuB,EAAE,MAAM,EAAE;kBACnC,EAAE,IAGR,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/pds-table/pds-table-cell/pds-table-cell.scss?tag=pds-table-cell&encapsulation=shadow","src/components/pds-table/pds-table-cell/pds-table-cell.tsx"],"sourcesContent":[":host {\n --box-shadow-fixed: 3px 3px 6px -2px rgba(0, 0, 0, 0.2);\n\n --color-background-fixed: var(--pine-color-white);\n --color-cell-default: var(--pine-color-charcoal-200);\n\n --dimension-fixed-cell-position: 0;\n --dimension-max-width-truncated: 100px;\n\n --font-size-cell-default: var(--pine-font-size-087);\n\n --number-fixed-column-index: 0;\n\n --spacing-line-height-cell-default: var(--pine-line-height-125);\n --spacing-padding-cell-default: calc(var(--pine-spacing-300) / 2);\n --spacing-padding-compact: var(--pine-spacing-050);\n\n color: var(--color-cell-default);\n display: table-cell;\n font-size: var(--font-size-cell-default);\n line-height: var(--spacing-line-height-cell-default);\n padding: var(--spacing-padding-cell-default);\n vertical-align: inherit;\n}\n\n:host(.is-compact) {\n padding-block: var(--spacing-padding-compact);\n}\n\n:host(.is-fixed) {\n background: var(--color-background-fixed);\n left: var(--dimension-fixed-cell-position);\n position: sticky;\n z-index: 1;\n}\n\n// box shadow when table has scrolled and cell is fixed\n:host(.has-scrolled.is-fixed) {\n box-shadow: var(--box-shadow-fixed);\n}\n\n:host(.is-truncated) {\n max-width: var(--dimension-max-width-truncated);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n:host(.has-checkbox) {\n vertical-align: middle;\n width: 16px;\n}\n","import { Component, Element, Host, Prop, State, h } from '@stencil/core';\n\n@Component({\n tag: 'pds-table-cell',\n styleUrl: 'pds-table-cell.scss',\n shadow: true,\n})\nexport class PdsTableCell {\n @Element() hostElement: HTMLPdsTableCellElement;\n tableRef: HTMLPdsTableElement;\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n }\n\n componentDidLoad() {\n if (this.tableRef && this.tableRef.responsive && this.tableRef.fixedColumn) {\n this.tableRef.addEventListener('scroll', this.handleScroll);\n }\n }\n\n /**\n * Truncates content to a max width of 100px and adds an ellipsis.\n */\n @Prop() truncate: boolean;\n\n @State() private tableScrolling: boolean = false;\n\n private classNames() {\n const classNames = [];\n\n if (this.tableRef && this.tableRef.compact) {\n classNames.push('is-compact');\n }\n\n if (this.truncate) {\n classNames.push('is-truncated');\n }\n\n if (this.tableRef && this.tableRef.fixedColumn && this.tableScrolling) {\n classNames.push('has-scrolled');\n }\n\n return classNames.join(' ');\n }\n\n private handleScroll = () => {\n if (this.tableRef.scrollLeft > 0) {\n this.tableScrolling = true;\n } else {\n this.tableScrolling = false;\n }\n };\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"gridcell\"\n style={\n this.tableRef &&\n this.tableRef.fixedColumn &&\n this.tableRef.selectable\n ? { '--fixed-cell-position': '40px' }\n : {}\n }\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { P as PdsTableHeadCell$1, d as defineCustomElement$1 } from './pds-table-head-cell2.js';
|
|
2
|
-
|
|
3
|
-
const PdsTableHeadCell = PdsTableHeadCell$1;
|
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
|
5
|
-
|
|
6
|
-
export { PdsTableHeadCell, defineCustomElement };
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=pds-table-head-cell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-table-head-cell.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { e as upSmall, d as downSmall } from './index2.js';
|
|
3
|
-
import { d as defineCustomElement$1 } from './pds-icon2.js';
|
|
4
|
-
|
|
5
|
-
const pdsTableHeadCellCss = ":host{--border-head-cell-default:var(--pine-border-width-thin) solid var(--pine-color-grey-300);--box-shadow-default:3px 3px 6px -2px rgba(0, 0, 0, 0.1);--color-background-fixed:var(--pine-color-white);--color-sorting:var(--pine-color-charcoal-500);--color-text-default:var(--pine-color-charcoal-200);--dimension-fixed-cell-position:0;--font-size-head-cell:var(--pine-font-size-087);--font-weight-cell-default:var(--pine-font-weight-normal);--line-height-cell-default:var(--pine-line-height-125);--padding-cell-default:calc(var(--pine-spacing-300) / 2);--spacing-margin-inline-start-arrow:var(--pine-spacing-050);--spacing-padding-arrow:calc(var(--pine-spacing-050) / 2);--spacing-padding-block-compact:var(--pine-spacing-050);-webkit-border-after:var(--border-head-cell-default);border-block-end:var(--border-head-cell-default);color:var(--color-text-default);display:table-cell;font-size:var(--font-size-head-cell);font-style:normal;font-weight:var(--font-weight-cell-default);line-height:var(--line-height-cell-default);padding:var(--padding-cell-default);text-align:start;vertical-align:inherit}:host(.is-compact){padding-block:var(--spacing-padding-block-compact)}:host(.is-fixed){background:var(--color-background-fixed);left:var(--dimension-fixed-cell-position);position:-webkit-sticky;position:sticky;z-index:1}:host(.has-scrolled.is-fixed){-webkit-box-shadow:var(--box-shadow-default);box-shadow:var(--box-shadow-default)}:host(.is-sortable){cursor:pointer}:host(.is-sortable) pds-icon{-webkit-margin-start:var(--spacing-margin-inline-start-arrow);margin-inline-start:var(--spacing-margin-inline-start-arrow);-webkit-padding-before:var(--spacing-padding-arrow);padding-block-start:var(--spacing-padding-arrow);position:absolute}:host(.is-sortable:hover),:host(.is-active){color:var(--color-sorting)}";
|
|
6
|
-
const PdsTableHeadCellStyle0 = pdsTableHeadCellCss;
|
|
7
|
-
|
|
8
|
-
const PdsTableHeadCell = /*@__PURE__*/ proxyCustomElement(class PdsTableHeadCell extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
13
|
-
this.pdsTableSort = createEvent(this, "pdsTableSort", 7);
|
|
14
|
-
this.handleScroll = () => {
|
|
15
|
-
if (this.tableRef.scrollLeft > 0) {
|
|
16
|
-
this.tableScrolling = true;
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
this.tableScrolling = false;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
this.toggleSort = () => {
|
|
23
|
-
if (this.sortable) {
|
|
24
|
-
const column = this.hostElement.innerText.trim();
|
|
25
|
-
this.sortingDirection = this.sortingDirection === 'asc' ? 'desc' : 'asc';
|
|
26
|
-
this.tableRef.querySelectorAll('pds-table-head-cell').forEach((headCell) => {
|
|
27
|
-
headCell.classList.remove('is-active');
|
|
28
|
-
});
|
|
29
|
-
this.hostElement.classList.toggle('is-active');
|
|
30
|
-
this.pdsTableSort.emit({ column, direction: this.sortingDirection });
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
this.sortable = undefined;
|
|
34
|
-
this.sortingDirection = 'asc';
|
|
35
|
-
this.tableScrolling = false;
|
|
36
|
-
}
|
|
37
|
-
componentWillRender() {
|
|
38
|
-
this.tableRef = this.hostElement.closest('pds-table');
|
|
39
|
-
}
|
|
40
|
-
componentDidLoad() {
|
|
41
|
-
if (this.tableRef && this.tableRef.responsive && this.tableRef.fixedColumn) {
|
|
42
|
-
this.tableRef.addEventListener('scroll', this.handleScroll);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
classNames() {
|
|
46
|
-
const classNames = [];
|
|
47
|
-
if (this.tableRef && this.tableRef.compact) {
|
|
48
|
-
classNames.push('is-compact');
|
|
49
|
-
}
|
|
50
|
-
if (this.sortable) {
|
|
51
|
-
classNames.push('is-sortable');
|
|
52
|
-
}
|
|
53
|
-
if (this.sortable && this.sortingDirection !== null) {
|
|
54
|
-
classNames.push('sort-' + this.sortingDirection);
|
|
55
|
-
}
|
|
56
|
-
if (this.tableRef && this.tableRef.fixedColumn && this.tableScrolling) {
|
|
57
|
-
classNames.push('has-scrolled');
|
|
58
|
-
}
|
|
59
|
-
return classNames.join(' ');
|
|
60
|
-
}
|
|
61
|
-
render() {
|
|
62
|
-
return (h(Host, { key: 'b8b24eb690d19c1d6476fd44c69a3231b540d476', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, style: this.tableRef &&
|
|
63
|
-
this.tableRef.fixedColumn &&
|
|
64
|
-
this.tableRef.selectable
|
|
65
|
-
? { '--fixed-cell-position': '40px' }
|
|
66
|
-
: {} }, h("slot", { key: '831ea922b3fb2166852208f2a9520414c93f6954' }), this.sortable && (h("pds-icon", { key: '0afb8d56992327112c64e79d6bfc7c1d192d9732', icon: this.sortingDirection === 'asc' ? upSmall : downSmall }))));
|
|
67
|
-
}
|
|
68
|
-
get hostElement() { return this; }
|
|
69
|
-
static get style() { return PdsTableHeadCellStyle0; }
|
|
70
|
-
}, [1, "pds-table-head-cell", {
|
|
71
|
-
"sortable": [4],
|
|
72
|
-
"sortingDirection": [32],
|
|
73
|
-
"tableScrolling": [32]
|
|
74
|
-
}]);
|
|
75
|
-
function defineCustomElement() {
|
|
76
|
-
if (typeof customElements === "undefined") {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
const components = ["pds-table-head-cell", "pds-icon"];
|
|
80
|
-
components.forEach(tagName => { switch (tagName) {
|
|
81
|
-
case "pds-table-head-cell":
|
|
82
|
-
if (!customElements.get(tagName)) {
|
|
83
|
-
customElements.define(tagName, PdsTableHeadCell);
|
|
84
|
-
}
|
|
85
|
-
break;
|
|
86
|
-
case "pds-icon":
|
|
87
|
-
if (!customElements.get(tagName)) {
|
|
88
|
-
defineCustomElement$1();
|
|
89
|
-
}
|
|
90
|
-
break;
|
|
91
|
-
} });
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export { PdsTableHeadCell as P, defineCustomElement as d };
|
|
95
|
-
|
|
96
|
-
//# sourceMappingURL=pds-table-head-cell2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-table-head-cell2.js","mappings":";;;;AAAA,MAAM,mBAAmB,GAAG,kxDAAkxD,CAAC;AAC/yD,+BAAe,mBAAmB;;MCQrB,gBAAgB;;;;;;QA2BnB,iBAAY,GAAG;YACrB,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,CAAC,EAAE;gBAChC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;aAC5B;iBAAM;gBACL,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;aAC7B;SACF,CAAC;QAEM,eAAU,GAAG;YACnB,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;gBACjD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,KAAK,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;gBAEzE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ;oBACrE,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;iBACxC,CAAC,CAAC;gBAEH,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;gBAC/C,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC;aACtE;SACF,CAAA;;gCAjCmD,KAAK;8BACd,KAAK;;IAEhD,mBAAmB;QACjB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,WAAW,CAAwB,CAAC;KAC9E;IAED,gBAAgB;QACd,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE;YAC1E,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;SAC7D;KACF;IAwBO,UAAU;QAChB,MAAM,UAAU,GAAG,EAAE,CAAC;QAEtB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE;YAC1C,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SAC/B;QAED,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAChC;QAED,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,gBAAgB,KAAK,IAAI,EAAE;YACnD,UAAU,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC;SAClD;QAED,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,IAAI,IAAI,CAAC,cAAc,EAAE;YACrE,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;SACjC;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC9B;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,IAAI,EAAC,cAAc,EACnB,OAAO,EAAE,IAAI,CAAC,UAAU,EACxB,KAAK,EACH,IAAI,CAAC,QAAQ;gBACb,IAAI,CAAC,QAAQ,CAAC,WAAW;gBACzB,IAAI,CAAC,QAAQ,CAAC,UAAU;kBACpB,EAAE,uBAAuB,EAAE,MAAM,EAAE;kBACnC,EAAE,IAGR,8DAAa,EACZ,IAAI,CAAC,QAAQ,KACZ,iEAAU,IAAI,EAAE,IAAI,CAAC,gBAAgB,KAAK,KAAK,GAAG,OAAO,GAAG,SAAS,GAAI,CAC1E,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/pds-table/pds-table-head-cell/pds-table-head-cell.scss?tag=pds-table-head-cell&encapsulation=shadow","src/components/pds-table/pds-table-head-cell/pds-table-head-cell.tsx"],"sourcesContent":[":host {\n --border-head-cell-default: var(--pine-border-width-thin) solid var(--pine-color-grey-300);\n\n --box-shadow-default: 3px 3px 6px -2px rgba(0, 0, 0, 0.1);\n\n --color-background-fixed: var(--pine-color-white);\n --color-sorting: var(--pine-color-charcoal-500);\n --color-text-default: var(--pine-color-charcoal-200);\n\n --dimension-fixed-cell-position: 0;\n\n --font-size-head-cell: var(--pine-font-size-087);\n --font-weight-cell-default: var(--pine-font-weight-normal);\n\n --line-height-cell-default: var(--pine-line-height-125);\n\n --padding-cell-default: calc(var(--pine-spacing-300) / 2);\n\n --spacing-margin-inline-start-arrow: var(--pine-spacing-050);\n --spacing-padding-arrow: calc(var(--pine-spacing-050) / 2);\n --spacing-padding-block-compact: var(--pine-spacing-050);\n\n border-block-end: var(--border-head-cell-default);\n color: var(--color-text-default);\n display: table-cell;\n font-size: var(--font-size-head-cell);\n font-style: normal;\n font-weight: var(--font-weight-cell-default);\n line-height: var(--line-height-cell-default);\n padding: var(--padding-cell-default);\n text-align: start;\n vertical-align: inherit;\n}\n\n:host(.is-compact) {\n padding-block: var(--spacing-padding-block-compact)\n}\n\n:host(.is-fixed) {\n background: var(--color-background-fixed);\n left: var(--dimension-fixed-cell-position);\n position: sticky;\n z-index: 1;\n}\n\n// box shadow when table has scrolled and cell is fixed\n:host(.has-scrolled.is-fixed) {\n box-shadow: var(--box-shadow-default);\n}\n\n:host(.is-sortable) {\n cursor: pointer;\n\n pds-icon {\n margin-inline-start: var(--spacing-margin-inline-start-arrow);\n padding-block-start: var(--spacing-padding-arrow);\n position: absolute;\n }\n}\n\n:host(.is-sortable:hover),\n:host(.is-active) {\n color: var(--color-sorting);\n}\n","import { Component, Element, Host, Prop, h, Event, EventEmitter, State } from '@stencil/core';\n\nimport { downSmall, upSmall } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-table-head-cell',\n styleUrl: 'pds-table-head-cell.scss',\n shadow: true,\n})\nexport class PdsTableHeadCell {\n @Element() hostElement: HTMLPdsTableHeadCellElement;\n tableRef: HTMLPdsTableElement;\n\n /**\n * Determines whether the table column is sortable when set to `true`.\n */\n @Prop() sortable: boolean;\n\n /**\n * Event emitted to signal that a table column header has been sorted, providing information about the sorted column's name and sorting direction.\n */\n @Event() pdsTableSort: EventEmitter<{ column: string; direction: string }>;\n\n @State() private sortingDirection: 'asc' | 'desc' = 'asc';\n @State() private tableScrolling: boolean = false;\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n }\n\n componentDidLoad() {\n if (this.tableRef && this.tableRef.responsive && this.tableRef.fixedColumn) {\n this.tableRef.addEventListener('scroll', this.handleScroll);\n }\n }\n\n private handleScroll = () => {\n if (this.tableRef.scrollLeft > 0) {\n this.tableScrolling = true;\n } else {\n this.tableScrolling = false;\n }\n };\n\n private toggleSort = () => {\n if (this.sortable) {\n const column = this.hostElement.innerText.trim();\n this.sortingDirection = this.sortingDirection === 'asc' ? 'desc' : 'asc';\n\n this.tableRef.querySelectorAll('pds-table-head-cell').forEach((headCell) => {\n headCell.classList.remove('is-active');\n });\n\n this.hostElement.classList.toggle('is-active');\n this.pdsTableSort.emit({ column, direction: this.sortingDirection });\n }\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.tableRef && this.tableRef.compact) {\n classNames.push('is-compact');\n }\n\n if (this.sortable) {\n classNames.push('is-sortable');\n }\n\n if (this.sortable && this.sortingDirection !== null) {\n classNames.push('sort-' + this.sortingDirection);\n }\n\n if (this.tableRef && this.tableRef.fixedColumn && this.tableScrolling) {\n classNames.push('has-scrolled');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"columnheader\"\n onClick={this.toggleSort}\n style={\n this.tableRef &&\n this.tableRef.fixedColumn &&\n this.tableRef.selectable\n ? { '--fixed-cell-position': '40px' }\n : {}\n }\n >\n <slot></slot>\n {this.sortable && (\n <pds-icon icon={this.sortingDirection === 'asc' ? upSmall : downSmall} />\n )}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$3 } from './pds-icon2.js';
|
|
3
|
-
import { d as defineCustomElement$2 } from './pds-table-head-cell2.js';
|
|
4
|
-
|
|
5
|
-
const pdsTableHeadCss = ":host{--border-head-default:var(--pine-border-width-thin) solid var(--pine-color-grey-300);--color-background-fixed:var(--pine-color-base-white);border-color:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;display:table-header-group;vertical-align:middle}:host::part(checkbox-cell){background-color:var(--color-background-fixed);left:0;position:-webkit-sticky;position:sticky;z-index:1}:host pds-table-checkbox-cell{-webkit-border-after:var(--border-head-default);border-block-end:var(--border-head-default)}";
|
|
6
|
-
const PdsTableHeadStyle0 = pdsTableHeadCss;
|
|
7
|
-
|
|
8
|
-
const PdsTableHead$1 = /*@__PURE__*/ proxyCustomElement(class PdsTableHead extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
13
|
-
}
|
|
14
|
-
componentWillRender() {
|
|
15
|
-
this.tableRef = this.hostElement.closest('pds-table');
|
|
16
|
-
if (this.tableRef && this.tableRef.fixedColumn) {
|
|
17
|
-
const tableCell = this.hostElement.querySelector('pds-table-head-cell:first-child');
|
|
18
|
-
tableCell === null || tableCell === void 0 ? void 0 : tableCell.classList.add("is-fixed");
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
return (h(Host, { key: 'e92e19de602fa327f57b5577e346c6ac3c61a807', role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-head-cell", { key: '883511ea021dc59f29a5a354e6bbce7ad1eded86', part: this.tableRef.fixedColumn ? 'checkbox-cell' : '' })), h("slot", { key: 'bc39f9ea30696ee18dd4fafa744225e3e4b3fb9b' })));
|
|
23
|
-
}
|
|
24
|
-
get hostElement() { return this; }
|
|
25
|
-
static get style() { return PdsTableHeadStyle0; }
|
|
26
|
-
}, [1, "pds-table-head"]);
|
|
27
|
-
function defineCustomElement$1() {
|
|
28
|
-
if (typeof customElements === "undefined") {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
const components = ["pds-table-head", "pds-icon", "pds-table-head-cell"];
|
|
32
|
-
components.forEach(tagName => { switch (tagName) {
|
|
33
|
-
case "pds-table-head":
|
|
34
|
-
if (!customElements.get(tagName)) {
|
|
35
|
-
customElements.define(tagName, PdsTableHead$1);
|
|
36
|
-
}
|
|
37
|
-
break;
|
|
38
|
-
case "pds-icon":
|
|
39
|
-
if (!customElements.get(tagName)) {
|
|
40
|
-
defineCustomElement$3();
|
|
41
|
-
}
|
|
42
|
-
break;
|
|
43
|
-
case "pds-table-head-cell":
|
|
44
|
-
if (!customElements.get(tagName)) {
|
|
45
|
-
defineCustomElement$2();
|
|
46
|
-
}
|
|
47
|
-
break;
|
|
48
|
-
} });
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
const PdsTableHead = PdsTableHead$1;
|
|
52
|
-
const defineCustomElement = defineCustomElement$1;
|
|
53
|
-
|
|
54
|
-
export { PdsTableHead, defineCustomElement };
|
|
55
|
-
|
|
56
|
-
//# sourceMappingURL=pds-table-head.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-table-head.js","mappings":";;;;AAAA,MAAM,eAAe,GAAG,0gBAA0gB,CAAC;AACniB,2BAAe,eAAe;;MCMjBA,cAAY;;;;;;IAIvB,mBAAmB;QACjB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,WAAW,CAAwB,CAAC;QAE7E,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE;YAC9C,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,iCAAiC,CAAC,CAAC;YACpF,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;SACtC;KACF;IACD,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,KAAK,IACb,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,KACxC,4EAAqB,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,WAAW,GAAG,eAAe,GAAG,EAAE,GAAwB,CACpG,EACD,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsTableHead"],"sources":["src/components/pds-table/pds-table-head/pds-table-head.scss?tag=pds-table-head&encapsulation=shadow","src/components/pds-table/pds-table-head/pds-table-head.tsx"],"sourcesContent":[":host {\n --border-head-default: var(--pine-border-width-thin) solid var(--pine-color-grey-300);\n\n --color-background-fixed: var(--pine-color-base-white);\n\n border-color: inherit;\n box-sizing: border-box;\n display: table-header-group;\n vertical-align: middle;\n\n // used for pds-checkbox-cell\n // because it is in the ShadowDom\n &::part(checkbox-cell) {\n background-color: var(--color-background-fixed);\n left: 0;\n position: sticky;\n z-index: 1;\n }\n}\n\n:host pds-table-checkbox-cell {\n border-block-end: var(--border-head-default);\n}\n","import { Component, Element, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'pds-table-head',\n styleUrl: 'pds-table-head.scss',\n shadow: true,\n})\nexport class PdsTableHead {\n @Element() hostElement: HTMLPdsTableHeadElement;\n tableRef: HTMLPdsTableElement\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n\n if (this.tableRef && this.tableRef.fixedColumn) {\n const tableCell = this.hostElement.querySelector('pds-table-head-cell:first-child');\n tableCell?.classList.add(\"is-fixed\");\n }\n }\n render() {\n return (\n <Host role=\"row\">\n {this.tableRef && this.tableRef.selectable && (\n <pds-table-head-cell part={this.tableRef.fixedColumn ? 'checkbox-cell' : ''}></pds-table-head-cell>\n )}\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$3 } from './pds-checkbox2.js';
|
|
3
|
-
import { d as defineCustomElement$2 } from './pds-table-cell2.js';
|
|
4
|
-
|
|
5
|
-
const pdsTableRowCss = ":host{--color-background-fixed:var(--pine-color-white);--color-background-interactive:var(--pine-color-grey-200);border-color:inherit;display:table-row;vertical-align:inherit}:host::part(checkbox-cell){background-color:var(--color-background-fixed);left:0;position:-webkit-sticky;position:sticky;z-index:1}:host(:hover),:host(:hover)::part(checkbox-cell),:host(:hover) ::slotted(pds-table-cell),:host(.is-selected),:host(.is-selected)::part(checkbox-cell),:host(.is-selected) ::slotted(pds-table-cell){background:var(--color-background-interactive)}";
|
|
6
|
-
const PdsTableRowStyle0 = pdsTableRowCss;
|
|
7
|
-
|
|
8
|
-
const PdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(class PdsTableRow extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
13
|
-
this.pdsTableRowSelected = createEvent(this, "pdsTableRowSelected", 7);
|
|
14
|
-
this.handleCheckboxClick = () => {
|
|
15
|
-
this.isSelected = !this.isSelected; // Toggle the selected state
|
|
16
|
-
const selectedIndex = Array.from(this.hostElement.parentNode.children).indexOf(this.hostElement);
|
|
17
|
-
this.pdsTableRowSelected.emit({ rowIndex: selectedIndex, isSelected: this.isSelected });
|
|
18
|
-
};
|
|
19
|
-
this.generateUniqueId = () => {
|
|
20
|
-
const randomString = Math.random().toString(36).substring(2, 8);
|
|
21
|
-
const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
|
|
22
|
-
const uniqueId = `${randomString}-${timestamp}`;
|
|
23
|
-
return uniqueId;
|
|
24
|
-
};
|
|
25
|
-
this.isSelected = false;
|
|
26
|
-
}
|
|
27
|
-
classNames() {
|
|
28
|
-
const classNames = [];
|
|
29
|
-
if (this.isSelected) {
|
|
30
|
-
classNames.push("is-selected");
|
|
31
|
-
}
|
|
32
|
-
return classNames.join(' ');
|
|
33
|
-
}
|
|
34
|
-
componentWillRender() {
|
|
35
|
-
this.tableRef = this.hostElement.closest('pds-table');
|
|
36
|
-
if (this.tableRef && this.tableRef.fixedColumn) {
|
|
37
|
-
const tableCell = this.hostElement.querySelector('pds-table-cell');
|
|
38
|
-
tableCell === null || tableCell === void 0 ? void 0 : tableCell.classList.add("is-fixed");
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
render() {
|
|
42
|
-
return (h(Host, { key: '9ef478c127a101b918e3e444109a0a3b72d809d6', class: this.classNames(), role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-cell", { key: 'f7ecba3776fe1a5606ea66bc43f495e03635803f', part: this.tableRef.fixedColumn ? 'checkbox-cell' : '', class: this.tableRef.selectable ? 'has-checkbox' : '' }, h("pds-checkbox", { key: '6e4ebaa953542cb476f141818375b3ba8b490b2c', componentId: this.generateUniqueId(), onClick: this.handleCheckboxClick, label: "Select Row", labelHidden: true, checked: this.isSelected }))), h("slot", { key: '4ccbd6b1a81d420dec05acb4f7a404ee670959b3' })));
|
|
43
|
-
}
|
|
44
|
-
get hostElement() { return this; }
|
|
45
|
-
static get style() { return PdsTableRowStyle0; }
|
|
46
|
-
}, [1, "pds-table-row", {
|
|
47
|
-
"isSelected": [32]
|
|
48
|
-
}]);
|
|
49
|
-
function defineCustomElement$1() {
|
|
50
|
-
if (typeof customElements === "undefined") {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
const components = ["pds-table-row", "pds-checkbox", "pds-table-cell"];
|
|
54
|
-
components.forEach(tagName => { switch (tagName) {
|
|
55
|
-
case "pds-table-row":
|
|
56
|
-
if (!customElements.get(tagName)) {
|
|
57
|
-
customElements.define(tagName, PdsTableRow$1);
|
|
58
|
-
}
|
|
59
|
-
break;
|
|
60
|
-
case "pds-checkbox":
|
|
61
|
-
if (!customElements.get(tagName)) {
|
|
62
|
-
defineCustomElement$3();
|
|
63
|
-
}
|
|
64
|
-
break;
|
|
65
|
-
case "pds-table-cell":
|
|
66
|
-
if (!customElements.get(tagName)) {
|
|
67
|
-
defineCustomElement$2();
|
|
68
|
-
}
|
|
69
|
-
break;
|
|
70
|
-
} });
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
const PdsTableRow = PdsTableRow$1;
|
|
74
|
-
const defineCustomElement = defineCustomElement$1;
|
|
75
|
-
|
|
76
|
-
export { PdsTableRow, defineCustomElement };
|
|
77
|
-
|
|
78
|
-
//# sourceMappingURL=pds-table-row.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-table-row.js","mappings":";;;;AAAA,MAAM,cAAc,GAAG,uiBAAuiB,CAAC;AAC/jB,0BAAe,cAAc;;MCMhBA,aAAW;;;;;;QAcd,wBAAmB,GAAG;YAC5B,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;YACnC,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACjG,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;SACzF,CAAA;QAqBO,qBAAgB,GAAG;YACzB,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YAChE,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;YACjE,MAAM,QAAQ,GAAG,GAAG,YAAY,IAAI,SAAS,EAAE,CAAC;YAEhD,OAAO,QAAQ,CAAC;SACjB,CAAA;0BAjC8B,KAAK;;IAQ5B,UAAU;QAChB,MAAM,UAAU,GAAG,EAAE,CAAC;QAEtB,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAChC;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC9B;IAED,mBAAmB;QACjB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,WAAW,CAAwB,CAAC;QAE7E,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE;YAC9C,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;YACnE,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;SACtC;KACF;IAUD,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,IAAI,EAAC,KAAK,IAET,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,KACxC,uEAAgB,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,WAAW,GAAG,eAAe,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,cAAc,GAAG,EAAE,IAC3H,qEACE,WAAW,EAAE,IAAI,CAAC,gBAAgB,EAAE,EACpC,OAAO,EAAE,IAAI,CAAC,mBAAmB,EACjC,KAAK,EAAE,YAAY,EACnB,WAAW,EAAE,IAAI,EACjB,OAAO,EAAE,IAAI,CAAC,UAAU,GACxB,CACa,CAClB,EACD,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsTableRow"],"sources":["src/components/pds-table/pds-table-row/pds-table-row.scss?tag=pds-table-row&encapsulation=shadow","src/components/pds-table/pds-table-row/pds-table-row.tsx"],"sourcesContent":[":host {\n --color-background-fixed: var(--pine-color-white);\n --color-background-interactive: var(--pine-color-grey-200);\n\n border-color: inherit;\n display: table-row;\n vertical-align: inherit;\n\n // used for pds-checkbox-cell\n // because it is in the ShadowDom\n &::part(checkbox-cell) {\n background-color: var(--color-background-fixed);\n left: 0;\n position: sticky;\n z-index: 1;\n }\n}\n\n:host(:hover),\n:host(:hover)::part(checkbox-cell),\n:host(:hover) ::slotted(pds-table-cell),\n:host(.is-selected),\n:host(.is-selected)::part(checkbox-cell),\n:host(.is-selected) ::slotted(pds-table-cell) {\n background: var(--color-background-interactive);\n}\n","import { Component, Element, Host, h, Event, EventEmitter, State } from '@stencil/core';\n\n@Component({\n tag: 'pds-table-row',\n styleUrl: 'pds-table-row.scss',\n shadow: true,\n})\nexport class PdsTableRow {\n @Element() hostElement: HTMLPdsTableRowElement;\n tableRef: HTMLPdsTableElement;\n\n /**\n * Event that is emitted when the checkbox is clicked, carrying the selected value.\n */\n @Event() pdsTableRowSelected: EventEmitter<{ rowIndex: number; isSelected: boolean; }>;\n\n /**\n * A local state to track whether the row is currently selected.\n */\n @State() isSelected: boolean = false;\n\n private handleCheckboxClick = () => {\n this.isSelected = !this.isSelected; // Toggle the selected state\n const selectedIndex = Array.from(this.hostElement.parentNode.children).indexOf(this.hostElement);\n this.pdsTableRowSelected.emit({ rowIndex: selectedIndex, isSelected: this.isSelected });\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.isSelected) {\n classNames.push(\"is-selected\");\n }\n\n return classNames.join(' ');\n }\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n\n if (this.tableRef && this.tableRef.fixedColumn) {\n const tableCell = this.hostElement.querySelector('pds-table-cell');\n tableCell?.classList.add(\"is-fixed\");\n }\n }\n\n private generateUniqueId = () => {\n const randomString = Math.random().toString(36).substring(2, 8);\n const timestamp = new Date().toISOString().replace(/[:.]/g, '-');\n const uniqueId = `${randomString}-${timestamp}`;\n\n return uniqueId;\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"row\"\n >\n {this.tableRef && this.tableRef.selectable && (\n <pds-table-cell part={this.tableRef.fixedColumn ? 'checkbox-cell' : ''} class={this.tableRef.selectable ? 'has-checkbox' : ''} >\n <pds-checkbox\n componentId={this.generateUniqueId()}\n onClick={this.handleCheckboxClick}\n label={\"Select Row\"}\n labelHidden={true}\n checked={this.isSelected}\n />\n </pds-table-cell>\n )}\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|