boottent-design 0.1.71 → 0.1.73
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/types/main.d.ts +3 -3
- package/dist/types/types.d.ts +45 -0
- package/dist/types/ui.d.ts +2 -2
- package/package.json +1 -1
package/dist/types/main.d.ts
CHANGED
|
@@ -574,13 +574,13 @@ export declare interface ToggleButtonMultipleProps extends ToggleButtonProps {
|
|
|
574
574
|
onChange: (value: string[]) => void;
|
|
575
575
|
}
|
|
576
576
|
|
|
577
|
-
declare interface ToggleButtonOptions extends
|
|
577
|
+
export declare interface ToggleButtonOptions extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
578
578
|
value: string;
|
|
579
|
-
label:
|
|
579
|
+
label: React.ReactNode | string;
|
|
580
580
|
tooltip?: Omit<TooltipButtonProps, "children">;
|
|
581
581
|
}
|
|
582
582
|
|
|
583
|
-
declare interface ToggleButtonProps {
|
|
583
|
+
export declare interface ToggleButtonProps {
|
|
584
584
|
options: ToggleButtonOptions[];
|
|
585
585
|
variant?: Omit<ButtonProps["variant"], "text">;
|
|
586
586
|
theme?: Omit<ButtonProps["theme"], "etc">;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ClassProp } from 'class-variance-authority/types';
|
|
|
2
2
|
import { default as default_2 } from 'react';
|
|
3
3
|
import * as React_2 from 'react';
|
|
4
4
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
5
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
5
6
|
import { VariantProps } from 'class-variance-authority';
|
|
6
7
|
|
|
7
8
|
export declare interface AlertPortalOptions {
|
|
@@ -20,6 +21,19 @@ export declare interface AlertProps {
|
|
|
20
21
|
onClose?: () => void;
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
25
|
+
asChild?: boolean;
|
|
26
|
+
icLeft?: React_2.ReactNode;
|
|
27
|
+
icRight?: React_2.ReactNode;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare const buttonVariants: (props?: ({
|
|
31
|
+
theme?: "primary" | "secondary" | "etc" | null | undefined;
|
|
32
|
+
size?: "sm" | "md" | "lg" | "xs" | "icon" | null | undefined;
|
|
33
|
+
variant?: "text" | "solid" | "outline" | null | undefined;
|
|
34
|
+
shape?: "square" | "rounded" | null | undefined;
|
|
35
|
+
} & ClassProp) | undefined) => string;
|
|
36
|
+
|
|
23
37
|
export declare interface DialogPortalOptions {
|
|
24
38
|
id: string;
|
|
25
39
|
type: "dialog";
|
|
@@ -183,6 +197,37 @@ declare const ToastViewport: React_2.ForwardRefExoticComponent<Omit<ToastPrimiti
|
|
|
183
197
|
|
|
184
198
|
declare type ToastViewportProps = React_2.ComponentPropsWithoutRef<typeof ToastViewport>;
|
|
185
199
|
|
|
200
|
+
export declare interface ToggleButtonOptions extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
201
|
+
value: string;
|
|
202
|
+
label: React.ReactNode | string;
|
|
203
|
+
tooltip?: Omit<TooltipButtonProps, "children">;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export declare interface ToggleButtonProps {
|
|
207
|
+
options: ToggleButtonOptions[];
|
|
208
|
+
variant?: Omit<ButtonProps["variant"], "text">;
|
|
209
|
+
theme?: Omit<ButtonProps["theme"], "etc">;
|
|
210
|
+
size?: Omit<ButtonProps["size"], "icon">;
|
|
211
|
+
shape?: ButtonProps["shape"];
|
|
212
|
+
className?: string;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
declare interface TooltipButtonProps extends TooltipContentProps {
|
|
216
|
+
label: string | React_2.ReactNode;
|
|
217
|
+
children: React_2.ReactNode;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
declare type TooltipContentProps = React_2.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> & {
|
|
221
|
+
variant?: "primary" | "secondary" | "white";
|
|
222
|
+
size?: "sm" | "md" | "lg" | "pc" | "mobile";
|
|
223
|
+
icLeft?: React_2.ReactNode;
|
|
224
|
+
icRight?: React_2.ReactNode;
|
|
225
|
+
position?: TooltipPosition;
|
|
226
|
+
bubbleTip?: boolean;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
declare type TooltipPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
230
|
+
|
|
186
231
|
export { }
|
|
187
232
|
|
|
188
233
|
declare namespace _default {
|
package/dist/types/ui.d.ts
CHANGED
|
@@ -404,9 +404,9 @@ export declare interface ToggleButtonMultipleProps extends ToggleButtonProps {
|
|
|
404
404
|
onChange: (value: string[]) => void;
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
declare interface ToggleButtonOptions extends
|
|
407
|
+
declare interface ToggleButtonOptions extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
408
408
|
value: string;
|
|
409
|
-
label:
|
|
409
|
+
label: React.ReactNode | string;
|
|
410
410
|
tooltip?: Omit<TooltipButtonProps, "children">;
|
|
411
411
|
}
|
|
412
412
|
|