@lgsm/modules 1.0.2 → 1.1.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/README.md +33 -0
- package/dist/api/apiService.d.ts +11 -0
- package/dist/api/axiosInstance.d.ts +4 -0
- package/dist/assets/utils.css +1 -0
- package/dist/components/Button/index.d.ts +9 -0
- package/dist/components/Button/index.js +129 -0
- package/dist/components/MyCounter/index.js +23 -21
- package/dist/components/Notification/NotificationContainer.d.ts +1 -0
- package/dist/components/Notification/index.d.ts +9 -0
- package/dist/components/Notification/index.js +190 -0
- package/dist/components/ui/alert.d.ts +8 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/fonts/LG_Smart/LG Smart Bold Italic.ttf +0 -0
- package/dist/fonts/LG_Smart/LG Smart Bold.ttf +0 -0
- package/dist/fonts/LG_Smart/LG Smart Light.ttf +0 -0
- package/dist/fonts/LG_Smart/LG Smart Regular Italic.ttf +0 -0
- package/dist/fonts/LG_Smart/LG Smart SemiBold.ttf +0 -0
- package/dist/fonts/LG_Smart/LGSmart-Regular.ttf +0 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/main.d.ts +6 -1
- package/dist/main.js +1859 -6
- package/dist/store/notificationStore.d.ts +10 -0
- package/dist/usage-example/example-apiService.d.ts +1 -0
- package/dist/usage-example/example-components.d.ts +1 -0
- package/dist/utils-DGFEERe-.js +2761 -0
- package/package.json +17 -5
- package/dist/assets/index3.css +0 -1
- package/dist/components/MyButton/index.d.ts +0 -7
- package/dist/components/MyButton/index.js +0 -27
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lgsm/modules",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"build": "
|
|
6
|
+
"build": "vite build",
|
|
7
7
|
"lint": "eslint . --ext ts,tsx",
|
|
8
8
|
"lint:fix": "eslint . --ext ts,tsx --fix",
|
|
9
9
|
"format": "prettier --check .",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"test": "vitest",
|
|
16
16
|
"test:ui": "vitest --ui",
|
|
17
17
|
"coverage": "vitest run --coverage",
|
|
18
|
-
"prepublishOnly": "
|
|
18
|
+
"prepublishOnly": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"module": "./dist/main.js",
|
|
21
21
|
"exports": "./dist/main.js",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@storybook/react-vite": "8.6.3",
|
|
40
40
|
"@storybook/test": "8.6.3",
|
|
41
41
|
"@testing-library/react": "16.2.0",
|
|
42
|
-
"@types/node": "22.13.8",
|
|
42
|
+
"@types/node": "^22.13.8",
|
|
43
43
|
"@types/react": "19.0.10",
|
|
44
44
|
"@types/react-dom": "19.0.4",
|
|
45
45
|
"@vitejs/plugin-react": "4.3.4",
|
|
46
46
|
"@vitest/coverage-v8": "3.0.7",
|
|
47
47
|
"@vitest/ui": "3.0.7",
|
|
48
48
|
"autoprefixer": "10.4.20",
|
|
49
|
-
"clsx": "2.1.1",
|
|
49
|
+
"clsx": "^2.1.1",
|
|
50
50
|
"eslint": "9.21.0",
|
|
51
51
|
"eslint-config-prettier": "10.0.2",
|
|
52
52
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
@@ -59,11 +59,23 @@
|
|
|
59
59
|
"storybook": "8.6.3",
|
|
60
60
|
"stylelint": "16.15.0",
|
|
61
61
|
"stylelint-config-standard": "37.0.0",
|
|
62
|
+
"tailwindcss": "^4.1.13",
|
|
63
|
+
"tw-animate-css": "^1.3.8",
|
|
62
64
|
"typescript": "5.7.3",
|
|
63
65
|
"typescript-eslint": "8.25.0",
|
|
64
66
|
"vite": "6.2.0",
|
|
65
67
|
"vite-plugin-dts": "4.5.1",
|
|
66
68
|
"vite-plugin-lib-inject-css": "2.2.1",
|
|
67
69
|
"vitest": "3.0.7"
|
|
70
|
+
},
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
73
|
+
"@tailwindcss/vite": "^4.1.13",
|
|
74
|
+
"axios": "^1.12.2",
|
|
75
|
+
"class-variance-authority": "^0.7.1",
|
|
76
|
+
"lucide-react": "^0.544.0",
|
|
77
|
+
"tailwind-merge": "^3.3.1",
|
|
78
|
+
"tailwindcss-animate": "^1.0.7",
|
|
79
|
+
"zustand": "^5.0.8"
|
|
68
80
|
}
|
|
69
81
|
}
|
package/dist/assets/index3.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._button_31ovf_1{--bg-color: none;background-color:var(--bg-color);border-radius:6px}._button--primary_31ovf_15{--bg-color: crimson;-webkit-backdrop-filter:sepia(90%);backdrop-filter:sepia(90%)}._button--small_31ovf_27{font-size:1rem;padding:.4rem .6rem}._button--medium_31ovf_37{font-size:1.2rem;padding:.6rem .8rem}._button--large_31ovf_47{font-size:1.4rem;padding:.8rem 1rem}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface ComponentProps extends React.ComponentProps<'button'> {
|
|
2
|
-
primary?: boolean;
|
|
3
|
-
size?: 'small' | 'medium' | 'large';
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function MyButton({ primary, size, label, ...props }: ComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as _ } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import '../../assets/index3.css';const s = "_button_31ovf_1", t = {
|
|
4
|
-
button: s,
|
|
5
|
-
"button--primary": "_button--primary_31ovf_15",
|
|
6
|
-
"button--small": "_button--small_31ovf_27",
|
|
7
|
-
"button--medium": "_button--medium_31ovf_37",
|
|
8
|
-
"button--large": "_button--large_31ovf_47"
|
|
9
|
-
};
|
|
10
|
-
function a({ primary: n = !1, size: o = "medium", label: u, ...b }) {
|
|
11
|
-
const m = _(t.button, {
|
|
12
|
-
[t["button--primary"]]: n,
|
|
13
|
-
[t[`button--${o}`]]: o
|
|
14
|
-
});
|
|
15
|
-
return /* @__PURE__ */ r(
|
|
16
|
-
"button",
|
|
17
|
-
{
|
|
18
|
-
type: "button",
|
|
19
|
-
className: m,
|
|
20
|
-
...b,
|
|
21
|
-
children: u
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
a as MyButton
|
|
27
|
-
};
|