@mieweb/ui 0.11.0-dev.21 → 0.11.0-dev.23

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 (48) hide show
  1. package/dist/{chunk-N6XBE47W.js → chunk-3E7C5N2G.js} +3 -3
  2. package/dist/{chunk-N6XBE47W.js.map → chunk-3E7C5N2G.js.map} +1 -1
  3. package/dist/{chunk-5K7PRPSV.cjs → chunk-4W3QJWG2.cjs} +45 -3
  4. package/dist/chunk-4W3QJWG2.cjs.map +1 -0
  5. package/dist/chunk-5EOW6AP3.js +1163 -0
  6. package/dist/chunk-5EOW6AP3.js.map +1 -0
  7. package/dist/{chunk-LAN5VWGC.js → chunk-67REGSKI.js} +4 -4
  8. package/dist/{chunk-LAN5VWGC.js.map → chunk-67REGSKI.js.map} +1 -1
  9. package/dist/chunk-7BA7ENN5.cjs +1188 -0
  10. package/dist/chunk-7BA7ENN5.cjs.map +1 -0
  11. package/dist/{chunk-BSDBI6H7.cjs → chunk-BUN6RUJ5.cjs} +100 -8
  12. package/dist/chunk-BUN6RUJ5.cjs.map +1 -0
  13. package/dist/{chunk-H3YO5GBM.js → chunk-CPG7SDON.js} +100 -8
  14. package/dist/chunk-CPG7SDON.js.map +1 -0
  15. package/dist/{chunk-WSMBIXPU.cjs → chunk-ESXTC5GW.cjs} +7 -7
  16. package/dist/{chunk-WSMBIXPU.cjs.map → chunk-ESXTC5GW.cjs.map} +1 -1
  17. package/dist/{chunk-EBQG3NGT.js → chunk-V43ZWRBT.js} +45 -3
  18. package/dist/chunk-V43ZWRBT.js.map +1 -0
  19. package/dist/{chunk-5VA2HJ5B.cjs → chunk-ZWKC4JML.cjs} +9 -9
  20. package/dist/{chunk-5VA2HJ5B.cjs.map → chunk-ZWKC4JML.cjs.map} +1 -1
  21. package/dist/components/EmailEditor/index.cjs +13 -12
  22. package/dist/components/EmailEditor/index.js +4 -3
  23. package/dist/components/RichTextEditor/index.cjs +5 -4
  24. package/dist/components/RichTextEditor/index.d.cts +89 -0
  25. package/dist/components/RichTextEditor/index.d.ts +89 -0
  26. package/dist/components/RichTextEditor/index.js +2 -1
  27. package/dist/components/Textarea/index.cjs +3 -3
  28. package/dist/components/Textarea/index.d.cts +7 -1
  29. package/dist/components/Textarea/index.d.ts +7 -1
  30. package/dist/components/Textarea/index.js +1 -1
  31. package/dist/esheet.cjs +5 -5
  32. package/dist/esheet.js +2 -2
  33. package/dist/index.cjs +67 -63
  34. package/dist/index.d.cts +105 -2
  35. package/dist/index.d.ts +105 -2
  36. package/dist/index.js +7 -7
  37. package/dist/styles.css +1 -1
  38. package/dist/tailwind-preset.cjs +4 -4
  39. package/dist/tailwind-preset.js +1 -1
  40. package/package.json +1 -1
  41. package/dist/chunk-5K7PRPSV.cjs.map +0 -1
  42. package/dist/chunk-ATRW3J5Z.cjs +0 -567
  43. package/dist/chunk-ATRW3J5Z.cjs.map +0 -1
  44. package/dist/chunk-BSDBI6H7.cjs.map +0 -1
  45. package/dist/chunk-EBQG3NGT.js.map +0 -1
  46. package/dist/chunk-H3YO5GBM.js.map +0 -1
  47. package/dist/chunk-LX323IMT.js +0 -543
  48. package/dist/chunk-LX323IMT.js.map +0 -1
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunkWSMBIXPU_cjs = require('../../chunk-WSMBIXPU.cjs');
3
+ var chunkESXTC5GW_cjs = require('../../chunk-ESXTC5GW.cjs');
4
4
  require('../../chunk-BXRQ6HEP.cjs');
5
5
  require('../../chunk-S7AMZ4RD.cjs');
6
- require('../../chunk-ATRW3J5Z.cjs');
6
+ require('../../chunk-7BA7ENN5.cjs');
7
7
  require('../../chunk-YP5T6NZD.cjs');
8
8
  require('../../chunk-PLMXN23Q.cjs');
9
9
  require('../../chunk-ZNUMOJOI.cjs');
10
10
  require('../../chunk-PINIBEIU.cjs');
11
11
  require('../../chunk-7WJ6MBF5.cjs');
12
12
  require('../../chunk-C7RVKV25.cjs');
13
- require('../../chunk-BSDBI6H7.cjs');
13
+ require('../../chunk-BUN6RUJ5.cjs');
14
14
  require('../../chunk-UPWIJC6I.cjs');
15
15
  require('../../chunk-I44YNYI6.cjs');
16
16
  require('../../chunk-Z5S5JEJD.cjs');
@@ -18,6 +18,7 @@ require('../../chunk-CPDNX3LS.cjs');
18
18
  require('../../chunk-FHY3K6PL.cjs');
19
19
  require('../../chunk-FSGEDDF2.cjs');
20
20
  require('../../chunk-AOHJILLU.cjs');
21
+ require('../../chunk-L7L5S2HO.cjs');
21
22
  require('../../chunk-Z3WMDVMR.cjs');
22
23
  require('../../chunk-EACNRR3C.cjs');
23
24
  require('../../chunk-ANMX7YDL.cjs');
@@ -30,39 +31,39 @@ require('../../chunk-EUAMEVVI.cjs');
30
31
 
31
32
  Object.defineProperty(exports, "EMAIL_BLOCK_TYPES", {
32
33
  enumerable: true,
33
- get: function () { return chunkWSMBIXPU_cjs.EMAIL_BLOCK_TYPES; }
34
+ get: function () { return chunkESXTC5GW_cjs.EMAIL_BLOCK_TYPES; }
34
35
  });
35
36
  Object.defineProperty(exports, "EmailEditor", {
36
37
  enumerable: true,
37
- get: function () { return chunkWSMBIXPU_cjs.EmailEditor; }
38
+ get: function () { return chunkESXTC5GW_cjs.EmailEditor; }
38
39
  });
39
40
  Object.defineProperty(exports, "createDefaultDesignSettings", {
40
41
  enumerable: true,
41
- get: function () { return chunkWSMBIXPU_cjs.createDefaultDesignSettings; }
42
+ get: function () { return chunkESXTC5GW_cjs.createDefaultDesignSettings; }
42
43
  });
43
44
  Object.defineProperty(exports, "createEmailBlock", {
44
45
  enumerable: true,
45
- get: function () { return chunkWSMBIXPU_cjs.createEmailBlock; }
46
+ get: function () { return chunkESXTC5GW_cjs.createEmailBlock; }
46
47
  });
47
48
  Object.defineProperty(exports, "createEmailHtmlSanitizer", {
48
49
  enumerable: true,
49
- get: function () { return chunkWSMBIXPU_cjs.createEmailHtmlSanitizer; }
50
+ get: function () { return chunkESXTC5GW_cjs.createEmailHtmlSanitizer; }
50
51
  });
51
52
  Object.defineProperty(exports, "createEmptyEmailContentTree", {
52
53
  enumerable: true,
53
- get: function () { return chunkWSMBIXPU_cjs.createEmptyEmailContentTree; }
54
+ get: function () { return chunkESXTC5GW_cjs.createEmptyEmailContentTree; }
54
55
  });
55
56
  Object.defineProperty(exports, "defaultEmailEditorLabels", {
56
57
  enumerable: true,
57
- get: function () { return chunkWSMBIXPU_cjs.defaultEmailEditorLabels; }
58
+ get: function () { return chunkESXTC5GW_cjs.defaultEmailEditorLabels; }
58
59
  });
59
60
  Object.defineProperty(exports, "generateEmailBlockId", {
60
61
  enumerable: true,
61
- get: function () { return chunkWSMBIXPU_cjs.generateEmailBlockId; }
62
+ get: function () { return chunkESXTC5GW_cjs.generateEmailBlockId; }
62
63
  });
63
64
  Object.defineProperty(exports, "renderEmailMjml", {
64
65
  enumerable: true,
65
- get: function () { return chunkWSMBIXPU_cjs.renderEmailMjml; }
66
+ get: function () { return chunkESXTC5GW_cjs.renderEmailMjml; }
66
67
  });
67
68
  //# sourceMappingURL=index.cjs.map
68
69
  //# sourceMappingURL=index.cjs.map
@@ -1,14 +1,14 @@
1
- export { EMAIL_BLOCK_TYPES, EmailEditor, createDefaultDesignSettings, createEmailBlock, createEmailHtmlSanitizer, createEmptyEmailContentTree, defaultEmailEditorLabels, generateEmailBlockId, renderEmailMjml } from '../../chunk-LAN5VWGC.js';
1
+ export { EMAIL_BLOCK_TYPES, EmailEditor, createDefaultDesignSettings, createEmailBlock, createEmailHtmlSanitizer, createEmptyEmailContentTree, defaultEmailEditorLabels, generateEmailBlockId, renderEmailMjml } from '../../chunk-67REGSKI.js';
2
2
  import '../../chunk-XBAAHOCP.js';
3
3
  import '../../chunk-ME7EVT6F.js';
4
- import '../../chunk-LX323IMT.js';
4
+ import '../../chunk-5EOW6AP3.js';
5
5
  import '../../chunk-OQWZYKJM.js';
6
6
  import '../../chunk-AQ564XO7.js';
7
7
  import '../../chunk-AMYFRY7K.js';
8
8
  import '../../chunk-OYUIEJPN.js';
9
9
  import '../../chunk-CVNPNZMX.js';
10
10
  import '../../chunk-ERLPVXOV.js';
11
- import '../../chunk-H3YO5GBM.js';
11
+ import '../../chunk-CPG7SDON.js';
12
12
  import '../../chunk-VCI2Y7ST.js';
13
13
  import '../../chunk-6NZXWKUE.js';
14
14
  import '../../chunk-3IMM2PM4.js';
@@ -16,6 +16,7 @@ import '../../chunk-HNXLLDPN.js';
16
16
  import '../../chunk-T4ME7QCT.js';
17
17
  import '../../chunk-62ZOA6PX.js';
18
18
  import '../../chunk-WSNMQQ4P.js';
19
+ import '../../chunk-BKSPDTX4.js';
19
20
  import '../../chunk-YVKBXNPK.js';
20
21
  import '../../chunk-N5JDL4VE.js';
21
22
  import '../../chunk-WFBUBT54.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkATRW3J5Z_cjs = require('../../chunk-ATRW3J5Z.cjs');
3
+ var chunk7BA7ENN5_cjs = require('../../chunk-7BA7ENN5.cjs');
4
4
  require('../../chunk-YP5T6NZD.cjs');
5
5
  require('../../chunk-ZNUMOJOI.cjs');
6
6
  require('../../chunk-PINIBEIU.cjs');
@@ -10,6 +10,7 @@ require('../../chunk-Z5S5JEJD.cjs');
10
10
  require('../../chunk-FHY3K6PL.cjs');
11
11
  require('../../chunk-FSGEDDF2.cjs');
12
12
  require('../../chunk-AOHJILLU.cjs');
13
+ require('../../chunk-L7L5S2HO.cjs');
13
14
  require('../../chunk-Z3WMDVMR.cjs');
14
15
  require('../../chunk-EACNRR3C.cjs');
15
16
  require('../../chunk-ANMX7YDL.cjs');
@@ -22,15 +23,15 @@ require('../../chunk-EUAMEVVI.cjs');
22
23
 
23
24
  Object.defineProperty(exports, "RichTextEditor", {
24
25
  enumerable: true,
25
- get: function () { return chunkATRW3J5Z_cjs.RichTextEditor; }
26
+ get: function () { return chunk7BA7ENN5_cjs.RichTextEditor; }
26
27
  });
27
28
  Object.defineProperty(exports, "convertAngleBracketsToMustache", {
28
29
  enumerable: true,
29
- get: function () { return chunkATRW3J5Z_cjs.convertAngleBracketsToMustache; }
30
+ get: function () { return chunk7BA7ENN5_cjs.convertAngleBracketsToMustache; }
30
31
  });
31
32
  Object.defineProperty(exports, "processDictation", {
32
33
  enumerable: true,
33
- get: function () { return chunkATRW3J5Z_cjs.processDictation; }
34
+ get: function () { return chunk7BA7ENN5_cjs.processDictation; }
34
35
  });
35
36
  Object.defineProperty(exports, "isHtmlEmpty", {
36
37
  enumerable: true,
@@ -1,5 +1,71 @@
1
1
  import * as React from 'react';
2
2
 
3
+ interface Macro {
4
+ /** Stable identifier. */
5
+ id: string;
6
+ /** Human-readable name shown in the list. */
7
+ label: string;
8
+ /** Plain text inserted into the editor. `\n` is preserved. */
9
+ content: string;
10
+ /** Optional shortcut identifier shown as a badge (e.g. `.b`). */
11
+ shortcut?: string;
12
+ /** Extra search terms that are not displayed. */
13
+ keywords?: string[];
14
+ }
15
+ interface MacroGroup {
16
+ /** Stable identifier. */
17
+ id: string;
18
+ /** Group heading (e.g. "Default library"). */
19
+ label: string;
20
+ /**
21
+ * `previous` renders the group visually distinct from library macros
22
+ * (history icon, muted header) so prior values are never mistaken for
23
+ * predefined content. Defaults to `library`.
24
+ */
25
+ kind?: 'library' | 'previous';
26
+ /** Macros belonging to the group. */
27
+ macros: Macro[];
28
+ }
29
+ interface MacroLibraryProps {
30
+ /** Grouped macros supplied by the application. */
31
+ groups: MacroGroup[];
32
+ /** Called with the chosen macro. The caller performs the insertion. */
33
+ onSelect: (macro: Macro) => void;
34
+ /** Id for the panel root (e.g. the target of a toggle's aria-controls). */
35
+ id?: string;
36
+ /**
37
+ * Name of the insertion target shown in the header (e.g. the editor's
38
+ * label), rendered as "Insert into <target>".
39
+ */
40
+ targetLabel?: string;
41
+ /** When provided, renders a close button and enables Escape-to-close. */
42
+ onClose?: () => void;
43
+ /** When provided, renders a "Save as macro" action in the footer. */
44
+ onCreateMacro?: () => void;
45
+ /** Autofocus the search input on mount. Defaults to false. */
46
+ autoFocusSearch?: boolean;
47
+ /** Additional class for the panel root. */
48
+ className?: string;
49
+ /** Overridable labels for i18n. */
50
+ labels?: Partial<typeof DEFAULT_LABELS>;
51
+ }
52
+ declare const DEFAULT_LABELS: {
53
+ insertInto: string;
54
+ macros: string;
55
+ searchPlaceholder: string;
56
+ searchLabel: string;
57
+ close: string;
58
+ createMacro: string;
59
+ empty: string;
60
+ emptyHint: string;
61
+ noResults: string;
62
+ clearSearch: string;
63
+ showFullContent: string;
64
+ hideFullContent: string;
65
+ more: string;
66
+ less: string;
67
+ };
68
+
3
69
  interface RichTextVariable {
4
70
  /** Human-readable label shown in the variable menu. */
5
71
  label: string;
@@ -39,6 +105,29 @@ interface RichTextEditorProps {
39
105
  * DOM. Without it, pasted markup is inserted as the browser provides it.
40
106
  */
41
107
  sanitizeHtml?: (html: string) => string;
108
+ /**
109
+ * Grouped macros for the optional macro addon. When omitted the editor is
110
+ * unchanged. When provided, a "Macros" toolbar toggle docks a searchable
111
+ * macro panel inside the editor; selecting a macro inserts its content at
112
+ * the retained caret position. Typing a macro shortcut (e.g. `.b`)
113
+ * followed by a space expands it in place, panel open or not.
114
+ */
115
+ macros?: MacroGroup[];
116
+ /** Open the macro panel initially. Defaults to false. */
117
+ defaultMacrosOpen?: boolean;
118
+ /**
119
+ * Overridable labels for the macro addon (i18n). Panel labels are
120
+ * forwarded to the docked `MacroLibrary`; `macros` doubles as the toolbar
121
+ * toggle text, and `showMacros`/`hideMacros` set the toggle's title.
122
+ */
123
+ macroLabels?: MacroLibraryProps['labels'] & {
124
+ /** Toggle title while the panel is closed. Defaults to "Show macros". */
125
+ showMacros?: string;
126
+ /** Toggle title while the panel is open. Defaults to "Hide macros". */
127
+ hideMacros?: string;
128
+ };
129
+ /** Forwarded to the macro panel's "Save as macro" action. */
130
+ onCreateMacro?: () => void;
42
131
  /** Accessible label for the editable region. */
43
132
  'aria-label'?: string;
44
133
  }
@@ -1,5 +1,71 @@
1
1
  import * as React from 'react';
2
2
 
3
+ interface Macro {
4
+ /** Stable identifier. */
5
+ id: string;
6
+ /** Human-readable name shown in the list. */
7
+ label: string;
8
+ /** Plain text inserted into the editor. `\n` is preserved. */
9
+ content: string;
10
+ /** Optional shortcut identifier shown as a badge (e.g. `.b`). */
11
+ shortcut?: string;
12
+ /** Extra search terms that are not displayed. */
13
+ keywords?: string[];
14
+ }
15
+ interface MacroGroup {
16
+ /** Stable identifier. */
17
+ id: string;
18
+ /** Group heading (e.g. "Default library"). */
19
+ label: string;
20
+ /**
21
+ * `previous` renders the group visually distinct from library macros
22
+ * (history icon, muted header) so prior values are never mistaken for
23
+ * predefined content. Defaults to `library`.
24
+ */
25
+ kind?: 'library' | 'previous';
26
+ /** Macros belonging to the group. */
27
+ macros: Macro[];
28
+ }
29
+ interface MacroLibraryProps {
30
+ /** Grouped macros supplied by the application. */
31
+ groups: MacroGroup[];
32
+ /** Called with the chosen macro. The caller performs the insertion. */
33
+ onSelect: (macro: Macro) => void;
34
+ /** Id for the panel root (e.g. the target of a toggle's aria-controls). */
35
+ id?: string;
36
+ /**
37
+ * Name of the insertion target shown in the header (e.g. the editor's
38
+ * label), rendered as "Insert into <target>".
39
+ */
40
+ targetLabel?: string;
41
+ /** When provided, renders a close button and enables Escape-to-close. */
42
+ onClose?: () => void;
43
+ /** When provided, renders a "Save as macro" action in the footer. */
44
+ onCreateMacro?: () => void;
45
+ /** Autofocus the search input on mount. Defaults to false. */
46
+ autoFocusSearch?: boolean;
47
+ /** Additional class for the panel root. */
48
+ className?: string;
49
+ /** Overridable labels for i18n. */
50
+ labels?: Partial<typeof DEFAULT_LABELS>;
51
+ }
52
+ declare const DEFAULT_LABELS: {
53
+ insertInto: string;
54
+ macros: string;
55
+ searchPlaceholder: string;
56
+ searchLabel: string;
57
+ close: string;
58
+ createMacro: string;
59
+ empty: string;
60
+ emptyHint: string;
61
+ noResults: string;
62
+ clearSearch: string;
63
+ showFullContent: string;
64
+ hideFullContent: string;
65
+ more: string;
66
+ less: string;
67
+ };
68
+
3
69
  interface RichTextVariable {
4
70
  /** Human-readable label shown in the variable menu. */
5
71
  label: string;
@@ -39,6 +105,29 @@ interface RichTextEditorProps {
39
105
  * DOM. Without it, pasted markup is inserted as the browser provides it.
40
106
  */
41
107
  sanitizeHtml?: (html: string) => string;
108
+ /**
109
+ * Grouped macros for the optional macro addon. When omitted the editor is
110
+ * unchanged. When provided, a "Macros" toolbar toggle docks a searchable
111
+ * macro panel inside the editor; selecting a macro inserts its content at
112
+ * the retained caret position. Typing a macro shortcut (e.g. `.b`)
113
+ * followed by a space expands it in place, panel open or not.
114
+ */
115
+ macros?: MacroGroup[];
116
+ /** Open the macro panel initially. Defaults to false. */
117
+ defaultMacrosOpen?: boolean;
118
+ /**
119
+ * Overridable labels for the macro addon (i18n). Panel labels are
120
+ * forwarded to the docked `MacroLibrary`; `macros` doubles as the toolbar
121
+ * toggle text, and `showMacros`/`hideMacros` set the toggle's title.
122
+ */
123
+ macroLabels?: MacroLibraryProps['labels'] & {
124
+ /** Toggle title while the panel is closed. Defaults to "Show macros". */
125
+ showMacros?: string;
126
+ /** Toggle title while the panel is open. Defaults to "Hide macros". */
127
+ hideMacros?: string;
128
+ };
129
+ /** Forwarded to the macro panel's "Save as macro" action. */
130
+ onCreateMacro?: () => void;
42
131
  /** Accessible label for the editable region. */
43
132
  'aria-label'?: string;
44
133
  }
@@ -1,4 +1,4 @@
1
- export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from '../../chunk-LX323IMT.js';
1
+ export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from '../../chunk-5EOW6AP3.js';
2
2
  import '../../chunk-OQWZYKJM.js';
3
3
  import '../../chunk-AMYFRY7K.js';
4
4
  import '../../chunk-OYUIEJPN.js';
@@ -8,6 +8,7 @@ import '../../chunk-3IMM2PM4.js';
8
8
  import '../../chunk-T4ME7QCT.js';
9
9
  import '../../chunk-62ZOA6PX.js';
10
10
  import '../../chunk-WSNMQQ4P.js';
11
+ import '../../chunk-BKSPDTX4.js';
11
12
  import '../../chunk-YVKBXNPK.js';
12
13
  import '../../chunk-N5JDL4VE.js';
13
14
  import '../../chunk-WFBUBT54.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkBSDBI6H7_cjs = require('../../chunk-BSDBI6H7.cjs');
3
+ var chunkBUN6RUJ5_cjs = require('../../chunk-BUN6RUJ5.cjs');
4
4
  require('../../chunk-I44YNYI6.cjs');
5
5
  require('../../chunk-Z5S5JEJD.cjs');
6
6
  require('../../chunk-S5RVSXDV.cjs');
@@ -10,11 +10,11 @@ require('../../chunk-EUAMEVVI.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "Textarea", {
12
12
  enumerable: true,
13
- get: function () { return chunkBSDBI6H7_cjs.Textarea; }
13
+ get: function () { return chunkBUN6RUJ5_cjs.Textarea; }
14
14
  });
15
15
  Object.defineProperty(exports, "textareaVariants", {
16
16
  enumerable: true,
17
- get: function () { return chunkBSDBI6H7_cjs.textareaVariants; }
17
+ get: function () { return chunkBUN6RUJ5_cjs.textareaVariants; }
18
18
  });
19
19
  //# sourceMappingURL=index.cjs.map
20
20
  //# sourceMappingURL=index.cjs.map
@@ -9,6 +9,7 @@ declare const textareaVariants: (props?: ({
9
9
  hasError?: boolean | null | undefined;
10
10
  resize?: "none" | "both" | "horizontal" | "vertical" | null | undefined;
11
11
  labelVariant?: "stacked" | "floating" | null | undefined;
12
+ autoResize?: boolean | null | undefined;
12
13
  } & class_variance_authority_types.ClassProp) | undefined) => string;
13
14
  interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'>, Omit<VariantProps<typeof textareaVariants>, 'labelVariant'> {
14
15
  /** Label for the textarea */
@@ -32,7 +33,12 @@ interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaEl
32
33
  maxLength?: number;
33
34
  /** Show character count */
34
35
  showCount?: boolean;
35
- /** Auto-resize based on content */
36
+ /**
37
+ * Grow and shrink with content (default). The empty control matches a
38
+ * single-line `Input`'s height; `rows` sets a taller growth floor, and
39
+ * dragging the native resize handle sets a new floor the same way. Set
40
+ * `false` for a classic fixed-height textarea.
41
+ */
36
42
  autoResize?: boolean;
37
43
  /**
38
44
  * Color of the required asterisk.
@@ -9,6 +9,7 @@ declare const textareaVariants: (props?: ({
9
9
  hasError?: boolean | null | undefined;
10
10
  resize?: "none" | "both" | "horizontal" | "vertical" | null | undefined;
11
11
  labelVariant?: "stacked" | "floating" | null | undefined;
12
+ autoResize?: boolean | null | undefined;
12
13
  } & class_variance_authority_types.ClassProp) | undefined) => string;
13
14
  interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'>, Omit<VariantProps<typeof textareaVariants>, 'labelVariant'> {
14
15
  /** Label for the textarea */
@@ -32,7 +33,12 @@ interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaEl
32
33
  maxLength?: number;
33
34
  /** Show character count */
34
35
  showCount?: boolean;
35
- /** Auto-resize based on content */
36
+ /**
37
+ * Grow and shrink with content (default). The empty control matches a
38
+ * single-line `Input`'s height; `rows` sets a taller growth floor, and
39
+ * dragging the native resize handle sets a new floor the same way. Set
40
+ * `false` for a classic fixed-height textarea.
41
+ */
36
42
  autoResize?: boolean;
37
43
  /**
38
44
  * Color of the required asterisk.
@@ -1,4 +1,4 @@
1
- export { Textarea, textareaVariants } from '../../chunk-H3YO5GBM.js';
1
+ export { Textarea, textareaVariants } from '../../chunk-CPG7SDON.js';
2
2
  import '../../chunk-6NZXWKUE.js';
3
3
  import '../../chunk-3IMM2PM4.js';
4
4
  import '../../chunk-TQONQSJO.js';
package/dist/esheet.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunk5VA2HJ5B_cjs = require('./chunk-5VA2HJ5B.cjs');
3
+ var chunkZWKC4JML_cjs = require('./chunk-ZWKC4JML.cjs');
4
4
  require('./chunk-GLG6UE2H.cjs');
5
5
  require('./chunk-G7EQ3JPX.cjs');
6
6
  require('./chunk-AIJAFPGJ.cjs');
7
7
  require('./chunk-PHUTJKHL.cjs');
8
- require('./chunk-BSDBI6H7.cjs');
8
+ require('./chunk-BUN6RUJ5.cjs');
9
9
  require('./chunk-UPWIJC6I.cjs');
10
10
  require('./chunk-MJWFNV3L.cjs');
11
11
  require('./chunk-LC3JL2HB.cjs');
@@ -84,7 +84,7 @@ function MedicationListField({
84
84
  return definition.medications ?? [];
85
85
  }, [response?.answer, definition.medications]);
86
86
  return /* @__PURE__ */ jsxRuntime.jsx(
87
- chunk5VA2HJ5B_cjs.MedicationReconciliation,
87
+ chunkZWKC4JML_cjs.MedicationReconciliation,
88
88
  {
89
89
  medications,
90
90
  onChange: (next) => onResponse({ answer: JSON.stringify({ medications: next }) }),
@@ -141,7 +141,7 @@ function AllergyListField({
141
141
  codeLookup
142
142
  }) {
143
143
  const definition = field.definition;
144
- const ambientCodeLookup = chunk5VA2HJ5B_cjs.useCodeLookupConfig();
144
+ const ambientCodeLookup = chunkZWKC4JML_cjs.useCodeLookupConfig();
145
145
  const effectiveCodeLookup = codeLookup === false ? void 0 : codeLookup ?? ambientCodeLookup ?? void 0;
146
146
  const value = React__namespace.useMemo(() => {
147
147
  if (response?.answer) return parseValue2(response.answer);
@@ -151,7 +151,7 @@ function AllergyListField({
151
151
  onResponse({ answer: JSON.stringify(next) });
152
152
  };
153
153
  return /* @__PURE__ */ jsxRuntime.jsx(
154
- chunk5VA2HJ5B_cjs.AllergyManager,
154
+ chunkZWKC4JML_cjs.AllergyManager,
155
155
  {
156
156
  allergies: value.allergies,
157
157
  onChange: (allergies) => commit({
package/dist/esheet.js CHANGED
@@ -1,9 +1,9 @@
1
- import { MedicationReconciliation, useCodeLookupConfig, AllergyManager } from './chunk-N6XBE47W.js';
1
+ import { MedicationReconciliation, useCodeLookupConfig, AllergyManager } from './chunk-3E7C5N2G.js';
2
2
  import './chunk-YFWDS6MX.js';
3
3
  import './chunk-EPSB4WTL.js';
4
4
  import './chunk-I3WGZPI6.js';
5
5
  import './chunk-I6Y2KLTZ.js';
6
- import './chunk-H3YO5GBM.js';
6
+ import './chunk-CPG7SDON.js';
7
7
  import './chunk-VCI2Y7ST.js';
8
8
  import './chunk-QYSUYB3S.js';
9
9
  import './chunk-TWQSMUE6.js';