@mieweb/ui 0.7.3-dev.27 → 0.7.3-dev.29
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/brands/index.cjs +12 -12
- package/dist/brands/index.js +3 -3
- package/dist/chunk-3SHLOF4V.cjs +128 -0
- package/dist/chunk-3SHLOF4V.cjs.map +1 -0
- package/dist/{chunk-KASJE4NM.cjs → chunk-5YNONC7I.cjs} +21 -2
- package/dist/chunk-5YNONC7I.cjs.map +1 -0
- package/dist/{chunk-Z4PECE5S.js → chunk-6XTHO63C.js} +2 -2
- package/dist/{chunk-Z4PECE5S.js.map → chunk-6XTHO63C.js.map} +1 -1
- package/dist/chunk-7RV6CAP6.cjs +106 -0
- package/dist/chunk-7RV6CAP6.cjs.map +1 -0
- package/dist/{chunk-FVPMBLPH.js → chunk-BZEOMAPP.js} +21 -2
- package/dist/chunk-BZEOMAPP.js.map +1 -0
- package/dist/chunk-CG4ZKJLE.js +84 -0
- package/dist/chunk-CG4ZKJLE.js.map +1 -0
- package/dist/{chunk-TWZDJ2D5.js → chunk-IYXCFIMP.js} +3 -3
- package/dist/{chunk-TWZDJ2D5.js.map → chunk-IYXCFIMP.js.map} +1 -1
- package/dist/{chunk-RBEQQ4GG.cjs → chunk-JWTCEWQ4.cjs} +2 -2
- package/dist/{chunk-RBEQQ4GG.cjs.map → chunk-JWTCEWQ4.cjs.map} +1 -1
- package/dist/{chunk-7OL52QUW.cjs → chunk-SK7H3Z67.cjs} +3 -3
- package/dist/{chunk-7OL52QUW.cjs.map → chunk-SK7H3Z67.cjs.map} +1 -1
- package/dist/{chunk-DSSMQH74.js → chunk-TXRQQMG5.js} +2 -2
- package/dist/{chunk-DSSMQH74.js.map → chunk-TXRQQMG5.js.map} +1 -1
- package/dist/{chunk-LJBWCUKP.cjs → chunk-WKCNNYHN.cjs} +2 -2
- package/dist/{chunk-LJBWCUKP.cjs.map → chunk-WKCNNYHN.cjs.map} +1 -1
- package/dist/chunk-X5ZPYYMS.js +105 -0
- package/dist/chunk-X5ZPYYMS.js.map +1 -0
- package/dist/components/KeyboardShortcutsOverlay/index.cjs +21 -0
- package/dist/components/KeyboardShortcutsOverlay/index.cjs.map +1 -0
- package/dist/components/KeyboardShortcutsOverlay/index.d.cts +54 -0
- package/dist/components/KeyboardShortcutsOverlay/index.d.ts +54 -0
- package/dist/components/KeyboardShortcutsOverlay/index.js +8 -0
- package/dist/components/KeyboardShortcutsOverlay/index.js.map +1 -0
- package/dist/components/Markdown/index.cjs +15 -15
- package/dist/components/Markdown/index.js +3 -3
- package/dist/components/Sparkline/index.cjs +13 -0
- package/dist/components/Sparkline/index.cjs.map +1 -0
- package/dist/components/Sparkline/index.d.cts +53 -0
- package/dist/components/Sparkline/index.d.ts +53 -0
- package/dist/components/Sparkline/index.js +4 -0
- package/dist/components/Sparkline/index.js.map +1 -0
- package/dist/esheet.cjs +5 -5
- package/dist/esheet.js +2 -2
- package/dist/index.cjs +141 -127
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -17
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind-preset.cjs +4 -4
- package/dist/tailwind-preset.js +1 -1
- package/dist/utils/index.cjs +9 -9
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-FVPMBLPH.js.map +0 -1
- package/dist/chunk-KASJE4NM.cjs.map +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface SparklinePoint {
|
|
4
|
+
/** Stable key for selection (e.g. a day key like "2026-08-22"). */
|
|
5
|
+
key: string;
|
|
6
|
+
/** Human label for tooltips and accessible names (defaults to key). */
|
|
7
|
+
label?: string;
|
|
8
|
+
value: number;
|
|
9
|
+
}
|
|
10
|
+
interface SparklineProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
11
|
+
/** Pre-bucketed points in display order (e.g. one per day). */
|
|
12
|
+
data: SparklinePoint[];
|
|
13
|
+
/** Selected point key — that bar is highlighted. */
|
|
14
|
+
selectedKey?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Makes bars clickable; clicking the selected bar reports `null`
|
|
17
|
+
* (deselect). Omit for a read-only sparkline.
|
|
18
|
+
*/
|
|
19
|
+
onSelect?: (key: string | null) => void;
|
|
20
|
+
/** Track label rendered before the bars (e.g. "All activity"). */
|
|
21
|
+
label?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Accessible name for the bar group. Defaults to the visible `label`
|
|
24
|
+
* (so multiple tracks stay distinguishable), else "Activity over time".
|
|
25
|
+
*/
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
/** Bar track height in px (default 32). */
|
|
28
|
+
height?: number;
|
|
29
|
+
/** Formats the value for tooltips/accessible names (default `String`). */
|
|
30
|
+
formatValue?: (point: SparklinePoint) => string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A compact bar sparkline for activity-over-time strips — timelines,
|
|
34
|
+
* table rows, dashboard headers. Bars scale to the series maximum;
|
|
35
|
+
* zero-value bars render as a low baseline stub. With `onSelect`, bars
|
|
36
|
+
* become toggle buttons for filtering the view to one bucket.
|
|
37
|
+
*
|
|
38
|
+
* Data arrives pre-bucketed (the host owns date math), keeping the
|
|
39
|
+
* component pure. For full charting, reach for DataVis instead.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* <Sparkline
|
|
44
|
+
* label="All activity"
|
|
45
|
+
* data={days.map((d) => ({ key: d.iso, label: d.pretty, value: d.count }))}
|
|
46
|
+
* selectedKey={day}
|
|
47
|
+
* onSelect={setDay}
|
|
48
|
+
* />
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
declare const Sparkline: React.ForwardRefExoticComponent<SparklineProps & React.RefAttributes<HTMLDivElement>>;
|
|
52
|
+
|
|
53
|
+
export { Sparkline, type SparklinePoint, type SparklineProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/esheet.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-WWJIW2IH.cjs');
|
|
3
|
+
var chunkSK7H3Z67_cjs = require('./chunk-SK7H3Z67.cjs');
|
|
5
4
|
require('./chunk-BSDBI6H7.cjs');
|
|
5
|
+
require('./chunk-WWJIW2IH.cjs');
|
|
6
6
|
require('./chunk-G7EQ3JPX.cjs');
|
|
7
7
|
require('./chunk-AIJAFPGJ.cjs');
|
|
8
8
|
require('./chunk-56QJHQ5C.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
|
+
chunkSK7H3Z67_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 = chunkSK7H3Z67_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
|
+
chunkSK7H3Z67_cjs.AllergyManager,
|
|
149
149
|
{
|
|
150
150
|
allergies: value.allergies,
|
|
151
151
|
onChange: (allergies) => commit({
|
package/dist/esheet.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MedicationReconciliation, useCodeLookupConfig, AllergyManager } from './chunk-
|
|
2
|
-
import './chunk-FJ7YPVKV.js';
|
|
1
|
+
import { MedicationReconciliation, useCodeLookupConfig, AllergyManager } from './chunk-IYXCFIMP.js';
|
|
3
2
|
import './chunk-H3YO5GBM.js';
|
|
3
|
+
import './chunk-FJ7YPVKV.js';
|
|
4
4
|
import './chunk-EPSB4WTL.js';
|
|
5
5
|
import './chunk-I3WGZPI6.js';
|
|
6
6
|
import './chunk-XBKOZRDO.js';
|