@bloodhoundenterprise/doodleui 1.0.0-alpha.10 → 1.0.0-alpha.11

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="https://img.shields.io/badge/version-1.0.0--alpha.10-teal" alt="version 1.0.0-alpha.10"/>
2
+ <img src="https://img.shields.io/badge/version-1.0.0--alpha.11-teal" alt="version 1.0.0-alpha.11"/>
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 20.x](https://nodejs.org/)
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
@@ -751,24 +751,28 @@ const Ao = x.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(oa, { r
751
751
  Ao.displayName = oa.displayName;
752
752
  const Oo = x.forwardRef((e, t) => /* @__PURE__ */ f(ia, { ref: t, ...e }));
753
753
  Oo.displayName = ia.displayName;
754
- const ml = x.forwardRef(({ label: e, icon: t, color: n, ...a }, r) => /* @__PURE__ */ V(
755
- "div",
756
- {
757
- ref: r,
758
- className: g([
759
- "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",
760
- t && "pr-3"
761
- ]),
762
- style: {
763
- borderColor: n
764
- },
765
- ...a,
766
- children: [
767
- t && /* @__PURE__ */ f("span", { style: { color: n }, children: t }),
768
- e
769
- ]
770
- }
771
- )), Ro = x.forwardRef(({ className: e, type: t, ...n }, a) => /* @__PURE__ */ f(
754
+ const ml = x.forwardRef(
755
+ ({ label: e, icon: t, color: n, backgroundColor: a, className: r, ...o }, i) => /* @__PURE__ */ V(
756
+ "div",
757
+ {
758
+ ref: i,
759
+ ...o,
760
+ className: g([
761
+ "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",
762
+ t && "pr-3",
763
+ r
764
+ ]),
765
+ style: {
766
+ borderColor: n,
767
+ backgroundColor: a
768
+ },
769
+ children: [
770
+ t && /* @__PURE__ */ f("span", { style: { color: n }, children: t }),
771
+ e
772
+ ]
773
+ }
774
+ )
775
+ ), Ro = x.forwardRef(({ className: e, type: t, ...n }, a) => /* @__PURE__ */ f(
772
776
  "input",
773
777
  {
774
778
  type: t,
@@ -4759,7 +4763,7 @@ export {
4759
4763
  eo as AccordionContent,
4760
4764
  Zr as AccordionHeader,
4761
4765
  Qr as AccordionItem,
4762
- rl as Badge,
4766
+ ml as Badge,
4763
4767
  Ft as Button,
4764
4768
  ze as ButtonVariants,
4765
4769
  oo as Calendar,
@@ -4790,7 +4794,6 @@ export {
4790
4794
  cl as DialogTrigger,
4791
4795
  kl as DoodleUIPlugin,
4792
4796
  wl as DoodleUIPreset,
4793
- ml as IconBadge,
4794
4797
  Ro as Input,
4795
4798
  Io as Label,
4796
4799
  pl as Pagination,
@@ -4804,6 +4807,7 @@ export {
4804
4807
  Hs as PopoverContent,
4805
4808
  hl as PopoverTrigger,
4806
4809
  yl as RadialGauge,
4810
+ rl as RiskBadge,
4807
4811
  da as Select,
4808
4812
  jt as SelectContent,
4809
4813
  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 function Badge(props: BadgeProps): JSX_2.Element;
35
+ export declare const Badge: React_2.ForwardRefExoticComponent<BadgeProps & React_2.RefAttributes<HTMLDivElement>>;
36
36
 
37
- export declare interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof BadgePropVariants> {
38
- color?: ColorOptions;
39
- outlined: boolean;
40
- label?: string;
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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloodhoundenterprise/doodleui",
3
- "version": "1.0.0-alpha.10",
3
+ "version": "1.0.0-alpha.11",
4
4
  "type": "module",
5
5
  "author": "SpecterOps",
6
6
  "repository": {