@surrealdb/ui 1.0.98 → 1.0.100

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.
@@ -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
@@ -0,0 +1,3 @@
1
+ <svg width="105" height="44" viewBox="0 0 105 44" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M104.765 22.5205C104.765 15.0706 101.157 9.19048 94.2582 9.19048C87.3336 9.19048 83.141 15.0694 83.141 22.461C83.141 31.2211 88.0881 35.6441 95.1886 35.6441C98.6521 35.6441 101.271 34.8593 103.25 33.7529V27.9322C101.271 28.9222 99.0015 29.5323 96.1203 29.5323C93.2973 29.5323 90.7946 28.5424 90.4744 25.1093H104.703C104.703 24.7295 104.761 23.218 104.761 22.5192L104.765 22.5205ZM90.4009 19.757C90.4009 16.4682 92.4087 15.101 94.243 15.101C96.0178 15.101 97.9103 16.4682 97.9103 19.757H90.4009ZM71.9225 9.19302C69.0704 9.19302 67.2386 10.5311 66.2183 11.4628L65.8385 9.65887H59.4242V43.5915L66.6994 42.0496L66.7285 33.8136C67.7766 34.5706 69.3185 35.6467 71.8807 35.6467C77.0899 35.6467 81.8333 31.4692 81.8333 22.2306C81.8042 13.7908 77.0026 9.19175 71.9086 9.19175L71.9225 9.19302ZM70.1755 29.245C68.459 29.245 67.4412 28.6335 66.7411 27.8778L66.712 17.0796C67.469 16.2353 68.5159 15.6542 70.1755 15.6542C72.8238 15.6542 74.6569 18.6228 74.6569 22.4344C74.6569 26.3334 72.8529 29.245 70.1755 29.245ZM49.4147 7.47645L56.719 5.90672V0L49.4147 1.54188V7.47645ZM49.4147 9.68798H56.719V35.1517H49.4147V9.68798ZM41.585 11.84L41.1192 9.68798H34.8327V35.1542H42.1079V17.8949C43.8244 15.6542 46.7347 16.0618 47.6373 16.3821V9.68925C46.7056 9.33986 43.3016 8.69931 41.5838 11.8413L41.585 11.84ZM27.0347 3.35845L19.9342 4.87374L19.9051 28.1842C19.9051 32.4908 23.1357 35.6631 27.4423 35.6631C29.8286 35.6631 31.5742 35.2264 32.5351 34.701V28.7931C31.6034 29.1728 27.0056 30.5096 27.0056 26.203V15.8871H32.5351V9.68798H27.0031L27.0347 3.35845ZM7.36251 17.0657C7.36251 15.9302 8.29422 15.496 9.8361 15.496C12.3529 15.5496 14.8229 16.1866 17.0518 17.3568V10.5323C14.6364 9.57026 12.2502 9.19428 9.8361 9.19428C3.92811 9.19428 0 12.2793 0 17.4303C0 25.4625 11.059 24.1814 11.059 27.6461C11.059 28.9842 9.89433 29.4209 8.2651 29.4209C5.84975 29.4209 2.76474 28.431 0.320275 27.0917V34.0162C3.02678 35.1808 5.76367 35.6619 8.2651 35.6619C14.3187 35.6619 18.481 32.6642 18.481 27.455C18.4519 18.7835 7.36251 20.3254 7.36251 17.0657Z" fill="#6772E5"/>
3
+ </svg>
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;
@@ -442,7 +444,7 @@ declare module "@mantine/core" {
442
444
  variant?: SurrealVariant;
443
445
  }
444
446
  interface SegmentedControlProps {
445
- variant?: SurrealVariant;
447
+ variant?: "gradient";
446
448
  }
447
449
  interface KbdProps {
448
450
  variant?: SurrealVariant;
@@ -457,7 +459,7 @@ declare module "@mantine/core" {
457
459
  variant?: SurrealVariant;
458
460
  }
459
461
  interface TabsProps {
460
- variant?: "default" | "outline" | "pills" | "gradient";
462
+ variant?: "default" | "outline" | "pills" | "gradient" | SurrealVariant;
461
463
  }
462
464
  interface TableProps {
463
465
  variant?: SurrealVariant;