@ohhwells/bridge 0.1.49-next.115 → 0.1.50
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.cjs +462 -1243
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -28
- package/dist/index.d.ts +4 -28
- package/dist/index.js +268 -1043
- package/dist/index.js.map +1 -1
- package/dist/styles.css +0 -135
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import React__default, { Ref } from 'react';
|
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
|
-
import { Toggle as Toggle$1,
|
|
6
|
+
import { Toggle as Toggle$1, Tooltip as Tooltip$1 } from 'radix-ui';
|
|
7
7
|
|
|
8
8
|
declare function OhhwellsBridge(): React__default.ReactPortal | null;
|
|
9
9
|
|
|
@@ -167,16 +167,10 @@ declare const CustomToolbarButton: React.ForwardRefExoticComponent<React.ButtonH
|
|
|
167
167
|
type ItemActionToolbarProps = {
|
|
168
168
|
onEditLink?: () => void;
|
|
169
169
|
onAddItem?: () => void;
|
|
170
|
-
|
|
171
|
-
onDuplicate?: () => void;
|
|
172
|
-
/** Wired by OHH-458 — row is always shown (destructive). */
|
|
173
|
-
onDelete?: () => void;
|
|
170
|
+
onMore?: () => void;
|
|
174
171
|
editLinkDisabled?: boolean;
|
|
175
172
|
addItemDisabled?: boolean;
|
|
176
173
|
moreDisabled?: boolean;
|
|
177
|
-
selectParentDisabled?: boolean;
|
|
178
|
-
duplicateDisabled?: boolean;
|
|
179
|
-
deleteDisabled?: boolean;
|
|
180
174
|
/** Hide Add item — CTA buttons only show Edit link (prototype). */
|
|
181
175
|
showAddItem?: boolean;
|
|
182
176
|
/** Hide More — CTA buttons only show Edit link (prototype). */
|
|
@@ -185,7 +179,7 @@ type ItemActionToolbarProps = {
|
|
|
185
179
|
tooltipSide?: 'top' | 'bottom' | 'left' | 'right';
|
|
186
180
|
};
|
|
187
181
|
/** Item-action fill for Custom/Toolbar — Edit link / Add item / More (no separators). */
|
|
188
|
-
declare function ItemActionToolbar({ onEditLink, onAddItem,
|
|
182
|
+
declare function ItemActionToolbar({ onEditLink, onAddItem, onMore, editLinkDisabled, addItemDisabled, moreDisabled, showAddItem, showMore, tooltipSide, }: ItemActionToolbarProps): react_jsx_runtime.JSX.Element;
|
|
189
183
|
|
|
190
184
|
type ItemInteractionState = 'default' | 'hover' | 'sibling-hint' | 'active-top' | 'active-bottom' | 'dragging';
|
|
191
185
|
type ItemInteractionLayerProps = {
|
|
@@ -214,24 +208,6 @@ type ItemInteractionLayerProps = {
|
|
|
214
208
|
};
|
|
215
209
|
declare function ItemInteractionLayer({ rect, state, elRef, toolbar, showHandle, dragDisabled, dragHandleLabel, onDragHandleDragStart, onDragHandleDragEnd, onItemPointerDown, onItemClick, itemDragSurface, chromeGap, className, }: ItemInteractionLayerProps): react_jsx_runtime.JSX.Element | null;
|
|
216
210
|
|
|
217
|
-
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
|
|
218
|
-
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
219
|
-
declare function DropdownMenuGroup({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime.JSX.Element;
|
|
220
|
-
/**
|
|
221
|
-
* Figma Dropdown Menu (4:6588 / 8202:1581):
|
|
222
|
-
* border, radius 6, shadow-md, min 128px / typical 224px width.
|
|
223
|
-
*/
|
|
224
|
-
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime.JSX.Element;
|
|
225
|
-
/**
|
|
226
|
-
* Figma Command Base / CMDK Item — leading icon at left 8px, label at pl-8.
|
|
227
|
-
*/
|
|
228
|
-
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenu$1.Item> & {
|
|
229
|
-
inset?: boolean;
|
|
230
|
-
variant?: 'default' | 'destructive';
|
|
231
|
-
}): react_jsx_runtime.JSX.Element;
|
|
232
|
-
/** Full-bleed section divider — Figma section border-t (not inset hairline). */
|
|
233
|
-
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
234
|
-
|
|
235
211
|
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof Tooltip$1.Provider>): react_jsx_runtime.JSX.Element;
|
|
236
212
|
declare function Tooltip({ ...props }: React.ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
|
|
237
213
|
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof Tooltip$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
@@ -266,4 +242,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
|
|
|
266
242
|
bind: Record<string, string>;
|
|
267
243
|
};
|
|
268
244
|
|
|
269
|
-
export { type CarouselSlide, CustomToolbar, CustomToolbarButton, CustomToolbarDivider, DragHandle, DropIndicator, type DropIndicatorProps,
|
|
245
|
+
export { type CarouselSlide, CustomToolbar, CustomToolbarButton, CustomToolbarDivider, DragHandle, DropIndicator, type DropIndicatorProps, ItemActionToolbar, type ItemActionToolbarProps, ItemInteractionLayer, type ItemInteractionLayerProps, type ItemInteractionState, LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OhhwellsBridge, SchedulingWidget, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buildTarget, dropIndicatorVariants, filterAvailablePages, getEditModeInitialState, isEditSessionActive, isValidUrl, parseTarget, toggleVariants, useOhwCarousel, validateUrlInput };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React__default, { Ref } from 'react';
|
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
|
-
import { Toggle as Toggle$1,
|
|
6
|
+
import { Toggle as Toggle$1, Tooltip as Tooltip$1 } from 'radix-ui';
|
|
7
7
|
|
|
8
8
|
declare function OhhwellsBridge(): React__default.ReactPortal | null;
|
|
9
9
|
|
|
@@ -167,16 +167,10 @@ declare const CustomToolbarButton: React.ForwardRefExoticComponent<React.ButtonH
|
|
|
167
167
|
type ItemActionToolbarProps = {
|
|
168
168
|
onEditLink?: () => void;
|
|
169
169
|
onAddItem?: () => void;
|
|
170
|
-
|
|
171
|
-
onDuplicate?: () => void;
|
|
172
|
-
/** Wired by OHH-458 — row is always shown (destructive). */
|
|
173
|
-
onDelete?: () => void;
|
|
170
|
+
onMore?: () => void;
|
|
174
171
|
editLinkDisabled?: boolean;
|
|
175
172
|
addItemDisabled?: boolean;
|
|
176
173
|
moreDisabled?: boolean;
|
|
177
|
-
selectParentDisabled?: boolean;
|
|
178
|
-
duplicateDisabled?: boolean;
|
|
179
|
-
deleteDisabled?: boolean;
|
|
180
174
|
/** Hide Add item — CTA buttons only show Edit link (prototype). */
|
|
181
175
|
showAddItem?: boolean;
|
|
182
176
|
/** Hide More — CTA buttons only show Edit link (prototype). */
|
|
@@ -185,7 +179,7 @@ type ItemActionToolbarProps = {
|
|
|
185
179
|
tooltipSide?: 'top' | 'bottom' | 'left' | 'right';
|
|
186
180
|
};
|
|
187
181
|
/** Item-action fill for Custom/Toolbar — Edit link / Add item / More (no separators). */
|
|
188
|
-
declare function ItemActionToolbar({ onEditLink, onAddItem,
|
|
182
|
+
declare function ItemActionToolbar({ onEditLink, onAddItem, onMore, editLinkDisabled, addItemDisabled, moreDisabled, showAddItem, showMore, tooltipSide, }: ItemActionToolbarProps): react_jsx_runtime.JSX.Element;
|
|
189
183
|
|
|
190
184
|
type ItemInteractionState = 'default' | 'hover' | 'sibling-hint' | 'active-top' | 'active-bottom' | 'dragging';
|
|
191
185
|
type ItemInteractionLayerProps = {
|
|
@@ -214,24 +208,6 @@ type ItemInteractionLayerProps = {
|
|
|
214
208
|
};
|
|
215
209
|
declare function ItemInteractionLayer({ rect, state, elRef, toolbar, showHandle, dragDisabled, dragHandleLabel, onDragHandleDragStart, onDragHandleDragEnd, onItemPointerDown, onItemClick, itemDragSurface, chromeGap, className, }: ItemInteractionLayerProps): react_jsx_runtime.JSX.Element | null;
|
|
216
210
|
|
|
217
|
-
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
|
|
218
|
-
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
219
|
-
declare function DropdownMenuGroup({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime.JSX.Element;
|
|
220
|
-
/**
|
|
221
|
-
* Figma Dropdown Menu (4:6588 / 8202:1581):
|
|
222
|
-
* border, radius 6, shadow-md, min 128px / typical 224px width.
|
|
223
|
-
*/
|
|
224
|
-
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime.JSX.Element;
|
|
225
|
-
/**
|
|
226
|
-
* Figma Command Base / CMDK Item — leading icon at left 8px, label at pl-8.
|
|
227
|
-
*/
|
|
228
|
-
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenu$1.Item> & {
|
|
229
|
-
inset?: boolean;
|
|
230
|
-
variant?: 'default' | 'destructive';
|
|
231
|
-
}): react_jsx_runtime.JSX.Element;
|
|
232
|
-
/** Full-bleed section divider — Figma section border-t (not inset hairline). */
|
|
233
|
-
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
234
|
-
|
|
235
211
|
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof Tooltip$1.Provider>): react_jsx_runtime.JSX.Element;
|
|
236
212
|
declare function Tooltip({ ...props }: React.ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
|
|
237
213
|
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof Tooltip$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
@@ -266,4 +242,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
|
|
|
266
242
|
bind: Record<string, string>;
|
|
267
243
|
};
|
|
268
244
|
|
|
269
|
-
export { type CarouselSlide, CustomToolbar, CustomToolbarButton, CustomToolbarDivider, DragHandle, DropIndicator, type DropIndicatorProps,
|
|
245
|
+
export { type CarouselSlide, CustomToolbar, CustomToolbarButton, CustomToolbarDivider, DragHandle, DropIndicator, type DropIndicatorProps, ItemActionToolbar, type ItemActionToolbarProps, ItemInteractionLayer, type ItemInteractionLayerProps, type ItemInteractionState, LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OhhwellsBridge, SchedulingWidget, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buildTarget, dropIndicatorVariants, filterAvailablePages, getEditModeInitialState, isEditSessionActive, isValidUrl, parseTarget, toggleVariants, useOhwCarousel, validateUrlInput };
|