boottent-design 0.1.49 → 0.1.51
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/boottent-design.layout.cjs.js +1 -1
- package/dist/boottent-design.layout.es.js +4 -2
- package/dist/boottent-design.main.cjs.js +1 -1
- package/dist/boottent-design.main.es.js +38 -35
- package/dist/boottent-design.provider.cjs.js +1 -1
- package/dist/boottent-design.provider.es.js +1 -1
- package/dist/boottent-design.ui.cjs.js +1 -1
- package/dist/boottent-design.ui.es.js +12 -11
- package/dist/index-1OuBuWXz.cjs +1 -0
- package/dist/{index-LHfrIhf6.js → index-C8WhX6iN.js} +88 -84
- package/dist/index-Drsgdqjq.js +6 -0
- package/dist/index-DsSo6AEH.cjs +1 -0
- package/dist/index-fjmloGMl.js +39 -0
- package/dist/{index-B2LxL41Z.cjs → index-quFNafbf.cjs} +1 -1
- package/dist/{portal-provider-rXMQAupF.cjs → portal-provider-CnTQi_yD.cjs} +1 -1
- package/dist/{portal-provider-5LV2b5YG.js → portal-provider-Vpa50CmY.js} +1 -1
- package/dist/tooltip-D5Mqkg7C.cjs +51 -0
- package/dist/{tooltip--JK2Iaas.js → tooltip-lTbp3qjH.js} +2108 -2062
- package/dist/types/layout.d.ts +13 -4
- package/dist/types/main.d.ts +31 -11
- package/dist/types/ui.d.ts +19 -5
- package/package.json +1 -1
- package/dist/index-DSrfsFKr.cjs +0 -1
- package/dist/index-fOHifeTQ.js +0 -19
- package/dist/tooltip-BRABNpgA.cjs +0 -51
package/dist/types/layout.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { default as default_2 } from 'react';
|
|
2
3
|
import { DetailedHTMLProps } from 'react';
|
|
3
4
|
import { DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES } from 'react';
|
|
4
5
|
import { ForwardRefExoticComponent } from 'react';
|
|
5
6
|
import { HTMLAttributes } from 'react';
|
|
6
|
-
import { JSX as JSX_2 } from 'react';
|
|
7
7
|
import { RefAttributes } from 'react';
|
|
8
8
|
import { RefObject } from 'react';
|
|
9
9
|
|
|
@@ -13,10 +13,19 @@ ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIR
|
|
|
13
13
|
|
|
14
14
|
declare type BoxProps = ComponentPropsWithRef<"div">;
|
|
15
15
|
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const FlexBox: default_2.FC<FlexBoxProps> & {
|
|
17
|
+
Col: default_2.FC<BoxProps>;
|
|
18
|
+
Row: default_2.FC<BoxProps>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
declare type FlexBoxProps = BoxProps;
|
|
22
|
+
|
|
23
|
+
export declare const GridBox: default_2.FC<GridBoxProps>;
|
|
17
24
|
|
|
18
|
-
declare type
|
|
19
|
-
|
|
25
|
+
declare type GridBoxProps = BoxProps & {
|
|
26
|
+
columns?: number;
|
|
27
|
+
rows?: number;
|
|
28
|
+
gap?: number;
|
|
20
29
|
};
|
|
21
30
|
|
|
22
31
|
export { }
|
package/dist/types/main.d.ts
CHANGED
|
@@ -110,6 +110,16 @@ export declare const buttonVariants: (props?: ({
|
|
|
110
110
|
|
|
111
111
|
declare function Calendar({ size, fill, className, }: SvgIconType): JSX_2.Element;
|
|
112
112
|
|
|
113
|
+
export declare const Callout: default_2.FC<CalloutBoxProps> & {
|
|
114
|
+
Fill: default_2.FC<CalloutBoxProps>;
|
|
115
|
+
Outline: default_2.FC<CalloutBoxProps>;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
declare type CalloutBoxProps = BoxProps & {
|
|
119
|
+
heading?: default_2.ReactNode | string;
|
|
120
|
+
size?: 'sm' | 'md' | 'lg';
|
|
121
|
+
};
|
|
122
|
+
|
|
113
123
|
declare function Cancel({ size, fill }: SvgIconType): JSX_2.Element;
|
|
114
124
|
|
|
115
125
|
declare function Checkbox({ type, size, fill }: Props_3): JSX_2.Element;
|
|
@@ -233,10 +243,25 @@ export declare interface DropdownTitleItem extends DropdownItemBase {
|
|
|
233
243
|
|
|
234
244
|
declare function Filter({ fill, size }: SvgIconType): JSX_2.Element;
|
|
235
245
|
|
|
246
|
+
export declare const FlexBox: default_2.FC<FlexBoxProps> & {
|
|
247
|
+
Col: default_2.FC<BoxProps>;
|
|
248
|
+
Row: default_2.FC<BoxProps>;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
declare type FlexBoxProps = BoxProps;
|
|
252
|
+
|
|
236
253
|
export declare const getDropdownButtonText: (selectedItems: SelectedDropdownItem[], initialText: string) => string;
|
|
237
254
|
|
|
238
255
|
declare function Google({ size }: SvgIconType): JSX_2.Element;
|
|
239
256
|
|
|
257
|
+
export declare const GridBox: default_2.FC<GridBoxProps>;
|
|
258
|
+
|
|
259
|
+
declare type GridBoxProps = BoxProps & {
|
|
260
|
+
columns?: number;
|
|
261
|
+
rows?: number;
|
|
262
|
+
gap?: number;
|
|
263
|
+
};
|
|
264
|
+
|
|
240
265
|
declare function HeartFill({ size, fill, }: SvgIconType): JSX_2.Element;
|
|
241
266
|
|
|
242
267
|
declare function HeartOutline({ size, fill, }: SvgIconType): JSX_2.Element;
|
|
@@ -437,12 +462,6 @@ export declare type SpecificPortalOptions<T extends PortalType> = {
|
|
|
437
462
|
props: PortalTypeMap[T];
|
|
438
463
|
};
|
|
439
464
|
|
|
440
|
-
export declare const Stack: ({ className, type, ...props }: StackProps) => JSX_2.Element;
|
|
441
|
-
|
|
442
|
-
declare type StackProps = BoxProps & {
|
|
443
|
-
type?: "col" | "row";
|
|
444
|
-
};
|
|
445
|
-
|
|
446
465
|
declare interface State {
|
|
447
466
|
toasts: ToasterProps[];
|
|
448
467
|
}
|
|
@@ -519,7 +538,7 @@ export declare const ToggleButtonGroup: {
|
|
|
519
538
|
Multiple: default_2.FC<ToggleButtonMultipleProps>;
|
|
520
539
|
};
|
|
521
540
|
|
|
522
|
-
declare interface ToggleButtonMultipleProps extends ToggleButtonProps {
|
|
541
|
+
export declare interface ToggleButtonMultipleProps extends ToggleButtonProps {
|
|
523
542
|
value: string[];
|
|
524
543
|
onChange: (value: string[]) => void;
|
|
525
544
|
}
|
|
@@ -530,13 +549,14 @@ declare interface ToggleButtonProps {
|
|
|
530
549
|
label: default_2.ReactNode | string;
|
|
531
550
|
disabled?: boolean;
|
|
532
551
|
}[];
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
552
|
+
variant?: Omit<ButtonProps["variant"], "text">;
|
|
553
|
+
theme?: Omit<ButtonProps["theme"], "etc">;
|
|
554
|
+
size?: Omit<ButtonProps["size"], "icon">;
|
|
555
|
+
shape?: ButtonProps["shape"];
|
|
536
556
|
className?: string;
|
|
537
557
|
}
|
|
538
558
|
|
|
539
|
-
declare interface ToggleButtonSingleProps extends ToggleButtonProps {
|
|
559
|
+
export declare interface ToggleButtonSingleProps extends ToggleButtonProps {
|
|
540
560
|
value: string;
|
|
541
561
|
onChange: (value: string) => void;
|
|
542
562
|
nullable?: boolean;
|
package/dist/types/ui.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import { ClassProp } from 'class-variance-authority/types';
|
|
3
|
+
import { ComponentPropsWithRef } from 'react';
|
|
3
4
|
import { default as default_2 } from 'react';
|
|
4
5
|
import { FC } from 'react';
|
|
5
6
|
import { JSX as JSX_2 } from 'react';
|
|
@@ -47,6 +48,8 @@ declare function ArrowRightButton({ size, disabled, }: Props): JSX_2.Element;
|
|
|
47
48
|
|
|
48
49
|
declare function ArrowUp2({ size, fill, className, }: SvgIconType): JSX_2.Element;
|
|
49
50
|
|
|
51
|
+
declare type BoxProps = ComponentPropsWithRef<"div">;
|
|
52
|
+
|
|
50
53
|
declare function Bubbles({ size, fill, className, }: SvgIconType): JSX_2.Element;
|
|
51
54
|
|
|
52
55
|
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -66,6 +69,16 @@ export declare const buttonVariants: (props?: ({
|
|
|
66
69
|
|
|
67
70
|
declare function Calendar({ size, fill, className, }: SvgIconType): JSX_2.Element;
|
|
68
71
|
|
|
72
|
+
export declare const Callout: default_2.FC<CalloutBoxProps> & {
|
|
73
|
+
Fill: default_2.FC<CalloutBoxProps>;
|
|
74
|
+
Outline: default_2.FC<CalloutBoxProps>;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
declare type CalloutBoxProps = BoxProps & {
|
|
78
|
+
heading?: default_2.ReactNode | string;
|
|
79
|
+
size?: 'sm' | 'md' | 'lg';
|
|
80
|
+
};
|
|
81
|
+
|
|
69
82
|
declare function Cancel({ size, fill }: SvgIconType): JSX_2.Element;
|
|
70
83
|
|
|
71
84
|
declare function Checkbox({ type, size, fill }: Props_3): JSX_2.Element;
|
|
@@ -358,7 +371,7 @@ export declare const ToggleButtonGroup: {
|
|
|
358
371
|
Multiple: default_2.FC<ToggleButtonMultipleProps>;
|
|
359
372
|
};
|
|
360
373
|
|
|
361
|
-
declare interface ToggleButtonMultipleProps extends ToggleButtonProps {
|
|
374
|
+
export declare interface ToggleButtonMultipleProps extends ToggleButtonProps {
|
|
362
375
|
value: string[];
|
|
363
376
|
onChange: (value: string[]) => void;
|
|
364
377
|
}
|
|
@@ -369,13 +382,14 @@ declare interface ToggleButtonProps {
|
|
|
369
382
|
label: default_2.ReactNode | string;
|
|
370
383
|
disabled?: boolean;
|
|
371
384
|
}[];
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
385
|
+
variant?: Omit<ButtonProps["variant"], "text">;
|
|
386
|
+
theme?: Omit<ButtonProps["theme"], "etc">;
|
|
387
|
+
size?: Omit<ButtonProps["size"], "icon">;
|
|
388
|
+
shape?: ButtonProps["shape"];
|
|
375
389
|
className?: string;
|
|
376
390
|
}
|
|
377
391
|
|
|
378
|
-
declare interface ToggleButtonSingleProps extends ToggleButtonProps {
|
|
392
|
+
export declare interface ToggleButtonSingleProps extends ToggleButtonProps {
|
|
379
393
|
value: string;
|
|
380
394
|
onChange: (value: string) => void;
|
|
381
395
|
nullable?: boolean;
|
package/package.json
CHANGED
package/dist/index-DSrfsFKr.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),o=require("react"),i=require("./boottent-design.utils.cjs.js"),e=o.forwardRef(({...r},t)=>s.jsx("div",{ref:t,...r})),n=({className:r,type:t="col",...c})=>s.jsx(e,{className:i.cn("flex",t==="row"&&"flex-row justify-start",t==="col"&&"flex-col items-start",r),...c});exports.Box=e;exports.Stack=n;
|
package/dist/index-fOHifeTQ.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as f } from "react";
|
|
3
|
-
import { cn as a } from "./boottent-design.utils.es.js";
|
|
4
|
-
const c = f(({ ...o }, r) => /* @__PURE__ */ t("div", { ref: r, ...o })), i = ({ className: o, type: r = "col", ...s }) => /* @__PURE__ */ t(
|
|
5
|
-
c,
|
|
6
|
-
{
|
|
7
|
-
className: a(
|
|
8
|
-
"flex",
|
|
9
|
-
r === "row" && "flex-row justify-start",
|
|
10
|
-
r === "col" && "flex-col items-start",
|
|
11
|
-
o
|
|
12
|
-
),
|
|
13
|
-
...s
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
export {
|
|
17
|
-
c as B,
|
|
18
|
-
i as S
|
|
19
|
-
};
|