@mieweb/ui 0.7.3-dev.25 → 0.7.3-dev.27

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/brands/index.cjs +18 -18
  2. package/dist/brands/index.js +5 -5
  3. package/dist/chunk-5QZ73PZC.js +62 -0
  4. package/dist/chunk-5QZ73PZC.js.map +1 -0
  5. package/dist/{chunk-WALAUOQB.cjs → chunk-7OL52QUW.cjs} +4 -4
  6. package/dist/{chunk-WALAUOQB.cjs.map → chunk-7OL52QUW.cjs.map} +1 -1
  7. package/dist/{chunk-TPGX25WD.js → chunk-DSSMQH74.js} +2 -2
  8. package/dist/{chunk-TPGX25WD.js.map → chunk-DSSMQH74.js.map} +1 -1
  9. package/dist/{chunk-F4SIY7JS.js → chunk-FVPMBLPH.js} +24 -2
  10. package/dist/chunk-FVPMBLPH.js.map +1 -0
  11. package/dist/{chunk-FC4EG7YP.cjs → chunk-KASJE4NM.cjs} +24 -2
  12. package/dist/chunk-KASJE4NM.cjs.map +1 -0
  13. package/dist/chunk-L6MDULYB.js +87 -0
  14. package/dist/chunk-L6MDULYB.js.map +1 -0
  15. package/dist/chunk-N5O47VGS.cjs +109 -0
  16. package/dist/chunk-N5O47VGS.cjs.map +1 -0
  17. package/dist/chunk-NGSDBWKA.cjs +84 -0
  18. package/dist/chunk-NGSDBWKA.cjs.map +1 -0
  19. package/dist/{chunk-B57MGVGR.cjs → chunk-RBEQQ4GG.cjs} +2 -2
  20. package/dist/{chunk-B57MGVGR.cjs.map → chunk-RBEQQ4GG.cjs.map} +1 -1
  21. package/dist/{chunk-GEG6G7OF.js → chunk-TWZDJ2D5.js} +4 -4
  22. package/dist/{chunk-GEG6G7OF.js.map → chunk-TWZDJ2D5.js.map} +1 -1
  23. package/dist/components/ClampedText/index.cjs +13 -0
  24. package/dist/components/ClampedText/index.cjs.map +1 -0
  25. package/dist/components/ClampedText/index.d.cts +33 -0
  26. package/dist/components/ClampedText/index.d.ts +33 -0
  27. package/dist/components/ClampedText/index.js +4 -0
  28. package/dist/components/ClampedText/index.js.map +1 -0
  29. package/dist/components/CopyButton/index.cjs +13 -0
  30. package/dist/components/CopyButton/index.cjs.map +1 -0
  31. package/dist/components/CopyButton/index.d.cts +29 -0
  32. package/dist/components/CopyButton/index.d.ts +29 -0
  33. package/dist/components/CopyButton/index.js +4 -0
  34. package/dist/components/CopyButton/index.js.map +1 -0
  35. package/dist/esheet.cjs +6 -6
  36. package/dist/esheet.js +3 -3
  37. package/dist/index.cjs +257 -247
  38. package/dist/index.cjs.map +1 -1
  39. package/dist/index.d.cts +2 -0
  40. package/dist/index.d.ts +2 -0
  41. package/dist/index.js +28 -26
  42. package/dist/index.js.map +1 -1
  43. package/dist/styles.css +1 -1
  44. package/dist/tailwind-preset.cjs +4 -4
  45. package/dist/tailwind-preset.js +1 -1
  46. package/package.json +1 -1
  47. package/dist/chunk-F4SIY7JS.js.map +0 -1
  48. package/dist/chunk-FC4EG7YP.cjs.map +0 -1
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var chunkN5O47VGS_cjs = require('../../chunk-N5O47VGS.cjs');
4
+ require('../../chunk-S5RVSXDV.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "ClampedText", {
9
+ enumerable: true,
10
+ get: function () { return chunkN5O47VGS_cjs.ClampedText; }
11
+ });
12
+ //# sourceMappingURL=index.cjs.map
13
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+
3
+ interface ClampedTextProps extends React.HTMLAttributes<HTMLElement> {
4
+ /** The long text to clamp. */
5
+ text: string;
6
+ /** Lines visible while collapsed (2–8, default 6). */
7
+ lines?: 2 | 3 | 4 | 5 | 6 | 7 | 8;
8
+ /** Skip the clamp entirely below this character count (default 280). */
9
+ threshold?: number;
10
+ /** Toggle labels, overridable for i18n. */
11
+ showMoreLabel?: string;
12
+ showLessLabel?: string;
13
+ /**
14
+ * Gradient start for the fade at the clamp edge — match it to the
15
+ * surface behind the text (default `from-card`).
16
+ */
17
+ fadeClassName?: string;
18
+ }
19
+ /**
20
+ * Clamps long text to N lines with a fade-out gradient and a
21
+ * Show more / Show less toggle. Short text renders inline with no
22
+ * toggle, so brief values stay flat. Pure presentation — ideal for
23
+ * free-text fields (messages, notes, descriptions) inside detail
24
+ * panels and modals.
25
+ *
26
+ * @example
27
+ * ```tsx
28
+ * <ClampedText text={note.body} lines={4} />
29
+ * ```
30
+ */
31
+ declare const ClampedText: React.ForwardRefExoticComponent<ClampedTextProps & React.RefAttributes<HTMLElement>>;
32
+
33
+ export { ClampedText, type ClampedTextProps };
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+
3
+ interface ClampedTextProps extends React.HTMLAttributes<HTMLElement> {
4
+ /** The long text to clamp. */
5
+ text: string;
6
+ /** Lines visible while collapsed (2–8, default 6). */
7
+ lines?: 2 | 3 | 4 | 5 | 6 | 7 | 8;
8
+ /** Skip the clamp entirely below this character count (default 280). */
9
+ threshold?: number;
10
+ /** Toggle labels, overridable for i18n. */
11
+ showMoreLabel?: string;
12
+ showLessLabel?: string;
13
+ /**
14
+ * Gradient start for the fade at the clamp edge — match it to the
15
+ * surface behind the text (default `from-card`).
16
+ */
17
+ fadeClassName?: string;
18
+ }
19
+ /**
20
+ * Clamps long text to N lines with a fade-out gradient and a
21
+ * Show more / Show less toggle. Short text renders inline with no
22
+ * toggle, so brief values stay flat. Pure presentation — ideal for
23
+ * free-text fields (messages, notes, descriptions) inside detail
24
+ * panels and modals.
25
+ *
26
+ * @example
27
+ * ```tsx
28
+ * <ClampedText text={note.body} lines={4} />
29
+ * ```
30
+ */
31
+ declare const ClampedText: React.ForwardRefExoticComponent<ClampedTextProps & React.RefAttributes<HTMLElement>>;
32
+
33
+ export { ClampedText, type ClampedTextProps };
@@ -0,0 +1,4 @@
1
+ export { ClampedText } from '../../chunk-L6MDULYB.js';
2
+ import '../../chunk-TQONQSJO.js';
3
+ //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var chunkNGSDBWKA_cjs = require('../../chunk-NGSDBWKA.cjs');
4
+ require('../../chunk-S5RVSXDV.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "CopyButton", {
9
+ enumerable: true,
10
+ get: function () { return chunkNGSDBWKA_cjs.CopyButton; }
11
+ });
12
+ //# sourceMappingURL=index.cjs.map
13
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+
3
+ interface CopyButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
4
+ /** Text written to the clipboard. */
5
+ value: string;
6
+ /** Accessible label / tooltip (default "Copy"). */
7
+ label?: string;
8
+ /** Label while the copied state shows (default "Copied"). */
9
+ copiedLabel?: string;
10
+ /** How long the copied state shows, in ms (default 1200). */
11
+ timeout?: number;
12
+ /** Called after a successful copy. */
13
+ onCopied?: (value: string) => void;
14
+ }
15
+ /**
16
+ * An inline copy-to-clipboard icon button with a brief success check.
17
+ * Copied state is isolated per instance — safe to drop into table rows,
18
+ * ID chips, and detail fields.
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * <span className="flex items-center gap-1">
23
+ * MRN WC-10382 <CopyButton value="WC-10382" label="Copy MRN" />
24
+ * </span>
25
+ * ```
26
+ */
27
+ declare const CopyButton: React.ForwardRefExoticComponent<CopyButtonProps & React.RefAttributes<HTMLButtonElement>>;
28
+
29
+ export { CopyButton, type CopyButtonProps };
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+
3
+ interface CopyButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
4
+ /** Text written to the clipboard. */
5
+ value: string;
6
+ /** Accessible label / tooltip (default "Copy"). */
7
+ label?: string;
8
+ /** Label while the copied state shows (default "Copied"). */
9
+ copiedLabel?: string;
10
+ /** How long the copied state shows, in ms (default 1200). */
11
+ timeout?: number;
12
+ /** Called after a successful copy. */
13
+ onCopied?: (value: string) => void;
14
+ }
15
+ /**
16
+ * An inline copy-to-clipboard icon button with a brief success check.
17
+ * Copied state is isolated per instance — safe to drop into table rows,
18
+ * ID chips, and detail fields.
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * <span className="flex items-center gap-1">
23
+ * MRN WC-10382 <CopyButton value="WC-10382" label="Copy MRN" />
24
+ * </span>
25
+ * ```
26
+ */
27
+ declare const CopyButton: React.ForwardRefExoticComponent<CopyButtonProps & React.RefAttributes<HTMLButtonElement>>;
28
+
29
+ export { CopyButton, type CopyButtonProps };
@@ -0,0 +1,4 @@
1
+ export { CopyButton } from '../../chunk-5QZ73PZC.js';
2
+ import '../../chunk-TQONQSJO.js';
3
+ //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
package/dist/esheet.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkWALAUOQB_cjs = require('./chunk-WALAUOQB.cjs');
4
- require('./chunk-BSDBI6H7.cjs');
3
+ var chunk7OL52QUW_cjs = require('./chunk-7OL52QUW.cjs');
5
4
  require('./chunk-WWJIW2IH.cjs');
5
+ require('./chunk-BSDBI6H7.cjs');
6
6
  require('./chunk-G7EQ3JPX.cjs');
7
+ require('./chunk-AIJAFPGJ.cjs');
7
8
  require('./chunk-56QJHQ5C.cjs');
8
9
  require('./chunk-U5TTXN45.cjs');
9
- require('./chunk-AIJAFPGJ.cjs');
10
10
  require('./chunk-MJWFNV3L.cjs');
11
11
  require('./chunk-P2VTQ5AR.cjs');
12
12
  require('./chunk-I44YNYI6.cjs');
@@ -78,7 +78,7 @@ function MedicationListField({
78
78
  return definition.medications ?? [];
79
79
  }, [response?.answer, definition.medications]);
80
80
  return /* @__PURE__ */ jsxRuntime.jsx(
81
- chunkWALAUOQB_cjs.MedicationReconciliation,
81
+ chunk7OL52QUW_cjs.MedicationReconciliation,
82
82
  {
83
83
  medications,
84
84
  onChange: (next) => onResponse({ answer: JSON.stringify({ medications: next }) }),
@@ -135,7 +135,7 @@ function AllergyListField({
135
135
  codeLookup
136
136
  }) {
137
137
  const definition = field.definition;
138
- const ambientCodeLookup = chunkWALAUOQB_cjs.useCodeLookupConfig();
138
+ const ambientCodeLookup = chunk7OL52QUW_cjs.useCodeLookupConfig();
139
139
  const effectiveCodeLookup = codeLookup === false ? void 0 : codeLookup ?? ambientCodeLookup ?? void 0;
140
140
  const value = React__namespace.useMemo(() => {
141
141
  if (response?.answer) return parseValue2(response.answer);
@@ -145,7 +145,7 @@ function AllergyListField({
145
145
  onResponse({ answer: JSON.stringify(next) });
146
146
  };
147
147
  return /* @__PURE__ */ jsxRuntime.jsx(
148
- chunkWALAUOQB_cjs.AllergyManager,
148
+ chunk7OL52QUW_cjs.AllergyManager,
149
149
  {
150
150
  allergies: value.allergies,
151
151
  onChange: (allergies) => commit({
package/dist/esheet.js CHANGED
@@ -1,10 +1,10 @@
1
- import { MedicationReconciliation, useCodeLookupConfig, AllergyManager } from './chunk-GEG6G7OF.js';
2
- import './chunk-H3YO5GBM.js';
1
+ import { MedicationReconciliation, useCodeLookupConfig, AllergyManager } from './chunk-TWZDJ2D5.js';
3
2
  import './chunk-FJ7YPVKV.js';
3
+ import './chunk-H3YO5GBM.js';
4
4
  import './chunk-EPSB4WTL.js';
5
+ import './chunk-I3WGZPI6.js';
5
6
  import './chunk-XBKOZRDO.js';
6
7
  import './chunk-IILJGFI5.js';
7
- import './chunk-I3WGZPI6.js';
8
8
  import './chunk-QYSUYB3S.js';
9
9
  import './chunk-XMCIXHGH.js';
10
10
  import './chunk-6NZXWKUE.js';