blixify-ui-web-mcp 0.1.19 → 0.1.21

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 (47) hide show
  1. package/lib/components/action/iconButton/iconButton.stories.tsx +11 -2
  2. package/lib/components/auth/signUp/signUp.stories.tsx +39 -1
  3. package/lib/components/chart/statsCard/README.md +24 -0
  4. package/lib/components/chart/statsCard/statsCard.stories.tsx +68 -0
  5. package/lib/components/chat/chatBase/chatBase.stories.tsx +1 -1
  6. package/lib/components/data/dataGraph/dataGraph.stories.tsx +5 -5
  7. package/lib/components/data/dataTemplate/README.md +204 -85
  8. package/lib/components/data/dataTemplate/dataTemplate.stories.tsx +307 -295
  9. package/lib/components/data/dataTemplate/drive.stories.tsx +197 -0
  10. package/lib/components/data/dataWrapper/README.md +109 -22
  11. package/lib/components/data/dataWrapper/dataWrapper.bareHooks.stories.tsx +951 -0
  12. package/lib/components/data/dataWrapper/dataWrapper.edit.stories.tsx +356 -5
  13. package/lib/components/data/dataWrapper/dataWrapper.view.stories.tsx +79 -5
  14. package/lib/components/display/calendar/calendar.stories.tsx +1 -1
  15. package/lib/components/display/detailList/README.md +11 -10
  16. package/lib/components/display/detailList/detailList.stories.tsx +16 -3
  17. package/lib/components/display/feeds/README.md +3 -3
  18. package/lib/components/display/feeds/feeds.stories.tsx +3 -3
  19. package/lib/components/display/filePreview/filePreview.stories.tsx +111 -0
  20. package/lib/components/display/modal/README.md +3 -0
  21. package/lib/components/display/modal/modal.stories.tsx +50 -1
  22. package/lib/components/display/newCalendar/README.md +0 -6
  23. package/lib/components/display/newCalendar/newCalendar.stories.tsx +1 -1
  24. package/lib/components/display/newFeeds/README.md +1 -5
  25. package/lib/components/display/newFeeds/newFeeds.stories.tsx +3 -3
  26. package/lib/components/display/newKanban/README.md +0 -7
  27. package/lib/components/display/newList/README.md +1 -4
  28. package/lib/components/display/newTable/README.md +29 -9
  29. package/lib/components/display/newTable/newTable.stories.tsx +120 -9
  30. package/lib/components/display/tag/README.md +1 -1
  31. package/lib/components/display/tag/tag.stories.tsx +7 -0
  32. package/lib/components/input/markdown/markdown.stories.tsx +3 -1
  33. package/lib/components/input/uploadInput/uploadInput.stories.tsx +41 -0
  34. package/lib/components/navigation/leftNav/leftNav.stories.tsx +175 -0
  35. package/lib/components/navigation/tabs/tabs.stories.tsx +23 -0
  36. package/lib/components/template/calendarView/calendarView.stories.tsx +4 -4
  37. package/lib/components/template/chatDashboard/chatDashboard.stories.tsx +2 -2
  38. package/lib/mcp/tools/getBackendComponent.d.ts.map +1 -1
  39. package/lib/mcp/tools/getBackendComponent.js +7 -3
  40. package/lib/mcp/tools/getBackendComponent.js.map +1 -1
  41. package/lib/mcp/tools/suggestTemplate.js +3 -3
  42. package/lib/mcp/tools/suggestTemplate.js.map +1 -1
  43. package/package.json +1 -1
  44. package/lib/components/data/dataTemplate/dataModule.stories.tsx +0 -191
  45. package/lib/components/data/dataWrapper/dataWrapper.consumer.stories.tsx +0 -2125
  46. package/lib/components/data/dataWrapper/dataWrapper.utils.stories.tsx +0 -576
  47. package/lib/components/data/flexFilter/flexFilter.stories.tsx +0 -171
@@ -1,171 +0,0 @@
1
- import { Transition } from "@headlessui/react";
2
- import axios from "axios";
3
- import React, { useState } from "react";
4
- import { Button } from "../../action/button";
5
- import { StorySection } from "../../storyUtils";
6
- import { DataStructure } from "../dataTemplate/model";
7
- import {
8
- FlexFilter as FlexFilterComponent,
9
- FlexFilterData,
10
- renderFlexFilterConditions,
11
- } from ".";
12
- import { Toggle } from "../../action/toggle";
13
- import {
14
- meraqueDevSettings,
15
- MeraqueWorkOrderSchema,
16
- } from "../../data/testSchema";
17
-
18
- const meta = { title: "Data/Flex Filter" };
19
- export default meta;
20
-
21
- const sampleSchema: DataStructure[] = MeraqueWorkOrderSchema;
22
- const devSettings = meraqueDevSettings;
23
-
24
- export const FlexFilter = () => {
25
- const [bareFilters, setBareFilters] = useState<FlexFilterData[]>([
26
- { id: "bare-init", columnId: "", operator: "=", value: undefined },
27
- ]);
28
-
29
- const [autoFilters, setAutoFilters] = useState<FlexFilterData[]>([
30
- { id: "auto-init", columnId: "", operator: "=", value: undefined },
31
- ]);
32
-
33
- const [modalFilters, setModalFilters] = useState<FlexFilterData[]>([
34
- { id: "modal-init", columnId: "", operator: "=", value: undefined },
35
- ]);
36
-
37
- const [addCompFilters, setAddCompFilters] = useState<FlexFilterData[]>([
38
- { id: "addcomp-init", columnId: "", operator: "=", value: undefined },
39
- ]);
40
-
41
- const bareQueryConditions = renderFlexFilterConditions(
42
- bareFilters,
43
- sampleSchema,
44
- );
45
- const autoQueryConditions = renderFlexFilterConditions(
46
- autoFilters,
47
- sampleSchema,
48
- );
49
- const modalQueryConditions = renderFlexFilterConditions(
50
- modalFilters,
51
- sampleSchema,
52
- );
53
- const addCompQueryConditions = renderFlexFilterConditions(
54
- addCompFilters,
55
- sampleSchema,
56
- );
57
-
58
- return (
59
- <div className="flex flex-col space-y-12">
60
- <StorySection
61
- title="Variant: bare"
62
- description="Raw filter panel with no wrapper. Consumer renders their own container."
63
- >
64
- <div className="flex flex-col">
65
- <div className="max-w-[700px]">
66
- <FlexFilterComponent
67
- structure={sampleSchema}
68
- filters={bareFilters}
69
- onChange={setBareFilters}
70
- devSettings={devSettings}
71
- dbModule={axios}
72
- variant="bare"
73
- lib={{ Transition }}
74
- />
75
- </div>
76
- <div className="mt-4 p-4 bg-gray-50 rounded-lg border">
77
- <p className="text-sm font-semibold mb-2">
78
- Generated Query Conditions ({bareQueryConditions.length})
79
- </p>
80
- <pre className="text-xs whitespace-pre-wrap">
81
- {JSON.stringify(bareQueryConditions, null, 2)}
82
- </pre>
83
- </div>
84
- </div>
85
- </StorySection>
86
-
87
- <StorySection
88
- title="Variant: auto (PopUp on desktop, Modal on mobile)"
89
- description="Uses PopUp on md+ screens and Modal on mobile. Click the funnel icon to open."
90
- >
91
- <div className="flex flex-col w-96 max-w-96">
92
- <div className="flex gap-x-3 w-ful">
93
- <div className="h-12 bg-gray-100 rounded-lg flex-1"></div>
94
- <FlexFilterComponent
95
- structure={sampleSchema}
96
- filters={autoFilters}
97
- onChange={setAutoFilters}
98
- devSettings={devSettings}
99
- dbModule={axios}
100
- variant="auto"
101
- lib={{ Transition }}
102
- />
103
- </div>
104
- <div className="mt-4 p-4 bg-gray-50 rounded-lg border">
105
- <p className="text-sm font-semibold mb-2">
106
- Generated Query Conditions ({autoQueryConditions.length})
107
- </p>
108
- <pre className="text-xs whitespace-pre-wrap">
109
- {JSON.stringify(autoQueryConditions, null, 2)}
110
- </pre>
111
- </div>
112
- </div>
113
- </StorySection>
114
- <StorySection
115
- title="Variant: modal with custom CTA"
116
- description="Modal variant triggered by a custom button instead of the default funnel icon."
117
- >
118
- <div className="flex flex-col">
119
- <FlexFilterComponent
120
- structure={sampleSchema}
121
- filters={modalFilters}
122
- onChange={setModalFilters}
123
- devSettings={devSettings}
124
- dbModule={axios}
125
- variant="modal"
126
- lib={{ Transition }}
127
- ctaComp={<Button text="Filters" type="normal" size="small" />}
128
- />
129
- <div className="mt-4 p-4 bg-gray-50 rounded-lg border">
130
- <p className="text-sm font-semibold mb-2">
131
- Generated Query Conditions ({modalQueryConditions.length})
132
- </p>
133
- <pre className="text-xs whitespace-pre-wrap">
134
- {JSON.stringify(modalQueryConditions, null, 2)}
135
- </pre>
136
- </div>
137
- </div>
138
- </StorySection>
139
-
140
- <StorySection
141
- title="Variant: bare with additional filter components"
142
- description="bareListFilterAddComponent renders extra filter inputs above the flex filter rows."
143
- >
144
- <div className="flex flex-col">
145
- <div className="max-w-[700px]">
146
- <FlexFilterComponent
147
- structure={sampleSchema}
148
- filters={addCompFilters}
149
- onChange={setAddCompFilters}
150
- devSettings={devSettings}
151
- dbModule={axios}
152
- variant="bare"
153
- lib={{ Transition }}
154
- bareListFilterAddComponent={[
155
- <Toggle text="Show all events" value={true} direction="left" />,
156
- ]}
157
- />
158
- </div>
159
- <div className="mt-4 p-4 bg-gray-50 rounded-lg border">
160
- <p className="text-sm font-semibold mb-2">
161
- Generated Query Conditions ({addCompQueryConditions.length})
162
- </p>
163
- <pre className="text-xs whitespace-pre-wrap">
164
- {JSON.stringify(addCompQueryConditions, null, 2)}
165
- </pre>
166
- </div>
167
- </div>
168
- </StorySection>
169
- </div>
170
- );
171
- };