@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
@@ -0,0 +1,21 @@
1
+ import figma from '@figma/code-connect';
2
+ import { PillGroup } from './PillGroup';
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
+ PillGroup,
13
+ 'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=4348%3A15988',
14
+ {
15
+ props: {
16
+ // These props were automatically mapped based on your linked code:
17
+ wrap: figma.boolean('Wrap?'),
18
+ },
19
+ example: props => <PillGroup value={null} wrap={props.wrap} />,
20
+ }
21
+ );
@@ -0,0 +1,30 @@
1
+ import figma from '@figma/code-connect';
2
+ import ProgressStep from './ProgressStep';
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
+ ProgressStep,
13
+ 'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=6056%3A1987',
14
+ {
15
+ props: {
16
+ // These props were automatically mapped based on your linked code:
17
+ status: figma.enum('State', {
18
+ Complete: 'complete',
19
+ Active: 'active',
20
+ Incomplete: 'incomplete',
21
+ }),
22
+ // No matching props could be found for these Figma properties:
23
+ // "label": figma.string('Label'),
24
+ // "label": figma.boolean('Label?'),
25
+ // "stepNumber": figma.string('Step number'),
26
+ // "interactive": figma.boolean('Interactive?')
27
+ },
28
+ example: props => <ProgressStep id={null} status={props.status} />,
29
+ }
30
+ );
@@ -0,0 +1,20 @@
1
+ import React from "react"
2
+ import ProgressStepper from "./ProgressStepper"
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
+ ProgressStepper,
15
+ "https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=6056%3A2000",
16
+ {
17
+ props: {},
18
+ example: (props) => <ProgressStepper />,
19
+ },
20
+ )
@@ -1,45 +1,25 @@
1
1
  import figma from '@figma/code-connect';
2
- import { Radio, RadioGroup } from './';
2
+ import Radio from './Radio';
3
3
 
4
- const value = 'some-value';
5
- const setValue = (value: string) => console.log(value);
4
+ /**
5
+ * -- This file was auto-generated by Code Connect --
6
+ * None of your props could be automatically mapped to Figma properties.
7
+ * You should update the `props` object to include a mapping from your
8
+ * code props to Figma properties, and update the `example` function to
9
+ * return the code example you'd like to see in Figma
10
+ */
6
11
 
7
- figma.connect(
8
- Radio,
9
- 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=5626-1463&m=dev',
10
- {
11
- props: {
12
- disabled: figma.boolean('disabled'),
13
- label: figma.nestedProps('Label', {
14
- text: figma.string('Label Text'),
15
- }),
16
- helperText: figma.nestedProps('Helper Text', {
17
- text: figma.string('Text'),
18
- }),
19
- invalidText: figma.boolean('invalid', {
20
- true: figma.nestedProps('Helper Text', {
21
- text: figma.string('Text'),
22
- showIcon: figma.boolean('showIcon?'),
23
- }),
24
- false: {
25
- text: undefined,
26
- showIcon: undefined,
27
- },
28
- }),
29
- },
30
- example: ({ disabled, label, helperText, invalidText }) => (
31
- <RadioGroup value={value} onChange={setValue}>
32
- <Radio
33
- value="someValue"
34
- disabled={disabled}
35
- label={label.text}
36
- helperText={helperText.text}
37
- invalidText={invalidText.text}
38
- showValidationIcon={invalidText.showIcon}
39
- />
40
- </RadioGroup>
41
- ),
42
- }
43
- );
44
-
45
- // TODO: Add variants with helperText when it's implemented
12
+ figma.connect(Radio, 'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=7428%3A12685', {
13
+ props: {
14
+ // No matching props could be found for these Figma properties:
15
+ // "helperText": figma.boolean('Helper text?'),
16
+ // "helperText": figma.string('Helper text'),
17
+ // "label": figma.string('Label'),
18
+ // "image": figma.boolean('Image?'),
19
+ // "state": figma.enum('State', {
20
+ // "Default": "default"
21
+ // }),
22
+ // "checked": figma.boolean('Checked?')
23
+ },
24
+ example: props => <Radio value={null} />,
25
+ });
@@ -0,0 +1,54 @@
1
+ import React from "react"
2
+ import RadioGroup from "./RadioGroup"
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
+ RadioGroup,
14
+ "https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=3138%3A13254",
15
+ {
16
+ props: {
17
+ // These props were automatically mapped based on your linked code:
18
+ label: figma.string("Group label"),
19
+ helperText: figma.string("Helper text"),
20
+ invalidText: figma.string("Helper text"),
21
+ validText: figma.string("Validation text"),
22
+ direction: figma.enum("Direction", {
23
+ Row: "row",
24
+ Column: "column",
25
+ }),
26
+ // No matching props could be found for these Figma properties:
27
+ // "groupLabel": figma.string('Group label'),
28
+ // "helperText": figma.boolean('Helper text?'),
29
+ // "helperText": figma.string('Helper text'),
30
+ // "validationText": figma.string('Validation text'),
31
+ // "state": figma.enum('State', {
32
+ // "Default": "default",
33
+ // "Invalid": "invalid"
34
+ // }),
35
+ // "labelVariant": figma.enum('Label variant', {
36
+ // "Body": "body",
37
+ // "Heading": "heading"
38
+ // }),
39
+ // "content": figma.enum('Content', {
40
+ // "Radio": "radio",
41
+ // "Radio Tile": "radio-tile"
42
+ // })
43
+ },
44
+ example: (props) => (
45
+ <RadioGroup
46
+ label={props.label}
47
+ helperText={props.helperText}
48
+ invalidText={props.invalidText}
49
+ validText={props.validText}
50
+ direction={props.direction}
51
+ />
52
+ ),
53
+ },
54
+ )
@@ -0,0 +1,27 @@
1
+ import React from "react"
2
+ import RadioImage from "./RadioImage"
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
+ RadioImage,
15
+ "https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=7428%3A8535",
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) => <RadioImage />,
26
+ },
27
+ )
@@ -35,9 +35,9 @@ const styles = StyleSheet.create(theme => ({
35
35
  _hover: {
36
36
  outlineColor: theme.components.radio.outlineColorHover,
37
37
  },
38
- '_focus-within': {
39
- ...theme.helpers.focusVisible,
40
- },
38
+ // '_focus-within': {
39
+ // ...theme.helpers.focusVisible,
40
+ // },
41
41
  _active: {
42
42
  outlineColor: theme.components.radio.outlineColorActive,
43
43
  },
@@ -0,0 +1,31 @@
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
+ )
@@ -35,9 +35,9 @@ const styles = StyleSheet.create(theme => ({
35
35
  _hover: {
36
36
  outlineColor: theme.components.radio.outlineColorHover,
37
37
  },
38
- '_focus-within': {
39
- ...theme.helpers.focusVisible,
40
- },
38
+ // '_focus-within': {
39
+ // ...theme.helpers.focusVisible,
40
+ // },
41
41
  _active: {
42
42
  outlineColor: theme.components.radio.outlineColorActive,
43
43
  },
@@ -75,9 +75,9 @@ const styles = StyleSheet.create(theme => ({
75
75
  },
76
76
  },
77
77
  _web: {
78
- '_focus-visible': {
79
- ...theme.helpers.focusVisible,
80
- },
78
+ // '_focus-visible': {
79
+ // ...theme.helpers.focusVisible,
80
+ // },
81
81
  },
82
82
  },
83
83
  }));
@@ -1,17 +1,31 @@
1
- //
2
- // import { SectionHeader } from './';
3
- // import figma from '@figma/code-connect';
1
+ import React from "react"
2
+ import SectionHeader from "./SectionHeader"
3
+ import figma from "@figma/code-connect"
4
4
 
5
- // figma.connect(
6
- // SectionHeader,
7
- // 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=4763-8266&t=q4qCzh74a2av1MqM-4',
8
- // {
9
- // props: {
10
- // helperText: figma.string('Supporting text'),
11
- // text: figma.string('heading'),
12
- // },
13
- // example: ({ helperText, text }) => (
14
- // <SectionHeader text={text} helperText={helperText} />
15
- // ),
16
- // }
17
- // );
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
+ SectionHeader,
15
+ "https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=9092%3A3352",
16
+ {
17
+ props: {
18
+ // No matching props could be found for these Figma properties:
19
+ // "trailingContent": figma.boolean('Trailing content?'),
20
+ // "helperText": figma.boolean('Helper text?'),
21
+ // "helperText": figma.string('Helper text'),
22
+ // "heading": figma.string('Heading'),
23
+ // "badge": figma.boolean('Badge?'),
24
+ // "state": figma.enum('State', {
25
+ // "Invalid": "invalid",
26
+ // "Default": "default"
27
+ // })
28
+ },
29
+ example: (props) => <SectionHeader />,
30
+ },
31
+ )
@@ -0,0 +1,55 @@
1
+ import figma from '@figma/code-connect';
2
+ import Select from './Select';
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(Select, 'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=3224%3A995', {
12
+ props: {
13
+ // These props were automatically mapped based on your linked code:
14
+ label: figma.string('Label'),
15
+ placeholder: figma.string('Label'),
16
+ disabled: figma.enum('Variant', {
17
+ Disabled: true,
18
+ }),
19
+ emptyText: figma.string('Helper text'),
20
+ readonly: figma.enum('Variant', {
21
+ 'Read-only': true,
22
+ }),
23
+ collapsable: figma.boolean('Dropdown?'),
24
+ focusable: figma.boolean('Focus?'),
25
+ hasTVPreferredFocus: figma.boolean('Focus?'),
26
+ 'aria-disabled': figma.enum('Variant', {
27
+ Disabled: true,
28
+ }),
29
+ // No matching props could be found for these Figma properties:
30
+ // "helperText": figma.boolean('Helper text?'),
31
+ // "label": figma.string('Label'),
32
+ // "validation": figma.string('Validation'),
33
+ // "helperText": figma.string('Helper text'),
34
+ // "value": figma.string('Value'),
35
+ // "dropdown": figma.boolean('Dropdown?'),
36
+ // "optional": figma.boolean('Optional?'),
37
+ // "valueType": figma.enum('Value type', {
38
+ // "Empty": "empty",
39
+ // "Placeholder": "placeholder",
40
+ // "Selected": "selected"
41
+ // })
42
+ },
43
+ example: props => (
44
+ <Select
45
+ label={props.label}
46
+ placeholder={props.placeholder}
47
+ disabled={props.disabled}
48
+ emptyText={props.emptyText}
49
+ readonly={props.readonly}
50
+ collapsable={props.collapsable}
51
+ focusable={props.focusable}
52
+ hasTVPreferredFocus={props.hasTVPreferredFocus}
53
+ />
54
+ ),
55
+ });
@@ -0,0 +1,36 @@
1
+ import figma from '@figma/code-connect';
2
+ import SelectOption from './SelectOption';
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
+ SelectOption,
13
+ 'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=4340%3A1252',
14
+ {
15
+ props: {
16
+ // These props were automatically mapped based on your linked code:
17
+ label: figma.string('Label'),
18
+ selected: figma.boolean('Selected?'),
19
+ disabled: figma.enum('State', {
20
+ Active: true,
21
+ }),
22
+ // No matching props could be found for these Figma properties:
23
+ // "label": figma.string('Label'),
24
+ // "icon": figma.boolean('Icon?'),
25
+ // "icon20": figma.instance('Icon-20')
26
+ },
27
+ example: props => (
28
+ <SelectOption
29
+ label={props.label}
30
+ value={null}
31
+ selected={props.selected}
32
+ disabled={props.disabled}
33
+ />
34
+ ),
35
+ }
36
+ );
@@ -1,19 +1,27 @@
1
- import figma from '@figma/code-connect';
2
- import { color } from '@utilitywarehouse/hearth-tokens/js';
3
- import { Spinner } from './';
1
+ import React from "react"
2
+ import Spinner from "./Spinner"
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
+ */
4
11
 
5
12
  figma.connect(
6
13
  Spinner,
7
- 'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR/Hearth-Components?node-id=61-195&t=j6vWFfxRVLbnAYhY-4',
14
+ "https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=61%3A195",
8
15
  {
9
16
  props: {
10
- size: figma.enum('Size', {
11
- 'XS-20': 'xs',
12
- 'SM-24': 'sm',
13
- 'MD-32': 'md',
14
- 'LG-44': 'lg',
17
+ // These props were automatically mapped based on your linked code:
18
+ size: figma.enum("Size", {
19
+ "XS-20": "xs",
20
+ "SM-24": "sm",
21
+ "MD-32": "md",
22
+ "LG-44": "lg",
15
23
  }),
16
24
  },
17
- example: ({ size }) => <Spinner size={size} color={color.purple['700']} />,
18
- }
19
- );
25
+ example: (props) => <Spinner size={props.size} />,
26
+ },
27
+ )
@@ -1,29 +1,37 @@
1
- import { Switch } from './';
2
1
  import figma from '@figma/code-connect';
2
+ import Switch from './Switch';
3
3
 
4
4
  /**
5
5
  * -- This file was auto-generated by Code Connect --
6
- * `props` includes a mapping from Figma properties and variants to
7
- * suggested values. You should update this to match the props of your
8
- * code component, and update the `example` function to return the
9
- * code example you'd like to see in Figma
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
10
9
  */
11
10
 
12
- figma.connect(
13
- Switch,
14
- 'https://www.figma.com/design/3RY3OvLA88yZksRjOfjQJm/UW-App-UI?node-id=9551-7352&t=fDsV1m42i8hVbZo3-4',
15
- {
16
- props: {
17
- value: figma.boolean('checked'),
18
- state: figma.enum('state', {
19
- default: 'default',
20
- }),
21
- size: figma.enum('size', {
22
- 'medium - 32': 'medium',
23
- 'small - 24': 'small',
24
- }),
25
- disabled: figma.boolean('disabled'),
26
- },
27
- example: props => <Switch {...props} />,
28
- }
29
- );
11
+ figma.connect(Switch, 'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=3044%3A243', {
12
+ props: {
13
+ // These props were automatically mapped based on your linked code:
14
+ disabled: figma.enum('State', {
15
+ Disabled: true,
16
+ }),
17
+ 'aria-disabled': figma.enum('State', {
18
+ Disabled: true,
19
+ }),
20
+ focusable: figma.enum('State', {
21
+ Focus: true,
22
+ }),
23
+ checked: figma.boolean('Checked?'),
24
+ size: figma.enum('Size', {
25
+ 'MD-32': 'medium',
26
+ 'SM-24': 'small',
27
+ }),
28
+ },
29
+ example: props => (
30
+ <Switch
31
+ value={props.checked}
32
+ disabled={props.disabled}
33
+ focusable={props.focusable}
34
+ size={props.size}
35
+ />
36
+ ),
37
+ });
@@ -76,11 +76,11 @@ const styles = StyleSheet.create(theme => ({
76
76
  _hover: {
77
77
  backgroundColor: theme.color.interactive.neutral.surface.subtle.hover,
78
78
  },
79
- '_focus-visible': {
80
- ...theme.helpers.focusVisible,
81
- outlineOffset: -2,
82
- borderRadius: theme.borderRadius.sm,
83
- },
79
+ // '_focus-visible': {
80
+ // ...theme.helpers.focusVisible,
81
+ // outlineOffset: -2,
82
+ // borderRadius: theme.borderRadius.sm,
83
+ // },
84
84
  _active: {
85
85
  backgroundColor: theme.color.interactive.neutral.surface.subtle.active,
86
86
  },
@@ -0,0 +1,29 @@
1
+ import React from "react"
2
+ import Tabs from "./Tabs"
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
+ Tabs,
14
+ "https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=6464%3A8744",
15
+ {
16
+ props: {
17
+ // These props were automatically mapped based on your linked code:
18
+ size: figma.enum("Size", {
19
+ "MD-56": "md",
20
+ "LG-64": "lg",
21
+ }),
22
+ // No matching props could be found for these Figma properties:
23
+ // "arrowLeft": figma.boolean('Arrow left?'),
24
+ // "arrowRight": figma.boolean('Arrow right?'),
25
+ // "condensed": figma.boolean('Condensed?')
26
+ },
27
+ example: (props) => <Tabs size={props.size} />,
28
+ },
29
+ )
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-native';
2
2
  import MascotEnergyDark from '@utilitywarehouse/hearth-svg-assets/lib/mascot-energy-dark.svg';
3
3
  import MascotEnergyLight from '@utilitywarehouse/hearth-svg-assets/lib/mascot-energy-light.svg';
4
4
  import SceneBroadbandDark from '@utilitywarehouse/hearth-svg-assets/lib/scene-broadband-dark.svg';
@@ -0,0 +1,22 @@
1
+ import figma from '@figma/code-connect';
2
+ import ToastItem from './ToastItem';
3
+
4
+ /**
5
+ * -- This file was auto-generated by Code Connect --
6
+ * None of your props could be automatically mapped to Figma properties.
7
+ * You should update the `props` object to include a mapping from your
8
+ * code props to Figma properties, and update the `example` function to
9
+ * return the code example you'd like to see in Figma
10
+ */
11
+
12
+ figma.connect(ToastItem, 'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR?node-id=7072%3A913', {
13
+ props: {
14
+ // No matching props could be found for these Figma properties:
15
+ // "link": figma.boolean('Link?'),
16
+ // "text": figma.string('Text'),
17
+ // "icon": figma.boolean('Icon?'),
18
+ // "icon24": figma.instance('Icon-24'),
19
+ // "dismiss": figma.boolean('Dismiss?')
20
+ },
21
+ example: props => <ToastItem toast={null} onClose={null} />,
22
+ });
@@ -16,7 +16,7 @@ const ButtonRoot = ({
16
16
 
17
17
  styles.useVariants({
18
18
  toggled,
19
- active: active || pressed,
19
+ active,
20
20
  });
21
21
 
22
22
  const handlePress = (e: GestureResponderEvent) => {
@@ -56,7 +56,7 @@ const styles = StyleSheet.create(theme => ({
56
56
  borderColor: theme.color.interactive.neutral.border.subtle,
57
57
  height: theme.components.toggleButton.height,
58
58
  _web: {
59
- '_focus-visible': theme.helpers.focusVisible,
59
+ // '_focus-visible': theme.helpers.focusVisible,
60
60
  _hover: {
61
61
  backgroundColor: theme.color.interactive.neutral.surface.subtle.hover,
62
62
  },
@@ -77,9 +77,9 @@ const styles = StyleSheet.create(theme => ({
77
77
  },
78
78
  },
79
79
  _web: {
80
- '_focus-visible': {
81
- ...theme.helpers.focusVisible,
82
- },
80
+ // '_focus-visible': {
81
+ // ...theme.helpers.focusVisible,
82
+ // },
83
83
  },
84
84
  },
85
85
  buttonContainer: {