@surrealdb/ui 1.0.97 → 1.0.99
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/{CLAUDE.md → AGENTS.md} +9 -0
- package/dist/icons.d.ts +13 -9
- package/dist/icons.js +41 -39
- package/dist/icons.js.map +1 -1
- package/dist/ui.css +1 -1
- package/dist/ui.d.ts +13 -9
- package/dist/ui.js +775 -767
- package/dist/ui.js.map +1 -1
- package/dist/yoopta.d.ts +9 -9
- package/package.json +1 -1
- package/.cursor/plans/mdx_support_research_f85826b1.plan.md +0 -260
package/{CLAUDE.md → AGENTS.md}
RENAMED
|
@@ -90,3 +90,12 @@ Consumers must provide: React 19, Mantine 8, CodeMirror 6 suite, Yoopta 6, and S
|
|
|
90
90
|
- `useStable` hook is configured as returning a stable reference in Biome's `useExhaustiveDependencies` rule — do not list its return value in dependency arrays
|
|
91
91
|
- The `src/constants/icons.ts` file is auto-generated — do not edit it manually
|
|
92
92
|
- Biome excludes: `.vscode/`, `.github/`, `.storybook/`, `src/constants/icons.ts`, `dist/`, and `*.js` files
|
|
93
|
+
|
|
94
|
+
## Variants
|
|
95
|
+
|
|
96
|
+
When adding new variants, take the following into consideration:
|
|
97
|
+
|
|
98
|
+
- Styling is defined in `src/assets/styles/variants.scss`
|
|
99
|
+
- Types are defined in `src/types/variants.ts`
|
|
100
|
+
- The default variant is configured in `src/theme/mantine.ts`
|
|
101
|
+
- Update the relevant storybook story to show the new variant
|
package/dist/icons.d.ts
CHANGED
|
@@ -291,6 +291,8 @@ export declare const Sidebar: string;
|
|
|
291
291
|
|
|
292
292
|
export declare const Sidekick: string;
|
|
293
293
|
|
|
294
|
+
export declare const Spectron: string;
|
|
295
|
+
|
|
294
296
|
export declare const Star: string;
|
|
295
297
|
|
|
296
298
|
export declare const StarPlus: string;
|
|
@@ -322,6 +324,8 @@ export declare const Transfer: string;
|
|
|
322
324
|
|
|
323
325
|
export declare const Trash: string;
|
|
324
326
|
|
|
327
|
+
export declare const Trend: string;
|
|
328
|
+
|
|
325
329
|
export declare const Tune: string;
|
|
326
330
|
|
|
327
331
|
export declare const University: string;
|
|
@@ -346,6 +350,13 @@ export declare const Xml: string;
|
|
|
346
350
|
|
|
347
351
|
export { }
|
|
348
352
|
|
|
353
|
+
declare module "@mantine/core" {
|
|
354
|
+
type ExtendedCustomColors = "obsidian" | "slate" | import("@mantine/core").DefaultMantineColor;
|
|
355
|
+
interface MantineThemeColorsOverride {
|
|
356
|
+
colors: Record<ExtendedCustomColors, import("@mantine/core").MantineColorsTuple>;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
349
360
|
declare module "@mantine/core" {
|
|
350
361
|
type SurrealVariant = "surreal";
|
|
351
362
|
type SurrealInputVariant = SurrealVariant | "gradient";
|
|
@@ -440,7 +451,7 @@ declare module "@mantine/core" {
|
|
|
440
451
|
variant?: SurrealVariant;
|
|
441
452
|
}
|
|
442
453
|
interface SegmentedControlProps {
|
|
443
|
-
variant?:
|
|
454
|
+
variant?: "gradient";
|
|
444
455
|
}
|
|
445
456
|
interface KbdProps {
|
|
446
457
|
variant?: SurrealVariant;
|
|
@@ -455,7 +466,7 @@ declare module "@mantine/core" {
|
|
|
455
466
|
variant?: SurrealVariant;
|
|
456
467
|
}
|
|
457
468
|
interface TabsProps {
|
|
458
|
-
variant?: "default" | "outline" | "pills" | "gradient";
|
|
469
|
+
variant?: "default" | "outline" | "pills" | "gradient" | SurrealVariant;
|
|
459
470
|
}
|
|
460
471
|
interface TableProps {
|
|
461
472
|
variant?: SurrealVariant;
|
|
@@ -465,13 +476,6 @@ declare module "@mantine/core" {
|
|
|
465
476
|
}
|
|
466
477
|
}
|
|
467
478
|
|
|
468
|
-
declare module "@mantine/core" {
|
|
469
|
-
type ExtendedCustomColors = "obsidian" | "slate" | import("@mantine/core").DefaultMantineColor;
|
|
470
|
-
interface MantineThemeColorsOverride {
|
|
471
|
-
colors: Record<ExtendedCustomColors, import("@mantine/core").MantineColorsTuple>;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
|
|
475
479
|
declare module "@mantine/core" {
|
|
476
480
|
type ExtendedCustomSizes = import("@mantine/core").DefaultMantineSize | "2xl" | "3xl";
|
|
477
481
|
interface MantineThemeSizesOverride {
|