@bloodhoundenterprise/doodleui 1.0.0-alpha.10 → 1.0.0-alpha.12
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/README.md +2 -2
- package/dist/doodleui.js +30 -22
- package/dist/index.d.ts +18 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://img.shields.io/badge/version-1.0.0--alpha.
|
|
2
|
+
<img src="https://img.shields.io/badge/version-1.0.0--alpha.12-teal" alt="version 1.0.0-alpha.12"/>
|
|
3
3
|
<a href="https://ghst.ly/BHSlack">
|
|
4
4
|
<img src="https://img.shields.io/badge/BloodHound Slack-4A154B?logo=slack&logoColor=EEF0F2"
|
|
5
5
|
alt="BloodHound Slack"></a>
|
|
@@ -58,7 +58,7 @@ $ yarn add @bloodhoundenterprise/DoodleUI
|
|
|
58
58
|
|
|
59
59
|
### Dependencies
|
|
60
60
|
|
|
61
|
-
- [Node.js
|
|
61
|
+
- [Node.js 22.x](https://nodejs.org/)
|
|
62
62
|
|
|
63
63
|
These components are built for usage with the Roboto font though there are fallback fonts in place if Roboto is not found. The Roboto font will need to be included in your project's assets or it will need to be pulled in via CDN for the font to display as expected.
|
|
64
64
|
|
package/dist/doodleui.js
CHANGED
|
@@ -455,6 +455,7 @@ const ho = x.forwardRef(({ ...e }, t) => {
|
|
|
455
455
|
return /* @__PURE__ */ f(
|
|
456
456
|
Ft,
|
|
457
457
|
{
|
|
458
|
+
name: "prev",
|
|
458
459
|
ref: t,
|
|
459
460
|
className: "px-2",
|
|
460
461
|
variant: "text",
|
|
@@ -472,11 +473,13 @@ const yo = x.forwardRef(() => {
|
|
|
472
473
|
return /* @__PURE__ */ f("div", { className: "flex flex-row", children: n.map((a, r) => /* @__PURE__ */ f(
|
|
473
474
|
"button",
|
|
474
475
|
{
|
|
476
|
+
name: `dot-${r}`,
|
|
475
477
|
className: "h-2.5 w-2.5 mx-1.5 border-x border-y rounded-3xl border-black dark:border-white ".concat(
|
|
476
|
-
r === e ? "bg-black dark:bg-white rounded-3xl" : ""
|
|
478
|
+
r === e ? "active bg-black dark:bg-white rounded-3xl" : ""
|
|
477
479
|
),
|
|
478
480
|
onClick: () => t(r)
|
|
479
|
-
}
|
|
481
|
+
},
|
|
482
|
+
r
|
|
480
483
|
)) });
|
|
481
484
|
});
|
|
482
485
|
yo.displayName = "CarouselDots";
|
|
@@ -485,6 +488,7 @@ const bo = x.forwardRef(({ ...e }, t) => {
|
|
|
485
488
|
return /* @__PURE__ */ f(
|
|
486
489
|
Ft,
|
|
487
490
|
{
|
|
491
|
+
name: "next",
|
|
488
492
|
ref: t,
|
|
489
493
|
className: "px-2",
|
|
490
494
|
variant: "text",
|
|
@@ -751,24 +755,28 @@ const Ao = x.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(oa, { r
|
|
|
751
755
|
Ao.displayName = oa.displayName;
|
|
752
756
|
const Oo = x.forwardRef((e, t) => /* @__PURE__ */ f(ia, { ref: t, ...e }));
|
|
753
757
|
Oo.displayName = ia.displayName;
|
|
754
|
-
const ml = x.forwardRef(
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
758
|
+
const ml = x.forwardRef(
|
|
759
|
+
({ label: e, icon: t, color: n, backgroundColor: a, className: r, ...o }, i) => /* @__PURE__ */ V(
|
|
760
|
+
"div",
|
|
761
|
+
{
|
|
762
|
+
ref: i,
|
|
763
|
+
...o,
|
|
764
|
+
className: g([
|
|
765
|
+
"inline-flex items-center justify-center rounded min-w-16 h-8 p-2 bg-neutral-light-3 dark:bg-neutral-dark-3 text-neutral-dark-1 dark:text-white border border-neutral-light-5 dark:border-neutral-dark-5",
|
|
766
|
+
t && "pr-3",
|
|
767
|
+
r
|
|
768
|
+
]),
|
|
769
|
+
style: {
|
|
770
|
+
borderColor: n,
|
|
771
|
+
backgroundColor: a
|
|
772
|
+
},
|
|
773
|
+
children: [
|
|
774
|
+
t && /* @__PURE__ */ f("span", { style: { color: n }, children: t }),
|
|
775
|
+
e
|
|
776
|
+
]
|
|
777
|
+
}
|
|
778
|
+
)
|
|
779
|
+
), Ro = x.forwardRef(({ className: e, type: t, ...n }, a) => /* @__PURE__ */ f(
|
|
772
780
|
"input",
|
|
773
781
|
{
|
|
774
782
|
type: t,
|
|
@@ -4759,7 +4767,7 @@ export {
|
|
|
4759
4767
|
eo as AccordionContent,
|
|
4760
4768
|
Zr as AccordionHeader,
|
|
4761
4769
|
Qr as AccordionItem,
|
|
4762
|
-
|
|
4770
|
+
ml as Badge,
|
|
4763
4771
|
Ft as Button,
|
|
4764
4772
|
ze as ButtonVariants,
|
|
4765
4773
|
oo as Calendar,
|
|
@@ -4790,7 +4798,6 @@ export {
|
|
|
4790
4798
|
cl as DialogTrigger,
|
|
4791
4799
|
kl as DoodleUIPlugin,
|
|
4792
4800
|
wl as DoodleUIPreset,
|
|
4793
|
-
ml as IconBadge,
|
|
4794
4801
|
Ro as Input,
|
|
4795
4802
|
Io as Label,
|
|
4796
4803
|
pl as Pagination,
|
|
@@ -4804,6 +4811,7 @@ export {
|
|
|
4804
4811
|
Hs as PopoverContent,
|
|
4805
4812
|
hl as PopoverTrigger,
|
|
4806
4813
|
yl as RadialGauge,
|
|
4814
|
+
rl as RiskBadge,
|
|
4807
4815
|
da as Select,
|
|
4808
4816
|
jt as SelectContent,
|
|
4809
4817
|
ol as SelectGroup,
|
package/dist/index.d.ts
CHANGED
|
@@ -32,18 +32,15 @@ export declare const AccordionHeader: React_2.ForwardRefExoticComponent<Omit<Acc
|
|
|
32
32
|
|
|
33
33
|
export declare const AccordionItem: React_2.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
34
34
|
|
|
35
|
-
export declare
|
|
35
|
+
export declare const Badge: React_2.ForwardRefExoticComponent<BadgeProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
declare interface BadgeProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
38
|
+
label: string;
|
|
39
|
+
icon?: React_2.ReactNode;
|
|
40
|
+
color?: string;
|
|
41
|
+
backgroundColor?: string;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
declare const BadgePropVariants: (props?: ({
|
|
44
|
-
type?: "labeled" | "sm-circle" | "md-circle" | null | undefined;
|
|
45
|
-
} & ClassProp) | undefined) => string;
|
|
46
|
-
|
|
47
44
|
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
48
45
|
|
|
49
46
|
export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof ButtonVariants> {
|
|
@@ -299,14 +296,6 @@ export declare const DoodleUIPreset: {
|
|
|
299
296
|
|
|
300
297
|
export { flexRender }
|
|
301
298
|
|
|
302
|
-
export declare const IconBadge: React_2.ForwardRefExoticComponent<IconBadgeProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
303
|
-
|
|
304
|
-
declare interface IconBadgeProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
305
|
-
label: string;
|
|
306
|
-
icon?: React_2.ReactNode;
|
|
307
|
-
color?: string;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
299
|
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
311
300
|
|
|
312
301
|
export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInputElement> {
|
|
@@ -372,6 +361,18 @@ declare interface Props extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
372
361
|
|
|
373
362
|
export declare function RadialGauge(props: Props): JSX_2.Element;
|
|
374
363
|
|
|
364
|
+
export declare function RiskBadge(props: RiskBadgeProps): JSX_2.Element;
|
|
365
|
+
|
|
366
|
+
export declare interface RiskBadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof RiskBadgePropVariants> {
|
|
367
|
+
color?: ColorOptions;
|
|
368
|
+
outlined: boolean;
|
|
369
|
+
label?: string;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
declare const RiskBadgePropVariants: (props?: ({
|
|
373
|
+
type?: "labeled" | "sm-circle" | "md-circle" | null | undefined;
|
|
374
|
+
} & ClassProp) | undefined) => string;
|
|
375
|
+
|
|
375
376
|
declare type RootProps = React_2.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>;
|
|
376
377
|
|
|
377
378
|
export declare const Select: React_2.FC<SelectPrimitive.SelectProps>;
|