@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-tabs.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,UAAU,GAAG,+hBAA+hB,CAAC;AACnjB,sBAAe,UAAU;;MCUZ,OAAO;;;;;;;;;IAmClB,eAAe,CAAC,KAAuB;QACrC,IAAI,IAAI,CAAC,WAAW,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;YACxC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACtC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC;SAC1D;KACF;IAGD,aAAa,CAAC,EAAiB;QAC7B,MAAM,MAAM,GAAG,CAAC,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;QAE1D,IAAI,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,G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BAAmB,EAAC,IAAI,EAAC,SAAS,gBAAa,IAAI,CAAC,YAAY,IACzEA,mEAAM,IAAI,EAAC,MAAM,GAAG,CAChB,EACNA,mEAAM,IAAI,EAAC,WAAW,GAAG,CACpB,EACP;KACH;;;;;;;","names":["h","Host"],"sources":["src/components/pds-tabs/pds-tabs.scss?tag=pds-tabs&encapsulation=shadow","src/components/pds-tabs/pds-tabs.tsx"],"sourcesContent":[":host {\n /**\n * @prop --spacing-panel-margin-top: Optional margin-top for panels\n */\n --spacing-panel-margin-top: 0;\n /**\n * @prop --spacing-panel-padding: Optional padding for panels\n */\n --spacing-panel-padding: 0;\n\n --outline: 2px solid var(--pine-color-blue-200);\n\n --spacing-gap-availability: var(--pine-spacing-100);\n --spacing-gap-default: var(--pine-spacing-300);\n --spacing-gap-filter: var(--pine-spacing-200);\n\n display: block;\n}\n\n.pds-tabs__tablist {\n display: flex;\n flex-wrap: wrap;\n gap: var(--spacing-gap-default);\n}\n\n:host(.pds-tabs--availability) .pds-tabs__tablist {\n gap: var(--spacing-gap-availability);\n}\n\n:host(.pds-tabs--filter) .pds-tabs__tablist {\n gap: var(--spacing-gap-filter);\n}\n","import { Component, Element, Host, h, Prop, Listen } from '@stencil/core';\n\n /**\n * @slot tabs - Content is placed within the `div[role=\"tablist\"]` element as children\n * @slot tabpanels - Content is placed directly after the `div[role=\"tablist\"]` element as siblings\n */\n@Component({\n tag: 'pds-tabs',\n styleUrl: 'pds-tabs.scss',\n shadow: true,\n})\nexport class PdsTabs {\n private tabs;\n private tabPanels;\n\n @Element() el: HTMLPdsTabsElement;\n\n /**\n * Sets the aria-label attached to the tablist element\n */\n @Prop() tablistLabel!: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Sets tabs variant styles as outlined in Figma documentation\n */\n @Prop() variant!: 'primary' | 'availability' | 'filter';\n\n /**\n * Sets the starting active tab name and maintains the name as the component re-renders\n */\n @Prop({mutable: true}) activeTabName!: string;\n\n /**\n * Sets the starting active tab index number and maintains the index number as the component re-renders\n */\n /** @internal */\n @Prop({mutable: true}) activeTabIndex: number;\n\n @Listen('pdsTabClick', {\n target: 'body',\n })\n tabClickHandler(event: CustomEvent<any>) {\n if (this.componentId === event.detail[1]) {\n this.activeTabIndex = event.detail[0];\n this.activeTabName = this.tabs[this.activeTabIndex].name;\n }\n }\n\n @Listen('keydown', {})\n handleKeyDown(ev: KeyboardEvent) {\n const keySet = [\"ArrowLeft\", \"ArrowRight\", \"Home\", \"End\"];\n\n if (keySet.includes(ev.key)) {\n ev.preventDefault();\n this.moveActiveTab(ev.key);\n }\n }\n\n private moveActiveTab(key: string) {\n const firstTabNumber = 0;\n const lastTabNumber = this.tabs.length - 1;\n\n let moveFocusTo = null;\n\n switch (key) {\n case 'ArrowLeft':\n moveFocusTo = (this.activeTabIndex === firstTabNumber) ? lastTabNumber : (this.activeTabIndex + (-1));\n break;\n case 'ArrowRight':\n moveFocusTo = (this.activeTabIndex === lastTabNumber) ? firstTabNumber : (this.activeTabIndex + 1);\n break;\n case 'Home':\n moveFocusTo = firstTabNumber;\n break;\n case 'End':\n moveFocusTo = lastTabNumber;\n break;\n }\n\n // Move focus to the button element within `pds-tab`\n this.tabs[moveFocusTo].children[0].focus();\n this.activeTabName = this.tabs[moveFocusTo].name;\n this.activeTabIndex = moveFocusTo;\n }\n\n private findAllChildren() {\n this.tabs = this.el.querySelectorAll('pds-tab');\n this.tabPanels = this.el.querySelectorAll('pds-tabpanel');\n }\n\n private propGeneration(child, index = 0) {\n child.parentComponentId = this.componentId.toString();\n child.variant = this.variant.toString();\n child.selected = (this.activeTabName === child.name) ? true : false;\n child['index'] = index;\n }\n\n private passPropsToChildren() {\n this.tabs.forEach((child, index) => {\n if (this.activeTabName === child.name) this.activeTabIndex = index;\n this.propGeneration(child, index);\n });\n\n this.tabPanels.forEach((child) => {\n this.propGeneration(child);\n });\n }\n\n private classNames() {\n let className = `pds-tabs`;\n if (this.variant && this.variant != 'primary') {\n const variantClassName = `pds-tabs--${this.variant}`;\n className += ' ' + variantClassName;\n }\n\n return className;\n };\n\n componentWillLoad() {\n this.findAllChildren();\n }\n\n componentWillRender() {\n this.passPropsToChildren();\n }\n\n render() {\n return (\n <Host active-tab-name={this.activeTabName} class={this.classNames()} id={this.componentId}>\n <div class=\"pds-tabs__tablist\" role=\"tablist\" aria-label={this.tablistLabel}>\n <slot name=\"tabs\" />\n </div>\n <slot name=\"tabpanels\" />\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-7d9c71f6.js');
|
|
6
|
-
const pdsLabel = require('./pds-label-5ebae56e.js');
|
|
7
|
-
|
|
8
|
-
const pdsTextareaCss = ":host{--border-interactive-default:var(--pine-border-width-thin) solid var(--pine-color-grey-400);--box-shadow-focus:0 0 0 2px var(--color-focus-visible-outline);--box-shadow-focus-error:0 0 0 2px var(--color-focus-visible-outline-error);--color:var(--pine-color-charcoal-400);--color-background:var(--pine-color-white);--color-background-disabled:var(--pine-color-grey-200);--color-border-default:var(--pine-color-grey-400);--color-border-error:var(--pine-color-red-300);--color-border-focus-visible:var(--pine-color-grey-300);--color-border-hover:var(--pine-color-grey-500);--color-disabled-default:var(--pine-color-charcoal-200);--color-error-default:var(--pine-color-red-300);--color-focus-visible-outline:var(--pine-color-blue-200);--color-focus-visible-outline-error:var(--pine-color-red-200);--color-placeholder-default:var(--pine-color-charcoal-200);--font-size-field:var(--pine-font-size-100);--font-size-helper-message:var(--pine-font-size-075);--font-size-label:var(--pine-font-size-100);--font-weight-field:var(--pine-font-weight-normal);--font-weight-helper-message:var(--pine-font-weight-normal);--font-weight-label:var(--pine-font-weight-medium);--line-height-field:var(--pine-line-height-150);--line-height-helper-message:var(--pine-line-height-125);--line-height-label:var(--pine-line-height-150);--spacing-margin-block-end-label:var(--pine-spacing-100);--spacing-margin-block-start-helper-message:var(--pine-spacing-100);--spacing-padding-block-field:var(--pine-spacing-100);--spacing-padding-inline-field:var(--pine-spacing-200);display:inline}.pds-textarea{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}label{display:block;font-size:var(--font-size-label);font-weight:var(--font-weight-label);line-height:var(--line-height-label);-webkit-margin-after:var(--spacing-margin-block-end-label);margin-block-end:var(--spacing-margin-block-end-label)}.pds-textarea__field{background-color:var(--color-background);border:var(--pine-border-interactive-default);border-radius:var(--pine-border-radius-md);font-family:inherit;font-size:var(--font-size-field);font-weight:var(--font-weight-field);line-height:var(--line-height-field);padding:var(--spacing-padding-block-field) var(--spacing-padding-inline-field)}.pds-textarea__field:hover:not(:disabled,.is-invalid){border-color:var(--color-border-hover)}.pds-textarea__field:disabled{background-color:var(--color-background-disabled);color:var(--color-disabled-default);cursor:not-allowed}.pds-textarea__field:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-textarea__field::-webkit-input-placeholder{color:var(--color-placeholder-default)}.pds-textarea__field::-moz-placeholder{color:var(--color-placeholder-default)}.pds-textarea__field:-ms-input-placeholder{color:var(--color-placeholder-default)}.pds-textarea__field::-ms-input-placeholder{color:var(--color-placeholder-default)}.pds-textarea__field::placeholder{color:var(--color-placeholder-default)}.pds-textarea__field.is-invalid{border-color:var(--color-border-error)}.pds-textarea__field.is-invalid:focus-visible{-webkit-box-shadow:var(--box-shadow-focus-error);box-shadow:var(--box-shadow-focus-error)}.pds-textarea__error-message,.pds-textarea__helper-message{font-size:var(--font-size-helper-message);font-weight:var(--font-weight-helper-message);line-height:var(--line-height-helper-message);-webkit-margin-before:var(--spacing-margin-block-start-helper-message);margin-block-start:var(--spacing-margin-block-start-helper-message)}.pds-textarea__error-message{color:var(--color-error-default)}";
|
|
9
|
-
const PdsTextareaStyle0 = pdsTextareaCss;
|
|
10
|
-
|
|
11
|
-
const PdsTextarea = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.pdsTextareaChange = index.createEvent(this, "pdsTextareaChange", 7);
|
|
15
|
-
this.onTextareaChange = (ev) => {
|
|
16
|
-
const textarea = ev.target;
|
|
17
|
-
pdsLabel.isRequired(textarea, this);
|
|
18
|
-
if (textarea) {
|
|
19
|
-
this.value = textarea.innerHTML;
|
|
20
|
-
}
|
|
21
|
-
this.pdsTextareaChange.emit({ value: this.value, event: ev });
|
|
22
|
-
};
|
|
23
|
-
this.componentId = undefined;
|
|
24
|
-
this.disabled = false;
|
|
25
|
-
this.errorMessage = undefined;
|
|
26
|
-
this.helperMessage = undefined;
|
|
27
|
-
this.invalid = false;
|
|
28
|
-
this.label = undefined;
|
|
29
|
-
this.name = this.componentId;
|
|
30
|
-
this.placeholder = undefined;
|
|
31
|
-
this.readonly = false;
|
|
32
|
-
this.required = false;
|
|
33
|
-
this.rows = undefined;
|
|
34
|
-
this.value = undefined;
|
|
35
|
-
}
|
|
36
|
-
textareaClassNames() {
|
|
37
|
-
const classNames = ['pds-textarea__field'];
|
|
38
|
-
if (this.invalid && this.invalid === true) {
|
|
39
|
-
classNames.push('is-invalid');
|
|
40
|
-
}
|
|
41
|
-
return classNames.join(' ');
|
|
42
|
-
}
|
|
43
|
-
render() {
|
|
44
|
-
return (index.h(index.Host, { key: 'a6f6eb13665857ec8762d454d79ff216e2062a66', "aria-disabled": this.disabled ? 'true' : null }, index.h("div", { key: 'fa77f9c7c29f214ee4d8ddb8e1e48d4d16b6a47e', class: "pds-textarea" }, this.label &&
|
|
45
|
-
index.h(pdsLabel.PdsLabel, { key: '75c242138f5c2a33a82feaa775dae0c05843d2c1', htmlFor: this.componentId, text: this.label }), index.h("textarea", { key: '8bebb57b878c745e07ebfc18afd2aaf7d2da66a5', "aria-describedby": pdsLabel.assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onChange: this.onTextareaChange }, this.value), this.helperMessage &&
|
|
46
|
-
index.h("p", { key: 'b9a83aeb83b0cf4232359154d36a8ec48b0a3638', class: "pds-textarea__helper-message", id: pdsLabel.messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
|
|
47
|
-
index.h("p", { key: 'ee70c7aa56b8a8e18de58394c04140065670f8db', "aria-live": "assertive", class: "pds-textarea__error-message", id: pdsLabel.messageId(this.componentId, 'error') }, this.errorMessage))));
|
|
48
|
-
}
|
|
49
|
-
get el() { return index.getElement(this); }
|
|
50
|
-
};
|
|
51
|
-
PdsTextarea.style = PdsTextareaStyle0;
|
|
52
|
-
|
|
53
|
-
exports.pds_textarea = PdsTextarea;
|
|
54
|
-
|
|
55
|
-
//# sourceMappingURL=pds-textarea.cjs.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-textarea.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,cAAc,GAAG,giHAAgiH,CAAC;AACxjH,0BAAe,cAAc;;MCShB,WAAW;;;;QAwEd,qBAAgB,GAAG,CAAC,EAAS;YACnC,MAAM,QAAQ,GAAG,EAAE,CAAC,MAA6B,CAAC;YAClDA,mBAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YAE3B,IAAI,QAAQ,EAAE;gBACZ,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC;aACjC;YAED,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAC,CAAC,CAAC;SAC7D,CAAC;;wBArEiB,KAAK;;;uBAgBS,KAAK;;oBAUf,IAAI,CAAC,WAAW;;wBAWpB,KAAK;wBAML,KAAK;;;;IA4BhB,kBAAkB;QACxB,MAAM,UAAU,GAAG,CAAC,qBAAqB,CAAC,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AAC,WAAW,EAAE,OAAO,CAAC,IAEvC,IAAI,CAAC,YAAY,CAChB,CAEF,CACD,EACP;KACH;;;;;;;","names":["isRequired","h","Host","PdsLabel","assignDescription","messageId"],"sources":["src/components/pds-textarea/pds-textarea.scss?tag=pds-textarea&encapsulation=shadow","src/components/pds-textarea/pds-textarea.tsx"],"sourcesContent":[":host {\n --border-interactive-default: var(--pine-border-width-thin) solid var(--pine-color-grey-400);\n\n --box-shadow-focus: 0 0 0 2px var(--color-focus-visible-outline);\n --box-shadow-focus-error: 0 0 0 2px var(--color-focus-visible-outline-error);\n\n --color: var(--pine-color-charcoal-400);\n --color-background: var(--pine-color-white);\n --color-background-disabled: var(--pine-color-grey-200);\n --color-border-default: var(--pine-color-grey-400);\n --color-border-error: var(--pine-color-red-300);\n --color-border-focus-visible: var(--pine-color-grey-300);\n --color-border-hover: var(--pine-color-grey-500);\n --color-disabled-default: var(--pine-color-charcoal-200);\n --color-error-default: var(--pine-color-red-300);\n --color-focus-visible-outline: var(--pine-color-blue-200);\n --color-focus-visible-outline-error: var(--pine-color-red-200);\n --color-placeholder-default: var(--pine-color-charcoal-200);\n\n --font-size-field: var(--pine-font-size-100);\n --font-size-helper-message: var(--pine-font-size-075);\n --font-size-label: var(--pine-font-size-100);\n --font-weight-field: var(--pine-font-weight-normal);\n --font-weight-helper-message: var(--pine-font-weight-normal);\n --font-weight-label: var(--pine-font-weight-medium);\n\n --line-height-field: var(--pine-line-height-150);\n --line-height-helper-message: var(--pine-line-height-125);\n --line-height-label: var(--pine-line-height-150);\n\n --spacing-margin-block-end-label: var(--pine-spacing-100);\n --spacing-margin-block-start-helper-message: var(--pine-spacing-100);\n --spacing-padding-block-field: var(--pine-spacing-100);\n --spacing-padding-inline-field: var(--pine-spacing-200);\n\n display: inline;\n}\n\n.pds-textarea {\n display: flex;\n flex-direction: column;\n}\n\nlabel {\n display: block;\n font-size: var(--font-size-label);\n font-weight: var(--font-weight-label);\n line-height: var(--line-height-label);\n margin-block-end: var(--spacing-margin-block-end-label);\n}\n\n.pds-textarea__field {\n background-color: var(--color-background);\n border: var(--pine-border-interactive-default);\n border-radius: var(--pine-border-radius-md);\n font-family: inherit;\n font-size: var(--font-size-field);\n font-weight: var(--font-weight-field);\n line-height: var(--line-height-field);\n padding: var(--spacing-padding-block-field) var(--spacing-padding-inline-field);\n\n &:hover:not(:disabled, .is-invalid) {\n border-color: var(--color-border-hover);\n }\n\n &:disabled {\n background-color: var(--color-background-disabled);\n color: var(--color-disabled-default);\n cursor: not-allowed;\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 &::placeholder {\n color: var(--color-placeholder-default);\n }\n\n &.is-invalid {\n border-color: var(--color-border-error);\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus-error);\n }\n }\n}\n\n.pds-textarea__error-message,\n.pds-textarea__helper-message {\n font-size: var(--font-size-helper-message);\n font-weight: var(--font-weight-helper-message);\n line-height: var(--line-height-helper-message);\n margin-block-start: var(--spacing-margin-block-start-helper-message);\n}\n\n.pds-textarea__error-message {\n color: var(--color-error-default);\n}\n","import { Component, Element, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\nimport { assignDescription, isRequired, messageId } from '../../utils/form';\nimport { TextareaChangeEventDetail } from './textarea-interface';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-textarea',\n styleUrl: 'pds-textarea.scss',\n shadow: true,\n})\nexport class PdsTextarea {\n @Element() el: HTMLPdsTextareaElement;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Indicates whether or not the textarea is disabled\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * Specifies the error text and provides an error-themed treatment to the field\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays a hint or description of the textarea\n */\n @Prop() helperMessage?: string;\n\n /**\n * Indicates whether or not the textarea is invalid or throws an error\n * @defaultValue false\n */\n @Prop({mutable: true}) invalid = false; // eslint-disable-line @stencil-community/strict-mutable\n\n /**\n * Text to be displayed as the textarea label\n */\n @Prop() label?: string;\n\n /**\n * Specifies the name, submitted with the form name/value pair. This value will mirror the componentId\n */\n @Prop() name: string = this.componentId;\n\n /**\n * Specifies a short hint that describes the expected value of the textarea\n */\n @Prop() placeholder?: string;\n\n /**\n * Indicates whether or not the textarea is readonly\n * @defaultValue false\n */\n @Prop() readonly = false;\n\n /**\n * Indicates whether or not the textarea is required\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * Sets number of rows of text visible without needing to scroll in the textarea\n */\n @Prop() rows?: number;\n\n /**\n * The value of the textarea\n */\n @Prop({mutable: true}) value?: string;\n\n /**\n * Event emitted whenever the value of the textarea changes\n */\n @Event() pdsTextareaChange: EventEmitter<TextareaChangeEventDetail>;\n\n private onTextareaChange = (ev: Event) => {\n const textarea = ev.target as HTMLTextAreaElement;\n isRequired(textarea, this);\n\n if (textarea) {\n this.value = textarea.innerHTML;\n }\n\n this.pdsTextareaChange.emit({value: this.value, event: ev});\n };\n\n private textareaClassNames() {\n const classNames = ['pds-textarea__field'];\n\n if (this.invalid && this.invalid === true) {\n classNames.push('is-invalid');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n >\n <div class=\"pds-textarea\">\n {this.label &&\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n }\n <textarea\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n class={this.textareaClassNames()}\n disabled={this.disabled}\n id={this.componentId}\n name={this.name}\n placeholder={this.placeholder}\n readOnly={this.readonly}\n required={this.required}\n rows={this.rows}\n onChange={this.onTextareaChange}\n >{this.value}</textarea>\n {this.helperMessage &&\n <p\n class=\"pds-textarea__helper-message\"\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </p>\n }\n {this.invalid &&\n <p\n aria-live=\"assertive\"\n class=\"pds-textarea__error-message\"\n id={messageId(this.componentId, 'error')}\n >\n {this.errorMessage}\n </p>\n }\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-7d9c71f6.js');
|
|
6
|
-
|
|
7
|
-
const positionTooltip = ({ elem, elemPlacement, overlay, offset = 8 }) => {
|
|
8
|
-
if (elem == undefined)
|
|
9
|
-
return;
|
|
10
|
-
const rect = elem.getBoundingClientRect();
|
|
11
|
-
const contentRect = overlay.getBoundingClientRect();
|
|
12
|
-
// Exit the function if the placement is not set
|
|
13
|
-
if (!elemPlacement || elemPlacement == "")
|
|
14
|
-
return;
|
|
15
|
-
switch (true) {
|
|
16
|
-
case elemPlacement.includes("right"):
|
|
17
|
-
overlay.style.top = '50%';
|
|
18
|
-
overlay.style.left = `calc(${rect.width}px + ${offset}px)`;
|
|
19
|
-
overlay.style.transform = 'translateY(-50%)';
|
|
20
|
-
if (elemPlacement.includes("start")) {
|
|
21
|
-
overlay.style.top = '0';
|
|
22
|
-
overlay.style.transform = 'translateY(0)';
|
|
23
|
-
}
|
|
24
|
-
if (elemPlacement.includes("end")) {
|
|
25
|
-
overlay.style.bottom = '0';
|
|
26
|
-
overlay.style.top = 'initial';
|
|
27
|
-
overlay.style.transform = 'translateY(0)';
|
|
28
|
-
}
|
|
29
|
-
break;
|
|
30
|
-
case elemPlacement.includes("left"):
|
|
31
|
-
overlay.style.top = '50%';
|
|
32
|
-
overlay.style.right = `calc(${rect.width}px + ${offset}px)`;
|
|
33
|
-
overlay.style.transform = 'translateY(-50%)';
|
|
34
|
-
if (elemPlacement.includes("start")) {
|
|
35
|
-
overlay.style.top = '0';
|
|
36
|
-
overlay.style.transform = 'translateY(0)';
|
|
37
|
-
}
|
|
38
|
-
if (elemPlacement.includes("end")) {
|
|
39
|
-
overlay.style.bottom = '0';
|
|
40
|
-
overlay.style.top = 'initial';
|
|
41
|
-
overlay.style.transform = 'translateY(0)';
|
|
42
|
-
}
|
|
43
|
-
break;
|
|
44
|
-
case elemPlacement.includes("bottom"):
|
|
45
|
-
overlay.style.top = `calc(${rect.height}px + ${offset}px)`;
|
|
46
|
-
overlay.style.left = '50%';
|
|
47
|
-
overlay.style.transform = 'translateX(-50%)';
|
|
48
|
-
if (elemPlacement.includes("start")) {
|
|
49
|
-
overlay.style.left = '0';
|
|
50
|
-
overlay.style.transform = 'translateX(0)';
|
|
51
|
-
}
|
|
52
|
-
if (elemPlacement.includes("end")) {
|
|
53
|
-
overlay.style.left = 'initial';
|
|
54
|
-
overlay.style.right = '0';
|
|
55
|
-
overlay.style.transform = 'translateX(0)';
|
|
56
|
-
}
|
|
57
|
-
break;
|
|
58
|
-
case elemPlacement.includes("top"):
|
|
59
|
-
overlay.style.top = `calc((${contentRect.height}px + ${offset}px) * -1)`;
|
|
60
|
-
overlay.style.left = '50%';
|
|
61
|
-
overlay.style.transform = 'translateX(-50%)';
|
|
62
|
-
if (elemPlacement.includes("start")) {
|
|
63
|
-
overlay.style.left = '0';
|
|
64
|
-
overlay.style.transform = 'translateX(0)';
|
|
65
|
-
}
|
|
66
|
-
if (elemPlacement.includes("end")) {
|
|
67
|
-
overlay.style.left = 'initial';
|
|
68
|
-
overlay.style.right = '0';
|
|
69
|
-
overlay.style.transform = 'translateX(0)';
|
|
70
|
-
}
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
const pdsTooltipCss = ":host{--border-radius-overlay:var(--pine-border-radius-125);--border-width-arrow-down:var(--sizing-arrow-default) var(--sizing-arrow-default) 0;--border-width-arrow-left:var(--sizing-arrow-default) var(--sizing-arrow-default) var(--sizing-arrow-default) 0;--border-width-arrow-right:var(--sizing-arrow-default) 0 var(--sizing-arrow-default) var(--sizing-arrow-default);--border-width-arrow-up:0 var(--sizing-arrow-default) var(--sizing-arrow-default);--box-shadow-default:var(--pine-box-shadow-md);--color-background-default:var(--pine-color-charcoal-400);--color-text-default:var(--pine-color-white);--font-size-overlay:var(--pine-font-size-087);--line-height-overlay:var(--pine-line-height-125);--sizing-arrow-default:6px;--sizing-arrow-offset:14px;--sizing-width-default:320px;--spacing-padding-overlay:var(--pine-spacing-100) calc(var(--pine-spacing-300) / 2);display:inline-block;position:relative}:host ::slotted(*){display:-ms-flexbox;display:flex}:host ::slotted([slot=content]){display:block;white-space:normal;width:var(--sizing-width-default)}.pds-tooltip__content{background-color:var(--color-background-default);border-radius:var(--border-radius-overlay);-webkit-box-shadow:var(--box-shadow-default);box-shadow:var(--box-shadow-default);color:var(--color-text-default);font-size:var(--font-size-overlay);line-height:var(--line-height-overlay);opacity:0;padding:var(--spacing-padding-overlay);position:absolute;visibility:hidden;width:-webkit-max-content;width:-moz-max-content;width:max-content}.pds-tooltip--is-open .pds-tooltip__content{opacity:1;visibility:visible;z-index:1}:host(.pds-tooltip--has-html-content) .pds-tooltip__content{width:auto}.pds-tooltip__content::after{border-color:transparent;border-right-color:transparent;border-style:solid;border-width:var(--border-width-arrow-left);content:\"\";height:0;position:absolute;width:0}.pds-tooltip--right .pds-tooltip__content::after{border-inline-end-color:var(--color-background-default);border-width:var(--border-width-arrow-left);left:calc(var(--sizing-arrow-default) * -1);top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pds-tooltip--right-end .pds-tooltip__content::after{border-inline-end-color:var(--color-background-default);border-width:var(--border-width-arrow-left);bottom:var(--sizing-arrow-offset);left:calc(var(--sizing-arrow-default) * -1);top:initial}.pds-tooltip--right-start .pds-tooltip__content::after{border-inline-end-color:var(--color-background-default);border-width:var(--border-width-arrow-left);left:calc(var(--sizing-arrow-default) * -1);top:var(--sizing-arrow-offset)}.pds-tooltip--top .pds-tooltip__content::after{border-block-start-color:var(--color-background-default);border-width:var(--border-width-arrow-down);bottom:calc(var(--sizing-arrow-default) * -1);left:50%;top:initial;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.pds-tooltip--top-start .pds-tooltip__content::after{border-block-start-color:var(--color-background-default);border-width:var(--border-width-arrow-down);bottom:calc(var(--sizing-arrow-default) * -1);left:var(--sizing-arrow-offset);top:initial}.pds-tooltip--top-end .pds-tooltip__content::after{border-block-start-color:var(--color-background-default);border-width:var(--border-width-arrow-down);bottom:calc(var(--sizing-arrow-default) * -1);left:initial;right:var(--sizing-arrow-offset);top:initial}.pds-tooltip--left .pds-tooltip__content::after{border-inline-start-color:var(--color-background-default);border-width:var(--border-width-arrow-right);left:initial;right:calc(var(--sizing-arrow-default) * -1);top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pds-tooltip--left-end .pds-tooltip__content::after{border-inline-start-color:var(--color-background-default);border-width:var(--border-width-arrow-right);bottom:var(--sizing-arrow-offset);left:initial;right:calc(var(--sizing-arrow-default) * -1);top:initial}.pds-tooltip--left-start .pds-tooltip__content::after{border-inline-start-color:var(--color-background-default);border-width:var(--border-width-arrow-right);left:initial;right:calc(var(--sizing-arrow-default) * -1);top:var(--sizing-arrow-offset)}.pds-tooltip--bottom .pds-tooltip__content::after{border-block-end-color:var(--color-background-default);border-width:var(--border-width-arrow-up);left:50%;top:calc(var(--sizing-arrow-default) * -1);-webkit-transform:translateX(-50%);transform:translateX(-50%)}.pds-tooltip--bottom-end .pds-tooltip__content::after{border-block-end-color:var(--color-background-default);border-width:var(--border-width-arrow-up);left:initial;right:var(--sizing-arrow-offset);top:calc(var(--sizing-arrow-default) * -1)}.pds-tooltip--bottom-start .pds-tooltip__content::after{border-block-end-color:var(--color-background-default);border-width:var(--border-width-arrow-up);left:var(--sizing-arrow-offset);top:calc(var(--sizing-arrow-default) * -1)}.pds-tooltip--no-arrow .pds-tooltip__content::after{border-width:0}";
|
|
76
|
-
const PdsTooltipStyle0 = pdsTooltipCss;
|
|
77
|
-
|
|
78
|
-
const PdsTooltip = class {
|
|
79
|
-
constructor(hostRef) {
|
|
80
|
-
index.registerInstance(this, hostRef);
|
|
81
|
-
this.pdsTooltipHide = index.createEvent(this, "pdsTooltipHide", 7);
|
|
82
|
-
this.pdsTooltipShow = index.createEvent(this, "pdsTooltipShow", 7);
|
|
83
|
-
this.handleHide = () => {
|
|
84
|
-
this.hideTooltip();
|
|
85
|
-
this.pdsTooltipHide.emit();
|
|
86
|
-
};
|
|
87
|
-
this.handleShow = () => {
|
|
88
|
-
this.showTooltip();
|
|
89
|
-
this.pdsTooltipShow.emit();
|
|
90
|
-
};
|
|
91
|
-
this.isOpen = false;
|
|
92
|
-
this.content = undefined;
|
|
93
|
-
this.componentId = undefined;
|
|
94
|
-
this.hasArrow = true;
|
|
95
|
-
this.htmlContent = false;
|
|
96
|
-
this.placement = 'right';
|
|
97
|
-
this.opened = false;
|
|
98
|
-
}
|
|
99
|
-
handleOpenToggle() {
|
|
100
|
-
if (this.opened) {
|
|
101
|
-
this.handleShow();
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
this.handleHide();
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
componentWillLoad() {
|
|
108
|
-
if (this.opened) {
|
|
109
|
-
this.showTooltip();
|
|
110
|
-
}
|
|
111
|
-
this.el.addEventListener('blur', this.handleHide, true);
|
|
112
|
-
this.el.addEventListener('focus', this.handleShow, true);
|
|
113
|
-
}
|
|
114
|
-
componentDidUpdate() {
|
|
115
|
-
if (this.opened) {
|
|
116
|
-
this.showTooltip();
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
componentDidRender() {
|
|
120
|
-
positionTooltip({ elem: this.el, elemPlacement: this.placement, overlay: this.contentEl });
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Shows the tooltip by enabling the opened property
|
|
124
|
-
*/
|
|
125
|
-
async showTooltip() {
|
|
126
|
-
this.opened = true;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Hides the tooltip by disabling the opened property
|
|
130
|
-
*/
|
|
131
|
-
async hideTooltip() {
|
|
132
|
-
this.opened = false;
|
|
133
|
-
}
|
|
134
|
-
render() {
|
|
135
|
-
return (index.h(index.Host, { key: '088766be31b8716e158cbffd4afc4ada0f14dc3d', onMouseEnter: this.handleShow, onMouseLeave: this.handleHide, onFocusin: this.handleShow, onFocusout: this.handleHide }, index.h("div", { key: 'c4fb29b5d5834a9e94f040ded6daf15cf3fcc6ff', class: `
|
|
136
|
-
pds-tooltip
|
|
137
|
-
pds-tooltip--${this.placement}
|
|
138
|
-
${this.htmlContent ? 'pds-tooltip--has-html-content' : ''}
|
|
139
|
-
${this.opened ? 'pds-tooltip--is-open' : ''}
|
|
140
|
-
${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}
|
|
141
|
-
` }, index.h("span", { key: '25a69f567a33df83ff784d36de5bce86874d6d1d', "aria-describedby": this.componentId, class: "pds-tooltip__trigger" }, index.h("slot", { key: 'eab3bbca9b913b04ef4dfe7a8e472c43d57c4979' })), index.h("div", { key: 'bdaa9f26f848b440a8432a44481f8a1059ae0689', class: "pds-tooltip__content", "aria-hidden": this.opened ? 'false' : 'true', "aria-live": this.opened ? 'polite' : 'off', id: this.componentId, ref: (el) => (this.contentEl = el), role: "tooltip" }, index.h("slot", { key: '0e62fe237e9a39208aa2146e2dc1d6df6b25b41d', name: "content" }), this.content))));
|
|
142
|
-
}
|
|
143
|
-
get el() { return index.getElement(this); }
|
|
144
|
-
static get watchers() { return {
|
|
145
|
-
"opened": ["handleOpenToggle"]
|
|
146
|
-
}; }
|
|
147
|
-
};
|
|
148
|
-
PdsTooltip.style = PdsTooltipStyle0;
|
|
149
|
-
|
|
150
|
-
exports.pds_tooltip = PdsTooltip;
|
|
151
|
-
|
|
152
|
-
//# sourceMappingURL=pds-tooltip.cjs.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-tooltip.entry.cjs.js","mappings":";;;;;;AAOO,MAAM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,CAAC,SAAS,GAAG,EAAE,CAAC,EAClC,IAAI,EAAC,SAAS,IAEdA,mEACE,IAAI,EAAC,SAAS,GACR,EACP,IAAI,CAAC,OAAO,CACT,CACF,CACD,EACP;KACH;;;;;;;;;;","names":["h","Host"],"sources":["src/utils/overlay.ts","src/components/pds-tooltip/pds-tooltip.scss?tag=pds-tooltip&encapsulation=shadow","src/components/pds-tooltip/pds-tooltip.tsx"],"sourcesContent":["interface OverlayArgs {\n elem: HTMLElement;\n elemPlacement: string;\n overlay: HTMLElement;\n offset?: number;\n}\n\nexport const positionTooltip = ({elem, elemPlacement, overlay, offset = 8}: OverlayArgs) => {\n if (elem == undefined) return;\n\n const rect = elem.getBoundingClientRect();\n const contentRect = overlay.getBoundingClientRect();\n\n // Exit the function if the placement is not set\n if (!elemPlacement || elemPlacement == \"\") return;\n\n switch (true) {\n case elemPlacement.includes(\"right\"):\n overlay.style.top = '50%';\n overlay.style.left = `calc(${rect.width}px + ${offset}px)`;\n overlay.style.transform = 'translateY(-50%)';\n\n if (elemPlacement.includes(\"start\")) {\n overlay.style.top = '0';\n overlay.style.transform = 'translateY(0)';\n }\n\n if (elemPlacement.includes(\"end\")) {\n overlay.style.bottom = '0';\n overlay.style.top = 'initial';\n overlay.style.transform = 'translateY(0)';\n }\n\n break;\n\n case elemPlacement.includes(\"left\"):\n overlay.style.top = '50%';\n overlay.style.right = `calc(${rect.width}px + ${offset}px)`;\n overlay.style.transform = 'translateY(-50%)';\n\n if (elemPlacement.includes(\"start\")) {\n overlay.style.top = '0';\n overlay.style.transform = 'translateY(0)';\n }\n\n if (elemPlacement.includes(\"end\")) {\n overlay.style.bottom = '0';\n overlay.style.top = 'initial';\n overlay.style.transform = 'translateY(0)';\n }\n\n break;\n\n case elemPlacement.includes(\"bottom\"):\n overlay.style.top = `calc(${rect.height}px + ${offset}px)`;\n overlay.style.left = '50%';\n overlay.style.transform = 'translateX(-50%)';\n\n if (elemPlacement.includes(\"start\")) {\n overlay.style.left = '0';\n overlay.style.transform = 'translateX(0)';\n }\n\n if (elemPlacement.includes(\"end\")) {\n overlay.style.left = 'initial';\n overlay.style.right = '0';\n overlay.style.transform = 'translateX(0)';\n }\n\n break;\n\n case elemPlacement.includes(\"top\"):\n overlay.style.top = `calc((${contentRect.height}px + ${offset}px) * -1)`;\n overlay.style.left = '50%';\n overlay.style.transform = 'translateX(-50%)';\n\n if (elemPlacement.includes(\"start\")) {\n overlay.style.left = '0';\n overlay.style.transform = 'translateX(0)';\n }\n if (elemPlacement.includes(\"end\")) {\n overlay.style.left = 'initial';\n overlay.style.right = '0';\n overlay.style.transform = 'translateX(0)';\n }\n\n break;\n }\n}\n",":host {\n --border-radius-overlay: var(--pine-border-radius-125);\n\n --border-width-arrow-down: var(--sizing-arrow-default) var(--sizing-arrow-default) 0;\n --border-width-arrow-left: var(--sizing-arrow-default) var(--sizing-arrow-default) var(--sizing-arrow-default) 0;\n --border-width-arrow-right: var(--sizing-arrow-default) 0 var(--sizing-arrow-default) var(--sizing-arrow-default);\n --border-width-arrow-up: 0 var(--sizing-arrow-default) var(--sizing-arrow-default);\n\n --box-shadow-default: var(--pine-box-shadow-md);\n\n --color-background-default: var(--pine-color-charcoal-400);\n --color-text-default: var(--pine-color-white);\n\n --font-size-overlay: var(--pine-font-size-087);\n\n --line-height-overlay: var(--pine-line-height-125);\n\n --sizing-arrow-default: 6px;\n --sizing-arrow-offset: 14px;\n --sizing-width-default: 320px;\n\n --spacing-padding-overlay: var(--pine-spacing-100) calc(var(--pine-spacing-300) / 2);\n\n display: inline-block;\n position: relative;\n\n ::slotted(*) {\n display: flex;\n }\n\n ::slotted([slot=\"content\"]) {\n display: block;\n white-space: normal;\n width: var(--sizing-width-default);\n }\n}\n\n.pds-tooltip__content {\n background-color: var(--color-background-default);\n border-radius: var(--border-radius-overlay);\n box-shadow: var(--box-shadow-default);\n color: var(--color-text-default);\n font-size: var(--font-size-overlay);\n line-height: var(--line-height-overlay);\n // TODO: need to use block / none but the tooltip content width and height are needed for calculations\n opacity: 0;\n padding: var(--spacing-padding-overlay);\n position: absolute;\n visibility: hidden;\n width: max-content;\n\n .pds-tooltip--is-open & {\n // TODO: need to use block / none but the tooltip content width and height are needed for calculations\n opacity: 1;\n visibility: visible;\n z-index: 1;\n }\n\n :host(.pds-tooltip--has-html-content) & {\n width: auto;\n }\n\n &::after {\n border-color: transparent;\n border-right-color: transparent;\n border-style: solid;\n border-width: var(--border-width-arrow-left);\n content: '';\n height: 0;\n position: absolute;\n width: 0;\n\n .pds-tooltip--right & {\n border-inline-end-color: var(--color-background-default);\n border-width: var(--border-width-arrow-left);\n left: calc(var(--sizing-arrow-default) * -1);\n top: 50%;\n transform: translateY(-50%);\n }\n\n .pds-tooltip--right-end & {\n border-inline-end-color: var(--color-background-default);\n border-width: var(--border-width-arrow-left);\n bottom: var(--sizing-arrow-offset);\n left: calc(var(--sizing-arrow-default) * -1);\n top: initial;\n }\n\n .pds-tooltip--right-start & {\n border-inline-end-color: var(--color-background-default);\n border-width: var(--border-width-arrow-left);\n left: calc(var(--sizing-arrow-default) * -1);\n top: var(--sizing-arrow-offset);\n }\n\n .pds-tooltip--top & {\n border-block-start-color: var(--color-background-default);\n border-width: var(--border-width-arrow-down);\n bottom: calc(var(--sizing-arrow-default) * -1);\n left: 50%;\n top: initial;\n transform: translateX(-50%);\n }\n\n .pds-tooltip--top-start & {\n border-block-start-color: var(--color-background-default);\n border-width: var(--border-width-arrow-down);\n bottom: calc(var(--sizing-arrow-default) * -1);\n left: var(--sizing-arrow-offset);\n top: initial;\n }\n\n .pds-tooltip--top-end & {\n border-block-start-color: var(--color-background-default);\n border-width: var(--border-width-arrow-down);\n bottom: calc(var(--sizing-arrow-default) * -1);\n left: initial;\n right: var(--sizing-arrow-offset);\n top: initial;\n }\n\n .pds-tooltip--left & {\n border-inline-start-color: var(--color-background-default);\n border-width: var(--border-width-arrow-right);\n left: initial;\n right: calc(var(--sizing-arrow-default) * -1);\n top: 50%;\n transform: translateY(-50%);\n }\n\n .pds-tooltip--left-end & {\n border-inline-start-color: var(--color-background-default);\n border-width: var(--border-width-arrow-right);\n bottom: var(--sizing-arrow-offset);\n left: initial;\n right: calc(var(--sizing-arrow-default) * -1);\n top: initial;\n }\n\n .pds-tooltip--left-start & {\n border-inline-start-color: var(--color-background-default);\n border-width: var(--border-width-arrow-right);\n left: initial;\n right: calc(var(--sizing-arrow-default) * -1);\n top: var(--sizing-arrow-offset);\n }\n\n .pds-tooltip--bottom & {\n border-block-end-color: var(--color-background-default);\n border-width: var(--border-width-arrow-up);\n left: 50%;\n top: calc(var(--sizing-arrow-default) * -1);\n transform: translateX(-50%);\n }\n\n .pds-tooltip--bottom-end & {\n border-block-end-color: var(--color-background-default);\n border-width: var(--border-width-arrow-up);\n left: initial;\n right: var(--sizing-arrow-offset);\n top: calc(var(--sizing-arrow-default) * -1);\n }\n\n .pds-tooltip--bottom-start & {\n border-block-end-color: var(--color-background-default);\n border-width: var(--border-width-arrow-up);\n left: var(--sizing-arrow-offset);\n top: calc(var(--sizing-arrow-default) * -1);\n }\n\n .pds-tooltip--no-arrow & {\n border-width: 0;\n }\n }\n}\n","import { Component, Element, Event, Host, Prop, State, h, EventEmitter, Method, Watch } from '@stencil/core';\nimport {\n positionTooltip\n} from '../../utils/overlay';\n\n/**\n * @slot (default) - The tooltip's target element\n * @slot content - HTML content for the tooltip\n */\n\n@Component({\n tag: 'pds-tooltip',\n styleUrl: 'pds-tooltip.scss',\n shadow: true,\n})\nexport class PdsTooltip {\n private contentEl: HTMLElement | null;\n\n /**\n * Reference to the Host element\n */\n @Element() el: HTMLPdsTooltipElement;\n\n /**\n * Determines when the tooltip is open\n * @defaultValue false\n */\n @State() isOpen = false;\n\n /**\n * Content for the tooltip. If HTML is required, use the content slot\n */\n @Prop() content: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines whether or not the tooltip has an arrow\n * @defaultValue true\n */\n @Prop() hasArrow? = true;\n\n /**\n * Enable this option when using the content slot\n * @defaultValue false\n */\n @Prop() htmlContent = false;\n\n /**\n * Determines the preferred position of the tooltip\n * @defaultValue \"right\"\n */\n @Prop({ reflect: true }) placement:\n 'top'\n | 'top-start'\n | 'top-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'left'\n | 'left-start'\n | 'left-end' = 'right';\n\n /**\n * Determines whether or not the tooltip is visible\n * @defaultValue false\n */\n @Prop({mutable: true, reflect: true}) opened = false;\n\n @Watch('opened')\n handleOpenToggle() {\n if (this.opened) {\n this.handleShow();\n } else {\n this.handleHide();\n }\n }\n\n /**\n * Emitted after a tooltip is closed\n */\n @Event() pdsTooltipHide: EventEmitter;\n\n /**\n * Emitted after a tooltip is shown\n */\n @Event() pdsTooltipShow: EventEmitter;\n\n componentWillLoad() {\n if (this.opened) {\n this.showTooltip();\n }\n\n this.el.addEventListener('blur', this.handleHide, true);\n this.el.addEventListener('focus', this.handleShow, true);\n }\n\n componentDidUpdate() {\n if (this.opened) {\n this.showTooltip();\n }\n }\n\n componentDidRender() {\n positionTooltip({elem: this.el, elemPlacement: this.placement, overlay: this.contentEl});\n }\n\n /**\n * Shows the tooltip by enabling the opened property\n */\n @Method()\n async showTooltip() {\n this.opened = true;\n }\n\n /**\n * Hides the tooltip by disabling the opened property\n */\n @Method()\n async hideTooltip() {\n this.opened = false;\n }\n\n private handleHide = () => {\n this.hideTooltip();\n this.pdsTooltipHide.emit();\n };\n\n private handleShow = () => {\n this.showTooltip();\n this.pdsTooltipShow.emit();\n };\n\n render() {\n return (\n <Host\n onMouseEnter={this.handleShow}\n onMouseLeave={this.handleHide}\n onFocusin={this.handleShow}\n onFocusout={this.handleHide}\n >\n <div\n class={`\n pds-tooltip\n pds-tooltip--${this.placement}\n ${this.htmlContent ? 'pds-tooltip--has-html-content' : ''}\n ${this.opened ? 'pds-tooltip--is-open' : ''}\n ${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}\n `}\n >\n <span\n aria-describedby={this.componentId}\n class=\"pds-tooltip__trigger\"\n >\n <slot />\n </span>\n\n <div class=\"pds-tooltip__content\"\n aria-hidden={this.opened ? 'false' : 'true'}\n aria-live={this.opened ? 'polite' : 'off'}\n id={this.componentId}\n ref={(el) => (this.contentEl = el)}\n role=\"tooltip\"\n >\n <slot\n name=\"content\"\n ></slot>\n {this.content}\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-7d9c71f6.js');
|
|
6
|
-
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
|
-
|
|
8
|
-
/*
|
|
9
|
-
Stencil Client Patch Browser v4.15.0 | MIT Licensed | https://stenciljs.com
|
|
10
|
-
*/
|
|
11
|
-
const patchBrowser = () => {
|
|
12
|
-
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('pine-core.cjs.js', document.baseURI).href));
|
|
13
|
-
const opts = {};
|
|
14
|
-
if (importMeta !== '') {
|
|
15
|
-
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
16
|
-
}
|
|
17
|
-
return index.promiseResolve(opts);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
patchBrowser().then(async (options) => {
|
|
21
|
-
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["pds-copytext.cjs",[[1,"pds-copytext",{"border":[516],"componentId":[1,"component-id"],"fullWidth":[4,"full-width"],"truncate":[4],"value":[1]}]]],["pds-table-head.cjs",[[1,"pds-table-head"]]],["pds-table-row.cjs",[[1,"pds-table-row",{"isSelected":[32]}]]],["pds-accordion.cjs",[[1,"pds-accordion",{"componentId":[1,"component-id"],"isOpen":[1540,"open"]},null,{"isOpen":["handleOpenState"]}]]],["pds-avatar.cjs",[[1,"pds-avatar",{"alt":[1],"badge":[4],"componentId":[1,"component-id"],"dropdown":[4],"image":[1],"size":[513],"variant":[513]}]]],["pds-chip.cjs",[[1,"pds-chip",{"componentId":[1,"component-id"],"sentiment":[1],"dot":[4],"label":[1],"large":[4],"variant":[1]}]]],["pds-link.cjs",[[1,"pds-link",{"componentId":[1,"component-id"],"external":[4],"variant":[1],"fontSize":[1,"font-size"],"href":[1]}]]],["pds-sortable-item.cjs",[[6,"pds-sortable-item",{"enableActions":[4,"enable-actions"],"componentId":[1,"component-id"],"showHandle":[1028,"show-handle"]}]]],["pds-box.cjs",[[0,"pds-box",{"alignItems":[1,"align-items"],"auto":[4],"backgroundColor":[1,"background-color"],"border":[4],"borderColor":[1,"border-color"],"borderRadius":[1,"border-radius"],"direction":[1],"display":[1],"fit":[4],"gap":[1],"flex":[1],"justifyContent":[1,"justify-content"],"minHeight":[1,"min-height"],"minWidth":[1,"min-width"],"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"padding":[1],"shadow":[1],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]}]]],["pds-divider.cjs",[[1,"pds-divider",{"componentId":[1,"component-id"],"offset":[1],"vertical":[4]}]]],["pds-image.cjs",[[1,"pds-image",{"alt":[1],"componentId":[1,"component-id"],"height":[2],"loading":[1],"sizes":[1],"src":[1],"srcset":[1],"width":[2]}]]],["pds-input.cjs",[[1,"pds-input",{"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[4],"label":[1],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"type":[1],"value":[1025]}]]],["pds-progress.cjs",[[1,"pds-progress",{"animated":[4],"componentId":[1,"component-id"],"fillColor":[1,"fill-color"],"label":[1],"percent":[2],"showPercent":[4,"show-percent"]}]]],["pds-radio.cjs",[[2,"pds-radio",{"checked":[4],"disabled":[4],"errorMessage":[1,"error-message"],"invalid":[4],"componentId":[1,"component-id"],"label":[1],"helperMessage":[1,"helper-message"],"name":[1],"required":[4],"value":[1]}]]],["pds-row.cjs",[[0,"pds-row",{"alignItems":[1,"align-items"],"border":[4],"colGap":[1,"col-gap"],"componentId":[1,"component-id"],"justifyContent":[1,"justify-content"],"minHeight":[1,"min-height"],"noWrap":[4,"no-wrap"]}]]],["pds-sortable.cjs",[[6,"pds-sortable",{"border":[516],"componentId":[1,"component-id"],"dividers":[516],"handleType":[1,"handle-type"]}]]],["pds-switch.cjs",[[1,"pds-switch",{"componentId":[1,"component-id"],"checked":[4],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[4],"label":[1],"name":[1],"required":[4],"type":[1],"value":[1]}]]],["pds-tab.cjs",[[4,"pds-tab",{"name":[1],"parentComponentId":[1,"parent-component-id"],"variant":[1],"index":[2],"selected":[4]}]]],["pds-table.cjs",[[1,"pds-table",{"compact":[4],"componentId":[1,"component-id"],"responsive":[4],"fixedColumn":[4,"fixed-column"],"selectable":[4],"sortingColumn":[32],"sortingDirection":[32]},[[0,"pdsTableSort","handleTableSort"]]]]],["pds-table-body.cjs",[[1,"pds-table-body"]]],["pds-tabpanel.cjs",[[4,"pds-tabpanel",{"name":[1],"parentComponentId":[1,"parent-component-id"],"variant":[1],"selected":[1028]}]]],["pds-tabs.cjs",[[1,"pds-tabs",{"tablistLabel":[1,"tablist-label"],"componentId":[1,"component-id"],"variant":[1],"activeTabName":[1025,"active-tab-name"],"activeTabIndex":[1026,"active-tab-index"]},[[16,"pdsTabClick","tabClickHandler"],[0,"keydown","handleKeyDown"]]]]],["pds-textarea.cjs",[[1,"pds-textarea",{"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[1028],"label":[1],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1025]}]]],["pds-tooltip.cjs",[[1,"pds-tooltip",{"content":[1],"componentId":[1,"component-id"],"hasArrow":[4,"has-arrow"],"htmlContent":[4,"html-content"],"placement":[513],"opened":[1540],"isOpen":[32],"showTooltip":[64],"hideTooltip":[64]},null,{"opened":["handleOpenToggle"]}]]],["pds-icon.cjs",[[1,"pds-icon",{"color":[1],"icon":[8],"name":[513],"size":[513],"src":[1],"ariaLabel":[32],"isVisible":[32],"svgContent":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"]}]]],["pds-button.cjs",[[1,"pds-button",{"componentId":[1,"component-id"],"disabled":[4],"icon":[1],"name":[1],"value":[1],"type":[1],"variant":[1]}]]],["pds-table-head-cell.cjs",[[1,"pds-table-head-cell",{"sortable":[4],"sortingDirection":[32],"tableScrolling":[32]}]]],["pds-checkbox_2.cjs",[[1,"pds-checkbox",{"checked":[1028],"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"indeterminate":[4],"invalid":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1]}],[1,"pds-table-cell",{"truncate":[4],"tableScrolling":[32]}]]]], options);
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
exports.setNonce = index.setNonce;
|
|
26
|
-
|
|
27
|
-
//# sourceMappingURL=pine-core.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pine-core.cjs.js","mappings":";;;;;;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAa3B,IAAI,MAAM,UAAU,GAAG,2MAAe,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAClF,IAAI,IAAI,UAAU,KAAK,EAAE,EAAE;AAC3B,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAAK;AACL,IAAI,OAAOA,oBAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;ACpBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAMC,wBAAa,EAAE,CAAC;AACxB,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC;;;;","names":["promiseResolve","globalScripts","bootstrapLazy"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.15.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"entries": [
|
|
3
|
-
"components/pds-accordion/pds-accordion.js",
|
|
4
|
-
"components/pds-avatar/pds-avatar.js",
|
|
5
|
-
"components/pds-box/pds-box.js",
|
|
6
|
-
"components/pds-button/pds-button.js",
|
|
7
|
-
"components/pds-checkbox/pds-checkbox.js",
|
|
8
|
-
"components/pds-chip/pds-chip.js",
|
|
9
|
-
"components/pds-copytext/pds-copytext.js",
|
|
10
|
-
"components/pds-divider/pds-divider.js",
|
|
11
|
-
"components/pds-image/pds-image.js",
|
|
12
|
-
"components/pds-input/pds-input.js",
|
|
13
|
-
"components/pds-link/pds-link.js",
|
|
14
|
-
"components/pds-progress/pds-progress.js",
|
|
15
|
-
"components/pds-radio/pds-radio.js",
|
|
16
|
-
"components/pds-row/pds-row.js",
|
|
17
|
-
"components/pds-sortable/pds-sortable.js",
|
|
18
|
-
"components/pds-sortable/pds-sortable-item/pds-sortable-item.js",
|
|
19
|
-
"components/pds-switch/pds-switch.js",
|
|
20
|
-
"components/pds-table/pds-table.js",
|
|
21
|
-
"components/pds-table/pds-table-body/pds-table-body.js",
|
|
22
|
-
"components/pds-table/pds-table-cell/pds-table-cell.js",
|
|
23
|
-
"components/pds-table/pds-table-head/pds-table-head.js",
|
|
24
|
-
"components/pds-table/pds-table-head-cell/pds-table-head-cell.js",
|
|
25
|
-
"components/pds-table/pds-table-row/pds-table-row.js",
|
|
26
|
-
"components/pds-tabs/pds-tabs.js",
|
|
27
|
-
"components/pds-tabs/pds-tab/pds-tab.js",
|
|
28
|
-
"components/pds-tabs/pds-tabpanel/pds-tabpanel.js",
|
|
29
|
-
"components/pds-textarea/pds-textarea.js",
|
|
30
|
-
"components/pds-tooltip/pds-tooltip.js"
|
|
31
|
-
],
|
|
32
|
-
"compiler": {
|
|
33
|
-
"name": "@stencil/core",
|
|
34
|
-
"version": "4.15.0",
|
|
35
|
-
"typescriptVersion": "5.4.4"
|
|
36
|
-
},
|
|
37
|
-
"collections": [
|
|
38
|
-
{
|
|
39
|
-
"name": "@pine-ds/icons",
|
|
40
|
-
"tags": [
|
|
41
|
-
"pds-icon"
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"bundles": []
|
|
46
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pds-label.js","sourceRoot":"","sources":["../../../../src/components/_internal/pds-label/pds-label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AAkBvD;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAoC,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC1F,aAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,IAAG,IAAI,CAAS,CAC3D,CAAC","sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\n\n/**\n * Props for the input label.\n */\ninterface LabelProps {\n classNames?: string,\n /**\n * Corresponds to the 'for' attribute on a label. Useful for\n * associating a label with a specific input.\n */\n htmlFor: string,\n /**\n * Label text displayed.\n */\n text: string,\n}\n\n/**\n * Returns markup for an input label.\n * @internal\n */\nexport const PdsLabel: FunctionalComponent<LabelProps> = ({ classNames, htmlFor, text }) => (\n <label class={classNames} htmlFor={htmlFor}>{text}</label>\n);\n"]}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
details {
|
|
6
|
-
--border-radius-default: var(--pine-border-radius-100);
|
|
7
|
-
--box-shadow-focus: inset 0 0 0 2px var(--pine-color-blue-200);
|
|
8
|
-
--color-content-background-default: var(--pine-color-white);
|
|
9
|
-
--color-background-hover: var(--pine-color-grey-300);
|
|
10
|
-
--color-text-default: var(--pine-color-charcoal-200);
|
|
11
|
-
--color-text-active: var(--pine-color-charcoal-500);
|
|
12
|
-
--color-text-hover: var(--pine-color-charcoal-300);
|
|
13
|
-
--number-animation-transform-timing: 200ms;
|
|
14
|
-
--spacing-details-padding-inline: var(--pine-spacing-150);
|
|
15
|
-
--spacing-summary-padding-block: var(--pine-spacing-050);
|
|
16
|
-
--spacing-summary-padding-inline-start: var(--pine-spacing-100);
|
|
17
|
-
--spacing-summary-padding-inline-end: var(--pine-spacing-050);
|
|
18
|
-
--typography-default: var(--pine-font-weight-semi-bold) var(--pine-font-size-100)/var(--pine-line-height-150) var(--pine-font-family-circular);
|
|
19
|
-
border-radius: var(--border-radius-default);
|
|
20
|
-
padding-inline: var(--spacing-details-padding-inline);
|
|
21
|
-
}
|
|
22
|
-
details pds-icon {
|
|
23
|
-
transform: scaleY(1);
|
|
24
|
-
transition: transform var(--number-animation-transform-timing);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/* stylelint-disable-next-line */
|
|
28
|
-
details[open] {
|
|
29
|
-
background-color: var(--color-content-background);
|
|
30
|
-
}
|
|
31
|
-
details[open] summary {
|
|
32
|
-
color: var(--color-text-active);
|
|
33
|
-
font: var(--typography-default);
|
|
34
|
-
}
|
|
35
|
-
details[open] summary pds-icon {
|
|
36
|
-
transform: scaleY(-1);
|
|
37
|
-
transition: transform var(--number-animation-transform-timing);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
summary {
|
|
41
|
-
border-radius: var(--border-radius-default);
|
|
42
|
-
color: var(--color-text-default);
|
|
43
|
-
font: var(--typography-default);
|
|
44
|
-
padding-block: var(--spacing-summary-padding-block);
|
|
45
|
-
padding-inline-end: var(--spacing-summary-padding-inline-end);
|
|
46
|
-
padding-inline-start: var(--spacing-summary-padding-inline-start);
|
|
47
|
-
/* stylelint-disable-next-line */
|
|
48
|
-
align-items: center;
|
|
49
|
-
display: flex;
|
|
50
|
-
}
|
|
51
|
-
summary::-webkit-details-marker {
|
|
52
|
-
display: none;
|
|
53
|
-
}
|
|
54
|
-
summary:hover {
|
|
55
|
-
background: var(--color-background-hover);
|
|
56
|
-
color: var(--color-text-hover);
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
}
|
|
59
|
-
summary:focus-visible {
|
|
60
|
-
box-shadow: var(--box-shadow-focus);
|
|
61
|
-
outline: none;
|
|
62
|
-
}
|
|
63
|
-
summary pds-icon {
|
|
64
|
-
margin-inline-start: auto;
|
|
65
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { downSmall } from "@pine-ds/icons/icons";
|
|
3
|
-
/**
|
|
4
|
-
* @slot (default) - Accordion body content.
|
|
5
|
-
* @slot label - Accordion trigger button content.
|
|
6
|
-
*/
|
|
7
|
-
export class PdsAccordion {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.handleToggle = () => {
|
|
10
|
-
this.isOpen = this.detailsEl.open;
|
|
11
|
-
};
|
|
12
|
-
this.getOpenAttribute = () => {
|
|
13
|
-
if (this.isOpen !== false) {
|
|
14
|
-
return { open: true };
|
|
15
|
-
}
|
|
16
|
-
return '';
|
|
17
|
-
};
|
|
18
|
-
this.componentId = undefined;
|
|
19
|
-
this.isOpen = false;
|
|
20
|
-
}
|
|
21
|
-
handleOpenState(newValue) {
|
|
22
|
-
this.isOpen = newValue;
|
|
23
|
-
}
|
|
24
|
-
componentDidLoad() {
|
|
25
|
-
this.detailsEl.addEventListener('toggle', this.handleToggle);
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
return (h(Host, { key: '228d08704d0e735ed515308df91a7880c2c450ed', class: "pds-accordion", id: this.componentId }, h("details", Object.assign({ key: '442e319353f611a5f3d3de767de8dc0f86d2540e' }, this.getOpenAttribute(), { ref: (el) => (this.detailsEl = el) }), h("summary", { key: 'c3b11619644caee3ba90854e608072436ae0ac34' }, h("slot", { key: 'fb9b2fa1c0e6a8ddce8e9575b31da5c248f075d5', name: "label" }, "Details"), h("pds-icon", { key: '3435405fa293d47aa240a6bfa947fe0707c1154a', icon: downSmall })), h("div", { key: 'a35cb679b545fbbd408a4217764b66eabd495c6e', class: "pds-accordion__body" }, h("slot", { key: 'fa6efbc3624c1c1152eabca17201c24801eef3ee' })))));
|
|
29
|
-
}
|
|
30
|
-
static get is() { return "pds-accordion"; }
|
|
31
|
-
static get encapsulation() { return "shadow"; }
|
|
32
|
-
static get originalStyleUrls() {
|
|
33
|
-
return {
|
|
34
|
-
"$": ["pds-accordion.scss"]
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
static get styleUrls() {
|
|
38
|
-
return {
|
|
39
|
-
"$": ["pds-accordion.css"]
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
static get properties() {
|
|
43
|
-
return {
|
|
44
|
-
"componentId": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"mutable": false,
|
|
47
|
-
"complexType": {
|
|
48
|
-
"original": "string",
|
|
49
|
-
"resolved": "string",
|
|
50
|
-
"references": {}
|
|
51
|
-
},
|
|
52
|
-
"required": false,
|
|
53
|
-
"optional": false,
|
|
54
|
-
"docs": {
|
|
55
|
-
"tags": [{
|
|
56
|
-
"name": "defaultValue",
|
|
57
|
-
"text": "null"
|
|
58
|
-
}],
|
|
59
|
-
"text": "A unique identifier used for the underlying component `id` attribute."
|
|
60
|
-
},
|
|
61
|
-
"attribute": "component-id",
|
|
62
|
-
"reflect": false
|
|
63
|
-
},
|
|
64
|
-
"isOpen": {
|
|
65
|
-
"type": "boolean",
|
|
66
|
-
"mutable": true,
|
|
67
|
-
"complexType": {
|
|
68
|
-
"original": "boolean",
|
|
69
|
-
"resolved": "boolean",
|
|
70
|
-
"references": {}
|
|
71
|
-
},
|
|
72
|
-
"required": false,
|
|
73
|
-
"optional": false,
|
|
74
|
-
"docs": {
|
|
75
|
-
"tags": [{
|
|
76
|
-
"name": "defaultValue",
|
|
77
|
-
"text": "false"
|
|
78
|
-
}],
|
|
79
|
-
"text": "Can be used to manually set the open state of the accordion."
|
|
80
|
-
},
|
|
81
|
-
"attribute": "open",
|
|
82
|
-
"reflect": true,
|
|
83
|
-
"defaultValue": "false"
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
static get watchers() {
|
|
88
|
-
return [{
|
|
89
|
-
"propName": "isOpen",
|
|
90
|
-
"methodName": "handleOpenState"
|
|
91
|
-
}];
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
//# sourceMappingURL=pds-accordion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pds-accordion.js","sourceRoot":"","sources":["../../../src/components/pds-accordion/pds-accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD;;;GAGG;AAMH,MAAM,OAAO,YAAY;;QAwBf,iBAAY,GAAG,GAAG,EAAE;YAC1B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;QACpC,CAAC,CAAC;QAEM,qBAAgB,GAAG,GAAG,EAAE;YAC9B,IAAI,IAAI,CAAC,MAAM,KAAK,KAAK,EAAE,CAAC;gBAC1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YACxB,CAAC;YACD,OAAO,EAAE,CAAC;QACZ,CAAC,CAAC;;sBAhBmB,KAAK;;IAG1B,eAAe,CAAC,QAAiB;QAC/B,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC;IACzB,CAAC;IAaD,gBAAgB;QACd,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAC,eAAe,EAAC,EAAE,EAAE,IAAI,CAAC,WAAW;YAC9C,gFAAa,IAAI,CAAC,gBAAgB,EAAE,IAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,EAAwB,CAAC;gBAC5F;oBACE,6DAAM,IAAI,EAAC,OAAO,cAAe;oBACjC,iEAAU,IAAI,EAAE,SAAS,GAAI,CACrB;gBACV,4DAAK,KAAK,EAAC,qBAAqB;oBAC9B,8DAAQ,CACJ,CACE,CACL,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Prop, Watch } from '@stencil/core';\nimport { downSmall } from '@pine-ds/icons/icons';\n\n/**\n * @slot (default) - Accordion body content.\n * @slot label - Accordion trigger button content.\n */\n@Component({\n tag: 'pds-accordion',\n styleUrl: 'pds-accordion.scss',\n shadow: true,\n})\nexport class PdsAccordion {\n private detailsEl: HTMLDetailsElement;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n * @defaultValue null\n */\n @Prop() componentId: string;\n\n /**\n * Can be used to manually set the open state of the accordion.\n * @defaultValue false\n */\n @Prop({\n attribute: 'open',\n mutable: true,\n reflect: true,\n }) isOpen: boolean = false;\n\n @Watch('isOpen')\n handleOpenState(newValue: boolean) {\n this.isOpen = newValue;\n }\n\n private handleToggle = () => {\n this.isOpen = this.detailsEl.open;\n };\n\n private getOpenAttribute = () => {\n if (this.isOpen !== false) {\n return { open: true };\n }\n return '';\n };\n\n componentDidLoad() {\n this.detailsEl.addEventListener('toggle', this.handleToggle);\n }\n\n render() {\n return (\n <Host class=\"pds-accordion\" id={this.componentId}>\n <details {...this.getOpenAttribute()} ref={(el) => (this.detailsEl = el as HTMLDetailsElement)}>\n <summary>\n <slot name=\"label\">Details</slot>\n <pds-icon icon={downSmall} />\n </summary>\n <div class=\"pds-accordion__body\">\n <slot />\n </div>\n </details>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
import { extractArgTypes } from '@pxtrn/storybook-addon-docs-stencil';
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
args: {
|
|
6
|
-
componentId: '',
|
|
7
|
-
isOpen: false,
|
|
8
|
-
},
|
|
9
|
-
argTypes: extractArgTypes('pds-accordion'),
|
|
10
|
-
component: 'pds-accordion',
|
|
11
|
-
title: 'components/Accordion',
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const BaseTemplate = (args) => html`
|
|
15
|
-
<pds-accordion component-id="${args.componentId}" open="${args.isOpen}">
|
|
16
|
-
<pds-row align-items="center" slot="label">
|
|
17
|
-
<pds-box align-items="center">
|
|
18
|
-
<pds-icon name="product"></pds-icon>
|
|
19
|
-
<span style="display: inline-block; margin-left: 8px;">Products</span>
|
|
20
|
-
</pds-box>
|
|
21
|
-
</pds-row>
|
|
22
|
-
<pds-row>
|
|
23
|
-
<pds-box direction="column" gap="xs" padding="xs">
|
|
24
|
-
<pds-link variant="plain" href="#">All products</pds-link>
|
|
25
|
-
<pds-link variant="plain" href="#">Courses</pds-link>
|
|
26
|
-
<pds-link variant="plain" href="#">Coaching</pds-link>
|
|
27
|
-
<pds-link variant="plain" href="#">Community</pds-link>
|
|
28
|
-
<pds-link variant="plain" href="#">Podcasts</pds-link>
|
|
29
|
-
</pds-box>
|
|
30
|
-
</pds-row>
|
|
31
|
-
</pds-accordion>
|
|
32
|
-
`;
|
|
33
|
-
|
|
34
|
-
export const Default = BaseTemplate.bind({});
|