@fixefy/fixefy-ui-components 0.0.35 → 0.0.36
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/package.json +71 -68
- package/dist-cjs/Tag/Tag.js +0 -17
- package/dist-cjs/Tag/index.js +0 -1
- package/dist-cjs/Tag/styles/tag.styles.js +0 -75
- package/dist-cjs/Tag/tag_types.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/package.json +0 -3
- package/dist-es/Tag/Tag.js +0 -17
- package/dist-es/Tag/index.js +0 -1
- package/dist-es/Tag/styles/tag.styles.js +0 -25
- package/dist-es/Tag/tag_types.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/package.json +0 -3
- package/dist-types/Tag/Tag.d.ts +0 -3
- package/dist-types/Tag/index.d.ts +0 -2
- package/dist-types/Tag/styles/tag.styles.d.ts +0 -3
- package/dist-types/Tag/tag_types.d.ts +0 -4
- package/dist-types/index.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,70 +1,73 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
2
|
+
"author": "Fixefy Inc Team",
|
|
3
|
+
"browser": {
|
|
4
|
+
"fs": false
|
|
5
|
+
},
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@apollo/client": "^3.8.4",
|
|
8
|
+
"@fixefy/fixefy-ui-utils": "^0.0.14",
|
|
9
|
+
"@mui/icons-material": "^5.14.11",
|
|
10
|
+
"@mui/material": "^5.14.11",
|
|
11
|
+
"@mui/styled-engine": "^5.14.11",
|
|
12
|
+
"@mui/styles": "^5.14.11",
|
|
13
|
+
"@react-spring/web": "^9.7.3",
|
|
14
|
+
"graphql-tag": "^2.12.6",
|
|
15
|
+
"next": "^13.5.3",
|
|
16
|
+
"react": "^18.2.0",
|
|
17
|
+
"react-dom": "^18.2.0",
|
|
18
|
+
"swc-loader": "^0.2.3"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@svgr/webpack": "^8.1.0",
|
|
22
|
+
"@swc/cli": "^0.1.63",
|
|
23
|
+
"@swc/core": "^1.3.102",
|
|
24
|
+
"@types/convert-excel-to-json": "^1.7.2",
|
|
25
|
+
"@types/node": "^20.7.1",
|
|
26
|
+
"@types/nookies": "^2.0.3",
|
|
27
|
+
"@types/react": "^18.2.24",
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
|
29
|
+
"@typescript-eslint/parser": "^6.7.3",
|
|
30
|
+
"eslint": "^8.50.0",
|
|
31
|
+
"eslint-config-prettier": "^9.0.0",
|
|
32
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
33
|
+
"eslint-plugin-react": "^7.33.2",
|
|
34
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
35
|
+
"prettier": "^3.0.3",
|
|
36
|
+
"typescript": "^5.2.2"
|
|
37
|
+
},
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"name": "@fixefy/fixefy-ui-components",
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "https://github.com/Fixefy/fixefy-ui-components.git"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "swc src/FxTag -d build",
|
|
46
|
+
"build:copy": "node ../../scripts/copy-files-ex.js",
|
|
47
|
+
"pre_release": "yarn clean && yarn && yarn build",
|
|
48
|
+
"r": "yarn release",
|
|
49
|
+
"release": "yarn pre_release && npm pack && npm publish",
|
|
50
|
+
"release:config": "yarn pre_release && npm publish --userconfig ./.npmrc",
|
|
51
|
+
"clean": "rm -rf build && rm -rf dist-* && yarn clean:node",
|
|
52
|
+
"clean:node": "rm -rf node_modules",
|
|
53
|
+
"lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"",
|
|
54
|
+
"prettier": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\""
|
|
55
|
+
},
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": "18.17.1"
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"dist-*/**/*"
|
|
61
|
+
],
|
|
62
|
+
"private": false,
|
|
63
|
+
"main": "./dist-cjs/index.js",
|
|
64
|
+
"module": "./dist-es/index.js",
|
|
65
|
+
"exports": {
|
|
66
|
+
".": {
|
|
67
|
+
"import": "./dist-es/index.js",
|
|
68
|
+
"require": "./dist-cjs/index.js"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"types": "./dist-types/index.d.ts",
|
|
72
|
+
"version": "0.0.36"
|
|
70
73
|
}
|
package/dist-cjs/Tag/Tag.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { titleCase } from "@fixefy/fixefy-ui-utils/";
|
|
3
|
-
import { Box } from "@mui/material";
|
|
4
|
-
import { StyledCount, StyledLabel, StyledTag } from "./styles/tag.styles";
|
|
5
|
-
export const Tag = ({ name, count = 0 })=>/*#__PURE__*/ React.createElement(Box, {
|
|
6
|
-
display: "flex",
|
|
7
|
-
alignItems: "center",
|
|
8
|
-
justifyContent: "center",
|
|
9
|
-
sx: {
|
|
10
|
-
maxWidth: "fit-content",
|
|
11
|
-
mb: 1
|
|
12
|
-
}
|
|
13
|
-
}, /*#__PURE__*/ React.createElement(StyledTag, {
|
|
14
|
-
name: name
|
|
15
|
-
}, /*#__PURE__*/ React.createElement(StyledLabel, null, titleCase(name))), /*#__PURE__*/ React.createElement(StyledCount, {
|
|
16
|
-
name: name
|
|
17
|
-
}, count));
|
package/dist-cjs/Tag/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tag } from "./Tag";
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
function _define_property(obj, key, value) {
|
|
2
|
-
if (key in obj) {
|
|
3
|
-
Object.defineProperty(obj, key, {
|
|
4
|
-
value: value,
|
|
5
|
-
enumerable: true,
|
|
6
|
-
configurable: true,
|
|
7
|
-
writable: true
|
|
8
|
-
});
|
|
9
|
-
} else {
|
|
10
|
-
obj[key] = value;
|
|
11
|
-
}
|
|
12
|
-
return obj;
|
|
13
|
-
}
|
|
14
|
-
function _object_spread(target) {
|
|
15
|
-
for(var i = 1; i < arguments.length; i++){
|
|
16
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
-
var ownKeys = Object.keys(source);
|
|
18
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
-
}));
|
|
22
|
-
}
|
|
23
|
-
ownKeys.forEach(function(key) {
|
|
24
|
-
_define_property(target, key, source[key]);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
}
|
|
29
|
-
function ownKeys(object, enumerableOnly) {
|
|
30
|
-
var keys = Object.keys(object);
|
|
31
|
-
if (Object.getOwnPropertySymbols) {
|
|
32
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
33
|
-
if (enumerableOnly) {
|
|
34
|
-
symbols = symbols.filter(function(sym) {
|
|
35
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
keys.push.apply(keys, symbols);
|
|
39
|
-
}
|
|
40
|
-
return keys;
|
|
41
|
-
}
|
|
42
|
-
function _object_spread_props(target, source) {
|
|
43
|
-
source = source != null ? source : {};
|
|
44
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
45
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
46
|
-
} else {
|
|
47
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
48
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
return target;
|
|
52
|
-
}
|
|
53
|
-
import React from "react";
|
|
54
|
-
import { styled } from "@mui/material/styles";
|
|
55
|
-
import { Box, Typography } from "@mui/material";
|
|
56
|
-
//
|
|
57
|
-
export const StyledTag = styled(Box)(({ theme, name })=>({
|
|
58
|
-
background: name === "in_dispute" ? "#56CCF2" : name === "" ? "#BB6BD9" : theme.palette.reconcilation[name].background,
|
|
59
|
-
borderRadius: 8,
|
|
60
|
-
padding: "2px 8px",
|
|
61
|
-
border: `1px solid ${name === "in_dispute" ? "#56CCF2" : name === "" ? "#BB6BD9" : theme.palette.reconcilation[name].border}`,
|
|
62
|
-
display: "flex",
|
|
63
|
-
alignItems: "center",
|
|
64
|
-
width: "fit-content"
|
|
65
|
-
}));
|
|
66
|
-
export const StyledLabel = styled(Typography)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
|
|
67
|
-
lineHeight: "20px",
|
|
68
|
-
color: theme.palette.common.white
|
|
69
|
-
}));
|
|
70
|
-
export const StyledCount = styled(Typography)(({ theme, name })=>_object_spread_props(_object_spread({}, theme.typography.subtitle2), {
|
|
71
|
-
lineHeight: "16px",
|
|
72
|
-
fontWeight: 700,
|
|
73
|
-
color: name === "in_dispute" ? "#56CCF2" : name === "" ? "#BB6BD9" : theme.palette.reconcilation[name].background,
|
|
74
|
-
marginLeft: 8
|
|
75
|
-
}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist-cjs/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tag } from "./Tag/Tag";
|
package/dist-cjs/package.json
DELETED
package/dist-es/Tag/Tag.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { titleCase } from "@fixefy/fixefy-ui-utils/";
|
|
3
|
-
import { Box } from "@mui/material";
|
|
4
|
-
import { StyledCount, StyledLabel, StyledTag } from "./styles/tag.styles";
|
|
5
|
-
export const Tag = ({ name, count = 0 })=>/*#__PURE__*/ React.createElement(Box, {
|
|
6
|
-
display: "flex",
|
|
7
|
-
alignItems: "center",
|
|
8
|
-
justifyContent: "center",
|
|
9
|
-
sx: {
|
|
10
|
-
maxWidth: "fit-content",
|
|
11
|
-
mb: 1
|
|
12
|
-
}
|
|
13
|
-
}, /*#__PURE__*/ React.createElement(StyledTag, {
|
|
14
|
-
name: name
|
|
15
|
-
}, /*#__PURE__*/ React.createElement(StyledLabel, null, titleCase(name))), /*#__PURE__*/ React.createElement(StyledCount, {
|
|
16
|
-
name: name
|
|
17
|
-
}, count));
|
package/dist-es/Tag/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tag } from "./Tag";
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { styled } from "@mui/material/styles";
|
|
3
|
-
import { Box, Typography } from "@mui/material";
|
|
4
|
-
//
|
|
5
|
-
export const StyledTag = styled(Box)(({ theme, name })=>({
|
|
6
|
-
background: name === "in_dispute" ? "#56CCF2" : name === "" ? "#BB6BD9" : theme.palette.reconcilation[name].background,
|
|
7
|
-
borderRadius: 8,
|
|
8
|
-
padding: "2px 8px",
|
|
9
|
-
border: `1px solid ${name === "in_dispute" ? "#56CCF2" : name === "" ? "#BB6BD9" : theme.palette.reconcilation[name].border}`,
|
|
10
|
-
display: "flex",
|
|
11
|
-
alignItems: "center",
|
|
12
|
-
width: "fit-content"
|
|
13
|
-
}));
|
|
14
|
-
export const StyledLabel = styled(Typography)(({ theme })=>({
|
|
15
|
-
...theme.typography.body1,
|
|
16
|
-
lineHeight: "20px",
|
|
17
|
-
color: theme.palette.common.white
|
|
18
|
-
}));
|
|
19
|
-
export const StyledCount = styled(Typography)(({ theme, name })=>({
|
|
20
|
-
...theme.typography.subtitle2,
|
|
21
|
-
lineHeight: "16px",
|
|
22
|
-
fontWeight: 700,
|
|
23
|
-
color: name === "in_dispute" ? "#56CCF2" : name === "" ? "#BB6BD9" : theme.palette.reconcilation[name].background,
|
|
24
|
-
marginLeft: 8
|
|
25
|
-
}));
|
package/dist-es/Tag/tag_types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist-es/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tag } from "./Tag/Tag";
|
package/dist-es/package.json
DELETED
package/dist-types/Tag/Tag.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const StyledTag: StyledComponent<ComponentProps & AdditionalProps, SpecificComponentProps, JSXProps>;
|
|
2
|
-
export declare const StyledLabel: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
|
|
3
|
-
export declare const StyledCount: StyledComponent<ComponentProps & AdditionalProps, SpecificComponentProps, JSXProps>;
|
package/dist-types/index.d.ts
DELETED