@pine-ds/core 2.1.1 → 2.1.3
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 +3 -2
- package/components/index2.js.map +1 -1
- package/components/pds-button2.js +5 -3
- package/components/pds-button2.js.map +1 -1
- package/components/pds-checkbox2.js +12 -5
- package/components/pds-checkbox2.js.map +1 -1
- package/components/pds-chip.js +4 -4
- package/components/pds-chip.js.map +1 -1
- package/components/pds-copytext.js +1 -1
- package/components/pds-copytext.js.map +1 -1
- package/components/pds-divider.js +1 -1
- package/components/pds-divider.js.map +1 -1
- package/components/pds-image.js +2 -2
- package/components/pds-image.js.map +1 -1
- package/components/pds-input.js +12 -5
- package/components/pds-input.js.map +1 -1
- package/components/pds-link.js +2 -2
- package/components/pds-link.js.map +1 -1
- package/components/pds-loader.js +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 +1 -1
- package/components/pds-radio.js +16 -9
- 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 +1 -1
- package/components/pds-switch.js +12 -8
- package/components/pds-switch.js.map +1 -1
- package/components/pds-tab.js +3 -3
- package/components/pds-table-body.js +1 -1
- package/components/pds-table-cell2.js +2 -2
- package/components/pds-table-cell2.js.map +1 -1
- package/components/pds-table-head-cell2.js +3 -3
- package/components/pds-table-head-cell2.js.map +1 -1
- package/components/pds-table-head.js +1 -1
- package/components/pds-table-head.js.map +1 -1
- package/components/pds-table-row.js +9 -3
- package/components/pds-table-row.js.map +1 -1
- package/components/pds-table.js +1 -1
- package/components/pds-table.js.map +1 -1
- package/components/pds-tabpanel.js +1 -1
- package/components/pds-tabs.js +1 -1
- package/components/pds-text.d.ts +11 -0
- package/components/pds-text.js +58 -0
- package/components/pds-text.js.map +1 -0
- package/components/pds-textarea.js +13 -6
- package/components/pds-textarea.js.map +1 -1
- package/components/pds-tooltip.js +2 -2
- package/dist/cjs/{index-8f7870bb.js → index-3ad62856.js} +4 -2
- package/dist/cjs/index-3ad62856.js.map +1 -0
- package/dist/cjs/{index-8ad0cd9d.js → index-b7d9268e.js} +3 -2
- 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 +2 -2
- package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
- package/dist/cjs/pds-box.cjs.entry.js +1 -1
- package/dist/cjs/pds-button.cjs.entry.js +5 -3
- package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-checkbox.cjs.entry.js +7 -6
- package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-chip.cjs.entry.js +5 -5
- package/dist/cjs/pds-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-copytext.cjs.entry.js +3 -3
- package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-divider.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/pds-image.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-input.cjs.entry.js +7 -6
- package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
- package/dist/cjs/{pds-label-35369959.js → pds-label-05f073ea.js} +2 -2
- package/dist/cjs/{pds-label-35369959.js.map → pds-label-05f073ea.js.map} +1 -1
- package/dist/cjs/pds-link.cjs.entry.js +4 -4
- package/dist/cjs/pds-link.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-loader.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/pds-radio.cjs.entry.js +9 -8
- 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 +2 -2
- package/dist/cjs/pds-switch.cjs.entry.js +7 -9
- package/dist/cjs/pds-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-tab.cjs.entry.js +4 -4
- package/dist/cjs/pds-table-body.cjs.entry.js +2 -2
- package/dist/cjs/pds-table-cell.cjs.entry.js +3 -3
- package/dist/cjs/pds-table-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +4 -4
- package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-head.cjs.entry.js +2 -2
- package/dist/cjs/pds-table-head.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-row.cjs.entry.js +2 -2
- package/dist/cjs/pds-table-row.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/pds-text.cjs.entry.js +37 -0
- package/dist/cjs/pds-text.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-textarea.cjs.entry.js +8 -7
- package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/pine-core.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/pds-button/pds-button.js +36 -11
- 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 +9 -1
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +4 -3
- package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -1
- package/dist/collection/components/pds-chip/pds-chip.js +26 -26
- package/dist/collection/components/pds-chip/pds-chip.js.map +1 -1
- package/dist/collection/components/pds-copytext/pds-copytext.js +4 -4
- package/dist/collection/components/pds-copytext/pds-copytext.js.map +1 -1
- package/dist/collection/components/pds-divider/pds-divider.js +2 -2
- package/dist/collection/components/pds-divider/pds-divider.js.map +1 -1
- package/dist/collection/components/pds-image/pds-image.js +13 -7
- package/dist/collection/components/pds-image/pds-image.js.map +1 -1
- package/dist/collection/components/pds-input/pds-input.css +6 -1
- package/dist/collection/components/pds-input/pds-input.js +9 -8
- package/dist/collection/components/pds-input/pds-input.js.map +1 -1
- package/dist/collection/components/pds-link/pds-link.js +12 -9
- package/dist/collection/components/pds-link/pds-link.js.map +1 -1
- package/dist/collection/components/pds-loader/pds-loader.js +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.js +1 -1
- package/dist/collection/components/pds-radio/pds-radio.css +9 -1
- package/dist/collection/components/pds-radio/pds-radio.js +41 -40
- 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 +1 -1
- package/dist/collection/components/pds-switch/pds-switch.css +10 -6
- package/dist/collection/components/pds-switch/pds-switch.js +14 -16
- package/dist/collection/components/pds-switch/pds-switch.js.map +1 -1
- package/dist/collection/components/pds-switch/stories/pds-switch.stories.js +2 -2
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js.map +1 -1
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +7 -4
- 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.js +2 -2
- 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 +3 -3
- 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 +4 -4
- 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.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 +1 -1
- package/dist/collection/components/pds-tabs/stories/pds-tabs.stories.js +18 -18
- package/dist/collection/components/pds-text/pds-text.css +218 -0
- package/dist/collection/components/pds-text/pds-text.js +143 -0
- package/dist/collection/components/pds-text/pds-text.js.map +1 -0
- package/dist/collection/components/pds-text/stories/pds-text.stories.js +111 -0
- package/dist/collection/components/pds-textarea/pds-textarea.css +4 -0
- package/dist/collection/components/pds-textarea/pds-textarea.js +17 -16
- package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -1
- package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +2 -2
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/docs.json +1091 -165
- package/dist/esm/{index-5e7a8a36.js → index-56752d25.js} +4 -3
- package/dist/esm/index-56752d25.js.map +1 -0
- package/dist/esm/{index-8b335bbb.js → index-b1696fed.js} +3 -2
- 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 +2 -2
- package/dist/esm/pds-avatar.entry.js +2 -2
- package/dist/esm/pds-box.entry.js +1 -1
- package/dist/esm/pds-button.entry.js +5 -3
- package/dist/esm/pds-button.entry.js.map +1 -1
- package/dist/esm/pds-checkbox.entry.js +7 -6
- package/dist/esm/pds-checkbox.entry.js.map +1 -1
- package/dist/esm/pds-chip.entry.js +5 -5
- package/dist/esm/pds-chip.entry.js.map +1 -1
- package/dist/esm/pds-copytext.entry.js +3 -3
- package/dist/esm/pds-copytext.entry.js.map +1 -1
- package/dist/esm/pds-divider.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/pds-image.entry.js.map +1 -1
- package/dist/esm/pds-input.entry.js +7 -6
- package/dist/esm/pds-input.entry.js.map +1 -1
- package/dist/esm/{pds-label-1f80d632.js → pds-label-62469596.js} +2 -2
- package/dist/esm/{pds-label-1f80d632.js.map → pds-label-62469596.js.map} +1 -1
- package/dist/esm/pds-link.entry.js +4 -4
- package/dist/esm/pds-link.entry.js.map +1 -1
- package/dist/esm/pds-loader.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/pds-radio.entry.js +9 -8
- 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 +2 -2
- package/dist/esm/pds-switch.entry.js +7 -9
- package/dist/esm/pds-switch.entry.js.map +1 -1
- package/dist/esm/pds-tab.entry.js +4 -4
- package/dist/esm/pds-table-body.entry.js +2 -2
- package/dist/esm/pds-table-cell.entry.js +3 -3
- package/dist/esm/pds-table-cell.entry.js.map +1 -1
- package/dist/esm/pds-table-head-cell.entry.js +4 -4
- package/dist/esm/pds-table-head-cell.entry.js.map +1 -1
- package/dist/esm/pds-table-head.entry.js +2 -2
- package/dist/esm/pds-table-head.entry.js.map +1 -1
- package/dist/esm/pds-table-row.entry.js +2 -2
- package/dist/esm/pds-table-row.entry.js.map +1 -1
- package/dist/esm/pds-table.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/pds-text.entry.js +33 -0
- package/dist/esm/pds-text.entry.js.map +1 -0
- package/dist/esm/pds-textarea.entry.js +8 -7
- package/dist/esm/pds-textarea.entry.js.map +1 -1
- package/dist/esm/pds-tooltip.entry.js +3 -3
- package/dist/esm/pine-core.js +3 -3
- package/dist/esm-es5/index-56752d25.js +2 -0
- package/dist/esm-es5/index-56752d25.js.map +1 -0
- package/dist/esm-es5/{index-8b335bbb.js → index-b1696fed.js} +3 -3
- 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-avatar.entry.js +1 -1
- package/dist/esm-es5/pds-box.entry.js +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-1f80d632.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-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-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-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-table-body.entry.js +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-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/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-6deaad03.entry.js → p-031ac651.entry.js} +2 -2
- package/dist/pine-core/{p-6deaad03.entry.js.map → p-031ac651.entry.js.map} +1 -1
- package/dist/pine-core/{p-de0beb45.system.entry.js → p-09d83447.system.entry.js} +2 -2
- package/dist/pine-core/{p-de0beb45.system.entry.js.map → p-09d83447.system.entry.js.map} +1 -1
- package/dist/pine-core/{p-d464f04f.entry.js → p-0ac04129.entry.js} +2 -2
- package/dist/pine-core/{p-d464f04f.entry.js.map → p-0ac04129.entry.js.map} +1 -1
- 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-110b2e03.entry.js +2 -0
- package/dist/pine-core/p-110b2e03.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-e9ca5a4e.entry.js → p-1351489d.entry.js} +2 -2
- package/dist/pine-core/{p-e9ca5a4e.entry.js.map → p-1351489d.entry.js.map} +1 -1
- package/dist/pine-core/{p-3b780711.entry.js → p-1712d594.entry.js} +2 -2
- package/dist/pine-core/{p-d618d51b.entry.js → p-196f615c.entry.js} +2 -2
- package/dist/pine-core/{p-d618d51b.entry.js.map → p-196f615c.entry.js.map} +1 -1
- package/dist/pine-core/{p-4e39bbd7.system.entry.js → p-1a1a76ea.system.entry.js} +2 -2
- package/dist/pine-core/{p-e4a1b3f5.system.entry.js → p-1a548198.system.entry.js} +2 -2
- 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-89101362.system.entry.js → p-1df1990d.system.entry.js} +2 -2
- package/dist/pine-core/{p-1ca76e21.entry.js → p-1e80f274.entry.js} +2 -2
- package/dist/pine-core/{p-143bbe94.system.entry.js → p-2e1dc5e5.system.entry.js} +2 -2
- package/dist/pine-core/{p-143bbe94.system.entry.js.map → p-2e1dc5e5.system.entry.js.map} +1 -1
- package/dist/pine-core/{p-5f13c97b.entry.js → p-34cda8d5.system.entry.js} +2 -2
- package/dist/pine-core/p-34cda8d5.system.entry.js.map +1 -0
- package/dist/pine-core/{p-05d140a3.system.entry.js → p-364a7555.system.entry.js} +2 -2
- package/dist/pine-core/{p-5f23f121.entry.js → p-37a3c235.entry.js} +2 -2
- package/dist/pine-core/p-37a3c235.entry.js.map +1 -0
- package/dist/pine-core/{p-a18ff34f.entry.js → p-396014d3.entry.js} +2 -2
- package/dist/pine-core/{p-5fb6ab2f.entry.js → p-3acb18ad.entry.js} +2 -2
- 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-4c0c0b2d.system.js → p-45cf2585.system.js} +3 -3
- 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-136ea1e9.entry.js → p-4d22b02c.entry.js} +2 -2
- 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-70e5e466.system.entry.js → p-50918693.system.entry.js} +2 -2
- package/dist/pine-core/{p-188be548.entry.js → p-5380ad4f.entry.js} +2 -2
- package/dist/pine-core/{p-188be548.entry.js.map → p-5380ad4f.entry.js.map} +1 -1
- package/dist/pine-core/{p-e7648adc.system.entry.js → p-539fe011.system.entry.js} +2 -2
- package/dist/pine-core/{p-e7648adc.system.entry.js.map → p-539fe011.system.entry.js.map} +1 -1
- package/dist/pine-core/p-59a43f75.system.entry.js +2 -0
- package/dist/pine-core/p-59a43f75.system.entry.js.map +1 -0
- package/dist/pine-core/{p-0200fce9.entry.js → p-59fcea0f.entry.js} +2 -2
- 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-c18464e8.system.entry.js → p-5cb59e3f.system.entry.js} +2 -2
- package/dist/pine-core/{p-c18464e8.system.entry.js.map → p-5cb59e3f.system.entry.js.map} +1 -1
- 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-e2d793eb.entry.js → p-65229490.entry.js} +2 -2
- package/dist/pine-core/{p-f6e72c06.system.entry.js → p-6d447614.system.entry.js} +2 -2
- package/dist/pine-core/{p-f6e72c06.system.entry.js.map → p-6d447614.system.entry.js.map} +1 -1
- package/dist/pine-core/{p-62ebfe42.entry.js → p-760e1c32.entry.js} +2 -2
- package/dist/pine-core/{p-62ebfe42.entry.js.map → p-760e1c32.entry.js.map} +1 -1
- package/dist/pine-core/{p-33a94e8c.system.entry.js → p-84d36583.system.entry.js} +2 -2
- package/dist/pine-core/{p-4e6e2052.js → p-87fe352f.js} +3 -3
- 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-82a001ac.system.entry.js → p-88edcb41.system.entry.js} +2 -2
- package/dist/pine-core/{p-330eda0c.entry.js → p-892b4a4c.entry.js} +2 -2
- package/dist/pine-core/{p-c5991956.system.entry.js → p-8ae84655.system.entry.js} +2 -2
- package/dist/pine-core/{p-c5991956.system.entry.js.map → p-8ae84655.system.entry.js.map} +1 -1
- package/dist/pine-core/{p-7d6d3e2b.entry.js → p-9487df53.entry.js} +2 -2
- 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-3fc1efe7.system.entry.js → p-a2726d3b.system.entry.js} +2 -2
- package/dist/pine-core/{p-48f0a5a4.entry.js → p-a6713696.entry.js} +2 -2
- package/dist/pine-core/{p-48f0a5a4.entry.js.map → p-a6713696.entry.js.map} +1 -1
- package/dist/pine-core/{p-3ec7fac1.js → p-a9038f7f.js} +2 -2
- package/dist/pine-core/{p-9dec3592.system.entry.js → p-a9e02a6f.system.entry.js} +2 -2
- package/dist/pine-core/{p-1b611a91.system.entry.js → p-adda8682.system.entry.js} +2 -2
- package/dist/pine-core/{p-1b611a91.system.entry.js.map → p-adda8682.system.entry.js.map} +1 -1
- package/dist/pine-core/{p-1c0993d9.system.entry.js → p-ae19532d.system.entry.js} +2 -2
- package/dist/pine-core/{p-1c0993d9.system.entry.js.map → p-ae19532d.system.entry.js.map} +1 -1
- 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-0efee237.system.entry.js → p-b7edbe43.system.entry.js} +2 -2
- package/dist/pine-core/{p-0e310504.system.entry.js → p-b95522e6.system.entry.js} +2 -2
- package/dist/pine-core/{p-053ca95a.entry.js → p-b9cebd24.entry.js} +2 -2
- package/dist/pine-core/{p-053ca95a.entry.js.map → p-b9cebd24.entry.js.map} +1 -1
- package/dist/pine-core/{p-94a0fd6e.entry.js → p-bbd19258.entry.js} +2 -2
- 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-c8b0ea02.entry.js → p-ceb66096.entry.js} +3 -3
- package/dist/pine-core/{p-be998f90.system.entry.js → p-d3365f49.system.entry.js} +3 -3
- package/dist/pine-core/p-d83716fb.js +2 -0
- package/dist/pine-core/p-d83716fb.js.map +1 -0
- package/dist/pine-core/{p-02f06002.system.entry.js → p-d95b2469.system.entry.js} +2 -2
- package/dist/pine-core/{p-02f06002.system.entry.js.map → p-d95b2469.system.entry.js.map} +1 -1
- 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-a15c9c4f.entry.js → p-e2a673e8.entry.js} +2 -2
- package/dist/pine-core/{p-b78b3492.entry.js → p-e2badc55.entry.js} +2 -2
- package/dist/pine-core/{p-b78b3492.entry.js.map → p-e2badc55.entry.js.map} +1 -1
- package/dist/pine-core/{p-f408c34a.system.js → p-e3fab4be.system.js} +2 -2
- package/dist/pine-core/{p-5c90a600.entry.js → p-ebdaf3ad.entry.js} +2 -2
- package/dist/pine-core/{p-a4b85fb8.system.entry.js → p-f16ef73c.system.entry.js} +2 -2
- package/dist/pine-core/{p-9c294ea2.system.entry.js → p-faa2bf05.system.entry.js} +2 -2
- package/dist/pine-core/p-faa2bf05.system.entry.js.map +1 -0
- 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/file-add.svg +1 -1
- package/dist/pine-core/svg/file-search.svg +1 -0
- package/dist/pine-core/svg/logo-snapchat.svg +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 +5 -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 +10 -13
- 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 +27 -0
- package/dist/types/components/pds-textarea/pds-textarea.d.ts +12 -12
- package/dist/types/components.d.ts +457 -105
- package/dist/types/utils/types.d.ts +1 -1
- package/hydrate/index.js +334 -67
- package/hydrate/index.mjs +334 -67
- package/package.json +2 -2
- package/dist/cjs/index-8ad0cd9d.js.map +0 -1
- package/dist/cjs/index-8f7870bb.js.map +0 -1
- package/dist/esm/index-5e7a8a36.js.map +0 -1
- package/dist/esm/index-8b335bbb.js.map +0 -1
- package/dist/esm-es5/index-5e7a8a36.js +0 -2
- package/dist/esm-es5/index-5e7a8a36.js.map +0 -1
- package/dist/esm-es5/index-8b335bbb.js.map +0 -1
- package/dist/pine-core/p-0186301f.entry.js +0 -2
- package/dist/pine-core/p-0186301f.entry.js.map +0 -1
- package/dist/pine-core/p-0630403a.entry.js +0 -2
- package/dist/pine-core/p-0630403a.entry.js.map +0 -1
- package/dist/pine-core/p-102222fd.entry.js +0 -2
- package/dist/pine-core/p-102222fd.entry.js.map +0 -1
- package/dist/pine-core/p-242ccc24.system.entry.js +0 -2
- package/dist/pine-core/p-242ccc24.system.entry.js.map +0 -1
- package/dist/pine-core/p-30d979d3.entry.js +0 -2
- package/dist/pine-core/p-30d979d3.entry.js.map +0 -1
- package/dist/pine-core/p-3cad7587.entry.js +0 -2
- package/dist/pine-core/p-3cad7587.entry.js.map +0 -1
- package/dist/pine-core/p-3e0449c5.js +0 -2
- package/dist/pine-core/p-3e0449c5.js.map +0 -1
- package/dist/pine-core/p-4c0c0b2d.system.js.map +0 -1
- package/dist/pine-core/p-4e6e2052.js.map +0 -1
- package/dist/pine-core/p-51e94e03.system.js +0 -2
- package/dist/pine-core/p-51e94e03.system.js.map +0 -1
- package/dist/pine-core/p-55f8a9e4.system.entry.js +0 -2
- package/dist/pine-core/p-55f8a9e4.system.entry.js.map +0 -1
- package/dist/pine-core/p-57dd9a98.system.entry.js +0 -2
- package/dist/pine-core/p-57dd9a98.system.entry.js.map +0 -1
- package/dist/pine-core/p-5b43ff39.system.entry.js +0 -2
- package/dist/pine-core/p-5b43ff39.system.entry.js.map +0 -1
- package/dist/pine-core/p-5f13c97b.entry.js.map +0 -1
- package/dist/pine-core/p-5f23f121.entry.js.map +0 -1
- package/dist/pine-core/p-6bcd89dc.system.js +0 -2
- package/dist/pine-core/p-6bcd89dc.system.js.map +0 -1
- package/dist/pine-core/p-82096fe4.system.entry.js +0 -2
- package/dist/pine-core/p-82096fe4.system.entry.js.map +0 -1
- package/dist/pine-core/p-8d34339d.system.js +0 -2
- package/dist/pine-core/p-9c294ea2.system.entry.js.map +0 -1
- package/dist/pine-core/p-d438c2c8.system.entry.js +0 -2
- package/dist/pine-core/p-d438c2c8.system.entry.js.map +0 -1
- package/dist/pine-core/p-e22b4427.system.entry.js +0 -2
- package/dist/pine-core/p-e22b4427.system.entry.js.map +0 -1
- package/dist/pine-core/p-efca871b.entry.js +0 -2
- package/dist/pine-core/p-efca871b.entry.js.map +0 -1
- /package/dist/esm-es5/{pds-label-1f80d632.js.map → pds-label-62469596.js.map} +0 -0
- /package/dist/pine-core/{p-3b780711.entry.js.map → p-1712d594.entry.js.map} +0 -0
- /package/dist/pine-core/{p-4e39bbd7.system.entry.js.map → p-1a1a76ea.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e4a1b3f5.system.entry.js.map → p-1a548198.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-89101362.system.entry.js.map → p-1df1990d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-1ca76e21.entry.js.map → p-1e80f274.entry.js.map} +0 -0
- /package/dist/pine-core/{p-05d140a3.system.entry.js.map → p-364a7555.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a18ff34f.entry.js.map → p-396014d3.entry.js.map} +0 -0
- /package/dist/pine-core/{p-5fb6ab2f.entry.js.map → p-3acb18ad.entry.js.map} +0 -0
- /package/dist/pine-core/{p-136ea1e9.entry.js.map → p-4d22b02c.entry.js.map} +0 -0
- /package/dist/pine-core/{p-70e5e466.system.entry.js.map → p-50918693.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0200fce9.entry.js.map → p-59fcea0f.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e2d793eb.entry.js.map → p-65229490.entry.js.map} +0 -0
- /package/dist/pine-core/{p-33a94e8c.system.entry.js.map → p-84d36583.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-82a001ac.system.entry.js.map → p-88edcb41.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-330eda0c.entry.js.map → p-892b4a4c.entry.js.map} +0 -0
- /package/dist/pine-core/{p-7d6d3e2b.entry.js.map → p-9487df53.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3fc1efe7.system.entry.js.map → p-a2726d3b.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3ec7fac1.js.map → p-a9038f7f.js.map} +0 -0
- /package/dist/pine-core/{p-9dec3592.system.entry.js.map → p-a9e02a6f.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0efee237.system.entry.js.map → p-b7edbe43.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0e310504.system.entry.js.map → p-b95522e6.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-94a0fd6e.entry.js.map → p-bbd19258.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c8b0ea02.entry.js.map → p-ceb66096.entry.js.map} +0 -0
- /package/dist/pine-core/{p-be998f90.system.entry.js.map → p-d3365f49.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-8d34339d.system.js.map → p-db622f8f.system.js.map} +0 -0
- /package/dist/pine-core/{p-a15c9c4f.entry.js.map → p-e2a673e8.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f408c34a.system.js.map → p-e3fab4be.system.js.map} +0 -0
- /package/dist/pine-core/{p-5c90a600.entry.js.map → p-ebdaf3ad.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a4b85fb8.system.entry.js.map → p-f16ef73c.system.entry.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html
|
|
1
|
+
import { html } from 'lit';
|
|
2
2
|
import { withActions } from '@storybook/addon-actions/decorator';
|
|
3
3
|
import { extractArgTypes } from '@pxtrn/storybook-addon-docs-stencil';
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
14
|
title: 'components/Tabs',
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
|
|
17
17
|
const BaseTemplate = (args) => html`
|
|
18
18
|
<pds-tabs active-tab-name=${args.activeTabName} variant=${args.variant} component-id=${args.componentId} tablist-label=${args.tablistLabel}>
|
|
@@ -25,6 +25,22 @@ const BaseTemplate = (args) => html`
|
|
|
25
25
|
</pds-tabs>
|
|
26
26
|
`;
|
|
27
27
|
|
|
28
|
+
export const Default = BaseTemplate.bind({});
|
|
29
|
+
Default.args = {
|
|
30
|
+
activeTabName: "Dollop",
|
|
31
|
+
componentId: "primary",
|
|
32
|
+
variant: "primary",
|
|
33
|
+
tablistLabel: "Foo",
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const Filter = BaseTemplate.bind({});
|
|
37
|
+
Filter.args = {
|
|
38
|
+
activeTabName: "Sturdy",
|
|
39
|
+
componentId: "filter",
|
|
40
|
+
variant: 'filter',
|
|
41
|
+
tablistLabel: "Foo",
|
|
42
|
+
}
|
|
43
|
+
|
|
28
44
|
const AvailabilityTemplate = (args) => html`
|
|
29
45
|
<div style="background-color: #ddd; padding: 20px;">
|
|
30
46
|
<pds-tabs active-tab-name=${args.activeTabName} variant=${args.variant} component-id=${args.componentId} tablist-label=${args.tablistLabel}>
|
|
@@ -38,14 +54,6 @@ const AvailabilityTemplate = (args) => html`
|
|
|
38
54
|
</div>
|
|
39
55
|
`;
|
|
40
56
|
|
|
41
|
-
export const Primary = BaseTemplate.bind({});
|
|
42
|
-
Primary.args = {
|
|
43
|
-
activeTabName: "Dollop",
|
|
44
|
-
componentId: "primary",
|
|
45
|
-
variant: "primary",
|
|
46
|
-
tablistLabel: "Foo",
|
|
47
|
-
}
|
|
48
|
-
|
|
49
57
|
export const Availability = AvailabilityTemplate.bind({});
|
|
50
58
|
Availability.args = {
|
|
51
59
|
activeTabName: "tuesday",
|
|
@@ -53,11 +61,3 @@ Availability.args = {
|
|
|
53
61
|
variant: 'availability',
|
|
54
62
|
tablistLabel: "Foo",
|
|
55
63
|
}
|
|
56
|
-
|
|
57
|
-
export const Filter = BaseTemplate.bind({});
|
|
58
|
-
Filter.args = {
|
|
59
|
-
activeTabName: "Sturdy",
|
|
60
|
-
componentId: "filter",
|
|
61
|
-
variant: 'filter',
|
|
62
|
-
tablistLabel: "Foo",
|
|
63
|
-
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: inline;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/* stylelint-disable */
|
|
6
|
+
h1 {
|
|
7
|
+
font-family: "GreetStandard";
|
|
8
|
+
font-size: 28px;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
letter-spacing: 0.26px;
|
|
11
|
+
line-height: 1.25;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
h2 {
|
|
15
|
+
font-family: "GreetStandard";
|
|
16
|
+
font-size: 26px;
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
letter-spacing: 0.24px;
|
|
19
|
+
line-height: 1.25;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
h3 {
|
|
23
|
+
font-family: "GreetStandard";
|
|
24
|
+
font-size: 22px;
|
|
25
|
+
font-weight: 600;
|
|
26
|
+
letter-spacing: 0.22px;
|
|
27
|
+
line-height: 1.25;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
h4 {
|
|
31
|
+
font-family: "GreetStandard";
|
|
32
|
+
font-size: 20px;
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
letter-spacing: 0.2px;
|
|
35
|
+
line-height: 1.25;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
h5 {
|
|
39
|
+
font-family: "GreetStandard";
|
|
40
|
+
font-size: 18px;
|
|
41
|
+
font-weight: 500;
|
|
42
|
+
letter-spacing: 0.18px;
|
|
43
|
+
line-height: 1.25;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
h6 {
|
|
47
|
+
font-family: "GreetStandard";
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
letter-spacing: 0.16px;
|
|
51
|
+
line-height: 1.25;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
code, em, p, pre, strong {
|
|
55
|
+
font-family: "Inter";
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
letter-spacing: -0.16px;
|
|
59
|
+
line-height: 1.425;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* stylelint-enable */
|
|
63
|
+
code, pre {
|
|
64
|
+
font-family: monospace;
|
|
65
|
+
letter-spacing: 0;
|
|
66
|
+
line-height: 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
em {
|
|
70
|
+
font-style: normal;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
strong {
|
|
74
|
+
font-weight: bolder;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
h1, h2, h3, h4, h5, h6, p, code, pre, em, strong {
|
|
78
|
+
color: var(--pine-color-text-default);
|
|
79
|
+
margin: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:host([truncate]) > * {
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
text-overflow: ellipsis;
|
|
85
|
+
white-space: nowrap;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:host([italic]) > * {
|
|
89
|
+
font-style: italic;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.pds-text--color-primary {
|
|
93
|
+
color: var(--pine-color-white);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.pds-text--color-secondary {
|
|
97
|
+
color: var(--pine-color-grey-800);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.pds-text--color-neutral {
|
|
101
|
+
color: var(--pine-color-grey-900);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.pds-text--color-accent {
|
|
105
|
+
color: var(--pine-color-purple-900);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.pds-text--color-danger {
|
|
109
|
+
color: var(--pine-color-red-900);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.pds-text--color-info {
|
|
113
|
+
color: var(--pine-color-blue-900);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.pds-text--color-success {
|
|
117
|
+
color: var(--pine-color-green-900);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.pds-text--color-warning {
|
|
121
|
+
color: var(--pine-color-yellow-900);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.pds-text--size-2xl {
|
|
125
|
+
font-size: 20px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.pds-text--size-xl {
|
|
129
|
+
font-size: 18px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.pds-text--size-lg {
|
|
133
|
+
font-size: 16px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.pds-text--size-md {
|
|
137
|
+
font-size: 14px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.pds-text--size-sm {
|
|
141
|
+
font-size: 12px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.pds-text--size-xs {
|
|
145
|
+
font-size: 10px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.pds-text--size-2xs {
|
|
149
|
+
font-size: 8px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.pds-text--weight-extra-light {
|
|
153
|
+
font-weight: 200;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.pds-text--weight-light {
|
|
157
|
+
font-weight: 300;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.pds-text--weight-regular {
|
|
161
|
+
font-weight: 400;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.pds-text--weight-medium {
|
|
165
|
+
font-weight: 500;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.pds-text--weight-semibold {
|
|
169
|
+
font-weight: 600;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.pds-text--weight-bold {
|
|
173
|
+
font-weight: 700;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.pds-text--gutter-2xl {
|
|
177
|
+
margin-block-end: 48px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.pds-text--gutter-xl {
|
|
181
|
+
margin-block-end: 40px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.pds-text--gutter-lg {
|
|
185
|
+
margin-block-end: 32px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.pds-text--gutter-md {
|
|
189
|
+
margin-block-end: 24px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.pds-text--gutter-sm {
|
|
193
|
+
margin-block-end: 16px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.pds-text--gutter-xs {
|
|
197
|
+
margin-block-end: 8px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.pds-text--gutter-2xs {
|
|
201
|
+
margin-block-end: 4px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.pds-text--align-start {
|
|
205
|
+
text-align: start;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.pds-text--align-center {
|
|
209
|
+
text-align: center;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.pds-text--align-end {
|
|
213
|
+
text-align: end;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.pds-text--align-justify {
|
|
217
|
+
text-align: justify;
|
|
218
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class PdsText {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.align = undefined;
|
|
5
|
+
this.color = undefined;
|
|
6
|
+
this.gutter = undefined;
|
|
7
|
+
this.size = undefined;
|
|
8
|
+
this.weight = undefined;
|
|
9
|
+
this.tag = "p";
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
const Tag = this.tag;
|
|
13
|
+
const typeClasses = `
|
|
14
|
+
pds-text
|
|
15
|
+
${this.align !== undefined && this.align.trim() !== '' ? `pds-text--align-${this.align}` : ''}
|
|
16
|
+
${this.color !== undefined && this.color.trim() !== '' ? `pds-text--color-${this.color}` : ''}
|
|
17
|
+
${this.gutter !== undefined && this.gutter.trim() !== '' ? `pds-text--gutter-${this.gutter}` : ''}
|
|
18
|
+
${this.size !== undefined && this.size.trim() !== '' ? `pds-text--size-${this.size}` : ''}
|
|
19
|
+
${this.weight !== undefined && this.weight.trim() !== '' ? `pds-text--weight-${this.weight}` : ''}
|
|
20
|
+
`;
|
|
21
|
+
return (h(Tag, { key: '3ccf61734e14ed7ea5013bce54717d2846b64f07', class: typeClasses }, h("slot", { key: '7368685e2042d306006bf8fc83b80ec246ca252d' })));
|
|
22
|
+
}
|
|
23
|
+
static get is() { return "pds-text"; }
|
|
24
|
+
static get encapsulation() { return "shadow"; }
|
|
25
|
+
static get originalStyleUrls() {
|
|
26
|
+
return {
|
|
27
|
+
"$": ["pds-text.scss"]
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
static get styleUrls() {
|
|
31
|
+
return {
|
|
32
|
+
"$": ["pds-text.css"]
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static get properties() {
|
|
36
|
+
return {
|
|
37
|
+
"align": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"mutable": false,
|
|
40
|
+
"complexType": {
|
|
41
|
+
"original": "'start' | 'center' | 'end' | 'justify'",
|
|
42
|
+
"resolved": "\"center\" | \"end\" | \"justify\" | \"start\"",
|
|
43
|
+
"references": {}
|
|
44
|
+
},
|
|
45
|
+
"required": false,
|
|
46
|
+
"optional": true,
|
|
47
|
+
"docs": {
|
|
48
|
+
"tags": [],
|
|
49
|
+
"text": "Sets the text alignment."
|
|
50
|
+
},
|
|
51
|
+
"attribute": "align",
|
|
52
|
+
"reflect": false
|
|
53
|
+
},
|
|
54
|
+
"color": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"mutable": false,
|
|
57
|
+
"complexType": {
|
|
58
|
+
"original": "| 'primary'\n | 'secondary'\n | 'neutral'\n | 'accent'\n | 'danger'\n | 'info'\n | 'success'\n | 'warning'",
|
|
59
|
+
"resolved": "\"accent\" | \"danger\" | \"info\" | \"neutral\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"",
|
|
60
|
+
"references": {}
|
|
61
|
+
},
|
|
62
|
+
"required": false,
|
|
63
|
+
"optional": true,
|
|
64
|
+
"docs": {
|
|
65
|
+
"tags": [],
|
|
66
|
+
"text": "Sets the text color."
|
|
67
|
+
},
|
|
68
|
+
"attribute": "color",
|
|
69
|
+
"reflect": false
|
|
70
|
+
},
|
|
71
|
+
"gutter": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"mutable": false,
|
|
74
|
+
"complexType": {
|
|
75
|
+
"original": "| '2xl'\n | 'xl'\n | 'lg'\n | 'md'\n | 'sm'\n | 'xs'\n | '2xs'",
|
|
76
|
+
"resolved": "\"2xl\" | \"2xs\" | \"lg\" | \"md\" | \"sm\" | \"xl\" | \"xs\"",
|
|
77
|
+
"references": {}
|
|
78
|
+
},
|
|
79
|
+
"required": false,
|
|
80
|
+
"optional": true,
|
|
81
|
+
"docs": {
|
|
82
|
+
"tags": [],
|
|
83
|
+
"text": "Set the bottom margin for the text."
|
|
84
|
+
},
|
|
85
|
+
"attribute": "gutter",
|
|
86
|
+
"reflect": false
|
|
87
|
+
},
|
|
88
|
+
"size": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "| '2xl'\n | 'xl'\n | 'lg'\n | 'md'\n | 'sm'\n | 'xs'\n | '2xs'",
|
|
93
|
+
"resolved": "\"2xl\" | \"2xs\" | \"lg\" | \"md\" | \"sm\" | \"xl\" | \"xs\"",
|
|
94
|
+
"references": {}
|
|
95
|
+
},
|
|
96
|
+
"required": false,
|
|
97
|
+
"optional": true,
|
|
98
|
+
"docs": {
|
|
99
|
+
"tags": [],
|
|
100
|
+
"text": "Sets the font size."
|
|
101
|
+
},
|
|
102
|
+
"attribute": "size",
|
|
103
|
+
"reflect": false
|
|
104
|
+
},
|
|
105
|
+
"weight": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"mutable": false,
|
|
108
|
+
"complexType": {
|
|
109
|
+
"original": "| 'extra-light'\n | 'light'\n | 'regular'\n | 'medium'\n | 'semibold'\n | 'bold'",
|
|
110
|
+
"resolved": "\"bold\" | \"extra-light\" | \"light\" | \"medium\" | \"regular\" | \"semibold\"",
|
|
111
|
+
"references": {}
|
|
112
|
+
},
|
|
113
|
+
"required": false,
|
|
114
|
+
"optional": true,
|
|
115
|
+
"docs": {
|
|
116
|
+
"tags": [],
|
|
117
|
+
"text": "Sets the font weight."
|
|
118
|
+
},
|
|
119
|
+
"attribute": "weight",
|
|
120
|
+
"reflect": false
|
|
121
|
+
},
|
|
122
|
+
"tag": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"mutable": false,
|
|
125
|
+
"complexType": {
|
|
126
|
+
"original": "| 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'p'\n | 'code'\n | 'pre'\n | 'strong'\n | 'em'",
|
|
127
|
+
"resolved": "\"code\" | \"em\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"p\" | \"pre\" | \"strong\"",
|
|
128
|
+
"references": {}
|
|
129
|
+
},
|
|
130
|
+
"required": false,
|
|
131
|
+
"optional": false,
|
|
132
|
+
"docs": {
|
|
133
|
+
"tags": [],
|
|
134
|
+
"text": "Determines what semantic text tag to render."
|
|
135
|
+
},
|
|
136
|
+
"attribute": "tag",
|
|
137
|
+
"reflect": false,
|
|
138
|
+
"defaultValue": "\"p\""
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=pds-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pds-text.js","sourceRoot":"","sources":["../../../src/components/pds-text/pds-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,OAAO;;;;;;;mBAqET,GAAG;;IAEZ,MAAM;QACJ,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QAErB,MAAM,WAAW,GAAG;;QAEhB,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE;QAC3F,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE;QAC3F,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,oBAAoB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE;QAC/F,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,kBAAkB,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE;QACvF,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,oBAAoB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE;KAClG,CAAC;QAEF,OAAO,CACL,EAAC,GAAG,qDAAC,KAAK,EAAE,WAAW;YACrB,8DAAQ,CACJ,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'pds-text',\n styleUrl: 'pds-text.scss',\n shadow: true,\n})\nexport class PdsText {\n\n /**\n * Sets the text alignment.\n */\n @Prop() align?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * Sets the text color.\n */\n @Prop() color?:\n | 'primary'\n | 'secondary'\n | 'neutral'\n | 'accent'\n | 'danger'\n | 'info'\n | 'success'\n | 'warning';\n\n /**\n * Set the bottom margin for the text.\n */\n @Prop() gutter?:\n | '2xl'\n | 'xl'\n | 'lg'\n | 'md'\n | 'sm'\n | 'xs'\n | '2xs';\n\n /**\n * Sets the font size.\n */\n @Prop() size?:\n | '2xl'\n | 'xl'\n | 'lg'\n | 'md'\n | 'sm'\n | 'xs'\n | '2xs';\n\n /**\n * Sets the font weight.\n */\n @Prop() weight?:\n | 'extra-light'\n | 'light'\n | 'regular'\n | 'medium'\n | 'semibold'\n | 'bold';\n\n /**\n * Determines what semantic text tag to render.\n */\n @Prop() tag:\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'p'\n | 'code'\n | 'pre'\n | 'strong'\n | 'em' = \"p\";\n\n render() {\n const Tag = this.tag;\n\n const typeClasses = `\n pds-text\n ${this.align !== undefined && this.align.trim() !== '' ? `pds-text--align-${this.align}` : ''}\n ${this.color !== undefined && this.color.trim() !== '' ? `pds-text--color-${this.color}` : ''}\n ${this.gutter !== undefined && this.gutter.trim() !== '' ? `pds-text--gutter-${this.gutter}` : ''}\n ${this.size !== undefined && this.size.trim() !== '' ? `pds-text--size-${this.size}` : ''}\n ${this.weight !== undefined && this.weight.trim() !== '' ? `pds-text--weight-${this.weight}` : ''}\n `;\n\n return (\n <Tag class={typeClasses}>\n <slot />\n </Tag>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
|
|
3
|
+
import { extractArgTypes } from '@pxtrn/storybook-addon-docs-stencil';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
argTypes: extractArgTypes('pds-text'),
|
|
7
|
+
component: 'pds-text',
|
|
8
|
+
title: 'components/Text',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const BaseTemplate = (args) => html`
|
|
12
|
+
<pds-text
|
|
13
|
+
align="${args.align}"
|
|
14
|
+
color="${args.color}"
|
|
15
|
+
size="${args.size}"
|
|
16
|
+
tag="${args.tag}"
|
|
17
|
+
weight="${args.weight}"
|
|
18
|
+
>
|
|
19
|
+
${args.slot}
|
|
20
|
+
</pds-text>`;
|
|
21
|
+
|
|
22
|
+
export const Default = BaseTemplate.bind();
|
|
23
|
+
Default.args = {
|
|
24
|
+
slot: 'Hello World',
|
|
25
|
+
tag: 'h1',
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const Align = BaseTemplate.bind();
|
|
29
|
+
Align.args = {
|
|
30
|
+
slot: '"Had to be me. Someone else might have gotten it wrong."',
|
|
31
|
+
align: 'center',
|
|
32
|
+
tag: 'em',
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const Color = BaseTemplate.bind();
|
|
36
|
+
Color.args = {
|
|
37
|
+
slot: 'Hello World',
|
|
38
|
+
color: 'accent',
|
|
39
|
+
tag: 'p',
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export const FontSize = BaseTemplate.bind();
|
|
43
|
+
FontSize.args = {
|
|
44
|
+
slot: 'Hello World',
|
|
45
|
+
size: '2xl',
|
|
46
|
+
tag: 'p',
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const FontWeight = BaseTemplate.bind();
|
|
50
|
+
FontWeight.args = {
|
|
51
|
+
slot: 'Hello World',
|
|
52
|
+
weight: 'bold',
|
|
53
|
+
tag: 'p',
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const GutterTemplate = (args) => html`
|
|
57
|
+
<pds-text
|
|
58
|
+
align="${args.align}"
|
|
59
|
+
color="${args.color}"
|
|
60
|
+
gutter="${args.gutter}"
|
|
61
|
+
size="${args.size}"
|
|
62
|
+
tag="${args.tag}"
|
|
63
|
+
weight="${args.weight}"
|
|
64
|
+
truncate
|
|
65
|
+
>
|
|
66
|
+
${args.slot}
|
|
67
|
+
</pds-text>
|
|
68
|
+
<pds-text tag="p">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in dui mauris. Vivamus hendrerit arcu sed</pds-text>`;
|
|
69
|
+
|
|
70
|
+
export const Gutter = GutterTemplate.bind();
|
|
71
|
+
Gutter.args = {
|
|
72
|
+
slot: 'Title',
|
|
73
|
+
gutter: 'lg',
|
|
74
|
+
tag: 'h2',
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const ItalicTemplate = (args) => html`
|
|
78
|
+
<pds-text
|
|
79
|
+
align="${args.align}"
|
|
80
|
+
color="${args.color}"
|
|
81
|
+
size="${args.size}"
|
|
82
|
+
tag="${args.tag}"
|
|
83
|
+
weight="${args.weight}"
|
|
84
|
+
italic
|
|
85
|
+
>
|
|
86
|
+
${args.slot}
|
|
87
|
+
</pds-text>`;
|
|
88
|
+
|
|
89
|
+
export const Italic = ItalicTemplate.bind();
|
|
90
|
+
Italic.args = {
|
|
91
|
+
slot: 'Id irure id magna ipsum voluptate irure esse eu nulla',
|
|
92
|
+
tag: 'p',
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const TruncateTemplate = (args) => html`
|
|
96
|
+
<pds-text
|
|
97
|
+
align="${args.align}"
|
|
98
|
+
color="${args.color}"
|
|
99
|
+
size="${args.size}"
|
|
100
|
+
tag="${args.tag}"
|
|
101
|
+
weight="${args.weight}"
|
|
102
|
+
truncate
|
|
103
|
+
>
|
|
104
|
+
${args.slot}
|
|
105
|
+
</pds-text>`;
|
|
106
|
+
|
|
107
|
+
export const Truncate = TruncateTemplate.bind();
|
|
108
|
+
Truncate.args = {
|
|
109
|
+
slot: 'Id irure id magna ipsum voluptate irure esse eu nulla. Ullamco officia adipisicing qui nulla non sint. Mollit tempor veniam quis nisi aliqua duis elit eu laborum et incididunt ut sit irure. Nisi aute veniam sint do amet consectetur velit. Quis sunt enim mollit deserunt laboris dolor elit exercitation. Id labore deserunt sint consequat laboris nulla do ut magna. Aliquip labore esse sint consequat voluptate tempor consectetur sit sint culpa occaecat ut velit est.',
|
|
110
|
+
tag: 'p',
|
|
111
|
+
};
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
--spacing-margin-block-start-helper-message: var(--pine-spacing-100);
|
|
22
22
|
--spacing-padding-block-field: var(--pine-spacing-100);
|
|
23
23
|
--spacing-padding-inline-field: var(--pine-spacing-200);
|
|
24
|
+
--spacing-icon-error-message: var(--pine-spacing-050);
|
|
24
25
|
--typography-message-default: var(--pine-typography-body-sm-default);
|
|
25
26
|
display: inline;
|
|
26
27
|
}
|
|
@@ -71,5 +72,8 @@ label {
|
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
.pds-textarea__error-message {
|
|
75
|
+
align-items: center;
|
|
74
76
|
color: var(--color-text-message-error-default);
|
|
77
|
+
display: flex;
|
|
78
|
+
gap: var(--spacing-icon-error-message);
|
|
75
79
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { assignDescription, isRequired, messageId } from "../../utils/form";
|
|
3
3
|
import { PdsLabel } from "../_internal/pds-label/pds-label";
|
|
4
|
+
import { danger } from "@pine-ds/icons/icons";
|
|
4
5
|
export class PdsTextarea {
|
|
5
6
|
constructor() {
|
|
6
7
|
this.onTextareaChange = (ev) => {
|
|
@@ -33,10 +34,10 @@ export class PdsTextarea {
|
|
|
33
34
|
return classNames.join(' ');
|
|
34
35
|
}
|
|
35
36
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
37
|
-
h(PdsLabel, { key: '
|
|
38
|
-
h("p", { key: '
|
|
39
|
-
h("p", { key: '
|
|
37
|
+
return (h(Host, { key: '461039704016b1b3858af80440863f1fc4930ceb', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: 'de68ba7ca3b6714e1da8594e76f60bab2a3de1fb', class: "pds-textarea" }, this.label &&
|
|
38
|
+
h(PdsLabel, { key: '102802b8244a929492731700fdde06a053f3e2d5', htmlFor: this.componentId, text: this.label }), h("textarea", { key: '55a3fde040749bd03a5e681dafad7db0717f4a7f', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onChange: this.onTextareaChange }, this.value), this.helperMessage &&
|
|
39
|
+
h("p", { key: '552e0c1240cdc51c215f5ddfc51f250156d8a4b2', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
|
|
40
|
+
h("p", { key: 'a7e6f4a0d926203f5ac56a8f99d03fd9b5f3647b', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, h("pds-icon", { key: '53a40e204e076147b27c921cdbe54336ca50d9e3', icon: danger, size: "small" }), this.errorMessage))));
|
|
40
41
|
}
|
|
41
42
|
static get is() { return "pds-textarea"; }
|
|
42
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -101,7 +102,7 @@ export class PdsTextarea {
|
|
|
101
102
|
"name": "defaultValue",
|
|
102
103
|
"text": "false"
|
|
103
104
|
}],
|
|
104
|
-
"text": "
|
|
105
|
+
"text": "Determines whether or not the textarea is disabled."
|
|
105
106
|
},
|
|
106
107
|
"attribute": "disabled",
|
|
107
108
|
"reflect": false,
|
|
@@ -119,7 +120,7 @@ export class PdsTextarea {
|
|
|
119
120
|
"optional": true,
|
|
120
121
|
"docs": {
|
|
121
122
|
"tags": [],
|
|
122
|
-
"text": "
|
|
123
|
+
"text": "Displays an error message below the textarea field."
|
|
123
124
|
},
|
|
124
125
|
"attribute": "error-message",
|
|
125
126
|
"reflect": false
|
|
@@ -136,7 +137,7 @@ export class PdsTextarea {
|
|
|
136
137
|
"optional": true,
|
|
137
138
|
"docs": {
|
|
138
139
|
"tags": [],
|
|
139
|
-
"text": "Displays a
|
|
140
|
+
"text": "Displays a message or hint below the textarea field."
|
|
140
141
|
},
|
|
141
142
|
"attribute": "helper-message",
|
|
142
143
|
"reflect": false
|
|
@@ -156,7 +157,7 @@ export class PdsTextarea {
|
|
|
156
157
|
"name": "defaultValue",
|
|
157
158
|
"text": "false"
|
|
158
159
|
}],
|
|
159
|
-
"text": "
|
|
160
|
+
"text": "Determines whether or not the textarea is invalid or throws an error."
|
|
160
161
|
},
|
|
161
162
|
"attribute": "invalid",
|
|
162
163
|
"reflect": false,
|
|
@@ -174,7 +175,7 @@ export class PdsTextarea {
|
|
|
174
175
|
"optional": true,
|
|
175
176
|
"docs": {
|
|
176
177
|
"tags": [],
|
|
177
|
-
"text": "Text to be displayed as the textarea label"
|
|
178
|
+
"text": "Text to be displayed as the textarea label."
|
|
178
179
|
},
|
|
179
180
|
"attribute": "label",
|
|
180
181
|
"reflect": false
|
|
@@ -191,7 +192,7 @@ export class PdsTextarea {
|
|
|
191
192
|
"optional": false,
|
|
192
193
|
"docs": {
|
|
193
194
|
"tags": [],
|
|
194
|
-
"text": "Specifies the name
|
|
195
|
+
"text": "Specifies the name. Submitted with the form name/value pair. This value will mirror the componentId."
|
|
195
196
|
},
|
|
196
197
|
"attribute": "name",
|
|
197
198
|
"reflect": false,
|
|
@@ -209,7 +210,7 @@ export class PdsTextarea {
|
|
|
209
210
|
"optional": true,
|
|
210
211
|
"docs": {
|
|
211
212
|
"tags": [],
|
|
212
|
-
"text": "Specifies a short hint that describes the expected value of the textarea"
|
|
213
|
+
"text": "Specifies a short hint that describes the expected value of the textarea."
|
|
213
214
|
},
|
|
214
215
|
"attribute": "placeholder",
|
|
215
216
|
"reflect": false
|
|
@@ -229,7 +230,7 @@ export class PdsTextarea {
|
|
|
229
230
|
"name": "defaultValue",
|
|
230
231
|
"text": "false"
|
|
231
232
|
}],
|
|
232
|
-
"text": "
|
|
233
|
+
"text": "Determines whether or not the textarea is readonly."
|
|
233
234
|
},
|
|
234
235
|
"attribute": "readonly",
|
|
235
236
|
"reflect": false,
|
|
@@ -250,7 +251,7 @@ export class PdsTextarea {
|
|
|
250
251
|
"name": "defaultValue",
|
|
251
252
|
"text": "false"
|
|
252
253
|
}],
|
|
253
|
-
"text": "
|
|
254
|
+
"text": "Determines whether or not the textarea is required."
|
|
254
255
|
},
|
|
255
256
|
"attribute": "required",
|
|
256
257
|
"reflect": false,
|
|
@@ -268,7 +269,7 @@ export class PdsTextarea {
|
|
|
268
269
|
"optional": true,
|
|
269
270
|
"docs": {
|
|
270
271
|
"tags": [],
|
|
271
|
-
"text": "Sets number of rows of text visible without needing to scroll in the textarea"
|
|
272
|
+
"text": "Sets number of rows of text visible without needing to scroll in the textarea."
|
|
272
273
|
},
|
|
273
274
|
"attribute": "rows",
|
|
274
275
|
"reflect": false
|
|
@@ -285,7 +286,7 @@ export class PdsTextarea {
|
|
|
285
286
|
"optional": true,
|
|
286
287
|
"docs": {
|
|
287
288
|
"tags": [],
|
|
288
|
-
"text": "The value of the textarea"
|
|
289
|
+
"text": "The value of the textarea."
|
|
289
290
|
},
|
|
290
291
|
"attribute": "value",
|
|
291
292
|
"reflect": false
|
|
@@ -301,7 +302,7 @@ export class PdsTextarea {
|
|
|
301
302
|
"composed": true,
|
|
302
303
|
"docs": {
|
|
303
304
|
"tags": [],
|
|
304
|
-
"text": "Event emitted whenever the value of the textarea changes"
|
|
305
|
+
"text": "Event emitted whenever the value of the textarea changes."
|
|
305
306
|
},
|
|
306
307
|
"complexType": {
|
|
307
308
|
"original": "TextareaChangeEventDetail",
|