@aurodesignsystem-dev/auro-popover 0.0.0-pr141.0 → 0.0.0-pr141.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
@@ -32,11 +32,11 @@ Shows short supporting content next to a trigger when someone hovers over, focus
32
32
 
33
33
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
34
34
  <!-- The below content is automatically added from ./docs/partials/useCases.md -->
35
- The `auro-popover` element should be used in situations where users may:
35
+ Use `auro-popover` to give people more detail without leaving the page, such as:
36
36
 
37
- * interact with an element to get clarification on content offering
38
- * provide definition to iconic imagery
39
- * when helper text is required
37
+ * A short clarification of content they're reading.
38
+ * A definition for an icon.
39
+ * Helper text for a control.
40
40
  <!-- AURO-GENERATED-CONTENT:END -->
41
41
 
42
42
  ## Install
package/demo/api.md CHANGED
@@ -38,11 +38,11 @@ Shows short supporting content next to a trigger when someone hovers over, focus
38
38
 
39
39
  ### CSS shadow parts
40
40
 
41
- | Name | Description |
42
- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
43
- | arrow | The positioning anchor for the popover's arrow. The visible arrow shape is its `::before` pseudo-element, so target `::part(arrow)::before` to change color, shadow, or size. Popper sets the arrow's position, so don't override it through this part. |
44
- | popover | The popover bubble that holds the content. |
45
- | trigger | The wrapper around the `trigger` slot, useful for correcting alignment between the trigger and the popover. Empty when the `for` attribute is used, because the trigger then lives outside the component. |
41
+ | Name | Description |
42
+ | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
43
+ | arrow | The arrow that points from the popover to its trigger. Its visible shape is the `::before` pseudo-element, where color, shadow, and size are set. The component sets the arrow's position. |
44
+ | popover | The popover bubble that holds the content. |
45
+ | trigger | The wrapper around the `trigger` slot, useful for correcting alignment between the trigger and the popover. Empty when the `for` attribute is used, because the trigger then lives outside the component. |
46
46
 
47
47
  ### CSS custom properties
48
48
 
@@ -163,14 +163,14 @@ Use the `boundary` property to keep the popover inside a container, shifting it
163
163
  <div style="height: 150px; width: 200px; background-color: #fcfcfc; border: 1px solid darkgray;">
164
164
  <auro-popover placement="bottom">
165
165
  Popover content!
166
- <auro-button slot="trigger">Popover Test</auro-button>
166
+ <auro-button slot="trigger">Popover test</auro-button>
167
167
  </auro-popover>
168
168
  </div>
169
169
  <strong>Example with boundary set</strong>
170
170
  <div id="popoverBoundary" style="height: 150px; width: 200px; background-color: #fcfcfc; border: 1px solid darkgray;">
171
171
  <auro-popover class="boundaryExample" placement="bottom">
172
172
  Popover content!
173
- <auro-button slot="trigger">Popover Test</auro-button>
173
+ <auro-button slot="trigger">Popover test</auro-button>
174
174
  </auro-popover>
175
175
  </div>
176
176
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -184,14 +184,14 @@ Use the `boundary` property to keep the popover inside a container, shifting it
184
184
  &lt;div style="height: 150px; width: 200px; background-color: #fcfcfc; border: 1px solid darkgray;"&gt;
185
185
  &lt;auro-popover placement="bottom"&gt;
186
186
  Popover content!
187
- &lt;auro-button slot="trigger"&gt;Popover Test&lt;/auro-button&gt;
187
+ &lt;auro-button slot="trigger"&gt;Popover test&lt;/auro-button&gt;
188
188
  &lt;/auro-popover&gt;
189
189
  &lt;/div&gt;
190
190
  &#10;&lt;strong&gt;Example with boundary set&lt;/strong&gt;
191
191
  &lt;div id="popoverBoundary" style="height: 150px; width: 200px; background-color: #fcfcfc; border: 1px solid darkgray;"&gt;
192
192
  &lt;auro-popover class="boundaryExample" placement="bottom"&gt;
193
193
  Popover content!
194
- &lt;auro-button slot="trigger"&gt;Popover Test&lt;/auro-button&gt;
194
+ &lt;auro-button slot="trigger"&gt;Popover test&lt;/auro-button&gt;
195
195
  &lt;/auro-popover&gt;
196
196
  &lt;/div&gt;</code></pre>
197
197
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -297,7 +297,7 @@ Three things to know before reaching for these:
297
297
 
298
298
  **The arrow's visible shape is a pseudo-element.** `::part(arrow)` selects an invisible positioning anchor; the diamond you see is its `::before`. Target `::part(arrow)::before` to change color, shadow, or size. Because the arrow and the bubble are painted separately, recolor both together or the seam between them shows.
299
299
 
300
- **The arrow's position belongs to the component.** Placement is set by Popper as inline styles that are recalculated every time the popover opens, so `transform`, `top`, `left`, and `position` cannot be overridden through `::part(arrow)`. Use the `placement` attribute to choose which side the popover appears on. Resizing the arrow via `::part(arrow)::before` also shifts where it meets the bubble, so verify both `placement="top"` and `placement="bottom"` if you change its dimensions.
300
+ **The arrow's position is set by the component.** It's recalculated every time the popover opens. Use the `placement` attribute to choose which side the popover appears on. Resizing the arrow via `::part(arrow)::before` also shifts where it meets the bubble, so check both `placement="top"` and `placement="bottom"` if you change its dimensions.
301
301
 
302
302
  **The `trigger` part is empty when you use `for`.** It wraps the trigger slot, so it only has something to style when the trigger is slotted into the component. If you point at an external element with `for`, that element is not inside the wrapper and `::part(trigger)` silently does nothing. Style the external trigger directly instead.
303
303
 
@@ -326,7 +326,7 @@ To adjust spacing between the popover and its trigger, prefer the `addspace` and
326
326
  .cssPartsExample auro-popover::part(arrow)::before {
327
327
  background-color: #01426a;
328
328
  }
329
- /* Trigger wrapper — aligns an icon trigger with adjacent text. */
329
+ /* Trigger wrapper: aligns an icon trigger with adjacent text. */
330
330
  .cssPartsExample .iconTrigger auro-popover::part(trigger) {
331
331
  display: inline-flex;
332
332
  align-items: center;
@@ -372,7 +372,7 @@ Match the bubble background or a seam shows. */
372
372
  .cssPartsExample auro-popover::part(arrow)::before {
373
373
  background-color: #01426a;
374
374
  }
375
- /* Trigger wrapper — aligns an icon trigger with adjacent text. */
375
+ /* Trigger wrapper: aligns an icon trigger with adjacent text. */
376
376
  .cssPartsExample .iconTrigger auro-popover::part(trigger) {
377
377
  display: inline-flex;
378
378
  align-items: center;
package/demo/api.min.js CHANGED
@@ -1912,11 +1912,11 @@ const popoverOffsetDistance = 18;
1912
1912
  const popoverOffsetSkidding = 0;
1913
1913
 
1914
1914
  /**
1915
- * Whether `el` is currently in the top layer via the native popover API.
1915
+ * Checks whether an element is currently in the top layer through the native popover API.
1916
1916
  * Gated on `showPopover` (spec-paired with `:popover-open`) plus try/catch
1917
1917
  * for older selector parsers that reject the unknown pseudo-class.
1918
- * @param {Element | null | undefined} el
1919
- * @returns {boolean}
1918
+ * @param {Element | null | undefined} el - The element to check.
1919
+ * @returns {boolean} True if the element is open in the top layer; false otherwise.
1920
1920
  */
1921
1921
  function isTopLayerOpen(el) {
1922
1922
  if (!el || typeof el.showPopover !== "function") {
@@ -2088,7 +2088,7 @@ var tokensCss = i$3`:host{--ds-auro-popover-boxshadow-color: var(--ds-elevation-
2088
2088
  * @slot trigger - The element in this slot triggers hiding and showing the popover.
2089
2089
  *
2090
2090
  * @csspart popover - The popover bubble that holds the content.
2091
- * @csspart arrow - The positioning anchor for the popover's arrow. The visible arrow shape is its `::before` pseudo-element, so target `::part(arrow)::before` to change color, shadow, or size. Popper sets the arrow's position, so don't override it through this part.
2091
+ * @csspart arrow - The arrow that points from the popover to its trigger. Its visible shape is the `::before` pseudo-element, where color, shadow, and size are set. The component sets the arrow's position.
2092
2092
  * @csspart trigger - The wrapper around the `trigger` slot, useful for correcting alignment between the trigger and the popover. Empty when the `for` attribute is used, because the trigger then lives outside the component.
2093
2093
  *
2094
2094
  * @cssprop --ds-auro-popover-boxshadow-color - Color of the shadow around the popover.
@@ -2461,11 +2461,11 @@ class AuroPopover extends i {
2461
2461
  * - Natively focusable elements (tabIndex >= 0): `<button>`, `<a href>`, `<input>`, and so on.
2462
2462
  * - Custom elements whose shadow DOM contains a focusable descendant (for example, `auro-button`
2463
2463
  * has an inner `<button>`): adding tabindex to the host would create a double tab stop.
2464
- * - Elements where the author has explicitly set tabindex — their intent is respected.
2464
+ * - Elements where the author has explicitly set tabindex: their intent is respected.
2465
2465
  *
2466
2466
  * Known limitation: custom elements with a closed shadow root (mode: 'closed') cannot
2467
- * be inspected — shadowRoot returns null. If such an element has an internal focusable
2468
- * descendant and a host tabIndex of -1, tabindex="0" will be added, potentially
2467
+ * be inspected, because shadowRoot returns null. If such an element has an internal focusable
2468
+ * descendant and a host tabIndex of -1, the component adds tabindex="0", potentially
2469
2469
  * creating a double tab stop. Elements using delegatesFocus avoid this because the
2470
2470
  * browser reflects a non-negative tabIndex on the host.
2471
2471
  *
package/demo/index.md CHANGED
@@ -15,11 +15,11 @@ Shows short supporting content next to a trigger when someone hovers over, focus
15
15
 
16
16
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/useCases.md) -->
17
17
  <!-- The below content is automatically added from ./../docs/partials/useCases.md -->
18
- The `auro-popover` element should be used in situations where users may:
18
+ Use `auro-popover` to give people more detail without leaving the page, such as:
19
19
 
20
- * interact with an element to get clarification on content offering
21
- * provide definition to iconic imagery
22
- * when helper text is required
20
+ * A short clarification of content they're reading.
21
+ * A definition for an icon.
22
+ * Helper text for a control.
23
23
  <!-- AURO-GENERATED-CONTENT:END -->
24
24
 
25
25
  ## Developer Notes
package/demo/index.min.js CHANGED
@@ -1905,11 +1905,11 @@ const popoverOffsetDistance = 18;
1905
1905
  const popoverOffsetSkidding = 0;
1906
1906
 
1907
1907
  /**
1908
- * Whether `el` is currently in the top layer via the native popover API.
1908
+ * Checks whether an element is currently in the top layer through the native popover API.
1909
1909
  * Gated on `showPopover` (spec-paired with `:popover-open`) plus try/catch
1910
1910
  * for older selector parsers that reject the unknown pseudo-class.
1911
- * @param {Element | null | undefined} el
1912
- * @returns {boolean}
1911
+ * @param {Element | null | undefined} el - The element to check.
1912
+ * @returns {boolean} True if the element is open in the top layer; false otherwise.
1913
1913
  */
1914
1914
  function isTopLayerOpen(el) {
1915
1915
  if (!el || typeof el.showPopover !== "function") {
@@ -2081,7 +2081,7 @@ var tokensCss = i$3`:host{--ds-auro-popover-boxshadow-color: var(--ds-elevation-
2081
2081
  * @slot trigger - The element in this slot triggers hiding and showing the popover.
2082
2082
  *
2083
2083
  * @csspart popover - The popover bubble that holds the content.
2084
- * @csspart arrow - The positioning anchor for the popover's arrow. The visible arrow shape is its `::before` pseudo-element, so target `::part(arrow)::before` to change color, shadow, or size. Popper sets the arrow's position, so don't override it through this part.
2084
+ * @csspart arrow - The arrow that points from the popover to its trigger. Its visible shape is the `::before` pseudo-element, where color, shadow, and size are set. The component sets the arrow's position.
2085
2085
  * @csspart trigger - The wrapper around the `trigger` slot, useful for correcting alignment between the trigger and the popover. Empty when the `for` attribute is used, because the trigger then lives outside the component.
2086
2086
  *
2087
2087
  * @cssprop --ds-auro-popover-boxshadow-color - Color of the shadow around the popover.
@@ -2454,11 +2454,11 @@ class AuroPopover extends i {
2454
2454
  * - Natively focusable elements (tabIndex >= 0): `<button>`, `<a href>`, `<input>`, and so on.
2455
2455
  * - Custom elements whose shadow DOM contains a focusable descendant (for example, `auro-button`
2456
2456
  * has an inner `<button>`): adding tabindex to the host would create a double tab stop.
2457
- * - Elements where the author has explicitly set tabindex — their intent is respected.
2457
+ * - Elements where the author has explicitly set tabindex: their intent is respected.
2458
2458
  *
2459
2459
  * Known limitation: custom elements with a closed shadow root (mode: 'closed') cannot
2460
- * be inspected — shadowRoot returns null. If such an element has an internal focusable
2461
- * descendant and a host tabIndex of -1, tabindex="0" will be added, potentially
2460
+ * be inspected, because shadowRoot returns null. If such an element has an internal focusable
2461
+ * descendant and a host tabIndex of -1, the component adds tabindex="0", potentially
2462
2462
  * creating a double tab stop. Elements using delegatesFocus avoid this because the
2463
2463
  * browser reflects a non-negative tabIndex on the host.
2464
2464
  *
package/demo/readme.md CHANGED
@@ -32,11 +32,11 @@ Shows short supporting content next to a trigger when someone hovers over, focus
32
32
 
33
33
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
34
34
  <!-- The below content is automatically added from ./docs/partials/useCases.md -->
35
- The `auro-popover` element should be used in situations where users may:
35
+ Use `auro-popover` to give people more detail without leaving the page, such as:
36
36
 
37
- * interact with an element to get clarification on content offering
38
- * provide definition to iconic imagery
39
- * when helper text is required
37
+ * A short clarification of content they're reading.
38
+ * A definition for an icon.
39
+ * Helper text for a control.
40
40
  <!-- AURO-GENERATED-CONTENT:END -->
41
41
 
42
42
  ## Install
package/dist/index.d.ts CHANGED
@@ -216,7 +216,7 @@ export type CustomElements = {
216
216
  *
217
217
  * Custom selectors for styling elements within the component.
218
218
  *
219
- * - `arrow`: The positioning anchor for the popover's arrow. The visible arrow shape is its `::before` pseudo-element, so target `::part(arrow)::before` to change color, shadow, or size. Popper sets the arrow's position, so don't override it through this part.
219
+ * - `arrow`: The arrow that points from the popover to its trigger. Its visible shape is the `::before` pseudo-element, where color, shadow, and size are set. The component sets the arrow's position.
220
220
  * - `popover`: The popover bubble that holds the content.
221
221
  * - `trigger`: The wrapper around the `trigger` slot, useful for correcting alignment between the trigger and the popover. Empty when the `for` attribute is used, because the trigger then lives outside the component.
222
222
  */
@@ -282,7 +282,7 @@ export type CustomElementsSolidJs = {
282
282
  *
283
283
  * Custom selectors for styling elements within the component.
284
284
  *
285
- * - `arrow`: The positioning anchor for the popover's arrow. The visible arrow shape is its `::before` pseudo-element, so target `::part(arrow)::before` to change color, shadow, or size. Popper sets the arrow's position, so don't override it through this part.
285
+ * - `arrow`: The arrow that points from the popover to its trigger. Its visible shape is the `::before` pseudo-element, where color, shadow, and size are set. The component sets the arrow's position.
286
286
  * - `popover`: The popover bubble that holds the content.
287
287
  * - `trigger`: The wrapper around the `trigger` slot, useful for correcting alignment between the trigger and the popover. Empty when the `for` attribute is used, because the trigger then lives outside the component.
288
288
  */
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "================================================================================"
8
8
  ],
9
9
  "name": "@aurodesignsystem-dev/auro-popover",
10
- "version": "0.0.0-pr141.0",
10
+ "version": "0.0.0-pr141.1",
11
11
  "description": "auro-popover HTML custom element",
12
12
  "repository": {
13
13
  "type": "git",