@redneckz/wildless-cms-uni-blocks 0.14.111 → 0.14.113

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 (115) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +11 -10
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Blocks.js +0 -2
  5. package/dist/components/Blocks.js.map +1 -1
  6. package/dist/components/CarouselLinks/CarouselLinks.js +3 -1
  7. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  8. package/dist/components/ComparisonTable/ComparisonTable.mobile.js +2 -2
  9. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  10. package/dist/hooks/useIntersectionObserver.js +1 -1
  11. package/dist/hooks/useIntersectionObserver.js.map +1 -1
  12. package/dist/ui-kit/Pagination/PaginationContainer.js +1 -1
  13. package/dist/ui-kit/Pagination/PaginationContainer.js.map +1 -1
  14. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +3 -1
  15. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  16. package/dist/utils/jaroWinklerDistance.js +2 -2
  17. package/dist/utils/jaroWinklerDistance.js.map +1 -1
  18. package/lib/components/Blocks.js +0 -2
  19. package/lib/components/Blocks.js.map +1 -1
  20. package/lib/components/CarouselLinks/CarouselLinks.js +3 -1
  21. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  22. package/lib/components/ComparisonTable/ComparisonTable.mobile.js +2 -2
  23. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  24. package/lib/hooks/useIntersectionObserver.js +1 -1
  25. package/lib/hooks/useIntersectionObserver.js.map +1 -1
  26. package/lib/ui-kit/Pagination/PaginationContainer.js +1 -1
  27. package/lib/ui-kit/Pagination/PaginationContainer.js.map +1 -1
  28. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +3 -1
  29. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  30. package/lib/utils/jaroWinklerDistance.js +2 -2
  31. package/lib/utils/jaroWinklerDistance.js.map +1 -1
  32. package/mobile/bundle/bundle.umd.js +9 -7
  33. package/mobile/bundle/bundle.umd.min.js +1 -1
  34. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +2 -2
  35. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  36. package/mobile/dist/hooks/useIntersectionObserver.js +1 -1
  37. package/mobile/dist/hooks/useIntersectionObserver.js.map +1 -1
  38. package/mobile/dist/ui-kit/Pagination/PaginationContainer.js +1 -1
  39. package/mobile/dist/ui-kit/Pagination/PaginationContainer.js.map +1 -1
  40. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +3 -1
  41. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  42. package/mobile/dist/utils/jaroWinklerDistance.js +2 -2
  43. package/mobile/dist/utils/jaroWinklerDistance.js.map +1 -1
  44. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +2 -2
  45. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  46. package/mobile/lib/hooks/useIntersectionObserver.js +1 -1
  47. package/mobile/lib/hooks/useIntersectionObserver.js.map +1 -1
  48. package/mobile/lib/ui-kit/Pagination/PaginationContainer.js +1 -1
  49. package/mobile/lib/ui-kit/Pagination/PaginationContainer.js.map +1 -1
  50. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +3 -1
  51. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  52. package/mobile/lib/utils/jaroWinklerDistance.js +2 -2
  53. package/mobile/lib/utils/jaroWinklerDistance.js.map +1 -1
  54. package/mobile/src/components/CarouselLinks/CarouselLinks.ui.json +9 -1
  55. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
  56. package/mobile/src/hooks/useIntersectionObserver.ts +1 -1
  57. package/mobile/src/ui-kit/Pagination/PaginationContainer.tsx +1 -1
  58. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +13 -11
  59. package/mobile/src/utils/jaroWinklerDistance.ts +2 -2
  60. package/package.json +1 -1
  61. package/src/components/BenefitsBlock/BenefitsBlock.fixture.mobile.tsx +2 -2
  62. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +2 -2
  63. package/src/components/Blocks.ts +0 -2
  64. package/src/components/Carousel/Carousel.fixture.mobile.tsx +5 -4
  65. package/src/components/Carousel/Carousel.fixture.tsx +9 -8
  66. package/src/components/CarouselLinks/CarouselLinks.fixture.mobile.tsx +13 -13
  67. package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +3 -2
  68. package/src/components/CarouselLinks/CarouselLinks.tsx +16 -14
  69. package/src/components/CarouselLinks/CarouselLinks.ui.json +9 -1
  70. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +2 -2
  71. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +2 -1
  72. package/src/hooks/useIntersectionObserver.ts +1 -1
  73. package/src/ui-kit/Pagination/PaginationContainer.tsx +1 -1
  74. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +2 -1
  75. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.tsx +2 -1
  76. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +13 -11
  77. package/src/utils/jaroWinklerDistance.ts +2 -2
  78. package/bundle/components/ParagraphBlock/ParagraphBlock.d.ts +0 -6
  79. package/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +0 -12
  80. package/dist/components/ParagraphBlock/ParagraphBlock.d.ts +0 -6
  81. package/dist/components/ParagraphBlock/ParagraphBlock.js +0 -8
  82. package/dist/components/ParagraphBlock/ParagraphBlock.js.map +0 -1
  83. package/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +0 -12
  84. package/dist/components/ParagraphBlock/ParagraphBlockContent.js +0 -2
  85. package/dist/components/ParagraphBlock/ParagraphBlockContent.js.map +0 -1
  86. package/lib/components/ParagraphBlock/ParagraphBlock.d.ts +0 -6
  87. package/lib/components/ParagraphBlock/ParagraphBlock.fixture.d.ts +0 -9
  88. package/lib/components/ParagraphBlock/ParagraphBlock.js +0 -6
  89. package/lib/components/ParagraphBlock/ParagraphBlock.js.map +0 -1
  90. package/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +0 -12
  91. package/lib/components/ParagraphBlock/ParagraphBlockContent.js +0 -2
  92. package/lib/components/ParagraphBlock/ParagraphBlockContent.js.map +0 -1
  93. package/mobile/bundle/components/ParagraphBlock/ParagraphBlock.d.ts +0 -6
  94. package/mobile/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +0 -12
  95. package/mobile/dist/components/ParagraphBlock/ParagraphBlock.d.ts +0 -6
  96. package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js +0 -8
  97. package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js.map +0 -1
  98. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +0 -12
  99. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.js +0 -2
  100. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.js.map +0 -1
  101. package/mobile/lib/components/ParagraphBlock/ParagraphBlock.d.ts +0 -6
  102. package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js +0 -6
  103. package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js.map +0 -1
  104. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +0 -12
  105. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.js +0 -2
  106. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.js.map +0 -1
  107. package/mobile/src/components/ParagraphBlock/ParagraphBlock.example.json +0 -5
  108. package/mobile/src/components/ParagraphBlock/ParagraphBlock.tsx +0 -17
  109. package/mobile/src/components/ParagraphBlock/ParagraphBlock.ui.json +0 -1
  110. package/mobile/src/components/ParagraphBlock/ParagraphBlockContent.ts +0 -14
  111. package/src/components/ParagraphBlock/ParagraphBlock.example.json +0 -5
  112. package/src/components/ParagraphBlock/ParagraphBlock.fixture.tsx +0 -41
  113. package/src/components/ParagraphBlock/ParagraphBlock.tsx +0 -17
  114. package/src/components/ParagraphBlock/ParagraphBlock.ui.json +0 -1
  115. package/src/components/ParagraphBlock/ParagraphBlockContent.ts +0 -14
@@ -1,12 +1,14 @@
1
1
  import '../../setup-fixture';
2
2
 
3
3
  import { CarouselLinks } from './CarouselLinks';
4
+ import { type CarouselLinkProps } from './CarouselLinksContent';
4
5
 
5
6
  const link = {
6
7
  text: 'Аудиторские заключения',
7
8
  href: '#',
8
9
  };
9
- const links = Array(10).fill(link);
10
+
11
+ const links = Array.from<CarouselLinkProps>({ length: 10 }).fill(link);
10
12
 
11
13
  const description = `Акционерное общество «Российский Сельскохозяйственный банк»* —
12
14
  один из крупнейших банков в России. Был основан в 2000 году в целях развития
@@ -27,7 +29,6 @@ export default {
27
29
  additionalDescription={additionalDescription}
28
30
  version="secondary"
29
31
  className="col-span-12"
30
- block={{ type: 'Carousel', blocks: new Array(1).fill(link).flat() }}
31
32
  />
32
33
  </div>
33
34
  ),
@@ -47,20 +47,22 @@ const renderLinks = (links: LinkProps[], className = '') => {
47
47
  arrowsPadded={false}
48
48
  padding="p-0"
49
49
  >
50
- {new Array(itemCount).fill(null).map((_, groupIndex) => (
51
- <div
52
- key={String(groupIndex)}
53
- className={style(
54
- 'flex flex-wrap gap-2xs self-start xl:justify-center @5xl:grid @5xl:grid-cols-2',
55
- )}
56
- >
57
- {links
58
- .slice(groupIndex * MAX_LINKS_COUNT, (groupIndex + 1) * MAX_LINKS_COUNT)
59
- .map((link, index) => (
60
- <CarouselLinkButton key={String(index)} {...link} />
61
- ))}
62
- </div>
63
- ))}
50
+ {Array.from({ length: itemCount })
51
+ .fill(null)
52
+ .map((_, groupIndex) => (
53
+ <div
54
+ key={String(groupIndex)}
55
+ className={style(
56
+ 'flex flex-wrap gap-2xs self-start xl:justify-center @5xl:grid @5xl:grid-cols-2',
57
+ )}
58
+ >
59
+ {links
60
+ .slice(groupIndex * MAX_LINKS_COUNT, (groupIndex + 1) * MAX_LINKS_COUNT)
61
+ .map((link, index) => (
62
+ <CarouselLinkButton key={String(index)} {...link} />
63
+ ))}
64
+ </div>
65
+ ))}
64
66
  </Carousel>
65
67
  );
66
68
  };
@@ -1,5 +1,13 @@
1
1
  {
2
- "content": {},
2
+ "content": {
3
+ "links": {
4
+ "items": {
5
+ "icon": {
6
+ "ui:field": "icon"
7
+ }
8
+ }
9
+ }
10
+ },
3
11
  "style": {
4
12
  "ui:options": {
5
13
  "minCols": 12
@@ -30,7 +30,7 @@ export const ComparisonTable = JSX<ComparisonTableProps>((props) => {
30
30
  const TableInner = JSX<ComparisonTableProps>(
31
31
  ({ columns = [], rowHeaders, isColoredFirstColumn, visibleRowLength, orientation, ...rest }) => {
32
32
  const [columnsViewState, setColumnsViewState] = useState(
33
- new Array<boolean>(columns.length).fill(!visibleRowLength),
33
+ Array.from<boolean>({ length: columns.length }).fill(!visibleRowLength),
34
34
  );
35
35
 
36
36
  const handleToggleColumn = useCallback((colIndex: number) => {
@@ -41,7 +41,7 @@ const TableInner = JSX<ComparisonTableProps>(
41
41
  }, []);
42
42
 
43
43
  const handleSlideChange = useCallback(
44
- () => setColumnsViewState((_) => new Array(_.length).fill(false)),
44
+ () => setColumnsViewState((_) => Array.from<boolean>({ length: _.length }).fill(false)),
45
45
  [],
46
46
  );
47
47
 
@@ -1,4 +1,5 @@
1
1
  import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
2
+ import { type BlockDef } from '../../model/ContentPageDef';
2
3
  import '../../setup-fixture';
3
4
  import { Blocks } from '../Blocks';
4
5
  import { Headline } from '../Headline/Headline';
@@ -273,7 +274,7 @@ export default {
273
274
  },
274
275
  style: ['col-span-12'],
275
276
  type: 'Carousel',
276
- blocks: new Array(6).fill(carouselRecommendationCard),
277
+ blocks: Array.from<BlockDef>({ length: 6 }).fill(carouselRecommendationCard),
277
278
  },
278
279
  ],
279
280
  }}
@@ -37,7 +37,7 @@ export function useIntersectionObserver<R extends Element>(
37
37
  function sensitivityToThreshold(sensitivity = 0): number[] {
38
38
  const thresholdsCount = Math.round(sensitivity * SENSITIVITY_SCALE);
39
39
 
40
- return new Array(thresholdsCount)
40
+ return Array.from({ length: thresholdsCount })
41
41
  .fill(0)
42
42
  .map((_, thi) => Math.min(thi / thresholdsCount), 1)
43
43
  .concat(1);
@@ -18,7 +18,7 @@ export const PaginationContainer = ({
18
18
  }: PaginationContainerProps) => {
19
19
  const pages = useMemo(
20
20
  () =>
21
- new Array(totalPages).fill({
21
+ Array.from<PaginationContainerProps>({ length: totalPages }).fill({
22
22
  currentPage,
23
23
  onPageChange,
24
24
  totalPages,
@@ -9,7 +9,8 @@ const renderElement = (_: any, i: number): VNode => (
9
9
  </div>
10
10
  );
11
11
 
12
- const generateChildren = (count: number) => new Array(count).fill(0).map(renderElement);
12
+ const generateChildren = (count: number) =>
13
+ Array.from({ length: count }).fill(0).map(renderElement);
13
14
 
14
15
  export default {
15
16
  default: (
@@ -9,7 +9,8 @@ const renderElement = (_: any, i: number): VNode => (
9
9
  </div>
10
10
  );
11
11
 
12
- const generateChildren = (count: number) => new Array(count).fill(0).map(renderElement);
12
+ const generateChildren = (count: number) =>
13
+ Array.from({ length: count }).fill(0).map(renderElement);
13
14
 
14
15
  export default {
15
16
  default: (
@@ -55,17 +55,19 @@ export const SwipeListControlDots = JSX<SwipeListControlDotsProps>(
55
55
  )}
56
56
  data-ver={version}
57
57
  >
58
- {new Array(dotCount).fill(null).map((_, idx: number) => (
59
- <div
60
- key={String(idx)}
61
- className={`${dotStyle} ${
62
- idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle
63
- }`}
64
- role="button"
65
- aria-hidden
66
- onClick={() => handleClick(idx)}
67
- />
68
- ))}
58
+ {Array.from({ length: dotCount })
59
+ .fill(null)
60
+ .map((_, idx: number) => (
61
+ <div
62
+ key={String(idx)}
63
+ className={`${dotStyle} ${
64
+ idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle
65
+ }`}
66
+ role="button"
67
+ aria-hidden
68
+ onClick={() => handleClick(idx)}
69
+ />
70
+ ))}
69
71
  </div>
70
72
  ) : null;
71
73
  },
@@ -36,8 +36,8 @@ function computeM(
36
36
  } {
37
37
  const range = Math.max(0, Math.floor(Math.max(s1.length, s2.length) / 2) - 1);
38
38
 
39
- const s1Matches = new Array<boolean>(s1.length);
40
- const s2Matches = new Array<boolean>(s2.length);
39
+ const s1Matches = Array.from<boolean>({ length: s1.length });
40
+ const s2Matches = Array.from<boolean>({ length: s2.length });
41
41
 
42
42
  let m = 0;
43
43
 
@@ -1,6 +0,0 @@
1
- import { type UniBlockProps } from '../../model/JSXBlock';
2
- import { type ParagraphBlockContent } from './ParagraphBlockContent';
3
- interface ParagraphBlockProps extends ParagraphBlockContent, UniBlockProps {
4
- }
5
- export declare const ParagraphBlock: import("@redneckz/uni-jsx").UNIComponent<ParagraphBlockProps, any, any>;
6
- export {};
@@ -1,12 +0,0 @@
1
- import { type AlignProps } from '../../model/HeadlineType';
2
- import { type UniBlockContent } from '../../model/JSXBlock';
3
- import { type FontWeight, type TextSize } from '../../ui-kit/Text/TextProps';
4
- /**
5
- * @title Параграф
6
- */
7
- export declare type ParagraphBlockContent = UniBlockContent & AlignProps & {
8
- size?: TextSize;
9
- font?: FontWeight;
10
- /** @title Текст */
11
- text?: string;
12
- };
@@ -1,6 +0,0 @@
1
- import { type UniBlockProps } from '../../model/JSXBlock';
2
- import { type ParagraphBlockContent } from './ParagraphBlockContent';
3
- interface ParagraphBlockProps extends ParagraphBlockContent, UniBlockProps {
4
- }
5
- export declare const ParagraphBlock: import("@redneckz/uni-jsx").UNIComponent<ParagraphBlockProps, any, any>;
6
- export {};
@@ -1,8 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.ParagraphBlock = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
- const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
7
- exports.ParagraphBlock = (0, uni_jsx_1.JSX)(({ text, size, align, font, children, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { defaultPadding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: size, align: align, font: font, children: text || children }) })));
8
- //# sourceMappingURL=ParagraphBlock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParagraphBlock.js","sourceRoot":"","sources":["../../../src/components/ParagraphBlock/ParagraphBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,gEAA6D;AAKhD,QAAA,cAAc,GAAG,IAAA,aAAG,EAC/B,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAClD,uBAAC,2BAAY,IAAC,cAAc,EAAC,KAAK,KAAK,IAAI,YACzC,uBAAC,qBAAS,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,YAC5C,IAAI,IAAI,QAAQ,GACP,GACC,CAChB,CACF,CAAC"}
@@ -1,12 +0,0 @@
1
- import { type AlignProps } from '../../model/HeadlineType';
2
- import { type UniBlockContent } from '../../model/JSXBlock';
3
- import { type FontWeight, type TextSize } from '../../ui-kit/Text/TextProps';
4
- /**
5
- * @title Параграф
6
- */
7
- export declare type ParagraphBlockContent = UniBlockContent & AlignProps & {
8
- size?: TextSize;
9
- font?: FontWeight;
10
- /** @title Текст */
11
- text?: string;
12
- };
@@ -1,2 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=ParagraphBlockContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParagraphBlockContent.js","sourceRoot":"","sources":["../../../src/components/ParagraphBlock/ParagraphBlockContent.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import { type UniBlockProps } from '../../model/JSXBlock';
2
- import { type ParagraphBlockContent } from './ParagraphBlockContent';
3
- interface ParagraphBlockProps extends ParagraphBlockContent, UniBlockProps {
4
- }
5
- export declare const ParagraphBlock: import("@redneckz/uni-jsx").UNIComponent<ParagraphBlockProps, any, any>;
6
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import '../../setup-fixture';
3
- declare const _default: {
4
- default: JSX.Element;
5
- colors: JSX.Element;
6
- alignment: JSX.Element;
7
- font: JSX.Element;
8
- };
9
- export default _default;
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
4
- import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
5
- export const ParagraphBlock = JSX(({ text, size, align, font, children, ...rest }) => (_jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: _jsx(Paragraph, { size: size, align: align, font: font, children: text || children }) })));
6
- //# sourceMappingURL=ParagraphBlock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParagraphBlock.js","sourceRoot":"","sources":["../../../src/components/ParagraphBlock/ParagraphBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAK7D,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAC/B,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAClD,KAAC,YAAY,IAAC,cAAc,EAAC,KAAK,KAAK,IAAI,YACzC,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,YAC5C,IAAI,IAAI,QAAQ,GACP,GACC,CAChB,CACF,CAAC"}
@@ -1,12 +0,0 @@
1
- import { type AlignProps } from '../../model/HeadlineType';
2
- import { type UniBlockContent } from '../../model/JSXBlock';
3
- import { type FontWeight, type TextSize } from '../../ui-kit/Text/TextProps';
4
- /**
5
- * @title Параграф
6
- */
7
- export declare type ParagraphBlockContent = UniBlockContent & AlignProps & {
8
- size?: TextSize;
9
- font?: FontWeight;
10
- /** @title Текст */
11
- text?: string;
12
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ParagraphBlockContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParagraphBlockContent.js","sourceRoot":"","sources":["../../../src/components/ParagraphBlock/ParagraphBlockContent.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import { type UniBlockProps } from '../../model/JSXBlock';
2
- import { type ParagraphBlockContent } from './ParagraphBlockContent';
3
- interface ParagraphBlockProps extends ParagraphBlockContent, UniBlockProps {
4
- }
5
- export declare const ParagraphBlock: import("@redneckz/uni-jsx").UNIComponent<ParagraphBlockProps, any, any>;
6
- export {};
@@ -1,12 +0,0 @@
1
- import { type AlignProps } from '../../model/HeadlineType';
2
- import { type UniBlockContent } from '../../model/JSXBlock';
3
- import { type FontWeight, type TextSize } from '../../ui-kit/Text/TextProps';
4
- /**
5
- * @title Параграф
6
- */
7
- export declare type ParagraphBlockContent = UniBlockContent & AlignProps & {
8
- size?: TextSize;
9
- font?: FontWeight;
10
- /** @title Текст */
11
- text?: string;
12
- };
@@ -1,6 +0,0 @@
1
- import { type UniBlockProps } from '../../model/JSXBlock';
2
- import { type ParagraphBlockContent } from './ParagraphBlockContent';
3
- interface ParagraphBlockProps extends ParagraphBlockContent, UniBlockProps {
4
- }
5
- export declare const ParagraphBlock: import("@redneckz/uni-jsx").UNIComponent<ParagraphBlockProps, any, any>;
6
- export {};
@@ -1,8 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.ParagraphBlock = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
- const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
7
- exports.ParagraphBlock = (0, uni_jsx_1.JSX)(({ text, size, align, font, children, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { defaultPadding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: size, align: align, font: font, children: text || children }) })));
8
- //# sourceMappingURL=ParagraphBlock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParagraphBlock.js","sourceRoot":"","sources":["../../../src/components/ParagraphBlock/ParagraphBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,gEAA6D;AAKhD,QAAA,cAAc,GAAG,IAAA,aAAG,EAC/B,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAClD,uBAAC,2BAAY,IAAC,cAAc,EAAC,KAAK,KAAK,IAAI,YACzC,uBAAC,qBAAS,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,YAC5C,IAAI,IAAI,QAAQ,GACP,GACC,CAChB,CACF,CAAC"}
@@ -1,12 +0,0 @@
1
- import { type AlignProps } from '../../model/HeadlineType';
2
- import { type UniBlockContent } from '../../model/JSXBlock';
3
- import { type FontWeight, type TextSize } from '../../ui-kit/Text/TextProps';
4
- /**
5
- * @title Параграф
6
- */
7
- export declare type ParagraphBlockContent = UniBlockContent & AlignProps & {
8
- size?: TextSize;
9
- font?: FontWeight;
10
- /** @title Текст */
11
- text?: string;
12
- };
@@ -1,2 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=ParagraphBlockContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParagraphBlockContent.js","sourceRoot":"","sources":["../../../src/components/ParagraphBlock/ParagraphBlockContent.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import { type UniBlockProps } from '../../model/JSXBlock';
2
- import { type ParagraphBlockContent } from './ParagraphBlockContent';
3
- interface ParagraphBlockProps extends ParagraphBlockContent, UniBlockProps {
4
- }
5
- export declare const ParagraphBlock: import("@redneckz/uni-jsx").UNIComponent<ParagraphBlockProps, any, any>;
6
- export {};
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
4
- import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
5
- export const ParagraphBlock = JSX(({ text, size, align, font, children, ...rest }) => (_jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: _jsx(Paragraph, { size: size, align: align, font: font, children: text || children }) })));
6
- //# sourceMappingURL=ParagraphBlock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParagraphBlock.js","sourceRoot":"","sources":["../../../src/components/ParagraphBlock/ParagraphBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAK7D,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAC/B,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAClD,KAAC,YAAY,IAAC,cAAc,EAAC,KAAK,KAAK,IAAI,YACzC,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,YAC5C,IAAI,IAAI,QAAQ,GACP,GACC,CAChB,CACF,CAAC"}
@@ -1,12 +0,0 @@
1
- import { type AlignProps } from '../../model/HeadlineType';
2
- import { type UniBlockContent } from '../../model/JSXBlock';
3
- import { type FontWeight, type TextSize } from '../../ui-kit/Text/TextProps';
4
- /**
5
- * @title Параграф
6
- */
7
- export declare type ParagraphBlockContent = UniBlockContent & AlignProps & {
8
- size?: TextSize;
9
- font?: FontWeight;
10
- /** @title Текст */
11
- text?: string;
12
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ParagraphBlockContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParagraphBlockContent.js","sourceRoot":"","sources":["../../../src/components/ParagraphBlock/ParagraphBlockContent.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- {
2
- "content": {
3
- "text": "Текст"
4
- }
5
- }
@@ -1,17 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import { type UniBlockProps } from '../../model/JSXBlock';
3
- import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
- import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
5
- import { type ParagraphBlockContent } from './ParagraphBlockContent';
6
-
7
- interface ParagraphBlockProps extends ParagraphBlockContent, UniBlockProps {}
8
-
9
- export const ParagraphBlock = JSX<ParagraphBlockProps>(
10
- ({ text, size, align, font, children, ...rest }) => (
11
- <BlockWrapper defaultPadding="p-0" {...rest}>
12
- <Paragraph size={size} align={align} font={font}>
13
- {text || children}
14
- </Paragraph>
15
- </BlockWrapper>
16
- ),
17
- );
@@ -1,14 +0,0 @@
1
- import { type AlignProps } from '../../model/HeadlineType';
2
- import { type UniBlockContent } from '../../model/JSXBlock';
3
- import { type FontWeight, type TextSize } from '../../ui-kit/Text/TextProps';
4
-
5
- /**
6
- * @title Параграф
7
- */
8
- export type ParagraphBlockContent = UniBlockContent &
9
- AlignProps & {
10
- size?: TextSize;
11
- font?: FontWeight;
12
- /** @title Текст */
13
- text?: string;
14
- };
@@ -1,5 +0,0 @@
1
- {
2
- "content": {
3
- "text": "Текст"
4
- }
5
- }
@@ -1,41 +0,0 @@
1
- import '../../setup-fixture';
2
-
3
- import { ParagraphBlock } from './ParagraphBlock';
4
-
5
- const DEFAULT_CLASS_NAME = 'col-span-12 w-full';
6
-
7
- export default {
8
- default: (
9
- <div className="container grid grid-cols-12">
10
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="По умолчанию (наследует от родителя)" />
11
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="Текст размера XL" size="text-xl" />
12
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="Текст размера L" size="text-l" />
13
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="Текст размера M" size="text-m" />
14
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="Текст размера S" size="text-s" />
15
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="Текст размера XS" size="text-xs" />
16
- </div>
17
- ),
18
- colors: (
19
- <div className="container grid grid-cols-12">
20
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="По умолчанию (наследует от родителя)" />
21
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="Текст" version="secondary" />
22
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="Текст" version="transparent" />
23
- </div>
24
- ),
25
- alignment: (
26
- <div className="container grid grid-cols-12">
27
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="По умолчанию (наследует от родителя)" />
28
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="Слева" align="text-left" />
29
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="Справа" align="text-right" />
30
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="По центру" align="text-center" />
31
- </div>
32
- ),
33
- font: (
34
- <div className="container grid grid-cols-12">
35
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="По умолчанию (наследует от родителя)" />
36
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="Тонкий" font="font-light" />
37
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="Обычный" font="font-normal" />
38
- <ParagraphBlock className={DEFAULT_CLASS_NAME} text="Средний" font="font-medium" />
39
- </div>
40
- ),
41
- };
@@ -1,17 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import { type UniBlockProps } from '../../model/JSXBlock';
3
- import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
- import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
5
- import { type ParagraphBlockContent } from './ParagraphBlockContent';
6
-
7
- interface ParagraphBlockProps extends ParagraphBlockContent, UniBlockProps {}
8
-
9
- export const ParagraphBlock = JSX<ParagraphBlockProps>(
10
- ({ text, size, align, font, children, ...rest }) => (
11
- <BlockWrapper defaultPadding="p-0" {...rest}>
12
- <Paragraph size={size} align={align} font={font}>
13
- {text || children}
14
- </Paragraph>
15
- </BlockWrapper>
16
- ),
17
- );
@@ -1,14 +0,0 @@
1
- import { type AlignProps } from '../../model/HeadlineType';
2
- import { type UniBlockContent } from '../../model/JSXBlock';
3
- import { type FontWeight, type TextSize } from '../../ui-kit/Text/TextProps';
4
-
5
- /**
6
- * @title Параграф
7
- */
8
- export type ParagraphBlockContent = UniBlockContent &
9
- AlignProps & {
10
- size?: TextSize;
11
- font?: FontWeight;
12
- /** @title Текст */
13
- text?: string;
14
- };