@useloops/design-system 1.4.61 → 1.4.66

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.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import react__default, { ReactElement, FunctionComponent, ChangeEvent, PropsWithChildren, ReactNode, Dispatch, SetStateAction } from 'react';
3
3
  import * as _mui_material from '@mui/material';
4
- import { AvatarGroupProps as AvatarGroupProps$1, SxProps, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, FormControlLabelProps as FormControlLabelProps$1, Theme, Breakpoint, IconButtonProps as IconButtonProps$1, ButtonGroupProps, LinkProps as LinkProps$1, MenuItemProps, SelectProps as SelectProps$1, PaperProps, SwitchProps as SwitchProps$1, TextFieldProps as TextFieldProps$1, TypographyProps as TypographyProps$1, MenuProps, PaletteMode, Direction } from '@mui/material';
4
+ import { AvatarGroupProps as AvatarGroupProps$1, SxProps, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, FormControlLabelProps as FormControlLabelProps$1, Theme, Breakpoint, IconButtonProps as IconButtonProps$1, ButtonGroupProps, LinkProps as LinkProps$1, SelectProps as SelectProps$1, MenuItemProps, SelectChangeEvent, PaperProps, SwitchProps as SwitchProps$1, TextFieldProps as TextFieldProps$1, TypographyProps as TypographyProps$1, MenuProps, PaletteMode, Direction } from '@mui/material';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { UniqueIdentifier } from '@dnd-kit/core';
7
7
  import { Theme as Theme$1 } from '@mui/material/styles';
@@ -347,7 +347,7 @@ interface IconProps {
347
347
  }
348
348
  declare const Icon: FunctionComponent<IconProps>;
349
349
 
350
- type IconButtonSizing = 'lg' | 'md';
350
+ type IconButtonSizing = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
351
351
  type IconButtonShapeMap = 'default' | 'round';
352
352
  type IconButtonVariation = 'default' | 'toggle' | 'outlined' | 'raised';
353
353
 
@@ -377,12 +377,11 @@ declare const IconButton: ({ icon, loading, sizing, ...rest }: IconButtonProps)
377
377
 
378
378
  interface IconButtonGroupProps extends PropsWithChildren {
379
379
  ButtonGroupProps?: ButtonGroupProps;
380
- variation?: IconButtonProps['variation'];
380
+ variation?: 'default' | 'toggle';
381
381
  orientation: ButtonGroupProps['orientation'];
382
382
  sizing?: IconButtonProps['sizing'];
383
- divider?: boolean;
384
383
  iconColor?: string;
385
- disabled?: boolean;
384
+ groupRaised?: boolean;
386
385
  }
387
386
  declare const IconButtonGroup: FunctionComponent<IconButtonGroupProps>;
388
387
 
@@ -505,30 +504,36 @@ interface RadioGroupProps {
505
504
  }
506
505
  declare const RadioGroup: FunctionComponent<RadioGroupProps>;
507
506
 
507
+ type SelectOption = {
508
+ label: string;
509
+ value: string;
510
+ };
511
+
512
+ type SelectOnChange = (event: SelectChangeEvent<any>, child: React.ReactNode) => void;
513
+ type AutocompleteOnChange = (value: string[]) => void;
508
514
  type SelectProps = {
509
- selections: {
510
- value: string;
511
- label: string;
512
- }[];
513
- selectOptionProps?: MenuItemProps;
514
- internalChange?: () => void;
515
- sx?: SelectProps$1['sx'];
516
- onChange?: SelectProps$1['onChange'];
517
- onBlur?: SelectProps$1['onBlur'];
518
- ref?: SelectProps$1['ref'];
519
- inputRef?: SelectProps$1['inputRef'];
520
- MenuProps?: SelectProps$1['MenuProps'];
521
- value?: SelectProps$1['value'];
522
- id?: string;
515
+ selections: SelectOption[];
516
+ autoComplete?: boolean;
523
517
  autoFocus?: boolean;
524
518
  disabled?: boolean;
519
+ disablePortal?: boolean;
525
520
  error?: boolean;
526
521
  fullWidth?: boolean;
522
+ id?: string;
523
+ inputRef?: SelectProps$1['inputRef'];
524
+ internalChange?: () => void;
525
+ MenuProps?: SelectProps$1['MenuProps'];
527
526
  name?: string | undefined;
527
+ onBlur?: SelectProps$1['onBlur'];
528
+ onChange?: SelectOnChange | AutocompleteOnChange;
528
529
  placeholder?: string | undefined;
529
530
  readOnly?: boolean;
531
+ ref?: SelectProps$1['ref'];
530
532
  required?: boolean;
533
+ selectOptionProps?: MenuItemProps;
531
534
  sizing?: 'xs' | 'md' | 'lg';
535
+ sx?: SelectProps$1['sx'];
536
+ value?: SelectProps$1['value'];
532
537
  };
533
538
  declare const Select: FunctionComponent<SelectProps>;
534
539
 
@@ -537,12 +542,12 @@ interface SliderProps {
537
542
  labelRight: string;
538
543
  labelMiddle?: string;
539
544
  min: number;
545
+ max: number;
540
546
  labelRightProps?: InputLabelHelpProps;
541
547
  labelLeftProps?: InputLabelHelpProps;
542
548
  internalChange?: () => void;
543
549
  defaultValue?: number;
544
550
  disabled?: boolean;
545
- max?: number;
546
551
  onChange?: (event: Event, value: number | number[], activeThumb: number) => void;
547
552
  step?: number;
548
553
  value?: number | number[];