@luscii-healthtech/web-ui 64.0.3 → 64.0.5
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/esm/components/ActionCard/ActionIcon.js +1 -1
- package/dist/esm/components/ActionCard/ActionIcon.js.map +1 -1
- package/dist/esm/components/ActionCardDetailed/ActionCardDetailed.js +1 -1
- package/dist/index.development.js +2 -2
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/stories/ActionCardDetailed.stories.d.ts +5 -0
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ const ActionIcon = ({ type, iconUrl, size = 20 }) => {
|
|
|
26
26
|
if (!iconUrl || hasImageError) {
|
|
27
27
|
return jsx(ImageIcon, { "aria-hidden": true, width: size, height: size, className: "ui:shrink-0 ui:text-slate-300" });
|
|
28
28
|
}
|
|
29
|
-
return jsx(Image, { src: iconUrl, alt: "", "data-chromatic": "ignore", width: size, height: size, className: "ui:shrink-0", showIconOnFailure: false, onError: () => setHasImageError(true) });
|
|
29
|
+
return jsx(Image, { src: iconUrl, alt: "", "data-chromatic": "ignore", width: size, height: size, className: "ui:shrink-0", showIconOnFailure: false, wrapperClassName: "ui:shrink-0", onError: () => setHasImageError(true) });
|
|
30
30
|
}
|
|
31
31
|
const TypeIcon = typeIcons[type];
|
|
32
32
|
return jsx(TypeIcon, { "aria-hidden": true, width: size, height: size, className: "ui:shrink-0" });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionIcon.js","sources":["../../../../../../src/components/ActionCard/ActionIcon.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ActionIcon.js","sources":["../../../../../../src/components/ActionCard/ActionIcon.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;;;;;;;;AAmBA,MAAM,SAAA,GAAY;AAAA,EAChB,WAAA,EAAa,4BA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", _gap: "base", children: [jsx(Box, { "aria-hidden": true, _p: "s", className: "ui:size-[var(--ui-semantic-size-xl)] ui:shrink-0 ui:[border-radius:var(--ui-semantic-radius-s)]", children: icon }), jsxs(Stack, { _gap: "none", className: "ui:min-w-0", children: [jsxs(Stack, { axis: "x", align: "baseline", _gap: "s", wrap: true, className: "ui:min-h-[var(--ui-semantic-size-xl)] ui:content-center", children: [jsx(Text, { variant: "body-base-light", color: "neutral-secondary", children: label }), jsx(Text, { variant: "body-base-regular", color: "neutral-secondary", children: value })] }), detail && jsx(Text, { variant: "body-small-regular", color: "neutral-secondary", children: detail })] })] });
|
|
19
19
|
const ActionCardDetailed = ({ type, iconUrl, title, category, metadata, schedule, scheduleHeading = "Schedule settings", instruments, instrumentsHeading = "Instruments in this action", children, editLabel = "Edit action", deleteLabel = "Delete action", closeLabel = "Close action details", onEdit, onDelete, onClose, className }) => {
|
|
20
20
|
const hasActions = onEdit || onDelete || onClose;
|
|
21
|
-
return jsx(Card, { border: true, borderRadius: "m", elevation: "medium", className: classNames("ui:w-full ui:max-w-[600px]", className), children: jsxs(Stack, { _gap: "xl", width: "full", children: [jsxs(Stack, { axis: "x", align: "start", justify: "between", _gap: "base", width: "full", children: [jsxs(Stack, { axis: "x", align: "start", _gap: "base", className: "ui:min-w-0", children: [jsx(ActionIcon, { type, iconUrl, size:
|
|
21
|
+
return jsx(Card, { border: true, borderRadius: "m", elevation: "medium", className: classNames("ui:w-full ui:max-w-[600px]", className), children: jsxs(Stack, { _gap: "xl", width: "full", children: [jsxs(Stack, { axis: "x", align: "start", justify: "between", _gap: "base", width: "full", children: [jsxs(Stack, { axis: "x", align: "start", _gap: "base", className: "ui:min-w-0", children: [jsx(ActionIcon, { type, iconUrl, size: 32 }), jsxs(Stack, { _gap: "base", className: "ui:min-w-0", children: [jsx(Heading, { variant: "h3", children: title }), category && jsx(Text, { variant: "body-base-regular", color: "neutral-secondary", children: category })] })] }), hasActions && jsxs(Stack, { axis: "x", align: "center", _gap: "base", className: "ui:shrink-0", children: [onEdit && jsx(TertiaryIconButton, { label: editLabel, onClick: onEdit, children: jsx(PencilIcon, { "aria-hidden": true }) }), onDelete && jsx(TertiaryIconButton, { label: deleteLabel, onClick: onDelete, children: jsx(TrashBinIcon, { "aria-hidden": true }) }), onClose && jsx(TertiaryIconButton, { label: closeLabel, onClick: onClose, children: jsx(CrossIcon, { "aria-hidden": true }) })] })] }), metadata && metadata.length > 0 && jsx(Stack, { axis: "x", _gap: "base", wrap: true, children: metadata.map((item, index) => jsx(
|
|
22
22
|
Tag,
|
|
23
23
|
{ _size: "large", _type: "neutral", _variant: "flat", children: item },
|
|
24
24
|
`${index}-${item}`
|
|
@@ -5163,7 +5163,7 @@ const ActionIcon = ({ type, iconUrl, size = 20 }) => {
|
|
|
5163
5163
|
if (!iconUrl || hasImageError) {
|
|
5164
5164
|
return jsxRuntime.jsx(ImageIcon, { "aria-hidden": true, width: size, height: size, className: "ui:shrink-0 ui:text-slate-300" });
|
|
5165
5165
|
}
|
|
5166
|
-
return jsxRuntime.jsx(Image$1, { src: iconUrl, alt: "", "data-chromatic": "ignore", width: size, height: size, className: "ui:shrink-0", showIconOnFailure: false, onError: () => setHasImageError(true) });
|
|
5166
|
+
return jsxRuntime.jsx(Image$1, { src: iconUrl, alt: "", "data-chromatic": "ignore", width: size, height: size, className: "ui:shrink-0", showIconOnFailure: false, wrapperClassName: "ui:shrink-0", onError: () => setHasImageError(true) });
|
|
5167
5167
|
}
|
|
5168
5168
|
const TypeIcon = typeIcons[type];
|
|
5169
5169
|
return jsxRuntime.jsx(TypeIcon, { "aria-hidden": true, width: size, height: size, className: "ui:shrink-0" });
|
|
@@ -5197,7 +5197,7 @@ const ActionCard = ({ type, iconUrl, title, metadata, instruments, actions, drag
|
|
|
5197
5197
|
const ScheduleItem = ({ icon, label, value, detail }) => jsxRuntime.jsxs(Stack, { axis: "x", align: "start", _gap: "base", children: [jsxRuntime.jsx(Box, { "aria-hidden": true, _p: "s", className: "ui:size-[var(--ui-semantic-size-xl)] ui:shrink-0 ui:[border-radius:var(--ui-semantic-radius-s)]", children: icon }), jsxRuntime.jsxs(Stack, { _gap: "none", className: "ui:min-w-0", children: [jsxRuntime.jsxs(Stack, { axis: "x", align: "baseline", _gap: "s", wrap: true, className: "ui:min-h-[var(--ui-semantic-size-xl)] ui:content-center", children: [jsxRuntime.jsx(Text, { variant: "body-base-light", color: "neutral-secondary", children: label }), jsxRuntime.jsx(Text, { variant: "body-base-regular", color: "neutral-secondary", children: value })] }), detail && jsxRuntime.jsx(Text, { variant: "body-small-regular", color: "neutral-secondary", children: detail })] })] });
|
|
5198
5198
|
const ActionCardDetailed = ({ type, iconUrl, title, category, metadata, schedule, scheduleHeading = "Schedule settings", instruments, instrumentsHeading = "Instruments in this action", children, editLabel = "Edit action", deleteLabel = "Delete action", closeLabel = "Close action details", onEdit, onDelete, onClose, className }) => {
|
|
5199
5199
|
const hasActions = onEdit || onDelete || onClose;
|
|
5200
|
-
return jsxRuntime.jsx(Card, { border: true, borderRadius: "m", elevation: "medium", className: classNames__default.default("ui:w-full ui:max-w-[600px]", className), children: jsxRuntime.jsxs(Stack, { _gap: "xl", width: "full", children: [jsxRuntime.jsxs(Stack, { axis: "x", align: "start", justify: "between", _gap: "base", width: "full", children: [jsxRuntime.jsxs(Stack, { axis: "x", align: "start", _gap: "base", className: "ui:min-w-0", children: [jsxRuntime.jsx(ActionIcon, { type, iconUrl, size:
|
|
5200
|
+
return jsxRuntime.jsx(Card, { border: true, borderRadius: "m", elevation: "medium", className: classNames__default.default("ui:w-full ui:max-w-[600px]", className), children: jsxRuntime.jsxs(Stack, { _gap: "xl", width: "full", children: [jsxRuntime.jsxs(Stack, { axis: "x", align: "start", justify: "between", _gap: "base", width: "full", children: [jsxRuntime.jsxs(Stack, { axis: "x", align: "start", _gap: "base", className: "ui:min-w-0", children: [jsxRuntime.jsx(ActionIcon, { type, iconUrl, size: 32 }), jsxRuntime.jsxs(Stack, { _gap: "base", className: "ui:min-w-0", children: [jsxRuntime.jsx(Heading, { variant: "h3", children: title }), category && jsxRuntime.jsx(Text, { variant: "body-base-regular", color: "neutral-secondary", children: category })] })] }), hasActions && jsxRuntime.jsxs(Stack, { axis: "x", align: "center", _gap: "base", className: "ui:shrink-0", children: [onEdit && jsxRuntime.jsx(TertiaryIconButton, { label: editLabel, onClick: onEdit, children: jsxRuntime.jsx(PencilIcon, { "aria-hidden": true }) }), onDelete && jsxRuntime.jsx(TertiaryIconButton, { label: deleteLabel, onClick: onDelete, children: jsxRuntime.jsx(TrashBinIcon, { "aria-hidden": true }) }), onClose && jsxRuntime.jsx(TertiaryIconButton, { label: closeLabel, onClick: onClose, children: jsxRuntime.jsx(CrossIcon, { "aria-hidden": true }) })] })] }), metadata && metadata.length > 0 && jsxRuntime.jsx(Stack, { axis: "x", _gap: "base", wrap: true, children: metadata.map((item, index) => jsxRuntime.jsx(
|
|
5201
5201
|
Tag,
|
|
5202
5202
|
{ _size: "large", _type: "neutral", _variant: "flat", children: item },
|
|
5203
5203
|
`${index}-${item}`
|