@brilo/base-blocks 0.1.58 → 0.1.61

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 (255) hide show
  1. package/build/.tsbuildinfo +1 -1
  2. package/build/blocks/anchor/anchor-group/icon.js +1 -1
  3. package/build/blocks/career/career-benefits/icon.js +1 -1
  4. package/build/blocks/career/career-header/icon.js +1 -1
  5. package/build/blocks/career/job-position-group/icon.js +1 -1
  6. package/build/blocks/column/column-item/edit.d.ts.map +1 -1
  7. package/build/blocks/column/column-item/index.d.ts.map +1 -1
  8. package/build/blocks/column/column-item/index.js +1 -0
  9. package/build/blocks/compare/compare-option/edit.d.ts +1 -1
  10. package/build/blocks/compare/compare-option/edit.d.ts.map +1 -1
  11. package/build/blocks/compare/compare-option/edit.js +1 -1
  12. package/build/blocks/contact/contact-item/factory.d.ts.map +1 -1
  13. package/build/blocks/document/documents-grid/icon.js +1 -1
  14. package/build/blocks/event/event-detail-content/icon.js +1 -1
  15. package/build/blocks/event/event-detail-header/icon.js +1 -1
  16. package/build/blocks/event/event-list-group/icon.js +1 -1
  17. package/build/blocks/faq/faq-item/edit.d.ts.map +1 -1
  18. package/build/blocks/faq/faq-item/edit.js +2 -2
  19. package/build/blocks/food-menu/food-menu-group/FoodMenuPreview.d.ts.map +1 -1
  20. package/build/blocks/food-menu/food-menu-group/FoodMenuPreview.js +36 -6
  21. package/build/blocks/food-menu/food-menu-group/constants.d.ts +51 -3
  22. package/build/blocks/food-menu/food-menu-group/constants.d.ts.map +1 -1
  23. package/build/blocks/food-menu/food-menu-group/constants.js +32 -6
  24. package/build/blocks/food-menu/food-menu-group/edit.d.ts.map +1 -1
  25. package/build/blocks/food-menu/food-menu-group/edit.js +61 -2
  26. package/build/blocks/food-menu/food-menu-group/factory.d.ts.map +1 -1
  27. package/build/blocks/food-menu/food-menu-group/factory.js +77 -45
  28. package/build/blocks/food-menu/food-menu-group/index.d.ts +1 -1
  29. package/build/blocks/food-menu/food-menu-group/index.d.ts.map +1 -1
  30. package/build/blocks/food-menu/food-menu-group/types.d.ts +12 -5
  31. package/build/blocks/food-menu/food-menu-group/types.d.ts.map +1 -1
  32. package/build/blocks/food-menu/food-reservation/edit.d.ts +7 -0
  33. package/build/blocks/food-menu/food-reservation/edit.d.ts.map +1 -0
  34. package/build/blocks/food-menu/food-reservation/edit.js +69 -0
  35. package/build/blocks/food-menu/food-reservation/factory.d.ts +4 -0
  36. package/build/blocks/food-menu/food-reservation/factory.d.ts.map +1 -0
  37. package/build/blocks/food-menu/food-reservation/factory.js +24 -0
  38. package/build/blocks/food-menu/food-reservation/icon.d.ts +2 -0
  39. package/build/blocks/food-menu/food-reservation/icon.d.ts.map +1 -0
  40. package/build/blocks/food-menu/food-reservation/icon.js +2 -0
  41. package/build/blocks/food-menu/food-reservation/index.d.ts +5 -0
  42. package/build/blocks/food-menu/food-reservation/index.d.ts.map +1 -0
  43. package/build/blocks/food-menu/food-reservation/index.js +6 -0
  44. package/build/blocks/food-menu/food-reservation/types.d.ts +7 -0
  45. package/build/blocks/food-menu/food-reservation/types.d.ts.map +1 -0
  46. package/build/blocks/food-menu/food-reservation/types.js +1 -0
  47. package/build/blocks/form/form-field/types.d.ts +1 -1
  48. package/build/blocks/form/form-field/types.d.ts.map +1 -1
  49. package/build/blocks/form/form-group/index.js +1 -1
  50. package/build/blocks/gallery/gallery-group/constants.d.ts +1 -19
  51. package/build/blocks/gallery/gallery-group/constants.d.ts.map +1 -1
  52. package/build/blocks/gallery/gallery-group/constants.js +1 -8
  53. package/build/blocks/gallery/gallery-group/edit.d.ts.map +1 -1
  54. package/build/blocks/gallery/gallery-group/edit.js +3 -19
  55. package/build/blocks/gallery/gallery-item/index.js +1 -1
  56. package/build/blocks/gallery/gallery-strip-group/constants.d.ts +34 -0
  57. package/build/blocks/gallery/gallery-strip-group/constants.d.ts.map +1 -0
  58. package/build/blocks/gallery/gallery-strip-group/constants.js +17 -0
  59. package/build/blocks/gallery/gallery-strip-group/edit.d.ts +7 -0
  60. package/build/blocks/gallery/gallery-strip-group/edit.d.ts.map +1 -0
  61. package/build/blocks/gallery/gallery-strip-group/edit.js +34 -0
  62. package/build/blocks/gallery/gallery-strip-group/factory.d.ts +5 -0
  63. package/build/blocks/gallery/gallery-strip-group/factory.d.ts.map +1 -0
  64. package/build/blocks/gallery/gallery-strip-group/factory.js +28 -0
  65. package/build/blocks/gallery/gallery-strip-group/index.d.ts +5 -0
  66. package/build/blocks/gallery/gallery-strip-group/index.d.ts.map +1 -0
  67. package/build/blocks/gallery/gallery-strip-group/index.js +7 -0
  68. package/build/blocks/gallery/gallery-strip-group/types.d.ts +18 -0
  69. package/build/blocks/gallery/gallery-strip-group/types.d.ts.map +1 -0
  70. package/build/blocks/gallery/gallery-strip-group/types.js +1 -0
  71. package/build/blocks/groups/banner-group/icon.js +1 -1
  72. package/build/blocks/groups/content-group/icon.js +1 -1
  73. package/build/blocks/groups/text-and-media-group/index.d.ts.map +1 -1
  74. package/build/blocks/groups/text-and-media-group/index.js +2 -0
  75. package/build/blocks/hero/hero-group/edit.js +1 -1
  76. package/build/blocks/hero/hero-group/icon.js +1 -1
  77. package/build/blocks/hero/hero-group/types.d.ts +1 -1
  78. package/build/blocks/hero/hero-group/types.d.ts.map +1 -1
  79. package/build/blocks/hero/hero-item/edit.js +1 -1
  80. package/build/blocks/hero/hero-item/index.js +1 -1
  81. package/build/blocks/layout/box/icon.js +1 -1
  82. package/build/blocks/layout/layout-aside/edit.d.ts +1 -2
  83. package/build/blocks/layout/layout-aside/edit.d.ts.map +1 -1
  84. package/build/blocks/layout/layout-aside/edit.js +1 -1
  85. package/build/blocks/layout/layout-aside/factory.d.ts.map +1 -1
  86. package/build/blocks/layout/layout-aside/icon.d.ts +1 -2
  87. package/build/blocks/layout/layout-aside/icon.d.ts.map +1 -1
  88. package/build/blocks/layout/layout-aside/icon.js +1 -1
  89. package/build/blocks/layout/layout-content/edit.d.ts +1 -2
  90. package/build/blocks/layout/layout-content/edit.d.ts.map +1 -1
  91. package/build/blocks/layout/layout-content/edit.js +1 -1
  92. package/build/blocks/layout/layout-content/factory.d.ts.map +1 -1
  93. package/build/blocks/layout/layout-content/icon.d.ts +1 -2
  94. package/build/blocks/layout/layout-content/icon.d.ts.map +1 -1
  95. package/build/blocks/layout/layout-content/icon.js +1 -1
  96. package/build/blocks/layout/layout-content-w-aside/edit.d.ts +1 -2
  97. package/build/blocks/layout/layout-content-w-aside/edit.d.ts.map +1 -1
  98. package/build/blocks/layout/layout-content-w-aside/factory.d.ts.map +1 -1
  99. package/build/blocks/layout/layout-content-w-aside/icon.d.ts +1 -2
  100. package/build/blocks/layout/layout-content-w-aside/icon.d.ts.map +1 -1
  101. package/build/blocks/layout/layout-content-w-aside/icon.js +1 -1
  102. package/build/blocks/link/link-item/icon.js +1 -1
  103. package/build/blocks/map/map-group/edit.d.ts.map +1 -1
  104. package/build/blocks/map/map-group/edit.js +1 -1
  105. package/build/blocks/map/map-group/factory.d.ts.map +1 -1
  106. package/build/blocks/map/map-group/types.d.ts.map +1 -1
  107. package/build/blocks/newsletter/newsletter-form/edit.d.ts.map +1 -1
  108. package/build/blocks/newsletter/newsletter-form/edit.js +2 -1
  109. package/build/blocks/person/person-group/icon.js +1 -1
  110. package/build/blocks/person/person-item/constants.d.ts.map +1 -1
  111. package/build/blocks/post/post-content/icon.js +1 -1
  112. package/build/blocks/post/post-content/types.d.ts.map +1 -1
  113. package/build/blocks/post/post-slider-group/icon.js +1 -1
  114. package/build/blocks/post/posts-grid/icon.js +1 -1
  115. package/build/blocks/review/review-summary-item/constants.d.ts +3 -0
  116. package/build/blocks/review/review-summary-item/constants.d.ts.map +1 -0
  117. package/build/blocks/review/review-summary-item/constants.js +2 -0
  118. package/build/blocks/review/review-summary-item/edit.d.ts +6 -0
  119. package/build/blocks/review/review-summary-item/edit.d.ts.map +1 -0
  120. package/build/blocks/review/review-summary-item/edit.js +17 -0
  121. package/build/blocks/review/review-summary-item/factory.d.ts +5 -0
  122. package/build/blocks/review/review-summary-item/factory.d.ts.map +1 -0
  123. package/build/blocks/review/review-summary-item/factory.js +23 -0
  124. package/build/blocks/review/review-summary-item/index.d.ts +5 -0
  125. package/build/blocks/review/review-summary-item/index.d.ts.map +1 -0
  126. package/build/blocks/review/review-summary-item/index.js +5 -0
  127. package/build/blocks/review/review-summary-item/types.d.ts +11 -0
  128. package/build/blocks/review/review-summary-item/types.d.ts.map +1 -0
  129. package/build/blocks/review/review-summary-item/types.js +1 -0
  130. package/build/blocks/share/share/icon.js +1 -1
  131. package/build/blocks/signpost/signpost-group/icon.js +1 -1
  132. package/build/blocks/step/step-group/factory.d.ts.map +1 -1
  133. package/build/blocks/step/step-group/icon.js +1 -1
  134. package/build/blocks/testimonial/testimonial-group/icon.js +1 -1
  135. package/build/blocks/urgency/urgency-item/constants.d.ts +56 -0
  136. package/build/blocks/urgency/urgency-item/constants.d.ts.map +1 -0
  137. package/build/blocks/urgency/urgency-item/constants.js +32 -0
  138. package/build/blocks/urgency/urgency-item/edit.d.ts +7 -0
  139. package/build/blocks/urgency/urgency-item/edit.d.ts.map +1 -0
  140. package/build/blocks/urgency/urgency-item/edit.js +83 -0
  141. package/build/blocks/urgency/urgency-item/factory.d.ts +5 -0
  142. package/build/blocks/urgency/urgency-item/factory.d.ts.map +1 -0
  143. package/build/blocks/urgency/urgency-item/factory.js +31 -0
  144. package/build/blocks/urgency/urgency-item/index.d.ts +5 -0
  145. package/build/blocks/urgency/urgency-item/index.d.ts.map +1 -0
  146. package/build/blocks/urgency/urgency-item/index.js +5 -0
  147. package/build/blocks/urgency/urgency-item/types.d.ts +22 -0
  148. package/build/blocks/urgency/urgency-item/types.d.ts.map +1 -0
  149. package/build/blocks/urgency/urgency-item/types.js +1 -0
  150. package/build/components/GalleryImagesAppender/index.d.ts +5 -0
  151. package/build/components/GalleryImagesAppender/index.d.ts.map +1 -0
  152. package/build/components/GalleryImagesAppender/index.js +12 -0
  153. package/build/components/ImagePicker/ImagePicker.d.ts.map +1 -1
  154. package/build/components/ImagePicker/ImagePicker.js +1 -5
  155. package/build/constants.d.ts +19 -0
  156. package/build/constants.d.ts.map +1 -1
  157. package/build/constants.js +8 -0
  158. package/build/hooks/useGroupBlock.d.ts.map +1 -1
  159. package/build/hooks/useGroupBlock.js +10 -3
  160. package/build/index.d.ts +8 -0
  161. package/build/index.d.ts.map +1 -1
  162. package/build/index.js +4 -0
  163. package/package.json +4 -3
  164. package/src/blocks/anchor/anchor-group/icon.tsx +1 -1
  165. package/src/blocks/career/career-benefits/icon.tsx +1 -1
  166. package/src/blocks/career/career-header/icon.tsx +1 -1
  167. package/src/blocks/career/job-position-group/icon.tsx +1 -1
  168. package/src/blocks/column/column-item/edit.tsx +0 -1
  169. package/src/blocks/column/column-item/index.ts +1 -0
  170. package/src/blocks/compare/compare-option/edit.tsx +1 -1
  171. package/src/blocks/contact/contact-item/factory.tsx +1 -2
  172. package/src/blocks/document/documents-grid/icon.tsx +1 -1
  173. package/src/blocks/event/event-detail-content/icon.tsx +1 -1
  174. package/src/blocks/event/event-detail-header/icon.tsx +1 -1
  175. package/src/blocks/event/event-list-group/icon.tsx +1 -1
  176. package/src/blocks/faq/faq-item/edit.tsx +23 -25
  177. package/src/blocks/food-menu/food-menu-group/FoodMenuPreview.tsx +58 -9
  178. package/src/blocks/food-menu/food-menu-group/constants.ts +37 -6
  179. package/src/blocks/food-menu/food-menu-group/edit.tsx +116 -20
  180. package/src/blocks/food-menu/food-menu-group/editor.scss +35 -6
  181. package/src/blocks/food-menu/food-menu-group/factory.tsx +77 -39
  182. package/src/blocks/food-menu/food-menu-group/index.ts +2 -0
  183. package/src/blocks/food-menu/food-menu-group/types.ts +18 -5
  184. package/src/blocks/food-menu/food-reservation/edit.tsx +179 -0
  185. package/src/blocks/food-menu/food-reservation/factory.tsx +28 -0
  186. package/src/blocks/food-menu/food-reservation/icon.tsx +9 -0
  187. package/src/blocks/food-menu/food-reservation/index.ts +10 -0
  188. package/src/blocks/food-menu/food-reservation/types.ts +8 -0
  189. package/src/blocks/form/form-field/types.ts +1 -7
  190. package/src/blocks/form/form-group/index.ts +1 -1
  191. package/src/blocks/gallery/gallery-group/constants.ts +1 -8
  192. package/src/blocks/gallery/gallery-group/edit.tsx +3 -39
  193. package/src/blocks/gallery/gallery-group/editor.scss +0 -12
  194. package/src/blocks/gallery/gallery-item/index.ts +1 -1
  195. package/src/blocks/gallery/gallery-strip-group/constants.ts +22 -0
  196. package/src/blocks/gallery/gallery-strip-group/edit.tsx +112 -0
  197. package/src/blocks/gallery/gallery-strip-group/editor.scss +36 -0
  198. package/src/blocks/gallery/gallery-strip-group/factory.tsx +32 -0
  199. package/src/blocks/gallery/gallery-strip-group/index.ts +11 -0
  200. package/src/blocks/gallery/gallery-strip-group/types.ts +20 -0
  201. package/src/blocks/groups/banner-group/edit.tsx +1 -1
  202. package/src/blocks/groups/banner-group/icon.tsx +1 -1
  203. package/src/blocks/groups/content-group/icon.tsx +1 -1
  204. package/src/blocks/groups/text-and-media-group/index.ts +2 -0
  205. package/src/blocks/hero/hero-group/edit.tsx +3 -3
  206. package/src/blocks/hero/hero-group/icon.tsx +1 -1
  207. package/src/blocks/hero/hero-group/types.ts +1 -1
  208. package/src/blocks/hero/hero-item/edit.tsx +5 -5
  209. package/src/blocks/hero/hero-item/index.ts +1 -1
  210. package/src/blocks/layout/box/icon.tsx +1 -1
  211. package/src/blocks/layout/layout-aside/edit.tsx +2 -3
  212. package/src/blocks/layout/layout-aside/factory.tsx +0 -1
  213. package/src/blocks/layout/layout-aside/icon.tsx +1 -3
  214. package/src/blocks/layout/layout-content/edit.tsx +2 -3
  215. package/src/blocks/layout/layout-content/factory.tsx +0 -1
  216. package/src/blocks/layout/layout-content/icon.tsx +1 -3
  217. package/src/blocks/layout/layout-content-w-aside/edit.tsx +0 -1
  218. package/src/blocks/layout/layout-content-w-aside/factory.tsx +0 -1
  219. package/src/blocks/layout/layout-content-w-aside/icon.tsx +1 -3
  220. package/src/blocks/link/link-item/icon.tsx +1 -1
  221. package/src/blocks/map/map-group/edit.tsx +8 -3
  222. package/src/blocks/map/map-group/factory.tsx +1 -1
  223. package/src/blocks/map/map-group/types.ts +1 -1
  224. package/src/blocks/newsletter/newsletter-form/edit.tsx +5 -2
  225. package/src/blocks/person/person-group/icon.tsx +1 -1
  226. package/src/blocks/person/person-item/constants.ts +1 -1
  227. package/src/blocks/post/post-content/icon.tsx +1 -1
  228. package/src/blocks/post/post-content/types.ts +0 -1
  229. package/src/blocks/post/post-slider-group/icon.tsx +1 -1
  230. package/src/blocks/post/posts-grid/icon.tsx +1 -1
  231. package/src/blocks/review/review-summary-item/constants.ts +2 -0
  232. package/src/blocks/review/review-summary-item/edit.tsx +86 -0
  233. package/src/blocks/review/review-summary-item/editor.scss +44 -0
  234. package/src/blocks/review/review-summary-item/factory.tsx +27 -0
  235. package/src/blocks/review/review-summary-item/index.ts +9 -0
  236. package/src/blocks/review/review-summary-item/types.ts +11 -0
  237. package/src/blocks/share/share/icon.tsx +1 -1
  238. package/src/blocks/signpost/signpost-group/icon.tsx +1 -1
  239. package/src/blocks/step/step-group/factory.tsx +1 -1
  240. package/src/blocks/step/step-group/icon.tsx +1 -1
  241. package/src/blocks/testimonial/testimonial-group/icon.tsx +1 -1
  242. package/src/blocks/urgency/urgency-item/constants.ts +39 -0
  243. package/src/blocks/urgency/urgency-item/edit.tsx +319 -0
  244. package/src/blocks/urgency/urgency-item/editor.scss +99 -0
  245. package/src/blocks/urgency/urgency-item/factory.tsx +36 -0
  246. package/src/blocks/urgency/urgency-item/index.ts +9 -0
  247. package/src/blocks/urgency/urgency-item/types.ts +23 -0
  248. package/src/components/GalleryImagesAppender/editor.scss +15 -0
  249. package/src/components/GalleryImagesAppender/index.tsx +29 -0
  250. package/src/components/ImagePicker/ImagePicker.tsx +6 -6
  251. package/src/components/ItemIconControl/types.d.ts +0 -1
  252. package/src/constants.ts +9 -0
  253. package/src/editor.scss +4 -0
  254. package/src/hooks/useGroupBlock.ts +10 -2
  255. package/src/index.ts +8 -0
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { InnerBlocks } from '@wordpress/block-editor';
3
+ import { __ } from '@wordpress/i18n';
4
+ import { ITEM_SPACING_ATTRIBUTE } from '../../../components/ItemSpacingControl';
5
+ import { DEFAULT_RATIOS, DIRECTIONS, HEIGHTS, SPEEDS } from './constants';
6
+ import { createGalleryStripGroupEdit } from './edit';
7
+ export function createGalleryStripGroupBlock(options) {
8
+ var _a, _b, _c, _d, _e;
9
+ const ratios = (_a = options.ratios) !== null && _a !== void 0 ? _a : DEFAULT_RATIOS;
10
+ return {
11
+ name: options.name,
12
+ title: (_b = options.title) !== null && _b !== void 0 ? _b : __('Pás obrázků', 'brilo-blocks'),
13
+ description: (_c = options.description) !== null && _c !== void 0 ? _c : __('Nekonečně se posouvající pás obrázků', 'brilo-blocks'),
14
+ category: (_d = options.category) !== null && _d !== void 0 ? _d : 'layout',
15
+ ...(options.parent && { parent: options.parent }),
16
+ icon: (_e = options.icon) !== null && _e !== void 0 ? _e : 'images-alt2',
17
+ supports: { html: false, customClassName: false },
18
+ attributes: {
19
+ height: { type: 'string', default: HEIGHTS[1].value, enum: HEIGHTS.map((h) => h.value) },
20
+ ratio: { type: 'string', default: ratios[0].value, enum: ratios.map((r) => r.value) },
21
+ speed: { type: 'string', default: SPEEDS[1].value, enum: SPEEDS.map((s) => s.value) },
22
+ direction: { type: 'string', default: DIRECTIONS[0].value, enum: DIRECTIONS.map((d) => d.value) },
23
+ ...ITEM_SPACING_ATTRIBUTE,
24
+ },
25
+ edit: createGalleryStripGroupEdit(options),
26
+ save: () => _jsx(InnerBlocks.Content, {}),
27
+ };
28
+ }
@@ -0,0 +1,5 @@
1
+ export type { GalleryStripGroupAttributes, GalleryStripGroupOptions } from './types';
2
+ export { createGalleryStripGroupBlock } from './factory';
3
+ import type { GalleryStripGroupOptions } from './types';
4
+ export declare const galleryStripGroupDefaults: GalleryStripGroupOptions;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/gallery/gallery-strip-group/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,2BAA2B,EAAE,wBAAwB,EAAC,MAAM,SAAS,CAAA;AAClF,OAAO,EAAC,4BAA4B,EAAC,MAAM,WAAW,CAAA;AAEtD,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,SAAS,CAAA;AAErD,eAAO,MAAM,yBAAyB,EAAE,wBAKvC,CAAA"}
@@ -0,0 +1,7 @@
1
+ export { createGalleryStripGroupBlock } from './factory';
2
+ export const galleryStripGroupDefaults = {
3
+ name: 'brilo/gallery-strip-group',
4
+ parent: ['brilo/base-section'],
5
+ allowedBlocks: ['brilo/gallery-item'],
6
+ template: [],
7
+ };
@@ -0,0 +1,18 @@
1
+ import type { BriloBlockType, OptionArray } from '../../../types';
2
+ import type { DEFAULT_RATIOS, DIRECTIONS, HEIGHTS, SPEEDS } from './constants';
3
+ export type GalleryStripHeight = (typeof HEIGHTS)[number]['value'];
4
+ export type GalleryStripSpeed = (typeof SPEEDS)[number]['value'];
5
+ export type GalleryStripRatio = (typeof DEFAULT_RATIOS)[number]['value'];
6
+ export type GalleryStripDirection = (typeof DIRECTIONS)[number]['value'];
7
+ export interface GalleryStripGroupAttributes extends Record<string, unknown> {
8
+ height: GalleryStripHeight;
9
+ ratio: GalleryStripRatio;
10
+ speed: GalleryStripSpeed;
11
+ direction: GalleryStripDirection;
12
+ spacing?: number;
13
+ }
14
+ export interface GalleryStripGroupOptions extends BriloBlockType {
15
+ allowedBlocks: string[];
16
+ ratios?: OptionArray;
17
+ }
18
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/blocks/gallery/gallery-strip-group/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAE,WAAW,EAAC,MAAM,SAAS,CAAA;AACxD,OAAO,KAAK,EAAC,cAAc,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAC,MAAM,aAAa,CAAA;AAE5E,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAClE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAChE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AACxE,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAExE,MAAM,WAAW,2BAA4B,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC1E,MAAM,EAAE,kBAAkB,CAAA;IAC1B,KAAK,EAAE,iBAAiB,CAAA;IACxB,KAAK,EAAE,iBAAiB,CAAA;IACxB,SAAS,EAAE,qBAAqB,CAAA;IAChC,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,wBAAyB,SAAQ,cAAc;IAC9D,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export const icon = (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "0.5", y: "5.5", width: "19", height: "8", stroke: "black", fill: "none" }), _jsx("path", { d: "M2 8H8V9H2V8Z", fill: "black" }), _jsx("path", { d: "M2 10H9V11H2V10Z", fill: "black" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.5 8C10.6716 8 10 8.67157 10 9.5C10 10.3284 10.6716 11 11.5 11H16.5C17.3284 11 18 10.3284 18 9.5C18 8.67157 17.3284 8 16.5 8H11.5ZM16 9H12V10H16V9Z", fill: "#357AB5" })] }));
2
+ export const icon = (_jsxs("svg", { "aria-hidden": "true", focusable: "false", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "0.5", y: "5.5", width: "19", height: "8", stroke: "black", fill: "none" }), _jsx("path", { d: "M2 8H8V9H2V8Z", fill: "black" }), _jsx("path", { d: "M2 10H9V11H2V10Z", fill: "black" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.5 8C10.6716 8 10 8.67157 10 9.5C10 10.3284 10.6716 11 11.5 11H16.5C17.3284 11 18 10.3284 18 9.5C18 8.67157 17.3284 8 16.5 8H11.5ZM16 9H12V10H16V9Z", fill: "#357AB5" })] }));
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export const icon = (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "1.5", y: "12.5", width: "17", height: "7", stroke: "black", fill: "none" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.5 15L6 18L11 18L8.5 15Z", fill: "black" }), _jsx("path", { d: "M13 15C13 15.5523 12.5523 16 12 16C11.4477 16 11 15.5523 11 15C11 14.4477 11.4477 14 12 14C12.5523 14 13 14.4477 13 15Z", fill: "black" }), _jsx("path", { d: "M1 3H9V4H1V3Z", fill: "black" }), _jsx("path", { d: "M10 3H18V4H10V3Z", fill: "black" }), _jsx("path", { d: "M1 5H4V6H1V5Z", fill: "black" }), _jsx("path", { d: "M6 5H15V6H6V5Z", fill: "black" }), _jsx("path", { d: "M1 8H2V9H1V8Z", fill: "black" }), _jsx("path", { d: "M3 8H8V9H3V8Z", fill: "black" }), _jsx("path", { d: "M1 10H2V11H1V10Z", fill: "black" }), _jsx("path", { d: "M3 10H10V11H3V10Z", fill: "black" }), _jsx("path", { d: "M8 1C8 0.447715 8.44772 0 9 0H10C10.5523 0 11 0.447715 11 1C11 1.55228 10.5523 2 10 2H9C8.44772 2 8 1.55228 8 1Z", fill: "black" }), _jsx("path", { d: "M1 1C1 0.447715 1.44772 0 2 0H6C6.55228 0 7 0.447715 7 1C7 1.55228 6.55228 2 6 2H2C1.44772 2 1 1.55228 1 1Z", fill: "black" })] }));
2
+ export const icon = (_jsxs("svg", { "aria-hidden": "true", focusable: "false", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "1.5", y: "12.5", width: "17", height: "7", stroke: "black", fill: "none" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.5 15L6 18L11 18L8.5 15Z", fill: "black" }), _jsx("path", { d: "M13 15C13 15.5523 12.5523 16 12 16C11.4477 16 11 15.5523 11 15C11 14.4477 11.4477 14 12 14C12.5523 14 13 14.4477 13 15Z", fill: "black" }), _jsx("path", { d: "M1 3H9V4H1V3Z", fill: "black" }), _jsx("path", { d: "M10 3H18V4H10V3Z", fill: "black" }), _jsx("path", { d: "M1 5H4V6H1V5Z", fill: "black" }), _jsx("path", { d: "M6 5H15V6H6V5Z", fill: "black" }), _jsx("path", { d: "M1 8H2V9H1V8Z", fill: "black" }), _jsx("path", { d: "M3 8H8V9H3V8Z", fill: "black" }), _jsx("path", { d: "M1 10H2V11H1V10Z", fill: "black" }), _jsx("path", { d: "M3 10H10V11H3V10Z", fill: "black" }), _jsx("path", { d: "M8 1C8 0.447715 8.44772 0 9 0H10C10.5523 0 11 0.447715 11 1C11 1.55228 10.5523 2 10 2H9C8.44772 2 8 1.55228 8 1Z", fill: "black" }), _jsx("path", { d: "M1 1C1 0.447715 1.44772 0 2 0H6C6.55228 0 7 0.447715 7 1C7 1.55228 6.55228 2 6 2H2C1.44772 2 1 1.55228 1 1Z", fill: "black" })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/groups/text-and-media-group/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,2BAA2B,EAAE,wBAAwB,EAAC,MAAM,SAAS,CAAA;AAClF,OAAO,EAAC,4BAA4B,EAAC,MAAM,WAAW,CAAA;AAEtD,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,SAAS,CAAA;AAErD,eAAO,MAAM,yBAAyB,EAAE,wBAavC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/groups/text-and-media-group/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,2BAA2B,EAAE,wBAAwB,EAAC,MAAM,SAAS,CAAA;AAClF,OAAO,EAAC,4BAA4B,EAAC,MAAM,WAAW,CAAA;AAEtD,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,SAAS,CAAA;AAErD,eAAO,MAAM,yBAAyB,EAAE,wBAevC,CAAA"}
@@ -11,5 +11,7 @@ export const textAndMediaGroupDefaults = {
11
11
  'core/heading',
12
12
  'core/list',
13
13
  'core/paragraph',
14
+ 'brilo/review-summary-item',
15
+ 'brilo/urgency-item',
14
16
  ],
15
17
  };
@@ -23,6 +23,6 @@ export function createHeroGroupEdit(options) {
23
23
  template: options.template,
24
24
  layout: { type: 'default' },
25
25
  });
26
- return (_jsxs(_Fragment, { children: [_jsxs(InspectorControls, { children: [_jsxs(PanelBody, { title: __('Rozložení a efekty', 'brilo-blocks'), children: [_jsx(ToggleGroupControl, { isBlock: true, label: __('Varianta', 'brilo-blocks'), value: variant, onChange: (v) => setAttributes({ variant: v }), children: VARIANTS_OPTIONS.map((v) => (_jsx(ToggleGroupControlOption, { value: v.value, label: v.label }, v.value))) }), _jsx(SelectControl, { label: __('Efekt přechodu', 'brilo-blocks'), value: effect, options: EFFECTS_OPTIONS, onChange: (v) => setAttributes({ effect: v }) }), _jsx(SelectControl, { label: __('Poměr stran', 'brilo-blocks'), value: aspectRatio, options: ASPECT_RATIOS_OPTIONS, onChange: (v) => setAttributes({ aspectRatio: v }) })] }), _jsxs(PanelBody, { title: __('Nastavení slideru', 'brilo-blocks'), children: [_jsx(ToggleControl, { label: __('Automatické přehrávání', 'brilo-blocks'), checked: autoplay, onChange: (v) => setAttributes({ autoplay: v }) }), autoplay && (_jsx(NumberControl, { label: __('Rychlost přehrávání (ms)', 'brilo-blocks'), value: autoplaySpeed, onChange: (v) => setAttributes({ autoplaySpeed: parseInt(v !== null && v !== void 0 ? v : '3000') }) })), _jsx(ToggleControl, { label: __('Pozastavit při najetí myší', 'brilo-blocks'), checked: pauseOnHover, onChange: (v) => setAttributes({ pauseOnHover: v }) })] }), (_a = options.extraControls) === null || _a === void 0 ? void 0 : _a.call(options, props)] }), _jsx("div", { ...blockProps, children: _jsx("div", { ...innerBlocksProps }) })] }));
26
+ return (_jsxs(_Fragment, { children: [_jsxs(InspectorControls, { children: [_jsxs(PanelBody, { title: __('Rozložení a efekty', 'brilo-blocks'), children: [_jsx(ToggleGroupControl, { isBlock: true, label: __('Varianta', 'brilo-blocks'), value: variant, onChange: (v) => setAttributes({ variant: v }), children: VARIANTS_OPTIONS.map((v) => (_jsx(ToggleGroupControlOption, { value: v.value, label: v.label }, v.value))) }), _jsx(SelectControl, { label: __('Efekt přechodu', 'brilo-blocks'), value: effect, options: EFFECTS_OPTIONS, onChange: (v) => setAttributes({ effect: v }) }), _jsx(SelectControl, { label: __('Poměr stran', 'brilo-blocks'), value: aspectRatio, options: ASPECT_RATIOS_OPTIONS, onChange: (v) => setAttributes({ aspectRatio: v }) })] }), _jsxs(PanelBody, { title: __('Nastavení slideru', 'brilo-blocks'), children: [_jsx(ToggleControl, { label: __('Automatické přehrávání', 'brilo-blocks'), checked: autoplay, onChange: (v) => setAttributes({ autoplay: v }) }), autoplay && (_jsx(NumberControl, { label: __('Rychlost přehrávání (ms)', 'brilo-blocks'), value: autoplaySpeed, onChange: (v) => setAttributes({ autoplaySpeed: parseInt(v !== null && v !== void 0 ? v : '3000', 10) }) })), _jsx(ToggleControl, { label: __('Pozastavit při najetí myší', 'brilo-blocks'), checked: pauseOnHover, onChange: (v) => setAttributes({ pauseOnHover: v }) })] }), (_a = options.extraControls) === null || _a === void 0 ? void 0 : _a.call(options, props)] }), _jsx("div", { ...blockProps, children: _jsx("div", { ...innerBlocksProps }) })] }));
27
27
  };
28
28
  }
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export const icon = (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M4 4H8V5H4V4Z", fill: "black" }), _jsx("path", { d: "M7 19H9V20H7V19Z", fill: "black" }), _jsx("path", { d: "M10 19H11V20H10V19Z", fill: "black" }), _jsx("path", { d: "M12 19H13V20H12V19Z", fill: "black" }), _jsx("path", { d: "M9 4H16V5H9V4Z", fill: "black" }), _jsx("path", { d: "M12 2C12 1.44772 12.4477 1 13 1H14C14.5523 1 15 1.44772 15 2C15 2.55228 14.5523 3 14 3H13C12.4477 3 12 2.55228 12 2Z", fill: "black" }), _jsx("path", { d: "M5 2C5 1.44772 5.44772 1 6 1H10C10.5523 1 11 1.44772 11 2C11 2.55228 10.5523 3 10 3H6C5.44772 3 5 2.55228 5 2Z", fill: "black" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.5 11L6 15L13 15L9.5 11Z", fill: "black" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 10L1 7H19V10H18V8H2V10H1ZM19 15V18H1L1 15H2V17H18V15H19Z", fill: "black" }), _jsx("path", { d: "M14 11C14 11.5523 13.5523 12 13 12C12.4477 12 12 11.5523 12 11C12 10.4477 12.4477 10 13 10C13.5523 10 14 10.4477 14 11Z", fill: "black" }), _jsx("path", { d: "M0 12.5C0 11.6716 0.671573 11 1.5 11C2.32843 11 3 11.6716 3 12.5C3 13.3284 2.32843 14 1.5 14C0.671573 14 0 13.3284 0 12.5Z", fill: "#357AB5" }), _jsx("path", { d: "M17 12.5C17 11.6716 17.6716 11 18.5 11C19.3284 11 20 11.6716 20 12.5C20 13.3284 19.3284 14 18.5 14C17.6716 14 17 13.3284 17 12.5Z", fill: "#357AB5" })] }));
2
+ export const icon = (_jsxs("svg", { "aria-hidden": "true", focusable: "false", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M4 4H8V5H4V4Z", fill: "black" }), _jsx("path", { d: "M7 19H9V20H7V19Z", fill: "black" }), _jsx("path", { d: "M10 19H11V20H10V19Z", fill: "black" }), _jsx("path", { d: "M12 19H13V20H12V19Z", fill: "black" }), _jsx("path", { d: "M9 4H16V5H9V4Z", fill: "black" }), _jsx("path", { d: "M12 2C12 1.44772 12.4477 1 13 1H14C14.5523 1 15 1.44772 15 2C15 2.55228 14.5523 3 14 3H13C12.4477 3 12 2.55228 12 2Z", fill: "black" }), _jsx("path", { d: "M5 2C5 1.44772 5.44772 1 6 1H10C10.5523 1 11 1.44772 11 2C11 2.55228 10.5523 3 10 3H6C5.44772 3 5 2.55228 5 2Z", fill: "black" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.5 11L6 15L13 15L9.5 11Z", fill: "black" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 10L1 7H19V10H18V8H2V10H1ZM19 15V18H1L1 15H2V17H18V15H19Z", fill: "black" }), _jsx("path", { d: "M14 11C14 11.5523 13.5523 12 13 12C12.4477 12 12 11.5523 12 11C12 10.4477 12.4477 10 13 10C13.5523 10 14 10.4477 14 11Z", fill: "black" }), _jsx("path", { d: "M0 12.5C0 11.6716 0.671573 11 1.5 11C2.32843 11 3 11.6716 3 12.5C3 13.3284 2.32843 14 1.5 14C0.671573 14 0 13.3284 0 12.5Z", fill: "#357AB5" }), _jsx("path", { d: "M17 12.5C17 11.6716 17.6716 11 18.5 11C19.3284 11 20 11.6716 20 12.5C20 13.3284 19.3284 14 18.5 14C17.6716 14 17 13.3284 17 12.5Z", fill: "#357AB5" })] }));
@@ -2,7 +2,7 @@ import type { BlockEditProps } from '@wordpress/blocks';
2
2
  import type { ReactNode } from 'react';
3
3
  import type { BriloBlockType, OptionArray } from '../../../types';
4
4
  import type { HeroSliderItem } from '../hero-item/types';
5
- import { DEFAULT_ASPECT_RATIOS, EFFECTS, VARIANTS } from './constants';
5
+ import type { DEFAULT_ASPECT_RATIOS, EFFECTS, VARIANTS } from './constants';
6
6
  export type Variant = (typeof VARIANTS)[number]['value'];
7
7
  export type Effect = (typeof EFFECTS)[number]['value'];
8
8
  export type AspectRatio = (typeof DEFAULT_ASPECT_RATIOS)[number]['value'];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/blocks/hero/hero-group/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAA;AACpC,OAAO,KAAK,EAAC,cAAc,EAAE,WAAW,EAAC,MAAM,SAAS,CAAA;AACxD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAC,qBAAqB,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,aAAa,CAAA;AAEpE,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AACxD,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AACtD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAEzE,MAAM,WAAW,mBAAmB,CAClC,QAAQ,SAAS,MAAM,GAAG,OAAO,EACjC,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,YAAY,SAAS,MAAM,GAAG,WAAW,CACzC,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC/B,KAAK,EAAE,cAAc,EAAE,CAAA;IACvB,OAAO,EAAE,QAAQ,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,MAAM,EAAE,OAAO,CAAA;IACf,WAAW,EAAE,YAAY,CAAA;CAC1B;AAED,MAAM,WAAW,gBAAgB,CAC/B,SAAS,SAAS,WAAW,GAAG,OAAO,QAAQ,EAC/C,QAAQ,SAAS,WAAW,GAAG,OAAO,OAAO,EAC7C,YAAY,SAAS,WAAW,GAAG,OAAO,qBAAqB,EAC/D,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAC9D,SAAQ,cAAc;IACtB,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,QAAQ,CAAA;IAClB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,eAAe,CAAC,EAAE;SACf,CAAC,IAAI,MAAM,MAAM,GAAG;YACnB,IAAI,EAAE,MAAM,CAAA;YACZ,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAA;SACnB;KACF,CAAA;IACD,aAAa,CAAC,EAAE,CACd,KAAK,EAAE,cAAc,CACnB,mBAAmB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,MAAM,CACnH,KACE,SAAS,CAAA;CACf"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/blocks/hero/hero-group/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAA;AACpC,OAAO,KAAK,EAAC,cAAc,EAAE,WAAW,EAAC,MAAM,SAAS,CAAA;AACxD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAC,qBAAqB,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,aAAa,CAAA;AAEzE,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AACxD,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AACtD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAEzE,MAAM,WAAW,mBAAmB,CAClC,QAAQ,SAAS,MAAM,GAAG,OAAO,EACjC,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,YAAY,SAAS,MAAM,GAAG,WAAW,CACzC,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC/B,KAAK,EAAE,cAAc,EAAE,CAAA;IACvB,OAAO,EAAE,QAAQ,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,MAAM,EAAE,OAAO,CAAA;IACf,WAAW,EAAE,YAAY,CAAA;CAC1B;AAED,MAAM,WAAW,gBAAgB,CAC/B,SAAS,SAAS,WAAW,GAAG,OAAO,QAAQ,EAC/C,QAAQ,SAAS,WAAW,GAAG,OAAO,OAAO,EAC7C,YAAY,SAAS,WAAW,GAAG,OAAO,qBAAqB,EAC/D,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAC9D,SAAQ,cAAc;IACtB,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,QAAQ,CAAA;IAClB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,eAAe,CAAC,EAAE;SACf,CAAC,IAAI,MAAM,MAAM,GAAG;YACnB,IAAI,EAAE,MAAM,CAAA;YACZ,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAA;SACnB;KACF,CAAA;IACD,aAAa,CAAC,EAAE,CACd,KAAK,EAAE,cAAc,CACnB,mBAAmB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,MAAM,CACnH,KACE,SAAS,CAAA;CACf"}
@@ -22,7 +22,7 @@ export function createHeroItemEdit(options) {
22
22
  template: options.template,
23
23
  layout: { type: 'default' },
24
24
  });
25
- return (_jsxs(_Fragment, { children: [_jsxs(InspectorControls, { children: [_jsxs(PanelBody, { title: __('Obrázek', 'brilo-blocks'), children: [_jsx(ImagePickerControl, { value: { id: img.id, alt: img.alt }, onChange: (v) => setAttributes({ img: { ...img, ...v } }) }), _jsx(BaseControl, { label: __('Focal point (desktop)', 'brilo-blocks'), children: _jsx(AlignmentMatrixControl, { value: focalPoint.point, onChange: (v) => setAttributes({ focalPoint: { ...focalPoint, point: (v !== null && v !== void 0 ? v : 'center center') } }) }) }), _jsx(BaseControl, { label: __('Focal point (mobil)', 'brilo-blocks'), children: _jsx(AlignmentMatrixControl, { value: ((_e = (_a = focalPoint.sm) === null || _a === void 0 ? void 0 : _a.point) !== null && _e !== void 0 ? _e : 'center center'), onChange: (v) => setAttributes({ focalPoint: { ...focalPoint, sm: { point: (v !== null && v !== void 0 ? v : 'center center') } } }) }) })] }), _jsxs(PanelBody, { title: __('Overline', 'brilo-blocks'), children: [_jsx(BaseControl, { label: __('Barva overline pozadí', 'brilo-blocks'), children: _jsx(ColorPalette, { colors: paletteColors, value: overline.background || undefined, onChange: (value) => setAttributes({ overline: { ...overline, background: value !== null && value !== void 0 ? value : '' } }) }) }), _jsx(BaseControl, { label: __('Barva overline textu', 'brilo-blocks'), children: _jsx(ColorPalette, { colors: paletteColors, value: overline.color || undefined, onChange: (value) => setAttributes({ overline: { ...overline, color: value !== null && value !== void 0 ? value : '' } }) }) })] }), _jsxs(PanelBody, { title: __('Nadpis', 'brilo-blocks'), children: [_jsx(BaseControl, { label: __('Barva nadpisu', 'brilo-blocks'), children: _jsx(ColorPalette, { colors: paletteColors, value: titleColor || undefined, onChange: (v) => setAttributes({ titleColor: v !== null && v !== void 0 ? v : '' }) }) }), _jsx(ToggleGroupControl, { isBlock: true, label: __('Úroveň nadpisu položek', 'brilo-blocks'), value: String(headingLevel), onChange: (v) => setAttributes({ headingLevel: Number(v !== null && v !== void 0 ? v : HEADING_LEVELS[1]) }), children: HEADING_LEVELS.map((l) => (_jsx(ToggleGroupControlOption, { value: String(l), label: `H${l}` }, l))) })] }), _jsx(PanelBody, { title: __('Rozložení', 'brilo-blocks'), children: _jsx(BaseControl, { label: __('Pozice obsahu', 'brilo-blocks'), children: _jsx(AlignmentMatrixControl, { value: contentPosition, onChange: (v) => setAttributes({ contentPosition: v }) }) }) }), _jsxs(PanelBody, { title: __('Odkaz', 'brilo-blocks'), children: [_jsx(TextControl, { label: __('URL odkazu', 'brilo-blocks'), value: url.src, onChange: (v) => setAttributes({ url: { ...url, src: v } }) }), _jsx(ToggleControl, { label: __('Otevřít v novém okně', 'brilo-blocks'), checked: url.blank, onChange: (v) => setAttributes({ url: { ...url, blank: v } }) })] }), (_b = options.extraControls) === null || _b === void 0 ? void 0 : _b.call(options, props)] }), _jsxs("div", { ...blockProps, children: [_jsx("div", { className: "i-hero__image-wrap", children: _jsx(ImagePickerBody, { value: { id: img.id, alt: img.alt }, onChange: (v) => setAttributes({ img: { ...img, ...v } }), placeholder: __('Vyberte obrázek', 'brilo-blocks') }) }), _jsxs("div", { className: `i-hero__overlay --${contentPosition.replace(' ', '-')}`, children: [_jsx(RichText, { tagName: "span", className: "i-hero__overline u-text-editable", style: overline.color || overline.background
25
+ return (_jsxs(_Fragment, { children: [_jsxs(InspectorControls, { children: [_jsxs(PanelBody, { title: __('Obrázek', 'brilo-blocks'), children: [_jsx(ImagePickerControl, { value: { id: img.id, alt: img.alt }, onChange: (v) => setAttributes({ img: { ...img, ...v } }) }), _jsx(BaseControl, { label: __('Focal point (desktop)', 'brilo-blocks'), children: _jsx(AlignmentMatrixControl, { value: focalPoint.point, onChange: (v) => setAttributes({ focalPoint: { ...focalPoint, point: (v !== null && v !== void 0 ? v : 'center center') } }) }) }), _jsx(BaseControl, { label: __('Focal point (mobil)', 'brilo-blocks'), children: _jsx(AlignmentMatrixControl, { value: (_e = (_a = focalPoint.sm) === null || _a === void 0 ? void 0 : _a.point) !== null && _e !== void 0 ? _e : 'center center', onChange: (v) => setAttributes({ focalPoint: { ...focalPoint, sm: { point: (v !== null && v !== void 0 ? v : 'center center') } } }) }) })] }), _jsxs(PanelBody, { title: __('Overline', 'brilo-blocks'), children: [_jsx(BaseControl, { label: __('Barva overline pozadí', 'brilo-blocks'), children: _jsx(ColorPalette, { colors: paletteColors, value: overline.background || undefined, onChange: (value) => setAttributes({ overline: { ...overline, background: value !== null && value !== void 0 ? value : '' } }) }) }), _jsx(BaseControl, { label: __('Barva overline textu', 'brilo-blocks'), children: _jsx(ColorPalette, { colors: paletteColors, value: overline.color || undefined, onChange: (value) => setAttributes({ overline: { ...overline, color: value !== null && value !== void 0 ? value : '' } }) }) })] }), _jsxs(PanelBody, { title: __('Nadpis', 'brilo-blocks'), children: [_jsx(BaseControl, { label: __('Barva nadpisu', 'brilo-blocks'), children: _jsx(ColorPalette, { colors: paletteColors, value: titleColor || undefined, onChange: (v) => setAttributes({ titleColor: v !== null && v !== void 0 ? v : '' }) }) }), _jsx(ToggleGroupControl, { isBlock: true, label: __('Úroveň nadpisu položek', 'brilo-blocks'), value: String(headingLevel), onChange: (v) => setAttributes({ headingLevel: Number(v !== null && v !== void 0 ? v : HEADING_LEVELS[1]) }), children: HEADING_LEVELS.map((l) => (_jsx(ToggleGroupControlOption, { value: String(l), label: `H${l}` }, l))) })] }), _jsx(PanelBody, { title: __('Rozložení', 'brilo-blocks'), children: _jsx(BaseControl, { label: __('Pozice obsahu', 'brilo-blocks'), children: _jsx(AlignmentMatrixControl, { value: contentPosition, onChange: (v) => setAttributes({ contentPosition: v }) }) }) }), _jsxs(PanelBody, { title: __('Odkaz', 'brilo-blocks'), children: [_jsx(TextControl, { label: __('URL odkazu', 'brilo-blocks'), value: url.src, onChange: (v) => setAttributes({ url: { ...url, src: v } }) }), _jsx(ToggleControl, { label: __('Otevřít v novém okně', 'brilo-blocks'), checked: url.blank, onChange: (v) => setAttributes({ url: { ...url, blank: v } }) })] }), (_b = options.extraControls) === null || _b === void 0 ? void 0 : _b.call(options, props)] }), _jsxs("div", { ...blockProps, children: [_jsx("div", { className: "i-hero__image-wrap", children: _jsx(ImagePickerBody, { value: { id: img.id, alt: img.alt }, onChange: (v) => setAttributes({ img: { ...img, ...v } }), placeholder: __('Vyberte obrázek', 'brilo-blocks') }) }), _jsxs("div", { className: `i-hero__overlay --${contentPosition.replace(' ', '-')}`, children: [_jsx(RichText, { tagName: "span", className: "i-hero__overline u-text-editable", style: overline.color || overline.background
26
26
  ? {
27
27
  ...(overline.color ? { color: overline.color } : {}),
28
28
  ...(overline.background ? { backgroundColor: overline.background } : {}),
@@ -2,5 +2,5 @@ export { createHeroItemBlock } from './factory';
2
2
  export const heroItemDefaults = {
3
3
  name: 'brilo/hero-item',
4
4
  parent: ['brilo/hero-group'],
5
- allowedBlocks: ['core/list', 'core/paragraph', 'brilo/button-group'],
5
+ allowedBlocks: ['core/list', 'core/paragraph', 'brilo/button-group', 'brilo/review-summary-item'],
6
6
  };
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- export const icon = (_jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("rect", { x: "1.5", y: "1.5", width: "17", height: "17", rx: "2", stroke: "black", fill: "none" }) }));
2
+ export const icon = (_jsx("svg", { "aria-hidden": "true", focusable: "false", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("rect", { x: "1.5", y: "1.5", width: "17", height: "17", rx: "2", stroke: "black", fill: "none" }) }));
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { AsideOptions } from './types';
3
- export declare function createAsideEdit(options: AsideOptions): () => React.JSX.Element;
2
+ export declare function createAsideEdit(_options: AsideOptions): () => import("react").JSX.Element;
4
3
  //# sourceMappingURL=edit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-aside/edit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAkB,YAAY,EAAC,MAAM,SAAS,CAAA;AAE1D,wBAAgB,eAAe,CAAC,OAAO,EAAE,YAAY,2BAepD"}
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-aside/edit.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,SAAS,CAAA;AAEzC,wBAAgB,eAAe,CAAC,QAAQ,EAAE,YAAY,qCAerD"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useGroupBlock } from '../../../hooks/useGroupBlock';
3
- export function createAsideEdit(options) {
3
+ export function createAsideEdit(_options) {
4
4
  return function Edit() {
5
5
  const { blockProps, innerBlocksProps } = useGroupBlock({
6
6
  blockClassName: 'l-content-w-aside__aside',
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-aside/factory.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAKzD,OAAO,KAAK,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,SAAS,CAAA;AAE1D,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,YAAY,GAAG,kBAAkB,CAAC,eAAe,CAAC,CAa3F"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-aside/factory.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAIzD,OAAO,KAAK,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,SAAS,CAAA;AAE1D,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,YAAY,GAAG,kBAAkB,CAAC,eAAe,CAAC,CAa3F"}
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- export declare const icon: React.JSX.Element;
1
+ export declare const icon: import("react").JSX.Element;
3
2
  //# sourceMappingURL=icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-aside/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,IAAI,mBAIhB,CAAA"}
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-aside/icon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,6BAIhB,CAAA"}
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- export const icon = (_jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 4H20V20H8V4ZM10 6H18V18H10V6Z", fill: "currentColor" }) }));
2
+ export const icon = (_jsx("svg", { "aria-hidden": "true", focusable: "false", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 4H20V20H8V4ZM10 6H18V18H10V6Z", fill: "currentColor" }) }));
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { ContentOptions } from './types';
3
- export declare function createContentEdit(options: ContentOptions): () => React.JSX.Element;
2
+ export declare function createContentEdit(_options: ContentOptions): () => import("react").JSX.Element;
4
3
  //# sourceMappingURL=edit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content/edit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAoB,cAAc,EAAC,MAAM,SAAS,CAAA;AAE9D,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,cAAc,2BAexD"}
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content/edit.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAE3C,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,cAAc,qCAezD"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useGroupBlock } from '../../../hooks/useGroupBlock';
3
- export function createContentEdit(options) {
3
+ export function createContentEdit(_options) {
4
4
  return function Edit() {
5
5
  const { blockProps, innerBlocksProps } = useGroupBlock({
6
6
  blockClassName: 'l-content-w-aside__content',
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content/factory.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAKzD,OAAO,KAAK,EAAC,iBAAiB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAA;AAE9D,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAajG"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content/factory.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAIzD,OAAO,KAAK,EAAC,iBAAiB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAA;AAE9D,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAajG"}
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- export declare const icon: React.JSX.Element;
1
+ export declare const icon: import("react").JSX.Element;
3
2
  //# sourceMappingURL=icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,IAAI,mBAIhB,CAAA"}
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content/icon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,6BAIhB,CAAA"}
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- export const icon = (_jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 4H16V20H4V4ZM6 6H14V18H6V6Z", fill: "currentColor" }) }));
2
+ export const icon = (_jsx("svg", { "aria-hidden": "true", focusable: "false", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 4H16V20H4V4ZM6 6H14V18H6V6Z", fill: "currentColor" }) }));
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import type { ContentWithAsideAttributes, ContentWithAsideOptions } from './types';
3
2
  export declare function createContentWithAsideEdit(options: ContentWithAsideOptions): ({ attributes, setAttributes, }: {
4
3
  attributes: ContentWithAsideAttributes;
5
4
  setAttributes: (a: Partial<ContentWithAsideAttributes>) => void;
6
- }) => React.JSX.Element;
5
+ }) => import("react").JSX.Element;
7
6
  //# sourceMappingURL=edit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content-w-aside/edit.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAY,0BAA0B,EAAE,uBAAuB,EAAC,MAAM,SAAS,CAAA;AAE3F,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,uBAAuB,oCAMtE;IACD,UAAU,EAAE,0BAA0B,CAAA;IACtC,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,0BAA0B,CAAC,KAAK,IAAI,CAAA;CAChE,uBAkCF"}
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content-w-aside/edit.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAY,0BAA0B,EAAE,uBAAuB,EAAC,MAAM,SAAS,CAAA;AAE3F,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,uBAAuB,oCAMtE;IACD,UAAU,EAAE,0BAA0B,CAAA;IACtC,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,0BAA0B,CAAC,KAAK,IAAI,CAAA;CAChE,iCAkCF"}
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content-w-aside/factory.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAGzD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAA;AAGvC,OAAO,KAAK,EAAC,0BAA0B,EAAE,uBAAuB,EAAC,MAAM,SAAS,CAAA;AAEhF,wBAAgB,2BAA2B,CAAC,WAAW,SAAS,WAAW,GAAG,OAAO,WAAW,EAC9F,OAAO,EAAE,uBAAuB,CAAC,WAAW,CAAC,GAC5C,kBAAkB,CAAC,0BAA0B,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAmB9E"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content-w-aside/factory.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAEzD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAA;AAGvC,OAAO,KAAK,EAAC,0BAA0B,EAAE,uBAAuB,EAAC,MAAM,SAAS,CAAA;AAEhF,wBAAgB,2BAA2B,CAAC,WAAW,SAAS,WAAW,GAAG,OAAO,WAAW,EAC9F,OAAO,EAAE,uBAAuB,CAAC,WAAW,CAAC,GAC5C,kBAAkB,CAAC,0BAA0B,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAmB9E"}
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- export declare const icon: React.JSX.Element;
1
+ export declare const icon: import("react").JSX.Element;
3
2
  //# sourceMappingURL=icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content-w-aside/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,IAAI,mBAIhB,CAAA"}
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/blocks/layout/layout-content-w-aside/icon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,6BAIhB,CAAA"}
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- export const icon = (_jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 4H20V20H4V4ZM6 6H13V18H6V6ZM15 6H18V18H15V6Z", fill: "currentColor" }) }));
2
+ export const icon = (_jsx("svg", { "aria-hidden": "true", focusable: "false", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 4H20V20H4V4ZM6 6H13V18H6V6ZM15 6H18V18H15V6Z", fill: "currentColor" }) }));
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export const icon = (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M8 4H4C2.895 4 2 4.895 2 6v10c0 1.105.895 2 2 2h10c1.105 0 2-.895 2-2v-4", stroke: "black", strokeWidth: "1.5", fill: "none" }), _jsx("path", { d: "M12 2h6v6M18 2L10 10", stroke: "black", strokeWidth: "1.5", strokeLinecap: "round" })] }));
2
+ export const icon = (_jsxs("svg", { "aria-hidden": "true", focusable: "false", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M8 4H4C2.895 4 2 4.895 2 6v10c0 1.105.895 2 2 2h10c1.105 0 2-.895 2-2v-4", stroke: "black", strokeWidth: "1.5", fill: "none" }), _jsx("path", { d: "M12 2h6v6M18 2L10 10", stroke: "black", strokeWidth: "1.5", strokeLinecap: "round" })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/map/map-group/edit.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAC,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAA;AAOhE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,eAAe,oCAItD;IACD,UAAU,EAAE,kBAAkB,CAAA;IAC9B,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAA;CACxD,iCAsJF"}
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/map/map-group/edit.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAC,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAA;AAOhE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,eAAe,oCAItD;IACD,UAAU,EAAE,kBAAkB,CAAA;IAC9B,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAA;CACxD,iCA2JF"}
@@ -20,7 +20,7 @@ export function createMapGroupEdit(options) {
20
20
  template: options.template,
21
21
  layout: { type: 'default' },
22
22
  });
23
- return (_jsxs(_Fragment, { children: [_jsxs(InspectorControls, { children: [_jsxs(PanelBody, { title: __('Nadpis', 'brilo-blocks'), initialOpen: false, children: [_jsx(ToggleGroupControl, { label: __('Úroveň nadpisu', 'brilo-blocks'), value: String(header.heading.level), onChange: (value) => setAttributes({ header: { ...header, heading: { ...header.heading, level: Number(value) } } }), isBlock: true, children: HEADING_LEVELS.map((l) => (_jsx(ToggleGroupControlOption, { value: String(l), label: `H${l}` }, l))) }), _jsx(ToggleGroupControl, { label: __('Styl nadpisu', 'brilo-blocks'), value: header.heading.style, onChange: (value) => setAttributes({ header: { ...header, heading: { ...header.heading, style: value } } }), isBlock: true, children: HEADING_STYLES.map((s) => (_jsx(ToggleGroupControlOption, { value: s, label: s }, s))) })] }), _jsxs(PanelBody, { title: __('Nastavení mapy', 'brilo-blocks'), children: [_jsx(SelectControl, { label: __('Typ mapy', 'brilo-blocks'), value: mapType, options: [...MAP_TYPES], onChange: (v) => setAttributes({ mapType: v }) }), mapType === 'gps' && (_jsxs(BaseControl, { label: __('GPS', 'brilo-blocks'), children: [_jsx(TextControl, { label: __('Zeměpisná šířka:', 'brilo-blocks'), value: lat || '', onChange: (value) => setAttributes({ lat: value }) }), _jsx(TextControl, { label: __('Zeměpisná délka:', 'brilo-blocks'), value: long || '', onChange: (value) => setAttributes({ long: value }) })] })), mapType === 'url' && (_jsx(BaseControl, { label: __('Iframe', 'brilo-blocks'), children: _jsx(TextControl, { label: __('URL:', 'brilo-blocks'), value: iframeSrc || '', onChange: (value) => setAttributes({ iframeSrc: value }) }) })), mapType === 'element' && (_jsx(BaseControl, { label: __('Iframe', 'brilo-blocks'), children: _jsx(TextareaControl, { label: __('Zdrojový kód:', 'brilo-blocks'), value: iframeElement || '', onChange: (value) => setAttributes({ iframeElement: value }) }) })), mapType === 'image' && (_jsxs(_Fragment, { children: [_jsx(ImagePickerControl, { value: img, onChange: (v) => setAttributes({ img: v }) }), _jsx(TextControl, { label: __('URL:', 'brilo-blocks'), value: url || '', onChange: (value) => setAttributes({ url: value }) }), _jsx(TextControl, { label: __('Adresa:', 'brilo-blocks'), value: address || '', onChange: (value) => setAttributes({ address: value }) })] }))] })] }), _jsxs("div", { ...blockProps, children: [_jsxs("div", { className: "g-map__banner", children: [_jsxs("div", { className: "g-map__content", children: [_jsx(RichText, { tagName: `h${header.heading.level}`, className: clsx('g-map__heading', `--heading-style-${header.heading.style}`, 'u-text-editable'), value: header.heading.title, onChange: (value) => setAttributes({ header: { ...header, heading: { ...header.heading, title: value } } }), placeholder: __('Nadpis...', 'brilo-blocks'), allowedFormats: ['core/bold', 'core/italic'] }), _jsx(RichText, { tagName: "div", className: "g-map__description u-text-editable", value: description, onChange: (value) => setAttributes({ description: value }), placeholder: __('Popis...', 'brilo-blocks') })] }), _jsx("div", { ...innerBlocksProps })] }), _jsxs("div", { className: "g-map__map", children: [mapType === 'gps' && (lat || long) && (_jsxs("div", { children: [_jsx(Icon, { icon: mapMarker }), _jsx("p", { children: [lat, long].filter(Boolean).join(', ') })] })), mapType === 'url' && iframeSrc && _jsx("iframe", { src: iframeSrc, width: 640, height: 320 }), mapType === 'element' && iframeElement && _jsx("div", { dangerouslySetInnerHTML: { __html: iframeElement } }), mapType === 'image' && img && _jsx(ImagePickerControl, { value: img, onChange: (v) => setAttributes({ img: v }), size: [640, 320] }), (!mapType ||
23
+ return (_jsxs(_Fragment, { children: [_jsxs(InspectorControls, { children: [_jsxs(PanelBody, { title: __('Nadpis', 'brilo-blocks'), initialOpen: false, children: [_jsx(ToggleGroupControl, { label: __('Úroveň nadpisu', 'brilo-blocks'), value: String(header.heading.level), onChange: (value) => setAttributes({ header: { ...header, heading: { ...header.heading, level: Number(value) } } }), isBlock: true, children: HEADING_LEVELS.map((l) => (_jsx(ToggleGroupControlOption, { value: String(l), label: `H${l}` }, l))) }), _jsx(ToggleGroupControl, { label: __('Styl nadpisu', 'brilo-blocks'), value: header.heading.style, onChange: (value) => setAttributes({ header: { ...header, heading: { ...header.heading, style: value } } }), isBlock: true, children: HEADING_STYLES.map((s) => (_jsx(ToggleGroupControlOption, { value: s, label: s }, s))) })] }), _jsxs(PanelBody, { title: __('Nastavení mapy', 'brilo-blocks'), children: [_jsx(SelectControl, { label: __('Typ mapy', 'brilo-blocks'), value: mapType, options: [...MAP_TYPES], onChange: (v) => setAttributes({ mapType: v }) }), mapType === 'gps' && (_jsxs(BaseControl, { label: __('GPS', 'brilo-blocks'), children: [_jsx(TextControl, { label: __('Zeměpisná šířka:', 'brilo-blocks'), value: lat || '', onChange: (value) => setAttributes({ lat: value }) }), _jsx(TextControl, { label: __('Zeměpisná délka:', 'brilo-blocks'), value: long || '', onChange: (value) => setAttributes({ long: value }) })] })), mapType === 'url' && (_jsx(BaseControl, { label: __('Iframe', 'brilo-blocks'), children: _jsx(TextControl, { label: __('URL:', 'brilo-blocks'), value: iframeSrc || '', onChange: (value) => setAttributes({ iframeSrc: value }) }) })), mapType === 'element' && (_jsx(BaseControl, { label: __('Iframe', 'brilo-blocks'), children: _jsx(TextareaControl, { label: __('Zdrojový kód:', 'brilo-blocks'), value: iframeElement || '', onChange: (value) => setAttributes({ iframeElement: value }) }) })), mapType === 'image' && (_jsxs(_Fragment, { children: [_jsx(ImagePickerControl, { value: img, onChange: (v) => setAttributes({ img: v }) }), _jsx(TextControl, { label: __('URL:', 'brilo-blocks'), value: url || '', onChange: (value) => setAttributes({ url: value }) }), _jsx(TextControl, { label: __('Adresa:', 'brilo-blocks'), value: address || '', onChange: (value) => setAttributes({ address: value }) })] }))] })] }), _jsxs("div", { ...blockProps, children: [_jsxs("div", { className: "g-map__banner", children: [_jsxs("div", { className: "g-map__content", children: [_jsx(RichText, { tagName: `h${header.heading.level}`, className: clsx('g-map__heading', `--heading-style-${header.heading.style}`, 'u-text-editable'), value: header.heading.title, onChange: (value) => setAttributes({ header: { ...header, heading: { ...header.heading, title: value } } }), placeholder: __('Nadpis...', 'brilo-blocks'), allowedFormats: ['core/bold', 'core/italic'] }), _jsx(RichText, { tagName: "div", className: "g-map__description u-text-editable", value: description, onChange: (value) => setAttributes({ description: value }), placeholder: __('Popis...', 'brilo-blocks') })] }), _jsx("div", { ...innerBlocksProps })] }), _jsxs("div", { className: "g-map__map", children: [mapType === 'gps' && (lat || long) && (_jsxs("div", { children: [_jsx(Icon, { icon: mapMarker }), _jsx("p", { children: [lat, long].filter(Boolean).join(', ') })] })), mapType === 'url' && iframeSrc && (_jsx("iframe", { src: iframeSrc, title: __('Náhled mapy', 'brilo-blocks'), width: 640, height: 320 })), mapType === 'element' && iframeElement && (_jsx("div", { dangerouslySetInnerHTML: { __html: iframeElement } })), mapType === 'image' && img && _jsx(ImagePickerControl, { value: img, onChange: (v) => setAttributes({ img: v }), size: [640, 320] }), (!mapType ||
24
24
  (mapType === 'gps' && !lat && !long) ||
25
25
  (mapType === 'url' && !iframeSrc) ||
26
26
  (mapType === 'element' && !iframeElement) ||
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/map/map-group/factory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAIzD,OAAO,KAAK,EAAC,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAA;AAEhE,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;AACxC,OAAO,EAAC,sBAAsB,EAAmB,MAAM,wCAAwC,CAAA;AAI/F,YAAY,EAAC,kBAAkB,EAAE,eAAe,EAAC,CAAA;AAEjD,wBAAgB,mBAAmB,CAAC,cAAc,SAAS,WAAW,GAAG,OAAO,sBAAsB,EACpG,OAAO,EAAE,eAAe,CAAC,cAAc,CAAC,GACvC,kBAAkB,CAAC,kBAAkB,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CA0DhE"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/map/map-group/factory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAIzD,OAAO,KAAK,EAAC,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAA;AAEhE,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;AACxC,OAAO,EAAC,sBAAsB,EAAC,MAAM,wCAAwC,CAAA;AAI7E,YAAY,EAAC,kBAAkB,EAAE,eAAe,EAAC,CAAA;AAEjD,wBAAgB,mBAAmB,CAAC,cAAc,SAAS,WAAW,GAAG,OAAO,sBAAsB,EACpG,OAAO,EAAE,eAAe,CAAC,cAAc,CAAC,GACvC,kBAAkB,CAAC,kBAAkB,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CA0DhE"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/blocks/map/map-group/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAE,KAAK,EAAe,WAAW,EAAC,MAAM,SAAS,CAAA;AAC5E,OAAO,KAAK,EAAC,sBAAsB,EAAE,SAAS,EAAC,MAAM,aAAa,CAAA;AAClE,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAA;AAE/C,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAEzD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;AAC3D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEnE,MAAM,WAAW,kBAAkB,CAAC,aAAa,SAAS,MAAM,GAAG,aAAa,CAAE,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC/G,MAAM,EAAE;QACN,OAAO,EAAE;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,aAAa,CAAC;YAAC,KAAK,EAAE,aAAa,CAAA;SAAC,CAAA;KACrE,CAAA;IACD,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,GAAG,EAAE,KAAK,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,eAAe,CAAC,cAAc,SAAS,WAAW,GAAG,OAAO,sBAAsB,CAAE,SAAQ,cAAc;IACzH,aAAa,CAAC,EAAE,cAAc,CAAA;IAC9B,aAAa,CAAC,EAAE,aAAa,CAAA;CAC9B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/blocks/map/map-group/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAE,KAAK,EAAE,WAAW,EAAC,MAAM,SAAS,CAAA;AAC/D,OAAO,KAAK,EAAC,sBAAsB,EAAE,SAAS,EAAC,MAAM,aAAa,CAAA;AAClE,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAA;AAE/C,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAEzD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;AAC3D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEnE,MAAM,WAAW,kBAAkB,CAAC,aAAa,SAAS,MAAM,GAAG,aAAa,CAAE,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC/G,MAAM,EAAE;QACN,OAAO,EAAE;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,aAAa,CAAC;YAAC,KAAK,EAAE,aAAa,CAAA;SAAC,CAAA;KACrE,CAAA;IACD,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,GAAG,EAAE,KAAK,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,eAAe,CAAC,cAAc,SAAS,WAAW,GAAG,OAAO,sBAAsB,CAAE,SAAQ,cAAc;IACzH,aAAa,CAAC,EAAE,cAAc,CAAA;IAC9B,aAAa,CAAC,EAAE,aAAa,CAAA;CAC9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/newsletter/newsletter-form/edit.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAA+B,wBAAwB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;AAE1G,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,qBAAqB,oCAMlE;IACD,UAAU,EAAE,wBAAwB,CAAA;IACpC,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,KAAK,IAAI,CAAA;CAC9D,iCAwKF"}
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/newsletter/newsletter-form/edit.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAA+B,wBAAwB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;AAE1G,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,qBAAqB,oCAMlE;IACD,UAAU,EAAE,wBAAwB,CAAA;IACpC,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,KAAK,IAAI,CAAA;CAC9D,iCA2KF"}
@@ -11,6 +11,7 @@ export function createNewsletterFormEdit(options) {
11
11
  return function Edit({ attributes, setAttributes, }) {
12
12
  const { heading, description, form } = attributes;
13
13
  const { email, submit, terms } = form.fields;
14
+ const TermsTag = terms.isCheckbox ? 'label' : 'div';
14
15
  const setForm = (patch) => setAttributes({ form: { ...form, ...patch } });
15
16
  const setFields = (patch) => setForm({ fields: { ...form.fields, ...patch } });
16
17
  const blockProps = useBlockProps({ className: 'f-newsletter' });
@@ -18,6 +19,6 @@ export function createNewsletterFormEdit(options) {
18
19
  return (_jsxs(_Fragment, { children: [_jsxs(InspectorControls, { children: [_jsxs(PanelBody, { title: __('Nadpis', 'brilo-blocks'), children: [_jsx(ToggleGroupControl, { label: __('Úroveň nadpisu', 'brilo-blocks'), value: String(heading.level), onChange: (v) => setAttributes({ heading: { ...heading, level: Number(v) } }), isBlock: true, children: NEWSLETTER_LEVELS.map((l) => (_jsx(ToggleGroupControlOption, { value: String(l), label: `H${l}` }, l))) }), _jsx(ToggleGroupControl, { label: __('Styl nadpisu', 'brilo-blocks'), value: heading.style, onChange: (v) => setAttributes({ heading: { ...heading, style: v } }), isBlock: true, children: HEADING_STYLES.map((s) => (_jsx(ToggleGroupControlOption, { value: s, label: s }, s))) })] }), _jsxs(PanelBody, { title: __('Formulář', 'brilo-blocks'), initialOpen: false, children: [_jsx(TextControl, { label: __('ID formuláře', 'brilo-blocks'), value: form.id, onChange: (v) => setForm({ id: v }) }), _jsx(TextControl, { label: __('Akce (URL)', 'brilo-blocks'), value: form.action, onChange: (v) => setForm({ action: v }) }), _jsx(SelectControl, { label: __('Metoda', 'brilo-blocks'), value: form.method, options: [
19
20
  { value: 'post', label: 'POST' },
20
21
  { value: 'get', label: 'GET' },
21
- ], onChange: (v) => setForm({ method: v }) }), _jsx(TextControl, { label: __('Název formuláře', 'brilo-blocks'), value: form.name, onChange: (v) => setForm({ name: v }) })] }), _jsxs(PanelBody, { title: __('Skrytá pole', 'brilo-blocks'), initialOpen: false, children: [form.hiddenFields.map((field, i) => (_jsxs("div", { className: "f-newsletter__hidden-field", children: [_jsx(TextControl, { label: __('Název', 'brilo-blocks'), value: field.name, onChange: (v) => setForm({ hiddenFields: form.hiddenFields.map((f, idx) => (idx === i ? { ...f, name: v } : f)) }) }), _jsx(TextControl, { label: __('Hodnota', 'brilo-blocks'), value: field.value, onChange: (v) => setForm({ hiddenFields: form.hiddenFields.map((f, idx) => (idx === i ? { ...f, value: v } : f)) }) }), _jsx(Button, { isDestructive: true, variant: "secondary", onClick: () => setForm({ hiddenFields: form.hiddenFields.filter((_, idx) => idx !== i) }), children: __('Odebrat', 'brilo-blocks') })] }, i))), _jsx(Button, { variant: "secondary", onClick: () => setForm({ hiddenFields: [...form.hiddenFields, { name: '', value: '' }] }), children: __('Přidat pole', 'brilo-blocks') })] }), _jsxs(PanelBody, { title: __('E-mailové pole', 'brilo-blocks'), initialOpen: false, children: [_jsx(TextControl, { label: __('Název (name)', 'brilo-blocks'), value: email.name, onChange: (v) => setFields({ email: { ...email, name: v } }) }), _jsx(TextControl, { label: __('Popisek', 'brilo-blocks'), value: email.label, onChange: (v) => setFields({ email: { ...email, label: v } }) }), _jsx(TextControl, { label: __('Placeholder', 'brilo-blocks'), value: email.placeholder, onChange: (v) => setFields({ email: { ...email, placeholder: v } }) }), _jsx(IconControl, { label: __('Ikona', 'brilo-blocks'), value: email.icon.src, icons: options.icons, iconsSrc: options.iconsSrc, onChange: (ic) => setFields({ email: { ...email, icon: { ...email.icon, type: 'preselected', src: ic.value } } }) })] }), _jsx(PanelBody, { title: __('Tlačítko', 'brilo-blocks'), initialOpen: false, children: _jsx(TextControl, { label: __('Text tlačítka', 'brilo-blocks'), value: submit.title, onChange: (v) => setFields({ submit: { ...submit, title: v } }) }) }), _jsxs(PanelBody, { title: __('Souhlas', 'brilo-blocks'), initialOpen: false, children: [_jsx(TextControl, { label: __('Název (name)', 'brilo-blocks'), value: terms.name, onChange: (v) => setFields({ terms: { ...terms, name: v } }) }), _jsx(ToggleControl, { label: __('Zobrazit jako checkbox', 'brilo-blocks'), checked: terms.isCheckbox, onChange: (v) => setFields({ terms: { ...terms, isCheckbox: v } }) })] })] }), _jsxs("div", { ...blockProps, children: [_jsx(RichText, { tagName: `h${heading.level}`, className: clsx('f-newsletter__heading', `--heading-style-${heading.style}`, 'u-text-editable'), value: heading.title, onChange: (v) => setAttributes({ heading: { ...heading, title: v } }), placeholder: __('Nadpis...', 'brilo-blocks'), allowedFormats: ['core/bold', 'core/italic'] }), _jsx(RichText, { tagName: "div", className: "f-newsletter__description u-text-editable", value: description, onChange: (v) => setAttributes({ description: v }), placeholder: __('Popis...', 'brilo-blocks') }), _jsxs("div", { className: "f-newsletter__form", "aria-hidden": "true", children: [_jsxs("div", { className: "f-newsletter__field", children: [iconUrl && _jsx("img", { src: iconUrl, alt: "", className: "f-newsletter__field-icon", width: 24, height: 24 }), _jsx("input", { type: "email", className: "f-newsletter__input", placeholder: email.placeholder, disabled: true })] }), _jsx("button", { type: "button", className: "f-newsletter__submit", disabled: true, children: submit.title || __('Odebírat', 'brilo-blocks') })] }), _jsxs("label", { className: "f-newsletter__terms", children: [terms.isCheckbox && _jsx("input", { type: "checkbox", disabled: true }), _jsx(RichText, { tagName: "span", className: "f-newsletter__terms-text u-text-editable", value: terms.title, onChange: (v) => setFields({ terms: { ...terms, title: v } }), placeholder: __('Souhlas se zpracováním...', 'brilo-blocks'), allowedFormats: ['core/bold', 'core/italic', 'core/link'] })] })] })] }));
22
+ ], onChange: (v) => setForm({ method: v }) }), _jsx(TextControl, { label: __('Název formuláře', 'brilo-blocks'), value: form.name, onChange: (v) => setForm({ name: v }) })] }), _jsxs(PanelBody, { title: __('Skrytá pole', 'brilo-blocks'), initialOpen: false, children: [form.hiddenFields.map((field, i) => (_jsxs("div", { className: "f-newsletter__hidden-field", children: [_jsx(TextControl, { label: __('Název', 'brilo-blocks'), value: field.name, onChange: (v) => setForm({ hiddenFields: form.hiddenFields.map((f, idx) => (idx === i ? { ...f, name: v } : f)) }) }), _jsx(TextControl, { label: __('Hodnota', 'brilo-blocks'), value: field.value, onChange: (v) => setForm({ hiddenFields: form.hiddenFields.map((f, idx) => (idx === i ? { ...f, value: v } : f)) }) }), _jsx(Button, { isDestructive: true, variant: "secondary", onClick: () => setForm({ hiddenFields: form.hiddenFields.filter((_, idx) => idx !== i) }), children: __('Odebrat', 'brilo-blocks') })] }, i))), _jsx(Button, { variant: "secondary", onClick: () => setForm({ hiddenFields: [...form.hiddenFields, { name: '', value: '' }] }), children: __('Přidat pole', 'brilo-blocks') })] }), _jsxs(PanelBody, { title: __('E-mailové pole', 'brilo-blocks'), initialOpen: false, children: [_jsx(TextControl, { label: __('Název (name)', 'brilo-blocks'), value: email.name, onChange: (v) => setFields({ email: { ...email, name: v } }) }), _jsx(TextControl, { label: __('Popisek', 'brilo-blocks'), value: email.label, onChange: (v) => setFields({ email: { ...email, label: v } }) }), _jsx(TextControl, { label: __('Placeholder', 'brilo-blocks'), value: email.placeholder, onChange: (v) => setFields({ email: { ...email, placeholder: v } }) }), _jsx(IconControl, { label: __('Ikona', 'brilo-blocks'), value: email.icon.src, icons: options.icons, iconsSrc: options.iconsSrc, onChange: (ic) => setFields({ email: { ...email, icon: { ...email.icon, type: 'preselected', src: ic.value } } }) })] }), _jsx(PanelBody, { title: __('Tlačítko', 'brilo-blocks'), initialOpen: false, children: _jsx(TextControl, { label: __('Text tlačítka', 'brilo-blocks'), value: submit.title, onChange: (v) => setFields({ submit: { ...submit, title: v } }) }) }), _jsxs(PanelBody, { title: __('Souhlas', 'brilo-blocks'), initialOpen: false, children: [_jsx(TextControl, { label: __('Název (name)', 'brilo-blocks'), value: terms.name, onChange: (v) => setFields({ terms: { ...terms, name: v } }) }), _jsx(ToggleControl, { label: __('Zobrazit jako checkbox', 'brilo-blocks'), checked: terms.isCheckbox, onChange: (v) => setFields({ terms: { ...terms, isCheckbox: v } }) })] })] }), _jsxs("div", { ...blockProps, children: [_jsx(RichText, { tagName: `h${heading.level}`, className: clsx('f-newsletter__heading', `--heading-style-${heading.style}`, 'u-text-editable'), value: heading.title, onChange: (v) => setAttributes({ heading: { ...heading, title: v } }), placeholder: __('Nadpis...', 'brilo-blocks'), allowedFormats: ['core/bold', 'core/italic'] }), _jsx(RichText, { tagName: "div", className: "f-newsletter__description u-text-editable", value: description, onChange: (v) => setAttributes({ description: v }), placeholder: __('Popis...', 'brilo-blocks') }), _jsxs("div", { className: "f-newsletter__form", "aria-hidden": "true", children: [_jsxs("div", { className: "f-newsletter__field", children: [iconUrl && _jsx("img", { src: iconUrl, alt: "", className: "f-newsletter__field-icon", width: 24, height: 24 }), _jsx("input", { type: "email", className: "f-newsletter__input", placeholder: email.placeholder, disabled: true })] }), _jsx("button", { type: "button", className: "f-newsletter__submit", disabled: true, children: submit.title || __('Odebírat', 'brilo-blocks') })] }), _jsxs(TermsTag, { className: "f-newsletter__terms", children: [terms.isCheckbox && _jsx("input", { type: "checkbox", disabled: true }), _jsx(RichText, { tagName: "span", className: "f-newsletter__terms-text u-text-editable", value: terms.title, onChange: (v) => setFields({ terms: { ...terms, title: v } }), placeholder: __('Souhlas se zpracováním...', 'brilo-blocks'), allowedFormats: ['core/bold', 'core/italic', 'core/link'] })] })] })] }));
22
23
  };
23
24
  }
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export const icon = (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "2.5", y: "1.5", width: "15", height: "17", stroke: "black", fill: "none" }), _jsx("path", { d: "M7 13H13V14H7V13Z", fill: "black" }), _jsx("path", { d: "M6 15H14V16H6V15Z", fill: "black" }), _jsx("path", { d: "M8 6C8 4.89543 8.89543 4 10 4C11.1046 4 12 4.89543 12 6C12 7.10457 11.1046 8 10 8C8.89543 8 8 7.10457 8 6Z", fill: "#357AB5" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.99664 11H13.0009C12.9997 9.34295 11.6561 8 9.99875 8C8.34144 8 6.99778 9.34295 6.99664 11Z", fill: "#357AB5" })] }));
2
+ export const icon = (_jsxs("svg", { "aria-hidden": "true", focusable: "false", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "2.5", y: "1.5", width: "15", height: "17", stroke: "black", fill: "none" }), _jsx("path", { d: "M7 13H13V14H7V13Z", fill: "black" }), _jsx("path", { d: "M6 15H14V16H6V15Z", fill: "black" }), _jsx("path", { d: "M8 6C8 4.89543 8.89543 4 10 4C11.1046 4 12 4.89543 12 6C12 7.10457 11.1046 8 10 8C8.89543 8 8 7.10457 8 6Z", fill: "#357AB5" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.99664 11H13.0009C12.9997 9.34295 11.6561 8 9.99875 8C8.34144 8 6.99778 9.34295 6.99664 11Z", fill: "#357AB5" })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/blocks/person/person-item/constants.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/blocks/person/person-item/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA"}
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export const icon = (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "3", y: "2", width: "14", height: "16", rx: "1", stroke: "black", fill: "none" }), _jsx("line", { x1: "6", y1: "6", x2: "14", y2: "6", stroke: "black" }), _jsx("line", { x1: "6", y1: "9", x2: "14", y2: "9", stroke: "black" }), _jsx("line", { x1: "6", y1: "12", x2: "14", y2: "12", stroke: "black" }), _jsx("line", { x1: "6", y1: "15", x2: "10", y2: "15", stroke: "black" })] }));
2
+ export const icon = (_jsxs("svg", { "aria-hidden": "true", focusable: "false", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "3", y: "2", width: "14", height: "16", rx: "1", stroke: "black", fill: "none" }), _jsx("line", { x1: "6", y1: "6", x2: "14", y2: "6", stroke: "black" }), _jsx("line", { x1: "6", y1: "9", x2: "14", y2: "9", stroke: "black" }), _jsx("line", { x1: "6", y1: "12", x2: "14", y2: "12", stroke: "black" }), _jsx("line", { x1: "6", y1: "15", x2: "10", y2: "15", stroke: "black" })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/blocks/post/post-content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAG3C,MAAM,WAAW,qBAAsB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAAG;AAEzE,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/blocks/post/post-content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAE3C,MAAM,WAAW,qBAAsB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAAG;AAEzE,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAA"}
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export const icon = (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "1", y: "4", width: "18", height: "12", rx: "1", stroke: "black", fill: "none" }), _jsx("rect", { x: "3", y: "6", width: "6", height: "5", stroke: "black", fill: "none" }), _jsx("path", { d: "M3 13H7V14H3V13Z", fill: "black" }), _jsx("path", { d: "M3 15H9V16H3V15Z", fill: "black" }), _jsx("path", { d: "M11 8H17V9H11V8Z", fill: "black" }), _jsx("path", { d: "M11 11H17V12H11V11Z", fill: "black" }), _jsx("path", { d: "M11 14H15V15H11V14Z", fill: "black" }), _jsx("circle", { cx: "17.5", cy: "10", r: "1", fill: "#357AB5" }), _jsx("circle", { cx: "2.5", cy: "10", r: "1", fill: "#357AB5" })] }));
2
+ export const icon = (_jsxs("svg", { "aria-hidden": "true", focusable: "false", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "1", y: "4", width: "18", height: "12", rx: "1", stroke: "black", fill: "none" }), _jsx("rect", { x: "3", y: "6", width: "6", height: "5", stroke: "black", fill: "none" }), _jsx("path", { d: "M3 13H7V14H3V13Z", fill: "black" }), _jsx("path", { d: "M3 15H9V16H3V15Z", fill: "black" }), _jsx("path", { d: "M11 8H17V9H11V8Z", fill: "black" }), _jsx("path", { d: "M11 11H17V12H11V11Z", fill: "black" }), _jsx("path", { d: "M11 14H15V15H11V14Z", fill: "black" }), _jsx("circle", { cx: "17.5", cy: "10", r: "1", fill: "#357AB5" }), _jsx("circle", { cx: "2.5", cy: "10", r: "1", fill: "#357AB5" })] }));
@@ -1,2 +1,2 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export const icon = (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "1", y: "1", width: "8", height: "8", stroke: "black", fill: "none" }), _jsx("rect", { x: "11", y: "1", width: "8", height: "8", stroke: "black", fill: "none" }), _jsx("rect", { x: "1", y: "11", width: "8", height: "8", stroke: "black", fill: "none" }), _jsx("rect", { x: "11", y: "11", width: "8", height: "8", stroke: "black", fill: "none" })] }));
2
+ export const icon = (_jsxs("svg", { "aria-hidden": "true", focusable: "false", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { x: "1", y: "1", width: "8", height: "8", stroke: "black", fill: "none" }), _jsx("rect", { x: "11", y: "1", width: "8", height: "8", stroke: "black", fill: "none" }), _jsx("rect", { x: "1", y: "11", width: "8", height: "8", stroke: "black", fill: "none" }), _jsx("rect", { x: "11", y: "11", width: "8", height: "8", stroke: "black", fill: "none" })] }));
@@ -0,0 +1,3 @@
1
+ export declare const RATING_MAX = 5;
2
+ export declare const RATING_STEP = 0.1;
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/blocks/review/review-summary-item/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,IAAI,CAAA;AAC3B,eAAO,MAAM,WAAW,MAAM,CAAA"}
@@ -0,0 +1,2 @@
1
+ export const RATING_MAX = 5;
2
+ export const RATING_STEP = 0.1;
@@ -0,0 +1,6 @@
1
+ import type { ReviewSummaryItemAttributes, ReviewSummaryItemOptions } from './types';
2
+ export declare function createReviewSummaryItemEdit(options: ReviewSummaryItemOptions): ({ attributes, setAttributes, }: {
3
+ attributes: ReviewSummaryItemAttributes;
4
+ setAttributes: (a: Partial<ReviewSummaryItemAttributes>) => void;
5
+ }) => import("react").JSX.Element;
6
+ //# sourceMappingURL=edit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../../src/blocks/review/review-summary-item/edit.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,2BAA2B,EAAE,wBAAwB,EAAC,MAAM,SAAS,CAAA;AAIlF,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,wBAAwB,oCAIxE;IACD,UAAU,EAAE,2BAA2B,CAAA;IACvC,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,KAAK,IAAI,CAAA;CACjE,iCAoEF"}
@@ -0,0 +1,17 @@
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { InspectorControls, RichText, useBlockProps } from '@wordpress/block-editor';
3
+ import { PanelBody, RangeControl, TextControl, ToggleControl } from '@wordpress/components';
4
+ import { __ } from '@wordpress/i18n';
5
+ import clsx from 'clsx';
6
+ import { RATING_MAX, RATING_STEP } from './constants';
7
+ const roundToHalf = (value) => Math.round(value * 2) / 2;
8
+ export function createReviewSummaryItemEdit(options) {
9
+ return function Edit({ attributes, setAttributes, }) {
10
+ var _a;
11
+ const { rating, count, countLabel, showMax, description } = attributes;
12
+ const hasRating = typeof rating === 'number';
13
+ const hasCount = typeof count === 'number' && count > 0;
14
+ const blockProps = useBlockProps({ className: clsx((_a = options.blockClassName) !== null && _a !== void 0 ? _a : 'i-review-summary-item wp-block-section') });
15
+ return (_jsxs(_Fragment, { children: [_jsx(InspectorControls, { children: _jsxs(PanelBody, { title: __('Hodnocení', 'brilo-blocks'), children: [_jsx(RangeControl, { label: __('Průměrné hodnocení', 'brilo-blocks'), help: __('Bez hodnoty se hvězdičky ani číslo nezobrazí.', 'brilo-blocks'), value: rating, onChange: (v) => setAttributes({ rating: v }), min: 0, max: RATING_MAX, step: RATING_STEP, allowReset: true, withInputField: true }), _jsx(ToggleControl, { label: __('Zobrazit „/ 5"', 'brilo-blocks'), checked: showMax, onChange: (v) => setAttributes({ showMax: v }) }), _jsx(TextControl, { type: "number", min: 0, label: __('Počet recenzí', 'brilo-blocks'), help: __('Při nule nebo prázdné hodnotě se počet nezobrazí.', 'brilo-blocks'), value: typeof count === 'number' ? String(count) : '', onChange: (v) => setAttributes({ count: v === '' ? undefined : Math.max(0, Number.parseInt(v, 10) || 0) }) }), _jsx(TextControl, { label: __('Popisek počtu', 'brilo-blocks'), value: countLabel, onChange: (v) => setAttributes({ countLabel: v }) })] }) }), _jsxs("div", { ...blockProps, children: [_jsxs("div", { className: "i-review-summary-item__score", children: [hasRating && (_jsxs(_Fragment, { children: [_jsx("span", { className: "i-review-summary-item__stars", style: { '--rating-fill': `${(roundToHalf(rating) / RATING_MAX) * 100}%` }, children: "\u2605\u2605\u2605\u2605\u2605" }), _jsxs("strong", { className: "i-review-summary-item__value", children: [rating.toLocaleString(undefined, { minimumFractionDigits: 1, maximumFractionDigits: 1 }), showMax && ` / ${RATING_MAX}`] })] })), hasCount && _jsx("span", { className: "i-review-summary-item__count", children: `${count} ${countLabel}` }), !hasRating && !hasCount && (_jsx("span", { className: "i-review-summary-item__placeholder", children: __('Nastavte hodnocení v postranním panelu', 'brilo-blocks') }))] }), _jsx(RichText, { tagName: "p", className: "i-review-summary-item__description u-text-editable", value: description, onChange: (v) => setAttributes({ description: v }), placeholder: __('Popis hodnocení...', 'brilo-blocks'), allowedFormats: ['core/bold', 'core/italic', 'core/link', 'brilo-blocks/text-color'] })] })] }));
16
+ };
17
+ }
@@ -0,0 +1,5 @@
1
+ import type { BlockConfiguration } from '@wordpress/blocks';
2
+ import type { ReviewSummaryItemAttributes, ReviewSummaryItemOptions } from './types';
3
+ export type { ReviewSummaryItemAttributes, ReviewSummaryItemOptions };
4
+ export declare function createReviewSummaryItemBlock(options: ReviewSummaryItemOptions): BlockConfiguration<ReviewSummaryItemAttributes>;
5
+ //# sourceMappingURL=factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/blocks/review/review-summary-item/factory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAA;AAGzD,OAAO,KAAK,EAAC,2BAA2B,EAAE,wBAAwB,EAAC,MAAM,SAAS,CAAA;AAElF,YAAY,EAAC,2BAA2B,EAAE,wBAAwB,EAAC,CAAA;AAEnE,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,wBAAwB,GAAG,kBAAkB,CAAC,2BAA2B,CAAC,CAmB/H"}