@redneckz/wildless-cms-uni-blocks 0.14.112 → 0.14.114
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +13 -12
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Blocks.js +0 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js +3 -1
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js +2 -2
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/dist/hooks/useIntersectionObserver.js +1 -1
- package/dist/hooks/useIntersectionObserver.js.map +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/Pagination/PaginationContainer.js +1 -1
- package/dist/ui-kit/Pagination/PaginationContainer.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +3 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/utils/jaroWinklerDistance.js +2 -2
- package/dist/utils/jaroWinklerDistance.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +0 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js +3 -1
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js +2 -2
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/lib/hooks/useIntersectionObserver.js +1 -1
- package/lib/hooks/useIntersectionObserver.js.map +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/Pagination/PaginationContainer.js +1 -1
- package/lib/ui-kit/Pagination/PaginationContainer.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +3 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/utils/jaroWinklerDistance.js +2 -2
- package/lib/utils/jaroWinklerDistance.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +11 -9
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +2 -2
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/dist/hooks/useIntersectionObserver.js +1 -1
- package/mobile/dist/hooks/useIntersectionObserver.js.map +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/Pagination/PaginationContainer.js +1 -1
- package/mobile/dist/ui-kit/Pagination/PaginationContainer.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +3 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/utils/jaroWinklerDistance.js +2 -2
- package/mobile/dist/utils/jaroWinklerDistance.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +2 -2
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/lib/hooks/useIntersectionObserver.js +1 -1
- package/mobile/lib/hooks/useIntersectionObserver.js.map +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/Pagination/PaginationContainer.js +1 -1
- package/mobile/lib/ui-kit/Pagination/PaginationContainer.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +3 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/utils/jaroWinklerDistance.js +2 -2
- package/mobile/lib/utils/jaroWinklerDistance.js.map +1 -1
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
- package/mobile/src/hooks/useIntersectionObserver.ts +1 -1
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
- package/mobile/src/ui-kit/Pagination/PaginationContainer.tsx +1 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +13 -11
- package/mobile/src/utils/jaroWinklerDistance.ts +2 -2
- package/package.json +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.mobile.tsx +2 -2
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +2 -2
- package/src/components/Blocks.ts +0 -2
- package/src/components/Carousel/Carousel.fixture.mobile.tsx +5 -4
- package/src/components/Carousel/Carousel.fixture.tsx +9 -8
- package/src/components/CarouselLinks/CarouselLinks.fixture.mobile.tsx +13 -13
- package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +3 -2
- package/src/components/CarouselLinks/CarouselLinks.tsx +16 -14
- package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +2 -2
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +2 -1
- package/src/hooks/useIntersectionObserver.ts +1 -1
- package/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
- package/src/ui-kit/Pagination/PaginationContainer.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +2 -1
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.tsx +2 -1
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +13 -11
- package/src/utils/jaroWinklerDistance.ts +2 -2
- package/bundle/components/ParagraphBlock/ParagraphBlock.d.ts +0 -6
- package/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +0 -12
- package/dist/components/ParagraphBlock/ParagraphBlock.d.ts +0 -6
- package/dist/components/ParagraphBlock/ParagraphBlock.js +0 -8
- package/dist/components/ParagraphBlock/ParagraphBlock.js.map +0 -1
- package/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +0 -12
- package/dist/components/ParagraphBlock/ParagraphBlockContent.js +0 -2
- package/dist/components/ParagraphBlock/ParagraphBlockContent.js.map +0 -1
- package/lib/components/ParagraphBlock/ParagraphBlock.d.ts +0 -6
- package/lib/components/ParagraphBlock/ParagraphBlock.fixture.d.ts +0 -9
- package/lib/components/ParagraphBlock/ParagraphBlock.js +0 -6
- package/lib/components/ParagraphBlock/ParagraphBlock.js.map +0 -1
- package/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +0 -12
- package/lib/components/ParagraphBlock/ParagraphBlockContent.js +0 -2
- package/lib/components/ParagraphBlock/ParagraphBlockContent.js.map +0 -1
- package/mobile/bundle/components/ParagraphBlock/ParagraphBlock.d.ts +0 -6
- package/mobile/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +0 -12
- package/mobile/dist/components/ParagraphBlock/ParagraphBlock.d.ts +0 -6
- package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js +0 -8
- package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js.map +0 -1
- package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +0 -12
- package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.js +0 -2
- package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.js.map +0 -1
- package/mobile/lib/components/ParagraphBlock/ParagraphBlock.d.ts +0 -6
- package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js +0 -6
- package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js.map +0 -1
- package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +0 -12
- package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.js +0 -2
- package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.js.map +0 -1
- package/mobile/src/components/ParagraphBlock/ParagraphBlock.example.json +0 -5
- package/mobile/src/components/ParagraphBlock/ParagraphBlock.tsx +0 -17
- package/mobile/src/components/ParagraphBlock/ParagraphBlock.ui.json +0 -1
- package/mobile/src/components/ParagraphBlock/ParagraphBlockContent.ts +0 -14
- package/src/components/ParagraphBlock/ParagraphBlock.example.json +0 -5
- package/src/components/ParagraphBlock/ParagraphBlock.fixture.tsx +0 -41
- package/src/components/ParagraphBlock/ParagraphBlock.tsx +0 -17
- package/src/components/ParagraphBlock/ParagraphBlock.ui.json +0 -1
- package/src/components/ParagraphBlock/ParagraphBlockContent.ts +0 -14
|
@@ -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 +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 +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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParagraphBlockContent.js","sourceRoot":"","sources":["../../../src/components/ParagraphBlock/ParagraphBlockContent.ts"],"names":[],"mappings":""}
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -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,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 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -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
|
-
};
|