@pine-ds/core 0.0.2-alpha.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/LICENSE +21 -0
- package/dist/cjs/index-13500e25.js +2468 -0
- package/dist/cjs/index-13500e25.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/pds-avatar.cjs.entry.js +70 -0
- package/dist/cjs/pds-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-button.cjs.entry.js +57 -0
- package/dist/cjs/pds-button.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-checkbox.cjs.entry.js +57 -0
- package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-chip.cjs.entry.js +49 -0
- package/dist/cjs/pds-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-copytext.cjs.entry.js +68 -0
- package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-divider.cjs.entry.js +35 -0
- package/dist/cjs/pds-divider.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-icon.cjs.entry.js +277 -0
- package/dist/cjs/pds-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-image.cjs.entry.js +31 -0
- package/dist/cjs/pds-image.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-input.cjs.entry.js +44 -0
- package/dist/cjs/pds-input.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-label-71ea2cad.js +44 -0
- package/dist/cjs/pds-label-71ea2cad.js.map +1 -0
- package/dist/cjs/pds-link.cjs.entry.js +37 -0
- package/dist/cjs/pds-link.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-progress.cjs.entry.js +27 -0
- package/dist/cjs/pds-progress.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-radio.cjs.entry.js +53 -0
- package/dist/cjs/pds-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-sortable-item.cjs.entry.js +24 -0
- package/dist/cjs/pds-sortable-item.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-sortable.cjs.entry.js +2706 -0
- package/dist/cjs/pds-sortable.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-switch.cjs.entry.js +55 -0
- package/dist/cjs/pds-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-tab.cjs.entry.js +33 -0
- package/dist/cjs/pds-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-tabpanel.cjs.entry.js +26 -0
- package/dist/cjs/pds-tabpanel.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-tabs.cjs.entry.js +98 -0
- package/dist/cjs/pds-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-textarea.cjs.entry.js +54 -0
- package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-tooltip.cjs.entry.js +151 -0
- package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/pine-core.cjs.js +25 -0
- package/dist/cjs/pine-core.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +37 -0
- package/dist/collection/components/_internal/pds-label/pds-label.js +7 -0
- package/dist/collection/components/_internal/pds-label/pds-label.js.map +1 -0
- package/dist/collection/components/pds-avatar/pds-avatar.css +59 -0
- package/dist/collection/components/pds-avatar/pds-avatar.js +217 -0
- package/dist/collection/components/pds-avatar/pds-avatar.js.map +1 -0
- package/dist/collection/components/pds-avatar/stories/pds-avatar.stories.js +65 -0
- package/dist/collection/components/pds-button/pds-button.css +122 -0
- package/dist/collection/components/pds-button/pds-button.js +187 -0
- package/dist/collection/components/pds-button/pds-button.js.map +1 -0
- package/dist/collection/components/pds-button/stories/pds-button.stories.js +65 -0
- package/dist/collection/components/pds-checkbox/pds-checkbox.css +106 -0
- package/dist/collection/components/pds-checkbox/pds-checkbox.js +266 -0
- package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -0
- package/dist/collection/components/pds-checkbox/stories/pds-checkbox.stories.js +80 -0
- package/dist/collection/components/pds-chip/pds-chip.css +245 -0
- package/dist/collection/components/pds-chip/pds-chip.js +188 -0
- package/dist/collection/components/pds-chip/pds-chip.js.map +1 -0
- package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +79 -0
- package/dist/collection/components/pds-copytext/pds-copytext.css +85 -0
- package/dist/collection/components/pds-copytext/pds-copytext.js +186 -0
- package/dist/collection/components/pds-copytext/pds-copytext.js.map +1 -0
- package/dist/collection/components/pds-copytext/stories/pds-copytext.stories.js +57 -0
- package/dist/collection/components/pds-divider/pds-divider.css +92 -0
- package/dist/collection/components/pds-divider/pds-divider.js +94 -0
- package/dist/collection/components/pds-divider/pds-divider.js.map +1 -0
- package/dist/collection/components/pds-divider/stories/pds-divider.stories.js +25 -0
- package/dist/collection/components/pds-icon/stories/pds-icon.stories.js +16 -0
- package/dist/collection/components/pds-image/pds-image.css +13 -0
- package/dist/collection/components/pds-image/pds-image.js +173 -0
- package/dist/collection/components/pds-image/pds-image.js.map +1 -0
- package/dist/collection/components/pds-image/stories/pds-image.stories.js +35 -0
- package/dist/collection/components/pds-input/pds-input.css +88 -0
- package/dist/collection/components/pds-input/pds-input.js +279 -0
- package/dist/collection/components/pds-input/pds-input.js.map +1 -0
- package/dist/collection/components/pds-input/stories/pds-input.stories.js +110 -0
- package/dist/collection/components/pds-link/pds-link.css +67 -0
- package/dist/collection/components/pds-link/pds-link.js +138 -0
- package/dist/collection/components/pds-link/pds-link.js.map +1 -0
- package/dist/collection/components/pds-link/stories/pds-link.stories.js +49 -0
- package/dist/collection/components/pds-progress/pds-progress.css +77 -0
- package/dist/collection/components/pds-progress/pds-progress.js +148 -0
- package/dist/collection/components/pds-progress/pds-progress.js.map +1 -0
- package/dist/collection/components/pds-progress/stories/pds-progress.stories.js +65 -0
- package/dist/collection/components/pds-radio/pds-radio.css +101 -0
- package/dist/collection/components/pds-radio/pds-radio.js +261 -0
- package/dist/collection/components/pds-radio/pds-radio.js.map +1 -0
- package/dist/collection/components/pds-radio/stories/pds-radio.stories.js +71 -0
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.css +63 -0
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +90 -0
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js.map +1 -0
- package/dist/collection/components/pds-sortable/pds-sortable-item/stories/pds-sortable-item.stories.js +24 -0
- package/dist/collection/components/pds-sortable/pds-sortable.css +10 -0
- package/dist/collection/components/pds-sortable/pds-sortable.js +150 -0
- package/dist/collection/components/pds-sortable/pds-sortable.js.map +1 -0
- package/dist/collection/components/pds-sortable/stories/pds-sortable.stories.js +130 -0
- package/dist/collection/components/pds-switch/pds-switch.css +134 -0
- package/dist/collection/components/pds-switch/pds-switch.js +277 -0
- package/dist/collection/components/pds-switch/pds-switch.js.map +1 -0
- package/dist/collection/components/pds-switch/stories/pds-switch.stories.js +102 -0
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +158 -0
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +154 -0
- package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js.map +1 -0
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.css +12 -0
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +107 -0
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js.map +1 -0
- package/dist/collection/components/pds-tabs/pds-tabs.css +33 -0
- package/dist/collection/components/pds-tabs/pds-tabs.js +209 -0
- package/dist/collection/components/pds-tabs/pds-tabs.js.map +1 -0
- package/dist/collection/components/pds-tabs/stories/pds-tabs.stories.js +63 -0
- package/dist/collection/components/pds-textarea/pds-textarea.css +84 -0
- package/dist/collection/components/pds-textarea/pds-textarea.js +303 -0
- package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -0
- package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +111 -0
- package/dist/collection/components/pds-textarea/textarea-interface.js +2 -0
- package/dist/collection/components/pds-textarea/textarea-interface.js.map +1 -0
- package/dist/collection/components/pds-tooltip/pds-tooltip.css +143 -0
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +287 -0
- package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -0
- package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +114 -0
- package/dist/collection/global/pine-ui-global.js +2 -0
- package/dist/collection/global/pine-ui-global.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/stories/_helpers/index.js +15 -0
- package/dist/collection/stories/_helpers/index.js.map +1 -0
- package/dist/collection/utils/form.js +28 -0
- package/dist/collection/utils/form.js.map +1 -0
- package/dist/collection/utils/overlay.js +68 -0
- package/dist/collection/utils/overlay.js.map +1 -0
- package/dist/collection/utils/types.js +2 -0
- package/dist/collection/utils/types.js.map +1 -0
- package/dist/collection/utils/utils.js +7 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/docs.d.ts +421 -0
- package/dist/docs.json +3718 -0
- package/dist/esm/index-a58668b3.js +2438 -0
- package/dist/esm/index-a58668b3.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/pds-avatar.entry.js +66 -0
- package/dist/esm/pds-avatar.entry.js.map +1 -0
- package/dist/esm/pds-button.entry.js +53 -0
- package/dist/esm/pds-button.entry.js.map +1 -0
- package/dist/esm/pds-checkbox.entry.js +53 -0
- package/dist/esm/pds-checkbox.entry.js.map +1 -0
- package/dist/esm/pds-chip.entry.js +45 -0
- package/dist/esm/pds-chip.entry.js.map +1 -0
- package/dist/esm/pds-copytext.entry.js +64 -0
- package/dist/esm/pds-copytext.entry.js.map +1 -0
- package/dist/esm/pds-divider.entry.js +31 -0
- package/dist/esm/pds-divider.entry.js.map +1 -0
- package/dist/esm/pds-icon.entry.js +273 -0
- package/dist/esm/pds-icon.entry.js.map +1 -0
- package/dist/esm/pds-image.entry.js +27 -0
- package/dist/esm/pds-image.entry.js.map +1 -0
- package/dist/esm/pds-input.entry.js +40 -0
- package/dist/esm/pds-input.entry.js.map +1 -0
- package/dist/esm/pds-label-a26dd876.js +39 -0
- package/dist/esm/pds-label-a26dd876.js.map +1 -0
- package/dist/esm/pds-link.entry.js +33 -0
- package/dist/esm/pds-link.entry.js.map +1 -0
- package/dist/esm/pds-progress.entry.js +23 -0
- package/dist/esm/pds-progress.entry.js.map +1 -0
- package/dist/esm/pds-radio.entry.js +49 -0
- package/dist/esm/pds-radio.entry.js.map +1 -0
- package/dist/esm/pds-sortable-item.entry.js +20 -0
- package/dist/esm/pds-sortable-item.entry.js.map +1 -0
- package/dist/esm/pds-sortable.entry.js +2702 -0
- package/dist/esm/pds-sortable.entry.js.map +1 -0
- package/dist/esm/pds-switch.entry.js +51 -0
- package/dist/esm/pds-switch.entry.js.map +1 -0
- package/dist/esm/pds-tab.entry.js +29 -0
- package/dist/esm/pds-tab.entry.js.map +1 -0
- package/dist/esm/pds-tabpanel.entry.js +22 -0
- package/dist/esm/pds-tabpanel.entry.js.map +1 -0
- package/dist/esm/pds-tabs.entry.js +94 -0
- package/dist/esm/pds-tabs.entry.js.map +1 -0
- package/dist/esm/pds-textarea.entry.js +50 -0
- package/dist/esm/pds-textarea.entry.js.map +1 -0
- package/dist/esm/pds-tooltip.entry.js +147 -0
- package/dist/esm/pds-tooltip.entry.js.map +1 -0
- package/dist/esm/pine-core.js +20 -0
- package/dist/esm/pine-core.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm-es5/index-a58668b3.js +3 -0
- package/dist/esm-es5/index-a58668b3.js.map +1 -0
- package/dist/esm-es5/index.js +2 -0
- package/dist/esm-es5/index.js.map +1 -0
- package/dist/esm-es5/loader.js +2 -0
- package/dist/esm-es5/loader.js.map +1 -0
- package/dist/esm-es5/pds-avatar.entry.js +2 -0
- package/dist/esm-es5/pds-avatar.entry.js.map +1 -0
- package/dist/esm-es5/pds-button.entry.js +2 -0
- package/dist/esm-es5/pds-button.entry.js.map +1 -0
- package/dist/esm-es5/pds-checkbox.entry.js +2 -0
- package/dist/esm-es5/pds-checkbox.entry.js.map +1 -0
- package/dist/esm-es5/pds-chip.entry.js +2 -0
- package/dist/esm-es5/pds-chip.entry.js.map +1 -0
- package/dist/esm-es5/pds-copytext.entry.js +2 -0
- package/dist/esm-es5/pds-copytext.entry.js.map +1 -0
- package/dist/esm-es5/pds-divider.entry.js +2 -0
- package/dist/esm-es5/pds-divider.entry.js.map +1 -0
- package/dist/esm-es5/pds-icon.entry.js +2 -0
- package/dist/esm-es5/pds-icon.entry.js.map +1 -0
- package/dist/esm-es5/pds-image.entry.js +2 -0
- package/dist/esm-es5/pds-image.entry.js.map +1 -0
- package/dist/esm-es5/pds-input.entry.js +2 -0
- package/dist/esm-es5/pds-input.entry.js.map +1 -0
- package/dist/esm-es5/pds-label-a26dd876.js +2 -0
- package/dist/esm-es5/pds-label-a26dd876.js.map +1 -0
- package/dist/esm-es5/pds-link.entry.js +2 -0
- package/dist/esm-es5/pds-link.entry.js.map +1 -0
- package/dist/esm-es5/pds-progress.entry.js +2 -0
- package/dist/esm-es5/pds-progress.entry.js.map +1 -0
- package/dist/esm-es5/pds-radio.entry.js +2 -0
- package/dist/esm-es5/pds-radio.entry.js.map +1 -0
- package/dist/esm-es5/pds-sortable-item.entry.js +2 -0
- package/dist/esm-es5/pds-sortable-item.entry.js.map +1 -0
- package/dist/esm-es5/pds-sortable.entry.js +8 -0
- package/dist/esm-es5/pds-sortable.entry.js.map +1 -0
- package/dist/esm-es5/pds-switch.entry.js +2 -0
- package/dist/esm-es5/pds-switch.entry.js.map +1 -0
- package/dist/esm-es5/pds-tab.entry.js +2 -0
- package/dist/esm-es5/pds-tab.entry.js.map +1 -0
- package/dist/esm-es5/pds-tabpanel.entry.js +2 -0
- package/dist/esm-es5/pds-tabpanel.entry.js.map +1 -0
- package/dist/esm-es5/pds-tabs.entry.js +2 -0
- package/dist/esm-es5/pds-tabs.entry.js.map +1 -0
- package/dist/esm-es5/pds-textarea.entry.js +2 -0
- package/dist/esm-es5/pds-textarea.entry.js.map +1 -0
- package/dist/esm-es5/pds-tooltip.entry.js +2 -0
- package/dist/esm-es5/pds-tooltip.entry.js.map +1 -0
- package/dist/esm-es5/pine-core.js +2 -0
- package/dist/esm-es5/pine-core.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/pine-core/index.esm.js +2 -0
- package/dist/pine-core/index.esm.js.map +1 -0
- package/dist/pine-core/p-0a776a7b.entry.js +2 -0
- package/dist/pine-core/p-0a776a7b.entry.js.map +1 -0
- package/dist/pine-core/p-0adb4b48.entry.js +2 -0
- package/dist/pine-core/p-0adb4b48.entry.js.map +1 -0
- package/dist/pine-core/p-0c26a00d.entry.js +2 -0
- package/dist/pine-core/p-0c26a00d.entry.js.map +1 -0
- package/dist/pine-core/p-1c0ffcab.entry.js +2 -0
- package/dist/pine-core/p-1c0ffcab.entry.js.map +1 -0
- package/dist/pine-core/p-22bd3102.system.entry.js +9 -0
- package/dist/pine-core/p-22bd3102.system.entry.js.map +1 -0
- package/dist/pine-core/p-22dd8116.entry.js +2 -0
- package/dist/pine-core/p-22dd8116.entry.js.map +1 -0
- package/dist/pine-core/p-23fb6af2.system.entry.js +2 -0
- package/dist/pine-core/p-23fb6af2.system.entry.js.map +1 -0
- package/dist/pine-core/p-24077dcd.entry.js +2 -0
- package/dist/pine-core/p-24077dcd.entry.js.map +1 -0
- package/dist/pine-core/p-27fd7f08.system.entry.js +2 -0
- package/dist/pine-core/p-27fd7f08.system.entry.js.map +1 -0
- package/dist/pine-core/p-331cbf1d.entry.js +2 -0
- package/dist/pine-core/p-331cbf1d.entry.js.map +1 -0
- package/dist/pine-core/p-3386bfe1.system.entry.js +2 -0
- package/dist/pine-core/p-3386bfe1.system.entry.js.map +1 -0
- package/dist/pine-core/p-401cd4bc.entry.js +2 -0
- package/dist/pine-core/p-401cd4bc.entry.js.map +1 -0
- package/dist/pine-core/p-4a804680.entry.js +2 -0
- package/dist/pine-core/p-4a804680.entry.js.map +1 -0
- package/dist/pine-core/p-4fc42ff3.system.entry.js +2 -0
- package/dist/pine-core/p-4fc42ff3.system.entry.js.map +1 -0
- package/dist/pine-core/p-50ea2036.system.js +2 -0
- package/dist/pine-core/p-50ea2036.system.js.map +1 -0
- package/dist/pine-core/p-5b37a4a2.system.entry.js +2 -0
- package/dist/pine-core/p-5b37a4a2.system.entry.js.map +1 -0
- package/dist/pine-core/p-643f5378.entry.js +2 -0
- package/dist/pine-core/p-643f5378.entry.js.map +1 -0
- package/dist/pine-core/p-669d948a.system.entry.js +2 -0
- package/dist/pine-core/p-669d948a.system.entry.js.map +1 -0
- package/dist/pine-core/p-73262287.system.entry.js +2 -0
- package/dist/pine-core/p-73262287.system.entry.js.map +1 -0
- package/dist/pine-core/p-79d7e0b1.system.entry.js +2 -0
- package/dist/pine-core/p-79d7e0b1.system.entry.js.map +1 -0
- package/dist/pine-core/p-7bc01826.entry.js +2 -0
- package/dist/pine-core/p-7bc01826.entry.js.map +1 -0
- package/dist/pine-core/p-7fcd5f0b.entry.js +8 -0
- package/dist/pine-core/p-7fcd5f0b.entry.js.map +1 -0
- package/dist/pine-core/p-85f6a94e.system.entry.js +2 -0
- package/dist/pine-core/p-85f6a94e.system.entry.js.map +1 -0
- package/dist/pine-core/p-8f62c812.entry.js +2 -0
- package/dist/pine-core/p-8f62c812.entry.js.map +1 -0
- package/dist/pine-core/p-930ab8a3.system.entry.js +2 -0
- package/dist/pine-core/p-930ab8a3.system.entry.js.map +1 -0
- package/dist/pine-core/p-938886d8.system.entry.js +2 -0
- package/dist/pine-core/p-938886d8.system.entry.js.map +1 -0
- package/dist/pine-core/p-97cb4285.entry.js +2 -0
- package/dist/pine-core/p-97cb4285.entry.js.map +1 -0
- package/dist/pine-core/p-abdca153.js +3 -0
- package/dist/pine-core/p-abdca153.js.map +1 -0
- package/dist/pine-core/p-ac31a7c8.system.entry.js +2 -0
- package/dist/pine-core/p-ac31a7c8.system.entry.js.map +1 -0
- package/dist/pine-core/p-af75cc15.entry.js +2 -0
- package/dist/pine-core/p-af75cc15.entry.js.map +1 -0
- package/dist/pine-core/p-b17b818b.entry.js +2 -0
- package/dist/pine-core/p-b17b818b.entry.js.map +1 -0
- package/dist/pine-core/p-b79a8b07.entry.js +2 -0
- package/dist/pine-core/p-b79a8b07.entry.js.map +1 -0
- package/dist/pine-core/p-bce2d5b5.system.entry.js +2 -0
- package/dist/pine-core/p-bce2d5b5.system.entry.js.map +1 -0
- package/dist/pine-core/p-bff583bd.system.js +2 -0
- package/dist/pine-core/p-bff583bd.system.js.map +1 -0
- package/dist/pine-core/p-c0f9dbe1.system.entry.js +2 -0
- package/dist/pine-core/p-c0f9dbe1.system.entry.js.map +1 -0
- package/dist/pine-core/p-c4dbae0e.system.js +2 -0
- package/dist/pine-core/p-c4dbae0e.system.js.map +1 -0
- package/dist/pine-core/p-c6d878f8.entry.js +2 -0
- package/dist/pine-core/p-c6d878f8.entry.js.map +1 -0
- package/dist/pine-core/p-c8a41b43.system.entry.js +2 -0
- package/dist/pine-core/p-c8a41b43.system.entry.js.map +1 -0
- package/dist/pine-core/p-d3e173ea.system.entry.js +2 -0
- package/dist/pine-core/p-d3e173ea.system.entry.js.map +1 -0
- package/dist/pine-core/p-f09892d3.system.entry.js +2 -0
- package/dist/pine-core/p-f09892d3.system.entry.js.map +1 -0
- package/dist/pine-core/p-f168654a.entry.js +2 -0
- package/dist/pine-core/p-f168654a.entry.js.map +1 -0
- package/dist/pine-core/p-f1d7f16f.js +2 -0
- package/dist/pine-core/p-f1d7f16f.js.map +1 -0
- package/dist/pine-core/p-f2c3035d.system.entry.js +2 -0
- package/dist/pine-core/p-f2c3035d.system.entry.js.map +1 -0
- package/dist/pine-core/p-f3af6d74.system.entry.js +2 -0
- package/dist/pine-core/p-f3af6d74.system.entry.js.map +1 -0
- package/dist/pine-core/p-fa5d4e73.system.js +3 -0
- package/dist/pine-core/p-fa5d4e73.system.js.map +1 -0
- package/dist/pine-core/p-fba29e90.entry.js +2 -0
- package/dist/pine-core/p-fba29e90.entry.js.map +1 -0
- package/dist/pine-core/pine-core.css +1 -0
- package/dist/pine-core/pine-core.esm.js +2 -0
- package/dist/pine-core/pine-core.esm.js.map +1 -0
- package/dist/pine-core/pine-core.js +127 -0
- package/dist/pine-core/svg/access-key.svg +1 -0
- package/dist/pine-core/svg/add-circle.svg +1 -0
- package/dist/pine-core/svg/add-image.svg +1 -0
- package/dist/pine-core/svg/add-small.svg +1 -0
- package/dist/pine-core/svg/add.svg +1 -0
- package/dist/pine-core/svg/ai-sparkle.svg +1 -0
- package/dist/pine-core/svg/ai-writer-filled.svg +1 -0
- package/dist/pine-core/svg/ai-writer.svg +1 -0
- package/dist/pine-core/svg/align-center.svg +1 -0
- package/dist/pine-core/svg/align-justify.svg +1 -0
- package/dist/pine-core/svg/align-left.svg +1 -0
- package/dist/pine-core/svg/align-right.svg +1 -0
- package/dist/pine-core/svg/analytics-filled.svg +1 -0
- package/dist/pine-core/svg/analytics-outline.svg +1 -0
- package/dist/pine-core/svg/app-store.svg +1 -0
- package/dist/pine-core/svg/archive.svg +1 -0
- package/dist/pine-core/svg/arrow-corner.svg +1 -0
- package/dist/pine-core/svg/arrow-down.svg +1 -0
- package/dist/pine-core/svg/arrow-left.svg +1 -0
- package/dist/pine-core/svg/arrow-right.svg +1 -0
- package/dist/pine-core/svg/arrow-up.svg +1 -0
- package/dist/pine-core/svg/assessment.svg +1 -0
- package/dist/pine-core/svg/at-sign.svg +1 -0
- package/dist/pine-core/svg/attach.svg +1 -0
- package/dist/pine-core/svg/automations.svg +1 -0
- package/dist/pine-core/svg/ban.svg +1 -0
- package/dist/pine-core/svg/bank.svg +1 -0
- package/dist/pine-core/svg/bell.svg +1 -0
- package/dist/pine-core/svg/blog-filled.svg +1 -0
- package/dist/pine-core/svg/blog.svg +1 -0
- package/dist/pine-core/svg/bold.svg +1 -0
- package/dist/pine-core/svg/broadcast.svg +1 -0
- package/dist/pine-core/svg/calendar-date.svg +1 -0
- package/dist/pine-core/svg/calendar-schedule.svg +1 -0
- package/dist/pine-core/svg/calendar-simple.svg +1 -0
- package/dist/pine-core/svg/card-bw-amex.svg +1 -0
- package/dist/pine-core/svg/card-bw-apple-card.svg +1 -0
- package/dist/pine-core/svg/card-bw-diners-club.svg +1 -0
- package/dist/pine-core/svg/card-bw-discover.svg +1 -0
- package/dist/pine-core/svg/card-bw-gpay-card.svg +1 -0
- package/dist/pine-core/svg/card-bw-mastercard.svg +1 -0
- package/dist/pine-core/svg/card-bw-paypal.svg +1 -0
- package/dist/pine-core/svg/card-bw-stripe.svg +1 -0
- package/dist/pine-core/svg/card-bw-visa.svg +1 -0
- package/dist/pine-core/svg/card-update.svg +1 -0
- package/dist/pine-core/svg/caret-down.svg +1 -0
- package/dist/pine-core/svg/caret-left.svg +1 -0
- package/dist/pine-core/svg/caret-right.svg +1 -0
- package/dist/pine-core/svg/caret-up.svg +1 -0
- package/dist/pine-core/svg/cart-add.svg +1 -0
- package/dist/pine-core/svg/cart.svg +1 -0
- package/dist/pine-core/svg/certificate.svg +1 -0
- package/dist/pine-core/svg/check-circle-filled.svg +1 -0
- package/dist/pine-core/svg/check-circle.svg +1 -0
- package/dist/pine-core/svg/check.svg +1 -0
- package/dist/pine-core/svg/circle-1.svg +1 -0
- package/dist/pine-core/svg/circle-2.svg +1 -0
- package/dist/pine-core/svg/circle-3.svg +1 -0
- package/dist/pine-core/svg/circle-4.svg +1 -0
- package/dist/pine-core/svg/circle-5.svg +1 -0
- package/dist/pine-core/svg/circle-6.svg +1 -0
- package/dist/pine-core/svg/circle-7.svg +1 -0
- package/dist/pine-core/svg/circle-8.svg +1 -0
- package/dist/pine-core/svg/circle-9.svg +1 -0
- package/dist/pine-core/svg/clock.svg +1 -0
- package/dist/pine-core/svg/closed-captions.svg +1 -0
- package/dist/pine-core/svg/cloud-upload.svg +1 -0
- package/dist/pine-core/svg/code.svg +1 -0
- package/dist/pine-core/svg/color.svg +1 -0
- package/dist/pine-core/svg/columns.svg +1 -0
- package/dist/pine-core/svg/comment.svg +1 -0
- package/dist/pine-core/svg/connect.svg +1 -0
- package/dist/pine-core/svg/contact.svg +1 -0
- package/dist/pine-core/svg/contacts-filled.svg +1 -0
- package/dist/pine-core/svg/contacts-outline.svg +1 -0
- package/dist/pine-core/svg/conversation.svg +1 -0
- package/dist/pine-core/svg/copy.svg +1 -0
- package/dist/pine-core/svg/coupon.svg +1 -0
- package/dist/pine-core/svg/course.svg +1 -0
- package/dist/pine-core/svg/creator-studio-filled.svg +1 -0
- package/dist/pine-core/svg/creator-studio.svg +1 -0
- package/dist/pine-core/svg/credit-card.svg +1 -0
- package/dist/pine-core/svg/custom-field.svg +1 -0
- package/dist/pine-core/svg/customize.svg +1 -0
- package/dist/pine-core/svg/danger-filled.svg +1 -0
- package/dist/pine-core/svg/danger.svg +1 -0
- package/dist/pine-core/svg/dashboard-filled.svg +1 -0
- package/dist/pine-core/svg/dashboard-outline.svg +1 -0
- package/dist/pine-core/svg/delete-circle.svg +1 -0
- package/dist/pine-core/svg/delete-key.svg +1 -0
- package/dist/pine-core/svg/delete-x.svg +1 -0
- package/dist/pine-core/svg/dollar-sign.svg +1 -0
- package/dist/pine-core/svg/dot-menu-horizontal.svg +1 -0
- package/dist/pine-core/svg/down-small.svg +1 -0
- package/dist/pine-core/svg/download.svg +1 -0
- package/dist/pine-core/svg/downsell.svg +1 -0
- package/dist/pine-core/svg/draft.svg +1 -0
- package/dist/pine-core/svg/drop.svg +1 -0
- package/dist/pine-core/svg/duplicate.svg +1 -0
- package/dist/pine-core/svg/email-activity.svg +1 -0
- package/dist/pine-core/svg/emoji.svg +1 -0
- package/dist/pine-core/svg/enlarge-vertical.svg +1 -0
- package/dist/pine-core/svg/enlarge.svg +1 -0
- package/dist/pine-core/svg/expand.svg +1 -0
- package/dist/pine-core/svg/facebook-2.svg +1 -0
- package/dist/pine-core/svg/facebook.svg +1 -0
- package/dist/pine-core/svg/favorite.svg +1 -0
- package/dist/pine-core/svg/feedback.svg +1 -0
- package/dist/pine-core/svg/file-money.svg +1 -0
- package/dist/pine-core/svg/file.svg +1 -0
- package/dist/pine-core/svg/filter.svg +1 -0
- package/dist/pine-core/svg/flag.svg +1 -0
- package/dist/pine-core/svg/flash-filled.svg +1 -0
- package/dist/pine-core/svg/flash.svg +1 -0
- package/dist/pine-core/svg/folder-group.svg +1 -0
- package/dist/pine-core/svg/folder.svg +1 -0
- package/dist/pine-core/svg/form-field.svg +1 -0
- package/dist/pine-core/svg/form-filled.svg +1 -0
- package/dist/pine-core/svg/form.svg +1 -0
- package/dist/pine-core/svg/fullscreen.svg +1 -0
- package/dist/pine-core/svg/funnel.svg +1 -0
- package/dist/pine-core/svg/grant-offer.svg +1 -0
- package/dist/pine-core/svg/handle-2-vertical.svg +1 -0
- package/dist/pine-core/svg/handle-2.svg +1 -0
- package/dist/pine-core/svg/handle.svg +1 -0
- package/dist/pine-core/svg/hashtag.svg +1 -0
- package/dist/pine-core/svg/hd-video.svg +1 -0
- package/dist/pine-core/svg/heading-large.svg +1 -0
- package/dist/pine-core/svg/heading-small.svg +1 -0
- package/dist/pine-core/svg/headset.svg +1 -0
- package/dist/pine-core/svg/help-filled.svg +1 -0
- package/dist/pine-core/svg/help-outline.svg +1 -0
- package/dist/pine-core/svg/home-alt.svg +1 -0
- package/dist/pine-core/svg/horizontal-line.svg +1 -0
- package/dist/pine-core/svg/image.svg +1 -0
- package/dist/pine-core/svg/info-circle-filled.svg +1 -0
- package/dist/pine-core/svg/info-circle.svg +1 -0
- package/dist/pine-core/svg/instagram.svg +1 -0
- package/dist/pine-core/svg/ios-battery.svg +1 -0
- package/dist/pine-core/svg/ios-data.svg +1 -0
- package/dist/pine-core/svg/ios-wifi.svg +1 -0
- package/dist/pine-core/svg/italic.svg +1 -0
- package/dist/pine-core/svg/kajabi-filled.svg +1 -0
- package/dist/pine-core/svg/kajabi-outlined.svg +1 -0
- package/dist/pine-core/svg/lab.svg +1 -0
- package/dist/pine-core/svg/launch.svg +1 -0
- package/dist/pine-core/svg/layout-grid.svg +1 -0
- package/dist/pine-core/svg/layout-list.svg +1 -0
- package/dist/pine-core/svg/left-small.svg +1 -0
- package/dist/pine-core/svg/linkedin.svg +1 -0
- package/dist/pine-core/svg/list-bullet.svg +1 -0
- package/dist/pine-core/svg/list-numbers.svg +1 -0
- package/dist/pine-core/svg/location.svg +1 -0
- package/dist/pine-core/svg/lock-alt.svg +1 -0
- package/dist/pine-core/svg/lock.svg +1 -0
- package/dist/pine-core/svg/logo-afterpay.svg +1 -0
- package/dist/pine-core/svg/loop.svg +1 -0
- package/dist/pine-core/svg/mail-filled.svg +1 -0
- package/dist/pine-core/svg/mail.svg +1 -0
- package/dist/pine-core/svg/map.svg +1 -0
- package/dist/pine-core/svg/mapped.svg +1 -0
- package/dist/pine-core/svg/margin-left.svg +1 -0
- package/dist/pine-core/svg/margin-right.svg +1 -0
- package/dist/pine-core/svg/marker-filled.svg +1 -0
- package/dist/pine-core/svg/marker.svg +1 -0
- package/dist/pine-core/svg/marketing-filled.svg +1 -0
- package/dist/pine-core/svg/marketing-outline.svg +1 -0
- package/dist/pine-core/svg/menu-2.svg +1 -0
- package/dist/pine-core/svg/menu-alt.svg +1 -0
- package/dist/pine-core/svg/menu.svg +1 -0
- package/dist/pine-core/svg/merge.svg +1 -0
- package/dist/pine-core/svg/microphone-off.svg +1 -0
- package/dist/pine-core/svg/microphone.svg +1 -0
- package/dist/pine-core/svg/move-left.svg +1 -0
- package/dist/pine-core/svg/move-right.svg +1 -0
- package/dist/pine-core/svg/multi-pay.svg +1 -0
- package/dist/pine-core/svg/newsletter.svg +1 -0
- package/dist/pine-core/svg/one-off-session.svg +1 -0
- package/dist/pine-core/svg/one-time.svg +1 -0
- package/dist/pine-core/svg/partners-filled.svg +1 -0
- package/dist/pine-core/svg/partners-outline.svg +1 -0
- package/dist/pine-core/svg/pause-circle.svg +1 -0
- package/dist/pine-core/svg/pause.svg +1 -0
- package/dist/pine-core/svg/payout.svg +1 -0
- package/dist/pine-core/svg/pen.svg +1 -0
- package/dist/pine-core/svg/phone-portrait.svg +1 -0
- package/dist/pine-core/svg/phone-toolbar.svg +1 -0
- package/dist/pine-core/svg/play-circle.svg +1 -0
- package/dist/pine-core/svg/play-outline.svg +1 -0
- package/dist/pine-core/svg/play-store.svg +1 -0
- package/dist/pine-core/svg/play.svg +1 -0
- package/dist/pine-core/svg/plug.svg +1 -0
- package/dist/pine-core/svg/premium.svg +1 -0
- package/dist/pine-core/svg/present.svg +1 -0
- package/dist/pine-core/svg/preview-off.svg +1 -0
- package/dist/pine-core/svg/preview-on.svg +1 -0
- package/dist/pine-core/svg/products-filled.svg +1 -0
- package/dist/pine-core/svg/products-outline.svg +1 -0
- package/dist/pine-core/svg/question-circle.svg +1 -0
- package/dist/pine-core/svg/quote.svg +1 -0
- package/dist/pine-core/svg/redo.svg +1 -0
- package/dist/pine-core/svg/refresh.svg +1 -0
- package/dist/pine-core/svg/remove-circle.svg +1 -0
- package/dist/pine-core/svg/remove.svg +1 -0
- package/dist/pine-core/svg/rename.svg +1 -0
- package/dist/pine-core/svg/reset-password.svg +1 -0
- package/dist/pine-core/svg/restore.svg +1 -0
- package/dist/pine-core/svg/right-small.svg +1 -0
- package/dist/pine-core/svg/round-dollar.svg +1 -0
- package/dist/pine-core/svg/rows.svg +1 -0
- package/dist/pine-core/svg/sales-filled.svg +1 -0
- package/dist/pine-core/svg/sales-outline.svg +1 -0
- package/dist/pine-core/svg/scissor.svg +1 -0
- package/dist/pine-core/svg/screen-share-off.svg +1 -0
- package/dist/pine-core/svg/screen-share-on.svg +1 -0
- package/dist/pine-core/svg/search-small.svg +1 -0
- package/dist/pine-core/svg/search.svg +1 -0
- package/dist/pine-core/svg/send-message.svg +1 -0
- package/dist/pine-core/svg/sequences.svg +1 -0
- package/dist/pine-core/svg/series.svg +1 -0
- package/dist/pine-core/svg/settings-filled.svg +1 -0
- package/dist/pine-core/svg/settings-outline.svg +1 -0
- package/dist/pine-core/svg/share.svg +1 -0
- package/dist/pine-core/svg/skipped.svg +1 -0
- package/dist/pine-core/svg/slash-divider.svg +1 -0
- package/dist/pine-core/svg/sparkle-filled.svg +1 -0
- package/dist/pine-core/svg/sparkle.svg +1 -0
- package/dist/pine-core/svg/speaker.svg +1 -0
- package/dist/pine-core/svg/stack.svg +1 -0
- package/dist/pine-core/svg/star.svg +1 -0
- package/dist/pine-core/svg/stop.svg +1 -0
- package/dist/pine-core/svg/stopwatch.svg +1 -0
- package/dist/pine-core/svg/strikethrough.svg +1 -0
- package/dist/pine-core/svg/subscript.svg +1 -0
- package/dist/pine-core/svg/subscriptions.svg +1 -0
- package/dist/pine-core/svg/super-admin.svg +1 -0
- package/dist/pine-core/svg/superscript.svg +1 -0
- package/dist/pine-core/svg/sync.svg +1 -0
- package/dist/pine-core/svg/tablet-landscape.svg +1 -0
- package/dist/pine-core/svg/tablet-portrait.svg +1 -0
- package/dist/pine-core/svg/text-styles.svg +1 -0
- package/dist/pine-core/svg/theme-store-filled.svg +1 -0
- package/dist/pine-core/svg/theme-store.svg +1 -0
- package/dist/pine-core/svg/thumbs-down-filled.svg +1 -0
- package/dist/pine-core/svg/thumbs-down.svg +1 -0
- package/dist/pine-core/svg/thumbs-up-filled.svg +1 -0
- package/dist/pine-core/svg/thumbs-up.svg +1 -0
- package/dist/pine-core/svg/tiktok.svg +1 -0
- package/dist/pine-core/svg/trash.svg +1 -0
- package/dist/pine-core/svg/twitter.svg +1 -0
- package/dist/pine-core/svg/underline.svg +1 -0
- package/dist/pine-core/svg/undo.svg +1 -0
- package/dist/pine-core/svg/unlock.svg +1 -0
- package/dist/pine-core/svg/unmapped.svg +1 -0
- package/dist/pine-core/svg/up-small.svg +1 -0
- package/dist/pine-core/svg/upload.svg +1 -0
- package/dist/pine-core/svg/url.svg +1 -0
- package/dist/pine-core/svg/user-filled.svg +1 -0
- package/dist/pine-core/svg/user.svg +1 -0
- package/dist/pine-core/svg/users-wm.svg +1 -0
- package/dist/pine-core/svg/users.svg +1 -0
- package/dist/pine-core/svg/video-off.svg +1 -0
- package/dist/pine-core/svg/video-on.svg +1 -0
- package/dist/pine-core/svg/warning-filled.svg +1 -0
- package/dist/pine-core/svg/warning.svg +1 -0
- package/dist/pine-core/svg/website-filled.svg +1 -0
- package/dist/pine-core/svg/website-outline.svg +1 -0
- package/dist/pine-core/svg/window-paragraph.svg +1 -0
- package/dist/pine-core/svg/world.svg +1 -0
- package/dist/pine-core/svg/wrench.svg +1 -0
- package/dist/pine-core/svg/youtube.svg +1 -0
- package/dist/scripts/build-tokens.js +160 -0
- package/dist/scripts/build-tokens.js.map +1 -0
- package/dist/types/components/_internal/pds-label/pds-label.d.ts +22 -0
- package/dist/types/components/pds-avatar/pds-avatar.d.ts +42 -0
- package/dist/types/components/pds-button/pds-button.d.ts +36 -0
- package/dist/types/components/pds-checkbox/pds-checkbox.d.ts +55 -0
- package/dist/types/components/pds-chip/pds-chip.d.ts +39 -0
- package/dist/types/components/pds-copytext/pds-copytext.d.ts +34 -0
- package/dist/types/components/pds-divider/pds-divider.d.ts +17 -0
- package/dist/types/components/pds-image/pds-image.d.ts +42 -0
- package/dist/types/components/pds-input/pds-input.d.ts +59 -0
- package/dist/types/components/pds-link/pds-link.d.ts +34 -0
- package/dist/types/components/pds-progress/pds-progress.d.ts +31 -0
- package/dist/types/components/pds-radio/pds-radio.d.ts +54 -0
- package/dist/types/components/pds-sortable/pds-sortable-item/pds-sortable-item.d.ts +20 -0
- package/dist/types/components/pds-sortable/pds-sortable.d.ts +28 -0
- package/dist/types/components/pds-switch/pds-switch.d.ts +59 -0
- package/dist/types/components/pds-tabs/pds-tab/pds-tab.d.ts +35 -0
- package/dist/types/components/pds-tabs/pds-tabpanel/pds-tabpanel.d.ts +23 -0
- package/dist/types/components/pds-tabs/pds-tabs.d.ts +40 -0
- package/dist/types/components/pds-textarea/pds-textarea.d.ts +64 -0
- package/dist/types/components/pds-textarea/textarea-interface.d.ts +8 -0
- package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +68 -0
- package/dist/types/components.d.ts +1566 -0
- package/dist/types/global/pine-ui-global.d.ts +1 -0
- package/dist/types/home/runner/work/pine/pine/libs/core/.stencil/scripts/build-tokens.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/interface.d.ts +17 -0
- package/dist/types/stencil-public-runtime.d.ts +1681 -0
- package/dist/types/stories/_helpers/index.d.ts +12 -0
- package/dist/types/utils/form.d.ts +12 -0
- package/dist/types/utils/overlay.d.ts +8 -0
- package/dist/types/utils/types.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +21 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +115 -0
- package/readme.md +75 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--background-color: #fff;
|
|
3
|
+
--background-color-disabled: var(--pine-color-neutral-grey-200);
|
|
4
|
+
--color: var(--pine-color-neutral-charcoal-400);
|
|
5
|
+
--color-error: var(--pine-color-red-300);
|
|
6
|
+
--color-placeholder: var(--pine-color-neutral-charcoal-200);
|
|
7
|
+
--color-disabled: var(--pine-color-neutral-charcoal-200);
|
|
8
|
+
--border-color-default: var(--pine-color-neutral-grey-400);
|
|
9
|
+
--border-color-hover: var(--pine-color-neutral-grey-500);
|
|
10
|
+
--border-color-focus-visible: var(--pine-color-neutral-grey-300);
|
|
11
|
+
--border-color-error: var(--pine-color-red-300);
|
|
12
|
+
--focus-visible-outline-color: var(--pine-color-primary-200);
|
|
13
|
+
--focus-visible-outline-color-error: var(--pine-color-red-200);
|
|
14
|
+
--label-font-size: var(--pine-font-size-body);
|
|
15
|
+
--label-font-weight: var(--pine-font-weight-medium);
|
|
16
|
+
--label-line-height: var(--pine-line-height-md);
|
|
17
|
+
--label-margin-block-end: var(--pine-spacing-xs);
|
|
18
|
+
--field-font-size: var(--pine-font-size-body);
|
|
19
|
+
--field-font-weight: var(--pine-font-weight-regular);
|
|
20
|
+
--field-line-height: var(--pine-line-height-md);
|
|
21
|
+
--field-padding-block: var(--pine-spacing-xs);
|
|
22
|
+
--field-padding-inline: var(--pine-spacing-sm);
|
|
23
|
+
--helper-message-font-size: var(--pine-font-size-body-xs);
|
|
24
|
+
--helper-message-font-weight: var(--pine-font-weight-regular);
|
|
25
|
+
--helper-message-line-height: var(--pine-line-height-sm);
|
|
26
|
+
--helper-message-margin-block-start: var(--pine-spacing-xs);
|
|
27
|
+
display: inline;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.pds-textarea {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
label {
|
|
36
|
+
display: block;
|
|
37
|
+
font-size: var(--label-font-size);
|
|
38
|
+
font-weight: var(--label-font-weight);
|
|
39
|
+
line-height: var(--label-line-height);
|
|
40
|
+
margin-block-end: var(--label-margin-block-end);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.pds-textarea__field {
|
|
44
|
+
background-color: var(--background-color);
|
|
45
|
+
border: var(--pine-border-interactive);
|
|
46
|
+
border-radius: var(--pine-border-radius-md);
|
|
47
|
+
font-family: inherit;
|
|
48
|
+
font-size: var(--field-font-size);
|
|
49
|
+
font-weight: var(--field-font-weight);
|
|
50
|
+
line-height: var(--field-line-height);
|
|
51
|
+
padding: var(--field-padding-block) var(--field-padding-inline);
|
|
52
|
+
}
|
|
53
|
+
.pds-textarea__field:hover:not(:disabled, .is-invalid) {
|
|
54
|
+
border-color: var(--border-color-hover);
|
|
55
|
+
}
|
|
56
|
+
.pds-textarea__field:disabled {
|
|
57
|
+
background-color: var(--background-color-disabled);
|
|
58
|
+
color: var(--color-disabled);
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
}
|
|
61
|
+
.pds-textarea__field:focus-visible {
|
|
62
|
+
border-color: var(--border-color-focus-visible);
|
|
63
|
+
outline: 4px solid var(--focus-visible-outline-color);
|
|
64
|
+
}
|
|
65
|
+
.pds-textarea__field::placeholder {
|
|
66
|
+
color: var(--color-placeholder);
|
|
67
|
+
}
|
|
68
|
+
.pds-textarea__field.is-invalid {
|
|
69
|
+
border-color: var(--color-error);
|
|
70
|
+
outline-color: var(--focus-visible-outline-color-error);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.pds-textarea__error-message,
|
|
74
|
+
.pds-textarea__helper-message {
|
|
75
|
+
font-size: var(--helper-message-font-size);
|
|
76
|
+
font-weight: var(--helper-message-font-weight);
|
|
77
|
+
line-height: var(--helper-message-line-height);
|
|
78
|
+
margin-block-end: 0;
|
|
79
|
+
margin-block-start: var(--helper-message-margin-block-start);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.pds-textarea__error-message {
|
|
83
|
+
color: var(--color-error);
|
|
84
|
+
}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { assignDescription, isRequired, messageId } from "../../utils/form";
|
|
3
|
+
import { PdsLabel } from "../_internal/pds-label/pds-label";
|
|
4
|
+
export class PdsTextarea {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.onTextareaChange = (ev) => {
|
|
7
|
+
const textarea = ev.target;
|
|
8
|
+
isRequired(textarea, this);
|
|
9
|
+
if (textarea) {
|
|
10
|
+
this.value = textarea.innerHTML;
|
|
11
|
+
}
|
|
12
|
+
this.pdsTextareaChange.emit({ value: this.value, event: ev });
|
|
13
|
+
};
|
|
14
|
+
this.componentId = undefined;
|
|
15
|
+
this.disabled = false;
|
|
16
|
+
this.errorMessage = undefined;
|
|
17
|
+
this.helperMessage = undefined;
|
|
18
|
+
this.invalid = false;
|
|
19
|
+
this.label = undefined;
|
|
20
|
+
this.name = this.componentId;
|
|
21
|
+
this.placeholder = undefined;
|
|
22
|
+
this.readonly = false;
|
|
23
|
+
this.required = false;
|
|
24
|
+
this.rows = undefined;
|
|
25
|
+
this.value = undefined;
|
|
26
|
+
}
|
|
27
|
+
textareaClassNames() {
|
|
28
|
+
const classNames = ['pds-textarea__field'];
|
|
29
|
+
if (this.invalid && this.invalid === true) {
|
|
30
|
+
classNames.push('is-invalid');
|
|
31
|
+
}
|
|
32
|
+
return classNames.join(' ');
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
return (h(Host, { "aria-disabled": this.disabled ? 'true' : null }, h("div", { class: "pds-textarea" }, this.label &&
|
|
36
|
+
h(PdsLabel, { htmlFor: this.componentId, text: this.label }), h("textarea", { "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onChange: this.onTextareaChange }, this.value), this.helperMessage &&
|
|
37
|
+
h("p", { class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
|
|
38
|
+
h("p", { "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, this.errorMessage))));
|
|
39
|
+
}
|
|
40
|
+
static get is() { return "pds-textarea"; }
|
|
41
|
+
static get encapsulation() { return "shadow"; }
|
|
42
|
+
static get originalStyleUrls() {
|
|
43
|
+
return {
|
|
44
|
+
"$": ["pds-textarea.scss"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static get styleUrls() {
|
|
48
|
+
return {
|
|
49
|
+
"$": ["pds-textarea.css"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get properties() {
|
|
53
|
+
return {
|
|
54
|
+
"componentId": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"mutable": false,
|
|
57
|
+
"complexType": {
|
|
58
|
+
"original": "string",
|
|
59
|
+
"resolved": "string",
|
|
60
|
+
"references": {}
|
|
61
|
+
},
|
|
62
|
+
"required": true,
|
|
63
|
+
"optional": false,
|
|
64
|
+
"docs": {
|
|
65
|
+
"tags": [],
|
|
66
|
+
"text": "A unique identifier used for the underlying component `id` attribute."
|
|
67
|
+
},
|
|
68
|
+
"attribute": "component-id",
|
|
69
|
+
"reflect": false
|
|
70
|
+
},
|
|
71
|
+
"disabled": {
|
|
72
|
+
"type": "boolean",
|
|
73
|
+
"mutable": false,
|
|
74
|
+
"complexType": {
|
|
75
|
+
"original": "boolean",
|
|
76
|
+
"resolved": "boolean",
|
|
77
|
+
"references": {}
|
|
78
|
+
},
|
|
79
|
+
"required": false,
|
|
80
|
+
"optional": false,
|
|
81
|
+
"docs": {
|
|
82
|
+
"tags": [{
|
|
83
|
+
"name": "defaultValue",
|
|
84
|
+
"text": "false"
|
|
85
|
+
}],
|
|
86
|
+
"text": "Indicates whether or not the textarea is disabled"
|
|
87
|
+
},
|
|
88
|
+
"attribute": "disabled",
|
|
89
|
+
"reflect": false,
|
|
90
|
+
"defaultValue": "false"
|
|
91
|
+
},
|
|
92
|
+
"errorMessage": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"mutable": false,
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "string",
|
|
97
|
+
"resolved": "string",
|
|
98
|
+
"references": {}
|
|
99
|
+
},
|
|
100
|
+
"required": false,
|
|
101
|
+
"optional": true,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [],
|
|
104
|
+
"text": "Specifies the error text and provides an error-themed treatment to the field"
|
|
105
|
+
},
|
|
106
|
+
"attribute": "error-message",
|
|
107
|
+
"reflect": false
|
|
108
|
+
},
|
|
109
|
+
"helperMessage": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"mutable": false,
|
|
112
|
+
"complexType": {
|
|
113
|
+
"original": "string",
|
|
114
|
+
"resolved": "string",
|
|
115
|
+
"references": {}
|
|
116
|
+
},
|
|
117
|
+
"required": false,
|
|
118
|
+
"optional": true,
|
|
119
|
+
"docs": {
|
|
120
|
+
"tags": [],
|
|
121
|
+
"text": "Displays a hint or description of the textarea"
|
|
122
|
+
},
|
|
123
|
+
"attribute": "helper-message",
|
|
124
|
+
"reflect": false
|
|
125
|
+
},
|
|
126
|
+
"invalid": {
|
|
127
|
+
"type": "boolean",
|
|
128
|
+
"mutable": true,
|
|
129
|
+
"complexType": {
|
|
130
|
+
"original": "boolean",
|
|
131
|
+
"resolved": "boolean",
|
|
132
|
+
"references": {}
|
|
133
|
+
},
|
|
134
|
+
"required": false,
|
|
135
|
+
"optional": false,
|
|
136
|
+
"docs": {
|
|
137
|
+
"tags": [{
|
|
138
|
+
"name": "defaultValue",
|
|
139
|
+
"text": "false"
|
|
140
|
+
}],
|
|
141
|
+
"text": "Indicates whether or not the textarea is invalid or throws an error"
|
|
142
|
+
},
|
|
143
|
+
"attribute": "invalid",
|
|
144
|
+
"reflect": false,
|
|
145
|
+
"defaultValue": "false"
|
|
146
|
+
},
|
|
147
|
+
"label": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "string",
|
|
152
|
+
"resolved": "string",
|
|
153
|
+
"references": {}
|
|
154
|
+
},
|
|
155
|
+
"required": false,
|
|
156
|
+
"optional": true,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": "Text to be displayed as the textarea label"
|
|
160
|
+
},
|
|
161
|
+
"attribute": "label",
|
|
162
|
+
"reflect": false
|
|
163
|
+
},
|
|
164
|
+
"name": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"mutable": false,
|
|
167
|
+
"complexType": {
|
|
168
|
+
"original": "string",
|
|
169
|
+
"resolved": "string",
|
|
170
|
+
"references": {}
|
|
171
|
+
},
|
|
172
|
+
"required": false,
|
|
173
|
+
"optional": false,
|
|
174
|
+
"docs": {
|
|
175
|
+
"tags": [],
|
|
176
|
+
"text": "Specifies the name, submitted with the form name/value pair. This value will mirror the componentId"
|
|
177
|
+
},
|
|
178
|
+
"attribute": "name",
|
|
179
|
+
"reflect": false,
|
|
180
|
+
"defaultValue": "this.componentId"
|
|
181
|
+
},
|
|
182
|
+
"placeholder": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"mutable": false,
|
|
185
|
+
"complexType": {
|
|
186
|
+
"original": "string",
|
|
187
|
+
"resolved": "string",
|
|
188
|
+
"references": {}
|
|
189
|
+
},
|
|
190
|
+
"required": false,
|
|
191
|
+
"optional": true,
|
|
192
|
+
"docs": {
|
|
193
|
+
"tags": [],
|
|
194
|
+
"text": "Specifies a short hint that describes the expected value of the textarea"
|
|
195
|
+
},
|
|
196
|
+
"attribute": "placeholder",
|
|
197
|
+
"reflect": false
|
|
198
|
+
},
|
|
199
|
+
"readonly": {
|
|
200
|
+
"type": "boolean",
|
|
201
|
+
"mutable": false,
|
|
202
|
+
"complexType": {
|
|
203
|
+
"original": "boolean",
|
|
204
|
+
"resolved": "boolean",
|
|
205
|
+
"references": {}
|
|
206
|
+
},
|
|
207
|
+
"required": false,
|
|
208
|
+
"optional": false,
|
|
209
|
+
"docs": {
|
|
210
|
+
"tags": [{
|
|
211
|
+
"name": "defaultValue",
|
|
212
|
+
"text": "false"
|
|
213
|
+
}],
|
|
214
|
+
"text": "Indicates whether or not the textarea is readonly"
|
|
215
|
+
},
|
|
216
|
+
"attribute": "readonly",
|
|
217
|
+
"reflect": false,
|
|
218
|
+
"defaultValue": "false"
|
|
219
|
+
},
|
|
220
|
+
"required": {
|
|
221
|
+
"type": "boolean",
|
|
222
|
+
"mutable": false,
|
|
223
|
+
"complexType": {
|
|
224
|
+
"original": "boolean",
|
|
225
|
+
"resolved": "boolean",
|
|
226
|
+
"references": {}
|
|
227
|
+
},
|
|
228
|
+
"required": false,
|
|
229
|
+
"optional": false,
|
|
230
|
+
"docs": {
|
|
231
|
+
"tags": [{
|
|
232
|
+
"name": "defaultValue",
|
|
233
|
+
"text": "false"
|
|
234
|
+
}],
|
|
235
|
+
"text": "Indicates whether or not the textarea is required"
|
|
236
|
+
},
|
|
237
|
+
"attribute": "required",
|
|
238
|
+
"reflect": false,
|
|
239
|
+
"defaultValue": "false"
|
|
240
|
+
},
|
|
241
|
+
"rows": {
|
|
242
|
+
"type": "number",
|
|
243
|
+
"mutable": false,
|
|
244
|
+
"complexType": {
|
|
245
|
+
"original": "number",
|
|
246
|
+
"resolved": "number",
|
|
247
|
+
"references": {}
|
|
248
|
+
},
|
|
249
|
+
"required": false,
|
|
250
|
+
"optional": true,
|
|
251
|
+
"docs": {
|
|
252
|
+
"tags": [],
|
|
253
|
+
"text": "Sets number of rows of text visible without needing to scroll in the textarea"
|
|
254
|
+
},
|
|
255
|
+
"attribute": "rows",
|
|
256
|
+
"reflect": false
|
|
257
|
+
},
|
|
258
|
+
"value": {
|
|
259
|
+
"type": "string",
|
|
260
|
+
"mutable": true,
|
|
261
|
+
"complexType": {
|
|
262
|
+
"original": "string",
|
|
263
|
+
"resolved": "string",
|
|
264
|
+
"references": {}
|
|
265
|
+
},
|
|
266
|
+
"required": false,
|
|
267
|
+
"optional": true,
|
|
268
|
+
"docs": {
|
|
269
|
+
"tags": [],
|
|
270
|
+
"text": "The value of the textarea"
|
|
271
|
+
},
|
|
272
|
+
"attribute": "value",
|
|
273
|
+
"reflect": false
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
static get events() {
|
|
278
|
+
return [{
|
|
279
|
+
"method": "pdsTextareaChange",
|
|
280
|
+
"name": "pdsTextareaChange",
|
|
281
|
+
"bubbles": true,
|
|
282
|
+
"cancelable": true,
|
|
283
|
+
"composed": true,
|
|
284
|
+
"docs": {
|
|
285
|
+
"tags": [],
|
|
286
|
+
"text": "Event emitted whenever the value of the textarea changes"
|
|
287
|
+
},
|
|
288
|
+
"complexType": {
|
|
289
|
+
"original": "TextareaChangeEventDetail",
|
|
290
|
+
"resolved": "TextareaChangeEventDetail",
|
|
291
|
+
"references": {
|
|
292
|
+
"TextareaChangeEventDetail": {
|
|
293
|
+
"location": "import",
|
|
294
|
+
"path": "./textarea-interface",
|
|
295
|
+
"id": "src/components/pds-textarea/textarea-interface.ts::TextareaChangeEventDetail"
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}];
|
|
300
|
+
}
|
|
301
|
+
static get elementRef() { return "el"; }
|
|
302
|
+
}
|
|
303
|
+
//# sourceMappingURL=pds-textarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pds-textarea.js","sourceRoot":"","sources":["../../../../src/components/pds-textarea/pds-textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAO5D,MAAM,OAAO,WAAW;;QAwEd,qBAAgB,GAAG,CAAC,EAAS,EAAE,EAAE;YACvC,MAAM,QAAQ,GAAG,EAAE,CAAC,MAA6B,CAAC;YAClD,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YAE3B,IAAI,QAAQ,EAAE;gBACZ,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC;aACjC;YAED,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAC,CAAC,CAAC;QAC9D,CAAC,CAAC;;wBArEiB,KAAK;;;uBAgBS,KAAK;;oBAUf,IAAI,CAAC,WAAW;;wBAWpB,KAAK;wBAML,KAAK;;;;IA4BhB,kBAAkB;QACxB,MAAM,UAAU,GAAG,CAAC,qBAAqB,CAAC,CAAC;QAE3C,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,EAAE;YACzC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SAC/B;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qBACY,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI;YAE5C,WAAK,KAAK,EAAC,cAAc;gBACtB,IAAI,CAAC,KAAK;oBACT,EAAC,QAAQ,IAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI;gBAE3D,oCACoB,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,kBACzE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAC/C,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAE,EAChC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,gBAAgB,IAC/B,IAAI,CAAC,KAAK,CAAY;gBACvB,IAAI,CAAC,aAAa;oBACjB,SACE,KAAK,EAAC,8BAA8B,EACpC,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,IAExC,IAAI,CAAC,aAAa,CACjB;gBAEL,IAAI,CAAC,OAAO;oBACX,sBACY,WAAW,EACrB,KAAK,EAAC,6BAA6B,EACnC,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,IAEvC,IAAI,CAAC,YAAY,CAChB,CAEF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\nimport { assignDescription, isRequired, messageId } from '../../utils/form';\nimport { TextareaChangeEventDetail } from './textarea-interface';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-textarea',\n styleUrl: 'pds-textarea.scss',\n shadow: true,\n})\nexport class PdsTextarea {\n @Element() el: HTMLPdsTextareaElement;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Indicates whether or not the textarea is disabled\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * Specifies the error text and provides an error-themed treatment to the field\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays a hint or description of the textarea\n */\n @Prop() helperMessage?: string;\n\n /**\n * Indicates whether or not the textarea is invalid or throws an error\n * @defaultValue false\n */\n @Prop({mutable: true}) invalid = false; // eslint-disable-line @stencil-community/strict-mutable\n\n /**\n * Text to be displayed as the textarea label\n */\n @Prop() label?: string;\n\n /**\n * Specifies the name, submitted with the form name/value pair. This value will mirror the componentId\n */\n @Prop() name: string = this.componentId;\n\n /**\n * Specifies a short hint that describes the expected value of the textarea\n */\n @Prop() placeholder?: string;\n\n /**\n * Indicates whether or not the textarea is readonly\n * @defaultValue false\n */\n @Prop() readonly = false;\n\n /**\n * Indicates whether or not the textarea is required\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * Sets number of rows of text visible without needing to scroll in the textarea\n */\n @Prop() rows?: number;\n\n /**\n * The value of the textarea\n */\n @Prop({mutable: true}) value?: string;\n\n /**\n * Event emitted whenever the value of the textarea changes\n */\n @Event() pdsTextareaChange: EventEmitter<TextareaChangeEventDetail>;\n\n private onTextareaChange = (ev: Event) => {\n const textarea = ev.target as HTMLTextAreaElement;\n isRequired(textarea, this);\n\n if (textarea) {\n this.value = textarea.innerHTML;\n }\n\n this.pdsTextareaChange.emit({value: this.value, event: ev});\n };\n\n private textareaClassNames() {\n const classNames = ['pds-textarea__field'];\n\n if (this.invalid && this.invalid === true) {\n classNames.push('is-invalid');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n >\n <div class=\"pds-textarea\">\n {this.label &&\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n }\n <textarea\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n class={this.textareaClassNames()}\n disabled={this.disabled}\n id={this.componentId}\n name={this.name}\n placeholder={this.placeholder}\n readOnly={this.readonly}\n required={this.required}\n rows={this.rows}\n onChange={this.onTextareaChange}\n >{this.value}</textarea>\n {this.helperMessage &&\n <p\n class=\"pds-textarea__helper-message\"\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </p>\n }\n {this.invalid &&\n <p\n aria-live=\"assertive\"\n class=\"pds-textarea__error-message\"\n id={messageId(this.componentId, 'error')}\n >\n {this.errorMessage}\n </p>\n }\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { extractArgTypes } from '@pxtrn/storybook-addon-docs-stencil';
|
|
3
|
+
import { withActions } from '@storybook/addon-actions/decorator';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
args: {
|
|
7
|
+
componentId: null,
|
|
8
|
+
disabled: false,
|
|
9
|
+
errorMessage: null,
|
|
10
|
+
helperMessage: null,
|
|
11
|
+
invalid: false,
|
|
12
|
+
label: null,
|
|
13
|
+
name: null,
|
|
14
|
+
placeholder: null,
|
|
15
|
+
readonly: false,
|
|
16
|
+
required: false,
|
|
17
|
+
value: null,
|
|
18
|
+
},
|
|
19
|
+
argTypes: extractArgTypes('pds-textarea'),
|
|
20
|
+
component: 'pds-textarea',
|
|
21
|
+
decorators: [withActions],
|
|
22
|
+
parameters: {
|
|
23
|
+
actions: {
|
|
24
|
+
handles: ['onchange', 'pdsTextareaChange'],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
title: 'components/Textarea',
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const BaseTemplate = (args) => html`<pds-textarea
|
|
31
|
+
component-id="${args.componentId}"
|
|
32
|
+
disabled="${args.disabled}"
|
|
33
|
+
error-message="${args.errorMessage}"
|
|
34
|
+
helper-message="${args.helperMessage}"
|
|
35
|
+
invalid="${args.invalid}"
|
|
36
|
+
label="${args.label}"
|
|
37
|
+
name="${args.name}"
|
|
38
|
+
onChange=${args.onChange}"
|
|
39
|
+
placeholder="${args.placeholder}"
|
|
40
|
+
readonly="${args.readonly}"
|
|
41
|
+
required="${args.required}"
|
|
42
|
+
rows="${args.rows}"
|
|
43
|
+
value="${args.value}"
|
|
44
|
+
>
|
|
45
|
+
</pds-textarea>`;
|
|
46
|
+
|
|
47
|
+
export const Default = BaseTemplate.bind({});
|
|
48
|
+
Default.args = {
|
|
49
|
+
componentId: 'pds-textarea-default-example',
|
|
50
|
+
label: 'Name',
|
|
51
|
+
name: 'Default',
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export const Rows = BaseTemplate.bind({});
|
|
55
|
+
Rows.args = {
|
|
56
|
+
componentId: 'pds-textarea-rows-example',
|
|
57
|
+
label: 'Name',
|
|
58
|
+
name: 'Rows',
|
|
59
|
+
rows: 4,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const Required = BaseTemplate.bind({});
|
|
63
|
+
Required.args = {
|
|
64
|
+
componentId: 'pds-textarea-required-example',
|
|
65
|
+
label: 'Name',
|
|
66
|
+
name: 'Required',
|
|
67
|
+
required: true,
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export const Placeholder = BaseTemplate.bind({});
|
|
71
|
+
Placeholder.args = {
|
|
72
|
+
componentId: 'pds-textarea-placeholder-example',
|
|
73
|
+
label: 'Name',
|
|
74
|
+
name: 'Placeholder',
|
|
75
|
+
placeholder: 'Placeholder...'
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const Disabled = BaseTemplate.bind({});
|
|
79
|
+
Disabled.args = {
|
|
80
|
+
componentId: 'pds-textarea-disabled-example',
|
|
81
|
+
disabled: true,
|
|
82
|
+
label: 'Name',
|
|
83
|
+
name: 'Disabled',
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const Readonly = BaseTemplate.bind({});
|
|
87
|
+
Readonly.args = {
|
|
88
|
+
componentId: 'pds-textarea-readonly-example',
|
|
89
|
+
label: 'Name',
|
|
90
|
+
name: 'Readonly',
|
|
91
|
+
readonly: true,
|
|
92
|
+
value: 'Readonly Value'
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export const Message = BaseTemplate.bind({});
|
|
96
|
+
Message.args = {
|
|
97
|
+
componentId: 'pds-textarea-helper-example',
|
|
98
|
+
helperMessage: 'Helper message text',
|
|
99
|
+
label: 'Name',
|
|
100
|
+
name: 'Message',
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export const Invalid = BaseTemplate.bind({});
|
|
104
|
+
Invalid.args = {
|
|
105
|
+
componentId: 'pds-textarea-error-example',
|
|
106
|
+
errorMessage: 'Error',
|
|
107
|
+
invalid: true,
|
|
108
|
+
label: 'Name',
|
|
109
|
+
name: 'Error',
|
|
110
|
+
required: true,
|
|
111
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea-interface.js","sourceRoot":"","sources":["../../../../src/components/pds-textarea/textarea-interface.ts"],"names":[],"mappings":"","sourcesContent":["export interface TextareaChangeEventDetail {\n event?: Event;\n value: string | null;\n}\n\nexport interface TextareaEvent <T = TextareaChangeEventDetail> extends CustomEvent {\n detail: T;\n target: HTMLPdsTextareaElement;\n}\n"]}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--background-color: var(--pine-color-neutral-charcoal-400);
|
|
3
|
+
--box-shadow: var(--pine-box-shadow-md);
|
|
4
|
+
--color: var(--pine-color-base-white);
|
|
5
|
+
--width: 320px;
|
|
6
|
+
--arrow-size: 6px;
|
|
7
|
+
--arrow-offset: 14px;
|
|
8
|
+
--overlay-border-radius: var(--pine-border-radius-md);
|
|
9
|
+
--overlay-font-size: var(--pine-font-size-body-sm);
|
|
10
|
+
--overlay-line-height: var(--pine-line-height-sm);
|
|
11
|
+
--overlay-padding: var(--pine-spacing-xs) calc(var(--pine-spacing-md) / 2);
|
|
12
|
+
--arrow-pointing-down: var(--arrow-size) var(--arrow-size) 0;
|
|
13
|
+
--arrow-pointing-to-the-right: var(--arrow-size) 0 var(--arrow-size) var(--arrow-size);
|
|
14
|
+
--arrow-pointing-to-the-left: var(--arrow-size) var(--arrow-size) var(--arrow-size) 0;
|
|
15
|
+
--arrow-pointing-up: 0 var(--arrow-size) var(--arrow-size);
|
|
16
|
+
display: inline-block;
|
|
17
|
+
position: relative;
|
|
18
|
+
}
|
|
19
|
+
:host ::slotted([slot=content]) {
|
|
20
|
+
white-space: normal;
|
|
21
|
+
width: var(--width);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.pds-tooltip__content {
|
|
25
|
+
background-color: var(--background-color);
|
|
26
|
+
border-radius: var(--overlay-border-radius);
|
|
27
|
+
box-shadow: var(--box-shadow);
|
|
28
|
+
color: var(--color);
|
|
29
|
+
font-size: var(--overlay-font-size);
|
|
30
|
+
line-height: var(--overlay-line-height);
|
|
31
|
+
opacity: 0;
|
|
32
|
+
padding: var(--overlay-padding);
|
|
33
|
+
position: absolute;
|
|
34
|
+
visibility: hidden;
|
|
35
|
+
width: max-content;
|
|
36
|
+
}
|
|
37
|
+
.pds-tooltip--is-open .pds-tooltip__content {
|
|
38
|
+
opacity: 1;
|
|
39
|
+
visibility: visible;
|
|
40
|
+
z-index: 1;
|
|
41
|
+
}
|
|
42
|
+
:host(.pds-tooltip--has-html-content) .pds-tooltip__content {
|
|
43
|
+
width: auto;
|
|
44
|
+
}
|
|
45
|
+
.pds-tooltip__content::after {
|
|
46
|
+
border-color: transparent;
|
|
47
|
+
border-right-color: transparent;
|
|
48
|
+
border-style: solid;
|
|
49
|
+
border-width: var(--arrow-pointing-to-the-left);
|
|
50
|
+
content: "";
|
|
51
|
+
height: 0;
|
|
52
|
+
position: absolute;
|
|
53
|
+
width: 0;
|
|
54
|
+
}
|
|
55
|
+
.pds-tooltip--right .pds-tooltip__content::after {
|
|
56
|
+
border-inline-end-color: var(--background-color);
|
|
57
|
+
border-width: var(--arrow-pointing-to-the-left);
|
|
58
|
+
left: calc(var(--arrow-size) * -1);
|
|
59
|
+
top: 50%;
|
|
60
|
+
transform: translateY(-50%);
|
|
61
|
+
}
|
|
62
|
+
.pds-tooltip--right-end .pds-tooltip__content::after {
|
|
63
|
+
border-inline-end-color: var(--background-color);
|
|
64
|
+
border-width: var(--arrow-pointing-to-the-left);
|
|
65
|
+
bottom: var(--arrow-offset);
|
|
66
|
+
left: calc(var(--arrow-size) * -1);
|
|
67
|
+
top: initial;
|
|
68
|
+
}
|
|
69
|
+
.pds-tooltip--right-start .pds-tooltip__content::after {
|
|
70
|
+
border-inline-end-color: var(--background-color);
|
|
71
|
+
border-width: var(--arrow-pointing-to-the-left);
|
|
72
|
+
left: calc(var(--arrow-size) * -1);
|
|
73
|
+
top: var(--arrow-offset);
|
|
74
|
+
}
|
|
75
|
+
.pds-tooltip--top .pds-tooltip__content::after {
|
|
76
|
+
border-block-start-color: var(--background-color);
|
|
77
|
+
border-width: var(--arrow-pointing-down);
|
|
78
|
+
bottom: calc(var(--arrow-size) * -1);
|
|
79
|
+
left: 50%;
|
|
80
|
+
top: initial;
|
|
81
|
+
transform: translateX(-50%);
|
|
82
|
+
}
|
|
83
|
+
.pds-tooltip--top-start .pds-tooltip__content::after {
|
|
84
|
+
border-block-start-color: var(--background-color);
|
|
85
|
+
border-width: var(--arrow-pointing-down);
|
|
86
|
+
bottom: calc(var(--arrow-size) * -1);
|
|
87
|
+
left: var(--arrow-offset);
|
|
88
|
+
top: initial;
|
|
89
|
+
}
|
|
90
|
+
.pds-tooltip--top-end .pds-tooltip__content::after {
|
|
91
|
+
border-block-start-color: var(--background-color);
|
|
92
|
+
border-width: var(--arrow-pointing-down);
|
|
93
|
+
bottom: calc(var(--arrow-size) * -1);
|
|
94
|
+
left: initial;
|
|
95
|
+
right: var(--arrow-offset);
|
|
96
|
+
top: initial;
|
|
97
|
+
}
|
|
98
|
+
.pds-tooltip--left .pds-tooltip__content::after {
|
|
99
|
+
border-inline-start-color: var(--background-color);
|
|
100
|
+
border-width: var(--arrow-pointing-to-the-right);
|
|
101
|
+
left: initial;
|
|
102
|
+
right: calc(var(--arrow-size) * -1);
|
|
103
|
+
top: 50%;
|
|
104
|
+
transform: translateY(-50%);
|
|
105
|
+
}
|
|
106
|
+
.pds-tooltip--left-end .pds-tooltip__content::after {
|
|
107
|
+
border-inline-start-color: var(--background-color);
|
|
108
|
+
border-width: var(--arrow-pointing-to-the-right);
|
|
109
|
+
bottom: var(--arrow-offset);
|
|
110
|
+
left: initial;
|
|
111
|
+
right: calc(var(--arrow-size) * -1);
|
|
112
|
+
top: initial;
|
|
113
|
+
}
|
|
114
|
+
.pds-tooltip--left-start .pds-tooltip__content::after {
|
|
115
|
+
border-inline-start-color: var(--background-color);
|
|
116
|
+
border-width: var(--arrow-pointing-to-the-right);
|
|
117
|
+
left: initial;
|
|
118
|
+
right: calc(var(--arrow-size) * -1);
|
|
119
|
+
top: var(--arrow-offset);
|
|
120
|
+
}
|
|
121
|
+
.pds-tooltip--bottom .pds-tooltip__content::after {
|
|
122
|
+
border-block-end-color: var(--background-color);
|
|
123
|
+
border-width: var(--arrow-pointing-up);
|
|
124
|
+
left: 50%;
|
|
125
|
+
top: calc(var(--arrow-size) * -1);
|
|
126
|
+
transform: translateX(-50%);
|
|
127
|
+
}
|
|
128
|
+
.pds-tooltip--bottom-end .pds-tooltip__content::after {
|
|
129
|
+
border-block-end-color: var(--background-color);
|
|
130
|
+
border-width: var(--arrow-pointing-up);
|
|
131
|
+
left: initial;
|
|
132
|
+
right: var(--arrow-offset);
|
|
133
|
+
top: calc(var(--arrow-size) * -1);
|
|
134
|
+
}
|
|
135
|
+
.pds-tooltip--bottom-start .pds-tooltip__content::after {
|
|
136
|
+
border-block-end-color: var(--background-color);
|
|
137
|
+
border-width: var(--arrow-pointing-up);
|
|
138
|
+
left: var(--arrow-offset);
|
|
139
|
+
top: calc(var(--arrow-size) * -1);
|
|
140
|
+
}
|
|
141
|
+
.pds-tooltip--no-arrow .pds-tooltip__content::after {
|
|
142
|
+
border-width: 0;
|
|
143
|
+
}
|