@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.
Files changed (51) hide show
  1. package/bundle/bundle.umd.js +6 -6
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
  4. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  5. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
  6. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  7. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  8. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  9. package/dist/ui-kit/LinkWrapper/LinkWrapper.js +2 -1
  10. package/dist/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
  11. package/lib/common.css +1 -1
  12. package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  13. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  14. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
  15. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  16. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  17. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  18. package/lib/ui-kit/LinkWrapper/LinkWrapper.js +2 -1
  19. package/lib/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
  20. package/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
  21. package/mobile/bundle/bundle.umd.js +1 -1
  22. package/mobile/bundle/bundle.umd.min.js +1 -1
  23. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
  24. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  25. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
  26. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  27. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  28. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  29. package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.js +2 -1
  30. package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
  31. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  32. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  33. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
  34. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  35. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  36. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  37. package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.js +2 -1
  38. package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
  39. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
  40. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
  41. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +3 -3
  42. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +13 -8
  43. package/mobile/src/ui-kit/LinkWrapper/LinkWrapper.tsx +2 -1
  44. package/mobile/src/ui-kit/SwipeListControl/SwipeListItem.tsx +1 -1
  45. package/package.json +1 -1
  46. package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
  47. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +2 -2
  48. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +3 -3
  49. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +13 -8
  50. package/src/ui-kit/LinkWrapper/LinkWrapper.tsx +2 -1
  51. 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 flex flex-col box-border group-data-gray:bg-main-divider/50',
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 className="flex flex-col" href={href} target={target}>
47
- <div className="self-center">
48
- {title ? <Heading headingType="h3" as="h3" className="mb-8" title={title} /> : null}
49
- </div>
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 align-center w-full">
62
- <div className="w-1/2 h-full flex flex-col flex-1 justify-end">
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 pb-16 mb-3" items={items} />
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -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 min-w-[536px]', className)} {...rest}>
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=" mb-3.5" headingType="h5" title={title} /> : null}
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={`text-h6`}>{_.title}</div> : null}
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 flex flex-col box-border group-data-gray:bg-main-divider/50',
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 className="flex flex-col" href={href} target={target}>
47
- <div className="self-center">
48
- {title ? <Heading headingType="h3" as="h3" className="mb-8" title={title} /> : null}
49
- </div>
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 align-center w-full">
62
- <div className="w-1/2 h-full flex flex-col flex-1 justify-end">
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 pb-16 mb-3" items={items} />
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
  /**