@luscii-healthtech/web-ui 54.7.0 → 54.7.2
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/index.development.js +8 -3
- 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/Card/Card.d.ts +11 -0
- package/dist/src/components/ModalDialog/ModalDialog.d.ts +1 -1
- package/dist/src/generated/components/Card/Card.d.ts +11 -0
- package/dist/src/generated/components/ModalDialog/ModalDialog.d.ts +1 -1
- package/dist/stories/Card.stories.d.ts +6 -0
- package/dist/stories/ModalDialog.stories.d.ts +4514 -97
- package/dist/web-ui-tailwind.css +18 -0
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -58,6 +58,17 @@ export type Props<C extends ElementType = "div"> = ComponentProps<typeof Box<C>>
|
|
|
58
58
|
* @default true
|
|
59
59
|
*/
|
|
60
60
|
padding?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Applies the selected-state treatment (a brand-primary ring) for
|
|
63
|
+
* picker/selectable-card usage, e.g. a card the user can tap to pick.
|
|
64
|
+
*
|
|
65
|
+
* Styling only: the consumer stays responsible for the selection
|
|
66
|
+
* semantics (e.g. `aria-pressed` on a button card, `aria-selected` in
|
|
67
|
+
* a listbox). Independent of `border` and `highlighted`.
|
|
68
|
+
*
|
|
69
|
+
* @default false
|
|
70
|
+
*/
|
|
71
|
+
selected?: boolean;
|
|
61
72
|
} & TitleAndMaybeActions;
|
|
62
73
|
export declare function Card<C extends ElementType = "div">(props: Props<C>): import("react/jsx-runtime").JSX.Element;
|
|
63
74
|
export declare namespace Card {
|
|
@@ -3,7 +3,7 @@ import { Card } from "../Card/Card";
|
|
|
3
3
|
import { Box } from "../Box/Box";
|
|
4
4
|
import { Stack } from "../Stack/Stack";
|
|
5
5
|
import { TertiaryButton } from "../ButtonV2/TertiaryButton";
|
|
6
|
-
type Size = "s" | "m" | "l";
|
|
6
|
+
type Size = "s" | "m" | "l" | "xl";
|
|
7
7
|
type Props = Omit<ComponentPropsWithoutRef<"dialog">, "open" | "onClose"> & {
|
|
8
8
|
/**
|
|
9
9
|
* Triggers `showModal` or `close` on the internal `<dialog />` element when set.
|
|
@@ -58,6 +58,17 @@ export type Props<C extends ElementType = "div"> = ComponentProps<typeof Box<C>>
|
|
|
58
58
|
* @default true
|
|
59
59
|
*/
|
|
60
60
|
padding?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Applies the selected-state treatment (a brand-primary ring) for
|
|
63
|
+
* picker/selectable-card usage, e.g. a card the user can tap to pick.
|
|
64
|
+
*
|
|
65
|
+
* Styling only: the consumer stays responsible for the selection
|
|
66
|
+
* semantics (e.g. `aria-pressed` on a button card, `aria-selected` in
|
|
67
|
+
* a listbox). Independent of `border` and `highlighted`.
|
|
68
|
+
*
|
|
69
|
+
* @default false
|
|
70
|
+
*/
|
|
71
|
+
selected?: boolean;
|
|
61
72
|
} & TitleAndMaybeActions;
|
|
62
73
|
export declare function Card<C extends ElementType = "div">(props: Props<C>): import("react/jsx-runtime").JSX.Element;
|
|
63
74
|
export declare namespace Card {
|
|
@@ -3,7 +3,7 @@ import { Card } from "../Card/Card";
|
|
|
3
3
|
import { Box } from "../Box/Box";
|
|
4
4
|
import { Stack } from "../Stack/Stack";
|
|
5
5
|
import { TertiaryButton } from "../ButtonV2/TertiaryButton";
|
|
6
|
-
type Size = "s" | "m" | "l";
|
|
6
|
+
type Size = "s" | "m" | "l" | "xl";
|
|
7
7
|
type Props = Omit<ComponentPropsWithoutRef<"dialog">, "open" | "onClose"> & {
|
|
8
8
|
/**
|
|
9
9
|
* Triggers `showModal` or `close` on the internal `<dialog />` element when set.
|
|
@@ -31,6 +31,11 @@ declare const meta: {
|
|
|
31
31
|
type: "select";
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
+
selected: {
|
|
35
|
+
control: {
|
|
36
|
+
type: "boolean";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
34
39
|
};
|
|
35
40
|
};
|
|
36
41
|
export default meta;
|
|
@@ -38,6 +43,7 @@ type Story = StoryObj<typeof meta>;
|
|
|
38
43
|
export declare const Base: Story;
|
|
39
44
|
export declare const Background: Story;
|
|
40
45
|
export declare const Highlighted: Story;
|
|
46
|
+
export declare const Selected: Story;
|
|
41
47
|
export declare const UsingProps: Story;
|
|
42
48
|
export declare const UsingSubcomponents: StoryObj;
|
|
43
49
|
export declare const HoverEffects: Story;
|