@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.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +11 -10
- 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/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/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/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 +9 -7
- 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/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/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/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/CarouselLinks/CarouselLinks.ui.json +9 -1
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
- package/mobile/src/hooks/useIntersectionObserver.ts +1 -1
- 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/CarouselLinks/CarouselLinks.ui.json +9 -1
- 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/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 +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
|
-
|
|
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
|
-
{
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
};
|
|
@@ -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
|
-
|
|
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((_) =>
|
|
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:
|
|
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
|
|
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
|
-
|
|
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) =>
|
|
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) =>
|
|
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
|
-
{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
idx
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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 =
|
|
40
|
-
const s2Matches =
|
|
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 +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,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
|
-
};
|