@moosend/mooskin 1.0.0-alpha.117 → 1.0.0-alpha.118
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/lib/Box/model.d.ts +2 -2
- package/lib/Box/styles.d.ts +1 -1
- package/lib/Description/model.d.ts +4 -0
- package/lib/Drawer/styles.d.ts +1 -1
- package/lib/Styled/model.d.ts +17 -0
- package/lib/assets/font-awesome/webfonts/fa-duotone-900.ttf +0 -0
- package/lib/assets/font-awesome/webfonts/fa-light-300.ttf +0 -0
- package/lib/assets/font-awesome/webfonts/fa-regular-400.ttf +0 -0
- package/lib/assets/font-awesome/webfonts/fa-solid-900.ttf +0 -0
- package/lib/assets/font-awesome/webfonts/fa-thin-100.ttf +0 -0
- package/lib/components/ActionsDropdown/ActionsDropdown.d.ts +1 -1
- package/lib/components/ActionsDropdown/model.d.ts +1 -0
- package/lib/components/ActionsDropdown/styles.d.ts +2 -0
- package/lib/components/Box/model.d.ts +5 -0
- package/lib/components/Box/resources.d.ts +9 -0
- package/lib/components/Button/Button.d.ts +1 -0
- package/lib/components/Button/model.d.ts +0 -1
- package/lib/components/Button/styles.d.ts +2 -2
- package/lib/components/Checkbox/model.d.ts +1 -0
- package/lib/components/Checkbox/styles.d.ts +2 -2
- package/lib/components/DateRange/styles.d.ts +3 -0
- package/lib/components/Drawer/styles.d.ts +1 -1
- package/lib/components/Pagination/model.d.ts +2 -0
- package/lib/components/Radio/model.d.ts +1 -0
- package/lib/components/Radio/styles.d.ts +2 -2
- package/lib/components/Select/Select.d.ts +2 -2
- package/lib/components/Select/model.d.ts +3 -1
- package/lib/components/Select/styles.d.ts +4 -2
- package/lib/components/Styled/model.d.ts +18 -0
- package/lib/components/Tags/Tags.d.ts +1 -0
- package/lib/components/index/index.d.ts +2 -2
- package/lib/index/index.js +6 -6
- package/lib/stories/Button.stories.d.ts +0 -1
- package/package.json +1 -1
- package/lib/Button/index.d.ts +0 -2
- package/lib/Button/index.js +0 -1
- package/lib/Button/style.css +0 -1
- package/lib/Carousel/index.d.ts +0 -2
- package/lib/Carousel/index.js +0 -12
- package/lib/Carousel/style.css +0 -326
- package/lib/CheckListItem/CheckListItem.d.ts +0 -24
- package/lib/CheckListItem/index.d.ts +0 -2
- package/lib/CheckListItem/index.js +0 -1
- package/lib/CheckListItem/style.css +0 -5
- package/lib/Checkbox/index.d.ts +0 -3
- package/lib/Checkbox/index.js +0 -1
- package/lib/Checkbox/style.css +0 -14
- package/lib/ClipboardButton/ClipboardButton.d.ts +0 -19
- package/lib/ClipboardButton/index.d.ts +0 -2
- package/lib/ClipboardButton/index.js +0 -1
- package/lib/ClipboardButton/style.css +0 -1
- package/lib/DatePicker/index.d.ts +0 -3
- package/lib/DatePicker/index.js +0 -12
- package/lib/DatePicker/style.css +0 -7
- package/lib/DateRange/index.d.ts +0 -2
- package/lib/DateRange/index.js +0 -12
- package/lib/DateRange/style.css +0 -19
- package/lib/Fieldset/Fieldset.d.ts +0 -16
- package/lib/Fieldset/index.d.ts +0 -2
- package/lib/Fieldset/index.js +0 -1
- package/lib/Fieldset/style.css +0 -2
- package/lib/File/FileUpload.d.ts +0 -43
- package/lib/File/index.d.ts +0 -2
- package/lib/File/index.js +0 -1
- package/lib/File/style.css +0 -1
- package/lib/Form/Form.d.ts +0 -36
- package/lib/Form/index.d.ts +0 -3
- package/lib/Form/index.js +0 -1
- package/lib/Form/style.css +0 -1
- package/lib/Grid/index.d.ts +0 -4
- package/lib/Grid/index.js +0 -1
- package/lib/Grid/style.css +0 -1
- package/lib/Headings/H1/H1.d.ts +0 -11
- package/lib/Headings/H2/H2.d.ts +0 -11
- package/lib/Headings/H3/H3.d.ts +0 -11
- package/lib/Headings/H4/H4.d.ts +0 -11
- package/lib/Headings/H5/H5.d.ts +0 -11
- package/lib/Headings/H6/H6.d.ts +0 -11
- package/lib/Headings/index.d.ts +0 -6
- package/lib/Headings/index.js +0 -1
- package/lib/Headings/props.d.ts +0 -7
- package/lib/Headings/style.css +0 -12
- package/lib/HorizontalRangeBar/HorizontalRangeBar.d.ts +0 -25
- package/lib/HorizontalRangeBar/index.d.ts +0 -2
- package/lib/HorizontalRangeBar/index.js +0 -1
- package/lib/HorizontalRangeBar/style.css +0 -1
- package/lib/Input/index.d.ts +0 -2
- package/lib/Input/index.js +0 -1
- package/lib/Input/style.css +0 -465
- package/lib/Label/index.d.ts +0 -2
- package/lib/Label/index.js +0 -1
- package/lib/Label/style.css +0 -2
- package/lib/List/index.d.ts +0 -3
- package/lib/List/index.js +0 -1
- package/lib/List/style.css +0 -2
- package/lib/Loader/index.d.ts +0 -2
- package/lib/Loader/index.js +0 -1
- package/lib/Loader/style.css +0 -1
- package/lib/LoadingBar/index.d.ts +0 -2
- package/lib/LoadingBar/index.js +0 -1
- package/lib/LoadingBar/style.css +0 -1
- package/lib/Modal/index.d.ts +0 -2
- package/lib/Modal/index.js +0 -1
- package/lib/Modal/style.css +0 -15
- package/lib/Pagination/index.d.ts +0 -2
- package/lib/Pagination/index.js +0 -1
- package/lib/Pagination/style.css +0 -1
- package/lib/Radio/index.d.ts +0 -3
- package/lib/Radio/index.js +0 -1
- package/lib/Radio/style.css +0 -13
- package/lib/RadioAccordion/RadioAccordion.d.ts +0 -49
- package/lib/RadioAccordion/index.d.ts +0 -3
- package/lib/RadioAccordion/index.js +0 -1
- package/lib/RadioAccordion/style.css +0 -1
- package/lib/Select/index.d.ts +0 -3
- package/lib/Select/index.js +0 -1
- package/lib/Select/style.css +0 -2
- package/lib/SideBar/SideBar.d.ts +0 -79
- package/lib/SideBar/index.d.ts +0 -3
- package/lib/SideBar/index.js +0 -1
- package/lib/SideBar/style.css +0 -3
- package/lib/Slider/index.d.ts +0 -3
- package/lib/Slider/index.js +0 -1
- package/lib/Slider/style.css +0 -2
- package/lib/SmallIconButton/SmallIconButton.d.ts +0 -23
- package/lib/SmallIconButton/index.d.ts +0 -2
- package/lib/SmallIconButton/index.js +0 -1
- package/lib/SmallIconButton/style.css +0 -2
- package/lib/StatsBox/StatsBox.d.ts +0 -16
- package/lib/StatsBox/index.d.ts +0 -2
- package/lib/StatsBox/index.js +0 -1
- package/lib/StatsBox/style.css +0 -2
- package/lib/Steps/index.d.ts +0 -3
- package/lib/Steps/index.js +0 -1
- package/lib/Steps/style.css +0 -1
- package/lib/Switch/index.d.ts +0 -2
- package/lib/Switch/index.js +0 -1
- package/lib/Switch/style.css +0 -1
- package/lib/TabbedContent/TabbedContent.d.ts +0 -72
- package/lib/TabbedContent/index.d.ts +0 -3
- package/lib/TabbedContent/index.js +0 -1
- package/lib/TabbedContent/style.css +0 -4
- package/lib/Table/index.d.ts +0 -3
- package/lib/Table/index.js +0 -1
- package/lib/Table/style.css +0 -6
- package/lib/Tags/index.d.ts +0 -2
- package/lib/Tags/index.js +0 -1
- package/lib/Tags/style.css +0 -3
- package/lib/TextArea/index.d.ts +0 -2
- package/lib/TextArea/index.js +0 -1
- package/lib/TextArea/style.css +0 -1
- package/lib/TextEditor/index.d.ts +0 -2
- package/lib/TextEditor/index.js +0 -28
- package/lib/TextEditor/style.css +0 -852
- package/lib/TopNotification/TopNotification.d.ts +0 -27
- package/lib/TopNotification/index.d.ts +0 -2
- package/lib/TopNotification/index.js +0 -1
- package/lib/TopNotification/style.css +0 -2
- package/lib/Topbar/Topbar.d.ts +0 -23
- package/lib/Topbar/index.d.ts +0 -2
- package/lib/Topbar/index.js +0 -1
- package/lib/Topbar/style.css +0 -1
- package/lib/_utils/index.js +0 -1
- package/lib/node_modules/@fortawesome/fontawesome-pro/webfonts/fa-brands-400.svg +0 -3717
- package/lib/node_modules/@fortawesome/fontawesome-pro/webfonts/fa-duotone-900.svg +0 -15326
- package/lib/node_modules/@fortawesome/fontawesome-pro/webfonts/fa-light-300.svg +0 -12420
- package/lib/node_modules/@fortawesome/fontawesome-pro/webfonts/fa-regular-400.svg +0 -11323
- package/lib/node_modules/@fortawesome/fontawesome-pro/webfonts/fa-solid-900.svg +0 -9653
package/lib/Checkbox/index.d.ts
DELETED
package/lib/Checkbox/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("mooskin",["react"],t):"object"==typeof exports?exports.mooskin=t(require("react")):e.mooskin=t(e.react)}(this,function(e){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="../",n(n.s=305)}({0:function(t,n){t.exports=e},25:function(e,t,n){e.exports={checkbox:"checkbox___2kFyH",checkmark:"checkmark___5QClc",checkboxTick:"checkboxTick___2DxNJ",inverseCheckbox:"inverseCheckbox___2Rj3C",alternateCheckbox:"alternateCheckbox___3LR4H",alternateChecked:"alternateChecked___1HhMn",inverseTick:"inverseTick___39jLg",label:"label___3hcgR",horizontal:"horizontal___3aoWZ","checkboxgroup-component":"checkboxgroup-component___3NLDi",disabledCheckbox:"disabledCheckbox___2Txh-",description:"description___8EN2R",message:"message___3cL2Z",descError:"descError___1LMrW",descSuccess:"descSuccess___2Vlei",error:"error___2ufv4"}},28:function(e,t,n){"use strict";n.r(t);var o=n(0),r=n(51),c=n.n(r);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,l(t).apply(this,arguments))}var n,r,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,o["Component"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.style,a=e.children,i="h1-component ".concat(c.a.h1," ").concat(n);return o.createElement("div",{id:t,className:i,style:r},a)}}])&&i(n.prototype,r),a&&i(n,a),t}();p.defaultProps={className:"",style:{}},p.displayName="H1";var f=p,y=n(43),b=n(52),h=n.n(b);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var O=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),v(this,_(t).apply(this,arguments))}var n,r,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(t,o["Component"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.style,c=e.children,a="h3-component ".concat(h.a.h3," ").concat(n);return o.createElement("div",{id:t,className:a,style:r},c)}}])&&d(n.prototype,r),c&&d(n,c),t}();O.defaultProps={className:"",style:{}},O.displayName="H3";var g=O,j=n(53),w=n.n(j);function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function S(e,t){return!t||"object"!==x(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var N=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),S(this,E(t).apply(this,arguments))}var n,r,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(t,o["Component"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.style,c=e.children,a="h4-component ".concat(w.a.h4," ").concat(n);return o.createElement("div",{id:t,className:a,style:r},c)}}])&&C(n.prototype,r),c&&C(n,c),t}();N.defaultProps={className:"",style:{}},N.displayName="H4";var T=N,H=n(54),R=n.n(H);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function D(e,t){return!t||"object"!==L(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e,t){return(V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var q=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),D(this,M(t).apply(this,arguments))}var n,r,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}(t,o["Component"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.style,c=e.children,a="h5-component ".concat(R.a.h5," ").concat(n);return o.createElement("div",{id:t,className:a,style:r},c)}}])&&z(n.prototype,r),c&&z(n,c),t}();q.defaultProps={className:"",style:{}},q.displayName="H5";var B=q,I=n(55),F=n.n(I);function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function U(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var J=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),U(this,W(t).apply(this,arguments))}var n,r,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Z(e,t)}(t,o["Component"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.style,c=e.children,a="h6-component ".concat(F.a.h6," ").concat(n);return o.createElement("div",{id:t,className:a,style:r},c)}}])&&Q(n.prototype,r),c&&Q(n,c),t}();J.defaultProps={className:"",style:{}},J.displayName="H6";var K=J;n.d(t,"H1",function(){return f}),n.d(t,"H2",function(){return y.a}),n.d(t,"H3",function(){return g}),n.d(t,"H4",function(){return T}),n.d(t,"H5",function(){return B}),n.d(t,"H6",function(){return K})},305:function(e,t,n){"use strict";n.r(t);var o=n(0),r=n(7),c=n.n(r),a=n(25),i=n.n(a),u=n(28);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var b=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=p(this,f(t).call(this,e))).onClick=function(e,t){return function(o){t.map(function(n,o){if(n.value!==e.value)return{checkbox:n};t[o]={checked:!e.checked,label:e.label,value:e.value}}),n.props.onChange&&n.props.onChange(o,{value:t,dataLabel:n.props.dataLabel}),n.props.validate&&n.props.validate({value:t,dataLabel:n.props.dataLabel,required:n.props.required})}},n.getCheckboxes=function(){if(n.props.children){var e=0===n.props.selectedChecks.length?n.getChildrenData():n.props.selectedChecks;if(n.checkDuplicateValues(e))return n.getChildren(e);throw new Error("<CheckBox> elements must not have duplicate values")}if(n.checkDuplicateValues(n.props.selectedChecks))return n.getPropsCheckboxes(n.props.selectedChecks);throw new Error("<CheckBox> elements must not have duplicate values")},n.getChildrenData=function(){var e=[];return o.Children.map(n.props.children,function(t,n){o.isValidElement(t)&&e.push({checked:!!t.props.checked&&t.props.checked,label:t.props.label?t.props.label:t.props.value.toString(),value:t.props.value})}),e},n.getChildren=function(e){var t=[];return o.Children.map(n.props.children,function(r,c){if(!o.isValidElement(r))throw new Error("<CheckBoxGroup> element only accepts <CheckBox> elements as children");var a=!0===e[c].checked,i=e[c].value?e[c].value:"checkbox".concat(c),u={checked:e[c].checked,horizontal:n.props.horizontal,inverseStyle:n.props.inverseStyle,key:c,label:e[c].label,name:n.name,onClick:n.onClick({checked:a,value:i,label:e[c].label},e),spacing:n.props.spacing,status:n.props.status,value:i};t.push(o.cloneElement(r,u))}),t},n.getPropsCheckboxes=function(e){var t=[];return e.forEach(function(r,c){var a=!0===r.checked,i=r.value?r.value:"checkbox".concat(c);t.push(o.createElement(h,{checked:a,horizontal:n.props.horizontal,key:c,label:r.label,name:n.name,onClick:n.onClick({checked:a,value:i,label:r.label},e),spacing:n.props.spacing,status:n.props.status,inverseStyle:n.props.inverseStyle,value:i}))}),t},n.checkDuplicateValues=function(e){var t=[],n=0;return e.forEach(function(e,n){o.isValidElement(e)&&t.push(e.props.value)}),t.forEach(function(e){t.forEach(function(t){e===t&&(n+=1)})}),!(n>t.length)},n.generateName=function(){return Date.now().toString()},n.name=n.generateName(),n}var n,r,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(t,o["Component"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.style,c=e.title,a=e.description,l=this.props.horizontal?i.a.horizontal:"",s="error"===this.props.status?i.a.descError:"success"===this.props.status?i.a.descSuccess:"";return o.createElement("div",{id:t,className:"checkboxgroup-component ".concat(n),style:Object.assign({},r)},c&&o.createElement(u.H2,null,c),o.createElement("div",{className:l},this.getCheckboxes()||this.props.children),a&&o.createElement("i",{className:"".concat(i.a.message," ").concat(s)},a))}}])&&s(n.prototype,r),c&&s(n,c),t}();b.defaultProps={className:"",spacing:5,style:{}},b.displayName="CheckboxGroup";var h=function(e){var t,n=function(){var t=e.status&&e.status;if(t){if("error"===t)return i.a.error;if("success"===t)return i.a.success}}(),r=e.disabled?i.a.disabledCheckbox:"",a=e.label||"",u=!!e.checked,l=e.spacing?e.horizontal?{marginRight:"".concat(e.spacing,"px")}:{marginBottom:"".concat(e.spacing,"px")}:{},s="checkbox-component ".concat(i.a.checkbox,"\n ").concat(r," ").concat(e.className," ").concat(n),p=Math.random().toString(36).substr(2,10),f=e.checked?e.inverseStyle?i.a.inverseCheckbox:e.alternateStyle?"":i.a.transparentCheckmark:"",y=e.inverseStyle?i.a.inverseTick:"",b=e.alternateStyle?e.checked?i.a.alternateChecked:i.a.alternateCheckbox:"",h=e.alternateStyle?i.a.inverseTick:"";return o.createElement("div",{className:s,style:Object.assign({},l,e.style)},o.createElement("input",{id:e.id||p,name:e.name,type:"checkbox",value:e.value,onClick:(t={checked:!u,value:e.value,label:a},function(n){!e.disabled&&e.onClick&&e.onClick(n,{value:t,dataLabel:e.dataLabel})}),disabled:e.disabled,defaultChecked:u,className:"".concat(c.a.mooskinIcons)}),o.createElement("label",{htmlFor:e.id||p},o.createElement("span",{className:"".concat(i.a.checkmark," ").concat(f," ").concat(b)}),e.checked&&o.createElement("span",{className:"".concat(i.a.checkboxTick," ").concat(y," ").concat(h)}),o.createElement("span",{className:i.a.label},a)),o.createElement("br",null),o.createElement("i",{className:i.a.description},e.description))};h.defaultProps={className:"",style:{}},h.displayName="Checkbox",n.d(t,"Checkbox",function(){return h}),b.Checkbox=h;t.default=b},43:function(e,t,n){"use strict";var o=n(0),r=n(48),c=n.n(r);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,l(t).apply(this,arguments))}var n,r,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,o["Component"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.style,a=e.children,i="h2-component ".concat(c.a.h2," ").concat(n);return o.createElement("div",{id:t,className:i,style:r},a)}}])&&i(n.prototype,r),a&&i(n,a),t}();p.defaultProps={className:"",style:{}},p.displayName="H2",t.a=p},48:function(e,t,n){e.exports={h2:"h2___a5XKj"}},51:function(e,t,n){e.exports={h1:"h1___3EqyH"}},52:function(e,t,n){e.exports={h3:"h3___3O03q"}},53:function(e,t,n){e.exports={h4:"h4___Uo5Q6"}},54:function(e,t,n){e.exports={h5:"h5___3UM6s"}},55:function(e,t,n){e.exports={h6:"h6___3P7kB"}},7:function(e,t,n){e.exports={mooskinIcons:"mooskinIcons___2i54i"}}})});
|