koval-ui 0.15.8 → 0.15.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +134 -3
- package/dist/index.js +1389 -1335
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +27 -27
package/dist/index.d.ts
CHANGED
|
@@ -421,6 +421,114 @@ declare type DataAttributeKey = `data-${string}`;
|
|
|
421
421
|
|
|
422
422
|
declare type DataAttributes = Record<DataAttributeKey, string>;
|
|
423
423
|
|
|
424
|
+
declare type DateFormatOptions = {
|
|
425
|
+
/**
|
|
426
|
+
* The representation of the weekday
|
|
427
|
+
* @example
|
|
428
|
+
* 'long' // => Thursday
|
|
429
|
+
* 'short' // => Thu
|
|
430
|
+
* 'narrow' // => T
|
|
431
|
+
*/
|
|
432
|
+
weekday?: keyof typeof TimeNamedUnit;
|
|
433
|
+
/**
|
|
434
|
+
* The representation of the era
|
|
435
|
+
* @example
|
|
436
|
+
* 'long' // => Anno Domini
|
|
437
|
+
* 'short' // => AD
|
|
438
|
+
* 'narrow' // => A
|
|
439
|
+
*/
|
|
440
|
+
era?: keyof typeof TimeNamedUnit;
|
|
441
|
+
/**
|
|
442
|
+
* The representation of the year
|
|
443
|
+
* @example
|
|
444
|
+
* 'numeric' // => 2008
|
|
445
|
+
* '2-digit' // => 08
|
|
446
|
+
*/
|
|
447
|
+
year?: keyof typeof TimeNumericUnit;
|
|
448
|
+
/**
|
|
449
|
+
* The representation of the month
|
|
450
|
+
* @example
|
|
451
|
+
* 'long' // => March
|
|
452
|
+
* 'short' // => Mar
|
|
453
|
+
* 'narrow' // => M
|
|
454
|
+
* 'numeric' // => 3
|
|
455
|
+
* '2-digit' // => 03
|
|
456
|
+
*/
|
|
457
|
+
month?: keyof typeof TimeNumericUnit | keyof typeof TimeNamedUnit;
|
|
458
|
+
/**
|
|
459
|
+
* The representation of the day
|
|
460
|
+
* @example
|
|
461
|
+
* 'numeric' // => 6
|
|
462
|
+
* '2-digit' // => 06
|
|
463
|
+
*/
|
|
464
|
+
day?: keyof typeof TimeNumericUnit;
|
|
465
|
+
/**
|
|
466
|
+
* The representation of the hour
|
|
467
|
+
* @example
|
|
468
|
+
* 'numeric' // => 6
|
|
469
|
+
* '2-digit' // => 06
|
|
470
|
+
*/
|
|
471
|
+
hour?: keyof typeof TimeNumericUnit;
|
|
472
|
+
/**
|
|
473
|
+
* The representation of the minute
|
|
474
|
+
* @example
|
|
475
|
+
* 'numeric' // => 6
|
|
476
|
+
* '2-digit' // => 06
|
|
477
|
+
*/
|
|
478
|
+
minute?: keyof typeof TimeNumericUnit;
|
|
479
|
+
/**
|
|
480
|
+
* The representation of the second
|
|
481
|
+
* @example
|
|
482
|
+
* 'numeric' // => 6
|
|
483
|
+
* '2-digit' // => 06
|
|
484
|
+
*/
|
|
485
|
+
second?: keyof typeof TimeNumericUnit;
|
|
486
|
+
/**
|
|
487
|
+
* The localized representation of the time zone name
|
|
488
|
+
* @example
|
|
489
|
+
* 'long' // => Long localized form (Pacific Standard Time, Nordamerikanische Westküsten-Normalzeit)
|
|
490
|
+
* 'short' // => Short localized form (PST, GMT-8)
|
|
491
|
+
* 'shortOffset' // => Short localized GMT format (GMT-8)
|
|
492
|
+
* 'longOffset' // => Long localized GMT format (GMT-08:00)
|
|
493
|
+
* 'shortGeneric' // => Short generic non-location format (PT, Los Angeles Zeit).
|
|
494
|
+
* 'longGeneric' // => Long generic non-location format (Pacific Time, Nordamerikanische Westküstenzeit)
|
|
495
|
+
*/
|
|
496
|
+
timeZoneName?: keyof typeof TimeZoneName;
|
|
497
|
+
/**
|
|
498
|
+
* Whether to use 12-hour time (as opposed to 24-hour time)
|
|
499
|
+
*/
|
|
500
|
+
hour12?: boolean;
|
|
501
|
+
/**
|
|
502
|
+
* The time zone to use
|
|
503
|
+
* @see https://www.iana.org/time-zones
|
|
504
|
+
*/
|
|
505
|
+
timeZone?: string;
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
export declare const DateTime: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
509
|
+
id?: string | undefined;
|
|
510
|
+
role?: AriaRole | undefined;
|
|
511
|
+
className?: string | undefined;
|
|
512
|
+
} & {
|
|
513
|
+
/**
|
|
514
|
+
* String representing the date in a simplified format based on ISO 8601.
|
|
515
|
+
* Is always 24 or 27 characters long.
|
|
516
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format
|
|
517
|
+
* @see https://en.wikipedia.org/wiki/ISO_8601
|
|
518
|
+
*/
|
|
519
|
+
value?: string | undefined;
|
|
520
|
+
/**
|
|
521
|
+
* Provide a string with a BCP 47 language tag or an Intl.Locale instance,
|
|
522
|
+
* or an array of such locale identifiers. Defaults to user setting
|
|
523
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#locales
|
|
524
|
+
*/
|
|
525
|
+
locale?: Locale | undefined;
|
|
526
|
+
/**
|
|
527
|
+
* Prevents line wrapping of formatted dates and times
|
|
528
|
+
*/
|
|
529
|
+
enableNoWrap?: boolean | undefined;
|
|
530
|
+
} & DateFormatOptions & RefAttributes<HTMLSpanElement>>;
|
|
531
|
+
|
|
424
532
|
export declare const Del: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
425
533
|
id?: string | undefined;
|
|
426
534
|
role?: AriaRole | undefined;
|
|
@@ -914,6 +1022,8 @@ declare type LinkProps = {
|
|
|
914
1022
|
children?: ReactNode;
|
|
915
1023
|
};
|
|
916
1024
|
|
|
1025
|
+
declare type Locale = string | string[];
|
|
1026
|
+
|
|
917
1027
|
declare enum LocaleMatchers {
|
|
918
1028
|
lookup = "lookup",
|
|
919
1029
|
'best fit' = "best fit"
|
|
@@ -1173,10 +1283,11 @@ declare type NumberProps = {
|
|
|
1173
1283
|
/** Provide a value to be formatted */
|
|
1174
1284
|
value?: number;
|
|
1175
1285
|
/**
|
|
1176
|
-
* Provide
|
|
1177
|
-
*
|
|
1286
|
+
* Provide a string with a BCP 47 language tag or an Intl.Locale instance,
|
|
1287
|
+
* or an array of such locale identifiers. Defaults to user setting
|
|
1288
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#locales
|
|
1178
1289
|
*/
|
|
1179
|
-
locale?:
|
|
1290
|
+
locale?: Locale;
|
|
1180
1291
|
/**
|
|
1181
1292
|
* The locale matching algorithm to use
|
|
1182
1293
|
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#localematcher
|
|
@@ -2183,6 +2294,26 @@ export declare type ThemeType = {
|
|
|
2183
2294
|
|
|
2184
2295
|
declare type ThemeType_2 = Partial<typeof theme>;
|
|
2185
2296
|
|
|
2297
|
+
declare enum TimeNamedUnit {
|
|
2298
|
+
long = "long",
|
|
2299
|
+
short = "short",
|
|
2300
|
+
narrow = "narrow"
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
declare enum TimeNumericUnit {
|
|
2304
|
+
numeric = "numeric",
|
|
2305
|
+
'2-digit' = "2-digit"
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
declare enum TimeZoneName {
|
|
2309
|
+
short = "short",
|
|
2310
|
+
long = "long",
|
|
2311
|
+
shortOffset = "shortOffset",
|
|
2312
|
+
longOffset = "longOffset",
|
|
2313
|
+
shortGeneric = "shortGeneric",
|
|
2314
|
+
longGeneric = "longGeneric"
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2186
2317
|
export declare const Toast: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
2187
2318
|
id?: string | undefined;
|
|
2188
2319
|
role?: AriaRole | undefined;
|