@surrealdb/ui 1.0.39 → 1.0.40
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/fonts.d.ts +6 -6
- package/dist/ui.d.ts +8 -6
- package/dist/ui.js +20 -18
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
package/dist/fonts.d.ts
CHANGED
|
@@ -92,15 +92,15 @@ declare module "@mantine/core" {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
declare module "@mantine/core" {
|
|
95
|
-
type
|
|
96
|
-
interface
|
|
97
|
-
|
|
95
|
+
type ExtendedCustomSizes = import("@mantine/core").DefaultMantineSize | "2xl" | "3xl";
|
|
96
|
+
interface MantineThemeSizesOverride {
|
|
97
|
+
spacing: Record<ExtendedCustomSizes, string>;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
declare module "@mantine/core" {
|
|
102
|
-
type
|
|
103
|
-
interface
|
|
104
|
-
|
|
102
|
+
type ExtendedCustomColors = "obsidian" | "slate" | import("@mantine/core").DefaultMantineColor;
|
|
103
|
+
interface MantineThemeColorsOverride {
|
|
104
|
+
colors: Record<ExtendedCustomColors, import("@mantine/core").MantineColorsTuple>;
|
|
105
105
|
}
|
|
106
106
|
}
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ActionIconProps } from '@mantine/core';
|
|
1
2
|
import { AlertProps } from '@mantine/core';
|
|
2
3
|
import { BoxProps } from '@mantine/core';
|
|
3
4
|
import { ButtonProps } from '@mantine/core';
|
|
@@ -246,6 +247,7 @@ export declare interface CodeBlockProps extends Omit<PaperProps, "children" | "s
|
|
|
246
247
|
value: string;
|
|
247
248
|
lang?: string;
|
|
248
249
|
colorScheme?: MantineColorScheme;
|
|
250
|
+
copyCodeProps?: ActionIconProps;
|
|
249
251
|
}
|
|
250
252
|
|
|
251
253
|
export declare const CodeEditor: FC<CodeEditorProps>;
|
|
@@ -1735,15 +1737,15 @@ declare module "@mantine/core" {
|
|
|
1735
1737
|
}
|
|
1736
1738
|
|
|
1737
1739
|
declare module "@mantine/core" {
|
|
1738
|
-
type
|
|
1739
|
-
interface
|
|
1740
|
-
|
|
1740
|
+
type ExtendedCustomSizes = import("@mantine/core").DefaultMantineSize | "2xl" | "3xl";
|
|
1741
|
+
interface MantineThemeSizesOverride {
|
|
1742
|
+
spacing: Record<ExtendedCustomSizes, string>;
|
|
1741
1743
|
}
|
|
1742
1744
|
}
|
|
1743
1745
|
|
|
1744
1746
|
declare module "@mantine/core" {
|
|
1745
|
-
type
|
|
1746
|
-
interface
|
|
1747
|
-
|
|
1747
|
+
type ExtendedCustomColors = "obsidian" | "slate" | import("@mantine/core").DefaultMantineColor;
|
|
1748
|
+
interface MantineThemeColorsOverride {
|
|
1749
|
+
colors: Record<ExtendedCustomColors, import("@mantine/core").MantineColorsTuple>;
|
|
1748
1750
|
}
|
|
1749
1751
|
}
|
package/dist/ui.js
CHANGED
|
@@ -7660,16 +7660,17 @@ const p2 = Z2.define(qQ).parser, D6 = Z2.define(zQ).parser, A6 = /* @__PURE__ */
|
|
|
7660
7660
|
withBorder: i = !0,
|
|
7661
7661
|
style: a,
|
|
7662
7662
|
colorScheme: Q,
|
|
7663
|
-
|
|
7663
|
+
copyCodeProps: r,
|
|
7664
|
+
...n
|
|
7664
7665
|
}) => {
|
|
7665
|
-
const [
|
|
7666
|
-
const
|
|
7667
|
-
|
|
7666
|
+
const [o, s] = VO(!1), { code: c, regions: l } = M(() => {
|
|
7667
|
+
const P = G6(e), { processedCode: X, regions: C } = j6(
|
|
7668
|
+
P.code
|
|
7668
7669
|
);
|
|
7669
7670
|
return {
|
|
7670
|
-
code:
|
|
7671
|
-
regions:
|
|
7672
|
-
test:
|
|
7671
|
+
code: X,
|
|
7672
|
+
regions: C,
|
|
7673
|
+
test: P.test
|
|
7673
7674
|
};
|
|
7674
7675
|
}, [e]);
|
|
7675
7676
|
return /* @__PURE__ */ SO(
|
|
@@ -7677,10 +7678,10 @@ const p2 = Z2.define(qQ).parser, D6 = Z2.define(zQ).parser, A6 = /* @__PURE__ */
|
|
|
7677
7678
|
{
|
|
7678
7679
|
radius: "md",
|
|
7679
7680
|
onMouseEnter: () => {
|
|
7680
|
-
|
|
7681
|
+
s(!0);
|
|
7681
7682
|
},
|
|
7682
7683
|
onMouseLeave: () => {
|
|
7683
|
-
|
|
7684
|
+
s(!1);
|
|
7684
7685
|
},
|
|
7685
7686
|
pos: "relative",
|
|
7686
7687
|
bg: "obsidian.9",
|
|
@@ -7689,7 +7690,7 @@ const p2 = Z2.define(qQ).parser, D6 = Z2.define(zQ).parser, A6 = /* @__PURE__ */
|
|
|
7689
7690
|
overflow: "hidden",
|
|
7690
7691
|
...a
|
|
7691
7692
|
},
|
|
7692
|
-
...
|
|
7693
|
+
...n,
|
|
7693
7694
|
children: [
|
|
7694
7695
|
O && /* @__PURE__ */ T(
|
|
7695
7696
|
K,
|
|
@@ -7718,33 +7719,34 @@ const p2 = Z2.define(qQ).parser, D6 = Z2.define(zQ).parser, A6 = /* @__PURE__ */
|
|
|
7718
7719
|
/* @__PURE__ */ T(
|
|
7719
7720
|
E6,
|
|
7720
7721
|
{
|
|
7721
|
-
value:
|
|
7722
|
+
value: c,
|
|
7722
7723
|
language: t ?? "text",
|
|
7723
|
-
highlightRegions:
|
|
7724
|
+
highlightRegions: l,
|
|
7724
7725
|
colorScheme: Q
|
|
7725
7726
|
}
|
|
7726
7727
|
),
|
|
7727
|
-
/* @__PURE__ */ T(ci, { value:
|
|
7728
|
+
/* @__PURE__ */ T(ci, { value: c, children: ({ copy: P, copied: X }) => /* @__PURE__ */ T(
|
|
7728
7729
|
R2,
|
|
7729
7730
|
{
|
|
7730
|
-
label:
|
|
7731
|
+
label: X ? "Copied!" : "Copy code",
|
|
7731
7732
|
position: "top",
|
|
7732
7733
|
children: /* @__PURE__ */ T(
|
|
7733
7734
|
he,
|
|
7734
7735
|
{
|
|
7735
7736
|
size: "xl",
|
|
7736
|
-
onClick:
|
|
7737
|
+
onClick: P,
|
|
7737
7738
|
"aria-label": "Copy code",
|
|
7738
7739
|
pos: "absolute",
|
|
7739
7740
|
top: "var(--mantine-radius-sm)",
|
|
7740
7741
|
right: "var(--mantine-radius-sm)",
|
|
7741
|
-
opacity:
|
|
7742
|
-
|
|
7742
|
+
opacity: o ? 1 : 0,
|
|
7743
|
+
...r,
|
|
7744
|
+
style: { transition: "opacity 0.2s", ...r?.style },
|
|
7743
7745
|
children: /* @__PURE__ */ T(
|
|
7744
7746
|
u1,
|
|
7745
7747
|
{
|
|
7746
7748
|
size: "sm",
|
|
7747
|
-
path:
|
|
7749
|
+
path: X ? ki : Ui
|
|
7748
7750
|
}
|
|
7749
7751
|
)
|
|
7750
7752
|
}
|