@cryptlex/web-components 1.3.3 → 1.3.5
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/components/data-table/column-picker.es.js +15 -17
- package/dist/components/data-table/column-picker.es.js.map +1 -1
- package/dist/components/data-table/data-table.es.js +60 -57
- package/dist/components/data-table/data-table.es.js.map +1 -1
- package/dist/components/data-table/table-actions.es.js +19 -23
- package/dist/components/data-table/table-actions.es.js.map +1 -1
- package/dist/components/data-table/table-commons.es.js +21 -24
- package/dist/components/data-table/table-commons.es.js.map +1 -1
- package/dist/components/data-table/table-content.es.js +21 -17
- package/dist/components/data-table/table-content.es.js.map +1 -1
- package/dist/components/data-table/table-utils/createTableFetchFn.es.js +8 -9
- package/dist/components/data-table/table-utils/createTableFetchFn.es.js.map +1 -1
- package/dist/components/data-table/table-utils/types.es.js.map +1 -1
- package/dist/components/key-value-card/key-value-card.es.js +85 -0
- package/dist/components/key-value-card/key-value-card.es.js.map +1 -0
- package/dist/components/sidebar/app-layout.es.js +14 -27
- package/dist/components/sidebar/app-layout.es.js.map +1 -1
- package/dist/components/sidebar/nav-main.es.js +44 -42
- package/dist/components/sidebar/nav-main.es.js.map +1 -1
- package/dist/components/static-data-table/data-table.es.js +6 -6
- package/dist/components/static-data-table/data-table.es.js.map +1 -1
- package/dist/components/ui/avatar.es.js +12 -14
- package/dist/components/ui/avatar.es.js.map +1 -1
- package/dist/components/ui/button.es.js +11 -10
- package/dist/components/ui/button.es.js.map +1 -1
- package/dist/components/ui/chart.es.js +48 -59
- package/dist/components/ui/chart.es.js.map +1 -1
- package/dist/components/ui/collapsible.es.js +1 -0
- package/dist/components/ui/collapsible.es.js.map +1 -1
- package/dist/components/ui/copy-button.es.js +72 -0
- package/dist/components/ui/copy-button.es.js.map +1 -0
- package/dist/components/ui/dialog.es.js +23 -22
- package/dist/components/ui/dialog.es.js.map +1 -1
- package/dist/components/ui/drawer.es.js +21 -57
- package/dist/components/ui/drawer.es.js.map +1 -1
- package/dist/components/ui/form.es.js +28 -29
- package/dist/components/ui/form.es.js.map +1 -1
- package/dist/components/ui/link-button.es.js +22 -0
- package/dist/components/ui/link-button.es.js.map +1 -0
- package/dist/components/ui/mutli-select.es.js +15 -15
- package/dist/components/ui/mutli-select.es.js.map +1 -1
- package/dist/components/ui/pagination.es.js +20 -20
- package/dist/components/ui/password-input.es.js +9 -8
- package/dist/components/ui/password-input.es.js.map +1 -1
- package/dist/components/ui/search-input.es.js +5 -4
- package/dist/components/ui/search-input.es.js.map +1 -1
- package/dist/components/ui/select.es.js +17 -22
- package/dist/components/ui/select.es.js.map +1 -1
- package/dist/components/ui/separator.es.js +17 -18
- package/dist/components/ui/separator.es.js.map +1 -1
- package/dist/components/ui/sheet.es.js +1 -0
- package/dist/components/ui/sheet.es.js.map +1 -1
- package/dist/components/ui/sonner.es.js +3 -2
- package/dist/components/ui/sonner.es.js.map +1 -1
- package/dist/components/ui/table.es.js +19 -19
- package/dist/components/ui/table.es.js.map +1 -1
- package/dist/components/ui/tooltip.es.js +9 -8
- package/dist/components/ui/tooltip.es.js.map +1 -1
- package/dist/index.es.d.ts +55 -82
- package/dist/index.es.js +215 -220
- package/dist/utils/index.es.js +19 -14
- package/dist/utils/index.es.js.map +1 -1
- package/package.json +10 -6
- package/tailwind.preset.ts +55 -47
- package/dist/components/data-table/table-utils/fetch.es.js +0 -40
- package/dist/components/data-table/table-utils/fetch.es.js.map +0 -1
- package/dist/components/info-card/info-card.es.js +0 -74
- package/dist/components/info-card/info-card.es.js.map +0 -1
- package/dist/components/ui/dynamic-input.es.js +0 -141
- package/dist/components/ui/dynamic-input.es.js.map +0 -1
|
@@ -1,23 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import * as d from "react";
|
|
3
3
|
import * as o from "@radix-ui/react-tooltip";
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import * as d from "react";
|
|
5
|
+
import { cn as n } from "../../utils/index.es.js";
|
|
6
|
+
const p = o.Provider, f = o.Root, c = o.Trigger, s = d.forwardRef(({ className: e, sideOffset: i = 4, ...a }, r) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ t(
|
|
6
7
|
o.Content,
|
|
7
8
|
{
|
|
8
9
|
ref: r,
|
|
9
|
-
sideOffset:
|
|
10
|
-
className:
|
|
10
|
+
sideOffset: i,
|
|
11
|
+
className: n(
|
|
11
12
|
"z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-caption text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",
|
|
12
|
-
|
|
13
|
+
e
|
|
13
14
|
),
|
|
14
15
|
...a
|
|
15
16
|
}
|
|
16
17
|
) }));
|
|
17
|
-
|
|
18
|
+
s.displayName = o.Content.displayName;
|
|
18
19
|
export {
|
|
19
20
|
f as Tooltip,
|
|
20
|
-
|
|
21
|
+
s as TooltipContent,
|
|
21
22
|
p as TooltipProvider,
|
|
22
23
|
c as TooltipTrigger
|
|
23
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.es.js","sources":["../../../lib/components/ui/tooltip.tsx"],"sourcesContent":["\"use client\"\n\nimport * as
|
|
1
|
+
{"version":3,"file":"tooltip.es.js","sources":["../../../lib/components/ui/tooltip.tsx"],"sourcesContent":["\"use client\"\n\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\"\nimport * as React from 'react';\n\nimport { cn } from \"@/utils\"\n\nconst TooltipProvider = TooltipPrimitive.Provider\n\nconst Tooltip = TooltipPrimitive.Root\n\nconst TooltipTrigger = TooltipPrimitive.Trigger\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-caption text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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\",\n className\n )}\n {...props}\n />\n </TooltipPrimitive.Portal>\n))\nTooltipContent.displayName = TooltipPrimitive.Content.displayName\n\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };\n"],"names":["TooltipProvider","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","React","className","sideOffset","props","ref","jsx","cn"],"mappings":";;;;;AAOA,MAAMA,IAAkBC,EAAiB,UAEnCC,IAAUD,EAAiB,MAE3BE,IAAiBF,EAAiB,SAElCG,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,YAAAC,IAAa,GAAG,GAAGC,EAAS,GAAAC,MACzC,gBAAAC,EAAAT,EAAiB,QAAjB,EACC,UAAA,gBAAAS;AAAA,EAACT,EAAiB;AAAA,EAAjB;AAAA,IACC,KAAAQ;AAAA,IACA,YAAAF;AAAA,IACA,WAAWI;AAAA,MACT;AAAA,MACAL;AAAA,IACF;AAAA,IACC,GAAGE;AAAA,EAAA;AACN,GACF,CACD;AACDJ,EAAe,cAAcH,EAAiB,QAAQ;"}
|
package/dist/index.es.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ import { AllowInDimension } from 'recharts/types/util/types';
|
|
|
4
4
|
import { AnimationDuration } from 'recharts/types/util/types';
|
|
5
5
|
import { AnimationTiming } from 'recharts/types/util/types';
|
|
6
6
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
7
|
+
import { ButtonProps as ButtonProps_2 } from './button';
|
|
7
8
|
import { CartesianViewBox } from 'recharts/types/util/types';
|
|
8
9
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
9
10
|
import { ClassProp } from 'class-variance-authority/types';
|
|
10
11
|
import { ClassValue } from 'clsx';
|
|
11
|
-
import { ClientMethod } from 'openapi-fetch';
|
|
12
12
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
13
13
|
import { ColumnDef } from '@tanstack/react-table';
|
|
14
14
|
import { components } from '@cryptlex/web-api-types';
|
|
@@ -17,6 +17,7 @@ import { ControllerProps } from 'react-hook-form';
|
|
|
17
17
|
import { Coordinate } from 'recharts/types/util/types';
|
|
18
18
|
import { DayPicker } from 'react-day-picker';
|
|
19
19
|
import { default as default_2 } from 'react';
|
|
20
|
+
import { default as default_3 } from 'openapi-fetch';
|
|
20
21
|
import { DialogCloseProps } from '@radix-ui/react-dialog';
|
|
21
22
|
import { DialogContentProps } from '@radix-ui/react-dialog';
|
|
22
23
|
import { DialogDescriptionProps } from '@radix-ui/react-dialog';
|
|
@@ -32,10 +33,10 @@ import { FieldPath } from 'react-hook-form';
|
|
|
32
33
|
import { FieldValues } from 'react-hook-form';
|
|
33
34
|
import { FormProviderProps } from 'react-hook-form';
|
|
34
35
|
import { ForwardRefExoticComponent } from 'react';
|
|
36
|
+
import { InputProps as InputProps_2 } from './input';
|
|
35
37
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
36
38
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
37
39
|
import { LucideIcon } from 'lucide-react';
|
|
38
|
-
import { Middleware } from 'openapi-fetch';
|
|
39
40
|
import { NameType } from 'recharts/types/component/DefaultTooltipContent';
|
|
40
41
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
41
42
|
import { PaginationState } from '@tanstack/react-table';
|
|
@@ -69,8 +70,6 @@ export declare const AccordionItem: React_2.ForwardRefExoticComponent<Omit<Accor
|
|
|
69
70
|
|
|
70
71
|
export declare const AccordionTrigger: React_2.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
71
72
|
|
|
72
|
-
export declare const ActionTriggerButton: () => JSX_2.Element;
|
|
73
|
-
|
|
74
73
|
export declare function AppLayout({ data, user }: AppLayoutProps): JSX_2.Element;
|
|
75
74
|
|
|
76
75
|
export declare interface AppLayoutProps {
|
|
@@ -216,6 +215,8 @@ export declare const CHECK_BOX: AccessorKeyColumnDef<any, any>[];
|
|
|
216
215
|
|
|
217
216
|
export declare const Checkbox: React_2.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
218
217
|
|
|
218
|
+
declare type Client = ReturnType<typeof default_3<paths>>;
|
|
219
|
+
|
|
219
220
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
220
221
|
|
|
221
222
|
export declare const Collapsible: ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -328,20 +329,20 @@ export declare function convertCamelCaseToTitleCase(string: string): string;
|
|
|
328
329
|
*/
|
|
329
330
|
export declare function convertToTitleCase(input: string): string;
|
|
330
331
|
|
|
331
|
-
export declare function
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
332
|
+
export declare function CopyButton({ value, display, tooltipMessage, onCopy, }: CopyProps): JSX_2.Element;
|
|
333
|
+
|
|
334
|
+
declare interface CopyProps {
|
|
335
|
+
value: string;
|
|
336
|
+
display?: string;
|
|
337
|
+
tooltipMessage?: string;
|
|
338
|
+
className?: string;
|
|
339
|
+
size?: number;
|
|
340
|
+
onCopy?: () => void;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export declare function createTableFetchFn<_any, Return>(ctxclient: Client, path: GetPaths, params?: ParamsOption<any>): TableFetchFn<Return>;
|
|
344
|
+
|
|
345
|
+
export declare type CtxPortals = 'customer-portal' | 'system-portal' | 'reseller-portal' | 'admin-portal';
|
|
345
346
|
|
|
346
347
|
/** Application Names */
|
|
347
348
|
export declare type CtxProjectName = 'admin-portal' | 'customer-portal' | 'internal-portal' | 'reseller-portal';
|
|
@@ -394,10 +395,10 @@ export declare const DialogTitle: React_2.ForwardRefExoticComponent<Omit<DialogP
|
|
|
394
395
|
|
|
395
396
|
export declare const DialogTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
396
397
|
|
|
397
|
-
export declare type DisplayField = {
|
|
398
|
+
export declare type DisplayField<T> = {
|
|
398
399
|
display: string;
|
|
399
|
-
accessor:
|
|
400
|
-
type?: 'text' | 'badge' | 'boolean';
|
|
400
|
+
accessor: NestedKeyOf<T>;
|
|
401
|
+
type?: 'text' | 'badge' | 'boolean' | 'date' | 'yesno' | 'copyButton' | 'link';
|
|
401
402
|
transform?: (value: any) => React.ReactNode;
|
|
402
403
|
};
|
|
403
404
|
|
|
@@ -475,30 +476,6 @@ export declare enum DYNAMIC_INPUT_TARGET {
|
|
|
475
476
|
RESELLER = 2
|
|
476
477
|
}
|
|
477
478
|
|
|
478
|
-
export declare function DynamicInput({ onChange, target, placeholder }: DynamicInputProps): JSX_2.Element;
|
|
479
|
-
|
|
480
|
-
/**
|
|
481
|
-
*
|
|
482
|
-
* @param onChange
|
|
483
|
-
* @param target fthis is used to make the component generic and reusble for differnt use cases
|
|
484
|
-
* @param placeholder placeholder to be showing in the input for searching
|
|
485
|
-
* @returns return id of the seleced value, can be customized to return full selected value
|
|
486
|
-
*/
|
|
487
|
-
declare interface DynamicInputProps {
|
|
488
|
-
onChange: (id: any) => void;
|
|
489
|
-
target: DYNAMIC_INPUT_TARGET;
|
|
490
|
-
placeholder: string;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
/**
|
|
494
|
-
*
|
|
495
|
-
* @param url
|
|
496
|
-
* @param method
|
|
497
|
-
* @param body
|
|
498
|
-
* @returns
|
|
499
|
-
*/
|
|
500
|
-
export declare const fetchClient: (url: string, method: Methods, body?: any) => Promise<any>;
|
|
501
|
-
|
|
502
479
|
export declare type fieldsToDisplay = {
|
|
503
480
|
display: string;
|
|
504
481
|
accessor: string;
|
|
@@ -532,8 +509,6 @@ export declare const FormLabel: React_2.ForwardRefExoticComponent<Omit<LabelPrim
|
|
|
532
509
|
|
|
533
510
|
export declare const FormMessage: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLParagraphElement> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
534
511
|
|
|
535
|
-
export declare function getAccessToken(): string | null;
|
|
536
|
-
|
|
537
512
|
/**
|
|
538
513
|
* Format multiple license parameters (expired, suspended, revoked) into a single status
|
|
539
514
|
*/
|
|
@@ -548,6 +523,12 @@ export declare function getLicenseStatus(license: any): string;
|
|
|
548
523
|
*/
|
|
549
524
|
export declare function getLinkDisplay(display: string, url: string, stateData?: any): JSX_2.Element;
|
|
550
525
|
|
|
526
|
+
declare type GetPaths = {
|
|
527
|
+
[P in keyof paths]: paths[P] extends {
|
|
528
|
+
get: any;
|
|
529
|
+
} ? P : never;
|
|
530
|
+
}[keyof paths];
|
|
531
|
+
|
|
551
532
|
export declare function getResourceDisplayName(resourceName: string, portal: CtxProjectName): string;
|
|
552
533
|
|
|
553
534
|
/**
|
|
@@ -562,15 +543,6 @@ export declare function getValueFromData(data: any, accessor: string | number |
|
|
|
562
543
|
|
|
563
544
|
export declare const ID_COLUMN: AccessorKeyColumnDef<any, any>[];
|
|
564
545
|
|
|
565
|
-
export declare const InfoCard: React.FC<InfoCardProps>;
|
|
566
|
-
|
|
567
|
-
export declare interface InfoCardProps {
|
|
568
|
-
data: Record<string, any>;
|
|
569
|
-
label: string;
|
|
570
|
-
fields: DisplayField[];
|
|
571
|
-
className?: string;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
546
|
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
575
547
|
|
|
576
548
|
export declare const InputOTP: React_2.ForwardRefExoticComponent<(Omit<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
@@ -629,8 +601,28 @@ export declare type JwtDecode = {
|
|
|
629
601
|
sadmin?: string;
|
|
630
602
|
};
|
|
631
603
|
|
|
604
|
+
export declare const KeyValueCard: <T extends {}>({ data, label, fields }: KeyValueCardProps<T>) => JSX_2.Element;
|
|
605
|
+
|
|
606
|
+
export declare interface KeyValueCardProps<T> {
|
|
607
|
+
data: T;
|
|
608
|
+
label: string;
|
|
609
|
+
fields: DisplayField<T>[];
|
|
610
|
+
className?: string;
|
|
611
|
+
}
|
|
612
|
+
|
|
632
613
|
export declare const Label: React_2.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: ClassProp | undefined) => string> & React_2.RefAttributes<HTMLLabelElement>>;
|
|
633
614
|
|
|
615
|
+
/**
|
|
616
|
+
*
|
|
617
|
+
* @param props buttonVariants
|
|
618
|
+
* @returns Button as Tanstack Link
|
|
619
|
+
*/
|
|
620
|
+
export declare function LinkButton(props: VariantProps<typeof buttonVariants> & {
|
|
621
|
+
icon?: LucideIcon;
|
|
622
|
+
to: string;
|
|
623
|
+
children: React.ReactNode;
|
|
624
|
+
}): JSX_2.Element;
|
|
625
|
+
|
|
634
626
|
export declare function Loader({ className }: LoaderProps): JSX_2.Element;
|
|
635
627
|
|
|
636
628
|
declare interface LoaderProps {
|
|
@@ -641,8 +633,6 @@ export declare function logout(): void;
|
|
|
641
633
|
|
|
642
634
|
export declare type MetadataDto = components['schemas']['MetadataDto'];
|
|
643
635
|
|
|
644
|
-
declare type Methods = 'GET' | 'POST' | 'PATCH' | 'PUT';
|
|
645
|
-
|
|
646
636
|
export declare const NavigationMenu: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React_2.RefAttributes<HTMLElement>, "ref"> & React_2.RefAttributes<HTMLElement>>;
|
|
647
637
|
|
|
648
638
|
export declare const NavigationMenuContent: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -668,7 +658,7 @@ export declare type NavItem = {
|
|
|
668
658
|
label: string;
|
|
669
659
|
display: boolean;
|
|
670
660
|
icon: LucideIcon;
|
|
671
|
-
|
|
661
|
+
children?: {
|
|
672
662
|
path: string;
|
|
673
663
|
label: string;
|
|
674
664
|
icon: LucideIcon;
|
|
@@ -680,12 +670,14 @@ export declare function NavMain({ items }: {
|
|
|
680
670
|
items: NavItem[];
|
|
681
671
|
}): JSX_2.Element;
|
|
682
672
|
|
|
673
|
+
declare type NestedKeyOf<T> = T extends object ? {
|
|
674
|
+
[K in keyof T]: K extends string | number ? `${K & string}` | `${K & string}.${NestedKeyOf<T[K]>}` : never;
|
|
675
|
+
}[keyof T] : never;
|
|
676
|
+
|
|
683
677
|
export declare const OPERATORS_FOR_FILTER_TYPE: OperatorsForFilterType;
|
|
684
678
|
|
|
685
679
|
export declare type OperatorsForFilterType = Record<FilterablePropertyType, FilterComparisonOperator[]>;
|
|
686
680
|
|
|
687
|
-
declare type OrganizationDto = components['schemas']['OrganizationDto'];
|
|
688
|
-
|
|
689
681
|
export declare const Pagination: {
|
|
690
682
|
({ className, ...props }: React_2.ComponentProps<"nav">): JSX_2.Element;
|
|
691
683
|
displayName: string;
|
|
@@ -731,14 +723,10 @@ export declare const PopoverContent: React_2.ForwardRefExoticComponent<Omit<Popo
|
|
|
731
723
|
|
|
732
724
|
export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
733
725
|
|
|
734
|
-
export declare type Portals = 'customer-portal' | 'system-portal' | 'reseller-portal' | 'admin-portal';
|
|
735
|
-
|
|
736
726
|
export declare const RadioGroup: React_2.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
737
727
|
|
|
738
728
|
export declare const RadioGroupItem: React_2.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
739
729
|
|
|
740
|
-
declare type ResellerDto = components['schemas']['ResellerDto'];
|
|
741
|
-
|
|
742
730
|
export declare const RESOURCE_DEFINITIONS: Record<ResourceName, string>;
|
|
743
731
|
|
|
744
732
|
/** Resource Name should ALWAYS be in singular form */
|
|
@@ -746,21 +734,12 @@ export declare const RESOURCE_NAMES: readonly ["access-token", "account", "activ
|
|
|
746
734
|
|
|
747
735
|
export declare type ResourceName = (typeof RESOURCE_NAMES)[number];
|
|
748
736
|
|
|
749
|
-
export declare function Search({ selectedResult, onSelectResult, target, placeholder }: SearchProps): JSX_2.Element;
|
|
750
|
-
|
|
751
737
|
export declare const SearchInput: default_2.FC<SearchInputProps>;
|
|
752
738
|
|
|
753
739
|
declare interface SearchInputProps extends Omit<InputProps, 'onChange'> {
|
|
754
740
|
onChange?: (value: string) => void;
|
|
755
741
|
}
|
|
756
742
|
|
|
757
|
-
declare interface SearchProps {
|
|
758
|
-
selectedResult?: Partial<UserDto> | Partial<OrganizationDto> | Partial<ResellerDto>;
|
|
759
|
-
onSelectResult: (dto: Partial<UserDto> | Partial<OrganizationDto> | Partial<ResellerDto>) => void;
|
|
760
|
-
target: DYNAMIC_INPUT_TARGET;
|
|
761
|
-
placeholder: string;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
743
|
export declare function secondsToDuration(seconds: number): string;
|
|
765
744
|
|
|
766
745
|
export declare const Select: React_2.FC<SelectPrimitive.SelectProps>;
|
|
@@ -861,7 +840,7 @@ export declare const SidebarGroupLabel: React_2.ForwardRefExoticComponent<Omit<R
|
|
|
861
840
|
|
|
862
841
|
export declare const SidebarHeader: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
863
842
|
|
|
864
|
-
export declare const SidebarInput: React_2.ForwardRefExoticComponent<Omit<
|
|
843
|
+
export declare const SidebarInput: React_2.ForwardRefExoticComponent<Omit<InputProps_2 & React_2.RefAttributes<HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
865
844
|
|
|
866
845
|
export declare const SidebarInset: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
867
846
|
|
|
@@ -913,7 +892,7 @@ export declare const SidebarRail: React_2.ForwardRefExoticComponent<Omit<React_2
|
|
|
913
892
|
|
|
914
893
|
export declare const SidebarSeparator: React_2.ForwardRefExoticComponent<Omit<Omit<SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
915
894
|
|
|
916
|
-
export declare const SidebarTrigger: React_2.ForwardRefExoticComponent<Omit<
|
|
895
|
+
export declare const SidebarTrigger: React_2.ForwardRefExoticComponent<Omit<ButtonProps_2 & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
917
896
|
|
|
918
897
|
export declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX_2.Element;
|
|
919
898
|
|
|
@@ -997,8 +976,6 @@ export declare const TooltipProvider: React_2.FC<TooltipPrimitive.TooltipProvide
|
|
|
997
976
|
|
|
998
977
|
export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
999
978
|
|
|
1000
|
-
export declare const US_BASE_URL: string;
|
|
1001
|
-
|
|
1002
979
|
export declare const useFormField: () => {
|
|
1003
980
|
invalid: boolean;
|
|
1004
981
|
isDirty: boolean;
|
|
@@ -1014,10 +991,6 @@ export declare const useFormField: () => {
|
|
|
1014
991
|
|
|
1015
992
|
export declare function useIsMobile(): boolean;
|
|
1016
993
|
|
|
1017
|
-
declare type UserDto = components['schemas']['UserDto'] & {
|
|
1018
|
-
organizationId?: string;
|
|
1019
|
-
};
|
|
1020
|
-
|
|
1021
994
|
export declare function useSidebar(): SidebarContext;
|
|
1022
995
|
|
|
1023
996
|
export declare type VisibilityState<T> = {
|