@redneckz/wildless-cms-uni-blocks 0.9.7 → 0.9.8
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/bundle.umd.js +6 -6
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/ui-kit/LinkWrapper/LinkWrapper.js +2 -1
- package/dist/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/ui-kit/LinkWrapper/LinkWrapper.js +2 -1
- package/lib/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +1 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.js +2 -1
- package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.js +2 -1
- package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +3 -3
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +13 -8
- package/mobile/src/ui-kit/LinkWrapper/LinkWrapper.tsx +2 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListItem.tsx +1 -1
- package/package.json +1 -1
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +2 -2
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +3 -3
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +13 -8
- package/src/ui-kit/LinkWrapper/LinkWrapper.tsx +2 -1
- package/src/ui-kit/SwipeListControl/SwipeListItem.tsx +1 -1
|
@@ -36,17 +36,17 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
36
36
|
return (
|
|
37
37
|
<BlockWrapper
|
|
38
38
|
className={style(
|
|
39
|
-
'relative p-12 min-w-[524px] h-full
|
|
39
|
+
'relative p-12 min-w-[524px] h-full box-border group-data-gray:bg-main-divider/50',
|
|
40
40
|
BORDER_STYLE,
|
|
41
41
|
className,
|
|
42
42
|
)}
|
|
43
43
|
version={version}
|
|
44
44
|
{...rest}
|
|
45
45
|
>
|
|
46
|
-
<LinkWrapper
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
<LinkWrapper href={href} target={target}>
|
|
47
|
+
{title ? (
|
|
48
|
+
<Heading headingType="h3" as="h3" className="text-center mb-8" title={title} />
|
|
49
|
+
) : null}
|
|
50
50
|
<div className="mb-5">
|
|
51
51
|
{description ? (
|
|
52
52
|
<Paragraph
|
|
@@ -58,10 +58,15 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
58
58
|
</Paragraph>
|
|
59
59
|
) : null}
|
|
60
60
|
</div>
|
|
61
|
-
<div className="flex
|
|
62
|
-
<div
|
|
61
|
+
<div className="flex">
|
|
62
|
+
<div
|
|
63
|
+
className={style(
|
|
64
|
+
'flex flex-col w-1/2',
|
|
65
|
+
items?.length ? 'justify-between' : 'justify-end',
|
|
66
|
+
)}
|
|
67
|
+
>
|
|
63
68
|
{items.length ? (
|
|
64
|
-
<List className="text-xl-light flex flex-col gap-2
|
|
69
|
+
<List className="text-xl-light flex flex-col gap-2 mt-14" items={items} />
|
|
65
70
|
) : null}
|
|
66
71
|
{socialMedia.length ? <SocialMedia className="pb-0" media={socialMedia} /> : null}
|
|
67
72
|
</div>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
3
|
import type { Target } from '../../model/LinkProps';
|
|
4
|
+
import { style } from '../../utils/style';
|
|
4
5
|
|
|
5
6
|
interface LinkWrapperProps {
|
|
6
7
|
className?: string;
|
|
@@ -14,7 +15,7 @@ export const LinkWrapper = JSX<LinkWrapperProps>(({ className = '', href, target
|
|
|
14
15
|
const Tag = href ? 'a' : 'div';
|
|
15
16
|
|
|
16
17
|
return (
|
|
17
|
-
<Tag className={className} {...(href ? linkProps : {})}>
|
|
18
|
+
<Tag className={style('block', className)} {...(href ? linkProps : {})}>
|
|
18
19
|
{children}
|
|
19
20
|
</Tag>
|
|
20
21
|
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import {
|
|
4
|
-
type IntersectionObserverOptions,
|
|
5
4
|
useIntersectionObserver,
|
|
5
|
+
type IntersectionObserverOptions,
|
|
6
6
|
} from '../../hooks/useIntersectionObserver';
|
|
7
7
|
|
|
8
8
|
/**
|
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@ export const CarouselProductCard = JSX<CarouselProductCardProps>(
|
|
|
35
35
|
return (
|
|
36
36
|
<BlockWrapper
|
|
37
37
|
className={style(
|
|
38
|
-
'justify-between min-w-[260px]',
|
|
38
|
+
'h-full flex flex-col justify-between min-w-[260px]',
|
|
39
39
|
'box-border border-solid border border-gray',
|
|
40
40
|
align,
|
|
41
41
|
className,
|
|
@@ -28,9 +28,9 @@ export const BUSINESS_CARD: CarouselProgramsCardContent = {
|
|
|
28
28
|
list,
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
const CAROUSEL_BUSINESS_CARD = <CarouselProgramsCard {...BUSINESS_CARD} />;
|
|
31
|
+
const CAROUSEL_BUSINESS_CARD = <CarouselProgramsCard className="col-span-4" {...BUSINESS_CARD} />;
|
|
32
32
|
const CAROUSEL_BUSINESS_CARD_SECONDARY = (
|
|
33
|
-
<CarouselProgramsCard {...BUSINESS_CARD} version="secondary" />
|
|
33
|
+
<CarouselProgramsCard className="col-span-4" {...BUSINESS_CARD} version="secondary" />
|
|
34
34
|
);
|
|
35
35
|
|
|
36
36
|
export default {
|
|
@@ -14,14 +14,14 @@ export interface CarouselTariffsCardProps extends CarouselProgramsCardContent, U
|
|
|
14
14
|
export const CarouselProgramsCard = JSX<CarouselTariffsCardProps>(
|
|
15
15
|
({ className = '', title, icon, list = [], href, target, ...rest }) => {
|
|
16
16
|
return (
|
|
17
|
-
<BlockWrapper className={style('border border-gray
|
|
17
|
+
<BlockWrapper className={style('border border-gray', className)} {...rest}>
|
|
18
18
|
<LinkWrapper className="flex" href={href} target={target}>
|
|
19
19
|
<div className="w-[200px] min-w-[200px] self-center">
|
|
20
20
|
{icon?.icon ? <Img image={getIconWithVersion(icon)} asSVG /> : null}
|
|
21
21
|
{icon?.src ? <Img image={icon} /> : null}
|
|
22
22
|
</div>
|
|
23
23
|
<div className="p-8 pl-3 w-full">
|
|
24
|
-
{title ? <Heading className="
|
|
24
|
+
{title ? <Heading className="mb-3.5" headingType="h5" title={title} /> : null}
|
|
25
25
|
{list.length ? (
|
|
26
26
|
<div className="flex flex-col gap-3">{list?.map(renderList)}</div>
|
|
27
27
|
) : null}
|
|
@@ -34,7 +34,7 @@ export const CarouselProgramsCard = JSX<CarouselTariffsCardProps>(
|
|
|
34
34
|
|
|
35
35
|
const renderList = (_: HeadlineCommonProps, i: number) => (
|
|
36
36
|
<div key={String(i)} className="break-words">
|
|
37
|
-
{_.title ? <div className=
|
|
37
|
+
{_.title ? <div className="text-h6">{_.title}</div> : null}
|
|
38
38
|
{_.description ? <span className="text-l-light mt-1">{_.description}</span> : null}
|
|
39
39
|
</div>
|
|
40
40
|
);
|
|
@@ -36,17 +36,17 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
36
36
|
return (
|
|
37
37
|
<BlockWrapper
|
|
38
38
|
className={style(
|
|
39
|
-
'relative p-12 min-w-[524px] h-full
|
|
39
|
+
'relative p-12 min-w-[524px] h-full box-border group-data-gray:bg-main-divider/50',
|
|
40
40
|
BORDER_STYLE,
|
|
41
41
|
className,
|
|
42
42
|
)}
|
|
43
43
|
version={version}
|
|
44
44
|
{...rest}
|
|
45
45
|
>
|
|
46
|
-
<LinkWrapper
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
<LinkWrapper href={href} target={target}>
|
|
47
|
+
{title ? (
|
|
48
|
+
<Heading headingType="h3" as="h3" className="text-center mb-8" title={title} />
|
|
49
|
+
) : null}
|
|
50
50
|
<div className="mb-5">
|
|
51
51
|
{description ? (
|
|
52
52
|
<Paragraph
|
|
@@ -58,10 +58,15 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
58
58
|
</Paragraph>
|
|
59
59
|
) : null}
|
|
60
60
|
</div>
|
|
61
|
-
<div className="flex
|
|
62
|
-
<div
|
|
61
|
+
<div className="flex">
|
|
62
|
+
<div
|
|
63
|
+
className={style(
|
|
64
|
+
'flex flex-col w-1/2',
|
|
65
|
+
items?.length ? 'justify-between' : 'justify-end',
|
|
66
|
+
)}
|
|
67
|
+
>
|
|
63
68
|
{items.length ? (
|
|
64
|
-
<List className="text-xl-light flex flex-col gap-2
|
|
69
|
+
<List className="text-xl-light flex flex-col gap-2 mt-14" items={items} />
|
|
65
70
|
) : null}
|
|
66
71
|
{socialMedia.length ? <SocialMedia className="pb-0" media={socialMedia} /> : null}
|
|
67
72
|
</div>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
3
|
import type { Target } from '../../model/LinkProps';
|
|
4
|
+
import { style } from '../../utils/style';
|
|
4
5
|
|
|
5
6
|
interface LinkWrapperProps {
|
|
6
7
|
className?: string;
|
|
@@ -14,7 +15,7 @@ export const LinkWrapper = JSX<LinkWrapperProps>(({ className = '', href, target
|
|
|
14
15
|
const Tag = href ? 'a' : 'div';
|
|
15
16
|
|
|
16
17
|
return (
|
|
17
|
-
<Tag className={className} {...(href ? linkProps : {})}>
|
|
18
|
+
<Tag className={style('block', className)} {...(href ? linkProps : {})}>
|
|
18
19
|
{children}
|
|
19
20
|
</Tag>
|
|
20
21
|
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import {
|
|
4
|
-
type IntersectionObserverOptions,
|
|
5
4
|
useIntersectionObserver,
|
|
5
|
+
type IntersectionObserverOptions,
|
|
6
6
|
} from '../../hooks/useIntersectionObserver';
|
|
7
7
|
|
|
8
8
|
/**
|