opus-react 0.4.6 → 0.5.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/index.css CHANGED
@@ -4657,10 +4657,65 @@
4657
4657
  padding: 6px;
4658
4658
  display: grid;
4659
4659
  position: absolute;
4660
- overflow: hidden;
4660
+ overflow: visible;
4661
+ }
4662
+
4663
+ .opus_UUVDVQ_pointer {
4664
+ z-index: 2;
4665
+ pointer-events: none;
4666
+ width: 18px;
4667
+ height: 10px;
4668
+ display: block;
4669
+ position: absolute;
4670
+ overflow: visible;
4671
+ }
4672
+
4673
+ .opus_UUVDVQ_menu[data-show-pointer="true"] {
4674
+ --opus-pointed-menu-surface: color-mix(in srgb,
4675
+ var(--opus-accent) 5%,
4676
+ #070b18);
4677
+ background: radial-gradient(circle at 10% 0%,
4678
+ color-mix(in srgb, var(--opus-accent) 14%, transparent),
4679
+ transparent 34%),
4680
+ var(--opus-pointed-menu-surface);
4681
+ backdrop-filter: none;
4682
+ }
4683
+
4684
+ .opus_UUVDVQ_menu[data-show-pointer="true"][data-theme="light"] {
4685
+ --opus-pointed-menu-surface: color-mix(in srgb,
4686
+ var(--opus-accent) 4%,
4687
+ #f8fafc);
4688
+ }
4689
+
4690
+ .opus_UUVDVQ_menu[data-placement="bottom-start"] > .opus_UUVDVQ_pointer {
4691
+ top: -9.5px;
4692
+ left: 14px;
4693
+ }
4694
+
4695
+ .opus_UUVDVQ_menu[data-placement="bottom-start"] > .opus_UUVDVQ_pointer path:first-child {
4696
+ fill: color-mix(in srgb,
4697
+ var(--opus-accent) 14%,
4698
+ var(--opus-pointed-menu-surface));
4699
+ }
4700
+
4701
+ .opus_UUVDVQ_menu[data-placement="bottom-end"] > .opus_UUVDVQ_pointer {
4702
+ top: -9px;
4703
+ right: 14px;
4704
+ }
4705
+
4706
+ .opus_UUVDVQ_menu[data-placement="top-start"] > .opus_UUVDVQ_pointer {
4707
+ bottom: -9px;
4708
+ left: 14px;
4709
+ transform: rotate(180deg);
4661
4710
  }
4662
4711
 
4663
- .opus_UUVDVQ_menu > * {
4712
+ .opus_UUVDVQ_menu[data-placement="top-end"] > .opus_UUVDVQ_pointer {
4713
+ bottom: -9px;
4714
+ right: 14px;
4715
+ transform: rotate(180deg);
4716
+ }
4717
+
4718
+ .opus_UUVDVQ_menu > :not(.opus_UUVDVQ_pointer) {
4664
4719
  z-index: 1;
4665
4720
  position: relative;
4666
4721
  }
@@ -4717,6 +4772,15 @@
4717
4772
  right: 0;
4718
4773
  }
4719
4774
 
4775
+ .opus_UUVDVQ_menu[data-portaled="true"][data-placement="top-start"] {
4776
+ bottom: auto;
4777
+ }
4778
+
4779
+ .opus_UUVDVQ_menu[data-portaled="true"][data-placement="top-end"] {
4780
+ bottom: auto;
4781
+ right: auto;
4782
+ }
4783
+
4720
4784
  .opus_UUVDVQ_item {
4721
4785
  border-radius: var(--opus-input-radius);
4722
4786
  width: 100%;
@@ -19973,17 +20037,20 @@ button.opus_Fxxd7-_card:focus-visible {
19973
20037
  --clock-number-radius: 92px;
19974
20038
  --clock-text: #f8fafc;
19975
20039
  --clock-muted: #94a3b8;
19976
- --clock-face-border: #ffffff21;
19977
- --clock-face-bg: radial-gradient(circle at 40% 32%, #26364d 0%, #111c2e 45%, #08111f 100%);
20040
+ --clock-face-border: color-mix(in srgb, var(--opus-accent) 32%, #ffffff21);
20041
+ --clock-face-bg: radial-gradient(circle at 40% 32%, color-mix(in srgb, var(--opus-accent) 28%, #26364d) 0%, color-mix(in srgb, var(--opus-accent) 14%, #111c2e) 45%, #08111f 100%);
19978
20042
  --clock-face-shadow: 0 24px 60px #0006,
20043
+ 0 0 40px color-mix(in srgb, var(--opus-accent) 18%, transparent),
19979
20044
  inset 0 0 35px #00000073,
19980
20045
  inset 0 1px 1px #ffffff1a;
19981
- --clock-tick: #cbd5e1;
19982
- --clock-tick-opacity: .35;
19983
- --clock-number: #e2e8f0;
19984
- --clock-hour-hand-color: #f8fafc;
19985
- --clock-minute-hand-color: #cbd5e1;
20046
+ --clock-tick: color-mix(in srgb, var(--opus-accent) 35%, #cbd5e1);
20047
+ --clock-tick-opacity: .4;
20048
+ --clock-hour-tick: var(--opus-accent);
20049
+ --clock-number: color-mix(in srgb, var(--opus-accent) 22%, #e2e8f0);
20050
+ --clock-hour-hand-color: color-mix(in srgb, var(--opus-accent) 18%, #f8fafc);
20051
+ --clock-minute-hand-color: color-mix(in srgb, var(--opus-accent) 28%, #cbd5e1);
19986
20052
  --clock-hand-shadow: 0 2px 8px #0000004d;
20053
+ --clock-digital: color-mix(in srgb, var(--opus-accent) 28%, var(--clock-text));
19987
20054
  color: var(--clock-text);
19988
20055
  font: inherit;
19989
20056
  flex-direction: column;
@@ -19994,17 +20061,20 @@ button.opus_Fxxd7-_card:focus-visible {
19994
20061
  [data-preview-root][data-theme="light"] .opus_Lj91mC_root, [data-theme="light"] .opus_Lj91mC_root {
19995
20062
  --clock-text: var(--opus-text);
19996
20063
  --clock-muted: var(--opus-muted);
19997
- --clock-face-border: color-mix(in srgb, var(--opus-border) 85%, transparent);
19998
- --clock-face-bg: radial-gradient(circle at 40% 32%, #fff 0%, #f4f7fb 42%, #e6ebf3 100%);
20064
+ --clock-face-border: color-mix(in srgb, var(--opus-accent) 28%, var(--opus-border));
20065
+ --clock-face-bg: radial-gradient(circle at 40% 32%, color-mix(in srgb, var(--opus-accent) 12%, #fff) 0%, color-mix(in srgb, var(--opus-accent) 8%, #f4f7fb) 42%, color-mix(in srgb, var(--opus-accent) 6%, #e6ebf3) 100%);
19999
20066
  --clock-face-shadow: 0 20px 48px color-mix(in srgb, var(--opus-text) 10%, transparent),
20067
+ 0 0 36px color-mix(in srgb, var(--opus-accent) 14%, transparent),
20000
20068
  inset 0 0 28px color-mix(in srgb, var(--opus-text) 6%, transparent),
20001
20069
  inset 0 1px 1px #fffffff2;
20002
- --clock-tick: color-mix(in srgb, var(--opus-text) 42%, transparent);
20003
- --clock-tick-opacity: .45;
20004
- --clock-number: var(--opus-text);
20005
- --clock-hour-hand-color: var(--opus-text);
20006
- --clock-minute-hand-color: color-mix(in srgb, var(--opus-text) 62%, var(--opus-muted));
20070
+ --clock-tick: color-mix(in srgb, var(--opus-accent) 40%, var(--opus-text));
20071
+ --clock-tick-opacity: .35;
20072
+ --clock-hour-tick: var(--opus-accent);
20073
+ --clock-number: color-mix(in srgb, var(--opus-accent) 35%, var(--opus-text));
20074
+ --clock-hour-hand-color: color-mix(in srgb, var(--opus-accent) 22%, var(--opus-text));
20075
+ --clock-minute-hand-color: color-mix(in srgb, var(--opus-accent) 40%, var(--opus-muted));
20007
20076
  --clock-hand-shadow: 0 2px 8px color-mix(in srgb, var(--opus-text) 14%, transparent);
20077
+ --clock-digital: color-mix(in srgb, var(--opus-accent) 45%, var(--opus-text));
20008
20078
  }
20009
20079
 
20010
20080
  .opus_Lj91mC_root[data-size="sm"] {
@@ -20054,8 +20124,10 @@ button.opus_Fxxd7-_card:focus-visible {
20054
20124
 
20055
20125
  .opus_Lj91mC_tick[data-hour-mark="true"] {
20056
20126
  opacity: 1;
20127
+ background: var(--clock-hour-tick);
20057
20128
  width: 3px;
20058
20129
  height: 12px;
20130
+ box-shadow: 0 0 8px color-mix(in srgb, var(--opus-accent) 45%, transparent);
20059
20131
  }
20060
20132
 
20061
20133
  .opus_Lj91mC_number {
@@ -20120,6 +20192,7 @@ button.opus_Fxxd7-_card:focus-visible {
20120
20192
  }
20121
20193
 
20122
20194
  .opus_Lj91mC_digitalTime {
20195
+ color: var(--clock-digital);
20123
20196
  font-variant-numeric: tabular-nums;
20124
20197
  letter-spacing: -.04em;
20125
20198
  margin-top: 30px;
@@ -20139,6 +20212,312 @@ button.opus_Fxxd7-_card:focus-visible {
20139
20212
  font-size: 14px;
20140
20213
  }
20141
20214
 
20215
+ /* components/FlipClock/FlipClock.module.css */
20216
+ .opus_U6YEpK_root {
20217
+ --flip-w: 74px;
20218
+ --flip-h: 100px;
20219
+ --flip-font: calc(var(--flip-h) * .78);
20220
+ --flip-ink-x: 0px;
20221
+ --flip-ink-y: 0px;
20222
+ --flip-gap: 12px;
20223
+ --flip-pair-gap: 6px;
20224
+ --flip-radius: 12px;
20225
+ --flip-duration: .65s;
20226
+ --flip-text: #f8fafc;
20227
+ --flip-muted: #94a3b8;
20228
+ --flip-face: linear-gradient(180deg,
20229
+ color-mix(in srgb, var(--opus-accent) 14%, #070b12) 0%,
20230
+ color-mix(in srgb, var(--opus-accent) 18%, #0e1520) 18%,
20231
+ color-mix(in srgb, var(--opus-accent) 34%, #2a3548) 50%,
20232
+ color-mix(in srgb, var(--opus-accent) 18%, #0e1520) 82%,
20233
+ color-mix(in srgb, var(--opus-accent) 14%, #070b12) 100%);
20234
+ --flip-border: color-mix(in srgb, var(--opus-accent) 40%, #ffffff24);
20235
+ --flip-shadow: 0 22px 48px #0000006b,
20236
+ 0 0 30px color-mix(in srgb, var(--opus-accent) 20%, transparent);
20237
+ --flip-hinge: color-mix(in srgb, var(--opus-accent) 50%, #000000a6);
20238
+ --flip-digit: color-mix(in srgb, var(--opus-accent) 24%, var(--flip-text));
20239
+ --flip-separator: var(--opus-accent);
20240
+ color: var(--flip-text);
20241
+ font-family: inherit;
20242
+ font-size: var(--flip-font);
20243
+ flex-direction: column;
20244
+ align-items: center;
20245
+ font-style: normal;
20246
+ font-weight: 700;
20247
+ line-height: 1;
20248
+ display: flex;
20249
+ position: relative;
20250
+ }
20251
+
20252
+ [data-preview-root][data-theme="light"] .opus_U6YEpK_root, [data-theme="light"] .opus_U6YEpK_root {
20253
+ --flip-text: var(--opus-text);
20254
+ --flip-muted: var(--opus-muted);
20255
+ --flip-face: linear-gradient(180deg,
20256
+ color-mix(in srgb, var(--opus-accent) 6%, #d5dbe6) 0%,
20257
+ color-mix(in srgb, var(--opus-accent) 8%, #e4e9f1) 18%,
20258
+ color-mix(in srgb, var(--opus-accent) 12%, #fff) 50%,
20259
+ color-mix(in srgb, var(--opus-accent) 8%, #e4e9f1) 82%,
20260
+ color-mix(in srgb, var(--opus-accent) 6%, #d5dbe6) 100%);
20261
+ --flip-border: color-mix(in srgb, var(--opus-accent) 30%, var(--opus-border));
20262
+ --flip-shadow: 0 18px 40px color-mix(in srgb, var(--opus-text) 12%, transparent),
20263
+ 0 0 24px color-mix(in srgb, var(--opus-accent) 14%, transparent);
20264
+ --flip-hinge: color-mix(in srgb, var(--opus-accent) 38%, var(--opus-border));
20265
+ --flip-digit: color-mix(in srgb, var(--opus-accent) 42%, var(--opus-text));
20266
+ }
20267
+
20268
+ .opus_U6YEpK_root[data-size="sm"] {
20269
+ --flip-w: 50px;
20270
+ --flip-h: 68px;
20271
+ --flip-gap: 8px;
20272
+ --flip-pair-gap: 4px;
20273
+ --flip-radius: 10px;
20274
+ }
20275
+
20276
+ .opus_U6YEpK_root[data-size="lg"] {
20277
+ --flip-w: 100px;
20278
+ --flip-h: 136px;
20279
+ --flip-gap: 16px;
20280
+ --flip-pair-gap: 8px;
20281
+ --flip-radius: 16px;
20282
+ }
20283
+
20284
+ .opus_U6YEpK_root[data-frames="true"] {
20285
+ --flip-duration: .12s;
20286
+ }
20287
+
20288
+ .opus_U6YEpK_loading {
20289
+ color: var(--flip-muted);
20290
+ font-size: 14px;
20291
+ }
20292
+
20293
+ .opus_U6YEpK_board {
20294
+ align-items: center;
20295
+ gap: var(--flip-gap);
20296
+ perspective: 1200px;
20297
+ perspective-origin: 50% 42%;
20298
+ display: flex;
20299
+ }
20300
+
20301
+ .opus_U6YEpK_pair {
20302
+ gap: var(--flip-pair-gap);
20303
+ display: flex;
20304
+ }
20305
+
20306
+ .opus_U6YEpK_rotor {
20307
+ width: var(--flip-w);
20308
+ height: var(--flip-h);
20309
+ border: 1px solid var(--flip-border);
20310
+ border-radius: var(--flip-radius);
20311
+ background: var(--flip-face);
20312
+ box-shadow: var(--flip-shadow);
20313
+ color: var(--flip-digit);
20314
+ font-family: inherit;
20315
+ font-size: var(--flip-font);
20316
+ font-variant-numeric: tabular-nums lining-nums;
20317
+ font-feature-settings: "tnum" 1, "lnum" 1;
20318
+ text-align: center;
20319
+ transform-style: preserve-3d;
20320
+ user-select: none;
20321
+ font-weight: 700;
20322
+ line-height: 1;
20323
+ position: relative;
20324
+ overflow: hidden;
20325
+ }
20326
+
20327
+ .opus_U6YEpK_rotor:after {
20328
+ content: "";
20329
+ z-index: 10;
20330
+ background: var(--flip-hinge);
20331
+ pointer-events: none;
20332
+ height: 1px;
20333
+ position: absolute;
20334
+ top: 50%;
20335
+ left: 0;
20336
+ right: 0;
20337
+ transform: translateY(-50%);
20338
+ }
20339
+
20340
+ .opus_U6YEpK_panel {
20341
+ height: 50%;
20342
+ box-shadow: none;
20343
+ background-image: var(--flip-face);
20344
+ background-size: 100% var(--flip-h);
20345
+ background-repeat: no-repeat;
20346
+ border: 0;
20347
+ position: absolute;
20348
+ left: 0;
20349
+ right: 0;
20350
+ overflow: hidden;
20351
+ }
20352
+
20353
+ .opus_U6YEpK_panelTop {
20354
+ z-index: 1;
20355
+ background-position: top;
20356
+ top: 0;
20357
+ }
20358
+
20359
+ .opus_U6YEpK_panelBottom {
20360
+ z-index: 1;
20361
+ background-position: bottom;
20362
+ bottom: 0;
20363
+ }
20364
+
20365
+ .opus_U6YEpK_figure {
20366
+ width: 100%;
20367
+ height: var(--flip-h);
20368
+ text-align: center;
20369
+ justify-content: center;
20370
+ align-items: center;
20371
+ margin: 0;
20372
+ padding: 0;
20373
+ line-height: 1;
20374
+ display: flex;
20375
+ position: absolute;
20376
+ top: 0;
20377
+ left: 0;
20378
+ right: 0;
20379
+ }
20380
+
20381
+ .opus_U6YEpK_glyph {
20382
+ text-align: center;
20383
+ font-variant-numeric: tabular-nums lining-nums;
20384
+ font-feature-settings: "tnum" 1, "lnum" 1;
20385
+ width: 1em;
20386
+ transform: translate(var(--flip-ink-x), var(--flip-ink-y));
20387
+ margin: 0;
20388
+ padding: 0;
20389
+ line-height: 1;
20390
+ display: block;
20391
+ }
20392
+
20393
+ .opus_U6YEpK_probe {
20394
+ width: var(--flip-w);
20395
+ height: var(--flip-h);
20396
+ opacity: 0;
20397
+ pointer-events: none;
20398
+ z-index: -1;
20399
+ position: absolute;
20400
+ top: 0;
20401
+ left: 0;
20402
+ overflow: hidden;
20403
+ }
20404
+
20405
+ .opus_U6YEpK_probe .opus_U6YEpK_figure {
20406
+ position: relative;
20407
+ }
20408
+
20409
+ .opus_U6YEpK_probe .opus_U6YEpK_glyph {
20410
+ transform: none;
20411
+ }
20412
+
20413
+ .opus_U6YEpK_panelBottom .opus_U6YEpK_figure, .opus_U6YEpK_leafRear .opus_U6YEpK_figure {
20414
+ top: calc(var(--flip-h) / -2);
20415
+ }
20416
+
20417
+ .opus_U6YEpK_leaf {
20418
+ z-index: 4;
20419
+ transform-origin: 50%;
20420
+ transform-style: preserve-3d;
20421
+ animation: opus_U6YEpK_leafFlip var(--flip-duration) cubic-bezier(.33, .1, .15, 1) forwards;
20422
+ pointer-events: none;
20423
+ will-change: transform;
20424
+ position: absolute;
20425
+ inset: 0;
20426
+ }
20427
+
20428
+ @keyframes opus_U6YEpK_leafFlip {
20429
+ from {
20430
+ transform: rotateX(0);
20431
+ }
20432
+
20433
+ to {
20434
+ transform: rotateX(-180deg);
20435
+ }
20436
+ }
20437
+
20438
+ .opus_U6YEpK_leafFace {
20439
+ height: 50%;
20440
+ box-shadow: none;
20441
+ -webkit-backface-visibility: hidden;
20442
+ backface-visibility: hidden;
20443
+ background-image: var(--flip-face);
20444
+ background-size: 100% var(--flip-h);
20445
+ background-repeat: no-repeat;
20446
+ border: 0;
20447
+ border-radius: 0;
20448
+ outline: none;
20449
+ position: absolute;
20450
+ top: 0;
20451
+ left: 0;
20452
+ right: 0;
20453
+ overflow: hidden;
20454
+ }
20455
+
20456
+ .opus_U6YEpK_leafFront {
20457
+ background-position: top;
20458
+ }
20459
+
20460
+ .opus_U6YEpK_leafRear {
20461
+ background-position: bottom;
20462
+ transform: rotateX(180deg);
20463
+ }
20464
+
20465
+ .opus_U6YEpK_separator {
20466
+ gap: calc(var(--flip-h) * .18);
20467
+ place-items: center;
20468
+ padding-inline: 2px;
20469
+ display: grid;
20470
+ }
20471
+
20472
+ .opus_U6YEpK_separator span {
20473
+ width: calc(var(--flip-w) * .15);
20474
+ height: calc(var(--flip-w) * .15);
20475
+ background: var(--flip-separator);
20476
+ box-shadow: 0 0 14px color-mix(in srgb, var(--opus-accent) 75%, transparent);
20477
+ border-radius: 50%;
20478
+ animation: 1s step-end infinite opus_U6YEpK_colonPulse;
20479
+ }
20480
+
20481
+ @keyframes opus_U6YEpK_colonPulse {
20482
+ 0%, 49% {
20483
+ opacity: 1;
20484
+ }
20485
+
20486
+ 50%, 100% {
20487
+ opacity: .3;
20488
+ }
20489
+ }
20490
+
20491
+ .opus_U6YEpK_date {
20492
+ color: var(--flip-muted);
20493
+ text-align: center;
20494
+ margin-top: 18px;
20495
+ font-size: 14px;
20496
+ }
20497
+
20498
+ .opus_U6YEpK_srOnly {
20499
+ clip: rect(0, 0, 0, 0);
20500
+ white-space: nowrap;
20501
+ border: 0;
20502
+ width: 1px;
20503
+ height: 1px;
20504
+ margin: -1px;
20505
+ padding: 0;
20506
+ position: absolute;
20507
+ overflow: hidden;
20508
+ }
20509
+
20510
+ @media (prefers-reduced-motion: reduce) {
20511
+ .opus_U6YEpK_leaf {
20512
+ animation: none;
20513
+ display: none;
20514
+ }
20515
+
20516
+ .opus_U6YEpK_separator span {
20517
+ animation: none;
20518
+ }
20519
+ }
20520
+
20142
20521
  /* components/VisuallyHidden/VisuallyHidden.module.css */
20143
20522
  .opus_DIv7wy_hidden {
20144
20523
  clip: rect(0, 0, 0, 0);