@utilitywarehouse/hearth-react-native 0.12.0 → 0.14.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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-lint.log +1 -1
- package/CHANGELOG.md +22 -0
- package/build/components/Accordion/AccordionTrigger.js +1 -1
- package/build/components/BodyText/index.d.ts +1 -0
- package/build/components/Checkbox/CheckboxGroup.context.d.ts +2 -0
- package/build/components/Checkbox/CheckboxGroup.js +5 -5
- package/build/components/Checkbox/CheckboxIndicator.js +3 -3
- package/build/components/Checkbox/CheckboxTextContent.js +0 -1
- package/build/components/Checkbox/CheckboxTileRoot.js +9 -1
- package/build/components/DatePicker/DatePickerDay.js +3 -3
- package/build/components/FormField/FormField.d.ts +5 -5
- package/build/components/List/List.context.d.ts +2 -0
- package/build/components/List/List.context.js +2 -0
- package/build/components/List/List.js +19 -15
- package/build/components/List/ListAction/ListAction.js +3 -2
- package/build/components/List/ListAction/ListAction.props.d.ts +0 -1
- package/build/components/List/ListItem/ListItem.props.d.ts +4 -1
- package/build/components/List/ListItem/ListItemHeading.d.ts +13 -0
- package/build/components/List/ListItem/ListItemHeading.js +12 -0
- package/build/components/List/ListItem/ListItemHelperText.d.ts +2 -2
- package/build/components/List/ListItem/ListItemRoot.d.ts +1 -1
- package/build/components/List/ListItem/ListItemRoot.js +7 -6
- package/build/components/List/ListItem/index.d.ts +1 -1
- package/build/components/List/ListItem/index.js +1 -1
- package/build/components/PillGroup/Pill.js +2 -2
- package/build/components/Radio/RadioGroup.context.d.ts +2 -0
- package/build/components/Radio/RadioGroup.js +1 -1
- package/build/components/Radio/RadioIndicator.js +3 -3
- package/build/components/Radio/RadioTextContent.js +0 -1
- package/build/components/Radio/RadioTileRoot.js +9 -1
- package/build/components/RadioCard/RadioCardIndicator.js +3 -3
- package/build/components/RadioCard/RadioCardRoot.js +3 -3
- package/build/components/Tabs/Tab.js +5 -5
- package/build/components/ToggleButton/ToggleButtonRoot.js +2 -2
- package/build/components/ToggleButtonCard/ToggleButtonCardRoot.js +3 -3
- package/build/components/UnstyledIconButton/UnstyledIconButtonRoot.js +1 -1
- package/build/components/VerificationInput/VerificationInput.d.ts +6 -0
- package/build/components/VerificationInput/VerificationInput.js +35 -0
- package/build/components/VerificationInput/VerificationInput.props.d.ts +49 -0
- package/build/components/VerificationInput/VerificationInput.props.js +1 -0
- package/build/components/VerificationInput/VerificationInputSlot.d.ts +9 -0
- package/build/components/VerificationInput/VerificationInputSlot.js +72 -0
- package/build/components/VerificationInput/index.d.ts +4 -0
- package/build/components/VerificationInput/index.js +3 -0
- package/build/components/VerificationInput/useVerificationInput.d.ts +14 -0
- package/build/components/VerificationInput/useVerificationInput.js +58 -0
- package/build/components/index.d.ts +1 -0
- package/build/components/index.js +1 -0
- package/docs/components/AllComponents.web.tsx +9 -0
- package/package.json +10 -11
- package/src/components/Accordion/Accordion.figma.tsx +23 -0
- package/src/components/Accordion/AccordionItemRoot.figma.tsx +47 -0
- package/src/components/Accordion/AccordionTrigger.tsx +1 -1
- package/src/components/Alert/Alert.figma.tsx +47 -0
- package/src/components/Avatar/Avatar.figma.tsx +33 -0
- package/src/components/Badge/Badge.figma.tsx +48 -24
- package/src/components/Banner/Banner.figma.tsx +15 -0
- package/src/components/Banner/BannerIllustration.figma.tsx +30 -0
- package/src/components/BodyText/index.ts +1 -0
- package/src/components/BottomSheet/BottomSheetModal.figma.tsx +20 -0
- package/src/components/Button/Button.figma.tsx +60 -229
- package/src/components/Card/Card.figma.tsx +43 -71
- package/src/components/Card/CardAction/CardAction.figma.tsx +44 -0
- package/src/components/Card/CardAction/CardAction.stories.tsx +1 -1
- package/src/components/Carousel/Carousel.figma.tsx +19 -0
- package/src/components/Checkbox/Checkbox.figma.tsx +26 -41
- package/src/components/Checkbox/CheckboxGroup.context.ts +1 -0
- package/src/components/Checkbox/CheckboxGroup.figma.tsx +20 -0
- package/src/components/Checkbox/CheckboxGroup.tsx +7 -8
- package/src/components/Checkbox/CheckboxImage.figma.tsx +27 -0
- package/src/components/Checkbox/CheckboxIndicator.tsx +3 -3
- package/src/components/Checkbox/CheckboxTextContent.tsx +0 -1
- package/src/components/Checkbox/CheckboxTileRoot.figma.tsx +32 -0
- package/src/components/Checkbox/CheckboxTileRoot.tsx +9 -1
- package/src/components/CurrencyInput/CurrencyInput.figma.tsx +56 -0
- package/src/components/DateInput/DateInput.figma.tsx +75 -0
- package/src/components/DatePicker/DatePickerCalendar.figma.tsx +34 -0
- package/src/components/DatePicker/DatePickerDay.tsx +3 -3
- package/src/components/DatePickerInput/DatePickerInput.figma.tsx +62 -0
- package/src/components/DescriptionList/DescriptionList.figma.tsx +23 -0
- package/src/components/Divider/Divider.figma.tsx +23 -18
- package/src/components/ExpandableCard/ExpandableCard.figma.tsx +54 -0
- package/src/components/ExpandableCard/ExpandableCardGroup.figma.tsx +23 -0
- package/src/components/FormField/FormField.figma.tsx +23 -0
- package/src/components/Helper/HelperText.figma.tsx +23 -0
- package/src/components/IconButton/IconButton.figma.tsx +55 -161
- package/src/components/IconContainer/IconContainer.figma.tsx +50 -0
- package/src/components/InlineLink/InlineLink.figma.tsx +33 -0
- package/src/components/Input/Input.figma.tsx +52 -110
- package/src/components/Label/Label.figma.tsx +24 -0
- package/src/components/Link/Link.figma.tsx +42 -0
- package/src/components/List/List.context.ts +4 -0
- package/src/components/List/List.docs.mdx +30 -24
- package/src/components/List/List.figma.tsx +29 -108
- package/src/components/List/List.stories.tsx +26 -1
- package/src/components/List/List.tsx +26 -19
- package/src/components/List/ListAction/ListAction.figma.tsx +29 -0
- package/src/components/List/ListAction/ListAction.props.ts +0 -1
- package/src/components/List/ListAction/ListAction.tsx +3 -2
- package/src/components/List/ListItem/ListItem.figma.tsx +40 -220
- package/src/components/List/ListItem/ListItem.props.ts +4 -1
- package/src/components/List/ListItem/ListItemHeading.tsx +20 -0
- package/src/components/List/ListItem/ListItemHelperText.tsx +2 -3
- package/src/components/List/ListItem/ListItemLeadingContent.figma.tsx +29 -0
- package/src/components/List/ListItem/ListItemRoot.tsx +11 -6
- package/src/components/List/ListItem/ListItemTrailingContent.figma.tsx +27 -0
- package/src/components/List/ListItem/index.ts +1 -1
- package/src/components/Menu/Menu.figma.tsx +30 -0
- package/src/components/Menu/MenuItem.figma.tsx +31 -0
- package/src/components/Modal/Modal.docs.mdx +23 -20
- package/src/components/Modal/Modal.figma.tsx +56 -0
- package/src/components/PillGroup/Pill.figma.tsx +25 -0
- package/src/components/PillGroup/Pill.tsx +3 -3
- package/src/components/PillGroup/PillGroup.figma.tsx +21 -0
- package/src/components/ProgressStepper/ProgressStep.figma.tsx +30 -0
- package/src/components/ProgressStepper/ProgressStepper.figma.tsx +20 -0
- package/src/components/Radio/Radio.figma.tsx +22 -42
- package/src/components/Radio/Radio.stories.tsx +24 -0
- package/src/components/Radio/RadioGroup.context.ts +1 -0
- package/src/components/Radio/RadioGroup.figma.tsx +54 -0
- package/src/components/Radio/RadioGroup.tsx +2 -2
- package/src/components/Radio/RadioImage.figma.tsx +27 -0
- package/src/components/Radio/RadioIndicator.tsx +3 -3
- package/src/components/Radio/RadioTextContent.tsx +0 -1
- package/src/components/Radio/RadioTileRoot.figma.tsx +31 -0
- package/src/components/Radio/RadioTileRoot.tsx +9 -1
- package/src/components/RadioCard/RadioCardIndicator.tsx +3 -3
- package/src/components/RadioCard/RadioCardRoot.tsx +3 -3
- package/src/components/SectionHeader/SectionHeader.figma.tsx +30 -16
- package/src/components/Select/Select.figma.tsx +55 -0
- package/src/components/Select/SelectOption.figma.tsx +36 -0
- package/src/components/Spinner/Spinner.figma.tsx +20 -12
- package/src/components/Switch/Switch.figma.tsx +31 -23
- package/src/components/Tabs/Tab.tsx +5 -5
- package/src/components/Tabs/Tabs.figma.tsx +29 -0
- package/src/components/ThemedImage/ThemedImage.stories.tsx +1 -1
- package/src/components/Toast/ToastItem.figma.tsx +22 -0
- package/src/components/ToggleButton/ToggleButtonRoot.tsx +2 -2
- package/src/components/ToggleButtonCard/ToggleButtonCardRoot.tsx +3 -3
- package/src/components/UnstyledIconButton/UnstyledIconButton.figma.tsx +49 -0
- package/src/components/UnstyledIconButton/UnstyledIconButtonRoot.tsx +1 -1
- package/src/components/VerificationInput/VerificationInput.docs.mdx +68 -0
- package/src/components/VerificationInput/VerificationInput.props.ts +52 -0
- package/src/components/VerificationInput/VerificationInput.stories.tsx +140 -0
- package/src/components/VerificationInput/VerificationInput.tsx +89 -0
- package/src/components/VerificationInput/VerificationInputSlot.tsx +94 -0
- package/src/components/VerificationInput/index.ts +5 -0
- package/src/components/VerificationInput/useVerificationInput.ts +72 -0
- package/src/components/index.ts +1 -0
- package/build/components/List/ListItem/ListItemText.d.ts +0 -6
- package/build/components/List/ListItem/ListItemText.js +0 -7
- package/src/components/Checkbox/CheckboxIndicator.figma.tsx +0 -19
- package/src/components/List/ListItem/ListItemText.tsx +0 -14
- package/src/components/Radio/RadioIndicator.figma.tsx +0 -21
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import CheckboxImage from "./CheckboxImage"
|
|
3
|
+
import figma from "@figma/code-connect"
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* -- This file was auto-generated by Code Connect --
|
|
7
|
+
* None of your props could be automatically mapped to Figma properties.
|
|
8
|
+
* You should update the `props` object to include a mapping from your
|
|
9
|
+
* code props to Figma properties, and update the `example` function to
|
|
10
|
+
* return the code example you'd like to see in Figma
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
figma.connect(
|
|
14
|
+
CheckboxImage,
|
|
15
|
+
"https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=7428%3A3207",
|
|
16
|
+
{
|
|
17
|
+
props: {
|
|
18
|
+
// No matching props could be found for these Figma properties:
|
|
19
|
+
// "customContent": figma.instance('Custom content'),
|
|
20
|
+
// "variant": figma.enum('Variant', {
|
|
21
|
+
// "Bank logo": "bank-logo",
|
|
22
|
+
// "Custom": "custom"
|
|
23
|
+
// })
|
|
24
|
+
},
|
|
25
|
+
example: (props) => <CheckboxImage />,
|
|
26
|
+
},
|
|
27
|
+
)
|
|
@@ -35,9 +35,9 @@ const styles = StyleSheet.create(theme => ({
|
|
|
35
35
|
_hover: {
|
|
36
36
|
outlineColor: theme.components.checkbox.outlineColorHover,
|
|
37
37
|
},
|
|
38
|
-
'_focus-within': {
|
|
39
|
-
|
|
40
|
-
},
|
|
38
|
+
// '_focus-within': {
|
|
39
|
+
// ...theme.helpers.focusVisible,
|
|
40
|
+
// },
|
|
41
41
|
_active: {
|
|
42
42
|
outlineColor: theme.components.checkbox.outlineColorActive,
|
|
43
43
|
},
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import CheckboxTileRoot from "./CheckboxTileRoot"
|
|
3
|
+
import figma from "@figma/code-connect"
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* -- This file was auto-generated by Code Connect --
|
|
7
|
+
* None of your props could be automatically mapped to Figma properties.
|
|
8
|
+
* You should update the `props` object to include a mapping from your
|
|
9
|
+
* code props to Figma properties, and update the `example` function to
|
|
10
|
+
* return the code example you'd like to see in Figma
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
figma.connect(
|
|
14
|
+
CheckboxTileRoot,
|
|
15
|
+
"https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=4961%3A23797",
|
|
16
|
+
{
|
|
17
|
+
props: {
|
|
18
|
+
// No matching props could be found for these Figma properties:
|
|
19
|
+
// "helperText": figma.boolean('Helper text?'),
|
|
20
|
+
// "helperText": figma.string('Helper text'),
|
|
21
|
+
// "label": figma.string('Label'),
|
|
22
|
+
// "image": figma.boolean('Image?'),
|
|
23
|
+
// "state": figma.enum('State', {
|
|
24
|
+
// "Default": "default",
|
|
25
|
+
// "Invalid": "invalid",
|
|
26
|
+
// "Focus": "focus"
|
|
27
|
+
// }),
|
|
28
|
+
// "checked": figma.boolean('Checked?')
|
|
29
|
+
},
|
|
30
|
+
example: (props) => <CheckboxTileRoot />,
|
|
31
|
+
},
|
|
32
|
+
)
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { View, ViewProps } from 'react-native';
|
|
2
2
|
import { StyleSheet } from 'react-native-unistyles';
|
|
3
3
|
import { useCheckboxContext } from './Checkbox.context';
|
|
4
|
+
import { useCheckboxGroupContext } from './CheckboxGroup.context';
|
|
4
5
|
|
|
5
6
|
const CheckboxTileRoot = ({ children }: { children: ViewProps['children'] }) => {
|
|
7
|
+
const { direction } = useCheckboxGroupContext();
|
|
6
8
|
const { checked } = useCheckboxContext();
|
|
7
9
|
styles.useVariants({
|
|
8
10
|
checked,
|
|
11
|
+
direction,
|
|
9
12
|
});
|
|
10
13
|
return <View style={styles.container}>{children}</View>;
|
|
11
14
|
};
|
|
@@ -14,7 +17,6 @@ const styles = StyleSheet.create(theme => ({
|
|
|
14
17
|
container: {
|
|
15
18
|
flexDirection: 'row',
|
|
16
19
|
justifyContent: 'flex-start',
|
|
17
|
-
flex: 1,
|
|
18
20
|
alignSelf: 'stretch',
|
|
19
21
|
gap: theme.components.checkbox.gap,
|
|
20
22
|
padding: theme.components.checkbox.tile.padding,
|
|
@@ -30,6 +32,12 @@ const styles = StyleSheet.create(theme => ({
|
|
|
30
32
|
margin: -theme.components.checkbox.tile.borderWidthSelected / 2,
|
|
31
33
|
},
|
|
32
34
|
},
|
|
35
|
+
direction: {
|
|
36
|
+
row: {},
|
|
37
|
+
column: {
|
|
38
|
+
flex: 1,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
33
41
|
},
|
|
34
42
|
},
|
|
35
43
|
}));
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import CurrencyInput from "./CurrencyInput"
|
|
3
|
+
import figma from "@figma/code-connect"
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* -- This file was auto-generated by Code Connect --
|
|
7
|
+
* `props` includes a mapping from your code props to Figma properties.
|
|
8
|
+
* You should check this is correct, and update the `example` function
|
|
9
|
+
* to return the code example you'd like to see in Figma
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
figma.connect(
|
|
13
|
+
CurrencyInput,
|
|
14
|
+
"https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=2161%3A1336",
|
|
15
|
+
{
|
|
16
|
+
props: {
|
|
17
|
+
// These props were automatically mapped based on your linked code:
|
|
18
|
+
focused: figma.boolean("Focus?"),
|
|
19
|
+
placeholder: figma.string("Label"),
|
|
20
|
+
autoFocus: figma.boolean("Focus?"),
|
|
21
|
+
defaultValue: figma.string("Value"),
|
|
22
|
+
value: figma.string("Value"),
|
|
23
|
+
focusable: figma.boolean("Focus?"),
|
|
24
|
+
hasTVPreferredFocus: figma.boolean("Focus?"),
|
|
25
|
+
// No matching props could be found for these Figma properties:
|
|
26
|
+
// "validation": figma.string('Validation'),
|
|
27
|
+
// "helperText": figma.string('Helper text'),
|
|
28
|
+
// "label": figma.string('Label'),
|
|
29
|
+
// "value": figma.string('Value'),
|
|
30
|
+
// "helperText": figma.boolean('Helper text?'),
|
|
31
|
+
// "state": figma.enum('State', {
|
|
32
|
+
// "Default": "default",
|
|
33
|
+
// "Invalid": "invalid"
|
|
34
|
+
// }),
|
|
35
|
+
// "valueType": figma.enum('Value type', {
|
|
36
|
+
// "Placeholder": "placeholder",
|
|
37
|
+
// "Filled": "filled"
|
|
38
|
+
// }),
|
|
39
|
+
// "labelVariant": figma.enum('Label variant', {
|
|
40
|
+
// "Body": "body",
|
|
41
|
+
// "Heading": "heading"
|
|
42
|
+
// })
|
|
43
|
+
},
|
|
44
|
+
example: (props) => (
|
|
45
|
+
<CurrencyInput
|
|
46
|
+
focused={props.focused}
|
|
47
|
+
placeholder={props.placeholder}
|
|
48
|
+
autoFocus={props.autoFocus}
|
|
49
|
+
defaultValue={props.defaultValue}
|
|
50
|
+
value={props.value}
|
|
51
|
+
focusable={props.focusable}
|
|
52
|
+
hasTVPreferredFocus={props.hasTVPreferredFocus}
|
|
53
|
+
/>
|
|
54
|
+
),
|
|
55
|
+
},
|
|
56
|
+
)
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import DateInput from "./DateInput"
|
|
3
|
+
import figma from "@figma/code-connect"
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* -- This file was auto-generated by Code Connect --
|
|
7
|
+
* `props` includes a mapping from your code props to Figma properties.
|
|
8
|
+
* You should check this is correct, and update the `example` function
|
|
9
|
+
* to return the code example you'd like to see in Figma
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
figma.connect(
|
|
13
|
+
DateInput,
|
|
14
|
+
"https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=2277%3A14708",
|
|
15
|
+
{
|
|
16
|
+
props: {
|
|
17
|
+
// These props were automatically mapped based on your linked code:
|
|
18
|
+
hideDay: figma.boolean("Day?"),
|
|
19
|
+
hideMonth: figma.boolean("Month?"),
|
|
20
|
+
monthPlaceholder: figma.string("Month value"),
|
|
21
|
+
yearPlaceholder: figma.string("Year value"),
|
|
22
|
+
dayValue: figma.string("Day value"),
|
|
23
|
+
monthValue: figma.string("Month value"),
|
|
24
|
+
yearValue: figma.string("Year value"),
|
|
25
|
+
disabled: figma.enum("State", {
|
|
26
|
+
Disabled: true,
|
|
27
|
+
}),
|
|
28
|
+
readonly: figma.enum("State", {
|
|
29
|
+
"Read-only": true,
|
|
30
|
+
}),
|
|
31
|
+
label: figma.string("Label"),
|
|
32
|
+
helperText: figma.string("Helper text"),
|
|
33
|
+
validText: figma.string("Validation"),
|
|
34
|
+
invalidText: figma.string("Helper text"),
|
|
35
|
+
// No matching props could be found for these Figma properties:
|
|
36
|
+
// "helperText": figma.boolean('Helper text?'),
|
|
37
|
+
// "label": figma.string('Label'),
|
|
38
|
+
// "validation": figma.string('Validation'),
|
|
39
|
+
// "helperText": figma.string('Helper text'),
|
|
40
|
+
// "dayValue": figma.string('Day value'),
|
|
41
|
+
// "day": figma.boolean('Day?'),
|
|
42
|
+
// "month": figma.boolean('Month?'),
|
|
43
|
+
// "monthValue": figma.string('Month value'),
|
|
44
|
+
// "yearValue": figma.string('Year value'),
|
|
45
|
+
// "optional": figma.boolean('Optional?'),
|
|
46
|
+
// "valueType": figma.enum('Value type', {
|
|
47
|
+
// "Empty": "empty",
|
|
48
|
+
// "Placeholder": "placeholder",
|
|
49
|
+
// "Filled": "filled"
|
|
50
|
+
// }),
|
|
51
|
+
// "focus": figma.boolean('Focus?'),
|
|
52
|
+
// "labelVariant": figma.enum('Label variant', {
|
|
53
|
+
// "Body": "body",
|
|
54
|
+
// "Heading": "heading"
|
|
55
|
+
// })
|
|
56
|
+
},
|
|
57
|
+
example: (props) => (
|
|
58
|
+
<DateInput
|
|
59
|
+
hideDay={props.hideDay}
|
|
60
|
+
hideMonth={props.hideMonth}
|
|
61
|
+
monthPlaceholder={props.monthPlaceholder}
|
|
62
|
+
yearPlaceholder={props.yearPlaceholder}
|
|
63
|
+
dayValue={props.dayValue}
|
|
64
|
+
monthValue={props.monthValue}
|
|
65
|
+
yearValue={props.yearValue}
|
|
66
|
+
disabled={props.disabled}
|
|
67
|
+
readonly={props.readonly}
|
|
68
|
+
label={props.label}
|
|
69
|
+
helperText={props.helperText}
|
|
70
|
+
validText={props.validText}
|
|
71
|
+
invalidText={props.invalidText}
|
|
72
|
+
/>
|
|
73
|
+
),
|
|
74
|
+
},
|
|
75
|
+
)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import DatePickerCalendar from "./DatePickerCalendar"
|
|
3
|
+
import figma from "@figma/code-connect"
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* -- This file was auto-generated by Code Connect --
|
|
7
|
+
* None of your props could be automatically mapped to Figma properties.
|
|
8
|
+
* You should update the `props` object to include a mapping from your
|
|
9
|
+
* code props to Figma properties, and update the `example` function to
|
|
10
|
+
* return the code example you'd like to see in Figma
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
figma.connect(
|
|
14
|
+
DatePickerCalendar,
|
|
15
|
+
"https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=3797%3A6383",
|
|
16
|
+
{
|
|
17
|
+
props: {
|
|
18
|
+
// No matching props could be found for these Figma properties:
|
|
19
|
+
// "grabber": figma.boolean('Grabber?'),
|
|
20
|
+
// "header": figma.boolean('Header?'),
|
|
21
|
+
// "footer": figma.boolean('Footer?'),
|
|
22
|
+
// "deviceType": figma.enum('Device type', {
|
|
23
|
+
// "Desktop": "desktop",
|
|
24
|
+
// "Mobile": "mobile"
|
|
25
|
+
// }),
|
|
26
|
+
// "type": figma.enum('Type', {
|
|
27
|
+
// "Day": "day",
|
|
28
|
+
// "Month": "month",
|
|
29
|
+
// "Year": "year"
|
|
30
|
+
// })
|
|
31
|
+
},
|
|
32
|
+
example: (props) => <DatePickerCalendar />,
|
|
33
|
+
},
|
|
34
|
+
)
|
|
@@ -189,9 +189,9 @@ const styles = StyleSheet.create(theme => ({
|
|
|
189
189
|
},
|
|
190
190
|
],
|
|
191
191
|
_web: {
|
|
192
|
-
'_focus-visible': {
|
|
193
|
-
|
|
194
|
-
},
|
|
192
|
+
// '_focus-visible': {
|
|
193
|
+
// ...theme.helpers.focusVisible,
|
|
194
|
+
// },
|
|
195
195
|
_active: {
|
|
196
196
|
backgroundColor: theme.color.interactive.functional.surface.subtle.active,
|
|
197
197
|
},
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import figma from '@figma/code-connect';
|
|
2
|
+
import DatePickerInput from './DatePickerInput';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* -- This file was auto-generated by Code Connect --
|
|
6
|
+
* `props` includes a mapping from your code props to Figma properties.
|
|
7
|
+
* You should check this is correct, and update the `example` function
|
|
8
|
+
* to return the code example you'd like to see in Figma
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
figma.connect(
|
|
12
|
+
DatePickerInput,
|
|
13
|
+
'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=3917%3A7057',
|
|
14
|
+
{
|
|
15
|
+
props: {
|
|
16
|
+
// These props were automatically mapped based on your linked code:
|
|
17
|
+
disabled: figma.enum('Variant', {
|
|
18
|
+
Disabled: true,
|
|
19
|
+
}),
|
|
20
|
+
readonly: figma.enum('Variant', {
|
|
21
|
+
'Read-only': true,
|
|
22
|
+
}),
|
|
23
|
+
focused: figma.boolean('Focus?'),
|
|
24
|
+
placeholder: figma.string('Label'),
|
|
25
|
+
autoFocus: figma.boolean('Focus?'),
|
|
26
|
+
defaultValue: figma.string('Value'),
|
|
27
|
+
readOnly: figma.enum('Variant', {
|
|
28
|
+
'Read-only': true,
|
|
29
|
+
}),
|
|
30
|
+
focusable: figma.boolean('Focus?'),
|
|
31
|
+
hasTVPreferredFocus: figma.boolean('Focus?'),
|
|
32
|
+
'aria-disabled': figma.enum('Variant', {
|
|
33
|
+
Disabled: true,
|
|
34
|
+
}),
|
|
35
|
+
// No matching props could be found for these Figma properties:
|
|
36
|
+
// "helperText": figma.boolean('Helper text?'),
|
|
37
|
+
// "label": figma.string('Label'),
|
|
38
|
+
// "validation": figma.string('Validation'),
|
|
39
|
+
// "helperText": figma.string('Helper text'),
|
|
40
|
+
// "value": figma.string('Value'),
|
|
41
|
+
// "icon": figma.boolean('Icon?'),
|
|
42
|
+
// "calendar": figma.boolean('Calendar?'),
|
|
43
|
+
// "valueType": figma.enum('Value type', {
|
|
44
|
+
// "Empty": "empty",
|
|
45
|
+
// "Placeholder": "placeholder",
|
|
46
|
+
// "Filled": "filled"
|
|
47
|
+
// })
|
|
48
|
+
},
|
|
49
|
+
example: props => (
|
|
50
|
+
<DatePickerInput
|
|
51
|
+
disabled={props.disabled}
|
|
52
|
+
readonly={props.readonly}
|
|
53
|
+
focused={props.focused}
|
|
54
|
+
placeholder={props.placeholder}
|
|
55
|
+
autoFocus={props.autoFocus}
|
|
56
|
+
defaultValue={props.defaultValue}
|
|
57
|
+
readOnly={props.readOnly}
|
|
58
|
+
focusable={props.focusable}
|
|
59
|
+
/>
|
|
60
|
+
),
|
|
61
|
+
}
|
|
62
|
+
);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import DescriptionList from "./DescriptionList"
|
|
3
|
+
import figma from "@figma/code-connect"
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* -- This file was auto-generated by Code Connect --
|
|
7
|
+
* None of your props could be automatically mapped to Figma properties.
|
|
8
|
+
* You should update the `props` object to include a mapping from your
|
|
9
|
+
* code props to Figma properties, and update the `example` function to
|
|
10
|
+
* return the code example you'd like to see in Figma
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
figma.connect(
|
|
14
|
+
DescriptionList,
|
|
15
|
+
"https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=7247%3A4636",
|
|
16
|
+
{
|
|
17
|
+
props: {
|
|
18
|
+
// No matching props could be found for these Figma properties:
|
|
19
|
+
// "sectionHeader": figma.boolean('Section header?')
|
|
20
|
+
},
|
|
21
|
+
example: (props) => <DescriptionList />,
|
|
22
|
+
},
|
|
23
|
+
)
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import React from "react"
|
|
2
|
+
import Divider from "./Divider"
|
|
3
|
+
import figma from "@figma/code-connect"
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
// */
|
|
5
|
+
/**
|
|
6
|
+
* -- This file was auto-generated by Code Connect --
|
|
7
|
+
* `props` includes a mapping from your code props to Figma properties.
|
|
8
|
+
* You should check this is correct, and update the `example` function
|
|
9
|
+
* to return the code example you'd like to see in Figma
|
|
10
|
+
*/
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
//
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
figma.connect(
|
|
13
|
+
Divider,
|
|
14
|
+
"https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=2421%3A1687",
|
|
15
|
+
{
|
|
16
|
+
props: {
|
|
17
|
+
// These props were automatically mapped based on your linked code:
|
|
18
|
+
orientation: figma.enum("Orientation", {
|
|
19
|
+
Horizontal: "horizontal",
|
|
20
|
+
Vertical: "vertical",
|
|
21
|
+
}),
|
|
22
|
+
},
|
|
23
|
+
example: (props) => <Divider orientation={props.orientation} />,
|
|
24
|
+
},
|
|
25
|
+
)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import ExpandableCard from "./ExpandableCard"
|
|
3
|
+
import figma from "@figma/code-connect"
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* -- This file was auto-generated by Code Connect --
|
|
7
|
+
* `props` includes a mapping from your code props to Figma properties.
|
|
8
|
+
* You should check this is correct, and update the `example` function
|
|
9
|
+
* to return the code example you'd like to see in Figma
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
figma.connect(
|
|
13
|
+
ExpandableCard,
|
|
14
|
+
"https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=7222%3A5935",
|
|
15
|
+
{
|
|
16
|
+
props: {
|
|
17
|
+
// These props were automatically mapped based on your linked code:
|
|
18
|
+
expanded: figma.boolean("Expand?"),
|
|
19
|
+
heading: figma.string("Heading"),
|
|
20
|
+
helperText: figma.string("Helper text"),
|
|
21
|
+
expandedContent: figma.enum("Expand?", {
|
|
22
|
+
False: false,
|
|
23
|
+
True: true,
|
|
24
|
+
}),
|
|
25
|
+
disabled: figma.enum("State", {
|
|
26
|
+
Active: true,
|
|
27
|
+
}),
|
|
28
|
+
collapsable: figma.boolean("Expand?"),
|
|
29
|
+
focusable: figma.enum("State", {
|
|
30
|
+
Focus: true,
|
|
31
|
+
}),
|
|
32
|
+
// No matching props could be found for these Figma properties:
|
|
33
|
+
// "customContent": figma.instance('Custom content'),
|
|
34
|
+
// "heading": figma.string('Heading'),
|
|
35
|
+
// "helperText": figma.string('Helper text'),
|
|
36
|
+
// "helperText": figma.boolean('Helper text?'),
|
|
37
|
+
// "numericalValue": figma.boolean('Numerical value?'),
|
|
38
|
+
// "numericalValue": figma.string('Numerical value'),
|
|
39
|
+
// "leadingContent": figma.boolean('Leading content?'),
|
|
40
|
+
// "badge": figma.boolean('Badge?')
|
|
41
|
+
},
|
|
42
|
+
example: (props) => (
|
|
43
|
+
<ExpandableCard
|
|
44
|
+
expanded={props.expanded}
|
|
45
|
+
heading={props.heading}
|
|
46
|
+
helperText={props.helperText}
|
|
47
|
+
expandedContent={props.expandedContent}
|
|
48
|
+
disabled={props.disabled}
|
|
49
|
+
collapsable={props.collapsable}
|
|
50
|
+
focusable={props.focusable}
|
|
51
|
+
/>
|
|
52
|
+
),
|
|
53
|
+
},
|
|
54
|
+
)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import ExpandableCardGroup from "./ExpandableCardGroup"
|
|
3
|
+
import figma from "@figma/code-connect"
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* -- This file was auto-generated by Code Connect --
|
|
7
|
+
* None of your props could be automatically mapped to Figma properties.
|
|
8
|
+
* You should update the `props` object to include a mapping from your
|
|
9
|
+
* code props to Figma properties, and update the `example` function to
|
|
10
|
+
* return the code example you'd like to see in Figma
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
figma.connect(
|
|
14
|
+
ExpandableCardGroup,
|
|
15
|
+
"https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=7222%3A7221",
|
|
16
|
+
{
|
|
17
|
+
props: {
|
|
18
|
+
// No matching props could be found for these Figma properties:
|
|
19
|
+
// "sectionHeader": figma.boolean('Section header?')
|
|
20
|
+
},
|
|
21
|
+
example: (props) => <ExpandableCardGroup />,
|
|
22
|
+
},
|
|
23
|
+
)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import FormField from "./FormField"
|
|
3
|
+
import figma from "@figma/code-connect"
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* -- This file was auto-generated by Code Connect --
|
|
7
|
+
* None of your props could be automatically mapped to Figma properties.
|
|
8
|
+
* You should update the `props` object to include a mapping from your
|
|
9
|
+
* code props to Figma properties, and update the `example` function to
|
|
10
|
+
* return the code example you'd like to see in Figma
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
figma.connect(
|
|
14
|
+
FormField,
|
|
15
|
+
"https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=8364%3A1546",
|
|
16
|
+
{
|
|
17
|
+
props: {
|
|
18
|
+
// No matching props could be found for these Figma properties:
|
|
19
|
+
// "helperText": figma.boolean('Helper text?')
|
|
20
|
+
},
|
|
21
|
+
example: (props) => <FormField />,
|
|
22
|
+
},
|
|
23
|
+
)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import HelperText from "./HelperText"
|
|
3
|
+
import figma from "@figma/code-connect"
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* -- This file was auto-generated by Code Connect --
|
|
7
|
+
* None of your props could be automatically mapped to Figma properties.
|
|
8
|
+
* You should update the `props` object to include a mapping from your
|
|
9
|
+
* code props to Figma properties, and update the `example` function to
|
|
10
|
+
* return the code example you'd like to see in Figma
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
figma.connect(
|
|
14
|
+
HelperText,
|
|
15
|
+
"https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=8364%3A1538",
|
|
16
|
+
{
|
|
17
|
+
props: {
|
|
18
|
+
// No matching props could be found for these Figma properties:
|
|
19
|
+
// "helperText": figma.string('Helper text')
|
|
20
|
+
},
|
|
21
|
+
example: (props) => <HelperText />,
|
|
22
|
+
},
|
|
23
|
+
)
|