@limetech/lime-elements 34.1.0-next.29 → 34.1.0-next.32

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.
Files changed (41) hide show
  1. package/dist/cjs/{checkbox.template-d4423721.js → checkbox.template-312308d8.js} +9 -1
  2. package/dist/cjs/lime-elements.cjs.js +1 -1
  3. package/dist/cjs/limel-checkbox.cjs.entry.js +3 -3
  4. package/dist/cjs/limel-chip-set.cjs.entry.js +50 -28
  5. package/dist/cjs/limel-list_3.cjs.entry.js +2 -2
  6. package/dist/cjs/limel-menu-list.cjs.entry.js +1 -1
  7. package/dist/cjs/limel-picker.cjs.entry.js +1 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/collection/components/checkbox/checkbox.css +96 -0
  10. package/dist/collection/components/checkbox/checkbox.js +19 -1
  11. package/dist/collection/components/checkbox/checkbox.template.js +9 -1
  12. package/dist/collection/components/chip-set/chip-set.css +14 -0
  13. package/dist/collection/components/chip-set/chip-set.js +75 -35
  14. package/dist/collection/components/list/list.css +96 -0
  15. package/dist/collection/components/menu-list/menu-list.css +96 -0
  16. package/dist/collection/components/picker/picker.js +18 -1
  17. package/dist/esm/{checkbox.template-dbdd27c8.js → checkbox.template-4be69ce6.js} +9 -1
  18. package/dist/esm/lime-elements.js +1 -1
  19. package/dist/esm/limel-checkbox.entry.js +3 -3
  20. package/dist/esm/limel-chip-set.entry.js +50 -28
  21. package/dist/esm/limel-list_3.entry.js +2 -2
  22. package/dist/esm/limel-menu-list.entry.js +1 -1
  23. package/dist/esm/limel-picker.entry.js +1 -1
  24. package/dist/esm/loader.js +1 -1
  25. package/dist/lime-elements/lime-elements.esm.js +1 -1
  26. package/dist/lime-elements/p-0c121e2f.js +1 -0
  27. package/dist/lime-elements/{p-ec727143.entry.js → p-46af5a60.entry.js} +1 -1
  28. package/dist/lime-elements/{p-411ae86d.entry.js → p-5170a62c.entry.js} +1 -1
  29. package/dist/lime-elements/p-5a9ecd77.entry.js +73 -0
  30. package/dist/lime-elements/p-622be09b.entry.js +126 -0
  31. package/dist/lime-elements/p-8a2c1038.entry.js +16 -0
  32. package/dist/types/components/checkbox/checkbox.d.ts +5 -0
  33. package/dist/types/components/checkbox/checkbox.template.d.ts +1 -0
  34. package/dist/types/components/chip-set/chip-set.d.ts +12 -0
  35. package/dist/types/components/picker/picker.d.ts +4 -0
  36. package/dist/types/components.d.ts +24 -0
  37. package/package.json +1 -1
  38. package/dist/lime-elements/p-1cf833c8.entry.js +0 -16
  39. package/dist/lime-elements/p-89b5a983.js +0 -1
  40. package/dist/lime-elements/p-8d8bd2ab.entry.js +0 -73
  41. package/dist/lime-elements/p-b5d6abc3.entry.js +0 -126
@@ -320,7 +320,7 @@ let Picker = class {
320
320
  props.maxItems = 1;
321
321
  }
322
322
  return [
323
- index.h("limel-chip-set", Object.assign({ type: "input", label: this.label, leadingIcon: this.leadingIcon, value: this.chips, disabled: this.disabled, delimiter: this.renderDelimiter(), readonly: this.readonly, required: this.required, searchLabel: this.searchLabel, onInput: this.handleTextInput, onKeyDown: this.handleInputKeyDown, onChange: this.handleChange, onInteract: this.handleInteract, onStartEdit: this.handleInputFieldFocus, onStopEdit: this.handleStopEditAndBlur, emptyInputOnBlur: false, clearAllButton: this.multiple }, props)),
323
+ index.h("limel-chip-set", Object.assign({ type: "input", label: this.label, helperText: this.helperText, leadingIcon: this.leadingIcon, value: this.chips, disabled: this.disabled, delimiter: this.renderDelimiter(), readonly: this.readonly, required: this.required, searchLabel: this.searchLabel, onInput: this.handleTextInput, onKeyDown: this.handleInputKeyDown, onChange: this.handleChange, onInteract: this.handleInteract, onStartEdit: this.handleInputFieldFocus, onStopEdit: this.handleStopEditAndBlur, emptyInputOnBlur: false, clearAllButton: this.multiple }, props)),
324
324
  this.renderDropdown(),
325
325
  ];
326
326
  }
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["limel-color-picker.cjs",[[1,"limel-color-picker",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"tooltipLabel":[513,"tooltip-label"],"required":[516],"readonly":[516],"isOpen":[32]}]]],["limel-picker.cjs",[[1,"limel-picker",{"disabled":[4],"readonly":[516],"label":[1],"searchLabel":[1,"search-label"],"leadingIcon":[1,"leading-icon"],"emptyResultMessage":[1,"empty-result-message"],"required":[4],"value":[16],"searcher":[16],"multiple":[4],"delimiter":[513],"actions":[16],"actionPosition":[1,"action-position"],"actionScrollBehavior":[1,"action-scroll-behavior"],"badgeIcons":[516,"badge-icons"],"items":[32],"textValue":[32],"loading":[32],"chips":[32]}]]],["limel-date-picker.cjs",[[1,"limel-date-picker",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"helperText":[513,"helper-text"],"required":[516],"value":[16],"type":[513],"format":[513],"language":[513],"formattedValue":[32],"internalFormat":[32],"showPortal":[32]}]]],["limel-button-group.cjs",[[1,"limel-button-group",{"value":[16],"disabled":[516],"selectedButtonId":[32]}]]],["limel-select.cjs",[[1,"limel-select",{"disabled":[516],"readonly":[516],"invalid":[516],"required":[516],"label":[513],"helperText":[513,"helper-text"],"value":[16],"options":[16],"multiple":[4],"menuOpen":[32]}]]],["limel-tab-panel.cjs",[[1,"limel-tab-panel",{"tabs":[1040]}]]],["limel-file.cjs",[[1,"limel-file",{"value":[16],"label":[513],"required":[516],"disabled":[516],"readonly":[516],"accept":[513],"language":[1],"isDraggingOverDropZone":[32]}]]],["limel-menu.cjs",[[1,"limel-menu",{"items":[16],"disabled":[516],"openDirection":[513,"open-direction"],"open":[1540],"badgeIcons":[516,"badge-icons"],"gridLayout":[516,"grid-layout"]}]]],["limel-button.cjs",[[1,"limel-button",{"label":[513],"primary":[516],"outlined":[516],"icon":[513],"disabled":[516],"loading":[516]}]]],["limel-collapsible-section.cjs",[[1,"limel-collapsible-section",{"isOpen":[1540,"is-open"],"header":[513],"actions":[16]}]]],["limel-dialog.cjs",[[1,"limel-dialog",{"heading":[1],"fullscreen":[516],"open":[1540],"closingActions":[16]}]]],["limel-progress-flow.cjs",[[1,"limel-progress-flow",{"flowItems":[16],"disabled":[4],"readonly":[4]}]]],["limel-banner.cjs",[[1,"limel-banner",{"message":[513],"icon":[513],"isOpen":[32],"open":[64],"close":[64]}]]],["limel-table.cjs",[[1,"limel-table",{"data":[16],"columns":[16],"mode":[1],"pageSize":[2,"page-size"],"totalRows":[2,"total-rows"],"sorting":[16],"activeRow":[1040],"movableColumns":[4,"movable-columns"],"loading":[4],"page":[2],"emptyMessage":[1,"empty-message"]}]]],["limel-checkbox.cjs",[[1,"limel-checkbox",{"disabled":[516],"readonly":[516],"label":[513],"checked":[516],"required":[516],"modified":[32]}]]],["limel-circular-progress.cjs",[[1,"limel-circular-progress",{"value":[2],"maxValue":[2,"max-value"],"suffix":[1],"displayPercentageColors":[4,"display-percentage-colors"],"size":[513]}]]],["limel-code-editor.cjs",[[1,"limel-code-editor",{"value":[1],"language":[1],"readonly":[4],"lineNumbers":[4,"line-numbers"],"colorScheme":[1,"color-scheme"],"random":[32]}]]],["limel-config.cjs",[[1,"limel-config",{"config":[16]}]]],["limel-flex-container.cjs",[[1,"limel-flex-container",{"direction":[513],"justify":[513],"align":[513],"reverse":[516]}]]],["limel-form.cjs",[[1,"limel-form",{"schema":[16],"value":[16],"disabled":[4],"propsFactory":[16],"transformErrors":[16]}]]],["limel-grid.cjs",[[1,"limel-grid"]]],["limel-linear-progress.cjs",[[1,"limel-linear-progress",{"value":[2],"indeterminate":[4]}]]],["limel-slider.cjs",[[1,"limel-slider",{"disabled":[516],"readonly":[516],"factor":[514],"label":[513],"helperText":[513,"helper-text"],"unit":[513],"value":[514],"valuemax":[514],"valuemin":[514],"step":[514],"percentageClass":[32]}]]],["limel-snackbar.cjs",[[1,"limel-snackbar",{"message":[1],"timeout":[2],"actionText":[1,"action-text"],"dismissible":[4],"multiline":[4],"language":[1],"show":[64]}]]],["limel-switch.cjs",[[1,"limel-switch",{"label":[513],"disabled":[516],"readonly":[516],"value":[516],"fieldId":[32]}]]],["limel-tab-bar.cjs",[[1,"limel-tab-bar",{"tabs":[1040],"canScrollLeft":[32],"canScrollRight":[32]},[[9,"resize","handleWindowResize"]]]]],["limel-header.cjs",[[1,"limel-header",{"icon":[1],"heading":[1],"subheading":[1],"supportingText":[1,"supporting-text"]}]]],["limel-progress-flow-item.cjs",[[0,"limel-progress-flow-item",{"item":[16],"disabled":[4],"readonly":[4]}]]],["limel-flatpickr-adapter.cjs",[[1,"limel-flatpickr-adapter",{"value":[16],"type":[1],"format":[1],"isOpen":[4,"is-open"],"inputElement":[16],"language":[1]}]]],["limel-menu-list.cjs",[[1,"limel-menu-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}]]],["limel-popover-surface.cjs",[[1,"limel-popover-surface",{"contentCollection":[16]}]]],["limel-icon.cjs",[[1,"limel-icon",{"size":[513],"name":[513],"badge":[516]}]]],["limel-input-field.cjs",[[1,"limel-input-field",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"helperText":[513,"helper-text"],"required":[516],"value":[513],"trailingIcon":[513,"trailing-icon"],"leadingIcon":[513,"leading-icon"],"pattern":[513],"type":[513],"formatNumber":[516,"format-number"],"step":[520],"max":[514],"min":[514],"maxlength":[514],"minlength":[514],"completions":[16],"showLink":[516,"show-link"],"isFocused":[32],"isModified":[32],"showCompletions":[32]}]]],["limel-color-picker-palette_2.cjs",[[1,"limel-color-picker-palette",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"required":[516]}],[1,"limel-popover",{"open":[4]}]]],["limel-badge.cjs",[[1,"limel-badge",{"label":[514]}]]],["limel-chip-set.cjs",[[1,"limel-chip-set",{"value":[16],"type":[513],"label":[513],"disabled":[516],"readonly":[516],"maxItems":[514,"max-items"],"required":[516],"searchLabel":[513,"search-label"],"emptyInputOnBlur":[516,"empty-input-on-blur"],"clearAllButton":[4,"clear-all-button"],"leadingIcon":[513,"leading-icon"],"delimiter":[513],"language":[1],"editMode":[32],"textValue":[32],"blurred":[32],"inputChipIndexSelected":[32],"getEditMode":[64],"setFocus":[64],"emptyInput":[64]}]]],["limel-icon-button.cjs",[[1,"limel-icon-button",{"icon":[513],"elevated":[516],"label":[513],"disabled":[516],"relayout":[64]}]]],["limel-spinner.cjs",[[1,"limel-spinner",{"size":[513],"limeBranded":[4,"lime-branded"]}]]],["limel-list_3.cjs",[[1,"limel-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}],[1,"limel-menu-surface",{"open":[4],"allowClicksElement":[16]}],[1,"limel-portal",{"openDirection":[1,"open-direction"],"position":[1],"containerId":[1,"container-id"],"containerStyle":[16],"parent":[16],"inheritParentWidth":[4,"inherit-parent-width"],"visible":[4]}]]],["limel-tooltip_2.cjs",[[1,"limel-tooltip",{"label":[513],"helperLabel":[513,"helper-label"],"elementId":[513,"element-id"],"open":[32]}],[1,"limel-tooltip-content",{"label":[513],"helperLabel":[513,"helper-label"]}]]]], options);
17
+ return index.bootstrapLazy([["limel-color-picker.cjs",[[1,"limel-color-picker",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"tooltipLabel":[513,"tooltip-label"],"required":[516],"readonly":[516],"isOpen":[32]}]]],["limel-picker.cjs",[[1,"limel-picker",{"disabled":[4],"readonly":[516],"label":[1],"searchLabel":[1,"search-label"],"helperText":[513,"helper-text"],"leadingIcon":[1,"leading-icon"],"emptyResultMessage":[1,"empty-result-message"],"required":[4],"value":[16],"searcher":[16],"multiple":[4],"delimiter":[513],"actions":[16],"actionPosition":[1,"action-position"],"actionScrollBehavior":[1,"action-scroll-behavior"],"badgeIcons":[516,"badge-icons"],"items":[32],"textValue":[32],"loading":[32],"chips":[32]}]]],["limel-date-picker.cjs",[[1,"limel-date-picker",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"helperText":[513,"helper-text"],"required":[516],"value":[16],"type":[513],"format":[513],"language":[513],"formattedValue":[32],"internalFormat":[32],"showPortal":[32]}]]],["limel-button-group.cjs",[[1,"limel-button-group",{"value":[16],"disabled":[516],"selectedButtonId":[32]}]]],["limel-select.cjs",[[1,"limel-select",{"disabled":[516],"readonly":[516],"invalid":[516],"required":[516],"label":[513],"helperText":[513,"helper-text"],"value":[16],"options":[16],"multiple":[4],"menuOpen":[32]}]]],["limel-tab-panel.cjs",[[1,"limel-tab-panel",{"tabs":[1040]}]]],["limel-file.cjs",[[1,"limel-file",{"value":[16],"label":[513],"required":[516],"disabled":[516],"readonly":[516],"accept":[513],"language":[1],"isDraggingOverDropZone":[32]}]]],["limel-menu.cjs",[[1,"limel-menu",{"items":[16],"disabled":[516],"openDirection":[513,"open-direction"],"open":[1540],"badgeIcons":[516,"badge-icons"],"gridLayout":[516,"grid-layout"]}]]],["limel-button.cjs",[[1,"limel-button",{"label":[513],"primary":[516],"outlined":[516],"icon":[513],"disabled":[516],"loading":[516]}]]],["limel-collapsible-section.cjs",[[1,"limel-collapsible-section",{"isOpen":[1540,"is-open"],"header":[513],"actions":[16]}]]],["limel-dialog.cjs",[[1,"limel-dialog",{"heading":[1],"fullscreen":[516],"open":[1540],"closingActions":[16]}]]],["limel-progress-flow.cjs",[[1,"limel-progress-flow",{"flowItems":[16],"disabled":[4],"readonly":[4]}]]],["limel-banner.cjs",[[1,"limel-banner",{"message":[513],"icon":[513],"isOpen":[32],"open":[64],"close":[64]}]]],["limel-table.cjs",[[1,"limel-table",{"data":[16],"columns":[16],"mode":[1],"pageSize":[2,"page-size"],"totalRows":[2,"total-rows"],"sorting":[16],"activeRow":[1040],"movableColumns":[4,"movable-columns"],"loading":[4],"page":[2],"emptyMessage":[1,"empty-message"]}]]],["limel-checkbox.cjs",[[1,"limel-checkbox",{"disabled":[516],"readonly":[516],"label":[513],"helperText":[513,"helper-text"],"checked":[516],"required":[516],"modified":[32]}]]],["limel-circular-progress.cjs",[[1,"limel-circular-progress",{"value":[2],"maxValue":[2,"max-value"],"suffix":[1],"displayPercentageColors":[4,"display-percentage-colors"],"size":[513]}]]],["limel-code-editor.cjs",[[1,"limel-code-editor",{"value":[1],"language":[1],"readonly":[4],"lineNumbers":[4,"line-numbers"],"colorScheme":[1,"color-scheme"],"random":[32]}]]],["limel-config.cjs",[[1,"limel-config",{"config":[16]}]]],["limel-flex-container.cjs",[[1,"limel-flex-container",{"direction":[513],"justify":[513],"align":[513],"reverse":[516]}]]],["limel-form.cjs",[[1,"limel-form",{"schema":[16],"value":[16],"disabled":[4],"propsFactory":[16],"transformErrors":[16]}]]],["limel-grid.cjs",[[1,"limel-grid"]]],["limel-linear-progress.cjs",[[1,"limel-linear-progress",{"value":[2],"indeterminate":[4]}]]],["limel-slider.cjs",[[1,"limel-slider",{"disabled":[516],"readonly":[516],"factor":[514],"label":[513],"helperText":[513,"helper-text"],"unit":[513],"value":[514],"valuemax":[514],"valuemin":[514],"step":[514],"percentageClass":[32]}]]],["limel-snackbar.cjs",[[1,"limel-snackbar",{"message":[1],"timeout":[2],"actionText":[1,"action-text"],"dismissible":[4],"multiline":[4],"language":[1],"show":[64]}]]],["limel-switch.cjs",[[1,"limel-switch",{"label":[513],"disabled":[516],"readonly":[516],"value":[516],"fieldId":[32]}]]],["limel-tab-bar.cjs",[[1,"limel-tab-bar",{"tabs":[1040],"canScrollLeft":[32],"canScrollRight":[32]},[[9,"resize","handleWindowResize"]]]]],["limel-header.cjs",[[1,"limel-header",{"icon":[1],"heading":[1],"subheading":[1],"supportingText":[1,"supporting-text"]}]]],["limel-progress-flow-item.cjs",[[0,"limel-progress-flow-item",{"item":[16],"disabled":[4],"readonly":[4]}]]],["limel-flatpickr-adapter.cjs",[[1,"limel-flatpickr-adapter",{"value":[16],"type":[1],"format":[1],"isOpen":[4,"is-open"],"inputElement":[16],"language":[1]}]]],["limel-menu-list.cjs",[[1,"limel-menu-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}]]],["limel-popover-surface.cjs",[[1,"limel-popover-surface",{"contentCollection":[16]}]]],["limel-icon.cjs",[[1,"limel-icon",{"size":[513],"name":[513],"badge":[516]}]]],["limel-input-field.cjs",[[1,"limel-input-field",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"helperText":[513,"helper-text"],"required":[516],"value":[513],"trailingIcon":[513,"trailing-icon"],"leadingIcon":[513,"leading-icon"],"pattern":[513],"type":[513],"formatNumber":[516,"format-number"],"step":[520],"max":[514],"min":[514],"maxlength":[514],"minlength":[514],"completions":[16],"showLink":[516,"show-link"],"isFocused":[32],"isModified":[32],"showCompletions":[32]}]]],["limel-color-picker-palette_2.cjs",[[1,"limel-color-picker-palette",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"required":[516]}],[1,"limel-popover",{"open":[4]}]]],["limel-badge.cjs",[[1,"limel-badge",{"label":[514]}]]],["limel-chip-set.cjs",[[1,"limel-chip-set",{"value":[16],"type":[513],"label":[513],"helperText":[513,"helper-text"],"disabled":[516],"readonly":[516],"maxItems":[514,"max-items"],"required":[516],"searchLabel":[513,"search-label"],"emptyInputOnBlur":[516,"empty-input-on-blur"],"clearAllButton":[4,"clear-all-button"],"leadingIcon":[513,"leading-icon"],"delimiter":[513],"language":[1],"editMode":[32],"textValue":[32],"blurred":[32],"inputChipIndexSelected":[32],"getEditMode":[64],"setFocus":[64],"emptyInput":[64]}]]],["limel-icon-button.cjs",[[1,"limel-icon-button",{"icon":[513],"elevated":[516],"label":[513],"disabled":[516],"relayout":[64]}]]],["limel-spinner.cjs",[[1,"limel-spinner",{"size":[513],"limeBranded":[4,"lime-branded"]}]]],["limel-list_3.cjs",[[1,"limel-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}],[1,"limel-menu-surface",{"open":[4],"allowClicksElement":[16]}],[1,"limel-portal",{"openDirection":[1,"open-direction"],"position":[1],"containerId":[1,"container-id"],"containerStyle":[16],"parent":[16],"inheritParentWidth":[4,"inherit-parent-width"],"visible":[4]}]]],["limel-tooltip_2.cjs",[[1,"limel-tooltip",{"label":[513],"helperLabel":[513,"helper-label"],"elementId":[513,"element-id"],"open":[32]}],[1,"limel-tooltip-content",{"label":[513],"helperLabel":[513,"helper-label"]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -762,6 +762,7 @@
762
762
 
763
763
  .mdc-form-field {
764
764
  display: flex;
765
+ flex-wrap: wrap;
765
766
  }
766
767
  .mdc-form-field .mdc-checkbox.mdc-checkbox--invalid .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate) ~ .mdc-checkbox__background {
767
768
  border-color: var(--lime-error-text-color);
@@ -804,4 +805,99 @@
804
805
  100% {
805
806
  opacity: 0;
806
807
  }
808
+ }
809
+ /*
810
+ * This file is imported into every component!
811
+ *
812
+ * Nothing in this file may output any CSS
813
+ * without being explicitly called by outside code.
814
+ */
815
+ /*
816
+ * This file is imported into every component that uses MDC!
817
+ *
818
+ * Anything in this file that generates CSS output on its own,
819
+ * without being explicitly used, will output that CSS in every
820
+ * single component, increasing the size of the production build.
821
+ * Avoid that unless there's very good reason for it!
822
+ */
823
+ /*
824
+ * This file is imported into every component that uses MDC!
825
+ *
826
+ * Anything in this file that generates CSS output on its own,
827
+ * without being explicitly used, will output that CSS in every
828
+ * single component, increasing the size of the production build.
829
+ * Avoid that unless there's very good reason for it!
830
+ */
831
+ :host {
832
+ --mdc-theme-primary: var(
833
+ --lime-primary-color,
834
+ rgb(var(--color-teal-default))
835
+ );
836
+ --mdc-theme-secondary: var(
837
+ --lime-secondary-color,
838
+ rgb(var(--contrast-1100))
839
+ );
840
+ --mdc-theme-on-primary: var(
841
+ --lime-on-primary-color,
842
+ rgb(var(--contrast-100))
843
+ );
844
+ --mdc-theme-on-secondary: var(
845
+ --lime-on-secondary-color,
846
+ rgb(var(--contrast-100))
847
+ );
848
+ --mdc-theme-text-disabled-on-background: var(
849
+ --lime-text-disabled-on-background-color,
850
+ rgba(var(--contrast-1700), 0.38)
851
+ );
852
+ --mdc-theme-text-primary-on-background: var(
853
+ --lime-text-primary-on-background-color,
854
+ rgba(var(--contrast-1700), 0.87)
855
+ );
856
+ --mdc-theme-text-secondary-on-background: var(
857
+ --lime-text-secondary-on-background-color,
858
+ rgba(var(--contrast-1700), 0.54)
859
+ );
860
+ --lime-error-text-color: rgb(var(--color-red-darker));
861
+ --mdc-theme-surface: var(
862
+ --lime-surface-background-color,
863
+ rgb(var(--contrast-100))
864
+ );
865
+ --mdc-theme-on-surface: var(
866
+ --lime-on-surface-color,
867
+ var(--lime-text-primary-on-background-color)
868
+ );
869
+ }
870
+
871
+ .limel-checkbox-helper-line {
872
+ flex-basis: 100%;
873
+ padding-right: 1rem;
874
+ padding-left: 1rem;
875
+ }
876
+
877
+ .limel-checkbox-helper-text {
878
+ font-family: Roboto, sans-serif;
879
+ -moz-osx-font-smoothing: grayscale;
880
+ -webkit-font-smoothing: antialiased;
881
+ font-size: 0.6875rem;
882
+ font-weight: 400;
883
+ letter-spacing: 0.0333333333em;
884
+ text-decoration: inherit;
885
+ text-transform: inherit;
886
+ display: block;
887
+ margin-top: 0;
888
+ line-height: normal;
889
+ margin: 0;
890
+ transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
891
+ opacity: 0;
892
+ color: rgba(var(--contrast-1200), 1);
893
+ }
894
+
895
+ .mdc-form-field:hover .limel-checkbox-helper-text, .mdc-form-field:focus .limel-checkbox-helper-text, .mdc-form-field:focus-visible .limel-checkbox-helper-text, .mdc-form-field:focus-within .limel-checkbox-helper-text {
896
+ opacity: 1;
897
+ }
898
+
899
+ @media (pointer: coarse) {
900
+ .limel-checkbox-helper-text {
901
+ opacity: 1;
902
+ }
807
903
  }
@@ -5,6 +5,7 @@ import { createRandomString } from '../../util/random-string';
5
5
  import { CheckboxTemplate } from './checkbox.template';
6
6
  /**
7
7
  * @exampleComponent limel-example-checkbox
8
+ * @exampleComponent limel-example-checkbox-helper-text
8
9
  */
9
10
  export class Checkbox {
10
11
  constructor() {
@@ -51,7 +52,7 @@ export class Checkbox {
51
52
  (_b = this.formField) === null || _b === void 0 ? void 0 : _b.destroy();
52
53
  }
53
54
  render() {
54
- return (h(CheckboxTemplate, { disabled: this.disabled || this.readonly, label: this.label, checked: this.checked, required: this.required, invalid: this.required && this.modified && !this.checked, onChange: this.onChange, id: this.id }));
55
+ return (h(CheckboxTemplate, { disabled: this.disabled || this.readonly, label: this.label, helperText: this.helperText, checked: this.checked, required: this.required, invalid: this.required && this.modified && !this.checked, onChange: this.onChange, id: this.id }));
55
56
  }
56
57
  onChange(event) {
57
58
  event.stopPropagation();
@@ -120,6 +121,23 @@ export class Checkbox {
120
121
  "attribute": "label",
121
122
  "reflect": true
122
123
  },
124
+ "helperText": {
125
+ "type": "string",
126
+ "mutable": false,
127
+ "complexType": {
128
+ "original": "string",
129
+ "resolved": "string",
130
+ "references": {}
131
+ },
132
+ "required": false,
133
+ "optional": false,
134
+ "docs": {
135
+ "tags": [],
136
+ "text": "Optional helper text to display below the checkbox"
137
+ },
138
+ "attribute": "helper-text",
139
+ "reflect": true
140
+ },
123
141
  "checked": {
124
142
  "type": "boolean",
125
143
  "mutable": false,
@@ -17,5 +17,13 @@ export const CheckboxTemplate = (props) => {
17
17
  'mdc-checkbox--invalid': props.invalid,
18
18
  'mdc-checkbox--disabled': props.disabled,
19
19
  'mdc-checkbox--required': props.required,
20
- }, htmlFor: props.id }, props.label)));
20
+ }, htmlFor: props.id }, props.label),
21
+ h(HelperText, { text: props.helperText })));
22
+ };
23
+ const HelperText = (props) => {
24
+ if (typeof props.text !== 'string') {
25
+ return;
26
+ }
27
+ return (h("div", { class: "limel-checkbox-helper-line" },
28
+ h("p", { class: "limel-checkbox-helper-text", "aria-hidden": "true" }, props.text.trim())));
21
29
  };
@@ -2622,4 +2622,18 @@ limel-icon.mdc-chip__icon.mdc-chip__icon--leading {
2622
2622
  }
2623
2623
  :host(.is-file-picker.shows-dropzone) .mdc-text-field:not(.has-chips):not(.lime-text-field--readonly) .mdc-notched-outline .mdc-notched-outline__notch {
2624
2624
  max-width: 40%;
2625
+ }
2626
+
2627
+ .mdc-text-field-helper-line {
2628
+ flex-basis: 100%;
2629
+ }
2630
+
2631
+ :host(:not([type=input])) .mdc-chip-set:hover .mdc-text-field-helper-text, :host(:not([type=input])) .mdc-chip-set:focus .mdc-text-field-helper-text, :host(:not([type=input])) .mdc-chip-set:focus-visible .mdc-text-field-helper-text, :host(:not([type=input])) .mdc-chip-set:focus-within .mdc-text-field-helper-text {
2632
+ opacity: 1;
2633
+ }
2634
+
2635
+ @media (pointer: coarse) {
2636
+ :host(:not([type=input])) .mdc-chip-set .mdc-text-field-helper-text {
2637
+ opacity: 1;
2638
+ }
2625
2639
  }
@@ -66,6 +66,25 @@ export class ChipSet {
66
66
  this.dropZoneTip = () => {
67
67
  return translate.get('file.drag-and-drop-tips', this.language);
68
68
  };
69
+ this.renderHelperLine = () => {
70
+ if (!this.hasHelperText()) {
71
+ return;
72
+ }
73
+ return (h("div", { tabIndex: -1, class: "mdc-text-field-helper-line" }, this.renderHelperText()));
74
+ };
75
+ this.renderHelperText = () => {
76
+ if (!this.hasHelperText()) {
77
+ return;
78
+ }
79
+ const classList = {
80
+ 'mdc-text-field-helper-text': true,
81
+ 'mdc-text-field-helper-text--validation-msg': this.isInvalid(),
82
+ };
83
+ return h("p", { class: classList }, this.helperText);
84
+ };
85
+ this.hasHelperText = () => {
86
+ return this.helperText !== null && this.helperText !== undefined;
87
+ };
69
88
  this.clearAllChipsLabel = () => {
70
89
  return translate.get('chip-set.clear-all', this.language);
71
90
  };
@@ -161,7 +180,8 @@ export class ChipSet {
161
180
  }
162
181
  return (h("div", { class: classes, role: "grid" },
163
182
  chipSetLabel,
164
- this.value.map(this.renderChip)));
183
+ this.value.map(this.renderChip),
184
+ this.renderHelperLine()));
165
185
  }
166
186
  handleChangeChips() {
167
187
  this.syncEmptyInput();
@@ -189,41 +209,44 @@ export class ChipSet {
189
209
  return (h("label", { class: "chip-set__label mdc-floating-label mdc-floating-label--float-above" }, this.label));
190
210
  }
191
211
  renderInputChips() {
192
- return (h("div", { class: {
193
- 'mdc-text-field mdc-text-field--outlined': true,
194
- 'mdc-chip-set mdc-chip-set--input': true,
195
- 'force-invalid': this.isInvalid(),
196
- 'mdc-text-field--disabled': this.readonly || this.disabled,
197
- 'lime-text-field--readonly': this.readonly,
198
- 'has-chips mdc-text-field--label-floating': this.value.length !== 0,
199
- 'has-leading-icon': this.leadingIcon !== null,
200
- 'has-clear-all-button': this.clearAllButton,
201
- }, onClick: this.handleTextFieldFocus },
202
- this.value.map(this.renderInputChip),
203
- h("input", { tabIndex: INPUT_FIELD_TABINDEX, type: "text", id: "input-element", disabled: this.readonly || this.disabled, class: {
204
- 'mdc-text-field__input': true,
205
- hidden: this.inputHidden(),
206
- }, value: this.textValue, onBlur: this.handleInputBlur, onFocus: this.handleTextFieldFocus, onKeyDown: this.handleKeyDown, onInput: this.handleTextInput,
207
- // Some browsers emit a change event on input elements, we need to stop
208
- // that event from propagating since we are emitting our own change event
209
- onChange: this.inputFieldOnChange, placeholder: this.isFull() ? '' : this.searchLabel, readonly: this.isFull() }),
212
+ return [
210
213
  h("div", { class: {
211
- 'mdc-notched-outline': true,
212
- 'mdc-notched-outline--upgraded': true,
213
- 'mdc-text-field--required': this.required,
214
- 'lime-notched-outline--notched': !!(this.value.length || this.editMode),
215
- }, "dropzone-tip": this.dropZoneTip() },
216
- h("div", { class: "mdc-notched-outline__leading" }),
217
- h("div", { class: "mdc-notched-outline__notch" },
218
- h("label", { class: {
219
- 'mdc-floating-label': true,
220
- 'mdc-text-field--disabled': this.readonly || this.disabled,
221
- 'mdc-floating-label--required': this.required,
222
- 'lime-floating-label--float-above': !!(this.value.length || this.editMode),
223
- }, htmlFor: "input-element" }, this.label)),
224
- h("div", { class: "mdc-notched-outline__trailing" })),
225
- this.renderLeadingIcon(),
226
- this.renderClearAllChipsButton()));
214
+ 'mdc-text-field mdc-text-field--outlined': true,
215
+ 'mdc-chip-set mdc-chip-set--input': true,
216
+ 'force-invalid': this.isInvalid(),
217
+ 'mdc-text-field--disabled': this.readonly || this.disabled,
218
+ 'lime-text-field--readonly': this.readonly,
219
+ 'has-chips mdc-text-field--label-floating': this.value.length !== 0,
220
+ 'has-leading-icon': this.leadingIcon !== null,
221
+ 'has-clear-all-button': this.clearAllButton,
222
+ }, onClick: this.handleTextFieldFocus },
223
+ this.value.map(this.renderInputChip),
224
+ h("input", { tabIndex: INPUT_FIELD_TABINDEX, type: "text", id: "input-element", disabled: this.readonly || this.disabled, class: {
225
+ 'mdc-text-field__input': true,
226
+ hidden: this.inputHidden(),
227
+ }, value: this.textValue, onBlur: this.handleInputBlur, onFocus: this.handleTextFieldFocus, onKeyDown: this.handleKeyDown, onInput: this.handleTextInput,
228
+ // Some browsers emit a change event on input elements, we need to stop
229
+ // that event from propagating since we are emitting our own change event
230
+ onChange: this.inputFieldOnChange, placeholder: this.isFull() ? '' : this.searchLabel, readonly: this.isFull() }),
231
+ h("div", { class: {
232
+ 'mdc-notched-outline': true,
233
+ 'mdc-notched-outline--upgraded': true,
234
+ 'mdc-text-field--required': this.required,
235
+ 'lime-notched-outline--notched': !!(this.value.length || this.editMode),
236
+ }, "dropzone-tip": this.dropZoneTip() },
237
+ h("div", { class: "mdc-notched-outline__leading" }),
238
+ h("div", { class: "mdc-notched-outline__notch" },
239
+ h("label", { class: {
240
+ 'mdc-floating-label': true,
241
+ 'mdc-text-field--disabled': this.readonly || this.disabled,
242
+ 'mdc-floating-label--required': this.required,
243
+ 'lime-floating-label--float-above': !!(this.value.length || this.editMode),
244
+ }, htmlFor: "input-element" }, this.label)),
245
+ h("div", { class: "mdc-notched-outline__trailing" })),
246
+ this.renderLeadingIcon(),
247
+ this.renderClearAllChipsButton()),
248
+ this.renderHelperLine(),
249
+ ];
227
250
  }
228
251
  isFull() {
229
252
  return !!this.maxItems && this.value.length >= this.maxItems;
@@ -477,6 +500,23 @@ export class ChipSet {
477
500
  "attribute": "label",
478
501
  "reflect": true
479
502
  },
503
+ "helperText": {
504
+ "type": "string",
505
+ "mutable": false,
506
+ "complexType": {
507
+ "original": "string",
508
+ "resolved": "string",
509
+ "references": {}
510
+ },
511
+ "required": false,
512
+ "optional": false,
513
+ "docs": {
514
+ "tags": [],
515
+ "text": "Optional helper text to display below the chipset.\nWhen type is `input`, the helper text is displayed below the\ninput field when it has focus.\nWhen type is not `input`, the helper text is always displayed\nif the device is touch screen; otherwise it is shown when chip-set\nis hovered or focused using keyboard navigation."
516
+ },
517
+ "attribute": "helper-text",
518
+ "reflect": true
519
+ },
480
520
  "disabled": {
481
521
  "type": "boolean",
482
522
  "mutable": false,
@@ -4028,6 +4028,7 @@ a.mdc-list-item {
4028
4028
 
4029
4029
  .mdc-form-field {
4030
4030
  display: flex;
4031
+ flex-wrap: wrap;
4031
4032
  }
4032
4033
  .mdc-form-field .mdc-checkbox.mdc-checkbox--invalid .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate) ~ .mdc-checkbox__background {
4033
4034
  border-color: var(--lime-error-text-color);
@@ -4071,6 +4072,101 @@ a.mdc-list-item {
4071
4072
  opacity: 0;
4072
4073
  }
4073
4074
  }
4075
+ /*
4076
+ * This file is imported into every component!
4077
+ *
4078
+ * Nothing in this file may output any CSS
4079
+ * without being explicitly called by outside code.
4080
+ */
4081
+ /*
4082
+ * This file is imported into every component that uses MDC!
4083
+ *
4084
+ * Anything in this file that generates CSS output on its own,
4085
+ * without being explicitly used, will output that CSS in every
4086
+ * single component, increasing the size of the production build.
4087
+ * Avoid that unless there's very good reason for it!
4088
+ */
4089
+ /*
4090
+ * This file is imported into every component that uses MDC!
4091
+ *
4092
+ * Anything in this file that generates CSS output on its own,
4093
+ * without being explicitly used, will output that CSS in every
4094
+ * single component, increasing the size of the production build.
4095
+ * Avoid that unless there's very good reason for it!
4096
+ */
4097
+ :host {
4098
+ --mdc-theme-primary: var(
4099
+ --lime-primary-color,
4100
+ rgb(var(--color-teal-default))
4101
+ );
4102
+ --mdc-theme-secondary: var(
4103
+ --lime-secondary-color,
4104
+ rgb(var(--contrast-1100))
4105
+ );
4106
+ --mdc-theme-on-primary: var(
4107
+ --lime-on-primary-color,
4108
+ rgb(var(--contrast-100))
4109
+ );
4110
+ --mdc-theme-on-secondary: var(
4111
+ --lime-on-secondary-color,
4112
+ rgb(var(--contrast-100))
4113
+ );
4114
+ --mdc-theme-text-disabled-on-background: var(
4115
+ --lime-text-disabled-on-background-color,
4116
+ rgba(var(--contrast-1700), 0.38)
4117
+ );
4118
+ --mdc-theme-text-primary-on-background: var(
4119
+ --lime-text-primary-on-background-color,
4120
+ rgba(var(--contrast-1700), 0.87)
4121
+ );
4122
+ --mdc-theme-text-secondary-on-background: var(
4123
+ --lime-text-secondary-on-background-color,
4124
+ rgba(var(--contrast-1700), 0.54)
4125
+ );
4126
+ --lime-error-text-color: rgb(var(--color-red-darker));
4127
+ --mdc-theme-surface: var(
4128
+ --lime-surface-background-color,
4129
+ rgb(var(--contrast-100))
4130
+ );
4131
+ --mdc-theme-on-surface: var(
4132
+ --lime-on-surface-color,
4133
+ var(--lime-text-primary-on-background-color)
4134
+ );
4135
+ }
4136
+
4137
+ .limel-checkbox-helper-line {
4138
+ flex-basis: 100%;
4139
+ padding-right: 1rem;
4140
+ padding-left: 1rem;
4141
+ }
4142
+
4143
+ .limel-checkbox-helper-text {
4144
+ font-family: Roboto, sans-serif;
4145
+ -moz-osx-font-smoothing: grayscale;
4146
+ -webkit-font-smoothing: antialiased;
4147
+ font-size: 0.6875rem;
4148
+ font-weight: 400;
4149
+ letter-spacing: 0.0333333333em;
4150
+ text-decoration: inherit;
4151
+ text-transform: inherit;
4152
+ display: block;
4153
+ margin-top: 0;
4154
+ line-height: normal;
4155
+ margin: 0;
4156
+ transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
4157
+ opacity: 0;
4158
+ color: rgba(var(--contrast-1200), 1);
4159
+ }
4160
+
4161
+ .mdc-form-field:hover .limel-checkbox-helper-text, .mdc-form-field:focus .limel-checkbox-helper-text, .mdc-form-field:focus-visible .limel-checkbox-helper-text, .mdc-form-field:focus-within .limel-checkbox-helper-text {
4162
+ opacity: 1;
4163
+ }
4164
+
4165
+ @media (pointer: coarse) {
4166
+ .limel-checkbox-helper-text {
4167
+ opacity: 1;
4168
+ }
4169
+ }
4074
4170
  .mdc-radio {
4075
4171
  padding: 10px;
4076
4172
  display: inline-block;
@@ -4034,6 +4034,7 @@ a.mdc-list-item {
4034
4034
 
4035
4035
  .mdc-form-field {
4036
4036
  display: flex;
4037
+ flex-wrap: wrap;
4037
4038
  }
4038
4039
  .mdc-form-field .mdc-checkbox.mdc-checkbox--invalid .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate) ~ .mdc-checkbox__background {
4039
4040
  border-color: var(--lime-error-text-color);
@@ -4077,6 +4078,101 @@ a.mdc-list-item {
4077
4078
  opacity: 0;
4078
4079
  }
4079
4080
  }
4081
+ /*
4082
+ * This file is imported into every component!
4083
+ *
4084
+ * Nothing in this file may output any CSS
4085
+ * without being explicitly called by outside code.
4086
+ */
4087
+ /*
4088
+ * This file is imported into every component that uses MDC!
4089
+ *
4090
+ * Anything in this file that generates CSS output on its own,
4091
+ * without being explicitly used, will output that CSS in every
4092
+ * single component, increasing the size of the production build.
4093
+ * Avoid that unless there's very good reason for it!
4094
+ */
4095
+ /*
4096
+ * This file is imported into every component that uses MDC!
4097
+ *
4098
+ * Anything in this file that generates CSS output on its own,
4099
+ * without being explicitly used, will output that CSS in every
4100
+ * single component, increasing the size of the production build.
4101
+ * Avoid that unless there's very good reason for it!
4102
+ */
4103
+ :host {
4104
+ --mdc-theme-primary: var(
4105
+ --lime-primary-color,
4106
+ rgb(var(--color-teal-default))
4107
+ );
4108
+ --mdc-theme-secondary: var(
4109
+ --lime-secondary-color,
4110
+ rgb(var(--contrast-1100))
4111
+ );
4112
+ --mdc-theme-on-primary: var(
4113
+ --lime-on-primary-color,
4114
+ rgb(var(--contrast-100))
4115
+ );
4116
+ --mdc-theme-on-secondary: var(
4117
+ --lime-on-secondary-color,
4118
+ rgb(var(--contrast-100))
4119
+ );
4120
+ --mdc-theme-text-disabled-on-background: var(
4121
+ --lime-text-disabled-on-background-color,
4122
+ rgba(var(--contrast-1700), 0.38)
4123
+ );
4124
+ --mdc-theme-text-primary-on-background: var(
4125
+ --lime-text-primary-on-background-color,
4126
+ rgba(var(--contrast-1700), 0.87)
4127
+ );
4128
+ --mdc-theme-text-secondary-on-background: var(
4129
+ --lime-text-secondary-on-background-color,
4130
+ rgba(var(--contrast-1700), 0.54)
4131
+ );
4132
+ --lime-error-text-color: rgb(var(--color-red-darker));
4133
+ --mdc-theme-surface: var(
4134
+ --lime-surface-background-color,
4135
+ rgb(var(--contrast-100))
4136
+ );
4137
+ --mdc-theme-on-surface: var(
4138
+ --lime-on-surface-color,
4139
+ var(--lime-text-primary-on-background-color)
4140
+ );
4141
+ }
4142
+
4143
+ .limel-checkbox-helper-line {
4144
+ flex-basis: 100%;
4145
+ padding-right: 1rem;
4146
+ padding-left: 1rem;
4147
+ }
4148
+
4149
+ .limel-checkbox-helper-text {
4150
+ font-family: Roboto, sans-serif;
4151
+ -moz-osx-font-smoothing: grayscale;
4152
+ -webkit-font-smoothing: antialiased;
4153
+ font-size: 0.6875rem;
4154
+ font-weight: 400;
4155
+ letter-spacing: 0.0333333333em;
4156
+ text-decoration: inherit;
4157
+ text-transform: inherit;
4158
+ display: block;
4159
+ margin-top: 0;
4160
+ line-height: normal;
4161
+ margin: 0;
4162
+ transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
4163
+ opacity: 0;
4164
+ color: rgba(var(--contrast-1200), 1);
4165
+ }
4166
+
4167
+ .mdc-form-field:hover .limel-checkbox-helper-text, .mdc-form-field:focus .limel-checkbox-helper-text, .mdc-form-field:focus-visible .limel-checkbox-helper-text, .mdc-form-field:focus-within .limel-checkbox-helper-text {
4168
+ opacity: 1;
4169
+ }
4170
+
4171
+ @media (pointer: coarse) {
4172
+ .limel-checkbox-helper-text {
4173
+ opacity: 1;
4174
+ }
4175
+ }
4080
4176
  .mdc-radio {
4081
4177
  padding: 10px;
4082
4178
  display: inline-block;
@@ -101,7 +101,7 @@ export class Picker {
101
101
  props.maxItems = 1;
102
102
  }
103
103
  return [
104
- h("limel-chip-set", Object.assign({ type: "input", label: this.label, leadingIcon: this.leadingIcon, value: this.chips, disabled: this.disabled, delimiter: this.renderDelimiter(), readonly: this.readonly, required: this.required, searchLabel: this.searchLabel, onInput: this.handleTextInput, onKeyDown: this.handleInputKeyDown, onChange: this.handleChange, onInteract: this.handleInteract, onStartEdit: this.handleInputFieldFocus, onStopEdit: this.handleStopEditAndBlur, emptyInputOnBlur: false, clearAllButton: this.multiple }, props)),
104
+ h("limel-chip-set", Object.assign({ type: "input", label: this.label, helperText: this.helperText, leadingIcon: this.leadingIcon, value: this.chips, disabled: this.disabled, delimiter: this.renderDelimiter(), readonly: this.readonly, required: this.required, searchLabel: this.searchLabel, onInput: this.handleTextInput, onKeyDown: this.handleInputKeyDown, onChange: this.handleChange, onInteract: this.handleInteract, onStartEdit: this.handleInputFieldFocus, onStopEdit: this.handleStopEditAndBlur, emptyInputOnBlur: false, clearAllButton: this.multiple }, props)),
105
105
  this.renderDropdown(),
106
106
  ];
107
107
  }
@@ -499,6 +499,23 @@ export class Picker {
499
499
  "attribute": "search-label",
500
500
  "reflect": false
501
501
  },
502
+ "helperText": {
503
+ "type": "string",
504
+ "mutable": false,
505
+ "complexType": {
506
+ "original": "string",
507
+ "resolved": "string",
508
+ "references": {}
509
+ },
510
+ "required": false,
511
+ "optional": false,
512
+ "docs": {
513
+ "tags": [],
514
+ "text": "Optional helper text to display below the input field when it has focus"
515
+ },
516
+ "attribute": "helper-text",
517
+ "reflect": true
518
+ },
502
519
  "leadingIcon": {
503
520
  "type": "string",
504
521
  "mutable": false,
@@ -18,7 +18,15 @@ const CheckboxTemplate = (props) => {
18
18
  'mdc-checkbox--invalid': props.invalid,
19
19
  'mdc-checkbox--disabled': props.disabled,
20
20
  'mdc-checkbox--required': props.required,
21
- }, htmlFor: props.id }, props.label)));
21
+ }, htmlFor: props.id }, props.label),
22
+ h(HelperText, { text: props.helperText })));
23
+ };
24
+ const HelperText = (props) => {
25
+ if (typeof props.text !== 'string') {
26
+ return;
27
+ }
28
+ return (h("div", { class: "limel-checkbox-helper-line" },
29
+ h("p", { class: "limel-checkbox-helper-text", "aria-hidden": "true" }, props.text.trim())));
22
30
  };
23
31
 
24
32
  export { CheckboxTemplate as C };