@mijn-ui/react-accordion 0.2.0 → 0.3.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.d.ts +121 -49
- package/dist/index.js +25 -10
- package/dist/metafile-esm.json +1 -1
- package/package.json +6 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,136 +1,208 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _mijn_ui_react_core from '@mijn-ui/react-core';
|
|
3
|
+
import { UnstyledComponentWithSlots } from '@mijn-ui/react-core';
|
|
2
4
|
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
+
import { VariantProps } from 'tailwind-variants';
|
|
6
|
+
import * as tailwind_merge from 'tailwind-merge';
|
|
5
7
|
import * as React from 'react';
|
|
6
8
|
import * as RadixAccordion from '@radix-ui/react-accordion';
|
|
7
9
|
|
|
10
|
+
declare const accordionStyles: tailwind_variants.TVReturnType<{
|
|
11
|
+
[key: string]: {
|
|
12
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
13
|
+
base?: tailwind_merge.ClassNameValue;
|
|
14
|
+
item?: tailwind_merge.ClassNameValue;
|
|
15
|
+
triggerWrapper?: tailwind_merge.ClassNameValue;
|
|
16
|
+
trigger?: tailwind_merge.ClassNameValue;
|
|
17
|
+
icon?: tailwind_merge.ClassNameValue;
|
|
18
|
+
contentWrapper?: tailwind_merge.ClassNameValue;
|
|
19
|
+
content?: tailwind_merge.ClassNameValue;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
} | {
|
|
23
|
+
[x: string]: {
|
|
24
|
+
[x: string]: tailwind_merge.ClassNameValue | {
|
|
25
|
+
base?: tailwind_merge.ClassNameValue;
|
|
26
|
+
item?: tailwind_merge.ClassNameValue;
|
|
27
|
+
triggerWrapper?: tailwind_merge.ClassNameValue;
|
|
28
|
+
trigger?: tailwind_merge.ClassNameValue;
|
|
29
|
+
icon?: tailwind_merge.ClassNameValue;
|
|
30
|
+
contentWrapper?: tailwind_merge.ClassNameValue;
|
|
31
|
+
content?: tailwind_merge.ClassNameValue;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
} | {}, {
|
|
35
|
+
base: string;
|
|
36
|
+
item: string;
|
|
37
|
+
triggerWrapper: string;
|
|
38
|
+
trigger: string;
|
|
39
|
+
icon: string;
|
|
40
|
+
contentWrapper: string;
|
|
41
|
+
content: string;
|
|
42
|
+
}, undefined, {
|
|
43
|
+
[key: string]: {
|
|
44
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
45
|
+
base?: tailwind_merge.ClassNameValue;
|
|
46
|
+
item?: tailwind_merge.ClassNameValue;
|
|
47
|
+
triggerWrapper?: tailwind_merge.ClassNameValue;
|
|
48
|
+
trigger?: tailwind_merge.ClassNameValue;
|
|
49
|
+
icon?: tailwind_merge.ClassNameValue;
|
|
50
|
+
contentWrapper?: tailwind_merge.ClassNameValue;
|
|
51
|
+
content?: tailwind_merge.ClassNameValue;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
} | {}, {
|
|
55
|
+
base: string;
|
|
56
|
+
item: string;
|
|
57
|
+
triggerWrapper: string;
|
|
58
|
+
trigger: string;
|
|
59
|
+
icon: string;
|
|
60
|
+
contentWrapper: string;
|
|
61
|
+
content: string;
|
|
62
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
63
|
+
base: string;
|
|
64
|
+
item: string;
|
|
65
|
+
triggerWrapper: string;
|
|
66
|
+
trigger: string;
|
|
67
|
+
icon: string;
|
|
68
|
+
contentWrapper: string;
|
|
69
|
+
content: string;
|
|
70
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
71
|
+
type AccordionVariantProps = VariantProps<typeof accordionStyles>;
|
|
72
|
+
type AccordionSlots = keyof ReturnType<typeof accordionStyles>;
|
|
73
|
+
|
|
8
74
|
type AccordionBaseProps = UnstyledComponentWithSlots<AccordionSlots>;
|
|
9
75
|
declare const useAccordionStyles: (unstyledOverride?: boolean) => {
|
|
10
|
-
classNames:
|
|
76
|
+
classNames: _mijn_ui_react_core.SlotsToClasses<"base" | "item" | "triggerWrapper" | "trigger" | "icon" | "contentWrapper" | "content"> | undefined;
|
|
11
77
|
isUnstyled: boolean | undefined;
|
|
12
|
-
base: (slotProps?: ({
|
|
78
|
+
base: (slotProps?: ({
|
|
13
79
|
[x: string]: string | number | undefined;
|
|
14
80
|
[x: number]: string | number | undefined;
|
|
15
|
-
} & tailwind_variants.ClassProp<
|
|
81
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
16
82
|
[x: string]: string | number | undefined;
|
|
17
83
|
[x: number]: string | number | undefined;
|
|
18
|
-
} & tailwind_variants.ClassProp<
|
|
84
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
19
85
|
[x: string]: string | number | undefined;
|
|
20
86
|
[x: number]: string | number | undefined;
|
|
21
|
-
} & tailwind_variants.ClassProp<
|
|
87
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
22
88
|
[x: string]: string | number | undefined;
|
|
23
89
|
[x: number]: string | number | undefined;
|
|
24
|
-
} & tailwind_variants.ClassProp<
|
|
90
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
25
91
|
[x: string]: string | number | undefined;
|
|
26
92
|
[x: number]: string | number | undefined;
|
|
27
|
-
} & tailwind_variants.ClassProp<tailwind_variants.
|
|
28
|
-
item: (slotProps?: ({
|
|
93
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
94
|
+
item: (slotProps?: ({
|
|
29
95
|
[x: string]: string | number | undefined;
|
|
30
96
|
[x: number]: string | number | undefined;
|
|
31
|
-
} & tailwind_variants.ClassProp<
|
|
97
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
32
98
|
[x: string]: string | number | undefined;
|
|
33
99
|
[x: number]: string | number | undefined;
|
|
34
|
-
} & tailwind_variants.ClassProp<
|
|
100
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
35
101
|
[x: string]: string | number | undefined;
|
|
36
102
|
[x: number]: string | number | undefined;
|
|
37
|
-
} & tailwind_variants.ClassProp<
|
|
103
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
38
104
|
[x: string]: string | number | undefined;
|
|
39
105
|
[x: number]: string | number | undefined;
|
|
40
|
-
} & tailwind_variants.ClassProp<
|
|
106
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
41
107
|
[x: string]: string | number | undefined;
|
|
42
108
|
[x: number]: string | number | undefined;
|
|
43
|
-
} & tailwind_variants.ClassProp<tailwind_variants.
|
|
44
|
-
triggerWrapper: (slotProps?: ({
|
|
109
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
110
|
+
triggerWrapper: (slotProps?: ({
|
|
45
111
|
[x: string]: string | number | undefined;
|
|
46
112
|
[x: number]: string | number | undefined;
|
|
47
|
-
} & tailwind_variants.ClassProp<
|
|
113
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
48
114
|
[x: string]: string | number | undefined;
|
|
49
115
|
[x: number]: string | number | undefined;
|
|
50
|
-
} & tailwind_variants.ClassProp<
|
|
116
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
51
117
|
[x: string]: string | number | undefined;
|
|
52
118
|
[x: number]: string | number | undefined;
|
|
53
|
-
} & tailwind_variants.ClassProp<
|
|
119
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
54
120
|
[x: string]: string | number | undefined;
|
|
55
121
|
[x: number]: string | number | undefined;
|
|
56
|
-
} & tailwind_variants.ClassProp<
|
|
122
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
57
123
|
[x: string]: string | number | undefined;
|
|
58
124
|
[x: number]: string | number | undefined;
|
|
59
|
-
} & tailwind_variants.ClassProp<tailwind_variants.
|
|
60
|
-
trigger: (slotProps?: ({
|
|
125
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
126
|
+
trigger: (slotProps?: ({
|
|
61
127
|
[x: string]: string | number | undefined;
|
|
62
128
|
[x: number]: string | number | undefined;
|
|
63
|
-
} & tailwind_variants.ClassProp<
|
|
129
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
64
130
|
[x: string]: string | number | undefined;
|
|
65
131
|
[x: number]: string | number | undefined;
|
|
66
|
-
} & tailwind_variants.ClassProp<
|
|
132
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
67
133
|
[x: string]: string | number | undefined;
|
|
68
134
|
[x: number]: string | number | undefined;
|
|
69
|
-
} & tailwind_variants.ClassProp<
|
|
135
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
70
136
|
[x: string]: string | number | undefined;
|
|
71
137
|
[x: number]: string | number | undefined;
|
|
72
|
-
} & tailwind_variants.ClassProp<
|
|
138
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
73
139
|
[x: string]: string | number | undefined;
|
|
74
140
|
[x: number]: string | number | undefined;
|
|
75
|
-
} & tailwind_variants.ClassProp<tailwind_variants.
|
|
76
|
-
icon: (slotProps?: ({
|
|
141
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
142
|
+
icon: (slotProps?: ({
|
|
77
143
|
[x: string]: string | number | undefined;
|
|
78
144
|
[x: number]: string | number | undefined;
|
|
79
|
-
} & tailwind_variants.ClassProp<
|
|
145
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
80
146
|
[x: string]: string | number | undefined;
|
|
81
147
|
[x: number]: string | number | undefined;
|
|
82
|
-
} & tailwind_variants.ClassProp<
|
|
148
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
83
149
|
[x: string]: string | number | undefined;
|
|
84
150
|
[x: number]: string | number | undefined;
|
|
85
|
-
} & tailwind_variants.ClassProp<
|
|
151
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
86
152
|
[x: string]: string | number | undefined;
|
|
87
153
|
[x: number]: string | number | undefined;
|
|
88
|
-
} & tailwind_variants.ClassProp<
|
|
154
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
89
155
|
[x: string]: string | number | undefined;
|
|
90
156
|
[x: number]: string | number | undefined;
|
|
91
|
-
} & tailwind_variants.ClassProp<tailwind_variants.
|
|
92
|
-
contentWrapper: (slotProps?: ({
|
|
157
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
158
|
+
contentWrapper: (slotProps?: ({
|
|
93
159
|
[x: string]: string | number | undefined;
|
|
94
160
|
[x: number]: string | number | undefined;
|
|
95
|
-
} & tailwind_variants.ClassProp<
|
|
161
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
96
162
|
[x: string]: string | number | undefined;
|
|
97
163
|
[x: number]: string | number | undefined;
|
|
98
|
-
} & tailwind_variants.ClassProp<
|
|
164
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
99
165
|
[x: string]: string | number | undefined;
|
|
100
166
|
[x: number]: string | number | undefined;
|
|
101
|
-
} & tailwind_variants.ClassProp<
|
|
167
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
102
168
|
[x: string]: string | number | undefined;
|
|
103
169
|
[x: number]: string | number | undefined;
|
|
104
|
-
} & tailwind_variants.ClassProp<
|
|
170
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
105
171
|
[x: string]: string | number | undefined;
|
|
106
172
|
[x: number]: string | number | undefined;
|
|
107
|
-
} & tailwind_variants.ClassProp<tailwind_variants.
|
|
108
|
-
content: (slotProps?: ({
|
|
173
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
174
|
+
content: (slotProps?: ({
|
|
109
175
|
[x: string]: string | number | undefined;
|
|
110
176
|
[x: number]: string | number | undefined;
|
|
111
|
-
} & tailwind_variants.ClassProp<
|
|
177
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
112
178
|
[x: string]: string | number | undefined;
|
|
113
179
|
[x: number]: string | number | undefined;
|
|
114
|
-
} & tailwind_variants.ClassProp<
|
|
180
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
115
181
|
[x: string]: string | number | undefined;
|
|
116
182
|
[x: number]: string | number | undefined;
|
|
117
|
-
} & tailwind_variants.ClassProp<
|
|
183
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
118
184
|
[x: string]: string | number | undefined;
|
|
119
185
|
[x: number]: string | number | undefined;
|
|
120
|
-
} & tailwind_variants.ClassProp<
|
|
186
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({
|
|
121
187
|
[x: string]: string | number | undefined;
|
|
122
188
|
[x: number]: string | number | undefined;
|
|
123
|
-
} & tailwind_variants.ClassProp<tailwind_variants.
|
|
189
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | ({} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
124
190
|
};
|
|
125
191
|
type AccordionProps = React.ComponentPropsWithRef<typeof RadixAccordion.Root> & AccordionVariantProps & AccordionBaseProps;
|
|
126
192
|
declare const Accordion: ({ className, classNames, unstyled, ...props }: AccordionProps) => react_jsx_runtime.JSX.Element;
|
|
127
|
-
type AccordionItemProps = React.ComponentPropsWithRef<typeof RadixAccordion.Item> &
|
|
193
|
+
type AccordionItemProps = React.ComponentPropsWithRef<typeof RadixAccordion.Item> & {
|
|
194
|
+
unstyled?: boolean;
|
|
195
|
+
};
|
|
128
196
|
declare const AccordionItem: ({ className, unstyled, ...props }: AccordionItemProps) => react_jsx_runtime.JSX.Element;
|
|
129
|
-
type AccordionTriggerProps = React.ComponentPropsWithRef<typeof RadixAccordion.Trigger> &
|
|
197
|
+
type AccordionTriggerProps = React.ComponentPropsWithRef<typeof RadixAccordion.Trigger> & {
|
|
198
|
+
unstyled?: boolean;
|
|
199
|
+
} & {
|
|
130
200
|
icon?: React.ReactNode;
|
|
131
201
|
};
|
|
132
202
|
declare const AccordionTrigger: ({ className, icon, unstyled, children, ...props }: AccordionTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
133
|
-
type AccordionContentProps = React.ComponentPropsWithRef<typeof RadixAccordion.Content> &
|
|
203
|
+
type AccordionContentProps = React.ComponentPropsWithRef<typeof RadixAccordion.Content> & {
|
|
204
|
+
unstyled?: boolean;
|
|
205
|
+
};
|
|
134
206
|
declare const AccordionContent: ({ className, unstyled, children, ...props }: AccordionContentProps) => react_jsx_runtime.JSX.Element;
|
|
135
207
|
|
|
136
|
-
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, useAccordionStyles };
|
|
208
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionSlots, AccordionTrigger, type AccordionTriggerProps, type AccordionVariantProps, accordionStyles, useAccordionStyles };
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
// src/accordion.tsx
|
|
4
|
-
import { createTVUnstyledSlots } from "@mijn-ui/react-core";
|
|
5
|
-
import { useTVUnstyled } from "@mijn-ui/react-hooks";
|
|
6
4
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
createContext,
|
|
6
|
+
createTVUnstyledSlots,
|
|
7
|
+
useTVUnstyled
|
|
8
|
+
} from "@mijn-ui/react-core";
|
|
11
9
|
import { ChevronDownIcon } from "@mijn-ui/shared-icons";
|
|
12
10
|
import * as RadixAccordion from "@radix-ui/react-accordion";
|
|
11
|
+
import { cnBase, tv } from "tailwind-variants";
|
|
13
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
var accordionStyles = tv({
|
|
14
|
+
slots: {
|
|
15
|
+
base: "",
|
|
16
|
+
item: "border-b-outline-default border-b",
|
|
17
|
+
triggerWrapper: "",
|
|
18
|
+
trigger: "group flex w-full items-center justify-between py-4 text-sm font-medium leading-none hover:underline",
|
|
19
|
+
icon: "text-fg-secondary size-4 shrink-0 duration-300 ease-in-out group-data-[state=open]:rotate-180",
|
|
20
|
+
contentWrapper: "data-[state=closed]:animate-accordion-close data-[state=open]:animate-accordion-open text-fg-secondary overflow-hidden text-sm transition-[height]",
|
|
21
|
+
content: "pb-4 pt-0 text-sm leading-tight"
|
|
22
|
+
}
|
|
23
|
+
});
|
|
14
24
|
var [AccordionProvider, useAccordionContext] = createContext({
|
|
15
25
|
name: "AccordionContext",
|
|
16
26
|
strict: true,
|
|
@@ -32,7 +42,7 @@ var Accordion = ({
|
|
|
32
42
|
return /* @__PURE__ */ jsx(AccordionProvider, { value: { classNames, unstyled, styles }, children: /* @__PURE__ */ jsx(
|
|
33
43
|
RadixAccordion.Root,
|
|
34
44
|
{
|
|
35
|
-
className: base({ className:
|
|
45
|
+
className: base({ className: cnBase(classNames?.base, className) }),
|
|
36
46
|
...props
|
|
37
47
|
}
|
|
38
48
|
) });
|
|
@@ -46,7 +56,7 @@ var AccordionItem = ({
|
|
|
46
56
|
return /* @__PURE__ */ jsx(
|
|
47
57
|
RadixAccordion.Item,
|
|
48
58
|
{
|
|
49
|
-
className: item({ className:
|
|
59
|
+
className: item({ className: cnBase(classNames?.item, className) }),
|
|
50
60
|
...props
|
|
51
61
|
}
|
|
52
62
|
);
|
|
@@ -71,7 +81,9 @@ var AccordionTrigger = ({
|
|
|
71
81
|
children: /* @__PURE__ */ jsxs(
|
|
72
82
|
RadixAccordion.Trigger,
|
|
73
83
|
{
|
|
74
|
-
className: trigger({
|
|
84
|
+
className: trigger({
|
|
85
|
+
className: cnBase(classNames?.trigger, className)
|
|
86
|
+
}),
|
|
75
87
|
...props,
|
|
76
88
|
children: [
|
|
77
89
|
children,
|
|
@@ -102,7 +114,9 @@ var AccordionContent = ({
|
|
|
102
114
|
children: /* @__PURE__ */ jsx(
|
|
103
115
|
"div",
|
|
104
116
|
{
|
|
105
|
-
className: content({
|
|
117
|
+
className: content({
|
|
118
|
+
className: cnBase(classNames?.content, className)
|
|
119
|
+
}),
|
|
106
120
|
children
|
|
107
121
|
}
|
|
108
122
|
)
|
|
@@ -114,5 +128,6 @@ export {
|
|
|
114
128
|
AccordionContent,
|
|
115
129
|
AccordionItem,
|
|
116
130
|
AccordionTrigger,
|
|
131
|
+
accordionStyles,
|
|
117
132
|
useAccordionStyles
|
|
118
133
|
};
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/accordion.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/accordion.tsx":{"bytes":5941,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-core","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":3453},"src/index.ts":{"bytesInOutput":0}},"bytes":3611}}}
|
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.3.0",
|
|
5
5
|
"homepage": "https://mijn-ui.vercel.app",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -25,21 +25,19 @@
|
|
|
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.
|
|
29
|
-
"@mijn-ui/react-theme": "0.2.0",
|
|
28
|
+
"@mijn-ui/react-core": "0.3.0",
|
|
30
29
|
"eslint-config-custom": "0.0.1",
|
|
31
30
|
"tsconfig": "0.0.0",
|
|
32
31
|
"tsup-config": "0.0.0"
|
|
33
32
|
},
|
|
34
33
|
"dependencies": {
|
|
35
34
|
"@radix-ui/react-accordion": "^1.2.2",
|
|
36
|
-
"@mijn-ui/shared-icons": "0.1.0"
|
|
37
|
-
"@mijn-ui/react-utilities": "0.0.9",
|
|
38
|
-
"@mijn-ui/react-hooks": "0.0.18"
|
|
35
|
+
"@mijn-ui/shared-icons": "0.1.0"
|
|
39
36
|
},
|
|
40
37
|
"peerDependencies": {
|
|
41
|
-
"@mijn-ui/react-
|
|
42
|
-
"
|
|
38
|
+
"@mijn-ui/react-core": "^0.3.0",
|
|
39
|
+
"tailwind-merge": "^3.0.0",
|
|
40
|
+
"tailwind-variants": "^3.0.0",
|
|
43
41
|
"react": "^19.0",
|
|
44
42
|
"react-dom": "^19.0"
|
|
45
43
|
},
|