@kenlo/kdls-design-system 2.25.1 → 2.27.0
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/ColorScheme/ColorScheme.d.ts +20 -0
- package/dist/components/Theme/Theme.d.ts +9 -1
- package/dist/components/Toggle/Toggle.d.ts +2 -0
- package/dist/index.cjs +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +1852 -1837
- package/foundations/tokens.css +75 -4
- package/kdls-manifest.json +59 -4
- package/package.json +1 -1
package/foundations/tokens.css
CHANGED
|
@@ -3577,9 +3577,11 @@
|
|
|
3577
3577
|
|
|
3578
3578
|
/* ------------------------------------------------------------------------------ */
|
|
3579
3579
|
/* -------------------------------RADIUS VARIANTS-------------------------------- */
|
|
3580
|
+
/* Same values as SDS (Rafael, 18 Nov 2026): flat 0, soft 4/8/16/28, medium 6/12/24/32,
|
|
3581
|
+
rounded 8/16/32/40. The Kenlo-only scheme stays in :root (data-radius="default"). */
|
|
3580
3582
|
[data-radius="soft"] {
|
|
3581
|
-
--corner-radius-x-small:
|
|
3582
|
-
--corner-radius-small:
|
|
3583
|
+
--corner-radius-x-small: 4px;
|
|
3584
|
+
--corner-radius-small: 8px;
|
|
3583
3585
|
--corner-radius-medium: 16px;
|
|
3584
3586
|
--corner-radius-large: 28px;
|
|
3585
3587
|
--corner-radius-full: 9999px;
|
|
@@ -3604,8 +3606,8 @@
|
|
|
3604
3606
|
}
|
|
3605
3607
|
|
|
3606
3608
|
[data-radius="medium"] {
|
|
3607
|
-
--corner-radius-x-small:
|
|
3608
|
-
--corner-radius-small:
|
|
3609
|
+
--corner-radius-x-small: 6px;
|
|
3610
|
+
--corner-radius-small: 12px;
|
|
3609
3611
|
--corner-radius-medium: 24px;
|
|
3610
3612
|
--corner-radius-large: 32px;
|
|
3611
3613
|
--corner-radius-full: 9999px;
|
|
@@ -3651,4 +3653,73 @@
|
|
|
3651
3653
|
--font-family-base: "Montserrat", sans-serif;
|
|
3652
3654
|
}
|
|
3653
3655
|
|
|
3656
|
+
/* Stroke scheme: the thickness of every UI stroke (borders, dividers, outlines). 1px is the default;
|
|
3657
|
+
data-stroke="2|3|4" on <html> (or any ancestor) thickens all of them at once. Strokes drawn at 2px
|
|
3658
|
+
by design read max(2px, --stroke-width), so they never get thinner. Focus rings are not strokes. */
|
|
3659
|
+
:root {
|
|
3660
|
+
--stroke-width: 1px;
|
|
3661
|
+
}
|
|
3662
|
+
|
|
3663
|
+
[data-stroke="2"] {
|
|
3664
|
+
--stroke-width: 2px;
|
|
3665
|
+
}
|
|
3666
|
+
|
|
3667
|
+
[data-stroke="3"] {
|
|
3668
|
+
--stroke-width: 3px;
|
|
3669
|
+
}
|
|
3670
|
+
|
|
3671
|
+
[data-stroke="4"] {
|
|
3672
|
+
--stroke-width: 4px;
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3675
|
+
/* Shadow scheme: "smooth" (default, the blurred shadows above) or "hard" — offset, no blur, in the
|
|
3676
|
+
strongest neutral (black in light, white in dark). Re-declared under a nested dark theme so the
|
|
3677
|
+
colour follows the theme where the shadow is painted. --shadow-on-primary stays as it is. */
|
|
3678
|
+
[data-shadow="hard"],
|
|
3679
|
+
[data-shadow="hard"] [data-theme="dark"],
|
|
3680
|
+
[data-shadow="hard"] [data-theme="light"] {
|
|
3681
|
+
--shadow-hard-color: var(--color-neutral-100);
|
|
3682
|
+
--shadow-drop-sm: 2px 2px 0 0 var(--shadow-hard-color);
|
|
3683
|
+
--shadow-drop-md: 4px 4px 0 0 var(--shadow-hard-color);
|
|
3684
|
+
--shadow-drop-lg: 6px 6px 0 0 var(--shadow-hard-color);
|
|
3685
|
+
--shadow-drop-md-hard: 4px 4px 0 0 var(--shadow-hard-color);
|
|
3686
|
+
--shadow-modal-hard: 8px 8px 0 0 var(--shadow-hard-color);
|
|
3687
|
+
--shadow-drawer-hard: -6px 0 0 0 var(--shadow-hard-color);
|
|
3688
|
+
--shadow-drawer-left-hard: 6px 0 0 0 var(--shadow-hard-color);
|
|
3689
|
+
--shadow-bar-hard: 0 -4px 0 0 var(--shadow-hard-color);
|
|
3690
|
+
}
|
|
3691
|
+
|
|
3692
|
+
/* Display font (optional second font): one font for title small (16px) and up, the base font for
|
|
3693
|
+
body and below. Off by default: every title rule reads --font-family-display and falls back to
|
|
3694
|
+
--font-family-base. data-font-display="<font>" turns it on. */
|
|
3695
|
+
[data-font-display="manrope"] {
|
|
3696
|
+
--font-family-display: "Manrope", sans-serif;
|
|
3697
|
+
--font-stretch-display: 100%;
|
|
3698
|
+
}
|
|
3699
|
+
|
|
3700
|
+
[data-font-display="inter"] {
|
|
3701
|
+
--font-family-display: "Inter", sans-serif;
|
|
3702
|
+
--font-stretch-display: 100%;
|
|
3703
|
+
}
|
|
3704
|
+
|
|
3705
|
+
[data-font-display="helvetica"] {
|
|
3706
|
+
--font-family-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
3707
|
+
--font-stretch-display: 100%;
|
|
3708
|
+
}
|
|
3709
|
+
|
|
3710
|
+
[data-font-display="source-sans"] {
|
|
3711
|
+
--font-family-display: "Source Sans 3", sans-serif;
|
|
3712
|
+
--font-stretch-display: 100%;
|
|
3713
|
+
}
|
|
3714
|
+
|
|
3715
|
+
[data-font-display="nunito"] {
|
|
3716
|
+
--font-family-display: "Nunito", sans-serif;
|
|
3717
|
+
--font-stretch-display: 100%;
|
|
3718
|
+
}
|
|
3719
|
+
|
|
3720
|
+
[data-font-display="montserrat"] {
|
|
3721
|
+
--font-family-display: "Montserrat", sans-serif;
|
|
3722
|
+
--font-stretch-display: 100%;
|
|
3723
|
+
}
|
|
3724
|
+
|
|
3654
3725
|
/* ------------------------------------------------------------------------------ */
|
package/kdls-manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": {
|
|
3
3
|
"name": "@kenlo/kdls-design-system",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.27.0"
|
|
5
5
|
},
|
|
6
6
|
"install": {
|
|
7
7
|
"add": "npm install @kenlo/kdls-design-system",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"counts": {
|
|
15
15
|
"components": 60,
|
|
16
16
|
"propsTables": 85,
|
|
17
|
-
"props":
|
|
18
|
-
"tokens":
|
|
19
|
-
"api":
|
|
17
|
+
"props": 752,
|
|
18
|
+
"tokens": 612,
|
|
19
|
+
"api": 16,
|
|
20
20
|
"icons": 49
|
|
21
21
|
},
|
|
22
22
|
"components": [
|
|
@@ -5858,6 +5858,13 @@
|
|
|
5858
5858
|
"default": "—",
|
|
5859
5859
|
"description": "Nome do item para o leitor de tela — obrigatório na prática quando o item mostra só ícone, que sem ele não tem nome",
|
|
5860
5860
|
"example": "'aria-label': 'Grade'"
|
|
5861
|
+
},
|
|
5862
|
+
{
|
|
5863
|
+
"name": "tooltip",
|
|
5864
|
+
"type": "string",
|
|
5865
|
+
"default": "—",
|
|
5866
|
+
"description": "Texto do Tooltip do DS ao passar o mouse ou focar o item — use para dizer o que é um item só com ícone. Num item só com ícone e sem aria-label, também vira o nome dele para o leitor de tela",
|
|
5867
|
+
"example": "tooltip: 'Grade'"
|
|
5861
5868
|
}
|
|
5862
5869
|
],
|
|
5863
5870
|
"subComponents": []
|
|
@@ -5966,6 +5973,11 @@
|
|
|
5966
5973
|
"import": "import { Toaster } from '@kenlo/kdls-design-system'",
|
|
5967
5974
|
"from": "components/Toast/index.ts"
|
|
5968
5975
|
},
|
|
5976
|
+
{
|
|
5977
|
+
"name": "applyComplementColor",
|
|
5978
|
+
"import": "import { applyComplementColor } from '@kenlo/kdls-design-system'",
|
|
5979
|
+
"from": "components/ColorScheme/ColorScheme.ts"
|
|
5980
|
+
},
|
|
5969
5981
|
{
|
|
5970
5982
|
"name": "applyCustomGradient",
|
|
5971
5983
|
"import": "import { applyCustomGradient } from '@kenlo/kdls-design-system'",
|
|
@@ -5976,6 +5988,11 @@
|
|
|
5976
5988
|
"import": "import { applyCustomScheme } from '@kenlo/kdls-design-system'",
|
|
5977
5989
|
"from": "components/ColorScheme/ColorScheme.ts"
|
|
5978
5990
|
},
|
|
5991
|
+
{
|
|
5992
|
+
"name": "clearComplementColor",
|
|
5993
|
+
"import": "import { clearComplementColor } from '@kenlo/kdls-design-system'",
|
|
5994
|
+
"from": "components/ColorScheme/ColorScheme.ts"
|
|
5995
|
+
},
|
|
5979
5996
|
{
|
|
5980
5997
|
"name": "clearCustomScheme",
|
|
5981
5998
|
"import": "import { clearCustomScheme } from '@kenlo/kdls-design-system'",
|
|
@@ -8294,6 +8311,10 @@
|
|
|
8294
8311
|
"name": "--font-family-base",
|
|
8295
8312
|
"value": "\"Manrope\", -apple-system, BlinkMacSystemFont, sans-serif"
|
|
8296
8313
|
},
|
|
8314
|
+
{
|
|
8315
|
+
"name": "--font-family-display",
|
|
8316
|
+
"value": "\"Manrope\", sans-serif"
|
|
8317
|
+
},
|
|
8297
8318
|
{
|
|
8298
8319
|
"name": "--font-size-body-md",
|
|
8299
8320
|
"value": "16px"
|
|
@@ -8330,6 +8351,10 @@
|
|
|
8330
8351
|
"name": "--font-size-title-sm",
|
|
8331
8352
|
"value": "16px"
|
|
8332
8353
|
},
|
|
8354
|
+
{
|
|
8355
|
+
"name": "--font-stretch-display",
|
|
8356
|
+
"value": "100%"
|
|
8357
|
+
},
|
|
8333
8358
|
{
|
|
8334
8359
|
"name": "--font-weight-bold",
|
|
8335
8360
|
"value": "700"
|
|
@@ -8450,6 +8475,18 @@
|
|
|
8450
8475
|
}
|
|
8451
8476
|
],
|
|
8452
8477
|
"shadow": [
|
|
8478
|
+
{
|
|
8479
|
+
"name": "--shadow-bar-hard",
|
|
8480
|
+
"value": "0 -4px 0 0 var(--shadow-hard-color)"
|
|
8481
|
+
},
|
|
8482
|
+
{
|
|
8483
|
+
"name": "--shadow-drawer-hard",
|
|
8484
|
+
"value": "-6px 0 0 0 var(--shadow-hard-color)"
|
|
8485
|
+
},
|
|
8486
|
+
{
|
|
8487
|
+
"name": "--shadow-drawer-left-hard",
|
|
8488
|
+
"value": "6px 0 0 0 var(--shadow-hard-color)"
|
|
8489
|
+
},
|
|
8453
8490
|
{
|
|
8454
8491
|
"name": "--shadow-drop-lg",
|
|
8455
8492
|
"value": "0 8px 24px 0 rgba(0, 0, 0, 0.16)"
|
|
@@ -8458,10 +8495,22 @@
|
|
|
8458
8495
|
"name": "--shadow-drop-md",
|
|
8459
8496
|
"value": "0 4px 12px 0 rgba(0, 0, 0, 0.12)"
|
|
8460
8497
|
},
|
|
8498
|
+
{
|
|
8499
|
+
"name": "--shadow-drop-md-hard",
|
|
8500
|
+
"value": "4px 4px 0 0 var(--shadow-hard-color)"
|
|
8501
|
+
},
|
|
8461
8502
|
{
|
|
8462
8503
|
"name": "--shadow-drop-sm",
|
|
8463
8504
|
"value": "0 1px 4px 0 rgba(0, 0, 0, 0.12)"
|
|
8464
8505
|
},
|
|
8506
|
+
{
|
|
8507
|
+
"name": "--shadow-hard-color",
|
|
8508
|
+
"value": "var(--color-neutral-100)"
|
|
8509
|
+
},
|
|
8510
|
+
{
|
|
8511
|
+
"name": "--shadow-modal-hard",
|
|
8512
|
+
"value": "8px 8px 0 0 var(--shadow-hard-color)"
|
|
8513
|
+
},
|
|
8465
8514
|
{
|
|
8466
8515
|
"name": "--shadow-on-primary",
|
|
8467
8516
|
"value": "0 1px 3px rgba(0, 0, 0, 0.36)"
|
|
@@ -8525,6 +8574,12 @@
|
|
|
8525
8574
|
"value": "36px"
|
|
8526
8575
|
}
|
|
8527
8576
|
],
|
|
8577
|
+
"stroke": [
|
|
8578
|
+
{
|
|
8579
|
+
"name": "--stroke-width",
|
|
8580
|
+
"value": "1px"
|
|
8581
|
+
}
|
|
8582
|
+
],
|
|
8528
8583
|
"title": [
|
|
8529
8584
|
{
|
|
8530
8585
|
"name": "--title-color",
|