groundfloor-react-ui 1.2.60 → 1.2.61

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/dist/index.es.js CHANGED
@@ -1875,7 +1875,7 @@ float: right;
1875
1875
 
1876
1876
  // custom styles
1877
1877
  ${({optionStyle:e})=>e};
1878
- `,Ol=({checked:e,customSwitchStyle:l,customToggleBoxStyle:o,onClick:r,optionStyle:i,id:c,isDisabled:n,...a})=>{const s=b()||R;return t.createElement(jl,z({inBuiltCss:P,defaultCheckBoxWrapperStyle:"toggle-switch-wrapper"},a),t.createElement(ql,z({},a,{id:c,inBuiltCss:P,onClick:()=>{r(!e)},isChecked:e,disabled:n,isDisabled:n})),t.createElement(Fl,z({},a,{htmlFor:c,customToggleBoxStyle:o,customSwitchStyle:l,inBuiltCss:P,defaultCheckBoxLabelStyle:"toggle-switch-checkbox-label",checked:e,theme:s,isDisabled:n})),t.createElement(Zl,z({optionStyle:i,inBuiltCss:P,theme:s,checked:e},a),e?"Yes":"NO"))};Ol.propTypes={customToggleBoxStyle:e.object,customSwitchStyle:e.object,checked:e.bool,id:e.string,isDisabled:e.bool},Ol.defaultProps={checked:!1,customSwitchStyle:{},customToggleBoxStyle:{},id:"",isDisabled:!1};const Dl=m.div`
1878
+ `,Ol=({checked:e,customSwitchStyle:l,customToggleBoxStyle:o,onClick:r,optionStyle:i,id:c,isDisabled:n,trueLabel:a,falseLabel:s,...d})=>{const p=b()||R;return t.createElement(jl,z({inBuiltCss:P,defaultCheckBoxWrapperStyle:"toggle-switch-wrapper"},d),t.createElement(ql,z({},d,{id:c,inBuiltCss:P,onClick:()=>{r(!e)},isChecked:e,disabled:n,isDisabled:n})),t.createElement(Fl,z({},d,{htmlFor:c,customToggleBoxStyle:o,customSwitchStyle:l,inBuiltCss:P,defaultCheckBoxLabelStyle:"toggle-switch-checkbox-label",checked:e,theme:p,isDisabled:n})),t.createElement(Zl,z({optionStyle:i,inBuiltCss:P,theme:p,checked:e},d),e?a:s))};Ol.propTypes={customToggleBoxStyle:e.object,customSwitchStyle:e.object,checked:e.bool,id:e.string,isDisabled:e.bool,trueLabel:e.string,falseLabel:e.string},Ol.defaultProps={checked:!1,customSwitchStyle:{},customToggleBoxStyle:{},id:"",isDisabled:!1,trueLabel:"Yes",falseLabel:"NO"};const Dl=m.div`
1879
1879
  background-color: ${({theme:e})=>e.bgColor};
1880
1880
  padding: 24px 8px;
1881
1881
  ${({commentBodyStyle:e})=>e};
package/dist/index.js CHANGED
@@ -1875,7 +1875,7 @@ float: right;
1875
1875
 
1876
1876
  // custom styles
1877
1877
  ${({optionStyle:e})=>e};
1878
- `,Hl=({checked:e,customSwitchStyle:t,customToggleBoxStyle:a,onClick:o,optionStyle:r,id:i,isDisabled:c,...n})=>{const d=l.useTheme()||B;return b.default.createElement(Wl,S({inBuiltCss:I,defaultCheckBoxWrapperStyle:"toggle-switch-wrapper"},n),b.default.createElement(Tl,S({},n,{id:i,inBuiltCss:I,onClick:()=>{o(!e)},isChecked:e,disabled:c,isDisabled:c})),b.default.createElement(Rl,S({},n,{htmlFor:i,customToggleBoxStyle:a,customSwitchStyle:t,inBuiltCss:I,defaultCheckBoxLabelStyle:"toggle-switch-checkbox-label",checked:e,theme:d,isDisabled:c})),b.default.createElement(Pl,S({optionStyle:r,inBuiltCss:I,theme:d,checked:e},n),e?"Yes":"NO"))};Hl.propTypes={customToggleBoxStyle:m.default.object,customSwitchStyle:m.default.object,checked:m.default.bool,id:m.default.string,isDisabled:m.default.bool},Hl.defaultProps={checked:!1,customSwitchStyle:{},customToggleBoxStyle:{},id:"",isDisabled:!1};const jl=g.default.div`
1878
+ `,Hl=({checked:e,customSwitchStyle:t,customToggleBoxStyle:a,onClick:o,optionStyle:r,id:i,isDisabled:c,trueLabel:n,falseLabel:d,...s})=>{const u=l.useTheme()||B;return b.default.createElement(Wl,S({inBuiltCss:I,defaultCheckBoxWrapperStyle:"toggle-switch-wrapper"},s),b.default.createElement(Tl,S({},s,{id:i,inBuiltCss:I,onClick:()=>{o(!e)},isChecked:e,disabled:c,isDisabled:c})),b.default.createElement(Rl,S({},s,{htmlFor:i,customToggleBoxStyle:a,customSwitchStyle:t,inBuiltCss:I,defaultCheckBoxLabelStyle:"toggle-switch-checkbox-label",checked:e,theme:u,isDisabled:c})),b.default.createElement(Pl,S({optionStyle:r,inBuiltCss:I,theme:u,checked:e},s),e?n:d))};Hl.propTypes={customToggleBoxStyle:m.default.object,customSwitchStyle:m.default.object,checked:m.default.bool,id:m.default.string,isDisabled:m.default.bool,trueLabel:m.default.string,falseLabel:m.default.string},Hl.defaultProps={checked:!1,customSwitchStyle:{},customToggleBoxStyle:{},id:"",isDisabled:!1,trueLabel:"Yes",falseLabel:"NO"};const jl=g.default.div`
1879
1879
  background-color: ${({theme:e})=>e.bgColor};
1880
1880
  padding: 24px 8px;
1881
1881
  ${({commentBodyStyle:e})=>e};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "groundfloor-react-ui",
3
3
  "description": "Official component library for Ground Floor",
4
- "version": "1.2.60",
4
+ "version": "1.2.61",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
7
7
  "private": false,