@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.
- package/dist/components/appBar/TourButton.js +8 -1
- package/dist/components/forms/dynamicForm/fields/TileBodyFields.js +5 -1
- package/dist/components/forms/dynamicForm/fields/uiFields/TileBodyDescription.d.ts +3 -0
- package/dist/components/forms/dynamicForm/fields/uiFields/TileBodyDescription.js +5 -0
- package/dist/components/forms/dynamicForm/fields/uiFields/TileBodyDescription.tsx +16 -0
- package/dist/components/forms/dynamicForm/fields/uiFields/TileBodyPartnerImage.d.ts +2 -0
- package/dist/components/forms/dynamicForm/fields/uiFields/TileBodyPartnerImage.js +6 -0
- package/dist/components/forms/dynamicForm/fields/uiFields/TileBodyPartnerImage.tsx +11 -0
- package/dist/components/forms/dynamicForm/fields/uiFields/index.d.ts +2 -0
- package/dist/components/forms/dynamicForm/fields/uiFields/index.js +2 -0
- package/dist/components/forms/dynamicForm/fields/uiFields/index.ts +3 -1
- package/dist/components/homeAssistant/HomeAssistantSteps.js +6 -14
- package/dist/components/homeAssistant/HomeMonitorSteps.js +3 -12
- package/dist/components/homeAssistant/panel/HomeAssistantPanel.d.ts +1 -1
- package/dist/components/homeAssistant/panel/HomeAssistantPanel.js +25 -11
- package/dist/components/homeBoard/HomeBoard.js +1 -1
- package/dist/components/tour/BubbleArrow.js +1 -1
- package/dist/components/tour/HomeBoardTour.js +13 -5
- package/dist/components/tour/LaunchpadTour.js +14 -6
- package/dist/components/tour/RoomsBoardTour.js +7 -3
- package/dist/helpers/tour/Highlights.helper.d.ts +1 -0
- package/dist/helpers/tour/Highlights.helper.js +42 -0
- package/dist/helpers/tour/index.d.ts +1 -0
- package/dist/helpers/tour/index.js +1 -0
- package/dist/hooks/forms/useSimpleDynamicForm.js +1 -1
- package/dist/hooks/homeBoard/useHomeBoard.js +1 -0
- package/dist/hooks/useComponentStyles.d.ts +2 -3
- package/dist/hooks/useComponentStyles.js +7 -3
- package/dist/interfaces/forms/dynamicForm/DynamicForm.interface.d.ts +1 -1
- package/dist/mocks/partner/dynamicTileForm.mock.d.ts +2 -0
- package/dist/mocks/partner/dynamicTileForm.mock.js +65 -0
- package/dist/mocks/partner/index.d.ts +1 -0
- package/dist/mocks/partner/index.js +1 -0
- package/dist/proxies/homes/homeAssistant.proxy.d.ts +8 -0
- package/dist/proxies/homes/homeAssistant.proxy.js +9 -0
- package/dist/proxies/homes/index.d.ts +1 -0
- package/dist/proxies/homes/index.js +1 -0
- package/dist/stories/partner/DynamicTile.stories.d.ts +5 -0
- package/dist/stories/partner/DynamicTile.stories.js +26 -0
- package/package.json +1 -1
- package/src/components/appBar/TourButton.tsx +8 -1
- package/src/components/forms/dynamicForm/fields/TileBodyFields.tsx +5 -2
- package/src/components/forms/dynamicForm/fields/uiFields/TileBodyDescription.tsx +16 -0
- package/src/components/forms/dynamicForm/fields/uiFields/TileBodyPartnerImage.tsx +11 -0
- package/src/components/forms/dynamicForm/fields/uiFields/index.ts +3 -1
- package/src/components/homeAssistant/HomeAssistantSteps.tsx +6 -14
- package/src/components/homeAssistant/HomeMonitorSteps.tsx +4 -12
- package/src/components/homeAssistant/panel/HomeAssistantPanel.tsx +34 -13
- package/src/components/homeBoard/HomeBoard.tsx +15 -13
- package/src/components/tour/BubbleArrow.tsx +4 -0
- package/src/components/tour/HomeBoardTour.tsx +14 -9
- package/src/components/tour/LaunchpadTour.tsx +15 -10
- package/src/components/tour/RoomsBoardTour.tsx +7 -7
- package/src/helpers/tour/Highlights.helper.ts +44 -0
- package/src/helpers/tour/index.ts +2 -1
- package/src/hooks/forms/useSimpleDynamicForm.ts +1 -1
- package/src/hooks/homeBoard/useHomeBoard.ts +1 -0
- package/src/hooks/useComponentStyles.ts +11 -7
- package/src/interfaces/forms/dynamicForm/DynamicForm.interface.ts +2 -0
- package/src/mocks/partner/dynamicTileForm.mock.ts +67 -0
- package/src/mocks/partner/index.ts +1 -0
- package/src/proxies/homes/homeAssistant.proxy.ts +18 -0
- package/src/proxies/homes/index.ts +1 -0
- package/src/stories/partner/DynamicTile.stories.tsx +33 -0
|
@@ -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
|
+
]
|
|
@@ -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
|
+
})
|
|
@@ -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
|
+
}
|