@rahmatsaputra-my-id/react-js-library 0.0.67 → 0.0.68

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.
@@ -1,3 +1,4 @@
1
1
  import { SwitchProps } from './Switch.types';
2
+ import './Switch.styles.css';
2
3
  declare const Switch: ({ label, checked, onChange, style, labelOn, labelOff, isShowLabelToogle, withBorder, }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
3
4
  export default Switch;
package/dist/index.es.js CHANGED
@@ -1007,8 +1007,8 @@ function styleInject(css, ref) {
1007
1007
  }
1008
1008
  }
1009
1009
 
1010
- var css_248z = "@keyframes spinner {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.loading-spinner {\n width: 15px;\n height: 15px;\n /* Light grey */\n border: 4px solid #ffffff;\n /* Black */\n border-top: 4px solid #000000;\n border-radius: 50%;\n animation: spinner 1s linear infinite;\n}\n\n.loading-spinner-section {\n width: 120px;\n height: 120px;\n /* Light grey */\n border: 15px solid rgb(220, 220, 226);\n /* Black */\n border-top: 15px solid #000000;\n border-radius: 50%;\n animation: spinner 1.5s linear infinite;\n}\n\n.loading-spinner-section-s {\n width: 60px;\n height: 60px;\n /* Light grey */\n border: 10px solid rgb(220, 220, 226);\n /* Black */\n border-top: 10px solid #000000;\n border-radius: 50%;\n animation: spinner 1.5s linear infinite;\n}\n\n.loading-spinner-pages {\n width: 130px;\n height: 130px;\n border: 20px solid rgb(220, 220, 226);\n border-top: 20px solid #000000;\n border-radius: 50%;\n animation: spinner 1.5s linear infinite;\n}\n";
1011
- styleInject(css_248z);
1010
+ var css_248z$1 = "@keyframes spinner {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.loading-spinner {\n width: 15px;\n height: 15px;\n /* Light grey */\n border: 4px solid #ffffff;\n /* Black */\n border-top: 4px solid #000000;\n border-radius: 50%;\n animation: spinner 1s linear infinite;\n}\n\n.loading-spinner-section {\n width: 120px;\n height: 120px;\n /* Light grey */\n border: 15px solid rgb(220, 220, 226);\n /* Black */\n border-top: 15px solid #000000;\n border-radius: 50%;\n animation: spinner 1.5s linear infinite;\n}\n\n.loading-spinner-section-s {\n width: 60px;\n height: 60px;\n /* Light grey */\n border: 10px solid rgb(220, 220, 226);\n /* Black */\n border-top: 10px solid #000000;\n border-radius: 50%;\n animation: spinner 1.5s linear infinite;\n}\n\n.loading-spinner-pages {\n width: 130px;\n height: 130px;\n border: 20px solid rgb(220, 220, 226);\n border-top: 20px solid #000000;\n border-radius: 50%;\n animation: spinner 1.5s linear infinite;\n}\n";
1011
+ styleInject(css_248z$1);
1012
1012
 
1013
1013
  var LoadingSpinner = function (_a) {
1014
1014
  var _b = _a.loadingType, loadingType = _b === void 0 ? false : _b, _c = _a.loadingIcon, loadingIcon = _c === void 0 ? '' : _c;
@@ -30696,6 +30696,9 @@ var styles = {
30696
30696
  },
30697
30697
  };
30698
30698
 
30699
+ var css_248z = ".switch {\n position: relative;\n display: inline-block;\n width: 50px;\n height: 28px;\n}\n\n.switch input {\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n.slider {\n position: absolute;\n cursor: pointer;\n background-color: #ccc;\n border-radius: 34px;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transition: 0.3s;\n}\n\n.slider:before {\n position: absolute;\n content: \"\";\n height: 22px;\n width: 22px;\n left: 3px;\n bottom: 3px;\n background-color: #fff;\n border-radius: 50%;\n transition: 0.3s;\n}\n\ninput:checked + .slider {\n background-color: #4caf50;\n}\n\ninput:checked + .slider:before {\n transform: translateX(22px);\n}\n";
30700
+ styleInject(css_248z);
30701
+
30699
30702
  var Switch = function (_a) {
30700
30703
  var _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.checked, checked = _c === void 0 ? false : _c, onChange = _a.onChange, style = _a.style, _d = _a.labelOn, labelOn = _d === void 0 ? 'ON' : _d, _e = _a.labelOff, labelOff = _e === void 0 ? 'OFF' : _e, _f = _a.isShowLabelToogle, isShowLabelToogle = _f === void 0 ? true : _f, _g = _a.withBorder, withBorder = _g === void 0 ? true : _g;
30701
30704
  var styleContainer = withBorder