@yr3/ui 1.0.13 → 1.0.15
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/components/Avatar/avatar.css +14 -2
- package/dist/components/Avatar/avatar.css.map +1 -1
- package/dist/components/Backdrop/backdrop.css +1 -1
- package/dist/components/Button/buttons.css +7 -4
- package/dist/components/Button/buttons.css.map +1 -1
- package/dist/components/Checkbox/checkbox.css +55 -31
- package/dist/components/Checkbox/checkbox.css.map +1 -1
- package/dist/components/Chip/chip.css +9 -0
- package/dist/components/Chip/chip.css.map +1 -1
- package/dist/components/Control/control.css +12 -0
- package/dist/components/Control/control.css.map +1 -1
- package/dist/components/Divider/divider.css +4 -0
- package/dist/components/Divider/divider.css.map +1 -1
- package/dist/components/Group/group.css +26 -18
- package/dist/components/Group/group.css.map +1 -1
- package/dist/components/Input/input.css +5 -1
- package/dist/components/Input/input.css.map +1 -1
- package/dist/components/InputArea/inputArea.css +5 -0
- package/dist/components/InputArea/inputArea.css.map +1 -1
- package/dist/components/Label/label.css +4 -0
- package/dist/components/Label/label.css.map +1 -1
- package/dist/components/Loader/loader.css +112 -0
- package/dist/components/Loader/loader.css.map +1 -0
- package/dist/components/Notistack/notistack.css +5 -0
- package/dist/components/Notistack/notistack.css.map +1 -1
- package/dist/components/Pending/pending.css +4 -0
- package/dist/components/Pending/pending.css.map +1 -1
- package/dist/components/Radio/radio.css +5 -0
- package/dist/components/Radio/radio.css.map +1 -1
- package/dist/components/Select/select.css +44 -0
- package/dist/components/Select/select.css.map +1 -1
- package/dist/components/Switch/switch.css +28 -0
- package/dist/components/Switch/switch.css.map +1 -1
- package/dist/components/Text/text.css +9 -1
- package/dist/components/Text/text.css.map +1 -1
- package/dist/index.cjs +530 -246
- package/dist/index.d.cts +74 -12
- package/dist/index.d.ts +74 -12
- package/dist/index.js +523 -246
- package/dist/styles/global.css +5 -0
- package/dist/styles/global.css.map +1 -1
- package/dist/styles/index.css +352 -58
- package/dist/styles/index.css.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -95,6 +95,11 @@ type Theme = {
|
|
|
95
95
|
primary: string;
|
|
96
96
|
secondary: string;
|
|
97
97
|
};
|
|
98
|
+
backdrop?: string;
|
|
99
|
+
common?: {
|
|
100
|
+
white: string;
|
|
101
|
+
black: string;
|
|
102
|
+
};
|
|
98
103
|
};
|
|
99
104
|
breakpoints: typeof breakpoints;
|
|
100
105
|
text: typeof text;
|
|
@@ -981,7 +986,7 @@ declare const composeStyles: (ui?: UIProps, style?: React.CSSProperties) => {
|
|
|
981
986
|
|
|
982
987
|
type AvatarProps = {
|
|
983
988
|
label?: string;
|
|
984
|
-
variant?: 'circle' | 'square' | 'rounded';
|
|
989
|
+
variant?: 'circle' | 'square' | 'rounded' | 'bordered';
|
|
985
990
|
src?: string;
|
|
986
991
|
alt?: string;
|
|
987
992
|
children?: React$1.ReactNode;
|
|
@@ -1042,8 +1047,8 @@ declare const Button: React$1.FC<ButtonProps>;
|
|
|
1042
1047
|
|
|
1043
1048
|
type BackdropContextType = {
|
|
1044
1049
|
open: boolean;
|
|
1045
|
-
show: () => void;
|
|
1046
|
-
hide: () => void;
|
|
1050
|
+
show: (id: string) => void;
|
|
1051
|
+
hide: (id: string | null) => void;
|
|
1047
1052
|
};
|
|
1048
1053
|
declare const BackdropContext: React$1.Context<BackdropContextType | null>;
|
|
1049
1054
|
declare const BackdropProvider: ({ children }: any) => react_jsx_runtime.JSX.Element;
|
|
@@ -1108,9 +1113,18 @@ type CalendarComponentProps = {
|
|
|
1108
1113
|
};
|
|
1109
1114
|
declare function getMonthCalendar(year: number, month: number, startIndex: number, selected: CalendarDayProps, props?: any): CalendarComponentProps;
|
|
1110
1115
|
|
|
1116
|
+
declare const rgbToHex: (r: number, g: number, b: number) => string;
|
|
1117
|
+
declare const hexToRgb: (hex: string) => {
|
|
1118
|
+
r: number;
|
|
1119
|
+
g: number;
|
|
1120
|
+
b: number;
|
|
1121
|
+
};
|
|
1111
1122
|
declare const adjustColor: (hex: string, amount: number) => string;
|
|
1112
1123
|
declare const getContrast: (hex: string) => "#000000" | "#ffffff";
|
|
1113
1124
|
declare const createPaletteColor: (main: string) => PaletteColor;
|
|
1125
|
+
declare const lighten: (hex: string, amount: number) => string;
|
|
1126
|
+
declare const darken: (hex: string, amount: number) => string;
|
|
1127
|
+
declare const alpha: (hex: string, opacity: number) => string;
|
|
1114
1128
|
|
|
1115
1129
|
declare function isEmpty(value: unknown): boolean;
|
|
1116
1130
|
declare function times<T>(n: number, iteratee: (index: number) => T): T[];
|
|
@@ -1136,6 +1150,8 @@ declare const getDialPhone: (phone: string, countries: CountriesDial[]) => strin
|
|
|
1136
1150
|
declare const getCountryCodePhone: (phone: string, countries: CountriesDial[]) => string | null;
|
|
1137
1151
|
declare const getNumberPhone: (phone: string, dial: string) => string;
|
|
1138
1152
|
|
|
1153
|
+
declare function mergeDeep<T>(target: T, source?: Partial<T>): T;
|
|
1154
|
+
|
|
1139
1155
|
type NotistackAnchorProps = {
|
|
1140
1156
|
vertical: 'top' | 'bottom';
|
|
1141
1157
|
horizontal: 'left' | 'center' | 'right';
|
|
@@ -1227,6 +1243,7 @@ type CheckboxProps = {
|
|
|
1227
1243
|
onChange?: (e: React$1.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
1228
1244
|
label?: string;
|
|
1229
1245
|
variant?: 'filled' | 'outlined' | 'text';
|
|
1246
|
+
type?: 'default' | 'circle';
|
|
1230
1247
|
color?: keyof Theme['colors'];
|
|
1231
1248
|
disabled?: boolean;
|
|
1232
1249
|
propsComponent?: {
|
|
@@ -1249,9 +1266,23 @@ type ChipProps = {
|
|
|
1249
1266
|
size?: 'small' | 'medium' | 'large';
|
|
1250
1267
|
onClick?: (e: React$1.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
1251
1268
|
icon?: React$1.ReactNode;
|
|
1269
|
+
deleted?: boolean;
|
|
1252
1270
|
onDelete?: (e: React$1.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
1253
|
-
|
|
1254
|
-
|
|
1271
|
+
propsComponent?: {
|
|
1272
|
+
chip?: {
|
|
1273
|
+
ui?: UIProps;
|
|
1274
|
+
style?: React$1.CSSProperties;
|
|
1275
|
+
};
|
|
1276
|
+
label?: {
|
|
1277
|
+
ui?: UIProps;
|
|
1278
|
+
style?: React$1.CSSProperties;
|
|
1279
|
+
};
|
|
1280
|
+
delete?: {
|
|
1281
|
+
ui?: UIProps;
|
|
1282
|
+
style?: React$1.CSSProperties;
|
|
1283
|
+
};
|
|
1284
|
+
icon?: IconProps;
|
|
1285
|
+
};
|
|
1255
1286
|
};
|
|
1256
1287
|
declare const Chip: React$1.FC<ChipProps>;
|
|
1257
1288
|
|
|
@@ -1360,11 +1391,13 @@ type Option = {
|
|
|
1360
1391
|
value: string;
|
|
1361
1392
|
};
|
|
1362
1393
|
type GroupsVariant = 'filled' | 'outlined' | 'text';
|
|
1394
|
+
type GroupsType = 'rounded' | 'square';
|
|
1363
1395
|
type GroupProps = {
|
|
1364
1396
|
options: Option[];
|
|
1365
1397
|
value?: string | string[];
|
|
1366
1398
|
onChange?: (value: any) => void;
|
|
1367
1399
|
variant?: GroupsVariant;
|
|
1400
|
+
type?: GroupsType;
|
|
1368
1401
|
color?: keyof Theme['colors'];
|
|
1369
1402
|
propsComponent?: {
|
|
1370
1403
|
group?: {
|
|
@@ -1388,12 +1421,10 @@ type ImageProps = {
|
|
|
1388
1421
|
};
|
|
1389
1422
|
declare const Image: React$1.FC<ImageProps>;
|
|
1390
1423
|
|
|
1391
|
-
type
|
|
1424
|
+
type ImageDropzoneProps = {
|
|
1392
1425
|
onChange?: (files: File[]) => void;
|
|
1393
1426
|
multiple?: boolean;
|
|
1394
|
-
ui?: UIProps;
|
|
1395
1427
|
bordered?: boolean;
|
|
1396
|
-
style?: React$1.CSSProperties;
|
|
1397
1428
|
component?: React$1.ReactNode;
|
|
1398
1429
|
defaultImage?: string;
|
|
1399
1430
|
variant?: 'base' | 'outlined';
|
|
@@ -1402,9 +1433,21 @@ type Props = {
|
|
|
1402
1433
|
text?: Omit<TextProps, 'children' | 'as'> & {
|
|
1403
1434
|
primary?: string;
|
|
1404
1435
|
};
|
|
1436
|
+
container?: {
|
|
1437
|
+
ui?: UIProps;
|
|
1438
|
+
style?: React$1.CSSProperties;
|
|
1439
|
+
};
|
|
1440
|
+
preview?: {
|
|
1441
|
+
ui?: UIProps;
|
|
1442
|
+
style?: React$1.CSSProperties;
|
|
1443
|
+
};
|
|
1444
|
+
content?: {
|
|
1445
|
+
ui?: UIProps;
|
|
1446
|
+
style?: React$1.CSSProperties;
|
|
1447
|
+
};
|
|
1405
1448
|
};
|
|
1406
1449
|
};
|
|
1407
|
-
declare const ImageDropzone: React$1.FC<
|
|
1450
|
+
declare const ImageDropzone: React$1.FC<ImageDropzoneProps>;
|
|
1408
1451
|
|
|
1409
1452
|
type LabelProps = {
|
|
1410
1453
|
display?: boolean;
|
|
@@ -1420,7 +1463,7 @@ declare const Label: React$1.FC<LabelProps>;
|
|
|
1420
1463
|
type InputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
|
|
1421
1464
|
label?: string;
|
|
1422
1465
|
value?: string;
|
|
1423
|
-
type?: 'text' | 'email' | 'phone' | 'number' | 'password' | 'search';
|
|
1466
|
+
type?: 'text' | 'email' | 'phone' | 'number' | 'password' | 'search' | 'date';
|
|
1424
1467
|
variant?: ControlVariants;
|
|
1425
1468
|
color?: keyof Theme['colors'];
|
|
1426
1469
|
onChange?: (e: React$1.ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
@@ -1437,7 +1480,7 @@ type InputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange'
|
|
|
1437
1480
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange"> & {
|
|
1438
1481
|
label?: string;
|
|
1439
1482
|
value?: string;
|
|
1440
|
-
type?: "text" | "email" | "phone" | "number" | "password" | "search";
|
|
1483
|
+
type?: "text" | "email" | "phone" | "number" | "password" | "search" | "date";
|
|
1441
1484
|
variant?: ControlVariants;
|
|
1442
1485
|
color?: keyof Theme["colors"];
|
|
1443
1486
|
onChange?: (e: React$1.ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
@@ -1475,6 +1518,24 @@ type InputAreaProps = {
|
|
|
1475
1518
|
};
|
|
1476
1519
|
declare const InputArea: React$1.FC<InputAreaProps>;
|
|
1477
1520
|
|
|
1521
|
+
type LoaderProps = {
|
|
1522
|
+
component?: React$1.ReactNode;
|
|
1523
|
+
loading?: boolean;
|
|
1524
|
+
propsComponent?: {
|
|
1525
|
+
loader?: {
|
|
1526
|
+
ui?: UIProps;
|
|
1527
|
+
style?: React$1.CSSProperties;
|
|
1528
|
+
};
|
|
1529
|
+
spinner?: {
|
|
1530
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1531
|
+
color?: keyof Theme['colors'];
|
|
1532
|
+
type: 'default' | 'dots' | 'fancy';
|
|
1533
|
+
};
|
|
1534
|
+
container?: Omit<FlexProps, 'children'>;
|
|
1535
|
+
};
|
|
1536
|
+
};
|
|
1537
|
+
declare const Loader: React$1.FC<LoaderProps>;
|
|
1538
|
+
|
|
1478
1539
|
type ModalContainerProps = {
|
|
1479
1540
|
children?: React$1.ReactNode;
|
|
1480
1541
|
size?: 'sm' | 'md' | 'lg';
|
|
@@ -1639,6 +1700,7 @@ type SelectProps = {
|
|
|
1639
1700
|
icon?: {
|
|
1640
1701
|
style?: React$1.CSSProperties;
|
|
1641
1702
|
component?: React$1.ReactNode;
|
|
1703
|
+
color?: keyof Theme['colors'];
|
|
1642
1704
|
};
|
|
1643
1705
|
label?: Omit<LabelProps, 'text'>;
|
|
1644
1706
|
menu?: {
|
|
@@ -1718,4 +1780,4 @@ declare const breakUp: (bp: number) => string;
|
|
|
1718
1780
|
declare const breakDown: (bp: number) => string;
|
|
1719
1781
|
declare function useBreakpoint(queryInput: QueryInput): boolean;
|
|
1720
1782
|
|
|
1721
|
-
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 GroupsVariant, IconClose, IconDown, IconSearch, Image, ImageDropzone, type ImageProps, Input, InputArea, type InputAreaProps, type InputAreaVariant, type InputProps, Label, type LabelProps, 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, applyTheme, baseTokens, bem, bemMerge, breakDown, breakUp, breakpoints, composeStyles, createPaletteColor, createTheme, createVariants, cx, getContrast, getCountryCodePhone, getDialPhone, getMonthCalendar, getNumberPhone, initTheme, isEmpty, normalizePhone, text, times, uiStyle, useBackdrop, useBreakpoint, useBreakpointValue, useClickAway, useControl, useMediaQuery, useNotistack, usePlaces, useTheme };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -95,6 +95,11 @@ type Theme = {
|
|
|
95
95
|
primary: string;
|
|
96
96
|
secondary: string;
|
|
97
97
|
};
|
|
98
|
+
backdrop?: string;
|
|
99
|
+
common?: {
|
|
100
|
+
white: string;
|
|
101
|
+
black: string;
|
|
102
|
+
};
|
|
98
103
|
};
|
|
99
104
|
breakpoints: typeof breakpoints;
|
|
100
105
|
text: typeof text;
|
|
@@ -981,7 +986,7 @@ declare const composeStyles: (ui?: UIProps, style?: React.CSSProperties) => {
|
|
|
981
986
|
|
|
982
987
|
type AvatarProps = {
|
|
983
988
|
label?: string;
|
|
984
|
-
variant?: 'circle' | 'square' | 'rounded';
|
|
989
|
+
variant?: 'circle' | 'square' | 'rounded' | 'bordered';
|
|
985
990
|
src?: string;
|
|
986
991
|
alt?: string;
|
|
987
992
|
children?: React$1.ReactNode;
|
|
@@ -1042,8 +1047,8 @@ declare const Button: React$1.FC<ButtonProps>;
|
|
|
1042
1047
|
|
|
1043
1048
|
type BackdropContextType = {
|
|
1044
1049
|
open: boolean;
|
|
1045
|
-
show: () => void;
|
|
1046
|
-
hide: () => void;
|
|
1050
|
+
show: (id: string) => void;
|
|
1051
|
+
hide: (id: string | null) => void;
|
|
1047
1052
|
};
|
|
1048
1053
|
declare const BackdropContext: React$1.Context<BackdropContextType | null>;
|
|
1049
1054
|
declare const BackdropProvider: ({ children }: any) => react_jsx_runtime.JSX.Element;
|
|
@@ -1108,9 +1113,18 @@ type CalendarComponentProps = {
|
|
|
1108
1113
|
};
|
|
1109
1114
|
declare function getMonthCalendar(year: number, month: number, startIndex: number, selected: CalendarDayProps, props?: any): CalendarComponentProps;
|
|
1110
1115
|
|
|
1116
|
+
declare const rgbToHex: (r: number, g: number, b: number) => string;
|
|
1117
|
+
declare const hexToRgb: (hex: string) => {
|
|
1118
|
+
r: number;
|
|
1119
|
+
g: number;
|
|
1120
|
+
b: number;
|
|
1121
|
+
};
|
|
1111
1122
|
declare const adjustColor: (hex: string, amount: number) => string;
|
|
1112
1123
|
declare const getContrast: (hex: string) => "#000000" | "#ffffff";
|
|
1113
1124
|
declare const createPaletteColor: (main: string) => PaletteColor;
|
|
1125
|
+
declare const lighten: (hex: string, amount: number) => string;
|
|
1126
|
+
declare const darken: (hex: string, amount: number) => string;
|
|
1127
|
+
declare const alpha: (hex: string, opacity: number) => string;
|
|
1114
1128
|
|
|
1115
1129
|
declare function isEmpty(value: unknown): boolean;
|
|
1116
1130
|
declare function times<T>(n: number, iteratee: (index: number) => T): T[];
|
|
@@ -1136,6 +1150,8 @@ declare const getDialPhone: (phone: string, countries: CountriesDial[]) => strin
|
|
|
1136
1150
|
declare const getCountryCodePhone: (phone: string, countries: CountriesDial[]) => string | null;
|
|
1137
1151
|
declare const getNumberPhone: (phone: string, dial: string) => string;
|
|
1138
1152
|
|
|
1153
|
+
declare function mergeDeep<T>(target: T, source?: Partial<T>): T;
|
|
1154
|
+
|
|
1139
1155
|
type NotistackAnchorProps = {
|
|
1140
1156
|
vertical: 'top' | 'bottom';
|
|
1141
1157
|
horizontal: 'left' | 'center' | 'right';
|
|
@@ -1227,6 +1243,7 @@ type CheckboxProps = {
|
|
|
1227
1243
|
onChange?: (e: React$1.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
1228
1244
|
label?: string;
|
|
1229
1245
|
variant?: 'filled' | 'outlined' | 'text';
|
|
1246
|
+
type?: 'default' | 'circle';
|
|
1230
1247
|
color?: keyof Theme['colors'];
|
|
1231
1248
|
disabled?: boolean;
|
|
1232
1249
|
propsComponent?: {
|
|
@@ -1249,9 +1266,23 @@ type ChipProps = {
|
|
|
1249
1266
|
size?: 'small' | 'medium' | 'large';
|
|
1250
1267
|
onClick?: (e: React$1.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
1251
1268
|
icon?: React$1.ReactNode;
|
|
1269
|
+
deleted?: boolean;
|
|
1252
1270
|
onDelete?: (e: React$1.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
1253
|
-
|
|
1254
|
-
|
|
1271
|
+
propsComponent?: {
|
|
1272
|
+
chip?: {
|
|
1273
|
+
ui?: UIProps;
|
|
1274
|
+
style?: React$1.CSSProperties;
|
|
1275
|
+
};
|
|
1276
|
+
label?: {
|
|
1277
|
+
ui?: UIProps;
|
|
1278
|
+
style?: React$1.CSSProperties;
|
|
1279
|
+
};
|
|
1280
|
+
delete?: {
|
|
1281
|
+
ui?: UIProps;
|
|
1282
|
+
style?: React$1.CSSProperties;
|
|
1283
|
+
};
|
|
1284
|
+
icon?: IconProps;
|
|
1285
|
+
};
|
|
1255
1286
|
};
|
|
1256
1287
|
declare const Chip: React$1.FC<ChipProps>;
|
|
1257
1288
|
|
|
@@ -1360,11 +1391,13 @@ type Option = {
|
|
|
1360
1391
|
value: string;
|
|
1361
1392
|
};
|
|
1362
1393
|
type GroupsVariant = 'filled' | 'outlined' | 'text';
|
|
1394
|
+
type GroupsType = 'rounded' | 'square';
|
|
1363
1395
|
type GroupProps = {
|
|
1364
1396
|
options: Option[];
|
|
1365
1397
|
value?: string | string[];
|
|
1366
1398
|
onChange?: (value: any) => void;
|
|
1367
1399
|
variant?: GroupsVariant;
|
|
1400
|
+
type?: GroupsType;
|
|
1368
1401
|
color?: keyof Theme['colors'];
|
|
1369
1402
|
propsComponent?: {
|
|
1370
1403
|
group?: {
|
|
@@ -1388,12 +1421,10 @@ type ImageProps = {
|
|
|
1388
1421
|
};
|
|
1389
1422
|
declare const Image: React$1.FC<ImageProps>;
|
|
1390
1423
|
|
|
1391
|
-
type
|
|
1424
|
+
type ImageDropzoneProps = {
|
|
1392
1425
|
onChange?: (files: File[]) => void;
|
|
1393
1426
|
multiple?: boolean;
|
|
1394
|
-
ui?: UIProps;
|
|
1395
1427
|
bordered?: boolean;
|
|
1396
|
-
style?: React$1.CSSProperties;
|
|
1397
1428
|
component?: React$1.ReactNode;
|
|
1398
1429
|
defaultImage?: string;
|
|
1399
1430
|
variant?: 'base' | 'outlined';
|
|
@@ -1402,9 +1433,21 @@ type Props = {
|
|
|
1402
1433
|
text?: Omit<TextProps, 'children' | 'as'> & {
|
|
1403
1434
|
primary?: string;
|
|
1404
1435
|
};
|
|
1436
|
+
container?: {
|
|
1437
|
+
ui?: UIProps;
|
|
1438
|
+
style?: React$1.CSSProperties;
|
|
1439
|
+
};
|
|
1440
|
+
preview?: {
|
|
1441
|
+
ui?: UIProps;
|
|
1442
|
+
style?: React$1.CSSProperties;
|
|
1443
|
+
};
|
|
1444
|
+
content?: {
|
|
1445
|
+
ui?: UIProps;
|
|
1446
|
+
style?: React$1.CSSProperties;
|
|
1447
|
+
};
|
|
1405
1448
|
};
|
|
1406
1449
|
};
|
|
1407
|
-
declare const ImageDropzone: React$1.FC<
|
|
1450
|
+
declare const ImageDropzone: React$1.FC<ImageDropzoneProps>;
|
|
1408
1451
|
|
|
1409
1452
|
type LabelProps = {
|
|
1410
1453
|
display?: boolean;
|
|
@@ -1420,7 +1463,7 @@ declare const Label: React$1.FC<LabelProps>;
|
|
|
1420
1463
|
type InputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
|
|
1421
1464
|
label?: string;
|
|
1422
1465
|
value?: string;
|
|
1423
|
-
type?: 'text' | 'email' | 'phone' | 'number' | 'password' | 'search';
|
|
1466
|
+
type?: 'text' | 'email' | 'phone' | 'number' | 'password' | 'search' | 'date';
|
|
1424
1467
|
variant?: ControlVariants;
|
|
1425
1468
|
color?: keyof Theme['colors'];
|
|
1426
1469
|
onChange?: (e: React$1.ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
@@ -1437,7 +1480,7 @@ type InputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange'
|
|
|
1437
1480
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange"> & {
|
|
1438
1481
|
label?: string;
|
|
1439
1482
|
value?: string;
|
|
1440
|
-
type?: "text" | "email" | "phone" | "number" | "password" | "search";
|
|
1483
|
+
type?: "text" | "email" | "phone" | "number" | "password" | "search" | "date";
|
|
1441
1484
|
variant?: ControlVariants;
|
|
1442
1485
|
color?: keyof Theme["colors"];
|
|
1443
1486
|
onChange?: (e: React$1.ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
@@ -1475,6 +1518,24 @@ type InputAreaProps = {
|
|
|
1475
1518
|
};
|
|
1476
1519
|
declare const InputArea: React$1.FC<InputAreaProps>;
|
|
1477
1520
|
|
|
1521
|
+
type LoaderProps = {
|
|
1522
|
+
component?: React$1.ReactNode;
|
|
1523
|
+
loading?: boolean;
|
|
1524
|
+
propsComponent?: {
|
|
1525
|
+
loader?: {
|
|
1526
|
+
ui?: UIProps;
|
|
1527
|
+
style?: React$1.CSSProperties;
|
|
1528
|
+
};
|
|
1529
|
+
spinner?: {
|
|
1530
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1531
|
+
color?: keyof Theme['colors'];
|
|
1532
|
+
type: 'default' | 'dots' | 'fancy';
|
|
1533
|
+
};
|
|
1534
|
+
container?: Omit<FlexProps, 'children'>;
|
|
1535
|
+
};
|
|
1536
|
+
};
|
|
1537
|
+
declare const Loader: React$1.FC<LoaderProps>;
|
|
1538
|
+
|
|
1478
1539
|
type ModalContainerProps = {
|
|
1479
1540
|
children?: React$1.ReactNode;
|
|
1480
1541
|
size?: 'sm' | 'md' | 'lg';
|
|
@@ -1639,6 +1700,7 @@ type SelectProps = {
|
|
|
1639
1700
|
icon?: {
|
|
1640
1701
|
style?: React$1.CSSProperties;
|
|
1641
1702
|
component?: React$1.ReactNode;
|
|
1703
|
+
color?: keyof Theme['colors'];
|
|
1642
1704
|
};
|
|
1643
1705
|
label?: Omit<LabelProps, 'text'>;
|
|
1644
1706
|
menu?: {
|
|
@@ -1718,4 +1780,4 @@ declare const breakUp: (bp: number) => string;
|
|
|
1718
1780
|
declare const breakDown: (bp: number) => string;
|
|
1719
1781
|
declare function useBreakpoint(queryInput: QueryInput): boolean;
|
|
1720
1782
|
|
|
1721
|
-
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 GroupsVariant, IconClose, IconDown, IconSearch, Image, ImageDropzone, type ImageProps, Input, InputArea, type InputAreaProps, type InputAreaVariant, type InputProps, Label, type LabelProps, 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, applyTheme, baseTokens, bem, bemMerge, breakDown, breakUp, breakpoints, composeStyles, createPaletteColor, createTheme, createVariants, cx, getContrast, getCountryCodePhone, getDialPhone, getMonthCalendar, getNumberPhone, initTheme, isEmpty, normalizePhone, text, times, uiStyle, useBackdrop, useBreakpoint, useBreakpointValue, useClickAway, useControl, useMediaQuery, useNotistack, usePlaces, useTheme };
|
|
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 };
|