@gravity-ui/page-constructor 8.13.2 → 8.14.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 (174) hide show
  1. package/build/cjs/blocks/Footer/Footer.css +53 -0
  2. package/build/cjs/blocks/Footer/Footer.d.ts +5 -0
  3. package/build/cjs/blocks/Footer/Footer.js +34 -0
  4. package/build/cjs/blocks/Footer/Footer.js.map +1 -0
  5. package/build/cjs/blocks/Footer/components/CopyrightFloor/CopyrightFloor.css +201 -0
  6. package/build/cjs/blocks/Footer/components/CopyrightFloor/CopyrightFloor.d.ts +6 -0
  7. package/build/cjs/blocks/Footer/components/CopyrightFloor/CopyrightFloor.js +142 -0
  8. package/build/cjs/blocks/Footer/components/CopyrightFloor/CopyrightFloor.js.map +1 -0
  9. package/build/cjs/blocks/Footer/components/CopyrightFloor/index.d.ts +1 -0
  10. package/build/cjs/blocks/Footer/components/CopyrightFloor/index.js +6 -0
  11. package/build/cjs/blocks/Footer/components/CopyrightFloor/index.js.map +1 -0
  12. package/build/cjs/blocks/Footer/components/DisclaimerFloor/DisclaimerFloor.css +28 -0
  13. package/build/cjs/blocks/Footer/components/DisclaimerFloor/DisclaimerFloor.d.ts +6 -0
  14. package/build/cjs/blocks/Footer/components/DisclaimerFloor/DisclaimerFloor.js +18 -0
  15. package/build/cjs/blocks/Footer/components/DisclaimerFloor/DisclaimerFloor.js.map +1 -0
  16. package/build/cjs/blocks/Footer/components/DisclaimerFloor/index.d.ts +1 -0
  17. package/build/cjs/blocks/Footer/components/DisclaimerFloor/index.js +6 -0
  18. package/build/cjs/blocks/Footer/components/DisclaimerFloor/index.js.map +1 -0
  19. package/build/cjs/blocks/Footer/components/LangSwitcher/LangSwitcher.css +14 -0
  20. package/build/cjs/blocks/Footer/components/LangSwitcher/LangSwitcher.d.ts +11 -0
  21. package/build/cjs/blocks/Footer/components/LangSwitcher/LangSwitcher.js +38 -0
  22. package/build/cjs/blocks/Footer/components/LangSwitcher/LangSwitcher.js.map +1 -0
  23. package/build/cjs/blocks/Footer/components/LangSwitcher/index.d.ts +1 -0
  24. package/build/cjs/blocks/Footer/components/LangSwitcher/index.js +6 -0
  25. package/build/cjs/blocks/Footer/components/LangSwitcher/index.js.map +1 -0
  26. package/build/cjs/blocks/Footer/components/NavigationFloor/NavigationFloor.css +93 -0
  27. package/build/cjs/blocks/Footer/components/NavigationFloor/NavigationFloor.d.ts +12 -0
  28. package/build/cjs/blocks/Footer/components/NavigationFloor/NavigationFloor.js +37 -0
  29. package/build/cjs/blocks/Footer/components/NavigationFloor/NavigationFloor.js.map +1 -0
  30. package/build/cjs/blocks/Footer/components/NavigationFloor/index.d.ts +1 -0
  31. package/build/cjs/blocks/Footer/components/NavigationFloor/index.js +6 -0
  32. package/build/cjs/blocks/Footer/components/NavigationFloor/index.js.map +1 -0
  33. package/build/cjs/blocks/Footer/components/SocialFloor/SocialFloor.css +77 -0
  34. package/build/cjs/blocks/Footer/components/SocialFloor/SocialFloor.d.ts +6 -0
  35. package/build/cjs/blocks/Footer/components/SocialFloor/SocialFloor.js +38 -0
  36. package/build/cjs/blocks/Footer/components/SocialFloor/SocialFloor.js.map +1 -0
  37. package/build/cjs/blocks/Footer/components/SocialFloor/index.d.ts +1 -0
  38. package/build/cjs/blocks/Footer/components/SocialFloor/index.js +6 -0
  39. package/build/cjs/blocks/Footer/components/SocialFloor/index.js.map +1 -0
  40. package/build/cjs/blocks/Footer/hooks/useLogoImageProps.d.ts +2 -0
  41. package/build/cjs/blocks/Footer/hooks/useLogoImageProps.js +21 -0
  42. package/build/cjs/blocks/Footer/hooks/useLogoImageProps.js.map +1 -0
  43. package/build/cjs/blocks/Footer/hooks/useOverflowListItems.d.ts +18 -0
  44. package/build/cjs/blocks/Footer/hooks/useOverflowListItems.js +108 -0
  45. package/build/cjs/blocks/Footer/hooks/useOverflowListItems.js.map +1 -0
  46. package/build/cjs/blocks/Footer/schema.d.ts +347 -0
  47. package/build/cjs/blocks/Footer/schema.js +123 -0
  48. package/build/cjs/blocks/Footer/schema.js.map +1 -0
  49. package/build/cjs/blocks/index.d.ts +1 -0
  50. package/build/cjs/blocks/index.js +3 -1
  51. package/build/cjs/blocks/index.js.map +1 -1
  52. package/build/cjs/blocks/validators.d.ts +1 -0
  53. package/build/cjs/blocks/validators.js +1 -0
  54. package/build/cjs/blocks/validators.js.map +1 -1
  55. package/build/cjs/components/BrandFooter/BrandFooter.css +2 -2
  56. package/build/cjs/constructor-items.d.ts +2 -1
  57. package/build/cjs/constructor-items.js +1 -0
  58. package/build/cjs/constructor-items.js.map +1 -1
  59. package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +0 -1
  60. package/build/cjs/containers/PageConstructor/PageConstructor.js +0 -1
  61. package/build/cjs/containers/PageConstructor/PageConstructor.js.map +1 -1
  62. package/build/cjs/models/constructor-items/blocks.d.ts +77 -2
  63. package/build/cjs/models/constructor-items/blocks.js +1 -0
  64. package/build/cjs/models/constructor-items/blocks.js.map +1 -1
  65. package/build/cjs/models/navigation.d.ts +1 -0
  66. package/build/cjs/models/navigation.js.map +1 -1
  67. package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.d.ts +1 -1
  68. package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js +2 -2
  69. package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js.map +1 -1
  70. package/build/cjs/navigation/components/NavigationItem/hooks/useNavigationItemMap.d.ts +1 -1
  71. package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.d.ts +1 -1
  72. package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.js +2 -2
  73. package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.js.map +1 -1
  74. package/build/cjs/navigation/hooks/useActiveNavItem.d.ts +2 -0
  75. package/build/cjs/navigation/models.d.ts +1 -0
  76. package/build/cjs/navigation/models.js.map +1 -1
  77. package/build/cjs/navigation/utils.d.ts +1 -0
  78. package/build/cjs/schema/constants.js +2 -0
  79. package/build/cjs/schema/constants.js.map +1 -1
  80. package/build/cjs/schema/validators/blocks.d.ts +1 -0
  81. package/build/cjs/schema/validators/blocks.js +1 -0
  82. package/build/cjs/schema/validators/blocks.js.map +1 -1
  83. package/build/cjs/text-transform/config.js +13 -0
  84. package/build/cjs/text-transform/config.js.map +1 -1
  85. package/build/esm/blocks/Footer/Footer.css +53 -0
  86. package/build/esm/blocks/Footer/Footer.d.ts +6 -0
  87. package/build/esm/blocks/Footer/Footer.js +31 -0
  88. package/build/esm/blocks/Footer/Footer.js.map +1 -0
  89. package/build/esm/blocks/Footer/components/CopyrightFloor/CopyrightFloor.css +201 -0
  90. package/build/esm/blocks/Footer/components/CopyrightFloor/CopyrightFloor.d.ts +7 -0
  91. package/build/esm/blocks/Footer/components/CopyrightFloor/CopyrightFloor.js +138 -0
  92. package/build/esm/blocks/Footer/components/CopyrightFloor/CopyrightFloor.js.map +1 -0
  93. package/build/esm/blocks/Footer/components/CopyrightFloor/index.d.ts +1 -0
  94. package/build/esm/blocks/Footer/components/CopyrightFloor/index.js +2 -0
  95. package/build/esm/blocks/Footer/components/CopyrightFloor/index.js.map +1 -0
  96. package/build/esm/blocks/Footer/components/DisclaimerFloor/DisclaimerFloor.css +28 -0
  97. package/build/esm/blocks/Footer/components/DisclaimerFloor/DisclaimerFloor.d.ts +7 -0
  98. package/build/esm/blocks/Footer/components/DisclaimerFloor/DisclaimerFloor.js +15 -0
  99. package/build/esm/blocks/Footer/components/DisclaimerFloor/DisclaimerFloor.js.map +1 -0
  100. package/build/esm/blocks/Footer/components/DisclaimerFloor/index.d.ts +1 -0
  101. package/build/esm/blocks/Footer/components/DisclaimerFloor/index.js +2 -0
  102. package/build/esm/blocks/Footer/components/DisclaimerFloor/index.js.map +1 -0
  103. package/build/esm/blocks/Footer/components/LangSwitcher/LangSwitcher.css +14 -0
  104. package/build/esm/blocks/Footer/components/LangSwitcher/LangSwitcher.d.ts +12 -0
  105. package/build/esm/blocks/Footer/components/LangSwitcher/LangSwitcher.js +34 -0
  106. package/build/esm/blocks/Footer/components/LangSwitcher/LangSwitcher.js.map +1 -0
  107. package/build/esm/blocks/Footer/components/LangSwitcher/index.d.ts +1 -0
  108. package/build/esm/blocks/Footer/components/LangSwitcher/index.js +2 -0
  109. package/build/esm/blocks/Footer/components/LangSwitcher/index.js.map +1 -0
  110. package/build/esm/blocks/Footer/components/NavigationFloor/NavigationFloor.css +93 -0
  111. package/build/esm/blocks/Footer/components/NavigationFloor/NavigationFloor.d.ts +13 -0
  112. package/build/esm/blocks/Footer/components/NavigationFloor/NavigationFloor.js +33 -0
  113. package/build/esm/blocks/Footer/components/NavigationFloor/NavigationFloor.js.map +1 -0
  114. package/build/esm/blocks/Footer/components/NavigationFloor/index.d.ts +1 -0
  115. package/build/esm/blocks/Footer/components/NavigationFloor/index.js +2 -0
  116. package/build/esm/blocks/Footer/components/NavigationFloor/index.js.map +1 -0
  117. package/build/esm/blocks/Footer/components/SocialFloor/SocialFloor.css +77 -0
  118. package/build/esm/blocks/Footer/components/SocialFloor/SocialFloor.d.ts +7 -0
  119. package/build/esm/blocks/Footer/components/SocialFloor/SocialFloor.js +35 -0
  120. package/build/esm/blocks/Footer/components/SocialFloor/SocialFloor.js.map +1 -0
  121. package/build/esm/blocks/Footer/components/SocialFloor/index.d.ts +1 -0
  122. package/build/esm/blocks/Footer/components/SocialFloor/index.js +2 -0
  123. package/build/esm/blocks/Footer/components/SocialFloor/index.js.map +1 -0
  124. package/build/esm/blocks/Footer/hooks/useLogoImageProps.d.ts +2 -0
  125. package/build/esm/blocks/Footer/hooks/useLogoImageProps.js +17 -0
  126. package/build/esm/blocks/Footer/hooks/useLogoImageProps.js.map +1 -0
  127. package/build/esm/blocks/Footer/hooks/useOverflowListItems.d.ts +18 -0
  128. package/build/esm/blocks/Footer/hooks/useOverflowListItems.js +104 -0
  129. package/build/esm/blocks/Footer/hooks/useOverflowListItems.js.map +1 -0
  130. package/build/esm/blocks/Footer/schema.d.ts +347 -0
  131. package/build/esm/blocks/Footer/schema.js +120 -0
  132. package/build/esm/blocks/Footer/schema.js.map +1 -0
  133. package/build/esm/blocks/index.d.ts +1 -0
  134. package/build/esm/blocks/index.js +1 -0
  135. package/build/esm/blocks/index.js.map +1 -1
  136. package/build/esm/blocks/validators.d.ts +1 -0
  137. package/build/esm/blocks/validators.js +1 -0
  138. package/build/esm/blocks/validators.js.map +1 -1
  139. package/build/esm/components/BrandFooter/BrandFooter.css +2 -2
  140. package/build/esm/constructor-items.d.ts +2 -1
  141. package/build/esm/constructor-items.js +2 -1
  142. package/build/esm/constructor-items.js.map +1 -1
  143. package/build/esm/containers/PageConstructor/PageConstructor.d.ts +0 -1
  144. package/build/esm/containers/PageConstructor/PageConstructor.js +0 -1
  145. package/build/esm/containers/PageConstructor/PageConstructor.js.map +1 -1
  146. package/build/esm/models/constructor-items/blocks.d.ts +77 -2
  147. package/build/esm/models/constructor-items/blocks.js +1 -0
  148. package/build/esm/models/constructor-items/blocks.js.map +1 -1
  149. package/build/esm/models/navigation.d.ts +1 -0
  150. package/build/esm/models/navigation.js.map +1 -1
  151. package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.d.ts +1 -1
  152. package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js +2 -2
  153. package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js.map +1 -1
  154. package/build/esm/navigation/components/NavigationItem/hooks/useNavigationItemMap.d.ts +1 -1
  155. package/build/esm/navigation/components/NavigationPopup/NavigationPopup.d.ts +1 -1
  156. package/build/esm/navigation/components/NavigationPopup/NavigationPopup.js +2 -2
  157. package/build/esm/navigation/components/NavigationPopup/NavigationPopup.js.map +1 -1
  158. package/build/esm/navigation/hooks/useActiveNavItem.d.ts +2 -0
  159. package/build/esm/navigation/models.d.ts +1 -0
  160. package/build/esm/navigation/models.js.map +1 -1
  161. package/build/esm/navigation/utils.d.ts +1 -0
  162. package/build/esm/schema/constants.js +3 -1
  163. package/build/esm/schema/constants.js.map +1 -1
  164. package/build/esm/schema/validators/blocks.d.ts +1 -0
  165. package/build/esm/schema/validators/blocks.js +1 -0
  166. package/build/esm/schema/validators/blocks.js.map +1 -1
  167. package/build/esm/text-transform/config.js +13 -0
  168. package/build/esm/text-transform/config.js.map +1 -1
  169. package/package.json +1 -1
  170. package/schema/index.js +1 -1
  171. package/server/models/constructor-items/blocks.d.ts +77 -2
  172. package/server/models/constructor-items/blocks.js +1 -0
  173. package/server/models/navigation.d.ts +1 -0
  174. package/server/text-transform/config.js +10 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOverflowListItems.js","sourceRoot":"../../../../../src","sources":["blocks/Footer/hooks/useOverflowListItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAmB,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AACtE,OAAO,UAAU,2BAAwB;AAoBzC,SAAS,kBAAkB,CAAC,KAAa;IACrC,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IAEtC,OAAO,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;AACvD,CAAC;AAED,SAAS,eAAe,CAAC,OAAoB;IACzC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,qBAAqB,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3F,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,EACjC,UAAU,GAAG,KAAK,EAClB,YAAY,EACZ,KAAK,EACL,YAAY,EACZ,eAAe,GAAG,CAAC,GACK;IACxB,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAS,CAAC,CAAC,CAAC;IACtE,MAAM,CAAC,UA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C,IAAI,EAAE;YACtD,WAAW,EAAE,iCAAiC,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC;SACxF,CAAC;IACN,CAAC,EAAE,CAAC,cAAc,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC,CAAC;IAE1F,OAAO,EAAC,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAC,CAAC;AAC7D,CAAC;AAED,SAAS,iCAAiC,CACtC,KAAiB;IAEjB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACxB,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,IAAI,EAAE,IAAI,CAAC,GAAG;KACjB,CAAC,CAAC,CAAC;AACR,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {DropdownMenuItem, useResizeObserver} from '@gravity-ui/uikit';\nimport throttleFn from 'lodash/throttle';\n\nimport {LinkProps} from '../../../models';\n\nexport type LinkItem = Required<Pick<LinkProps, 'text' | 'url'>>;\n\ntype UseOverflowListItemsProps = {\n isDropdown?: boolean;\n containerRef: React.RefObject<HTMLElement>;\n items?: LinkItem[];\n itemSelector: string;\n moreButtonWidth?: number;\n};\n\ntype OverflowListItemsResult = {\n visibleItems: LinkItem[];\n hiddenItems: DropdownMenuItem[];\n measured: boolean;\n};\n\nfunction parseCssPixelValue(value: string) {\n const parsedValue = parseFloat(value);\n\n return Number.isNaN(parsedValue) ? 0 : parsedValue;\n}\n\nfunction getElementWidth(element: HTMLElement) {\n return Math.ceil(Math.max(element.scrollWidth, element.getBoundingClientRect().width));\n}\n\nexport function useOverflowListItems({\n isDropdown = false,\n containerRef,\n items,\n itemSelector,\n moreButtonWidth = 0,\n}: UseOverflowListItemsProps): OverflowListItemsResult {\n const [containerWidth, setContainerWidth] = React.useState<number>(0);\n const [itemWidths, setItemWidths] = React.useState<number[]>([]);\n const [itemGap, setItemGap] = React.useState<number>(0);\n const itemsCount = items?.length ?? 0;\n const areItemsMeasured = !isDropdown || itemWidths.length === itemsCount;\n\n const updateItemWidths = React.useCallback(() => {\n if (!containerRef.current || !itemsCount) {\n setItemWidths([]);\n return;\n }\n\n const itemElements = Array.from(\n containerRef.current.querySelectorAll(itemSelector),\n ) as HTMLElement[];\n\n if (itemElements.length !== itemsCount) {\n return;\n }\n\n const listElement = itemElements[0]?.parentElement;\n\n setItemWidths(itemElements.map(getElementWidth));\n\n if (listElement) {\n const listStyles = window.getComputedStyle(listElement);\n setItemGap(parseCssPixelValue(listStyles.columnGap));\n }\n }, [containerRef, itemSelector, itemsCount]);\n\n React.useEffect(() => {\n setItemWidths((currentItemWidths) => (currentItemWidths.length ? [] : currentItemWidths));\n }, [items, isDropdown]);\n\n React.useLayoutEffect(() => {\n if (isDropdown && !areItemsMeasured) {\n updateItemWidths();\n }\n }, [areItemsMeasured, isDropdown, updateItemWidths]);\n\n React.useEffect(() => {\n if (!isDropdown || typeof document === 'undefined' || !('fonts' in document)) {\n return undefined;\n }\n\n let cancelled = false;\n\n document.fonts.ready.then(() => {\n if (!cancelled) {\n setItemWidths((currentItemWidths) =>\n currentItemWidths.length ? [] : currentItemWidths,\n );\n }\n });\n\n return () => {\n cancelled = true;\n };\n }, [items, isDropdown]);\n\n const updateContainerSize = React.useMemo(\n () =>\n throttleFn(() => {\n if (!containerRef.current) {\n return;\n }\n\n setContainerWidth(containerRef.current.clientWidth);\n }, 100),\n [containerRef],\n );\n\n useResizeObserver({ref: containerRef, onResize: updateContainerSize});\n\n const isMeasured = containerWidth > 0 && areItemsMeasured;\n\n const {visibleItems, hiddenItems} = React.useMemo(() => {\n if (!isDropdown) {\n return {\n visibleItems: items ?? [],\n hiddenItems: [],\n };\n }\n\n if (!isMeasured) {\n return {\n visibleItems: items ?? [],\n hiddenItems: [],\n };\n }\n\n const linksCount = itemWidths.length;\n let visibleItemsCount = 0;\n let remainingContainerWidth = containerWidth;\n\n for (const width of itemWidths) {\n const isMoreThanOneItemLeft = linksCount !== visibleItemsCount + 1;\n const currentItemWidth = width + (visibleItemsCount === 0 ? 0 : itemGap);\n\n remainingContainerWidth -= currentItemWidth;\n\n const hasNoSpaceForTheLastItem = remainingContainerWidth < 0;\n if (\n remainingContainerWidth < moreButtonWidth &&\n (isMoreThanOneItemLeft || hasNoSpaceForTheLastItem)\n ) {\n break;\n }\n\n visibleItemsCount++;\n }\n\n visibleItemsCount = Math.max(visibleItemsCount, 1);\n\n return {\n visibleItems: items?.slice(0, visibleItemsCount) ?? [],\n hiddenItems: transformItemsToDropdownMenuItems(items?.slice(visibleItemsCount) ?? []),\n };\n }, [containerWidth, isMeasured, itemGap, itemWidths, items, moreButtonWidth, isDropdown]);\n\n return {visibleItems, hiddenItems, measured: isMeasured};\n}\n\nfunction transformItemsToDropdownMenuItems<ItemType extends {text: string; url: string}>(\n items: ItemType[],\n): DropdownMenuItem[] {\n return items.map((item) => ({\n text: item.text,\n href: item.url,\n }));\n}\n"]}
@@ -0,0 +1,347 @@
1
+ export declare const FooterBlock: {
2
+ 'footer-block': {
3
+ additionalProperties: boolean;
4
+ properties: {
5
+ backgroundColor: {
6
+ oneOf: (({
7
+ type: string;
8
+ } & {
9
+ optionName: string;
10
+ }) | {
11
+ type: string;
12
+ additionalProperties: boolean;
13
+ required: import("../../index.js").Theme[];
14
+ properties: {};
15
+ optionName: string;
16
+ })[];
17
+ };
18
+ indentTop: {
19
+ type: string;
20
+ enum: string[];
21
+ };
22
+ navigation: {
23
+ type: string;
24
+ additionalProperties: boolean;
25
+ required: string[];
26
+ properties: {
27
+ logo: {
28
+ properties: {
29
+ placement: {
30
+ type: string;
31
+ enum: string[];
32
+ };
33
+ image: {
34
+ oneOf: (({
35
+ oneOf: ({
36
+ type: string;
37
+ properties: {
38
+ when: {
39
+ type: string;
40
+ };
41
+ };
42
+ } | {
43
+ type: string;
44
+ pattern: string;
45
+ optionName: string;
46
+ items?: undefined;
47
+ } | {
48
+ type: string;
49
+ items: {
50
+ type: string;
51
+ properties: {
52
+ when: {
53
+ type: string;
54
+ };
55
+ };
56
+ };
57
+ optionName: string;
58
+ pattern?: undefined;
59
+ })[];
60
+ } & {
61
+ optionName: string;
62
+ }) | {
63
+ type: string;
64
+ additionalProperties: boolean;
65
+ required: import("../../index.js").Theme[];
66
+ properties: {};
67
+ optionName: string;
68
+ })[];
69
+ };
70
+ url: {
71
+ type: string;
72
+ };
73
+ alt: {
74
+ type: string;
75
+ contentType: string;
76
+ };
77
+ };
78
+ type: string;
79
+ additionalProperties: boolean;
80
+ required: string[];
81
+ };
82
+ columns: {
83
+ type: string;
84
+ items: {
85
+ type: string;
86
+ properties: {
87
+ when: {
88
+ type: string;
89
+ };
90
+ };
91
+ };
92
+ };
93
+ colSizes: {
94
+ type: string;
95
+ additionalProperties: boolean;
96
+ properties: {};
97
+ };
98
+ columnsPerRow: {
99
+ type: string;
100
+ minimum: number;
101
+ maximum: number;
102
+ };
103
+ };
104
+ };
105
+ contacts: {
106
+ type: string;
107
+ additionalProperties: boolean;
108
+ required: never[];
109
+ properties: {
110
+ title: {
111
+ type: string;
112
+ contentType: string;
113
+ };
114
+ iconsSize: {
115
+ type: string;
116
+ enum: string[];
117
+ };
118
+ links: {
119
+ type: string;
120
+ items: {
121
+ type: string;
122
+ properties: {
123
+ when: {
124
+ type: string;
125
+ };
126
+ };
127
+ };
128
+ };
129
+ linksPosition: {
130
+ type: string;
131
+ enum: string[];
132
+ };
133
+ titlePosition: {
134
+ type: string;
135
+ enum: string[];
136
+ };
137
+ };
138
+ };
139
+ disclaimer: {
140
+ type: string;
141
+ additionalProperties: boolean;
142
+ required: string[];
143
+ properties: {
144
+ text: {
145
+ type: string;
146
+ contentType: string;
147
+ };
148
+ align: {
149
+ type: string;
150
+ enum: string[];
151
+ };
152
+ };
153
+ };
154
+ copyright: {
155
+ type: string;
156
+ additionalProperties: boolean;
157
+ required: never[];
158
+ properties: {
159
+ links: {
160
+ type: string;
161
+ items: {
162
+ type: string;
163
+ properties: {
164
+ when: {
165
+ type: string;
166
+ };
167
+ };
168
+ };
169
+ };
170
+ linksOverflowStrategy: {
171
+ type: string;
172
+ enum: string[];
173
+ };
174
+ languageSwitcher: {
175
+ type: string;
176
+ additionalProperties: boolean;
177
+ required: string[];
178
+ properties: {
179
+ items: {
180
+ type: string;
181
+ items: {
182
+ type: string;
183
+ properties: {
184
+ when: {
185
+ type: string;
186
+ };
187
+ };
188
+ };
189
+ };
190
+ buttonText: {
191
+ type: string;
192
+ contentType: string;
193
+ };
194
+ image: {
195
+ oneOf: (({
196
+ oneOf: ({
197
+ type: string;
198
+ properties: {
199
+ when: {
200
+ type: string;
201
+ };
202
+ };
203
+ } | {
204
+ type: string;
205
+ pattern: string;
206
+ optionName: string;
207
+ items?: undefined;
208
+ } | {
209
+ type: string;
210
+ items: {
211
+ type: string;
212
+ properties: {
213
+ when: {
214
+ type: string;
215
+ };
216
+ };
217
+ };
218
+ optionName: string;
219
+ pattern?: undefined;
220
+ })[];
221
+ } & {
222
+ optionName: string;
223
+ }) | {
224
+ type: string;
225
+ additionalProperties: boolean;
226
+ required: import("../../index.js").Theme[];
227
+ properties: {};
228
+ optionName: string;
229
+ })[];
230
+ };
231
+ };
232
+ };
233
+ copyrightText: {
234
+ type: string;
235
+ contentType: string;
236
+ };
237
+ logo: {
238
+ type: string;
239
+ additionalProperties: boolean;
240
+ required: string[];
241
+ properties: {
242
+ image: {
243
+ oneOf: (({
244
+ oneOf: ({
245
+ type: string;
246
+ properties: {
247
+ when: {
248
+ type: string;
249
+ };
250
+ };
251
+ } | {
252
+ type: string;
253
+ pattern: string;
254
+ optionName: string;
255
+ items?: undefined;
256
+ } | {
257
+ type: string;
258
+ items: {
259
+ type: string;
260
+ properties: {
261
+ when: {
262
+ type: string;
263
+ };
264
+ };
265
+ };
266
+ optionName: string;
267
+ pattern?: undefined;
268
+ })[];
269
+ } & {
270
+ optionName: string;
271
+ }) | {
272
+ type: string;
273
+ additionalProperties: boolean;
274
+ required: import("../../index.js").Theme[];
275
+ properties: {};
276
+ optionName: string;
277
+ })[];
278
+ };
279
+ url: {
280
+ type: string;
281
+ };
282
+ alt: {
283
+ type: string;
284
+ contentType: string;
285
+ };
286
+ };
287
+ };
288
+ };
289
+ };
290
+ attribution: {
291
+ type: string;
292
+ };
293
+ anchor: {
294
+ type: string;
295
+ additionalProperties: boolean;
296
+ required: string[];
297
+ properties: {
298
+ text: {
299
+ type: string;
300
+ contentType: string;
301
+ };
302
+ url: {
303
+ type: string;
304
+ };
305
+ urlTitle: {
306
+ type: string;
307
+ };
308
+ };
309
+ };
310
+ visible: {
311
+ oneOf: ({
312
+ type: string;
313
+ enum: string[];
314
+ additionalProperties?: undefined;
315
+ properties?: undefined;
316
+ } | {
317
+ type: string;
318
+ additionalProperties: boolean;
319
+ properties: {};
320
+ enum?: undefined;
321
+ })[];
322
+ };
323
+ resetPaddings: {
324
+ type: string;
325
+ };
326
+ context: {
327
+ type: string;
328
+ };
329
+ indent: {
330
+ type: string;
331
+ additionalProperties: boolean;
332
+ properties: {
333
+ top: {
334
+ enum: string[];
335
+ };
336
+ bottom: {
337
+ enum: string[];
338
+ };
339
+ };
340
+ };
341
+ type: {};
342
+ when: {
343
+ type: string;
344
+ };
345
+ };
346
+ };
347
+ };
@@ -0,0 +1,120 @@
1
+ import { ImageProps } from "../../components/Image/schema.js";
2
+ import { BlockBaseProps, LinkProps, containerSizesObject, withTheme, } from "../../schema/validators/common.js";
3
+ import { filteredArray } from "../../schema/validators/utils.js";
4
+ const FooterLogoProps = {
5
+ type: 'object',
6
+ additionalProperties: false,
7
+ required: ['image'],
8
+ properties: {
9
+ image: withTheme(ImageProps),
10
+ url: { type: 'string' },
11
+ alt: { type: 'string', contentType: 'text' },
12
+ },
13
+ };
14
+ const FooterLinkColumn = {
15
+ type: 'object',
16
+ additionalProperties: false,
17
+ required: ['title', 'links'],
18
+ properties: {
19
+ title: { type: 'string', contentType: 'text' },
20
+ links: filteredArray(LinkProps),
21
+ },
22
+ };
23
+ const FooterlContactItem = {
24
+ type: 'object',
25
+ additionalProperties: false,
26
+ required: ['icon', 'url'],
27
+ properties: {
28
+ icon: withTheme(ImageProps),
29
+ url: { type: 'string' },
30
+ urlTitle: { type: 'string', contentType: 'text' },
31
+ },
32
+ };
33
+ const FooterContactsBlock = {
34
+ type: 'object',
35
+ additionalProperties: false,
36
+ required: [],
37
+ properties: {
38
+ title: { type: 'string', contentType: 'text' },
39
+ iconsSize: { type: 'string', enum: ['m', 'l'] },
40
+ links: filteredArray(FooterlContactItem),
41
+ linksPosition: { type: 'string', enum: ['left', 'center'] },
42
+ titlePosition: { type: 'string', enum: ['top', 'near'] },
43
+ },
44
+ };
45
+ const FooterDisclaimerContent = {
46
+ type: 'object',
47
+ additionalProperties: false,
48
+ required: ['text', 'align'],
49
+ properties: {
50
+ text: { type: 'string', contentType: 'text' },
51
+ align: { type: 'string', enum: ['left', 'center'] },
52
+ },
53
+ };
54
+ const FooterLanguageSwitcherItem = {
55
+ type: 'object',
56
+ additionalProperties: false,
57
+ required: ['text', 'href'],
58
+ properties: {
59
+ text: { type: 'string', contentType: 'text' },
60
+ href: { type: 'string' },
61
+ },
62
+ };
63
+ const FooterLanguageSwitcher = {
64
+ type: 'object',
65
+ additionalProperties: false,
66
+ required: ['items'],
67
+ properties: {
68
+ items: filteredArray(FooterLanguageSwitcherItem),
69
+ buttonText: { type: 'string', contentType: 'text' },
70
+ image: withTheme(ImageProps),
71
+ },
72
+ };
73
+ const FooterCopyrightBlock = {
74
+ type: 'object',
75
+ additionalProperties: false,
76
+ required: [],
77
+ properties: {
78
+ links: filteredArray(LinkProps),
79
+ linksOverflowStrategy: { type: 'string', enum: ['dropdown', 'line-wrap'] },
80
+ languageSwitcher: FooterLanguageSwitcher,
81
+ copyrightText: { type: 'string', contentType: 'text' },
82
+ logo: FooterLogoProps,
83
+ },
84
+ };
85
+ const FooterNavigationBlock = {
86
+ type: 'object',
87
+ additionalProperties: false,
88
+ required: ['columns'],
89
+ properties: {
90
+ logo: {
91
+ ...FooterLogoProps,
92
+ properties: {
93
+ ...FooterLogoProps.properties,
94
+ placement: { type: 'string', enum: ['left', 'top'] },
95
+ },
96
+ },
97
+ columns: filteredArray(FooterLinkColumn),
98
+ colSizes: containerSizesObject,
99
+ columnsPerRow: { type: 'number', minimum: 1, maximum: 12 },
100
+ },
101
+ };
102
+ const FooterAttributionBlock = {
103
+ type: 'boolean',
104
+ };
105
+ export const FooterBlock = {
106
+ 'footer-block': {
107
+ additionalProperties: false,
108
+ properties: {
109
+ ...BlockBaseProps,
110
+ backgroundColor: withTheme({ type: 'string' }),
111
+ indentTop: { type: 'string', enum: ['0', 'xs', 's', 'm', 'l', 'xl'] },
112
+ navigation: FooterNavigationBlock,
113
+ contacts: FooterContactsBlock,
114
+ disclaimer: FooterDisclaimerContent,
115
+ copyright: FooterCopyrightBlock,
116
+ attribution: FooterAttributionBlock,
117
+ },
118
+ },
119
+ };
120
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Footer/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,yCAAsC;AACzD,OAAO,EACH,cAAc,EACd,SAAS,EACT,oBAAoB,EACpB,SAAS,GACZ,0CAAuC;AACxC,OAAO,EAAC,aAAa,EAAC,yCAAsC;AAE5D,MAAM,eAAe,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,UAAU,EAAE;QACR,KAAK,EAAE,SAAS,CAAC,UAAU,CAAC;QAC5B,GAAG,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QACrB,GAAG,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAC;KAC7C;CACJ,CAAC;AAEF,MAAM,gBAAgB,GAAG;IACrB,IAAI,EAAE,Q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AAEF,MAAM,qBAAqB,GAAG;IAC1B,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,IAAI,EAAE;YACF,GAAG,eAAe;YAClB,UAAU,EAAE;gBACR,GAAG,eAAe,CAAC,UAAU;gBAC7B,SAAS,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,EAAC;aACrD;SACJ;QACD,OAAO,EAAE,aAAa,CAAC,gBAAgB,CAAC;QACxC,QAAQ,EAAE,oBAAoB;QAC9B,aAAa,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAC;KAC3D;CACJ,CAAC;AAEF,MAAM,sBAAsB,GAAG;IAC3B,IAAI,EAAE,SAAS;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,cAAc,EAAE;QACZ,oBAAoB,EAAE,KAAK;QAC3B,UAAU,EAAE;YACR,GAAG,cAAc;YACjB,eAAe,EAAE,SAAS,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAC,CAAC;YAC5C,SAAS,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAC;YACnE,UAAU,EAAE,qBAAqB;YACjC,QAAQ,EAAE,mBAAmB;YAC7B,UAAU,EAAE,uBAAuB;YACnC,SAAS,EAAE,oBAAoB;YAC/B,WAAW,EAAE,sBAAsB;SACtC;KACJ;CACJ,CAAC","sourcesContent":["import {ImageProps} from '../../components/Image/schema';\nimport {\n BlockBaseProps,\n LinkProps,\n containerSizesObject,\n withTheme,\n} from '../../schema/validators/common';\nimport {filteredArray} from '../../schema/validators/utils';\n\nconst FooterLogoProps = {\n type: 'object',\n additionalProperties: false,\n required: ['image'],\n properties: {\n image: withTheme(ImageProps),\n url: {type: 'string'},\n alt: {type: 'string', contentType: 'text'},\n },\n};\n\nconst FooterLinkColumn = {\n type: 'object',\n additionalProperties: false,\n required: ['title', 'links'],\n properties: {\n title: {type: 'string', contentType: 'text'},\n links: filteredArray(LinkProps),\n },\n};\n\nconst FooterlContactItem = {\n type: 'object',\n additionalProperties: false,\n required: ['icon', 'url'],\n properties: {\n icon: withTheme(ImageProps),\n url: {type: 'string'},\n urlTitle: {type: 'string', contentType: 'text'},\n },\n};\n\nconst FooterContactsBlock = {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: {\n title: {type: 'string', contentType: 'text'},\n iconsSize: {type: 'string', enum: ['m', 'l']},\n links: filteredArray(FooterlContactItem),\n linksPosition: {type: 'string', enum: ['left', 'center']},\n titlePosition: {type: 'string', enum: ['top', 'near']},\n },\n};\n\nconst FooterDisclaimerContent = {\n type: 'object',\n additionalProperties: false,\n required: ['text', 'align'],\n properties: {\n text: {type: 'string', contentType: 'text'},\n align: {type: 'string', enum: ['left', 'center']},\n },\n};\n\nconst FooterLanguageSwitcherItem = {\n type: 'object',\n additionalProperties: false,\n required: ['text', 'href'],\n properties: {\n text: {type: 'string', contentType: 'text'},\n href: {type: 'string'},\n },\n};\n\nconst FooterLanguageSwitcher = {\n type: 'object',\n additionalProperties: false,\n required: ['items'],\n properties: {\n items: filteredArray(FooterLanguageSwitcherItem),\n buttonText: {type: 'string', contentType: 'text'},\n image: withTheme(ImageProps),\n },\n};\n\nconst FooterCopyrightBlock = {\n type: 'object',\n additionalProperties: false,\n required: [],\n properties: {\n links: filteredArray(LinkProps),\n linksOverflowStrategy: {type: 'string', enum: ['dropdown', 'line-wrap']},\n languageSwitcher: FooterLanguageSwitcher,\n copyrightText: {type: 'string', contentType: 'text'},\n logo: FooterLogoProps,\n },\n};\n\nconst FooterNavigationBlock = {\n type: 'object',\n additionalProperties: false,\n required: ['columns'],\n properties: {\n logo: {\n ...FooterLogoProps,\n properties: {\n ...FooterLogoProps.properties,\n placement: {type: 'string', enum: ['left', 'top']},\n },\n },\n columns: filteredArray(FooterLinkColumn),\n colSizes: containerSizesObject,\n columnsPerRow: {type: 'number', minimum: 1, maximum: 12},\n },\n};\n\nconst FooterAttributionBlock = {\n type: 'boolean',\n};\n\nexport const FooterBlock = {\n 'footer-block': {\n additionalProperties: false,\n properties: {\n ...BlockBaseProps,\n backgroundColor: withTheme({type: 'string'}),\n indentTop: {type: 'string', enum: ['0', 'xs', 's', 'm', 'l', 'xl']},\n navigation: FooterNavigationBlock,\n contacts: FooterContactsBlock,\n disclaimer: FooterDisclaimerContent,\n copyright: FooterCopyrightBlock,\n attribution: FooterAttributionBlock,\n },\n },\n};\n"]}
@@ -14,6 +14,7 @@ export { default as TableBlock } from "./Table/Table.js";
14
14
  export { default as TabsBlock } from "./Tabs/Tabs.js";
15
15
  export { default as HeaderBlock } from "./Header/Header.js";
16
16
  export { default as HeroBlock } from "./Hero/Hero.js";
17
+ export { default as FooterBlock } from "./Footer/Footer.js";
17
18
  export { default as IconsBlock } from "./Icons/Icons.js";
18
19
  export { default as HeaderSliderBlock } from "./HeaderSlider/HeaderSlider.js";
19
20
  export { default as CardLayoutBlock } from "./CardLayout/CardLayout.js";
@@ -13,6 +13,7 @@ export { default as TableBlock } from "./Table/Table.js";
13
13
  export { default as TabsBlock } from "./Tabs/Tabs.js";
14
14
  export { default as HeaderBlock } from "./Header/Header.js";
15
15
  export { default as HeroBlock } from "./Hero/Hero.js";
16
+ export { default as FooterBlock } from "./Footer/Footer.js";
16
17
  export { default as IconsBlock } from "./Icons/Icons.js";
17
18
  export { default as HeaderSliderBlock } from "./HeaderSlider/HeaderSlider.js";
18
19
  export { default as CardLayoutBlock } from "./CardLayout/CardLayout.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../../../src","sources":["blocks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,2BAAwB;AACvD,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,iCAA8B;AAChE,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,uBAAoB;AACjD,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,yBAAsB;AACpD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,qBAAkB;AAC9C,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,iCAA8B;AAChE,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,2BAAwB;AAEvD,OAAO,EAAC,OAAO,IAAI,qBAAqB,EAAC,+CAA4C;AACrF,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,mDAAgD;AACtF,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,iCAA8B;AAChE,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,uCAAoC;AACzE,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,yBAAsB;AACpD,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,uBAAoB;AACjD,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,2BAAwB;AACvD,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,uBAAoB;AACjD,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,yBAAsB;AACpD,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,uCAAoC;AACzE,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,mCAAgC;AACnE,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,yCAAsC;AAC5E,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,yBAAsB;AACpD,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,qCAAkC;AACjE,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,uBAAoB","sourcesContent":["export {default as BannerBlock} from './Banner/Banner';\nexport {default as CompaniesBlock} from './Companies/Companies';\nexport {default as InfoBlock} from './Info/Info';\nexport {default as MediaBlock} from './Media/Media';\nexport {default as MapBlock} from './Map/Map';\nexport {default as SliderOldBlock} from './SliderOld/SliderOld';\nexport {default as SliderBlock} from './Slider/Slider';\nexport type {Swiper, SwiperOptions} from './Slider/Slider';\nexport {default as ExtendedFeaturesBlock} from './ExtendedFeatures/ExtendedFeatures';\nexport {default as PromoFeaturesBlock} from './PromoFeaturesBlock/PromoFeaturesBlock';\nexport {default as QuestionsBlock} from './Questions/Questions';\nexport {default as FoldableListBlock} from './FoldableList/FoldableList';\nexport {default as TableBlock} from './Table/Table';\nexport {default as TabsBlock} from './Tabs/Tabs';\nexport {default as HeaderBlock} from './Header/Header';\nexport {default as HeroBlock} from './Hero/Hero';\nexport {default as IconsBlock} from './Icons/Icons';\nexport {default as HeaderSliderBlock} from './HeaderSlider/HeaderSlider';\nexport {default as CardLayoutBlock} from './CardLayout/CardLayout';\nexport {default as ContentLayoutBlock} from './ContentLayout/ContentLayout';\nexport {default as ShareBlock} from './Share/Share';\nexport {default as FilterBlock} from './FilterBlock/FilterBlock';\nexport {default as FormBlock} from './Form/Form';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../src","sources":["blocks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,2BAAwB;AACvD,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,iCAA8B;AAChE,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,uBAAoB;AACjD,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,yBAAsB;AACpD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,qBAAkB;AAC9C,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,iCAA8B;AAChE,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,2BAAwB;AAEvD,OAAO,EAAC,OAAO,IAAI,qBAAqB,EAAC,+CAA4C;AACrF,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,mDAAgD;AACtF,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,iCAA8B;AAChE,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,uCAAoC;AACzE,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,yBAAsB;AACpD,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,uBAAoB;AACjD,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,2BAAwB;AACvD,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,uBAAoB;AACjD,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,2BAAwB;AACvD,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,yBAAsB;AACpD,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,uCAAoC;AACzE,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,mCAAgC;AACnE,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,yCAAsC;AAC5E,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,yBAAsB;AACpD,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,qCAAkC;AACjE,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,uBAAoB","sourcesContent":["export {default as BannerBlock} from './Banner/Banner';\nexport {default as CompaniesBlock} from './Companies/Companies';\nexport {default as InfoBlock} from './Info/Info';\nexport {default as MediaBlock} from './Media/Media';\nexport {default as MapBlock} from './Map/Map';\nexport {default as SliderOldBlock} from './SliderOld/SliderOld';\nexport {default as SliderBlock} from './Slider/Slider';\nexport type {Swiper, SwiperOptions} from './Slider/Slider';\nexport {default as ExtendedFeaturesBlock} from './ExtendedFeatures/ExtendedFeatures';\nexport {default as PromoFeaturesBlock} from './PromoFeaturesBlock/PromoFeaturesBlock';\nexport {default as QuestionsBlock} from './Questions/Questions';\nexport {default as FoldableListBlock} from './FoldableList/FoldableList';\nexport {default as TableBlock} from './Table/Table';\nexport {default as TabsBlock} from './Tabs/Tabs';\nexport {default as HeaderBlock} from './Header/Header';\nexport {default as HeroBlock} from './Hero/Hero';\nexport {default as FooterBlock} from './Footer/Footer';\nexport {default as IconsBlock} from './Icons/Icons';\nexport {default as HeaderSliderBlock} from './HeaderSlider/HeaderSlider';\nexport {default as CardLayoutBlock} from './CardLayout/CardLayout';\nexport {default as ContentLayoutBlock} from './ContentLayout/ContentLayout';\nexport {default as ShareBlock} from './Share/Share';\nexport {default as FilterBlock} from './FilterBlock/FilterBlock';\nexport {default as FormBlock} from './Form/Form';\n"]}
@@ -4,6 +4,7 @@ export * from "./Companies/schema.js";
4
4
  export * from "./ContentLayout/schema.js";
5
5
  export * from "./ExtendedFeatures/schema.js";
6
6
  export * from "./Header/schema.js";
7
+ export * from "./Footer/schema.js";
7
8
  export * from "./HeaderSlider/schema.js";
8
9
  export * from "./Hero/schema.js";
9
10
  export * from "./Icons/schema.js";
@@ -4,6 +4,7 @@ export * from "./Companies/schema.js";
4
4
  export * from "./ContentLayout/schema.js";
5
5
  export * from "./ExtendedFeatures/schema.js";
6
6
  export * from "./Header/schema.js";
7
+ export * from "./Footer/schema.js";
7
8
  export * from "./HeaderSlider/schema.js";
8
9
  export * from "./Hero/schema.js";
9
10
  export * from "./Icons/schema.js";
@@ -1 +1 @@
1
- {"version":3,"file":"validators.js","sourceRoot":"../../../src","sources":["blocks/validators.ts"],"names":[],"mappings":"AAAA,mCAAgC;AAChC,uCAAoC;AACpC,sCAAmC;AACnC,0CAAuC;AACvC,6CAA0C;AAC1C,mCAAgC;AAChC,yCAAsC;AACtC,iCAA8B;AAC9B,kCAA+B;AAC/B,iCAA8B;AAC9B,kCAA+B;AAC/B,+CAA4C;AAC5C,sCAAmC;AACnC,sCAAmC;AACnC,mCAAgC;AAChC,kCAA+B;AAC/B,kCAA+B","sourcesContent":["export * from './Banner/schema';\nexport * from './CardLayout/schema';\nexport * from './Companies/schema';\nexport * from './ContentLayout/schema';\nexport * from './ExtendedFeatures/schema';\nexport * from './Header/schema';\nexport * from './HeaderSlider/schema';\nexport * from './Hero/schema';\nexport * from './Icons/schema';\nexport * from './Info/schema';\nexport * from './Media/schema';\nexport * from './PromoFeaturesBlock/schema';\nexport * from './Questions/schema';\nexport * from './SliderOld/schema';\nexport * from './Slider/schema';\nexport * from './Table/schema';\nexport * from './Share/schema';\n"]}
1
+ {"version":3,"file":"validators.js","sourceRoot":"../../../src","sources":["blocks/validators.ts"],"names":[],"mappings":"AAAA,mCAAgC;AAChC,uCAAoC;AACpC,sCAAmC;AACnC,0CAAuC;AACvC,6CAA0C;AAC1C,mCAAgC;AAChC,mCAAgC;AAChC,yCAAsC;AACtC,iCAA8B;AAC9B,kCAA+B;AAC/B,iCAA8B;AAC9B,kCAA+B;AAC/B,+CAA4C;AAC5C,sCAAmC;AACnC,sCAAmC;AACnC,mCAAgC;AAChC,kCAA+B;AAC/B,kCAA+B","sourcesContent":["export * from './Banner/schema';\nexport * from './CardLayout/schema';\nexport * from './Companies/schema';\nexport * from './ContentLayout/schema';\nexport * from './ExtendedFeatures/schema';\nexport * from './Header/schema';\nexport * from './Footer/schema';\nexport * from './HeaderSlider/schema';\nexport * from './Hero/schema';\nexport * from './Icons/schema';\nexport * from './Info/schema';\nexport * from './Media/schema';\nexport * from './PromoFeaturesBlock/schema';\nexport * from './Questions/schema';\nexport * from './SliderOld/schema';\nexport * from './Slider/schema';\nexport * from './Table/schema';\nexport * from './Share/schema';\n"]}
@@ -30,7 +30,7 @@ unpredictable css rules order in build */
30
30
  }
31
31
  .pc-brand-footer_theme_light {
32
32
  color: var(--g-color-text-secondary);
33
- border-top-color: var(--g-color-private-black-200);
33
+ border-top-color: var(--pc-brand-footer-border-color-light, var(--g-color-private-black-200));
34
34
  }
35
35
  .pc-brand-footer_theme_light:hover {
36
36
  color: var(--g-color-text-primary);
@@ -41,7 +41,7 @@ unpredictable css rules order in build */
41
41
  }
42
42
  .pc-brand-footer_theme_dark {
43
43
  color: var(--g-color-private-white-700);
44
- border-top-color: var(--g-color-private-white-100);
44
+ border-top-color: var(--pc-brand-footer-border-color-dark, var(--g-color-private-white-100));
45
45
  }
46
46
  .pc-brand-footer_theme_dark:hover {
47
47
  color: var(--g-color-private-white-1000-solid);
@@ -12,6 +12,7 @@ export declare const blockMap: {
12
12
  "tabs-block": ({ items, title, description, animated, tabsColSizes, centered, direction, contentSize, }: import("./models/index.js").TabsBlockProps) => import("react/jsx-runtime").JSX.Element;
13
13
  "header-block": (props: React.PropsWithChildren<import("./blocks/Header/Header.js").HeaderBlockFullProps>) => import("react/jsx-runtime").JSX.Element;
14
14
  "hero-block": (props: import("./models/index.js").HeroBlockProps) => import("react/jsx-runtime").JSX.Element;
15
+ "footer-block": (props: React.PropsWithChildren<import("./blocks/Footer/Footer.js").FooterBlockFullProps>) => import("react/jsx-runtime").JSX.Element;
15
16
  "icons-block": ({ title, description, size, colSizes, items }: import("./models/index.js").IconsBlockProps) => import("react/jsx-runtime").JSX.Element;
16
17
  "header-slider-block": ({ items, arrows, ...props }: import("./models/index.js").HeaderSliderBlockProps) => import("react/jsx-runtime").JSX.Element;
17
18
  "card-layout-block": ({ title, description, animated, colSizes, children, className, titleClassName, background, centered, }: import("./blocks/CardLayout/CardLayout.js").CardLayoutBlockProps) => import("react/jsx-runtime").JSX.Element;
@@ -38,7 +39,7 @@ export declare const subBlockMap: {
38
39
  export declare const navItemMap: {
39
40
  button: (props: Pick<import("./navigation/index.js").NavigationItemProps, "className"> & import("./models/index.js").ButtonProps) => import("react/jsx-runtime").JSX.Element;
40
41
  social: ({ icon, url, className, urlTitle }: import("./navigation/index.js").NavigationSocialItemOwnProps) => import("react/jsx-runtime").JSX.Element;
41
- dropdown: ({ text, icon, className, iconSize, hidePopup, items, isActive, ...props }: import("./navigation/index.js").NavigationItemProps & import("./models/index.js").NavigationDropdownItem) => import("react/jsx-runtime").JSX.Element;
42
+ dropdown: ({ text, icon, className, iconSize, hidePopup, items, isActive, data: _data, ...props }: import("./navigation/index.js").NavigationItemProps & import("./models/index.js").NavigationDropdownItem) => import("react/jsx-runtime").JSX.Element;
42
43
  link: (props: import("./navigation/index.js").NavigationItemProps & import("./models/index.js").NavigationLinkItem) => import("react/jsx-runtime").JSX.Element;
43
44
  "github-button": ({ text, url, className, label, size, icon, urlTitle, }: import("./navigation/index.js").NavigationItemProps & import("./models/index.js").NavigationGithubButton) => import("react/jsx-runtime").JSX.Element;
44
45
  };
@@ -1,4 +1,4 @@
1
- import { BannerBlock, CardLayoutBlock, CompaniesBlock, ContentLayoutBlock, ExtendedFeaturesBlock, FilterBlock, FoldableListBlock, FormBlock, HeaderBlock, HeaderSliderBlock, HeroBlock, IconsBlock, InfoBlock, MapBlock, MediaBlock, PromoFeaturesBlock, QuestionsBlock, ShareBlock, SliderBlock, SliderOldBlock, TableBlock, TabsBlock, } from "./blocks/index.js";
1
+ import { BannerBlock, CardLayoutBlock, CompaniesBlock, ContentLayoutBlock, ExtendedFeaturesBlock, FilterBlock, FoldableListBlock, FooterBlock, FormBlock, HeaderBlock, HeaderSliderBlock, HeroBlock, IconsBlock, InfoBlock, MapBlock, MediaBlock, PromoFeaturesBlock, QuestionsBlock, ShareBlock, SliderBlock, SliderOldBlock, TableBlock, TabsBlock, } from "./blocks/index.js";
2
2
  import { BlockType, NavigationItemType, SubBlockType } from "./models/index.js";
3
3
  import { GithubButton, NavigationButton, NavigationDropdown, NavigationLink, } from "./navigation/components/NavigationItem/index.js";
4
4
  import SocialIcon from "./navigation/components/SocialIcon/SocialIcon.js";
@@ -17,6 +17,7 @@ export const blockMap = {
17
17
  [BlockType.TabsBlock]: TabsBlock,
18
18
  [BlockType.HeaderBlock]: HeaderBlock,
19
19
  [BlockType.HeroBlock]: HeroBlock,
20
+ [BlockType.FooterBlock]: FooterBlock,
20
21
  [BlockType.IconsBlock]: IconsBlock,
21
22
  [BlockType.HeaderSliderBlock]: HeaderSliderBlock,
22
23
  [BlockType.CardLayoutBlock]: CardLayoutBlock,
@@ -1 +1 @@
1
- {"version":3,"file":"constructor-items.js","sourceRoot":"../../src","sources":["constructor-items.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB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AC,IAAI,CAAC,EAAE,cAAc;IACzC,CAAC,kBAAkB,CAAC,YAAY,CAAC,EAAE,YAAY;CAClD,CAAC","sourcesContent":["import {\n BannerBlock,\n CardLayoutBlock,\n CompaniesBlock,\n ContentLayoutBlock,\n ExtendedFeaturesBlock,\n FilterBlock,\n FoldableListBlock,\n FormBlock,\n HeaderBlock,\n HeaderSliderBlock,\n HeroBlock,\n IconsBlock,\n InfoBlock,\n MapBlock,\n MediaBlock,\n PromoFeaturesBlock,\n QuestionsBlock,\n ShareBlock,\n SliderBlock,\n SliderOldBlock,\n TableBlock,\n TabsBlock,\n} from './blocks';\nimport {BlockType, NavigationItemType, SubBlockType} from './models';\nimport {\n GithubButton,\n NavigationButton,\n NavigationDropdown,\n NavigationLink,\n} from './navigation/components/NavigationItem';\nimport SocialIcon from './navigation/components/SocialIcon/SocialIcon';\nimport {\n BackgroundCard,\n BannerCard,\n BasicCard,\n Content,\n Divider,\n ImageCard,\n LayoutItem,\n MediaCard,\n PriceCard,\n PriceDetailed,\n Quote,\n} from './sub-blocks';\n\nexport const blockMap = {\n [BlockType.SliderOldBlock]: SliderOldBlock,\n [BlockType.ExtendedFeaturesBlock]: ExtendedFeaturesBlock,\n [BlockType.PromoFeaturesBlock]: PromoFeaturesBlock,\n [BlockType.QuestionsBlock]: QuestionsBlock,\n [BlockType.FoldableListBlock]: FoldableListBlock,\n [BlockType.BannerBlock]: BannerBlock,\n [BlockType.CompaniesBlock]: CompaniesBlock,\n [BlockType.MediaBlock]: MediaBlock,\n [BlockType.InfoBlock]: InfoBlock,\n [BlockType.TableBlock]: TableBlock,\n [BlockType.TabsBlock]: TabsBlock,\n [BlockType.HeaderBlock]: HeaderBlock,\n [BlockType.HeroBlock]: HeroBlock,\n [BlockType.IconsBlock]: IconsBlock,\n [BlockType.HeaderSliderBlock]: HeaderSliderBlock,\n [BlockType.CardLayoutBlock]: CardLayoutBlock,\n [BlockType.ContentLayoutBlock]: ContentLayoutBlock,\n [BlockType.ShareBlock]: ShareBlock,\n [BlockType.MapBlock]: MapBlock,\n [BlockType.FilterBlock]: FilterBlock,\n [BlockType.FormBlock]: FormBlock,\n [BlockType.SliderBlock]: SliderBlock,\n};\n\nexport const subBlockMap = {\n [SubBlockType.Divider]: Divider,\n [SubBlockType.PriceDetailed]: PriceDetailed,\n [SubBlockType.MediaCard]: MediaCard,\n [SubBlockType.BannerCard]: BannerCard,\n [SubBlockType.LayoutItem]: LayoutItem,\n [SubBlockType.BackgroundCard]: BackgroundCard,\n [SubBlockType.BasicCard]: BasicCard,\n [SubBlockType.Content]: Content,\n [SubBlockType.Quote]: Quote,\n [SubBlockType.PriceCard]: PriceCard,\n [SubBlockType.ImageCard]: ImageCard,\n};\n\nexport const navItemMap = {\n [NavigationItemType.Button]: NavigationButton,\n [NavigationItemType.Social]: SocialIcon,\n [NavigationItemType.Dropdown]: NavigationDropdown,\n [NavigationItemType.Link]: NavigationLink,\n [NavigationItemType.GithubButton]: GithubButton,\n};\n"]}
1
+ {"version":3,"file":"constructor-items.js","sourceRoot":"../../src","sources":["constructor-items.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,SAAS,EACT,QAAQ,EACR,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,WAAW,EACX,cAAc,EACd,UAAU,EACV,SAAS,GACZ,0BAAiB;AAClB,OAAO,EAAC,SAAS,EAAE,kBAAkB,EAAE,YAAY,EAAC,0BAAiB;AACrE,OAAO,EACH,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,GACjB,wDAA+C;AAChD,OAAO,UAAU,yDAAsD;AACvE,OAAO,EACH,cAAc,EACd,UAAU,EACV,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,UAA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AAW;CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,OAAO;IAC/B,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,aAAa;IAC3C,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,SAAS;IACnC,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,UAAU;IACrC,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,UAAU;IACrC,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE,cAAc;IAC7C,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,SAAS;IACnC,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,OAAO;IAC/B,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,KAAK;IAC3B,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,SAAS;IACnC,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,SAAS;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,gBAAgB;IAC7C,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,UAAU;IACvC,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,kBAAkB;IACjD,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,cAAc;IACzC,CAAC,kBAAkB,CAAC,YAAY,CAAC,EAAE,YAAY;CAClD,CAAC","sourcesContent":["import {\n BannerBlock,\n CardLayoutBlock,\n CompaniesBlock,\n ContentLayoutBlock,\n ExtendedFeaturesBlock,\n FilterBlock,\n FoldableListBlock,\n FooterBlock,\n FormBlock,\n HeaderBlock,\n HeaderSliderBlock,\n HeroBlock,\n IconsBlock,\n InfoBlock,\n MapBlock,\n MediaBlock,\n PromoFeaturesBlock,\n QuestionsBlock,\n ShareBlock,\n SliderBlock,\n SliderOldBlock,\n TableBlock,\n TabsBlock,\n} from './blocks';\nimport {BlockType, NavigationItemType, SubBlockType} from './models';\nimport {\n GithubButton,\n NavigationButton,\n NavigationDropdown,\n NavigationLink,\n} from './navigation/components/NavigationItem';\nimport SocialIcon from './navigation/components/SocialIcon/SocialIcon';\nimport {\n BackgroundCard,\n BannerCard,\n BasicCard,\n Content,\n Divider,\n ImageCard,\n LayoutItem,\n MediaCard,\n PriceCard,\n PriceDetailed,\n Quote,\n} from './sub-blocks';\n\nexport const blockMap = {\n [BlockType.SliderOldBlock]: SliderOldBlock,\n [BlockType.ExtendedFeaturesBlock]: ExtendedFeaturesBlock,\n [BlockType.PromoFeaturesBlock]: PromoFeaturesBlock,\n [BlockType.QuestionsBlock]: QuestionsBlock,\n [BlockType.FoldableListBlock]: FoldableListBlock,\n [BlockType.BannerBlock]: BannerBlock,\n [BlockType.CompaniesBlock]: CompaniesBlock,\n [BlockType.MediaBlock]: MediaBlock,\n [BlockType.InfoBlock]: InfoBlock,\n [BlockType.TableBlock]: TableBlock,\n [BlockType.TabsBlock]: TabsBlock,\n [BlockType.HeaderBlock]: HeaderBlock,\n [BlockType.HeroBlock]: HeroBlock,\n [BlockType.FooterBlock]: FooterBlock,\n [BlockType.IconsBlock]: IconsBlock,\n [BlockType.HeaderSliderBlock]: HeaderSliderBlock,\n [BlockType.CardLayoutBlock]: CardLayoutBlock,\n [BlockType.ContentLayoutBlock]: ContentLayoutBlock,\n [BlockType.ShareBlock]: ShareBlock,\n [BlockType.MapBlock]: MapBlock,\n [BlockType.FilterBlock]: FilterBlock,\n [BlockType.FormBlock]: FormBlock,\n [BlockType.SliderBlock]: SliderBlock,\n};\n\nexport const subBlockMap = {\n [SubBlockType.Divider]: Divider,\n [SubBlockType.PriceDetailed]: PriceDetailed,\n [SubBlockType.MediaCard]: MediaCard,\n [SubBlockType.BannerCard]: BannerCard,\n [SubBlockType.LayoutItem]: LayoutItem,\n [SubBlockType.BackgroundCard]: BackgroundCard,\n [SubBlockType.BasicCard]: BasicCard,\n [SubBlockType.Content]: Content,\n [SubBlockType.Quote]: Quote,\n [SubBlockType.PriceCard]: PriceCard,\n [SubBlockType.ImageCard]: ImageCard,\n};\n\nexport const navItemMap = {\n [NavigationItemType.Button]: NavigationButton,\n [NavigationItemType.Social]: SocialIcon,\n [NavigationItemType.Dropdown]: NavigationDropdown,\n [NavigationItemType.Link]: NavigationLink,\n [NavigationItemType.GithubButton]: GithubButton,\n};\n"]}