@fixefy/fixefy-ui-components 0.3.75 → 0.3.78

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,9 +1,7 @@
1
- export declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
- props: Record<string, unknown>;
3
- ownerState?: Record<string, unknown> | undefined;
4
- } | undefined) => {
1
+ import { Theme } from '@mui/material/styles';
2
+ export declare const useStyles: (params: void, muiStyleOverridesParams?: import("tss-react/mui/themeStyleOverridesPlugin").MuiThemeStyleOverridesPluginParams["muiStyleOverridesParams"]) => {
5
3
  classes: Record<"container" | "approveButton" | "paper" | "selected" | "divider" | "actions" | "close" | "actionButton", string>;
6
- theme: import("@mui/private-theming").DefaultTheme;
4
+ theme: import("@mui/material/styles").Theme;
7
5
  css: import("tss-react").Css;
8
6
  cx: import("tss-react").Cx;
9
7
  };
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"container" | "label" | "hint" | "inputWrapper" | "inputActions" | "inputActionsPlus" | "inputActionsMinus">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"container" | "label" | "hint" | "inputWrapper" | "inputActions" | "inputActionsPlus" | "inputActionsMinus">;
@@ -3,5 +3,5 @@ interface ScoreStylesPropsType {
3
3
  scoreColor: keyof ScorePaletteColorOptions;
4
4
  variant: 'box' | 'circle';
5
5
  }
6
- export declare const useStyles: (props: ScoreStylesPropsType) => import("@mui/styles").ClassNameMap<"container" | "content" | "scoreNumber" | "scoreText" | "mainCircle" | "backgroundCircle">;
6
+ export declare const useStyles: (props: ScoreStylesPropsType) => import("@mui/styles/withStyles").ClassNameMap<"container" | "content" | "scoreNumber" | "scoreText" | "mainCircle" | "backgroundCircle">;
7
7
  export {};
@@ -1,2 +1,2 @@
1
1
  import '@fixefy/fixefy-ui-utils';
2
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"container" | "label" | "value" | "contrastLabel" | "contrastValue">;
2
+ export declare const useStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"container" | "label" | "value" | "contrastLabel" | "contrastValue">;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export type SwitchPropsType = {
3
+ children: any;
4
+ [x: string]: any;
5
+ };
6
+ export declare function FxSwitch({ type, children, ...rest }: SwitchPropsType): React.JSX.Element;
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "FxSwitch", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return FxSwitch;
9
+ }
10
+ });
11
+ const _jsxruntime = require("react/jsx-runtime");
12
+ const _react = /*#__PURE__*/ _interop_require_default(require("react"));
13
+ const _switchstyles = require("./styles/switch.styles");
14
+ function _define_property(obj, key, value) {
15
+ if (key in obj) {
16
+ Object.defineProperty(obj, key, {
17
+ value: value,
18
+ enumerable: true,
19
+ configurable: true,
20
+ writable: true
21
+ });
22
+ } else {
23
+ obj[key] = value;
24
+ }
25
+ return obj;
26
+ }
27
+ function _interop_require_default(obj) {
28
+ return obj && obj.__esModule ? obj : {
29
+ default: obj
30
+ };
31
+ }
32
+ function _object_spread(target) {
33
+ for(var i = 1; i < arguments.length; i++){
34
+ var source = arguments[i] != null ? arguments[i] : {};
35
+ var ownKeys = Object.keys(source);
36
+ if (typeof Object.getOwnPropertySymbols === "function") {
37
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
38
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
39
+ }));
40
+ }
41
+ ownKeys.forEach(function(key) {
42
+ _define_property(target, key, source[key]);
43
+ });
44
+ }
45
+ return target;
46
+ }
47
+ function ownKeys(object, enumerableOnly) {
48
+ var keys = Object.keys(object);
49
+ if (Object.getOwnPropertySymbols) {
50
+ var symbols = Object.getOwnPropertySymbols(object);
51
+ if (enumerableOnly) {
52
+ symbols = symbols.filter(function(sym) {
53
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
54
+ });
55
+ }
56
+ keys.push.apply(keys, symbols);
57
+ }
58
+ return keys;
59
+ }
60
+ function _object_spread_props(target, source) {
61
+ source = source != null ? source : {};
62
+ if (Object.getOwnPropertyDescriptors) {
63
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
64
+ } else {
65
+ ownKeys(Object(source)).forEach(function(key) {
66
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
67
+ });
68
+ }
69
+ return target;
70
+ }
71
+ function _object_without_properties(source, excluded) {
72
+ if (source == null) return {};
73
+ var target = _object_without_properties_loose(source, excluded);
74
+ var key, i;
75
+ if (Object.getOwnPropertySymbols) {
76
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
77
+ for(i = 0; i < sourceSymbolKeys.length; i++){
78
+ key = sourceSymbolKeys[i];
79
+ if (excluded.indexOf(key) >= 0) continue;
80
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
81
+ target[key] = source[key];
82
+ }
83
+ }
84
+ return target;
85
+ }
86
+ function _object_without_properties_loose(source, excluded) {
87
+ if (source == null) return {};
88
+ var target = {};
89
+ var sourceKeys = Object.keys(source);
90
+ var key, i;
91
+ for(i = 0; i < sourceKeys.length; i++){
92
+ key = sourceKeys[i];
93
+ if (excluded.indexOf(key) >= 0) continue;
94
+ target[key] = source[key];
95
+ }
96
+ return target;
97
+ }
98
+ function FxSwitch(_param) {
99
+ var { type = 'primary', children } = _param, rest = _object_without_properties(_param, [
100
+ "type",
101
+ "children"
102
+ ]);
103
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_switchstyles.SwitchStyled, _object_spread_props(_object_spread({}, rest), {
104
+ children: children
105
+ }));
106
+ }
@@ -0,0 +1 @@
1
+ export { FxSwitch, SwitchPropsType } from './FxSwitch';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ FxSwitch: function() {
13
+ return _FxSwitch.FxSwitch;
14
+ },
15
+ SwitchPropsType: function() {
16
+ return _FxSwitch.SwitchPropsType;
17
+ }
18
+ });
19
+ const _FxSwitch = require("./FxSwitch");
@@ -0,0 +1 @@
1
+ export declare const SwitchStyled: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "SwitchStyled", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return SwitchStyled;
9
+ }
10
+ });
11
+ const _material = require("@mui/material");
12
+ const _styles = require("@mui/material/styles");
13
+ const SwitchStyled = (0, _styles.styled)(_material.Switch)(({ theme })=>({
14
+ width: '42px',
15
+ height: '24px',
16
+ padding: 0,
17
+ '& .MuiSwitch-switchBase': {
18
+ padding: '3px',
19
+ '&.Mui-checked': {
20
+ transform: 'translateX(18px)',
21
+ '& .MuiSwitch-thumb': {
22
+ backgroundColor: theme.palette.common.white,
23
+ width: '18px',
24
+ height: '18px'
25
+ },
26
+ '& + .MuiSwitch-track': {
27
+ backgroundColor: '#568793',
28
+ opacity: 1
29
+ }
30
+ }
31
+ },
32
+ '& .MuiSwitch-thumb': {
33
+ backgroundColor: theme.palette.common.white,
34
+ width: '18px',
35
+ height: '18px'
36
+ },
37
+ '& .MuiSwitch-track': {
38
+ backgroundColor: '#C5C8C9',
39
+ borderRadius: '75px',
40
+ opacity: 1
41
+ }
42
+ }));
package/package.json CHANGED
@@ -21,6 +21,7 @@
21
21
  "@apollo/client": "3.7.15",
22
22
  "@mui/icons-material": "5.16.12",
23
23
  "@mui/lab": "6.0.0-beta.7",
24
+ "nookies": "^2.5.2",
24
25
  "react-use-wizard": "2.3.0"
25
26
  },
26
27
  "devDependencies": {
@@ -70,5 +71,5 @@
70
71
  "require": "./dist/index.js"
71
72
  }
72
73
  },
73
- "version": "0.3.75"
74
- }
74
+ "version": "0.3.78"
75
+ }