@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.
- package/bin/migration-scripts/0.14.68.js +20 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +5 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
- package/bundle/components/VerticalLayout/VerticalLayout.d.ts +0 -1
- package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
- package/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/renderStep.js +1 -1
- package/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.d.ts +0 -1
- package/dist/components/VerticalLayout/VerticalLayout.js +2 -2
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
- package/lib/common.css +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
- package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/renderStep.js +1 -1
- package/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.d.ts +0 -1
- package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +1 -0
- package/lib/components/VerticalLayout/VerticalLayout.fixture.mobile.d.ts +1 -0
- package/lib/components/VerticalLayout/VerticalLayout.js +2 -2
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
- package/mobile/bundle/bundle.umd.js +4 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
- package/mobile/bundle/components/VerticalLayout/VerticalLayout.d.ts +0 -1
- package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
- package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderStep.js +1 -1
- package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.d.ts +0 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +2 -2
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
- package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -9
- package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderStep.js +1 -1
- package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.d.ts +0 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +2 -2
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +7 -6
- package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +2 -9
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +6 -1
- package/mobile/src/components/StepsBlock/renderStep.tsx +4 -4
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +5 -7
- package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +8 -6
- package/package.json +1 -1
- package/src/components/HorizontalLayout/HorizontalLayout.fixture.mobile.tsx +1 -1
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +2 -2
- package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +2 -9
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +6 -1
- package/src/components/StepsBlock/renderStep.tsx +4 -4
- package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +19 -2
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +22 -4
- package/src/components/VerticalLayout/VerticalLayout.tsx +5 -7
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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}
|
|
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
|
-
|
|
20
|
+
isCardBorder = false,
|
|
23
21
|
...rest
|
|
24
22
|
}) => (
|
|
25
23
|
<BlockWrapper
|
|
26
24
|
className={style('relative flex flex-col', gapStyles[gap], className)}
|
|
27
|
-
|
|
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(
|
|
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
|
-
|
|
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;
|