@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
@@ -5,10 +5,10 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
5
5
  import { getBorderStyle } from '../../utils/getBorderStyle.js';
6
6
  import { style } from '../../utils/style.js';
7
7
  import { gapStyles } from '../HorizontalLayout/gapStyles.js';
8
- export const VerticalLayout = JSX(({ className = '', gap = '', isPadding = false, isInnerPadding = true, version = 'transparent', isTheme = false, isInnerBorder = false, ...rest }) => (_jsx(BlockWrapper, { className: style('relative flex flex-col', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren({
8
+ export const VerticalLayout = JSX(({ className = '', padding = 'p-0', gap = '', isInnerPadding = true, version = 'transparent', isTheme = false, isCardBorder = false, ...rest }) => (_jsx(BlockWrapper, { className: style('relative flex flex-col', gapStyles[gap], className), padding: padding, version: version, isTheme: isTheme, ...rest, children: renderChildren({
9
9
  ...rest,
10
10
  extraProps: {
11
- className: style('w-full', getBorderStyle(isInnerBorder)),
11
+ className: style('w-full', getBorderStyle(isCardBorder)),
12
12
  padding: isInnerPadding ? '' : 'p-0',
13
13
  },
14
14
  }) })));
@@ -1 +1 @@
1
- {"version":3,"file":"VerticalLayout.js","sourceRoot":"","sources":["../../../src/components/VerticalLayout/VerticalLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAO1D,MAAM,CAAC,MAAM,cAAc,GAAkC,GAAG,CAC9D,CAAC,EACC,SAAS,GAAG,EAAE,EACd,GAAG,GAAG,EAAE,EACR,SAAS,GAAG,KAAK,EACjB,cAAc,GAAG,IAAI,EACrB,OAAO,GAAG,aAAa,EACvB,OAAO,GAAG,KAAK,EACf,aAAa,GAAG,KAAK,EACrB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,KAAC,YAAY,IACX,SAAS,EAAE,KAAK,CAAC,wBAAwB,EAAE,SAAS,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,EACrE,cAAc,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EACxC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,KACZ,IAAI,YAEP,cAAc,CAAC;QACd,GAAG,IAAI;QACP,UAAU,EAAE;YACV,SAAS,EAAE,KAAK,CAAC,QAAQ,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;YACzD,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;SACrC;KACF,CAAC,GACW,CAChB,CACF,CAAC;AAEF,cAAc,CAAC,aAAa,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"VerticalLayout.js","sourceRoot":"","sources":["../../../src/components/VerticalLayout/VerticalLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAK1D,MAAM,CAAC,MAAM,cAAc,GAAkC,GAAG,CAC9D,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,GAAG,KAAK,EACf,GAAG,GAAG,EAAE,EACR,cAAc,GAAG,IAAI,EACrB,OAAO,GAAG,aAAa,EACvB,OAAO,GAAG,KAAK,EACf,YAAY,GAAG,KAAK,EACpB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,KAAC,YAAY,IACX,SAAS,EAAE,KAAK,CAAC,wBAAwB,EAAE,SAAS,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,EACrE,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,KACZ,IAAI,YAEP,cAAc,CAAC;QACd,GAAG,IAAI;QACP,UAAU,EAAE;YACV,SAAS,EAAE,KAAK,CAAC,QAAQ,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;YACxD,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;SACrC;KACF,CAAC,GACW,CAChB,CACF,CAAC;AAEF,cAAc,CAAC,aAAa,GAAG,EAAE,CAAC"}
@@ -1,12 +1,13 @@
1
1
  import { type UniBlockContent } from '../../model/JSXBlock';
2
2
  import { type GapVersion } from '../HorizontalLayout/HorizontalLayoutContent';
3
- /**
4
- * @title Вертикальный компоновщик
5
- */
6
- export declare type VerticalLayoutContent = UniBlockContent & {
3
+ export declare type LayoutCommitProps = {
7
4
  gap?: GapVersion;
8
- /** @title Внутренний отступ компоновщика */
9
- isPadding?: boolean;
5
+ /** @title контур на дочерних элементах */
6
+ isCardBorder?: boolean;
10
7
  /** @title Отступы вложенных компонентов */
11
8
  isInnerPadding?: boolean;
12
9
  };
10
+ /**
11
+ * @title Вертикальный компоновщик
12
+ */
13
+ export declare type VerticalLayoutContent = UniBlockContent & LayoutCommitProps;
@@ -3700,10 +3700,10 @@
3700
3700
  '': '',
3701
3701
  };
3702
3702
 
3703
- const VerticalLayout = JSX(({ className = '', gap = '', isPadding = false, isInnerPadding = true, version = 'transparent', isTheme = false, isInnerBorder = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative flex flex-col', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren({
3703
+ const VerticalLayout = JSX(({ className = '', padding = 'p-0', gap = '', isInnerPadding = true, version = 'transparent', isTheme = false, isCardBorder = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative flex flex-col', gapStyles[gap], className), padding: padding, version: version, isTheme: isTheme, ...rest, children: renderChildren({
3704
3704
  ...rest,
3705
3705
  extraProps: {
3706
- className: style('w-full', getBorderStyle(isInnerBorder)),
3706
+ className: style('w-full', getBorderStyle(isCardBorder)),
3707
3707
  padding: isInnerPadding ? '' : 'p-0',
3708
3708
  },
3709
3709
  }) })));
@@ -4517,7 +4517,7 @@
4517
4517
  assertUnreachable(step);
4518
4518
  }
4519
4519
  };
4520
- const renderDefaultStep = (size, version) => (step, i) => (jsx("div", { className: "contents", children: jsxs("div", { className: "flex flex-row text-center relative", children: [jsx("div", { className: "overflow-hidden flex flex-shrink-0 items-center", children: renderIconArea(size, version)(step, i) }), jsxs("div", { className: style('flex flex-col justify-center h-fit', STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size]), children: [step.label ? jsx("div", { className: "text-l text-left", children: step.label }) : null, step.description ? (jsx("div", { className: style('text-s font-light text-left', styleMap.description), children: step.description })) : null] })] }) }, String(i)));
4520
+ const renderDefaultStep = (size, version) => (step, i) => (jsx("div", { className: "contents", children: jsxs("div", { className: "flex flex-row text-center relative", children: [jsx("div", { className: "overflow-hidden flex flex-shrink-0 items-center", children: renderIconArea(size, version)(step, i) }), jsxs("div", { className: style('flex flex-col justify-center h-fit', STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size]), children: [step.label ? (jsx(Paragraph, { size: "text-l", align: "text-left", children: step.label })) : null, step.description ? (jsx("div", { className: style('text-s font-light text-left', styleMap.description), children: step.description })) : null] })] }) }, String(i)));
4521
4521
  const renderIconArea = (size, version) => (step, i) => {
4522
4522
  const iconSize = size === 'normal' ? '38' : '24';
4523
4523
  const iconVersion = version === 'secondary' ? 'white' : 'color';
@@ -5458,7 +5458,7 @@
5458
5458
 
5459
5459
  const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
5460
5460
 
5461
- const packageVersion = "0.14.71";
5461
+ const packageVersion = "0.14.73";
5462
5462
 
5463
5463
  exports.Blocks = Blocks;
5464
5464
  exports.ContentPage = ContentPage;