@selvajs/ui 7.0.2 → 7.0.3-beta.1

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.
@@ -38,7 +38,7 @@
38
38
  {@render childrenProp?.()}
39
39
  {#if asSwitch}
40
40
  <span
41
- class="[[data-slot=dropdown-menu-shortcut]+&]:ml-2 h-4.5 w-8 pointer-events-none relative ml-auto shrink-0 rounded-full transition-colors {checked
41
+ class="not-pointer-coarse:[[data-slot=dropdown-menu-shortcut]+&]:ml-2 h-4.5 w-8 pointer-events-none relative ml-auto shrink-0 rounded-full transition-colors {checked
42
42
  ? 'bg-primary'
43
43
  : 'bg-input'}"
44
44
  data-slot="dropdown-menu-checkbox-item-switch"
@@ -14,7 +14,7 @@
14
14
  bind:this={ref}
15
15
  data-slot="dropdown-menu-shortcut"
16
16
  class={cn(
17
- 'h-5 min-w-5 px-1 font-mono ml-auto inline-flex items-center justify-center rounded-sm border bg-muted text-2xs text-muted-foreground group-focus/dropdown-menu-item:text-foreground',
17
+ 'h-5 min-w-5 px-1 font-mono ml-auto inline-flex items-center justify-center rounded-sm border bg-muted text-2xs text-muted-foreground group-focus/dropdown-menu-item:text-foreground pointer-coarse:hidden',
18
18
  className
19
19
  )}
20
20
  {...restProps}
@@ -316,7 +316,7 @@
316
316
  >
317
317
  <Spline />
318
318
  {t.edges}
319
- <DropdownMenu.Shortcut class="pointer-coarse:hidden">E</DropdownMenu.Shortcut>
319
+ <DropdownMenu.Shortcut>E</DropdownMenu.Shortcut>
320
320
  </DropdownMenu.CheckboxItem>
321
321
  </DropdownMenu.Content>
322
322
  </DropdownMenu.Root>
@@ -406,14 +406,14 @@
406
406
  >
407
407
  <Cuboid />
408
408
  {t.switchToOrthographic}
409
- <DropdownMenu.Shortcut class="pointer-coarse:hidden">O</DropdownMenu.Shortcut>
409
+ <DropdownMenu.Shortcut>O</DropdownMenu.Shortcut>
410
410
  </DropdownMenu.CheckboxItem>
411
411
 
412
412
  {#if showGrid}
413
413
  <DropdownMenu.CheckboxItem switch checked={gridVisible} onCheckedChange={onToggleGrid}>
414
414
  <Grid3x3 />
415
415
  {t.grid}
416
- <DropdownMenu.Shortcut class="pointer-coarse:hidden">G</DropdownMenu.Shortcut>
416
+ <DropdownMenu.Shortcut>G</DropdownMenu.Shortcut>
417
417
  </DropdownMenu.CheckboxItem>
418
418
  {/if}
419
419
 
@@ -421,7 +421,7 @@
421
421
  <DropdownMenu.CheckboxItem switch checked={nightOn} onCheckedChange={onToggleNight}>
422
422
  <Moon />
423
423
  {t.nightMode}
424
- <DropdownMenu.Shortcut class="pointer-coarse:hidden">N</DropdownMenu.Shortcut>
424
+ <DropdownMenu.Shortcut>N</DropdownMenu.Shortcut>
425
425
  </DropdownMenu.CheckboxItem>
426
426
  {/if}
427
427
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@selvajs/ui",
3
- "version": "7.0.2",
3
+ "version": "7.0.3-beta.1",
4
4
  "description": "Shared UI components and utilities for Selva applications",
5
5
  "license": "MIT",
6
6
  "author": "VektorNode",
@@ -63,9 +63,9 @@
63
63
  "tailwind-variants": "^3.3.1",
64
64
  "three": "^0.187.0",
65
65
  "@selvajs/compute": "^5.0.1",
66
- "@selvajs/schemas": "^5.3.0",
67
- "@selvajs/solve": "^2.0.1",
68
- "@selvajs/visualization": "^1.7.0"
66
+ "@selvajs/schemas": "^5.3.1-beta.0",
67
+ "@selvajs/solve": "^2.1.0-beta.1",
68
+ "@selvajs/visualization": "^1.7.1-beta.0"
69
69
  },
70
70
  "peerDependenciesMeta": {
71
71
  "three": {
@@ -96,9 +96,9 @@
96
96
  "vitest": "^5.0.5",
97
97
  "@selvajs/compute": "5.0.1",
98
98
  "@selvajs/config": "0.0.4",
99
- "@selvajs/schemas": "5.3.0",
100
- "@selvajs/solve": "2.0.1",
101
- "@selvajs/visualization": "1.7.0"
99
+ "@selvajs/schemas": "5.3.1-beta.0",
100
+ "@selvajs/visualization": "1.7.1-beta.0",
101
+ "@selvajs/solve": "2.1.0-beta.1"
102
102
  },
103
103
  "imports": {
104
104
  "#lib": "./src/lib/index.js",
@@ -38,7 +38,7 @@
38
38
  {@render childrenProp?.()}
39
39
  {#if asSwitch}
40
40
  <span
41
- class="[[data-slot=dropdown-menu-shortcut]+&]:ml-2 h-4.5 w-8 pointer-events-none relative ml-auto shrink-0 rounded-full transition-colors {checked
41
+ class="not-pointer-coarse:[[data-slot=dropdown-menu-shortcut]+&]:ml-2 h-4.5 w-8 pointer-events-none relative ml-auto shrink-0 rounded-full transition-colors {checked
42
42
  ? 'bg-primary'
43
43
  : 'bg-input'}"
44
44
  data-slot="dropdown-menu-checkbox-item-switch"
@@ -14,7 +14,7 @@
14
14
  bind:this={ref}
15
15
  data-slot="dropdown-menu-shortcut"
16
16
  class={cn(
17
- 'h-5 min-w-5 px-1 font-mono ml-auto inline-flex items-center justify-center rounded-sm border bg-muted text-2xs text-muted-foreground group-focus/dropdown-menu-item:text-foreground',
17
+ 'h-5 min-w-5 px-1 font-mono ml-auto inline-flex items-center justify-center rounded-sm border bg-muted text-2xs text-muted-foreground group-focus/dropdown-menu-item:text-foreground pointer-coarse:hidden',
18
18
  className
19
19
  )}
20
20
  {...restProps}
@@ -316,7 +316,7 @@
316
316
  >
317
317
  <Spline />
318
318
  {t.edges}
319
- <DropdownMenu.Shortcut class="pointer-coarse:hidden">E</DropdownMenu.Shortcut>
319
+ <DropdownMenu.Shortcut>E</DropdownMenu.Shortcut>
320
320
  </DropdownMenu.CheckboxItem>
321
321
  </DropdownMenu.Content>
322
322
  </DropdownMenu.Root>
@@ -406,14 +406,14 @@
406
406
  >
407
407
  <Cuboid />
408
408
  {t.switchToOrthographic}
409
- <DropdownMenu.Shortcut class="pointer-coarse:hidden">O</DropdownMenu.Shortcut>
409
+ <DropdownMenu.Shortcut>O</DropdownMenu.Shortcut>
410
410
  </DropdownMenu.CheckboxItem>
411
411
 
412
412
  {#if showGrid}
413
413
  <DropdownMenu.CheckboxItem switch checked={gridVisible} onCheckedChange={onToggleGrid}>
414
414
  <Grid3x3 />
415
415
  {t.grid}
416
- <DropdownMenu.Shortcut class="pointer-coarse:hidden">G</DropdownMenu.Shortcut>
416
+ <DropdownMenu.Shortcut>G</DropdownMenu.Shortcut>
417
417
  </DropdownMenu.CheckboxItem>
418
418
  {/if}
419
419
 
@@ -421,7 +421,7 @@
421
421
  <DropdownMenu.CheckboxItem switch checked={nightOn} onCheckedChange={onToggleNight}>
422
422
  <Moon />
423
423
  {t.nightMode}
424
- <DropdownMenu.Shortcut class="pointer-coarse:hidden">N</DropdownMenu.Shortcut>
424
+ <DropdownMenu.Shortcut>N</DropdownMenu.Shortcut>
425
425
  </DropdownMenu.CheckboxItem>
426
426
  {/if}
427
427