@fixefy/fixefy-ui-components 0.0.34 → 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 CHANGED
@@ -1,70 +1,73 @@
1
1
  {
2
- "author": "Fixefy Inc Team",
3
- "browser": {
4
- "fs": false
5
- },
6
- "dependencies": {
7
- "@fixefy/fixefy-ui-utils": "^0.0.2",
8
- "@mui/material": "^5.14.11",
9
- "@mui/styled-engine": "^5.14.11",
10
- "@mui/styles": "^5.14.11",
11
- "browserlist": "^1.0.1",
12
- "react": "^18.2.0",
13
- "react-dom": "^18.2.0",
14
- "swc-loader": "^0.2.3"
15
- },
16
- "devDependencies": {
17
- "@svgr/webpack": "^8.1.0",
18
- "@swc/cli": "^0.1.63",
19
- "@swc/core": "^1.3.101",
20
- "@types/node": "^20.7.1",
21
- "@types/react": "^18.2.23",
22
- "@typescript-eslint/eslint-plugin": "^6.7.3",
23
- "@typescript-eslint/parser": "^6.7.3",
24
- "eslint": "^8.50.0"
25
- },
26
- "license": "MIT",
27
- "name": "@fixefy/fixefy-ui-components",
28
- "repository": {
29
- "type": "git",
30
- "url": "https://github.com/Fixefy/fixefy-ui-components.git"
31
- },
32
- "scripts": {
33
- "build:cjs": "swc src -d dist-cjs --config-file .swcrc.cjs.json",
34
- "build:es": "swc src -d dist-es --config-file .swcrc.es.json",
35
- "build:types": "tsc -p tsconfig.types.json",
36
- "build": "yarn build:cjs && yarn build:es && yarn build:types && yarn build:copy",
37
- "build:copy": "node ../../scripts/copy-files-ex.js",
38
- "pre_release": "yarn clean && yarn && yarn build",
39
- "pre_release_base": "yarn clean:base && yarn && yarn build",
40
- "r": "yarn release",
41
- "release": "yarn pre_release && npm pack && npm publish",
42
- "release:config": "yarn pre_release && npm publish --userconfig ./.npmrc",
43
- "clean:base": "rm ../../yarn.lock && yarn clean",
44
- "clean": "rm -rf build && rm -rf dist-* && yarn clean:node",
45
- "clean:node": "rm -rf node_modules",
46
- "release_patch": "yarn patch && yarn release",
47
- "release_minor": "yarn minor && yarn release",
48
- "release_major": "yarn major && yarn release",
49
- "patch": "yarn version --patch && git push --follow-tags",
50
- "minor": "yarn version --minor && git push --follow-tags",
51
- "major": "yarn version --major && git push --follow-tags"
52
- },
53
- "engines": {
54
- "node": "18.17.1"
55
- },
56
- "files": [
57
- "dist-*/**/*"
58
- ],
59
- "private": false,
60
- "main": "./dist-cjs/index.js",
61
- "module": "./dist-es/index.js",
62
- "exports": {
63
- ".": {
64
- "import": "./dist-es/index.js",
65
- "require": "./dist-cjs/index.js"
66
- }
67
- },
68
- "types": "./dist-types/index.d.ts",
69
- "version": "0.0.34"
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
  }
@@ -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));
@@ -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";
@@ -1,3 +0,0 @@
1
- {
2
- "type": "commonjs"
3
- }
@@ -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));
@@ -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
- }));
@@ -1 +0,0 @@
1
- export { };
package/dist-es/index.js DELETED
@@ -1 +0,0 @@
1
- export { Tag } from "./Tag/Tag";
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- import { TagProps } from "./tag_types";
3
- export declare const Tag: ({ name, count }: TagProps) => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- export { Tag } from "./Tag";
2
- export type { TagProps } from "./tag_types";
@@ -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>;
@@ -1,4 +0,0 @@
1
- export type TagProps = {
2
- name: string;
3
- count?: number;
4
- };
@@ -1,2 +0,0 @@
1
- export { Tag } from "./Tag/Tag";
2
- export type { TagProps } from "./Tag/tag_types";