@6thbridge/hexa 0.0.0-pr73-130 → 0.0.0-pr76-133
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 +42 -15
- package/dist/index.d.ts +42 -15
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/dist/output.css +12 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -356,13 +356,26 @@ type BusinessType = {
|
|
|
356
356
|
access?: string;
|
|
357
357
|
};
|
|
358
358
|
|
|
359
|
+
type ResourcePermission = {
|
|
360
|
+
resource: string;
|
|
361
|
+
action: string;
|
|
362
|
+
};
|
|
363
|
+
type ResourcePermissions = ResourcePermission[];
|
|
364
|
+
type ResourcePermissionProps = {
|
|
365
|
+
permission?: {
|
|
366
|
+
resource?: string;
|
|
367
|
+
action?: string;
|
|
368
|
+
};
|
|
369
|
+
children: ReactNode;
|
|
370
|
+
};
|
|
371
|
+
|
|
359
372
|
type SingleLinkType = {
|
|
360
373
|
to: string;
|
|
361
374
|
name: string;
|
|
362
375
|
isHidden?: boolean;
|
|
363
376
|
icon?: ReactNode;
|
|
364
377
|
badge?: ReactNode;
|
|
365
|
-
permission?:
|
|
378
|
+
permission?: ResourcePermissionProps["permission"];
|
|
366
379
|
key?: string;
|
|
367
380
|
id: string;
|
|
368
381
|
};
|
|
@@ -538,19 +551,6 @@ type PageDataToolbarProps = {
|
|
|
538
551
|
};
|
|
539
552
|
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, onFilterChange, id, }: PageDataToolbarProps) => React$1.JSX.Element;
|
|
540
553
|
|
|
541
|
-
type ResourcePermission = {
|
|
542
|
-
resource: string;
|
|
543
|
-
action: string;
|
|
544
|
-
};
|
|
545
|
-
type ResourcePermissions = ResourcePermission[];
|
|
546
|
-
type ResourcePermissionProps = {
|
|
547
|
-
permission?: {
|
|
548
|
-
resource?: string;
|
|
549
|
-
action?: string;
|
|
550
|
-
};
|
|
551
|
-
children: ReactNode;
|
|
552
|
-
};
|
|
553
|
-
|
|
554
554
|
declare const PermissionsContext: React$1.Context<ResourcePermissions | undefined>;
|
|
555
555
|
declare const PermissionsProvider: ({ permissions, children, }: {
|
|
556
556
|
permissions: ResourcePermissions;
|
|
@@ -798,6 +798,33 @@ type RichTextEditorProps = {
|
|
|
798
798
|
*/
|
|
799
799
|
declare const RichTextEditor: ({ label, helpText, error, value, onChange, optional, isRequired, extensions, editorClassName, wrapperClassName, controls, extraMenuNodes, placeholder, }: RichTextEditorProps) => React$1.JSX.Element | null;
|
|
800
800
|
|
|
801
|
+
type TagOption = {
|
|
802
|
+
value: string;
|
|
803
|
+
label: string;
|
|
804
|
+
variant?: string;
|
|
805
|
+
disabled?: boolean;
|
|
806
|
+
[key: string]: unknown;
|
|
807
|
+
};
|
|
808
|
+
interface TagsInputProps {
|
|
809
|
+
value: TagOption[];
|
|
810
|
+
onChange: (value: TagOption[]) => void;
|
|
811
|
+
options?: TagOption[];
|
|
812
|
+
label?: string;
|
|
813
|
+
error?: string;
|
|
814
|
+
placeholder?: string;
|
|
815
|
+
description?: React$1.ReactNode;
|
|
816
|
+
showAsterisk?: boolean;
|
|
817
|
+
disabled?: boolean;
|
|
818
|
+
isLoading?: boolean;
|
|
819
|
+
allowCreate?: boolean;
|
|
820
|
+
renderTag?: (tag: TagOption, remove: () => void) => React$1.ReactNode;
|
|
821
|
+
renderOption?: (option: TagOption, selected: boolean) => React$1.ReactNode;
|
|
822
|
+
validateTag?: (input: string) => boolean;
|
|
823
|
+
onCreate?: (input: string) => TagOption;
|
|
824
|
+
maxTags?: number;
|
|
825
|
+
}
|
|
826
|
+
declare const TagsInput: ({ value, onChange, options, label, error, placeholder, description, showAsterisk, disabled, isLoading, allowCreate, renderTag, renderOption, validateTag, onCreate, maxTags, }: TagsInputProps) => React$1.JSX.Element;
|
|
827
|
+
|
|
801
828
|
declare const CurrencySymbolMap: Record<string, string>;
|
|
802
829
|
interface FormatCurrencyOptions {
|
|
803
830
|
convertToMajorCurrency?: boolean;
|
|
@@ -819,4 +846,4 @@ declare class DateAction {
|
|
|
819
846
|
|
|
820
847
|
declare function cn(...inputs: ClassValue[]): string;
|
|
821
848
|
|
|
822
|
-
export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, FeatureBanner, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, MultiSelect, type MultiSelectDataType, MultiSelectTrigger, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, RichTextEditor, ScrollArea, Select, Sidebar, Status, Table, type TableBulkRowActionsProps, type TablePaginationProps, Tabs, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };
|
|
849
|
+
export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, FeatureBanner, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, MultiSelect, type MultiSelectDataType, MultiSelectTrigger, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, RichTextEditor, ScrollArea, Select, Sidebar, Status, Table, type TableBulkRowActionsProps, type TablePaginationProps, Tabs, type TagOption, TagsInput, type TagsInputProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };
|
package/dist/index.d.ts
CHANGED
|
@@ -356,13 +356,26 @@ type BusinessType = {
|
|
|
356
356
|
access?: string;
|
|
357
357
|
};
|
|
358
358
|
|
|
359
|
+
type ResourcePermission = {
|
|
360
|
+
resource: string;
|
|
361
|
+
action: string;
|
|
362
|
+
};
|
|
363
|
+
type ResourcePermissions = ResourcePermission[];
|
|
364
|
+
type ResourcePermissionProps = {
|
|
365
|
+
permission?: {
|
|
366
|
+
resource?: string;
|
|
367
|
+
action?: string;
|
|
368
|
+
};
|
|
369
|
+
children: ReactNode;
|
|
370
|
+
};
|
|
371
|
+
|
|
359
372
|
type SingleLinkType = {
|
|
360
373
|
to: string;
|
|
361
374
|
name: string;
|
|
362
375
|
isHidden?: boolean;
|
|
363
376
|
icon?: ReactNode;
|
|
364
377
|
badge?: ReactNode;
|
|
365
|
-
permission?:
|
|
378
|
+
permission?: ResourcePermissionProps["permission"];
|
|
366
379
|
key?: string;
|
|
367
380
|
id: string;
|
|
368
381
|
};
|
|
@@ -538,19 +551,6 @@ type PageDataToolbarProps = {
|
|
|
538
551
|
};
|
|
539
552
|
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, onFilterChange, id, }: PageDataToolbarProps) => React$1.JSX.Element;
|
|
540
553
|
|
|
541
|
-
type ResourcePermission = {
|
|
542
|
-
resource: string;
|
|
543
|
-
action: string;
|
|
544
|
-
};
|
|
545
|
-
type ResourcePermissions = ResourcePermission[];
|
|
546
|
-
type ResourcePermissionProps = {
|
|
547
|
-
permission?: {
|
|
548
|
-
resource?: string;
|
|
549
|
-
action?: string;
|
|
550
|
-
};
|
|
551
|
-
children: ReactNode;
|
|
552
|
-
};
|
|
553
|
-
|
|
554
554
|
declare const PermissionsContext: React$1.Context<ResourcePermissions | undefined>;
|
|
555
555
|
declare const PermissionsProvider: ({ permissions, children, }: {
|
|
556
556
|
permissions: ResourcePermissions;
|
|
@@ -798,6 +798,33 @@ type RichTextEditorProps = {
|
|
|
798
798
|
*/
|
|
799
799
|
declare const RichTextEditor: ({ label, helpText, error, value, onChange, optional, isRequired, extensions, editorClassName, wrapperClassName, controls, extraMenuNodes, placeholder, }: RichTextEditorProps) => React$1.JSX.Element | null;
|
|
800
800
|
|
|
801
|
+
type TagOption = {
|
|
802
|
+
value: string;
|
|
803
|
+
label: string;
|
|
804
|
+
variant?: string;
|
|
805
|
+
disabled?: boolean;
|
|
806
|
+
[key: string]: unknown;
|
|
807
|
+
};
|
|
808
|
+
interface TagsInputProps {
|
|
809
|
+
value: TagOption[];
|
|
810
|
+
onChange: (value: TagOption[]) => void;
|
|
811
|
+
options?: TagOption[];
|
|
812
|
+
label?: string;
|
|
813
|
+
error?: string;
|
|
814
|
+
placeholder?: string;
|
|
815
|
+
description?: React$1.ReactNode;
|
|
816
|
+
showAsterisk?: boolean;
|
|
817
|
+
disabled?: boolean;
|
|
818
|
+
isLoading?: boolean;
|
|
819
|
+
allowCreate?: boolean;
|
|
820
|
+
renderTag?: (tag: TagOption, remove: () => void) => React$1.ReactNode;
|
|
821
|
+
renderOption?: (option: TagOption, selected: boolean) => React$1.ReactNode;
|
|
822
|
+
validateTag?: (input: string) => boolean;
|
|
823
|
+
onCreate?: (input: string) => TagOption;
|
|
824
|
+
maxTags?: number;
|
|
825
|
+
}
|
|
826
|
+
declare const TagsInput: ({ value, onChange, options, label, error, placeholder, description, showAsterisk, disabled, isLoading, allowCreate, renderTag, renderOption, validateTag, onCreate, maxTags, }: TagsInputProps) => React$1.JSX.Element;
|
|
827
|
+
|
|
801
828
|
declare const CurrencySymbolMap: Record<string, string>;
|
|
802
829
|
interface FormatCurrencyOptions {
|
|
803
830
|
convertToMajorCurrency?: boolean;
|
|
@@ -819,4 +846,4 @@ declare class DateAction {
|
|
|
819
846
|
|
|
820
847
|
declare function cn(...inputs: ClassValue[]): string;
|
|
821
848
|
|
|
822
|
-
export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, FeatureBanner, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, MultiSelect, type MultiSelectDataType, MultiSelectTrigger, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, RichTextEditor, ScrollArea, Select, Sidebar, Status, Table, type TableBulkRowActionsProps, type TablePaginationProps, Tabs, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };
|
|
849
|
+
export { AmountAction, Banner, Button, CalendarInput, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, Drawer, DrawerClose, type DrawerPropsType, DrawerRoot, FeatureBanner, type FilterListItem, type FilterListOptions, FilterPopover, FlagComponent, FormLabel, type FormatCurrencyOptions, HasResourcePermission, Input, Loader, LocaleSelector, MultiSelect, type MultiSelectDataType, MultiSelectTrigger, OTPInput, PageDataToolbar, Pagination, PasswordInput, PermissionsContext, PermissionsProvider, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, RadioGroup, RadioGroupItem, type ResourcePermission, type ResourcePermissionProps, type ResourcePermissions, RichTextEditor, ScrollArea, Select, Sidebar, Status, Table, type TableBulkRowActionsProps, type TablePaginationProps, Tabs, type TagOption, TagsInput, type TagsInputProps, TextOverflow, type TextOverflowProps, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger, buttonVariants, cn, useFilterStore, useHasPermission, usePermissions };
|