@6thbridge/hexa 0.0.62 → 0.0.64
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 +44 -12
- package/dist/index.d.ts +44 -12
- package/dist/index.js +4 -4895
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4814
- package/dist/index.mjs.map +1 -1
- package/dist/output.css +0 -25
- package/package.json +1 -1
- package/.turbo/turbo-build.log +0 -32
- package/.turbo/turbo-lint.log +0 -5
package/dist/index.d.mts
CHANGED
@@ -159,6 +159,7 @@ interface SelectProps {
|
|
159
159
|
showAsterisk?: boolean;
|
160
160
|
description?: React.ReactNode;
|
161
161
|
error?: string;
|
162
|
+
id?: string;
|
162
163
|
}
|
163
164
|
declare const Select: ({ showAsterisk, label, description, error, hideSearch, status, ...props }: SelectProps) => react_jsx_runtime.JSX.Element;
|
164
165
|
|
@@ -231,9 +232,10 @@ type PopoverPropsType = {
|
|
231
232
|
onOpenAutoFocus?: (e: Event) => void;
|
232
233
|
onCloseAutoFocus?: (e: Event) => void;
|
233
234
|
portal?: boolean;
|
235
|
+
id?: string;
|
234
236
|
};
|
235
237
|
declare const Popover: {
|
236
|
-
({ trigger, children, open, onOpenChange, contentClassName, asChild, align, side, alignOffset, triggerClassName, sideOffset, onOpenAutoFocus, onCloseAutoFocus, portal, ...props }: React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> & PopoverPropsType): react_jsx_runtime.JSX.Element;
|
238
|
+
({ trigger, children, open, onOpenChange, contentClassName, asChild, align, side, alignOffset, triggerClassName, sideOffset, onOpenAutoFocus, onCloseAutoFocus, portal, id, ...props }: React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> & PopoverPropsType): react_jsx_runtime.JSX.Element;
|
237
239
|
displayName: string | undefined;
|
238
240
|
};
|
239
241
|
|
@@ -259,6 +261,8 @@ interface CopyableLabelProps {
|
|
259
261
|
iconsPosition?: "left" | "right";
|
260
262
|
clampText?: boolean;
|
261
263
|
textClassName?: string;
|
264
|
+
clampMode?: "truncate" | "wrap";
|
265
|
+
isLink?: boolean;
|
262
266
|
}
|
263
267
|
declare const CopyableLabel: React.FC<CopyableLabelProps>;
|
264
268
|
|
@@ -283,7 +287,9 @@ type Props = {
|
|
283
287
|
};
|
284
288
|
declare const DevBanner: (props: Props) => react_jsx_runtime.JSX.Element | null;
|
285
289
|
|
286
|
-
type DrawerRootType = React$1.ComponentProps<typeof Drawer$1.Root
|
290
|
+
type DrawerRootType = React$1.ComponentProps<typeof Drawer$1.Root> & {
|
291
|
+
id?: string;
|
292
|
+
};
|
287
293
|
declare const DrawerRoot: {
|
288
294
|
({ shouldScaleBackground, ...props }: DrawerRootType): react_jsx_runtime.JSX.Element;
|
289
295
|
displayName: string;
|
@@ -306,7 +312,7 @@ type DrawerPropsType = {
|
|
306
312
|
onOpenAutoFocus?: (e: Event) => void;
|
307
313
|
onCloseAutoFocus?: (e: Event) => void;
|
308
314
|
};
|
309
|
-
declare const Drawer: ({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, drawerContentClassName, onCloseAutoFocus, }: Omit<DrawerRootType, "value"> & DrawerPropsType) => react_jsx_runtime.JSX.Element;
|
315
|
+
declare const Drawer: ({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, drawerContentClassName, onCloseAutoFocus, id, }: Omit<DrawerRootType, "value"> & DrawerPropsType) => react_jsx_runtime.JSX.Element;
|
310
316
|
|
311
317
|
type LocaleOption = {
|
312
318
|
key: string;
|
@@ -394,6 +400,7 @@ type PaginationProps = {
|
|
394
400
|
onPageChange?: (page: number) => void;
|
395
401
|
totalItems?: number;
|
396
402
|
itemsPerPage?: number;
|
403
|
+
id?: string;
|
397
404
|
};
|
398
405
|
/**
|
399
406
|
* Pagination component for displaying pagination controls.
|
@@ -402,7 +409,7 @@ type PaginationProps = {
|
|
402
409
|
* @param {function} onPageChange - Callback function to handle page change.
|
403
410
|
* @param {number | undefined} itemsPerPage - The number of items per page.
|
404
411
|
*/
|
405
|
-
declare const Pagination: ({ currentPage, totalPages, onPageChange, itemsPerPage, totalItems, }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
412
|
+
declare const Pagination: ({ currentPage, totalPages, onPageChange, itemsPerPage, totalItems, id, }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
406
413
|
|
407
414
|
type SelectOption = {
|
408
415
|
value: string;
|
@@ -430,6 +437,7 @@ type FilterContentProps = {
|
|
430
437
|
filters: FilterListItem[];
|
431
438
|
values?: Record<string, any>;
|
432
439
|
setAppliedFilters?: (values: Record<string, any>) => void;
|
440
|
+
id?: string;
|
433
441
|
};
|
434
442
|
type FilterListOptions = FilterListItem[];
|
435
443
|
|
@@ -486,8 +494,9 @@ type PageDataToolbarProps = {
|
|
486
494
|
isRefetching?: boolean;
|
487
495
|
setAppliedFilters?: (values: Record<string, any>) => void;
|
488
496
|
filterListOptions?: FilterListItem[];
|
497
|
+
id?: string;
|
489
498
|
};
|
490
|
-
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, }: PageDataToolbarProps) => react_jsx_runtime.JSX.Element;
|
499
|
+
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, id, }: PageDataToolbarProps) => react_jsx_runtime.JSX.Element;
|
491
500
|
|
492
501
|
type ResourcePermission = {
|
493
502
|
resource: string;
|
@@ -522,12 +531,6 @@ declare const useHasPermission: (permission: {
|
|
522
531
|
|
523
532
|
declare const HasResourcePermission: ({ permission, children, }: ResourcePermissionProps) => react_jsx_runtime.JSX.Element;
|
524
533
|
|
525
|
-
type FilterPopoverProps = FilterContentProps & {
|
526
|
-
isOpen?: boolean;
|
527
|
-
trigger?: ReactNode;
|
528
|
-
};
|
529
|
-
declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, }: FilterPopoverProps) => react_jsx_runtime.JSX.Element | null;
|
530
|
-
|
531
534
|
type CalendarInputProps = {
|
532
535
|
label?: string;
|
533
536
|
helpText?: string | React$1.ReactNode;
|
@@ -545,6 +548,35 @@ declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupP
|
|
545
548
|
className?: string;
|
546
549
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
547
550
|
|
551
|
+
type FilterPopoverProps = FilterContentProps & {
|
552
|
+
isOpen?: boolean;
|
553
|
+
trigger?: ReactNode;
|
554
|
+
id?: string;
|
555
|
+
};
|
556
|
+
declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, id, }: FilterPopoverProps) => react_jsx_runtime.JSX.Element | null;
|
557
|
+
|
558
|
+
interface TextOverflowProps extends React__default.HTMLAttributes<HTMLElement> {
|
559
|
+
children: React__default.ReactNode;
|
560
|
+
mode?: "wrap" | "truncate" | "overflow";
|
561
|
+
as?: React__default.ElementType;
|
562
|
+
href?: string;
|
563
|
+
}
|
564
|
+
/**
|
565
|
+
* TextOverflow is a React component that controls how text overflows its container.
|
566
|
+
*
|
567
|
+
* Props:
|
568
|
+
* - children: ReactNode - The content to display.
|
569
|
+
* - mode: "truncate" | "wrap" | "overflow" (default: "truncate")
|
570
|
+
* - "truncate": Single line, truncated with ellipsis.
|
571
|
+
* - "wrap": Allows text to wrap onto multiple lines.
|
572
|
+
* - "overflow": No special overflow handling.
|
573
|
+
* - as: React.ElementType - The HTML element or React component to render as the container (default: "div").
|
574
|
+
* - href: string (optional) - If provided and 'as' is an anchor, sets the link target to "_blank".
|
575
|
+
* - className: string (optional) - Additional CSS classes for the container.
|
576
|
+
* - ...rest: Other HTML attributes passed to the container.
|
577
|
+
*/
|
578
|
+
declare const TextOverflow: ({ children, mode, className, as: Component, ...rest }: TextOverflowProps) => react_jsx_runtime.JSX.Element;
|
579
|
+
|
548
580
|
declare const CurrencySymbolMap: Record<string, string>;
|
549
581
|
interface FormatCurrencyOptions {
|
550
582
|
convertToMajorCurrency?: boolean;
|
@@ -566,4 +598,4 @@ declare class DateAction {
|
|
566
598
|
|
567
599
|
declare function cn(...inputs: ClassValue[]): string;
|
568
600
|
|
569
|
-
export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, Select, Sidebar, Status, Table, type TablePaginationProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useHasPermission, usePermissions };
|
601
|
+
export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, Select, Sidebar, Status, Table, type TablePaginationProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useHasPermission, usePermissions };
|
package/dist/index.d.ts
CHANGED
@@ -159,6 +159,7 @@ interface SelectProps {
|
|
159
159
|
showAsterisk?: boolean;
|
160
160
|
description?: React.ReactNode;
|
161
161
|
error?: string;
|
162
|
+
id?: string;
|
162
163
|
}
|
163
164
|
declare const Select: ({ showAsterisk, label, description, error, hideSearch, status, ...props }: SelectProps) => react_jsx_runtime.JSX.Element;
|
164
165
|
|
@@ -231,9 +232,10 @@ type PopoverPropsType = {
|
|
231
232
|
onOpenAutoFocus?: (e: Event) => void;
|
232
233
|
onCloseAutoFocus?: (e: Event) => void;
|
233
234
|
portal?: boolean;
|
235
|
+
id?: string;
|
234
236
|
};
|
235
237
|
declare const Popover: {
|
236
|
-
({ trigger, children, open, onOpenChange, contentClassName, asChild, align, side, alignOffset, triggerClassName, sideOffset, onOpenAutoFocus, onCloseAutoFocus, portal, ...props }: React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> & PopoverPropsType): react_jsx_runtime.JSX.Element;
|
238
|
+
({ trigger, children, open, onOpenChange, contentClassName, asChild, align, side, alignOffset, triggerClassName, sideOffset, onOpenAutoFocus, onCloseAutoFocus, portal, id, ...props }: React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> & PopoverPropsType): react_jsx_runtime.JSX.Element;
|
237
239
|
displayName: string | undefined;
|
238
240
|
};
|
239
241
|
|
@@ -259,6 +261,8 @@ interface CopyableLabelProps {
|
|
259
261
|
iconsPosition?: "left" | "right";
|
260
262
|
clampText?: boolean;
|
261
263
|
textClassName?: string;
|
264
|
+
clampMode?: "truncate" | "wrap";
|
265
|
+
isLink?: boolean;
|
262
266
|
}
|
263
267
|
declare const CopyableLabel: React.FC<CopyableLabelProps>;
|
264
268
|
|
@@ -283,7 +287,9 @@ type Props = {
|
|
283
287
|
};
|
284
288
|
declare const DevBanner: (props: Props) => react_jsx_runtime.JSX.Element | null;
|
285
289
|
|
286
|
-
type DrawerRootType = React$1.ComponentProps<typeof Drawer$1.Root
|
290
|
+
type DrawerRootType = React$1.ComponentProps<typeof Drawer$1.Root> & {
|
291
|
+
id?: string;
|
292
|
+
};
|
287
293
|
declare const DrawerRoot: {
|
288
294
|
({ shouldScaleBackground, ...props }: DrawerRootType): react_jsx_runtime.JSX.Element;
|
289
295
|
displayName: string;
|
@@ -306,7 +312,7 @@ type DrawerPropsType = {
|
|
306
312
|
onOpenAutoFocus?: (e: Event) => void;
|
307
313
|
onCloseAutoFocus?: (e: Event) => void;
|
308
314
|
};
|
309
|
-
declare const Drawer: ({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, drawerContentClassName, onCloseAutoFocus, }: Omit<DrawerRootType, "value"> & DrawerPropsType) => react_jsx_runtime.JSX.Element;
|
315
|
+
declare const Drawer: ({ trigger, children, open, onOpenChange, hideCloseButton, footer, title, description, contentClassName, headerClassName, titleClassName, descriptionClassName, footerClassName, asChild, onOpenAutoFocus, drawerContentClassName, onCloseAutoFocus, id, }: Omit<DrawerRootType, "value"> & DrawerPropsType) => react_jsx_runtime.JSX.Element;
|
310
316
|
|
311
317
|
type LocaleOption = {
|
312
318
|
key: string;
|
@@ -394,6 +400,7 @@ type PaginationProps = {
|
|
394
400
|
onPageChange?: (page: number) => void;
|
395
401
|
totalItems?: number;
|
396
402
|
itemsPerPage?: number;
|
403
|
+
id?: string;
|
397
404
|
};
|
398
405
|
/**
|
399
406
|
* Pagination component for displaying pagination controls.
|
@@ -402,7 +409,7 @@ type PaginationProps = {
|
|
402
409
|
* @param {function} onPageChange - Callback function to handle page change.
|
403
410
|
* @param {number | undefined} itemsPerPage - The number of items per page.
|
404
411
|
*/
|
405
|
-
declare const Pagination: ({ currentPage, totalPages, onPageChange, itemsPerPage, totalItems, }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
412
|
+
declare const Pagination: ({ currentPage, totalPages, onPageChange, itemsPerPage, totalItems, id, }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
406
413
|
|
407
414
|
type SelectOption = {
|
408
415
|
value: string;
|
@@ -430,6 +437,7 @@ type FilterContentProps = {
|
|
430
437
|
filters: FilterListItem[];
|
431
438
|
values?: Record<string, any>;
|
432
439
|
setAppliedFilters?: (values: Record<string, any>) => void;
|
440
|
+
id?: string;
|
433
441
|
};
|
434
442
|
type FilterListOptions = FilterListItem[];
|
435
443
|
|
@@ -486,8 +494,9 @@ type PageDataToolbarProps = {
|
|
486
494
|
isRefetching?: boolean;
|
487
495
|
setAppliedFilters?: (values: Record<string, any>) => void;
|
488
496
|
filterListOptions?: FilterListItem[];
|
497
|
+
id?: string;
|
489
498
|
};
|
490
|
-
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, }: PageDataToolbarProps) => react_jsx_runtime.JSX.Element;
|
499
|
+
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, id, }: PageDataToolbarProps) => react_jsx_runtime.JSX.Element;
|
491
500
|
|
492
501
|
type ResourcePermission = {
|
493
502
|
resource: string;
|
@@ -522,12 +531,6 @@ declare const useHasPermission: (permission: {
|
|
522
531
|
|
523
532
|
declare const HasResourcePermission: ({ permission, children, }: ResourcePermissionProps) => react_jsx_runtime.JSX.Element;
|
524
533
|
|
525
|
-
type FilterPopoverProps = FilterContentProps & {
|
526
|
-
isOpen?: boolean;
|
527
|
-
trigger?: ReactNode;
|
528
|
-
};
|
529
|
-
declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, }: FilterPopoverProps) => react_jsx_runtime.JSX.Element | null;
|
530
|
-
|
531
534
|
type CalendarInputProps = {
|
532
535
|
label?: string;
|
533
536
|
helpText?: string | React$1.ReactNode;
|
@@ -545,6 +548,35 @@ declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupP
|
|
545
548
|
className?: string;
|
546
549
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
547
550
|
|
551
|
+
type FilterPopoverProps = FilterContentProps & {
|
552
|
+
isOpen?: boolean;
|
553
|
+
trigger?: ReactNode;
|
554
|
+
id?: string;
|
555
|
+
};
|
556
|
+
declare const FilterPopover: ({ filters, setAppliedFilters, isOpen, id, }: FilterPopoverProps) => react_jsx_runtime.JSX.Element | null;
|
557
|
+
|
558
|
+
interface TextOverflowProps extends React__default.HTMLAttributes<HTMLElement> {
|
559
|
+
children: React__default.ReactNode;
|
560
|
+
mode?: "wrap" | "truncate" | "overflow";
|
561
|
+
as?: React__default.ElementType;
|
562
|
+
href?: string;
|
563
|
+
}
|
564
|
+
/**
|
565
|
+
* TextOverflow is a React component that controls how text overflows its container.
|
566
|
+
*
|
567
|
+
* Props:
|
568
|
+
* - children: ReactNode - The content to display.
|
569
|
+
* - mode: "truncate" | "wrap" | "overflow" (default: "truncate")
|
570
|
+
* - "truncate": Single line, truncated with ellipsis.
|
571
|
+
* - "wrap": Allows text to wrap onto multiple lines.
|
572
|
+
* - "overflow": No special overflow handling.
|
573
|
+
* - as: React.ElementType - The HTML element or React component to render as the container (default: "div").
|
574
|
+
* - href: string (optional) - If provided and 'as' is an anchor, sets the link target to "_blank".
|
575
|
+
* - className: string (optional) - Additional CSS classes for the container.
|
576
|
+
* - ...rest: Other HTML attributes passed to the container.
|
577
|
+
*/
|
578
|
+
declare const TextOverflow: ({ children, mode, className, as: Component, ...rest }: TextOverflowProps) => react_jsx_runtime.JSX.Element;
|
579
|
+
|
548
580
|
declare const CurrencySymbolMap: Record<string, string>;
|
549
581
|
interface FormatCurrencyOptions {
|
550
582
|
convertToMajorCurrency?: boolean;
|
@@ -566,4 +598,4 @@ declare class DateAction {
|
|
566
598
|
|
567
599
|
declare function cn(...inputs: ClassValue[]): string;
|
568
600
|
|
569
|
-
export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, Select, Sidebar, Status, Table, type TablePaginationProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useHasPermission, usePermissions };
|
601
|
+
export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, Select, Sidebar, Status, Table, type TablePaginationProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useHasPermission, usePermissions };
|