ui-arreya-components 0.0.8 → 0.0.10
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/ui.cjs.js +170 -62
- package/dist/ui.es.js +22286 -4803
- package/dist/ui.umd.js +171 -63
- package/package.json +2 -3
- package/scripts/build-index-ts.sh +16 -0
- package/src/components/feature/header.tsx +2 -2
- package/src/components/ui/sonner.tsx +2 -2
- package/src/index.ts +49 -54
- package/tailwind.config.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ui-arreya-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -23,8 +23,7 @@
|
|
|
23
23
|
"storybook:css": "tailwindcss -w -i ./src/styles/tailwind.css -o ./src/index.css",
|
|
24
24
|
"build-storybook": "concurrently 'npm run build-storybook:css' 'storybook build'",
|
|
25
25
|
"build-storybook:css": "tailwindcss -m -i ./src/styles/tailwind.css -o ./src/index.css",
|
|
26
|
-
"prepublish": "npm run build"
|
|
27
|
-
"publish": "npm publish"
|
|
26
|
+
"prepublish": "npm run build"
|
|
28
27
|
},
|
|
29
28
|
"peerDependencies": {
|
|
30
29
|
"react": "^18.0.0",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Starting fresh
|
|
4
|
+
rm src/index.ts
|
|
5
|
+
|
|
6
|
+
# Add Components
|
|
7
|
+
for import in `ls src/components/ui/ | grep -v '.stories.' | cut -f1 -d\.`;
|
|
8
|
+
do
|
|
9
|
+
echo 'export * from "./components/ui/'$import'"' >> src/index.ts
|
|
10
|
+
done
|
|
11
|
+
|
|
12
|
+
# Add Features
|
|
13
|
+
for import in `ls src/components/feature/ | grep -v '.stories.' | cut -f1 -d\.`;
|
|
14
|
+
do
|
|
15
|
+
echo 'export * from "./components/feature/'${import}'"' >> src/index.ts
|
|
16
|
+
done
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "@/components/ui/breadcrumb"
|
|
10
10
|
import { ChevronRight, Home } from "lucide-react"
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
type BreadcrumbItem = {
|
|
13
13
|
label: string
|
|
14
14
|
href?: string
|
|
15
15
|
isCurrentPage?: boolean
|
|
@@ -26,7 +26,7 @@ interface HeaderProps {
|
|
|
26
26
|
export function Header({ title, breadcrumbItems = [], showHomeLink = true, className = "", children }: HeaderProps) {
|
|
27
27
|
return (
|
|
28
28
|
<header className={`border-b pb-4 ${className}`}>
|
|
29
|
-
<div className="container mx-auto
|
|
29
|
+
<div className="container mx-auto py-4">
|
|
30
30
|
{(breadcrumbItems.length > 0 || showHomeLink) && (
|
|
31
31
|
<Breadcrumb className="mb-2">
|
|
32
32
|
<BreadcrumbList>
|
|
@@ -3,7 +3,7 @@ import { Toaster as Sonner } from "sonner"
|
|
|
3
3
|
|
|
4
4
|
type ToasterProps = React.ComponentProps<typeof Sonner>
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const SonnerToaster = ({ ...props }: ToasterProps) => {
|
|
7
7
|
const { theme = "system" } = useTheme()
|
|
8
8
|
|
|
9
9
|
return (
|
|
@@ -26,4 +26,4 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
|
|
26
26
|
)
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export {
|
|
29
|
+
export { SonnerToaster }
|
package/src/index.ts
CHANGED
|
@@ -1,54 +1,49 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
export
|
|
50
|
-
Header
|
|
51
|
-
} from './components/feature/header';
|
|
52
|
-
export {
|
|
53
|
-
Input
|
|
54
|
-
} from './components/ui/input';
|
|
1
|
+
export * from "./components/ui/accordion"
|
|
2
|
+
export * from "./components/ui/alert-dialog"
|
|
3
|
+
export * from "./components/ui/alert"
|
|
4
|
+
export * from "./components/ui/aspect-ratio"
|
|
5
|
+
export * from "./components/ui/avatar"
|
|
6
|
+
export * from "./components/ui/badge"
|
|
7
|
+
export * from "./components/ui/breadcrumb"
|
|
8
|
+
export * from "./components/ui/button"
|
|
9
|
+
export * from "./components/ui/card"
|
|
10
|
+
export * from "./components/ui/carousel"
|
|
11
|
+
export * from "./components/ui/chart"
|
|
12
|
+
export * from "./components/ui/checkbox"
|
|
13
|
+
export * from "./components/ui/collapsible"
|
|
14
|
+
export * from "./components/ui/context-menu"
|
|
15
|
+
export * from "./components/ui/dialog"
|
|
16
|
+
export * from "./components/ui/drawer"
|
|
17
|
+
export * from "./components/ui/dropdown-menu"
|
|
18
|
+
export * from "./components/ui/form"
|
|
19
|
+
export * from "./components/ui/hover-card"
|
|
20
|
+
export * from "./components/ui/index"
|
|
21
|
+
export * from "./components/ui/input-otp"
|
|
22
|
+
export * from "./components/ui/input"
|
|
23
|
+
export * from "./components/ui/label"
|
|
24
|
+
export * from "./components/ui/menubar"
|
|
25
|
+
export * from "./components/ui/navigation-menu"
|
|
26
|
+
export * from "./components/ui/pagination"
|
|
27
|
+
export * from "./components/ui/popover"
|
|
28
|
+
export * from "./components/ui/progress"
|
|
29
|
+
export * from "./components/ui/radio-group"
|
|
30
|
+
export * from "./components/ui/resizable"
|
|
31
|
+
export * from "./components/ui/scroll-area"
|
|
32
|
+
export * from "./components/ui/select"
|
|
33
|
+
export * from "./components/ui/separator"
|
|
34
|
+
export * from "./components/ui/sheet"
|
|
35
|
+
export * from "./components/ui/sidebar"
|
|
36
|
+
export * from "./components/ui/skeleton"
|
|
37
|
+
export * from "./components/ui/slider"
|
|
38
|
+
export * from "./components/ui/sonner"
|
|
39
|
+
export * from "./components/ui/switch"
|
|
40
|
+
export * from "./components/ui/table"
|
|
41
|
+
export * from "./components/ui/tabs"
|
|
42
|
+
export * from "./components/ui/textarea"
|
|
43
|
+
export * from "./components/ui/toast"
|
|
44
|
+
export * from "./components/ui/toaster"
|
|
45
|
+
export * from "./components/ui/toggle-group"
|
|
46
|
+
export * from "./components/ui/toggle"
|
|
47
|
+
export * from "./components/ui/tooltip"
|
|
48
|
+
export * from "./components/feature/header"
|
|
49
|
+
export * from "./components/feature/login-form"
|