@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.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +9 -9
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
- package/bundle/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
- package/bundle/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
- package/dist/components/CalculatorRko/CalculatorRko.js +2 -2
- package/dist/components/CalculatorRko/CalculatorRko.js.map +1 -1
- package/dist/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
- package/dist/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
- package/dist/components/RkoTariffCardsTable/RkoTariffCard.js +2 -2
- package/dist/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
- package/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js +2 -2
- package/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/dist/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
- package/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
- package/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js.map +1 -1
- package/dist/ui-kit/Calculator/renderCountInput.js +1 -1
- package/dist/ui-kit/Calculator/renderCountInput.js.map +1 -1
- package/lib/components/CalculatorRko/CalculatorRko.js +2 -2
- package/lib/components/CalculatorRko/CalculatorRko.js.map +1 -1
- package/lib/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
- package/lib/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
- package/lib/components/RkoTariffCardsTable/RkoTariffCard.js +2 -2
- package/lib/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
- package/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js +2 -2
- package/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/lib/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
- package/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
- package/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js.map +1 -1
- package/lib/ui-kit/Calculator/renderCountInput.js +1 -1
- package/lib/ui-kit/Calculator/renderCountInput.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +9 -9
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
- package/mobile/bundle/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
- package/mobile/bundle/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
- package/mobile/dist/components/CalculatorRko/CalculatorRko.js +2 -2
- package/mobile/dist/components/CalculatorRko/CalculatorRko.js.map +1 -1
- package/mobile/dist/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCard.js +2 -2
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js +2 -2
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
- package/mobile/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
- package/mobile/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/renderCountInput.js +1 -1
- package/mobile/dist/ui-kit/Calculator/renderCountInput.js.map +1 -1
- package/mobile/lib/components/CalculatorRko/CalculatorRko.js +2 -2
- package/mobile/lib/components/CalculatorRko/CalculatorRko.js.map +1 -1
- package/mobile/lib/components/CalculatorRko/CalculatorRkoContent.d.ts +2 -0
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCard.d.ts +1 -2
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCard.js +2 -2
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCard.js.map +1 -1
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js +2 -2
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCardsTableContent.d.ts +1 -2
- package/mobile/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
- package/mobile/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/renderCountInput.js +1 -1
- package/mobile/lib/ui-kit/Calculator/renderCountInput.js.map +1 -1
- package/mobile/src/components/CalculatorRko/CalculatorRko.tsx +14 -2
- package/mobile/src/components/CalculatorRko/CalculatorRkoContent.ts +2 -0
- package/mobile/src/components/RkoTariffCardsTable/RkoTariffCard.tsx +3 -3
- package/mobile/src/components/RkoTariffCardsTable/RkoTariffCardsTable.tsx +6 -2
- package/mobile/src/components/RkoTariffCardsTable/RkoTariffCardsTableContent.ts +1 -2
- package/mobile/src/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.tsx +5 -3
- package/mobile/src/ui-kit/Calculator/renderCountInput.tsx +1 -1
- package/package.json +1 -1
- package/src/components/CalculatorRko/CalculatorRko.fixture.tsx +1 -0
- package/src/components/CalculatorRko/CalculatorRko.tsx +14 -2
- package/src/components/CalculatorRko/CalculatorRkoContent.ts +2 -0
- package/src/components/RkoTariffCardsTable/RkoTariffCard.tsx +3 -3
- package/src/components/RkoTariffCardsTable/RkoTariffCardsTable.fixture.mobile.tsx +0 -11
- package/src/components/RkoTariffCardsTable/RkoTariffCardsTable.fixture.tsx +0 -11
- package/src/components/RkoTariffCardsTable/RkoTariffCardsTable.tsx +6 -2
- package/src/components/RkoTariffCardsTable/RkoTariffCardsTableContent.ts +1 -2
- package/src/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.tsx +5 -3
- 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=
|
|
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
|
-
({
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
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
|
);
|