@quartzds/core 1.0.0-beta.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 +136 -0
- package/components/floating-ui.dom.esm.js +1402 -0
- package/components/floating-ui.dom.esm.js.map +1 -0
- package/components/helpers.js +174 -0
- package/components/helpers.js.map +1 -0
- package/components/icon.js +175 -0
- package/components/icon.js.map +1 -0
- package/components/index.d.ts +52 -0
- package/components/index.js +117 -0
- package/components/index.js.map +1 -0
- package/components/label.js +55 -0
- package/components/label.js.map +1 -0
- package/components/qds-button.d.ts +11 -0
- package/components/qds-button.js +148 -0
- package/components/qds-button.js.map +1 -0
- package/components/qds-checkbox.d.ts +11 -0
- package/components/qds-checkbox.js +156 -0
- package/components/qds-checkbox.js.map +1 -0
- package/components/qds-dropdown.d.ts +11 -0
- package/components/qds-dropdown.js +259 -0
- package/components/qds-dropdown.js.map +1 -0
- package/components/qds-icon.d.ts +11 -0
- package/components/qds-icon.js +13 -0
- package/components/qds-icon.js.map +1 -0
- package/components/qds-inline-link.d.ts +11 -0
- package/components/qds-inline-link.js +89 -0
- package/components/qds-inline-link.js.map +1 -0
- package/components/qds-input.d.ts +11 -0
- package/components/qds-input.js +244 -0
- package/components/qds-input.js.map +1 -0
- package/components/qds-label.d.ts +11 -0
- package/components/qds-label.js +13 -0
- package/components/qds-label.js.map +1 -0
- package/components/qds-radio.d.ts +11 -0
- package/components/qds-radio.js +109 -0
- package/components/qds-radio.js.map +1 -0
- package/components/qds-switch.d.ts +11 -0
- package/components/qds-switch.js +119 -0
- package/components/qds-switch.js.map +1 -0
- package/components/qds-title.d.ts +11 -0
- package/components/qds-title.js +94 -0
- package/components/qds-title.js.map +1 -0
- package/components/qds-tooltip.d.ts +11 -0
- package/components/qds-tooltip.js +325 -0
- package/components/qds-tooltip.js.map +1 -0
- package/dist/cjs/floating-ui.dom.esm-71fa96af.js +1410 -0
- package/dist/cjs/floating-ui.dom.esm-71fa96af.js.map +1 -0
- package/dist/cjs/helpers-0b23af3f.js +184 -0
- package/dist/cjs/helpers-0b23af3f.js.map +1 -0
- package/dist/cjs/index-f19b2823.js +2030 -0
- package/dist/cjs/index-f19b2823.js.map +1 -0
- package/dist/cjs/index.cjs.js +115 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/library-4803c801.js +62 -0
- package/dist/cjs/library-4803c801.js.map +1 -0
- package/dist/cjs/loader.cjs.js +29 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/qds-button.cjs.entry.js +110 -0
- package/dist/cjs/qds-button.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-checkbox.cjs.entry.js +116 -0
- package/dist/cjs/qds-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-dropdown.cjs.entry.js +227 -0
- package/dist/cjs/qds-dropdown.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-icon.cjs.entry.js +113 -0
- package/dist/cjs/qds-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-inline-link.cjs.entry.js +61 -0
- package/dist/cjs/qds-inline-link.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-input.cjs.entry.js +200 -0
- package/dist/cjs/qds-input.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-label.cjs.entry.js +39 -0
- package/dist/cjs/qds-label.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-radio.cjs.entry.js +74 -0
- package/dist/cjs/qds-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-switch.cjs.entry.js +79 -0
- package/dist/cjs/qds-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-title.cjs.entry.js +66 -0
- package/dist/cjs/qds-title.cjs.entry.js.map +1 -0
- package/dist/cjs/qds-tooltip.cjs.entry.js +284 -0
- package/dist/cjs/qds-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/qds.cjs.js +33 -0
- package/dist/cjs/qds.cjs.js.map +1 -0
- package/dist/custom-elements.json +3976 -0
- package/dist/docs.d.ts +148 -0
- package/dist/docs.json +3918 -0
- package/dist/esm/floating-ui.dom.esm-f96ac766.js +1402 -0
- package/dist/esm/floating-ui.dom.esm-f96ac766.js.map +1 -0
- package/dist/esm/helpers-5c189a19.js +174 -0
- package/dist/esm/helpers-5c189a19.js.map +1 -0
- package/dist/esm/index-1bc8e218.js +2000 -0
- package/dist/esm/index-1bc8e218.js.map +1 -0
- package/dist/esm/index.js +106 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/library-aa6893c0.js +58 -0
- package/dist/esm/library-aa6893c0.js.map +1 -0
- package/dist/esm/loader.js +25 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/qds-button.entry.js +106 -0
- package/dist/esm/qds-button.entry.js.map +1 -0
- package/dist/esm/qds-checkbox.entry.js +112 -0
- package/dist/esm/qds-checkbox.entry.js.map +1 -0
- package/dist/esm/qds-dropdown.entry.js +223 -0
- package/dist/esm/qds-dropdown.entry.js.map +1 -0
- package/dist/esm/qds-icon.entry.js +109 -0
- package/dist/esm/qds-icon.entry.js.map +1 -0
- package/dist/esm/qds-inline-link.entry.js +57 -0
- package/dist/esm/qds-inline-link.entry.js.map +1 -0
- package/dist/esm/qds-input.entry.js +196 -0
- package/dist/esm/qds-input.entry.js.map +1 -0
- package/dist/esm/qds-label.entry.js +35 -0
- package/dist/esm/qds-label.entry.js.map +1 -0
- package/dist/esm/qds-radio.entry.js +70 -0
- package/dist/esm/qds-radio.entry.js.map +1 -0
- package/dist/esm/qds-switch.entry.js +75 -0
- package/dist/esm/qds-switch.entry.js.map +1 -0
- package/dist/esm/qds-title.entry.js +62 -0
- package/dist/esm/qds-title.entry.js.map +1 -0
- package/dist/esm/qds-tooltip.entry.js +280 -0
- package/dist/esm/qds-tooltip.entry.js.map +1 -0
- package/dist/esm/qds.js +28 -0
- package/dist/esm/qds.js.map +1 -0
- package/dist/types/components/button/button.d.ts +209 -0
- package/dist/types/components/checkbox/checkbox.d.ts +136 -0
- package/dist/types/components/create-story.d.ts +5 -0
- package/dist/types/components/dropdown/dropdown.d.ts +135 -0
- package/dist/types/components/icon/default-library.d.ts +4 -0
- package/dist/types/components/icon/icon.d.ts +31 -0
- package/dist/types/components/icon/library.d.ts +19 -0
- package/dist/types/components/icon/request.d.ts +12 -0
- package/dist/types/components/icon/system-library.d.ts +4 -0
- package/dist/types/components/inline-link/inline-link.d.ts +208 -0
- package/dist/types/components/input/input.d.ts +386 -0
- package/dist/types/components/label/label.d.ts +33 -0
- package/dist/types/components/radio/radio.d.ts +110 -0
- package/dist/types/components/switch/switch.d.ts +115 -0
- package/dist/types/components/title/title.d.ts +42 -0
- package/dist/types/components/tooltip/tooltip.d.ts +147 -0
- package/dist/types/components.d.ts +1692 -0
- package/dist/types/helpers.d.ts +49 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/qds-test.d.ts +18 -0
- package/dist/types/stencil-public-runtime.d.ts +1638 -0
- package/dist/types/utils.d.ts +65 -0
- package/dist/vscode.html-custom-data.json +947 -0
- package/hydrate/index.d.ts +218 -0
- package/hydrate/index.js +9690 -0
- package/hydrate/package.json +6 -0
- package/loader/cdn.js +7 -0
- package/loader/index.cjs.js +7 -0
- package/loader/index.d.ts +21 -0
- package/loader/index.es2017.js +7 -0
- package/loader/index.js +8 -0
- package/loader/package.json +11 -0
- package/package.json +231 -0
- package/styles/core.css +379 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import type { AutoUpdateOptions, DetectOverflowOptions, FlipOptions, Placement, ReferenceElement, ShiftOptions, Strategy } from '@floating-ui/dom';
|
|
2
|
+
import type { ComponentInterface } from '../../stencil-public-runtime';
|
|
3
|
+
import type { OffsetOptions } from '../../helpers';
|
|
4
|
+
/**
|
|
5
|
+
* @experimental
|
|
6
|
+
* @slot Content to display in the dropdown.
|
|
7
|
+
* @see https://quartz.se.com/build/components/tooltip
|
|
8
|
+
*/
|
|
9
|
+
export declare class Tooltip implements ComponentInterface {
|
|
10
|
+
/**
|
|
11
|
+
* Options to pass to Floating UI's
|
|
12
|
+
* [`autoUpdate()` function](https://floating-ui.com/docs/autoUpdate).
|
|
13
|
+
*
|
|
14
|
+
* @see https://floating-ui.com/docs/autoupdate#options
|
|
15
|
+
*/
|
|
16
|
+
readonly autoUpdateOptions?: AutoUpdateOptions;
|
|
17
|
+
/**
|
|
18
|
+
* Prevents the tooltip from being shown by user interaction. The tooltip can
|
|
19
|
+
* still be displayed by calling the `show()` method.
|
|
20
|
+
*/
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Options to pass to Floating UI's
|
|
24
|
+
* [`flip` middleware](https://floating-ui.com/docs/flip).
|
|
25
|
+
*
|
|
26
|
+
* The [`crossAxis` option](https://floating-ui.com/docs/flip#crossaxis) is
|
|
27
|
+
* set to the value of the `noShift` property by default for interoperability
|
|
28
|
+
* with the [`shift` middleware](https://floating-ui.com/docs/shift).
|
|
29
|
+
*
|
|
30
|
+
* @see https://floating-ui.com/docs/flip#options
|
|
31
|
+
*/
|
|
32
|
+
readonly flipOptions?: Partial<DetectOverflowOptions & FlipOptions>;
|
|
33
|
+
/**
|
|
34
|
+
* Disable Floating UI's
|
|
35
|
+
* [`flip` middleware](https://floating-ui.com/docs/flip).
|
|
36
|
+
*/
|
|
37
|
+
readonly noFlip: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Disable Floating UI's
|
|
40
|
+
* [`shift` middleware](https://floating-ui.com/docs/shift).
|
|
41
|
+
*/
|
|
42
|
+
readonly noShift: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Options to pass to Floating UI's
|
|
45
|
+
* [`offset` middleware](https://floating-ui.com/docs/offset).
|
|
46
|
+
*
|
|
47
|
+
* The [`mainAxis` option](https://floating-ui.com/docs/offset#mainaxis) is
|
|
48
|
+
* not supported.
|
|
49
|
+
*
|
|
50
|
+
* @see https://floating-ui.com/docs/offset#options
|
|
51
|
+
*/
|
|
52
|
+
readonly offsetOptions?: OffsetOptions;
|
|
53
|
+
/**
|
|
54
|
+
* Where to place the tooltip relative to the `target`.
|
|
55
|
+
*
|
|
56
|
+
* @see https://floating-ui.com/docs/tutorial#placements
|
|
57
|
+
*/
|
|
58
|
+
readonly placement: Placement;
|
|
59
|
+
/**
|
|
60
|
+
* Options to pass to Floating UI's
|
|
61
|
+
* [`shift` middleware](https://floating-ui.com/docs/shift).
|
|
62
|
+
*
|
|
63
|
+
* @see https://floating-ui.com/docs/shift#options
|
|
64
|
+
*/
|
|
65
|
+
readonly shiftOptions?: Partial<DetectOverflowOptions & ShiftOptions>;
|
|
66
|
+
/**
|
|
67
|
+
* The CSS position strategy to use.
|
|
68
|
+
*
|
|
69
|
+
* @see https://floating-ui.com/docs/computeposition#strategy
|
|
70
|
+
*/
|
|
71
|
+
readonly strategy?: Strategy;
|
|
72
|
+
/**
|
|
73
|
+
* The trigger element that will trigger the tooltip. The target specified
|
|
74
|
+
* can be any of the follow:
|
|
75
|
+
*
|
|
76
|
+
* - A CSS selector string
|
|
77
|
+
* - A reference to an
|
|
78
|
+
* [`Element`](https://developer.mozilla.org/docs/Web/API/Element) or
|
|
79
|
+
* [Virtual Element](https://floating-ui.com/docs/virtual-elements)
|
|
80
|
+
* - A function returning a reference to an
|
|
81
|
+
* [`Element`](https://developer.mozilla.org/docs/Web/API/Element),
|
|
82
|
+
* [Virtual Element](https://floating-ui.com/docs/virtual-elements),
|
|
83
|
+
* or a CSS selector string
|
|
84
|
+
*/
|
|
85
|
+
readonly target: ReferenceElement | string | (() => ReferenceElement | string);
|
|
86
|
+
/**
|
|
87
|
+
* Emitted when the tooltip is closed.
|
|
88
|
+
*/
|
|
89
|
+
private readonly closeEmitter;
|
|
90
|
+
private readonly element;
|
|
91
|
+
private hostPosition?;
|
|
92
|
+
private hostTransform?;
|
|
93
|
+
private open;
|
|
94
|
+
private middleware?;
|
|
95
|
+
private aDisplay?;
|
|
96
|
+
private side;
|
|
97
|
+
private aShape;
|
|
98
|
+
private aViewbox;
|
|
99
|
+
private aHeight;
|
|
100
|
+
private aWidth;
|
|
101
|
+
private aGap;
|
|
102
|
+
private aX;
|
|
103
|
+
private aY;
|
|
104
|
+
private arrowContainerElement?;
|
|
105
|
+
private cleanup?;
|
|
106
|
+
private clickedTooltip;
|
|
107
|
+
private isTouchDevice;
|
|
108
|
+
private referenceElement?;
|
|
109
|
+
/**
|
|
110
|
+
* Show the tooltip.
|
|
111
|
+
*/
|
|
112
|
+
show(): Promise<void>;
|
|
113
|
+
/**
|
|
114
|
+
* Close the tooltip.
|
|
115
|
+
*/
|
|
116
|
+
close(): Promise<void>;
|
|
117
|
+
/**
|
|
118
|
+
* Update the tooltip's arrow.
|
|
119
|
+
*
|
|
120
|
+
* This method should typically be called when the Quartz platform was
|
|
121
|
+
* changed.
|
|
122
|
+
*/
|
|
123
|
+
updateArrow(): Promise<void>;
|
|
124
|
+
protected handleMouseDown(event: MouseEvent): Promise<void>;
|
|
125
|
+
protected updateMiddleware(): Promise<void>;
|
|
126
|
+
private updateReferenceElement;
|
|
127
|
+
private updatePosition;
|
|
128
|
+
private startAutoUpdate;
|
|
129
|
+
componentWillLoad(): Promise<void>;
|
|
130
|
+
componentDidLoad(): Promise<void>;
|
|
131
|
+
disconnectedCallback(): void;
|
|
132
|
+
render(): any;
|
|
133
|
+
private readonly arrowContainerRef;
|
|
134
|
+
private readonly boundTooltipMouseDown;
|
|
135
|
+
private handleFocus;
|
|
136
|
+
private readonly boundFocus;
|
|
137
|
+
private handleMouseEnter;
|
|
138
|
+
private readonly boundMouseEnter;
|
|
139
|
+
private handleMouseLeave;
|
|
140
|
+
private readonly boundMouseLeave;
|
|
141
|
+
private handleFocusOut;
|
|
142
|
+
private readonly boundFocusout;
|
|
143
|
+
private handleReferenceClick;
|
|
144
|
+
private readonly boundReferenceClick;
|
|
145
|
+
private disconnectReferenceElement;
|
|
146
|
+
}
|
|
147
|
+
//# sourceMappingURL=tooltip.d.ts.map
|