fancy-ui-vue 0.3.0 → 0.4.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/README.md +9 -6
- package/dist/components/magnetic-field/MagnetPuck.vue.d.ts +51 -0
- package/dist/components/magnetic-field/MagnetPuck.vue.js +7 -0
- package/dist/components/magnetic-field/MagnetPuck.vue2.js +191 -0
- package/dist/components/magnetic-field/MagneticField.vue.d.ts +39 -0
- package/dist/components/magnetic-field/MagneticField.vue.js +7 -0
- package/dist/components/magnetic-field/MagneticField.vue2.js +157 -0
- package/dist/components/magnetic-field/MagneticItem.vue.d.ts +28 -0
- package/dist/components/magnetic-field/MagneticItem.vue.js +7 -0
- package/dist/components/magnetic-field/MagneticItem.vue2.js +72 -0
- package/dist/components/magnetic-field/index.d.ts +10 -0
- package/dist/components/magnetic-field/magnetic-field-core.d.ts +163 -0
- package/dist/components/magnetic-field/magnetic-field-core.js +534 -0
- package/dist/components/magnetic-field/magnetic-field-source.d.ts +58 -0
- package/dist/components/magnetic-field/magnetic-field-source.js +58 -0
- package/dist/components/magnetic-field/types.d.ts +14 -0
- package/dist/components/magnetic-field/types.js +5 -0
- package/dist/components/pixel-scene/PixelScene.vue.d.ts +60 -0
- package/dist/components/pixel-scene/PixelScene.vue.js +184 -0
- package/dist/components/pixel-scene/PixelScene.vue2.js +4 -0
- package/dist/components/pixel-scene/index.d.ts +4 -0
- package/dist/components/pixel-scene/pixel-scene-core.d.ts +256 -0
- package/dist/components/pixel-scene/pixel-scene-core.js +878 -0
- package/dist/components/pixel-scene/pixel-scene-hdr.d.ts +68 -0
- package/dist/components/pixel-scene/pixel-scene-hdr.js +312 -0
- package/dist/components/pixel-scene/pixel-scene-scenes.d.ts +31 -0
- package/dist/components/pixel-scene/pixel-scene-scenes.js +1074 -0
- package/dist/components/story-thread/StoryNode.vue.d.ts +11 -0
- package/dist/components/story-thread/StoryNode.vue.js +7 -0
- package/dist/components/story-thread/StoryNode.vue2.js +23 -0
- package/dist/components/story-thread/StoryThread.vue.d.ts +56 -0
- package/dist/components/story-thread/StoryThread.vue.js +7 -0
- package/dist/components/story-thread/StoryThread.vue2.js +103 -0
- package/dist/components/story-thread/index.d.ts +5 -0
- package/dist/components/story-thread/story-thread-core.d.ts +119 -0
- package/dist/components/story-thread/story-thread-core.js +491 -0
- package/dist/components/story-thread/types.d.ts +1 -0
- package/dist/components/sun-switch/SunSwitch.vue.d.ts +61 -0
- package/dist/components/sun-switch/SunSwitch.vue.js +7 -0
- package/dist/components/sun-switch/SunSwitch.vue2.js +559 -0
- package/dist/components/sun-switch/index.d.ts +4 -0
- package/dist/components/sun-switch/pixel-wave-core.d.ts +82 -0
- package/dist/components/sun-switch/pixel-wave-core.js +508 -0
- package/dist/components/sun-switch/sun-switch-core.d.ts +251 -0
- package/dist/components/sun-switch/sun-switch-core.js +546 -0
- package/dist/components/sun-switch/sun-switch-hdr.d.ts +70 -0
- package/dist/components/sun-switch/sun-switch-hdr.js +311 -0
- package/dist/components/tracing-beam/TracingBeam.vue.d.ts +20 -1
- package/dist/components/tracing-beam/TracingBeam.vue.js +5 -164
- package/dist/components/tracing-beam/TracingBeam.vue2.js +168 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +190 -164
- package/dist/styles.css +499 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -6120,6 +6120,125 @@ to {
|
|
|
6120
6120
|
}
|
|
6121
6121
|
}
|
|
6122
6122
|
|
|
6123
|
+
.ft-magnetic-field[data-v-f13a642d] {
|
|
6124
|
+
position: relative;
|
|
6125
|
+
}
|
|
6126
|
+
|
|
6127
|
+
/* The outer node is never transformed: it is the box the field measures. */
|
|
6128
|
+
.ft-magnetic-item[data-v-19627aa5] {
|
|
6129
|
+
position: relative;
|
|
6130
|
+
display: block;
|
|
6131
|
+
}
|
|
6132
|
+
.ft-magnetic-item[data-inline][data-v-19627aa5] {
|
|
6133
|
+
display: inline-block;
|
|
6134
|
+
}
|
|
6135
|
+
|
|
6136
|
+
/* Registered as non-inherited: a write on an inner then restyles that node
|
|
6137
|
+
alone, not its whole subtree. The values the core writes ("3.21px",
|
|
6138
|
+
"1.20deg") match these syntaxes. */
|
|
6139
|
+
@property --ft-mf-x {
|
|
6140
|
+
syntax: "<length>";
|
|
6141
|
+
inherits: false;
|
|
6142
|
+
initial-value: 0px;
|
|
6143
|
+
}
|
|
6144
|
+
@property --ft-mf-y {
|
|
6145
|
+
syntax: "<length>";
|
|
6146
|
+
inherits: false;
|
|
6147
|
+
initial-value: 0px;
|
|
6148
|
+
}
|
|
6149
|
+
@property --ft-mf-r {
|
|
6150
|
+
syntax: "<angle>";
|
|
6151
|
+
inherits: false;
|
|
6152
|
+
initial-value: 0deg;
|
|
6153
|
+
}
|
|
6154
|
+
|
|
6155
|
+
/* The core writes the three variables; the fallbacks keep SSR markup at rest.
|
|
6156
|
+
A 2D transform keeps a resting item off the compositor: the core promotes
|
|
6157
|
+
an item with `will-change` only while it moves. */
|
|
6158
|
+
.ft-magnetic-item-inner[data-v-19627aa5] {
|
|
6159
|
+
display: block;
|
|
6160
|
+
transform: translate(var(--ft-mf-x, 0px), var(--ft-mf-y, 0px)) rotate(var(--ft-mf-r, 0deg));
|
|
6161
|
+
transform-origin: 50% 50%;
|
|
6162
|
+
}
|
|
6163
|
+
.ft-magnetic-item[data-inline] > .ft-magnetic-item-inner[data-v-19627aa5] {
|
|
6164
|
+
display: inline-block;
|
|
6165
|
+
}
|
|
6166
|
+
|
|
6167
|
+
.ft-magnet-puck[data-v-23664b5a] {
|
|
6168
|
+
position: absolute;
|
|
6169
|
+
left: 0;
|
|
6170
|
+
top: 0;
|
|
6171
|
+
z-index: 1;
|
|
6172
|
+
display: grid;
|
|
6173
|
+
place-items: center;
|
|
6174
|
+
border-radius: 9999px;
|
|
6175
|
+
touch-action: none;
|
|
6176
|
+
user-select: none;
|
|
6177
|
+
-webkit-user-select: none;
|
|
6178
|
+
-webkit-tap-highlight-color: transparent;
|
|
6179
|
+
cursor: grab;
|
|
6180
|
+
}
|
|
6181
|
+
.ft-magnet-puck[data-held][data-v-23664b5a] {
|
|
6182
|
+
cursor: grabbing;
|
|
6183
|
+
}
|
|
6184
|
+
.ft-magnet-puck[data-v-23664b5a]:focus {
|
|
6185
|
+
outline: none;
|
|
6186
|
+
}
|
|
6187
|
+
.ft-magnet-puck[data-v-23664b5a]:focus-visible {
|
|
6188
|
+
outline: 2px solid
|
|
6189
|
+
var(--ft-accent, light-dark(oklch(0.5432 0.2528 300.22), oklch(0.604 0.2606 301.75)));
|
|
6190
|
+
outline-offset: 3px;
|
|
6191
|
+
}
|
|
6192
|
+
|
|
6193
|
+
/* A matte black disc: a soft top-left sheen, an inner rim and a cast shadow
|
|
6194
|
+
that deepens when it is lifted. Readable on light and dark surfaces: the rim
|
|
6195
|
+
and the sheen brighten under a dark color scheme. */
|
|
6196
|
+
.ft-magnet-puck-face[data-v-23664b5a] {
|
|
6197
|
+
width: 100%;
|
|
6198
|
+
height: 100%;
|
|
6199
|
+
border-radius: inherit;
|
|
6200
|
+
background: radial-gradient(
|
|
6201
|
+
circle at 34% 28%,
|
|
6202
|
+
light-dark(#3b3b3d, #4a4a4d) 0%,
|
|
6203
|
+
#161617 46%,
|
|
6204
|
+
#050505 100%
|
|
6205
|
+
);
|
|
6206
|
+
box-shadow:
|
|
6207
|
+
inset 0 1px 1px rgb(255 255 255 / 0.16),
|
|
6208
|
+
inset 0 -3px 6px rgb(0 0 0 / 0.55),
|
|
6209
|
+
0 0 0 1px light-dark(rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.16)),
|
|
6210
|
+
0 6px 14px -6px rgb(0 0 0 / 0.55);
|
|
6211
|
+
transition:
|
|
6212
|
+
scale 160ms ease-out,
|
|
6213
|
+
box-shadow 160ms ease-out;
|
|
6214
|
+
}
|
|
6215
|
+
.ft-magnet-puck[data-held] .ft-magnet-puck-face[data-v-23664b5a] {
|
|
6216
|
+
scale: 1.06;
|
|
6217
|
+
box-shadow:
|
|
6218
|
+
inset 0 1px 1px rgb(255 255 255 / 0.18),
|
|
6219
|
+
inset 0 -3px 6px rgb(0 0 0 / 0.55),
|
|
6220
|
+
0 0 0 1px light-dark(rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.2)),
|
|
6221
|
+
0 14px 24px -8px rgb(0 0 0 / 0.6);
|
|
6222
|
+
}
|
|
6223
|
+
|
|
6224
|
+
/* The keyboard hint the puck is described by: read, never seen. */
|
|
6225
|
+
.ft-magnet-puck-hint[data-v-23664b5a] {
|
|
6226
|
+
position: absolute;
|
|
6227
|
+
width: 1px;
|
|
6228
|
+
height: 1px;
|
|
6229
|
+
margin: -1px;
|
|
6230
|
+
padding: 0;
|
|
6231
|
+
overflow: hidden;
|
|
6232
|
+
clip-path: inset(50%);
|
|
6233
|
+
white-space: nowrap;
|
|
6234
|
+
border: 0;
|
|
6235
|
+
}
|
|
6236
|
+
@media (prefers-reduced-motion: reduce) {
|
|
6237
|
+
.ft-magnet-puck-face[data-v-23664b5a] {
|
|
6238
|
+
transition: none;
|
|
6239
|
+
}
|
|
6240
|
+
}
|
|
6241
|
+
|
|
6123
6242
|
.animate-marquee[data-v-4205203a] {
|
|
6124
6243
|
animation: marquee-4205203a calc(var(--duration) / var(--marquee-speed, 1)) linear infinite;
|
|
6125
6244
|
will-change: transform;
|
|
@@ -8723,6 +8842,140 @@ to {
|
|
|
8723
8842
|
}
|
|
8724
8843
|
}
|
|
8725
8844
|
|
|
8845
|
+
.st-root[data-v-dc205dfd] {
|
|
8846
|
+
--story-thread-color: currentColor;
|
|
8847
|
+
--story-thread-faint: color-mix(in oklab, currentColor 22%, transparent);
|
|
8848
|
+
--story-thread-head: var(--story-thread-color);
|
|
8849
|
+
--story-thread-width: 2px;
|
|
8850
|
+
position: relative;
|
|
8851
|
+
outline-offset: -2px;
|
|
8852
|
+
}
|
|
8853
|
+
.st-viewport[data-v-dc205dfd] {
|
|
8854
|
+
position: relative;
|
|
8855
|
+
}
|
|
8856
|
+
.st-track[data-v-dc205dfd] {
|
|
8857
|
+
position: relative;
|
|
8858
|
+
isolation: isolate;
|
|
8859
|
+
}
|
|
8860
|
+
.st-root[data-layout="horizontal"] .st-viewport[data-v-dc205dfd] {
|
|
8861
|
+
position: sticky;
|
|
8862
|
+
top: 0;
|
|
8863
|
+
height: var(--st-vh, 100dvh);
|
|
8864
|
+
overflow: hidden;
|
|
8865
|
+
}
|
|
8866
|
+
.st-root[data-layout="horizontal"] .st-track[data-v-dc205dfd] {
|
|
8867
|
+
display: flex;
|
|
8868
|
+
flex-wrap: nowrap;
|
|
8869
|
+
width: max-content;
|
|
8870
|
+
height: 100%;
|
|
8871
|
+
will-change: transform;
|
|
8872
|
+
}
|
|
8873
|
+
.st-root[data-dragging][data-v-dc205dfd] {
|
|
8874
|
+
cursor: grabbing;
|
|
8875
|
+
user-select: none;
|
|
8876
|
+
}
|
|
8877
|
+
.st-svg[data-v-dc205dfd] {
|
|
8878
|
+
position: absolute;
|
|
8879
|
+
top: 0;
|
|
8880
|
+
left: 0;
|
|
8881
|
+
z-index: -1;
|
|
8882
|
+
overflow: visible;
|
|
8883
|
+
pointer-events: none;
|
|
8884
|
+
}
|
|
8885
|
+
.st-svg[data-v-dc205dfd] .st-ghost,
|
|
8886
|
+
.st-svg[data-v-dc205dfd] .st-bright {
|
|
8887
|
+
fill: none;
|
|
8888
|
+
stroke-width: var(--story-thread-width);
|
|
8889
|
+
stroke-linecap: round;
|
|
8890
|
+
}
|
|
8891
|
+
.st-svg[data-v-dc205dfd] .st-ghost {
|
|
8892
|
+
stroke: var(--story-thread-faint);
|
|
8893
|
+
}
|
|
8894
|
+
.st-svg[data-v-dc205dfd] .st-bright {
|
|
8895
|
+
stroke: var(--st-seg, var(--story-thread-color));
|
|
8896
|
+
}
|
|
8897
|
+
.st-svg[data-v-dc205dfd] .st-mask {
|
|
8898
|
+
fill: none;
|
|
8899
|
+
stroke: #fff;
|
|
8900
|
+
stroke-width: 12;
|
|
8901
|
+
}
|
|
8902
|
+
.st-svg[data-v-dc205dfd] .st-head {
|
|
8903
|
+
color: var(--st-seg, var(--story-thread-head));
|
|
8904
|
+
opacity: 0;
|
|
8905
|
+
transition: opacity 0.3s ease;
|
|
8906
|
+
}
|
|
8907
|
+
.st-svg[data-v-dc205dfd] .st-head[data-visible] {
|
|
8908
|
+
opacity: 1;
|
|
8909
|
+
}
|
|
8910
|
+
.st-svg[data-v-dc205dfd] .st-glow-core {
|
|
8911
|
+
stop-color: var(--st-seg, var(--story-thread-head));
|
|
8912
|
+
stop-opacity: 0.6;
|
|
8913
|
+
}
|
|
8914
|
+
.st-svg[data-v-dc205dfd] .st-glow-edge {
|
|
8915
|
+
stop-color: var(--st-seg, var(--story-thread-head));
|
|
8916
|
+
stop-opacity: 0;
|
|
8917
|
+
}
|
|
8918
|
+
.st-svg[data-v-dc205dfd] .st-head-glow {
|
|
8919
|
+
transform-box: fill-box;
|
|
8920
|
+
transform-origin: center;
|
|
8921
|
+
animation: st-breathe-dc205dfd 1.8s ease-in-out infinite;
|
|
8922
|
+
}
|
|
8923
|
+
.st-svg[data-v-dc205dfd] .st-head-dot {
|
|
8924
|
+
fill: currentColor;
|
|
8925
|
+
}
|
|
8926
|
+
@keyframes st-breathe-dc205dfd {
|
|
8927
|
+
0%,
|
|
8928
|
+
100% {
|
|
8929
|
+
scale: 0.75;
|
|
8930
|
+
opacity: 1;
|
|
8931
|
+
}
|
|
8932
|
+
50% {
|
|
8933
|
+
scale: 1;
|
|
8934
|
+
opacity: 0.7;
|
|
8935
|
+
}
|
|
8936
|
+
}
|
|
8937
|
+
@media (prefers-reduced-motion: reduce) {
|
|
8938
|
+
.st-svg[data-v-dc205dfd] .st-head-glow {
|
|
8939
|
+
animation: none;
|
|
8940
|
+
}
|
|
8941
|
+
}
|
|
8942
|
+
|
|
8943
|
+
.st-node[data-v-c134385b] {
|
|
8944
|
+
display: inline-block;
|
|
8945
|
+
flex: none;
|
|
8946
|
+
width: 10px;
|
|
8947
|
+
height: 10px;
|
|
8948
|
+
border-radius: 9999px;
|
|
8949
|
+
background: var(--story-thread-faint, color-mix(in oklab, currentColor 22%, transparent));
|
|
8950
|
+
transition:
|
|
8951
|
+
background-color 0.35s ease,
|
|
8952
|
+
border-color 0.35s ease,
|
|
8953
|
+
box-shadow 0.35s ease,
|
|
8954
|
+
scale 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
8955
|
+
}
|
|
8956
|
+
.st-node[data-variant="ring"][data-v-c134385b] {
|
|
8957
|
+
width: 14px;
|
|
8958
|
+
height: 14px;
|
|
8959
|
+
background: var(--background, Canvas);
|
|
8960
|
+
border: 2px solid var(--story-thread-faint, color-mix(in oklab, currentColor 22%, transparent));
|
|
8961
|
+
}
|
|
8962
|
+
.st-node[data-reached][data-v-c134385b] {
|
|
8963
|
+
background: var(--story-thread-color, currentColor);
|
|
8964
|
+
scale: 1.15;
|
|
8965
|
+
box-shadow:
|
|
8966
|
+
0 0 0 4px color-mix(in oklab, var(--story-thread-color, currentColor) 16%, transparent),
|
|
8967
|
+
0 0 16px color-mix(in oklab, var(--story-thread-color, currentColor) 45%, transparent);
|
|
8968
|
+
}
|
|
8969
|
+
.st-node[data-variant="ring"][data-reached][data-v-c134385b] {
|
|
8970
|
+
background: var(--background, Canvas);
|
|
8971
|
+
border-color: var(--story-thread-color, currentColor);
|
|
8972
|
+
}
|
|
8973
|
+
@media (prefers-reduced-motion: reduce) {
|
|
8974
|
+
.st-node[data-v-c134385b] {
|
|
8975
|
+
transition: none;
|
|
8976
|
+
}
|
|
8977
|
+
}
|
|
8978
|
+
|
|
8726
8979
|
.ft-subagents[data-v-121c65ce] {
|
|
8727
8980
|
/* Track and badge are mixes of currentColor, so one set of values reads
|
|
8728
8981
|
correctly in both themes. The dot and the bar fill cannot do that — they
|
|
@@ -8886,6 +9139,48 @@ to {
|
|
|
8886
9139
|
}
|
|
8887
9140
|
}
|
|
8888
9141
|
|
|
9142
|
+
.ft-sun-switch[data-v-28e3a9f7] {
|
|
9143
|
+
appearance: none;
|
|
9144
|
+
background: none;
|
|
9145
|
+
border: 0;
|
|
9146
|
+
padding: 0;
|
|
9147
|
+
margin: 0;
|
|
9148
|
+
display: inline-block;
|
|
9149
|
+
position: relative;
|
|
9150
|
+
line-height: 0;
|
|
9151
|
+
color: inherit;
|
|
9152
|
+
cursor: pointer;
|
|
9153
|
+
touch-action: manipulation;
|
|
9154
|
+
border-radius: 4px;
|
|
9155
|
+
-webkit-tap-highlight-color: transparent;
|
|
9156
|
+
}
|
|
9157
|
+
.ft-sun-switch[data-v-28e3a9f7]:focus-visible {
|
|
9158
|
+
outline: 2px solid var(--ft-accent, currentColor);
|
|
9159
|
+
outline-offset: 2px;
|
|
9160
|
+
}
|
|
9161
|
+
.ft-sun-switch[data-v-28e3a9f7]:disabled {
|
|
9162
|
+
cursor: not-allowed;
|
|
9163
|
+
opacity: 0.5;
|
|
9164
|
+
}
|
|
9165
|
+
.ft-sun-switch-canvas[data-v-28e3a9f7] {
|
|
9166
|
+
display: block;
|
|
9167
|
+
width: calc((2 * var(--ft-sun-r) + 1) * var(--ft-sun-cell));
|
|
9168
|
+
height: calc((2 * var(--ft-sun-r) + 1) * var(--ft-sun-cell));
|
|
9169
|
+
image-rendering: pixelated;
|
|
9170
|
+
pointer-events: none;
|
|
9171
|
+
}
|
|
9172
|
+
|
|
9173
|
+
/* HDR squares over the sun canvas: same box, transparent between squares. */
|
|
9174
|
+
.ft-sun-switch-hdr[data-v-28e3a9f7] {
|
|
9175
|
+
position: absolute;
|
|
9176
|
+
inset: 0;
|
|
9177
|
+
display: block;
|
|
9178
|
+
width: 100%;
|
|
9179
|
+
height: 100%;
|
|
9180
|
+
image-rendering: pixelated;
|
|
9181
|
+
pointer-events: none;
|
|
9182
|
+
}
|
|
9183
|
+
|
|
8889
9184
|
/*
|
|
8890
9185
|
* The native input IS the track — restyled, not replaced. The knob is a
|
|
8891
9186
|
* `::after` pseudo-element on it rather than a second DOM node, so the
|
|
@@ -10459,6 +10754,210 @@ to {
|
|
|
10459
10754
|
}
|
|
10460
10755
|
}
|
|
10461
10756
|
|
|
10757
|
+
.tb-root[data-v-297de2d4] {
|
|
10758
|
+
/* Public hooks: --tracing-beam-accent (colour), --tracing-beam-gutter (rail column width).
|
|
10759
|
+
--tb-progress and --tb-height are written by the component. */
|
|
10760
|
+
--_tb-accent: var(--tracing-beam-accent, var(--primary, oklch(0.7 0.13 285)));
|
|
10761
|
+
--_tb-cool: oklch(0.74 0.09 255);
|
|
10762
|
+
/* Light/dark tuning as `light-dark()` pairs, so the beam follows the page's
|
|
10763
|
+
`color-scheme` the way the library's tokens and `dark:` utilities do.
|
|
10764
|
+
Light surfaces: the glow leans on the cool tint so a dark accent never reads as a smudge.
|
|
10765
|
+
Dark surfaces: a near-white accent (the default dark --primary) would wash out, so the
|
|
10766
|
+
cool tint stays in. */
|
|
10767
|
+
--_tb-glow: light-dark(
|
|
10768
|
+
color-mix(in oklab, var(--_tb-accent) 45%, var(--_tb-cool)),
|
|
10769
|
+
color-mix(in oklab, var(--_tb-accent) 40%, var(--_tb-cool))
|
|
10770
|
+
);
|
|
10771
|
+
/* The lamp's core: the glow pushed towards white, never pure white. */
|
|
10772
|
+
--_tb-hot: light-dark(
|
|
10773
|
+
color-mix(in oklab, var(--_tb-glow) 45%, white),
|
|
10774
|
+
color-mix(in oklab, var(--_tb-glow) 55%, white)
|
|
10775
|
+
);
|
|
10776
|
+
--_tb-hair: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
|
|
10777
|
+
--_tb-surface: var(--background, #fafafa);
|
|
10778
|
+
/* The rail already read, and the lamp's spill on the lines being read (core, edge). */
|
|
10779
|
+
--_tb-read: light-dark(
|
|
10780
|
+
color-mix(in oklab, var(--_tb-glow) 26%, transparent),
|
|
10781
|
+
color-mix(in oklab, var(--_tb-glow) 38%, transparent)
|
|
10782
|
+
);
|
|
10783
|
+
--_tb-spill: light-dark(
|
|
10784
|
+
color-mix(in oklab, var(--_tb-glow) 12%, transparent),
|
|
10785
|
+
color-mix(in oklab, var(--_tb-glow) 18%, transparent)
|
|
10786
|
+
);
|
|
10787
|
+
--_tb-spill-edge: light-dark(
|
|
10788
|
+
color-mix(in oklab, var(--_tb-glow) 4%, transparent),
|
|
10789
|
+
color-mix(in oklab, var(--_tb-glow) 6%, transparent)
|
|
10790
|
+
);
|
|
10791
|
+
--_tb-gutter: var(--tracing-beam-gutter, 2.5rem);
|
|
10792
|
+
/* The rail's x inside the gutter. */
|
|
10793
|
+
--_tb-x: 9px;
|
|
10794
|
+
--_tb-ease: cubic-bezier(0.16, 1, 0.3, 1);
|
|
10795
|
+
display: grid;
|
|
10796
|
+
grid-template-columns: var(--_tb-gutter) minmax(0, 1fr);
|
|
10797
|
+
}
|
|
10798
|
+
|
|
10799
|
+
/* The source's `:global(.dark) .tb-root`. Spelled without `:global()` here:
|
|
10800
|
+
the scoped compiler replaces a whole selector that contains `:global(...)`
|
|
10801
|
+
with the wrapped part alone, while a plain ancestor selector is left
|
|
10802
|
+
unscoped and only `.tb-root` gets the attribute. */
|
|
10803
|
+
.dark .tb-root[data-v-297de2d4] {
|
|
10804
|
+
/* Fallback for a `.dark` page that never sets `color-scheme`: the dark branch, forced. */
|
|
10805
|
+
--_tb-glow: color-mix(in oklab, var(--_tb-accent) 40%, var(--_tb-cool));
|
|
10806
|
+
--_tb-hot: color-mix(in oklab, var(--_tb-glow) 55%, white);
|
|
10807
|
+
--_tb-hair: rgba(255, 255, 255, 0.1);
|
|
10808
|
+
--_tb-read: color-mix(in oklab, var(--_tb-glow) 38%, transparent);
|
|
10809
|
+
--_tb-spill: color-mix(in oklab, var(--_tb-glow) 18%, transparent);
|
|
10810
|
+
--_tb-spill-edge: color-mix(in oklab, var(--_tb-glow) 6%, transparent);
|
|
10811
|
+
}
|
|
10812
|
+
.tb-gutter[data-v-297de2d4] {
|
|
10813
|
+
position: relative;
|
|
10814
|
+
pointer-events: none;
|
|
10815
|
+
}
|
|
10816
|
+
.tb-content[data-v-297de2d4] {
|
|
10817
|
+
min-width: 0;
|
|
10818
|
+
}
|
|
10819
|
+
|
|
10820
|
+
/* ── Rail ─────────────────────────────────────────────── */
|
|
10821
|
+
.tb-rail[data-v-297de2d4] {
|
|
10822
|
+
position: absolute;
|
|
10823
|
+
top: 0;
|
|
10824
|
+
bottom: 0;
|
|
10825
|
+
left: calc(var(--_tb-x) - 1px);
|
|
10826
|
+
width: 3px;
|
|
10827
|
+
-webkit-mask-image: linear-gradient(
|
|
10828
|
+
to bottom,
|
|
10829
|
+
transparent,
|
|
10830
|
+
#000 24px,
|
|
10831
|
+
#000 calc(100% - 24px),
|
|
10832
|
+
transparent
|
|
10833
|
+
);
|
|
10834
|
+
mask-image: linear-gradient(
|
|
10835
|
+
to bottom,
|
|
10836
|
+
transparent,
|
|
10837
|
+
#000 24px,
|
|
10838
|
+
#000 calc(100% - 24px),
|
|
10839
|
+
transparent
|
|
10840
|
+
);
|
|
10841
|
+
}
|
|
10842
|
+
.tb-hair[data-v-297de2d4],
|
|
10843
|
+
.tb-trail[data-v-297de2d4] {
|
|
10844
|
+
position: absolute;
|
|
10845
|
+
inset: 0 auto 0 1px;
|
|
10846
|
+
width: 1px;
|
|
10847
|
+
}
|
|
10848
|
+
.tb-hair[data-v-297de2d4] {
|
|
10849
|
+
background: var(--_tb-hair);
|
|
10850
|
+
}
|
|
10851
|
+
|
|
10852
|
+
/* What has been read stays softly lit; it brightens into the lamp; nothing past it. */
|
|
10853
|
+
.tb-trail[data-v-297de2d4] {
|
|
10854
|
+
background: linear-gradient(
|
|
10855
|
+
to bottom,
|
|
10856
|
+
var(--_tb-read),
|
|
10857
|
+
var(--_tb-read) calc(var(--tb-progress) - 180px),
|
|
10858
|
+
color-mix(in oklab, var(--_tb-glow) 90%, transparent) var(--tb-progress),
|
|
10859
|
+
transparent var(--tb-progress)
|
|
10860
|
+
);
|
|
10861
|
+
}
|
|
10862
|
+
|
|
10863
|
+
/* ── Markers: one tick per heading, lit once the lamp has passed ── */
|
|
10864
|
+
.tb-tick[data-v-297de2d4] {
|
|
10865
|
+
position: absolute;
|
|
10866
|
+
left: calc(var(--_tb-x) - 1px);
|
|
10867
|
+
height: 1px;
|
|
10868
|
+
width: 12px;
|
|
10869
|
+
margin-top: -0.5px;
|
|
10870
|
+
background: var(--_tb-hair);
|
|
10871
|
+
transform-origin: left center;
|
|
10872
|
+
transform: scaleX(0.5);
|
|
10873
|
+
transition:
|
|
10874
|
+
background-color 0.5s var(--_tb-ease),
|
|
10875
|
+
transform 0.5s var(--_tb-ease),
|
|
10876
|
+
box-shadow 0.5s var(--_tb-ease);
|
|
10877
|
+
}
|
|
10878
|
+
.tb-tick[data-v-297de2d4]::before {
|
|
10879
|
+
/* The notch on the rail itself: a 5px dot the tick grows from. */
|
|
10880
|
+
content: "";
|
|
10881
|
+
position: absolute;
|
|
10882
|
+
left: -2px;
|
|
10883
|
+
top: -2px;
|
|
10884
|
+
width: 5px;
|
|
10885
|
+
height: 5px;
|
|
10886
|
+
border-radius: 999px;
|
|
10887
|
+
background: var(--_tb-surface);
|
|
10888
|
+
box-shadow: 0 0 0 1px var(--_tb-hair);
|
|
10889
|
+
transition: inherit;
|
|
10890
|
+
}
|
|
10891
|
+
.tb-tick[data-lit="true"][data-v-297de2d4] {
|
|
10892
|
+
background: color-mix(in oklab, var(--_tb-glow) 80%, transparent);
|
|
10893
|
+
transform: scaleX(1);
|
|
10894
|
+
box-shadow: 0 0 6px color-mix(in oklab, var(--_tb-glow) 60%, transparent);
|
|
10895
|
+
}
|
|
10896
|
+
.tb-tick[data-lit="true"][data-v-297de2d4]::before {
|
|
10897
|
+
background: var(--_tb-hot);
|
|
10898
|
+
box-shadow:
|
|
10899
|
+
0 0 0 1px color-mix(in oklab, var(--_tb-glow) 70%, transparent),
|
|
10900
|
+
0 0 8px color-mix(in oklab, var(--_tb-glow) 60%, transparent);
|
|
10901
|
+
}
|
|
10902
|
+
|
|
10903
|
+
/* ── Lamp: a short hot segment on the rail, and its light spilling onto the lines being read ── */
|
|
10904
|
+
.tb-head[data-v-297de2d4] {
|
|
10905
|
+
position: absolute;
|
|
10906
|
+
top: 0;
|
|
10907
|
+
left: var(--_tb-x);
|
|
10908
|
+
width: 0;
|
|
10909
|
+
height: 0;
|
|
10910
|
+
transform: translate3d(0, var(--tb-progress), 0);
|
|
10911
|
+
opacity: 0;
|
|
10912
|
+
transition: opacity 0.3s ease;
|
|
10913
|
+
}
|
|
10914
|
+
.tb-head[data-ready="true"][data-v-297de2d4] {
|
|
10915
|
+
opacity: 1;
|
|
10916
|
+
}
|
|
10917
|
+
.tb-lamp[data-v-297de2d4] {
|
|
10918
|
+
position: absolute;
|
|
10919
|
+
left: -1.5px;
|
|
10920
|
+
top: -14px;
|
|
10921
|
+
width: 3px;
|
|
10922
|
+
height: 28px;
|
|
10923
|
+
border-radius: 999px;
|
|
10924
|
+
background: linear-gradient(
|
|
10925
|
+
to bottom,
|
|
10926
|
+
color-mix(in oklab, var(--_tb-glow) 60%, transparent),
|
|
10927
|
+
var(--_tb-hot) 35%,
|
|
10928
|
+
var(--_tb-hot) 65%,
|
|
10929
|
+
color-mix(in oklab, var(--_tb-glow) 60%, transparent)
|
|
10930
|
+
);
|
|
10931
|
+
box-shadow:
|
|
10932
|
+
0 0 5px color-mix(in oklab, var(--_tb-glow) 90%, transparent),
|
|
10933
|
+
0 0 18px 3px color-mix(in oklab, var(--_tb-glow) 60%, transparent);
|
|
10934
|
+
}
|
|
10935
|
+
.tb-spill[data-v-297de2d4] {
|
|
10936
|
+
position: absolute;
|
|
10937
|
+
left: 0;
|
|
10938
|
+
top: -56px;
|
|
10939
|
+
width: 220px;
|
|
10940
|
+
height: 112px;
|
|
10941
|
+
border-radius: 999px;
|
|
10942
|
+
background: radial-gradient(
|
|
10943
|
+
farthest-side at 0 50%,
|
|
10944
|
+
var(--_tb-spill),
|
|
10945
|
+
var(--_tb-spill-edge) 45%,
|
|
10946
|
+
transparent
|
|
10947
|
+
);
|
|
10948
|
+
filter: blur(8px);
|
|
10949
|
+
}
|
|
10950
|
+
|
|
10951
|
+
/* ── Reduced motion: the lamp still reads, it just does not trail or fade ── */
|
|
10952
|
+
.tb-root[data-motion="reduced"] .tb-tick[data-v-297de2d4],
|
|
10953
|
+
.tb-root[data-motion="reduced"] .tb-tick[data-v-297de2d4]::before,
|
|
10954
|
+
.tb-root[data-motion="reduced"] .tb-head[data-v-297de2d4] {
|
|
10955
|
+
transition: none;
|
|
10956
|
+
}
|
|
10957
|
+
.tb-root[data-motion="reduced"] .tb-spill[data-v-297de2d4] {
|
|
10958
|
+
display: none;
|
|
10959
|
+
}
|
|
10960
|
+
|
|
10462
10961
|
.ft-dot[data-v-427c8a36] {
|
|
10463
10962
|
display: block;
|
|
10464
10963
|
width: var(--ft-typing-size);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fancy-ui-vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Animated UI components for Vue — the Vue counterpart of fancy-ui-svelte. WebGL, GSAP and CSS motion, styled with Tailwind CSS v4.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Rama Herbin",
|