@pine-ds/core 2.14.0-mercury.0 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/index.d.ts +6 -0
- package/components/index.js +3 -0
- package/components/index.js.map +1 -1
- package/components/index2.js +12 -11
- package/components/index2.js.map +1 -1
- package/components/pds-accordion.js +7 -4
- package/components/pds-accordion.js.map +1 -1
- package/components/pds-avatar.js +9 -6
- package/components/pds-avatar.js.map +1 -1
- package/components/pds-box.js +1 -1
- package/components/pds-box.js.map +1 -1
- package/components/pds-button2.js +11 -6
- package/components/pds-button2.js.map +1 -1
- package/components/pds-checkbox2.js +17 -7
- package/components/pds-checkbox2.js.map +1 -1
- package/components/pds-chip.js +10 -7
- package/components/pds-chip.js.map +1 -1
- package/components/pds-copytext.js +7 -4
- package/components/pds-copytext.js.map +1 -1
- package/components/pds-divider.js +7 -4
- package/components/pds-divider.js.map +1 -1
- package/components/pds-image.js +8 -5
- package/components/pds-image.js.map +1 -1
- package/components/pds-input.js +19 -7
- package/components/pds-input.js.map +1 -1
- package/components/pds-link.js +8 -5
- package/components/pds-link.js.map +1 -1
- package/components/pds-loader.js +7 -4
- package/components/pds-loader.js.map +1 -1
- package/components/pds-popover.d.ts +11 -0
- package/components/pds-popover.js +94 -0
- package/components/pds-popover.js.map +1 -0
- package/components/pds-progress.js +7 -4
- package/components/pds-progress.js.map +1 -1
- package/components/pds-radio.js +21 -11
- package/components/pds-radio.js.map +1 -1
- package/components/pds-row.js +2 -2
- package/components/pds-row.js.map +1 -1
- package/components/pds-select.d.ts +11 -0
- package/components/pds-select.js +165 -0
- package/components/pds-select.js.map +1 -0
- package/components/pds-sortable-item.js +1 -1
- package/components/pds-sortable.js +6 -3
- package/components/pds-sortable.js.map +1 -1
- package/components/pds-switch.js +20 -13
- package/components/pds-switch.js.map +1 -1
- package/components/pds-tab.js +4 -4
- package/components/pds-tab.js.map +1 -1
- package/components/pds-table-body.js +6 -3
- package/components/pds-table-body.js.map +1 -1
- package/components/pds-table-cell2.js +8 -5
- package/components/pds-table-cell2.js.map +1 -1
- package/components/pds-table-head-cell2.js +9 -6
- package/components/pds-table-head-cell2.js.map +1 -1
- package/components/pds-table-head.js +7 -4
- package/components/pds-table-head.js.map +1 -1
- package/components/pds-table-row.js +14 -5
- package/components/pds-table-row.js.map +1 -1
- package/components/pds-table.js +6 -3
- package/components/pds-table.js.map +1 -1
- package/components/pds-tabpanel.js +1 -1
- package/components/pds-tabs.js +6 -3
- package/components/pds-tabs.js.map +1 -1
- package/components/pds-text.d.ts +11 -0
- package/components/pds-text.js +61 -0
- package/components/pds-text.js.map +1 -0
- package/components/pds-textarea.js +21 -9
- package/components/pds-textarea.js.map +1 -1
- package/components/pds-tooltip.js +11 -10
- package/components/pds-tooltip.js.map +1 -1
- package/dist/cjs/index-3ad62856.js +26 -0
- package/dist/cjs/index-3ad62856.js.map +1 -0
- package/dist/cjs/{index-d4ec6246.js → index-b7d9268e.js} +17 -5
- package/dist/cjs/index-b7d9268e.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/pds-accordion.cjs.entry.js +9 -6
- package/dist/cjs/pds-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-avatar.cjs.entry.js +11 -8
- package/dist/cjs/pds-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-box.cjs.entry.js +2 -2
- package/dist/cjs/pds-box.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-button.cjs.entry.js +11 -6
- package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-checkbox.cjs.entry.js +12 -8
- package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-chip.cjs.entry.js +11 -8
- package/dist/cjs/pds-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-copytext.cjs.entry.js +9 -6
- package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-divider.cjs.entry.js +8 -5
- package/dist/cjs/pds-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-icon.cjs.entry.js +1 -1
- package/dist/cjs/pds-image.cjs.entry.js +9 -6
- package/dist/cjs/pds-image.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-input.cjs.entry.js +13 -8
- package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
- package/dist/cjs/{pds-label-73bb5bd3.js → pds-label-05f073ea.js} +2 -2
- package/dist/cjs/{pds-label-73bb5bd3.js.map → pds-label-05f073ea.js.map} +1 -1
- package/dist/cjs/pds-link.cjs.entry.js +10 -7
- package/dist/cjs/pds-link.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-loader.cjs.entry.js +8 -5
- package/dist/cjs/pds-loader.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-popover.cjs.entry.js +72 -0
- package/dist/cjs/pds-popover.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-progress.cjs.entry.js +8 -5
- package/dist/cjs/pds-progress.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-radio.cjs.entry.js +14 -10
- package/dist/cjs/pds-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-row.cjs.entry.js +3 -3
- package/dist/cjs/pds-row.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-select.cjs.entry.js +131 -0
- package/dist/cjs/pds-select.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -3
- package/dist/cjs/pds-sortable.cjs.entry.js +7 -4
- package/dist/cjs/pds-sortable.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-switch.cjs.entry.js +14 -12
- package/dist/cjs/pds-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-tab.cjs.entry.js +5 -5
- package/dist/cjs/pds-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-body.cjs.entry.js +7 -4
- package/dist/cjs/pds-table-body.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-cell.cjs.entry.js +9 -6
- package/dist/cjs/pds-table-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +10 -7
- package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-head.cjs.entry.js +8 -5
- package/dist/cjs/pds-table-head.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-row.cjs.entry.js +7 -4
- package/dist/cjs/pds-table-row.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table.cjs.entry.js +7 -4
- package/dist/cjs/pds-table.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -2
- package/dist/cjs/pds-tabs.cjs.entry.js +7 -4
- package/dist/cjs/pds-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-text.cjs.entry.js +39 -0
- package/dist/cjs/pds-text.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-textarea.cjs.entry.js +15 -10
- package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-tooltip.cjs.entry.js +10 -10
- package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/pine-core.cjs.js +3 -3
- package/dist/cjs/pine-core.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +5 -2
- package/dist/collection/components/pds-accordion/pds-accordion.css +4 -3
- package/dist/collection/components/pds-accordion/pds-accordion.js +4 -3
- package/dist/collection/components/pds-accordion/pds-accordion.js.map +1 -1
- package/dist/collection/components/pds-accordion/stories/pds-accordion.stories.js +11 -15
- package/dist/collection/components/pds-avatar/pds-avatar.css +1 -1
- package/dist/collection/components/pds-avatar/pds-avatar.js +5 -5
- package/dist/collection/components/pds-avatar/pds-avatar.js.map +1 -1
- package/dist/collection/components/pds-box/pds-box.css +20 -4
- package/dist/collection/components/pds-button/pds-button.css +19 -13
- package/dist/collection/components/pds-button/pds-button.js +38 -13
- package/dist/collection/components/pds-button/pds-button.js.map +1 -1
- package/dist/collection/components/pds-button/stories/pds-button.stories.js +8 -1
- package/dist/collection/components/pds-checkbox/pds-checkbox.css +35 -14
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +6 -5
- package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -1
- package/dist/collection/components/pds-chip/pds-chip.css +63 -35
- package/dist/collection/components/pds-chip/pds-chip.js +28 -28
- package/dist/collection/components/pds-chip/pds-chip.js.map +1 -1
- package/dist/collection/components/pds-copytext/pds-copytext.css +7 -5
- package/dist/collection/components/pds-copytext/pds-copytext.js +6 -6
- package/dist/collection/components/pds-copytext/pds-copytext.js.map +1 -1
- package/dist/collection/components/pds-divider/pds-divider.css +1 -1
- package/dist/collection/components/pds-divider/pds-divider.js +4 -4
- package/dist/collection/components/pds-divider/pds-divider.js.map +1 -1
- package/dist/collection/components/pds-icon/stories/pds-icon.stories.js +1 -1
- package/dist/collection/components/pds-image/pds-image.css +0 -2
- package/dist/collection/components/pds-image/pds-image.js +15 -9
- package/dist/collection/components/pds-image/pds-image.js.map +1 -1
- package/dist/collection/components/pds-image/stories/pds-image.stories.js +7 -5
- package/dist/collection/components/pds-input/pds-input.css +40 -13
- package/dist/collection/components/pds-input/pds-input.js +29 -10
- package/dist/collection/components/pds-input/pds-input.js.map +1 -1
- package/dist/collection/components/pds-input/stories/pds-input.stories.js +10 -0
- package/dist/collection/components/pds-link/pds-link.css +14 -11
- package/dist/collection/components/pds-link/pds-link.js +14 -11
- package/dist/collection/components/pds-link/pds-link.js.map +1 -1
- package/dist/collection/components/pds-loader/pds-loader.css +4 -4
- package/dist/collection/components/pds-loader/pds-loader.js +3 -3
- package/dist/collection/components/pds-loader/pds-loader.js.map +1 -1
- package/dist/collection/components/pds-popover/pds-popover.css +51 -0
- package/dist/collection/components/pds-popover/pds-popover.js +216 -0
- package/dist/collection/components/pds-popover/pds-popover.js.map +1 -0
- package/dist/collection/components/pds-popover/stories/pds-popover.stories.js +45 -0
- package/dist/collection/components/pds-progress/pds-progress.css +4 -8
- package/dist/collection/components/pds-progress/pds-progress.js +3 -3
- package/dist/collection/components/pds-progress/pds-progress.js.map +1 -1
- package/dist/collection/components/pds-radio/pds-radio.css +44 -26
- package/dist/collection/components/pds-radio/pds-radio.js +43 -42
- package/dist/collection/components/pds-radio/pds-radio.js.map +1 -1
- package/dist/collection/components/pds-row/pds-row.css +7 -5
- package/dist/collection/components/pds-row/pds-row.js +1 -1
- package/dist/collection/components/pds-select/pds-select.css +126 -0
- package/dist/collection/components/pds-select/pds-select.js +360 -0
- package/dist/collection/components/pds-select/pds-select.js.map +1 -0
- package/dist/collection/components/pds-select/stories/pds-select.stories.js +153 -0
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable.js +3 -3
- package/dist/collection/components/pds-sortable/pds-sortable.js.map +1 -1
- package/dist/collection/components/pds-switch/pds-switch.css +28 -20
- package/dist/collection/components/pds-switch/pds-switch.js +19 -41
- package/dist/collection/components/pds-switch/pds-switch.js.map +1 -1
- package/dist/collection/components/pds-switch/stories/pds-switch.stories.js +2 -15
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +3 -3
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js.map +1 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.css +6 -5
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +4 -4
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js.map +1 -1
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.css +1 -1
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +9 -6
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js.map +1 -1
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.css +7 -11
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +4 -4
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js.map +1 -1
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +5 -5
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js.map +1 -1
- package/dist/collection/components/pds-table/pds-table.js +6 -6
- package/dist/collection/components/pds-table/pds-table.js.map +1 -1
- package/dist/collection/components/pds-table/stories/pds-table.stories.js +1 -1
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +5 -16
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
- package/dist/collection/components/pds-tabs/pds-tab/stories/pds-tab.stories.js +19 -0
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
- package/dist/collection/components/pds-tabs/pds-tabpanel/stories/pds-tabpanel.stories.js +19 -0
- package/dist/collection/components/pds-tabs/pds-tabs.js +3 -3
- package/dist/collection/components/pds-tabs/pds-tabs.js.map +1 -1
- package/dist/collection/components/pds-tabs/stories/pds-tabs.stories.js +18 -18
- package/dist/collection/components/pds-text/pds-text.css +231 -0
- package/dist/collection/components/pds-text/pds-text.js +162 -0
- package/dist/collection/components/pds-text/pds-text.js.map +1 -0
- package/dist/collection/components/pds-text/stories/pds-text.stories.js +119 -0
- package/dist/collection/components/pds-textarea/pds-textarea.css +29 -38
- package/dist/collection/components/pds-textarea/pds-textarea.js +38 -19
- package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -1
- package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +22 -11
- package/dist/collection/components/pds-tooltip/pds-tooltip.css +3 -6
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +26 -39
- package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -1
- package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +15 -15
- package/dist/collection/global/styles/base.css +113 -0
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/docs.json +1267 -299
- package/dist/esm/index-56752d25.js +15 -0
- package/dist/esm/index-56752d25.js.map +1 -0
- package/dist/esm/{index-9f0e742f.js → index-b1696fed.js} +17 -5
- package/dist/esm/index-b1696fed.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/pds-accordion.entry.js +9 -6
- package/dist/esm/pds-accordion.entry.js.map +1 -1
- package/dist/esm/pds-avatar.entry.js +11 -8
- package/dist/esm/pds-avatar.entry.js.map +1 -1
- package/dist/esm/pds-box.entry.js +2 -2
- package/dist/esm/pds-box.entry.js.map +1 -1
- package/dist/esm/pds-button.entry.js +11 -6
- package/dist/esm/pds-button.entry.js.map +1 -1
- package/dist/esm/pds-checkbox.entry.js +12 -8
- package/dist/esm/pds-checkbox.entry.js.map +1 -1
- package/dist/esm/pds-chip.entry.js +11 -8
- package/dist/esm/pds-chip.entry.js.map +1 -1
- package/dist/esm/pds-copytext.entry.js +9 -6
- package/dist/esm/pds-copytext.entry.js.map +1 -1
- package/dist/esm/pds-divider.entry.js +8 -5
- package/dist/esm/pds-divider.entry.js.map +1 -1
- package/dist/esm/pds-icon.entry.js +1 -1
- package/dist/esm/pds-image.entry.js +9 -6
- package/dist/esm/pds-image.entry.js.map +1 -1
- package/dist/esm/pds-input.entry.js +13 -8
- package/dist/esm/pds-input.entry.js.map +1 -1
- package/dist/esm/{pds-label-c806218b.js → pds-label-62469596.js} +2 -2
- package/dist/esm/{pds-label-c806218b.js.map → pds-label-62469596.js.map} +1 -1
- package/dist/esm/pds-link.entry.js +10 -7
- package/dist/esm/pds-link.entry.js.map +1 -1
- package/dist/esm/pds-loader.entry.js +8 -5
- package/dist/esm/pds-loader.entry.js.map +1 -1
- package/dist/esm/pds-popover.entry.js +68 -0
- package/dist/esm/pds-popover.entry.js.map +1 -0
- package/dist/esm/pds-progress.entry.js +8 -5
- package/dist/esm/pds-progress.entry.js.map +1 -1
- package/dist/esm/pds-radio.entry.js +14 -10
- package/dist/esm/pds-radio.entry.js.map +1 -1
- package/dist/esm/pds-row.entry.js +3 -3
- package/dist/esm/pds-row.entry.js.map +1 -1
- package/dist/esm/pds-select.entry.js +127 -0
- package/dist/esm/pds-select.entry.js.map +1 -0
- package/dist/esm/pds-sortable-item.entry.js +3 -3
- package/dist/esm/pds-sortable.entry.js +7 -4
- package/dist/esm/pds-sortable.entry.js.map +1 -1
- package/dist/esm/pds-switch.entry.js +14 -12
- package/dist/esm/pds-switch.entry.js.map +1 -1
- package/dist/esm/pds-tab.entry.js +5 -5
- package/dist/esm/pds-tab.entry.js.map +1 -1
- package/dist/esm/pds-table-body.entry.js +7 -4
- package/dist/esm/pds-table-body.entry.js.map +1 -1
- package/dist/esm/pds-table-cell.entry.js +9 -6
- package/dist/esm/pds-table-cell.entry.js.map +1 -1
- package/dist/esm/pds-table-head-cell.entry.js +10 -7
- package/dist/esm/pds-table-head-cell.entry.js.map +1 -1
- package/dist/esm/pds-table-head.entry.js +8 -5
- package/dist/esm/pds-table-head.entry.js.map +1 -1
- package/dist/esm/pds-table-row.entry.js +7 -4
- package/dist/esm/pds-table-row.entry.js.map +1 -1
- package/dist/esm/pds-table.entry.js +7 -4
- package/dist/esm/pds-table.entry.js.map +1 -1
- package/dist/esm/pds-tabpanel.entry.js +2 -2
- package/dist/esm/pds-tabs.entry.js +7 -4
- package/dist/esm/pds-tabs.entry.js.map +1 -1
- package/dist/esm/pds-text.entry.js +35 -0
- package/dist/esm/pds-text.entry.js.map +1 -0
- package/dist/esm/pds-textarea.entry.js +15 -10
- package/dist/esm/pds-textarea.entry.js.map +1 -1
- package/dist/esm/pds-tooltip.entry.js +10 -10
- package/dist/esm/pds-tooltip.entry.js.map +1 -1
- package/dist/esm/pine-core.js +4 -4
- package/dist/esm/pine-core.js.map +1 -1
- package/dist/esm-es5/index-56752d25.js +2 -0
- package/dist/esm-es5/index-56752d25.js.map +1 -0
- package/dist/esm-es5/index-b1696fed.js +3 -0
- package/dist/esm-es5/index-b1696fed.js.map +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/pds-accordion.entry.js +1 -1
- package/dist/esm-es5/pds-accordion.entry.js.map +1 -1
- package/dist/esm-es5/pds-avatar.entry.js +1 -1
- package/dist/esm-es5/pds-avatar.entry.js.map +1 -1
- package/dist/esm-es5/pds-box.entry.js +1 -1
- package/dist/esm-es5/pds-box.entry.js.map +1 -1
- package/dist/esm-es5/pds-button.entry.js +1 -1
- package/dist/esm-es5/pds-button.entry.js.map +1 -1
- package/dist/esm-es5/pds-checkbox.entry.js +1 -1
- package/dist/esm-es5/pds-checkbox.entry.js.map +1 -1
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js.map +1 -1
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-copytext.entry.js.map +1 -1
- package/dist/esm-es5/pds-divider.entry.js +1 -1
- package/dist/esm-es5/pds-divider.entry.js.map +1 -1
- package/dist/esm-es5/pds-icon.entry.js +1 -1
- package/dist/esm-es5/pds-image.entry.js +1 -1
- package/dist/esm-es5/pds-image.entry.js.map +1 -1
- package/dist/esm-es5/pds-input.entry.js +1 -1
- package/dist/esm-es5/pds-input.entry.js.map +1 -1
- package/dist/esm-es5/{pds-label-c806218b.js → pds-label-62469596.js} +2 -2
- package/dist/esm-es5/pds-link.entry.js +1 -1
- package/dist/esm-es5/pds-link.entry.js.map +1 -1
- package/dist/esm-es5/pds-loader.entry.js +1 -1
- package/dist/esm-es5/pds-loader.entry.js.map +1 -1
- package/dist/esm-es5/pds-popover.entry.js +2 -0
- package/dist/esm-es5/pds-popover.entry.js.map +1 -0
- package/dist/esm-es5/pds-progress.entry.js +1 -1
- package/dist/esm-es5/pds-progress.entry.js.map +1 -1
- package/dist/esm-es5/pds-radio.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js.map +1 -1
- package/dist/esm-es5/pds-row.entry.js +1 -1
- package/dist/esm-es5/pds-row.entry.js.map +1 -1
- package/dist/esm-es5/pds-select.entry.js +2 -0
- package/dist/esm-es5/pds-select.entry.js.map +1 -0
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
- package/dist/esm-es5/pds-sortable.entry.js +2 -2
- package/dist/esm-es5/pds-sortable.entry.js.map +1 -1
- package/dist/esm-es5/pds-switch.entry.js +1 -1
- package/dist/esm-es5/pds-switch.entry.js.map +1 -1
- package/dist/esm-es5/pds-tab.entry.js +1 -1
- package/dist/esm-es5/pds-tab.entry.js.map +1 -1
- package/dist/esm-es5/pds-table-body.entry.js +1 -1
- package/dist/esm-es5/pds-table-body.entry.js.map +1 -1
- package/dist/esm-es5/pds-table-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-cell.entry.js.map +1 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js.map +1 -1
- package/dist/esm-es5/pds-table-head.entry.js +1 -1
- package/dist/esm-es5/pds-table-head.entry.js.map +1 -1
- package/dist/esm-es5/pds-table-row.entry.js +1 -1
- package/dist/esm-es5/pds-table-row.entry.js.map +1 -1
- package/dist/esm-es5/pds-table.entry.js +1 -1
- package/dist/esm-es5/pds-table.entry.js.map +1 -1
- package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
- package/dist/esm-es5/pds-tabs.entry.js +1 -1
- package/dist/esm-es5/pds-tabs.entry.js.map +1 -1
- package/dist/esm-es5/pds-text.entry.js +2 -0
- package/dist/esm-es5/pds-text.entry.js.map +1 -0
- package/dist/esm-es5/pds-textarea.entry.js +1 -1
- package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
- package/dist/esm-es5/pds-tooltip.entry.js +1 -1
- package/dist/esm-es5/pds-tooltip.entry.js.map +1 -1
- package/dist/esm-es5/pine-core.js +1 -1
- package/dist/esm-es5/pine-core.js.map +1 -1
- package/dist/pine-core/index.esm.js +1 -1
- package/dist/pine-core/p-00c8d6d8.entry.js +2 -0
- package/dist/pine-core/p-00c8d6d8.entry.js.map +1 -0
- package/dist/pine-core/p-031ac651.entry.js +2 -0
- package/dist/pine-core/p-031ac651.entry.js.map +1 -0
- package/dist/pine-core/p-09d83447.system.entry.js +2 -0
- package/dist/pine-core/p-09d83447.system.entry.js.map +1 -0
- package/dist/pine-core/p-0ac04129.entry.js +2 -0
- package/dist/pine-core/p-0ac04129.entry.js.map +1 -0
- package/dist/pine-core/p-0ad64b9d.system.entry.js +2 -0
- package/dist/pine-core/p-0ad64b9d.system.entry.js.map +1 -0
- package/dist/pine-core/p-1164c32c.system.entry.js +2 -0
- package/dist/pine-core/p-1164c32c.system.entry.js.map +1 -0
- package/dist/pine-core/p-1351489d.entry.js +2 -0
- package/dist/pine-core/p-1351489d.entry.js.map +1 -0
- package/dist/pine-core/p-1712d594.entry.js +2 -0
- package/dist/pine-core/p-1712d594.entry.js.map +1 -0
- package/dist/pine-core/p-196f615c.entry.js +2 -0
- package/dist/pine-core/p-196f615c.entry.js.map +1 -0
- package/dist/pine-core/{p-e8874481.system.entry.js → p-1a1a76ea.system.entry.js} +2 -2
- package/dist/pine-core/p-1a548198.system.entry.js +2 -0
- package/dist/pine-core/p-1a548198.system.entry.js.map +1 -0
- package/dist/pine-core/p-1a78ee21.entry.js +2 -0
- package/dist/pine-core/p-1a78ee21.entry.js.map +1 -0
- package/dist/pine-core/p-1df1990d.system.entry.js +2 -0
- package/dist/pine-core/p-1df1990d.system.entry.js.map +1 -0
- package/dist/pine-core/p-1e80f274.entry.js +2 -0
- package/dist/pine-core/p-1e80f274.entry.js.map +1 -0
- package/dist/pine-core/p-2e1dc5e5.system.entry.js +2 -0
- package/dist/pine-core/p-2e1dc5e5.system.entry.js.map +1 -0
- package/dist/pine-core/p-30600b1b.entry.js +2 -0
- package/dist/pine-core/p-30600b1b.entry.js.map +1 -0
- package/dist/pine-core/p-34cda8d5.system.entry.js +2 -0
- package/dist/pine-core/p-34cda8d5.system.entry.js.map +1 -0
- package/dist/pine-core/p-364a7555.system.entry.js +2 -0
- package/dist/pine-core/p-364a7555.system.entry.js.map +1 -0
- package/dist/pine-core/p-37a3c235.entry.js +2 -0
- package/dist/pine-core/p-37a3c235.entry.js.map +1 -0
- package/dist/pine-core/{p-b491e677.entry.js → p-396014d3.entry.js} +2 -2
- package/dist/pine-core/p-3acb18ad.entry.js +2 -0
- package/dist/pine-core/p-3acb18ad.entry.js.map +1 -0
- package/dist/pine-core/p-3ae15266.entry.js +2 -0
- package/dist/pine-core/p-3ae15266.entry.js.map +1 -0
- package/dist/pine-core/p-45cf2585.system.js +3 -0
- package/dist/pine-core/p-45cf2585.system.js.map +1 -0
- package/dist/pine-core/p-4a10164f.entry.js +2 -0
- package/dist/pine-core/p-4a10164f.entry.js.map +1 -0
- package/dist/pine-core/p-4d22b02c.entry.js +2 -0
- package/dist/pine-core/p-4d22b02c.entry.js.map +1 -0
- package/dist/pine-core/p-4f9b1945.entry.js +2 -0
- package/dist/pine-core/p-4f9b1945.entry.js.map +1 -0
- package/dist/pine-core/p-50918693.system.entry.js +2 -0
- package/dist/pine-core/p-50918693.system.entry.js.map +1 -0
- package/dist/pine-core/p-5380ad4f.entry.js +2 -0
- package/dist/pine-core/p-5380ad4f.entry.js.map +1 -0
- package/dist/pine-core/p-539fe011.system.entry.js +2 -0
- package/dist/pine-core/p-539fe011.system.entry.js.map +1 -0
- package/dist/pine-core/p-59fcea0f.entry.js +2 -0
- package/dist/pine-core/p-59fcea0f.entry.js.map +1 -0
- package/dist/pine-core/p-5b9d6ad1.entry.js +2 -0
- package/dist/pine-core/p-5b9d6ad1.entry.js.map +1 -0
- package/dist/pine-core/p-5c04aee0.system.js +2 -0
- package/dist/pine-core/p-5c04aee0.system.js.map +1 -0
- package/dist/pine-core/p-5cb59e3f.system.entry.js +2 -0
- package/dist/pine-core/p-5cb59e3f.system.entry.js.map +1 -0
- package/dist/pine-core/p-605dc33a.system.entry.js +2 -0
- package/dist/pine-core/p-605dc33a.system.entry.js.map +1 -0
- package/dist/pine-core/p-630b1802.entry.js +2 -0
- package/dist/pine-core/p-630b1802.entry.js.map +1 -0
- package/dist/pine-core/{p-d0948e17.entry.js → p-65229490.entry.js} +2 -2
- package/dist/pine-core/p-6d447614.system.entry.js +2 -0
- package/dist/pine-core/p-6d447614.system.entry.js.map +1 -0
- package/dist/pine-core/p-760e1c32.entry.js +2 -0
- package/dist/pine-core/p-760e1c32.entry.js.map +1 -0
- package/dist/pine-core/{p-b4f7b883.system.entry.js → p-84d36583.system.entry.js} +2 -2
- package/dist/pine-core/p-87fe352f.js +3 -0
- package/dist/pine-core/p-87fe352f.js.map +1 -0
- package/dist/pine-core/p-88702fa2.entry.js +2 -0
- package/dist/pine-core/p-88702fa2.entry.js.map +1 -0
- package/dist/pine-core/{p-30895edd.system.entry.js → p-88edcb41.system.entry.js} +2 -2
- package/dist/pine-core/p-88edcb41.system.entry.js.map +1 -0
- package/dist/pine-core/p-892b4a4c.entry.js +2 -0
- package/dist/pine-core/p-892b4a4c.entry.js.map +1 -0
- package/dist/pine-core/p-8ae84655.system.entry.js +2 -0
- package/dist/pine-core/p-8ae84655.system.entry.js.map +1 -0
- package/dist/pine-core/{p-60622df4.entry.js → p-9487df53.entry.js} +2 -2
- package/dist/pine-core/p-9487df53.entry.js.map +1 -0
- package/dist/pine-core/p-9db668f2.system.entry.js +2 -0
- package/dist/pine-core/p-9db668f2.system.entry.js.map +1 -0
- package/dist/pine-core/p-a24fa762.system.entry.js +2 -0
- package/dist/pine-core/p-a24fa762.system.entry.js.map +1 -0
- package/dist/pine-core/p-a2726d3b.system.entry.js +2 -0
- package/dist/pine-core/p-a2726d3b.system.entry.js.map +1 -0
- package/dist/pine-core/p-a6713696.entry.js +2 -0
- package/dist/pine-core/p-a6713696.entry.js.map +1 -0
- package/dist/pine-core/{p-7bc0b531.js → p-a9038f7f.js} +2 -2
- package/dist/pine-core/p-a9e02a6f.system.entry.js +2 -0
- package/dist/pine-core/p-a9e02a6f.system.entry.js.map +1 -0
- package/dist/pine-core/p-adda8682.system.entry.js +2 -0
- package/dist/pine-core/p-adda8682.system.entry.js.map +1 -0
- package/dist/pine-core/p-ae19532d.system.entry.js +2 -0
- package/dist/pine-core/p-ae19532d.system.entry.js.map +1 -0
- package/dist/pine-core/p-b3e36d77.system.entry.js +2 -0
- package/dist/pine-core/p-b3e36d77.system.entry.js.map +1 -0
- package/dist/pine-core/p-b7edbe43.system.entry.js +2 -0
- package/dist/pine-core/p-b7edbe43.system.entry.js.map +1 -0
- package/dist/pine-core/p-b95522e6.system.entry.js +2 -0
- package/dist/pine-core/p-b95522e6.system.entry.js.map +1 -0
- package/dist/pine-core/p-b9cebd24.entry.js +2 -0
- package/dist/pine-core/p-b9cebd24.entry.js.map +1 -0
- package/dist/pine-core/p-bbd19258.entry.js +2 -0
- package/dist/pine-core/p-bbd19258.entry.js.map +1 -0
- package/dist/pine-core/p-cbf2acbd.system.entry.js +2 -0
- package/dist/pine-core/p-cbf2acbd.system.entry.js.map +1 -0
- package/dist/pine-core/p-cc75a4f7.system.entry.js +2 -0
- package/dist/pine-core/p-cc75a4f7.system.entry.js.map +1 -0
- package/dist/pine-core/p-ceb66096.entry.js +8 -0
- package/dist/pine-core/p-ceb66096.entry.js.map +1 -0
- package/dist/pine-core/p-d3365f49.system.entry.js +9 -0
- package/dist/pine-core/{p-a6b486a4.entry.js.map → p-d3365f49.system.entry.js.map} +1 -1
- package/dist/pine-core/p-d83716fb.js +2 -0
- package/dist/pine-core/p-d83716fb.js.map +1 -0
- package/dist/pine-core/p-d95b2469.system.entry.js +2 -0
- package/dist/pine-core/p-d95b2469.system.entry.js.map +1 -0
- package/dist/pine-core/p-da5a1e2c.system.entry.js +2 -0
- package/dist/pine-core/p-da5a1e2c.system.entry.js.map +1 -0
- package/dist/pine-core/p-db622f8f.system.js +2 -0
- package/dist/pine-core/p-de301890.entry.js +2 -0
- package/dist/pine-core/p-de301890.entry.js.map +1 -0
- package/dist/pine-core/p-dec11fa5.system.js +2 -0
- package/dist/pine-core/p-dec11fa5.system.js.map +1 -0
- package/dist/pine-core/{p-f5597dce.entry.js → p-e2a673e8.entry.js} +2 -2
- package/dist/pine-core/p-e2badc55.entry.js +2 -0
- package/dist/pine-core/p-e2badc55.entry.js.map +1 -0
- package/dist/pine-core/{p-f86af20f.system.js → p-e3fab4be.system.js} +2 -2
- package/dist/pine-core/p-ebdaf3ad.entry.js +2 -0
- package/dist/pine-core/p-ebdaf3ad.entry.js.map +1 -0
- package/dist/pine-core/{p-6293581d.system.entry.js → p-f16ef73c.system.entry.js} +2 -2
- package/dist/pine-core/p-faa2bf05.system.entry.js +2 -0
- package/dist/pine-core/p-faa2bf05.system.entry.js.map +1 -0
- package/dist/pine-core/pine-core.css +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/pine-core/pine-core.esm.js.map +1 -1
- package/dist/pine-core/pine-core.js +1 -1
- package/dist/pine-core/svg/access-key.svg +1 -1
- package/dist/pine-core/svg/add-circle.svg +1 -1
- package/dist/pine-core/svg/add-image.svg +1 -1
- package/dist/pine-core/svg/add-small.svg +1 -1
- package/dist/pine-core/svg/add-square.svg +1 -1
- package/dist/pine-core/svg/add.svg +1 -1
- package/dist/pine-core/svg/advanced.svg +1 -1
- package/dist/pine-core/svg/ai-sparkle.svg +1 -1
- package/dist/pine-core/svg/ai-writer-filled.svg +1 -1
- package/dist/pine-core/svg/ai-writer.svg +1 -1
- package/dist/pine-core/svg/align-center.svg +1 -1
- package/dist/pine-core/svg/align-justify.svg +1 -1
- package/dist/pine-core/svg/align-left.svg +1 -1
- package/dist/pine-core/svg/align-right.svg +1 -1
- package/dist/pine-core/svg/app-store.svg +1 -1
- package/dist/pine-core/svg/archive.svg +1 -1
- package/dist/pine-core/svg/arrow-corner.svg +1 -1
- package/dist/pine-core/svg/arrow-down.svg +1 -1
- package/dist/pine-core/svg/arrow-left.svg +1 -1
- package/dist/pine-core/svg/arrow-right.svg +1 -1
- package/dist/pine-core/svg/arrow-up.svg +1 -1
- package/dist/pine-core/svg/assessment.svg +1 -1
- package/dist/pine-core/svg/at-sign.svg +1 -1
- package/dist/pine-core/svg/attach.svg +1 -1
- package/dist/pine-core/svg/automations.svg +1 -1
- package/dist/pine-core/svg/ban.svg +1 -1
- package/dist/pine-core/svg/bank.svg +1 -1
- package/dist/pine-core/svg/bar-chart-square.svg +1 -1
- package/dist/pine-core/svg/bar-chart-tone.svg +1 -1
- package/dist/pine-core/svg/bell-tone.svg +1 -1
- package/dist/pine-core/svg/bell.svg +1 -1
- package/dist/pine-core/svg/block.svg +1 -1
- package/dist/pine-core/svg/blog-filled.svg +1 -1
- package/dist/pine-core/svg/blog.svg +1 -1
- package/dist/pine-core/svg/bold.svg +1 -1
- package/dist/pine-core/svg/bookmark.svg +1 -0
- package/dist/pine-core/svg/broadcast.svg +1 -1
- package/dist/pine-core/svg/bulb.svg +1 -1
- package/dist/pine-core/svg/button.svg +1 -1
- package/dist/pine-core/svg/calendar-date.svg +1 -1
- package/dist/pine-core/svg/calendar-schedule.svg +1 -1
- package/dist/pine-core/svg/calendar-simple.svg +1 -1
- package/dist/pine-core/svg/card-amex.svg +1 -1
- package/dist/pine-core/svg/card-android.svg +1 -1
- package/dist/pine-core/svg/card-apple.svg +1 -1
- package/dist/pine-core/svg/card-diners-club.svg +1 -1
- package/dist/pine-core/svg/card-discover.svg +1 -1
- package/dist/pine-core/svg/card-generic.svg +1 -1
- package/dist/pine-core/svg/card-gpay.svg +1 -1
- package/dist/pine-core/svg/card-mastercard.svg +1 -1
- package/dist/pine-core/svg/card-paypal.svg +1 -1
- package/dist/pine-core/svg/card-stripe.svg +1 -1
- package/dist/pine-core/svg/card-update.svg +1 -1
- package/dist/pine-core/svg/card-visa.svg +1 -1
- package/dist/pine-core/svg/caret-down.svg +1 -1
- package/dist/pine-core/svg/caret-left.svg +1 -1
- package/dist/pine-core/svg/caret-right.svg +1 -1
- package/dist/pine-core/svg/caret-up.svg +1 -1
- package/dist/pine-core/svg/cart-add.svg +1 -1
- package/dist/pine-core/svg/cart.svg +1 -1
- package/dist/pine-core/svg/certificate.svg +1 -1
- package/dist/pine-core/svg/chart-filled.svg +1 -1
- package/dist/pine-core/svg/chart.svg +1 -1
- package/dist/pine-core/svg/check-circle-filled.svg +1 -1
- package/dist/pine-core/svg/check-circle.svg +1 -1
- package/dist/pine-core/svg/check.svg +1 -1
- package/dist/pine-core/svg/circle-1.svg +1 -1
- package/dist/pine-core/svg/circle-2.svg +1 -1
- package/dist/pine-core/svg/circle-3.svg +1 -1
- package/dist/pine-core/svg/circle-4.svg +1 -1
- package/dist/pine-core/svg/circle-5.svg +1 -1
- package/dist/pine-core/svg/circle-6.svg +1 -1
- package/dist/pine-core/svg/circle-7.svg +1 -1
- package/dist/pine-core/svg/circle-8.svg +1 -1
- package/dist/pine-core/svg/circle-9.svg +1 -1
- package/dist/pine-core/svg/circle-a.svg +1 -1
- package/dist/pine-core/svg/circle-b.svg +1 -1
- package/dist/pine-core/svg/circle-dashed.svg +1 -1
- package/dist/pine-core/svg/clapperboard-tone.svg +1 -1
- package/dist/pine-core/svg/clock.svg +1 -1
- package/dist/pine-core/svg/closed-captions.svg +1 -1
- package/dist/pine-core/svg/cloud-upload.svg +1 -1
- package/dist/pine-core/svg/code-block.svg +1 -1
- package/dist/pine-core/svg/code.svg +1 -1
- package/dist/pine-core/svg/color.svg +1 -1
- package/dist/pine-core/svg/columns.svg +1 -1
- package/dist/pine-core/svg/comment-no.svg +1 -1
- package/dist/pine-core/svg/comment.svg +1 -1
- package/dist/pine-core/svg/connect.svg +1 -1
- package/dist/pine-core/svg/contact.svg +1 -1
- package/dist/pine-core/svg/conversation.svg +1 -1
- package/dist/pine-core/svg/copy.svg +1 -1
- package/dist/pine-core/svg/coupon.svg +1 -1
- package/dist/pine-core/svg/course-filled.svg +1 -1
- package/dist/pine-core/svg/course.svg +1 -1
- package/dist/pine-core/svg/creator-studio-filled.svg +1 -1
- package/dist/pine-core/svg/creator-studio.svg +1 -1
- package/dist/pine-core/svg/credit-card-tone.svg +1 -1
- package/dist/pine-core/svg/cube-tone.svg +1 -1
- package/dist/pine-core/svg/cursor-pointer.svg +1 -1
- package/dist/pine-core/svg/cursor.svg +1 -1
- package/dist/pine-core/svg/custom-field.svg +1 -1
- package/dist/pine-core/svg/customize.svg +1 -1
- package/dist/pine-core/svg/danger-filled.svg +1 -1
- package/dist/pine-core/svg/danger.svg +1 -1
- package/dist/pine-core/svg/delete-circle.svg +1 -1
- package/dist/pine-core/svg/delete-key.svg +1 -1
- package/dist/pine-core/svg/delete-x.svg +1 -1
- package/dist/pine-core/svg/dollar.svg +1 -1
- package/dist/pine-core/svg/dot-menu-horizontal.svg +1 -1
- package/dist/pine-core/svg/dots-horizontal-tone.svg +1 -1
- package/dist/pine-core/svg/down-small.svg +1 -1
- package/dist/pine-core/svg/download.svg +1 -1
- package/dist/pine-core/svg/downsell.svg +1 -1
- package/dist/pine-core/svg/draft.svg +1 -1
- package/dist/pine-core/svg/drawer-collapse.svg +1 -1
- package/dist/pine-core/svg/drawer-expand.svg +1 -1
- package/dist/pine-core/svg/drop.svg +1 -1
- package/dist/pine-core/svg/duplicate.svg +1 -1
- package/dist/pine-core/svg/editor-filled.svg +1 -1
- package/dist/pine-core/svg/editor.svg +1 -1
- package/dist/pine-core/svg/email-activity.svg +1 -1
- package/dist/pine-core/svg/emoji.svg +1 -1
- package/dist/pine-core/svg/enlarge-vertical.svg +1 -1
- package/dist/pine-core/svg/enlarge.svg +1 -1
- package/dist/pine-core/svg/expand.svg +1 -1
- package/dist/pine-core/svg/favorite.svg +1 -1
- package/dist/pine-core/svg/feedback.svg +1 -1
- package/dist/pine-core/svg/file-add.svg +1 -1
- package/dist/pine-core/svg/file-download.svg +1 -1
- package/dist/pine-core/svg/file-lock.svg +1 -1
- package/dist/pine-core/svg/file-money.svg +1 -1
- package/dist/pine-core/svg/file-search.svg +1 -0
- package/dist/pine-core/svg/file.svg +1 -1
- package/dist/pine-core/svg/filter.svg +1 -1
- package/dist/pine-core/svg/flag.svg +1 -1
- package/dist/pine-core/svg/flash-filled.svg +1 -1
- package/dist/pine-core/svg/flash.svg +1 -1
- package/dist/pine-core/svg/floppy-disk.svg +1 -1
- package/dist/pine-core/svg/folder-group.svg +1 -1
- package/dist/pine-core/svg/folder.svg +1 -1
- package/dist/pine-core/svg/form-field.svg +1 -1
- package/dist/pine-core/svg/form-filled.svg +1 -1
- package/dist/pine-core/svg/form.svg +1 -1
- package/dist/pine-core/svg/fullscreen.svg +1 -1
- package/dist/pine-core/svg/funnel.svg +1 -1
- package/dist/pine-core/svg/gear-filled.svg +1 -1
- package/dist/pine-core/svg/gear.svg +1 -1
- package/dist/pine-core/svg/gift-tone.svg +1 -1
- package/dist/pine-core/svg/grant-offer.svg +1 -1
- package/dist/pine-core/svg/handle-2-vertical.svg +1 -1
- package/dist/pine-core/svg/handle-2.svg +1 -1
- package/dist/pine-core/svg/handle.svg +1 -1
- package/dist/pine-core/svg/hashtag.svg +1 -1
- package/dist/pine-core/svg/hd-video.svg +1 -1
- package/dist/pine-core/svg/heading-1.svg +1 -1
- package/dist/pine-core/svg/heading-2.svg +1 -1
- package/dist/pine-core/svg/heading-3.svg +1 -1
- package/dist/pine-core/svg/heading-4.svg +1 -1
- package/dist/pine-core/svg/heading-5.svg +1 -1
- package/dist/pine-core/svg/heading-6.svg +1 -1
- package/dist/pine-core/svg/heading-large.svg +1 -1
- package/dist/pine-core/svg/heading-small.svg +1 -1
- package/dist/pine-core/svg/headset-tone.svg +1 -1
- package/dist/pine-core/svg/headset.svg +1 -1
- package/dist/pine-core/svg/help-filled.svg +1 -1
- package/dist/pine-core/svg/help.svg +1 -1
- package/dist/pine-core/svg/home-alt.svg +1 -1
- package/dist/pine-core/svg/home-filled.svg +1 -1
- package/dist/pine-core/svg/home-tone.svg +1 -1
- package/dist/pine-core/svg/home.svg +1 -1
- package/dist/pine-core/svg/horizontal-line.svg +1 -1
- package/dist/pine-core/svg/image.svg +1 -1
- package/dist/pine-core/svg/info-circle-filled.svg +1 -1
- package/dist/pine-core/svg/info-circle.svg +1 -1
- package/dist/pine-core/svg/ios-battery.svg +1 -1
- package/dist/pine-core/svg/ios-data.svg +1 -1
- package/dist/pine-core/svg/ios-wifi.svg +1 -1
- package/dist/pine-core/svg/italic.svg +1 -1
- package/dist/pine-core/svg/kajabi-filled.svg +1 -1
- package/dist/pine-core/svg/kajabi.svg +1 -1
- package/dist/pine-core/svg/klarna.svg +1 -1
- package/dist/pine-core/svg/lab.svg +1 -1
- package/dist/pine-core/svg/launch.svg +1 -1
- package/dist/pine-core/svg/layout-grid-02.svg +1 -0
- package/dist/pine-core/svg/layout-grid.svg +1 -1
- package/dist/pine-core/svg/layout-list.svg +1 -1
- package/dist/pine-core/svg/left-small.svg +1 -1
- package/dist/pine-core/svg/list-bullet.svg +1 -1
- package/dist/pine-core/svg/list-details.svg +1 -1
- package/dist/pine-core/svg/list-numbers.svg +1 -1
- package/dist/pine-core/svg/location.svg +1 -1
- package/dist/pine-core/svg/lock-alt.svg +1 -1
- package/dist/pine-core/svg/lock.svg +1 -1
- package/dist/pine-core/svg/logo-afterpay.svg +1 -1
- package/dist/pine-core/svg/logo-facebook-round.svg +1 -1
- package/dist/pine-core/svg/logo-facebook.svg +1 -1
- package/dist/pine-core/svg/logo-instagram.svg +1 -1
- package/dist/pine-core/svg/logo-linkedin.svg +1 -1
- package/dist/pine-core/svg/logo-snapchat.svg +1 -0
- package/dist/pine-core/svg/logo-tiktok.svg +1 -1
- package/dist/pine-core/svg/logo-twitter-x.svg +1 -1
- package/dist/pine-core/svg/logo-twitter.svg +1 -1
- package/dist/pine-core/svg/logo-youtube.svg +1 -1
- package/dist/pine-core/svg/loop.svg +1 -1
- package/dist/pine-core/svg/mail-filled.svg +1 -1
- package/dist/pine-core/svg/mail-open.svg +1 -1
- package/dist/pine-core/svg/mail-tone.svg +1 -1
- package/dist/pine-core/svg/mail.svg +1 -1
- package/dist/pine-core/svg/map.svg +1 -1
- package/dist/pine-core/svg/mapped.svg +1 -1
- package/dist/pine-core/svg/margin-left.svg +1 -1
- package/dist/pine-core/svg/margin-right.svg +1 -1
- package/dist/pine-core/svg/marker-filled.svg +1 -1
- package/dist/pine-core/svg/marker.svg +1 -1
- package/dist/pine-core/svg/megaphone-filled.svg +1 -1
- package/dist/pine-core/svg/megaphone.svg +1 -1
- package/dist/pine-core/svg/menu-alt.svg +1 -1
- package/dist/pine-core/svg/menu-bordered.svg +1 -1
- package/dist/pine-core/svg/menu.svg +1 -1
- package/dist/pine-core/svg/merge.svg +1 -1
- package/dist/pine-core/svg/microphone-off.svg +1 -1
- package/dist/pine-core/svg/microphone.svg +1 -1
- package/dist/pine-core/svg/monitor-filled.svg +1 -1
- package/dist/pine-core/svg/monitor-tone.svg +1 -1
- package/dist/pine-core/svg/monitor.svg +1 -1
- package/dist/pine-core/svg/more-menu-filled.svg +1 -1
- package/dist/pine-core/svg/more-menu.svg +1 -1
- package/dist/pine-core/svg/move-left.svg +1 -1
- package/dist/pine-core/svg/move-right.svg +1 -1
- package/dist/pine-core/svg/multi-pay.svg +1 -1
- package/dist/pine-core/svg/newsletter-2.svg +1 -1
- package/dist/pine-core/svg/newsletter.svg +1 -1
- package/dist/pine-core/svg/one-off-session.svg +1 -1
- package/dist/pine-core/svg/one-time.svg +1 -1
- package/dist/pine-core/svg/packages.svg +1 -1
- package/dist/pine-core/svg/pause-circle.svg +1 -1
- package/dist/pine-core/svg/pause.svg +1 -1
- package/dist/pine-core/svg/payout.svg +1 -1
- package/dist/pine-core/svg/pen.svg +1 -1
- package/dist/pine-core/svg/phone-portrait.svg +1 -1
- package/dist/pine-core/svg/phone-tone.svg +1 -1
- package/dist/pine-core/svg/phone-toolbar-filled.svg +1 -1
- package/dist/pine-core/svg/phone-toolbar.svg +1 -1
- package/dist/pine-core/svg/play-circle.svg +1 -1
- package/dist/pine-core/svg/play-outline.svg +1 -1
- package/dist/pine-core/svg/play-store.svg +1 -1
- package/dist/pine-core/svg/play.svg +1 -1
- package/dist/pine-core/svg/plug.svg +1 -1
- package/dist/pine-core/svg/premium.svg +1 -1
- package/dist/pine-core/svg/present.svg +1 -1
- package/dist/pine-core/svg/preview-off.svg +1 -1
- package/dist/pine-core/svg/preview-on.svg +1 -1
- package/dist/pine-core/svg/product-filled.svg +1 -1
- package/dist/pine-core/svg/product.svg +1 -1
- package/dist/pine-core/svg/question-circle.svg +1 -1
- package/dist/pine-core/svg/quote.svg +1 -1
- package/dist/pine-core/svg/redo.svg +1 -1
- package/dist/pine-core/svg/refresh.svg +1 -1
- package/dist/pine-core/svg/remove-circle.svg +1 -1
- package/dist/pine-core/svg/remove.svg +1 -1
- package/dist/pine-core/svg/rename.svg +1 -1
- package/dist/pine-core/svg/reset-password.svg +1 -1
- package/dist/pine-core/svg/restore.svg +1 -1
- package/dist/pine-core/svg/right-small.svg +1 -1
- package/dist/pine-core/svg/rocket-filled.svg +1 -1
- package/dist/pine-core/svg/rocket-tone.svg +1 -1
- package/dist/pine-core/svg/rocket.svg +1 -1
- package/dist/pine-core/svg/round-dollar.svg +1 -1
- package/dist/pine-core/svg/rows.svg +1 -1
- package/dist/pine-core/svg/scissor.svg +1 -1
- package/dist/pine-core/svg/screen-share-off.svg +1 -1
- package/dist/pine-core/svg/screen-share-on.svg +1 -1
- package/dist/pine-core/svg/search-md-tone.svg +1 -1
- package/dist/pine-core/svg/search-small.svg +1 -1
- package/dist/pine-core/svg/search.svg +1 -1
- package/dist/pine-core/svg/send-message.svg +1 -1
- package/dist/pine-core/svg/sequences.svg +1 -1
- package/dist/pine-core/svg/settings-tone.svg +1 -1
- package/dist/pine-core/svg/share.svg +1 -1
- package/dist/pine-core/svg/shopping-cart-filled.svg +1 -0
- package/dist/pine-core/svg/skipped.svg +1 -1
- package/dist/pine-core/svg/slash-divider.svg +1 -1
- package/dist/pine-core/svg/speaker.svg +1 -1
- package/dist/pine-core/svg/stack.svg +1 -1
- package/dist/pine-core/svg/star.svg +1 -1
- package/dist/pine-core/svg/stars-tone.svg +1 -1
- package/dist/pine-core/svg/stop.svg +1 -1
- package/dist/pine-core/svg/stopwatch.svg +1 -1
- package/dist/pine-core/svg/strikethrough.svg +1 -1
- package/dist/pine-core/svg/subscript.svg +1 -1
- package/dist/pine-core/svg/subscriptions.svg +1 -1
- package/dist/pine-core/svg/super-admin.svg +1 -1
- package/dist/pine-core/svg/superscript.svg +1 -1
- package/dist/pine-core/svg/sync.svg +1 -1
- package/dist/pine-core/svg/tablet-landscape.svg +1 -1
- package/dist/pine-core/svg/tablet-portrait.svg +1 -1
- package/dist/pine-core/svg/tag-filled.svg +1 -1
- package/dist/pine-core/svg/tag.svg +1 -1
- package/dist/pine-core/svg/text-styles.svg +1 -1
- package/dist/pine-core/svg/theme-store-filled.svg +1 -1
- package/dist/pine-core/svg/theme-store.svg +1 -1
- package/dist/pine-core/svg/thumb-down-filled.svg +1 -1
- package/dist/pine-core/svg/thumb-down.svg +1 -1
- package/dist/pine-core/svg/thumb-up-filled.svg +1 -1
- package/dist/pine-core/svg/thumb-up.svg +1 -1
- package/dist/pine-core/svg/trash.svg +1 -1
- package/dist/pine-core/svg/trophy-filled.svg +1 -1
- package/dist/pine-core/svg/trophy.svg +1 -1
- package/dist/pine-core/svg/underline.svg +1 -1
- package/dist/pine-core/svg/undo.svg +1 -1
- package/dist/pine-core/svg/unlock.svg +1 -1
- package/dist/pine-core/svg/unmapped.svg +1 -1
- package/dist/pine-core/svg/up-small.svg +1 -1
- package/dist/pine-core/svg/upload.svg +1 -1
- package/dist/pine-core/svg/url.svg +1 -1
- package/dist/pine-core/svg/user-circle-filled.svg +1 -1
- package/dist/pine-core/svg/user-circle.svg +1 -1
- package/dist/pine-core/svg/user-filled.svg +1 -1
- package/dist/pine-core/svg/user-star-filled.svg +1 -1
- package/dist/pine-core/svg/user-star.svg +1 -1
- package/dist/pine-core/svg/user.svg +1 -1
- package/dist/pine-core/svg/users-alt.svg +1 -1
- package/dist/pine-core/svg/users-filled.svg +1 -1
- package/dist/pine-core/svg/users-tone.svg +1 -1
- package/dist/pine-core/svg/users.svg +1 -1
- package/dist/pine-core/svg/video-off.svg +1 -1
- package/dist/pine-core/svg/video-on.svg +1 -1
- package/dist/pine-core/svg/warning-filled.svg +1 -1
- package/dist/pine-core/svg/warning.svg +1 -1
- package/dist/pine-core/svg/window-paragraph.svg +1 -1
- package/dist/pine-core/svg/world.svg +1 -1
- package/dist/pine-core/svg/wrench.svg +1 -1
- package/dist/types/components/pds-accordion/pds-accordion.d.ts +1 -0
- package/dist/types/components/pds-button/pds-button.d.ts +13 -8
- package/dist/types/components/pds-chip/pds-chip.d.ts +8 -8
- package/dist/types/components/pds-copytext/pds-copytext.d.ts +3 -3
- package/dist/types/components/pds-divider/pds-divider.d.ts +1 -1
- package/dist/types/components/pds-image/pds-image.d.ts +7 -3
- package/dist/types/components/pds-input/pds-input.d.ts +9 -5
- package/dist/types/components/pds-link/pds-link.d.ts +7 -11
- package/dist/types/components/pds-popover/pds-popover.d.ts +45 -0
- package/dist/types/components/pds-radio/pds-radio.d.ts +11 -11
- package/dist/types/components/pds-select/pds-select.d.ts +91 -0
- package/dist/types/components/pds-switch/pds-switch.d.ts +11 -19
- package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +4 -0
- package/dist/types/components/pds-table/pds-table-head/pds-table-head.d.ts +5 -2
- package/dist/types/components/pds-table/pds-table-head-cell/pds-table-head-cell.d.ts +9 -1
- package/dist/types/components/pds-table/pds-table-row/pds-table-row.d.ts +3 -3
- package/dist/types/components/pds-table/pds-table.d.ts +11 -3
- package/dist/types/components/pds-text/pds-text.d.ts +31 -0
- package/dist/types/components/pds-textarea/pds-textarea.d.ts +16 -12
- package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +5 -9
- package/dist/types/components.d.ts +491 -137
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/utils/types.d.ts +1 -1
- package/hydrate/index.d.ts +6 -0
- package/hydrate/index.js +981 -404
- package/hydrate/index.mjs +981 -404
- package/package.json +15 -13
- package/dist/cjs/index-479f5bd8.js +0 -24
- package/dist/cjs/index-479f5bd8.js.map +0 -1
- package/dist/cjs/index-d4ec6246.js.map +0 -1
- package/dist/esm/index-9f0e742f.js.map +0 -1
- package/dist/esm/index-9f8fe796.js +0 -14
- package/dist/esm/index-9f8fe796.js.map +0 -1
- package/dist/esm-es5/index-9f0e742f.js +0 -3
- package/dist/esm-es5/index-9f0e742f.js.map +0 -1
- package/dist/esm-es5/index-9f8fe796.js +0 -2
- package/dist/esm-es5/index-9f8fe796.js.map +0 -1
- package/dist/pine-core/p-06f526e5.system.js +0 -2
- package/dist/pine-core/p-06f526e5.system.js.map +0 -1
- package/dist/pine-core/p-0bf48e12.entry.js +0 -2
- package/dist/pine-core/p-0bf48e12.entry.js.map +0 -1
- package/dist/pine-core/p-12e1c54f.entry.js +0 -2
- package/dist/pine-core/p-12e1c54f.entry.js.map +0 -1
- package/dist/pine-core/p-1400fed8.entry.js +0 -2
- package/dist/pine-core/p-1400fed8.entry.js.map +0 -1
- package/dist/pine-core/p-16b74124.system.js +0 -2
- package/dist/pine-core/p-16b74124.system.js.map +0 -1
- package/dist/pine-core/p-20dae7d1.system.entry.js +0 -2
- package/dist/pine-core/p-20dae7d1.system.entry.js.map +0 -1
- package/dist/pine-core/p-2837aec3.system.entry.js +0 -2
- package/dist/pine-core/p-2837aec3.system.entry.js.map +0 -1
- package/dist/pine-core/p-2bce244c.entry.js +0 -2
- package/dist/pine-core/p-2bce244c.entry.js.map +0 -1
- package/dist/pine-core/p-307b87fc.system.entry.js +0 -2
- package/dist/pine-core/p-307b87fc.system.entry.js.map +0 -1
- package/dist/pine-core/p-30895edd.system.entry.js.map +0 -1
- package/dist/pine-core/p-3487fe4a.entry.js +0 -2
- package/dist/pine-core/p-3487fe4a.entry.js.map +0 -1
- package/dist/pine-core/p-373bf876.js +0 -2
- package/dist/pine-core/p-373bf876.js.map +0 -1
- package/dist/pine-core/p-3ceda09a.system.entry.js +0 -2
- package/dist/pine-core/p-3ceda09a.system.entry.js.map +0 -1
- package/dist/pine-core/p-40489c55.entry.js +0 -2
- package/dist/pine-core/p-40489c55.entry.js.map +0 -1
- package/dist/pine-core/p-41c843c5.system.entry.js +0 -2
- package/dist/pine-core/p-41c843c5.system.entry.js.map +0 -1
- package/dist/pine-core/p-4262c8d0.system.entry.js +0 -2
- package/dist/pine-core/p-4262c8d0.system.entry.js.map +0 -1
- package/dist/pine-core/p-43c37135.entry.js +0 -2
- package/dist/pine-core/p-43c37135.entry.js.map +0 -1
- package/dist/pine-core/p-45df80d3.entry.js +0 -2
- package/dist/pine-core/p-45df80d3.entry.js.map +0 -1
- package/dist/pine-core/p-479fd128.system.entry.js +0 -2
- package/dist/pine-core/p-479fd128.system.entry.js.map +0 -1
- package/dist/pine-core/p-4868ffe2.entry.js +0 -2
- package/dist/pine-core/p-4868ffe2.entry.js.map +0 -1
- package/dist/pine-core/p-4cfa45e5.system.entry.js +0 -2
- package/dist/pine-core/p-4cfa45e5.system.entry.js.map +0 -1
- package/dist/pine-core/p-4e5423ec.entry.js +0 -2
- package/dist/pine-core/p-4e5423ec.entry.js.map +0 -1
- package/dist/pine-core/p-5303452a.entry.js +0 -2
- package/dist/pine-core/p-5303452a.entry.js.map +0 -1
- package/dist/pine-core/p-59a88d32.entry.js +0 -2
- package/dist/pine-core/p-59a88d32.entry.js.map +0 -1
- package/dist/pine-core/p-5d35d9bc.system.entry.js +0 -2
- package/dist/pine-core/p-5d35d9bc.system.entry.js.map +0 -1
- package/dist/pine-core/p-5dab0de3.system.entry.js +0 -2
- package/dist/pine-core/p-5dab0de3.system.entry.js.map +0 -1
- package/dist/pine-core/p-60622df4.entry.js.map +0 -1
- package/dist/pine-core/p-63eacc4c.entry.js +0 -2
- package/dist/pine-core/p-63eacc4c.entry.js.map +0 -1
- package/dist/pine-core/p-64a079d4.entry.js +0 -2
- package/dist/pine-core/p-64a079d4.entry.js.map +0 -1
- package/dist/pine-core/p-64ec41b5.system.entry.js +0 -2
- package/dist/pine-core/p-64ec41b5.system.entry.js.map +0 -1
- package/dist/pine-core/p-669c5ccd.entry.js +0 -2
- package/dist/pine-core/p-669c5ccd.entry.js.map +0 -1
- package/dist/pine-core/p-74931ca7.entry.js +0 -2
- package/dist/pine-core/p-74931ca7.entry.js.map +0 -1
- package/dist/pine-core/p-766e4212.system.entry.js +0 -2
- package/dist/pine-core/p-766e4212.system.entry.js.map +0 -1
- package/dist/pine-core/p-79625567.entry.js +0 -2
- package/dist/pine-core/p-79625567.entry.js.map +0 -1
- package/dist/pine-core/p-7b44943d.system.entry.js +0 -2
- package/dist/pine-core/p-7b44943d.system.entry.js.map +0 -1
- package/dist/pine-core/p-7c029627.system.entry.js +0 -9
- package/dist/pine-core/p-7c029627.system.entry.js.map +0 -1
- package/dist/pine-core/p-7e7de1d6.js +0 -3
- package/dist/pine-core/p-7e7de1d6.js.map +0 -1
- package/dist/pine-core/p-7ed5ef61.system.entry.js +0 -2
- package/dist/pine-core/p-7ed5ef61.system.entry.js.map +0 -1
- package/dist/pine-core/p-80efeb1b.entry.js +0 -2
- package/dist/pine-core/p-80efeb1b.entry.js.map +0 -1
- package/dist/pine-core/p-8233b878.system.entry.js +0 -2
- package/dist/pine-core/p-8233b878.system.entry.js.map +0 -1
- package/dist/pine-core/p-84e37a4c.entry.js +0 -2
- package/dist/pine-core/p-84e37a4c.entry.js.map +0 -1
- package/dist/pine-core/p-9071a673.system.entry.js +0 -2
- package/dist/pine-core/p-9071a673.system.entry.js.map +0 -1
- package/dist/pine-core/p-9229e03e.system.entry.js +0 -2
- package/dist/pine-core/p-9229e03e.system.entry.js.map +0 -1
- package/dist/pine-core/p-94a76b90.system.entry.js +0 -2
- package/dist/pine-core/p-94a76b90.system.entry.js.map +0 -1
- package/dist/pine-core/p-99c6c7fe.system.js +0 -2
- package/dist/pine-core/p-a58de843.system.entry.js +0 -2
- package/dist/pine-core/p-a58de843.system.entry.js.map +0 -1
- package/dist/pine-core/p-a6b486a4.entry.js +0 -8
- package/dist/pine-core/p-ad7f960d.system.entry.js +0 -2
- package/dist/pine-core/p-ad7f960d.system.entry.js.map +0 -1
- package/dist/pine-core/p-b4fb6072.system.entry.js +0 -2
- package/dist/pine-core/p-b4fb6072.system.entry.js.map +0 -1
- package/dist/pine-core/p-b8cbff05.system.entry.js +0 -2
- package/dist/pine-core/p-b8cbff05.system.entry.js.map +0 -1
- package/dist/pine-core/p-b94d28cc.entry.js +0 -2
- package/dist/pine-core/p-b94d28cc.entry.js.map +0 -1
- package/dist/pine-core/p-c644e0b4.system.entry.js +0 -2
- package/dist/pine-core/p-c644e0b4.system.entry.js.map +0 -1
- package/dist/pine-core/p-cb0cccca.entry.js +0 -2
- package/dist/pine-core/p-cb0cccca.entry.js.map +0 -1
- package/dist/pine-core/p-d20f4c1d.system.js +0 -3
- package/dist/pine-core/p-d20f4c1d.system.js.map +0 -1
- package/dist/pine-core/p-dd40be84.entry.js +0 -2
- package/dist/pine-core/p-dd40be84.entry.js.map +0 -1
- package/dist/pine-core/p-e339312d.entry.js +0 -2
- package/dist/pine-core/p-e339312d.entry.js.map +0 -1
- package/dist/pine-core/p-e52afdbe.entry.js +0 -2
- package/dist/pine-core/p-e52afdbe.entry.js.map +0 -1
- package/dist/pine-core/p-e705a6ad.system.entry.js +0 -2
- package/dist/pine-core/p-e705a6ad.system.entry.js.map +0 -1
- package/dist/pine-core/p-ed4e6972.entry.js +0 -2
- package/dist/pine-core/p-ed4e6972.entry.js.map +0 -1
- package/dist/pine-core/p-f8c08ca7.system.entry.js +0 -2
- package/dist/pine-core/p-f8c08ca7.system.entry.js.map +0 -1
- /package/dist/esm-es5/{pds-label-c806218b.js.map → pds-label-62469596.js.map} +0 -0
- /package/dist/pine-core/{p-e8874481.system.entry.js.map → p-1a1a76ea.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b491e677.entry.js.map → p-396014d3.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d0948e17.entry.js.map → p-65229490.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b4f7b883.system.entry.js.map → p-84d36583.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-7bc0b531.js.map → p-a9038f7f.js.map} +0 -0
- /package/dist/pine-core/{p-99c6c7fe.system.js.map → p-db622f8f.system.js.map} +0 -0
- /package/dist/pine-core/{p-f5597dce.entry.js.map → p-e2a673e8.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f86af20f.system.js.map → p-e3fab4be.system.js.map} +0 -0
- /package/dist/pine-core/{p-6293581d.system.entry.js.map → p-f16ef73c.system.entry.js.map} +0 -0
package/components/pds-radio.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { a as assignDescription, P as PdsLabel, m as messageId } from './pds-label.js';
|
|
3
|
+
import { b as danger } from './index2.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './pds-icon2.js';
|
|
3
5
|
|
|
4
|
-
const
|
|
5
|
-
const PdsRadioStyle0 =
|
|
6
|
+
const baseCss = ".sc-pds-radio:where(*:not(slot),*.sc-pds-radio:not(slot)::before,*.sc-pds-radio:not(slot)::after){-webkit-box-sizing:border-box;box-sizing:border-box}.sc-pds-radio:where(*:not(slot)){margin:0}.sc-pds-radio:where(img,picture.sc-pds-radio,video.sc-pds-radio,canvas.sc-pds-radio,svg).sc-pds-radio{display:block;max-width:100%}.sc-pds-radio:where(input,button.sc-pds-radio,textarea.sc-pds-radio,select).sc-pds-radio{font:inherit}.sc-pds-radio:where(p,h1.sc-pds-radio,h2.sc-pds-radio,h3.sc-pds-radio,h4.sc-pds-radio,h5.sc-pds-radio,h6).sc-pds-radio{overflow-wrap:break-word}.sc-pds-radio:where(a:not([href]):not([class])){color:currentColor;text-decoration:none}.sc-pds-radio:where(a:not([href]):not([class]):hover){color:currentColor;text-decoration:none}.sc-pds-radio:where(ul[role=list],ol[role=list]).sc-pds-radio{list-style:none}.sc-pds-radio:where(table){border-collapse:collapse;border-spacing:0}.sc-pds-radio:where(*:not(slot)){font:var(--pine-typography-body-md-default);letter-spacing:var(--pine-letter-spacing-body-md)}.sc-pds-radio:where(h1,h2.sc-pds-radio,h3.sc-pds-radio,h4.sc-pds-radio,h5.sc-pds-radio,h6).sc-pds-radio{font-family:var(--pine-font-family-heading);color:var(--pine-color-grey-950)}.sc-pds-radio:where(h1){font:var(--pine-typography-heading-h1);letter-spacing:var(--pine-letter-spacing-heading-h1)}.sc-pds-radio:where(h2){font:var(--pine-typography-heading-h2);letter-spacing:var(--pine-letter-spacing-heading-h2)}.sc-pds-radio:where(h3){font:var(--pine-typography-heading-h3);letter-spacing:var(--pine-letter-spacing-heading-h3)}.sc-pds-radio:where(h4){font:var(--pine-typography-heading-h4);letter-spacing:var(--pine-letter-spacing-heading-h4)}.sc-pds-radio:where(h5){font:var(--pine-typography-heading-h5);letter-spacing:var(--pine-letter-spacing-heading-h5)}.sc-pds-radio:where(h6){font:var(--pine-typography-heading-h6);letter-spacing:var(--pine-letter-spacing-heading-h6)}.sc-pds-radio:where(div,label.sc-pds-radio,p.sc-pds-radio,span).sc-pds-radio{color:var(--pine-color-text-default)}.sc-pds-radio:where(code,kbd.sc-pds-radio,pre.sc-pds-radio,samp).sc-pds-radio{font-family:monospace}.sc-pds-radio:where([role=button]){cursor:pointer}.sc-pds-radio:where(:focus){outline:0}.sc-pds-radio:where(:focus-visible){outline:var(--pine-border-width-thick) solid var(--pine-color-purple-500)}.sc-pds-radio:where([hidden]){display:none !important}";
|
|
7
|
+
const PdsRadioStyle0 = baseCss;
|
|
8
|
+
|
|
9
|
+
const pdsRadioCss = ".sc-pds-radio-h{--border-interactive-default:var(--pine-border-interactive-default);--border-interactive-hover:var(--pine-border-interactive-hover);--border-radius:var(--pine-border-radius-circle);--box-shadow-focus:0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-purple-300);--box-shadow-focus-error:0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-red-200);--color-background-checked:var(--pine-color-purple-500);--color-background-checked-hover:var(--pine-color-purple-600);--color-background-default:var(--pine-color-white);--color-background-disabled:var(--pine-color-grey-100);--color-background-hover:var(--pine-color-grey-50);--color-background-checked-invalid:var(--pine-color-red-500);--color-background-checked-invalid-hover:var(--pine-color-red-600);--color-border-checked-hover:var(--pine-color-purple-600);--color-border-disabled:var(--pine-color-grey-300);--color-border-invalid:var(--pine-color-red-500);--color-border-checked-invalid-hover:var(--pine-color-red-600);--color-text-invalid:var(--pine-color-red-500);--color-text-disabled:var(---pine-color-grey-600);--color-text-message-default:var(--pine-color-grey-800);--color-text-message-disabled:var(--pine-color-grey-500);--sizing-check-size:6px;--sizing-input-size:16px;--sizing-margin-block-start:6px;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap}.is-invalid.sc-pds-radio-h input.sc-pds-radio{border-color:var(--color-border-invalid)}.is-invalid.sc-pds-radio-h input.sc-pds-radio:checked{background:var(--color-background-checked-invalid)}.is-invalid.sc-pds-radio-h input.sc-pds-radio:checked:hover{background:var(--color-background-checked-invalid-hover);border-color:var(--color-border-checked-invalid-hover)}.is-invalid.sc-pds-radio-h input.sc-pds-radio:focus-visible{-webkit-box-shadow:var(--box-shadow-focus-error);box-shadow:var(--box-shadow-focus-error);outline:none}.is-invalid.sc-pds-radio-h label.sc-pds-radio,.is-invalid.sc-pds-radio-h .pds-radio__message--error.sc-pds-radio{color:var(--color-text-invalid)}input.sc-pds-radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:var(--border-interactive-default);border-radius:var(--border-radius);height:var(--sizing-input-size);margin:0;position:relative;width:var(--sizing-input-size)}input.sc-pds-radio:hover{background:var(--color-background-hover);border:var(--border-interactive-hover)}input.sc-pds-radio:checked{background:var(--color-background-checked);border-color:var(--color-background-checked)}input.sc-pds-radio:checked:hover{background:var(--color-background-checked-hover);border-color:var(--color-border-checked-hover)}input.sc-pds-radio:checked::after{background:var(--color-background-default);border-radius:50%;content:\"\";display:block;height:var(--sizing-check-size);left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:var(--sizing-check-size)}input.sc-pds-radio:disabled{background:var(--color-background-disabled);border-color:var(--color-border-disabled);cursor:not-allowed}input.sc-pds-radio:disabled:checked{border-color:var(--color-border-disabled)}input.sc-pds-radio:disabled:checked::after{border-color:var(--color-border-disabled)}input.sc-pds-radio:disabled+label.sc-pds-radio{color:var(--color-border-hover);cursor:not-allowed}input.sc-pds-radio:disabled~.pds-radio__message.sc-pds-radio{color:var(--color-text-message-disabled)}input.sc-pds-radio:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}label.sc-pds-radio{font-weight:var(--pine-font-weight-body-medium);-webkit-margin-start:10px;margin-inline-start:10px}.pds-radio__message.sc-pds-radio{color:var(--pine-color-grey-700);-webkit-margin-before:var(--sizing-margin-block-start);margin-block-start:var(--sizing-margin-block-start);-webkit-margin-start:26px;margin-inline-start:26px;width:100%}.pds-radio__message--error.sc-pds-radio{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;font-size:var(--pine-font-size-085);gap:var(--pine-spacing-050)}";
|
|
10
|
+
const PdsRadioStyle1 = pdsRadioCss;
|
|
6
11
|
|
|
7
12
|
const PdsRadio$1 = /*@__PURE__*/ proxyCustomElement(class PdsRadio extends HTMLElement {
|
|
8
13
|
constructor() {
|
|
@@ -18,12 +23,12 @@ const PdsRadio$1 = /*@__PURE__*/ proxyCustomElement(class PdsRadio extends HTMLE
|
|
|
18
23
|
this.pdsRadioChange.emit(isChecked);
|
|
19
24
|
};
|
|
20
25
|
this.checked = false;
|
|
26
|
+
this.componentId = undefined;
|
|
21
27
|
this.disabled = false;
|
|
22
28
|
this.errorMessage = undefined;
|
|
29
|
+
this.helperMessage = undefined;
|
|
23
30
|
this.invalid = false;
|
|
24
|
-
this.componentId = undefined;
|
|
25
31
|
this.label = undefined;
|
|
26
|
-
this.helperMessage = undefined;
|
|
27
32
|
this.name = undefined;
|
|
28
33
|
this.required = false;
|
|
29
34
|
this.value = undefined;
|
|
@@ -39,19 +44,19 @@ const PdsRadio$1 = /*@__PURE__*/ proxyCustomElement(class PdsRadio extends HTMLE
|
|
|
39
44
|
return classNames.join(' ');
|
|
40
45
|
}
|
|
41
46
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
43
|
-
h("div", { key: '
|
|
44
|
-
h("div", { key: '
|
|
47
|
+
return (h(Host, { key: '1e65b437028814fdd4d03f5061140725e9004757', class: this.classNames() }, h("input", { key: '5f4789365bdc2cfdc0a46623dc71dea8f0f1020d', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, type: "radio", id: this.componentId, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleRadioChange }), h(PdsLabel, { key: 'd9dc6f65cb3c10bd2b89fd741d224e027bd6506d', htmlFor: this.componentId, text: this.label }), this.helperMessage &&
|
|
48
|
+
h("div", { key: 'e3e26f4899dc7b9540f6542970da67c51d45c92d', class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
|
|
49
|
+
h("div", { key: 'eccaa4397a33b4bee144233c8e18c0be0b2ec20c', class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: '9d22c23b9587a026827acac24d20ca1e7afcb5d3', icon: danger, size: "small" }), this.errorMessage)));
|
|
45
50
|
}
|
|
46
|
-
static get style() { return PdsRadioStyle0; }
|
|
51
|
+
static get style() { return PdsRadioStyle0 + PdsRadioStyle1; }
|
|
47
52
|
}, [2, "pds-radio", {
|
|
48
53
|
"checked": [4],
|
|
54
|
+
"componentId": [1, "component-id"],
|
|
49
55
|
"disabled": [4],
|
|
50
56
|
"errorMessage": [1, "error-message"],
|
|
57
|
+
"helperMessage": [1, "helper-message"],
|
|
51
58
|
"invalid": [4],
|
|
52
|
-
"componentId": [1, "component-id"],
|
|
53
59
|
"label": [1],
|
|
54
|
-
"helperMessage": [1, "helper-message"],
|
|
55
60
|
"name": [1],
|
|
56
61
|
"required": [4],
|
|
57
62
|
"value": [1]
|
|
@@ -60,13 +65,18 @@ function defineCustomElement$1() {
|
|
|
60
65
|
if (typeof customElements === "undefined") {
|
|
61
66
|
return;
|
|
62
67
|
}
|
|
63
|
-
const components = ["pds-radio"];
|
|
68
|
+
const components = ["pds-radio", "pds-icon"];
|
|
64
69
|
components.forEach(tagName => { switch (tagName) {
|
|
65
70
|
case "pds-radio":
|
|
66
71
|
if (!customElements.get(tagName)) {
|
|
67
72
|
customElements.define(tagName, PdsRadio$1);
|
|
68
73
|
}
|
|
69
74
|
break;
|
|
75
|
+
case "pds-icon":
|
|
76
|
+
if (!customElements.get(tagName)) {
|
|
77
|
+
defineCustomElement$2();
|
|
78
|
+
}
|
|
79
|
+
break;
|
|
70
80
|
} });
|
|
71
81
|
}
|
|
72
82
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pds-radio.js","mappings":";;;AAAA,MAAM,WAAW,GAAG,smGAAsmG,CAAC;AAC3nG,uBAAe,WAAW;;MCQbA,UAAQ;;;;;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":["PdsRadio"],"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 1px #ffffff, 0 0 0 3px var(--color-focus);\n --box-shadow-focus-error: 0 0 0 1px #ffffff, 0 0 0 3px var(--color-invalid-focus);\n\n --color: var(--pine-color-grey-700);\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-grey-950);\n --color-disabled: var(---pine-color-grey-500);\n --color-focus: var(--pine-color-purple-300);\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-085);\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
|
+
{"file":"pds-radio.js","mappings":";;;;;AAAA,MAAM,OAAO,GAAG,k0EAAk0E,CAAC;AACn1E,uBAAe,OAAO;;ACDtB,MAAM,WAAW,GAAG,igIAAigI,CAAC;AACthI,uBAAe,WAAW;;MCSbA,UAAQ;;;;;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;;wBAWJ,KAAK;;;uBAgBJ,KAAK;;;wBAgBN,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,IAErB,iEAAU,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,OAAO,GAAG,EACtC,IAAI,CAAC,YAAY,CACd,CAEH,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsRadio"],"sources":["src/global/styles/base.scss?tag=pds-radio&encapsulation=scoped","src/components/pds-radio/pds-radio.scss?tag=pds-radio&encapsulation=scoped","src/components/pds-radio/pds-radio.tsx"],"sourcesContent":["// TODO: replace core tokens with semantic\n// Heading color + outline\n\n/*\n Josh's Custom CSS Reset\n https://www.joshwcomeau.com/css/custom-css-reset/\n*/\n:where(*:not(slot), *:not(slot)::before, *:not(slot)::after) {\n box-sizing: border-box;\n}\n\n:where(*:not(slot)) {\n margin: 0;\n}\n\n:where(img, picture, video, canvas, svg) {\n display: block;\n max-width: 100%;\n}\n\n:where(input, button, textarea, select) {\n font: inherit;\n}\n\n:where(p, h1, h2, h3, h4, h5, h6) {\n overflow-wrap: break-word;\n}\n\n/*\n Additional Reset Styles\n*/\n:where(a:not([href]):not([class])) {\n color: currentColor;\n text-decoration: none;\n}\n\n:where(a:not([href]):not([class]):hover) {\n color: currentColor;\n text-decoration: none;\n}\n\n:where(ul[role='list'], ol[role='list']) {\n list-style: none;\n}\n\n:where(table) {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\n/*\n Mercury Base Styles\n*/\n// Typography\n:where(*:not(slot)) {\n font: var(--pine-typography-body-md-default);\n letter-spacing: var(--pine-letter-spacing-body-md);\n}\n\n:where(h1, h2, h3, h4, h5, h6) {\n font-family: var(--pine-font-family-heading);\n color: var(--pine-color-grey-950);\n}\n\n:where(h1) {\n font: var(--pine-typography-heading-h1);\n letter-spacing: var(--pine-letter-spacing-heading-h1);\n}\n\n:where(h2) {\n font: var(--pine-typography-heading-h2);\n letter-spacing: var(--pine-letter-spacing-heading-h2);\n}\n\n:where(h3) {\n font: var(--pine-typography-heading-h3);\n letter-spacing: var(--pine-letter-spacing-heading-h3);\n}\n\n:where(h4) {\n font: var(--pine-typography-heading-h4);\n letter-spacing: var(--pine-letter-spacing-heading-h4);\n}\n\n:where(h5) {\n font: var(--pine-typography-heading-h5);\n letter-spacing: var(--pine-letter-spacing-heading-h5);\n}\n\n:where(h6) {\n font: var(--pine-typography-heading-h6);\n letter-spacing: var(--pine-letter-spacing-heading-h6);\n}\n\n:where(div, label, p, span) {\n color: var(--pine-color-text-default);\n}\n\n:where(code, kbd, pre, samp) {\n font-family: monospace;\n}\n\n// Accessibility\n:where([role=\"button\"]) {\n cursor: pointer;\n}\n\n:where(:focus) {\n outline: 0;\n}\n\n:where(:focus-visible) {\n outline: var(--pine-border-width-thick) solid var(--pine-color-purple-500);\n}\n\n// Misc.\n:where([hidden]) {\n display: none !important;\n}\n",":host {\n --border-interactive-default: var(--pine-border-interactive-default);\n --border-interactive-hover: var(--pine-border-interactive-hover);\n --border-radius: var(--pine-border-radius-circle);\n\n --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-purple-300);\n --box-shadow-focus-error: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-red-200);\n\n --color-background-checked: var(--pine-color-purple-500);\n --color-background-checked-hover: var(--pine-color-purple-600);\n --color-background-default: var(--pine-color-white);\n --color-background-disabled: var(--pine-color-grey-100);\n --color-background-hover: var(--pine-color-grey-50);\n --color-background-checked-invalid: var(--pine-color-red-500);\n --color-background-checked-invalid-hover: var(--pine-color-red-600);\n --color-border-checked-hover: var(--pine-color-purple-600);\n --color-border-disabled: var(--pine-color-grey-300);\n --color-border-invalid: var(--pine-color-red-500);\n --color-border-checked-invalid-hover: var(--pine-color-red-600);\n --color-text-invalid: var(--pine-color-red-500);\n --color-text-disabled: var(---pine-color-grey-600);\n --color-text-message-default: var(--pine-color-grey-800);\n --color-text-message-disabled: var(--pine-color-grey-500);\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-border-invalid);\n\n &:checked {\n background: var(--color-background-checked-invalid);\n\n &:hover {\n background: var(--color-background-checked-invalid-hover);\n border-color: var(--color-border-checked-invalid-hover);\n }\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-text-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: var(--border-interactive-hover);\n }\n\n &:checked {\n background: var(--color-background-checked);\n border-color: var(--color-background-checked);\n\n &:hover {\n background: var(--color-background-checked-hover);\n border-color: var(--color-border-checked-hover);\n }\n\n &::after {\n background: var(--color-background-default);\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 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-text-message-disabled);\n }\n }\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus);\n outline: none;\n }\n\n}\n\nlabel {\n font-weight: var(--pine-font-weight-body-medium);\n margin-inline-start: 10px;\n}\n\n.pds-radio__message {\n color: var(--pine-color-grey-700);\n margin-block-start: var(--sizing-margin-block-start);\n margin-inline-start: 26px;\n width: 100%;\n}\n\n.pds-radio__message--error {\n align-items: center;\n display: flex;\n font-size: var(--pine-font-size-085);\n gap: var(--pine-spacing-050);\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';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-radio',\n styleUrls: ['../../global/styles/base.scss', '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 * A unique identifier used for the underlying component `id` attribute and the label `for` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Determines whether or not the radio is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * Displays error message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Displays helper message text below radio.\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines whether or not the radio is invalid.\n * @defaultValue false\n */\n @Prop() invalid = false;\n\n /**\n * String used for label text next to radio.\n */\n @Prop() label: 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 <pds-icon icon={danger} size=\"small\" />\n {this.errorMessage}\n </div>\n }\n </Host>\n );\n }\n}\n"],"version":3}
|
package/components/pds-row.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const pdsRowCss = ":host{--border-default:var(--pine-border-width-thin) solid var(--pine-color-grey-300)
|
|
3
|
+
const pdsRowCss = ":host {\n --border-default: var(--pine-border-width-thin) solid var(--pine-color-grey-300);\n --row-gap-y: calc(var(--pine-spacing-250) / 2);\n --row-gap-x: 10px;\n display: block;\n -webkit-margin-after: calc(var(--row-gap-y) * -1);\n margin-block-end: calc(var(--row-gap-y) * -1);\n -webkit-margin-before: calc(var(--row-gap-y) * -1);\n margin-block-start: calc(var(--row-gap-y) * -1);\n -webkit-margin-end: calc(var(--row-gap-x) * -0.5);\n margin-inline-end: calc(var(--row-gap-x) * -0.5);\n -webkit-margin-start: calc(var(--row-gap-x) * -0.5);\n margin-inline-start: calc(var(--row-gap-x) * -0.5);\n}\n\n.pds-row {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-positive: 1;\n flex-grow: 1;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-margin-after: calc(var(--row-gap-y) * -1);\n margin-block-end: calc(var(--row-gap-y) * -1);\n -webkit-margin-before: calc(var(--row-gap-y) * -1);\n margin-block-start: calc(var(--row-gap-y) * -1);\n -webkit-margin-end: calc(var(--row-gap-x) * -1);\n margin-inline-end: calc(var(--row-gap-x) * -1);\n -webkit-margin-start: calc(var(--row-gap-x) * -1);\n margin-inline-start: calc(var(--row-gap-x) * -1);\n}\n@layer layout {\n .pds-row > * {\n -webkit-padding-after: calc(var(--row-gap-y));\n padding-block-end: calc(var(--row-gap-y));\n -webkit-padding-before: calc(var(--row-gap-y));\n padding-block-start: calc(var(--row-gap-y));\n -webkit-padding-end: calc(var(--row-gap-x));\n padding-inline-end: calc(var(--row-gap-x));\n -webkit-padding-start: calc(var(--row-gap-x));\n padding-inline-start: calc(var(--row-gap-x));\n }\n}\n\n.pds-row--no-wrap {\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n}\n\n.pds-row--border {\n border: var(--border-default);\n}\n\n.pds-justify-content-start {\n -ms-flex-pack: start;\n justify-content: start;\n}\n\n.pds-justify-content-center {\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.pds-justify-content-end {\n -ms-flex-pack: end;\n justify-content: end;\n}\n\n.pds-justify-content-space-between {\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.pds-justify-content-space-around {\n -ms-flex-pack: distribute;\n justify-content: space-around;\n}\n\n.pds-justify-content-space-evenly {\n -ms-flex-pack: space-evenly;\n justify-content: space-evenly;\n}\n\n.pds-align-items-start {\n -ms-flex-align: start;\n align-items: start;\n}\n\n.pds-align-items-center {\n -ms-flex-align: center;\n align-items: center;\n}\n\n.pds-align-items-end {\n -ms-flex-align: end;\n align-items: end;\n}\n\n.pds-align-items-stretch {\n -ms-flex-align: stretch;\n align-items: stretch;\n}\n\n.pds-align-items-baseline {\n -ms-flex-align: baseline;\n align-items: baseline;\n}";
|
|
4
4
|
const PdsRowStyle0 = pdsRowCss;
|
|
5
5
|
|
|
6
6
|
const PdsRow$1 = /*@__PURE__*/ proxyCustomElement(class PdsRow extends HTMLElement {
|
|
@@ -38,7 +38,7 @@ const PdsRow$1 = /*@__PURE__*/ proxyCustomElement(class PdsRow extends HTMLEleme
|
|
|
38
38
|
})), (this.minHeight && {
|
|
39
39
|
'min-height': this.minHeight,
|
|
40
40
|
}));
|
|
41
|
-
return h(Host, { key: '
|
|
41
|
+
return h(Host, { key: '1760d9bd45d53d371c0a4c73171a12a6e4c59b51', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
|
|
42
42
|
}
|
|
43
43
|
static get style() { return PdsRowStyle0; }
|
|
44
44
|
}, [0, "pds-row", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pds-row.js","mappings":";;AAAA,MAAM,SAAS,GAAG,
|
|
1
|
+
{"file":"pds-row.js","mappings":";;AAAA,MAAM,SAAS,GAAG,msFAAmsF,CAAC;AACttF,qBAAe,SAAS;;MCOXA,QAAM;;;;QAsCT,cAAS,GAA2C;YAC1D,IAAI,EAAE,GAAG;YACT,GAAG,EAAE,QAAQ;YACb,EAAE,EAAE,OAAO;YACX,EAAE,EAAE,MAAM;YACV,EAAE,EAAE,QAAQ;YACZ,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,MAAM;YACV,GAAG,EAAE,MAAM;SACZ,CAAC;;sBArCgB,KAAK;;;;;sBA0BL,KAAK;;IAavB,MAAM;QACJ,MAAM,UAAU,GAAG;MACjB,IAAI,CAAC,UAAU,KAAK,SAAS,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,mBAAmB,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE;MAC1G,IAAI,CAAC,MAAM,GAAG,iBAAiB,GAAG,EAAE;MACpC,IAAI,CAAC,cAAc,KAAK,SAAS,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,uBAAuB,IAAI,CAAC,cAAc,EAAE,GAAG,EAAE;MAC1H,IAAI,CAAC,MAAM,GAAG,kBAAkB,GAAG,EAAE;GACxC,CAAC;QAEA,MAAM,eAAe,oCACf,IAAI,CAAC,MAAM,IAAI;YACjB,aAAa,EAAE,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE;YACxG,aAAa,EAAE,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE;SACzG,KACG,IAAI,CAAC,SAAS,IAAI;YACpB,YAAY,EAAE,IAAI,CAAC,SAAS;SAC7B,EACF,CAAC;QAEF,OAAO,EAAC,IAAI,qDAAC,KAAK,EAAE,WAAW,UAAU,EAAE,EAAE,KAAK,EAAE,eAAe,GAAS,CAAC;KAC9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsRow"],"sources":["src/components/pds-row/pds-row.scss?tag=pds-row","src/components/pds-row/pds-row.tsx"],"sourcesContent":[":host {\n --border-default: var(--pine-border-width-thin) solid var(--pine-color-grey-300);\n --row-gap-y: calc(var(--pine-spacing-250) / 2);\n --row-gap-x: 10px;\n\n display: block;\n margin-block-end: calc(var(--row-gap-y) * -1);\n margin-block-start: calc(var(--row-gap-y) * -1);\n margin-inline-end: calc(var(--row-gap-x) * -0.5);\n margin-inline-start: calc(var(--row-gap-x) * -0.5);\n}\n\n.pds-row {\n display: flex;\n flex-grow: 1;\n flex-wrap: wrap;\n margin-block-end: calc(var(--row-gap-y) * -1);\n margin-block-start: calc(var(--row-gap-y) * -1);\n margin-inline-end: calc(var(--row-gap-x) * -1);\n margin-inline-start: calc(var(--row-gap-x) * -1);\n\n @layer layout {\n > * {\n padding-block-end: calc(var(--row-gap-y));\n padding-block-start: calc(var(--row-gap-y));\n padding-inline-end: calc(var(--row-gap-x));\n padding-inline-start: calc(var(--row-gap-x));\n }\n }\n}\n\n.pds-row--no-wrap {\n flex-wrap: nowrap;\n}\n\n.pds-row--border {\n border: var(--border-default);\n}\n\n// Justify Content helpers\n.pds-justify-content-start {\n justify-content: start;\n}\n\n.pds-justify-content-center {\n justify-content: center;\n}\n\n.pds-justify-content-end {\n justify-content: end;\n}\n\n.pds-justify-content-space-between {\n justify-content: space-between;\n}\n\n.pds-justify-content-space-around {\n justify-content: space-around;\n}\n\n.pds-justify-content-space-evenly {\n justify-content: space-evenly;\n}\n\n// Align Items helpers\n.pds-align-items-start {\n align-items: start;\n}\n\n.pds-align-items-center {\n align-items: center;\n}\n\n.pds-align-items-end {\n align-items: end;\n}\n\n.pds-align-items-stretch {\n align-items: stretch;\n}\n\n.pds-align-items-baseline {\n align-items: baseline;\n}\n","import { Component, Prop, h, Host } from '@stencil/core';\n\nimport { BoxTShirtSizeType } from '../../utils/types';\n\n@Component({\n tag: 'pds-row',\n styleUrl: 'pds-row.scss',\n})\nexport class PdsRow {\n /**\n * Defines the vertical alignment of the row items.\n * @defaultValue start\n */\n @Prop() alignItems?: `start` | `center` | `end` | `baseline` | `stretch`;\n\n /**\n * If `true`, the row will have a border.\n */\n @Prop() border? = false;\n\n /**\n * Defines the spacing between the row items.\n */\n @Prop() colGap?: BoxTShirtSizeType | null;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Defines the horizontal alignment of the row items.\n * @defaultValue start\n */\n @Prop() justifyContent?: `start` | `center` | `end` | `space-between` | `space-around`;\n\n /**\n * The minimum height of the row. Used in conjunction with alignment props\n */\n @Prop() minHeight?: string;\n\n /**\n * If `true`, the row items will not wrap to the next line if horizontal space is not available.\n */\n @Prop() noWrap? = false;\n\n private colGapMap: { [key in BoxTShirtSizeType]: string } = {\n none: '0',\n xxs: '.25rem',\n xs: '.5rem',\n sm: '1rem',\n md: '1.5rem',\n lg: '2.25rem',\n xl: '3rem',\n xxl: '4rem',\n };\n\n render() {\n const rowClasses = `\n ${this.alignItems !== undefined && this.alignItems.trim() !== '' ? `pds-align-items-${this.alignItems}` : ''}\n ${this.border ? 'pds-row--border' : ''}\n ${this.justifyContent !== undefined && this.justifyContent.trim() !== '' ? `pds-justify-content-${this.justifyContent}` : ''}\n ${this.noWrap ? 'pds-row--no-wrap' : ''}\n `;\n\n const rowInlineStyles = {\n ...(this.colGap && {\n '--row-gap-x': this.colGap !== undefined && this.colGap.trim() !== '' ? this.colGapMap[this.colGap] : '',\n '--row-gap-y': this.colGap !== undefined && this.colGap.trim() !== '' ? this.colGapMap[this.colGap] : '',\n }),\n ...(this.minHeight && {\n 'min-height': this.minHeight,\n }),\n };\n\n return <Host class={`pds-row ${rowClasses}`} style={rowInlineStyles}></Host>;\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface PdsSelect extends Components.PdsSelect, HTMLElement {}
|
|
4
|
+
export const PdsSelect: {
|
|
5
|
+
prototype: PdsSelect;
|
|
6
|
+
new (): PdsSelect;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { m as messageId, P as PdsLabel } from './pds-label.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './pds-icon2.js';
|
|
4
|
+
|
|
5
|
+
const pdsSelectCss = ":host{--box-shadow-focus:0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-purple-300);--box-shadow-focus-error:0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-red-300);--color-background-disabled:var(--pine-color-grey-100);--color-background-error:var(--pine-color-red-050);--color-border-active:var(--pine-color-grey-400);--color-border-default:var(--pine-color-grey-300);--color-border-disabled:var(--pine-color-grey-200);--color-border-error:var(--pine-color-red-600);--color-border-hover:var(--pine-color-grey-500);--color-text-disabled:var(--pine-color-grey-600);--color-text-error:var(--pine-color-red-600);--font-size-helper-message:var(--pine-font-size-085);--font-size-select-field:var(--pine-font-size-100);--font-size-label:var(--pine-font-size-100);--font-weight-helper-message:var(--pine-font-weight-normal);--font-weight-select-field:var(--pine-font-weight-normal);--font-weight-label:var(--pine-font-weight-medium);--line-height-label:var(--pine-line-height-150);--line-height-helper-message:var(--pine-line-height-125);--line-height-select-field:var(--pine-line-height-150);--spacing-error-message:var(--pine-spacing-050);--spacing-field-padding-block:var(--pine-spacing-100);--spacing-label-margin-block-end:var(--pine-spacing-100);--spacing-margin-top-helper-message:var(--pine-spacing-100);--spacing-select-field-padding-inline:var(--pine-spacing-150);--spacing-select-field-icon-allowance:var(--pine-spacing-450)}:host .hidden,:host :host([hidden]){display:none}.pds-select{display:grid;-ms-flex-direction:column;flex-direction:column;grid-template-areas:\"label label\" \"field field\" \"message message\";grid-template-columns:1fr minmax(2rem, -webkit-min-content);grid-template-columns:1fr minmax(2rem, min-content);grid-template-rows:-webkit-min-content -webkit-min-content -webkit-min-content;grid-template-rows:min-content min-content min-content;position:relative;width:100%}label{font-size:var(--font-size-label);font-weight:var(--font-weight-label);grid-area:label;line-height:var(--line-height-label);-webkit-margin-after:var(--spacing-label-margin-block-end);margin-block-end:var(--spacing-label-margin-block-end)}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--color-border-default);border-radius:10px;font-size:var(--font-size-select-field);font-weight:var(--font-weight-select-field);grid-area:field;line-height:var(--line-height-select-field);padding:var(--spacing-field-padding-block) var(--spacing-select-field-padding-inline);padding-right:var(--spacing-select-field-icon-allowance);position:relative}select:hover{border-color:var(--color-border-hover);cursor:pointer}select:focus-visible{border-color:var(--color-border-active);-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}select:disabled{background-color:var(--color-background-disabled);border-color:var(--color-border-disabled);color:var(--color-text-disabled);cursor:not-allowed}select:has(~.pds-select__message .pds-select__error-message){background-color:var(--color-background-error);border-color:var(--color-border-error)}select:has(~.pds-select__message .pds-select__error-message):focus-visible{-webkit-box-shadow:var(--box-shadow-focus-error);box-shadow:var(--box-shadow-focus-error);outline:none}:host(.is-invalid) select{background-color:var(--color-background-error);border-color:var(--color-border-error)}:host(.is-invalid) select:focus-visible{-webkit-box-shadow:var(--box-shadow-focus-error);box-shadow:var(--box-shadow-focus-error);outline:none}.pds-select__error-message,.pds-select__helper-message{font-size:var(--font-size-helper-message);font-weight:var(--font-weight-helper-message);line-height:var(--line-height-helper-message);-webkit-margin-after:0;margin-block-end:0;-webkit-margin-before:var(--spacing-margin-top-helper-message);margin-block-start:var(--spacing-margin-top-helper-message)}.pds-select__error-message{-ms-flex-align:center;align-items:center;color:var(--color-text-error);display:-ms-flexbox;display:flex;gap:var(--spacing-error-message)}.pds-select__message{grid-area:message}.pds-select__select-icon{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;grid-column:-1/-2;grid-row:2/3;height:2.5rem;pointer-events:none;position:relative;z-index:1}";
|
|
6
|
+
const PdsSelectStyle0 = pdsSelectCss;
|
|
7
|
+
|
|
8
|
+
const PdsSelect$1 = /*@__PURE__*/ proxyCustomElement(class PdsSelect extends HTMLElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.__attachShadow();
|
|
13
|
+
this.pdsSelectChange = createEvent(this, "pdsSelectChange", 7);
|
|
14
|
+
/**
|
|
15
|
+
* Emits an event on input change.
|
|
16
|
+
*/
|
|
17
|
+
this.onSelectUpdate = (e) => {
|
|
18
|
+
const target = e.target;
|
|
19
|
+
const values = Array.from(target.options)
|
|
20
|
+
.filter((option) => (option.selected))
|
|
21
|
+
.map((option) => (option.value));
|
|
22
|
+
if (values.length === 1 && !this.multiple) {
|
|
23
|
+
this.value = values[0];
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
this.value = values;
|
|
27
|
+
}
|
|
28
|
+
this.pdsSelectChange.emit(e);
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Handles the change event for the slot element.
|
|
32
|
+
* This method is triggered when the slot content changes.
|
|
33
|
+
* It updates the inner HTML of the select element by cloning and appending
|
|
34
|
+
* the assigned <option> elements from the slot.
|
|
35
|
+
*/
|
|
36
|
+
this.handleSlotChange = () => {
|
|
37
|
+
const slot = this.slotContainer.querySelector('slot');
|
|
38
|
+
this.selectEl.innerHTML = '';
|
|
39
|
+
const assignedElements = slot.assignedElements({ flatten: true });
|
|
40
|
+
assignedElements.forEach((item) => {
|
|
41
|
+
if (['OPTION', 'OPTGROUP'].includes(item.tagName)) {
|
|
42
|
+
const clonedItem = item.cloneNode(true);
|
|
43
|
+
if (clonedItem.tagName === 'OPTION' && clonedItem.value === this.value) {
|
|
44
|
+
clonedItem.selected = true;
|
|
45
|
+
}
|
|
46
|
+
this.selectEl.appendChild(clonedItem);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
this.updateSelectedOption();
|
|
50
|
+
};
|
|
51
|
+
this.autocomplete = undefined;
|
|
52
|
+
this.componentId = undefined;
|
|
53
|
+
this.disabled = false;
|
|
54
|
+
this.errorMessage = undefined;
|
|
55
|
+
this.helperMessage = undefined;
|
|
56
|
+
this.invalid = undefined;
|
|
57
|
+
this.label = undefined;
|
|
58
|
+
this.multiple = false;
|
|
59
|
+
this.name = undefined;
|
|
60
|
+
this.required = false;
|
|
61
|
+
this.value = undefined;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Handles the change in the value of the select component.
|
|
65
|
+
* This method is called whenever the value of the select component changes.
|
|
66
|
+
* It updates the selected option accordingly.
|
|
67
|
+
*/
|
|
68
|
+
valueChanged() {
|
|
69
|
+
this.updateSelectedOption();
|
|
70
|
+
}
|
|
71
|
+
componentWillLoad() {
|
|
72
|
+
this.updateSelectedOption();
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Updates the selected option in the select element based on the current value.
|
|
76
|
+
*
|
|
77
|
+
* This method iterates through all the options of the select element and sets the
|
|
78
|
+
* 'selected' attribute on the option that matches the current value. If an option
|
|
79
|
+
* does not match the current value, the 'selected' attribute is removed.
|
|
80
|
+
*
|
|
81
|
+
* @private
|
|
82
|
+
* @returns {void}
|
|
83
|
+
*/
|
|
84
|
+
updateSelectedOption() {
|
|
85
|
+
if (this.selectEl) {
|
|
86
|
+
const options = this.selectEl.options;
|
|
87
|
+
// Update the selected attribute for all options.
|
|
88
|
+
Array.from(options).map((option) => {
|
|
89
|
+
if (Array.isArray(this.value)) {
|
|
90
|
+
option.selected = this.value.includes(option.value);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
option.selected = this.value === option.value;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
getHelperMessage() {
|
|
99
|
+
return this.helperMessage && (h("p", { class: "pds-select__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage));
|
|
100
|
+
}
|
|
101
|
+
getErrorMessage() {
|
|
102
|
+
return this.errorMessage && (h("p", { class: "pds-select__error-message", id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { name: "danger", size: "small" }), this.errorMessage));
|
|
103
|
+
}
|
|
104
|
+
renderMessages() {
|
|
105
|
+
if (!this.helperMessage && !this.errorMessage)
|
|
106
|
+
return null;
|
|
107
|
+
return (h("div", { class: "pds-select__message" }, this.getHelperMessage(), this.getErrorMessage()));
|
|
108
|
+
}
|
|
109
|
+
classNames() {
|
|
110
|
+
const classNames = [];
|
|
111
|
+
if (this.invalid) {
|
|
112
|
+
classNames.push('is-invalid');
|
|
113
|
+
}
|
|
114
|
+
if (this.disabled) {
|
|
115
|
+
classNames.push('is-disabled');
|
|
116
|
+
}
|
|
117
|
+
return classNames.join(' ');
|
|
118
|
+
}
|
|
119
|
+
render() {
|
|
120
|
+
return (h(Host, { key: 'f0baf957ee67ee9171a41fc4171e548b94d5c22c', "aria-disabled": this.disabled ? 'true' : null, class: this.classNames() }, h("div", { key: '88ef7c54afc654133d613c91c4bb3fbfe4a944b3', class: "pds-select" }, h(PdsLabel, { key: '7723f468412f6567e0d4fd236807e1ba2fdea16a', htmlFor: this.componentId, text: this.label }), h("select", { key: '1bdb1e22360972aa6cb77902d1288abfcc9dbf07', autocomplete: this.autocomplete || undefined, class: "pds-select__field", disabled: this.disabled, id: this.componentId, multiple: this.multiple, name: this.name, onChange: this.onSelectUpdate, required: this.required, ref: (el) => (this.selectEl = el) }), h("div", { key: 'ddbac1f772b335688d7eb219a7ea3a9ab4a3192a', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, h("slot", { key: 'aa6093fd8833fdf4860dd8127c32f95405679a11', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && h("pds-icon", { key: 'de8dc37035701942d8b2bcf56b40edf2f6de20df', class: "pds-select__select-icon", name: "enlarge" }))));
|
|
121
|
+
}
|
|
122
|
+
static get watchers() { return {
|
|
123
|
+
"value": ["valueChanged"]
|
|
124
|
+
}; }
|
|
125
|
+
static get style() { return PdsSelectStyle0; }
|
|
126
|
+
}, [1, "pds-select", {
|
|
127
|
+
"autocomplete": [1],
|
|
128
|
+
"componentId": [1, "component-id"],
|
|
129
|
+
"disabled": [4],
|
|
130
|
+
"errorMessage": [1, "error-message"],
|
|
131
|
+
"helperMessage": [1, "helper-message"],
|
|
132
|
+
"invalid": [4],
|
|
133
|
+
"label": [1],
|
|
134
|
+
"multiple": [4],
|
|
135
|
+
"name": [1],
|
|
136
|
+
"required": [4],
|
|
137
|
+
"value": [1025]
|
|
138
|
+
}, undefined, {
|
|
139
|
+
"value": ["valueChanged"]
|
|
140
|
+
}]);
|
|
141
|
+
function defineCustomElement$1() {
|
|
142
|
+
if (typeof customElements === "undefined") {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
const components = ["pds-select", "pds-icon"];
|
|
146
|
+
components.forEach(tagName => { switch (tagName) {
|
|
147
|
+
case "pds-select":
|
|
148
|
+
if (!customElements.get(tagName)) {
|
|
149
|
+
customElements.define(tagName, PdsSelect$1);
|
|
150
|
+
}
|
|
151
|
+
break;
|
|
152
|
+
case "pds-icon":
|
|
153
|
+
if (!customElements.get(tagName)) {
|
|
154
|
+
defineCustomElement$2();
|
|
155
|
+
}
|
|
156
|
+
break;
|
|
157
|
+
} });
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
const PdsSelect = PdsSelect$1;
|
|
161
|
+
const defineCustomElement = defineCustomElement$1;
|
|
162
|
+
|
|
163
|
+
export { PdsSelect, defineCustomElement };
|
|
164
|
+
|
|
165
|
+
//# sourceMappingURL=pds-select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"pds-select.js","mappings":";;;;AAAA,MAAM,YAAY,GAAG,+rIAA+rI,CAAC;AACrtI,wBAAe,YAAY;;MCQdA,WAAS;;;;;;;;;QA+GZ,mBAAc,GAAG,CAAC,CAAQ;YAChC,MAAM,MAAM,GAAG,CAAC,CAAC,MAA2B,CAAA;YAE5C,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;iBACpC,MAAM,CAAC,CAAC,MAAM,MAAO,MAAM,CAAC,QAAQ,CAAC,CAAC;iBACtC,GAAG,CAAC,CAAC,MAAM,MAAO,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAEtC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;gBACvC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;aAC1B;iBAAM;gBACH,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;aACvB;YAED,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAe,CAAC,CAAC;SAC5C,CAAC;;;;;;;QAQM,qBAAgB,GAAG;YACzB,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAoB,CAAC;YAEzE,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAG,EAAE,CAAC;YAC7B,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAgD,CAAC;YAEjH,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI;gBAC5B,IAAK,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;oBAClD,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAA4C,CAAC;oBACnF,IAAI,UAAU,CAAC,OAAO,KAAK,QAAQ,IAAK,UAAgC,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,EAAE;wBAC5F,UAAgC,CAAC,QAAQ,GAAG,IAAI,CAAC;qBACnD;oBACD,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;iBACvC;aACF,CAAC,CAAC;YAEH,IAAI,CAAC,oBAAoB,EAAE,CAAC;SAC7B,CAAC;;;wBAnIiB,KAAK;;;;;wBA0BL,KAAK;;wBAWL,KAAK;;;;;;;;IAmBxB,YAAY;QACV,IAAI,CAAC,oBAAoB,EAAE,CAAC;KAC7B;IAED,iBAAiB;QACf,IAAI,CAAC,oBAAoB,EAAE,CAAC;KAC7B;;;;;;;;;;;IAYO,oBAAoB;QAC1B,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;;YAGtC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,MAAyB;gBAChD,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;oBAC7B,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;iBACrD;qBAAM;oBACL,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC;iBAC/C;aACF,CAAC,CAAC;SACJ;KACF;IA8CO,gBAAgB;QACtB,OAAO,IAAI,CAAC,aAAa,KACvB,SAAG,KAAK,EAAC,4BAA4B,EAAC,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,IAC5E,IAAI,CAAC,aAAa,CACjB,CACL,CAAC;KACH;IAEO,eAAe;QACrB,OAAO,IAAI,CAAC,YAAY,KACtB,SAAG,KAAK,EAAC,2BAA2B,EAAC,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,eAAY,WAAW,IAClG,gBAAU,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,GAAG,EACtC,IAAI,CAAC,YAAY,CAChB,CACL,CAAC;KACH;IAEO,cAAc;QACpB,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,IAAI,CAAC,YAAY;YAAE,OAAO,IAAI,CAAC;QAE3D,QACE,WAAK,KAAK,EAAC,qBAAqB,IAC7B,IAAI,CAAC,gBAAgB,EAAE,EACvB,IAAI,CAAC,eAAe,EAAE,CACnB,EACN;KACH;IAEO,UAAU;QAChB,MAAM,UAAU,GAAG,EAAE,CAAC;QAEtB,IAAI,IAAI,CAAC,OAAO,EAAE;YAAE,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SAAE;QACpD,IAAI,IAAI,CAAC,QAAQ,EAAE;YAAE,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAAE;QAEtD,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC9B;IAED,MAAM;QACJ,QACE,EAAC,IAAI,sEAAgB,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAC1E,4DAAK,KAAK,EAAC,YAAY,IACrB,EAAC,QAAQ,qDAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI,EACvD,+DACE,YAAY,EAAE,IAAI,CAAC,YAAY,IAAI,SAAS,EAC5C,KAAK,EAAC,mBAAmB,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,cAAc,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,QAAQ,GAAG,EAAuB,CAAC,GAC9C,EACZ,2EAAiB,MAAM,EAAC,KAAK,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC,IAC3E,6DAAM,YAAY,EAAE,IAAI,CAAC,gBAAgB,GAAS,CAC9C,EACL,IAAI,CAAC,cAAc,EAAE,EACrB,CAAC,IAAI,CAAC,QAAQ,IAAI,iEAAU,KAAK,EAAC,yBAAyB,EAAC,IAAI,EAAC,SAAS,GAAG,CAC1E,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsSelect"],"sources":["src/components/pds-select/pds-select.scss?tag=pds-select&encapsulation=shadow","src/components/pds-select/pds-select.tsx"],"sourcesContent":[":host {\n --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-purple-300);\n --box-shadow-focus-error: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-red-300);\n\n --color-background-disabled: var(--pine-color-grey-100);\n --color-background-error: var(--pine-color-red-050);\n --color-border-active: var(--pine-color-grey-400);\n --color-border-default: var(--pine-color-grey-300);\n --color-border-disabled: var(--pine-color-grey-200);\n --color-border-error: var(--pine-color-red-600);\n --color-border-hover: var(--pine-color-grey-500);\n --color-text-disabled: var(--pine-color-grey-600);\n --color-text-error: var(--pine-color-red-600);\n\n --font-size-helper-message: var(--pine-font-size-085);\n --font-size-select-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-select-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-select-field: var(--pine-line-height-150);\n\n --spacing-error-message: var(--pine-spacing-050);\n --spacing-field-padding-block: var(--pine-spacing-100);\n --spacing-label-margin-block-end: var(--pine-spacing-100);\n --spacing-margin-top-helper-message: var(--pine-spacing-100);\n --spacing-select-field-padding-inline: var(--pine-spacing-150);\n --spacing-select-field-icon-allowance: var(--pine-spacing-450);\n\n .hidden,\n :host([hidden]) {\n display: none;\n }\n}\n\n.pds-select {\n display: grid;\n flex-direction: column;\n grid-template-areas:\n 'label label'\n 'field field'\n 'message message';\n grid-template-columns: 1fr minmax(2rem, min-content);\n grid-template-rows: min-content min-content min-content;\n position: relative;\n width: 100%;\n}\n\nlabel {\n font-size: var(--font-size-label);\n font-weight: var(--font-weight-label);\n grid-area: label;\n line-height: var(--line-height-label);\n margin-block-end: var(--spacing-label-margin-block-end);\n}\n\nselect {\n appearance: none;\n border: 1px solid var(--color-border-default);\n border-radius: 10px;\n font-size: var(--font-size-select-field);\n font-weight: var(--font-weight-select-field);\n grid-area: field;\n line-height: var(--line-height-select-field);\n padding: var(--spacing-field-padding-block) var(--spacing-select-field-padding-inline);\n padding-right: var(--spacing-select-field-icon-allowance);\n position: relative;\n\n &:hover {\n border-color: var(--color-border-hover);\n cursor: pointer;\n }\n\n &:focus-visible {\n border-color: var(--color-border-active);\n box-shadow: var(--box-shadow-focus);\n outline: none;\n }\n\n &:disabled {\n background-color: var(--color-background-disabled);\n border-color: var(--color-border-disabled);\n color: var(--color-text-disabled);\n cursor: not-allowed;\n }\n\n &:has(~ .pds-select__message .pds-select__error-message) {\n background-color: var(--color-background-error);\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}\n\n:host(.is-invalid) {\n select {\n background-color: var(--color-background-error);\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}\n\n.pds-select__error-message,\n.pds-select__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-select__error-message {\n align-items: center;\n color: var(--color-text-error);\n display: flex;\n gap: var(--spacing-error-message);\n}\n\n.pds-select__message {\n grid-area: message;\n}\n\n.pds-select__select-icon {\n align-items: center;\n display: flex;\n grid-column: -1 / -2;\n grid-row: 2 / 3;\n height: 2.5rem;\n pointer-events: none;\n position: relative;\n z-index: 1;\n}\n","import { Component, Event, EventEmitter, Host, h, Prop, Watch } from '@stencil/core';\nimport { messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-select',\n styleUrl: 'pds-select.scss',\n shadow: true,\n})\nexport class PdsSelect {\n\n private selectEl!: HTMLSelectElement;\n private slotContainer!: HTMLDivElement;\n\n /**\n * Specifies if and how the browser provides `autocomplete` assistance for the field.\n */\n @Prop() autocomplete: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Indicates whether or not the select field is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false\n\n /**\n * Displays error message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Displays helper message text below select.\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines whether or not the select is invalid.\n */\n @Prop() invalid?: boolean;\n\n /**\n * Text to be displayed as the select label.\n */\n @Prop() label: string;\n\n /**\n * Indicates whether multiple options can be selected.\n * @defaultValue false\n */\n @Prop() multiple = false;\n\n /**\n * Specifies the name. Submitted with the form name/value pair.\n */\n @Prop() name!: string;\n\n /**\n * Indicates whether or not the select field is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * The value(s) of the selected option(s).\n *\n */\n @Prop({ mutable: true }) value?: string | string[];\n\n /**\n * Emitted when a keyboard input occurs.\n */\n @Event() pdsSelectChange: EventEmitter<InputEvent>;\n\n @Watch('value')\n /**\n * Handles the change in the value of the select component.\n * This method is called whenever the value of the select component changes.\n * It updates the selected option accordingly.\n */\n valueChanged() {\n this.updateSelectedOption();\n }\n\n componentWillLoad() {\n this.updateSelectedOption();\n }\n\n /**\n * Updates the selected option in the select element based on the current value.\n *\n * This method iterates through all the options of the select element and sets the\n * 'selected' attribute on the option that matches the current value. If an option\n * does not match the current value, the 'selected' attribute is removed.\n *\n * @private\n * @returns {void}\n */\n private updateSelectedOption() {\n if (this.selectEl) {\n const options = this.selectEl.options;\n\n // Update the selected attribute for all options.\n Array.from(options).map((option: HTMLOptionElement) => {\n if (Array.isArray(this.value)) {\n option.selected = this.value.includes(option.value);\n } else {\n option.selected = this.value === option.value;\n }\n });\n };\n }\n\n /**\n * Emits an event on input change.\n */\n private onSelectUpdate = (e: Event) => {\n const target = e.target as HTMLSelectElement\n\n const values = Array.from(target.options)\n .filter((option) => ( option.selected))\n .map((option) => ( option.value));\n\n if (values.length === 1 && !this.multiple) {\n this.value = values[0];\n } else {\n this.value = values;\n }\n\n this.pdsSelectChange.emit(e as InputEvent);\n };\n\n /**\n * Handles the change event for the slot element.\n * This method is triggered when the slot content changes.\n * It updates the inner HTML of the select element by cloning and appending\n * the assigned <option> elements from the slot.\n */\n private handleSlotChange = () => {\n const slot = this.slotContainer.querySelector('slot') as HTMLSlotElement;\n\n this.selectEl.innerHTML = '';\n const assignedElements = slot.assignedElements({ flatten: true }) as (HTMLOptionElement | HTMLOptGroupElement)[];\n\n assignedElements.forEach((item) => {\n if ( ['OPTION', 'OPTGROUP'].includes(item.tagName)) {\n const clonedItem = item.cloneNode(true) as HTMLOptionElement | HTMLOptGroupElement;\n if (clonedItem.tagName === 'OPTION' && (clonedItem as HTMLOptionElement).value === this.value) {\n (clonedItem as HTMLOptionElement).selected = true;\n }\n this.selectEl.appendChild(clonedItem);\n }\n });\n\n this.updateSelectedOption();\n };\n\n private getHelperMessage() {\n return this.helperMessage && (\n <p class=\"pds-select__helper-message\" id={messageId(this.componentId, 'helper')}>\n {this.helperMessage}\n </p>\n );\n }\n\n private getErrorMessage() {\n return this.errorMessage && (\n <p class=\"pds-select__error-message\" id={messageId(this.componentId, 'error')} aria-live=\"assertive\">\n <pds-icon name=\"danger\" size=\"small\" />\n {this.errorMessage}\n </p>\n );\n }\n\n private renderMessages() {\n if (!this.helperMessage && !this.errorMessage) return null;\n\n return (\n <div class=\"pds-select__message\">\n {this.getHelperMessage()}\n {this.getErrorMessage()}\n </div>\n );\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) { classNames.push('is-invalid'); }\n if (this.disabled) { classNames.push('is-disabled'); }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host aria-disabled={this.disabled ? 'true' : null} class={this.classNames()}>\n <div class=\"pds-select\">\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n <select\n autocomplete={this.autocomplete || undefined}\n class=\"pds-select__field\"\n disabled={this.disabled}\n id={this.componentId}\n multiple={this.multiple}\n name={this.name}\n onChange={this.onSelectUpdate}\n required={this.required}\n ref={(el) => (this.selectEl = el as HTMLSelectElement)}\n ></select>\n <div aria-hidden=\"true\" class=\"hidden\" ref={(el) => (this.slotContainer = el)}>\n <slot onSlotchange={this.handleSlotChange}></slot>\n </div>\n {this.renderMessages()}\n {!this.multiple && <pds-icon class=\"pds-select__select-icon\" name=\"enlarge\" />}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -22,7 +22,7 @@ const PdsSortableItem$1 = /*@__PURE__*/ proxyCustomElement(class PdsSortableItem
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '53229fa4308319c59c520bdf84291fb738d6f7c2', class: "pds-sortable-item", id: this.componentId }, this.showHandle && (h("div", { key: '28a4a4fe6a946880e7501fd2a0697152f0665f4c', class: "pds-sortable-item__handle" }, h("pds-icon", { key: 'e45540e3787977b0861418455f6a0689cfcec887', icon: handle }))), h("slot", { key: 'bca5cbb3c4f5b4f1732030428660f5ae976cced0' }), this.enableActions && (h("div", { key: '2928a942128e4bbad4c869f42b59d10501af4419', class: "pds-sortable-item__actions" }, h("slot", { key: 'c2a4e2a47300f1c8f06a23ba134c436a591442bf', name: "sortable-item-actions" })))));
|
|
26
26
|
}
|
|
27
27
|
get el() { return this; }
|
|
28
28
|
static get style() { return PdsSortableItemStyle0; }
|
|
@@ -2650,8 +2650,11 @@ _extends(Remove, {
|
|
|
2650
2650
|
Sortable.mount(new AutoScrollPlugin());
|
|
2651
2651
|
Sortable.mount(Remove, Revert);
|
|
2652
2652
|
|
|
2653
|
+
const baseCss = ".sc-pds-sortable:where(*:not(slot),*.sc-pds-sortable:not(slot)::before,*.sc-pds-sortable:not(slot)::after){-webkit-box-sizing:border-box;box-sizing:border-box}.sc-pds-sortable:where(*:not(slot)){margin:0}.sc-pds-sortable:where(img,picture.sc-pds-sortable,video.sc-pds-sortable,canvas.sc-pds-sortable,svg).sc-pds-sortable{display:block;max-width:100%}.sc-pds-sortable:where(input,button.sc-pds-sortable,textarea.sc-pds-sortable,select).sc-pds-sortable{font:inherit}.sc-pds-sortable:where(p,h1.sc-pds-sortable,h2.sc-pds-sortable,h3.sc-pds-sortable,h4.sc-pds-sortable,h5.sc-pds-sortable,h6).sc-pds-sortable{overflow-wrap:break-word}.sc-pds-sortable:where(a:not([href]):not([class])){color:currentColor;text-decoration:none}.sc-pds-sortable:where(a:not([href]):not([class]):hover){color:currentColor;text-decoration:none}.sc-pds-sortable:where(ul[role=list],ol[role=list]).sc-pds-sortable{list-style:none}.sc-pds-sortable:where(table){border-collapse:collapse;border-spacing:0}.sc-pds-sortable:where(*:not(slot)){font:var(--pine-typography-body-md-default);letter-spacing:var(--pine-letter-spacing-body-md)}.sc-pds-sortable:where(h1,h2.sc-pds-sortable,h3.sc-pds-sortable,h4.sc-pds-sortable,h5.sc-pds-sortable,h6).sc-pds-sortable{font-family:var(--pine-font-family-heading);color:var(--pine-color-grey-950)}.sc-pds-sortable:where(h1){font:var(--pine-typography-heading-h1);letter-spacing:var(--pine-letter-spacing-heading-h1)}.sc-pds-sortable:where(h2){font:var(--pine-typography-heading-h2);letter-spacing:var(--pine-letter-spacing-heading-h2)}.sc-pds-sortable:where(h3){font:var(--pine-typography-heading-h3);letter-spacing:var(--pine-letter-spacing-heading-h3)}.sc-pds-sortable:where(h4){font:var(--pine-typography-heading-h4);letter-spacing:var(--pine-letter-spacing-heading-h4)}.sc-pds-sortable:where(h5){font:var(--pine-typography-heading-h5);letter-spacing:var(--pine-letter-spacing-heading-h5)}.sc-pds-sortable:where(h6){font:var(--pine-typography-heading-h6);letter-spacing:var(--pine-letter-spacing-heading-h6)}.sc-pds-sortable:where(div,label.sc-pds-sortable,p.sc-pds-sortable,span).sc-pds-sortable{color:var(--pine-color-text-default)}.sc-pds-sortable:where(code,kbd.sc-pds-sortable,pre.sc-pds-sortable,samp).sc-pds-sortable{font-family:monospace}.sc-pds-sortable:where([role=button]){cursor:pointer}.sc-pds-sortable:where(:focus){outline:0}.sc-pds-sortable:where(:focus-visible){outline:var(--pine-border-width-thick) solid var(--pine-color-purple-500)}.sc-pds-sortable:where([hidden]){display:none !important}";
|
|
2654
|
+
const PdsSortableStyle0 = baseCss;
|
|
2655
|
+
|
|
2653
2656
|
const pdsSortableCss = ".pds-sortable.sc-pds-sortable-h{--border-radius:var(--pine-border-radius-050);--border-default:var(--pine-border-width-thin) solid var(--pine-color-grey-300);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.pds-sortable.pds-sortable--bordered.sc-pds-sortable-h{border:var(--border-default);border-radius:var(--border-radius)}";
|
|
2654
|
-
const
|
|
2657
|
+
const PdsSortableStyle1 = pdsSortableCss;
|
|
2655
2658
|
|
|
2656
2659
|
const PdsSortable$1 = /*@__PURE__*/ proxyCustomElement(class PdsSortable extends HTMLElement {
|
|
2657
2660
|
constructor() {
|
|
@@ -2691,10 +2694,10 @@ const PdsSortable$1 = /*@__PURE__*/ proxyCustomElement(class PdsSortable extends
|
|
|
2691
2694
|
Sortable.create(this.el, sortableOptions);
|
|
2692
2695
|
}
|
|
2693
2696
|
render() {
|
|
2694
|
-
return (h(Host, { key: '
|
|
2697
|
+
return (h(Host, { key: 'e215bbd858767d4c5e5e85bd12352e6a50b7d594', class: this.classNames(), id: this.componentId }, h("slot", { key: 'bd4a58c7ceb78432c77615987e16e979d7240eb4' })));
|
|
2695
2698
|
}
|
|
2696
2699
|
get el() { return this; }
|
|
2697
|
-
static get style() { return PdsSortableStyle0; }
|
|
2700
|
+
static get style() { return PdsSortableStyle0 + PdsSortableStyle1; }
|
|
2698
2701
|
}, [6, "pds-sortable", {
|
|
2699
2702
|
"border": [516],
|
|
2700
2703
|
"componentId": [1, "component-id"],
|