@gridui/tooltip 1.2.0 → 1.2.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.
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # @gridui/tooltip
2
2
 
3
- Core family. Public API: `Tooltip`, `TooltipContent`, `TooltipContentProps`, `TooltipProps`, `TooltipProvider`, `TooltipProviderProps`, `TooltipTrigger`, `TooltipTriggerProps`.
3
+ Overlays family. Public API: `Tooltip`, `TooltipContent`, `TooltipContentProps`, `TooltipProps`, `TooltipProvider`, `TooltipProviderProps`, `TooltipTrigger`, `TooltipTriggerProps`.
4
4
 
5
5
  Import components from `@gridui/tooltip` and load `@gridui/tooltip/styles.css` after Theme.
6
6
  Applications own routes, labels, state persistence, and branding.
7
7
 
8
- See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-core/tooltip/.changeset/history).
8
+ See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-overlays/tooltip/.changeset/history).
9
9
 
10
10
  ## Styles
11
11
 
@@ -66,5 +66,5 @@ Surface motion uses `@gridui/overlay`; its styles are included.
66
66
 
67
67
  Shared animation policy and tempo come from `MotionConfig` in `@gridui/motion`.
68
68
  Disabled or reduced-motion policy settles decoration without disabling interaction.
69
- See the [motion guide](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-core/motion)
69
+ See the [motion guide](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-foundation/motion)
70
70
  for CSS scopes, portal behavior, and specialized timing contracts.
package/dist/styles.css CHANGED
@@ -1,11 +1,6 @@
1
1
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
2
  @layer properties;
3
3
  @layer theme, base, components, utilities;
4
- @layer theme {
5
- :root, :host {
6
- --spacing: 0.25rem;
7
- }
8
- }
9
4
  @layer utilities {
10
5
  .gridui-u-overlay--z-\(--gridui-z-popover\) {
11
6
  z-index: var(--gridui-z-popover);
@@ -20,9 +15,6 @@
20
15
  width: var(--gridui-space-16);
21
16
  height: var(--gridui-space-16);
22
17
  }
23
- .gridui-u-overlay--min-h-10 {
24
- min-height: calc(var(--spacing) * 10);
25
- }
26
18
  .gridui-u-overlay--min-w-0 {
27
19
  min-width: 0px;
28
20
  }
@@ -61,15 +53,9 @@
61
53
  .gridui-u-overlay--p-0 {
62
54
  padding: 0px;
63
55
  }
64
- .gridui-u-overlay--p-gridui-8 {
65
- padding: var(--gridui-space-8);
66
- }
67
56
  .gridui-u-overlay--px-gridui-8 {
68
57
  padding-inline: var(--gridui-space-8);
69
58
  }
70
- .gridui-u-overlay--py-gridui-8 {
71
- padding-block: var(--gridui-space-8);
72
- }
73
59
  .gridui-u-overlay--type-data {
74
60
  font: var(--gridui-type-data);
75
61
  font-family: var(--gridui-font-body);
@@ -176,6 +162,25 @@
176
162
  animation: none;
177
163
  }
178
164
  }
165
+ .gridui-overlay-list {
166
+ --gridui-overlay-row-min: var(--gridui-control-min-height-medium);
167
+ --gridui-overlay-row-padding: var(--gridui-space-8);
168
+ }
169
+ .gridui-overlay-density-compact {
170
+ --gridui-overlay-row-min: var(--gridui-control-min-height-small);
171
+ --gridui-overlay-row-padding: var(--gridui-space-4);
172
+ }
173
+ .gridui-overlay-density-comfortable {
174
+ --gridui-overlay-row-min: var(--gridui-control-min-height-medium);
175
+ --gridui-overlay-row-padding: var(--gridui-space-8);
176
+ }
177
+ .gridui-overlay-list-item {
178
+ min-block-size: max(var(--gridui-overlay-row-min, var(--gridui-control-min-height-medium)), var(--gridui-target-min-size));
179
+ padding-block: var(--gridui-overlay-row-padding, var(--gridui-space-8));
180
+ }
181
+ .gridui-overlay-list-label {
182
+ padding-block: var(--gridui-overlay-row-padding, var(--gridui-space-8));
183
+ }
179
184
  }
180
185
  @property --tw-border-style {
181
186
  syntax: "*";
package/docs/catalog.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "@gridui/tooltip",
4
- "version": "1.2.0",
5
- "category": "core",
4
+ "version": "1.2.1",
5
+ "category": "overlays",
6
6
  "description": "GridUI React tooltip",
7
7
  "usage": "The Tooltip family owns composable primitives for supplemental button and link hints. This family owns timing, controlled state, native trigger composition, portal styling, positioning, accessibility, and content limits. Applications own clipboard state and localized labels.",
8
8
  "documentation": [
@@ -62,8 +62,8 @@
62
62
  ],
63
63
  "styledImport": "@gridui/tooltip/styled",
64
64
  "examples": [
65
- "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/tooltip/stories/getting-started.mdx",
66
- "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/tooltip/stories/hints.mdx",
67
- "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/tooltip/stories/tooltip.stories.tsx"
65
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/tooltip/stories/getting-started.mdx",
66
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/tooltip/stories/hints.mdx",
67
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/tooltip/stories/tooltip.stories.tsx"
68
68
  ]
69
69
  }
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
11
11
  import "@gridui/tooltip/styles.css";
12
12
  ```
13
13
 
14
- Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/tooltip/README.md) for shared behavior and stylesheet dependencies.
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/tooltip/README.md) for shared behavior and stylesheet dependencies.
15
15
 
16
- The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/tooltip/stories/tooltip.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/tooltip/stories/tooltip.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
17
 
18
18
  ## API
19
19
 
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
11
11
  import "@gridui/tooltip/styles.css";
12
12
  ```
13
13
 
14
- Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/tooltip/README.md) for shared behavior and stylesheet dependencies.
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/tooltip/README.md) for shared behavior and stylesheet dependencies.
15
15
 
16
- The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/tooltip/stories/tooltip.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/tooltip/stories/tooltip.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
17
 
18
18
  ## API
19
19
 
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
11
11
  import "@gridui/tooltip/styles.css";
12
12
  ```
13
13
 
14
- Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/tooltip/README.md) for shared behavior and stylesheet dependencies.
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/tooltip/README.md) for shared behavior and stylesheet dependencies.
15
15
 
16
- The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/tooltip/stories/tooltip.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/tooltip/stories/tooltip.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
17
 
18
18
  ## API
19
19
 
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
11
11
  import "@gridui/tooltip/styles.css";
12
12
  ```
13
13
 
14
- Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/tooltip/README.md) for shared behavior and stylesheet dependencies.
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/tooltip/README.md) for shared behavior and stylesheet dependencies.
15
15
 
16
- The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/tooltip/stories/tooltip.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-overlays/tooltip/stories/tooltip.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
17
 
18
18
  ## API
19
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridui/tooltip",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "GridUI React tooltip",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -32,16 +32,16 @@
32
32
  "react-dom": "^19.2.0"
33
33
  },
34
34
  "dependencies": {
35
- "@gridui/motion": "^1.0.2",
36
- "@gridui/overlay": "^2.4.0",
37
- "@gridui/style-utils": "^4.0.0",
38
- "@gridui/theme": "^4.0.0",
35
+ "@gridui/motion": "^1.0.3",
36
+ "@gridui/overlay": "^2.5.0",
37
+ "@gridui/style-utils": "^4.1.0",
38
+ "@gridui/theme": "^5.0.0",
39
39
  "@radix-ui/react-tooltip": "1.4.1",
40
40
  "class-variance-authority": "0.7.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@gridui-internal/configuration": "0.0.0-internal",
44
- "@gridui/button": "5.2.0",
44
+ "@gridui/button": "6.0.0",
45
45
  "@jest/globals": "30.5.2",
46
46
  "@storybook/react-vite": "10.6.7",
47
47
  "@types/jest": "30.0.0",