@react-spectrum/s2 0.5.0 → 0.7.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 +5 -8
- package/dist/Accordion.cjs.map +1 -1
- package/dist/Accordion.css +3 -7
- package/dist/Accordion.css.map +1 -1
- package/dist/Accordion.mjs +5 -8
- package/dist/Accordion.mjs.map +1 -1
- package/dist/ActionBar.cjs +264 -0
- package/dist/ActionBar.cjs.map +1 -0
- package/dist/ActionBar.css +261 -0
- package/dist/ActionBar.css.map +1 -0
- package/dist/ActionBar.mjs +257 -0
- package/dist/ActionBar.mjs.map +1 -0
- package/dist/ActionButton.cjs +121 -147
- package/dist/ActionButton.cjs.map +1 -1
- package/dist/ActionButton.css +133 -159
- package/dist/ActionButton.css.map +1 -1
- package/dist/ActionButton.mjs +122 -148
- package/dist/ActionButton.mjs.map +1 -1
- package/dist/ActionButtonGroup.cjs +6 -9
- package/dist/ActionButtonGroup.cjs.map +1 -1
- package/dist/ActionButtonGroup.css +4 -8
- package/dist/ActionButtonGroup.css.map +1 -1
- package/dist/ActionButtonGroup.mjs +6 -9
- package/dist/ActionButtonGroup.mjs.map +1 -1
- package/dist/ActionMenu.cjs +2 -5
- package/dist/ActionMenu.cjs.map +1 -1
- package/dist/ActionMenu.mjs +2 -5
- package/dist/ActionMenu.mjs.map +1 -1
- package/dist/AlertDialog.cjs +2 -5
- package/dist/AlertDialog.cjs.map +1 -1
- package/dist/AlertDialog.css +1 -5
- package/dist/AlertDialog.css.map +1 -1
- package/dist/AlertDialog.mjs +2 -5
- package/dist/AlertDialog.mjs.map +1 -1
- package/dist/Avatar.cjs +12 -15
- package/dist/Avatar.cjs.map +1 -1
- package/dist/Avatar.css +12 -16
- package/dist/Avatar.css.map +1 -1
- package/dist/Avatar.mjs +12 -15
- package/dist/Avatar.mjs.map +1 -1
- package/dist/AvatarGroup.cjs +100 -103
- package/dist/AvatarGroup.cjs.map +1 -1
- package/dist/AvatarGroup.css +31 -37
- package/dist/AvatarGroup.css.map +1 -1
- package/dist/AvatarGroup.mjs +100 -103
- package/dist/AvatarGroup.mjs.map +1 -1
- package/dist/Badge.cjs +123 -108
- package/dist/Badge.cjs.map +1 -1
- package/dist/Badge.css +101 -83
- package/dist/Badge.css.map +1 -1
- package/dist/Badge.mjs +124 -109
- package/dist/Badge.mjs.map +1 -1
- package/dist/Breadcrumbs.cjs +98 -99
- package/dist/Breadcrumbs.cjs.map +1 -1
- package/dist/Breadcrumbs.css +70 -70
- package/dist/Breadcrumbs.css.map +1 -1
- package/dist/Breadcrumbs.mjs +100 -101
- package/dist/Breadcrumbs.mjs.map +1 -1
- package/dist/Button.cjs +305 -278
- package/dist/Button.cjs.map +1 -1
- package/dist/Button.css +253 -186
- package/dist/Button.css.map +1 -1
- package/dist/Button.mjs +307 -280
- package/dist/Button.mjs.map +1 -1
- package/dist/ButtonGroup.cjs +17 -20
- package/dist/ButtonGroup.cjs.map +1 -1
- package/dist/ButtonGroup.css +12 -16
- package/dist/ButtonGroup.css.map +1 -1
- package/dist/ButtonGroup.mjs +18 -21
- package/dist/ButtonGroup.mjs.map +1 -1
- package/dist/Card.cjs +169 -169
- package/dist/Card.cjs.map +1 -1
- package/dist/Card.css +121 -127
- package/dist/Card.css.map +1 -1
- package/dist/Card.mjs +170 -170
- package/dist/Card.mjs.map +1 -1
- package/dist/CardView.cjs +115 -327
- package/dist/CardView.cjs.map +1 -1
- package/dist/CardView.css +36 -16
- package/dist/CardView.css.map +1 -1
- package/dist/CardView.mjs +73 -285
- package/dist/CardView.mjs.map +1 -1
- package/dist/CenterBaseline.cjs +1 -1
- package/dist/CenterBaseline.css +3 -7
- package/dist/CenterBaseline.css.map +1 -1
- package/dist/CenterBaseline.mjs +1 -1
- package/dist/Checkbox.cjs +58 -62
- package/dist/Checkbox.cjs.map +1 -1
- package/dist/Checkbox.css +54 -60
- package/dist/Checkbox.css.map +1 -1
- package/dist/Checkbox.mjs +59 -63
- package/dist/Checkbox.mjs.map +1 -1
- package/dist/CheckboxGroup.cjs +43 -45
- package/dist/CheckboxGroup.cjs.map +1 -1
- package/dist/CheckboxGroup.css +32 -38
- package/dist/CheckboxGroup.css.map +1 -1
- package/dist/CheckboxGroup.mjs +44 -46
- package/dist/CheckboxGroup.mjs.map +1 -1
- package/dist/ClearButton.cjs +7 -8
- package/dist/ClearButton.cjs.map +1 -1
- package/dist/ClearButton.css +6 -10
- package/dist/ClearButton.css.map +1 -1
- package/dist/ClearButton.mjs +7 -8
- package/dist/ClearButton.mjs.map +1 -1
- package/dist/CloseButton.cjs +40 -53
- package/dist/CloseButton.cjs.map +1 -1
- package/dist/CloseButton.css +46 -54
- package/dist/CloseButton.css.map +1 -1
- package/dist/CloseButton.mjs +40 -53
- package/dist/CloseButton.mjs.map +1 -1
- package/dist/ColorArea.cjs +12 -15
- package/dist/ColorArea.cjs.map +1 -1
- package/dist/ColorArea.css +11 -15
- package/dist/ColorArea.css.map +1 -1
- package/dist/ColorArea.mjs +12 -15
- package/dist/ColorArea.mjs.map +1 -1
- package/dist/ColorField.cjs +31 -34
- package/dist/ColorField.cjs.map +1 -1
- package/dist/ColorField.css +24 -30
- package/dist/ColorField.css.map +1 -1
- package/dist/ColorField.mjs +32 -35
- package/dist/ColorField.mjs.map +1 -1
- package/dist/ColorHandle.cjs +11 -11
- package/dist/ColorHandle.css +20 -24
- package/dist/ColorHandle.css.map +1 -1
- package/dist/ColorHandle.mjs +11 -11
- package/dist/ColorSlider.cjs +43 -46
- package/dist/ColorSlider.cjs.map +1 -1
- package/dist/ColorSlider.css +43 -49
- package/dist/ColorSlider.css.map +1 -1
- package/dist/ColorSlider.mjs +44 -47
- package/dist/ColorSlider.mjs.map +1 -1
- package/dist/ColorSwatch.cjs +8 -11
- package/dist/ColorSwatch.cjs.map +1 -1
- package/dist/ColorSwatch.css +15 -19
- package/dist/ColorSwatch.css.map +1 -1
- package/dist/ColorSwatch.mjs +9 -12
- package/dist/ColorSwatch.mjs.map +1 -1
- package/dist/ColorSwatchPicker.cjs +15 -18
- package/dist/ColorSwatchPicker.cjs.map +1 -1
- package/dist/ColorSwatchPicker.css +34 -38
- package/dist/ColorSwatchPicker.css.map +1 -1
- package/dist/ColorSwatchPicker.mjs +15 -18
- package/dist/ColorSwatchPicker.mjs.map +1 -1
- package/dist/ColorWheel.cjs +18 -21
- package/dist/ColorWheel.cjs.map +1 -1
- package/dist/ColorWheel.css +16 -20
- package/dist/ColorWheel.css.map +1 -1
- package/dist/ColorWheel.mjs +18 -21
- package/dist/ColorWheel.mjs.map +1 -1
- package/dist/ComboBox.cjs +62 -62
- package/dist/ComboBox.cjs.map +1 -1
- package/dist/ComboBox.css +52 -58
- package/dist/ComboBox.css.map +1 -1
- package/dist/ComboBox.mjs +63 -63
- package/dist/ComboBox.mjs.map +1 -1
- package/dist/Content.cjs +15 -20
- package/dist/Content.cjs.map +1 -1
- package/dist/Content.mjs +15 -20
- package/dist/Content.mjs.map +1 -1
- package/dist/ContextualHelp.cjs +7 -10
- package/dist/ContextualHelp.cjs.map +1 -1
- package/dist/ContextualHelp.css +23 -29
- package/dist/ContextualHelp.css.map +1 -1
- package/dist/ContextualHelp.mjs +7 -10
- package/dist/ContextualHelp.mjs.map +1 -1
- package/dist/CustomDialog.cjs +10 -13
- package/dist/CustomDialog.cjs.map +1 -1
- package/dist/CustomDialog.css +10 -14
- package/dist/CustomDialog.css.map +1 -1
- package/dist/CustomDialog.mjs +10 -13
- package/dist/CustomDialog.mjs.map +1 -1
- package/dist/Dialog.cjs +14 -18
- package/dist/Dialog.cjs.map +1 -1
- package/dist/Dialog.css +39 -45
- package/dist/Dialog.css.map +1 -1
- package/dist/Dialog.mjs +14 -18
- package/dist/Dialog.mjs.map +1 -1
- package/dist/Disclosure.cjs +60 -69
- package/dist/Disclosure.cjs.map +1 -1
- package/dist/Disclosure.css +49 -55
- package/dist/Disclosure.css.map +1 -1
- package/dist/Disclosure.mjs +61 -70
- package/dist/Disclosure.mjs.map +1 -1
- package/dist/Divider.cjs +15 -19
- package/dist/Divider.cjs.map +1 -1
- package/dist/Divider.css +19 -23
- package/dist/Divider.css.map +1 -1
- package/dist/Divider.mjs +15 -19
- package/dist/Divider.mjs.map +1 -1
- package/dist/DropZone.cjs +30 -33
- package/dist/DropZone.cjs.map +1 -1
- package/dist/DropZone.css +26 -32
- package/dist/DropZone.css.map +1 -1
- package/dist/DropZone.mjs +30 -33
- package/dist/DropZone.mjs.map +1 -1
- package/dist/Field.cjs +134 -132
- package/dist/Field.cjs.map +1 -1
- package/dist/Field.css +76 -90
- package/dist/Field.css.map +1 -1
- package/dist/Field.mjs +134 -132
- package/dist/Field.mjs.map +1 -1
- package/dist/Form.cjs +6 -9
- package/dist/Form.cjs.map +1 -1
- package/dist/Form.css +4 -8
- package/dist/Form.css.map +1 -1
- package/dist/Form.mjs +6 -9
- package/dist/Form.mjs.map +1 -1
- package/dist/FullscreenDialog.cjs +7 -10
- package/dist/FullscreenDialog.cjs.map +1 -1
- package/dist/FullscreenDialog.css +54 -60
- package/dist/FullscreenDialog.css.map +1 -1
- package/dist/FullscreenDialog.mjs +7 -10
- package/dist/FullscreenDialog.mjs.map +1 -1
- package/dist/IllustratedMessage.cjs +128 -132
- package/dist/IllustratedMessage.cjs.map +1 -1
- package/dist/IllustratedMessage.css +58 -64
- package/dist/IllustratedMessage.css.map +1 -1
- package/dist/IllustratedMessage.mjs +128 -132
- package/dist/IllustratedMessage.mjs.map +1 -1
- package/dist/Image.cjs +24 -13
- package/dist/Image.cjs.map +1 -1
- package/dist/Image.css +12 -16
- package/dist/Image.css.map +1 -1
- package/dist/Image.mjs +25 -14
- package/dist/Image.mjs.map +1 -1
- package/dist/InlineAlert.cjs +75 -84
- package/dist/InlineAlert.cjs.map +1 -1
- package/dist/InlineAlert.css +59 -69
- package/dist/InlineAlert.css.map +1 -1
- package/dist/InlineAlert.mjs +76 -85
- package/dist/InlineAlert.mjs.map +1 -1
- package/dist/Link.cjs +36 -39
- package/dist/Link.cjs.map +1 -1
- package/dist/Link.css +42 -48
- package/dist/Link.css.map +1 -1
- package/dist/Link.mjs +37 -40
- package/dist/Link.mjs.map +1 -1
- package/dist/Menu.cjs +335 -235
- package/dist/Menu.cjs.map +1 -1
- package/dist/Menu.css +130 -122
- package/dist/Menu.css.map +1 -1
- package/dist/Menu.mjs +337 -237
- package/dist/Menu.mjs.map +1 -1
- package/dist/Meter.cjs +66 -70
- package/dist/Meter.cjs.map +1 -1
- package/dist/Meter.css +69 -79
- package/dist/Meter.css.map +1 -1
- package/dist/Meter.mjs +66 -70
- package/dist/Meter.mjs.map +1 -1
- package/dist/Modal.cjs +36 -45
- package/dist/Modal.cjs.map +1 -1
- package/dist/Modal.css +49 -77
- package/dist/Modal.css.map +1 -1
- package/dist/Modal.mjs +37 -46
- package/dist/Modal.mjs.map +1 -1
- package/dist/NumberField.cjs +66 -69
- package/dist/NumberField.cjs.map +1 -1
- package/dist/NumberField.css +70 -76
- package/dist/NumberField.css.map +1 -1
- package/dist/NumberField.mjs +67 -70
- package/dist/NumberField.mjs.map +1 -1
- package/dist/Picker.cjs +214 -189
- package/dist/Picker.cjs.map +1 -1
- package/dist/Picker.css +92 -94
- package/dist/Picker.css.map +1 -1
- package/dist/Picker.mjs +215 -190
- package/dist/Picker.mjs.map +1 -1
- package/dist/Popover.cjs +48 -72
- package/dist/Popover.cjs.map +1 -1
- package/dist/Popover.css +59 -134
- package/dist/Popover.css.map +1 -1
- package/dist/Popover.mjs +49 -73
- package/dist/Popover.mjs.map +1 -1
- package/dist/ProgressBar.cjs +85 -87
- package/dist/ProgressBar.cjs.map +1 -1
- package/dist/ProgressBar.css +81 -91
- package/dist/ProgressBar.css.map +1 -1
- package/dist/ProgressBar.mjs +85 -87
- package/dist/ProgressBar.mjs.map +1 -1
- package/dist/ProgressCircle.cjs +16 -18
- package/dist/ProgressCircle.cjs.map +1 -1
- package/dist/ProgressCircle.css +17 -21
- package/dist/ProgressCircle.css.map +1 -1
- package/dist/ProgressCircle.mjs +16 -18
- package/dist/ProgressCircle.mjs.map +1 -1
- package/dist/Provider.cjs +5 -5
- package/dist/Provider.css +7 -11
- package/dist/Provider.css.map +1 -1
- package/dist/Provider.mjs +5 -5
- package/dist/Radio.cjs +54 -58
- package/dist/Radio.cjs.map +1 -1
- package/dist/Radio.css +50 -56
- package/dist/Radio.css.map +1 -1
- package/dist/Radio.mjs +55 -59
- package/dist/Radio.mjs.map +1 -1
- package/dist/RadioGroup.cjs +39 -43
- package/dist/RadioGroup.cjs.map +1 -1
- package/dist/RadioGroup.css +32 -38
- package/dist/RadioGroup.css.map +1 -1
- package/dist/RadioGroup.mjs +40 -44
- package/dist/RadioGroup.mjs.map +1 -1
- package/dist/RangeSlider.cjs +2 -3
- package/dist/RangeSlider.cjs.map +1 -1
- package/dist/RangeSlider.mjs +3 -4
- package/dist/RangeSlider.mjs.map +1 -1
- package/dist/SearchField.cjs +35 -38
- package/dist/SearchField.cjs.map +1 -1
- package/dist/SearchField.css +30 -36
- package/dist/SearchField.css.map +1 -1
- package/dist/SearchField.mjs +36 -39
- package/dist/SearchField.mjs.map +1 -1
- package/dist/SegmentedControl.cjs +71 -77
- package/dist/SegmentedControl.cjs.map +1 -1
- package/dist/SegmentedControl.css +63 -69
- package/dist/SegmentedControl.css.map +1 -1
- package/dist/SegmentedControl.mjs +73 -79
- package/dist/SegmentedControl.mjs.map +1 -1
- package/dist/Slider.cjs +111 -112
- package/dist/Slider.cjs.map +1 -1
- package/dist/Slider.css +87 -93
- package/dist/Slider.css.map +1 -1
- package/dist/Slider.mjs +112 -113
- package/dist/Slider.mjs.map +1 -1
- package/dist/StatusLight.cjs +28 -32
- package/dist/StatusLight.cjs.map +1 -1
- package/dist/StatusLight.css +26 -32
- package/dist/StatusLight.css.map +1 -1
- package/dist/StatusLight.mjs +28 -32
- package/dist/StatusLight.mjs.map +1 -1
- package/dist/Switch.cjs +56 -60
- package/dist/Switch.cjs.map +1 -1
- package/dist/Switch.css +48 -54
- package/dist/Switch.css.map +1 -1
- package/dist/Switch.mjs +57 -61
- package/dist/Switch.mjs.map +1 -1
- package/dist/TableView.cjs +271 -275
- package/dist/TableView.cjs.map +1 -1
- package/dist/TableView.css +104 -102
- package/dist/TableView.css.map +1 -1
- package/dist/TableView.mjs +273 -277
- package/dist/TableView.mjs.map +1 -1
- package/dist/Tabs.cjs +472 -191
- package/dist/Tabs.cjs.map +1 -1
- package/dist/Tabs.css +225 -139
- package/dist/Tabs.css.map +1 -1
- package/dist/Tabs.mjs +472 -191
- package/dist/Tabs.mjs.map +1 -1
- package/dist/TabsPicker.cjs +415 -0
- package/dist/TabsPicker.cjs.map +1 -0
- package/dist/TabsPicker.css +482 -0
- package/dist/TabsPicker.css.map +1 -0
- package/dist/TabsPicker.mjs +409 -0
- package/dist/TabsPicker.mjs.map +1 -0
- package/dist/TagGroup.cjs +126 -128
- package/dist/TagGroup.cjs.map +1 -1
- package/dist/TagGroup.css +93 -99
- package/dist/TagGroup.css.map +1 -1
- package/dist/TagGroup.mjs +126 -128
- package/dist/TagGroup.mjs.map +1 -1
- package/dist/TextField.cjs +44 -55
- package/dist/TextField.cjs.map +1 -1
- package/dist/TextField.css +33 -39
- package/dist/TextField.css.map +1 -1
- package/dist/TextField.mjs +45 -56
- package/dist/TextField.mjs.map +1 -1
- package/dist/ToggleButton.cjs +6 -9
- package/dist/ToggleButton.cjs.map +1 -1
- package/dist/ToggleButton.css +8 -12
- package/dist/ToggleButton.css.map +1 -1
- package/dist/ToggleButton.mjs +6 -9
- package/dist/ToggleButton.mjs.map +1 -1
- package/dist/ToggleButtonGroup.cjs +2 -5
- package/dist/ToggleButtonGroup.cjs.map +1 -1
- package/dist/ToggleButtonGroup.mjs +2 -5
- package/dist/ToggleButtonGroup.mjs.map +1 -1
- package/dist/Tooltip.cjs +49 -49
- package/dist/Tooltip.cjs.map +1 -1
- package/dist/Tooltip.css +55 -76
- package/dist/Tooltip.css.map +1 -1
- package/dist/Tooltip.mjs +50 -50
- package/dist/Tooltip.mjs.map +1 -1
- package/dist/TreeView.cjs +439 -0
- package/dist/TreeView.cjs.map +1 -0
- package/dist/TreeView.css +608 -0
- package/dist/TreeView.css.map +1 -0
- package/dist/TreeView.mjs +432 -0
- package/dist/TreeView.mjs.map +1 -0
- package/dist/ar-AE.cjs +10 -2
- package/dist/ar-AE.cjs.map +1 -1
- package/dist/ar-AE.mjs +10 -2
- package/dist/ar-AE.mjs.map +1 -1
- package/dist/bg-BG.cjs +11 -2
- package/dist/bg-BG.cjs.map +1 -1
- package/dist/bg-BG.mjs +11 -2
- package/dist/bg-BG.mjs.map +1 -1
- package/dist/cs-CZ.cjs +7 -2
- package/dist/cs-CZ.cjs.map +1 -1
- package/dist/cs-CZ.mjs +7 -2
- package/dist/cs-CZ.mjs.map +1 -1
- package/dist/da-DK.cjs +12 -4
- package/dist/da-DK.cjs.map +1 -1
- package/dist/da-DK.mjs +12 -4
- package/dist/da-DK.mjs.map +1 -1
- package/dist/de-DE.cjs +11 -2
- package/dist/de-DE.cjs.map +1 -1
- package/dist/de-DE.mjs +11 -2
- package/dist/de-DE.mjs.map +1 -1
- package/dist/el-GR.cjs +11 -2
- package/dist/el-GR.cjs.map +1 -1
- package/dist/el-GR.mjs +11 -2
- package/dist/el-GR.mjs.map +1 -1
- package/dist/en-US.cjs +8 -0
- package/dist/en-US.cjs.map +1 -1
- package/dist/en-US.mjs +8 -0
- package/dist/en-US.mjs.map +1 -1
- package/dist/es-ES.cjs +11 -2
- package/dist/es-ES.cjs.map +1 -1
- package/dist/es-ES.mjs +11 -2
- package/dist/es-ES.mjs.map +1 -1
- package/dist/et-EE.cjs +10 -2
- package/dist/et-EE.cjs.map +1 -1
- package/dist/et-EE.mjs +10 -2
- package/dist/et-EE.mjs.map +1 -1
- package/dist/fi-FI.cjs +10 -2
- package/dist/fi-FI.cjs.map +1 -1
- package/dist/fi-FI.mjs +10 -2
- package/dist/fi-FI.mjs.map +1 -1
- package/dist/fr-FR.cjs +11 -2
- package/dist/fr-FR.cjs.map +1 -1
- package/dist/fr-FR.mjs +11 -2
- package/dist/fr-FR.mjs.map +1 -1
- package/dist/he-IL.cjs +11 -2
- package/dist/he-IL.cjs.map +1 -1
- package/dist/he-IL.mjs +11 -2
- package/dist/he-IL.mjs.map +1 -1
- package/dist/hr-HR.cjs +7 -2
- package/dist/hr-HR.cjs.map +1 -1
- package/dist/hr-HR.mjs +7 -2
- package/dist/hr-HR.mjs.map +1 -1
- package/dist/hu-HU.cjs +10 -2
- package/dist/hu-HU.cjs.map +1 -1
- package/dist/hu-HU.mjs +10 -2
- package/dist/hu-HU.mjs.map +1 -1
- package/dist/it-IT.cjs +11 -2
- package/dist/it-IT.cjs.map +1 -1
- package/dist/it-IT.mjs +11 -2
- package/dist/it-IT.mjs.map +1 -1
- package/dist/ja-JP.cjs +10 -2
- package/dist/ja-JP.cjs.map +1 -1
- package/dist/ja-JP.mjs +10 -2
- package/dist/ja-JP.mjs.map +1 -1
- package/dist/ko-KR.cjs +12 -4
- package/dist/ko-KR.cjs.map +1 -1
- package/dist/ko-KR.mjs +12 -4
- package/dist/ko-KR.mjs.map +1 -1
- package/dist/lt-LT.cjs +9 -4
- package/dist/lt-LT.cjs.map +1 -1
- package/dist/lt-LT.mjs +9 -4
- package/dist/lt-LT.mjs.map +1 -1
- package/dist/lv-LV.cjs +11 -3
- package/dist/lv-LV.cjs.map +1 -1
- package/dist/lv-LV.mjs +11 -3
- package/dist/lv-LV.mjs.map +1 -1
- package/dist/main.cjs +9 -0
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +5 -1
- package/dist/module.mjs.map +1 -1
- package/dist/nb-NO.cjs +9 -4
- package/dist/nb-NO.cjs.map +1 -1
- package/dist/nb-NO.mjs +9 -4
- package/dist/nb-NO.mjs.map +1 -1
- package/dist/nl-NL.cjs +10 -2
- package/dist/nl-NL.cjs.map +1 -1
- package/dist/nl-NL.mjs +10 -2
- package/dist/nl-NL.mjs.map +1 -1
- package/dist/pl-PL.cjs +8 -3
- package/dist/pl-PL.cjs.map +1 -1
- package/dist/pl-PL.mjs +8 -3
- package/dist/pl-PL.mjs.map +1 -1
- package/dist/pt-BR.cjs +11 -2
- package/dist/pt-BR.cjs.map +1 -1
- package/dist/pt-BR.mjs +11 -2
- package/dist/pt-BR.mjs.map +1 -1
- package/dist/pt-PT.cjs +11 -2
- package/dist/pt-PT.cjs.map +1 -1
- package/dist/pt-PT.mjs +11 -2
- package/dist/pt-PT.mjs.map +1 -1
- package/dist/ro-RO.cjs +12 -3
- package/dist/ro-RO.cjs.map +1 -1
- package/dist/ro-RO.mjs +12 -3
- package/dist/ro-RO.mjs.map +1 -1
- package/dist/ru-RU.cjs +7 -2
- package/dist/ru-RU.cjs.map +1 -1
- package/dist/ru-RU.mjs +7 -2
- package/dist/ru-RU.mjs.map +1 -1
- package/dist/sk-SK.cjs +7 -2
- package/dist/sk-SK.cjs.map +1 -1
- package/dist/sk-SK.mjs +7 -2
- package/dist/sk-SK.mjs.map +1 -1
- package/dist/sl-SI.cjs +7 -2
- package/dist/sl-SI.cjs.map +1 -1
- package/dist/sl-SI.mjs +7 -2
- package/dist/sl-SI.mjs.map +1 -1
- package/dist/sr-SP.cjs +7 -2
- package/dist/sr-SP.cjs.map +1 -1
- package/dist/sr-SP.mjs +7 -2
- package/dist/sr-SP.mjs.map +1 -1
- package/dist/sv-SE.cjs +11 -2
- package/dist/sv-SE.cjs.map +1 -1
- package/dist/sv-SE.mjs +11 -2
- package/dist/sv-SE.mjs.map +1 -1
- package/dist/tr-TR.cjs +10 -2
- package/dist/tr-TR.cjs.map +1 -1
- package/dist/tr-TR.mjs +10 -2
- package/dist/tr-TR.mjs.map +1 -1
- package/dist/types.d.ts +227 -168
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.cjs +7 -2
- package/dist/uk-UA.cjs.map +1 -1
- package/dist/uk-UA.mjs +7 -2
- package/dist/uk-UA.mjs.map +1 -1
- package/dist/zh-CN.cjs +10 -2
- package/dist/zh-CN.cjs.map +1 -1
- package/dist/zh-CN.mjs +10 -2
- package/dist/zh-CN.mjs.map +1 -1
- package/dist/zh-TW.cjs +10 -2
- package/dist/zh-TW.cjs.map +1 -1
- package/dist/zh-TW.mjs +10 -2
- package/dist/zh-TW.mjs.map +1 -1
- package/icons/3DMaterial.cjs.map +1 -1
- package/icons/3DMaterial.mjs.map +1 -1
- package/icons/ABC.cjs +36 -0
- package/icons/ABC.cjs.map +1 -0
- package/icons/ABC.mjs +25 -0
- package/icons/ABC.mjs.map +1 -0
- package/icons/AlertDiamond.cjs.map +1 -1
- package/icons/AlertDiamond.mjs.map +1 -1
- package/icons/Animation.cjs.map +1 -1
- package/icons/Animation.mjs.map +1 -1
- package/icons/AnimationNo.cjs.map +1 -1
- package/icons/AnimationNo.mjs.map +1 -1
- package/icons/App.cjs +42 -0
- package/icons/App.cjs.map +1 -0
- package/icons/App.mjs +31 -0
- package/icons/App.mjs.map +1 -0
- package/icons/AspectRatio.cjs.map +1 -1
- package/icons/AspectRatio.mjs.map +1 -1
- package/icons/Asset.cjs +1 -5
- package/icons/Asset.cjs.map +1 -1
- package/icons/Asset.mjs +1 -5
- package/icons/Asset.mjs.map +1 -1
- package/icons/AudioWave.cjs.map +1 -1
- package/icons/AudioWave.mjs.map +1 -1
- package/icons/BadgeVerified.cjs.map +1 -1
- package/icons/BadgeVerified.mjs.map +1 -1
- package/icons/Bell.cjs.map +1 -1
- package/icons/Bell.mjs.map +1 -1
- package/icons/Bookmark.cjs +36 -0
- package/icons/Bookmark.cjs.map +1 -0
- package/icons/Bookmark.mjs +25 -0
- package/icons/Bookmark.mjs.map +1 -0
- package/icons/Brand.cjs.map +1 -1
- package/icons/Brand.mjs.map +1 -1
- package/icons/Building.cjs +62 -0
- package/icons/Building.cjs.map +1 -0
- package/icons/Building.mjs +51 -0
- package/icons/Building.mjs.map +1 -0
- package/icons/CalendarEdit.cjs.map +1 -1
- package/icons/CalendarEdit.mjs.map +1 -1
- package/icons/CallCenter.cjs +36 -0
- package/icons/CallCenter.cjs.map +1 -0
- package/icons/CallCenter.mjs +25 -0
- package/icons/CallCenter.mjs.map +1 -0
- package/icons/CameraProperties.cjs.map +1 -1
- package/icons/CameraProperties.mjs.map +1 -1
- package/icons/Channel.cjs.map +1 -1
- package/icons/Channel.mjs.map +1 -1
- package/icons/ChartBarVert.cjs +36 -0
- package/icons/ChartBarVert.cjs.map +1 -0
- package/icons/ChartBarVert.mjs +25 -0
- package/icons/ChartBarVert.mjs.map +1 -0
- package/icons/ChartPie.cjs +36 -0
- package/icons/ChartPie.cjs.map +1 -0
- package/icons/ChartPie.mjs +25 -0
- package/icons/ChartPie.mjs.map +1 -0
- package/icons/ChartTrend.cjs +36 -0
- package/icons/ChartTrend.cjs.map +1 -0
- package/icons/ChartTrend.mjs +25 -0
- package/icons/ChartTrend.mjs.map +1 -0
- package/icons/Chat.cjs +36 -0
- package/icons/Chat.cjs.map +1 -0
- package/icons/Chat.mjs +25 -0
- package/icons/Chat.mjs.map +1 -0
- package/icons/CheckBox.cjs.map +1 -1
- package/icons/CheckBox.mjs.map +1 -1
- package/icons/Checkmark.cjs +8 -8
- package/icons/Checkmark.cjs.map +1 -1
- package/icons/Checkmark.mjs +8 -8
- package/icons/Checkmark.mjs.map +1 -1
- package/icons/ChevronDoubleLeft.cjs +42 -0
- package/icons/ChevronDoubleLeft.cjs.map +1 -0
- package/icons/ChevronDoubleLeft.d.ts +5 -0
- package/icons/ChevronDoubleLeft.mjs +31 -0
- package/icons/ChevronDoubleLeft.mjs.map +1 -0
- package/icons/ChevronDoubleRight.cjs +42 -0
- package/icons/ChevronDoubleRight.cjs.map +1 -0
- package/icons/ChevronDoubleRight.d.ts +5 -0
- package/icons/ChevronDoubleRight.mjs +31 -0
- package/icons/ChevronDoubleRight.mjs.map +1 -0
- package/icons/ChevronDown.cjs +8 -8
- package/icons/ChevronDown.cjs.map +1 -1
- package/icons/ChevronDown.mjs +8 -8
- package/icons/ChevronDown.mjs.map +1 -1
- package/icons/ChevronLeft.cjs.map +1 -1
- package/icons/ChevronLeft.mjs.map +1 -1
- package/icons/ChevronRight.cjs.map +1 -1
- package/icons/ChevronRight.mjs.map +1 -1
- package/icons/ChevronUp.cjs +36 -0
- package/icons/ChevronUp.cjs.map +1 -0
- package/icons/ChevronUp.d.ts +5 -0
- package/icons/ChevronUp.mjs +25 -0
- package/icons/ChevronUp.mjs.map +1 -0
- package/icons/Circle.cjs.map +1 -1
- package/icons/Circle.mjs.map +1 -1
- package/icons/Close.cjs.map +1 -1
- package/icons/Close.mjs.map +1 -1
- package/icons/CloseCaptions.cjs.map +1 -1
- package/icons/CloseCaptions.mjs.map +1 -1
- package/icons/Code.cjs +36 -0
- package/icons/Code.cjs.map +1 -0
- package/icons/Code.d.ts +5 -0
- package/icons/Code.mjs +25 -0
- package/icons/Code.mjs.map +1 -0
- package/icons/Collection.cjs.map +1 -1
- package/icons/Collection.mjs.map +1 -1
- package/icons/ColorHarmony.cjs.map +1 -1
- package/icons/ColorHarmony.mjs.map +1 -1
- package/icons/CommentCheckmark.cjs.map +1 -1
- package/icons/CommentCheckmark.mjs.map +1 -1
- package/icons/CommentHide.cjs.map +1 -1
- package/icons/CommentHide.mjs.map +1 -1
- package/icons/CommentRemove.cjs.map +1 -1
- package/icons/CommentRemove.mjs.map +1 -1
- package/icons/Compare.cjs +42 -0
- package/icons/Compare.cjs.map +1 -0
- package/icons/Compare.d.ts +5 -0
- package/icons/Compare.mjs +31 -0
- package/icons/Compare.mjs.map +1 -0
- package/icons/ContextualTaskBar.cjs.map +1 -1
- package/icons/ContextualTaskBar.mjs.map +1 -1
- package/icons/CornerRadiusBottomLeft.cjs.map +1 -1
- package/icons/CornerRadiusBottomLeft.mjs.map +1 -1
- package/icons/CornerRadiusBottomRight.cjs.map +1 -1
- package/icons/CornerRadiusBottomRight.mjs.map +1 -1
- package/icons/CornerRadiusTopLeft.cjs.map +1 -1
- package/icons/CornerRadiusTopLeft.mjs.map +1 -1
- package/icons/CornerRadiusTopRight.cjs.map +1 -1
- package/icons/CornerRadiusTopRight.mjs.map +1 -1
- package/icons/CursorClick.cjs.map +1 -1
- package/icons/CursorClick.mjs.map +1 -1
- package/icons/Data.cjs +1 -1
- package/icons/Data.cjs.map +1 -1
- package/icons/Data.mjs +1 -1
- package/icons/Data.mjs.map +1 -1
- package/icons/DataAdd.cjs.map +1 -1
- package/icons/DataAdd.mjs.map +1 -1
- package/icons/DataRefresh.cjs +42 -0
- package/icons/DataRefresh.cjs.map +1 -0
- package/icons/DataRefresh.d.ts +5 -0
- package/icons/DataRefresh.mjs +31 -0
- package/icons/DataRefresh.mjs.map +1 -0
- package/icons/DataSettings.cjs +2 -2
- package/icons/DataSettings.cjs.map +1 -1
- package/icons/DataSettings.mjs +2 -2
- package/icons/DataSettings.mjs.map +1 -1
- package/icons/DataUpload.cjs +2 -2
- package/icons/DataUpload.cjs.map +1 -1
- package/icons/DataUpload.mjs +2 -2
- package/icons/DataUpload.mjs.map +1 -1
- package/icons/DeviceTablet.cjs.map +1 -1
- package/icons/DeviceTablet.mjs.map +1 -1
- package/icons/Draw.cjs.map +1 -1
- package/icons/Draw.mjs.map +1 -1
- package/icons/Edit.cjs.map +1 -1
- package/icons/Edit.mjs.map +1 -1
- package/icons/EditNo.cjs.map +1 -1
- package/icons/EditNo.mjs.map +1 -1
- package/icons/Email.cjs.map +1 -1
- package/icons/Email.mjs.map +1 -1
- package/icons/Enterprise.cjs +46 -0
- package/icons/Enterprise.cjs.map +1 -0
- package/icons/Enterprise.d.ts +5 -0
- package/icons/Enterprise.mjs +35 -0
- package/icons/Enterprise.mjs.map +1 -0
- package/icons/Export.cjs +42 -0
- package/icons/Export.cjs.map +1 -0
- package/icons/Export.d.ts +5 -0
- package/icons/Export.mjs +31 -0
- package/icons/Export.mjs.map +1 -0
- package/icons/Filter.cjs.map +1 -1
- package/icons/Filter.mjs.map +1 -1
- package/icons/FlipHorizontal.cjs +1 -21
- package/icons/FlipHorizontal.cjs.map +1 -1
- package/icons/FlipHorizontal.mjs +1 -21
- package/icons/FlipHorizontal.mjs.map +1 -1
- package/icons/FlipVertical.cjs +1 -21
- package/icons/FlipVertical.cjs.map +1 -1
- package/icons/FlipVertical.mjs +1 -21
- package/icons/FlipVertical.mjs.map +1 -1
- package/icons/FolderMoveTo.cjs.map +1 -1
- package/icons/FolderMoveTo.mjs.map +1 -1
- package/icons/FolderSearch.cjs +42 -0
- package/icons/FolderSearch.cjs.map +1 -0
- package/icons/FolderSearch.d.ts +5 -0
- package/icons/FolderSearch.mjs +31 -0
- package/icons/FolderSearch.mjs.map +1 -0
- package/icons/FontPicker.cjs.map +1 -1
- package/icons/FontPicker.mjs.map +1 -1
- package/icons/GlobeGrid.cjs.map +1 -1
- package/icons/GlobeGrid.mjs.map +1 -1
- package/icons/GradientHorizontal.cjs.map +1 -1
- package/icons/GradientHorizontal.mjs.map +1 -1
- package/icons/GridsAndRulers.cjs.map +1 -1
- package/icons/GridsAndRulers.mjs.map +1 -1
- package/icons/Icon.cjs.map +1 -1
- package/icons/Icon.mjs.map +1 -1
- package/icons/Image.cjs.map +1 -1
- package/icons/Image.mjs.map +1 -1
- package/icons/ImageAdd.cjs +1 -5
- package/icons/ImageAdd.cjs.map +1 -1
- package/icons/ImageAdd.mjs +1 -5
- package/icons/ImageAdd.mjs.map +1 -1
- package/icons/ImageBackgroundRemove.cjs.map +1 -1
- package/icons/ImageBackgroundRemove.mjs.map +1 -1
- package/icons/Images.cjs.map +1 -1
- package/icons/Images.mjs.map +1 -1
- package/icons/Import.cjs +42 -0
- package/icons/Import.cjs.map +1 -0
- package/icons/Import.d.ts +5 -0
- package/icons/Import.mjs +31 -0
- package/icons/Import.mjs.map +1 -0
- package/icons/Key.cjs +36 -0
- package/icons/Key.cjs.map +1 -0
- package/icons/Key.d.ts +5 -0
- package/icons/Key.mjs +25 -0
- package/icons/Key.mjs.map +1 -0
- package/icons/ListMultiSelect.cjs.map +1 -1
- package/icons/ListMultiSelect.mjs.map +1 -1
- package/icons/ListNumbered.cjs.map +1 -1
- package/icons/ListNumbered.mjs.map +1 -1
- package/icons/Logo.cjs.map +1 -1
- package/icons/Logo.mjs.map +1 -1
- package/icons/Market.cjs.map +1 -1
- package/icons/Market.mjs.map +1 -1
- package/icons/Microphone.cjs.map +1 -1
- package/icons/Microphone.mjs.map +1 -1
- package/icons/MicrophoneOff.cjs.map +1 -1
- package/icons/MicrophoneOff.mjs.map +1 -1
- package/icons/MusicNote.cjs.map +1 -1
- package/icons/MusicNote.mjs.map +1 -1
- package/icons/OrientationPortrait.cjs.map +1 -1
- package/icons/OrientationPortrait.mjs.map +1 -1
- package/icons/Pause.cjs.map +1 -1
- package/icons/Pause.mjs.map +1 -1
- package/icons/PauseCircle.cjs.map +1 -1
- package/icons/PauseCircle.mjs.map +1 -1
- package/icons/PeopleGroup.cjs +36 -0
- package/icons/PeopleGroup.cjs.map +1 -0
- package/icons/PeopleGroup.d.ts +5 -0
- package/icons/PeopleGroup.mjs +25 -0
- package/icons/PeopleGroup.mjs.map +1 -0
- package/icons/Percentage.cjs.map +1 -1
- package/icons/Percentage.mjs.map +1 -1
- package/icons/PinOff.cjs.map +1 -1
- package/icons/PinOff.mjs.map +1 -1
- package/icons/PinOn.cjs.map +1 -1
- package/icons/PinOn.mjs.map +1 -1
- package/icons/Play.cjs.map +1 -1
- package/icons/Play.mjs.map +1 -1
- package/icons/PluginGear.cjs.map +1 -1
- package/icons/PluginGear.mjs.map +1 -1
- package/icons/Polygon6.cjs.map +1 -1
- package/icons/Polygon6.mjs.map +1 -1
- package/icons/Publish.cjs.map +1 -1
- package/icons/Publish.mjs.map +1 -1
- package/icons/PublishNo.cjs.map +1 -1
- package/icons/PublishNo.mjs.map +1 -1
- package/icons/RadioButton.cjs.map +1 -1
- package/icons/RadioButton.mjs.map +1 -1
- package/icons/RectangleHoriz.cjs.map +1 -1
- package/icons/RectangleHoriz.mjs.map +1 -1
- package/icons/RocketQuickActions.cjs.map +1 -1
- package/icons/RocketQuickActions.mjs.map +1 -1
- package/icons/RotateCW.cjs.map +1 -1
- package/icons/RotateCW.mjs.map +1 -1
- package/icons/Ruler.cjs.map +1 -1
- package/icons/Ruler.mjs.map +1 -1
- package/icons/SaveFloppy.cjs +36 -0
- package/icons/SaveFloppy.cjs.map +1 -0
- package/icons/SaveFloppy.d.ts +5 -0
- package/icons/SaveFloppy.mjs +25 -0
- package/icons/SaveFloppy.mjs.map +1 -0
- package/icons/Select.cjs.map +1 -1
- package/icons/Select.mjs.map +1 -1
- package/icons/Send.cjs.map +1 -1
- package/icons/Send.mjs.map +1 -1
- package/icons/Shuffle.cjs.map +1 -1
- package/icons/Shuffle.mjs.map +1 -1
- package/icons/Skeleton.cjs +8 -6
- package/icons/Skeleton.cjs.map +1 -1
- package/icons/Skeleton.css +8 -10
- package/icons/Skeleton.css.map +1 -1
- package/icons/Skeleton.mjs +9 -7
- package/icons/Skeleton.mjs.map +1 -1
- package/icons/SlowConnectionCircle.cjs.map +1 -1
- package/icons/SlowConnectionCircle.mjs.map +1 -1
- package/icons/SpeedFast.cjs +36 -0
- package/icons/SpeedFast.cjs.map +1 -0
- package/icons/SpeedFast.d.ts +5 -0
- package/icons/SpeedFast.mjs +25 -0
- package/icons/SpeedFast.mjs.map +1 -0
- package/icons/StepBackward.cjs.map +1 -1
- package/icons/StepBackward.mjs.map +1 -1
- package/icons/StepForward.cjs.map +1 -1
- package/icons/StepForward.mjs.map +1 -1
- package/icons/Table.cjs.map +1 -1
- package/icons/Table.mjs.map +1 -1
- package/icons/Tag.cjs.map +1 -1
- package/icons/Tag.mjs.map +1 -1
- package/icons/Target.cjs.map +1 -1
- package/icons/Target.mjs.map +1 -1
- package/icons/TextBold.cjs.map +1 -1
- package/icons/TextBold.mjs.map +1 -1
- package/icons/TextHighlight.cjs.map +1 -1
- package/icons/TextHighlight.mjs.map +1 -1
- package/icons/TextIncrease.cjs.map +1 -1
- package/icons/TextIncrease.mjs.map +1 -1
- package/icons/TextNumbers.cjs.map +1 -1
- package/icons/TextNumbers.mjs.map +1 -1
- package/icons/TextParagraph.cjs.map +1 -1
- package/icons/TextParagraph.mjs.map +1 -1
- package/icons/TextReplaceComment.cjs.map +1 -1
- package/icons/TextReplaceComment.mjs.map +1 -1
- package/icons/Tools.cjs.map +1 -1
- package/icons/Tools.mjs.map +1 -1
- package/icons/TouchOneFingerSwipeLeftRight.cjs.map +1 -1
- package/icons/TouchOneFingerSwipeLeftRight.mjs.map +1 -1
- package/icons/Transcript.cjs.map +1 -1
- package/icons/Transcript.mjs.map +1 -1
- package/icons/Translate.cjs.map +1 -1
- package/icons/Translate.mjs.map +1 -1
- package/icons/UserAvatarCursor.cjs.map +1 -1
- package/icons/UserAvatarCursor.mjs.map +1 -1
- package/icons/UserEdit.cjs.map +1 -1
- package/icons/UserEdit.mjs.map +1 -1
- package/icons/UserGroup.cjs.map +1 -1
- package/icons/UserGroup.mjs.map +1 -1
- package/icons/UserSettings.cjs +44 -0
- package/icons/UserSettings.cjs.map +1 -0
- package/icons/UserSettings.d.ts +5 -0
- package/icons/UserSettings.mjs +33 -0
- package/icons/UserSettings.mjs.map +1 -0
- package/icons/VectorDraw.cjs.map +1 -1
- package/icons/VectorDraw.mjs.map +1 -1
- package/icons/ViewGridFluid.cjs +36 -0
- package/icons/ViewGridFluid.cjs.map +1 -0
- package/icons/ViewGridFluid.d.ts +5 -0
- package/icons/ViewGridFluid.mjs +25 -0
- package/icons/ViewGridFluid.mjs.map +1 -0
- package/icons/ZoomIn.cjs.map +1 -1
- package/icons/ZoomIn.mjs.map +1 -1
- package/icons/ZoomOut.cjs.map +1 -1
- package/icons/ZoomOut.mjs.map +1 -1
- package/package.json +19 -21
- package/src/Accordion.tsx +6 -9
- package/src/ActionBar.tsx +229 -0
- package/src/ActionButton.tsx +27 -54
- package/src/ActionButtonGroup.tsx +9 -11
- package/src/ActionMenu.tsx +6 -9
- package/src/AlertDialog.tsx +5 -8
- package/src/Avatar.tsx +6 -9
- package/src/AvatarGroup.tsx +6 -9
- package/src/Badge.tsx +32 -16
- package/src/Breadcrumbs.tsx +19 -25
- package/src/Button.tsx +201 -158
- package/src/ButtonGroup.tsx +6 -9
- package/src/Card.tsx +2 -2
- package/src/CardView.tsx +54 -377
- package/src/Checkbox.tsx +7 -10
- package/src/CheckboxGroup.tsx +8 -11
- package/src/ClearButton.tsx +2 -5
- package/src/CloseButton.tsx +22 -32
- package/src/ColorArea.tsx +6 -9
- package/src/ColorField.tsx +6 -9
- package/src/ColorSlider.tsx +6 -9
- package/src/ColorSwatch.tsx +7 -10
- package/src/ColorSwatchPicker.tsx +6 -10
- package/src/ColorWheel.tsx +6 -9
- package/src/ComboBox.tsx +7 -9
- package/src/Content.tsx +23 -39
- package/src/ContextualHelp.tsx +7 -10
- package/src/CustomDialog.tsx +5 -8
- package/src/Dialog.tsx +6 -9
- package/src/Disclosure.tsx +16 -25
- package/src/Divider.tsx +17 -26
- package/src/DropZone.tsx +7 -10
- package/src/Field.tsx +26 -33
- package/src/Form.tsx +7 -10
- package/src/FullscreenDialog.tsx +5 -8
- package/src/Icon.tsx +2 -2
- package/src/IllustratedMessage.tsx +7 -10
- package/src/Image.tsx +21 -10
- package/src/InlineAlert.tsx +6 -10
- package/src/Link.tsx +15 -23
- package/src/Menu.tsx +77 -36
- package/src/Meter.tsx +14 -24
- package/src/Modal.tsx +22 -52
- package/src/NumberField.tsx +6 -9
- package/src/Picker.tsx +88 -69
- package/src/Popover.tsx +32 -105
- package/src/ProgressBar.tsx +15 -25
- package/src/ProgressCircle.tsx +19 -25
- package/src/Radio.tsx +6 -9
- package/src/RadioGroup.tsx +8 -11
- package/src/RangeSlider.tsx +3 -6
- package/src/SearchField.tsx +6 -9
- package/src/SegmentedControl.tsx +16 -25
- package/src/Skeleton.tsx +6 -8
- package/src/Slider.tsx +3 -6
- package/src/StatusLight.tsx +7 -10
- package/src/Switch.tsx +7 -10
- package/src/TableView.tsx +120 -121
- package/src/Tabs.tsx +450 -147
- package/src/TabsPicker.tsx +350 -0
- package/src/TagGroup.tsx +11 -18
- package/src/TextField.tsx +22 -30
- package/src/ToggleButton.tsx +9 -11
- package/src/ToggleButtonGroup.tsx +6 -9
- package/src/Tooltip.tsx +34 -55
- package/src/TreeView.tsx +450 -0
- package/src/bar-utils.ts +3 -10
- package/src/index.ts +4 -0
- package/src/style-utils.ts +15 -9
- package/style/__tests__/style-macro.test.js +3 -7
- package/style/dist/main.cjs +1 -0
- package/style/dist/main.cjs.map +1 -1
- package/style/dist/module.mjs +2 -2
- package/style/dist/module.mjs.map +1 -1
- package/style/dist/spectrum-theme.cjs +72 -5
- package/style/dist/spectrum-theme.cjs.map +1 -1
- package/style/dist/spectrum-theme.mjs +72 -6
- package/style/dist/spectrum-theme.mjs.map +1 -1
- package/style/dist/style-macro.cjs +18 -4
- package/style/dist/style-macro.cjs.map +1 -1
- package/style/dist/style-macro.mjs +18 -4
- package/style/dist/style-macro.mjs.map +1 -1
- package/style/dist/types.d.ts +50 -29
- package/style/dist/types.d.ts.map +1 -1
- package/style/index.ts +1 -1
- package/style/spectrum-theme.ts +72 -8
- package/style/style-macro.ts +29 -7
- package/style/tokens.ts +30 -0
- package/style/types.ts +1 -1
- package/icons/CloudStateDefault.cjs +0 -36
- package/icons/CloudStateDefault.cjs.map +0 -1
- package/icons/CloudStateDefault.mjs +0 -25
- package/icons/CloudStateDefault.mjs.map +0 -1
- package/icons/CloudStateDisconnected.cjs +0 -36
- package/icons/CloudStateDisconnected.cjs.map +0 -1
- package/icons/CloudStateDisconnected.mjs +0 -25
- package/icons/CloudStateDisconnected.mjs.map +0 -1
- package/icons/CloudStateError.cjs +0 -36
- package/icons/CloudStateError.cjs.map +0 -1
- package/icons/CloudStateError.mjs +0 -25
- package/icons/CloudStateError.mjs.map +0 -1
- package/icons/CloudStateErrorRed.cjs +0 -46
- package/icons/CloudStateErrorRed.cjs.map +0 -1
- package/icons/CloudStateErrorRed.mjs +0 -35
- package/icons/CloudStateErrorRed.mjs.map +0 -1
- package/icons/CloudStateInProgress.cjs +0 -36
- package/icons/CloudStateInProgress.cjs.map +0 -1
- package/icons/CloudStateInProgress.mjs +0 -25
- package/icons/CloudStateInProgress.mjs.map +0 -1
- package/icons/CloudStateOnline.cjs +0 -50
- package/icons/CloudStateOnline.cjs.map +0 -1
- package/icons/CloudStateOnline.mjs +0 -39
- package/icons/CloudStateOnline.mjs.map +0 -1
- package/icons/CloudStatePaused.cjs +0 -36
- package/icons/CloudStatePaused.cjs.map +0 -1
- package/icons/CloudStatePaused.mjs +0 -25
- package/icons/CloudStatePaused.mjs.map +0 -1
- package/icons/CloudStatePending.cjs +0 -42
- package/icons/CloudStatePending.cjs.map +0 -1
- package/icons/CloudStatePending.mjs +0 -31
- package/icons/CloudStatePending.mjs.map +0 -1
- package/icons/CloudStateSlowConnection.cjs +0 -36
- package/icons/CloudStateSlowConnection.cjs.map +0 -1
- package/icons/CloudStateSlowConnection.mjs +0 -25
- package/icons/CloudStateSlowConnection.mjs.map +0 -1
- /package/icons/{CloudStateDefault.d.ts → ABC.d.ts} +0 -0
- /package/icons/{CloudStateDisconnected.d.ts → App.d.ts} +0 -0
- /package/icons/{CloudStateError.d.ts → Bookmark.d.ts} +0 -0
- /package/icons/{CloudStateErrorRed.d.ts → Building.d.ts} +0 -0
- /package/icons/{CloudStateInProgress.d.ts → CallCenter.d.ts} +0 -0
- /package/icons/{CloudStateOnline.d.ts → ChartBarVert.d.ts} +0 -0
- /package/icons/{CloudStatePaused.d.ts → ChartPie.d.ts} +0 -0
- /package/icons/{CloudStatePending.d.ts → ChartTrend.d.ts} +0 -0
- /package/icons/{CloudStateSlowConnection.d.ts → Chat.d.ts} +0 -0
package/dist/types.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import React, { CSSProperties, ReactNode, Context, RefAttributes, ForwardRefExoticComponent, JSXElementConstructor, ReactElement, ReactPortal, JSX, HTMLAttributeReferrerPolicy, ComponentType, FunctionComponent, SVGProps, RefObject } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { AriaLabelingProps, DOMProps, DOMRefValue, SpectrumLabelableProps, FocusableRefValue, LinkDOMProps, Key, LoadingState, HelpTextProps, Orientation, ValueBase, LabelPosition, InputDOMProps, RangeValue } from "@react-types/shared";
|
|
3
|
+
import { ContextValue, SlotProps, FormProps as _FormProps1, ButtonProps as _ButtonProps1, DisclosurePanelProps as _DisclosurePanelProps1, DisclosureProps as _DisclosureProps1, DisclosureGroupProps, 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, ProgressBarProps as _ProgressBarProps1, LinkProps as _LinkProps1, BreadcrumbsProps as _BreadcrumbsProps1, GridListItemProps, GridListProps, DialogTriggerProps as _DialogTriggerProps1, CheckboxGroupProps as _CheckboxGroupProps1, ColorAreaProps as _ColorAreaProps1, ColorFieldProps as _ColorFieldProps1, ColorSliderProps as _ColorSliderProps1, ColorSwatchProps as _ColorSwatchProps1, Color, ColorWheelProps as _ColorWheelProps1, SelectProps, ListBoxItemProps, ListBoxProps, SectionProps, ComboBoxProps as _ComboBoxProps1, DropZoneProps as _DropZoneProps1, MeterProps as _MeterProps1, NumberFieldProps as _NumberFieldProps1, RadioProps as _RadioProps1, RadioGroupProps as _RadioGroupProps1, SliderProps as _SliderProps1, SearchFieldProps as _SearchFieldProps1, SwitchProps as _SwitchProps1, Key as _Key1, 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, ToggleButtonGroupProps as _ToggleButtonGroupProps1, ToggleButtonProps as _ToggleButtonProps1, TooltipProps as _TooltipProps1, TooltipTriggerComponentProps, TreeItemProps, TreeProps, TreeItemContentProps } from "react-aria-components";
|
|
4
4
|
import { ColorScheme, Router } from "@react-types/provider";
|
|
5
5
|
import { AriaBreadcrumbItemProps } from "react-aria";
|
|
6
6
|
import { TextFieldRef } from "@react-types/textfield";
|
|
7
|
-
import { Color } from "@react-types/color";
|
|
8
7
|
import { SpectrumDialogContainerProps } from "@react-types/dialog";
|
|
9
8
|
import { ColumnSize } from "@react-types/table";
|
|
10
9
|
type StyleString<P = string> = string & {
|
|
11
10
|
properties: P;
|
|
12
11
|
};
|
|
13
|
-
declare const allowedOverrides: readonly ["margin", "marginStart", "marginEnd", "marginTop", "marginBottom", "marginX", "marginY", "
|
|
12
|
+
declare const allowedOverrides: readonly ["margin", "marginStart", "marginEnd", "marginTop", "marginBottom", "marginX", "marginY", "flexGrow", "flexShrink", "flexBasis", "justifySelf", "alignSelf", "order", "gridArea", "gridRow", "gridRowStart", "gridRowEnd", "gridColumn", "gridColumnStart", "gridColumnEnd", "position", "zIndex", "top", "bottom", "inset", "insetX", "insetY", "insetStart", "insetEnd"];
|
|
14
13
|
declare const widthProperties: readonly ["width", "minWidth", "maxWidth"];
|
|
15
14
|
declare const heightProperties: readonly ["size", "height", "minHeight", "maxHeight"];
|
|
16
15
|
type StylesProp = StyleString<(typeof allowedOverrides)[number] | (typeof widthProperties)[number]>;
|
|
@@ -26,7 +25,7 @@ interface StyleProps extends UnsafeStyles {
|
|
|
26
25
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
27
26
|
styles?: StylesProp;
|
|
28
27
|
}
|
|
29
|
-
export interface ActionButtonGroupProps extends UnsafeStyles, SlotProps {
|
|
28
|
+
export interface ActionButtonGroupProps extends AriaLabelingProps, UnsafeStyles, SlotProps {
|
|
30
29
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
31
30
|
styles?: StylesPropWithHeight;
|
|
32
31
|
/** The children of the group. */
|
|
@@ -46,7 +45,7 @@ export interface ActionButtonGroupProps extends UnsafeStyles, SlotProps {
|
|
|
46
45
|
/** Whether the buttons should divide the container width equally. */
|
|
47
46
|
isJustified?: boolean;
|
|
48
47
|
/** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */
|
|
49
|
-
staticColor?: 'white' | 'black';
|
|
48
|
+
staticColor?: 'white' | 'black' | 'auto';
|
|
50
49
|
/**
|
|
51
50
|
* The axis the group should align with.
|
|
52
51
|
* @default 'horizontal'
|
|
@@ -55,7 +54,7 @@ export interface ActionButtonGroupProps extends UnsafeStyles, SlotProps {
|
|
|
55
54
|
/** Whether the group is disabled. */
|
|
56
55
|
isDisabled?: boolean;
|
|
57
56
|
}
|
|
58
|
-
export const ActionButtonGroupContext: Context<ContextValue<ActionButtonGroupProps
|
|
57
|
+
export const ActionButtonGroupContext: Context<ContextValue<Partial<ActionButtonGroupProps>, HTMLDivElement>>;
|
|
59
58
|
/**
|
|
60
59
|
* An ActionButtonGroup is a grouping of related ActionButtons.
|
|
61
60
|
*/
|
|
@@ -110,6 +109,11 @@ export interface ImageProps extends UnsafeStyles, SlotProps {
|
|
|
110
109
|
* [See MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#decoding).
|
|
111
110
|
*/
|
|
112
111
|
decoding?: 'async' | 'auto' | 'sync';
|
|
112
|
+
/**
|
|
113
|
+
* Provides a hint of the relative priority to use when fetching the image.
|
|
114
|
+
* [See MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#fetchpriority).
|
|
115
|
+
*/
|
|
116
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
113
117
|
/**
|
|
114
118
|
* Whether the image should be loaded immediately or lazily when scrolled into view.
|
|
115
119
|
* [See MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#loading).
|
|
@@ -133,7 +137,7 @@ export interface ImageProps extends UnsafeStyles, SlotProps {
|
|
|
133
137
|
interface ImageContextValue extends ImageProps {
|
|
134
138
|
hidden?: boolean;
|
|
135
139
|
}
|
|
136
|
-
export const ImageContext: Context<ContextValue<ImageContextValue
|
|
140
|
+
export const ImageContext: Context<ContextValue<Partial<ImageContextValue>, HTMLDivElement>>;
|
|
137
141
|
export const Image: ForwardRefExoticComponent<ImageProps & RefAttributes<HTMLDivElement>>;
|
|
138
142
|
export interface AvatarProps extends UnsafeStyles, DOMProps, SlotProps {
|
|
139
143
|
/** Text description of the avatar. */
|
|
@@ -150,11 +154,11 @@ export interface AvatarProps extends UnsafeStyles, DOMProps, SlotProps {
|
|
|
150
154
|
/** Whether the avatar is over a color background. */
|
|
151
155
|
isOverBackground?: boolean;
|
|
152
156
|
}
|
|
153
|
-
export const AvatarContext: Context<ContextValue<AvatarProps
|
|
157
|
+
export const AvatarContext: Context<ContextValue<Partial<AvatarProps>, DOMRefValue<HTMLImageElement>>>;
|
|
154
158
|
/**
|
|
155
159
|
* An avatar is a thumbnail representation of an entity, such as a user or an organization.
|
|
156
160
|
*/
|
|
157
|
-
export
|
|
161
|
+
export const Avatar: ForwardRefExoticComponent<AvatarProps & RefAttributes<DOMRefValue<HTMLImageElement>>>;
|
|
158
162
|
export interface IconProps extends UnsafeStyles, SlotProps, AriaLabelingProps, DOMProps {
|
|
159
163
|
'aria-hidden'?: boolean | 'false' | 'true';
|
|
160
164
|
}
|
|
@@ -165,31 +169,32 @@ export interface IconContextValue extends UnsafeStyles, SlotProps {
|
|
|
165
169
|
interface IllustrationContextValue extends IconContextValue {
|
|
166
170
|
size?: 'S' | 'M' | 'L';
|
|
167
171
|
}
|
|
168
|
-
export const IconContext: Context<ContextValue<IconContextValue
|
|
169
|
-
export const IllustrationContext: Context<ContextValue<IllustrationContextValue
|
|
172
|
+
export const IconContext: Context<ContextValue<Partial<IconContextValue>, SVGElement>>;
|
|
173
|
+
export const IllustrationContext: Context<ContextValue<Partial<IllustrationContextValue>, SVGElement>>;
|
|
170
174
|
export function createIcon(Component: ComponentType<SVGProps<SVGSVGElement>>, context?: Context<ContextValue<IconContextValue, SVGElement>>): FunctionComponent<IconProps>;
|
|
171
175
|
export function pressScale<R extends {
|
|
172
176
|
isPressed: boolean;
|
|
173
177
|
}>(ref: RefObject<HTMLElement | null>, style?: CSSProperties | ((renderProps: R) => CSSProperties)): (renderProps: R) => CSSProperties;
|
|
174
178
|
interface ContentProps extends UnsafeStyles, SlotProps {
|
|
175
|
-
children
|
|
179
|
+
children: ReactNode;
|
|
176
180
|
styles?: StyleString;
|
|
177
181
|
isHidden?: boolean;
|
|
182
|
+
id?: string;
|
|
178
183
|
}
|
|
179
184
|
interface HeadingProps extends ContentProps {
|
|
180
185
|
level?: number;
|
|
181
186
|
}
|
|
182
|
-
export const HeadingContext: Context<ContextValue<HeadingProps
|
|
187
|
+
export const HeadingContext: Context<ContextValue<Partial<HeadingProps>, DOMRefValue<HTMLHeadingElement>>>;
|
|
183
188
|
export const Heading: ForwardRefExoticComponent<HeadingProps & RefAttributes<DOMRefValue<HTMLHeadingElement>>>;
|
|
184
|
-
export const HeaderContext: Context<ContextValue<ContentProps
|
|
189
|
+
export const HeaderContext: Context<ContextValue<Partial<ContentProps>, DOMRefValue<HTMLElement>>>;
|
|
185
190
|
export const Header: ForwardRefExoticComponent<ContentProps & RefAttributes<DOMRefValue<HTMLElement>>>;
|
|
186
|
-
export const ContentContext: Context<ContextValue<ContentProps
|
|
191
|
+
export const ContentContext: Context<ContextValue<Partial<ContentProps>, DOMRefValue<HTMLDivElement>>>;
|
|
187
192
|
export const Content: ForwardRefExoticComponent<ContentProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
188
|
-
export const TextContext: Context<ContextValue<ContentProps
|
|
193
|
+
export const TextContext: Context<ContextValue<Partial<ContentProps>, DOMRefValue<HTMLElement>>>;
|
|
189
194
|
export const Text: ForwardRefExoticComponent<ContentProps & RefAttributes<DOMRefValue<HTMLElement>>>;
|
|
190
|
-
export const KeyboardContext: Context<ContextValue<ContentProps
|
|
195
|
+
export const KeyboardContext: Context<ContextValue<Partial<ContentProps>, DOMRefValue<HTMLElement>>>;
|
|
191
196
|
export const Keyboard: ForwardRefExoticComponent<ContentProps & RefAttributes<DOMRefValue<HTMLElement>>>;
|
|
192
|
-
export const FooterContext: Context<ContextValue<ContentProps
|
|
197
|
+
export const FooterContext: Context<ContextValue<Partial<ContentProps>, DOMRefValue<HTMLElement>>>;
|
|
193
198
|
export const Footer: ForwardRefExoticComponent<ContentProps & RefAttributes<DOMRefValue<HTMLElement>>>;
|
|
194
199
|
interface FormStyleProps extends Omit<SpectrumLabelableProps, 'label' | 'contextualHelp'> {
|
|
195
200
|
/**
|
|
@@ -203,12 +208,12 @@ interface FormStyleProps extends Omit<SpectrumLabelableProps, 'label' | 'context
|
|
|
203
208
|
isEmphasized?: boolean;
|
|
204
209
|
}
|
|
205
210
|
export interface FormProps extends FormStyleProps, Omit<_FormProps1, 'className' | 'style' | 'children'>, StyleProps {
|
|
206
|
-
children
|
|
211
|
+
children: ReactNode;
|
|
207
212
|
}
|
|
208
213
|
/**
|
|
209
214
|
* Forms allow users to enter data that can be submitted while providing alignment and styling for form fields.
|
|
210
215
|
*/
|
|
211
|
-
export
|
|
216
|
+
export const Form: ForwardRefExoticComponent<FormProps & RefAttributes<DOMRefValue<HTMLFormElement>>>;
|
|
212
217
|
interface ActionButtonStyleProps {
|
|
213
218
|
/**
|
|
214
219
|
* The size of the ActionButton.
|
|
@@ -217,20 +222,20 @@ interface ActionButtonStyleProps {
|
|
|
217
222
|
*/
|
|
218
223
|
size?: 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
219
224
|
/** The static color style to apply. Useful when the ActionButton appears over a color background. */
|
|
220
|
-
staticColor?: 'black' | 'white';
|
|
225
|
+
staticColor?: 'black' | 'white' | 'auto';
|
|
221
226
|
/** Whether the button should be displayed with a [quiet style](https://spectrum.adobe.com/page/action-button/#Quiet). */
|
|
222
227
|
isQuiet?: boolean;
|
|
223
228
|
}
|
|
224
229
|
export interface ActionButtonProps extends Omit<_ButtonProps1, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'isPending'>, StyleProps, ActionButtonStyleProps {
|
|
225
230
|
/** The content to display in the ActionButton. */
|
|
226
|
-
children
|
|
231
|
+
children: ReactNode;
|
|
227
232
|
}
|
|
228
|
-
export const ActionButtonContext: Context<ContextValue<ActionButtonProps
|
|
233
|
+
export const ActionButtonContext: Context<ContextValue<Partial<ActionButtonProps>, FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
229
234
|
/**
|
|
230
235
|
* ActionButtons allow users to perform an action.
|
|
231
236
|
* 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.
|
|
232
237
|
*/
|
|
233
|
-
export
|
|
238
|
+
export const ActionButton: ForwardRefExoticComponent<ActionButtonProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
234
239
|
export interface DisclosureProps extends Omit<_DisclosureProps1, 'className' | 'style' | 'children'>, StyleProps {
|
|
235
240
|
/**
|
|
236
241
|
* The size of the disclosure.
|
|
@@ -247,11 +252,11 @@ export interface DisclosureProps extends Omit<_DisclosureProps1, 'className' | '
|
|
|
247
252
|
/** The contents of the disclosure, consisting of a DisclosureTitle and DisclosurePanel. */
|
|
248
253
|
children: ReactNode;
|
|
249
254
|
}
|
|
250
|
-
export const DisclosureContext: React.Context<ContextValue<
|
|
255
|
+
export const DisclosureContext: React.Context<ContextValue<Partial<DisclosureProps>, DOMRefValue<HTMLDivElement>>>;
|
|
251
256
|
/**
|
|
252
257
|
* A disclosure is a collapsible section of content. It is composed of a a header with a heading and trigger button, and a panel that contains the content.
|
|
253
258
|
*/
|
|
254
|
-
export
|
|
259
|
+
export const Disclosure: React.ForwardRefExoticComponent<DisclosureProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
255
260
|
interface DisclosureTitleProps extends UnsafeStyles, DOMProps {
|
|
256
261
|
/** The heading level of the disclosure header.
|
|
257
262
|
*
|
|
@@ -271,14 +276,14 @@ export const DisclosureHeader: (props: DisclosureHeaderProps & React.RefAttribut
|
|
|
271
276
|
/**
|
|
272
277
|
* A disclosure title consisting of a heading and a trigger button to expand/collapse the panel.
|
|
273
278
|
*/
|
|
274
|
-
export
|
|
279
|
+
export const DisclosureTitle: React.ForwardRefExoticComponent<DisclosureTitleProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
275
280
|
export interface DisclosurePanelProps extends Omit<_DisclosurePanelProps1, 'className' | 'style' | 'children'>, UnsafeStyles, DOMProps, AriaLabelingProps {
|
|
276
281
|
children: React.ReactNode;
|
|
277
282
|
}
|
|
278
283
|
/**
|
|
279
284
|
* A disclosure panel is a collapsible section of content that is hidden until the disclosure is expanded.
|
|
280
285
|
*/
|
|
281
|
-
export
|
|
286
|
+
export const DisclosurePanel: React.ForwardRefExoticComponent<DisclosurePanelProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
282
287
|
export interface AccordionProps extends Omit<DisclosureGroupProps, 'className' | 'style' | 'children'>, UnsafeStyles, DOMProps, SlotProps {
|
|
283
288
|
/** The disclosure elements in the accordion. */
|
|
284
289
|
children: React.ReactNode;
|
|
@@ -297,11 +302,39 @@ export interface AccordionProps extends Omit<DisclosureGroupProps, 'className' |
|
|
|
297
302
|
/** Whether the accordion should be displayed with a quiet style. */
|
|
298
303
|
isQuiet?: boolean;
|
|
299
304
|
}
|
|
300
|
-
export const AccordionContext: React.Context<ContextValue<AccordionProps
|
|
305
|
+
export const AccordionContext: React.Context<ContextValue<Partial<AccordionProps>, DOMRefValue<HTMLDivElement>>>;
|
|
301
306
|
/**
|
|
302
307
|
* An accordion is a container for multiple disclosures.
|
|
303
308
|
*/
|
|
304
|
-
export
|
|
309
|
+
export const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
310
|
+
export interface CloseButtonProps extends Pick<_ButtonProps1, 'isDisabled' | 'onPress'>, StyleProps {
|
|
311
|
+
/**
|
|
312
|
+
* The size of the CloseButton.
|
|
313
|
+
*
|
|
314
|
+
* @default 'M'
|
|
315
|
+
*/
|
|
316
|
+
size?: 'S' | 'M' | 'L' | 'XL';
|
|
317
|
+
/** The static color style to apply. Useful when the Button appears over a color background. */
|
|
318
|
+
staticColor?: 'white' | 'black' | 'auto';
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* A CloseButton allows a user to dismiss a dialog.
|
|
322
|
+
*/
|
|
323
|
+
export const CloseButton: ForwardRefExoticComponent<CloseButtonProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
324
|
+
export interface ActionBarProps extends SlotProps {
|
|
325
|
+
/** A list of ActionButtons to display. */
|
|
326
|
+
children: ReactNode;
|
|
327
|
+
/** Whether the ActionBar should be displayed with a emphasized style. */
|
|
328
|
+
isEmphasized?: boolean;
|
|
329
|
+
/** The number of selected items that the ActionBar is currently linked to. If 0, the ActionBar is hidden. */
|
|
330
|
+
selectedItemCount?: number | 'all';
|
|
331
|
+
/** Handler that is called when the ActionBar clear button is pressed. */
|
|
332
|
+
onClearSelection?: () => void;
|
|
333
|
+
/** A ref to the scrollable element the ActionBar appears above. */
|
|
334
|
+
scrollRef?: RefObject<HTMLElement | null>;
|
|
335
|
+
}
|
|
336
|
+
export const ActionBarContext: Context<ContextValue<Partial<ActionBarProps>, DOMRefValue<HTMLDivElement>>>;
|
|
337
|
+
export const ActionBar: ForwardRefExoticComponent<ActionBarProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
305
338
|
interface CheckboxStyleProps {
|
|
306
339
|
/**
|
|
307
340
|
* The size of the Checkbox.
|
|
@@ -316,12 +349,12 @@ export interface CheckboxProps extends Omit<_CheckboxProps1, 'className' | 'styl
|
|
|
316
349
|
/** The label for the element. */
|
|
317
350
|
children?: ReactNode;
|
|
318
351
|
}
|
|
319
|
-
export const CheckboxContext: Context<ContextValue<CheckboxProps
|
|
352
|
+
export const CheckboxContext: Context<ContextValue<Partial<CheckboxProps>, FocusableRefValue<HTMLLabelElement, HTMLLabelElement>>>;
|
|
320
353
|
/**
|
|
321
354
|
* Checkboxes allow users to select multiple items from a list of individual items,
|
|
322
355
|
* or to mark one individual item as selected.
|
|
323
356
|
*/
|
|
324
|
-
export
|
|
357
|
+
export const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<FocusableRefValue<HTMLLabelElement, HTMLLabelElement>>>;
|
|
325
358
|
interface DividerSpectrumProps {
|
|
326
359
|
/**
|
|
327
360
|
* How thick the Divider should be.
|
|
@@ -334,16 +367,16 @@ interface DividerSpectrumProps {
|
|
|
334
367
|
*/
|
|
335
368
|
orientation?: 'horizontal' | 'vertical';
|
|
336
369
|
/** The static color style to apply. Useful when the Divider appears over a color background. */
|
|
337
|
-
staticColor?: 'white' | 'black';
|
|
370
|
+
staticColor?: 'white' | 'black' | 'auto';
|
|
338
371
|
}
|
|
339
372
|
export interface DividerProps extends DividerSpectrumProps, Omit<SeparatorProps, 'className' | 'style' | 'elementType'>, StyleProps {
|
|
340
373
|
}
|
|
341
|
-
export const DividerContext: Context<ContextValue<DividerProps
|
|
374
|
+
export const DividerContext: Context<ContextValue<Partial<DividerProps>, DOMRefValue<HTMLElement>>>;
|
|
342
375
|
/**
|
|
343
376
|
* Dividers bring clarity to a layout by grouping and dividing content in close proximity.
|
|
344
377
|
* They can also be used to establish rhythm and hierarchy.
|
|
345
378
|
*/
|
|
346
|
-
export
|
|
379
|
+
export const Divider: ForwardRefExoticComponent<DividerProps & RefAttributes<DOMRefValue<HTMLElement>>>;
|
|
347
380
|
export interface ProviderProps extends UnsafeStyles {
|
|
348
381
|
/** The content of the Provider. */
|
|
349
382
|
children: ReactNode;
|
|
@@ -391,7 +424,7 @@ interface PopoverDialogProps extends Pick<PopoverProps, 'size' | 'hideArrow' | '
|
|
|
391
424
|
/**
|
|
392
425
|
* A popover is an overlay element positioned relative to a trigger.
|
|
393
426
|
*/
|
|
394
|
-
export
|
|
427
|
+
export const Popover: ForwardRefExoticComponent<PopoverDialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
|
|
395
428
|
export interface MenuTriggerProps extends _MenuTriggerProps1 {
|
|
396
429
|
/**
|
|
397
430
|
* Alignment of the menu relative to the trigger.
|
|
@@ -412,7 +445,7 @@ export interface MenuTriggerProps extends _MenuTriggerProps1 {
|
|
|
412
445
|
*/
|
|
413
446
|
shouldFlip?: boolean;
|
|
414
447
|
}
|
|
415
|
-
export interface MenuProps<T> extends Omit<_MenuProps1<T>, 'children' | 'style' | 'className' | 'dependencies'>, StyleProps {
|
|
448
|
+
export interface MenuProps<T> extends Omit<_MenuProps1<T>, 'children' | 'style' | 'className' | 'dependencies' | 'renderEmptyState'>, StyleProps {
|
|
416
449
|
/**
|
|
417
450
|
* The size of the Menu.
|
|
418
451
|
*
|
|
@@ -422,13 +455,15 @@ export interface MenuProps<T> extends Omit<_MenuProps1<T>, 'children' | 'style'
|
|
|
422
455
|
/**
|
|
423
456
|
* The contents of the collection.
|
|
424
457
|
*/
|
|
425
|
-
children
|
|
458
|
+
children: ReactNode | ((item: T) => ReactNode);
|
|
459
|
+
/** Hides the default link out icons on menu items that open links in a new tab. */
|
|
460
|
+
hideLinkOutIcon?: boolean;
|
|
426
461
|
}
|
|
427
|
-
export const MenuContext: Context<ContextValue<MenuProps<any
|
|
462
|
+
export const MenuContext: Context<ContextValue<Partial<MenuProps<any>>, DOMRefValue<HTMLDivElement>>>;
|
|
428
463
|
/**
|
|
429
464
|
* Menus display a list of actions or options that a user can choose.
|
|
430
465
|
*/
|
|
431
|
-
export
|
|
466
|
+
export const Menu: <T extends object>(props: MenuProps<T> & RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
|
|
432
467
|
export interface MenuSectionProps<T extends object> extends _MenuSectionProps1<T> {
|
|
433
468
|
}
|
|
434
469
|
export function MenuSection<T extends object>(props: MenuSectionProps<T>): JSX.Element;
|
|
@@ -450,11 +485,11 @@ export const SubmenuTrigger: (props: SubmenuTriggerProps) => JSX.Element | null;
|
|
|
450
485
|
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 {
|
|
451
486
|
menuSize?: 'S' | 'M' | 'L' | 'XL';
|
|
452
487
|
}
|
|
453
|
-
export const ActionMenuContext: Context<ContextValue<ActionMenuProps<any
|
|
488
|
+
export const ActionMenuContext: Context<ContextValue<Partial<ActionMenuProps<any>>, FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
454
489
|
/**
|
|
455
490
|
* ActionMenu combines an ActionButton with a Menu for simple "more actions" use cases.
|
|
456
491
|
*/
|
|
457
|
-
export
|
|
492
|
+
export const ActionMenu: <T extends object>(props: ActionMenuProps<T> & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>) => ReactElement | null;
|
|
458
493
|
interface ProgressCircleStyleProps {
|
|
459
494
|
/**
|
|
460
495
|
* The size of the ProgressCircle.
|
|
@@ -463,13 +498,13 @@ interface ProgressCircleStyleProps {
|
|
|
463
498
|
*/
|
|
464
499
|
size?: 'S' | 'M' | 'L';
|
|
465
500
|
/** The static color style to apply. Useful when the button appears over a color background. */
|
|
466
|
-
staticColor?: 'black' | 'white';
|
|
501
|
+
staticColor?: 'black' | 'white' | 'auto';
|
|
467
502
|
/**
|
|
468
503
|
* Whether presentation is indeterminate when progress isn't known.
|
|
469
504
|
*/
|
|
470
505
|
isIndeterminate?: boolean;
|
|
471
506
|
}
|
|
472
|
-
export const ProgressCircleContext: Context<ContextValue<ProgressCircleProps
|
|
507
|
+
export const ProgressCircleContext: Context<ContextValue<Partial<ProgressCircleProps>, DOMRefValue<HTMLDivElement>>>;
|
|
473
508
|
export interface ProgressCircleProps extends Omit<_ProgressBarProps1, 'children' | 'style' | 'valueLabel' | 'formatOptions' | 'label' | 'className'>, ProgressCircleStyleProps, UnsafeStyles {
|
|
474
509
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
475
510
|
styles?: StylesPropWithHeight;
|
|
@@ -478,14 +513,14 @@ export interface ProgressCircleProps extends Omit<_ProgressBarProps1, 'children'
|
|
|
478
513
|
* ProgressCircles show the progression of a system operation such as downloading, uploading, or processing, in a visual way.
|
|
479
514
|
* They can represent determinate or indeterminate progress.
|
|
480
515
|
*/
|
|
481
|
-
export
|
|
516
|
+
export const ProgressCircle: ForwardRefExoticComponent<ProgressCircleProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
482
517
|
interface ButtonStyleProps {
|
|
483
518
|
/**
|
|
484
519
|
* The [visual style](https://spectrum.adobe.com/page/button/#Options) of the button.
|
|
485
520
|
*
|
|
486
521
|
* @default 'primary'
|
|
487
522
|
*/
|
|
488
|
-
variant?: 'primary' | 'secondary' | 'accent' | 'negative';
|
|
523
|
+
variant?: 'primary' | 'secondary' | 'accent' | 'negative' | 'premium' | 'genai';
|
|
489
524
|
/**
|
|
490
525
|
* The background style of the Button.
|
|
491
526
|
*
|
|
@@ -499,28 +534,28 @@ interface ButtonStyleProps {
|
|
|
499
534
|
*/
|
|
500
535
|
size?: 'S' | 'M' | 'L' | 'XL';
|
|
501
536
|
/** The static color style to apply. Useful when the Button appears over a color background. */
|
|
502
|
-
staticColor?: 'white' | 'black';
|
|
537
|
+
staticColor?: 'white' | 'black' | 'auto';
|
|
503
538
|
}
|
|
504
539
|
export interface ButtonProps extends Omit<_ButtonProps1, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange'>, StyleProps, ButtonStyleProps {
|
|
505
540
|
/** The content to display in the Button. */
|
|
506
|
-
children
|
|
541
|
+
children: ReactNode;
|
|
507
542
|
}
|
|
508
543
|
export interface LinkButtonProps extends Omit<_LinkProps1, 'className' | 'style' | 'children'>, StyleProps, ButtonStyleProps {
|
|
509
544
|
/** The content to display in the Button. */
|
|
510
|
-
children
|
|
545
|
+
children: ReactNode;
|
|
511
546
|
}
|
|
512
|
-
export const ButtonContext: Context<ContextValue<ButtonProps
|
|
513
|
-
export const LinkButtonContext: Context<ContextValue<ButtonProps
|
|
547
|
+
export const ButtonContext: Context<ContextValue<Partial<ButtonProps>, FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
548
|
+
export const LinkButtonContext: Context<ContextValue<Partial<ButtonProps>, FocusableRefValue<HTMLAnchorElement, HTMLAnchorElement>>>;
|
|
514
549
|
/**
|
|
515
550
|
* Buttons allow users to perform an action.
|
|
516
551
|
* They have multiple styles for various needs, and are ideal for calling attention to
|
|
517
552
|
* where a user needs to do something in order to move forward in a flow.
|
|
518
553
|
*/
|
|
519
|
-
export
|
|
554
|
+
export const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
520
555
|
/**
|
|
521
556
|
* A LinkButton combines the functionality of a link with the appearance of a button. Useful for allowing users to navigate to another page.
|
|
522
557
|
*/
|
|
523
|
-
export
|
|
558
|
+
export const LinkButton: ForwardRefExoticComponent<LinkButtonProps & RefAttributes<FocusableRefValue<HTMLAnchorElement, HTMLAnchorElement>>>;
|
|
524
559
|
interface ButtonGroupStyleProps {
|
|
525
560
|
/**
|
|
526
561
|
* The axis the ButtonGroup should align with. Setting this to 'vertical' will prevent
|
|
@@ -552,25 +587,11 @@ interface ButtonGroupContextValue extends Partial<ButtonGroupProps> {
|
|
|
552
587
|
/** Whether the ButtonGroup shouldn't be rendered. */
|
|
553
588
|
isHidden?: boolean;
|
|
554
589
|
}
|
|
555
|
-
export const ButtonGroupContext: Context<ContextValue<ButtonGroupContextValue
|
|
590
|
+
export const ButtonGroupContext: Context<ContextValue<Partial<ButtonGroupContextValue>, DOMRefValue<HTMLDivElement>>>;
|
|
556
591
|
/**
|
|
557
592
|
* ButtonGroup handles overflow for a grouping of buttons whose actions are related to each other.
|
|
558
593
|
*/
|
|
559
594
|
export const ButtonGroup: ForwardRefExoticComponent<ButtonGroupProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
560
|
-
export interface CloseButtonProps extends Pick<_ButtonProps1, 'isDisabled'>, StyleProps {
|
|
561
|
-
/**
|
|
562
|
-
* The size of the CloseButton.
|
|
563
|
-
*
|
|
564
|
-
* @default 'M'
|
|
565
|
-
*/
|
|
566
|
-
size?: 'S' | 'M' | 'L' | 'XL';
|
|
567
|
-
/** The static color style to apply. Useful when the Button appears over a color background. */
|
|
568
|
-
staticColor?: 'white' | 'black';
|
|
569
|
-
}
|
|
570
|
-
/**
|
|
571
|
-
* A CloseButton allows a user to dismiss a dialog.
|
|
572
|
-
*/
|
|
573
|
-
export let CloseButton: ForwardRefExoticComponent<CloseButtonProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
574
595
|
export interface DialogProps extends Omit<_DialogProps1, 'className' | 'style'>, StyleProps {
|
|
575
596
|
/**
|
|
576
597
|
* Whether the Dialog is dismissible.
|
|
@@ -589,7 +610,7 @@ export interface DialogProps extends Omit<_DialogProps1, 'className' | 'style'>,
|
|
|
589
610
|
* Dialogs are windows containing contextual information, tasks, or workflows that appear over the user interface.
|
|
590
611
|
* Depending on the kind of Dialog, further interactions may be blocked until the Dialog is acknowledged.
|
|
591
612
|
*/
|
|
592
|
-
export
|
|
613
|
+
export const Dialog: ForwardRefExoticComponent<DialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
|
|
593
614
|
export interface AlertDialogProps extends DOMProps, UnsafeStyles {
|
|
594
615
|
/** The [visual style](https://spectrum.adobe.com/page/alert-dialog/#Options) of the AlertDialog. */
|
|
595
616
|
variant?: 'confirmation' | 'information' | 'destructive' | 'error' | 'warning';
|
|
@@ -625,7 +646,7 @@ export interface AlertDialogProps extends DOMProps, UnsafeStyles {
|
|
|
625
646
|
/**
|
|
626
647
|
* AlertDialogs are a specific type of Dialog. They display important information that users need to acknowledge.
|
|
627
648
|
*/
|
|
628
|
-
export
|
|
649
|
+
export const AlertDialog: ForwardRefExoticComponent<AlertDialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
|
|
629
650
|
export interface AvatarGroupProps extends UnsafeStyles, DOMProps, AriaLabelingProps, SlotProps {
|
|
630
651
|
/** Avatar children of the avatar group. */
|
|
631
652
|
children: ReactNode;
|
|
@@ -639,11 +660,11 @@ export interface AvatarGroupProps extends UnsafeStyles, DOMProps, AriaLabelingPr
|
|
|
639
660
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
640
661
|
styles?: StylesPropWithoutWidth;
|
|
641
662
|
}
|
|
642
|
-
export const AvatarGroupContext: Context<ContextValue<AvatarGroupProps
|
|
663
|
+
export const AvatarGroupContext: Context<ContextValue<Partial<AvatarGroupProps>, DOMRefValue<HTMLDivElement>>>;
|
|
643
664
|
/**
|
|
644
665
|
* An avatar group is a grouping of avatars that are related to each other.
|
|
645
666
|
*/
|
|
646
|
-
export
|
|
667
|
+
export const AvatarGroup: ForwardRefExoticComponent<AvatarGroupProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
647
668
|
interface BadgeStyleProps {
|
|
648
669
|
/**
|
|
649
670
|
* The size of the badge.
|
|
@@ -656,12 +677,17 @@ interface BadgeStyleProps {
|
|
|
656
677
|
*
|
|
657
678
|
* @default 'neutral'
|
|
658
679
|
*/
|
|
659
|
-
variant?: 'accent' | 'informative' | 'neutral' | 'positive' | 'notice' | 'negative' | 'gray' | 'red' | 'orange' | 'yellow' | '
|
|
680
|
+
variant?: 'accent' | 'informative' | 'neutral' | 'positive' | 'notice' | 'negative' | 'gray' | 'red' | 'orange' | 'yellow' | 'chartreuse' | 'celery' | 'green' | 'seafoam' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'fuchsia' | 'magenta' | 'pink' | 'turquoise' | 'brown' | 'cinnamon' | 'silver';
|
|
660
681
|
/**
|
|
661
682
|
* The fill of the badge.
|
|
662
683
|
* @default 'bold'
|
|
663
684
|
*/
|
|
664
685
|
fillStyle?: 'bold' | 'subtle' | 'outline';
|
|
686
|
+
/**
|
|
687
|
+
* Sets the text behavior for the contents.
|
|
688
|
+
* @default 'wrap'
|
|
689
|
+
*/
|
|
690
|
+
overflowMode?: 'wrap' | 'truncate';
|
|
665
691
|
}
|
|
666
692
|
export interface BadgeProps extends DOMProps, AriaLabelingProps, StyleProps, BadgeStyleProps, SlotProps {
|
|
667
693
|
/**
|
|
@@ -673,7 +699,7 @@ export const BadgeContext: React.Context<ContextValue<Partial<BadgeProps>, DOMRe
|
|
|
673
699
|
/**
|
|
674
700
|
* Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.
|
|
675
701
|
*/
|
|
676
|
-
export
|
|
702
|
+
export const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
677
703
|
interface BreadcrumbsStyleProps {
|
|
678
704
|
/**
|
|
679
705
|
* Size of the Breadcrumbs including spacing and layout.
|
|
@@ -686,17 +712,17 @@ interface BreadcrumbsStyleProps {
|
|
|
686
712
|
}
|
|
687
713
|
export interface BreadcrumbsProps<T> extends Omit<_BreadcrumbsProps1<T>, 'children' | 'items' | 'style' | 'className'>, BreadcrumbsStyleProps, StyleProps {
|
|
688
714
|
/** The children of the Breadcrumbs. */
|
|
689
|
-
children
|
|
715
|
+
children: ReactNode;
|
|
690
716
|
}
|
|
691
|
-
export const BreadcrumbsContext: Context<ContextValue<BreadcrumbsProps<any
|
|
717
|
+
export const BreadcrumbsContext: Context<ContextValue<Partial<BreadcrumbsProps<any>>, DOMRefValue<HTMLOListElement>>>;
|
|
692
718
|
/** Breadcrumbs show hierarchy and navigational context for a user’s location within an application. */
|
|
693
|
-
export
|
|
719
|
+
export const Breadcrumbs: <T extends object>(props: BreadcrumbsProps<T> & RefAttributes<DOMRefValue<HTMLOListElement>>) => ReactElement | null;
|
|
694
720
|
export interface BreadcrumbProps extends Omit<AriaBreadcrumbItemProps, 'children' | 'style' | 'className' | 'autoFocus'>, LinkDOMProps {
|
|
695
721
|
/** The children of the breadcrumb item. */
|
|
696
|
-
children
|
|
722
|
+
children: ReactNode;
|
|
697
723
|
}
|
|
698
724
|
/** An individual Breadcrumb for Breadcrumbs. */
|
|
699
|
-
export
|
|
725
|
+
export const Breadcrumb: (props: BreadcrumbProps & RefAttributes<DOMRefValue<HTMLLIElement>>) => ReactElement | null;
|
|
700
726
|
interface CardRenderProps {
|
|
701
727
|
/** The size of the Card. */
|
|
702
728
|
size: 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
@@ -770,8 +796,10 @@ export interface CardViewProps<T> extends Omit<GridListProps<T>, 'layout' | 'key
|
|
|
770
796
|
onLoadMore?: () => void;
|
|
771
797
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
772
798
|
styles?: StylesPropWithHeight;
|
|
799
|
+
/** Provides the ActionBar to render when cards are selected in the CardView. */
|
|
800
|
+
renderActionBar?: (selectedKeys: 'all' | Set<Key>) => ReactElement;
|
|
773
801
|
}
|
|
774
|
-
export const CardViewContext: Context<ContextValue<CardViewProps<any
|
|
802
|
+
export const CardViewContext: Context<ContextValue<Partial<CardViewProps<any>>, DOMRefValue<HTMLDivElement>>>;
|
|
775
803
|
export const CardView: <T extends object>(props: CardViewProps<T> & RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
|
|
776
804
|
export interface DialogTriggerProps extends _DialogTriggerProps1 {
|
|
777
805
|
}
|
|
@@ -791,7 +819,7 @@ interface ContextualHelpStyleProps {
|
|
|
791
819
|
}
|
|
792
820
|
interface ContextualHelpProps extends Pick<DialogTriggerProps, 'isOpen' | 'defaultOpen' | 'onOpenChange'>, Pick<PopoverDialogProps, 'shouldFlip' | 'offset' | 'crossOffset' | 'placement' | 'containerPadding'>, ContextualHelpStyleProps, StyleProps, DOMProps, AriaLabelingProps {
|
|
793
821
|
/** Contents of the Contextual Help popover. */
|
|
794
|
-
children
|
|
822
|
+
children: ReactNode;
|
|
795
823
|
/**
|
|
796
824
|
* The size of the ActionButton.
|
|
797
825
|
*
|
|
@@ -799,11 +827,11 @@ interface ContextualHelpProps extends Pick<DialogTriggerProps, 'isOpen' | 'defau
|
|
|
799
827
|
*/
|
|
800
828
|
size?: 'XS' | 'S';
|
|
801
829
|
}
|
|
802
|
-
export const ContextualHelpContext: Context<ContextValue<ContextualHelpProps
|
|
830
|
+
export const ContextualHelpContext: Context<ContextValue<Partial<ContextualHelpProps>, FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
803
831
|
/**
|
|
804
832
|
* Contextual help shows a user extra information about the state of an adjacent component, or a total view.
|
|
805
833
|
*/
|
|
806
|
-
export
|
|
834
|
+
export const ContextualHelp: ForwardRefExoticComponent<ContextualHelpProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
807
835
|
export interface CheckboxGroupProps extends Omit<_CheckboxGroupProps1, 'className' | 'style' | 'children'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
808
836
|
/**
|
|
809
837
|
* The size of the Checkboxes in the CheckboxGroup.
|
|
@@ -820,25 +848,25 @@ export interface CheckboxGroupProps extends Omit<_CheckboxGroupProps1, 'classNam
|
|
|
820
848
|
/**
|
|
821
849
|
* The Checkboxes contained within the CheckboxGroup.
|
|
822
850
|
*/
|
|
823
|
-
children
|
|
851
|
+
children: ReactNode;
|
|
824
852
|
/**
|
|
825
853
|
* By default, checkboxes are not emphasized (gray).
|
|
826
854
|
* The emphasized (blue) version provides visual prominence.
|
|
827
855
|
*/
|
|
828
856
|
isEmphasized?: boolean;
|
|
829
857
|
}
|
|
830
|
-
export const CheckboxGroupContext: Context<ContextValue<CheckboxGroupProps
|
|
858
|
+
export const CheckboxGroupContext: Context<ContextValue<Partial<CheckboxGroupProps>, DOMRefValue<HTMLDivElement>>>;
|
|
831
859
|
/**
|
|
832
860
|
* A CheckboxGroup allows users to select one or more items from a list of choices.
|
|
833
861
|
*/
|
|
834
|
-
export
|
|
862
|
+
export const CheckboxGroup: ForwardRefExoticComponent<CheckboxGroupProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
835
863
|
export interface ColorAreaProps extends Omit<_ColorAreaProps1, 'children' | 'className' | 'style'>, StyleProps {
|
|
836
864
|
}
|
|
837
|
-
export const ColorAreaContext: Context<ContextValue<ColorAreaProps
|
|
865
|
+
export const ColorAreaContext: Context<ContextValue<Partial<ColorAreaProps>, DOMRefValue<HTMLDivElement>>>;
|
|
838
866
|
/**
|
|
839
867
|
* A ColorArea allows users to adjust two channels of an RGB, HSL or HSB color value against a two-dimensional gradient background.
|
|
840
868
|
*/
|
|
841
|
-
export
|
|
869
|
+
export const ColorArea: ForwardRefExoticComponent<ColorAreaProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
842
870
|
export interface ColorFieldProps extends Omit<_ColorFieldProps1, 'children' | 'className' | 'style'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
843
871
|
/**
|
|
844
872
|
* The size of the color field.
|
|
@@ -847,7 +875,7 @@ export interface ColorFieldProps extends Omit<_ColorFieldProps1, 'children' | 'c
|
|
|
847
875
|
*/
|
|
848
876
|
size?: 'S' | 'M' | 'L' | 'XL';
|
|
849
877
|
}
|
|
850
|
-
export const ColorFieldContext: Context<ContextValue<ColorFieldProps
|
|
878
|
+
export const ColorFieldContext: Context<ContextValue<Partial<ColorFieldProps>, TextFieldRef<HTMLInputElement>>>;
|
|
851
879
|
/**
|
|
852
880
|
* A color field allows users to edit a hex color or individual color channel value.
|
|
853
881
|
*/
|
|
@@ -855,11 +883,11 @@ export const ColorField: ForwardRefExoticComponent<ColorFieldProps & RefAttribut
|
|
|
855
883
|
export interface ColorSliderProps extends Omit<_ColorSliderProps1, 'children' | 'className' | 'style'>, Pick<SpectrumLabelableProps, 'contextualHelp'>, StyleProps {
|
|
856
884
|
label?: string;
|
|
857
885
|
}
|
|
858
|
-
export const ColorSliderContext: Context<ContextValue<ColorSliderProps
|
|
886
|
+
export const ColorSliderContext: Context<ContextValue<Partial<ColorSliderProps>, DOMRefValue<HTMLDivElement>>>;
|
|
859
887
|
/**
|
|
860
888
|
* A ColorSlider allows users to adjust an individual channel of a color value.
|
|
861
889
|
*/
|
|
862
|
-
export
|
|
890
|
+
export const ColorSlider: ForwardRefExoticComponent<ColorSliderProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
863
891
|
export interface ColorSwatchProps extends Omit<_ColorSwatchProps1, 'className' | 'style'>, UnsafeStyles {
|
|
864
892
|
/**
|
|
865
893
|
* The size of the ColorSwatch.
|
|
@@ -874,11 +902,11 @@ export interface ColorSwatchProps extends Omit<_ColorSwatchProps1, 'className' |
|
|
|
874
902
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
875
903
|
styles?: StylesPropWithHeight;
|
|
876
904
|
}
|
|
877
|
-
export const ColorSwatchContext: Context<ContextValue<ColorSwatchProps
|
|
905
|
+
export const ColorSwatchContext: Context<ContextValue<Partial<ColorSwatchProps>, DOMRefValue<HTMLDivElement>>>;
|
|
878
906
|
/**
|
|
879
907
|
* A ColorSwatch displays a preview of a selected color.
|
|
880
908
|
*/
|
|
881
|
-
export
|
|
909
|
+
export const ColorSwatch: ForwardRefExoticComponent<ColorSwatchProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
882
910
|
export interface ColorSwatchPickerProps extends ValueBase<string | Color, Color>, StyleProps, SlotProps {
|
|
883
911
|
/** The ColorSwatches within the ColorSwatchPicker. */
|
|
884
912
|
children: ReactNode;
|
|
@@ -902,18 +930,18 @@ export const ColorSwatchPickerContext: Context<ContextValue<Partial<ColorSwatchP
|
|
|
902
930
|
/**
|
|
903
931
|
* A ColorSwatchPicker displays a list of color swatches and allows a user to select one of them.
|
|
904
932
|
*/
|
|
905
|
-
export
|
|
933
|
+
export const ColorSwatchPicker: ForwardRefExoticComponent<ColorSwatchPickerProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
906
934
|
export interface ColorWheelProps extends Omit<_ColorWheelProps1, 'children' | 'className' | 'style' | 'outerRadius' | 'innerRadius'>, StyleProps {
|
|
907
935
|
/**
|
|
908
936
|
* @default 192
|
|
909
937
|
*/
|
|
910
938
|
size?: number;
|
|
911
939
|
}
|
|
912
|
-
export const ColorWheelContext: Context<ContextValue<ColorWheelProps
|
|
940
|
+
export const ColorWheelContext: Context<ContextValue<Partial<ColorWheelProps>, DOMRefValue<HTMLDivElement>>>;
|
|
913
941
|
/**
|
|
914
942
|
* A ColorWheel allows users to adjust the hue of an HSL or HSB color value on a circular track.
|
|
915
943
|
*/
|
|
916
|
-
export
|
|
944
|
+
export const ColorWheel: ForwardRefExoticComponent<ColorWheelProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
917
945
|
interface PickerStyleProps {
|
|
918
946
|
/**
|
|
919
947
|
* The size of the Picker.
|
|
@@ -949,7 +977,7 @@ export const PickerContext: React.Context<ContextValue<Partial<PickerProps<any>>
|
|
|
949
977
|
/**
|
|
950
978
|
* Pickers allow users to choose a single option from a collapsible list of options when space is limited.
|
|
951
979
|
*/
|
|
952
|
-
export
|
|
980
|
+
export const Picker: <T extends object>(props: PickerProps<T> & React.RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>) => React.ReactElement | null;
|
|
953
981
|
export interface PickerItemProps extends Omit<ListBoxItemProps, 'children' | 'style' | 'className'>, StyleProps {
|
|
954
982
|
children: ReactNode;
|
|
955
983
|
}
|
|
@@ -987,7 +1015,7 @@ export const ComboBoxContext: Context<ContextValue<Partial<ComboBoxProps<any>>,
|
|
|
987
1015
|
/**
|
|
988
1016
|
* ComboBox allow users to choose a single option from a collapsible list of options when space is limited.
|
|
989
1017
|
*/
|
|
990
|
-
export
|
|
1018
|
+
export const ComboBox: <T extends object>(props: ComboBoxProps<T> & RefAttributes<TextFieldRef<HTMLInputElement>>) => ReactElement | null;
|
|
991
1019
|
export interface ComboBoxItemProps extends Omit<ListBoxItemProps, 'children' | 'style' | 'className'>, StyleProps {
|
|
992
1020
|
children: ReactNode;
|
|
993
1021
|
}
|
|
@@ -1015,7 +1043,7 @@ export interface CustomDialogProps extends Omit<_DialogProps1, 'className' | 'st
|
|
|
1015
1043
|
/**
|
|
1016
1044
|
* A CustomDialog is a floating window with a custom layout.
|
|
1017
1045
|
*/
|
|
1018
|
-
export
|
|
1046
|
+
export const CustomDialog: ForwardRefExoticComponent<CustomDialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
|
|
1019
1047
|
export interface FullscreenDialogProps extends Omit<_DialogProps1, 'className' | 'style'>, StyleProps {
|
|
1020
1048
|
/**
|
|
1021
1049
|
* The variant of fullscreen dialog to display.
|
|
@@ -1028,7 +1056,7 @@ export interface FullscreenDialogProps extends Omit<_DialogProps1, 'className' |
|
|
|
1028
1056
|
/**
|
|
1029
1057
|
* Takeover dialogs are large types of dialogs. They use the totality of the screen and should be used for modal experiences with complex workflows.
|
|
1030
1058
|
*/
|
|
1031
|
-
export
|
|
1059
|
+
export const FullscreenDialog: ForwardRefExoticComponent<FullscreenDialogProps & RefAttributes<DOMRefValue<HTMLElement>>>;
|
|
1032
1060
|
export interface DialogContainerProps extends Omit<SpectrumDialogContainerProps, 'type' | 'isDismissable' | 'isKeyboardDismissDisabled'> {
|
|
1033
1061
|
}
|
|
1034
1062
|
/**
|
|
@@ -1068,17 +1096,17 @@ interface IllustratedMessageContextProps extends Partial<S2SpectrumIllustratedMe
|
|
|
1068
1096
|
isInDropZone?: boolean;
|
|
1069
1097
|
isDropTarget?: boolean;
|
|
1070
1098
|
}
|
|
1071
|
-
export const IllustratedMessageContext: Context<ContextValue<IllustratedMessageContextProps
|
|
1099
|
+
export const IllustratedMessageContext: Context<ContextValue<Partial<IllustratedMessageContextProps>, DOMRefValue<HTMLDivElement>>>;
|
|
1072
1100
|
/**
|
|
1073
1101
|
* An IllustratedMessage displays an illustration and a message, usually
|
|
1074
1102
|
* for an empty state or an error page.
|
|
1075
1103
|
*/
|
|
1076
|
-
export
|
|
1104
|
+
export const IllustratedMessage: ForwardRefExoticComponent<S2SpectrumIllustratedMessageProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1077
1105
|
export interface DropZoneProps extends Omit<_DropZoneProps1, 'className' | 'style' | 'children' | 'isDisabled' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange'>, UnsafeStyles, DOMProps {
|
|
1078
1106
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
1079
1107
|
styles?: StylesPropWithHeight;
|
|
1080
1108
|
/** The content to display in the drop zone. */
|
|
1081
|
-
children
|
|
1109
|
+
children: ReactNode;
|
|
1082
1110
|
/** Whether the drop zone has been filled. */
|
|
1083
1111
|
isFilled?: boolean;
|
|
1084
1112
|
/** The message to replace the default banner message that is shown when the drop zone is filled. */
|
|
@@ -1090,11 +1118,11 @@ export interface DropZoneProps extends Omit<_DropZoneProps1, 'className' | 'styl
|
|
|
1090
1118
|
*/
|
|
1091
1119
|
size?: 'S' | 'M' | 'L';
|
|
1092
1120
|
}
|
|
1093
|
-
export const DropZoneContext: Context<ContextValue<DropZoneProps
|
|
1121
|
+
export const DropZoneContext: Context<ContextValue<Partial<DropZoneProps>, DOMRefValue<HTMLDivElement>>>;
|
|
1094
1122
|
/**
|
|
1095
1123
|
* A drop zone is an area into which one or multiple objects can be dragged and dropped.
|
|
1096
1124
|
*/
|
|
1097
|
-
export
|
|
1125
|
+
export const DropZone: ForwardRefExoticComponent<DropZoneProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1098
1126
|
export interface InlineAlertProps extends DOMProps, StyleProps, InlineStylesProps, SlotProps {
|
|
1099
1127
|
/**
|
|
1100
1128
|
* The contents of the Inline Alert.
|
|
@@ -1130,16 +1158,16 @@ interface LinkStyleProps {
|
|
|
1130
1158
|
*/
|
|
1131
1159
|
variant?: 'primary' | 'secondary';
|
|
1132
1160
|
/** The static color style to apply. Useful when the link appears over a color background. */
|
|
1133
|
-
staticColor?: 'white' | 'black';
|
|
1161
|
+
staticColor?: 'white' | 'black' | 'auto';
|
|
1134
1162
|
/** Whether the link is on its own vs inside a longer string of text. */
|
|
1135
1163
|
isStandalone?: boolean;
|
|
1136
1164
|
/** Whether the link should be displayed with a quiet style. */
|
|
1137
1165
|
isQuiet?: boolean;
|
|
1138
1166
|
}
|
|
1139
1167
|
export interface LinkProps extends Omit<_LinkProps1, 'isDisabled' | 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange'>, StyleProps, LinkStyleProps {
|
|
1140
|
-
children
|
|
1168
|
+
children: ReactNode;
|
|
1141
1169
|
}
|
|
1142
|
-
export const LinkContext: Context<ContextValue<LinkProps
|
|
1170
|
+
export const LinkContext: Context<ContextValue<Partial<LinkProps>, FocusableRefValue<HTMLAnchorElement, HTMLAnchorElement>>>;
|
|
1143
1171
|
/**
|
|
1144
1172
|
* Links allow users to navigate to a different location.
|
|
1145
1173
|
* They can be presented inline inside a paragraph or as standalone text.
|
|
@@ -1159,7 +1187,7 @@ interface MeterStyleProps {
|
|
|
1159
1187
|
/**
|
|
1160
1188
|
* The static color style to apply. Useful when the button appears over a color background.
|
|
1161
1189
|
*/
|
|
1162
|
-
staticColor?: 'white' | 'black';
|
|
1190
|
+
staticColor?: 'white' | 'black' | 'auto';
|
|
1163
1191
|
/**
|
|
1164
1192
|
* The label's overall position relative to the element it is labeling.
|
|
1165
1193
|
* @default 'top'
|
|
@@ -1170,12 +1198,12 @@ export interface MeterProps extends Omit<_MeterProps1, 'children' | 'className'
|
|
|
1170
1198
|
/** The content to display as the label. */
|
|
1171
1199
|
label?: ReactNode;
|
|
1172
1200
|
}
|
|
1173
|
-
export const MeterContext: Context<ContextValue<MeterProps
|
|
1201
|
+
export const MeterContext: Context<ContextValue<Partial<MeterProps>, DOMRefValue<HTMLDivElement>>>;
|
|
1174
1202
|
/**
|
|
1175
1203
|
* Meters are visual representations of a quantity or an achievement.
|
|
1176
1204
|
* Their progress is determined by user actions, rather than system actions.
|
|
1177
1205
|
*/
|
|
1178
|
-
export
|
|
1206
|
+
export const Meter: ForwardRefExoticComponent<MeterProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1179
1207
|
interface NumberFieldProps extends Omit<_NumberFieldProps1, 'children' | 'className' | 'style'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1180
1208
|
/**
|
|
1181
1209
|
* Whether to hide the increment and decrement buttons.
|
|
@@ -1189,11 +1217,11 @@ interface NumberFieldProps extends Omit<_NumberFieldProps1, 'children' | 'classN
|
|
|
1189
1217
|
*/
|
|
1190
1218
|
size?: 'S' | 'M' | 'L' | 'XL';
|
|
1191
1219
|
}
|
|
1192
|
-
export const NumberFieldContext: Context<ContextValue<NumberFieldProps
|
|
1220
|
+
export const NumberFieldContext: Context<ContextValue<Partial<NumberFieldProps>, TextFieldRef<HTMLInputElement>>>;
|
|
1193
1221
|
/**
|
|
1194
1222
|
* NumberFields allow users to input number values with a keyboard or increment/decrement with step buttons.
|
|
1195
1223
|
*/
|
|
1196
|
-
export
|
|
1224
|
+
export const NumberField: ForwardRefExoticComponent<NumberFieldProps & RefAttributes<TextFieldRef<HTMLInputElement>>>;
|
|
1197
1225
|
interface ProgressBarStyleProps {
|
|
1198
1226
|
/**
|
|
1199
1227
|
* The size of the ProgressBar.
|
|
@@ -1208,7 +1236,7 @@ interface ProgressBarStyleProps {
|
|
|
1208
1236
|
/**
|
|
1209
1237
|
* The static color style to apply. Useful when the button appears over a color background.
|
|
1210
1238
|
*/
|
|
1211
|
-
staticColor?: 'white' | 'black';
|
|
1239
|
+
staticColor?: 'white' | 'black' | 'auto';
|
|
1212
1240
|
/**
|
|
1213
1241
|
* The label's overall position relative to the element it is labeling.
|
|
1214
1242
|
* @default 'top'
|
|
@@ -1219,7 +1247,7 @@ export interface ProgressBarProps extends Omit<_ProgressBarProps1, 'children' |
|
|
|
1219
1247
|
/** The content to display as the label. */
|
|
1220
1248
|
label?: ReactNode;
|
|
1221
1249
|
}
|
|
1222
|
-
export const ProgressBarContext: Context<ContextValue<ProgressBarProps
|
|
1250
|
+
export const ProgressBarContext: Context<ContextValue<Partial<ProgressBarProps>, DOMRefValue<HTMLDivElement>>>;
|
|
1223
1251
|
/**
|
|
1224
1252
|
* ProgressBars show the progression of a system operation: downloading, uploading, processing, etc., in a visual way.
|
|
1225
1253
|
* They can represent either determinate or indeterminate progress.
|
|
@@ -1235,12 +1263,12 @@ export interface RadioProps extends Omit<_RadioProps1, 'className' | 'style' | '
|
|
|
1235
1263
|
* Radio buttons allow users to select a single option from a list of mutually exclusive options.
|
|
1236
1264
|
* All possible options are exposed up front for users to compare.
|
|
1237
1265
|
*/
|
|
1238
|
-
export
|
|
1266
|
+
export const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<FocusableRefValue<HTMLLabelElement, HTMLLabelElement>>>;
|
|
1239
1267
|
export interface RadioGroupProps extends Omit<_RadioGroupProps1, 'className' | 'style' | 'children'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1240
1268
|
/**
|
|
1241
1269
|
* The Radios contained within the RadioGroup.
|
|
1242
1270
|
*/
|
|
1243
|
-
children
|
|
1271
|
+
children: ReactNode;
|
|
1244
1272
|
/**
|
|
1245
1273
|
* The size of the RadioGroup.
|
|
1246
1274
|
*
|
|
@@ -1258,12 +1286,12 @@ export interface RadioGroupProps extends Omit<_RadioGroupProps1, 'className' | '
|
|
|
1258
1286
|
*/
|
|
1259
1287
|
isEmphasized?: boolean;
|
|
1260
1288
|
}
|
|
1261
|
-
export const RadioGroupContext: React.Context<ContextValue<RadioGroupProps
|
|
1289
|
+
export const RadioGroupContext: React.Context<ContextValue<Partial<RadioGroupProps>, DOMRefValue<HTMLDivElement>>>;
|
|
1262
1290
|
/**
|
|
1263
1291
|
* Radio groups allow users to select a single option from a list of mutually exclusive options.
|
|
1264
1292
|
* All possible options are exposed up front for users to compare.
|
|
1265
1293
|
*/
|
|
1266
|
-
export
|
|
1294
|
+
export const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1267
1295
|
interface SliderBaseProps<T> extends Omit<_SliderProps1<T>, 'children' | 'style' | 'className' | 'orientation'>, Omit<SpectrumLabelableProps, 'necessityIndicator' | 'isRequired'>, StyleProps {
|
|
1268
1296
|
children?: ReactNode;
|
|
1269
1297
|
/**
|
|
@@ -1295,8 +1323,8 @@ export interface SliderProps extends Omit<SliderBaseProps<number>, 'children'>,
|
|
|
1295
1323
|
*/
|
|
1296
1324
|
fillOffset?: number;
|
|
1297
1325
|
}
|
|
1298
|
-
export const SliderContext: Context<ContextValue<SliderProps
|
|
1299
|
-
export
|
|
1326
|
+
export const SliderContext: Context<ContextValue<Partial<SliderProps>, FocusableRefValue<HTMLDivElement, HTMLDivElement>>>;
|
|
1327
|
+
export const Slider: ForwardRefExoticComponent<SliderProps & RefAttributes<FocusableRefValue<HTMLDivElement, HTMLDivElement>>>;
|
|
1300
1328
|
export interface RangeSliderProps extends Omit<SliderBaseProps<RangeValue<number>>, 'children'> {
|
|
1301
1329
|
/**
|
|
1302
1330
|
* The name of the start input element, used when submitting an HTML form. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname).
|
|
@@ -1307,8 +1335,8 @@ export interface RangeSliderProps extends Omit<SliderBaseProps<RangeValue<number
|
|
|
1307
1335
|
*/
|
|
1308
1336
|
endName?: string;
|
|
1309
1337
|
}
|
|
1310
|
-
export const RangeSliderContext: Context<ContextValue<RangeSliderProps
|
|
1311
|
-
export
|
|
1338
|
+
export const RangeSliderContext: Context<ContextValue<Partial<RangeSliderProps>, FocusableRefValue<HTMLDivElement, HTMLDivElement>>>;
|
|
1339
|
+
export const RangeSlider: ForwardRefExoticComponent<RangeSliderProps & RefAttributes<FocusableRefValue<HTMLDivElement, HTMLDivElement>>>;
|
|
1312
1340
|
export interface SearchFieldProps extends Omit<_SearchFieldProps1, 'className' | 'style' | 'children'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1313
1341
|
/**
|
|
1314
1342
|
* The size of the SearchField.
|
|
@@ -1317,11 +1345,11 @@ export interface SearchFieldProps extends Omit<_SearchFieldProps1, 'className' |
|
|
|
1317
1345
|
*/
|
|
1318
1346
|
size?: 'S' | 'M' | 'L' | 'XL';
|
|
1319
1347
|
}
|
|
1320
|
-
export const SearchFieldContext: Context<ContextValue<SearchFieldProps
|
|
1348
|
+
export const SearchFieldContext: Context<ContextValue<Partial<SearchFieldProps>, TextFieldRef<HTMLInputElement>>>;
|
|
1321
1349
|
/**
|
|
1322
1350
|
* A SearchField is a text field designed for searches.
|
|
1323
1351
|
*/
|
|
1324
|
-
export
|
|
1352
|
+
export const SearchField: ForwardRefExoticComponent<SearchFieldProps & RefAttributes<TextFieldRef<HTMLInputElement>>>;
|
|
1325
1353
|
export interface SegmentedControlProps extends AriaLabelingProps, StyleProps, SlotProps {
|
|
1326
1354
|
/**
|
|
1327
1355
|
* The content to display in the segmented control.
|
|
@@ -1350,15 +1378,15 @@ export interface SegmentedControlItemProps extends AriaLabelingProps, StyleProps
|
|
|
1350
1378
|
/** Whether the item is disabled or not. */
|
|
1351
1379
|
isDisabled?: boolean;
|
|
1352
1380
|
}
|
|
1353
|
-
export const SegmentedControlContext: Context<ContextValue<SegmentedControlProps
|
|
1354
|
-
/**
|
|
1355
|
-
* A SegmentedControlItem represents an option within a SegmentedControl.
|
|
1356
|
-
*/
|
|
1357
|
-
export const SegmentedControlItem: ForwardRefExoticComponent<SegmentedControlItemProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
1381
|
+
export const SegmentedControlContext: Context<ContextValue<Partial<SegmentedControlProps>, DOMRefValue<HTMLDivElement>>>;
|
|
1358
1382
|
/**
|
|
1359
1383
|
* A SegmentedControl is a mutually exclusive group of buttons used for view switching.
|
|
1360
1384
|
*/
|
|
1361
1385
|
export const SegmentedControl: ForwardRefExoticComponent<SegmentedControlProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1386
|
+
/**
|
|
1387
|
+
* A SegmentedControlItem represents an option within a SegmentedControl.
|
|
1388
|
+
*/
|
|
1389
|
+
export const SegmentedControlItem: ForwardRefExoticComponent<SegmentedControlItemProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
1362
1390
|
export interface SkeletonCollectionProps {
|
|
1363
1391
|
children: () => ReactNode;
|
|
1364
1392
|
}
|
|
@@ -1391,12 +1419,12 @@ export interface StatusLightProps extends StatusLightStyleProps, DOMProps, AriaL
|
|
|
1391
1419
|
*/
|
|
1392
1420
|
role?: 'status';
|
|
1393
1421
|
}
|
|
1394
|
-
export const StatusLightContext: Context<ContextValue<StatusLightProps
|
|
1422
|
+
export const StatusLightContext: Context<ContextValue<Partial<StatusLightProps>, DOMRefValue<HTMLDivElement>>>;
|
|
1395
1423
|
/**
|
|
1396
1424
|
* Status lights are used to color code categories and labels commonly found in data visualization.
|
|
1397
1425
|
* When status lights have a semantic meaning, they should use semantic variant colors.
|
|
1398
1426
|
*/
|
|
1399
|
-
export
|
|
1427
|
+
export const StatusLight: ForwardRefExoticComponent<StatusLightProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1400
1428
|
interface SwitchStyleProps {
|
|
1401
1429
|
/**
|
|
1402
1430
|
* The size of the Switch.
|
|
@@ -1412,12 +1440,12 @@ interface SwitchStyleProps {
|
|
|
1412
1440
|
export interface SwitchProps extends Omit<_SwitchProps1, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange'>, StyleProps, SwitchStyleProps {
|
|
1413
1441
|
children?: ReactNode;
|
|
1414
1442
|
}
|
|
1415
|
-
export const SwitchContext: Context<ContextValue<SwitchProps
|
|
1443
|
+
export const SwitchContext: Context<ContextValue<Partial<SwitchProps>, FocusableRefValue<HTMLLabelElement, HTMLLabelElement>>>;
|
|
1416
1444
|
/**
|
|
1417
1445
|
* Switches allow users to turn an individual option on or off.
|
|
1418
1446
|
* They are usually used to activate or deactivate a specific setting.
|
|
1419
1447
|
*/
|
|
1420
|
-
export
|
|
1448
|
+
export const Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<FocusableRefValue<HTMLLabelElement, HTMLLabelElement>>>;
|
|
1421
1449
|
interface S2TableProps {
|
|
1422
1450
|
/** Whether the Table should be displayed with a quiet style. */
|
|
1423
1451
|
isQuiet?: boolean;
|
|
@@ -1452,18 +1480,24 @@ interface S2TableProps {
|
|
|
1452
1480
|
loadingState?: LoadingState;
|
|
1453
1481
|
/** Handler that is called when more items should be loaded, e.g. while scrolling near the bottom. */
|
|
1454
1482
|
onLoadMore?: () => any;
|
|
1483
|
+
/** Provides the ActionBar to display when rows are selected in the TableView. */
|
|
1484
|
+
renderActionBar?: (selectedKeys: 'all' | Set<_Key1>) => ReactElement;
|
|
1455
1485
|
}
|
|
1456
1486
|
export interface TableViewProps extends Omit<TableProps, 'style' | 'disabledBehavior' | 'className' | 'onRowAction' | 'selectionBehavior' | 'onScroll' | 'onCellAction' | 'dragAndDropHooks'>, UnsafeStyles, S2TableProps {
|
|
1457
1487
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
1458
1488
|
styles?: StylesPropWithHeight;
|
|
1459
1489
|
}
|
|
1460
|
-
export const TableContext: React.Context<ContextValue<TableViewProps
|
|
1490
|
+
export const TableContext: React.Context<ContextValue<Partial<TableViewProps>, DOMRefValue<HTMLDivElement>>>;
|
|
1491
|
+
/**
|
|
1492
|
+
* Tables are containers for displaying information. They allow users to quickly scan, sort, compare, and take action on large amounts of data.
|
|
1493
|
+
*/
|
|
1494
|
+
export const TableView: React.ForwardRefExoticComponent<TableViewProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1461
1495
|
export interface TableBodyProps<T> extends Omit<_TableBodyProps1<T>, 'style' | 'className' | 'dependencies'> {
|
|
1462
1496
|
}
|
|
1463
1497
|
/**
|
|
1464
1498
|
* The body of a `<Table>`, containing the table rows.
|
|
1465
1499
|
*/
|
|
1466
|
-
export
|
|
1500
|
+
export const TableBody: <T extends object>(props: TableBodyProps<T> & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
|
|
1467
1501
|
export interface ColumnProps extends _ColumnProps1 {
|
|
1468
1502
|
/** Whether the column should render a divider between it and the next column. */
|
|
1469
1503
|
showDivider?: boolean;
|
|
@@ -1486,7 +1520,7 @@ export interface TableHeaderProps<T> extends Omit<_TableHeaderProps1<T>, 'style'
|
|
|
1486
1520
|
/**
|
|
1487
1521
|
* A header within a `<Table>`, containing the table columns.
|
|
1488
1522
|
*/
|
|
1489
|
-
export
|
|
1523
|
+
export const TableHeader: <T extends object>(props: TableHeaderProps<T> & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
|
|
1490
1524
|
export interface CellProps extends _CellProps1, Pick<ColumnProps, 'align' | 'showDivider'> {
|
|
1491
1525
|
/** @private */
|
|
1492
1526
|
isSticky?: boolean;
|
|
@@ -1502,47 +1536,49 @@ export interface RowProps<T> extends Pick<_RowProps1<T>, 'id' | 'columns' | 'chi
|
|
|
1502
1536
|
/**
|
|
1503
1537
|
* A row within a `<Table>`.
|
|
1504
1538
|
*/
|
|
1505
|
-
export
|
|
1506
|
-
/**
|
|
1507
|
-
* Tables are containers for displaying information. They allow users to quickly scan, sort, compare, and take action on large amounts of data.
|
|
1508
|
-
*/
|
|
1509
|
-
export const TableView: React.ForwardRefExoticComponent<TableViewProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1539
|
+
export const Row: <T extends object>(props: RowProps<T> & React.RefAttributes<DOMRefValue<HTMLDivElement>>) => React.ReactElement | null;
|
|
1510
1540
|
export interface TabsProps extends Omit<_TabsProps1, 'className' | 'style' | 'children'>, UnsafeStyles {
|
|
1511
1541
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
1512
1542
|
styles?: StylesPropWithHeight;
|
|
1513
1543
|
/** The content to display in the tabs. */
|
|
1514
|
-
children
|
|
1544
|
+
children: ReactNode;
|
|
1515
1545
|
/**
|
|
1516
1546
|
* The amount of space between the tabs.
|
|
1517
1547
|
* @default 'regular'
|
|
1518
1548
|
*/
|
|
1519
1549
|
density?: 'compact' | 'regular';
|
|
1550
|
+
/**
|
|
1551
|
+
* Defines if the text within the tabs should be hidden and only the icon should be shown.
|
|
1552
|
+
* The text is always visible when the item is collapsed into a picker.
|
|
1553
|
+
* @default 'show'
|
|
1554
|
+
*/
|
|
1555
|
+
labelBehavior?: 'show' | 'hide';
|
|
1520
1556
|
}
|
|
1521
1557
|
export interface TabProps extends Omit<_TabProps1, 'children' | 'style' | 'className'>, StyleProps {
|
|
1522
1558
|
/** The content to display in the tab. */
|
|
1523
|
-
children
|
|
1559
|
+
children: ReactNode;
|
|
1524
1560
|
}
|
|
1525
|
-
export interface TabListProps<T> extends Omit<_TabListProps1<T>, '
|
|
1561
|
+
export interface TabListProps<T> extends Omit<_TabListProps1<T>, 'style' | 'className' | 'aria-label' | 'aria-labelledby'>, StyleProps {
|
|
1526
1562
|
/** The content to display in the tablist. */
|
|
1527
|
-
children
|
|
1563
|
+
children: ReactNode | ((item: T) => ReactNode);
|
|
1528
1564
|
}
|
|
1529
1565
|
export interface TabPanelProps extends Omit<_TabPanelProps1, 'children' | 'style' | 'className'>, UnsafeStyles {
|
|
1530
1566
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
1531
1567
|
styles?: StylesPropWithHeight;
|
|
1532
1568
|
/** The content to display in the tab panels. */
|
|
1533
|
-
children
|
|
1569
|
+
children: ReactNode;
|
|
1534
1570
|
}
|
|
1535
|
-
export const TabsContext: Context<ContextValue<TabsProps
|
|
1536
|
-
export function TabPanel(props: TabPanelProps): JSX.Element;
|
|
1537
|
-
export function Tab(props: TabProps): JSX.Element;
|
|
1538
|
-
export function TabList<T extends object>(props: TabListProps<T>): JSX.Element;
|
|
1571
|
+
export const TabsContext: Context<ContextValue<Partial<TabsProps>, DOMRefValue<HTMLDivElement>>>;
|
|
1539
1572
|
/**
|
|
1540
1573
|
* Tabs organize content into multiple sections and allow users to navigate between them. The content under the set of tabs should be related and form a coherent unit.
|
|
1541
1574
|
*/
|
|
1542
1575
|
export const Tabs: ForwardRefExoticComponent<TabsProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1576
|
+
export function TabList<T extends object>(props: TabListProps<T>): JSX.Element | undefined;
|
|
1577
|
+
export function Tab(props: TabProps): JSX.Element;
|
|
1578
|
+
export function TabPanel(props: TabPanelProps): JSX.Element | null;
|
|
1543
1579
|
export interface TagProps extends Omit<_TagProps1, 'children' | 'style' | 'className'> {
|
|
1544
1580
|
/** The children of the tag. */
|
|
1545
|
-
children
|
|
1581
|
+
children: ReactNode;
|
|
1546
1582
|
}
|
|
1547
1583
|
export interface TagGroupProps<T> extends Omit<_TagGroupProps1, 'children' | 'style' | 'className'>, Pick<TagListProps<T>, 'items' | 'children' | 'renderEmptyState'>, Omit<SpectrumLabelableProps, 'isRequired' | 'necessityIndicator'>, StyleProps, Omit<HelpTextProps, 'errorMessage'> {
|
|
1548
1584
|
/** A description for the tag group. */
|
|
@@ -1568,11 +1604,11 @@ export interface TagGroupProps<T> extends Omit<_TagGroupProps1, 'children' | 'st
|
|
|
1568
1604
|
/** Handler that is called when the action button is pressed. */
|
|
1569
1605
|
onGroupAction?: () => void;
|
|
1570
1606
|
}
|
|
1571
|
-
export const TagGroupContext: Context<ContextValue<TagGroupProps<any
|
|
1607
|
+
export const TagGroupContext: Context<ContextValue<Partial<TagGroupProps<any>>, DOMRefValue<HTMLDivElement>>>;
|
|
1572
1608
|
/** Tags allow users to categorize content. They can represent keywords or people, and are grouped to describe an item or a search request. */
|
|
1573
|
-
export
|
|
1609
|
+
export const TagGroup: <T extends object>(props: TagGroupProps<T> & RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
|
|
1574
1610
|
/** An individual Tag for TagGroups. */
|
|
1575
|
-
export
|
|
1611
|
+
export const Tag: (props: TagProps & RefAttributes<DOMRefValue<HTMLDivElement>>) => ReactElement | null;
|
|
1576
1612
|
export interface TextFieldProps extends Omit<_TextFieldProps1, 'children' | 'className' | 'style'>, StyleProps, SpectrumLabelableProps, HelpTextProps {
|
|
1577
1613
|
/**
|
|
1578
1614
|
* The size of the text field.
|
|
@@ -1581,46 +1617,46 @@ export interface TextFieldProps extends Omit<_TextFieldProps1, 'children' | 'cla
|
|
|
1581
1617
|
*/
|
|
1582
1618
|
size?: 'S' | 'M' | 'L' | 'XL';
|
|
1583
1619
|
}
|
|
1584
|
-
export const TextFieldContext: Context<ContextValue<TextFieldProps
|
|
1620
|
+
export const TextFieldContext: Context<ContextValue<Partial<TextFieldProps>, TextFieldRef<HTMLInputElement>>>;
|
|
1585
1621
|
/**
|
|
1586
1622
|
* TextFields are text inputs that allow users to input custom text entries
|
|
1587
1623
|
* with a keyboard. Various decorations can be displayed around the field to
|
|
1588
1624
|
* communicate the entry requirements.
|
|
1589
1625
|
*/
|
|
1590
|
-
export
|
|
1626
|
+
export const TextField: ForwardRefExoticComponent<TextFieldProps & RefAttributes<TextFieldRef<HTMLInputElement>>>;
|
|
1591
1627
|
export interface TextAreaProps extends Omit<TextFieldProps, 'type' | 'pattern'> {
|
|
1592
1628
|
}
|
|
1593
|
-
export const TextAreaContext: Context<ContextValue<TextAreaProps
|
|
1629
|
+
export const TextAreaContext: Context<ContextValue<Partial<TextAreaProps>, TextFieldRef<HTMLTextAreaElement>>>;
|
|
1594
1630
|
/**
|
|
1595
1631
|
* TextAreas are multiline text inputs, useful for cases where users have
|
|
1596
1632
|
* a sizable amount of text to enter. They allow for all customizations that
|
|
1597
1633
|
* are available to text fields.
|
|
1598
1634
|
*/
|
|
1599
|
-
export
|
|
1635
|
+
export const TextArea: ForwardRefExoticComponent<TextAreaProps & RefAttributes<TextFieldRef<HTMLTextAreaElement>>>;
|
|
1600
1636
|
export interface ToggleButtonGroupProps extends ActionButtonGroupProps, Omit<_ToggleButtonGroupProps1, 'children' | 'style' | 'className'> {
|
|
1601
1637
|
/** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */
|
|
1602
1638
|
isEmphasized?: boolean;
|
|
1603
1639
|
}
|
|
1604
|
-
export const ToggleButtonGroupContext: Context<ContextValue<ToggleButtonGroupProps
|
|
1640
|
+
export const ToggleButtonGroupContext: Context<ContextValue<Partial<ToggleButtonGroupProps>, HTMLDivElement>>;
|
|
1605
1641
|
/**
|
|
1606
1642
|
* A ToggleButtonGroup is a grouping of related ToggleButtons, with single or multiple selection.
|
|
1607
1643
|
*/
|
|
1608
1644
|
export const ToggleButtonGroup: ForwardRefExoticComponent<ToggleButtonGroupProps & RefAttributes<HTMLDivElement>>;
|
|
1609
1645
|
export interface ToggleButtonProps extends Omit<_ToggleButtonProps1, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange'>, StyleProps, ActionButtonStyleProps {
|
|
1610
1646
|
/** The content to display in the button. */
|
|
1611
|
-
children
|
|
1647
|
+
children: ReactNode;
|
|
1612
1648
|
/** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */
|
|
1613
1649
|
isEmphasized?: boolean;
|
|
1614
1650
|
}
|
|
1615
|
-
export const ToggleButtonContext: Context<ContextValue<ToggleButtonProps
|
|
1651
|
+
export const ToggleButtonContext: Context<ContextValue<Partial<ToggleButtonProps>, FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
1616
1652
|
/**
|
|
1617
1653
|
* ToggleButtons allow users to toggle a selection on or off, for example
|
|
1618
1654
|
* switching between two states or modes.
|
|
1619
1655
|
*/
|
|
1620
|
-
export
|
|
1656
|
+
export const ToggleButton: ForwardRefExoticComponent<ToggleButtonProps & RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
|
|
1621
1657
|
interface TooltipTriggerProps extends Omit<TooltipTriggerComponentProps, 'children' | 'closeDelay'>, Pick<_TooltipProps1, 'shouldFlip' | 'containerPadding' | 'offset' | 'crossOffset'> {
|
|
1622
1658
|
/** The content of the tooltip. */
|
|
1623
|
-
children
|
|
1659
|
+
children: ReactNode;
|
|
1624
1660
|
/**
|
|
1625
1661
|
* The placement of the element with respect to its anchor element.
|
|
1626
1662
|
*
|
|
@@ -1630,18 +1666,41 @@ interface TooltipTriggerProps extends Omit<TooltipTriggerComponentProps, 'childr
|
|
|
1630
1666
|
}
|
|
1631
1667
|
export interface TooltipProps extends Omit<_TooltipProps1, 'children' | 'className' | 'style' | 'triggerRef' | 'UNSTABLE_portalContainer' | 'isEntering' | 'isExiting' | 'placement' | 'containerPadding' | 'offset' | 'crossOffset' | 'shouldFlip' | 'arrowBoundaryOffset' | 'isOpen' | 'defaultOpen' | 'onOpenChange'>, UnsafeStyles {
|
|
1632
1668
|
/** The content of the tooltip. */
|
|
1633
|
-
children
|
|
1669
|
+
children: ReactNode;
|
|
1634
1670
|
}
|
|
1671
|
+
/**
|
|
1672
|
+
* Display container for Tooltip content. Has a directional arrow dependent on its placement.
|
|
1673
|
+
*/
|
|
1674
|
+
export const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1635
1675
|
/**
|
|
1636
1676
|
* TooltipTrigger wraps around a trigger element and a Tooltip. It handles opening and closing
|
|
1637
1677
|
* the Tooltip when the user hovers over or focuses the trigger, and positioning the Tooltip
|
|
1638
1678
|
* relative to the trigger.
|
|
1639
1679
|
*/
|
|
1640
1680
|
export function TooltipTrigger(props: TooltipTriggerProps): JSX.Element;
|
|
1681
|
+
interface S2TreeProps {
|
|
1682
|
+
isDetached?: boolean;
|
|
1683
|
+
onAction?: (key: Key) => void;
|
|
1684
|
+
isEmphasized?: boolean;
|
|
1685
|
+
}
|
|
1686
|
+
export interface TreeViewProps extends Omit<TreeProps<any>, 'style' | 'className' | 'onRowAction' | 'selectionBehavior' | 'onScroll' | 'onCellAction' | 'dragAndDropHooks'>, UnsafeStyles, S2TreeProps {
|
|
1687
|
+
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
1688
|
+
styles?: StylesPropWithHeight;
|
|
1689
|
+
}
|
|
1690
|
+
export interface TreeViewItemProps extends Omit<TreeItemProps, 'className' | 'style'> {
|
|
1691
|
+
/** Whether this item has children, even if not loaded yet. */
|
|
1692
|
+
hasChildItems?: boolean;
|
|
1693
|
+
}
|
|
1694
|
+
export const TreeViewItem: (props: TreeViewItemProps) => React.JSX.Element;
|
|
1695
|
+
export interface TreeViewItemContentProps extends Omit<TreeItemContentProps, 'children'> {
|
|
1696
|
+
/** Rendered contents of the tree item or child items. */
|
|
1697
|
+
children: ReactNode;
|
|
1698
|
+
}
|
|
1699
|
+
export const TreeViewItemContent: (props: TreeViewItemContentProps) => React.JSX.Element;
|
|
1641
1700
|
/**
|
|
1642
|
-
*
|
|
1701
|
+
* A tree view provides users with a way to navigate nested hierarchical information.
|
|
1643
1702
|
*/
|
|
1644
|
-
export
|
|
1703
|
+
export const TreeView: React.ForwardRefExoticComponent<TreeViewProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
1645
1704
|
export { Collection } from 'react-aria-components';
|
|
1646
1705
|
export { FileTrigger } from 'react-aria-components';
|
|
1647
1706
|
export type { FileTriggerProps, TooltipTriggerComponentProps as TooltipTriggerProps } from 'react-aria-components';
|