@spectrum-web-components/contextual-help 0.44.0 → 0.46.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/contextual-help",
3
- "version": "0.44.0",
3
+ "version": "0.46.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,12 +57,12 @@
57
57
  "lit-html"
58
58
  ],
59
59
  "dependencies": {
60
- "@spectrum-web-components/action-button": "^0.44.0",
61
- "@spectrum-web-components/base": "^0.44.0",
62
- "@spectrum-web-components/dialog": "^0.44.0",
63
- "@spectrum-web-components/icons-workflow": "^0.44.0",
64
- "@spectrum-web-components/overlay": "^0.44.0",
65
- "@spectrum-web-components/popover": "^0.44.0"
60
+ "@spectrum-web-components/action-button": "^0.46.0",
61
+ "@spectrum-web-components/base": "^0.46.0",
62
+ "@spectrum-web-components/dialog": "^0.46.0",
63
+ "@spectrum-web-components/icons-workflow": "^0.46.0",
64
+ "@spectrum-web-components/overlay": "^0.46.0",
65
+ "@spectrum-web-components/popover": "^0.46.0"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@spectrum-css/contextualhelp": "^2.1.5"
@@ -74,5 +74,5 @@
74
74
  "./**/*.dev.js",
75
75
  "./**/*.dev.js"
76
76
  ],
77
- "gitHead": "0002d42ce82463b85022e5aa5f7aba8484cba096"
77
+ "gitHead": "ab84b447210de593649b086a1605abf1be1d64f2"
78
78
  }
@@ -0,0 +1,6 @@
1
+ import { ContextualHelp } from './src/ContextualHelp.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'sp-contextual-help': ContextualHelp;
5
+ }
6
+ }
@@ -0,0 +1,47 @@
1
+ import { CSSResultArray, SpectrumElement, TemplateResult } from '@spectrum-web-components/base';
2
+ import '@spectrum-web-components/action-button/sp-action-button.js';
3
+ import '@spectrum-web-components/overlay/sp-overlay.js';
4
+ import '@spectrum-web-components/icons-workflow/icons/sp-icon-help-outline.js';
5
+ import '@spectrum-web-components/icons-workflow/icons/sp-icon-info-outline.js';
6
+ import type { Placement } from '@spectrum-web-components/overlay/src/overlay-types.js';
7
+ import { MatchMediaController } from '@spectrum-web-components/reactive-controllers/src/MatchMedia.js';
8
+ /**
9
+ * Spectrum Contextual help provides additional information about
10
+ * the state of either an adjacent component or an entire view.
11
+ * @element sp-contextual-help
12
+ *
13
+ * @slot heading - content to display as the heading of the popover
14
+ * @slot Text content to display in the popover
15
+ * @slot link - link to additional informations
16
+ */
17
+ export declare class ContextualHelp extends SpectrumElement {
18
+ protected isMobile: MatchMediaController;
19
+ static get styles(): CSSResultArray;
20
+ /**
21
+ * Provides an accessible name for the action button trigger.
22
+ * @param {String} label
23
+ */
24
+ label?: string;
25
+ /**
26
+ * The `variant` property applies specific styling on the action button trigger.
27
+ * @param {String} variant
28
+ */
29
+ variant: 'info' | 'help';
30
+ /**
31
+ * @type {"top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end"}
32
+ * @attr
33
+ */
34
+ placement?: Placement;
35
+ /**
36
+ * The `offset` property accepts either a single number, to
37
+ * define the offset of the Popover along the main axis from
38
+ * the action button, or 2-tuple, to define the offset along the
39
+ * main axis and the cross axis.
40
+ */
41
+ offset: number | [number, number];
42
+ open: boolean;
43
+ private get buttonAriaLabel();
44
+ private renderOverlayContent;
45
+ private handleSlottableRequest;
46
+ protected render(): TemplateResult;
47
+ }
@@ -0,0 +1,2 @@
1
+ declare const styles: import("@spectrum-web-components/base").CSSResult;
2
+ export default styles;
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './ContextualHelp.js';
@@ -0,0 +1,2 @@
1
+ declare const styles: import("@spectrum-web-components/base").CSSResult;
2
+ export default styles;