ivt 0.8.3 → 0.8.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.
@@ -6,7 +6,10 @@ import React__default from 'react';
6
6
  declare const alertVariants: (props?: ({
7
7
  variant?: "default" | "destructive" | "warning" | "info" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
- declare function Alert({ className, variant, ...props }: React__default.ComponentProps<"div"> & VariantProps<typeof alertVariants>): react_jsx_runtime.JSX.Element;
9
+ interface AlertProps extends React__default.ComponentProps<"div">, VariantProps<typeof alertVariants> {
10
+ subtle?: boolean;
11
+ }
12
+ declare function Alert({ className, variant, subtle, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
10
13
  declare function AlertTitle({ className, ...props }: React__default.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
11
14
  declare function AlertDescription({ className, ...props }: React__default.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
12
15
 
@@ -1,4 +1,4 @@
1
- export { A as Alert, b as AlertDescription, a as AlertTitle } from '../chunks/alert-DHxNsPyM.mjs';
1
+ export { A as Alert, b as AlertDescription, a as AlertTitle } from '../chunks/alert-DHUGrVll.mjs';
2
2
  import 'class-variance-authority';
3
3
  import 'react';
4
4
  import '../chunks/utils-Dws4Ft8U.mjs';
@@ -29,7 +29,7 @@ type BadgeVariants = VariantProps<typeof badgeVariants>["variant"];
29
29
  interface BadgeProps extends React__default.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
30
30
  }
31
31
  declare const badgeVariants: (props?: ({
32
- variant?: "default" | "secondary" | "destructive" | "positive" | "warning" | "info" | "outline" | null | undefined;
32
+ variant?: "default" | "destructive" | "outline" | "secondary" | "positive" | "warning" | "info" | null | undefined;
33
33
  subtle?: boolean | null | undefined;
34
34
  } & class_variance_authority_types.ClassProp) | undefined) => string;
35
35
 
@@ -53,7 +53,7 @@ interface BadgeListLimitedProps {
53
53
  declare const BadgeListLimited: React__default.FC<BadgeListLimitedProps>;
54
54
 
55
55
  declare const buttonVariants: (props?: ({
56
- variant?: "default" | "secondary" | "destructive" | "outline" | "selection" | "upload" | "ghost" | "link" | "table" | null | undefined;
56
+ variant?: "default" | "destructive" | "outline" | "secondary" | "selection" | "upload" | "ghost" | "link" | "table" | null | undefined;
57
57
  size?: "default" | "sm" | "lg" | "icon" | "normal" | "icon-sm" | "icon-lg" | null | undefined;
58
58
  } & class_variance_authority_types.ClassProp) | undefined) => string;
59
59
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -4,7 +4,7 @@ import { B as Badge } from '../chunks/badge-BUI8RIXy.mjs';
4
4
  import { c as TooltipProvider, T as Tooltip, a as TooltipTrigger, b as TooltipContent } from '../chunks/tooltip-CI9dbI1p.mjs';
5
5
  export { C as CalendarRange } from '../chunks/CalendarRange-DucTFDzH.mjs';
6
6
  import { c as cn } from '../chunks/utils-Dws4Ft8U.mjs';
7
- import { A as Alert, a as AlertTitle, b as AlertDescription } from '../chunks/alert-DHxNsPyM.mjs';
7
+ import { A as Alert, a as AlertTitle, b as AlertDescription } from '../chunks/alert-DHUGrVll.mjs';
8
8
  import { I as Info } from '../chunks/TooltipIndicator-B9oMD_x3.mjs';
9
9
  export { T as TooltipIndicator } from '../chunks/TooltipIndicator-B9oMD_x3.mjs';
10
10
  import { X } from '../chunks/x-CQ0W-nWi.mjs';
@@ -15,13 +15,13 @@ const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm g
15
15
  variant: "default"
16
16
  }
17
17
  });
18
- function Alert({ className, variant, ...props }) {
18
+ function Alert({ className, variant, subtle = false, ...props }) {
19
19
  return /*#__PURE__*/ React__default.createElement("div", {
20
20
  "data-slot": "alert",
21
21
  role: "alert",
22
22
  className: cn(alertVariants({
23
23
  variant
24
- }), className),
24
+ }), subtle && "bg-background", className),
25
25
  ...props
26
26
  });
27
27
  }
@@ -41,4 +41,4 @@ function AlertDescription({ className, ...props }) {
41
41
  }
42
42
 
43
43
  export { Alert as A, AlertTitle as a, AlertDescription as b };
44
- //# sourceMappingURL=alert-DHxNsPyM.mjs.map
44
+ //# sourceMappingURL=alert-DHUGrVll.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert-DHUGrVll.mjs","sources":["../../src/components/ui/alert/alert.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport React from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nconst alertVariants = cva(\n\t\"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current\",\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault:\n\t\t\t\t\t\"bg-card text-card-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-card-foreground/90\",\n\t\t\t\tdestructive:\n\t\t\t\t\t\"text-destructive border-destructive bg-destructive-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90\",\n\t\t\t\twarning:\n\t\t\t\t\t\"text-warning border-warning bg-warning-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-warning/90\",\n\t\t\t\tinfo: \"text-foreground bg-info-foreground border-info [&>svg]:text-info *:data-[slot=alert-description]:text-foreground\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: \"default\",\n\t\t},\n\t},\n);\n\ninterface AlertProps extends React.ComponentProps<\"div\">, VariantProps<typeof alertVariants> {\n\tsubtle?: boolean;\n}\n\nfunction Alert({ className, variant, subtle = false, ...props }: AlertProps) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert\"\n\t\t\trole=\"alert\"\n\t\t\tclassName={cn(alertVariants({ variant }), subtle && \"bg-background\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert-title\"\n\t\t\tclassName={cn(\"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert-description\"\n\t\t\tclassName={cn(\n\t\t\t\t\"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Alert, AlertTitle, AlertDescription };\n"],"names":["alertVariants","cva","variants","variant","default","destructive","warning","info","defaultVariants","Alert","className","subtle","props","React","div","data-slot","role","cn","AlertTitle","AlertDescription"],"mappings":";;;;AAIA,MAAMA,aAAAA,GAAgBC,IACrB,mOAAA,EACA;IACCC,QAAAA,EAAU;QACTC,OAAAA,EAAS;YACRC,OAAAA,EACC,2GAAA;YACDC,WAAAA,EACC,wIAAA;YACDC,OAAAA,EACC,wHAAA;YACDC,IAAAA,EAAM;AACP;AACD,KAAA;IACAC,eAAAA,EAAiB;QAChBL,OAAAA,EAAS;AACV;AACD,CAAA,CAAA;AAOD,SAASM,KAAAA,CAAM,EAAEC,SAAS,EAAEP,OAAO,EAAEQ,MAAAA,GAAS,KAAK,EAAE,GAAGC,KAAAA,EAAmB,EAAA;AAC1E,IAAA,qBACCC,cAAA,CAAA,aAAA,CAACC,KAAAA,EAAAA;QACAC,WAAAA,EAAU,OAAA;QACVC,IAAAA,EAAK,OAAA;AACLN,QAAAA,SAAAA,EAAWO,GAAGjB,aAAAA,CAAc;AAAEG,YAAAA;AAAQ,SAAA,CAAA,EAAIQ,UAAU,eAAA,EAAiBD,SAAAA,CAAAA;AACpE,QAAA,GAAGE;;AAGP;AAEA,SAASM,UAAAA,CAAW,EAAER,SAAS,EAAE,GAAGE,KAAAA,EAAoC,EAAA;AACvE,IAAA,qBACCC,cAAA,CAAA,aAAA,CAACC,KAAAA,EAAAA;QACAC,WAAAA,EAAU,aAAA;AACVL,QAAAA,SAAAA,EAAWO,GAAG,6DAAA,EAA+DP,SAAAA,CAAAA;AAC5E,QAAA,GAAGE;;AAGP;AAEA,SAASO,gBAAAA,CAAiB,EAAET,SAAS,EAAE,GAAGE,KAAAA,EAAoC,EAAA;AAC7E,IAAA,qBACCC,cAAA,CAAA,aAAA,CAACC,KAAAA,EAAAA;QACAC,WAAAA,EAAU,mBAAA;AACVL,QAAAA,SAAAA,EAAWO,GACV,gGAAA,EACAP,SAAAA,CAAAA;AAEA,QAAA,GAAGE;;AAGP;;;;"}
@@ -4,7 +4,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const buttonVariants: (props?: ({
7
- variant?: "default" | "secondary" | "destructive" | "outline" | "selection" | "upload" | "ghost" | "link" | "table" | null | undefined;
7
+ variant?: "default" | "destructive" | "outline" | "secondary" | "selection" | "upload" | "ghost" | "link" | "table" | null | undefined;
8
8
  size?: "default" | "sm" | "lg" | "icon" | "normal" | "icon-sm" | "icon-lg" | null | undefined;
9
9
  } & class_variance_authority_types.ClassProp) | undefined) => string;
10
10
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -8,7 +8,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
8
8
 
9
9
  type BadgeVariants = VariantProps<typeof badgeVariants>["variant"];
10
10
  declare const badgeVariants: (props?: ({
11
- variant?: "default" | "secondary" | "destructive" | "positive" | "warning" | "info" | "outline" | null | undefined;
11
+ variant?: "default" | "destructive" | "outline" | "secondary" | "positive" | "warning" | "info" | null | undefined;
12
12
  subtle?: boolean | null | undefined;
13
13
  } & class_variance_authority_types.ClassProp) | undefined) => string;
14
14
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Investtools",
3
3
  "name": "ivt",
4
- "version": "0.8.3",
4
+ "version": "0.8.4",
5
5
  "description": "Ivt Components Library",
6
6
  "keywords": [
7
7
  "ivt",
@@ -1 +0,0 @@
1
- {"version":3,"file":"alert-DHxNsPyM.mjs","sources":["../../src/components/ui/alert/alert.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport React from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nconst alertVariants = cva(\n\t\"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current\",\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault:\n\t\t\t\t\t\"bg-card text-card-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-card-foreground/90\",\n\t\t\t\tdestructive:\n\t\t\t\t\t\"text-destructive border-destructive bg-destructive-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90\",\n\t\t\t\twarning:\n\t\t\t\t\t\"text-warning border-warning bg-warning-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-warning/90\",\n\t\t\t\tinfo: \"text-foreground bg-info-foreground border-info [&>svg]:text-info *:data-[slot=alert-description]:text-foreground\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: \"default\",\n\t\t},\n\t},\n);\n\nfunction Alert({\n\tclassName,\n\tvariant,\n\t...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof alertVariants>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert\"\n\t\t\trole=\"alert\"\n\t\t\tclassName={cn(alertVariants({ variant }), className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert-title\"\n\t\t\tclassName={cn(\"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert-description\"\n\t\t\tclassName={cn(\n\t\t\t\t\"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Alert, AlertTitle, AlertDescription };\n"],"names":["alertVariants","cva","variants","variant","default","destructive","warning","info","defaultVariants","Alert","className","props","React","div","data-slot","role","cn","AlertTitle","AlertDescription"],"mappings":";;;;AAIA,MAAMA,aAAAA,GAAgBC,IACrB,mOAAA,EACA;IACCC,QAAAA,EAAU;QACTC,OAAAA,EAAS;YACRC,OAAAA,EACC,2GAAA;YACDC,WAAAA,EACC,wIAAA;YACDC,OAAAA,EACC,wHAAA;YACDC,IAAAA,EAAM;AACP;AACD,KAAA;IACAC,eAAAA,EAAiB;QAChBL,OAAAA,EAAS;AACV;AACD,CAAA,CAAA;AAGD,SAASM,MAAM,EACdC,SAAS,EACTP,OAAO,EACP,GAAGQ,KAAAA,EAC+D,EAAA;AAClE,IAAA,qBACCC,cAAA,CAAA,aAAA,CAACC,KAAAA,EAAAA;QACAC,WAAAA,EAAU,OAAA;QACVC,IAAAA,EAAK,OAAA;AACLL,QAAAA,SAAAA,EAAWM,GAAGhB,aAAAA,CAAc;AAAEG,YAAAA;SAAQ,CAAA,EAAIO,SAAAA,CAAAA;AACzC,QAAA,GAAGC;;AAGP;AAEA,SAASM,UAAAA,CAAW,EAAEP,SAAS,EAAE,GAAGC,KAAAA,EAAoC,EAAA;AACvE,IAAA,qBACCC,cAAA,CAAA,aAAA,CAACC,KAAAA,EAAAA;QACAC,WAAAA,EAAU,aAAA;AACVJ,QAAAA,SAAAA,EAAWM,GAAG,6DAAA,EAA+DN,SAAAA,CAAAA;AAC5E,QAAA,GAAGC;;AAGP;AAEA,SAASO,gBAAAA,CAAiB,EAAER,SAAS,EAAE,GAAGC,KAAAA,EAAoC,EAAA;AAC7E,IAAA,qBACCC,cAAA,CAAA,aAAA,CAACC,KAAAA,EAAAA;QACAC,WAAAA,EAAU,mBAAA;AACVJ,QAAAA,SAAAA,EAAWM,GACV,gGAAA,EACAN,SAAAA,CAAAA;AAEA,QAAA,GAAGC;;AAGP;;;;"}