@homefile/components-v2 2.6.0 → 2.6.1
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/stories/appBar/UserProfile.stories.js +1 -1
- package/dist/stories/badge/NewBadge.stories.js +1 -1
- package/dist/stories/folderPanel/folderDetails/FilesUploader.stories.js +1 -1
- package/dist/stories/homeBoard/Files.stories.js +2 -2
- package/dist/stories/icons/CustomIcon.stories.js +1 -1
- package/dist/stories/myProfile/payment/NewCreditCard/NewCreditCard.stories.js +1 -1
- package/dist/stories/overlay/index.stories.js +1 -1
- package/dist/stories/partner/ShortPartnerTile.stories.js +2 -2
- package/dist/stories/receipts/displayReceipts/ItemReceipt.stories.js +1 -1
- package/dist/stories/receipts/displayReceipts/itemReceipts.stories.js +1 -1
- package/dist/stories/receipts/receipt/ReceiptFilters.stories.js +1 -1
- package/dist/stories/sendDocument/DocumentNameHeader.stories.js +1 -1
- package/dist/stories/sendDocument/InputOrText.stories.js +1 -1
- package/dist/stories/sendDocument/RecipientForm.stories.js +1 -1
- package/dist/stories/sendDocument/SendCommunication.stories.js +1 -1
- package/dist/stories/subscription/HomesDropdown.stories.js +1 -1
- package/package.json +14 -16
- package/src/stories/addItemWizard/flows/FlowCard.stories.tsx +1 -1
- package/src/stories/addItemWizard/flows/FlowStep.stories.tsx +1 -2
- package/src/stories/addItemWizard/mediaDetails/MediaDetailsStep.stories.tsx +2 -2
- package/src/stories/addItemWizard/wellDone/WellDone.stories.tsx +1 -3
- package/src/stories/appBar/HomefileLogo.stories.tsx +1 -3
- package/src/stories/appBar/StorageUsed.stories.tsx +1 -3
- package/src/stories/appBar/TourButton.stories.tsx +1 -2
- package/src/stories/appBar/TutorialsButton.stories.tsx +1 -2
- package/src/stories/appBar/UserProfile.stories.tsx +2 -4
- package/src/stories/badge/LetterBadge.stories.tsx +1 -1
- package/src/stories/badge/NewBadge.stories.tsx +2 -2
- package/src/stories/badge/NumberBadge.stories.tsx +1 -1
- package/src/stories/badge/TextBadge.stories.tsx +1 -1
- package/src/stories/folderPanel/folderDetails/DisplayOptions.stories.tsx +1 -2
- package/src/stories/folderPanel/folderDetails/FilesUploader.stories.tsx +9 -7
- package/src/stories/folderPanel/folderDetails/FolderDetailBody.stories.tsx +3 -2
- package/src/stories/folderPanel/folderDetails/FolderDetailPanel.stories.tsx +3 -2
- package/src/stories/homeBoard/DetailsTab.stories.tsx +1 -2
- package/src/stories/homeBoard/Files.stories.tsx +4 -4
- package/src/stories/homeSummary/UpdateList.stories.tsx +1 -1
- package/src/stories/icons/CustomIcon.stories.tsx +1 -1
- package/src/stories/inboxTile/MessagePanel.stories.tsx +3 -2
- package/src/stories/myProfile/payment/NewCreditCard/NewCreditCard.stories.tsx +1 -1
- package/src/stories/overlay/index.stories.tsx +1 -1
- package/src/stories/partner/ShortPartnerTile.stories.tsx +6 -2
- package/src/stories/partner/formTile/images/PartnerHero.stories.tsx +0 -1
- package/src/stories/partner/formTile/images/PartnerImages.stories.tsx +0 -1
- package/src/stories/receipts/displayReceipts/ItemReceipt.stories.tsx +1 -1
- package/src/stories/receipts/displayReceipts/itemReceipts.stories.tsx +1 -1
- package/src/stories/receipts/receipt/ReceiptFilters.stories.tsx +1 -1
- package/src/stories/rooms/RoomsMenuMobile.stories.tsx +1 -1
- package/src/stories/sendDocument/DocumentNameHeader.stories.tsx +1 -1
- package/src/stories/sendDocument/InputOrText.stories.tsx +1 -1
- package/src/stories/sendDocument/RecipientForm.stories.tsx +1 -1
- package/src/stories/sendDocument/SendCommunication.stories.tsx +1 -1
- package/src/stories/subscription/HomesDropdown.stories.tsx +1 -1
|
@@ -9,7 +9,7 @@ export default {
|
|
|
9
9
|
firstName: 'John',
|
|
10
10
|
userName: 'John Doe',
|
|
11
11
|
avatarUrl: '',
|
|
12
|
-
menuItems: menuMock
|
|
12
|
+
menuItems: menuMock,
|
|
13
13
|
},
|
|
14
14
|
};
|
|
15
15
|
export const UserProfileComponent = (args) => (_jsx(Box, { p: "base", bg: "white", w: "fit-content", children: _jsx(UserProfile, Object.assign({}, args)) }));
|
|
@@ -18,7 +18,7 @@ FilesUploaderWithoutFiles.args = {
|
|
|
18
18
|
totalShowing: 0,
|
|
19
19
|
initialHeight: '100%',
|
|
20
20
|
};
|
|
21
|
-
export const FilesUploaderWithFiles = (args) => _jsx(FilesUploader, Object.assign({}, args));
|
|
21
|
+
export const FilesUploaderWithFiles = (args) => (_jsx(FilesUploader, Object.assign({}, args)));
|
|
22
22
|
FilesUploaderWithFiles.args = {
|
|
23
23
|
totalFiles: 2,
|
|
24
24
|
totalShowing: 2,
|
|
@@ -10,6 +10,6 @@ export const FilesComponent = (args) => {
|
|
|
10
10
|
return (_jsx(Flex, { gap: "base", p: "base", bg: "white", children: _jsx(Files, Object.assign({}, args)) }));
|
|
11
11
|
};
|
|
12
12
|
FilesComponent.args = {
|
|
13
|
-
panelSize:
|
|
14
|
-
files: fileDB
|
|
13
|
+
panelSize: 'md',
|
|
14
|
+
files: fileDB,
|
|
15
15
|
};
|
|
@@ -6,5 +6,5 @@ export default {
|
|
|
6
6
|
component: NewCreditCard,
|
|
7
7
|
};
|
|
8
8
|
export const NewCreditCardComponent = (props) => {
|
|
9
|
-
return (_jsx(Box, { w: ['full', 'md'], p: [
|
|
9
|
+
return (_jsx(Box, { w: ['full', 'md'], p: ['0', 'base'], bg: "lightBlue.1", children: _jsx(NewCreditCard, Object.assign({}, props)) }));
|
|
10
10
|
};
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: Overlay,
|
|
7
7
|
};
|
|
8
8
|
export const OverlayComponent = (args) => {
|
|
9
|
-
return (_jsxs(Center, { w: [
|
|
9
|
+
return (_jsxs(Center, { w: ['full', '500px'], h: "10rem", bg: "lightBlue.4", children: [_jsx(Overlay, Object.assign({ position: "absolute", w: "inherit", h: "inherit" }, args)), _jsx(Text, { children: "Component behind overlay" })] }));
|
|
10
10
|
};
|
|
11
11
|
OverlayComponent.args = {
|
|
12
12
|
showOverlay: true,
|
|
@@ -15,7 +15,7 @@ export default {
|
|
|
15
15
|
partnerName: 'Audrey Scheck',
|
|
16
16
|
socialLinks: socialLinksMock,
|
|
17
17
|
websiteUrl: 'http://www.audreyscheckdesign.com',
|
|
18
|
-
_id:
|
|
18
|
+
_id: '1',
|
|
19
19
|
},
|
|
20
20
|
argTypes: {
|
|
21
21
|
menuItems: {
|
|
@@ -24,5 +24,5 @@ export default {
|
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
26
|
export const ShortPartnerTileComponent = (args) => {
|
|
27
|
-
return _jsx(Flex, { maxW: '380px', children: _jsx(ShortPartnerTile, Object.assign({}, args)) });
|
|
27
|
+
return (_jsx(Flex, { maxW: '380px', children: _jsx(ShortPartnerTile, Object.assign({}, args)) }));
|
|
28
28
|
};
|
|
@@ -7,6 +7,6 @@ export default {
|
|
|
7
7
|
component: ItemReceipt,
|
|
8
8
|
};
|
|
9
9
|
export const ItemReceiptComponent = (args) => {
|
|
10
|
-
return (_jsx(Box, { p: [
|
|
10
|
+
return (_jsx(Box, { p: ['0', '1rem'], w: ['full', '500px'], children: _jsx(ItemReceipt, Object.assign({}, args)) }));
|
|
11
11
|
};
|
|
12
12
|
ItemReceiptComponent.args = Object.assign({ menuItems: [menuMock[0]] }, receiptsReceivedMock[0]);
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
component: ItemReceipts,
|
|
8
8
|
};
|
|
9
9
|
export const ItemReceiptsComponent = (args) => {
|
|
10
|
-
return (_jsx(Wrap, { p: [
|
|
10
|
+
return (_jsx(Wrap, { p: ['0', '1rem'], w: ['100%', '500px'], children: _jsx(ItemReceipts, Object.assign({}, args)) }));
|
|
11
11
|
};
|
|
12
12
|
ItemReceiptsComponent.args = {
|
|
13
13
|
menuItems: [menuMock[0]],
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: ReceiptFilters,
|
|
7
7
|
};
|
|
8
8
|
export const ReceiptFiltersComponent = (args) => {
|
|
9
|
-
return (_jsx(Box, { p: [
|
|
9
|
+
return (_jsx(Box, { p: ['0', 'base'], bg: "white", w: ['full', 'fit-content'], children: _jsx(ReceiptFilters, Object.assign({}, args)) }));
|
|
10
10
|
};
|
|
11
11
|
ReceiptFiltersComponent.args = {
|
|
12
12
|
leftOptions: ['Last 30 days', 'Last 60 days', 'Last 90 days'],
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: DocumentNameHeader,
|
|
7
7
|
};
|
|
8
8
|
export const DocumentNameHeaderComponent = (args) => {
|
|
9
|
-
return (_jsx(Box, { w: [
|
|
9
|
+
return (_jsx(Box, { w: ['full', '60%'], bg: "white", p: "base", children: _jsx(DocumentNameHeader, Object.assign({}, args)) }));
|
|
10
10
|
};
|
|
11
11
|
DocumentNameHeaderComponent.args = {
|
|
12
12
|
value: 'Progress Report - Jan 12-16 2022',
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: InputOrText,
|
|
7
7
|
};
|
|
8
8
|
export const InputOrTextComponent = (args) => {
|
|
9
|
-
return (_jsx(Box, { w: [
|
|
9
|
+
return (_jsx(Box, { w: ['full', '60%'], bg: "white", p: "base", children: _jsx(InputOrText, Object.assign({}, args)) }));
|
|
10
10
|
};
|
|
11
11
|
InputOrTextComponent.args = {
|
|
12
12
|
value: 'Progress Report - Jan 12-16 2022',
|
|
@@ -6,5 +6,5 @@ export default {
|
|
|
6
6
|
component: RecipientForm,
|
|
7
7
|
};
|
|
8
8
|
export const RecipientFormComponent = (args) => {
|
|
9
|
-
return (_jsx(Flex, { justify: "flex-end", children: _jsx(Box, { w: [
|
|
9
|
+
return (_jsx(Flex, { justify: "flex-end", children: _jsx(Box, { w: ['full', 'fit-content'], bg: "white", p: "base", children: _jsx(RecipientForm, Object.assign({}, args)) }) }));
|
|
10
10
|
};
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
component: SendCommunication,
|
|
8
8
|
};
|
|
9
9
|
export const SendCommunicationComponent = (args) => {
|
|
10
|
-
return (_jsx(Box, { w: [
|
|
10
|
+
return (_jsx(Box, { w: ['full', '25rem'], children: _jsx(SendCommunication, Object.assign({}, args)) }));
|
|
11
11
|
};
|
|
12
12
|
SendCommunicationComponent.args = {
|
|
13
13
|
documentList: documents,
|
|
@@ -26,7 +26,7 @@ export default {
|
|
|
26
26
|
totalStorage: 756,
|
|
27
27
|
},
|
|
28
28
|
decorators: [
|
|
29
|
-
(Story) => (_jsx(Box, { w: [
|
|
29
|
+
(Story) => (_jsx(Box, { w: ['full', '30rem'], bg: "lightBlue.1", children: _jsx(Story, {}) })),
|
|
30
30
|
],
|
|
31
31
|
};
|
|
32
32
|
export const HomesDropdownComponent = (args) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homefile/components-v2",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"author": "Homefile",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -23,20 +23,18 @@
|
|
|
23
23
|
],
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@chakra-ui/storybook-addon": "^5.2.5",
|
|
26
|
-
"@chromatic-com/storybook": "^2.
|
|
26
|
+
"@chromatic-com/storybook": "^3.2.2",
|
|
27
27
|
"@faker-js/faker": "^9.0.3",
|
|
28
|
-
"@storybook/addon-a11y": "^8.
|
|
29
|
-
"@storybook/addon-essentials": "^8.
|
|
30
|
-
"@storybook/addon-interactions": "^8.
|
|
31
|
-
"@storybook/addon-links": "^8.
|
|
32
|
-
"@storybook/addon-onboarding": "^8.
|
|
33
|
-
"@storybook/addon-viewport": "^8.
|
|
34
|
-
"@storybook/blocks": "^8.
|
|
35
|
-
"@storybook/
|
|
36
|
-
"@storybook/
|
|
37
|
-
"@storybook/
|
|
38
|
-
"@storybook/react-vite": "^8.3.5",
|
|
39
|
-
"@storybook/test": "^8.3.5",
|
|
28
|
+
"@storybook/addon-a11y": "^8.4.7",
|
|
29
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
30
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
31
|
+
"@storybook/addon-links": "^8.4.7",
|
|
32
|
+
"@storybook/addon-onboarding": "^8.4.7",
|
|
33
|
+
"@storybook/addon-viewport": "^8.4.7",
|
|
34
|
+
"@storybook/blocks": "^8.4.7",
|
|
35
|
+
"@storybook/react": "^8.4.7",
|
|
36
|
+
"@storybook/react-vite": "^8.4.7",
|
|
37
|
+
"@storybook/test": "^8.4.7",
|
|
40
38
|
"@types/node": "^22.7.6",
|
|
41
39
|
"@types/react": "^18.3.11",
|
|
42
40
|
"@types/react-dom": "^18.3.1",
|
|
@@ -49,8 +47,8 @@
|
|
|
49
47
|
"json-loader": "^0.5.7",
|
|
50
48
|
"rimraf": "^6.0.1",
|
|
51
49
|
"semantic-release": "^24.1.2",
|
|
52
|
-
"storybook": "^8.
|
|
53
|
-
"storybook-react-i18next": "^3.1.
|
|
50
|
+
"storybook": "^8.4.7",
|
|
51
|
+
"storybook-react-i18next": "^3.1.8",
|
|
54
52
|
"tsconfig-replace-paths": "^0.0.14",
|
|
55
53
|
"tscpaths": "^0.0.9",
|
|
56
54
|
"typescript": "^5.6.3",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta
|
|
1
|
+
import { Meta } from '@storybook/react'
|
|
2
2
|
import { FlowStep } from '@/components'
|
|
3
3
|
import { FlowStepI } from '@/interfaces'
|
|
4
4
|
|
|
@@ -10,4 +10,3 @@ export default {
|
|
|
10
10
|
export const FlowStepComponent = (args: FlowStepI) => {
|
|
11
11
|
return <FlowStep {...args} />
|
|
12
12
|
}
|
|
13
|
-
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta
|
|
1
|
+
import { Meta } from '@storybook/react'
|
|
2
2
|
import { Box } from '@chakra-ui/react'
|
|
3
3
|
import { AddItemContainer, RightPanel, MediaDetailsStep } from '@/components'
|
|
4
4
|
import { images } from '@/helpers'
|
|
@@ -52,4 +52,4 @@ MediaDetailsStepWithImage.args = {
|
|
|
52
52
|
currentStep: 1,
|
|
53
53
|
totalSteps: 3,
|
|
54
54
|
images,
|
|
55
|
-
}
|
|
55
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta
|
|
1
|
+
import { Meta } from '@storybook/react'
|
|
2
2
|
import { AddItemContainer, RightPanel, WellDone } from '@/components'
|
|
3
3
|
|
|
4
4
|
export default {
|
|
@@ -15,5 +15,3 @@ export const WellDoneComponent: typeof WellDone = (args) => {
|
|
|
15
15
|
</RightPanel>
|
|
16
16
|
)
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta
|
|
1
|
+
import { Meta } from '@storybook/react'
|
|
2
2
|
import { HomefileLogo } from '@/components'
|
|
3
3
|
import { Box } from '@chakra-ui/react'
|
|
4
4
|
import { HomefileLogoI } from '@/interfaces'
|
|
@@ -13,5 +13,3 @@ export const HomefileLogoComponent = (args: HomefileLogoI) => (
|
|
|
13
13
|
<HomefileLogo {...args} />
|
|
14
14
|
</Box>
|
|
15
15
|
)
|
|
16
|
-
|
|
17
|
-
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta
|
|
1
|
+
import { Meta } from '@storybook/react'
|
|
2
2
|
import { StorageUsed } from '@/components'
|
|
3
3
|
import { Box } from '@chakra-ui/react'
|
|
4
4
|
import { StorageUsedI } from '@/interfaces'
|
|
@@ -17,5 +17,3 @@ export const StorageUsedComponent = (args: StorageUsedI) => (
|
|
|
17
17
|
<StorageUsed {...args} />
|
|
18
18
|
</Box>
|
|
19
19
|
)
|
|
20
|
-
|
|
21
|
-
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta
|
|
1
|
+
import { Meta } from '@storybook/react'
|
|
2
2
|
import { TourButton } from '@/components'
|
|
3
3
|
import { Box } from '@chakra-ui/react'
|
|
4
4
|
import { TourButtonI } from '@/interfaces'
|
|
@@ -16,4 +16,3 @@ export const TourButtonComponent = (args: TourButtonI) => (
|
|
|
16
16
|
<TourButton {...args} />
|
|
17
17
|
</Box>
|
|
18
18
|
)
|
|
19
|
-
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta
|
|
1
|
+
import { Meta } from '@storybook/react'
|
|
2
2
|
import { TutorialsButton } from '@/components'
|
|
3
3
|
import { Box } from '@chakra-ui/react'
|
|
4
4
|
import { TutorialsButtonI } from '@/interfaces'
|
|
@@ -13,4 +13,3 @@ export const TutorialsButtonComponent = (args: TutorialsButtonI) => (
|
|
|
13
13
|
<TutorialsButton {...args} />
|
|
14
14
|
</Box>
|
|
15
15
|
)
|
|
16
|
-
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta
|
|
1
|
+
import { Meta } from '@storybook/react'
|
|
2
2
|
import { UserProfile } from '@/components'
|
|
3
3
|
import { Box } from '@chakra-ui/react'
|
|
4
4
|
import { menuMock } from '@/mocks'
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
firstName: 'John',
|
|
12
12
|
userName: 'John Doe',
|
|
13
13
|
avatarUrl: '',
|
|
14
|
-
menuItems: menuMock
|
|
14
|
+
menuItems: menuMock,
|
|
15
15
|
},
|
|
16
16
|
} as Meta<UserProfileI>
|
|
17
17
|
|
|
@@ -20,5 +20,3 @@ export const UserProfileComponent = (args: UserProfileI) => (
|
|
|
20
20
|
<UserProfile {...args} />
|
|
21
21
|
</Box>
|
|
22
22
|
)
|
|
23
|
-
|
|
24
|
-
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta
|
|
1
|
+
import { Meta } from '@storybook/react'
|
|
2
2
|
import { NewBadge } from '@/components'
|
|
3
3
|
import { Box } from '@chakra-ui/react'
|
|
4
4
|
import { NewBadgeI } from '@/interfaces'
|
|
@@ -18,5 +18,5 @@ export const NewBadgeComponent = (args: NewBadgeI) => {
|
|
|
18
18
|
|
|
19
19
|
NewBadgeComponent.args = {
|
|
20
20
|
bg: 'white',
|
|
21
|
-
color: 'black'
|
|
21
|
+
color: 'black',
|
|
22
22
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta
|
|
1
|
+
import { Meta } from '@storybook/react'
|
|
2
2
|
import { Box } from '@chakra-ui/react'
|
|
3
3
|
import { DisplayOptions } from '@/components'
|
|
4
4
|
import { DisplayOptionsI } from '@/interfaces'
|
|
@@ -18,4 +18,3 @@ export const DisplayOptionsComponent = (args: DisplayOptionsI) => {
|
|
|
18
18
|
</Box>
|
|
19
19
|
)
|
|
20
20
|
}
|
|
21
|
-
|
|
@@ -27,11 +27,13 @@ FilesUploaderWithoutFiles.args = {
|
|
|
27
27
|
initialHeight: '100%',
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export const FilesUploaderWithFiles = (args: FilesUploaderI) =>
|
|
30
|
+
export const FilesUploaderWithFiles = (args: FilesUploaderI) => (
|
|
31
|
+
<FilesUploader {...args} />
|
|
32
|
+
)
|
|
31
33
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
FilesUploaderWithFiles.args = {
|
|
35
|
+
totalFiles: 2,
|
|
36
|
+
totalShowing: 2,
|
|
37
|
+
displayType: 'grid',
|
|
38
|
+
onUpload: action('handleUpload'),
|
|
39
|
+
}
|
|
@@ -36,8 +36,9 @@ export default {
|
|
|
36
36
|
export const FolderDetailBodyComponent = (args: FolderDetailBodyI) => {
|
|
37
37
|
const [showModal, setShowModal] = useState<boolean>(false)
|
|
38
38
|
|
|
39
|
-
const [currentType, setCurrentType] =
|
|
40
|
-
|
|
39
|
+
const [currentType, setCurrentType] = useState<'list' | 'grid' | 'item'>(
|
|
40
|
+
'grid'
|
|
41
|
+
)
|
|
41
42
|
|
|
42
43
|
const handleCloseModal = () => setShowModal(false)
|
|
43
44
|
|
|
@@ -33,8 +33,9 @@ export const FolderDetailPanel = () => {
|
|
|
33
33
|
|
|
34
34
|
const [showModal, setShowModal] = useState<boolean>(false)
|
|
35
35
|
|
|
36
|
-
const [currentType, setCurrentType] =
|
|
37
|
-
|
|
36
|
+
const [currentType, setCurrentType] = useState<'list' | 'grid' | 'item'>(
|
|
37
|
+
'grid'
|
|
38
|
+
)
|
|
38
39
|
|
|
39
40
|
const handleCloseModal = () => setShowModal(false)
|
|
40
41
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta
|
|
1
|
+
import { Meta } from '@storybook/react'
|
|
2
2
|
import { Box } from '@chakra-ui/react'
|
|
3
3
|
import { DetailsTab } from '@/components'
|
|
4
4
|
import { DetailsTabI } from '@/interfaces'
|
|
@@ -15,4 +15,3 @@ export const DetailsTabComponent = (args: DetailsTabI) => {
|
|
|
15
15
|
</Box>
|
|
16
16
|
)
|
|
17
17
|
}
|
|
18
|
-
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta
|
|
1
|
+
import { Meta } from '@storybook/react'
|
|
2
2
|
import { Flex } from '@chakra-ui/react'
|
|
3
3
|
import { Files } from '@/components'
|
|
4
4
|
import { fileDB } from '@/helpers'
|
|
@@ -18,6 +18,6 @@ export const FilesComponent = (args: FilesI) => {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
FilesComponent.args = {
|
|
21
|
-
panelSize:
|
|
22
|
-
files: fileDB
|
|
23
|
-
}
|
|
21
|
+
panelSize: 'md',
|
|
22
|
+
files: fileDB,
|
|
23
|
+
}
|
|
@@ -22,8 +22,9 @@ export default {
|
|
|
22
22
|
|
|
23
23
|
export const MessagePanelComponent = (args: MessagePanelI) => {
|
|
24
24
|
const [showMessageChat, setShowMessageChat] = useState(false)
|
|
25
|
-
const [selectedMessage, setSelectedMessage] =
|
|
26
|
-
|
|
25
|
+
const [selectedMessage, setSelectedMessage] = useState<
|
|
26
|
+
InboxMessageI | undefined
|
|
27
|
+
>(undefined)
|
|
27
28
|
const handleMessageChatToggle = () => setShowMessageChat(!showMessageChat)
|
|
28
29
|
return (
|
|
29
30
|
<Fragment>
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
|
|
11
11
|
export const NewCreditCardComponent = (props: NewCreditCardI) => {
|
|
12
12
|
return (
|
|
13
|
-
<Box w={['full', 'md']} p={[
|
|
13
|
+
<Box w={['full', 'md']} p={['0', 'base']} bg="lightBlue.1">
|
|
14
14
|
<NewCreditCard {...props} />
|
|
15
15
|
</Box>
|
|
16
16
|
)
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
|
|
11
11
|
export const OverlayComponent = (args: OverlayI) => {
|
|
12
12
|
return (
|
|
13
|
-
<Center w={[
|
|
13
|
+
<Center w={['full', '500px']} h="10rem" bg="lightBlue.4">
|
|
14
14
|
<Overlay position="absolute" w="inherit" h="inherit" {...args} />
|
|
15
15
|
<Text>Component behind overlay</Text>
|
|
16
16
|
</Center>
|
|
@@ -19,7 +19,7 @@ export default {
|
|
|
19
19
|
partnerName: 'Audrey Scheck',
|
|
20
20
|
socialLinks: socialLinksMock,
|
|
21
21
|
websiteUrl: 'http://www.audreyscheckdesign.com',
|
|
22
|
-
_id:
|
|
22
|
+
_id: '1',
|
|
23
23
|
},
|
|
24
24
|
argTypes: {
|
|
25
25
|
menuItems: {
|
|
@@ -29,5 +29,9 @@ export default {
|
|
|
29
29
|
} as Meta
|
|
30
30
|
|
|
31
31
|
export const ShortPartnerTileComponent = (args: ShortPartnerTileI) => {
|
|
32
|
-
return
|
|
32
|
+
return (
|
|
33
|
+
<Flex maxW={'380px'}>
|
|
34
|
+
<ShortPartnerTile {...args} />
|
|
35
|
+
</Flex>
|
|
36
|
+
)
|
|
33
37
|
}
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
|
|
11
11
|
export const ReceiptFiltersComponent = (args: ReceiptFiltersI) => {
|
|
12
12
|
return (
|
|
13
|
-
<Box p={[
|
|
13
|
+
<Box p={['0', 'base']} bg="white" w={['full', 'fit-content']}>
|
|
14
14
|
<ReceiptFilters {...args} />
|
|
15
15
|
</Box>
|
|
16
16
|
)
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
export const RecipientFormComponent = (args: RecipientFormI) => {
|
|
12
12
|
return (
|
|
13
13
|
<Flex justify="flex-end">
|
|
14
|
-
<Box w={[
|
|
14
|
+
<Box w={['full', 'fit-content']} bg="white" p="base">
|
|
15
15
|
<RecipientForm {...args} />
|
|
16
16
|
</Box>
|
|
17
17
|
</Flex>
|