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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
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,...
|
|
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,...
|
|
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};
|