cortex-react-components 1.48.7 → 1.49.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 (248) hide show
  1. package/dist/{chunk-SPOYKTBR.mjs → chunk-22FHCZJD.mjs} +1 -1
  2. package/dist/chunk-47K2T72E.mjs +1 -0
  3. package/dist/{chunk-ZYDXLN4L.mjs → chunk-5KVZ63KQ.mjs} +1 -1
  4. package/dist/{chunk-DIPGFDJV.mjs → chunk-ATONX5RA.mjs} +1 -1
  5. package/dist/{chunk-GHBJK554.mjs → chunk-DESYC5BB.mjs} +1 -1
  6. package/dist/chunk-GDC4MRMU.mjs +8 -0
  7. package/dist/{chunk-RZTXT4UD.mjs → chunk-GOMLTG5W.mjs} +1 -1
  8. package/dist/{chunk-QO2Z7WXW.mjs → chunk-H4T3LIAM.mjs} +1 -1
  9. package/dist/{chunk-I5EBXVLE.mjs → chunk-IJICNQTM.mjs} +1 -1
  10. package/dist/{chunk-DLCGGIZW.mjs → chunk-KJBMLPHS.mjs} +1 -1
  11. package/dist/chunk-RWIIPRAE.mjs +1 -0
  12. package/dist/chunk-SK4U3YXJ.mjs +1 -0
  13. package/dist/{chunk-E2LKSCDR.mjs → chunk-TM37LU2K.mjs} +1 -1
  14. package/dist/{chunk-QZA2ZGA2.mjs → chunk-U76FODRW.mjs} +1 -1
  15. package/dist/chunk-WKD2UQGO.mjs +4 -0
  16. package/dist/chunk-X6QN5C6U.mjs +1 -0
  17. package/dist/chunk-XN3SGES2.mjs +1 -0
  18. package/dist/chunk-Y2ZFOTBY.mjs +1 -0
  19. package/dist/{chunk-WX5WBQM3.mjs → chunk-YSGJMEMD.mjs} +1 -1
  20. package/dist/{chunk-PVFLV5NN.mjs → chunk-YSREIOAY.mjs} +1 -1
  21. package/dist/components/Blocks/Banner.mjs +1 -1
  22. package/dist/components/Blocks/CallToAction.mjs +1 -1
  23. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  24. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  25. package/dist/components/Blocks/CaseStudy.stories.mjs +1 -1
  26. package/dist/components/Blocks/Code.client.mjs +1 -1
  27. package/dist/components/Blocks/Code.mjs +1 -1
  28. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  29. package/dist/components/Blocks/ConsultantProfile.stories.mjs +1 -1
  30. package/dist/components/Blocks/Content.mjs +1 -1
  31. package/dist/components/Blocks/CopyButton.mjs +1 -1
  32. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  33. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  34. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  35. package/dist/components/Blocks/ProposalSummary.stories.mjs +1 -1
  36. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  37. package/dist/components/Blocks/RenderBlocks.d.ts +1 -0
  38. package/dist/components/Blocks/RenderBlocks.js +1 -1
  39. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  40. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  41. package/dist/components/Blocks/index.js +1 -1
  42. package/dist/components/Blocks/index.mjs +1 -1
  43. package/dist/components/CRM/DealCard.mjs +1 -1
  44. package/dist/components/CRM/DealCard.stories.mjs +1 -1
  45. package/dist/components/CRM/DealDetails.mjs +1 -1
  46. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  47. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  48. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  49. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  50. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  51. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  52. package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
  53. package/dist/components/CRM/NewDealForm.mjs +1 -1
  54. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  55. package/dist/components/CRM/index.mjs +1 -1
  56. package/dist/components/Cards/ContentCard.mjs +1 -1
  57. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  58. package/dist/components/Cards/CustomerCard.mjs +1 -1
  59. package/dist/components/Cards/CustomerCard.stories.mjs +1 -1
  60. package/dist/components/Cards/EventCard.mjs +1 -1
  61. package/dist/components/Cards/EventCard.stories.mjs +1 -1
  62. package/dist/components/Cards/HeroCard.mjs +1 -1
  63. package/dist/components/Cards/HeroCard.stories.mjs +1 -1
  64. package/dist/components/Cards/Image.mjs +1 -1
  65. package/dist/components/Cards/Image.stories.mjs +1 -1
  66. package/dist/components/Cards/PricingCard.mjs +1 -1
  67. package/dist/components/Cards/PricingCard.stories.mjs +1 -1
  68. package/dist/components/Cards/ServiceCard.mjs +1 -1
  69. package/dist/components/Cards/ServiceCard.stories.mjs +1 -1
  70. package/dist/components/Cards/index.mjs +1 -1
  71. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  72. package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
  73. package/dist/components/HeaderFooter/Header.mjs +1 -1
  74. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  75. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  76. package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
  77. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  78. package/dist/components/HeaderFooter/HeaderMenu.stories.mjs +1 -1
  79. package/dist/components/HeaderFooter/HeaderMobile.stories.mjs +1 -1
  80. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  81. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  82. package/dist/components/HeaderFooter/SimpleHeader.stories.mjs +1 -1
  83. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  84. package/dist/components/HeaderFooter/index.mjs +1 -1
  85. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  86. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  87. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  88. package/dist/components/Heros/PostHero/index.mjs +1 -1
  89. package/dist/components/Heros/RenderHero.mjs +1 -1
  90. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  91. package/dist/components/Heros/index.mjs +1 -1
  92. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  93. package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
  94. package/dist/components/Holidays/CalendarView.mjs +1 -1
  95. package/dist/components/Holidays/CalendarView.stories.mjs +1 -1
  96. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  97. package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
  98. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  99. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  100. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  101. package/dist/components/Holidays/RequestLeave.stories.mjs +1 -1
  102. package/dist/components/Holidays/index.mjs +1 -1
  103. package/dist/components/Layouts/BlogList.mjs +1 -1
  104. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  105. package/dist/components/Layouts/SlideShow.d.ts +14 -0
  106. package/dist/components/Layouts/SlideShow.js +9 -1
  107. package/dist/components/Layouts/SlideShow.mjs +1 -1
  108. package/dist/components/Layouts/SlideShow.stories.js +9 -1
  109. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  110. package/dist/components/Layouts/index.js +11 -3
  111. package/dist/components/Layouts/index.mjs +1 -1
  112. package/dist/components/Menus/Categories.mjs +1 -1
  113. package/dist/components/Menus/Categories.stories.mjs +1 -1
  114. package/dist/components/Menus/Filter.mjs +1 -1
  115. package/dist/components/Menus/Filter.stories.mjs +1 -1
  116. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  117. package/dist/components/Menus/ProjectTeam.stories.mjs +1 -1
  118. package/dist/components/Menus/RelatedContent.mjs +1 -1
  119. package/dist/components/Menus/RelatedContent.stories.mjs +1 -1
  120. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  121. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  122. package/dist/components/Menus/SidebarRight.mjs +1 -1
  123. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  124. package/dist/components/Menus/index.mjs +1 -1
  125. package/dist/components/Other/Container.mjs +1 -1
  126. package/dist/components/Other/index.mjs +1 -1
  127. package/dist/components/Payload/Link/index.mjs +1 -1
  128. package/dist/components/Payload/Pagination/index.mjs +1 -1
  129. package/dist/components/Payload/RichText/index.mjs +1 -1
  130. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  131. package/dist/components/Payload/RichText.stories.mjs +1 -1
  132. package/dist/components/Payload/index.mjs +1 -1
  133. package/dist/components/index.js +14 -6
  134. package/dist/components/index.mjs +1 -1
  135. package/dist/components/ui/alert.mjs +1 -1
  136. package/dist/components/ui/alert.stories.mjs +1 -1
  137. package/dist/components/ui/avatar.mjs +1 -1
  138. package/dist/components/ui/avatar.stories.mjs +1 -1
  139. package/dist/components/ui/badge.mjs +1 -1
  140. package/dist/components/ui/badge.stories.mjs +1 -1
  141. package/dist/components/ui/breadcrumb.mjs +1 -1
  142. package/dist/components/ui/breadcrumb.stories.mjs +1 -1
  143. package/dist/components/ui/button.mjs +1 -1
  144. package/dist/components/ui/button.stories.mjs +1 -1
  145. package/dist/components/ui/calendar.mjs +1 -1
  146. package/dist/components/ui/card.mjs +1 -1
  147. package/dist/components/ui/card.stories.mjs +1 -1
  148. package/dist/components/ui/checkbox.mjs +1 -1
  149. package/dist/components/ui/command.mjs +1 -1
  150. package/dist/components/ui/command.stories.mjs +1 -1
  151. package/dist/components/ui/dialog.mjs +1 -1
  152. package/dist/components/ui/dialog.stories.mjs +1 -1
  153. package/dist/components/ui/dropdown-menu.mjs +1 -1
  154. package/dist/components/ui/dropdown-menu.stories.mjs +1 -1
  155. package/dist/components/ui/hover-card.mjs +1 -1
  156. package/dist/components/ui/hover-card.stories.mjs +1 -1
  157. package/dist/components/ui/index.mjs +1 -1
  158. package/dist/components/ui/input.mjs +1 -1
  159. package/dist/components/ui/input.stories.mjs +1 -1
  160. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  161. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  162. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  163. package/dist/components/ui/label.mjs +1 -1
  164. package/dist/components/ui/label.stories.mjs +1 -1
  165. package/dist/components/ui/pagination.mjs +1 -1
  166. package/dist/components/ui/popover.mjs +1 -1
  167. package/dist/components/ui/popover.stories.mjs +1 -1
  168. package/dist/components/ui/scroll-area.mjs +1 -1
  169. package/dist/components/ui/scroll-area.stories.mjs +1 -1
  170. package/dist/components/ui/select.mjs +1 -1
  171. package/dist/components/ui/separator.mjs +1 -1
  172. package/dist/components/ui/separator.stories.mjs +1 -1
  173. package/dist/components/ui/sheet.mjs +1 -1
  174. package/dist/components/ui/sheet.stories.mjs +1 -1
  175. package/dist/components/ui/sidebar.mjs +1 -1
  176. package/dist/components/ui/skeleton.mjs +1 -1
  177. package/dist/components/ui/skeleton.stories.mjs +1 -1
  178. package/dist/components/ui/textarea.mjs +1 -1
  179. package/dist/components/ui/toast.mjs +1 -1
  180. package/dist/components/ui/toast.stories.mjs +1 -1
  181. package/dist/components/ui/toaster.mjs +1 -1
  182. package/dist/components/ui/toggle-group.mjs +1 -1
  183. package/dist/components/ui/toggle.mjs +1 -1
  184. package/dist/components/ui/toggle.stories.mjs +1 -1
  185. package/dist/components/ui/tooltip.mjs +1 -1
  186. package/dist/components/ui/tooltip.stories.mjs +1 -1
  187. package/dist/globals.css +1 -1
  188. package/dist/images/hero/hero-3.mjs +1 -1
  189. package/dist/index.js +11 -7
  190. package/dist/index.mjs +1 -1
  191. package/dist/metafile-cjs.json +1 -1
  192. package/dist/metafile-esm.json +1 -1
  193. package/dist/pages/Blog.mjs +1 -1
  194. package/dist/pages/Blog.stories.mjs +1 -1
  195. package/dist/pages/Documentation.mjs +1 -1
  196. package/dist/pages/Documentation.stories.mjs +1 -1
  197. package/dist/pages/IndexPage.mjs +1 -1
  198. package/dist/pages/IndexPage.stories.mjs +1 -1
  199. package/dist/pages/Intranet.mjs +1 -1
  200. package/dist/pages/Intranet.stories.mjs +1 -1
  201. package/dist/pages/LandingPage.mjs +1 -1
  202. package/dist/pages/LandingPage.stories.mjs +1 -1
  203. package/dist/pages/Page.mjs +1 -1
  204. package/dist/pages/Page.stories.mjs +1 -1
  205. package/dist/pages/Printable.stories.css +1 -0
  206. package/dist/pages/Printable.stories.js +12 -0
  207. package/dist/pages/Printable.stories.mjs +1 -0
  208. package/dist/pages/Publish.js +9 -1
  209. package/dist/pages/Publish.mjs +1 -1
  210. package/dist/pages/Publish.stories.js +9 -1
  211. package/dist/pages/Publish.stories.mjs +1 -1
  212. package/dist/pages/Website.js +1 -1
  213. package/dist/pages/Website.mjs +1 -1
  214. package/dist/pages/Website.stories.js +2 -2
  215. package/dist/pages/Website.stories.mjs +1 -1
  216. package/dist/sections/AboutSection.mjs +1 -1
  217. package/dist/sections/AboutSection.stories.mjs +1 -1
  218. package/dist/sections/BlogDetail.mjs +1 -1
  219. package/dist/sections/BlogDetail.stories.mjs +1 -1
  220. package/dist/sections/BlogListSection.mjs +1 -1
  221. package/dist/sections/BlogListSection.stories.mjs +1 -1
  222. package/dist/sections/ContactSection.mjs +1 -1
  223. package/dist/sections/ContactSection.stories.mjs +1 -1
  224. package/dist/sections/ImageSection.mjs +1 -1
  225. package/dist/sections/ImageSection.stories.mjs +1 -1
  226. package/dist/sections/MainPageSection.js +1 -1
  227. package/dist/sections/MainPageSection.mjs +1 -1
  228. package/dist/sections/PricingSection.mjs +1 -1
  229. package/dist/sections/PricingSection.stories.mjs +1 -1
  230. package/dist/sections/ServiceSection.mjs +1 -1
  231. package/dist/sections/ServiceSection.stories.mjs +1 -1
  232. package/dist/sections/form/index.mjs +1 -1
  233. package/dist/sections/index.js +1 -1
  234. package/dist/sections/index.mjs +1 -1
  235. package/dist/styles/Colors.mjs +1 -1
  236. package/dist/styles/Colors.stories.mjs +1 -1
  237. package/dist/tests/payload.d.ts +300 -0
  238. package/dist/tests/payload.js +1 -0
  239. package/dist/tests/payload.mjs +1 -0
  240. package/dist/utils/AOSInit.mjs +1 -1
  241. package/dist/utils/index.mjs +1 -1
  242. package/package.json +2 -1
  243. package/dist/chunk-EZVA3JCM.mjs +0 -4
  244. package/dist/chunk-FZ2WYNIY.mjs +0 -1
  245. package/dist/chunk-JRCLJPTB.mjs +0 -4
  246. package/dist/chunk-U273RBBL.mjs +0 -1
  247. package/dist/chunk-YKY5E6KS.mjs +0 -1
  248. package/dist/chunk-YQUBQIDC.mjs +0 -1
@@ -0,0 +1,300 @@
1
+ export declare const RichTextTest: {
2
+ simple: {
3
+ root: {
4
+ type: string;
5
+ format: string;
6
+ indent: number;
7
+ version: number;
8
+ children: {
9
+ type: string;
10
+ format: string;
11
+ indent: number;
12
+ version: number;
13
+ children: {
14
+ mode: string;
15
+ text: string;
16
+ type: string;
17
+ style: string;
18
+ detail: number;
19
+ format: number;
20
+ version: number;
21
+ }[];
22
+ direction: string;
23
+ textStyle: string;
24
+ textFormat: number;
25
+ }[];
26
+ direction: string;
27
+ };
28
+ };
29
+ medium: {
30
+ root: {
31
+ type: string;
32
+ format: string;
33
+ indent: number;
34
+ version: number;
35
+ children: ({
36
+ tag: string;
37
+ type: string;
38
+ format: string;
39
+ indent: number;
40
+ version: number;
41
+ children: {
42
+ mode: string;
43
+ text: string;
44
+ type: string;
45
+ style: string;
46
+ detail: number;
47
+ format: number;
48
+ version: number;
49
+ }[];
50
+ direction: string;
51
+ textStyle?: undefined;
52
+ textFormat?: undefined;
53
+ } | {
54
+ type: string;
55
+ format: string;
56
+ indent: number;
57
+ version: number;
58
+ children: {
59
+ mode: string;
60
+ text: string;
61
+ type: string;
62
+ style: string;
63
+ detail: number;
64
+ format: number;
65
+ version: number;
66
+ }[];
67
+ direction: string;
68
+ textStyle: string;
69
+ textFormat: number;
70
+ tag?: undefined;
71
+ } | {
72
+ type: string;
73
+ format: string;
74
+ indent: number;
75
+ version: number;
76
+ children: never[];
77
+ direction: null;
78
+ textStyle: string;
79
+ textFormat: number;
80
+ tag?: undefined;
81
+ })[];
82
+ direction: string;
83
+ };
84
+ };
85
+ };
86
+ export declare const ImageTest: {
87
+ hero: {
88
+ id: number;
89
+ alt: string;
90
+ prefix: string;
91
+ updatedAt: string;
92
+ createdAt: string;
93
+ url: string;
94
+ thumbnailURL: string;
95
+ filename: string;
96
+ mimeType: string;
97
+ filesize: number;
98
+ width: number;
99
+ height: number;
100
+ focalX: number;
101
+ focalY: number;
102
+ sizes: {
103
+ thumbnail: {
104
+ url: string;
105
+ width: number;
106
+ height: number;
107
+ mimeType: string;
108
+ filesize: number;
109
+ filename: string;
110
+ };
111
+ square: {
112
+ url: string;
113
+ width: number;
114
+ height: number;
115
+ mimeType: string;
116
+ filesize: number;
117
+ filename: string;
118
+ };
119
+ small: {
120
+ url: string;
121
+ width: number;
122
+ height: number;
123
+ mimeType: string;
124
+ filesize: number;
125
+ filename: string;
126
+ };
127
+ medium: {
128
+ url: string;
129
+ width: number;
130
+ height: number;
131
+ mimeType: string;
132
+ filesize: number;
133
+ filename: string;
134
+ };
135
+ large: {
136
+ url: string;
137
+ width: number;
138
+ height: number;
139
+ mimeType: string;
140
+ filesize: number;
141
+ filename: string;
142
+ };
143
+ xlarge: {
144
+ url: string;
145
+ width: number;
146
+ height: number;
147
+ mimeType: string;
148
+ filesize: number;
149
+ filename: string;
150
+ };
151
+ };
152
+ };
153
+ };
154
+ export declare const BlocksTest: {
155
+ content: {
156
+ oneThirdWithImageThemeLong: {
157
+ id: string;
158
+ blockName: null;
159
+ columns: {
160
+ id: string;
161
+ size: string;
162
+ richText: {
163
+ root: {
164
+ type: string;
165
+ format: string;
166
+ indent: number;
167
+ version: number;
168
+ children: ({
169
+ type: string;
170
+ format: string;
171
+ indent: number;
172
+ version: number;
173
+ children: {
174
+ mode: string;
175
+ text: string;
176
+ type: string;
177
+ style: string;
178
+ detail: number;
179
+ format: number;
180
+ version: number;
181
+ }[];
182
+ direction: string;
183
+ textStyle: string;
184
+ textFormat: number;
185
+ } | {
186
+ type: string;
187
+ format: string;
188
+ indent: number;
189
+ version: number;
190
+ children: never[];
191
+ direction: null;
192
+ textStyle: string;
193
+ textFormat: number;
194
+ })[];
195
+ direction: string;
196
+ };
197
+ };
198
+ enableLink: null;
199
+ link: {
200
+ type: string;
201
+ newTab: null;
202
+ url: null;
203
+ label: null;
204
+ appearance: string;
205
+ };
206
+ }[];
207
+ blockType: string;
208
+ theme: {
209
+ settings: {
210
+ theme: string;
211
+ background: string;
212
+ overlay: boolean;
213
+ image: {
214
+ id: number;
215
+ alt: null;
216
+ prefix: string;
217
+ updatedAt: string;
218
+ createdAt: string;
219
+ url: string;
220
+ thumbnailURL: string;
221
+ filename: string;
222
+ mimeType: string;
223
+ filesize: number;
224
+ width: number;
225
+ height: number;
226
+ focalX: number;
227
+ focalY: number;
228
+ };
229
+ };
230
+ };
231
+ };
232
+ oneThirdWithImageThemeShort: {
233
+ id: string;
234
+ blockName: null;
235
+ columns: {
236
+ id: string;
237
+ size: string;
238
+ richText: {
239
+ root: {
240
+ type: string;
241
+ format: string;
242
+ indent: number;
243
+ version: number;
244
+ children: {
245
+ type: string;
246
+ format: string;
247
+ indent: number;
248
+ version: number;
249
+ children: {
250
+ mode: string;
251
+ text: string;
252
+ type: string;
253
+ style: string;
254
+ detail: number;
255
+ format: number;
256
+ version: number;
257
+ }[];
258
+ direction: string;
259
+ textStyle: string;
260
+ textFormat: number;
261
+ }[];
262
+ direction: string;
263
+ };
264
+ };
265
+ enableLink: null;
266
+ link: {
267
+ type: string;
268
+ newTab: null;
269
+ url: null;
270
+ label: null;
271
+ appearance: string;
272
+ };
273
+ }[];
274
+ blockType: string;
275
+ theme: {
276
+ settings: {
277
+ theme: string;
278
+ background: string;
279
+ overlay: boolean;
280
+ image: {
281
+ id: number;
282
+ alt: null;
283
+ prefix: string;
284
+ updatedAt: string;
285
+ createdAt: string;
286
+ url: string;
287
+ thumbnailURL: string;
288
+ filename: string;
289
+ mimeType: string;
290
+ filesize: number;
291
+ width: number;
292
+ height: number;
293
+ focalX: number;
294
+ focalY: number;
295
+ };
296
+ };
297
+ };
298
+ };
299
+ };
300
+ };
@@ -0,0 +1 @@
1
+ "use strict";var r=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var m=(t,e)=>{for(var a in e)r(t,a,{get:e[a],enumerable:!0})},u=(t,e,a,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of s(e))!o.call(t,i)&&i!==a&&r(t,i,{get:()=>e[i],enumerable:!(l=n(e,i))||l.enumerable});return t};var d=t=>u(r({},"__esModule",{value:!0}),t);var h={};m(h,{BlocksTest:()=>g,ImageTest:()=>p,RichTextTest:()=>c});module.exports=d(h);var c={simple:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Sed at eros vel lacus varius varius nec id metus.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},medium:{root:{type:"root",format:"",indent:0,version:1,children:[{tag:"h2",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Suspendisse potenti. ",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr"},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Donec malesuada arcu at velit laoreet convallis. Sed at eros vel lacus varius varius nec id metus. Praesent faucibus, orci a varius dapibus, lorem libero convallis est, et consequat libero magna sit amet risus. Maecenas tincidunt erat et felis sodales, nec malesuada sem tincidunt. Duis sed nisl euismod, ullamcorper augue at, rutrum felis.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{tag:"h3",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Sed at eros vel lacus varius varius nec id metus. ",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr"},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Praesent faucibus, orci a varius dapibus, lorem libero convallis est, et consequat libero magna sit amet risus. Maecenas tincidunt erat et felis sodales, nec malesuada sem tincidunt. Duis sed nisl euismod, ullamcorper augue at, rutrum felis.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{tag:"h2",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Duis sed nisl euismod, ullamcorper augue at.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr"},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Praesent faucibus, orci a varius dapibus, lorem libero convallis est, et consequat libero magna sit amet risus. Maecenas tincidunt erat et felis sodales, nec malesuada sem tincidunt. Duis sed nisl euismod, ullamcorper augue at, rutrum felis.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}}},p={hero:{id:81,alt:"Digital colleague hands",prefix:"media",updatedAt:"2025-01-23T13:20:04.875Z",createdAt:"2025-01-23T13:20:04.875Z",url:"/dummy/Gu4XOqlGSrt19M-djNAsz.jpg",thumbnailURL:"/dummy/Gu4XOqlGSrt19M-djNAsz-300x200.jpg",filename:"Gu4XOqlGSrt19M-djNAsz.jpg",mimeType:"image/jpeg",filesize:236762,width:2121,height:1414,focalX:50,focalY:50,sizes:{thumbnail:{url:"/dummy/Gu4XOqlGSrt19M-djNAsz-300x200.jpg",width:300,height:200,mimeType:"image/jpeg",filesize:7200,filename:"Gu4XOqlGSrt19M-djNAsz-300x200.jpg"},square:{url:"/dummy/Gu4XOqlGSrt19M-djNAsz-500x500.jpg",width:500,height:500,mimeType:"image/jpeg",filesize:29871,filename:"Gu4XOqlGSrt19M-djNAsz-500x500.jpg"},small:{url:"/dummy/Gu4XOqlGSrt19M-djNAsz-600x400.jpg",width:600,height:400,mimeType:"image/jpeg",filesize:24198,filename:"Gu4XOqlGSrt19M-djNAsz-600x400.jpg"},medium:{url:"/dummy/Gu4XOqlGSrt19M-djNAsz-900x600.jpg",width:900,height:600,mimeType:"image/jpeg",filesize:48260,filename:"Gu4XOqlGSrt19M-djNAsz-900x600.jpg"},large:{url:"/dummy/Gu4XOqlGSrt19M-djNAsz-1400x933.jpg",width:1400,height:933,mimeType:"image/jpeg",filesize:104334,filename:"Gu4XOqlGSrt19M-djNAsz-1400x933.jpg"},xlarge:{url:"/dummy/Gu4XOqlGSrt19M-djNAsz-1920x1280.jpg",width:1920,height:1280,mimeType:"image/jpeg",filesize:192649,filename:"Gu4XOqlGSrt19M-djNAsz-1920x1280.jpg"}}}},g={content:{oneThirdWithImageThemeLong:{id:"67a74c276365f244c8b6d149",blockName:null,columns:[{id:"67a74ea16365f244c8b6d14b",size:"oneThird",richText:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus lacinia odio vitae vestibulum vestibulum. Cras vehicula, libero a pharetra dictum, urna lectus porttitor lacus, at dapibus justo quam vel metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non velit nec arcu volutpat dignissim in a lorem.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Proin sagittis sem et elit fringilla, nec fringilla eros maximus. Nulla facilisi. Ut sit amet facilisis lectus. Fusce ornare metus at ante tristique, nec elementum eros fermentum. Integer volutpat magna sed justo tincidunt, sit amet aliquam arcu pellentesque. Phasellus imperdiet mi vitae ligula pharetra, a dignissim velit vehicula.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},enableLink:null,link:{type:"reference",newTab:null,url:null,label:null,appearance:"default"}}],blockType:"content",theme:{settings:{theme:"dark",background:"image",overlay:!0,image:{id:1,alt:null,prefix:"media",updatedAt:"2025-02-08T12:27:55.461Z",createdAt:"2025-02-08T12:27:55.461Z",url:"/stock1.jpg",thumbnailURL:"/stock1.jpg",filename:"stock1.jpg",mimeType:"image/jpeg",filesize:346701,width:2190,height:1369,focalX:50,focalY:50}}}},oneThirdWithImageThemeShort:{id:"67a74c276365f244c8b6d149",blockName:null,columns:[{id:"67a74ea16365f244c8b6d14b",size:"oneThird",richText:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus lacinia odio vitae vestibulum vestibulum. Cras vehicula, libero a pharetra dictum, urna lectus porttitor lacus, at dapibus justo quam vel metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non velit nec arcu volutpat dignissim in a lorem.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},enableLink:null,link:{type:"reference",newTab:null,url:null,label:null,appearance:"default"}}],blockType:"content",theme:{settings:{theme:"dark",background:"image",overlay:!0,image:{id:1,alt:null,prefix:"media",updatedAt:"2025-02-08T12:27:55.461Z",createdAt:"2025-02-08T12:27:55.461Z",url:"/stock1.jpg",thumbnailURL:"/stock1.jpg",filename:"stock1.jpg",mimeType:"image/jpeg",filesize:346701,width:2190,height:1369,focalX:50,focalY:50}}}}}};0&&(module.exports={BlocksTest,ImageTest,RichTextTest});
@@ -0,0 +1 @@
1
+ import{a,b,c}from"../chunk-SK4U3YXJ.mjs";import"../chunk-S7OK7D5I.mjs";export{c as BlocksTest,b as ImageTest,a as RichTextTest};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../chunk-SPOYKTBR.mjs";import"../chunk-S7OK7D5I.mjs";export{a as AOSInit};
2
+ "use strict";import{b as a}from"../chunk-22FHCZJD.mjs";import"../chunk-S7OK7D5I.mjs";export{a as AOSInit};
@@ -1 +1 @@
1
- import{a as c}from"../chunk-SPOYKTBR.mjs";import{a}from"../chunk-NIQ4466A.mjs";import{a as b}from"../chunk-C5XNOZXC.mjs";import"../chunk-S7OK7D5I.mjs";export{c as AOSInit,a as cn,b as getTableOfContents};
1
+ import{a as b}from"../chunk-C5XNOZXC.mjs";import{b as c}from"../chunk-22FHCZJD.mjs";import{a}from"../chunk-NIQ4466A.mjs";import"../chunk-S7OK7D5I.mjs";export{c as AOSInit,a as cn,b as getTableOfContents};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "cortex-react-components",
3
3
  "author": "Cortex Reply",
4
4
  "private": false,
5
- "version": "1.48.7",
5
+ "version": "1.49.0",
6
6
  "description": "A library of React components with styles. Designed to seamlessly integrate with React and Next.js.",
7
7
  "license": "MPL-2.0",
8
8
  "main": "./dist/index.js",
@@ -117,6 +117,7 @@
117
117
  "date-fns": "^4.1.0",
118
118
  "formik": "^2.4.6",
119
119
  "next-themes": "^0.4.4",
120
+ "pagedjs": "^0.4.3",
120
121
  "prism-react-renderer": "^2.4.1",
121
122
  "r18gs": "^3.0.1",
122
123
  "react-day-picker": "^8.10.1",
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{a as i}from"./chunk-NIQ4466A.mjs";import{useState as f,useEffect as z}from"react";import y from"next/link";import{Printer as V,Presentation as $}from"lucide-react";import{usePathname as P}from"next/navigation";import{ExternalLink as L}from"lucide-react";import{jsx as e,jsxs as a}from"react/jsx-runtime";var H=({children:d,pageId:x,tableOfContents:b=[],edit:g=!0,path:n="/admin/collections/pages/",relatedContent:h=[{title:"Related Content",links:[]}]})=>{let[o,v]=f(!1),u=()=>{v(!o)};return z(()=>{let r=window.location.hash;if(r){let m=r.substring(1),c=document.getElementById(m);if(c){let p=c.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:p,behavior:"smooth"})}}},[window.location.hash]),a("div",{children:[e("div",{className:i(o?"col-span-3":"col-span-4","xl:col-span-3"),children:d}),e(R,{pageId:x,tableOfContents:b,edit:g,path:n,relatedContent:h,isSidebarVisible:o}),e("div",{className:"block md:hidden mt-8",children:e("div",{className:"space-y-6",children:d})})]})};var R=({pageId:d,tableOfContents:x=[],edit:b=!0,path:g="/admin/collections/pages/",relatedContent:n=[{title:"Related Content",links:[]}],isSidebarVisible:h})=>{let[o,v]=f(""),[u,r]=f(!1),[m,c]=f(!1),w=P(),p=()=>{r(!u),c(!1)},C=()=>{c(!m),r(!1)},N=t=>{switch(t){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},M=()=>{let l="/print/"+w.split("/")[1],s=window.open(l,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");s&&s.focus()},I=()=>{let l="/present/"+w.split("/")[1],s=window.open(l,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");s&&s.focus()};return e("div",{className:i("fixed right-2 z-20 top-1/4 space-y-6 transform transition-transform duration-300 translate-x-full",h?"translate-x-0":"md:translate-x-0"),children:a("div",{className:"flex flex-row-reverse z-20 min-w-64 gap-4",children:[a("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[a(y,{href:`${g}${d}`,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M454.6 45.3l12.1 12.1c12.5 12.5 12.5 32.8 0 45.3L440 129.4 382.6 72l26.7-26.7c12.5-12.5 32.8-12.5 45.3 0zM189 265.6l171-171L417.4 152l-171 171c-4.2 4.2-9.6 7.2-15.4 8.6l-65.6 15.1L180.5 281c1.3-5.8 4.3-11.2 8.6-15.4zm197.7-243L166.4 243c-8.5 8.5-14.4 19.2-17.1 30.9l-20.9 90.6c-1.2 5.4 .4 11 4.3 14.9s9.5 5.5 14.9 4.3l90.6-20.9c11.7-2.7 22.4-8.6 30.9-17.1L489.4 125.3c25-25 25-65.5 0-90.5L477.3 22.6c-25-25-65.5-25-90.5 0zM80 64C35.8 64 0 99.8 0 144L0 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-128c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 128c0 26.5-21.5 48-48 48L80 480c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48l128 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L80 64z"})}),e("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),a("a",{onClick:p,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:e("path",{d:"M16 80C7.2 80 0 87.2 0 96s7.2 16 16 16l416 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 80zM144 240c-8.8 0-16 7.2-16 16s7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0zM128 416c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM0 432c0 8.8 7.2 16 16 16s16-7.2 16-16l0-192c0-8.8-7.2-16-16-16s-16 7.2-16 16L0 432z"})}),e("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),a("a",{onClick:C,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M136 64c13.3 0 24 10.7 24 24l0 24 0 32 0 24c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0zm56 104l0-24 192 0 0 24c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-30.9 0-56 25.1-56 56l0 24-192 0 0-24c0-30.9-25.1-56-56-56L56 32C25.1 32 0 57.1 0 88l0 80c0 30.9 25.1 56 56 56l80 0c8.6 0 16.7-1.9 24-5.4l72.2 96.3c-5.2 8.5-8.2 18.5-8.2 29.1l0 80c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-8.6 0-16.7 1.9-24 5.4l-72.2-96.3c5.2-8.5 8.2-18.5 8.2-29.1zm224 0l0-24 0-32 0-24c0-13.3 10.7-24 24-24l80 0c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24zM360 320c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0z"})}),e("small",{className:"text-center text-xs font-medium",children:" Related "})]}),e("hr",{className:"dark:border-gray-400"}),a("a",{href:"/",className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16l544 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 0zM32 64l0 224c0 35.3 28.7 64 64 64l176 0 0 41.4-91.3 91.3c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L288 422.6l84.7 84.7c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L304 393.4l0-41.4 176 0c35.3 0 64-28.7 64-64l0-224-32 0 0 224c0 17.7-14.3 32-32 32l-192 0L96 320c-17.7 0-32-14.3-32-32L64 64 32 64z"})}),e("small",{className:"text-xs font-medium",children:"Present"})]}),a("a",{href:"/",className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),e("small",{className:"text-xs font-medium",children:"Print"})]})]}),u&&e("div",{className:i("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:a("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[e("div",{className:"flex text-accent",children:"On this Page"}),e("ul",{className:"flex flex-col space-y-2",children:x.map((t,l)=>e("li",{className:N(t.tag),children:e("a",{href:`#${t.id}`,className:`text-xs ${o===t.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:t.text})},l))})]})}),m&&n&&n.length>0&&e("div",{className:i("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:a("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[e("div",{className:"flex text-accent",children:"Related Content"}),e("ul",{className:"flex flex-col space-y-2",children:n.map((t,l)=>t.links&&t.links.length>0?t.links.map((s,k)=>a(y,{href:s.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[s.title,s.url.startsWith("http")&&e(L,{className:"ml-1 h-3 w-3"})]},k)):null)})]})})]})})};export{H as a};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-WU3JMLSC.mjs";import{a as m}from"./chunk-BZAYEKYC.mjs";import{a as i}from"./chunk-EFL3B4LN.mjs";import{a as o}from"./chunk-KSCHUMVE.mjs";import{a as t}from"./chunk-GHBJK554.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function d({...e}){return n("div",{children:[r(t,{isMenuOpen:!0,logoLight:m,logoDark:a}),r(o,{...e.hero}),r(i,{className:"!pb-0",...e.blog})]})}export{d as a};
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{a as m}from"./chunk-YKY5E6KS.mjs";import{a as r}from"./chunk-NIQ4466A.mjs";import{useState as h,useEffect as w,useCallback as g}from"react";import{AnimatePresence as x,motion as y}from"framer-motion";import{jsx as t,jsxs as N}from"react/jsx-runtime";var W=p=>{let[l,a]=h(0),{blocks:n}=p,f=n&&Array.isArray(n)&&n.length>0,b=e=>{a(e)},i=()=>{a(e=>(e+1)%n.length)},s=()=>{a(e=>(e-1+n.length)%n.length)},c=g(((e,o)=>{let d;return(...v)=>{clearTimeout(d),d=setTimeout(()=>e(...v),o)}})(e=>{e.deltaY>0?i():s()},300),[]),u=e=>{e.key==="ArrowDown"?i():e.key==="ArrowUp"&&s()};return w(()=>(window.addEventListener("wheel",c),window.addEventListener("keydown",u),()=>{window.removeEventListener("wheel",c),window.removeEventListener("keydown",u)}),[]),N("div",{className:"flex h-screen relative",children:[t("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-100",children:f&&n.map((e,o)=>t("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${l===o?"bg-accent":"bg-gray-300"}`,onClick:()=>b(o),children:t("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:e.blockName})},e.id))}),n.map((e,o)=>t("div",{className:`absolute flex items-center justify-center transition-opacity duration-300 ${o===l?"opacity-100":"opacity-0"}`,children:t(m,{blocks:[e]})},o)),t("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:i,children:t(k,{})})]})},k=()=>t(x,{children:t(y.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:r("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-gray-800"),children:t(y.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:r("w-[12px] h-[12px] rounded-full","bg-gray-800")})})});export{W as a};
@@ -1 +0,0 @@
1
- import{a as s}from"./chunk-WU3JMLSC.mjs";import{a as l}from"./chunk-BZAYEKYC.mjs";import{a}from"./chunk-EZVA3JCM.mjs";import{b as r}from"./chunk-WX5WBQM3.mjs";import{a as n}from"./chunk-YKY5E6KS.mjs";import{a as i}from"./chunk-GHBJK554.mjs";import{a as o}from"./chunk-C5XNOZXC.mjs";import{jsx as t,jsxs as m}from"react/jsx-runtime";function g({...e}){let f=e.page,{contentWithIds:c,tableOfContents:p}=o(f);return m("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:[t(i,{isMenuOpen:!0,logoLight:l,logoDark:s}),t(r,{...e.hero}),t(a,{edit:e.edit,pageId:e.page.id,tableOfContents:p,relatedContent:e.relatedContent,children:t(n,{blocks:c})})]})}export{g as a};
@@ -1 +0,0 @@
1
- import{a as f}from"./chunk-6LTYVYSU.mjs";import{a as b}from"./chunk-4J2HMR3M.mjs";import{b as k,c as u}from"./chunk-D4NKFRUO.mjs";import{a as l}from"./chunk-7QQXXEMN.mjs";import{a}from"./chunk-NIQ4466A.mjs";import v from"next/image";import{jsx as n,jsxs as p}from"react/jsx-runtime";var y={content:b,cta:k,mediaBlock:l,imageBlock:l,features:u,reusableContentBlock:f},A=o=>{let{blocks:e}=o;return e&&Array.isArray(e)&&e.length>0?n("section",{id:"render-blocks",children:e.map((t,g)=>{var c,m;let{blockType:i}=t,r=t==null?void 0:t.theme;if(i&&i in y){let d=y[i];if(d)return p("div",{className:"py-6 relative",children:[n(h,{block:t,index:g}),n("div",{className:a("container",((c=r==null?void 0:r.settings)==null?void 0:c.theme)==="dark"?"dark":((m=r==null?void 0:r.settings)==null?void 0:m.theme)==="green"?"green":""),children:n(d,{...t})})]},g)}return null})}):null},h=o=>{var s;if(!("theme"in o.block))return null;let e=(s=o.block)==null?void 0:s.theme;if(e.settings.background==="image"){let t={imagePosition:e.settings.imagePosition||"left",overlay:e.settings.overlay!==void 0?e.settings.overlay:!0};return p("div",{className:a("absolute inset-0 w-full h-full -z-10",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":""),children:[n(v,{src:e.settings.image.url||"/placeholder.svg",alt:e.settings.image.alt,fill:!0,className:"object-cover",priority:!0}),e.settings.overlay&&n("div",{className:"absolute inset-0",style:{background:t.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return n("div",{className:a("absolute inset-0 -z-10 w-screen h-full",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":"")})};export{A as a,h as b};
@@ -1 +0,0 @@
1
- import{a as o}from"./chunk-JRCLJPTB.mjs";import{a as e}from"./chunk-C5XNOZXC.mjs";import{jsx as t}from"react/jsx-runtime";function a({...r}){let n=r.page,{contentWithIds:i,tableOfContents:s}=e(n);return t("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:t(o,{blocks:i})})}export{a};