@limetech/lime-elements 38.7.1 → 38.7.2
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/CHANGELOG.md +8 -0
- package/dist/cjs/{checkbox.template-f86d05d4.js → checkbox.template-60f3ffb2.js} +2 -2
- package/dist/cjs/{checkbox.template-f86d05d4.js.map → checkbox.template-60f3ffb2.js.map} +1 -1
- package/dist/cjs/{index-d1052409.js → index-174a078a.js} +387 -9
- package/dist/cjs/index-174a078a.js.map +1 -0
- package/dist/cjs/lime-elements.cjs.js +2 -2
- package/dist/cjs/limel-3d-hover-effect-glow.cjs.entry.js +1 -1
- package/dist/cjs/limel-action-bar-item_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-action-bar_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-badge_3.cjs.entry.js +1 -1
- package/dist/cjs/limel-banner.cjs.entry.js +1 -1
- package/dist/cjs/{limel-breadcrumbs_7.cjs.entry.js → limel-breadcrumbs_8.cjs.entry.js} +40 -22
- package/dist/cjs/limel-breadcrumbs_8.cjs.entry.js.map +1 -0
- package/dist/cjs/limel-button-group.cjs.entry.js +1 -1
- package/dist/cjs/limel-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-callout.cjs.entry.js +1 -1
- package/dist/cjs/limel-card.cjs.entry.js +1 -1
- package/dist/cjs/limel-chart.cjs.entry.js +1 -1
- package/dist/cjs/limel-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/limel-chip_2.cjs.entry.js +53 -56
- package/dist/cjs/limel-chip_2.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-circular-progress.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +2 -2
- package/dist/cjs/limel-color-picker-palette.cjs.entry.js +1 -1
- package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-config.cjs.entry.js +1 -1
- package/dist/cjs/limel-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-dialog.cjs.entry.js +1 -1
- package/dist/cjs/limel-dock-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-dock.cjs.entry.js +1 -1
- package/dist/cjs/limel-dynamic-label_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-file-viewer.cjs.entry.js +1 -1
- package/dist/cjs/limel-file.cjs.entry.js +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-flex-container.cjs.entry.js +1 -1
- package/dist/cjs/limel-form.cjs.entry.js +1 -1
- package/dist/cjs/limel-grid.cjs.entry.js +1 -1
- package/dist/cjs/limel-header.cjs.entry.js +1 -1
- package/dist/cjs/limel-help-content.cjs.entry.js +1 -1
- package/dist/cjs/limel-help.cjs.entry.js +1 -1
- package/dist/cjs/limel-icon-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-icon.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +1 -1
- package/dist/cjs/limel-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/limel-markdown.cjs.entry.js +1 -1
- package/dist/cjs/limel-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-portal.cjs.entry.js +1 -1
- package/dist/cjs/limel-progress-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/limel-progress-flow.cjs.entry.js +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-select.cjs.entry.js +11 -25
- package/dist/cjs/limel-select.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +1 -1
- package/dist/cjs/limel-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/limel-split-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-switch.cjs.entry.js +2 -2
- package/dist/cjs/limel-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +1 -1
- package/dist/cjs/limel-text-editor.cjs.entry.js +8 -27
- package/dist/cjs/limel-text-editor.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{make-enter-clickable-c116ac4f.js → make-enter-clickable-71e4750b.js} +2 -2
- package/dist/cjs/{make-enter-clickable-c116ac4f.js.map → make-enter-clickable-71e4750b.js.map} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/chip-set/chip-set.css +28 -412
- package/dist/collection/components/chip-set/chip-set.js +51 -54
- package/dist/collection/components/chip-set/chip-set.js.map +1 -1
- package/dist/collection/components/input-field/input-field.css +9 -300
- package/dist/collection/components/input-field/input-field.js +1 -17
- package/dist/collection/components/input-field/input-field.js.map +1 -1
- package/dist/collection/components/notched-outline/notched-outline.css +297 -0
- package/dist/collection/components/notched-outline/notched-outline.js +221 -0
- package/dist/collection/components/notched-outline/notched-outline.js.map +1 -0
- package/dist/collection/components/select/select.css +5 -33
- package/dist/collection/components/select/select.template.js +8 -19
- package/dist/collection/components/select/select.template.js.map +1 -1
- package/dist/collection/components/text-editor/text-editor.css +5 -102
- package/dist/collection/components/text-editor/text-editor.js +7 -26
- package/dist/collection/components/text-editor/text-editor.js.map +1 -1
- package/dist/collection/style/internal/shared_input-select-picker.scss +8 -2
- package/dist/esm/{checkbox.template-c42b7020.js → checkbox.template-1fd53d7b.js} +2 -2
- package/dist/esm/{checkbox.template-c42b7020.js.map → checkbox.template-1fd53d7b.js.map} +1 -1
- package/dist/esm/{index-6156b4fd.js → index-2714248e.js} +387 -9
- package/dist/esm/index-2714248e.js.map +1 -0
- package/dist/esm/lime-elements.js +3 -3
- package/dist/esm/limel-3d-hover-effect-glow.entry.js +1 -1
- package/dist/esm/limel-action-bar-item_2.entry.js +2 -2
- package/dist/esm/limel-action-bar_2.entry.js +1 -1
- package/dist/esm/limel-badge_3.entry.js +1 -1
- package/dist/esm/limel-banner.entry.js +1 -1
- package/dist/esm/{limel-breadcrumbs_7.entry.js → limel-breadcrumbs_8.entry.js} +40 -23
- package/dist/esm/limel-breadcrumbs_8.entry.js.map +1 -0
- package/dist/esm/limel-button-group.entry.js +1 -1
- package/dist/esm/limel-button.entry.js +2 -2
- package/dist/esm/limel-callout.entry.js +1 -1
- package/dist/esm/limel-card.entry.js +1 -1
- package/dist/esm/limel-chart.entry.js +1 -1
- package/dist/esm/limel-checkbox.entry.js +2 -2
- package/dist/esm/limel-chip_2.entry.js +53 -56
- package/dist/esm/limel-chip_2.entry.js.map +1 -1
- package/dist/esm/limel-circular-progress.entry.js +1 -1
- package/dist/esm/limel-code-editor.entry.js +1 -1
- package/dist/esm/limel-collapsible-section.entry.js +2 -2
- package/dist/esm/limel-color-picker-palette.entry.js +1 -1
- package/dist/esm/limel-color-picker.entry.js +1 -1
- package/dist/esm/limel-config.entry.js +1 -1
- package/dist/esm/limel-date-picker.entry.js +1 -1
- package/dist/esm/limel-dialog.entry.js +1 -1
- package/dist/esm/limel-dock-button.entry.js +1 -1
- package/dist/esm/limel-dock.entry.js +1 -1
- package/dist/esm/limel-dynamic-label_2.entry.js +1 -1
- package/dist/esm/limel-file-dropzone_2.entry.js +1 -1
- package/dist/esm/limel-file-viewer.entry.js +1 -1
- package/dist/esm/limel-file.entry.js +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +1 -1
- package/dist/esm/limel-flex-container.entry.js +1 -1
- package/dist/esm/limel-form.entry.js +1 -1
- package/dist/esm/limel-grid.entry.js +1 -1
- package/dist/esm/limel-header.entry.js +1 -1
- package/dist/esm/limel-help-content.entry.js +1 -1
- package/dist/esm/limel-help.entry.js +1 -1
- package/dist/esm/limel-icon-button.entry.js +2 -2
- package/dist/esm/limel-icon.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js +1 -1
- package/dist/esm/limel-linear-progress.entry.js +1 -1
- package/dist/esm/limel-markdown.entry.js +1 -1
- package/dist/esm/limel-picker.entry.js +1 -1
- package/dist/esm/limel-popover_2.entry.js +1 -1
- package/dist/esm/limel-portal.entry.js +1 -1
- package/dist/esm/limel-progress-flow-item.entry.js +1 -1
- package/dist/esm/limel-progress-flow.entry.js +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
- package/dist/esm/limel-select.entry.js +11 -25
- package/dist/esm/limel-select.entry.js.map +1 -1
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-slider.entry.js +1 -1
- package/dist/esm/limel-snackbar.entry.js +1 -1
- package/dist/esm/limel-split-button.entry.js +1 -1
- package/dist/esm/limel-switch.entry.js +2 -2
- package/dist/esm/limel-tab-bar.entry.js +1 -1
- package/dist/esm/limel-tab-panel.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +1 -1
- package/dist/esm/limel-text-editor.entry.js +8 -27
- package/dist/esm/limel-text-editor.entry.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{make-enter-clickable-a30589fb.js → make-enter-clickable-5334fc26.js} +2 -2
- package/dist/esm/{make-enter-clickable-a30589fb.js.map → make-enter-clickable-5334fc26.js.map} +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js.map +1 -1
- package/dist/lime-elements/{p-fda881a3.entry.js → p-02197b98.entry.js} +2 -2
- package/dist/lime-elements/{p-f95a5cb5.entry.js → p-0960ca61.entry.js} +2 -2
- package/dist/lime-elements/{p-fd0ea2e9.entry.js → p-0aa2f9c0.entry.js} +2 -2
- package/dist/lime-elements/{p-85ffcf55.entry.js → p-10d1256b.entry.js} +2 -2
- package/dist/lime-elements/{p-2b294a69.entry.js → p-1942e25c.entry.js} +2 -2
- package/dist/lime-elements/{p-d93f1964.entry.js → p-19688e05.entry.js} +2 -2
- package/dist/lime-elements/{p-c923b97d.entry.js → p-1f142e39.entry.js} +2 -2
- package/dist/lime-elements/{p-4f70c0aa.entry.js → p-254c9b18.entry.js} +2 -2
- package/dist/lime-elements/{p-3a605df3.entry.js → p-26e06ef4.entry.js} +2 -2
- package/dist/lime-elements/p-288f0842.js +3 -0
- package/dist/lime-elements/p-288f0842.js.map +1 -0
- package/dist/lime-elements/{p-8f1b76df.entry.js → p-28a6fec9.entry.js} +2 -2
- package/dist/lime-elements/{p-e329fd1e.entry.js → p-28e5fef5.entry.js} +2 -2
- package/dist/lime-elements/{p-211456f2.entry.js → p-2c7e5deb.entry.js} +2 -2
- package/dist/lime-elements/{p-28c76ae8.entry.js → p-30cef284.entry.js} +2 -2
- package/dist/lime-elements/{p-fe08f7c9.entry.js → p-3cd846eb.entry.js} +2 -2
- package/dist/lime-elements/p-447e573c.entry.js +2 -0
- package/dist/lime-elements/p-447e573c.entry.js.map +1 -0
- package/dist/lime-elements/{p-e86af8b6.js → p-46cbc6d9.js} +2 -2
- package/dist/lime-elements/{p-f340d860.entry.js → p-48e9f4ea.entry.js} +2 -2
- package/dist/lime-elements/{p-36cf3031.entry.js → p-49432af9.entry.js} +2 -2
- package/dist/lime-elements/{p-89eaca66.entry.js → p-4eae90f7.entry.js} +2 -2
- package/dist/lime-elements/{p-ea98795d.entry.js → p-4ed15eb7.entry.js} +2 -2
- package/dist/lime-elements/{p-0aeff0b6.entry.js → p-54ff8dcb.entry.js} +2 -2
- package/dist/lime-elements/{p-3d6dc7de.entry.js → p-56de9524.entry.js} +2 -2
- package/dist/lime-elements/{p-02564969.entry.js → p-58acbdcc.entry.js} +2 -2
- package/dist/lime-elements/{p-dc6846e1.entry.js → p-5e325fee.entry.js} +2 -2
- package/dist/lime-elements/{p-16e4ca3e.entry.js → p-5e68e5f7.entry.js} +2 -2
- package/dist/lime-elements/{p-c632261b.entry.js → p-5f39d366.entry.js} +2 -2
- package/dist/lime-elements/{p-a2eee29e.entry.js → p-5fd7abb8.entry.js} +2 -2
- package/dist/lime-elements/{p-06b5aa10.entry.js → p-61766ba1.entry.js} +2 -2
- package/dist/lime-elements/{p-b5f723e2.entry.js → p-69b6119b.entry.js} +2 -2
- package/dist/lime-elements/{p-1bcdc70b.entry.js → p-6c2fdad7.entry.js} +2 -2
- package/dist/lime-elements/{p-5d08ef7d.entry.js → p-74a15b9e.entry.js} +2 -2
- package/dist/lime-elements/{p-f3cbbaf5.entry.js → p-76b845b0.entry.js} +2 -2
- package/dist/lime-elements/p-7993102f.entry.js +68 -0
- package/dist/lime-elements/p-7993102f.entry.js.map +1 -0
- package/dist/lime-elements/{p-40016256.entry.js → p-818f71b8.entry.js} +2 -2
- package/dist/lime-elements/{p-8baf79cf.entry.js → p-82290560.entry.js} +2 -2
- package/dist/lime-elements/{p-3c5a0769.entry.js → p-874e3af6.entry.js} +2 -2
- package/dist/lime-elements/{p-8579a166.entry.js → p-8b61a573.entry.js} +2 -2
- package/dist/lime-elements/{p-d6660d2a.entry.js → p-93d5ebeb.entry.js} +2 -2
- package/dist/lime-elements/{p-54ac08f5.entry.js → p-9cec73a7.entry.js} +2 -2
- package/dist/lime-elements/{p-8f6f643d.entry.js → p-a809b9a8.entry.js} +2 -2
- package/dist/lime-elements/{p-66501d69.entry.js → p-aabeba98.entry.js} +2 -2
- package/dist/lime-elements/p-ad568d69.entry.js +2 -0
- package/dist/lime-elements/p-ad568d69.entry.js.map +1 -0
- package/dist/lime-elements/{p-0863261f.entry.js → p-bab6b677.entry.js} +2 -2
- package/dist/lime-elements/{p-fa8ea2db.entry.js → p-bd278c51.entry.js} +2 -2
- package/dist/lime-elements/{p-8e7788a1.entry.js → p-c30e11ce.entry.js} +2 -2
- package/dist/lime-elements/{p-6500050d.entry.js → p-d05ebeb1.entry.js} +2 -2
- package/dist/lime-elements/{p-1c5f50f0.entry.js → p-d532cab0.entry.js} +2 -2
- package/dist/lime-elements/{p-ad3f6808.entry.js → p-d814fd97.entry.js} +2 -2
- package/dist/lime-elements/{p-9c5f2c45.entry.js → p-da37b2af.entry.js} +2 -2
- package/dist/lime-elements/{p-dbcde7db.entry.js → p-dcacda04.entry.js} +2 -2
- package/dist/lime-elements/{p-2078a6e2.entry.js → p-e655e6a1.entry.js} +2 -2
- package/dist/lime-elements/{p-26623b2d.entry.js → p-e9015886.entry.js} +2 -2
- package/dist/lime-elements/{p-1c16aa9b.entry.js → p-e9d11321.entry.js} +2 -2
- package/dist/lime-elements/{p-869d6d77.js → p-f221011c.js} +2 -2
- package/dist/lime-elements/{p-53404aa6.entry.js → p-f6aad3ee.entry.js} +9 -9
- package/dist/lime-elements/p-f6aad3ee.entry.js.map +1 -0
- package/dist/lime-elements/{p-ece3a0f5.entry.js → p-fc078f90.entry.js} +2 -2
- package/dist/lime-elements/{p-2793f6d0.entry.js → p-fe5fd06b.entry.js} +2 -2
- package/dist/lime-elements/style/internal/shared_input-select-picker.scss +8 -2
- package/dist/types/components/chip-set/chip-set.d.ts +4 -4
- package/dist/types/components/input-field/input-field.d.ts +0 -2
- package/dist/types/components/notched-outline/notched-outline.d.ts +75 -0
- package/dist/types/components/text-editor/text-editor.d.ts +1 -2
- package/dist/types/components.d.ts +145 -0
- package/package.json +1 -1
- package/dist/cjs/index-d1052409.js.map +0 -1
- package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js.map +0 -1
- package/dist/esm/index-6156b4fd.js.map +0 -1
- package/dist/esm/limel-breadcrumbs_7.entry.js.map +0 -1
- package/dist/lime-elements/p-443111b3.js +0 -3
- package/dist/lime-elements/p-443111b3.js.map +0 -1
- package/dist/lime-elements/p-53404aa6.entry.js.map +0 -1
- package/dist/lime-elements/p-62a21e92.entry.js +0 -2
- package/dist/lime-elements/p-62a21e92.entry.js.map +0 -1
- package/dist/lime-elements/p-8900110f.entry.js +0 -2
- package/dist/lime-elements/p-8900110f.entry.js.map +0 -1
- package/dist/lime-elements/p-d05a7803.entry.js +0 -68
- package/dist/lime-elements/p-d05a7803.entry.js.map +0 -1
- /package/dist/lime-elements/{p-fda881a3.entry.js.map → p-02197b98.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-f95a5cb5.entry.js.map → p-0960ca61.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-fd0ea2e9.entry.js.map → p-0aa2f9c0.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-85ffcf55.entry.js.map → p-10d1256b.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-2b294a69.entry.js.map → p-1942e25c.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-d93f1964.entry.js.map → p-19688e05.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-c923b97d.entry.js.map → p-1f142e39.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-4f70c0aa.entry.js.map → p-254c9b18.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-3a605df3.entry.js.map → p-26e06ef4.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-8f1b76df.entry.js.map → p-28a6fec9.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-e329fd1e.entry.js.map → p-28e5fef5.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-211456f2.entry.js.map → p-2c7e5deb.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-28c76ae8.entry.js.map → p-30cef284.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-fe08f7c9.entry.js.map → p-3cd846eb.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-e86af8b6.js.map → p-46cbc6d9.js.map} +0 -0
- /package/dist/lime-elements/{p-f340d860.entry.js.map → p-48e9f4ea.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-36cf3031.entry.js.map → p-49432af9.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-89eaca66.entry.js.map → p-4eae90f7.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-ea98795d.entry.js.map → p-4ed15eb7.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-0aeff0b6.entry.js.map → p-54ff8dcb.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-3d6dc7de.entry.js.map → p-56de9524.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-02564969.entry.js.map → p-58acbdcc.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-dc6846e1.entry.js.map → p-5e325fee.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-16e4ca3e.entry.js.map → p-5e68e5f7.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-c632261b.entry.js.map → p-5f39d366.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-a2eee29e.entry.js.map → p-5fd7abb8.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-06b5aa10.entry.js.map → p-61766ba1.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-b5f723e2.entry.js.map → p-69b6119b.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-1bcdc70b.entry.js.map → p-6c2fdad7.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-5d08ef7d.entry.js.map → p-74a15b9e.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-f3cbbaf5.entry.js.map → p-76b845b0.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-40016256.entry.js.map → p-818f71b8.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-8baf79cf.entry.js.map → p-82290560.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-3c5a0769.entry.js.map → p-874e3af6.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-8579a166.entry.js.map → p-8b61a573.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-d6660d2a.entry.js.map → p-93d5ebeb.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-54ac08f5.entry.js.map → p-9cec73a7.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-8f6f643d.entry.js.map → p-a809b9a8.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-66501d69.entry.js.map → p-aabeba98.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-0863261f.entry.js.map → p-bab6b677.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-fa8ea2db.entry.js.map → p-bd278c51.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-8e7788a1.entry.js.map → p-c30e11ce.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-6500050d.entry.js.map → p-d05ebeb1.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-1c5f50f0.entry.js.map → p-d532cab0.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-ad3f6808.entry.js.map → p-d814fd97.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-9c5f2c45.entry.js.map → p-da37b2af.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-dbcde7db.entry.js.map → p-dcacda04.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-2078a6e2.entry.js.map → p-e655e6a1.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-26623b2d.entry.js.map → p-e9015886.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-1c16aa9b.entry.js.map → p-e9d11321.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-869d6d77.js.map → p-f221011c.js.map} +0 -0
- /package/dist/lime-elements/{p-ece3a0f5.entry.js.map → p-fc078f90.entry.js.map} +0 -0
- /package/dist/lime-elements/{p-2793f6d0.entry.js.map → p-fe5fd06b.entry.js.map} +0 -0
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/**
|
|
3
|
+
* Note! This file is exported to `dist/scss/` in the published
|
|
4
|
+
* node module, for consumer projects to import.
|
|
5
|
+
* That means this file cannot import from any file that isn't
|
|
6
|
+
* also exported, keeping the same relative path.
|
|
7
|
+
*
|
|
8
|
+
* Or, just don't import anything, that works too.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* This can be used on a trigger element that opens a dropdown menu or a popover.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* This mixin will mask out the content that is close to
|
|
15
|
+
* the edges of a scrollable area.
|
|
16
|
+
* - If the scrollable content has `overflow-y`, use `vertically`
|
|
17
|
+
* as an argument for `$direction`.
|
|
18
|
+
- If the scrollable content has `overflow-x`, use `horizontally`
|
|
19
|
+
* as an argument for `$direction`.
|
|
20
|
+
*
|
|
21
|
+
* For the visual effect to work smoothly, we need to make sure that
|
|
22
|
+
* the size of the fade-out edge effect is the same as the
|
|
23
|
+
* internal paddings of the scrollable area. Otherwise, content of a
|
|
24
|
+
* scrollable area that does not have a padding will fade out before
|
|
25
|
+
* any scrolling has been done.
|
|
26
|
+
* This is why this mixin already adds paddings, which automatically
|
|
27
|
+
* default to the size of the fade-out effect.
|
|
28
|
+
* This size defaults to `1rem`, but to override the size use
|
|
29
|
+
* `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
|
|
30
|
+
* when `vertically` argument is set, and use
|
|
31
|
+
* `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
|
|
32
|
+
* when `horizontally` argument is set.
|
|
33
|
+
* Of course you can also programmatically increase and decrease the
|
|
34
|
+
* size of these variables for each edge, based on the amount of
|
|
35
|
+
* scrolling that has been done by the user. In this case, make sure
|
|
36
|
+
* to add a custom padding where the mixin is used, to override
|
|
37
|
+
* the paddings that are automatically added by the mixin in the
|
|
38
|
+
* compiled CSS code.
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* This mixin will add an animated underline to the bottom of an `a` elements.
|
|
42
|
+
* Note that you may need to add `all: unset;` –depending on your use case–
|
|
43
|
+
* before using this mixin.
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* This mixin creates a cross-browser font stack.
|
|
47
|
+
* - `sans-serif` can be used for the UI of the components.
|
|
48
|
+
* - `monospace` can be used for code.
|
|
49
|
+
*
|
|
50
|
+
* ⚠️ If we change the font stacks, we need to update
|
|
51
|
+
* 1. the consumer documentation in `README.md`, and
|
|
52
|
+
* 2. the CSS variables of `--kompendium-example-font-family`
|
|
53
|
+
* in the `<style>` tag of `index.html`.
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* This mixin is a hack, using old CSS syntax
|
|
57
|
+
* to enable you to truncate a piece of text,
|
|
58
|
+
* after a certain number of lines.
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* The breakpoints below are used to create responsive designs
|
|
62
|
+
* in Lime's products. Therefore, they are here to get distributed
|
|
63
|
+
* to all components in other private repos, which rely on this `mixins`
|
|
64
|
+
* file, to create consistent styles.
|
|
65
|
+
*
|
|
66
|
+
* :::important
|
|
67
|
+
* In very rare cases you should used media queries!
|
|
68
|
+
* Nowadays, there are many better ways of achieving responsive design
|
|
69
|
+
* without media queries. For example, using CSS Grid, Flexbox, and their features.
|
|
70
|
+
* :::
|
|
71
|
+
*/
|
|
72
|
+
/**
|
|
73
|
+
* Media query mixins for responsive design based on screen width.
|
|
74
|
+
* Note that these mixins do not detect the device type!
|
|
75
|
+
*/
|
|
76
|
+
/*
|
|
77
|
+
* This file is imported into every component!
|
|
78
|
+
*
|
|
79
|
+
* Nothing in this file may output any CSS
|
|
80
|
+
* without being explicitly called by outside code.
|
|
81
|
+
*/
|
|
82
|
+
/*
|
|
83
|
+
* This file is imported into every component that uses MDC!
|
|
84
|
+
*
|
|
85
|
+
* Anything in this file that generates CSS output on its own,
|
|
86
|
+
* without being explicitly used, will output that CSS in every
|
|
87
|
+
* single component, increasing the size of the production build.
|
|
88
|
+
* Avoid that unless there's very good reason for it!
|
|
89
|
+
*/
|
|
90
|
+
/*
|
|
91
|
+
* This file is imported into every component that uses MDC!
|
|
92
|
+
*
|
|
93
|
+
* Anything in this file that generates CSS output on its own,
|
|
94
|
+
* without being explicitly used, will output that CSS in every
|
|
95
|
+
* single component, increasing the size of the production build.
|
|
96
|
+
* Avoid that unless there's very good reason for it!
|
|
97
|
+
*/
|
|
98
|
+
:host {
|
|
99
|
+
--mdc-theme-primary: var(
|
|
100
|
+
--lime-primary-color,
|
|
101
|
+
rgb(var(--color-teal-default))
|
|
102
|
+
);
|
|
103
|
+
--mdc-theme-secondary: var(
|
|
104
|
+
--lime-secondary-color,
|
|
105
|
+
rgb(var(--contrast-1100))
|
|
106
|
+
);
|
|
107
|
+
--mdc-theme-on-primary: var(
|
|
108
|
+
--lime-on-primary-color,
|
|
109
|
+
rgb(var(--contrast-100))
|
|
110
|
+
);
|
|
111
|
+
--mdc-theme-on-secondary: var(
|
|
112
|
+
--lime-on-secondary-color,
|
|
113
|
+
rgb(var(--contrast-100))
|
|
114
|
+
);
|
|
115
|
+
--mdc-theme-text-disabled-on-background: var(
|
|
116
|
+
--lime-text-disabled-on-background-color,
|
|
117
|
+
rgba(var(--contrast-1700), 0.38)
|
|
118
|
+
);
|
|
119
|
+
--mdc-theme-text-primary-on-background: var(
|
|
120
|
+
--lime-text-primary-on-background-color,
|
|
121
|
+
rgba(var(--contrast-1700), 0.87)
|
|
122
|
+
);
|
|
123
|
+
--mdc-theme-text-secondary-on-background: var(
|
|
124
|
+
--lime-text-secondary-on-background-color,
|
|
125
|
+
rgba(var(--contrast-1700), 0.54)
|
|
126
|
+
);
|
|
127
|
+
--mdc-theme-error: var(
|
|
128
|
+
--lime-error-background-color,
|
|
129
|
+
rgb(var(--color-red-dark))
|
|
130
|
+
);
|
|
131
|
+
--lime-error-text-color: rgb(var(--color-red-darker));
|
|
132
|
+
--mdc-theme-surface: var(
|
|
133
|
+
--lime-surface-background-color,
|
|
134
|
+
rgb(var(--contrast-100))
|
|
135
|
+
);
|
|
136
|
+
--mdc-theme-on-surface: var(
|
|
137
|
+
--lime-on-surface-color,
|
|
138
|
+
rgb(var(--contrast-1500))
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @prop --limel-notched-outline-z-index: Defines the `z-index` of the outlines & the label, since they are absolutely positioned. Useful if there are other elements with z-indexes in the consumer.
|
|
144
|
+
*/
|
|
145
|
+
limel-notched-outline {
|
|
146
|
+
--limel-notched-outline-border-color: rgba(var(--contrast-700), 0.65);
|
|
147
|
+
--limel-notched-outline-background-color: rgba(var(--contrast-200), 0.5);
|
|
148
|
+
display: block;
|
|
149
|
+
width: 100%;
|
|
150
|
+
height: 100%;
|
|
151
|
+
}
|
|
152
|
+
limel-notched-outline *,
|
|
153
|
+
limel-notched-outline *:before,
|
|
154
|
+
limel-notched-outline *:after {
|
|
155
|
+
box-sizing: border-box;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.limel-notched-outline {
|
|
159
|
+
position: relative;
|
|
160
|
+
width: 100%;
|
|
161
|
+
height: 100%;
|
|
162
|
+
}
|
|
163
|
+
.limel-notched-outline [slot=content] {
|
|
164
|
+
background-color: var(--limel-notched-outline-background-color);
|
|
165
|
+
border-radius: var(--limel-notched-outline-border-radius, 0.25rem);
|
|
166
|
+
}
|
|
167
|
+
.limel-notched-outline--outlines {
|
|
168
|
+
pointer-events: none;
|
|
169
|
+
position: absolute;
|
|
170
|
+
inset: 0;
|
|
171
|
+
z-index: var(--limel-notched-outline-z-index, 0);
|
|
172
|
+
display: flex;
|
|
173
|
+
}
|
|
174
|
+
.limel-notched-outline--leading-outline, .limel-notched-outline--notch, .limel-notched-outline--trailing-outline {
|
|
175
|
+
transition: border-color 0.2s ease;
|
|
176
|
+
border-width: 1px;
|
|
177
|
+
border-style: solid;
|
|
178
|
+
border-color: var(--limel-notched-outline-border-color);
|
|
179
|
+
}
|
|
180
|
+
.limel-notched-outline--leading-outline {
|
|
181
|
+
flex-shrink: 0;
|
|
182
|
+
width: 0.75rem;
|
|
183
|
+
border-right-width: 0;
|
|
184
|
+
border-top-left-radius: var(--limel-notched-outline-border-radius, 0.25rem);
|
|
185
|
+
border-bottom-left-radius: var(--limel-notched-outline-border-radius, 0.25rem);
|
|
186
|
+
}
|
|
187
|
+
.limel-notched-outline--notch {
|
|
188
|
+
flex-shrink: 0;
|
|
189
|
+
position: relative;
|
|
190
|
+
z-index: 2;
|
|
191
|
+
border-top-color: var(--limel-notched-outline-notch-border-top-color, var(--limel-notched-outline-border-color));
|
|
192
|
+
border-right-width: 0;
|
|
193
|
+
border-left-width: 0;
|
|
194
|
+
max-width: calc(100% - 1.5rem);
|
|
195
|
+
}
|
|
196
|
+
.limel-notched-outline--notch label {
|
|
197
|
+
all: unset;
|
|
198
|
+
overflow: hidden;
|
|
199
|
+
white-space: nowrap;
|
|
200
|
+
text-overflow: ellipsis;
|
|
201
|
+
position: relative;
|
|
202
|
+
transition: color 0.2s ease, font-size 0.2s ease, transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
|
|
203
|
+
transform: translate3d(var(--limel-notched-outline-label-transform-x, 0), var(--limel-notched-outline-label-transform-y, 0.62rem), 0);
|
|
204
|
+
display: block;
|
|
205
|
+
padding: 0 0.25rem;
|
|
206
|
+
color: var(--limel-notched-outline-label-color, rgba(var(--contrast-1200), 1));
|
|
207
|
+
font-size: var(--limel-notched-outline-label-font-size, 0.875rem);
|
|
208
|
+
letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);
|
|
209
|
+
}
|
|
210
|
+
.limel-notched-outline--notch label:after {
|
|
211
|
+
position: absolute;
|
|
212
|
+
right: 0;
|
|
213
|
+
padding: 0 0.25rem;
|
|
214
|
+
}
|
|
215
|
+
.limel-notched-outline--trailing-outline {
|
|
216
|
+
flex-grow: 1;
|
|
217
|
+
border-left-width: 0;
|
|
218
|
+
border-top-right-radius: var(--limel-notched-outline-border-radius, 0.25rem);
|
|
219
|
+
border-bottom-right-radius: var(--limel-notched-outline-border-radius, 0.25rem);
|
|
220
|
+
}
|
|
221
|
+
.limel-notched-outline--empty-readonly-value {
|
|
222
|
+
position: absolute;
|
|
223
|
+
top: 0.62rem;
|
|
224
|
+
left: 1rem;
|
|
225
|
+
}
|
|
226
|
+
.limel-notched-outline--empty-readonly-value .lime-looks-like-input-value {
|
|
227
|
+
line-height: 1.75rem;
|
|
228
|
+
-moz-osx-font-smoothing: grayscale;
|
|
229
|
+
-webkit-font-smoothing: antialiased;
|
|
230
|
+
color: rgba(var(--contrast-1400), 1);
|
|
231
|
+
font-size: 0.875rem;
|
|
232
|
+
font-weight: 400;
|
|
233
|
+
letter-spacing: 0.009375em;
|
|
234
|
+
}
|
|
235
|
+
.mdc-text-field--disabled .limel-notched-outline--empty-readonly-value .lime-looks-like-input-value {
|
|
236
|
+
cursor: not-allowed;
|
|
237
|
+
opacity: 0.4;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
limel-notched-outline:not([disabled]:not([disabled=false])):hover {
|
|
241
|
+
--limel-notched-outline-border-color: rgba(var(--contrast-700), 1);
|
|
242
|
+
--limel-notched-outline-background-color: rgba(var(--contrast-200), 1);
|
|
243
|
+
}
|
|
244
|
+
limel-notched-outline:not([disabled]:not([disabled=false])):has([slot=content]:focus-visible), limel-notched-outline:not([disabled]:not([disabled=false])):has([slot=content]:focus-within) {
|
|
245
|
+
--limel-notched-outline-border-color: var(--mdc-theme-primary);
|
|
246
|
+
--limel-notched-outline-background-color: rgba(var(--contrast-100), 0.8);
|
|
247
|
+
}
|
|
248
|
+
limel-notched-outline[disabled]:not([disabled=false]) {
|
|
249
|
+
--limel-notched-outline-label-color: rgba(var(--contrast-1200), 0.5);
|
|
250
|
+
}
|
|
251
|
+
limel-notched-outline[required]:not([required=false]) .limel-notched-outline--notch label {
|
|
252
|
+
padding-right: 0.75rem;
|
|
253
|
+
}
|
|
254
|
+
limel-notched-outline[required]:not([required=false]) .limel-notched-outline--notch label:after {
|
|
255
|
+
content: "*";
|
|
256
|
+
scale: 1.3;
|
|
257
|
+
}
|
|
258
|
+
limel-notched-outline[invalid]:not([invalid=false]):not([disabled]:not([disabled=false])) {
|
|
259
|
+
--limel-notched-outline-border-color: var(--lime-error-text-color);
|
|
260
|
+
}
|
|
261
|
+
limel-notched-outline[invalid]:not([invalid=false]):not([disabled]:not([disabled=false])):hover {
|
|
262
|
+
--limel-notched-outline-border-color: var(
|
|
263
|
+
--lime-error-text-color
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
limel-notched-outline[invalid]:not([invalid=false]) .limel-notched-outline--notch label:after {
|
|
267
|
+
color: var(--lime-error-text-color);
|
|
268
|
+
}
|
|
269
|
+
limel-notched-outline[readonly]:not([readonly=false]) {
|
|
270
|
+
--limel-notched-outline-border-color: transparent !important;
|
|
271
|
+
--limel-notched-outline-background-color: transparent !important;
|
|
272
|
+
}
|
|
273
|
+
limel-notched-outline[readonly]:not([readonly=false]) .limel-notched-outline--notch label {
|
|
274
|
+
transition-duration: 0s;
|
|
275
|
+
}
|
|
276
|
+
limel-notched-outline[has-leading-icon]:not([has-leading-icon=false]):not([has-floating-label]):not([has-value]) {
|
|
277
|
+
--limel-notched-outline-label-transform-x: 1.25rem;
|
|
278
|
+
}
|
|
279
|
+
limel-notched-outline[has-leading-icon] .limel-notched-outline--empty-readonly-value {
|
|
280
|
+
left: 2.25rem;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
limel-notched-outline:not([disabled]:not([disabled=false])):hover label, limel-notched-outline:not([disabled]:not([disabled=false])):focus label, limel-notched-outline:not([disabled]:not([disabled=false])):focus-within label {
|
|
284
|
+
will-change: color, transform, font-size;
|
|
285
|
+
}
|
|
286
|
+
limel-notched-outline:not([disabled]:not([disabled=false])):has([slot=content]:focus-visible), limel-notched-outline:not([disabled]:not([disabled=false])):has([slot=content]:focus-within) {
|
|
287
|
+
--limel-notched-outline-label-font-size: 0.65rem;
|
|
288
|
+
--limel-notched-outline-label-transform-x: 0;
|
|
289
|
+
--limel-notched-outline-label-transform-y: calc(-50% - 0.09375rem);
|
|
290
|
+
--limel-notched-outline-notch-border-top-color: transparent;
|
|
291
|
+
}
|
|
292
|
+
limel-notched-outline[has-floating-label], limel-notched-outline[has-value]:not([has-value=false]), limel-notched-outline[readonly]:not([has-value]:not([has-value=true])) {
|
|
293
|
+
--limel-notched-outline-label-font-size: 0.65rem;
|
|
294
|
+
--limel-notched-outline-label-transform-x: 0;
|
|
295
|
+
--limel-notched-outline-label-transform-y: calc(-50% - 0.09375rem);
|
|
296
|
+
--limel-notched-outline-notch-border-top-color: transparent;
|
|
297
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
/**
|
|
3
|
+
* This is a private component, used to render a notched outline
|
|
4
|
+
* around all input elements that can have a floating label.
|
|
5
|
+
* Inspired by Material Design's styles for input fields.
|
|
6
|
+
* We use it in various components to unify styles and avoid
|
|
7
|
+
* repeating code.
|
|
8
|
+
*
|
|
9
|
+
* :::note
|
|
10
|
+
* The component has `shadow: false`. This is to improve performance,
|
|
11
|
+
* and ensure that its internal elements are considered as internal parts
|
|
12
|
+
* of the consumer's DOM. This way, the value `for` in `<label for="id-of-input-element">`
|
|
13
|
+
* would be correctly associated with the input element's `id`, in the consumer component.
|
|
14
|
+
* :::
|
|
15
|
+
* @exampleComponent limel-example-notched-outline-basic
|
|
16
|
+
* @private
|
|
17
|
+
*/
|
|
18
|
+
export class NotchedOutline {
|
|
19
|
+
constructor() {
|
|
20
|
+
this.required = false;
|
|
21
|
+
this.readonly = false;
|
|
22
|
+
this.invalid = false;
|
|
23
|
+
this.disabled = false;
|
|
24
|
+
this.label = undefined;
|
|
25
|
+
this.labelId = undefined;
|
|
26
|
+
this.hasValue = false;
|
|
27
|
+
this.hasLeadingIcon = false;
|
|
28
|
+
this.hasFloatingLabel = false;
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return (h("div", { class: "limel-notched-outline" }, h("slot", { name: "content" }), h("span", { class: "limel-notched-outline--outlines", "aria-hidden": "true" }, h("span", { class: "limel-notched-outline--leading-outline" }), this.renderLabel(), h("span", { class: "limel-notched-outline--trailing-outline" }), this.renderEmptyReadonlyValue())));
|
|
32
|
+
}
|
|
33
|
+
renderLabel() {
|
|
34
|
+
if (!this.label) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
return (h("span", { class: "limel-notched-outline--notch" }, h("label", { htmlFor: this.labelId }, this.label)));
|
|
38
|
+
}
|
|
39
|
+
renderEmptyReadonlyValue() {
|
|
40
|
+
if (!this.readonly || this.hasValue) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
return (h("span", { class: "limel-notched-outline--empty-readonly-value", "aria-hidden": "true" }, "\u2013"));
|
|
44
|
+
}
|
|
45
|
+
static get is() { return "limel-notched-outline"; }
|
|
46
|
+
static get originalStyleUrls() {
|
|
47
|
+
return {
|
|
48
|
+
"$": ["notched-outline.scss"]
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
static get styleUrls() {
|
|
52
|
+
return {
|
|
53
|
+
"$": ["notched-outline.css"]
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
static get properties() {
|
|
57
|
+
return {
|
|
58
|
+
"required": {
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"mutable": false,
|
|
61
|
+
"complexType": {
|
|
62
|
+
"original": "boolean",
|
|
63
|
+
"resolved": "boolean",
|
|
64
|
+
"references": {}
|
|
65
|
+
},
|
|
66
|
+
"required": false,
|
|
67
|
+
"optional": false,
|
|
68
|
+
"docs": {
|
|
69
|
+
"tags": [],
|
|
70
|
+
"text": "Set to `true` when the input element is required.\nThis applies proper visual styles, such as inclusion of an asterisk\nbeside the label."
|
|
71
|
+
},
|
|
72
|
+
"attribute": "required",
|
|
73
|
+
"reflect": true,
|
|
74
|
+
"defaultValue": "false"
|
|
75
|
+
},
|
|
76
|
+
"readonly": {
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "boolean",
|
|
81
|
+
"resolved": "boolean",
|
|
82
|
+
"references": {}
|
|
83
|
+
},
|
|
84
|
+
"required": false,
|
|
85
|
+
"optional": false,
|
|
86
|
+
"docs": {
|
|
87
|
+
"tags": [],
|
|
88
|
+
"text": "Set to `true` when the input element is readonly.\nThis applies proper visual styles, such as making the outline transparent."
|
|
89
|
+
},
|
|
90
|
+
"attribute": "readonly",
|
|
91
|
+
"reflect": true,
|
|
92
|
+
"defaultValue": "false"
|
|
93
|
+
},
|
|
94
|
+
"invalid": {
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"mutable": false,
|
|
97
|
+
"complexType": {
|
|
98
|
+
"original": "boolean",
|
|
99
|
+
"resolved": "boolean",
|
|
100
|
+
"references": {}
|
|
101
|
+
},
|
|
102
|
+
"required": false,
|
|
103
|
+
"optional": false,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [],
|
|
106
|
+
"text": "Set to `true` to indicate that the current value of the input element is\ninvalid. This applies proper visual styles, such as making the outlines red."
|
|
107
|
+
},
|
|
108
|
+
"attribute": "invalid",
|
|
109
|
+
"reflect": true,
|
|
110
|
+
"defaultValue": "false"
|
|
111
|
+
},
|
|
112
|
+
"disabled": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"mutable": false,
|
|
115
|
+
"complexType": {
|
|
116
|
+
"original": "boolean",
|
|
117
|
+
"resolved": "boolean",
|
|
118
|
+
"references": {}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": false,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": "Set to `true` to indicate that the input element is\ndisabled. This applies proper visual styles, such as making the outlines\nand the label transparent."
|
|
125
|
+
},
|
|
126
|
+
"attribute": "disabled",
|
|
127
|
+
"reflect": true,
|
|
128
|
+
"defaultValue": "false"
|
|
129
|
+
},
|
|
130
|
+
"label": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "string",
|
|
135
|
+
"resolved": "string",
|
|
136
|
+
"references": {}
|
|
137
|
+
},
|
|
138
|
+
"required": false,
|
|
139
|
+
"optional": true,
|
|
140
|
+
"docs": {
|
|
141
|
+
"tags": [],
|
|
142
|
+
"text": "Label to display for the input element.\n:::important\nNote that the input element of the consumer component will be\nlabeled by this label, using the `labelId` prop.\n:::"
|
|
143
|
+
},
|
|
144
|
+
"attribute": "label",
|
|
145
|
+
"reflect": true
|
|
146
|
+
},
|
|
147
|
+
"labelId": {
|
|
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": "The `id` of the input element which should be\nlabeled by the provided label."
|
|
160
|
+
},
|
|
161
|
+
"attribute": "label-id",
|
|
162
|
+
"reflect": true
|
|
163
|
+
},
|
|
164
|
+
"hasValue": {
|
|
165
|
+
"type": "boolean",
|
|
166
|
+
"mutable": false,
|
|
167
|
+
"complexType": {
|
|
168
|
+
"original": "boolean",
|
|
169
|
+
"resolved": "boolean",
|
|
170
|
+
"references": {}
|
|
171
|
+
},
|
|
172
|
+
"required": false,
|
|
173
|
+
"optional": false,
|
|
174
|
+
"docs": {
|
|
175
|
+
"tags": [],
|
|
176
|
+
"text": "Set to `true` when the user has entered a value for the input element,\nshrinking the label in size, and visually rendering it above the entered value."
|
|
177
|
+
},
|
|
178
|
+
"attribute": "has-value",
|
|
179
|
+
"reflect": true,
|
|
180
|
+
"defaultValue": "false"
|
|
181
|
+
},
|
|
182
|
+
"hasLeadingIcon": {
|
|
183
|
+
"type": "boolean",
|
|
184
|
+
"mutable": false,
|
|
185
|
+
"complexType": {
|
|
186
|
+
"original": "boolean",
|
|
187
|
+
"resolved": "boolean",
|
|
188
|
+
"references": {}
|
|
189
|
+
},
|
|
190
|
+
"required": false,
|
|
191
|
+
"optional": false,
|
|
192
|
+
"docs": {
|
|
193
|
+
"tags": [],
|
|
194
|
+
"text": "Set to `true` when the consumer element displays a leading icon.\nThis applies proper visual styles, such as rendering the label\ncorrectly placed beside the leading icon."
|
|
195
|
+
},
|
|
196
|
+
"attribute": "has-leading-icon",
|
|
197
|
+
"reflect": true,
|
|
198
|
+
"defaultValue": "false"
|
|
199
|
+
},
|
|
200
|
+
"hasFloatingLabel": {
|
|
201
|
+
"type": "boolean",
|
|
202
|
+
"mutable": false,
|
|
203
|
+
"complexType": {
|
|
204
|
+
"original": "boolean",
|
|
205
|
+
"resolved": "boolean",
|
|
206
|
+
"references": {}
|
|
207
|
+
},
|
|
208
|
+
"required": false,
|
|
209
|
+
"optional": false,
|
|
210
|
+
"docs": {
|
|
211
|
+
"tags": [],
|
|
212
|
+
"text": "Set to `true` when the consumer element needs to render the\nlabel above the input element, despite existence of a `value`.\nFor example in the `text-editor` or `limel-select`,\nwhere the default layout requires a floating label."
|
|
213
|
+
},
|
|
214
|
+
"attribute": "has-floating-label",
|
|
215
|
+
"reflect": true,
|
|
216
|
+
"defaultValue": "false"
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
//# sourceMappingURL=notched-outline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notched-outline.js","sourceRoot":"","sources":["../../../src/components/notched-outline/notched-outline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAEnD;;;;;;;;;;;;;;;GAeG;AAMH,MAAM,OAAO,cAAc;;oBAOL,KAAK;oBAOL,KAAK;mBAON,KAAK;oBAQJ,KAAK;;;oBAwBL,KAAK;0BAQC,KAAK;4BASH,KAAK;;EAExB,MAAM;IACT,OAAO,CACH,WAAK,KAAK,EAAC,uBAAuB;MAC9B,YAAM,IAAI,EAAC,SAAS,GAAG;MACvB,YACI,KAAK,EAAC,iCAAiC,iBAC3B,MAAM;QAElB,YAAM,KAAK,EAAC,wCAAwC,GAAG;QACtD,IAAI,CAAC,WAAW,EAAE;QACnB,YAAM,KAAK,EAAC,yCAAyC,GAAG;QACvD,IAAI,CAAC,wBAAwB,EAAE,CAC7B,CACL,CACT,CAAC;EACN,CAAC;EAEO,WAAW;IACf,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;MACb,OAAO;KACV;IAED,OAAO,CACH,YAAM,KAAK,EAAC,8BAA8B;MACtC,aAAO,OAAO,EAAE,IAAI,CAAC,OAAO,IAAG,IAAI,CAAC,KAAK,CAAS,CAC/C,CACV,CAAC;EACN,CAAC;EAEO,wBAAwB;IAC5B,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EAAE;MACjC,OAAO;KACV;IAED,OAAO,CACH,YACI,KAAK,EAAC,6CAA6C,iBACvC,MAAM,aAGf,CACV,CAAC;EACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Prop, h } from '@stencil/core';\n\n/**\n * This is a private component, used to render a notched outline\n * around all input elements that can have a floating label.\n * Inspired by Material Design's styles for input fields.\n * We use it in various components to unify styles and avoid\n * repeating code.\n *\n * :::note\n * The component has `shadow: false`. This is to improve performance,\n * and ensure that its internal elements are considered as internal parts\n * of the consumer's DOM. This way, the value `for` in `<label for=\"id-of-input-element\">`\n * would be correctly associated with the input element's `id`, in the consumer component.\n * :::\n * @exampleComponent limel-example-notched-outline-basic\n * @private\n */\n@Component({\n tag: 'limel-notched-outline',\n styleUrl: 'notched-outline.scss',\n shadow: false,\n})\nexport class NotchedOutline {\n /**\n * Set to `true` when the input element is required.\n * This applies proper visual styles, such as inclusion of an asterisk\n * beside the label.\n */\n @Prop({ reflect: true })\n public required = false;\n\n /**\n * Set to `true` when the input element is readonly.\n * This applies proper visual styles, such as making the outline transparent.\n */\n @Prop({ reflect: true })\n public readonly = false;\n\n /**\n * Set to `true` to indicate that the current value of the input element is\n * invalid. This applies proper visual styles, such as making the outlines red.\n */\n @Prop({ reflect: true })\n public invalid = false;\n\n /**\n * Set to `true` to indicate that the input element is\n * disabled. This applies proper visual styles, such as making the outlines\n * and the label transparent.\n */\n @Prop({ reflect: true })\n public disabled = false;\n\n /**\n * Label to display for the input element.\n * :::important\n * Note that the input element of the consumer component will be\n * labeled by this label, using the `labelId` prop.\n * :::\n */\n @Prop({ reflect: true })\n public label?: string;\n\n /**\n * The `id` of the input element which should be\n * labeled by the provided label.\n */\n @Prop({ reflect: true })\n public labelId?: string;\n\n /**\n * Set to `true` when the user has entered a value for the input element,\n * shrinking the label in size, and visually rendering it above the entered value.\n */\n @Prop({ reflect: true })\n public hasValue = false;\n\n /**\n * Set to `true` when the consumer element displays a leading icon.\n * This applies proper visual styles, such as rendering the label\n * correctly placed beside the leading icon.\n */\n @Prop({ reflect: true })\n public hasLeadingIcon = false;\n\n /**\n * Set to `true` when the consumer element needs to render the\n * label above the input element, despite existence of a `value`.\n * For example in the `text-editor` or `limel-select`,\n * where the default layout requires a floating label.\n */\n @Prop({ reflect: true })\n public hasFloatingLabel = false;\n\n public render() {\n return (\n <div class=\"limel-notched-outline\">\n <slot name=\"content\" />\n <span\n class=\"limel-notched-outline--outlines\"\n aria-hidden=\"true\"\n >\n <span class=\"limel-notched-outline--leading-outline\" />\n {this.renderLabel()}\n <span class=\"limel-notched-outline--trailing-outline\" />\n {this.renderEmptyReadonlyValue()}\n </span>\n </div>\n );\n }\n\n private renderLabel() {\n if (!this.label) {\n return;\n }\n\n return (\n <span class=\"limel-notched-outline--notch\">\n <label htmlFor={this.labelId}>{this.label}</label>\n </span>\n );\n }\n\n private renderEmptyReadonlyValue() {\n if (!this.readonly || this.hasValue) {\n return;\n }\n\n return (\n <span\n class=\"limel-notched-outline--empty-readonly-value\"\n aria-hidden=\"true\"\n >\n –\n </span>\n );\n }\n}\n"]}
|
|
@@ -1634,7 +1634,8 @@
|
|
|
1634
1634
|
/**
|
|
1635
1635
|
* @prop --dropdown-z-index: z-index of the dropdown menu.
|
|
1636
1636
|
*/
|
|
1637
|
-
:host {
|
|
1637
|
+
:host(limel-select) {
|
|
1638
|
+
--limel-notched-outline-border-radius: 0.375rem;
|
|
1638
1639
|
display: block;
|
|
1639
1640
|
position: relative;
|
|
1640
1641
|
}
|
|
@@ -1643,12 +1644,11 @@
|
|
|
1643
1644
|
display: none;
|
|
1644
1645
|
}
|
|
1645
1646
|
|
|
1646
|
-
|
|
1647
|
-
|
|
1647
|
+
limel-notched-outline:not([invalid]:not([invalid=false])) .limel-notched-outline--outlines {
|
|
1648
|
+
--limel-notched-outline-border-color: transparent;
|
|
1648
1649
|
}
|
|
1649
1650
|
|
|
1650
1651
|
.mdc-select__anchor,
|
|
1651
|
-
.mdc-floating-label,
|
|
1652
1652
|
.mdc-select__selected-text {
|
|
1653
1653
|
font-family: inherit;
|
|
1654
1654
|
}
|
|
@@ -1692,9 +1692,6 @@
|
|
|
1692
1692
|
flex-wrap: wrap;
|
|
1693
1693
|
width: 100%;
|
|
1694
1694
|
}
|
|
1695
|
-
.limel-select:not(.limel-select--readonly) .limel-select-trigger {
|
|
1696
|
-
background-color: rgba(var(--contrast-100), 0.8);
|
|
1697
|
-
}
|
|
1698
1695
|
.limel-select .mdc-select__anchor {
|
|
1699
1696
|
height: 2.25rem;
|
|
1700
1697
|
padding-left: 0rem;
|
|
@@ -1704,17 +1701,7 @@
|
|
|
1704
1701
|
height: 2.5rem;
|
|
1705
1702
|
display: inline-flex;
|
|
1706
1703
|
align-items: center;
|
|
1707
|
-
border-radius: 0.
|
|
1708
|
-
}
|
|
1709
|
-
.limel-select .limel-select-trigger .mdc-floating-label {
|
|
1710
|
-
color: rgba(var(--contrast-1200), 1);
|
|
1711
|
-
width: calc(
|
|
1712
|
-
100% - 1rem
|
|
1713
|
-
);
|
|
1714
|
-
}
|
|
1715
|
-
.limel-select .limel-select-trigger .mdc-floating-label.mdc-floating-label--float-above {
|
|
1716
|
-
font-size: 0.875rem;
|
|
1717
|
-
transform: translateY(-1.6875rem) scale(0.75);
|
|
1704
|
+
border-radius: 0.375rem;
|
|
1718
1705
|
}
|
|
1719
1706
|
.limel-select .limel-select-trigger,
|
|
1720
1707
|
.limel-select .limel-select__selected-option {
|
|
@@ -1775,9 +1762,6 @@
|
|
|
1775
1762
|
.limel-select:not(.mdc-select--disabled) .limel-select-trigger.limel-select--focused {
|
|
1776
1763
|
background-color: rgba(var(--contrast-100), 0.8);
|
|
1777
1764
|
}
|
|
1778
|
-
.limel-select:not(.mdc-select--disabled) .limel-select-trigger.limel-select--focused .mdc-floating-label {
|
|
1779
|
-
color: var(--mdc-theme-primary);
|
|
1780
|
-
}
|
|
1781
1765
|
.limel-select:not(.mdc-select--disabled) .limel-select-trigger.limel-select--focused .mdc-select__dropdown-icon svg {
|
|
1782
1766
|
fill: var(--mdc-theme-primary);
|
|
1783
1767
|
}
|
|
@@ -1787,22 +1771,10 @@
|
|
|
1787
1771
|
.limel-select:not(.mdc-select--disabled) .limel-select-trigger[aria-expanded]:not([aria-expanded=false]), .limel-select:not(.mdc-select--disabled) .limel-select-trigger[aria-expanded=true] {
|
|
1788
1772
|
box-shadow: var(--button-shadow-inset-pressed);
|
|
1789
1773
|
}
|
|
1790
|
-
.limel-select .readonly-option {
|
|
1791
|
-
position: absolute;
|
|
1792
|
-
top: 1.145rem;
|
|
1793
|
-
}
|
|
1794
|
-
.limel-select.limel-select--required .mdc-floating-label::after {
|
|
1795
|
-
content: "*";
|
|
1796
|
-
}
|
|
1797
1774
|
.limel-select.limel-select--invalid .limel-select__selected-option__text,
|
|
1798
1775
|
.limel-select.limel-select--invalid .invalid-icon {
|
|
1799
1776
|
color: var(--lime-error-text-color);
|
|
1800
1777
|
}
|
|
1801
|
-
.limel-select.limel-select--invalid .mdc-floating-label:not(.mdc-floating-label--float-above) {
|
|
1802
|
-
max-width: calc(
|
|
1803
|
-
100% - 4rem
|
|
1804
|
-
);
|
|
1805
|
-
}
|
|
1806
1778
|
|
|
1807
1779
|
.invalid-icon {
|
|
1808
1780
|
flex-shrink: 0;
|
|
@@ -19,15 +19,16 @@ export const SelectTemplate = (props) => {
|
|
|
19
19
|
const classList = {
|
|
20
20
|
'limel-select': true,
|
|
21
21
|
'mdc-select': true,
|
|
22
|
-
'mdc-select--outlined': true,
|
|
23
22
|
'mdc-select--disabled': props.disabled,
|
|
24
23
|
'limel-select--readonly': props.readonly,
|
|
25
|
-
'limel-select--required': props.required,
|
|
26
24
|
'limel-select--invalid': !isValid,
|
|
27
|
-
'limel-select--empty': !hasValue,
|
|
28
25
|
'limel-select--with-helper-text': typeof props.helperText === 'string',
|
|
29
26
|
};
|
|
30
|
-
return
|
|
27
|
+
return [
|
|
28
|
+
h("limel-notched-outline", { class: classList, labelId: "s-label", label: props.label, required: props.required, invalid: !isValid, disabled: props.disabled, readonly: props.readonly, hasValue: hasValue, hasFloatingLabel: props.isOpen }, h(SelectValue, Object.assign({}, props, { hasValue: hasValue, isValid: isValid, hasEmptyText: hasEmptyText }))),
|
|
29
|
+
h(HelperText, { text: props.helperText, isValid: !props.invalid }),
|
|
30
|
+
h(SelectDropdown, Object.assign({}, props)),
|
|
31
|
+
];
|
|
31
32
|
};
|
|
32
33
|
const SelectValue = (props) => {
|
|
33
34
|
const anchorClassList = {
|
|
@@ -35,15 +36,7 @@ const SelectValue = (props) => {
|
|
|
35
36
|
'limel-select-trigger': true,
|
|
36
37
|
'limel-select--focused': props.isOpen,
|
|
37
38
|
};
|
|
38
|
-
|
|
39
|
-
'mdc-floating-label': true,
|
|
40
|
-
'mdc-floating-label--float-above': !props.hasEmptyText ||
|
|
41
|
-
props.isOpen ||
|
|
42
|
-
props.readonly ||
|
|
43
|
-
props.hasValue,
|
|
44
|
-
'mdc-floating-label--active': props.isOpen,
|
|
45
|
-
};
|
|
46
|
-
return (h("button", { class: anchorClassList, onClick: props.open, onKeyPress: props.onTriggerPress, "aria-haspopup": "listbox", "aria-expanded": props.isOpen, "aria-controls": props.id, "aria-labelledby": "s-label s-selected-text", "aria-required": props.required, disabled: props.disabled || props.readonly }, h("span", { id: "s-label", class: labelClassList }, props.label), h("span", { class: "mdc-select__selected-text-container limel-select__selected-option" }, getSelectedIcon(props.value), h("span", { id: "s-selected-text", class: "mdc-select__selected-text limel-select__selected-option__text" }, getSelectedText(props.value, props.readonly))), h(ShowIcon, Object.assign({}, props, { isValid: props.isValid })), h("span", { class: "mdc-select__dropdown-icon" }, h("svg", { class: "mdc-select__dropdown-icon-graphic", viewBox: "7 10 10 5", focusable: "false" }, h("polygon", { stroke: "none", "fill-rule": "evenodd", points: "7 10 12 15 17 10" })))));
|
|
39
|
+
return (h("button", { slot: "content", class: anchorClassList, onClick: props.open, onKeyPress: props.onTriggerPress, "aria-haspopup": "listbox", "aria-expanded": props.isOpen, "aria-controls": props.id, "aria-labelledby": "s-label s-selected-text", "aria-required": props.required, disabled: props.disabled || props.readonly }, h("span", { class: "mdc-select__selected-text-container limel-select__selected-option" }, getSelectedIcon(props.value), h("span", { id: "s-selected-text", class: "mdc-select__selected-text limel-select__selected-option__text" }, getSelectedText(props.value))), h(ShowIcon, Object.assign({}, props, { isValid: props.isValid })), h("span", { class: "mdc-select__dropdown-icon" }, h("svg", { class: "mdc-select__dropdown-icon-graphic", viewBox: "7 10 10 5", focusable: "false" }, h("polygon", { stroke: "none", "fill-rule": "evenodd", points: "7 10 12 15 17 10" })))));
|
|
47
40
|
};
|
|
48
41
|
const ShowIcon = (props) => {
|
|
49
42
|
if (props.isValid) {
|
|
@@ -149,18 +142,14 @@ function getMenuOptionFilter(selectIsRequired) {
|
|
|
149
142
|
}
|
|
150
143
|
};
|
|
151
144
|
}
|
|
152
|
-
function getSelectedText(value
|
|
153
|
-
const emptyReadOnlyOption = h("span", { class: "readonly-option" }, "\u2013");
|
|
145
|
+
function getSelectedText(value) {
|
|
154
146
|
const isEmptyValue = !value || (isMultiple(value) && !value.length);
|
|
155
147
|
if (isEmptyValue) {
|
|
156
|
-
return
|
|
148
|
+
return '';
|
|
157
149
|
}
|
|
158
150
|
if (isMultiple(value)) {
|
|
159
151
|
return value.map((option) => option.text).join(', ');
|
|
160
152
|
}
|
|
161
|
-
if (readonly && (value.value === 'empty' || value.text === '')) {
|
|
162
|
-
return emptyReadOnlyOption;
|
|
163
|
-
}
|
|
164
153
|
return value.text;
|
|
165
154
|
}
|
|
166
155
|
function getSelectedIcon(value) {
|