blixify-ui-web-mcp 0.1.3 → 0.1.18
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/lib/components/action/button/README.md +12 -11
- package/lib/components/action/button/button.stories.tsx +4 -10
- package/lib/components/action/buttonGroup/buttonGroup.stories.tsx +4 -10
- package/lib/components/action/iconButton/iconButton.stories.tsx +4 -10
- package/lib/components/action/radioList/radioList.stories.tsx +4 -10
- package/lib/components/action/slider/slider.stories.tsx +4 -10
- package/lib/components/action/textButton/textButton.stories.tsx +4 -10
- package/lib/components/action/toggle/toggle.stories.tsx +4 -10
- package/lib/components/advanced/collapse/collapse.stories.tsx +4 -10
- package/lib/components/advanced/infoWindow/infoWindow.stories.tsx +4 -10
- package/lib/components/advanced/popUp/README.md +21 -7
- package/lib/components/advanced/popUp/popUp.stories.tsx +4 -10
- package/lib/components/auth/bareSignIn/bareSignIn.stories.tsx +30 -10
- package/lib/components/auth/bareSignUp/bareSignUp.stories.tsx +4 -10
- package/lib/components/auth/signIn/signIn.stories.tsx +4 -10
- package/lib/components/auth/signUp/signUp.stories.tsx +4 -10
- package/lib/components/chart/areaChart/areaChart.stories.tsx +7 -13
- package/lib/components/chart/barChart/barChart.stories.tsx +7 -13
- package/lib/components/chart/boxPlotChart/boxPlotChart.stories.tsx +8 -14
- package/lib/components/chart/bubbleChart/bubbleChart.stories.tsx +8 -14
- package/lib/components/chart/card/card.stories.tsx +4 -10
- package/lib/components/chart/ganttChart/ganttChart.stories.tsx +4 -10
- package/lib/components/chart/heatmapChart/heatmapChart.stories.tsx +4 -10
- package/lib/components/chart/lineChart/lineChart.stories.tsx +4 -10
- package/lib/components/chart/pieChart/pieChart.stories.tsx +4 -10
- package/lib/components/chart/polarAreaChart/polarAreaChart.stories.tsx +8 -14
- package/lib/components/chart/radarChart/radarChart.stories.tsx +4 -10
- package/lib/components/chart/radialBar/radialChart.stories.tsx +4 -10
- package/lib/components/chart/rangeBarChart/rangeBarChart.stories.tsx +4 -10
- package/lib/components/chart/statsCard/statsCard.stories.tsx +4 -10
- package/lib/components/chart/treemapChart/treemapChart.stories.tsx +8 -14
- package/lib/components/chat/chatAnchor/chatAnchor.stories.tsx +13 -19
- package/lib/components/chat/chatBase/README.md +103 -22
- package/lib/components/chat/chatBase/chatBase.stories.tsx +652 -52
- package/lib/components/chat/chatDashboard/README.md +17 -15
- package/lib/components/chat/chatDashboard/chatDashboard.stories.tsx +356 -44
- package/lib/components/data/dataGraph/dataGraph.stories.tsx +4 -10
- package/lib/components/data/dataReference/dataReference.stories.tsx +4 -10
- package/lib/components/data/dataTemplate/README.md +88 -61
- package/lib/components/data/dataTemplate/dataModule.stories.tsx +4 -10
- package/lib/components/data/dataTemplate/dataTemplate.stories.tsx +4 -10
- package/lib/components/data/dataWrapper/README.md +46 -45
- package/lib/components/data/dataWrapper/dataWrapper.stories.tsx +258 -489
- package/lib/components/data/queryForm/queryForm.stories.tsx +4 -10
- package/lib/components/data/readQuery/readQuery.stories.tsx +4 -9
- package/lib/components/data/readQueryHoc/readQueryHoc.stories.tsx +4 -10
- package/lib/components/data/writeQuery/writeQuery.stories.tsx +4 -8
- package/lib/components/design/actionSection/actionSection.stories.tsx +6 -10
- package/lib/components/design/banner/banner.stories.tsx +4 -10
- package/lib/components/design/bannerAction/bannerAction.stories.tsx +4 -10
- package/lib/components/design/blogSection/blogSection.stories.tsx +4 -10
- package/lib/components/design/carouselSection/carouselSection.stories.tsx +4 -10
- package/lib/components/design/designList/designList.stories.tsx +4 -10
- package/lib/components/design/faq/faq.stories.tsx +4 -10
- package/lib/components/design/fileGrid/fileGrid.stories.tsx +4 -10
- package/lib/components/design/fileViewer/fileViewer.stories.tsx +4 -10
- package/lib/components/design/footerSection/footerSection.stories.tsx +4 -10
- package/lib/components/design/googleReview/googleReview.stories.tsx +4 -10
- package/lib/components/design/heroSection/heroSection.stories.tsx +4 -10
- package/lib/components/design/iconList/iconList.stories.tsx +4 -10
- package/lib/components/design/imageGallery/imageGallery.stories.tsx +4 -10
- package/lib/components/design/imageZoom/imageZoom.stories.tsx +4 -10
- package/lib/components/design/leftContent/leftContent.stories.tsx +4 -10
- package/lib/components/design/logoCloud/logoCloud.stories.tsx +4 -10
- package/lib/components/design/onboarding/onboarding.stories.tsx +4 -10
- package/lib/components/design/pricing/pricing.stories.tsx +4 -10
- package/lib/components/design/rightContent/rightContent.stories.tsx +4 -10
- package/lib/components/design/sectionList/sectionList.stories.tsx +4 -10
- package/lib/components/design/teams/teams.stories.tsx +4 -10
- package/lib/components/display/alert/alert.stories.tsx +4 -10
- package/lib/components/display/calendar/README.md +49 -0
- package/lib/components/display/calendar/calendar.stories.tsx +71 -28
- package/lib/components/display/clipboard/clipboard.stories.tsx +4 -10
- package/lib/components/display/detailList/detailList.stories.tsx +5 -10
- package/lib/components/display/drawer/drawer.stories.tsx +5 -10
- package/lib/components/display/emptyState/emptyState.stories.tsx +4 -10
- package/lib/components/display/feeds/feeds.stories.tsx +4 -10
- package/lib/components/display/flexTable/README.md +11 -7
- package/lib/components/display/flexTable/flexTable.stories.tsx +114 -11
- package/lib/components/display/grid/README.md +28 -27
- package/lib/components/display/grid/grid.stories.tsx +4 -10
- package/lib/components/display/kanban/kanban.stories.tsx +14 -20
- package/lib/components/display/list/README.md +30 -29
- package/lib/components/display/list/list.stories.tsx +4 -10
- package/lib/components/display/loading/loading.stories.tsx +5 -10
- package/lib/components/display/mapView/mapView.stories.tsx +4 -10
- package/lib/components/display/modal/modal.stories.tsx +4 -11
- package/lib/components/display/notification/notification.stories.tsx +4 -10
- package/lib/components/display/progress/progress.stories.tsx +5 -10
- package/lib/components/display/stepper/stepper.stories.tsx +5 -10
- package/lib/components/display/table/README.md +38 -37
- package/lib/components/display/table/table.stories.tsx +8 -14
- package/lib/components/display/tag/tag.stories.tsx +4 -10
- package/lib/components/input/address/address.stories.tsx +4 -10
- package/lib/components/input/canvas/canvas.stories.tsx +4 -10
- package/lib/components/input/checkbox/checkbox.stories.tsx +4 -10
- package/lib/components/input/datePicker/datePicker.stories.tsx +4 -10
- package/lib/components/input/form/form.stories.tsx +4 -10
- package/lib/components/input/markdown/markdown.stories.tsx +5 -10
- package/lib/components/input/monthYearPicker/monthYearPicker.stories.tsx +4 -10
- package/lib/components/input/netPromoterScore/netPromoterScore.stories.tsx +4 -10
- package/lib/components/input/rating/rating.stories.tsx +4 -10
- package/lib/components/input/select/README.md +30 -29
- package/lib/components/input/select/select.stories.tsx +4 -10
- package/lib/components/input/signature/signature.stories.tsx +4 -10
- package/lib/components/input/textArea/textArea.stories.tsx +4 -10
- package/lib/components/input/textInput/textinput.stories.tsx +4 -10
- package/lib/components/input/uploadInput/uploadInput.stories.tsx +135 -11
- package/lib/components/navigation/bars/bars.stories.tsx +4 -10
- package/lib/components/navigation/bottomTab/bottomTab.stories.tsx +5 -10
- package/lib/components/navigation/breadcrumb/breadcrumb.stories.tsx +4 -10
- package/lib/components/navigation/header/header.stories.tsx +24 -12
- package/lib/components/navigation/leftNav/leftNav.stories.tsx +4 -10
- package/lib/components/navigation/tabs/tabs.stories.tsx +4 -10
- package/lib/components/structure/column/column.stories.tsx +5 -10
- package/lib/components/structure/container/container.stories.tsx +5 -10
- package/lib/components/structure/link/link.stories.tsx +4 -10
- package/lib/components/structure/text/text.stories.tsx +5 -10
- package/lib/components/template/authPage/authPage.stories.tsx +6 -5
- package/lib/components/template/landingPage/landingPage.stories.tsx +8 -6
- package/lib/components/template/productListing/productListing.stories.tsx +7 -13
- package/lib/components/template/productOverview/productOverview.stories.tsx +5 -11
- package/lib/components/template/shoppingCart/shoppingCart.stories.tsx +6 -12
- package/lib/components/template/userHomePage/userHomePage.stories.tsx +7 -6
- package/lib/components/template/userRankingDashboard/userRankingDashboard.stories.tsx +5 -11
- package/package.json +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import axios from "axios";
|
|
3
2
|
import React, { useEffect, useState } from "react";
|
|
4
3
|
import { QueryForm } from ".";
|
|
@@ -17,17 +16,12 @@ import {
|
|
|
17
16
|
} from "../stories";
|
|
18
17
|
import { blixifyDevCollection, blixifyDevWorkspace } from "../testData";
|
|
19
18
|
import { parseSpaceToDataStructure, parseWorkspaceSettings } from "../utils";
|
|
20
|
-
import README from "./README.md";
|
|
21
19
|
|
|
22
|
-
const
|
|
20
|
+
const meta = { title: "Data/Query Form" };
|
|
21
|
+
export default meta;
|
|
23
22
|
|
|
24
|
-
stories.addParameters({
|
|
25
|
-
readme: {
|
|
26
|
-
content: README,
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
23
|
|
|
30
|
-
|
|
24
|
+
export const QueryFormStory = () => {
|
|
31
25
|
const [selectedSpace, setSelectedSpace] = useState<Space | null>(null);
|
|
32
26
|
const [allWorkspaceSpace, setAllWorkspaceSpace] = useState<Space[]>([]);
|
|
33
27
|
const [selectedWorkspace, setSelectedWorkspace] =
|
|
@@ -82,4 +76,4 @@ stories.add("Query Form", () => {
|
|
|
82
76
|
/>
|
|
83
77
|
);
|
|
84
78
|
} else return <Loading />;
|
|
85
|
-
}
|
|
79
|
+
}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import axios from "axios";
|
|
3
|
-
import moment from "moment-timezone";
|
|
4
2
|
import React, { useState } from "react";
|
|
5
3
|
import { ReadQuery } from ".";
|
|
6
4
|
import { Button } from "../../action/button";
|
|
7
5
|
import { StorySection } from "../../storyUtils";
|
|
8
|
-
import README from "./README.md";
|
|
9
6
|
|
|
10
|
-
const
|
|
7
|
+
const meta = { title: "Data/Read Query" };
|
|
8
|
+
export default meta;
|
|
11
9
|
|
|
12
|
-
stories.addParameters({
|
|
13
|
-
readme: { content: README },
|
|
14
|
-
});
|
|
15
10
|
|
|
16
11
|
const query = new ReadQuery({
|
|
17
12
|
dbModule: axios,
|
|
@@ -20,7 +15,7 @@ const query = new ReadQuery({
|
|
|
20
15
|
dbEndpoint: "https://api.example.com/api/mongoData",
|
|
21
16
|
});
|
|
22
17
|
|
|
23
|
-
|
|
18
|
+
export const ReadQueryStory = () => {
|
|
24
19
|
const [result, setResult] = useState<string>("");
|
|
25
20
|
|
|
26
21
|
const run = async (label: string, fn: () => Promise<any>) => {
|
|
@@ -253,4 +248,4 @@ stories.add("Read Query", () => {
|
|
|
253
248
|
)}
|
|
254
249
|
</div>
|
|
255
250
|
);
|
|
256
|
-
}
|
|
251
|
+
}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import axios from "axios";
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { ReadQueryHoc } from ".";
|
|
5
|
-
import README from "./README.md";
|
|
6
4
|
|
|
7
|
-
const
|
|
5
|
+
const meta = { title: "Data/ReadQueryHoc" };
|
|
6
|
+
export default meta;
|
|
8
7
|
|
|
9
|
-
stories.addParameters({
|
|
10
|
-
readme: {
|
|
11
|
-
content: README,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
8
|
|
|
15
|
-
|
|
9
|
+
export const ReadQueryHocStory = () => {
|
|
16
10
|
return (
|
|
17
11
|
<ReadQueryHoc
|
|
18
12
|
database={{
|
|
@@ -30,4 +24,4 @@ stories.add("ReadQueryHoc", () => {
|
|
|
30
24
|
}}
|
|
31
25
|
/>
|
|
32
26
|
);
|
|
33
|
-
}
|
|
27
|
+
}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import axios from "axios";
|
|
3
2
|
import React, { useState } from "react";
|
|
4
3
|
import { WriteQuery } from ".";
|
|
5
4
|
import { Button } from "../../action/button";
|
|
6
5
|
import { StorySection } from "../../storyUtils";
|
|
7
|
-
import README from "./README.md";
|
|
8
6
|
|
|
9
|
-
const
|
|
7
|
+
const meta = { title: "Data/Write Query" };
|
|
8
|
+
export default meta;
|
|
10
9
|
|
|
11
|
-
stories.addParameters({
|
|
12
|
-
readme: { content: README },
|
|
13
|
-
});
|
|
14
10
|
|
|
15
11
|
const query = new WriteQuery({
|
|
16
12
|
dbModule: axios,
|
|
@@ -19,7 +15,7 @@ const query = new WriteQuery({
|
|
|
19
15
|
dbEndpoint: "https://api.example.com/api/mongoData",
|
|
20
16
|
});
|
|
21
17
|
|
|
22
|
-
|
|
18
|
+
export const WriteQueryStory = () => {
|
|
23
19
|
const [result, setResult] = useState<string>("");
|
|
24
20
|
|
|
25
21
|
const run = async (label: string, fn: () => Promise<any>) => {
|
|
@@ -206,4 +202,4 @@ stories.add("Write Query", () => {
|
|
|
206
202
|
)}
|
|
207
203
|
</div>
|
|
208
204
|
);
|
|
209
|
-
}
|
|
205
|
+
}
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import { ExclamationTriangleIcon } from "@heroicons/react/24/outline";
|
|
2
|
-
import { storiesOf } from "@storybook/react";
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { ActionSection } from ".";
|
|
5
4
|
import { Button } from "../../action/button";
|
|
6
|
-
import README from "./README.md"; // TypeScript declaration exists in types.d.ts
|
|
7
5
|
|
|
8
|
-
const
|
|
6
|
+
const meta = { title: "Design/Action Section" };
|
|
7
|
+
export default meta;
|
|
8
|
+
|
|
9
|
+
// TypeScript declaration exists in types.d.ts
|
|
9
10
|
|
|
10
|
-
stories.addParameters({
|
|
11
|
-
readme: {
|
|
12
|
-
content: README,
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
11
|
|
|
16
12
|
// Sample background image URL (you can replace with actual image)
|
|
17
13
|
const sampleBackgroundImage =
|
|
18
14
|
"https://images.unsplash.com/photo-1516541196182-6bdb0516ed27?q=80&w=987&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D";
|
|
19
15
|
|
|
20
|
-
|
|
16
|
+
export const ActionSectionStory = () => {
|
|
21
17
|
return (
|
|
22
18
|
<div className="divide-y-8">
|
|
23
19
|
<ActionSection
|
|
@@ -71,4 +67,4 @@ stories.add("Action Section", () => {
|
|
|
71
67
|
/>
|
|
72
68
|
</div>
|
|
73
69
|
);
|
|
74
|
-
}
|
|
70
|
+
}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { Banner } from ".";
|
|
4
|
-
import README from "./README.md";
|
|
5
3
|
|
|
6
|
-
const
|
|
4
|
+
const meta = { title: "Design/Banner" };
|
|
5
|
+
export default meta;
|
|
7
6
|
|
|
8
|
-
stories.addParameters({
|
|
9
|
-
readme: {
|
|
10
|
-
content: README,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
7
|
|
|
14
|
-
|
|
8
|
+
export const BannerStory = () => {
|
|
15
9
|
const renderContent = () => {
|
|
16
10
|
return (
|
|
17
11
|
<>
|
|
@@ -31,4 +25,4 @@ stories.add("Banner", () => {
|
|
|
31
25
|
};
|
|
32
26
|
|
|
33
27
|
return <Banner content={renderContent()} />;
|
|
34
|
-
}
|
|
28
|
+
}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import { PencilIcon } from "@heroicons/react/24/solid";
|
|
2
|
-
import { storiesOf } from "@storybook/react";
|
|
3
2
|
import React from "react";
|
|
4
|
-
import README from "./README.md";
|
|
5
3
|
import { BannerAction } from "./index";
|
|
6
4
|
|
|
7
|
-
const
|
|
5
|
+
const meta = { title: "Design/Banner Action" };
|
|
6
|
+
export default meta;
|
|
8
7
|
|
|
9
|
-
stories.addParameters({
|
|
10
|
-
readme: {
|
|
11
|
-
content: README,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
8
|
|
|
15
|
-
|
|
9
|
+
export const BannerActionStory = () => {
|
|
16
10
|
return (
|
|
17
11
|
<BannerAction
|
|
18
12
|
text={"Lorem ipsum dolor sit amet."}
|
|
@@ -22,4 +16,4 @@ stories.add("Banner Action", () => {
|
|
|
22
16
|
close={true}
|
|
23
17
|
/>
|
|
24
18
|
);
|
|
25
|
-
}
|
|
19
|
+
}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { BlogSection } from ".";
|
|
4
|
-
import README from "./README.md";
|
|
5
3
|
|
|
6
|
-
const
|
|
4
|
+
const meta = { title: "Design/Blog Section" };
|
|
5
|
+
export default meta;
|
|
7
6
|
|
|
8
|
-
stories.addParameters({
|
|
9
|
-
readme: {
|
|
10
|
-
content: README,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
7
|
|
|
14
8
|
const postList = [
|
|
15
9
|
{
|
|
@@ -63,10 +57,10 @@ const postList = [
|
|
|
63
57
|
},
|
|
64
58
|
];
|
|
65
59
|
|
|
66
|
-
|
|
60
|
+
export const BlogSectionStory = () => {
|
|
67
61
|
return (
|
|
68
62
|
<>
|
|
69
63
|
<BlogSection postList={postList} />
|
|
70
64
|
</>
|
|
71
65
|
);
|
|
72
|
-
}
|
|
66
|
+
}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React, { useState } from "react";
|
|
3
2
|
import { CarouselSection } from ".";
|
|
4
|
-
import README from "./README.md";
|
|
5
3
|
|
|
6
|
-
const
|
|
4
|
+
const meta = { title: "Design/Carousel Section" };
|
|
5
|
+
export default meta;
|
|
7
6
|
|
|
8
|
-
stories.addParameters({
|
|
9
|
-
readme: {
|
|
10
|
-
content: README,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
7
|
|
|
14
8
|
const slides = [
|
|
15
9
|
{
|
|
@@ -28,7 +22,7 @@ const slides = [
|
|
|
28
22
|
},
|
|
29
23
|
];
|
|
30
24
|
|
|
31
|
-
|
|
25
|
+
export const CarouselSectionStory = () => {
|
|
32
26
|
const [currentSlide, setCurrentSlide] = useState(0);
|
|
33
27
|
|
|
34
28
|
const handleSetCurrentSlide = (index: number) => {
|
|
@@ -49,4 +43,4 @@ stories.add("Carousel Section", () => {
|
|
|
49
43
|
/>
|
|
50
44
|
</>
|
|
51
45
|
);
|
|
52
|
-
}
|
|
46
|
+
}
|
|
@@ -3,18 +3,12 @@ import {
|
|
|
3
3
|
MapIcon,
|
|
4
4
|
UserGroupIcon,
|
|
5
5
|
} from "@heroicons/react/24/solid";
|
|
6
|
-
import { storiesOf } from "@storybook/react";
|
|
7
6
|
import React from "react";
|
|
8
7
|
import { DesignList } from ".";
|
|
9
|
-
import README from "./README.md";
|
|
10
8
|
|
|
11
|
-
const
|
|
9
|
+
const meta = { title: "Design/Design List" };
|
|
10
|
+
export default meta;
|
|
12
11
|
|
|
13
|
-
stories.addParameters({
|
|
14
|
-
readme: {
|
|
15
|
-
content: README,
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
12
|
|
|
19
13
|
const iconListContent = [
|
|
20
14
|
{
|
|
@@ -39,6 +33,6 @@ const iconListContent = [
|
|
|
39
33
|
},
|
|
40
34
|
];
|
|
41
35
|
|
|
42
|
-
|
|
36
|
+
export const DesignListStory = () => {
|
|
43
37
|
return <DesignList iconList={iconListContent} />;
|
|
44
|
-
}
|
|
38
|
+
}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { FAQContent, FaqData } from ".";
|
|
4
|
-
import README from "./README.md";
|
|
5
3
|
|
|
6
|
-
const
|
|
4
|
+
const meta = { title: "Design/FAQ Content" };
|
|
5
|
+
export default meta;
|
|
7
6
|
|
|
8
|
-
stories.addParameters({
|
|
9
|
-
readme: {
|
|
10
|
-
content: README,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
7
|
|
|
14
8
|
const faqList: FaqData[] = [
|
|
15
9
|
{
|
|
@@ -98,6 +92,6 @@ We provide **multiple support channels** to help you get assistance quickly.
|
|
|
98
92
|
},
|
|
99
93
|
];
|
|
100
94
|
|
|
101
|
-
|
|
95
|
+
export const FAQContentStory = () => {
|
|
102
96
|
return <FAQContent faqList={faqList} collapsible />;
|
|
103
|
-
}
|
|
97
|
+
}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React, { useState } from "react";
|
|
3
2
|
import { FileGrid, FileGridData } from ".";
|
|
4
|
-
import README from "./README.md";
|
|
5
3
|
|
|
6
|
-
const
|
|
4
|
+
const meta = { title: "Design/File Grid" };
|
|
5
|
+
export default meta;
|
|
7
6
|
|
|
8
|
-
stories.addParameters({
|
|
9
|
-
readme: {
|
|
10
|
-
content: README,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
7
|
|
|
14
|
-
|
|
8
|
+
export const FileGridStory = () => {
|
|
15
9
|
const [files] = useState<FileGridData[]>([
|
|
16
10
|
{
|
|
17
11
|
fileName: "Invoice December 2025",
|
|
@@ -107,4 +101,4 @@ stories.add("File Grid", () => {
|
|
|
107
101
|
</div>
|
|
108
102
|
</>
|
|
109
103
|
);
|
|
110
|
-
}
|
|
104
|
+
}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import { FolderIcon } from "@heroicons/react/20/solid";
|
|
2
|
-
import { storiesOf } from "@storybook/react";
|
|
3
2
|
import React, { useState } from "react";
|
|
4
3
|
import { FileViewer } from ".";
|
|
5
|
-
import README from "./README.md";
|
|
6
4
|
|
|
7
|
-
const
|
|
5
|
+
const meta = { title: "Design/File Viewer" };
|
|
6
|
+
export default meta;
|
|
8
7
|
|
|
9
|
-
stories.addParameters({
|
|
10
|
-
readme: {
|
|
11
|
-
content: README,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
8
|
|
|
15
|
-
|
|
9
|
+
export const FileViewerStory = () => {
|
|
16
10
|
const [file] = useState(
|
|
17
11
|
"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
|
|
18
12
|
);
|
|
@@ -25,4 +19,4 @@ stories.add("File Viewer", () => {
|
|
|
25
19
|
/>
|
|
26
20
|
</div>
|
|
27
21
|
);
|
|
28
|
-
}
|
|
22
|
+
}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { FooterSection } from ".";
|
|
4
|
-
import README from "./README.md";
|
|
5
3
|
|
|
6
|
-
const
|
|
4
|
+
const meta = { title: "Design/Footer Section" };
|
|
5
|
+
export default meta;
|
|
7
6
|
|
|
8
|
-
stories.addParameters({
|
|
9
|
-
readme: {
|
|
10
|
-
content: README,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
7
|
|
|
14
8
|
const footerList = [
|
|
15
9
|
{
|
|
@@ -49,7 +43,7 @@ const iconList = [
|
|
|
49
43
|
},
|
|
50
44
|
];
|
|
51
45
|
|
|
52
|
-
|
|
46
|
+
export const FooterSectionStory = () => {
|
|
53
47
|
const renderLogoCloud = () => {
|
|
54
48
|
let listView: any = [];
|
|
55
49
|
iconList.map((data) => {
|
|
@@ -81,4 +75,4 @@ stories.add("Footer Section", () => {
|
|
|
81
75
|
caption="© 2022 Blixify. All rights reserved."
|
|
82
76
|
/>
|
|
83
77
|
);
|
|
84
|
-
}
|
|
78
|
+
}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React, { useEffect } from "react";
|
|
3
2
|
import { GoogleReview } from ".";
|
|
4
|
-
import README from "./README.md";
|
|
5
3
|
|
|
6
|
-
const
|
|
4
|
+
const meta = { title: "Design/Google Review" };
|
|
5
|
+
export default meta;
|
|
7
6
|
|
|
8
|
-
stories.addParameters({
|
|
9
|
-
readme: {
|
|
10
|
-
content: README,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
7
|
|
|
14
|
-
|
|
8
|
+
export const GoogleReviewStory = () => {
|
|
15
9
|
const placeId = "ChIJr5AqerJPzDERZR0kfGP-MR4";
|
|
16
10
|
useEffect(() => {
|
|
17
11
|
try {
|
|
@@ -30,4 +24,4 @@ stories.add("Google Review", () => {
|
|
|
30
24
|
}, []);
|
|
31
25
|
|
|
32
26
|
return <GoogleReview placeId={placeId} minRatingScore={4} />;
|
|
33
|
-
}
|
|
27
|
+
}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { HeroSection } from ".";
|
|
4
3
|
import { Button } from "../../action/button";
|
|
5
|
-
import README from "./README.md";
|
|
6
4
|
|
|
7
|
-
const
|
|
5
|
+
const meta = { title: "Design/Hero Section" };
|
|
6
|
+
export default meta;
|
|
8
7
|
|
|
9
|
-
stories.addParameters({
|
|
10
|
-
readme: {
|
|
11
|
-
content: README,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
8
|
|
|
15
|
-
|
|
9
|
+
export const HeroSectionStory = () => {
|
|
16
10
|
return (
|
|
17
11
|
<>
|
|
18
12
|
<HeroSection
|
|
@@ -82,4 +76,4 @@ stories.add("Hero Section", () => {
|
|
|
82
76
|
/>
|
|
83
77
|
</>
|
|
84
78
|
);
|
|
85
|
-
}
|
|
79
|
+
}
|
|
@@ -3,18 +3,12 @@ import {
|
|
|
3
3
|
MapIcon,
|
|
4
4
|
UserGroupIcon,
|
|
5
5
|
} from "@heroicons/react/24/outline";
|
|
6
|
-
import { storiesOf } from "@storybook/react";
|
|
7
6
|
import React from "react";
|
|
8
7
|
import { IconList } from ".";
|
|
9
|
-
import README from "./README.md";
|
|
10
8
|
|
|
11
|
-
const
|
|
9
|
+
const meta = { title: "Design/Icon List" };
|
|
10
|
+
export default meta;
|
|
12
11
|
|
|
13
|
-
stories.addParameters({
|
|
14
|
-
readme: {
|
|
15
|
-
content: README,
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
12
|
|
|
19
13
|
const iconListContent = [
|
|
20
14
|
{
|
|
@@ -36,6 +30,6 @@ const iconListContent = [
|
|
|
36
30
|
icon: <UserGroupIcon className="w-6 h-6" />,
|
|
37
31
|
},
|
|
38
32
|
];
|
|
39
|
-
|
|
33
|
+
export const IconListStory = () => {
|
|
40
34
|
return <IconList iconList={iconListContent} />;
|
|
41
|
-
}
|
|
35
|
+
}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React, { useState } from "react";
|
|
3
2
|
import { ImageGallery } from ".";
|
|
4
|
-
import README from "./README.md";
|
|
5
3
|
|
|
6
|
-
const
|
|
4
|
+
const meta = { title: "Design/Image Gallery" };
|
|
5
|
+
export default meta;
|
|
7
6
|
|
|
8
|
-
stories.addParameters({
|
|
9
|
-
readme: {
|
|
10
|
-
content: README,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
7
|
|
|
14
8
|
const images = [
|
|
15
9
|
"https://images.unsplash.com/photo-1637141601395-bdca37a80f56?q=80&w=1780&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
@@ -22,7 +16,7 @@ const images = [
|
|
|
22
16
|
"https://images.unsplash.com/photo-1594117782204-5c398aa0e330?q=80&w=1780&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
23
17
|
];
|
|
24
18
|
|
|
25
|
-
|
|
19
|
+
export const ImageGalleryStory = () => {
|
|
26
20
|
const [currentImage, setCurrentImage] = useState(0);
|
|
27
21
|
|
|
28
22
|
const handleSetCurrentImage = (index: number) => {
|
|
@@ -42,4 +36,4 @@ stories.add("Image Gallery", () => {
|
|
|
42
36
|
/>
|
|
43
37
|
</div>
|
|
44
38
|
);
|
|
45
|
-
}
|
|
39
|
+
}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { ImageZoom } from ".";
|
|
4
|
-
import README from "./README.md";
|
|
5
3
|
|
|
6
|
-
const
|
|
4
|
+
const meta = { title: "Design/Image Zoom" };
|
|
5
|
+
export default meta;
|
|
7
6
|
|
|
8
|
-
stories.addParameters({
|
|
9
|
-
readme: {
|
|
10
|
-
content: README,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
7
|
|
|
14
8
|
const imgList = [
|
|
15
9
|
"https://images.unsplash.com/photo-1738253145927-c385871168d8?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
@@ -17,7 +11,7 @@ const imgList = [
|
|
|
17
11
|
"https://images.unsplash.com/photo-1736273927244-a58a647e491a?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3Dßß",
|
|
18
12
|
];
|
|
19
13
|
|
|
20
|
-
|
|
14
|
+
export const ImageZoomStory = () => {
|
|
21
15
|
return (
|
|
22
16
|
<div className="grid grid-cols-1 gap-6 md:grid-cols-3">
|
|
23
17
|
{imgList.map((eachImg, index) => (
|
|
@@ -27,4 +21,4 @@ stories.add("Image Zoom", () => {
|
|
|
27
21
|
))}
|
|
28
22
|
</div>
|
|
29
23
|
);
|
|
30
|
-
}
|
|
24
|
+
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { LeftContent } from ".";
|
|
4
3
|
import { Button } from "../../action/button";
|
|
5
|
-
import README from "./README.md";
|
|
6
4
|
|
|
7
|
-
const
|
|
5
|
+
const meta = { title: "Design/Left Content" };
|
|
6
|
+
export default meta;
|
|
8
7
|
|
|
9
|
-
stories.addParameters({
|
|
10
|
-
readme: {
|
|
11
|
-
content: README,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
8
|
|
|
15
9
|
const contentList = [
|
|
16
10
|
"MyVAC (Malaysia Vaccine Support Volunteers) is a dedicated volunteer management platform established to assist in the roll out of the government’s vaccination programme, by deploying willing individuals to be part of the vaccination team. This volunteer mobilisation program will be a crucial instrument to drive Malaysia’ vaccination campaign and achieve “Herd Immunity”.",
|
|
17
11
|
];
|
|
18
12
|
|
|
19
|
-
|
|
13
|
+
export const LeftContentStory = () => {
|
|
20
14
|
return (
|
|
21
15
|
<LeftContent
|
|
22
16
|
title="MyVac"
|
|
@@ -29,4 +23,4 @@ stories.add("Left Content", () => {
|
|
|
29
23
|
}
|
|
30
24
|
/>
|
|
31
25
|
);
|
|
32
|
-
}
|
|
26
|
+
}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { LogoCloud } from ".";
|
|
4
|
-
import README from "./README.md";
|
|
5
3
|
|
|
6
|
-
const
|
|
4
|
+
const meta = { title: "Design/Logo Cloud" };
|
|
5
|
+
export default meta;
|
|
7
6
|
|
|
8
|
-
stories.addParameters({
|
|
9
|
-
readme: {
|
|
10
|
-
content: README,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
7
|
|
|
14
8
|
const logoList = [
|
|
15
9
|
{
|
|
@@ -39,6 +33,6 @@ const logoList = [
|
|
|
39
33
|
},
|
|
40
34
|
];
|
|
41
35
|
|
|
42
|
-
|
|
36
|
+
export const LogoCloudStory = () => {
|
|
43
37
|
return <LogoCloud logoList={logoList} />;
|
|
44
|
-
}
|
|
38
|
+
}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React, { useState } from "react";
|
|
3
2
|
import { Onboarding } from ".";
|
|
4
3
|
import { Button } from "../../action/button";
|
|
5
|
-
import README from "./README.md";
|
|
6
4
|
|
|
7
|
-
const
|
|
5
|
+
const meta = { title: "Design/Onboarding" };
|
|
6
|
+
export default meta;
|
|
8
7
|
|
|
9
|
-
stories.addParameters({
|
|
10
|
-
readme: {
|
|
11
|
-
content: README,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
8
|
|
|
15
|
-
|
|
9
|
+
export const OnboardingStory = () => {
|
|
16
10
|
const titleClassName = "text-lg sm:text-2xl mb-2 sm:mb-4 font-bold";
|
|
17
11
|
const descClassName = "text-sm sm:text-base";
|
|
18
12
|
const [isMobile, setIsMobile] = useState(true);
|
|
@@ -110,4 +104,4 @@ stories.add("Onboarding", () => {
|
|
|
110
104
|
</div>
|
|
111
105
|
</>
|
|
112
106
|
);
|
|
113
|
-
}
|
|
107
|
+
}
|