@mieweb/ui 0.7.3-dev.12 → 0.7.3-dev.14
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-3X4GPM35.js → chunk-33TQ25IK.js} +7 -7
- package/dist/{chunk-3X4GPM35.js.map → chunk-33TQ25IK.js.map} +1 -1
- package/dist/{chunk-WWIBIUWT.cjs → chunk-35HHCXWC.cjs} +36 -36
- package/dist/{chunk-WWIBIUWT.cjs.map → chunk-35HHCXWC.cjs.map} +1 -1
- package/dist/{chunk-FXTNCCD2.js → chunk-3IMM2PM4.js} +20 -4
- package/dist/chunk-3IMM2PM4.js.map +1 -0
- package/dist/{chunk-VAKZEVDE.cjs → chunk-56QJHQ5C.cjs} +79 -41
- package/dist/chunk-56QJHQ5C.cjs.map +1 -0
- package/dist/{chunk-DMIQS5KK.js → chunk-753Z3NXL.js} +3 -3
- package/dist/{chunk-DMIQS5KK.js.map → chunk-753Z3NXL.js.map} +1 -1
- package/dist/{chunk-SMGNJGFT.cjs → chunk-7AECNMYV.cjs} +5 -5
- package/dist/{chunk-SMGNJGFT.cjs.map → chunk-7AECNMYV.cjs.map} +1 -1
- package/dist/{chunk-UGJFT2QF.js → chunk-A5YOIJKL.js} +5 -5
- package/dist/{chunk-UGJFT2QF.js.map → chunk-A5YOIJKL.js.map} +1 -1
- package/dist/{chunk-N7JVAXHD.cjs → chunk-BOW7ZGI2.cjs} +4 -4
- package/dist/{chunk-N7JVAXHD.cjs.map → chunk-BOW7ZGI2.cjs.map} +1 -1
- package/dist/{chunk-NHR33YWI.cjs → chunk-BSDBI6H7.cjs} +17 -6
- package/dist/chunk-BSDBI6H7.cjs.map +1 -0
- package/dist/{chunk-CLT4ASY7.js → chunk-EPSB4WTL.js} +3 -3
- package/dist/{chunk-CLT4ASY7.js.map → chunk-EPSB4WTL.js.map} +1 -1
- package/dist/{chunk-G6GJXVQC.cjs → chunk-G7EQ3JPX.cjs} +5 -5
- package/dist/{chunk-G6GJXVQC.cjs.map → chunk-G7EQ3JPX.cjs.map} +1 -1
- package/dist/{chunk-PCWIN32O.cjs → chunk-GQVL2JKQ.cjs} +4 -4
- package/dist/{chunk-PCWIN32O.cjs.map → chunk-GQVL2JKQ.cjs.map} +1 -1
- package/dist/{chunk-6H7NO5XX.js → chunk-GXODR6V4.js} +3 -3
- package/dist/{chunk-6H7NO5XX.js.map → chunk-GXODR6V4.js.map} +1 -1
- package/dist/{chunk-GP5CRU2I.js → chunk-H3YO5GBM.js} +17 -6
- package/dist/chunk-H3YO5GBM.js.map +1 -0
- package/dist/{chunk-UZJDXFQE.cjs → chunk-HUDYTCTT.cjs} +4 -4
- package/dist/{chunk-UZJDXFQE.cjs.map → chunk-HUDYTCTT.cjs.map} +1 -1
- package/dist/{chunk-UHVNVZ7L.js → chunk-IILJGFI5.js} +5 -4
- package/dist/chunk-IILJGFI5.js.map +1 -0
- package/dist/{chunk-LFSP53TY.cjs → chunk-KVE7PQ5P.cjs} +7 -7
- package/dist/{chunk-LFSP53TY.cjs.map → chunk-KVE7PQ5P.cjs.map} +1 -1
- package/dist/{chunk-DIL553SJ.cjs → chunk-LQHI44OZ.cjs} +13 -13
- package/dist/{chunk-DIL553SJ.cjs.map → chunk-LQHI44OZ.cjs.map} +1 -1
- package/dist/{chunk-GV3DE6KR.js → chunk-LZU7YBXG.js} +3 -3
- package/dist/{chunk-GV3DE6KR.js.map → chunk-LZU7YBXG.js.map} +1 -1
- package/dist/{chunk-ICMR3TYV.js → chunk-QHTDWIED.js} +3 -3
- package/dist/{chunk-ICMR3TYV.js.map → chunk-QHTDWIED.js.map} +1 -1
- package/dist/{chunk-3KY5W3ZN.cjs → chunk-U5TTXN45.cjs} +9 -8
- package/dist/chunk-U5TTXN45.cjs.map +1 -0
- package/dist/{chunk-U35KWHXP.js → chunk-XBKOZRDO.js} +79 -41
- package/dist/chunk-XBKOZRDO.js.map +1 -0
- package/dist/{chunk-F7CQ5RO7.cjs → chunk-Z5S5JEJD.cjs} +20 -3
- package/dist/chunk-Z5S5JEJD.cjs.map +1 -0
- package/dist/{chunk-WUPT5SUN.js → chunk-ZIE52CWX.js} +3 -3
- package/dist/{chunk-WUPT5SUN.js.map → chunk-ZIE52CWX.js.map} +1 -1
- package/dist/components/Alert/index.d.cts +1 -1
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/Autocomplete/index.cjs +3 -3
- package/dist/components/Autocomplete/index.js +2 -2
- package/dist/components/Badge/index.d.cts +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Card/index.d.cts +1 -1
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Checkbox/index.cjs +5 -5
- package/dist/components/Checkbox/index.js +2 -2
- package/dist/components/DateInput/index.cjs +3 -3
- package/dist/components/DateInput/index.d.cts +1 -0
- package/dist/components/DateInput/index.d.ts +1 -0
- package/dist/components/DateInput/index.js +2 -2
- package/dist/components/Dropdown/index.cjs +8 -8
- package/dist/components/Dropdown/index.js +2 -2
- package/dist/components/Input/index.cjs +10 -6
- package/dist/components/Input/index.d.cts +13 -1
- package/dist/components/Input/index.d.ts +13 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/MediaEditor/index.cjs +9 -9
- package/dist/components/MediaEditor/index.js +4 -4
- package/dist/components/PhoneInput/index.cjs +4 -4
- package/dist/components/PhoneInput/index.js +2 -2
- package/dist/components/Progress/index.d.cts +1 -1
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/Radio/index.cjs +5 -5
- package/dist/components/Radio/index.js +2 -2
- package/dist/components/RichTextEditor/index.cjs +6 -6
- package/dist/components/RichTextEditor/index.js +3 -3
- package/dist/components/Select/index.cjs +5 -3
- package/dist/components/Select/index.d.cts +47 -9
- package/dist/components/Select/index.d.ts +47 -9
- package/dist/components/Select/index.js +3 -1
- package/dist/components/Slider/index.d.cts +2 -2
- package/dist/components/Slider/index.d.ts +2 -2
- package/dist/components/Spinner/index.d.cts +1 -1
- package/dist/components/Spinner/index.d.ts +1 -1
- package/dist/components/SuperChat/index.cjs +6 -6
- package/dist/components/SuperChat/index.js +2 -2
- package/dist/components/Text/index.d.cts +1 -1
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/Textarea/index.cjs +5 -3
- package/dist/components/Textarea/index.d.cts +8 -0
- package/dist/components/Textarea/index.d.ts +8 -0
- package/dist/components/Textarea/index.js +3 -1
- package/dist/esheet.cjs +9 -9
- package/dist/esheet.js +6 -6
- package/dist/index.cjs +295 -291
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +20 -20
- package/package.json +1 -1
- package/dist/chunk-3KY5W3ZN.cjs.map +0 -1
- package/dist/chunk-F7CQ5RO7.cjs.map +0 -1
- package/dist/chunk-FXTNCCD2.js.map +0 -1
- package/dist/chunk-GP5CRU2I.js.map +0 -1
- package/dist/chunk-NHR33YWI.cjs.map +0 -1
- package/dist/chunk-U35KWHXP.js.map +0 -1
- package/dist/chunk-UHVNVZ7L.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 chunkKVE7PQ5P_cjs = require('../../chunk-KVE7PQ5P.cjs');
|
|
4
4
|
require('../../chunk-YP5T6NZD.cjs');
|
|
5
|
-
require('../../chunk-
|
|
5
|
+
require('../../chunk-BOW7ZGI2.cjs');
|
|
6
6
|
require('../../chunk-I44YNYI6.cjs');
|
|
7
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-Z5S5JEJD.cjs');
|
|
8
8
|
require('../../chunk-RDGRKYQ5.cjs');
|
|
9
9
|
require('../../chunk-FHY3K6PL.cjs');
|
|
10
10
|
require('../../chunk-FSGEDDF2.cjs');
|
|
@@ -16,15 +16,15 @@ require('../../chunk-S5RVSXDV.cjs');
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "RichTextEditor", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkKVE7PQ5P_cjs.RichTextEditor; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "convertAngleBracketsToMustache", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkKVE7PQ5P_cjs.convertAngleBracketsToMustache; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "processDictation", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkKVE7PQ5P_cjs.processDictation; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "isHtmlEmpty", {
|
|
30
30
|
enumerable: true,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from '../../chunk-
|
|
1
|
+
export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from '../../chunk-QHTDWIED.js';
|
|
2
2
|
import '../../chunk-OQWZYKJM.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-LZU7YBXG.js';
|
|
4
4
|
import '../../chunk-6NZXWKUE.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-3IMM2PM4.js';
|
|
6
6
|
import '../../chunk-D2GID3YK.js';
|
|
7
7
|
import '../../chunk-T4ME7QCT.js';
|
|
8
8
|
import '../../chunk-62ZOA6PX.js';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk56QJHQ5C_cjs = require('../../chunk-56QJHQ5C.cjs');
|
|
4
|
+
require('../../chunk-I44YNYI6.cjs');
|
|
5
|
+
require('../../chunk-Z5S5JEJD.cjs');
|
|
4
6
|
require('../../chunk-FHY3K6PL.cjs');
|
|
5
7
|
require('../../chunk-FSGEDDF2.cjs');
|
|
6
8
|
require('../../chunk-MYFZYUPR.cjs');
|
|
@@ -10,11 +12,11 @@ require('../../chunk-S5RVSXDV.cjs');
|
|
|
10
12
|
|
|
11
13
|
Object.defineProperty(exports, "Select", {
|
|
12
14
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk56QJHQ5C_cjs.Select; }
|
|
14
16
|
});
|
|
15
17
|
Object.defineProperty(exports, "selectTriggerVariants", {
|
|
16
18
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk56QJHQ5C_cjs.selectTriggerVariants; }
|
|
18
20
|
});
|
|
19
21
|
//# sourceMappingURL=index.cjs.map
|
|
20
22
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { RequiredMarkVariant } from '../Input/index.cjs';
|
|
5
|
+
import 'react';
|
|
4
6
|
|
|
5
7
|
interface SelectOption {
|
|
6
8
|
/** Unique value for the option */
|
|
@@ -23,15 +25,14 @@ declare const selectTriggerVariants: (props?: ({
|
|
|
23
25
|
hasError?: boolean | null | undefined;
|
|
24
26
|
labelVariant?: "stacked" | "floating" | null | undefined;
|
|
25
27
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
26
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Props shared by both single- and multiple-selection modes. Exported so
|
|
30
|
+
* wrapper components can extend the common shape (`SelectProps` itself is a
|
|
31
|
+
* discriminated union, which interfaces cannot extend).
|
|
32
|
+
*/
|
|
33
|
+
interface SelectBaseProps extends Omit<VariantProps<typeof selectTriggerVariants>, 'labelVariant'> {
|
|
27
34
|
/** Array of options or groups */
|
|
28
35
|
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
36
|
/** Placeholder text */
|
|
36
37
|
placeholder?: string;
|
|
37
38
|
/** Whether the select is disabled */
|
|
@@ -52,6 +53,14 @@ interface SelectProps extends Omit<VariantProps<typeof selectTriggerVariants>, '
|
|
|
52
53
|
error?: string;
|
|
53
54
|
/** Helper text */
|
|
54
55
|
helperText?: string;
|
|
56
|
+
/** Whether a selection is required (shows an asterisk next to the label) */
|
|
57
|
+
required?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Color of the required asterisk.
|
|
60
|
+
* - `default`: destructive (hard requirement).
|
|
61
|
+
* - `warning`: warning color (soft requirement / recommended).
|
|
62
|
+
*/
|
|
63
|
+
requiredVariant?: RequiredMarkVariant;
|
|
55
64
|
/** Enable search/filter */
|
|
56
65
|
searchable?: boolean;
|
|
57
66
|
/** Search placeholder */
|
|
@@ -65,6 +74,27 @@ interface SelectProps extends Omit<VariantProps<typeof selectTriggerVariants>, '
|
|
|
65
74
|
/** ID for the select */
|
|
66
75
|
id?: string;
|
|
67
76
|
}
|
|
77
|
+
interface SelectSingleProps extends SelectBaseProps {
|
|
78
|
+
/** Single-selection mode (default). */
|
|
79
|
+
multiple?: false;
|
|
80
|
+
/** Controlled value */
|
|
81
|
+
value?: string;
|
|
82
|
+
/** Default value (uncontrolled) */
|
|
83
|
+
defaultValue?: string;
|
|
84
|
+
/** Callback when value changes */
|
|
85
|
+
onValueChange?: (value: string) => void;
|
|
86
|
+
}
|
|
87
|
+
interface SelectMultipleProps extends SelectBaseProps {
|
|
88
|
+
/** Multiple-selection mode: selecting an option toggles it and keeps the dropdown open. */
|
|
89
|
+
multiple: true;
|
|
90
|
+
/** Controlled values */
|
|
91
|
+
value?: string[];
|
|
92
|
+
/** Default values (uncontrolled) */
|
|
93
|
+
defaultValue?: string[];
|
|
94
|
+
/** Callback when values change */
|
|
95
|
+
onValueChange?: (value: string[]) => void;
|
|
96
|
+
}
|
|
97
|
+
type SelectProps = SelectSingleProps | SelectMultipleProps;
|
|
68
98
|
/**
|
|
69
99
|
* An accessible select/dropdown component with search support.
|
|
70
100
|
*
|
|
@@ -80,11 +110,19 @@ interface SelectProps extends Omit<VariantProps<typeof selectTriggerVariants>, '
|
|
|
80
110
|
* ]}
|
|
81
111
|
* onValueChange={(value) => console.log(value)}
|
|
82
112
|
* />
|
|
113
|
+
*
|
|
114
|
+
* // Multiple selection — value/onValueChange use string[]
|
|
115
|
+
* <Select
|
|
116
|
+
* multiple
|
|
117
|
+
* label="Symptoms"
|
|
118
|
+
* options={options}
|
|
119
|
+
* onValueChange={(values) => console.log(values)}
|
|
120
|
+
* />
|
|
83
121
|
* ```
|
|
84
122
|
*/
|
|
85
|
-
declare function Select(
|
|
123
|
+
declare function Select(props: SelectProps): react_jsx_runtime.JSX.Element;
|
|
86
124
|
declare namespace Select {
|
|
87
125
|
var displayName: string;
|
|
88
126
|
}
|
|
89
127
|
|
|
90
|
-
export { Select, type SelectGroup, type SelectOption, type SelectProps, selectTriggerVariants };
|
|
128
|
+
export { Select, type SelectBaseProps, type SelectGroup, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, selectTriggerVariants };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { RequiredMarkVariant } from '../Input/index.js';
|
|
5
|
+
import 'react';
|
|
4
6
|
|
|
5
7
|
interface SelectOption {
|
|
6
8
|
/** Unique value for the option */
|
|
@@ -23,15 +25,14 @@ declare const selectTriggerVariants: (props?: ({
|
|
|
23
25
|
hasError?: boolean | null | undefined;
|
|
24
26
|
labelVariant?: "stacked" | "floating" | null | undefined;
|
|
25
27
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
26
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Props shared by both single- and multiple-selection modes. Exported so
|
|
30
|
+
* wrapper components can extend the common shape (`SelectProps` itself is a
|
|
31
|
+
* discriminated union, which interfaces cannot extend).
|
|
32
|
+
*/
|
|
33
|
+
interface SelectBaseProps extends Omit<VariantProps<typeof selectTriggerVariants>, 'labelVariant'> {
|
|
27
34
|
/** Array of options or groups */
|
|
28
35
|
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
36
|
/** Placeholder text */
|
|
36
37
|
placeholder?: string;
|
|
37
38
|
/** Whether the select is disabled */
|
|
@@ -52,6 +53,14 @@ interface SelectProps extends Omit<VariantProps<typeof selectTriggerVariants>, '
|
|
|
52
53
|
error?: string;
|
|
53
54
|
/** Helper text */
|
|
54
55
|
helperText?: string;
|
|
56
|
+
/** Whether a selection is required (shows an asterisk next to the label) */
|
|
57
|
+
required?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Color of the required asterisk.
|
|
60
|
+
* - `default`: destructive (hard requirement).
|
|
61
|
+
* - `warning`: warning color (soft requirement / recommended).
|
|
62
|
+
*/
|
|
63
|
+
requiredVariant?: RequiredMarkVariant;
|
|
55
64
|
/** Enable search/filter */
|
|
56
65
|
searchable?: boolean;
|
|
57
66
|
/** Search placeholder */
|
|
@@ -65,6 +74,27 @@ interface SelectProps extends Omit<VariantProps<typeof selectTriggerVariants>, '
|
|
|
65
74
|
/** ID for the select */
|
|
66
75
|
id?: string;
|
|
67
76
|
}
|
|
77
|
+
interface SelectSingleProps extends SelectBaseProps {
|
|
78
|
+
/** Single-selection mode (default). */
|
|
79
|
+
multiple?: false;
|
|
80
|
+
/** Controlled value */
|
|
81
|
+
value?: string;
|
|
82
|
+
/** Default value (uncontrolled) */
|
|
83
|
+
defaultValue?: string;
|
|
84
|
+
/** Callback when value changes */
|
|
85
|
+
onValueChange?: (value: string) => void;
|
|
86
|
+
}
|
|
87
|
+
interface SelectMultipleProps extends SelectBaseProps {
|
|
88
|
+
/** Multiple-selection mode: selecting an option toggles it and keeps the dropdown open. */
|
|
89
|
+
multiple: true;
|
|
90
|
+
/** Controlled values */
|
|
91
|
+
value?: string[];
|
|
92
|
+
/** Default values (uncontrolled) */
|
|
93
|
+
defaultValue?: string[];
|
|
94
|
+
/** Callback when values change */
|
|
95
|
+
onValueChange?: (value: string[]) => void;
|
|
96
|
+
}
|
|
97
|
+
type SelectProps = SelectSingleProps | SelectMultipleProps;
|
|
68
98
|
/**
|
|
69
99
|
* An accessible select/dropdown component with search support.
|
|
70
100
|
*
|
|
@@ -80,11 +110,19 @@ interface SelectProps extends Omit<VariantProps<typeof selectTriggerVariants>, '
|
|
|
80
110
|
* ]}
|
|
81
111
|
* onValueChange={(value) => console.log(value)}
|
|
82
112
|
* />
|
|
113
|
+
*
|
|
114
|
+
* // Multiple selection — value/onValueChange use string[]
|
|
115
|
+
* <Select
|
|
116
|
+
* multiple
|
|
117
|
+
* label="Symptoms"
|
|
118
|
+
* options={options}
|
|
119
|
+
* onValueChange={(values) => console.log(values)}
|
|
120
|
+
* />
|
|
83
121
|
* ```
|
|
84
122
|
*/
|
|
85
|
-
declare function Select(
|
|
123
|
+
declare function Select(props: SelectProps): react_jsx_runtime.JSX.Element;
|
|
86
124
|
declare namespace Select {
|
|
87
125
|
var displayName: string;
|
|
88
126
|
}
|
|
89
127
|
|
|
90
|
-
export { Select, type SelectGroup, type SelectOption, type SelectProps, selectTriggerVariants };
|
|
128
|
+
export { Select, type SelectBaseProps, type SelectGroup, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, selectTriggerVariants };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export { Select, selectTriggerVariants } from '../../chunk-
|
|
1
|
+
export { Select, selectTriggerVariants } from '../../chunk-XBKOZRDO.js';
|
|
2
|
+
import '../../chunk-6NZXWKUE.js';
|
|
3
|
+
import '../../chunk-3IMM2PM4.js';
|
|
2
4
|
import '../../chunk-T4ME7QCT.js';
|
|
3
5
|
import '../../chunk-62ZOA6PX.js';
|
|
4
6
|
import '../../chunk-BOOJDRJO.js';
|
|
@@ -6,11 +6,11 @@ declare const sliderTrackVariants: (props?: ({
|
|
|
6
6
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
7
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
8
|
declare const sliderRangeVariants: (props?: ({
|
|
9
|
-
variant?: "danger" | "default" | "
|
|
9
|
+
variant?: "danger" | "default" | "warning" | "success" | "neutral" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
11
|
declare const sliderThumbVariants: (props?: ({
|
|
12
12
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
13
|
-
variant?: "danger" | "default" | "
|
|
13
|
+
variant?: "danger" | "default" | "warning" | "success" | "neutral" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
15
|
interface SliderProps extends VariantProps<typeof sliderTrackVariants>, VariantProps<typeof sliderRangeVariants> {
|
|
16
16
|
/** Current value (controlled) */
|
|
@@ -6,11 +6,11 @@ declare const sliderTrackVariants: (props?: ({
|
|
|
6
6
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
7
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
8
|
declare const sliderRangeVariants: (props?: ({
|
|
9
|
-
variant?: "danger" | "default" | "
|
|
9
|
+
variant?: "danger" | "default" | "warning" | "success" | "neutral" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
11
|
declare const sliderThumbVariants: (props?: ({
|
|
12
12
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
13
|
-
variant?: "danger" | "default" | "
|
|
13
|
+
variant?: "danger" | "default" | "warning" | "success" | "neutral" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
15
|
interface SliderProps extends VariantProps<typeof sliderTrackVariants>, VariantProps<typeof sliderRangeVariants> {
|
|
16
16
|
/** Current value (controlled) */
|
|
@@ -5,7 +5,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
5
5
|
|
|
6
6
|
declare const spinnerVariants: (props?: ({
|
|
7
7
|
size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
8
|
-
variant?: "
|
|
8
|
+
variant?: "default" | "white" | "muted" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spinnerVariants> {
|
|
11
11
|
/** Accessible label for the spinner */
|
|
@@ -5,7 +5,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
5
5
|
|
|
6
6
|
declare const spinnerVariants: (props?: ({
|
|
7
7
|
size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
8
|
-
variant?: "
|
|
8
|
+
variant?: "default" | "white" | "muted" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spinnerVariants> {
|
|
11
11
|
/** Accessible label for the spinner */
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
var chunkJFLC7SHM_cjs = require('../../chunk-JFLC7SHM.cjs');
|
|
4
4
|
var chunkXS35KPBZ_cjs = require('../../chunk-XS35KPBZ.cjs');
|
|
5
5
|
var chunk26DPQUSB_cjs = require('../../chunk-26DPQUSB.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkBOW7ZGI2_cjs = require('../../chunk-BOW7ZGI2.cjs');
|
|
7
7
|
require('../../chunk-ZZJ4ZVYR.cjs');
|
|
8
8
|
var chunkU3JU6BI5_cjs = require('../../chunk-U3JU6BI5.cjs');
|
|
9
9
|
require('../../chunk-VBWRH4UW.cjs');
|
|
10
10
|
require('../../chunk-I44YNYI6.cjs');
|
|
11
|
-
require('../../chunk-
|
|
11
|
+
require('../../chunk-Z5S5JEJD.cjs');
|
|
12
12
|
var chunkYVL3XATO_cjs = require('../../chunk-YVL3XATO.cjs');
|
|
13
13
|
require('../../chunk-FHY3K6PL.cjs');
|
|
14
14
|
require('../../chunk-FSGEDDF2.cjs');
|
|
@@ -538,7 +538,7 @@ function CopyMenu({ isSelf, markdown, getHtml, getText }) {
|
|
|
538
538
|
open ? "z-[60]" : "z-10"
|
|
539
539
|
),
|
|
540
540
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
541
|
-
|
|
541
|
+
chunkBOW7ZGI2_cjs.Dropdown,
|
|
542
542
|
{
|
|
543
543
|
open,
|
|
544
544
|
onOpenChange: setOpen,
|
|
@@ -554,18 +554,18 @@ function CopyMenu({ isSelf, markdown, getHtml, getText }) {
|
|
|
554
554
|
}
|
|
555
555
|
),
|
|
556
556
|
children: [
|
|
557
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
557
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkBOW7ZGI2_cjs.DropdownItem, { onClick: () => run(writeBoth), children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex flex-col items-start", children: [
|
|
558
558
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Copy" }),
|
|
559
559
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[10px] font-normal text-neutral-400", children: "Rich text + Markdown" })
|
|
560
560
|
] }) }),
|
|
561
561
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
562
|
-
|
|
562
|
+
chunkBOW7ZGI2_cjs.DropdownItem,
|
|
563
563
|
{
|
|
564
564
|
onClick: () => run(() => writeText(markdown || getText())),
|
|
565
565
|
children: "Copy as Markdown"
|
|
566
566
|
}
|
|
567
567
|
),
|
|
568
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
568
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkBOW7ZGI2_cjs.DropdownItem, { onClick: () => run(() => writeText(getText())), children: "Copy as plain text" })
|
|
569
569
|
]
|
|
570
570
|
}
|
|
571
571
|
)
|
|
@@ -2,12 +2,12 @@ import { TextRenderContext } from '../../chunk-I6CY5C6A.js';
|
|
|
2
2
|
export { TextRenderContext, useTextRenderContext } from '../../chunk-I6CY5C6A.js';
|
|
3
3
|
import { ChatBubble, MCPToolCallDisplay, AITypingIndicator, SparklesIcon, CloseIcon } from '../../chunk-RZJXCI53.js';
|
|
4
4
|
import { MessageComposer } from '../../chunk-EKRT7K2K.js';
|
|
5
|
-
import { Dropdown, DropdownItem } from '../../chunk-
|
|
5
|
+
import { Dropdown, DropdownItem } from '../../chunk-LZU7YBXG.js';
|
|
6
6
|
import '../../chunk-XO3WLK65.js';
|
|
7
7
|
import { Avatar } from '../../chunk-DCBMTFLE.js';
|
|
8
8
|
import '../../chunk-IQ4KQJAO.js';
|
|
9
9
|
import '../../chunk-6NZXWKUE.js';
|
|
10
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-3IMM2PM4.js';
|
|
11
11
|
import { Badge } from '../../chunk-BMSG4NBH.js';
|
|
12
12
|
import '../../chunk-T4ME7QCT.js';
|
|
13
13
|
import '../../chunk-62ZOA6PX.js';
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const textVariants: (props?: ({
|
|
6
|
-
variant?: "primary" | "default" | "
|
|
6
|
+
variant?: "primary" | "default" | "warning" | "success" | "destructive" | "muted" | null | undefined;
|
|
7
7
|
size?: "base" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "xs" | null | undefined;
|
|
8
8
|
weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
|
|
9
9
|
align?: "left" | "start" | "right" | "end" | "center" | null | undefined;
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const textVariants: (props?: ({
|
|
6
|
-
variant?: "primary" | "default" | "
|
|
6
|
+
variant?: "primary" | "default" | "warning" | "success" | "destructive" | "muted" | null | undefined;
|
|
7
7
|
size?: "base" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "xs" | null | undefined;
|
|
8
8
|
weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
|
|
9
9
|
align?: "left" | "start" | "right" | "end" | "center" | null | undefined;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBSDBI6H7_cjs = require('../../chunk-BSDBI6H7.cjs');
|
|
4
|
+
require('../../chunk-I44YNYI6.cjs');
|
|
5
|
+
require('../../chunk-Z5S5JEJD.cjs');
|
|
4
6
|
require('../../chunk-S5RVSXDV.cjs');
|
|
5
7
|
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
Object.defineProperty(exports, "Textarea", {
|
|
9
11
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkBSDBI6H7_cjs.Textarea; }
|
|
11
13
|
});
|
|
12
14
|
Object.defineProperty(exports, "textareaVariants", {
|
|
13
15
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkBSDBI6H7_cjs.textareaVariants; }
|
|
15
17
|
});
|
|
16
18
|
//# sourceMappingURL=index.cjs.map
|
|
17
19
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { RequiredMarkVariant } from '../Input/index.cjs';
|
|
5
|
+
import 'react/jsx-runtime';
|
|
4
6
|
|
|
5
7
|
declare const textareaVariants: (props?: ({
|
|
6
8
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -32,6 +34,12 @@ interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaEl
|
|
|
32
34
|
showCount?: boolean;
|
|
33
35
|
/** Auto-resize based on content */
|
|
34
36
|
autoResize?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Color of the required asterisk.
|
|
39
|
+
* - `default`: destructive (hard requirement).
|
|
40
|
+
* - `warning`: warning color (soft requirement / recommended).
|
|
41
|
+
*/
|
|
42
|
+
requiredVariant?: RequiredMarkVariant;
|
|
35
43
|
}
|
|
36
44
|
/**
|
|
37
45
|
* A multi-line text input component with character count and auto-resize.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { RequiredMarkVariant } from '../Input/index.js';
|
|
5
|
+
import 'react/jsx-runtime';
|
|
4
6
|
|
|
5
7
|
declare const textareaVariants: (props?: ({
|
|
6
8
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -32,6 +34,12 @@ interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaEl
|
|
|
32
34
|
showCount?: boolean;
|
|
33
35
|
/** Auto-resize based on content */
|
|
34
36
|
autoResize?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Color of the required asterisk.
|
|
39
|
+
* - `default`: destructive (hard requirement).
|
|
40
|
+
* - `warning`: warning color (soft requirement / recommended).
|
|
41
|
+
*/
|
|
42
|
+
requiredVariant?: RequiredMarkVariant;
|
|
35
43
|
}
|
|
36
44
|
/**
|
|
37
45
|
* A multi-line text input component with character count and auto-resize.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export { Textarea, textareaVariants } from '../../chunk-
|
|
1
|
+
export { Textarea, textareaVariants } from '../../chunk-H3YO5GBM.js';
|
|
2
|
+
import '../../chunk-6NZXWKUE.js';
|
|
3
|
+
import '../../chunk-3IMM2PM4.js';
|
|
2
4
|
import '../../chunk-TQONQSJO.js';
|
|
3
5
|
//# sourceMappingURL=index.js.map
|
|
4
6
|
//# sourceMappingURL=index.js.map
|
package/dist/esheet.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunk35HHCXWC_cjs = require('./chunk-35HHCXWC.cjs');
|
|
4
|
+
require('./chunk-BSDBI6H7.cjs');
|
|
5
5
|
require('./chunk-WWJIW2IH.cjs');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-G7EQ3JPX.cjs');
|
|
7
7
|
require('./chunk-AIJAFPGJ.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-56QJHQ5C.cjs');
|
|
9
9
|
require('./chunk-MJWFNV3L.cjs');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-U5TTXN45.cjs');
|
|
11
11
|
require('./chunk-P2VTQ5AR.cjs');
|
|
12
12
|
require('./chunk-I44YNYI6.cjs');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-Z5S5JEJD.cjs');
|
|
14
14
|
require('./chunk-PAM5UUBL.cjs');
|
|
15
15
|
require('./chunk-RDGRKYQ5.cjs');
|
|
16
16
|
require('./chunk-YVL3XATO.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
|
+
chunk35HHCXWC_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 = chunk35HHCXWC_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
|
+
chunk35HHCXWC_cjs.AllergyManager,
|
|
149
149
|
{
|
|
150
150
|
allergies: value.allergies,
|
|
151
151
|
onChange: (allergies) => commit({
|
package/dist/esheet.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { MedicationReconciliation, useCodeLookupConfig, AllergyManager } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { MedicationReconciliation, useCodeLookupConfig, AllergyManager } from './chunk-33TQ25IK.js';
|
|
2
|
+
import './chunk-H3YO5GBM.js';
|
|
3
3
|
import './chunk-FJ7YPVKV.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-EPSB4WTL.js';
|
|
5
5
|
import './chunk-I3WGZPI6.js';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-XBKOZRDO.js';
|
|
7
7
|
import './chunk-QYSUYB3S.js';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-IILJGFI5.js';
|
|
9
9
|
import './chunk-XMCIXHGH.js';
|
|
10
10
|
import './chunk-6NZXWKUE.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-3IMM2PM4.js';
|
|
12
12
|
import './chunk-3PXOIAF6.js';
|
|
13
13
|
import './chunk-D2GID3YK.js';
|
|
14
14
|
import './chunk-BMSG4NBH.js';
|