@redneckz/wildless-cms-uni-blocks 0.14.72 → 0.14.74

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 (70) hide show
  1. package/bin/migration-scripts/0.14.68.js +20 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +5 -5
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
  6. package/bundle/components/VerticalLayout/VerticalLayout.d.ts +0 -1
  7. package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
  8. package/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
  9. package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  10. package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
  11. package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -1
  12. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  13. package/dist/components/StepsBlock/renderStep.js +1 -1
  14. package/dist/components/StepsBlock/renderStep.js.map +1 -1
  15. package/dist/components/VerticalLayout/VerticalLayout.d.ts +0 -1
  16. package/dist/components/VerticalLayout/VerticalLayout.js +2 -2
  17. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  18. package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
  19. package/lib/common.css +1 -1
  20. package/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
  21. package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  22. package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
  23. package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -1
  24. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  25. package/lib/components/StepsBlock/renderStep.js +1 -1
  26. package/lib/components/StepsBlock/renderStep.js.map +1 -1
  27. package/lib/components/VerticalLayout/VerticalLayout.d.ts +0 -1
  28. package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +1 -0
  29. package/lib/components/VerticalLayout/VerticalLayout.fixture.mobile.d.ts +1 -0
  30. package/lib/components/VerticalLayout/VerticalLayout.js +2 -2
  31. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  32. package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
  33. package/mobile/bundle/bundle.umd.js +4 -4
  34. package/mobile/bundle/bundle.umd.min.js +1 -1
  35. package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
  36. package/mobile/bundle/components/VerticalLayout/VerticalLayout.d.ts +0 -1
  37. package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
  38. package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
  39. package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -1
  40. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  41. package/mobile/dist/components/StepsBlock/renderStep.js +1 -1
  42. package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
  43. package/mobile/dist/components/VerticalLayout/VerticalLayout.d.ts +0 -1
  44. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +2 -2
  45. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  46. package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
  47. package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
  48. package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -1
  49. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  50. package/mobile/lib/components/StepsBlock/renderStep.js +1 -1
  51. package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
  52. package/mobile/lib/components/VerticalLayout/VerticalLayout.d.ts +0 -1
  53. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +2 -2
  54. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  55. package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
  56. package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +2 -9
  57. package/mobile/src/components/StepsBlock/StepsBlock.tsx +6 -1
  58. package/mobile/src/components/StepsBlock/renderStep.tsx +4 -4
  59. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +5 -7
  60. package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +8 -6
  61. package/package.json +1 -1
  62. package/src/components/HorizontalLayout/HorizontalLayout.fixture.mobile.tsx +1 -1
  63. package/src/components/HorizontalLayout/HorizontalLayout.tsx +2 -2
  64. package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +2 -9
  65. package/src/components/StepsBlock/StepsBlock.mobile.tsx +6 -1
  66. package/src/components/StepsBlock/renderStep.tsx +4 -4
  67. package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +19 -2
  68. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +22 -4
  69. package/src/components/VerticalLayout/VerticalLayout.tsx +5 -7
  70. package/src/components/VerticalLayout/VerticalLayoutContent.ts +8 -6
@@ -86,6 +86,24 @@ export default {
86
86
  />
87
87
  </div>
88
88
  ),
89
+ innerBorder: (
90
+ <div className="container grid grid-cols-12">
91
+ <VerticalLayout
92
+ className="col-span-12 border-1 border-red-500"
93
+ padding="p-6xl"
94
+ isCardBorder={true}
95
+ gap="M"
96
+ block={{
97
+ type: 'VerticalLayout',
98
+ blocks: [
99
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
100
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
101
+ ],
102
+ }}
103
+ options={options}
104
+ />
105
+ </div>
106
+ ),
89
107
  white: (
90
108
  <div className="container grid grid-cols-12">
91
109
  <VerticalLayout
@@ -181,7 +199,7 @@ export default {
181
199
  <VerticalLayout
182
200
  className="col-span-12"
183
201
  version="primary"
184
- isPadding={true}
202
+ padding="p-6xl"
185
203
  block={{
186
204
  type: 'VerticalLayout',
187
205
  blocks: [
@@ -231,7 +249,7 @@ export default {
231
249
  className="col-span-12"
232
250
  version="primary"
233
251
  gap="XL"
234
- isPadding={true}
252
+ padding="p-6xl"
235
253
  isInnerPadding={false}
236
254
  block={{
237
255
  type: 'VerticalLayout',
@@ -271,7 +289,7 @@ export default {
271
289
  gap="M"
272
290
  options={options}
273
291
  version="primary"
274
- isPadding={true}
292
+ padding="p-6xl"
275
293
  isInnerPadding={true}
276
294
  >
277
295
  <Headline
@@ -279,7 +297,7 @@ export default {
279
297
  headlineVersion="M"
280
298
  isEmbedded={true}
281
299
  />
282
- <HorizontalLayout isCardBorder={true} isPadding={false}>
300
+ <HorizontalLayout isCardBorder={true} padding="p-0">
283
301
  <ProductBlock className="col-span-6" {...PRODUCT_BLOCK_CONTENT} />
284
302
  <ProductBlock className="col-span-6" {...PRODUCT_BLOCK_CONTENT} />
285
303
  </HorizontalLayout>
@@ -7,24 +7,22 @@ import { style } from '../../utils/style';
7
7
  import { gapStyles } from '../HorizontalLayout/gapStyles';
8
8
  import { type VerticalLayoutContent } from './VerticalLayoutContent';
9
9
 
10
- export interface VerticalLayoutProps extends VerticalLayoutContent, UniBlockProps {
11
- isInnerBorder?: boolean;
12
- }
10
+ export interface VerticalLayoutProps extends VerticalLayoutContent, UniBlockProps {}
13
11
 
14
12
  export const VerticalLayout: JSXBlock<VerticalLayoutProps> = JSX<VerticalLayoutProps>(
15
13
  ({
16
14
  className = '',
15
+ padding = 'p-0',
17
16
  gap = '',
18
- isPadding = false,
19
17
  isInnerPadding = true,
20
18
  version = 'transparent',
21
19
  isTheme = false,
22
- isInnerBorder = false,
20
+ isCardBorder = false,
23
21
  ...rest
24
22
  }) => (
25
23
  <BlockWrapper
26
24
  className={style('relative flex flex-col', gapStyles[gap], className)}
27
- defaultPadding={isPadding ? 'p-6xl' : ''}
25
+ padding={padding}
28
26
  version={version}
29
27
  isTheme={isTheme}
30
28
  {...rest}
@@ -32,7 +30,7 @@ export const VerticalLayout: JSXBlock<VerticalLayoutProps> = JSX<VerticalLayoutP
32
30
  {renderChildren({
33
31
  ...rest,
34
32
  extraProps: {
35
- className: style('w-full', getBorderStyle(isInnerBorder)),
33
+ className: style('w-full', getBorderStyle(isCardBorder)),
36
34
  padding: isInnerPadding ? '' : 'p-0',
37
35
  },
38
36
  })}
@@ -1,13 +1,15 @@
1
1
  import { type UniBlockContent } from '../../model/JSXBlock';
2
2
  import { type GapVersion } from '../HorizontalLayout/HorizontalLayoutContent';
3
3
 
4
- /**
5
- * @title Вертикальный компоновщик
6
- */
7
- export type VerticalLayoutContent = UniBlockContent & {
4
+ export type LayoutCommitProps = {
8
5
  gap?: GapVersion;
9
- /** @title Внутренний отступ компоновщика */
10
- isPadding?: boolean;
6
+ /** @title контур на дочерних элементах */
7
+ isCardBorder?: boolean;
11
8
  /** @title Отступы вложенных компонентов */
12
9
  isInnerPadding?: boolean;
13
10
  };
11
+
12
+ /**
13
+ * @title Вертикальный компоновщик
14
+ */
15
+ export type VerticalLayoutContent = UniBlockContent & LayoutCommitProps;