@pine-ds/core 1.2.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/custom-elements.d.ts +2 -0
- package/components/index.d.ts +94 -0
- package/components/package.json +9 -0
- package/components/pds-accordion.d.ts +11 -0
- package/components/pds-avatar.d.ts +11 -0
- package/components/pds-box.d.ts +11 -0
- package/components/pds-button.d.ts +11 -0
- package/components/pds-checkbox.d.ts +11 -0
- package/components/pds-chip.d.ts +11 -0
- package/components/pds-copytext.d.ts +11 -0
- package/components/pds-divider.d.ts +11 -0
- package/components/pds-image.d.ts +11 -0
- package/components/pds-input.d.ts +11 -0
- package/components/pds-link.d.ts +11 -0
- package/components/pds-loader.d.ts +11 -0
- package/components/pds-progress.d.ts +11 -0
- package/components/pds-radio.d.ts +11 -0
- package/components/pds-row.d.ts +11 -0
- package/components/pds-sortable-item.d.ts +11 -0
- package/components/pds-sortable.d.ts +11 -0
- package/components/pds-switch.d.ts +11 -0
- package/components/pds-tab.d.ts +11 -0
- package/components/pds-table-body.d.ts +11 -0
- package/components/pds-table-cell.d.ts +11 -0
- package/components/pds-table-head-cell.d.ts +11 -0
- package/components/pds-table-head.d.ts +11 -0
- package/components/pds-table-row.d.ts +11 -0
- package/components/pds-table.d.ts +11 -0
- package/components/pds-tabpanel.d.ts +11 -0
- package/components/pds-tabs.d.ts +11 -0
- package/components/pds-textarea.d.ts +11 -0
- package/components/pds-tooltip.d.ts +11 -0
- package/dist/docs.json +15 -63
- package/dist/pine-core/index-00e73f84.js +329 -0
- package/dist/pine-core/index-00e73f84.js.map +1 -0
- package/dist/{cjs/index-ed42e2ee.js → pine-core/index-cccc19b7.js} +1551 -219
- 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 +4 -5
- 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/{esm → pine-core}/pds-checkbox.entry.js +4 -5
- 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-bea9ee54.js → pine-core/pds-label-7201663d.js} +2 -2
- package/dist/{esm/pds-label-bea9ee54.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/{esm → pine-core}/pds-radio.entry.js +4 -5
- 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 +704 -4
- package/dist/pine-core/pds-sortable.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-switch.entry.js +4 -5
- 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/{esm → pine-core}/pds-table-body.entry.js +2 -3
- package/dist/pine-core/pds-table-body.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-table-cell.entry.js +3 -4
- package/dist/pine-core/pds-table-cell.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-table-head-cell.entry.js +4 -5
- package/dist/pine-core/pds-table-head-cell.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-table-head.entry.js +3 -4
- package/dist/pine-core/pds-table-head.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-table-row.entry.js +3 -4
- package/dist/pine-core/pds-table-row.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-table.entry.js +3 -4
- package/dist/{esm-es5 → pine-core}/pds-table.entry.js.map +1 -1
- package/dist/{esm → pine-core}/pds-tabpanel.entry.js +2 -3
- package/dist/pine-core/pds-tabpanel.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-tabs.entry.js +3 -4
- package/dist/pine-core/pds-tabs.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-textarea.entry.js +4 -5
- package/dist/pine-core/pds-textarea.entry.js.map +1 -0
- package/dist/{esm → pine-core}/pds-tooltip.entry.js +3 -4
- 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/hydrate/index.d.ts +218 -0
- package/hydrate/index.js +13107 -0
- package/hydrate/package.json +6 -0
- package/package.json +2 -2
- package/dist/cjs/app-globals-3a1e7e63.js +0 -7
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/closest-b45138d3.js +0 -13
- package/dist/cjs/closest-b45138d3.js.map +0 -1
- package/dist/cjs/index-34f3258f.js +0 -24
- package/dist/cjs/index-34f3258f.js.map +0 -1
- package/dist/cjs/index-ed42e2ee.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.cjs.entry.js +0 -75
- package/dist/cjs/pds-checkbox.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-15dd83ef.js +0 -44
- package/dist/cjs/pds-label-15dd83ef.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-loader.cjs.entry.js +0 -49
- package/dist/cjs/pds-loader.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-cell.cjs.entry.js +0 -58
- package/dist/cjs/pds-table-cell.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +0 -76
- package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-head.cjs.entry.js +0 -55
- package/dist/cjs/pds-table-head.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table-row.cjs.entry.js +0 -66
- package/dist/cjs/pds-table-row.cjs.entry.js.map +0 -1
- package/dist/cjs/pds-table.cjs.entry.js +0 -102
- 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 -47
- 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 -135
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +0 -330
- 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-loader/pds-loader.css +0 -93
- package/dist/collection/components/pds-loader/pds-loader.js +0 -127
- package/dist/collection/components/pds-loader/pds-loader.js.map +0 -1
- package/dist/collection/components/pds-loader/stories/pds-loader.stories.js +0 -36
- 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 -109
- 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 -120
- 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 -120
- 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 -27
- package/dist/collection/components/pds-table/pds-table.js +0 -248
- 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/closest.js +0 -8
- package/dist/collection/utils/closest.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-852fd6bc.js +0 -14
- package/dist/esm/index-852fd6bc.js.map +0 -1
- package/dist/esm/index-ca411ad2.js +0 -2822
- package/dist/esm/index-ca411ad2.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.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-loader.entry.js +0 -45
- package/dist/esm/pds-loader.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.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.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.map +0 -1
- package/dist/esm/pds-table-cell.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.map +0 -1
- 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/closest-d2d192be.js +0 -2
- package/dist/esm-es5/closest-d2d192be.js.map +0 -1
- package/dist/esm-es5/index-852fd6bc.js +0 -2
- package/dist/esm-es5/index-852fd6bc.js.map +0 -1
- package/dist/esm-es5/index-ca411ad2.js +0 -3
- package/dist/esm-es5/index-ca411ad2.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.entry.js +0 -2
- package/dist/esm-es5/pds-checkbox.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-bea9ee54.js +0 -2
- package/dist/esm-es5/pds-label-bea9ee54.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-loader.entry.js +0 -2
- package/dist/esm-es5/pds-loader.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-cell.entry.js +0 -2
- package/dist/esm-es5/pds-table-cell.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-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-038065cf.system.entry.js +0 -2
- package/dist/pine-core/p-038065cf.system.entry.js.map +0 -1
- package/dist/pine-core/p-05ee992c.js +0 -3
- package/dist/pine-core/p-05ee992c.js.map +0 -1
- package/dist/pine-core/p-0b77685e.js +0 -2
- package/dist/pine-core/p-0b77685e.js.map +0 -1
- package/dist/pine-core/p-0f3ceb6c.system.entry.js +0 -2
- package/dist/pine-core/p-0f3ceb6c.system.entry.js.map +0 -1
- package/dist/pine-core/p-10fe7be7.entry.js +0 -2
- package/dist/pine-core/p-10fe7be7.entry.js.map +0 -1
- package/dist/pine-core/p-1618833a.entry.js +0 -2
- package/dist/pine-core/p-1618833a.entry.js.map +0 -1
- package/dist/pine-core/p-1775b56f.entry.js +0 -2
- package/dist/pine-core/p-1775b56f.entry.js.map +0 -1
- package/dist/pine-core/p-19b44f85.entry.js +0 -2
- package/dist/pine-core/p-19b44f85.entry.js.map +0 -1
- package/dist/pine-core/p-1a03a25f.system.entry.js +0 -2
- package/dist/pine-core/p-1a03a25f.system.entry.js.map +0 -1
- package/dist/pine-core/p-224a435b.system.js +0 -2
- package/dist/pine-core/p-224a435b.system.js.map +0 -1
- package/dist/pine-core/p-23d24773.entry.js +0 -2
- package/dist/pine-core/p-23d24773.entry.js.map +0 -1
- package/dist/pine-core/p-24441d11.system.entry.js +0 -2
- package/dist/pine-core/p-24441d11.system.entry.js.map +0 -1
- package/dist/pine-core/p-26626013.system.js +0 -3
- package/dist/pine-core/p-26626013.system.js.map +0 -1
- package/dist/pine-core/p-286189e0.system.entry.js +0 -2
- package/dist/pine-core/p-286189e0.system.entry.js.map +0 -1
- package/dist/pine-core/p-30dfdfdd.entry.js +0 -2
- package/dist/pine-core/p-30dfdfdd.entry.js.map +0 -1
- package/dist/pine-core/p-319ced45.system.entry.js +0 -2
- package/dist/pine-core/p-319ced45.system.entry.js.map +0 -1
- package/dist/pine-core/p-34a4c5ff.system.entry.js +0 -2
- package/dist/pine-core/p-34a4c5ff.system.entry.js.map +0 -1
- package/dist/pine-core/p-3648779f.entry.js +0 -2
- package/dist/pine-core/p-3648779f.entry.js.map +0 -1
- package/dist/pine-core/p-3dfbaa2a.entry.js +0 -2
- package/dist/pine-core/p-3dfbaa2a.entry.js.map +0 -1
- package/dist/pine-core/p-3f1ca23f.entry.js +0 -2
- package/dist/pine-core/p-3f1ca23f.entry.js.map +0 -1
- package/dist/pine-core/p-3f78956d.system.entry.js +0 -2
- package/dist/pine-core/p-3f78956d.system.entry.js.map +0 -1
- package/dist/pine-core/p-4283f600.system.entry.js +0 -2
- package/dist/pine-core/p-4283f600.system.entry.js.map +0 -1
- package/dist/pine-core/p-42cccfec.entry.js +0 -2
- package/dist/pine-core/p-42cccfec.entry.js.map +0 -1
- package/dist/pine-core/p-473037f0.system.entry.js +0 -2
- package/dist/pine-core/p-473037f0.system.entry.js.map +0 -1
- package/dist/pine-core/p-4a7afca5.entry.js +0 -2
- package/dist/pine-core/p-4a7afca5.entry.js.map +0 -1
- package/dist/pine-core/p-4da18aac.system.entry.js +0 -2
- package/dist/pine-core/p-4da18aac.system.entry.js.map +0 -1
- package/dist/pine-core/p-4dec2648.js +0 -2
- package/dist/pine-core/p-4dec2648.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-56ba5cbf.system.js +0 -2
- package/dist/pine-core/p-56ba5cbf.system.js.map +0 -1
- package/dist/pine-core/p-56c60cf8.system.entry.js +0 -2
- package/dist/pine-core/p-56c60cf8.system.entry.js.map +0 -1
- package/dist/pine-core/p-59f634bc.entry.js +0 -2
- package/dist/pine-core/p-59f634bc.entry.js.map +0 -1
- package/dist/pine-core/p-5b032eb0.system.entry.js +0 -2
- package/dist/pine-core/p-5b032eb0.system.entry.js.map +0 -1
- package/dist/pine-core/p-5bcbdba7.entry.js +0 -2
- package/dist/pine-core/p-5bcbdba7.entry.js.map +0 -1
- package/dist/pine-core/p-5ec5e6cc.entry.js +0 -2
- package/dist/pine-core/p-5ec5e6cc.entry.js.map +0 -1
- package/dist/pine-core/p-60953292.system.entry.js +0 -9
- package/dist/pine-core/p-60953292.system.entry.js.map +0 -1
- package/dist/pine-core/p-6663628f.entry.js +0 -2
- package/dist/pine-core/p-6663628f.entry.js.map +0 -1
- package/dist/pine-core/p-689137e6.system.entry.js +0 -2
- package/dist/pine-core/p-689137e6.system.entry.js.map +0 -1
- package/dist/pine-core/p-6faa8c75.js +0 -2
- package/dist/pine-core/p-6faa8c75.js.map +0 -1
- package/dist/pine-core/p-77b96720.system.js +0 -2
- package/dist/pine-core/p-77b96720.system.js.map +0 -1
- package/dist/pine-core/p-7bf40997.entry.js +0 -2
- package/dist/pine-core/p-7bf40997.entry.js.map +0 -1
- package/dist/pine-core/p-7ef962b2.system.entry.js +0 -2
- package/dist/pine-core/p-7ef962b2.system.entry.js.map +0 -1
- package/dist/pine-core/p-80024a08.system.entry.js +0 -2
- package/dist/pine-core/p-80024a08.system.entry.js.map +0 -1
- package/dist/pine-core/p-8dd63189.entry.js +0 -8
- package/dist/pine-core/p-8dd63189.entry.js.map +0 -1
- package/dist/pine-core/p-9028ed17.system.entry.js +0 -2
- package/dist/pine-core/p-9028ed17.system.entry.js.map +0 -1
- package/dist/pine-core/p-9087b22e.entry.js +0 -2
- package/dist/pine-core/p-9087b22e.entry.js.map +0 -1
- package/dist/pine-core/p-927733f2.system.js +0 -2
- package/dist/pine-core/p-927733f2.system.js.map +0 -1
- package/dist/pine-core/p-97e67ec3.system.entry.js +0 -2
- package/dist/pine-core/p-97e67ec3.system.entry.js.map +0 -1
- package/dist/pine-core/p-999c240c.entry.js +0 -2
- package/dist/pine-core/p-999c240c.entry.js.map +0 -1
- package/dist/pine-core/p-a010a9e8.system.entry.js +0 -2
- package/dist/pine-core/p-a010a9e8.system.entry.js.map +0 -1
- package/dist/pine-core/p-a1cf1db5.entry.js +0 -2
- package/dist/pine-core/p-a1cf1db5.entry.js.map +0 -1
- package/dist/pine-core/p-a4150f66.system.entry.js +0 -2
- package/dist/pine-core/p-a4150f66.system.entry.js.map +0 -1
- package/dist/pine-core/p-a5a0ced9.system.entry.js +0 -2
- package/dist/pine-core/p-a5a0ced9.system.entry.js.map +0 -1
- package/dist/pine-core/p-a617a31d.system.entry.js +0 -2
- package/dist/pine-core/p-a617a31d.system.entry.js.map +0 -1
- package/dist/pine-core/p-a6a2fd34.entry.js +0 -2
- package/dist/pine-core/p-a6a2fd34.entry.js.map +0 -1
- package/dist/pine-core/p-a6eb294d.entry.js +0 -2
- package/dist/pine-core/p-a6eb294d.entry.js.map +0 -1
- package/dist/pine-core/p-b2b8070b.entry.js +0 -2
- package/dist/pine-core/p-b2b8070b.entry.js.map +0 -1
- package/dist/pine-core/p-b5ad8600.entry.js +0 -2
- package/dist/pine-core/p-b5ad8600.entry.js.map +0 -1
- package/dist/pine-core/p-b8e27935.system.entry.js +0 -2
- package/dist/pine-core/p-b8e27935.system.entry.js.map +0 -1
- package/dist/pine-core/p-b924a6f7.entry.js +0 -2
- package/dist/pine-core/p-b924a6f7.entry.js.map +0 -1
- package/dist/pine-core/p-bb55fb8d.system.entry.js +0 -2
- package/dist/pine-core/p-bb55fb8d.system.entry.js.map +0 -1
- package/dist/pine-core/p-c25d94c0.system.entry.js +0 -2
- package/dist/pine-core/p-c25d94c0.system.entry.js.map +0 -1
- package/dist/pine-core/p-c8f50955.system.entry.js +0 -2
- package/dist/pine-core/p-c8f50955.system.entry.js.map +0 -1
- package/dist/pine-core/p-ccbff59d.entry.js +0 -2
- package/dist/pine-core/p-ccbff59d.entry.js.map +0 -1
- package/dist/pine-core/p-cd001902.system.entry.js +0 -2
- package/dist/pine-core/p-cd001902.system.entry.js.map +0 -1
- package/dist/pine-core/p-d1038811.entry.js +0 -2
- package/dist/pine-core/p-d1038811.entry.js.map +0 -1
- package/dist/pine-core/p-d1972e4b.entry.js +0 -2
- package/dist/pine-core/p-d1972e4b.entry.js.map +0 -1
- package/dist/pine-core/p-da9c79a4.entry.js +0 -2
- package/dist/pine-core/p-da9c79a4.entry.js.map +0 -1
- package/dist/pine-core/p-db38d613.entry.js +0 -2
- package/dist/pine-core/p-db38d613.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-e55f6789.system.js +0 -2
- package/dist/pine-core/p-e55f6789.system.js.map +0 -1
- package/dist/pine-core/p-f1086b10.system.entry.js +0 -2
- package/dist/pine-core/p-f1086b10.system.entry.js.map +0 -1
- package/dist/pine-core/p-f3f00b4b.system.entry.js +0 -2
- package/dist/pine-core/p-f3f00b4b.system.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/bulb.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-filled.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-filled.svg +0 -1
- package/dist/pine-core/svg/users.svg +0 -1
- package/dist/pine-core/svg/video-off.svg +0 -1
- package/dist/pine-core/svg/video-on.svg +0 -1
- package/dist/pine-core/svg/warning-filled.svg +0 -1
- package/dist/pine-core/svg/warning.svg +0 -1
- package/dist/pine-core/svg/window-paragraph.svg +0 -1
- package/dist/pine-core/svg/world.svg +0 -1
- package/dist/pine-core/svg/wrench.svg +0 -1
- /package/dist/{esm → pine-core}/app-globals-0f993ce5.js +0 -0
- /package/dist/{esm → pine-core}/app-globals-0f993ce5.js.map +0 -0
- /package/dist/{esm → pine-core}/closest-d2d192be.js +0 -0
- /package/dist/{esm → pine-core}/closest-d2d192be.js.map +0 -0
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-ca411ad2.js';
|
|
2
|
-
|
|
3
|
-
let missingAssetPathWarning = false;
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* Reads the component asset path config from meta tag or a global variable.
|
|
7
|
-
* This is a temporary workaround until these issues have been addressed:
|
|
8
|
-
*
|
|
9
|
-
* https://github.com/ionic-team/stencil/issues/2826/
|
|
10
|
-
* https://github.com/ionic-team/stencil/issues/3470
|
|
11
|
-
* https://github.com/ionic-team/stencil-ds-output-targets/issues/186
|
|
12
|
-
*/
|
|
13
|
-
const getAssetPath = (path) => {
|
|
14
|
-
var _a;
|
|
15
|
-
const metaPineAssetPath = (_a = document.head.querySelector('meta[data-pine-asset-path]')) === null || _a === void 0 ? void 0 : _a.dataset.pineAssetPath;
|
|
16
|
-
// Get the asset path from the window object if available
|
|
17
|
-
const windowAssetPath = window.__PINE_ASSET_PATH__;
|
|
18
|
-
// Set the CDN Asset path using the latest version
|
|
19
|
-
const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';
|
|
20
|
-
const assetBasePath = metaPineAssetPath || windowAssetPath || cdnAssetPath || '/';
|
|
21
|
-
// Display a warning if the assets are fetched from the CDN.
|
|
22
|
-
if (assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning) {
|
|
23
|
-
missingAssetPathWarning = true;
|
|
24
|
-
console.warn(`
|
|
25
|
-
Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation: \nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs
|
|
26
|
-
`);
|
|
27
|
-
}
|
|
28
|
-
let assetPath = path;
|
|
29
|
-
if (path.startsWith('./')) {
|
|
30
|
-
assetPath = path.substring(2);
|
|
31
|
-
}
|
|
32
|
-
if (!assetBasePath.endsWith('/')) {
|
|
33
|
-
assetPath = '/' + assetPath;
|
|
34
|
-
}
|
|
35
|
-
return assetBasePath + assetPath;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
let CACHED_MAP;
|
|
39
|
-
const getIconMap = () => {
|
|
40
|
-
if (typeof window === 'undefined') {
|
|
41
|
-
return new Map();
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
if (!CACHED_MAP) {
|
|
45
|
-
const win = window; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
46
|
-
win.PdsIcons = win.PdsIcons || {};
|
|
47
|
-
CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();
|
|
48
|
-
}
|
|
49
|
-
return CACHED_MAP;
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
const getName = (iconName, icon) => {
|
|
53
|
-
if (!iconName && icon && !isSrc(icon)) {
|
|
54
|
-
iconName = icon;
|
|
55
|
-
}
|
|
56
|
-
if (isStr(iconName)) {
|
|
57
|
-
iconName = toLower(iconName);
|
|
58
|
-
}
|
|
59
|
-
if (!isStr(iconName) || iconName.trim() === '') {
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
const invalidChars = iconName.replace(/[a-z]|-|\d/gi, '');
|
|
63
|
-
if (invalidChars != '') {
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
return iconName;
|
|
67
|
-
};
|
|
68
|
-
const getNamedUrl = (iconName) => {
|
|
69
|
-
const url = getIconMap().get(iconName);
|
|
70
|
-
if (url) {
|
|
71
|
-
return url;
|
|
72
|
-
}
|
|
73
|
-
return getAssetPath(`svg/${iconName}.svg`);
|
|
74
|
-
};
|
|
75
|
-
const getSrc = (src) => {
|
|
76
|
-
if (isStr(src)) {
|
|
77
|
-
src = src.trim();
|
|
78
|
-
if (isSrc(src)) {
|
|
79
|
-
return src;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return null;
|
|
83
|
-
};
|
|
84
|
-
const getUrl = (pdsIcon) => {
|
|
85
|
-
let url = getSrc(pdsIcon.src);
|
|
86
|
-
if (url) {
|
|
87
|
-
return url;
|
|
88
|
-
}
|
|
89
|
-
url = getName(pdsIcon.name, pdsIcon.icon);
|
|
90
|
-
if (url) {
|
|
91
|
-
return getNamedUrl(url);
|
|
92
|
-
}
|
|
93
|
-
if (pdsIcon.icon) {
|
|
94
|
-
url = getSrc(pdsIcon.icon);
|
|
95
|
-
if (url) {
|
|
96
|
-
return url;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return null;
|
|
100
|
-
};
|
|
101
|
-
const isSrc = (str) => str.length > 0 && /(\/|\.)/.test(str);
|
|
102
|
-
const isStr = (val) => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
103
|
-
const toLower = (val) => val.toLowerCase();
|
|
104
|
-
/**
|
|
105
|
-
* Elements inside of web components sometimes need to inherit global attributes
|
|
106
|
-
* set on the host. For example, the inner input in `ion-input` should inherit
|
|
107
|
-
* the `title` attribute that developers set directly on `ion-input`. This
|
|
108
|
-
* helper function should be called in componentWillLoad and assigned to a variable
|
|
109
|
-
* that is later used in the render function.
|
|
110
|
-
*
|
|
111
|
-
* This does not need to be reactive as changing attributes on the host element
|
|
112
|
-
* does not trigger a re-render.
|
|
113
|
-
*/
|
|
114
|
-
const inheritAttributes = (el, attributes = []) => {
|
|
115
|
-
const attributeObject = {}; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
116
|
-
attributes.forEach(attr => {
|
|
117
|
-
if (el.hasAttribute(attr)) {
|
|
118
|
-
const value = el.getAttribute(attr);
|
|
119
|
-
if (value !== null) {
|
|
120
|
-
attributeObject[attr] = el.getAttribute(attr);
|
|
121
|
-
}
|
|
122
|
-
el.removeAttribute(attr);
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
return attributeObject;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
const validateContent = (svgContent) => {
|
|
129
|
-
const div = document.createElement('div');
|
|
130
|
-
div.innerHTML = svgContent;
|
|
131
|
-
// setup this way to ensure it works on our buddy IE
|
|
132
|
-
for (let i = div.childNodes.length - 1; i >= 0; i--) {
|
|
133
|
-
if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {
|
|
134
|
-
div.removeChild(div.childNodes[i]);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
// must only have 1 root element
|
|
138
|
-
const svgElm = div.firstElementChild;
|
|
139
|
-
if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {
|
|
140
|
-
const svgClass = svgElm.getAttribute('class') || '';
|
|
141
|
-
svgElm.setAttribute('class', (svgClass + ' s-pds-icon').trim());
|
|
142
|
-
// root element must be an svg
|
|
143
|
-
// lets double check we've got valid elements
|
|
144
|
-
// do not allow scripts
|
|
145
|
-
if (isValid(svgElm)) {
|
|
146
|
-
return div.innerHTML;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
return '';
|
|
150
|
-
};
|
|
151
|
-
const isValid = (elm) => {
|
|
152
|
-
if (elm.nodeType === 1) {
|
|
153
|
-
if (elm.nodeName.toLowerCase() === 'script') {
|
|
154
|
-
return false;
|
|
155
|
-
}
|
|
156
|
-
for (let i = 0; i < elm.attributes.length; i++) {
|
|
157
|
-
const name = elm.attributes[i].name;
|
|
158
|
-
if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {
|
|
159
|
-
return false;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
for (let i = 0; i < elm.childNodes.length; i++) {
|
|
163
|
-
if (!isValid(elm.childNodes[i])) {
|
|
164
|
-
return false;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
return true;
|
|
169
|
-
};
|
|
170
|
-
const isSvgDataUrl = (url) => url.startsWith('data:image/svg+xml');
|
|
171
|
-
const isEncodedDataUrl = (url) => url.indexOf(';utf8,') !== -1;
|
|
172
|
-
|
|
173
|
-
const pdsIconContent = new Map();
|
|
174
|
-
const requests = new Map(); // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
175
|
-
let parser;
|
|
176
|
-
const getSvgContent = (url, sanitize = false) => {
|
|
177
|
-
let req = requests.get(url);
|
|
178
|
-
if (!req) {
|
|
179
|
-
if (typeof fetch != 'undefined' && typeof document !== 'undefined') {
|
|
180
|
-
if (isSvgDataUrl(url) && isEncodedDataUrl(url)) {
|
|
181
|
-
if (!parser) {
|
|
182
|
-
parser = new DOMParser();
|
|
183
|
-
}
|
|
184
|
-
const doc = parser.parseFromString(url, 'text/html');
|
|
185
|
-
const svg = doc.querySelector('svg');
|
|
186
|
-
if (svg) {
|
|
187
|
-
pdsIconContent.set(url, svg.outerHTML);
|
|
188
|
-
}
|
|
189
|
-
return Promise.resolve();
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
// we don't have a request
|
|
193
|
-
req = fetch(url).then((rsp) => {
|
|
194
|
-
if (rsp.ok) {
|
|
195
|
-
return rsp.text().then((svgContent) => {
|
|
196
|
-
if (svgContent && sanitize !== false) {
|
|
197
|
-
svgContent = validateContent(svgContent);
|
|
198
|
-
}
|
|
199
|
-
pdsIconContent.set(url, svgContent || '');
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
pdsIconContent.set(url, '');
|
|
203
|
-
});
|
|
204
|
-
requests.set(url, req);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
pdsIconContent.set(url, '');
|
|
209
|
-
return Promise.resolve();
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
return req;
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
const pdsIconCss = ":host{contain:strict;display:inline-block;fill:currentColor;height:1em;width:1em}:host .pdsicon{fill:currentColor}.pds-icon-fill-none{fill:none}.icon-inner,.pds-icon,svg{display:block;height:100%;width:100%}";
|
|
216
|
-
const PdsIconStyle0 = pdsIconCss;
|
|
217
|
-
|
|
218
|
-
const PdsIcon = class {
|
|
219
|
-
constructor(hostRef) {
|
|
220
|
-
registerInstance(this, hostRef);
|
|
221
|
-
this.inheritedAttributes = {}; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
222
|
-
this.hasAriaHidden = () => {
|
|
223
|
-
const { el } = this;
|
|
224
|
-
return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';
|
|
225
|
-
};
|
|
226
|
-
this.ariaLabel = undefined;
|
|
227
|
-
this.isVisible = false;
|
|
228
|
-
this.svgContent = undefined;
|
|
229
|
-
this.color = undefined;
|
|
230
|
-
this.icon = undefined;
|
|
231
|
-
this.name = undefined;
|
|
232
|
-
this.size = 'regular';
|
|
233
|
-
this.src = undefined;
|
|
234
|
-
}
|
|
235
|
-
iconSize() {
|
|
236
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
237
|
-
const sizes = {
|
|
238
|
-
small: '12px',
|
|
239
|
-
regular: '16px',
|
|
240
|
-
medium: '20px',
|
|
241
|
-
large: '24px',
|
|
242
|
-
};
|
|
243
|
-
if (sizes[this.size]) {
|
|
244
|
-
return sizes[this.size];
|
|
245
|
-
}
|
|
246
|
-
else {
|
|
247
|
-
return this.size;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
componentWillLoad() {
|
|
251
|
-
this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);
|
|
252
|
-
}
|
|
253
|
-
connectedCallback() {
|
|
254
|
-
this.waitUntilVisible(this.el, '50px', () => {
|
|
255
|
-
this.isVisible = true;
|
|
256
|
-
this.loadIcon();
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
disconnectedCallback() {
|
|
260
|
-
if (this.io) {
|
|
261
|
-
this.io.disconnect();
|
|
262
|
-
this.io = undefined;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
loadIcon() {
|
|
266
|
-
if (this.isVisible) {
|
|
267
|
-
const url = getUrl(this);
|
|
268
|
-
if (url) {
|
|
269
|
-
if (pdsIconContent.has(url)) {
|
|
270
|
-
this.svgContent = pdsIconContent.get(url);
|
|
271
|
-
}
|
|
272
|
-
else {
|
|
273
|
-
getSvgContent(url).then(() => (this.svgContent = pdsIconContent.get(url)));
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
const label = getName(this.name, this.icon);
|
|
278
|
-
if (label) {
|
|
279
|
-
this.ariaLabel = label.replace(/\-/g, ' ');
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
render() {
|
|
283
|
-
const { ariaLabel, inheritedAttributes } = this;
|
|
284
|
-
const style = {
|
|
285
|
-
height: this.iconSize(),
|
|
286
|
-
width: this.iconSize(),
|
|
287
|
-
color: this.color,
|
|
288
|
-
};
|
|
289
|
-
return (h(Host, Object.assign({ key: '8b9838e26ed7c79b98edeec06b912db75c420045', "aria-label": ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null, alt: "", role: "img", style: style, class: Object.assign({}, createColorClasses(this.color)) }, inheritedAttributes), this.svgContent ? (h("div", { class: "icon-inner", innerHTML: this.svgContent })) : (h("div", { class: "icon-inner" }))));
|
|
290
|
-
}
|
|
291
|
-
/*****
|
|
292
|
-
* Private Methods
|
|
293
|
-
****/
|
|
294
|
-
waitUntilVisible(el, rootMargin, cb) {
|
|
295
|
-
if (typeof window !== 'undefined' && (window).IntersectionObserver) {
|
|
296
|
-
const io = (this.io = new (window).IntersectionObserver((data) => {
|
|
297
|
-
if (data[0].isIntersecting) {
|
|
298
|
-
io.disconnect();
|
|
299
|
-
this.io = undefined;
|
|
300
|
-
cb();
|
|
301
|
-
}
|
|
302
|
-
}, { rootMargin }));
|
|
303
|
-
io.observe(el);
|
|
304
|
-
}
|
|
305
|
-
else {
|
|
306
|
-
// browser doesn't support IntersectionObserver
|
|
307
|
-
// so just fallback to always show it
|
|
308
|
-
cb();
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
static get assetsDirs() { return ["svg"]; }
|
|
312
|
-
get el() { return getElement(this); }
|
|
313
|
-
static get watchers() { return {
|
|
314
|
-
"name": ["loadIcon"],
|
|
315
|
-
"src": ["loadIcon"],
|
|
316
|
-
"icon": ["loadIcon"]
|
|
317
|
-
}; }
|
|
318
|
-
};
|
|
319
|
-
const createColorClasses = (color) => {
|
|
320
|
-
return color
|
|
321
|
-
? {
|
|
322
|
-
'pds-color': true,
|
|
323
|
-
[`pds-color-${color}`]: true,
|
|
324
|
-
}
|
|
325
|
-
: null;
|
|
326
|
-
};
|
|
327
|
-
PdsIcon.style = PdsIconStyle0;
|
|
328
|
-
|
|
329
|
-
export { PdsIcon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E,mBAAmB,CAAC,EAAqB,IAAI,CAAC,UAAU,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE;KAC1a;;;;IAID,gBAAgB,CAAC,EAAE,EAAE,UAAU,EAAE,EAAE;QAC/B,IAAuB,OAAO,MAAM,KAAK,WAAW,IAAI,CAAC,MAAM,EAAE,oBAAoB,EAAE;YACnF,MAAM,EAAE,IAAI,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,IAAI;gBACzD,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,cAAc,EAAE;oBACxB,EAAE,CAAC,UAAU,EAAE,CAAC;oBAChB,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC;oBACpB,EAAE,EAAE,CAAC;iBACR;aACJ,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC;YACpB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;SAClB;aACI;;;YAGD,EAAE,EAAE,CAAC;SACR;KACJ;IAaD,WAAW,UAAU,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE;;;;;;;;AAgH/C,MAAM,kBAAkB,GAAG,CAAC,KAAK;IAC7B,OAAO,KAAK;UACN;YACE,WAAW,EAAE,IAAI;YACjB,CAAC,aAAa,KAAK,EAAE,GAAG,IAAI;SAC/B;UACC,IAAI,CAAC;AACf,CAAC,CAAC;;;;;","names":[],"sources":["../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/assetPath.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/utils.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/validate.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/request.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/pds-icon.css?tag=pds-icon&encapsulation=shadow","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/pds-icon.js"],"sourcesContent":["import { Build } from \"@stencil/core\";\nlet missingAssetPathWarning = false;\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path) => {\n var _a;\n const metaPineAssetPath = (_a = document.head.querySelector('meta[data-pine-asset-path]')) === null || _a === void 0 ? void 0 : _a.dataset.pineAssetPath;\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/';\n // Display a warning if the assets are fetched from the CDN.\n if (assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you read the documentation: \\nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs\n `);\n }\n let assetPath = path;\n if (path.startsWith('./')) {\n assetPath = path.substring(2);\n }\n if (!assetBasePath.endsWith('/')) {\n assetPath = '/' + assetPath;\n }\n return assetBasePath + assetPath;\n};\n//# sourceMappingURL=assetPath.js.map\n","import { getAssetPath } from \"./assetPath\";\nlet CACHED_MAP;\nexport const addIcons = (icons) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n};\nexport const getIconMap = () => {\n if (typeof window === 'undefined') {\n return new Map();\n }\n else {\n if (!CACHED_MAP) {\n const win = window; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n return CACHED_MAP;\n }\n};\nexport const getName = (iconName, icon) => {\n if (!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi, '');\n if (invalidChars != '') {\n return null;\n }\n return iconName;\n};\nconst getNamedUrl = (iconName) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n return getAssetPath(`svg/${iconName}.svg`);\n};\nexport const getSrc = (src) => {\n if (isStr(src)) {\n src = src.trim();\n if (isSrc(src)) {\n return src;\n }\n }\n return null;\n};\nexport const getUrl = (pdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n if (url) {\n return url;\n }\n }\n return null;\n};\nexport const isSrc = (str) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val) => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val) => val.toLowerCase();\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `ion-input` should inherit\n * the `title` attribute that developers set directly on `ion-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\nexport const inheritAttributes = (el, attributes = []) => {\n const attributeObject = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n return attributeObject;\n};\n//# sourceMappingURL=utils.js.map\n","import { isStr } from \"./utils\";\nexport const validateContent = (svgContent) => {\n const div = document.createElement('div');\n div.innerHTML = svgContent;\n // setup this way to ensure it works on our buddy IE\n for (let i = div.childNodes.length - 1; i >= 0; i--) {\n if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {\n div.removeChild(div.childNodes[i]);\n }\n }\n // must only have 1 root element\n const svgElm = div.firstElementChild;\n if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {\n const svgClass = svgElm.getAttribute('class') || '';\n svgElm.setAttribute('class', (svgClass + ' s-pds-icon').trim());\n // root element must be an svg\n // lets double check we've got valid elements\n // do not allow scripts\n if (isValid(svgElm)) {\n return div.innerHTML;\n }\n }\n return '';\n};\nexport const isValid = (elm) => {\n if (elm.nodeType === 1) {\n if (elm.nodeName.toLowerCase() === 'script') {\n return false;\n }\n for (let i = 0; i < elm.attributes.length; i++) {\n const name = elm.attributes[i].name;\n if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {\n return false;\n }\n }\n for (let i = 0; i < elm.childNodes.length; i++) {\n if (!isValid(elm.childNodes[i])) {\n return false;\n }\n }\n }\n return true;\n};\nexport const isSvgDataUrl = (url) => url.startsWith('data:image/svg+xml');\nexport const isEncodedDataUrl = (url) => url.indexOf(';utf8,') !== -1;\n//# sourceMappingURL=validate.js.map\n","import { isEncodedDataUrl, isSvgDataUrl, validateContent } from \"./validate\";\nexport const pdsIconContent = new Map();\nconst requests = new Map(); // eslint-disable-line @typescript-eslint/no-explicit-any\nlet parser;\nexport const getSvgContent = (url, sanitize = false) => {\n let req = requests.get(url);\n if (!req) {\n if (typeof fetch != 'undefined' && typeof document !== 'undefined') {\n if (isSvgDataUrl(url) && isEncodedDataUrl(url)) {\n if (!parser) {\n parser = new DOMParser();\n }\n const doc = parser.parseFromString(url, 'text/html');\n const svg = doc.querySelector('svg');\n if (svg) {\n pdsIconContent.set(url, svg.outerHTML);\n }\n return Promise.resolve();\n }\n else {\n // we don't have a request\n req = fetch(url).then((rsp) => {\n if (rsp.ok) {\n return rsp.text().then((svgContent) => {\n if (svgContent && sanitize !== false) {\n svgContent = validateContent(svgContent);\n }\n pdsIconContent.set(url, svgContent || '');\n });\n }\n pdsIconContent.set(url, '');\n });\n requests.set(url, req);\n }\n }\n else {\n pdsIconContent.set(url, '');\n return Promise.resolve();\n }\n }\n return req;\n};\n//# sourceMappingURL=request.js.map\n",":host {\n contain: strict;\n display: inline-block;\n fill: currentColor;\n height: 1em;\n width: 1em;\n}\n:host .pdsicon {\n fill: currentColor;\n}\n\n.pds-icon-fill-none {\n fill: none;\n}\n\n.icon-inner,\n.pds-icon,\nsvg {\n display: block;\n height: 100%;\n width: 100%;\n}","import { Build, Host, h } from \"@stencil/core\";\nimport { getSvgContent, pdsIconContent } from \"./request\";\nimport { getName, getUrl, inheritAttributes } from \"./utils\";\nexport class PdsIcon {\n constructor() {\n this.inheritedAttributes = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n this.hasAriaHidden = () => {\n const { el } = this;\n return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';\n };\n this.ariaLabel = undefined;\n this.isVisible = false;\n this.svgContent = undefined;\n this.color = undefined;\n this.icon = undefined;\n this.name = undefined;\n this.size = 'regular';\n this.src = undefined;\n }\n iconSize() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const sizes = {\n small: '12px',\n regular: '16px',\n medium: '20px',\n large: '24px',\n };\n if (sizes[this.size]) {\n return sizes[this.size];\n }\n else {\n return this.size;\n }\n }\n componentWillLoad() {\n this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);\n }\n connectedCallback() {\n this.waitUntilVisible(this.el, '50px', () => {\n this.isVisible = true;\n this.loadIcon();\n });\n }\n disconnectedCallback() {\n if (this.io) {\n this.io.disconnect();\n this.io = undefined;\n }\n }\n loadIcon() {\n if (Build.isBrowser && this.isVisible) {\n const url = getUrl(this);\n if (url) {\n if (pdsIconContent.has(url)) {\n this.svgContent = pdsIconContent.get(url);\n }\n else {\n getSvgContent(url).then(() => (this.svgContent = pdsIconContent.get(url)));\n }\n }\n }\n const label = getName(this.name, this.icon);\n if (label) {\n this.ariaLabel = label.replace(/\\-/g, ' ');\n }\n }\n render() {\n const { ariaLabel, inheritedAttributes } = this;\n const style = {\n height: this.iconSize(),\n width: this.iconSize(),\n color: this.color,\n };\n return (h(Host, Object.assign({ key: '8b9838e26ed7c79b98edeec06b912db75c420045', \"aria-label\": ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null, alt: \"\", role: \"img\", style: style, class: Object.assign({}, createColorClasses(this.color)) }, inheritedAttributes), Build.isBrowser && this.svgContent ? (h(\"div\", { class: \"icon-inner\", innerHTML: this.svgContent })) : (h(\"div\", { class: \"icon-inner\" }))));\n }\n /*****\n * Private Methods\n ****/\n waitUntilVisible(el, rootMargin, cb) {\n if (Build.isBrowser && typeof window !== 'undefined' && (window).IntersectionObserver) {\n const io = (this.io = new (window).IntersectionObserver((data) => {\n if (data[0].isIntersecting) {\n io.disconnect();\n this.io = undefined;\n cb();\n }\n }, { rootMargin }));\n io.observe(el);\n }\n else {\n // browser doesn't support IntersectionObserver\n // so just fallback to always show it\n cb();\n }\n }\n static get is() { return \"pds-icon\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"pds-icon.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"pds-icon.css\"]\n };\n }\n static get assetsDirs() { return [\"svg\"]; }\n static get properties() {\n return {\n \"color\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\\nThe color of the icon\"\n },\n \"attribute\": \"color\",\n \"reflect\": false\n },\n \"icon\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"This a combination of both `name` and `src`. If a `src` url is detected\\nit will set the `src` property. Otherwise it assumes it's a built-in named\\nSVG and set the `name` property.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": false\n },\n \"name\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The name of the icon to use from\\nthe built-in set.\"\n },\n \"attribute\": \"name\",\n \"reflect\": true\n },\n \"size\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"| 'small' // 12px\\n | 'regular' // 16px\\n | 'medium' // 20px\\n | 'large' // 24px\\n | 'auto'\\n | string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The size of the icon. This can be\\n'small', 'regular', 'medium', large, or a\\ncustom value (40px, 1rem, etc)\"\n },\n \"attribute\": \"size\",\n \"reflect\": true,\n \"defaultValue\": \"'regular'\"\n },\n \"src\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\\nSpecifies the exact `src` of an SVG file to use.\"\n },\n \"attribute\": \"src\",\n \"reflect\": false\n }\n };\n }\n static get states() {\n return {\n \"ariaLabel\": {},\n \"isVisible\": {},\n \"svgContent\": {}\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"name\",\n \"methodName\": \"loadIcon\"\n }, {\n \"propName\": \"src\",\n \"methodName\": \"loadIcon\"\n }, {\n \"propName\": \"icon\",\n \"methodName\": \"loadIcon\"\n }];\n }\n}\nconst createColorClasses = (color) => {\n return color\n ? {\n 'pds-color': true,\n [`pds-color-${color}`]: true,\n }\n : null;\n};\n//# sourceMappingURL=pds-icon.js.map\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-image.entry.js","mappings":";;AAAA,MAAM,WAAW,GAAG,iIAAiI,CAAC;AACtJ,uBAAe,WAAW;;MCMb,QAAQ;;;mBAKJ,EAAE;;;uBAiBoB,OAAO;;;;;;IA0B5C,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,WAAW,EAAE,IAAI;aAClB,EACD,EAAE,EAAE,IAAI,CAAC,WAAW,IAEpB,4DACE,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,CACG,EACP;KACH;;;;;;","names":[],"sources":["src/components/pds-image/pds-image.scss?tag=pds-image&encapsulation=shadow","src/components/pds-image/pds-image.tsx"],"sourcesContent":[":host {\n /**\n * @prop --image-aspect-ratio: The image's aspect ratio.\n */\n\n --dimension-aspect-ratio: auto;\n display: inline-block;\n}\n\nimg {\n aspect-ratio: var(--dimension-aspect-ratio);\n height: auto;\n width: 100%;\n}","import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'pds-image',\n styleUrl: 'pds-image.scss',\n shadow: true,\n})\nexport class PdsImage {\n /**\n * The image's alt tag. If none is provided,\n * it will default to an empty string.\n */\n @Prop() alt? = '';\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * The height of the image in pixels. Setting this will\n * devote space in the layout to prevent layout\n * shifts when the image is loaded.\n */\n @Prop() height?: number;\n\n /**\n * Indicates how the browser should load the image.\n */\n @Prop() loading?: 'eager' | 'lazy' = 'eager';\n\n /**\n * Determines the intended display size of an image\n * within certian breakpoints. Has no effect if `srcset`\n * is not set or value has no width descriptor.\n */\n @Prop() sizes?: string;\n\n /**\n * The image's source.\n */\n @Prop() src: string;\n\n /**\n * A set of image sources for the browser to use.\n */\n @Prop() srcset?: string\n\n /**\n * The width of the image in pixels. Setting this will\n * devote space in the layout to prevent layout\n * shifts when the image is loaded.\n */\n @Prop() width?: number;\n\n render() {\n return (\n <Host\n class={{\n 'pds-image': true,\n }}\n id={this.componentId}\n >\n <img\n alt={this.alt}\n height={this.height}\n loading={this.loading}\n sizes={this.sizes}\n src={this.src}\n srcset={this.srcset}\n width={this.width}\n />\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-input.entry.js","mappings":";;;AAAA,MAAM,WAAW,GAAG,05FAA05F,CAAC;AAC/6F,uBAAe,WAAW;;MCQb,QAAQ;;;;QAoEX,iBAAY,GAAG,CAAC,EAAS;YAC/B,MAAM,KAAK,GAAG,EAAE,CAAC,MAAiC,CAAC;YACnD,IAAI,KAAK,EAAE;gBACT,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;aAChC;YACD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAgB,CAAC,CAAC;SACtC,CAAC;;;;;;;;;;;oBAlBa,MAAM;;;IAoBrB,MAAM;QACJ,QACE,EAAC,IAAI,sEACY,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,IAAI,IAE5C,4DAAK,KAAK,EAAC,WAAW,IACpB,EAAC,QAAQ,qDAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI,EACzD,8DAAO,KAAK,EAAC,kBAAkB,sBACX,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,kBACzE,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,SAAS,EAC/C,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,YAAY,GAC1B,EACD,IAAI,CAAC,aAAa;YACjB,0DACE,KAAK,EAAC,2BAA2B,EACjC,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,IAExC,IAAI,CAAC,aAAa,CACjB,EAEL,IAAI,CAAC,YAAY;YAChB,0DACE,KAAK,EAAC,0BAA0B,EAChC,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,eAC9B,WAAW,IAEpB,IAAI,CAAC,YAAY,CAChB,CAEF,CACD,EACP;KACH;;;;;;","names":[],"sources":["src/components/pds-input/pds-input.scss?tag=pds-input&encapsulation=shadow","src/components/pds-input/pds-input.tsx"],"sourcesContent":[":host {\n --box-shadow-focus: 0 0 0 2px var(--pine-color-blue-200);\n --box-shadow-focus-error: 0 0 0 2px var(--pine-color-red-200);\n\n --color-text-default: var(--pine-color-charcoal-500);\n --color-background-disabled: var(--pine-color-grey-100);\n --color-border-default: var(--pine-color-grey-400);\n --color-border-error: var(--pine-color-red-300);\n --color-border-hover: var(--pine-color-grey-500);\n --color-disabled-text: var(--pine-color-grey-500);\n --color-placeholder-text: var(--pine-color-charcoal-200);\n\n --font-size-helper-message: var(--pine-font-size-100);\n --font-size-input-field: var(--pine-font-size-100);\n --font-size-label: var(--pine-font-size-100);\n --font-weight-helper-message: var(--pine-font-weight-normal);\n --font-weight-input-field: var(--pine-font-weight-normal);\n --font-weight-label: var(--pine-font-weight-medium);\n\n --line-height-label: var(--pine-line-height-150);\n --line-height-helper-message: var(--pine-line-height-125);\n --line-height-input-field: var(--pine-line-height-150);\n\n --spacing-field-padding-block: var(--pine-spacing-100);\n --spacing-input-field-padding-inline: var(--pine-spacing-200);\n --spacing-label-margin-block-end: var(--pine-spacing-100);\n --spacing-margin-top-helper-message: var(--pine-spacing-100);\n\n display: inline;\n}\n\n.pds-input {\n display: flex;\n flex-direction: column;\n}\n\nlabel {\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-label-margin-block-end);\n}\n\ninput {\n border: 1px solid var(--color-border-default);\n border-radius: 10px;\n font-size: var(--font-size-input-field);\n font-weight: var(--font-weight-input-field);\n line-height: var(--line-height-input-field);\n padding: var(--spacing-field-padding-block) var(--spacing-input-field-padding-inline);\n\n &:disabled {\n background-color: var(--color-background-disabled);\n color: var(--color-disabled-text);\n cursor: not-allowed;\n }\n\n &:hover {\n border-color: var(--color-border-hover);\n }\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus);\n outline: none;\n }\n\n /* stylelint-disable */\n &::-webkit-input-placeholder {\n color: var(--color-placeholder-text);\n }\n\n &::-moz-placeholder {\n color: var(--color-placeholder-text);\n }\n\n &::-moz-placeholder {\n color: var(--color-placeholder-text);\n }\n\n &:-ms-input-placeholder {\n color: var(--color-placeholder-text);\n }\n\n &:has(~.pds-input__error-message) {\n border-color: var(--color-border-error);\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus-error);\n outline: none;\n }\n }\n /* stylelint-enable */\n}\n\n.pds-input__error-message,\n.pds-input__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-end: 0;\n margin-block-start: var(--spacing-margin-top-helper-message);\n}\n\n.pds-input__error-message {\n color: var(--color-error);\n}\n","import { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-input',\n styleUrl: 'pds-input.scss',\n shadow: true,\n})\nexport class PdsInput {\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 input field is disabled.\n */\n @Prop() disabled?: boolean;\n\n /**\n * Specifies the error message and provides an error-themed treatment to the field.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays a message or hint below the input field.\n */\n @Prop() helperMessage?: string;\n\n /**\n * Indicates whether or not the input field is invalid or throws an error.\n */\n @Prop() invalid?: boolean;\n\n /**\n * Text to be displayed as the input label.\n */\n @Prop() label?: string;\n\n /**\n * Specifies the name. Submitted with the form name/value pair.\n */\n @Prop() name?: string;\n\n /**\n * Specifies a short hint that describes the expected value of the input field.\n */\n @Prop() placeholder?: string;\n\n /**\n * Indicates whether or not the input field is readonly.\n */\n @Prop() readonly?: boolean;\n\n /**\n * Indicates whether or not the input field is required.\n */\n @Prop() required?: boolean;\n\n /**\n * Determines the type of control that will be displayed\n `'email'`, `'number'`, `'password'`, `'tel'`, `'text'`\n * @defaultValue \"text\"\n */\n @Prop() type = 'text';\n\n /**\n * The value of the input.\n */\n @Prop({mutable: true}) value?: string;\n\n /**\n * Emitted when a keyboard input occurred.\n */\n @Event() pdsInput: EventEmitter<InputEvent>;\n\n private onInputEvent = (ev: Event) => {\n const input = ev.target as HTMLInputElement | null;\n if (input) {\n this.value = input.value || '';\n }\n this.pdsInput.emit(ev as InputEvent);\n };\n\n render() {\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n >\n <div class=\"pds-input\">\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n <input class=\"pds-input__field\"\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\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 type={this.type}\n value={this.value}\n onInput={this.onInputEvent}\n />\n {this.helperMessage &&\n <p\n class=\"pds-input__helper-message\"\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </p>\n }\n {this.errorMessage &&\n <p\n class=\"pds-input__error-message\"\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n {this.errorMessage}\n </p>\n }\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-link.entry.js","mappings":";;;AAAA,MAAM,UAAU,GAAG,k8CAAk8C,CAAC;AACt9C,sBAAe,UAAU;;MCYZ,OAAO;;;;wBAUC,KAAK;uBAMc,QAAQ;wBAUP,IAAI;;;IAOnC,UAAU;QAChB,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC,CAAC;QAEhC,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,UAAU,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC/C;QAED,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,UAAU,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;SAC9C;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC7B;IAED,MAAM;QAEJ,QACE,0DACE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,MAAM,EAAE,IAAI,CAAC,QAAQ,GAAG,QAAQ,GAAG,SAAS,EAC5C,IAAI,EAAC,MAAM,IAEX,+DAAO,IAAI,CAAC,IAAI,CAAQ,EACvB,IAAI,CAAC,QAAQ;YACZ,iEAAU,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAa,CAExD,EACJ;KACH;;;;;;","names":[],"sources":["src/components/pds-link/pds-link.scss?tag=pds-link&encapsulation=shadow","src/components/pds-link/pds-link.tsx"],"sourcesContent":[":host {\n\n --border-outline: 4px solid var(--pine-color-blue-200);\n --border-radius: var(--pine-border-radius-075);\n --box-shadow-focus: inset 0 0 0 2px var(--pine-color-blue-200);\n\n --color-text-default: var(--pine-color-charcoal-400);\n\n --font-size: var(--pine-font-size-100);\n --font-size-sm: var(--pine-font-size-087);\n --font-size-xs: var(--pine-font-size-075);\n --font-weight: var(--pine-font-weight-medium);\n\n --spacing-inline-start-margin: var(--pine-spacing-050);\n --sizing-svg-lg: 15px;\n --sizing-svg-md: 13px;\n --sizing-svg-sm: 11px;\n\n display: inline;\n\n pds-icon {\n margin-inline-start: var(--spacing-inline-start-margin);\n }\n}\n\n.pds-link {\n align-items: center;\n color: var(--color-text);\n display: inline-flex;\n font-weight: inherit;\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\n// We have a small consensus stating that\n// fonts will be REMs, box-model will be\n// discussed later px or (r)em's\n.pds-link--sm {\n font-size: var(--font-size-xs);\n\n pds-icon {\n height: var(--sizing-svg-sm);\n width: var(--sizing-svg-sm);\n }\n}\n\n.pds-link--md {\n font-size: var(--font-size-sm);\n\n pds-icon {\n height: var(--sizing-svg-md);\n width: var(--sizing-svg-md);\n }\n}\n\n.pds-link--lg {\n font-size: var(--font-size);\n\n pds-icon {\n height: var(--sizing-svg-lg);\n width: var(--sizing-svg-lg);\n }\n}\n\n.pds-link--plain {\n font-weight: var(--font-weight);\n text-decoration: none;\n\n &:hover {\n text-decoration: underline;\n }\n}\n\n// Default = inline link\n.pds-link--default {\n text-decoration: underline;\n\n &:hover {\n text-decoration: none;\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n\nimport { launch } from '@pine-ds/icons/icons';\n\n/**\n * @part link - The main link element that represents the link component.\n * @slot - Content is placed between the opening closing tags.\n */\n@Component({\n tag: 'pds-link',\n styleUrl: 'pds-link.scss',\n shadow: true,\n})\nexport class PdsLink {\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * When enabled, opens link in a new tab.\n * @defaultValue false\n */\n @Prop() external = false;\n\n /**\n *\n * Modifies the look of the link\n */\n @Prop() variant: 'inline' | 'plain' = 'inline';\n\n /**\n *\n * The Font size follows t-shirt model\n * sm: 12px\n * md: 14px\n * lg: 16px\n * @defaultValue lg\n */\n @Prop() fontSize: 'sm' | 'md' | 'lg' = 'lg';\n\n /**\n * The URL that the hyperlink points to.\n */\n @Prop() href!: string;\n\n private classNames() {\n const classNames = ['pds-link'];\n\n if (this.fontSize) {\n classNames.push('pds-link--' + this.fontSize);\n }\n\n if (this.variant) {\n classNames.push('pds-link--' + this.variant);\n }\n\n return classNames.join(' ');\n }\n\n render() {\n\n return (\n <a\n class={this.classNames()}\n href={this.href}\n id={this.componentId}\n target={this.external ? '_blank' : undefined}\n part=\"link\"\n >\n <slot>{this.href}</slot>\n {this.external &&\n <pds-icon icon={launch} size={this.fontSize}></pds-icon>\n }\n </a>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-ca411ad2.js';
|
|
2
|
-
|
|
3
|
-
const pdsLoaderCss = ":host{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--pine-spacing-100)}:host(.pds-loader--hidden),.pds-loader--hidden{border-width:0;clip:rect(0, 0, 0, 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pds-loader--spinner svg{--color-background-spinner:var(--pine-color-blue-300);--number-spinner-timing:2s;--number-spinner-path-timing:1.5s;-webkit-animation:rotate var(--number-spinner-timing) linear infinite;animation:rotate var(--number-spinner-timing) linear infinite;block-size:var(--sizing-spinner);color:var(--color-background-spinner);inline-size:var(--sizing-spinner)}.pds-loader__spinner-path{stroke-width:8px}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.pds-loader--typing{--border-radius-typing:var(--pine-border-radius-200);--border-radius-typing-dot:var(--pine-border-radius-round);--box-shadow-typing:var(--pine-box-shadow-sm);--color-background-typing-default:var(--pine-color-grey-200);--color-background-typing-dot-default:var(--pine-color-grey-500);--number-typing-timing:1s;--opacity-typing-dot-default:0.4;--opacity-typing-dot-active:1;--sizing-typing-dot:calc(var(--pine-spacing-150) / 2);--spacing-typing-gap:var(--pine-spacing-050);--spacing-typing-margin-block:var(--pine-spacing-0);--spacing-typing-margin-inline:auto;--spacing-typing-padding-block:15px;--spacing-typing-padding-inline:var(--pine-spacing-250);-ms-flex-align:center;align-items:center;background-color:var(--color-background-typing-default);border-radius:var(--border-radius-typing);-webkit-box-shadow:var(--box-shadow-typing);box-shadow:var(--box-shadow-typing);display:-ms-inline-flexbox;display:inline-flex;gap:var(--spacing-typing-gap);margin-block:var(--spacing-typing-margin-block);margin-inline:var(--spacing-typing-margin-inline);padding-block:var(--spacing-typing-padding-block);padding-inline:var(--spacing-typing-padding-inline);position:relative}.pds-loader--typing span{background-color:var(--color-background-typing-dot-default);block-size:var(--sizing-typing-dot);border-radius:var(--border-radius-typing-dot);inline-size:var(--sizing-typing-dot);opacity:var(--opacity-typing-dot-default)}.pds-loader--typing span:nth-of-type(1){-webkit-animation:var(--number-typing-timing) typing infinite 0.3333s;animation:var(--number-typing-timing) typing infinite 0.3333s}.pds-loader--typing span:nth-of-type(2){-webkit-animation:var(--number-typing-timing) typing infinite 0.6666s;animation:var(--number-typing-timing) typing infinite 0.6666s}.pds-loader--typing span:nth-of-type(3){-webkit-animation:var(--number-typing-timing) typing infinite 0.9999s;animation:var(--number-typing-timing) typing infinite 0.9999s}@-webkit-keyframes typing{50%{opacity:var(--opacity-typing-dot-active);-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes typing{50%{opacity:var(--opacity-typing-dot-active);-webkit-transform:scale(1.2);transform:scale(1.2)}}.pds-loader__label{--typography-label-default:var(--pine-font-weight-semi-bold) var(--pine-font-size-100)/var(--pine-line-height-150) var(--pine-font-family-circular);font:var(--typography-label-default)}";
|
|
4
|
-
const PdsLoaderStyle0 = pdsLoaderCss;
|
|
5
|
-
|
|
6
|
-
const PdsLoader = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.style = () => {
|
|
10
|
-
if (this.size !== undefined) {
|
|
11
|
-
return {
|
|
12
|
-
height: this.loaderSize(),
|
|
13
|
-
width: this.loaderSize(),
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
this.isLoading = true;
|
|
18
|
-
this.showLabel = false;
|
|
19
|
-
this.size = 'md';
|
|
20
|
-
this.variant = 'spinner';
|
|
21
|
-
}
|
|
22
|
-
loaderSize() {
|
|
23
|
-
const sizes = {
|
|
24
|
-
xs: '24px',
|
|
25
|
-
sm: '32px',
|
|
26
|
-
md: '48px',
|
|
27
|
-
lg: '64px',
|
|
28
|
-
xl: '80px',
|
|
29
|
-
};
|
|
30
|
-
if (sizes[this.size]) {
|
|
31
|
-
return sizes[this.size];
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return this.size;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
render() {
|
|
38
|
-
return (h(Host, { key: '325b4512d1455cb90d4897e91453c4ec2370ddcb', class: `pds-loader ${this.isLoading ? '' : 'pds-loader--hidden'}`, "aria-hidden": !this.isLoading, "aria-busy": this.isLoading, "aria-live": "polite" }, this.variant === 'spinner' && (h("div", { key: 'eed858cd8518769874e7ca6d5265f3e1e77164f3', class: "pds-loader--spinner" }, h("svg", { key: 'fc821517a5923628ef96c8e37b9987c0ba3b987b', style: this.style(), viewBox: "0 0 200 200", fill: "none" }, h("defs", { key: 'f477b8f7be973a6a5b068b6758d6f549404e64c4' }, h("linearGradient", { key: '4979634cfecdca7ef5818f23577b401aa8991389', id: "spinner-secondHalf" }, h("stop", { key: 'ae4667b10205baa8dec8b7affd34d78273ad9667', offset: "0%", "stop-opacity": "0", "stop-color": "currentColor" }), h("stop", { key: '3d66bc5180831487e9e2591cc2b436f9b8cc855e', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" })), h("linearGradient", { key: '1c99e9057a86d4b850348543826fb6da163f4eb9', id: "spinner-firstHalf" }, h("stop", { key: '271c14abb61bb9bc01ac72f43d1cc8580b89b6c0', offset: "0%", "stop-opacity": "1", "stop-color": "currentColor" }), h("stop", { key: '4b8de0ac98a1b44ec3bbba4aa0002957e44c976c', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" }))), h("g", { key: 'b12aaf6168c8428999d020b46c99faf918c45f07', class: "pds-loader__spinner-path" }, h("path", { key: '4443446af5cf8c73d3352fa90d580e914c469028', stroke: "url(#spinner-secondHalf)", d: "M 4 100 A 96 96 0 0 1 196 100" }), h("path", { key: 'ca4edec218d03a74d12ce43a86ef55fbedaea39f', stroke: "url(#spinner-firstHalf)", d: "M 196 100 A 96 96 0 0 1 4 100" }), h("path", { key: 'af6ed9732a9fdd2047f100d2465b27782d2a0b02', stroke: "currentColor", "stroke-linecap": "round", d: "M 4 100 A 96 96 0 0 1 4 98" }))))), this.variant === 'typing' && (h("div", { key: '96aa15066aa426d53481bddd5b665181d9bcd0bd', class: "pds-loader--typing" }, h("span", { key: 'a0bb9722a2dbaf843afc9a50a1f42c46758d1b5e' }), h("span", { key: '0efc9cf2f132f358f58561ccbc7027c57f252df2' }), h("span", { key: 'b8b73b864c7dfefe26ac3aa33099d2f2f3737614' }))), h("div", { key: '3c921244741289e7b67228caedf6e5e13fac1d63', class: `pds-loader__label ${this.showLabel ? '' : 'pds-loader--hidden'}` }, h("slot", { key: '423a30358e6f662a0b80cef445c4a20db3dd36f9', name: "label" }, "Loading..."))));
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
PdsLoader.style = PdsLoaderStyle0;
|
|
42
|
-
|
|
43
|
-
export { PdsLoader as pds_loader };
|
|
44
|
-
|
|
45
|
-
//# sourceMappingURL=pds-loader.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-loader.entry.js","mappings":";;AAAA,MAAM,YAAY,GAAG,svGAAsvG,CAAC;AAC5wG,wBAAe,YAAY;;MCUd,SAAS;;;QA2CZ,UAAK,GAAG;YACd,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE;gBAC3B,OAAO;oBACL,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE;oBACzB,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE;iBACzB,CAAC;aACH;SACF,CAAC;yBA9C2B,IAAI;yBAKH,KAAK;oBAWxB,IAAI;uBAKyB,SAAS;;IAEzC,UAAU;QAChB,MAAM,KAAK,GAA8B;YACvC,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,MAAM;SACX,CAAC;QAEF,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YACpB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACzB;aAAM;YACL,OAAO,IAAI,CAAC,IAAI,CAAC;SAClB;KACF;IAWD,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,KAAK,EAAE,cAAc,IAAI,CAAC,SAAS,GAAG,EAAE,GAAG,oBAAoB,EAAE,iBAAe,CAAC,IAAI,CAAC,SAAS,eAAa,IAAI,CAAC,SAAS,eAAY,QAAQ,IACjJ,IAAI,CAAC,OAAO,KAAK,SAAS,KACzB,4DAAK,KAAK,EAAC,qBAAqB,IAC9B,4DAAK,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,OAAO,EAAC,aAAa,EAAC,IAAI,EAAC,MAAM,IACzD,+DACE,uEAAgB,EAAE,EAAC,oBAAoB,IACrC,6DAAM,MAAM,EAAC,IAAI,kBAAc,GAAG,gBAAY,cAAc,GAAG,EAC/D,6DAAM,MAAM,EAAC,MAAM,kBAAc,KAAK,gBAAY,cAAc,GAAG,CACpD,EACjB,uEAAgB,EAAE,EAAC,mBAAmB,IACpC,6DAAM,MAAM,EAAC,IAAI,kBAAc,GAAG,gBAAY,cAAc,GAAG,EAC/D,6DAAM,MAAM,EAAC,MAAM,kBAAc,KAAK,gBAAY,cAAc,GAAG,CACpD,CACZ,EAEP,0DAAG,KAAK,EAAC,0BAA0B,IACjC,6DAAM,MAAM,EAAC,0BAA0B,EAAC,CAAC,EAAC,+BAA+B,GAAG,EAC5E,6DAAM,MAAM,EAAC,yBAAyB,EAAC,CAAC,EAAC,+BAA+B,GAAG,EAE3E,6DAAM,MAAM,EAAC,cAAc,oBAAgB,OAAO,EAAC,CAAC,EAAC,4BAA4B,GAAG,CAClF,CACA,CACF,CACP,EAEA,IAAI,CAAC,OAAO,KAAK,QAAQ,KACxB,4DAAK,KAAK,EAAC,oBAAoB,IAC7B,8DAAa,EACb,8DAAa,EACb,8DAAa,CACT,CACP,EAED,4DAAK,KAAK,EAAE,qBAAqB,IAAI,CAAC,SAAS,GAAG,EAAE,GAAG,oBAAoB,EAAE,IAC3E,6DAAM,IAAI,EAAC,OAAO,iBAAkB,CAChC,CACD,EACP;KACH;;;;;;","names":[],"sources":["src/components/pds-loader/pds-loader.scss?tag=pds-loader&encapsulation=shadow","src/components/pds-loader/pds-loader.tsx"],"sourcesContent":[":host {\n align-items: center;\n display: flex;\n flex-direction: column;\n gap: var(--pine-spacing-100);\n}\n\n:host(.pds-loader--hidden),\n.pds-loader--hidden {\n border-width: 0 ;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n// Default Loader\n.pds-loader--spinner svg {\n --color-background-spinner: var(--pine-color-blue-300);\n --number-spinner-timing: 2s;\n --number-spinner-path-timing: 1.5s;\n\n animation: rotate var(--number-spinner-timing) linear infinite;\n block-size: var(--sizing-spinner);\n color: var(--color-background-spinner);\n inline-size: var(--sizing-spinner);\n}\n\n.pds-loader__spinner-path {\n stroke-width: 8px;\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n// Typing Loader\n.pds-loader--typing {\n --border-radius-typing: var(--pine-border-radius-200);\n --border-radius-typing-dot: var(--pine-border-radius-round);\n\n --box-shadow-typing: var(--pine-box-shadow-sm);\n\n --color-background-typing-default: var(--pine-color-grey-200);\n --color-background-typing-dot-default: var(--pine-color-grey-500);\n\n --number-typing-timing: 1s;\n\n --opacity-typing-dot-default: 0.4;\n --opacity-typing-dot-active: 1;\n\n --sizing-typing-dot: calc(var(--pine-spacing-150) / 2);\n\n --spacing-typing-gap: var(--pine-spacing-050);\n --spacing-typing-margin-block: var(--pine-spacing-0);\n --spacing-typing-margin-inline: auto;\n --spacing-typing-padding-block: 15px;\n --spacing-typing-padding-inline: var(--pine-spacing-250);\n\n align-items: center;\n background-color: var(--color-background-typing-default);\n border-radius: var(--border-radius-typing);\n box-shadow: var(--box-shadow-typing);\n display: inline-flex;\n gap: var(--spacing-typing-gap);\n margin-block: var(--spacing-typing-margin-block);\n margin-inline: var(--spacing-typing-margin-inline);\n padding-block: var(--spacing-typing-padding-block);\n padding-inline: var(--spacing-typing-padding-inline);\n position: relative;\n\n span {\n background-color: var(--color-background-typing-dot-default);\n block-size: var(--sizing-typing-dot);\n border-radius: var(--border-radius-typing-dot);\n inline-size: var(--sizing-typing-dot);\n opacity: var(--opacity-typing-dot-default);\n\n @for $i from 1 through 3 {\n &:nth-of-type(#{$i}) {\n animation: var(--number-typing-timing) typing infinite ($i * 0.3333s);\n }\n }\n }\n}\n\n@keyframes typing {\n 50% {\n opacity: var(--opacity-typing-dot-active);\n transform: scale(1.2);\n }\n}\n\n.pds-loader__label {\n --typography-label-default: var(--pine-font-weight-semi-bold) var(--pine-font-size-100)/var(--pine-line-height-150) var(--pine-font-family-circular);\n\n font: var(--typography-label-default);\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\n\n/**\n * @slot label - Default slot for Loader label text.\n */\n\n@Component({\n tag: 'pds-loader',\n styleUrl: 'pds-loader.scss',\n shadow: true,\n})\nexport class PdsLoader {\n /**\n * If false, the loader will be hidden.\n */\n @Prop() isLoading: boolean = true;\n\n /**\n * Determines whether the loader should display a label.\n */\n @Prop() showLabel?: boolean = false;\n\n /**\n * Sets the size of the spinner loader. Value can be preset or custom.\n */\n @Prop({ reflect: true }) size?:\n | 'xs' // 24px\n | 'sm' // 32px\n | 'md' // 48px\n | 'lg' // 64px\n | 'xl' // 80px\n | string = 'md';\n\n /**\n * Determines the type of loader.\n */\n @Prop() variant: 'spinner' | 'typing' = 'spinner';\n\n private loaderSize() {\n const sizes: { [key: string]: string } = {\n xs: '24px',\n sm: '32px',\n md: '48px',\n lg: '64px',\n xl: '80px',\n };\n\n if (sizes[this.size]) {\n return sizes[this.size];\n } else {\n return this.size;\n }\n }\n\n private style = () => {\n if (this.size !== undefined) {\n return {\n height: this.loaderSize(),\n width: this.loaderSize(),\n };\n }\n };\n\n render() {\n return (\n <Host class={`pds-loader ${this.isLoading ? '' : 'pds-loader--hidden'}`} aria-hidden={!this.isLoading} aria-busy={this.isLoading} aria-live=\"polite\">\n {this.variant === 'spinner' && (\n <div class=\"pds-loader--spinner\">\n <svg style={this.style()} viewBox=\"0 0 200 200\" fill=\"none\">\n <defs>\n <linearGradient id=\"spinner-secondHalf\">\n <stop offset=\"0%\" stop-opacity=\"0\" stop-color=\"currentColor\" />\n <stop offset=\"100%\" stop-opacity=\"0.5\" stop-color=\"currentColor\" />\n </linearGradient>\n <linearGradient id=\"spinner-firstHalf\">\n <stop offset=\"0%\" stop-opacity=\"1\" stop-color=\"currentColor\" />\n <stop offset=\"100%\" stop-opacity=\"0.5\" stop-color=\"currentColor\" />\n </linearGradient>\n </defs>\n\n <g class=\"pds-loader__spinner-path\">\n <path stroke=\"url(#spinner-secondHalf)\" d=\"M 4 100 A 96 96 0 0 1 196 100\" />\n <path stroke=\"url(#spinner-firstHalf)\" d=\"M 196 100 A 96 96 0 0 1 4 100\" />\n\n <path stroke=\"currentColor\" stroke-linecap=\"round\" d=\"M 4 100 A 96 96 0 0 1 4 98\" />\n </g>\n </svg>\n </div>\n )}\n\n {this.variant === 'typing' && (\n <div class=\"pds-loader--typing\">\n <span></span>\n <span></span>\n <span></span>\n </div>\n )}\n\n <div class={`pds-loader__label ${this.showLabel ? '' : 'pds-loader--hidden'}`}>\n <slot name=\"label\">Loading...</slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-ca411ad2.js';
|
|
2
|
-
|
|
3
|
-
const pdsProgressCss = ":host{--color-progress-fill:var(--pine-color-blue-300);--sizing-progress-bar-height:8px;--sizing-progress-bar-width:100%;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:var(--sizing-progress-bar-width)}@-webkit-keyframes progressBar{0%{width:0}100%{width:var(--sizing-progress-bar-width)}}@keyframes progressBar{0%{width:0}100%{width:var(--sizing-progress-bar-width)}}.pds-progress{--border-radius:var(--pine-border-radius-050);--color-progress-bar-background:var(--pine-color-grey-300);-ms-flex-align:center;align-items:center;background-color:var(--color-progress-bar-background);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:var(--sizing-progress-bar-height);position:relative;width:100%}:host(.is-animated) progress,:host(.is-animated) progress::-webkit-progress-bar{-webkit-animation:progressBar 3s ease;animation:progressBar 3s ease;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}progress,progress::-webkit-progress-bar{background-color:transparent;border:0;height:var(--sizing-progress-bar-height);width:100%}progress::-webkit-progress-value{--border-radius:var(--pine-border-radius-050);--color-background:var(--pine-color-blue-300);background-color:var(--color-progress-fill, var(--color-background));border-radius:var(--border-radius)}progress::-moz-progress-bar{--color-background:var(--pine-color-blue-300);--border-radius:var(--pine-border-radius-050);background-color:var(--color-progress-fill, var(--color-background));border-radius:var(--border-radius)}.pds-progress__label{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.pds-progress__percentage{--font-size:var(--pine-font-size-087);--font-weight:var(--pine-font-weight-medium);--line-height:var(--pine-line-height-150);--spacing-inline-start-margin:var(--pine-spacing-300);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);-webkit-margin-start:calc(var(--spacing-inline-start-margin) / 2);margin-inline-start:calc(var(--spacing-inline-start-margin) / 2)}";
|
|
4
|
-
const PdsProgressStyle0 = pdsProgressCss;
|
|
5
|
-
|
|
6
|
-
const PdsProgress = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.animated = false;
|
|
10
|
-
this.componentId = undefined;
|
|
11
|
-
this.fillColor = undefined;
|
|
12
|
-
this.label = undefined;
|
|
13
|
-
this.percent = 0;
|
|
14
|
-
this.showPercent = false;
|
|
15
|
-
}
|
|
16
|
-
render() {
|
|
17
|
-
return (h(Host, { key: 'a11c3d67af0621981d2f13ad673e11999926b3c1', class: this.animated ? { 'is-animated': this.animated } : '' }, h("div", { key: 'bb480c5ce1fc9c56fce1022a26783d5729eb30dc', class: "pds-progress" }, h("label", { key: '02fec27f268262889b514aef4d8344bbb9a9484c', class: "pds-progress__label", htmlFor: this.componentId }, this.label), h("progress", { key: '122d2639d7630f28fd98adf9bc003eeed6c9ebef', id: this.componentId, max: "100", style: this.fillColor ? { '--color-progress-fill': this.fillColor } : {}, value: this.percent })), this.showPercent && h("div", { key: 'ba7262e0627a2848b3da03a9a32882510bf2628c', class: "pds-progress__percentage" }, this.percent, "%")));
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
PdsProgress.style = PdsProgressStyle0;
|
|
21
|
-
|
|
22
|
-
export { PdsProgress as pds_progress };
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=pds-progress.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-progress.entry.js","mappings":";;AAAA,MAAM,cAAc,GAAG,gmEAAgmE,CAAC;AACxnE,0BAAe,cAAc;;MCMhB,WAAW;;;wBAKH,KAAK;;;;uBAsBN,CAAC;2BAMG,KAAK;;IAE3B,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,GAAG,EAAE,aAAa,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,IAChE,4DAAK,KAAK,EAAC,cAAc,IACvB,8DAAO,KAAK,EAAC,qBAAqB,EAAC,OAAO,EAAE,IAAI,CAAC,WAAW,IACzD,IAAI,CAAC,KAAK,CACL,EACR,iEACE,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,GAAG,EAAC,KAAK,EACT,KAAK,EAAE,IAAI,CAAC,SAAS,GAAG,EAAE,uBAAuB,EAAE,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE,EACxE,KAAK,EAAE,IAAI,CAAC,OAAO,GAEV,CACP,EACL,IAAI,CAAC,WAAW,IAAI,4DAAK,KAAK,EAAC,0BAA0B,IAAE,IAAI,CAAC,OAAO,MAAQ,CAC3E,EACP;KACH;;;;;;","names":[],"sources":["src/components/pds-progress/pds-progress.scss?tag=pds-progress&encapsulation=shadow","src/components/pds-progress/pds-progress.tsx"],"sourcesContent":[":host {\n --color-progress-fill: var(--pine-color-blue-300);\n\n --sizing-progress-bar-height: 8px;\n --sizing-progress-bar-width: 100%;\n\n align-items: center;\n display: flex;\n width: var(--sizing-progress-bar-width);\n}\n\n@keyframes progressBar {\n 0% {\n width: 0\n }\n\n 100% {\n width: var(--sizing-progress-bar-width);\n }\n}\n\n.pds-progress {\n --border-radius: var(--pine-border-radius-050);\n --color-progress-bar-background: var(--pine-color-grey-300);\n\n align-items: center;\n background-color: var(--color-progress-bar-background);\n border-radius: var(--border-radius);\n display: flex;\n flex-direction: row;\n height: var(--sizing-progress-bar-height);\n position: relative;\n width: 100%;\n}\n\n:host(.is-animated) progress,\n:host(.is-animated) progress::-webkit-progress-bar {\n animation: progressBar 3s ease;\n animation-fill-mode: forwards;\n}\n\nprogress,\nprogress::-webkit-progress-bar {\n background-color: transparent;\n border: 0;\n height: var(--sizing-progress-bar-height);\n width: 100%;\n}\n\nprogress::-webkit-progress-value {\n --border-radius: var(--pine-border-radius-050);\n --color-background: var(--pine-color-blue-300);\n\n background-color: var(--color-progress-fill, var(--color-background));\n border-radius: var(--border-radius);\n}\n\nprogress::-moz-progress-bar {\n --color-background: var(--pine-color-blue-300);\n --border-radius: var(--pine-border-radius-050);\n\n background-color: var(--color-progress-fill, var(--color-background));\n border-radius: var(--border-radius);\n}\n\n.pds-progress__label {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.pds-progress__percentage {\n --font-size: var(--pine-font-size-087);\n --font-weight: var(--pine-font-weight-medium);\n --line-height: var(--pine-line-height-150);\n --spacing-inline-start-margin: var(--pine-spacing-300);\n\n font-size: var(--font-size);\n font-weight: var(--font-weight);\n line-height: var(--line-height);\n margin-inline-start: calc(var(--spacing-inline-start-margin) / 2);\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'pds-progress',\n styleUrl: 'pds-progress.scss',\n shadow: true,\n})\nexport class PdsProgress {\n /**\n * Determines whether or not progress is animated.\n * @defaultValue false\n */\n @Prop() animated = false;\n\n /**\n * A unique identifier used for the underlying component `id` attribute and the label `for` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Sets the progress fill color. Accepts a color token or a [valid color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).\n * @defaultValue 'var(--pine-color-blue-300)'\n */\n @Prop() fillColor: string;\n\n /**\n * String used for label text. Label is visually hidden but required for better accessibility.\n */\n @Prop() label!: string;\n\n /**\n * Sets the progress fill pecentage and visually displayed when `show-percentage=true`.\n * @defaultValue 0\n */\n @Prop() percent = 0;\n\n /**\n * Determines whether or not the percent value should be displayed as text.\n * @defaultValue false\n */\n @Prop() showPercent = false;\n\n render() {\n return (\n <Host class={this.animated ? { 'is-animated': this.animated } : ''}>\n <div class=\"pds-progress\">\n <label class=\"pds-progress__label\" htmlFor={this.componentId}>\n {this.label}\n </label>\n <progress\n id={this.componentId}\n max=\"100\"\n style={this.fillColor ? { '--color-progress-fill': this.fillColor } : {}}\n value={this.percent}\n >\n </progress>\n </div>\n {this.showPercent && <div class=\"pds-progress__percentage\">{this.percent}%</div>}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-radio.entry.js","mappings":";;;AAAA,MAAM,WAAW,GAAG,skGAAskG,CAAC;AAC3lG,uBAAe,WAAW;;MCQb,QAAQ;;;;QA4DX,sBAAiB,GAAG,CAAC,CAAQ;YACnC,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,OAAO;aACR;YAED,MAAM,MAAM,GAAG,CAAC,CAAC,MAA0B,CAAC;YAC5C,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC;YAEjC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACrC,CAAA;uBAhEiB,KAAK;wBAMJ,KAAK;;uBAWN,KAAK;;;;;wBA0BJ,KAAK;;;IAuBhB,UAAU;QAChB,MAAM,UAAU,GAAG,EAAE,CAAC;QAEtB,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SAC/B;QACD,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAChC;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC9B;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAC5B,kFACoB,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,kBACzE,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,SAAS,EAC/C,IAAI,EAAC,OAAO,EACZ,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,iBAAiB,GAChC,EACF,EAAC,QAAQ,qDAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI,EACxD,IAAI,CAAC,aAAa;YACjB,4DACE,KAAK,EAAE,oBAAoB,EAC3B,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,IAExC,IAAI,CAAC,aAAa,CACf,EAEP,IAAI,CAAC,YAAY;YAChB,4DACE,KAAK,EAAE,8CAA8C,EACrD,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,eAC9B,WAAW,IAEpB,IAAI,CAAC,YAAY,CACd,CAEH,EACP;KACH;;;;;;","names":[],"sources":["src/components/pds-radio/pds-radio.scss?tag=pds-radio&encapsulation=scoped","src/components/pds-radio/pds-radio.tsx"],"sourcesContent":[":host {\n --border-interactive-default: var(--pine-border-width-thin) solid var( --pine-color-grey-400);\n --border-radius: 50%;\n\n --box-shadow-focus: 0 0 0 2px var(--color-focus);\n --box-shadow-focus-error: 0 0 0 2px var(--color-invalid-focus);\n\n --color: var(--pine-color-charcoal-200);\n --color-background: var(--pine-color-white);\n --color-background-hover: var(--pine-color-grey-100);\n --color-background-disabled: var(--pine-color-grey-200);\n --color-border-hover: var(--pine-color-grey-500);\n --color-border-disabled: var(--pine-color-grey-300);\n --color-checked: var(--pine-color-charcoal-500);\n --color-disabled: var(---pine-color-grey-500);\n --color-focus: var(--pine-color-blue-200);\n --color-invalid: var(--pine-color-red-300);\n --color-invalid-focus: var(--pine-color-red-200);\n\n --font-size: var(--pine-font-size-087);\n\n --sizing-check-size: 6px;\n --sizing-input-size: 16px;\n --sizing-margin-block-start: 6px;\n\n align-items: center;\n display: flex;\n flex-flow: row wrap;\n}\n\n:host(.is-invalid) {\n input {\n border-color: var(--color-invalid);\n\n &:checked {\n background: var(--color-invalid);\n }\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus-error);\n outline: none;\n }\n }\n\n label,\n .pds-radio__message--error {\n color: var(--color-invalid);\n }\n}\n\ninput {\n appearance: none;\n border: var(--border-interactive-default);\n border-radius: var(--border-radius);\n height: var(--sizing-input-size);\n margin: 0;\n position: relative;\n width: var(--sizing-input-size);\n\n &:hover {\n background: var(--color-background-hover);\n border-color: var(--color-border-hover);\n }\n\n &:checked {\n background: var(--color-checked);\n border-color: var(--color-checked);\n\n &::after {\n background: var(--color-background);\n border-radius: 50%;\n content: \"\";\n display: block;\n height: var(--sizing-check-size);\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: var(--sizing-check-size);\n }\n }\n\n &:disabled {\n background: var(--color-background-disabled);\n border-color: var(--color-border-disabled);\n cursor: not-allowed;\n\n &:checked {\n background: var(--color-disabled);\n border-color: var(--color-border-disabled);\n\n &::after {\n border-color: var(--color-border-disabled);\n }\n }\n\n + label {\n color: var(--color-border-hover);\n cursor: not-allowed;\n }\n\n ~ .pds-radio__message {\n color: var(--color-disabled);\n }\n }\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus);\n outline: none;\n }\n\n}\n\nlabel {\n margin-inline-start: 10px;\n}\n\n.pds-radio__message {\n color: var(--color);\n font-size: var(--font-size);\n margin-block-start: var(--sizing-margin-block-start);\n margin-inline-start: 26px;\n width: 100%;\n}\n","import { Component, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-radio',\n styleUrl: 'pds-radio.scss',\n scoped: true,\n})\nexport class PdsRadio {\n /**\n * Determines whether or not the radio is checked.\n * @defaultValue false\n */\n @Prop() checked = false;\n\n /**\n * Determines whether or not the radio is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * Displays message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Determines whether or not the radio is invalid.\n * @defaultValue false\n */\n @Prop() invalid = false;\n\n /**\n * A unique identifier used for the underlying component `id` attribute and the label `for` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * String used for label text next to radio.\n */\n @Prop() label: string;\n\n /**\n * String used for helper message below radio.\n */\n @Prop() helperMessage: string;\n\n /**\n * String used for radio `name` attribute.\n */\n @Prop() name: string;\n\n /**\n * Determines whether or not the radio is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * The value of the radio that is submitted with a form.\n */\n @Prop() value: string;\n\n /**\n * Emits a boolean indicating whether the checkbox is currently checked or unchecked.\n */\n @Event() pdsRadioChange: EventEmitter<boolean>;\n\n private handleRadioChange = (e: Event) => {\n if (this.disabled) {\n return;\n }\n\n const target = e.target as HTMLInputElement;\n const isChecked = target.checked;\n\n this.pdsRadioChange.emit(isChecked);\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) {\n classNames.push('is-invalid');\n }\n if (this.disabled) {\n classNames.push('is-disabled');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host class={this.classNames()}>\n <input\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n type=\"radio\"\n id={this.componentId}\n name={this.name}\n value={this.value}\n checked={this.checked}\n required={this.required}\n disabled={this.disabled}\n onChange={this.handleRadioChange}\n />\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n {this.helperMessage &&\n <div\n class={'pds-radio__message'}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-radio__message pds-radio__message--error`}\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n {this.errorMessage}\n </div>\n }\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-ca411ad2.js';
|
|
2
|
-
|
|
3
|
-
const pdsRowCss = ":host{--border-default:var(--pine-border-width-thin) solid var(--pine-color-grey-300);--row-gap-y:calc(var(--pine-spacing-250) / 2);--row-gap-x:10px;display:block;-webkit-margin-after:calc(var(--row-gap-y) * -1);margin-block-end:calc(var(--row-gap-y) * -1);-webkit-margin-before:calc(var(--row-gap-y) * -1);margin-block-start:calc(var(--row-gap-y) * -1);-webkit-margin-end:calc(var(--row-gap-x) * -0.5);margin-inline-end:calc(var(--row-gap-x) * -0.5);-webkit-margin-start:calc(var(--row-gap-x) * -0.5);margin-inline-start:calc(var(--row-gap-x) * -0.5)}.pds-row{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-margin-after:calc(var(--row-gap-y) * -1);margin-block-end:calc(var(--row-gap-y) * -1);-webkit-margin-before:calc(var(--row-gap-y) * -1);margin-block-start:calc(var(--row-gap-y) * -1);-webkit-margin-end:calc(var(--row-gap-x) * -1);margin-inline-end:calc(var(--row-gap-x) * -1);-webkit-margin-start:calc(var(--row-gap-x) * -1);margin-inline-start:calc(var(--row-gap-x) * -1)}.pds-row>*{-webkit-padding-after:calc(var(--row-gap-y));padding-block-end:calc(var(--row-gap-y));-webkit-padding-before:calc(var(--row-gap-y));padding-block-start:calc(var(--row-gap-y));-webkit-padding-end:calc(var(--row-gap-x));padding-inline-end:calc(var(--row-gap-x));-webkit-padding-start:calc(var(--row-gap-x));padding-inline-start:calc(var(--row-gap-x))}.pds-row--no-wrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.pds-row--border{border:var(--border-default)}.pds-justify-content-start{-ms-flex-pack:start;justify-content:start}.pds-justify-content-center{-ms-flex-pack:center;justify-content:center}.pds-justify-content-end{-ms-flex-pack:end;justify-content:end}.pds-justify-content-space-between{-ms-flex-pack:justify;justify-content:space-between}.pds-justify-content-space-around{-ms-flex-pack:distribute;justify-content:space-around}.pds-justify-content-space-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.pds-align-items-start{-ms-flex-align:start;align-items:start}.pds-align-items-center{-ms-flex-align:center;align-items:center}.pds-align-items-end{-ms-flex-align:end;align-items:end}.pds-align-items-stretch{-ms-flex-align:stretch;align-items:stretch}.pds-align-items-baseline{-ms-flex-align:baseline;align-items:baseline}";
|
|
4
|
-
const PdsRowStyle0 = pdsRowCss;
|
|
5
|
-
|
|
6
|
-
const PdsRow = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.colGapMap = {
|
|
10
|
-
none: '0',
|
|
11
|
-
xxs: '.25rem',
|
|
12
|
-
xs: '.5rem',
|
|
13
|
-
sm: '1rem',
|
|
14
|
-
md: '1.5rem',
|
|
15
|
-
lg: '2.25rem',
|
|
16
|
-
xl: '3rem',
|
|
17
|
-
xxl: '4rem',
|
|
18
|
-
};
|
|
19
|
-
this.alignItems = undefined;
|
|
20
|
-
this.border = false;
|
|
21
|
-
this.colGap = undefined;
|
|
22
|
-
this.componentId = undefined;
|
|
23
|
-
this.justifyContent = undefined;
|
|
24
|
-
this.minHeight = undefined;
|
|
25
|
-
this.noWrap = false;
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
const rowClasses = `
|
|
29
|
-
${this.alignItems !== undefined && this.alignItems.trim() !== '' ? `pds-align-items-${this.alignItems}` : ''}
|
|
30
|
-
${this.border ? 'pds-row--border' : ''}
|
|
31
|
-
${this.justifyContent !== undefined && this.justifyContent.trim() !== '' ? `pds-justify-content-${this.justifyContent}` : ''}
|
|
32
|
-
${this.noWrap ? 'pds-row--no-wrap' : ''}
|
|
33
|
-
`;
|
|
34
|
-
const rowInlineStyles = Object.assign(Object.assign({}, (this.colGap && {
|
|
35
|
-
'--row-gap-x': this.colGap !== undefined && this.colGap.trim() !== '' ? this.colGapMap[this.colGap] : '',
|
|
36
|
-
'--row-gap-y': this.colGap !== undefined && this.colGap.trim() !== '' ? this.colGapMap[this.colGap] : '',
|
|
37
|
-
})), (this.minHeight && {
|
|
38
|
-
'min-height': this.minHeight,
|
|
39
|
-
}));
|
|
40
|
-
return h(Host, { key: 'b764491968a34ae8f1e3e329111cb4ba0887bdef', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
PdsRow.style = PdsRowStyle0;
|
|
44
|
-
|
|
45
|
-
export { PdsRow as pds_row };
|
|
46
|
-
|
|
47
|
-
//# sourceMappingURL=pds-row.entry.js.map
|