@homefile/components-v2 2.32.0 → 2.34.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 (85) hide show
  1. package/dist/assets/images/appliances/index.d.ts +3 -1
  2. package/dist/assets/images/appliances/index.js +3 -1
  3. package/dist/assets/images/appliances/index.ts +4 -0
  4. package/dist/assets/images/appliances/tank-water.svg +21 -0
  5. package/dist/assets/images/appliances/tankless-water.svg +21 -0
  6. package/dist/assets/images/flower.svg +19 -0
  7. package/dist/assets/images/home-assistant/battery-smoke-detector.svg +38 -0
  8. package/dist/assets/images/home-assistant/co2-detector.svg +15 -0
  9. package/dist/assets/images/home-assistant/fire-extinguisher.svg +34 -0
  10. package/dist/assets/images/home-assistant/furnace.svg +27 -0
  11. package/dist/assets/images/home-assistant/heat-pump.svg +30 -0
  12. package/dist/assets/images/home-assistant/in-wall.svg +26 -0
  13. package/dist/assets/images/home-assistant/index.d.ts +12 -0
  14. package/dist/assets/images/home-assistant/index.js +12 -0
  15. package/dist/assets/images/home-assistant/index.ts +25 -0
  16. package/dist/assets/images/home-assistant/landscape-lights.svg +23 -0
  17. package/dist/assets/images/home-assistant/other.svg +22 -0
  18. package/dist/assets/images/home-assistant/sprinkler-system.svg +11 -0
  19. package/dist/assets/images/home-assistant/sprinkler-system2.svg +23 -0
  20. package/dist/assets/images/home-assistant/wired-smoke-detector.svg +24 -0
  21. package/dist/assets/images/index.d.ts +5 -1
  22. package/dist/assets/images/index.js +5 -1
  23. package/dist/assets/images/index.ts +7 -0
  24. package/dist/assets/images/jacuzzi.svg +38 -0
  25. package/dist/assets/images/magnifying-glass-person.svg +18 -0
  26. package/dist/components/forms/dynamicForm/DynamicForm.js +3 -1
  27. package/dist/components/forms/dynamicForm/fields/HomeInitialSetup.d.ts +2 -0
  28. package/dist/components/forms/dynamicForm/fields/HomeInitialSetup.js +17 -0
  29. package/dist/components/forms/dynamicForm/fields/index.d.ts +1 -0
  30. package/dist/components/forms/dynamicForm/fields/index.js +1 -0
  31. package/dist/components/homeAssistant/wizard/HomeAssistantWizardSteps.d.ts +1 -1
  32. package/dist/components/sendDocument/RecipientContent.js +1 -1
  33. package/dist/components/wizard/WizardInitialOptions.d.ts +2 -0
  34. package/dist/components/wizard/WizardInitialOptions.js +20 -0
  35. package/dist/components/wizard/WizardStepOptions.d.ts +2 -0
  36. package/dist/components/wizard/WizardStepOptions.js +20 -0
  37. package/dist/components/wizard/index.d.ts +2 -0
  38. package/dist/components/wizard/index.js +2 -0
  39. package/dist/helpers/forms/dynamicForm.helper.js +87 -56
  40. package/dist/helpers/index.d.ts +1 -0
  41. package/dist/helpers/index.js +1 -0
  42. package/dist/helpers/wizard/optionsStyles.d.ts +7 -0
  43. package/dist/helpers/wizard/optionsStyles.js +20 -0
  44. package/dist/interfaces/forms/dynamicForm/DynamicForm.interface.d.ts +3 -2
  45. package/dist/interfaces/forms/dynamicForm/fields/UIFields.interface.d.ts +1 -1
  46. package/dist/mocks/forms/dynamicForm.mock.d.ts +1 -0
  47. package/dist/mocks/forms/dynamicForm.mock.js +351 -0
  48. package/dist/stories/assets/Illustrations.stories.js +4 -3
  49. package/dist/stories/wizard/ControlledWizard.stories.js +19 -17
  50. package/package.json +1 -1
  51. package/src/assets/images/appliances/index.ts +4 -0
  52. package/src/assets/images/appliances/tank-water.svg +21 -0
  53. package/src/assets/images/appliances/tankless-water.svg +21 -0
  54. package/src/assets/images/flower.svg +19 -0
  55. package/src/assets/images/home-assistant/battery-smoke-detector.svg +38 -0
  56. package/src/assets/images/home-assistant/co2-detector.svg +15 -0
  57. package/src/assets/images/home-assistant/fire-extinguisher.svg +34 -0
  58. package/src/assets/images/home-assistant/furnace.svg +27 -0
  59. package/src/assets/images/home-assistant/heat-pump.svg +30 -0
  60. package/src/assets/images/home-assistant/in-wall.svg +26 -0
  61. package/src/assets/images/home-assistant/index.ts +25 -0
  62. package/src/assets/images/home-assistant/landscape-lights.svg +23 -0
  63. package/src/assets/images/home-assistant/other.svg +22 -0
  64. package/src/assets/images/home-assistant/sprinkler-system.svg +11 -0
  65. package/src/assets/images/home-assistant/sprinkler-system2.svg +23 -0
  66. package/src/assets/images/home-assistant/wired-smoke-detector.svg +24 -0
  67. package/src/assets/images/index.ts +7 -0
  68. package/src/assets/images/jacuzzi.svg +38 -0
  69. package/src/assets/images/magnifying-glass-person.svg +18 -0
  70. package/src/components/forms/dynamicForm/DynamicForm.tsx +10 -0
  71. package/src/components/forms/dynamicForm/fields/HomeInitialSetup.tsx +45 -0
  72. package/src/components/forms/dynamicForm/fields/index.ts +1 -0
  73. package/src/components/homeAssistant/wizard/HomeAssistantWizardSteps.tsx +1 -1
  74. package/src/components/sendDocument/RecipientContent.tsx +1 -4
  75. package/src/components/wizard/WizardInitialOptions.tsx +89 -0
  76. package/src/components/wizard/WizardStepOptions.tsx +96 -0
  77. package/src/components/wizard/index.ts +2 -0
  78. package/src/helpers/forms/dynamicForm.helper.ts +121 -57
  79. package/src/helpers/index.ts +1 -0
  80. package/src/helpers/wizard/optionsStyles.ts +20 -0
  81. package/src/interfaces/forms/dynamicForm/DynamicForm.interface.ts +61 -20
  82. package/src/interfaces/forms/dynamicForm/fields/UIFields.interface.ts +1 -1
  83. package/src/mocks/forms/dynamicForm.mock.ts +364 -0
  84. package/src/stories/assets/Illustrations.stories.tsx +37 -0
  85. package/src/stories/wizard/ControlledWizard.stories.tsx +39 -42
@@ -1309,3 +1309,367 @@ export const homeItemDetails: ReportI[] = [
1309
1309
  icon: 'barcode',
1310
1310
  },
1311
1311
  ]
1312
+
1313
+ export const homeWizardForm: ReportI[] = [
1314
+ {
1315
+ type: 'home-wizard',
1316
+ id: 'home-wizard-1',
1317
+ children: [
1318
+ {
1319
+ type: 'home-wizard-header',
1320
+ id: 'home-wizard-header-1',
1321
+ label: '1. Tell Homi about your goals.',
1322
+ description:
1323
+ 'These choices help Homi build a personalized Homeboard that tracks your home’s performance, savings, and priorities.',
1324
+ value: '',
1325
+ },
1326
+ {
1327
+ type: 'home-wizard-initial-setup',
1328
+ id: 'home-wizard-initial-setup-1',
1329
+ value: 'What do you want Homie to help you with?',
1330
+ children: [
1331
+ {
1332
+ id: 'maintenance',
1333
+ type: 'text',
1334
+ label: 'Maintenance',
1335
+ value: false,
1336
+ description:
1337
+ 'Stay ahead of maintenance and upkeep to avoid costly repairs.',
1338
+ icon: 'gear',
1339
+ },
1340
+ {
1341
+ id: 'documentation',
1342
+ type: 'text',
1343
+ label: 'documentation',
1344
+ value: false,
1345
+ description:
1346
+ 'Keep receipts, warranties, and records organized and accessible.',
1347
+ icon: 'folder',
1348
+ },
1349
+ {
1350
+ id: 'finance',
1351
+ type: 'text',
1352
+ label: 'Finance',
1353
+ value: false,
1354
+ description:
1355
+ 'Monitor spending, uncover savings, and plan smarter budgets.',
1356
+ icon: 'check',
1357
+ },
1358
+ {
1359
+ id: 'service-pros',
1360
+ type: 'text',
1361
+ label: 'Service Pros',
1362
+ value: false,
1363
+ description:
1364
+ 'Find trusted pros with upfront pricing and verified quality.',
1365
+ icon: 'search-person',
1366
+ },
1367
+ {
1368
+ id: 'improvements',
1369
+ type: 'text',
1370
+ label: 'Improvements',
1371
+ value: false,
1372
+ description:
1373
+ 'Track upgrades, costs, and ROI to grow your home’s worth.',
1374
+ icon: 'flower',
1375
+ },
1376
+ {
1377
+ id: 'insurance',
1378
+ type: 'text',
1379
+ label: 'Insurance',
1380
+ value: false,
1381
+ description:
1382
+ 'Verify insurance and warranties so nothing important slips through.',
1383
+ icon: 'warranty',
1384
+ },
1385
+ ],
1386
+ },
1387
+ ],
1388
+ value: true,
1389
+ },
1390
+ {
1391
+ type: 'home-wizard',
1392
+ id: 'home-wizard-2',
1393
+ children: [
1394
+ {
1395
+ type: 'home-wizard-header',
1396
+ id: 'home-wizard-header-2',
1397
+ label: '2. Tell Homi about your fire safety.',
1398
+ description:
1399
+ 'Homi tracks your safety devices, reminds you to test or replace them, and helps you keep your home protected year-round.',
1400
+ value: '',
1401
+ },
1402
+ {
1403
+ type: 'home-wizard-step-options',
1404
+ id: 'home-wizard-step-options-1',
1405
+ value: 'Select what fire protection you have in your home?',
1406
+ children: [
1407
+ {
1408
+ id: 'smoke-detectors',
1409
+ type: 'text',
1410
+ label: 'WIRED SMOKE DET',
1411
+ value: false,
1412
+ icon: 'wired-smoke-detector',
1413
+ },
1414
+ {
1415
+ id: 'battery-smoke-detectors',
1416
+ type: 'text',
1417
+ label: 'BATTERY SMOKE DET',
1418
+ value: false,
1419
+ icon: 'battery-smoke-detector',
1420
+ },
1421
+ {
1422
+ id: 'co2-detectors',
1423
+ type: 'text',
1424
+ label: 'CO2 DETECTORS',
1425
+ value: false,
1426
+ icon: 'co2-detector',
1427
+ },
1428
+ {
1429
+ id: 'sprinkler-system',
1430
+ type: 'text',
1431
+ label: 'SPRINKLER SYSTEM',
1432
+ value: false,
1433
+ icon: 'sprinkler-system',
1434
+ },
1435
+ {
1436
+ id: 'fire-extinguisher',
1437
+ type: 'text',
1438
+ label: 'FIRE EXTINGUISHER',
1439
+ value: false,
1440
+ icon: 'fire-extinguisher',
1441
+ },
1442
+
1443
+ {
1444
+ id: 'other-not-listed',
1445
+ type: 'text',
1446
+ label: 'OTHER/NOT LISTED',
1447
+ value: false,
1448
+ icon: 'other',
1449
+ },
1450
+ ],
1451
+ },
1452
+ ],
1453
+ value: true,
1454
+ },
1455
+ {
1456
+ type: 'home-wizard',
1457
+ id: 'home-wizard-3',
1458
+ children: [
1459
+ {
1460
+ type: 'home-wizard-header',
1461
+ id: 'home-wizard-header-3',
1462
+ label: '3. Tell Homi about your appliances.',
1463
+ description:
1464
+ 'Homi monitors warranties, service schedules, and replacement timing to help you extend lifespan and avoid costly breakdowns.',
1465
+ value: '',
1466
+ },
1467
+ {
1468
+ type: 'home-wizard-step-options',
1469
+ id: 'home-wizard-step-options-1',
1470
+ value: 'Select the appliances you have in your home.',
1471
+ children: [
1472
+ {
1473
+ id: 'oven',
1474
+ type: 'text',
1475
+ label: 'OVEN',
1476
+ value: false,
1477
+ icon: 'oven',
1478
+ },
1479
+ {
1480
+ id: 'fridge',
1481
+ type: 'text',
1482
+ label: 'FRIDGE',
1483
+ value: false,
1484
+ icon: 'fridge',
1485
+ },
1486
+ {
1487
+ id: 'freezer',
1488
+ type: 'text',
1489
+ label: 'FREEZER',
1490
+ value: false,
1491
+ icon: 'freezer',
1492
+ },
1493
+ {
1494
+ id: 'washer',
1495
+ type: 'text',
1496
+ label: 'WASHER',
1497
+ value: false,
1498
+ icon: 'washer',
1499
+ },
1500
+ {
1501
+ id: 'dryer',
1502
+ type: 'text',
1503
+ label: 'DRYER',
1504
+ value: false,
1505
+ icon: 'dryer',
1506
+ },
1507
+ {
1508
+ id: 'dish-washer',
1509
+ type: 'text',
1510
+ label: 'DISH WASHER',
1511
+ value: false,
1512
+ icon: 'dish-washer',
1513
+ },
1514
+ {
1515
+ id: 'range',
1516
+ type: 'text',
1517
+ label: 'RANGE',
1518
+ value: false,
1519
+ icon: 'range',
1520
+ },
1521
+ {
1522
+ id: 'hood',
1523
+ type: 'text',
1524
+ label: 'HOOD',
1525
+ value: false,
1526
+ icon: 'hood',
1527
+ },
1528
+ {
1529
+ id: 'microwave',
1530
+ type: 'text',
1531
+ label: 'MICROWAVE',
1532
+ value: false,
1533
+ icon: 'microwave',
1534
+ },
1535
+ {
1536
+ id: 'cook-top',
1537
+ type: 'text',
1538
+ label: 'COOK TOP',
1539
+ value: false,
1540
+ icon: 'cook-top',
1541
+ },
1542
+ {
1543
+ id: 'tankless-waterhtr',
1544
+ type: 'text',
1545
+ label: 'TANKLESS WATERHTR',
1546
+ value: false,
1547
+ icon: 'tankless-water',
1548
+ },
1549
+ {
1550
+ id: 'tank-waterhtr',
1551
+ type: 'text',
1552
+ label: 'TANK WATERHTR',
1553
+ value: false,
1554
+ icon: 'tank-water',
1555
+ },
1556
+ ],
1557
+ },
1558
+ ],
1559
+ value: true,
1560
+ },
1561
+ {
1562
+ type: 'home-wizard',
1563
+ id: 'home-wizard-4',
1564
+ children: [
1565
+ {
1566
+ type: 'home-wizard-header',
1567
+ id: 'home-wizard-header-4',
1568
+ label: '4. Tell Homi about your climate control.',
1569
+ description:
1570
+ 'Homi manages filter changes, tune-ups, and efficiency tips to keep your system running smoothly and lower energy costs.',
1571
+ value: '',
1572
+ },
1573
+ {
1574
+ type: 'home-wizard-step-options',
1575
+ id: 'home-wizard-step-options-1',
1576
+ value: 'What heating and cooling devices in your home:',
1577
+ children: [
1578
+ {
1579
+ id: 'hvac-furnace',
1580
+ type: 'text',
1581
+ label: 'HVAC/ FURNACE',
1582
+ value: false,
1583
+ icon: 'furnace',
1584
+ },
1585
+ {
1586
+ id: 'heat-pump',
1587
+ type: 'text',
1588
+ label: 'HEAT PUMP',
1589
+ value: false,
1590
+ icon: 'heat-pump',
1591
+ },
1592
+ {
1593
+ id: 'in-wall',
1594
+ type: 'text',
1595
+ label: 'IN-WALL',
1596
+ value: false,
1597
+ icon: 'in-wall',
1598
+ },
1599
+ {
1600
+ id: 'other-not-listed',
1601
+ type: 'text',
1602
+ label: 'OTHER/NOT LISTED',
1603
+ value: false,
1604
+ icon: 'other',
1605
+ },
1606
+ ],
1607
+ },
1608
+ ],
1609
+ value: true,
1610
+ },
1611
+ {
1612
+ type: 'home-wizard',
1613
+ id: 'home-wizard-5',
1614
+ children: [
1615
+ {
1616
+ type: 'home-wizard-header',
1617
+ id: 'home-wizard-header-5',
1618
+ label: '5. Tell Homi about your landscape.',
1619
+ description:
1620
+ 'Homi tracks outdoor systems, plans seasonal care, and helps protect your home’s curb appeal and investment.',
1621
+ value: '',
1622
+ },
1623
+ {
1624
+ type: 'home-wizard-step-options',
1625
+ id: 'home-wizard-step-options-1',
1626
+ value: 'Select the types of structure elements of your home:',
1627
+ children: [
1628
+ {
1629
+ id: 'pool',
1630
+ type: 'text',
1631
+ label: 'POOL',
1632
+ value: false,
1633
+ icon: 'pool',
1634
+ },
1635
+ {
1636
+ id: 'jacuzzi',
1637
+ type: 'text',
1638
+ label: 'JACUZZI',
1639
+ value: false,
1640
+ icon: 'jacuzzi',
1641
+ },
1642
+ {
1643
+ id: 'sprinkler-system',
1644
+ type: 'text',
1645
+ label: 'SPRINKLER SYSTEM',
1646
+ value: false,
1647
+ icon: 'sprinkler-system2',
1648
+ },
1649
+ {
1650
+ id: 'landscape-lights',
1651
+ type: 'text',
1652
+ label: 'LANDSCAPE LIGHTS',
1653
+ value: false,
1654
+ icon: 'landscape-lights',
1655
+ },
1656
+ {
1657
+ id: 'outdoor-kitchen',
1658
+ type: 'text',
1659
+ label: 'OUTDOOR KITCHEN',
1660
+ value: false,
1661
+ icon: 'cook-top',
1662
+ },
1663
+ {
1664
+ id: 'other-not-listed',
1665
+ type: 'text',
1666
+ label: 'OTHER/NOT LISTED',
1667
+ value: false,
1668
+ icon: 'other',
1669
+ },
1670
+ ],
1671
+ },
1672
+ ],
1673
+ value: true,
1674
+ },
1675
+ ]
@@ -63,6 +63,7 @@ import {
63
63
  Finance,
64
64
  Fire,
65
65
  Flag,
66
+ Flower,
66
67
  Flooring,
67
68
  FormSent,
68
69
  Foundation,
@@ -92,6 +93,7 @@ import {
92
93
  ImgIcon,
93
94
  Inbox,
94
95
  Insect,
96
+ Jacuzzi,
95
97
  Kitchen,
96
98
  LargeAppliances,
97
99
  Laundry,
@@ -100,6 +102,7 @@ import {
100
102
  LivingRoom,
101
103
  LogoSmall,
102
104
  MagnifyingGlassReport,
105
+ MagnifyingGlassPerson,
103
106
  Manager,
104
107
  MasterBedroom,
105
108
  Mattress,
@@ -203,8 +206,24 @@ import {
203
206
  Oven,
204
207
  Range,
205
208
  Washer,
209
+ tankWater,
210
+ tanklessWater,
206
211
  } from '@/assets/images/appliances'
207
212
 
213
+ import {
214
+ BatterySmokeDetector,
215
+ Co2Detector,
216
+ FireExtinguisher,
217
+ Furnace,
218
+ HeatPump,
219
+ InWall,
220
+ LandscapeLights,
221
+ Other,
222
+ SprinklerSystem,
223
+ SprinklerSystem2,
224
+ WiredSmokeDetector,
225
+ } from '@/assets/images/home-assistant'
226
+
208
227
  export default {
209
228
  title: 'Assets/Illustrations',
210
229
  } as Meta
@@ -227,6 +246,22 @@ export const Illustrations = () => {
227
246
  <IconWrapper icon={Oven} name="Oven" />
228
247
  <IconWrapper icon={Range} name="Range" />
229
248
  <IconWrapper icon={Washer} name="Washer" />
249
+ <IconWrapper icon={tankWater} name="TankWater" />
250
+ <IconWrapper icon={tanklessWater} name="TanklessWater" />
251
+
252
+ {/* All from @/assets/images/home-assistant */}
253
+ <IconWrapper icon={BatterySmokeDetector} name="BatterySmokeDetector" />
254
+ <IconWrapper icon={Co2Detector} name="Co2Detector" />
255
+ <IconWrapper icon={FireExtinguisher} name="FireExtinguisher" />
256
+ <IconWrapper icon={Furnace} name="Furnace" />
257
+ <IconWrapper icon={HeatPump} name="HeatPump" />
258
+ <IconWrapper icon={InWall} name="InWall" />
259
+ <IconWrapper icon={Jacuzzi} name="Jacuzzi" />
260
+ <IconWrapper icon={LandscapeLights} name="LandscapeLights" />
261
+ <IconWrapper icon={Other} name="Other" />
262
+ <IconWrapper icon={SprinklerSystem} name="SprinklerSystem" />
263
+ <IconWrapper icon={SprinklerSystem2} name="SprinklerSystem2" />
264
+ <IconWrapper icon={WiredSmokeDetector} name="WiredSmokeDetector" />
230
265
  {/* All from @/assets/images/form */}
231
266
  <IconWrapper icon={Barcode} name="Barcode" />
232
267
  <IconWrapper icon={Book} name="Book" />
@@ -323,6 +358,7 @@ export const Illustrations = () => {
323
358
  <IconWrapper icon={FileUploading} name="FileUploading" />
324
359
  <IconWrapper icon={Finance} name="Finance" />
325
360
  <IconWrapper icon={Flag} name="Flag" />
361
+ <IconWrapper icon={Flower} name="Flower" />
326
362
  <IconWrapper icon={FormSent} name="FormSent" />
327
363
  <IconWrapper icon={Foundation} name="Foundation" />
328
364
  <IconWrapper icon={Garage} name="Garage" />
@@ -353,6 +389,7 @@ export const Illustrations = () => {
353
389
  <IconWrapper icon={LivingRoom} name="LivingRoom" />
354
390
  <IconWrapper icon={LogoSmall} name="LogoSmall" />
355
391
  <IconWrapper icon={MagnifyingGlassReport} name="MagnifyingGlassReport" />
392
+ <IconWrapper icon={MagnifyingGlassPerson} name="MagnifyingGlassPerson" />
356
393
  <IconWrapper icon={Manager} name="Manager" />
357
394
  <IconWrapper icon={MasterBedroom} name="MasterBedroom" />
358
395
  <IconWrapper icon={Member} name="Member" />
@@ -1,19 +1,20 @@
1
+ import { useState } from 'react'
1
2
  import { Meta } from '@storybook/react'
2
3
  import {
3
4
  ConfirmProperty,
4
5
  ControlledWizard,
6
+ DynamicForm,
5
7
  FooterButtons,
6
8
  HomeAssistantTutorial,
7
9
  HomeAssistantWizardSteps,
8
10
  MyHomeDetails,
9
11
  SearchRecords,
10
- WizardTextBody,
11
12
  WizardTextHeader,
12
13
  } from '@/components'
13
14
  import { Box, Center, Stack } from '@chakra-ui/react'
14
- import { useState } from 'react'
15
+ import { action } from '@storybook/addon-actions'
15
16
  import { formValues } from '@/helpers'
16
- import { propertiesMock } from '@/mocks'
17
+ import { homeWizardForm, propertiesMock } from '@/mocks'
17
18
  import { ControlledWizardI, HomeFormI } from '@/interfaces'
18
19
  import { WizardSuccessHeader } from '@/components/wizard/WizardSuccessHeader'
19
20
 
@@ -35,46 +36,45 @@ function fakeLookup() {
35
36
 
36
37
  export const ControlledWizardComponent = () => {
37
38
  const [step, setStep] = useState(0)
39
+ const homeAssistantSteps = homeWizardForm.map((form, index) => ({
40
+ header: <HomeAssistantWizardSteps currentStep={index + 1} />,
41
+ body: () => (
42
+ <Stack
43
+ h="full"
44
+ spacing="10"
45
+ w={{ base: 'full', md: '600px' }}
46
+ justify="space-around"
47
+ m="auto"
48
+ >
49
+ <DynamicForm
50
+ form={[form]}
51
+ showTitle={false}
52
+ callback={action('DynamicForm')}
53
+ />
54
+ <Box alignSelf="flex-end">
55
+ <FooterButtons
56
+ button1={{
57
+ buttonStyle: 'secondaryFooter',
58
+ onClick: () => setStep(step - 1),
59
+ label: 'Back',
60
+ }}
61
+ button2={{
62
+ buttonStyle: 'tertiaryFooter',
63
+ onClick: () => setStep(step + 1),
64
+ label: 'Save selection',
65
+ }}
66
+ />
67
+ </Box>
68
+ </Stack>
69
+ ),
70
+ }))
38
71
  return (
39
72
  <ControlledWizard
40
- minHeight="300px"
73
+ minHeight="700px"
41
74
  step={step}
42
75
  setStep={setStep}
43
76
  steps={[
44
- {
45
- header: (
46
- <HomeAssistantWizardSteps currentStep={2} onStepClick={() => {}} />
47
- ),
48
- body: () => (
49
- <Stack
50
- h="500px"
51
- spacing="10"
52
- w={{ base: 'full', md: '600px' }}
53
- justify="space-around"
54
- m="auto"
55
- >
56
- <WizardTextBody
57
- title="1. Tell Homi about your goals."
58
- subtitle="These choices help Homi build a personalized Homeboard that tracks your home’s performance, savings, and priorities."
59
- />
60
- <Box flex="1" bg="gray.1" />
61
- <Box alignSelf="flex-end">
62
- <FooterButtons
63
- button1={{
64
- buttonStyle: 'secondaryFooter',
65
- onClick: () => setStep(1),
66
- label: 'Back',
67
- }}
68
- button2={{
69
- buttonStyle: 'tertiaryFooter',
70
- onClick: () => setStep(1),
71
- label: 'Save selection',
72
- }}
73
- />
74
- </Box>
75
- </Stack>
76
- ),
77
- },
77
+ ...homeAssistantSteps,
78
78
  {
79
79
  header: (
80
80
  <WizardTextHeader
@@ -136,10 +136,7 @@ export const ControlledWizardComponent = () => {
136
136
  ),
137
137
  body: () => (
138
138
  <Center w="full" h="full">
139
- <HomeAssistantTutorial
140
- onStart={() => setStep(4)}
141
- maxWidth="500px"
142
- />
139
+ <HomeAssistantTutorial onStart={() => setStep(4)} />
143
140
  </Center>
144
141
  ),
145
142
  },