@konce-pt/styles 0.15.0 → 0.16.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/components.css +158 -2
- package/package.json +2 -2
package/components.css
CHANGED
|
@@ -8984,6 +8984,7 @@
|
|
|
8984
8984
|
--kpt-chart-stagger: 60ms;
|
|
8985
8985
|
--kpt-chart-delay: 0ms;
|
|
8986
8986
|
--kpt-chart-ease: cubic-bezier(0.25, 1, 0.5, 1);
|
|
8987
|
+
--kpt-chart-spring: linear(0, 0.0521, 0.1747, 0.3278, 0.4847, 0.6288, 0.7513, 0.849, 0.9224, 0.9741, 1.0077, 1.0272, 1.0364, 1.0384, 1.0359, 1.031, 1.025, 1.019, 1.0136, 1.009, 1.0054, 1.0027, 1.0008, 0.9996, 0.9989, 0.9986, 0.9985, 0.9986, 0.9988, 0.9991, 0.9993, 0.9995, 0.9997, 0.9998, 0.9999, 1, 1, 1, 1.0001, 1.0001, 1);
|
|
8987
8988
|
}
|
|
8988
8989
|
.kpt-chart {
|
|
8989
8990
|
display: flex;
|
|
@@ -9092,10 +9093,9 @@
|
|
|
9092
9093
|
.kpt-chart__point--active {
|
|
9093
9094
|
transform: scale(1.5);
|
|
9094
9095
|
}
|
|
9095
|
-
.kpt-
|
|
9096
|
+
.kpt-chart__hover {
|
|
9096
9097
|
fill: transparent;
|
|
9097
9098
|
pointer-events: all;
|
|
9098
|
-
cursor: pointer;
|
|
9099
9099
|
}
|
|
9100
9100
|
.kpt-chart__bar {
|
|
9101
9101
|
cursor: pointer;
|
|
@@ -9201,6 +9201,42 @@
|
|
|
9201
9201
|
.kpt-chart__tooltip--flip {
|
|
9202
9202
|
transform: translate(-50%, 12px);
|
|
9203
9203
|
}
|
|
9204
|
+
.kpt-chart__tooltip {
|
|
9205
|
+
transform-origin: 50% 100%;
|
|
9206
|
+
transition: opacity calc(0.16s * var(--kpt-motion-scale, 1)) var(--kpt-chart-ease), scale calc(0.16s * var(--kpt-motion-scale, 1)) var(--kpt-chart-ease), visibility 0s;
|
|
9207
|
+
}
|
|
9208
|
+
.kpt-chart__tooltip--hidden {
|
|
9209
|
+
opacity: 0;
|
|
9210
|
+
scale: 0.96;
|
|
9211
|
+
visibility: hidden;
|
|
9212
|
+
transition: opacity calc(0.14s * var(--kpt-motion-scale, 1)) ease-in, scale calc(0.14s * var(--kpt-motion-scale, 1)) ease-in, visibility 0s calc(0.14s * var(--kpt-motion-scale, 1));
|
|
9213
|
+
}
|
|
9214
|
+
.kpt-chart__tooltip-label {
|
|
9215
|
+
display: inline-block;
|
|
9216
|
+
}
|
|
9217
|
+
.kpt-chart__reels {
|
|
9218
|
+
display: inline-flex;
|
|
9219
|
+
font-variant-numeric: tabular-nums;
|
|
9220
|
+
}
|
|
9221
|
+
.kpt-chart__reel {
|
|
9222
|
+
display: inline-block;
|
|
9223
|
+
height: 1.25em;
|
|
9224
|
+
line-height: 1.25em;
|
|
9225
|
+
overflow: hidden;
|
|
9226
|
+
mask-image: linear-gradient(transparent, var(--kpt-color-on-surface) 12%, var(--kpt-color-on-surface) 88%, transparent);
|
|
9227
|
+
}
|
|
9228
|
+
.kpt-chart__reel-strip {
|
|
9229
|
+
display: flex;
|
|
9230
|
+
flex-direction: column;
|
|
9231
|
+
translate: 0 calc(var(--kpt-chart-digit, 0) * -1.25em);
|
|
9232
|
+
transition: translate calc(0.52s * var(--kpt-motion-scale, 1)) var(--kpt-chart-spring);
|
|
9233
|
+
}
|
|
9234
|
+
.kpt-chart__reel-strip > span,
|
|
9235
|
+
.kpt-chart__reel-text {
|
|
9236
|
+
height: 1.25em;
|
|
9237
|
+
line-height: 1.25em;
|
|
9238
|
+
white-space: pre;
|
|
9239
|
+
}
|
|
9204
9240
|
.kpt-chart__tooltip-title {
|
|
9205
9241
|
font-weight: var(--kpt-font-weight-semibold, 600);
|
|
9206
9242
|
margin-bottom: 2px;
|
|
@@ -9281,6 +9317,118 @@
|
|
|
9281
9317
|
opacity: 0;
|
|
9282
9318
|
}
|
|
9283
9319
|
}
|
|
9320
|
+
.kpt-chart__ghost {
|
|
9321
|
+
pointer-events: none;
|
|
9322
|
+
}
|
|
9323
|
+
.kpt-chart__ghost-line,
|
|
9324
|
+
.kpt-chart__ghost-bar {
|
|
9325
|
+
fill: none;
|
|
9326
|
+
stroke: var(--kpt-color-on-surface-muted);
|
|
9327
|
+
stroke-dasharray: 4 4;
|
|
9328
|
+
animation: kpt-chart-ghost calc(1.7s * var(--kpt-motion-scale, 1)) ease-in forwards;
|
|
9329
|
+
}
|
|
9330
|
+
.kpt-chart__ghost-line {
|
|
9331
|
+
stroke-width: 1.5;
|
|
9332
|
+
}
|
|
9333
|
+
.kpt-chart__ghost-bar {
|
|
9334
|
+
stroke-width: 1;
|
|
9335
|
+
stroke-dasharray: 3 3;
|
|
9336
|
+
}
|
|
9337
|
+
.kpt-chart__delta,
|
|
9338
|
+
.kpt-chart__delta-bar,
|
|
9339
|
+
.kpt-chart__chip {
|
|
9340
|
+
--_kpt-chart-delta: var(--kpt-chart-delta-up, var(--kpt-color-success));
|
|
9341
|
+
}
|
|
9342
|
+
[data-kind=down]:is(.kpt-chart__delta, .kpt-chart__delta-bar, .kpt-chart__chip) {
|
|
9343
|
+
--_kpt-chart-delta: var(--kpt-chart-delta-down, var(--kpt-color-danger));
|
|
9344
|
+
}
|
|
9345
|
+
[data-kind=same]:is(.kpt-chart__delta, .kpt-chart__delta-bar, .kpt-chart__chip) {
|
|
9346
|
+
display: none;
|
|
9347
|
+
}
|
|
9348
|
+
.kpt-chart__delta {
|
|
9349
|
+
stroke: var(--_kpt-chart-delta);
|
|
9350
|
+
stroke-width: 2;
|
|
9351
|
+
stroke-linecap: round;
|
|
9352
|
+
animation: kpt-chart-ghost calc(1.7s * var(--kpt-motion-scale, 1)) ease-in forwards;
|
|
9353
|
+
}
|
|
9354
|
+
.kpt-chart__delta-bar {
|
|
9355
|
+
fill: var(--_kpt-chart-delta);
|
|
9356
|
+
animation: kpt-chart-ghost-soft calc(1.7s * var(--kpt-motion-scale, 1)) ease-in forwards;
|
|
9357
|
+
}
|
|
9358
|
+
.kpt-chart__chip {
|
|
9359
|
+
fill: var(--_kpt-chart-delta);
|
|
9360
|
+
font-size: 10px;
|
|
9361
|
+
font-weight: var(--kpt-font-weight-bold, 700);
|
|
9362
|
+
font-family: var(--kpt-font-family-sans);
|
|
9363
|
+
font-variant-numeric: tabular-nums;
|
|
9364
|
+
pointer-events: none;
|
|
9365
|
+
animation: kpt-chart-chip calc(1.3s * var(--kpt-motion-scale, 1)) cubic-bezier(0.2, 0, 0, 1) calc((0.38s + var(--kpt-chart-i, 0) * 0.04s) * var(--kpt-motion-scale, 1)) both;
|
|
9366
|
+
}
|
|
9367
|
+
.kpt-chart__sheen-stop {
|
|
9368
|
+
stop-color: var(--kpt-chart-sheen, var(--kpt-color-info));
|
|
9369
|
+
}
|
|
9370
|
+
.kpt-chart__sheen-line {
|
|
9371
|
+
fill: none;
|
|
9372
|
+
stroke-width: 5;
|
|
9373
|
+
stroke-linecap: round;
|
|
9374
|
+
filter: blur(1.2px);
|
|
9375
|
+
pointer-events: none;
|
|
9376
|
+
}
|
|
9377
|
+
.kpt-chart__sheen-bar {
|
|
9378
|
+
mix-blend-mode: screen;
|
|
9379
|
+
pointer-events: none;
|
|
9380
|
+
}
|
|
9381
|
+
[data-theme=dark] .kpt-chart__sheen-bar {
|
|
9382
|
+
mix-blend-mode: normal;
|
|
9383
|
+
}
|
|
9384
|
+
.kpt-chart__ripple {
|
|
9385
|
+
fill: none;
|
|
9386
|
+
stroke-width: 2;
|
|
9387
|
+
transform-box: fill-box;
|
|
9388
|
+
transform-origin: center;
|
|
9389
|
+
pointer-events: none;
|
|
9390
|
+
animation: kpt-chart-ripple calc(0.52s * var(--kpt-motion-scale, 1)) cubic-bezier(0.2, 0, 0, 1) calc(0.24s * var(--kpt-motion-scale, 1)) both;
|
|
9391
|
+
}
|
|
9392
|
+
@keyframes kpt-chart-ghost {
|
|
9393
|
+
0%, 50% {
|
|
9394
|
+
opacity: 1;
|
|
9395
|
+
}
|
|
9396
|
+
100% {
|
|
9397
|
+
opacity: 0;
|
|
9398
|
+
}
|
|
9399
|
+
}
|
|
9400
|
+
@keyframes kpt-chart-ghost-soft {
|
|
9401
|
+
0%, 50% {
|
|
9402
|
+
opacity: 0.45;
|
|
9403
|
+
}
|
|
9404
|
+
100% {
|
|
9405
|
+
opacity: 0;
|
|
9406
|
+
}
|
|
9407
|
+
}
|
|
9408
|
+
@keyframes kpt-chart-chip {
|
|
9409
|
+
0% {
|
|
9410
|
+
opacity: 0;
|
|
9411
|
+
translate: 0 6px;
|
|
9412
|
+
}
|
|
9413
|
+
25%, 75% {
|
|
9414
|
+
opacity: 1;
|
|
9415
|
+
translate: 0 0;
|
|
9416
|
+
}
|
|
9417
|
+
100% {
|
|
9418
|
+
opacity: 0;
|
|
9419
|
+
translate: 0 -6px;
|
|
9420
|
+
}
|
|
9421
|
+
}
|
|
9422
|
+
@keyframes kpt-chart-ripple {
|
|
9423
|
+
from {
|
|
9424
|
+
opacity: 0.55;
|
|
9425
|
+
scale: 1;
|
|
9426
|
+
}
|
|
9427
|
+
to {
|
|
9428
|
+
opacity: 0;
|
|
9429
|
+
scale: 3.2;
|
|
9430
|
+
}
|
|
9431
|
+
}
|
|
9284
9432
|
.kpt-chart--no-anim :is(.kpt-chart__line, .kpt-chart__area, .kpt-chart__point, .kpt-chart__bar, .kpt-chart__slice, .kpt-chart__radar-area) {
|
|
9285
9433
|
animation: none;
|
|
9286
9434
|
stroke-dashoffset: 0;
|
|
@@ -9290,6 +9438,14 @@
|
|
|
9290
9438
|
animation: none;
|
|
9291
9439
|
stroke-dashoffset: 0;
|
|
9292
9440
|
}
|
|
9441
|
+
.kpt-chart__tooltip,
|
|
9442
|
+
.kpt-chart__tooltip--hidden,
|
|
9443
|
+
.kpt-chart__reel-strip {
|
|
9444
|
+
transition: none;
|
|
9445
|
+
}
|
|
9446
|
+
}
|
|
9447
|
+
.kpt-chart--no-anim :is(.kpt-chart__tooltip, .kpt-chart__tooltip--hidden, .kpt-chart__reel-strip) {
|
|
9448
|
+
transition: none;
|
|
9293
9449
|
}
|
|
9294
9450
|
.kpt-chart__sr {
|
|
9295
9451
|
position: absolute;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konce-pt/styles",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Base CSS for Koncept UI - reset, cascade @layer ordering and neutral light/dark theme (SCSS source).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "konce.pt",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"src"
|
|
53
53
|
],
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@konce-pt/tokens": "0.
|
|
55
|
+
"@konce-pt/tokens": "0.16.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"sass": "^1.77.0"
|