@causw/components 0.0.2 → 0.0.4

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.js CHANGED
@@ -38,7 +38,11 @@ module.exports = __toCommonJS(index_exports);
38
38
  var import_react = __toESM(require("react"));
39
39
 
40
40
  // src/Button/Button.styles.ts
41
- var buttonStyles = ({ variant, size, fullWidth }) => {
41
+ var buttonStyles = ({
42
+ variant,
43
+ size,
44
+ fullWidth
45
+ }) => {
42
46
  const baseStyles = `
43
47
  inline-flex items-center justify-center
44
48
  font-medium rounded-md
@@ -63,17 +67,16 @@ var buttonStyles = ({ variant, size, fullWidth }) => {
63
67
  // src/Button/Button.tsx
64
68
  var import_jsx_runtime = require("react/jsx-runtime");
65
69
  var Button = import_react.default.forwardRef(
66
- ({ variant = "primary", size = "md", fullWidth = false, children, className = "", ...props }, ref) => {
70
+ ({
71
+ variant = "primary",
72
+ size = "md",
73
+ fullWidth = false,
74
+ children,
75
+ className = "",
76
+ ...props
77
+ }, ref) => {
67
78
  const classes = buttonStyles({ variant, size, fullWidth });
68
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
69
- "button",
70
- {
71
- ref,
72
- className: `${classes} ${className}`,
73
- ...props,
74
- children
75
- }
76
- );
79
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { ref, className: `${classes} ${className}`, ...props, children });
77
80
  }
78
81
  );
79
82
  Button.displayName = "Button";
package/dist/index.mjs CHANGED
@@ -2,7 +2,11 @@
2
2
  import React from "react";
3
3
 
4
4
  // src/Button/Button.styles.ts
5
- var buttonStyles = ({ variant, size, fullWidth }) => {
5
+ var buttonStyles = ({
6
+ variant,
7
+ size,
8
+ fullWidth
9
+ }) => {
6
10
  const baseStyles = `
7
11
  inline-flex items-center justify-center
8
12
  font-medium rounded-md
@@ -27,17 +31,16 @@ var buttonStyles = ({ variant, size, fullWidth }) => {
27
31
  // src/Button/Button.tsx
28
32
  import { jsx } from "react/jsx-runtime";
29
33
  var Button = React.forwardRef(
30
- ({ variant = "primary", size = "md", fullWidth = false, children, className = "", ...props }, ref) => {
34
+ ({
35
+ variant = "primary",
36
+ size = "md",
37
+ fullWidth = false,
38
+ children,
39
+ className = "",
40
+ ...props
41
+ }, ref) => {
31
42
  const classes = buttonStyles({ variant, size, fullWidth });
32
- return /* @__PURE__ */ jsx(
33
- "button",
34
- {
35
- ref,
36
- className: `${classes} ${className}`,
37
- ...props,
38
- children
39
- }
40
- );
43
+ return /* @__PURE__ */ jsx("button", { ref, className: `${classes} ${className}`, ...props, children });
41
44
  }
42
45
  );
43
46
  Button.displayName = "Button";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@causw/components",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "UI components for CAUSW Design System - CAU Software Community Service",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -16,7 +16,8 @@
16
16
  "dist"
17
17
  ],
18
18
  "dependencies": {
19
- "@causw/tokens": "0.0.2"
19
+ "@causw/tokens": "0.0.4",
20
+ "@causw/icons": "0.0.4"
20
21
  },
21
22
  "peerDependencies": {
22
23
  "react": "^18.2.0",
@@ -29,8 +30,7 @@
29
30
  "react": "^18.2.0",
30
31
  "react-dom": "^18.2.0",
31
32
  "tsup": "^8.0.0",
32
- "typescript": "^5.3.0",
33
- "vitest": "^1.0.0"
33
+ "typescript": "^5.3.0"
34
34
  },
35
35
  "repository": {
36
36
  "type": "git",
@@ -44,7 +44,6 @@
44
44
  "scripts": {
45
45
  "build": "tsup src/index.ts --format cjs,esm --dts --external react",
46
46
  "dev": "tsup src/index.ts --format cjs,esm --dts --external react --watch",
47
- "lint": "eslint src --ext .ts,.tsx",
48
- "test": "vitest"
47
+ "lint": "eslint src"
49
48
  }
50
49
  }