blixify-ui-web-mcp 0.1.3 → 0.1.19
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 +38 -27
- package/lib/components/action/buttonGroup/buttonGroup.stories.tsx +82 -16
- package/lib/components/action/iconButton/README.md +1 -0
- package/lib/components/action/iconButton/iconButton.stories.tsx +6 -12
- package/lib/components/action/radioList/radioList.stories.tsx +10 -16
- package/lib/components/action/slider/slider.stories.tsx +9 -15
- package/lib/components/action/textButton/textButton.stories.tsx +6 -12
- package/lib/components/action/toggle/toggle.stories.tsx +6 -12
- package/lib/components/advanced/collapse/collapse.stories.tsx +240 -24
- package/lib/components/advanced/infoWindow/infoWindow.stories.tsx +10 -16
- package/lib/components/advanced/popUp/README.md +33 -7
- package/lib/components/advanced/popUp/popUp.stories.tsx +9 -15
- package/lib/components/auth/bareSignIn/bareSignIn.stories.tsx +36 -16
- package/lib/components/auth/bareSignUp/bareSignUp.stories.tsx +7 -13
- 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 +12 -18
- package/lib/components/chart/barChart/barChart.stories.tsx +12 -18
- package/lib/components/chart/boxPlotChart/boxPlotChart.stories.tsx +11 -17
- package/lib/components/chart/bubbleChart/bubbleChart.stories.tsx +11 -17
- package/lib/components/chart/card/card.stories.tsx +172 -38
- package/lib/components/chart/ganttChart/ganttChart.stories.tsx +10 -16
- package/lib/components/chart/heatmapChart/heatmapChart.stories.tsx +11 -17
- package/lib/components/chart/lineChart/lineChart.stories.tsx +8 -14
- package/lib/components/chart/pieChart/pieChart.stories.tsx +11 -17
- package/lib/components/chart/polarAreaChart/polarAreaChart.stories.tsx +11 -17
- package/lib/components/chart/radarChart/radarChart.stories.tsx +6 -12
- package/lib/components/chart/radialBar/radialChart.stories.tsx +4 -10
- package/lib/components/chart/rangeBarChart/rangeBarChart.stories.tsx +8 -14
- package/lib/components/chart/statsCard/statsCard.stories.tsx +12 -18
- package/lib/components/chart/treemapChart/treemapChart.stories.tsx +11 -17
- package/lib/components/chat/chatAnchor/README.md +7 -0
- package/lib/components/chat/chatAnchor/chatAnchor.stories.tsx +15 -21
- package/lib/components/chat/chatBase/README.md +103 -22
- package/lib/components/chat/chatBase/chatBase.stories.tsx +657 -57
- package/lib/components/chat/chatDashboard/README.md +17 -15
- package/lib/components/chat/chatDashboard/chatDashboard.stories.tsx +358 -46
- package/lib/components/data/dataGraph/dataGraph.stories.tsx +8 -14
- package/lib/components/data/dataReference/dataReference.stories.tsx +9 -15
- package/lib/components/data/dataTemplate/README.md +443 -129
- package/lib/components/data/dataTemplate/dataModule.stories.tsx +10 -15
- package/lib/components/data/dataTemplate/dataTemplate.stories.tsx +20 -34
- package/lib/components/data/dataWrapper/README.md +207 -84
- package/lib/components/data/dataWrapper/dataWrapper.consumer.stories.tsx +2125 -0
- package/lib/components/data/dataWrapper/dataWrapper.edit.stories.tsx +607 -0
- package/lib/components/data/dataWrapper/dataWrapper.utils.stories.tsx +576 -0
- package/lib/components/data/dataWrapper/dataWrapper.view.stories.tsx +1273 -0
- package/lib/components/data/flexFilter/flexFilter.stories.tsx +171 -0
- package/lib/components/data/queryForm/queryForm.stories.tsx +6 -12
- package/lib/components/data/readQuery/readQuery.stories.tsx +6 -11
- package/lib/components/data/readQueryHoc/readQueryHoc.stories.tsx +6 -12
- package/lib/components/data/writeQuery/README.md +21 -10
- package/lib/components/data/writeQuery/writeQuery.stories.tsx +6 -10
- package/lib/components/design/actionSection/actionSection.stories.tsx +10 -14
- package/lib/components/design/banner/banner.stories.tsx +6 -12
- package/lib/components/design/bannerAction/bannerAction.stories.tsx +100 -21
- package/lib/components/design/blogSection/blogSection.stories.tsx +6 -12
- package/lib/components/design/carouselSection/carouselSection.stories.tsx +6 -12
- package/lib/components/design/designList/designList.stories.tsx +6 -12
- package/lib/components/design/faq/faq.stories.tsx +53 -31
- package/lib/components/design/fileGrid/fileGrid.stories.tsx +10 -16
- package/lib/components/design/fileViewer/fileViewer.stories.tsx +6 -12
- package/lib/components/design/footerSection/footerSection.stories.tsx +6 -12
- package/lib/components/design/googleReview/googleReview.stories.tsx +6 -12
- package/lib/components/design/heroSection/heroSection.stories.tsx +10 -16
- package/lib/components/design/iconList/iconList.stories.tsx +6 -12
- package/lib/components/design/imageGallery/imageGallery.stories.tsx +6 -12
- package/lib/components/design/imageZoom/imageZoom.stories.tsx +6 -12
- package/lib/components/design/leftContent/leftContent.stories.tsx +6 -12
- package/lib/components/design/logoCloud/logoCloud.stories.tsx +6 -12
- package/lib/components/design/onboarding/onboarding.stories.tsx +8 -14
- package/lib/components/design/pricing/pricing.stories.tsx +6 -12
- package/lib/components/design/rightContent/rightContent.stories.tsx +6 -12
- package/lib/components/design/sectionList/sectionList.stories.tsx +6 -12
- package/lib/components/design/teams/teams.stories.tsx +6 -12
- package/lib/components/display/alert/alert.stories.tsx +8 -14
- package/lib/components/display/calendar/README.md +49 -0
- package/lib/components/display/calendar/calendar.stories.tsx +78 -35
- package/lib/components/display/clipboard/clipboard.stories.tsx +6 -12
- package/lib/components/display/detailList/detailList.stories.tsx +172 -48
- package/lib/components/display/drawer/README.md +44 -11
- package/lib/components/display/drawer/drawer.stories.tsx +71 -16
- package/lib/components/display/emptyState/emptyState.stories.tsx +47 -15
- package/lib/components/display/feeds/feeds.stories.tsx +6 -12
- package/lib/components/display/flexTable/README.md +11 -7
- package/lib/components/display/flexTable/flexTable.stories.tsx +318 -20
- package/lib/components/display/grid/README.md +29 -30
- package/lib/components/display/grid/grid.stories.tsx +16 -23
- package/lib/components/display/kanban/kanban.stories.tsx +17 -23
- package/lib/components/display/list/README.md +30 -29
- package/lib/components/display/list/list.stories.tsx +11 -17
- package/lib/components/display/loading/loading.stories.tsx +7 -12
- package/lib/components/display/mapView/mapView.stories.tsx +9 -15
- package/lib/components/display/modal/modal.stories.tsx +6 -13
- package/lib/components/display/newCalendar/README.md +163 -0
- package/lib/components/display/newCalendar/newCalendar.stories.tsx +292 -0
- package/lib/components/display/newFeeds/README.md +53 -0
- package/lib/components/display/newFeeds/newFeeds.stories.tsx +104 -0
- package/lib/components/display/newKanban/README.md +25 -0
- package/lib/components/display/newKanban/newKanban.stories.tsx +131 -0
- package/lib/components/display/newList/README.md +30 -0
- package/lib/components/display/newList/newList.stories.tsx +231 -0
- package/lib/components/display/newPagination/README.md +15 -0
- package/lib/components/display/newTable/README.md +121 -0
- package/lib/components/display/newTable/newTable.stories.tsx +551 -0
- package/lib/components/display/notification/notification.stories.tsx +6 -12
- package/lib/components/display/progress/progress.stories.tsx +7 -12
- package/lib/components/display/stepper/README.md +4 -0
- package/lib/components/display/stepper/stepper.stories.tsx +70 -23
- package/lib/components/display/table/README.md +38 -37
- package/lib/components/display/table/table.stories.tsx +34 -36
- package/lib/components/display/tag/tag.stories.tsx +34 -40
- package/lib/components/input/address/address.stories.tsx +12 -18
- package/lib/components/input/canvas/canvas.stories.tsx +12 -18
- package/lib/components/input/checkbox/checkbox.stories.tsx +7 -13
- package/lib/components/input/datePicker/datePicker.stories.tsx +41 -11
- package/lib/components/input/form/form.stories.tsx +11 -17
- package/lib/components/input/markdown/README.md +80 -2
- package/lib/components/input/markdown/markdown.stories.tsx +83 -32
- package/lib/components/input/monthYearPicker/monthYearPicker.stories.tsx +52 -24
- package/lib/components/input/netPromoterScore/netPromoterScore.stories.tsx +6 -12
- package/lib/components/input/rating/rating.stories.tsx +6 -12
- package/lib/components/input/select/README.md +31 -29
- package/lib/components/input/select/select.stories.tsx +33 -39
- package/lib/components/input/signature/signature.stories.tsx +12 -18
- package/lib/components/input/textArea/textArea.stories.tsx +6 -12
- package/lib/components/input/textInput/textinput.stories.tsx +14 -20
- package/lib/components/input/uploadInput/uploadInput.stories.tsx +143 -19
- package/lib/components/navigation/bars/README.md +27 -0
- package/lib/components/navigation/bars/bars.stories.tsx +56 -19
- package/lib/components/navigation/bottomTab/bottomTab.stories.tsx +7 -12
- package/lib/components/navigation/breadcrumb/breadcrumb.stories.tsx +8 -14
- package/lib/components/navigation/header/header.stories.tsx +33 -21
- package/lib/components/navigation/leftNav/leftNav.stories.tsx +10 -16
- package/lib/components/navigation/tabs/tabs.stories.tsx +10 -16
- package/lib/components/structure/column/column.stories.tsx +10 -15
- package/lib/components/structure/container/container.stories.tsx +8 -13
- package/lib/components/structure/link/link.stories.tsx +11 -17
- package/lib/components/structure/text/text.stories.tsx +12 -17
- package/lib/components/template/authPage/authPage.stories.tsx +6 -5
- package/lib/components/template/calendarView/calendarView.stories.tsx +726 -0
- package/lib/components/template/chatDashboard/chatDashboard.stories.tsx +497 -0
- package/lib/components/template/landingPage/landingPage.stories.tsx +10 -7
- package/lib/components/template/mapLayout/mapLayout.stories.tsx +519 -0
- 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 +384 -524
- package/lib/components/template/userRankingDashboard/userRankingDashboard.stories.tsx +145 -75
- package/lib/mcp/tools/componentsRoot.d.ts +2 -0
- package/lib/mcp/tools/componentsRoot.d.ts.map +1 -0
- package/lib/mcp/tools/componentsRoot.js +59 -0
- package/lib/mcp/tools/componentsRoot.js.map +1 -0
- package/lib/mcp/tools/getBackendComponent.d.ts.map +1 -1
- package/lib/mcp/tools/getBackendComponent.js +2 -5
- package/lib/mcp/tools/getBackendComponent.js.map +1 -1
- package/lib/mcp/tools/getComponent.d.ts.map +1 -1
- package/lib/mcp/tools/getComponent.js +2 -5
- package/lib/mcp/tools/getComponent.js.map +1 -1
- package/lib/mcp/tools/listComponents.d.ts.map +1 -1
- package/lib/mcp/tools/listComponents.js +15 -10
- package/lib/mcp/tools/listComponents.js.map +1 -1
- package/lib/mcp/tools/suggestTemplate.d.ts.map +1 -1
- package/lib/mcp/tools/suggestTemplate.js +107 -21
- package/lib/mcp/tools/suggestTemplate.js.map +1 -1
- package/package.json +1 -1
- package/lib/components/data/dataWrapper/dataWrapper.stories.tsx +0 -831
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import { FolderIcon, HomeIcon, UsersIcon } from "@heroicons/react/24/outline";
|
|
2
|
-
import { storiesOf } from "@storybook/react";
|
|
3
2
|
import React, { useState } from "react";
|
|
4
|
-
import { LeftNav } from ".";
|
|
3
|
+
import { LeftNav as LeftNavImpl } from ".";
|
|
5
4
|
import { StorySection } from "../../storyUtils";
|
|
6
5
|
import Logo from "../../../assets/logo.png";
|
|
7
|
-
import README from "./README.md";
|
|
8
6
|
|
|
9
|
-
const
|
|
7
|
+
const meta = { title: "Navigation/LeftNav" };
|
|
8
|
+
export default meta;
|
|
10
9
|
|
|
11
|
-
stories.addParameters({
|
|
12
|
-
readme: {
|
|
13
|
-
content: README,
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
10
|
|
|
17
11
|
const baseNavigation = [
|
|
18
12
|
{ id: "dashboard", name: "Dashboard", href: "/dashboard", icon: HomeIcon },
|
|
@@ -81,7 +75,7 @@ const renderHeader = () => (
|
|
|
81
75
|
<div className="px-4 text-sm font-medium text-gray-700">Page Title</div>
|
|
82
76
|
);
|
|
83
77
|
|
|
84
|
-
|
|
78
|
+
export const LeftNav = () => {
|
|
85
79
|
const [mobile, setMobile] = useState(false);
|
|
86
80
|
const [selectedId, setSelectedId] = useState("dashboard");
|
|
87
81
|
const [navigation] = useState(baseNavigation);
|
|
@@ -96,7 +90,7 @@ stories.add("LeftNav", () => {
|
|
|
96
90
|
description="Basic left nav with logo, nav items, and dashboard content. handleBarsOnClick handles selection for single-page apps. Resize to mobile width to see the hamburger menu."
|
|
97
91
|
>
|
|
98
92
|
<div className="w-full h-96 relative overflow-hidden border rounded-lg">
|
|
99
|
-
<
|
|
93
|
+
<LeftNavImpl
|
|
100
94
|
selectedId={selectedId}
|
|
101
95
|
navigation={navigation}
|
|
102
96
|
leftNavMobileMenu={mobile}
|
|
@@ -114,7 +108,7 @@ stories.add("LeftNav", () => {
|
|
|
114
108
|
description="draggable=true lets users reorder nav items via drag-and-drop. Items sharing a groupId are nested under a collapsible group. handleChangeNavigation persists the new order."
|
|
115
109
|
>
|
|
116
110
|
<div className="w-full h-96 relative overflow-hidden border rounded-lg">
|
|
117
|
-
<
|
|
111
|
+
<LeftNavImpl
|
|
118
112
|
selectedId={selectedId}
|
|
119
113
|
navigation={groupedNav}
|
|
120
114
|
leftNavMobileMenu={false}
|
|
@@ -135,7 +129,7 @@ stories.add("LeftNav", () => {
|
|
|
135
129
|
description="Pass transition.collapse to toggle the sidebar between full and icon-only width. handleToggleCollapse fires when the collapse arrow is clicked. transition.headerVisible=false hides the top header bar on desktop."
|
|
136
130
|
>
|
|
137
131
|
<div className="w-full h-96 relative overflow-hidden border rounded-lg">
|
|
138
|
-
<
|
|
132
|
+
<LeftNavImpl
|
|
139
133
|
selectedId={selectedId}
|
|
140
134
|
navigation={navigation}
|
|
141
135
|
leftNavMobileMenu={false}
|
|
@@ -155,7 +149,7 @@ stories.add("LeftNav", () => {
|
|
|
155
149
|
description="renderDashboardFooterContent renders a slot at the bottom of the sidebar, above the border. Useful for user profile info or a sign-out button."
|
|
156
150
|
>
|
|
157
151
|
<div className="w-full h-96 relative overflow-hidden border rounded-lg">
|
|
158
|
-
<
|
|
152
|
+
<LeftNavImpl
|
|
159
153
|
selectedId={selectedId}
|
|
160
154
|
navigation={navigation}
|
|
161
155
|
leftNavMobileMenu={false}
|
|
@@ -177,7 +171,7 @@ stories.add("LeftNav", () => {
|
|
|
177
171
|
dark
|
|
178
172
|
>
|
|
179
173
|
<div className="w-full h-96 relative overflow-hidden border border-gray-700 rounded-lg">
|
|
180
|
-
<
|
|
174
|
+
<LeftNavImpl
|
|
181
175
|
selectedId={selectedId}
|
|
182
176
|
navigation={navigation}
|
|
183
177
|
leftNavMobileMenu={darkMobile}
|
|
@@ -196,4 +190,4 @@ stories.add("LeftNav", () => {
|
|
|
196
190
|
</StorySection>
|
|
197
191
|
</>
|
|
198
192
|
);
|
|
199
|
-
}
|
|
193
|
+
}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React, { useState } from "react";
|
|
3
|
-
import { Tabs } from ".";
|
|
2
|
+
import { Tabs as TabsImpl } from ".";
|
|
4
3
|
import { StorySection } from "../../storyUtils";
|
|
5
|
-
import README from "./README.md";
|
|
6
4
|
|
|
7
|
-
const
|
|
5
|
+
const meta = { title: "Navigation/Tabs" };
|
|
6
|
+
export default meta;
|
|
8
7
|
|
|
9
|
-
stories.addParameters({
|
|
10
|
-
readme: {
|
|
11
|
-
content: README,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
8
|
|
|
15
|
-
|
|
9
|
+
export const Tabs = () => {
|
|
16
10
|
const [selectedId, setSelectedId] = useState("account");
|
|
17
11
|
const [tabs, setTabs] = useState([
|
|
18
12
|
{ id: "account", name: "My Account", href: "#" },
|
|
@@ -27,7 +21,7 @@ stories.add("Tabs", () => {
|
|
|
27
21
|
title="Default"
|
|
28
22
|
description="Basic tab bar. Pass onClick to handle selection and selectedId to highlight the active tab."
|
|
29
23
|
>
|
|
30
|
-
<
|
|
24
|
+
<TabsImpl
|
|
31
25
|
tabs={tabs}
|
|
32
26
|
selectedId={selectedId}
|
|
33
27
|
onClick={(id) => setSelectedId(id)}
|
|
@@ -38,7 +32,7 @@ stories.add("Tabs", () => {
|
|
|
38
32
|
title="Draggable"
|
|
39
33
|
description="Set draggable=true and provide handleChangeTabs to persist the new order. handleDropEnd fires when the drag interaction ends."
|
|
40
34
|
>
|
|
41
|
-
<
|
|
35
|
+
<TabsImpl
|
|
42
36
|
tabs={tabs}
|
|
43
37
|
selectedId={selectedId}
|
|
44
38
|
onClick={(id) => setSelectedId(id)}
|
|
@@ -52,7 +46,7 @@ stories.add("Tabs", () => {
|
|
|
52
46
|
title="Overflow Wrap"
|
|
53
47
|
description="overflowWrap causes tabs to wrap onto a new row when they exceed the container width, instead of scrolling horizontally."
|
|
54
48
|
>
|
|
55
|
-
<
|
|
49
|
+
<TabsImpl
|
|
56
50
|
tabs={tabs}
|
|
57
51
|
selectedId={selectedId}
|
|
58
52
|
onClick={(id) => setSelectedId(id)}
|
|
@@ -64,7 +58,7 @@ stories.add("Tabs", () => {
|
|
|
64
58
|
title="Link-based Navigation"
|
|
65
59
|
description="Omit onClick to render each tab as a Link using its href value. Useful for multi-page navigation."
|
|
66
60
|
>
|
|
67
|
-
<
|
|
61
|
+
<TabsImpl tabs={tabs} selectedId={selectedId} />
|
|
68
62
|
</StorySection>
|
|
69
63
|
|
|
70
64
|
<StorySection
|
|
@@ -72,7 +66,7 @@ stories.add("Tabs", () => {
|
|
|
72
66
|
description="Pass darkMode=true for use on dark backgrounds."
|
|
73
67
|
dark
|
|
74
68
|
>
|
|
75
|
-
<
|
|
69
|
+
<TabsImpl
|
|
76
70
|
tabs={tabs}
|
|
77
71
|
selectedId={selectedId}
|
|
78
72
|
onClick={(id) => setSelectedId(id)}
|
|
@@ -81,4 +75,4 @@ stories.add("Tabs", () => {
|
|
|
81
75
|
</StorySection>
|
|
82
76
|
</>
|
|
83
77
|
);
|
|
84
|
-
}
|
|
78
|
+
}
|
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React from "react";
|
|
3
|
-
import { Column } from ".";
|
|
4
|
-
import README from "./README.md";
|
|
5
|
-
const stories = storiesOf("Structure", module);
|
|
2
|
+
import { Column as ColumnImpl } from ".";
|
|
6
3
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
content: README,
|
|
10
|
-
},
|
|
11
|
-
});
|
|
4
|
+
const meta = { title: "Structure/Column" };
|
|
5
|
+
export default meta;
|
|
12
6
|
|
|
13
|
-
|
|
7
|
+
|
|
8
|
+
export const Column = () => {
|
|
14
9
|
return (
|
|
15
10
|
<>
|
|
16
|
-
<
|
|
11
|
+
<ColumnImpl orientation="row" mobileBp="sm" className="bg-gray-50">
|
|
17
12
|
<p>Row Item 1</p>
|
|
18
13
|
<p className="sm:ml-2">Row Item 2</p>
|
|
19
|
-
</
|
|
20
|
-
<
|
|
14
|
+
</ColumnImpl>
|
|
15
|
+
<ColumnImpl orientation="vertical" mobileBp="sm" className="bg-gray-50 mt-5">
|
|
21
16
|
<p>Row Item 1</p>
|
|
22
17
|
<p>Row Item 2</p>
|
|
23
|
-
</
|
|
18
|
+
</ColumnImpl>
|
|
24
19
|
</>
|
|
25
20
|
);
|
|
26
|
-
}
|
|
21
|
+
}
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React from "react";
|
|
3
|
-
import { Container } from ".";
|
|
4
|
-
import README from "./README.md";
|
|
5
|
-
const stories = storiesOf("Structure", module);
|
|
2
|
+
import { Container as ContainerImpl } from ".";
|
|
6
3
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
content: README,
|
|
10
|
-
},
|
|
11
|
-
});
|
|
4
|
+
const meta = { title: "Structure/Container" };
|
|
5
|
+
export default meta;
|
|
12
6
|
|
|
13
|
-
|
|
7
|
+
|
|
8
|
+
export const Container = () => {
|
|
14
9
|
return (
|
|
15
|
-
<
|
|
10
|
+
<ContainerImpl>
|
|
16
11
|
<h1>Item 1</h1>
|
|
17
|
-
</
|
|
12
|
+
</ContainerImpl>
|
|
18
13
|
);
|
|
19
|
-
}
|
|
14
|
+
}
|
|
@@ -1,30 +1,24 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React from "react";
|
|
3
|
-
import { Link } from ".";
|
|
2
|
+
import { Link as LinkImpl } from ".";
|
|
4
3
|
import { Text } from "../text";
|
|
5
|
-
import README from "./README.md";
|
|
6
4
|
|
|
7
|
-
const
|
|
5
|
+
const meta = { title: "Structure/Link" };
|
|
6
|
+
export default meta;
|
|
8
7
|
|
|
9
|
-
stories.addParameters({
|
|
10
|
-
readme: {
|
|
11
|
-
content: README,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
8
|
|
|
15
|
-
|
|
9
|
+
export const Link = () => {
|
|
16
10
|
return (
|
|
17
11
|
<>
|
|
18
|
-
<
|
|
12
|
+
<LinkImpl href="https://blixify.co" linkType="external">
|
|
19
13
|
<Text size="base" color="primary" type="p">
|
|
20
|
-
|
|
14
|
+
LinkImpl - External
|
|
21
15
|
</Text>
|
|
22
|
-
</
|
|
23
|
-
<
|
|
16
|
+
</LinkImpl>
|
|
17
|
+
<LinkImpl href="https://blixify.co" linkType="default">
|
|
24
18
|
<Text size="base" color="primary" type="p">
|
|
25
|
-
|
|
19
|
+
LinkImpl - Internal
|
|
26
20
|
</Text>
|
|
27
|
-
</
|
|
21
|
+
</LinkImpl>
|
|
28
22
|
</>
|
|
29
23
|
);
|
|
30
|
-
}
|
|
24
|
+
}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { storiesOf } from "@storybook/react";
|
|
2
1
|
import React, { useEffect, useState } from "react";
|
|
3
|
-
import { Text } from ".";
|
|
4
|
-
import README from "./README.md";
|
|
5
|
-
const stories = storiesOf("Structure", module);
|
|
2
|
+
import { Text as TextImpl } from ".";
|
|
6
3
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
content: README,
|
|
10
|
-
},
|
|
11
|
-
});
|
|
4
|
+
const meta = { title: "Structure/Text" };
|
|
5
|
+
export default meta;
|
|
12
6
|
|
|
13
|
-
|
|
7
|
+
|
|
8
|
+
export const Text = () => {
|
|
14
9
|
const textList = ["Hello", "World"];
|
|
15
10
|
const [textValue, setTextValue] = useState(textList[0]);
|
|
16
11
|
const [currentIndex, setCurrentIndex] = useState(0);
|
|
@@ -25,15 +20,15 @@ stories.add("Text", () => {
|
|
|
25
20
|
|
|
26
21
|
return (
|
|
27
22
|
<>
|
|
28
|
-
<
|
|
23
|
+
<TextImpl size="lg" color="primary" bold="bold" type="h1">
|
|
29
24
|
Hello World
|
|
30
|
-
</
|
|
31
|
-
<
|
|
25
|
+
</TextImpl>
|
|
26
|
+
<TextImpl size="base" color="pale" type="p">
|
|
32
27
|
Lorem Ipsum
|
|
33
|
-
</
|
|
34
|
-
<
|
|
28
|
+
</TextImpl>
|
|
29
|
+
<TextImpl size="lg" color="primary" type="h1" bold="bold" animated>
|
|
35
30
|
{textValue}
|
|
36
|
-
</
|
|
31
|
+
</TextImpl>
|
|
37
32
|
</>
|
|
38
33
|
);
|
|
39
|
-
}
|
|
34
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { BareSignIn, AvailableProvider } from "../../auth/bareSignIn";
|
|
4
4
|
import { FooterSection } from "../../design/footerSection";
|
|
5
|
-
import "../../../index.css";
|
|
6
5
|
|
|
7
|
-
const
|
|
6
|
+
const meta = { title: "Template/Auth Page" };
|
|
7
|
+
export default meta;
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
export const AuthPage = () => {
|
|
10
11
|
const [signInType, setSignInType] = useState<typeof AvailableProvider>("email");
|
|
11
12
|
|
|
12
13
|
return (
|
|
@@ -65,4 +66,4 @@ stories.add("Auth Page", () => {
|
|
|
65
66
|
/>
|
|
66
67
|
</>
|
|
67
68
|
);
|
|
68
|
-
}
|
|
69
|
+
}
|