@sanity/ui 0.38.3-next.30 → 0.38.3-next.36
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/sanity-ui.esm.js +486 -481
- package/dist/sanity-ui.esm.js.map +1 -1
- package/dist/sanity-ui.js +485 -483
- package/dist/sanity-ui.js.map +1 -1
- package/dist/types/src/index.d.ts +386 -384
- package/package.json +5 -10
- package/src/components/autocomplete/__workshop__/async.tsx +5 -3
- package/src/components/autocomplete/autocomplete.styles.tsx +0 -5
- package/src/components/autocomplete/autocomplete.tsx +51 -51
- package/src/components/autocomplete/constants.ts +3 -3
- package/src/constants.ts +17 -0
- package/src/primitives/popover/__workshop__/PlainStory.tsx +1 -0
- package/src/primitives/popover/__workshop__/RightAlignedStory.tsx +1 -0
- package/src/primitives/popover/__workshop__/TestStory.tsx +1 -0
- package/src/primitives/popover/popover.tsx +239 -197
- package/src/primitives/popover/{arrow.tsx → popoverArrow.tsx} +5 -5
- package/src/primitives/popover/popoverCard.tsx +160 -0
- package/src/primitives/tooltip/__workshop__/props.tsx +14 -9
- package/src/primitives/tooltip/tooltip.tsx +162 -92
- package/src/primitives/tooltip/tooltipArrow.tsx +25 -10
- package/src/primitives/popover/modifiers/getPopoverModifiers.ts +0 -137
- package/src/primitives/popover/modifiers/index.ts +0 -1
- package/src/primitives/popover/modifiers/types.ts +0 -18
- package/src/primitives/popover/modifiers/usePopoverModifiers.ts +0 -58
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import {Component} from 'react'
|
|
4
4
|
import {CSSObject} from 'styled-components'
|
|
5
|
+
import {ElementType} from 'react'
|
|
5
6
|
import {ForwardRefExoticComponent} from 'react'
|
|
6
7
|
import {HTMLProps} from 'react'
|
|
7
8
|
import {MemoExoticComponent} from 'react'
|
|
8
9
|
import {NamedExoticComponent} from 'react'
|
|
9
10
|
import {PropsWithChildren} from 'react'
|
|
11
|
+
import {ReactElement} from 'react'
|
|
12
|
+
import {ReactNode} from 'react'
|
|
10
13
|
import {Ref} from 'react'
|
|
11
14
|
import {RefAttributes} from 'react'
|
|
12
15
|
import {StyledComponent} from 'styled-components'
|
|
@@ -47,7 +50,7 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
|
|
|
47
50
|
> & {
|
|
48
51
|
ref?: Ref<HTMLInputElement> | undefined
|
|
49
52
|
}
|
|
50
|
-
) =>
|
|
53
|
+
) => ReactElement
|
|
51
54
|
|
|
52
55
|
/**
|
|
53
56
|
* @internal
|
|
@@ -94,46 +97,38 @@ export declare interface AutocompleteProps<
|
|
|
94
97
|
customValidity?: string
|
|
95
98
|
filterOption?: (query: string, option: Option) => boolean
|
|
96
99
|
fontSize?: number | number[]
|
|
97
|
-
icon?:
|
|
100
|
+
icon?: ElementType | ReactNode
|
|
98
101
|
id: string
|
|
99
|
-
/**
|
|
100
|
-
* @beta
|
|
101
|
-
*/
|
|
102
|
+
/** @beta */
|
|
102
103
|
listBox?: BoxProps
|
|
103
104
|
loading?: boolean
|
|
104
105
|
onChange?: (value: string) => void
|
|
105
106
|
onQueryChange?: (query: string | null) => void
|
|
106
107
|
onSelect?: (value: string) => void
|
|
107
|
-
/**
|
|
108
|
-
* @beta
|
|
109
|
-
*/
|
|
108
|
+
/** @beta */
|
|
110
109
|
openButton?: boolean | AutocompleteOpenButtonProps
|
|
111
110
|
options?: Option[]
|
|
112
111
|
padding?: number | number[]
|
|
113
112
|
popover?: Omit<PopoverProps, 'content' | 'onMouseEnter' | 'onMouseLeave' | 'open'> &
|
|
114
|
-
Omit<
|
|
115
|
-
prefix?:
|
|
113
|
+
Omit<HTMLProps<HTMLDivElement>, 'as' | 'children' | 'content' | 'ref' | 'width'>
|
|
114
|
+
prefix?: ReactNode
|
|
116
115
|
radius?: number | number[]
|
|
117
|
-
/**
|
|
118
|
-
* @beta
|
|
119
|
-
*/
|
|
116
|
+
/** @beta */
|
|
120
117
|
relatedElements?: HTMLElement[]
|
|
121
|
-
renderOption?: (option: Option) =>
|
|
122
|
-
/**
|
|
123
|
-
* @beta
|
|
124
|
-
*/
|
|
118
|
+
renderOption?: (option: Option) => ReactElement
|
|
119
|
+
/** @beta */
|
|
125
120
|
renderPopover?: (
|
|
126
121
|
props: {
|
|
127
|
-
content:
|
|
122
|
+
content: ReactElement | null
|
|
128
123
|
hidden: boolean
|
|
129
124
|
inputElement: HTMLInputElement | null
|
|
130
125
|
onMouseEnter: () => void
|
|
131
126
|
onMouseLeave: () => void
|
|
132
127
|
},
|
|
133
|
-
ref:
|
|
134
|
-
) =>
|
|
128
|
+
ref: Ref<HTMLDivElement>
|
|
129
|
+
) => ReactNode
|
|
135
130
|
renderValue?: (value: string, option?: Option) => string
|
|
136
|
-
suffix?:
|
|
131
|
+
suffix?: ReactNode
|
|
137
132
|
value?: string
|
|
138
133
|
}
|
|
139
134
|
|
|
@@ -8215,369 +8210,369 @@ export declare type Placement =
|
|
|
8215
8210
|
| 'left-start'
|
|
8216
8211
|
| 'left-end'
|
|
8217
8212
|
|
|
8218
|
-
/**
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8213
|
+
/** @public */
|
|
8214
|
+
export declare const Popover: MemoExoticComponent<
|
|
8215
|
+
ForwardRefExoticComponent<
|
|
8216
|
+
Pick<
|
|
8217
|
+
PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'content' | 'width' | 'as'>,
|
|
8218
|
+
| 'default'
|
|
8219
|
+
| 'selected'
|
|
8220
|
+
| 'name'
|
|
8221
|
+
| 'muted'
|
|
8222
|
+
| 'key'
|
|
8223
|
+
| 'readOnly'
|
|
8224
|
+
| 'label'
|
|
8225
|
+
| 'color'
|
|
8226
|
+
| 'media'
|
|
8227
|
+
| 'value'
|
|
8228
|
+
| 'cite'
|
|
8229
|
+
| 'data'
|
|
8230
|
+
| 'form'
|
|
8231
|
+
| 'slot'
|
|
8232
|
+
| 'span'
|
|
8233
|
+
| 'style'
|
|
8234
|
+
| 'summary'
|
|
8235
|
+
| 'title'
|
|
8236
|
+
| 'pattern'
|
|
8237
|
+
| 'start'
|
|
8238
|
+
| 'hidden'
|
|
8239
|
+
| 'size'
|
|
8240
|
+
| 'wrap'
|
|
8241
|
+
| 'multiple'
|
|
8242
|
+
| 'min'
|
|
8243
|
+
| 'max'
|
|
8244
|
+
| 'sizes'
|
|
8245
|
+
| 'height'
|
|
8246
|
+
| 'type'
|
|
8247
|
+
| 'defaultChecked'
|
|
8248
|
+
| 'defaultValue'
|
|
8249
|
+
| 'suppressContentEditableWarning'
|
|
8250
|
+
| 'suppressHydrationWarning'
|
|
8251
|
+
| 'accessKey'
|
|
8252
|
+
| 'className'
|
|
8253
|
+
| 'contentEditable'
|
|
8254
|
+
| 'contextMenu'
|
|
8255
|
+
| 'dir'
|
|
8256
|
+
| 'draggable'
|
|
8257
|
+
| 'id'
|
|
8258
|
+
| 'lang'
|
|
8259
|
+
| 'placeholder'
|
|
8260
|
+
| 'spellCheck'
|
|
8261
|
+
| 'tabIndex'
|
|
8262
|
+
| 'translate'
|
|
8263
|
+
| 'radioGroup'
|
|
8264
|
+
| 'role'
|
|
8265
|
+
| 'about'
|
|
8266
|
+
| 'datatype'
|
|
8267
|
+
| 'inlist'
|
|
8268
|
+
| 'prefix'
|
|
8269
|
+
| 'property'
|
|
8270
|
+
| 'resource'
|
|
8271
|
+
| 'typeof'
|
|
8272
|
+
| 'vocab'
|
|
8273
|
+
| 'autoCapitalize'
|
|
8274
|
+
| 'autoCorrect'
|
|
8275
|
+
| 'autoSave'
|
|
8276
|
+
| 'itemProp'
|
|
8277
|
+
| 'itemScope'
|
|
8278
|
+
| 'itemType'
|
|
8279
|
+
| 'itemID'
|
|
8280
|
+
| 'itemRef'
|
|
8281
|
+
| 'results'
|
|
8282
|
+
| 'security'
|
|
8283
|
+
| 'unselectable'
|
|
8284
|
+
| 'inputMode'
|
|
8285
|
+
| 'is'
|
|
8286
|
+
| 'aria-activedescendant'
|
|
8287
|
+
| 'aria-atomic'
|
|
8288
|
+
| 'aria-autocomplete'
|
|
8289
|
+
| 'aria-busy'
|
|
8290
|
+
| 'aria-checked'
|
|
8291
|
+
| 'aria-colcount'
|
|
8292
|
+
| 'aria-colindex'
|
|
8293
|
+
| 'aria-colspan'
|
|
8294
|
+
| 'aria-controls'
|
|
8295
|
+
| 'aria-current'
|
|
8296
|
+
| 'aria-describedby'
|
|
8297
|
+
| 'aria-details'
|
|
8298
|
+
| 'aria-disabled'
|
|
8299
|
+
| 'aria-dropeffect'
|
|
8300
|
+
| 'aria-errormessage'
|
|
8301
|
+
| 'aria-expanded'
|
|
8302
|
+
| 'aria-flowto'
|
|
8303
|
+
| 'aria-grabbed'
|
|
8304
|
+
| 'aria-haspopup'
|
|
8305
|
+
| 'aria-hidden'
|
|
8306
|
+
| 'aria-invalid'
|
|
8307
|
+
| 'aria-keyshortcuts'
|
|
8308
|
+
| 'aria-label'
|
|
8309
|
+
| 'aria-labelledby'
|
|
8310
|
+
| 'aria-level'
|
|
8311
|
+
| 'aria-live'
|
|
8312
|
+
| 'aria-modal'
|
|
8313
|
+
| 'aria-multiline'
|
|
8314
|
+
| 'aria-multiselectable'
|
|
8315
|
+
| 'aria-orientation'
|
|
8316
|
+
| 'aria-owns'
|
|
8317
|
+
| 'aria-placeholder'
|
|
8318
|
+
| 'aria-posinset'
|
|
8319
|
+
| 'aria-pressed'
|
|
8320
|
+
| 'aria-readonly'
|
|
8321
|
+
| 'aria-relevant'
|
|
8322
|
+
| 'aria-required'
|
|
8323
|
+
| 'aria-roledescription'
|
|
8324
|
+
| 'aria-rowcount'
|
|
8325
|
+
| 'aria-rowindex'
|
|
8326
|
+
| 'aria-rowspan'
|
|
8327
|
+
| 'aria-selected'
|
|
8328
|
+
| 'aria-setsize'
|
|
8329
|
+
| 'aria-sort'
|
|
8330
|
+
| 'aria-valuemax'
|
|
8331
|
+
| 'aria-valuemin'
|
|
8332
|
+
| 'aria-valuenow'
|
|
8333
|
+
| 'aria-valuetext'
|
|
8334
|
+
| 'dangerouslySetInnerHTML'
|
|
8335
|
+
| 'onCopy'
|
|
8336
|
+
| 'onCopyCapture'
|
|
8337
|
+
| 'onCut'
|
|
8338
|
+
| 'onCutCapture'
|
|
8339
|
+
| 'onPaste'
|
|
8340
|
+
| 'onPasteCapture'
|
|
8341
|
+
| 'onCompositionEnd'
|
|
8342
|
+
| 'onCompositionEndCapture'
|
|
8343
|
+
| 'onCompositionStart'
|
|
8344
|
+
| 'onCompositionStartCapture'
|
|
8345
|
+
| 'onCompositionUpdate'
|
|
8346
|
+
| 'onCompositionUpdateCapture'
|
|
8347
|
+
| 'onFocus'
|
|
8348
|
+
| 'onFocusCapture'
|
|
8349
|
+
| 'onBlur'
|
|
8350
|
+
| 'onBlurCapture'
|
|
8351
|
+
| 'onChange'
|
|
8352
|
+
| 'onChangeCapture'
|
|
8353
|
+
| 'onBeforeInput'
|
|
8354
|
+
| 'onBeforeInputCapture'
|
|
8355
|
+
| 'onInput'
|
|
8356
|
+
| 'onInputCapture'
|
|
8357
|
+
| 'onReset'
|
|
8358
|
+
| 'onResetCapture'
|
|
8359
|
+
| 'onSubmit'
|
|
8360
|
+
| 'onSubmitCapture'
|
|
8361
|
+
| 'onInvalid'
|
|
8362
|
+
| 'onInvalidCapture'
|
|
8363
|
+
| 'onLoad'
|
|
8364
|
+
| 'onLoadCapture'
|
|
8365
|
+
| 'onError'
|
|
8366
|
+
| 'onErrorCapture'
|
|
8367
|
+
| 'onKeyDown'
|
|
8368
|
+
| 'onKeyDownCapture'
|
|
8369
|
+
| 'onKeyPress'
|
|
8370
|
+
| 'onKeyPressCapture'
|
|
8371
|
+
| 'onKeyUp'
|
|
8372
|
+
| 'onKeyUpCapture'
|
|
8373
|
+
| 'onAbort'
|
|
8374
|
+
| 'onAbortCapture'
|
|
8375
|
+
| 'onCanPlay'
|
|
8376
|
+
| 'onCanPlayCapture'
|
|
8377
|
+
| 'onCanPlayThrough'
|
|
8378
|
+
| 'onCanPlayThroughCapture'
|
|
8379
|
+
| 'onDurationChange'
|
|
8380
|
+
| 'onDurationChangeCapture'
|
|
8381
|
+
| 'onEmptied'
|
|
8382
|
+
| 'onEmptiedCapture'
|
|
8383
|
+
| 'onEncrypted'
|
|
8384
|
+
| 'onEncryptedCapture'
|
|
8385
|
+
| 'onEnded'
|
|
8386
|
+
| 'onEndedCapture'
|
|
8387
|
+
| 'onLoadedData'
|
|
8388
|
+
| 'onLoadedDataCapture'
|
|
8389
|
+
| 'onLoadedMetadata'
|
|
8390
|
+
| 'onLoadedMetadataCapture'
|
|
8391
|
+
| 'onLoadStart'
|
|
8392
|
+
| 'onLoadStartCapture'
|
|
8393
|
+
| 'onPause'
|
|
8394
|
+
| 'onPauseCapture'
|
|
8395
|
+
| 'onPlay'
|
|
8396
|
+
| 'onPlayCapture'
|
|
8397
|
+
| 'onPlaying'
|
|
8398
|
+
| 'onPlayingCapture'
|
|
8399
|
+
| 'onProgress'
|
|
8400
|
+
| 'onProgressCapture'
|
|
8401
|
+
| 'onRateChange'
|
|
8402
|
+
| 'onRateChangeCapture'
|
|
8403
|
+
| 'onSeeked'
|
|
8404
|
+
| 'onSeekedCapture'
|
|
8405
|
+
| 'onSeeking'
|
|
8406
|
+
| 'onSeekingCapture'
|
|
8407
|
+
| 'onStalled'
|
|
8408
|
+
| 'onStalledCapture'
|
|
8409
|
+
| 'onSuspend'
|
|
8410
|
+
| 'onSuspendCapture'
|
|
8411
|
+
| 'onTimeUpdate'
|
|
8412
|
+
| 'onTimeUpdateCapture'
|
|
8413
|
+
| 'onVolumeChange'
|
|
8414
|
+
| 'onVolumeChangeCapture'
|
|
8415
|
+
| 'onWaiting'
|
|
8416
|
+
| 'onWaitingCapture'
|
|
8417
|
+
| 'onAuxClick'
|
|
8418
|
+
| 'onAuxClickCapture'
|
|
8419
|
+
| 'onClick'
|
|
8420
|
+
| 'onClickCapture'
|
|
8421
|
+
| 'onContextMenu'
|
|
8422
|
+
| 'onContextMenuCapture'
|
|
8423
|
+
| 'onDoubleClick'
|
|
8424
|
+
| 'onDoubleClickCapture'
|
|
8425
|
+
| 'onDrag'
|
|
8426
|
+
| 'onDragCapture'
|
|
8427
|
+
| 'onDragEnd'
|
|
8428
|
+
| 'onDragEndCapture'
|
|
8429
|
+
| 'onDragEnter'
|
|
8430
|
+
| 'onDragEnterCapture'
|
|
8431
|
+
| 'onDragExit'
|
|
8432
|
+
| 'onDragExitCapture'
|
|
8433
|
+
| 'onDragLeave'
|
|
8434
|
+
| 'onDragLeaveCapture'
|
|
8435
|
+
| 'onDragOver'
|
|
8436
|
+
| 'onDragOverCapture'
|
|
8437
|
+
| 'onDragStart'
|
|
8438
|
+
| 'onDragStartCapture'
|
|
8439
|
+
| 'onDrop'
|
|
8440
|
+
| 'onDropCapture'
|
|
8441
|
+
| 'onMouseDown'
|
|
8442
|
+
| 'onMouseDownCapture'
|
|
8443
|
+
| 'onMouseEnter'
|
|
8444
|
+
| 'onMouseLeave'
|
|
8445
|
+
| 'onMouseMove'
|
|
8446
|
+
| 'onMouseMoveCapture'
|
|
8447
|
+
| 'onMouseOut'
|
|
8448
|
+
| 'onMouseOutCapture'
|
|
8449
|
+
| 'onMouseOver'
|
|
8450
|
+
| 'onMouseOverCapture'
|
|
8451
|
+
| 'onMouseUp'
|
|
8452
|
+
| 'onMouseUpCapture'
|
|
8453
|
+
| 'onSelect'
|
|
8454
|
+
| 'onSelectCapture'
|
|
8455
|
+
| 'onTouchCancel'
|
|
8456
|
+
| 'onTouchCancelCapture'
|
|
8457
|
+
| 'onTouchEnd'
|
|
8458
|
+
| 'onTouchEndCapture'
|
|
8459
|
+
| 'onTouchMove'
|
|
8460
|
+
| 'onTouchMoveCapture'
|
|
8461
|
+
| 'onTouchStart'
|
|
8462
|
+
| 'onTouchStartCapture'
|
|
8463
|
+
| 'onPointerDown'
|
|
8464
|
+
| 'onPointerDownCapture'
|
|
8465
|
+
| 'onPointerMove'
|
|
8466
|
+
| 'onPointerMoveCapture'
|
|
8467
|
+
| 'onPointerUp'
|
|
8468
|
+
| 'onPointerUpCapture'
|
|
8469
|
+
| 'onPointerCancel'
|
|
8470
|
+
| 'onPointerCancelCapture'
|
|
8471
|
+
| 'onPointerEnter'
|
|
8472
|
+
| 'onPointerEnterCapture'
|
|
8473
|
+
| 'onPointerLeave'
|
|
8474
|
+
| 'onPointerLeaveCapture'
|
|
8475
|
+
| 'onPointerOver'
|
|
8476
|
+
| 'onPointerOverCapture'
|
|
8477
|
+
| 'onPointerOut'
|
|
8478
|
+
| 'onPointerOutCapture'
|
|
8479
|
+
| 'onGotPointerCapture'
|
|
8480
|
+
| 'onGotPointerCaptureCapture'
|
|
8481
|
+
| 'onLostPointerCapture'
|
|
8482
|
+
| 'onLostPointerCaptureCapture'
|
|
8483
|
+
| 'onScroll'
|
|
8484
|
+
| 'onScrollCapture'
|
|
8485
|
+
| 'onWheel'
|
|
8486
|
+
| 'onWheelCapture'
|
|
8487
|
+
| 'onAnimationStart'
|
|
8488
|
+
| 'onAnimationStartCapture'
|
|
8489
|
+
| 'onAnimationEnd'
|
|
8490
|
+
| 'onAnimationEndCapture'
|
|
8491
|
+
| 'onAnimationIteration'
|
|
8492
|
+
| 'onAnimationIterationCapture'
|
|
8493
|
+
| 'onTransitionEnd'
|
|
8494
|
+
| 'onTransitionEndCapture'
|
|
8495
|
+
| 'list'
|
|
8496
|
+
| 'accept'
|
|
8497
|
+
| 'acceptCharset'
|
|
8498
|
+
| 'action'
|
|
8499
|
+
| 'allowFullScreen'
|
|
8500
|
+
| 'allowTransparency'
|
|
8501
|
+
| 'alt'
|
|
8502
|
+
| 'async'
|
|
8503
|
+
| 'autoComplete'
|
|
8504
|
+
| 'autoFocus'
|
|
8505
|
+
| 'autoPlay'
|
|
8506
|
+
| 'capture'
|
|
8507
|
+
| 'cellPadding'
|
|
8508
|
+
| 'cellSpacing'
|
|
8509
|
+
| 'charSet'
|
|
8510
|
+
| 'challenge'
|
|
8511
|
+
| 'checked'
|
|
8512
|
+
| 'classID'
|
|
8513
|
+
| 'cols'
|
|
8514
|
+
| 'colSpan'
|
|
8515
|
+
| 'controls'
|
|
8516
|
+
| 'coords'
|
|
8517
|
+
| 'crossOrigin'
|
|
8518
|
+
| 'dateTime'
|
|
8519
|
+
| 'defer'
|
|
8520
|
+
| 'download'
|
|
8521
|
+
| 'encType'
|
|
8522
|
+
| 'formAction'
|
|
8523
|
+
| 'formEncType'
|
|
8524
|
+
| 'formMethod'
|
|
8525
|
+
| 'formNoValidate'
|
|
8526
|
+
| 'formTarget'
|
|
8527
|
+
| 'frameBorder'
|
|
8528
|
+
| 'headers'
|
|
8529
|
+
| 'high'
|
|
8530
|
+
| 'href'
|
|
8531
|
+
| 'hrefLang'
|
|
8532
|
+
| 'htmlFor'
|
|
8533
|
+
| 'httpEquiv'
|
|
8534
|
+
| 'integrity'
|
|
8535
|
+
| 'keyParams'
|
|
8536
|
+
| 'keyType'
|
|
8537
|
+
| 'kind'
|
|
8538
|
+
| 'loop'
|
|
8539
|
+
| 'low'
|
|
8540
|
+
| 'manifest'
|
|
8541
|
+
| 'marginHeight'
|
|
8542
|
+
| 'marginWidth'
|
|
8543
|
+
| 'maxLength'
|
|
8544
|
+
| 'mediaGroup'
|
|
8545
|
+
| 'method'
|
|
8546
|
+
| 'minLength'
|
|
8547
|
+
| 'nonce'
|
|
8548
|
+
| 'noValidate'
|
|
8549
|
+
| 'optimum'
|
|
8550
|
+
| 'playsInline'
|
|
8551
|
+
| 'poster'
|
|
8552
|
+
| 'preload'
|
|
8553
|
+
| 'rel'
|
|
8554
|
+
| 'required'
|
|
8555
|
+
| 'reversed'
|
|
8556
|
+
| 'rows'
|
|
8557
|
+
| 'rowSpan'
|
|
8558
|
+
| 'sandbox'
|
|
8559
|
+
| 'scope'
|
|
8560
|
+
| 'scoped'
|
|
8561
|
+
| 'scrolling'
|
|
8562
|
+
| 'seamless'
|
|
8563
|
+
| 'shape'
|
|
8564
|
+
| 'src'
|
|
8565
|
+
| 'srcDoc'
|
|
8566
|
+
| 'srcLang'
|
|
8567
|
+
| 'srcSet'
|
|
8568
|
+
| 'step'
|
|
8569
|
+
| 'target'
|
|
8570
|
+
| 'useMap'
|
|
8571
|
+
| 'wmode'
|
|
8572
|
+
| keyof PopoverProps
|
|
8573
|
+
> &
|
|
8574
|
+
RefAttributes<HTMLDivElement>
|
|
8575
|
+
>
|
|
8581
8576
|
>
|
|
8582
8577
|
|
|
8583
8578
|
/**
|
|
@@ -8597,6 +8592,7 @@ export declare interface PopoverProps
|
|
|
8597
8592
|
* @beta
|
|
8598
8593
|
*/
|
|
8599
8594
|
__unstable_margins?: PopoverMargins
|
|
8595
|
+
/** @deprecated Use `fallbackPlacements` instead. */
|
|
8600
8596
|
allowedAutoPlacements?: Placement[]
|
|
8601
8597
|
arrow?: boolean
|
|
8602
8598
|
boundaryElement?: HTMLElement | null
|
|
@@ -8606,6 +8602,7 @@ export declare interface PopoverProps
|
|
|
8606
8602
|
disabled?: boolean
|
|
8607
8603
|
fallbackPlacements?: Placement[]
|
|
8608
8604
|
open?: boolean
|
|
8605
|
+
overflow?: BoxOverflow
|
|
8609
8606
|
padding?: number | number[]
|
|
8610
8607
|
placement?: Placement
|
|
8611
8608
|
portal?: boolean | string
|
|
@@ -8613,7 +8610,9 @@ export declare interface PopoverProps
|
|
|
8613
8610
|
referenceElement?: HTMLElement | null
|
|
8614
8611
|
matchReferenceWidth?: boolean
|
|
8615
8612
|
scheme?: ThemeColorSchemeKey
|
|
8613
|
+
/** @deprecated No longer supported. */
|
|
8616
8614
|
tether?: boolean
|
|
8615
|
+
/** @deprecated No longer supported. */
|
|
8617
8616
|
tetherOffset?: number | ((...args: any[]) => number)
|
|
8618
8617
|
tone?: CardTone
|
|
8619
8618
|
}
|
|
@@ -14945,15 +14944,18 @@ export declare const Tooltip: ForwardRefExoticComponent<
|
|
|
14945
14944
|
* @public
|
|
14946
14945
|
*/
|
|
14947
14946
|
export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
|
|
14947
|
+
/** @deprecated Use `fallbackPlacements` instead. */
|
|
14948
14948
|
allowedAutoPlacements?: Placement[]
|
|
14949
14949
|
boundaryElement?: HTMLElement | null
|
|
14950
14950
|
children?: React.ReactElement
|
|
14951
14951
|
content?: React.ReactNode
|
|
14952
14952
|
disabled?: boolean
|
|
14953
14953
|
fallbackPlacements?: Placement[]
|
|
14954
|
+
padding?: number | number[]
|
|
14954
14955
|
placement?: Placement
|
|
14955
14956
|
portal?: boolean | string
|
|
14956
14957
|
scheme?: ThemeColorSchemeKey
|
|
14958
|
+
shadow?: number | number[]
|
|
14957
14959
|
}
|
|
14958
14960
|
|
|
14959
14961
|
/**
|