@redneckz/wildless-cms-uni-blocks 0.2.98 → 0.2.99
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 +149 -158
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/BaseTile/BaseTile.js +2 -17
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/Footer/Sitemap.js +1 -1
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/components/Headline/Headline.js +9 -3
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/model/SitemapProps.d.ts +1 -0
- package/lib/common.css +1 -1
- package/lib/components/BaseTile/BaseTile.js +2 -17
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/Footer/Sitemap.js +1 -1
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/components/Headline/Headline.js +10 -4
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/model/SitemapProps.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/BaseTile/BaseTile.tsx +5 -24
- package/src/components/Footer/Sitemap.tsx +1 -1
- package/src/components/Headline/Headline.tsx +25 -8
- package/src/model/SitemapProps.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sitemap.js","sourceRoot":"","sources":["../../../src/components/Footer/Sitemap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAQpD,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IACzE,MAAM,OAAO,GA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,CAAC,CAAC,CAAC,CAA4D,CACvF,CAAC,KAVM,MAAM,CAAC,KAAK,CAAC,CAWjB,CACP,CAAC;AACJ,CAAC,CAAC;AAMF,MAAM,UAAU,GAAG,GAAG,CAAkB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACzE,YACE,SAAS,EAAC,gGAAgG,EAC1G,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,IAAI,OAAO,YAExB,IAAI,IAAI,UAAU,KAAK,EAAE,GACxB,CACL,CAAC,CAAC"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { Title } from '../../ui-kit/Title/Title.js';
|
|
4
|
+
const alignText = {
|
|
5
|
+
left: 'text-left',
|
|
6
|
+
center: 'text-center',
|
|
7
|
+
right: 'text-right',
|
|
8
|
+
};
|
|
9
|
+
export const Headline = JSX(({ bgColor = 'transparent', align = 'left', className, title, description }) => {
|
|
10
|
+
const textClasses = alignText[align];
|
|
11
|
+
return (_jsxs("section", { className: `p-[50px] ${bgColor} ${className || ''} `, children: [title && (_jsx(Title, { size: "L", className: `text-primary-text mt-0 font-medium ${textClasses}`, children: title })), description && (_jsx("p", { className: `font-normal text-base mt-4 ${textClasses}`, children: description }))] }));
|
|
6
12
|
});
|
|
7
13
|
//# sourceMappingURL=Headline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Headline.js","sourceRoot":"","sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Headline.js","sourceRoot":"","sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAMjD,MAAM,SAAS,GAA8B;IAC3C,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EAAE,OAAO,GAAG,aAAa,EAAE,KAAK,GAAG,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE;IAC7E,MAAM,WAAW,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;IACrC,OAAO,CACL,mBAAS,SAAS,EAAE,YAAY,OAAO,IAAI,SAAS,IAAI,EAAE,GAAG,aAC1D,KAAK,IAAI,CACR,KAAC,KAAK,IAAC,IAAI,EAAC,GAAG,EAAC,SAAS,EAAE,sCAAsC,WAAW,EAAE,YAC3E,KAAK,GACA,CACT,EACA,WAAW,IAAI,CACd,YAAG,SAAS,EAAE,8BAA8B,WAAW,EAAE,YAAG,WAAW,GAAK,CAC7E,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -8,23 +8,7 @@ import { Icon } from '../../ui-kit/Icon/Icon';
|
|
|
8
8
|
import { Img } from '../../ui-kit/Img';
|
|
9
9
|
import { Title } from '../../ui-kit/Title/Title';
|
|
10
10
|
import { getColSpan } from '../../utils/getColSpan';
|
|
11
|
-
import type {
|
|
12
|
-
|
|
13
|
-
const alignFlex: Record<AlignType, string> = {
|
|
14
|
-
left: 'justify-between',
|
|
15
|
-
center: 'justify-center',
|
|
16
|
-
right: 'justify-end',
|
|
17
|
-
};
|
|
18
|
-
const alignBlock: Record<AlignType, string> = {
|
|
19
|
-
left: 'items-start',
|
|
20
|
-
center: 'items-center',
|
|
21
|
-
right: 'items-end',
|
|
22
|
-
};
|
|
23
|
-
const alignText: Record<AlignType, string> = {
|
|
24
|
-
left: 'text-left',
|
|
25
|
-
center: 'text-center',
|
|
26
|
-
right: 'text-right',
|
|
27
|
-
};
|
|
11
|
+
import type { BaseTileCommonProps, BaseTileIconButton } from './BaseTileProps';
|
|
28
12
|
|
|
29
13
|
export interface BaseTileProps extends BaseTileCommonProps, UniBlockProps {}
|
|
30
14
|
|
|
@@ -42,12 +26,11 @@ export const BaseTile = JSX<BaseTileProps>(
|
|
|
42
26
|
image,
|
|
43
27
|
items,
|
|
44
28
|
version = 'primary',
|
|
45
|
-
align = 'left',
|
|
46
29
|
}) => {
|
|
47
30
|
const router = context.useRouter();
|
|
48
31
|
const { handlerDecorator } = context;
|
|
49
32
|
return (
|
|
50
|
-
<div className={`font-sans flex flex-col grow h-full
|
|
33
|
+
<div className={`font-sans flex flex-col grow h-full items-start`}>
|
|
51
34
|
{title && (
|
|
52
35
|
<Title
|
|
53
36
|
size={titleSize || getTitleSizeByClassName(className)}
|
|
@@ -56,13 +39,11 @@ export const BaseTile = JSX<BaseTileProps>(
|
|
|
56
39
|
{title}
|
|
57
40
|
</Title>
|
|
58
41
|
)}
|
|
59
|
-
<div className={`flex grow w-full
|
|
60
|
-
<div className={`flex flex-col justify-between
|
|
42
|
+
<div className={`flex grow w-full justify-between`}>
|
|
43
|
+
<div className={`flex flex-col justify-between items-start`}>
|
|
61
44
|
<div>
|
|
62
45
|
{description ? (
|
|
63
|
-
<div className={`font-normal text-base mt-4 max-w-[600px]
|
|
64
|
-
{description}
|
|
65
|
-
</div>
|
|
46
|
+
<div className={`font-normal text-base mt-4 max-w-[600px]`}>{description}</div>
|
|
66
47
|
) : null}
|
|
67
48
|
{children}
|
|
68
49
|
{items?.length ? renderItems(items, version) : null}
|
|
@@ -37,7 +37,7 @@ const renderColumn = (c: TopMenuItem, index: number, { router, handlerDecorator
|
|
|
37
37
|
{text || `Раздел ${index}`}
|
|
38
38
|
</a>
|
|
39
39
|
{items?.map((_, i) => (
|
|
40
|
-
<ColumnItem key={String(i)} {...useLink({ router, handlerDecorator }, _)} />
|
|
40
|
+
<ColumnItem key={String(i)} {...useLink({ router, handlerDecorator }, _)} index={i} />
|
|
41
41
|
))}
|
|
42
42
|
</div>
|
|
43
43
|
);
|
|
@@ -1,15 +1,32 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
|
|
3
3
|
import type { UniBlockProps } from '../../types';
|
|
4
|
-
import {
|
|
4
|
+
import { Title } from '../../ui-kit/Title/Title';
|
|
5
5
|
import type { HeadlineContent } from './HeadlineContent';
|
|
6
|
+
import { AlignType } from '../BaseTile/BaseTileProps';
|
|
6
7
|
|
|
7
8
|
export interface HeadlineProps extends UniBlockProps, HeadlineContent {}
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
const alignText: Record<AlignType, string> = {
|
|
11
|
+
left: 'text-left',
|
|
12
|
+
center: 'text-center',
|
|
13
|
+
right: 'text-right',
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const Headline = JSX<HeadlineProps>(
|
|
17
|
+
({ bgColor = 'transparent', align = 'left', className, title, description }) => {
|
|
18
|
+
const textClasses = alignText[align];
|
|
19
|
+
return (
|
|
20
|
+
<section className={`p-[50px] ${bgColor} ${className || ''} `}>
|
|
21
|
+
{title && (
|
|
22
|
+
<Title size="L" className={`text-primary-text mt-0 font-medium ${textClasses}`}>
|
|
23
|
+
{title}
|
|
24
|
+
</Title>
|
|
25
|
+
)}
|
|
26
|
+
{description && (
|
|
27
|
+
<p className={`font-normal text-base mt-4 ${textClasses}`}>{description}</p>
|
|
28
|
+
)}
|
|
29
|
+
</section>
|
|
30
|
+
);
|
|
31
|
+
},
|
|
32
|
+
);
|