@addsign/moje-agenda-shared-lib 0.0.5 → 0.0.8
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.
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type ButtonVariant = "primary" | "secondary" | "transparent" | "success" | "danger" | "icon";
|
|
3
|
+
interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
variant?: ButtonVariant;
|
|
5
|
+
}
|
|
6
|
+
declare const Button: React.FC<IButtonProps>;
|
|
7
|
+
export default Button;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
const d = " py-2 px-4 leading-[25px] ", i = {
|
|
3
|
+
primary: "bg-primary text-gray-100 hover:bg-gray w-fit rounded-lg whitespace-nowrap font-medium",
|
|
4
|
+
secondary: "bg-white text-gray-800 hover:bg-gray-100 rounded-lg border border-gray-300 shadow whitespace-nowrap font-medium",
|
|
5
|
+
transparent: "bg-transparent border border-transparent hover:bg-gray-100 hover:border-gray-200 rounded-lg text-primary font-medium text-gray-800 w-fit ",
|
|
6
|
+
success: "bg-gray-500 hover:bg-gray-700 text-white rounded-lg",
|
|
7
|
+
danger: "bg-gray-500 hover:bg-gray-700 text-white rounded-lg",
|
|
8
|
+
icon: "text-primary font-medium rounded-full text-sm text-center inline-flex items-center ml-4 h-full "
|
|
9
|
+
}, m = ({
|
|
10
|
+
variant: r = "primary",
|
|
11
|
+
children: t,
|
|
12
|
+
onClick: a,
|
|
13
|
+
className: n,
|
|
14
|
+
...e
|
|
15
|
+
}) => {
|
|
16
|
+
const o = d + i[r] + (e != null && e.disabled ? " bg-opacity-50" : " ");
|
|
17
|
+
return /* @__PURE__ */ g(
|
|
18
|
+
"button",
|
|
19
|
+
{
|
|
20
|
+
className: o + " " + (n || " sharedLibraryource.. "),
|
|
21
|
+
onClick: a,
|
|
22
|
+
...e,
|
|
23
|
+
children: t
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
m as default
|
|
29
|
+
};
|
package/dist/main.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Button } from './components/Button';
|
|
1
|
+
export { default as Button } from './components/Button.tsx';
|
package/dist/main.js
CHANGED
package/package.json
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@addsign/moje-agenda-shared-lib",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/main.js",
|
|
7
|
-
"types": "dist/main.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"sideEffects": [
|
|
12
|
-
"**/*.css"
|
|
13
|
-
],
|
|
14
|
-
"scripts": {
|
|
15
|
-
"dev": "vite",
|
|
16
|
-
"build": "tsc --p ./tsconfig-build.json && vite build",
|
|
17
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
18
|
-
"preview": "vite preview",
|
|
19
|
-
"
|
|
20
|
-
"watch": "vite build --watch"
|
|
21
|
-
},
|
|
22
|
-
"peerDependencies": {
|
|
23
|
-
"react": "^18.2.0",
|
|
24
|
-
"react-dom": "^18.2.0"
|
|
25
|
-
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@types/node": "^20.12.12",
|
|
28
|
-
"@types/react": "^18.2.66",
|
|
29
|
-
"@types/react-dom": "^18.2.22",
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
31
|
-
"@typescript-eslint/parser": "^7.2.0",
|
|
32
|
-
"@vitejs/plugin-react": "^4.2.1",
|
|
33
|
-
"autoprefixer": "^10.4.19",
|
|
34
|
-
"eslint": "^8.57.0",
|
|
35
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
36
|
-
"eslint-plugin-react-refresh": "^0.4.6",
|
|
37
|
-
"glob": "^10.3.16",
|
|
38
|
-
"postcss": "^8.4.38",
|
|
39
|
-
"react": "^18.2.0",
|
|
40
|
-
"react-dom": "^18.2.0",
|
|
41
|
-
"tailwindcss": "^3.4.3",
|
|
42
|
-
"tsup": "^8.0.2",
|
|
43
|
-
"typescript": "^5.2.2",
|
|
44
|
-
"vite": "^5.2.0",
|
|
45
|
-
"vite-plugin-dts": "^3.9.1",
|
|
46
|
-
"vite-plugin-lib-inject-css": "^2.1.1"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@addsign/moje-agenda-shared-lib",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.8",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/main.js",
|
|
7
|
+
"types": "dist/main.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"**/*.css"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"dev": "vite",
|
|
16
|
+
"build": "tsc --p ./tsconfig-build.json && vite build",
|
|
17
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
18
|
+
"preview": "vite preview",
|
|
19
|
+
"prepublishOnly": "npm run build",
|
|
20
|
+
"watch": "vite build --watch"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": "^18.2.0",
|
|
24
|
+
"react-dom": "^18.2.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/node": "^20.12.12",
|
|
28
|
+
"@types/react": "^18.2.66",
|
|
29
|
+
"@types/react-dom": "^18.2.22",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
31
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
32
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
33
|
+
"autoprefixer": "^10.4.19",
|
|
34
|
+
"eslint": "^8.57.0",
|
|
35
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
36
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
|
37
|
+
"glob": "^10.3.16",
|
|
38
|
+
"postcss": "^8.4.38",
|
|
39
|
+
"react": "^18.2.0",
|
|
40
|
+
"react-dom": "^18.2.0",
|
|
41
|
+
"tailwindcss": "^3.4.3",
|
|
42
|
+
"tsup": "^8.0.2",
|
|
43
|
+
"typescript": "^5.2.2",
|
|
44
|
+
"vite": "^5.2.0",
|
|
45
|
+
"vite-plugin-dts": "^3.9.1",
|
|
46
|
+
"vite-plugin-lib-inject-css": "^2.1.1"
|
|
47
|
+
}
|
|
48
|
+
}
|
package/dist/assets/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._button_11bo7_1{padding:1rem}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/index.css';const u = "_button_11bo7_1", c = {
|
|
3
|
-
button: u
|
|
4
|
-
};
|
|
5
|
-
function b(t) {
|
|
6
|
-
const { className: o, ...s } = t;
|
|
7
|
-
return /* @__PURE__ */ n("div", { children: [
|
|
8
|
-
"MILA22..a4567",
|
|
9
|
-
/* @__PURE__ */ r("button", { className: `${o} ${c.button}`, ...s })
|
|
10
|
-
] });
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
b as Button
|
|
14
|
-
};
|