@mijn-ui/react-accordion 0.0.11 → 0.0.13
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 +18 -18
- package/dist/index.js +6 -8
- package/dist/metafile-esm.json +1 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
3
|
+
import * as tailwind_merge from 'tailwind-merge';
|
|
4
|
+
import * as _mijn_ui_react_theme from '@mijn-ui/react-theme';
|
|
5
|
+
import { AccordionVariantProps, UnstyledProps, UnstyledComponentWithSlots, AccordionSlots } from '@mijn-ui/react-theme';
|
|
5
6
|
import * as React from 'react';
|
|
6
7
|
import * as RadixAccordion from '@radix-ui/react-accordion';
|
|
7
|
-
import { AccordionVariantProps, AccordionSlots } from '@mijn-ui/react-theme';
|
|
8
8
|
|
|
9
9
|
type AccordionBaseProps = UnstyledComponentWithSlots<AccordionSlots>;
|
|
10
10
|
declare const useAccordionStyles: (unstyledOverride?: boolean) => {
|
|
11
|
-
classNames:
|
|
11
|
+
classNames: _mijn_ui_react_theme.SlotsToClasses<"base" | "item" | "triggerWrapper" | "trigger" | "icon" | "contentWrapper" | "content"> | undefined;
|
|
12
12
|
isUnstyled: boolean | undefined;
|
|
13
13
|
base: (slotProps?: ({
|
|
14
|
-
variant?: "default" | "
|
|
15
|
-
} & tailwind_variants.ClassProp<
|
|
14
|
+
variant?: "default" | "filled" | "outlined" | undefined;
|
|
15
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
16
16
|
item: (slotProps?: ({
|
|
17
|
-
variant?: "default" | "
|
|
18
|
-
} & tailwind_variants.ClassProp<
|
|
17
|
+
variant?: "default" | "filled" | "outlined" | undefined;
|
|
18
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
19
19
|
triggerWrapper: (slotProps?: ({
|
|
20
|
-
variant?: "default" | "
|
|
21
|
-
} & tailwind_variants.ClassProp<
|
|
20
|
+
variant?: "default" | "filled" | "outlined" | undefined;
|
|
21
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
22
22
|
trigger: (slotProps?: ({
|
|
23
|
-
variant?: "default" | "
|
|
24
|
-
} & tailwind_variants.ClassProp<
|
|
23
|
+
variant?: "default" | "filled" | "outlined" | undefined;
|
|
24
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
25
25
|
icon: (slotProps?: ({
|
|
26
|
-
variant?: "default" | "
|
|
27
|
-
} & tailwind_variants.ClassProp<
|
|
26
|
+
variant?: "default" | "filled" | "outlined" | undefined;
|
|
27
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
28
28
|
contentWrapper: (slotProps?: ({
|
|
29
|
-
variant?: "default" | "
|
|
30
|
-
} & tailwind_variants.ClassProp<
|
|
29
|
+
variant?: "default" | "filled" | "outlined" | undefined;
|
|
30
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
31
31
|
content: (slotProps?: ({
|
|
32
|
-
variant?: "default" | "
|
|
33
|
-
} & tailwind_variants.ClassProp<
|
|
32
|
+
variant?: "default" | "filled" | "outlined" | undefined;
|
|
33
|
+
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
|
|
34
34
|
};
|
|
35
35
|
type AccordionProps = React.ComponentPropsWithRef<typeof RadixAccordion.Root> & AccordionVariantProps & AccordionBaseProps;
|
|
36
36
|
declare const Accordion: ({ className, classNames, unstyled, variant, ...props }: AccordionProps) => react_jsx_runtime.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
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";
|
|
4
6
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
accordionStyles,
|
|
8
|
+
cn
|
|
9
|
+
} from "@mijn-ui/react-theme";
|
|
7
10
|
import { createContext } from "@mijn-ui/react-utilities";
|
|
8
|
-
import * as RadixAccordion from "@radix-ui/react-accordion";
|
|
9
11
|
import { ChevronDownIcon } from "@mijn-ui/shared-icons";
|
|
10
|
-
import
|
|
11
|
-
accordionStyles
|
|
12
|
-
} from "@mijn-ui/react-theme";
|
|
13
|
-
import { useTVUnstyled } from "@mijn-ui/react-hooks";
|
|
14
|
-
import { cn } from "@mijn-ui/react-utilities";
|
|
12
|
+
import * as RadixAccordion from "@radix-ui/react-accordion";
|
|
15
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
14
|
var [AccordionProvider, useAccordionContext] = createContext({
|
|
17
15
|
name: "AccordionContext",
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/accordion.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/accordion.tsx":{"bytes":5478,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"@mijn-ui/react-hooks","kind":"import-statement","external":true},{"path":"@mijn-ui/react-theme","kind":"import-statement","external":true},{"path":"@mijn-ui/react-utilities","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":"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/react-hooks","kind":"import-statement","external":true},{"path":"@mijn-ui/react-theme","kind":"import-statement","external":true},{"path":"@mijn-ui/react-utilities","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":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Accordion","AccordionContent","AccordionItem","AccordionTrigger","useAccordionStyles"],"entryPoint":"src/index.ts","inputs":{"src/accordion.tsx":{"bytesInOutput":2935},"src/index.ts":{"bytesInOutput":0}},"bytes":3059}}}
|
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.0.
|
|
4
|
+
"version": "0.0.13",
|
|
5
5
|
"homepage": "https://mijn-ui.vercel.app",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -25,21 +25,21 @@
|
|
|
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.0.
|
|
29
|
-
"@mijn-ui/react-theme": "0.0.
|
|
28
|
+
"@mijn-ui/react-core": "0.0.4",
|
|
29
|
+
"@mijn-ui/react-theme": "0.0.9",
|
|
30
30
|
"eslint-config-custom": "0.0.1",
|
|
31
31
|
"tsconfig": "0.0.0",
|
|
32
32
|
"tsup-config": "0.0.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@radix-ui/react-accordion": "^1.2.2",
|
|
36
|
-
"@mijn-ui/shared-icons": "0.0.
|
|
37
|
-
"@mijn-ui/react-utilities": "0.0.
|
|
38
|
-
"@mijn-ui/react-hooks": "0.0.
|
|
36
|
+
"@mijn-ui/shared-icons": "0.0.4",
|
|
37
|
+
"@mijn-ui/react-utilities": "0.0.9",
|
|
38
|
+
"@mijn-ui/react-hooks": "0.0.12"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@mijn-ui/react-theme": "^0.0.
|
|
42
|
-
"@mijn-ui/react-core": "^0.0.
|
|
41
|
+
"@mijn-ui/react-theme": "^0.0.9",
|
|
42
|
+
"@mijn-ui/react-core": "^0.0.4",
|
|
43
43
|
"react": "^19.0",
|
|
44
44
|
"react-dom": "^19.0"
|
|
45
45
|
},
|