@react-spectrum/s2 1.4.0 → 1.5.1
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/exports/CenterBaseline.cjs +12 -0
- package/dist/exports/CenterBaseline.cjs.map +1 -0
- package/dist/exports/CenterBaseline.mjs +7 -0
- package/dist/exports/CenterBaseline.mjs.map +1 -0
- package/dist/exports/Skeleton.cjs +1 -0
- package/dist/exports/Skeleton.cjs.map +1 -1
- package/dist/exports/Skeleton.mjs +2 -2
- package/dist/exports/Skeleton.mjs.map +1 -1
- package/dist/exports/index.cjs +3 -0
- package/dist/exports/index.cjs.map +1 -1
- package/dist/exports/index.mjs +3 -1
- package/dist/exports/index.mjs.map +1 -1
- package/dist/private/Accordion.cjs +2 -2
- package/dist/private/Accordion.css +2 -2
- package/dist/private/Accordion.mjs +2 -2
- package/dist/private/ActionBar.cjs +59 -59
- package/dist/private/ActionBar.cjs.map +1 -1
- package/dist/private/ActionBar.css +58 -58
- package/dist/private/ActionBar.css.map +1 -1
- package/dist/private/ActionBar.mjs +59 -59
- package/dist/private/ActionBar.mjs.map +1 -1
- package/dist/private/ActionButton.cjs +247 -247
- package/dist/private/ActionButton.cjs.map +1 -1
- package/dist/private/ActionButton.css +169 -169
- package/dist/private/ActionButton.css.map +1 -1
- package/dist/private/ActionButton.mjs +247 -247
- package/dist/private/ActionButton.mjs.map +1 -1
- package/dist/private/ActionButtonGroup.cjs +15 -15
- package/dist/private/ActionButtonGroup.css +9 -9
- package/dist/private/ActionButtonGroup.mjs +15 -15
- package/dist/private/ActionMenu.cjs.map +1 -1
- package/dist/private/ActionMenu.mjs.map +1 -1
- package/dist/private/Add.cjs +10 -10
- package/dist/private/Add.css +6 -6
- package/dist/private/Add.mjs +10 -10
- package/dist/private/AlertDialog.cjs +3 -3
- package/dist/private/AlertDialog.cjs.map +1 -1
- package/dist/private/AlertDialog.css +3 -3
- package/dist/private/AlertDialog.css.map +1 -1
- package/dist/private/AlertDialog.mjs +3 -3
- package/dist/private/AlertDialog.mjs.map +1 -1
- package/dist/private/Asterisk.cjs +6 -6
- package/dist/private/Asterisk.css +4 -4
- package/dist/private/Asterisk.mjs +6 -6
- package/dist/private/Avatar.cjs +16 -16
- package/dist/private/Avatar.css +16 -16
- package/dist/private/Avatar.mjs +16 -16
- package/dist/private/AvatarGroup.cjs +120 -120
- package/dist/private/AvatarGroup.css +31 -31
- package/dist/private/AvatarGroup.mjs +120 -120
- package/dist/private/Badge.cjs +197 -197
- package/dist/private/Badge.css +125 -125
- package/dist/private/Badge.mjs +197 -197
- package/dist/private/Breadcrumbs.cjs +234 -234
- package/dist/private/Breadcrumbs.cjs.map +1 -1
- package/dist/private/Breadcrumbs.css +100 -100
- package/dist/private/Breadcrumbs.css.map +1 -1
- package/dist/private/Breadcrumbs.mjs +234 -234
- package/dist/private/Breadcrumbs.mjs.map +1 -1
- package/dist/private/Button.cjs +335 -326
- package/dist/private/Button.cjs.map +1 -1
- package/dist/private/Button.css +176 -172
- package/dist/private/Button.css.map +1 -1
- package/dist/private/Button.mjs +335 -326
- package/dist/private/Button.mjs.map +1 -1
- package/dist/private/ButtonGroup.cjs +23 -20
- package/dist/private/ButtonGroup.cjs.map +1 -1
- package/dist/private/ButtonGroup.css +19 -15
- package/dist/private/ButtonGroup.css.map +1 -1
- package/dist/private/ButtonGroup.mjs +23 -20
- package/dist/private/ButtonGroup.mjs.map +1 -1
- package/dist/private/Calendar.cjs +232 -232
- package/dist/private/Calendar.cjs.map +1 -1
- package/dist/private/Calendar.css +149 -149
- package/dist/private/Calendar.css.map +1 -1
- package/dist/private/Calendar.mjs +232 -232
- package/dist/private/Calendar.mjs.map +1 -1
- package/dist/private/Card.cjs +309 -309
- package/dist/private/Card.css +206 -206
- package/dist/private/Card.mjs +309 -309
- package/dist/private/CardView.cjs +17 -17
- package/dist/private/CardView.css +17 -17
- package/dist/private/CardView.mjs +17 -17
- package/dist/private/CenterBaseline.cjs +1 -1
- package/dist/private/CenterBaseline.cjs.map +1 -1
- package/dist/private/CenterBaseline.css +2 -2
- package/dist/private/CenterBaseline.css.map +1 -1
- package/dist/private/CenterBaseline.mjs +1 -1
- package/dist/private/CenterBaseline.mjs.map +1 -1
- package/dist/private/Checkbox.cjs +188 -188
- package/dist/private/Checkbox.css +110 -110
- package/dist/private/Checkbox.mjs +188 -188
- package/dist/private/CheckboxGroup.cjs +43 -43
- package/dist/private/CheckboxGroup.css +37 -37
- package/dist/private/CheckboxGroup.mjs +43 -43
- package/dist/private/Checkmark.cjs +12 -12
- package/dist/private/Checkmark.css +8 -8
- package/dist/private/Checkmark.mjs +12 -12
- package/dist/private/Chevron.cjs +12 -12
- package/dist/private/Chevron.css +10 -10
- package/dist/private/Chevron.mjs +12 -12
- package/dist/private/ClearButton.cjs +30 -30
- package/dist/private/ClearButton.css +30 -30
- package/dist/private/ClearButton.mjs +30 -30
- package/dist/private/CloseButton.cjs +52 -52
- package/dist/private/CloseButton.cjs.map +1 -1
- package/dist/private/CloseButton.css +46 -46
- package/dist/private/CloseButton.css.map +1 -1
- package/dist/private/CloseButton.mjs +52 -52
- package/dist/private/CloseButton.mjs.map +1 -1
- package/dist/private/ColorArea.cjs +16 -16
- package/dist/private/ColorArea.css +16 -16
- package/dist/private/ColorArea.mjs +16 -16
- package/dist/private/ColorField.cjs +31 -31
- package/dist/private/ColorField.css +27 -27
- package/dist/private/ColorField.mjs +31 -31
- package/dist/private/ColorHandle.cjs +27 -27
- package/dist/private/ColorHandle.css +42 -42
- package/dist/private/ColorHandle.mjs +27 -27
- package/dist/private/ColorSlider.cjs +108 -108
- package/dist/private/ColorSlider.css +52 -52
- package/dist/private/ColorSlider.mjs +108 -108
- package/dist/private/ColorSwatch.cjs +29 -29
- package/dist/private/ColorSwatch.css +29 -29
- package/dist/private/ColorSwatch.mjs +29 -29
- package/dist/private/ColorSwatchPicker.cjs +29 -29
- package/dist/private/ColorSwatchPicker.css +48 -48
- package/dist/private/ColorSwatchPicker.mjs +29 -29
- package/dist/private/ColorWheel.cjs +26 -26
- package/dist/private/ColorWheel.css +17 -17
- package/dist/private/ColorWheel.mjs +26 -26
- package/dist/private/ComboBox.cjs +381 -381
- package/dist/private/ComboBox.cjs.map +1 -1
- package/dist/private/ComboBox.css +188 -188
- package/dist/private/ComboBox.css.map +1 -1
- package/dist/private/ComboBox.mjs +381 -381
- package/dist/private/ComboBox.mjs.map +1 -1
- package/dist/private/ContextualHelp.cjs +5 -5
- package/dist/private/ContextualHelp.cjs.map +1 -1
- package/dist/private/ContextualHelp.css +50 -50
- package/dist/private/ContextualHelp.css.map +1 -1
- package/dist/private/ContextualHelp.mjs +5 -5
- package/dist/private/ContextualHelp.mjs.map +1 -1
- package/dist/private/CornerTriangle.cjs +8 -8
- package/dist/private/CornerTriangle.css +6 -6
- package/dist/private/CornerTriangle.mjs +8 -8
- package/dist/private/Cross.cjs +14 -14
- package/dist/private/Cross.css +10 -10
- package/dist/private/Cross.mjs +14 -14
- package/dist/private/CustomDialog.cjs +25 -25
- package/dist/private/CustomDialog.css +25 -25
- package/dist/private/CustomDialog.mjs +25 -25
- package/dist/private/Dash.cjs +10 -10
- package/dist/private/Dash.css +6 -6
- package/dist/private/Dash.mjs +10 -10
- package/dist/private/DateField.cjs +73 -73
- package/dist/private/DateField.css +77 -77
- package/dist/private/DateField.mjs +73 -73
- package/dist/private/DatePicker.cjs +172 -172
- package/dist/private/DatePicker.cjs.map +1 -1
- package/dist/private/DatePicker.css +128 -128
- package/dist/private/DatePicker.css.map +1 -1
- package/dist/private/DatePicker.mjs +172 -172
- package/dist/private/DatePicker.mjs.map +1 -1
- package/dist/private/DateRangePicker.cjs +55 -55
- package/dist/private/DateRangePicker.cjs.map +1 -1
- package/dist/private/DateRangePicker.css +59 -59
- package/dist/private/DateRangePicker.css.map +1 -1
- package/dist/private/DateRangePicker.mjs +55 -55
- package/dist/private/DateRangePicker.mjs.map +1 -1
- package/dist/private/Dialog.cjs +17 -17
- package/dist/private/Dialog.css +70 -70
- package/dist/private/Dialog.mjs +17 -17
- package/dist/private/Disclosure.cjs +144 -122
- package/dist/private/Disclosure.cjs.map +1 -1
- package/dist/private/Disclosure.css +112 -112
- package/dist/private/Disclosure.css.map +1 -1
- package/dist/private/Disclosure.mjs +144 -122
- package/dist/private/Disclosure.mjs.map +1 -1
- package/dist/private/Divider.cjs +25 -25
- package/dist/private/Divider.css +25 -25
- package/dist/private/Divider.mjs +25 -25
- package/dist/private/DragHandle.cjs +8 -8
- package/dist/private/DragHandle.css +6 -6
- package/dist/private/DragHandle.mjs +8 -8
- package/dist/private/DragPreview.cjs +154 -154
- package/dist/private/DragPreview.css +106 -106
- package/dist/private/DragPreview.mjs +154 -154
- package/dist/private/DropZone.cjs +61 -61
- package/dist/private/DropZone.cjs.map +1 -1
- package/dist/private/DropZone.css +57 -57
- package/dist/private/DropZone.css.map +1 -1
- package/dist/private/DropZone.mjs +61 -61
- package/dist/private/DropZone.mjs.map +1 -1
- package/dist/private/Field.cjs +360 -360
- package/dist/private/Field.cjs.map +1 -1
- package/dist/private/Field.css +160 -160
- package/dist/private/Field.css.map +1 -1
- package/dist/private/Field.mjs +360 -360
- package/dist/private/Field.mjs.map +1 -1
- package/dist/private/Form.cjs +9 -9
- package/dist/private/Form.css +9 -9
- package/dist/private/Form.mjs +9 -9
- package/dist/private/FullscreenDialog.cjs +5 -5
- package/dist/private/FullscreenDialog.css +78 -78
- package/dist/private/FullscreenDialog.mjs +5 -5
- package/dist/private/IllustratedMessage.cjs +228 -228
- package/dist/private/IllustratedMessage.css +72 -72
- package/dist/private/IllustratedMessage.mjs +228 -228
- package/dist/private/Image.cjs +14 -14
- package/dist/private/Image.css +14 -14
- package/dist/private/Image.mjs +14 -14
- package/dist/private/InlineAlert.cjs +100 -100
- package/dist/private/InlineAlert.cjs.map +1 -1
- package/dist/private/InlineAlert.css +76 -76
- package/dist/private/InlineAlert.css.map +1 -1
- package/dist/private/InlineAlert.mjs +100 -100
- package/dist/private/InlineAlert.mjs.map +1 -1
- package/dist/private/LabeledValue.cjs +134 -134
- package/dist/private/LabeledValue.css +63 -63
- package/dist/private/LabeledValue.mjs +134 -134
- package/dist/private/Link.cjs +49 -49
- package/dist/private/Link.css +41 -41
- package/dist/private/Link.mjs +49 -49
- package/dist/private/LinkOut.cjs +8 -8
- package/dist/private/LinkOut.css +8 -8
- package/dist/private/LinkOut.mjs +8 -8
- package/dist/private/ListView.cjs +245 -245
- package/dist/private/ListView.cjs.map +1 -1
- package/dist/private/ListView.css +177 -177
- package/dist/private/ListView.css.map +1 -1
- package/dist/private/ListView.mjs +245 -245
- package/dist/private/ListView.mjs.map +1 -1
- package/dist/private/Menu.cjs +446 -446
- package/dist/private/Menu.cjs.map +1 -1
- package/dist/private/Menu.css +196 -196
- package/dist/private/Menu.css.map +1 -1
- package/dist/private/Menu.mjs +446 -446
- package/dist/private/Menu.mjs.map +1 -1
- package/dist/private/Meter.cjs +153 -153
- package/dist/private/Meter.css +91 -91
- package/dist/private/Meter.mjs +153 -153
- package/dist/private/Modal.cjs +74 -74
- package/dist/private/Modal.css +59 -59
- package/dist/private/Modal.mjs +74 -74
- package/dist/private/NotificationBadge.cjs +56 -56
- package/dist/private/NotificationBadge.cjs.map +1 -1
- package/dist/private/NotificationBadge.css +49 -49
- package/dist/private/NotificationBadge.css.map +1 -1
- package/dist/private/NotificationBadge.mjs +56 -56
- package/dist/private/NotificationBadge.mjs.map +1 -1
- package/dist/private/NumberField.cjs +114 -114
- package/dist/private/NumberField.css +99 -99
- package/dist/private/NumberField.mjs +114 -114
- package/dist/private/Picker.cjs +275 -275
- package/dist/private/Picker.cjs.map +1 -1
- package/dist/private/Picker.css +173 -173
- package/dist/private/Picker.css.map +1 -1
- package/dist/private/Picker.mjs +275 -275
- package/dist/private/Picker.mjs.map +1 -1
- package/dist/private/Popover.cjs +95 -95
- package/dist/private/Popover.cjs.map +1 -1
- package/dist/private/Popover.css +75 -75
- package/dist/private/Popover.css.map +1 -1
- package/dist/private/Popover.mjs +95 -95
- package/dist/private/Popover.mjs.map +1 -1
- package/dist/private/ProgressBar.cjs +163 -163
- package/dist/private/ProgressBar.css +99 -99
- package/dist/private/ProgressBar.mjs +163 -163
- package/dist/private/ProgressCircle.cjs +34 -31
- package/dist/private/ProgressCircle.cjs.map +1 -1
- package/dist/private/ProgressCircle.css +24 -24
- package/dist/private/ProgressCircle.css.map +1 -1
- package/dist/private/ProgressCircle.mjs +34 -31
- package/dist/private/ProgressCircle.mjs.map +1 -1
- package/dist/private/Provider.cjs +19 -19
- package/dist/private/Provider.css +15 -15
- package/dist/private/Provider.mjs +19 -19
- package/dist/private/RadioGroup.cjs +208 -208
- package/dist/private/RadioGroup.css +113 -113
- package/dist/private/RadioGroup.mjs +208 -208
- package/dist/private/RangeCalendar.cjs +16 -16
- package/dist/private/RangeCalendar.cjs.map +1 -1
- package/dist/private/RangeCalendar.css +17 -17
- package/dist/private/RangeCalendar.css.map +1 -1
- package/dist/private/RangeCalendar.mjs +16 -16
- package/dist/private/RangeCalendar.mjs.map +1 -1
- package/dist/private/RangeSlider.cjs.map +1 -1
- package/dist/private/RangeSlider.mjs.map +1 -1
- package/dist/private/SearchField.cjs +41 -41
- package/dist/private/SearchField.css +45 -45
- package/dist/private/SearchField.mjs +41 -41
- package/dist/private/SegmentedControl.cjs +178 -178
- package/dist/private/SegmentedControl.css +123 -123
- package/dist/private/SegmentedControl.mjs +178 -178
- package/dist/private/SelectBoxGroup.cjs +142 -142
- package/dist/private/SelectBoxGroup.css +120 -120
- package/dist/private/SelectBoxGroup.mjs +142 -142
- package/dist/private/Slider.cjs +292 -292
- package/dist/private/Slider.css +159 -159
- package/dist/private/Slider.mjs +292 -292
- package/dist/private/StatusLight.cjs +115 -115
- package/dist/private/StatusLight.css +59 -59
- package/dist/private/StatusLight.mjs +115 -115
- package/dist/private/Switch.cjs +171 -171
- package/dist/private/Switch.css +85 -85
- package/dist/private/Switch.mjs +171 -171
- package/dist/private/TableView.cjs +551 -534
- package/dist/private/TableView.cjs.map +1 -1
- package/dist/private/TableView.css +329 -303
- package/dist/private/TableView.css.map +1 -1
- package/dist/private/TableView.mjs +551 -534
- package/dist/private/TableView.mjs.map +1 -1
- package/dist/private/Tabs.cjs +131 -125
- package/dist/private/Tabs.cjs.map +1 -1
- package/dist/private/Tabs.css +105 -105
- package/dist/private/Tabs.css.map +1 -1
- package/dist/private/Tabs.mjs +131 -125
- package/dist/private/Tabs.mjs.map +1 -1
- package/dist/private/TabsPicker.cjs +127 -127
- package/dist/private/TabsPicker.css +108 -108
- package/dist/private/TabsPicker.mjs +127 -127
- package/dist/private/TagGroup.cjs +203 -203
- package/dist/private/TagGroup.cjs.map +1 -1
- package/dist/private/TagGroup.css +146 -146
- package/dist/private/TagGroup.css.map +1 -1
- package/dist/private/TagGroup.mjs +203 -203
- package/dist/private/TagGroup.mjs.map +1 -1
- package/dist/private/TextField.cjs +58 -58
- package/dist/private/TextField.css +54 -54
- package/dist/private/TextField.mjs +58 -58
- package/dist/private/TimeField.cjs +51 -51
- package/dist/private/TimeField.css +47 -47
- package/dist/private/TimeField.mjs +51 -51
- package/dist/private/Toast.cjs +120 -120
- package/dist/private/Toast.cjs.map +1 -1
- package/dist/private/Toast.css +110 -110
- package/dist/private/Toast.css.map +1 -1
- package/dist/private/Toast.mjs +120 -120
- package/dist/private/Toast.mjs.map +1 -1
- package/dist/private/ToggleButton.cjs +16 -16
- package/dist/private/ToggleButton.css +23 -23
- package/dist/private/ToggleButton.mjs +16 -16
- package/dist/private/Tooltip.cjs +86 -86
- package/dist/private/Tooltip.css +70 -70
- package/dist/private/Tooltip.mjs +86 -86
- package/dist/private/TreeView.cjs +229 -229
- package/dist/private/TreeView.cjs.map +1 -1
- package/dist/private/TreeView.css +184 -184
- package/dist/private/TreeView.css.map +1 -1
- package/dist/private/TreeView.mjs +229 -229
- package/dist/private/TreeView.mjs.map +1 -1
- package/dist/private/dnd-utils.cjs +42 -42
- package/dist/private/dnd-utils.css +39 -39
- package/dist/private/dnd-utils.mjs +42 -42
- package/dist/types/exports/CenterBaseline.d.ts +1 -0
- package/dist/types/exports/Skeleton.d.ts +1 -1
- package/dist/types/exports/index.d.ts +1 -0
- package/dist/types/src/CenterBaseline.d.ts +17 -0
- package/dist/types/src/ContextualHelp.d.ts +1 -1
- package/dist/types/src/Disclosure.d.ts +6 -1
- package/dist/types/src/ListView.d.ts +1 -1
- package/dist/types/src/Menu.d.ts +1 -1
- package/dist/types/src/Popover.d.ts +2 -2
- package/dist/types/src/style-utils.d.ts +4 -1
- package/exports/CenterBaseline.ts +1 -0
- package/exports/Skeleton.ts +1 -1
- package/exports/index.ts +2 -0
- package/icons/Icon.cjs +10 -10
- package/icons/Icon.css +9 -9
- package/icons/Icon.mjs +10 -10
- package/icons/Skeleton.cjs +2 -2
- package/icons/Skeleton.css +6 -6
- package/icons/Skeleton.mjs +2 -2
- package/package.json +6 -6
- package/src/ActionBar.tsx +0 -1
- package/src/ActionButton.tsx +0 -1
- package/src/ActionMenu.tsx +0 -1
- package/src/AlertDialog.tsx +0 -1
- package/src/Breadcrumbs.tsx +0 -4
- package/src/Button.tsx +12 -3
- package/src/ButtonGroup.tsx +1 -0
- package/src/Calendar.tsx +0 -1
- package/src/CenterBaseline.tsx +17 -0
- package/src/CloseButton.tsx +0 -1
- package/src/ComboBox.tsx +0 -1
- package/src/ContextualHelp.tsx +1 -2
- package/src/DatePicker.tsx +0 -1
- package/src/DateRangePicker.tsx +0 -1
- package/src/Disclosure.tsx +92 -79
- package/src/DropZone.tsx +0 -1
- package/src/Field.tsx +0 -1
- package/src/InlineAlert.tsx +0 -1
- package/src/ListView.tsx +0 -2
- package/src/Menu.tsx +1 -8
- package/src/NotificationBadge.tsx +0 -1
- package/src/Picker.tsx +0 -1
- package/src/Popover.tsx +2 -1
- package/src/ProgressCircle.tsx +1 -1
- package/src/RangeCalendar.tsx +0 -1
- package/src/RangeSlider.tsx +0 -1
- package/src/TableView.tsx +75 -37
- package/src/Tabs.tsx +9 -2
- package/src/TagGroup.tsx +0 -1
- package/src/Toast.tsx +0 -3
- package/src/TreeView.tsx +0 -1
- package/src/style-utils.ts +13 -2
- package/style/__tests__/style-macro.test.js +73 -71
- package/style/dist/main.cjs +25 -25
- package/style/dist/module.mjs +13 -13
- package/style/dist/properties.mjs +3 -3
- package/style/dist/spectrum-theme.cjs +224 -224
- package/style/dist/spectrum-theme.mjs +217 -217
- package/style/dist/style-macro.cjs +100 -100
- package/style/dist/style-macro.mjs +94 -94
- package/style/dist/style-utils.cjs +51 -39
- package/style/dist/style-utils.cjs.map +1 -1
- package/style/dist/style-utils.mjs +50 -38
- package/style/dist/style-utils.mjs.map +1 -1
|
@@ -5,7 +5,7 @@ import { DialogProps } from 'react-aria-components/Dialog';
|
|
|
5
5
|
import { DOMRefValue, GlobalDOMAttributes } from '@react-types/shared';
|
|
6
6
|
import { heightProperties, UnsafeStyles, widthProperties } from './style-utils';
|
|
7
7
|
import { StyleString } from '../style/types';
|
|
8
|
-
export interface PopoverProps extends UnsafeStyles, Omit<AriaPopoverProps, 'arrowSize' | '
|
|
8
|
+
export interface PopoverProps extends UnsafeStyles, Omit<AriaPopoverProps, 'arrowSize' | 'arrowBoundaryOffset' | 'isKeyboardDismissDisabled' | 'shouldCloseOnInteractOutside' | 'shouldUpdatePosition' | 'style' | 'className' | 'render' | keyof GlobalDOMAttributes> {
|
|
9
9
|
/**
|
|
10
10
|
* The styles of the popover.
|
|
11
11
|
*/
|
|
@@ -25,7 +25,7 @@ export declare const PopoverContext: import("react").Context<ContextValue<Popove
|
|
|
25
25
|
export declare const InPopoverContext: import("react").Context<boolean>;
|
|
26
26
|
export declare const PopoverBase: import("react").ForwardRefExoticComponent<PopoverProps & import("react").RefAttributes<HTMLDivElement | null>>;
|
|
27
27
|
type PopoverStylesProp = StyleString<(typeof widthProperties)[number] | (typeof heightProperties)[number]>;
|
|
28
|
-
export interface PopoverDialogProps extends Pick<PopoverProps, 'size' | 'hideArrow' | 'placement' | 'shouldFlip' | 'containerPadding' | 'offset' | 'crossOffset' | 'triggerRef' | 'isOpen' | 'onOpenChange'>, Omit<DialogProps, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
28
|
+
export interface PopoverDialogProps extends Pick<PopoverProps, 'size' | 'hideArrow' | 'placement' | 'shouldFlip' | 'containerPadding' | 'offset' | 'crossOffset' | 'getTargetRect' | 'isNonModal' | 'triggerRef' | 'isOpen' | 'onOpenChange'>, Omit<DialogProps, 'children' | 'className' | 'style' | 'render' | keyof GlobalDOMAttributes>, UnsafeStyles {
|
|
29
29
|
/**
|
|
30
30
|
* The children of the popover.
|
|
31
31
|
*/
|
|
@@ -272,9 +272,11 @@ export declare function control(options: ControlOptions): ControlResult;
|
|
|
272
272
|
declare const allowedOverrides: readonly ["margin", "marginStart", "marginEnd", "marginTop", "marginBottom", "marginX", "marginY", "flexGrow", "flexShrink", "flexBasis", "justifySelf", "alignSelf", "order", "gridArea", "gridRowStart", "gridRowEnd", "gridColumnStart", "gridColumnEnd", "position", "zIndex", "top", "bottom", "inset", "insetX", "insetY", "insetStart", "insetEnd", "visibility"];
|
|
273
273
|
export declare const widthProperties: readonly ["width", "minWidth", "maxWidth"];
|
|
274
274
|
export declare const heightProperties: readonly ["size", "height", "minHeight", "maxHeight"];
|
|
275
|
+
export declare const fontProperties: readonly ["font", "fontFamily", "fontWeight", "lineHeight", "fontSize"];
|
|
275
276
|
export type StylesProp = StyleString<(typeof allowedOverrides)[number] | (typeof widthProperties)[number]>;
|
|
276
277
|
export type StylesPropWithHeight = StyleString<(typeof allowedOverrides)[number] | (typeof widthProperties)[number] | (typeof heightProperties)[number]>;
|
|
277
278
|
export type StylesPropWithoutWidth = StyleString<(typeof allowedOverrides)[number]>;
|
|
279
|
+
export type StylesPropWithFont = StyleString<(typeof fontProperties)[number]>;
|
|
278
280
|
export type UnsafeClassName = string & {
|
|
279
281
|
properties?: never;
|
|
280
282
|
};
|
|
@@ -295,7 +297,8 @@ export interface StyleProps extends UnsafeStyles {
|
|
|
295
297
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
296
298
|
styles?: StylesProp;
|
|
297
299
|
}
|
|
298
|
-
export declare function getAllowedOverrides({ width, height }?: {
|
|
300
|
+
export declare function getAllowedOverrides({ width, height, font }?: {
|
|
301
|
+
font?: boolean | undefined;
|
|
299
302
|
height?: boolean | undefined;
|
|
300
303
|
width?: boolean | undefined;
|
|
301
304
|
}): string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {CenterBaseline} from '../src/CenterBaseline';
|
package/exports/Skeleton.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {Skeleton, useIsSkeleton} from '../src/Skeleton';
|
|
1
|
+
export {Skeleton, SkeletonContext, useIsSkeleton} from '../src/Skeleton';
|
|
2
2
|
export type {SkeletonProps} from '../src/Skeleton';
|
package/exports/index.ts
CHANGED
|
@@ -150,6 +150,8 @@ export {pressScale} from '../src/pressScale';
|
|
|
150
150
|
|
|
151
151
|
export {mergeStyles} from '../style/runtime';
|
|
152
152
|
|
|
153
|
+
export {CenterBaseline} from '../src/CenterBaseline';
|
|
154
|
+
|
|
153
155
|
export {Autocomplete} from 'react-aria-components/Autocomplete';
|
|
154
156
|
export {Collection} from 'react-aria/Collection';
|
|
155
157
|
export {FileTrigger} from 'react-aria-components/FileTrigger';
|
package/icons/Icon.cjs
CHANGED
|
@@ -71,9 +71,9 @@ const $bde97c91243ed164$var$iconStyles = function anonymous(props, overrides) {
|
|
|
71
71
|
if (p[1] === "F") height = true;
|
|
72
72
|
rules += p[0];
|
|
73
73
|
}
|
|
74
|
-
if (!width) rules += '
|
|
75
|
-
if (!height) rules += '
|
|
76
|
-
rules += '
|
|
74
|
+
if (!width) rules += ' Zm151';
|
|
75
|
+
if (!height) rules += ' Fn151';
|
|
76
|
+
rules += ' _va151';
|
|
77
77
|
return rules;
|
|
78
78
|
};
|
|
79
79
|
function $bde97c91243ed164$export$274edc73af1ae9c8(Component, context = $bde97c91243ed164$export$a49f528ae1a4d0ed) {
|
|
@@ -114,20 +114,20 @@ const $bde97c91243ed164$var$illustrationStyles = function anonymous(props, overr
|
|
|
114
114
|
rules += p[0];
|
|
115
115
|
}
|
|
116
116
|
if (props.size === "L") {
|
|
117
|
-
if (!width) rules += '
|
|
117
|
+
if (!width) rules += ' Zq151';
|
|
118
118
|
} else if (props.size === "M") {
|
|
119
|
-
if (!width) rules += '
|
|
119
|
+
if (!width) rules += ' ZH151';
|
|
120
120
|
} else if (props.size === "S") {
|
|
121
|
-
if (!width) rules += '
|
|
121
|
+
if (!width) rules += ' ZF151';
|
|
122
122
|
}
|
|
123
123
|
if (props.size === "L") {
|
|
124
|
-
if (!height) rules += '
|
|
124
|
+
if (!height) rules += ' Fr151';
|
|
125
125
|
} else if (props.size === "M") {
|
|
126
|
-
if (!height) rules += '
|
|
126
|
+
if (!height) rules += ' FB151';
|
|
127
127
|
} else if (props.size === "S") {
|
|
128
|
-
if (!height) rules += '
|
|
128
|
+
if (!height) rules += ' Fz151';
|
|
129
129
|
}
|
|
130
|
-
rules += '
|
|
130
|
+
rules += ' _va151';
|
|
131
131
|
return rules;
|
|
132
132
|
};
|
|
133
133
|
function $bde97c91243ed164$export$4d00e7be716a0093(Component) {
|
package/icons/Icon.css
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
@layer _.a {
|
|
2
|
-
.
|
|
2
|
+
.Zm151 {
|
|
3
3
|
width: calc(1.25rem * var(--s2-scale));
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.
|
|
6
|
+
.Fn151 {
|
|
7
7
|
height: calc(1.25rem * var(--s2-scale));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.
|
|
10
|
+
.ZF151 {
|
|
11
11
|
width: calc(3rem * var(--s2-scale));
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.
|
|
14
|
+
.ZH151 {
|
|
15
15
|
width: calc(6rem * var(--s2-scale));
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.
|
|
18
|
+
.Zq151 {
|
|
19
19
|
width: calc(10rem * var(--s2-scale));
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.
|
|
22
|
+
.Fz151 {
|
|
23
23
|
height: calc(3rem * var(--s2-scale));
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.
|
|
26
|
+
.FB151 {
|
|
27
27
|
height: calc(6rem * var(--s2-scale));
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.
|
|
30
|
+
.Fr151 {
|
|
31
31
|
height: calc(10rem * var(--s2-scale));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.
|
|
34
|
+
._va151 {
|
|
35
35
|
flex-shrink: 0;
|
|
36
36
|
}
|
|
37
37
|
}
|
package/icons/Icon.mjs
CHANGED
|
@@ -62,9 +62,9 @@ const $ac8c32e6775ddd1f$var$iconStyles = function anonymous(props, overrides) {
|
|
|
62
62
|
if (p[1] === "F") height = true;
|
|
63
63
|
rules += p[0];
|
|
64
64
|
}
|
|
65
|
-
if (!width) rules += '
|
|
66
|
-
if (!height) rules += '
|
|
67
|
-
rules += '
|
|
65
|
+
if (!width) rules += ' Zm151';
|
|
66
|
+
if (!height) rules += ' Fn151';
|
|
67
|
+
rules += ' _va151';
|
|
68
68
|
return rules;
|
|
69
69
|
};
|
|
70
70
|
function $ac8c32e6775ddd1f$export$274edc73af1ae9c8(Component, context = $ac8c32e6775ddd1f$export$a49f528ae1a4d0ed) {
|
|
@@ -105,20 +105,20 @@ const $ac8c32e6775ddd1f$var$illustrationStyles = function anonymous(props, overr
|
|
|
105
105
|
rules += p[0];
|
|
106
106
|
}
|
|
107
107
|
if (props.size === "L") {
|
|
108
|
-
if (!width) rules += '
|
|
108
|
+
if (!width) rules += ' Zq151';
|
|
109
109
|
} else if (props.size === "M") {
|
|
110
|
-
if (!width) rules += '
|
|
110
|
+
if (!width) rules += ' ZH151';
|
|
111
111
|
} else if (props.size === "S") {
|
|
112
|
-
if (!width) rules += '
|
|
112
|
+
if (!width) rules += ' ZF151';
|
|
113
113
|
}
|
|
114
114
|
if (props.size === "L") {
|
|
115
|
-
if (!height) rules += '
|
|
115
|
+
if (!height) rules += ' Fr151';
|
|
116
116
|
} else if (props.size === "M") {
|
|
117
|
-
if (!height) rules += '
|
|
117
|
+
if (!height) rules += ' FB151';
|
|
118
118
|
} else if (props.size === "S") {
|
|
119
|
-
if (!height) rules += '
|
|
119
|
+
if (!height) rules += ' Fz151';
|
|
120
120
|
}
|
|
121
|
-
rules += '
|
|
121
|
+
rules += ' _va151';
|
|
122
122
|
return rules;
|
|
123
123
|
};
|
|
124
124
|
function $ac8c32e6775ddd1f$export$4d00e7be716a0093(Component) {
|
package/icons/Skeleton.cjs
CHANGED
|
@@ -99,7 +99,7 @@ function $5eb75e0c130e0669$export$cb6ddd830302c2a8({ children: children }) {
|
|
|
99
99
|
// @ts-ignore - compatibility with React < 19
|
|
100
100
|
inert: (0, $lzdFu$reactariaprivateutilsinertValue.inertValue)(true),
|
|
101
101
|
ref: $5eb75e0c130e0669$export$6b288fe07640c94c(true),
|
|
102
|
-
className: $5eb75e0c130e0669$export$d2353276f167b21f + "
|
|
102
|
+
className: $5eb75e0c130e0669$export$d2353276f167b21f + " pw151 _ma151 oa151 na151 ka151 ja151",
|
|
103
103
|
children: children
|
|
104
104
|
});
|
|
105
105
|
}
|
|
@@ -120,7 +120,7 @@ function $5eb75e0c130e0669$export$6069cbe61f690103({ children: children }) {
|
|
|
120
120
|
}
|
|
121
121
|
function $5eb75e0c130e0669$export$4b7803c08fe9a32b(styles) {
|
|
122
122
|
let isSkeleton = (0, $lzdFu$react.useContext)($5eb75e0c130e0669$export$74e166679b1f49ee);
|
|
123
|
-
if (isSkeleton) return (0, $308b180f49d82d28$exports.mergeStyles)("
|
|
123
|
+
if (isSkeleton) return (0, $308b180f49d82d28$exports.mergeStyles)(" oa151 na151 ka151 ja151", styles);
|
|
124
124
|
return styles || '';
|
|
125
125
|
}
|
|
126
126
|
|
package/icons/Skeleton.css
CHANGED
|
@@ -12,28 +12,28 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
@layer _.a {
|
|
15
|
-
.
|
|
15
|
+
.pw151 {
|
|
16
16
|
color: #0000;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.
|
|
19
|
+
._ma151 {
|
|
20
20
|
-webkit-box-decoration-break: clone;
|
|
21
21
|
box-decoration-break: clone;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.
|
|
24
|
+
.oa151 {
|
|
25
25
|
border-start-start-radius: .25rem;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.
|
|
28
|
+
.na151 {
|
|
29
29
|
border-start-end-radius: .25rem;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.
|
|
32
|
+
.ka151 {
|
|
33
33
|
border-end-start-radius: .25rem;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.
|
|
36
|
+
.ja151 {
|
|
37
37
|
border-end-end-radius: .25rem;
|
|
38
38
|
}
|
|
39
39
|
}
|
package/icons/Skeleton.mjs
CHANGED
|
@@ -86,7 +86,7 @@ function $5ad421ec19460c48$export$cb6ddd830302c2a8({ children: children }) {
|
|
|
86
86
|
// @ts-ignore - compatibility with React < 19
|
|
87
87
|
inert: (0, $cHM3s$inertValue)(true),
|
|
88
88
|
ref: $5ad421ec19460c48$export$6b288fe07640c94c(true),
|
|
89
|
-
className: $5ad421ec19460c48$export$d2353276f167b21f + "
|
|
89
|
+
className: $5ad421ec19460c48$export$d2353276f167b21f + " pw151 _ma151 oa151 na151 ka151 ja151",
|
|
90
90
|
children: children
|
|
91
91
|
});
|
|
92
92
|
}
|
|
@@ -107,7 +107,7 @@ function $5ad421ec19460c48$export$6069cbe61f690103({ children: children }) {
|
|
|
107
107
|
}
|
|
108
108
|
function $5ad421ec19460c48$export$4b7803c08fe9a32b(styles) {
|
|
109
109
|
let isSkeleton = (0, $cHM3s$useContext)($5ad421ec19460c48$export$74e166679b1f49ee);
|
|
110
|
-
if (isSkeleton) return (0, $feb886035e0d4633$export$e618dc39ac9ad607)("
|
|
110
|
+
if (isSkeleton) return (0, $feb886035e0d4633$export$e618dc39ac9ad607)(" oa151 na151 ka151 ja151", styles);
|
|
111
111
|
return styles || '';
|
|
112
112
|
}
|
|
113
113
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/s2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Spectrum 2 UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -83,10 +83,10 @@
|
|
|
83
83
|
"@internationalized/date": "^3.12.2",
|
|
84
84
|
"@internationalized/number": "^3.6.7",
|
|
85
85
|
"@parcel/macros": "^2.16.3",
|
|
86
|
-
"@react-types/shared": "^3.
|
|
87
|
-
"react-aria": "3.
|
|
88
|
-
"react-aria-components": "1.
|
|
89
|
-
"react-stately": "3.
|
|
86
|
+
"@react-types/shared": "^3.36.0",
|
|
87
|
+
"react-aria": "3.50.0",
|
|
88
|
+
"react-aria-components": "1.19.0",
|
|
89
|
+
"react-stately": "3.48.0"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"react": "^19.0.0-rc.1",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"page": "dist/page.cjs",
|
|
97
97
|
"style-main": "style/dist/main.cjs",
|
|
98
98
|
"style-module": "style/dist/module.mjs",
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "c4de1e2235bce213d392477a2ebc1e575937051f"
|
|
100
100
|
}
|
package/src/ActionBar.tsx
CHANGED
|
@@ -30,7 +30,6 @@ import {
|
|
|
30
30
|
import {DOMProps, DOMRef, DOMRefValue, Key} from '@react-types/shared';
|
|
31
31
|
import {FocusScope} from 'react-aria/FocusScope';
|
|
32
32
|
import intlMessages from '../intl/*.json';
|
|
33
|
-
// @ts-ignore
|
|
34
33
|
import {lightDark, style} from '../style' with {type: 'macro'};
|
|
35
34
|
import {StyleProps} from './style-utils' with {type: 'macro'};
|
|
36
35
|
import {useControlledState} from 'react-stately/useControlledState';
|
package/src/ActionButton.tsx
CHANGED
|
@@ -34,7 +34,6 @@ import {createContext, forwardRef, ReactNode, useContext} from 'react';
|
|
|
34
34
|
import {FocusableRef, FocusableRefValue, GlobalDOMAttributes} from '@react-types/shared';
|
|
35
35
|
import {IconContext} from './Icon';
|
|
36
36
|
import {ImageContext} from './Image';
|
|
37
|
-
// @ts-ignore
|
|
38
37
|
import intlMessages from '../intl/*.json';
|
|
39
38
|
import {NotificationBadgeContext} from './NotificationBadge';
|
|
40
39
|
import {OverlayTriggerStateContext} from 'react-aria-components/Dialog';
|
package/src/ActionMenu.tsx
CHANGED
|
@@ -16,7 +16,6 @@ import {ContextValue} from 'react-aria-components/slots';
|
|
|
16
16
|
import {createContext, forwardRef} from 'react';
|
|
17
17
|
import {filterDOMProps} from 'react-aria/filterDOMProps';
|
|
18
18
|
import {forwardRefType} from './types';
|
|
19
|
-
// @ts-ignore
|
|
20
19
|
import intlMessages from '../intl/*.json';
|
|
21
20
|
import {Menu, MenuProps, MenuTrigger, MenuTriggerProps} from './Menu';
|
|
22
21
|
import MoreIcon from '../s2wf-icons/S2_Icon_More_20_N.svg';
|
package/src/AlertDialog.tsx
CHANGED
|
@@ -20,7 +20,6 @@ import {Dialog} from './Dialog';
|
|
|
20
20
|
import {DOMProps, DOMRef} from '@react-types/shared';
|
|
21
21
|
import {forwardRef, ReactNode} from 'react';
|
|
22
22
|
import {IconContext} from './Icon';
|
|
23
|
-
// @ts-ignore
|
|
24
23
|
import intlMessages from '../intl/*.json';
|
|
25
24
|
import NoticeSquare from '../s2wf-icons/S2_Icon_AlertDiamond_20_N.svg';
|
|
26
25
|
import {Provider} from 'react-aria-components/slots';
|
package/src/Breadcrumbs.tsx
CHANGED
|
@@ -11,14 +11,12 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import {ActionButton} from './ActionButton';
|
|
14
|
-
|
|
15
14
|
import {
|
|
16
15
|
Breadcrumb as AriaBreadcrumb,
|
|
17
16
|
BreadcrumbProps as AriaBreadcrumbItemProps,
|
|
18
17
|
BreadcrumbsProps as AriaBreadcrumbsProps,
|
|
19
18
|
Breadcrumbs as RACBreadcrumbs
|
|
20
19
|
} from 'react-aria-components/Breadcrumbs';
|
|
21
|
-
|
|
22
20
|
import {baseColor, focusRing, size, style} from '../style' with {type: 'macro'};
|
|
23
21
|
import ChevronIcon from '../ui-icons/Chevron';
|
|
24
22
|
import {
|
|
@@ -56,13 +54,11 @@ import {
|
|
|
56
54
|
} from 'react';
|
|
57
55
|
import FolderIcon from '../s2wf-icons/S2_Icon_FolderBreadcrumb_20_N.svg';
|
|
58
56
|
import {forwardRefType} from './types';
|
|
59
|
-
// @ts-ignore
|
|
60
57
|
import {HeadingContext} from 'react-aria-components/Heading';
|
|
61
58
|
import {inertValue} from 'react-aria/private/utils/inertValue';
|
|
62
59
|
import intlMessages from '../intl/*.json';
|
|
63
60
|
import {Link, LinkRenderProps} from 'react-aria-components/Link';
|
|
64
61
|
import {Menu, MenuItem, MenuTrigger} from './Menu';
|
|
65
|
-
// @ts-ignore
|
|
66
62
|
import {Text} from './Content';
|
|
67
63
|
import {useDOMRef} from './useDOMRef';
|
|
68
64
|
import {useLayoutEffect} from 'react-aria/private/utils/useLayoutEffect';
|
package/src/Button.tsx
CHANGED
|
@@ -29,7 +29,6 @@ import {FocusableRef, FocusableRefValue, GlobalDOMAttributes} from '@react-types
|
|
|
29
29
|
import {IconContext} from './Icon';
|
|
30
30
|
import intlMessages from '../intl/*.json';
|
|
31
31
|
import {linearGradient} from '../style/spectrum-theme' with {type: 'macro'};
|
|
32
|
-
// @ts-ignore
|
|
33
32
|
import {Link, LinkProps} from 'react-aria-components/Link';
|
|
34
33
|
import {OverlayTriggerStateContext} from 'react-aria-components/Dialog';
|
|
35
34
|
import {pressScale} from './pressScale';
|
|
@@ -254,7 +253,12 @@ const button = style<ButtonRenderProps & ButtonStyleProps & {isStaticColor: bool
|
|
|
254
253
|
fill: {
|
|
255
254
|
variant: {
|
|
256
255
|
primary: 'auto',
|
|
257
|
-
secondary:
|
|
256
|
+
secondary: {
|
|
257
|
+
default: 'transparent-overlay-1000',
|
|
258
|
+
isHovered: 'transparent-overlay-1000',
|
|
259
|
+
isFocusVisible: 'transparent-overlay-1000',
|
|
260
|
+
isPressed: 'transparent-overlay-1000'
|
|
261
|
+
},
|
|
258
262
|
premium: 'white',
|
|
259
263
|
genai: 'white'
|
|
260
264
|
}
|
|
@@ -264,7 +268,12 @@ const button = style<ButtonRenderProps & ButtonStyleProps & {isStaticColor: bool
|
|
|
264
268
|
premium: 'white',
|
|
265
269
|
genai: 'white'
|
|
266
270
|
},
|
|
267
|
-
default:
|
|
271
|
+
default: {
|
|
272
|
+
default: 'transparent-overlay-1000',
|
|
273
|
+
isHovered: 'transparent-overlay-1000',
|
|
274
|
+
isFocusVisible: 'transparent-overlay-1000',
|
|
275
|
+
isPressed: 'transparent-overlay-1000'
|
|
276
|
+
}
|
|
268
277
|
}
|
|
269
278
|
},
|
|
270
279
|
isDisabled: 'transparent-overlay-400'
|
package/src/ButtonGroup.tsx
CHANGED
package/src/Calendar.tsx
CHANGED
|
@@ -40,7 +40,6 @@ import {forwardRefType, GlobalDOMAttributes} from '@react-types/shared';
|
|
|
40
40
|
import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
41
41
|
import {Header, HeaderContext, HeadingContext} from './Content';
|
|
42
42
|
import {helpTextStyles} from './Field';
|
|
43
|
-
// @ts-ignore
|
|
44
43
|
import intlMessages from '../intl/*.json';
|
|
45
44
|
import {pressScale} from './pressScale';
|
|
46
45
|
import {RangeCalendarContext, RangeCalendarStateContext} from 'react-aria-components/RangeCalendar';
|
package/src/CenterBaseline.tsx
CHANGED
|
@@ -30,6 +30,23 @@ const styles = style({
|
|
|
30
30
|
alignItems: 'center'
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Vertically centers its children against the surrounding text baseline.
|
|
35
|
+
* Use this to align icons or other inline elements with adjacent text without
|
|
36
|
+
* breaking baseline alignment.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* import {CenterBaseline} from '@react-spectrum/s2/CenterBaseline';
|
|
40
|
+
* import {style} from '@react-spectrum/s2/style' with {type: 'macro'};
|
|
41
|
+
* import CheckmarkIcon from '@react-spectrum/s2/icons/Checkmark';
|
|
42
|
+
*
|
|
43
|
+
* <span className={style({display: 'flex', gap: 4, alignItems: 'baseline'})}>
|
|
44
|
+
* <CenterBaseline>
|
|
45
|
+
* <CheckmarkIcon />
|
|
46
|
+
* </CenterBaseline>
|
|
47
|
+
* <span>Done</span>
|
|
48
|
+
* </span>;
|
|
49
|
+
*/
|
|
33
50
|
export function CenterBaseline(props: CenterBaselineProps): ReactNode {
|
|
34
51
|
let domProps = filterDOMProps(props);
|
|
35
52
|
return (
|
package/src/CloseButton.tsx
CHANGED
|
@@ -22,7 +22,6 @@ import {
|
|
|
22
22
|
import {createContext, forwardRef} from 'react';
|
|
23
23
|
import CrossIcon from '../ui-icons/Cross';
|
|
24
24
|
import {FocusableRef, FocusableRefValue} from '@react-types/shared';
|
|
25
|
-
// @ts-ignore
|
|
26
25
|
import intlMessages from '../intl/*.json';
|
|
27
26
|
import {pressScale} from './pressScale';
|
|
28
27
|
import {useFocusableRef} from './useDOMRef';
|
package/src/ComboBox.tsx
CHANGED
|
@@ -77,7 +77,6 @@ import {forwardRefType} from './types';
|
|
|
77
77
|
import {HeaderContext, HeadingContext, Text, TextContext} from './Content';
|
|
78
78
|
import {IconContext} from './Icon';
|
|
79
79
|
import {InputContext, InputProps} from 'react-aria-components/Input';
|
|
80
|
-
// @ts-ignore
|
|
81
80
|
import intlMessages from '../intl/*.json';
|
|
82
81
|
import {ListLayout} from 'react-stately/useVirtualizerState';
|
|
83
82
|
import {mergeRefs} from 'react-aria/mergeRefs';
|
package/src/ContextualHelp.tsx
CHANGED
|
@@ -17,7 +17,6 @@ import intlMessages from '../intl/*.json';
|
|
|
17
17
|
import {mergeProps} from 'react-aria/mergeProps';
|
|
18
18
|
import {mergeStyles} from '../style/runtime';
|
|
19
19
|
import {Placement} from 'react-aria-components/Popover';
|
|
20
|
-
// @ts-ignore
|
|
21
20
|
import {Popover, PopoverDialogProps} from './Popover';
|
|
22
21
|
import {space, style} from '../style' with {type: 'macro'};
|
|
23
22
|
import {StyleProps} from './style-utils' with {type: 'macro'};
|
|
@@ -27,7 +26,7 @@ import {useLabels} from 'react-aria/private/utils/useLabels';
|
|
|
27
26
|
import {useLocalizedStringFormatter} from 'react-aria/useLocalizedStringFormatter';
|
|
28
27
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
|
29
28
|
|
|
30
|
-
export interface ContextualHelpPopoverProps extends PopoverDialogProps {
|
|
29
|
+
export interface ContextualHelpPopoverProps extends Omit<PopoverDialogProps, 'isNonModal'> {
|
|
31
30
|
/**
|
|
32
31
|
* The children of the contextual help popover. Supports Heading, Content, and Footer elements.
|
|
33
32
|
*/
|
package/src/DatePicker.tsx
CHANGED
|
@@ -48,7 +48,6 @@ import {
|
|
|
48
48
|
SpectrumLabelableProps
|
|
49
49
|
} from '@react-types/shared';
|
|
50
50
|
import {IconContext} from './Icon';
|
|
51
|
-
// @ts-ignore
|
|
52
51
|
import intlMessages from '../intl/*.json';
|
|
53
52
|
import {Popover} from './Popover';
|
|
54
53
|
import {PopoverProps} from 'react-aria-components/Popover';
|
package/src/DateRangePicker.tsx
CHANGED
|
@@ -33,7 +33,6 @@ import {
|
|
|
33
33
|
HelpTextProps,
|
|
34
34
|
SpectrumLabelableProps
|
|
35
35
|
} from '@react-types/shared';
|
|
36
|
-
// @ts-ignore
|
|
37
36
|
import intlMessages from '../intl/*.json';
|
|
38
37
|
import {PopoverProps} from 'react-aria-components/Popover';
|
|
39
38
|
import {RangeCalendar, RangeCalendarProps} from './RangeCalendar';
|