@utilitywarehouse/hearth-react-native 0.12.0 → 0.13.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.
Files changed (107) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/.turbo/turbo-lint.log +1 -1
  3. package/CHANGELOG.md +6 -0
  4. package/build/components/Accordion/AccordionTrigger.js +1 -1
  5. package/build/components/Checkbox/CheckboxIndicator.js +3 -3
  6. package/build/components/DatePicker/DatePickerDay.js +3 -3
  7. package/build/components/PillGroup/Pill.js +2 -2
  8. package/build/components/Radio/RadioIndicator.js +3 -3
  9. package/build/components/RadioCard/RadioCardIndicator.js +3 -3
  10. package/build/components/RadioCard/RadioCardRoot.js +3 -3
  11. package/build/components/Tabs/Tab.js +5 -5
  12. package/build/components/ToggleButton/ToggleButtonRoot.js +2 -2
  13. package/build/components/ToggleButtonCard/ToggleButtonCardRoot.js +3 -3
  14. package/build/components/UnstyledIconButton/UnstyledIconButtonRoot.js +1 -1
  15. package/build/components/VerificationInput/VerificationInput.d.ts +6 -0
  16. package/build/components/VerificationInput/VerificationInput.js +35 -0
  17. package/build/components/VerificationInput/VerificationInput.props.d.ts +49 -0
  18. package/build/components/VerificationInput/VerificationInput.props.js +1 -0
  19. package/build/components/VerificationInput/VerificationInputSlot.d.ts +9 -0
  20. package/build/components/VerificationInput/VerificationInputSlot.js +72 -0
  21. package/build/components/VerificationInput/index.d.ts +4 -0
  22. package/build/components/VerificationInput/index.js +3 -0
  23. package/build/components/VerificationInput/useVerificationInput.d.ts +14 -0
  24. package/build/components/VerificationInput/useVerificationInput.js +58 -0
  25. package/build/components/index.d.ts +1 -0
  26. package/build/components/index.js +1 -0
  27. package/docs/components/AllComponents.web.tsx +9 -0
  28. package/package.json +11 -12
  29. package/src/components/Accordion/Accordion.figma.tsx +23 -0
  30. package/src/components/Accordion/AccordionItemRoot.figma.tsx +47 -0
  31. package/src/components/Accordion/AccordionTrigger.tsx +1 -1
  32. package/src/components/Alert/Alert.figma.tsx +47 -0
  33. package/src/components/Avatar/Avatar.figma.tsx +33 -0
  34. package/src/components/Badge/Badge.figma.tsx +48 -24
  35. package/src/components/Banner/Banner.figma.tsx +15 -0
  36. package/src/components/Banner/BannerIllustration.figma.tsx +30 -0
  37. package/src/components/BottomSheet/BottomSheetModal.figma.tsx +20 -0
  38. package/src/components/Button/Button.figma.tsx +60 -229
  39. package/src/components/Card/Card.figma.tsx +43 -71
  40. package/src/components/Card/CardAction/CardAction.figma.tsx +44 -0
  41. package/src/components/Card/CardAction/CardAction.stories.tsx +1 -1
  42. package/src/components/Carousel/Carousel.figma.tsx +19 -0
  43. package/src/components/Checkbox/Checkbox.figma.tsx +26 -41
  44. package/src/components/Checkbox/CheckboxGroup.figma.tsx +20 -0
  45. package/src/components/Checkbox/CheckboxImage.figma.tsx +27 -0
  46. package/src/components/Checkbox/CheckboxIndicator.tsx +3 -3
  47. package/src/components/Checkbox/CheckboxTileRoot.figma.tsx +32 -0
  48. package/src/components/CurrencyInput/CurrencyInput.figma.tsx +56 -0
  49. package/src/components/DateInput/DateInput.figma.tsx +75 -0
  50. package/src/components/DatePicker/DatePickerCalendar.figma.tsx +34 -0
  51. package/src/components/DatePicker/DatePickerDay.tsx +3 -3
  52. package/src/components/DatePickerInput/DatePickerInput.figma.tsx +62 -0
  53. package/src/components/DescriptionList/DescriptionList.figma.tsx +23 -0
  54. package/src/components/Divider/Divider.figma.tsx +23 -18
  55. package/src/components/ExpandableCard/ExpandableCard.figma.tsx +54 -0
  56. package/src/components/ExpandableCard/ExpandableCardGroup.figma.tsx +23 -0
  57. package/src/components/FormField/FormField.figma.tsx +23 -0
  58. package/src/components/Helper/HelperText.figma.tsx +23 -0
  59. package/src/components/IconButton/IconButton.figma.tsx +55 -161
  60. package/src/components/IconContainer/IconContainer.figma.tsx +50 -0
  61. package/src/components/InlineLink/InlineLink.figma.tsx +33 -0
  62. package/src/components/Input/Input.figma.tsx +52 -110
  63. package/src/components/Label/Label.figma.tsx +24 -0
  64. package/src/components/Link/Link.figma.tsx +42 -0
  65. package/src/components/List/List.figma.tsx +29 -108
  66. package/src/components/List/ListAction/ListAction.figma.tsx +29 -0
  67. package/src/components/List/ListItem/ListItem.figma.tsx +40 -220
  68. package/src/components/List/ListItem/ListItemLeadingContent.figma.tsx +29 -0
  69. package/src/components/List/ListItem/ListItemTrailingContent.figma.tsx +27 -0
  70. package/src/components/Menu/Menu.figma.tsx +30 -0
  71. package/src/components/Menu/MenuItem.figma.tsx +31 -0
  72. package/src/components/Modal/Modal.figma.tsx +56 -0
  73. package/src/components/PillGroup/Pill.figma.tsx +25 -0
  74. package/src/components/PillGroup/Pill.tsx +3 -3
  75. package/src/components/PillGroup/PillGroup.figma.tsx +21 -0
  76. package/src/components/ProgressStepper/ProgressStep.figma.tsx +30 -0
  77. package/src/components/ProgressStepper/ProgressStepper.figma.tsx +20 -0
  78. package/src/components/Radio/Radio.figma.tsx +22 -42
  79. package/src/components/Radio/RadioGroup.figma.tsx +54 -0
  80. package/src/components/Radio/RadioImage.figma.tsx +27 -0
  81. package/src/components/Radio/RadioIndicator.tsx +3 -3
  82. package/src/components/Radio/RadioTileRoot.figma.tsx +31 -0
  83. package/src/components/RadioCard/RadioCardIndicator.tsx +3 -3
  84. package/src/components/RadioCard/RadioCardRoot.tsx +3 -3
  85. package/src/components/SectionHeader/SectionHeader.figma.tsx +30 -16
  86. package/src/components/Select/Select.figma.tsx +55 -0
  87. package/src/components/Select/SelectOption.figma.tsx +36 -0
  88. package/src/components/Spinner/Spinner.figma.tsx +20 -12
  89. package/src/components/Switch/Switch.figma.tsx +31 -23
  90. package/src/components/Tabs/Tab.tsx +5 -5
  91. package/src/components/Tabs/Tabs.figma.tsx +29 -0
  92. package/src/components/ThemedImage/ThemedImage.stories.tsx +1 -1
  93. package/src/components/Toast/ToastItem.figma.tsx +22 -0
  94. package/src/components/ToggleButton/ToggleButtonRoot.tsx +2 -2
  95. package/src/components/ToggleButtonCard/ToggleButtonCardRoot.tsx +3 -3
  96. package/src/components/UnstyledIconButton/UnstyledIconButton.figma.tsx +49 -0
  97. package/src/components/UnstyledIconButton/UnstyledIconButtonRoot.tsx +1 -1
  98. package/src/components/VerificationInput/VerificationInput.docs.mdx +68 -0
  99. package/src/components/VerificationInput/VerificationInput.props.ts +52 -0
  100. package/src/components/VerificationInput/VerificationInput.stories.tsx +140 -0
  101. package/src/components/VerificationInput/VerificationInput.tsx +89 -0
  102. package/src/components/VerificationInput/VerificationInputSlot.tsx +94 -0
  103. package/src/components/VerificationInput/index.ts +5 -0
  104. package/src/components/VerificationInput/useVerificationInput.ts +72 -0
  105. package/src/components/index.ts +1 -0
  106. package/src/components/Checkbox/CheckboxIndicator.figma.tsx +0 -19
  107. package/src/components/Radio/RadioIndicator.figma.tsx +0 -21
@@ -1,110 +1,31 @@
1
- // /* eslint-disable react/jsx-no-undef */
2
- //
3
- // import { List } from './';
4
- // import figma from '@figma/code-connect';
5
- // import { Card } from '../Card';
1
+ import React from "react"
2
+ import List from "./List"
3
+ import figma from "@figma/code-connect"
6
4
 
7
- // const props = {
8
- // heading: figma.nestedProps('List Heading', {
9
- // text: figma.string('heading'),
10
- // helperText: figma.string('Supporting text'),
11
- // }),
12
- // listItem: figma.children('List Item'),
13
- // listItems: figma.children('List Items'),
14
- // cardProps: figma.nestedProps('Card', {
15
- // variant: figma.enum('variant', {
16
- // dashed: 'dashed',
17
- // elevated: 'elevated',
18
- // outline: 'outline',
19
- // filled: 'filled',
20
- // }),
21
- // padding: figma.enum('padding', {
22
- // large: 'large',
23
- // medium: 'medium',
24
- // small: 'small',
25
- // none: 'none',
26
- // }),
27
- // colorScheme: figma.enum('colorScheme', {
28
- // base: 'base',
29
- // grey: 'grey',
30
- // purple: 'purple',
31
- // }),
32
- // surface: figma.enum('surface', {
33
- // base: 'base',
34
- // purple: 'purple',
35
- // }),
36
- // }),
37
- // };
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
+ */
38
11
 
39
- // figma.connect(
40
- // List,
41
- // 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=4643-17907&m=dev',
42
- // {
43
- // props,
44
- // example: ({ listItems }) => <List>{listItems}</List>,
45
- // }
46
- // );
47
-
48
- // figma.connect(
49
- // List,
50
- // 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=4643-17907&m=dev',
51
- // {
52
- // props,
53
- // variant: {
54
- // 'Heading?': true,
55
- // },
56
- // example: ({ heading, listItems }) => (
57
- // <List headingText={heading.text} headingHelperText={heading.helperText}>
58
- // {listItems}
59
- // </List>
60
- // ),
61
- // }
62
- // );
63
-
64
- // figma.connect(
65
- // List,
66
- // 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=4643-17907&m=dev',
67
- // {
68
- // props,
69
- // variant: {
70
- // container: 'tile',
71
- // 'Heading?': true,
72
- // },
73
- // example: ({ heading, listItems, cardProps }) => (
74
- // <List
75
- // container="card"
76
- // headingText={heading.text}
77
- // headingHelperText={heading.helperText}
78
- // >
79
- // <Card {...cardProps}>{listItems}</Card>
80
- // </List>
81
- // ),
82
- // }
83
- // );
84
-
85
- // figma.connect(
86
- // List,
87
- // 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=4643-17907&m=dev',
88
- // {
89
- // props,
90
- // variant: {
91
- // container: 'tile',
92
- // 'Heading?': false,
93
- // },
94
- // example: ({ listItems, cardProps }) => (
95
- // <List container="card">
96
- // <Card {...cardProps}>{listItems}</Card>
97
- // </List>
98
- // ),
99
- // }
100
- // );
101
-
102
- // figma.connect(
103
- // List,
104
- // 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=4623-14698&m=dev',
105
- // {
106
- // props,
107
- // imports: [],
108
- // example: ({ listItem }) => <>{listItem}</>,
109
- // }
110
- // );
12
+ figma.connect(
13
+ List,
14
+ "https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=2437%3A621",
15
+ {
16
+ props: {
17
+ // These props were automatically mapped based on your linked code:
18
+ container: figma.enum("Container", {
19
+ None: "none",
20
+ "Subtle White": "subtleWhite",
21
+ "Emphasis White": "emphasisWhite",
22
+ "Subtle Warm White": "subtleWarmWhite",
23
+ "Emphasis Warm White": "emphasisWarmWhite",
24
+ }),
25
+ // No matching props could be found for these Figma properties:
26
+ // "sectionHeader": figma.boolean('Section header?'),
27
+ // "listAction": figma.boolean('List action?')
28
+ },
29
+ example: (props) => <List container={props.container} />,
30
+ },
31
+ )
@@ -0,0 +1,29 @@
1
+ import figma from '@figma/code-connect';
2
+ import ListAction from './ListAction';
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
+ ListAction,
13
+ 'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=9661%3A5128',
14
+ {
15
+ props: {
16
+ // These props were automatically mapped based on your linked code:
17
+ heading: figma.string('Action heading'),
18
+ disabled: figma.enum('State', {
19
+ Disabled: true,
20
+ }),
21
+ 'aria-disabled': figma.enum('State', {
22
+ Disabled: true,
23
+ }),
24
+ // No matching props could be found for these Figma properties:
25
+ // "actionHeading": figma.string('Action heading')
26
+ },
27
+ example: props => <ListAction heading={props.heading} disabled={props.disabled} />,
28
+ }
29
+ );
@@ -1,220 +1,40 @@
1
- // /* eslint-disable react/jsx-no-undef */
2
- //
3
- // import { ListItem } from './';
4
- // import figma from '@figma/code-connect';
5
-
6
- // const props = {
7
- // divider: figma.boolean('Divider?'),
8
- // disabled: figma.enum('state', {
9
- // disabled: true,
10
- // }),
11
- // loading: figma.enum('state', {
12
- // loading: true,
13
- // }),
14
- // trailingIcon: figma.instance('Trailing Icon'),
15
- // leadingIcon: figma.instance('Leading Icon'),
16
- // text: figma.nestedProps('.Parts/List Item Text', {
17
- // text: figma.string('list item text'),
18
- // helperText: figma.string('Supporting Text'),
19
- // }),
20
- // };
21
-
22
- // figma.connect(
23
- // ListItem,
24
- // 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=4283-3401&m=dev',
25
- // {
26
- // props: props,
27
- // example: ({ disabled, divider, loading, text }) => (
28
- // <ListItem
29
- // text={text.text}
30
- // helperText={text.helperText}
31
- // disabled={disabled}
32
- // divider={divider}
33
- // loading={loading}
34
- // />
35
- // ),
36
- // }
37
- // );
38
-
39
- // figma.connect(
40
- // ListItem,
41
- // 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=4283-3401&m=dev',
42
- // {
43
- // variant: {
44
- // 'Trailing Icon?': true,
45
- // 'Trailing Icon': 'Chevron Right-01 - 24',
46
- // },
47
- // props,
48
- // example: ({ disabled, divider, loading, text }) => (
49
- // <ListItem
50
- // text={text.text}
51
- // helperText={text.helperText}
52
- // disabled={disabled}
53
- // divider={divider}
54
- // loading={loading}
55
- // onPress={() => console.log('list item pressed')}
56
- // />
57
- // ),
58
- // }
59
- // );
60
-
61
- // figma.connect(
62
- // ListItem,
63
- // 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=4283-3401&m=dev',
64
- // {
65
- // props: props,
66
- // variant: {
67
- // 'Trailing Icon?': true,
68
- // },
69
- // example: ({ disabled, divider, loading, text, trailingIcon }) => (
70
- // <ListItem
71
- // text={text.text}
72
- // helperText={text.helperText}
73
- // disabled={disabled}
74
- // divider={divider}
75
- // loading={loading}
76
- // trailingContent={trailingIcon}
77
- // />
78
- // ),
79
- // }
80
- // );
81
-
82
- // figma.connect(
83
- // ListItem,
84
- // 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=4283-3401&m=dev',
85
- // {
86
- // props: props,
87
- // variant: {
88
- // 'Trailing Icon?': true,
89
- // 'Leading Icon?': true,
90
- // 'Trailing Icon': 'Chevron Right-01 - 24',
91
- // },
92
- // example: ({ disabled, divider, loading, text, leadingIcon }) => (
93
- // <ListItem
94
- // text={text.text}
95
- // helperText={text.helperText}
96
- // disabled={disabled}
97
- // divider={divider}
98
- // loading={loading}
99
- // leadingContent={leadingIcon}
100
- // onPress={() => console.log('list item pressed')}
101
- // />
102
- // ),
103
- // }
104
- // );
105
-
106
- // figma.connect(
107
- // ListItem,
108
- // 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=4283-3401&m=dev',
109
- // {
110
- // props: props,
111
- // variant: {
112
- // 'Trailing Icon?': true,
113
- // 'Leading Icon?': true,
114
- // },
115
- // example: ({ disabled, divider, loading, text, trailingIcon, leadingIcon }) => (
116
- // <ListItem
117
- // text={text.text}
118
- // helperText={text.helperText}
119
- // disabled={disabled}
120
- // divider={divider}
121
- // loading={loading}
122
- // leadingContent={leadingIcon}
123
- // trailingContent={trailingIcon}
124
- // />
125
- // ),
126
- // }
127
- // );
128
-
129
- // figma.connect(
130
- // ListItem,
131
- // 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=4283-3401&m=dev',
132
- // {
133
- // props: props,
134
- // variant: {
135
- // 'Leading Icon?': true,
136
- // },
137
- // example: ({ disabled, divider, loading, text, leadingIcon }) => (
138
- // <ListItem
139
- // text={text.text}
140
- // helperText={text.helperText}
141
- // disabled={disabled}
142
- // divider={divider}
143
- // loading={loading}
144
- // leadingContent={leadingIcon}
145
- // />
146
- // ),
147
- // }
148
- // );
149
-
150
- // figma.connect(
151
- // ListItem,
152
- // 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=4283-3401&m=dev',
153
- // {
154
- // variant: {
155
- // _content: 'toggle',
156
- // 'Trailing Icon?': true,
157
- // 'Leading Icon?': true,
158
- // },
159
- // props,
160
- // example: ({ disabled, divider, loading, text, leadingIcon }) => (
161
- // // Toggle doesn't exist in native-ui yet
162
- // <ListItem
163
- // text={text.text}
164
- // helperText={text.helperText}
165
- // disabled={disabled}
166
- // divider={divider}
167
- // loading={loading}
168
- // leadingContent={leadingIcon}
169
- // trailingContent={<Toggle />}
170
- // />
171
- // ),
172
- // }
173
- // );
174
-
175
- // figma.connect(
176
- // ListItem,
177
- // 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=4283-3401&m=dev',
178
- // {
179
- // variant: {
180
- // _content: 'toggle',
181
- // 'Leading Icon?': true,
182
- // },
183
- // props,
184
- // example: ({ disabled, divider, loading, text, leadingIcon }) => (
185
- // // Toggle doesn't exist in native-ui yet
186
- // <ListItem
187
- // text={text.text}
188
- // helperText={text.helperText}
189
- // disabled={disabled}
190
- // divider={divider}
191
- // loading={loading}
192
- // leadingContent={leadingIcon}
193
- // trailingContent={<Toggle />}
194
- // />
195
- // ),
196
- // }
197
- // );
198
-
199
- // figma.connect(
200
- // ListItem,
201
- // 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=4283-3401&m=dev',
202
- // {
203
- // variant: {
204
- // _content: 'toggle',
205
- // 'Leading Icon?': false,
206
- // },
207
- // props,
208
- // example: ({ disabled, divider, loading, text }) => (
209
- // // Toggle doesn't exist in native-ui yet
210
- // <ListItem
211
- // text={text.text}
212
- // helperText={text.helperText}
213
- // disabled={disabled}
214
- // divider={divider}
215
- // loading={loading}
216
- // trailingContent={<Toggle />}
217
- // />
218
- // ),
219
- // }
220
- // );
1
+ import figma from '@figma/code-connect';
2
+ import ListItem from './ListItem';
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(ListItem, 'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=2421%3A1628', {
12
+ props: {
13
+ // These props were automatically mapped based on your linked code:
14
+ loading: figma.enum('State', {
15
+ Loading: true,
16
+ }),
17
+ disabled: figma.enum('State', {
18
+ Disabled: true,
19
+ }),
20
+ 'aria-disabled': figma.enum('State', {
21
+ Disabled: true,
22
+ }),
23
+ // No matching props could be found for these Figma properties:
24
+ // "listHeading": figma.string('List heading'),
25
+ // "helperText": figma.boolean('Helper text?'),
26
+ // "helperText": figma.string('Helper text'),
27
+ // "customContent": figma.instance('Custom content'),
28
+ // "badge": figma.boolean('Badge?'),
29
+ // "leadingContent": figma.boolean('Leading content?'),
30
+ // "trailingContent": figma.boolean('Trailing Content?'),
31
+ // "numericalValue": figma.boolean('Numerical value?'),
32
+ // "numericalValue": figma.string('Numerical value'),
33
+ // "variant": figma.enum('Variant', {
34
+ // "Default": "default",
35
+ // "Custom": "custom"
36
+ // }),
37
+ // "paddingNone": figma.boolean('Padding None?')
38
+ },
39
+ example: props => <ListItem loading={props.loading} disabled={props.disabled} />,
40
+ });
@@ -0,0 +1,29 @@
1
+ import React from "react"
2
+ import ListItemLeadingContent from "./ListItemLeadingContent"
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
+ ListItemLeadingContent,
15
+ "https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=6732%3A5792",
16
+ {
17
+ props: {
18
+ // No matching props could be found for these Figma properties:
19
+ // "icon24": figma.instance('Icon-24'),
20
+ // "variant": figma.enum('Variant', {
21
+ // "Icon": "icon",
22
+ // "Icon Container": "icon-container",
23
+ // "Avatar": "avatar",
24
+ // "Indicator": "indicator"
25
+ // })
26
+ },
27
+ example: (props) => <ListItemLeadingContent />,
28
+ },
29
+ )
@@ -0,0 +1,27 @@
1
+ import React from "react"
2
+ import ListItemTrailingContent from "./ListItemTrailingContent"
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
+ ListItemTrailingContent,
15
+ "https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=9852%3A9858",
16
+ {
17
+ props: {
18
+ // No matching props could be found for these Figma properties:
19
+ // "icon20": figma.instance('Icon-20'),
20
+ // "variant": figma.enum('Variant', {
21
+ // "Link": "link",
22
+ // "Button": "button"
23
+ // })
24
+ },
25
+ example: (props) => <ListItemTrailingContent />,
26
+ },
27
+ )
@@ -0,0 +1,30 @@
1
+ import React from "react"
2
+ import Menu from "./Menu"
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
+ Menu,
14
+ "https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=3263%3A18832",
15
+ {
16
+ props: {
17
+ // These props were automatically mapped based on your linked code:
18
+ heading: figma.string("Heading"),
19
+ // No matching props could be found for these Figma properties:
20
+ // "heading": figma.string('Heading'),
21
+ // "heading": figma.boolean('Heading?'),
22
+ // "grabber": figma.boolean('Grabber?'),
23
+ // "deviceType": figma.enum('Device type', {
24
+ // "Web": "web",
25
+ // "App": "app"
26
+ // })
27
+ },
28
+ example: (props) => <Menu heading={props.heading} />,
29
+ },
30
+ )
@@ -0,0 +1,31 @@
1
+ import figma from '@figma/code-connect';
2
+ import MenuItem from './MenuItem';
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
+ MenuItem,
13
+ 'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=6416%3A11142',
14
+ {
15
+ props: {
16
+ // These props were automatically mapped based on your linked code:
17
+ disabled: figma.enum('State', {
18
+ Active: true,
19
+ }),
20
+ focusable: figma.enum('State', {
21
+ Focus: true,
22
+ }),
23
+ // No matching props could be found for these Figma properties:
24
+ // "number": figma.string('Number'),
25
+ // "selected": figma.boolean('Selected?')
26
+ },
27
+ example: props => (
28
+ <MenuItem text={null} disabled={props.disabled} focusable={props.focusable} />
29
+ ),
30
+ }
31
+ );
@@ -0,0 +1,56 @@
1
+ import React from "react"
2
+ import Modal from "./Modal"
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
+ Modal,
14
+ "https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=6300%3A2825",
15
+ {
16
+ props: {
17
+ // These props were automatically mapped based on your linked code:
18
+ loading: figma.enum("State", {
19
+ Loading: true,
20
+ }),
21
+ image: figma.enum("Image?", {
22
+ False: false,
23
+ True: true,
24
+ }),
25
+ heading: figma.string("Heading"),
26
+ description: figma.string("Description"),
27
+ fullscreen: figma.boolean("Full screen?"),
28
+ showHandle: figma.boolean("Handle?"),
29
+ // No matching props could be found for these Figma properties:
30
+ // "heading": figma.string('Heading'),
31
+ // "description": figma.string('Description'),
32
+ // "customContent": figma.boolean('Custom content?'),
33
+ // "buttons": figma.boolean('Buttons?'),
34
+ // "close": figma.boolean('Close?'),
35
+ // "customContent": figma.instance('Custom content'),
36
+ // "homeIndicator": figma.boolean('Home indicator?'),
37
+ // "handle": figma.boolean('Handle?'),
38
+ // "loadingHeading": figma.string('Loading heading'),
39
+ // "deviceType": figma.enum('Device type', {
40
+ // "Desktop": "desktop",
41
+ // "Tablet": "tablet",
42
+ // "Mobile": "mobile"
43
+ // })
44
+ },
45
+ example: (props) => (
46
+ <Modal
47
+ loading={props.loading}
48
+ image={props.image}
49
+ heading={props.heading}
50
+ description={props.description}
51
+ fullscreen={props.fullscreen}
52
+ showHandle={props.showHandle}
53
+ />
54
+ ),
55
+ },
56
+ )
@@ -0,0 +1,25 @@
1
+ import figma from '@figma/code-connect';
2
+ import { Pill } from './Pill';
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(Pill, 'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=4348%3A15595', {
12
+ props: {
13
+ // These props were automatically mapped based on your linked code:
14
+ label: figma.string('Label'),
15
+ focusable: figma.enum('State', {
16
+ Focus: true,
17
+ }),
18
+ // No matching props could be found for these Figma properties:
19
+ // "label": figma.string('Label'),
20
+ // "icon": figma.boolean('Icon?'),
21
+ // "icon20": figma.instance('Icon-20'),
22
+ // "selected": figma.boolean('Selected?')
23
+ },
24
+ example: props => <Pill value={null} label={props.label} focusable={props.focusable} />,
25
+ });
@@ -1,10 +1,10 @@
1
1
  import { createPressable } from '@gluestack-ui/pressable';
2
2
  import { Pressable } from 'react-native';
3
3
  import { StyleSheet } from 'react-native-unistyles';
4
- import { Icon } from '../Icon';
5
4
  import { BodyText } from '../BodyText';
6
- import { usePillGroupContext } from './PillGroup.context';
5
+ import { Icon } from '../Icon';
7
6
  import type { PillProps } from './Pill.props';
7
+ import { usePillGroupContext } from './PillGroup.context';
8
8
 
9
9
  const PillRoot = ({
10
10
  value,
@@ -61,7 +61,7 @@ const styles = StyleSheet.create(theme => ({
61
61
  _hover: {
62
62
  backgroundColor: theme.color.interactive.neutral.surface.subtle.hover,
63
63
  },
64
- '_focus-visible': theme.helpers.focusVisible,
64
+ // '_focus-visible': theme.helpers.focusVisible,
65
65
  },
66
66
  variants: {
67
67
  active: {