@luscii-healthtech/web-ui 58.8.2 → 58.9.1
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/ActionCardDetailed/ActionCardDetailed.js +5 -4
- package/dist/esm/components/ActionCardDetailed/ActionCardDetailed.js.map +1 -1
- package/dist/esm/components/Checkbox/LabeledCheckboxCardGroup.js +2 -2
- package/dist/esm/components/Checkbox/LabeledCheckboxCardGroup.js.map +1 -1
- package/dist/esm/components/InstrumentCard/InstrumentCard.js +5 -3
- package/dist/esm/components/InstrumentCard/InstrumentCard.js.map +1 -1
- package/dist/index.development.js +10 -8
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/ActionCardDetailed/ActionCardDetailed.d.ts +16 -5
- package/dist/src/components/Checkbox/LabeledCheckboxCardGroup.d.ts +5 -0
- package/dist/src/components/InstrumentCard/InstrumentCard.d.ts +6 -0
- package/dist/src/generated/components/ActionCardDetailed/ActionCardDetailed.d.ts +16 -5
- package/dist/src/generated/components/Checkbox/LabeledCheckboxCardGroup.d.ts +5 -0
- package/dist/src/generated/components/InstrumentCard/InstrumentCard.d.ts +6 -0
- package/dist/stories/ActionCardDetailed.stories.d.ts +3 -1
- package/dist/stories/InstrumentCard.stories.d.ts +1 -0
- package/dist/stories/LabeledCheckbox.stories.d.ts +6 -0
- package/package.json +1 -1
|
@@ -49,6 +49,17 @@ export type Props = {
|
|
|
49
49
|
instruments?: DistributiveOmit<InstrumentCardProps, "variant">[];
|
|
50
50
|
/** @default "Instruments in this action" */
|
|
51
51
|
instrumentsHeading?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Page-specific content rendered at the foot of the panel, e.g. which
|
|
54
|
+
* protocols include the action or its Self Care visibility.
|
|
55
|
+
*/
|
|
56
|
+
children?: ReactNode;
|
|
57
|
+
/** @default "Edit action" */
|
|
58
|
+
editLabel?: string;
|
|
59
|
+
/** @default "Delete action" */
|
|
60
|
+
deleteLabel?: string;
|
|
61
|
+
/** @default "Close action details" */
|
|
62
|
+
closeLabel?: string;
|
|
52
63
|
/** Renders the pencil button in the header. Omitted when not provided. */
|
|
53
64
|
onEdit?: () => void;
|
|
54
65
|
/** Renders the trash button in the header. Omitted when not provided. */
|
|
@@ -63,10 +74,10 @@ export type Props = {
|
|
|
63
74
|
* `ActionCard` list row.
|
|
64
75
|
*
|
|
65
76
|
* Four sections stack vertically: header, metadata tags, schedule and
|
|
66
|
-
* instruments. The schedule and instrument
|
|
67
|
-
* their data is absent or empty, and each
|
|
68
|
-
* handler is provided, so the Figma variant
|
|
69
|
-
* are passed rather than by a `variant` prop.
|
|
77
|
+
* instruments, followed by optional footer content. The schedule and instrument
|
|
78
|
+
* sections are omitted entirely when their data is absent or empty, and each
|
|
79
|
+
* header button appears only when its handler is provided, so the Figma variant
|
|
80
|
+
* matrix is expressed by which props are passed rather than by a `variant` prop.
|
|
70
81
|
*
|
|
71
82
|
* The panel is capped at 600px wide to match the design; pass `className` to
|
|
72
83
|
* override that if the surrounding layout needs it.
|
|
@@ -95,5 +106,5 @@ export type Props = {
|
|
|
95
106
|
* />
|
|
96
107
|
* ```
|
|
97
108
|
*/
|
|
98
|
-
export declare const ActionCardDetailed: ({ type, iconUrl, title, category, metadata, schedule, scheduleHeading, instruments, instrumentsHeading, onEdit, onDelete, onClose, className, }: Props) => import("react").JSX.Element;
|
|
109
|
+
export declare const ActionCardDetailed: ({ type, iconUrl, title, category, metadata, schedule, scheduleHeading, instruments, instrumentsHeading, children, editLabel, deleteLabel, closeLabel, onEdit, onDelete, onClose, className, }: Props) => import("react").JSX.Element;
|
|
99
110
|
export {};
|
|
@@ -7,6 +7,11 @@ type Props = React.ComponentPropsWithoutRef<"fieldset"> & {
|
|
|
7
7
|
* Over how many columns the checkbox cards should be distributed.
|
|
8
8
|
*/
|
|
9
9
|
columns?: 1 | 2 | 3 | 4;
|
|
10
|
+
/**
|
|
11
|
+
* Stretch the group, and therefore its checkbox cards, to the full width of
|
|
12
|
+
* its container. By default the group is only as wide as its content.
|
|
13
|
+
*/
|
|
14
|
+
stretch?: boolean;
|
|
10
15
|
/**
|
|
11
16
|
* Any additional information to show underneath the radio group.
|
|
12
17
|
*/
|
|
@@ -43,6 +43,12 @@ type BaseProps = {
|
|
|
43
43
|
* @default "compact"
|
|
44
44
|
*/
|
|
45
45
|
variant?: "compact" | "detailed";
|
|
46
|
+
/**
|
|
47
|
+
* Makes the detailed card clickable. Ignored in the compact variant because
|
|
48
|
+
* ActionCard's title button stretches an overlay over the whole card, so a
|
|
49
|
+
* nested click target would conflict.
|
|
50
|
+
*/
|
|
51
|
+
onClick?: () => void;
|
|
46
52
|
/** Merged onto the root element. */
|
|
47
53
|
className?: string;
|
|
48
54
|
};
|
|
@@ -49,6 +49,17 @@ export type Props = {
|
|
|
49
49
|
instruments?: DistributiveOmit<InstrumentCardProps, "variant">[];
|
|
50
50
|
/** @default "Instruments in this action" */
|
|
51
51
|
instrumentsHeading?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Page-specific content rendered at the foot of the panel, e.g. which
|
|
54
|
+
* protocols include the action or its Self Care visibility.
|
|
55
|
+
*/
|
|
56
|
+
children?: ReactNode;
|
|
57
|
+
/** @default "Edit action" */
|
|
58
|
+
editLabel?: string;
|
|
59
|
+
/** @default "Delete action" */
|
|
60
|
+
deleteLabel?: string;
|
|
61
|
+
/** @default "Close action details" */
|
|
62
|
+
closeLabel?: string;
|
|
52
63
|
/** Renders the pencil button in the header. Omitted when not provided. */
|
|
53
64
|
onEdit?: () => void;
|
|
54
65
|
/** Renders the trash button in the header. Omitted when not provided. */
|
|
@@ -63,10 +74,10 @@ export type Props = {
|
|
|
63
74
|
* `ActionCard` list row.
|
|
64
75
|
*
|
|
65
76
|
* Four sections stack vertically: header, metadata tags, schedule and
|
|
66
|
-
* instruments. The schedule and instrument
|
|
67
|
-
* their data is absent or empty, and each
|
|
68
|
-
* handler is provided, so the Figma variant
|
|
69
|
-
* are passed rather than by a `variant` prop.
|
|
77
|
+
* instruments, followed by optional footer content. The schedule and instrument
|
|
78
|
+
* sections are omitted entirely when their data is absent or empty, and each
|
|
79
|
+
* header button appears only when its handler is provided, so the Figma variant
|
|
80
|
+
* matrix is expressed by which props are passed rather than by a `variant` prop.
|
|
70
81
|
*
|
|
71
82
|
* The panel is capped at 600px wide to match the design; pass `className` to
|
|
72
83
|
* override that if the surrounding layout needs it.
|
|
@@ -95,5 +106,5 @@ export type Props = {
|
|
|
95
106
|
* />
|
|
96
107
|
* ```
|
|
97
108
|
*/
|
|
98
|
-
export declare const ActionCardDetailed: ({ type, iconUrl, title, category, metadata, schedule, scheduleHeading, instruments, instrumentsHeading, onEdit, onDelete, onClose, className, }: Props) => import("react").JSX.Element;
|
|
109
|
+
export declare const ActionCardDetailed: ({ type, iconUrl, title, category, metadata, schedule, scheduleHeading, instruments, instrumentsHeading, children, editLabel, deleteLabel, closeLabel, onEdit, onDelete, onClose, className, }: Props) => import("react").JSX.Element;
|
|
99
110
|
export {};
|
|
@@ -7,6 +7,11 @@ type Props = React.ComponentPropsWithoutRef<"fieldset"> & {
|
|
|
7
7
|
* Over how many columns the checkbox cards should be distributed.
|
|
8
8
|
*/
|
|
9
9
|
columns?: 1 | 2 | 3 | 4;
|
|
10
|
+
/**
|
|
11
|
+
* Stretch the group, and therefore its checkbox cards, to the full width of
|
|
12
|
+
* its container. By default the group is only as wide as its content.
|
|
13
|
+
*/
|
|
14
|
+
stretch?: boolean;
|
|
10
15
|
/**
|
|
11
16
|
* Any additional information to show underneath the radio group.
|
|
12
17
|
*/
|
|
@@ -43,6 +43,12 @@ type BaseProps = {
|
|
|
43
43
|
* @default "compact"
|
|
44
44
|
*/
|
|
45
45
|
variant?: "compact" | "detailed";
|
|
46
|
+
/**
|
|
47
|
+
* Makes the detailed card clickable. Ignored in the compact variant because
|
|
48
|
+
* ActionCard's title button stretches an overlay over the whole card, so a
|
|
49
|
+
* nested click target would conflict.
|
|
50
|
+
*/
|
|
51
|
+
onClick?: () => void;
|
|
46
52
|
/** Merged onto the root element. */
|
|
47
53
|
className?: string;
|
|
48
54
|
};
|
|
@@ -3,7 +3,7 @@ import { type ActionType } from "../src/components/ActionCard/ActionCard";
|
|
|
3
3
|
import { type Props as ActionCardDetailedProps } from "../src/components/ActionCardDetailed/ActionCardDetailed";
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ type, iconUrl, title, category, metadata, schedule, scheduleHeading, instruments, instrumentsHeading, onEdit, onDelete, onClose, className, }: ActionCardDetailedProps) => import("react").JSX.Element;
|
|
6
|
+
component: ({ type, iconUrl, title, category, metadata, schedule, scheduleHeading, instruments, instrumentsHeading, children, editLabel, deleteLabel, closeLabel, onEdit, onDelete, onClose, className, }: ActionCardDetailedProps) => import("react").JSX.Element;
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: string;
|
|
9
9
|
backgrounds: {
|
|
@@ -70,3 +70,5 @@ export declare const ScheduleAndInstruments: Story;
|
|
|
70
70
|
export declare const ScheduleOnly: Story;
|
|
71
71
|
export declare const InstrumentsOnly: Story;
|
|
72
72
|
export declare const WithoutScheduleOrInstruments: Story;
|
|
73
|
+
export declare const WithFooterContent: Story;
|
|
74
|
+
export declare const CustomLabels: Story;
|
|
@@ -31,6 +31,12 @@ export declare const Base: Story;
|
|
|
31
31
|
export declare const Overview: Story;
|
|
32
32
|
export declare const OverviewLabeledCheckboxCard: Story;
|
|
33
33
|
export declare const LabeledCheckboxCardGroupLarge: Story;
|
|
34
|
+
/**
|
|
35
|
+
* By default a `LabeledCheckboxCardGroup` is only as wide as its content, so its
|
|
36
|
+
* cards don't fill the available space. Pass `stretch` to make the group, and
|
|
37
|
+
* its cards, take up the full width of the container.
|
|
38
|
+
*/
|
|
39
|
+
export declare const LabeledCheckboxCardGroupStretch: Story;
|
|
34
40
|
export declare const Disabled: Story;
|
|
35
41
|
export declare const Indeterminate: Story;
|
|
36
42
|
export declare const MultipleCheckboxes: Story;
|