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.
Files changed (168) hide show
  1. package/lib/components/action/button/README.md +12 -11
  2. package/lib/components/action/button/button.stories.tsx +38 -27
  3. package/lib/components/action/buttonGroup/buttonGroup.stories.tsx +82 -16
  4. package/lib/components/action/iconButton/README.md +1 -0
  5. package/lib/components/action/iconButton/iconButton.stories.tsx +6 -12
  6. package/lib/components/action/radioList/radioList.stories.tsx +10 -16
  7. package/lib/components/action/slider/slider.stories.tsx +9 -15
  8. package/lib/components/action/textButton/textButton.stories.tsx +6 -12
  9. package/lib/components/action/toggle/toggle.stories.tsx +6 -12
  10. package/lib/components/advanced/collapse/collapse.stories.tsx +240 -24
  11. package/lib/components/advanced/infoWindow/infoWindow.stories.tsx +10 -16
  12. package/lib/components/advanced/popUp/README.md +33 -7
  13. package/lib/components/advanced/popUp/popUp.stories.tsx +9 -15
  14. package/lib/components/auth/bareSignIn/bareSignIn.stories.tsx +36 -16
  15. package/lib/components/auth/bareSignUp/bareSignUp.stories.tsx +7 -13
  16. package/lib/components/auth/signIn/signIn.stories.tsx +4 -10
  17. package/lib/components/auth/signUp/signUp.stories.tsx +4 -10
  18. package/lib/components/chart/areaChart/areaChart.stories.tsx +12 -18
  19. package/lib/components/chart/barChart/barChart.stories.tsx +12 -18
  20. package/lib/components/chart/boxPlotChart/boxPlotChart.stories.tsx +11 -17
  21. package/lib/components/chart/bubbleChart/bubbleChart.stories.tsx +11 -17
  22. package/lib/components/chart/card/card.stories.tsx +172 -38
  23. package/lib/components/chart/ganttChart/ganttChart.stories.tsx +10 -16
  24. package/lib/components/chart/heatmapChart/heatmapChart.stories.tsx +11 -17
  25. package/lib/components/chart/lineChart/lineChart.stories.tsx +8 -14
  26. package/lib/components/chart/pieChart/pieChart.stories.tsx +11 -17
  27. package/lib/components/chart/polarAreaChart/polarAreaChart.stories.tsx +11 -17
  28. package/lib/components/chart/radarChart/radarChart.stories.tsx +6 -12
  29. package/lib/components/chart/radialBar/radialChart.stories.tsx +4 -10
  30. package/lib/components/chart/rangeBarChart/rangeBarChart.stories.tsx +8 -14
  31. package/lib/components/chart/statsCard/statsCard.stories.tsx +12 -18
  32. package/lib/components/chart/treemapChart/treemapChart.stories.tsx +11 -17
  33. package/lib/components/chat/chatAnchor/README.md +7 -0
  34. package/lib/components/chat/chatAnchor/chatAnchor.stories.tsx +15 -21
  35. package/lib/components/chat/chatBase/README.md +103 -22
  36. package/lib/components/chat/chatBase/chatBase.stories.tsx +657 -57
  37. package/lib/components/chat/chatDashboard/README.md +17 -15
  38. package/lib/components/chat/chatDashboard/chatDashboard.stories.tsx +358 -46
  39. package/lib/components/data/dataGraph/dataGraph.stories.tsx +8 -14
  40. package/lib/components/data/dataReference/dataReference.stories.tsx +9 -15
  41. package/lib/components/data/dataTemplate/README.md +443 -129
  42. package/lib/components/data/dataTemplate/dataModule.stories.tsx +10 -15
  43. package/lib/components/data/dataTemplate/dataTemplate.stories.tsx +20 -34
  44. package/lib/components/data/dataWrapper/README.md +207 -84
  45. package/lib/components/data/dataWrapper/dataWrapper.consumer.stories.tsx +2125 -0
  46. package/lib/components/data/dataWrapper/dataWrapper.edit.stories.tsx +607 -0
  47. package/lib/components/data/dataWrapper/dataWrapper.utils.stories.tsx +576 -0
  48. package/lib/components/data/dataWrapper/dataWrapper.view.stories.tsx +1273 -0
  49. package/lib/components/data/flexFilter/flexFilter.stories.tsx +171 -0
  50. package/lib/components/data/queryForm/queryForm.stories.tsx +6 -12
  51. package/lib/components/data/readQuery/readQuery.stories.tsx +6 -11
  52. package/lib/components/data/readQueryHoc/readQueryHoc.stories.tsx +6 -12
  53. package/lib/components/data/writeQuery/README.md +21 -10
  54. package/lib/components/data/writeQuery/writeQuery.stories.tsx +6 -10
  55. package/lib/components/design/actionSection/actionSection.stories.tsx +10 -14
  56. package/lib/components/design/banner/banner.stories.tsx +6 -12
  57. package/lib/components/design/bannerAction/bannerAction.stories.tsx +100 -21
  58. package/lib/components/design/blogSection/blogSection.stories.tsx +6 -12
  59. package/lib/components/design/carouselSection/carouselSection.stories.tsx +6 -12
  60. package/lib/components/design/designList/designList.stories.tsx +6 -12
  61. package/lib/components/design/faq/faq.stories.tsx +53 -31
  62. package/lib/components/design/fileGrid/fileGrid.stories.tsx +10 -16
  63. package/lib/components/design/fileViewer/fileViewer.stories.tsx +6 -12
  64. package/lib/components/design/footerSection/footerSection.stories.tsx +6 -12
  65. package/lib/components/design/googleReview/googleReview.stories.tsx +6 -12
  66. package/lib/components/design/heroSection/heroSection.stories.tsx +10 -16
  67. package/lib/components/design/iconList/iconList.stories.tsx +6 -12
  68. package/lib/components/design/imageGallery/imageGallery.stories.tsx +6 -12
  69. package/lib/components/design/imageZoom/imageZoom.stories.tsx +6 -12
  70. package/lib/components/design/leftContent/leftContent.stories.tsx +6 -12
  71. package/lib/components/design/logoCloud/logoCloud.stories.tsx +6 -12
  72. package/lib/components/design/onboarding/onboarding.stories.tsx +8 -14
  73. package/lib/components/design/pricing/pricing.stories.tsx +6 -12
  74. package/lib/components/design/rightContent/rightContent.stories.tsx +6 -12
  75. package/lib/components/design/sectionList/sectionList.stories.tsx +6 -12
  76. package/lib/components/design/teams/teams.stories.tsx +6 -12
  77. package/lib/components/display/alert/alert.stories.tsx +8 -14
  78. package/lib/components/display/calendar/README.md +49 -0
  79. package/lib/components/display/calendar/calendar.stories.tsx +78 -35
  80. package/lib/components/display/clipboard/clipboard.stories.tsx +6 -12
  81. package/lib/components/display/detailList/detailList.stories.tsx +172 -48
  82. package/lib/components/display/drawer/README.md +44 -11
  83. package/lib/components/display/drawer/drawer.stories.tsx +71 -16
  84. package/lib/components/display/emptyState/emptyState.stories.tsx +47 -15
  85. package/lib/components/display/feeds/feeds.stories.tsx +6 -12
  86. package/lib/components/display/flexTable/README.md +11 -7
  87. package/lib/components/display/flexTable/flexTable.stories.tsx +318 -20
  88. package/lib/components/display/grid/README.md +29 -30
  89. package/lib/components/display/grid/grid.stories.tsx +16 -23
  90. package/lib/components/display/kanban/kanban.stories.tsx +17 -23
  91. package/lib/components/display/list/README.md +30 -29
  92. package/lib/components/display/list/list.stories.tsx +11 -17
  93. package/lib/components/display/loading/loading.stories.tsx +7 -12
  94. package/lib/components/display/mapView/mapView.stories.tsx +9 -15
  95. package/lib/components/display/modal/modal.stories.tsx +6 -13
  96. package/lib/components/display/newCalendar/README.md +163 -0
  97. package/lib/components/display/newCalendar/newCalendar.stories.tsx +292 -0
  98. package/lib/components/display/newFeeds/README.md +53 -0
  99. package/lib/components/display/newFeeds/newFeeds.stories.tsx +104 -0
  100. package/lib/components/display/newKanban/README.md +25 -0
  101. package/lib/components/display/newKanban/newKanban.stories.tsx +131 -0
  102. package/lib/components/display/newList/README.md +30 -0
  103. package/lib/components/display/newList/newList.stories.tsx +231 -0
  104. package/lib/components/display/newPagination/README.md +15 -0
  105. package/lib/components/display/newTable/README.md +121 -0
  106. package/lib/components/display/newTable/newTable.stories.tsx +551 -0
  107. package/lib/components/display/notification/notification.stories.tsx +6 -12
  108. package/lib/components/display/progress/progress.stories.tsx +7 -12
  109. package/lib/components/display/stepper/README.md +4 -0
  110. package/lib/components/display/stepper/stepper.stories.tsx +70 -23
  111. package/lib/components/display/table/README.md +38 -37
  112. package/lib/components/display/table/table.stories.tsx +34 -36
  113. package/lib/components/display/tag/tag.stories.tsx +34 -40
  114. package/lib/components/input/address/address.stories.tsx +12 -18
  115. package/lib/components/input/canvas/canvas.stories.tsx +12 -18
  116. package/lib/components/input/checkbox/checkbox.stories.tsx +7 -13
  117. package/lib/components/input/datePicker/datePicker.stories.tsx +41 -11
  118. package/lib/components/input/form/form.stories.tsx +11 -17
  119. package/lib/components/input/markdown/README.md +80 -2
  120. package/lib/components/input/markdown/markdown.stories.tsx +83 -32
  121. package/lib/components/input/monthYearPicker/monthYearPicker.stories.tsx +52 -24
  122. package/lib/components/input/netPromoterScore/netPromoterScore.stories.tsx +6 -12
  123. package/lib/components/input/rating/rating.stories.tsx +6 -12
  124. package/lib/components/input/select/README.md +31 -29
  125. package/lib/components/input/select/select.stories.tsx +33 -39
  126. package/lib/components/input/signature/signature.stories.tsx +12 -18
  127. package/lib/components/input/textArea/textArea.stories.tsx +6 -12
  128. package/lib/components/input/textInput/textinput.stories.tsx +14 -20
  129. package/lib/components/input/uploadInput/uploadInput.stories.tsx +143 -19
  130. package/lib/components/navigation/bars/README.md +27 -0
  131. package/lib/components/navigation/bars/bars.stories.tsx +56 -19
  132. package/lib/components/navigation/bottomTab/bottomTab.stories.tsx +7 -12
  133. package/lib/components/navigation/breadcrumb/breadcrumb.stories.tsx +8 -14
  134. package/lib/components/navigation/header/header.stories.tsx +33 -21
  135. package/lib/components/navigation/leftNav/leftNav.stories.tsx +10 -16
  136. package/lib/components/navigation/tabs/tabs.stories.tsx +10 -16
  137. package/lib/components/structure/column/column.stories.tsx +10 -15
  138. package/lib/components/structure/container/container.stories.tsx +8 -13
  139. package/lib/components/structure/link/link.stories.tsx +11 -17
  140. package/lib/components/structure/text/text.stories.tsx +12 -17
  141. package/lib/components/template/authPage/authPage.stories.tsx +6 -5
  142. package/lib/components/template/calendarView/calendarView.stories.tsx +726 -0
  143. package/lib/components/template/chatDashboard/chatDashboard.stories.tsx +497 -0
  144. package/lib/components/template/landingPage/landingPage.stories.tsx +10 -7
  145. package/lib/components/template/mapLayout/mapLayout.stories.tsx +519 -0
  146. package/lib/components/template/productListing/productListing.stories.tsx +7 -13
  147. package/lib/components/template/productOverview/productOverview.stories.tsx +5 -11
  148. package/lib/components/template/shoppingCart/shoppingCart.stories.tsx +6 -12
  149. package/lib/components/template/userHomePage/userHomePage.stories.tsx +384 -524
  150. package/lib/components/template/userRankingDashboard/userRankingDashboard.stories.tsx +145 -75
  151. package/lib/mcp/tools/componentsRoot.d.ts +2 -0
  152. package/lib/mcp/tools/componentsRoot.d.ts.map +1 -0
  153. package/lib/mcp/tools/componentsRoot.js +59 -0
  154. package/lib/mcp/tools/componentsRoot.js.map +1 -0
  155. package/lib/mcp/tools/getBackendComponent.d.ts.map +1 -1
  156. package/lib/mcp/tools/getBackendComponent.js +2 -5
  157. package/lib/mcp/tools/getBackendComponent.js.map +1 -1
  158. package/lib/mcp/tools/getComponent.d.ts.map +1 -1
  159. package/lib/mcp/tools/getComponent.js +2 -5
  160. package/lib/mcp/tools/getComponent.js.map +1 -1
  161. package/lib/mcp/tools/listComponents.d.ts.map +1 -1
  162. package/lib/mcp/tools/listComponents.js +15 -10
  163. package/lib/mcp/tools/listComponents.js.map +1 -1
  164. package/lib/mcp/tools/suggestTemplate.d.ts.map +1 -1
  165. package/lib/mcp/tools/suggestTemplate.js +107 -21
  166. package/lib/mcp/tools/suggestTemplate.js.map +1 -1
  167. package/package.json +1 -1
  168. package/lib/components/data/dataWrapper/dataWrapper.stories.tsx +0 -831
@@ -62,14 +62,15 @@ Disabled:
62
62
 
63
63
  ##### Optional props
64
64
 
65
- | Name | Type | Default | Description |
66
- | ---------------- | ----------------------------------------------------- | ---------- | ----------------------------------------------- |
67
- | `icon` | `React Element` | — | Icon element to display before the button text |
68
- | `size` | `string` | — | `"small"`, `"extraSmall"`, or default (large) |
69
- | `disable` | `boolean` | `false` | When true, disables the button |
70
- | `className` | `string` | `""` | Tailwind (or other) CSS classes for the button |
71
- | `popUpMenuItems` | `{ text: string; onClick: (text: string) => void }[]` | — | Items for a pop-up menu; when set, shows pop-up |
72
- | `popUpDirection` | `"top" \| "bottom"` | `"bottom"` | Where the pop-up menu opens relative to button |
73
- | `popUpAnchor` | `"left" \| "right"` | `"left"` | Horizontal alignment of the pop-up |
74
- | `popUpClassName` | `string` | — | CSS classes for the pop-up container |
75
- | `onClick` | `(e: any) => void` | — | Called when the button is clicked |
65
+ | Name | Type | Default | Description |
66
+ | ----------------- | ----------------------------------------------------- | ---------- | ----------------------------------------------- |
67
+ | `icon` | `React Element` | — | Icon element to display before the button text |
68
+ | `size` | `string` | — | `"small"`, `"extraSmall"`, or default (large) |
69
+ | `disable` | `boolean` | `false` | When true, disables the button |
70
+ | `className` | `string` | `""` | Tailwind (or other) CSS classes for the button |
71
+ | `popUpMenuItems` | `{ text: string; onClick: (text: string) => void }[]` | — | Items for a pop-up menu; when set, shows pop-up |
72
+ | `popUpDirection` | `"top" \| "bottom"` | `"bottom"` | Where the pop-up menu opens relative to button |
73
+ | `popUpAnchor` | `"left" \| "right"` | `"left"` | Horizontal alignment of the pop-up |
74
+ | `popUpClassName` | `string` | — | CSS classes for the pop-up container |
75
+ | `customEventText` | `string` | — | Custom text for the Rybbit tracking event name |
76
+ | `onClick` | `(e: any) => void` | — | Called when the button is clicked |
@@ -1,18 +1,12 @@
1
- import { storiesOf } from "@storybook/react";
2
1
  import React from "react";
3
- import { Button } from ".";
4
- import README from "./README.md";
2
+ import { Button as ButtonImpl } from ".";
5
3
  import { StorySection } from "../../storyUtils";
6
4
 
7
- const stories = storiesOf("Action", module);
5
+ const meta = { title: "Action/Button" };
6
+ export default meta;
8
7
 
9
- stories.addParameters({
10
- readme: {
11
- content: README,
12
- },
13
- });
14
8
 
15
- stories.add("Button", () => (
9
+ export const Button = () => (
16
10
  <div className="font-sans max-w-2xl p-6">
17
11
  <StorySection
18
12
  title="Button Types"
@@ -25,11 +19,28 @@ stories.add("Button", () => (
25
19
  </>
26
20
  }
27
21
  >
28
- <Button text="Normal" size="small" type="normal" />
29
- <Button text="Dark" size="small" type="dark" />
30
- <Button text="Light" size="small" type="light" />
31
- <Button text="Icon" size="small" type="icon" />
32
- <Button text="Danger" size="small" type="danger" />
22
+ <ButtonImpl text="Normal" size="small" type="normal" />
23
+ <ButtonImpl text="Dark" size="small" type="dark" />
24
+ <ButtonImpl text="Light" size="small" type="light" />
25
+ <ButtonImpl text="Icon" size="small" type="icon" />
26
+ <ButtonImpl text="Danger" size="small" type="danger" />
27
+ </StorySection>
28
+
29
+ <StorySection
30
+ title="Pill"
31
+ description={
32
+ <>
33
+ Use <code>type="pill"</code> for a chip-style affordance — useful as
34
+ a standalone primary tag or call-out. For a selectable row of pills
35
+ (one active at a time) use{" "}
36
+ <code>{`<ButtonGroup variant="pill" />`}</code> instead, since
37
+ selection state lives at the group level.
38
+ </>
39
+ }
40
+ >
41
+ <ButtonImpl text="Add entry" type="pill" />
42
+ <ButtonImpl text="New record" type="pill" />
43
+ <ButtonImpl text="Sync" type="pill" disable />
33
44
  </StorySection>
34
45
 
35
46
  <StorySection
@@ -42,7 +53,7 @@ stories.add("Button", () => (
42
53
  }
43
54
  dark
44
55
  >
45
- <Button text="Dark Mode" size="small" type="darkMode" />
56
+ <ButtonImpl text="Dark Mode" size="small" type="darkMode" />
46
57
  </StorySection>
47
58
 
48
59
  <StorySection
@@ -55,9 +66,9 @@ stories.add("Button", () => (
55
66
  }
56
67
  >
57
68
  <div className="flex flex-wrap gap-3 items-end">
58
- <Button text="Default" type="normal" />
59
- <Button text="Small" size="small" type="normal" />
60
- <Button text="Extra Small" size="extraSmall" type="normal" />
69
+ <ButtonImpl text="Default" type="normal" />
70
+ <ButtonImpl text="Small" size="small" type="normal" />
71
+ <ButtonImpl text="Extra Small" size="extraSmall" type="normal" />
61
72
  </div>
62
73
  </StorySection>
63
74
 
@@ -70,13 +81,13 @@ stories.add("Button", () => (
70
81
  </>
71
82
  }
72
83
  >
73
- <Button
84
+ <ButtonImpl
74
85
  text="Add Item"
75
86
  size="small"
76
87
  type="normal"
77
88
  icon={<span className="mr-1.5">+</span>}
78
89
  />
79
- <Button
90
+ <ButtonImpl
80
91
  text="Settings"
81
92
  size="small"
82
93
  type="icon"
@@ -95,7 +106,7 @@ stories.add("Button", () => (
95
106
  </>
96
107
  }
97
108
  >
98
- <Button
109
+ <ButtonImpl
99
110
  text="Opens Below Left"
100
111
  size="small"
101
112
  type="normal"
@@ -107,7 +118,7 @@ stories.add("Button", () => (
107
118
  popUpDirection="bottom"
108
119
  popUpAnchor="left"
109
120
  />
110
- <Button
121
+ <ButtonImpl
111
122
  text="Opens Below Right"
112
123
  size="small"
113
124
  type="light"
@@ -130,9 +141,9 @@ stories.add("Button", () => (
130
141
  </>
131
142
  }
132
143
  >
133
- <Button text="Normal" size="small" type="normal" disable={true} />
134
- <Button text="Light" size="small" type="light" disable={true} />
135
- <Button text="Danger" size="small" type="danger" disable={true} />
144
+ <ButtonImpl text="Normal" size="small" type="normal" disable={true} />
145
+ <ButtonImpl text="Light" size="small" type="light" disable={true} />
146
+ <ButtonImpl text="Danger" size="small" type="danger" disable={true} />
136
147
  </StorySection>
137
148
  </div>
138
- ));
149
+ )
@@ -1,16 +1,16 @@
1
- import { storiesOf } from "@storybook/react";
1
+ import {
2
+ ArrowDownTrayIcon,
3
+ ArrowPathIcon,
4
+ PlusIcon,
5
+ SparklesIcon,
6
+ } from "@heroicons/react/24/outline";
2
7
  import React, { useState } from "react";
3
- import { ButtonGroup } from ".";
4
- import README from "./README.md";
8
+ import { ButtonGroup as ButtonGroupImpl } from ".";
5
9
  import { StorySection } from "../../storyUtils";
6
10
 
7
- const stories = storiesOf("Action", module);
11
+ const meta = { title: "Action/Button Group" };
12
+ export default meta;
8
13
 
9
- stories.addParameters({
10
- readme: {
11
- content: README,
12
- },
13
- });
14
14
 
15
15
  const defaultSelection = [
16
16
  { id: "item1", name: "Item 1" },
@@ -18,7 +18,7 @@ const defaultSelection = [
18
18
  { id: "item3", name: "Item 3" },
19
19
  ];
20
20
 
21
- stories.add("Button Group", () => {
21
+ export const ButtonGroup = () => {
22
22
  const [selectedId, setSelectedId] = useState("item1");
23
23
 
24
24
  return (
@@ -27,7 +27,7 @@ stories.add("Button Group", () => {
27
27
  title="Default"
28
28
  description="Standard segmented button group. Each item is a bordered button; the selected item is highlighted with the primary color ring."
29
29
  >
30
- <ButtonGroup
30
+ <ButtonGroupImpl
31
31
  selection={defaultSelection}
32
32
  containerClassName="w-full"
33
33
  onClick={setSelectedId}
@@ -44,7 +44,7 @@ stories.add("Button Group", () => {
44
44
  </>
45
45
  }
46
46
  >
47
- <ButtonGroup
47
+ <ButtonGroupImpl
48
48
  selection={defaultSelection}
49
49
  containerClassName="w-full"
50
50
  onClick={setSelectedId}
@@ -63,14 +63,14 @@ stories.add("Button Group", () => {
63
63
  </>
64
64
  }
65
65
  >
66
- <ButtonGroup
66
+ <ButtonGroupImpl
67
67
  selection={defaultSelection}
68
68
  containerClassName="w-full"
69
69
  onClick={setSelectedId}
70
70
  selectedId={selectedId}
71
71
  variant="tag"
72
72
  />
73
- <ButtonGroup
73
+ <ButtonGroupImpl
74
74
  selection={defaultSelection}
75
75
  containerClassName="w-full"
76
76
  onClick={setSelectedId}
@@ -80,6 +80,72 @@ stories.add("Button Group", () => {
80
80
  />
81
81
  </StorySection>
82
82
 
83
+ <StorySection
84
+ title="Variant: Pill"
85
+ description={
86
+ <>
87
+ Use <code>variant="pill"</code> for a chip-style row of toggleable
88
+ actions — typical for quick-action bars on home pages. Items render
89
+ with a rounded-full primary chip; the selected one fills with{" "}
90
+ <code>primary-500</code>. Each <code>Selection</code> can pass an{" "}
91
+ <code>icon</code> to render before the label.
92
+ </>
93
+ }
94
+ >
95
+ <ButtonGroupImpl
96
+ selection={[
97
+ {
98
+ id: "add",
99
+ name: "Add entry",
100
+ icon: (
101
+ <PlusIcon
102
+ className={`h-4 w-4 ${
103
+ selectedId === "add" ? "text-white" : "text-primary-600"
104
+ }`}
105
+ />
106
+ ),
107
+ },
108
+ {
109
+ id: "new",
110
+ name: "New record",
111
+ icon: (
112
+ <SparklesIcon
113
+ className={`h-4 w-4 ${
114
+ selectedId === "new" ? "text-white" : "text-primary-600"
115
+ }`}
116
+ />
117
+ ),
118
+ },
119
+ {
120
+ id: "sync",
121
+ name: "Sync",
122
+ icon: (
123
+ <ArrowPathIcon
124
+ className={`h-4 w-4 ${
125
+ selectedId === "sync" ? "text-white" : "text-primary-600"
126
+ }`}
127
+ />
128
+ ),
129
+ },
130
+ {
131
+ id: "export",
132
+ name: "Export",
133
+ icon: (
134
+ <ArrowDownTrayIcon
135
+ className={`h-4 w-4 ${
136
+ selectedId === "export" ? "text-white" : "text-primary-600"
137
+ }`}
138
+ />
139
+ ),
140
+ },
141
+ ]}
142
+ containerClassName="w-full"
143
+ onClick={setSelectedId}
144
+ selectedId={selectedId}
145
+ variant="pill"
146
+ />
147
+ </StorySection>
148
+
83
149
  <StorySection
84
150
  title="Dark Mode"
85
151
  description={
@@ -91,7 +157,7 @@ stories.add("Button Group", () => {
91
157
  }
92
158
  dark
93
159
  >
94
- <ButtonGroup
160
+ <ButtonGroupImpl
95
161
  selection={defaultSelection}
96
162
  containerClassName="w-full"
97
163
  onClick={setSelectedId}
@@ -101,4 +167,4 @@ stories.add("Button Group", () => {
101
167
  </StorySection>
102
168
  </div>
103
169
  );
104
- });
170
+ }
@@ -37,3 +37,4 @@ import { IconButton } from "blixify-ui-web/action/iconButton";
37
37
  | `className` | `tailwind class` | "" | |
38
38
  | `bgColor` | `string` | Icon background color |
39
39
  | `onClick` | `function` | `() => {}` | |
40
+ | `size` | `small` | `undefined` | |
@@ -1,22 +1,16 @@
1
1
  import { Bars3Icon } from "@heroicons/react/24/solid";
2
- import { storiesOf } from "@storybook/react";
3
2
  import React from "react";
4
- import { IconButton } from ".";
5
- import README from "./README.md";
3
+ import { IconButton as IconButtonImpl } from ".";
6
4
 
7
- const stories = storiesOf("Action", module);
5
+ const meta = { title: "Action/Icon Button" };
6
+ export default meta;
8
7
 
9
- stories.addParameters({
10
- readme: {
11
- content: README,
12
- },
13
- });
14
8
 
15
- stories.add("Icon Button", () => {
9
+ export const IconButton = () => {
16
10
  return (
17
- <IconButton
11
+ <IconButtonImpl
18
12
  icon={<Bars3Icon className="h-5 w-5 text-gray-400" />}
19
13
  onClick={() => {}}
20
14
  />
21
15
  );
22
- });
16
+ }
@@ -1,17 +1,11 @@
1
- import { storiesOf } from "@storybook/react";
2
1
  import React, { useState } from "react";
3
- import { RadioList, RadioListItem } from ".";
2
+ import { RadioList as RadioListImpl, RadioListItem } from ".";
4
3
  import { TextButton } from "../textButton";
5
- import README from "./README.md";
6
4
  import { StorySection } from "../../storyUtils";
7
5
 
8
- const stories = storiesOf("Action", module);
6
+ const meta = { title: "Action/Radio List" };
7
+ export default meta;
9
8
 
10
- stories.addParameters({
11
- readme: {
12
- content: README,
13
- },
14
- });
15
9
 
16
10
  const baseList: RadioListItem[] = [
17
11
  {
@@ -52,7 +46,7 @@ const baseList: RadioListItem[] = [
52
46
  },
53
47
  ];
54
48
 
55
- stories.add("Radio List", () => {
49
+ export const RadioList = () => {
56
50
  const [singleValue, setSingleValue] = useState("");
57
51
  const [multiValue, setMultiValue] = useState<string[]>([]);
58
52
 
@@ -69,7 +63,7 @@ stories.add("Radio List", () => {
69
63
  }
70
64
  >
71
65
  <div className="w-full">
72
- <RadioList
66
+ <RadioListImpl
73
67
  id="single-vertical"
74
68
  list={baseList}
75
69
  value={singleValue}
@@ -95,7 +89,7 @@ stories.add("Radio List", () => {
95
89
  }
96
90
  >
97
91
  <div className="w-full">
98
- <RadioList
92
+ <RadioListImpl
99
93
  id="single-horizontal"
100
94
  list={baseList}
101
95
  value={singleValue}
@@ -117,7 +111,7 @@ stories.add("Radio List", () => {
117
111
  }
118
112
  >
119
113
  <div className="w-full">
120
- <RadioList
114
+ <RadioListImpl
121
115
  id="multi"
122
116
  list={baseList}
123
117
  value={multiValue}
@@ -142,7 +136,7 @@ stories.add("Radio List", () => {
142
136
  }
143
137
  >
144
138
  <div className="w-full">
145
- <RadioList
139
+ <RadioListImpl
146
140
  id="new-value"
147
141
  list={baseList}
148
142
  value={multiValue}
@@ -165,7 +159,7 @@ stories.add("Radio List", () => {
165
159
  }
166
160
  >
167
161
  <div className="w-full">
168
- <RadioList
162
+ <RadioListImpl
169
163
  id="disabled-items"
170
164
  list={baseList.map((item, i) =>
171
165
  i === 1 || i === 3 ? { ...item, disabled: true } : item
@@ -178,4 +172,4 @@ stories.add("Radio List", () => {
178
172
  </StorySection>
179
173
  </div>
180
174
  );
181
- });
175
+ }
@@ -1,18 +1,12 @@
1
- import { storiesOf } from "@storybook/react";
2
1
  import React, { useState } from "react";
3
- import { Slider } from ".";
4
- import README from "./README.md";
2
+ import { Slider as SliderImpl } from ".";
5
3
  import { StorySection } from "../../storyUtils";
6
4
 
7
- const stories = storiesOf("Action", module);
5
+ const meta = { title: "Action/Slider" };
6
+ export default meta;
8
7
 
9
- stories.addParameters({
10
- readme: {
11
- content: README,
12
- },
13
- });
14
8
 
15
- stories.add("Slider", () => {
9
+ export const Slider = () => {
16
10
  const [single, setSingle] = useState("50");
17
11
  const [steppedValue, setSteppedValue] = useState("50");
18
12
  const [rangeMin, setRangeMin] = useState("20");
@@ -34,7 +28,7 @@ stories.add("Slider", () => {
34
28
  }
35
29
  >
36
30
  <div className="w-full space-y-2">
37
- <Slider
31
+ <SliderImpl
38
32
  value={single}
39
33
  minValue="0"
40
34
  maxValue="100"
@@ -56,7 +50,7 @@ stories.add("Slider", () => {
56
50
  }
57
51
  >
58
52
  <div className="w-full space-y-2">
59
- <Slider
53
+ <SliderImpl
60
54
  value={steppedValue}
61
55
  minValue="0"
62
56
  maxValue="100"
@@ -82,7 +76,7 @@ stories.add("Slider", () => {
82
76
  }
83
77
  >
84
78
  <div className="w-full space-y-2">
85
- <Slider
79
+ <SliderImpl
86
80
  type="range"
87
81
  min={rangeMin}
88
82
  max={rangeMax}
@@ -111,7 +105,7 @@ stories.add("Slider", () => {
111
105
  }
112
106
  >
113
107
  <div className="w-full space-y-2">
114
- <Slider
108
+ <SliderImpl
115
109
  type="range"
116
110
  min={invalidMin}
117
111
  max={invalidMax}
@@ -130,4 +124,4 @@ stories.add("Slider", () => {
130
124
  </StorySection>
131
125
  </div>
132
126
  );
133
- });
127
+ }
@@ -1,16 +1,10 @@
1
- import { storiesOf } from "@storybook/react";
2
1
  import React from "react";
3
- import { TextButton } from ".";
4
- import README from "./README.md";
2
+ import { TextButton as TextButtonImpl } from ".";
5
3
 
6
- const stories = storiesOf("Action", module);
4
+ const meta = { title: "Action/Text Button" };
5
+ export default meta;
7
6
 
8
- stories.addParameters({
9
- readme: {
10
- content: README,
11
- },
12
- });
13
7
 
14
- stories.add("Text Button", () => {
15
- return <TextButton text="Click Me" onClick={() => {}} />;
16
- });
8
+ export const TextButton = () => {
9
+ return <TextButtonImpl text="Click Me" onClick={() => {}} />;
10
+ }
@@ -1,23 +1,17 @@
1
- import { storiesOf } from "@storybook/react";
2
1
  import React from "react";
3
- import { Toggle } from ".";
4
- import README from "./README.md";
2
+ import { Toggle as ToggleImpl } from ".";
5
3
 
6
- const stories = storiesOf("Action", module);
4
+ const meta = { title: "Action/Toggle" };
5
+ export default meta;
7
6
 
8
- stories.addParameters({
9
- readme: {
10
- content: README,
11
- },
12
- });
13
7
 
14
- stories.add("Toggle", () => {
8
+ export const Toggle = () => {
15
9
  return (
16
- <Toggle
10
+ <ToggleImpl
17
11
  direction="right"
18
12
  text="Toggle Sample"
19
13
  value={true}
20
14
  onClick={() => {}}
21
15
  />
22
16
  );
23
- });
17
+ }