@yr3/ui 1.0.15 → 1.0.17

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
@@ -1152,6 +1152,8 @@ declare const getNumberPhone: (phone: string, dial: string) => string;
1152
1152
 
1153
1153
  declare function mergeDeep<T>(target: T, source?: Partial<T>): T;
1154
1154
 
1155
+ declare const inputCurrency: (e: React.KeyboardEvent<HTMLInputElement>, value: string, alloweds: string[]) => void;
1156
+
1155
1157
  type NotistackAnchorProps = {
1156
1158
  vertical: 'top' | 'bottom';
1157
1159
  horizontal: 'left' | 'center' | 'right';
@@ -1389,6 +1391,10 @@ declare const Grid: React$1.FC<GridProps>;
1389
1391
  type Option = {
1390
1392
  label: string;
1391
1393
  value: string;
1394
+ disabled?: boolean;
1395
+ ui?: UIProps;
1396
+ style?: React$1.CSSProperties;
1397
+ active?: keyof Theme['colors'];
1392
1398
  };
1393
1399
  type GroupsVariant = 'filled' | 'outlined' | 'text';
1394
1400
  type GroupsType = 'rounded' | 'square';
@@ -1399,6 +1405,7 @@ type GroupProps = {
1399
1405
  variant?: GroupsVariant;
1400
1406
  type?: GroupsType;
1401
1407
  color?: keyof Theme['colors'];
1408
+ exclude?: boolean;
1402
1409
  propsComponent?: {
1403
1410
  group?: {
1404
1411
  ui?: UIProps;
@@ -1408,6 +1415,7 @@ type GroupProps = {
1408
1415
  variant?: GroupsVariant;
1409
1416
  ui?: UIProps;
1410
1417
  style?: React$1.CSSProperties;
1418
+ text?: Omit<TextProps, 'children'>;
1411
1419
  };
1412
1420
  };
1413
1421
  };
@@ -1463,8 +1471,9 @@ declare const Label: React$1.FC<LabelProps>;
1463
1471
  type InputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
1464
1472
  label?: string;
1465
1473
  value?: string;
1466
- type?: 'text' | 'email' | 'phone' | 'number' | 'password' | 'search' | 'date';
1474
+ pattern?: 'text' | 'email' | 'phone' | 'number' | 'password' | 'search' | 'date' | 'currency';
1467
1475
  variant?: ControlVariants;
1476
+ separatorCurrency?: ',' | '.';
1468
1477
  color?: keyof Theme['colors'];
1469
1478
  onChange?: (e: React$1.ChangeEvent<HTMLInputElement>, value: string) => void;
1470
1479
  error?: string | null;
@@ -1480,8 +1489,9 @@ type InputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange'
1480
1489
  declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange"> & {
1481
1490
  label?: string;
1482
1491
  value?: string;
1483
- type?: "text" | "email" | "phone" | "number" | "password" | "search" | "date";
1492
+ pattern?: "text" | "email" | "phone" | "number" | "password" | "search" | "date" | "currency";
1484
1493
  variant?: ControlVariants;
1494
+ separatorCurrency?: "," | ".";
1485
1495
  color?: keyof Theme["colors"];
1486
1496
  onChange?: (e: React$1.ChangeEvent<HTMLInputElement>, value: string) => void;
1487
1497
  error?: string | null;
@@ -1780,4 +1790,4 @@ declare const breakUp: (bp: number) => string;
1780
1790
  declare const breakDown: (bp: number) => string;
1781
1791
  declare function useBreakpoint(queryInput: QueryInput): boolean;
1782
1792
 
1783
- export { Avatar, type AvatarProps, Backdrop, BackdropContext, type BackdropContextType, BackdropProvider, Box, type BoxProps, Button, type ButtonProps, type ButtonVariant, Calendar, type CalendarComponentProps, type CalendarDayProps, type CalendarProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Collapse, type CollapseProps, Container, type ContainerProps, Control, ControlContext, type ControlProps, type ControlVariants, type CountriesDial, Divider, type DividerProps, Drawer, type DrawerProps, Fade, type FadeProps, Flex, type FlexProps, Grid, type GridProps, Group, type GroupProps, type GroupsType, type GroupsVariant, IconClose, IconDown, IconSearch, Image, ImageDropzone, type ImageDropzoneProps, type ImageProps, Input, InputArea, type InputAreaProps, type InputAreaVariant, type InputProps, Label, type LabelProps, Loader, type LoaderProps, Modal, ModalContainer, type ModalContainerProps, type ModalProps, Notistack, type NotistackAnchorProps, NotistackContext, type NotistackContextType, type NotistackProps, NotistackProvider, type Option, Pending, type PendingProps, Phone, type PhoneInputProps, type PlaceData, PlacesAutocomplete, type PropsPlaces, Radio, type RadioVariant, Select, type SelectChangeEvent, type SelectOptionsProps, type SelectProps, type SelectorChangeEvent, type SelectorProps, Slide, type SlideContentProps, type SlideProps, type Snack, Switch, type SwitchProps, Text, type TextProps, type TextVariant, type TextWeight, type Theme, ThemeContext, ThemeProvider, type UIProps, adjustColor, alpha, applyTheme, baseTokens, bem, bemMerge, breakDown, breakUp, breakpoints, composeStyles, createPaletteColor, createTheme, createVariants, cx, darken, getContrast, getCountryCodePhone, getDialPhone, getMonthCalendar, getNumberPhone, hexToRgb, initTheme, isEmpty, lighten, mergeDeep, normalizePhone, rgbToHex, text, times, uiStyle, useBackdrop, useBreakpoint, useBreakpointValue, useClickAway, useControl, useMediaQuery, useNotistack, usePlaces, useTheme };
1793
+ export { Avatar, type AvatarProps, Backdrop, BackdropContext, type BackdropContextType, BackdropProvider, Box, type BoxProps, Button, type ButtonProps, type ButtonVariant, Calendar, type CalendarComponentProps, type CalendarDayProps, type CalendarProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Collapse, type CollapseProps, Container, type ContainerProps, Control, ControlContext, type ControlProps, type ControlVariants, type CountriesDial, Divider, type DividerProps, Drawer, type DrawerProps, Fade, type FadeProps, Flex, type FlexProps, Grid, type GridProps, Group, type GroupProps, type GroupsType, type GroupsVariant, IconClose, IconDown, IconSearch, Image, ImageDropzone, type ImageDropzoneProps, type ImageProps, Input, InputArea, type InputAreaProps, type InputAreaVariant, type InputProps, Label, type LabelProps, Loader, type LoaderProps, Modal, ModalContainer, type ModalContainerProps, type ModalProps, Notistack, type NotistackAnchorProps, NotistackContext, type NotistackContextType, type NotistackProps, NotistackProvider, type Option, Pending, type PendingProps, Phone, type PhoneInputProps, type PlaceData, PlacesAutocomplete, type PropsPlaces, Radio, type RadioVariant, Select, type SelectChangeEvent, type SelectOptionsProps, type SelectProps, type SelectorChangeEvent, type SelectorProps, Slide, type SlideContentProps, type SlideProps, type Snack, Switch, type SwitchProps, Text, type TextProps, type TextVariant, type TextWeight, type Theme, ThemeContext, ThemeProvider, type UIProps, adjustColor, alpha, applyTheme, baseTokens, bem, bemMerge, breakDown, breakUp, breakpoints, composeStyles, createPaletteColor, createTheme, createVariants, cx, darken, getContrast, getCountryCodePhone, getDialPhone, getMonthCalendar, getNumberPhone, hexToRgb, initTheme, inputCurrency, isEmpty, lighten, mergeDeep, normalizePhone, rgbToHex, text, times, uiStyle, useBackdrop, useBreakpoint, useBreakpointValue, useClickAway, useControl, useMediaQuery, useNotistack, usePlaces, useTheme };
package/dist/index.d.ts CHANGED
@@ -1152,6 +1152,8 @@ declare const getNumberPhone: (phone: string, dial: string) => string;
1152
1152
 
1153
1153
  declare function mergeDeep<T>(target: T, source?: Partial<T>): T;
1154
1154
 
1155
+ declare const inputCurrency: (e: React.KeyboardEvent<HTMLInputElement>, value: string, alloweds: string[]) => void;
1156
+
1155
1157
  type NotistackAnchorProps = {
1156
1158
  vertical: 'top' | 'bottom';
1157
1159
  horizontal: 'left' | 'center' | 'right';
@@ -1389,6 +1391,10 @@ declare const Grid: React$1.FC<GridProps>;
1389
1391
  type Option = {
1390
1392
  label: string;
1391
1393
  value: string;
1394
+ disabled?: boolean;
1395
+ ui?: UIProps;
1396
+ style?: React$1.CSSProperties;
1397
+ active?: keyof Theme['colors'];
1392
1398
  };
1393
1399
  type GroupsVariant = 'filled' | 'outlined' | 'text';
1394
1400
  type GroupsType = 'rounded' | 'square';
@@ -1399,6 +1405,7 @@ type GroupProps = {
1399
1405
  variant?: GroupsVariant;
1400
1406
  type?: GroupsType;
1401
1407
  color?: keyof Theme['colors'];
1408
+ exclude?: boolean;
1402
1409
  propsComponent?: {
1403
1410
  group?: {
1404
1411
  ui?: UIProps;
@@ -1408,6 +1415,7 @@ type GroupProps = {
1408
1415
  variant?: GroupsVariant;
1409
1416
  ui?: UIProps;
1410
1417
  style?: React$1.CSSProperties;
1418
+ text?: Omit<TextProps, 'children'>;
1411
1419
  };
1412
1420
  };
1413
1421
  };
@@ -1463,8 +1471,9 @@ declare const Label: React$1.FC<LabelProps>;
1463
1471
  type InputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
1464
1472
  label?: string;
1465
1473
  value?: string;
1466
- type?: 'text' | 'email' | 'phone' | 'number' | 'password' | 'search' | 'date';
1474
+ pattern?: 'text' | 'email' | 'phone' | 'number' | 'password' | 'search' | 'date' | 'currency';
1467
1475
  variant?: ControlVariants;
1476
+ separatorCurrency?: ',' | '.';
1468
1477
  color?: keyof Theme['colors'];
1469
1478
  onChange?: (e: React$1.ChangeEvent<HTMLInputElement>, value: string) => void;
1470
1479
  error?: string | null;
@@ -1480,8 +1489,9 @@ type InputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange'
1480
1489
  declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange"> & {
1481
1490
  label?: string;
1482
1491
  value?: string;
1483
- type?: "text" | "email" | "phone" | "number" | "password" | "search" | "date";
1492
+ pattern?: "text" | "email" | "phone" | "number" | "password" | "search" | "date" | "currency";
1484
1493
  variant?: ControlVariants;
1494
+ separatorCurrency?: "," | ".";
1485
1495
  color?: keyof Theme["colors"];
1486
1496
  onChange?: (e: React$1.ChangeEvent<HTMLInputElement>, value: string) => void;
1487
1497
  error?: string | null;
@@ -1780,4 +1790,4 @@ declare const breakUp: (bp: number) => string;
1780
1790
  declare const breakDown: (bp: number) => string;
1781
1791
  declare function useBreakpoint(queryInput: QueryInput): boolean;
1782
1792
 
1783
- export { Avatar, type AvatarProps, Backdrop, BackdropContext, type BackdropContextType, BackdropProvider, Box, type BoxProps, Button, type ButtonProps, type ButtonVariant, Calendar, type CalendarComponentProps, type CalendarDayProps, type CalendarProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Collapse, type CollapseProps, Container, type ContainerProps, Control, ControlContext, type ControlProps, type ControlVariants, type CountriesDial, Divider, type DividerProps, Drawer, type DrawerProps, Fade, type FadeProps, Flex, type FlexProps, Grid, type GridProps, Group, type GroupProps, type GroupsType, type GroupsVariant, IconClose, IconDown, IconSearch, Image, ImageDropzone, type ImageDropzoneProps, type ImageProps, Input, InputArea, type InputAreaProps, type InputAreaVariant, type InputProps, Label, type LabelProps, Loader, type LoaderProps, Modal, ModalContainer, type ModalContainerProps, type ModalProps, Notistack, type NotistackAnchorProps, NotistackContext, type NotistackContextType, type NotistackProps, NotistackProvider, type Option, Pending, type PendingProps, Phone, type PhoneInputProps, type PlaceData, PlacesAutocomplete, type PropsPlaces, Radio, type RadioVariant, Select, type SelectChangeEvent, type SelectOptionsProps, type SelectProps, type SelectorChangeEvent, type SelectorProps, Slide, type SlideContentProps, type SlideProps, type Snack, Switch, type SwitchProps, Text, type TextProps, type TextVariant, type TextWeight, type Theme, ThemeContext, ThemeProvider, type UIProps, adjustColor, alpha, applyTheme, baseTokens, bem, bemMerge, breakDown, breakUp, breakpoints, composeStyles, createPaletteColor, createTheme, createVariants, cx, darken, getContrast, getCountryCodePhone, getDialPhone, getMonthCalendar, getNumberPhone, hexToRgb, initTheme, isEmpty, lighten, mergeDeep, normalizePhone, rgbToHex, text, times, uiStyle, useBackdrop, useBreakpoint, useBreakpointValue, useClickAway, useControl, useMediaQuery, useNotistack, usePlaces, useTheme };
1793
+ export { Avatar, type AvatarProps, Backdrop, BackdropContext, type BackdropContextType, BackdropProvider, Box, type BoxProps, Button, type ButtonProps, type ButtonVariant, Calendar, type CalendarComponentProps, type CalendarDayProps, type CalendarProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Collapse, type CollapseProps, Container, type ContainerProps, Control, ControlContext, type ControlProps, type ControlVariants, type CountriesDial, Divider, type DividerProps, Drawer, type DrawerProps, Fade, type FadeProps, Flex, type FlexProps, Grid, type GridProps, Group, type GroupProps, type GroupsType, type GroupsVariant, IconClose, IconDown, IconSearch, Image, ImageDropzone, type ImageDropzoneProps, type ImageProps, Input, InputArea, type InputAreaProps, type InputAreaVariant, type InputProps, Label, type LabelProps, Loader, type LoaderProps, Modal, ModalContainer, type ModalContainerProps, type ModalProps, Notistack, type NotistackAnchorProps, NotistackContext, type NotistackContextType, type NotistackProps, NotistackProvider, type Option, Pending, type PendingProps, Phone, type PhoneInputProps, type PlaceData, PlacesAutocomplete, type PropsPlaces, Radio, type RadioVariant, Select, type SelectChangeEvent, type SelectOptionsProps, type SelectProps, type SelectorChangeEvent, type SelectorProps, Slide, type SlideContentProps, type SlideProps, type Snack, Switch, type SwitchProps, Text, type TextProps, type TextVariant, type TextWeight, type Theme, ThemeContext, ThemeProvider, type UIProps, adjustColor, alpha, applyTheme, baseTokens, bem, bemMerge, breakDown, breakUp, breakpoints, composeStyles, createPaletteColor, createTheme, createVariants, cx, darken, getContrast, getCountryCodePhone, getDialPhone, getMonthCalendar, getNumberPhone, hexToRgb, initTheme, inputCurrency, isEmpty, lighten, mergeDeep, normalizePhone, rgbToHex, text, times, uiStyle, useBackdrop, useBreakpoint, useBreakpointValue, useClickAway, useControl, useMediaQuery, useNotistack, usePlaces, useTheme };