@luscii-healthtech/web-ui 61.0.2 → 62.0.0
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/Radio/LabeledRadioCard.js +18 -7
- package/dist/esm/components/Radio/LabeledRadioCard.js.map +1 -1
- package/dist/index.development.js +18 -6
- 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/Radio/LabeledRadioCard.d.ts +7 -2
- package/dist/src/generated/components/Radio/LabeledRadioCard.d.ts +7 -2
- package/dist/stories/LabeledRadio.stories.d.ts +7 -0
- package/dist/stories/PopoverRadioCardRecipe.stories.d.ts +0 -3
- package/dist/web-ui-tailwind.css +0 -10
- package/package.json +1 -1
|
@@ -41,11 +41,11 @@ type SharedProps = {
|
|
|
41
41
|
* </LabeledRadioCardGroup>
|
|
42
42
|
* ```
|
|
43
43
|
*
|
|
44
|
-
* Using `children` prop for custom content:
|
|
44
|
+
* Using `children` prop for custom content, rendered as-is:
|
|
45
45
|
* ```tsx
|
|
46
46
|
* <LabeledRadioCardGroup>
|
|
47
47
|
* <LabeledRadioCard name="payment" id="credit" value="credit">
|
|
48
|
-
* <Stack axis="y" _gap="base">
|
|
48
|
+
* <Stack as="span" axis="y" _gap="base">
|
|
49
49
|
* <Text variant="body-base-regular">Credit Card</Text>
|
|
50
50
|
* <Text variant="body-small-light" color="neutral-secondary">
|
|
51
51
|
* Pay securely with your card
|
|
@@ -60,6 +60,11 @@ export declare const LabeledRadioCard: React.ForwardRefExoticComponent<(Omit<Omi
|
|
|
60
60
|
subtitle?: React.ReactNode;
|
|
61
61
|
leadingIcon?: React.ReactNode;
|
|
62
62
|
}, "ref"> | Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "children"> & SharedProps & {
|
|
63
|
+
/**
|
|
64
|
+
* Custom content, rendered as-is: lay it out and style it yourself. It's
|
|
65
|
+
* rendered inside a `<label>`, so use phrasing elements (e.g.
|
|
66
|
+
* `<Stack as="span">`).
|
|
67
|
+
*/
|
|
63
68
|
children: React.ReactNode;
|
|
64
69
|
}, "ref">) & React.RefAttributes<HTMLInputElement>>;
|
|
65
70
|
export {};
|
|
@@ -41,11 +41,11 @@ type SharedProps = {
|
|
|
41
41
|
* </LabeledRadioCardGroup>
|
|
42
42
|
* ```
|
|
43
43
|
*
|
|
44
|
-
* Using `children` prop for custom content:
|
|
44
|
+
* Using `children` prop for custom content, rendered as-is:
|
|
45
45
|
* ```tsx
|
|
46
46
|
* <LabeledRadioCardGroup>
|
|
47
47
|
* <LabeledRadioCard name="payment" id="credit" value="credit">
|
|
48
|
-
* <Stack axis="y" _gap="base">
|
|
48
|
+
* <Stack as="span" axis="y" _gap="base">
|
|
49
49
|
* <Text variant="body-base-regular">Credit Card</Text>
|
|
50
50
|
* <Text variant="body-small-light" color="neutral-secondary">
|
|
51
51
|
* Pay securely with your card
|
|
@@ -60,6 +60,11 @@ export declare const LabeledRadioCard: React.ForwardRefExoticComponent<(Omit<Omi
|
|
|
60
60
|
subtitle?: React.ReactNode;
|
|
61
61
|
leadingIcon?: React.ReactNode;
|
|
62
62
|
}, "ref"> | Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "children"> & SharedProps & {
|
|
63
|
+
/**
|
|
64
|
+
* Custom content, rendered as-is: lay it out and style it yourself. It's
|
|
65
|
+
* rendered inside a `<label>`, so use phrasing elements (e.g.
|
|
66
|
+
* `<Stack as="span">`).
|
|
67
|
+
*/
|
|
63
68
|
children: React.ReactNode;
|
|
64
69
|
}, "ref">) & React.RefAttributes<HTMLInputElement>>;
|
|
65
70
|
export {};
|
|
@@ -37,6 +37,13 @@ export declare const OverviewLabeledRadioCard: Story;
|
|
|
37
37
|
export declare const UsingLabelAndSubtitleProps: Story;
|
|
38
38
|
export declare const UsingChildrenPropForCustomContent: Story;
|
|
39
39
|
export declare const SingleColumnWithIcons: Story;
|
|
40
|
+
/**
|
|
41
|
+
* A `ReactNode` passed as `label` or `children` is rendered as-is and fills
|
|
42
|
+
* the card, so you decide its layout: e.g. center the content, or put an icon
|
|
43
|
+
* above the label. Use phrasing elements (e.g. `Stack as="span"`), as the
|
|
44
|
+
* content is rendered inside a `<label>`.
|
|
45
|
+
*/
|
|
46
|
+
export declare const CustomContentLayout: Story;
|
|
40
47
|
/**
|
|
41
48
|
* Besides a string, `title` takes a node, such as a `Heading` with an info
|
|
42
49
|
* icon. It's still rendered as the fieldset's `<legend>`, so it names the
|
|
@@ -6,9 +6,6 @@ import { type StoryObj } from "@storybook/react-vite";
|
|
|
6
6
|
*
|
|
7
7
|
* The selection is only applied when the user confirms it with the "Set"
|
|
8
8
|
* button, so the field value doesn't change while the user is still choosing.
|
|
9
|
-
*
|
|
10
|
-
* See `POPOVER_RADIOCARD_RECIPE_SHORTCOMINGS.md` in the root of this
|
|
11
|
-
* repository for the workarounds this recipe needs.
|
|
12
9
|
*/
|
|
13
10
|
declare const meta: {
|
|
14
11
|
title: string;
|
package/dist/web-ui-tailwind.css
CHANGED
|
@@ -1970,16 +1970,9 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
1970
1970
|
.ui\:max-w-\[calc\(100dvw-\(var\(--ui-spacing-xl\)\)\)\] {
|
|
1971
1971
|
max-width: calc(100dvw - (var(--ui-spacing-xl)));
|
|
1972
1972
|
}
|
|
1973
|
-
.ui\:max-w-\[none\] {
|
|
1974
|
-
max-width: none;
|
|
1975
|
-
}
|
|
1976
1973
|
.ui\:max-w-full {
|
|
1977
1974
|
max-width: 100%;
|
|
1978
1975
|
}
|
|
1979
|
-
.ui\:max-w-none {
|
|
1980
|
-
max-width: none;
|
|
1981
|
-
max-width: var(--ui-spacing-none);
|
|
1982
|
-
}
|
|
1983
1976
|
.ui\:max-w-screen {
|
|
1984
1977
|
max-width: 100vw;
|
|
1985
1978
|
}
|
|
@@ -3804,9 +3797,6 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
3804
3797
|
.ui\:text-\(--ui-primitive-color-red-700\) {
|
|
3805
3798
|
color: var(--ui-primitive-color-red-700);
|
|
3806
3799
|
}
|
|
3807
|
-
.ui\:text-\(--ui-primitive-color-…\) {
|
|
3808
|
-
color: var(--ui-primitive-color-…);
|
|
3809
|
-
}
|
|
3810
3800
|
.ui\:text-amber-700 {
|
|
3811
3801
|
color: var(--ui-color-amber-700);
|
|
3812
3802
|
}
|