@mieweb/ui 0.11.0-dev.22 → 0.11.0-dev.24

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 (46) 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-XWNTCOC7.cjs → chunk-4W3QJWG2.cjs} +18 -2
  4. package/dist/chunk-4W3QJWG2.cjs.map +1 -0
  5. package/dist/{chunk-BSDBI6H7.cjs → chunk-BUN6RUJ5.cjs} +100 -8
  6. package/dist/chunk-BUN6RUJ5.cjs.map +1 -0
  7. package/dist/{chunk-H3YO5GBM.js → chunk-CPG7SDON.js} +100 -8
  8. package/dist/chunk-CPG7SDON.js.map +1 -0
  9. package/dist/{chunk-UQPNO5YC.js → chunk-GTZUG646.js} +4 -4
  10. package/dist/{chunk-UQPNO5YC.js.map → chunk-GTZUG646.js.map} +1 -1
  11. package/dist/{chunk-GFP3BUVC.cjs → chunk-HKLTJYRU.cjs} +7 -7
  12. package/dist/{chunk-GFP3BUVC.cjs.map → chunk-HKLTJYRU.cjs.map} +1 -1
  13. package/dist/{chunk-5EOW6AP3.js → chunk-IYY7NKA3.js} +97 -19
  14. package/dist/chunk-IYY7NKA3.js.map +1 -0
  15. package/dist/{chunk-MC467GS4.js → chunk-V43ZWRBT.js} +18 -2
  16. package/dist/chunk-V43ZWRBT.js.map +1 -0
  17. package/dist/{chunk-7BA7ENN5.cjs → chunk-VEPARPUE.cjs} +97 -19
  18. package/dist/chunk-VEPARPUE.cjs.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 +12 -12
  22. package/dist/components/EmailEditor/index.js +3 -3
  23. package/dist/components/RichTextEditor/index.cjs +4 -4
  24. package/dist/components/RichTextEditor/index.d.cts +14 -0
  25. package/dist/components/RichTextEditor/index.d.ts +14 -0
  26. package/dist/components/RichTextEditor/index.js +1 -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 +64 -64
  34. package/dist/index.d.cts +21 -1
  35. package/dist/index.d.ts +21 -1
  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-5EOW6AP3.js.map +0 -1
  42. package/dist/chunk-7BA7ENN5.cjs.map +0 -1
  43. package/dist/chunk-BSDBI6H7.cjs.map +0 -1
  44. package/dist/chunk-H3YO5GBM.js.map +0 -1
  45. package/dist/chunk-MC467GS4.js.map +0 -1
  46. package/dist/chunk-XWNTCOC7.cjs.map +0 -1
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunkGFP3BUVC_cjs = require('../../chunk-GFP3BUVC.cjs');
3
+ var chunkHKLTJYRU_cjs = require('../../chunk-HKLTJYRU.cjs');
4
4
  require('../../chunk-BXRQ6HEP.cjs');
5
5
  require('../../chunk-S7AMZ4RD.cjs');
6
- require('../../chunk-7BA7ENN5.cjs');
6
+ require('../../chunk-VEPARPUE.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');
@@ -31,39 +31,39 @@ require('../../chunk-EUAMEVVI.cjs');
31
31
 
32
32
  Object.defineProperty(exports, "EMAIL_BLOCK_TYPES", {
33
33
  enumerable: true,
34
- get: function () { return chunkGFP3BUVC_cjs.EMAIL_BLOCK_TYPES; }
34
+ get: function () { return chunkHKLTJYRU_cjs.EMAIL_BLOCK_TYPES; }
35
35
  });
36
36
  Object.defineProperty(exports, "EmailEditor", {
37
37
  enumerable: true,
38
- get: function () { return chunkGFP3BUVC_cjs.EmailEditor; }
38
+ get: function () { return chunkHKLTJYRU_cjs.EmailEditor; }
39
39
  });
40
40
  Object.defineProperty(exports, "createDefaultDesignSettings", {
41
41
  enumerable: true,
42
- get: function () { return chunkGFP3BUVC_cjs.createDefaultDesignSettings; }
42
+ get: function () { return chunkHKLTJYRU_cjs.createDefaultDesignSettings; }
43
43
  });
44
44
  Object.defineProperty(exports, "createEmailBlock", {
45
45
  enumerable: true,
46
- get: function () { return chunkGFP3BUVC_cjs.createEmailBlock; }
46
+ get: function () { return chunkHKLTJYRU_cjs.createEmailBlock; }
47
47
  });
48
48
  Object.defineProperty(exports, "createEmailHtmlSanitizer", {
49
49
  enumerable: true,
50
- get: function () { return chunkGFP3BUVC_cjs.createEmailHtmlSanitizer; }
50
+ get: function () { return chunkHKLTJYRU_cjs.createEmailHtmlSanitizer; }
51
51
  });
52
52
  Object.defineProperty(exports, "createEmptyEmailContentTree", {
53
53
  enumerable: true,
54
- get: function () { return chunkGFP3BUVC_cjs.createEmptyEmailContentTree; }
54
+ get: function () { return chunkHKLTJYRU_cjs.createEmptyEmailContentTree; }
55
55
  });
56
56
  Object.defineProperty(exports, "defaultEmailEditorLabels", {
57
57
  enumerable: true,
58
- get: function () { return chunkGFP3BUVC_cjs.defaultEmailEditorLabels; }
58
+ get: function () { return chunkHKLTJYRU_cjs.defaultEmailEditorLabels; }
59
59
  });
60
60
  Object.defineProperty(exports, "generateEmailBlockId", {
61
61
  enumerable: true,
62
- get: function () { return chunkGFP3BUVC_cjs.generateEmailBlockId; }
62
+ get: function () { return chunkHKLTJYRU_cjs.generateEmailBlockId; }
63
63
  });
64
64
  Object.defineProperty(exports, "renderEmailMjml", {
65
65
  enumerable: true,
66
- get: function () { return chunkGFP3BUVC_cjs.renderEmailMjml; }
66
+ get: function () { return chunkHKLTJYRU_cjs.renderEmailMjml; }
67
67
  });
68
68
  //# sourceMappingURL=index.cjs.map
69
69
  //# sourceMappingURL=index.cjs.map
@@ -1,14 +1,14 @@
1
- export { EMAIL_BLOCK_TYPES, EmailEditor, createDefaultDesignSettings, createEmailBlock, createEmailHtmlSanitizer, createEmptyEmailContentTree, defaultEmailEditorLabels, generateEmailBlockId, renderEmailMjml } from '../../chunk-UQPNO5YC.js';
1
+ export { EMAIL_BLOCK_TYPES, EmailEditor, createDefaultDesignSettings, createEmailBlock, createEmailHtmlSanitizer, createEmptyEmailContentTree, defaultEmailEditorLabels, generateEmailBlockId, renderEmailMjml } from '../../chunk-GTZUG646.js';
2
2
  import '../../chunk-XBAAHOCP.js';
3
3
  import '../../chunk-ME7EVT6F.js';
4
- import '../../chunk-5EOW6AP3.js';
4
+ import '../../chunk-IYY7NKA3.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';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk7BA7ENN5_cjs = require('../../chunk-7BA7ENN5.cjs');
3
+ var chunkVEPARPUE_cjs = require('../../chunk-VEPARPUE.cjs');
4
4
  require('../../chunk-YP5T6NZD.cjs');
5
5
  require('../../chunk-ZNUMOJOI.cjs');
6
6
  require('../../chunk-PINIBEIU.cjs');
@@ -23,15 +23,15 @@ require('../../chunk-EUAMEVVI.cjs');
23
23
 
24
24
  Object.defineProperty(exports, "RichTextEditor", {
25
25
  enumerable: true,
26
- get: function () { return chunk7BA7ENN5_cjs.RichTextEditor; }
26
+ get: function () { return chunkVEPARPUE_cjs.RichTextEditor; }
27
27
  });
28
28
  Object.defineProperty(exports, "convertAngleBracketsToMustache", {
29
29
  enumerable: true,
30
- get: function () { return chunk7BA7ENN5_cjs.convertAngleBracketsToMustache; }
30
+ get: function () { return chunkVEPARPUE_cjs.convertAngleBracketsToMustache; }
31
31
  });
32
32
  Object.defineProperty(exports, "processDictation", {
33
33
  enumerable: true,
34
- get: function () { return chunk7BA7ENN5_cjs.processDictation; }
34
+ get: function () { return chunkVEPARPUE_cjs.processDictation; }
35
35
  });
36
36
  Object.defineProperty(exports, "isHtmlEmpty", {
37
37
  enumerable: true,
@@ -128,6 +128,20 @@ interface RichTextEditorProps {
128
128
  };
129
129
  /** Forwarded to the macro panel's "Save as macro" action. */
130
130
  onCreateMacro?: () => void;
131
+ /**
132
+ * Toolbar visibility. `'hidden'` removes the toolbar entirely for
133
+ * chromeless surfaces (typed shortcuts keep working; pair with
134
+ * `markdownShortcuts` so formatting stays reachable). Defaults to
135
+ * `'visible'` — existing consumers are unchanged.
136
+ */
137
+ toolbar?: 'visible' | 'hidden';
138
+ /**
139
+ * Expand markdown-style block shortcuts typed at the start of a line and
140
+ * followed by a space: `#`/`##`/`###` → headings, `-`/`*` → bullet list,
141
+ * `1.` → numbered list, `>` → block quote. Inline rules (`**bold**`) are
142
+ * not interpreted. Defaults to false.
143
+ */
144
+ markdownShortcuts?: boolean;
131
145
  /** Accessible label for the editable region. */
132
146
  'aria-label'?: string;
133
147
  }
@@ -128,6 +128,20 @@ interface RichTextEditorProps {
128
128
  };
129
129
  /** Forwarded to the macro panel's "Save as macro" action. */
130
130
  onCreateMacro?: () => void;
131
+ /**
132
+ * Toolbar visibility. `'hidden'` removes the toolbar entirely for
133
+ * chromeless surfaces (typed shortcuts keep working; pair with
134
+ * `markdownShortcuts` so formatting stays reachable). Defaults to
135
+ * `'visible'` — existing consumers are unchanged.
136
+ */
137
+ toolbar?: 'visible' | 'hidden';
138
+ /**
139
+ * Expand markdown-style block shortcuts typed at the start of a line and
140
+ * followed by a space: `#`/`##`/`###` → headings, `-`/`*` → bullet list,
141
+ * `1.` → numbered list, `>` → block quote. Inline rules (`**bold**`) are
142
+ * not interpreted. Defaults to false.
143
+ */
144
+ markdownShortcuts?: boolean;
131
145
  /** Accessible label for the editable region. */
132
146
  'aria-label'?: string;
133
147
  }
@@ -1,4 +1,4 @@
1
- export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from '../../chunk-5EOW6AP3.js';
1
+ export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from '../../chunk-IYY7NKA3.js';
2
2
  import '../../chunk-OQWZYKJM.js';
3
3
  import '../../chunk-AMYFRY7K.js';
4
4
  import '../../chunk-OYUIEJPN.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';