@limetech/lime-elements 38.19.6 → 38.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/cjs/lime-elements.cjs.js +1 -1
  3. package/dist/cjs/{limel-breadcrumbs_8.cjs.entry.js → limel-breadcrumbs_7.cjs.entry.js} +3 -37
  4. package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js.map +1 -0
  5. package/dist/cjs/limel-card.cjs.entry.js.map +1 -1
  6. package/dist/cjs/limel-checkbox.cjs.entry.js +1 -1
  7. package/dist/cjs/limel-checkbox.cjs.entry.js.map +1 -1
  8. package/dist/cjs/limel-chip_2.cjs.entry.js.map +1 -1
  9. package/dist/cjs/limel-dynamic-label_3.cjs.entry.js +125 -0
  10. package/dist/cjs/limel-dynamic-label_3.cjs.entry.js.map +1 -0
  11. package/dist/cjs/limel-grid.cjs.entry.js +3 -0
  12. package/dist/cjs/limel-grid.cjs.entry.js.map +1 -1
  13. package/dist/cjs/limel-slider.cjs.entry.js +24 -7
  14. package/dist/cjs/limel-slider.cjs.entry.js.map +1 -1
  15. package/dist/cjs/limel-switch.cjs.entry.js.map +1 -1
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/collection/components/card/card.js +0 -1
  18. package/dist/collection/components/card/card.js.map +1 -1
  19. package/dist/collection/components/checkbox/checkbox.css +0 -1
  20. package/dist/collection/components/checkbox/checkbox.js +1 -4
  21. package/dist/collection/components/checkbox/checkbox.js.map +1 -1
  22. package/dist/collection/components/chip/chip.js +1 -4
  23. package/dist/collection/components/chip/chip.js.map +1 -1
  24. package/dist/collection/components/chip-set/chip.types.js.map +1 -1
  25. package/dist/collection/components/dynamic-label/dynamic-label.js +0 -1
  26. package/dist/collection/components/dynamic-label/dynamic-label.js.map +1 -1
  27. package/dist/collection/components/dynamic-label/label.types.js.map +1 -1
  28. package/dist/collection/components/grid/grid.js +7 -4
  29. package/dist/collection/components/grid/grid.js.map +1 -1
  30. package/dist/collection/components/list/list.css +0 -2
  31. package/dist/collection/components/menu-list/menu-list.css +0 -2
  32. package/dist/collection/components/slider/slider.css +12 -112
  33. package/dist/collection/components/slider/slider.js +59 -6
  34. package/dist/collection/components/slider/slider.js.map +1 -1
  35. package/dist/collection/components/switch/switch.js +1 -4
  36. package/dist/collection/components/switch/switch.js.map +1 -1
  37. package/dist/esm/lime-elements.js +1 -1
  38. package/dist/esm/{limel-breadcrumbs_8.entry.js → limel-breadcrumbs_7.entry.js} +4 -37
  39. package/dist/esm/limel-breadcrumbs_7.entry.js.map +1 -0
  40. package/dist/esm/limel-card.entry.js.map +1 -1
  41. package/dist/esm/limel-checkbox.entry.js +1 -1
  42. package/dist/esm/limel-checkbox.entry.js.map +1 -1
  43. package/dist/esm/limel-chip_2.entry.js.map +1 -1
  44. package/dist/esm/limel-dynamic-label_3.entry.js +119 -0
  45. package/dist/esm/limel-dynamic-label_3.entry.js.map +1 -0
  46. package/dist/esm/limel-grid.entry.js +3 -0
  47. package/dist/esm/limel-grid.entry.js.map +1 -1
  48. package/dist/esm/limel-slider.entry.js +24 -7
  49. package/dist/esm/limel-slider.entry.js.map +1 -1
  50. package/dist/esm/limel-switch.entry.js.map +1 -1
  51. package/dist/esm/loader.js +1 -1
  52. package/dist/lime-elements/lime-elements.esm.js +1 -1
  53. package/dist/lime-elements/lime-elements.esm.js.map +1 -1
  54. package/dist/lime-elements/p-0d247b83.entry.js +2 -0
  55. package/dist/lime-elements/p-0d247b83.entry.js.map +1 -0
  56. package/dist/lime-elements/p-27645eef.entry.js.map +1 -1
  57. package/dist/lime-elements/p-6c08122b.entry.js.map +1 -1
  58. package/dist/lime-elements/p-6fbb2a69.entry.js.map +1 -1
  59. package/dist/lime-elements/p-877f91b1.entry.js +2 -0
  60. package/dist/lime-elements/p-877f91b1.entry.js.map +1 -0
  61. package/dist/lime-elements/p-aa51b1af.entry.js +90 -0
  62. package/dist/lime-elements/p-aa51b1af.entry.js.map +1 -0
  63. package/dist/lime-elements/p-f0da36cf.entry.js +266 -0
  64. package/dist/lime-elements/p-f0da36cf.entry.js.map +1 -0
  65. package/dist/lime-elements/p-f8fc7d89.entry.js +134 -0
  66. package/dist/lime-elements/{p-4044f10d.entry.js.map → p-f8fc7d89.entry.js.map} +1 -1
  67. package/dist/types/components/card/card.d.ts +0 -1
  68. package/dist/types/components/checkbox/checkbox.d.ts +0 -1
  69. package/dist/types/components/chip/chip.d.ts +0 -1
  70. package/dist/types/components/chip-set/chip.types.d.ts +1 -2
  71. package/dist/types/components/dynamic-label/dynamic-label.d.ts +0 -1
  72. package/dist/types/components/dynamic-label/label.types.d.ts +4 -1
  73. package/dist/types/components/grid/grid.d.ts +5 -4
  74. package/dist/types/components/slider/slider.d.ts +13 -0
  75. package/dist/types/components/switch/switch.d.ts +0 -1
  76. package/dist/types/components.d.ts +32 -30
  77. package/package.json +1 -1
  78. package/dist/cjs/limel-breadcrumbs_8.cjs.entry.js.map +0 -1
  79. package/dist/cjs/limel-dynamic-label_2.cjs.entry.js +0 -91
  80. package/dist/cjs/limel-dynamic-label_2.cjs.entry.js.map +0 -1
  81. package/dist/esm/limel-breadcrumbs_8.entry.js.map +0 -1
  82. package/dist/esm/limel-dynamic-label_2.entry.js +0 -86
  83. package/dist/esm/limel-dynamic-label_2.entry.js.map +0 -1
  84. package/dist/lime-elements/p-0ffd5100.entry.js +0 -2
  85. package/dist/lime-elements/p-0ffd5100.entry.js.map +0 -1
  86. package/dist/lime-elements/p-2a70fa06.entry.js +0 -266
  87. package/dist/lime-elements/p-2a70fa06.entry.js.map +0 -1
  88. package/dist/lime-elements/p-4044f10d.entry.js +0 -134
  89. package/dist/lime-elements/p-550e1ea9.entry.js +0 -90
  90. package/dist/lime-elements/p-550e1ea9.entry.js.map +0 -1
  91. package/dist/lime-elements/p-69b6119b.entry.js +0 -2
  92. package/dist/lime-elements/p-69b6119b.entry.js.map +0 -1
@@ -1,91 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-174a078a.js');
6
- const getIconProps = require('./get-icon-props-65f39e40.js');
7
-
8
- const dynamicLabelCss = "*{box-sizing:border-box;min-width:0}:host(limel-dynamic-label){--limel-dynamic-label-min-height:1.75rem;display:flex;gap:0.5rem;align-items:flex-start;border-radius:0.5rem;min-width:0}limel-icon{--limel-icon-svg-margin:0.125rem;border-radius:0.25rem;flex-shrink:0;width:var(--limel-dynamic-label-min-height);color:rgb(var(--contrast-900))}label{flex-grow:1;font-size:0.8125rem;line-height:normal;color:var(--mdc-theme-on-surface);padding-top:0.375rem}";
9
-
10
- const DynamicLabel = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.value = undefined;
14
- this.defaultLabel = {};
15
- this.labels = [];
16
- }
17
- render() {
18
- var _a, _b;
19
- const label = this.labels.find((l) => l.value === this.value);
20
- return [
21
- this.renderIcon((_a = label === null || label === void 0 ? void 0 : label.icon) !== null && _a !== void 0 ? _a : this.defaultLabel.icon),
22
- this.renderLabel((_b = label === null || label === void 0 ? void 0 : label.text) !== null && _b !== void 0 ? _b : this.defaultLabel.text),
23
- ];
24
- }
25
- renderIcon(icon) {
26
- const iconName = getIconProps.getIconName(icon);
27
- if (!iconName) {
28
- return;
29
- }
30
- let iconColor;
31
- let iconBackgroundColor;
32
- if (typeof icon === 'object') {
33
- iconColor = icon.color;
34
- iconBackgroundColor = icon.backgroundColor;
35
- }
36
- const iconProps = {
37
- role: 'presentation',
38
- name: iconName,
39
- style: {
40
- color: iconColor,
41
- 'background-color': iconBackgroundColor,
42
- },
43
- };
44
- return index.h("limel-icon", Object.assign({}, iconProps));
45
- }
46
- renderLabel(label = '') {
47
- return index.h("label", null, label);
48
- }
49
- };
50
- DynamicLabel.style = dynamicLabelCss;
51
-
52
- const helperLineCss = ":host(limel-helper-line){transition:opacity 0.2s ease;box-sizing:border-box;display:grid;min-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:0.6875rem;line-height:normal;color:rgb(var(--contrast-1200))}div{display:flex;justify-content:space-between;gap:0.75rem;overflow:hidden;padding:0 1rem}:host(limel-helper-line.invalid){--limel-h-l-grid-template-rows-transition-speed:0.46s;--limel-h-l-grid-template-rows:1fr}:host(limel-helper-line.invalid) .helper-text{color:var(--mdc-theme-error)}.counter{flex-shrink:0;margin-left:auto}.helper-text,.counter{padding-top:0.125rem}:host(limel-helper-line){transition:grid-template-rows var(--limel-h-l-grid-template-rows-transition-speed, 0.46s) cubic-bezier(1, 0.09, 0, 0.89);grid-template-rows:var(--limel-h-l-grid-template-rows, 1fr)}:host(limel-helper-line.hide){--limel-h-l-grid-template-rows-transition-speed:0.3s;--limel-h-l-grid-template-rows:0fr}";
53
-
54
- const HelperLine = class {
55
- constructor(hostRef) {
56
- index.registerInstance(this, hostRef);
57
- this.hasContent = () => {
58
- return !!(this.maxLength > 0 ||
59
- (this.helperText && this.helperText.length > 0));
60
- };
61
- this.renderHelperText = () => {
62
- if (!this.helperText) {
63
- return;
64
- }
65
- return (index.h("span", { class: "helper-text", id: this.helperTextId }, this.helperText));
66
- };
67
- this.renderCharacterCounter = () => {
68
- const counter = `${this.length} / ${this.maxLength}`;
69
- if (!this.maxLength) {
70
- return;
71
- }
72
- return index.h("span", { class: "counter" }, counter);
73
- };
74
- this.helperText = undefined;
75
- this.length = undefined;
76
- this.maxLength = undefined;
77
- this.invalid = false;
78
- this.helperTextId = undefined;
79
- }
80
- render() {
81
- return (index.h(index.Host, { tabIndex: -1, class: {
82
- invalid: this.invalid,
83
- }, style: this.hasContent() ? {} : { display: 'none' }, "aria-hidden": !this.hasContent() }, index.h("div", null, this.renderHelperText(), this.renderCharacterCounter())));
84
- }
85
- };
86
- HelperLine.style = helperLineCss;
87
-
88
- exports.limel_dynamic_label = DynamicLabel;
89
- exports.limel_helper_line = HelperLine;
90
-
91
- //# sourceMappingURL=limel-dynamic-label_2.cjs.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"limel-dynamic-label.limel-helper-line.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,eAAe,GAAG,qcAAqc;;MC2Bhd,YAAY;;;;wBAgBuB,EAAE;kBAQrB,EAAE;;EAEpB,MAAM;;IACT,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC;IAE9D,OAAO;MACH,IAAI,CAAC,UAAU,CAAC,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,mCAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;MACtD,IAAI,CAAC,WAAW,CAAC,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,mCAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;KAC1D,CAAC;GACL;EAEO,UAAU,CAAC,IAAoB;IACnC,MAAM,QAAQ,GAAGA,wBAAW,CAAC,IAAI,CAAC,CAAC;IACnC,IAAI,CAAC,QAAQ,EAAE;MACX,OAAO;KACV;IAED,IAAI,SAA6B,CAAC;IAClC,IAAI,mBAAuC,CAAC;IAE5C,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;MAC1B,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC;MACvB,mBAAmB,GAAG,IAAI,CAAC,eAAe,CAAC;KAC9C;IAED,MAAM,SAAS,GAAG;MACd,IAAI,EAAE,cAAc;MACpB,IAAI,EAAE,QAAQ;MACd,KAAK,EAAE;QACH,KAAK,EAAE,SAAS;QAChB,kBAAkB,EAAE,mBAAmB;OAC1C;KACJ,CAAC;IAEF,OAAOC,wCAAgB,SAAS,EAAI,CAAC;GACxC;EAEO,WAAW,CAAC,QAAgB,EAAE;IAClC,OAAOA,uBAAQ,KAAK,CAAS,CAAC;GACjC;;;;AC1FL,MAAM,aAAa,GAAG,y6BAAy6B;;MC2Bl7B,UAAU;;;IAqDX,eAAU,GAAG;MACjB,OAAO,CAAC,EACJ,IAAI,CAAC,SAAS,GAAG,CAAC;SACjB,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAClD,CAAC;KACL,CAAC;IAEM,qBAAgB,GAAG;MACvB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;QAClB,OAAO;OACV;MAED,QACIA,kBAAM,KAAK,EAAC,aAAa,EAAC,EAAE,EAAE,IAAI,CAAC,YAAY,IAC1C,IAAI,CAAC,UAAU,CACb,EACT;KACL,CAAC;IAEM,2BAAsB,GAAG;MAC7B,MAAM,OAAO,GAAG,GAAG,IAAI,CAAC,MAAM,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;MAErD,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;QACjB,OAAO;OACV;MAED,OAAOA,kBAAM,KAAK,EAAC,SAAS,IAAE,OAAO,CAAQ,CAAC;KACjD,CAAC;;;;mBArDyB,KAAK;;;EAQzB,MAAM;IACT,QACIA,QAACC,UAAI,IACD,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE;QACH,OAAO,EAAE,IAAI,CAAC,OAAO;OACxB,EACD,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,iBACtC,CAAC,IAAI,CAAC,UAAU,EAAE,IAE/BD,qBACK,IAAI,CAAC,gBAAgB,EAAE,EACvB,IAAI,CAAC,sBAAsB,EAAE,CAC5B,CACH,EACT;GACL;;;;;;;","names":["getIconName","h","Host"],"sources":["./src/components/dynamic-label/dynamic-label.scss?tag=limel-dynamic-label&encapsulation=shadow","./src/components/dynamic-label/dynamic-label.tsx","./src/components/helper-line/helper-line.scss?tag=limel-helper-line&encapsulation=shadow","./src/components/helper-line/helper-line.tsx"],"sourcesContent":["* {\n box-sizing: border-box;\n min-width: 0;\n}\n\n:host(limel-dynamic-label) {\n --limel-dynamic-label-min-height: 1.75rem;\n display: flex;\n gap: 0.5rem;\n align-items: flex-start;\n border-radius: 0.5rem;\n min-width: 0;\n}\n\nlimel-icon {\n --limel-icon-svg-margin: 0.125rem;\n border-radius: 0.25rem;\n flex-shrink: 0;\n width: var(--limel-dynamic-label-min-height);\n color: rgb(\n var(--contrast-900)\n ); // The default `false` color. Will be overwritten by `Icon`\n}\n\nlabel {\n flex-grow: 1;\n font-size: 0.8125rem; // `13px`, Like Checkbox & Switch\n line-height: normal;\n color: var(--mdc-theme-on-surface);\n padding-top: 0.375rem;\n}\n","import { getIconName } from '../icon/get-icon-props';\nimport { Component, Prop, h } from '@stencil/core';\nimport { Label, LabelValue } from './label.types';\nimport { Icon } from '../../interface';\n\n/**\n * This components displays a different label depending on the current given\n * value. A label can consist of a text and an optional icon. If no matching\n * label is found among the given `labels`, the `defaultLabel` will be displayed.\n *\n * One use case of the component is to enhance the visualization of a `boolean`\n * field like a checkbox or switch in a `readonly` state.\n *\n * The reason we offer this component is that the default styling\n * of the Checkbox or Toggle switch in the `readonly` state may not always\n * provide the best way of _visualizing information_, potentially leading to\n * confusion and negatively affecting the end-users' experience.\n *\n * @exampleComponent limel-example-dynamic-label\n * @exampleComponent limel-example-dynamic-label-readonly-boolean\n * @beta\n */\n@Component({\n tag: 'limel-dynamic-label',\n shadow: true,\n styleUrl: 'dynamic-label.scss',\n})\nexport class DynamicLabel {\n /**\n * The current value of the component which is used to match with the given\n * `labels` to determine what label to display.\n *\n * If not matching label is found, the `defaultLabel` is displayed.\n */\n @Prop()\n public value: LabelValue;\n\n /**\n * The label to display when no matching value is found in the `labels`\n * array. This is a fallback label that ensures there's always a label\n * displayed for the component.\n */\n @Prop({ reflect: true })\n public defaultLabel: Omit<Label, 'value'> = {};\n\n /**\n * A list of available labels. Each label has a corresponding value that\n * will be matched with the current `value` of the component to determine\n * what label to display.\n */\n @Prop()\n public labels: Label[] = [];\n\n public render() {\n const label = this.labels.find((l) => l.value === this.value);\n\n return [\n this.renderIcon(label?.icon ?? this.defaultLabel.icon),\n this.renderLabel(label?.text ?? this.defaultLabel.text),\n ];\n }\n\n private renderIcon(icon?: string | Icon) {\n const iconName = getIconName(icon);\n if (!iconName) {\n return;\n }\n\n let iconColor: string | undefined;\n let iconBackgroundColor: string | undefined;\n\n if (typeof icon === 'object') {\n iconColor = icon.color;\n iconBackgroundColor = icon.backgroundColor;\n }\n\n const iconProps = {\n role: 'presentation',\n name: iconName,\n style: {\n color: iconColor,\n 'background-color': iconBackgroundColor,\n },\n };\n\n return <limel-icon {...iconProps} />;\n }\n\n private renderLabel(label: string = '') {\n return <label>{label}</label>;\n }\n}\n",":host(limel-helper-line) {\n transition: opacity 0.2s ease;\n\n box-sizing: border-box;\n display: grid;\n\n min-width: 0; // prevents overflowing, if component is placed in flex containers\n\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-size: 0.6875rem;\n line-height: normal;\n\n color: rgb(var(--contrast-1200));\n}\n\ndiv {\n display: flex;\n justify-content: space-between;\n gap: 0.75rem;\n overflow: hidden;\n padding: 0 1rem;\n}\n\n:host(limel-helper-line.invalid) {\n --limel-h-l-grid-template-rows-transition-speed: 0.46s;\n --limel-h-l-grid-template-rows: 1fr;\n\n .helper-text {\n color: var(--mdc-theme-error);\n }\n}\n\n.counter {\n flex-shrink: 0;\n margin-left: auto;\n}\n\n.helper-text,\n.counter {\n padding-top: 0.125rem;\n}\n\n// This animates height of the helper line, from `0` to `auto`.\n// To get this animation effect, the consumer component should\n// add `hide` classed accordingly.\n:host(limel-helper-line) {\n transition: grid-template-rows\n var(--limel-h-l-grid-template-rows-transition-speed, 0.46s)\n cubic-bezier(1, 0.09, 0, 0.89);\n grid-template-rows: var(--limel-h-l-grid-template-rows, 1fr);\n}\n\n:host(limel-helper-line.hide) {\n --limel-h-l-grid-template-rows-transition-speed: 0.3s;\n --limel-h-l-grid-template-rows: 0fr;\n}\n// End: animating height\n","import { Component, Host, Prop, h } from '@stencil/core';\n\n/**\n * This is an internal and private component that many input fields\n * use to display a helper text, along with a character counter below the\n * input field.\n *\n * We created this to keep the visual styles the same everywhere\n * and to avoid importing styles separately.\n *\n * Also this enables us to open the helper line in limel-portal,\n * more easily without having to send the styles to the portal.\n *\n * @exampleComponent limel-example-helper-line\n * @exampleComponent limel-example-helper-line-invalid\n * @exampleComponent limel-example-helper-line-long-text\n * @exampleComponent limel-example-helper-line-long-text-no-counter\n * @exampleComponent limel-example-helper-line-character-counter\n * @exampleComponent limel-example-helper-line-empty\n * @exampleComponent limel-example-helper-line-animation\n * @private\n */\n@Component({\n tag: 'limel-helper-line',\n shadow: true,\n styleUrl: 'helper-line.scss',\n})\nexport class HelperLine {\n /**\n * The helper text that is displayed on the left side.\n */\n @Prop({ reflect: true })\n public helperText?: string;\n\n /**\n * Length of the current input value, coming from the parent component.\n * Used in the character counter section on the right side.\n */\n @Prop({ reflect: true })\n public length?: number;\n\n /**\n * Maximum length of the characters, defined on the parent component.\n * Used in the character counter section on the right side.\n */\n @Prop({ reflect: true })\n public maxLength?: number;\n\n /**\n * Turns `true`, when the parent component is invalid.\n * For example, when the parent component is `required` but is left empty.\n * Or when the input format is invalid.\n */\n @Prop({ reflect: true })\n public invalid?: boolean = false;\n\n /**\n * Used by `aria-controls` and `aria-describedby` in the parent component.\n */\n @Prop({ reflect: true })\n public helperTextId?: string;\n\n public render() {\n return (\n <Host\n tabIndex={-1}\n class={{\n invalid: this.invalid,\n }}\n style={this.hasContent() ? {} : { display: 'none' }}\n aria-hidden={!this.hasContent()}\n >\n <div>\n {this.renderHelperText()}\n {this.renderCharacterCounter()}\n </div>\n </Host>\n );\n }\n\n private hasContent = () => {\n return !!(\n this.maxLength > 0 ||\n (this.helperText && this.helperText.length > 0)\n );\n };\n\n private renderHelperText = () => {\n if (!this.helperText) {\n return;\n }\n\n return (\n <span class=\"helper-text\" id={this.helperTextId}>\n {this.helperText}\n </span>\n );\n };\n\n private renderCharacterCounter = () => {\n const counter = `${this.length} / ${this.maxLength}`;\n\n if (!this.maxLength) {\n return;\n }\n\n return <span class=\"counter\">{counter}</span>;\n };\n}\n"],"version":3}