@seeqdev/qomponents 0.0.59 → 0.0.60
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/dist/FontCustom.woff +0 -0
- package/dist/FontCustom.woff2 +0 -0
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +0 -2
- package/dist/index.d.ts +0 -4
- package/dist/index.esm.js +20 -855
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +19 -856
- package/dist/index.js.map +1 -1
- package/dist/styles.css +4 -188
- package/package.json +3 -4
- package/dist/ButtonWithDropdown/ButtonWithDropdown.d.ts +0 -4
- package/dist/ButtonWithDropdown/ButtonWithDropdown.stories.d.ts +0 -5
- package/dist/ButtonWithDropdown/ButtonWithDropdown.test.d.ts +0 -1
- package/dist/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +0 -66
- package/dist/ButtonWithDropdown/index.d.ts +0 -1
- package/dist/ButtonWithPopover/ButtonWithPopover.d.ts +0 -4
- package/dist/ButtonWithPopover/ButtonWithPopover.stories.d.ts +0 -5
- package/dist/ButtonWithPopover/ButtonWithPopover.test.d.ts +0 -1
- package/dist/ButtonWithPopover/ButtonWithPopover.types.d.ts +0 -48
- package/dist/ButtonWithPopover/index.d.ts +0 -1
package/dist/styles.css
CHANGED
|
@@ -100,6 +100,10 @@
|
|
|
100
100
|
width: 1.25em;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
.fc-uncertain-2:before {
|
|
104
|
+
content: "\e9b1";
|
|
105
|
+
}
|
|
106
|
+
|
|
103
107
|
.fc-workbook-ai:before {
|
|
104
108
|
content: "\e9af";
|
|
105
109
|
}
|
|
@@ -1860,11 +1864,6 @@ ol,
|
|
|
1860
1864
|
margin-bottom: 1.5rem;
|
|
1861
1865
|
}
|
|
1862
1866
|
|
|
1863
|
-
.tw-my-\[8px\] {
|
|
1864
|
-
margin-top: 8px;
|
|
1865
|
-
margin-bottom: 8px;
|
|
1866
|
-
}
|
|
1867
|
-
|
|
1868
1867
|
.-tw-mt-\[1px\] {
|
|
1869
1868
|
margin-top: -1px;
|
|
1870
1869
|
}
|
|
@@ -1881,10 +1880,6 @@ ol,
|
|
|
1881
1880
|
margin-bottom: 0px;
|
|
1882
1881
|
}
|
|
1883
1882
|
|
|
1884
|
-
.tw-mb-4 {
|
|
1885
|
-
margin-bottom: 1rem;
|
|
1886
|
-
}
|
|
1887
|
-
|
|
1888
1883
|
.tw-mb-5 {
|
|
1889
1884
|
margin-bottom: 1.25rem;
|
|
1890
1885
|
}
|
|
@@ -1937,14 +1932,6 @@ ol,
|
|
|
1937
1932
|
margin-top: 0.375rem;
|
|
1938
1933
|
}
|
|
1939
1934
|
|
|
1940
|
-
.tw-mt-2 {
|
|
1941
|
-
margin-top: 0.5rem;
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
.tw-mt-\[-2px\] {
|
|
1945
|
-
margin-top: -2px;
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
1935
|
.tw-inline-block {
|
|
1949
1936
|
display: inline-block;
|
|
1950
1937
|
}
|
|
@@ -1973,22 +1960,10 @@ ol,
|
|
|
1973
1960
|
height: 10px;
|
|
1974
1961
|
}
|
|
1975
1962
|
|
|
1976
|
-
.tw-h-\[1px\] {
|
|
1977
|
-
height: 1px;
|
|
1978
|
-
}
|
|
1979
|
-
|
|
1980
|
-
.tw-h-\[27px\] {
|
|
1981
|
-
height: 27px;
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1984
1963
|
.tw-h-\[45px\] {
|
|
1985
1964
|
height: 45px;
|
|
1986
1965
|
}
|
|
1987
1966
|
|
|
1988
|
-
.tw-h-\[6px\] {
|
|
1989
|
-
height: 6px;
|
|
1990
|
-
}
|
|
1991
|
-
|
|
1992
1967
|
.tw-h-full {
|
|
1993
1968
|
height: 100%;
|
|
1994
1969
|
}
|
|
@@ -2005,26 +1980,14 @@ ol,
|
|
|
2005
1980
|
width: 0.875rem;
|
|
2006
1981
|
}
|
|
2007
1982
|
|
|
2008
|
-
.tw-w-72 {
|
|
2009
|
-
width: 18rem;
|
|
2010
|
-
}
|
|
2011
|
-
|
|
2012
1983
|
.tw-w-\[10px\] {
|
|
2013
1984
|
width: 10px;
|
|
2014
1985
|
}
|
|
2015
1986
|
|
|
2016
|
-
.tw-w-\[18px\] {
|
|
2017
|
-
width: 18px;
|
|
2018
|
-
}
|
|
2019
|
-
|
|
2020
1987
|
.tw-w-\[200px\] {
|
|
2021
1988
|
width: 200px;
|
|
2022
1989
|
}
|
|
2023
1990
|
|
|
2024
|
-
.tw-w-\[6px\] {
|
|
2025
|
-
width: 6px;
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
1991
|
.tw-w-full {
|
|
2029
1992
|
width: 100%;
|
|
2030
1993
|
}
|
|
@@ -2205,10 +2168,6 @@ ol,
|
|
|
2205
2168
|
gap: 0px !important;
|
|
2206
2169
|
}
|
|
2207
2170
|
|
|
2208
|
-
.tw-gap-1 {
|
|
2209
|
-
gap: 0.25rem;
|
|
2210
|
-
}
|
|
2211
|
-
|
|
2212
2171
|
.tw-gap-4 {
|
|
2213
2172
|
gap: 1rem;
|
|
2214
2173
|
}
|
|
@@ -2229,10 +2188,6 @@ ol,
|
|
|
2229
2188
|
border-radius: 0.25rem;
|
|
2230
2189
|
}
|
|
2231
2190
|
|
|
2232
|
-
.tw-rounded-full {
|
|
2233
|
-
border-radius: 9999px;
|
|
2234
|
-
}
|
|
2235
|
-
|
|
2236
2191
|
.tw-rounded-lg {
|
|
2237
2192
|
border-radius: 0.5rem;
|
|
2238
2193
|
}
|
|
@@ -2297,10 +2252,6 @@ ol,
|
|
|
2297
2252
|
border-left-width: 0px;
|
|
2298
2253
|
}
|
|
2299
2254
|
|
|
2300
|
-
.tw-border-r {
|
|
2301
|
-
border-right-width: 1px;
|
|
2302
|
-
}
|
|
2303
|
-
|
|
2304
2255
|
.tw-border-r-0 {
|
|
2305
2256
|
border-right-width: 0px;
|
|
2306
2257
|
}
|
|
@@ -2331,11 +2282,6 @@ ol,
|
|
|
2331
2282
|
border-color: rgb(var(--sq-color-dark));
|
|
2332
2283
|
}
|
|
2333
2284
|
|
|
2334
|
-
.tw-border-sq-color-dark-dark {
|
|
2335
|
-
--tw-border-opacity: 1;
|
|
2336
|
-
border-color: rgb(var(--sq-color-dark-dark));
|
|
2337
|
-
}
|
|
2338
|
-
|
|
2339
2285
|
.tw-border-sq-danger-color {
|
|
2340
2286
|
--tw-border-opacity: 1;
|
|
2341
2287
|
border-color: rgb(var(--sq-danger-color));
|
|
@@ -2351,11 +2297,6 @@ ol,
|
|
|
2351
2297
|
border-color: rgb(var(--sq-icon));
|
|
2352
2298
|
}
|
|
2353
2299
|
|
|
2354
|
-
.tw-border-sq-light-gray {
|
|
2355
|
-
--tw-border-opacity: 1;
|
|
2356
|
-
border-color: rgb(var(--sq-light-gray));
|
|
2357
|
-
}
|
|
2358
|
-
|
|
2359
2300
|
.tw-border-sq-warning-color {
|
|
2360
2301
|
--tw-border-opacity: 1;
|
|
2361
2302
|
border-color: rgb(var(--sq-warning-color));
|
|
@@ -2439,22 +2380,6 @@ ol,
|
|
|
2439
2380
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
2440
2381
|
}
|
|
2441
2382
|
|
|
2442
|
-
.tw-fill-transparent {
|
|
2443
|
-
fill: transparent;
|
|
2444
|
-
}
|
|
2445
|
-
|
|
2446
|
-
.tw-fill-white {
|
|
2447
|
-
fill: #fff;
|
|
2448
|
-
}
|
|
2449
|
-
|
|
2450
|
-
.tw-stroke-slate-300 {
|
|
2451
|
-
stroke: #cbd5e1;
|
|
2452
|
-
}
|
|
2453
|
-
|
|
2454
|
-
.tw-stroke-2 {
|
|
2455
|
-
stroke-width: 2;
|
|
2456
|
-
}
|
|
2457
|
-
|
|
2458
2383
|
.\!tw-p-0 {
|
|
2459
2384
|
padding: 0px !important;
|
|
2460
2385
|
}
|
|
@@ -2517,11 +2442,6 @@ ol,
|
|
|
2517
2442
|
padding-right: 1.5rem;
|
|
2518
2443
|
}
|
|
2519
2444
|
|
|
2520
|
-
.tw-px-\[19px\] {
|
|
2521
|
-
padding-left: 19px;
|
|
2522
|
-
padding-right: 19px;
|
|
2523
|
-
}
|
|
2524
|
-
|
|
2525
2445
|
.tw-px-\[5px\] {
|
|
2526
2446
|
padding-left: 5px;
|
|
2527
2447
|
padding-right: 5px;
|
|
@@ -2641,10 +2561,6 @@ ol,
|
|
|
2641
2561
|
font-style: italic;
|
|
2642
2562
|
}
|
|
2643
2563
|
|
|
2644
|
-
.tw-leading-none {
|
|
2645
|
-
line-height: 1;
|
|
2646
|
-
}
|
|
2647
|
-
|
|
2648
2564
|
.tw-leading-normal {
|
|
2649
2565
|
line-height: 1.5;
|
|
2650
2566
|
}
|
|
@@ -2973,11 +2889,6 @@ ol,
|
|
|
2973
2889
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
2974
2890
|
}
|
|
2975
2891
|
|
|
2976
|
-
.focus-within\:tw-outline-none:focus-within {
|
|
2977
|
-
outline: 2px solid transparent;
|
|
2978
|
-
outline-offset: 2px;
|
|
2979
|
-
}
|
|
2980
|
-
|
|
2981
2892
|
.hover\:tw-cursor-pointer:hover {
|
|
2982
2893
|
cursor: pointer;
|
|
2983
2894
|
}
|
|
@@ -3034,11 +2945,6 @@ ol,
|
|
|
3034
2945
|
background-color: rgb(var(--sq-color-highlight));
|
|
3035
2946
|
}
|
|
3036
2947
|
|
|
3037
|
-
.hover\:tw-bg-sq-colored-hover:hover {
|
|
3038
|
-
--tw-bg-opacity: 1;
|
|
3039
|
-
background-color: rgb(var(--sq-colored-hover));
|
|
3040
|
-
}
|
|
3041
|
-
|
|
3042
2948
|
.hover\:tw-bg-sq-danger-color-hover:hover {
|
|
3043
2949
|
--tw-bg-opacity: 1;
|
|
3044
2950
|
background-color: rgb(212 59 55 / var(--tw-bg-opacity));
|
|
@@ -3185,78 +3091,6 @@ ol,
|
|
|
3185
3091
|
opacity: 1;
|
|
3186
3092
|
}
|
|
3187
3093
|
|
|
3188
|
-
.data-\[disabled\]\:tw-pointer-events-none[data-disabled] {
|
|
3189
|
-
pointer-events: none;
|
|
3190
|
-
}
|
|
3191
|
-
|
|
3192
|
-
@keyframes tw-slideUpAndFade {
|
|
3193
|
-
|
|
3194
|
-
from {
|
|
3195
|
-
opacity: 0;
|
|
3196
|
-
transform: translateY(2px);
|
|
3197
|
-
}
|
|
3198
|
-
|
|
3199
|
-
to {
|
|
3200
|
-
opacity: 1;
|
|
3201
|
-
transform: translateY(0);
|
|
3202
|
-
}
|
|
3203
|
-
}
|
|
3204
|
-
|
|
3205
|
-
.data-\[side\=bottom\]\:tw-animate-slideUpAndFade[data-side=bottom] {
|
|
3206
|
-
animation: tw-slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
3207
|
-
}
|
|
3208
|
-
|
|
3209
|
-
@keyframes tw-slideRightAndFade {
|
|
3210
|
-
|
|
3211
|
-
from {
|
|
3212
|
-
opacity: 0;
|
|
3213
|
-
transform: translateX(-2px);
|
|
3214
|
-
}
|
|
3215
|
-
|
|
3216
|
-
to {
|
|
3217
|
-
opacity: 1;
|
|
3218
|
-
transform: translateX(0);
|
|
3219
|
-
}
|
|
3220
|
-
}
|
|
3221
|
-
|
|
3222
|
-
.data-\[side\=left\]\:tw-animate-slideRightAndFade[data-side=left] {
|
|
3223
|
-
animation: tw-slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
3224
|
-
}
|
|
3225
|
-
|
|
3226
|
-
@keyframes tw-slideLeftAndFade {
|
|
3227
|
-
|
|
3228
|
-
from {
|
|
3229
|
-
opacity: 0;
|
|
3230
|
-
transform: translateX(2px);
|
|
3231
|
-
}
|
|
3232
|
-
|
|
3233
|
-
to {
|
|
3234
|
-
opacity: 1;
|
|
3235
|
-
transform: translateX(0);
|
|
3236
|
-
}
|
|
3237
|
-
}
|
|
3238
|
-
|
|
3239
|
-
.data-\[side\=right\]\:tw-animate-slideLeftAndFade[data-side=right] {
|
|
3240
|
-
animation: tw-slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
3241
|
-
}
|
|
3242
|
-
|
|
3243
|
-
@keyframes tw-slideDownAndFade {
|
|
3244
|
-
|
|
3245
|
-
from {
|
|
3246
|
-
opacity: 0;
|
|
3247
|
-
transform: translateY(-2px);
|
|
3248
|
-
}
|
|
3249
|
-
|
|
3250
|
-
to {
|
|
3251
|
-
opacity: 1;
|
|
3252
|
-
transform: translateY(0);
|
|
3253
|
-
}
|
|
3254
|
-
}
|
|
3255
|
-
|
|
3256
|
-
.data-\[side\=top\]\:tw-animate-slideDownAndFade[data-side=top] {
|
|
3257
|
-
animation: tw-slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
3258
|
-
}
|
|
3259
|
-
|
|
3260
3094
|
@keyframes tw-slideUp {
|
|
3261
3095
|
|
|
3262
3096
|
from {
|
|
@@ -3287,11 +3121,6 @@ ol,
|
|
|
3287
3121
|
animation: tw-slideDown 0.3s ease-in-out;
|
|
3288
3122
|
}
|
|
3289
3123
|
|
|
3290
|
-
.data-\[disabled\]\:tw-text-sq-disabled-gray[data-disabled] {
|
|
3291
|
-
--tw-text-opacity: 1;
|
|
3292
|
-
color: rgb(var(--sq-disabled-gray));
|
|
3293
|
-
}
|
|
3294
|
-
|
|
3295
3124
|
.tw-dark .dark\:tw-border-gray-700 {
|
|
3296
3125
|
--tw-border-opacity: 1;
|
|
3297
3126
|
border-color: rgb(55 65 81 / var(--tw-border-opacity));
|
|
@@ -3357,14 +3186,6 @@ ol,
|
|
|
3357
3186
|
background-color: rgb(var(--sq-multi-gray-dark));
|
|
3358
3187
|
}
|
|
3359
3188
|
|
|
3360
|
-
.tw-dark .dark\:tw-fill-sq-dark-background {
|
|
3361
|
-
fill: rgb(var(--sq-dark-background));
|
|
3362
|
-
}
|
|
3363
|
-
|
|
3364
|
-
.tw-dark .dark\:tw-stroke-sq-color-dark-dark {
|
|
3365
|
-
stroke: rgb(var(--sq-color-dark-dark));
|
|
3366
|
-
}
|
|
3367
|
-
|
|
3368
3189
|
.tw-dark .dark\:tw-text-sq-color-dark-dark {
|
|
3369
3190
|
--tw-text-opacity: 1;
|
|
3370
3191
|
color: rgb(var(--sq-color-dark-dark));
|
|
@@ -3460,11 +3281,6 @@ ol,
|
|
|
3460
3281
|
background-color: rgb(55 65 81 / var(--tw-bg-opacity));
|
|
3461
3282
|
}
|
|
3462
3283
|
|
|
3463
|
-
.tw-dark .hover\:dark\:tw-bg-sq-colored-hover-dark:hover {
|
|
3464
|
-
--tw-bg-opacity: 1;
|
|
3465
|
-
background-color: rgb(var(--sq-colored-hover-dark));
|
|
3466
|
-
}
|
|
3467
|
-
|
|
3468
3284
|
.tw-dark .dark\:hover\:tw-text-sq-color-dark-dark:hover {
|
|
3469
3285
|
--tw-text-opacity: 1;
|
|
3470
3286
|
color: rgb(var(--sq-color-dark-dark));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seeqdev/qomponents",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.60",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.js",
|
|
@@ -71,10 +71,9 @@
|
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@floating-ui/dom": "^1.5.1",
|
|
73
73
|
"@radix-ui/react-accordion": "1.1.2",
|
|
74
|
-
"@radix-ui/react-dialog": "1.0.5",
|
|
75
|
-
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
|
76
|
-
"@radix-ui/react-popover": "1.0.7",
|
|
77
74
|
"@radix-ui/react-tabs": "1.0.4",
|
|
75
|
+
"@radix-ui/react-popover": "1.0.7",
|
|
76
|
+
"@radix-ui/react-dialog": "1.0.5",
|
|
78
77
|
"dompurify": "^3.0.5",
|
|
79
78
|
"postcss": "8.4.21",
|
|
80
79
|
"react-select": "5.7.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { TooltipPosition } from '../Tooltip/Tooltip.types';
|
|
2
|
-
interface DropdownSubItems {
|
|
3
|
-
/** icon class to be used with the dropdown subitems - if available (i.e. 'fc-zoom') */
|
|
4
|
-
icon?: string;
|
|
5
|
-
/** label for the dropdown subitems */
|
|
6
|
-
label: string;
|
|
7
|
-
/** function called when the dropdown subitem is clicked on */
|
|
8
|
-
onClick: (e: Event) => void;
|
|
9
|
-
/** dropdown subitem container classes */
|
|
10
|
-
itemContainerClasses?: string;
|
|
11
|
-
/** dropdown subitem label classes */
|
|
12
|
-
labelClasses?: string;
|
|
13
|
-
/** is item disabled */
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
/** dropdown container extra class names */
|
|
16
|
-
containerExtraClassNames?: string;
|
|
17
|
-
/** test id for the dropdown subitem */
|
|
18
|
-
labelTestId?: string;
|
|
19
|
-
/** test id for the dropdown subitem icon */
|
|
20
|
-
iconTestId?: string;
|
|
21
|
-
/** displays a divider line under present dropdown item */
|
|
22
|
-
hasDivider?: boolean;
|
|
23
|
-
/** test id for the dropdown subitem */
|
|
24
|
-
testId?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface ButtonWithDropdownProps {
|
|
27
|
-
/** items for the dropdown content */
|
|
28
|
-
dropdownItems: DropdownSubItems[];
|
|
29
|
-
/** icon element to be used as the trigger */
|
|
30
|
-
triggerIcon: React.ReactNode;
|
|
31
|
-
/** id of the dropdown trigger */
|
|
32
|
-
id?: string;
|
|
33
|
-
/** extra class names to be placed on the dropdown container */
|
|
34
|
-
extraClassNames?: string;
|
|
35
|
-
/** id that will be used in the data-testid attribute on the trigger element */
|
|
36
|
-
testId?: string;
|
|
37
|
-
/** the text to be displayed on the triggers's tooltip */
|
|
38
|
-
tooltipText?: string;
|
|
39
|
-
/** optional testId applied to the tooltip - useful for testing */
|
|
40
|
-
tooltipTestId?: string;
|
|
41
|
-
/** number of milliseconds to wait before showing a tooltip on-hover */
|
|
42
|
-
tooltipDelay?: number;
|
|
43
|
-
/** position of the tooltip */
|
|
44
|
-
tooltipPlacement?: TooltipPosition;
|
|
45
|
-
/** true if the provided tooltip text should be rendered as HTML */
|
|
46
|
-
isHtmlTooltip?: boolean;
|
|
47
|
-
/** is the button disabled */
|
|
48
|
-
disabled?: boolean;
|
|
49
|
-
/** function called when the trigger is clicked on, i.e. for tracking (does not open the popover) */
|
|
50
|
-
onClick?: (e: MouseEvent) => void;
|
|
51
|
-
/** alignment of the content of the popover */
|
|
52
|
-
align?: 'start' | 'center' | 'end';
|
|
53
|
-
/** number offset from the aligned position */
|
|
54
|
-
alignOffset?: number;
|
|
55
|
-
/** the placement of the popover */
|
|
56
|
-
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
57
|
-
/** number offset from the placement position */
|
|
58
|
-
placementOffset?: number;
|
|
59
|
-
/** set to display arrow or not */
|
|
60
|
-
hasArrow?: boolean;
|
|
61
|
-
/** is popover open */
|
|
62
|
-
isOpen?: boolean;
|
|
63
|
-
/** function called to open and close popover */
|
|
64
|
-
onOpenChange?: (isOpen: boolean) => void;
|
|
65
|
-
}
|
|
66
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ButtonWithDropdown';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TooltipPosition } from '../Tooltip/Tooltip.types';
|
|
3
|
-
export interface ButtonWithPopoverProps {
|
|
4
|
-
/** icon class to be used with the toolbar (i.e. 'fc-zoom') */
|
|
5
|
-
trigger: React.ReactNode;
|
|
6
|
-
/** items for the popover content */
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
id?: string;
|
|
9
|
-
/** extra class names to be placed on the Popover container component */
|
|
10
|
-
extraClassNames?: string;
|
|
11
|
-
/** id that will be used in the data-testid attribute on the button element */
|
|
12
|
-
testId?: string;
|
|
13
|
-
/** the text to be displayed on the icon's tooltip */
|
|
14
|
-
tooltipText?: string;
|
|
15
|
-
/** optional testId applied to the tooltip - useful for testing */
|
|
16
|
-
tooltipTestId?: string;
|
|
17
|
-
/** number of milliseconds to wait before showing a tooltip on-hover */
|
|
18
|
-
tooltipDelay?: number;
|
|
19
|
-
/** position of the tooltip */
|
|
20
|
-
tooltipPlacement?: TooltipPosition;
|
|
21
|
-
/** true if the provided tooltip text should be rendered as HTML */
|
|
22
|
-
isHtmlTooltip?: boolean;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
/** function called when the toolbar is clicked on, i.e. for tracking (does not open the popover) */
|
|
25
|
-
onClick?: (isOpen: boolean) => void;
|
|
26
|
-
/** called when popup is hidden */
|
|
27
|
-
onHide?: () => void;
|
|
28
|
-
/** alignment of the content of the popover */
|
|
29
|
-
align?: 'start' | 'center' | 'end';
|
|
30
|
-
/** number offset from the aligned position */
|
|
31
|
-
alignOffset?: number;
|
|
32
|
-
/** the placement of the popover */
|
|
33
|
-
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
34
|
-
/** number offset from the placement position */
|
|
35
|
-
placementOffset?: number;
|
|
36
|
-
/** is popover open */
|
|
37
|
-
isOpen?: boolean;
|
|
38
|
-
/** function called to open and close popover */
|
|
39
|
-
onOpenChange?: (isOpen: boolean) => void;
|
|
40
|
-
/** set to display arrow or not */
|
|
41
|
-
hasArrow?: boolean;
|
|
42
|
-
/** extra trigger container classnames */
|
|
43
|
-
extraTriggerClassNames?: string;
|
|
44
|
-
/** extra popover container classnames */
|
|
45
|
-
extraPopoverClassNames?: string;
|
|
46
|
-
/** should popover close when the content is clicked? */
|
|
47
|
-
isCloseOnContentClick?: boolean;
|
|
48
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ButtonWithPopover';
|