@redneckz/wildless-cms-uni-blocks 0.14.998 → 0.14.1000

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 (81) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +9 -9
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
  5. package/bundle/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
  6. package/bundle/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
  7. package/dist/components/CalculatorRko/CalculatorRko.js +2 -2
  8. package/dist/components/CalculatorRko/CalculatorRko.js.map +1 -1
  9. package/dist/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
  10. package/dist/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
  11. package/dist/components/RkoTariffCardsTable/RkoTariffCard.js +2 -2
  12. package/dist/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
  13. package/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js +2 -2
  14. package/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
  15. package/dist/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
  16. package/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
  17. package/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js.map +1 -1
  18. package/dist/ui-kit/Calculator/renderCountInput.js +1 -1
  19. package/dist/ui-kit/Calculator/renderCountInput.js.map +1 -1
  20. package/lib/components/CalculatorRko/CalculatorRko.js +2 -2
  21. package/lib/components/CalculatorRko/CalculatorRko.js.map +1 -1
  22. package/lib/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
  23. package/lib/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
  24. package/lib/components/RkoTariffCardsTable/RkoTariffCard.js +2 -2
  25. package/lib/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
  26. package/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js +2 -2
  27. package/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
  28. package/lib/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
  29. package/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
  30. package/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js.map +1 -1
  31. package/lib/ui-kit/Calculator/renderCountInput.js +1 -1
  32. package/lib/ui-kit/Calculator/renderCountInput.js.map +1 -1
  33. package/mobile/bundle/bundle.umd.js +9 -9
  34. package/mobile/bundle/bundle.umd.min.js +1 -1
  35. package/mobile/bundle/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
  36. package/mobile/bundle/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
  37. package/mobile/bundle/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
  38. package/mobile/dist/components/CalculatorRko/CalculatorRko.js +2 -2
  39. package/mobile/dist/components/CalculatorRko/CalculatorRko.js.map +1 -1
  40. package/mobile/dist/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
  41. package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
  42. package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCard.js +2 -2
  43. package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
  44. package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js +2 -2
  45. package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
  46. package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
  47. package/mobile/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
  48. package/mobile/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js.map +1 -1
  49. package/mobile/dist/ui-kit/Calculator/renderCountInput.js +1 -1
  50. package/mobile/dist/ui-kit/Calculator/renderCountInput.js.map +1 -1
  51. package/mobile/lib/components/CalculatorRko/CalculatorRko.js +2 -2
  52. package/mobile/lib/components/CalculatorRko/CalculatorRko.js.map +1 -1
  53. package/mobile/lib/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
  54. package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
  55. package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCard.js +2 -2
  56. package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
  57. package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js +2 -2
  58. package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
  59. package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
  60. package/mobile/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
  61. package/mobile/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js.map +1 -1
  62. package/mobile/lib/ui-kit/Calculator/renderCountInput.js +1 -1
  63. package/mobile/lib/ui-kit/Calculator/renderCountInput.js.map +1 -1
  64. package/mobile/src/components/CalculatorRko/CalculatorRko.tsx +14 -2
  65. package/mobile/src/components/CalculatorRko/CalculatorRkoContent.ts +2 -0
  66. package/mobile/src/components/RkoTariffCardsTable/RkoTariffCard.tsx +3 -3
  67. package/mobile/src/components/RkoTariffCardsTable/RkoTariffCardsTable.tsx +6 -2
  68. package/mobile/src/components/RkoTariffCardsTable/RkoTariffCardsTableContent.ts +1 -2
  69. package/mobile/src/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.tsx +5 -3
  70. package/mobile/src/ui-kit/Calculator/renderCountInput.tsx +1 -1
  71. package/package.json +1 -1
  72. package/src/components/CalculatorRko/CalculatorRko.fixture.tsx +1 -0
  73. package/src/components/CalculatorRko/CalculatorRko.tsx +14 -2
  74. package/src/components/CalculatorRko/CalculatorRkoContent.ts +2 -0
  75. package/src/components/RkoTariffCardsTable/RkoTariffCard.tsx +3 -3
  76. package/src/components/RkoTariffCardsTable/RkoTariffCardsTable.fixture.mobile.tsx +0 -11
  77. package/src/components/RkoTariffCardsTable/RkoTariffCardsTable.fixture.tsx +0 -11
  78. package/src/components/RkoTariffCardsTable/RkoTariffCardsTable.tsx +6 -2
  79. package/src/components/RkoTariffCardsTable/RkoTariffCardsTableContent.ts +1 -2
  80. package/src/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.tsx +5 -3
  81. package/src/ui-kit/Calculator/renderCountInput.tsx +1 -1
@@ -4,7 +4,6 @@ import { useMobileMode } from '../../hooks/useMobileMode';
4
4
  import { type ComponentType } from '../../model/ComponentType';
5
5
  import { Heading } from '../../ui-kit/Heading/Heading';
6
6
  import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
7
- import type { LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
8
7
  import type { Option } from '../../ui-kit/Select/Option';
9
8
  import { Text } from '../../ui-kit/Text/Text';
10
9
  import { style } from '../../utils/style';
@@ -16,8 +15,8 @@ import { type TariffCardContent } from './RkoTariffCardsTableContent';
16
15
 
17
16
  export interface TariffCardProps extends TariffCardContent, ComponentType {
18
17
  currency: Option;
19
- buttons: LinkButtonContent[];
20
18
  commissionTypes?: string[];
19
+ openDepositBtnLink?: string;
21
20
  }
22
21
 
23
22
  export const RkoTariffCard = JSX(
@@ -34,6 +33,7 @@ export const RkoTariffCard = JSX(
34
33
  currency,
35
34
  isBest = false,
36
35
  commissionTypes,
36
+ openDepositBtnLink,
37
37
  }: TariffCardProps) => {
38
38
  const [isUnfolded, { toggle }] = useBool(false);
39
39
 
@@ -82,7 +82,7 @@ export const RkoTariffCard = JSX(
82
82
  version={isBest ? 'secondary' : 'primary'}
83
83
  className={style('basis-full @lg:basis-auto w-full')}
84
84
  text="Открыть счёт"
85
- href="/business/calculator-rko#opendeposit"
85
+ href={openDepositBtnLink}
86
86
  onClick={handleOpenDepositClick}
87
87
  />
88
88
  </div>
@@ -1,4 +1,3 @@
1
- import type { LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
2
1
  import { RkoTariffCardsTable } from './RkoTariffCardsTable';
3
2
 
4
3
  const ITEMS = [
@@ -37,15 +36,6 @@ const ITEMS = [
37
36
  },
38
37
  ];
39
38
 
40
- const buttons: LinkButtonContent[] = [
41
- {
42
- href: 'https://rshb.ru',
43
- text: 'Открыть счёт',
44
- target: '_self',
45
- version: 'secondary',
46
- },
47
- ];
48
-
49
39
  export default {
50
40
  default: (
51
41
  <RkoTariffCardsTable
@@ -54,7 +44,6 @@ export default {
54
44
  text: '₽',
55
45
  key: 'rub',
56
46
  }}
57
- buttons={buttons}
58
47
  />
59
48
  ),
60
49
  };
@@ -1,4 +1,3 @@
1
- import type { LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
2
1
  import { RkoTariffCardsTable } from './RkoTariffCardsTable';
3
2
 
4
3
  const ITEMS = [
@@ -37,15 +36,6 @@ const ITEMS = [
37
36
  },
38
37
  ];
39
38
 
40
- const buttons: LinkButtonContent[] = [
41
- {
42
- href: 'https://rshb.ru',
43
- text: 'Открыть счёт',
44
- target: '_self',
45
- version: 'secondary',
46
- },
47
- ];
48
-
49
39
  export default {
50
40
  default: (
51
41
  <RkoTariffCardsTable
@@ -54,7 +44,6 @@ export default {
54
44
  text: '₽',
55
45
  key: 'rub',
56
46
  }}
57
- buttons={buttons}
58
47
  />
59
48
  ),
60
49
  };
@@ -11,7 +11,11 @@ import { type RkoTariffCardsTableContent } from './RkoTariffCardsTableContent';
11
11
  export interface RkoTariffCardsTableProps extends RkoTariffCardsTableContent, UniBlockProps {}
12
12
 
13
13
  export const RkoTariffCardsTable = JSX(
14
- ({ items = [], currency = RKO_DEFAULT_CURRENCY, buttons = [] }: RkoTariffCardsTableProps) => {
14
+ ({
15
+ items = [],
16
+ currency = RKO_DEFAULT_CURRENCY,
17
+ openDepositBtnLink = '',
18
+ }: RkoTariffCardsTableProps) => {
15
19
  const isMobileMode = useMobileMode();
16
20
 
17
21
  const commissionTypes: CommissionKey[] = getSortedCommissionTypes(items) ?? [];
@@ -34,7 +38,7 @@ export const RkoTariffCardsTable = JSX(
34
38
  {...item}
35
39
  className={tableLayoutStyle}
36
40
  currency={currency}
37
- buttons={buttons}
41
+ openDepositBtnLink={openDepositBtnLink}
38
42
  commissionTypes={commissionTypes}
39
43
  />
40
44
  </div>
@@ -1,4 +1,3 @@
1
- import type { LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
2
1
  import type { Option } from '../../ui-kit/Select/Option';
3
2
  import { type TariffProps } from '../CalculatorRko/CalculatorRkoContent';
4
3
 
@@ -14,5 +13,5 @@ export interface TariffCardContent extends TariffProps {
14
13
  export interface RkoTariffCardsTableContent {
15
14
  items?: TariffCardContent[];
16
15
  currency?: Option;
17
- buttons?: LinkButtonContent[];
16
+ openDepositBtnLink?: string;
18
17
  }
@@ -10,9 +10,11 @@ interface RkoTariffsTableHeader extends ComponentType {
10
10
  export const renderRkoTariffsTableHeader = ({ params, className }: RkoTariffsTableHeader) => {
11
11
  return params ? (
12
12
  <div className={style(className)}>
13
- <Text size="text-xs" font="font-medium" className="col-span-2">
14
- {RKO_COMMISSIONS_TITLE_MAP['tariffName']}
15
- </Text>
13
+ <div>
14
+ <Text size="text-xs" font="font-medium" className="col-span-2">
15
+ {RKO_COMMISSIONS_TITLE_MAP['tariffName']}
16
+ </Text>
17
+ </div>
16
18
  {params.map((param, index) => (
17
19
  <div key={index}>
18
20
  <Text size="text-xs" font="font-medium">
@@ -9,5 +9,5 @@ export const renderCountInput = ({
9
9
  step = DEFAULT_AMOUNT_STEP,
10
10
  ...rest
11
11
  }: InputRangeProps) => (
12
- <InputRange items={[`От ${min} шт`, `До ${max} шт`]} step={step} {...rest} />
12
+ <InputRange items={[`От ${min} шт`, `До ${max} шт`]} step={step} min={min} max={max} {...rest} />
13
13
  );