@newtone-dev/ui-react-web 0.13.0 → 0.14.0

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.
@@ -144,6 +144,38 @@
144
144
  backdrop-filter: blur(16px);
145
145
  }
146
146
 
147
+ /* THE RIM, FROM 0.14.0 (2026-09-29) -- "maybe a gradient border from 75% white on the top to 50% black
148
+ * on the bottom." The colour is the token `on-media.control.rest.border`, a `linear-gradient`, and a
149
+ * gradient cannot be a `border-color`; painted on the border box as a background it would show through
150
+ * the 45% fill. So it is a ring: a box 1px larger than the element on every side, painted with the
151
+ * gradient, with its content box masked away. It sits over the transparent 1px rim the box already
152
+ * draws, so nothing moves, and it takes no pointer. The disc below wears the same ring. Repo blueprint,
153
+ * section 3, *The disc and the control wear a gradient rim*. */
154
+ .newtone-on-media-control::before,
155
+ .newtone-on-media-disc::before {
156
+ content: '';
157
+ position: absolute;
158
+ inset: -1px;
159
+ padding: 1px;
160
+ border-radius: inherit;
161
+ background: var(--newtone-on-media-control-rest-border);
162
+ -webkit-mask:
163
+ linear-gradient(#000 0 0) content-box,
164
+ linear-gradient(#000 0 0);
165
+ -webkit-mask-composite: xor;
166
+ mask:
167
+ linear-gradient(#000 0 0) content-box exclude,
168
+ linear-gradient(#000 0 0);
169
+ pointer-events: none;
170
+ }
171
+
172
+ /* The ring needs a positioned box, and these two are often positioned already: a gallery's arrows and
173
+ * the lightbox's disc are `absolute`, at the same specificity as this sheet. So `relative` is written
174
+ * at none, and any class that places the box wins over it whatever the import order. */
175
+ :where(.newtone-on-media-control, .newtone-on-media-disc) {
176
+ position: relative;
177
+ }
178
+
147
179
  /* THE SAME DISC WITH NO PRESS IN IT, and it exists because of one element.
148
180
  *
149
181
  * `video-lightbox/`'s play disc is a `<span aria-hidden>` inside the tile's own `<button>` -- the
@@ -41,6 +41,13 @@
41
41
  pointer-events: none;
42
42
  }
43
43
 
44
+ /* The text is a block, from 0.14.0, so its lines are body-sm's own leading. As an inline span it sat in
45
+ the bubble's line box, whose height is inherited from wherever the tooltip is placed -- 24px in one
46
+ caller, 0px in another. components/tooltip.md. */
47
+ .newtone-tooltip-bubble > .newtone-text {
48
+ display: block;
49
+ }
50
+
44
51
  /* The corner bridge: a diagonal move from the trigger crosses the one point where the two boxes meet,
45
52
  which hit-testing puts in neither (a box's right and bottom edges are outside it), and hover would
46
53
  drop there. A 12px square straddling the tail corner, 8px out over the trigger box's empty corner and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newtone-dev/ui-react-web",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",