blixify-ui-web-mcp 0.1.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/README.md +5 -0
- package/lib/components/action/button/README.md +75 -0
- package/lib/components/action/button/button.stories.tsx +138 -0
- package/lib/components/action/buttonGroup/README.md +79 -0
- package/lib/components/action/buttonGroup/buttonGroup.stories.tsx +104 -0
- package/lib/components/action/iconButton/README.md +39 -0
- package/lib/components/action/iconButton/iconButton.stories.tsx +22 -0
- package/lib/components/action/radioList/README.md +98 -0
- package/lib/components/action/radioList/radioList.stories.tsx +181 -0
- package/lib/components/action/slider/README.md +86 -0
- package/lib/components/action/slider/slider.stories.tsx +133 -0
- package/lib/components/action/textButton/README.md +34 -0
- package/lib/components/action/textButton/textButton.stories.tsx +16 -0
- package/lib/components/action/toggle/README.md +39 -0
- package/lib/components/action/toggle/toggle.stories.tsx +23 -0
- package/lib/components/advanced/collapse/README.md +106 -0
- package/lib/components/advanced/collapse/collapse.stories.tsx +165 -0
- package/lib/components/advanced/infoWindow/README.md +69 -0
- package/lib/components/advanced/infoWindow/infoWindow.stories.tsx +112 -0
- package/lib/components/advanced/popUp/README.md +95 -0
- package/lib/components/advanced/popUp/popUp.stories.tsx +189 -0
- package/lib/components/auth/bareSignIn/README.md +78 -0
- package/lib/components/auth/bareSignIn/bareSignIn.stories.tsx +141 -0
- package/lib/components/auth/bareSignUp/README.md +130 -0
- package/lib/components/auth/bareSignUp/bareSignUp.stories.tsx +159 -0
- package/lib/components/auth/signIn/README.md +53 -0
- package/lib/components/auth/signIn/signIn.stories.tsx +120 -0
- package/lib/components/auth/signUp/README.md +136 -0
- package/lib/components/auth/signUp/signUp.stories.tsx +193 -0
- package/lib/components/chart/README.md +13 -0
- package/lib/components/chart/areaChart/README.md +133 -0
- package/lib/components/chart/areaChart/areaChart.stories.tsx +199 -0
- package/lib/components/chart/barChart/README.md +193 -0
- package/lib/components/chart/barChart/barChart.stories.tsx +318 -0
- package/lib/components/chart/boxPlotChart/README.md +124 -0
- package/lib/components/chart/boxPlotChart/boxPlotChart.stories.tsx +104 -0
- package/lib/components/chart/bubbleChart/README.md +166 -0
- package/lib/components/chart/bubbleChart/bubbleChart.stories.tsx +144 -0
- package/lib/components/chart/card/README.md +107 -0
- package/lib/components/chart/card/card.stories.tsx +89 -0
- package/lib/components/chart/ganttChart/README.md +142 -0
- package/lib/components/chart/ganttChart/ganttChart.stories.tsx +138 -0
- package/lib/components/chart/heatmapChart/README.md +125 -0
- package/lib/components/chart/heatmapChart/heatmapChart.stories.tsx +106 -0
- package/lib/components/chart/lineChart/README.md +140 -0
- package/lib/components/chart/lineChart/lineChart.stories.tsx +152 -0
- package/lib/components/chart/pieChart/README.md +117 -0
- package/lib/components/chart/pieChart/pieChart.stories.tsx +180 -0
- package/lib/components/chart/polarAreaChart/README.md +126 -0
- package/lib/components/chart/polarAreaChart/polarAreaChart.stories.tsx +106 -0
- package/lib/components/chart/radarChart/README.md +57 -0
- package/lib/components/chart/radarChart/radarChart.stories.tsx +36 -0
- package/lib/components/chart/radialBar/README.md +152 -0
- package/lib/components/chart/radialBar/radialChart.stories.tsx +136 -0
- package/lib/components/chart/rangeBarChart/README.md +323 -0
- package/lib/components/chart/rangeBarChart/rangeBarChart.stories.tsx +208 -0
- package/lib/components/chart/statsCard/README.md +97 -0
- package/lib/components/chart/statsCard/statsCard.stories.tsx +183 -0
- package/lib/components/chart/treemapChart/README.md +142 -0
- package/lib/components/chart/treemapChart/treemapChart.stories.tsx +122 -0
- package/lib/components/chat/chatAnchor/README.md +113 -0
- package/lib/components/chat/chatAnchor/chatAnchor.stories.tsx +156 -0
- package/lib/components/chat/chatBase/README.md +223 -0
- package/lib/components/chat/chatBase/chatBase.stories.tsx +306 -0
- package/lib/components/chat/chatDashboard/README.md +161 -0
- package/lib/components/chat/chatDashboard/chatDashboard.stories.tsx +154 -0
- package/lib/components/data/dataGraph/README.md +13 -0
- package/lib/components/data/dataGraph/dataGraph.stories.tsx +84 -0
- package/lib/components/data/dataReference/README.md +62 -0
- package/lib/components/data/dataReference/dataReference.stories.tsx +53 -0
- package/lib/components/data/dataTemplate/README.md +903 -0
- package/lib/components/data/dataTemplate/dataModule.stories.tsx +196 -0
- package/lib/components/data/dataTemplate/dataTemplate.stories.tsx +337 -0
- package/lib/components/data/dataWrapper/README.md +1077 -0
- package/lib/components/data/dataWrapper/dataWrapper.stories.tsx +831 -0
- package/lib/components/data/queryForm/README.md +56 -0
- package/lib/components/data/queryForm/queryForm.stories.tsx +85 -0
- package/lib/components/data/readQuery/README.md +282 -0
- package/lib/components/data/readQuery/readQuery.stories.tsx +256 -0
- package/lib/components/data/readQueryHoc/README.md +89 -0
- package/lib/components/data/readQueryHoc/readQueryHoc.stories.tsx +33 -0
- package/lib/components/data/writeQuery/README.md +178 -0
- package/lib/components/data/writeQuery/writeQuery.stories.tsx +209 -0
- package/lib/components/design/actionSection/README.md +47 -0
- package/lib/components/design/actionSection/actionSection.stories.tsx +74 -0
- package/lib/components/design/banner/README.md +43 -0
- package/lib/components/design/banner/banner.stories.tsx +34 -0
- package/lib/components/design/bannerAction/README.md +44 -0
- package/lib/components/design/bannerAction/bannerAction.stories.tsx +25 -0
- package/lib/components/design/blogSection/README.md +111 -0
- package/lib/components/design/blogSection/blogSection.stories.tsx +72 -0
- package/lib/components/design/carouselSection/README.md +82 -0
- package/lib/components/design/carouselSection/carouselSection.stories.tsx +52 -0
- package/lib/components/design/designList/README.md +60 -0
- package/lib/components/design/designList/designList.stories.tsx +44 -0
- package/lib/components/design/faq/README.md +121 -0
- package/lib/components/design/faq/faq.stories.tsx +103 -0
- package/lib/components/design/fileGrid/README.md +87 -0
- package/lib/components/design/fileGrid/fileGrid.stories.tsx +110 -0
- package/lib/components/design/fileViewer/README.md +40 -0
- package/lib/components/design/fileViewer/fileViewer.stories.tsx +28 -0
- package/lib/components/design/footerSection/README.md +62 -0
- package/lib/components/design/footerSection/footerSection.stories.tsx +84 -0
- package/lib/components/design/googleReview/README.md +45 -0
- package/lib/components/design/googleReview/googleReview.stories.tsx +33 -0
- package/lib/components/design/heroSection/README.md +48 -0
- package/lib/components/design/heroSection/heroSection.stories.tsx +85 -0
- package/lib/components/design/iconList/README.md +60 -0
- package/lib/components/design/iconList/iconList.stories.tsx +41 -0
- package/lib/components/design/imageGallery/README.md +56 -0
- package/lib/components/design/imageGallery/imageGallery.stories.tsx +45 -0
- package/lib/components/design/imageZoom/README.md +47 -0
- package/lib/components/design/imageZoom/imageZoom.stories.tsx +30 -0
- package/lib/components/design/leftContent/README.md +47 -0
- package/lib/components/design/leftContent/leftContent.stories.tsx +32 -0
- package/lib/components/design/logoCloud/README.md +42 -0
- package/lib/components/design/logoCloud/logoCloud.stories.tsx +44 -0
- package/lib/components/design/onboarding/README.md +100 -0
- package/lib/components/design/onboarding/onboarding.stories.tsx +113 -0
- package/lib/components/design/pricing/README.md +112 -0
- package/lib/components/design/pricing/pricing.stories.tsx +86 -0
- package/lib/components/design/rightContent/README.md +47 -0
- package/lib/components/design/rightContent/rightContent.stories.tsx +32 -0
- package/lib/components/design/sectionList/README.md +51 -0
- package/lib/components/design/sectionList/sectionList.stories.tsx +35 -0
- package/lib/components/design/teams/README.md +62 -0
- package/lib/components/design/teams/teams.stories.tsx +61 -0
- package/lib/components/display/alert/README.md +82 -0
- package/lib/components/display/alert/alert.stories.tsx +71 -0
- package/lib/components/display/calendar/README.md +113 -0
- package/lib/components/display/calendar/calendar.stories.tsx +159 -0
- package/lib/components/display/clipboard/README.md +36 -0
- package/lib/components/display/clipboard/clipboard.stories.tsx +32 -0
- package/lib/components/display/detailList/README.md +61 -0
- package/lib/components/display/detailList/detailList.stories.tsx +131 -0
- package/lib/components/display/drawer/README.md +74 -0
- package/lib/components/display/drawer/drawer.stories.tsx +66 -0
- package/lib/components/display/emptyState/README.md +38 -0
- package/lib/components/display/emptyState/emptyState.stories.tsx +22 -0
- package/lib/components/display/feeds/README.md +80 -0
- package/lib/components/display/feeds/feeds.stories.tsx +75 -0
- package/lib/components/display/flexTable/README.md +160 -0
- package/lib/components/display/flexTable/flexTable.stories.tsx +313 -0
- package/lib/components/display/grid/README.md +121 -0
- package/lib/components/display/grid/grid.stories.tsx +234 -0
- package/lib/components/display/kanban/README.md +78 -0
- package/lib/components/display/kanban/kanban.stories.tsx +133 -0
- package/lib/components/display/list/README.md +109 -0
- package/lib/components/display/list/list.stories.tsx +188 -0
- package/lib/components/display/loading/README.md +25 -0
- package/lib/components/display/loading/loading.stories.tsx +15 -0
- package/lib/components/display/mapView/README.md +99 -0
- package/lib/components/display/mapView/mapView.stories.tsx +225 -0
- package/lib/components/display/modal/README.md +43 -0
- package/lib/components/display/modal/modal.stories.tsx +81 -0
- package/lib/components/display/notification/README.md +43 -0
- package/lib/components/display/notification/notification.stories.tsx +30 -0
- package/lib/components/display/progress/README.md +25 -0
- package/lib/components/display/progress/progress.stories.tsx +15 -0
- package/lib/components/display/stepper/README.md +96 -0
- package/lib/components/display/stepper/stepper.stories.tsx +175 -0
- package/lib/components/display/table/README.md +176 -0
- package/lib/components/display/table/table.stories.tsx +330 -0
- package/lib/components/display/tag/README.md +74 -0
- package/lib/components/display/tag/tag.stories.tsx +79 -0
- package/lib/components/input/address/README.md +132 -0
- package/lib/components/input/address/address.stories.tsx +147 -0
- package/lib/components/input/canvas/README.md +131 -0
- package/lib/components/input/canvas/canvas.stories.tsx +165 -0
- package/lib/components/input/checkbox/README.md +61 -0
- package/lib/components/input/checkbox/checkbox.stories.tsx +30 -0
- package/lib/components/input/datePicker/README.md +124 -0
- package/lib/components/input/datePicker/datePicker.stories.tsx +197 -0
- package/lib/components/input/form/README.md +55 -0
- package/lib/components/input/form/form.stories.tsx +143 -0
- package/lib/components/input/markdown/README.md +146 -0
- package/lib/components/input/markdown/markdown.stories.tsx +40 -0
- package/lib/components/input/monthYearPicker/README.md +69 -0
- package/lib/components/input/monthYearPicker/monthYearPicker.stories.tsx +47 -0
- package/lib/components/input/netPromoterScore/README.md +52 -0
- package/lib/components/input/netPromoterScore/netPromoterScore.stories.tsx +30 -0
- package/lib/components/input/rating/README.md +51 -0
- package/lib/components/input/rating/rating.stories.tsx +30 -0
- package/lib/components/input/select/README.md +108 -0
- package/lib/components/input/select/select.stories.tsx +286 -0
- package/lib/components/input/signature/README.md +106 -0
- package/lib/components/input/signature/signature.stories.tsx +188 -0
- package/lib/components/input/textArea/README.md +55 -0
- package/lib/components/input/textArea/textArea.stories.tsx +30 -0
- package/lib/components/input/textInput/README.md +81 -0
- package/lib/components/input/textInput/textinput.stories.tsx +231 -0
- package/lib/components/input/uploadInput/README.md +134 -0
- package/lib/components/input/uploadInput/uploadInput.stories.tsx +193 -0
- package/lib/components/navigation/bars/README.md +40 -0
- package/lib/components/navigation/bars/bars.stories.tsx +85 -0
- package/lib/components/navigation/bottomTab/README.md +53 -0
- package/lib/components/navigation/bottomTab/bottomTab.stories.tsx +32 -0
- package/lib/components/navigation/breadcrumb/README.md +48 -0
- package/lib/components/navigation/breadcrumb/breadcrumb.stories.tsx +27 -0
- package/lib/components/navigation/header/README.md +149 -0
- package/lib/components/navigation/header/header.stories.tsx +107 -0
- package/lib/components/navigation/leftNav/README.md +91 -0
- package/lib/components/navigation/leftNav/leftNav.stories.tsx +106 -0
- package/lib/components/navigation/tabs/README.md +75 -0
- package/lib/components/navigation/tabs/tabs.stories.tsx +60 -0
- package/lib/components/structure/column/README.md +40 -0
- package/lib/components/structure/column/column.stories.tsx +26 -0
- package/lib/components/structure/container/README.md +34 -0
- package/lib/components/structure/container/container.stories.tsx +19 -0
- package/lib/components/structure/link/README.md +55 -0
- package/lib/components/structure/link/link.stories.tsx +30 -0
- package/lib/components/structure/text/README.md +42 -0
- package/lib/components/structure/text/text.stories.tsx +39 -0
- package/lib/components/template/authPage/authPage.stories.tsx +68 -0
- package/lib/components/template/landingPage/landingPage.stories.tsx +288 -0
- package/lib/components/template/productListing/productListing.stories.tsx +297 -0
- package/lib/components/template/productOverview/productOverview.stories.tsx +194 -0
- package/lib/components/template/shoppingCart/shoppingCart.stories.tsx +252 -0
- package/lib/components/template/userHomePage/userHomePage.stories.tsx +605 -0
- package/lib/components/template/userRankingDashboard/userRankingDashboard.stories.tsx +481 -0
- package/lib/mcp/server.d.ts +2 -0
- package/lib/mcp/server.d.ts.map +1 -0
- package/lib/mcp/server.js +33 -0
- package/lib/mcp/server.js.map +1 -0
- package/lib/mcp/tools/getBackendComponent.d.ts +13 -0
- package/lib/mcp/tools/getBackendComponent.d.ts.map +1 -0
- package/lib/mcp/tools/getBackendComponent.js +119 -0
- package/lib/mcp/tools/getBackendComponent.js.map +1 -0
- package/lib/mcp/tools/getComponent.d.ts +17 -0
- package/lib/mcp/tools/getComponent.d.ts.map +1 -0
- package/lib/mcp/tools/getComponent.js +118 -0
- package/lib/mcp/tools/getComponent.js.map +1 -0
- package/lib/mcp/tools/listComponents.d.ts +13 -0
- package/lib/mcp/tools/listComponents.d.ts.map +1 -0
- package/lib/mcp/tools/listComponents.js +113 -0
- package/lib/mcp/tools/listComponents.js.map +1 -0
- package/lib/mcp/tools/listTemplates.d.ts +13 -0
- package/lib/mcp/tools/listTemplates.d.ts.map +1 -0
- package/lib/mcp/tools/listTemplates.js +68 -0
- package/lib/mcp/tools/listTemplates.js.map +1 -0
- package/lib/mcp/tools/suggestTemplate.d.ts +17 -0
- package/lib/mcp/tools/suggestTemplate.d.ts.map +1 -0
- package/lib/mcp/tools/suggestTemplate.js +212 -0
- package/lib/mcp/tools/suggestTemplate.js.map +1 -0
- package/package.json +23 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { storiesOf } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { HeroSection } from ".";
|
|
4
|
+
import { Button } from "../../action/button";
|
|
5
|
+
import README from "./README.md";
|
|
6
|
+
|
|
7
|
+
const stories = storiesOf("Design", module);
|
|
8
|
+
|
|
9
|
+
stories.addParameters({
|
|
10
|
+
readme: {
|
|
11
|
+
content: README,
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
stories.add("Hero Section", () => {
|
|
16
|
+
return (
|
|
17
|
+
<>
|
|
18
|
+
<HeroSection
|
|
19
|
+
size="small"
|
|
20
|
+
title="Blixify UI Web"
|
|
21
|
+
content={
|
|
22
|
+
"A total of 4,795 flood-prone locations nationwide have been identified by the Fire and Rescue Department (JBPM). \n \n The country is currently in the northeast monsoon transition season, with heavy rains and floods in several states, including the west coast of Peninsular Malaysia, Sabah and Sarawak, said its operations director Datuk Ahmad Izram Osman (The Star, 2023). \n \n Minister in the Prime Minister’s Department (Sabah, Sarawak, and Special Functions) Datuk Armizan Mohd Ali directed Nadma to focus on 89 districts identified as flood disaster hotspots, particularly in Kelantan, Terengganu, Pahang, and Johor, ahead of the MTL. \n \n Malay Mail (2023) reports, this was because all the districts were previously affected by flood disasters during the 2022/2023 MTL, and 77 of them experienced recurring flood problems. \n \n Image displayed taken from NST (2023) https://www.nst.com.my/news/nation/2023/09/958403/met-dept-warning-bad-weather-northern-region-starting-tomorrow \n \n Source: \n \n https://www.thestar.com.my/news/nation/2023/09/27/4795-flood-prone-spots-identified \n \n https://www.malaymail.com/news/malaysia/2023/09/26/floods-take-immediate-measures-for-upcoming-north-east-monsoon-nadma-tells-district-disaster-management-committees/93073"
|
|
23
|
+
}
|
|
24
|
+
image="https://blixify.co/static/portfolio_qcat-fc572be184081e2793a9856b6ec58dfe.webp"
|
|
25
|
+
callToAction={
|
|
26
|
+
<div>
|
|
27
|
+
<Button text="Sign Up" type="normal" size="small" />
|
|
28
|
+
</div>
|
|
29
|
+
}
|
|
30
|
+
/>
|
|
31
|
+
<HeroSection
|
|
32
|
+
size="small"
|
|
33
|
+
title="Blixify UI Web"
|
|
34
|
+
content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
|
35
|
+
image="https://blixify.co/static/portfolio_qcat-fc572be184081e2793a9856b6ec58dfe.webp"
|
|
36
|
+
design="split"
|
|
37
|
+
callToAction={
|
|
38
|
+
<div>
|
|
39
|
+
<Button text="Sign Up" type="normal" size="small" />
|
|
40
|
+
</div>
|
|
41
|
+
}
|
|
42
|
+
/>
|
|
43
|
+
<HeroSection
|
|
44
|
+
size="small"
|
|
45
|
+
title="Blixify UI Web"
|
|
46
|
+
content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
|
47
|
+
image="https://blixify.co/static/portfolio_qcat-fc572be184081e2793a9856b6ec58dfe.webp"
|
|
48
|
+
design="angled"
|
|
49
|
+
callToAction={
|
|
50
|
+
<div>
|
|
51
|
+
<Button text="Sign Up" type="normal" size="small" />
|
|
52
|
+
</div>
|
|
53
|
+
}
|
|
54
|
+
/>
|
|
55
|
+
<HeroSection
|
|
56
|
+
size="small"
|
|
57
|
+
title="Blixify UI Web"
|
|
58
|
+
content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
|
59
|
+
image="https://blixify.co/static/portfolio_qcat-fc572be184081e2793a9856b6ec58dfe.webp"
|
|
60
|
+
design="box"
|
|
61
|
+
callToAction={
|
|
62
|
+
<div>
|
|
63
|
+
<Button text="Sign Up" type="normal" size="small" />
|
|
64
|
+
</div>
|
|
65
|
+
}
|
|
66
|
+
/>
|
|
67
|
+
<HeroSection
|
|
68
|
+
size="large"
|
|
69
|
+
title="Premium Audio, Delivered"
|
|
70
|
+
content="Explore our curated collection of top-tier headphones. Free shipping on orders above RM 500."
|
|
71
|
+
backgroundImage="https://images.unsplash.com/photo-1487215078519-e21cc028cb29?w=1600&h=900&fit=crop&q=80"
|
|
72
|
+
backgroundPosition="center"
|
|
73
|
+
callToAction={
|
|
74
|
+
<div>
|
|
75
|
+
<Button text="Shop Now" type="normal" size="small" />
|
|
76
|
+
</div>
|
|
77
|
+
}
|
|
78
|
+
backgroundImageOnly
|
|
79
|
+
darkMode
|
|
80
|
+
className="mt-6"
|
|
81
|
+
darkOverlay
|
|
82
|
+
/>
|
|
83
|
+
</>
|
|
84
|
+
);
|
|
85
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Icon List
|
|
2
|
+
|
|
3
|
+
<!-- STORY -->
|
|
4
|
+
|
|
5
|
+
<hr>
|
|
6
|
+
|
|
7
|
+
Icon list to display features/use cases
|
|
8
|
+
|
|
9
|
+
##### Import
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { IconList } from "blixify-ui-web/lib";
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### Usage
|
|
16
|
+
|
|
17
|
+
```jsx
|
|
18
|
+
const iconListContent = [
|
|
19
|
+
{
|
|
20
|
+
name: "Registration",
|
|
21
|
+
content:
|
|
22
|
+
"Fill in your contact information and account credentials. Examples of information that we do collect are such as occupation details and physical address. This information is collected by MySukarela to match you with volunteering tasks that are personalised to you.",
|
|
23
|
+
icon: <ArrowDownOnSquareStackIcon className="w-6 h-6" />,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "Browse For Projects",
|
|
27
|
+
content:
|
|
28
|
+
"Search for volunteering projects that are nearby to you. You can view all the available slots for volunteering. Book an available slot to confirm your participation in volunteering.",
|
|
29
|
+
icon: <MapIcon className="w-6 h-6" />,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "Volunteer and Deliver",
|
|
33
|
+
content:
|
|
34
|
+
"Additional information will be sent to your email address if there are any rules/procedures by the organisations (NGO) that you are volunteering for. Feel free to reach out our customer support if you have any questions.",
|
|
35
|
+
icon: <UserGroupIcon className="w-6 h-6" />,
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
return <IconList iconList={iconListContent} />;
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
##### Required props
|
|
43
|
+
|
|
44
|
+
| Name | Type | Description |
|
|
45
|
+
| ---------- | ----------- | --------------- |
|
|
46
|
+
| `iconList` | `Icon Data` | Icon Data Class |
|
|
47
|
+
|
|
48
|
+
##### Optional props
|
|
49
|
+
|
|
50
|
+
| Name | Type | Default | Description |
|
|
51
|
+
| ----------- | -------- | -------------- | ----------- |
|
|
52
|
+
| `className` | `string` | Tailwind class | |
|
|
53
|
+
|
|
54
|
+
##### Icon Data Class
|
|
55
|
+
|
|
56
|
+
| Name | Type | Description |
|
|
57
|
+
| --------- | --------------- | ----------- |
|
|
58
|
+
| `name` | `string` | Title |
|
|
59
|
+
| `content` | `string` | Description |
|
|
60
|
+
| `icon` | `React Element` | Icon |
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ArrowDownOnSquareStackIcon,
|
|
3
|
+
MapIcon,
|
|
4
|
+
UserGroupIcon,
|
|
5
|
+
} from "@heroicons/react/24/outline";
|
|
6
|
+
import { storiesOf } from "@storybook/react";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import { IconList } from ".";
|
|
9
|
+
import README from "./README.md";
|
|
10
|
+
|
|
11
|
+
const stories = storiesOf("Design", module);
|
|
12
|
+
|
|
13
|
+
stories.addParameters({
|
|
14
|
+
readme: {
|
|
15
|
+
content: README,
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const iconListContent = [
|
|
20
|
+
{
|
|
21
|
+
name: "Registration",
|
|
22
|
+
content:
|
|
23
|
+
"Fill in your contact information and account credentials. Examples of information that we do collect are such as occupation details and physical address. This information is collected by MySukarela to match you with volunteering tasks that are personalised to you.",
|
|
24
|
+
icon: <ArrowDownOnSquareStackIcon className="w-6 h-6" />,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: "Browse For Projects",
|
|
28
|
+
content:
|
|
29
|
+
"Search for volunteering projects that are nearby to you. You can view all the available slots for volunteering. Book an available slot to confirm your participation in volunteering.",
|
|
30
|
+
icon: <MapIcon className="w-6 h-6" />,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "Volunteer and Deliver",
|
|
34
|
+
content:
|
|
35
|
+
"Additional information will be sent to your email address if there are any rules/procedures by the organisations (NGO) that you are volunteering for. Feel free to reach out our customer support if you have any questions.",
|
|
36
|
+
icon: <UserGroupIcon className="w-6 h-6" />,
|
|
37
|
+
},
|
|
38
|
+
];
|
|
39
|
+
stories.add("Icon List", () => {
|
|
40
|
+
return <IconList iconList={iconListContent} />;
|
|
41
|
+
});
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Image Gallery
|
|
2
|
+
|
|
3
|
+
<!-- STORY -->
|
|
4
|
+
|
|
5
|
+
<hr>
|
|
6
|
+
|
|
7
|
+
Image Gallery to display a collection of images
|
|
8
|
+
|
|
9
|
+
##### Import
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { ImageGallery } from "blixify-ui-web/lib";
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### Usage
|
|
16
|
+
|
|
17
|
+
```jsx
|
|
18
|
+
const images = [];
|
|
19
|
+
|
|
20
|
+
const [currentImage, setCurrentImage] = useState(0);
|
|
21
|
+
|
|
22
|
+
const handleSetCurrentImage = (index: number) => {
|
|
23
|
+
setCurrentImage(index);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
<ImageGallery
|
|
27
|
+
imageGallery={images}
|
|
28
|
+
currentImage={currentImage}
|
|
29
|
+
handleSetCurrentImage={handleSetCurrentImage}
|
|
30
|
+
/>;
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
##### Required props
|
|
34
|
+
|
|
35
|
+
| Name | Type | Description |
|
|
36
|
+
| ----------------------- | -------------------- | ----------------------------- |
|
|
37
|
+
| `imageGallery` | `ImageGalleryData[]` | Image Gallery Data List Class |
|
|
38
|
+
| `currentImage` | `number` | Current Image Index |
|
|
39
|
+
| `handleSetCurrentImage` | `function` | `(index:number) => {}` |
|
|
40
|
+
|
|
41
|
+
##### Optional props
|
|
42
|
+
|
|
43
|
+
| Name | Type | Default | Description |
|
|
44
|
+
| ------------------------- | ---------------------------------------------------- | --------------------------- | -------------------------------- |
|
|
45
|
+
| `currentImageClassName` | `string` | `block w-full object-cover` | set selected image style |
|
|
46
|
+
| `imageGalleryClassName` | `string` | `grid grid-cols-5 h-full` | set image gallery style |
|
|
47
|
+
| `eachImageClassName` | `string` | `grid grid-cols-5 h-full` | set gallery each image style |
|
|
48
|
+
| `autoImageTransition` | `boolean` | | Image changes if set to true |
|
|
49
|
+
| `imageTransitionDuration` | `number` | | Image transition duration |
|
|
50
|
+
| `zoomSettings` | `{ enableZoom: boolean; enableDownload?: boolean; }` | | Enable zoom, rotate and download |
|
|
51
|
+
|
|
52
|
+
##### Photo Slide Data Class
|
|
53
|
+
|
|
54
|
+
| Name | Type | Description |
|
|
55
|
+
| ---------- | -------- | ------------------ |
|
|
56
|
+
| `imageUrl` | `string` | Image Source / URL |
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { storiesOf } from "@storybook/react";
|
|
2
|
+
import React, { useState } from "react";
|
|
3
|
+
import { ImageGallery } from ".";
|
|
4
|
+
import README from "./README.md";
|
|
5
|
+
|
|
6
|
+
const stories = storiesOf("Design", module);
|
|
7
|
+
|
|
8
|
+
stories.addParameters({
|
|
9
|
+
readme: {
|
|
10
|
+
content: README,
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const images = [
|
|
15
|
+
"https://images.unsplash.com/photo-1637141601395-bdca37a80f56?q=80&w=1780&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
16
|
+
"https://images.unsplash.com/photo-1580214475396-7ee80e8ce03c?q=80&w=3020&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
17
|
+
"https://images.unsplash.com/photo-1635774682661-b99adeaba4c6?q=80&w=2980&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
18
|
+
"https://images.unsplash.com/photo-1594117782204-5c398aa0e330?q=80&w=1780&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
19
|
+
"https://images.unsplash.com/photo-1637141601395-bdca37a80f56?q=80&w=1780&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
20
|
+
"https://images.unsplash.com/photo-1580214475396-7ee80e8ce03c?q=80&w=3020&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
21
|
+
"https://images.unsplash.com/photo-1635774682661-b99adeaba4c6?q=80&w=2980&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
22
|
+
"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
|
+
];
|
|
24
|
+
|
|
25
|
+
stories.add("Image Gallery", () => {
|
|
26
|
+
const [currentImage, setCurrentImage] = useState(0);
|
|
27
|
+
|
|
28
|
+
const handleSetCurrentImage = (index: number) => {
|
|
29
|
+
setCurrentImage(index);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<div>
|
|
34
|
+
<ImageGallery
|
|
35
|
+
imageGallery={images}
|
|
36
|
+
currentImage={currentImage}
|
|
37
|
+
currentImageClassName="h-80 w-full"
|
|
38
|
+
eachImageClassName="h-40 w-40"
|
|
39
|
+
imageTransitionDuration={4000}
|
|
40
|
+
handleSetCurrentImage={handleSetCurrentImage}
|
|
41
|
+
autoImageTransition={false}
|
|
42
|
+
/>
|
|
43
|
+
</div>
|
|
44
|
+
);
|
|
45
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Image Zoom
|
|
2
|
+
|
|
3
|
+
<!-- STORY -->
|
|
4
|
+
|
|
5
|
+
<hr>
|
|
6
|
+
|
|
7
|
+
Image container that enables zoom, pan and pinch
|
|
8
|
+
|
|
9
|
+
##### Import
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { ImageZoom } from "blixify-ui-web/lib";
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### Usage
|
|
16
|
+
|
|
17
|
+
```jsx
|
|
18
|
+
const imgList = [
|
|
19
|
+
"https://images.unsplash.com/photo-1738253145927-c385871168d8?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
20
|
+
"https://images.unsplash.com/photo-1738468070469-4d92158ffa55?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
21
|
+
"https://images.unsplash.com/photo-1736273927244-a58a647e491a?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3Dßß",
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<div className="grid grid-cols-3 gap-6">
|
|
26
|
+
{imgList.map((eachImg, index) => (
|
|
27
|
+
<ImageZoom key={index} image={eachImg} />
|
|
28
|
+
))}
|
|
29
|
+
</div>
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
##### Required props
|
|
34
|
+
|
|
35
|
+
| Name | Type | Description |
|
|
36
|
+
| ------- | -------- | ----------- |
|
|
37
|
+
| `image` | `string` | Image URL |
|
|
38
|
+
|
|
39
|
+
##### Optional props
|
|
40
|
+
|
|
41
|
+
| Name | Type | Description |
|
|
42
|
+
| --------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
|
|
43
|
+
| `className` | `string` | Tailwind class |
|
|
44
|
+
| `disableZoomOnScroll` | `boolean` | Disable zooming while scrolling |
|
|
45
|
+
| `disableDownload` | `boolean` | Disable download image |
|
|
46
|
+
| `imgObjectContain` | `boolean` | If `true`, image will be `objectFit: "contain"`. By default, image is `objectFit: "cover"` |
|
|
47
|
+
| `checkbox` | `{enable: boolean, checked: boolean, onCheck: (checked: boolean, imageUri: string)}` | Enable checkbox and callback function for checkbox. |
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { storiesOf } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ImageZoom } from ".";
|
|
4
|
+
import README from "./README.md";
|
|
5
|
+
|
|
6
|
+
const stories = storiesOf("Design", module);
|
|
7
|
+
|
|
8
|
+
stories.addParameters({
|
|
9
|
+
readme: {
|
|
10
|
+
content: README,
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const imgList = [
|
|
15
|
+
"https://images.unsplash.com/photo-1738253145927-c385871168d8?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
16
|
+
"https://images.unsplash.com/photo-1738468070469-4d92158ffa55?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
17
|
+
"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
|
+
];
|
|
19
|
+
|
|
20
|
+
stories.add("Image Zoom", () => {
|
|
21
|
+
return (
|
|
22
|
+
<div className="grid grid-cols-1 gap-6 md:grid-cols-3">
|
|
23
|
+
{imgList.map((eachImg, index) => (
|
|
24
|
+
<div className="">
|
|
25
|
+
<ImageZoom key={index} image={eachImg} />
|
|
26
|
+
</div>
|
|
27
|
+
))}
|
|
28
|
+
</div>
|
|
29
|
+
);
|
|
30
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Left Content
|
|
2
|
+
|
|
3
|
+
<!-- STORY -->
|
|
4
|
+
|
|
5
|
+
<hr>
|
|
6
|
+
|
|
7
|
+
Component to display content with pictures on left
|
|
8
|
+
|
|
9
|
+
##### Import
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { LeftContent } from "blixify-ui-web/lib";
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### Usage
|
|
16
|
+
|
|
17
|
+
```jsx
|
|
18
|
+
<LeftContent
|
|
19
|
+
title="MyVac"
|
|
20
|
+
contentList={contentList}
|
|
21
|
+
image="https://www.myvac.com.my/static/media/home_about.012e4937.webp"
|
|
22
|
+
callToAction={
|
|
23
|
+
<div>
|
|
24
|
+
<Button type="normal" text="Learn More" />
|
|
25
|
+
</div>
|
|
26
|
+
}
|
|
27
|
+
/>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
##### Required props
|
|
31
|
+
|
|
32
|
+
| Name | Type | Description |
|
|
33
|
+
| ------------- | -------- | ----------------------- |
|
|
34
|
+
| `title` | `string` | Title |
|
|
35
|
+
| `count` | `number` | Content of the card |
|
|
36
|
+
| `description` | `string` | Description of the card |
|
|
37
|
+
|
|
38
|
+
##### Optional props
|
|
39
|
+
|
|
40
|
+
| Name | Type | Default | Description |
|
|
41
|
+
| -------------- | ---------------- | ------- | ----------------------------- |
|
|
42
|
+
| `image` | `string` | "" | Image Url |
|
|
43
|
+
| `contentList` | `string[]` | "" | |
|
|
44
|
+
| `imgContain` | `boolean` | | Use image as contain or cover |
|
|
45
|
+
| `imageElement` | `React Element` | "" | Import image as element |
|
|
46
|
+
| `callToAction` | `React Element` | "" | |
|
|
47
|
+
| `className` | `tailwind class` | "" | |
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { storiesOf } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { LeftContent } from ".";
|
|
4
|
+
import { Button } from "../../action/button";
|
|
5
|
+
import README from "./README.md";
|
|
6
|
+
|
|
7
|
+
const stories = storiesOf("Design", module);
|
|
8
|
+
|
|
9
|
+
stories.addParameters({
|
|
10
|
+
readme: {
|
|
11
|
+
content: README,
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const contentList = [
|
|
16
|
+
"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
|
+
];
|
|
18
|
+
|
|
19
|
+
stories.add("Left Content", () => {
|
|
20
|
+
return (
|
|
21
|
+
<LeftContent
|
|
22
|
+
title="MyVac"
|
|
23
|
+
contentList={contentList}
|
|
24
|
+
image="https://www.myvac.com.my/static/media/home_about.012e4937.webp"
|
|
25
|
+
callToAction={
|
|
26
|
+
<div>
|
|
27
|
+
<Button type="normal" text="Learn More" />
|
|
28
|
+
</div>
|
|
29
|
+
}
|
|
30
|
+
/>
|
|
31
|
+
);
|
|
32
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Logo Cloud
|
|
2
|
+
|
|
3
|
+
<!-- STORY -->
|
|
4
|
+
|
|
5
|
+
<hr>
|
|
6
|
+
|
|
7
|
+
Logo cloud to display partners or media mentions
|
|
8
|
+
|
|
9
|
+
##### Import
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { LogoCloud } from "blixify-ui-web/lib";
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### Usage
|
|
16
|
+
|
|
17
|
+
```jsx
|
|
18
|
+
<LogoCloud logoList={logoList} />
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
##### Required props
|
|
22
|
+
|
|
23
|
+
| Name | Type | Description |
|
|
24
|
+
| --------------- | ---------------------- | ----------- |
|
|
25
|
+
| `logoList` | `Logo Data Class List` | |
|
|
26
|
+
| `imgClassName` | `Image Class Names` | |
|
|
27
|
+
| `gridClassName` | `Grid Class Names` | |
|
|
28
|
+
|
|
29
|
+
##### Optional props
|
|
30
|
+
|
|
31
|
+
| Name | Type | Default | Description |
|
|
32
|
+
| ----------- | ------------------ | ---------------------------------------------- | ----------------------- |
|
|
33
|
+
| `current` | `boolean` | false | Whether page is current |
|
|
34
|
+
| `linkProps` | `Link Props Class` | Refer to Link Component for more documentation | |
|
|
35
|
+
|
|
36
|
+
##### Logo Data Class
|
|
37
|
+
|
|
38
|
+
| Name | Type | Description |
|
|
39
|
+
| ------ | ----------- | ----------- |
|
|
40
|
+
| `src` | `Logo Src` | |
|
|
41
|
+
| `alt` | `Logo Alt` | |
|
|
42
|
+
| `href` | `Logo Href` | |
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { storiesOf } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { LogoCloud } from ".";
|
|
4
|
+
import README from "./README.md";
|
|
5
|
+
|
|
6
|
+
const stories = storiesOf("Design", module);
|
|
7
|
+
|
|
8
|
+
stories.addParameters({
|
|
9
|
+
readme: {
|
|
10
|
+
content: README,
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const logoList = [
|
|
15
|
+
{
|
|
16
|
+
src: "https://tailwindui.com/img/logos/tuple-logo-gray-400.svg",
|
|
17
|
+
alt: "Tuple",
|
|
18
|
+
href: "https://blixify.co/",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
src: "https://tailwindui.com/img/logos/mirage-logo-gray-400.svg",
|
|
22
|
+
alt: "Mirage",
|
|
23
|
+
href: "https://blixify.co/",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
src: "https://tailwindui.com/img/logos/statickit-logo-gray-400.svg",
|
|
27
|
+
alt: "StaticKit",
|
|
28
|
+
href: "https://blixify.co/",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
src: "https://tailwindui.com/img/logos/transistor-logo-gray-400.svg",
|
|
32
|
+
alt: "Transistor",
|
|
33
|
+
href: "https://blixify.co/",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
src: "https://tailwindui.com/img/logos/workcation-logo-gray-400.svg",
|
|
37
|
+
alt: "Workcation",
|
|
38
|
+
href: "https://blixify.co/",
|
|
39
|
+
},
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
stories.add("Logo Cloud", () => {
|
|
43
|
+
return <LogoCloud logoList={logoList} />;
|
|
44
|
+
});
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Onboarding
|
|
2
|
+
|
|
3
|
+
<!-- STORY -->
|
|
4
|
+
|
|
5
|
+
<hr>
|
|
6
|
+
|
|
7
|
+
Onboarding to be displayed when user first onboard to the website.
|
|
8
|
+
|
|
9
|
+
##### Import
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { Onboarding } from "blixify-ui-web/lib";
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### Usage
|
|
16
|
+
|
|
17
|
+
```jsx
|
|
18
|
+
const contentsData = [
|
|
19
|
+
{
|
|
20
|
+
contentImg:
|
|
21
|
+
"https://images.unsplash.com/photo-1502005097973-6a7082348e28?w=900&auto=format&fit=crop&q=60",
|
|
22
|
+
content: (
|
|
23
|
+
<>
|
|
24
|
+
<h2 className={titleClassName}>Explore The World</h2>
|
|
25
|
+
<p>
|
|
26
|
+
Embark on a journey of discovery and adventure with "Explore The
|
|
27
|
+
World." This title encapsulates the spirit of curiosity and the desire
|
|
28
|
+
to uncover the wonders our planet has to offer.
|
|
29
|
+
</p>
|
|
30
|
+
</>
|
|
31
|
+
),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
contentImg:
|
|
35
|
+
"https://images.unsplash.com/photo-1616046229478-9901c5536a45?w=900&auto=format&fit=crop&q=60",
|
|
36
|
+
content: (
|
|
37
|
+
<>
|
|
38
|
+
<h2 className={titleClassName}>Browse Connectivity</h2>
|
|
39
|
+
<p>
|
|
40
|
+
"Browse Connectivity" suggests a digital exploration of interconnected
|
|
41
|
+
networks and information. This could be particularly relevant in the
|
|
42
|
+
context of digital communication, networking, or online collaboration.
|
|
43
|
+
</p>
|
|
44
|
+
</>
|
|
45
|
+
),
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
contentImg:
|
|
49
|
+
"https://images.unsplash.com/photo-1567016376408-0226e4d0c1ea?w=900&auto=format&fit=crop&q=60",
|
|
50
|
+
content: (
|
|
51
|
+
<>
|
|
52
|
+
<h2 className={titleClassName}>Connect The World</h2>
|
|
53
|
+
<p>
|
|
54
|
+
"Connect The World" signifies the power of bringing people, ideas, and
|
|
55
|
+
cultures together. This title is often associated with fostering
|
|
56
|
+
global unity, understanding, and collaboration.
|
|
57
|
+
</p>
|
|
58
|
+
</>
|
|
59
|
+
),
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<>
|
|
65
|
+
<Button
|
|
66
|
+
text="Start Mobile Onboarding"
|
|
67
|
+
size="small"
|
|
68
|
+
type="normal"
|
|
69
|
+
onClick={() => handleSetOnboarding()}
|
|
70
|
+
/>
|
|
71
|
+
<Onboarding
|
|
72
|
+
contents={contentsData}
|
|
73
|
+
currentStep={currentStep}
|
|
74
|
+
show={showOnboarding}
|
|
75
|
+
isMobile={true}
|
|
76
|
+
handleSetCurrentStep={handleSetCurrentStep}
|
|
77
|
+
handleClose={handleSetOnboarding}
|
|
78
|
+
/>
|
|
79
|
+
</>
|
|
80
|
+
);
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
##### Required props
|
|
84
|
+
|
|
85
|
+
| Name | Type | Description |
|
|
86
|
+
| ---------------------- | ------------------ | ---------------------------------------------------------------------- |
|
|
87
|
+
| `contents` | `OnboardingData[]` | Onboarding content with contentImg (string) and content (ReactElement) |
|
|
88
|
+
| `currentStep` | `number` | Current step |
|
|
89
|
+
| `show` | `boolean` | Show Onboarding |
|
|
90
|
+
| `handleSetCurrentStep` | `() => {}` | Set Step |
|
|
91
|
+
| `handleClose` | `() => {}` | Close Onboarding |
|
|
92
|
+
|
|
93
|
+
##### Optional props
|
|
94
|
+
|
|
95
|
+
| Name | Type | Default | Description |
|
|
96
|
+
| ------------------ | --------------- | ------- | -------------------------------------------------------------------------------- |
|
|
97
|
+
| `className` | `string` | "" | Custom CSS classes |
|
|
98
|
+
| `isMobile` | `boolean` | false | When true, shows full-size image with curved overlay. When false, shows in modal |
|
|
99
|
+
| `extra` | `React Element` | "" | Additional content |
|
|
100
|
+
| `backBtnClassName` | `string` | "" | Custom CSS classes for back button |
|