@react-spectrum/s2 1.0.0 → 1.2.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/dist/Accordion.cjs +3 -3
- package/dist/Accordion.cjs.map +1 -1
- package/dist/Accordion.css +2 -2
- package/dist/Accordion.css.map +1 -1
- package/dist/Accordion.mjs +3 -3
- package/dist/Accordion.mjs.map +1 -1
- package/dist/ActionBar.cjs +62 -61
- package/dist/ActionBar.cjs.map +1 -1
- package/dist/ActionBar.css +58 -58
- package/dist/ActionBar.css.map +1 -1
- package/dist/ActionBar.mjs +62 -61
- package/dist/ActionBar.mjs.map +1 -1
- package/dist/ActionButton.cjs +234 -234
- package/dist/ActionButton.cjs.map +1 -1
- package/dist/ActionButton.css +160 -160
- package/dist/ActionButton.css.map +1 -1
- package/dist/ActionButton.mjs +234 -234
- package/dist/ActionButton.mjs.map +1 -1
- package/dist/ActionButtonGroup.cjs +16 -16
- package/dist/ActionButtonGroup.css +9 -9
- package/dist/ActionButtonGroup.mjs +16 -16
- package/dist/Add.cjs +10 -10
- package/dist/Add.css +6 -6
- package/dist/Add.mjs +10 -10
- package/dist/AlertDialog.cjs +3 -3
- package/dist/AlertDialog.css +3 -3
- package/dist/AlertDialog.mjs +3 -3
- package/dist/Asterisk.cjs +6 -6
- package/dist/Asterisk.css +4 -4
- package/dist/Asterisk.mjs +6 -6
- package/dist/Avatar.cjs +17 -17
- package/dist/Avatar.css +16 -16
- package/dist/Avatar.mjs +17 -17
- package/dist/AvatarGroup.cjs +121 -121
- package/dist/AvatarGroup.css +31 -31
- package/dist/AvatarGroup.mjs +121 -121
- package/dist/Badge.cjs +197 -197
- package/dist/Badge.css +125 -125
- package/dist/Badge.mjs +197 -197
- package/dist/Breadcrumbs.cjs +235 -235
- package/dist/Breadcrumbs.cjs.map +1 -1
- package/dist/Breadcrumbs.css +100 -100
- package/dist/Breadcrumbs.css.map +1 -1
- package/dist/Breadcrumbs.mjs +235 -235
- package/dist/Breadcrumbs.mjs.map +1 -1
- package/dist/Button.cjs +333 -333
- package/dist/Button.cjs.map +1 -1
- package/dist/Button.css +174 -174
- package/dist/Button.css.map +1 -1
- package/dist/Button.mjs +333 -333
- package/dist/Button.mjs.map +1 -1
- package/dist/ButtonGroup.cjs +21 -21
- package/dist/ButtonGroup.css +15 -15
- package/dist/ButtonGroup.mjs +21 -21
- package/dist/Calendar.cjs +169 -169
- package/dist/Calendar.cjs.map +1 -1
- package/dist/Calendar.css +134 -134
- package/dist/Calendar.css.map +1 -1
- package/dist/Calendar.mjs +169 -169
- package/dist/Calendar.mjs.map +1 -1
- package/dist/Card.cjs +310 -310
- package/dist/Card.cjs.map +1 -1
- package/dist/Card.css +206 -206
- package/dist/Card.css.map +1 -1
- package/dist/Card.mjs +310 -310
- package/dist/Card.mjs.map +1 -1
- package/dist/CardView.cjs +19 -19
- package/dist/CardView.cjs.map +1 -1
- package/dist/CardView.css +17 -17
- package/dist/CardView.css.map +1 -1
- package/dist/CardView.mjs +19 -19
- package/dist/CardView.mjs.map +1 -1
- package/dist/CenterBaseline.cjs +1 -1
- package/dist/CenterBaseline.css +2 -2
- package/dist/CenterBaseline.mjs +1 -1
- package/dist/Checkbox.cjs +162 -162
- package/dist/Checkbox.cjs.map +1 -1
- package/dist/Checkbox.css +95 -91
- package/dist/Checkbox.css.map +1 -1
- package/dist/Checkbox.mjs +162 -162
- package/dist/Checkbox.mjs.map +1 -1
- package/dist/CheckboxGroup.cjs +44 -44
- package/dist/CheckboxGroup.cjs.map +1 -1
- package/dist/CheckboxGroup.css +37 -37
- package/dist/CheckboxGroup.css.map +1 -1
- package/dist/CheckboxGroup.mjs +44 -44
- package/dist/CheckboxGroup.mjs.map +1 -1
- package/dist/Checkmark.cjs +12 -12
- package/dist/Checkmark.css +8 -8
- package/dist/Checkmark.mjs +12 -12
- package/dist/Chevron.cjs +12 -12
- package/dist/Chevron.css +10 -10
- package/dist/Chevron.mjs +12 -12
- package/dist/ClearButton.cjs +30 -30
- package/dist/ClearButton.css +30 -30
- package/dist/ClearButton.mjs +30 -30
- package/dist/CloseButton.cjs +56 -56
- package/dist/CloseButton.css +47 -47
- package/dist/CloseButton.mjs +56 -56
- package/dist/ColorArea.cjs +17 -17
- package/dist/ColorArea.cjs.map +1 -1
- package/dist/ColorArea.css +16 -16
- package/dist/ColorArea.css.map +1 -1
- package/dist/ColorArea.mjs +17 -17
- package/dist/ColorArea.mjs.map +1 -1
- package/dist/ColorField.cjs +32 -32
- package/dist/ColorField.cjs.map +1 -1
- package/dist/ColorField.css +27 -27
- package/dist/ColorField.css.map +1 -1
- package/dist/ColorField.mjs +32 -32
- package/dist/ColorField.mjs.map +1 -1
- package/dist/ColorHandle.cjs +27 -27
- package/dist/ColorHandle.css +42 -42
- package/dist/ColorHandle.mjs +27 -27
- package/dist/ColorSlider.cjs +109 -109
- package/dist/ColorSlider.cjs.map +1 -1
- package/dist/ColorSlider.css +52 -52
- package/dist/ColorSlider.css.map +1 -1
- package/dist/ColorSlider.mjs +109 -109
- package/dist/ColorSlider.mjs.map +1 -1
- package/dist/ColorSwatch.cjs +30 -30
- package/dist/ColorSwatch.cjs.map +1 -1
- package/dist/ColorSwatch.css +29 -29
- package/dist/ColorSwatch.css.map +1 -1
- package/dist/ColorSwatch.mjs +30 -30
- package/dist/ColorSwatch.mjs.map +1 -1
- package/dist/ColorSwatchPicker.cjs +30 -30
- package/dist/ColorSwatchPicker.css +48 -48
- package/dist/ColorSwatchPicker.mjs +30 -30
- package/dist/ColorWheel.cjs +31 -27
- package/dist/ColorWheel.cjs.map +1 -1
- package/dist/ColorWheel.css +17 -17
- package/dist/ColorWheel.css.map +1 -1
- package/dist/ColorWheel.mjs +31 -27
- package/dist/ColorWheel.mjs.map +1 -1
- package/dist/ComboBox.cjs +383 -383
- package/dist/ComboBox.cjs.map +1 -1
- package/dist/ComboBox.css +187 -187
- package/dist/ComboBox.css.map +1 -1
- package/dist/ComboBox.mjs +383 -383
- package/dist/ComboBox.mjs.map +1 -1
- package/dist/ContextualHelp.cjs +70 -41
- package/dist/ContextualHelp.cjs.map +1 -1
- package/dist/ContextualHelp.css +71 -71
- package/dist/ContextualHelp.css.map +1 -1
- package/dist/ContextualHelp.mjs +74 -46
- package/dist/ContextualHelp.mjs.map +1 -1
- package/dist/Cross.cjs +14 -14
- package/dist/Cross.css +10 -10
- package/dist/Cross.mjs +14 -14
- package/dist/CustomDialog.cjs +26 -26
- package/dist/CustomDialog.cjs.map +1 -1
- package/dist/CustomDialog.css +25 -25
- package/dist/CustomDialog.css.map +1 -1
- package/dist/CustomDialog.mjs +26 -26
- package/dist/CustomDialog.mjs.map +1 -1
- package/dist/Dash.cjs +10 -10
- package/dist/Dash.css +6 -6
- package/dist/Dash.mjs +10 -10
- package/dist/DateField.cjs +74 -74
- package/dist/DateField.cjs.map +1 -1
- package/dist/DateField.css +77 -77
- package/dist/DateField.css.map +1 -1
- package/dist/DateField.mjs +74 -74
- package/dist/DateField.mjs.map +1 -1
- package/dist/DatePicker.cjs +173 -173
- package/dist/DatePicker.cjs.map +1 -1
- package/dist/DatePicker.css +128 -128
- package/dist/DatePicker.css.map +1 -1
- package/dist/DatePicker.mjs +173 -173
- package/dist/DatePicker.mjs.map +1 -1
- package/dist/DateRangePicker.cjs +56 -56
- package/dist/DateRangePicker.cjs.map +1 -1
- package/dist/DateRangePicker.css +59 -59
- package/dist/DateRangePicker.css.map +1 -1
- package/dist/DateRangePicker.mjs +56 -56
- package/dist/DateRangePicker.mjs.map +1 -1
- package/dist/Dialog.cjs +17 -17
- package/dist/Dialog.cjs.map +1 -1
- package/dist/Dialog.css +70 -70
- package/dist/Dialog.css.map +1 -1
- package/dist/Dialog.mjs +17 -17
- package/dist/Dialog.mjs.map +1 -1
- package/dist/Disclosure.cjs +120 -120
- package/dist/Disclosure.cjs.map +1 -1
- package/dist/Disclosure.css +112 -112
- package/dist/Disclosure.css.map +1 -1
- package/dist/Disclosure.mjs +120 -120
- package/dist/Disclosure.mjs.map +1 -1
- package/dist/Divider.cjs +26 -26
- package/dist/Divider.cjs.map +1 -1
- package/dist/Divider.css +25 -25
- package/dist/Divider.css.map +1 -1
- package/dist/Divider.mjs +26 -26
- package/dist/Divider.mjs.map +1 -1
- package/dist/DropZone.cjs +62 -62
- package/dist/DropZone.cjs.map +1 -1
- package/dist/DropZone.css +57 -57
- package/dist/DropZone.css.map +1 -1
- package/dist/DropZone.mjs +62 -62
- package/dist/DropZone.mjs.map +1 -1
- package/dist/Field.cjs +351 -351
- package/dist/Field.cjs.map +1 -1
- package/dist/Field.css +147 -147
- package/dist/Field.css.map +1 -1
- package/dist/Field.mjs +351 -351
- package/dist/Field.mjs.map +1 -1
- package/dist/Form.cjs +10 -10
- package/dist/Form.cjs.map +1 -1
- package/dist/Form.css +9 -9
- package/dist/Form.css.map +1 -1
- package/dist/Form.mjs +10 -10
- package/dist/Form.mjs.map +1 -1
- package/dist/FullscreenDialog.cjs +5 -5
- package/dist/FullscreenDialog.cjs.map +1 -1
- package/dist/FullscreenDialog.css +78 -78
- package/dist/FullscreenDialog.css.map +1 -1
- package/dist/FullscreenDialog.mjs +5 -5
- package/dist/FullscreenDialog.mjs.map +1 -1
- package/dist/IllustratedMessage.cjs +229 -229
- package/dist/IllustratedMessage.css +72 -72
- package/dist/IllustratedMessage.mjs +229 -229
- package/dist/Image.cjs +14 -14
- package/dist/Image.css +14 -14
- package/dist/Image.mjs +14 -14
- package/dist/InlineAlert.cjs +101 -101
- package/dist/InlineAlert.css +76 -76
- package/dist/InlineAlert.mjs +101 -101
- package/dist/Link.cjs +50 -50
- package/dist/Link.cjs.map +1 -1
- package/dist/Link.css +41 -41
- package/dist/Link.css.map +1 -1
- package/dist/Link.mjs +50 -50
- package/dist/Link.mjs.map +1 -1
- package/dist/LinkOut.cjs +8 -8
- package/dist/LinkOut.css +8 -8
- package/dist/LinkOut.mjs +8 -8
- package/dist/ListView.cjs +777 -0
- package/dist/ListView.cjs.map +1 -0
- package/dist/ListView.css +740 -0
- package/dist/ListView.css.map +1 -0
- package/dist/ListView.mjs +770 -0
- package/dist/ListView.mjs.map +1 -0
- package/dist/Menu.cjs +540 -445
- package/dist/Menu.cjs.map +1 -1
- package/dist/Menu.css +234 -190
- package/dist/Menu.css.map +1 -1
- package/dist/Menu.mjs +541 -447
- package/dist/Menu.mjs.map +1 -1
- package/dist/Meter.cjs +154 -154
- package/dist/Meter.cjs.map +1 -1
- package/dist/Meter.css +91 -91
- package/dist/Meter.css.map +1 -1
- package/dist/Meter.mjs +154 -154
- package/dist/Meter.mjs.map +1 -1
- package/dist/Modal.cjs +66 -66
- package/dist/Modal.cjs.map +1 -1
- package/dist/Modal.css +54 -54
- package/dist/Modal.css.map +1 -1
- package/dist/Modal.mjs +66 -66
- package/dist/Modal.mjs.map +1 -1
- package/dist/NotificationBadge.cjs +57 -57
- package/dist/NotificationBadge.css +49 -49
- package/dist/NotificationBadge.mjs +57 -57
- package/dist/NumberField.cjs +115 -115
- package/dist/NumberField.cjs.map +1 -1
- package/dist/NumberField.css +99 -99
- package/dist/NumberField.css.map +1 -1
- package/dist/NumberField.mjs +115 -115
- package/dist/NumberField.mjs.map +1 -1
- package/dist/Picker.cjs +337 -285
- package/dist/Picker.cjs.map +1 -1
- package/dist/Picker.css +173 -173
- package/dist/Picker.css.map +1 -1
- package/dist/Picker.mjs +339 -287
- package/dist/Picker.mjs.map +1 -1
- package/dist/Popover.cjs +89 -89
- package/dist/Popover.cjs.map +1 -1
- package/dist/Popover.css +70 -70
- package/dist/Popover.css.map +1 -1
- package/dist/Popover.mjs +89 -89
- package/dist/Popover.mjs.map +1 -1
- package/dist/ProgressBar.cjs +164 -164
- package/dist/ProgressBar.cjs.map +1 -1
- package/dist/ProgressBar.css +99 -99
- package/dist/ProgressBar.css.map +1 -1
- package/dist/ProgressBar.mjs +164 -164
- package/dist/ProgressBar.mjs.map +1 -1
- package/dist/ProgressCircle.cjs +32 -32
- package/dist/ProgressCircle.cjs.map +1 -1
- package/dist/ProgressCircle.css +24 -24
- package/dist/ProgressCircle.css.map +1 -1
- package/dist/ProgressCircle.mjs +32 -32
- package/dist/ProgressCircle.mjs.map +1 -1
- package/dist/Provider.cjs +11 -11
- package/dist/Provider.css +10 -10
- package/dist/Provider.mjs +11 -11
- package/dist/Radio.cjs +146 -146
- package/dist/Radio.cjs.map +1 -1
- package/dist/Radio.css +78 -78
- package/dist/Radio.css.map +1 -1
- package/dist/Radio.mjs +146 -146
- package/dist/Radio.mjs.map +1 -1
- package/dist/RadioGroup.cjs +42 -42
- package/dist/RadioGroup.cjs.map +1 -1
- package/dist/RadioGroup.css +37 -37
- package/dist/RadioGroup.css.map +1 -1
- package/dist/RadioGroup.mjs +42 -42
- package/dist/RadioGroup.mjs.map +1 -1
- package/dist/RangeCalendar.cjs +8 -8
- package/dist/RangeCalendar.cjs.map +1 -1
- package/dist/RangeCalendar.css +10 -10
- package/dist/RangeCalendar.css.map +1 -1
- package/dist/RangeCalendar.mjs +8 -8
- package/dist/RangeCalendar.mjs.map +1 -1
- package/dist/SearchField.cjs +42 -42
- package/dist/SearchField.cjs.map +1 -1
- package/dist/SearchField.css +45 -45
- package/dist/SearchField.css.map +1 -1
- package/dist/SearchField.mjs +42 -42
- package/dist/SearchField.mjs.map +1 -1
- package/dist/SegmentedControl.cjs +180 -180
- package/dist/SegmentedControl.css +123 -123
- package/dist/SegmentedControl.mjs +180 -180
- package/dist/SelectBoxGroup.cjs +144 -144
- package/dist/SelectBoxGroup.cjs.map +1 -1
- package/dist/SelectBoxGroup.css +120 -120
- package/dist/SelectBoxGroup.css.map +1 -1
- package/dist/SelectBoxGroup.mjs +144 -144
- package/dist/SelectBoxGroup.mjs.map +1 -1
- package/dist/Slider.cjs +295 -295
- package/dist/Slider.cjs.map +1 -1
- package/dist/Slider.css +154 -154
- package/dist/Slider.css.map +1 -1
- package/dist/Slider.mjs +295 -295
- package/dist/Slider.mjs.map +1 -1
- package/dist/StatusLight.cjs +116 -116
- package/dist/StatusLight.css +59 -59
- package/dist/StatusLight.mjs +116 -116
- package/dist/Switch.cjs +155 -155
- package/dist/Switch.cjs.map +1 -1
- package/dist/Switch.css +74 -74
- package/dist/Switch.css.map +1 -1
- package/dist/Switch.mjs +155 -155
- package/dist/Switch.mjs.map +1 -1
- package/dist/TableView.cjs +448 -424
- package/dist/TableView.cjs.map +1 -1
- package/dist/TableView.css +232 -204
- package/dist/TableView.css.map +1 -1
- package/dist/TableView.mjs +450 -426
- package/dist/TableView.mjs.map +1 -1
- package/dist/Tabs.cjs +127 -127
- package/dist/Tabs.cjs.map +1 -1
- package/dist/Tabs.css +105 -105
- package/dist/Tabs.css.map +1 -1
- package/dist/Tabs.mjs +127 -127
- package/dist/Tabs.mjs.map +1 -1
- package/dist/TabsPicker.cjs +127 -127
- package/dist/TabsPicker.cjs.map +1 -1
- package/dist/TabsPicker.css +108 -108
- package/dist/TabsPicker.css.map +1 -1
- package/dist/TabsPicker.mjs +127 -127
- package/dist/TabsPicker.mjs.map +1 -1
- package/dist/TagGroup.cjs +204 -204
- package/dist/TagGroup.cjs.map +1 -1
- package/dist/TagGroup.css +146 -146
- package/dist/TagGroup.css.map +1 -1
- package/dist/TagGroup.mjs +204 -204
- package/dist/TagGroup.mjs.map +1 -1
- package/dist/TextField.cjs +59 -59
- package/dist/TextField.cjs.map +1 -1
- package/dist/TextField.css +54 -54
- package/dist/TextField.css.map +1 -1
- package/dist/TextField.mjs +59 -59
- package/dist/TextField.mjs.map +1 -1
- package/dist/TimeField.cjs +52 -52
- package/dist/TimeField.cjs.map +1 -1
- package/dist/TimeField.css +47 -47
- package/dist/TimeField.css.map +1 -1
- package/dist/TimeField.mjs +52 -52
- package/dist/TimeField.mjs.map +1 -1
- package/dist/Toast.cjs +121 -121
- package/dist/Toast.cjs.map +1 -1
- package/dist/Toast.css +110 -110
- package/dist/Toast.css.map +1 -1
- package/dist/Toast.mjs +122 -122
- package/dist/Toast.mjs.map +1 -1
- package/dist/ToggleButton.cjs +3 -3
- package/dist/ToggleButton.cjs.map +1 -1
- package/dist/ToggleButton.css +12 -12
- package/dist/ToggleButton.css.map +1 -1
- package/dist/ToggleButton.mjs +3 -3
- package/dist/ToggleButton.mjs.map +1 -1
- package/dist/ToggleButtonGroup.cjs.map +1 -1
- package/dist/ToggleButtonGroup.mjs.map +1 -1
- package/dist/Tooltip.cjs +78 -78
- package/dist/Tooltip.cjs.map +1 -1
- package/dist/Tooltip.css +65 -65
- package/dist/Tooltip.css.map +1 -1
- package/dist/Tooltip.mjs +78 -78
- package/dist/Tooltip.mjs.map +1 -1
- package/dist/TreeView.cjs +191 -141
- package/dist/TreeView.cjs.map +1 -1
- package/dist/TreeView.css +143 -127
- package/dist/TreeView.css.map +1 -1
- package/dist/TreeView.mjs +191 -141
- package/dist/TreeView.mjs.map +1 -1
- package/dist/ar-AE.cjs +1 -0
- package/dist/ar-AE.cjs.map +1 -1
- package/dist/ar-AE.mjs +1 -0
- package/dist/ar-AE.mjs.map +1 -1
- package/dist/bg-BG.cjs +1 -0
- package/dist/bg-BG.cjs.map +1 -1
- package/dist/bg-BG.mjs +1 -0
- package/dist/bg-BG.mjs.map +1 -1
- package/dist/cs-CZ.cjs +1 -0
- package/dist/cs-CZ.cjs.map +1 -1
- package/dist/cs-CZ.mjs +1 -0
- package/dist/cs-CZ.mjs.map +1 -1
- package/dist/da-DK.cjs +1 -0
- package/dist/da-DK.cjs.map +1 -1
- package/dist/da-DK.mjs +1 -0
- package/dist/da-DK.mjs.map +1 -1
- package/dist/de-DE.cjs +1 -0
- package/dist/de-DE.cjs.map +1 -1
- package/dist/de-DE.mjs +1 -0
- package/dist/de-DE.mjs.map +1 -1
- package/dist/el-GR.cjs +1 -0
- package/dist/el-GR.cjs.map +1 -1
- package/dist/el-GR.mjs +1 -0
- package/dist/el-GR.mjs.map +1 -1
- package/dist/en-US.cjs +1 -0
- package/dist/en-US.cjs.map +1 -1
- package/dist/en-US.mjs +1 -0
- package/dist/en-US.mjs.map +1 -1
- package/dist/es-ES.cjs +1 -0
- package/dist/es-ES.cjs.map +1 -1
- package/dist/es-ES.mjs +1 -0
- package/dist/es-ES.mjs.map +1 -1
- package/dist/et-EE.cjs +1 -0
- package/dist/et-EE.cjs.map +1 -1
- package/dist/et-EE.mjs +1 -0
- package/dist/et-EE.mjs.map +1 -1
- package/dist/fi-FI.cjs +1 -0
- package/dist/fi-FI.cjs.map +1 -1
- package/dist/fi-FI.mjs +1 -0
- package/dist/fi-FI.mjs.map +1 -1
- package/dist/fr-FR.cjs +1 -0
- package/dist/fr-FR.cjs.map +1 -1
- package/dist/fr-FR.mjs +1 -0
- package/dist/fr-FR.mjs.map +1 -1
- package/dist/he-IL.cjs +1 -0
- package/dist/he-IL.cjs.map +1 -1
- package/dist/he-IL.mjs +1 -0
- package/dist/he-IL.mjs.map +1 -1
- package/dist/hr-HR.cjs +1 -0
- package/dist/hr-HR.cjs.map +1 -1
- package/dist/hr-HR.mjs +1 -0
- package/dist/hr-HR.mjs.map +1 -1
- package/dist/hu-HU.cjs +1 -0
- package/dist/hu-HU.cjs.map +1 -1
- package/dist/hu-HU.mjs +1 -0
- package/dist/hu-HU.mjs.map +1 -1
- package/dist/it-IT.cjs +1 -0
- package/dist/it-IT.cjs.map +1 -1
- package/dist/it-IT.mjs +1 -0
- package/dist/it-IT.mjs.map +1 -1
- package/dist/ja-JP.cjs +1 -0
- package/dist/ja-JP.cjs.map +1 -1
- package/dist/ja-JP.mjs +1 -0
- package/dist/ja-JP.mjs.map +1 -1
- package/dist/ko-KR.cjs +1 -0
- package/dist/ko-KR.cjs.map +1 -1
- package/dist/ko-KR.mjs +1 -0
- package/dist/ko-KR.mjs.map +1 -1
- package/dist/lt-LT.cjs +1 -0
- package/dist/lt-LT.cjs.map +1 -1
- package/dist/lt-LT.mjs +1 -0
- package/dist/lt-LT.mjs.map +1 -1
- package/dist/lv-LV.cjs +1 -0
- package/dist/lv-LV.cjs.map +1 -1
- package/dist/lv-LV.mjs +1 -0
- package/dist/lv-LV.mjs.map +1 -1
- package/dist/main.cjs +7 -0
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +5 -3
- package/dist/module.mjs.map +1 -1
- package/dist/nb-NO.cjs +1 -0
- package/dist/nb-NO.cjs.map +1 -1
- package/dist/nb-NO.mjs +1 -0
- package/dist/nb-NO.mjs.map +1 -1
- package/dist/nl-NL.cjs +1 -0
- package/dist/nl-NL.cjs.map +1 -1
- package/dist/nl-NL.mjs +1 -0
- package/dist/nl-NL.mjs.map +1 -1
- package/dist/pl-PL.cjs +1 -0
- package/dist/pl-PL.cjs.map +1 -1
- package/dist/pl-PL.mjs +1 -0
- package/dist/pl-PL.mjs.map +1 -1
- package/dist/pt-BR.cjs +1 -0
- package/dist/pt-BR.cjs.map +1 -1
- package/dist/pt-BR.mjs +1 -0
- package/dist/pt-BR.mjs.map +1 -1
- package/dist/pt-PT.cjs +1 -0
- package/dist/pt-PT.cjs.map +1 -1
- package/dist/pt-PT.mjs +1 -0
- package/dist/pt-PT.mjs.map +1 -1
- package/dist/ro-RO.cjs +1 -0
- package/dist/ro-RO.cjs.map +1 -1
- package/dist/ro-RO.mjs +1 -0
- package/dist/ro-RO.mjs.map +1 -1
- package/dist/ru-RU.cjs +1 -0
- package/dist/ru-RU.cjs.map +1 -1
- package/dist/ru-RU.mjs +1 -0
- package/dist/ru-RU.mjs.map +1 -1
- package/dist/sk-SK.cjs +1 -0
- package/dist/sk-SK.cjs.map +1 -1
- package/dist/sk-SK.mjs +1 -0
- package/dist/sk-SK.mjs.map +1 -1
- package/dist/sl-SI.cjs +1 -0
- package/dist/sl-SI.cjs.map +1 -1
- package/dist/sl-SI.mjs +1 -0
- package/dist/sl-SI.mjs.map +1 -1
- package/dist/sr-SP.cjs +1 -0
- package/dist/sr-SP.cjs.map +1 -1
- package/dist/sr-SP.mjs +1 -0
- package/dist/sr-SP.mjs.map +1 -1
- package/dist/sv-SE.cjs +1 -0
- package/dist/sv-SE.cjs.map +1 -1
- package/dist/sv-SE.mjs +1 -0
- package/dist/sv-SE.mjs.map +1 -1
- package/dist/tr-TR.cjs +1 -0
- package/dist/tr-TR.cjs.map +1 -1
- package/dist/tr-TR.mjs +1 -0
- package/dist/tr-TR.mjs.map +1 -1
- package/dist/types.d.ts +143 -76
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.cjs +1 -0
- package/dist/uk-UA.cjs.map +1 -1
- package/dist/uk-UA.mjs +1 -0
- package/dist/uk-UA.mjs.map +1 -1
- package/dist/zh-CN.cjs +1 -0
- package/dist/zh-CN.cjs.map +1 -1
- package/dist/zh-CN.mjs +1 -0
- package/dist/zh-CN.mjs.map +1 -1
- package/dist/zh-TW.cjs +1 -0
- package/dist/zh-TW.cjs.map +1 -1
- package/dist/zh-TW.mjs +1 -0
- package/dist/zh-TW.mjs.map +1 -1
- package/icons/Icon.cjs +12 -12
- package/icons/Icon.css +9 -9
- package/icons/Icon.mjs +12 -12
- package/icons/Skeleton.cjs +2 -2
- package/icons/Skeleton.cjs.map +1 -1
- package/icons/Skeleton.css +6 -6
- package/icons/Skeleton.mjs +2 -2
- package/icons/Skeleton.mjs.map +1 -1
- package/icons/runtime.cjs +16 -3
- package/icons/runtime.cjs.map +1 -1
- package/icons/runtime.mjs +16 -3
- package/icons/runtime.mjs.map +1 -1
- package/package.json +21 -21
- package/src/Accordion.tsx +1 -1
- package/src/ActionBar.tsx +2 -2
- package/src/ActionButton.tsx +1 -1
- package/src/Breadcrumbs.tsx +2 -2
- package/src/Button.tsx +2 -2
- package/src/Calendar.tsx +1 -1
- package/src/Card.tsx +1 -1
- package/src/CardView.tsx +1 -1
- package/src/Checkbox.tsx +2 -1
- package/src/CheckboxGroup.tsx +1 -1
- package/src/CoachMark.tsx +1 -1
- package/src/ColorArea.tsx +1 -1
- package/src/ColorField.tsx +1 -1
- package/src/ColorSlider.tsx +1 -1
- package/src/ColorSwatch.tsx +1 -1
- package/src/ColorWheel.tsx +2 -2
- package/src/ComboBox.tsx +4 -3
- package/src/ContextualHelp.tsx +81 -43
- package/src/CustomDialog.tsx +1 -1
- package/src/DateField.tsx +1 -1
- package/src/DatePicker.tsx +1 -1
- package/src/DateRangePicker.tsx +1 -1
- package/src/Dialog.tsx +1 -1
- package/src/Disclosure.tsx +2 -2
- package/src/Divider.tsx +1 -1
- package/src/DropZone.tsx +1 -1
- package/src/Field.tsx +6 -6
- package/src/Form.tsx +1 -1
- package/src/FullscreenDialog.tsx +1 -1
- package/src/Link.tsx +1 -1
- package/src/ListView.tsx +782 -0
- package/src/Menu.tsx +111 -29
- package/src/Meter.tsx +1 -1
- package/src/Modal.tsx +1 -1
- package/src/NumberField.tsx +1 -1
- package/src/Picker.tsx +75 -14
- package/src/Popover.tsx +2 -1
- package/src/ProgressBar.tsx +1 -1
- package/src/ProgressCircle.tsx +1 -1
- package/src/Radio.tsx +1 -1
- package/src/RadioGroup.tsx +1 -1
- package/src/RangeCalendar.tsx +1 -1
- package/src/SearchField.tsx +1 -1
- package/src/SelectBoxGroup.tsx +1 -1
- package/src/Slider.tsx +1 -1
- package/src/Switch.tsx +1 -1
- package/src/TableView.tsx +37 -19
- package/src/Tabs.tsx +4 -4
- package/src/TabsPicker.tsx +2 -2
- package/src/TagGroup.tsx +2 -2
- package/src/TextField.tsx +1 -1
- package/src/TimeField.tsx +1 -1
- package/src/Toast.tsx +3 -3
- package/src/ToggleButton.tsx +1 -1
- package/src/ToggleButtonGroup.tsx +1 -1
- package/src/Tooltip.tsx +1 -1
- package/src/TreeView.tsx +53 -12
- package/src/index.ts +6 -3
- package/style/__tests__/mergeStyles.test.ts +68 -0
- package/style/__tests__/style-macro.test.js +50 -30
- package/style/dist/style-macro.cjs +65 -14
- package/style/dist/style-macro.cjs.map +1 -1
- package/style/dist/style-macro.mjs +65 -14
- package/style/dist/style-macro.mjs.map +1 -1
- package/style/runtime.ts +21 -5
- package/style/style-macro.ts +81 -16
- package/style/__tests__/mergeStyles.test.js +0 -32
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { CSSProperties, ReactNode, Context, RefAttributes, ForwardRefExoticComponent, JSX, HTMLAttributeReferrerPolicy, ComponentType, FunctionComponent, SVGProps, RefObject, ReactElement, FormEvent, FormHTMLAttributes } from "react";
|
|
2
|
-
import { AriaLabelingProps, DOMProps, DOMRefValue, GlobalDOMAttributes, SpectrumLabelableProps, FocusableRefValue, Key, LinkDOMProps, LoadingState, HelpTextProps, Orientation, ValueBase, AsyncLoadable, LabelPosition, InputDOMProps, RangeValue, LabelableProps } from "@react-types/shared";
|
|
3
|
-
import { ContextValue, SlotProps, ProgressBarProps as _ProgressBarProps1, FormProps as _FormProps1, LinkProps as _LinkProps1, ButtonProps as _ButtonProps1, DisclosurePanelProps as _DisclosurePanelProps1, DisclosureProps as _DisclosureProps1, RenderProps, CheckboxProps as _CheckboxProps1, SeparatorProps, PopoverProps as _PopoverProps1, DialogProps as _DialogProps1, MenuItemProps as _MenuItemProps1, MenuProps as _MenuProps1, MenuSectionProps as _MenuSectionProps1, MenuTriggerProps as _MenuTriggerProps1, SubmenuTriggerProps as _SubmenuTriggerProps1, BreadcrumbProps as _BreadcrumbProps1, BreadcrumbsProps as _BreadcrumbsProps1, DialogTriggerProps as _DialogTriggerProps1, CalendarProps as _CalendarProps1, DateValue, GridListItemProps, GridListProps, CheckboxGroupProps as _CheckboxGroupProps1, ColorAreaProps as _ColorAreaProps1, ColorFieldProps as _ColorFieldProps1, InputProps, ColorSliderProps as _ColorSliderProps1, ColorSwatchProps as _ColorSwatchProps1, Color, ColorWheelProps as _ColorWheelProps1, ComboBoxProps as _ComboBoxProps1, ListBoxItemProps, ListBoxProps, SectionProps, DateFieldProps as _DateFieldProps1, DateRangePickerProps as _DateRangePickerProps1, DropZoneProps as _DropZoneProps1, MeterProps as _MeterProps1, NumberFieldProps as _NumberFieldProps1, SelectProps, RadioProps as _RadioProps1, RadioGroupProps as _RadioGroupProps1, RangeCalendarProps as _RangeCalendarProps2, SliderProps as _SliderProps1, SearchFieldProps as _SearchFieldProps1, SwitchProps as _SwitchProps1,
|
|
2
|
+
import { AriaLabelingProps, DOMProps, DOMRefValue, GlobalDOMAttributes, SpectrumLabelableProps, FocusableRefValue, Key, LinkDOMProps, LoadingState, HelpTextProps, Orientation, ValueBase, AsyncLoadable, SingleSelection, LabelPosition, InputDOMProps, RangeValue, LabelableProps } from "@react-types/shared";
|
|
3
|
+
import { ContextValue, SlotProps, ProgressBarProps as _ProgressBarProps1, FormProps as _FormProps1, LinkProps as _LinkProps1, ButtonProps as _ButtonProps1, DisclosurePanelProps as _DisclosurePanelProps1, DisclosureProps as _DisclosureProps1, RenderProps, CheckboxProps as _CheckboxProps1, SeparatorProps, PopoverProps as _PopoverProps1, DialogProps as _DialogProps1, MenuItemProps as _MenuItemProps1, MenuProps as _MenuProps1, MenuSectionProps as _MenuSectionProps1, MenuTriggerProps as _MenuTriggerProps1, SubmenuTriggerProps as _SubmenuTriggerProps1, BreadcrumbProps as _BreadcrumbProps1, BreadcrumbsProps as _BreadcrumbsProps1, DialogTriggerProps as _DialogTriggerProps1, CalendarProps as _CalendarProps1, DateValue, GridListItemProps, GridListProps, CheckboxGroupProps as _CheckboxGroupProps1, ColorAreaProps as _ColorAreaProps1, ColorFieldProps as _ColorFieldProps1, InputProps, ColorSliderProps as _ColorSliderProps1, ColorSwatchProps as _ColorSwatchProps1, Color, ColorWheelProps as _ColorWheelProps1, ComboBoxProps as _ComboBoxProps1, ListBoxItemProps, ListBoxProps, SectionProps, DateFieldProps as _DateFieldProps1, DateRangePickerProps as _DateRangePickerProps1, DropZoneProps as _DropZoneProps1, Key as _Key1, MeterProps as _MeterProps1, NumberFieldProps as _NumberFieldProps1, SelectProps, RadioProps as _RadioProps1, RadioGroupProps as _RadioGroupProps1, RangeCalendarProps as _RangeCalendarProps2, SliderProps as _SliderProps1, SearchFieldProps as _SearchFieldProps1, SwitchProps as _SwitchProps1, CellProps as _CellProps1, ColumnProps as _ColumnProps1, RowProps as _RowProps1, TableBodyProps as _TableBodyProps1, TableHeaderProps as _TableHeaderProps1, TableProps, TabListProps as _TabListProps1, TabPanelProps as _TabPanelProps1, TabProps as _TabProps1, TabsProps as _TabsProps1, TagGroupProps as _TagGroupProps1, TagProps as _TagProps1, TagListProps, TextFieldProps as _TextFieldProps1, TimeFieldProps as _TimeFieldProps1, TimeValue, ToastOptions as _ToastOptions1, ToastRegionProps, ToggleButtonGroupProps as _ToggleButtonGroupProps1, ToggleButtonProps as _ToggleButtonProps1, TooltipProps as _TooltipProps1, TooltipTriggerComponentProps, TreeItemProps, TreeProps, TreeItemContentProps, TreeLoadMoreItemProps, DatePickerProps as _DatePickerProps1 } from "react-aria-components";
|
|
4
4
|
import { ColorScheme, Router } from "@react-types/provider";
|
|
5
5
|
import { Placement } from "@react-types/overlays";
|
|
6
6
|
import { TextFieldRef } from "@react-types/textfield";
|
|
@@ -314,7 +314,7 @@ interface ProgressCircleStyleProps {
|
|
|
314
314
|
isIndeterminate?: boolean;
|
|
315
315
|
}
|
|
316
316
|
export const ProgressCircleContext: Context<ContextValue<Partial<ProgressCircleProps>, DOMRefValue<HTMLDivElement>>>;
|
|
317
|
-
export interface ProgressCircleProps extends Omit<_ProgressBarProps1, 'children' | 'style' | 'valueLabel' | 'formatOptions' | 'label' | 'className' | keyof GlobalDOMAttributes>, ProgressCircleStyleProps, UnsafeStyles {
|
|
317
|
+
export interface ProgressCircleProps extends Omit<_ProgressBarProps1, 'children' | 'style' | 'valueLabel' | 'formatOptions' | 'label' | 'className' | 'render' | keyof GlobalDOMAttributes>, ProgressCircleStyleProps, UnsafeStyles {
|
|
318
318
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
319
319
|
styles?: StylesPropWithHeight;
|
|
320
320
|
}
|
|
@@ -361,7 +361,7 @@ interface FormStyleProps extends Omit<SpectrumLabelableProps, 'label' | 'context
|
|
|
361
361
|
/** Whether the Form elements are rendered with their emphasized style. */
|
|
362
362
|
isEmphasized?: boolean;
|
|
363
363
|
}
|
|
364
|
-
export interface FormProps extends FormStyleProps, Omit<_FormProps1, 'className' | 'style' | 'children' | keyof GlobalDOMAttributes>, StyleProps {
|
|
364
|
+
export interface FormProps extends FormStyleProps, Omit<_FormProps1, 'className' | 'style' | 'render' | 'children' | keyof GlobalDOMAttributes>, StyleProps {
|
|
365
365
|
children: ReactNode;
|
|
366
366
|
}
|
|
367
367
|
/**
|
|
@@ -390,11 +390,11 @@ interface ButtonStyleProps {
|
|
|
390
390
|
/** The static color style to apply. Useful when the Button appears over a color background. */
|
|
391
391
|
staticColor?: 'white' | 'black' | 'auto';
|
|
392
392
|
}
|
|
393
|
-
export interface ButtonProps extends Omit<_ButtonProps1, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps, ButtonStyleProps {
|
|
393
|
+
export interface ButtonProps extends Omit<_ButtonProps1, 'className' | 'style' | 'render' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps, ButtonStyleProps {
|
|
394
394
|
/** The content to display in the Button. */
|
|
395
395
|
children: ReactNode;
|
|
396
396
|
}
|
|
397
|
-
export interface LinkButtonProps extends Omit<_LinkProps1, 'className' | 'style' | 'children' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps, ButtonStyleProps {
|
|
397
|
+
export interface LinkButtonProps extends Omit<_LinkProps1, 'className' | 'style' | 'render' | 'children' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps, ButtonStyleProps {
|
|
398
398
|
/** The content to display in the Button. */
|
|
399
399
|
children: ReactNode;
|
|
400
400
|
}
|
|
@@ -422,7 +422,7 @@ interface ActionButtonStyleProps {
|
|
|
422
422
|
/** Whether the button should be displayed with a [quiet style](https://spectrum.adobe.com/page/action-button/#Quiet). */
|
|
423
423
|
isQuiet?: boolean;
|
|
424
424
|
}
|
|
425
|
-
export interface ActionButtonProps extends Omit<_ButtonProps1, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps, ActionButtonStyleProps {
|
|
425
|
+
export interface ActionButtonProps extends Omit<_ButtonProps1, 'className' | 'style' | 'render' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps, ActionButtonStyleProps {
|
|
426
426
|
/** The content to display in the ActionButton. */
|
|
427
427
|
children: ReactNode;
|
|
428
428
|
}
|
|
@@ -432,7 +432,7 @@ export const ActionButtonContext: Context<ContextValue<Partial<ActionButtonProps
|
|
|
432
432
|
* They're used for similar, task-based options within a workflow, and are ideal for interfaces where buttons aren't meant to draw a lot of attention.
|
|
433
433
|
*/
|
|
434
434
|
export const ActionButton: ForwardRefExoticComponent<ActionButtonProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
435
|
-
export interface DisclosureProps extends Omit<_DisclosureProps1, 'className' | 'style' | 'children' | keyof GlobalDOMAttributes>, StyleProps {
|
|
435
|
+
export interface DisclosureProps extends Omit<_DisclosureProps1, 'className' | 'style' | 'render' | 'children' | keyof GlobalDOMAttributes>, StyleProps {
|
|
436
436
|
/**
|
|
437
437
|
* The size of the disclosure.
|
|
438
438
|
* @default 'M'
|
|
@@ -473,7 +473,7 @@ export const DisclosureHeader: (props: DisclosureHeaderProps & React.RefAttribut
|
|
|
473
473
|
* A disclosure title consisting of a heading and a trigger button to expand/collapse the panel.
|
|
474
474
|
*/
|
|
475
475
|
export const DisclosureTitle: React.ForwardRefExoticComponent<DisclosureTitleProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
476
|
-
export interface DisclosurePanelProps extends Omit<_DisclosurePanelProps1, 'className' | 'style' | 'children'>, UnsafeStyles, DOMProps, AriaLabelingProps {
|
|
476
|
+
export interface DisclosurePanelProps extends Omit<_DisclosurePanelProps1, 'className' | 'style' | 'render' | 'children'>, UnsafeStyles, DOMProps, AriaLabelingProps {
|
|
477
477
|
children: React.ReactNode;
|
|
478
478
|
}
|
|
479
479
|
/**
|
|
@@ -546,7 +546,7 @@ export interface AccordionItemRenderProps {
|
|
|
546
546
|
*/
|
|
547
547
|
state: AccordionItemState;
|
|
548
548
|
}
|
|
549
|
-
export interface AccordionItemProps extends Omit<RenderProps<AccordionItemRenderProps>, 'className' | 'style'>, SlotProps, StyleProps {
|
|
549
|
+
export interface AccordionItemProps extends Omit<RenderProps<AccordionItemRenderProps>, 'className' | 'style' | 'render'>, SlotProps, StyleProps {
|
|
550
550
|
/**
|
|
551
551
|
* The size of the accordion item.
|
|
552
552
|
* @default 'M'
|
|
@@ -651,7 +651,7 @@ interface CheckboxStyleProps {
|
|
|
651
651
|
/** Whether the Checkbox should be displayed with an emphasized style. */
|
|
652
652
|
isEmphasized?: boolean;
|
|
653
653
|
}
|
|
654
|
-
export interface CheckboxProps extends Omit<_CheckboxProps1, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps, CheckboxStyleProps {
|
|
654
|
+
export interface CheckboxProps extends Omit<_CheckboxProps1, 'className' | 'style' | 'render' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps, CheckboxStyleProps {
|
|
655
655
|
/** The label for the element. */
|
|
656
656
|
children?: ReactNode;
|
|
657
657
|
}
|
|
@@ -675,7 +675,7 @@ interface DividerSpectrumProps {
|
|
|
675
675
|
/** The static color style to apply. Useful when the Divider appears over a color background. */
|
|
676
676
|
staticColor?: 'white' | 'black' | 'auto';
|
|
677
677
|
}
|
|
678
|
-
export interface DividerProps extends DividerSpectrumProps, Omit<SeparatorProps, 'className' | 'style' | 'elementType' | keyof GlobalDOMAttributes>, StyleProps {
|
|
678
|
+
export interface DividerProps extends DividerSpectrumProps, Omit<SeparatorProps, 'className' | 'style' | 'render' | 'elementType' | keyof GlobalDOMAttributes>, StyleProps {
|
|
679
679
|
}
|
|
680
680
|
export const DividerContext: Context<ContextValue<Partial<DividerProps>, DOMRefValue<HTMLElement>>>;
|
|
681
681
|
/**
|
|
@@ -683,7 +683,7 @@ export const DividerContext: Context<ContextValue<Partial<DividerProps>, DOMRefV
|
|
|
683
683
|
* They can also be used to establish rhythm and hierarchy.
|
|
684
684
|
*/
|
|
685
685
|
export const Divider: ForwardRefExoticComponent<DividerProps & RefAttributes<DOMRefValue<HTMLElement>>>;
|
|
686
|
-
export interface PopoverProps extends UnsafeStyles, Omit<_PopoverProps1, 'arrowSize' | 'isNonModal' | 'arrowBoundaryOffset' | 'isKeyboardDismissDisabled' | 'shouldCloseOnInteractOutside' | 'shouldUpdatePosition' | 'style' | 'className' | keyof GlobalDOMAttributes> {
|
|
686
|
+
export interface PopoverProps extends UnsafeStyles, Omit<_PopoverProps1, 'arrowSize' | 'isNonModal' | 'arrowBoundaryOffset' | 'isKeyboardDismissDisabled' | 'shouldCloseOnInteractOutside' | 'shouldUpdatePosition' | 'style' | 'className' | 'render' | keyof GlobalDOMAttributes> {
|
|
687
687
|
/**
|
|
688
688
|
* The styles of the popover.
|
|
689
689
|
*/
|
|
@@ -700,7 +700,7 @@ export interface PopoverProps extends UnsafeStyles, Omit<_PopoverProps1, 'arrowS
|
|
|
700
700
|
size?: 'S' | 'M' | 'L';
|
|
701
701
|
}
|
|
702
702
|
type PopoverStylesProp = StyleString<((typeof widthProperties)[number] | (typeof heightProperties)[number])>;
|
|
703
|
-
interface PopoverDialogProps extends Pick<PopoverProps, 'size' | 'hideArrow' | 'placement' | 'shouldFlip' | 'containerPadding' | 'offset' | 'crossOffset' | 'triggerRef' | 'isOpen' | 'onOpenChange'>, Omit<_DialogProps1, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
703
|
+
interface PopoverDialogProps extends Pick<PopoverProps, 'size' | 'hideArrow' | 'placement' | 'shouldFlip' | 'containerPadding' | 'offset' | 'crossOffset' | 'triggerRef' | 'isOpen' | 'onOpenChange'>, Omit<_DialogProps1, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
704
704
|
/**
|
|
705
705
|
* The children of the popover.
|
|
706
706
|
*/
|
|
@@ -737,7 +737,7 @@ export interface MenuTriggerProps extends _MenuTriggerProps1 {
|
|
|
737
737
|
*/
|
|
738
738
|
shouldFlip?: boolean;
|
|
739
739
|
}
|
|
740
|
-
export interface MenuProps<T> extends Omit<_MenuProps1<T>, 'children' | 'style' | 'className' | 'dependencies' | 'renderEmptyState' | keyof GlobalDOMAttributes>, StyleProps {
|
|
740
|
+
export interface MenuProps<T> extends Omit<_MenuProps1<T>, 'children' | 'style' | 'className' | 'render' | 'dependencies' | 'renderEmptyState' | keyof GlobalDOMAttributes>, StyleProps {
|
|
741
741
|
/**
|
|
742
742
|
* The size of the Menu.
|
|
743
743
|
*
|
|
@@ -756,14 +756,10 @@ export const MenuContext: Context<ContextValue<Partial<MenuProps<any>>, DOMRefVa
|
|
|
756
756
|
* Menus display a list of actions or options that a user can choose.
|
|
757
757
|
*/
|
|
758
758
|
export const Menu: <T extends object>(props: MenuProps<T> & RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
|
|
759
|
-
export interface MenuSectionProps<T extends object> extends Omit<_MenuSectionProps1<T>, 'style' | 'className' | keyof GlobalDOMAttributes> {
|
|
760
|
-
/**
|
|
761
|
-
* The children of the menu section.
|
|
762
|
-
*/
|
|
763
|
-
children?: ReactNode;
|
|
759
|
+
export interface MenuSectionProps<T extends object> extends Omit<_MenuSectionProps1<T>, 'style' | 'className' | 'render' | keyof GlobalDOMAttributes> {
|
|
764
760
|
}
|
|
765
761
|
export function MenuSection<T extends object>(props: MenuSectionProps<T>): ReactNode;
|
|
766
|
-
export interface MenuItemProps extends Omit<_MenuItemProps1, 'children' | 'style' | 'className' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
762
|
+
export interface MenuItemProps extends Omit<_MenuItemProps1, 'children' | 'style' | 'className' | 'render' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
767
763
|
/**
|
|
768
764
|
* The contents of the item.
|
|
769
765
|
*/
|
|
@@ -778,6 +774,18 @@ export function MenuTrigger(props: MenuTriggerProps): ReactNode;
|
|
|
778
774
|
export interface SubmenuTriggerProps extends Omit<_SubmenuTriggerProps1, 'delay'> {
|
|
779
775
|
}
|
|
780
776
|
export function SubmenuTrigger(props: SubmenuTriggerProps): JSX.Element;
|
|
777
|
+
export interface UnavailableMenuItemTriggerProps {
|
|
778
|
+
/**
|
|
779
|
+
* The contents of the UnavailableMenuItemTrigger. The first child should be a MenuItem and the second child be a ContextualHelpPopover.
|
|
780
|
+
*/
|
|
781
|
+
children: ReactElement[];
|
|
782
|
+
/**
|
|
783
|
+
* Whether the menu item is currently unavailable.
|
|
784
|
+
* @default false
|
|
785
|
+
*/
|
|
786
|
+
isUnavailable?: boolean;
|
|
787
|
+
}
|
|
788
|
+
export function UnavailableMenuItemTrigger(props: UnavailableMenuItemTriggerProps): JSX.Element;
|
|
781
789
|
export interface ActionMenuProps<T> extends Pick<MenuTriggerProps, 'isOpen' | 'defaultOpen' | 'onOpenChange' | 'align' | 'direction' | 'shouldFlip'>, Pick<MenuProps<T>, 'children' | 'items' | 'disabledKeys' | 'onAction'>, Pick<ActionButtonProps, 'isDisabled' | 'isQuiet' | 'autoFocus' | 'size'>, StyleProps, DOMProps, AriaLabelingProps {
|
|
782
790
|
/**
|
|
783
791
|
* The size of the Menu.
|
|
@@ -827,7 +835,7 @@ export const ButtonGroupContext: Context<ContextValue<Partial<ButtonGroupContext
|
|
|
827
835
|
* ButtonGroup handles overflow for a grouping of buttons whose actions are related to each other.
|
|
828
836
|
*/
|
|
829
837
|
export const ButtonGroup: ForwardRefExoticComponent<ButtonGroupProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
830
|
-
export interface DialogProps extends Omit<_DialogProps1, 'className' | 'style' | keyof GlobalDOMAttributes>, StyleProps {
|
|
838
|
+
export interface DialogProps extends Omit<_DialogProps1, 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps {
|
|
831
839
|
/**
|
|
832
840
|
* Whether the Dialog is dismissible.
|
|
833
841
|
*/
|
|
@@ -948,14 +956,14 @@ interface BreadcrumbsStyleProps {
|
|
|
948
956
|
/** Whether the breadcrumbs are disabled. */
|
|
949
957
|
isDisabled?: boolean;
|
|
950
958
|
}
|
|
951
|
-
export interface BreadcrumbsProps<T> extends Omit<_BreadcrumbsProps1<T>, 'children' | 'style' | 'className' | keyof GlobalDOMAttributes>, BreadcrumbsStyleProps, StyleProps {
|
|
959
|
+
export interface BreadcrumbsProps<T> extends Omit<_BreadcrumbsProps1<T>, 'children' | 'style' | 'className' | 'render' | keyof GlobalDOMAttributes>, BreadcrumbsStyleProps, StyleProps {
|
|
952
960
|
/** The children of the Breadcrumbs. */
|
|
953
961
|
children: ReactNode | ((item: T) => ReactNode);
|
|
954
962
|
}
|
|
955
963
|
export const BreadcrumbsContext: Context<ContextValue<Partial<BreadcrumbsProps<any>>, DOMRefValue<HTMLOListElement>>>;
|
|
956
964
|
/** Breadcrumbs show hierarchy and navigational context for a user's location within an application. */
|
|
957
965
|
export const Breadcrumbs: <T extends object>(props: BreadcrumbsProps<T> & RefAttributes<DOMRefValue<HTMLOListElement>>) => React.ReactElement | null;
|
|
958
|
-
export interface BreadcrumbProps extends Omit<_BreadcrumbProps1, 'children' | 'style' | 'className' | 'autoFocus' | 'onClick' | keyof GlobalDOMAttributes>, LinkDOMProps {
|
|
966
|
+
export interface BreadcrumbProps extends Omit<_BreadcrumbProps1, 'children' | 'style' | 'className' | 'render' | 'autoFocus' | 'onClick' | keyof GlobalDOMAttributes>, LinkDOMProps {
|
|
959
967
|
/** The children of the breadcrumb item. */
|
|
960
968
|
children: ReactNode;
|
|
961
969
|
}
|
|
@@ -969,7 +977,16 @@ export interface DialogTriggerProps extends _DialogTriggerProps1 {
|
|
|
969
977
|
* positioning of the Dialog.
|
|
970
978
|
*/
|
|
971
979
|
export function DialogTrigger(props: DialogTriggerProps): ReactNode;
|
|
972
|
-
interface
|
|
980
|
+
export interface ContextualHelpPopoverProps extends PopoverDialogProps {
|
|
981
|
+
/**
|
|
982
|
+
* The children of the contextual help popover. Supports Heading, Content, and Footer elements. */
|
|
983
|
+
children: ReactNode;
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* A popover with contextual help styling that supports Heading, Content, and Footer.
|
|
987
|
+
*/
|
|
988
|
+
export function ContextualHelpPopover(props: ContextualHelpPopoverProps): JSX.Element;
|
|
989
|
+
export interface ContextualHelpStyleProps {
|
|
973
990
|
/**
|
|
974
991
|
* Indicates whether contents are informative or provides helpful guidance.
|
|
975
992
|
*
|
|
@@ -977,7 +994,7 @@ interface ContextualHelpStyleProps {
|
|
|
977
994
|
*/
|
|
978
995
|
variant?: 'info' | 'help';
|
|
979
996
|
}
|
|
980
|
-
interface ContextualHelpProps extends Pick<DialogTriggerProps, 'isOpen' | 'defaultOpen' | 'onOpenChange'>, Pick<PopoverDialogProps, 'shouldFlip' | 'offset' | 'crossOffset' | 'placement' | 'containerPadding'>, ContextualHelpStyleProps, StyleProps, DOMProps, AriaLabelingProps {
|
|
997
|
+
export interface ContextualHelpProps extends Pick<DialogTriggerProps, 'isOpen' | 'defaultOpen' | 'onOpenChange'>, Pick<PopoverDialogProps, 'shouldFlip' | 'offset' | 'crossOffset' | 'placement' | 'containerPadding'>, ContextualHelpStyleProps, StyleProps, DOMProps, AriaLabelingProps {
|
|
981
998
|
/**
|
|
982
999
|
* The placement of the popover with respect to the action button.
|
|
983
1000
|
* @default 'bottom start'
|
|
@@ -997,7 +1014,7 @@ export const ContextualHelpContext: Context<ContextValue<Partial<ContextualHelpP
|
|
|
997
1014
|
* Contextual help shows a user extra information about the state of an adjacent component, or a total view.
|
|
998
1015
|
*/
|
|
999
1016
|
export const ContextualHelp: ForwardRefExoticComponent<ContextualHelpProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
1000
|
-
export interface CalendarProps<T extends DateValue> extends Omit<_CalendarProps1<T>, 'visibleDuration' | 'style' | 'className' | 'styles' | 'children' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1017
|
+
export interface CalendarProps<T extends DateValue> extends Omit<_CalendarProps1<T>, 'visibleDuration' | 'style' | 'className' | 'render' | 'styles' | 'children' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1001
1018
|
/**
|
|
1002
1019
|
* The error message to display when the calendar is invalid.
|
|
1003
1020
|
*/
|
|
@@ -1017,7 +1034,7 @@ interface CardRenderProps {
|
|
|
1017
1034
|
/** The size of the Card. */
|
|
1018
1035
|
size: 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
1019
1036
|
}
|
|
1020
|
-
export interface CardProps extends Omit<GridListItemProps, 'className' | 'style' | 'children' | 'onHoverChange' | 'onHoverStart' | 'onHoverEnd' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1037
|
+
export interface CardProps extends Omit<GridListItemProps, 'className' | 'style' | 'render' | 'children' | 'onHoverChange' | 'onHoverStart' | 'onHoverEnd' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1021
1038
|
/** The children of the Card. */
|
|
1022
1039
|
children: ReactNode | ((renderProps: CardRenderProps) => ReactNode);
|
|
1023
1040
|
/**
|
|
@@ -1059,7 +1076,7 @@ export interface ProductCardProps extends Omit<CardProps, 'density' | 'variant'>
|
|
|
1059
1076
|
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
1060
1077
|
}
|
|
1061
1078
|
export const ProductCard: ForwardRefExoticComponent<ProductCardProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1062
|
-
export interface CardViewProps<T> extends Omit<GridListProps<T>, 'layout' | 'keyboardNavigationBehavior' | 'selectionBehavior' | 'className' | 'style' | 'isLoading' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
1079
|
+
export interface CardViewProps<T> extends Omit<GridListProps<T>, 'layout' | 'keyboardNavigationBehavior' | 'selectionBehavior' | 'className' | 'style' | 'render' | 'isLoading' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
1063
1080
|
/**
|
|
1064
1081
|
* The layout of the cards.
|
|
1065
1082
|
* @default 'grid'
|
|
@@ -1099,7 +1116,7 @@ export const CardViewContext: Context<ContextValue<Partial<CardViewProps<any>>,
|
|
|
1099
1116
|
* A CardView displays a group of related objects, with support for selection and bulk actions.
|
|
1100
1117
|
*/
|
|
1101
1118
|
export const CardView: <T extends object>(props: CardViewProps<T> & RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
|
|
1102
|
-
export interface CheckboxGroupProps extends Omit<_CheckboxGroupProps1, 'className' | 'style' | 'children' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1119
|
+
export interface CheckboxGroupProps extends Omit<_CheckboxGroupProps1, 'className' | 'style' | 'render' | 'children' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1103
1120
|
/**
|
|
1104
1121
|
* The size of the Checkboxes in the CheckboxGroup.
|
|
1105
1122
|
*
|
|
@@ -1127,14 +1144,14 @@ export const CheckboxGroupContext: Context<ContextValue<Partial<CheckboxGroupPro
|
|
|
1127
1144
|
* A CheckboxGroup allows users to select one or more items from a list of choices.
|
|
1128
1145
|
*/
|
|
1129
1146
|
export const CheckboxGroup: ForwardRefExoticComponent<CheckboxGroupProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1130
|
-
export interface ColorAreaProps extends Omit<_ColorAreaProps1, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1147
|
+
export interface ColorAreaProps extends Omit<_ColorAreaProps1, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1131
1148
|
}
|
|
1132
1149
|
export const ColorAreaContext: Context<ContextValue<Partial<ColorAreaProps>, DOMRefValue<HTMLDivElement>>>;
|
|
1133
1150
|
/**
|
|
1134
1151
|
* A ColorArea allows users to adjust two channels of an RGB, HSL or HSB color value against a two-dimensional gradient background.
|
|
1135
1152
|
*/
|
|
1136
1153
|
export const ColorArea: ForwardRefExoticComponent<ColorAreaProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1137
|
-
export interface ColorFieldProps extends Omit<_ColorFieldProps1, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<InputProps, 'placeholder'> {
|
|
1154
|
+
export interface ColorFieldProps extends Omit<_ColorFieldProps1, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<InputProps, 'placeholder'> {
|
|
1138
1155
|
/**
|
|
1139
1156
|
* The size of the color field.
|
|
1140
1157
|
*
|
|
@@ -1147,7 +1164,7 @@ export const ColorFieldContext: Context<ContextValue<Partial<ColorFieldProps>, T
|
|
|
1147
1164
|
* A color field allows users to edit a hex color or individual color channel value.
|
|
1148
1165
|
*/
|
|
1149
1166
|
export const ColorField: ForwardRefExoticComponent<ColorFieldProps & RefAttributes<TextFieldRef<HTMLInputElement>>>;
|
|
1150
|
-
export interface ColorSliderProps extends Omit<_ColorSliderProps1, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, Pick<SpectrumLabelableProps, 'contextualHelp'>, StyleProps {
|
|
1167
|
+
export interface ColorSliderProps extends Omit<_ColorSliderProps1, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, Pick<SpectrumLabelableProps, 'contextualHelp'>, StyleProps {
|
|
1151
1168
|
label?: string;
|
|
1152
1169
|
}
|
|
1153
1170
|
export const ColorSliderContext: Context<ContextValue<Partial<ColorSliderProps>, DOMRefValue<HTMLDivElement>>>;
|
|
@@ -1155,7 +1172,7 @@ export const ColorSliderContext: Context<ContextValue<Partial<ColorSliderProps>,
|
|
|
1155
1172
|
* A ColorSlider allows users to adjust an individual channel of a color value.
|
|
1156
1173
|
*/
|
|
1157
1174
|
export const ColorSlider: ForwardRefExoticComponent<ColorSliderProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1158
|
-
export interface ColorSwatchProps extends Omit<_ColorSwatchProps1, 'className' | 'style' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
1175
|
+
export interface ColorSwatchProps extends Omit<_ColorSwatchProps1, 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
1159
1176
|
/**
|
|
1160
1177
|
* The size of the ColorSwatch.
|
|
1161
1178
|
* @default 'M'
|
|
@@ -1198,7 +1215,7 @@ export const ColorSwatchPickerContext: Context<ContextValue<Partial<ColorSwatchP
|
|
|
1198
1215
|
* A ColorSwatchPicker displays a list of color swatches and allows a user to select one of them.
|
|
1199
1216
|
*/
|
|
1200
1217
|
export const ColorSwatchPicker: ForwardRefExoticComponent<ColorSwatchPickerProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1201
|
-
export interface ColorWheelProps extends Omit<_ColorWheelProps1, 'children' | 'className' | 'style' | 'outerRadius' | 'innerRadius' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1218
|
+
export interface ColorWheelProps extends Omit<_ColorWheelProps1, 'children' | 'className' | 'style' | 'render' | 'outerRadius' | 'innerRadius' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1202
1219
|
/**
|
|
1203
1220
|
* @default 192
|
|
1204
1221
|
*/
|
|
@@ -1217,7 +1234,7 @@ interface ComboboxStyleProps {
|
|
|
1217
1234
|
*/
|
|
1218
1235
|
size?: 'S' | 'M' | 'L' | 'XL';
|
|
1219
1236
|
}
|
|
1220
|
-
export interface ComboBoxProps<T extends object> extends Omit<_ComboBoxProps1<T>, 'children' | 'style' | 'className' | 'defaultFilter' | 'allowsEmptyCollection' | keyof GlobalDOMAttributes>, ComboboxStyleProps, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<ListBoxProps<T>, 'items' | 'dependencies'>, Pick<_PopoverProps1, 'shouldFlip'>, Pick<AsyncLoadable, 'onLoadMore'>, Pick<InputProps, 'placeholder'> {
|
|
1237
|
+
export interface ComboBoxProps<T extends object> extends Omit<_ComboBoxProps1<T>, 'children' | 'style' | 'className' | 'render' | 'defaultFilter' | 'allowsEmptyCollection' | 'selectionMode' | 'selectedKey' | 'defaultSelectedKey' | 'onSelectionChange' | 'value' | 'defaultValue' | 'onChange' | keyof GlobalDOMAttributes>, Omit<SingleSelection, 'disallowEmptySelection'>, ComboboxStyleProps, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<ListBoxProps<T>, 'items' | 'dependencies'>, Pick<_PopoverProps1, 'shouldFlip'>, Pick<AsyncLoadable, 'onLoadMore'>, Pick<InputProps, 'placeholder'> {
|
|
1221
1238
|
/** The contents of the collection. */
|
|
1222
1239
|
children: ReactNode | ((item: T) => ReactNode);
|
|
1223
1240
|
/**
|
|
@@ -1242,14 +1259,14 @@ export const ComboBoxContext: Context<ContextValue<Partial<ComboBoxProps<any>>,
|
|
|
1242
1259
|
* ComboBox allow users to choose a single option from a collapsible list of options when space is limited.
|
|
1243
1260
|
*/
|
|
1244
1261
|
export const ComboBox: <T extends object>(props: ComboBoxProps<T> & RefAttributes<TextFieldRef<HTMLInputElement>>) => React.ReactElement | null;
|
|
1245
|
-
export interface ComboBoxItemProps extends Omit<ListBoxItemProps, 'children' | 'style' | 'className' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1262
|
+
export interface ComboBoxItemProps extends Omit<ListBoxItemProps, 'children' | 'style' | 'className' | 'render' | 'onClick' | 'onKeyDown' | 'onKeyUp' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1246
1263
|
children: ReactNode;
|
|
1247
1264
|
}
|
|
1248
1265
|
export function ComboBoxItem(props: ComboBoxItemProps): ReactNode;
|
|
1249
1266
|
export interface ComboBoxSectionProps<T extends object> extends Omit<SectionProps<T>, keyof GlobalDOMAttributes> {
|
|
1250
1267
|
}
|
|
1251
1268
|
export function ComboBoxSection<T extends object>(props: ComboBoxSectionProps<T>): ReactNode;
|
|
1252
|
-
export interface DateFieldProps<T extends DateValue> extends Omit<_DateFieldProps1<T>, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1269
|
+
export interface DateFieldProps<T extends DateValue> extends Omit<_DateFieldProps1<T>, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1253
1270
|
/**
|
|
1254
1271
|
* The size of the DateField.
|
|
1255
1272
|
*
|
|
@@ -1263,7 +1280,7 @@ export const DateFieldContext: Context<ContextValue<Partial<DateFieldProps<any>>
|
|
|
1263
1280
|
* Each part of a date value is displayed in an individually editable segment.
|
|
1264
1281
|
*/
|
|
1265
1282
|
export const DateField: <T extends DateValue>(props: DateFieldProps<T> & RefAttributes<HTMLDivElement>) => ReactElement | null;
|
|
1266
|
-
export interface DateRangePickerProps<T extends DateValue> extends Omit<_DateRangePickerProps1<T>, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, Pick<_RangeCalendarProps1<T>, 'createCalendar' | 'pageBehavior' | 'firstDayOfWeek' | 'isDateUnavailable'>, Pick<_PopoverProps1, 'shouldFlip'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1283
|
+
export interface DateRangePickerProps<T extends DateValue> extends Omit<_DateRangePickerProps1<T>, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, Pick<_RangeCalendarProps1<T>, 'createCalendar' | 'pageBehavior' | 'firstDayOfWeek' | 'isDateUnavailable'>, Pick<_PopoverProps1, 'shouldFlip'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1267
1284
|
/**
|
|
1268
1285
|
* The size of the DateField.
|
|
1269
1286
|
*
|
|
@@ -1282,7 +1299,7 @@ export const DateRangePickerContext: Context<ContextValue<Partial<DateRangePicke
|
|
|
1282
1299
|
* to enter or select a date and time range.
|
|
1283
1300
|
*/
|
|
1284
1301
|
export const DateRangePicker: <T extends DateValue>(props: DateRangePickerProps<T> & RefAttributes<HTMLDivElement>) => ReactElement | null;
|
|
1285
|
-
export interface CustomDialogProps extends Omit<_DialogProps1, 'className' | 'style' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1302
|
+
export interface CustomDialogProps extends Omit<_DialogProps1, 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1286
1303
|
/**
|
|
1287
1304
|
* The size of the Dialog.
|
|
1288
1305
|
*/
|
|
@@ -1303,7 +1320,7 @@ export interface CustomDialogProps extends Omit<_DialogProps1, 'className' | 'st
|
|
|
1303
1320
|
* A CustomDialog is a floating window with a custom layout.
|
|
1304
1321
|
*/
|
|
1305
1322
|
export const CustomDialog: ForwardRefExoticComponent<CustomDialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
|
|
1306
|
-
export interface FullscreenDialogProps extends Omit<_DialogProps1, 'className' | 'style' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1323
|
+
export interface FullscreenDialogProps extends Omit<_DialogProps1, 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1307
1324
|
/**
|
|
1308
1325
|
* The variant of fullscreen dialog to display.
|
|
1309
1326
|
* @default "fullscreen"
|
|
@@ -1361,7 +1378,7 @@ export const IllustratedMessageContext: Context<ContextValue<Partial<Illustrated
|
|
|
1361
1378
|
* for an empty state or an error page.
|
|
1362
1379
|
*/
|
|
1363
1380
|
export const IllustratedMessage: ForwardRefExoticComponent<S2SpectrumIllustratedMessageProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1364
|
-
export interface DropZoneProps extends Omit<_DropZoneProps1, 'className' | 'style' | 'children' | 'isDisabled' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | keyof GlobalDOMAttributes>, UnsafeStyles, DOMProps {
|
|
1381
|
+
export interface DropZoneProps extends Omit<_DropZoneProps1, 'className' | 'style' | 'render' | 'children' | 'isDisabled' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | keyof GlobalDOMAttributes>, UnsafeStyles, DOMProps {
|
|
1365
1382
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
1366
1383
|
styles?: StylesPropWithHeight;
|
|
1367
1384
|
/** The content to display in the drop zone. */
|
|
@@ -1426,7 +1443,7 @@ interface LinkStyleProps {
|
|
|
1426
1443
|
/** Whether the link should be displayed with a quiet style. */
|
|
1427
1444
|
isQuiet?: boolean;
|
|
1428
1445
|
}
|
|
1429
|
-
export interface LinkProps extends Omit<_LinkProps1, 'isDisabled' | 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps, LinkStyleProps {
|
|
1446
|
+
export interface LinkProps extends Omit<_LinkProps1, 'isDisabled' | 'className' | 'style' | 'render' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps, LinkStyleProps {
|
|
1430
1447
|
children: ReactNode;
|
|
1431
1448
|
}
|
|
1432
1449
|
export const LinkContext: Context<ContextValue<Partial<LinkProps>, FocusableRefValue<HTMLAnchorElement, HTMLAnchorElement>>>;
|
|
@@ -1435,6 +1452,48 @@ export const LinkContext: Context<ContextValue<Partial<LinkProps>, FocusableRefV
|
|
|
1435
1452
|
* They can be presented inline inside a paragraph or as standalone text.
|
|
1436
1453
|
*/
|
|
1437
1454
|
export const Link: ForwardRefExoticComponent<LinkProps & RefAttributes<FocusableRefValue<HTMLAnchorElement, HTMLAnchorElement>>>;
|
|
1455
|
+
export interface ListViewProps<T> extends Omit<GridListProps<T>, 'className' | 'style' | 'children' | 'selectionBehavior' | 'dragAndDropHooks' | 'layout' | 'render' | 'keyboardNavigationBehavior' | keyof GlobalDOMAttributes>, DOMProps, UnsafeStyles, ListViewStylesProps, SlotProps {
|
|
1456
|
+
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
1457
|
+
styles?: StylesPropWithHeight;
|
|
1458
|
+
/** The current loading state of the ListView. */
|
|
1459
|
+
loadingState?: LoadingState;
|
|
1460
|
+
/** Handler that is called when more items should be loaded, e.g. while scrolling near the bottom. */
|
|
1461
|
+
onLoadMore?: () => void;
|
|
1462
|
+
/** The children of the ListView. */
|
|
1463
|
+
children: ReactNode | ((item: T) => ReactNode);
|
|
1464
|
+
/** Provides the ActionBar to display when items are selected in the ListView. */
|
|
1465
|
+
renderActionBar?: (selectedKeys: 'all' | Set<_Key1>) => ReactElement;
|
|
1466
|
+
/** Hides the default link out icons on items that open links in a new tab. */
|
|
1467
|
+
hideLinkOutIcon?: boolean;
|
|
1468
|
+
}
|
|
1469
|
+
interface ListViewStylesProps {
|
|
1470
|
+
/** Whether the ListView should be displayed with a quiet style. */
|
|
1471
|
+
isQuiet?: boolean;
|
|
1472
|
+
/**
|
|
1473
|
+
* How selection should be displayed.
|
|
1474
|
+
* @default 'checkbox'
|
|
1475
|
+
*/
|
|
1476
|
+
selectionStyle?: 'highlight' | 'checkbox';
|
|
1477
|
+
/**
|
|
1478
|
+
* Sets the overflow behavior for item contents.
|
|
1479
|
+
* @default 'truncate'
|
|
1480
|
+
*/
|
|
1481
|
+
overflowMode?: 'wrap' | 'truncate';
|
|
1482
|
+
}
|
|
1483
|
+
export interface ListViewItemProps extends Omit<GridListItemProps, 'children' | 'className' | 'style' | 'render' | 'onClick' | keyof GlobalDOMAttributes> {
|
|
1484
|
+
/**
|
|
1485
|
+
* The contents of the item.
|
|
1486
|
+
*/
|
|
1487
|
+
children: ReactNode;
|
|
1488
|
+
/** Whether the item has child items (renders a chevron indicator). */
|
|
1489
|
+
hasChildItems?: boolean;
|
|
1490
|
+
}
|
|
1491
|
+
export const ListViewContext: Context<ContextValue<Partial<ListViewProps<any>>, DOMRefValue<HTMLDivElement>>>;
|
|
1492
|
+
/**
|
|
1493
|
+
* A ListView displays a list of interactive items, and allows a user to navigate, select, or perform an action.
|
|
1494
|
+
*/
|
|
1495
|
+
export const ListView: <T extends object>(props: ListViewProps<T> & RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
|
|
1496
|
+
export function ListViewItem(props: ListViewItemProps): ReactNode;
|
|
1438
1497
|
interface MeterStyleProps {
|
|
1439
1498
|
/** The [visual style](https://spectrum.adobe.com/page/meter/#-Options) of the Meter.
|
|
1440
1499
|
* @default 'informative'
|
|
@@ -1456,7 +1515,7 @@ interface MeterStyleProps {
|
|
|
1456
1515
|
*/
|
|
1457
1516
|
labelPosition?: LabelPosition;
|
|
1458
1517
|
}
|
|
1459
|
-
export interface MeterProps extends Omit<_MeterProps1, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, MeterStyleProps, StyleProps {
|
|
1518
|
+
export interface MeterProps extends Omit<_MeterProps1, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, MeterStyleProps, StyleProps {
|
|
1460
1519
|
/** The content to display as the label. */
|
|
1461
1520
|
label?: ReactNode;
|
|
1462
1521
|
}
|
|
@@ -1466,7 +1525,7 @@ export const MeterContext: Context<ContextValue<Partial<MeterProps>, DOMRefValue
|
|
|
1466
1525
|
* Their progress is determined by user actions, rather than system actions.
|
|
1467
1526
|
*/
|
|
1468
1527
|
export const Meter: ForwardRefExoticComponent<MeterProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1469
|
-
interface NumberFieldProps extends Omit<_NumberFieldProps1, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<InputProps, 'placeholder'> {
|
|
1528
|
+
interface NumberFieldProps extends Omit<_NumberFieldProps1, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<InputProps, 'placeholder'> {
|
|
1470
1529
|
/**
|
|
1471
1530
|
* Whether to hide the increment and decrement buttons.
|
|
1472
1531
|
* @default false
|
|
@@ -1497,7 +1556,7 @@ interface PickerStyleProps {
|
|
|
1497
1556
|
isQuiet?: boolean;
|
|
1498
1557
|
}
|
|
1499
1558
|
type SelectionMode = 'single' | 'multiple';
|
|
1500
|
-
export interface PickerProps<T extends object, M extends SelectionMode = 'single'> extends Omit<SelectProps<T, M>, 'children' | 'style' | 'className' | 'allowsEmptyCollection' | keyof GlobalDOMAttributes>, PickerStyleProps, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<ListBoxProps<T>, 'items' | 'dependencies'>, Pick<_PopoverProps1, 'shouldFlip'>, Pick<AsyncLoadable, 'onLoadMore'> {
|
|
1559
|
+
export interface PickerProps<T extends object, M extends SelectionMode = 'single'> extends Omit<SelectProps<T, M>, 'children' | 'style' | 'className' | 'render' | 'allowsEmptyCollection' | keyof GlobalDOMAttributes>, PickerStyleProps, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<ListBoxProps<T>, 'items' | 'dependencies'>, Pick<_PopoverProps1, 'shouldFlip'>, Pick<AsyncLoadable, 'onLoadMore'> {
|
|
1501
1560
|
/** The contents of the collection. */
|
|
1502
1561
|
children: ReactNode | ((item: T) => ReactNode);
|
|
1503
1562
|
/**
|
|
@@ -1516,17 +1575,23 @@ export interface PickerProps<T extends object, M extends SelectionMode = 'single
|
|
|
1516
1575
|
menuWidth?: number;
|
|
1517
1576
|
/** The current loading state of the Picker. */
|
|
1518
1577
|
loadingState?: LoadingState;
|
|
1578
|
+
/**
|
|
1579
|
+
* Custom renderer for the picker value. Allows one to provide a custom element to render selected items.
|
|
1580
|
+
*
|
|
1581
|
+
* @note The returned ReactNode should not have interactable elements as it will break accessibility.
|
|
1582
|
+
*/
|
|
1583
|
+
renderValue?: (selectedItems: T[]) => ReactNode;
|
|
1519
1584
|
}
|
|
1520
1585
|
export const PickerContext: React.Context<ContextValue<Partial<PickerProps<any, "single">>, FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
1521
1586
|
/**
|
|
1522
1587
|
* Pickers allow users to choose a single option from a collapsible list of options when space is limited.
|
|
1523
1588
|
*/
|
|
1524
1589
|
export const Picker: <T extends object, M extends SelectionMode = "single">(props: PickerProps<T, M> & React.RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>) => React.ReactElement | null;
|
|
1525
|
-
export interface PickerItemProps extends Omit<ListBoxItemProps, 'children' | 'style' | 'className' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1590
|
+
export interface PickerItemProps extends Omit<ListBoxItemProps, 'children' | 'style' | 'className' | 'render' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1526
1591
|
children: ReactNode;
|
|
1527
1592
|
}
|
|
1528
1593
|
export function PickerItem(props: PickerItemProps): ReactNode;
|
|
1529
|
-
export interface PickerSectionProps<T extends object> extends Omit<SectionProps<T>, 'style' | 'className' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1594
|
+
export interface PickerSectionProps<T extends object> extends Omit<SectionProps<T>, 'style' | 'className' | 'render' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1530
1595
|
}
|
|
1531
1596
|
export function PickerSection<T extends object>(props: PickerSectionProps<T>): ReactNode;
|
|
1532
1597
|
interface ProgressBarStyleProps {
|
|
@@ -1550,7 +1615,7 @@ interface ProgressBarStyleProps {
|
|
|
1550
1615
|
*/
|
|
1551
1616
|
labelPosition?: LabelPosition;
|
|
1552
1617
|
}
|
|
1553
|
-
export interface ProgressBarProps extends Omit<_ProgressBarProps1, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, ProgressBarStyleProps, StyleProps {
|
|
1618
|
+
export interface ProgressBarProps extends Omit<_ProgressBarProps1, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, ProgressBarStyleProps, StyleProps {
|
|
1554
1619
|
/** The content to display as the label. */
|
|
1555
1620
|
label?: ReactNode;
|
|
1556
1621
|
}
|
|
@@ -1560,7 +1625,7 @@ export const ProgressBarContext: Context<ContextValue<Partial<ProgressBarProps>,
|
|
|
1560
1625
|
* They can represent either determinate or indeterminate progress.
|
|
1561
1626
|
*/
|
|
1562
1627
|
export const ProgressBar: ForwardRefExoticComponent<ProgressBarProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1563
|
-
export interface RadioProps extends Omit<_RadioProps1, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1628
|
+
export interface RadioProps extends Omit<_RadioProps1, 'className' | 'style' | 'render' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1564
1629
|
/**
|
|
1565
1630
|
* The label for the element.
|
|
1566
1631
|
*/
|
|
@@ -1571,7 +1636,7 @@ export interface RadioProps extends Omit<_RadioProps1, 'className' | 'style' | '
|
|
|
1571
1636
|
* All possible options are exposed up front for users to compare.
|
|
1572
1637
|
*/
|
|
1573
1638
|
export const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<FocusableRefValue<HTMLLabelElement, HTMLLabelElement>>>;
|
|
1574
|
-
export interface RadioGroupProps extends Omit<_RadioGroupProps1, 'className' | 'style' | 'children' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1639
|
+
export interface RadioGroupProps extends Omit<_RadioGroupProps1, 'className' | 'style' | 'render' | 'children' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1575
1640
|
/**
|
|
1576
1641
|
* The Radios contained within the RadioGroup.
|
|
1577
1642
|
*/
|
|
@@ -1599,7 +1664,7 @@ export const RadioGroupContext: React.Context<ContextValue<Partial<RadioGroupPro
|
|
|
1599
1664
|
* All possible options are exposed up front for users to compare.
|
|
1600
1665
|
*/
|
|
1601
1666
|
export const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1602
|
-
export interface RangeCalendarProps<T extends DateValue> extends Omit<_RangeCalendarProps2<T>, 'visibleDuration' | 'style' | 'className' | 'children' | 'styles' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1667
|
+
export interface RangeCalendarProps<T extends DateValue> extends Omit<_RangeCalendarProps2<T>, 'visibleDuration' | 'style' | 'className' | 'render' | 'children' | 'styles' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1603
1668
|
/**
|
|
1604
1669
|
* The error message to display when the calendar is invalid.
|
|
1605
1670
|
*/
|
|
@@ -1615,7 +1680,7 @@ export const RangeCalendarContext: Context<ContextValue<Partial<RangeCalendarPro
|
|
|
1615
1680
|
* RangeCalendars display a grid of days in one or more months and allow users to select a contiguous range of dates.
|
|
1616
1681
|
*/
|
|
1617
1682
|
export const RangeCalendar: <T extends DateValue>(props: RangeCalendarProps<T> & RefAttributes<HTMLDivElement>) => ReactElement | null;
|
|
1618
|
-
interface SliderBaseProps<T> extends Omit<_SliderProps1<T>, 'children' | 'style' | 'className' | 'orientation' | keyof GlobalDOMAttributes>, Omit<SpectrumLabelableProps, 'necessityIndicator' | 'isRequired'>, StyleProps {
|
|
1683
|
+
interface SliderBaseProps<T> extends Omit<_SliderProps1<T>, 'children' | 'style' | 'className' | 'render' | 'orientation' | keyof GlobalDOMAttributes>, Omit<SpectrumLabelableProps, 'necessityIndicator' | 'isRequired'>, StyleProps {
|
|
1619
1684
|
children?: ReactNode;
|
|
1620
1685
|
/**
|
|
1621
1686
|
* The size of the Slider.
|
|
@@ -1672,7 +1737,7 @@ export const RangeSliderContext: Context<ContextValue<Partial<RangeSliderProps>,
|
|
|
1672
1737
|
* RangeSliders allow users to quickly select a subset range. They should be used when the upper and lower bounds to the range are invariable.
|
|
1673
1738
|
*/
|
|
1674
1739
|
export const RangeSlider: ForwardRefExoticComponent<RangeSliderProps & RefAttributes<FocusableRefValue<HTMLDivElement, HTMLDivElement>>>;
|
|
1675
|
-
export interface SearchFieldProps extends Omit<_SearchFieldProps1, 'className' | 'style' | 'children' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<InputProps, 'placeholder'> {
|
|
1740
|
+
export interface SearchFieldProps extends Omit<_SearchFieldProps1, 'className' | 'style' | 'render' | 'children' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<InputProps, 'placeholder'> {
|
|
1676
1741
|
/**
|
|
1677
1742
|
* The size of the SearchField.
|
|
1678
1743
|
*
|
|
@@ -1722,7 +1787,7 @@ export const SegmentedControl: ForwardRefExoticComponent<SegmentedControlProps &
|
|
|
1722
1787
|
* A SegmentedControlItem represents an option within a SegmentedControl.
|
|
1723
1788
|
*/
|
|
1724
1789
|
export const SegmentedControlItem: ForwardRefExoticComponent<SegmentedControlItemProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
1725
|
-
export interface SelectBoxGroupProps<T> extends StyleProps, Omit<ListBoxProps<T>, keyof GlobalDOMAttributes | 'layout' | 'dragAndDropHooks' | 'dependencies' | 'renderEmptyState' | 'children' | 'onAction' | 'shouldFocusOnHover' | 'selectionBehavior' | 'shouldSelectOnPressUp' | 'shouldFocusWrap' | 'style' | 'className'> {
|
|
1790
|
+
export interface SelectBoxGroupProps<T> extends StyleProps, Omit<ListBoxProps<T>, keyof GlobalDOMAttributes | 'layout' | 'dragAndDropHooks' | 'dependencies' | 'renderEmptyState' | 'children' | 'onAction' | 'shouldFocusOnHover' | 'selectionBehavior' | 'shouldSelectOnPressUp' | 'shouldFocusWrap' | 'style' | 'className' | 'render'> {
|
|
1726
1791
|
/**
|
|
1727
1792
|
* The SelectBox elements contained within the SelectBoxGroup.
|
|
1728
1793
|
*/
|
|
@@ -1819,7 +1884,7 @@ interface SwitchStyleProps {
|
|
|
1819
1884
|
*/
|
|
1820
1885
|
isEmphasized?: boolean;
|
|
1821
1886
|
}
|
|
1822
|
-
export interface SwitchProps extends Omit<_SwitchProps1, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | keyof GlobalDOMAttributes>, StyleProps, SwitchStyleProps {
|
|
1887
|
+
export interface SwitchProps extends Omit<_SwitchProps1, 'className' | 'style' | 'render' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | keyof GlobalDOMAttributes>, StyleProps, SwitchStyleProps {
|
|
1823
1888
|
children?: ReactNode;
|
|
1824
1889
|
}
|
|
1825
1890
|
export const SwitchContext: Context<ContextValue<Partial<SwitchProps>, FocusableRefValue<HTMLLabelElement, HTMLLabelElement>>>;
|
|
@@ -1865,7 +1930,7 @@ interface S2TableProps {
|
|
|
1865
1930
|
/** Provides the ActionBar to display when rows are selected in the TableView. */
|
|
1866
1931
|
renderActionBar?: (selectedKeys: 'all' | Set<_Key1>) => ReactElement;
|
|
1867
1932
|
}
|
|
1868
|
-
export interface TableViewProps extends Omit<TableProps, 'style' | 'className' | 'onRowAction' | 'selectionBehavior' | 'onScroll' | 'onCellAction' | 'dragAndDropHooks' | keyof GlobalDOMAttributes>, DOMProps, UnsafeStyles, S2TableProps {
|
|
1933
|
+
export interface TableViewProps extends Omit<TableProps, 'style' | 'className' | 'render' | 'onRowAction' | 'selectionBehavior' | 'onScroll' | 'onCellAction' | 'dragAndDropHooks' | keyof GlobalDOMAttributes>, DOMProps, UnsafeStyles, S2TableProps {
|
|
1869
1934
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
1870
1935
|
styles?: StylesPropWithHeight;
|
|
1871
1936
|
}
|
|
@@ -1874,13 +1939,13 @@ export const TableContext: React.Context<ContextValue<Partial<TableViewProps>, D
|
|
|
1874
1939
|
* Tables are containers for displaying information. They allow users to quickly scan, sort, compare, and take action on large amounts of data.
|
|
1875
1940
|
*/
|
|
1876
1941
|
export const TableView: React.ForwardRefExoticComponent<TableViewProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1877
|
-
export interface TableBodyProps<T> extends Omit<_TableBodyProps1<T>, 'style' | 'className' | keyof GlobalDOMAttributes> {
|
|
1942
|
+
export interface TableBodyProps<T> extends Omit<_TableBodyProps1<T>, 'style' | 'className' | 'render' | keyof GlobalDOMAttributes> {
|
|
1878
1943
|
}
|
|
1879
1944
|
/**
|
|
1880
1945
|
* The body of a `<Table>`, containing the table rows.
|
|
1881
1946
|
*/
|
|
1882
1947
|
export const TableBody: <T extends object>(props: TableBodyProps<T> & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
|
|
1883
|
-
export interface ColumnProps extends Omit<_ColumnProps1, 'style' | 'className' | keyof GlobalDOMAttributes> {
|
|
1948
|
+
export interface ColumnProps extends Omit<_ColumnProps1, 'style' | 'className' | 'render' | keyof GlobalDOMAttributes> {
|
|
1884
1949
|
/** Whether the column should render a divider between it and the next column. */
|
|
1885
1950
|
showDivider?: boolean;
|
|
1886
1951
|
/** Whether the column allows resizing. */
|
|
@@ -1899,13 +1964,13 @@ export interface ColumnProps extends Omit<_ColumnProps1, 'style' | 'className' |
|
|
|
1899
1964
|
* A column within a `<Table>`.
|
|
1900
1965
|
*/
|
|
1901
1966
|
export const Column: React.ForwardRefExoticComponent<ColumnProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1902
|
-
export interface TableHeaderProps<T> extends Omit<_TableHeaderProps1<T>, 'style' | 'className' | 'onHoverChange' | 'onHoverStart' | 'onHoverEnd' | keyof GlobalDOMAttributes> {
|
|
1967
|
+
export interface TableHeaderProps<T> extends Omit<_TableHeaderProps1<T>, 'style' | 'className' | 'render' | 'onHoverChange' | 'onHoverStart' | 'onHoverEnd' | keyof GlobalDOMAttributes> {
|
|
1903
1968
|
}
|
|
1904
1969
|
/**
|
|
1905
1970
|
* A header within a `<Table>`, containing the table columns.
|
|
1906
1971
|
*/
|
|
1907
1972
|
export const TableHeader: <T extends object>(props: TableHeaderProps<T> & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
|
|
1908
|
-
export interface CellProps extends Omit<_CellProps1, 'style' | 'className' | keyof GlobalDOMAttributes>, Pick<ColumnProps, 'align' | 'showDivider'> {
|
|
1973
|
+
export interface CellProps extends Omit<_CellProps1, 'style' | 'className' | 'render' | keyof GlobalDOMAttributes>, Pick<ColumnProps, 'align' | 'showDivider'> {
|
|
1909
1974
|
/** @private */
|
|
1910
1975
|
isSticky?: boolean;
|
|
1911
1976
|
/** The content to render as the cell children. */
|
|
@@ -1937,7 +2002,7 @@ export interface RowProps<T> extends Pick<_RowProps1<T>, 'id' | 'columns' | 'isD
|
|
|
1937
2002
|
* A row within a `<Table>`.
|
|
1938
2003
|
*/
|
|
1939
2004
|
export const Row: <T extends object>(props: RowProps<T> & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
|
|
1940
|
-
export interface TabsProps extends Omit<_TabsProps1, 'className' | 'style' | 'children' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
2005
|
+
export interface TabsProps extends Omit<_TabsProps1, 'className' | 'style' | 'render' | 'children' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
1941
2006
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
1942
2007
|
styles?: StylesPropWithHeight;
|
|
1943
2008
|
/** The content to display in the tabs. */
|
|
@@ -1954,15 +2019,15 @@ export interface TabsProps extends Omit<_TabsProps1, 'className' | 'style' | 'ch
|
|
|
1954
2019
|
*/
|
|
1955
2020
|
labelBehavior?: 'show' | 'hide';
|
|
1956
2021
|
}
|
|
1957
|
-
export interface TabProps extends Omit<_TabProps1, 'children' | 'style' | 'className' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
2022
|
+
export interface TabProps extends Omit<_TabProps1, 'children' | 'style' | 'className' | 'render' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1958
2023
|
/** The content to display in the tab. */
|
|
1959
2024
|
children: ReactNode;
|
|
1960
2025
|
}
|
|
1961
|
-
export interface TabListProps<T> extends Omit<_TabListProps1<T>, 'style' | 'className' | 'aria-label' | 'aria-labelledby' | keyof GlobalDOMAttributes>, StyleProps {
|
|
2026
|
+
export interface TabListProps<T> extends Omit<_TabListProps1<T>, 'style' | 'className' | 'render' | 'aria-label' | 'aria-labelledby' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1962
2027
|
/** The content to display in the tablist. */
|
|
1963
2028
|
children: ReactNode | ((item: T) => ReactNode);
|
|
1964
2029
|
}
|
|
1965
|
-
export interface TabPanelProps extends Omit<_TabPanelProps1, 'children' | 'style' | 'className' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
2030
|
+
export interface TabPanelProps extends Omit<_TabPanelProps1, 'children' | 'style' | 'className' | 'render' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
1966
2031
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
1967
2032
|
styles?: StylesPropWithHeight;
|
|
1968
2033
|
/** The content to display in the tab panels. */
|
|
@@ -1976,11 +2041,11 @@ export const Tabs: ForwardRefExoticComponent<TabsProps & RefAttributes<DOMRefVal
|
|
|
1976
2041
|
export function TabList<T extends object>(props: TabListProps<T>): ReactNode | null;
|
|
1977
2042
|
export function Tab(props: TabProps): ReactNode;
|
|
1978
2043
|
export function TabPanel(props: TabPanelProps): ReactNode | null;
|
|
1979
|
-
export interface TagProps extends Omit<_TagProps1, 'children' | 'style' | 'className' | 'onClick' | keyof GlobalDOMAttributes>, LabelableProps {
|
|
2044
|
+
export interface TagProps extends Omit<_TagProps1, 'children' | 'style' | 'className' | 'render' | 'onClick' | keyof GlobalDOMAttributes>, LabelableProps {
|
|
1980
2045
|
/** The children of the tag. */
|
|
1981
2046
|
children: ReactNode;
|
|
1982
2047
|
}
|
|
1983
|
-
export interface TagGroupProps<T> extends Omit<_TagGroupProps1, 'children' | 'style' | 'className' | keyof GlobalDOMAttributes>, Pick<TagListProps<T>, 'items' | 'children' | 'renderEmptyState'>, Omit<SpectrumLabelableProps, 'isRequired' | 'necessityIndicator'>, StyleProps, Omit<HelpTextProps, 'errorMessage'> {
|
|
2048
|
+
export interface TagGroupProps<T> extends Omit<_TagGroupProps1, 'children' | 'style' | 'className' | 'render' | keyof GlobalDOMAttributes>, Pick<TagListProps<T>, 'items' | 'children' | 'renderEmptyState'>, Omit<SpectrumLabelableProps, 'isRequired' | 'necessityIndicator'>, StyleProps, Omit<HelpTextProps, 'errorMessage'> {
|
|
1984
2049
|
/** A description for the tag group. */
|
|
1985
2050
|
description?: ReactNode;
|
|
1986
2051
|
/**
|
|
@@ -2009,7 +2074,7 @@ export const TagGroupContext: Context<ContextValue<Partial<TagGroupProps<any>>,
|
|
|
2009
2074
|
export const TagGroup: <T extends object>(props: TagGroupProps<T> & RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
|
|
2010
2075
|
/** An individual Tag for TagGroups. */
|
|
2011
2076
|
export const Tag: (props: TagProps & RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
|
|
2012
|
-
export interface TextFieldProps extends Omit<_TextFieldProps1, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<InputProps, 'placeholder'> {
|
|
2077
|
+
export interface TextFieldProps extends Omit<_TextFieldProps1, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<InputProps, 'placeholder'> {
|
|
2013
2078
|
/**
|
|
2014
2079
|
* The size of the text field.
|
|
2015
2080
|
*
|
|
@@ -2033,7 +2098,7 @@ export const TextAreaContext: Context<ContextValue<Partial<TextAreaProps>, TextF
|
|
|
2033
2098
|
* are available to text fields.
|
|
2034
2099
|
*/
|
|
2035
2100
|
export const TextArea: ForwardRefExoticComponent<TextAreaProps & RefAttributes<TextFieldRef<HTMLTextAreaElement>>>;
|
|
2036
|
-
export interface TimeFieldProps<T extends TimeValue> extends Omit<_TimeFieldProps1<T>, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
2101
|
+
export interface TimeFieldProps<T extends TimeValue> extends Omit<_TimeFieldProps1<T>, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
2037
2102
|
/**
|
|
2038
2103
|
* The size of the TimeField.
|
|
2039
2104
|
*
|
|
@@ -2048,7 +2113,7 @@ export const TimeFieldContext: Context<ContextValue<Partial<TimeFieldProps<any>>
|
|
|
2048
2113
|
*/
|
|
2049
2114
|
export const TimeField: <T extends TimeValue>(props: TimeFieldProps<T> & RefAttributes<HTMLDivElement>) => ReactElement | null;
|
|
2050
2115
|
type ToastPlacement = 'top' | 'top end' | 'bottom' | 'bottom end';
|
|
2051
|
-
export interface ToastContainerProps extends Omit<ToastRegionProps<SpectrumToastValue>, 'queue' | 'children' | 'style' | 'className'> {
|
|
2116
|
+
export interface ToastContainerProps extends Omit<ToastRegionProps<SpectrumToastValue>, 'queue' | 'children' | 'style' | 'className' | 'render'> {
|
|
2052
2117
|
/**
|
|
2053
2118
|
* Placement of the toast container on the page.
|
|
2054
2119
|
* @default "bottom"
|
|
@@ -2091,7 +2156,7 @@ export const ToastQueue: {
|
|
|
2091
2156
|
* at the root of the app.
|
|
2092
2157
|
*/
|
|
2093
2158
|
export function ToastContainer(props: ToastContainerProps): ReactNode;
|
|
2094
|
-
export interface ToggleButtonGroupProps extends ActionButtonGroupProps, Omit<_ToggleButtonGroupProps1, 'children' | 'style' | 'className' | keyof GlobalDOMAttributes>, DOMProps {
|
|
2159
|
+
export interface ToggleButtonGroupProps extends ActionButtonGroupProps, Omit<_ToggleButtonGroupProps1, 'children' | 'style' | 'className' | 'render' | keyof GlobalDOMAttributes>, DOMProps {
|
|
2095
2160
|
/** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */
|
|
2096
2161
|
isEmphasized?: boolean;
|
|
2097
2162
|
}
|
|
@@ -2100,7 +2165,7 @@ export const ToggleButtonGroupContext: Context<ContextValue<Partial<ToggleButton
|
|
|
2100
2165
|
* A ToggleButtonGroup is a grouping of related ToggleButtons, with single or multiple selection.
|
|
2101
2166
|
*/
|
|
2102
2167
|
export const ToggleButtonGroup: ForwardRefExoticComponent<ToggleButtonGroupProps & RefAttributes<HTMLDivElement>>;
|
|
2103
|
-
export interface ToggleButtonProps extends Omit<_ToggleButtonProps1, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps, ActionButtonStyleProps {
|
|
2168
|
+
export interface ToggleButtonProps extends Omit<_ToggleButtonProps1, 'className' | 'style' | 'render' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps, ActionButtonStyleProps {
|
|
2104
2169
|
/** The content to display in the button. */
|
|
2105
2170
|
children: ReactNode;
|
|
2106
2171
|
/** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */
|
|
@@ -2122,7 +2187,7 @@ interface TooltipTriggerProps extends Omit<TooltipTriggerComponentProps, 'childr
|
|
|
2122
2187
|
*/
|
|
2123
2188
|
placement?: 'start' | 'end' | 'right' | 'left' | 'top' | 'bottom';
|
|
2124
2189
|
}
|
|
2125
|
-
export interface TooltipProps extends Omit<_TooltipProps1, 'children' | 'className' | 'style' | 'triggerRef' | 'UNSTABLE_portalContainer' | 'isEntering' | 'isExiting' | 'placement' | 'containerPadding' | 'offset' | 'crossOffset' | 'shouldFlip' | 'arrowBoundaryOffset' | 'isOpen' | 'defaultOpen' | 'onOpenChange' | keyof GlobalDOMAttributes>, DOMProps, UnsafeStyles {
|
|
2190
|
+
export interface TooltipProps extends Omit<_TooltipProps1, 'children' | 'className' | 'style' | 'render' | 'triggerRef' | 'UNSTABLE_portalContainer' | 'isEntering' | 'isExiting' | 'placement' | 'containerPadding' | 'offset' | 'crossOffset' | 'shouldFlip' | 'arrowBoundaryOffset' | 'isOpen' | 'defaultOpen' | 'onOpenChange' | keyof GlobalDOMAttributes>, DOMProps, UnsafeStyles {
|
|
2126
2191
|
/** The content of the tooltip. */
|
|
2127
2192
|
children: ReactNode;
|
|
2128
2193
|
}
|
|
@@ -2139,12 +2204,14 @@ export function TooltipTrigger(props: TooltipTriggerProps): ReactNode;
|
|
|
2139
2204
|
interface S2TreeProps {
|
|
2140
2205
|
/** Handler that is called when a user performs an action on a row. */
|
|
2141
2206
|
onAction?: (key: Key) => void;
|
|
2207
|
+
/** Provides the ActionBar to display when items are selected in the TreeView. */
|
|
2208
|
+
renderActionBar?: (selectedKeys: 'all' | Set<Key>) => ReactElement;
|
|
2142
2209
|
}
|
|
2143
|
-
export interface TreeViewProps<T> extends Omit<TreeProps<T>, 'style' | 'className' | 'onRowAction' | 'selectionBehavior' | 'onScroll' | 'onCellAction' | 'dragAndDropHooks' | keyof GlobalDOMAttributes>, UnsafeStyles, S2TreeProps {
|
|
2210
|
+
export interface TreeViewProps<T> extends Omit<TreeProps<T>, 'style' | 'className' | 'render' | 'onRowAction' | 'selectionBehavior' | 'onScroll' | 'onCellAction' | 'dragAndDropHooks' | keyof GlobalDOMAttributes>, UnsafeStyles, S2TreeProps {
|
|
2144
2211
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
2145
2212
|
styles?: StylesPropWithHeight;
|
|
2146
2213
|
}
|
|
2147
|
-
export interface TreeViewItemProps extends Omit<TreeItemProps, 'className' | 'style' | 'onClick' | keyof GlobalDOMAttributes> {
|
|
2214
|
+
export interface TreeViewItemProps extends Omit<TreeItemProps, 'className' | 'style' | 'render' | 'onClick' | keyof GlobalDOMAttributes> {
|
|
2148
2215
|
/** Whether this item has children, even if not loaded yet. */
|
|
2149
2216
|
hasChildItems?: boolean;
|
|
2150
2217
|
}
|
|
@@ -2163,7 +2230,7 @@ export interface TreeViewItemContentProps extends Omit<TreeItemContentProps, 'ch
|
|
|
2163
2230
|
}
|
|
2164
2231
|
export const TreeViewItemContent: (props: TreeViewItemContentProps) => ReactNode;
|
|
2165
2232
|
export const TreeViewLoadMoreItem: (props: TreeViewLoadMoreItemProps) => ReactNode;
|
|
2166
|
-
export interface DatePickerProps<T extends DateValue> extends Omit<_DatePickerProps1<T>, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, Pick<_CalendarProps2<T>, 'createCalendar' | 'pageBehavior' | 'firstDayOfWeek' | 'isDateUnavailable'>, Pick<_PopoverProps1, 'shouldFlip'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
2233
|
+
export interface DatePickerProps<T extends DateValue> extends Omit<_DatePickerProps1<T>, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, Pick<_CalendarProps2<T>, 'createCalendar' | 'pageBehavior' | 'firstDayOfWeek' | 'isDateUnavailable'>, Pick<_PopoverProps1, 'shouldFlip'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
2167
2234
|
/**
|
|
2168
2235
|
* The size of the DateField.
|
|
2169
2236
|
*
|