@mieweb/ui 0.7.1-dev.11 → 0.7.1-dev.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-6K4FCEY4.cjs → chunk-2J4KI5KN.cjs} +9 -9
- package/dist/{chunk-6K4FCEY4.cjs.map → chunk-2J4KI5KN.cjs.map} +1 -1
- package/dist/{chunk-6ED4RUGM.cjs → chunk-54OW6ZPL.cjs} +26 -2
- package/dist/chunk-54OW6ZPL.cjs.map +1 -0
- package/dist/{chunk-YVO5VAGX.js → chunk-DWIF6VXZ.js} +26 -2
- package/dist/chunk-DWIF6VXZ.js.map +1 -0
- package/dist/{chunk-62TFTZWT.cjs → chunk-IJYTASQQ.cjs} +5 -5
- package/dist/{chunk-62TFTZWT.cjs.map → chunk-IJYTASQQ.cjs.map} +1 -1
- package/dist/{chunk-SAJSA4TS.js → chunk-LMBXJZLG.js} +8 -4
- package/dist/chunk-LMBXJZLG.js.map +1 -0
- package/dist/{chunk-CPUDOVWH.cjs → chunk-MJWFNV3L.cjs} +12 -8
- package/dist/chunk-MJWFNV3L.cjs.map +1 -0
- package/dist/{chunk-TWQHAJ7C.js → chunk-O7ZGNGON.js} +3 -3
- package/dist/{chunk-TWQHAJ7C.js.map → chunk-O7ZGNGON.js.map} +1 -1
- package/dist/{chunk-6XGESZ4S.js → chunk-QYSUYB3S.js} +12 -8
- package/dist/chunk-QYSUYB3S.js.map +1 -0
- package/dist/{chunk-NGPEXCC7.cjs → chunk-RS5VA6QU.cjs} +8 -4
- package/dist/chunk-RS5VA6QU.cjs.map +1 -0
- package/dist/{chunk-ET5JGGVL.js → chunk-TNUL4LGG.js} +5 -5
- package/dist/{chunk-ET5JGGVL.js.map → chunk-TNUL4LGG.js.map} +1 -1
- package/dist/components/Card/index.cjs +15 -15
- package/dist/components/Card/index.d.cts +8 -3
- package/dist/components/Card/index.d.ts +8 -3
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Sheet/index.cjs +10 -10
- package/dist/components/Sheet/index.d.cts +1 -1
- package/dist/components/Sheet/index.d.ts +1 -1
- package/dist/components/Sheet/index.js +1 -1
- package/dist/components/Table/index.cjs +9 -9
- package/dist/components/Table/index.js +1 -1
- package/dist/esheet.cjs +5 -5
- package/dist/esheet.js +2 -2
- package/dist/index.cjs +261 -261
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +29 -29
- 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/package.json +1 -1
- package/dist/chunk-6ED4RUGM.cjs.map +0 -1
- package/dist/chunk-6XGESZ4S.js.map +0 -1
- package/dist/chunk-CPUDOVWH.cjs.map +0 -1
- package/dist/chunk-NGPEXCC7.cjs.map +0 -1
- package/dist/chunk-SAJSA4TS.js.map +0 -1
- package/dist/chunk-YVO5VAGX.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -13,15 +13,15 @@ export { ozwellBrand } from './chunk-5YUBQIC7.js';
|
|
|
13
13
|
import { getModelBytes } from './chunk-6I7IDZ4A.js';
|
|
14
14
|
import { Switch, switchThumbVariants, switchTrackVariants } from './chunk-AQ564XO7.js';
|
|
15
15
|
export { Switch, switchThumbVariants, switchTrackVariants } from './chunk-AQ564XO7.js';
|
|
16
|
-
import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell } from './chunk-
|
|
17
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from './chunk-
|
|
16
|
+
import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell } from './chunk-TNUL4LGG.js';
|
|
17
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from './chunk-TNUL4LGG.js';
|
|
18
18
|
import { Tabs, TabsList, TabsTrigger, TabsContent } from './chunk-DVOQ3JNO.js';
|
|
19
19
|
export { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants, tabsTriggerVariants } from './chunk-DVOQ3JNO.js';
|
|
20
20
|
import { Text } from './chunk-3YSIZ2CK.js';
|
|
21
21
|
export { SmallMuted, Text, textVariants } from './chunk-3YSIZ2CK.js';
|
|
22
22
|
export { ThemeProvider, ThemeProviderContext, ThemeToggle, themeToggleIconVariants, themeToggleVariants, useThemeContext } from './chunk-SH6B4MG5.js';
|
|
23
23
|
export { Toggle, toggleVariants } from './chunk-PTZB2GKL.js';
|
|
24
|
-
export { Sheet, SheetBody, SheetClose, SheetDescription, SheetFooter, SheetHeader, SheetTitle, sheetContentVariants, sheetOverlayVariants } from './chunk-
|
|
24
|
+
export { Sheet, SheetBody, SheetClose, SheetDescription, SheetFooter, SheetHeader, SheetTitle, sheetContentVariants, sheetOverlayVariants } from './chunk-LMBXJZLG.js';
|
|
25
25
|
import { Skeleton } from './chunk-ZIUADGAR.js';
|
|
26
26
|
export { Skeleton, SkeletonCard, SkeletonTable, SkeletonText, skeletonVariants } from './chunk-ZIUADGAR.js';
|
|
27
27
|
import { Spinner, SpinnerWithLabel } from './chunk-UA7E7PDS.js';
|
|
@@ -75,8 +75,8 @@ import './chunk-IQ4KQJAO.js';
|
|
|
75
75
|
export { Breadcrumb, BreadcrumbSlash } from './chunk-5Y5FSR4N.js';
|
|
76
76
|
import { evaluateDue, completedKeys, normalizeOrders } from './chunk-Y5KEFV5O.js';
|
|
77
77
|
export { buildChartOrderRows, buildEncounterOrderRows, dueForOrder, evaluateDue, evaluateProgram, isApplicable } from './chunk-Y5KEFV5O.js';
|
|
78
|
-
import { useCodeLookupConfig, RowActionToolbar, RowIconButton, toolbarKeyNav, parseSig, labelToMedicationFields, MedicationEditor } from './chunk-
|
|
79
|
-
export { ALLERGY_TYPE_LABELS, AllergyList, AllergyManager, CodeLookupProvider, MEDICATION_STATUS_LABELS, MedicationEditor, MedicationList, MedicationReconciliation, RowActionToolbar, RowIconButton, labelToMedicationFields, lookupToMedicationFields, parseMedicationLabel, parseSig, toolbarKeyNav, useCodeLookupConfig } from './chunk-
|
|
78
|
+
import { useCodeLookupConfig, RowActionToolbar, RowIconButton, toolbarKeyNav, parseSig, labelToMedicationFields, MedicationEditor } from './chunk-O7ZGNGON.js';
|
|
79
|
+
export { ALLERGY_TYPE_LABELS, AllergyList, AllergyManager, CodeLookupProvider, MEDICATION_STATUS_LABELS, MedicationEditor, MedicationList, MedicationReconciliation, RowActionToolbar, RowIconButton, labelToMedicationFields, lookupToMedicationFields, parseMedicationLabel, parseSig, toolbarKeyNav, useCodeLookupConfig } from './chunk-O7ZGNGON.js';
|
|
80
80
|
import { Textarea } from './chunk-AFGADE3B.js';
|
|
81
81
|
export { Textarea, textareaVariants } from './chunk-AFGADE3B.js';
|
|
82
82
|
import { Tooltip } from './chunk-FJ7YPVKV.js';
|
|
@@ -87,8 +87,8 @@ import { Label } from './chunk-I3WGZPI6.js';
|
|
|
87
87
|
export { Label, labelVariants } from './chunk-I3WGZPI6.js';
|
|
88
88
|
import { Select } from './chunk-34LGPMO4.js';
|
|
89
89
|
export { Select, selectTriggerVariants } from './chunk-34LGPMO4.js';
|
|
90
|
-
import { Card, CardHeader, CardContent, CardTitle } from './chunk-
|
|
91
|
-
export { Card, CardActions, CardBadge, CardCollapsible, CardContent, CardDescription, CardDivider, CardFooter, CardHeader, CardMedia, CardStat, CardTitle, cardAccentVariants, cardVariants } from './chunk-
|
|
90
|
+
import { Card, CardHeader, CardContent, CardTitle } from './chunk-QYSUYB3S.js';
|
|
91
|
+
export { Card, CardActions, CardBadge, CardCollapsible, CardContent, CardDescription, CardDivider, CardFooter, CardHeader, CardMedia, CardStat, CardTitle, cardAccentVariants, cardVariants } from './chunk-QYSUYB3S.js';
|
|
92
92
|
import { DateInput } from './chunk-4G3NJLQA.js';
|
|
93
93
|
export { DateInput } from './chunk-4G3NJLQA.js';
|
|
94
94
|
import { Modal, ModalHeader, ModalTitle, ModalClose, ModalBody, ModalFooter } from './chunk-XMCIXHGH.js';
|
|
@@ -126,7 +126,7 @@ import { cn } from './chunk-TQONQSJO.js';
|
|
|
126
126
|
export { cn, miewebUITwMergeConflicts } from './chunk-TQONQSJO.js';
|
|
127
127
|
import { isStorybookDocsMode } from './chunk-VSQF22GL.js';
|
|
128
128
|
export { isStorybookDocsMode } from './chunk-VSQF22GL.js';
|
|
129
|
-
export { miewebUIPreset, miewebUISafelist } from './chunk-
|
|
129
|
+
export { miewebUIPreset, miewebUISafelist } from './chunk-DWIF6VXZ.js';
|
|
130
130
|
import * as React10 from 'react';
|
|
131
131
|
import React10__default, { createContext, useState, useEffect, useCallback, useMemo, useContext, useRef } from 'react';
|
|
132
132
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -6242,9 +6242,9 @@ function AppHeaderSection({
|
|
|
6242
6242
|
"data-slot": "app-header-section",
|
|
6243
6243
|
className: cn(
|
|
6244
6244
|
"flex items-center gap-3",
|
|
6245
|
-
align === "left" && "
|
|
6245
|
+
align === "left" && "me-auto",
|
|
6246
6246
|
align === "center" && "mx-auto",
|
|
6247
|
-
align === "right" && "
|
|
6247
|
+
align === "right" && "ms-auto",
|
|
6248
6248
|
className
|
|
6249
6249
|
),
|
|
6250
6250
|
children
|
|
@@ -6342,7 +6342,7 @@ function AppHeaderIconButton({
|
|
|
6342
6342
|
"span",
|
|
6343
6343
|
{
|
|
6344
6344
|
className: cn(
|
|
6345
|
-
"absolute -
|
|
6345
|
+
"absolute -end-1 -top-1 flex items-center justify-center",
|
|
6346
6346
|
"h-[18px] min-w-[18px] px-1 text-[10px] font-bold",
|
|
6347
6347
|
"rounded-full bg-red-700 text-white"
|
|
6348
6348
|
),
|
|
@@ -6398,7 +6398,7 @@ function AppHeaderSearch({
|
|
|
6398
6398
|
),
|
|
6399
6399
|
children: [
|
|
6400
6400
|
/* @__PURE__ */ jsx(SearchIcon, {}),
|
|
6401
|
-
/* @__PURE__ */ jsx("span", { className: "flex-1 text-
|
|
6401
|
+
/* @__PURE__ */ jsx("span", { className: "flex-1 text-start whitespace-nowrap", children: placeholder }),
|
|
6402
6402
|
/* @__PURE__ */ jsxs(
|
|
6403
6403
|
"kbd",
|
|
6404
6404
|
{
|
|
@@ -6461,7 +6461,7 @@ function AppHeaderUserMenu({
|
|
|
6461
6461
|
) : displayInitials
|
|
6462
6462
|
}
|
|
6463
6463
|
),
|
|
6464
|
-
/* @__PURE__ */ jsxs("div", { className: "hidden min-w-0 text-
|
|
6464
|
+
/* @__PURE__ */ jsxs("div", { className: "hidden min-w-0 text-start lg:block", children: [
|
|
6465
6465
|
/* @__PURE__ */ jsx(
|
|
6466
6466
|
"div",
|
|
6467
6467
|
{
|
|
@@ -38831,11 +38831,11 @@ function Sidebar({
|
|
|
38831
38831
|
"data-testid": testId,
|
|
38832
38832
|
className: cn(
|
|
38833
38833
|
"flex h-screen flex-col",
|
|
38834
|
-
"border-
|
|
38834
|
+
"border-e border-neutral-200 bg-white dark:border-neutral-700 dark:bg-neutral-900",
|
|
38835
38835
|
"transition-all duration-300 ease-in-out",
|
|
38836
|
-
// Mobile positioning
|
|
38837
|
-
isMobileViewport && "fixed
|
|
38838
|
-
isMobileViewport && (isMobileOpen ? "translate-x-0" : "-translate-x-full"),
|
|
38836
|
+
// Mobile positioning (start-pinned; off-canvas direction flips in RTL)
|
|
38837
|
+
isMobileViewport && "fixed start-0 top-0 z-50",
|
|
38838
|
+
isMobileViewport && (isMobileOpen ? "translate-x-0" : "-translate-x-full rtl:translate-x-full"),
|
|
38839
38839
|
// Desktop positioning
|
|
38840
38840
|
!isMobileViewport && "relative",
|
|
38841
38841
|
className
|
|
@@ -38882,7 +38882,7 @@ function SidebarHeader({
|
|
|
38882
38882
|
"button",
|
|
38883
38883
|
{
|
|
38884
38884
|
onClick: closeMobile,
|
|
38885
|
-
className: "-
|
|
38885
|
+
className: "-me-2 rounded-lg p-2 text-neutral-500 transition-colors hover:bg-neutral-100 lg:hidden dark:hover:bg-neutral-800",
|
|
38886
38886
|
"aria-label": "Close navigation",
|
|
38887
38887
|
children: /* @__PURE__ */ jsx(XIcon3, {})
|
|
38888
38888
|
}
|
|
@@ -38969,18 +38969,18 @@ function SidebarNavGroup({
|
|
|
38969
38969
|
{
|
|
38970
38970
|
className: cn(
|
|
38971
38971
|
"text-muted-foreground h-5 w-5 flex-shrink-0",
|
|
38972
|
-
!showCollapsed && "
|
|
38972
|
+
!showCollapsed && "me-3"
|
|
38973
38973
|
),
|
|
38974
38974
|
children: icon
|
|
38975
38975
|
}
|
|
38976
38976
|
),
|
|
38977
38977
|
!showCollapsed && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
38978
|
-
/* @__PURE__ */ jsx("span", { className: "flex-1 truncate text-
|
|
38978
|
+
/* @__PURE__ */ jsx("span", { className: "flex-1 truncate text-start", children: label }),
|
|
38979
38979
|
/* @__PURE__ */ jsx(
|
|
38980
38980
|
"span",
|
|
38981
38981
|
{
|
|
38982
38982
|
className: cn(
|
|
38983
|
-
"
|
|
38983
|
+
"ms-2 flex-shrink-0 transition-transform duration-200",
|
|
38984
38984
|
effectiveExpanded && "rotate-180"
|
|
38985
38985
|
),
|
|
38986
38986
|
children: /* @__PURE__ */ jsx(ChevronDownIcon4, {})
|
|
@@ -38997,7 +38997,7 @@ function SidebarNavGroup({
|
|
|
38997
38997
|
"overflow-hidden transition-all duration-300",
|
|
38998
38998
|
effectiveExpanded ? "mt-1 max-h-[1000px] opacity-100" : "max-h-0 opacity-0"
|
|
38999
38999
|
),
|
|
39000
|
-
children: /* @__PURE__ */ jsx("div", { className: "
|
|
39000
|
+
children: /* @__PURE__ */ jsx("div", { className: "ps-2", children })
|
|
39001
39001
|
}
|
|
39002
39002
|
)
|
|
39003
39003
|
] });
|
|
@@ -39029,18 +39029,18 @@ function SidebarNavItem({
|
|
|
39029
39029
|
className: cn(
|
|
39030
39030
|
"h-5 w-5 flex-shrink-0",
|
|
39031
39031
|
isActive ? "text-primary-800 dark:text-primary-400" : "text-muted-foreground",
|
|
39032
|
-
!showCollapsed && "
|
|
39032
|
+
!showCollapsed && "me-3"
|
|
39033
39033
|
),
|
|
39034
39034
|
children: icon
|
|
39035
39035
|
}
|
|
39036
39036
|
),
|
|
39037
39037
|
!showCollapsed && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
39038
|
-
/* @__PURE__ */ jsx("span", { className: "flex-1 truncate text-
|
|
39038
|
+
/* @__PURE__ */ jsx("span", { className: "flex-1 truncate text-start", children: label }),
|
|
39039
39039
|
badge && /* @__PURE__ */ jsx(
|
|
39040
39040
|
"span",
|
|
39041
39041
|
{
|
|
39042
39042
|
className: cn(
|
|
39043
|
-
"
|
|
39043
|
+
"ms-2 rounded-full px-2 py-0.5 text-xs font-medium",
|
|
39044
39044
|
isActive ? "bg-primary-100 dark:bg-primary-900/30 text-primary-700 dark:text-primary-300" : "bg-neutral-100 text-neutral-600 dark:bg-neutral-700 dark:text-neutral-400"
|
|
39045
39045
|
),
|
|
39046
39046
|
children: badge
|
|
@@ -39105,7 +39105,7 @@ function SidebarToggle({
|
|
|
39105
39105
|
}
|
|
39106
39106
|
);
|
|
39107
39107
|
if (position === "floating") {
|
|
39108
|
-
return /* @__PURE__ */ jsx("div", { className: "absolute top-6
|
|
39108
|
+
return /* @__PURE__ */ jsx("div", { className: "absolute -end-3 top-6 z-10 rounded-full border border-neutral-200 bg-white shadow-md dark:border-neutral-700 dark:bg-neutral-900", children: button });
|
|
39109
39109
|
}
|
|
39110
39110
|
return button;
|
|
39111
39111
|
}
|
|
@@ -39162,7 +39162,7 @@ function SidebarSearch({
|
|
|
39162
39162
|
}, [showCollapsed, setCollapsed]);
|
|
39163
39163
|
if (showCollapsed) return /* @__PURE__ */ jsx(Fragment, {});
|
|
39164
39164
|
return /* @__PURE__ */ jsx("div", { "data-slot": "sidebar-search", className: cn("px-3 py-2", className), children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
39165
|
-
/* @__PURE__ */ jsx("div", { className: "absolute top-1/2
|
|
39165
|
+
/* @__PURE__ */ jsx("div", { className: "absolute start-3 top-1/2 -translate-y-1/2 text-neutral-400", children: /* @__PURE__ */ jsx(SearchIcon6, {}) }),
|
|
39166
39166
|
/* @__PURE__ */ jsx(
|
|
39167
39167
|
"input",
|
|
39168
39168
|
{
|
|
@@ -39173,7 +39173,7 @@ function SidebarSearch({
|
|
|
39173
39173
|
placeholder: `${placeholder} (${shortcutHint})`,
|
|
39174
39174
|
"data-testid": testId,
|
|
39175
39175
|
className: cn(
|
|
39176
|
-
"w-full rounded-lg py-2
|
|
39176
|
+
"w-full rounded-lg py-2 ps-10 pe-4 text-sm",
|
|
39177
39177
|
"border-transparent bg-neutral-100 dark:bg-neutral-800",
|
|
39178
39178
|
"text-neutral-900 placeholder-neutral-400 dark:text-white dark:placeholder-neutral-500",
|
|
39179
39179
|
"focus:ring-primary-500 focus:bg-white focus:ring-2 focus:outline-none dark:focus:bg-neutral-700",
|
|
@@ -40918,7 +40918,7 @@ function StepIndicator({
|
|
|
40918
40918
|
onClick: () => handleStepClick(index),
|
|
40919
40919
|
disabled: !clickable,
|
|
40920
40920
|
"aria-label": `Step ${index + 1}: ${step.label}`,
|
|
40921
|
-
className: `${sizes.circle} flex shrink-0 items-center justify-center rounded-full font-medium transition-all duration-200 focus:ring-2 focus:ring-offset-2 focus:outline-none dark:focus:ring-offset-neutral-900 ${clickable ? "cursor-pointer" : "cursor-default"} ${step.hasError ? "bg-red-100 text-red-600 focus:ring-red-500 dark:bg-red-900/30 dark:text-red-400" : status === "completed" ? "bg-primary-800 focus:ring-primary-500 dark:bg-primary-800 text-white" : status === "current" ? "bg-primary-800 ring-primary-600 focus:ring-primary-500 dark:bg-primary-800 dark:ring-primary-500 text-white ring-2 ring-offset-2 dark:ring-offset-neutral-900" : "bg-neutral-200 text-neutral-500 focus:ring-neutral-400 dark:bg-neutral-700 dark:text-neutral-300"}`.trim(),
|
|
40921
|
+
className: `${sizes.circle} relative z-10 flex shrink-0 items-center justify-center rounded-full font-medium transition-all duration-200 focus:ring-2 focus:ring-offset-2 focus:outline-none dark:focus:ring-offset-neutral-900 ${clickable ? "cursor-pointer" : "cursor-default"} ${step.hasError ? "bg-red-100 text-red-600 focus:ring-red-500 dark:bg-red-900/30 dark:text-red-400" : status === "completed" ? "bg-primary-800 focus:ring-primary-500 dark:bg-primary-800 text-white" : status === "current" ? "bg-primary-800 ring-primary-600 focus:ring-primary-500 dark:bg-primary-800 dark:ring-primary-500 text-white ring-2 ring-offset-2 dark:ring-offset-neutral-900" : "bg-neutral-200 text-neutral-500 focus:ring-neutral-400 dark:bg-neutral-700 dark:text-neutral-300"}`.trim(),
|
|
40922
40922
|
"aria-current": status === "current" ? "step" : void 0,
|
|
40923
40923
|
children: step.hasError ? /* @__PURE__ */ jsx(ErrorIcon, { className: "h-4 w-4" }) : status === "completed" ? step.icon || /* @__PURE__ */ jsx(CheckIcon5, { className: "h-4 w-4" }) : step.icon || /* @__PURE__ */ jsx(
|
|
40924
40924
|
"span",
|