@djangocfg/widget-data 0.1.17 → 0.1.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/widget-data",
3
- "version": "0.1.17",
3
+ "version": "0.1.20",
4
4
  "description": "Data surfaces: file tree, JSON viewer, data grid and table, kanban, listbox, masonry and timeline",
5
5
  "keywords": [
6
6
  "tree",
@@ -90,23 +90,23 @@
90
90
  "test:watch": "vitest"
91
91
  },
92
92
  "dependencies": {
93
- "@djangocfg/widget-kit": "^0.1.18",
93
+ "@djangocfg/widget-kit": "^0.1.19",
94
94
  "@dnd-kit/core": "^6.3.1",
95
95
  "@radix-ui/react-direction": "^1.2.0",
96
96
  "@radix-ui/react-slot": "^1.5.0",
97
97
  "class-variance-authority": "^0.7.1"
98
98
  },
99
99
  "peerDependencies": {
100
- "@djangocfg/api": "^2.1.612",
101
- "@djangocfg/ui-core": "^2.1.612",
100
+ "@djangocfg/api": "^2.1.636",
101
+ "@djangocfg/ui-core": "^2.1.636",
102
102
  "lucide-react": "^1.68.0",
103
103
  "react": "^19.0.0",
104
104
  "react-dom": "^19.0.0"
105
105
  },
106
106
  "devDependencies": {
107
- "@djangocfg/api": "^2.1.612",
108
- "@djangocfg/typescript-config": "^2.1.612",
109
- "@djangocfg/ui-core": "^2.1.612",
107
+ "@djangocfg/api": "^2.1.636",
108
+ "@djangocfg/typescript-config": "^2.1.636",
109
+ "@djangocfg/ui-core": "^2.1.636",
110
110
  "@storybook/react-vite": "^10.6.5",
111
111
  "@types/node": "^25.9.5",
112
112
  "@types/react": "19.3.0",
@@ -45,7 +45,7 @@ import {
45
45
  useState,
46
46
  type CSSProperties,
47
47
  } from 'react';
48
- import { Button, Input, Tooltip, TooltipContent, TooltipTrigger } from '@djangocfg/ui-core';
48
+ import { Button, Input } from '@djangocfg/ui-core';
49
49
  import { cn } from '@djangocfg/ui-core/lib';
50
50
  import type { JsonAction, JsonTreeProps, JsonValue } from './types';
51
51
 
@@ -423,9 +423,7 @@ function Toolbar({
423
423
  const btnSize = compact ? 'size-6' : 'size-7';
424
424
  const iconSize = compact ? 'size-3' : 'size-3.5';
425
425
  const rowPadding = compact ? 'px-2 py-1' : 'px-3 py-1.5';
426
- // Each action button is wrapped in a Tooltip for the keyboard / mouse
427
- // discoverability win. `asChild` keeps the underlying <button> as the
428
- // trigger so focus styling stays on the visible element.
426
+ // Each action button carries its label as a `tooltip` (hover devices only).
429
427
  const renderBtn = (
430
428
  key: string,
431
429
  label: string,
@@ -433,22 +431,19 @@ function Toolbar({
433
431
  onClick: () => void,
434
432
  active?: boolean,
435
433
  ) => (
436
- <Tooltip key={key}>
437
- <TooltipTrigger asChild>
438
- <Button
439
- type="button"
440
- variant="ghost"
441
- size="icon"
442
- onClick={onClick}
443
- aria-label={label}
444
- aria-pressed={active}
445
- className={cn(btnSize, 'text-muted-foreground hover:text-foreground', active && 'bg-muted text-foreground')}
446
- >
447
- {icon}
448
- </Button>
449
- </TooltipTrigger>
450
- <TooltipContent side="top">{label}</TooltipContent>
451
- </Tooltip>
434
+ <Button
435
+ key={key}
436
+ type="button"
437
+ variant="ghost"
438
+ size="icon"
439
+ onClick={onClick}
440
+ aria-label={label}
441
+ aria-pressed={active}
442
+ tooltip={label}
443
+ className={cn(btnSize, 'text-muted-foreground hover:text-foreground', active && 'bg-muted text-foreground')}
444
+ >
445
+ {icon}
446
+ </Button>
452
447
  );
453
448
 
454
449
  const iconCls = iconSize;