@homefile/components-v2 2.14.30 → 2.14.32

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 (64) hide show
  1. package/dist/components/appBar/TourButton.js +8 -1
  2. package/dist/components/forms/dynamicForm/fields/TileBodyFields.js +5 -1
  3. package/dist/components/forms/dynamicForm/fields/uiFields/TileBodyDescription.d.ts +3 -0
  4. package/dist/components/forms/dynamicForm/fields/uiFields/TileBodyDescription.js +5 -0
  5. package/dist/components/forms/dynamicForm/fields/uiFields/TileBodyDescription.tsx +16 -0
  6. package/dist/components/forms/dynamicForm/fields/uiFields/TileBodyPartnerImage.d.ts +2 -0
  7. package/dist/components/forms/dynamicForm/fields/uiFields/TileBodyPartnerImage.js +6 -0
  8. package/dist/components/forms/dynamicForm/fields/uiFields/TileBodyPartnerImage.tsx +11 -0
  9. package/dist/components/forms/dynamicForm/fields/uiFields/index.d.ts +2 -0
  10. package/dist/components/forms/dynamicForm/fields/uiFields/index.js +2 -0
  11. package/dist/components/forms/dynamicForm/fields/uiFields/index.ts +3 -1
  12. package/dist/components/homeAssistant/HomeAssistantSteps.js +6 -14
  13. package/dist/components/homeAssistant/HomeMonitorSteps.js +3 -12
  14. package/dist/components/homeAssistant/panel/HomeAssistantPanel.d.ts +1 -1
  15. package/dist/components/homeAssistant/panel/HomeAssistantPanel.js +25 -11
  16. package/dist/components/homeBoard/HomeBoard.js +1 -1
  17. package/dist/components/tour/BubbleArrow.js +1 -1
  18. package/dist/components/tour/HomeBoardTour.js +13 -5
  19. package/dist/components/tour/LaunchpadTour.js +14 -6
  20. package/dist/components/tour/RoomsBoardTour.js +7 -3
  21. package/dist/helpers/tour/Highlights.helper.d.ts +1 -0
  22. package/dist/helpers/tour/Highlights.helper.js +42 -0
  23. package/dist/helpers/tour/index.d.ts +1 -0
  24. package/dist/helpers/tour/index.js +1 -0
  25. package/dist/hooks/forms/useSimpleDynamicForm.js +1 -1
  26. package/dist/hooks/homeBoard/useHomeBoard.js +1 -0
  27. package/dist/hooks/useComponentStyles.d.ts +2 -3
  28. package/dist/hooks/useComponentStyles.js +7 -3
  29. package/dist/interfaces/forms/dynamicForm/DynamicForm.interface.d.ts +1 -1
  30. package/dist/mocks/partner/dynamicTileForm.mock.d.ts +2 -0
  31. package/dist/mocks/partner/dynamicTileForm.mock.js +65 -0
  32. package/dist/mocks/partner/index.d.ts +1 -0
  33. package/dist/mocks/partner/index.js +1 -0
  34. package/dist/proxies/homes/homeAssistant.proxy.d.ts +8 -0
  35. package/dist/proxies/homes/homeAssistant.proxy.js +9 -0
  36. package/dist/proxies/homes/index.d.ts +1 -0
  37. package/dist/proxies/homes/index.js +1 -0
  38. package/dist/stories/partner/DynamicTile.stories.d.ts +5 -0
  39. package/dist/stories/partner/DynamicTile.stories.js +26 -0
  40. package/package.json +1 -1
  41. package/src/components/appBar/TourButton.tsx +8 -1
  42. package/src/components/forms/dynamicForm/fields/TileBodyFields.tsx +5 -2
  43. package/src/components/forms/dynamicForm/fields/uiFields/TileBodyDescription.tsx +16 -0
  44. package/src/components/forms/dynamicForm/fields/uiFields/TileBodyPartnerImage.tsx +11 -0
  45. package/src/components/forms/dynamicForm/fields/uiFields/index.ts +3 -1
  46. package/src/components/homeAssistant/HomeAssistantSteps.tsx +6 -14
  47. package/src/components/homeAssistant/HomeMonitorSteps.tsx +4 -12
  48. package/src/components/homeAssistant/panel/HomeAssistantPanel.tsx +34 -13
  49. package/src/components/homeBoard/HomeBoard.tsx +15 -13
  50. package/src/components/tour/BubbleArrow.tsx +4 -0
  51. package/src/components/tour/HomeBoardTour.tsx +14 -9
  52. package/src/components/tour/LaunchpadTour.tsx +15 -10
  53. package/src/components/tour/RoomsBoardTour.tsx +7 -7
  54. package/src/helpers/tour/Highlights.helper.ts +44 -0
  55. package/src/helpers/tour/index.ts +2 -1
  56. package/src/hooks/forms/useSimpleDynamicForm.ts +1 -1
  57. package/src/hooks/homeBoard/useHomeBoard.ts +1 -0
  58. package/src/hooks/useComponentStyles.ts +11 -7
  59. package/src/interfaces/forms/dynamicForm/DynamicForm.interface.ts +2 -0
  60. package/src/mocks/partner/dynamicTileForm.mock.ts +67 -0
  61. package/src/mocks/partner/index.ts +1 -0
  62. package/src/proxies/homes/homeAssistant.proxy.ts +18 -0
  63. package/src/proxies/homes/index.ts +1 -0
  64. package/src/stories/partner/DynamicTile.stories.tsx +33 -0
@@ -39,6 +39,8 @@ export type UIKindTypes =
39
39
  | 'tile-body-header'
40
40
  | 'tile-body-section'
41
41
  | 'tile-body-section-grid'
42
+ | 'tile-body-partner-image'
43
+ | 'tile-body-description'
42
44
  | 'tile-form'
43
45
  | 'tile-body-action'
44
46
  | 'vertical-icon'
@@ -0,0 +1,67 @@
1
+ import { ReportI } from "@/interfaces";
2
+
3
+ export const dynamicTileFormMock: ReportI[] = [
4
+ {
5
+ "id": "stile1p",
6
+ "name": "",
7
+ "description": "",
8
+ "comments": "",
9
+ "value": "",
10
+ "type": "tile-body",
11
+ "visible": true,
12
+ "children": [
13
+ {
14
+ "id": "stilec01",
15
+ "name": "Shine",
16
+ "description": "",
17
+ "comments": "",
18
+ "value": "https://storage.googleapis.com/homefile-images/shine_logo_updated.png",
19
+ "type": "tile-body-logo"
20
+ },
21
+ {
22
+ "id": "stilec01test",
23
+ "name": "Partner Name Here",
24
+ "description": "",
25
+ "comments": "",
26
+ "value": "https://storage.googleapis.com/homefile-images/audreybackgroundimage-update.jpg",
27
+ "type": "tile-body-partner-image"
28
+ },
29
+ {
30
+ "id": "stilec02test",
31
+ "name": "Shine",
32
+ "description": "",
33
+ "comments": "",
34
+ "value": "Test description will go here. Test.",
35
+ "type": "tile-body-description"
36
+ },
37
+ {
38
+ "id": "stile2p",
39
+ "name": "",
40
+ "description": "",
41
+ "comments": "",
42
+ "value": "",
43
+ "type": "tile-body-action",
44
+ "children": [
45
+ {
46
+ "id": "stilecta1",
47
+ "name": "drawer-link",
48
+ "description": "",
49
+ "comments": "",
50
+ "value": "Schedule Service",
51
+ "type": "primary-cta",
52
+ "link": "stiledf01"
53
+ },
54
+ {
55
+ "id": "stilecta2",
56
+ "name": "drawer-link",
57
+ "description": "",
58
+ "comments": "",
59
+ "value": "Request Support",
60
+ "type": "secondary-cta",
61
+ "link": "stiledf02"
62
+ }
63
+ ]
64
+ }
65
+ ]
66
+ }
67
+ ]
@@ -4,3 +4,4 @@ export * from './details.mock'
4
4
  export * from './partnerCatalog.mock'
5
5
  export * from './partnerOptions.mock'
6
6
  export * from './socialLinks.mock'
7
+ export * from './dynamicTileForm.mock'
@@ -0,0 +1,18 @@
1
+ import { proxy } from 'valtio'
2
+
3
+ interface HomeAssistantProxyI {
4
+ highlight: boolean
5
+ selectedId: string
6
+ setHighlight: (highlight: boolean) => void
7
+ setSelectedId: (selectedId: string) => void
8
+ }
9
+
10
+ export const homeAssistantProxy = proxy<HomeAssistantProxyI>({
11
+ highlight: false,
12
+ selectedId: '',
13
+ setHighlight: (highlight: boolean) => {
14
+ homeAssistantProxy.highlight = highlight
15
+ },
16
+ setSelectedId: (selectedId: string) =>
17
+ (homeAssistantProxy.selectedId = selectedId),
18
+ })
@@ -1 +1,2 @@
1
+ export * from './homeAssistant.proxy'
1
2
  export * from './homeCard.proxy'
@@ -0,0 +1,33 @@
1
+ import { DynamicForm as DynamicFormTile } from '@/components'
2
+ import { DynamicFormI } from '@/interfaces'
3
+ import { dynamicTileFormMock, socialLinksMock, menuMock } from '@/mocks'
4
+ import { Meta } from '@storybook/react'
5
+ import { Flex } from '@chakra-ui/react'
6
+
7
+ export default {
8
+ title: 'Components/Partner',
9
+ component: DynamicFormTile,
10
+ args: {
11
+ _id: '12',
12
+ form: dynamicTileFormMock,
13
+ websiteUrl: 'http://www.homefile.com',
14
+ socialLinks: socialLinksMock,
15
+ partnerName: 'Homefile Dynamic',
16
+ menuItems: menuMock,
17
+ minimized: false,
18
+ showTitle: false,
19
+ },
20
+ argTypes: {
21
+ menuItems: {
22
+ control: { disable: true },
23
+ },
24
+ },
25
+ } as Meta
26
+
27
+ export const DynamicFormTileComponent = (args: DynamicFormI) => {
28
+ return (
29
+ <Flex maxW={'380px'}>
30
+ <DynamicFormTile {...args} />
31
+ </Flex>
32
+ )
33
+ }