@amboss/design-system 1.15.1 → 1.15.3
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/build/cjs/scss/themes/dark.scss +1 -1
- package/build/cjs/scss/themes/light.scss +1 -1
- package/build/esm/scss/themes/dark.scss +1 -1
- package/build/esm/scss/themes/light.scss +1 -1
- package/package.json +2 -2
- package/build/esm/src/components/Button/mock.d.ts +0 -326
- package/build/esm/src/components/Tooltip/BaseTooltip.d.ts +0 -22
- package/build/esm/src/components/Tooltip/Popover.d.ts +0 -7
- package/build/esm/src/components/Tooltip/util.d.ts +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amboss/design-system",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.3",
|
|
4
4
|
"description": "the design system for AMBOSS products",
|
|
5
5
|
"author": "Bagrat Gobedashvili",
|
|
6
6
|
"license": "ISC",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"npm": ">=8.10.0",
|
|
53
|
-
"node": "16
|
|
53
|
+
"node": ">=16"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"clean": "rimraf build build-tokens",
|
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
export declare const buttonStatesLightData: {
|
|
2
|
-
primary: {
|
|
3
|
-
unset: {
|
|
4
|
-
active: {
|
|
5
|
-
"background-color": string;
|
|
6
|
-
};
|
|
7
|
-
hover: {
|
|
8
|
-
"background-color": string;
|
|
9
|
-
color: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
error: {
|
|
13
|
-
active: {
|
|
14
|
-
"background-color": string;
|
|
15
|
-
color: string;
|
|
16
|
-
};
|
|
17
|
-
hover: {
|
|
18
|
-
"background-color": string;
|
|
19
|
-
color: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
success: {
|
|
23
|
-
active: {
|
|
24
|
-
"background-color": string;
|
|
25
|
-
color: string;
|
|
26
|
-
};
|
|
27
|
-
hover: {
|
|
28
|
-
"background-color": string;
|
|
29
|
-
color: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
info: {
|
|
33
|
-
active: {
|
|
34
|
-
"background-color": string;
|
|
35
|
-
color: string;
|
|
36
|
-
};
|
|
37
|
-
hover: {
|
|
38
|
-
"background-color": string;
|
|
39
|
-
color: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
dimmed: {
|
|
43
|
-
active: {
|
|
44
|
-
"background-color": string;
|
|
45
|
-
color: string;
|
|
46
|
-
};
|
|
47
|
-
hover: {
|
|
48
|
-
"background-color": string;
|
|
49
|
-
color: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
secondary: {
|
|
54
|
-
unset: {
|
|
55
|
-
active: {
|
|
56
|
-
"background-color": string;
|
|
57
|
-
};
|
|
58
|
-
hover: {
|
|
59
|
-
"background-color": string;
|
|
60
|
-
color: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
error: {
|
|
64
|
-
active: {
|
|
65
|
-
"background-color": string;
|
|
66
|
-
color: string;
|
|
67
|
-
"border-color": string;
|
|
68
|
-
};
|
|
69
|
-
hover: {
|
|
70
|
-
"background-color": string;
|
|
71
|
-
color: string;
|
|
72
|
-
"border-color": string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
success: {
|
|
76
|
-
active: {
|
|
77
|
-
"background-color": string;
|
|
78
|
-
color: string;
|
|
79
|
-
"border-color": string;
|
|
80
|
-
};
|
|
81
|
-
hover: {
|
|
82
|
-
"background-color": string;
|
|
83
|
-
color: string;
|
|
84
|
-
"border-color": string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
info: {
|
|
88
|
-
active: {
|
|
89
|
-
"background-color": string;
|
|
90
|
-
color: string;
|
|
91
|
-
"border-color": string;
|
|
92
|
-
};
|
|
93
|
-
hover: {
|
|
94
|
-
"background-color": string;
|
|
95
|
-
color: string;
|
|
96
|
-
"border-color": string;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
dimmed: {
|
|
100
|
-
active: {
|
|
101
|
-
"background-color": string;
|
|
102
|
-
color: string;
|
|
103
|
-
"border-color": string;
|
|
104
|
-
};
|
|
105
|
-
hover: {
|
|
106
|
-
"background-color": string;
|
|
107
|
-
color: string;
|
|
108
|
-
"border-color": string;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
tertiary: {
|
|
113
|
-
unset: {
|
|
114
|
-
active: {
|
|
115
|
-
"background-color": string;
|
|
116
|
-
};
|
|
117
|
-
hover: {
|
|
118
|
-
"background-color": string;
|
|
119
|
-
color: string;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
error: {
|
|
123
|
-
active: {
|
|
124
|
-
"background-color": string;
|
|
125
|
-
color: string;
|
|
126
|
-
};
|
|
127
|
-
hover: {
|
|
128
|
-
"background-color": string;
|
|
129
|
-
color: string;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
success: {
|
|
133
|
-
active: {
|
|
134
|
-
"background-color": string;
|
|
135
|
-
color: string;
|
|
136
|
-
};
|
|
137
|
-
hover: {
|
|
138
|
-
"background-color": string;
|
|
139
|
-
color: string;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
info: {
|
|
143
|
-
active: {
|
|
144
|
-
"background-color": string;
|
|
145
|
-
color: string;
|
|
146
|
-
};
|
|
147
|
-
hover: {
|
|
148
|
-
"background-color": string;
|
|
149
|
-
color: string;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
dimmed: {
|
|
153
|
-
active: {
|
|
154
|
-
"background-color": string;
|
|
155
|
-
color: string;
|
|
156
|
-
};
|
|
157
|
-
hover: {
|
|
158
|
-
"background-color": string;
|
|
159
|
-
color: string;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
export declare const buttonStatesDarkData: {
|
|
165
|
-
primary: {
|
|
166
|
-
unset: {
|
|
167
|
-
active: {
|
|
168
|
-
"background-color": string;
|
|
169
|
-
};
|
|
170
|
-
hover: {
|
|
171
|
-
"background-color": string;
|
|
172
|
-
color: string;
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
error: {
|
|
176
|
-
active: {
|
|
177
|
-
"background-color": string;
|
|
178
|
-
color: string;
|
|
179
|
-
};
|
|
180
|
-
hover: {
|
|
181
|
-
"background-color": string;
|
|
182
|
-
color: string;
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
success: {
|
|
186
|
-
active: {
|
|
187
|
-
"background-color": string;
|
|
188
|
-
color: string;
|
|
189
|
-
};
|
|
190
|
-
hover: {
|
|
191
|
-
"background-color": string;
|
|
192
|
-
color: string;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
info: {
|
|
196
|
-
active: {
|
|
197
|
-
"background-color": string;
|
|
198
|
-
color: string;
|
|
199
|
-
};
|
|
200
|
-
hover: {
|
|
201
|
-
"background-color": string;
|
|
202
|
-
color: string;
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
dimmed: {
|
|
206
|
-
active: {
|
|
207
|
-
"background-color": string;
|
|
208
|
-
color: string;
|
|
209
|
-
};
|
|
210
|
-
hover: {
|
|
211
|
-
"background-color": string;
|
|
212
|
-
color: string;
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
secondary: {
|
|
217
|
-
unset: {
|
|
218
|
-
active: {
|
|
219
|
-
"background-color": string;
|
|
220
|
-
};
|
|
221
|
-
hover: {
|
|
222
|
-
"background-color": string;
|
|
223
|
-
color: string;
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
error: {
|
|
227
|
-
active: {
|
|
228
|
-
"background-color": string;
|
|
229
|
-
color: string;
|
|
230
|
-
"border-color": string;
|
|
231
|
-
};
|
|
232
|
-
hover: {
|
|
233
|
-
"background-color": string;
|
|
234
|
-
color: string;
|
|
235
|
-
"border-color": string;
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
success: {
|
|
239
|
-
active: {
|
|
240
|
-
"background-color": string;
|
|
241
|
-
color: string;
|
|
242
|
-
"border-color": string;
|
|
243
|
-
};
|
|
244
|
-
hover: {
|
|
245
|
-
"background-color": string;
|
|
246
|
-
color: string;
|
|
247
|
-
"border-color": string;
|
|
248
|
-
};
|
|
249
|
-
};
|
|
250
|
-
info: {
|
|
251
|
-
active: {
|
|
252
|
-
"background-color": string;
|
|
253
|
-
color: string;
|
|
254
|
-
"border-color": string;
|
|
255
|
-
};
|
|
256
|
-
hover: {
|
|
257
|
-
"background-color": string;
|
|
258
|
-
color: string;
|
|
259
|
-
"border-color": string;
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
dimmed: {
|
|
263
|
-
active: {
|
|
264
|
-
"background-color": string;
|
|
265
|
-
color: string;
|
|
266
|
-
"border-color": string;
|
|
267
|
-
};
|
|
268
|
-
hover: {
|
|
269
|
-
"background-color": string;
|
|
270
|
-
color: string;
|
|
271
|
-
"border-color": string;
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
tertiary: {
|
|
276
|
-
unset: {
|
|
277
|
-
active: {
|
|
278
|
-
"background-color": string;
|
|
279
|
-
};
|
|
280
|
-
hover: {
|
|
281
|
-
"background-color": string;
|
|
282
|
-
color: string;
|
|
283
|
-
};
|
|
284
|
-
};
|
|
285
|
-
error: {
|
|
286
|
-
active: {
|
|
287
|
-
"background-color": string;
|
|
288
|
-
color: string;
|
|
289
|
-
};
|
|
290
|
-
hover: {
|
|
291
|
-
"background-color": string;
|
|
292
|
-
color: string;
|
|
293
|
-
};
|
|
294
|
-
};
|
|
295
|
-
success: {
|
|
296
|
-
active: {
|
|
297
|
-
"background-color": string;
|
|
298
|
-
color: string;
|
|
299
|
-
};
|
|
300
|
-
hover: {
|
|
301
|
-
"background-color": string;
|
|
302
|
-
color: string;
|
|
303
|
-
};
|
|
304
|
-
};
|
|
305
|
-
info: {
|
|
306
|
-
active: {
|
|
307
|
-
"background-color": string;
|
|
308
|
-
color: string;
|
|
309
|
-
};
|
|
310
|
-
hover: {
|
|
311
|
-
"background-color": string;
|
|
312
|
-
color: string;
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
dimmed: {
|
|
316
|
-
active: {
|
|
317
|
-
"background-color": string;
|
|
318
|
-
color: string;
|
|
319
|
-
};
|
|
320
|
-
hover: {
|
|
321
|
-
"background-color": string;
|
|
322
|
-
color: string;
|
|
323
|
-
};
|
|
324
|
-
};
|
|
325
|
-
};
|
|
326
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare type BaseTooltipCommonProps = {
|
|
3
|
-
id: string;
|
|
4
|
-
content: string | React.ReactElement;
|
|
5
|
-
placement?: "auto" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
6
|
-
padding?: "s" | "m";
|
|
7
|
-
portalContainer?: HTMLElement;
|
|
8
|
-
zIndex?: number;
|
|
9
|
-
dataE2eTestId?: string;
|
|
10
|
-
dataDsId?: string;
|
|
11
|
-
};
|
|
12
|
-
export declare type BaseTooltipConditionalProps = {
|
|
13
|
-
trigger?: never;
|
|
14
|
-
children: React.ReactElement;
|
|
15
|
-
} | {
|
|
16
|
-
children?: never;
|
|
17
|
-
trigger: HTMLElement;
|
|
18
|
-
};
|
|
19
|
-
export declare type BaseTooltipProps = BaseTooltipCommonProps & BaseTooltipConditionalProps;
|
|
20
|
-
export declare type VerticalPlacement = "top" | "bottom";
|
|
21
|
-
export declare type HorizontalPlacement = "left" | "right" | "center";
|
|
22
|
-
export declare function BaseTooltip({ id, placement, content, children, trigger, portalContainer, zIndex, padding, dataE2eTestId, dataDsId, }: BaseTooltipProps): React.ReactElement;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { type BaseTooltipProps } from "./BaseTooltip";
|
|
3
|
-
export declare type PopoverProps = {
|
|
4
|
-
content: React.ReactElement;
|
|
5
|
-
"data-e2e-test-id"?: string;
|
|
6
|
-
} & Pick<BaseTooltipProps, "id" | "placement" | "zIndex" | "portalContainer" | "children" | "trigger">;
|
|
7
|
-
export declare function Popover({ id, placement, content, children, portalContainer, zIndex, "data-e2e-test-id": dataE2eTestId, }: PopoverProps): React.ReactElement;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
2
|
-
import type { TooltipProps, TooltipPosition } from "./Tooltip";
|
|
3
|
-
export declare const DISTANCE_FROM_TRIGGER = 4;
|
|
4
|
-
export declare const ANIMATION_DISTANCE = 8;
|
|
5
|
-
export declare const ARROW_SIZE = 6;
|
|
6
|
-
export declare const TOOLTIP_MARGIN: number;
|
|
7
|
-
export declare const ARROW_OFFSET = 8;
|
|
8
|
-
/**
|
|
9
|
-
* Get tooltip position
|
|
10
|
-
*/
|
|
11
|
-
export declare function getTooltipPosition(placement: TooltipProps["placement"], triggerRef: RefObject<any>, tooltipRef: RefObject<any>, document: Document, window: Window): TooltipPosition;
|
|
12
|
-
export declare function getContentWrapStatus(tooltipRef: RefObject<any>): boolean;
|