@mijn-ui/react-tabs 0.4.1 → 0.4.3
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 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +14 -10
package/dist/index.js
CHANGED
|
@@ -15,7 +15,8 @@ var tabsStyles = tv({
|
|
|
15
15
|
base: "",
|
|
16
16
|
list: "flex flex-col items-stretch sm:flex-row sm:items-center",
|
|
17
17
|
trigger: [
|
|
18
|
-
"text-fg-secondary hover:bg-bg-secondary focus-visible:bg-bg-secondary active:bg-bg-secondary/70 data-[state=active]:border-b-outline-brand data-[state=active]:text-fg-brand
|
|
18
|
+
"text-fg-secondary hover:bg-bg-secondary focus-visible:bg-bg-secondary active:bg-bg-secondary/70 data-[state=active]:border-b-outline-brand data-[state=active]:text-fg-brand data-[state=active]:hover:text-fg-brand inline-flex h-9 items-center justify-center gap-1.5 border-b border-outline-default px-3 text-sm font-normal leading-none outline-none duration-300 ease-in-out disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-b-2 data-[state=active]:font-medium data-[state=active]:hover:bg-transparent",
|
|
19
|
+
"focus-visible:mijn-focus-ring focus-visible:ring-outline-brand"
|
|
19
20
|
],
|
|
20
21
|
content: "focus-visible:ring-outline-brand mt-2 focus-visible:outline-none focus-visible:ring-1"
|
|
21
22
|
}
|
|
@@ -42,6 +43,7 @@ var Tabs = ({
|
|
|
42
43
|
return /* @__PURE__ */ jsx(TabsProvider, { value: { unstyled, styles, classNames }, children: /* @__PURE__ */ jsx(
|
|
43
44
|
TabsPrimitive.Root,
|
|
44
45
|
{
|
|
46
|
+
"data-slot": "tabs",
|
|
45
47
|
className: base({ className: cn(classNames?.base, className) }),
|
|
46
48
|
...props,
|
|
47
49
|
children
|
|
@@ -53,6 +55,7 @@ var TabsList = ({ className, unstyled, ...props }) => {
|
|
|
53
55
|
return /* @__PURE__ */ jsx(
|
|
54
56
|
TabsPrimitive.List,
|
|
55
57
|
{
|
|
58
|
+
"data-slot": "tabs-list",
|
|
56
59
|
className: list({
|
|
57
60
|
className: cn(classNames?.list, className)
|
|
58
61
|
}),
|
|
@@ -65,6 +68,7 @@ var TabsTrigger = ({ className, unstyled, ...props }) => {
|
|
|
65
68
|
return /* @__PURE__ */ jsx(
|
|
66
69
|
TabsPrimitive.Trigger,
|
|
67
70
|
{
|
|
71
|
+
"data-slot": "tabs-trigger",
|
|
68
72
|
className: trigger({
|
|
69
73
|
className: cn(classNames?.trigger, className)
|
|
70
74
|
}),
|
|
@@ -77,6 +81,7 @@ var TabsContent = ({ className, unstyled, ...props }) => {
|
|
|
77
81
|
return /* @__PURE__ */ jsx(
|
|
78
82
|
TabsPrimitive.Content,
|
|
79
83
|
{
|
|
84
|
+
"data-slot": "tabs-content",
|
|
80
85
|
className: content({
|
|
81
86
|
className: cn(classNames?.content, className)
|
|
82
87
|
}),
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/tabs.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/tabs.tsx":{"bytes":5371,"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":2990},"src/index.ts":{"bytesInOutput":0}},"bytes":3131}}}
|
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.
|
|
4
|
+
"version": "0.4.3",
|
|
5
5
|
"homepage": "https://mijn-ui.vercel.app",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -20,26 +20,29 @@
|
|
|
20
20
|
"exports": "./dist/index.js",
|
|
21
21
|
"types": "./dist/index.d.ts",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"react": "19.0.
|
|
24
|
-
"react-dom": "19.0.
|
|
23
|
+
"react": "19.0.1",
|
|
24
|
+
"react-dom": "19.0.1",
|
|
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
|
-
"@
|
|
29
|
-
"
|
|
30
|
-
"@mijn-ui/react-
|
|
31
|
-
"@mijn-ui/react-
|
|
28
|
+
"@testing-library/react": "^16.1.0",
|
|
29
|
+
"jsdom": "^30.1.3",
|
|
30
|
+
"@mijn-ui/react-button": "0.7.0",
|
|
31
|
+
"@mijn-ui/react-input": "0.6.0",
|
|
32
32
|
"eslint-config-custom": "0.0.1",
|
|
33
|
+
"tsconfig": "0.0.0",
|
|
34
|
+
"@mijn-ui/react-core": "0.6.0",
|
|
33
35
|
"tsup-config": "0.0.0",
|
|
34
|
-
"
|
|
36
|
+
"test-utils": "0.0.0",
|
|
37
|
+
"@mijn-ui/react-card": "0.5.0"
|
|
35
38
|
},
|
|
36
39
|
"dependencies": {
|
|
37
|
-
"@radix-ui/react-tabs": "^1.1
|
|
40
|
+
"@radix-ui/react-tabs": "^1.2.1"
|
|
38
41
|
},
|
|
39
42
|
"peerDependencies": {
|
|
40
43
|
"react": "^19.0",
|
|
41
44
|
"react-dom": "^19.0",
|
|
42
|
-
"@mijn-ui/react-core": "^0.
|
|
45
|
+
"@mijn-ui/react-core": "^0.6.0",
|
|
43
46
|
"tailwind-merge": "^3.0.0",
|
|
44
47
|
"tailwind-variants": "^3.0.0"
|
|
45
48
|
},
|
|
@@ -54,6 +57,7 @@
|
|
|
54
57
|
"scripts": {
|
|
55
58
|
"clean": "rimraf dist .turbo",
|
|
56
59
|
"build": "tsup",
|
|
60
|
+
"test": "vitest run",
|
|
57
61
|
"lint": "eslint .",
|
|
58
62
|
"lint:fix": "eslint . --fix",
|
|
59
63
|
"types:check": "tsc --noEmit"
|