@gov-cy/govcy-frontend-renderer 1.2.0 → 1.2.1

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.
@@ -2716,7 +2716,7 @@ context.addExport("updatedConditionalElements", t_36);
2716
2716
  }
2717
2717
  }
2718
2718
  frame = frame.pop();
2719
- t_2 += "<style>\n .govcy-radio__conditional label,\n .govcy-radio__conditional legend {\n font-size: 1rem !important;\n }\n </style>\n <div class=\"govcy-form-control";
2719
+ t_2 += "<div class=\"govcy-form-control";
2720
2720
  if(runtime.memberLookup((l_item),"conditionalHasErrors")) {
2721
2721
  t_2 += " govcy-form-control-error";
2722
2722
  ;
@@ -2728,7 +2728,7 @@ t_2 += " govcy-form-control-hint";
2728
2728
  t_2 += " govcy-pl-4 govcy-ml-5 govcy-radio__conditional govcy-radio__conditional--hidden\" id=\"";
2729
2729
  t_2 += runtime.suppressValue(runtime.contextOrFrameLookup(context, frame, "conditionalElementsId"), env.opts.autoescape);
2730
2730
  t_2 += "\">\n ";
2731
- t_2 += runtime.suppressValue((lineno = 102, colno = 37, runtime.callWrap(t_8, "govcyElementsFromArray", context, [runtime.contextOrFrameLookup(context, frame, "updatedConditionalElements"),runtime.memberLookup((l_params),"lang")])), env.opts.autoescape);
2731
+ t_2 += runtime.suppressValue((lineno = 96, colno = 37, runtime.callWrap(t_8, "govcyElementsFromArray", context, [runtime.contextOrFrameLookup(context, frame, "updatedConditionalElements"),runtime.memberLookup((l_params),"lang")])), env.opts.autoescape);
2732
2732
  t_2 += "\n </div>";
2733
2733
  ;
2734
2734
  }
@@ -2890,7 +2890,7 @@ context.addExport("ariaDescribedBy", t_66);
2890
2890
  }
2891
2891
  ;
2892
2892
  }
2893
- t_38 += runtime.suppressValue((lineno = 166, colno = 20, runtime.callWrap(t_44, "fieldset", context, [{"ariaDescribedby": runtime.contextOrFrameLookup(context, frame, "ariaDescribedBy"),"classes": runtime.memberLookup((l_params),"classes"),"lang": runtime.memberLookup((l_params),"lang")},runtime.makeKeywordArgs({"caller": (function (){var macro_t_67 = runtime.makeMacro(
2893
+ t_38 += runtime.suppressValue((lineno = 160, colno = 20, runtime.callWrap(t_44, "fieldset", context, [{"ariaDescribedby": runtime.contextOrFrameLookup(context, frame, "ariaDescribedBy"),"classes": runtime.memberLookup((l_params),"classes"),"lang": runtime.memberLookup((l_params),"lang")},runtime.makeKeywordArgs({"caller": (function (){var macro_t_67 = runtime.makeMacro(
2894
2894
  [],
2895
2895
  [],
2896
2896
  function (kwargs) {
@@ -2900,7 +2900,7 @@ kwargs = kwargs || {};
2900
2900
  if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {
2901
2901
  frame.set("caller", kwargs.caller); }
2902
2902
  var t_68 = "";t_68 += "\n ";
2903
- t_68 += runtime.suppressValue((lineno = 167, colno = 22, runtime.callWrap(t_52, "legend", context, [{"legend": runtime.memberLookup((l_params),"legend"),"isPageHeading": runtime.contextOrFrameLookup(context, frame, "isPageHeading"),"lang": runtime.memberLookup((l_params),"lang")},runtime.makeKeywordArgs({"caller": (function (){var macro_t_69 = runtime.makeMacro(
2903
+ t_68 += runtime.suppressValue((lineno = 161, colno = 22, runtime.callWrap(t_52, "legend", context, [{"legend": runtime.memberLookup((l_params),"legend"),"isPageHeading": runtime.contextOrFrameLookup(context, frame, "isPageHeading"),"lang": runtime.memberLookup((l_params),"lang")},runtime.makeKeywordArgs({"caller": (function (){var macro_t_69 = runtime.makeMacro(
2904
2904
  [],
2905
2905
  [],
2906
2906
  function (kwargs) {
@@ -2915,7 +2915,7 @@ return new runtime.SafeString(t_70);
2915
2915
  });
2916
2916
  return macro_t_69;})()})])), env.opts.autoescape);
2917
2917
  t_68 += "\n ";
2918
- t_68 += runtime.suppressValue((lineno = 168, colno = 27, runtime.callWrap(t_60, "formControl", context, [{"isError": (runtime.memberLookup((l_params),"hideFormControlError")?false:runtime.memberLookup((l_params),"error"))},runtime.makeKeywordArgs({"caller": (function (){var macro_t_71 = runtime.makeMacro(
2918
+ t_68 += runtime.suppressValue((lineno = 162, colno = 27, runtime.callWrap(t_60, "formControl", context, [{"isError": (runtime.memberLookup((l_params),"hideFormControlError")?false:runtime.memberLookup((l_params),"error"))},runtime.makeKeywordArgs({"caller": (function (){var macro_t_71 = runtime.makeMacro(
2919
2919
  [],
2920
2920
  [],
2921
2921
  function (kwargs) {
@@ -2925,7 +2925,7 @@ kwargs = kwargs || {};
2925
2925
  if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {
2926
2926
  frame.set("caller", kwargs.caller); }
2927
2927
  var t_72 = "";t_72 += "\n ";
2928
- t_72 += runtime.suppressValue((lineno = 169, colno = 24, runtime.callWrap(t_48, "hint", context, [{"hint": runtime.memberLookup((l_params),"hint"),"id": runtime.contextOrFrameLookup(context, frame, "hintId"),"lang": runtime.memberLookup((l_params),"lang")},runtime.makeKeywordArgs({"caller": (function (){var macro_t_73 = runtime.makeMacro(
2928
+ t_72 += runtime.suppressValue((lineno = 163, colno = 24, runtime.callWrap(t_48, "hint", context, [{"hint": runtime.memberLookup((l_params),"hint"),"id": runtime.contextOrFrameLookup(context, frame, "hintId"),"lang": runtime.memberLookup((l_params),"lang")},runtime.makeKeywordArgs({"caller": (function (){var macro_t_73 = runtime.makeMacro(
2929
2929
  [],
2930
2930
  [],
2931
2931
  function (kwargs) {
@@ -2939,7 +2939,7 @@ frame = frame.pop();
2939
2939
  return new runtime.SafeString(t_74);
2940
2940
  });
2941
2941
  return macro_t_73;})()})])), env.opts.autoescape);
2942
- t_72 += runtime.suppressValue((lineno = 171, colno = 32, runtime.callWrap(t_56, "errorMessage", context, [{"message": runtime.memberLookup((l_params),"error"),"id": runtime.contextOrFrameLookup(context, frame, "errorId"),"lang": runtime.memberLookup((l_params),"lang")},runtime.makeKeywordArgs({"caller": (function (){var macro_t_75 = runtime.makeMacro(
2942
+ t_72 += runtime.suppressValue((lineno = 165, colno = 32, runtime.callWrap(t_56, "errorMessage", context, [{"message": runtime.memberLookup((l_params),"error"),"id": runtime.contextOrFrameLookup(context, frame, "errorId"),"lang": runtime.memberLookup((l_params),"lang")},runtime.makeKeywordArgs({"caller": (function (){var macro_t_75 = runtime.makeMacro(
2943
2943
  [],
2944
2944
  [],
2945
2945
  function (kwargs) {
@@ -2969,7 +2969,7 @@ frame.set("loop.first", t_77 === 0);
2969
2969
  frame.set("loop.last", t_77 === t_78 - 1);
2970
2970
  frame.set("loop.length", t_78);
2971
2971
  if(t_80) {
2972
- t_72 += runtime.suppressValue((lineno = 175, colno = 34, runtime.callWrap(runtime.contextOrFrameLookup(context, frame, "_radioItem"), "_radioItem", context, [l_params,t_80,runtime.contextOrFrameLookup(context, frame, "isInline"),runtime.memberLookup((runtime.contextOrFrameLookup(context, frame, "loop")),"index"),runtime.memberLookup((l_params),"lang")])), env.opts.autoescape);
2972
+ t_72 += runtime.suppressValue((lineno = 169, colno = 34, runtime.callWrap(runtime.contextOrFrameLookup(context, frame, "_radioItem"), "_radioItem", context, [l_params,t_80,runtime.contextOrFrameLookup(context, frame, "isInline"),runtime.memberLookup((runtime.contextOrFrameLookup(context, frame, "loop")),"index"),runtime.memberLookup((l_params),"lang")])), env.opts.autoescape);
2973
2973
  ;
2974
2974
  }
2975
2975
  ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gov-cy/govcy-frontend-renderer",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Render html for design elements of the Unified design system using njk or json template.",
5
5
  "author": "DMRID - DSF Team",
6
6
  "license": "MIT",
@@ -93,12 +93,6 @@
93
93
  }) -%}
94
94
  {%- set updatedConditionalElements = updatedConditionalElements.concat([updatedElement]) -%}
95
95
  {%- endfor -%}
96
- <style>
97
- .govcy-radio__conditional label,
98
- .govcy-radio__conditional legend {
99
- font-size: 1rem !important;
100
- }
101
- </style>
102
96
  <div class="govcy-form-control{% if item.conditionalHasErrors %} govcy-form-control-error{% else %} govcy-form-control-hint{% endif %} govcy-pl-4 govcy-ml-5 govcy-radio__conditional govcy-radio__conditional--hidden" id="{{conditionalElementsId}}">
103
97
  {{ govcyElementsFromArray(updatedConditionalElements, params.lang) }}
104
98
  </div>