@konce-pt/styles 0.15.1 → 0.16.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.
Files changed (2) hide show
  1. package/components.css +160 -3
  2. package/package.json +2 -2
package/components.css CHANGED
@@ -5978,7 +5978,8 @@
5978
5978
  cursor: pointer;
5979
5979
  }
5980
5980
  .kpt-popover__panel {
5981
- max-width: 20rem;
5981
+ box-sizing: border-box;
5982
+ max-width: min(var(--_max-width, 20rem), 100vw - 16px);
5982
5983
  padding: var(--kpt-space-4, 1rem);
5983
5984
  background: var(--kpt-color-surface-raised);
5984
5985
  border: var(--kpt-border-width-thin, 1px) solid var(--kpt-color-border);
@@ -8984,6 +8985,7 @@
8984
8985
  --kpt-chart-stagger: 60ms;
8985
8986
  --kpt-chart-delay: 0ms;
8986
8987
  --kpt-chart-ease: cubic-bezier(0.25, 1, 0.5, 1);
8988
+ --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
8989
  }
8988
8990
  .kpt-chart {
8989
8991
  display: flex;
@@ -9092,10 +9094,9 @@
9092
9094
  .kpt-chart__point--active {
9093
9095
  transform: scale(1.5);
9094
9096
  }
9095
- .kpt-chart__hit {
9097
+ .kpt-chart__hover {
9096
9098
  fill: transparent;
9097
9099
  pointer-events: all;
9098
- cursor: pointer;
9099
9100
  }
9100
9101
  .kpt-chart__bar {
9101
9102
  cursor: pointer;
@@ -9201,6 +9202,42 @@
9201
9202
  .kpt-chart__tooltip--flip {
9202
9203
  transform: translate(-50%, 12px);
9203
9204
  }
9205
+ .kpt-chart__tooltip {
9206
+ transform-origin: 50% 100%;
9207
+ 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;
9208
+ }
9209
+ .kpt-chart__tooltip--hidden {
9210
+ opacity: 0;
9211
+ scale: 0.96;
9212
+ visibility: hidden;
9213
+ 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));
9214
+ }
9215
+ .kpt-chart__tooltip-label {
9216
+ display: inline-block;
9217
+ }
9218
+ .kpt-chart__reels {
9219
+ display: inline-flex;
9220
+ font-variant-numeric: tabular-nums;
9221
+ }
9222
+ .kpt-chart__reel {
9223
+ display: inline-block;
9224
+ height: 1.25em;
9225
+ line-height: 1.25em;
9226
+ overflow: hidden;
9227
+ mask-image: linear-gradient(transparent, var(--kpt-color-on-surface) 12%, var(--kpt-color-on-surface) 88%, transparent);
9228
+ }
9229
+ .kpt-chart__reel-strip {
9230
+ display: flex;
9231
+ flex-direction: column;
9232
+ translate: 0 calc(var(--kpt-chart-digit, 0) * -1.25em);
9233
+ transition: translate calc(0.52s * var(--kpt-motion-scale, 1)) var(--kpt-chart-spring);
9234
+ }
9235
+ .kpt-chart__reel-strip > span,
9236
+ .kpt-chart__reel-text {
9237
+ height: 1.25em;
9238
+ line-height: 1.25em;
9239
+ white-space: pre;
9240
+ }
9204
9241
  .kpt-chart__tooltip-title {
9205
9242
  font-weight: var(--kpt-font-weight-semibold, 600);
9206
9243
  margin-bottom: 2px;
@@ -9281,6 +9318,118 @@
9281
9318
  opacity: 0;
9282
9319
  }
9283
9320
  }
9321
+ .kpt-chart__ghost {
9322
+ pointer-events: none;
9323
+ }
9324
+ .kpt-chart__ghost-line,
9325
+ .kpt-chart__ghost-bar {
9326
+ fill: none;
9327
+ stroke: var(--kpt-color-on-surface-muted);
9328
+ stroke-dasharray: 4 4;
9329
+ animation: kpt-chart-ghost calc(1.7s * var(--kpt-motion-scale, 1)) ease-in forwards;
9330
+ }
9331
+ .kpt-chart__ghost-line {
9332
+ stroke-width: 1.5;
9333
+ }
9334
+ .kpt-chart__ghost-bar {
9335
+ stroke-width: 1;
9336
+ stroke-dasharray: 3 3;
9337
+ }
9338
+ .kpt-chart__delta,
9339
+ .kpt-chart__delta-bar,
9340
+ .kpt-chart__chip {
9341
+ --_kpt-chart-delta: var(--kpt-chart-delta-up, var(--kpt-color-success));
9342
+ }
9343
+ [data-kind=down]:is(.kpt-chart__delta, .kpt-chart__delta-bar, .kpt-chart__chip) {
9344
+ --_kpt-chart-delta: var(--kpt-chart-delta-down, var(--kpt-color-danger));
9345
+ }
9346
+ [data-kind=same]:is(.kpt-chart__delta, .kpt-chart__delta-bar, .kpt-chart__chip) {
9347
+ display: none;
9348
+ }
9349
+ .kpt-chart__delta {
9350
+ stroke: var(--_kpt-chart-delta);
9351
+ stroke-width: 2;
9352
+ stroke-linecap: round;
9353
+ animation: kpt-chart-ghost calc(1.7s * var(--kpt-motion-scale, 1)) ease-in forwards;
9354
+ }
9355
+ .kpt-chart__delta-bar {
9356
+ fill: var(--_kpt-chart-delta);
9357
+ animation: kpt-chart-ghost-soft calc(1.7s * var(--kpt-motion-scale, 1)) ease-in forwards;
9358
+ }
9359
+ .kpt-chart__chip {
9360
+ fill: var(--_kpt-chart-delta);
9361
+ font-size: 10px;
9362
+ font-weight: var(--kpt-font-weight-bold, 700);
9363
+ font-family: var(--kpt-font-family-sans);
9364
+ font-variant-numeric: tabular-nums;
9365
+ pointer-events: none;
9366
+ 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;
9367
+ }
9368
+ .kpt-chart__sheen-stop {
9369
+ stop-color: var(--kpt-chart-sheen, var(--kpt-color-info));
9370
+ }
9371
+ .kpt-chart__sheen-line {
9372
+ fill: none;
9373
+ stroke-width: 5;
9374
+ stroke-linecap: round;
9375
+ filter: blur(1.2px);
9376
+ pointer-events: none;
9377
+ }
9378
+ .kpt-chart__sheen-bar {
9379
+ mix-blend-mode: screen;
9380
+ pointer-events: none;
9381
+ }
9382
+ [data-theme=dark] .kpt-chart__sheen-bar {
9383
+ mix-blend-mode: normal;
9384
+ }
9385
+ .kpt-chart__ripple {
9386
+ fill: none;
9387
+ stroke-width: 2;
9388
+ transform-box: fill-box;
9389
+ transform-origin: center;
9390
+ pointer-events: none;
9391
+ 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;
9392
+ }
9393
+ @keyframes kpt-chart-ghost {
9394
+ 0%, 50% {
9395
+ opacity: 1;
9396
+ }
9397
+ 100% {
9398
+ opacity: 0;
9399
+ }
9400
+ }
9401
+ @keyframes kpt-chart-ghost-soft {
9402
+ 0%, 50% {
9403
+ opacity: 0.45;
9404
+ }
9405
+ 100% {
9406
+ opacity: 0;
9407
+ }
9408
+ }
9409
+ @keyframes kpt-chart-chip {
9410
+ 0% {
9411
+ opacity: 0;
9412
+ translate: 0 6px;
9413
+ }
9414
+ 25%, 75% {
9415
+ opacity: 1;
9416
+ translate: 0 0;
9417
+ }
9418
+ 100% {
9419
+ opacity: 0;
9420
+ translate: 0 -6px;
9421
+ }
9422
+ }
9423
+ @keyframes kpt-chart-ripple {
9424
+ from {
9425
+ opacity: 0.55;
9426
+ scale: 1;
9427
+ }
9428
+ to {
9429
+ opacity: 0;
9430
+ scale: 3.2;
9431
+ }
9432
+ }
9284
9433
  .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
9434
  animation: none;
9286
9435
  stroke-dashoffset: 0;
@@ -9290,6 +9439,14 @@
9290
9439
  animation: none;
9291
9440
  stroke-dashoffset: 0;
9292
9441
  }
9442
+ .kpt-chart__tooltip,
9443
+ .kpt-chart__tooltip--hidden,
9444
+ .kpt-chart__reel-strip {
9445
+ transition: none;
9446
+ }
9447
+ }
9448
+ .kpt-chart--no-anim :is(.kpt-chart__tooltip, .kpt-chart__tooltip--hidden, .kpt-chart__reel-strip) {
9449
+ transition: none;
9293
9450
  }
9294
9451
  .kpt-chart__sr {
9295
9452
  position: absolute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konce-pt/styles",
3
- "version": "0.15.1",
3
+ "version": "0.16.1",
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.15.1"
55
+ "@konce-pt/tokens": "0.16.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "sass": "^1.77.0"