@nextelco/common-ui 1.1.10 → 1.2.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.
- package/dist/index.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +37 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +29 -76
- package/dist/common-ui.css +0 -1
- package/dist/common-ui.es.js +0 -4291
- package/dist/common-ui.umd.js +0 -609
- package/dist/favicon.ico +0 -0
package/dist/index.d.mts
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __export = (target, all) => {
|
7
|
+
for (var name in all)
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
+
};
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
+
for (let key of __getOwnPropNames(from))
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
+
}
|
16
|
+
return to;
|
17
|
+
};
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
+
|
20
|
+
// src/index.ts
|
21
|
+
var index_exports = {};
|
22
|
+
__export(index_exports, {
|
23
|
+
Button: () => Button_default
|
24
|
+
});
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
26
|
+
|
27
|
+
// src/components/Button.tsx
|
28
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
29
|
+
var Button = ({ label, onClick }) => {
|
30
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { onClick, children: label });
|
31
|
+
};
|
32
|
+
var Button_default = Button;
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
34
|
+
0 && (module.exports = {
|
35
|
+
Button
|
36
|
+
});
|
37
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/components/Button.tsx"],"sourcesContent":["export { default as Button } from './components/Button'\r\nexport type { ButtonProps } from './components/Button'\r\n","import React from 'react'\r\n\r\nexport interface ButtonProps {\r\n label: string // Ensure 'label' has a defined type\r\n onClick?: () => void\r\n}\r\n\r\nconst Button: React.FC<ButtonProps> = ({ label, onClick }) => {\r\n return <button onClick={onClick}>{label}</button>\r\n}\r\n\r\nexport default Button\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACQS;AADT,IAAM,SAAgC,CAAC,EAAE,OAAO,QAAQ,MAAM;AAC5D,SAAO,4CAAC,YAAO,SAAmB,iBAAM;AAC1C;AAEA,IAAO,iBAAQ;","names":[]}
|
package/dist/index.mjs
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
// src/components/Button.tsx
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
3
|
+
var Button = ({ label, onClick }) => {
|
4
|
+
return /* @__PURE__ */ jsx("button", { onClick, children: label });
|
5
|
+
};
|
6
|
+
var Button_default = Button;
|
7
|
+
export {
|
8
|
+
Button_default as Button
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/components/Button.tsx"],"sourcesContent":["import React from 'react'\r\n\r\nexport interface ButtonProps {\r\n label: string // Ensure 'label' has a defined type\r\n onClick?: () => void\r\n}\r\n\r\nconst Button: React.FC<ButtonProps> = ({ label, onClick }) => {\r\n return <button onClick={onClick}>{label}</button>\r\n}\r\n\r\nexport default Button\r\n"],"mappings":";AAQS;AADT,IAAM,SAAgC,CAAC,EAAE,OAAO,QAAQ,MAAM;AAC5D,SAAO,oBAAC,YAAO,SAAmB,iBAAM;AAC1C;AAEA,IAAO,iBAAQ;","names":[]}
|
package/package.json
CHANGED
@@ -1,76 +1,29 @@
|
|
1
|
-
{
|
2
|
-
"name": "@nextelco/common-ui",
|
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
|
-
"prepublishOnly": "npm run build",
|
31
|
-
"pub": "git add . && git commit -m \"update\" && git push && npm version patch && npm run build && npm publish --access public"
|
32
|
-
},
|
33
|
-
"dependencies": {
|
34
|
-
"@fortawesome/fontawesome-free": "^6.7.2",
|
35
|
-
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
36
|
-
"@fortawesome/free-brands-svg-icons": "^6.7.2",
|
37
|
-
"@fortawesome/free-regular-svg-icons": "^6.7.2",
|
38
|
-
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
39
|
-
"@fortawesome/react-fontawesome": "^0.2.2"
|
40
|
-
},
|
41
|
-
"devDependencies": {
|
42
|
-
"@chromatic-com/storybook": "^3.2.4",
|
43
|
-
"@eslint/js": "^9.17.0",
|
44
|
-
"@storybook/addon-a11y": "^8.5.3",
|
45
|
-
"@storybook/addon-essentials": "^8.5.3",
|
46
|
-
"@storybook/addon-interactions": "^8.5.3",
|
47
|
-
"@storybook/addon-onboarding": "^8.5.3",
|
48
|
-
"@storybook/blocks": "^8.5.3",
|
49
|
-
"@storybook/react": "^8.5.3",
|
50
|
-
"@storybook/react-vite": "^8.5.3",
|
51
|
-
"@storybook/test": "^8.5.3",
|
52
|
-
"@types/node": "^22.13.1",
|
53
|
-
"@types/react": "^18.3.18",
|
54
|
-
"@types/react-dom": "^18.3.5",
|
55
|
-
"@vitejs/plugin-react": "^4.3.4",
|
56
|
-
"eslint": "^9.17.0",
|
57
|
-
"eslint-plugin-react-hooks": "^5.0.0",
|
58
|
-
"eslint-plugin-react-refresh": "^0.4.16",
|
59
|
-
"eslint-plugin-storybook": "^0.11.2",
|
60
|
-
"globals": "^15.14.0",
|
61
|
-
"rollup-plugin-dts": "^6.1.1",
|
62
|
-
"sass": "^1.83.4",
|
63
|
-
"sass-embedded": "^1.83.4",
|
64
|
-
"storybook": "^8.5.3",
|
65
|
-
"storybook-addon-designs": "^6.3.1",
|
66
|
-
"typescript": "~5.6.2",
|
67
|
-
"typescript-eslint": "^8.18.2",
|
68
|
-
"vite": "^6.1.0",
|
69
|
-
"vite-plugin-dts": "^4.5.0"
|
70
|
-
},
|
71
|
-
"eslintConfig": {
|
72
|
-
"extends": [
|
73
|
-
"plugin:storybook/recommended"
|
74
|
-
]
|
75
|
-
}
|
76
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@nextelco/common-ui",
|
3
|
+
"version": "1.2.0",
|
4
|
+
"description": "",
|
5
|
+
"main": "dist/index.js",
|
6
|
+
"module": "dist/index.es.js",
|
7
|
+
"types": "dist/types/index.d.ts",
|
8
|
+
"files": [
|
9
|
+
"dist"
|
10
|
+
],
|
11
|
+
"scripts": {
|
12
|
+
"build": "tsup"
|
13
|
+
},
|
14
|
+
"keywords": [],
|
15
|
+
"author": "",
|
16
|
+
"license": "ISC",
|
17
|
+
"dependencies": {
|
18
|
+
"react": "^19.0.0",
|
19
|
+
"react-dom": "^19.0.0"
|
20
|
+
},
|
21
|
+
"devDependencies": {
|
22
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
23
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
24
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
25
|
+
"rollup": "^4.34.6",
|
26
|
+
"tsup": "^8.3.6",
|
27
|
+
"typescript": "^5.7.3"
|
28
|
+
}
|
29
|
+
}
|
package/dist/common-ui.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
._button_eaulr_1{border:none;font-weight:700;cursor:pointer;transition:background-color .2s ease-in-out}._button_eaulr_1:hover{opacity:.9}._actions_eaulr_13{display:flex;border-radius:5vw;align-items:center;justify-content:center}._actions_eaulr_13 ._md_eaulr_21{width:11rem;height:2rem;padding:.6rem;font-size:.9rem;font-weight:600;line-height:.9rem}._actions_eaulr_13 ._sm_eaulr_30{width:8.9rem;height:1.2rem;padding:.6rem;font-size:.9rem;font-weight:600;line-height:.9rem}._actions_eaulr_13 ._lg_eaulr_39{width:20rem;height:5.2rem;padding:.6rem;font-size:.9rem;font-weight:600;line-height:.9rem}._actions_eaulr_13 ._icon_eaulr_48{border-radius:50%;width:1.3rem;height:1.3rem;margin-right:.5rem}._actions_eaulr_13 ._img_eaulr_55{width:1.3rem;height:1.3rem;margin-right:.5rem}._actions_eaulr_13._add_eaulr_62{background-color:var(--bright-blue);color:var(--almost-white)}._actions_eaulr_13._add_eaulr_62 ._icon_eaulr_48{color:var(--almost-white);background-color:var(--bright-blue)}._actions_eaulr_13._add_eaulr_62:hover{background-color:var(--approved)}._actions_eaulr_13._choose_file_eaulr_77{background-color:var(--bright-blue);color:var(--almost-white)}._actions_eaulr_13._choose_file_eaulr_77 ._icon_eaulr_48{color:var(--almost-white);margin-top:.6rem;margin-bottom:.6rem}._actions_eaulr_13._choose_file_eaulr_77:hover{background-color:var(--medium-blue)}._actions_eaulr_13._download_file_eaulr_93{background-color:var(--medium-gray-01);color:var(--almost-white)}._actions_eaulr_13._download_file_eaulr_93 ._icon_eaulr_48{color:var(--almost-white)}._actions_eaulr_13._download_file_eaulr_93:hover{background-color:var(--dark-gray)}._actions_eaulr_13._exec_validator_eaulr_107{width:13rem;background-color:var(--medium-gray-01);color:var(--almost-white)}._actions_eaulr_13._exec_validator_eaulr_107 ._icon_eaulr_48{color:var(--almost-white)}._actions_eaulr_13._exec_validator_eaulr_107:hover{background-color:var(--dark-gray)}._actions_eaulr_13._project_valid_eaulr_122{width:13rem;background-color:var(--approved);color:var(--almost-white)}._actions_eaulr_13._project_valid_eaulr_122 ._icon_eaulr_48{color:var(--almost-white)}._actions_eaulr_13._project_valid_eaulr_122:hover{background-color:var(--approved);color:var(--almost-white);opacity:1}._actions_eaulr_13._project_invalid_eaulr_139{width:13rem;background-color:var(--rejected);color:var(--almost-white)}._actions_eaulr_13._project_invalid_eaulr_139 ._icon_eaulr_48{color:var(--almost-white)}._actions_eaulr_13._project_invalid_eaulr_139:hover{background-color:var(--rejected);color:var(--almost-white);opacity:1}._actions_eaulr_13._generate_BoM_eaulr_156{width:13rem;background-color:var(--medium-gray-01);color:var(--almost-white)}._actions_eaulr_13._generate_BoM_eaulr_156 ._icon_eaulr_48{color:var(--almost-white)}._actions_eaulr_13._generate_BoM_eaulr_156:hover{background-color:var(--dark-gray)}._actions_eaulr_13._re_generate_pre_BoM_eaulr_171{width:13rem;background-color:var(--medium-gray-01);color:var(--almost-white)}._actions_eaulr_13._re_generate_pre_BoM_eaulr_171 ._icon_eaulr_48{color:var(--almost-white)}._actions_eaulr_13._re_generate_pre_BoM_eaulr_171:hover{background-color:var(--dark-gray)}._actions_eaulr_13._generate_pre_sinotics_eaulr_186{width:13rem;background-color:var(--medium-gray-01);color:var(--almost-white)}._actions_eaulr_13._generate_pre_sinotics_eaulr_186 ._icon_eaulr_48{color:var(--almost-white)}._actions_eaulr_13._generate_pre_sinotics_eaulr_186:hover{background-color:var(--dark-gray)}._actions_eaulr_13._save_eaulr_201{padding:.6rem;font-size:.9rem;font-weight:600;line-height:.9rem;background-color:var(--medium-gray-01);color:var(--almost-white)}._actions_eaulr_13._save_eaulr_201 ._icon_eaulr_48{color:var(--almost-white)}._actions_eaulr_13._save_eaulr_201:hover{background-color:var(--dark-gray)}._actions_eaulr_13._cancel_eaulr_219{padding:.6rem;font-size:.9rem;font-weight:600;line-height:.9rem;background-color:var(--medium-gray-01);color:var(--almost-white)}._actions_eaulr_13._cancel_eaulr_219 ._icon_eaulr_48{color:var(--almost-white)}._actions_eaulr_13._cancel_eaulr_219:hover{background-color:var(--dark-gray)}._actions_eaulr_13._tasks_history_eaulr_237{padding:.6rem;font-size:.9rem;font-weight:600;line-height:.9rem;background-color:var(--light-gray-01);color:var(--dark-blue)}._actions_eaulr_13._tasks_history_eaulr_237 ._icon_eaulr_48{color:var(--dark-blue)}._actions_eaulr_13._tasks_history_eaulr_237:hover{background-color:var(--medium-gray-01)}._actions_eaulr_13._errors_history_eaulr_255{padding:.6rem;font-size:.9rem;font-weight:600;line-height:.9rem;background-color:var(--light-gray-01);color:var(--dark-blue)}._actions_eaulr_13._errors_history_eaulr_255 ._icon_eaulr_48{color:var(--dark-blue)}._actions_eaulr_13._errors_history_eaulr_255:hover{background-color:var(--medium-gray-01)}._actions_eaulr_13._download_excel_eaulr_273{width:13rem;background-color:var(--medium-gray-01);color:var(--almost-white)}._actions_eaulr_13._download_excel_eaulr_273 ._icon_eaulr_48{color:var(--almost-white)}._actions_eaulr_13._download_excel_eaulr_273:hover{background-color:var(--dark-gray)}._actions_eaulr_13._delete_file_eaulr_288{color:var(--almost-white);background-color:var(--medium-gray-01)}._actions_eaulr_13._delete_file_eaulr_288 ._icon_eaulr_48{color:var(--almost-white)}._actions_eaulr_13._delete_file_eaulr_288:hover{background-color:var(--rejected)}._actions_eaulr_13._delete_eaulr_288{color:var(--almost-white);background-color:var(--medium-gray-01)}._actions_eaulr_13._delete_eaulr_288 ._icon_eaulr_48{color:var(--almost-white)}._actions_eaulr_13._delete_eaulr_288:hover{background-color:var(--rejected)}._actions_eaulr_13._save_project_eaulr_316{padding:.6rem;font-size:.9rem;font-weight:600;line-height:.9rem}._actions_eaulr_13._save_project_eaulr_316{color:var(--almost-white);background-color:var(--medium-green)}._actions_eaulr_13._save_project_eaulr_316 ._icon_eaulr_48{color:var(--almost-white)}._actions_eaulr_13._save_project_eaulr_316:hover{background-color:var(--approved)}._actions_eaulr_13._delete_project_eaulr_337{padding:.6rem;font-size:.9rem;font-weight:600;line-height:.9rem}._actions_eaulr_13._delete_project_eaulr_337{color:var(--almost-white);background-color:var(--medium-gray-01)}._actions_eaulr_13._delete_project_eaulr_337 ._icon_eaulr_48{color:var(--almost-white)}._actions_eaulr_13._delete_project_eaulr_337:hover{background-color:var(--rejected)}._user_actions_eaulr_358{display:flex;border-radius:2.5rem;align-items:center;justify-content:center}._user_actions_eaulr_358._logout_eaulr_365 ._icon_eaulr_48{transform:rotate(180deg);border-radius:50%;width:1.3rem;height:1.3rem;margin-right:.5rem}._user_actions_eaulr_358 ._lg_eaulr_39{width:16rem;height:2.5rem;padding:.6rem;font-size:1.25rem;font-weight:600;line-height:.9rem}._user_actions_eaulr_358._logout_eaulr_365{background-color:var(--almost-white);color:var(--dark-blue)}._user_actions_eaulr_358._logout_eaulr_365 ._icon_eaulr_48{color:var(--dark-blue)}._user_actions_eaulr_358._logout_eaulr_365:hover{background-color:var(--dark-gray)}._user_actions_eaulr_358._login_eaulr_396 ._icon_eaulr_48{border-radius:50%;width:1.3rem;height:1.3rem;margin-right:.5rem}._user_actions_eaulr_358._login_eaulr_396{background-color:var(--almost-white);color:var(--dark-blue)}._user_actions_eaulr_358._login_eaulr_396 ._icon_eaulr_48{color:var(--dark-blue)}._user_actions_eaulr_358._login_eaulr_396:hover{background-color:var(--dark-gray)}._user_actions_eaulr_358._login_microsoft_eaulr_417 ._icon_eaulr_48{border-radius:50%;width:1.3rem;height:1.3rem;margin-right:.5rem}._user_actions_eaulr_358._login_microsoft_eaulr_417{background-color:var(--almost-white);color:var(--dark-blue)}._user_actions_eaulr_358._login_microsoft_eaulr_417 ._icon_eaulr_48{color:var(--dark-blue)}._user_actions_eaulr_358._login_microsoft_eaulr_417:hover{background-color:var(--dark-gray)}._content_eaulr_438{white-space:nowrap;display:flex;align-items:center;justify-content:center}._choose_file_eaulr_77{border-radius:1.5rem}._sublinhado_eaulr_449{border-bottom:3px solid red}
|