@undefine-ui/design-system 2.14.2 → 2.15.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.d.cts CHANGED
@@ -1,10 +1,12 @@
1
1
  import * as react from 'react';
2
2
  import { SetStateAction, ElementType, CSSProperties, ReactNode, SyntheticEvent } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { Breakpoint, Shadows, Components, Theme, CssVarsTheme, SxProps as SxProps$1 } from '@mui/material/styles';
5
- import * as _mui_material from '@mui/material';
6
- import { SxProps, Theme as Theme$1 } from '@mui/material';
4
+ import { Breakpoint, Shadows, Components, Theme, SxProps, CssVarsTheme } from '@mui/material/styles';
7
5
  import { BoxProps } from '@mui/material/Box';
6
+ import { StackProps } from '@mui/material/Stack';
7
+ import { TypographyProps } from '@mui/material/Typography';
8
+ import * as _mui_material from '@mui/material';
9
+ import { SxProps as SxProps$1, Theme as Theme$1 } from '@mui/material';
8
10
  import { SvgIconProps } from '@mui/material/SvgIcon';
9
11
  import { DataGridProps } from '@mui/x-data-grid';
10
12
  import { DropzoneOptions } from 'react-dropzone';
@@ -1100,902 +1102,912 @@ interface CustomSpacingOptions {
1100
1102
  }
1101
1103
  declare function customSpacing(baseSpacing: number): CustomSpacingOptions;
1102
1104
 
1105
+ declare const Eye: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1106
+
1107
+ declare const Copy: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1108
+
1109
+ declare const Trash: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1110
+
1111
+ declare const XMark: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1112
+
1113
+ declare const Loader: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1114
+
1115
+ declare const Search: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1116
+
1117
+ declare const Settings: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1118
+
1119
+ declare const UserFill: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1120
+
1121
+ declare const EyeClosed: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1122
+
1123
+ declare const KeyCommand: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1124
+
1125
+ declare const XMarkSolid: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1126
+
1127
+ declare const CloudUpload: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1128
+
1129
+ declare const UserOutline: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1130
+
1131
+ declare const RadioSelect: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1132
+
1133
+ declare const RadioDefault: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1134
+
1135
+ declare const NavArrowDown: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1136
+
1137
+ declare const NavArrowLeft: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1138
+
1139
+ declare const NavArrowRight: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1140
+
1141
+ declare const ClipboardCheck: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1142
+
1143
+ declare const CheckboxSelect: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1144
+
1145
+ declare const InfoCircleFill: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1146
+
1147
+ declare const CheckboxDefault: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1148
+
1149
+ declare const BellNotification: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1150
+
1151
+ declare const InfoCircleOutline: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1152
+
1153
+ declare const LongArrowUpLeftSolid: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1154
+
1155
+ declare const CheckboxIndeterminate: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1156
+
1157
+ declare const Icons_BellNotification: typeof BellNotification;
1158
+ declare const Icons_CheckboxDefault: typeof CheckboxDefault;
1159
+ declare const Icons_CheckboxIndeterminate: typeof CheckboxIndeterminate;
1160
+ declare const Icons_CheckboxSelect: typeof CheckboxSelect;
1161
+ declare const Icons_ClipboardCheck: typeof ClipboardCheck;
1162
+ declare const Icons_CloudUpload: typeof CloudUpload;
1163
+ declare const Icons_Copy: typeof Copy;
1164
+ declare const Icons_Eye: typeof Eye;
1165
+ declare const Icons_EyeClosed: typeof EyeClosed;
1166
+ declare const Icons_InfoCircleFill: typeof InfoCircleFill;
1167
+ declare const Icons_InfoCircleOutline: typeof InfoCircleOutline;
1168
+ declare const Icons_KeyCommand: typeof KeyCommand;
1169
+ declare const Icons_Loader: typeof Loader;
1170
+ declare const Icons_LongArrowUpLeftSolid: typeof LongArrowUpLeftSolid;
1171
+ declare const Icons_NavArrowDown: typeof NavArrowDown;
1172
+ declare const Icons_NavArrowLeft: typeof NavArrowLeft;
1173
+ declare const Icons_NavArrowRight: typeof NavArrowRight;
1174
+ declare const Icons_RadioDefault: typeof RadioDefault;
1175
+ declare const Icons_RadioSelect: typeof RadioSelect;
1176
+ declare const Icons_Search: typeof Search;
1177
+ declare const Icons_Settings: typeof Settings;
1178
+ declare const Icons_Trash: typeof Trash;
1179
+ declare const Icons_UserFill: typeof UserFill;
1180
+ declare const Icons_UserOutline: typeof UserOutline;
1181
+ declare const Icons_XMark: typeof XMark;
1182
+ declare const Icons_XMarkSolid: typeof XMarkSolid;
1183
+ declare namespace Icons {
1184
+ export { Icons_BellNotification as BellNotification, Icons_CheckboxDefault as CheckboxDefault, Icons_CheckboxIndeterminate as CheckboxIndeterminate, Icons_CheckboxSelect as CheckboxSelect, Icons_ClipboardCheck as ClipboardCheck, Icons_CloudUpload as CloudUpload, Icons_Copy as Copy, Icons_Eye as Eye, Icons_EyeClosed as EyeClosed, Icons_InfoCircleFill as InfoCircleFill, Icons_InfoCircleOutline as InfoCircleOutline, Icons_KeyCommand as KeyCommand, Icons_Loader as Loader, Icons_LongArrowUpLeftSolid as LongArrowUpLeftSolid, Icons_NavArrowDown as NavArrowDown, Icons_NavArrowLeft as NavArrowLeft, Icons_NavArrowRight as NavArrowRight, Icons_RadioDefault as RadioDefault, Icons_RadioSelect as RadioSelect, Icons_Search as Search, Icons_Settings as Settings, Icons_Trash as Trash, Icons_UserFill as UserFill, Icons_UserOutline as UserOutline, Icons_XMark as XMark, Icons_XMarkSolid as XMarkSolid };
1185
+ }
1186
+
1187
+ type IconType = keyof typeof Icons;
1188
+
1189
+ type IconProps = BoxProps & {
1190
+ icon: IconType;
1191
+ };
1192
+ declare const Icon: ({ icon, className, ...props }: IconProps) => react_jsx_runtime.JSX.Element;
1193
+
1194
+ declare const iconClasses: {
1195
+ root: string;
1196
+ };
1197
+
1198
+ interface LogoProps extends BoxProps {
1199
+ disableLink?: boolean;
1200
+ isFull?: boolean;
1201
+ isWhite?: boolean;
1202
+ isBlack?: boolean;
1203
+ href?: string;
1204
+ LinkComponent?: ElementType;
1205
+ src?: string;
1206
+ alt?: string;
1207
+ }
1208
+ declare const Logo: ({ sx, isFull, isWhite, isBlack, disableLink, LinkComponent, href, src, alt, ...rest }: LogoProps) => react_jsx_runtime.JSX.Element;
1209
+ declare const AnimatedLogo: () => react_jsx_runtime.JSX.Element;
1210
+
1103
1211
  interface DataTableProps extends Omit<DataGridProps, 'rows'> {
1104
1212
  data: any[];
1105
- toggleFilters?: () => void;
1213
+ showFooter?: boolean;
1106
1214
  }
1107
1215
  declare const Table: (props: DataTableProps) => react_jsx_runtime.JSX.Element;
1108
1216
 
1109
- interface TableNoRowsProps {
1110
- noRowsTitle?: React.ReactNode;
1217
+ interface EmptyContentProps extends StackProps {
1218
+ title?: string;
1219
+ imgUrl?: string;
1220
+ filled?: boolean;
1221
+ description?: string;
1222
+ action?: React.ReactNode;
1223
+ slotProps?: {
1224
+ img?: BoxProps['sx'];
1225
+ title?: TypographyProps['sx'];
1226
+ description?: TypographyProps['sx'];
1227
+ };
1111
1228
  }
1229
+ declare const EmptyContent: ({ sx, imgUrl, action, filled, slotProps, description, title, ...rest }: EmptyContentProps) => react_jsx_runtime.JSX.Element;
1112
1230
 
1113
1231
  declare const TablePagination: () => react_jsx_runtime.JSX.Element;
1114
1232
 
1115
- type GreyColorVariants = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950' | 'A100' | 'A200' | 'A400' | 'A700';
1116
- type GreyChannelSuffix = {
1117
- [K in GreyColorVariants as `${K}Channel`]: string;
1118
- };
1119
- declare module '@mui/material/styles' {
1120
- interface TypeBackground {
1121
- neutral: string;
1122
- }
1123
- interface Color extends GreyChannelSuffix {
1124
- }
1125
- interface CommonColors {
1126
- whiteChannel: string;
1127
- blackChannel: string;
1128
- }
1129
- interface CssVarsPalette {
1130
- neutral: {
1131
- 50: string;
1132
- 100: string;
1133
- 200: string;
1134
- 300: string;
1135
- 400: string;
1136
- 500: string;
1137
- 600: string;
1138
- 700: string;
1139
- 800: string;
1140
- 900: string;
1141
- 950: string;
1142
- light: string;
1143
- main: string;
1144
- dark: string;
1145
- contrastText: string;
1146
- '50Channel': string;
1147
- '100Channel': string;
1148
- '200Channel': string;
1149
- '300Channel': string;
1150
- '400Channel': string;
1151
- '500Channel': string;
1152
- '600Channel': string;
1153
- '700Channel': string;
1154
- '800Channel': string;
1155
- '900Channel': string;
1156
- '950Channel': string;
1157
- lightChannel: string;
1158
- mainChannel: string;
1159
- darkChannel: string;
1160
- };
1161
- surface: {
1162
- page: string;
1163
- subtle: string;
1164
- primary: string;
1165
- secondary: string;
1166
- info: string;
1167
- success: string;
1168
- warning: string;
1169
- error: string;
1170
- disable: string;
1171
- pageChannel: string;
1172
- subtleChannel: string;
1173
- primaryChannel: string;
1174
- secondaryChannel: string;
1175
- infoChannel: string;
1176
- successChannel: string;
1177
- warningChannel: string;
1178
- errorChannel: string;
1179
- disableChannel: string;
1180
- };
1181
- border: {
1182
- default: string;
1183
- focus: string;
1184
- subtle: string;
1185
- primary: string;
1186
- secondary: string;
1187
- info: string;
1188
- success: string;
1189
- warning: string;
1190
- error: string;
1191
- mute: string;
1192
- defaultChannel: string;
1193
- focusChannel: string;
1194
- subtleChannel: string;
1195
- primaryChannel: string;
1196
- secondaryChannel: string;
1197
- infoChannel: string;
1198
- successChannel: string;
1199
- warningChannel: string;
1200
- errorChannel: string;
1201
- muteChannel: string;
1202
- };
1203
- icon: {
1204
- white: string;
1205
- black: string;
1206
- secondary: string;
1207
- info: string;
1208
- success: string;
1209
- warning: string;
1210
- error: string;
1211
- disable: string;
1212
- whiteChannel: string;
1213
- blackChannel: string;
1214
- primaryChannel: string;
1215
- secondaryChannel: string;
1216
- infoChannel: string;
1217
- successChannel: string;
1218
- warningChannel: string;
1219
- errorChannel: string;
1220
- disableChannel: string;
1221
- };
1222
- }
1223
- interface SimplePaletteColorOptions {
1224
- 50?: string;
1225
- 100?: string;
1226
- 200?: string;
1227
- 300?: string;
1228
- 400?: string;
1229
- 500?: string;
1230
- 600?: string;
1231
- 700?: string;
1232
- 800?: string;
1233
- 900?: string;
1234
- 950?: string;
1235
- }
1236
- interface PaletteColor {
1237
- 50: string;
1238
- 100: string;
1239
- 200: string;
1240
- 300: string;
1241
- 400: string;
1242
- 500: string;
1243
- 600: string;
1244
- 700: string;
1245
- 800: string;
1246
- 900: string;
1247
- 950: string;
1248
- }
1249
- interface PaletteColorChannel {
1250
- '50Channel': string;
1251
- '100Channel': string;
1252
- '200Channel': string;
1253
- '300Channel': string;
1254
- '400Channel': string;
1255
- '500Channel': string;
1256
- '600Channel': string;
1257
- '700Channel': string;
1258
- '800Channel': string;
1259
- '900Channel': string;
1260
- '950Channel': string;
1261
- }
1262
- interface TypeText {
1263
- header: string;
1264
- body: string;
1265
- placeholder: string;
1266
- action: string;
1267
- disable: string;
1268
- info: string;
1269
- hyperlinks: string;
1270
- success: string;
1271
- warning: string;
1272
- error: string;
1273
- headerChannel: string;
1274
- bodyChannel: string;
1275
- placeholderChannel: string;
1276
- actionChannel: string;
1277
- disableChannel: string;
1278
- infoChannel: string;
1279
- hyperlinksChannel: string;
1280
- successChannel: string;
1281
- warningChannel: string;
1282
- errorChannel: string;
1283
- }
1284
- interface Theme {
1285
- customShadows: CustomShadowOptions;
1286
- radius: RadiusOptions;
1287
- customSpacing: CustomSpacingOptions;
1288
- vars: NonNullable<CssVarsTheme['vars']>;
1289
- }
1290
- interface ThemeOptions {
1291
- customShadows?: CustomShadowOptions;
1292
- radius?: RadiusOptions;
1293
- customSpacing?: CustomSpacingOptions;
1294
- vars?: CssVarsTheme['vars'];
1295
- }
1296
- interface TypographyVariants {
1297
- fontSecondaryFamily: React.CSSProperties['fontFamily'];
1298
- fontTertiaryFamily: React.CSSProperties['fontFamily'];
1299
- fontWeightSemiBold: React.CSSProperties['fontWeight'];
1300
- displayLarge: React.CSSProperties;
1301
- displaySmall: React.CSSProperties;
1302
- h7: React.CSSProperties;
1303
- h8: React.CSSProperties;
1304
- bodyXl: React.CSSProperties;
1305
- bodyLg: React.CSSProperties;
1306
- bodyMd: React.CSSProperties;
1307
- bodySm: React.CSSProperties;
1308
- bodyXs: React.CSSProperties;
1309
- kpiValue: React.CSSProperties;
1310
- }
1311
- interface BreakpointOverrides {
1312
- '2xl': true;
1313
- }
1314
- }
1315
- declare module '@mui/material/Avatar' {
1316
- interface AvatarPropsVariantOverrides {
1317
- userSm: true;
1318
- userMd: true;
1319
- userLg: true;
1320
- brandXs: true;
1321
- brandSm: true;
1322
- brandMd: true;
1323
- brandLg: true;
1324
- brandInitialXs: true;
1325
- brandInitialSm: true;
1326
- brandInitialMd: true;
1327
- brandInitialLg: true;
1328
- }
1233
+ type ImageStatus = 'idle' | 'loading' | 'loaded' | 'error';
1234
+ interface ImageProps extends Omit<BoxProps, 'component' | 'children' | 'position'> {
1235
+ src: string;
1236
+ alt: string;
1237
+ /**
1238
+ * Load the image only when it enters the viewport.
1239
+ * Defaults to true.
1240
+ */
1241
+ lazy?: boolean;
1242
+ /**
1243
+ * Fallback URL used when the main source fails to load.
1244
+ */
1245
+ fallbackSrc?: string;
1246
+ /**
1247
+ * Responsive image sources for different screen sizes/resolutions.
1248
+ * Example: "image-320w.jpg 320w, image-640w.jpg 640w, image-1280w.jpg 1280w"
1249
+ */
1250
+ srcSet?: string;
1251
+ /**
1252
+ * Sizes attribute for responsive images. Defines which image size to use at different viewport widths.
1253
+ * Example: "(max-width: 600px) 100vw, (max-width: 1200px) 50vw, 33vw"
1254
+ */
1255
+ sizes?: string;
1256
+ /**
1257
+ * Aspect ratio (e.g. "16 / 9" or 1.5) applied to the wrapper to avoid layout shift.
1258
+ */
1259
+ aspectRatio?: number | string;
1260
+ /**
1261
+ * Controls object-fit of the underlying image. Defaults to "cover".
1262
+ */
1263
+ fit?: CSSProperties['objectFit'];
1264
+ /**
1265
+ * Controls object-position of the underlying image. Defaults to "center".
1266
+ */
1267
+ position?: CSSProperties['objectPosition'];
1268
+ /**
1269
+ * Optional overlay content rendered above the image.
1270
+ */
1271
+ overlay?: ReactNode;
1272
+ /**
1273
+ * Enables overlay even when overlay content is not provided.
1274
+ */
1275
+ withOverlay?: boolean;
1276
+ /**
1277
+ * Custom loading indicator shown before the image is loaded.
1278
+ */
1279
+ loadingIndicator?: ReactNode;
1280
+ /**
1281
+ * Custom error fallback content when both src and fallbackSrc fail.
1282
+ */
1283
+ renderError?: ReactNode;
1284
+ /**
1285
+ * Additional styles for the underlying image element.
1286
+ */
1287
+ imgSx?: BoxProps['sx'];
1288
+ /**
1289
+ * Additional props for the underlying image element.
1290
+ */
1291
+ imgProps?: Omit<BoxProps<'img'>, 'component' | 'sx' | 'ref' | 'src' | 'alt' | 'children'>;
1292
+ /**
1293
+ * Root margin passed to the IntersectionObserver. Defaults to "200px".
1294
+ */
1295
+ observerMargin?: string;
1296
+ /**
1297
+ * Callback fired when the image fails to load.
1298
+ */
1299
+ onError?: (event: SyntheticEvent<HTMLImageElement, Event>) => void;
1329
1300
  }
1330
- declare module '@mui/material/AvatarGroup' {
1331
- interface AvatarGroupPropsVariantOverrides {
1332
- compact: true;
1333
- }
1301
+
1302
+ declare const Image: react.ForwardRefExoticComponent<Omit<ImageProps, "ref"> & react.RefAttributes<HTMLImageElement>>;
1303
+
1304
+ interface UploadProps extends DropzoneOptions {
1305
+ error?: boolean;
1306
+ sx?: SxProps<Theme>;
1307
+ placeholder?: React.ReactNode;
1308
+ helperText?: React.ReactNode;
1309
+ disableMultiple?: boolean;
1310
+ value?: File | string | null | Array<File | string>;
1311
+ onDelete?: VoidFunction;
1312
+ onUpload?: VoidFunction;
1313
+ onRemove?: (file: File | string) => void;
1314
+ onRemoveAll?: VoidFunction;
1315
+ isUploading?: boolean;
1316
+ uploadProgress?: number;
1334
1317
  }
1335
- declare module '@mui/material/Button' {
1336
- interface ButtonPropsVariantOverrides {
1337
- primary: true;
1338
- secondary: true;
1339
- tertiary: true;
1340
- }
1341
- interface ButtonPropsColorOverrides {
1342
- neutral: true;
1343
- }
1318
+
1319
+ declare const Upload: ({ sx, value, error, disabled, onDelete, onUpload, onRemove, helperText, onRemoveAll, uploadProgress, isUploading, multiple, ...rest }: UploadProps) => react_jsx_runtime.JSX.Element;
1320
+
1321
+ interface FormProps<T extends FieldValues> extends Omit<BoxProps, 'onSubmit'> {
1322
+ children: React.ReactNode;
1323
+ methods: UseFormReturn<T>;
1324
+ onSubmit?: SubmitHandler<T>;
1344
1325
  }
1345
- declare module '@mui/material/ButtonGroup' {
1346
- interface ButtonGroupPropsVariantOverrides {
1347
- primary: true;
1348
- secondary: true;
1349
- tertiary: true;
1350
- }
1326
+ declare const Form: <T extends FieldValues>({ children, onSubmit, methods, ...rest }: FormProps<T>) => react_jsx_runtime.JSX.Element;
1327
+
1328
+ interface RHFAutocompleteProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> extends AutocompleteProps<T, Multiple, DisableClearable, FreeSolo> {
1329
+ name: string;
1330
+ label?: string;
1331
+ required?: boolean;
1332
+ placeholder?: string;
1333
+ helperText?: React.ReactNode;
1334
+ handleChange?: (val: any) => void;
1351
1335
  }
1352
- declare module '@mui/material/Fab' {
1353
- interface FabPropsVariantOverrides {
1354
- outlined: true;
1355
- outlinedExtended: true;
1356
- soft: true;
1357
- softExtended: true;
1358
- }
1336
+ declare const RHFAutocomplete: <T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined>({ name, label, required, placeholder, helperText, handleChange, ...other }: Omit<RHFAutocompleteProps<T, Multiple, DisableClearable, FreeSolo>, "renderInput">) => react_jsx_runtime.JSX.Element;
1337
+
1338
+ interface RHFCheckboxProps extends Omit<FormControlLabelProps, 'name' | 'control' | 'slotProps'> {
1339
+ name: string;
1340
+ description?: string;
1341
+ helperText?: React.ReactNode;
1342
+ slotProps?: {
1343
+ wrap?: BoxProps['sx'];
1344
+ checkbox?: CheckboxProps;
1345
+ formLabel?: FormLabelProps;
1346
+ formHelperText?: FormHelperTextProps;
1347
+ };
1359
1348
  }
1360
- declare module '@mui/material/Badge' {
1361
- interface BadgePropsVariantOverrides {
1362
- alway: true;
1363
- busy: true;
1364
- online: true;
1365
- offline: true;
1366
- invisible: true;
1367
- }
1349
+ declare const RHFCheckbox: ({ name, description, helperText, label, sx, slotProps, ...other }: RHFCheckboxProps) => react_jsx_runtime.JSX.Element;
1350
+ interface RHFMultiCheckboxOption {
1351
+ label: string;
1352
+ value: string | number;
1353
+ description?: string;
1368
1354
  }
1369
- declare module '@mui/material/Badge' {
1370
- interface BadgePropsVariantOverrides {
1371
- alway: true;
1372
- busy: true;
1373
- online: true;
1374
- offline: true;
1375
- invisible: true;
1376
- }
1355
+ interface RHFMultiCheckboxProps extends Omit<FormGroupProps, 'children'> {
1356
+ name: string;
1357
+ label?: string;
1358
+ options: RHFMultiCheckboxOption[];
1359
+ helperText?: React.ReactNode;
1360
+ row?: boolean;
1361
+ slotProps?: {
1362
+ formControl?: FormControlProps;
1363
+ checkbox?: CheckboxProps;
1364
+ formLabel?: FormLabelProps;
1365
+ formHelperText?: FormHelperTextProps;
1366
+ };
1377
1367
  }
1378
- declare module '@mui/material/Chip' {
1379
- interface ChipPropsVariantOverrides {
1380
- soft: true;
1381
- }
1382
- interface ChipPropsColorOverrides {
1383
- neutral: true;
1384
- }
1368
+ declare const RHFMultiCheckbox: ({ name, label, options, slotProps, helperText, row, ...other }: RHFMultiCheckboxProps) => react_jsx_runtime.JSX.Element;
1369
+
1370
+ interface RHFRadioGroupOption {
1371
+ label: string;
1372
+ value: string | number;
1373
+ description?: string;
1385
1374
  }
1386
- declare module '@mui/material/Pagination' {
1387
- interface PaginationPropsVariantOverrides {
1388
- soft: true;
1389
- }
1390
- interface PaginationPropsColorOverrides {
1391
- info: true;
1392
- success: true;
1393
- warning: true;
1394
- error: true;
1395
- }
1396
- }
1397
- declare module '@mui/material/Slider' {
1398
- interface SliderPropsColorOverrides {
1399
- inherit: true;
1400
- }
1401
- }
1402
- declare module '@mui/material/TextField' {
1403
- interface TextFieldPropsSizeOverrides {
1404
- large: true;
1405
- xl: true;
1406
- }
1407
- }
1408
- declare module '@mui/material/ToggleButton' {
1409
- interface ToggleButtonPropsColorOverrides {
1410
- neutral: true;
1411
- }
1412
- }
1413
- declare module '@mui/material/Typography' {
1414
- interface TypographyPropsVariantOverrides {
1415
- displayLarge: true;
1416
- displaySmall: true;
1417
- h7: true;
1418
- h8: true;
1419
- bodyXl: true;
1420
- bodyLg: true;
1421
- bodyMd: true;
1422
- bodySm: true;
1423
- bodyXs: true;
1424
- kpiValue: true;
1425
- }
1426
- }
1427
- declare module '@mui/material/Checkbox' {
1428
- interface CheckboxPropsSizeOverrides {
1429
- large: true;
1430
- }
1431
- }
1432
- declare module '@mui/material/Switch' {
1433
- interface SwitchPropsSizeOverrides {
1434
- large: true;
1435
- }
1375
+ interface RHFRadioGroupProps extends Omit<RadioGroupProps, 'name' | 'control'> {
1376
+ name: string;
1377
+ label?: string;
1378
+ options: RHFRadioGroupOption[];
1379
+ description?: string;
1380
+ helperText?: React.ReactNode;
1381
+ slotProps?: {
1382
+ wrap?: FormControlProps['sx'];
1383
+ radio?: RadioProps;
1384
+ formLabel?: FormLabelProps;
1385
+ formHelperText?: FormHelperTextProps;
1386
+ };
1436
1387
  }
1437
- declare module '@mui/material/Radio' {
1438
- interface RadioPropsSizeOverrides {
1439
- large: true;
1440
- }
1388
+ declare const RHFRadioGroup: ({ name, label, options, helperText, slotProps, ...other }: RHFRadioGroupProps) => react_jsx_runtime.JSX.Element;
1389
+
1390
+ interface RHFUploadProps extends Omit<UploadProps, 'value'> {
1391
+ name: string;
1392
+ multiple?: boolean;
1441
1393
  }
1442
- declare module '@mui/x-data-grid' {
1443
- interface NoRowsOverlayPropsOverrides extends TableNoRowsProps {
1444
- }
1445
- interface NoResultsOverlayPropsOverrides extends TableNoRowsProps {
1446
- }
1394
+ declare const RHFUpload: ({ name, multiple, helperText, ...rest }: RHFUploadProps) => react_jsx_runtime.JSX.Element;
1395
+
1396
+ interface OTPInputProps extends Omit<TextFieldProps, 'onChange'> {
1397
+ length?: number;
1398
+ onChange?: (otp: string) => void;
1399
+ onComplete?: (otp: string) => void;
1400
+ containerProps?: BoxProps;
1447
1401
  }
1448
- declare module '@mui/material/PaginationItem' {
1449
- interface PaginationItemPropsColorOverrides {
1450
- info: true;
1451
- error: true;
1452
- success: true;
1453
- warning: true;
1454
- }
1455
- interface PaginationItemPropsVariantOverrides {
1456
- soft: true;
1457
- }
1402
+ declare const OTPInput: (props: OTPInputProps) => react_jsx_runtime.JSX.Element;
1403
+
1404
+ interface RHFOTPInputProps extends Omit<OTPInputProps, 'name'> {
1405
+ name: string;
1458
1406
  }
1407
+ declare const RHFOTPInput: ({ name, length, helperText, ...rest }: RHFOTPInputProps) => react_jsx_runtime.JSX.Element;
1459
1408
 
1460
- declare const stylesMode: {
1461
- light: string;
1462
- dark: string;
1463
- };
1464
- declare const mediaQueries: {
1465
- upXs: string;
1466
- upSm: string;
1467
- upMd: string;
1468
- upLg: string;
1469
- upXl: string;
1470
- };
1471
- /**
1472
- * Set font family
1473
- */
1474
- declare const setFont: (fontName: string) => string;
1475
- /**
1476
- * Converts rem to px
1477
- */
1478
- declare const remToPx: (value: string) => number;
1479
- /**
1480
- * Converts px to rem
1481
- */
1482
- declare const pxToRem: (value: number) => string;
1483
- /**
1484
- * Responsive font sizes
1485
- */
1486
- declare const responsiveFontSizes: ({ sm, md, lg }: {
1487
- sm: number;
1488
- md: number;
1489
- lg: number;
1490
- }) => {
1491
- [mediaQueries.upSm]: {
1492
- fontSize: string;
1493
- };
1494
- [mediaQueries.upMd]: {
1495
- fontSize: string;
1496
- };
1497
- [mediaQueries.upLg]: {
1498
- fontSize: string;
1499
- };
1500
- };
1501
- /**
1502
- * Converts a hex color to RGB channels
1503
- */
1504
- declare const hexToRgbChannel: (hex: string) => string;
1505
- /**
1506
- * Converts a hex color to RGB channels
1507
- */
1508
- declare const createPaletteChannel: (hexPalette: Record<string, string>) => {
1509
- [x: string]: string;
1409
+ declare const Field: {
1410
+ OTP: ({ name, length, helperText, ...rest }: RHFOTPInputProps) => react_jsx_runtime.JSX.Element;
1411
+ Switch: ({ name, description, helperText, label, sx, slotProps, ...other }: Omit<_mui_material.FormControlLabelProps, "name" | "control"> & {
1412
+ name: string;
1413
+ description?: string;
1414
+ helperText?: React.ReactNode;
1415
+ slotProps?: {
1416
+ wrap?: _mui_material.BoxProps["sx"];
1417
+ switch?: _mui_material.SwitchProps;
1418
+ formHelperText?: _mui_material.FormHelperTextProps;
1419
+ };
1420
+ }) => react_jsx_runtime.JSX.Element;
1421
+ Upload: ({ name, multiple, helperText, ...rest }: RHFUploadProps) => react_jsx_runtime.JSX.Element;
1422
+ Text: ({ name, helperText, type, slotProps, ...rest }: _mui_material.TextFieldProps) => react_jsx_runtime.JSX.Element;
1423
+ Radio: ({ name, label, options, helperText, slotProps, ...other }: RHFRadioGroupProps) => react_jsx_runtime.JSX.Element;
1424
+ Checkbox: ({ name, description, helperText, label, sx, slotProps, ...other }: RHFCheckboxProps) => react_jsx_runtime.JSX.Element;
1425
+ Autocomplete: <T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined>({ name, label, required, placeholder, helperText, handleChange, ...other }: Omit<RHFAutocompleteProps<T, Multiple, DisableClearable, FreeSolo>, "renderInput">) => react_jsx_runtime.JSX.Element;
1426
+ MultiCheckbox: ({ name, label, options, slotProps, helperText, row, ...other }: RHFMultiCheckboxProps) => react_jsx_runtime.JSX.Element;
1510
1427
  };
1511
- /**
1512
- * Color with alpha channel
1513
- */
1514
- declare const varAlpha: (color: string, opacity?: number) => string;
1515
1428
 
1516
- /**
1517
- * Usage:
1518
- * ...hideScrollX,
1519
- * ...hideScrollY,
1520
- */
1521
- declare const hideScrollX: {
1522
- msOverflowStyle: string;
1523
- scrollbarWidth: string;
1524
- overflowX: string;
1525
- '&::-webkit-scrollbar': {
1526
- display: string;
1429
+ type RHFSwitchProps = Omit<FormControlLabelProps, 'name' | 'control'> & {
1430
+ name: string;
1431
+ description?: string;
1432
+ helperText?: React.ReactNode;
1433
+ slotProps?: {
1434
+ wrap?: BoxProps['sx'];
1435
+ switch?: SwitchProps;
1436
+ formHelperText?: FormHelperTextProps;
1527
1437
  };
1528
1438
  };
1529
- declare const hideScrollY: {
1530
- msOverflowStyle: string;
1531
- scrollbarWidth: string;
1532
- overflowY: string;
1533
- '&::-webkit-scrollbar': {
1534
- display: string;
1439
+ declare const RHFSwitch: ({ name, description, helperText, label, sx, slotProps, ...other }: RHFSwitchProps) => react_jsx_runtime.JSX.Element;
1440
+ interface RHFMultiSwitchOption {
1441
+ label: string;
1442
+ value: string | number;
1443
+ }
1444
+ interface RHFMultiSwitchProps extends Omit<FormGroupProps, 'children'> {
1445
+ name: string;
1446
+ label?: string;
1447
+ options: RHFMultiSwitchOption[];
1448
+ helperText?: React.ReactNode;
1449
+ row?: boolean;
1450
+ slotProps?: {
1451
+ formControl?: FormControlProps;
1452
+ switch?: SwitchProps;
1453
+ formLabel?: FormLabelProps;
1454
+ formHelperText?: FormHelperTextProps;
1535
1455
  };
1536
- };
1537
- /**
1538
- * Usage:
1539
- * ...textGradient(`to right, ${theme.vars.palette.text.primary}, ${alpha(theme.vars.palette.text.primary, 0.2)}`
1540
- */
1541
- declare const textGradient: (color: string) => {
1542
- background: string;
1543
- WebkitBackgroundClip: string;
1544
- WebkitTextFillColor: string;
1545
- backgroundClip: string;
1546
- textFillColor: string;
1547
- color: string;
1548
- };
1549
- /**
1550
- * Usage:
1551
- * ...borderGradient({ color: `to right, ${theme.vars.palette.text.primary}, ${alpha(theme.vars.palette.text.primary, 0.2)}`, padding: '4px' }),
1552
- */
1553
- interface BorderGradientProps {
1554
- color?: string;
1555
- padding?: string;
1556
1456
  }
1557
- declare const borderGradient: (props: BorderGradientProps) => {
1558
- background?: string | undefined;
1559
- inset: number;
1560
- width: string;
1561
- content: string;
1562
- height: string;
1563
- margin: string;
1564
- position: string;
1565
- borderRadius: string;
1566
- padding: string;
1567
- mask: string;
1568
- WebkitMask: string;
1569
- maskComposite: string;
1570
- WebkitMaskComposite: string;
1571
- };
1572
- /**
1573
- * Usage:
1574
- * ...bgGradient({ color: `to right, ${theme.vars.palette.grey[900]} 25%, ${varAlpha(theme.vars.palette.primary.darkerChannel, 0.88)}`, imgUrl: '/assets/background/overlay.png' }),
1575
- */
1576
- interface BgGradientProps {
1577
- color?: string;
1578
- imgUrl?: string;
1457
+ declare const RHFMultiSwitch: ({ name, label, options, helperText, slotProps, ...other }: RHFMultiSwitchProps) => react_jsx_runtime.JSX.Element;
1458
+
1459
+ declare const RHFTextField: ({ name, helperText, type, slotProps, ...rest }: TextFieldProps) => react_jsx_runtime.JSX.Element;
1460
+
1461
+ interface CopyButtonProps {
1462
+ text: string;
1463
+ size?: 'small' | 'medium';
1579
1464
  }
1580
- declare function bgGradient({ color, imgUrl }: BgGradientProps): {
1581
- background: string;
1582
- backgroundSize: string;
1583
- backgroundRepeat: string;
1584
- backgroundPosition: string;
1585
- } | {
1586
- background: string;
1587
- backgroundSize?: undefined;
1588
- backgroundRepeat?: undefined;
1589
- backgroundPosition?: undefined;
1465
+ declare const CopyButton: ({ text, size }: CopyButtonProps) => react_jsx_runtime.JSX.Element;
1466
+
1467
+ interface LoadingScreenProps extends BoxProps {
1468
+ portal?: boolean;
1469
+ }
1470
+ declare const LoadingScreen: ({ portal, sx, ...rest }: LoadingScreenProps) => react_jsx_runtime.JSX.Element;
1471
+ declare const SplashScreen: ({ portal, sx, ...rest }: LoadingScreenProps) => react_jsx_runtime.JSX.Element;
1472
+
1473
+ type GreyColorVariants = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950' | 'A100' | 'A200' | 'A400' | 'A700';
1474
+ type GreyChannelSuffix = {
1475
+ [K in GreyColorVariants as `${K}Channel`]: string;
1590
1476
  };
1591
- /**
1592
- * Usage:
1593
- * ...bgBlur({ color: `varAlpha(theme.vars.palette.surface.paperChannel, 0.8)`, imgUrl: '/assets/background/overlay.png', blur: 6 }),
1594
- */
1595
- interface BgBlurProps {
1596
- color?: string;
1597
- blur?: number;
1598
- imgUrl?: string;
1477
+ declare module '@mui/material/styles' {
1478
+ interface TypeBackground {
1479
+ neutral: string;
1480
+ }
1481
+ interface Color extends GreyChannelSuffix {
1482
+ }
1483
+ interface CommonColors {
1484
+ whiteChannel: string;
1485
+ blackChannel: string;
1486
+ }
1487
+ interface CssVarsPalette {
1488
+ neutral: {
1489
+ 50: string;
1490
+ 100: string;
1491
+ 200: string;
1492
+ 300: string;
1493
+ 400: string;
1494
+ 500: string;
1495
+ 600: string;
1496
+ 700: string;
1497
+ 800: string;
1498
+ 900: string;
1499
+ 950: string;
1500
+ light: string;
1501
+ main: string;
1502
+ dark: string;
1503
+ contrastText: string;
1504
+ '50Channel': string;
1505
+ '100Channel': string;
1506
+ '200Channel': string;
1507
+ '300Channel': string;
1508
+ '400Channel': string;
1509
+ '500Channel': string;
1510
+ '600Channel': string;
1511
+ '700Channel': string;
1512
+ '800Channel': string;
1513
+ '900Channel': string;
1514
+ '950Channel': string;
1515
+ lightChannel: string;
1516
+ mainChannel: string;
1517
+ darkChannel: string;
1518
+ };
1519
+ surface: {
1520
+ page: string;
1521
+ subtle: string;
1522
+ primary: string;
1523
+ secondary: string;
1524
+ info: string;
1525
+ success: string;
1526
+ warning: string;
1527
+ error: string;
1528
+ disable: string;
1529
+ pageChannel: string;
1530
+ subtleChannel: string;
1531
+ primaryChannel: string;
1532
+ secondaryChannel: string;
1533
+ infoChannel: string;
1534
+ successChannel: string;
1535
+ warningChannel: string;
1536
+ errorChannel: string;
1537
+ disableChannel: string;
1538
+ };
1539
+ border: {
1540
+ default: string;
1541
+ focus: string;
1542
+ subtle: string;
1543
+ primary: string;
1544
+ secondary: string;
1545
+ info: string;
1546
+ success: string;
1547
+ warning: string;
1548
+ error: string;
1549
+ mute: string;
1550
+ defaultChannel: string;
1551
+ focusChannel: string;
1552
+ subtleChannel: string;
1553
+ primaryChannel: string;
1554
+ secondaryChannel: string;
1555
+ infoChannel: string;
1556
+ successChannel: string;
1557
+ warningChannel: string;
1558
+ errorChannel: string;
1559
+ muteChannel: string;
1560
+ };
1561
+ icon: {
1562
+ white: string;
1563
+ black: string;
1564
+ secondary: string;
1565
+ info: string;
1566
+ success: string;
1567
+ warning: string;
1568
+ error: string;
1569
+ disable: string;
1570
+ whiteChannel: string;
1571
+ blackChannel: string;
1572
+ primaryChannel: string;
1573
+ secondaryChannel: string;
1574
+ infoChannel: string;
1575
+ successChannel: string;
1576
+ warningChannel: string;
1577
+ errorChannel: string;
1578
+ disableChannel: string;
1579
+ };
1580
+ }
1581
+ interface SimplePaletteColorOptions {
1582
+ 50?: string;
1583
+ 100?: string;
1584
+ 200?: string;
1585
+ 300?: string;
1586
+ 400?: string;
1587
+ 500?: string;
1588
+ 600?: string;
1589
+ 700?: string;
1590
+ 800?: string;
1591
+ 900?: string;
1592
+ 950?: string;
1593
+ }
1594
+ interface PaletteColor {
1595
+ 50: string;
1596
+ 100: string;
1597
+ 200: string;
1598
+ 300: string;
1599
+ 400: string;
1600
+ 500: string;
1601
+ 600: string;
1602
+ 700: string;
1603
+ 800: string;
1604
+ 900: string;
1605
+ 950: string;
1606
+ }
1607
+ interface PaletteColorChannel {
1608
+ '50Channel': string;
1609
+ '100Channel': string;
1610
+ '200Channel': string;
1611
+ '300Channel': string;
1612
+ '400Channel': string;
1613
+ '500Channel': string;
1614
+ '600Channel': string;
1615
+ '700Channel': string;
1616
+ '800Channel': string;
1617
+ '900Channel': string;
1618
+ '950Channel': string;
1619
+ }
1620
+ interface TypeText {
1621
+ header: string;
1622
+ body: string;
1623
+ placeholder: string;
1624
+ action: string;
1625
+ disable: string;
1626
+ info: string;
1627
+ hyperlinks: string;
1628
+ success: string;
1629
+ warning: string;
1630
+ error: string;
1631
+ headerChannel: string;
1632
+ bodyChannel: string;
1633
+ placeholderChannel: string;
1634
+ actionChannel: string;
1635
+ disableChannel: string;
1636
+ infoChannel: string;
1637
+ hyperlinksChannel: string;
1638
+ successChannel: string;
1639
+ warningChannel: string;
1640
+ errorChannel: string;
1641
+ }
1642
+ interface Theme {
1643
+ customShadows: CustomShadowOptions;
1644
+ radius: RadiusOptions;
1645
+ customSpacing: CustomSpacingOptions;
1646
+ vars: NonNullable<CssVarsTheme['vars']>;
1647
+ }
1648
+ interface ThemeOptions {
1649
+ customShadows?: CustomShadowOptions;
1650
+ radius?: RadiusOptions;
1651
+ customSpacing?: CustomSpacingOptions;
1652
+ vars?: CssVarsTheme['vars'];
1653
+ }
1654
+ interface TypographyVariants {
1655
+ fontSecondaryFamily: React.CSSProperties['fontFamily'];
1656
+ fontTertiaryFamily: React.CSSProperties['fontFamily'];
1657
+ fontWeightSemiBold: React.CSSProperties['fontWeight'];
1658
+ displayLarge: React.CSSProperties;
1659
+ displaySmall: React.CSSProperties;
1660
+ h7: React.CSSProperties;
1661
+ h8: React.CSSProperties;
1662
+ bodyXl: React.CSSProperties;
1663
+ bodyLg: React.CSSProperties;
1664
+ bodyMd: React.CSSProperties;
1665
+ bodySm: React.CSSProperties;
1666
+ bodyXs: React.CSSProperties;
1667
+ kpiValue: React.CSSProperties;
1668
+ }
1669
+ interface BreakpointOverrides {
1670
+ '2xl': true;
1671
+ }
1599
1672
  }
1600
- declare const bgBlur: ({ color, blur, imgUrl }: BgBlurProps) => SxProps<Theme$1>;
1601
- /**
1602
- * Usage:
1603
- * ...maxLine({ line: 2, persistent: theme.typography.caption }),
1604
- */
1605
- interface Persistent {
1606
- fontSize?: string | number;
1607
- lineHeight?: string | number;
1608
- [key: string]: any;
1673
+ declare module '@mui/material/Avatar' {
1674
+ interface AvatarPropsVariantOverrides {
1675
+ userSm: true;
1676
+ userMd: true;
1677
+ userLg: true;
1678
+ brandXs: true;
1679
+ brandSm: true;
1680
+ brandMd: true;
1681
+ brandLg: true;
1682
+ brandInitialXs: true;
1683
+ brandInitialSm: true;
1684
+ brandInitialMd: true;
1685
+ brandInitialLg: true;
1686
+ }
1609
1687
  }
1610
- interface MaxLineProps {
1611
- line: number;
1612
- persistent?: Persistent;
1688
+ declare module '@mui/material/AvatarGroup' {
1689
+ interface AvatarGroupPropsVariantOverrides {
1690
+ compact: true;
1691
+ }
1613
1692
  }
1614
- declare const maxLine: ({ line, persistent }: MaxLineProps) => {
1615
- overflow: string;
1616
- display: string;
1617
- textOverflow: string;
1618
- WebkitLineClamp: number;
1619
- WebkitBoxOrient: string;
1620
- };
1621
- /**
1622
- * Usage:
1623
- * ...paper({ theme, color: varAlpha(theme.vars.palette.surface.pageChannel, 0.9), dropdown: true }),
1624
- */
1625
- declare function paper({ theme, color, dropdown }: {
1626
- theme: Theme$1;
1627
- color?: string;
1628
- dropdown?: boolean;
1629
- }): SxProps<Theme$1>;
1630
- /**
1631
- * Usage:
1632
- * ...menuItem(theme)
1633
- */
1634
- declare const menuItem: (theme: Theme$1) => SxProps<Theme$1>;
1635
-
1636
- declare const createTheme: (settings: SettingsValueProps) => Theme;
1637
-
1638
- declare const schemeConfig: {
1639
- modeStorageKey: string;
1640
- defaultMode: "light" | "dark";
1641
- };
1642
-
1643
- /**
1644
- * [1] settings @primaryColor
1645
- * [2] settings @contrast
1646
- */
1647
- declare const updateCoreWithSettings: (theme: Theme, settings: SettingsValueProps) => Theme;
1648
- declare const updateComponentsWithSettings: (settings: SettingsValueProps) => Pick<Theme, "components">;
1649
-
1650
- type ThemeProviderProps = {
1651
- children: React.ReactNode;
1652
- };
1653
- declare const ThemeProvider: ({ children }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
1654
-
1655
- declare const Eye: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1656
-
1657
- declare const Copy: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1658
-
1659
- declare const Trash: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1660
-
1661
- declare const XMark: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1662
-
1663
- declare const Loader: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1664
-
1665
- declare const Search: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1666
-
1667
- declare const Settings: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1668
-
1669
- declare const UserFill: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1670
-
1671
- declare const EyeClosed: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1672
-
1673
- declare const KeyCommand: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1674
-
1675
- declare const XMarkSolid: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1676
-
1677
- declare const CloudUpload: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1678
-
1679
- declare const UserOutline: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1680
-
1681
- declare const RadioSelect: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1682
-
1683
- declare const RadioDefault: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1684
-
1685
- declare const NavArrowDown: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1686
-
1687
- declare const NavArrowLeft: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1688
-
1689
- declare const NavArrowRight: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1690
-
1691
- declare const ClipboardCheck: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1692
-
1693
- declare const CheckboxSelect: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1694
-
1695
- declare const InfoCircleFill: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1696
-
1697
- declare const CheckboxDefault: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1698
-
1699
- declare const BellNotification: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1700
-
1701
- declare const InfoCircleOutline: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1702
-
1703
- declare const LongArrowUpLeftSolid: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1704
-
1705
- declare const CheckboxIndeterminate: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
1706
-
1707
- declare const Icons_BellNotification: typeof BellNotification;
1708
- declare const Icons_CheckboxDefault: typeof CheckboxDefault;
1709
- declare const Icons_CheckboxIndeterminate: typeof CheckboxIndeterminate;
1710
- declare const Icons_CheckboxSelect: typeof CheckboxSelect;
1711
- declare const Icons_ClipboardCheck: typeof ClipboardCheck;
1712
- declare const Icons_CloudUpload: typeof CloudUpload;
1713
- declare const Icons_Copy: typeof Copy;
1714
- declare const Icons_Eye: typeof Eye;
1715
- declare const Icons_EyeClosed: typeof EyeClosed;
1716
- declare const Icons_InfoCircleFill: typeof InfoCircleFill;
1717
- declare const Icons_InfoCircleOutline: typeof InfoCircleOutline;
1718
- declare const Icons_KeyCommand: typeof KeyCommand;
1719
- declare const Icons_Loader: typeof Loader;
1720
- declare const Icons_LongArrowUpLeftSolid: typeof LongArrowUpLeftSolid;
1721
- declare const Icons_NavArrowDown: typeof NavArrowDown;
1722
- declare const Icons_NavArrowLeft: typeof NavArrowLeft;
1723
- declare const Icons_NavArrowRight: typeof NavArrowRight;
1724
- declare const Icons_RadioDefault: typeof RadioDefault;
1725
- declare const Icons_RadioSelect: typeof RadioSelect;
1726
- declare const Icons_Search: typeof Search;
1727
- declare const Icons_Settings: typeof Settings;
1728
- declare const Icons_Trash: typeof Trash;
1729
- declare const Icons_UserFill: typeof UserFill;
1730
- declare const Icons_UserOutline: typeof UserOutline;
1731
- declare const Icons_XMark: typeof XMark;
1732
- declare const Icons_XMarkSolid: typeof XMarkSolid;
1733
- declare namespace Icons {
1734
- export { Icons_BellNotification as BellNotification, Icons_CheckboxDefault as CheckboxDefault, Icons_CheckboxIndeterminate as CheckboxIndeterminate, Icons_CheckboxSelect as CheckboxSelect, Icons_ClipboardCheck as ClipboardCheck, Icons_CloudUpload as CloudUpload, Icons_Copy as Copy, Icons_Eye as Eye, Icons_EyeClosed as EyeClosed, Icons_InfoCircleFill as InfoCircleFill, Icons_InfoCircleOutline as InfoCircleOutline, Icons_KeyCommand as KeyCommand, Icons_Loader as Loader, Icons_LongArrowUpLeftSolid as LongArrowUpLeftSolid, Icons_NavArrowDown as NavArrowDown, Icons_NavArrowLeft as NavArrowLeft, Icons_NavArrowRight as NavArrowRight, Icons_RadioDefault as RadioDefault, Icons_RadioSelect as RadioSelect, Icons_Search as Search, Icons_Settings as Settings, Icons_Trash as Trash, Icons_UserFill as UserFill, Icons_UserOutline as UserOutline, Icons_XMark as XMark, Icons_XMarkSolid as XMarkSolid };
1693
+ declare module '@mui/material/Button' {
1694
+ interface ButtonPropsVariantOverrides {
1695
+ primary: true;
1696
+ secondary: true;
1697
+ tertiary: true;
1698
+ }
1699
+ interface ButtonPropsColorOverrides {
1700
+ neutral: true;
1701
+ }
1702
+ }
1703
+ declare module '@mui/material/ButtonGroup' {
1704
+ interface ButtonGroupPropsVariantOverrides {
1705
+ primary: true;
1706
+ secondary: true;
1707
+ tertiary: true;
1708
+ }
1709
+ }
1710
+ declare module '@mui/material/Fab' {
1711
+ interface FabPropsVariantOverrides {
1712
+ outlined: true;
1713
+ outlinedExtended: true;
1714
+ soft: true;
1715
+ softExtended: true;
1716
+ }
1717
+ }
1718
+ declare module '@mui/material/Badge' {
1719
+ interface BadgePropsVariantOverrides {
1720
+ alway: true;
1721
+ busy: true;
1722
+ online: true;
1723
+ offline: true;
1724
+ invisible: true;
1725
+ }
1735
1726
  }
1736
-
1737
- type IconType = keyof typeof Icons;
1738
-
1739
- type IconProps = BoxProps & {
1740
- icon: IconType;
1741
- };
1742
- declare const Icon: ({ icon, className, ...props }: IconProps) => react_jsx_runtime.JSX.Element;
1743
-
1744
- declare const iconClasses: {
1745
- root: string;
1746
- };
1747
-
1748
- interface LogoProps extends BoxProps {
1749
- disableLink?: boolean;
1750
- isFull?: boolean;
1751
- isWhite?: boolean;
1752
- isBlack?: boolean;
1753
- href?: string;
1754
- LinkComponent?: ElementType;
1755
- src?: string;
1756
- alt?: string;
1727
+ declare module '@mui/material/Badge' {
1728
+ interface BadgePropsVariantOverrides {
1729
+ alway: true;
1730
+ busy: true;
1731
+ online: true;
1732
+ offline: true;
1733
+ invisible: true;
1734
+ }
1757
1735
  }
1758
- declare const Logo: ({ sx, isFull, isWhite, isBlack, disableLink, LinkComponent, href, src, alt, ...rest }: LogoProps) => react_jsx_runtime.JSX.Element;
1759
- declare const AnimatedLogo: () => react_jsx_runtime.JSX.Element;
1760
-
1761
- type ImageStatus = 'idle' | 'loading' | 'loaded' | 'error';
1762
- interface ImageProps extends Omit<BoxProps, 'component' | 'children' | 'position'> {
1763
- src: string;
1764
- alt: string;
1765
- /**
1766
- * Load the image only when it enters the viewport.
1767
- * Defaults to true.
1768
- */
1769
- lazy?: boolean;
1770
- /**
1771
- * Fallback URL used when the main source fails to load.
1772
- */
1773
- fallbackSrc?: string;
1774
- /**
1775
- * Responsive image sources for different screen sizes/resolutions.
1776
- * Example: "image-320w.jpg 320w, image-640w.jpg 640w, image-1280w.jpg 1280w"
1777
- */
1778
- srcSet?: string;
1779
- /**
1780
- * Sizes attribute for responsive images. Defines which image size to use at different viewport widths.
1781
- * Example: "(max-width: 600px) 100vw, (max-width: 1200px) 50vw, 33vw"
1782
- */
1783
- sizes?: string;
1784
- /**
1785
- * Aspect ratio (e.g. "16 / 9" or 1.5) applied to the wrapper to avoid layout shift.
1786
- */
1787
- aspectRatio?: number | string;
1788
- /**
1789
- * Controls object-fit of the underlying image. Defaults to "cover".
1790
- */
1791
- fit?: CSSProperties['objectFit'];
1792
- /**
1793
- * Controls object-position of the underlying image. Defaults to "center".
1794
- */
1795
- position?: CSSProperties['objectPosition'];
1796
- /**
1797
- * Optional overlay content rendered above the image.
1798
- */
1799
- overlay?: ReactNode;
1800
- /**
1801
- * Enables overlay even when overlay content is not provided.
1802
- */
1803
- withOverlay?: boolean;
1804
- /**
1805
- * Custom loading indicator shown before the image is loaded.
1806
- */
1807
- loadingIndicator?: ReactNode;
1808
- /**
1809
- * Custom error fallback content when both src and fallbackSrc fail.
1810
- */
1811
- renderError?: ReactNode;
1812
- /**
1813
- * Additional styles for the underlying image element.
1814
- */
1815
- imgSx?: BoxProps['sx'];
1816
- /**
1817
- * Additional props for the underlying image element.
1818
- */
1819
- imgProps?: Omit<BoxProps<'img'>, 'component' | 'sx' | 'ref' | 'src' | 'alt' | 'children'>;
1820
- /**
1821
- * Root margin passed to the IntersectionObserver. Defaults to "200px".
1822
- */
1823
- observerMargin?: string;
1824
- /**
1825
- * Callback fired when the image fails to load.
1826
- */
1827
- onError?: (event: SyntheticEvent<HTMLImageElement, Event>) => void;
1736
+ declare module '@mui/material/Chip' {
1737
+ interface ChipPropsVariantOverrides {
1738
+ soft: true;
1739
+ }
1740
+ interface ChipPropsColorOverrides {
1741
+ neutral: true;
1742
+ }
1828
1743
  }
1829
-
1830
- declare const Image: react.ForwardRefExoticComponent<Omit<ImageProps, "ref"> & react.RefAttributes<HTMLImageElement>>;
1831
-
1832
- interface UploadProps extends DropzoneOptions {
1833
- error?: boolean;
1834
- sx?: SxProps$1<Theme>;
1835
- placeholder?: React.ReactNode;
1836
- helperText?: React.ReactNode;
1837
- disableMultiple?: boolean;
1838
- value?: File | string | null | Array<File | string>;
1839
- onDelete?: VoidFunction;
1840
- onUpload?: VoidFunction;
1841
- onRemove?: (file: File | string) => void;
1842
- onRemoveAll?: VoidFunction;
1843
- isUploading?: boolean;
1844
- uploadProgress?: number;
1744
+ declare module '@mui/material/Pagination' {
1745
+ interface PaginationPropsVariantOverrides {
1746
+ soft: true;
1747
+ }
1748
+ interface PaginationPropsColorOverrides {
1749
+ info: true;
1750
+ success: true;
1751
+ warning: true;
1752
+ error: true;
1753
+ }
1845
1754
  }
1846
-
1847
- declare const Upload: ({ sx, value, error, disabled, onDelete, onUpload, onRemove, helperText, onRemoveAll, uploadProgress, isUploading, multiple, ...rest }: UploadProps) => react_jsx_runtime.JSX.Element;
1848
-
1849
- interface FormProps<T extends FieldValues> extends Omit<BoxProps, 'onSubmit'> {
1850
- children: React.ReactNode;
1851
- methods: UseFormReturn<T>;
1852
- onSubmit?: SubmitHandler<T>;
1755
+ declare module '@mui/material/Slider' {
1756
+ interface SliderPropsColorOverrides {
1757
+ inherit: true;
1758
+ }
1853
1759
  }
1854
- declare const Form: <T extends FieldValues>({ children, onSubmit, methods, ...rest }: FormProps<T>) => react_jsx_runtime.JSX.Element;
1855
-
1856
- interface RHFAutocompleteProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> extends AutocompleteProps<T, Multiple, DisableClearable, FreeSolo> {
1857
- name: string;
1858
- label?: string;
1859
- required?: boolean;
1860
- placeholder?: string;
1861
- helperText?: React.ReactNode;
1862
- handleChange?: (val: any) => void;
1760
+ declare module '@mui/material/TextField' {
1761
+ interface TextFieldPropsSizeOverrides {
1762
+ large: true;
1763
+ xl: true;
1764
+ }
1765
+ }
1766
+ declare module '@mui/material/ToggleButton' {
1767
+ interface ToggleButtonPropsColorOverrides {
1768
+ neutral: true;
1769
+ }
1770
+ }
1771
+ declare module '@mui/material/Typography' {
1772
+ interface TypographyPropsVariantOverrides {
1773
+ displayLarge: true;
1774
+ displaySmall: true;
1775
+ h7: true;
1776
+ h8: true;
1777
+ bodyXl: true;
1778
+ bodyLg: true;
1779
+ bodyMd: true;
1780
+ bodySm: true;
1781
+ bodyXs: true;
1782
+ kpiValue: true;
1783
+ }
1784
+ }
1785
+ declare module '@mui/material/Checkbox' {
1786
+ interface CheckboxPropsSizeOverrides {
1787
+ large: true;
1788
+ }
1789
+ }
1790
+ declare module '@mui/material/Switch' {
1791
+ interface SwitchPropsSizeOverrides {
1792
+ large: true;
1793
+ }
1794
+ }
1795
+ declare module '@mui/material/Radio' {
1796
+ interface RadioPropsSizeOverrides {
1797
+ large: true;
1798
+ }
1799
+ }
1800
+ declare module '@mui/x-data-grid' {
1801
+ interface NoRowsOverlayPropsOverrides extends EmptyContentProps {
1802
+ }
1803
+ interface NoResultsOverlayPropsOverrides extends EmptyContentProps {
1804
+ }
1805
+ }
1806
+ declare module '@mui/material/PaginationItem' {
1807
+ interface PaginationItemPropsColorOverrides {
1808
+ info: true;
1809
+ error: true;
1810
+ success: true;
1811
+ warning: true;
1812
+ }
1813
+ interface PaginationItemPropsVariantOverrides {
1814
+ soft: true;
1815
+ }
1863
1816
  }
1864
- declare const RHFAutocomplete: <T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined>({ name, label, required, placeholder, helperText, handleChange, ...other }: Omit<RHFAutocompleteProps<T, Multiple, DisableClearable, FreeSolo>, "renderInput">) => react_jsx_runtime.JSX.Element;
1865
1817
 
1866
- interface RHFCheckboxProps extends Omit<FormControlLabelProps, 'name' | 'control' | 'slotProps'> {
1867
- name: string;
1868
- description?: string;
1869
- helperText?: React.ReactNode;
1870
- slotProps?: {
1871
- wrap?: BoxProps['sx'];
1872
- checkbox?: CheckboxProps;
1873
- formLabel?: FormLabelProps;
1874
- formHelperText?: FormHelperTextProps;
1818
+ declare const stylesMode: {
1819
+ light: string;
1820
+ dark: string;
1821
+ };
1822
+ declare const mediaQueries: {
1823
+ upXs: string;
1824
+ upSm: string;
1825
+ upMd: string;
1826
+ upLg: string;
1827
+ upXl: string;
1828
+ };
1829
+ /**
1830
+ * Set font family
1831
+ */
1832
+ declare const setFont: (fontName: string) => string;
1833
+ /**
1834
+ * Converts rem to px
1835
+ */
1836
+ declare const remToPx: (value: string) => number;
1837
+ /**
1838
+ * Converts px to rem
1839
+ */
1840
+ declare const pxToRem: (value: number) => string;
1841
+ /**
1842
+ * Responsive font sizes
1843
+ */
1844
+ declare const responsiveFontSizes: ({ sm, md, lg }: {
1845
+ sm: number;
1846
+ md: number;
1847
+ lg: number;
1848
+ }) => {
1849
+ [mediaQueries.upSm]: {
1850
+ fontSize: string;
1851
+ };
1852
+ [mediaQueries.upMd]: {
1853
+ fontSize: string;
1875
1854
  };
1876
- }
1877
- declare const RHFCheckbox: ({ name, description, helperText, label, sx, slotProps, ...other }: RHFCheckboxProps) => react_jsx_runtime.JSX.Element;
1878
- interface RHFMultiCheckboxOption {
1879
- label: string;
1880
- value: string | number;
1881
- description?: string;
1882
- }
1883
- interface RHFMultiCheckboxProps extends Omit<FormGroupProps, 'children'> {
1884
- name: string;
1885
- label?: string;
1886
- options: RHFMultiCheckboxOption[];
1887
- helperText?: React.ReactNode;
1888
- row?: boolean;
1889
- slotProps?: {
1890
- formControl?: FormControlProps;
1891
- checkbox?: CheckboxProps;
1892
- formLabel?: FormLabelProps;
1893
- formHelperText?: FormHelperTextProps;
1855
+ [mediaQueries.upLg]: {
1856
+ fontSize: string;
1894
1857
  };
1895
- }
1896
- declare const RHFMultiCheckbox: ({ name, label, options, slotProps, helperText, row, ...other }: RHFMultiCheckboxProps) => react_jsx_runtime.JSX.Element;
1858
+ };
1859
+ /**
1860
+ * Converts a hex color to RGB channels
1861
+ */
1862
+ declare const hexToRgbChannel: (hex: string) => string;
1863
+ /**
1864
+ * Converts a hex color to RGB channels
1865
+ */
1866
+ declare const createPaletteChannel: (hexPalette: Record<string, string>) => {
1867
+ [x: string]: string;
1868
+ };
1869
+ /**
1870
+ * Color with alpha channel
1871
+ */
1872
+ declare const varAlpha: (color: string, opacity?: number) => string;
1897
1873
 
1898
- interface RHFRadioGroupOption {
1899
- label: string;
1900
- value: string | number;
1901
- description?: string;
1902
- }
1903
- interface RHFRadioGroupProps extends Omit<RadioGroupProps, 'name' | 'control'> {
1904
- name: string;
1905
- label?: string;
1906
- options: RHFRadioGroupOption[];
1907
- description?: string;
1908
- helperText?: React.ReactNode;
1909
- slotProps?: {
1910
- wrap?: FormControlProps['sx'];
1911
- radio?: RadioProps;
1912
- formLabel?: FormLabelProps;
1913
- formHelperText?: FormHelperTextProps;
1874
+ /**
1875
+ * Usage:
1876
+ * ...hideScrollX,
1877
+ * ...hideScrollY,
1878
+ */
1879
+ declare const hideScrollX: {
1880
+ msOverflowStyle: string;
1881
+ scrollbarWidth: string;
1882
+ overflowX: string;
1883
+ '&::-webkit-scrollbar': {
1884
+ display: string;
1885
+ };
1886
+ };
1887
+ declare const hideScrollY: {
1888
+ msOverflowStyle: string;
1889
+ scrollbarWidth: string;
1890
+ overflowY: string;
1891
+ '&::-webkit-scrollbar': {
1892
+ display: string;
1914
1893
  };
1894
+ };
1895
+ /**
1896
+ * Usage:
1897
+ * ...textGradient(`to right, ${theme.vars.palette.text.primary}, ${alpha(theme.vars.palette.text.primary, 0.2)}`
1898
+ */
1899
+ declare const textGradient: (color: string) => {
1900
+ background: string;
1901
+ WebkitBackgroundClip: string;
1902
+ WebkitTextFillColor: string;
1903
+ backgroundClip: string;
1904
+ textFillColor: string;
1905
+ color: string;
1906
+ };
1907
+ /**
1908
+ * Usage:
1909
+ * ...borderGradient({ color: `to right, ${theme.vars.palette.text.primary}, ${alpha(theme.vars.palette.text.primary, 0.2)}`, padding: '4px' }),
1910
+ */
1911
+ interface BorderGradientProps {
1912
+ color?: string;
1913
+ padding?: string;
1915
1914
  }
1916
- declare const RHFRadioGroup: ({ name, label, options, helperText, slotProps, ...other }: RHFRadioGroupProps) => react_jsx_runtime.JSX.Element;
1917
-
1918
- interface RHFUploadProps extends Omit<UploadProps, 'value'> {
1919
- name: string;
1920
- multiple?: boolean;
1915
+ declare const borderGradient: (props: BorderGradientProps) => {
1916
+ background?: string | undefined;
1917
+ inset: number;
1918
+ width: string;
1919
+ content: string;
1920
+ height: string;
1921
+ margin: string;
1922
+ position: string;
1923
+ borderRadius: string;
1924
+ padding: string;
1925
+ mask: string;
1926
+ WebkitMask: string;
1927
+ maskComposite: string;
1928
+ WebkitMaskComposite: string;
1929
+ };
1930
+ /**
1931
+ * Usage:
1932
+ * ...bgGradient({ color: `to right, ${theme.vars.palette.grey[900]} 25%, ${varAlpha(theme.vars.palette.primary.darkerChannel, 0.88)}`, imgUrl: '/assets/background/overlay.png' }),
1933
+ */
1934
+ interface BgGradientProps {
1935
+ color?: string;
1936
+ imgUrl?: string;
1921
1937
  }
1922
- declare const RHFUpload: ({ name, multiple, helperText, ...rest }: RHFUploadProps) => react_jsx_runtime.JSX.Element;
1923
-
1924
- interface OTPInputProps extends Omit<TextFieldProps, 'onChange'> {
1925
- length?: number;
1926
- onChange?: (otp: string) => void;
1927
- onComplete?: (otp: string) => void;
1928
- containerProps?: BoxProps;
1938
+ declare function bgGradient({ color, imgUrl }: BgGradientProps): {
1939
+ background: string;
1940
+ backgroundSize: string;
1941
+ backgroundRepeat: string;
1942
+ backgroundPosition: string;
1943
+ } | {
1944
+ background: string;
1945
+ backgroundSize?: undefined;
1946
+ backgroundRepeat?: undefined;
1947
+ backgroundPosition?: undefined;
1948
+ };
1949
+ /**
1950
+ * Usage:
1951
+ * ...bgBlur({ color: `varAlpha(theme.vars.palette.surface.paperChannel, 0.8)`, imgUrl: '/assets/background/overlay.png', blur: 6 }),
1952
+ */
1953
+ interface BgBlurProps {
1954
+ color?: string;
1955
+ blur?: number;
1956
+ imgUrl?: string;
1929
1957
  }
1930
- declare const OTPInput: (props: OTPInputProps) => react_jsx_runtime.JSX.Element;
1931
-
1932
- interface RHFOTPInputProps extends Omit<OTPInputProps, 'name'> {
1933
- name: string;
1958
+ declare const bgBlur: ({ color, blur, imgUrl }: BgBlurProps) => SxProps$1<Theme$1>;
1959
+ /**
1960
+ * Usage:
1961
+ * ...maxLine({ line: 2, persistent: theme.typography.caption }),
1962
+ */
1963
+ interface Persistent {
1964
+ fontSize?: string | number;
1965
+ lineHeight?: string | number;
1966
+ [key: string]: any;
1934
1967
  }
1935
- declare const RHFOTPInput: ({ name, length, helperText, ...rest }: RHFOTPInputProps) => react_jsx_runtime.JSX.Element;
1936
-
1937
- declare const Field: {
1938
- OTP: ({ name, length, helperText, ...rest }: RHFOTPInputProps) => react_jsx_runtime.JSX.Element;
1939
- Switch: ({ name, description, helperText, label, sx, slotProps, ...other }: Omit<_mui_material.FormControlLabelProps, "name" | "control"> & {
1940
- name: string;
1941
- description?: string;
1942
- helperText?: React.ReactNode;
1943
- slotProps?: {
1944
- wrap?: _mui_material.BoxProps["sx"];
1945
- switch?: _mui_material.SwitchProps;
1946
- formHelperText?: _mui_material.FormHelperTextProps;
1947
- };
1948
- }) => react_jsx_runtime.JSX.Element;
1949
- Upload: ({ name, multiple, helperText, ...rest }: RHFUploadProps) => react_jsx_runtime.JSX.Element;
1950
- Text: ({ name, helperText, type, slotProps, ...rest }: _mui_material.TextFieldProps) => react_jsx_runtime.JSX.Element;
1951
- Radio: ({ name, label, options, helperText, slotProps, ...other }: RHFRadioGroupProps) => react_jsx_runtime.JSX.Element;
1952
- Checkbox: ({ name, description, helperText, label, sx, slotProps, ...other }: RHFCheckboxProps) => react_jsx_runtime.JSX.Element;
1953
- Autocomplete: <T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined>({ name, label, required, placeholder, helperText, handleChange, ...other }: Omit<RHFAutocompleteProps<T, Multiple, DisableClearable, FreeSolo>, "renderInput">) => react_jsx_runtime.JSX.Element;
1954
- MultiCheckbox: ({ name, label, options, slotProps, helperText, row, ...other }: RHFMultiCheckboxProps) => react_jsx_runtime.JSX.Element;
1968
+ interface MaxLineProps {
1969
+ line: number;
1970
+ persistent?: Persistent;
1971
+ }
1972
+ declare const maxLine: ({ line, persistent }: MaxLineProps) => {
1973
+ overflow: string;
1974
+ display: string;
1975
+ textOverflow: string;
1976
+ WebkitLineClamp: number;
1977
+ WebkitBoxOrient: string;
1955
1978
  };
1979
+ /**
1980
+ * Usage:
1981
+ * ...paper({ theme, color: varAlpha(theme.vars.palette.surface.pageChannel, 0.9), dropdown: true }),
1982
+ */
1983
+ declare function paper({ theme, color, dropdown }: {
1984
+ theme: Theme$1;
1985
+ color?: string;
1986
+ dropdown?: boolean;
1987
+ }): SxProps$1<Theme$1>;
1988
+ /**
1989
+ * Usage:
1990
+ * ...menuItem(theme)
1991
+ */
1992
+ declare const menuItem: (theme: Theme$1) => SxProps$1<Theme$1>;
1956
1993
 
1957
- type RHFSwitchProps = Omit<FormControlLabelProps, 'name' | 'control'> & {
1958
- name: string;
1959
- description?: string;
1960
- helperText?: React.ReactNode;
1961
- slotProps?: {
1962
- wrap?: BoxProps['sx'];
1963
- switch?: SwitchProps;
1964
- formHelperText?: FormHelperTextProps;
1965
- };
1966
- };
1967
- declare const RHFSwitch: ({ name, description, helperText, label, sx, slotProps, ...other }: RHFSwitchProps) => react_jsx_runtime.JSX.Element;
1968
- interface RHFMultiSwitchOption {
1969
- label: string;
1970
- value: string | number;
1971
- }
1972
- interface RHFMultiSwitchProps extends Omit<FormGroupProps, 'children'> {
1973
- name: string;
1974
- label?: string;
1975
- options: RHFMultiSwitchOption[];
1976
- helperText?: React.ReactNode;
1977
- row?: boolean;
1978
- slotProps?: {
1979
- formControl?: FormControlProps;
1980
- switch?: SwitchProps;
1981
- formLabel?: FormLabelProps;
1982
- formHelperText?: FormHelperTextProps;
1983
- };
1984
- }
1985
- declare const RHFMultiSwitch: ({ name, label, options, helperText, slotProps, ...other }: RHFMultiSwitchProps) => react_jsx_runtime.JSX.Element;
1994
+ declare const createTheme: (settings: SettingsValueProps) => Theme;
1986
1995
 
1987
- declare const RHFTextField: ({ name, helperText, type, slotProps, ...rest }: TextFieldProps) => react_jsx_runtime.JSX.Element;
1996
+ declare const schemeConfig: {
1997
+ modeStorageKey: string;
1998
+ defaultMode: "light" | "dark";
1999
+ };
1988
2000
 
1989
- interface CopyButtonProps {
1990
- text: string;
1991
- size?: 'small' | 'medium';
1992
- }
1993
- declare const CopyButton: ({ text, size }: CopyButtonProps) => react_jsx_runtime.JSX.Element;
2001
+ /**
2002
+ * [1] settings @primaryColor
2003
+ * [2] settings @contrast
2004
+ */
2005
+ declare const updateCoreWithSettings: (theme: Theme, settings: SettingsValueProps) => Theme;
2006
+ declare const updateComponentsWithSettings: (settings: SettingsValueProps) => Pick<Theme, "components">;
1994
2007
 
1995
- interface LoadingScreenProps extends BoxProps {
1996
- portal?: boolean;
1997
- }
1998
- declare const LoadingScreen: ({ portal, sx, ...rest }: LoadingScreenProps) => react_jsx_runtime.JSX.Element;
1999
- declare const SplashScreen: ({ portal, sx, ...rest }: LoadingScreenProps) => react_jsx_runtime.JSX.Element;
2008
+ type ThemeProviderProps = {
2009
+ children: React.ReactNode;
2010
+ };
2011
+ declare const ThemeProvider: ({ children }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
2000
2012
 
2001
- export { AnimatedLogo, BellNotification, CheckboxDefault, CheckboxIndeterminate, CheckboxSelect, ClipboardCheck, CloudUpload, type ColorSchema, Copy, CopyButton, type CustomShadowOptions, type CustomSpacingOptions, Eye, EyeClosed, Field, Form, Icon, type IconProps, type IconType, Image, type ImageProps, type ImageStatus, InfoCircleFill, InfoCircleOutline, KeyCommand, Loader, LoadingScreen, LocalStorageAvailable, LocalStorageGetItem, Logo, LongArrowUpLeftSolid, NavArrowDown, NavArrowLeft, NavArrowRight, OTPInput, type OTPInputProps, RHFAutocomplete, type RHFAutocompleteProps, RHFCheckbox, type RHFCheckboxProps, RHFMultiCheckbox, type RHFMultiCheckboxOption, type RHFMultiCheckboxProps, RHFMultiSwitch, RHFOTPInput, type RHFOTPInputProps, RHFRadioGroup, type RHFRadioGroupProps, RHFSwitch, RHFTextField, RHFUpload, type RHFUploadProps, RadioDefault, RadioSelect, type RadiusOptions, STORAGE_KEY, Search, Settings, SettingsConsumer, SettingsContext, type SettingsContextProps, SettingsProvider, type SettingsValueProps, SplashScreen, Table, type TableNoRowsProps, TablePagination, ThemeProvider, Trash, Upload, type UploadProps, type UseBooleanReturnType, type UseSetStateReturnType, UserFill, UserOutline, XMark, XMarkSolid, action, background, baseAction, basePalette, bgBlur, bgGradient, border, borderGradient, breakpoints, colorSchemes, common, components, createPaletteChannel, createShadowColor, createTheme, customShadows, customSpacing, darkPalette, defaultSettings, error, fCurrency, fData, fNumber, fPercent, fShortenNumber, formatFullname, getCurrencySymbol, getInitials, getStorage, grey, hexToRgbChannel, hideScrollX, hideScrollY, icon, iconClasses, info, isEqual, lightPalette, maxLine, mediaQueries, menuItem, neutral, orderBy, paper, paramCase, primary, primaryFont, pxToRem, radius, remToPx, removeStorage, responsiveFontSizes, schemeConfig, secondary, secondaryFont, sentenceCase, setFont, setStorage, shadows, snakeCase, splitFullname, stylesMode, success, surface, tertiaryFont, text, textGradient, typography, updateComponentsWithSettings, updateCoreWithSettings, useBoolean, useCopyToClipboard, useCountdownDate, useCountdownSeconds, useEventListener, useLocalStorage, usePopover, useResponsive, useScrollOffSetTop, useSetState, useSettings, useWidth, varAlpha, warning };
2013
+ export { AnimatedLogo, BellNotification, CheckboxDefault, CheckboxIndeterminate, CheckboxSelect, ClipboardCheck, CloudUpload, type ColorSchema, Copy, CopyButton, type CustomShadowOptions, type CustomSpacingOptions, EmptyContent, type EmptyContentProps, Eye, EyeClosed, Field, Form, Icon, type IconProps, type IconType, Image, type ImageProps, type ImageStatus, InfoCircleFill, InfoCircleOutline, KeyCommand, Loader, LoadingScreen, LocalStorageAvailable, LocalStorageGetItem, Logo, LongArrowUpLeftSolid, NavArrowDown, NavArrowLeft, NavArrowRight, OTPInput, type OTPInputProps, RHFAutocomplete, type RHFAutocompleteProps, RHFCheckbox, type RHFCheckboxProps, RHFMultiCheckbox, type RHFMultiCheckboxOption, type RHFMultiCheckboxProps, RHFMultiSwitch, RHFOTPInput, type RHFOTPInputProps, RHFRadioGroup, type RHFRadioGroupProps, RHFSwitch, RHFTextField, RHFUpload, type RHFUploadProps, RadioDefault, RadioSelect, type RadiusOptions, STORAGE_KEY, Search, Settings, SettingsConsumer, SettingsContext, type SettingsContextProps, SettingsProvider, type SettingsValueProps, SplashScreen, Table, TablePagination, ThemeProvider, Trash, Upload, type UploadProps, type UseBooleanReturnType, type UseSetStateReturnType, UserFill, UserOutline, XMark, XMarkSolid, action, background, baseAction, basePalette, bgBlur, bgGradient, border, borderGradient, breakpoints, colorSchemes, common, components, createPaletteChannel, createShadowColor, createTheme, customShadows, customSpacing, darkPalette, defaultSettings, error, fCurrency, fData, fNumber, fPercent, fShortenNumber, formatFullname, getCurrencySymbol, getInitials, getStorage, grey, hexToRgbChannel, hideScrollX, hideScrollY, icon, iconClasses, info, isEqual, lightPalette, maxLine, mediaQueries, menuItem, neutral, orderBy, paper, paramCase, primary, primaryFont, pxToRem, radius, remToPx, removeStorage, responsiveFontSizes, schemeConfig, secondary, secondaryFont, sentenceCase, setFont, setStorage, shadows, snakeCase, splitFullname, stylesMode, success, surface, tertiaryFont, text, textGradient, typography, updateComponentsWithSettings, updateCoreWithSettings, useBoolean, useCopyToClipboard, useCountdownDate, useCountdownSeconds, useEventListener, useLocalStorage, usePopover, useResponsive, useScrollOffSetTop, useSetState, useSettings, useWidth, varAlpha, warning };