docblocks-react-ui 0.29.0 → 0.29.2
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/CHANGELOG.md +26 -0
- package/README.md +6 -2
- package/dist/{Editor-DbW7iFPK.mjs → Editor-y3dFOZE4.mjs} +725 -1155
- package/dist/{Maximize-BBHnCDWL.mjs → Maximize-BTsFyI81.mjs} +1 -2
- package/dist/{constants-D_3p65rk.mjs → constants-CBPODzZc.mjs} +11 -22
- package/dist/{index-DeOMnr7f.d.mts → index-BsP8XWdE.d.mts} +8 -10
- package/dist/{index-sSq0oOSl.d.mts → index-DxRfzb-L.d.mts} +1 -65
- package/dist/index.d.mts +19 -86
- package/dist/index.mjs +17 -30
- package/dist/mermaid/index.d.mts +1 -3
- package/dist/mermaid/index.mjs +13 -21
- package/dist/pdf/index.d.mts +15 -3
- package/dist/pdf/index.mjs +15 -25
- package/dist/styles.css +58 -58
- package/package.json +2 -2
package/dist/pdf/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Maximize } from "../Maximize-BBHnCDWL.mjs";
|
|
3
|
-
import { useCallback, useEffect, useRef, useState } from "react";
|
|
1
|
+
import { GlobalWorkerOptions, RenderingCancelledException, getDocument } from "pdfjs-dist";
|
|
4
2
|
import { useTranslation } from "react-i18next";
|
|
5
|
-
import {
|
|
3
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
|
+
import { a as clamp, d as Plus, f as Minus, h as ChevronLeft, l as X, m as ChevronRight, n as ZOOM_STEP, o as isSafeDownloadHref, p as LoaderCircle, r as isEmbeddablePdfUrl, t as ZOOM_MIN, u as TriangleAlert, w as cn, x as PdfFetchError } from "../constants-CBPODzZc.mjs";
|
|
5
|
+
import { t as Maximize } from "../Maximize-BTsFyI81.mjs";
|
|
6
6
|
import { createPortal } from "react-dom";
|
|
7
|
-
import {
|
|
8
|
-
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
// src/shared/ui/icons/Minimize.tsx
|
|
9
9
|
function Minimize(props) {
|
|
10
10
|
return /* @__PURE__ */ jsxs("svg", {
|
|
11
11
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -26,8 +26,7 @@ function Minimize(props) {
|
|
|
26
26
|
]
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
//#region src/shared/ui/icons/StretchHorizontal.tsx
|
|
29
|
+
// src/shared/ui/icons/StretchHorizontal.tsx
|
|
31
30
|
function StretchHorizontal(props) {
|
|
32
31
|
return /* @__PURE__ */ jsxs("svg", {
|
|
33
32
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -49,8 +48,7 @@ function StretchHorizontal(props) {
|
|
|
49
48
|
]
|
|
50
49
|
});
|
|
51
50
|
}
|
|
52
|
-
|
|
53
|
-
//#region src/shared/ui/icons/StretchVertical.tsx
|
|
51
|
+
// src/shared/ui/icons/StretchVertical.tsx
|
|
54
52
|
function StretchVertical(props) {
|
|
55
53
|
return /* @__PURE__ */ jsxs("svg", {
|
|
56
54
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -72,8 +70,7 @@ function StretchVertical(props) {
|
|
|
72
70
|
]
|
|
73
71
|
});
|
|
74
72
|
}
|
|
75
|
-
|
|
76
|
-
//#region src/pdf/pdf-worker.ts
|
|
73
|
+
// src/pdf/pdf-worker.ts
|
|
77
74
|
/** The pdfjs worker and decoder assets use static package references so
|
|
78
75
|
* consumer bundlers can emit them. The decoder factory fetches the concrete
|
|
79
76
|
* emitted asset URL because a bundler may hash its filename. */
|
|
@@ -111,8 +108,7 @@ var PdfBinaryDataFactory = class {
|
|
|
111
108
|
if (typeof window !== "undefined") fetch(WORKER_URL, { method: "HEAD" }).catch(() => {
|
|
112
109
|
console.warn("docblocks: the pdf worker asset is unreachable; the preview will use the native viewer fallback.");
|
|
113
110
|
});
|
|
114
|
-
|
|
115
|
-
//#region src/pdf/PdfPageControls.tsx
|
|
111
|
+
// src/pdf/PdfPageControls.tsx
|
|
116
112
|
/** The PDF preview's page controls bar: the previous / next page buttons
|
|
117
113
|
* + the page indicator + the trailing action (the fullscreen toggle over
|
|
118
114
|
* the inline view, the close over the portaled overlay). The page number
|
|
@@ -173,8 +169,7 @@ function PdfPageControls({ currentPage, totalPages, onPrevPage, onNextPage, acti
|
|
|
173
169
|
]
|
|
174
170
|
});
|
|
175
171
|
}
|
|
176
|
-
|
|
177
|
-
//#region src/pdf/PdfZoomControls.tsx
|
|
172
|
+
// src/pdf/PdfZoomControls.tsx
|
|
178
173
|
/** The PDF fullscreen zoom's bar: the zoom out / in buttons over the
|
|
179
174
|
* scale's indicator + the fit-width / fit-height. It stands a separate
|
|
180
175
|
* pill to the left of the page's controls, the same bar's style over the
|
|
@@ -229,8 +224,7 @@ function PdfZoomControls({ scale, onZoomOut, onZoomIn, onFitWidth, onFitHeight }
|
|
|
229
224
|
]
|
|
230
225
|
});
|
|
231
226
|
}
|
|
232
|
-
|
|
233
|
-
//#region src/pdf/use-pdf-zoom.ts
|
|
227
|
+
// src/pdf/use-pdf-zoom.ts
|
|
234
228
|
function usePdfZoom(pdfDocRef, containerRef, currentPage) {
|
|
235
229
|
const [zoom, setZoom] = useState(null);
|
|
236
230
|
const [scale, setScale] = useState(1);
|
|
@@ -288,8 +282,7 @@ function usePdfZoom(pdfDocRef, containerRef, currentPage) {
|
|
|
288
282
|
])
|
|
289
283
|
};
|
|
290
284
|
}
|
|
291
|
-
|
|
292
|
-
//#region src/pdf/PdfFullscreenOverlay.tsx
|
|
285
|
+
// src/pdf/PdfFullscreenOverlay.tsx
|
|
293
286
|
/** The PDF preview's fullscreen overlay: the page scaled to fill the
|
|
294
287
|
* viewport over a portal (the same page navigation, the zoom bar — the
|
|
295
288
|
* zoom in / out buttons over the scale + the fit-width / the fit-height —
|
|
@@ -457,8 +450,7 @@ function PdfFullscreenOverlay({ pdfDocRef, phase, currentPage, totalPages, prevP
|
|
|
457
450
|
]
|
|
458
451
|
}), document.body);
|
|
459
452
|
}
|
|
460
|
-
|
|
461
|
-
//#region src/pdf/use-pdf-document.ts
|
|
453
|
+
// src/pdf/use-pdf-document.ts
|
|
462
454
|
/** The PDF document's load lifecycle: the resolved url's fetch + parse
|
|
463
455
|
* (pdfjs-dist), the page navigation's state, and the in-flight cleanup —
|
|
464
456
|
* the fetch is aborted on unmount / url change and the render task +
|
|
@@ -532,8 +524,7 @@ function usePdfDocument(url) {
|
|
|
532
524
|
pdfDocRef
|
|
533
525
|
};
|
|
534
526
|
}
|
|
535
|
-
|
|
536
|
-
//#region src/pdf/PdfFirstPage.tsx
|
|
527
|
+
// src/pdf/PdfFirstPage.tsx
|
|
537
528
|
/** The PDF preview of one file block: fetch the resolved blob, render the
|
|
538
529
|
* pages to a canvas via pdfjs-dist. The inline view stands the page over
|
|
539
530
|
* the page row + the page controls' bar under the canvas; the fullscreen
|
|
@@ -676,5 +667,4 @@ function PdfFirstPage({ id, blockType, url, name }) {
|
|
|
676
667
|
]
|
|
677
668
|
});
|
|
678
669
|
}
|
|
679
|
-
//#endregion
|
|
680
670
|
export { PdfFirstPage };
|
package/dist/styles.css
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
* renderers apply it inline.
|
|
46
46
|
*/
|
|
47
47
|
|
|
48
|
-
/*! tailwindcss v4.3.
|
|
48
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
49
49
|
@layer properties;
|
|
50
50
|
@layer theme, base, components, utilities;
|
|
51
51
|
@layer theme {
|
|
@@ -992,7 +992,7 @@
|
|
|
992
992
|
rotate: 180deg;
|
|
993
993
|
}
|
|
994
994
|
.transform {
|
|
995
|
-
transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
|
|
995
|
+
transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
|
|
996
996
|
}
|
|
997
997
|
.animate-in {
|
|
998
998
|
animation: enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
|
|
@@ -1900,11 +1900,11 @@
|
|
|
1900
1900
|
}
|
|
1901
1901
|
.ordinal {
|
|
1902
1902
|
--tw-ordinal: ordinal;
|
|
1903
|
-
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
1903
|
+
font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, );
|
|
1904
1904
|
}
|
|
1905
1905
|
.tabular-nums {
|
|
1906
1906
|
--tw-numeric-spacing: tabular-nums;
|
|
1907
|
-
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
1907
|
+
font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, );
|
|
1908
1908
|
}
|
|
1909
1909
|
.underline {
|
|
1910
1910
|
text-decoration-line: underline;
|
|
@@ -1969,15 +1969,15 @@
|
|
|
1969
1969
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1970
1970
|
}
|
|
1971
1971
|
.ring {
|
|
1972
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1972
|
+
--tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1973
1973
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1974
1974
|
}
|
|
1975
1975
|
.ring-0 {
|
|
1976
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1976
|
+
--tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1977
1977
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1978
1978
|
}
|
|
1979
1979
|
.ring-1 {
|
|
1980
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1980
|
+
--tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1981
1981
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1982
1982
|
}
|
|
1983
1983
|
.ring-foreground\/10 {
|
|
@@ -2020,10 +2020,10 @@
|
|
|
2020
2020
|
}
|
|
2021
2021
|
.blur {
|
|
2022
2022
|
--tw-blur: blur(8px);
|
|
2023
|
-
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
2023
|
+
filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
|
|
2024
2024
|
}
|
|
2025
2025
|
.filter {
|
|
2026
|
-
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
2026
|
+
filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
|
|
2027
2027
|
}
|
|
2028
2028
|
.transition {
|
|
2029
2029
|
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
@@ -2138,109 +2138,109 @@
|
|
|
2138
2138
|
.zoom-out {
|
|
2139
2139
|
--tw-exit-scale: 0;
|
|
2140
2140
|
}
|
|
2141
|
-
|
|
2141
|
+
:is(:where(.group):focus-within .group-focus-within\:pointer-events-auto) {
|
|
2142
2142
|
pointer-events: auto;
|
|
2143
2143
|
}
|
|
2144
|
-
|
|
2144
|
+
:is(:where(.group):focus-within .group-focus-within\:pointer-events-none) {
|
|
2145
2145
|
pointer-events: none;
|
|
2146
2146
|
}
|
|
2147
|
-
|
|
2147
|
+
:is(:where(.group):focus-within .group-focus-within\:-top-2) {
|
|
2148
2148
|
top: calc(var(--spacing) * -2);
|
|
2149
2149
|
}
|
|
2150
|
-
|
|
2150
|
+
:is(:where(.group):focus-within .group-focus-within\:cursor-default) {
|
|
2151
2151
|
cursor: default;
|
|
2152
2152
|
}
|
|
2153
|
-
|
|
2153
|
+
:is(:where(.group):focus-within .group-focus-within\:border-border) {
|
|
2154
2154
|
border-color: var(--border);
|
|
2155
2155
|
}
|
|
2156
|
-
|
|
2156
|
+
:is(:where(.group):focus-within .group-focus-within\:bg-muted\/50) {
|
|
2157
2157
|
background-color: var(--muted);
|
|
2158
2158
|
@supports (color: color-mix(in lab, red, red)) {
|
|
2159
2159
|
background-color: color-mix(in oklab, var(--muted) 50%, transparent);
|
|
2160
2160
|
}
|
|
2161
2161
|
}
|
|
2162
|
-
|
|
2162
|
+
:is(:where(.group):focus-within .group-focus-within\:text-xs) {
|
|
2163
2163
|
font-size: var(--text-xs);
|
|
2164
2164
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
2165
2165
|
}
|
|
2166
|
-
|
|
2166
|
+
:is(:where(.group):focus-within .group-focus-within\:font-medium) {
|
|
2167
2167
|
--tw-font-weight: var(--font-weight-medium);
|
|
2168
2168
|
font-weight: var(--font-weight-medium);
|
|
2169
2169
|
}
|
|
2170
|
-
|
|
2170
|
+
:is(:where(.group):focus-within .group-focus-within\:text-foreground) {
|
|
2171
2171
|
color: var(--foreground);
|
|
2172
2172
|
}
|
|
2173
|
-
|
|
2173
|
+
:is(:where(.group):focus-within .group-focus-within\:opacity-100) {
|
|
2174
2174
|
opacity: 100%;
|
|
2175
2175
|
}
|
|
2176
|
-
|
|
2177
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2176
|
+
:is(:where(.group):focus-within .group-focus-within\:ring-\[1px\]) {
|
|
2177
|
+
--tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2178
2178
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2179
2179
|
}
|
|
2180
|
-
|
|
2180
|
+
:is(:where(.group):focus-within .group-focus-within\:ring-ring\/20) {
|
|
2181
2181
|
--tw-ring-color: var(--ring);
|
|
2182
2182
|
@supports (color: color-mix(in lab, red, red)) {
|
|
2183
2183
|
--tw-ring-color: color-mix(in oklab, var(--ring) 20%, transparent);
|
|
2184
2184
|
}
|
|
2185
2185
|
}
|
|
2186
|
-
|
|
2186
|
+
:is(:where(.group\/code):focus-within .group-focus-within\/code\:pointer-events-auto) {
|
|
2187
2187
|
pointer-events: auto;
|
|
2188
2188
|
}
|
|
2189
|
-
|
|
2189
|
+
:is(:where(.group\/code):focus-within .group-focus-within\/code\:opacity-100) {
|
|
2190
2190
|
opacity: 100%;
|
|
2191
2191
|
}
|
|
2192
2192
|
@media (hover: hover) {
|
|
2193
|
-
|
|
2193
|
+
:is(:where(.group):hover .group-hover\:pointer-events-auto) {
|
|
2194
2194
|
pointer-events: auto;
|
|
2195
2195
|
}
|
|
2196
|
-
|
|
2196
|
+
:is(:where(.group):hover .group-hover\:border-border) {
|
|
2197
2197
|
border-color: var(--border);
|
|
2198
2198
|
}
|
|
2199
|
-
|
|
2199
|
+
:is(:where(.group):hover .group-hover\:opacity-100) {
|
|
2200
2200
|
opacity: 100%;
|
|
2201
2201
|
}
|
|
2202
|
-
|
|
2202
|
+
:is(:where(.group\/cell):hover .group-hover\/cell\:opacity-100) {
|
|
2203
2203
|
opacity: 100%;
|
|
2204
2204
|
}
|
|
2205
2205
|
}
|
|
2206
|
-
|
|
2206
|
+
:is(:where(.group\/tabs)[data-horizontal] .group-data-horizontal\/tabs\:h-8) {
|
|
2207
2207
|
height: calc(var(--spacing) * 8);
|
|
2208
2208
|
}
|
|
2209
|
-
|
|
2209
|
+
:is(:where(.group)[data-image] .group-data-image\:pl-9) {
|
|
2210
2210
|
padding-left: calc(var(--spacing) * 9);
|
|
2211
2211
|
}
|
|
2212
|
-
|
|
2212
|
+
:is(:where(.group\/tabs)[data-vertical] .group-data-vertical\/tabs\:h-fit) {
|
|
2213
2213
|
height: fit-content;
|
|
2214
2214
|
}
|
|
2215
|
-
|
|
2215
|
+
:is(:where(.group\/tabs)[data-vertical] .group-data-vertical\/tabs\:w-full) {
|
|
2216
2216
|
width: 100%;
|
|
2217
2217
|
}
|
|
2218
|
-
|
|
2218
|
+
:is(:where(.group\/tabs)[data-vertical] .group-data-vertical\/tabs\:flex-col) {
|
|
2219
2219
|
flex-direction: column;
|
|
2220
2220
|
}
|
|
2221
|
-
|
|
2221
|
+
:is(:where(.group\/tabs)[data-vertical] .group-data-vertical\/tabs\:justify-start) {
|
|
2222
2222
|
justify-content: flex-start;
|
|
2223
2223
|
}
|
|
2224
|
-
|
|
2224
|
+
:is(:where(.group\/day)[data-focused="true"] .group-data-\[focused\=true\]\/day\:relative) {
|
|
2225
2225
|
position: relative;
|
|
2226
2226
|
}
|
|
2227
|
-
|
|
2227
|
+
:is(:where(.group\/day)[data-focused="true"] .group-data-\[focused\=true\]\/day\:z-10) {
|
|
2228
2228
|
z-index: 10;
|
|
2229
2229
|
}
|
|
2230
|
-
|
|
2230
|
+
:is(:where(.group\/day)[data-focused="true"] .group-data-\[focused\=true\]\/day\:border-ring) {
|
|
2231
2231
|
border-color: var(--ring);
|
|
2232
2232
|
}
|
|
2233
|
-
|
|
2234
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2233
|
+
:is(:where(.group\/day)[data-focused="true"] .group-data-\[focused\=true\]\/day\:ring-\[3px\]) {
|
|
2234
|
+
--tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2235
2235
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2236
2236
|
}
|
|
2237
|
-
|
|
2237
|
+
:is(:where(.group\/day)[data-focused="true"] .group-data-\[focused\=true\]\/day\:ring-ring\/50) {
|
|
2238
2238
|
--tw-ring-color: var(--ring);
|
|
2239
2239
|
@supports (color: color-mix(in lab, red, red)) {
|
|
2240
2240
|
--tw-ring-color: color-mix(in oklab, var(--ring) 50%, transparent);
|
|
2241
2241
|
}
|
|
2242
2242
|
}
|
|
2243
|
-
|
|
2243
|
+
:is(:where(.group\/tabs-list)[data-variant="line"] .group-data-\[variant\=line\]\/tabs-list\:bg-transparent) {
|
|
2244
2244
|
background-color: transparent;
|
|
2245
2245
|
}
|
|
2246
2246
|
.selection\:bg-\(--docblocks-selection-background\) ::selection {
|
|
@@ -2341,27 +2341,27 @@
|
|
|
2341
2341
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
2342
2342
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
2343
2343
|
}
|
|
2344
|
-
|
|
2344
|
+
:is(:where(.group\/tabs)[data-horizontal] .group-data-horizontal\/tabs\:after\:inset-x-0)::after {
|
|
2345
2345
|
content: var(--tw-content);
|
|
2346
2346
|
inset-inline: 0px;
|
|
2347
2347
|
}
|
|
2348
|
-
|
|
2348
|
+
:is(:where(.group\/tabs)[data-horizontal] .group-data-horizontal\/tabs\:after\:-bottom-1\.25)::after {
|
|
2349
2349
|
content: var(--tw-content);
|
|
2350
2350
|
bottom: calc(var(--spacing) * -1.25);
|
|
2351
2351
|
}
|
|
2352
|
-
|
|
2352
|
+
:is(:where(.group\/tabs)[data-horizontal] .group-data-horizontal\/tabs\:after\:h-0\.5)::after {
|
|
2353
2353
|
content: var(--tw-content);
|
|
2354
2354
|
height: calc(var(--spacing) * 0.5);
|
|
2355
2355
|
}
|
|
2356
|
-
|
|
2356
|
+
:is(:where(.group\/tabs)[data-vertical] .group-data-vertical\/tabs\:after\:inset-y-0)::after {
|
|
2357
2357
|
content: var(--tw-content);
|
|
2358
2358
|
inset-block: 0px;
|
|
2359
2359
|
}
|
|
2360
|
-
|
|
2360
|
+
:is(:where(.group\/tabs)[data-vertical] .group-data-vertical\/tabs\:after\:-right-1)::after {
|
|
2361
2361
|
content: var(--tw-content);
|
|
2362
2362
|
right: calc(var(--spacing) * -1);
|
|
2363
2363
|
}
|
|
2364
|
-
|
|
2364
|
+
:is(:where(.group\/tabs)[data-vertical] .group-data-vertical\/tabs\:after\:w-0\.5)::after {
|
|
2365
2365
|
content: var(--tw-content);
|
|
2366
2366
|
width: calc(var(--spacing) * 0.5);
|
|
2367
2367
|
}
|
|
@@ -2369,7 +2369,7 @@
|
|
|
2369
2369
|
border-color: var(--ring);
|
|
2370
2370
|
}
|
|
2371
2371
|
.focus-within\:ring-2:focus-within {
|
|
2372
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2372
|
+
--tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2373
2373
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2374
2374
|
}
|
|
2375
2375
|
.focus-within\:ring-ring\/40:focus-within {
|
|
@@ -2514,15 +2514,15 @@
|
|
|
2514
2514
|
opacity: 100%;
|
|
2515
2515
|
}
|
|
2516
2516
|
.focus-visible\:ring-0:focus-visible {
|
|
2517
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2517
|
+
--tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2518
2518
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2519
2519
|
}
|
|
2520
2520
|
.focus-visible\:ring-2:focus-visible {
|
|
2521
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2521
|
+
--tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2522
2522
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2523
2523
|
}
|
|
2524
2524
|
.focus-visible\:ring-\[3px\]:focus-visible {
|
|
2525
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2525
|
+
--tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2526
2526
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2527
2527
|
}
|
|
2528
2528
|
.focus-visible\:ring-destructive\/20:focus-visible {
|
|
@@ -2799,18 +2799,18 @@
|
|
|
2799
2799
|
.data-\[state\=active\]\:text-foreground[data-state="active"] {
|
|
2800
2800
|
color: var(--foreground);
|
|
2801
2801
|
}
|
|
2802
|
-
.group-data-\[variant\=default\]\/tabs-list\:data-\[state\=active\]\:shadow-sm
|
|
2802
|
+
:is(:where(.group\/tabs-list)[data-variant="default"] .group-data-\[variant\=default\]\/tabs-list\:data-\[state\=active\]\:shadow-sm)[data-state="active"] {
|
|
2803
2803
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
2804
2804
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2805
2805
|
}
|
|
2806
|
-
.group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:bg-transparent
|
|
2806
|
+
:is(:where(.group\/tabs-list)[data-variant="line"] .group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:bg-transparent)[data-state="active"] {
|
|
2807
2807
|
background-color: transparent;
|
|
2808
2808
|
}
|
|
2809
|
-
.group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:shadow-none
|
|
2809
|
+
:is(:where(.group\/tabs-list)[data-variant="line"] .group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:shadow-none)[data-state="active"] {
|
|
2810
2810
|
--tw-shadow: 0 0 #0000;
|
|
2811
2811
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2812
2812
|
}
|
|
2813
|
-
.group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:after\:opacity-100
|
|
2813
|
+
:is(:where(.group\/tabs-list)[data-variant="line"] .group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:after\:opacity-100)[data-state="active"]::after {
|
|
2814
2814
|
content: var(--tw-content);
|
|
2815
2815
|
opacity: 100%;
|
|
2816
2816
|
}
|
|
@@ -2991,10 +2991,10 @@
|
|
|
2991
2991
|
.dark\:data-\[state\=active\]\:text-foreground:is(.dark *)[data-state="active"] {
|
|
2992
2992
|
color: var(--foreground);
|
|
2993
2993
|
}
|
|
2994
|
-
.dark\:group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:border-transparent:is(.dark *)
|
|
2994
|
+
:is(:where(.group\/tabs-list)[data-variant="line"] .dark\:group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:border-transparent:is(.dark *))[data-state="active"] {
|
|
2995
2995
|
border-color: transparent;
|
|
2996
2996
|
}
|
|
2997
|
-
.dark\:group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:bg-transparent:is(.dark *)
|
|
2997
|
+
:is(:where(.group\/tabs-list)[data-variant="line"] .dark\:group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:bg-transparent:is(.dark *))[data-state="active"] {
|
|
2998
2998
|
background-color: transparent;
|
|
2999
2999
|
}
|
|
3000
3000
|
.dark\:data-\[state\=checked\]\:bg-primary:is(.dark *)[data-state="checked"] {
|
|
@@ -3441,7 +3441,7 @@
|
|
|
3441
3441
|
}
|
|
3442
3442
|
}
|
|
3443
3443
|
@layer properties {
|
|
3444
|
-
@supports ((-webkit-hyphens: none) and (not (margin-trim:
|
|
3444
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
3445
3445
|
*, ::before, ::after, ::backdrop {
|
|
3446
3446
|
--tw-translate-x: 0;
|
|
3447
3447
|
--tw-translate-y: 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docblocks-react-ui",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.2",
|
|
4
4
|
"description": "React rendering + editing layer for docblocks: hooks, block renderers, caret/selection, keyboard, clipboard.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"docblocks-core": "^0.
|
|
39
|
+
"docblocks-core": "^0.13.0",
|
|
40
40
|
"framer-motion": "^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0",
|
|
41
41
|
"mermaid": "^12.0.0",
|
|
42
42
|
"pdfjs-dist": "^6.0.0",
|