@react-spectrum/s2 1.0.0 → 1.1.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 +5 -5
- package/dist/ContextualHelp.css +50 -50
- package/dist/ContextualHelp.mjs +5 -5
- 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 +348 -348
- package/dist/Field.cjs.map +1 -1
- package/dist/Field.css +147 -147
- package/dist/Field.css.map +1 -1
- package/dist/Field.mjs +348 -348
- 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/Menu.cjs +446 -443
- package/dist/Menu.cjs.map +1 -1
- package/dist/Menu.css +184 -184
- package/dist/Menu.css.map +1 -1
- package/dist/Menu.mjs +446 -443
- 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 +275 -275
- package/dist/Picker.cjs.map +1 -1
- package/dist/Picker.css +173 -173
- package/dist/Picker.css.map +1 -1
- package/dist/Picker.mjs +275 -275
- 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 +415 -415
- package/dist/TableView.cjs.map +1 -1
- package/dist/TableView.css +199 -199
- package/dist/TableView.css.map +1 -1
- package/dist/TableView.mjs +416 -416
- 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 +120 -120
- package/dist/Toast.cjs.map +1 -1
- package/dist/Toast.css +110 -110
- package/dist/Toast.css.map +1 -1
- package/dist/Toast.mjs +120 -120
- 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 +144 -128
- package/dist/TreeView.cjs.map +1 -1
- package/dist/TreeView.css +131 -127
- package/dist/TreeView.css.map +1 -1
- package/dist/TreeView.mjs +144 -128
- package/dist/TreeView.mjs.map +1 -1
- package/dist/types.d.ts +68 -72
- package/dist/types.d.ts.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 +2 -2
- 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 +3 -3
- package/src/Form.tsx +1 -1
- package/src/FullscreenDialog.tsx +1 -1
- package/src/Link.tsx +1 -1
- package/src/Menu.tsx +11 -13
- package/src/Meter.tsx +1 -1
- package/src/Modal.tsx +1 -1
- package/src/NumberField.tsx +1 -1
- package/src/Picker.tsx +3 -3
- 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 +9 -9
- 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 +1 -1
- package/src/ToggleButton.tsx +1 -1
- package/src/ToggleButtonGroup.tsx +1 -1
- package/src/Tooltip.tsx +1 -1
- package/src/TreeView.tsx +10 -6
- package/style/__tests__/mergeStyles.test.ts +68 -0
- package/style/__tests__/style-macro.test.js +79 -59
- 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
|
@@ -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
|
*/
|
|
@@ -827,7 +823,7 @@ export const ButtonGroupContext: Context<ContextValue<Partial<ButtonGroupContext
|
|
|
827
823
|
* ButtonGroup handles overflow for a grouping of buttons whose actions are related to each other.
|
|
828
824
|
*/
|
|
829
825
|
export const ButtonGroup: ForwardRefExoticComponent<ButtonGroupProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
830
|
-
export interface DialogProps extends Omit<_DialogProps1, 'className' | 'style' | keyof GlobalDOMAttributes>, StyleProps {
|
|
826
|
+
export interface DialogProps extends Omit<_DialogProps1, 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps {
|
|
831
827
|
/**
|
|
832
828
|
* Whether the Dialog is dismissible.
|
|
833
829
|
*/
|
|
@@ -948,14 +944,14 @@ interface BreadcrumbsStyleProps {
|
|
|
948
944
|
/** Whether the breadcrumbs are disabled. */
|
|
949
945
|
isDisabled?: boolean;
|
|
950
946
|
}
|
|
951
|
-
export interface BreadcrumbsProps<T> extends Omit<_BreadcrumbsProps1<T>, 'children' | 'style' | 'className' | keyof GlobalDOMAttributes>, BreadcrumbsStyleProps, StyleProps {
|
|
947
|
+
export interface BreadcrumbsProps<T> extends Omit<_BreadcrumbsProps1<T>, 'children' | 'style' | 'className' | 'render' | keyof GlobalDOMAttributes>, BreadcrumbsStyleProps, StyleProps {
|
|
952
948
|
/** The children of the Breadcrumbs. */
|
|
953
949
|
children: ReactNode | ((item: T) => ReactNode);
|
|
954
950
|
}
|
|
955
951
|
export const BreadcrumbsContext: Context<ContextValue<Partial<BreadcrumbsProps<any>>, DOMRefValue<HTMLOListElement>>>;
|
|
956
952
|
/** Breadcrumbs show hierarchy and navigational context for a user's location within an application. */
|
|
957
953
|
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 {
|
|
954
|
+
export interface BreadcrumbProps extends Omit<_BreadcrumbProps1, 'children' | 'style' | 'className' | 'render' | 'autoFocus' | 'onClick' | keyof GlobalDOMAttributes>, LinkDOMProps {
|
|
959
955
|
/** The children of the breadcrumb item. */
|
|
960
956
|
children: ReactNode;
|
|
961
957
|
}
|
|
@@ -997,7 +993,7 @@ export const ContextualHelpContext: Context<ContextValue<Partial<ContextualHelpP
|
|
|
997
993
|
* Contextual help shows a user extra information about the state of an adjacent component, or a total view.
|
|
998
994
|
*/
|
|
999
995
|
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 {
|
|
996
|
+
export interface CalendarProps<T extends DateValue> extends Omit<_CalendarProps1<T>, 'visibleDuration' | 'style' | 'className' | 'render' | 'styles' | 'children' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1001
997
|
/**
|
|
1002
998
|
* The error message to display when the calendar is invalid.
|
|
1003
999
|
*/
|
|
@@ -1017,7 +1013,7 @@ interface CardRenderProps {
|
|
|
1017
1013
|
/** The size of the Card. */
|
|
1018
1014
|
size: 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
1019
1015
|
}
|
|
1020
|
-
export interface CardProps extends Omit<GridListItemProps, 'className' | 'style' | 'children' | 'onHoverChange' | 'onHoverStart' | 'onHoverEnd' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1016
|
+
export interface CardProps extends Omit<GridListItemProps, 'className' | 'style' | 'render' | 'children' | 'onHoverChange' | 'onHoverStart' | 'onHoverEnd' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1021
1017
|
/** The children of the Card. */
|
|
1022
1018
|
children: ReactNode | ((renderProps: CardRenderProps) => ReactNode);
|
|
1023
1019
|
/**
|
|
@@ -1059,7 +1055,7 @@ export interface ProductCardProps extends Omit<CardProps, 'density' | 'variant'>
|
|
|
1059
1055
|
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
1060
1056
|
}
|
|
1061
1057
|
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 {
|
|
1058
|
+
export interface CardViewProps<T> extends Omit<GridListProps<T>, 'layout' | 'keyboardNavigationBehavior' | 'selectionBehavior' | 'className' | 'style' | 'render' | 'isLoading' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
1063
1059
|
/**
|
|
1064
1060
|
* The layout of the cards.
|
|
1065
1061
|
* @default 'grid'
|
|
@@ -1099,7 +1095,7 @@ export const CardViewContext: Context<ContextValue<Partial<CardViewProps<any>>,
|
|
|
1099
1095
|
* A CardView displays a group of related objects, with support for selection and bulk actions.
|
|
1100
1096
|
*/
|
|
1101
1097
|
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 {
|
|
1098
|
+
export interface CheckboxGroupProps extends Omit<_CheckboxGroupProps1, 'className' | 'style' | 'render' | 'children' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1103
1099
|
/**
|
|
1104
1100
|
* The size of the Checkboxes in the CheckboxGroup.
|
|
1105
1101
|
*
|
|
@@ -1127,14 +1123,14 @@ export const CheckboxGroupContext: Context<ContextValue<Partial<CheckboxGroupPro
|
|
|
1127
1123
|
* A CheckboxGroup allows users to select one or more items from a list of choices.
|
|
1128
1124
|
*/
|
|
1129
1125
|
export const CheckboxGroup: ForwardRefExoticComponent<CheckboxGroupProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1130
|
-
export interface ColorAreaProps extends Omit<_ColorAreaProps1, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1126
|
+
export interface ColorAreaProps extends Omit<_ColorAreaProps1, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1131
1127
|
}
|
|
1132
1128
|
export const ColorAreaContext: Context<ContextValue<Partial<ColorAreaProps>, DOMRefValue<HTMLDivElement>>>;
|
|
1133
1129
|
/**
|
|
1134
1130
|
* A ColorArea allows users to adjust two channels of an RGB, HSL or HSB color value against a two-dimensional gradient background.
|
|
1135
1131
|
*/
|
|
1136
1132
|
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'> {
|
|
1133
|
+
export interface ColorFieldProps extends Omit<_ColorFieldProps1, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<InputProps, 'placeholder'> {
|
|
1138
1134
|
/**
|
|
1139
1135
|
* The size of the color field.
|
|
1140
1136
|
*
|
|
@@ -1147,7 +1143,7 @@ export const ColorFieldContext: Context<ContextValue<Partial<ColorFieldProps>, T
|
|
|
1147
1143
|
* A color field allows users to edit a hex color or individual color channel value.
|
|
1148
1144
|
*/
|
|
1149
1145
|
export const ColorField: ForwardRefExoticComponent<ColorFieldProps & RefAttributes<TextFieldRef<HTMLInputElement>>>;
|
|
1150
|
-
export interface ColorSliderProps extends Omit<_ColorSliderProps1, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, Pick<SpectrumLabelableProps, 'contextualHelp'>, StyleProps {
|
|
1146
|
+
export interface ColorSliderProps extends Omit<_ColorSliderProps1, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, Pick<SpectrumLabelableProps, 'contextualHelp'>, StyleProps {
|
|
1151
1147
|
label?: string;
|
|
1152
1148
|
}
|
|
1153
1149
|
export const ColorSliderContext: Context<ContextValue<Partial<ColorSliderProps>, DOMRefValue<HTMLDivElement>>>;
|
|
@@ -1155,7 +1151,7 @@ export const ColorSliderContext: Context<ContextValue<Partial<ColorSliderProps>,
|
|
|
1155
1151
|
* A ColorSlider allows users to adjust an individual channel of a color value.
|
|
1156
1152
|
*/
|
|
1157
1153
|
export const ColorSlider: ForwardRefExoticComponent<ColorSliderProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1158
|
-
export interface ColorSwatchProps extends Omit<_ColorSwatchProps1, 'className' | 'style' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
1154
|
+
export interface ColorSwatchProps extends Omit<_ColorSwatchProps1, 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
1159
1155
|
/**
|
|
1160
1156
|
* The size of the ColorSwatch.
|
|
1161
1157
|
* @default 'M'
|
|
@@ -1198,7 +1194,7 @@ export const ColorSwatchPickerContext: Context<ContextValue<Partial<ColorSwatchP
|
|
|
1198
1194
|
* A ColorSwatchPicker displays a list of color swatches and allows a user to select one of them.
|
|
1199
1195
|
*/
|
|
1200
1196
|
export const ColorSwatchPicker: ForwardRefExoticComponent<ColorSwatchPickerProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1201
|
-
export interface ColorWheelProps extends Omit<_ColorWheelProps1, 'children' | 'className' | 'style' | 'outerRadius' | 'innerRadius' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1197
|
+
export interface ColorWheelProps extends Omit<_ColorWheelProps1, 'children' | 'className' | 'style' | 'render' | 'outerRadius' | 'innerRadius' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1202
1198
|
/**
|
|
1203
1199
|
* @default 192
|
|
1204
1200
|
*/
|
|
@@ -1217,7 +1213,7 @@ interface ComboboxStyleProps {
|
|
|
1217
1213
|
*/
|
|
1218
1214
|
size?: 'S' | 'M' | 'L' | 'XL';
|
|
1219
1215
|
}
|
|
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'> {
|
|
1216
|
+
export interface ComboBoxProps<T extends object> extends Omit<_ComboBoxProps1<T>, 'children' | 'style' | 'className' | 'render' | 'defaultFilter' | 'allowsEmptyCollection' | keyof GlobalDOMAttributes>, ComboboxStyleProps, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<ListBoxProps<T>, 'items' | 'dependencies'>, Pick<_PopoverProps1, 'shouldFlip'>, Pick<AsyncLoadable, 'onLoadMore'>, Pick<InputProps, 'placeholder'> {
|
|
1221
1217
|
/** The contents of the collection. */
|
|
1222
1218
|
children: ReactNode | ((item: T) => ReactNode);
|
|
1223
1219
|
/**
|
|
@@ -1242,14 +1238,14 @@ export const ComboBoxContext: Context<ContextValue<Partial<ComboBoxProps<any>>,
|
|
|
1242
1238
|
* ComboBox allow users to choose a single option from a collapsible list of options when space is limited.
|
|
1243
1239
|
*/
|
|
1244
1240
|
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 {
|
|
1241
|
+
export interface ComboBoxItemProps extends Omit<ListBoxItemProps, 'children' | 'style' | 'className' | 'render' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1246
1242
|
children: ReactNode;
|
|
1247
1243
|
}
|
|
1248
1244
|
export function ComboBoxItem(props: ComboBoxItemProps): ReactNode;
|
|
1249
1245
|
export interface ComboBoxSectionProps<T extends object> extends Omit<SectionProps<T>, keyof GlobalDOMAttributes> {
|
|
1250
1246
|
}
|
|
1251
1247
|
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 {
|
|
1248
|
+
export interface DateFieldProps<T extends DateValue> extends Omit<_DateFieldProps1<T>, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1253
1249
|
/**
|
|
1254
1250
|
* The size of the DateField.
|
|
1255
1251
|
*
|
|
@@ -1263,7 +1259,7 @@ export const DateFieldContext: Context<ContextValue<Partial<DateFieldProps<any>>
|
|
|
1263
1259
|
* Each part of a date value is displayed in an individually editable segment.
|
|
1264
1260
|
*/
|
|
1265
1261
|
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 {
|
|
1262
|
+
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
1263
|
/**
|
|
1268
1264
|
* The size of the DateField.
|
|
1269
1265
|
*
|
|
@@ -1282,7 +1278,7 @@ export const DateRangePickerContext: Context<ContextValue<Partial<DateRangePicke
|
|
|
1282
1278
|
* to enter or select a date and time range.
|
|
1283
1279
|
*/
|
|
1284
1280
|
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 {
|
|
1281
|
+
export interface CustomDialogProps extends Omit<_DialogProps1, 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1286
1282
|
/**
|
|
1287
1283
|
* The size of the Dialog.
|
|
1288
1284
|
*/
|
|
@@ -1303,7 +1299,7 @@ export interface CustomDialogProps extends Omit<_DialogProps1, 'className' | 'st
|
|
|
1303
1299
|
* A CustomDialog is a floating window with a custom layout.
|
|
1304
1300
|
*/
|
|
1305
1301
|
export const CustomDialog: ForwardRefExoticComponent<CustomDialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
|
|
1306
|
-
export interface FullscreenDialogProps extends Omit<_DialogProps1, 'className' | 'style' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1302
|
+
export interface FullscreenDialogProps extends Omit<_DialogProps1, 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1307
1303
|
/**
|
|
1308
1304
|
* The variant of fullscreen dialog to display.
|
|
1309
1305
|
* @default "fullscreen"
|
|
@@ -1361,7 +1357,7 @@ export const IllustratedMessageContext: Context<ContextValue<Partial<Illustrated
|
|
|
1361
1357
|
* for an empty state or an error page.
|
|
1362
1358
|
*/
|
|
1363
1359
|
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 {
|
|
1360
|
+
export interface DropZoneProps extends Omit<_DropZoneProps1, 'className' | 'style' | 'render' | 'children' | 'isDisabled' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | keyof GlobalDOMAttributes>, UnsafeStyles, DOMProps {
|
|
1365
1361
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
1366
1362
|
styles?: StylesPropWithHeight;
|
|
1367
1363
|
/** The content to display in the drop zone. */
|
|
@@ -1426,7 +1422,7 @@ interface LinkStyleProps {
|
|
|
1426
1422
|
/** Whether the link should be displayed with a quiet style. */
|
|
1427
1423
|
isQuiet?: boolean;
|
|
1428
1424
|
}
|
|
1429
|
-
export interface LinkProps extends Omit<_LinkProps1, 'isDisabled' | 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps, LinkStyleProps {
|
|
1425
|
+
export interface LinkProps extends Omit<_LinkProps1, 'isDisabled' | 'className' | 'style' | 'render' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps, LinkStyleProps {
|
|
1430
1426
|
children: ReactNode;
|
|
1431
1427
|
}
|
|
1432
1428
|
export const LinkContext: Context<ContextValue<Partial<LinkProps>, FocusableRefValue<HTMLAnchorElement, HTMLAnchorElement>>>;
|
|
@@ -1456,7 +1452,7 @@ interface MeterStyleProps {
|
|
|
1456
1452
|
*/
|
|
1457
1453
|
labelPosition?: LabelPosition;
|
|
1458
1454
|
}
|
|
1459
|
-
export interface MeterProps extends Omit<_MeterProps1, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, MeterStyleProps, StyleProps {
|
|
1455
|
+
export interface MeterProps extends Omit<_MeterProps1, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, MeterStyleProps, StyleProps {
|
|
1460
1456
|
/** The content to display as the label. */
|
|
1461
1457
|
label?: ReactNode;
|
|
1462
1458
|
}
|
|
@@ -1466,7 +1462,7 @@ export const MeterContext: Context<ContextValue<Partial<MeterProps>, DOMRefValue
|
|
|
1466
1462
|
* Their progress is determined by user actions, rather than system actions.
|
|
1467
1463
|
*/
|
|
1468
1464
|
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'> {
|
|
1465
|
+
interface NumberFieldProps extends Omit<_NumberFieldProps1, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<InputProps, 'placeholder'> {
|
|
1470
1466
|
/**
|
|
1471
1467
|
* Whether to hide the increment and decrement buttons.
|
|
1472
1468
|
* @default false
|
|
@@ -1497,7 +1493,7 @@ interface PickerStyleProps {
|
|
|
1497
1493
|
isQuiet?: boolean;
|
|
1498
1494
|
}
|
|
1499
1495
|
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'> {
|
|
1496
|
+
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
1497
|
/** The contents of the collection. */
|
|
1502
1498
|
children: ReactNode | ((item: T) => ReactNode);
|
|
1503
1499
|
/**
|
|
@@ -1522,11 +1518,11 @@ export const PickerContext: React.Context<ContextValue<Partial<PickerProps<any,
|
|
|
1522
1518
|
* Pickers allow users to choose a single option from a collapsible list of options when space is limited.
|
|
1523
1519
|
*/
|
|
1524
1520
|
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 {
|
|
1521
|
+
export interface PickerItemProps extends Omit<ListBoxItemProps, 'children' | 'style' | 'className' | 'render' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1526
1522
|
children: ReactNode;
|
|
1527
1523
|
}
|
|
1528
1524
|
export function PickerItem(props: PickerItemProps): ReactNode;
|
|
1529
|
-
export interface PickerSectionProps<T extends object> extends Omit<SectionProps<T>, 'style' | 'className' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1525
|
+
export interface PickerSectionProps<T extends object> extends Omit<SectionProps<T>, 'style' | 'className' | 'render' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1530
1526
|
}
|
|
1531
1527
|
export function PickerSection<T extends object>(props: PickerSectionProps<T>): ReactNode;
|
|
1532
1528
|
interface ProgressBarStyleProps {
|
|
@@ -1550,7 +1546,7 @@ interface ProgressBarStyleProps {
|
|
|
1550
1546
|
*/
|
|
1551
1547
|
labelPosition?: LabelPosition;
|
|
1552
1548
|
}
|
|
1553
|
-
export interface ProgressBarProps extends Omit<_ProgressBarProps1, 'children' | 'className' | 'style' | keyof GlobalDOMAttributes>, ProgressBarStyleProps, StyleProps {
|
|
1549
|
+
export interface ProgressBarProps extends Omit<_ProgressBarProps1, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, ProgressBarStyleProps, StyleProps {
|
|
1554
1550
|
/** The content to display as the label. */
|
|
1555
1551
|
label?: ReactNode;
|
|
1556
1552
|
}
|
|
@@ -1560,7 +1556,7 @@ export const ProgressBarContext: Context<ContextValue<Partial<ProgressBarProps>,
|
|
|
1560
1556
|
* They can represent either determinate or indeterminate progress.
|
|
1561
1557
|
*/
|
|
1562
1558
|
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 {
|
|
1559
|
+
export interface RadioProps extends Omit<_RadioProps1, 'className' | 'style' | 'render' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1564
1560
|
/**
|
|
1565
1561
|
* The label for the element.
|
|
1566
1562
|
*/
|
|
@@ -1571,7 +1567,7 @@ export interface RadioProps extends Omit<_RadioProps1, 'className' | 'style' | '
|
|
|
1571
1567
|
* All possible options are exposed up front for users to compare.
|
|
1572
1568
|
*/
|
|
1573
1569
|
export const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<FocusableRefValue<HTMLLabelElement, HTMLLabelElement>>>;
|
|
1574
|
-
export interface RadioGroupProps extends Omit<_RadioGroupProps1, 'className' | 'style' | 'children' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1570
|
+
export interface RadioGroupProps extends Omit<_RadioGroupProps1, 'className' | 'style' | 'render' | 'children' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1575
1571
|
/**
|
|
1576
1572
|
* The Radios contained within the RadioGroup.
|
|
1577
1573
|
*/
|
|
@@ -1599,7 +1595,7 @@ export const RadioGroupContext: React.Context<ContextValue<Partial<RadioGroupPro
|
|
|
1599
1595
|
* All possible options are exposed up front for users to compare.
|
|
1600
1596
|
*/
|
|
1601
1597
|
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 {
|
|
1598
|
+
export interface RangeCalendarProps<T extends DateValue> extends Omit<_RangeCalendarProps2<T>, 'visibleDuration' | 'style' | 'className' | 'render' | 'children' | 'styles' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1603
1599
|
/**
|
|
1604
1600
|
* The error message to display when the calendar is invalid.
|
|
1605
1601
|
*/
|
|
@@ -1615,7 +1611,7 @@ export const RangeCalendarContext: Context<ContextValue<Partial<RangeCalendarPro
|
|
|
1615
1611
|
* RangeCalendars display a grid of days in one or more months and allow users to select a contiguous range of dates.
|
|
1616
1612
|
*/
|
|
1617
1613
|
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 {
|
|
1614
|
+
interface SliderBaseProps<T> extends Omit<_SliderProps1<T>, 'children' | 'style' | 'className' | 'render' | 'orientation' | keyof GlobalDOMAttributes>, Omit<SpectrumLabelableProps, 'necessityIndicator' | 'isRequired'>, StyleProps {
|
|
1619
1615
|
children?: ReactNode;
|
|
1620
1616
|
/**
|
|
1621
1617
|
* The size of the Slider.
|
|
@@ -1672,7 +1668,7 @@ export const RangeSliderContext: Context<ContextValue<Partial<RangeSliderProps>,
|
|
|
1672
1668
|
* 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
1669
|
*/
|
|
1674
1670
|
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'> {
|
|
1671
|
+
export interface SearchFieldProps extends Omit<_SearchFieldProps1, 'className' | 'style' | 'render' | 'children' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<InputProps, 'placeholder'> {
|
|
1676
1672
|
/**
|
|
1677
1673
|
* The size of the SearchField.
|
|
1678
1674
|
*
|
|
@@ -1722,7 +1718,7 @@ export const SegmentedControl: ForwardRefExoticComponent<SegmentedControlProps &
|
|
|
1722
1718
|
* A SegmentedControlItem represents an option within a SegmentedControl.
|
|
1723
1719
|
*/
|
|
1724
1720
|
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'> {
|
|
1721
|
+
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
1722
|
/**
|
|
1727
1723
|
* The SelectBox elements contained within the SelectBoxGroup.
|
|
1728
1724
|
*/
|
|
@@ -1819,7 +1815,7 @@ interface SwitchStyleProps {
|
|
|
1819
1815
|
*/
|
|
1820
1816
|
isEmphasized?: boolean;
|
|
1821
1817
|
}
|
|
1822
|
-
export interface SwitchProps extends Omit<_SwitchProps1, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | keyof GlobalDOMAttributes>, StyleProps, SwitchStyleProps {
|
|
1818
|
+
export interface SwitchProps extends Omit<_SwitchProps1, 'className' | 'style' | 'render' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | keyof GlobalDOMAttributes>, StyleProps, SwitchStyleProps {
|
|
1823
1819
|
children?: ReactNode;
|
|
1824
1820
|
}
|
|
1825
1821
|
export const SwitchContext: Context<ContextValue<Partial<SwitchProps>, FocusableRefValue<HTMLLabelElement, HTMLLabelElement>>>;
|
|
@@ -1865,7 +1861,7 @@ interface S2TableProps {
|
|
|
1865
1861
|
/** Provides the ActionBar to display when rows are selected in the TableView. */
|
|
1866
1862
|
renderActionBar?: (selectedKeys: 'all' | Set<_Key1>) => ReactElement;
|
|
1867
1863
|
}
|
|
1868
|
-
export interface TableViewProps extends Omit<TableProps, 'style' | 'className' | 'onRowAction' | 'selectionBehavior' | 'onScroll' | 'onCellAction' | 'dragAndDropHooks' | keyof GlobalDOMAttributes>, DOMProps, UnsafeStyles, S2TableProps {
|
|
1864
|
+
export interface TableViewProps extends Omit<TableProps, 'style' | 'className' | 'render' | 'onRowAction' | 'selectionBehavior' | 'onScroll' | 'onCellAction' | 'dragAndDropHooks' | keyof GlobalDOMAttributes>, DOMProps, UnsafeStyles, S2TableProps {
|
|
1869
1865
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
1870
1866
|
styles?: StylesPropWithHeight;
|
|
1871
1867
|
}
|
|
@@ -1874,13 +1870,13 @@ export const TableContext: React.Context<ContextValue<Partial<TableViewProps>, D
|
|
|
1874
1870
|
* Tables are containers for displaying information. They allow users to quickly scan, sort, compare, and take action on large amounts of data.
|
|
1875
1871
|
*/
|
|
1876
1872
|
export const TableView: React.ForwardRefExoticComponent<TableViewProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1877
|
-
export interface TableBodyProps<T> extends Omit<_TableBodyProps1<T>, 'style' | 'className' | keyof GlobalDOMAttributes> {
|
|
1873
|
+
export interface TableBodyProps<T> extends Omit<_TableBodyProps1<T>, 'style' | 'className' | 'render' | keyof GlobalDOMAttributes> {
|
|
1878
1874
|
}
|
|
1879
1875
|
/**
|
|
1880
1876
|
* The body of a `<Table>`, containing the table rows.
|
|
1881
1877
|
*/
|
|
1882
1878
|
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> {
|
|
1879
|
+
export interface ColumnProps extends Omit<_ColumnProps1, 'style' | 'className' | 'render' | keyof GlobalDOMAttributes> {
|
|
1884
1880
|
/** Whether the column should render a divider between it and the next column. */
|
|
1885
1881
|
showDivider?: boolean;
|
|
1886
1882
|
/** Whether the column allows resizing. */
|
|
@@ -1899,13 +1895,13 @@ export interface ColumnProps extends Omit<_ColumnProps1, 'style' | 'className' |
|
|
|
1899
1895
|
* A column within a `<Table>`.
|
|
1900
1896
|
*/
|
|
1901
1897
|
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> {
|
|
1898
|
+
export interface TableHeaderProps<T> extends Omit<_TableHeaderProps1<T>, 'style' | 'className' | 'render' | 'onHoverChange' | 'onHoverStart' | 'onHoverEnd' | keyof GlobalDOMAttributes> {
|
|
1903
1899
|
}
|
|
1904
1900
|
/**
|
|
1905
1901
|
* A header within a `<Table>`, containing the table columns.
|
|
1906
1902
|
*/
|
|
1907
1903
|
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'> {
|
|
1904
|
+
export interface CellProps extends Omit<_CellProps1, 'style' | 'className' | 'render' | keyof GlobalDOMAttributes>, Pick<ColumnProps, 'align' | 'showDivider'> {
|
|
1909
1905
|
/** @private */
|
|
1910
1906
|
isSticky?: boolean;
|
|
1911
1907
|
/** The content to render as the cell children. */
|
|
@@ -1937,7 +1933,7 @@ export interface RowProps<T> extends Pick<_RowProps1<T>, 'id' | 'columns' | 'isD
|
|
|
1937
1933
|
* A row within a `<Table>`.
|
|
1938
1934
|
*/
|
|
1939
1935
|
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 {
|
|
1936
|
+
export interface TabsProps extends Omit<_TabsProps1, 'className' | 'style' | 'render' | 'children' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
1941
1937
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
1942
1938
|
styles?: StylesPropWithHeight;
|
|
1943
1939
|
/** The content to display in the tabs. */
|
|
@@ -1954,15 +1950,15 @@ export interface TabsProps extends Omit<_TabsProps1, 'className' | 'style' | 'ch
|
|
|
1954
1950
|
*/
|
|
1955
1951
|
labelBehavior?: 'show' | 'hide';
|
|
1956
1952
|
}
|
|
1957
|
-
export interface TabProps extends Omit<_TabProps1, 'children' | 'style' | 'className' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1953
|
+
export interface TabProps extends Omit<_TabProps1, 'children' | 'style' | 'className' | 'render' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1958
1954
|
/** The content to display in the tab. */
|
|
1959
1955
|
children: ReactNode;
|
|
1960
1956
|
}
|
|
1961
|
-
export interface TabListProps<T> extends Omit<_TabListProps1<T>, 'style' | 'className' | 'aria-label' | 'aria-labelledby' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1957
|
+
export interface TabListProps<T> extends Omit<_TabListProps1<T>, 'style' | 'className' | 'render' | 'aria-label' | 'aria-labelledby' | keyof GlobalDOMAttributes>, StyleProps {
|
|
1962
1958
|
/** The content to display in the tablist. */
|
|
1963
1959
|
children: ReactNode | ((item: T) => ReactNode);
|
|
1964
1960
|
}
|
|
1965
|
-
export interface TabPanelProps extends Omit<_TabPanelProps1, 'children' | 'style' | 'className' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
1961
|
+
export interface TabPanelProps extends Omit<_TabPanelProps1, 'children' | 'style' | 'className' | 'render' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
1966
1962
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
1967
1963
|
styles?: StylesPropWithHeight;
|
|
1968
1964
|
/** The content to display in the tab panels. */
|
|
@@ -1976,11 +1972,11 @@ export const Tabs: ForwardRefExoticComponent<TabsProps & RefAttributes<DOMRefVal
|
|
|
1976
1972
|
export function TabList<T extends object>(props: TabListProps<T>): ReactNode | null;
|
|
1977
1973
|
export function Tab(props: TabProps): ReactNode;
|
|
1978
1974
|
export function TabPanel(props: TabPanelProps): ReactNode | null;
|
|
1979
|
-
export interface TagProps extends Omit<_TagProps1, 'children' | 'style' | 'className' | 'onClick' | keyof GlobalDOMAttributes>, LabelableProps {
|
|
1975
|
+
export interface TagProps extends Omit<_TagProps1, 'children' | 'style' | 'className' | 'render' | 'onClick' | keyof GlobalDOMAttributes>, LabelableProps {
|
|
1980
1976
|
/** The children of the tag. */
|
|
1981
1977
|
children: ReactNode;
|
|
1982
1978
|
}
|
|
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'> {
|
|
1979
|
+
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
1980
|
/** A description for the tag group. */
|
|
1985
1981
|
description?: ReactNode;
|
|
1986
1982
|
/**
|
|
@@ -2009,7 +2005,7 @@ export const TagGroupContext: Context<ContextValue<Partial<TagGroupProps<any>>,
|
|
|
2009
2005
|
export const TagGroup: <T extends object>(props: TagGroupProps<T> & RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
|
|
2010
2006
|
/** An individual Tag for TagGroups. */
|
|
2011
2007
|
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'> {
|
|
2008
|
+
export interface TextFieldProps extends Omit<_TextFieldProps1, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps, Pick<InputProps, 'placeholder'> {
|
|
2013
2009
|
/**
|
|
2014
2010
|
* The size of the text field.
|
|
2015
2011
|
*
|
|
@@ -2033,7 +2029,7 @@ export const TextAreaContext: Context<ContextValue<Partial<TextAreaProps>, TextF
|
|
|
2033
2029
|
* are available to text fields.
|
|
2034
2030
|
*/
|
|
2035
2031
|
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 {
|
|
2032
|
+
export interface TimeFieldProps<T extends TimeValue> extends Omit<_TimeFieldProps1<T>, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
2037
2033
|
/**
|
|
2038
2034
|
* The size of the TimeField.
|
|
2039
2035
|
*
|
|
@@ -2048,7 +2044,7 @@ export const TimeFieldContext: Context<ContextValue<Partial<TimeFieldProps<any>>
|
|
|
2048
2044
|
*/
|
|
2049
2045
|
export const TimeField: <T extends TimeValue>(props: TimeFieldProps<T> & RefAttributes<HTMLDivElement>) => ReactElement | null;
|
|
2050
2046
|
type ToastPlacement = 'top' | 'top end' | 'bottom' | 'bottom end';
|
|
2051
|
-
export interface ToastContainerProps extends Omit<ToastRegionProps<SpectrumToastValue>, 'queue' | 'children' | 'style' | 'className'> {
|
|
2047
|
+
export interface ToastContainerProps extends Omit<ToastRegionProps<SpectrumToastValue>, 'queue' | 'children' | 'style' | 'className' | 'render'> {
|
|
2052
2048
|
/**
|
|
2053
2049
|
* Placement of the toast container on the page.
|
|
2054
2050
|
* @default "bottom"
|
|
@@ -2091,7 +2087,7 @@ export const ToastQueue: {
|
|
|
2091
2087
|
* at the root of the app.
|
|
2092
2088
|
*/
|
|
2093
2089
|
export function ToastContainer(props: ToastContainerProps): ReactNode;
|
|
2094
|
-
export interface ToggleButtonGroupProps extends ActionButtonGroupProps, Omit<_ToggleButtonGroupProps1, 'children' | 'style' | 'className' | keyof GlobalDOMAttributes>, DOMProps {
|
|
2090
|
+
export interface ToggleButtonGroupProps extends ActionButtonGroupProps, Omit<_ToggleButtonGroupProps1, 'children' | 'style' | 'className' | 'render' | keyof GlobalDOMAttributes>, DOMProps {
|
|
2095
2091
|
/** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */
|
|
2096
2092
|
isEmphasized?: boolean;
|
|
2097
2093
|
}
|
|
@@ -2100,7 +2096,7 @@ export const ToggleButtonGroupContext: Context<ContextValue<Partial<ToggleButton
|
|
|
2100
2096
|
* A ToggleButtonGroup is a grouping of related ToggleButtons, with single or multiple selection.
|
|
2101
2097
|
*/
|
|
2102
2098
|
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 {
|
|
2099
|
+
export interface ToggleButtonProps extends Omit<_ToggleButtonProps1, 'className' | 'style' | 'render' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'onClick' | keyof GlobalDOMAttributes>, StyleProps, ActionButtonStyleProps {
|
|
2104
2100
|
/** The content to display in the button. */
|
|
2105
2101
|
children: ReactNode;
|
|
2106
2102
|
/** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */
|
|
@@ -2122,7 +2118,7 @@ interface TooltipTriggerProps extends Omit<TooltipTriggerComponentProps, 'childr
|
|
|
2122
2118
|
*/
|
|
2123
2119
|
placement?: 'start' | 'end' | 'right' | 'left' | 'top' | 'bottom';
|
|
2124
2120
|
}
|
|
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 {
|
|
2121
|
+
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
2122
|
/** The content of the tooltip. */
|
|
2127
2123
|
children: ReactNode;
|
|
2128
2124
|
}
|
|
@@ -2140,11 +2136,11 @@ interface S2TreeProps {
|
|
|
2140
2136
|
/** Handler that is called when a user performs an action on a row. */
|
|
2141
2137
|
onAction?: (key: Key) => void;
|
|
2142
2138
|
}
|
|
2143
|
-
export interface TreeViewProps<T> extends Omit<TreeProps<T>, 'style' | 'className' | 'onRowAction' | 'selectionBehavior' | 'onScroll' | 'onCellAction' | 'dragAndDropHooks' | keyof GlobalDOMAttributes>, UnsafeStyles, S2TreeProps {
|
|
2139
|
+
export interface TreeViewProps<T> extends Omit<TreeProps<T>, 'style' | 'className' | 'render' | 'onRowAction' | 'selectionBehavior' | 'onScroll' | 'onCellAction' | 'dragAndDropHooks' | keyof GlobalDOMAttributes>, UnsafeStyles, S2TreeProps {
|
|
2144
2140
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
2145
2141
|
styles?: StylesPropWithHeight;
|
|
2146
2142
|
}
|
|
2147
|
-
export interface TreeViewItemProps extends Omit<TreeItemProps, 'className' | 'style' | 'onClick' | keyof GlobalDOMAttributes> {
|
|
2143
|
+
export interface TreeViewItemProps extends Omit<TreeItemProps, 'className' | 'style' | 'render' | 'onClick' | keyof GlobalDOMAttributes> {
|
|
2148
2144
|
/** Whether this item has children, even if not loaded yet. */
|
|
2149
2145
|
hasChildItems?: boolean;
|
|
2150
2146
|
}
|
|
@@ -2163,7 +2159,7 @@ export interface TreeViewItemContentProps extends Omit<TreeItemContentProps, 'ch
|
|
|
2163
2159
|
}
|
|
2164
2160
|
export const TreeViewItemContent: (props: TreeViewItemContentProps) => ReactNode;
|
|
2165
2161
|
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 {
|
|
2162
|
+
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
2163
|
/**
|
|
2168
2164
|
* The size of the DateField.
|
|
2169
2165
|
*
|