@mieweb/ui 0.10.0-dev.6 → 0.10.0-dev.8
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/agent/mieweb-ui.instructions.md +13 -1
- package/dist/brands/index.cjs +13 -13
- package/dist/brands/index.js +1 -1
- package/dist/chunk-3YBS4WUQ.js +52 -0
- package/dist/chunk-3YBS4WUQ.js.map +1 -0
- package/dist/chunk-4IS3QCOQ.cjs +453 -0
- package/dist/chunk-4IS3QCOQ.cjs.map +1 -0
- package/dist/chunk-4NCDU5IG.cjs +56 -0
- package/dist/chunk-4NCDU5IG.cjs.map +1 -0
- package/dist/chunk-76TBQDED.js +166 -0
- package/dist/chunk-76TBQDED.js.map +1 -0
- package/dist/{chunk-JI244Y7C.js → chunk-7G3ZIYFY.js} +13 -3
- package/dist/chunk-7G3ZIYFY.js.map +1 -0
- package/dist/chunk-DZ5HFLRC.js +258 -0
- package/dist/chunk-DZ5HFLRC.js.map +1 -0
- package/dist/{chunk-U42F3HLE.cjs → chunk-EZSSESEU.cjs} +13 -3
- package/dist/chunk-EZSSESEU.cjs.map +1 -0
- package/dist/chunk-G4D6CLBT.js +333 -0
- package/dist/chunk-G4D6CLBT.js.map +1 -0
- package/dist/chunk-IT775BYG.js +179 -0
- package/dist/chunk-IT775BYG.js.map +1 -0
- package/dist/{chunk-ELPW32ZI.cjs → chunk-KQUI4BGS.cjs} +3 -3
- package/dist/{chunk-ELPW32ZI.cjs.map → chunk-KQUI4BGS.cjs.map} +1 -1
- package/dist/{chunk-WNM7IZJ7.js → chunk-MNILXWVY.js} +2 -2
- package/dist/{chunk-WNM7IZJ7.js.map → chunk-MNILXWVY.js.map} +1 -1
- package/dist/chunk-OCSCBB52.cjs +188 -0
- package/dist/chunk-OCSCBB52.cjs.map +1 -0
- package/dist/{chunk-2YCERQWC.js → chunk-TVTIGV7Q.js} +3 -3
- package/dist/{chunk-2YCERQWC.js.map → chunk-TVTIGV7Q.js.map} +1 -1
- package/dist/chunk-URAQIF67.cjs +356 -0
- package/dist/chunk-URAQIF67.cjs.map +1 -0
- package/dist/chunk-VINZZQBD.cjs +323 -0
- package/dist/chunk-VINZZQBD.cjs.map +1 -0
- package/dist/chunk-XDIMTPZU.cjs +202 -0
- package/dist/chunk-XDIMTPZU.cjs.map +1 -0
- package/dist/chunk-XVW5DPPP.js +429 -0
- package/dist/chunk-XVW5DPPP.js.map +1 -0
- package/dist/chunk-XZNN3S3S.cjs +281 -0
- package/dist/chunk-XZNN3S3S.cjs.map +1 -0
- package/dist/chunk-Y4QNLW7W.js +300 -0
- package/dist/chunk-Y4QNLW7W.js.map +1 -0
- package/dist/{chunk-2QKBTPUC.cjs → chunk-ZPSJ2UV6.cjs} +2 -2
- package/dist/{chunk-2QKBTPUC.cjs.map → chunk-ZPSJ2UV6.cjs.map} +1 -1
- package/dist/components/BoardView/index.cjs +24 -0
- package/dist/components/BoardView/index.cjs.map +1 -0
- package/dist/components/BoardView/index.d.cts +42 -0
- package/dist/components/BoardView/index.d.ts +42 -0
- package/dist/components/BoardView/index.js +7 -0
- package/dist/components/BoardView/index.js.map +1 -0
- package/dist/components/CalendarView/index.cjs +22 -0
- package/dist/components/CalendarView/index.cjs.map +1 -0
- package/dist/components/CalendarView/index.d.cts +40 -0
- package/dist/components/CalendarView/index.d.ts +40 -0
- package/dist/components/CalendarView/index.js +9 -0
- package/dist/components/CalendarView/index.js.map +1 -0
- package/dist/components/GanttView/index.cjs +20 -0
- package/dist/components/GanttView/index.cjs.map +1 -0
- package/dist/components/GanttView/index.d.cts +37 -0
- package/dist/components/GanttView/index.d.ts +37 -0
- package/dist/components/GanttView/index.js +7 -0
- package/dist/components/GanttView/index.js.map +1 -0
- package/dist/components/ListView/index.cjs +22 -0
- package/dist/components/ListView/index.cjs.map +1 -0
- package/dist/components/ListView/index.d.cts +37 -0
- package/dist/components/ListView/index.d.ts +37 -0
- package/dist/components/ListView/index.js +9 -0
- package/dist/components/ListView/index.js.map +1 -0
- package/dist/components/Markdown/index.cjs +15 -15
- package/dist/components/Markdown/index.js +3 -3
- package/dist/components/QuickAction/index.d.cts +1 -1
- package/dist/components/QuickAction/index.d.ts +1 -1
- package/dist/components/SuperChat/index.cjs +185 -159
- package/dist/components/SuperChat/index.cjs.map +1 -1
- package/dist/components/SuperChat/index.js +185 -159
- package/dist/components/SuperChat/index.js.map +1 -1
- package/dist/components/ViewSet/index.cjs +23 -0
- package/dist/components/ViewSet/index.cjs.map +1 -0
- package/dist/components/ViewSet/index.d.cts +89 -0
- package/dist/components/ViewSet/index.d.ts +89 -0
- package/dist/components/ViewSet/index.js +14 -0
- package/dist/components/ViewSet/index.js.map +1 -0
- package/dist/components/ViewSwitcher/index.cjs +20 -0
- package/dist/components/ViewSwitcher/index.cjs.map +1 -0
- package/dist/components/ViewSwitcher/index.d.cts +40 -0
- package/dist/components/ViewSwitcher/index.d.ts +40 -0
- package/dist/components/ViewSwitcher/index.js +7 -0
- package/dist/components/ViewSwitcher/index.js.map +1 -0
- package/dist/esheet.cjs +5 -5
- package/dist/esheet.js +2 -2
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +439 -372
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +57 -50
- 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/types-CbWXIKbe.d.cts +119 -0
- package/dist/types-CbWXIKbe.d.ts +119 -0
- package/package.json +1 -1
- package/dist/chunk-JI244Y7C.js.map +0 -1
- package/dist/chunk-U42F3HLE.cjs.map +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkOCSCBB52_cjs = require('../../chunk-OCSCBB52.cjs');
|
|
4
|
+
require('../../chunk-XDIMTPZU.cjs');
|
|
5
|
+
require('../../chunk-XZNN3S3S.cjs');
|
|
6
|
+
require('../../chunk-VINZZQBD.cjs');
|
|
7
|
+
require('../../chunk-4IS3QCOQ.cjs');
|
|
8
|
+
require('../../chunk-URAQIF67.cjs');
|
|
9
|
+
require('../../chunk-4NCDU5IG.cjs');
|
|
10
|
+
require('../../chunk-XXVUHLQN.cjs');
|
|
11
|
+
require('../../chunk-L7L5S2HO.cjs');
|
|
12
|
+
require('../../chunk-VNYW4C4J.cjs');
|
|
13
|
+
require('../../chunk-S5RVSXDV.cjs');
|
|
14
|
+
require('../../chunk-EUAMEVVI.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
Object.defineProperty(exports, "ViewSet", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunkOCSCBB52_cjs.ViewSet; }
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=index.cjs.map
|
|
23
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { ViewOption } from '../ViewSwitcher/index.cjs';
|
|
4
|
+
import { ListViewProps } from '../ListView/index.cjs';
|
|
5
|
+
import { BoardLabels, BoardViewProps } from '../BoardView/index.cjs';
|
|
6
|
+
import { CalendarLabels, CalendarViewProps } from '../CalendarView/index.cjs';
|
|
7
|
+
import { GanttLabels, GanttViewProps } from '../GanttView/index.cjs';
|
|
8
|
+
import { a as ViewBaseProps, b as ViewId, S as Stage } from '../../types-CbWXIKbe.cjs';
|
|
9
|
+
import 'class-variance-authority/types';
|
|
10
|
+
import 'class-variance-authority';
|
|
11
|
+
import 'luxon';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Every string any layout in the set can render.
|
|
15
|
+
*
|
|
16
|
+
* Each view extends `ViewLabels` with its own — the calendar's month arrows and
|
|
17
|
+
* "+n more", the board's move announcements, the Gantt's undated footnote. They
|
|
18
|
+
* are all shared props, so the per-view escape hatches below exclude `labels`;
|
|
19
|
+
* without widening here a non-English host could translate the common strings
|
|
20
|
+
* and nothing else, which would break the contract that every user-facing
|
|
21
|
+
* string is overridable. A view ignores the keys it does not know.
|
|
22
|
+
*/
|
|
23
|
+
type ViewSetLabels = Partial<CalendarLabels & BoardLabels & GanttLabels>;
|
|
24
|
+
/**
|
|
25
|
+
* Props `ViewSet` passes to every layout itself, beyond `ViewBaseProps`. Named
|
|
26
|
+
* here so the per-view escape hatches below can exclude them by key rather than
|
|
27
|
+
* by a hand-kept list that would drift the moment a shared prop is added.
|
|
28
|
+
*/
|
|
29
|
+
type ViewSetOwned = 'stages' | 'onMove' | 'timeZone' | 'locale';
|
|
30
|
+
type ViewOverrides<P, T> = Omit<Partial<P>, keyof ViewBaseProps<T> | ViewSetOwned>;
|
|
31
|
+
interface ViewSetProps<T> extends ViewBaseProps<T> {
|
|
32
|
+
/** Every string any offered layout can render, not just the shared ones. */
|
|
33
|
+
labels?: ViewSetLabels;
|
|
34
|
+
/** Views to offer, in order. The first is the default when uncontrolled. */
|
|
35
|
+
views: readonly (ViewId | ViewOption)[];
|
|
36
|
+
view?: ViewId;
|
|
37
|
+
defaultView?: ViewId;
|
|
38
|
+
onViewChange?: (view: ViewId) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Remembers the chosen view under this key. Ignored when `view` is
|
|
41
|
+
* controlled — a page with its own URL state should own it there instead.
|
|
42
|
+
*/
|
|
43
|
+
storageKey?: string;
|
|
44
|
+
/** Stages for the board and for list grouping. */
|
|
45
|
+
stages?: readonly Stage[];
|
|
46
|
+
onMove?: BoardViewProps<T>['onMove'];
|
|
47
|
+
/**
|
|
48
|
+
* IANA zone the date views read day boundaries in. Shared, because a page
|
|
49
|
+
* showing one collection as a calendar and as a Gantt must place it on the
|
|
50
|
+
* same days in both.
|
|
51
|
+
*/
|
|
52
|
+
timeZone?: string;
|
|
53
|
+
/** Locale for date formatting in the calendar and Gantt. */
|
|
54
|
+
locale?: string;
|
|
55
|
+
/** Rendered above the switcher row. */
|
|
56
|
+
toolbar?: React.ReactNode;
|
|
57
|
+
/** Rendered under the switcher row, above the view. */
|
|
58
|
+
filters?: React.ReactNode;
|
|
59
|
+
/** The `overview` view. Domain content — the library has no opinion on it. */
|
|
60
|
+
overview?: React.ReactNode;
|
|
61
|
+
/** The `table` view. A tabular collection is a grid, not a view component. */
|
|
62
|
+
table?: React.ReactNode;
|
|
63
|
+
/** Rendered beside the view, for a list-plus-detail layout. */
|
|
64
|
+
detail?: React.ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* Per-view escape hatches for props this shell does not surface. Shared props
|
|
67
|
+
* are excluded: one collection rendered several ways means switching view can
|
|
68
|
+
* never change the records, the selection or the load state.
|
|
69
|
+
*
|
|
70
|
+
* `ViewSetOwned` covers the props the shell passes itself but that are not on
|
|
71
|
+
* `ViewBaseProps`. They are spread after the shared ones, so leaving them open
|
|
72
|
+
* would let one layout carry different stages, a different mutation callback
|
|
73
|
+
* or a different time zone from its neighbours — the same collection quietly
|
|
74
|
+
* disagreeing with itself as you switch tabs.
|
|
75
|
+
*/
|
|
76
|
+
listProps?: ViewOverrides<ListViewProps<T>, T>;
|
|
77
|
+
boardProps?: ViewOverrides<BoardViewProps<T>, T>;
|
|
78
|
+
calendarProps?: ViewOverrides<CalendarViewProps<T>, T>;
|
|
79
|
+
ganttProps?: ViewOverrides<GanttViewProps<T>, T>;
|
|
80
|
+
classNames?: Partial<Record<'toolbar' | 'switcher' | 'body' | 'detail', string>>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The page-level composition: switcher, the enabled views, and the slots a page
|
|
84
|
+
* needs around them. It owns which view is showing and nothing else — items,
|
|
85
|
+
* selection and every mutation stay with the caller.
|
|
86
|
+
*/
|
|
87
|
+
declare function ViewSet<T>({ views, view, defaultView, onViewChange, storageKey, stages, onMove, toolbar, filters, overview, table, detail, listProps, boardProps, calendarProps, ganttProps, className, classNames, ...shared }: ViewSetProps<T>): react_jsx_runtime.JSX.Element;
|
|
88
|
+
|
|
89
|
+
export { ViewSet, type ViewSetLabels, type ViewSetProps };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { ViewOption } from '../ViewSwitcher/index.js';
|
|
4
|
+
import { ListViewProps } from '../ListView/index.js';
|
|
5
|
+
import { BoardLabels, BoardViewProps } from '../BoardView/index.js';
|
|
6
|
+
import { CalendarLabels, CalendarViewProps } from '../CalendarView/index.js';
|
|
7
|
+
import { GanttLabels, GanttViewProps } from '../GanttView/index.js';
|
|
8
|
+
import { a as ViewBaseProps, b as ViewId, S as Stage } from '../../types-CbWXIKbe.js';
|
|
9
|
+
import 'class-variance-authority/types';
|
|
10
|
+
import 'class-variance-authority';
|
|
11
|
+
import 'luxon';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Every string any layout in the set can render.
|
|
15
|
+
*
|
|
16
|
+
* Each view extends `ViewLabels` with its own — the calendar's month arrows and
|
|
17
|
+
* "+n more", the board's move announcements, the Gantt's undated footnote. They
|
|
18
|
+
* are all shared props, so the per-view escape hatches below exclude `labels`;
|
|
19
|
+
* without widening here a non-English host could translate the common strings
|
|
20
|
+
* and nothing else, which would break the contract that every user-facing
|
|
21
|
+
* string is overridable. A view ignores the keys it does not know.
|
|
22
|
+
*/
|
|
23
|
+
type ViewSetLabels = Partial<CalendarLabels & BoardLabels & GanttLabels>;
|
|
24
|
+
/**
|
|
25
|
+
* Props `ViewSet` passes to every layout itself, beyond `ViewBaseProps`. Named
|
|
26
|
+
* here so the per-view escape hatches below can exclude them by key rather than
|
|
27
|
+
* by a hand-kept list that would drift the moment a shared prop is added.
|
|
28
|
+
*/
|
|
29
|
+
type ViewSetOwned = 'stages' | 'onMove' | 'timeZone' | 'locale';
|
|
30
|
+
type ViewOverrides<P, T> = Omit<Partial<P>, keyof ViewBaseProps<T> | ViewSetOwned>;
|
|
31
|
+
interface ViewSetProps<T> extends ViewBaseProps<T> {
|
|
32
|
+
/** Every string any offered layout can render, not just the shared ones. */
|
|
33
|
+
labels?: ViewSetLabels;
|
|
34
|
+
/** Views to offer, in order. The first is the default when uncontrolled. */
|
|
35
|
+
views: readonly (ViewId | ViewOption)[];
|
|
36
|
+
view?: ViewId;
|
|
37
|
+
defaultView?: ViewId;
|
|
38
|
+
onViewChange?: (view: ViewId) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Remembers the chosen view under this key. Ignored when `view` is
|
|
41
|
+
* controlled — a page with its own URL state should own it there instead.
|
|
42
|
+
*/
|
|
43
|
+
storageKey?: string;
|
|
44
|
+
/** Stages for the board and for list grouping. */
|
|
45
|
+
stages?: readonly Stage[];
|
|
46
|
+
onMove?: BoardViewProps<T>['onMove'];
|
|
47
|
+
/**
|
|
48
|
+
* IANA zone the date views read day boundaries in. Shared, because a page
|
|
49
|
+
* showing one collection as a calendar and as a Gantt must place it on the
|
|
50
|
+
* same days in both.
|
|
51
|
+
*/
|
|
52
|
+
timeZone?: string;
|
|
53
|
+
/** Locale for date formatting in the calendar and Gantt. */
|
|
54
|
+
locale?: string;
|
|
55
|
+
/** Rendered above the switcher row. */
|
|
56
|
+
toolbar?: React.ReactNode;
|
|
57
|
+
/** Rendered under the switcher row, above the view. */
|
|
58
|
+
filters?: React.ReactNode;
|
|
59
|
+
/** The `overview` view. Domain content — the library has no opinion on it. */
|
|
60
|
+
overview?: React.ReactNode;
|
|
61
|
+
/** The `table` view. A tabular collection is a grid, not a view component. */
|
|
62
|
+
table?: React.ReactNode;
|
|
63
|
+
/** Rendered beside the view, for a list-plus-detail layout. */
|
|
64
|
+
detail?: React.ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* Per-view escape hatches for props this shell does not surface. Shared props
|
|
67
|
+
* are excluded: one collection rendered several ways means switching view can
|
|
68
|
+
* never change the records, the selection or the load state.
|
|
69
|
+
*
|
|
70
|
+
* `ViewSetOwned` covers the props the shell passes itself but that are not on
|
|
71
|
+
* `ViewBaseProps`. They are spread after the shared ones, so leaving them open
|
|
72
|
+
* would let one layout carry different stages, a different mutation callback
|
|
73
|
+
* or a different time zone from its neighbours — the same collection quietly
|
|
74
|
+
* disagreeing with itself as you switch tabs.
|
|
75
|
+
*/
|
|
76
|
+
listProps?: ViewOverrides<ListViewProps<T>, T>;
|
|
77
|
+
boardProps?: ViewOverrides<BoardViewProps<T>, T>;
|
|
78
|
+
calendarProps?: ViewOverrides<CalendarViewProps<T>, T>;
|
|
79
|
+
ganttProps?: ViewOverrides<GanttViewProps<T>, T>;
|
|
80
|
+
classNames?: Partial<Record<'toolbar' | 'switcher' | 'body' | 'detail', string>>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The page-level composition: switcher, the enabled views, and the slots a page
|
|
84
|
+
* needs around them. It owns which view is showing and nothing else — items,
|
|
85
|
+
* selection and every mutation stay with the caller.
|
|
86
|
+
*/
|
|
87
|
+
declare function ViewSet<T>({ views, view, defaultView, onViewChange, storageKey, stages, onMove, toolbar, filters, overview, table, detail, listProps, boardProps, calendarProps, ganttProps, className, classNames, ...shared }: ViewSetProps<T>): react_jsx_runtime.JSX.Element;
|
|
88
|
+
|
|
89
|
+
export { ViewSet, type ViewSetLabels, type ViewSetProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { ViewSet } from '../../chunk-76TBQDED.js';
|
|
2
|
+
import '../../chunk-IT775BYG.js';
|
|
3
|
+
import '../../chunk-DZ5HFLRC.js';
|
|
4
|
+
import '../../chunk-Y4QNLW7W.js';
|
|
5
|
+
import '../../chunk-XVW5DPPP.js';
|
|
6
|
+
import '../../chunk-G4D6CLBT.js';
|
|
7
|
+
import '../../chunk-3YBS4WUQ.js';
|
|
8
|
+
import '../../chunk-UA7E7PDS.js';
|
|
9
|
+
import '../../chunk-BKSPDTX4.js';
|
|
10
|
+
import '../../chunk-GOALNQZ2.js';
|
|
11
|
+
import '../../chunk-TQONQSJO.js';
|
|
12
|
+
import '../../chunk-PX6F3LHL.js';
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkXDIMTPZU_cjs = require('../../chunk-XDIMTPZU.cjs');
|
|
4
|
+
require('../../chunk-4NCDU5IG.cjs');
|
|
5
|
+
require('../../chunk-L7L5S2HO.cjs');
|
|
6
|
+
require('../../chunk-S5RVSXDV.cjs');
|
|
7
|
+
require('../../chunk-EUAMEVVI.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "ViewSwitcher", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkXDIMTPZU_cjs.ViewSwitcher; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "viewSwitcherVariants", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkXDIMTPZU_cjs.viewSwitcherVariants; }
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=index.cjs.map
|
|
20
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { b as ViewId } from '../../types-CbWXIKbe.cjs';
|
|
5
|
+
import 'luxon';
|
|
6
|
+
|
|
7
|
+
interface ViewOption {
|
|
8
|
+
id: ViewId;
|
|
9
|
+
/** Overrides the built-in English label. */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Overrides the built-in icon. */
|
|
12
|
+
icon?: React.ComponentType<{
|
|
13
|
+
className?: string;
|
|
14
|
+
'aria-hidden'?: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface ViewSwitcherProps extends VariantProps<typeof viewSwitcherVariants> {
|
|
19
|
+
/** Views to offer, in order. Accepts bare ids or `ViewOption`s. */
|
|
20
|
+
views: readonly (ViewId | ViewOption)[];
|
|
21
|
+
value: ViewId;
|
|
22
|
+
onValueChange: (view: ViewId) => void;
|
|
23
|
+
/** Accessible name of the group. */
|
|
24
|
+
label?: string;
|
|
25
|
+
/** Show labels beside the icons. `responsive` hides them below `sm`. */
|
|
26
|
+
showLabels?: boolean | 'responsive';
|
|
27
|
+
className?: string;
|
|
28
|
+
classNames?: Partial<Record<'option' | 'activeOption', string>>;
|
|
29
|
+
}
|
|
30
|
+
declare const viewSwitcherVariants: (props?: ({
|
|
31
|
+
size?: "sm" | "md" | null | undefined;
|
|
32
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
33
|
+
/**
|
|
34
|
+
* Keyboard model is a radio group: one tab stop, arrows move *and* select.
|
|
35
|
+
* Every option is visible, so moving the selection is the whole interaction —
|
|
36
|
+
* there is nothing to "commit" afterwards.
|
|
37
|
+
*/
|
|
38
|
+
declare const ViewSwitcher: React.ForwardRefExoticComponent<ViewSwitcherProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
|
|
40
|
+
export { type ViewOption, ViewSwitcher, type ViewSwitcherProps, viewSwitcherVariants };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { b as ViewId } from '../../types-CbWXIKbe.js';
|
|
5
|
+
import 'luxon';
|
|
6
|
+
|
|
7
|
+
interface ViewOption {
|
|
8
|
+
id: ViewId;
|
|
9
|
+
/** Overrides the built-in English label. */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Overrides the built-in icon. */
|
|
12
|
+
icon?: React.ComponentType<{
|
|
13
|
+
className?: string;
|
|
14
|
+
'aria-hidden'?: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface ViewSwitcherProps extends VariantProps<typeof viewSwitcherVariants> {
|
|
19
|
+
/** Views to offer, in order. Accepts bare ids or `ViewOption`s. */
|
|
20
|
+
views: readonly (ViewId | ViewOption)[];
|
|
21
|
+
value: ViewId;
|
|
22
|
+
onValueChange: (view: ViewId) => void;
|
|
23
|
+
/** Accessible name of the group. */
|
|
24
|
+
label?: string;
|
|
25
|
+
/** Show labels beside the icons. `responsive` hides them below `sm`. */
|
|
26
|
+
showLabels?: boolean | 'responsive';
|
|
27
|
+
className?: string;
|
|
28
|
+
classNames?: Partial<Record<'option' | 'activeOption', string>>;
|
|
29
|
+
}
|
|
30
|
+
declare const viewSwitcherVariants: (props?: ({
|
|
31
|
+
size?: "sm" | "md" | null | undefined;
|
|
32
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
33
|
+
/**
|
|
34
|
+
* Keyboard model is a radio group: one tab stop, arrows move *and* select.
|
|
35
|
+
* Every option is visible, so moving the selection is the whole interaction —
|
|
36
|
+
* there is nothing to "commit" afterwards.
|
|
37
|
+
*/
|
|
38
|
+
declare const ViewSwitcher: React.ForwardRefExoticComponent<ViewSwitcherProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
|
|
40
|
+
export { type ViewOption, ViewSwitcher, type ViewSwitcherProps, viewSwitcherVariants };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { ViewSwitcher, viewSwitcherVariants } from '../../chunk-IT775BYG.js';
|
|
2
|
+
import '../../chunk-3YBS4WUQ.js';
|
|
3
|
+
import '../../chunk-BKSPDTX4.js';
|
|
4
|
+
import '../../chunk-TQONQSJO.js';
|
|
5
|
+
import '../../chunk-PX6F3LHL.js';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/esheet.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKQUI4BGS_cjs = require('./chunk-KQUI4BGS.cjs');
|
|
4
4
|
require('./chunk-BSDBI6H7.cjs');
|
|
5
5
|
require('./chunk-WWJIW2IH.cjs');
|
|
6
6
|
require('./chunk-G7EQ3JPX.cjs');
|
|
@@ -8,8 +8,8 @@ require('./chunk-AIJAFPGJ.cjs');
|
|
|
8
8
|
require('./chunk-UQ3VVR6A.cjs');
|
|
9
9
|
require('./chunk-ZSGEGISB.cjs');
|
|
10
10
|
require('./chunk-I44YNYI6.cjs');
|
|
11
|
-
require('./chunk-MJWFNV3L.cjs');
|
|
12
11
|
require('./chunk-Z5S5JEJD.cjs');
|
|
12
|
+
require('./chunk-MJWFNV3L.cjs');
|
|
13
13
|
require('./chunk-YVPC65ZJ.cjs');
|
|
14
14
|
require('./chunk-FSGEDDF2.cjs');
|
|
15
15
|
require('./chunk-AOHJILLU.cjs');
|
|
@@ -80,7 +80,7 @@ function MedicationListField({
|
|
|
80
80
|
return definition.medications ?? [];
|
|
81
81
|
}, [response?.answer, definition.medications]);
|
|
82
82
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
83
|
-
|
|
83
|
+
chunkKQUI4BGS_cjs.MedicationReconciliation,
|
|
84
84
|
{
|
|
85
85
|
medications,
|
|
86
86
|
onChange: (next) => onResponse({ answer: JSON.stringify({ medications: next }) }),
|
|
@@ -137,7 +137,7 @@ function AllergyListField({
|
|
|
137
137
|
codeLookup
|
|
138
138
|
}) {
|
|
139
139
|
const definition = field.definition;
|
|
140
|
-
const ambientCodeLookup =
|
|
140
|
+
const ambientCodeLookup = chunkKQUI4BGS_cjs.useCodeLookupConfig();
|
|
141
141
|
const effectiveCodeLookup = codeLookup === false ? void 0 : codeLookup ?? ambientCodeLookup ?? void 0;
|
|
142
142
|
const value = React__namespace.useMemo(() => {
|
|
143
143
|
if (response?.answer) return parseValue2(response.answer);
|
|
@@ -147,7 +147,7 @@ function AllergyListField({
|
|
|
147
147
|
onResponse({ answer: JSON.stringify(next) });
|
|
148
148
|
};
|
|
149
149
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
150
|
-
|
|
150
|
+
chunkKQUI4BGS_cjs.AllergyManager,
|
|
151
151
|
{
|
|
152
152
|
allergies: value.allergies,
|
|
153
153
|
onChange: (allergies) => commit({
|
package/dist/esheet.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MedicationReconciliation, useCodeLookupConfig, AllergyManager } from './chunk-
|
|
1
|
+
import { MedicationReconciliation, useCodeLookupConfig, AllergyManager } from './chunk-TVTIGV7Q.js';
|
|
2
2
|
import './chunk-H3YO5GBM.js';
|
|
3
3
|
import './chunk-FJ7YPVKV.js';
|
|
4
4
|
import './chunk-EPSB4WTL.js';
|
|
@@ -6,8 +6,8 @@ import './chunk-I3WGZPI6.js';
|
|
|
6
6
|
import './chunk-S7WCHDBO.js';
|
|
7
7
|
import './chunk-7IBZA7G6.js';
|
|
8
8
|
import './chunk-6NZXWKUE.js';
|
|
9
|
-
import './chunk-QYSUYB3S.js';
|
|
10
9
|
import './chunk-3IMM2PM4.js';
|
|
10
|
+
import './chunk-QYSUYB3S.js';
|
|
11
11
|
import './chunk-7ZVTLTJF.js';
|
|
12
12
|
import './chunk-62ZOA6PX.js';
|
|
13
13
|
import './chunk-WSNMQQ4P.js';
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkWNAA6CLE_cjs = require('../chunk-WNAA6CLE.cjs');
|
|
4
|
-
var chunk2O7D6F67_cjs = require('../chunk-2O7D6F67.cjs');
|
|
5
4
|
var chunkIXFC7LK2_cjs = require('../chunk-IXFC7LK2.cjs');
|
|
5
|
+
var chunk2O7D6F67_cjs = require('../chunk-2O7D6F67.cjs');
|
|
6
6
|
var chunk7IKLGH3Z_cjs = require('../chunk-7IKLGH3Z.cjs');
|
|
7
7
|
var chunkNPKPCYAT_cjs = require('../chunk-NPKPCYAT.cjs');
|
|
8
8
|
require('../chunk-NUFUV43P.cjs');
|
|
@@ -67,14 +67,14 @@ Object.defineProperty(exports, "useMediaQuery", {
|
|
|
67
67
|
enumerable: true,
|
|
68
68
|
get: function () { return chunkWNAA6CLE_cjs.useMediaQuery; }
|
|
69
69
|
});
|
|
70
|
-
Object.defineProperty(exports, "useTheme", {
|
|
71
|
-
enumerable: true,
|
|
72
|
-
get: function () { return chunk2O7D6F67_cjs.useTheme; }
|
|
73
|
-
});
|
|
74
70
|
Object.defineProperty(exports, "useYouTubeHoverPreview", {
|
|
75
71
|
enumerable: true,
|
|
76
72
|
get: function () { return chunkIXFC7LK2_cjs.useYouTubeHoverPreview; }
|
|
77
73
|
});
|
|
74
|
+
Object.defineProperty(exports, "useTheme", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () { return chunk2O7D6F67_cjs.useTheme; }
|
|
77
|
+
});
|
|
78
78
|
Object.defineProperty(exports, "useScrollSpy", {
|
|
79
79
|
enumerable: true,
|
|
80
80
|
get: function () { return chunk7IKLGH3Z_cjs.useScrollSpy; }
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { RTL_LOCALES, isRtlLocale, useCommandK, useDirection, useIsDesktop, useIsLargeDesktop, useIsMobile, useIsMobileOrTablet, useIsSmallTablet, useIsTablet, useKeyboardShortcut, useMediaQuery } from '../chunk-JHULS3EC.js';
|
|
2
|
-
export { useTheme } from '../chunk-KJZNEVYM.js';
|
|
3
2
|
export { useYouTubeHoverPreview } from '../chunk-POWS35OT.js';
|
|
3
|
+
export { useTheme } from '../chunk-KJZNEVYM.js';
|
|
4
4
|
export { useScrollSpy } from '../chunk-WBGUYSWY.js';
|
|
5
5
|
export { DEFAULT_FILLER_WORDS, DEFAULT_MIN_SILENCE_MS, DEFAULT_NL_SILENCE_MS, buildPlaybackSegments, getSpeedAtIndex, initEditableWords, insertSilences, useTranscriptEdits } from '../chunk-UUI7WXI5.js';
|
|
6
6
|
import '../chunk-6CGM5H4J.js';
|