@orangecheck/app-design 1.4.0 → 1.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/chrome.d.mts +5 -4
- package/dist/chrome.d.ts +5 -4
- package/dist/chrome.js +171 -40
- package/dist/chrome.js.map +1 -1
- package/dist/chrome.mjs +172 -41
- package/dist/chrome.mjs.map +1 -1
- package/dist/components.d.mts +46 -9
- package/dist/components.d.ts +46 -9
- package/dist/components.js +334 -167
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +333 -170
- package/dist/components.mjs.map +1 -1
- package/dist/{docs-BB9gK4KF.d.ts → docs-ByUx4t-D.d.ts} +2 -1
- package/dist/{docs-D-T-nHiu.d.mts → docs-CFE5mU_6.d.mts} +2 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +572 -244
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +570 -246
- package/dist/index.mjs.map +1 -1
- package/dist/mdx.d.mts +1 -1
- package/dist/mdx.d.ts +1 -1
- package/dist/mdx.js +7 -2
- package/dist/mdx.js.map +1 -1
- package/dist/mdx.mjs +7 -2
- package/dist/mdx.mjs.map +1 -1
- package/dist/primitives.d.mts +4 -3
- package/dist/primitives.d.ts +4 -3
- package/dist/primitives.js +37 -1
- package/dist/primitives.js.map +1 -1
- package/dist/primitives.mjs +37 -1
- package/dist/primitives.mjs.map +1 -1
- package/dist/session.d.mts +3 -3
- package/dist/session.d.ts +3 -3
- package/dist/session.js +1 -1
- package/dist/session.js.map +1 -1
- package/dist/session.mjs +1 -1
- package/dist/session.mjs.map +1 -1
- package/dist/{tool-shell-D8Q8XX11.d.mts → tool-shell-CQZNRUgH.d.mts} +8 -4
- package/dist/{tool-shell-gmlj47Ie.d.ts → tool-shell-CRmceGrV.d.ts} +8 -4
- package/dist/{tools-DFIxIj5p.d.mts → tools-Bg1gi2HO.d.mts} +1 -1
- package/dist/{tools-BggNN5DV.d.ts → tools-Bw7RhO92.d.ts} +1 -1
- package/package.json +3 -2
package/dist/mdx.mjs
CHANGED
|
@@ -7,6 +7,7 @@ import { ArrowUpRight, ArrowRight, Check, Copy } from 'lucide-react';
|
|
|
7
7
|
import { Slot } from '@radix-ui/react-slot';
|
|
8
8
|
import { cva } from 'class-variance-authority';
|
|
9
9
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
10
|
+
import 'next-themes';
|
|
10
11
|
import 'sonner';
|
|
11
12
|
import Link from 'next/link';
|
|
12
13
|
import { useRouter } from 'next/compat/router';
|
|
@@ -819,7 +820,8 @@ function Well({
|
|
|
819
820
|
lines,
|
|
820
821
|
maxLines,
|
|
821
822
|
diff,
|
|
822
|
-
lineNumbers
|
|
823
|
+
lineNumbers,
|
|
824
|
+
wrap
|
|
823
825
|
}) {
|
|
824
826
|
const foldable = maxLines !== void 0 && lines > maxLines + 2;
|
|
825
827
|
const [open, setOpen] = useState(false);
|
|
@@ -838,7 +840,8 @@ function Well({
|
|
|
838
840
|
"data-diff": diff ? "" : void 0,
|
|
839
841
|
"data-line-numbers": lineNumbers ? "" : void 0,
|
|
840
842
|
className: cn(
|
|
841
|
-
"oca-code
|
|
843
|
+
"oca-code py-4 font-mono text-[0.875rem] leading-[1.625] text-oca-ink-muted [font-variant-ligatures:none]",
|
|
844
|
+
wrap ? "whitespace-pre-wrap break-all" : "w-max min-w-full",
|
|
842
845
|
!lined && "px-5"
|
|
843
846
|
),
|
|
844
847
|
children: lined ? /* @__PURE__ */ jsx("code", { className: "block", "data-lang": lang, dangerouslySetInnerHTML: { __html: html } }) : /* @__PURE__ */ jsx("code", { className: "block", "data-lang": lang, children })
|
|
@@ -880,6 +883,7 @@ function CodeBlock({
|
|
|
880
883
|
highlight: marks,
|
|
881
884
|
diff,
|
|
882
885
|
lineNumbers,
|
|
886
|
+
wrap,
|
|
883
887
|
actions,
|
|
884
888
|
className
|
|
885
889
|
}) {
|
|
@@ -911,6 +915,7 @@ function CodeBlock({
|
|
|
911
915
|
maxLines,
|
|
912
916
|
diff: prepared ? prepared.diff : isDiff,
|
|
913
917
|
lineNumbers,
|
|
918
|
+
wrap,
|
|
914
919
|
children
|
|
915
920
|
}
|
|
916
921
|
)
|