@redneckz/wildless-cms-uni-blocks 0.14.1039 → 0.14.1040

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 (70) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +17 -23
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ReferalForm/ReferalFormContent.d.ts +2 -2
  5. package/bundle/components/ReferalForm/referalFormData.d.ts +2 -2
  6. package/dist/components/ReferalForm/ReferalForm.js +6 -6
  7. package/dist/components/ReferalForm/ReferalForm.js.map +1 -1
  8. package/dist/components/ReferalForm/ReferalFormContent.d.ts +2 -2
  9. package/dist/components/ReferalForm/referalFormData.d.ts +2 -2
  10. package/dist/components/ReferalForm/referalFormData.js +8 -14
  11. package/dist/components/ReferalForm/referalFormData.js.map +1 -1
  12. package/dist/components/ReferalForm/renderLinkInput.js +4 -1
  13. package/dist/components/ReferalForm/renderLinkInput.js.map +1 -1
  14. package/lib/components/ReferalForm/ReferalForm.js +6 -6
  15. package/lib/components/ReferalForm/ReferalForm.js.map +1 -1
  16. package/lib/components/ReferalForm/ReferalFormContent.d.ts +2 -2
  17. package/lib/components/ReferalForm/referalFormData.d.ts +2 -2
  18. package/lib/components/ReferalForm/referalFormData.js +7 -13
  19. package/lib/components/ReferalForm/referalFormData.js.map +1 -1
  20. package/lib/components/ReferalForm/renderLinkInput.js +4 -1
  21. package/lib/components/ReferalForm/renderLinkInput.js.map +1 -1
  22. package/mobile/bundle/bundle.umd.js +17 -23
  23. package/mobile/bundle/bundle.umd.min.js +1 -1
  24. package/mobile/bundle/components/ReferalForm/ReferalFormContent.d.ts +2 -2
  25. package/mobile/bundle/components/ReferalForm/referalFormData.d.ts +2 -2
  26. package/mobile/dist/components/ReferalForm/ReferalForm.js +6 -6
  27. package/mobile/dist/components/ReferalForm/ReferalForm.js.map +1 -1
  28. package/mobile/dist/components/ReferalForm/ReferalFormContent.d.ts +2 -2
  29. package/mobile/dist/components/ReferalForm/referalFormData.d.ts +2 -2
  30. package/mobile/dist/components/ReferalForm/referalFormData.js +8 -14
  31. package/mobile/dist/components/ReferalForm/referalFormData.js.map +1 -1
  32. package/mobile/dist/components/ReferalForm/renderLinkInput.js +4 -1
  33. package/mobile/dist/components/ReferalForm/renderLinkInput.js.map +1 -1
  34. package/mobile/lib/components/ReferalForm/ReferalForm.js +6 -6
  35. package/mobile/lib/components/ReferalForm/ReferalForm.js.map +1 -1
  36. package/mobile/lib/components/ReferalForm/ReferalFormContent.d.ts +2 -2
  37. package/mobile/lib/components/ReferalForm/referalFormData.d.ts +2 -2
  38. package/mobile/lib/components/ReferalForm/referalFormData.js +7 -13
  39. package/mobile/lib/components/ReferalForm/referalFormData.js.map +1 -1
  40. package/mobile/lib/components/ReferalForm/renderLinkInput.js +4 -1
  41. package/mobile/lib/components/ReferalForm/renderLinkInput.js.map +1 -1
  42. package/mobile/src/components/ReferalForm/ReferalForm.example.json +3 -1
  43. package/mobile/src/components/ReferalForm/ReferalForm.tsx +11 -11
  44. package/mobile/src/components/ReferalForm/ReferalFormContent.ts +11 -9
  45. package/mobile/src/components/ReferalForm/referalFormData.ts +8 -14
  46. package/mobile/src/components/ReferalForm/renderLinkInput.tsx +5 -1
  47. package/package.json +1 -1
  48. package/src/components/ReferalForm/ReferalForm.example.json +3 -1
  49. package/src/components/ReferalForm/ReferalForm.fixture.mobile.tsx +2 -0
  50. package/src/components/ReferalForm/ReferalForm.fixture.tsx +2 -0
  51. package/src/components/ReferalForm/ReferalForm.tsx +11 -11
  52. package/src/components/ReferalForm/ReferalFormContent.ts +11 -9
  53. package/src/components/ReferalForm/referalFormData.ts +8 -14
  54. package/src/components/ReferalForm/renderLinkInput.tsx +5 -1
  55. package/bundle/components/ReferalForm/renderSections.d.ts +0 -3
  56. package/dist/components/ReferalForm/renderSections.d.ts +0 -3
  57. package/dist/components/ReferalForm/renderSections.js +0 -10
  58. package/dist/components/ReferalForm/renderSections.js.map +0 -1
  59. package/lib/components/ReferalForm/renderSections.d.ts +0 -3
  60. package/lib/components/ReferalForm/renderSections.js +0 -7
  61. package/lib/components/ReferalForm/renderSections.js.map +0 -1
  62. package/mobile/bundle/components/ReferalForm/renderSections.d.ts +0 -3
  63. package/mobile/dist/components/ReferalForm/renderSections.d.ts +0 -3
  64. package/mobile/dist/components/ReferalForm/renderSections.js +0 -10
  65. package/mobile/dist/components/ReferalForm/renderSections.js.map +0 -1
  66. package/mobile/lib/components/ReferalForm/renderSections.d.ts +0 -3
  67. package/mobile/lib/components/ReferalForm/renderSections.js +0 -7
  68. package/mobile/lib/components/ReferalForm/renderSections.js.map +0 -1
  69. package/mobile/src/components/ReferalForm/renderSections.tsx +0 -18
  70. package/src/components/ReferalForm/renderSections.tsx +0 -18
@@ -10,6 +10,10 @@ type renderLinkInputProps = InputProps & {
10
10
  copyIcon?: Picture;
11
11
  };
12
12
 
13
+ const defaultIcon: Picture = {
14
+ icon: 'CopyIcon',
15
+ };
16
+
13
17
  export const renderLinkInput = JSX<renderLinkInputProps>(({ className, value = '', copyIcon }) => {
14
18
  const onClick = useCallback(async () => {
15
19
  try {
@@ -28,7 +32,7 @@ export const renderLinkInput = JSX<renderLinkInputProps>(({ className, value = '
28
32
  disabled={true}
29
33
  />
30
34
  <div role="button" className="absolute right-3" onClick={onClick}>
31
- <Img image={copyIcon} />
35
+ <Img image={copyIcon ?? defaultIcon} width="20px" />
32
36
  </div>
33
37
  </div>
34
38
  );
@@ -1,3 +0,0 @@
1
- import type { FormFieldRegisterer } from '../../hooks/useForm/useForm';
2
- import type { SectionsProps } from '../../model/InputSectionsType';
3
- export declare const renderSections: (sections: SectionsProps[], field: FormFieldRegisterer<Record<string, any>>) => any[];
@@ -1,3 +0,0 @@
1
- import type { FormFieldRegisterer } from '../../hooks/useForm/useForm';
2
- import type { SectionsProps } from '../../model/InputSectionsType';
3
- export declare const renderSections: (sections: SectionsProps[], field: FormFieldRegisterer<Record<string, any>>) => any[];
@@ -1,10 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderSections = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const getField_1 = require("../../ui-kit/FormField/getField");
5
- const inputColumnStyle_1 = require("../../ui-kit/FormField/inputColumnStyle");
6
- const renderTitle_1 = require("../../ui-kit/FormField/renderTitle");
7
- const style_1 = require("../../utils/style");
8
- const renderSections = (sections, field) => sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid'), children: [(0, renderTitle_1.renderTitle)(_.title), (_?.inputs || [])?.map((0, getField_1.getField)(field))] }, `section-${i}`)));
9
- exports.renderSections = renderSections;
10
- //# sourceMappingURL=renderSections.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderSections.js","sourceRoot":"","sources":["../../../src/components/ReferalForm/renderSections.tsx"],"names":[],"mappings":";;;AAEA,8DAA2D;AAC3D,8EAA4E;AAC5E,oEAAiE;AACjE,6CAA0C;AAGnC,MAAM,cAAc,GAAG,CAC5B,QAAyB,EACzB,KAA+C,EAC/C,EAAE,CACF,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,iCAA0B,SAAS,EAAE,IAAA,aAAK,EAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,aAC7E,IAAA,yBAAW,EAAC,CAAC,CAAC,KAAK,CAAC,EACpB,CAAC,CAAC,EAAE,MAAM,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,IAAA,mBAAQ,EAAW,KAAK,CAAC,CAAC,KAF1C,WAAW,CAAC,EAAE,CAGlB,CACP,CAAC,CAAC;AATQ,QAAA,cAAc,kBAStB"}
@@ -1,3 +0,0 @@
1
- import type { FormFieldRegisterer } from '../../hooks/useForm/useForm';
2
- import type { SectionsProps } from '../../model/InputSectionsType';
3
- export declare const renderSections: (sections: SectionsProps[], field: FormFieldRegisterer<Record<string, any>>) => any[];
@@ -1,7 +0,0 @@
1
- import { jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { getField } from '../../ui-kit/FormField/getField.js';
3
- import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle.js';
4
- import { renderTitle } from '../../ui-kit/FormField/renderTitle.js';
5
- import { style } from '../../utils/style.js';
6
- export const renderSections = (sections, field) => sections.map((_, i) => (_jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid'), children: [renderTitle(_.title), (_?.inputs || [])?.map(getField(field))] }, `section-${i}`)));
7
- //# sourceMappingURL=renderSections.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderSections.js","sourceRoot":"","sources":["../../../src/components/ReferalForm/renderSections.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,QAAyB,EACzB,KAA+C,EAC/C,EAAE,CACF,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,eAA0B,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,aAC7E,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,EACpB,CAAC,CAAC,EAAE,MAAM,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAW,KAAK,CAAC,CAAC,KAF1C,WAAW,CAAC,EAAE,CAGlB,CACP,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { FormFieldRegisterer } from '../../hooks/useForm/useForm';
2
- import type { SectionsProps } from '../../model/InputSectionsType';
3
- export declare const renderSections: (sections: SectionsProps[], field: FormFieldRegisterer<Record<string, any>>) => any[];
@@ -1,3 +0,0 @@
1
- import type { FormFieldRegisterer } from '../../hooks/useForm/useForm';
2
- import type { SectionsProps } from '../../model/InputSectionsType';
3
- export declare const renderSections: (sections: SectionsProps[], field: FormFieldRegisterer<Record<string, any>>) => any[];
@@ -1,10 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderSections = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const getField_1 = require("../../ui-kit/FormField/getField");
5
- const inputColumnStyle_1 = require("../../ui-kit/FormField/inputColumnStyle");
6
- const renderTitle_1 = require("../../ui-kit/FormField/renderTitle");
7
- const style_1 = require("../../utils/style");
8
- const renderSections = (sections, field) => sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid'), children: [(0, renderTitle_1.renderTitle)(_.title), (_?.inputs || [])?.map((0, getField_1.getField)(field))] }, `section-${i}`)));
9
- exports.renderSections = renderSections;
10
- //# sourceMappingURL=renderSections.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderSections.js","sourceRoot":"","sources":["../../../src/components/ReferalForm/renderSections.tsx"],"names":[],"mappings":";;;AAEA,8DAA2D;AAC3D,8EAA4E;AAC5E,oEAAiE;AACjE,6CAA0C;AAGnC,MAAM,cAAc,GAAG,CAC5B,QAAyB,EACzB,KAA+C,EAC/C,EAAE,CACF,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,iCAA0B,SAAS,EAAE,IAAA,aAAK,EAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,aAC7E,IAAA,yBAAW,EAAC,CAAC,CAAC,KAAK,CAAC,EACpB,CAAC,CAAC,EAAE,MAAM,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,IAAA,mBAAQ,EAAW,KAAK,CAAC,CAAC,KAF1C,WAAW,CAAC,EAAE,CAGlB,CACP,CAAC,CAAC;AATQ,QAAA,cAAc,kBAStB"}
@@ -1,3 +0,0 @@
1
- import type { FormFieldRegisterer } from '../../hooks/useForm/useForm';
2
- import type { SectionsProps } from '../../model/InputSectionsType';
3
- export declare const renderSections: (sections: SectionsProps[], field: FormFieldRegisterer<Record<string, any>>) => any[];
@@ -1,7 +0,0 @@
1
- import { jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { getField } from '../../ui-kit/FormField/getField.js';
3
- import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle.js';
4
- import { renderTitle } from '../../ui-kit/FormField/renderTitle.js';
5
- import { style } from '../../utils/style.js';
6
- export const renderSections = (sections, field) => sections.map((_, i) => (_jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid'), children: [renderTitle(_.title), (_?.inputs || [])?.map(getField(field))] }, `section-${i}`)));
7
- //# sourceMappingURL=renderSections.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderSections.js","sourceRoot":"","sources":["../../../src/components/ReferalForm/renderSections.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,QAAyB,EACzB,KAA+C,EAC/C,EAAE,CACF,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,eAA0B,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,aAC7E,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,EACpB,CAAC,CAAC,EAAE,MAAM,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAW,KAAK,CAAC,CAAC,KAF1C,WAAW,CAAC,EAAE,CAGlB,CACP,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- import type { FormFieldRegisterer } from '../../hooks/useForm/useForm';
2
- import type { SectionsProps } from '../../model/InputSectionsType';
3
- import { getField } from '../../ui-kit/FormField/getField';
4
- import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
5
- import { renderTitle } from '../../ui-kit/FormField/renderTitle';
6
- import { style } from '../../utils/style';
7
- import { type FieldDef } from '../ApplicationForm/ApplicationFormContent';
8
-
9
- export const renderSections = (
10
- sections: SectionsProps[],
11
- field: FormFieldRegisterer<Record<string, any>>,
12
- ) =>
13
- sections.map((_, i) => (
14
- <div key={`section-${i}`} className={style(inputColumnStyles(_.columns), 'grid')}>
15
- {renderTitle(_.title)}
16
- {(_?.inputs || [])?.map(getField<FieldDef>(field))}
17
- </div>
18
- ));
@@ -1,18 +0,0 @@
1
- import type { FormFieldRegisterer } from '../../hooks/useForm/useForm';
2
- import type { SectionsProps } from '../../model/InputSectionsType';
3
- import { getField } from '../../ui-kit/FormField/getField';
4
- import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
5
- import { renderTitle } from '../../ui-kit/FormField/renderTitle';
6
- import { style } from '../../utils/style';
7
- import { type FieldDef } from '../ApplicationForm/ApplicationFormContent';
8
-
9
- export const renderSections = (
10
- sections: SectionsProps[],
11
- field: FormFieldRegisterer<Record<string, any>>,
12
- ) =>
13
- sections.map((_, i) => (
14
- <div key={`section-${i}`} className={style(inputColumnStyles(_.columns), 'grid')}>
15
- {renderTitle(_.title)}
16
- {(_?.inputs || [])?.map(getField<FieldDef>(field))}
17
- </div>
18
- ));