@sykoramaros/marosh-components 0.0.1
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 +133 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +58 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +79 -0
package/README.md
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
# Build
|
|
4
|
+
|
|
5
|
+
bun run build
|
|
6
|
+
|
|
7
|
+
# Otestuj že dist/ obsahuje správné soubory
|
|
8
|
+
|
|
9
|
+
ls -la dist/
|
|
10
|
+
|
|
11
|
+
# Publikuj (Bun podporuje npm příkazy)
|
|
12
|
+
|
|
13
|
+
bunx npm login
|
|
14
|
+
|
|
15
|
+
npm publish --access public
|
|
16
|
+
|
|
17
|
+
# Nebo použij přímo npm
|
|
18
|
+
|
|
19
|
+
npm login
|
|
20
|
+
npm publish --access public
|
|
21
|
+
|
|
22
|
+
src/
|
|
23
|
+
├── index.ts ← HLAVNÍ export (jediný potřebný!)
|
|
24
|
+
├── main.tsx ← Jen pro dev
|
|
25
|
+
├── App.tsx ← Jen pro dev
|
|
26
|
+
├── components/
|
|
27
|
+
│ ├── ui/
|
|
28
|
+
│ │ ├── button.tsx
|
|
29
|
+
│ │ ├── input.tsx
|
|
30
|
+
│ │ └── card.tsx
|
|
31
|
+
│ ├── CustomButton.tsx
|
|
32
|
+
│ └── CustomInput.tsx
|
|
33
|
+
└── lib/
|
|
34
|
+
└── utils.ts
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 📦 **Alternativa: Index v každé složce (pokročilé)**
|
|
39
|
+
|
|
40
|
+
Tohle má smysl jen u **velkých knihoven** s mnoha kategoriemi:
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
src/
|
|
44
|
+
├── index.ts ← Re-exportuje vše
|
|
45
|
+
├── components/
|
|
46
|
+
│ ├── index.ts ← Export všech komponent
|
|
47
|
+
│ ├── ui/
|
|
48
|
+
│ │ ├── index.ts ← Export všech ui komponent
|
|
49
|
+
│ │ ├── button.tsx
|
|
50
|
+
│ │ └── input.tsx
|
|
51
|
+
│ └── custom/
|
|
52
|
+
│ ├── index.ts ← Export custom komponent
|
|
53
|
+
│ ├── CustomButton.tsx
|
|
54
|
+
│ └── CustomInput.tsx
|
|
55
|
+
└── lib/
|
|
56
|
+
├── index.ts
|
|
57
|
+
└── utils.ts
|
|
58
|
+
|
|
59
|
+
aktualizace knihovny:
|
|
60
|
+
bun run build
|
|
61
|
+
npm publish
|
|
62
|
+
|
|
63
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
64
|
+
|
|
65
|
+
Currently, two official plugins are available:
|
|
66
|
+
|
|
67
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
|
|
68
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
69
|
+
|
|
70
|
+
## React Compiler
|
|
71
|
+
|
|
72
|
+
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
|
73
|
+
|
|
74
|
+
## Expanding the ESLint configuration
|
|
75
|
+
|
|
76
|
+
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
77
|
+
|
|
78
|
+
```js
|
|
79
|
+
export default defineConfig([
|
|
80
|
+
globalIgnores(["dist"]),
|
|
81
|
+
{
|
|
82
|
+
files: ["**/*.{ts,tsx}"],
|
|
83
|
+
extends: [
|
|
84
|
+
// Other configs...
|
|
85
|
+
|
|
86
|
+
// Remove tseslint.configs.recommended and replace with this
|
|
87
|
+
tseslint.configs.recommendedTypeChecked,
|
|
88
|
+
// Alternatively, use this for stricter rules
|
|
89
|
+
tseslint.configs.strictTypeChecked,
|
|
90
|
+
// Optionally, add this for stylistic rules
|
|
91
|
+
tseslint.configs.stylisticTypeChecked,
|
|
92
|
+
|
|
93
|
+
// Other configs...
|
|
94
|
+
],
|
|
95
|
+
languageOptions: {
|
|
96
|
+
parserOptions: {
|
|
97
|
+
project: ["./tsconfig.node.json", "./tsconfig.app.json"],
|
|
98
|
+
tsconfigRootDir: import.meta.dirname,
|
|
99
|
+
},
|
|
100
|
+
// other options...
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
])
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
107
|
+
|
|
108
|
+
```js
|
|
109
|
+
// eslint.config.js
|
|
110
|
+
import reactX from "eslint-plugin-react-x"
|
|
111
|
+
import reactDom from "eslint-plugin-react-dom"
|
|
112
|
+
|
|
113
|
+
export default defineConfig([
|
|
114
|
+
globalIgnores(["dist"]),
|
|
115
|
+
{
|
|
116
|
+
files: ["**/*.{ts,tsx}"],
|
|
117
|
+
extends: [
|
|
118
|
+
// Other configs...
|
|
119
|
+
// Enable lint rules for React
|
|
120
|
+
reactX.configs["recommended-typescript"],
|
|
121
|
+
// Enable lint rules for React DOM
|
|
122
|
+
reactDom.configs.recommended,
|
|
123
|
+
],
|
|
124
|
+
languageOptions: {
|
|
125
|
+
parserOptions: {
|
|
126
|
+
project: ["./tsconfig.node.json", "./tsconfig.app.json"],
|
|
127
|
+
tsconfigRootDir: import.meta.dirname,
|
|
128
|
+
},
|
|
129
|
+
// other options...
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
])
|
|
133
|
+
```
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("@radix-ui/react-slot"),d=require("class-variance-authority"),u=require("clsx"),c=require("tailwind-merge");function g(...e){return c.twMerge(u.clsx(e))}const l=d.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function v({className:e,variant:r="default",size:n="default",asChild:i=!1,...s}){const o=i?a.Slot:"button";return t.jsx(o,{"data-slot":"button","data-variant":r,"data-size":n,className:g(l({variant:r,size:n,className:e})),...s})}const b=({children:e})=>t.jsx(t.Fragment,{children:t.jsx(v,{children:e})});exports.CustomButton=b;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/lib/utils.ts","../src/components/ui/button.tsx","../src/components/CustomButton.tsx"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60\",\n outline:\n \"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost:\n \"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2 has-[>svg]:px-3\",\n sm: \"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5\",\n lg: \"h-10 rounded-md px-6 has-[>svg]:px-4\",\n icon: \"size-9\",\n \"icon-sm\": \"size-8\",\n \"icon-lg\": \"size-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nfunction Button({\n className,\n variant = \"default\",\n size = \"default\",\n asChild = false,\n ...props\n}: React.ComponentProps<\"button\"> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean\n }) {\n const Comp = asChild ? Slot : \"button\"\n\n return (\n <Comp\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={cn(buttonVariants({ variant, size, className }))}\n {...props}\n />\n )\n}\n\nexport { Button, buttonVariants }\n","import { Button } from \"./ui/button\"\n\nexport const CustomButton = ({ children }: { children: React.ReactNode }) => {\n return (\n <>\n <Button>{children}</Button>\n </>\n )\n}\n"],"names":["cn","inputs","twMerge","clsx","buttonVariants","cva","Button","className","variant","size","asChild","props","Comp","Slot","jsx","CustomButton","children","Fragment"],"mappings":"2OAGO,SAASA,KAAMC,EAAsB,CAC1C,OAAOC,EAAAA,QAAQC,OAAKF,CAAM,CAAC,CAC7B,CCCA,MAAMG,EAAiBC,EAAAA,IACrB,8bACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,yDACT,YACE,oJACF,QACE,wIACF,UACE,+DACF,MACE,uEACF,KAAM,iDAAA,EAER,KAAM,CACJ,QAAS,gCACT,GAAI,gDACJ,GAAI,uCACJ,KAAM,SACN,UAAW,SACX,UAAW,SAAA,CACb,EAEF,gBAAiB,CACf,QAAS,UACT,KAAM,SAAA,CACR,CAEJ,EAEA,SAASC,EAAO,CACd,UAAAC,EACA,QAAAC,EAAU,UACV,KAAAC,EAAO,UACP,QAAAC,EAAU,GACV,GAAGC,CACL,EAGK,CACH,MAAMC,EAAOF,EAAUG,EAAAA,KAAO,SAE9B,OACEC,EAAAA,IAACF,EAAA,CACC,YAAU,SACV,eAAcJ,EACd,YAAWC,EACX,UAAWT,EAAGI,EAAe,CAAE,QAAAI,EAAS,KAAAC,EAAM,UAAAF,CAAA,CAAW,CAAC,EACzD,GAAGI,CAAA,CAAA,CAGV,CCzDO,MAAMI,EAAe,CAAC,CAAE,SAAAC,KAE3BF,EAAAA,IAAAG,EAAAA,SAAA,CACE,SAAAH,EAAAA,IAACR,EAAA,CAAQ,SAAAU,CAAA,CAAS,EACpB"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx as r, Fragment as a } from "react/jsx-runtime";
|
|
2
|
+
import { Slot as s } from "@radix-ui/react-slot";
|
|
3
|
+
import { cva as d } from "class-variance-authority";
|
|
4
|
+
import { clsx as u } from "clsx";
|
|
5
|
+
import { twMerge as c } from "tailwind-merge";
|
|
6
|
+
function g(...e) {
|
|
7
|
+
return c(u(e));
|
|
8
|
+
}
|
|
9
|
+
const v = d(
|
|
10
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
11
|
+
{
|
|
12
|
+
variants: {
|
|
13
|
+
variant: {
|
|
14
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
15
|
+
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
16
|
+
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
17
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
18
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
19
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
20
|
+
},
|
|
21
|
+
size: {
|
|
22
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
23
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
24
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
25
|
+
icon: "size-9",
|
|
26
|
+
"icon-sm": "size-8",
|
|
27
|
+
"icon-lg": "size-10"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
defaultVariants: {
|
|
31
|
+
variant: "default",
|
|
32
|
+
size: "default"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
function l({
|
|
37
|
+
className: e,
|
|
38
|
+
variant: t = "default",
|
|
39
|
+
size: i = "default",
|
|
40
|
+
asChild: n = !1,
|
|
41
|
+
...o
|
|
42
|
+
}) {
|
|
43
|
+
return /* @__PURE__ */ r(
|
|
44
|
+
n ? s : "button",
|
|
45
|
+
{
|
|
46
|
+
"data-slot": "button",
|
|
47
|
+
"data-variant": t,
|
|
48
|
+
"data-size": i,
|
|
49
|
+
className: g(v({ variant: t, size: i, className: e })),
|
|
50
|
+
...o
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
const k = ({ children: e }) => /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(l, { children: e }) });
|
|
55
|
+
export {
|
|
56
|
+
k as CustomButton
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/lib/utils.ts","../src/components/ui/button.tsx","../src/components/CustomButton.tsx"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60\",\n outline:\n \"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost:\n \"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2 has-[>svg]:px-3\",\n sm: \"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5\",\n lg: \"h-10 rounded-md px-6 has-[>svg]:px-4\",\n icon: \"size-9\",\n \"icon-sm\": \"size-8\",\n \"icon-lg\": \"size-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nfunction Button({\n className,\n variant = \"default\",\n size = \"default\",\n asChild = false,\n ...props\n}: React.ComponentProps<\"button\"> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean\n }) {\n const Comp = asChild ? Slot : \"button\"\n\n return (\n <Comp\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={cn(buttonVariants({ variant, size, className }))}\n {...props}\n />\n )\n}\n\nexport { Button, buttonVariants }\n","import { Button } from \"./ui/button\"\n\nexport const CustomButton = ({ children }: { children: React.ReactNode }) => {\n return (\n <>\n <Button>{children}</Button>\n </>\n )\n}\n"],"names":["cn","inputs","twMerge","clsx","buttonVariants","cva","Button","className","variant","size","asChild","props","jsx","Slot","CustomButton","children","Fragment"],"mappings":";;;;;AAGO,SAASA,KAAMC,GAAsB;AAC1C,SAAOC,EAAQC,EAAKF,CAAM,CAAC;AAC7B;ACCA,MAAMG,IAAiBC;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,aACE;AAAA,QACF,SACE;AAAA,QACF,WACE;AAAA,QACF,OACE;AAAA,QACF,MAAM;AAAA,MAAA;AAAA,MAER,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,QACN,WAAW;AAAA,QACX,WAAW;AAAA,MAAA;AAAA,IACb;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IAAA;AAAA,EACR;AAEJ;AAEA,SAASC,EAAO;AAAA,EACd,WAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,MAAAC,IAAO;AAAA,EACP,SAAAC,IAAU;AAAA,EACV,GAAGC;AACL,GAGK;AAGH,SACE,gBAAAC;AAAA,IAHWF,IAAUG,IAAO;AAAA,IAG3B;AAAA,MACC,aAAU;AAAA,MACV,gBAAcL;AAAA,MACd,aAAWC;AAAA,MACX,WAAWT,EAAGI,EAAe,EAAE,SAAAI,GAAS,MAAAC,GAAM,WAAAF,EAAA,CAAW,CAAC;AAAA,MACzD,GAAGI;AAAA,IAAA;AAAA,EAAA;AAGV;ACzDO,MAAMG,IAAe,CAAC,EAAE,UAAAC,QAE3B,gBAAAH,EAAAI,GAAA,EACE,UAAA,gBAAAJ,EAACN,GAAA,EAAQ,UAAAS,EAAA,CAAS,GACpB;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sykoramaros/marosh-components",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.mjs",
|
|
13
|
+
"require": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./styles.css": "./dist/style.css"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"dev": "bun run vite",
|
|
23
|
+
"build": "bun run vite build",
|
|
24
|
+
"lint": "bun run eslint .",
|
|
25
|
+
"preview": "bun run vite preview",
|
|
26
|
+
"prepublishOnly": "bun run build"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
30
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
34
|
+
"ajv": "^8.17.1",
|
|
35
|
+
"class-variance-authority": "^0.7.1",
|
|
36
|
+
"clsx": "^2.1.1",
|
|
37
|
+
"lucide-react": "^0.562.0",
|
|
38
|
+
"tailwind-merge": "^3.4.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@eslint/js": "^9.39.1",
|
|
42
|
+
"@tailwindcss/vite": "^4.1.18",
|
|
43
|
+
"@types/node": "^25.0.3",
|
|
44
|
+
"@types/react": "^19.2.5",
|
|
45
|
+
"@types/react-dom": "^19.2.3",
|
|
46
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
47
|
+
"autoprefixer": "^10.4.23",
|
|
48
|
+
"eslint": "^9.39.1",
|
|
49
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
50
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
51
|
+
"globals": "^16.5.0",
|
|
52
|
+
"postcss": "^8.5.6",
|
|
53
|
+
"react": "^19.2.0",
|
|
54
|
+
"react-dom": "^19.2.0",
|
|
55
|
+
"tailwindcss": "^4.0.0",
|
|
56
|
+
"tw-animate-css": "^1.4.0",
|
|
57
|
+
"typescript": "~5.9.3",
|
|
58
|
+
"typescript-eslint": "^8.46.4",
|
|
59
|
+
"vite": "^7.2.4",
|
|
60
|
+
"vite-plugin-dts": "^4.5.4"
|
|
61
|
+
},
|
|
62
|
+
"keywords": [
|
|
63
|
+
"react",
|
|
64
|
+
"components",
|
|
65
|
+
"ui",
|
|
66
|
+
"tailwind",
|
|
67
|
+
"shadcn"
|
|
68
|
+
],
|
|
69
|
+
"author": "Maros Sykora",
|
|
70
|
+
"license": "MIT",
|
|
71
|
+
"repository": {
|
|
72
|
+
"type": "git",
|
|
73
|
+
"url": "https://github.com/sykoramaros/marosh-components.git"
|
|
74
|
+
},
|
|
75
|
+
"bugs": {
|
|
76
|
+
"url": "https://github.com/sykoramaros/marosh-components/issues"
|
|
77
|
+
},
|
|
78
|
+
"homepage": "https://github.com/sykoramaros/marosh-components#readme"
|
|
79
|
+
}
|