@desynova-digital/components 9.0.26 → 9.1.0

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.
Files changed (170) hide show
  1. package/_helpers/globals.js +9 -10
  2. package/_helpers/pagination.js +10 -15
  3. package/_helpers/story-example.js +16 -39
  4. package/_helpers/story-helpers.js +15 -14
  5. package/_helpers/story-stack.js +22 -43
  6. package/_helpers/uniqueId.js +2 -5
  7. package/_helpers/utils.js +28 -4
  8. package/atoms/avatar/avatar.js +19 -42
  9. package/atoms/avatar/avatar.story.js +25 -58
  10. package/atoms/avatar/index.js +13 -11
  11. package/atoms/badge/badge.js +14 -37
  12. package/atoms/badge/badge.story.js +45 -103
  13. package/atoms/badge/index.js +12 -10
  14. package/atoms/button/button.js +85 -161
  15. package/atoms/button/button.story.js +354 -508
  16. package/atoms/button/index.js +5 -9
  17. package/atoms/card/card.js +26 -55
  18. package/atoms/card/card.story.js +39 -88
  19. package/atoms/card/index.js +12 -10
  20. package/atoms/cardStack/cardStack.js +88 -147
  21. package/atoms/cardStack/cardStack.story.js +106 -210
  22. package/atoms/cardStack/index.js +12 -10
  23. package/atoms/cardV2/cardV2.js +57 -106
  24. package/atoms/cardV2/cardV2.story.js +184 -232
  25. package/atoms/cardV2/content.js +154 -256
  26. package/atoms/cardV2/index.js +4 -8
  27. package/atoms/cardV2/thumbnail.js +138 -208
  28. package/atoms/cardV2/timeline.js +167 -123
  29. package/atoms/checkbox/checkbox.js +85 -157
  30. package/atoms/checkbox/checkbox.story.js +237 -365
  31. package/atoms/checkbox/index.js +4 -9
  32. package/atoms/customSelect/customSelect.js +136 -215
  33. package/atoms/customSelect/customSelect.story.js +745 -851
  34. package/atoms/customSelect/index.js +4 -8
  35. package/atoms/datePicker/datePicker.js +299 -431
  36. package/atoms/datePicker/datePicker.story.js +453 -501
  37. package/atoms/datePicker/index.js +4 -8
  38. package/atoms/dateTime/dateTime.js +3 -6
  39. package/atoms/dateTime/dateTime.story.js +17 -63
  40. package/atoms/dateTime/index.js +5 -9
  41. package/atoms/draftInputText/draftInputText.js +121 -189
  42. package/atoms/draftInputText/draftInputText.story.js +200 -249
  43. package/atoms/draftInputText/index.js +5 -9
  44. package/atoms/dropdown/dropdown.js +38 -66
  45. package/atoms/dropdown/dropdown.story.js +102 -262
  46. package/atoms/dropdown/index.js +4 -8
  47. package/atoms/dropdownList/dropdownList.js +78 -108
  48. package/atoms/dropdownList/dropdownList.story.js +1546 -1621
  49. package/atoms/dropdownList/index.js +4 -8
  50. package/atoms/graphs/barGraph/barGraph.js +95 -146
  51. package/atoms/graphs/barGraph/barGraph.story.js +65 -87
  52. package/atoms/graphs/barGraph/index.js +4 -8
  53. package/atoms/graphs/circleDonut/circleDonut.js +177 -229
  54. package/atoms/graphs/circleDonut/circleDonut.story.js +328 -394
  55. package/atoms/graphs/circleDonut/index.js +5 -9
  56. package/atoms/graphs/circleGraph/circleGraph.js +60 -90
  57. package/atoms/graphs/circleGraph/circleGraph.story.js +36 -54
  58. package/atoms/graphs/circleGraph/index.js +4 -8
  59. package/atoms/graphs/circleNested/circleNested.js +216 -262
  60. package/atoms/graphs/circleNested/circleNested.story.js +91 -116
  61. package/atoms/graphs/circleNested/index.js +5 -9
  62. package/atoms/graphs/pieChart/index.js +4 -8
  63. package/atoms/graphs/pieChart/pieChart.js +162 -191
  64. package/atoms/graphs/pieChart/pieChart.story.js +147 -176
  65. package/atoms/graphs/verticalBarGraph/index.js +5 -9
  66. package/atoms/graphs/verticalBarGraph/verticalBarGraph.js +75 -98
  67. package/atoms/graphs/verticalBarGraph/verticalBarGraph.story.js +26 -45
  68. package/atoms/icon/icon.js +41 -72
  69. package/atoms/icon/icon.story.js +831 -260
  70. package/atoms/icon/index.js +19 -12
  71. package/atoms/image/image.js +18 -32
  72. package/atoms/image/image.story.js +10 -19
  73. package/atoms/image/index.js +4 -8
  74. package/atoms/inputText/index.js +4 -8
  75. package/atoms/inputText/inputText.js +86 -131
  76. package/atoms/inputText/inputText.story.js +191 -255
  77. package/atoms/label/index.js +4 -8
  78. package/atoms/label/label.js +25 -50
  79. package/atoms/label/label.story.js +42 -83
  80. package/atoms/loader/CircleLoader.js +29 -63
  81. package/atoms/loader/ShimmerComponent/CollabShimmerCard.js +39 -50
  82. package/atoms/loader/ShimmerComponent/CollabShimmerCardTray.js +41 -42
  83. package/atoms/loader/ShimmerComponent/FiltersShimmer.js +30 -30
  84. package/atoms/loader/ShimmerComponent/GraphDetailShimmer.js +21 -34
  85. package/atoms/loader/ShimmerComponent/GraphTitleShimmer.js +30 -34
  86. package/atoms/loader/ShimmerComponent/GraphsComponentShimmer.js +23 -32
  87. package/atoms/loader/ShimmerComponent/Shimmer.js +24 -32
  88. package/atoms/loader/ThreeDotLoader.js +14 -29
  89. package/atoms/loader/index.js +13 -11
  90. package/atoms/loader/loader.js +34 -58
  91. package/atoms/loader/loader.story.js +48 -52
  92. package/atoms/loader/spinningLoader.js +23 -34
  93. package/atoms/popup/index.js +5 -9
  94. package/atoms/popup/popup.js +123 -208
  95. package/atoms/popup/popup.story.js +97 -131
  96. package/atoms/radio/index.js +18 -11
  97. package/atoms/radio/radio.js +58 -112
  98. package/atoms/radio/radio.story.js +197 -420
  99. package/atoms/select/index.js +4 -8
  100. package/atoms/select/select.js +48 -86
  101. package/atoms/sideBar/index.js +5 -9
  102. package/atoms/sideBar/sidebar.js +89 -140
  103. package/atoms/switch/index.js +4 -8
  104. package/atoms/switch/switch.js +56 -86
  105. package/atoms/switch/switch.story.js +268 -415
  106. package/atoms/tag/index.js +12 -10
  107. package/atoms/tag/tag.js +29 -63
  108. package/atoms/tag/tag.story.js +135 -209
  109. package/atoms/textarea/index.js +5 -9
  110. package/atoms/textarea/textarea.js +55 -99
  111. package/atoms/textarea/textarea.story.js +48 -41
  112. package/atoms/thematicBreak/index.js +12 -10
  113. package/atoms/thematicBreak/thematicBreak.js +20 -38
  114. package/atoms/thematicBreak/thematicBreak.story.js +25 -37
  115. package/atoms/timeCodeInput/index.js +4 -8
  116. package/atoms/timeCodeInput/timCodeInput.story.js +21 -35
  117. package/atoms/timeCodeInput/timeCodeInput.js +33 -51
  118. package/atoms/timer/index.js +5 -9
  119. package/atoms/timer/timer.js +57 -108
  120. package/atoms/timer/timer.story.js +13 -26
  121. package/atoms/toast/index.js +5 -9
  122. package/atoms/toast/toast.js +81 -116
  123. package/atoms/toast/toast.story.js +50 -76
  124. package/atoms/videoCard/index.js +12 -10
  125. package/atoms/videoCard/videoCard.js +265 -447
  126. package/atoms/videoCard/videoCard.story.js +495 -710
  127. package/components.js +411 -294
  128. package/index.js +350 -61
  129. package/molecules/carousel/carousel.js +121 -207
  130. package/molecules/carousel/carousel.story.js +240 -223
  131. package/molecules/carousel/index.js +5 -9
  132. package/molecules/errorScreen/CollabErrorScreen.js +35 -66
  133. package/molecules/errorScreen/TableErrorScreen.js +109 -102
  134. package/molecules/errorScreen/TableErrorScreen.jsx +7 -6
  135. package/molecules/errorScreen/errorScreen.js +41 -94
  136. package/molecules/filter/constants.js +1 -0
  137. package/molecules/filter/filter.js +378 -562
  138. package/molecules/filter/filter.story.js +79 -104
  139. package/molecules/filter/index.js +5 -9
  140. package/molecules/graphCard/graphCard.js +97 -193
  141. package/molecules/graphCard/graphCard.story.js +159 -191
  142. package/molecules/graphCard/index.js +4 -8
  143. package/molecules/graphCard/loader.js +28 -68
  144. package/molecules/graphDetailCard/graphDetailCard.js +115 -183
  145. package/molecules/graphDetailCard/graphDetailCard.story.js +218 -254
  146. package/molecules/graphDetailCard/index.js +5 -9
  147. package/molecules/pageHeader/index.js +12 -10
  148. package/molecules/pageHeader/pageHeader.js +38 -79
  149. package/molecules/pageHeader/pageHeader.story.js +34 -55
  150. package/molecules/pagination/index.js +4 -8
  151. package/molecules/pagination/pagination.js +126 -202
  152. package/molecules/pagination/pagination.story.js +40 -52
  153. package/molecules/richTextInput/RichTextInput.js +354 -0
  154. package/molecules/richTextInput/RichTextInput.story.js +50 -0
  155. package/molecules/richTextInput/index.js +9 -0
  156. package/molecules/table/index.js +4 -8
  157. package/molecules/table/table-column.js +10 -16
  158. package/molecules/table/table-header.js +31 -72
  159. package/molecules/table/table.js +743 -1075
  160. package/molecules/table/table.story.js +274 -304
  161. package/molecules/tabs/index.js +4 -8
  162. package/molecules/tabs/tabs.js +112 -184
  163. package/molecules/tabs/tabs.story.js +66 -133
  164. package/molecules/videoCardList/index.js +4 -8
  165. package/molecules/videoCardList/videoCardList.js +24 -41
  166. package/molecules/videoCardList/videoCardList.story.js +449 -664
  167. package/molecules/videoPlayer/index.js +4 -8
  168. package/molecules/videoPlayer/videoPlayer.js +1019 -1097
  169. package/molecules/videoPlayer/videoPlayer.story.js +10 -21
  170. package/package.json +2 -2
@@ -1,87 +1,60 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
-
7
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
8
-
9
- var _templateObject = _taggedTemplateLiteral(['\n\n// position: absolute;\n// top: 50%; left: 50%;\n// -webkit-transform: translate3d( -50%, -50%, 0 );\n// transform: translate3d( -50%, -50%, 0 );\n\nlabel{\n display: flex;\n align-items: center;\n}\n\n.label-text{\n font-family: "SFUIText-Regular";\n margin-right: 8px;\n transition: all 0.4s ease;\n}\ninput[type="checkbox"].switch {\n\tposition: absolute;\n opacity: 0;\n display: none;\n}\n\ninput[type="checkbox"].switch ~ span.label-text {\n color: ', '\n}\ninput[type="checkbox"].switch ~ div.switch-box {\n\tvertical-align: middle;\n\twidth: 28px;\n\theight: 14px;\n\tborder-radius: 999px;\n\t// background: ', ';\n\ttransition-duration: .4s;\n transition-property: all;\n cursor: pointer;\n border: 1px solid ', ';\n}\n\n\n\ninput[type="checkbox"].switch:checked ~ span.label-text {\n color: ', '\n}\n\ninput[type="checkbox"].switch:checked ~ div.switch-box {\n border: 1px solid ', ';\n}\n\ninput[type="checkbox"].switch ~ div.switch-box > div {\n\tfloat: left;\n\twidth: 10px; height: 10px;\n\tborder-radius: inherit;\n\tbackground: ', '; \n\ttransition-timing-function: cubic-bezier(1,0,0,1);\n\ttransition-duration: 0.4s;\n\ttransition-property: all;\n\tmargin-top: 1px;\n margin-left: 1px;\n border:1px solid ', ';\n}\n\ninput[type="checkbox"].switch:checked ~ div.switch-box > div {\n\ttransform: translate3d(14px, 0, 0);\n background: ', ';\n border:1px solid ', ';\n \n}\n\ninput[type="checkbox"].bigswitch.switch ~ div.switch-box > div {\n\twidth: 18px;\n\theight: 18px;\n\tmargin-top: 1px;\n}\n\n\n\ninput[type="checkbox"]:disabled.switch ~ div.switch-box {\n cursor: not-allowed;\n //background: ', ';\n border: 1px solid ', ';\n opacity: 0.6;\n}\ninput[type="checkbox"]:disabled.switch:checked ~ div.switch-box {\n border: 1px solid ', ';\n}\ninput[type="checkbox"]:disabled.switch ~ div.switch-box > div {\n border: 1px solid ', ';\n}\ninput[type="checkbox"]:disabled.switch:checked ~ div.switch-box > div {\n background: ', ';\n border: 1px solid ', ';\n}\n\n\n'], ['\n\n// position: absolute;\n// top: 50%; left: 50%;\n// -webkit-transform: translate3d( -50%, -50%, 0 );\n// transform: translate3d( -50%, -50%, 0 );\n\nlabel{\n display: flex;\n align-items: center;\n}\n\n.label-text{\n font-family: "SFUIText-Regular";\n margin-right: 8px;\n transition: all 0.4s ease;\n}\ninput[type="checkbox"].switch {\n\tposition: absolute;\n opacity: 0;\n display: none;\n}\n\ninput[type="checkbox"].switch ~ span.label-text {\n color: ', '\n}\ninput[type="checkbox"].switch ~ div.switch-box {\n\tvertical-align: middle;\n\twidth: 28px;\n\theight: 14px;\n\tborder-radius: 999px;\n\t// background: ', ';\n\ttransition-duration: .4s;\n transition-property: all;\n cursor: pointer;\n border: 1px solid ', ';\n}\n\n\n\ninput[type="checkbox"].switch:checked ~ span.label-text {\n color: ', '\n}\n\ninput[type="checkbox"].switch:checked ~ div.switch-box {\n border: 1px solid ', ';\n}\n\ninput[type="checkbox"].switch ~ div.switch-box > div {\n\tfloat: left;\n\twidth: 10px; height: 10px;\n\tborder-radius: inherit;\n\tbackground: ', '; \n\ttransition-timing-function: cubic-bezier(1,0,0,1);\n\ttransition-duration: 0.4s;\n\ttransition-property: all;\n\tmargin-top: 1px;\n margin-left: 1px;\n border:1px solid ', ';\n}\n\ninput[type="checkbox"].switch:checked ~ div.switch-box > div {\n\ttransform: translate3d(14px, 0, 0);\n background: ', ';\n border:1px solid ', ';\n \n}\n\ninput[type="checkbox"].bigswitch.switch ~ div.switch-box > div {\n\twidth: 18px;\n\theight: 18px;\n\tmargin-top: 1px;\n}\n\n\n\ninput[type="checkbox"]:disabled.switch ~ div.switch-box {\n cursor: not-allowed;\n //background: ', ';\n border: 1px solid ', ';\n opacity: 0.6;\n}\ninput[type="checkbox"]:disabled.switch:checked ~ div.switch-box {\n border: 1px solid ', ';\n}\ninput[type="checkbox"]:disabled.switch ~ div.switch-box > div {\n border: 1px solid ', ';\n}\ninput[type="checkbox"]:disabled.switch:checked ~ div.switch-box > div {\n background: ', ';\n border: 1px solid ', ';\n}\n\n\n']);
10
-
11
- var _react = require('react');
12
-
13
- var _react2 = _interopRequireDefault(_react);
14
-
15
- var _styledComponents = require('styled-components');
16
-
17
- var _styledComponents2 = _interopRequireDefault(_styledComponents);
18
-
19
- var _tokens = require('@desynova-digital/tokens');
20
-
21
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
-
23
- function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
24
-
25
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
26
-
27
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
28
-
29
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
30
-
7
+ exports["default"] = void 0;
8
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
12
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
13
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
+ var _react = _interopRequireDefault(require("react"));
15
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
16
+ var _tokens = require("@desynova-digital/tokens");
17
+ var _templateObject;
18
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
19
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
31
20
  //import './switch.css'
32
-
33
- var Switch = function (_React$Component) {
34
- _inherits(Switch, _React$Component);
35
-
21
+ var Switch = /*#__PURE__*/function (_React$Component) {
36
22
  function Switch(props) {
37
- _classCallCheck(this, Switch);
38
-
39
- var _this = _possibleConstructorReturn(this, (Switch.__proto__ || Object.getPrototypeOf(Switch)).call(this, props));
40
-
23
+ var _this;
24
+ (0, _classCallCheck2["default"])(this, Switch);
25
+ _this = _callSuper(this, Switch, [props]);
41
26
  _this.state = {
42
27
  isChecked: props.checked ? true : false
43
28
  };
44
29
  _this._handleChange = _this._handleChange.bind(_this);
45
30
  return _this;
46
31
  }
47
-
48
- _createClass(Switch, [{
49
- key: 'componentWillMount',
32
+ (0, _inherits2["default"])(Switch, _React$Component);
33
+ return (0, _createClass2["default"])(Switch, [{
34
+ key: "componentWillMount",
50
35
  value: function componentWillMount() {
51
36
  //this.setState( { isChecked: this.props.isChecked } );
52
37
  }
53
38
  }, {
54
- key: 'render',
39
+ key: "render",
55
40
  value: function render() {
56
- return _react2.default.createElement(
57
- SwitchContainer,
58
- { theme: this.props.theme },
59
- _react2.default.createElement(
60
- 'label',
61
- null,
62
- _react2.default.createElement('input', {
63
- disabled: this.props.disabled ? 'disabled' : '',
64
- ref: 'switch',
65
- checked: this.props.checked ? true : false,
66
- onChange: this._handleChange,
67
- className: 'switch',
68
- type: 'checkbox'
69
- }),
70
- this.props.label ? _react2.default.createElement(
71
- 'span',
72
- { className: 'label-text' },
73
- this.props.label
74
- ) : null,
75
- _react2.default.createElement(
76
- 'div',
77
- { className: 'switch-box' },
78
- _react2.default.createElement('div', null)
79
- )
80
- )
81
- );
41
+ return /*#__PURE__*/_react["default"].createElement(SwitchContainer, {
42
+ theme: this.props.theme
43
+ }, /*#__PURE__*/_react["default"].createElement("label", null, /*#__PURE__*/_react["default"].createElement("input", {
44
+ disabled: this.props.disabled ? 'disabled' : '',
45
+ ref: "switch",
46
+ checked: this.props.checked ? true : false,
47
+ onChange: this._handleChange,
48
+ className: "switch",
49
+ type: "checkbox"
50
+ }), this.props.label ? /*#__PURE__*/_react["default"].createElement("span", {
51
+ className: "label-text"
52
+ }, this.props.label) : null, /*#__PURE__*/_react["default"].createElement("div", {
53
+ className: "switch-box"
54
+ }, /*#__PURE__*/_react["default"].createElement("div", null))));
82
55
  }
83
56
  }, {
84
- key: '_handleChange',
57
+ key: "_handleChange",
85
58
  value: function _handleChange() {
86
59
  // this.setState( { isChecked: !this.state.isChecked },
87
60
  // ()=>{
@@ -89,39 +62,36 @@ var Switch = function (_React$Component) {
89
62
  //} );
90
63
  }
91
64
  }]);
92
-
93
- return Switch;
94
- }(_react2.default.Component);
95
-
96
- var SwitchContainer = _styledComponents2.default.div(_templateObject, function (props) {
97
- return _tokens.colors[props.theme].switch.label;
65
+ }(_react["default"].Component);
66
+ var SwitchContainer = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n\n// position: absolute;\n// top: 50%; left: 50%;\n// -webkit-transform: translate3d( -50%, -50%, 0 );\n// transform: translate3d( -50%, -50%, 0 );\n\nlabel{\n display: flex;\n align-items: center;\n}\n\n.label-text{\n font-family: \"SFUIText-Regular\";\n margin-right: 8px;\n transition: all 0.4s ease;\n}\ninput[type=\"checkbox\"].switch {\n\tposition: absolute;\n opacity: 0;\n display: none;\n}\n\ninput[type=\"checkbox\"].switch ~ span.label-text {\n color: ", "\n}\ninput[type=\"checkbox\"].switch ~ div.switch-box {\n\tvertical-align: middle;\n\twidth: 28px;\n\theight: 14px;\n\tborder-radius: 999px;\n\t// background: ", ";\n\ttransition-duration: .4s;\n transition-property: all;\n cursor: pointer;\n border: 1px solid ", ";\n}\n\n\n\ninput[type=\"checkbox\"].switch:checked ~ span.label-text {\n color: ", "\n}\n\ninput[type=\"checkbox\"].switch:checked ~ div.switch-box {\n border: 1px solid ", ";\n}\n\ninput[type=\"checkbox\"].switch ~ div.switch-box > div {\n\tfloat: left;\n\twidth: 10px; height: 10px;\n\tborder-radius: inherit;\n\tbackground: ", "; \n\ttransition-timing-function: cubic-bezier(1,0,0,1);\n\ttransition-duration: 0.4s;\n\ttransition-property: all;\n\tmargin-top: 1px;\n margin-left: 1px;\n border:1px solid ", ";\n}\n\ninput[type=\"checkbox\"].switch:checked ~ div.switch-box > div {\n\ttransform: translate3d(14px, 0, 0);\n background: ", ";\n border:1px solid ", ";\n \n}\n\ninput[type=\"checkbox\"].bigswitch.switch ~ div.switch-box > div {\n\twidth: 18px;\n\theight: 18px;\n\tmargin-top: 1px;\n}\n\n\n\ninput[type=\"checkbox\"]:disabled.switch ~ div.switch-box {\n cursor: not-allowed;\n //background: ", ";\n border: 1px solid ", ";\n opacity: 0.6;\n}\ninput[type=\"checkbox\"]:disabled.switch:checked ~ div.switch-box {\n border: 1px solid ", ";\n}\ninput[type=\"checkbox\"]:disabled.switch ~ div.switch-box > div {\n border: 1px solid ", ";\n}\ninput[type=\"checkbox\"]:disabled.switch:checked ~ div.switch-box > div {\n background: ", ";\n border: 1px solid ", ";\n}\n\n\n"])), function (props) {
67
+ return _tokens.colors[props.theme]["switch"].label;
98
68
  }, function (props) {
99
- return _tokens.colors[props.theme].switch.background;
69
+ return _tokens.colors[props.theme]["switch"].background;
100
70
  }, function (props) {
101
- return _tokens.colors[props.theme].switch.border;
71
+ return _tokens.colors[props.theme]["switch"].border;
102
72
  }, function (props) {
103
- return _tokens.colors[props.theme].switch.checkedLabel;
73
+ return _tokens.colors[props.theme]["switch"].checkedLabel;
104
74
  }, function (props) {
105
- return _tokens.colors[props.theme].switch.checkedBorder;
75
+ return _tokens.colors[props.theme]["switch"].checkedBorder;
106
76
  }, function (props) {
107
- return _tokens.colors[props.theme].switch.circleBackground;
77
+ return _tokens.colors[props.theme]["switch"].circleBackground;
108
78
  }, function (props) {
109
- return _tokens.colors[props.theme].switch.circleBorder;
79
+ return _tokens.colors[props.theme]["switch"].circleBorder;
110
80
  }, function (props) {
111
- return _tokens.colors[props.theme].switch.checkedCircleBackground;
81
+ return _tokens.colors[props.theme]["switch"].checkedCircleBackground;
112
82
  }, function (props) {
113
- return _tokens.colors[props.theme].switch.checkedCircleBorder;
83
+ return _tokens.colors[props.theme]["switch"].checkedCircleBorder;
114
84
  }, function (props) {
115
- return _tokens.colors[props.theme].switch.backgroundDisabled;
85
+ return _tokens.colors[props.theme]["switch"].backgroundDisabled;
116
86
  }, function (props) {
117
- return _tokens.colors[props.theme].switch.borderDisabled;
87
+ return _tokens.colors[props.theme]["switch"].borderDisabled;
118
88
  }, function (props) {
119
- return _tokens.colors[props.theme].switch.checkedBorderDisabled;
89
+ return _tokens.colors[props.theme]["switch"].checkedBorderDisabled;
120
90
  }, function (props) {
121
- return _tokens.colors[props.theme].switch.borderDisabled;
91
+ return _tokens.colors[props.theme]["switch"].borderDisabled;
122
92
  }, function (props) {
123
- return _tokens.colors[props.theme].switch.checkedBorderDisabled;
93
+ return _tokens.colors[props.theme]["switch"].checkedBorderDisabled;
124
94
  }, function (props) {
125
- return _tokens.colors[props.theme].switch.checkedBorderDisabled;
95
+ return _tokens.colors[props.theme]["switch"].checkedBorderDisabled;
126
96
  });
127
- exports.default = Switch;
97
+ var _default = exports["default"] = Switch;