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,113 @@
|
|
|
1
|
+
import { storiesOf } from "@storybook/react";
|
|
2
|
+
import React, { useState } from "react";
|
|
3
|
+
import { Onboarding } 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("Onboarding", () => {
|
|
16
|
+
const titleClassName = "text-lg sm:text-2xl mb-2 sm:mb-4 font-bold";
|
|
17
|
+
const descClassName = "text-sm sm:text-base";
|
|
18
|
+
const [isMobile, setIsMobile] = useState(true);
|
|
19
|
+
const [showOnboarding, setShowOnboarding] = useState(true);
|
|
20
|
+
const [currentStep, setCurrentStep] = useState(0);
|
|
21
|
+
|
|
22
|
+
const handleSetCurrentStep = (index: number) => {
|
|
23
|
+
setCurrentStep(index);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const handleSetOnboarding = (hide?: boolean) => {
|
|
27
|
+
setShowOnboarding(hide ?? true);
|
|
28
|
+
setCurrentStep(0);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const contentsData = [
|
|
32
|
+
{
|
|
33
|
+
contentImg:
|
|
34
|
+
"https://images.unsplash.com/photo-1502005097973-6a7082348e28?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTB8fGludGVyaW9yJTIwZGVzaWdufGVufDB8fDB8fHww",
|
|
35
|
+
content: (
|
|
36
|
+
<>
|
|
37
|
+
<h2 className={titleClassName}>Explore The World</h2>
|
|
38
|
+
<p className={descClassName}>
|
|
39
|
+
Embark on a journey of discovery and adventure with "Explore The
|
|
40
|
+
World." This title encapsulates the spirit of curiosity and the
|
|
41
|
+
desire to uncover the wonders our planet has to offer.
|
|
42
|
+
</p>
|
|
43
|
+
</>
|
|
44
|
+
),
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
contentImg:
|
|
48
|
+
"https://images.unsplash.com/photo-1616046229478-9901c5536a45?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8OHx8aW50ZXJpb3IlMjBkZXNpZ258ZW58MHx8MHx8fDA%3D",
|
|
49
|
+
content: (
|
|
50
|
+
<>
|
|
51
|
+
<h2 className={titleClassName}>Discover The World</h2>
|
|
52
|
+
<p className={descClassName}>
|
|
53
|
+
Embark on a journey of discovery and adventure with "Explore The
|
|
54
|
+
World." This title encapsulates the spirit of curiosity and the
|
|
55
|
+
desire to uncover the wonders our planet has to offer.
|
|
56
|
+
</p>
|
|
57
|
+
</>
|
|
58
|
+
),
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
contentImg:
|
|
62
|
+
"https://images.unsplash.com/photo-1567016376408-0226e4d0c1ea?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTV8fGludGVyaW9yJTIwZGVzaWdufGVufDB8fDB8fHww",
|
|
63
|
+
content: (
|
|
64
|
+
<>
|
|
65
|
+
<h2 className={titleClassName}>Create The World</h2>
|
|
66
|
+
<p className={descClassName}>
|
|
67
|
+
Embark on a journey of discovery and adventure with "Explore The
|
|
68
|
+
World." This title encapsulates the spirit of curiosity and the
|
|
69
|
+
desire to uncover the wonders our planet has to offer.
|
|
70
|
+
</p>
|
|
71
|
+
</>
|
|
72
|
+
),
|
|
73
|
+
},
|
|
74
|
+
];
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<>
|
|
78
|
+
<div className="flex flex-row mb-4">
|
|
79
|
+
<Button
|
|
80
|
+
text="Start Mobile Onboarding"
|
|
81
|
+
size="small"
|
|
82
|
+
type="normal"
|
|
83
|
+
onClick={() => {
|
|
84
|
+
handleSetOnboarding();
|
|
85
|
+
setIsMobile(true);
|
|
86
|
+
}}
|
|
87
|
+
className="mr-2"
|
|
88
|
+
/>
|
|
89
|
+
<Button
|
|
90
|
+
text="Start Modal Onboarding"
|
|
91
|
+
size="small"
|
|
92
|
+
type="normal"
|
|
93
|
+
onClick={() => {
|
|
94
|
+
handleSetOnboarding();
|
|
95
|
+
setIsMobile(false);
|
|
96
|
+
}}
|
|
97
|
+
/>
|
|
98
|
+
</div>
|
|
99
|
+
<div className="h-screen w-full">
|
|
100
|
+
<Onboarding
|
|
101
|
+
contents={contentsData}
|
|
102
|
+
currentStep={currentStep}
|
|
103
|
+
show={showOnboarding}
|
|
104
|
+
isMobile={isMobile}
|
|
105
|
+
handleSetCurrentStep={handleSetCurrentStep}
|
|
106
|
+
handleClose={() => {
|
|
107
|
+
handleSetOnboarding(false);
|
|
108
|
+
}}
|
|
109
|
+
/>
|
|
110
|
+
</div>
|
|
111
|
+
</>
|
|
112
|
+
);
|
|
113
|
+
});
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Pricing
|
|
2
|
+
|
|
3
|
+
<!-- STORY -->
|
|
4
|
+
|
|
5
|
+
<hr>
|
|
6
|
+
|
|
7
|
+
Pricing list
|
|
8
|
+
|
|
9
|
+
##### Import
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { Pricing, PriceItem } from "blixify-ui-web/lib";
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### Usage
|
|
16
|
+
|
|
17
|
+
```jsx
|
|
18
|
+
const priceList: PriceItem[] = [
|
|
19
|
+
{
|
|
20
|
+
subtitle: "Basic",
|
|
21
|
+
id: "tier-basic",
|
|
22
|
+
title: "$15",
|
|
23
|
+
titleSubtext: "/month",
|
|
24
|
+
description: "$12 per month if paid annually",
|
|
25
|
+
feature: {
|
|
26
|
+
title: "Everything necessary to get started.",
|
|
27
|
+
items: [
|
|
28
|
+
"5 products",
|
|
29
|
+
"Up to 1,000 subscribers",
|
|
30
|
+
"Basic analytics",
|
|
31
|
+
"48-hour support response time",
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
ctaBtn: { text: "Buy Now", onClick: (id) => window.alert(id) },
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
subtitle: "Essential",
|
|
38
|
+
id: "tier-essential",
|
|
39
|
+
title: "$30",
|
|
40
|
+
description: "$24 per month if paid annually",
|
|
41
|
+
feature: {
|
|
42
|
+
title:
|
|
43
|
+
"Everything in Basic, plus essential tools for growing your business.",
|
|
44
|
+
items: [
|
|
45
|
+
"25 products",
|
|
46
|
+
"Up to 10,000 subscribers",
|
|
47
|
+
"Advanced analytics",
|
|
48
|
+
"24-hour support response time",
|
|
49
|
+
"Marketing automations",
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
ctaBtn: { text: "Not Available", onClick: (id) => window.alert(id), disable },
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
subtitle: "Growth",
|
|
56
|
+
id: "tier-growth",
|
|
57
|
+
title: "$60",
|
|
58
|
+
description: "$48 per month if paid annually",
|
|
59
|
+
feature: {
|
|
60
|
+
title:
|
|
61
|
+
"Everything in Essential, plus collaboration tools and deeper insights.",
|
|
62
|
+
items: [
|
|
63
|
+
"Unlimited products",
|
|
64
|
+
"Unlimited subscribers",
|
|
65
|
+
"Advanced analytics",
|
|
66
|
+
"1-hour, dedicated support response time",
|
|
67
|
+
"Marketing automations",
|
|
68
|
+
"Custom reporting tools",
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
ctaBtn: { text: "Buy", onClick: (id) => window.alert(id) },
|
|
72
|
+
},
|
|
73
|
+
];
|
|
74
|
+
|
|
75
|
+
return (
|
|
76
|
+
return (
|
|
77
|
+
<Pricing
|
|
78
|
+
priceList={priceList}
|
|
79
|
+
header={{
|
|
80
|
+
title: " Choose the right plan for you",
|
|
81
|
+
description:
|
|
82
|
+
" Distinctio et nulla eum soluta et neque labore quibusdam. Saepe et quasi iusto modi velit ut non voluptas in. Explicabo id ut laborum.",
|
|
83
|
+
}}
|
|
84
|
+
/>
|
|
85
|
+
);
|
|
86
|
+
);
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
##### Required props
|
|
90
|
+
|
|
91
|
+
| Name | Type | Description |
|
|
92
|
+
| ----------- | ------------- | ------------------------------------- |
|
|
93
|
+
| `priceList` | `PriceItem[]` | Refer to PriceItem class states below |
|
|
94
|
+
|
|
95
|
+
##### Optional props
|
|
96
|
+
|
|
97
|
+
| Name | Type | Description |
|
|
98
|
+
| -------------------- | -------------------------------------- | --------------------------------------------- |
|
|
99
|
+
| `header` | `{title: string, description: string}` | Header content to be display above price list |
|
|
100
|
+
| `containerClassname` | `string` | Classname for container |
|
|
101
|
+
|
|
102
|
+
##### PriceItem
|
|
103
|
+
|
|
104
|
+
| Name | Type | Description |
|
|
105
|
+
| --------------- | ----------------------------------------------------------------- | ----------------------------------------------------- |
|
|
106
|
+
| `id` | `string` | |
|
|
107
|
+
| `title` | `string` | Title of each price item (eg. $15) |
|
|
108
|
+
| `subtitle` | `string` | Text to be displayed above title |
|
|
109
|
+
| `titleSubtext?` | `string` | Text to be displayed next to title |
|
|
110
|
+
| `description?` | `string` | Text to be displayed below title |
|
|
111
|
+
| `feature?` | `{ items: string[], title: string }` | List item to be displayed below call to action button |
|
|
112
|
+
| `ctaBtn?` | `{text" string, onClick: (id: string) => void, disable?:boolean}` | Call to action button |
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { storiesOf } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { PriceItem, Pricing } 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 priceList: PriceItem[] = [
|
|
15
|
+
{
|
|
16
|
+
subtitle: "Basic",
|
|
17
|
+
id: "tier-basic",
|
|
18
|
+
title: "$15",
|
|
19
|
+
titleSubtext: "/month",
|
|
20
|
+
description: "$12 per month if paid annually",
|
|
21
|
+
feature: {
|
|
22
|
+
title: "Everything necessary to get started.",
|
|
23
|
+
items: [
|
|
24
|
+
"5 products",
|
|
25
|
+
"Up to 1,000 subscribers",
|
|
26
|
+
"Basic analytics",
|
|
27
|
+
"48-hour support response time",
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
ctaBtn: { text: "Buy", onClick: (id) => window.alert(id) },
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
subtitle: "Essential",
|
|
34
|
+
id: "tier-essential",
|
|
35
|
+
title: "$30",
|
|
36
|
+
description: "$24 per month if paid annually",
|
|
37
|
+
feature: {
|
|
38
|
+
title:
|
|
39
|
+
"Everything in Basic, plus essential tools for growing your business.",
|
|
40
|
+
items: [
|
|
41
|
+
"25 products",
|
|
42
|
+
"Up to 10,000 subscribers",
|
|
43
|
+
"Advanced analytics",
|
|
44
|
+
"24-hour support response time",
|
|
45
|
+
"Marketing automations",
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
ctaBtn: {
|
|
49
|
+
text: "Not Available",
|
|
50
|
+
onClick: (id) => window.alert(id),
|
|
51
|
+
disable: true,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
subtitle: "Growth",
|
|
56
|
+
id: "tier-growth",
|
|
57
|
+
title: "$60",
|
|
58
|
+
description: "$48 per month if paid annually",
|
|
59
|
+
feature: {
|
|
60
|
+
title:
|
|
61
|
+
"Everything in Essential, plus collaboration tools and deeper insights.",
|
|
62
|
+
items: [
|
|
63
|
+
"Unlimited products",
|
|
64
|
+
"Unlimited subscribers",
|
|
65
|
+
"Advanced analytics",
|
|
66
|
+
"1-hour, dedicated support response time",
|
|
67
|
+
"Marketing automations",
|
|
68
|
+
"Custom reporting tools",
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
ctaBtn: { text: "Buy", onClick: (id) => window.alert(id) },
|
|
72
|
+
},
|
|
73
|
+
];
|
|
74
|
+
|
|
75
|
+
stories.add("Pricing", () => {
|
|
76
|
+
return (
|
|
77
|
+
<Pricing
|
|
78
|
+
priceList={priceList}
|
|
79
|
+
header={{
|
|
80
|
+
title: " Choose the right plan for you",
|
|
81
|
+
description:
|
|
82
|
+
" Distinctio et nulla eum soluta et neque labore quibusdam. Saepe et quasi iusto modi velit ut non voluptas in. Explicabo id ut laborum.",
|
|
83
|
+
}}
|
|
84
|
+
/>
|
|
85
|
+
);
|
|
86
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Right 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 { RightContent } from "blixify-ui-web/lib";
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### Usage
|
|
16
|
+
|
|
17
|
+
```jsx
|
|
18
|
+
<RightContent
|
|
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 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 { RightContent } 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("Right Content", () => {
|
|
20
|
+
return (
|
|
21
|
+
<RightContent
|
|
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,51 @@
|
|
|
1
|
+
# Section List
|
|
2
|
+
|
|
3
|
+
<!-- STORY -->
|
|
4
|
+
|
|
5
|
+
<hr>
|
|
6
|
+
|
|
7
|
+
Section list to deliver key metrics
|
|
8
|
+
|
|
9
|
+
##### Import
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { SectionList } from "blixify-ui-web/lib";
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### Usage
|
|
16
|
+
|
|
17
|
+
```jsx
|
|
18
|
+
const sectionContent = [
|
|
19
|
+
{
|
|
20
|
+
title: "Founded",
|
|
21
|
+
content: "2018",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: "Presence",
|
|
25
|
+
content: "Selangor",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
title: "Used Cooking Oil Recycled",
|
|
29
|
+
content: "250 Tonnes",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: "MPOB License No.",
|
|
33
|
+
content: "619709017000",
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
return <SectionList sectionContent={sectionContent} />;
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
##### Required props
|
|
41
|
+
|
|
42
|
+
| Name | Type | Description |
|
|
43
|
+
| ---------------- | ------------------- | ----------- |
|
|
44
|
+
| `sectionContent` | `Section Data List` | |
|
|
45
|
+
|
|
46
|
+
##### Section Data
|
|
47
|
+
|
|
48
|
+
| Name | Type | Description |
|
|
49
|
+
| --------- | ----------------- | ----------- |
|
|
50
|
+
| `title` | `Section title` | |
|
|
51
|
+
| `content` | `Section content` | |
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { storiesOf } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { SectionList } 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 sectionContent = [
|
|
15
|
+
{
|
|
16
|
+
title: "Founded",
|
|
17
|
+
content: "2018",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
title: "Presence",
|
|
21
|
+
content: "Selangor",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: "Used Cooking Oil Recycled",
|
|
25
|
+
content: "250 Tonnes",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
title: "MPOB License No.",
|
|
29
|
+
content: "619709017000",
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
stories.add("Section List", () => {
|
|
34
|
+
return <SectionList sectionContent={sectionContent} />;
|
|
35
|
+
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Teams
|
|
2
|
+
|
|
3
|
+
<!-- STORY -->
|
|
4
|
+
|
|
5
|
+
<hr>
|
|
6
|
+
|
|
7
|
+
Teams Sections to be displayed for committees data.
|
|
8
|
+
|
|
9
|
+
##### Import
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { Teams } from "blixify-ui-web/lib";
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### Usage
|
|
16
|
+
|
|
17
|
+
```jsx
|
|
18
|
+
const people = [
|
|
19
|
+
{
|
|
20
|
+
name: "Michael Foster",
|
|
21
|
+
role: "Co-Founder / CTO",
|
|
22
|
+
imageUrl:
|
|
23
|
+
"https://images.unsplash.com/photo-1519244703995-f4e0f30006d5?ixlib=rb-=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=8&w=1024&h=1024&q=80",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "Leonard Krasner",
|
|
27
|
+
role: "Senior Designer",
|
|
28
|
+
imageUrl:
|
|
29
|
+
"https://images.unsplash.com/photo-1519345182560-3f2917c472ef?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=8&w=1024&h=1024&q=80",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "Emma Dorsey",
|
|
33
|
+
role: "Senior Developer",
|
|
34
|
+
imageUrl:
|
|
35
|
+
"https://images.unsplash.com/photo-1505840717430-882ce147ef2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=8&w=1024&h=1024&q=80",
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<Teams
|
|
41
|
+
title="Our team"
|
|
42
|
+
description="We’re a dynamic group of individuals who are passionate about what
|
|
43
|
+
we do and dedicated to delivering the best results for our
|
|
44
|
+
clients."
|
|
45
|
+
teams={people}
|
|
46
|
+
/>
|
|
47
|
+
);
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
##### Required props
|
|
51
|
+
|
|
52
|
+
| Name | Type | Description | |
|
|
53
|
+
| ------- | ---------------------- | ----------- | --- |
|
|
54
|
+
| `teams` | `Team Data Class List` | | |
|
|
55
|
+
|
|
56
|
+
##### Teams Data Class
|
|
57
|
+
|
|
58
|
+
| Name | Type | Description |
|
|
59
|
+
| ---------- | --------------------- | ----------- |
|
|
60
|
+
| `name` | `Name` | |
|
|
61
|
+
| `role` | `Role or Description` | |
|
|
62
|
+
| `imageUrl` | `Image Src` | |
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { storiesOf } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Teams } 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 people = [
|
|
15
|
+
{
|
|
16
|
+
name: "Michael Foster",
|
|
17
|
+
role: "Co-Founder / CTO",
|
|
18
|
+
imageUrl:
|
|
19
|
+
"https://images.unsplash.com/photo-1519244703995-f4e0f30006d5?ixlib=rb-=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=8&w=1024&h=1024&q=80",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "Leonard Krasner",
|
|
23
|
+
role: "Senior Designer",
|
|
24
|
+
imageUrl:
|
|
25
|
+
"https://images.unsplash.com/photo-1519345182560-3f2917c472ef?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=8&w=1024&h=1024&q=80",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "Emma Dorsey",
|
|
29
|
+
role: "Senior Developer",
|
|
30
|
+
imageUrl:
|
|
31
|
+
"https://images.unsplash.com/photo-1505840717430-882ce147ef2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=8&w=1024&h=1024&q=80",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "Lindsay Walton",
|
|
35
|
+
role: "Front-end Developer",
|
|
36
|
+
imageUrl:
|
|
37
|
+
"https://images.unsplash.com/photo-1517841905240-472988babdf9?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=8&w=1024&h=1024&q=80",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "Leonard Krasner",
|
|
41
|
+
role: "Senior Designer",
|
|
42
|
+
imageUrl:
|
|
43
|
+
"https://images.unsplash.com/photo-1519345182560-3f2917c472ef?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=8&w=1024&h=1024&q=80",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "Emma Dorsey",
|
|
47
|
+
role: "Senior Developer",
|
|
48
|
+
imageUrl:
|
|
49
|
+
"https://images.unsplash.com/photo-1505840717430-882ce147ef2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=8&w=1024&h=1024&q=80",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "Lindsay Walton",
|
|
53
|
+
role: "Front-end Developer",
|
|
54
|
+
imageUrl:
|
|
55
|
+
"https://images.unsplash.com/photo-1517841905240-472988babdf9?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=8&w=1024&h=1024&q=80",
|
|
56
|
+
},
|
|
57
|
+
];
|
|
58
|
+
|
|
59
|
+
stories.add("Teams", () => {
|
|
60
|
+
return <Teams teams={people} />;
|
|
61
|
+
});
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Alert
|
|
2
|
+
|
|
3
|
+
<!-- STORY -->
|
|
4
|
+
|
|
5
|
+
<hr>
|
|
6
|
+
|
|
7
|
+
##### Import
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
import { Alert } from "blixify-ui-web/components/display/alert";
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
##### Usage
|
|
14
|
+
|
|
15
|
+
```jsx
|
|
16
|
+
<>
|
|
17
|
+
<Alert
|
|
18
|
+
title="Order completed"
|
|
19
|
+
desc="Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam."
|
|
20
|
+
icon={<BoltIcon className="size-5 text-purple-500" />}
|
|
21
|
+
actionBtns={[
|
|
22
|
+
{ text: "View status", onClick: () => {} },
|
|
23
|
+
{ text: "Dismiss", onClick: () => {} },
|
|
24
|
+
]}
|
|
25
|
+
color="purple"
|
|
26
|
+
/>
|
|
27
|
+
<div className="mt-4 p-6 bg-black">
|
|
28
|
+
<Alert
|
|
29
|
+
title="Order completed"
|
|
30
|
+
desc="Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam."
|
|
31
|
+
icon={<CheckCircleIcon className="size-5 text-green-500" />}
|
|
32
|
+
actionBtns={[
|
|
33
|
+
{ text: "View status", onClick: () => {} },
|
|
34
|
+
{ text: "Dismiss", onClick: () => {} },
|
|
35
|
+
]}
|
|
36
|
+
color="dark"
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
39
|
+
<Alert
|
|
40
|
+
title="Order completed"
|
|
41
|
+
desc="Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam."
|
|
42
|
+
icon={<CurrencyDollarIcon className="size-5 text-green-500" />}
|
|
43
|
+
actionBtns={[
|
|
44
|
+
{ text: "View status", onClick: () => {} },
|
|
45
|
+
{ text: "Dismiss", onClick: () => {} },
|
|
46
|
+
]}
|
|
47
|
+
color="green"
|
|
48
|
+
className="mt-4"
|
|
49
|
+
addContent={
|
|
50
|
+
<div>
|
|
51
|
+
<p>Additional Content</p>
|
|
52
|
+
<ul className="list-disc list-inside">
|
|
53
|
+
<li>Item 1</li>
|
|
54
|
+
<li>Item 2</li>
|
|
55
|
+
</ul>
|
|
56
|
+
<img
|
|
57
|
+
src="https://plus.unsplash.com/premium_photo-1722593856418-05d6d47eec59?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1170"
|
|
58
|
+
alt=""
|
|
59
|
+
className="h-32 w-48 rounded-lg overflow-hidden"
|
|
60
|
+
/>
|
|
61
|
+
</div>
|
|
62
|
+
}
|
|
63
|
+
/>
|
|
64
|
+
</>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
##### Required props
|
|
68
|
+
|
|
69
|
+
| Name | Type | Default | Description |
|
|
70
|
+
| ------- | -------- | ------- | -------------------- |
|
|
71
|
+
| `title` | `string` | - | The alert title text |
|
|
72
|
+
|
|
73
|
+
##### Optional props
|
|
74
|
+
|
|
75
|
+
| Name | Type | Default | Description |
|
|
76
|
+
| ------------ | ------------------------------------------------------------------------------------- | ------- | ---------------------------------------------- |
|
|
77
|
+
| `desc` | `string` | - | The alert description text |
|
|
78
|
+
| `icon` | `ReactElement` | - | An icon element to display alongside the alert |
|
|
79
|
+
| `actionBtns` | `Array<{ text: string; onClick: () => void }>` | - | Array of action buttons with text and onClick |
|
|
80
|
+
| `addContent` | `ReactElement` | - | Additional content to display in the alert |
|
|
81
|
+
| `color` | `"green" \| "yellow" \| "orange" \| "blue" \| "purple" \| "red" \| "dark" \| "muted"` | - | Color theme for the alert |
|
|
82
|
+
| `className` | `string` | - | Additional CSS classes to apply to the alert |
|