@redneckz/wildless-cms-uni-blocks 0.3.64 → 0.3.65

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 (84) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +9 -14
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Calculator/Calculator.js +5 -7
  5. package/dist/components/Calculator/Calculator.js.map +1 -1
  6. package/dist/components/Calculator/CalculatorContent.d.ts +52 -11
  7. package/dist/components/Calculator/renderCalculatorBlock.d.ts +2 -0
  8. package/dist/components/Calculator/renderCalculatorBlock.js +14 -0
  9. package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -0
  10. package/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +3 -0
  11. package/dist/components/GroupBlock/BlocksTypeProps.d.ts +2 -5
  12. package/dist/components/ProductGallery/ProductGallery.js +1 -1
  13. package/dist/model/EmptyOptionType.d.ts +4 -0
  14. package/dist/model/EmptyOptionType.js +2 -0
  15. package/dist/model/EmptyOptionType.js.map +1 -0
  16. package/dist/ui-kit/BlocksList/BlocksListProps.d.ts +4 -7
  17. package/lib/common.css +1 -1
  18. package/lib/components/Calculator/Calculator.js +5 -7
  19. package/lib/components/Calculator/Calculator.js.map +1 -1
  20. package/lib/components/Calculator/CalculatorContent.d.ts +52 -11
  21. package/lib/components/Calculator/renderCalculatorBlock.d.ts +2 -0
  22. package/lib/components/Calculator/renderCalculatorBlock.js +11 -0
  23. package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -0
  24. package/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +3 -0
  25. package/lib/components/GroupBlock/BlocksTypeProps.d.ts +2 -5
  26. package/lib/components/ProductGallery/ProductGallery.js +1 -1
  27. package/lib/model/EmptyOptionType.d.ts +4 -0
  28. package/lib/model/EmptyOptionType.js +2 -0
  29. package/lib/model/EmptyOptionType.js.map +1 -0
  30. package/lib/ui-kit/BlocksList/BlocksListProps.d.ts +4 -7
  31. package/mobile/dist/components/Calculator/Calculator.js +5 -7
  32. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  33. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +52 -11
  34. package/mobile/dist/components/Calculator/renderCalculatorBlock.d.ts +2 -0
  35. package/mobile/dist/components/Calculator/renderCalculatorBlock.js +14 -0
  36. package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -0
  37. package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +3 -0
  38. package/mobile/dist/components/GroupBlock/BlocksTypeProps.d.ts +2 -5
  39. package/mobile/dist/model/EmptyOptionType.d.ts +4 -0
  40. package/mobile/dist/model/EmptyOptionType.js +2 -0
  41. package/mobile/dist/model/EmptyOptionType.js.map +1 -0
  42. package/mobile/dist/ui-kit/BlocksList/BlocksListProps.d.ts +4 -7
  43. package/mobile/lib/components/Calculator/Calculator.js +5 -7
  44. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  45. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +52 -11
  46. package/mobile/lib/components/Calculator/renderCalculatorBlock.d.ts +2 -0
  47. package/mobile/lib/components/Calculator/renderCalculatorBlock.js +11 -0
  48. package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -0
  49. package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +3 -0
  50. package/mobile/lib/components/GroupBlock/BlocksTypeProps.d.ts +2 -5
  51. package/mobile/lib/model/EmptyOptionType.d.ts +4 -0
  52. package/mobile/lib/model/EmptyOptionType.js +2 -0
  53. package/mobile/lib/model/EmptyOptionType.js.map +1 -0
  54. package/mobile/lib/ui-kit/BlocksList/BlocksListProps.d.ts +4 -7
  55. package/mobile/src/components/Calculator/Calculator.example.json +21 -0
  56. package/mobile/src/components/Calculator/Calculator.tsx +6 -8
  57. package/mobile/src/components/Calculator/CalculatorContent.ts +53 -12
  58. package/mobile/src/components/Calculator/{renderCalculatorList.tsx → renderCalculatorBlock.tsx} +5 -17
  59. package/mobile/src/components/CreditCalculator/CreditCalculatorContent.ts +3 -0
  60. package/mobile/src/components/GroupBlock/BlocksTypeProps.ts +2 -6
  61. package/mobile/src/model/EmptyOptionType.ts +4 -0
  62. package/mobile/src/ui-kit/BlocksList/BlocksListProps.ts +4 -8
  63. package/package.json +1 -1
  64. package/src/components/Calculator/Calculator.example.json +21 -0
  65. package/src/components/Calculator/Calculator.tsx +6 -8
  66. package/src/components/Calculator/CalculatorContent.ts +53 -12
  67. package/src/components/Calculator/{renderCalculatorList.tsx → renderCalculatorBlock.tsx} +5 -17
  68. package/src/components/CreditCalculator/CreditCalculatorContent.ts +3 -0
  69. package/src/components/GroupBlock/BlocksTypeProps.ts +2 -6
  70. package/src/components/ProductGallery/ProductGallery.tsx +2 -2
  71. package/src/model/EmptyOptionType.ts +4 -0
  72. package/src/ui-kit/BlocksList/BlocksListProps.ts +4 -8
  73. package/dist/components/Calculator/renderCalculatorList.d.ts +0 -10
  74. package/dist/components/Calculator/renderCalculatorList.js +0 -17
  75. package/dist/components/Calculator/renderCalculatorList.js.map +0 -1
  76. package/lib/components/Calculator/renderCalculatorList.d.ts +0 -10
  77. package/lib/components/Calculator/renderCalculatorList.js +0 -14
  78. package/lib/components/Calculator/renderCalculatorList.js.map +0 -1
  79. package/mobile/dist/components/Calculator/renderCalculatorList.d.ts +0 -10
  80. package/mobile/dist/components/Calculator/renderCalculatorList.js +0 -17
  81. package/mobile/dist/components/Calculator/renderCalculatorList.js.map +0 -1
  82. package/mobile/lib/components/Calculator/renderCalculatorList.d.ts +0 -10
  83. package/mobile/lib/components/Calculator/renderCalculatorList.js +0 -14
  84. package/mobile/lib/components/Calculator/renderCalculatorList.js.map +0 -1
@@ -1,6 +1,7 @@
1
+ import { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
1
2
  import type { ProductBlockContent } from '../../components/ProductBlock/ProductBlockContent';
2
3
  import type { ProductTileContent } from '../../components/ProductTile/ProductTileContent';
3
- import { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
4
+ import type { EmptyOption } from '../../model/EmptyOptionType';
4
5
 
5
6
  export interface ActiveHandler {
6
7
  context: ContentPageContext;
@@ -29,11 +30,6 @@ export type ProductBlockDef = ProductBlockContent &
29
30
  export type ProductTileDef = ProductTileContent &
30
31
  GroupBlockCommonProps & { blockType: 'ProductTile' };
31
32
 
32
- /**
33
- * @title Выберите блок
34
- */
35
- export type EmptyOption = null;
36
-
37
33
  /**
38
34
  * @title Содержимое блока
39
35
  */
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { UniBlockProps } from '../../types';
3
2
  import type { BlockVersion } from '../../model/BlockVersion';
3
+ import type { UniBlockProps } from '../../types';
4
4
  import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
5
5
  import { ProductBlockInner } from '../ProductBlock/ProductBlockInner';
6
6
  import type { ProductGalleryContent } from './ProductGalleryContent';
@@ -107,7 +107,7 @@ function renderNavButton({ slide, i, activeSlideIndex, onClick, version }) {
107
107
  key={String(i)}
108
108
  onClick={onClick}
109
109
  aria-label={slide?.title}
110
- className={`box-border font-sans relative overflow-hidden border-[1px] border-white/50 cursor-pointer text-left mx-1 grow basis-0
110
+ className={`box-border font-sans relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0
111
111
  ${btnClassName} ${additionalBorder}
112
112
  `}
113
113
  >
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Выберите блок
3
+ */
4
+ export type EmptyOption = null;
@@ -1,14 +1,15 @@
1
+ import { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
1
2
  import type { GalleryContent } from '../../components/Gallery/GalleryContent';
2
3
  import type { HeadlineContent } from '../../components/Headline/HeadlineContent';
3
4
  import type { LinkDocsContent } from '../../components/LinkDocs/LinkDocsContent';
5
+ import type { LinkListContent } from '../../components/LinkList/LinkListContent';
4
6
  import type { MiniGalleryContent } from '../../components/MiniGallery/MiniGalleryContent';
5
7
  import type { PictureTextContent } from '../../components/PictureText/PictureTextContent';
6
8
  import type { ProductBlockContent } from '../../components/ProductBlock/ProductBlockContent';
7
9
  import type { ProductTileContent } from '../../components/ProductTile/ProductTileContent';
8
10
  import type { TextBlockContent } from '../../components/TextBlock/TextBlockContent';
9
11
  import type { TileContent } from '../../components/Tile/TileContent';
10
- import type { LinkListContent } from '../../components/LinkList/LinkListContent';
11
- import { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
12
+ import type { EmptyOption } from '../../model/EmptyOptionType';
12
13
 
13
14
  export interface ActiveHandler {
14
15
  context: ContentPageContext;
@@ -65,7 +66,7 @@ export type TileBlockListDef = TileContent & { blockListType: 'Tile' };
65
66
  export type ProductTileBlockListDef = ProductTileContent & { blockListType: 'ProductTile' };
66
67
 
67
68
  /**
68
- * @title Галлерея
69
+ * @title Галерея
69
70
  * @default {"blockListType": "Gallery"}
70
71
  */
71
72
  export type GalleryBlockListDef = GalleryContent & { blockListType: 'Gallery' };
@@ -82,11 +83,6 @@ export type MiniGalleryBlockListDef = MiniGalleryContent & { blockListType: 'Min
82
83
  */
83
84
  export type LinkListBlockListDef = LinkListContent & { blockListType: 'LinkList' };
84
85
 
85
- /**
86
- * @title Выберите блок
87
- */
88
- export type EmptyOption = null;
89
-
90
86
  /**
91
87
  * @title Содержимое блока
92
88
  */
@@ -1,10 +0,0 @@
1
- import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
2
- import type { CalculatorBlockDef } from './CalculatorContent';
3
- import { EmbeddableCalcBlocks } from './EmbeddableCalcBlocks';
4
- declare type EmbeddableCalcBlocks = {
5
- blockCalcTabs?: CalculatorBlockDef[];
6
- context: ContentPageContext;
7
- className?: string;
8
- };
9
- export declare const renderCalculatorList: ({ blockCalcTabs, context, className, }: EmbeddableCalcBlocks) => any[] | null;
10
- export {};
@@ -1,17 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderCalculatorList = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const EmbeddableCalcBlocks_1 = require("./EmbeddableCalcBlocks");
5
- const renderCalculatorList = ({ blockCalcTabs, context, className, }) => {
6
- return blockCalcTabs?.length ? blockCalcTabs.map(renderBlock({ context, className })) : null;
7
- };
8
- exports.renderCalculatorList = renderCalculatorList;
9
- const renderBlock = ({ context, className }) => (blockCalcTabs, i) => {
10
- const type = blockCalcTabs?.calcType;
11
- if (!type || !(type in EmbeddableCalcBlocks_1.EmbeddableCalcBlocks)) {
12
- return null;
13
- }
14
- const EmbeddedBlock = EmbeddableCalcBlocks_1.EmbeddableCalcBlocks[type];
15
- return ((0, jsx_runtime_1.jsx)("section", { className: `box-border relative flex grow-0 shrink-0 basis-full ${className}`, role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: `box-border p-9 w-full`, children: (0, jsx_runtime_1.jsx)(EmbeddedBlock, { context: context, ...blockCalcTabs, className: "!p-0 flex justify-between" }) }) }, `${String(i)}`));
16
- };
17
- //# sourceMappingURL=renderCalculatorList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderCalculatorList.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderCalculatorList.tsx"],"names":[],"mappings":";;;AAGA,iEAAmF;AAQ5E,MAAM,oBAAoB,GAAG,CAAC,EACnC,aAAa,EACb,OAAO,EACP,SAAS,GACY,EAAE,EAAE;IACzB,OAAO,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/F,CAAC,CAAC;AANW,QAAA,oBAAoB,wBAM/B;AAEF,MAAM,WAAW,GACf,CAAC,EAAE,OAAO,EAAE,SAAS,EAAO,EAAE,EAAE,CAChC,CAAC,aAAiC,EAAE,CAAS,EAAE,EAAE;IAC/C,MAAM,IAAI,GAAG,aAAa,EAAE,QAAQ,CAAC;IACrC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,2CAAoB,CAAC,EAAE;QAC5C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,aAAa,GAAkC,2CAAoB,CAAC,IAAI,CAAC,CAAC;IAChF,OAAO,CACL,oCAEE,SAAS,EAAE,uDAAuD,SAAS,EAAE,EAC7E,IAAI,EAAC,UAAU,YAEf,gCAAK,SAAS,EAAE,uBAAuB,YACrC,uBAAC,aAAa,IACZ,OAAO,EAAE,OAAO,KACZ,aAAa,EACjB,SAAS,EAAC,2BAA2B,GACrC,GACE,IAVD,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAWX,CACX,CAAC;AACJ,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
2
- import type { CalculatorBlockDef } from './CalculatorContent';
3
- import { EmbeddableCalcBlocks } from './EmbeddableCalcBlocks';
4
- declare type EmbeddableCalcBlocks = {
5
- blockCalcTabs?: CalculatorBlockDef[];
6
- context: ContentPageContext;
7
- className?: string;
8
- };
9
- export declare const renderCalculatorList: ({ blockCalcTabs, context, className, }: EmbeddableCalcBlocks) => any[] | null;
10
- export {};
@@ -1,14 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { EmbeddableCalcBlocks } from './EmbeddableCalcBlocks.js';
3
- export const renderCalculatorList = ({ blockCalcTabs, context, className, }) => {
4
- return blockCalcTabs?.length ? blockCalcTabs.map(renderBlock({ context, className })) : null;
5
- };
6
- const renderBlock = ({ context, className }) => (blockCalcTabs, i) => {
7
- const type = blockCalcTabs?.calcType;
8
- if (!type || !(type in EmbeddableCalcBlocks)) {
9
- return null;
10
- }
11
- const EmbeddedBlock = EmbeddableCalcBlocks[type];
12
- return (_jsx("section", { className: `box-border relative flex grow-0 shrink-0 basis-full ${className}`, role: "listitem", children: _jsx("div", { className: `box-border p-9 w-full`, children: _jsx(EmbeddedBlock, { context: context, ...blockCalcTabs, className: "!p-0 flex justify-between" }) }) }, `${String(i)}`));
13
- };
14
- //# sourceMappingURL=renderCalculatorList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderCalculatorList.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderCalculatorList.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,oBAAoB,EAAuB,MAAM,wBAAwB,CAAC;AAQnF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACnC,aAAa,EACb,OAAO,EACP,SAAS,GACY,EAAE,EAAE;IACzB,OAAO,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/F,CAAC,CAAC;AAEF,MAAM,WAAW,GACf,CAAC,EAAE,OAAO,EAAE,SAAS,EAAO,EAAE,EAAE,CAChC,CAAC,aAAiC,EAAE,CAAS,EAAE,EAAE;IAC/C,MAAM,IAAI,GAAG,aAAa,EAAE,QAAQ,CAAC;IACrC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,oBAAoB,CAAC,EAAE;QAC5C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,aAAa,GAAkC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAChF,OAAO,CACL,kBAEE,SAAS,EAAE,uDAAuD,SAAS,EAAE,EAC7E,IAAI,EAAC,UAAU,YAEf,cAAK,SAAS,EAAE,uBAAuB,YACrC,KAAC,aAAa,IACZ,OAAO,EAAE,OAAO,KACZ,aAAa,EACjB,SAAS,EAAC,2BAA2B,GACrC,GACE,IAVD,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAWX,CACX,CAAC;AACJ,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
2
- import type { CalculatorBlockDef } from './CalculatorContent';
3
- import { EmbeddableCalcBlocks } from './EmbeddableCalcBlocks';
4
- declare type EmbeddableCalcBlocks = {
5
- blockCalcTabs?: CalculatorBlockDef[];
6
- context: ContentPageContext;
7
- className?: string;
8
- };
9
- export declare const renderCalculatorList: ({ blockCalcTabs, context, className, }: EmbeddableCalcBlocks) => any[] | null;
10
- export {};
@@ -1,17 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderCalculatorList = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const EmbeddableCalcBlocks_1 = require("./EmbeddableCalcBlocks");
5
- const renderCalculatorList = ({ blockCalcTabs, context, className, }) => {
6
- return blockCalcTabs?.length ? blockCalcTabs.map(renderBlock({ context, className })) : null;
7
- };
8
- exports.renderCalculatorList = renderCalculatorList;
9
- const renderBlock = ({ context, className }) => (blockCalcTabs, i) => {
10
- const type = blockCalcTabs?.calcType;
11
- if (!type || !(type in EmbeddableCalcBlocks_1.EmbeddableCalcBlocks)) {
12
- return null;
13
- }
14
- const EmbeddedBlock = EmbeddableCalcBlocks_1.EmbeddableCalcBlocks[type];
15
- return ((0, jsx_runtime_1.jsx)("section", { className: `box-border relative flex grow-0 shrink-0 basis-full ${className}`, role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: `box-border p-9 w-full`, children: (0, jsx_runtime_1.jsx)(EmbeddedBlock, { context: context, ...blockCalcTabs, className: "!p-0 flex justify-between" }) }) }, `${String(i)}`));
16
- };
17
- //# sourceMappingURL=renderCalculatorList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderCalculatorList.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderCalculatorList.tsx"],"names":[],"mappings":";;;AAGA,iEAAmF;AAQ5E,MAAM,oBAAoB,GAAG,CAAC,EACnC,aAAa,EACb,OAAO,EACP,SAAS,GACY,EAAE,EAAE;IACzB,OAAO,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/F,CAAC,CAAC;AANW,QAAA,oBAAoB,wBAM/B;AAEF,MAAM,WAAW,GACf,CAAC,EAAE,OAAO,EAAE,SAAS,EAAO,EAAE,EAAE,CAChC,CAAC,aAAiC,EAAE,CAAS,EAAE,EAAE;IAC/C,MAAM,IAAI,GAAG,aAAa,EAAE,QAAQ,CAAC;IACrC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,2CAAoB,CAAC,EAAE;QAC5C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,aAAa,GAAkC,2CAAoB,CAAC,IAAI,CAAC,CAAC;IAChF,OAAO,CACL,oCAEE,SAAS,EAAE,uDAAuD,SAAS,EAAE,EAC7E,IAAI,EAAC,UAAU,YAEf,gCAAK,SAAS,EAAE,uBAAuB,YACrC,uBAAC,aAAa,IACZ,OAAO,EAAE,OAAO,KACZ,aAAa,EACjB,SAAS,EAAC,2BAA2B,GACrC,GACE,IAVD,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAWX,CACX,CAAC;AACJ,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
2
- import type { CalculatorBlockDef } from './CalculatorContent';
3
- import { EmbeddableCalcBlocks } from './EmbeddableCalcBlocks';
4
- declare type EmbeddableCalcBlocks = {
5
- blockCalcTabs?: CalculatorBlockDef[];
6
- context: ContentPageContext;
7
- className?: string;
8
- };
9
- export declare const renderCalculatorList: ({ blockCalcTabs, context, className, }: EmbeddableCalcBlocks) => any[] | null;
10
- export {};
@@ -1,14 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { EmbeddableCalcBlocks } from './EmbeddableCalcBlocks.js';
3
- export const renderCalculatorList = ({ blockCalcTabs, context, className, }) => {
4
- return blockCalcTabs?.length ? blockCalcTabs.map(renderBlock({ context, className })) : null;
5
- };
6
- const renderBlock = ({ context, className }) => (blockCalcTabs, i) => {
7
- const type = blockCalcTabs?.calcType;
8
- if (!type || !(type in EmbeddableCalcBlocks)) {
9
- return null;
10
- }
11
- const EmbeddedBlock = EmbeddableCalcBlocks[type];
12
- return (_jsx("section", { className: `box-border relative flex grow-0 shrink-0 basis-full ${className}`, role: "listitem", children: _jsx("div", { className: `box-border p-9 w-full`, children: _jsx(EmbeddedBlock, { context: context, ...blockCalcTabs, className: "!p-0 flex justify-between" }) }) }, `${String(i)}`));
13
- };
14
- //# sourceMappingURL=renderCalculatorList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderCalculatorList.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderCalculatorList.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,oBAAoB,EAAuB,MAAM,wBAAwB,CAAC;AAQnF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACnC,aAAa,EACb,OAAO,EACP,SAAS,GACY,EAAE,EAAE;IACzB,OAAO,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/F,CAAC,CAAC;AAEF,MAAM,WAAW,GACf,CAAC,EAAE,OAAO,EAAE,SAAS,EAAO,EAAE,EAAE,CAChC,CAAC,aAAiC,EAAE,CAAS,EAAE,EAAE;IAC/C,MAAM,IAAI,GAAG,aAAa,EAAE,QAAQ,CAAC;IACrC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,oBAAoB,CAAC,EAAE;QAC5C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,aAAa,GAAkC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAChF,OAAO,CACL,kBAEE,SAAS,EAAE,uDAAuD,SAAS,EAAE,EAC7E,IAAI,EAAC,UAAU,YAEf,cAAK,SAAS,EAAE,uBAAuB,YACrC,KAAC,aAAa,IACZ,OAAO,EAAE,OAAO,KACZ,aAAa,EACjB,SAAS,EAAC,2BAA2B,GACrC,GACE,IAVD,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAWX,CACX,CAAC;AACJ,CAAC,CAAC"}