koval-ui 0.12.21 → 0.12.23
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 +2 -0
- package/dist/index.d.ts +33 -33
- package/dist/index.js +1475 -1475
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -22,6 +22,8 @@ Koval UI is component library built for modern browsers. Each component tries to
|
|
|
22
22
|
- Built-in form validation.
|
|
23
23
|
- Typography components.
|
|
24
24
|
|
|
25
|
+
Read [Koval docs](https://koval.support/)
|
|
26
|
+
|
|
25
27
|
See [Koval Storybook](https://morewings.github.io/koval-ui/).
|
|
26
28
|
|
|
27
29
|
## Quickstart
|
package/dist/index.d.ts
CHANGED
|
@@ -1381,130 +1381,130 @@ export declare type ThemeType = {
|
|
|
1381
1381
|
/**
|
|
1382
1382
|
* Main font used by most components of library
|
|
1383
1383
|
*/
|
|
1384
|
-
fontFamily
|
|
1384
|
+
fontFamily?: ThemeType_2['fontFamily'];
|
|
1385
1385
|
/**
|
|
1386
1386
|
* Monospaced font used by <code> and <pre>
|
|
1387
1387
|
*/
|
|
1388
|
-
fontFamilyMonospace
|
|
1388
|
+
fontFamilyMonospace?: ThemeType_2['fontFamilyMonospace'];
|
|
1389
1389
|
/**
|
|
1390
1390
|
* Font size for H1 element
|
|
1391
1391
|
*/
|
|
1392
|
-
fontSizeH1
|
|
1392
|
+
fontSizeH1?: ThemeType_2['fontSizeH1'];
|
|
1393
1393
|
/**
|
|
1394
1394
|
* Font size for H2 element
|
|
1395
1395
|
*/
|
|
1396
|
-
fontSizeH2
|
|
1396
|
+
fontSizeH2?: ThemeType_2['fontSizeH2'];
|
|
1397
1397
|
/**
|
|
1398
1398
|
* Font size for H3 element
|
|
1399
1399
|
*/
|
|
1400
|
-
fontSizeH3
|
|
1400
|
+
fontSizeH3?: ThemeType_2['fontSizeH3'];
|
|
1401
1401
|
/**
|
|
1402
1402
|
* Font size for H4 element
|
|
1403
1403
|
*/
|
|
1404
|
-
fontSizeH4
|
|
1404
|
+
fontSizeH4?: ThemeType_2['fontSizeH4'];
|
|
1405
1405
|
/**
|
|
1406
1406
|
* Font size for H5 element
|
|
1407
1407
|
*/
|
|
1408
|
-
fontSizeH5
|
|
1408
|
+
fontSizeH5?: ThemeType_2['fontSizeH5'];
|
|
1409
1409
|
/**
|
|
1410
1410
|
* Font size for H6 element
|
|
1411
1411
|
*/
|
|
1412
|
-
fontSizeH6
|
|
1412
|
+
fontSizeH6?: ThemeType_2['fontSizeH6'];
|
|
1413
1413
|
/**
|
|
1414
1414
|
* Arbitrary text font size. Used by P element. Expected to be most readable
|
|
1415
1415
|
*/
|
|
1416
|
-
fontSizeText
|
|
1416
|
+
fontSizeText?: ThemeType_2['fontSizeText'];
|
|
1417
1417
|
/**
|
|
1418
1418
|
* Medium font size
|
|
1419
1419
|
*/
|
|
1420
|
-
fontSizeMedium
|
|
1420
|
+
fontSizeMedium?: ThemeType_2['fontSizeMedium'];
|
|
1421
1421
|
/**
|
|
1422
1422
|
* Large font size
|
|
1423
1423
|
*/
|
|
1424
|
-
fontSizeLarge
|
|
1424
|
+
fontSizeLarge?: ThemeType_2['fontSizeLarge'];
|
|
1425
1425
|
/**
|
|
1426
1426
|
* Small font size
|
|
1427
1427
|
*/
|
|
1428
|
-
fontSizeSmall
|
|
1428
|
+
fontSizeSmall?: ThemeType_2['fontSizeSmall'];
|
|
1429
1429
|
/**
|
|
1430
1430
|
* Default font weight. Expected to be most readable
|
|
1431
1431
|
*/
|
|
1432
|
-
fontWeightNormal
|
|
1432
|
+
fontWeightNormal?: ThemeType_2['fontWeightNormal'];
|
|
1433
1433
|
/**
|
|
1434
1434
|
* Bolder font weight. Expected to look outstanding comparing to normal
|
|
1435
1435
|
*/
|
|
1436
|
-
fontWeightBolder
|
|
1436
|
+
fontWeightBolder?: ThemeType_2['fontWeightBolder'];
|
|
1437
1437
|
/**
|
|
1438
1438
|
* Bold font weight. Expected to look outstanding comparing to bolder
|
|
1439
1439
|
*/
|
|
1440
|
-
fontWeightBold
|
|
1440
|
+
fontWeightBold?: ThemeType_2['fontWeightBold'];
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Default text color. Expected to be most readable
|
|
1443
1443
|
*/
|
|
1444
|
-
textColor
|
|
1444
|
+
textColor?: ThemeType_2['textColor'];
|
|
1445
1445
|
/**
|
|
1446
1446
|
* Lowest background level. E.g. paper color
|
|
1447
1447
|
*/
|
|
1448
|
-
background000
|
|
1448
|
+
background000?: ThemeType_2['background000'];
|
|
1449
1449
|
/**
|
|
1450
1450
|
* 100 background level. Good for delicate borders
|
|
1451
1451
|
*/
|
|
1452
|
-
background100
|
|
1453
|
-
background200
|
|
1454
|
-
background300
|
|
1455
|
-
background400
|
|
1452
|
+
background100?: ThemeType_2['background100'];
|
|
1453
|
+
background200?: ThemeType_2['background200'];
|
|
1454
|
+
background300?: ThemeType_2['background300'];
|
|
1455
|
+
background400?: ThemeType_2['background400'];
|
|
1456
1456
|
/**
|
|
1457
1457
|
* 500 background level. Good for strong headers
|
|
1458
1458
|
*/
|
|
1459
|
-
background500
|
|
1459
|
+
background500?: ThemeType_2['background500'];
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Highest background level. E.g. text color
|
|
1462
1462
|
*/
|
|
1463
|
-
background600
|
|
1463
|
+
background600?: ThemeType_2['background600'];
|
|
1464
1464
|
/**
|
|
1465
1465
|
* First brand color. It is most visible in the theme.
|
|
1466
1466
|
* Has to make a good contrast with background000 and background600
|
|
1467
1467
|
*/
|
|
1468
|
-
colorDo
|
|
1468
|
+
colorDo?: ThemeType_2['colorDo'];
|
|
1469
1469
|
/**
|
|
1470
1470
|
* Second brand color. Darkest one. Has to make a good contrast with background000 and colorDo
|
|
1471
1471
|
*/
|
|
1472
|
-
colorRe
|
|
1472
|
+
colorRe?: ThemeType_2['colorRe'];
|
|
1473
1473
|
/**
|
|
1474
1474
|
* Third brand color. Lightest one. Has to make a good contrast with background600 and colorDo
|
|
1475
1475
|
*/
|
|
1476
|
-
colorMi
|
|
1476
|
+
colorMi?: ThemeType_2['colorMi'];
|
|
1477
1477
|
/**
|
|
1478
1478
|
* First alternative brand color. Used when needed to create an accented contrast with colorDo.
|
|
1479
1479
|
* Has to make a good contrast with background000 and background600
|
|
1480
1480
|
*/
|
|
1481
|
-
colorFa
|
|
1481
|
+
colorFa?: ThemeType_2['colorFa'];
|
|
1482
1482
|
/**
|
|
1483
1483
|
* Second alternative brand color. Darkest one.
|
|
1484
1484
|
* Has to make a good contrast with background000 and colorFa
|
|
1485
1485
|
*/
|
|
1486
|
-
colorSol
|
|
1486
|
+
colorSol?: ThemeType_2['colorSol'];
|
|
1487
1487
|
/**
|
|
1488
1488
|
* Third alternative brand color. Lightest one.
|
|
1489
1489
|
* Has to make a good contrast with background600 and colorFa
|
|
1490
1490
|
*/
|
|
1491
|
-
colorLa
|
|
1491
|
+
colorLa?: ThemeType_2['colorLa'];
|
|
1492
1492
|
/**
|
|
1493
1493
|
* Error/danger/failure indication color. Has to make a good contrast with background600 and background000
|
|
1494
1494
|
*/
|
|
1495
|
-
colorError
|
|
1495
|
+
colorError?: ThemeType_2['colorError'];
|
|
1496
1496
|
/**
|
|
1497
1497
|
* Warning indication color. Has to make a good contrast with background600 and background000
|
|
1498
1498
|
*/
|
|
1499
|
-
colorWarning
|
|
1499
|
+
colorWarning?: ThemeType_2['colorWarning'];
|
|
1500
1500
|
/**
|
|
1501
1501
|
* Success/approve/agree indication color. Has to make a good contrast with background600 and background000
|
|
1502
1502
|
*/
|
|
1503
|
-
colorSuccess
|
|
1503
|
+
colorSuccess?: ThemeType_2['colorSuccess'];
|
|
1504
1504
|
/**
|
|
1505
1505
|
* Action/link indication color. Has to make a good contrast with background600 and background000
|
|
1506
1506
|
*/
|
|
1507
|
-
colorAction
|
|
1507
|
+
colorAction?: ThemeType_2['colorAction'];
|
|
1508
1508
|
};
|
|
1509
1509
|
|
|
1510
1510
|
declare type ThemeType_2 = Partial<typeof theme>;
|