maquinaweb-ui 2.42.2 → 2.44.0

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.
@@ -41,4 +41,4 @@ function Button({ className, variant, size, asChild = false,...props }) {
41
41
 
42
42
  //#endregion
43
43
  export { buttonVariants as n, Button as t };
44
- //# sourceMappingURL=button-B3nLhVyZ.js.map
44
+ //# sourceMappingURL=button-gwL9KI3Y.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-B3nLhVyZ.js","names":[],"sources":["../src/components/ui/button.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\n\nimport { cn } from '@/lib/utils';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive:\n 'bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',\n outline:\n 'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',\n secondary:\n 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost:\n 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n size: {\n default: 'h-9 px-4 py-2 has-[>svg]:px-3',\n sm: 'h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5',\n lg: 'h-10 rounded-md px-6 has-[>svg]:px-4',\n icon: 'size-9',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nfunction Button({\n className,\n variant,\n size,\n asChild = false,\n ...props\n}: React.ComponentProps<'button'> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n }) {\n const Comp = asChild ? Slot : 'button';\n\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n data-slot=\"button\"\n {...(props as any)}\n />\n );\n}\n\nexport { Button, buttonVariants };\n"],"mappings":";;;;;;;AAOA,MAAM,iBAAiB,IACrB,+bACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,aACE;GACF,SACE;GACF,WACE;GACF,OACE;GACF,MAAM;GACP;EACD,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACJ,MAAM;GACP;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CACF;AAED,SAAS,OAAO,EACd,WACA,SACA,MACA,UAAU,MACV,GAAG,SAIA;AAGH,QACE,oBAHW,UAAU,OAAO;EAI1B,WAAW,GAAG,eAAe;GAAE;GAAS;GAAM;GAAW,CAAC,CAAC;EAC3D,aAAU;EACV,GAAK;GACL"}
1
+ {"version":3,"file":"button-gwL9KI3Y.js","names":[],"sources":["../src/components/ui/button.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\n\nimport { cn } from '@/lib/utils';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive:\n 'bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',\n outline:\n 'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',\n secondary:\n 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost:\n 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n size: {\n default: 'h-9 px-4 py-2 has-[>svg]:px-3',\n sm: 'h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5',\n lg: 'h-10 rounded-md px-6 has-[>svg]:px-4',\n icon: 'size-9',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nfunction Button({\n className,\n variant,\n size,\n asChild = false,\n ...props\n}: React.ComponentProps<'button'> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n }) {\n const Comp = asChild ? Slot : 'button';\n\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n data-slot=\"button\"\n {...(props as any)}\n />\n );\n}\n\nexport { Button, buttonVariants };\n"],"mappings":";;;;;;;AAOA,MAAM,iBAAiB,IACrB,+bACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,aACE;GACF,SACE;GACF,WACE;GACF,OACE;GACF,MAAM;GACP;EACD,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACJ,MAAM;GACP;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CACF;AAED,SAAS,OAAO,EACd,WACA,SACA,MACA,UAAU,MACV,GAAG,SAIA;AAGH,QACE,oBAHW,UAAU,OAAO;EAI1B,WAAW,GAAG,eAAe;GAAE;GAAS;GAAM;GAAW,CAAC,CAAC;EAC3D,aAAU;EACV,GAAK;GACL"}
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps, ElementType } from "react";
2
- import * as react_jsx_runtime6 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/container-animation/container-animation.d.ts
5
5
  type ContainerAnimationProps<T extends ElementType = 'div'> = ComponentProps<'div'> & ComponentProps<T> & {
@@ -23,7 +23,7 @@ declare const ContainerAnimation: <T extends ElementType = "div">({
23
23
  distance,
24
24
  hideNotInView,
25
25
  ...props
26
- }: ContainerAnimationProps<T>) => react_jsx_runtime6.JSX.Element;
26
+ }: ContainerAnimationProps<T>) => react_jsx_runtime0.JSX.Element;
27
27
  //#endregion
28
28
  export { ContainerAnimation, type ContainerAnimationProps };
29
29
  //# sourceMappingURL=container-animation.d.ts.map
@@ -5,8 +5,8 @@ import { t as cn } from "./utils-C8_amEgK.js";
5
5
  import "./label-Bkg7B2j8.js";
6
6
  import { n as withMask, t as Input } from "./input-Bs61WBGW.js";
7
7
  import { a as FormLabel, i as FormItem, n as FormDescription, o as FormMessage, r as FormFieldContext, t as InputHelp } from "./input-help-D1JqF0YH.js";
8
- import { n as buttonVariants, t as Button } from "./button-B3nLhVyZ.js";
9
- import { n as PopoverContent, r as PopoverTrigger, t as Popover } from "./popover-D9IIn0lW.js";
8
+ import { n as PopoverContent, r as PopoverTrigger, t as Popover } from "./popover-BQgd_AEd.js";
9
+ import { n as buttonVariants, t as Button } from "./button-gwL9KI3Y.js";
10
10
  import { useController, useFormContext } from "react-hook-form";
11
11
  import * as React from "react";
12
12
  import { useEffect, useState } from "react";
@@ -5,7 +5,7 @@ import { t as cn } from "./utils-C8_amEgK.js";
5
5
  import "./label-Bkg7B2j8.js";
6
6
  import { n as withMask, t as Input } from "./input-Bs61WBGW.js";
7
7
  import { a as FormLabel, i as FormItem, o as FormMessage, t as InputHelp } from "./input-help-D1JqF0YH.js";
8
- import { n as PopoverContent, r as PopoverTrigger, t as Popover } from "./popover-D9IIn0lW.js";
8
+ import { n as PopoverContent, r as PopoverTrigger, t as Popover } from "./popover-BQgd_AEd.js";
9
9
  import { t as ScrollBar } from "./scroll-area-C1kW_eA9.js";
10
10
  import { useController, useFormContext } from "react-hook-form";
11
11
  import { useCallback, useEffect, useState } from "react";
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/page-header/page-header.d.ts
4
4
  interface PageHeaderProps {
@@ -10,7 +10,7 @@ declare function PageHeader({
10
10
  title,
11
11
  help,
12
12
  description
13
- }: PageHeaderProps): react_jsx_runtime5.JSX.Element;
13
+ }: PageHeaderProps): react_jsx_runtime2.JSX.Element;
14
14
  //#endregion
15
15
  export { PageHeader, type PageHeaderProps };
16
16
  //# sourceMappingURL=page-header.d.ts.map
@@ -28,4 +28,4 @@ function PopoverContent({ className, align = "center", sideOffset = 4, withPorta
28
28
 
29
29
  //#endregion
30
30
  export { PopoverContent as n, PopoverTrigger as r, Popover as t };
31
- //# sourceMappingURL=popover-D9IIn0lW.js.map
31
+ //# sourceMappingURL=popover-BQgd_AEd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover-D9IIn0lW.js","names":[],"sources":["../src/components/ui/popover.tsx"],"sourcesContent":["'use client';\n\nimport { Fragment, useMemo } from 'react';\n\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\n\nimport { cn } from '@/lib/utils';\n\nfunction Popover({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n withPortal = false,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content> & {\n withPortal?: boolean;\n}) {\n const Container = useMemo(() => withPortal ? PopoverPrimitive.Portal : (Fragment as any), [withPortal]);\n\n return (\n <Container>\n <PopoverPrimitive.Content\n align={align}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden',\n className\n )}\n data-slot=\"popover-content\"\n sideOffset={sideOffset}\n {...props}\n />\n </Container>\n );\n}\n\nfunction PopoverAnchor({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };\n"],"mappings":";;;;;;AAQA,SAAS,QAAQ,EACf,GAAG,SACkD;AACrD,QAAO,oBAAC,iBAAiB;EAAK,aAAU;EAAU,GAAI;GAAS;;AAGjE,SAAS,eAAe,EACtB,GAAG,SACqD;AACxD,QAAO,oBAAC,iBAAiB;EAAQ,aAAU;EAAkB,GAAI;GAAS;;AAG5E,SAAS,eAAe,EACtB,WACA,QAAQ,UACR,aAAa,GACb,aAAa,MACb,GAAG,SAGF;AAGD,QACE,oBAHgB,cAAc,aAAa,iBAAiB,SAAU,UAAkB,CAAC,WAAW,CAAC,cAInG,oBAAC,iBAAiB;EACT;EACP,WAAW,GACT,keACA,UACD;EACD,aAAU;EACE;EACZ,GAAI;GACJ,GACQ"}
1
+ {"version":3,"file":"popover-BQgd_AEd.js","names":[],"sources":["../src/components/ui/popover.tsx"],"sourcesContent":["'use client';\n\nimport { Fragment, useMemo } from 'react';\n\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\n\nimport { cn } from '@/lib/utils';\n\nfunction Popover({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n withPortal = false,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content> & {\n withPortal?: boolean;\n}) {\n const Container = useMemo(() => withPortal ? PopoverPrimitive.Portal : (Fragment as any), [withPortal]);\n\n return (\n <Container>\n <PopoverPrimitive.Content\n align={align}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden',\n className\n )}\n data-slot=\"popover-content\"\n sideOffset={sideOffset}\n {...props}\n />\n </Container>\n );\n}\n\nfunction PopoverAnchor({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };\n"],"mappings":";;;;;;AAQA,SAAS,QAAQ,EACf,GAAG,SACkD;AACrD,QAAO,oBAAC,iBAAiB;EAAK,aAAU;EAAU,GAAI;GAAS;;AAGjE,SAAS,eAAe,EACtB,GAAG,SACqD;AACxD,QAAO,oBAAC,iBAAiB;EAAQ,aAAU;EAAkB,GAAI;GAAS;;AAG5E,SAAS,eAAe,EACtB,WACA,QAAQ,UACR,aAAa,GACb,aAAa,MACb,GAAG,SAGF;AAGD,QACE,oBAHgB,cAAc,aAAa,iBAAiB,SAAU,UAAkB,CAAC,WAAW,CAAC,cAInG,oBAAC,iBAAiB;EACT;EACP,WAAW,GACT,keACA,UACD;EACD,aAAU;EACE;EACZ,GAAI;GACJ,GACQ"}
@@ -1,5 +1,5 @@
1
1
  import { FieldPath, FieldPathValue, FieldValues, UseControllerProps } from "react-hook-form";
2
- import * as react_jsx_runtime7 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
3
3
  import { Options } from "nuqs";
4
4
  import { PopoverProps } from "@radix-ui/react-popover";
5
5
 
@@ -76,7 +76,7 @@ declare function RemoteSelectorField<T, TFieldValues extends FieldValues = Field
76
76
  ...props
77
77
  }: RemoteSelectorFieldProps<TFieldValues, TFieldName> & BaseRemoteSelectorProps<T> & {
78
78
  withPortal?: boolean;
79
- }): react_jsx_runtime7.JSX.Element;
79
+ }): react_jsx_runtime9.JSX.Element;
80
80
  interface RemoteSelectorQueryProps<T> extends BaseRemoteSelectorProps<T> {
81
81
  name: string;
82
82
  defaultValue?: string;
@@ -96,7 +96,7 @@ declare function RemoteSelectorQuery<T>({
96
96
  fieldLabel,
97
97
  type,
98
98
  ...props
99
- }: RemoteSelectorQueryProps<T>): react_jsx_runtime7.JSX.Element;
99
+ }: RemoteSelectorQueryProps<T>): react_jsx_runtime9.JSX.Element;
100
100
  //#endregion
101
101
  export { type BaseRemoteSelectorProps, RemoteSelectorField as RemoteSelector, RemoteSelectorField, type RemoteSelectorFieldProps, RemoteSelectorQuery, type RemoteSelectorQueryProps, type TUseData };
102
102
  //# sourceMappingURL=remote-selector.d.ts.map
@@ -4,8 +4,8 @@
4
4
  import { t as cn } from "./utils-C8_amEgK.js";
5
5
  import "./label-Bkg7B2j8.js";
6
6
  import { i as FormItem, o as FormMessage, t as InputHelp } from "./input-help-D1JqF0YH.js";
7
- import { t as Button } from "./button-B3nLhVyZ.js";
8
- import { n as PopoverContent, r as PopoverTrigger, t as Popover } from "./popover-D9IIn0lW.js";
7
+ import { n as PopoverContent, r as PopoverTrigger, t as Popover } from "./popover-BQgd_AEd.js";
8
+ import { t as Button } from "./button-gwL9KI3Y.js";
9
9
  import { t as ScrollBar } from "./scroll-area-C1kW_eA9.js";
10
10
  import { useController, useFormContext } from "react-hook-form";
11
11
  import * as React from "react";
@@ -0,0 +1,34 @@
1
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
2
+
3
+ //#region src/components/system-switcher/SystemSwitcherClient.d.ts
4
+ interface System {
5
+ id: number;
6
+ name: string;
7
+ slug?: string;
8
+ has_access?: boolean;
9
+ logo?: string | null;
10
+ landing_page_url?: string | null;
11
+ domains?: {
12
+ name: string;
13
+ }[];
14
+ }
15
+ declare function SystemSwitcherClient({
16
+ systems,
17
+ currentSystemId
18
+ }: {
19
+ systems: System[];
20
+ currentSystemId: number;
21
+ }): react_jsx_runtime1.JSX.Element | null;
22
+ //#endregion
23
+ //#region src/components/system-switcher/SystemSwitcher.d.ts
24
+ interface SystemSwitcherProps {
25
+ token?: string;
26
+ backendUrl?: string;
27
+ }
28
+ declare function SystemSwitcher({
29
+ token,
30
+ backendUrl
31
+ }: SystemSwitcherProps): Promise<react_jsx_runtime1.JSX.Element>;
32
+ //#endregion
33
+ export { System, SystemSwitcher, SystemSwitcherClient, SystemSwitcherProps };
34
+ //# sourceMappingURL=system-switcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-switcher.d.ts","names":[],"sources":["../src/components/system-switcher/SystemSwitcherClient.tsx","../src/components/system-switcher/SystemSwitcher.tsx"],"sourcesContent":[],"mappings":";;;UAYiB,MAAA;;;EAAA,IAAA,CAAA,EAAA,MAAM;EAUP,UAAA,CAAA,EAAA,OAAA;EAAuB,IAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAAS,gBAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAA8B,OAAA,CAAA,EAAA;IAAmC,IAAA,EAAA,MAAA;EAAA,CAAA,EAAA;;iBAAjG,oBAAA;;;ACbhB;WDa8E;EClB7D,eAAA,EAAA,MAAmB;AAKpC,CAAA,CAAA,EDaiH,kBAAA,CAAA,GAAA,CAAA,OAAA,GCb7E,IAAA;;;UALnB,mBAAA;;;ADQjB;AAUgB,iBCbM,cAAA,CDac;EAAA,KAAA;EAAA;AAAA,CAAA,ECbwB,mBDaxB,CAAA,ECb2C,ODa3C,CCb2C,kBAAA,CAAA,GAAA,CAAA,OAAA,CDa3C"}