@fluid-app/rep-widgets 0.1.0

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 (228) hide show
  1. package/dist/AlertWidget-2JHMNYIY.js +5 -0
  2. package/dist/AlertWidget-2JHMNYIY.js.map +1 -0
  3. package/dist/AlertWidget-VHXWOKM4.cjs +18 -0
  4. package/dist/AlertWidget-VHXWOKM4.cjs.map +1 -0
  5. package/dist/CalendarWidget-AQ7PVNSI.cjs +18 -0
  6. package/dist/CalendarWidget-AQ7PVNSI.cjs.map +1 -0
  7. package/dist/CalendarWidget-E54LNKCG.js +5 -0
  8. package/dist/CalendarWidget-E54LNKCG.js.map +1 -0
  9. package/dist/CarouselWidget-IPPFSXDZ.js +8 -0
  10. package/dist/CarouselWidget-IPPFSXDZ.js.map +1 -0
  11. package/dist/CarouselWidget-ZG6LJJXG.cjs +21 -0
  12. package/dist/CarouselWidget-ZG6LJJXG.cjs.map +1 -0
  13. package/dist/CatchUpWidget-CSSQMPPA.cjs +18 -0
  14. package/dist/CatchUpWidget-CSSQMPPA.cjs.map +1 -0
  15. package/dist/CatchUpWidget-HYJRKFN3.js +5 -0
  16. package/dist/CatchUpWidget-HYJRKFN3.js.map +1 -0
  17. package/dist/ChartWidget-MBLGRSJQ.cjs +19 -0
  18. package/dist/ChartWidget-MBLGRSJQ.cjs.map +1 -0
  19. package/dist/ChartWidget-OL5DRMGA.js +6 -0
  20. package/dist/ChartWidget-OL5DRMGA.js.map +1 -0
  21. package/dist/ContainerWidget-DETCLP52.js +8 -0
  22. package/dist/ContainerWidget-DETCLP52.js.map +1 -0
  23. package/dist/ContainerWidget-XQDJSJXO.cjs +21 -0
  24. package/dist/ContainerWidget-XQDJSJXO.cjs.map +1 -0
  25. package/dist/EmbedWidget-HTR2MJ25.cjs +16 -0
  26. package/dist/EmbedWidget-HTR2MJ25.cjs.map +1 -0
  27. package/dist/EmbedWidget-O2XFGDJS.js +3 -0
  28. package/dist/EmbedWidget-O2XFGDJS.js.map +1 -0
  29. package/dist/ImageWidget-L2MIYWTE.cjs +17 -0
  30. package/dist/ImageWidget-L2MIYWTE.cjs.map +1 -0
  31. package/dist/ImageWidget-RF6XKPPV.js +4 -0
  32. package/dist/ImageWidget-RF6XKPPV.js.map +1 -0
  33. package/dist/LayoutWidget-4XISA6RO.cjs +20 -0
  34. package/dist/LayoutWidget-4XISA6RO.cjs.map +1 -0
  35. package/dist/LayoutWidget-WZSMZLLM.js +7 -0
  36. package/dist/LayoutWidget-WZSMZLLM.js.map +1 -0
  37. package/dist/ListWidget-XY5C3P3C.cjs +19 -0
  38. package/dist/ListWidget-XY5C3P3C.cjs.map +1 -0
  39. package/dist/ListWidget-ZFRV6DKI.js +6 -0
  40. package/dist/ListWidget-ZFRV6DKI.js.map +1 -0
  41. package/dist/MySiteWidget-75NJUIWV.js +5 -0
  42. package/dist/MySiteWidget-75NJUIWV.js.map +1 -0
  43. package/dist/MySiteWidget-CBDKQT35.cjs +18 -0
  44. package/dist/MySiteWidget-CBDKQT35.cjs.map +1 -0
  45. package/dist/NestedWidget-N4I7LOVX.js +6 -0
  46. package/dist/NestedWidget-N4I7LOVX.js.map +1 -0
  47. package/dist/NestedWidget-VO3YYOOH.cjs +19 -0
  48. package/dist/NestedWidget-VO3YYOOH.cjs.map +1 -0
  49. package/dist/QuickShareWidget-3VGSFY4J.js +4 -0
  50. package/dist/QuickShareWidget-3VGSFY4J.js.map +1 -0
  51. package/dist/QuickShareWidget-VHDB5SYT.cjs +17 -0
  52. package/dist/QuickShareWidget-VHDB5SYT.cjs.map +1 -0
  53. package/dist/RecentActivityWidget-3KAR64SB.js +5 -0
  54. package/dist/RecentActivityWidget-3KAR64SB.js.map +1 -0
  55. package/dist/RecentActivityWidget-X5UABJHL.cjs +18 -0
  56. package/dist/RecentActivityWidget-X5UABJHL.cjs.map +1 -0
  57. package/dist/SpacerWidget-K7CXVECO.cjs +16 -0
  58. package/dist/SpacerWidget-K7CXVECO.cjs.map +1 -0
  59. package/dist/SpacerWidget-ODKNZAND.js +3 -0
  60. package/dist/SpacerWidget-ODKNZAND.js.map +1 -0
  61. package/dist/TableWidget-MDEBHVIA.cjs +20 -0
  62. package/dist/TableWidget-MDEBHVIA.cjs.map +1 -0
  63. package/dist/TableWidget-W6LL5FLE.js +7 -0
  64. package/dist/TableWidget-W6LL5FLE.js.map +1 -0
  65. package/dist/TextWidget-D72TL53O.js +4 -0
  66. package/dist/TextWidget-D72TL53O.js.map +1 -0
  67. package/dist/TextWidget-DYINWJGB.cjs +17 -0
  68. package/dist/TextWidget-DYINWJGB.cjs.map +1 -0
  69. package/dist/ToDoWidget-DH544SJH.cjs +18 -0
  70. package/dist/ToDoWidget-DH544SJH.cjs.map +1 -0
  71. package/dist/ToDoWidget-LCAYWRVH.js +5 -0
  72. package/dist/ToDoWidget-LCAYWRVH.js.map +1 -0
  73. package/dist/VideoWidget-VHAZTNLI.js +4 -0
  74. package/dist/VideoWidget-VHAZTNLI.js.map +1 -0
  75. package/dist/VideoWidget-YLRKZ27S.cjs +17 -0
  76. package/dist/VideoWidget-YLRKZ27S.cjs.map +1 -0
  77. package/dist/chunk-2KQFMF6L.js +413 -0
  78. package/dist/chunk-2KQFMF6L.js.map +1 -0
  79. package/dist/chunk-3CUVGQQI.cjs +15 -0
  80. package/dist/chunk-3CUVGQQI.cjs.map +1 -0
  81. package/dist/chunk-3RV7AYQZ.js +149 -0
  82. package/dist/chunk-3RV7AYQZ.js.map +1 -0
  83. package/dist/chunk-4M2A5W2D.cjs +42 -0
  84. package/dist/chunk-4M2A5W2D.cjs.map +1 -0
  85. package/dist/chunk-4XJCU4HY.js +248 -0
  86. package/dist/chunk-4XJCU4HY.js.map +1 -0
  87. package/dist/chunk-5HHN5MRZ.js +11 -0
  88. package/dist/chunk-5HHN5MRZ.js.map +1 -0
  89. package/dist/chunk-6GF46P3S.js +33 -0
  90. package/dist/chunk-6GF46P3S.js.map +1 -0
  91. package/dist/chunk-7JIRJTGY.js +32 -0
  92. package/dist/chunk-7JIRJTGY.js.map +1 -0
  93. package/dist/chunk-7XWMJDFE.js +443 -0
  94. package/dist/chunk-7XWMJDFE.js.map +1 -0
  95. package/dist/chunk-C7A3OMIF.cjs +446 -0
  96. package/dist/chunk-C7A3OMIF.cjs.map +1 -0
  97. package/dist/chunk-CEZOXMO6.js +377 -0
  98. package/dist/chunk-CEZOXMO6.js.map +1 -0
  99. package/dist/chunk-CM7D7WGL.cjs +36 -0
  100. package/dist/chunk-CM7D7WGL.cjs.map +1 -0
  101. package/dist/chunk-D4ULCQ42.cjs +353 -0
  102. package/dist/chunk-D4ULCQ42.cjs.map +1 -0
  103. package/dist/chunk-DKGP3DTX.cjs +389 -0
  104. package/dist/chunk-DKGP3DTX.cjs.map +1 -0
  105. package/dist/chunk-DM2JDG3D.js +318 -0
  106. package/dist/chunk-DM2JDG3D.js.map +1 -0
  107. package/dist/chunk-DW6V4ZCT.cjs +140 -0
  108. package/dist/chunk-DW6V4ZCT.cjs.map +1 -0
  109. package/dist/chunk-E4MY6TUE.cjs +255 -0
  110. package/dist/chunk-E4MY6TUE.cjs.map +1 -0
  111. package/dist/chunk-EHSWARYY.js +39 -0
  112. package/dist/chunk-EHSWARYY.js.map +1 -0
  113. package/dist/chunk-EUOP3MWJ.cjs +118 -0
  114. package/dist/chunk-EUOP3MWJ.cjs.map +1 -0
  115. package/dist/chunk-F3SFIX7U.cjs +58 -0
  116. package/dist/chunk-F3SFIX7U.cjs.map +1 -0
  117. package/dist/chunk-F63VY23B.js +174 -0
  118. package/dist/chunk-F63VY23B.js.map +1 -0
  119. package/dist/chunk-FSLUSFJ2.cjs +75 -0
  120. package/dist/chunk-FSLUSFJ2.cjs.map +1 -0
  121. package/dist/chunk-GA52TZC4.js +133 -0
  122. package/dist/chunk-GA52TZC4.js.map +1 -0
  123. package/dist/chunk-GRFCSQ2M.js +13 -0
  124. package/dist/chunk-GRFCSQ2M.js.map +1 -0
  125. package/dist/chunk-HBRGW3CJ.js +383 -0
  126. package/dist/chunk-HBRGW3CJ.js.map +1 -0
  127. package/dist/chunk-HDA2ZOV2.cjs +13 -0
  128. package/dist/chunk-HDA2ZOV2.cjs.map +1 -0
  129. package/dist/chunk-HQVTEFSO.js +386 -0
  130. package/dist/chunk-HQVTEFSO.js.map +1 -0
  131. package/dist/chunk-IU657MP5.js +270 -0
  132. package/dist/chunk-IU657MP5.js.map +1 -0
  133. package/dist/chunk-IY3BNQ5Y.js +24 -0
  134. package/dist/chunk-IY3BNQ5Y.js.map +1 -0
  135. package/dist/chunk-J2FIIZSN.js +137 -0
  136. package/dist/chunk-J2FIIZSN.js.map +1 -0
  137. package/dist/chunk-JRBJXVXL.cjs +251 -0
  138. package/dist/chunk-JRBJXVXL.cjs.map +1 -0
  139. package/dist/chunk-JYWKXNUO.cjs +37 -0
  140. package/dist/chunk-JYWKXNUO.cjs.map +1 -0
  141. package/dist/chunk-KE27RJ3X.cjs +954 -0
  142. package/dist/chunk-KE27RJ3X.cjs.map +1 -0
  143. package/dist/chunk-M4J3OZJF.cjs +152 -0
  144. package/dist/chunk-M4J3OZJF.cjs.map +1 -0
  145. package/dist/chunk-MKUJOEAC.cjs +178 -0
  146. package/dist/chunk-MKUJOEAC.cjs.map +1 -0
  147. package/dist/chunk-MNRHGJDQ.cjs +225 -0
  148. package/dist/chunk-MNRHGJDQ.cjs.map +1 -0
  149. package/dist/chunk-MNWWZGL2.js +14 -0
  150. package/dist/chunk-MNWWZGL2.js.map +1 -0
  151. package/dist/chunk-MWED53XR.js +115 -0
  152. package/dist/chunk-MWED53XR.js.map +1 -0
  153. package/dist/chunk-NCQQI2T2.cjs +386 -0
  154. package/dist/chunk-NCQQI2T2.cjs.map +1 -0
  155. package/dist/chunk-NGYR4RQF.js +476 -0
  156. package/dist/chunk-NGYR4RQF.js.map +1 -0
  157. package/dist/chunk-NNJDJNSY.cjs +197 -0
  158. package/dist/chunk-NNJDJNSY.cjs.map +1 -0
  159. package/dist/chunk-NOZVVD6G.cjs +26 -0
  160. package/dist/chunk-NOZVVD6G.cjs.map +1 -0
  161. package/dist/chunk-NUG3DWF7.js +55 -0
  162. package/dist/chunk-NUG3DWF7.js.map +1 -0
  163. package/dist/chunk-NXAZEYLC.cjs +136 -0
  164. package/dist/chunk-NXAZEYLC.cjs.map +1 -0
  165. package/dist/chunk-PNVBMN27.cjs +380 -0
  166. package/dist/chunk-PNVBMN27.cjs.map +1 -0
  167. package/dist/chunk-RKDOQV4T.js +73 -0
  168. package/dist/chunk-RKDOQV4T.js.map +1 -0
  169. package/dist/chunk-RMZFC7HF.cjs +17 -0
  170. package/dist/chunk-RMZFC7HF.cjs.map +1 -0
  171. package/dist/chunk-SBHL3GFW.js +40 -0
  172. package/dist/chunk-SBHL3GFW.js.map +1 -0
  173. package/dist/chunk-TFJQ4525.cjs +416 -0
  174. package/dist/chunk-TFJQ4525.cjs.map +1 -0
  175. package/dist/chunk-VBJ5FT4C.cjs +273 -0
  176. package/dist/chunk-VBJ5FT4C.cjs.map +1 -0
  177. package/dist/chunk-VZFL5BZM.js +222 -0
  178. package/dist/chunk-VZFL5BZM.js.map +1 -0
  179. package/dist/chunk-W7VPL5I4.js +252 -0
  180. package/dist/chunk-W7VPL5I4.js.map +1 -0
  181. package/dist/chunk-XALQ3ANE.cjs +34 -0
  182. package/dist/chunk-XALQ3ANE.cjs.map +1 -0
  183. package/dist/chunk-YCYKV5KF.cjs +43 -0
  184. package/dist/chunk-YCYKV5KF.cjs.map +1 -0
  185. package/dist/chunk-YJZGIS4L.cjs +479 -0
  186. package/dist/chunk-YJZGIS4L.cjs.map +1 -0
  187. package/dist/chunk-YU5DAILW.cjs +14 -0
  188. package/dist/chunk-YU5DAILW.cjs.map +1 -0
  189. package/dist/chunk-YY5WLV63.js +951 -0
  190. package/dist/chunk-YY5WLV63.js.map +1 -0
  191. package/dist/chunk-ZS7C474P.js +3 -0
  192. package/dist/chunk-ZS7C474P.js.map +1 -0
  193. package/dist/chunk-ZSUGXJWD.js +194 -0
  194. package/dist/chunk-ZSUGXJWD.js.map +1 -0
  195. package/dist/chunk-ZWFK5UUU.js +11 -0
  196. package/dist/chunk-ZWFK5UUU.js.map +1 -0
  197. package/dist/components/index.cjs +17 -0
  198. package/dist/components/index.cjs.map +1 -0
  199. package/dist/components/index.d.cts +8 -0
  200. package/dist/components/index.d.ts +8 -0
  201. package/dist/components/index.js +4 -0
  202. package/dist/components/index.js.map +1 -0
  203. package/dist/contexts/index.cjs +29 -0
  204. package/dist/contexts/index.cjs.map +1 -0
  205. package/dist/contexts/index.d.cts +73 -0
  206. package/dist/contexts/index.d.ts +73 -0
  207. package/dist/contexts/index.js +4 -0
  208. package/dist/contexts/index.js.map +1 -0
  209. package/dist/core/index.cjs +55 -0
  210. package/dist/core/index.cjs.map +1 -0
  211. package/dist/core/index.d.cts +64 -0
  212. package/dist/core/index.d.ts +64 -0
  213. package/dist/core/index.js +6 -0
  214. package/dist/core/index.js.map +1 -0
  215. package/dist/ui/index.cjs +80 -0
  216. package/dist/ui/index.cjs.map +1 -0
  217. package/dist/ui/index.d.cts +69 -0
  218. package/dist/ui/index.d.ts +69 -0
  219. package/dist/ui/index.js +7 -0
  220. package/dist/ui/index.js.map +1 -0
  221. package/dist/widgets/index.cjs +217 -0
  222. package/dist/widgets/index.cjs.map +1 -0
  223. package/dist/widgets/index.d.cts +397 -0
  224. package/dist/widgets/index.d.ts +397 -0
  225. package/dist/widgets/index.js +59 -0
  226. package/dist/widgets/index.js.map +1 -0
  227. package/package.json +99 -0
  228. package/styles/globals.css +20 -0
@@ -0,0 +1,397 @@
1
+ import * as _fluid_app_rep_core_registries from '@fluid-app/rep-core/registries';
2
+ import { WidgetPropertySchema } from '@fluid-app/rep-core/registries';
3
+ export { gapValues } from '@fluid-app/rep-core/registries';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import { ComponentProps, ComponentType } from 'react';
6
+ import { FontSizeOptions, ColorOptions, BackgroundValue, PaddingOptions, BorderRadiusOptions, WidgetSchema, AlignOptions, ButtonSizeOptions, SectionLayoutType, GapOptions, TypedWidgetSchema, ShareableItem } from '@fluid-app/rep-core/types';
7
+
8
+ type TextWidgetProps = ComponentProps<"div"> & {
9
+ titleEnabled?: boolean;
10
+ title?: string;
11
+ titleFontSize?: FontSizeOptions;
12
+ titleColor?: ColorOptions;
13
+ description?: string;
14
+ descriptionFontSize?: FontSizeOptions;
15
+ descriptionColor?: ColorOptions;
16
+ background?: BackgroundValue;
17
+ padding?: PaddingOptions;
18
+ borderRadius?: BorderRadiusOptions;
19
+ };
20
+ declare function TextWidget({ titleEnabled, title, titleFontSize, titleColor, description, descriptionFontSize, descriptionColor, background, padding, borderRadius, className, ...props }: TextWidgetProps): react_jsx_runtime.JSX.Element;
21
+ declare const textWidgetPropertySchema: WidgetPropertySchema;
22
+
23
+ /**
24
+ * AlertWidget - Wrapper for TextWidget (for backwards compatibility)
25
+ */
26
+ declare function AlertWidget(props: ComponentProps<typeof TextWidget>): react_jsx_runtime.JSX.Element;
27
+ declare const alertWidgetPropertySchema: WidgetPropertySchema;
28
+
29
+ type CalendarWidgetProps = ComponentProps<"div"> & {
30
+ titleEnabled?: boolean;
31
+ titleText?: string;
32
+ titleFontSize?: FontSizeOptions;
33
+ titleColor?: ColorOptions;
34
+ background?: BackgroundValue;
35
+ textColor?: ColorOptions;
36
+ accentColor?: ColorOptions;
37
+ padding?: PaddingOptions;
38
+ borderRadius?: BorderRadiusOptions;
39
+ };
40
+ declare function CalendarWidget({ titleEnabled, titleText, titleFontSize, titleColor, background, textColor, accentColor, padding, borderRadius, className, ...props }: CalendarWidgetProps): react_jsx_runtime.JSX.Element;
41
+ declare const calendarWidgetPropertySchema: WidgetPropertySchema;
42
+
43
+ type CarouselSlide = {
44
+ id: string;
45
+ content: WidgetSchema;
46
+ title?: string;
47
+ description?: string;
48
+ buttonEnabled?: boolean;
49
+ buttonText?: string;
50
+ buttonVariant?: "default" | "secondary" | "outline" | "destructive" | "ghost" | "link";
51
+ buttonLink?: string;
52
+ };
53
+ type CarouselWidgetProps = ComponentProps<"div"> & {
54
+ slides?: CarouselSlide[];
55
+ autoScrollInterval?: number;
56
+ enableAutoScroll?: boolean;
57
+ align?: AlignOptions;
58
+ carouselHeight?: number;
59
+ borderRadius?: BorderRadiusOptions;
60
+ padding?: PaddingOptions;
61
+ headerSize?: FontSizeOptions;
62
+ headerColor?: ColorOptions;
63
+ textSize?: FontSizeOptions;
64
+ textColor?: ColorOptions;
65
+ textWidth?: string;
66
+ showButton?: boolean;
67
+ buttonColor?: ColorOptions;
68
+ buttonSize?: ButtonSizeOptions;
69
+ overlayEnabled?: boolean;
70
+ overlayType?: "solid" | "gradient";
71
+ overlayIntensity?: number;
72
+ };
73
+ declare function CarouselWidget({ slides, autoScrollInterval, enableAutoScroll, carouselHeight, align, overlayIntensity, borderRadius, padding, textWidth, headerSize, headerColor, textSize, textColor, showButton, buttonColor, buttonSize, overlayEnabled, overlayType, className, ...props }: CarouselWidgetProps): react_jsx_runtime.JSX.Element;
74
+ declare const carouselWidgetPropertySchema: WidgetPropertySchema;
75
+
76
+ type CatchUpWidgetProps = ComponentProps<"div"> & {
77
+ titleEnabled?: boolean;
78
+ titleText?: string;
79
+ titleFontSize?: FontSizeOptions;
80
+ titleColor?: ColorOptions;
81
+ background?: BackgroundValue;
82
+ textColor?: ColorOptions;
83
+ accentColor?: ColorOptions;
84
+ padding?: PaddingOptions;
85
+ borderRadius?: BorderRadiusOptions;
86
+ maxItems?: number;
87
+ };
88
+ declare function CatchUpWidget({ titleEnabled, titleText, titleFontSize, titleColor, background, textColor, accentColor, padding, borderRadius, maxItems, className, ...props }: CatchUpWidgetProps): react_jsx_runtime.JSX.Element;
89
+ declare const catchUpWidgetPropertySchema: WidgetPropertySchema;
90
+
91
+ type ChartDataPoint = Record<string, unknown>;
92
+ type ChartWidgetProps = ComponentProps<"div"> & {
93
+ titleEnabled?: boolean;
94
+ title?: string;
95
+ titleFontSize?: FontSizeOptions;
96
+ titleColor?: ColorOptions;
97
+ description?: string;
98
+ descriptionFontSize?: FontSizeOptions;
99
+ descriptionColor?: ColorOptions;
100
+ chartType?: "bar" | "line" | "area" | "pie";
101
+ showLegend?: boolean;
102
+ showTooltip?: boolean;
103
+ showGrid?: boolean;
104
+ width?: string;
105
+ height?: string;
106
+ background?: BackgroundValue;
107
+ padding?: PaddingOptions;
108
+ borderRadius?: BorderRadiusOptions;
109
+ dataKey?: string;
110
+ xAxisKey?: string;
111
+ /** Chart data - when provided via dataSource, this overrides defaultData */
112
+ data?: ChartDataPoint[];
113
+ /** Chart configuration - can be dynamically provided via dataSource */
114
+ chartConfig?: Record<string, {
115
+ label: string;
116
+ color: string;
117
+ }>;
118
+ };
119
+ declare function ChartWidget({ titleEnabled, title, titleFontSize, titleColor, description, descriptionFontSize, descriptionColor, chartType, showLegend, showTooltip, showGrid, width, height, background, padding, borderRadius, dataKey, xAxisKey, data, chartConfig, className, ...props }: ChartWidgetProps): react_jsx_runtime.JSX.Element;
120
+ declare const chartWidgetPropertySchema: WidgetPropertySchema;
121
+
122
+ type LayoutProps<T extends Record<string, ComponentType<any>> = Record<string, ComponentType<any>>> = {
123
+ sectionLayout?: SectionLayoutType;
124
+ type?: "flex" | "grid";
125
+ columns?: number;
126
+ rows?: number;
127
+ direction?: string;
128
+ justify?: string;
129
+ align?: string;
130
+ wrap?: boolean;
131
+ gap?: number;
132
+ gapSize?: GapOptions;
133
+ background?: BackgroundValue;
134
+ padding?: PaddingOptions;
135
+ borderRadius?: BorderRadiusOptions;
136
+ children: (TypedWidgetSchema<T> | null)[] | (WidgetSchema | null)[];
137
+ registry?: T;
138
+ className?: string;
139
+ minHeight?: number;
140
+ };
141
+ declare const LayoutWidget: <T extends Record<string, ComponentType<any>>>({ sectionLayout, gap, gapSize, background, padding, borderRadius, children, registry, className, minHeight, }: LayoutProps<T>) => react_jsx_runtime.JSX.Element;
142
+ declare const layoutWidgetPropertySchema: WidgetPropertySchema;
143
+
144
+ /**
145
+ * ContainerWidget - Root container widget for screens
146
+ *
147
+ * This widget wraps LayoutWidget and serves as the foundational container
148
+ * for every screen. It cannot be added, deleted, moved, or copied by users.
149
+ *
150
+ * Only exposes limited settings: gap, padding, and backgroundColor
151
+ */
152
+ type ContainerWidgetProps = ComponentProps<typeof LayoutWidget>;
153
+ declare function ContainerWidget(props: ContainerWidgetProps): react_jsx_runtime.JSX.Element;
154
+ declare const containerWidgetPropertySchema: WidgetPropertySchema;
155
+
156
+ type EmbedWidgetProps = ComponentProps<"div"> & {
157
+ url?: string;
158
+ title?: string;
159
+ height?: number;
160
+ fullScreen?: boolean;
161
+ allowFullscreen?: boolean;
162
+ loading?: "eager" | "lazy";
163
+ borderRadius?: BorderRadiusOptions;
164
+ };
165
+ declare function EmbedWidget({ url, title, height, fullScreen, allowFullscreen, loading, borderRadius, className, ...props }: EmbedWidgetProps): react_jsx_runtime.JSX.Element;
166
+ declare const embedWidgetPropertySchema: WidgetPropertySchema;
167
+
168
+ type ImageWidgetProps = ComponentProps<"div"> & {
169
+ src?: string;
170
+ alt?: string;
171
+ borderRadius?: BorderRadiusOptions;
172
+ verticalSizing?: "auto" | "fixed";
173
+ fixedHeight?: string;
174
+ displayFit?: "cover" | "contain";
175
+ focusPoint?: string;
176
+ linkUrl?: string;
177
+ resource?: ShareableItem;
178
+ useCustomUrl?: boolean;
179
+ };
180
+ declare function ImageWidget({ src, alt, borderRadius, verticalSizing, fixedHeight, displayFit, focusPoint, linkUrl, resource, useCustomUrl, }: ImageWidgetProps): react_jsx_runtime.JSX.Element;
181
+ declare const imageWidgetPropertySchema: WidgetPropertySchema;
182
+
183
+ type ListItem = {
184
+ id: string;
185
+ image?: string;
186
+ imageUrl?: string;
187
+ videoUrl?: string;
188
+ title?: string;
189
+ description?: string;
190
+ price?: string;
191
+ originalPrice?: string;
192
+ discount?: string;
193
+ qv?: string;
194
+ cv?: string;
195
+ };
196
+ type ImageAspectRatio = "square" | "landscape" | "portrait";
197
+ type ListType = "ordered" | "unordered";
198
+ type ScrollAxis = "horizontal" | "vertical";
199
+ type ListWidgetProps = ComponentProps<"div"> & {
200
+ listType?: ListType;
201
+ scrollAxis?: ScrollAxis;
202
+ titleEnabled?: boolean;
203
+ title?: string;
204
+ items?: ListItem[];
205
+ titleColor?: ColorOptions;
206
+ titleSize?: FontSizeOptions;
207
+ itemTitleColor?: ColorOptions;
208
+ itemTitleSize?: FontSizeOptions;
209
+ descriptionColor?: ColorOptions;
210
+ descriptionSize?: FontSizeOptions;
211
+ priceColor?: ColorOptions;
212
+ priceSize?: FontSizeOptions;
213
+ originalPriceColor?: ColorOptions;
214
+ metaTextColor?: ColorOptions;
215
+ metaTextSize?: FontSizeOptions;
216
+ numberColor?: ColorOptions;
217
+ numberSize?: FontSizeOptions;
218
+ borderRadius?: BorderRadiusOptions;
219
+ padding?: PaddingOptions;
220
+ gap?: GapOptions;
221
+ columns?: number;
222
+ imageAspectRatio?: ImageAspectRatio;
223
+ background?: BackgroundValue;
224
+ showBadge?: boolean;
225
+ showFavorite?: boolean;
226
+ showMetaText?: boolean;
227
+ maxItems?: number;
228
+ showFeaturedSection?: boolean;
229
+ featuredAsset?: string | {
230
+ [key: string]: unknown;
231
+ };
232
+ featuredTitle?: string;
233
+ featuredSubtitle?: string;
234
+ featuredButtonText?: string;
235
+ featuredButtonUrl?: string;
236
+ featuredSubtitleColor?: ColorOptions;
237
+ featuredSubtitleSize?: FontSizeOptions;
238
+ };
239
+ declare function ListWidget({ listType, scrollAxis, titleEnabled, title, items, titleColor, titleSize, itemTitleColor, itemTitleSize, descriptionColor, descriptionSize, priceColor, priceSize, originalPriceColor, metaTextColor, metaTextSize, numberColor, numberSize, borderRadius, padding, gap, columns, imageAspectRatio, background, showBadge, showFavorite, showMetaText, maxItems, showFeaturedSection, featuredAsset, featuredTitle, featuredSubtitle, featuredButtonText, featuredButtonUrl, featuredSubtitleColor, featuredSubtitleSize, className, ...props }: ListWidgetProps): react_jsx_runtime.JSX.Element;
240
+ declare const listWidgetPropertySchema: WidgetPropertySchema;
241
+
242
+ type MySiteWidgetProps = ComponentProps<"div"> & {
243
+ titleEnabled?: boolean;
244
+ titleText?: string;
245
+ titleFontSize?: FontSizeOptions;
246
+ titleColor?: ColorOptions;
247
+ background?: BackgroundValue;
248
+ textColor?: ColorOptions;
249
+ accentColor?: ColorOptions;
250
+ padding?: PaddingOptions;
251
+ borderRadius?: BorderRadiusOptions;
252
+ showPreview?: boolean;
253
+ showAnalytics?: boolean;
254
+ };
255
+ declare function MySiteWidget({ titleEnabled, titleText, titleFontSize, titleColor, background, textColor, accentColor, padding, borderRadius, showPreview, showAnalytics, className, ...props }: MySiteWidgetProps): react_jsx_runtime.JSX.Element | null;
256
+ declare const mySiteWidgetPropertySchema: WidgetPropertySchema;
257
+
258
+ type NestedWidgetProps = ComponentProps<"div"> & {
259
+ resource?: ShareableItem;
260
+ titleEnabled?: boolean;
261
+ titleText?: string;
262
+ shareables?: ShareableItem[];
263
+ gap?: GapOptions;
264
+ padding?: PaddingOptions;
265
+ borderRadius?: BorderRadiusOptions;
266
+ primaryMediaHeight?: number;
267
+ titleFontSize?: FontSizeOptions;
268
+ titleColor?: ColorOptions;
269
+ titleAlignment?: AlignOptions;
270
+ nestedTextColor?: ColorOptions;
271
+ background?: BackgroundValue;
272
+ overlayEnabled?: boolean;
273
+ overlayType?: "solid" | "gradient";
274
+ overlayIntensity?: number;
275
+ };
276
+ declare function NestedWidget({ resource, titleEnabled, titleText, shareables, gap, padding, borderRadius, primaryMediaHeight, titleFontSize, titleColor, titleAlignment, nestedTextColor, background, overlayEnabled, overlayType, overlayIntensity, className, ...props }: NestedWidgetProps): react_jsx_runtime.JSX.Element;
277
+ declare const nestedWidgetPropertySchema: WidgetPropertySchema;
278
+
279
+ type QuickShareWidgetProps = ComponentProps<"div"> & {
280
+ shareableResource?: ShareableItem;
281
+ titleEnabled?: boolean;
282
+ titleText?: string;
283
+ titleFontSize?: FontSizeOptions;
284
+ titleColor?: ColorOptions;
285
+ textColor?: ColorOptions;
286
+ accentColor?: ColorOptions;
287
+ padding?: PaddingOptions;
288
+ borderRadius?: BorderRadiusOptions;
289
+ overlayEnabled?: boolean;
290
+ overlayType?: "solid" | "gradient";
291
+ overlayIntensity?: number;
292
+ showBuyButton?: boolean;
293
+ };
294
+ declare function QuickShareWidget({ shareableResource, titleEnabled, titleText, titleFontSize, titleColor, textColor, accentColor, padding, borderRadius, overlayEnabled, overlayType, overlayIntensity, showBuyButton, className, ...props }: QuickShareWidgetProps): react_jsx_runtime.JSX.Element;
295
+ declare const quickShareWidgetPropertySchema: WidgetPropertySchema;
296
+
297
+ type RecentActivityWidgetProps = ComponentProps<"div"> & {
298
+ titleEnabled?: boolean;
299
+ titleText?: string;
300
+ titleFontSize?: FontSizeOptions;
301
+ titleColor?: ColorOptions;
302
+ background?: BackgroundValue;
303
+ textColor?: ColorOptions;
304
+ accentColor?: ColorOptions;
305
+ padding?: PaddingOptions;
306
+ borderRadius?: BorderRadiusOptions;
307
+ maxItemsToShow?: number;
308
+ };
309
+ declare function RecentActivityWidget({ titleEnabled, titleText, titleFontSize, titleColor, background, textColor, accentColor, padding, borderRadius, maxItemsToShow, className, ...props }: RecentActivityWidgetProps): react_jsx_runtime.JSX.Element;
310
+ declare const recentActivityWidgetPropertySchema: WidgetPropertySchema;
311
+
312
+ type SpacerWidgetProps = ComponentProps<"div"> & {
313
+ /**
314
+ * Custom height in pixels (only used when size is "custom")
315
+ */
316
+ customHeight?: number;
317
+ };
318
+ declare function SpacerWidget({ customHeight, className, style, ...props }: SpacerWidgetProps): react_jsx_runtime.JSX.Element;
319
+ declare const spacerWidgetPropertySchema: WidgetPropertySchema;
320
+
321
+ type TableWidgetProps = ComponentProps<"div"> & {
322
+ titleEnabled?: boolean;
323
+ titleText?: string;
324
+ titleFontSize?: FontSizeOptions;
325
+ titleColor?: ColorOptions;
326
+ background?: BackgroundValue;
327
+ alternatingColorEnabled?: boolean;
328
+ textColor?: ColorOptions;
329
+ headerBackgroundColor?: ColorOptions;
330
+ headerTextColor?: ColorOptions;
331
+ padding?: PaddingOptions;
332
+ borderRadius?: BorderRadiusOptions;
333
+ data?: ShareableItem[];
334
+ filterEnabled?: boolean;
335
+ sortingEnabled?: boolean;
336
+ paginationEnabled?: boolean;
337
+ maxRowsPerPage?: number;
338
+ };
339
+ declare function TableWidget({ titleEnabled, titleText, titleFontSize, titleColor, background, alternatingColorEnabled, textColor, headerBackgroundColor, headerTextColor, padding, borderRadius, data, filterEnabled, sortingEnabled, paginationEnabled, maxRowsPerPage, className, ...props }: TableWidgetProps): react_jsx_runtime.JSX.Element;
340
+ declare const tableWidgetPropertySchema: WidgetPropertySchema;
341
+
342
+ type ToDoWidgetProps = ComponentProps<"div"> & {
343
+ titleEnabled?: boolean;
344
+ titleText?: string;
345
+ titleFontSize?: FontSizeOptions;
346
+ titleColor?: ColorOptions;
347
+ background?: BackgroundValue;
348
+ textColor?: ColorOptions;
349
+ accentColor?: ColorOptions;
350
+ padding?: PaddingOptions;
351
+ borderRadius?: BorderRadiusOptions;
352
+ maxItems?: number;
353
+ };
354
+ declare function ToDoWidget({ titleEnabled, titleText, titleFontSize, titleColor, background, textColor, accentColor, padding, borderRadius, maxItems, className, ...props }: ToDoWidgetProps): react_jsx_runtime.JSX.Element;
355
+ declare const toDoWidgetPropertySchema: WidgetPropertySchema;
356
+
357
+ type VideoWidgetProps = ComponentProps<"div"> & {
358
+ src?: string;
359
+ poster?: string;
360
+ borderRadius?: BorderRadiusOptions;
361
+ verticalSizing?: "auto" | "fixed";
362
+ fixedHeight?: string;
363
+ displayFit?: "cover" | "contain";
364
+ focusPoint?: string;
365
+ controls?: boolean;
366
+ autoplay?: boolean;
367
+ loop?: boolean;
368
+ muted?: boolean;
369
+ resource?: ShareableItem;
370
+ useCustomUrl?: boolean;
371
+ };
372
+ declare function VideoWidget({ src, poster, borderRadius, verticalSizing, fixedHeight, displayFit, focusPoint, controls, autoplay, loop, muted, resource, useCustomUrl, }: VideoWidgetProps): react_jsx_runtime.JSX.Element;
373
+ declare const videoWidgetPropertySchema: WidgetPropertySchema;
374
+
375
+ declare const widgetPropertySchemas: {
376
+ AlertWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
377
+ CalendarWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
378
+ CarouselWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
379
+ CatchUpWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
380
+ ChartWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
381
+ ContainerWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
382
+ EmbedWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
383
+ ImageWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
384
+ LayoutWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
385
+ ListWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
386
+ MySiteWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
387
+ NestedWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
388
+ QuickShareWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
389
+ RecentActivityWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
390
+ SpacerWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
391
+ TableWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
392
+ TextWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
393
+ ToDoWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
394
+ VideoWidget: () => Promise<_fluid_app_rep_core_registries.WidgetPropertySchema>;
395
+ };
396
+
397
+ export { AlertWidget, CalendarWidget, CarouselWidget, CatchUpWidget, ChartWidget, ContainerWidget, EmbedWidget, ImageWidget, LayoutWidget, ListWidget, MySiteWidget, NestedWidget, QuickShareWidget, RecentActivityWidget, SpacerWidget, TableWidget, TextWidget, ToDoWidget, VideoWidget, alertWidgetPropertySchema, calendarWidgetPropertySchema, carouselWidgetPropertySchema, catchUpWidgetPropertySchema, chartWidgetPropertySchema, containerWidgetPropertySchema, embedWidgetPropertySchema, imageWidgetPropertySchema, layoutWidgetPropertySchema, listWidgetPropertySchema, mySiteWidgetPropertySchema, nestedWidgetPropertySchema, quickShareWidgetPropertySchema, recentActivityWidgetPropertySchema, spacerWidgetPropertySchema, tableWidgetPropertySchema, textWidgetPropertySchema, toDoWidgetPropertySchema, videoWidgetPropertySchema, widgetPropertySchemas };
@@ -0,0 +1,59 @@
1
+ export { MySiteWidget, mySiteWidgetPropertySchema } from '../chunk-W7VPL5I4.js';
2
+ export { NestedWidget, nestedWidgetPropertySchema } from '../chunk-HQVTEFSO.js';
3
+ export { QuickShareWidget, quickShareWidgetPropertySchema } from '../chunk-IU657MP5.js';
4
+ export { RecentActivityWidget, recentActivityWidgetPropertySchema } from '../chunk-HBRGW3CJ.js';
5
+ export { SpacerWidget, spacerWidgetPropertySchema } from '../chunk-SBHL3GFW.js';
6
+ export { TableWidget, tableWidgetPropertySchema } from '../chunk-7XWMJDFE.js';
7
+ export { ToDoWidget, toDoWidgetPropertySchema } from '../chunk-4XJCU4HY.js';
8
+ export { VideoWidget, videoWidgetPropertySchema } from '../chunk-ZSUGXJWD.js';
9
+ export { CarouselWidget, carouselWidgetPropertySchema } from '../chunk-NGYR4RQF.js';
10
+ export { CatchUpWidget, catchUpWidgetPropertySchema } from '../chunk-VZFL5BZM.js';
11
+ export { ChartWidget, chartWidgetPropertySchema } from '../chunk-CEZOXMO6.js';
12
+ export { ContainerWidget, containerWidgetPropertySchema } from '../chunk-EHSWARYY.js';
13
+ export { LayoutWidget, layoutWidgetPropertySchema } from '../chunk-MWED53XR.js';
14
+ export { EmbedWidget, embedWidgetPropertySchema } from '../chunk-GA52TZC4.js';
15
+ export { ImageWidget, imageWidgetPropertySchema } from '../chunk-3RV7AYQZ.js';
16
+ export { ListWidget, listWidgetPropertySchema } from '../chunk-YY5WLV63.js';
17
+ import '../chunk-RKDOQV4T.js';
18
+ import '../chunk-F63VY23B.js';
19
+ import '../chunk-ZWFK5UUU.js';
20
+ import '../chunk-6GF46P3S.js';
21
+ import '../chunk-IY3BNQ5Y.js';
22
+ import '../chunk-NUG3DWF7.js';
23
+ import '../chunk-DM2JDG3D.js';
24
+ import '../chunk-7JIRJTGY.js';
25
+ import '../chunk-5HHN5MRZ.js';
26
+ export { AlertWidget, alertWidgetPropertySchema } from '../chunk-MNWWZGL2.js';
27
+ export { TextWidget, textWidgetPropertySchema } from '../chunk-J2FIIZSN.js';
28
+ export { CalendarWidget, calendarWidgetPropertySchema } from '../chunk-2KQFMF6L.js';
29
+ import '../chunk-GRFCSQ2M.js';
30
+ export { gapValues } from '../chunk-ZS7C474P.js';
31
+
32
+ // src/widgets/index.ts
33
+ var widgetPropertySchemas = {
34
+ AlertWidget: () => import('../AlertWidget-2JHMNYIY.js').then((m) => m.alertWidgetPropertySchema),
35
+ CalendarWidget: () => import('../CalendarWidget-E54LNKCG.js').then((m) => m.calendarWidgetPropertySchema),
36
+ CarouselWidget: () => import('../CarouselWidget-IPPFSXDZ.js').then((m) => m.carouselWidgetPropertySchema),
37
+ CatchUpWidget: () => import('../CatchUpWidget-HYJRKFN3.js').then((m) => m.catchUpWidgetPropertySchema),
38
+ ChartWidget: () => import('../ChartWidget-OL5DRMGA.js').then((m) => m.chartWidgetPropertySchema),
39
+ ContainerWidget: () => import('../ContainerWidget-DETCLP52.js').then((m) => m.containerWidgetPropertySchema),
40
+ EmbedWidget: () => import('../EmbedWidget-O2XFGDJS.js').then((m) => m.embedWidgetPropertySchema),
41
+ ImageWidget: () => import('../ImageWidget-RF6XKPPV.js').then((m) => m.imageWidgetPropertySchema),
42
+ LayoutWidget: () => import('../LayoutWidget-WZSMZLLM.js').then((m) => m.layoutWidgetPropertySchema),
43
+ ListWidget: () => import('../ListWidget-ZFRV6DKI.js').then((m) => m.listWidgetPropertySchema),
44
+ MySiteWidget: () => import('../MySiteWidget-75NJUIWV.js').then((m) => m.mySiteWidgetPropertySchema),
45
+ NestedWidget: () => import('../NestedWidget-N4I7LOVX.js').then((m) => m.nestedWidgetPropertySchema),
46
+ QuickShareWidget: () => import('../QuickShareWidget-3VGSFY4J.js').then((m) => m.quickShareWidgetPropertySchema),
47
+ RecentActivityWidget: () => import('../RecentActivityWidget-3KAR64SB.js').then(
48
+ (m) => m.recentActivityWidgetPropertySchema
49
+ ),
50
+ SpacerWidget: () => import('../SpacerWidget-ODKNZAND.js').then((m) => m.spacerWidgetPropertySchema),
51
+ TableWidget: () => import('../TableWidget-W6LL5FLE.js').then((m) => m.tableWidgetPropertySchema),
52
+ TextWidget: () => import('../TextWidget-D72TL53O.js').then((m) => m.textWidgetPropertySchema),
53
+ ToDoWidget: () => import('../ToDoWidget-LCAYWRVH.js').then((m) => m.toDoWidgetPropertySchema),
54
+ VideoWidget: () => import('../VideoWidget-VHAZTNLI.js').then((m) => m.videoWidgetPropertySchema)
55
+ };
56
+
57
+ export { widgetPropertySchemas };
58
+ //# sourceMappingURL=index.js.map
59
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/widgets/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCO,IAAM,qBAAA,GAAwB;AAAA,EACnC,WAAA,EAAa,MACX,OAAO,4BAAe,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,yBAAyB,CAAA;AAAA,EACjE,cAAA,EAAgB,MACd,OAAO,+BAAkB,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,4BAA4B,CAAA;AAAA,EACvE,cAAA,EAAgB,MACd,OAAO,+BAAkB,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,4BAA4B,CAAA;AAAA,EACvE,aAAA,EAAe,MACb,OAAO,8BAAiB,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,2BAA2B,CAAA;AAAA,EACrE,WAAA,EAAa,MACX,OAAO,4BAAe,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,yBAAyB,CAAA;AAAA,EACjE,eAAA,EAAiB,MACf,OAAO,gCAAmB,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,6BAA6B,CAAA;AAAA,EACzE,WAAA,EAAa,MACX,OAAO,4BAAe,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,yBAAyB,CAAA;AAAA,EACjE,WAAA,EAAa,MACX,OAAO,4BAAe,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,yBAAyB,CAAA;AAAA,EACjE,YAAA,EAAc,MACZ,OAAO,6BAAgB,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,0BAA0B,CAAA;AAAA,EACnE,UAAA,EAAY,MACV,OAAO,2BAAc,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,wBAAwB,CAAA;AAAA,EAC/D,YAAA,EAAc,MACZ,OAAO,6BAAgB,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,0BAA0B,CAAA;AAAA,EACnE,YAAA,EAAc,MACZ,OAAO,6BAAgB,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,0BAA0B,CAAA;AAAA,EACnE,gBAAA,EAAkB,MAChB,OAAO,iCAAoB,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,8BAA8B,CAAA;AAAA,EAC3E,oBAAA,EAAsB,MACpB,OAAO,qCAAwB,CAAA,CAAE,IAAA;AAAA,IAC/B,CAAC,MAAM,CAAA,CAAE;AAAA,GACX;AAAA,EACF,YAAA,EAAc,MACZ,OAAO,6BAAgB,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,0BAA0B,CAAA;AAAA,EACnE,WAAA,EAAa,MACX,OAAO,4BAAe,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,yBAAyB,CAAA;AAAA,EACjE,UAAA,EAAY,MACV,OAAO,2BAAc,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,wBAAwB,CAAA;AAAA,EAC/D,UAAA,EAAY,MACV,OAAO,2BAAc,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,wBAAwB,CAAA;AAAA,EAC/D,WAAA,EAAa,MACX,OAAO,4BAAe,EAAE,IAAA,CAAK,CAAC,CAAA,KAAM,CAAA,CAAE,yBAAyB;AACnE","file":"index.js","sourcesContent":["// Widget Components\nexport { AlertWidget, alertWidgetPropertySchema } from \"./AlertWidget\";\nexport { CalendarWidget, calendarWidgetPropertySchema } from \"./CalendarWidget\";\nexport { CarouselWidget, carouselWidgetPropertySchema } from \"./CarouselWidget\";\nexport { CatchUpWidget, catchUpWidgetPropertySchema } from \"./CatchUpWidget\";\nexport { ChartWidget, chartWidgetPropertySchema } from \"./ChartWidget\";\nexport {\n ContainerWidget,\n containerWidgetPropertySchema,\n} from \"./ContainerWidget\";\nexport { EmbedWidget, embedWidgetPropertySchema } from \"./EmbedWidget\";\nexport { ImageWidget, imageWidgetPropertySchema } from \"./ImageWidget\";\nexport { LayoutWidget, layoutWidgetPropertySchema } from \"./LayoutWidget\";\nexport { ListWidget, listWidgetPropertySchema } from \"./ListWidget\";\nexport { MySiteWidget, mySiteWidgetPropertySchema } from \"./MySiteWidget\";\nexport { NestedWidget, nestedWidgetPropertySchema } from \"./NestedWidget\";\nexport {\n QuickShareWidget,\n quickShareWidgetPropertySchema,\n} from \"./QuickShareWidget\";\nexport {\n RecentActivityWidget,\n recentActivityWidgetPropertySchema,\n} from \"./RecentActivityWidget\";\nexport { SpacerWidget, spacerWidgetPropertySchema } from \"./SpacerWidget\";\nexport { TableWidget, tableWidgetPropertySchema } from \"./TableWidget\";\nexport { TextWidget, textWidgetPropertySchema } from \"./TextWidget\";\nexport { ToDoWidget, toDoWidgetPropertySchema } from \"./ToDoWidget\";\nexport { VideoWidget, videoWidgetPropertySchema } from \"./VideoWidget\";\n\n// Re-export gapValues from core (used by widgets)\nexport { gapValues } from \"../core/fields\";\n\n// Re-export all property schemas as a collection\nexport const widgetPropertySchemas = {\n AlertWidget: () =>\n import(\"./AlertWidget\").then((m) => m.alertWidgetPropertySchema),\n CalendarWidget: () =>\n import(\"./CalendarWidget\").then((m) => m.calendarWidgetPropertySchema),\n CarouselWidget: () =>\n import(\"./CarouselWidget\").then((m) => m.carouselWidgetPropertySchema),\n CatchUpWidget: () =>\n import(\"./CatchUpWidget\").then((m) => m.catchUpWidgetPropertySchema),\n ChartWidget: () =>\n import(\"./ChartWidget\").then((m) => m.chartWidgetPropertySchema),\n ContainerWidget: () =>\n import(\"./ContainerWidget\").then((m) => m.containerWidgetPropertySchema),\n EmbedWidget: () =>\n import(\"./EmbedWidget\").then((m) => m.embedWidgetPropertySchema),\n ImageWidget: () =>\n import(\"./ImageWidget\").then((m) => m.imageWidgetPropertySchema),\n LayoutWidget: () =>\n import(\"./LayoutWidget\").then((m) => m.layoutWidgetPropertySchema),\n ListWidget: () =>\n import(\"./ListWidget\").then((m) => m.listWidgetPropertySchema),\n MySiteWidget: () =>\n import(\"./MySiteWidget\").then((m) => m.mySiteWidgetPropertySchema),\n NestedWidget: () =>\n import(\"./NestedWidget\").then((m) => m.nestedWidgetPropertySchema),\n QuickShareWidget: () =>\n import(\"./QuickShareWidget\").then((m) => m.quickShareWidgetPropertySchema),\n RecentActivityWidget: () =>\n import(\"./RecentActivityWidget\").then(\n (m) => m.recentActivityWidgetPropertySchema,\n ),\n SpacerWidget: () =>\n import(\"./SpacerWidget\").then((m) => m.spacerWidgetPropertySchema),\n TableWidget: () =>\n import(\"./TableWidget\").then((m) => m.tableWidgetPropertySchema),\n TextWidget: () =>\n import(\"./TextWidget\").then((m) => m.textWidgetPropertySchema),\n ToDoWidget: () =>\n import(\"./ToDoWidget\").then((m) => m.toDoWidgetPropertySchema),\n VideoWidget: () =>\n import(\"./VideoWidget\").then((m) => m.videoWidgetPropertySchema),\n};\n"]}
package/package.json ADDED
@@ -0,0 +1,99 @@
1
+ {
2
+ "name": "@fluid-app/rep-widgets",
3
+ "version": "0.1.0",
4
+ "description": "Widget components for the Fluid rep platform",
5
+ "type": "module",
6
+ "exports": {
7
+ "./globals.css": "./styles/globals.css",
8
+ "./widgets": {
9
+ "import": {
10
+ "types": "./dist/widgets/index.d.ts",
11
+ "default": "./dist/widgets/index.js"
12
+ },
13
+ "require": {
14
+ "types": "./dist/widgets/index.d.cts",
15
+ "default": "./dist/widgets/index.cjs"
16
+ }
17
+ },
18
+ "./core": {
19
+ "import": {
20
+ "types": "./dist/core/index.d.ts",
21
+ "default": "./dist/core/index.js"
22
+ },
23
+ "require": {
24
+ "types": "./dist/core/index.d.cts",
25
+ "default": "./dist/core/index.cjs"
26
+ }
27
+ },
28
+ "./contexts": {
29
+ "import": {
30
+ "types": "./dist/contexts/index.d.ts",
31
+ "default": "./dist/contexts/index.js"
32
+ },
33
+ "require": {
34
+ "types": "./dist/contexts/index.d.cts",
35
+ "default": "./dist/contexts/index.cjs"
36
+ }
37
+ },
38
+ "./ui": {
39
+ "import": {
40
+ "types": "./dist/ui/index.d.ts",
41
+ "default": "./dist/ui/index.js"
42
+ },
43
+ "require": {
44
+ "types": "./dist/ui/index.d.cts",
45
+ "default": "./dist/ui/index.cjs"
46
+ }
47
+ },
48
+ "./components": {
49
+ "import": {
50
+ "types": "./dist/components/index.d.ts",
51
+ "default": "./dist/components/index.js"
52
+ },
53
+ "require": {
54
+ "types": "./dist/components/index.d.cts",
55
+ "default": "./dist/components/index.cjs"
56
+ }
57
+ }
58
+ },
59
+ "files": [
60
+ "dist",
61
+ "styles"
62
+ ],
63
+ "sideEffects": false,
64
+ "dependencies": {
65
+ "@radix-ui/react-slot": "^1.1.2",
66
+ "class-variance-authority": "^0.7.1",
67
+ "clsx": "^2.1.1",
68
+ "embla-carousel-react": "^8.6.0",
69
+ "qrcode.react": "^4.2.0",
70
+ "recharts": "^2.15.4",
71
+ "tailwind-merge": "^3.0.2",
72
+ "tailwindcss": "^4.1.18",
73
+ "tw-animate-css": "^1.4.0",
74
+ "@fluid-app/rep-core": "0.1.0"
75
+ },
76
+ "peerDependencies": {
77
+ "@tanstack/react-query": ">=5.0.0",
78
+ "lucide-react": ">=0.400.0",
79
+ "react": ">=18.0.0"
80
+ },
81
+ "devDependencies": {
82
+ "@tanstack/react-query": "^5.90.11",
83
+ "@types/react": "^19.2.13",
84
+ "eslint": "^9.39.1",
85
+ "lucide-react": "^0.475.0",
86
+ "react": "^19.2.4",
87
+ "tsup": "^8.4.0",
88
+ "typescript": "^5",
89
+ "@fluid-app/eslint-config": "0.0.0",
90
+ "@fluid-app/typescript-config": "0.0.0"
91
+ },
92
+ "scripts": {
93
+ "build": "tsup",
94
+ "dev": "tsup --watch",
95
+ "lint": "eslint .",
96
+ "lint:fix": "eslint . --fix",
97
+ "typecheck": "tsc --noEmit"
98
+ }
99
+ }
@@ -0,0 +1,20 @@
1
+ @import "tailwindcss";
2
+ @config "../tailwind.config.ts";
3
+ @source "../src/**/*.{ts,tsx}";
4
+ @source inline("{even:,placeholder:,hover:,}{bg,text,border}-{background,foreground,primary,secondary,accent,muted,destructive}{-foreground,}{-{100..900..100},}{/{10..100..10},}");
5
+ @source inline("p{x,y,t,b,}-{0..10..2}");
6
+ @source inline("text-{2xl,xl,lg,md,base,sm,xs}");
7
+ @source inline("rounded-{none,sm,md,lg,xl,full}");
8
+ @source inline("flex-{row,col,row-reverse,col-reverse}");
9
+ @source inline("justify-{start,end,center,between,around,evenly}");
10
+ @source inline("items-{start,end,center,stretch,baseline}");
11
+ @source inline("grid-cols-{{1..12..1}}");
12
+ @source inline("grid-rows-{auto,{1..12..1}}");
13
+ @source inline("gap-{1,{0..8..2}}");
14
+ @source inline("h-{2,4,8,16,24,32}");
15
+ @source inline("object-{contain,cover,fill,none}");
16
+ @source inline("aspect-{square,video}");
17
+ @source inline("@md:grid-cols-{2,3}");
18
+ @source inline("@md:grid-cols-[{1,2,3}fr_{1,2,3}fr]");
19
+ @source inline("@md:grid-cols-[1fr_2fr_1fr]");
20
+ @import "tw-animate-css";