@yr3/ui 1.0.24 → 1.1.1
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/README.md +25 -2
- package/dist/components/Button/buttons.css +2 -0
- package/dist/components/Button/buttons.css.map +1 -1
- package/dist/components/Calendar/calendar.css +0 -2
- package/dist/components/Calendar/calendar.css.map +1 -1
- package/dist/components/Control/control.css +2 -0
- package/dist/components/Control/control.css.map +1 -1
- package/dist/components/Date/month.css +20 -10
- package/dist/components/Date/month.css.map +1 -1
- package/dist/components/Loader/loader.css +5 -0
- package/dist/components/Loader/loader.css.map +1 -1
- package/dist/index.cjs +2415 -432
- package/dist/index.d.cts +775 -89
- package/dist/index.d.ts +775 -89
- package/dist/index.js +2428 -441
- package/dist/styles/index.css +29 -12
- package/dist/styles/index.css.map +1 -1
- package/package.json +2 -4
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import * as csstype from 'csstype';
|
|
|
4
4
|
import * as _yr3_autocomplete_places from '@yr3/autocomplete-places';
|
|
5
5
|
import { Place, Provider } from '@yr3/autocomplete-places';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import { Dayjs } from 'dayjs';
|
|
8
7
|
|
|
9
8
|
type IconProps = SVGProps<SVGSVGElement>;
|
|
10
9
|
type PaletteColor = {
|
|
@@ -1016,36 +1015,6 @@ type BoxProps = {
|
|
|
1016
1015
|
};
|
|
1017
1016
|
declare const Box: React$1.FC<BoxProps>;
|
|
1018
1017
|
|
|
1019
|
-
type TextVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'title' | 'subtitle' | 'body1' | 'body2' | 'caption' | 'button' | 'helper' | 'inherit' | 'code';
|
|
1020
|
-
type TextWeight = 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'black' | 'thin';
|
|
1021
|
-
type TextProps = {
|
|
1022
|
-
children?: React$1.ReactNode;
|
|
1023
|
-
variant?: TextVariant;
|
|
1024
|
-
color?: keyof Theme['colors'];
|
|
1025
|
-
weight?: TextWeight;
|
|
1026
|
-
as?: keyof React$1.JSX.IntrinsicElements;
|
|
1027
|
-
gutters?: number[];
|
|
1028
|
-
ui?: UIProps;
|
|
1029
|
-
style?: React$1.CSSProperties;
|
|
1030
|
-
onClick?: () => void;
|
|
1031
|
-
};
|
|
1032
|
-
declare const Text: React$1.FC<TextProps>;
|
|
1033
|
-
|
|
1034
|
-
type ButtonVariant = 'outlined' | 'filled' | 'text';
|
|
1035
|
-
type ButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1036
|
-
variant?: ButtonVariant;
|
|
1037
|
-
color?: keyof Theme['colors'];
|
|
1038
|
-
animated?: boolean;
|
|
1039
|
-
gradientBorder?: boolean;
|
|
1040
|
-
ui?: UIProps;
|
|
1041
|
-
size?: 'auto' | 'full';
|
|
1042
|
-
icon?: React$1.ReactNode;
|
|
1043
|
-
propsComponent?: {
|
|
1044
|
-
text?: Omit<TextProps, 'children'>;
|
|
1045
|
-
};
|
|
1046
|
-
};
|
|
1047
|
-
declare const Button: React$1.FC<ButtonProps>;
|
|
1048
|
-
|
|
1049
1018
|
type BackdropContextType = {
|
|
1050
1019
|
open: boolean;
|
|
1051
1020
|
show: (id: string) => void;
|
|
@@ -1088,9 +1057,447 @@ declare const baseTokens: {
|
|
|
1088
1057
|
declare const bem: (block: string) => (element?: string, modifiers?: Record<string, any>) => string;
|
|
1089
1058
|
declare const bemMerge: (...args: any[]) => string;
|
|
1090
1059
|
|
|
1060
|
+
type DTX = Date | string | number;
|
|
1061
|
+
type DTXFormat = {
|
|
1062
|
+
locale?: string;
|
|
1063
|
+
days?: string[];
|
|
1064
|
+
options?: Intl.DateTimeFormatOptions;
|
|
1065
|
+
};
|
|
1066
|
+
declare const date: (value?: DTX, dateFormat?: DTXFormat) => {
|
|
1067
|
+
date: Date;
|
|
1068
|
+
month: number;
|
|
1069
|
+
parts: Intl.DateTimeFormatPart[];
|
|
1070
|
+
getDateSplit: (value: string) => {
|
|
1071
|
+
year: number;
|
|
1072
|
+
month: number;
|
|
1073
|
+
} | null;
|
|
1074
|
+
getMonth: () => number;
|
|
1075
|
+
getMonthFormat: (month: number) => string;
|
|
1076
|
+
getMonthsFormat: () => string[];
|
|
1077
|
+
setMonth: (month: number) => Date;
|
|
1078
|
+
addMonth: (month: number) => Date;
|
|
1079
|
+
subtractMonth: (month: number) => Date;
|
|
1080
|
+
diferenceMonths: (date: Date) => number;
|
|
1081
|
+
isSameMonth: (date2: Date) => boolean;
|
|
1082
|
+
setYear: (year: number) => Date;
|
|
1083
|
+
getUTCYear: () => number;
|
|
1084
|
+
addYears: (year: number) => Date;
|
|
1085
|
+
subtractYears: (year: number) => Date;
|
|
1086
|
+
diferenceYears: (date: Date) => number;
|
|
1087
|
+
isSameYear: (date2: Date) => boolean;
|
|
1088
|
+
setDay: (day: number) => Date;
|
|
1089
|
+
addDays: (days: number) => Date;
|
|
1090
|
+
getDay: () => number;
|
|
1091
|
+
subtractDays: (days: number) => Date;
|
|
1092
|
+
diferenceDays: (date: Date) => number;
|
|
1093
|
+
isSameDay: (date2: Date) => boolean;
|
|
1094
|
+
addHours: (hours: number) => Date;
|
|
1095
|
+
setHours: (hours: number) => Date;
|
|
1096
|
+
getHours: () => number;
|
|
1097
|
+
subtractHours: (hours: number) => Date;
|
|
1098
|
+
diferenceHours: (date: Date) => number;
|
|
1099
|
+
addMinutes: (minutes: number) => Date;
|
|
1100
|
+
setMinutes: (minutes: number) => Date;
|
|
1101
|
+
getMinutes: () => number;
|
|
1102
|
+
subtractMinutes: (minutes: number) => Date;
|
|
1103
|
+
diferenceMinutes: (date: Date) => number;
|
|
1104
|
+
addSeconds: (seconds: number) => Date;
|
|
1105
|
+
setSeconds: (seconds: number) => Date;
|
|
1106
|
+
getSeconds: () => number;
|
|
1107
|
+
subtractSeconds: (seconds: number) => Date;
|
|
1108
|
+
diferenceSeconds: (date: Date) => number;
|
|
1109
|
+
isToday: () => boolean;
|
|
1110
|
+
isAfter: (date: Date) => boolean;
|
|
1111
|
+
isBefore: (date: Date) => boolean;
|
|
1112
|
+
formatLastMonth: () => string;
|
|
1113
|
+
formatPrevMonth: () => string;
|
|
1114
|
+
getDaysInYear: () => number;
|
|
1115
|
+
getDaysInMonth: () => number;
|
|
1116
|
+
getDayOfWeek: () => number;
|
|
1117
|
+
getDayOfYear: () => number;
|
|
1118
|
+
getWeekOfYear: () => number;
|
|
1119
|
+
getStartOfDay: () => Date;
|
|
1120
|
+
getEndOfDay: () => Date;
|
|
1121
|
+
getStartOfMonth: () => Date;
|
|
1122
|
+
getEndOfMonth: () => Date;
|
|
1123
|
+
getStartOfYear: () => Date;
|
|
1124
|
+
getEndOfYear: () => Date;
|
|
1125
|
+
isLeapYear: () => boolean;
|
|
1126
|
+
isWeekend: () => boolean;
|
|
1127
|
+
isTomorrow: () => boolean;
|
|
1128
|
+
formatDateWithLocale: (locale: string, options?: Intl.DateTimeFormatOptions) => string;
|
|
1129
|
+
formatTimeWithLocale: (locale: string, options?: Intl.DateTimeFormatOptions) => string;
|
|
1130
|
+
formatDateTimeWithLocale: (locale: string, options?: Intl.DateTimeFormatOptions) => string;
|
|
1131
|
+
getDayOfWeekWithLocale: (locale: string) => string;
|
|
1132
|
+
getMonthNameWithLocale: (locale: string) => string;
|
|
1133
|
+
getYearWithLocale: (locale: string) => string;
|
|
1134
|
+
getHourWithLocale: (locale: string) => string;
|
|
1135
|
+
getMinuteWithLocale: (locale: string) => string;
|
|
1136
|
+
getSecondWithLocale: (locale: string) => string;
|
|
1137
|
+
getDayOfYearWithLocale: (locale: string) => string;
|
|
1138
|
+
getTimezoneOffset: () => number;
|
|
1139
|
+
convertToTimezone: (timezone: string) => Date;
|
|
1140
|
+
toDate(): Date;
|
|
1141
|
+
Timestamp(): number;
|
|
1142
|
+
ISO: () => string;
|
|
1143
|
+
UNIX(): number;
|
|
1144
|
+
UTC(): Date;
|
|
1145
|
+
UTCHours(): number;
|
|
1146
|
+
UTCMinutes(): number;
|
|
1147
|
+
UTCSeconds(): number;
|
|
1148
|
+
UTCMilliseconds(): number;
|
|
1149
|
+
UTCWeekendDay(): number;
|
|
1150
|
+
UTCDay(): number;
|
|
1151
|
+
UTCMonth(): number;
|
|
1152
|
+
UTCFullYear(): number;
|
|
1153
|
+
};
|
|
1154
|
+
declare const dtx: (value?: DTX, dateFormat?: DTXFormat) => {
|
|
1155
|
+
date: Date;
|
|
1156
|
+
isToday(): boolean;
|
|
1157
|
+
isAfter(other: DTX): boolean;
|
|
1158
|
+
isBefore(other: DTX): boolean;
|
|
1159
|
+
format(locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
|
1160
|
+
setDate(month: number, day: number): {
|
|
1161
|
+
date: Date;
|
|
1162
|
+
isToday(): boolean;
|
|
1163
|
+
isAfter(other: DTX): boolean;
|
|
1164
|
+
isBefore(other: DTX): boolean;
|
|
1165
|
+
format(locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
|
1166
|
+
setDate(month: number, day: number): /*elided*/ any;
|
|
1167
|
+
addDate(days: number): /*elided*/ any;
|
|
1168
|
+
addDays(days: number): /*elided*/ any;
|
|
1169
|
+
setDay(days: number): /*elided*/ any;
|
|
1170
|
+
dayStart: () => number;
|
|
1171
|
+
days: number;
|
|
1172
|
+
getCurrentUTCDay: () => number;
|
|
1173
|
+
CalendarDaysInMonth(year: number, month: number): number;
|
|
1174
|
+
isWeekend: (day: number) => boolean;
|
|
1175
|
+
addMonth(months: number): /*elided*/ any;
|
|
1176
|
+
setMonth(month: number): /*elided*/ any;
|
|
1177
|
+
isMonth: (month: number) => boolean;
|
|
1178
|
+
startOfMonth(): /*elided*/ any;
|
|
1179
|
+
endOfMonth(): /*elided*/ any;
|
|
1180
|
+
getMonthsLocale(locale?: string): string[];
|
|
1181
|
+
toDate(): Date;
|
|
1182
|
+
toISOString(): string;
|
|
1183
|
+
CalendarYearFormat(year: number, format?: string): string;
|
|
1184
|
+
calendar: (props: any) => {
|
|
1185
|
+
day: any;
|
|
1186
|
+
date: any;
|
|
1187
|
+
iso: any;
|
|
1188
|
+
month: any;
|
|
1189
|
+
key: any;
|
|
1190
|
+
monthName: any;
|
|
1191
|
+
isToday: any;
|
|
1192
|
+
isPast: any;
|
|
1193
|
+
isFuture: any;
|
|
1194
|
+
isCurrentMonth: any;
|
|
1195
|
+
selected: boolean;
|
|
1196
|
+
data: any;
|
|
1197
|
+
};
|
|
1198
|
+
};
|
|
1199
|
+
addDate(days: number): {
|
|
1200
|
+
date: Date;
|
|
1201
|
+
isToday(): boolean;
|
|
1202
|
+
isAfter(other: DTX): boolean;
|
|
1203
|
+
isBefore(other: DTX): boolean;
|
|
1204
|
+
format(locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
|
1205
|
+
setDate(month: number, day: number): /*elided*/ any;
|
|
1206
|
+
addDate(days: number): /*elided*/ any;
|
|
1207
|
+
addDays(days: number): /*elided*/ any;
|
|
1208
|
+
setDay(days: number): /*elided*/ any;
|
|
1209
|
+
dayStart: () => number;
|
|
1210
|
+
days: number;
|
|
1211
|
+
getCurrentUTCDay: () => number;
|
|
1212
|
+
CalendarDaysInMonth(year: number, month: number): number;
|
|
1213
|
+
isWeekend: (day: number) => boolean;
|
|
1214
|
+
addMonth(months: number): /*elided*/ any;
|
|
1215
|
+
setMonth(month: number): /*elided*/ any;
|
|
1216
|
+
isMonth: (month: number) => boolean;
|
|
1217
|
+
startOfMonth(): /*elided*/ any;
|
|
1218
|
+
endOfMonth(): /*elided*/ any;
|
|
1219
|
+
getMonthsLocale(locale?: string): string[];
|
|
1220
|
+
toDate(): Date;
|
|
1221
|
+
toISOString(): string;
|
|
1222
|
+
CalendarYearFormat(year: number, format?: string): string;
|
|
1223
|
+
calendar: (props: any) => {
|
|
1224
|
+
day: any;
|
|
1225
|
+
date: any;
|
|
1226
|
+
iso: any;
|
|
1227
|
+
month: any;
|
|
1228
|
+
key: any;
|
|
1229
|
+
monthName: any;
|
|
1230
|
+
isToday: any;
|
|
1231
|
+
isPast: any;
|
|
1232
|
+
isFuture: any;
|
|
1233
|
+
isCurrentMonth: any;
|
|
1234
|
+
selected: boolean;
|
|
1235
|
+
data: any;
|
|
1236
|
+
};
|
|
1237
|
+
};
|
|
1238
|
+
addDays(days: number): {
|
|
1239
|
+
date: Date;
|
|
1240
|
+
isToday(): boolean;
|
|
1241
|
+
isAfter(other: DTX): boolean;
|
|
1242
|
+
isBefore(other: DTX): boolean;
|
|
1243
|
+
format(locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
|
1244
|
+
setDate(month: number, day: number): /*elided*/ any;
|
|
1245
|
+
addDate(days: number): /*elided*/ any;
|
|
1246
|
+
addDays(days: number): /*elided*/ any;
|
|
1247
|
+
setDay(days: number): /*elided*/ any;
|
|
1248
|
+
dayStart: () => number;
|
|
1249
|
+
days: number;
|
|
1250
|
+
getCurrentUTCDay: () => number;
|
|
1251
|
+
CalendarDaysInMonth(year: number, month: number): number;
|
|
1252
|
+
isWeekend: (day: number) => boolean;
|
|
1253
|
+
addMonth(months: number): /*elided*/ any;
|
|
1254
|
+
setMonth(month: number): /*elided*/ any;
|
|
1255
|
+
isMonth: (month: number) => boolean;
|
|
1256
|
+
startOfMonth(): /*elided*/ any;
|
|
1257
|
+
endOfMonth(): /*elided*/ any;
|
|
1258
|
+
getMonthsLocale(locale?: string): string[];
|
|
1259
|
+
toDate(): Date;
|
|
1260
|
+
toISOString(): string;
|
|
1261
|
+
CalendarYearFormat(year: number, format?: string): string;
|
|
1262
|
+
calendar: (props: any) => {
|
|
1263
|
+
day: any;
|
|
1264
|
+
date: any;
|
|
1265
|
+
iso: any;
|
|
1266
|
+
month: any;
|
|
1267
|
+
key: any;
|
|
1268
|
+
monthName: any;
|
|
1269
|
+
isToday: any;
|
|
1270
|
+
isPast: any;
|
|
1271
|
+
isFuture: any;
|
|
1272
|
+
isCurrentMonth: any;
|
|
1273
|
+
selected: boolean;
|
|
1274
|
+
data: any;
|
|
1275
|
+
};
|
|
1276
|
+
};
|
|
1277
|
+
setDay(days: number): {
|
|
1278
|
+
date: Date;
|
|
1279
|
+
isToday(): boolean;
|
|
1280
|
+
isAfter(other: DTX): boolean;
|
|
1281
|
+
isBefore(other: DTX): boolean;
|
|
1282
|
+
format(locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
|
1283
|
+
setDate(month: number, day: number): /*elided*/ any;
|
|
1284
|
+
addDate(days: number): /*elided*/ any;
|
|
1285
|
+
addDays(days: number): /*elided*/ any;
|
|
1286
|
+
setDay(days: number): /*elided*/ any;
|
|
1287
|
+
dayStart: () => number;
|
|
1288
|
+
days: number;
|
|
1289
|
+
getCurrentUTCDay: () => number;
|
|
1290
|
+
CalendarDaysInMonth(year: number, month: number): number;
|
|
1291
|
+
isWeekend: (day: number) => boolean;
|
|
1292
|
+
addMonth(months: number): /*elided*/ any;
|
|
1293
|
+
setMonth(month: number): /*elided*/ any;
|
|
1294
|
+
isMonth: (month: number) => boolean;
|
|
1295
|
+
startOfMonth(): /*elided*/ any;
|
|
1296
|
+
endOfMonth(): /*elided*/ any;
|
|
1297
|
+
getMonthsLocale(locale?: string): string[];
|
|
1298
|
+
toDate(): Date;
|
|
1299
|
+
toISOString(): string;
|
|
1300
|
+
CalendarYearFormat(year: number, format?: string): string;
|
|
1301
|
+
calendar: (props: any) => {
|
|
1302
|
+
day: any;
|
|
1303
|
+
date: any;
|
|
1304
|
+
iso: any;
|
|
1305
|
+
month: any;
|
|
1306
|
+
key: any;
|
|
1307
|
+
monthName: any;
|
|
1308
|
+
isToday: any;
|
|
1309
|
+
isPast: any;
|
|
1310
|
+
isFuture: any;
|
|
1311
|
+
isCurrentMonth: any;
|
|
1312
|
+
selected: boolean;
|
|
1313
|
+
data: any;
|
|
1314
|
+
};
|
|
1315
|
+
};
|
|
1316
|
+
dayStart: () => number;
|
|
1317
|
+
days: number;
|
|
1318
|
+
getCurrentUTCDay: () => number;
|
|
1319
|
+
CalendarDaysInMonth(year: number, month: number): number;
|
|
1320
|
+
isWeekend: (day: number) => boolean;
|
|
1321
|
+
addMonth(months: number): {
|
|
1322
|
+
date: Date;
|
|
1323
|
+
isToday(): boolean;
|
|
1324
|
+
isAfter(other: DTX): boolean;
|
|
1325
|
+
isBefore(other: DTX): boolean;
|
|
1326
|
+
format(locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
|
1327
|
+
setDate(month: number, day: number): /*elided*/ any;
|
|
1328
|
+
addDate(days: number): /*elided*/ any;
|
|
1329
|
+
addDays(days: number): /*elided*/ any;
|
|
1330
|
+
setDay(days: number): /*elided*/ any;
|
|
1331
|
+
dayStart: () => number;
|
|
1332
|
+
days: number;
|
|
1333
|
+
getCurrentUTCDay: () => number;
|
|
1334
|
+
CalendarDaysInMonth(year: number, month: number): number;
|
|
1335
|
+
isWeekend: (day: number) => boolean;
|
|
1336
|
+
addMonth(months: number): /*elided*/ any;
|
|
1337
|
+
setMonth(month: number): /*elided*/ any;
|
|
1338
|
+
isMonth: (month: number) => boolean;
|
|
1339
|
+
startOfMonth(): /*elided*/ any;
|
|
1340
|
+
endOfMonth(): /*elided*/ any;
|
|
1341
|
+
getMonthsLocale(locale?: string): string[];
|
|
1342
|
+
toDate(): Date;
|
|
1343
|
+
toISOString(): string;
|
|
1344
|
+
CalendarYearFormat(year: number, format?: string): string;
|
|
1345
|
+
calendar: (props: any) => {
|
|
1346
|
+
day: any;
|
|
1347
|
+
date: any;
|
|
1348
|
+
iso: any;
|
|
1349
|
+
month: any;
|
|
1350
|
+
key: any;
|
|
1351
|
+
monthName: any;
|
|
1352
|
+
isToday: any;
|
|
1353
|
+
isPast: any;
|
|
1354
|
+
isFuture: any;
|
|
1355
|
+
isCurrentMonth: any;
|
|
1356
|
+
selected: boolean;
|
|
1357
|
+
data: any;
|
|
1358
|
+
};
|
|
1359
|
+
};
|
|
1360
|
+
setMonth(month: number): {
|
|
1361
|
+
date: Date;
|
|
1362
|
+
isToday(): boolean;
|
|
1363
|
+
isAfter(other: DTX): boolean;
|
|
1364
|
+
isBefore(other: DTX): boolean;
|
|
1365
|
+
format(locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
|
1366
|
+
setDate(month: number, day: number): /*elided*/ any;
|
|
1367
|
+
addDate(days: number): /*elided*/ any;
|
|
1368
|
+
addDays(days: number): /*elided*/ any;
|
|
1369
|
+
setDay(days: number): /*elided*/ any;
|
|
1370
|
+
dayStart: () => number;
|
|
1371
|
+
days: number;
|
|
1372
|
+
getCurrentUTCDay: () => number;
|
|
1373
|
+
CalendarDaysInMonth(year: number, month: number): number;
|
|
1374
|
+
isWeekend: (day: number) => boolean;
|
|
1375
|
+
addMonth(months: number): /*elided*/ any;
|
|
1376
|
+
setMonth(month: number): /*elided*/ any;
|
|
1377
|
+
isMonth: (month: number) => boolean;
|
|
1378
|
+
startOfMonth(): /*elided*/ any;
|
|
1379
|
+
endOfMonth(): /*elided*/ any;
|
|
1380
|
+
getMonthsLocale(locale?: string): string[];
|
|
1381
|
+
toDate(): Date;
|
|
1382
|
+
toISOString(): string;
|
|
1383
|
+
CalendarYearFormat(year: number, format?: string): string;
|
|
1384
|
+
calendar: (props: any) => {
|
|
1385
|
+
day: any;
|
|
1386
|
+
date: any;
|
|
1387
|
+
iso: any;
|
|
1388
|
+
month: any;
|
|
1389
|
+
key: any;
|
|
1390
|
+
monthName: any;
|
|
1391
|
+
isToday: any;
|
|
1392
|
+
isPast: any;
|
|
1393
|
+
isFuture: any;
|
|
1394
|
+
isCurrentMonth: any;
|
|
1395
|
+
selected: boolean;
|
|
1396
|
+
data: any;
|
|
1397
|
+
};
|
|
1398
|
+
};
|
|
1399
|
+
isMonth: (month: number) => boolean;
|
|
1400
|
+
startOfMonth(): {
|
|
1401
|
+
date: Date;
|
|
1402
|
+
isToday(): boolean;
|
|
1403
|
+
isAfter(other: DTX): boolean;
|
|
1404
|
+
isBefore(other: DTX): boolean;
|
|
1405
|
+
format(locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
|
1406
|
+
setDate(month: number, day: number): /*elided*/ any;
|
|
1407
|
+
addDate(days: number): /*elided*/ any;
|
|
1408
|
+
addDays(days: number): /*elided*/ any;
|
|
1409
|
+
setDay(days: number): /*elided*/ any;
|
|
1410
|
+
dayStart: () => number;
|
|
1411
|
+
days: number;
|
|
1412
|
+
getCurrentUTCDay: () => number;
|
|
1413
|
+
CalendarDaysInMonth(year: number, month: number): number;
|
|
1414
|
+
isWeekend: (day: number) => boolean;
|
|
1415
|
+
addMonth(months: number): /*elided*/ any;
|
|
1416
|
+
setMonth(month: number): /*elided*/ any;
|
|
1417
|
+
isMonth: (month: number) => boolean;
|
|
1418
|
+
startOfMonth(): /*elided*/ any;
|
|
1419
|
+
endOfMonth(): /*elided*/ any;
|
|
1420
|
+
getMonthsLocale(locale?: string): string[];
|
|
1421
|
+
toDate(): Date;
|
|
1422
|
+
toISOString(): string;
|
|
1423
|
+
CalendarYearFormat(year: number, format?: string): string;
|
|
1424
|
+
calendar: (props: any) => {
|
|
1425
|
+
day: any;
|
|
1426
|
+
date: any;
|
|
1427
|
+
iso: any;
|
|
1428
|
+
month: any;
|
|
1429
|
+
key: any;
|
|
1430
|
+
monthName: any;
|
|
1431
|
+
isToday: any;
|
|
1432
|
+
isPast: any;
|
|
1433
|
+
isFuture: any;
|
|
1434
|
+
isCurrentMonth: any;
|
|
1435
|
+
selected: boolean;
|
|
1436
|
+
data: any;
|
|
1437
|
+
};
|
|
1438
|
+
};
|
|
1439
|
+
endOfMonth(): {
|
|
1440
|
+
date: Date;
|
|
1441
|
+
isToday(): boolean;
|
|
1442
|
+
isAfter(other: DTX): boolean;
|
|
1443
|
+
isBefore(other: DTX): boolean;
|
|
1444
|
+
format(locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
|
1445
|
+
setDate(month: number, day: number): /*elided*/ any;
|
|
1446
|
+
addDate(days: number): /*elided*/ any;
|
|
1447
|
+
addDays(days: number): /*elided*/ any;
|
|
1448
|
+
setDay(days: number): /*elided*/ any;
|
|
1449
|
+
dayStart: () => number;
|
|
1450
|
+
days: number;
|
|
1451
|
+
getCurrentUTCDay: () => number;
|
|
1452
|
+
CalendarDaysInMonth(year: number, month: number): number;
|
|
1453
|
+
isWeekend: (day: number) => boolean;
|
|
1454
|
+
addMonth(months: number): /*elided*/ any;
|
|
1455
|
+
setMonth(month: number): /*elided*/ any;
|
|
1456
|
+
isMonth: (month: number) => boolean;
|
|
1457
|
+
startOfMonth(): /*elided*/ any;
|
|
1458
|
+
endOfMonth(): /*elided*/ any;
|
|
1459
|
+
getMonthsLocale(locale?: string): string[];
|
|
1460
|
+
toDate(): Date;
|
|
1461
|
+
toISOString(): string;
|
|
1462
|
+
CalendarYearFormat(year: number, format?: string): string;
|
|
1463
|
+
calendar: (props: any) => {
|
|
1464
|
+
day: any;
|
|
1465
|
+
date: any;
|
|
1466
|
+
iso: any;
|
|
1467
|
+
month: any;
|
|
1468
|
+
key: any;
|
|
1469
|
+
monthName: any;
|
|
1470
|
+
isToday: any;
|
|
1471
|
+
isPast: any;
|
|
1472
|
+
isFuture: any;
|
|
1473
|
+
isCurrentMonth: any;
|
|
1474
|
+
selected: boolean;
|
|
1475
|
+
data: any;
|
|
1476
|
+
};
|
|
1477
|
+
};
|
|
1478
|
+
getMonthsLocale(locale?: string): string[];
|
|
1479
|
+
toDate(): Date;
|
|
1480
|
+
toISOString(): string;
|
|
1481
|
+
CalendarYearFormat(year: number, format?: string): string;
|
|
1482
|
+
calendar: (props: any) => {
|
|
1483
|
+
day: any;
|
|
1484
|
+
date: any;
|
|
1485
|
+
iso: any;
|
|
1486
|
+
month: any;
|
|
1487
|
+
key: any;
|
|
1488
|
+
monthName: any;
|
|
1489
|
+
isToday: any;
|
|
1490
|
+
isPast: any;
|
|
1491
|
+
isFuture: any;
|
|
1492
|
+
isCurrentMonth: any;
|
|
1493
|
+
selected: boolean;
|
|
1494
|
+
data: any;
|
|
1495
|
+
};
|
|
1496
|
+
};
|
|
1497
|
+
|
|
1091
1498
|
type CalendarDayProps = {
|
|
1092
1499
|
day: number;
|
|
1093
|
-
date:
|
|
1500
|
+
date: any;
|
|
1094
1501
|
isToday: boolean;
|
|
1095
1502
|
isPast: boolean;
|
|
1096
1503
|
isFuture: boolean;
|
|
@@ -1102,25 +1509,21 @@ type CalendarComponentProps = {
|
|
|
1102
1509
|
calendar: (CalendarDayProps | null)[][];
|
|
1103
1510
|
month: number;
|
|
1104
1511
|
monthLabel: string;
|
|
1105
|
-
yearLabel
|
|
1106
|
-
daysContainer:
|
|
1107
|
-
days
|
|
1512
|
+
yearLabel?: string;
|
|
1513
|
+
daysContainer: any[];
|
|
1514
|
+
days?: number;
|
|
1108
1515
|
weeks: number;
|
|
1109
|
-
isWeekend
|
|
1110
|
-
date
|
|
1516
|
+
isWeekend?: boolean;
|
|
1517
|
+
date?: any;
|
|
1111
1518
|
selected: CalendarDayProps | null;
|
|
1112
|
-
currentDay
|
|
1519
|
+
currentDay?: CalendarDayProps;
|
|
1113
1520
|
props?: any;
|
|
1114
1521
|
};
|
|
1115
|
-
declare function getMonthCalendar(year: number, month: number, startIndex: number, selected: CalendarDayProps, props?: any):
|
|
1522
|
+
declare function getMonthCalendar(dataFormat: DTXFormat, year: number, month: number, startIndex: number, selected: CalendarDayProps, props?: any): any;
|
|
1116
1523
|
type CalendarMonthProps = {
|
|
1117
1524
|
year: number;
|
|
1118
1525
|
value?: string | null;
|
|
1119
|
-
|
|
1120
|
-
month?: string;
|
|
1121
|
-
months?: string[];
|
|
1122
|
-
value?: string;
|
|
1123
|
-
};
|
|
1526
|
+
format?: DTXFormat;
|
|
1124
1527
|
data: {
|
|
1125
1528
|
selected: boolean;
|
|
1126
1529
|
years: number[];
|
|
@@ -1130,7 +1533,7 @@ type CalendarMonthProps = {
|
|
|
1130
1533
|
}[];
|
|
1131
1534
|
};
|
|
1132
1535
|
};
|
|
1133
|
-
declare function getMonthCalendarProps({ year, data, value,
|
|
1536
|
+
declare function getMonthCalendarProps({ year, data, value, format }: CalendarMonthProps): any;
|
|
1134
1537
|
|
|
1135
1538
|
declare const rgbToHex: (r: number, g: number, b: number) => string;
|
|
1136
1539
|
declare const hexToRgb: (hex: string) => {
|
|
@@ -1145,9 +1548,6 @@ declare const lighten: (hex: string, amount: number) => string;
|
|
|
1145
1548
|
declare const darken: (hex: string, amount: number) => string;
|
|
1146
1549
|
declare const alpha: (hex: string, opacity: number) => string;
|
|
1147
1550
|
|
|
1148
|
-
declare function isEmpty(value: unknown): boolean;
|
|
1149
|
-
declare function times<T>(n: number, iteratee: (index: number) => T): T[];
|
|
1150
|
-
|
|
1151
1551
|
declare const cx: (...args: any[]) => string;
|
|
1152
1552
|
|
|
1153
1553
|
type VariantConfig = {
|
|
@@ -1170,9 +1570,252 @@ declare const getCountryCodePhone: (phone: string, countries: CountriesDial[]) =
|
|
|
1170
1570
|
declare const getNumberPhone: (phone: string, dial: string) => string;
|
|
1171
1571
|
|
|
1172
1572
|
declare function mergeDeep<T>(target: T, source?: Partial<T>): T;
|
|
1573
|
+
declare function mergeInitialProps<T>(initial: T, props?: Partial<T>): T;
|
|
1173
1574
|
|
|
1174
1575
|
declare const inputCurrency: (e: React.KeyboardEvent<HTMLInputElement>, value: string, alloweds: string[]) => void;
|
|
1175
1576
|
|
|
1577
|
+
declare const utils: {
|
|
1578
|
+
isEmpty(value: unknown): boolean;
|
|
1579
|
+
times<T>(n: number, iteratee: (index: number) => T): T[];
|
|
1580
|
+
map<T, K extends keyof T, V extends keyof T>(array: T[], key: K, valueKey: V): Record<string | number | symbol, T[V]>;
|
|
1581
|
+
get<T, K extends keyof T>(obj: T, key: K): T[K];
|
|
1582
|
+
mergeDeep<T>(target: T, source: Partial<T>): T;
|
|
1583
|
+
omit<T, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
|
|
1584
|
+
pick<T extends object, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
|
|
1585
|
+
flatten<T>(array: T[][]): T[];
|
|
1586
|
+
unique<T>(array: T[]): T[];
|
|
1587
|
+
debounce<T extends (...args: any[]) => void>(func: T, wait: number): T;
|
|
1588
|
+
throttle<T extends (...args: any[]) => void>(func: T, limit: number): T;
|
|
1589
|
+
once<T extends (...args: any[]) => void>(func: T): T;
|
|
1590
|
+
memoize<T extends (...args: any[]) => any>(func: T): T;
|
|
1591
|
+
range(start: number, end: number, step?: number): number[];
|
|
1592
|
+
random(min: number, max: number): number;
|
|
1593
|
+
clamp(value: number, min: number, max: number): number;
|
|
1594
|
+
capitalize(str: string): string;
|
|
1595
|
+
camelCase(str: string): string;
|
|
1596
|
+
kebabCase(str: string): string;
|
|
1597
|
+
snakeCase(str: string): string;
|
|
1598
|
+
upperCase(str: string): string;
|
|
1599
|
+
difference<T>(array1: T[], array2: T[]): T[];
|
|
1600
|
+
intersection<T>(array1: T[], array2: T[]): T[];
|
|
1601
|
+
union<T>(array1: T[], array2: T[]): T[];
|
|
1602
|
+
zip<T, U>(array1: T[], array2: U[]): [T, U][];
|
|
1603
|
+
unzip<T, U>(array: [T, U][]): [T[], U[]];
|
|
1604
|
+
groupBy<T>(array: T[], key: keyof T): Record<string, T[]>;
|
|
1605
|
+
partition<T>(array: T[], predicate: (item: T) => boolean): [T[], T[]];
|
|
1606
|
+
countBy<T>(array: T[], key: keyof T): Record<string, number>;
|
|
1607
|
+
chunk<T>(array: T[], size: number): T[][];
|
|
1608
|
+
compact<T>(array: T[]): T[];
|
|
1609
|
+
concat<T>(...arrays: T[][]): T[];
|
|
1610
|
+
differenceBy<T>(array1: T[], array2: T[], iteratee: (item: T) => any): T[];
|
|
1611
|
+
intersectionBy<T>(array1: T[], array2: T[], iteratee: (item: T) => any): T[];
|
|
1612
|
+
unionBy<T>(array1: T[], array2: T[], iteratee: (item: T) => any): T[];
|
|
1613
|
+
uniqBy<T>(array: T[], iteratee: (item: T) => any): T[];
|
|
1614
|
+
zipWith<T, U, V>(array1: T[], array2: U[], iteratee: (item1: T, item2: U) => V): V[];
|
|
1615
|
+
unzipWith<T, U, V>(array: [T, U][], iteratee: (item1: T, item2: U) => V): V[];
|
|
1616
|
+
without<T>(array: T[], ...values: T[]): T[];
|
|
1617
|
+
xor<T>(array1: T[], array2: T[]): T[];
|
|
1618
|
+
zipObject<T>(keys: (string | number | symbol)[], values: T[]): Record<string | number | symbol, T>;
|
|
1619
|
+
zipObjectDeep<T>(keys: (string | number | symbol)[], values: T[]): Record<string | number | symbol, T>;
|
|
1620
|
+
zipWithDeep<T, U, V>(keys: (string | number | symbol)[], values: T[], iteratee: (value: T) => U): Record<string | number | symbol, U>;
|
|
1621
|
+
first<T>(array: T[]): T | undefined;
|
|
1622
|
+
last<T>(array: T[]): T | undefined;
|
|
1623
|
+
nth<T>(array: T[], n: number): T | undefined;
|
|
1624
|
+
keys<T extends object>(obj: T): (keyof T)[];
|
|
1625
|
+
values<T>(obj: T): T[keyof T][];
|
|
1626
|
+
entries<T>(obj: T): [keyof T, T[keyof T]][];
|
|
1627
|
+
fromEntries<T>(entries: [string | number | symbol, T][]): Record<string | number | symbol, T>;
|
|
1628
|
+
invert<T extends Record<string | number | symbol, string | number | symbol>>(obj: T): Record<T[keyof T], keyof T>;
|
|
1629
|
+
mapValues<T extends object, U>(obj: T, iteratee: (value: T[keyof T], key: keyof T) => U): Record<keyof T, U>;
|
|
1630
|
+
mapKeys<T extends object, U extends string | number | symbol>(obj: T, iteratee: (value: T[keyof T], key: keyof T) => U): Record<U, T[keyof T]>;
|
|
1631
|
+
merge<T extends object>(target: T, ...sources: Partial<T>[]): T;
|
|
1632
|
+
assign<T extends object>(target: T, ...sources: Partial<T>[]): T;
|
|
1633
|
+
defaults<T extends object>(target: T, ...sources: Partial<T>[]): T;
|
|
1634
|
+
defaultsDeep<T extends object>(target: T, ...sources: Partial<T>[]): T;
|
|
1635
|
+
pickBy<T extends object>(obj: T, predicate: (value: T[keyof T], key: keyof T) => boolean): Partial<T>;
|
|
1636
|
+
omitBy<T extends object>(obj: T, predicate: (value: T[keyof T], key: keyof T) => boolean): Partial<T>;
|
|
1637
|
+
pickByDeep<T extends object>(obj: T, predicate: (value: T[keyof T], key: keyof T) => boolean): Partial<T>;
|
|
1638
|
+
omitByDeep<T extends object>(obj: T, predicate: (value: T[keyof T], key: keyof T) => boolean): Partial<T>;
|
|
1639
|
+
isEmptyObject(obj: object): boolean;
|
|
1640
|
+
isEmptyArray(arr: any[]): boolean;
|
|
1641
|
+
isEmptyString(str: string): boolean;
|
|
1642
|
+
isEmptyValue(value: unknown): boolean;
|
|
1643
|
+
startsWith(str: string, prefix: string): boolean;
|
|
1644
|
+
endsWith(str: string, suffix: string): boolean;
|
|
1645
|
+
includes(str: string, search: string): boolean;
|
|
1646
|
+
repeat(str: string, times: number): string;
|
|
1647
|
+
padStart(str: string, targetLength: number, padString?: string): string;
|
|
1648
|
+
padEnd(str: string, targetLength: number, padString?: string): string;
|
|
1649
|
+
trim(str: string): string;
|
|
1650
|
+
trimStart(str: string): string;
|
|
1651
|
+
trimEnd(str: string): string;
|
|
1652
|
+
truncate(str: string, length: number, omission?: string): string;
|
|
1653
|
+
escape(str: string): string;
|
|
1654
|
+
unescape(str: string): string;
|
|
1655
|
+
capitalizeWords(str: string): string;
|
|
1656
|
+
decapitalize(str: string): string;
|
|
1657
|
+
decapitalizeWords(str: string): string;
|
|
1658
|
+
swapCase(str: string): string;
|
|
1659
|
+
clampNumber(num: number, min: number, max: number): number;
|
|
1660
|
+
randomNumber(min: number, max: number): number;
|
|
1661
|
+
round(num: number, precision?: number): number;
|
|
1662
|
+
floor(num: number, precision?: number): number;
|
|
1663
|
+
ceil(num: number, precision?: number): number;
|
|
1664
|
+
toFixed(num: number, precision?: number): string;
|
|
1665
|
+
toExponential(num: number, precision?: number): string;
|
|
1666
|
+
toPrecision(num: number, precision?: number): string;
|
|
1667
|
+
isInteger(num: number): boolean;
|
|
1668
|
+
isFiniteNumber(num: number): boolean;
|
|
1669
|
+
isNaNValue(num: number): boolean;
|
|
1670
|
+
isSafeInteger(num: number): boolean;
|
|
1671
|
+
parseIntValue(str: string, radix?: number): number;
|
|
1672
|
+
parseFloatValue(str: string): number;
|
|
1673
|
+
toNumber(value: any): number;
|
|
1674
|
+
toInteger(value: any): number;
|
|
1675
|
+
toFinite(value: any): number;
|
|
1676
|
+
toSafeInteger(value: any): number;
|
|
1677
|
+
toFiniteNumber(value: any): number;
|
|
1678
|
+
getValue<T, K extends keyof T>(obj: T, key: K): T[K];
|
|
1679
|
+
setValue<T, K extends keyof T>(obj: T, key: K, value: T[K]): void;
|
|
1680
|
+
hasKey<T extends object, K extends keyof T>(obj: T, key: K): boolean;
|
|
1681
|
+
hasValue<T extends object>(obj: T, value: T[keyof T]): boolean;
|
|
1682
|
+
getNestedValue<T, K1 extends keyof T, K2 extends keyof T[K1]>(obj: T, key1: K1, key2: K2): T[K1][K2];
|
|
1683
|
+
setNestedValue<T, K1 extends keyof T, K2 extends keyof T[K1]>(obj: T, key1: K1, key2: K2, value: T[K1][K2]): void;
|
|
1684
|
+
hasNestedKey<T extends object, K1 extends keyof T, K2 extends keyof T[K1]>(obj: T, key1: K1, key2: K2): boolean;
|
|
1685
|
+
hasNestedValue<T extends object, K1 extends keyof T, K2 extends keyof T[K1]>(obj: T, key1: K1, key2: K2, value: T[K1][K2]): boolean;
|
|
1686
|
+
getDeepValue<T, K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2]>(obj: T, key1: K1, key2: K2, key3: K3): T[K1][K2][K3];
|
|
1687
|
+
setDeepValue<T, K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2]>(obj: T, key1: K1, key2: K2, key3: K3, value: T[K1][K2][K3]): void;
|
|
1688
|
+
hasDeepKey<T extends object, K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2]>(obj: T, key1: K1, key2: K2, key3: K3): boolean;
|
|
1689
|
+
hasDeepValue<T extends object, K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2]>(obj: T, key1: K1, key2: K2, key3: K3, value: T[K1][K2][K3]): boolean;
|
|
1690
|
+
getValueByPath<T>(obj: T, path: string): any;
|
|
1691
|
+
setValueByPath<T>(obj: T, path: string, value: any): void;
|
|
1692
|
+
hasKeyByPath<T>(obj: T, path: string): boolean;
|
|
1693
|
+
hasValueByPath<T>(obj: T, path: string, value: any): boolean;
|
|
1694
|
+
isNumberValue(value: any): boolean;
|
|
1695
|
+
isStringValue(value: any): boolean;
|
|
1696
|
+
isBooleanValue(value: any): boolean;
|
|
1697
|
+
isObjectValue(value: any): boolean;
|
|
1698
|
+
isArrayValue(value: any): boolean;
|
|
1699
|
+
isFunctionValue(value: any): boolean;
|
|
1700
|
+
isNullValue(value: any): boolean;
|
|
1701
|
+
isUndefinedValue(value: any): boolean;
|
|
1702
|
+
isSymbolValue(value: any): boolean;
|
|
1703
|
+
isBigIntValue(value: any): boolean;
|
|
1704
|
+
isEmail(str: string): boolean;
|
|
1705
|
+
isURL(str: string): boolean;
|
|
1706
|
+
isPhoneNumber(str: string): boolean;
|
|
1707
|
+
isPostalCode(str: string): boolean;
|
|
1708
|
+
isCreditCard(str: string): boolean;
|
|
1709
|
+
isISBN(str: string): boolean;
|
|
1710
|
+
isJSON(str: string): boolean;
|
|
1711
|
+
isXML(str: string): boolean;
|
|
1712
|
+
isBase64(str: string): boolean;
|
|
1713
|
+
isHexadecimal(str: string): boolean;
|
|
1714
|
+
isUUID(str: string): boolean;
|
|
1715
|
+
isIPv4(str: string): boolean;
|
|
1716
|
+
isIPv6(str: string): boolean;
|
|
1717
|
+
isMACAddress(str: string): boolean;
|
|
1718
|
+
isSlug(str: string): boolean;
|
|
1719
|
+
isHexColor(str: string): boolean;
|
|
1720
|
+
isRGBColor(str: string): boolean;
|
|
1721
|
+
hexToRGB(hex: string): {
|
|
1722
|
+
r: number;
|
|
1723
|
+
g: number;
|
|
1724
|
+
b: number;
|
|
1725
|
+
} | null;
|
|
1726
|
+
rgbToHex(r: number, g: number, b: number): string;
|
|
1727
|
+
rgbToHSL(r: number, g: number, b: number): {
|
|
1728
|
+
h: number;
|
|
1729
|
+
s: number;
|
|
1730
|
+
l: number;
|
|
1731
|
+
};
|
|
1732
|
+
hslToRGB(h: number, s: number, l: number): {
|
|
1733
|
+
r: number;
|
|
1734
|
+
g: number;
|
|
1735
|
+
b: number;
|
|
1736
|
+
};
|
|
1737
|
+
hexToHSL(hex: string): {
|
|
1738
|
+
h: number;
|
|
1739
|
+
s: number;
|
|
1740
|
+
l: number;
|
|
1741
|
+
} | null;
|
|
1742
|
+
hslToHex(h: number, s: number, l: number): string;
|
|
1743
|
+
lightenColor(hex: string, amount: number): string | null;
|
|
1744
|
+
darkenColor(hex: string, amount: number): string | null;
|
|
1745
|
+
saturateColor(hex: string, amount: number): string | null;
|
|
1746
|
+
desaturateColor(hex: string, amount: number): string | null;
|
|
1747
|
+
rotateHue(hex: string, degrees: number): string | null;
|
|
1748
|
+
invertColor(hex: string): string | null;
|
|
1749
|
+
isLightColor(hex: string): boolean | null;
|
|
1750
|
+
isDarkColor(hex: string): boolean | null;
|
|
1751
|
+
getContrastColor(hex: string): string | null;
|
|
1752
|
+
blendColors(hex1: string, hex2: string, ratio: number): string | null;
|
|
1753
|
+
mixColors(hex1: string, hex2: string): string | null;
|
|
1754
|
+
shadeColor(hex: string, percent: number): string | null;
|
|
1755
|
+
tintColor(hex: string, percent: number): string | null;
|
|
1756
|
+
generateRandomColor(): string;
|
|
1757
|
+
generateRandomHexColor(): string;
|
|
1758
|
+
generateRandomRGBColor(): string;
|
|
1759
|
+
generateRandomHSLColor(): string;
|
|
1760
|
+
generateRandomColorScheme(baseHex: string, schemeType: "complementary" | "analogous" | "triadic" | "tetradic"): string[] | null;
|
|
1761
|
+
generateGradientColors(startHex: string, endHex: string, steps: number): string[] | null;
|
|
1762
|
+
generateRandomGradient(steps: number): string[];
|
|
1763
|
+
generateRandomColorPalette(count: number): string[];
|
|
1764
|
+
generateMonochromaticPalette(baseHex: string, count: number): string[] | null;
|
|
1765
|
+
generateAnalogousPalette(baseHex: string, count: number): string[] | null;
|
|
1766
|
+
generateComplementaryPalette(baseHex: string): string[] | null;
|
|
1767
|
+
generateTriadicPalette(baseHex: string): string[] | null;
|
|
1768
|
+
generateTetradicPalette(baseHex: string): string[] | null;
|
|
1769
|
+
generateRandomPastelColor(): string;
|
|
1770
|
+
generateRandomVibrantColor(): string;
|
|
1771
|
+
generateRandomMutedColor(): string;
|
|
1772
|
+
generateRandomDarkColor(): string;
|
|
1773
|
+
generateRandomLightColor(): string;
|
|
1774
|
+
generateRandomNeutralColor(): string;
|
|
1775
|
+
generateRandomWarmColor(): string;
|
|
1776
|
+
generateRandomCoolColor(): string;
|
|
1777
|
+
generateRandomEarthToneColor(): string;
|
|
1778
|
+
generateRandomMetallicColor(): string;
|
|
1779
|
+
generateRandomNeonColor(): string;
|
|
1780
|
+
generateRandomPastelPalette(count: number): string[];
|
|
1781
|
+
generateRandomVibrantPalette(count: number): string[];
|
|
1782
|
+
generateRandomMutedPalette(count: number): string[];
|
|
1783
|
+
generateRandomDarkPalette(count: number): string[];
|
|
1784
|
+
generateRandomLightPalette(count: number): string[];
|
|
1785
|
+
generateRandomNeutralPalette(count: number): string[];
|
|
1786
|
+
generateRandomWarmPalette(count: number): string[];
|
|
1787
|
+
generateRandomCoolPalette(count: number): string[];
|
|
1788
|
+
generateRandomEarthTonePalette(count: number): string[];
|
|
1789
|
+
generateRandomMetallicPalette(count: number): string[];
|
|
1790
|
+
generateRandomNeonPalette(count: number): string[];
|
|
1791
|
+
pxToRem(px: number, base?: number): string;
|
|
1792
|
+
remToPx(rem: string, base?: number): number;
|
|
1793
|
+
pxToEm(px: number, base?: number): string;
|
|
1794
|
+
emToPx(em: string, base?: number): number;
|
|
1795
|
+
pxToPercent(px: number, total: number): string;
|
|
1796
|
+
percentToPx(percent: string, total: number): number;
|
|
1797
|
+
remToEm(rem: string, base?: number): string;
|
|
1798
|
+
generateUniqueId(length?: number): string;
|
|
1799
|
+
generateUUID(): string;
|
|
1800
|
+
generateShortId(length?: number): string;
|
|
1801
|
+
generateNanoId(length?: number): string;
|
|
1802
|
+
generateRandomString(length?: number): string;
|
|
1803
|
+
generateRandomHexId(length?: number): string;
|
|
1804
|
+
generateRandomNumericId(length?: number): string;
|
|
1805
|
+
generateRandomAlphaId(length?: number): string;
|
|
1806
|
+
generateRandomAlphanumericId(length?: number): string;
|
|
1807
|
+
generateRandomBase64Id(length?: number): string;
|
|
1808
|
+
generateRandomUrlSafeId(length?: number): string;
|
|
1809
|
+
generateRandomSlug(length?: number): string;
|
|
1810
|
+
generateRandomToken(length?: number): string;
|
|
1811
|
+
generateRandomApiKey(length?: number): string;
|
|
1812
|
+
generateRandomSessionId(length?: number): string;
|
|
1813
|
+
generateRandomPassword(length?: number): string;
|
|
1814
|
+
generateRandomUsername(length?: number): string;
|
|
1815
|
+
generateRandomEmail(length?: number): string;
|
|
1816
|
+
generateRandomDomain(length?: number): string;
|
|
1817
|
+
};
|
|
1818
|
+
|
|
1176
1819
|
type NotistackAnchorProps = {
|
|
1177
1820
|
vertical: 'top' | 'bottom';
|
|
1178
1821
|
horizontal: 'left' | 'center' | 'right';
|
|
@@ -1220,11 +1863,79 @@ declare function useMediaQuery(query: string | ((theme: any) => string)): boolea
|
|
|
1220
1863
|
type Breakpoint = keyof typeof breakpoints;
|
|
1221
1864
|
declare function useBreakpointValue<T>(values: Partial<Record<Breakpoint, T>>): T | undefined;
|
|
1222
1865
|
|
|
1866
|
+
type FlexProps = {
|
|
1867
|
+
container?: boolean;
|
|
1868
|
+
spacing?: number;
|
|
1869
|
+
children?: React$1.ReactNode;
|
|
1870
|
+
ui?: UIProps;
|
|
1871
|
+
center?: boolean;
|
|
1872
|
+
between?: boolean;
|
|
1873
|
+
variant?: 'row' | 'column' | 'wrap';
|
|
1874
|
+
gap?: number;
|
|
1875
|
+
style?: React$1.CSSProperties;
|
|
1876
|
+
onClick?: () => void;
|
|
1877
|
+
bordered?: boolean;
|
|
1878
|
+
};
|
|
1879
|
+
declare const Flex: React$1.FC<FlexProps>;
|
|
1880
|
+
|
|
1881
|
+
type LoaderProps = {
|
|
1882
|
+
component?: React$1.ReactNode;
|
|
1883
|
+
loading?: boolean;
|
|
1884
|
+
propsComponent?: {
|
|
1885
|
+
loader?: {
|
|
1886
|
+
ui?: UIProps;
|
|
1887
|
+
style?: React$1.CSSProperties;
|
|
1888
|
+
};
|
|
1889
|
+
spinner?: {
|
|
1890
|
+
size?: 'sm' | 'md' | 'lg' | 'xs';
|
|
1891
|
+
color?: keyof Theme['colors'];
|
|
1892
|
+
type: 'default' | 'dots' | 'fancy';
|
|
1893
|
+
};
|
|
1894
|
+
container?: Omit<FlexProps, 'children'>;
|
|
1895
|
+
};
|
|
1896
|
+
};
|
|
1897
|
+
declare const Loader: React$1.FC<LoaderProps>;
|
|
1898
|
+
|
|
1899
|
+
type TextVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'title' | 'subtitle' | 'body1' | 'body2' | 'caption' | 'button' | 'helper' | 'inherit' | 'code';
|
|
1900
|
+
type TextWeight = 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'black' | 'thin';
|
|
1901
|
+
type TextProps = {
|
|
1902
|
+
children?: React$1.ReactNode;
|
|
1903
|
+
variant?: TextVariant;
|
|
1904
|
+
color?: keyof Theme['colors'];
|
|
1905
|
+
weight?: TextWeight;
|
|
1906
|
+
as?: keyof React$1.JSX.IntrinsicElements;
|
|
1907
|
+
gutters?: number[];
|
|
1908
|
+
ui?: UIProps;
|
|
1909
|
+
style?: React$1.CSSProperties;
|
|
1910
|
+
onClick?: () => void;
|
|
1911
|
+
};
|
|
1912
|
+
declare const Text: React$1.FC<TextProps>;
|
|
1913
|
+
|
|
1914
|
+
type ButtonVariant = 'outlined' | 'filled' | 'text';
|
|
1915
|
+
type ButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1916
|
+
variant?: ButtonVariant;
|
|
1917
|
+
color?: keyof Theme['colors'];
|
|
1918
|
+
animated?: boolean;
|
|
1919
|
+
gradientBorder?: boolean;
|
|
1920
|
+
ui?: UIProps;
|
|
1921
|
+
size?: 'auto' | 'full';
|
|
1922
|
+
icon?: React$1.ReactNode;
|
|
1923
|
+
propsComponent?: {
|
|
1924
|
+
text?: Omit<TextProps, 'children'>;
|
|
1925
|
+
loader?: LoaderProps;
|
|
1926
|
+
};
|
|
1927
|
+
};
|
|
1928
|
+
declare const Button: React$1.FC<ButtonProps>;
|
|
1929
|
+
|
|
1223
1930
|
type CalendarProps = {
|
|
1224
1931
|
onSelect?: (day: any) => void;
|
|
1225
1932
|
propsComponent?: {
|
|
1226
1933
|
displayButtons?: boolean;
|
|
1227
1934
|
displayCalendar?: boolean;
|
|
1935
|
+
container?: {
|
|
1936
|
+
ui?: UIProps;
|
|
1937
|
+
style?: React$1.CSSProperties;
|
|
1938
|
+
};
|
|
1228
1939
|
header?: {
|
|
1229
1940
|
color?: keyof Theme['colors'];
|
|
1230
1941
|
ui?: UIProps;
|
|
@@ -1233,6 +1944,7 @@ type CalendarProps = {
|
|
|
1233
1944
|
day?: {
|
|
1234
1945
|
color?: keyof Theme['colors'];
|
|
1235
1946
|
bordered?: boolean;
|
|
1947
|
+
selected?: keyof Theme['colors'];
|
|
1236
1948
|
ui?: UIProps;
|
|
1237
1949
|
style?: React$1.CSSProperties;
|
|
1238
1950
|
component?: React$1.ReactNode;
|
|
@@ -1246,13 +1958,22 @@ type CalendarProps = {
|
|
|
1246
1958
|
disabled?: boolean;
|
|
1247
1959
|
onClick?: () => void;
|
|
1248
1960
|
label?: React$1.ReactNode;
|
|
1961
|
+
color?: keyof Theme['colors'];
|
|
1962
|
+
ui?: UIProps;
|
|
1249
1963
|
};
|
|
1250
1964
|
buttonBack?: {
|
|
1251
1965
|
disabled?: boolean;
|
|
1252
1966
|
onClick?: () => void;
|
|
1253
1967
|
label?: React$1.ReactNode;
|
|
1968
|
+
color?: keyof Theme['colors'];
|
|
1969
|
+
ui?: UIProps;
|
|
1254
1970
|
};
|
|
1255
1971
|
};
|
|
1972
|
+
buttonsComponent?: {
|
|
1973
|
+
buttonNext?: React$1.ReactNode;
|
|
1974
|
+
buttonBack?: React$1.ReactNode;
|
|
1975
|
+
};
|
|
1976
|
+
dataFormat: DTXFormat;
|
|
1256
1977
|
mapCalendar?: any;
|
|
1257
1978
|
onMonthChange?: (month: number) => void;
|
|
1258
1979
|
};
|
|
@@ -1383,9 +2104,10 @@ declare const Label: React$1.FC<LabelProps>;
|
|
|
1383
2104
|
type InputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
|
|
1384
2105
|
label?: string;
|
|
1385
2106
|
value?: string;
|
|
1386
|
-
|
|
2107
|
+
model?: React$1.HTMLAttributes<HTMLInputElement>['inputMode'] | 'currency' | 'email' | 'phone' | 'number';
|
|
1387
2108
|
variant?: ControlVariants;
|
|
1388
2109
|
separatorCurrency?: ',' | '.';
|
|
2110
|
+
separatorDecimal?: ',' | '.';
|
|
1389
2111
|
color?: keyof Theme['colors'];
|
|
1390
2112
|
onChange?: (e: React$1.ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
1391
2113
|
error?: string | null;
|
|
@@ -1401,9 +2123,10 @@ type InputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange'
|
|
|
1401
2123
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange"> & {
|
|
1402
2124
|
label?: string;
|
|
1403
2125
|
value?: string;
|
|
1404
|
-
|
|
2126
|
+
model?: React$1.HTMLAttributes<HTMLInputElement>["inputMode"] | "currency" | "email" | "phone" | "number";
|
|
1405
2127
|
variant?: ControlVariants;
|
|
1406
2128
|
separatorCurrency?: "," | ".";
|
|
2129
|
+
separatorDecimal?: "," | ".";
|
|
1407
2130
|
color?: keyof Theme["colors"];
|
|
1408
2131
|
onChange?: (e: React$1.ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
1409
2132
|
error?: string | null;
|
|
@@ -1431,11 +2154,7 @@ type MonthSelectorProps = {
|
|
|
1431
2154
|
months: number[];
|
|
1432
2155
|
}[];
|
|
1433
2156
|
};
|
|
1434
|
-
|
|
1435
|
-
months?: string[];
|
|
1436
|
-
value?: string;
|
|
1437
|
-
month?: string;
|
|
1438
|
-
};
|
|
2157
|
+
format?: DTXFormat;
|
|
1439
2158
|
onNext?: (value: string) => void;
|
|
1440
2159
|
onLast?: (value: string) => void;
|
|
1441
2160
|
onChange: (value: string) => void;
|
|
@@ -1478,21 +2197,6 @@ type FadeProps = {
|
|
|
1478
2197
|
};
|
|
1479
2198
|
declare const Fade: React$1.FC<FadeProps>;
|
|
1480
2199
|
|
|
1481
|
-
type FlexProps = {
|
|
1482
|
-
container?: boolean;
|
|
1483
|
-
spacing?: number;
|
|
1484
|
-
children?: React$1.ReactNode;
|
|
1485
|
-
ui?: UIProps;
|
|
1486
|
-
center?: boolean;
|
|
1487
|
-
between?: boolean;
|
|
1488
|
-
variant?: 'row' | 'column' | 'wrap';
|
|
1489
|
-
gap?: number;
|
|
1490
|
-
style?: React$1.CSSProperties;
|
|
1491
|
-
onClick?: () => void;
|
|
1492
|
-
bordered?: boolean;
|
|
1493
|
-
};
|
|
1494
|
-
declare const Flex: React$1.FC<FlexProps>;
|
|
1495
|
-
|
|
1496
2200
|
type GridProps = {
|
|
1497
2201
|
container?: boolean;
|
|
1498
2202
|
spacing?: number;
|
|
@@ -1599,24 +2303,6 @@ type InputAreaProps = {
|
|
|
1599
2303
|
};
|
|
1600
2304
|
declare const InputArea: React$1.FC<InputAreaProps>;
|
|
1601
2305
|
|
|
1602
|
-
type LoaderProps = {
|
|
1603
|
-
component?: React$1.ReactNode;
|
|
1604
|
-
loading?: boolean;
|
|
1605
|
-
propsComponent?: {
|
|
1606
|
-
loader?: {
|
|
1607
|
-
ui?: UIProps;
|
|
1608
|
-
style?: React$1.CSSProperties;
|
|
1609
|
-
};
|
|
1610
|
-
spinner?: {
|
|
1611
|
-
size?: 'sm' | 'md' | 'lg';
|
|
1612
|
-
color?: keyof Theme['colors'];
|
|
1613
|
-
type: 'default' | 'dots' | 'fancy';
|
|
1614
|
-
};
|
|
1615
|
-
container?: Omit<FlexProps, 'children'>;
|
|
1616
|
-
};
|
|
1617
|
-
};
|
|
1618
|
-
declare const Loader: React$1.FC<LoaderProps>;
|
|
1619
|
-
|
|
1620
2306
|
type ModalContainerProps = {
|
|
1621
2307
|
children?: React$1.ReactNode;
|
|
1622
2308
|
size?: 'sm' | 'md' | 'lg';
|
|
@@ -1908,4 +2594,4 @@ declare const breakUp: (bp: number) => string;
|
|
|
1908
2594
|
declare const breakDown: (bp: number) => string;
|
|
1909
2595
|
declare function useBreakpoint(queryInput: QueryInput): boolean;
|
|
1910
2596
|
|
|
1911
|
-
export { Avatar, type AvatarProps, Backdrop, BackdropContext, type BackdropContextType, BackdropProvider, Box, type BoxProps, Button, type ButtonProps, type ButtonVariant, Calendar, type CalendarComponentProps, type CalendarDayProps, type CalendarMonthProps, 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, IconCalendar, IconClose, IconDown, IconLeft, 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, MonthSelector, type MonthSelectorProps, Notistack, type NotistackAnchorProps, NotistackContext, type NotistackContextType, type NotistackProps, NotistackProvider, type Option, Pending, type PendingProps, Phone, type PhoneInputProps, Picker, type PickerChangeEvent, type PickerProps, type PlaceData, PlacesAutocomplete, type PropsPlaces, Radio, type RadioVariant, Select, type SelectChangeEvent, type SelectOptionsProps, type SelectProps, Selector, 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, getMonthCalendarProps, getNumberPhone, hexToRgb, initTheme, inputCurrency,
|
|
2597
|
+
export { Avatar, type AvatarProps, Backdrop, BackdropContext, type BackdropContextType, BackdropProvider, Box, type BoxProps, Button, type ButtonProps, type ButtonVariant, Calendar, type CalendarComponentProps, type CalendarDayProps, type CalendarMonthProps, 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, IconCalendar, IconClose, IconDown, IconLeft, 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, MonthSelector, type MonthSelectorProps, Notistack, type NotistackAnchorProps, NotistackContext, type NotistackContextType, type NotistackProps, NotistackProvider, type Option, Pending, type PendingProps, Phone, type PhoneInputProps, Picker, type PickerChangeEvent, type PickerProps, type PlaceData, PlacesAutocomplete, type PropsPlaces, Radio, type RadioVariant, Select, type SelectChangeEvent, type SelectOptionsProps, type SelectProps, Selector, 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, date, dtx, getContrast, getCountryCodePhone, getDialPhone, getMonthCalendar, getMonthCalendarProps, getNumberPhone, hexToRgb, initTheme, inputCurrency, lighten, mergeDeep, mergeInitialProps, normalizePhone, rgbToHex, text, uiStyle, useBackdrop, useBreakpoint, useBreakpointValue, useClickAway, useControl, useMediaQuery, useNotistack, usePlaces, useTheme, utils };
|