@redneckz/wildless-cms-uni-blocks 0.14.50 → 0.14.52

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 (140) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +23 -27
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  5. package/bundle/components/Bonus/BonusContent.d.ts +7 -3
  6. package/bundle/components/Calculator/CalculatorContent.d.ts +14 -5
  7. package/bundle/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  8. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  9. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  10. package/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
  11. package/bundle/model/EmptyOptionType.d.ts +1 -3
  12. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  13. package/dist/components/Bonus/Bonus.js +1 -1
  14. package/dist/components/Bonus/Bonus.js.map +1 -1
  15. package/dist/components/Bonus/BonusContent.d.ts +7 -3
  16. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  17. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  18. package/dist/components/Calculator/CalculatorContent.d.ts +14 -5
  19. package/dist/components/LinkDocs/LinkDocs.js +3 -0
  20. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  21. package/dist/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  22. package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  23. package/dist/components/TariffsTable/TariffsTableCell.js +1 -8
  24. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  25. package/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  26. package/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
  27. package/dist/components/TariffsTable/TariffsTableRenderCell.js +14 -14
  28. package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  29. package/dist/model/EmptyOptionType.d.ts +1 -3
  30. package/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  31. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  32. package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  33. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  34. package/lib/common.css +1 -1
  35. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  36. package/lib/components/Bonus/Bonus.js +1 -1
  37. package/lib/components/Bonus/Bonus.js.map +1 -1
  38. package/lib/components/Bonus/BonusContent.d.ts +7 -3
  39. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  40. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  41. package/lib/components/Calculator/CalculatorContent.d.ts +14 -5
  42. package/lib/components/LinkDocs/LinkDocs.js +3 -0
  43. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  44. package/lib/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  45. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  46. package/lib/components/TariffsTable/TariffsTableCell.js +2 -9
  47. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  48. package/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  49. package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -1
  50. package/lib/components/TariffsTable/TariffsTableRenderCell.js +13 -12
  51. package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  52. package/lib/model/EmptyOptionType.d.ts +1 -3
  53. package/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  54. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  55. package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  56. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  57. package/mobile/bundle/bundle.umd.js +23 -27
  58. package/mobile/bundle/bundle.umd.min.js +1 -1
  59. package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  60. package/mobile/bundle/components/Bonus/BonusContent.d.ts +7 -3
  61. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +14 -5
  62. package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  63. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  64. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  65. package/mobile/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
  66. package/mobile/bundle/model/EmptyOptionType.d.ts +1 -3
  67. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  68. package/mobile/dist/components/Bonus/Bonus.js +1 -1
  69. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  70. package/mobile/dist/components/Bonus/BonusContent.d.ts +7 -3
  71. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  72. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  73. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +14 -5
  74. package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -0
  75. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  76. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  77. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  78. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -8
  79. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  80. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  81. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
  82. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +14 -14
  83. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  84. package/mobile/dist/model/EmptyOptionType.d.ts +1 -3
  85. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  86. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  87. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  88. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  89. package/mobile/lib/common.css +1 -1
  90. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  91. package/mobile/lib/components/Bonus/Bonus.js +1 -1
  92. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  93. package/mobile/lib/components/Bonus/BonusContent.d.ts +7 -3
  94. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  95. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  96. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +14 -5
  97. package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -0
  98. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  99. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  100. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  101. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +2 -9
  102. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  103. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  104. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
  105. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +13 -12
  106. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  107. package/mobile/lib/model/EmptyOptionType.d.ts +1 -3
  108. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  109. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  110. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  111. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  112. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
  113. package/mobile/src/components/Bonus/Bonus.tsx +1 -1
  114. package/mobile/src/components/Bonus/BonusContent.ts +8 -3
  115. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +1 -1
  116. package/mobile/src/components/Calculator/CalculatorContent.ts +16 -5
  117. package/mobile/src/components/LinkDocs/LinkDocs.tsx +3 -0
  118. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +10 -5
  119. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +8 -3
  120. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +14 -11
  121. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +8 -3
  122. package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +22 -18
  123. package/mobile/src/model/EmptyOptionType.ts +1 -3
  124. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
  125. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  126. package/package.json +1 -1
  127. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
  128. package/src/components/Bonus/Bonus.tsx +1 -1
  129. package/src/components/Bonus/BonusContent.ts +8 -3
  130. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +1 -1
  131. package/src/components/Calculator/CalculatorContent.ts +16 -5
  132. package/src/components/LinkDocs/LinkDocs.tsx +3 -0
  133. package/src/components/LinkDocs/LinkDocsContent.ts +10 -5
  134. package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +8 -3
  135. package/src/components/TariffsTable/TariffsTableCell.tsx +14 -11
  136. package/src/components/TariffsTable/TariffsTableContent.ts +8 -3
  137. package/src/components/TariffsTable/TariffsTableRenderCell.tsx +22 -18
  138. package/src/model/EmptyOptionType.ts +1 -3
  139. package/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
  140. package/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
@@ -1,3 +1,4 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
1
2
  import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
2
3
  import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
3
4
  import { EmbeddableCellData } from './EmbeddableCellData';
@@ -22,16 +23,22 @@ interface CellProps {
22
23
  displayTable: (props: TariffsTableInnerContent) => void;
23
24
  }
24
25
 
25
- export const renderCellInner =
26
+ export interface RenderCellInnerProps extends TariffTableCellInnerProps {
27
+ cell: CellDef;
28
+ fieldIdx: number;
29
+ }
30
+
31
+ export const RenderCellInner = JSX<RenderCellInnerProps>(
26
32
  ({
33
+ cell,
34
+ fieldIdx,
27
35
  rowIdx,
28
36
  cellIdx,
29
37
  setTableInner,
30
38
  tableInner,
31
39
  openTableInnerIdx,
32
40
  setOpenTableInnerIdx,
33
- }: TariffTableCellInnerProps) =>
34
- (cell: CellDef, i: number) => {
41
+ }) => {
35
42
  const [isVisible, setVisibility] = useState(true);
36
43
 
37
44
  useEffect(() => {
@@ -46,21 +53,18 @@ export const renderCellInner =
46
53
  setTableInner(props);
47
54
  };
48
55
 
49
- return (
50
- <div key={String(i)}>
51
- {renderCell({
52
- cell,
53
- cellProps: {
54
- rowIdx,
55
- cellIdx,
56
- fieldIdx: i,
57
- displayTable,
58
- isVisible,
59
- },
60
- })}
61
- </div>
62
- );
63
- };
56
+ return renderCell({
57
+ cell,
58
+ cellProps: {
59
+ rowIdx,
60
+ cellIdx,
61
+ fieldIdx,
62
+ displayTable,
63
+ isVisible,
64
+ },
65
+ });
66
+ },
67
+ );
64
68
 
65
69
  const renderCell = ({ cell, cellProps }: RenderCellProps) => {
66
70
  if (!cell) {
@@ -1,4 +1,2 @@
1
- /**
2
- * @title Не выбрано
3
- */
1
+ /** @title Не выбрано * */
4
2
  export type EmptyOption = null;
@@ -55,8 +55,8 @@ export const BaseTile = JSX<BaseTileProps>(
55
55
  {title ? <div className="relative">{title}</div> : null}
56
56
  <div
57
57
  className={style(
58
- 'grow relative flex flex-col @xl:flex-row gap-3xl',
59
- leftImage ? 'self-start' : '',
58
+ 'grow relative flex flex-col @xl:flex-row gap-3xl w-full',
59
+ leftImage ? 'self-start @xl:w-auto' : '',
60
60
  )}
61
61
  >
62
62
  {renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' })}
@@ -39,7 +39,7 @@ const renderButton =
39
39
  return text || icon?.icon ? (
40
40
  <Button
41
41
  key={index ? String(index) : ''}
42
- className={style('basis-full lg:basis-auto', buttonClassName)}
42
+ className={style('basis-full @lg:basis-auto', buttonClassName)}
43
43
  appendLeft={renderButtonIcon({ ...icon, iconVersion })}
44
44
  appendRight={renderButtonIcon({ ...iconRight, iconVersion: iconRightVersion })}
45
45
  version={version}