@redneckz/wildless-cms-uni-blocks 0.2.46 → 0.2.47

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 (224) hide show
  1. package/dist/BenefitsBlock.d.ts +2 -2
  2. package/dist/Blocks.d.ts +2 -0
  3. package/dist/Blocks.js +11 -7
  4. package/dist/Blocks.js.map +1 -1
  5. package/dist/ContentPage.d.ts +2 -2
  6. package/dist/ContentPage.js +3 -3
  7. package/dist/ContentPage.js.map +1 -1
  8. package/dist/ContentPageContext.d.ts +6 -3
  9. package/dist/ExchangeRateTile.d.ts +7 -0
  10. package/dist/ExchangeRateTile.js +32 -0
  11. package/dist/ExchangeRateTile.js.map +1 -0
  12. package/dist/Footer/Contacts.d.ts +2 -2
  13. package/dist/Footer/Footer.d.ts +2 -2
  14. package/dist/Footer/FooterLink.d.ts +2 -2
  15. package/dist/Footer/Sitemap.d.ts +2 -2
  16. package/dist/Footer/Sitemap.js +2 -1
  17. package/dist/Footer/Sitemap.js.map +1 -1
  18. package/dist/Footer/SocialMedia.d.ts +2 -2
  19. package/dist/Footer/SocialMedia.js +5 -5
  20. package/dist/Footer/SocialMedia.js.map +1 -1
  21. package/dist/Header/Header.d.ts +2 -2
  22. package/dist/Header/Header.js +3 -2
  23. package/dist/Header/Header.js.map +1 -1
  24. package/dist/Icons/DollarIcon.d.ts +1 -0
  25. package/dist/Icons/DollarIcon.js +6 -0
  26. package/dist/Icons/DollarIcon.js.map +1 -0
  27. package/dist/Icons/EuroIcon.d.ts +1 -0
  28. package/dist/Icons/EuroIcon.js +6 -0
  29. package/dist/Icons/EuroIcon.js.map +1 -0
  30. package/dist/Icons/index.d.ts +17 -16
  31. package/dist/Icons/index.js +26 -22
  32. package/dist/Icons/index.js.map +1 -1
  33. package/dist/Img.js +1 -1
  34. package/dist/Img.js.map +1 -1
  35. package/dist/LikeControl.d.ts +2 -2
  36. package/dist/LikeControl.js.map +1 -1
  37. package/dist/MobileAppTile.d.ts +8 -0
  38. package/dist/MobileAppTile.js +9 -0
  39. package/dist/MobileAppTile.js.map +1 -0
  40. package/dist/Placeholder.d.ts +3 -1
  41. package/dist/Placeholder.js +9 -2
  42. package/dist/Placeholder.js.map +1 -1
  43. package/dist/ProductBlock.d.ts +2 -2
  44. package/dist/ProductBlockInner.d.ts +2 -2
  45. package/dist/ProductGallery.d.ts +2 -2
  46. package/dist/ProductGallery.js +2 -2
  47. package/dist/ProductGallery.js.map +1 -1
  48. package/dist/ProjectSettings.d.ts +18 -0
  49. package/dist/ProjectSettings.js +30 -0
  50. package/dist/ProjectSettings.js.map +1 -0
  51. package/dist/StepsBlock.d.ts +2 -2
  52. package/dist/Tile.d.ts +2 -2
  53. package/dist/Tile.js +15 -7
  54. package/dist/Tile.js.map +1 -1
  55. package/dist/index.d.ts +5 -3
  56. package/dist/index.js +7 -5
  57. package/dist/index.js.map +1 -1
  58. package/dist/types.d.ts +1 -1
  59. package/dist/ui-kit/SearchBar.d.ts +2 -2
  60. package/dist/ui-kit/SearchBar.js.map +1 -1
  61. package/dist/useSitemap.d.ts +3 -0
  62. package/dist/useSitemap.js +16 -0
  63. package/dist/useSitemap.js.map +1 -0
  64. package/lib/BenefitsBlock.d.ts +2 -2
  65. package/lib/Blocks.d.ts +2 -0
  66. package/lib/Blocks.js +8 -4
  67. package/lib/Blocks.js.map +1 -1
  68. package/lib/ContentPage.d.ts +2 -2
  69. package/lib/ContentPage.js +3 -3
  70. package/lib/ContentPage.js.map +1 -1
  71. package/lib/ContentPageContext.d.ts +6 -3
  72. package/lib/ExchangeRateTile.d.ts +7 -0
  73. package/lib/ExchangeRateTile.js +30 -0
  74. package/lib/ExchangeRateTile.js.map +1 -0
  75. package/lib/Footer/Contacts.d.ts +2 -2
  76. package/lib/Footer/Footer.d.ts +2 -2
  77. package/lib/Footer/FooterLink.d.ts +2 -2
  78. package/lib/Footer/Sitemap.d.ts +2 -2
  79. package/lib/Footer/Sitemap.js +2 -1
  80. package/lib/Footer/Sitemap.js.map +1 -1
  81. package/lib/Footer/SocialMedia.d.ts +2 -2
  82. package/lib/Footer/SocialMedia.js +5 -5
  83. package/lib/Footer/SocialMedia.js.map +1 -1
  84. package/lib/Header/Header.d.ts +2 -2
  85. package/lib/Header/Header.js +3 -2
  86. package/lib/Header/Header.js.map +1 -1
  87. package/lib/Icons/DollarIcon.d.ts +1 -0
  88. package/lib/Icons/DollarIcon.js +3 -0
  89. package/lib/Icons/DollarIcon.js.map +1 -0
  90. package/lib/Icons/EuroIcon.d.ts +1 -0
  91. package/lib/Icons/EuroIcon.js +3 -0
  92. package/lib/Icons/EuroIcon.js.map +1 -0
  93. package/lib/Icons/index.d.ts +17 -16
  94. package/lib/Icons/index.js +17 -16
  95. package/lib/Icons/index.js.map +1 -1
  96. package/lib/Img.js +1 -1
  97. package/lib/Img.js.map +1 -1
  98. package/lib/LikeControl.d.ts +2 -2
  99. package/lib/LikeControl.js.map +1 -1
  100. package/lib/MobileAppTile.d.ts +8 -0
  101. package/lib/MobileAppTile.js +7 -0
  102. package/lib/MobileAppTile.js.map +1 -0
  103. package/lib/Placeholder.d.ts +3 -1
  104. package/lib/Placeholder.js +9 -2
  105. package/lib/Placeholder.js.map +1 -1
  106. package/lib/ProductBlock.d.ts +2 -2
  107. package/lib/ProductBlockInner.d.ts +2 -2
  108. package/lib/ProductGallery.d.ts +2 -2
  109. package/lib/ProductGallery.js +2 -2
  110. package/lib/ProductGallery.js.map +1 -1
  111. package/lib/ProjectSettings.d.ts +18 -0
  112. package/lib/ProjectSettings.js +28 -0
  113. package/lib/ProjectSettings.js.map +1 -0
  114. package/lib/StepsBlock.d.ts +2 -2
  115. package/lib/Tile.d.ts +2 -2
  116. package/lib/Tile.js +15 -7
  117. package/lib/Tile.js.map +1 -1
  118. package/lib/common.css +1 -1
  119. package/lib/index.d.ts +5 -3
  120. package/lib/index.js +3 -2
  121. package/lib/index.js.map +1 -1
  122. package/lib/types.d.ts +1 -1
  123. package/lib/ui-kit/SearchBar.d.ts +2 -2
  124. package/lib/ui-kit/SearchBar.js.map +1 -1
  125. package/lib/useSitemap.d.ts +3 -0
  126. package/lib/useSitemap.js +13 -0
  127. package/lib/useSitemap.js.map +1 -0
  128. package/package.json +3 -2
  129. package/src/BenefitsBlock.fixture.tsx +34 -0
  130. package/src/BenefitsBlock.tsx +45 -0
  131. package/src/Blocks.ts +23 -0
  132. package/src/ContentPage.fixture.tsx +38 -0
  133. package/src/ContentPage.page.json +540 -0
  134. package/src/ContentPage.tsx +83 -0
  135. package/src/ContentPageContext.tsx +34 -0
  136. package/src/ContentPageHead.tsx +26 -0
  137. package/src/ExchangeRateTile.fixture.tsx +11 -0
  138. package/src/ExchangeRateTile.tsx +80 -0
  139. package/src/Footer/Contacts.tsx +71 -0
  140. package/src/Footer/Footer.fixture.tsx +265 -0
  141. package/src/Footer/Footer.tsx +46 -0
  142. package/src/Footer/FooterLink.ts +6 -0
  143. package/src/Footer/HorizontalNavigation.tsx +46 -0
  144. package/src/Footer/Sitemap.tsx +55 -0
  145. package/src/Footer/SocialMedia.tsx +46 -0
  146. package/src/Footer/TextInformation.tsx +50 -0
  147. package/src/Footer/index.ts +2 -0
  148. package/src/Header/Header.fixture.tsx +21 -0
  149. package/src/Header/Header.tsx +55 -0
  150. package/src/Header/HeaderContent.ts +6 -0
  151. package/src/Header/HeaderSecondaryMenu.tsx +42 -0
  152. package/src/Header/HeaderSecondaryMenuButton.tsx +21 -0
  153. package/src/Header/index.ts +3 -0
  154. package/src/Header/isSubItemActive.ts +9 -0
  155. package/src/Header/isTopItemActive.ts +13 -0
  156. package/src/Icons/ActualBalanceIcon.tsx +202 -0
  157. package/src/Icons/CalendarIcon.tsx +19 -0
  158. package/src/Icons/ClockIcon.tsx +212 -0
  159. package/src/Icons/ComfortableCompIcon.tsx +379 -0
  160. package/src/Icons/DollarIcon.tsx +12 -0
  161. package/src/Icons/EmptyWalletIcon.tsx +25 -0
  162. package/src/Icons/EuroIcon.tsx +12 -0
  163. package/src/Icons/GridIcon.tsx +9 -0
  164. package/src/Icons/LoupeIcon.tsx +11 -0
  165. package/src/Icons/NewDocIcon.tsx +262 -0
  166. package/src/Icons/OkIcon.tsx +8 -0
  167. package/src/Icons/PassSendIcon.tsx +250 -0
  168. package/src/Icons/PercentageSquareIcon.tsx +18 -0
  169. package/src/Icons/ProfileIcon.tsx +18 -0
  170. package/src/Icons/SignDocsIcon.tsx +295 -0
  171. package/src/Icons/TelegramIcon.tsx +8 -0
  172. package/src/Icons/VKIcon.tsx +10 -0
  173. package/src/Icons/index.ts +17 -0
  174. package/src/Img.tsx +22 -0
  175. package/src/LikeControl.fixture.tsx +5 -0
  176. package/src/LikeControl.tsx +23 -0
  177. package/src/MobileAppTile.fixture.tsx +15 -0
  178. package/src/MobileAppTile.tsx +34 -0
  179. package/src/Placeholder.fixture.tsx +5 -0
  180. package/src/Placeholder.tsx +33 -0
  181. package/src/ProductBlock.fixture.tsx +95 -0
  182. package/src/ProductBlock.tsx +15 -0
  183. package/src/ProductBlockInner.tsx +110 -0
  184. package/src/ProductGallery.fixture.tsx +138 -0
  185. package/src/ProductGallery.tsx +90 -0
  186. package/src/ProjectSettings.ts +38 -0
  187. package/src/StepsBlock.fixture.tsx +23 -0
  188. package/src/StepsBlock.tsx +51 -0
  189. package/src/Tile.fixture.tsx +124 -0
  190. package/src/Tile.tsx +89 -0
  191. package/src/api/LikeAPI.ts +141 -0
  192. package/src/common.css +39 -0
  193. package/src/content-page-repository/ContentPageRepository.ts +38 -0
  194. package/src/content-page-repository/TransformationOptions.ts +4 -0
  195. package/src/content-page-repository/index.ts +1 -0
  196. package/src/content-page-repository/mapJSON.spec.ts +28 -0
  197. package/src/content-page-repository/mapJSON.ts +23 -0
  198. package/src/content-page-repository/transformContentPage.ts +26 -0
  199. package/src/content-page-repository/transformMarkdown.ts +10 -0
  200. package/src/content-page-repository/transformPicture.ts +61 -0
  201. package/src/cosmos.decorator.tsx +19 -0
  202. package/src/index.ts +19 -0
  203. package/src/mergeTopItems.spec.ts +20 -0
  204. package/src/mergeTopItems.ts +13 -0
  205. package/src/setup-fixture.ts +49 -0
  206. package/src/types.ts +109 -0
  207. package/src/ui-kit/BlockItem.fixture.tsx +5 -0
  208. package/src/ui-kit/BlockItem.tsx +36 -0
  209. package/src/ui-kit/Breadcrumb.tsx +26 -0
  210. package/src/ui-kit/Button.fixture.tsx +113 -0
  211. package/src/ui-kit/Button.tsx +66 -0
  212. package/src/ui-kit/HeaderItem.fixture.tsx +8 -0
  213. package/src/ui-kit/HeaderItem.tsx +25 -0
  214. package/src/ui-kit/LikeButton.fixture.tsx +6 -0
  215. package/src/ui-kit/LikeButton.tsx +41 -0
  216. package/src/ui-kit/Logo.fixture.tsx +5 -0
  217. package/src/ui-kit/Logo.tsx +35 -0
  218. package/src/ui-kit/SVG.tsx +32 -0
  219. package/src/ui-kit/SearchBar.tsx +33 -0
  220. package/src/ui-kit/TopItem.fixture.tsx +8 -0
  221. package/src/ui-kit/TopItem.tsx +37 -0
  222. package/src/useLink.ts +28 -0
  223. package/src/useSitemap.ts +17 -0
  224. package/src/utils/url.ts +22 -0
@@ -1,16 +1,17 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
+ import { mergeTopItems } from '../mergeTopItems.js';
3
4
  import { HeaderItem } from '../ui-kit/HeaderItem.js';
4
5
  import { Logo } from '../ui-kit/Logo.js';
5
6
  import { TopItem } from '../ui-kit/TopItem.js';
6
7
  import { useLink } from '../useLink.js';
8
+ import { useSitemap } from '../useSitemap.js';
7
9
  import { HeaderSecondaryMenu } from './HeaderSecondaryMenu.js';
8
10
  import { isSubItemActive } from './isSubItemActive.js';
9
11
  import { isTopItemActive } from './isTopItemActive.js';
10
- import { mergeTopItems } from '../mergeTopItems.js';
11
12
  export const Header = JSX(({ className, location, context, topItems }) => {
12
13
  const router = context.useRouter();
13
- const sitemap = context.useSitemap();
14
+ const sitemap = useSitemap(context.useAsyncData);
14
15
  const { handlerDecorator } = context;
15
16
  const mergedItems = mergeTopItems(sitemap.topItems, topItems);
16
17
  const activeTopItem = mergedItems.find(isTopItemActive(router));
@@ -1 +1 @@
1
- {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../src/Header/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpF,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IACrC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,MAAM,WAAW,GAAG,aAAa,CAAC,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC9D,MAAM,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;IAChE,MAAM,QAAQ,GAAG,aAAa,EAAE,KAAK,CAAC;IACtC,MAAM,aAAa,GAAG,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC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AAG,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACnC,KAAC,UAAU,IAET,SAAS,EAAC,MAAM,EAChB,MAAM,EAAE,CAAC,KAAK,aAAa,KACvB,OAAO,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAHvC,CAAC,CAAC,IAAI,CAIX,CACH,CAAC,CAAC;IAEH,OAAO,CACL,kBAAQ,SAAS,EAAE,0DAA0D,SAAS,IAAI,EAAE,EAAE,aAC5F,eAAK,SAAS,EAAC,mBAAmB,aAChC,KAAC,IAAI,IAAC,SAAS,EAAC,MAAM,GAAG,EACxB,OAAO,EACR,KAAC,mBAAmB,IAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAC,SAAS,GAAG,IAC3D,EACN,cAAK,SAAS,EAAC,8BAA8B,GAAG,EAChD,cAAK,SAAS,EAAC,MAAM,YAAE,OAAO,GAAO,IAC9B,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const DollarIcon: () => any;
@@ -0,0 +1,3 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ export const DollarIcon = () => (_jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z", fill: "#46B448" }), _jsx("path", { d: "M14.58 14.5193C14.58 12.0548 7.8413 13.521 7.8413 9.52803C7.8413 8.07753 9.1358 6.82953 11.1165 6.51753V5.26953H12.9105V6.48603C14.3303 6.62703 15.531 7.18803 16.3418 7.99953L15.3128 9.34053C14.3768 8.56053 13.3785 8.20203 12.0683 8.20203C10.914 8.20203 9.7913 8.56053 9.7913 9.48078C9.7913 11.6805 16.5293 10.3703 16.5293 14.3783C16.5293 16.1408 14.9385 17.3895 12.9105 17.5763V18.918H11.1165V17.4975C9.6038 17.2328 8.26205 16.4835 7.5293 15.6105L8.65205 14.2845C9.58805 15.267 10.977 15.8445 12.5048 15.8445C13.815 15.8445 14.5793 15.345 14.5793 14.5185L14.58 14.5193Z", fill: "white" })] }));
3
+ //# sourceMappingURL=DollarIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DollarIcon.js","sourceRoot":"","sources":["../../src/Icons/DollarIcon.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,CAC9B,eAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,aAC5F,eACE,CAAC,EAAC,mHAAmH,EACrH,IAAI,EAAC,SAAS,GACd,EACF,eACE,CAAC,EAAC,4jBAA4jB,EAC9jB,IAAI,EAAC,OAAO,GACZ,IACE,CACP,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const EuroIcon: () => any;
@@ -0,0 +1,3 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ export const EuroIcon = () => (_jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z", fill: "#3060BF" }), _jsx("path", { d: "M6.19238 11.4759L6.76988 10.0254H7.77638C8.45738 8.0867 10.1891 6.71045 12.5576 6.71045C13.6526 6.71045 14.5556 6.9467 15.1924 7.3907L14.5556 8.7377C14.0381 8.4272 13.3864 8.24945 12.5576 8.24945C11.2699 8.24945 10.2334 8.91545 9.70013 10.0254H14.2451L13.6976 11.4759H9.27038C9.25538 11.6687 9.24038 11.9799 9.24038 12.2019C9.24038 12.2904 9.24038 12.3497 9.25538 12.4532H13.4156L12.9416 13.9037H9.59663C10.0406 15.0587 11.2691 15.7839 12.7196 15.7839C13.2371 15.7839 14.0516 15.6212 14.5256 15.3099L14.9696 16.6869C14.5549 17.0274 13.5484 17.3087 12.6746 17.3087C10.1584 17.3087 8.39738 16.0802 7.70213 13.9037H6.22088L6.76838 12.4532C7.46438 12.4532 7.46438 12.4382 7.46438 12.4382C7.46438 12.3939 7.44938 12.2754 7.44938 12.1719C7.44938 11.8464 7.46438 11.6544 7.47938 11.4759H6.19238Z", fill: "white" })] }));
3
+ //# sourceMappingURL=EuroIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EuroIcon.js","sourceRoot":"","sources":["../../src/Icons/EuroIcon.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,CAC5B,eAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,aAC5F,eACE,CAAC,EAAC,mHAAmH,EACrH,IAAI,EAAC,SAAS,GACd,EACF,eACE,CAAC,EAAC,sxBAAsxB,EACxxB,IAAI,EAAC,OAAO,GACZ,IACE,CACP,CAAC"}
@@ -1,16 +1,17 @@
1
- import { CalendarIcon } from './CalendarIcon';
2
- import { EmptyWalletIcon } from './EmptyWalletIcon';
3
- import { GridIcon } from './GridIcon';
4
- import { LoupeIcon } from './LoupeIcon';
5
- import { PercentageSquareIcon } from './PercentageSquareIcon';
6
- import { ProfileIcon } from './ProfileIcon';
7
- import { NewDocIcon } from './NewDocIcon';
8
- import { PassSendIcon } from './PassSendIcon';
9
- import { ActualBalanceIcon } from './ActualBalanceIcon';
10
- import { ClockIcon } from './ClockIcon';
11
- import { SignDocsIcon } from './SignDocsIcon';
12
- import { ComfortableCompIcon } from './ComfortableCompIcon';
13
- import { TelegramIcon } from './TelegramIcon';
14
- import { VKIcon } from './VKIcon';
15
- import { OkIcon } from './OkIcon';
16
- export { CalendarIcon, EmptyWalletIcon, GridIcon, LoupeIcon, PercentageSquareIcon, ProfileIcon, NewDocIcon, PassSendIcon, ActualBalanceIcon, ClockIcon, SignDocsIcon, ComfortableCompIcon, TelegramIcon, VKIcon, OkIcon, };
1
+ export { ActualBalanceIcon } from './ActualBalanceIcon';
2
+ export { CalendarIcon } from './CalendarIcon';
3
+ export { ClockIcon } from './ClockIcon';
4
+ export { ComfortableCompIcon } from './ComfortableCompIcon';
5
+ export { DollarIcon } from './DollarIcon';
6
+ export { EmptyWalletIcon } from './EmptyWalletIcon';
7
+ export { EuroIcon } from './EuroIcon';
8
+ export { GridIcon } from './GridIcon';
9
+ export { LoupeIcon } from './LoupeIcon';
10
+ export { NewDocIcon } from './NewDocIcon';
11
+ export { OkIcon } from './OkIcon';
12
+ export { PassSendIcon } from './PassSendIcon';
13
+ export { PercentageSquareIcon } from './PercentageSquareIcon';
14
+ export { ProfileIcon } from './ProfileIcon';
15
+ export { SignDocsIcon } from './SignDocsIcon';
16
+ export { TelegramIcon } from './TelegramIcon';
17
+ export { VKIcon } from './VKIcon';
@@ -1,17 +1,18 @@
1
- import { CalendarIcon } from './CalendarIcon.js';
2
- import { EmptyWalletIcon } from './EmptyWalletIcon.js';
3
- import { GridIcon } from './GridIcon.js';
4
- import { LoupeIcon } from './LoupeIcon.js';
5
- import { PercentageSquareIcon } from './PercentageSquareIcon.js';
6
- import { ProfileIcon } from './ProfileIcon.js';
7
- import { NewDocIcon } from './NewDocIcon.js';
8
- import { PassSendIcon } from './PassSendIcon.js';
9
- import { ActualBalanceIcon } from './ActualBalanceIcon.js';
10
- import { ClockIcon } from './ClockIcon.js';
11
- import { SignDocsIcon } from './SignDocsIcon.js';
12
- import { ComfortableCompIcon } from './ComfortableCompIcon.js';
13
- import { TelegramIcon } from './TelegramIcon.js';
14
- import { VKIcon } from './VKIcon.js';
15
- import { OkIcon } from './OkIcon.js';
16
- export { CalendarIcon, EmptyWalletIcon, GridIcon, LoupeIcon, PercentageSquareIcon, ProfileIcon, NewDocIcon, PassSendIcon, ActualBalanceIcon, ClockIcon, SignDocsIcon, ComfortableCompIcon, TelegramIcon, VKIcon, OkIcon, };
1
+ export { ActualBalanceIcon } from './ActualBalanceIcon.js';
2
+ export { CalendarIcon } from './CalendarIcon.js';
3
+ export { ClockIcon } from './ClockIcon.js';
4
+ export { ComfortableCompIcon } from './ComfortableCompIcon.js';
5
+ export { DollarIcon } from './DollarIcon.js';
6
+ export { EmptyWalletIcon } from './EmptyWalletIcon.js';
7
+ export { EuroIcon } from './EuroIcon.js';
8
+ export { GridIcon } from './GridIcon.js';
9
+ export { LoupeIcon } from './LoupeIcon.js';
10
+ export { NewDocIcon } from './NewDocIcon.js';
11
+ export { OkIcon } from './OkIcon.js';
12
+ export { PassSendIcon } from './PassSendIcon.js';
13
+ export { PercentageSquareIcon } from './PercentageSquareIcon.js';
14
+ export { ProfileIcon } from './ProfileIcon.js';
15
+ export { SignDocsIcon } from './SignDocsIcon.js';
16
+ export { TelegramIcon } from './TelegramIcon.js';
17
+ export { VKIcon } from './VKIcon.js';
17
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,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AY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
package/lib/Img.js CHANGED
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  export const Img = JSX(({ className, image }) => (_jsxs("picture", { className: `${className || ''}`, children: [image.sources?.length
4
4
  ? image.sources.map(({ src, format }, index) => (_jsx("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
5
- : null, _jsx("img", { src: image.src, alt: image.alt, title: image.title, ...image?.size })] })));
5
+ : null, _jsx("img", { src: image.src, alt: image.alt || image.title, title: image.title, ...image?.size })] })));
6
6
  export function formatToMimeType(format) {
7
7
  return format ? `image/${String(format)}` : undefined;
8
8
  }
package/lib/Img.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Img.js","sourceRoot":"","sources":["../src/Img.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,CAAqB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACnE,mBAAS,SAAS,EAAE,GAAG,SAAS,IAAI,EAAE,EAAE,aACrC,KAAK,CAAC,OAAO,EAAE,MAAM;YACpB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,iBAAgC,MAAM,EAAE,GAA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AAEH,MAAM,UAAU,gBAAgB,CAAC,MAA2B;IAC1D,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC"}
@@ -1,2 +1,2 @@
1
- import type { UniBlocksComponentProps } from './types';
2
- export declare const LikeControl: (props: import("@redneckz/uni-jsx").PropsWithChildren<UniBlocksComponentProps, any>, context?: any) => any;
1
+ import type { UniBlockProps } from './types';
2
+ export declare const LikeControl: (props: import("@redneckz/uni-jsx").PropsWithChildren<UniBlockProps, any>, context?: any) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"LikeControl.js","sourceRoot":"","sources":["../src/LikeControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAA0B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;IACjF,MAAM,WAAW,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAE7C,OAAO,CACL,eACE,SAAS,EAAE,6GACT,SAAS,IAAI,EACf,EAAE,aAEF,KAAC,UAAU,IAAC,OAAO,EAAE,WAAW,CAAC,IAAI,EAAE,SAAS,EAAC,wIAA0B,GAAG,EAC9E,KAAC,UAAU,IACT,OAAO,EAAE,WAAW,CAAC,OAAO,EAC5B,SAAS,EAAC,YAAY,EACtB,SAAS,EAAC,0JAA6B,GACvC,EACF,eAAM,SAAS,EAAC,aAAa,YAAE,WAAW,CAAC,SAAS,GAAQ,IACxD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"LikeControl.js","sourceRoot":"","sources":["../src/LikeControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAgB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;IACvE,MAAM,WAAW,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAE7C,OAAO,CACL,eACE,SAAS,EAAE,6GACT,SAAS,IAAI,EACf,EAAE,aAEF,KAAC,UAAU,IAAC,OAAO,EAAE,WAAW,CAAC,IAAI,EAAE,SAAS,EAAC,wIAA0B,GAAG,EAC9E,KAAC,UAAU,IACT,OAAO,EAAE,WAAW,CAAC,OAAO,EAC5B,SAAS,EAAC,YAAY,EACtB,SAAS,EAAC,0JAA6B,GACvC,EACF,eAAM,SAAS,EAAC,aAAa,YAAE,WAAW,CAAC,SAAS,GAAQ,IACxD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { UniBlockProps } from './types';
2
+ export interface MobileAppTileContent {
3
+ title?: string;
4
+ qr?: string;
5
+ }
6
+ export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {
7
+ }
8
+ export declare const MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<MobileAppTileProps, any>, context?: any) => any;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ import { Tile } from './Tile.js';
4
+ export const MobileAppTile = JSX(({ className, context, title = 'Мобильное приложение', qr }) => {
5
+ return (_jsx(Tile, { className: className, context: context, title: title, children: _jsxs("div", { className: "flex items-center", children: [qr && (_jsx("img", { src: qr, alt: title, title: title, width: "90", height: "90", className: "w-[90px] h-[90px] bg-secondary-light" })), _jsx("span", { className: "font-normal text-sm text-secondary-text ml-4", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }) }));
6
+ });
7
+ //# sourceMappingURL=MobileAppTile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../src/MobileAppTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAU9B,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAC9B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,GAAG,sBAAsB,EAAE,EAAE,EAAE,EAAE,EAAE;IAC7D,OAAO,CACL,KAAC,IAAI,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,YACxD,eAAK,SAAS,EAAC,mBAAmB,aAC/B,EAAE,IAAI,CACL,cACE,GAAG,EAAE,EAAE,EACP,GAAG,EAAE,KAAK,EACV,KAAK,EAAE,KAAK,EACZ,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,SAAS,EAAC,sCAAsC,GAChD,CACH,EACD,eAAM,SAAS,EAAC,8CAA8C,+SAEvD,IACH,GACD,CACR,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,6 +1,8 @@
1
+ import type { UniBlockProps } from './types';
1
2
  export interface PlaceholderContent {
3
+ title?: string;
2
4
  }
3
- export interface PlaceholderProps extends PlaceholderContent {
5
+ export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
4
6
  className?: string;
5
7
  }
6
8
  export declare const Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<PlaceholderProps, any>, context?: any) => any;
@@ -1,6 +1,13 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- export const Placeholder = JSX(({ className, children }) => {
4
- return _jsx("div", { className: className || '', children: children });
3
+ import { Tile } from './Tile.js';
4
+ const GOLDEN_RATIO = 1.618;
5
+ export const Placeholder = JSX(({ className, context, title }) => {
6
+ return (_jsx(Tile, { className: className, context: context, title: title, children: _jsx("figure", { className: "m-0 min-w-[600px]", children: renderShimmer() }) }));
5
7
  });
8
+ const renderShimmer = (size = 3) => goldenSequence(100, size)
9
+ .map((_) => Math.floor(_))
10
+ .map(renderShimmerItem);
11
+ const renderShimmerItem = (width = 100, index) => (_jsx("div", { style: { width: `${width}%` }, className: "h-4 mt-2 bg-secondary-light" }, String(index)));
12
+ const goldenSequence = (first, size) => [first].concat(size > 0 ? goldenSequence(first / GOLDEN_RATIO, size - 1) : []);
6
13
  //# sourceMappingURL=Placeholder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../src/Placeholder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3E,OAAO,cAAK,SAAS,EAAE,SAAS,IAAI,EAAE,YAAG,QAAQ,GAAO,CAAC;AAC3D,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../src/Placeholder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAW9B,MAAM,YAAY,GAAG,KAAK,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;IACjF,OAAO,CACL,KAAC,IAAI,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,YACxD,iBAAQ,SAAS,EAAC,mBAAmB,YAAE,aAAa,EAAE,GAAU,GAC3D,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,CAAC,OAAe,CAAC,EAAE,EAAE,CACzC,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC;KACtB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACzB,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAE5B,MAAM,iBAAiB,GAAG,CAAC,QAAgB,GAAG,EAAE,KAAa,EAAE,EAAE,CAAC,CAChE,cAAyB,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,EAAE,EAAE,SAAS,EAAC,6BAA6B,IAArF,MAAM,CAAC,KAAK,CAAC,CAA2E,CACnG,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,IAAY,EAAY,EAAE,CAC/D,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,GAAG,YAAY,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { ProductBlockInnerContent } from './ProductBlockInner';
2
- import type { UniBlocksComponentProps } from './types';
3
- export interface ProductBlockProps extends ProductBlockInnerContent, UniBlocksComponentProps {
2
+ import type { UniBlockProps } from './types';
3
+ export interface ProductBlockProps extends ProductBlockInnerContent, UniBlockProps {
4
4
  }
5
5
  export declare const ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductBlockProps, any>, context?: any) => any;
@@ -1,4 +1,4 @@
1
- import type { Picture, UniBlocksComponentProps, Benefit } from './types';
1
+ import type { Picture, UniBlockProps, Benefit } from './types';
2
2
  import type { ButtonProps } from './ui-kit/Button';
3
3
  import { BreadcrumbProps } from './ui-kit/Breadcrumb';
4
4
  export interface ProductBlockInnerContent {
@@ -10,6 +10,6 @@ export interface ProductBlockInnerContent {
10
10
  items?: string[];
11
11
  buttons?: ButtonProps[];
12
12
  }
13
- export interface ProductBlockInnerProps extends ProductBlockInnerContent, UniBlocksComponentProps {
13
+ export interface ProductBlockInnerProps extends ProductBlockInnerContent, UniBlockProps {
14
14
  }
15
15
  export declare const ProductBlockInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductBlockInnerProps, any>, context?: any) => any;
@@ -1,5 +1,5 @@
1
1
  import type { ProductBlockInnerContent } from './ProductBlockInner';
2
- import type { UniBlocksComponentProps } from './types';
2
+ import type { UniBlockProps } from './types';
3
3
  interface ProductGalleryNav {
4
4
  title: string;
5
5
  desc: string;
@@ -12,7 +12,7 @@ export interface ProductGalleryContent {
12
12
  duration?: number;
13
13
  slides?: ProductSlideContent[];
14
14
  }
15
- export interface ProductGalleryProps extends ProductGalleryContent, UniBlocksComponentProps {
15
+ export interface ProductGalleryProps extends ProductGalleryContent, UniBlockProps {
16
16
  }
17
17
  export declare const ProductGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductGalleryProps, any>, context?: any) => any;
18
18
  export {};
@@ -5,7 +5,7 @@ export const ProductGallery = JSX(({ className, context, duration = 0, slides =
5
5
  const galleryNav = slides.map((s) => s.nav);
6
6
  const galleryBlocks = slides.map((s) => s.productBlock);
7
7
  const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
8
- return (_jsxs("section", { className: `font-sans bg-white overflow-hidden w-100 ${className || ''}`, children: [_jsx("div", { className: `flex transition duration-1000`, style: { transform: `translateX(-${activeSlideIndex}00%)` }, children: galleryBlocks.map((_, i) => renderProductBlock(_, i, context)) }), _jsx("div", { className: `border-0 border-t border-solid border-main-divider grid grid-cols-${galleryNav.length}`, children: galleryNav.map((slide, i) => renderNavButton({
8
+ return (_jsxs("section", { className: `font-sans bg-white overflow-hidden w-100 ${className || ''}`, children: [_jsx("div", { className: `flex transition duration-1000`, style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => renderProductBlock(_, i, context)) }), _jsx("div", { className: `border-0 border-t border-solid border-main-divider grid grid-cols-${galleryNav.length}`, children: galleryNav.map((slide, i) => renderNavButton({
9
9
  slide,
10
10
  i,
11
11
  activeSlideIndex,
@@ -14,7 +14,7 @@ export const ProductGallery = JSX(({ className, context, duration = 0, slides =
14
14
  })) })] }));
15
15
  });
16
16
  function renderProductBlock(block, i, context) {
17
- return (_jsx("section", { className: "grow-0 shrink-0 basis-full", role: "list", children: _jsx("div", { className: "p-11 pr-[7.5rem] ", children: _jsx(ProductBlockInner, { context: context, ...block }) }) }, String(i)));
17
+ return (_jsx("section", { className: "grow-0 shrink-0 basis-full", role: "listitem", children: _jsx("div", { className: "p-11 pr-[7.5rem] ", children: _jsx(ProductBlockInner, { context: context, ...block }) }) }, String(i)));
18
18
  }
19
19
  function renderNavButton({ slide, i, activeSlideIndex, onClick, duration }) {
20
20
  const isActiveBtn = i === activeSlideIndex;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../src/ProductGallery.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAoBxD,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAC/B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,GAAG,CAAC,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,EAAE;IACpD,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAC5C,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE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C,CAAC,qBAAqB,CAAC;IACpF,OAAO,CACL,kBACE,IAAI,EAAC,QAAQ,EAEb,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,uFAAuF,aAElG,eAAK,SAAS,EAAC,yDAAyD,aACtE,cAAK,SAAS,EAAE,qDAAqD,iBAAiB,EAAE,YACrF,KAAK,EAAE,KAAK,GACT,EACN,cAAK,SAAS,EAAC,6BAA6B,YAAE,KAAK,CAAC,IAAI,GAAO,IAC3D,EACN,cACE,SAAS,EAAE,6EAA6E,oBAAoB,EAAE,EAC9G,KAAK,EAAE,EAAE,iBAAiB,EAAE,GAAG,QAAQ,GAAG,EAAE,GACvC,KAbF,MAAM,CAAC,CAAC,CAAC,CAcP,CACV,CAAC;AACJ,CAAC"}
@@ -0,0 +1,18 @@
1
+ export interface ProjectSettings {
2
+ TEST_BRANCH?: string;
3
+ RC_BRANCH?: string;
4
+ PROD_BRANCH: string;
5
+ FORCED_DRAFT_FLOW: boolean;
6
+ ENABLE_ASSIST?: boolean;
7
+ SITEMAP?: string;
8
+ }
9
+ export declare const projectSettings: {
10
+ _: ProjectSettings;
11
+ setup(_: ProjectSettings): void;
12
+ readonly TEST_BRANCH: string | undefined;
13
+ readonly RC_BRANCH: string | undefined;
14
+ readonly PROD_BRANCH: string;
15
+ readonly FORCED_DRAFT_FLOW: boolean;
16
+ readonly ENABLE_ASSIST: boolean | undefined;
17
+ readonly SITEMAP: string | undefined;
18
+ };
@@ -0,0 +1,28 @@
1
+ export const projectSettings = new (class {
2
+ _ = {
3
+ PROD_BRANCH: 'master',
4
+ FORCED_DRAFT_FLOW: false,
5
+ };
6
+ setup(_) {
7
+ this._ = _;
8
+ }
9
+ get TEST_BRANCH() {
10
+ return this._.TEST_BRANCH;
11
+ }
12
+ get RC_BRANCH() {
13
+ return this._.RC_BRANCH;
14
+ }
15
+ get PROD_BRANCH() {
16
+ return this._.PROD_BRANCH;
17
+ }
18
+ get FORCED_DRAFT_FLOW() {
19
+ return this._.FORCED_DRAFT_FLOW;
20
+ }
21
+ get ENABLE_ASSIST() {
22
+ return this._.ENABLE_ASSIST;
23
+ }
24
+ get SITEMAP() {
25
+ return this._.SITEMAP;
26
+ }
27
+ })();
28
+ //# sourceMappingURL=ProjectSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProjectSettings.js","sourceRoot":"","sources":["../src/ProjectSettings.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;IAClC,CAAC,GAAoB;QACnB,WAAW,EAAE,QAAQ;QACrB,iBAAiB,EAAE,KAAK;KACzB,CAAC;IAEF,KAAK,CAAC,CAAkB;QACtB,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC;IAC5B,CAAC;IACD,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IAC1B,CAAC;IACD,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC;IAC5B,CAAC;IACD,IAAI,iBAAiB;QACnB,OAAO,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAClC,CAAC;IACD,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC;IAC9B,CAAC;IACD,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;IACxB,CAAC;CACF,CAAC,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { UniBlocksComponentProps } from './types';
1
+ import type { UniBlockProps } from './types';
2
2
  declare const ICONS: {
3
3
  NewDocIcon: (props?: Record<string, any> | undefined) => any;
4
4
  PassSendIcon: (props?: Record<string, any> | undefined) => any;
@@ -13,7 +13,7 @@ export interface StepsBlockContent {
13
13
  title?: string;
14
14
  steps?: Step[];
15
15
  }
16
- export interface StepsBlockProps extends StepsBlockContent, UniBlocksComponentProps {
16
+ export interface StepsBlockProps extends StepsBlockContent, UniBlockProps {
17
17
  }
18
18
  export declare const StepsBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<StepsBlockProps, any>, context?: any) => any;
19
19
  export {};
package/lib/Tile.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { BlockVersion, Picture, UniBlocksComponentProps } from './types';
1
+ import type { BlockVersion, Picture, UniBlockProps } from './types';
2
2
  import type { ButtonProps } from './ui-kit/Button';
3
3
  export interface TileContent {
4
4
  title?: string;
@@ -8,6 +8,6 @@ export interface TileContent {
8
8
  button?: ButtonProps;
9
9
  version?: BlockVersion;
10
10
  }
11
- export interface TileProps extends TileContent, UniBlocksComponentProps {
11
+ export interface TileProps extends TileContent, UniBlockProps {
12
12
  }
13
13
  export declare const Tile: (props: import("@redneckz/uni-jsx").PropsWithChildren<TileProps, any>, context?: any) => any;
package/lib/Tile.js CHANGED
@@ -9,18 +9,26 @@ const tileStyleMap = {
9
9
  secondary: 'bg-primary-main text-white',
10
10
  };
11
11
  const TITLE_CLASSES = 'font-medium m-0 whitespace-pre-wrap max-w-[600px]';
12
- export const Tile = JSX(({ className, context, title, description, button, image, items, version = 'primary' }) => {
12
+ export const Tile = JSX(({ className, context, title, description, children, button, image, items, version = 'primary', }) => {
13
13
  const router = context.useRouter();
14
14
  const { handlerDecorator } = context;
15
- return (_jsx("section", { className: `font-sans p-9 flex justify-between items-stretch relative ${className || ''} ${tileStyleMap[version]}`, children: _jsxs("div", { className: "flex flex-col w-full", children: [title && renderTitle(title, className), _jsxs("div", { className: "flex justify-between h-full", children: [_jsxs("div", { className: "flex flex-col", children: [description && (_jsx("div", { className: "font-normal text-base max-w-[600px] mt-4", children: description })), items?.length ? (_jsx("section", { className: "space-y-2.5 mt-5 max-w-[600px]", role: "list", children: items.map((_, i) => (_jsx(BlockItem, { text: _, version: version }, String(i)))) })) : null, button?.text && (_jsx("div", { className: "mt-auto", children: _jsx(Button, { className: "mt-8", ...useLink({ router, handlerDecorator }, button), version: "secondary" }) }))] }), image?.src && (_jsx("div", { className: "mt-auto flex-none h-[220px] w-[220px]", children: _jsx(Img, { image: image }) }))] })] }) }));
15
+ return (_jsxs("section", { className: `flex flex-col font-sans p-9 ${className || ''} ${tileStyleMap[version]}`, children: [title && renderTitle(title, className), _jsxs("div", { className: "grow flex justify-between mt-6", children: [_jsxs("div", { className: "flex flex-col justify-between items-start", children: [description || children ? (_jsx("div", { className: "font-normal text-base max-w-[600px]", children: description || children })) : (renderItems(items, version)), button?.text && (_jsx(Button, { className: "mt-6", ...useLink({ router, handlerDecorator }, button), version: "secondary" }))] }), image?.src && _jsx(Img, { className: "mt-auto h-[220px] w-[220px]", image: image })] })] }));
16
16
  });
17
- const renderTitle = (title, className = '') => {
18
- if (className.includes('col-span-4')) {
17
+ function renderTitle(title, className = '') {
18
+ const colSpanPrefix = 'col-span-';
19
+ const colSpanStr = className.split(/\s+/).find((_) => _.startsWith(colSpanPrefix));
20
+ const colSpan = colSpanStr ? parseInt(colSpanStr.substring(colSpanPrefix.length), 10) : 12;
21
+ if (colSpan <= 4) {
19
22
  return _jsx("h3", { className: `${TITLE_CLASSES} text-title-xs`, children: title });
20
23
  }
21
- if (className.includes('col-span-6') || className.includes('col-span-8')) {
24
+ else if (colSpan <= 8) {
22
25
  return _jsx("h3", { className: `${TITLE_CLASSES} text-title-sm`, children: title });
23
26
  }
24
- return _jsx("h2", { className: `${TITLE_CLASSES} text-title`, children: title });
25
- };
27
+ else {
28
+ return _jsx("h2", { className: `${TITLE_CLASSES} text-title`, children: title });
29
+ }
30
+ }
31
+ function renderItems(items, version) {
32
+ return items?.length ? (_jsx("section", { className: "max-w-[600px]", role: "list", children: items.map((_, i) => (_jsx(BlockItem, { className: i ? 'mt-2.5' : '', text: _, version: version }, String(i)))) })) : null;
33
+ }
26
34
  //# sourceMappingURL=Tile.js.map
package/lib/Tile.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Tile.js","sourceRoot":"","sources":["../src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ary-hover:#248341;--color-primary-active:#245f34;--color-secondary-hover:#c5e2c6;--color-secondary-active:#d8f2d9}[data-theme=bc]{--color-primary-main:#83b83e;--color-primary-hover:#5c921d;--color-primary-active:#3c5e10;--color-secondary-hover:#e8f4d9;--color-secondary-active:#d8e3ca}[data-theme=eo]{--color-primary-main:#ddb63d;--color-primary-hover:#bb9727;--color-primary-active:#7e630c;--color-secondary-hover:#f1ecdd;--color-secondary-active:#e5dec7}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.top-4{top:1rem}.right-4{right:1rem}.bottom-0{bottom:0}.right-0{right:0}.left-0{left:0}.-bottom-2{bottom:-.5rem}.top-0{top:0}.z-10{z-index:10}.col-span-12{grid-column:span 12/span 12}.col-span-8{grid-column:span 8/span 8}.col-span-4{grid-column:span 4/span 4}.col-span-6{grid-column:span 6/span 6}.m-0{margin:0}.mx-2{margin-left:.5rem;margin-right:.5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mt-9{margin-top:2.25rem}.mt-2{margin-top:.5rem}.mb-6{margin-bottom:1.5rem}.mt-4{margin-top:1rem}.mt-7{margin-top:1.75rem}.mt-5{margin-top:1.25rem}.mt-auto{margin-top:auto}.mt-8{margin-top:2rem}.mb-4{margin-bottom:1rem}.mr-8{margin-right:2rem}.ml-auto{margin-left:auto}.mr-5{margin-right:1.25rem}.mr-7{margin-right:1.75rem}.ml-2\.5{margin-left:.625rem}.ml-2{margin-left:.5rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-\[70px\]{height:70px}.h-8{height:2rem}.h-full{height:100%}.h-\[50px\]{height:50px}.h-\[3px\]{height:3px}.h-\[100px\]{height:100px}.h-\[220px\]{height:220px}.h-\[1px\]{height:1px}.h-\[8px\]{height:8px}.h-\[2px\]{height:2px}.h-\[24px\]{height:24px}.min-h-\[70px\]{min-height:70px}.min-h-\[50px\]{min-height:50px}.min-h-\[100px\]{min-height:100px}.min-h-\[32px\]{min-height:32px}.min-h-\[8px\]{min-height:8px}.w-\[70px\]{width:70px}.w-full{width:100%}.w-8{width:2rem}.w-\[125px\]{width:125px}.w-\[50px\]{width:50px}.w-\[100px\]{width:100px}.w-\[220px\]{width:220px}.w-\[280px\]{width:280px}.w-\[235px\]{width:235px}.w-\[24px\]{width:24px}.w-\[8px\]{width:8px}.w-\[36px\]{width:36px}.w-10{width:2.5rem}.min-w-\[70px\]{min-width:70px}.min-w-\[50px\]{min-width:50px}.min-w-\[100px\]{min-width:100px}.min-w-\[32px\]{min-width:32px}.min-w-\[8px\]{min-width:8px}.max-w-\[47rem\]{max-width:47rem}.max-w-\[580px\]{max-width:580px}.max-w-\[600px\]{max-width:600px}.max-w-min{max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content}.max-w-\[292px\]{max-width:292px}.max-w-\[170px\]{max-width:170px}.flex-none{flex:none}.shrink-0{flex-shrink:0}.grow-0{flex-grow:0}.grow{flex-grow:1}.basis-full{flex-basis:100%}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes progress{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes progress{0%{transform:translateX(-100%)}to{transform:translateX(0)}}.animate-slide{-webkit-animation:progress linear;animation:progress linear}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-5{gap:1.25rem}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-6{gap:1.5rem}.gap-4{gap:1rem}.gap-32{gap:8rem}.gap-11{gap:2.75rem}.gap-\[14px\]{gap:14px}.gap-2{gap:.5rem}.gap-3\.5{gap:.875rem}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.625rem*var(--tw-space-y-reverse));margin-top:calc(.625rem*(1 - var(--tw-space-y-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-3xl{border-radius:1.5rem}.rounded-l-full{border-bottom-left-radius:9999px;border-top-left-radius:9999px}.rounded-r-full{border-bottom-right-radius:9999px;border-top-right-radius:9999px}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-bl-3xl{border-bottom-left-radius:1.5rem}.rounded-br-3xl{border-bottom-right-radius:1.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-0{border-width:0}.border-x-0{border-left-width:0;border-right-width:0}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-main{--tw-border-opacity:1;border-color:rgb(240 244 240/var(--tw-border-opacity))}.border-main-divider{--tw-border-opacity:1;border-color:rgb(235 237 240/var(--tw-border-opacity))}.border-primary-main{border-color:var(--color-primary-main)}.border-transparent{border-color:transparent}.border-y-main-divider{--tw-border-opacity:1;border-bottom-color:rgb(235 237 240/var(--tw-border-opacity));border-top-color:rgb(235 237 240/var(--tw-border-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-main{--tw-bg-opacity:1;background-color:rgb(240 244 240/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-inherit{background-color:inherit}.bg-primary-main{background-color:var(--color-primary-main)}.bg-secondary-light{--tw-bg-opacity:1;background-color:rgb(245 247 249/var(--tw-bg-opacity))}.bg-main-divider{--tw-bg-opacity:1;background-color:rgb(235 237 240/var(--tw-bg-opacity))}.bg-secondary-dark{--tw-bg-opacity:1;background-color:rgb(226 228 229/var(--tw-bg-opacity))}.p-12{padding:3rem}.p-10{padding:2.5rem}.p-20{padding:5rem}.p-2{padding:.5rem}.p-11{padding:2.75rem}.p-\[10px\]{padding:10px}.p-\[26px\]{padding:26px}.p-9{padding:2.25rem}.p-0{padding:0}.px-0{padding-left:0;padding-right:0}.py-4{padding-bottom:1rem;padding-top:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-12{padding-left:3rem;padding-right:3rem}.py-12{padding-bottom:3rem;padding-top:3rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-9{padding-left:2.25rem;padding-right:2.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-8{padding-bottom:2rem;padding-top:2rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.py-\[5px\]{padding-bottom:5px;padding-top:5px}.px-20{padding-left:5rem;padding-right:5rem}.py-3\.5{padding-bottom:.875rem;padding-top:.875rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-4{padding-left:1rem;padding-right:1rem}.pb-2{padding-bottom:.5rem}.pt-0{padding-top:0}.pr-\[7\.5rem\]{padding-right:7.5rem}.pr-28{padding-right:7rem}.pt-\[3px\]{padding-top:3px}.pt-\[5px\]{padding-top:5px}.pt-5{padding-top:1.25rem}.pb-8{padding-bottom:2rem}.pl-4{padding-left:1rem}.pl-\[170px\]{padding-left:170px}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:Ubuntu,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-title{font-size:2rem;line-height:2.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.375rem}.text-xs{font-size:.75rem;line-height:1.125rem}.text-title-lg{font-size:2.5rem;line-height:3rem}.text-base{font-size:1rem;line-height:1.25rem}.text-title-sm{font-size:1.75rem;line-height:2.5rem}.text-title-xs{font-size:1.5rem;line-height:1.875rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-primary-text{--tw-text-opacity:1;color:rgb(28 28 28/var(--tw-text-opacity))}.text-secondary-text{--tw-text-opacity:1;color:rgb(125 126 127/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-main{--tw-text-opacity:1;color:rgb(240 244 240/var(--tw-text-opacity))}.text-primary-main{color:var(--color-primary-main)}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-1000{transition-duration:1s}.rotate-180{transform:rotate(180deg)}.-translate-x-full{transform:translateX(-100%)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:top-\[50px\]:after{content:var(--tw-content);top:50px}.after\:right-\[-50\%\]:after{content:var(--tw-content);right:-50%}.after\:h-0\.5:after{content:var(--tw-content);height:.125rem}.after\:h-0:after{content:var(--tw-content);height:0}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:bg-secondary-light:after{--tw-bg-opacity:1;background-color:rgb(245 247 249/var(--tw-bg-opacity));content:var(--tw-content)}.after\:content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}.last\:after\:content-none:last-child:after{--tw-content:none;content:var(--tw-content)}.visited\:text-secondary-text:visited{color:#7d7e7f}.hover\:bg-primary-hover:hover{background-color:var(--color-primary-hover)}.hover\:bg-secondary-hover:hover{background-color:var(--color-secondary-hover)}.hover\:text-primary-text:hover{--tw-text-opacity:1;color:rgb(28 28 28/var(--tw-text-opacity))}.hover\:text-primary-main:hover{color:var(--color-primary-main)}.hover\:text-secondary-hover:hover{color:var(--color-secondary-hover)}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.active\:bg-primary-active:active{background-color:var(--color-primary-active)}.active\:bg-secondary-active:active{background-color:var(--color-secondary-active)}.group:hover .group-hover\:text-primary-text{--tw-text-opacity:1;color:rgb(28 28 28/var(--tw-text-opacity))}@media (min-width:1280px) and (max-width:1535px){.xl\:w-\[220px\]{width:220px}.xl\:gap-8{gap:2rem}.xl\:gap-5{gap:1.25rem}}
1
+ @import "../fonts/ubuntu/ubuntu.css";[data-theme=pc]{--color-primary-main:#42ab44;--color-primary-hover:#248341;--color-primary-active:#245f34;--color-secondary-hover:#c5e2c6;--color-secondary-active:#d8f2d9}[data-theme=bc]{--color-primary-main:#83b83e;--color-primary-hover:#5c921d;--color-primary-active:#3c5e10;--color-secondary-hover:#e8f4d9;--color-secondary-active:#d8e3ca}[data-theme=eo]{--color-primary-main:#ddb63d;--color-primary-hover:#bb9727;--color-primary-active:#7e630c;--color-secondary-hover:#f1ecdd;--color-secondary-active:#e5dec7}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.top-4{top:1rem}.right-4{right:1rem}.bottom-0{bottom:0}.right-0{right:0}.left-0{left:0}.-bottom-2{bottom:-.5rem}.top-0{top:0}.z-10{z-index:10}.col-span-12{grid-column:span 12/span 12}.col-span-8{grid-column:span 8/span 8}.col-span-4{grid-column:span 4/span 4}.col-span-6{grid-column:span 6/span 6}.m-0{margin:0}.-mx-20{margin-left:-5rem;margin-right:-5rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mt-9{margin-top:2.25rem}.mt-2{margin-top:.5rem}.mb-5{margin-bottom:1.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.mb-6{margin-bottom:1.5rem}.mt-4{margin-top:1rem}.mt-7{margin-top:1.75rem}.mt-5{margin-top:1.25rem}.mt-auto{margin-top:auto}.mt-8{margin-top:2rem}.mt-6{margin-top:1.5rem}.mt-2\.5{margin-top:.625rem}.mb-4{margin-bottom:1rem}.mr-8{margin-right:2rem}.ml-auto{margin-left:auto}.mr-5{margin-right:1.25rem}.mr-7{margin-right:1.75rem}.ml-2\.5{margin-left:.625rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.h-\[70px\]{height:70px}.h-8{height:2rem}.h-full{height:100%}.h-\[90px\]{height:90px}.h-4{height:1rem}.h-\[50px\]{height:50px}.h-\[3px\]{height:3px}.h-\[100px\]{height:100px}.h-\[220px\]{height:220px}.h-\[1px\]{height:1px}.h-\[8px\]{height:8px}.h-\[2px\]{height:2px}.h-\[24px\]{height:24px}.min-h-\[70px\]{min-height:70px}.min-h-\[50px\]{min-height:50px}.min-h-\[100px\]{min-height:100px}.min-h-\[32px\]{min-height:32px}.min-h-\[8px\]{min-height:8px}.w-\[70px\]{width:70px}.w-full{width:100%}.w-8{width:2rem}.w-\[125px\]{width:125px}.w-\[90px\]{width:90px}.w-\[50px\]{width:50px}.w-\[100px\]{width:100px}.w-\[220px\]{width:220px}.w-\[280px\]{width:280px}.w-\[235px\]{width:235px}.w-\[24px\]{width:24px}.w-\[8px\]{width:8px}.w-\[36px\]{width:36px}.w-10{width:2.5rem}.min-w-\[70px\]{min-width:70px}.min-w-\[600px\]{min-width:600px}.min-w-\[50px\]{min-width:50px}.min-w-\[100px\]{min-width:100px}.min-w-\[32px\]{min-width:32px}.min-w-\[8px\]{min-width:8px}.max-w-\[47rem\]{max-width:47rem}.max-w-\[580px\]{max-width:580px}.max-w-\[600px\]{max-width:600px}.max-w-min{max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content}.max-w-\[292px\]{max-width:292px}.max-w-\[170px\]{max-width:170px}.shrink-0{flex-shrink:0}.grow-0{flex-grow:0}.grow{flex-grow:1}.basis-full{flex-basis:100%}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes progress{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes progress{0%{transform:translateX(-100%)}to{transform:translateX(0)}}.animate-slide{-webkit-animation:progress linear;animation:progress linear}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-5{gap:1.25rem}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-6{gap:1.5rem}.gap-4{gap:1rem}.gap-32{gap:8rem}.gap-11{gap:2.75rem}.gap-\[14px\]{gap:14px}.gap-2{gap:.5rem}.gap-3\.5{gap:.875rem}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.625rem*var(--tw-space-y-reverse));margin-top:calc(.625rem*(1 - var(--tw-space-y-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-3xl{border-radius:1.5rem}.rounded-l-full{border-bottom-left-radius:9999px;border-top-left-radius:9999px}.rounded-r-full{border-bottom-right-radius:9999px;border-top-right-radius:9999px}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-bl-3xl{border-bottom-left-radius:1.5rem}.rounded-br-3xl{border-bottom-right-radius:1.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-0{border-width:0}.border-x-0{border-left-width:0;border-right-width:0}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-main{--tw-border-opacity:1;border-color:rgb(240 244 240/var(--tw-border-opacity))}.border-main-divider{--tw-border-opacity:1;border-color:rgb(235 237 240/var(--tw-border-opacity))}.border-primary-main{border-color:var(--color-primary-main)}.border-transparent{border-color:transparent}.border-y-main-divider{--tw-border-opacity:1;border-bottom-color:rgb(235 237 240/var(--tw-border-opacity));border-top-color:rgb(235 237 240/var(--tw-border-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-main{--tw-bg-opacity:1;background-color:rgb(240 244 240/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-secondary-light{--tw-bg-opacity:1;background-color:rgb(245 247 249/var(--tw-bg-opacity))}.bg-inherit{background-color:inherit}.bg-primary-main{background-color:var(--color-primary-main)}.bg-main-divider{--tw-bg-opacity:1;background-color:rgb(235 237 240/var(--tw-bg-opacity))}.bg-secondary-dark{--tw-bg-opacity:1;background-color:rgb(226 228 229/var(--tw-bg-opacity))}.p-12{padding:3rem}.p-10{padding:2.5rem}.p-20{padding:5rem}.p-2{padding:.5rem}.p-11{padding:2.75rem}.p-\[10px\]{padding:10px}.p-\[26px\]{padding:26px}.p-9{padding:2.25rem}.p-0{padding:0}.px-0{padding-left:0;padding-right:0}.py-4{padding-bottom:1rem;padding-top:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-12{padding-left:3rem;padding-right:3rem}.py-12{padding-bottom:3rem;padding-top:3rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-9{padding-left:2.25rem;padding-right:2.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-8{padding-bottom:2rem;padding-top:2rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.py-\[5px\]{padding-bottom:5px;padding-top:5px}.px-20{padding-left:5rem;padding-right:5rem}.py-3\.5{padding-bottom:.875rem;padding-top:.875rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-4{padding-left:1rem;padding-right:1rem}.pb-2{padding-bottom:.5rem}.pt-0{padding-top:0}.pl-11{padding-left:2.75rem}.pt-4{padding-top:1rem}.pr-\[7\.5rem\]{padding-right:7.5rem}.pr-28{padding-right:7rem}.pt-\[3px\]{padding-top:3px}.pt-\[5px\]{padding-top:5px}.pt-5{padding-top:1.25rem}.pb-8{padding-bottom:2rem}.pl-4{padding-left:1rem}.pl-\[170px\]{padding-left:170px}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:Ubuntu,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-title{font-size:2rem;line-height:2.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.375rem}.text-base{font-size:1rem;line-height:1.5rem}.text-xs{font-size:.75rem;line-height:1.125rem}.text-title-lg{font-size:2.5rem;line-height:3rem}.text-title-sm{font-size:1.75rem;line-height:2.5rem}.text-title-xs{font-size:1.5rem;line-height:1.875rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-primary-text{--tw-text-opacity:1;color:rgb(28 28 28/var(--tw-text-opacity))}.text-secondary-text{--tw-text-opacity:1;color:rgb(125 126 127/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-main{--tw-text-opacity:1;color:rgb(240 244 240/var(--tw-text-opacity))}.text-primary-main{color:var(--color-primary-main)}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.shadow-\[0_8px_32px_0px_\#00000014\]{--tw-shadow:0 8px 32px 0px #00000014;--tw-shadow-colored:0 8px 32px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-1000{transition-duration:1s}.rotate-180{transform:rotate(180deg)}.-translate-x-full{transform:translateX(-100%)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:top-\[50px\]:after{content:var(--tw-content);top:50px}.after\:right-\[-50\%\]:after{content:var(--tw-content);right:-50%}.after\:h-0\.5:after{content:var(--tw-content);height:.125rem}.after\:h-0:after{content:var(--tw-content);height:0}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:bg-secondary-light:after{--tw-bg-opacity:1;background-color:rgb(245 247 249/var(--tw-bg-opacity));content:var(--tw-content)}.after\:content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}.last\:after\:content-none:last-child:after{--tw-content:none;content:var(--tw-content)}.visited\:text-secondary-text:visited{color:#7d7e7f}.hover\:bg-primary-hover:hover{background-color:var(--color-primary-hover)}.hover\:bg-secondary-hover:hover{background-color:var(--color-secondary-hover)}.hover\:text-primary-text:hover{--tw-text-opacity:1;color:rgb(28 28 28/var(--tw-text-opacity))}.hover\:text-primary-main:hover{color:var(--color-primary-main)}.hover\:text-secondary-hover:hover{color:var(--color-secondary-hover)}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.active\:bg-primary-active:active{background-color:var(--color-primary-active)}.active\:bg-secondary-active:active{background-color:var(--color-secondary-active)}.group:hover .group-hover\:text-primary-text{--tw-text-opacity:1;color:rgb(28 28 28/var(--tw-text-opacity))}@media (min-width:1280px) and (max-width:1535px){.xl\:w-\[220px\]{width:220px}.xl\:gap-8{gap:2rem}.xl\:gap-5{gap:1.25rem}}
package/lib/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
+ export type { ProjectSettings } from './ProjectSettings';
2
+ export { projectSettings } from './ProjectSettings';
1
3
  export type { BlockDef, ContentPageMeta, ContentPageDef, Img, ImgSource, Picture } from './types';
2
- export type { ContentPageContext, Router } from './ContentPageContext';
3
- export { Blocks } from './Blocks';
4
- export { LikeAPI } from './api/LikeAPI';
4
+ export type { ContentPageContext, Router, LikeService, Search, HandlerDecorator, } from './ContentPageContext';
5
5
  export { ContentPageHead } from './ContentPageHead';
6
6
  export { ContentPage } from './ContentPage';
7
+ export { Blocks } from './Blocks';
8
+ export { LikeAPI } from './api/LikeAPI';
7
9
  export * as url from './utils/url';
package/lib/index.js CHANGED
@@ -1,6 +1,7 @@
1
- export { Blocks } from './Blocks.js';
2
- export { LikeAPI } from './api/LikeAPI.js';
1
+ export { projectSettings } from './ProjectSettings.js';
3
2
  export { ContentPageHead } from './ContentPageHead.js';
4
3
  export { ContentPage } from './ContentPage.js';
4
+ export { Blocks } from './Blocks.js';
5
+ export { LikeAPI } from './api/LikeAPI.js';
5
6
  export * as url from './utils/url.js';
6
7
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAWpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC"}
package/lib/types.d.ts CHANGED
@@ -45,7 +45,7 @@ export interface ImgSource {
45
45
  export interface Picture extends Img, ImgSource {
46
46
  sources?: ImgSource[];
47
47
  }
48
- export interface UniBlocksComponentProps {
48
+ export interface UniBlockProps {
49
49
  className?: string;
50
50
  context: ContentPageContext;
51
51
  }
@@ -1,2 +1,2 @@
1
- import type { UniBlocksComponentProps } from '../types';
2
- export declare const SearchBar: (props: import("@redneckz/uni-jsx").PropsWithChildren<UniBlocksComponentProps, any>, context?: any) => any;
1
+ import type { UniBlockProps } from '../types';
2
+ export declare const SearchBar: (props: import("@redneckz/uni-jsx").PropsWithChildren<UniBlockProps, any>, context?: any) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"SearchBar.js","sourceRoot":"","sources":["../../src/ui-kit/SearchBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAA0B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/E,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,OAAO,CACL,gBAAM,SAAS,EAAE,YAAY,SAAS,IAAI,EAAE,EAAE,aAC5C,eAAK,SAAS,EAAC,4FAA4F,aACzG,cAAK,SAAS,EAAC,mBAAmB,YAAE,SAAS,EAAE,GAAO,EACtD,eAAM,SAAS,EAAC,mDAAmD,2FAAsB,IACrF,EACN,gBACE,SAAS,EAAC,qIAAqI,EAC/I,KAAK,EAAE,MAAM,CAAC,IAAI,EAClB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAC/C,IAAI,EAAC,MAAM,EAC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ACnB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBACvB,CAAC,+CAGM,IACJ,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { AsyncDataHook } from './ContentPageContext';
2
+ import type { HeaderContent } from './Header/index';
3
+ export declare function useSitemap(useAsyncData: AsyncDataHook): HeaderContent;
@@ -0,0 +1,13 @@
1
+ import { projectSettings } from './ProjectSettings.js';
2
+ export function useSitemap(useAsyncData) {
3
+ const { data } = useAsyncData(sitemapURL(), fetchSitemap);
4
+ return data || {};
5
+ }
6
+ async function fetchSitemap() {
7
+ const response = await fetch(sitemapURL());
8
+ return await response.json();
9
+ }
10
+ function sitemapURL() {
11
+ return `/wcms-resources/${projectSettings.SITEMAP || 'sitemap'}.json`;
12
+ }
13
+ //# sourceMappingURL=useSitemap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSitemap.js","sourceRoot":"","sources":["../src/useSitemap.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,UAAU,UAAU,CAAC,YAA2B;IACpD,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAAC,UAAU,EAAE,EAAE,YAAY,CAAC,CAAC;IAC1D,OAAO,IAAI,IAAI,EAAE,CAAC;AACpB,CAAC;AAED,KAAK,UAAU,YAAY;IACzB,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;IAC3C,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;AAC/B,CAAC;AAED,SAAS,UAAU;IACjB,OAAO,mBAAmB,eAAe,CAAC,OAAO,IAAI,SAAS,OAAO,CAAC;AACxE,CAAC"}