@mijn-ui/react-accordion 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 +3 -3
package/dist/index.js
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
// src/accordion.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 { ChevronDownIcon } from "@mijn-ui/shared-icons";
|
|
10
11
|
import * as RadixAccordion from "@radix-ui/react-accordion";
|
|
11
|
-
import {
|
|
12
|
+
import { tv } from "tailwind-variants";
|
|
12
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
14
|
var accordionStyles = tv({
|
|
14
15
|
slots: {
|
|
@@ -42,7 +43,7 @@ var Accordion = ({
|
|
|
42
43
|
return /* @__PURE__ */ jsx(AccordionProvider, { value: { classNames, unstyled, styles }, children: /* @__PURE__ */ jsx(
|
|
43
44
|
RadixAccordion.Root,
|
|
44
45
|
{
|
|
45
|
-
className: base({ className:
|
|
46
|
+
className: base({ className: cn(classNames?.base, className) }),
|
|
46
47
|
...props
|
|
47
48
|
}
|
|
48
49
|
) });
|
|
@@ -56,7 +57,7 @@ var AccordionItem = ({
|
|
|
56
57
|
return /* @__PURE__ */ jsx(
|
|
57
58
|
RadixAccordion.Item,
|
|
58
59
|
{
|
|
59
|
-
className: item({ className:
|
|
60
|
+
className: item({ className: cn(classNames?.item, className) }),
|
|
60
61
|
...props
|
|
61
62
|
}
|
|
62
63
|
);
|
|
@@ -82,7 +83,7 @@ var AccordionTrigger = ({
|
|
|
82
83
|
RadixAccordion.Trigger,
|
|
83
84
|
{
|
|
84
85
|
className: trigger({
|
|
85
|
-
className:
|
|
86
|
+
className: cn(classNames?.trigger, className)
|
|
86
87
|
}),
|
|
87
88
|
...props,
|
|
88
89
|
children: [
|
|
@@ -115,7 +116,7 @@ var AccordionContent = ({
|
|
|
115
116
|
"div",
|
|
116
117
|
{
|
|
117
118
|
className: content({
|
|
118
|
-
className:
|
|
119
|
+
className: cn(classNames?.content, className)
|
|
119
120
|
}),
|
|
120
121
|
children
|
|
121
122
|
}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/accordion.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/accordion.tsx":{"bytes":5888,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"@radix-ui/react-accordion","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":28,"imports":[{"path":"src/accordion.tsx","kind":"import-statement","original":"./accordion"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"@radix-ui/react-accordion","kind":"import-statement","external":true},{"path":"tailwind-variants","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Accordion","AccordionContent","AccordionItem","AccordionTrigger","accordionStyles","useAccordionStyles"],"entryPoint":"src/index.ts","inputs":{"src/accordion.tsx":{"bytesInOutput":3435},"src/index.ts":{"bytesInOutput":0}},"bytes":3593}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mijn-ui/react-accordion",
|
|
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,7 +25,7 @@
|
|
|
25
25
|
"@types/react-dom": "^19.0.0",
|
|
26
26
|
"react": "19.0.0",
|
|
27
27
|
"react-dom": "19.0.0",
|
|
28
|
-
"@mijn-ui/react-core": "0.
|
|
28
|
+
"@mijn-ui/react-core": "0.4.0",
|
|
29
29
|
"eslint-config-custom": "0.0.1",
|
|
30
30
|
"tsconfig": "0.0.0",
|
|
31
31
|
"tsup-config": "0.0.0"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@mijn-ui/shared-icons": "0.1.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@mijn-ui/react-core": "^0.
|
|
38
|
+
"@mijn-ui/react-core": "^0.4.0",
|
|
39
39
|
"tailwind-merge": "^3.0.0",
|
|
40
40
|
"tailwind-variants": "^3.0.0",
|
|
41
41
|
"react": "^19.0",
|