@ohhwells/bridge 0.1.41 → 0.1.42
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 +46 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -1
- package/dist/styles.css +20 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -132,6 +132,26 @@ declare function SchedulingWidget({ notifyOnConnect, initialScheduleId, insertAf
|
|
|
132
132
|
|
|
133
133
|
declare const DragHandle: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
134
134
|
|
|
135
|
+
/**
|
|
136
|
+
* Visual drop-gap line for navbar / footer / repeater reorder.
|
|
137
|
+
* Figma: Custom/Drop Indicator (8140:1731) — CSS class `.ov-gap-line`
|
|
138
|
+
*
|
|
139
|
+
* Opacity (Figma docs):
|
|
140
|
+
* - default: 0 (hidden)
|
|
141
|
+
* - hover: 1
|
|
142
|
+
* - dragIdle: 0.4
|
|
143
|
+
* - dragActive: 1
|
|
144
|
+
*/
|
|
145
|
+
declare const dropIndicatorVariants: (props?: ({
|
|
146
|
+
direction?: "horizontal" | "vertical" | null | undefined;
|
|
147
|
+
state?: "default" | "hover" | "dragIdle" | "dragActive" | null | undefined;
|
|
148
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
149
|
+
type DropIndicatorProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof dropIndicatorVariants>;
|
|
150
|
+
declare const DropIndicator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
151
|
+
direction?: "horizontal" | "vertical" | null | undefined;
|
|
152
|
+
state?: "default" | "hover" | "dragIdle" | "dragActive" | null | undefined;
|
|
153
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
154
|
+
|
|
135
155
|
declare const CustomToolbar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
136
156
|
declare function CustomToolbarDivider({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
137
157
|
declare const CustomToolbarButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
@@ -175,4 +195,4 @@ declare function TooltipContent({ className, sideOffset, side, children, ...prop
|
|
|
175
195
|
|
|
176
196
|
declare function isEditSessionActive(): boolean;
|
|
177
197
|
|
|
178
|
-
export { CustomToolbar, CustomToolbarButton, CustomToolbarDivider, DragHandle, 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, filterAvailablePages, getEditModeInitialState, isEditSessionActive, isValidUrl, parseTarget, toggleVariants, validateUrlInput };
|
|
198
|
+
export { 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, validateUrlInput };
|
package/dist/index.d.ts
CHANGED
|
@@ -132,6 +132,26 @@ declare function SchedulingWidget({ notifyOnConnect, initialScheduleId, insertAf
|
|
|
132
132
|
|
|
133
133
|
declare const DragHandle: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
134
134
|
|
|
135
|
+
/**
|
|
136
|
+
* Visual drop-gap line for navbar / footer / repeater reorder.
|
|
137
|
+
* Figma: Custom/Drop Indicator (8140:1731) — CSS class `.ov-gap-line`
|
|
138
|
+
*
|
|
139
|
+
* Opacity (Figma docs):
|
|
140
|
+
* - default: 0 (hidden)
|
|
141
|
+
* - hover: 1
|
|
142
|
+
* - dragIdle: 0.4
|
|
143
|
+
* - dragActive: 1
|
|
144
|
+
*/
|
|
145
|
+
declare const dropIndicatorVariants: (props?: ({
|
|
146
|
+
direction?: "horizontal" | "vertical" | null | undefined;
|
|
147
|
+
state?: "default" | "hover" | "dragIdle" | "dragActive" | null | undefined;
|
|
148
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
149
|
+
type DropIndicatorProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof dropIndicatorVariants>;
|
|
150
|
+
declare const DropIndicator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
151
|
+
direction?: "horizontal" | "vertical" | null | undefined;
|
|
152
|
+
state?: "default" | "hover" | "dragIdle" | "dragActive" | null | undefined;
|
|
153
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
154
|
+
|
|
135
155
|
declare const CustomToolbar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
136
156
|
declare function CustomToolbarDivider({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
137
157
|
declare const CustomToolbarButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
@@ -175,4 +195,4 @@ declare function TooltipContent({ className, sideOffset, side, children, ...prop
|
|
|
175
195
|
|
|
176
196
|
declare function isEditSessionActive(): boolean;
|
|
177
197
|
|
|
178
|
-
export { CustomToolbar, CustomToolbarButton, CustomToolbarDivider, DragHandle, 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, filterAvailablePages, getEditModeInitialState, isEditSessionActive, isValidUrl, parseTarget, toggleVariants, validateUrlInput };
|
|
198
|
+
export { 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, validateUrlInput };
|
package/dist/index.js
CHANGED
|
@@ -9721,11 +9721,54 @@ function OhhwellsBridge() {
|
|
|
9721
9721
|
bridgeRoot
|
|
9722
9722
|
) : null;
|
|
9723
9723
|
}
|
|
9724
|
+
|
|
9725
|
+
// src/ui/drop-indicator.tsx
|
|
9726
|
+
import * as React10 from "react";
|
|
9727
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
9728
|
+
var dropIndicatorVariants = cva(
|
|
9729
|
+
"ov-gap-line pointer-events-none shrink-0 transition-opacity duration-150",
|
|
9730
|
+
{
|
|
9731
|
+
variants: {
|
|
9732
|
+
direction: {
|
|
9733
|
+
vertical: "h-6 w-[3px]",
|
|
9734
|
+
horizontal: "h-[3px] w-[200px]"
|
|
9735
|
+
},
|
|
9736
|
+
state: {
|
|
9737
|
+
default: "opacity-0",
|
|
9738
|
+
hover: "opacity-100",
|
|
9739
|
+
dragIdle: "opacity-40",
|
|
9740
|
+
dragActive: "opacity-100"
|
|
9741
|
+
}
|
|
9742
|
+
},
|
|
9743
|
+
defaultVariants: {
|
|
9744
|
+
direction: "vertical",
|
|
9745
|
+
state: "default"
|
|
9746
|
+
}
|
|
9747
|
+
}
|
|
9748
|
+
);
|
|
9749
|
+
var DropIndicator = React10.forwardRef(
|
|
9750
|
+
({ className, direction, state, ...props }, ref) => {
|
|
9751
|
+
return /* @__PURE__ */ jsx24(
|
|
9752
|
+
"div",
|
|
9753
|
+
{
|
|
9754
|
+
ref,
|
|
9755
|
+
"data-slot": "drop-indicator",
|
|
9756
|
+
"data-direction": direction ?? "vertical",
|
|
9757
|
+
"data-state": state ?? "default",
|
|
9758
|
+
"aria-hidden": "true",
|
|
9759
|
+
className: cn(dropIndicatorVariants({ direction, state }), className),
|
|
9760
|
+
...props
|
|
9761
|
+
}
|
|
9762
|
+
);
|
|
9763
|
+
}
|
|
9764
|
+
);
|
|
9765
|
+
DropIndicator.displayName = "DropIndicator";
|
|
9724
9766
|
export {
|
|
9725
9767
|
CustomToolbar,
|
|
9726
9768
|
CustomToolbarButton,
|
|
9727
9769
|
CustomToolbarDivider,
|
|
9728
9770
|
DragHandle,
|
|
9771
|
+
DropIndicator,
|
|
9729
9772
|
ItemActionToolbar,
|
|
9730
9773
|
ItemInteractionLayer,
|
|
9731
9774
|
LinkEditorPanel,
|
|
@@ -9740,6 +9783,7 @@ export {
|
|
|
9740
9783
|
TooltipProvider,
|
|
9741
9784
|
TooltipTrigger,
|
|
9742
9785
|
buildTarget,
|
|
9786
|
+
dropIndicatorVariants,
|
|
9743
9787
|
filterAvailablePages,
|
|
9744
9788
|
getEditModeInitialState,
|
|
9745
9789
|
isEditSessionActive,
|