@utilitywarehouse/hearth-react-native 0.19.1 → 0.20.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 +13 -13
- package/CHANGELOG.md +50 -4
- package/build/components/Select/Select.d.ts +1 -1
- package/build/components/Select/Select.js +9 -10
- package/build/components/Select/Select.props.d.ts +16 -0
- package/package.json +3 -3
- package/src/components/Checkbox/CheckboxGroup.figma.tsx +21 -1
- package/src/components/PillGroup/Pill.figma.tsx +4 -17
- package/src/components/PillGroup/PillGroup.figma.tsx +8 -9
- package/src/components/ProgressStepper/ProgressStep.figma.tsx +4 -15
- package/src/components/ProgressStepper/ProgressStepper.figma.tsx +9 -16
- package/src/components/Radio/Radio.figma.tsx +35 -22
- package/src/components/Radio/RadioGroup.figma.tsx +69 -41
- package/src/components/Radio/RadioTile.figma.tsx +34 -0
- package/src/components/RadioCard/RadioCard.figma.tsx +24 -0
- package/src/components/SectionHeader/SectionHeader.figma.tsx +31 -25
- package/src/components/Select/Select.docs.mdx +76 -28
- package/src/components/Select/Select.figma.tsx +44 -43
- package/src/components/Select/Select.props.ts +16 -0
- package/src/components/Select/Select.tsx +42 -35
- package/src/components/Select/SelectOption.figma.tsx +3 -21
- package/src/components/Spinner/Spinner.figma.tsx +12 -25
- package/src/components/Switch/Switch.figma.tsx +2 -23
- package/src/components/Tabs/Tab.figma.tsx +21 -0
- package/src/components/Tabs/Tabs.figma.tsx +18 -27
- package/src/components/Textarea/Textarea.figma.tsx +64 -0
- package/src/components/ToggleButtonCard/ToggleButtonCard.figma.tsx +24 -0
- package/src/components/VerificationInput/VerificationInput.figma.tsx +53 -0
- package/src/components/Radio/RadioTileRoot.figma.tsx +0 -31
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import figma from '@figma/code-connect';
|
|
2
|
+
import { Textarea } from '..';
|
|
3
|
+
|
|
4
|
+
const props = {
|
|
5
|
+
disabled: figma.enum('State', {
|
|
6
|
+
Disabled: true,
|
|
7
|
+
}),
|
|
8
|
+
readonly: figma.enum('State', {
|
|
9
|
+
'Read-only': true,
|
|
10
|
+
}),
|
|
11
|
+
placeholder: figma.enum('Value type', {
|
|
12
|
+
Placeholder: figma.string('Value'),
|
|
13
|
+
}),
|
|
14
|
+
value: figma.enum('Value type', {
|
|
15
|
+
Filled: figma.string('Value'),
|
|
16
|
+
}),
|
|
17
|
+
label: figma.string('Label'),
|
|
18
|
+
labelVariant: figma.enum('Label variant', {
|
|
19
|
+
Body: 'body',
|
|
20
|
+
Heading: 'heading',
|
|
21
|
+
}),
|
|
22
|
+
helperText: figma.boolean('Helper text?', {
|
|
23
|
+
true: figma.string('Helper text'),
|
|
24
|
+
}),
|
|
25
|
+
validationStatus: figma.enum('State', {
|
|
26
|
+
Invalid: 'invalid',
|
|
27
|
+
Valid: 'valid',
|
|
28
|
+
}),
|
|
29
|
+
invalidText: figma.enum('State', {
|
|
30
|
+
Invalid: figma.string('Validation'),
|
|
31
|
+
}),
|
|
32
|
+
validText: figma.enum('State', {
|
|
33
|
+
Valid: figma.string('Validation'),
|
|
34
|
+
}),
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
figma.connect(
|
|
38
|
+
Textarea,
|
|
39
|
+
'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR/Hearth-Components---Tokens?node-id=2356-5180&m=dev',
|
|
40
|
+
{
|
|
41
|
+
props: {
|
|
42
|
+
...props,
|
|
43
|
+
required: figma.boolean('Optional?', {
|
|
44
|
+
true: false,
|
|
45
|
+
false: true,
|
|
46
|
+
}),
|
|
47
|
+
},
|
|
48
|
+
example: props => (
|
|
49
|
+
<Textarea
|
|
50
|
+
disabled={props.disabled}
|
|
51
|
+
readonly={props.readonly}
|
|
52
|
+
placeholder={props.placeholder}
|
|
53
|
+
value={props.value}
|
|
54
|
+
label={props.label}
|
|
55
|
+
labelVariant={props.labelVariant}
|
|
56
|
+
helperText={props.helperText}
|
|
57
|
+
required={props.required}
|
|
58
|
+
validationStatus={props.validationStatus}
|
|
59
|
+
invalidText={props.invalidText}
|
|
60
|
+
validText={props.validText}
|
|
61
|
+
/>
|
|
62
|
+
),
|
|
63
|
+
}
|
|
64
|
+
);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import figma from '@figma/code-connect';
|
|
2
|
+
import { ToggleButtonCard } from '../';
|
|
3
|
+
|
|
4
|
+
figma.connect(
|
|
5
|
+
ToggleButtonCard,
|
|
6
|
+
'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR/Hearth-Components---Tokens?node-id=2164-727&t=Uq6QfQcygdNGv5lM-4',
|
|
7
|
+
{
|
|
8
|
+
variant: {
|
|
9
|
+
Variant: 'Toggle Button',
|
|
10
|
+
},
|
|
11
|
+
props: {
|
|
12
|
+
radio: figma.nestedProps('Radio', {
|
|
13
|
+
label: figma.string('Label'),
|
|
14
|
+
}),
|
|
15
|
+
content: figma.instance('Content'),
|
|
16
|
+
},
|
|
17
|
+
example: props => (
|
|
18
|
+
// This should be wrapped in a ToggleButtonCardGroup, see docs
|
|
19
|
+
<ToggleButtonCard label={props.radio.label} value="someValue">
|
|
20
|
+
{props.content}
|
|
21
|
+
</ToggleButtonCard>
|
|
22
|
+
),
|
|
23
|
+
}
|
|
24
|
+
);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import figma from '@figma/code-connect';
|
|
2
|
+
import { VerificationInput } from '..';
|
|
3
|
+
|
|
4
|
+
const props = {
|
|
5
|
+
disabled: figma.enum('State', {
|
|
6
|
+
Disabled: true,
|
|
7
|
+
}),
|
|
8
|
+
placeholder: figma.enum('Value type', {
|
|
9
|
+
Placeholder: figma.string('Value'),
|
|
10
|
+
}),
|
|
11
|
+
value: figma.enum('Value type', {
|
|
12
|
+
Filled: figma.string('Value 1'),
|
|
13
|
+
}),
|
|
14
|
+
label: figma.string('Label'),
|
|
15
|
+
labelVariant: figma.enum('Label variant', {
|
|
16
|
+
Body: 'body',
|
|
17
|
+
Heading: 'heading',
|
|
18
|
+
}),
|
|
19
|
+
helperText: figma.boolean('Helper text?', {
|
|
20
|
+
true: figma.string('Helper text'),
|
|
21
|
+
}),
|
|
22
|
+
validationStatus: figma.enum('State', {
|
|
23
|
+
Invalid: 'invalid',
|
|
24
|
+
Valid: 'valid',
|
|
25
|
+
}),
|
|
26
|
+
invalidText: figma.enum('State', {
|
|
27
|
+
Invalid: figma.string('Validation'),
|
|
28
|
+
}),
|
|
29
|
+
validText: figma.enum('State', {
|
|
30
|
+
Valid: figma.string('Validation'),
|
|
31
|
+
}),
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
figma.connect(
|
|
35
|
+
VerificationInput,
|
|
36
|
+
'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR/Hearth-Components---Tokens?node-id=4049-3615&m=dev',
|
|
37
|
+
{
|
|
38
|
+
props,
|
|
39
|
+
example: props => (
|
|
40
|
+
<VerificationInput
|
|
41
|
+
disabled={props.disabled}
|
|
42
|
+
placeholder={props.placeholder}
|
|
43
|
+
value={props.value}
|
|
44
|
+
label={props.label}
|
|
45
|
+
labelVariant={props.labelVariant}
|
|
46
|
+
helperText={props.helperText}
|
|
47
|
+
validationStatus={props.validationStatus}
|
|
48
|
+
invalidText={props.invalidText}
|
|
49
|
+
validText={props.validText}
|
|
50
|
+
/>
|
|
51
|
+
),
|
|
52
|
+
}
|
|
53
|
+
);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import RadioTileRoot from "./RadioTileRoot"
|
|
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
|
-
RadioTileRoot,
|
|
15
|
-
"https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=3138%3A13222",
|
|
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
|
-
// "Focus": "focus"
|
|
26
|
-
// }),
|
|
27
|
-
// "checked": figma.boolean('Checked?')
|
|
28
|
-
},
|
|
29
|
-
example: (props) => <RadioTileRoot />,
|
|
30
|
-
},
|
|
31
|
-
)
|