@adminide-stack/clock-tik-browser 12.0.23-alpha.1 → 12.0.23

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.
@@ -0,0 +1,362 @@
1
+ import {jsx}from'react/jsx-runtime';/**
2
+ * MarkdownPageStyles
3
+ * ------------------
4
+ * Scoped (md-*) animation + glass styles for the documentation layout.
5
+ * Inlined so this module doesn't depend on any external CSS pipeline.
6
+ *
7
+ * Conventions:
8
+ * - Every class prefixed with `md-` to avoid collisions.
9
+ * - All motion respects `prefers-reduced-motion`.
10
+ * - Sidebar items use staggered entrance via `--i` (item index).
11
+ */
12
+ const MarkdownPageStyles = () => {
13
+ return jsx("style", {
14
+ // eslint-disable-next-line react/no-danger
15
+ dangerouslySetInnerHTML: {
16
+ __html: `
17
+ /* --- Documentation Layout Effects (scoped by md- prefix) --- */
18
+
19
+ /* Glass sidebar: subtle frosted surface that lets the canvas peek through. */
20
+ .md-sidebar-glass {
21
+ background: hsl(var(--background) / 0.72);
22
+ backdrop-filter: blur(18px) saturate(160%);
23
+ -webkit-backdrop-filter: blur(18px) saturate(160%);
24
+ border-right: 1px solid hsl(var(--border) / 0.6);
25
+ box-shadow: 0 8px 40px -20px rgba(0, 0, 0, 0.25);
26
+ }
27
+
28
+ .dark .md-sidebar-glass {
29
+ background: hsl(var(--background) / 0.55);
30
+ border-right-color: hsl(var(--border) / 0.5);
31
+ box-shadow: 0 12px 60px -25px rgba(0, 0, 0, 0.55);
32
+ }
33
+
34
+ /* Content surface: gives the article column an elevated card feel against the aurora. */
35
+ .md-content-surface {
36
+ background: hsl(var(--background) / 0.78);
37
+ backdrop-filter: blur(10px) saturate(140%);
38
+ -webkit-backdrop-filter: blur(10px) saturate(140%);
39
+ border: 1px solid hsl(var(--border) / 0.45);
40
+ border-radius: 1.25rem;
41
+ box-shadow:
42
+ 0 1px 0 hsl(var(--foreground) / 0.04) inset,
43
+ 0 30px 80px -40px rgba(0, 0, 0, 0.35);
44
+ transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
45
+ }
46
+
47
+ .dark .md-content-surface {
48
+ background: hsl(var(--background) / 0.62);
49
+ border-color: hsl(var(--border) / 0.4);
50
+ box-shadow:
51
+ 0 1px 0 hsl(var(--foreground) / 0.04) inset,
52
+ 0 40px 100px -40px rgba(0, 0, 0, 0.7);
53
+ }
54
+
55
+ /* The inner MarkdownPage from admin-layout paints an opaque bg-background on
56
+ its own wrapper, which would hide the aurora behind our content surface.
57
+ Reset those layers to transparent so the card glass effect actually works. */
58
+ .md-content-surface .docs-article,
59
+ .md-content-surface .docs-article > div {
60
+ background: transparent !important;
61
+ }
62
+
63
+ /* Drop the min-h-screen from the inner wrapper so the card hugs its content. */
64
+ .md-content-surface .docs-article {
65
+ min-height: 0 !important;
66
+ }
67
+
68
+ /* Soft gradient brand-mark behind the sidebar title. */
69
+ .md-sidebar-brand {
70
+ background: linear-gradient(135deg, hsl(var(--primary) / 0.18), hsl(var(--primary) / 0.04));
71
+ border: 1px solid hsl(var(--primary) / 0.22);
72
+ box-shadow: 0 0 24px hsl(var(--primary) / 0.18);
73
+ transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
74
+ box-shadow 0.4s ease, background 0.4s ease;
75
+ }
76
+
77
+ .md-sidebar-brand:hover {
78
+ transform: translateY(-1px) rotate(-2deg) scale(1.04);
79
+ box-shadow: 0 0 32px hsl(var(--primary) / 0.32);
80
+ }
81
+
82
+ /* Page-level fade-in for the main column. Runs once on first mount. */
83
+ .md-page-enter {
84
+ animation: mdPageIn 600ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
85
+ }
86
+
87
+ @keyframes mdPageIn {
88
+ from { opacity: 0; transform: translateY(8px); filter: blur(6px); }
89
+ to { opacity: 1; transform: translateY(0); filter: blur(0); }
90
+ }
91
+
92
+ /* Soft "content swap" played on every navigation between docs. Just an opacity
93
+ dip — no blur, no translate — so the layout stays anchored and the eye
94
+ doesn't have to re-fixate. The DOM is NOT unmounted between docs, so the
95
+ previous article stays visible until the new article's HTML lands. */
96
+ .md-content-swap {
97
+ animation: mdContentSwap 280ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
98
+ }
99
+
100
+ @keyframes mdContentSwap {
101
+ 0% { opacity: 0.55; }
102
+ 60% { opacity: 0.92; }
103
+ 100% { opacity: 1; }
104
+ }
105
+
106
+ /* Sidebar entrance — staggered slide-in driven by --i (set inline). */
107
+ .md-nav-item {
108
+ --i: 0;
109
+ opacity: 0;
110
+ transform: translateX(-10px);
111
+ animation: mdNavIn 520ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
112
+ animation-delay: calc(var(--i) * 28ms + 60ms);
113
+ }
114
+
115
+ @keyframes mdNavIn {
116
+ from { opacity: 0; transform: translateX(-10px); filter: blur(4px); }
117
+ to { opacity: 1; transform: translateX(0); filter: blur(0); }
118
+ }
119
+
120
+ /* Per-item hover lift: a tiny shift right + subtle background, plus a sliding
121
+ indicator line on the left edge that grows on hover. */
122
+ .md-nav-link {
123
+ position: relative;
124
+ overflow: hidden;
125
+ transition: color 200ms ease, background-color 220ms ease, transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
126
+ }
127
+
128
+ .md-nav-link::before {
129
+ content: '';
130
+ position: absolute;
131
+ left: 0;
132
+ top: 50%;
133
+ width: 3px;
134
+ height: 0;
135
+ border-radius: 0 9999px 9999px 0;
136
+ background: hsl(var(--primary));
137
+ transform: translateY(-50%);
138
+ transition: height 260ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease;
139
+ opacity: 0;
140
+ }
141
+
142
+ .md-nav-link:hover::before {
143
+ height: 18px;
144
+ opacity: 0.45;
145
+ }
146
+
147
+ .md-nav-link.md-nav-active::before {
148
+ height: 22px;
149
+ opacity: 1;
150
+ box-shadow: 0 0 12px hsl(var(--primary) / 0.55);
151
+ }
152
+
153
+ .md-nav-link:hover {
154
+ transform: translateX(2px);
155
+ }
156
+
157
+ .md-nav-link.md-nav-active {
158
+ background: linear-gradient(90deg, hsl(var(--primary) / 0.16), hsl(var(--primary) / 0.02));
159
+ }
160
+
161
+ /* Toggle button keeps the chevron buttery; rotates with a slight overshoot. */
162
+ .md-nav-chevron {
163
+ transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
164
+ }
165
+ .md-nav-chevron.md-rotated {
166
+ transform: rotate(90deg);
167
+ }
168
+
169
+ /* Children collapse/expand: smooth height + opacity using grid-rows trick. */
170
+ .md-nav-children {
171
+ display: grid;
172
+ grid-template-rows: 0fr;
173
+ transition: grid-template-rows 280ms cubic-bezier(0.2, 0.9, 0.2, 1),
174
+ opacity 220ms ease;
175
+ opacity: 0;
176
+ }
177
+
178
+ .md-nav-children > .md-nav-children-inner {
179
+ min-height: 0;
180
+ overflow: hidden;
181
+ }
182
+
183
+ .md-nav-children.md-open {
184
+ grid-template-rows: 1fr;
185
+ opacity: 1;
186
+ }
187
+
188
+ /* Scroll progress bar: a slim ribbon across the very top of the viewport. */
189
+ .md-progress {
190
+ position: fixed;
191
+ top: 0;
192
+ left: 0;
193
+ right: 0;
194
+ height: 3px;
195
+ background: transparent;
196
+ pointer-events: none;
197
+ z-index: 60;
198
+ }
199
+
200
+ .md-progress-bar {
201
+ height: 100%;
202
+ width: 0%;
203
+ background: linear-gradient(90deg,
204
+ hsl(var(--primary)) 0%,
205
+ hsl(var(--primary) / 0.6) 60%,
206
+ transparent 100%);
207
+ box-shadow: 0 0 12px hsl(var(--primary) / 0.55);
208
+ transition: width 120ms linear;
209
+ }
210
+
211
+ /* Theme toggle pill: animated highlight slides under the active button. */
212
+ .md-toggle-pill {
213
+ position: relative;
214
+ display: flex;
215
+ align-items: center;
216
+ gap: 0.25rem;
217
+ padding: 0.25rem;
218
+ border-radius: 0.625rem;
219
+ background: hsl(var(--muted) / 0.6);
220
+ border: 1px solid hsl(var(--border) / 0.5);
221
+ overflow: hidden;
222
+ }
223
+
224
+ .md-toggle-knob {
225
+ position: absolute;
226
+ top: 0.25rem;
227
+ bottom: 0.25rem;
228
+ width: calc(50% - 0.25rem);
229
+ border-radius: 0.5rem;
230
+ background: hsl(var(--background));
231
+ box-shadow: 0 2px 8px hsl(var(--foreground) / 0.10),
232
+ 0 0 0 1px hsl(var(--border) / 0.4);
233
+ transition: transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
234
+ }
235
+
236
+ .md-toggle-knob.md-knob-right {
237
+ transform: translateX(calc(100% + 0.25rem));
238
+ }
239
+
240
+ .md-toggle-btn {
241
+ position: relative;
242
+ z-index: 1;
243
+ flex: 1;
244
+ display: inline-flex;
245
+ align-items: center;
246
+ justify-content: center;
247
+ gap: 0.375rem;
248
+ padding: 0.375rem 0;
249
+ font-size: 0.75rem;
250
+ font-weight: 500;
251
+ border-radius: 0.5rem;
252
+ transition: color 240ms ease;
253
+ background: transparent;
254
+ border: none;
255
+ cursor: pointer;
256
+ }
257
+
258
+ /* TOC links: animated dot indicator + smooth indent on active. */
259
+ .md-toc-link {
260
+ position: relative;
261
+ transition: color 200ms ease, padding-left 240ms cubic-bezier(0.2, 0.9, 0.2, 1);
262
+ }
263
+
264
+ .md-toc-link::before {
265
+ content: '';
266
+ position: absolute;
267
+ left: -10px;
268
+ top: 50%;
269
+ width: 4px;
270
+ height: 4px;
271
+ border-radius: 9999px;
272
+ background: hsl(var(--primary));
273
+ transform: translateY(-50%) scale(0);
274
+ transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
275
+ }
276
+
277
+ .md-toc-link.md-toc-active {
278
+ padding-left: 8px;
279
+ }
280
+
281
+ .md-toc-link.md-toc-active::before {
282
+ transform: translateY(-50%) scale(1);
283
+ box-shadow: 0 0 8px hsl(var(--primary) / 0.6);
284
+ }
285
+
286
+ /* Article reveal: each immediate child of the article body slides up
287
+ slightly as it enters the viewport. Driven by IntersectionObserver. */
288
+ .md-reveal {
289
+ opacity: 0;
290
+ transform: translateY(12px);
291
+ transition: opacity 540ms cubic-bezier(0.2, 0.9, 0.2, 1),
292
+ transform 540ms cubic-bezier(0.2, 0.9, 0.2, 1),
293
+ filter 540ms cubic-bezier(0.2, 0.9, 0.2, 1);
294
+ filter: blur(4px);
295
+ will-change: transform, opacity, filter;
296
+ }
297
+
298
+ .md-reveal.md-revealed {
299
+ opacity: 1;
300
+ transform: translateY(0);
301
+ filter: blur(0);
302
+ }
303
+
304
+ /* Cursor-following glow that hangs gently behind the content surface. */
305
+ .md-cursor-glow {
306
+ pointer-events: none;
307
+ position: fixed;
308
+ width: 480px;
309
+ height: 480px;
310
+ border-radius: 9999px;
311
+ transform: translate3d(-50%, -50%, 0);
312
+ background: radial-gradient(circle, hsl(var(--primary) / 0.20) 0%, hsl(var(--primary) / 0.06) 35%, transparent 65%);
313
+ filter: blur(40px);
314
+ z-index: 0;
315
+ opacity: 0;
316
+ transition: opacity 500ms ease;
317
+ mix-blend-mode: screen;
318
+ }
319
+
320
+ .dark .md-cursor-glow {
321
+ mix-blend-mode: screen;
322
+ }
323
+
324
+ .md-cursor-glow.md-glow-on {
325
+ opacity: 0.65;
326
+ }
327
+
328
+ /* Search input lift: subtle on focus. */
329
+ .md-search-wrap {
330
+ border-radius: 0.75rem;
331
+ transition: box-shadow 240ms ease, transform 240ms ease;
332
+ }
333
+
334
+ .md-search-wrap:focus-within {
335
+ box-shadow: 0 0 0 3px hsl(var(--primary) / 0.18),
336
+ 0 6px 20px -8px hsl(var(--primary) / 0.35);
337
+ transform: translateY(-1px);
338
+ }
339
+
340
+ /* Reduced motion: kill all the motion. */
341
+ @media (prefers-reduced-motion: reduce) {
342
+ .md-page-enter,
343
+ .md-content-swap,
344
+ .md-nav-item,
345
+ .md-reveal,
346
+ .md-nav-link,
347
+ .md-nav-chevron,
348
+ .md-nav-children,
349
+ .md-toggle-knob,
350
+ .md-toc-link,
351
+ .md-cursor-glow,
352
+ .md-search-wrap {
353
+ animation: none !important;
354
+ transition: none !important;
355
+ }
356
+ .md-reveal { opacity: 1; transform: none; filter: none; }
357
+ .md-nav-item { opacity: 1; transform: none; }
358
+ }
359
+ `
360
+ }
361
+ });
362
+ };export{MarkdownPageStyles};//# sourceMappingURL=MarkdownPageStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkdownPageStyles.js","sources":["../../../src/pages/Markdown/MarkdownPageStyles.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"oCAEA;;;;;;;;;;AAUG;AACI,MAAM,kBAAkB,GAAa,MAAK;AAC7C,EAAA,OAAAA,GACI,CAAA,OAAA,EAAA;;AAEI,IAAA,uBAAA,EAAA;AACI,MAAA,MAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuVf;AACY;AAGb,GAAE,CAAA;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminide-stack/clock-tik-browser",
3
- "version": "12.0.23-alpha.1",
3
+ "version": "12.0.23",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -28,7 +28,7 @@
28
28
  "openai": "^4.52.0"
29
29
  },
30
30
  "devDependencies": {
31
- "common": "12.0.22-alpha.4"
31
+ "common": "12.0.22"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@common-stack/client-react": ">0.5.16",
@@ -69,5 +69,5 @@
69
69
  "typescript": {
70
70
  "definition": "lib/index.d.ts"
71
71
  },
72
- "gitHead": "fc4a2c88d2f241cfae859a33c307511f00c96dbc"
72
+ "gitHead": "ad78b10b04db59c305960f1a9319c19bdb8dc93f"
73
73
  }