@sustaina/shared-ui 1.31.0 → 1.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -31,6 +31,96 @@
31
31
  --color-sus-primary-1-active: #dfeae3;
32
32
  --color-sus-secondary-hover: #907b46;
33
33
 
34
+ /* update ui 22-12-2025 */
35
+ --color-sus-main-accent: #379a2a;
36
+ --color-sus-main-gray: #000000;
37
+ --color-sus-main-background: #ffffff;
38
+ --color-sus-primary-green-1: #fbfefa;
39
+ --color-sus-primary-green-2: #f5fbf4;
40
+ --color-sus-primary-green-3: #e8f7e6;
41
+ --color-sus-primary-green-4: #d9f1d5;
42
+ --color-sus-primary-green-5: #c7eac2;
43
+ --color-sus-primary-green-6: #b0dfaa;
44
+ --color-sus-primary-green-7: #92d089;
45
+ --color-sus-primary-green-8: #64bc59;
46
+ --color-sus-primary-green-9: #379a2a;
47
+ --color-sus-primary-green-10: #338b27;
48
+ --color-sus-primary-green-11: #268019;
49
+ --color-sus-primary-green-12: #203d1c;
50
+ --color-sus-secondary-green-1: #fdfefc;
51
+ --color-sus-secondary-green-2: #f6faf7;
52
+ --color-sus-secondary-green-3: #eaf5ee;
53
+ --color-sus-secondary-green-4: #dceee3;
54
+ --color-sus-secondary-green-5: #cee6d6;
55
+ --color-sus-secondary-green-6: #bcd9c7;
56
+ --color-sus-secondary-green-7: #a4c8b0;
57
+ --color-sus-secondary-green-8: #80b292;
58
+ --color-sus-secondary-green-9: #82b495;
59
+ --color-sus-secondary-green-10: #77a989;
60
+ --color-sus-secondary-green-11: #48785b;
61
+ --color-sus-secondary-green-12: #28392e;
62
+ --color-sus-secondary-gray-1: #fcfcfc;
63
+ --color-sus-secondary-gray-2: #f9f9f9;
64
+ --color-sus-secondary-gray-3: #f0f0f0;
65
+ --color-sus-secondary-gray-4: #e8e8e8;
66
+ --color-sus-secondary-gray-5: #e1e1e1;
67
+ --color-sus-secondary-gray-6: #d9d9d9;
68
+ --color-sus-secondary-gray-7: #cecece;
69
+ --color-sus-secondary-gray-8: #bbbbbb;
70
+ --color-sus-secondary-gray-9: #8c8c8c;
71
+ --color-sus-secondary-gray-10: #818181;
72
+ --color-sus-secondary-gray-11: #636363;
73
+ --color-sus-secondary-gray-12: #1f1f1f;
74
+ --color-sus-alert-positive-1: #92d08b;
75
+ --color-sus-alert-positive-2: #64bc59;
76
+ --color-sus-alert-positive-3: #37742f;
77
+ --color-sus-alert-info-1: #6f9deb;
78
+ --color-sus-alert-info-2: #2e70e2;
79
+ --color-sus-alert-info-3: #144190;
80
+ --color-sus-alert-warning-1: #fffbe6;
81
+ --color-sus-alert-warning-2: #fff3b8;
82
+ --color-sus-alert-warning-3: #ffeb8a;
83
+ --color-sus-alert-warning-4: #ffe45c;
84
+ --color-sus-alert-warning-5: #ffdd2f;
85
+ --color-sus-alert-warning-6: #fed503;
86
+ --color-sus-alert-warning-7: #d1af01;
87
+ --color-sus-alert-warning-8: #a38800;
88
+ --color-sus-alert-warning-9: #756200;
89
+ --color-sus-alert-warning-10: #463c01;
90
+ --color-sus-alert-warning-11: #1a1500;
91
+ --color-sus-alert-negative-1: #fbeaeb;
92
+ --color-sus-alert-negative-2: #f3c4c5;
93
+ --color-sus-alert-negative-3: #ea9f9f;
94
+ --color-sus-alert-negative-4: #e2787a;
95
+ --color-sus-alert-negative-5: #da5256;
96
+ --color-sus-alert-negative-6: #c32a2c;
97
+ --color-sus-alert-negative-7: #ad2527;
98
+ --color-sus-alert-negative-8: #871d1e;
99
+ --color-sus-alert-negative-9: #611516;
100
+ --color-sus-alert-negative-10: #3b0c0d;
101
+ --color-sus-alert-negative-11: #150405;
102
+ --color-sus-button-accent-1: #cecece;
103
+ --color-sus-button-accent-2: #8b8b8b;
104
+ --color-sus-button-accent-3: #646464;
105
+ --color-sus-button-red-1: #ec8f83;
106
+ --color-sus-button-red-2: #bf3630;
107
+ --color-sus-button-red-3: #bb0b0e;
108
+ --color-sus-button-yellow-1: #ffe470;
109
+ --color-sus-button-yellow-2: #ffd503;
110
+ --color-sus-button-yellow-3: #f0c000;
111
+ --color-sus-button-yellowdark-1: #b9a874;
112
+ --color-sus-button-yellowdark-2: #a49053;
113
+ --color-sus-button-yellowdark-3: #8b7a46;
114
+ --color-sus-button-green-1: #a3c8b0;
115
+ --color-sus-button-green-2: #82b495;
116
+ --color-sus-button-green-3: #48785b;
117
+ --color-sus-button-blue-1: #89a9dd;
118
+ --color-sus-button-blue-2: #6084c1;
119
+ --color-sus-button-blue-3: #5177b8;
120
+ --color-sus-button-black-1: #616161;
121
+ --color-sus-button-black-2: #303030;
122
+ --color-sus-button-black-3: #000000;
123
+
34
124
  /* animate */
35
125
  --animate-sus-spinner: sus-spinner 1s linear infinite;
36
126
  @keyframes sus-spinner {
package/dist/index.d.mts CHANGED
@@ -116,7 +116,7 @@ interface AdvanceSearchProps {
116
116
  declare const AdvanceSearch: React__default.FC<AdvanceSearchProps>;
117
117
 
118
118
  declare const buttonVariants: (props?: ({
119
- variant?: "default" | "link" | "secondary" | "destructive" | "outline" | "ghost" | "cancel" | "defaultSelect" | "defaultOutline" | "warning" | null | undefined;
119
+ variant?: "default" | "link" | "secondary" | "destructive" | "cancel" | "warning" | "cottonYellowDark" | "cottonGreen" | "cottonBlue" | "cottonRed" | "cottonAccent" | "cottonYellow" | "cottonBlack" | "defaultOutline" | "destructiveOutline" | "outline" | "ghost" | "defaultSelect" | null | undefined;
120
120
  size?: "default" | "option" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-md" | "icon-lg" | null | undefined;
121
121
  active?: boolean | null | undefined;
122
122
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
@@ -475,11 +475,7 @@ type DialogAlertI18nResource = Resource;
475
475
 
476
476
  declare function DialogAlert({ open, onOpenChange, title, description, variant, confirmText, cancelText, onConfirm, onCancel, showCancel, align, outlet, persistent }: DialogAlertProps): react_jsx_runtime.JSX.Element;
477
477
 
478
- type GetTemplatesPayload = {
479
- setOpen?: (data: boolean) => void;
480
- };
481
- type GetTemplatesFunc = (payload: GetTemplatesPayload) => DialogAlertTemplates;
482
- declare const getDialogTemplates: GetTemplatesFunc;
478
+ declare const DIALOG_ALERT_TEMPLATES: DialogAlertTemplates;
483
479
 
484
480
  type OpenDialogAlert = Omit<DialogAlertProps, "open" | "onOpenChange">;
485
481
  interface DialogAlertProviderProps extends React.PropsWithChildren {
@@ -699,6 +695,8 @@ declare const ArrowIcon: React$1.FC<SVGProps<SVGSVGElement>>;
699
695
 
700
696
  declare const SuiCalendarIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
701
697
 
698
+ declare const SuiCalendarIcon2: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
699
+
702
700
  declare const SuiCheckIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
703
701
 
704
702
  declare const SuiDotsVerticalIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
@@ -709,6 +707,13 @@ declare const SuiExpandIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runti
709
707
 
710
708
  declare const SuiFilterIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
711
709
 
710
+ interface FiltersIconProps extends SVGProps<SVGSVGElement> {
711
+ size?: number | string;
712
+ color?: string;
713
+ strokeWidth?: number;
714
+ }
715
+ declare const FiltersIcon: React$1.FC<FiltersIconProps>;
716
+
712
717
  declare const NotFoundIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
713
718
 
714
719
  declare const SuiSettingIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
@@ -766,7 +771,7 @@ type InputProps$1 = Omit<InputPrimitiveProps$1, "size" | "prefix"> & VariantProp
766
771
  validationMessageProps?: React$1.HTMLAttributes<HTMLParagraphElement>;
767
772
  onValueChange?: (value: string) => void;
768
773
  };
769
- declare const Input: React$1.ForwardRefExoticComponent<Omit<InputPrimitiveProps$1, "prefix" | "size"> & VariantProps<(props?: ({
774
+ declare const Input: React$1.ForwardRefExoticComponent<Omit<InputPrimitiveProps$1, "size" | "prefix"> & VariantProps<(props?: ({
770
775
  controlSize?: "sm" | "lg" | "md" | null | undefined;
771
776
  fullWidth?: boolean | null | undefined;
772
777
  appearance?: "filled" | "unfilled" | null | undefined;
@@ -973,7 +978,9 @@ declare function RadioGroupItem({ id, value, children, className, containerProps
973
978
  value: string;
974
979
  containerProps?: React.ComponentProps<"div">;
975
980
  }): react_jsx_runtime.JSX.Element;
976
- declare function RadioLabel({ children, htmlFor, className, ...props }: React.ComponentProps<"label">): react_jsx_runtime.JSX.Element;
981
+ declare function RadioLabel({ children, htmlFor, className, disabled, ...props }: React.ComponentProps<"label"> & {
982
+ disabled?: boolean;
983
+ }): react_jsx_runtime.JSX.Element;
977
984
 
978
985
  type ImagePayload = {
979
986
  src: string;
@@ -1335,6 +1342,26 @@ type InputNumberProps = NumericFormatProps<InputProps> & {
1335
1342
  };
1336
1343
  declare const InputNumber: ({ customInputProps, ...props }: InputNumberProps) => react_jsx_runtime.JSX.Element;
1337
1344
 
1345
+ type PermissionAction = "CREATE" | "READ" | "EDIT" | "DELETE" | "NOTIFY" | "CREATE_DRAFT" | "REQUIRE_SITE";
1346
+ type PermissionString = `${string}.${PermissionAction}`;
1347
+ interface ActionButtonProps {
1348
+ label: string;
1349
+ onPress?: (id?: any) => void;
1350
+ requiredPermission?: PermissionString | string;
1351
+ }
1352
+ type ActionMenuProps = {
1353
+ id: any;
1354
+ buttons: ActionButtonProps[];
1355
+ checkPermissionFunc?: (requiredPermission: PermissionString) => boolean | ((requiredPermission: string) => boolean);
1356
+ triggerButtonIcon?: React.ReactNode;
1357
+ triggerButtonClassName?: string;
1358
+ actionMenuClassName?: string;
1359
+ actionButtonClassName?: string;
1360
+ separatorClassName?: string;
1361
+ };
1362
+
1363
+ declare const ActionMenu: React.FC<ActionMenuProps>;
1364
+
1338
1365
  declare function isDefined<T>(value: T | null | undefined): value is NonNullable<T>;
1339
1366
  declare function isEmptyObject(value: any): boolean;
1340
1367
  type DebounceOptions = {
@@ -1459,4 +1486,4 @@ type DeepPartialNullish<T> = T extends BrowserNativeObject ? T | null : {
1459
1486
  [K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] | null : DeepPartialNullish<T[K]> | null;
1460
1487
  };
1461
1488
 
1462
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvanceSearch, ArrowIcon, type Breakpoints, type BrowserNativeObject, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, DIALOG_ALERT_I18N_SUBNAMESPACE, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, type DeepPartial, type DeepPartialNullish, Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, type FieldSchema, type FieldType, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HeaderCell, type HeaderCellProps, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, List, ListContainer, type ListContainerProps, ListHeader, type ListHeaderProps, type ListProps, ListTable, type ListTableProps, LookupSelect, type LookupSelectOption, type LookupSelectProps, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type Params, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, type PrefixMap, PreventPageLeave, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, type TemplateKeys, Textarea, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, Truncated, type TruncatedProps, index as UI, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, getDialogTemplates, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
1489
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdvanceSearch, ArrowIcon, type Breakpoints, type BrowserNativeObject, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, type DeepPartial, type DeepPartialNullish, Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, type FieldSchema, type FieldType, FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HeaderCell, type HeaderCellProps, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, List, ListContainer, type ListContainerProps, ListHeader, type ListHeaderProps, type ListProps, ListTable, type ListTableProps, LookupSelect, type LookupSelectOption, type LookupSelectProps, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type Params, type PermissionString, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, type PrefixMap, PreventPageLeave, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCalendarIcon2, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, type TemplateKeys, Textarea, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, Truncated, type TruncatedProps, index as UI, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
package/dist/index.d.ts CHANGED
@@ -116,7 +116,7 @@ interface AdvanceSearchProps {
116
116
  declare const AdvanceSearch: React__default.FC<AdvanceSearchProps>;
117
117
 
118
118
  declare const buttonVariants: (props?: ({
119
- variant?: "default" | "link" | "secondary" | "destructive" | "outline" | "ghost" | "cancel" | "defaultSelect" | "defaultOutline" | "warning" | null | undefined;
119
+ variant?: "default" | "link" | "secondary" | "destructive" | "cancel" | "warning" | "cottonYellowDark" | "cottonGreen" | "cottonBlue" | "cottonRed" | "cottonAccent" | "cottonYellow" | "cottonBlack" | "defaultOutline" | "destructiveOutline" | "outline" | "ghost" | "defaultSelect" | null | undefined;
120
120
  size?: "default" | "option" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-md" | "icon-lg" | null | undefined;
121
121
  active?: boolean | null | undefined;
122
122
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
@@ -475,11 +475,7 @@ type DialogAlertI18nResource = Resource;
475
475
 
476
476
  declare function DialogAlert({ open, onOpenChange, title, description, variant, confirmText, cancelText, onConfirm, onCancel, showCancel, align, outlet, persistent }: DialogAlertProps): react_jsx_runtime.JSX.Element;
477
477
 
478
- type GetTemplatesPayload = {
479
- setOpen?: (data: boolean) => void;
480
- };
481
- type GetTemplatesFunc = (payload: GetTemplatesPayload) => DialogAlertTemplates;
482
- declare const getDialogTemplates: GetTemplatesFunc;
478
+ declare const DIALOG_ALERT_TEMPLATES: DialogAlertTemplates;
483
479
 
484
480
  type OpenDialogAlert = Omit<DialogAlertProps, "open" | "onOpenChange">;
485
481
  interface DialogAlertProviderProps extends React.PropsWithChildren {
@@ -699,6 +695,8 @@ declare const ArrowIcon: React$1.FC<SVGProps<SVGSVGElement>>;
699
695
 
700
696
  declare const SuiCalendarIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
701
697
 
698
+ declare const SuiCalendarIcon2: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
699
+
702
700
  declare const SuiCheckIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
703
701
 
704
702
  declare const SuiDotsVerticalIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
@@ -709,6 +707,13 @@ declare const SuiExpandIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runti
709
707
 
710
708
  declare const SuiFilterIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
711
709
 
710
+ interface FiltersIconProps extends SVGProps<SVGSVGElement> {
711
+ size?: number | string;
712
+ color?: string;
713
+ strokeWidth?: number;
714
+ }
715
+ declare const FiltersIcon: React$1.FC<FiltersIconProps>;
716
+
712
717
  declare const NotFoundIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
713
718
 
714
719
  declare const SuiSettingIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
@@ -766,7 +771,7 @@ type InputProps$1 = Omit<InputPrimitiveProps$1, "size" | "prefix"> & VariantProp
766
771
  validationMessageProps?: React$1.HTMLAttributes<HTMLParagraphElement>;
767
772
  onValueChange?: (value: string) => void;
768
773
  };
769
- declare const Input: React$1.ForwardRefExoticComponent<Omit<InputPrimitiveProps$1, "prefix" | "size"> & VariantProps<(props?: ({
774
+ declare const Input: React$1.ForwardRefExoticComponent<Omit<InputPrimitiveProps$1, "size" | "prefix"> & VariantProps<(props?: ({
770
775
  controlSize?: "sm" | "lg" | "md" | null | undefined;
771
776
  fullWidth?: boolean | null | undefined;
772
777
  appearance?: "filled" | "unfilled" | null | undefined;
@@ -973,7 +978,9 @@ declare function RadioGroupItem({ id, value, children, className, containerProps
973
978
  value: string;
974
979
  containerProps?: React.ComponentProps<"div">;
975
980
  }): react_jsx_runtime.JSX.Element;
976
- declare function RadioLabel({ children, htmlFor, className, ...props }: React.ComponentProps<"label">): react_jsx_runtime.JSX.Element;
981
+ declare function RadioLabel({ children, htmlFor, className, disabled, ...props }: React.ComponentProps<"label"> & {
982
+ disabled?: boolean;
983
+ }): react_jsx_runtime.JSX.Element;
977
984
 
978
985
  type ImagePayload = {
979
986
  src: string;
@@ -1335,6 +1342,26 @@ type InputNumberProps = NumericFormatProps<InputProps> & {
1335
1342
  };
1336
1343
  declare const InputNumber: ({ customInputProps, ...props }: InputNumberProps) => react_jsx_runtime.JSX.Element;
1337
1344
 
1345
+ type PermissionAction = "CREATE" | "READ" | "EDIT" | "DELETE" | "NOTIFY" | "CREATE_DRAFT" | "REQUIRE_SITE";
1346
+ type PermissionString = `${string}.${PermissionAction}`;
1347
+ interface ActionButtonProps {
1348
+ label: string;
1349
+ onPress?: (id?: any) => void;
1350
+ requiredPermission?: PermissionString | string;
1351
+ }
1352
+ type ActionMenuProps = {
1353
+ id: any;
1354
+ buttons: ActionButtonProps[];
1355
+ checkPermissionFunc?: (requiredPermission: PermissionString) => boolean | ((requiredPermission: string) => boolean);
1356
+ triggerButtonIcon?: React.ReactNode;
1357
+ triggerButtonClassName?: string;
1358
+ actionMenuClassName?: string;
1359
+ actionButtonClassName?: string;
1360
+ separatorClassName?: string;
1361
+ };
1362
+
1363
+ declare const ActionMenu: React.FC<ActionMenuProps>;
1364
+
1338
1365
  declare function isDefined<T>(value: T | null | undefined): value is NonNullable<T>;
1339
1366
  declare function isEmptyObject(value: any): boolean;
1340
1367
  type DebounceOptions = {
@@ -1459,4 +1486,4 @@ type DeepPartialNullish<T> = T extends BrowserNativeObject ? T | null : {
1459
1486
  [K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] | null : DeepPartialNullish<T[K]> | null;
1460
1487
  };
1461
1488
 
1462
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvanceSearch, ArrowIcon, type Breakpoints, type BrowserNativeObject, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, DIALOG_ALERT_I18N_SUBNAMESPACE, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, type DeepPartial, type DeepPartialNullish, Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, type FieldSchema, type FieldType, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HeaderCell, type HeaderCellProps, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, List, ListContainer, type ListContainerProps, ListHeader, type ListHeaderProps, type ListProps, ListTable, type ListTableProps, LookupSelect, type LookupSelectOption, type LookupSelectProps, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type Params, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, type PrefixMap, PreventPageLeave, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, type TemplateKeys, Textarea, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, Truncated, type TruncatedProps, index as UI, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, getDialogTemplates, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };
1489
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type ActionButtonProps, ActionMenu, type ActionMenuProps, AdvanceSearch, ArrowIcon, type Breakpoints, type BrowserNativeObject, Button, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, type CroppedImagePayload, type CroppedImagePayloadWithBlobUrl, CropperModal, CropperModalError, type CropperModalErrorType, type CropperModalProps, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DataTable, type DataTableChildrenKeyHandler, type DataTableColumnFilter, type DataTableColumnFilterProps, type DataTableColumnGrouping, type DataTableColumnOrdering, type DataTableColumnPinning, type DataTableColumnSeparatorProps, type DataTableColumnSorting, type DataTableColumnVisibility, type DataTableComponentProps, type DataTableFilterConfig, type DataTableFilters, type DataTableGlobalFilter, type DataTableHeaderCell, type DataTableProps, type DataTableRenderHeaderHandler, type DataTableRenderHeaderProps, type DataTableRenderRowHandler, type DataTableRenderRowProps, type DataTableRowCell, type DataTableRowClickHandler, type DataTableRowExpansion, type DataTableRowIdKeyHandler, type DataTableRowSelection, type DataTableScrollFetch, type DataTableStatusContent, type DatatableColumnResizing, DatePicker, type DatePickerProps, type DebounceOptions, type DebouncedFunction, type DeepPartial, type DeepPartialNullish, Dialog, DialogAlert, type DialogAlertI18nResource, type DialogAlertProps, DialogAlertProvider, type DialogAlertTemplateUnit, type DialogAlertTemplates, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, type DialogVariant, type EllipsisConfig, type EmptyObject, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, type ExtractObjects, type FieldSchema, type FieldType, FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, type FormulaEditorProps, type FormulaOperator, type FormulaTokenAttributes, type FormulaTokenConfig, type FormulaTokenSuggestion, type FormulaTokenType, type GridPayload, GridSettingsModal, type GridSettingsModalProps, HeaderCell, type HeaderCellProps, Image, type ImageLoader, type ImageLoaderProps, type ImageProps, Input, type InputCustomInputProps, InputNumber, type InputNumberProps, type InputProps$1 as InputProps, Label, List, ListContainer, type ListContainerProps, ListHeader, type ListHeaderProps, type ListProps, ListTable, type ListTableProps, LookupSelect, type LookupSelectOption, type LookupSelectProps, MonthPicker, type MonthPickerProps, _default as Navbar, type NavbarProps, NotFoundIcon, type Params, type PermissionString, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, type PrefixMap, PreventPageLeave, RadioGroupItem, RadioGroupRoot, RadioLabel, type RawFormulaSegment, RichText, type RowClickType, type RowState, type ScrollInfo, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SorterProps, Spinner, type SpinnerProps, type StatusContentKey, SuiCalendarIcon, SuiCalendarIcon2, SuiCheckIcon, SuiDotsVerticalIcon, SuiEmptyDataIcon, SuiExpandIcon, SuiFilterIcon, SuiSettingIcon, SuiTriangleDownIcon, SuiWarningIcon, Switch, type TemplateKeys, Textarea, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, Truncated, type TruncatedProps, index as UI, type UseHoverResult, type UseMediaQueryOptions, type UseMediaQueryResult, type UsePreventPageLeaveOptions, type UseScreenSizeResult, type UseTruncatedOptions, type UseTruncatedResult, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants$1 as inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useFormField, useGridSettingsStore, useHover, useIntersectionObserver, useMediaQuery, usePreventPageLeave, usePreventPageLeaveStore, useScreenSize, useSidebar, useTruncated, validateTokenPrefixes };