@ohhwells/bridge 0.1.1 → 0.1.4

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.
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import React__default from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { VariantProps } from 'class-variance-authority';
6
+ import { Toggle as Toggle$1 } from 'radix-ui';
7
+
8
+ declare function OhhwellsBridge(): React__default.ReactPortal | null;
9
+
10
+ declare const toggleVariants: (props?: ({
11
+ variant?: "default" | "outline" | null | undefined;
12
+ size?: "default" | "sm" | "lg" | null | undefined;
13
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
14
+ declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof Toggle$1.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
15
+
16
+ declare function ToggleGroup({ className, value, onValueChange, children, ...props }: {
17
+ value: string;
18
+ onValueChange: (value: string) => void;
19
+ children: React.ReactNode;
20
+ } & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>): react_jsx_runtime.JSX.Element;
21
+ declare function ToggleGroupItem({ className, value, children, ...props }: {
22
+ value: string;
23
+ children: React.ReactNode;
24
+ } & Omit<React.ComponentProps<typeof Toggle>, 'pressed' | 'onPressedChange'>): react_jsx_runtime.JSX.Element;
25
+
26
+ export { OhhwellsBridge, Toggle, ToggleGroup, ToggleGroupItem, toggleVariants };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,26 @@
1
+ import * as React from 'react';
2
+ import React__default from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { VariantProps } from 'class-variance-authority';
6
+ import { Toggle as Toggle$1 } from 'radix-ui';
1
7
 
2
- export { }
8
+ declare function OhhwellsBridge(): React__default.ReactPortal | null;
9
+
10
+ declare const toggleVariants: (props?: ({
11
+ variant?: "default" | "outline" | null | undefined;
12
+ size?: "default" | "sm" | "lg" | null | undefined;
13
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
14
+ declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof Toggle$1.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
15
+
16
+ declare function ToggleGroup({ className, value, onValueChange, children, ...props }: {
17
+ value: string;
18
+ onValueChange: (value: string) => void;
19
+ children: React.ReactNode;
20
+ } & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>): react_jsx_runtime.JSX.Element;
21
+ declare function ToggleGroupItem({ className, value, children, ...props }: {
22
+ value: string;
23
+ children: React.ReactNode;
24
+ } & Omit<React.ComponentProps<typeof Toggle>, 'pressed' | 'onPressedChange'>): react_jsx_runtime.JSX.Element;
25
+
26
+ export { OhhwellsBridge, Toggle, ToggleGroup, ToggleGroupItem, toggleVariants };