@moosend/mooskin 1.0.3 → 1.0.4
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/README-legacy.md +212 -0
- package/lib/Drawer/styles.d.ts +1 -1
- package/lib/Styled/model.d.ts +3 -0
- package/lib/index/index.js +1 -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/components/ActionsDropdown/ActionsDropdown.d.ts +0 -6
- package/lib/components/ActionsDropdown/model.d.ts +0 -11
- package/lib/components/ActionsDropdown/styles.d.ts +0 -8
- package/lib/components/Alert/Alert.d.ts +0 -7
- package/lib/components/Alert/model.d.ts +0 -5
- package/lib/components/Alert/styles.d.ts +0 -7
- package/lib/components/Anchor/Anchor.d.ts +0 -3
- package/lib/components/Anchor/model.d.ts +0 -4
- package/lib/components/Anchor/styles.d.ts +0 -3
- package/lib/components/Box/Box.d.ts +0 -3
- package/lib/components/Box/model.d.ts +0 -118
- package/lib/components/Box/resources.d.ts +0 -9
- package/lib/components/Box/styles.d.ts +0 -7
- package/lib/components/Button/Button.d.ts +0 -7
- package/lib/components/Button/model.d.ts +0 -5
- package/lib/components/Button/styles.d.ts +0 -7
- package/lib/components/Carousel/Carousel.d.ts +0 -7
- package/lib/components/Carousel/model.d.ts +0 -33
- package/lib/components/Carousel/styles.d.ts +0 -4
- package/lib/components/Checkbox/Checkbox.d.ts +0 -8
- package/lib/components/Checkbox/model.d.ts +0 -13
- package/lib/components/Checkbox/styles.d.ts +0 -6
- package/lib/components/DatePicker/DatePicker.d.ts +0 -3
- package/lib/components/DatePicker/model.d.ts +0 -11
- package/lib/components/DateRange/DateRange.d.ts +0 -5
- package/lib/components/DateRange/model.d.ts +0 -13
- package/lib/components/DateRange/styles.d.ts +0 -3
- package/lib/components/DateSelect/DateSelect.d.ts +0 -3
- package/lib/components/DateSelect/model.d.ts +0 -7
- package/lib/components/DateTimePicker/DateTimePicker.d.ts +0 -3
- package/lib/components/DateTimePicker/model.d.ts +0 -11
- package/lib/components/Description/Description.d.ts +0 -3
- package/lib/components/Description/styles.d.ts +0 -3
- package/lib/components/Drawer/Drawer.d.ts +0 -10
- package/lib/components/Drawer/model.d.ts +0 -21
- package/lib/components/Drawer/styles.d.ts +0 -25
- package/lib/components/Expandable/Expandable.d.ts +0 -9
- package/lib/components/Expandable/model.d.ts +0 -13
- package/lib/components/Expandable/styles.d.ts +0 -9
- package/lib/components/Footer/Footer.d.ts +0 -6
- package/lib/components/Footer/styles.d.ts +0 -7
- package/lib/components/Grid/Grid.d.ts +0 -5
- package/lib/components/Grid/model.d.ts +0 -18
- package/lib/components/Grid/styles.d.ts +0 -5
- package/lib/components/IconButton/IconButton.d.ts +0 -3
- package/lib/components/IconButton/model.d.ts +0 -4
- package/lib/components/IconButton/styles.d.ts +0 -3
- package/lib/components/Image/Image.d.ts +0 -3
- package/lib/components/Image/styles.d.ts +0 -3
- package/lib/components/Input/Input.d.ts +0 -12
- package/lib/components/Input/model.d.ts +0 -27
- package/lib/components/Input/styles.d.ts +0 -12
- package/lib/components/Label/Label.d.ts +0 -3
- package/lib/components/Label/model.d.ts +0 -5
- package/lib/components/Label/styles.d.ts +0 -3
- package/lib/components/Layout/Layout.d.ts +0 -3
- package/lib/components/Layout/model.d.ts +0 -5
- package/lib/components/Layout/styles.d.ts +0 -3
- package/lib/components/List/List.d.ts +0 -8
- package/lib/components/List/styles.d.ts +0 -7
- package/lib/components/Loader/Loader.d.ts +0 -3
- package/lib/components/Loader/model.d.ts +0 -5
- package/lib/components/Loader/styles.d.ts +0 -3
- package/lib/components/LoadingBar/LoadingBar.d.ts +0 -3
- package/lib/components/LoadingBar/model.d.ts +0 -7
- package/lib/components/LoadingBar/styles.d.ts +0 -3
- package/lib/components/Modal/Modal.d.ts +0 -10
- package/lib/components/Modal/model.d.ts +0 -15
- package/lib/components/Modal/styles.d.ts +0 -14
- package/lib/components/NumberLabel/NumberLabel.d.ts +0 -3
- package/lib/components/NumberLabel/model.d.ts +0 -7
- package/lib/components/Pagination/Pagination.d.ts +0 -4
- package/lib/components/Pagination/model.d.ts +0 -12
- package/lib/components/Pagination/styles.d.ts +0 -6
- package/lib/components/Radio/Radio.d.ts +0 -8
- package/lib/components/Radio/model.d.ts +0 -14
- package/lib/components/Radio/styles.d.ts +0 -6
- package/lib/components/Select/Select.d.ts +0 -13
- package/lib/components/Select/model.d.ts +0 -24
- package/lib/components/Select/styles.d.ts +0 -15
- package/lib/components/Selector/Selector.d.ts +0 -4
- package/lib/components/Selector/model.d.ts +0 -10
- package/lib/components/Selector/styles.d.ts +0 -4
- package/lib/components/Sidemenu/Sidemenu.d.ts +0 -4
- package/lib/components/Sidemenu/model.d.ts +0 -10
- package/lib/components/Sidemenu/styles.d.ts +0 -4
- package/lib/components/Skeleton/Skeleton.d.ts +0 -5
- package/lib/components/Skeleton/model.d.ts +0 -14
- package/lib/components/Skeleton/styles.d.ts +0 -6
- package/lib/components/Slider/Model.d.ts +0 -7
- package/lib/components/Slider/Slider.d.ts +0 -3
- package/lib/components/Slider/styles.d.ts +0 -3
- package/lib/components/Stack/Stack.d.ts +0 -5
- package/lib/components/Stack/model.d.ts +0 -6
- package/lib/components/Stack/styles.d.ts +0 -3
- package/lib/components/Steps/Steps.d.ts +0 -6
- package/lib/components/Steps/model.d.ts +0 -16
- package/lib/components/Steps/styles.d.ts +0 -7
- package/lib/components/Styled/GlobalStyles.d.ts +0 -2
- package/lib/components/Styled/MooskinContextProvider.d.ts +0 -6
- package/lib/components/Styled/model.d.ts +0 -119
- package/lib/components/Switch/Switch.d.ts +0 -4
- package/lib/components/Switch/model.d.ts +0 -16
- package/lib/components/Switch/styles.d.ts +0 -7
- package/lib/components/Table/Table.d.ts +0 -7
- package/lib/components/Table/styles.d.ts +0 -7
- package/lib/components/Tabs/Tabs.d.ts +0 -6
- package/lib/components/Tabs/model.d.ts +0 -13
- package/lib/components/Tabs/styles.d.ts +0 -6
- package/lib/components/Tags/Tags.d.ts +0 -8
- package/lib/components/Tags/model.d.ts +0 -18
- package/lib/components/Tags/styles.d.ts +0 -8
- package/lib/components/Text/Text.d.ts +0 -3
- package/lib/components/Text/model.d.ts +0 -4
- package/lib/components/Text/styles.d.ts +0 -3
- package/lib/components/TextArea/TextArea.d.ts +0 -3
- package/lib/components/TextArea/model.d.ts +0 -4
- package/lib/components/TextArea/styles.d.ts +0 -3
- package/lib/components/TextEditor/TextEditor.d.ts +0 -3
- package/lib/components/TextEditor/model.d.ts +0 -14
- package/lib/components/_utils/adapter.d.ts +0 -1
- package/lib/components/_utils/globals/screens.d.ts +0 -11
- package/lib/components/_utils/globals/variables.d.ts +0 -3
- package/lib/components/_utils/helper.d.ts +0 -3
- package/lib/components/_utils/index.d.ts +0 -3
- package/lib/components/_utils/test-setup.d.ts +0 -0
- package/lib/components/_utils/types/commonTypes.d.ts +0 -4
- package/lib/components/index/index.d.ts +0 -85
- 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/stories/ActionsDropdown.stories.d.ts +0 -6
- package/lib/stories/Alert.stories.d.ts +0 -5
- package/lib/stories/Anchor.stories.d.ts +0 -5
- package/lib/stories/Box.stories.d.ts +0 -4
- package/lib/stories/Button.stories.d.ts +0 -7
- package/lib/stories/Carousel.stories.d.ts +0 -4
- package/lib/stories/Checkbox.stories.d.ts +0 -8
- package/lib/stories/DatePicker.stories.d.ts +0 -4
- package/lib/stories/DateRange.stories.d.ts +0 -4
- package/lib/stories/DateSelect.stories.d.ts +0 -9
- package/lib/stories/DateTimePicker.stories.d.ts +0 -4
- package/lib/stories/Drawer.stories.d.ts +0 -6
- package/lib/stories/Expandable.stories.d.ts +0 -4
- package/lib/stories/Footer.stories.d.ts +0 -4
- package/lib/stories/Grid.stories.d.ts +0 -4
- package/lib/stories/IconButton.stories.d.ts +0 -5
- package/lib/stories/Input.stories.d.ts +0 -6
- package/lib/stories/Layout.stories.d.ts +0 -4
- package/lib/stories/List.stories.d.ts +0 -5
- package/lib/stories/Loader.stories.d.ts +0 -4
- package/lib/stories/LoadingBar.stories.d.ts +0 -4
- package/lib/stories/Modal.stories.d.ts +0 -4
- package/lib/stories/NumberLabel.stories.d.ts +0 -10
- package/lib/stories/Pagination.stories.d.ts +0 -4
- package/lib/stories/Radio.stories.d.ts +0 -8
- package/lib/stories/Select.stories.d.ts +0 -7
- package/lib/stories/Selector.stories.d.ts +0 -4
- package/lib/stories/Sidemenu.stories.d.ts +0 -4
- package/lib/stories/Skeleton.stories.d.ts +0 -6
- package/lib/stories/Slider.stories.d.ts +0 -4
- package/lib/stories/Stack.stories.d.ts +0 -9
- package/lib/stories/StackedTags.stories.d.ts +0 -4
- package/lib/stories/Steps.stories.d.ts +0 -4
- package/lib/stories/Switch.stories.d.ts +0 -6
- package/lib/stories/Table.stories.d.ts +0 -4
- package/lib/stories/Tabs.stories.d.ts +0 -4
- package/lib/stories/Tags.stories.d.ts +0 -6
- package/lib/stories/TextEditor.stories.d.ts +0 -8
- package/lib/stories/Textarea.stories.d.ts +0 -5
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface IFieldsetProps {
|
|
3
|
-
id?: string;
|
|
4
|
-
legend?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
children?: any;
|
|
8
|
-
}
|
|
9
|
-
export default class Fieldset extends React.Component<IFieldsetProps, {}> {
|
|
10
|
-
static defaultProps: {
|
|
11
|
-
className: string;
|
|
12
|
-
style: {};
|
|
13
|
-
};
|
|
14
|
-
static displayName: string;
|
|
15
|
-
render(): JSX.Element;
|
|
16
|
-
}
|
package/lib/Fieldset/index.d.ts
DELETED
package/lib/Fieldset/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(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=342)}({0:function(t,n){t.exports=e},240:function(e,t,n){e.exports={fieldset:"fieldset___ul-gX"}},342:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(240),i=n.n(o);function u(e){return(u="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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==u(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 a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f(this,l(t).apply(this,arguments))}var n,o,u;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,r["Component"]),n=t,(o=[{key:"render",value:function(){return r.createElement("fieldset",{id:this.props.id,className:"fieldset-component ".concat(i.a.fieldset," ").concat(this.props.className),style:this.props.style},this.props.legend&&r.createElement("legend",{className:i.a.legend},this.props.legend),this.props.children)}}])&&c(n.prototype,o),u&&c(n,u),t}();a.defaultProps={className:"",style:{}},a.displayName="Fieldset";t.default=a}})});
|
package/lib/Fieldset/style.css
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
@import url(https://fonts.googleapis.com/css?family=Alegreya+Sans:500|Convergence);
|
|
2
|
-
.fieldset___ul-gX{font-family:sans-serif;border:2px solid #e6e6e6;border-radius:8px;padding:15px}.fieldset___ul-gX legend{font-family:Convergence,Alegreya Sans,sans-serif;color:#3a4257;padding:2px 5px;font-size:16px;font-size:1rem;border-radius:8px;margin-left:5px}
|
package/lib/File/FileUpload.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IInputCallbackData, IValidationCallbackData } from '../_utils/types/commonTypes';
|
|
3
|
-
export interface IFileProps {
|
|
4
|
-
id?: string;
|
|
5
|
-
file?: File | FileList;
|
|
6
|
-
required?: boolean;
|
|
7
|
-
multiple?: boolean;
|
|
8
|
-
accept?: string;
|
|
9
|
-
label?: string;
|
|
10
|
-
labelWidth?: number;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
buttonLabel?: string;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
description?: string;
|
|
15
|
-
status?: 'error' | 'success';
|
|
16
|
-
validate?: (data: IValidationCallbackData) => boolean;
|
|
17
|
-
style?: React.CSSProperties;
|
|
18
|
-
className?: string;
|
|
19
|
-
dataLabel?: string;
|
|
20
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>, data: IInputCallbackData) => void;
|
|
21
|
-
}
|
|
22
|
-
export interface IFileState {
|
|
23
|
-
file?: File | FileList;
|
|
24
|
-
name?: string;
|
|
25
|
-
}
|
|
26
|
-
export default class FileUpload extends React.Component<IFileProps, IFileState> {
|
|
27
|
-
static defaultProps: {
|
|
28
|
-
buttonLabel: string;
|
|
29
|
-
className: string;
|
|
30
|
-
placeholder: string;
|
|
31
|
-
style: {};
|
|
32
|
-
};
|
|
33
|
-
static displayName: string;
|
|
34
|
-
static getDerivedStateFromProps(nextProps: IFileProps): {
|
|
35
|
-
file: File | FileList | undefined;
|
|
36
|
-
};
|
|
37
|
-
constructor(props: IFileProps);
|
|
38
|
-
render(): JSX.Element;
|
|
39
|
-
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
40
|
-
fileNames: (files: any) => string;
|
|
41
|
-
getStatus: () => any;
|
|
42
|
-
getDescStatus: () => any;
|
|
43
|
-
}
|
package/lib/File/index.d.ts
DELETED
package/lib/File/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 r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="../",r(r.s=343)}({0:function(t,r){t.exports=e},343:function(e,t,r){"use strict";r.r(t);var n=r(0),o=r(37),a=r.n(o);function s(e){return(s="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 r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return!t||"object"!==s(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 c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=l(this,c(t).call(this,e))).onChange=function(e){if(e.target.files&&e.target.files.length>1){var t=e.target.files,n=r.fileNames(t);!r.props.disabled&&r.setState({file:t,name:n}),!r.props.disabled&&r.props.onChange&&r.props.onChange(e,{value:t,dataLabel:r.props.dataLabel}),r.props.status&&r.props.validate&&r.props.validate({value:t,dataLabel:r.props.dataLabel,required:r.props.required})}else{var o=e.target.files&&e.target.files[0];o&&(!r.props.disabled&&r.setState({file:o,name:o.name}),!r.props.disabled&&r.props.onChange&&r.props.onChange(e,{value:o,dataLabel:r.props.dataLabel}),r.props.status&&r.props.validate&&r.props.validate({value:o,dataLabel:r.props.dataLabel,required:r.props.required}))}},r.fileNames=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].name);return t.join(", ")},r.getStatus=function(){var e=r.props.status&&r.props.status;if(e){if("error"===e)return a.a.error;if("success"===e)return a.a.success}},r.getDescStatus=function(){var e=r.props.status&&r.props.status;if(e){if("error"===e)return a.a.descError;if("success"===e)return a.a.descSuccess}},r.state={file:r.props.file,name:r.props.file&&r.fileNames(r.props.file)||r.props.placeholder},r}var r,o,s;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&&u(e,t)}(t,n["Component"]),r=t,s=[{key:"getDerivedStateFromProps",value:function(e){return{file:e.file}}}],(o=[{key:"render",value:function(){var e=this.props,t=e.disabled,r=e.description,o=e.accept,s=e.style,i=e.className,l=e.id,c=e.label,u=e.buttonLabel,p=e.required,f=e.multiple,d=this.props.disabled?a.a.disabledFile:"",b=this.props.labelWidth?{flexBasis:"".concat(this.props.labelWidth,"px")}:{},m=this.getStatus(),y=this.getDescStatus();return n.createElement("div",{id:l,className:"file-upload-component ".concat(a.a.fileContainer," ").concat(d," ").concat(i),style:s},c&&n.createElement("label",{className:a.a.label,style:b},c),n.createElement("div",{style:{flexShrink:1,flexGrow:1,flexDirection:"column"}},n.createElement("div",{className:a.a.contentContainer},n.createElement("span",{className:"".concat(a.a.name," ").concat(m)},this.state.name),n.createElement("span",{className:a.a.button},u),n.createElement("input",{accept:o,required:p,disabled:t,onChange:this.onChange,type:"file",title:"Click to select file",className:a.a.input,multiple:f})),r&&n.createElement("i",{className:"".concat(a.a.description," ").concat(y)},r)))}}])&&i(r.prototype,o),s&&i(r,s),t}();p.defaultProps={buttonLabel:"Upload",className:"",placeholder:"No File Selected...",style:{}},p.displayName="FileUpload";t.default=p},37:function(e,t,r){e.exports={contentContainer:"contentContainer___3-T-6",fileContainer:"fileContainer___2DC3E",button:"button___V0VGw",name:"name___20sCI",input:"input___WM33G",disabledFile:"disabledFile___2uwXs",label:"label___1famX",description:"description___1Ag9o",success:"success___2RMxs",error:"error___1e_hi",descError:"descError___28S5M",descSuccess:"descSuccess___2NYQ3"}}})});
|
package/lib/File/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.contentContainer___3-T-6,.fileContainer___2DC3E{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.contentContainer___3-T-6{position:relative}.button___V0VGw{text-align:center;border-radius:10px;font-size:14px;font-size:.875rem;margin:3px;background-color:#5ccdde;border:1px solid transparent;color:#fff;padding:8px 38px}.button___V0VGw,.name___20sCI{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.name___20sCI{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;padding:15px;font-family:Arial,sans-serif;color:#9e9e9e;font-size:16px;font-size:1rem;border-radius:8px;background:#efefef}.input___WM33G{outline:none;position:absolute;width:100%;height:100%;left:0;top:0;cursor:pointer;opacity:0}.disabledFile___2uwXs{opacity:.7}.disabledFile___2uwXs,.disabledFile___2uwXs input{cursor:not-allowed}.label___1famX{display:-webkit-box;display:-ms-flexbox;display:flex;color:#6b6b6b;font-size:14.857px;font-size:.92857142857rem;-ms-flex-preferred-size:150px;flex-basis:150px;padding-top:15px}.disabledFile___2uwXs>.name___20sCI{cursor:not-allowed;color:#bfbfbf;background:#f6f6f6}.disabledFile___2uwXs>.button___V0VGw{background:#95dee9}.disabledFile___2uwXs>.input___WM33G{cursor:not-allowed}.description___1Ag9o{display:block;color:#b3b3b3;font-size:12.571px;font-size:.78571428571rem;margin-top:10px}.success___2RMxs{-webkit-box-shadow:inset 0 0 0 2px #0c4;box-shadow:inset 0 0 0 2px #0c4}.error___1e_hi{-webkit-box-shadow:inset 0 0 0 2px #ec3232;box-shadow:inset 0 0 0 2px #ec3232}.descError___28S5M{color:#ec3232}.descSuccess___2NYQ3{color:#0c4}@media (max-width:768px){.contentContainer___3-T-6,.fileContainer___2DC3E{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.label___1famX{margin-left:3px;-ms-flex-preferred-size:20px;flex-basis:20px}.name___20sCI{margin-bottom:5px}.label___1famX{padding-top:0}}
|
package/lib/Form/Form.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IInputCallbackData } from '../../components/_utils/types/commonTypes';
|
|
3
|
-
export interface IFormProps {
|
|
4
|
-
id?: string;
|
|
5
|
-
dataLabel?: string;
|
|
6
|
-
children?: any;
|
|
7
|
-
withRecurly?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
onSubmit?: (e: React.FormEvent<HTMLElement>, data: IInputCallbackData) => void;
|
|
11
|
-
validate?: (dataLabel: string) => void;
|
|
12
|
-
}
|
|
13
|
-
export interface IFormGroupProps {
|
|
14
|
-
children?: JSX.Element | JSX.Element[];
|
|
15
|
-
className?: string;
|
|
16
|
-
style?: React.CSSProperties;
|
|
17
|
-
horizontal?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export default class Form extends React.Component<IFormProps, {}> {
|
|
20
|
-
static defaultProps: {
|
|
21
|
-
className: string;
|
|
22
|
-
style: {};
|
|
23
|
-
};
|
|
24
|
-
static displayName: string;
|
|
25
|
-
static FormGroup: React.StatelessComponent<IFormGroupProps>;
|
|
26
|
-
render(): JSX.Element;
|
|
27
|
-
assignPropsToChildren: () => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
|
|
28
|
-
formGroupButtons: (group: any) => any;
|
|
29
|
-
onSubmit: (children: any) => (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
30
|
-
getChildren: () => any;
|
|
31
|
-
getEssence: (formChildren: any) => any;
|
|
32
|
-
collectEssence: (formChildren: any, data: any) => any;
|
|
33
|
-
checkElementValidation: (element: any, valueName: string) => any;
|
|
34
|
-
getData: (data: any, element: any, valueName: string) => any;
|
|
35
|
-
}
|
|
36
|
-
export declare const FormGroup: React.StatelessComponent<IFormGroupProps>;
|
package/lib/Form/index.d.ts
DELETED
package/lib/Form/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 r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="../",r(r.s=307)}({0:function(t,r){t.exports=e},307:function(e,t,r){"use strict";r.r(t);var o=r(0),n=r(66),a=r.n(n);function i(e){return(i="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 p(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return!t||"object"!==i(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 c(e){return(c=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 u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=l(this,c(t).apply(this,arguments))).assignPropsToChildren=function(){var t=[],r={onClick:e.onSubmit(e.getChildren())};return o.Children.map(e.props.children,function(n,a){var i={key:a};if(o.isValidElement(n)&&"Button"===n.type.displayName&&"submit"===n.props.type&&t.push(o.cloneElement(n,Object.assign({},i,r))),o.isValidElement(n)&&"FormGroup"===n.type.displayName){var p=n.props.children&&e.formGroupButtons(n.props.children);t.push(o.createElement(f,{key:a,horizontal:n.props.horizontal,style:n.props.style,className:n.props.className},p||n.props.children))}}),t},e.formGroupButtons=function(t){var r=[],n={onClick:e.onSubmit(e.getChildren())};return Array.isArray(t)?(t.map(function(e,t){var a={key:t};"Button"===e.type.displayName&&"submit"===e.props.type?r.push(o.cloneElement(e,Object.assign({},a,n))):r.push(o.cloneElement(e,a))}),r):"Button"===t.type.displayName&&"submit"===t.props.type?o.cloneElement(t,Object.assign({},n)):t},e.onSubmit=function(t){return function(r){r.preventDefault();var o=e.getEssence(t);void 0===o||o.invalidForm||e.props.onSubmit&&e.props.onSubmit(r,{value:o,dataLabel:e.props.dataLabel})}},e.getChildren=function(){var t=[];return o.Children.map(e.props.children,function(e,r){o.isValidElement(e)&&t.push(e)}),t},e.getEssence=function(t){var r={};return r=e.collectEssence(t,r)},e.collectEssence=function(t,r){return t.type===f&&e.collectEssence(t.props.children,r),Array.isArray(t)&&t.forEach(function(t){"Input"===t.type.displayName||"TextArea"===t.type.displayName?r=e.getData(r,t,"value"):"Switch"===t.type.displayName?r=e.getData(r,t,"on"):"Select"===t.type.displayName?r=e.getData(r,t,"selected"):"RadioGroup"===t.type.displayName?r=e.getData(r,t,"selectedRadios"):"CheckboxGroup"===t.type.displayName?r=e.getData(r,t,"selectedChecks"):"DatePicker"===t.type.displayName?r=e.getData(r,t,"date"):"FileUpload"===t.type.displayName?r=e.getData(r,t,"files"):"Tags"===t.type.displayName?r=e.getData(r,t,"tags"):e.collectEssence(t,r)}),r},e.checkElementValidation=function(e,t){var r=e.props,o=r.dataLabel,n=r.required;return e.props.validate({value:e.props[t],dataLabel:o,required:n})},e.getData=function(t,r,o){return r.props.validate?e.checkElementValidation(r,o)?(t[r.props.dataLabel]=r.props[o],t):(t.invalidForm=!0,t):(t[r.props.dataLabel]=r.props[o],t)},e}var r,n,i;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"]),r=t,(n=[{key:"render",value:function(){var e=this.props.className,t=this.assignPropsToChildren();return o.createElement("form",{id:this.props.id,className:"form ".concat(a.a.form," ").concat(e),style:this.props.style},t,this.props.withRecurly&&o.createElement("input",{type:"hidden",name:"recurly-token","data-recurly":"token"}))}}])&&p(r.prototype,n),i&&p(r,i),t}();u.defaultProps={className:"",style:{}},u.displayName="Form";var f=function(e){var t=e.horizontal?a.a.horizontal:a.a.vertical;return o.createElement("div",{style:e.style,className:"formgroup-component ".concat(a.a.formGroup," ").concat(a.a.container," ").concat(t," ").concat(e.className)},e.children)};f.defaultProps={className:"",style:{}},f.displayName="FormGroup",r.d(t,"FormGroup",function(){return f}),u.FormGroup=f;t.default=u},66:function(e,t,r){e.exports={form:"form___1HazU",formGroup:"formGroup___z-JgG",horizontal:"horizontal___3GRUe",vertical:"vertical___1aIqj"}}})});
|
package/lib/Form/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.form___1HazU{display:block}.formGroup___z-JgG{display:-webkit-box;display:-ms-flexbox;display:flex}.horizontal___3GRUe{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row}.horizontal___3GRUe,.vertical___1aIqj{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;-webkit-box-direction:normal}.vertical___1aIqj{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}@media (max-width:768px){.horizontal___3GRUe{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}@media (min-width:769px) and (max-width:991px){.horizontal___3GRUe{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}
|
package/lib/Grid/index.d.ts
DELETED
package/lib/Grid/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 l(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,l),r.l=!0,r.exports}return l.m=e,l.c=t,l.d=function(e,t,n){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(l.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)l.d(n,r,function(t){return e[t]}.bind(null,r));return n},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="../",l(l.s=247)}({0:function(t,l){t.exports=e},24:function(e,t,l){e.exports={grid:"grid___1pWSn",row:"row___1B0p-",col:"col___2Shrs",default:"default___1LbOT",hidden:"hidden___3vDaq",hiddenContent:"hiddenContent___3zEDr","large-1":"large-1___2AB9I","large-2":"large-2___1nqpA","large-3":"large-3___1qlfQ","large-4":"large-4___2WXgN","large-5":"large-5___Tmk8U","large-6":"large-6___25zIT","large-7":"large-7___33iPo","large-8":"large-8___3J5-3","large-9":"large-9___2fuiC","large-10":"large-10___3brPe","large-11":"large-11___2k2fH","large-12":"large-12___3yiHF","hidden-lg":"hidden-lg___IsT9u","medium-1":"medium-1___1-og3","medium-2":"medium-2___2mHMY","medium-3":"medium-3___3b4gk","medium-4":"medium-4___chvXx","medium-5":"medium-5___2D1q1","medium-6":"medium-6___3pYUi","medium-7":"medium-7___23Deu","medium-8":"medium-8___1YDM7","medium-9":"medium-9___19Liv","medium-10":"medium-10___1ko1Z","medium-11":"medium-11___3Sy6_","medium-12":"medium-12___28yy4","hidden-md":"hidden-md___fLhxV","small-1":"small-1___3Hidm","small-2":"small-2___1xwCw","small-3":"small-3___1vGJr","small-4":"small-4___37z-U","small-5":"small-5___1zXHS","small-6":"small-6___EkJAy","small-7":"small-7___1sQ3B","small-8":"small-8___1u9Vn","small-9":"small-9___sKe7b","small-10":"small-10___2r1Ow","small-11":"small-11___3RXgq","small-12":"small-12___3RMPQ","hidden-sm":"hidden-sm___1CcfD","xSmall-1":"xSmall-1___2J9cX","xSmall-2":"xSmall-2___2OP0X","xSmall-3":"xSmall-3___1J38T","xSmall-4":"xSmall-4___uuBLv","xSmall-5":"xSmall-5___1QwAR","xSmall-6":"xSmall-6___3Ie-U","xSmall-7":"xSmall-7___1TZyG","xSmall-8":"xSmall-8___2jlBs","xSmall-9":"xSmall-9___x5Ktu","xSmall-10":"xSmall-10___2duXV","xSmall-11":"xSmall-11___1JbBT","xSmall-12":"xSmall-12___3GmvE","hidden-xs":"hidden-xs___2PM6g"}},247:function(e,t,l){"use strict";l.r(t);var n=l(0),r=l(24),a=l.n(r);function o(e){return(o="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 _(e,t){for(var l=0;l<t.length;l++){var n=t[l];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return!t||"object"!==o(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 u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),i(this,m(t).apply(this,arguments))}var l,r,o;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&&u(e,t)}(t,n["Component"]),l=t,(r=[{key:"render",value:function(){var e=this.props.hidden?a.a.hidden:"";return n.createElement("div",{id:this.props.id,className:"grid-component ".concat(a.a.grid," ").concat(e," ").concat(this.props.className),style:this.props.style},this.props.children)}}])&&_(l.prototype,r),o&&_(l,o),t}();d.defaultProps={className:"",style:{}},d.displayName="Grid";var c=function(e){var t=e.hidden?a.a.hidden:"";return n.createElement("div",{id:e.id,className:"row-component ".concat(a.a.row," ").concat(t," ").concat(e.className),style:e.style},e.children)};c.defaultProps={className:"",style:{}},c.displayName="Row";var s=function(e){var t=e.hidden?a.a.hidden:"",l=e.lg||0,r=e.md||0,o=e.sm||0,_=e.xs||0,i=function(e,t){return"string"==typeof e?u(e,t):m(e,t)},m=function(e,t){for(var l="",n=1;n<=e;n++){if(e===n&&"large"===t)return l="large-"+n,a.a[l];if(e===n&&"medium"===t)return l="medium-"+n,a.a[l];if(e===n&&"small"===t)return l="small-"+n,a.a[l];if(e===n&&"xSmall"===t)return l="xSmall-"+n,a.a[l]}},u=function(e,t){return"hidden"===e&&"large"===t?a.a["hidden-lg"]:"hidden"===e&&"medium"===t?a.a["hidden-md"]:"hidden"===e&&"small"===t?a.a["hidden-sm"]:"hidden"===e&&"xSmall"===t?a.a["hidden-xs"]:void 0},d=function(){if(e.lg||e.md||e.sm||e.xs){var t=i(l,"large")||a.a.default,n=i(r,"medium")||a.a.default,m=i(o,"small")||a.a.default,u=i(_,"xSmall")||a.a.default;return"".concat(t," ").concat(n," ").concat(m," ").concat(u," ").concat(e.className)}var d=e.lg||e.md||e.sm||e.xs?"":a.a.default;return"".concat(d," ").concat(e.className)}();return n.createElement("div",{id:e.id,className:"col-component ".concat(a.a.col," ").concat(d," ").concat(t),style:e.style},e.children)};s.defaultProps={className:"",style:{}},s.displayName="Col",l.d(t,"Col",function(){return s}),l.d(t,"Row",function(){return c}),d.Row=c,d.Col=s;t.default=d}})});
|
package/lib/Grid/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.grid___1pWSn{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;-webkit-box-sizing:border-box;box-sizing:border-box}.grid___1pWSn:after,.row___1B0p-:after{clear:both}.row___1B0p-{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap}.col___2Shrs,.row___1B0p-{-webkit-box-sizing:border-box;box-sizing:border-box;min-width:0}.default___1LbOT{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.hidden___3vDaq{display:none}.hiddenContent___3zEDr{visibility:hidden}@media screen and (min-width:1200px){.large-1___2AB9I{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;width:8.33333333%;max-width:8.33333333%}.large-1___2AB9I,.large-2___1nqpA{-ms-flex-negative:1;flex-shrink:1}.large-2___1nqpA{-webkit-box-flex:2;-ms-flex-positive:2;flex-grow:2;width:16.66666667%;max-width:16.66666667%}.large-3___1qlfQ{-webkit-box-flex:3;-ms-flex-positive:3;flex-grow:3;width:25%;max-width:25%}.large-3___1qlfQ,.large-4___2WXgN{-ms-flex-negative:1;flex-shrink:1}.large-4___2WXgN{-webkit-box-flex:4;-ms-flex-positive:4;flex-grow:4;width:33.33333333%;max-width:33.33333333%}.large-5___Tmk8U{-webkit-box-flex:5;-ms-flex-positive:5;flex-grow:5;width:41.66666667%;max-width:41.66666667%}.large-5___Tmk8U,.large-6___25zIT{-ms-flex-negative:1;flex-shrink:1}.large-6___25zIT{-webkit-box-flex:6;-ms-flex-positive:6;flex-grow:6;width:50%;max-width:50%}.large-7___33iPo{-webkit-box-flex:7;-ms-flex-positive:7;flex-grow:7;width:58.33333333%;max-width:58.33333333%}.large-7___33iPo,.large-8___3J5-3{-ms-flex-negative:1;flex-shrink:1}.large-8___3J5-3{-webkit-box-flex:8;-ms-flex-positive:8;flex-grow:8;width:66.66666667%;max-width:66.66666667%}.large-9___2fuiC{-webkit-box-flex:9;-ms-flex-positive:9;flex-grow:9;width:75%;max-width:75%}.large-9___2fuiC,.large-10___3brPe{-ms-flex-negative:1;flex-shrink:1}.large-10___3brPe{-webkit-box-flex:10;-ms-flex-positive:10;flex-grow:10;width:83.33333333%;max-width:83.33333333%}.large-11___2k2fH{-webkit-box-flex:11;-ms-flex-positive:11;flex-grow:11;width:91.66666667%;max-width:91.66666667%}.large-11___2k2fH,.large-12___3yiHF{-ms-flex-negative:1;flex-shrink:1}.large-12___3yiHF{-webkit-box-flex:12;-ms-flex-positive:12;flex-grow:12;width:100%;max-width:100%}.hidden-lg___IsT9u{display:none}}@media screen and (min-width:992px) and (max-width:1199px){.medium-1___1-og3{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;width:8.33333333%;max-width:8.33333333%}.medium-1___1-og3,.medium-2___2mHMY{-ms-flex-negative:1;flex-shrink:1}.medium-2___2mHMY{-webkit-box-flex:2;-ms-flex-positive:2;flex-grow:2;width:16.66666667%;max-width:16.66666667%}.medium-3___3b4gk{-webkit-box-flex:3;-ms-flex-positive:3;flex-grow:3;width:25%;max-width:25%}.medium-3___3b4gk,.medium-4___chvXx{-ms-flex-negative:1;flex-shrink:1}.medium-4___chvXx{-webkit-box-flex:4;-ms-flex-positive:4;flex-grow:4;width:33.33333333%;max-width:33.33333333%}.medium-5___2D1q1{-webkit-box-flex:5;-ms-flex-positive:5;flex-grow:5;width:41.66666667%;max-width:41.66666667%}.medium-5___2D1q1,.medium-6___3pYUi{-ms-flex-negative:1;flex-shrink:1}.medium-6___3pYUi{-webkit-box-flex:6;-ms-flex-positive:6;flex-grow:6;width:50%;max-width:50%}.medium-7___23Deu{-webkit-box-flex:7;-ms-flex-positive:7;flex-grow:7;width:58.33333333%;max-width:58.33333333%}.medium-7___23Deu,.medium-8___1YDM7{-ms-flex-negative:1;flex-shrink:1}.medium-8___1YDM7{-webkit-box-flex:8;-ms-flex-positive:8;flex-grow:8;width:66.66666667%;max-width:66.66666667%}.medium-9___19Liv{-webkit-box-flex:9;-ms-flex-positive:9;flex-grow:9;width:75%;max-width:75%}.medium-9___19Liv,.medium-10___1ko1Z{-ms-flex-negative:1;flex-shrink:1}.medium-10___1ko1Z{-webkit-box-flex:10;-ms-flex-positive:10;flex-grow:10;width:83.33333333%;max-width:83.33333333%}.medium-11___3Sy6_{-webkit-box-flex:11;-ms-flex-positive:11;flex-grow:11;width:91.66666667%;max-width:91.66666667%}.medium-11___3Sy6_,.medium-12___28yy4{-ms-flex-negative:1;flex-shrink:1}.medium-12___28yy4{-webkit-box-flex:12;-ms-flex-positive:12;flex-grow:12;width:100%;max-width:100%}.hidden-md___fLhxV{display:none}}@media screen and (min-width:769px) and (max-width:991px){.small-1___3Hidm{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;width:8.33333333%;max-width:8.33333333%}.small-1___3Hidm,.small-2___1xwCw{-ms-flex-negative:1;flex-shrink:1}.small-2___1xwCw{-webkit-box-flex:2;-ms-flex-positive:2;flex-grow:2;width:16.66666667%;max-width:16.66666667%}.small-3___1vGJr{-webkit-box-flex:3;-ms-flex-positive:3;flex-grow:3;width:25%;max-width:25%}.small-3___1vGJr,.small-4___37z-U{-ms-flex-negative:1;flex-shrink:1}.small-4___37z-U{-webkit-box-flex:4;-ms-flex-positive:4;flex-grow:4;width:33.33333333%;max-width:33.33333333%}.small-5___1zXHS{-webkit-box-flex:5;-ms-flex-positive:5;flex-grow:5;width:41.66666667%;max-width:41.66666667%}.small-5___1zXHS,.small-6___EkJAy{-ms-flex-negative:1;flex-shrink:1}.small-6___EkJAy{-webkit-box-flex:6;-ms-flex-positive:6;flex-grow:6;width:50%;max-width:50%}.small-7___1sQ3B{-webkit-box-flex:7;-ms-flex-positive:7;flex-grow:7;width:58.33333333%;max-width:58.33333333%}.small-7___1sQ3B,.small-8___1u9Vn{-ms-flex-negative:1;flex-shrink:1}.small-8___1u9Vn{-webkit-box-flex:8;-ms-flex-positive:8;flex-grow:8;width:66.66666667%;max-width:66.66666667%}.small-9___sKe7b{-webkit-box-flex:9;-ms-flex-positive:9;flex-grow:9;width:75%;max-width:75%}.small-9___sKe7b,.small-10___2r1Ow{-ms-flex-negative:1;flex-shrink:1}.small-10___2r1Ow{-webkit-box-flex:10;-ms-flex-positive:10;flex-grow:10;width:83.33333333%;max-width:83.33333333%}.small-11___3RXgq{-webkit-box-flex:11;-ms-flex-positive:11;flex-grow:11;width:91.66666667%;max-width:91.66666667%}.small-11___3RXgq,.small-12___3RMPQ{-ms-flex-negative:1;flex-shrink:1}.small-12___3RMPQ{-webkit-box-flex:12;-ms-flex-positive:12;flex-grow:12;width:100%;max-width:100%}.hidden-sm___1CcfD{display:none}}@media (max-width:768px){.xSmall-1___2J9cX{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;width:8.33333333%;max-width:8.33333333%}.xSmall-1___2J9cX,.xSmall-2___2OP0X{-ms-flex-negative:1;flex-shrink:1}.xSmall-2___2OP0X{-webkit-box-flex:2;-ms-flex-positive:2;flex-grow:2;width:16.66666667%;max-width:16.66666667%}.xSmall-3___1J38T{-webkit-box-flex:3;-ms-flex-positive:3;flex-grow:3;width:25%;max-width:25%}.xSmall-3___1J38T,.xSmall-4___uuBLv{-ms-flex-negative:1;flex-shrink:1}.xSmall-4___uuBLv{-webkit-box-flex:4;-ms-flex-positive:4;flex-grow:4;width:33.33333333%;max-width:33.33333333%}.xSmall-5___1QwAR{-webkit-box-flex:5;-ms-flex-positive:5;flex-grow:5;width:41.66666667%;max-width:41.66666667%}.xSmall-5___1QwAR,.xSmall-6___3Ie-U{-ms-flex-negative:1;flex-shrink:1}.xSmall-6___3Ie-U{-webkit-box-flex:6;-ms-flex-positive:6;flex-grow:6;width:50%;max-width:50%}.xSmall-7___1TZyG{-webkit-box-flex:7;-ms-flex-positive:7;flex-grow:7;width:58.33333333%;max-width:58.33333333%}.xSmall-7___1TZyG,.xSmall-8___2jlBs{-ms-flex-negative:1;flex-shrink:1}.xSmall-8___2jlBs{-webkit-box-flex:8;-ms-flex-positive:8;flex-grow:8;width:66.66666667%;max-width:66.66666667%}.xSmall-9___x5Ktu{-webkit-box-flex:9;-ms-flex-positive:9;flex-grow:9;width:75%;max-width:75%}.xSmall-9___x5Ktu,.xSmall-10___2duXV{-ms-flex-negative:1;flex-shrink:1}.xSmall-10___2duXV{-webkit-box-flex:10;-ms-flex-positive:10;flex-grow:10;width:83.33333333%;max-width:83.33333333%}.xSmall-11___1JbBT{-webkit-box-flex:11;-ms-flex-positive:11;flex-grow:11;width:91.66666667%;max-width:91.66666667%}.xSmall-11___1JbBT,.xSmall-12___3GmvE{-ms-flex-negative:1;flex-shrink:1}.xSmall-12___3GmvE{-webkit-box-flex:12;-ms-flex-positive:12;flex-grow:12;width:100%;max-width:100%}.hidden-xs___2PM6g{display:none}}
|
package/lib/Headings/H1/H1.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IHeadingProps } from '../props';
|
|
3
|
-
declare class H1 extends React.Component<IHeadingProps, {}> {
|
|
4
|
-
static defaultProps: {
|
|
5
|
-
className: string;
|
|
6
|
-
style: {};
|
|
7
|
-
};
|
|
8
|
-
static displayName: string;
|
|
9
|
-
render(): JSX.Element;
|
|
10
|
-
}
|
|
11
|
-
export default H1;
|
package/lib/Headings/H2/H2.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IHeadingProps } from '../props';
|
|
3
|
-
declare class H2 extends React.Component<IHeadingProps, {}> {
|
|
4
|
-
static defaultProps: {
|
|
5
|
-
className: string;
|
|
6
|
-
style: {};
|
|
7
|
-
};
|
|
8
|
-
static displayName: string;
|
|
9
|
-
render(): JSX.Element;
|
|
10
|
-
}
|
|
11
|
-
export default H2;
|
package/lib/Headings/H3/H3.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IHeadingProps } from '../props';
|
|
3
|
-
declare class H3 extends React.Component<IHeadingProps, {}> {
|
|
4
|
-
static defaultProps: {
|
|
5
|
-
className: string;
|
|
6
|
-
style: {};
|
|
7
|
-
};
|
|
8
|
-
static displayName: string;
|
|
9
|
-
render(): JSX.Element;
|
|
10
|
-
}
|
|
11
|
-
export default H3;
|
package/lib/Headings/H4/H4.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IHeadingProps } from '../props';
|
|
3
|
-
declare class H4 extends React.Component<IHeadingProps, {}> {
|
|
4
|
-
static defaultProps: {
|
|
5
|
-
className: string;
|
|
6
|
-
style: {};
|
|
7
|
-
};
|
|
8
|
-
static displayName: string;
|
|
9
|
-
render(): JSX.Element;
|
|
10
|
-
}
|
|
11
|
-
export default H4;
|
package/lib/Headings/H5/H5.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IHeadingProps } from '../props';
|
|
3
|
-
declare class H5 extends React.Component<IHeadingProps, {}> {
|
|
4
|
-
static defaultProps: {
|
|
5
|
-
className: string;
|
|
6
|
-
style: {};
|
|
7
|
-
};
|
|
8
|
-
static displayName: string;
|
|
9
|
-
render(): JSX.Element;
|
|
10
|
-
}
|
|
11
|
-
export default H5;
|
package/lib/Headings/H6/H6.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IHeadingProps } from '../props';
|
|
3
|
-
declare class H6 extends React.Component<IHeadingProps, {}> {
|
|
4
|
-
static defaultProps: {
|
|
5
|
-
className: string;
|
|
6
|
-
style: {};
|
|
7
|
-
};
|
|
8
|
-
static displayName: string;
|
|
9
|
-
render(): JSX.Element;
|
|
10
|
-
}
|
|
11
|
-
export default H6;
|
package/lib/Headings/index.d.ts
DELETED
package/lib/Headings/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define("mooskin",["react"],e):"object"==typeof exports?exports.mooskin=e(require("react")):t.mooskin=e(t.react)}(this,function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="../",n(n.s=28)}({0:function(e,n){e.exports=t},28:function(t,e,n){"use strict";n.r(e);var o=n(0),r=n(51),u=n.n(r);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,a(e).apply(this,arguments))}var n,r,c;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,o["Component"]),n=e,(r=[{key:"render",value:function(){var t=this.props,e=t.id,n=t.className,r=t.style,c=t.children,i="h1-component ".concat(u.a.h1," ").concat(n);return o.createElement("div",{id:e,className:i,style:r},c)}}])&&i(n.prototype,r),c&&i(n,c),e}();p.defaultProps={className:"",style:{}},p.displayName="H1";var s=p,y=n(43),b=n(52),m=n.n(b);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function v(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var j=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,_(e).apply(this,arguments))}var n,r,u;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}(e,o["Component"]),n=e,(r=[{key:"render",value:function(){var t=this.props,e=t.id,n=t.className,r=t.style,u=t.children,c="h3-component ".concat(m.a.h3," ").concat(n);return o.createElement("div",{id:e,className:c,style:r},u)}}])&&d(n.prototype,r),u&&d(n,u),e}();j.defaultProps={className:"",style:{}},j.displayName="H3";var w=j,P=n(53),S=n.n(P);function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function N(t,e){return!e||"object"!==g(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var T=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),N(this,x(e).apply(this,arguments))}var n,r,u;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k(t,e)}(e,o["Component"]),n=e,(r=[{key:"render",value:function(){var t=this.props,e=t.id,n=t.className,r=t.style,u=t.children,c="h4-component ".concat(S.a.h4," ").concat(n);return o.createElement("div",{id:e,className:c,style:r},u)}}])&&E(n.prototype,r),u&&E(n,u),e}();T.defaultProps={className:"",style:{}},T.displayName="H4";var H=T,C=n(54),R=n.n(C);function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function q(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function U(t,e){return!e||"object"!==M(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function K(t,e){return(K=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Q=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),U(this,B(e).apply(this,arguments))}var n,r,u;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&K(t,e)}(e,o["Component"]),n=e,(r=[{key:"render",value:function(){var t=this.props,e=t.id,n=t.className,r=t.style,u=t.children,c="h5-component ".concat(R.a.h5," ").concat(n);return o.createElement("div",{id:e,className:c,style:r},u)}}])&&q(n.prototype,r),u&&q(n,u),e}();Q.defaultProps={className:"",style:{}},Q.displayName="H5";var X=Q,z=n(55),A=n.n(z);function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function F(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function G(t,e){return!e||"object"!==D(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function J(t,e){return(J=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var L=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),G(this,I(e).apply(this,arguments))}var n,r,u;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&J(t,e)}(e,o["Component"]),n=e,(r=[{key:"render",value:function(){var t=this.props,e=t.id,n=t.className,r=t.style,u=t.children,c="h6-component ".concat(A.a.h6," ").concat(n);return o.createElement("div",{id:e,className:c,style:r},u)}}])&&F(n.prototype,r),u&&F(n,u),e}();L.defaultProps={className:"",style:{}},L.displayName="H6";var V=L;n.d(e,"H1",function(){return s}),n.d(e,"H2",function(){return y.a}),n.d(e,"H3",function(){return w}),n.d(e,"H4",function(){return H}),n.d(e,"H5",function(){return X}),n.d(e,"H6",function(){return V})},43:function(t,e,n){"use strict";var o=n(0),r=n(48),u=n.n(r);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,a(e).apply(this,arguments))}var n,r,c;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,o["Component"]),n=e,(r=[{key:"render",value:function(){var t=this.props,e=t.id,n=t.className,r=t.style,c=t.children,i="h2-component ".concat(u.a.h2," ").concat(n);return o.createElement("div",{id:e,className:i,style:r},c)}}])&&i(n.prototype,r),c&&i(n,c),e}();p.defaultProps={className:"",style:{}},p.displayName="H2",e.a=p},48:function(t,e,n){t.exports={h2:"h2___a5XKj"}},51:function(t,e,n){t.exports={h1:"h1___3EqyH"}},52:function(t,e,n){t.exports={h3:"h3___3O03q"}},53:function(t,e,n){t.exports={h4:"h4___Uo5Q6"}},54:function(t,e,n){t.exports={h5:"h5___3UM6s"}},55:function(t,e,n){t.exports={h6:"h6___3P7kB"}}})});
|
package/lib/Headings/props.d.ts
DELETED
package/lib/Headings/style.css
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
@import url(https://fonts.googleapis.com/css?family=Alegreya+Sans:500|Convergence);
|
|
2
|
-
@import url(https://fonts.googleapis.com/css?family=Alegreya+Sans:500|Convergence);
|
|
3
|
-
@import url(https://fonts.googleapis.com/css?family=Alegreya+Sans:500|Convergence);
|
|
4
|
-
@import url(https://fonts.googleapis.com/css?family=Alegreya+Sans:500|Convergence);
|
|
5
|
-
@import url(https://fonts.googleapis.com/css?family=Alegreya+Sans:500|Convergence);
|
|
6
|
-
@import url(https://fonts.googleapis.com/css?family=Alegreya+Sans:500|Convergence);
|
|
7
|
-
.h1___3EqyH{font-family:Convergence,Alegreya Sans,sans-serif;font-size:28px;font-size:1.75rem;color:#2d2d2d;margin:19px 0}
|
|
8
|
-
.h2___a5XKj{font-family:Convergence,Alegreya Sans,sans-serif;font-size:19.008px;font-size:1.188rem;color:#2d2d2d;margin:19px 0}
|
|
9
|
-
.h3___3O03q{font-family:Convergence,Alegreya Sans,sans-serif;font-size:17.008px;font-size:1.063rem;color:#2d2d2d;margin:19px 0}
|
|
10
|
-
.h4___Uo5Q6{font-family:Convergence,Alegreya Sans,sans-serif;font-size:15px;font-size:.9375rem;color:#2d2d2d;margin:19px 0}
|
|
11
|
-
.h5___3UM6s{font-family:Convergence,Alegreya Sans,sans-serif;font-size:12px;font-size:.75rem;color:#2d2d2d;margin:19px 0}
|
|
12
|
-
.h6___3P7kB{font-family:Convergence,Alegreya Sans,sans-serif;font-size:10px;font-size:.625rem;color:#2d2d2d;margin:19px 0}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface IHorizontalRangeBarProps {
|
|
3
|
-
progress: number;
|
|
4
|
-
background?: string;
|
|
5
|
-
additionalBars?: Array<{
|
|
6
|
-
value: number;
|
|
7
|
-
background: string;
|
|
8
|
-
}>;
|
|
9
|
-
range?: [number, number];
|
|
10
|
-
height?: number | string;
|
|
11
|
-
id?: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
style?: React.CSSProperties;
|
|
14
|
-
fallbackColor?: string;
|
|
15
|
-
}
|
|
16
|
-
export default class HorizontalRangeBar extends React.Component<IHorizontalRangeBarProps, {}> {
|
|
17
|
-
static defaultProps: Partial<IHorizontalRangeBarProps>;
|
|
18
|
-
static displayName: string;
|
|
19
|
-
barRef: React.RefObject<any>;
|
|
20
|
-
componentDidMount(): void;
|
|
21
|
-
componentWillReceiveProps(): void;
|
|
22
|
-
render(): JSX.Element;
|
|
23
|
-
renderAdditionalBars: () => JSX.Element[];
|
|
24
|
-
assignValueColor: () => void;
|
|
25
|
-
}
|
|
@@ -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 r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="../",r(r.s=344)}({0:function(t,r){t.exports=e},344:function(e,t,r){"use strict";r.r(t);var o=r(0),n=r(67),a=r.n(n);function i(e){return(i="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 r=0;r<t.length;r++){var o=t[r];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"!==i(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 f=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=u(this,l(t).apply(this,arguments))).barRef=o.createRef(),e.renderAdditionalBars=function(){var t=e.props.additionalBars,r=[],n=0,i={borderBottomRightRadius:3,borderTopRightRadius:3,bottom:0,padding:5,right:"".concat(n,"%"),top:0};return t&&t.forEach(function(t,c){var u=100*t.value/e.props.progress;if(n+u>100)throw new Error("Values are larger than expected!");r.push(o.createElement("div",{className:a.a.label,key:c,style:Object.assign({position:"absolute",width:"".concat(u,"%"),background:t.background},i)},o.createElement("span",{className:"loader-text"},t.value))),n+=u}),r},e.assignValueColor=function(){var t=e.barRef.current.getElementsByClassName("loader-text"),r=t&&Array.from(t);r&&r.forEach(function(t){if(t){var r=t,o=r.parentNode;r.offsetWidth>o.offsetWidth-5?r.style.color=e.props.fallbackColor:r.removeAttribute("style")}})},e}var r,n,i;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"]),r=t,(n=[{key:"componentDidMount",value:function(){this.assignValueColor()}},{key:"componentWillReceiveProps",value:function(){this.assignValueColor()}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.range,n=e.progress,i=e.id,c=r&&n>r[1]?100:r&&100*(n-r[0])/(r[1]-r[0]),u=Object.assign({height:this.props.height,width:c+"%"},this.props.style),l={background:this.props.background,borderRadius:3,height:this.props.height};return o.createElement("div",{className:"loader-component ".concat(a.a.loaderContainer," ").concat(t),id:i,ref:this.barRef},o.createElement("div",{className:"loader-bar ".concat(a.a.loader),style:u},o.createElement("div",{className:"loader-text ".concat(a.a.label," ").concat(a.a.number)},n),o.createElement("div",{style:l}),this.renderAdditionalBars()))}}])&&c(r.prototype,n),i&&c(r,i),t}();f.defaultProps={background:"#53cadc",className:"",fallbackColor:"#414141",height:28,range:[0,100]},f.displayName="HorizontalRangeBar";t.default=f},67:function(e,t,r){e.exports={loader:"loader___3l-wB",loaderContainer:"loaderContainer___2V6NL",label:"label___2yYaC",number:"number___3Qkv-"}}})});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.loader___3l-wB{-webkit-transition:width .4s linear;transition:width .4s linear;position:relative}.loaderContainer___2V6NL{width:100%}.label___2yYaC{font-size:14px;text-align:left;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.number___3Qkv-{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);left:5px}
|
package/lib/Input/index.d.ts
DELETED