@surrealdb/ui 1.0.98 → 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 +11 -9
- package/dist/icons.js +25 -24
- package/dist/icons.js.map +1 -1
- package/dist/ui.css +1 -1
- package/dist/ui.d.ts +11 -9
- package/dist/ui.js +760 -753
- package/dist/ui.js.map +1 -1
- package/dist/yoopta.d.ts +9 -9
- package/package.json +1 -1
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
|
@@ -324,6 +324,8 @@ export declare const Transfer: string;
|
|
|
324
324
|
|
|
325
325
|
export declare const Trash: string;
|
|
326
326
|
|
|
327
|
+
export declare const Trend: string;
|
|
328
|
+
|
|
327
329
|
export declare const Tune: string;
|
|
328
330
|
|
|
329
331
|
export declare const University: string;
|
|
@@ -348,6 +350,13 @@ export declare const Xml: string;
|
|
|
348
350
|
|
|
349
351
|
export { }
|
|
350
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
|
+
|
|
351
360
|
declare module "@mantine/core" {
|
|
352
361
|
type SurrealVariant = "surreal";
|
|
353
362
|
type SurrealInputVariant = SurrealVariant | "gradient";
|
|
@@ -442,7 +451,7 @@ declare module "@mantine/core" {
|
|
|
442
451
|
variant?: SurrealVariant;
|
|
443
452
|
}
|
|
444
453
|
interface SegmentedControlProps {
|
|
445
|
-
variant?:
|
|
454
|
+
variant?: "gradient";
|
|
446
455
|
}
|
|
447
456
|
interface KbdProps {
|
|
448
457
|
variant?: SurrealVariant;
|
|
@@ -457,7 +466,7 @@ declare module "@mantine/core" {
|
|
|
457
466
|
variant?: SurrealVariant;
|
|
458
467
|
}
|
|
459
468
|
interface TabsProps {
|
|
460
|
-
variant?: "default" | "outline" | "pills" | "gradient";
|
|
469
|
+
variant?: "default" | "outline" | "pills" | "gradient" | SurrealVariant;
|
|
461
470
|
}
|
|
462
471
|
interface TableProps {
|
|
463
472
|
variant?: SurrealVariant;
|
|
@@ -467,13 +476,6 @@ declare module "@mantine/core" {
|
|
|
467
476
|
}
|
|
468
477
|
}
|
|
469
478
|
|
|
470
|
-
declare module "@mantine/core" {
|
|
471
|
-
type ExtendedCustomColors = "obsidian" | "slate" | import("@mantine/core").DefaultMantineColor;
|
|
472
|
-
interface MantineThemeColorsOverride {
|
|
473
|
-
colors: Record<ExtendedCustomColors, import("@mantine/core").MantineColorsTuple>;
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
|
|
477
479
|
declare module "@mantine/core" {
|
|
478
480
|
type ExtendedCustomSizes = import("@mantine/core").DefaultMantineSize | "2xl" | "3xl";
|
|
479
481
|
interface MantineThemeSizesOverride {
|