@jamsrui/context-menu 0.0.7 → 0.0.9
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/context-menu-config.d.mts +2 -1
- package/dist/context-menu-context.d.mts +0 -1
- package/dist/context-menu-item.d.mts +0 -1
- package/dist/context-menu.d.mts +0 -1
- package/dist/index.d.mts +0 -1
- package/dist/styles.d.mts +4 -5
- package/dist/styles.mjs +1 -1
- package/dist/use-context-menu.d.mts +0 -1
- package/package.json +4 -4
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
3
|
declare const useContextMenuConfig: () => ContextMenuConfig.Props;
|
|
4
|
-
declare const ContextMenuConfig: (props: ContextMenuConfig.Props & {
|
|
4
|
+
declare const ContextMenuConfig: (props: Omit<Partial<ContextMenuConfig.Props>, "children"> & {
|
|
5
5
|
merge?: boolean;
|
|
6
|
+
children: React.ReactNode;
|
|
6
7
|
}) => react_jsx_runtime.JSX.Element;
|
|
7
8
|
declare namespace ContextMenuConfig {
|
|
8
9
|
interface Props {
|
|
@@ -7,7 +7,6 @@ import 'react/jsx-runtime';
|
|
|
7
7
|
import './context-menu-floating-context.mjs';
|
|
8
8
|
import './context-menu-item-inner.mjs';
|
|
9
9
|
import './styles.mjs';
|
|
10
|
-
import 'tailwind-variants';
|
|
11
10
|
|
|
12
11
|
declare const useContextMenuContext: () => ContextMenuContext.Props;
|
|
13
12
|
declare const ContextMenuContext: react.Context<ContextMenuContext.Props | null>;
|
package/dist/context-menu.d.mts
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/styles.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _jamsrui_utils from '@jamsrui/utils';
|
|
2
2
|
import { VariantProps } from '@jamsrui/utils';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
5
|
-
declare const contextMenuVariants: tailwind_variants.TVReturnType<{
|
|
4
|
+
declare const contextMenuVariants: _jamsrui_utils.TVReturnType<{
|
|
6
5
|
radius: {
|
|
7
6
|
sm: {};
|
|
8
7
|
md: {};
|
|
@@ -100,7 +99,7 @@ declare const contextMenuVariants: tailwind_variants.TVReturnType<{
|
|
|
100
99
|
content: string;
|
|
101
100
|
menuItem: string[];
|
|
102
101
|
menuItemInner: string;
|
|
103
|
-
},
|
|
102
|
+
}, _jamsrui_utils.TVReturnType<{
|
|
104
103
|
radius: {
|
|
105
104
|
sm: {};
|
|
106
105
|
md: {};
|
|
@@ -153,4 +152,4 @@ declare const contextMenuVariants: tailwind_variants.TVReturnType<{
|
|
|
153
152
|
type ContextMenuVariantProps = VariantProps<typeof contextMenuVariants>;
|
|
154
153
|
type ContextMenuSlots = keyof ReturnType<typeof contextMenuVariants>;
|
|
155
154
|
|
|
156
|
-
export { type ContextMenuSlots, type ContextMenuVariantProps, contextMenuVariants
|
|
155
|
+
export { type ContextMenuSlots, type ContextMenuVariantProps, contextMenuVariants };
|
package/dist/styles.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{radiusVariant as e,tv as r}from"@jamsrui/utils";const t=
|
|
1
|
+
import{radiusVariant as e,tv as r}from"@jamsrui/utils";const t=r({slots:{arrow:"fill-background-secondary",backdrop:"z-backdrop",root:"min-w-[150px] z-popover",content:"relative z-popover box-border inline-flex w-full flex-col justify-center bg-surface p-1 text-sm shadow-md outline-none",menuItem:["relative box-border flex size-full cursor-pointer select-none items-center gap-2 px-2 py-1.5 text-left outline-none ui-disabled:cursor-not-allowed ui-disabled:opacity-60","ui-active:bg-surface-secondary"],menuItemInner:"grow"},variants:{radius:e(["content","menuItem"]),backdrop:{transparent:{backdrop:""},opaque:{backdrop:"bg-black/50"},blur:{backdrop:"bg-black/30 backdrop-blur-md backdrop-saturate-150"}},color:{default:{menuItem:"ui-hover:bg-surface-secondary ui-hover:text-foreground"},primary:{menuItem:"ui-hover:bg-primary ui-hover:text-primary-foreground"},secondary:{menuItem:"ui-hover:bg-secondary ui-hover:text-secondary-foreground"},success:{menuItem:"ui-hover:bg-success ui-hover:text-success-foreground"},warning:{menuItem:"ui-hover:bg-warning ui-hover:text-warning-foreground"},danger:{menuItem:"ui-hover:bg-danger ui-hover:text-danger-foreground"}}},defaultVariants:{backdrop:"transparent",radius:"md",color:"default"}});export{t as contextMenuVariants};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/context-menu",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@floating-ui/react": ">=0.27",
|
|
9
|
-
"@jamsrui/hooks": "^0.0.
|
|
10
|
-
"@jamsrui/
|
|
11
|
-
"@jamsrui/
|
|
9
|
+
"@jamsrui/hooks": "^0.0.9",
|
|
10
|
+
"@jamsrui/utils": "^0.0.9",
|
|
11
|
+
"@jamsrui/core": "^0.0.8"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|