@pipelinesolucoes/button 1.0.0-beta.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.
Files changed (75) hide show
  1. package/README.md +44 -0
  2. package/dist/app/layout.d.ts +6 -0
  3. package/dist/app/layout.js +19 -0
  4. package/dist/app/layout.js.map +1 -0
  5. package/dist/app/page.d.ts +1 -0
  6. package/dist/app/page.js +6 -0
  7. package/dist/app/page.js.map +1 -0
  8. package/dist/components/ActionButton.d.ts +45 -0
  9. package/dist/components/ActionButton.js +39 -0
  10. package/dist/components/ActionButton.js.map +1 -0
  11. package/dist/components/CircularIconLink.d.ts +43 -0
  12. package/dist/components/CircularIconLink.js +35 -0
  13. package/dist/components/CircularIconLink.js.map +1 -0
  14. package/dist/components/DownloadButton.d.ts +116 -0
  15. package/dist/components/DownloadButton.js +80 -0
  16. package/dist/components/DownloadButton.js.map +1 -0
  17. package/dist/components/FormButtonGroup.d.ts +55 -0
  18. package/dist/components/FormButtonGroup.js +78 -0
  19. package/dist/components/FormButtonGroup.js.map +1 -0
  20. package/dist/components/NavigationButton.d.ts +48 -0
  21. package/dist/components/NavigationButton.js +80 -0
  22. package/dist/components/NavigationButton.js.map +1 -0
  23. package/dist/components/NavigationLink.d.ts +73 -0
  24. package/dist/components/NavigationLink.js +101 -0
  25. package/dist/components/NavigationLink.js.map +1 -0
  26. package/dist/components/ScrollToTopButton.d.ts +10 -0
  27. package/dist/components/ScrollToTopButton.js +44 -0
  28. package/dist/components/ScrollToTopButton.js.map +1 -0
  29. package/dist/components/StyledButton.d.ts +6 -0
  30. package/dist/components/StyledButton.js +39 -0
  31. package/dist/components/StyledButton.js.map +1 -0
  32. package/dist/components/WhatsAppButton.d.ts +28 -0
  33. package/dist/components/WhatsAppButton.js +40 -0
  34. package/dist/components/WhatsAppButton.js.map +1 -0
  35. package/dist/components/WhatsAppIcon.d.ts +28 -0
  36. package/dist/components/WhatsAppIcon.js +31 -0
  37. package/dist/components/WhatsAppIcon.js.map +1 -0
  38. package/dist/index.d.ts +16 -0
  39. package/dist/index.js +12 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/pages/_app.d.ts +2 -0
  42. package/dist/pages/_app.js +20 -0
  43. package/dist/pages/_app.js.map +1 -0
  44. package/dist/pages/_document.d.ts +9 -0
  45. package/dist/pages/_document.js +33 -0
  46. package/dist/pages/_document.js.map +1 -0
  47. package/dist/theme.d.ts +29 -0
  48. package/dist/theme.js +232 -0
  49. package/dist/theme.js.map +1 -0
  50. package/dist/tsconfig.tsbuildinfo +1 -0
  51. package/dist/types/ButtonKind.d.ts +4 -0
  52. package/dist/types/ButtonKind.js +2 -0
  53. package/dist/types/ButtonKind.js.map +1 -0
  54. package/dist/types/CommonForwardProps.d.ts +1 -0
  55. package/dist/types/CommonForwardProps.js +13 -0
  56. package/dist/types/CommonForwardProps.js.map +1 -0
  57. package/dist/types/DataCard.d.ts +6 -0
  58. package/dist/types/DataCard.js +2 -0
  59. package/dist/types/DataCard.js.map +1 -0
  60. package/dist/types/ShadowConfig.d.ts +6 -0
  61. package/dist/types/ShadowConfig.js +2 -0
  62. package/dist/types/ShadowConfig.js.map +1 -0
  63. package/dist/types/style/BorderProps.d.ts +5 -0
  64. package/dist/types/style/BorderProps.js +2 -0
  65. package/dist/types/style/BorderProps.js.map +1 -0
  66. package/dist/types/style/ColorProps.d.ts +6 -0
  67. package/dist/types/style/ColorProps.js +2 -0
  68. package/dist/types/style/ColorProps.js.map +1 -0
  69. package/dist/types/style/CommonStyleProps.d.ts +5 -0
  70. package/dist/types/style/CommonStyleProps.js +2 -0
  71. package/dist/types/style/CommonStyleProps.js.map +1 -0
  72. package/dist/types/style/LayoutProps.d.ts +6 -0
  73. package/dist/types/style/LayoutProps.js +2 -0
  74. package/dist/types/style/LayoutProps.js.map +1 -0
  75. package/package.json +57 -0
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Tipos de botão suportados pelo tema.
3
+ */
4
+ export type ButtonKind = "primary" | "secondary" | "delete" | "none";
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ButtonKind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonKind.js","sourceRoot":"","sources":["../../src/types/ButtonKind.tsx"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare const COMMON_STYLE_FORWARD_PROPS: readonly ["width", "height", "padding", "margin", "background", "backgroundHover", "colorText", "colorHover", "borderRadius", "boxShadow"];
@@ -0,0 +1,13 @@
1
+ export const COMMON_STYLE_FORWARD_PROPS = [
2
+ "width",
3
+ "height",
4
+ "padding",
5
+ "margin",
6
+ "background",
7
+ "backgroundHover",
8
+ "colorText",
9
+ "colorHover",
10
+ "borderRadius",
11
+ "boxShadow",
12
+ ];
13
+ //# sourceMappingURL=CommonForwardProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommonForwardProps.js","sourceRoot":"","sources":["../../src/types/CommonForwardProps.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,OAAO;IACP,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,iBAAiB;IACjB,WAAW;IACX,YAAY;IACZ,cAAc;IACd,WAAW;CACH,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type DataCard = {
2
+ id: number;
3
+ title: string;
4
+ description: string;
5
+ list_description?: string[];
6
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DataCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataCard.js","sourceRoot":"","sources":["../../src/types/DataCard.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export type ShadowConfig = {
2
+ offsetX: string;
3
+ offsetY: string;
4
+ blur: string;
5
+ color: string;
6
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ShadowConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShadowConfig.js","sourceRoot":"","sources":["../../src/types/ShadowConfig.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface BorderProps {
2
+ borderRadius?: string;
3
+ border?: string;
4
+ boxShadow?: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BorderProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BorderProps.js","sourceRoot":"","sources":["../../../src/types/style/BorderProps.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface ColorProps {
2
+ background?: string;
3
+ backgroundHover?: string;
4
+ colorText?: string;
5
+ colorHover?: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ColorProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorProps.js","sourceRoot":"","sources":["../../../src/types/style/ColorProps.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { LayoutProps } from "./LayoutProps";
2
+ import { ColorProps } from "./ColorProps";
3
+ import { BorderProps } from "./BorderProps";
4
+ export interface CommonStyleProps extends LayoutProps, ColorProps, BorderProps {
5
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CommonStyleProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommonStyleProps.js","sourceRoot":"","sources":["../../../src/types/style/CommonStyleProps.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface LayoutProps {
2
+ width?: string;
3
+ height?: string;
4
+ padding?: string;
5
+ margin?: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=LayoutProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LayoutProps.js","sourceRoot":"","sources":["../../../src/types/style/LayoutProps.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@pipelinesolucoes/button",
3
+ "version": "1.0.0-beta.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/pipeline-solucoes/button.git"
7
+ },
8
+ "homepage": "https://github.com/pipeline-solucoes/button#readme",
9
+ "bugs": {
10
+ "url": "https://github.com/pipeline-solucoes/button/issues"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "main": "dist/index.js",
16
+ "module": "dist/index.js",
17
+ "types": "dist/index.d.ts",
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "exports": {
22
+ ".": {
23
+ "import": "./dist/index.js",
24
+ "require": "./dist/index.js"
25
+ }
26
+ },
27
+ "scripts": {
28
+ "build": "tsc",
29
+ "lint": "eslint .",
30
+ "prepublishOnly": "npm run build"
31
+ },
32
+ "peerDependencies": {
33
+ "@emotion/react": "^11.14.0",
34
+ "@emotion/styled": "^11.14.1",
35
+ "@mui/icons-material": "^6.4.4 || ^7.3.0",
36
+ "@mui/material": "^6.4.4 || ^7.3.0",
37
+ "react": "^18.0.0 || ^19.0.0",
38
+ "react-dom": "^18.0.0 || ^19.0.0"
39
+ },
40
+ "devDependencies": {
41
+ "@emotion/css": "^11.13.5",
42
+ "@emotion/react": "^11.14.0",
43
+ "@emotion/server": "^11.11.0",
44
+ "@emotion/styled": "^11.14.1",
45
+ "@eslint/eslintrc": "^3",
46
+ "@mui/icons-material": "^7.3.0",
47
+ "@mui/material": "^7.3.0",
48
+ "@types/node": "^20",
49
+ "@types/react": "^19.0.8",
50
+ "@types/react-dom": "^19",
51
+ "@types/react-input-mask": "^3.0.6",
52
+ "eslint": "^9",
53
+ "eslint-config-next": "15.1.6",
54
+ "next": "^15.2.3",
55
+ "typescript": "^5"
56
+ }
57
+ }