@plumeria/headlessui 17.0.0 → 18.0.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/README.md +5 -5
- package/dist/ContextMenu.d.ts +1 -1
- package/dist/DropdownMenu.d.ts +1 -1
- package/dist/Menubar.d.ts +1 -1
- package/dist/Popover.d.ts +1 -1
- package/dist/Select.d.ts +1 -1
- package/dist/Tooltip.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|

|
|
4
4
|

|
|
5
5
|
|
|
6
|
-
A curated set of essential headless primitives, built on [Radix UI](https://www.radix-ui.com/) and designed to work seamlessly with Plumeria's `
|
|
6
|
+
A curated set of essential headless primitives, built on [Radix UI](https://www.radix-ui.com/) and designed to work seamlessly with Plumeria's `classStyle` abstraction layer.
|
|
7
7
|
|
|
8
|
-
Each component is a pure passthrough — it forwards refs and spreads props onto the underlying Radix primitive. `
|
|
8
|
+
Each component is a pure passthrough — it forwards refs and spreads props onto the underlying Radix primitive. `classStyle` is compiled to `className`/`style` at the call site before the component runs, so no Plumeria-specific logic is needed inside the components.
|
|
9
9
|
|
|
10
10
|
## Documentation
|
|
11
11
|
|
|
@@ -52,14 +52,14 @@ const styles = css.create({
|
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
export const FAQ = () => (
|
|
55
|
-
<Accordion type="single" collapsible
|
|
55
|
+
<Accordion type="single" collapsible classStyle={styles.root}>
|
|
56
56
|
<Accordion.Item value="item-1">
|
|
57
57
|
<Accordion.Header>
|
|
58
|
-
<Accordion.Trigger
|
|
58
|
+
<Accordion.Trigger classStyle={styles.trigger}>
|
|
59
59
|
Is it accessible?
|
|
60
60
|
</Accordion.Trigger>
|
|
61
61
|
</Accordion.Header>
|
|
62
|
-
<Accordion.Content
|
|
62
|
+
<Accordion.Content classStyle={styles.content}>
|
|
63
63
|
Yes. It adheres to the WAI-ARIA design pattern.
|
|
64
64
|
</Accordion.Content>
|
|
65
65
|
</Accordion.Item>
|
package/dist/ContextMenu.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare const ContextMenu: {
|
|
|
20
20
|
ItemIndicator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
21
21
|
Separator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
22
22
|
Arrow: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & {
|
|
23
|
-
|
|
23
|
+
classStyle?: Style;
|
|
24
24
|
} & React.RefAttributes<SVGSVGElement>>;
|
|
25
25
|
Sub: {
|
|
26
26
|
(props: ContextMenuPrimitive.ContextMenuSubProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/DropdownMenu.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare const DropdownMenu: {
|
|
|
20
20
|
ItemIndicator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
21
21
|
Separator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
22
22
|
Arrow: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & {
|
|
23
|
-
|
|
23
|
+
classStyle?: Style;
|
|
24
24
|
} & React.RefAttributes<SVGSVGElement>>;
|
|
25
25
|
Sub: {
|
|
26
26
|
(props: DropdownMenuPrimitive.DropdownMenuSubProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/Menubar.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const Menubar: React.ForwardRefExoticComponent<Omit<MenubarPrimit
|
|
|
21
21
|
ItemIndicator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemIndicatorProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
22
22
|
Separator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
23
|
Arrow: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & {
|
|
24
|
-
|
|
24
|
+
classStyle?: Style;
|
|
25
25
|
} & React.RefAttributes<SVGSVGElement>>;
|
|
26
26
|
Sub: {
|
|
27
27
|
(props: MenubarPrimitive.MenubarSubProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/Popover.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const Popover: {
|
|
|
13
13
|
Content: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
Close: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
15
15
|
Arrow: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & {
|
|
16
|
-
|
|
16
|
+
classStyle?: Style;
|
|
17
17
|
} & React.RefAttributes<SVGSVGElement>>;
|
|
18
18
|
Anchor: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
19
|
};
|
package/dist/Select.d.ts
CHANGED
|
@@ -23,6 +23,6 @@ export declare const Select: {
|
|
|
23
23
|
ScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
24
|
Separator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
25
|
Arrow: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & {
|
|
26
|
-
|
|
26
|
+
classStyle?: Style;
|
|
27
27
|
} & React.RefAttributes<SVGSVGElement>>;
|
|
28
28
|
};
|
package/dist/Tooltip.d.ts
CHANGED
|
@@ -16,6 +16,6 @@ export declare const Tooltip: {
|
|
|
16
16
|
};
|
|
17
17
|
Content: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
18
|
Arrow: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & {
|
|
19
|
-
|
|
19
|
+
classStyle?: Style;
|
|
20
20
|
} & React.RefAttributes<SVGSVGElement>>;
|
|
21
21
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/headlessui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0",
|
|
4
4
|
"description": "Headless UI components wrapper for Plumeria based on Radix UI",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/react": "^19.2.14",
|
|
63
63
|
"@types/react-dom": "^19.2.3",
|
|
64
|
-
"@plumeria/core": "^
|
|
64
|
+
"@plumeria/core": "^18.0.0"
|
|
65
65
|
},
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public",
|