@mijn-ui/react-tabs 0.3.0 → 0.4.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/dist/index.js +6 -5
- package/dist/metafile-esm.json +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
// src/tabs.tsx
|
|
4
4
|
import {
|
|
5
|
+
cn,
|
|
5
6
|
createContext,
|
|
6
7
|
createTVUnstyledSlots,
|
|
7
8
|
useTVUnstyled
|
|
8
9
|
} from "@mijn-ui/react-core";
|
|
9
10
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
10
|
-
import {
|
|
11
|
+
import { tv } from "tailwind-variants";
|
|
11
12
|
import { jsx } from "react/jsx-runtime";
|
|
12
13
|
var tabsStyles = tv({
|
|
13
14
|
slots: {
|
|
@@ -41,7 +42,7 @@ var Tabs = ({
|
|
|
41
42
|
return /* @__PURE__ */ jsx(TabsProvider, { value: { unstyled, styles, classNames }, children: /* @__PURE__ */ jsx(
|
|
42
43
|
TabsPrimitive.Root,
|
|
43
44
|
{
|
|
44
|
-
className: base({ className:
|
|
45
|
+
className: base({ className: cn(classNames?.base, className) }),
|
|
45
46
|
...props,
|
|
46
47
|
children
|
|
47
48
|
}
|
|
@@ -53,7 +54,7 @@ var TabsList = ({ className, unstyled, ...props }) => {
|
|
|
53
54
|
TabsPrimitive.List,
|
|
54
55
|
{
|
|
55
56
|
className: list({
|
|
56
|
-
className:
|
|
57
|
+
className: cn(classNames?.list, className)
|
|
57
58
|
}),
|
|
58
59
|
...props
|
|
59
60
|
}
|
|
@@ -65,7 +66,7 @@ var TabsTrigger = ({ className, unstyled, ...props }) => {
|
|
|
65
66
|
TabsPrimitive.Trigger,
|
|
66
67
|
{
|
|
67
68
|
className: trigger({
|
|
68
|
-
className:
|
|
69
|
+
className: cn(classNames?.trigger, className)
|
|
69
70
|
}),
|
|
70
71
|
...props
|
|
71
72
|
}
|
|
@@ -77,7 +78,7 @@ var TabsContent = ({ className, unstyled, ...props }) => {
|
|
|
77
78
|
TabsPrimitive.Content,
|
|
78
79
|
{
|
|
79
80
|
className: content({
|
|
80
|
-
className:
|
|
81
|
+
className: cn(classNames?.content, className)
|
|
81
82
|
}),
|
|
82
83
|
...props
|
|
83
84
|
}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/tabs.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/tabs.tsx":{"bytes":5179,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"@radix-ui/react-tabs","kind":"import-statement","external":true},{"path":"tailwind-variants","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":23,"imports":[{"path":"src/tabs.tsx","kind":"import-statement","original":"./tabs"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"@radix-ui/react-tabs","kind":"import-statement","external":true},{"path":"tailwind-variants","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Tabs","TabsContent","TabsList","TabsTrigger","tabsStyles","useTabsContext","useTabsStyles"],"entryPoint":"src/index.ts","inputs":{"src/tabs.tsx":{"bytesInOutput":2784},"src/index.ts":{"bytesInOutput":0}},"bytes":2925}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mijn-ui/react-tabs",
|
|
3
3
|
"author": "Htet Aung Lin<htetaunglin.coder@gmail.com>",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"homepage": "https://mijn-ui.vercel.app",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"@next/eslint-plugin-next": "^15.0.3",
|
|
26
26
|
"@types/react": "^19.0.0",
|
|
27
27
|
"@types/react-dom": "^19.0.0",
|
|
28
|
-
"@mijn-ui/react-button": "0.
|
|
29
|
-
"@mijn-ui/react-card": "0.
|
|
30
|
-
"@mijn-ui/react-input": "0.
|
|
31
|
-
"@mijn-ui/react-core": "0.
|
|
28
|
+
"@mijn-ui/react-button": "0.4.0",
|
|
29
|
+
"@mijn-ui/react-card": "0.4.0",
|
|
30
|
+
"@mijn-ui/react-input": "0.4.0",
|
|
31
|
+
"@mijn-ui/react-core": "0.4.0",
|
|
32
32
|
"eslint-config-custom": "0.0.1",
|
|
33
33
|
"tsconfig": "0.0.0",
|
|
34
34
|
"tsup-config": "0.0.0"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": "^19.0",
|
|
41
41
|
"react-dom": "^19.0",
|
|
42
|
-
"@mijn-ui/react-core": "^0.
|
|
42
|
+
"@mijn-ui/react-core": "^0.4.0",
|
|
43
43
|
"tailwind-merge": "^3.0.0",
|
|
44
44
|
"tailwind-variants": "^3.0.0"
|
|
45
45
|
},
|