@fayz-ai/ui 0.9.0 → 0.10.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.
Files changed (156) hide show
  1. package/README.md +2 -2
  2. package/dist/analytics/AnalyticsCard.d.ts +10 -0
  3. package/dist/analytics/AnalyticsCard.d.ts.map +1 -0
  4. package/dist/analytics/AnalyticsControls.d.ts +18 -0
  5. package/dist/analytics/AnalyticsControls.d.ts.map +1 -0
  6. package/dist/analytics/AnalyticsGrid.d.ts +16 -0
  7. package/dist/analytics/AnalyticsGrid.d.ts.map +1 -0
  8. package/dist/analytics/context.d.ts +58 -0
  9. package/dist/analytics/context.d.ts.map +1 -0
  10. package/dist/analytics/derive.d.ts +81 -0
  11. package/dist/analytics/derive.d.ts.map +1 -0
  12. package/dist/analytics/index.d.ts +13 -0
  13. package/dist/analytics/index.d.ts.map +1 -0
  14. package/dist/analytics/range.d.ts +22 -0
  15. package/dist/analytics/range.d.ts.map +1 -0
  16. package/dist/{chunk-PVIB724L.js → chunk-22EVFMS3.js} +5 -3
  17. package/dist/chunk-22EVFMS3.js.map +1 -0
  18. package/dist/{chunk-G6OKZ7WL.js → chunk-6V5MGYXH.js} +13 -9
  19. package/dist/chunk-6V5MGYXH.js.map +1 -0
  20. package/dist/{chunk-KV3MHB6N.js → chunk-H63TOSQ7.js} +196 -53
  21. package/dist/chunk-H63TOSQ7.js.map +1 -0
  22. package/dist/{chunk-OUPJDGKE.js → chunk-I6CPKAOD.js} +134 -37
  23. package/dist/chunk-I6CPKAOD.js.map +1 -0
  24. package/dist/{chunk-YRVE4FOD.js → chunk-OKZ6WQB3.js} +3 -3
  25. package/dist/chunk-OKZ6WQB3.js.map +1 -0
  26. package/dist/{chunk-S5KNM4D2.js → chunk-SEIY2F5F.js} +235 -107
  27. package/dist/chunk-SEIY2F5F.js.map +1 -0
  28. package/dist/{chunk-75EFDLST.js → chunk-VAKWUUVC.js} +157 -6
  29. package/dist/chunk-VAKWUUVC.js.map +1 -0
  30. package/dist/dashboard/OnboardingWidget.d.ts +2 -14
  31. package/dist/dashboard/OnboardingWidget.d.ts.map +1 -1
  32. package/dist/dashboard/SidebarOnboarding.d.ts +28 -0
  33. package/dist/dashboard/SidebarOnboarding.d.ts.map +1 -0
  34. package/dist/dashboard/index.d.ts +2 -0
  35. package/dist/dashboard/index.d.ts.map +1 -1
  36. package/dist/dashboard/index.js +4 -4
  37. package/dist/dashboard/types.d.ts +18 -0
  38. package/dist/dashboard/types.d.ts.map +1 -1
  39. package/dist/dashboard/useOnboardingProgress.d.ts +28 -0
  40. package/dist/dashboard/useOnboardingProgress.d.ts.map +1 -0
  41. package/dist/icons.js +1 -1
  42. package/dist/index.d.ts +5 -4
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +960 -14
  45. package/dist/index.js.map +1 -1
  46. package/dist/layout/AppShell.d.ts +14 -1
  47. package/dist/layout/AppShell.d.ts.map +1 -1
  48. package/dist/layout/ModulePage.d.ts +11 -2
  49. package/dist/layout/ModulePage.d.ts.map +1 -1
  50. package/dist/layout/Sidebar.d.ts +8 -1
  51. package/dist/layout/Sidebar.d.ts.map +1 -1
  52. package/dist/layout/index.js +4 -4
  53. package/dist/lib/cn.d.ts.map +1 -0
  54. package/dist/preset.d.ts +3 -0
  55. package/dist/preset.d.ts.map +1 -0
  56. package/dist/primitives/data-table.d.ts +19 -4
  57. package/dist/primitives/data-table.d.ts.map +1 -1
  58. package/dist/primitives/date-picker.d.ts +4 -2
  59. package/dist/primitives/date-picker.d.ts.map +1 -1
  60. package/dist/primitives/filter-chip.d.ts +26 -0
  61. package/dist/primitives/filter-chip.d.ts.map +1 -0
  62. package/dist/primitives/header-tabs.d.ts +32 -0
  63. package/dist/primitives/header-tabs.d.ts.map +1 -0
  64. package/dist/primitives/hint.d.ts +25 -0
  65. package/dist/primitives/hint.d.ts.map +1 -0
  66. package/dist/primitives/index.d.ts +7 -0
  67. package/dist/primitives/index.d.ts.map +1 -1
  68. package/dist/primitives/index.js +4 -4
  69. package/dist/primitives/list-view.d.ts +14 -1
  70. package/dist/primitives/list-view.d.ts.map +1 -1
  71. package/dist/primitives/page-header.d.ts +23 -0
  72. package/dist/primitives/page-header.d.ts.map +1 -0
  73. package/dist/primitives/stat-tiles.d.ts +30 -0
  74. package/dist/primitives/stat-tiles.d.ts.map +1 -0
  75. package/dist/primitives/switch.d.ts +11 -0
  76. package/dist/primitives/switch.d.ts.map +1 -0
  77. package/dist/stores/index.d.ts +1 -0
  78. package/dist/stores/index.d.ts.map +1 -1
  79. package/dist/stores/page-header.store.d.ts +69 -0
  80. package/dist/stores/page-header.store.d.ts.map +1 -0
  81. package/package.json +6 -15
  82. package/dist/chunk-75EFDLST.js.map +0 -1
  83. package/dist/chunk-G6OKZ7WL.js.map +0 -1
  84. package/dist/chunk-KV3MHB6N.js.map +0 -1
  85. package/dist/chunk-OUPJDGKE.js.map +0 -1
  86. package/dist/chunk-PVIB724L.js.map +0 -1
  87. package/dist/chunk-S5KNM4D2.js.map +0 -1
  88. package/dist/chunk-YRVE4FOD.js.map +0 -1
  89. package/dist/utils/cn.d.ts.map +0 -1
  90. package/src/dashboard/ChartWidget.tsx +0 -50
  91. package/src/dashboard/ChartWidgetInner.tsx +0 -83
  92. package/src/dashboard/DashboardCanvas.tsx +0 -210
  93. package/src/dashboard/DashboardCustomizeMenu.tsx +0 -53
  94. package/src/dashboard/DashboardGrid.tsx +0 -35
  95. package/src/dashboard/DashboardRange.tsx +0 -62
  96. package/src/dashboard/GoldCard.tsx +0 -38
  97. package/src/dashboard/KpiCard.tsx +0 -238
  98. package/src/dashboard/OnboardingWidget.tsx +0 -140
  99. package/src/dashboard/TableWidget.tsx +0 -51
  100. package/src/dashboard/define.ts +0 -53
  101. package/src/dashboard/icon.ts +0 -13
  102. package/src/dashboard/index.ts +0 -38
  103. package/src/dashboard/layout.ts +0 -50
  104. package/src/dashboard/preferences.ts +0 -71
  105. package/src/dashboard/types.ts +0 -41
  106. package/src/icons.ts +0 -66
  107. package/src/index.ts +0 -238
  108. package/src/layout/AppShell.tsx +0 -987
  109. package/src/layout/ContentSplit.tsx +0 -153
  110. package/src/layout/ModulePage.tsx +0 -466
  111. package/src/layout/PageTransition.tsx +0 -57
  112. package/src/layout/SaveBar.tsx +0 -247
  113. package/src/layout/Sidebar.tsx +0 -535
  114. package/src/layout/Topbar.tsx +0 -462
  115. package/src/layout/index.ts +0 -39
  116. package/src/layout/useCrossModuleBack.ts +0 -30
  117. package/src/primitives/Avatar.tsx +0 -48
  118. package/src/primitives/SearchCombobox.tsx +0 -216
  119. package/src/primitives/badge.tsx +0 -68
  120. package/src/primitives/breadcrumb.tsx +0 -43
  121. package/src/primitives/button.tsx +0 -60
  122. package/src/primitives/card.tsx +0 -79
  123. package/src/primitives/checkbox.tsx +0 -53
  124. package/src/primitives/confirm-dialog.tsx +0 -125
  125. package/src/primitives/currency-input.tsx +0 -121
  126. package/src/primitives/data-table.tsx +0 -160
  127. package/src/primitives/date-picker.tsx +0 -225
  128. package/src/primitives/dropdown.tsx +0 -196
  129. package/src/primitives/index.ts +0 -87
  130. package/src/primitives/input.tsx +0 -50
  131. package/src/primitives/list-view.tsx +0 -252
  132. package/src/primitives/markdown-editor.tsx +0 -75
  133. package/src/primitives/markdown.tsx +0 -169
  134. package/src/primitives/modal.tsx +0 -156
  135. package/src/primitives/phone-link.tsx +0 -138
  136. package/src/primitives/popover.tsx +0 -30
  137. package/src/primitives/search-select.tsx +0 -314
  138. package/src/primitives/segmented-control.tsx +0 -66
  139. package/src/primitives/select.tsx +0 -157
  140. package/src/primitives/separator.tsx +0 -29
  141. package/src/primitives/sheet.tsx +0 -181
  142. package/src/primitives/skeleton.tsx +0 -46
  143. package/src/primitives/tabs.tsx +0 -53
  144. package/src/primitives/time-picker.tsx +0 -148
  145. package/src/primitives/toast.tsx +0 -46
  146. package/src/primitives/tooltip.tsx +0 -28
  147. package/src/stores/index.ts +0 -10
  148. package/src/stores/layout.store.ts +0 -31
  149. package/src/stores/theme.store.ts +0 -457
  150. package/src/tailwind.ts +0 -43
  151. package/src/theme/index.ts +0 -94
  152. package/src/theme/preset.ts +0 -209
  153. package/src/theme/presets.ts +0 -106
  154. package/src/utils/cn.ts +0 -6
  155. /package/dist/{utils → lib}/cn.d.ts +0 -0
  156. /package/{src → dist}/styles.css +0 -0
package/src/index.ts DELETED
@@ -1,238 +0,0 @@
1
- // Utilities
2
- export { cn } from './utils/cn'
3
-
4
- // Primitives
5
- export {
6
- Button,
7
- buttonVariants,
8
- type ButtonProps,
9
- Input,
10
- type InputProps,
11
- Badge,
12
- badgeVariants,
13
- type BadgeProps,
14
- Card,
15
- CardHeader,
16
- CardFooter,
17
- CardTitle,
18
- CardDescription,
19
- CardContent,
20
- Modal,
21
- ModalPortal,
22
- ModalOverlay,
23
- ModalClose,
24
- ModalTrigger,
25
- ModalContent,
26
- ModalHeader,
27
- ModalBody,
28
- ModalFooter,
29
- ModalTitle,
30
- ModalDescription,
31
- type ModalSize,
32
- Dropdown,
33
- DropdownTrigger,
34
- DropdownContent,
35
- DropdownItem,
36
- DropdownCheckboxItem,
37
- DropdownRadioItem,
38
- DropdownLabel,
39
- DropdownSeparator,
40
- DropdownShortcut,
41
- DropdownGroup,
42
- DropdownPortal,
43
- DropdownSub,
44
- DropdownSubContent,
45
- DropdownSubTrigger,
46
- DropdownRadioGroup,
47
- DataTable,
48
- type DataTableProps,
49
- Checkbox,
50
- type CheckboxColor,
51
- type CheckboxProps,
52
- Sheet,
53
- SheetPortal,
54
- SheetOverlay,
55
- SheetTrigger,
56
- SheetClose,
57
- SheetContent,
58
- SheetHeader,
59
- SheetBody,
60
- SheetFooter,
61
- SheetTitle,
62
- SheetDescription,
63
- Select,
64
- SelectGroup,
65
- SelectValue,
66
- SelectTrigger,
67
- SelectContent,
68
- SelectLabel,
69
- SelectItem,
70
- SelectSeparator,
71
- SelectScrollUpButton,
72
- SelectScrollDownButton,
73
- ToastProvider,
74
- toast,
75
- Tabs,
76
- TabsList,
77
- TabsTrigger,
78
- TabsContent,
79
- Separator,
80
- PhoneLink,
81
- normalizePhone,
82
- type PhoneLinkProps,
83
- type NormalizedPhone,
84
- Breadcrumb,
85
- Tooltip,
86
- TooltipTrigger,
87
- TooltipContent,
88
- TooltipProvider,
89
- TimePicker,
90
- Skeleton,
91
- TableSkeleton,
92
- ListView,
93
- DatePicker,
94
- SearchSelect,
95
- type SearchSelectOption,
96
- type SearchSelectProps,
97
- CurrencyInput,
98
- ConfirmDialog,
99
- Popover,
100
- PopoverTrigger,
101
- PopoverContent,
102
- SegmentedControl,
103
- type SegmentedControlProps,
104
- type SegmentedOption,
105
- Markdown,
106
- renderMarkdown,
107
- type MarkdownProps,
108
- MarkdownEditor,
109
- type MarkdownEditorProps,
110
- SearchCombobox,
111
- type ComboboxOption,
112
- } from './primitives'
113
-
114
- // Layout
115
- export {
116
- AppShell,
117
- type AppShellProps,
118
- type AppShellUser,
119
- type BottomNavItem,
120
- type BottomNavRouteItem,
121
- type BottomNavActionItem,
122
- type MobileHeaderVariant,
123
- Sidebar,
124
- type SidebarProps,
125
- type SidebarUser,
126
- type NavigationItem,
127
- ICON_MAP,
128
- Topbar,
129
- type TopbarProps,
130
- ModulePage,
131
- SubpageHeader,
132
- ContentSplit,
133
- ContentSplitTrigger,
134
- ModuleLayoutProvider,
135
- useModuleLayout,
136
- PageHeaderActions,
137
- BackStyleProvider,
138
- useBackStyle,
139
- SaveBar,
140
- SaveBarProvider,
141
- useSaveBar,
142
- useBackHandler,
143
- type SaveBarRegistration,
144
- useModuleHeaderSlot,
145
- useModuleHeaderActionsSlot,
146
- PageTransition,
147
- NavTransitionProvider,
148
- useNavTransition,
149
- type NavTransition,
150
- type ModulePageProps,
151
- type ModuleNavItem,
152
- type ModuleNavVariant,
153
- type SubpageHeaderProps,
154
- type ContentSplitProps,
155
- type ContentSplitTriggerProps,
156
- type BackButtonStyle,
157
- } from './layout'
158
-
159
- // Stores
160
- export {
161
- useLayoutStore,
162
- useThemeStore,
163
- lightTheme,
164
- darkTheme,
165
- type ThemeTokens,
166
- type SemanticColors,
167
- type UIPerceptionTokens,
168
- type CreateThemeOptions,
169
- } from './stores'
170
-
171
- // Theme
172
- export {
173
- ThemeProvider,
174
- useTheme,
175
- createTheme,
176
- createFayzTheme,
177
- fayzThemePresets,
178
- type ThemeProviderProps,
179
- type FayzThemePresetId,
180
- } from './theme'
181
-
182
- // Avatar (used by the admin shell: TeamTab, UserProfile)
183
- export { Avatar, AvatarImage, AvatarFallback } from './primitives/Avatar'
184
-
185
- // Dashboard widget kit
186
- export {
187
- DashboardCanvas,
188
- WidgetGrid,
189
- DashboardNavigateProvider,
190
- useDashboardNavigate,
191
- type DashboardCanvasProps,
192
- resolveDashboardLayout,
193
- type LaidOutWidget,
194
- useDashboardPreferences,
195
- type DashboardPreferencesState,
196
- DashboardCustomizeMenu,
197
- type DashboardCustomizeMenuProps,
198
- DashboardGrid,
199
- type DashboardGridItem,
200
- type DashboardGridProps,
201
- GoldCard,
202
- type GoldCardProps,
203
- DashboardRangeProvider,
204
- DashboardRangeControl,
205
- useDashboardRange,
206
- DEFAULT_RANGE_OPTIONS,
207
- type DashboardRange,
208
- type DashboardRangeProviderProps,
209
- type DashboardRangeOptions,
210
- KpiCard,
211
- formatKpiValue,
212
- type KpiCardProps,
213
- ChartWidget,
214
- type ChartWidgetProps,
215
- TableWidget,
216
- type TableWidgetProps,
217
- OnboardingWidget,
218
- type OnboardingStepInput,
219
- type OnboardingWidgetProps,
220
- renderIcon,
221
- defineKpiWidget,
222
- defineChartWidget,
223
- defineTableWidget,
224
- defineOnboardingWidget,
225
- defineCustomWidget,
226
- type DefineWidgetInput,
227
- type KpiFormat,
228
- type KpiTrend,
229
- type KpiValue,
230
- type KpiCurrency,
231
- type IconRef,
232
- type ChartType,
233
- type ChartSeries,
234
- } from './dashboard'
235
-
236
- // Central lucide icon registry — curated tree-shakable set + escape hatch for
237
- // apps that need icon names outside it (registerIcons({ Name: Component })).
238
- export { registerIcons, getLucideIcon } from './icons'