@mieweb/ui 0.7.3-dev.12 → 0.7.3-dev.13
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.
- package/dist/{chunk-U35KWHXP.js → chunk-DM57NTOQ.js} +64 -37
- package/dist/chunk-DM57NTOQ.js.map +1 -0
- package/dist/{chunk-DIL553SJ.cjs → chunk-EM5FMB7L.cjs} +5 -5
- package/dist/{chunk-DIL553SJ.cjs.map → chunk-EM5FMB7L.cjs.map} +1 -1
- package/dist/{chunk-3X4GPM35.js → chunk-ERTT36K3.js} +3 -3
- package/dist/{chunk-3X4GPM35.js.map → chunk-ERTT36K3.js.map} +1 -1
- package/dist/{chunk-UGJFT2QF.js → chunk-PMHS4BJF.js} +3 -3
- package/dist/{chunk-UGJFT2QF.js.map → chunk-PMHS4BJF.js.map} +1 -1
- package/dist/{chunk-VAKZEVDE.cjs → chunk-T7SDFBUT.cjs} +64 -37
- package/dist/chunk-T7SDFBUT.cjs.map +1 -0
- package/dist/{chunk-WWIBIUWT.cjs → chunk-UCY5YD6F.cjs} +4 -4
- package/dist/{chunk-WWIBIUWT.cjs.map → chunk-UCY5YD6F.cjs.map} +1 -1
- package/dist/components/MediaEditor/index.cjs +7 -7
- package/dist/components/MediaEditor/index.js +2 -2
- package/dist/components/Select/index.cjs +3 -3
- package/dist/components/Select/index.d.cts +37 -9
- package/dist/components/Select/index.d.ts +37 -9
- package/dist/components/Select/index.js +1 -1
- package/dist/esheet.cjs +5 -5
- package/dist/esheet.js +2 -2
- package/dist/index.cjs +62 -62
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-U35KWHXP.js.map +0 -1
- package/dist/chunk-VAKZEVDE.cjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEM5FMB7L_cjs = require('../../chunk-EM5FMB7L.cjs');
|
|
4
4
|
require('../../chunk-YMHOF6WA.cjs');
|
|
5
5
|
require('../../chunk-JP5SGIXA.cjs');
|
|
6
6
|
require('../../chunk-SMGNJGFT.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-T7SDFBUT.cjs');
|
|
8
8
|
require('../../chunk-P2VTQ5AR.cjs');
|
|
9
9
|
require('../../chunk-I44YNYI6.cjs');
|
|
10
10
|
require('../../chunk-F7CQ5RO7.cjs');
|
|
@@ -23,23 +23,23 @@ require('../../chunk-SCV7C55E.cjs');
|
|
|
23
23
|
|
|
24
24
|
Object.defineProperty(exports, "FillerWordsModal", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkEM5FMB7L_cjs.FillerWordsModal; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "MediaEditor", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkEM5FMB7L_cjs.MediaEditor; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "SilenceSettingsModal", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkEM5FMB7L_cjs.SilenceSettingsModal; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "SpeedMarkerMenu", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkEM5FMB7L_cjs.SpeedMarkerMenu; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "WordEditorModal", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkEM5FMB7L_cjs.WordEditorModal; }
|
|
43
43
|
});
|
|
44
44
|
//# sourceMappingURL=index.cjs.map
|
|
45
45
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { FillerWordsModal, MediaEditor, SilenceSettingsModal, SpeedMarkerMenu, WordEditorModal } from '../../chunk-
|
|
1
|
+
export { FillerWordsModal, MediaEditor, SilenceSettingsModal, SpeedMarkerMenu, WordEditorModal } from '../../chunk-PMHS4BJF.js';
|
|
2
2
|
import '../../chunk-OTQ72WX3.js';
|
|
3
3
|
import '../../chunk-EMMYFHOT.js';
|
|
4
4
|
import '../../chunk-DMIQS5KK.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-DM57NTOQ.js';
|
|
6
6
|
import '../../chunk-XMCIXHGH.js';
|
|
7
7
|
import '../../chunk-6NZXWKUE.js';
|
|
8
8
|
import '../../chunk-FXTNCCD2.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkT7SDFBUT_cjs = require('../../chunk-T7SDFBUT.cjs');
|
|
4
4
|
require('../../chunk-FHY3K6PL.cjs');
|
|
5
5
|
require('../../chunk-FSGEDDF2.cjs');
|
|
6
6
|
require('../../chunk-MYFZYUPR.cjs');
|
|
@@ -10,11 +10,11 @@ require('../../chunk-S5RVSXDV.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "Select", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkT7SDFBUT_cjs.Select; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "selectTriggerVariants", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkT7SDFBUT_cjs.selectTriggerVariants; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=index.cjs.map
|
|
20
20
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -23,15 +23,14 @@ declare const selectTriggerVariants: (props?: ({
|
|
|
23
23
|
hasError?: boolean | null | undefined;
|
|
24
24
|
labelVariant?: "stacked" | "floating" | null | undefined;
|
|
25
25
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
26
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Props shared by both single- and multiple-selection modes. Exported so
|
|
28
|
+
* wrapper components can extend the common shape (`SelectProps` itself is a
|
|
29
|
+
* discriminated union, which interfaces cannot extend).
|
|
30
|
+
*/
|
|
31
|
+
interface SelectBaseProps extends Omit<VariantProps<typeof selectTriggerVariants>, 'labelVariant'> {
|
|
27
32
|
/** Array of options or groups */
|
|
28
33
|
options: (SelectOption | SelectGroup)[];
|
|
29
|
-
/** Controlled value */
|
|
30
|
-
value?: string;
|
|
31
|
-
/** Default value (uncontrolled) */
|
|
32
|
-
defaultValue?: string;
|
|
33
|
-
/** Callback when value changes */
|
|
34
|
-
onValueChange?: (value: string) => void;
|
|
35
34
|
/** Placeholder text */
|
|
36
35
|
placeholder?: string;
|
|
37
36
|
/** Whether the select is disabled */
|
|
@@ -65,6 +64,27 @@ interface SelectProps extends Omit<VariantProps<typeof selectTriggerVariants>, '
|
|
|
65
64
|
/** ID for the select */
|
|
66
65
|
id?: string;
|
|
67
66
|
}
|
|
67
|
+
interface SelectSingleProps extends SelectBaseProps {
|
|
68
|
+
/** Single-selection mode (default). */
|
|
69
|
+
multiple?: false;
|
|
70
|
+
/** Controlled value */
|
|
71
|
+
value?: string;
|
|
72
|
+
/** Default value (uncontrolled) */
|
|
73
|
+
defaultValue?: string;
|
|
74
|
+
/** Callback when value changes */
|
|
75
|
+
onValueChange?: (value: string) => void;
|
|
76
|
+
}
|
|
77
|
+
interface SelectMultipleProps extends SelectBaseProps {
|
|
78
|
+
/** Multiple-selection mode: selecting an option toggles it and keeps the dropdown open. */
|
|
79
|
+
multiple: true;
|
|
80
|
+
/** Controlled values */
|
|
81
|
+
value?: string[];
|
|
82
|
+
/** Default values (uncontrolled) */
|
|
83
|
+
defaultValue?: string[];
|
|
84
|
+
/** Callback when values change */
|
|
85
|
+
onValueChange?: (value: string[]) => void;
|
|
86
|
+
}
|
|
87
|
+
type SelectProps = SelectSingleProps | SelectMultipleProps;
|
|
68
88
|
/**
|
|
69
89
|
* An accessible select/dropdown component with search support.
|
|
70
90
|
*
|
|
@@ -80,11 +100,19 @@ interface SelectProps extends Omit<VariantProps<typeof selectTriggerVariants>, '
|
|
|
80
100
|
* ]}
|
|
81
101
|
* onValueChange={(value) => console.log(value)}
|
|
82
102
|
* />
|
|
103
|
+
*
|
|
104
|
+
* // Multiple selection — value/onValueChange use string[]
|
|
105
|
+
* <Select
|
|
106
|
+
* multiple
|
|
107
|
+
* label="Symptoms"
|
|
108
|
+
* options={options}
|
|
109
|
+
* onValueChange={(values) => console.log(values)}
|
|
110
|
+
* />
|
|
83
111
|
* ```
|
|
84
112
|
*/
|
|
85
|
-
declare function Select(
|
|
113
|
+
declare function Select(props: SelectProps): react_jsx_runtime.JSX.Element;
|
|
86
114
|
declare namespace Select {
|
|
87
115
|
var displayName: string;
|
|
88
116
|
}
|
|
89
117
|
|
|
90
|
-
export { Select, type SelectGroup, type SelectOption, type SelectProps, selectTriggerVariants };
|
|
118
|
+
export { Select, type SelectBaseProps, type SelectGroup, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, selectTriggerVariants };
|
|
@@ -23,15 +23,14 @@ declare const selectTriggerVariants: (props?: ({
|
|
|
23
23
|
hasError?: boolean | null | undefined;
|
|
24
24
|
labelVariant?: "stacked" | "floating" | null | undefined;
|
|
25
25
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
26
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Props shared by both single- and multiple-selection modes. Exported so
|
|
28
|
+
* wrapper components can extend the common shape (`SelectProps` itself is a
|
|
29
|
+
* discriminated union, which interfaces cannot extend).
|
|
30
|
+
*/
|
|
31
|
+
interface SelectBaseProps extends Omit<VariantProps<typeof selectTriggerVariants>, 'labelVariant'> {
|
|
27
32
|
/** Array of options or groups */
|
|
28
33
|
options: (SelectOption | SelectGroup)[];
|
|
29
|
-
/** Controlled value */
|
|
30
|
-
value?: string;
|
|
31
|
-
/** Default value (uncontrolled) */
|
|
32
|
-
defaultValue?: string;
|
|
33
|
-
/** Callback when value changes */
|
|
34
|
-
onValueChange?: (value: string) => void;
|
|
35
34
|
/** Placeholder text */
|
|
36
35
|
placeholder?: string;
|
|
37
36
|
/** Whether the select is disabled */
|
|
@@ -65,6 +64,27 @@ interface SelectProps extends Omit<VariantProps<typeof selectTriggerVariants>, '
|
|
|
65
64
|
/** ID for the select */
|
|
66
65
|
id?: string;
|
|
67
66
|
}
|
|
67
|
+
interface SelectSingleProps extends SelectBaseProps {
|
|
68
|
+
/** Single-selection mode (default). */
|
|
69
|
+
multiple?: false;
|
|
70
|
+
/** Controlled value */
|
|
71
|
+
value?: string;
|
|
72
|
+
/** Default value (uncontrolled) */
|
|
73
|
+
defaultValue?: string;
|
|
74
|
+
/** Callback when value changes */
|
|
75
|
+
onValueChange?: (value: string) => void;
|
|
76
|
+
}
|
|
77
|
+
interface SelectMultipleProps extends SelectBaseProps {
|
|
78
|
+
/** Multiple-selection mode: selecting an option toggles it and keeps the dropdown open. */
|
|
79
|
+
multiple: true;
|
|
80
|
+
/** Controlled values */
|
|
81
|
+
value?: string[];
|
|
82
|
+
/** Default values (uncontrolled) */
|
|
83
|
+
defaultValue?: string[];
|
|
84
|
+
/** Callback when values change */
|
|
85
|
+
onValueChange?: (value: string[]) => void;
|
|
86
|
+
}
|
|
87
|
+
type SelectProps = SelectSingleProps | SelectMultipleProps;
|
|
68
88
|
/**
|
|
69
89
|
* An accessible select/dropdown component with search support.
|
|
70
90
|
*
|
|
@@ -80,11 +100,19 @@ interface SelectProps extends Omit<VariantProps<typeof selectTriggerVariants>, '
|
|
|
80
100
|
* ]}
|
|
81
101
|
* onValueChange={(value) => console.log(value)}
|
|
82
102
|
* />
|
|
103
|
+
*
|
|
104
|
+
* // Multiple selection — value/onValueChange use string[]
|
|
105
|
+
* <Select
|
|
106
|
+
* multiple
|
|
107
|
+
* label="Symptoms"
|
|
108
|
+
* options={options}
|
|
109
|
+
* onValueChange={(values) => console.log(values)}
|
|
110
|
+
* />
|
|
83
111
|
* ```
|
|
84
112
|
*/
|
|
85
|
-
declare function Select(
|
|
113
|
+
declare function Select(props: SelectProps): react_jsx_runtime.JSX.Element;
|
|
86
114
|
declare namespace Select {
|
|
87
115
|
var displayName: string;
|
|
88
116
|
}
|
|
89
117
|
|
|
90
|
-
export { Select, type SelectGroup, type SelectOption, type SelectProps, selectTriggerVariants };
|
|
118
|
+
export { Select, type SelectBaseProps, type SelectGroup, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, selectTriggerVariants };
|
package/dist/esheet.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUCY5YD6F_cjs = require('./chunk-UCY5YD6F.cjs');
|
|
4
4
|
require('./chunk-NHR33YWI.cjs');
|
|
5
5
|
require('./chunk-WWJIW2IH.cjs');
|
|
6
6
|
require('./chunk-G6GJXVQC.cjs');
|
|
7
7
|
require('./chunk-AIJAFPGJ.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-T7SDFBUT.cjs');
|
|
9
9
|
require('./chunk-MJWFNV3L.cjs');
|
|
10
10
|
require('./chunk-3KY5W3ZN.cjs');
|
|
11
11
|
require('./chunk-P2VTQ5AR.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
|
-
|
|
81
|
+
chunkUCY5YD6F_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 =
|
|
138
|
+
const ambientCodeLookup = chunkUCY5YD6F_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
|
-
|
|
148
|
+
chunkUCY5YD6F_cjs.AllergyManager,
|
|
149
149
|
{
|
|
150
150
|
allergies: value.allergies,
|
|
151
151
|
onChange: (allergies) => commit({
|
package/dist/esheet.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MedicationReconciliation, useCodeLookupConfig, AllergyManager } from './chunk-
|
|
1
|
+
import { MedicationReconciliation, useCodeLookupConfig, AllergyManager } from './chunk-ERTT36K3.js';
|
|
2
2
|
import './chunk-GP5CRU2I.js';
|
|
3
3
|
import './chunk-FJ7YPVKV.js';
|
|
4
4
|
import './chunk-CLT4ASY7.js';
|
|
5
5
|
import './chunk-I3WGZPI6.js';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-DM57NTOQ.js';
|
|
7
7
|
import './chunk-QYSUYB3S.js';
|
|
8
8
|
import './chunk-UHVNVZ7L.js';
|
|
9
9
|
import './chunk-XMCIXHGH.js';
|