@cognitap/radiant 0.0.63 → 0.0.64
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/CHANGELOG.md +4 -0
- package/dist/library/NavigationMenu.d.ts +64 -0
- package/dist/library/NavigationMenu.d.ts.map +1 -0
- package/dist/library/NavigationMenu.js +346 -0
- package/dist/library/NavigationMenu.js.map +1 -0
- package/dist/library/cn.d.ts.map +1 -1
- package/dist/library/cn.js +5 -0
- package/dist/library/cn.js.map +1 -1
- package/dist/library/index.d.ts +2 -0
- package/dist/library/index.d.ts.map +1 -1
- package/dist/library/index.js +1 -0
- package/dist/library/index.js.map +1 -1
- package/dist/library/react/useHoverSurface.d.ts +1 -0
- package/dist/library/react/useHoverSurface.d.ts.map +1 -1
- package/dist/library/react/useHoverSurface.js +5 -0
- package/dist/library/react/useHoverSurface.js.map +1 -1
- package/dist/library/styles.css +1 -1
- package/dist/library/themes/components.d.ts +10 -0
- package/dist/library/themes/components.d.ts.map +1 -1
- package/dist/library/themes/components.js +10 -0
- package/dist/library/themes/components.js.map +1 -1
- package/docs/architecture.md +3 -2
- package/package.json +1 -1
- package/src/NavigationMenu.tsx +650 -0
- package/src/cn.ts +5 -0
- package/src/index.ts +24 -0
- package/src/react/useHoverSurface.ts +5 -0
- package/src/themes/components.ts +10 -0
package/src/index.ts
CHANGED
|
@@ -687,3 +687,27 @@ export {
|
|
|
687
687
|
type ResizablePanelState,
|
|
688
688
|
type ResizableItem
|
|
689
689
|
} from './Resizable.js'
|
|
690
|
+
|
|
691
|
+
export {
|
|
692
|
+
NavigationMenu,
|
|
693
|
+
NavigationMenuList,
|
|
694
|
+
NavigationMenuItem,
|
|
695
|
+
NavigationMenuTrigger,
|
|
696
|
+
NavigationMenuLink,
|
|
697
|
+
NavigationMenuContent,
|
|
698
|
+
NavigationMenuViewport,
|
|
699
|
+
useNavigationMenu
|
|
700
|
+
} from './NavigationMenu.js'
|
|
701
|
+
export type {
|
|
702
|
+
NavigationMenuProps,
|
|
703
|
+
NavigationMenuState,
|
|
704
|
+
NavigationMenuItemConfig,
|
|
705
|
+
NavigationMenuListProps,
|
|
706
|
+
NavigationMenuItemProps,
|
|
707
|
+
NavigationMenuTriggerProps,
|
|
708
|
+
NavigationMenuLinkProps,
|
|
709
|
+
NavigationMenuContentProps,
|
|
710
|
+
NavigationMenuViewportProps,
|
|
711
|
+
NavigationMenuRenderProps,
|
|
712
|
+
NavigationMenuLinkRenderProps
|
|
713
|
+
} from './NavigationMenu.js'
|
|
@@ -107,6 +107,11 @@ export function useHoverSurface({
|
|
|
107
107
|
return () => trigger.ownerDocument.removeEventListener('pointermove', move)
|
|
108
108
|
}, [trigger, content, open, closeDelay, schedule])
|
|
109
109
|
return {
|
|
110
|
+
cancel: (reset = false) => {
|
|
111
|
+
clear()
|
|
112
|
+
if (reset)
|
|
113
|
+
activity.current = { focused: false, hovered: false, suppressed: false, touch: false }
|
|
114
|
+
},
|
|
110
115
|
setOpen,
|
|
111
116
|
enter,
|
|
112
117
|
leave,
|
package/src/themes/components.ts
CHANGED
|
@@ -63,6 +63,16 @@ export const componentRegistry = {
|
|
|
63
63
|
focusWidth: 'css',
|
|
64
64
|
focusOffset: 'css'
|
|
65
65
|
},
|
|
66
|
+
navigationMenu: {
|
|
67
|
+
gap: 'css',
|
|
68
|
+
padding: 'css',
|
|
69
|
+
radius: 'css',
|
|
70
|
+
borderWidth: 'css',
|
|
71
|
+
borderColor: 'css',
|
|
72
|
+
background: 'css',
|
|
73
|
+
color: 'css',
|
|
74
|
+
shadow: 'css'
|
|
75
|
+
},
|
|
66
76
|
resizable: {
|
|
67
77
|
handleSize: 'css',
|
|
68
78
|
handleColor: 'css',
|