@6thbridge/hexa 0.0.0-pr72-123 → 0.0.0-pr73-126
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/index.d.mts +35 -36
- package/dist/index.d.ts +35 -36
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/output.css +12 -557
- package/package.json +57 -60
- package/tsconfig.json +5 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React$1 from 'react';
|
|
3
2
|
import React__default, { DetailedHTMLProps, ButtonHTMLAttributes, ReactNode } from 'react';
|
|
4
3
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
@@ -38,7 +37,7 @@ type TooltipPropsType = {
|
|
|
38
37
|
arrowClassName?: string;
|
|
39
38
|
};
|
|
40
39
|
declare const Tooltip: {
|
|
41
|
-
({ trigger, children, contentClassName, triggerClassName, asChild, side, sideOffset, align, alignOffset, delayDuration, hasArrow, arrowClassName, ...props }: TooltipPropsType & React$1.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>):
|
|
40
|
+
({ trigger, children, contentClassName, triggerClassName, asChild, side, sideOffset, align, alignOffset, delayDuration, hasArrow, arrowClassName, ...props }: TooltipPropsType & React$1.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>): React$1.JSX.Element;
|
|
42
41
|
displayName: string;
|
|
43
42
|
};
|
|
44
43
|
|
|
@@ -52,7 +51,7 @@ type Colours = "primary" | "secondary";
|
|
|
52
51
|
declare const Loader: ({ size, colour, }: {
|
|
53
52
|
size?: number;
|
|
54
53
|
colour?: Colours;
|
|
55
|
-
}) =>
|
|
54
|
+
}) => React$1.JSX.Element;
|
|
56
55
|
|
|
57
56
|
declare const buttonVariants: (props?: ({
|
|
58
57
|
variant?: "primary" | "danger" | "neutral" | "outlined" | "danger-outlined" | "light-outlined" | "dark-text" | "light" | null | undefined;
|
|
@@ -69,12 +68,12 @@ interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonE
|
|
|
69
68
|
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
70
69
|
|
|
71
70
|
declare const inputVariants: (props?: ({
|
|
72
|
-
status?: "
|
|
71
|
+
status?: "default" | "error" | "neutral" | "loading" | "prefilled" | null | undefined;
|
|
73
72
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
74
73
|
interface BaseInnerInputProps extends React$1.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
|
|
75
74
|
}
|
|
76
75
|
declare const inputContainerVariants: (props?: ({
|
|
77
|
-
status?: "
|
|
76
|
+
status?: "default" | "error" | "neutral" | "loading" | "prefilled" | null | undefined;
|
|
78
77
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
79
78
|
interface InputProps extends BaseInnerInputProps, VariantProps<typeof inputContainerVariants> {
|
|
80
79
|
isLoading?: boolean;
|
|
@@ -99,7 +98,7 @@ type PasswordInputProps = InputProps & {
|
|
|
99
98
|
disableValidation?: boolean;
|
|
100
99
|
};
|
|
101
100
|
declare const PasswordInput: {
|
|
102
|
-
({ onValidate, onChange, disableValidation, ...props }: PasswordInputProps):
|
|
101
|
+
({ onValidate, onChange, disableValidation, ...props }: PasswordInputProps): React$1.JSX.Element;
|
|
103
102
|
displayName: string;
|
|
104
103
|
};
|
|
105
104
|
|
|
@@ -111,7 +110,7 @@ interface TextareaProps extends DetailedHTMLProps<React$1.TextareaHTMLAttributes
|
|
|
111
110
|
description?: React$1.ReactNode;
|
|
112
111
|
}
|
|
113
112
|
declare const Textarea: {
|
|
114
|
-
({ className, status, disabled, error, isLoading, showAsterisk, label, description, ...props }: TextareaProps):
|
|
113
|
+
({ className, status, disabled, error, isLoading, showAsterisk, label, description, ...props }: TextareaProps): React$1.JSX.Element;
|
|
115
114
|
displayName: string;
|
|
116
115
|
};
|
|
117
116
|
|
|
@@ -142,7 +141,7 @@ interface CountryProps {
|
|
|
142
141
|
description?: React.ReactNode;
|
|
143
142
|
error?: string;
|
|
144
143
|
}
|
|
145
|
-
declare const Country: ({ hideSearch, showAsterisk, label, description, error, ...props }: CountryProps) =>
|
|
144
|
+
declare const Country: ({ hideSearch, showAsterisk, label, description, error, ...props }: CountryProps) => React$1.JSX.Element;
|
|
146
145
|
|
|
147
146
|
type SelectPropsStatus = VariantProps<typeof inputContainerVariants>["status"];
|
|
148
147
|
interface SelectProps {
|
|
@@ -166,7 +165,7 @@ interface SelectProps {
|
|
|
166
165
|
error?: string;
|
|
167
166
|
id?: string;
|
|
168
167
|
}
|
|
169
|
-
declare const Select: ({ showAsterisk, label, description, error, hideSearch, status, ...props }: SelectProps) =>
|
|
168
|
+
declare const Select: ({ showAsterisk, label, description, error, hideSearch, status, ...props }: SelectProps) => React$1.JSX.Element;
|
|
170
169
|
|
|
171
170
|
type PhoneInputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & Omit<RPNInput.Props<typeof RPNInput.default>, "onChange"> & {
|
|
172
171
|
onChange?: (value: RPNInput.Value) => void;
|
|
@@ -190,7 +189,7 @@ type FlagComponentProps = RPNInput.FlagProps & {
|
|
|
190
189
|
className?: string;
|
|
191
190
|
};
|
|
192
191
|
declare const FlagComponent: {
|
|
193
|
-
({ country, countryName, className, }: FlagComponentProps):
|
|
192
|
+
({ country, countryName, className, }: FlagComponentProps): React$1.JSX.Element;
|
|
194
193
|
displayName: string;
|
|
195
194
|
};
|
|
196
195
|
|
|
@@ -214,18 +213,18 @@ type DialogPropsType = {
|
|
|
214
213
|
onEscapeKeyDown?: (e: KeyboardEvent) => void;
|
|
215
214
|
};
|
|
216
215
|
declare const Dialog: {
|
|
217
|
-
({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, onCloseAutoFocus, onEscapeKeyDown, onInteractOutside, onPointerDownOutside, ...props }: React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Root> & DialogPropsType):
|
|
216
|
+
({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, onCloseAutoFocus, onEscapeKeyDown, onInteractOutside, onPointerDownOutside, ...props }: React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Root> & DialogPropsType): React$1.JSX.Element;
|
|
218
217
|
displayName: string | undefined;
|
|
219
218
|
};
|
|
220
219
|
|
|
221
220
|
declare const otpInputVariants: (props?: ({
|
|
222
|
-
status?: "
|
|
221
|
+
status?: "default" | "error" | "loading" | null | undefined;
|
|
223
222
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
224
223
|
type DefailtInputProps = Omit<OTPInputProps$1, "renderInput">;
|
|
225
224
|
type OTPInputProps = DefailtInputProps & VariantProps<typeof otpInputVariants> & {
|
|
226
225
|
inputMode?: React.HTMLAttributes<HTMLInputElement>["inputMode"];
|
|
227
226
|
};
|
|
228
|
-
declare const OTPInput: ({ numInputs, inputStyle, containerStyle, placeholder, status, inputMode, inputType, ...props }: OTPInputProps) =>
|
|
227
|
+
declare const OTPInput: ({ numInputs, inputStyle, containerStyle, placeholder, status, inputMode, inputType, ...props }: OTPInputProps) => React$1.JSX.Element;
|
|
229
228
|
|
|
230
229
|
declare const PopoverRoot: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
231
230
|
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -248,7 +247,7 @@ type PopoverPropsType = {
|
|
|
248
247
|
id?: string;
|
|
249
248
|
};
|
|
250
249
|
declare const Popover: {
|
|
251
|
-
({ trigger, children, open, onOpenChange, contentClassName, asChild, align, side, alignOffset, triggerClassName, sideOffset, onOpenAutoFocus, onCloseAutoFocus, portal, id, ...props }: React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> & PopoverPropsType):
|
|
250
|
+
({ trigger, children, open, onOpenChange, contentClassName, asChild, align, side, alignOffset, triggerClassName, sideOffset, onOpenAutoFocus, onCloseAutoFocus, portal, id, ...props }: React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> & PopoverPropsType): React$1.JSX.Element;
|
|
252
251
|
displayName: string | undefined;
|
|
253
252
|
};
|
|
254
253
|
|
|
@@ -265,7 +264,7 @@ interface BannerProps extends BannerTypes {
|
|
|
265
264
|
open: boolean;
|
|
266
265
|
onClose?: () => void;
|
|
267
266
|
}
|
|
268
|
-
declare const Banner: ({ type, title, description, open, showCloseButton, bottomNode, sideNode, onClose, showIcon, }: BannerProps) =>
|
|
267
|
+
declare const Banner: ({ type, title, description, open, showCloseButton, bottomNode, sideNode, onClose, showIcon, }: BannerProps) => React$1.JSX.Element | null;
|
|
269
268
|
|
|
270
269
|
interface CopyableLabelProps {
|
|
271
270
|
text: string;
|
|
@@ -285,7 +284,7 @@ type DebouncedInputProps = {
|
|
|
285
284
|
debounce?: number;
|
|
286
285
|
addon?: React__default.ReactNode;
|
|
287
286
|
} & Omit<BaseInnerInputProps, "onChange" | "size">;
|
|
288
|
-
declare const DebouncedInput: ({ value: initialValue, onChange, debounce, addon, ...props }: DebouncedInputProps) =>
|
|
287
|
+
declare const DebouncedInput: ({ value: initialValue, onChange, debounce, addon, ...props }: DebouncedInputProps) => React__default.JSX.Element;
|
|
289
288
|
|
|
290
289
|
type Props = {
|
|
291
290
|
environment: "staging" | "sandbox" | "production";
|
|
@@ -298,13 +297,13 @@ type Props = {
|
|
|
298
297
|
removeFromStorage: () => void;
|
|
299
298
|
syncLocalStorageToState: () => void;
|
|
300
299
|
};
|
|
301
|
-
declare const DevBanner: (props: Props) =>
|
|
300
|
+
declare const DevBanner: (props: Props) => React$1.JSX.Element | null;
|
|
302
301
|
|
|
303
302
|
type DrawerRootType = React$1.ComponentProps<typeof Drawer$1.Root> & {
|
|
304
303
|
id?: string;
|
|
305
304
|
};
|
|
306
305
|
declare const DrawerRoot: {
|
|
307
|
-
({ shouldScaleBackground, ...props }: DrawerRootType):
|
|
306
|
+
({ shouldScaleBackground, ...props }: DrawerRootType): React$1.JSX.Element;
|
|
308
307
|
displayName: string;
|
|
309
308
|
};
|
|
310
309
|
declare const DrawerClose: React$1.ForwardRefExoticComponent<DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -326,7 +325,7 @@ type DrawerPropsType = {
|
|
|
326
325
|
onCloseAutoFocus?: (e: Event) => void;
|
|
327
326
|
modal?: boolean;
|
|
328
327
|
};
|
|
329
|
-
declare const Drawer: ({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, drawerContentClassName, onCloseAutoFocus, id, modal, }: Omit<DrawerRootType, "value"> & DrawerPropsType) =>
|
|
328
|
+
declare const Drawer: ({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, drawerContentClassName, onCloseAutoFocus, id, modal, }: Omit<DrawerRootType, "value"> & DrawerPropsType) => React$1.JSX.Element;
|
|
330
329
|
|
|
331
330
|
type LocaleOption = {
|
|
332
331
|
key: string;
|
|
@@ -336,7 +335,7 @@ declare const LocaleSelector: ({ locale, onChange, locales, }: {
|
|
|
336
335
|
locale?: string;
|
|
337
336
|
onChange?: (locale: string) => void;
|
|
338
337
|
locales?: LocaleOption[];
|
|
339
|
-
}) =>
|
|
338
|
+
}) => React$1.JSX.Element;
|
|
340
339
|
|
|
341
340
|
type BusinessType = {
|
|
342
341
|
clientId?: string;
|
|
@@ -399,14 +398,14 @@ interface IAppConfig {
|
|
|
399
398
|
}
|
|
400
399
|
type CollapseType = "icons" | "hidden";
|
|
401
400
|
|
|
402
|
-
declare const Sidebar: ({ isSidebarCollapsed, onToggleSideBar, isMobile, links, businessProps, currentPath, onNavigate, appConfig, collapseType: propCollapseType, onLogoutClick, openSidebarIcon, closedSidebarIcon, nodeAfterSideBarLogo, }: SidebarProps) =>
|
|
401
|
+
declare const Sidebar: ({ isSidebarCollapsed, onToggleSideBar, isMobile, links, businessProps, currentPath, onNavigate, appConfig, collapseType: propCollapseType, onLogoutClick, openSidebarIcon, closedSidebarIcon, nodeAfterSideBarLogo, }: SidebarProps) => React$1.JSX.Element;
|
|
403
402
|
|
|
404
403
|
type Variant = "success" | "failed" | "pending" | "abandoned";
|
|
405
404
|
declare const Status: ({ status, variant, className, }: {
|
|
406
405
|
status: string;
|
|
407
406
|
variant: Variant;
|
|
408
407
|
className?: string;
|
|
409
|
-
}) =>
|
|
408
|
+
}) => React$1.JSX.Element;
|
|
410
409
|
|
|
411
410
|
type RowAction = {
|
|
412
411
|
icon: React__default.ReactNode;
|
|
@@ -471,7 +470,7 @@ type PaginationProps = {
|
|
|
471
470
|
* @param {function} onPageChange - Callback function to handle page change.
|
|
472
471
|
* @param {number | undefined} itemsPerPage - The number of items per page.
|
|
473
472
|
*/
|
|
474
|
-
declare const Pagination: ({ currentPage, totalPages, onPageChange, itemsPerPage, totalItems, id, }: PaginationProps) =>
|
|
473
|
+
declare const Pagination: ({ currentPage, totalPages, onPageChange, itemsPerPage, totalItems, id, }: PaginationProps) => React$1.JSX.Element;
|
|
475
474
|
|
|
476
475
|
type TableSearchProps = {
|
|
477
476
|
enabled: boolean;
|
|
@@ -521,7 +520,7 @@ type TableProps<T extends RowData> = {
|
|
|
521
520
|
};
|
|
522
521
|
emptyDataMessage?: ReactNode;
|
|
523
522
|
};
|
|
524
|
-
declare const Table: <T extends RowData>({ table, isMobile, onRowClick, id, onRefetch, isRefetching, FilterMenu, ExtraNode, onExport, search, download, isLoading, pagination, filterListOptions, setAppliedFilters, onFilterChange, tableBulkActions, emptyDataMessage, }: TableProps<T>) =>
|
|
523
|
+
declare const Table: <T extends RowData>({ table, isMobile, onRowClick, id, onRefetch, isRefetching, FilterMenu, ExtraNode, onExport, search, download, isLoading, pagination, filterListOptions, setAppliedFilters, onFilterChange, tableBulkActions, emptyDataMessage, }: TableProps<T>) => React$1.JSX.Element;
|
|
525
524
|
|
|
526
525
|
type PageDataToolbarProps = {
|
|
527
526
|
onRefetch?: () => void;
|
|
@@ -536,7 +535,7 @@ type PageDataToolbarProps = {
|
|
|
536
535
|
filterListOptions?: FilterListItem[];
|
|
537
536
|
id?: string;
|
|
538
537
|
};
|
|
539
|
-
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, onFilterChange, id, }: PageDataToolbarProps) =>
|
|
538
|
+
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, onFilterChange, id, }: PageDataToolbarProps) => React$1.JSX.Element;
|
|
540
539
|
|
|
541
540
|
type ResourcePermission = {
|
|
542
541
|
resource: string;
|
|
@@ -555,7 +554,7 @@ declare const PermissionsContext: React$1.Context<ResourcePermissions | undefine
|
|
|
555
554
|
declare const PermissionsProvider: ({ permissions, children, }: {
|
|
556
555
|
permissions: ResourcePermissions;
|
|
557
556
|
children: ReactNode;
|
|
558
|
-
}) =>
|
|
557
|
+
}) => React$1.JSX.Element;
|
|
559
558
|
|
|
560
559
|
declare const usePermissions: () => ResourcePermissions | undefined;
|
|
561
560
|
declare const useHasPermission: (permission: {
|
|
@@ -569,7 +568,7 @@ declare const useHasPermission: (permission: {
|
|
|
569
568
|
}) => boolean;
|
|
570
569
|
};
|
|
571
570
|
|
|
572
|
-
declare const HasResourcePermission: ({ permission, children, }: ResourcePermissionProps) =>
|
|
571
|
+
declare const HasResourcePermission: ({ permission, children, }: ResourcePermissionProps) => React$1.JSX.Element;
|
|
573
572
|
|
|
574
573
|
type CalendarInputProps = {
|
|
575
574
|
label?: string;
|
|
@@ -585,7 +584,7 @@ type CalendarInputProps = {
|
|
|
585
584
|
showTime?: boolean;
|
|
586
585
|
id?: string;
|
|
587
586
|
};
|
|
588
|
-
declare const CalendarInput: ({ label, optional, onChange, error, helpText, value, maxDate, closeOnSelect, modal, minDate, showTime, id, }: CalendarInputProps) =>
|
|
587
|
+
declare const CalendarInput: ({ label, optional, onChange, error, helpText, value, maxDate, closeOnSelect, modal, minDate, showTime, id, }: CalendarInputProps) => React$1.JSX.Element;
|
|
589
588
|
|
|
590
589
|
declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
591
590
|
className?: string;
|
|
@@ -600,7 +599,7 @@ type FilterPopoverProps = FilterContentProps & {
|
|
|
600
599
|
id?: string;
|
|
601
600
|
onChange?: (values: Record<string, any>) => void;
|
|
602
601
|
};
|
|
603
|
-
declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, onChange, id, }: FilterPopoverProps) =>
|
|
602
|
+
declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, onChange, id, }: FilterPopoverProps) => React$1.JSX.Element | null;
|
|
604
603
|
|
|
605
604
|
interface FilterSliceType {
|
|
606
605
|
filters: Record<string, any> | null;
|
|
@@ -629,7 +628,7 @@ interface TextOverflowProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
|
629
628
|
* - className: string (optional) - Additional CSS classes for the container.
|
|
630
629
|
* - ...rest: Other HTML attributes passed to the container.
|
|
631
630
|
*/
|
|
632
|
-
declare const TextOverflow: ({ children, mode, className, as: Component, ...rest }: TextOverflowProps) =>
|
|
631
|
+
declare const TextOverflow: ({ children, mode, className, as: Component, ...rest }: TextOverflowProps) => React__default.JSX.Element;
|
|
633
632
|
|
|
634
633
|
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
635
634
|
viewPortClassName?: string;
|
|
@@ -666,21 +665,21 @@ interface MultiSelectTriggerProps extends VariantProps<typeof inputContainerVari
|
|
|
666
665
|
className?: string;
|
|
667
666
|
onDelete?: (el: MultiSelectDataType) => void;
|
|
668
667
|
}
|
|
669
|
-
declare const MultiSelectTrigger: React$1.MemoExoticComponent<({ disabled, className, values, placeholder, status, onDelete, }: MultiSelectTriggerProps) =>
|
|
670
|
-
declare const MultiSelect: ({ options, children, onChange, optionComponent, values: dataValues, hideSearch, modal, placeholder, isLoading, showSelectedValues, error, label, showAsterisk, }: MultiSelectProps) =>
|
|
668
|
+
declare const MultiSelectTrigger: React$1.MemoExoticComponent<({ disabled, className, values, placeholder, status, onDelete, }: MultiSelectTriggerProps) => React$1.JSX.Element>;
|
|
669
|
+
declare const MultiSelect: ({ options, children, onChange, optionComponent, values: dataValues, hideSearch, modal, placeholder, isLoading, showSelectedValues, error, label, showAsterisk, }: MultiSelectProps) => React$1.JSX.Element;
|
|
671
670
|
|
|
672
671
|
type Tab = {
|
|
673
672
|
key: string;
|
|
674
673
|
title: React.ReactNode;
|
|
675
674
|
count?: number | boolean;
|
|
676
|
-
content:
|
|
675
|
+
content: React.ReactNode;
|
|
677
676
|
};
|
|
678
677
|
type TabsProps = {
|
|
679
678
|
tabs: Tab[];
|
|
680
679
|
defaultValue?: string;
|
|
681
680
|
onChange?: (value?: string) => void;
|
|
682
681
|
};
|
|
683
|
-
declare function Tabs({ tabs, defaultValue, onChange }: TabsProps):
|
|
682
|
+
declare function Tabs({ tabs, defaultValue, onChange }: TabsProps): React$1.JSX.Element;
|
|
684
683
|
|
|
685
684
|
declare const featureBannerVariants: (props?: ({
|
|
686
685
|
variant?: "success" | "pending" | "default" | "danger" | null | undefined;
|
|
@@ -711,7 +710,7 @@ type FeatureBannerProps = {
|
|
|
711
710
|
classNames?: FeatureBannerClassNames;
|
|
712
711
|
} & VariantProps<typeof featureBannerVariants>;
|
|
713
712
|
|
|
714
|
-
declare const FeatureBanner: ({ title, message, variant, icon, action, dismissible, onDismiss, isOpen, align, classNames, }: FeatureBannerProps) =>
|
|
713
|
+
declare const FeatureBanner: ({ title, message, variant, icon, action, dismissible, onDismiss, isOpen, align, classNames, }: FeatureBannerProps) => React$1.JSX.Element | null;
|
|
715
714
|
|
|
716
715
|
type EditorControl = "bold" | "italic" | "underline" | "strike" | "heading1" | "bulletList" | "orderedList" | "blockquote" | "textStyle" | "link";
|
|
717
716
|
|
|
@@ -796,7 +795,7 @@ type RichTextEditorProps = {
|
|
|
796
795
|
* <a href="https://example.com">A link</a>
|
|
797
796
|
* ```
|
|
798
797
|
*/
|
|
799
|
-
declare const RichTextEditor: ({ label, helpText, error, value, onChange, optional, isRequired, extensions, editorClassName, wrapperClassName, controls, extraMenuNodes, placeholder, }: RichTextEditorProps) =>
|
|
798
|
+
declare const RichTextEditor: ({ label, helpText, error, value, onChange, optional, isRequired, extensions, editorClassName, wrapperClassName, controls, extraMenuNodes, placeholder, }: RichTextEditorProps) => React$1.JSX.Element | null;
|
|
800
799
|
|
|
801
800
|
declare const CurrencySymbolMap: Record<string, string>;
|
|
802
801
|
interface FormatCurrencyOptions {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React$1 from 'react';
|
|
3
2
|
import React__default, { DetailedHTMLProps, ButtonHTMLAttributes, ReactNode } from 'react';
|
|
4
3
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
@@ -38,7 +37,7 @@ type TooltipPropsType = {
|
|
|
38
37
|
arrowClassName?: string;
|
|
39
38
|
};
|
|
40
39
|
declare const Tooltip: {
|
|
41
|
-
({ trigger, children, contentClassName, triggerClassName, asChild, side, sideOffset, align, alignOffset, delayDuration, hasArrow, arrowClassName, ...props }: TooltipPropsType & React$1.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>):
|
|
40
|
+
({ trigger, children, contentClassName, triggerClassName, asChild, side, sideOffset, align, alignOffset, delayDuration, hasArrow, arrowClassName, ...props }: TooltipPropsType & React$1.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>): React$1.JSX.Element;
|
|
42
41
|
displayName: string;
|
|
43
42
|
};
|
|
44
43
|
|
|
@@ -52,7 +51,7 @@ type Colours = "primary" | "secondary";
|
|
|
52
51
|
declare const Loader: ({ size, colour, }: {
|
|
53
52
|
size?: number;
|
|
54
53
|
colour?: Colours;
|
|
55
|
-
}) =>
|
|
54
|
+
}) => React$1.JSX.Element;
|
|
56
55
|
|
|
57
56
|
declare const buttonVariants: (props?: ({
|
|
58
57
|
variant?: "primary" | "danger" | "neutral" | "outlined" | "danger-outlined" | "light-outlined" | "dark-text" | "light" | null | undefined;
|
|
@@ -69,12 +68,12 @@ interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonE
|
|
|
69
68
|
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
70
69
|
|
|
71
70
|
declare const inputVariants: (props?: ({
|
|
72
|
-
status?: "
|
|
71
|
+
status?: "default" | "error" | "neutral" | "loading" | "prefilled" | null | undefined;
|
|
73
72
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
74
73
|
interface BaseInnerInputProps extends React$1.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
|
|
75
74
|
}
|
|
76
75
|
declare const inputContainerVariants: (props?: ({
|
|
77
|
-
status?: "
|
|
76
|
+
status?: "default" | "error" | "neutral" | "loading" | "prefilled" | null | undefined;
|
|
78
77
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
79
78
|
interface InputProps extends BaseInnerInputProps, VariantProps<typeof inputContainerVariants> {
|
|
80
79
|
isLoading?: boolean;
|
|
@@ -99,7 +98,7 @@ type PasswordInputProps = InputProps & {
|
|
|
99
98
|
disableValidation?: boolean;
|
|
100
99
|
};
|
|
101
100
|
declare const PasswordInput: {
|
|
102
|
-
({ onValidate, onChange, disableValidation, ...props }: PasswordInputProps):
|
|
101
|
+
({ onValidate, onChange, disableValidation, ...props }: PasswordInputProps): React$1.JSX.Element;
|
|
103
102
|
displayName: string;
|
|
104
103
|
};
|
|
105
104
|
|
|
@@ -111,7 +110,7 @@ interface TextareaProps extends DetailedHTMLProps<React$1.TextareaHTMLAttributes
|
|
|
111
110
|
description?: React$1.ReactNode;
|
|
112
111
|
}
|
|
113
112
|
declare const Textarea: {
|
|
114
|
-
({ className, status, disabled, error, isLoading, showAsterisk, label, description, ...props }: TextareaProps):
|
|
113
|
+
({ className, status, disabled, error, isLoading, showAsterisk, label, description, ...props }: TextareaProps): React$1.JSX.Element;
|
|
115
114
|
displayName: string;
|
|
116
115
|
};
|
|
117
116
|
|
|
@@ -142,7 +141,7 @@ interface CountryProps {
|
|
|
142
141
|
description?: React.ReactNode;
|
|
143
142
|
error?: string;
|
|
144
143
|
}
|
|
145
|
-
declare const Country: ({ hideSearch, showAsterisk, label, description, error, ...props }: CountryProps) =>
|
|
144
|
+
declare const Country: ({ hideSearch, showAsterisk, label, description, error, ...props }: CountryProps) => React$1.JSX.Element;
|
|
146
145
|
|
|
147
146
|
type SelectPropsStatus = VariantProps<typeof inputContainerVariants>["status"];
|
|
148
147
|
interface SelectProps {
|
|
@@ -166,7 +165,7 @@ interface SelectProps {
|
|
|
166
165
|
error?: string;
|
|
167
166
|
id?: string;
|
|
168
167
|
}
|
|
169
|
-
declare const Select: ({ showAsterisk, label, description, error, hideSearch, status, ...props }: SelectProps) =>
|
|
168
|
+
declare const Select: ({ showAsterisk, label, description, error, hideSearch, status, ...props }: SelectProps) => React$1.JSX.Element;
|
|
170
169
|
|
|
171
170
|
type PhoneInputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & Omit<RPNInput.Props<typeof RPNInput.default>, "onChange"> & {
|
|
172
171
|
onChange?: (value: RPNInput.Value) => void;
|
|
@@ -190,7 +189,7 @@ type FlagComponentProps = RPNInput.FlagProps & {
|
|
|
190
189
|
className?: string;
|
|
191
190
|
};
|
|
192
191
|
declare const FlagComponent: {
|
|
193
|
-
({ country, countryName, className, }: FlagComponentProps):
|
|
192
|
+
({ country, countryName, className, }: FlagComponentProps): React$1.JSX.Element;
|
|
194
193
|
displayName: string;
|
|
195
194
|
};
|
|
196
195
|
|
|
@@ -214,18 +213,18 @@ type DialogPropsType = {
|
|
|
214
213
|
onEscapeKeyDown?: (e: KeyboardEvent) => void;
|
|
215
214
|
};
|
|
216
215
|
declare const Dialog: {
|
|
217
|
-
({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, onCloseAutoFocus, onEscapeKeyDown, onInteractOutside, onPointerDownOutside, ...props }: React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Root> & DialogPropsType):
|
|
216
|
+
({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, onCloseAutoFocus, onEscapeKeyDown, onInteractOutside, onPointerDownOutside, ...props }: React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Root> & DialogPropsType): React$1.JSX.Element;
|
|
218
217
|
displayName: string | undefined;
|
|
219
218
|
};
|
|
220
219
|
|
|
221
220
|
declare const otpInputVariants: (props?: ({
|
|
222
|
-
status?: "
|
|
221
|
+
status?: "default" | "error" | "loading" | null | undefined;
|
|
223
222
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
224
223
|
type DefailtInputProps = Omit<OTPInputProps$1, "renderInput">;
|
|
225
224
|
type OTPInputProps = DefailtInputProps & VariantProps<typeof otpInputVariants> & {
|
|
226
225
|
inputMode?: React.HTMLAttributes<HTMLInputElement>["inputMode"];
|
|
227
226
|
};
|
|
228
|
-
declare const OTPInput: ({ numInputs, inputStyle, containerStyle, placeholder, status, inputMode, inputType, ...props }: OTPInputProps) =>
|
|
227
|
+
declare const OTPInput: ({ numInputs, inputStyle, containerStyle, placeholder, status, inputMode, inputType, ...props }: OTPInputProps) => React$1.JSX.Element;
|
|
229
228
|
|
|
230
229
|
declare const PopoverRoot: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
231
230
|
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -248,7 +247,7 @@ type PopoverPropsType = {
|
|
|
248
247
|
id?: string;
|
|
249
248
|
};
|
|
250
249
|
declare const Popover: {
|
|
251
|
-
({ trigger, children, open, onOpenChange, contentClassName, asChild, align, side, alignOffset, triggerClassName, sideOffset, onOpenAutoFocus, onCloseAutoFocus, portal, id, ...props }: React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> & PopoverPropsType):
|
|
250
|
+
({ trigger, children, open, onOpenChange, contentClassName, asChild, align, side, alignOffset, triggerClassName, sideOffset, onOpenAutoFocus, onCloseAutoFocus, portal, id, ...props }: React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> & PopoverPropsType): React$1.JSX.Element;
|
|
252
251
|
displayName: string | undefined;
|
|
253
252
|
};
|
|
254
253
|
|
|
@@ -265,7 +264,7 @@ interface BannerProps extends BannerTypes {
|
|
|
265
264
|
open: boolean;
|
|
266
265
|
onClose?: () => void;
|
|
267
266
|
}
|
|
268
|
-
declare const Banner: ({ type, title, description, open, showCloseButton, bottomNode, sideNode, onClose, showIcon, }: BannerProps) =>
|
|
267
|
+
declare const Banner: ({ type, title, description, open, showCloseButton, bottomNode, sideNode, onClose, showIcon, }: BannerProps) => React$1.JSX.Element | null;
|
|
269
268
|
|
|
270
269
|
interface CopyableLabelProps {
|
|
271
270
|
text: string;
|
|
@@ -285,7 +284,7 @@ type DebouncedInputProps = {
|
|
|
285
284
|
debounce?: number;
|
|
286
285
|
addon?: React__default.ReactNode;
|
|
287
286
|
} & Omit<BaseInnerInputProps, "onChange" | "size">;
|
|
288
|
-
declare const DebouncedInput: ({ value: initialValue, onChange, debounce, addon, ...props }: DebouncedInputProps) =>
|
|
287
|
+
declare const DebouncedInput: ({ value: initialValue, onChange, debounce, addon, ...props }: DebouncedInputProps) => React__default.JSX.Element;
|
|
289
288
|
|
|
290
289
|
type Props = {
|
|
291
290
|
environment: "staging" | "sandbox" | "production";
|
|
@@ -298,13 +297,13 @@ type Props = {
|
|
|
298
297
|
removeFromStorage: () => void;
|
|
299
298
|
syncLocalStorageToState: () => void;
|
|
300
299
|
};
|
|
301
|
-
declare const DevBanner: (props: Props) =>
|
|
300
|
+
declare const DevBanner: (props: Props) => React$1.JSX.Element | null;
|
|
302
301
|
|
|
303
302
|
type DrawerRootType = React$1.ComponentProps<typeof Drawer$1.Root> & {
|
|
304
303
|
id?: string;
|
|
305
304
|
};
|
|
306
305
|
declare const DrawerRoot: {
|
|
307
|
-
({ shouldScaleBackground, ...props }: DrawerRootType):
|
|
306
|
+
({ shouldScaleBackground, ...props }: DrawerRootType): React$1.JSX.Element;
|
|
308
307
|
displayName: string;
|
|
309
308
|
};
|
|
310
309
|
declare const DrawerClose: React$1.ForwardRefExoticComponent<DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -326,7 +325,7 @@ type DrawerPropsType = {
|
|
|
326
325
|
onCloseAutoFocus?: (e: Event) => void;
|
|
327
326
|
modal?: boolean;
|
|
328
327
|
};
|
|
329
|
-
declare const Drawer: ({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, drawerContentClassName, onCloseAutoFocus, id, modal, }: Omit<DrawerRootType, "value"> & DrawerPropsType) =>
|
|
328
|
+
declare const Drawer: ({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, drawerContentClassName, onCloseAutoFocus, id, modal, }: Omit<DrawerRootType, "value"> & DrawerPropsType) => React$1.JSX.Element;
|
|
330
329
|
|
|
331
330
|
type LocaleOption = {
|
|
332
331
|
key: string;
|
|
@@ -336,7 +335,7 @@ declare const LocaleSelector: ({ locale, onChange, locales, }: {
|
|
|
336
335
|
locale?: string;
|
|
337
336
|
onChange?: (locale: string) => void;
|
|
338
337
|
locales?: LocaleOption[];
|
|
339
|
-
}) =>
|
|
338
|
+
}) => React$1.JSX.Element;
|
|
340
339
|
|
|
341
340
|
type BusinessType = {
|
|
342
341
|
clientId?: string;
|
|
@@ -399,14 +398,14 @@ interface IAppConfig {
|
|
|
399
398
|
}
|
|
400
399
|
type CollapseType = "icons" | "hidden";
|
|
401
400
|
|
|
402
|
-
declare const Sidebar: ({ isSidebarCollapsed, onToggleSideBar, isMobile, links, businessProps, currentPath, onNavigate, appConfig, collapseType: propCollapseType, onLogoutClick, openSidebarIcon, closedSidebarIcon, nodeAfterSideBarLogo, }: SidebarProps) =>
|
|
401
|
+
declare const Sidebar: ({ isSidebarCollapsed, onToggleSideBar, isMobile, links, businessProps, currentPath, onNavigate, appConfig, collapseType: propCollapseType, onLogoutClick, openSidebarIcon, closedSidebarIcon, nodeAfterSideBarLogo, }: SidebarProps) => React$1.JSX.Element;
|
|
403
402
|
|
|
404
403
|
type Variant = "success" | "failed" | "pending" | "abandoned";
|
|
405
404
|
declare const Status: ({ status, variant, className, }: {
|
|
406
405
|
status: string;
|
|
407
406
|
variant: Variant;
|
|
408
407
|
className?: string;
|
|
409
|
-
}) =>
|
|
408
|
+
}) => React$1.JSX.Element;
|
|
410
409
|
|
|
411
410
|
type RowAction = {
|
|
412
411
|
icon: React__default.ReactNode;
|
|
@@ -471,7 +470,7 @@ type PaginationProps = {
|
|
|
471
470
|
* @param {function} onPageChange - Callback function to handle page change.
|
|
472
471
|
* @param {number | undefined} itemsPerPage - The number of items per page.
|
|
473
472
|
*/
|
|
474
|
-
declare const Pagination: ({ currentPage, totalPages, onPageChange, itemsPerPage, totalItems, id, }: PaginationProps) =>
|
|
473
|
+
declare const Pagination: ({ currentPage, totalPages, onPageChange, itemsPerPage, totalItems, id, }: PaginationProps) => React$1.JSX.Element;
|
|
475
474
|
|
|
476
475
|
type TableSearchProps = {
|
|
477
476
|
enabled: boolean;
|
|
@@ -521,7 +520,7 @@ type TableProps<T extends RowData> = {
|
|
|
521
520
|
};
|
|
522
521
|
emptyDataMessage?: ReactNode;
|
|
523
522
|
};
|
|
524
|
-
declare const Table: <T extends RowData>({ table, isMobile, onRowClick, id, onRefetch, isRefetching, FilterMenu, ExtraNode, onExport, search, download, isLoading, pagination, filterListOptions, setAppliedFilters, onFilterChange, tableBulkActions, emptyDataMessage, }: TableProps<T>) =>
|
|
523
|
+
declare const Table: <T extends RowData>({ table, isMobile, onRowClick, id, onRefetch, isRefetching, FilterMenu, ExtraNode, onExport, search, download, isLoading, pagination, filterListOptions, setAppliedFilters, onFilterChange, tableBulkActions, emptyDataMessage, }: TableProps<T>) => React$1.JSX.Element;
|
|
525
524
|
|
|
526
525
|
type PageDataToolbarProps = {
|
|
527
526
|
onRefetch?: () => void;
|
|
@@ -536,7 +535,7 @@ type PageDataToolbarProps = {
|
|
|
536
535
|
filterListOptions?: FilterListItem[];
|
|
537
536
|
id?: string;
|
|
538
537
|
};
|
|
539
|
-
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, onFilterChange, id, }: PageDataToolbarProps) =>
|
|
538
|
+
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, onFilterChange, id, }: PageDataToolbarProps) => React$1.JSX.Element;
|
|
540
539
|
|
|
541
540
|
type ResourcePermission = {
|
|
542
541
|
resource: string;
|
|
@@ -555,7 +554,7 @@ declare const PermissionsContext: React$1.Context<ResourcePermissions | undefine
|
|
|
555
554
|
declare const PermissionsProvider: ({ permissions, children, }: {
|
|
556
555
|
permissions: ResourcePermissions;
|
|
557
556
|
children: ReactNode;
|
|
558
|
-
}) =>
|
|
557
|
+
}) => React$1.JSX.Element;
|
|
559
558
|
|
|
560
559
|
declare const usePermissions: () => ResourcePermissions | undefined;
|
|
561
560
|
declare const useHasPermission: (permission: {
|
|
@@ -569,7 +568,7 @@ declare const useHasPermission: (permission: {
|
|
|
569
568
|
}) => boolean;
|
|
570
569
|
};
|
|
571
570
|
|
|
572
|
-
declare const HasResourcePermission: ({ permission, children, }: ResourcePermissionProps) =>
|
|
571
|
+
declare const HasResourcePermission: ({ permission, children, }: ResourcePermissionProps) => React$1.JSX.Element;
|
|
573
572
|
|
|
574
573
|
type CalendarInputProps = {
|
|
575
574
|
label?: string;
|
|
@@ -585,7 +584,7 @@ type CalendarInputProps = {
|
|
|
585
584
|
showTime?: boolean;
|
|
586
585
|
id?: string;
|
|
587
586
|
};
|
|
588
|
-
declare const CalendarInput: ({ label, optional, onChange, error, helpText, value, maxDate, closeOnSelect, modal, minDate, showTime, id, }: CalendarInputProps) =>
|
|
587
|
+
declare const CalendarInput: ({ label, optional, onChange, error, helpText, value, maxDate, closeOnSelect, modal, minDate, showTime, id, }: CalendarInputProps) => React$1.JSX.Element;
|
|
589
588
|
|
|
590
589
|
declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
591
590
|
className?: string;
|
|
@@ -600,7 +599,7 @@ type FilterPopoverProps = FilterContentProps & {
|
|
|
600
599
|
id?: string;
|
|
601
600
|
onChange?: (values: Record<string, any>) => void;
|
|
602
601
|
};
|
|
603
|
-
declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, onChange, id, }: FilterPopoverProps) =>
|
|
602
|
+
declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, onChange, id, }: FilterPopoverProps) => React$1.JSX.Element | null;
|
|
604
603
|
|
|
605
604
|
interface FilterSliceType {
|
|
606
605
|
filters: Record<string, any> | null;
|
|
@@ -629,7 +628,7 @@ interface TextOverflowProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
|
629
628
|
* - className: string (optional) - Additional CSS classes for the container.
|
|
630
629
|
* - ...rest: Other HTML attributes passed to the container.
|
|
631
630
|
*/
|
|
632
|
-
declare const TextOverflow: ({ children, mode, className, as: Component, ...rest }: TextOverflowProps) =>
|
|
631
|
+
declare const TextOverflow: ({ children, mode, className, as: Component, ...rest }: TextOverflowProps) => React__default.JSX.Element;
|
|
633
632
|
|
|
634
633
|
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
635
634
|
viewPortClassName?: string;
|
|
@@ -666,21 +665,21 @@ interface MultiSelectTriggerProps extends VariantProps<typeof inputContainerVari
|
|
|
666
665
|
className?: string;
|
|
667
666
|
onDelete?: (el: MultiSelectDataType) => void;
|
|
668
667
|
}
|
|
669
|
-
declare const MultiSelectTrigger: React$1.MemoExoticComponent<({ disabled, className, values, placeholder, status, onDelete, }: MultiSelectTriggerProps) =>
|
|
670
|
-
declare const MultiSelect: ({ options, children, onChange, optionComponent, values: dataValues, hideSearch, modal, placeholder, isLoading, showSelectedValues, error, label, showAsterisk, }: MultiSelectProps) =>
|
|
668
|
+
declare const MultiSelectTrigger: React$1.MemoExoticComponent<({ disabled, className, values, placeholder, status, onDelete, }: MultiSelectTriggerProps) => React$1.JSX.Element>;
|
|
669
|
+
declare const MultiSelect: ({ options, children, onChange, optionComponent, values: dataValues, hideSearch, modal, placeholder, isLoading, showSelectedValues, error, label, showAsterisk, }: MultiSelectProps) => React$1.JSX.Element;
|
|
671
670
|
|
|
672
671
|
type Tab = {
|
|
673
672
|
key: string;
|
|
674
673
|
title: React.ReactNode;
|
|
675
674
|
count?: number | boolean;
|
|
676
|
-
content:
|
|
675
|
+
content: React.ReactNode;
|
|
677
676
|
};
|
|
678
677
|
type TabsProps = {
|
|
679
678
|
tabs: Tab[];
|
|
680
679
|
defaultValue?: string;
|
|
681
680
|
onChange?: (value?: string) => void;
|
|
682
681
|
};
|
|
683
|
-
declare function Tabs({ tabs, defaultValue, onChange }: TabsProps):
|
|
682
|
+
declare function Tabs({ tabs, defaultValue, onChange }: TabsProps): React$1.JSX.Element;
|
|
684
683
|
|
|
685
684
|
declare const featureBannerVariants: (props?: ({
|
|
686
685
|
variant?: "success" | "pending" | "default" | "danger" | null | undefined;
|
|
@@ -711,7 +710,7 @@ type FeatureBannerProps = {
|
|
|
711
710
|
classNames?: FeatureBannerClassNames;
|
|
712
711
|
} & VariantProps<typeof featureBannerVariants>;
|
|
713
712
|
|
|
714
|
-
declare const FeatureBanner: ({ title, message, variant, icon, action, dismissible, onDismiss, isOpen, align, classNames, }: FeatureBannerProps) =>
|
|
713
|
+
declare const FeatureBanner: ({ title, message, variant, icon, action, dismissible, onDismiss, isOpen, align, classNames, }: FeatureBannerProps) => React$1.JSX.Element | null;
|
|
715
714
|
|
|
716
715
|
type EditorControl = "bold" | "italic" | "underline" | "strike" | "heading1" | "bulletList" | "orderedList" | "blockquote" | "textStyle" | "link";
|
|
717
716
|
|
|
@@ -796,7 +795,7 @@ type RichTextEditorProps = {
|
|
|
796
795
|
* <a href="https://example.com">A link</a>
|
|
797
796
|
* ```
|
|
798
797
|
*/
|
|
799
|
-
declare const RichTextEditor: ({ label, helpText, error, value, onChange, optional, isRequired, extensions, editorClassName, wrapperClassName, controls, extraMenuNodes, placeholder, }: RichTextEditorProps) =>
|
|
798
|
+
declare const RichTextEditor: ({ label, helpText, error, value, onChange, optional, isRequired, extensions, editorClassName, wrapperClassName, controls, extraMenuNodes, placeholder, }: RichTextEditorProps) => React$1.JSX.Element | null;
|
|
800
799
|
|
|
801
800
|
declare const CurrencySymbolMap: Record<string, string>;
|
|
802
801
|
interface FormatCurrencyOptions {
|