@lctafrica/ui 0.0.3 → 0.0.5
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 +1 -2
- package/package.json +27 -11
- package/dist/components/ui/button./Button.d.ts +0 -11
- package/dist/components/ui/button./Button.test.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -3086
- package/dist/lct-logo.svg +0 -3
- package/dist/lib/utils.d.ts +0 -2
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# LCT Africa UI Library
|
|
2
2
|
|
|
3
|
-
This is an internal UI component library for **LCT Africa**, built with **React**, **TypeScript**, and **Vite**. It provides reusable, consistent, and tested UI components for use across LCT Africa’s frontend projects.
|
|
4
|
-
---
|
|
3
|
+
## This is an internal UI component library for **LCT Africa**, built with **React**, **TypeScript**, and **Vite**. It provides reusable, consistent, and tested UI components for use across LCT Africa’s frontend projects.
|
|
5
4
|
|
|
6
5
|
## Project Structure
|
|
7
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lctafrica/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,15 +13,19 @@
|
|
|
13
13
|
"lint": "eslint .",
|
|
14
14
|
"preview": "vite preview",
|
|
15
15
|
"test": "vitest",
|
|
16
|
+
"test:no-watch": "vitest run",
|
|
16
17
|
"storybook": "storybook dev -p 6006",
|
|
17
|
-
"build-storybook": "storybook build"
|
|
18
|
+
"build-storybook": "storybook build",
|
|
19
|
+
"prepare": "husky"
|
|
18
20
|
},
|
|
19
21
|
"dependencies": {
|
|
20
22
|
"@fontsource-variable/geist": "^5.2.8",
|
|
23
|
+
"@fontsource/inter": "^5.2.8",
|
|
24
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
21
25
|
"@tailwindcss/vite": "^4.2.1",
|
|
22
26
|
"class-variance-authority": "^0.7.1",
|
|
23
27
|
"clsx": "^2.1.1",
|
|
24
|
-
"lucide-react": "^
|
|
28
|
+
"lucide-react": "^1.7.0",
|
|
25
29
|
"radix-ui": "^1.4.3",
|
|
26
30
|
"shadcn": "^4.0.8",
|
|
27
31
|
"tailwind-merge": "^3.5.0",
|
|
@@ -30,33 +34,45 @@
|
|
|
30
34
|
"vite-plugin-css-injected-by-js": "^4.0.1"
|
|
31
35
|
},
|
|
32
36
|
"peerDependencies": {
|
|
33
|
-
"react": "
|
|
34
|
-
"react-dom": "
|
|
37
|
+
"react": "18.2.0",
|
|
38
|
+
"react-dom": "18.2.0"
|
|
35
39
|
},
|
|
36
40
|
"devDependencies": {
|
|
37
41
|
"@eslint/js": "^9.39.4",
|
|
38
|
-
"@storybook/addon-docs": "^10.
|
|
39
|
-
"@storybook/react-vite": "^10.
|
|
42
|
+
"@storybook/addon-docs": "^10.3.3",
|
|
43
|
+
"@storybook/react-vite": "^10.3.3",
|
|
40
44
|
"@testing-library/dom": "^10.4.1",
|
|
41
45
|
"@testing-library/jest-dom": "^6.9.1",
|
|
42
46
|
"@testing-library/react": "^16.3.2",
|
|
43
47
|
"@types/node": "^24.12.0",
|
|
44
|
-
"@types/react": "^
|
|
45
|
-
"@types/react-dom": "^
|
|
48
|
+
"@types/react": "^18.3.28",
|
|
49
|
+
"@types/react-dom": "^18.3.7",
|
|
46
50
|
"@vitejs/plugin-react": "^5.0.0",
|
|
47
51
|
"eslint": "^9.39.4",
|
|
48
52
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
49
53
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
50
|
-
"eslint-plugin-storybook": "^10.
|
|
54
|
+
"eslint-plugin-storybook": "^10.3.3",
|
|
51
55
|
"globals": "^17.4.0",
|
|
56
|
+
"husky": "^9.1.7",
|
|
52
57
|
"jsdom": "^29.0.0",
|
|
58
|
+
"lint-staged": "^16.4.0",
|
|
59
|
+
"prettier": "^3.8.1",
|
|
53
60
|
"react": "^19.2.4",
|
|
54
61
|
"react-dom": "^19.2.4",
|
|
55
|
-
"storybook": "^10.
|
|
62
|
+
"storybook": "^10.3.3",
|
|
56
63
|
"typescript": "~5.9.3",
|
|
57
64
|
"typescript-eslint": "^8.56.1",
|
|
58
65
|
"unplugin-dts": "^1.0.0-beta.6",
|
|
59
66
|
"vite": "^7.0.0",
|
|
60
67
|
"vitest": "^4.1.0"
|
|
68
|
+
},
|
|
69
|
+
"lint-staged": {
|
|
70
|
+
"*.{ts,tsx}": [
|
|
71
|
+
"eslint --fix",
|
|
72
|
+
"prettier --write"
|
|
73
|
+
],
|
|
74
|
+
"*.{js,jsx,json,md}": [
|
|
75
|
+
"prettier --write"
|
|
76
|
+
]
|
|
61
77
|
}
|
|
62
78
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "primary" | "primary-destructive" | "secondary" | "secondary-destructive" | "outline" | "outline-destructive" | "ghost" | "ghost-destructive" | "link" | "link-destructive" | null | undefined;
|
|
5
|
-
size?: "sm" | "md" | "lg" | "xl" | "2xl" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl" | "icon-2xl" | null | undefined;
|
|
6
|
-
defaultVariants?: "variant" | "size" | null | undefined;
|
|
7
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
9
|
-
asChild?: boolean;
|
|
10
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export { Button, buttonVariants };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components/ui/button./Button';
|