@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.
Files changed (109) hide show
  1. package/dist/{chunk-3X4GPM35.js → chunk-33TQ25IK.js} +7 -7
  2. package/dist/{chunk-3X4GPM35.js.map → chunk-33TQ25IK.js.map} +1 -1
  3. package/dist/{chunk-WWIBIUWT.cjs → chunk-35HHCXWC.cjs} +36 -36
  4. package/dist/{chunk-WWIBIUWT.cjs.map → chunk-35HHCXWC.cjs.map} +1 -1
  5. package/dist/{chunk-FXTNCCD2.js → chunk-3IMM2PM4.js} +20 -4
  6. package/dist/chunk-3IMM2PM4.js.map +1 -0
  7. package/dist/{chunk-VAKZEVDE.cjs → chunk-56QJHQ5C.cjs} +79 -41
  8. package/dist/chunk-56QJHQ5C.cjs.map +1 -0
  9. package/dist/{chunk-DMIQS5KK.js → chunk-753Z3NXL.js} +3 -3
  10. package/dist/{chunk-DMIQS5KK.js.map → chunk-753Z3NXL.js.map} +1 -1
  11. package/dist/{chunk-SMGNJGFT.cjs → chunk-7AECNMYV.cjs} +5 -5
  12. package/dist/{chunk-SMGNJGFT.cjs.map → chunk-7AECNMYV.cjs.map} +1 -1
  13. package/dist/{chunk-UGJFT2QF.js → chunk-A5YOIJKL.js} +5 -5
  14. package/dist/{chunk-UGJFT2QF.js.map → chunk-A5YOIJKL.js.map} +1 -1
  15. package/dist/{chunk-N7JVAXHD.cjs → chunk-BOW7ZGI2.cjs} +4 -4
  16. package/dist/{chunk-N7JVAXHD.cjs.map → chunk-BOW7ZGI2.cjs.map} +1 -1
  17. package/dist/{chunk-NHR33YWI.cjs → chunk-BSDBI6H7.cjs} +17 -6
  18. package/dist/chunk-BSDBI6H7.cjs.map +1 -0
  19. package/dist/{chunk-CLT4ASY7.js → chunk-EPSB4WTL.js} +3 -3
  20. package/dist/{chunk-CLT4ASY7.js.map → chunk-EPSB4WTL.js.map} +1 -1
  21. package/dist/{chunk-G6GJXVQC.cjs → chunk-G7EQ3JPX.cjs} +5 -5
  22. package/dist/{chunk-G6GJXVQC.cjs.map → chunk-G7EQ3JPX.cjs.map} +1 -1
  23. package/dist/{chunk-PCWIN32O.cjs → chunk-GQVL2JKQ.cjs} +4 -4
  24. package/dist/{chunk-PCWIN32O.cjs.map → chunk-GQVL2JKQ.cjs.map} +1 -1
  25. package/dist/{chunk-6H7NO5XX.js → chunk-GXODR6V4.js} +3 -3
  26. package/dist/{chunk-6H7NO5XX.js.map → chunk-GXODR6V4.js.map} +1 -1
  27. package/dist/{chunk-GP5CRU2I.js → chunk-H3YO5GBM.js} +17 -6
  28. package/dist/chunk-H3YO5GBM.js.map +1 -0
  29. package/dist/{chunk-UZJDXFQE.cjs → chunk-HUDYTCTT.cjs} +4 -4
  30. package/dist/{chunk-UZJDXFQE.cjs.map → chunk-HUDYTCTT.cjs.map} +1 -1
  31. package/dist/{chunk-UHVNVZ7L.js → chunk-IILJGFI5.js} +5 -4
  32. package/dist/chunk-IILJGFI5.js.map +1 -0
  33. package/dist/{chunk-LFSP53TY.cjs → chunk-KVE7PQ5P.cjs} +7 -7
  34. package/dist/{chunk-LFSP53TY.cjs.map → chunk-KVE7PQ5P.cjs.map} +1 -1
  35. package/dist/{chunk-DIL553SJ.cjs → chunk-LQHI44OZ.cjs} +13 -13
  36. package/dist/{chunk-DIL553SJ.cjs.map → chunk-LQHI44OZ.cjs.map} +1 -1
  37. package/dist/{chunk-GV3DE6KR.js → chunk-LZU7YBXG.js} +3 -3
  38. package/dist/{chunk-GV3DE6KR.js.map → chunk-LZU7YBXG.js.map} +1 -1
  39. package/dist/{chunk-ICMR3TYV.js → chunk-QHTDWIED.js} +3 -3
  40. package/dist/{chunk-ICMR3TYV.js.map → chunk-QHTDWIED.js.map} +1 -1
  41. package/dist/{chunk-3KY5W3ZN.cjs → chunk-U5TTXN45.cjs} +9 -8
  42. package/dist/chunk-U5TTXN45.cjs.map +1 -0
  43. package/dist/{chunk-U35KWHXP.js → chunk-XBKOZRDO.js} +79 -41
  44. package/dist/chunk-XBKOZRDO.js.map +1 -0
  45. package/dist/{chunk-F7CQ5RO7.cjs → chunk-Z5S5JEJD.cjs} +20 -3
  46. package/dist/chunk-Z5S5JEJD.cjs.map +1 -0
  47. package/dist/{chunk-WUPT5SUN.js → chunk-ZIE52CWX.js} +3 -3
  48. package/dist/{chunk-WUPT5SUN.js.map → chunk-ZIE52CWX.js.map} +1 -1
  49. package/dist/components/Alert/index.d.cts +1 -1
  50. package/dist/components/Alert/index.d.ts +1 -1
  51. package/dist/components/Autocomplete/index.cjs +3 -3
  52. package/dist/components/Autocomplete/index.js +2 -2
  53. package/dist/components/Badge/index.d.cts +1 -1
  54. package/dist/components/Badge/index.d.ts +1 -1
  55. package/dist/components/Card/index.d.cts +1 -1
  56. package/dist/components/Card/index.d.ts +1 -1
  57. package/dist/components/Checkbox/index.cjs +5 -5
  58. package/dist/components/Checkbox/index.js +2 -2
  59. package/dist/components/DateInput/index.cjs +3 -3
  60. package/dist/components/DateInput/index.d.cts +1 -0
  61. package/dist/components/DateInput/index.d.ts +1 -0
  62. package/dist/components/DateInput/index.js +2 -2
  63. package/dist/components/Dropdown/index.cjs +8 -8
  64. package/dist/components/Dropdown/index.js +2 -2
  65. package/dist/components/Input/index.cjs +10 -6
  66. package/dist/components/Input/index.d.cts +13 -1
  67. package/dist/components/Input/index.d.ts +13 -1
  68. package/dist/components/Input/index.js +1 -1
  69. package/dist/components/MediaEditor/index.cjs +9 -9
  70. package/dist/components/MediaEditor/index.js +4 -4
  71. package/dist/components/PhoneInput/index.cjs +4 -4
  72. package/dist/components/PhoneInput/index.js +2 -2
  73. package/dist/components/Progress/index.d.cts +1 -1
  74. package/dist/components/Progress/index.d.ts +1 -1
  75. package/dist/components/Radio/index.cjs +5 -5
  76. package/dist/components/Radio/index.js +2 -2
  77. package/dist/components/RichTextEditor/index.cjs +6 -6
  78. package/dist/components/RichTextEditor/index.js +3 -3
  79. package/dist/components/Select/index.cjs +5 -3
  80. package/dist/components/Select/index.d.cts +47 -9
  81. package/dist/components/Select/index.d.ts +47 -9
  82. package/dist/components/Select/index.js +3 -1
  83. package/dist/components/Slider/index.d.cts +2 -2
  84. package/dist/components/Slider/index.d.ts +2 -2
  85. package/dist/components/Spinner/index.d.cts +1 -1
  86. package/dist/components/Spinner/index.d.ts +1 -1
  87. package/dist/components/SuperChat/index.cjs +6 -6
  88. package/dist/components/SuperChat/index.js +2 -2
  89. package/dist/components/Text/index.d.cts +1 -1
  90. package/dist/components/Text/index.d.ts +1 -1
  91. package/dist/components/Textarea/index.cjs +5 -3
  92. package/dist/components/Textarea/index.d.cts +8 -0
  93. package/dist/components/Textarea/index.d.ts +8 -0
  94. package/dist/components/Textarea/index.js +3 -1
  95. package/dist/esheet.cjs +9 -9
  96. package/dist/esheet.js +6 -6
  97. package/dist/index.cjs +295 -291
  98. package/dist/index.d.cts +7 -7
  99. package/dist/index.d.ts +7 -7
  100. package/dist/index.js +20 -20
  101. package/package.json +1 -1
  102. package/dist/chunk-3KY5W3ZN.cjs.map +0 -1
  103. package/dist/chunk-F7CQ5RO7.cjs.map +0 -1
  104. package/dist/chunk-FXTNCCD2.js.map +0 -1
  105. package/dist/chunk-GP5CRU2I.js.map +0 -1
  106. package/dist/chunk-NHR33YWI.cjs.map +0 -1
  107. package/dist/chunk-U35KWHXP.js.map +0 -1
  108. package/dist/chunk-UHVNVZ7L.js.map +0 -1
  109. package/dist/chunk-VAKZEVDE.cjs.map +0 -1
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkLFSP53TY_cjs = require('../../chunk-LFSP53TY.cjs');
3
+ var chunkKVE7PQ5P_cjs = require('../../chunk-KVE7PQ5P.cjs');
4
4
  require('../../chunk-YP5T6NZD.cjs');
5
- require('../../chunk-N7JVAXHD.cjs');
5
+ require('../../chunk-BOW7ZGI2.cjs');
6
6
  require('../../chunk-I44YNYI6.cjs');
7
- require('../../chunk-F7CQ5RO7.cjs');
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 chunkLFSP53TY_cjs.RichTextEditor; }
19
+ get: function () { return chunkKVE7PQ5P_cjs.RichTextEditor; }
20
20
  });
21
21
  Object.defineProperty(exports, "convertAngleBracketsToMustache", {
22
22
  enumerable: true,
23
- get: function () { return chunkLFSP53TY_cjs.convertAngleBracketsToMustache; }
23
+ get: function () { return chunkKVE7PQ5P_cjs.convertAngleBracketsToMustache; }
24
24
  });
25
25
  Object.defineProperty(exports, "processDictation", {
26
26
  enumerable: true,
27
- get: function () { return chunkLFSP53TY_cjs.processDictation; }
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-ICMR3TYV.js';
1
+ export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from '../../chunk-QHTDWIED.js';
2
2
  import '../../chunk-OQWZYKJM.js';
3
- import '../../chunk-GV3DE6KR.js';
3
+ import '../../chunk-LZU7YBXG.js';
4
4
  import '../../chunk-6NZXWKUE.js';
5
- import '../../chunk-FXTNCCD2.js';
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 chunkVAKZEVDE_cjs = require('../../chunk-VAKZEVDE.cjs');
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 chunkVAKZEVDE_cjs.Select; }
15
+ get: function () { return chunk56QJHQ5C_cjs.Select; }
14
16
  });
15
17
  Object.defineProperty(exports, "selectTriggerVariants", {
16
18
  enumerable: true,
17
- get: function () { return chunkVAKZEVDE_cjs.selectTriggerVariants; }
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
- interface SelectProps extends Omit<VariantProps<typeof selectTriggerVariants>, 'labelVariant'> {
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({ options, value: controlledValue, defaultValue, onValueChange, placeholder, disabled, label, hideLabel, labelVariant, error, helperText, size, hasError, 'aria-label': ariaLabel, searchable, searchPlaceholder, noResultsText, className, id, }: SelectProps): react_jsx_runtime.JSX.Element;
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
- interface SelectProps extends Omit<VariantProps<typeof selectTriggerVariants>, 'labelVariant'> {
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({ options, value: controlledValue, defaultValue, onValueChange, placeholder, disabled, label, hideLabel, labelVariant, error, helperText, size, hasError, 'aria-label': ariaLabel, searchable, searchPlaceholder, noResultsText, className, id, }: SelectProps): react_jsx_runtime.JSX.Element;
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-U35KWHXP.js';
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" | "success" | "warning" | "neutral" | null | undefined;
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" | "success" | "warning" | "neutral" | null | undefined;
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" | "success" | "warning" | "neutral" | null | undefined;
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" | "success" | "warning" | "neutral" | null | undefined;
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?: "white" | "default" | "muted" | null | undefined;
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?: "white" | "default" | "muted" | null | undefined;
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 chunkN7JVAXHD_cjs = require('../../chunk-N7JVAXHD.cjs');
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-F7CQ5RO7.cjs');
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
- chunkN7JVAXHD_cjs.Dropdown,
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(chunkN7JVAXHD_cjs.DropdownItem, { onClick: () => run(writeBoth), children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex flex-col items-start", children: [
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
- chunkN7JVAXHD_cjs.DropdownItem,
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(chunkN7JVAXHD_cjs.DropdownItem, { onClick: () => run(() => writeText(getText())), children: "Copy as plain text" })
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-GV3DE6KR.js';
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-FXTNCCD2.js';
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" | "success" | "warning" | "destructive" | "muted" | null | undefined;
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" | "success" | "warning" | "destructive" | "muted" | null | undefined;
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 chunkNHR33YWI_cjs = require('../../chunk-NHR33YWI.cjs');
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 chunkNHR33YWI_cjs.Textarea; }
12
+ get: function () { return chunkBSDBI6H7_cjs.Textarea; }
11
13
  });
12
14
  Object.defineProperty(exports, "textareaVariants", {
13
15
  enumerable: true,
14
- get: function () { return chunkNHR33YWI_cjs.textareaVariants; }
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-GP5CRU2I.js';
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 chunkWWIBIUWT_cjs = require('./chunk-WWIBIUWT.cjs');
4
- require('./chunk-NHR33YWI.cjs');
3
+ var chunk35HHCXWC_cjs = require('./chunk-35HHCXWC.cjs');
4
+ require('./chunk-BSDBI6H7.cjs');
5
5
  require('./chunk-WWJIW2IH.cjs');
6
- require('./chunk-G6GJXVQC.cjs');
6
+ require('./chunk-G7EQ3JPX.cjs');
7
7
  require('./chunk-AIJAFPGJ.cjs');
8
- require('./chunk-VAKZEVDE.cjs');
8
+ require('./chunk-56QJHQ5C.cjs');
9
9
  require('./chunk-MJWFNV3L.cjs');
10
- require('./chunk-3KY5W3ZN.cjs');
10
+ require('./chunk-U5TTXN45.cjs');
11
11
  require('./chunk-P2VTQ5AR.cjs');
12
12
  require('./chunk-I44YNYI6.cjs');
13
- require('./chunk-F7CQ5RO7.cjs');
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
- chunkWWIBIUWT_cjs.MedicationReconciliation,
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 = chunkWWIBIUWT_cjs.useCodeLookupConfig();
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
- chunkWWIBIUWT_cjs.AllergyManager,
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-3X4GPM35.js';
2
- import './chunk-GP5CRU2I.js';
1
+ import { MedicationReconciliation, useCodeLookupConfig, AllergyManager } from './chunk-33TQ25IK.js';
2
+ import './chunk-H3YO5GBM.js';
3
3
  import './chunk-FJ7YPVKV.js';
4
- import './chunk-CLT4ASY7.js';
4
+ import './chunk-EPSB4WTL.js';
5
5
  import './chunk-I3WGZPI6.js';
6
- import './chunk-U35KWHXP.js';
6
+ import './chunk-XBKOZRDO.js';
7
7
  import './chunk-QYSUYB3S.js';
8
- import './chunk-UHVNVZ7L.js';
8
+ import './chunk-IILJGFI5.js';
9
9
  import './chunk-XMCIXHGH.js';
10
10
  import './chunk-6NZXWKUE.js';
11
- import './chunk-FXTNCCD2.js';
11
+ import './chunk-3IMM2PM4.js';
12
12
  import './chunk-3PXOIAF6.js';
13
13
  import './chunk-D2GID3YK.js';
14
14
  import './chunk-BMSG4NBH.js';