@react-spectrum/s2 3.0.0-nightly-5ae234603-240925 → 3.0.0-nightly-d57bd8d90-240927
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.map +1 -1
- package/dist/Accordion.css.map +1 -1
- package/dist/Accordion.mjs.map +1 -1
- package/dist/ActionButton.cjs.map +1 -1
- package/dist/ActionButton.css.map +1 -1
- package/dist/ActionButton.mjs.map +1 -1
- package/dist/AlertDialog.cjs.map +1 -1
- package/dist/AlertDialog.css.map +1 -1
- package/dist/AlertDialog.mjs.map +1 -1
- package/dist/Avatar.cjs.map +1 -1
- package/dist/Avatar.css.map +1 -1
- package/dist/Avatar.mjs.map +1 -1
- package/dist/AvatarGroup.cjs.map +1 -1
- package/dist/AvatarGroup.css.map +1 -1
- package/dist/AvatarGroup.mjs.map +1 -1
- package/dist/Badge.cjs.map +1 -1
- package/dist/Badge.css.map +1 -1
- package/dist/Badge.mjs.map +1 -1
- package/dist/Breadcrumbs.cjs.map +1 -1
- package/dist/Breadcrumbs.css.map +1 -1
- package/dist/Breadcrumbs.mjs.map +1 -1
- package/dist/Button.cjs +39 -5
- package/dist/Button.cjs.map +1 -1
- package/dist/Button.css +64 -0
- package/dist/Button.css.map +1 -1
- package/dist/Button.mjs +39 -5
- package/dist/Button.mjs.map +1 -1
- package/dist/ButtonGroup.cjs.map +1 -1
- package/dist/ButtonGroup.css.map +1 -1
- package/dist/ButtonGroup.mjs.map +1 -1
- package/dist/Card.cjs +2 -2
- package/dist/Card.cjs.map +1 -1
- package/dist/Card.css.map +1 -1
- package/dist/Card.mjs +2 -2
- package/dist/Card.mjs.map +1 -1
- package/dist/CardView.cjs.map +1 -1
- package/dist/CardView.css.map +1 -1
- package/dist/CardView.mjs.map +1 -1
- package/dist/CenterBaseline.cjs.map +1 -1
- package/dist/CenterBaseline.css.map +1 -1
- package/dist/CenterBaseline.mjs.map +1 -1
- package/dist/Checkbox.cjs +4 -1
- package/dist/Checkbox.cjs.map +1 -1
- package/dist/Checkbox.css +4 -0
- package/dist/Checkbox.css.map +1 -1
- package/dist/Checkbox.mjs +4 -1
- package/dist/Checkbox.mjs.map +1 -1
- package/dist/CheckboxGroup.cjs.map +1 -1
- package/dist/CheckboxGroup.css.map +1 -1
- package/dist/CheckboxGroup.mjs.map +1 -1
- package/dist/ClearButton.cjs.map +1 -1
- package/dist/ClearButton.css.map +1 -1
- package/dist/ClearButton.mjs.map +1 -1
- package/dist/CloseButton.cjs.map +1 -1
- package/dist/CloseButton.css.map +1 -1
- package/dist/CloseButton.mjs.map +1 -1
- package/dist/ColorArea.cjs.map +1 -1
- package/dist/ColorArea.css.map +1 -1
- package/dist/ColorArea.mjs.map +1 -1
- package/dist/ColorField.cjs.map +1 -1
- package/dist/ColorField.css.map +1 -1
- package/dist/ColorField.mjs.map +1 -1
- package/dist/ColorHandle.cjs.map +1 -1
- package/dist/ColorHandle.css.map +1 -1
- package/dist/ColorHandle.mjs.map +1 -1
- package/dist/ColorSlider.cjs.map +1 -1
- package/dist/ColorSlider.css.map +1 -1
- package/dist/ColorSlider.mjs.map +1 -1
- package/dist/ColorSwatch.cjs.map +1 -1
- package/dist/ColorSwatch.css.map +1 -1
- package/dist/ColorSwatch.mjs.map +1 -1
- package/dist/ColorSwatchPicker.cjs.map +1 -1
- package/dist/ColorSwatchPicker.css.map +1 -1
- package/dist/ColorSwatchPicker.mjs.map +1 -1
- package/dist/ColorWheel.cjs.map +1 -1
- package/dist/ColorWheel.css.map +1 -1
- package/dist/ColorWheel.mjs.map +1 -1
- package/dist/ComboBox.cjs +3 -0
- package/dist/ComboBox.cjs.map +1 -1
- package/dist/ComboBox.css.map +1 -1
- package/dist/ComboBox.mjs +3 -0
- package/dist/ComboBox.mjs.map +1 -1
- package/dist/Content.cjs +0 -2
- package/dist/Content.cjs.map +1 -1
- package/dist/Content.mjs +1 -2
- package/dist/Content.mjs.map +1 -1
- package/dist/ContextualHelp.cjs.map +1 -1
- package/dist/ContextualHelp.css.map +1 -1
- package/dist/ContextualHelp.mjs.map +1 -1
- package/dist/Dialog.cjs +7 -5
- package/dist/Dialog.cjs.map +1 -1
- package/dist/Dialog.css.map +1 -1
- package/dist/Dialog.mjs +8 -6
- package/dist/Dialog.mjs.map +1 -1
- package/dist/Disclosure.cjs.map +1 -1
- package/dist/Disclosure.css.map +1 -1
- package/dist/Disclosure.mjs.map +1 -1
- package/dist/Divider.cjs.map +1 -1
- package/dist/Divider.css.map +1 -1
- package/dist/Divider.mjs.map +1 -1
- package/dist/DropZone.cjs.map +1 -1
- package/dist/DropZone.css.map +1 -1
- package/dist/DropZone.mjs.map +1 -1
- package/dist/Field.cjs.map +1 -1
- package/dist/Field.css.map +1 -1
- package/dist/Field.mjs.map +1 -1
- package/dist/Form.cjs.map +1 -1
- package/dist/Form.css.map +1 -1
- package/dist/Form.mjs.map +1 -1
- package/dist/IllustratedMessage.cjs.map +1 -1
- package/dist/IllustratedMessage.css.map +1 -1
- package/dist/IllustratedMessage.mjs.map +1 -1
- package/dist/Image.cjs.map +1 -1
- package/dist/Image.css.map +1 -1
- package/dist/Image.mjs.map +1 -1
- package/dist/InlineAlert.cjs.map +1 -1
- package/dist/InlineAlert.css.map +1 -1
- package/dist/InlineAlert.mjs.map +1 -1
- package/dist/Link.cjs.map +1 -1
- package/dist/Link.css.map +1 -1
- package/dist/Link.mjs.map +1 -1
- package/dist/Menu.cjs.map +1 -1
- package/dist/Menu.css.map +1 -1
- package/dist/Menu.mjs.map +1 -1
- package/dist/Meter.cjs.map +1 -1
- package/dist/Meter.css.map +1 -1
- package/dist/Meter.mjs.map +1 -1
- package/dist/Modal.cjs.map +1 -1
- package/dist/Modal.css.map +1 -1
- package/dist/Modal.mjs.map +1 -1
- package/dist/MoveHorizontalCircleTableWidget.cjs +33 -0
- package/dist/MoveHorizontalCircleTableWidget.cjs.map +1 -0
- package/dist/MoveHorizontalCircleTableWidget.mjs +28 -0
- package/dist/MoveHorizontalCircleTableWidget.mjs.map +1 -0
- package/dist/NumberField.cjs.map +1 -1
- package/dist/NumberField.css.map +1 -1
- package/dist/NumberField.mjs.map +1 -1
- package/dist/Picker.cjs +3 -0
- package/dist/Picker.cjs.map +1 -1
- package/dist/Picker.css.map +1 -1
- package/dist/Picker.mjs +3 -0
- package/dist/Picker.mjs.map +1 -1
- package/dist/Popover.cjs +1 -0
- package/dist/Popover.cjs.map +1 -1
- package/dist/Popover.css +4 -0
- package/dist/Popover.css.map +1 -1
- package/dist/Popover.mjs +1 -0
- package/dist/Popover.mjs.map +1 -1
- package/dist/ProgressBar.cjs.map +1 -1
- package/dist/ProgressBar.css.map +1 -1
- package/dist/ProgressBar.mjs.map +1 -1
- package/dist/ProgressCircle.cjs +0 -1
- package/dist/ProgressCircle.cjs.map +1 -1
- package/dist/ProgressCircle.css +0 -4
- package/dist/ProgressCircle.css.map +1 -1
- package/dist/ProgressCircle.mjs +0 -1
- package/dist/ProgressCircle.mjs.map +1 -1
- package/dist/Provider.cjs.map +1 -1
- package/dist/Provider.css.map +1 -1
- package/dist/Provider.mjs.map +1 -1
- package/dist/Radio.cjs.map +1 -1
- package/dist/Radio.css.map +1 -1
- package/dist/Radio.mjs.map +1 -1
- package/dist/RadioGroup.cjs.map +1 -1
- package/dist/RadioGroup.css.map +1 -1
- package/dist/RadioGroup.mjs.map +1 -1
- package/dist/SearchField.cjs.map +1 -1
- package/dist/SearchField.css.map +1 -1
- package/dist/SearchField.mjs.map +1 -1
- package/dist/SegmentedControl.cjs +11 -8
- package/dist/SegmentedControl.cjs.map +1 -1
- package/dist/SegmentedControl.css.map +1 -1
- package/dist/SegmentedControl.mjs +11 -8
- package/dist/SegmentedControl.mjs.map +1 -1
- package/dist/SkeletonCollection.cjs.map +1 -1
- package/dist/SkeletonCollection.mjs.map +1 -1
- package/dist/Slider.cjs.map +1 -1
- package/dist/Slider.css.map +1 -1
- package/dist/Slider.mjs.map +1 -1
- package/dist/StatusLight.cjs.map +1 -1
- package/dist/StatusLight.css.map +1 -1
- package/dist/StatusLight.mjs.map +1 -1
- package/dist/Switch.cjs.map +1 -1
- package/dist/Switch.css.map +1 -1
- package/dist/Switch.mjs.map +1 -1
- package/dist/Table.cjs +1064 -0
- package/dist/Table.cjs.map +1 -0
- package/dist/Table.css +801 -0
- package/dist/Table.css.map +1 -0
- package/dist/Table.mjs +1054 -0
- package/dist/Table.mjs.map +1 -0
- package/dist/Tabs.cjs.map +1 -1
- package/dist/Tabs.css.map +1 -1
- package/dist/Tabs.mjs.map +1 -1
- package/dist/TagGroup.cjs +5 -3
- package/dist/TagGroup.cjs.map +1 -1
- package/dist/TagGroup.css.map +1 -1
- package/dist/TagGroup.mjs +5 -3
- package/dist/TagGroup.mjs.map +1 -1
- package/dist/TextField.cjs.map +1 -1
- package/dist/TextField.css.map +1 -1
- package/dist/TextField.mjs.map +1 -1
- package/dist/ToggleButton.cjs +2 -1
- package/dist/ToggleButton.cjs.map +1 -1
- package/dist/ToggleButton.css.map +1 -1
- package/dist/ToggleButton.mjs +2 -1
- package/dist/ToggleButton.mjs.map +1 -1
- package/dist/Tooltip.cjs.map +1 -1
- package/dist/Tooltip.css.map +1 -1
- package/dist/Tooltip.mjs.map +1 -1
- package/dist/ar-AE.cjs +5 -0
- package/dist/ar-AE.cjs.map +1 -1
- package/dist/ar-AE.mjs +5 -0
- package/dist/ar-AE.mjs.map +1 -1
- package/dist/bg-BG.cjs +5 -0
- package/dist/bg-BG.cjs.map +1 -1
- package/dist/bg-BG.mjs +5 -0
- package/dist/bg-BG.mjs.map +1 -1
- package/dist/cs-CZ.cjs +5 -0
- package/dist/cs-CZ.cjs.map +1 -1
- package/dist/cs-CZ.mjs +5 -0
- package/dist/cs-CZ.mjs.map +1 -1
- package/dist/da-DK.cjs +5 -0
- package/dist/da-DK.cjs.map +1 -1
- package/dist/da-DK.mjs +5 -0
- package/dist/da-DK.mjs.map +1 -1
- package/dist/de-DE.cjs +5 -0
- package/dist/de-DE.cjs.map +1 -1
- package/dist/de-DE.mjs +5 -0
- package/dist/de-DE.mjs.map +1 -1
- package/dist/el-GR.cjs +5 -0
- package/dist/el-GR.cjs.map +1 -1
- package/dist/el-GR.mjs +5 -0
- package/dist/el-GR.mjs.map +1 -1
- package/dist/en-US.cjs +5 -0
- package/dist/en-US.cjs.map +1 -1
- package/dist/en-US.mjs +5 -0
- package/dist/en-US.mjs.map +1 -1
- package/dist/es-ES.cjs +5 -0
- package/dist/es-ES.cjs.map +1 -1
- package/dist/es-ES.mjs +5 -0
- package/dist/es-ES.mjs.map +1 -1
- package/dist/et-EE.cjs +5 -0
- package/dist/et-EE.cjs.map +1 -1
- package/dist/et-EE.mjs +5 -0
- package/dist/et-EE.mjs.map +1 -1
- package/dist/fi-FI.cjs +5 -0
- package/dist/fi-FI.cjs.map +1 -1
- package/dist/fi-FI.mjs +5 -0
- package/dist/fi-FI.mjs.map +1 -1
- package/dist/fr-FR.cjs +5 -0
- package/dist/fr-FR.cjs.map +1 -1
- package/dist/fr-FR.mjs +5 -0
- package/dist/fr-FR.mjs.map +1 -1
- package/dist/he-IL.cjs +5 -0
- package/dist/he-IL.cjs.map +1 -1
- package/dist/he-IL.mjs +5 -0
- package/dist/he-IL.mjs.map +1 -1
- package/dist/hr-HR.cjs +5 -0
- package/dist/hr-HR.cjs.map +1 -1
- package/dist/hr-HR.mjs +5 -0
- package/dist/hr-HR.mjs.map +1 -1
- package/dist/hu-HU.cjs +5 -0
- package/dist/hu-HU.cjs.map +1 -1
- package/dist/hu-HU.mjs +5 -0
- package/dist/hu-HU.mjs.map +1 -1
- package/dist/it-IT.cjs +5 -0
- package/dist/it-IT.cjs.map +1 -1
- package/dist/it-IT.mjs +5 -0
- package/dist/it-IT.mjs.map +1 -1
- package/dist/ja-JP.cjs +5 -0
- package/dist/ja-JP.cjs.map +1 -1
- package/dist/ja-JP.mjs +5 -0
- package/dist/ja-JP.mjs.map +1 -1
- package/dist/ko-KR.cjs +5 -0
- package/dist/ko-KR.cjs.map +1 -1
- package/dist/ko-KR.mjs +5 -0
- package/dist/ko-KR.mjs.map +1 -1
- package/dist/lt-LT.cjs +5 -0
- package/dist/lt-LT.cjs.map +1 -1
- package/dist/lt-LT.mjs +5 -0
- package/dist/lt-LT.mjs.map +1 -1
- package/dist/lv-LV.cjs +5 -0
- package/dist/lv-LV.cjs.map +1 -1
- package/dist/lv-LV.mjs +5 -0
- package/dist/lv-LV.mjs.map +1 -1
- package/dist/main.cjs +11 -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 +5 -0
- package/dist/nb-NO.cjs.map +1 -1
- package/dist/nb-NO.mjs +5 -0
- package/dist/nb-NO.mjs.map +1 -1
- package/dist/nl-NL.cjs +5 -0
- package/dist/nl-NL.cjs.map +1 -1
- package/dist/nl-NL.mjs +5 -0
- package/dist/nl-NL.mjs.map +1 -1
- package/dist/pl-PL.cjs +5 -0
- package/dist/pl-PL.cjs.map +1 -1
- package/dist/pl-PL.mjs +5 -0
- package/dist/pl-PL.mjs.map +1 -1
- package/dist/pt-BR.cjs +5 -0
- package/dist/pt-BR.cjs.map +1 -1
- package/dist/pt-BR.mjs +5 -0
- package/dist/pt-BR.mjs.map +1 -1
- package/dist/pt-PT.cjs +5 -0
- package/dist/pt-PT.cjs.map +1 -1
- package/dist/pt-PT.mjs +5 -0
- package/dist/pt-PT.mjs.map +1 -1
- package/dist/ro-RO.cjs +5 -0
- package/dist/ro-RO.cjs.map +1 -1
- package/dist/ro-RO.mjs +5 -0
- package/dist/ro-RO.mjs.map +1 -1
- package/dist/ru-RU.cjs +5 -0
- package/dist/ru-RU.cjs.map +1 -1
- package/dist/ru-RU.mjs +5 -0
- package/dist/ru-RU.mjs.map +1 -1
- package/dist/sk-SK.cjs +5 -0
- package/dist/sk-SK.cjs.map +1 -1
- package/dist/sk-SK.mjs +5 -0
- package/dist/sk-SK.mjs.map +1 -1
- package/dist/sl-SI.cjs +5 -0
- package/dist/sl-SI.cjs.map +1 -1
- package/dist/sl-SI.mjs +5 -0
- package/dist/sl-SI.mjs.map +1 -1
- package/dist/sr-SP.cjs +5 -0
- package/dist/sr-SP.cjs.map +1 -1
- package/dist/sr-SP.mjs +5 -0
- package/dist/sr-SP.mjs.map +1 -1
- package/dist/sv-SE.cjs +5 -0
- package/dist/sv-SE.cjs.map +1 -1
- package/dist/sv-SE.mjs +5 -0
- package/dist/sv-SE.mjs.map +1 -1
- package/dist/tr-TR.cjs +5 -0
- package/dist/tr-TR.cjs.map +1 -1
- package/dist/tr-TR.mjs +5 -0
- package/dist/tr-TR.mjs.map +1 -1
- package/dist/types.d.ts +136 -30
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.cjs +5 -0
- package/dist/uk-UA.cjs.map +1 -1
- package/dist/uk-UA.mjs +5 -0
- package/dist/uk-UA.mjs.map +1 -1
- package/dist/utils.cjs +30 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.mjs +25 -0
- package/dist/utils.mjs.map +1 -0
- package/dist/zh-CN.cjs +5 -0
- package/dist/zh-CN.cjs.map +1 -1
- package/dist/zh-CN.mjs +5 -0
- package/dist/zh-CN.mjs.map +1 -1
- package/dist/zh-TW.cjs +5 -0
- package/dist/zh-TW.cjs.map +1 -1
- package/dist/zh-TW.mjs +5 -0
- package/dist/zh-TW.mjs.map +1 -1
- package/icons/Skeleton.cjs.map +1 -1
- package/icons/Skeleton.css.map +1 -1
- package/icons/Skeleton.mjs.map +1 -1
- package/package.json +18 -16
- package/src/Accordion.tsx +2 -2
- package/src/ActionButton.tsx +3 -3
- package/src/AlertDialog.tsx +1 -1
- package/src/Avatar.tsx +1 -1
- package/src/AvatarGroup.tsx +1 -1
- package/src/Badge.tsx +1 -1
- package/src/Breadcrumbs.tsx +2 -2
- package/src/Button.tsx +41 -19
- package/src/ButtonGroup.tsx +1 -1
- package/src/Card.tsx +7 -7
- package/src/CardView.tsx +2 -2
- package/src/CenterBaseline.tsx +1 -1
- package/src/Checkbox.tsx +3 -2
- package/src/CheckboxGroup.tsx +1 -1
- package/src/ClearButton.tsx +1 -1
- package/src/CloseButton.tsx +2 -2
- package/src/ColorArea.tsx +1 -1
- package/src/ColorField.tsx +1 -1
- package/src/ColorHandle.tsx +1 -1
- package/src/ColorSlider.tsx +1 -1
- package/src/ColorSwatch.tsx +3 -3
- package/src/ColorSwatchPicker.tsx +5 -5
- package/src/ColorWheel.tsx +1 -1
- package/src/ComboBox.tsx +7 -4
- package/src/Content.tsx +1 -3
- package/src/ContextualHelp.tsx +1 -1
- package/src/Dialog.tsx +4 -3
- package/src/Disclosure.tsx +4 -4
- package/src/Divider.tsx +1 -1
- package/src/DropZone.tsx +1 -1
- package/src/Field.tsx +2 -2
- package/src/Form.tsx +1 -1
- package/src/IllustratedMessage.tsx +1 -1
- package/src/Image.tsx +1 -1
- package/src/InlineAlert.tsx +2 -2
- package/src/Link.tsx +2 -2
- package/src/Menu.tsx +2 -2
- package/src/Meter.tsx +1 -1
- package/src/Modal.tsx +1 -1
- package/src/NumberField.tsx +2 -2
- package/src/Picker.tsx +7 -4
- package/src/Popover.tsx +5 -2
- package/src/ProgressBar.tsx +1 -1
- package/src/ProgressCircle.tsx +7 -5
- package/src/Provider.tsx +1 -1
- package/src/Radio.tsx +2 -2
- package/src/RadioGroup.tsx +1 -1
- package/src/SearchField.tsx +1 -1
- package/src/SegmentedControl.tsx +32 -22
- package/src/Skeleton.tsx +4 -1
- package/src/SkeletonCollection.tsx +4 -0
- package/src/Slider.tsx +2 -2
- package/src/StatusLight.tsx +1 -1
- package/src/Switch.tsx +2 -2
- package/src/Table.tsx +1063 -48
- package/src/Tabs.tsx +3 -3
- package/src/TagGroup.tsx +5 -4
- package/src/TextField.tsx +1 -1
- package/src/ToggleButton.tsx +3 -2
- package/src/Tooltip.tsx +1 -1
- package/src/index.ts +4 -0
- package/src/style-utils.ts +0 -10
- package/src/utils.ts +28 -0
- package/style/__tests__/mergeStyles.test.js +32 -0
- package/style/__tests__/style-macro.test.js +128 -0
- package/style/dist/main.cjs +38 -0
- package/style/dist/main.cjs.map +1 -0
- package/style/dist/module.mjs +26 -0
- package/style/dist/module.mjs.map +1 -0
- package/style/dist/spectrum-theme.cjs +1989 -0
- package/style/dist/spectrum-theme.cjs.map +1 -0
- package/style/dist/spectrum-theme.mjs +1978 -0
- package/style/dist/spectrum-theme.mjs.map +1 -0
- package/style/dist/style-macro.cjs +544 -0
- package/style/dist/style-macro.cjs.map +1 -0
- package/style/dist/style-macro.mjs +534 -0
- package/style/dist/style-macro.mjs.map +1 -0
- package/style/dist/types.d.ts +791 -0
- package/style/dist/types.d.ts.map +1 -0
- package/style/index.ts +24 -0
- package/style/runtime.ts +103 -0
- package/style/spectrum-theme.ts +980 -0
- package/style/style-macro.ts +638 -0
- package/style/tokens.ts +68 -0
- package/style/types.ts +178 -0
package/src/Card.tsx
CHANGED
|
@@ -21,11 +21,11 @@ import {createContext, CSSProperties, forwardRef, ReactNode, useContext} from 'r
|
|
|
21
21
|
import {DividerContext} from './Divider';
|
|
22
22
|
import {DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';
|
|
23
23
|
import {filterDOMProps} from '@react-aria/utils';
|
|
24
|
-
import {focusRing,
|
|
24
|
+
import {focusRing, lightDark, size, style} from '../style' with {type: 'macro'};
|
|
25
|
+
import {getAllowedOverrides, StyleProps, UnsafeStyles} from './style-utils' with {type: 'macro'};
|
|
25
26
|
import {IllustrationContext} from './Icon';
|
|
26
27
|
import {ImageContext} from './Image';
|
|
27
28
|
import {ImageCoordinator} from './ImageCoordinator';
|
|
28
|
-
import {lightDark, size, style} from '../style/spectrum-theme' with {type: 'macro'};
|
|
29
29
|
import {mergeStyles} from '../style/runtime';
|
|
30
30
|
import {pressScale} from './pressScale';
|
|
31
31
|
import {SkeletonContext, SkeletonWrapper, useIsSkeleton} from './Skeleton';
|
|
@@ -37,7 +37,7 @@ interface CardRenderProps {
|
|
|
37
37
|
size: 'XS' | 'S' | 'M' | 'L' | 'XL'
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export interface CardProps extends Omit<GridListItemProps, 'className' | 'style' | 'children'>, StyleProps {
|
|
40
|
+
export interface CardProps extends Omit<GridListItemProps, 'className' | 'style' | 'children' | 'onHoverChange' | 'onHoverStart' | 'onHoverEnd'>, StyleProps {
|
|
41
41
|
/** The children of the Card. */
|
|
42
42
|
children: ReactNode | ((renderProps: CardRenderProps) => ReactNode),
|
|
43
43
|
/**
|
|
@@ -419,7 +419,7 @@ export const Card = forwardRef(function Card(props: CardProps, ref: DOMRef<HTMLD
|
|
|
419
419
|
return (
|
|
420
420
|
<div
|
|
421
421
|
{...filterDOMProps(otherProps)}
|
|
422
|
-
id={String(id)}
|
|
422
|
+
id={id != null ? String(id) : undefined}
|
|
423
423
|
// @ts-ignore - React < 19 compat
|
|
424
424
|
inert={isSkeleton ? 'true' : undefined}
|
|
425
425
|
ref={domRef}
|
|
@@ -438,9 +438,9 @@ export const Card = forwardRef(function Card(props: CardProps, ref: DOMRef<HTMLD
|
|
|
438
438
|
{...props}
|
|
439
439
|
ref={domRef}
|
|
440
440
|
className={renderProps => UNSAFE_className + card({...renderProps, isCardView: true, isLink: !!props.href, size, density, variant}, styles)}
|
|
441
|
-
style={renderProps =>
|
|
441
|
+
style={renderProps =>
|
|
442
442
|
// Only the preview in quiet cards scales down on press
|
|
443
|
-
variant === 'quiet' ? UNSAFE_style : press(renderProps)
|
|
443
|
+
variant === 'quiet' ? UNSAFE_style : press(renderProps)
|
|
444
444
|
}>
|
|
445
445
|
{({selectionMode, selectionBehavior, isHovered, isFocusVisible, isSelected, isPressed}) => (
|
|
446
446
|
<InternalCardContext.Provider value={{size, isQuiet, isCheckboxSelection: selectionMode !== 'none' && selectionBehavior === 'toggle', isHovered, isFocusVisible, isSelected, isPressed}}>
|
|
@@ -466,7 +466,7 @@ function SelectionIndicator() {
|
|
|
466
466
|
className={selectionIndicator({
|
|
467
467
|
size,
|
|
468
468
|
isSelected,
|
|
469
|
-
// Add an inner stroke only for quiet cards with no checkbox to
|
|
469
|
+
// Add an inner stroke only for quiet cards with no checkbox to
|
|
470
470
|
// help distinguish the selected state from the preview.
|
|
471
471
|
isStrokeInner: isQuiet && !isCheckboxSelection
|
|
472
472
|
})} />
|
package/src/CardView.tsx
CHANGED
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
} from 'react-aria-components';
|
|
20
20
|
import {CardContext, CardViewContext} from './Card';
|
|
21
21
|
import {DOMRef, forwardRefType, Key, LayoutDelegate, LoadingState, Node} from '@react-types/shared';
|
|
22
|
-
import {focusRing,
|
|
22
|
+
import {focusRing, style} from '../style' with {type: 'macro'};
|
|
23
23
|
import {forwardRef, useMemo, useState} from 'react';
|
|
24
|
+
import {getAllowedOverrides, StylesPropWithHeight, UnsafeStyles} from './style-utils' with {type: 'macro'};
|
|
24
25
|
import {ImageCoordinator} from './ImageCoordinator';
|
|
25
26
|
import {InvalidationContext, Layout, LayoutInfo, Rect, Size} from '@react-stately/virtualizer';
|
|
26
|
-
import {style} from '../style/spectrum-theme' with {type: 'macro'};
|
|
27
27
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
28
28
|
import {useEffectEvent, useLayoutEffect, useLoadMore, useResizeObserver} from '@react-aria/utils';
|
|
29
29
|
|
package/src/CenterBaseline.tsx
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import {CSSProperties, ReactNode} from 'react';
|
|
14
14
|
import {mergeStyles} from '../style/runtime';
|
|
15
15
|
import {raw} from '../style/style-macro' with {type: 'macro'};
|
|
16
|
-
import {style} from '../style
|
|
16
|
+
import {style} from '../style' with {type: 'macro'};
|
|
17
17
|
import {StyleString} from '../style/types';
|
|
18
18
|
|
|
19
19
|
interface CenterBaselineProps {
|
package/src/Checkbox.tsx
CHANGED
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import {Checkbox as AriaCheckbox, CheckboxProps as AriaCheckboxProps, CheckboxGroupStateContext, CheckboxRenderProps, ContextValue, useSlottedContext} from 'react-aria-components';
|
|
14
|
-
import {baseColor, style} from '../style
|
|
14
|
+
import {baseColor, focusRing, style} from '../style' with {type: 'macro'};
|
|
15
15
|
import {CenterBaseline} from './CenterBaseline';
|
|
16
16
|
import CheckmarkIcon from '../ui-icons/Checkmark';
|
|
17
17
|
import {createContext, forwardRef, ReactNode, useContext, useRef} from 'react';
|
|
18
18
|
import DashIcon from '../ui-icons/Dash';
|
|
19
19
|
import {FocusableRef, FocusableRefValue} from '@react-types/shared';
|
|
20
|
-
import {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
21
20
|
import {FormContext, useFormProps} from './Form';
|
|
21
|
+
import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
22
22
|
import {pressScale} from './pressScale';
|
|
23
23
|
import {useFocusableRef} from '@react-spectrum/utils';
|
|
24
24
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
|
@@ -78,6 +78,7 @@ export const box = style<RenderProps>({
|
|
|
78
78
|
forcedColorAdjust: 'none',
|
|
79
79
|
backgroundColor: {
|
|
80
80
|
default: 'gray-25',
|
|
81
|
+
forcedColors: 'Background',
|
|
81
82
|
isSelected: {
|
|
82
83
|
default: 'neutral',
|
|
83
84
|
isEmphasized: baseColor('accent-900'),
|
package/src/CheckboxGroup.tsx
CHANGED
|
@@ -21,7 +21,7 @@ import {DOMRef, DOMRefValue, HelpTextProps, Orientation, SpectrumLabelableProps}
|
|
|
21
21
|
import {field, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
22
22
|
import {FieldLabel, HelpText} from './Field';
|
|
23
23
|
import {FormContext, useFormProps} from './Form';
|
|
24
|
-
import {style} from '../style
|
|
24
|
+
import {style} from '../style' with {type: 'macro'};
|
|
25
25
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
26
26
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
|
27
27
|
|
package/src/ClearButton.tsx
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import CrossIcon from '../ui-icons/Cross';
|
|
19
19
|
import {FocusableRef} from '@react-types/shared';
|
|
20
20
|
import {forwardRef} from 'react';
|
|
21
|
-
import {style} from '../style
|
|
21
|
+
import {style} from '../style' with {type: 'macro'};
|
|
22
22
|
import {useFocusableRef} from '@react-spectrum/utils';
|
|
23
23
|
|
|
24
24
|
interface ClearButtonStyleProps {
|
package/src/CloseButton.tsx
CHANGED
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {baseColor, style} from '../style
|
|
13
|
+
import {baseColor, focusRing, style} from '../style' with {type: 'macro'};
|
|
14
14
|
import {Button, ButtonProps} from 'react-aria-components';
|
|
15
15
|
import CrossIcon from '../ui-icons/Cross';
|
|
16
16
|
import {FocusableRef} from '@react-types/shared';
|
|
17
|
-
import {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
18
17
|
import {forwardRef} from 'react';
|
|
18
|
+
import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
19
19
|
import {pressScale} from './pressScale';
|
|
20
20
|
import {useFocusableRef} from '@react-spectrum/utils';
|
|
21
21
|
|
package/src/ColorArea.tsx
CHANGED
|
@@ -19,7 +19,7 @@ import {ColorHandle} from './ColorHandle';
|
|
|
19
19
|
import {createContext, forwardRef} from 'react';
|
|
20
20
|
import {DOMRef, DOMRefValue} from '@react-types/shared';
|
|
21
21
|
import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
22
|
-
import {style} from '../style
|
|
22
|
+
import {style} from '../style' with {type: 'macro'};
|
|
23
23
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
24
24
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
|
25
25
|
|
package/src/ColorField.tsx
CHANGED
|
@@ -21,7 +21,7 @@ import {field, getAllowedOverrides, StyleProps} from './style-utils' with {type:
|
|
|
21
21
|
import {FieldErrorIcon, FieldGroup, FieldLabel, HelpText, Input} from './Field';
|
|
22
22
|
import {FormContext, useFormProps} from './Form';
|
|
23
23
|
import {HelpTextProps, SpectrumLabelableProps} from '@react-types/shared';
|
|
24
|
-
import {style} from '../style
|
|
24
|
+
import {style} from '../style' with {type: 'macro'};
|
|
25
25
|
import {TextFieldRef} from '@react-types/textfield';
|
|
26
26
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
|
27
27
|
|
package/src/ColorHandle.tsx
CHANGED
|
@@ -14,7 +14,7 @@ import {cloneElement, JSX, RefObject, useState} from 'react';
|
|
|
14
14
|
import {ColorThumb} from 'react-aria-components';
|
|
15
15
|
import {createPortal} from 'react-dom';
|
|
16
16
|
import {keyframes} from '../style/style-macro' with {type: 'macro'};
|
|
17
|
-
import {style} from '../style
|
|
17
|
+
import {style} from '../style' with {type: 'macro'};
|
|
18
18
|
import {useId, useLayoutEffect} from '@react-aria/utils';
|
|
19
19
|
|
|
20
20
|
const HANDLE_SIZE = 16;
|
package/src/ColorSlider.tsx
CHANGED
|
@@ -23,7 +23,7 @@ import {createContext, forwardRef, useRef} from 'react';
|
|
|
23
23
|
import {DOMRef, DOMRefValue, SpectrumLabelableProps} from '@react-types/shared';
|
|
24
24
|
import {FieldLabel} from './Field';
|
|
25
25
|
import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
26
|
-
import {style} from '../style
|
|
26
|
+
import {style} from '../style' with {type: 'macro'};
|
|
27
27
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
28
28
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
|
29
29
|
|
package/src/ColorSwatch.tsx
CHANGED
|
@@ -20,19 +20,19 @@ import {Color} from '@react-types/color';
|
|
|
20
20
|
import {createContext, forwardRef, JSX, ReactElement, useContext, useMemo} from 'react';
|
|
21
21
|
import {DOMRef, DOMRefValue} from '@react-types/shared';
|
|
22
22
|
import {getAllowedOverrides, StylesPropWithHeight, UnsafeStyles} from './style-utils' with {type: 'macro'};
|
|
23
|
-
import {style} from '../style
|
|
23
|
+
import {style} from '../style' with {type: 'macro'};
|
|
24
24
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
25
25
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
|
26
26
|
|
|
27
27
|
export interface ColorSwatchProps extends Omit<AriaColorSwatchProps, 'className' | 'style'>, UnsafeStyles {
|
|
28
28
|
/**
|
|
29
29
|
* The size of the ColorSwatch.
|
|
30
|
-
* @default
|
|
30
|
+
* @default 'M'
|
|
31
31
|
*/
|
|
32
32
|
size?: 'XS' | 'S' | 'M' | 'L',
|
|
33
33
|
/**
|
|
34
34
|
* The corner rounding of the ColorSwatch.
|
|
35
|
-
* @default
|
|
35
|
+
* @default 'default'
|
|
36
36
|
*/
|
|
37
37
|
rounding?: 'default' | 'none' | 'full',
|
|
38
38
|
/** Spectrum-defined styles, returned by the `style()` macro. */
|
|
@@ -15,8 +15,8 @@ import {Color} from '@react-types/color';
|
|
|
15
15
|
import {ColorSwatchProps, InternalColorSwatchContext} from './ColorSwatch';
|
|
16
16
|
import {createContext, forwardRef, ReactElement, ReactNode} from 'react';
|
|
17
17
|
import {DOMRef, DOMRefValue, ValueBase} from '@react-types/shared';
|
|
18
|
-
import {focusRing,
|
|
19
|
-
import {
|
|
18
|
+
import {focusRing, size as sizeValue, style} from '../style' with {type: 'macro'};
|
|
19
|
+
import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
20
20
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
21
21
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
|
22
22
|
|
|
@@ -25,17 +25,17 @@ export interface ColorSwatchPickerProps extends ValueBase<string | Color, Color>
|
|
|
25
25
|
children: ReactNode,
|
|
26
26
|
/**
|
|
27
27
|
* The amount of padding between the swatches.
|
|
28
|
-
* @default
|
|
28
|
+
* @default 'regular'
|
|
29
29
|
*/
|
|
30
30
|
density?: 'compact' | 'regular' | 'spacious',
|
|
31
31
|
/**
|
|
32
32
|
* The size of the color swatches.
|
|
33
|
-
* @default
|
|
33
|
+
* @default 'M'
|
|
34
34
|
*/
|
|
35
35
|
size?: 'XS' | 'S' | 'M' | 'L',
|
|
36
36
|
/**
|
|
37
37
|
* The corner rounding of the color swatches.
|
|
38
|
-
* @default
|
|
38
|
+
* @default 'none'
|
|
39
39
|
*/
|
|
40
40
|
rounding?: 'none' | 'default' | 'full'
|
|
41
41
|
}
|
package/src/ColorWheel.tsx
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {ColorHandle} from './ColorHandle';
|
|
20
20
|
import {createContext, forwardRef} from 'react';
|
|
21
21
|
import {DOMRef, DOMRefValue} from '@react-types/shared';
|
|
22
|
-
import {style} from '../style
|
|
22
|
+
import {style} from '../style' with {type: 'macro'};
|
|
23
23
|
import {StyleProps} from './style-utils';
|
|
24
24
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
25
25
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
package/src/ComboBox.tsx
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
Provider,
|
|
26
26
|
SectionProps
|
|
27
27
|
} from 'react-aria-components';
|
|
28
|
-
import {baseColor, style} from '../style
|
|
28
|
+
import {baseColor, style} from '../style' with {type: 'macro'};
|
|
29
29
|
import {centerBaseline} from './CenterBaseline';
|
|
30
30
|
import {
|
|
31
31
|
checkmark,
|
|
@@ -63,7 +63,7 @@ export interface ComboboxStyleProps {
|
|
|
63
63
|
/**
|
|
64
64
|
* The size of the Combobox.
|
|
65
65
|
*
|
|
66
|
-
* @default
|
|
66
|
+
* @default 'M'
|
|
67
67
|
*/
|
|
68
68
|
size?: 'S' | 'M' | 'L' | 'XL'
|
|
69
69
|
}
|
|
@@ -80,13 +80,13 @@ export interface ComboBoxProps<T extends object> extends
|
|
|
80
80
|
/**
|
|
81
81
|
* Direction the menu will render relative to the Picker.
|
|
82
82
|
*
|
|
83
|
-
* @default
|
|
83
|
+
* @default 'bottom'
|
|
84
84
|
*/
|
|
85
85
|
direction?: 'bottom' | 'top',
|
|
86
86
|
/**
|
|
87
87
|
* Alignment of the menu relative to the input target.
|
|
88
88
|
*
|
|
89
|
-
* @default
|
|
89
|
+
* @default 'start'
|
|
90
90
|
*/
|
|
91
91
|
align?: 'start' | 'end',
|
|
92
92
|
/** Width of the menu. By default, matches width of the trigger. Note that the minimum width of the dropdown is always equal to the trigger's width. */
|
|
@@ -263,6 +263,9 @@ function ComboBox<T extends object>(props: ComboBoxProps<T>, ref: Ref<TextFieldR
|
|
|
263
263
|
{isInvalid && <FieldErrorIcon isDisabled={isDisabled} />}
|
|
264
264
|
<Button
|
|
265
265
|
ref={buttonRef}
|
|
266
|
+
// Prevent press scale from sticking while ComboBox is open.
|
|
267
|
+
// @ts-ignore
|
|
268
|
+
isPressed={false}
|
|
266
269
|
style={renderProps => pressScale(buttonRef)(renderProps)}
|
|
267
270
|
className={renderProps => inputButton({
|
|
268
271
|
...renderProps,
|
package/src/Content.tsx
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import {ContextValue, Keyboard as KeyboardAria, Header as RACHeader, Heading as RACHeading, TextContext as RACTextContext, SlotProps, Text as TextAria} from 'react-aria-components';
|
|
14
|
-
import {createContext, forwardRef,
|
|
14
|
+
import {createContext, forwardRef, ReactNode, useContext} from 'react';
|
|
15
15
|
import {DOMRef, DOMRefValue} from '@react-types/shared';
|
|
16
16
|
import {StyleString} from '../style/types';
|
|
17
17
|
import {UnsafeStyles} from './style-utils';
|
|
@@ -172,5 +172,3 @@ function Footer(props: ContentProps, ref: DOMRef) {
|
|
|
172
172
|
|
|
173
173
|
const _Footer = forwardRef(Footer);
|
|
174
174
|
export {_Footer as Footer};
|
|
175
|
-
|
|
176
|
-
export const ImageContext = createContext<ContextValue<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>>({});
|
package/src/ContextualHelp.tsx
CHANGED
|
@@ -12,7 +12,7 @@ import InfoIcon from '../s2wf-icons/S2_Icon_InfoCircle_20_N.svg';
|
|
|
12
12
|
import intlMessages from '../intl/*.json';
|
|
13
13
|
import {mergeStyles} from '../style/runtime';
|
|
14
14
|
import {Popover, PopoverProps} from './Popover';
|
|
15
|
-
import {style, size as styleSize} from '../style
|
|
15
|
+
import {style, size as styleSize} from '../style' with {type: 'macro'};
|
|
16
16
|
import {StyleProps} from './style-utils' with { type: 'macro' };
|
|
17
17
|
import {useLocalizedStringFormatter} from '@react-aria/i18n';
|
|
18
18
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
package/src/Dialog.tsx
CHANGED
|
@@ -13,14 +13,15 @@
|
|
|
13
13
|
import {PopoverProps as AriaPopoverProps, composeRenderProps, OverlayTriggerStateContext, Provider, Dialog as RACDialog, DialogProps as RACDialogProps} from 'react-aria-components';
|
|
14
14
|
import {ButtonGroupContext} from './ButtonGroup';
|
|
15
15
|
import {CloseButton} from './CloseButton';
|
|
16
|
-
import {ContentContext, FooterContext, HeaderContext, HeadingContext
|
|
16
|
+
import {ContentContext, FooterContext, HeaderContext, HeadingContext} from './Content';
|
|
17
17
|
import {createContext, forwardRef, RefObject, useContext} from 'react';
|
|
18
18
|
import {DOMRef} from '@react-types/shared';
|
|
19
|
+
import {ImageContext} from './Image';
|
|
19
20
|
// @ts-ignore
|
|
20
21
|
import intlMessages from '../intl/*.json';
|
|
21
22
|
import {Modal} from './Modal';
|
|
22
23
|
import {Popover} from './Popover';
|
|
23
|
-
import {style} from '../style
|
|
24
|
+
import {style} from '../style' with {type: 'macro'};
|
|
24
25
|
import {StyleProps} from './style-utils';
|
|
25
26
|
import {useDOMRef, useMediaQuery} from '@react-spectrum/utils';
|
|
26
27
|
import {useLocalizedStringFormatter} from '@react-aria/i18n';
|
|
@@ -195,7 +196,7 @@ function DialogInner(props: DialogProps & DialogContextValue & {dialogRef: RefOb
|
|
|
195
196
|
{/* Hero image */}
|
|
196
197
|
<Provider
|
|
197
198
|
values={[
|
|
198
|
-
[ImageContext, {
|
|
199
|
+
[ImageContext, {styles: image}],
|
|
199
200
|
[HeadingContext, {isHidden: true}],
|
|
200
201
|
[HeaderContext, {isHidden: true}],
|
|
201
202
|
[ContentContext, {isHidden: true}],
|
package/src/Disclosure.tsx
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
import {AriaLabelingProps, DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';
|
|
14
14
|
import {Button, ContextValue, DisclosureStateContext, Heading, Provider, UNSTABLE_Disclosure as RACDisclosure, UNSTABLE_DisclosurePanel as RACDisclosurePanel, DisclosurePanelProps as RACDisclosurePanelProps, DisclosureProps as RACDisclosureProps, useLocale, useSlottedContext} from 'react-aria-components';
|
|
15
15
|
import {CenterBaseline} from './CenterBaseline';
|
|
16
|
-
import {centerPadding,
|
|
16
|
+
import {centerPadding, getAllowedOverrides, StyleProps, UnsafeStyles} from './style-utils' with { type: 'macro' };
|
|
17
17
|
import Chevron from '../ui-icons/Chevron';
|
|
18
18
|
import {filterDOMProps} from '@react-aria/utils';
|
|
19
|
-
import {lightDark, size as sizeValue, style} from '../style
|
|
19
|
+
import {focusRing, lightDark, size as sizeValue, style} from '../style' with { type: 'macro' };
|
|
20
20
|
import React, {createContext, forwardRef, ReactNode, useContext} from 'react';
|
|
21
21
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
22
22
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
|
@@ -24,12 +24,12 @@ import {useSpectrumContextProps} from './useSpectrumContextProps';
|
|
|
24
24
|
export interface DisclosureProps extends Omit<RACDisclosureProps, 'className' | 'style' | 'children'>, StyleProps {
|
|
25
25
|
/**
|
|
26
26
|
* The size of the disclosure.
|
|
27
|
-
* @default
|
|
27
|
+
* @default 'M'
|
|
28
28
|
*/
|
|
29
29
|
size?: 'S' | 'M' | 'L' | 'XL',
|
|
30
30
|
/**
|
|
31
31
|
* The amount of space between the disclosures.
|
|
32
|
-
* @default
|
|
32
|
+
* @default 'regular'
|
|
33
33
|
*/
|
|
34
34
|
density?: 'compact' | 'regular' | 'spacious',
|
|
35
35
|
/** Whether the disclosure should be displayed with a quiet style. */
|
package/src/Divider.tsx
CHANGED
|
@@ -14,7 +14,7 @@ import {ContextValue, Separator as RACSeparator, SeparatorProps as RACSeparatorP
|
|
|
14
14
|
import {createContext, forwardRef} from 'react';
|
|
15
15
|
import {DOMRef, DOMRefValue} from '@react-types/shared';
|
|
16
16
|
import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
17
|
-
import {style} from '../style
|
|
17
|
+
import {style} from '../style' with {type: 'macro'};
|
|
18
18
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
19
19
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
|
20
20
|
|
package/src/DropZone.tsx
CHANGED
|
@@ -17,7 +17,7 @@ import {getAllowedOverrides, StylesPropWithHeight, UnsafeStyles} from './style-u
|
|
|
17
17
|
import {IllustratedMessageContext} from './IllustratedMessage';
|
|
18
18
|
// @ts-ignore
|
|
19
19
|
import intlMessages from '../intl/*.json';
|
|
20
|
-
import {style} from '../style
|
|
20
|
+
import {style} from '../style' with {type: 'macro'};
|
|
21
21
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
22
22
|
import {useLocalizedStringFormatter} from '@react-aria/i18n';
|
|
23
23
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
package/src/Field.tsx
CHANGED
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
import AlertIcon from '../s2wf-icons/S2_Icon_AlertTriangle_20_N.svg';
|
|
14
14
|
import {Alignment, DOMRef, NecessityIndicator} from '@react-types/shared';
|
|
15
15
|
import AsteriskIcon from '../ui-icons/Asterisk';
|
|
16
|
-
import {baseColor, fontRelative, style} from '../style
|
|
16
|
+
import {baseColor, focusRing, fontRelative, style} from '../style' with {type: 'macro'};
|
|
17
17
|
import {CenterBaseline, centerBaseline, centerBaselineBefore} from './CenterBaseline';
|
|
18
18
|
import {composeRenderProps, FieldError, FieldErrorProps, Group, GroupProps, Label, LabelProps, Provider, Input as RACInput, InputProps as RACInputProps, Text} from 'react-aria-components';
|
|
19
19
|
import {ContextualHelpContext} from './ContextualHelp';
|
|
20
|
-
import {fieldInput, fieldLabel,
|
|
20
|
+
import {fieldInput, fieldLabel, StyleProps, UnsafeStyles} from './style-utils' with {type: 'macro'};
|
|
21
21
|
import {ForwardedRef, forwardRef, ReactNode} from 'react';
|
|
22
22
|
import {IconContext} from './Icon';
|
|
23
23
|
// @ts-ignore
|
package/src/Form.tsx
CHANGED
|
@@ -14,7 +14,7 @@ import {createContext, forwardRef, ReactNode, useContext, useMemo} from 'react';
|
|
|
14
14
|
import {DOMRef, SpectrumLabelableProps} from '@react-types/shared';
|
|
15
15
|
import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
16
16
|
import {Form as RACForm, FormProps as RACFormProps} from 'react-aria-components';
|
|
17
|
-
import {style} from '../style
|
|
17
|
+
import {style} from '../style' with {type: 'macro'};
|
|
18
18
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
19
19
|
import {useIsSkeleton} from './Skeleton';
|
|
20
20
|
|
|
@@ -18,7 +18,7 @@ import {DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';
|
|
|
18
18
|
import {filterDOMProps} from '@react-aria/utils';
|
|
19
19
|
import {getAllowedOverrides, StylesPropWithHeight, UnsafeStyles} from './style-utils' with {type: 'macro'};
|
|
20
20
|
import {IllustrationContext} from './Icon';
|
|
21
|
-
import {style} from '../style
|
|
21
|
+
import {style} from '../style' with {type: 'macro'};
|
|
22
22
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
23
23
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
|
24
24
|
|
package/src/Image.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import {createContext, ForwardedRef, forwardRef, HTMLAttributeReferrerPolicy, Re
|
|
|
3
3
|
import {DefaultImageGroup, ImageGroup} from './ImageCoordinator';
|
|
4
4
|
import {loadingStyle, useIsSkeleton, useLoadingAnimation} from './Skeleton';
|
|
5
5
|
import {mergeStyles} from '../style/runtime';
|
|
6
|
-
import {style} from '../style
|
|
6
|
+
import {style} from '../style' with {type: 'macro'};
|
|
7
7
|
import {StyleString} from '../style/types';
|
|
8
8
|
import {UnsafeStyles} from './style-utils';
|
|
9
9
|
import {useLayoutEffect} from '@react-aria/utils';
|
package/src/InlineAlert.tsx
CHANGED
|
@@ -17,13 +17,13 @@ import {ContentContext, HeadingContext} from './Content';
|
|
|
17
17
|
import {ContextValue, Provider, SlotProps} from 'react-aria-components';
|
|
18
18
|
import {DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';
|
|
19
19
|
import {filterDOMProps} from '@react-aria/utils';
|
|
20
|
-
import {focusRing,
|
|
20
|
+
import {focusRing, style} from '../style' with {type: 'macro'};
|
|
21
|
+
import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
21
22
|
import {IconContext} from './Icon';
|
|
22
23
|
import InfoCircle from '../s2wf-icons/S2_Icon_InfoCircle_20_N.svg';
|
|
23
24
|
// @ts-ignore
|
|
24
25
|
import intlMessages from '../intl/*.json';
|
|
25
26
|
import NoticeSquare from '../s2wf-icons/S2_Icon_AlertDiamond_20_N.svg';
|
|
26
|
-
import {style} from '../style/spectrum-theme' with {type: 'macro'};
|
|
27
27
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
28
28
|
import {useFocusRing} from 'react-aria';
|
|
29
29
|
import {useLocalizedStringFormatter} from '@react-aria/i18n';
|
package/src/Link.tsx
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
import {ContextValue, LinkRenderProps, Link as RACLink, LinkProps as RACLinkProps} from 'react-aria-components';
|
|
14
14
|
import {createContext, forwardRef, ReactNode, useContext} from 'react';
|
|
15
15
|
import {FocusableRef, FocusableRefValue} from '@react-types/shared';
|
|
16
|
-
import {focusRing,
|
|
16
|
+
import {focusRing, style} from '../style' with {type: 'macro'};
|
|
17
|
+
import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
17
18
|
import {SkeletonContext, useSkeletonText} from './Skeleton';
|
|
18
|
-
import {style} from '../style/spectrum-theme' with {type: 'macro'};
|
|
19
19
|
import {useFocusableRef} from '@react-spectrum/utils';
|
|
20
20
|
import {useLayoutEffect} from '@react-aria/utils';
|
|
21
21
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
package/src/Menu.tsx
CHANGED
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
Separator,
|
|
27
27
|
SeparatorProps
|
|
28
28
|
} from 'react-aria-components';
|
|
29
|
-
import {baseColor, edgeToText, fontRelative, size, space, style} from '../style
|
|
29
|
+
import {baseColor, edgeToText, focusRing, fontRelative, size, space, style} from '../style' with {type: 'macro'};
|
|
30
30
|
import {box, iconStyles} from './Checkbox';
|
|
31
31
|
import {centerBaseline} from './CenterBaseline';
|
|
32
|
-
import {centerPadding,
|
|
32
|
+
import {centerPadding, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
33
33
|
import CheckmarkIcon from '../ui-icons/Checkmark';
|
|
34
34
|
import ChevronRightIcon from '../ui-icons/Chevron';
|
|
35
35
|
import {createContext, forwardRef, JSX, ReactNode, useContext, useRef} from 'react';
|
package/src/Meter.tsx
CHANGED
|
@@ -20,7 +20,7 @@ import {createContext, forwardRef, ReactNode} from 'react';
|
|
|
20
20
|
import {DOMRef, DOMRefValue} from '@react-types/shared';
|
|
21
21
|
import {FieldLabel} from './Field';
|
|
22
22
|
import {fieldLabel, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
23
|
-
import {size, style} from '../style
|
|
23
|
+
import {size, style} from '../style' with {type: 'macro'};
|
|
24
24
|
import {SkeletonWrapper} from './Skeleton';
|
|
25
25
|
import {Text} from './Content';
|
|
26
26
|
import {useDOMRef} from '@react-spectrum/utils';
|
package/src/Modal.tsx
CHANGED
|
@@ -16,7 +16,7 @@ import {DOMRef} from '@react-types/shared';
|
|
|
16
16
|
import {forwardRef, MutableRefObject, useCallback, useContext} from 'react';
|
|
17
17
|
import {keyframes} from '../style/style-macro' with {type: 'macro'};
|
|
18
18
|
import {ModalOverlay, ModalOverlayProps, Modal as RACModal, useLocale} from 'react-aria-components';
|
|
19
|
-
import {style} from '../style
|
|
19
|
+
import {style} from '../style' with {type: 'macro'};
|
|
20
20
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
21
21
|
|
|
22
22
|
interface ModalProps extends ModalOverlayProps {
|
package/src/NumberField.tsx
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
Text,
|
|
22
22
|
useContextProps
|
|
23
23
|
} from 'react-aria-components';
|
|
24
|
-
import {baseColor, size, style} from '../style
|
|
24
|
+
import {baseColor, size, style} from '../style' with {type: 'macro'};
|
|
25
25
|
import {createContext, CSSProperties, ForwardedRef, forwardRef, ReactNode, Ref, useContext, useImperativeHandle, useMemo, useRef} from 'react';
|
|
26
26
|
import {createFocusableRef} from '@react-spectrum/utils';
|
|
27
27
|
import Dash from '../ui-icons/Dash';
|
|
@@ -49,7 +49,7 @@ export interface NumberFieldProps extends
|
|
|
49
49
|
/**
|
|
50
50
|
* The size of the NumberField.
|
|
51
51
|
*
|
|
52
|
-
* @default
|
|
52
|
+
* @default 'M'
|
|
53
53
|
*/
|
|
54
54
|
size?: 'S' | 'M' | 'L' | 'XL'
|
|
55
55
|
}
|
package/src/Picker.tsx
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
SectionProps,
|
|
28
28
|
SelectValue
|
|
29
29
|
} from 'react-aria-components';
|
|
30
|
-
import {baseColor, edgeToText, style} from '../style
|
|
30
|
+
import {baseColor, edgeToText, focusRing, style} from '../style' with {type: 'macro'};
|
|
31
31
|
import {centerBaseline} from './CenterBaseline';
|
|
32
32
|
import {
|
|
33
33
|
checkmark,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
} from './Menu';
|
|
44
44
|
import CheckmarkIcon from '../ui-icons/Checkmark';
|
|
45
45
|
import ChevronIcon from '../ui-icons/Chevron';
|
|
46
|
-
import {field, fieldInput,
|
|
46
|
+
import {field, fieldInput, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
47
47
|
import {
|
|
48
48
|
FieldErrorIcon,
|
|
49
49
|
FieldLabel,
|
|
@@ -93,13 +93,13 @@ export interface PickerProps<T extends object> extends
|
|
|
93
93
|
/**
|
|
94
94
|
* Direction the menu will render relative to the Picker.
|
|
95
95
|
*
|
|
96
|
-
* @default
|
|
96
|
+
* @default 'bottom'
|
|
97
97
|
*/
|
|
98
98
|
direction?: 'bottom' | 'top',
|
|
99
99
|
/**
|
|
100
100
|
* Alignment of the menu relative to the input target.
|
|
101
101
|
*
|
|
102
|
-
* @default
|
|
102
|
+
* @default 'start'
|
|
103
103
|
*/
|
|
104
104
|
align?: 'start' | 'end',
|
|
105
105
|
/** Width of the menu. By default, matches width of the trigger. Note that the minimum width of the dropdown is always equal to the trigger's width. */
|
|
@@ -285,6 +285,9 @@ function Picker<T extends object>(props: PickerProps<T>, ref: FocusableRef<HTMLB
|
|
|
285
285
|
<Button
|
|
286
286
|
ref={domRef}
|
|
287
287
|
style={renderProps => pressScale(domRef)(renderProps)}
|
|
288
|
+
// Prevent press scale from sticking while Picker is open.
|
|
289
|
+
// @ts-ignore
|
|
290
|
+
isPressed={false}
|
|
288
291
|
className={renderProps => inputButton({
|
|
289
292
|
...renderProps,
|
|
290
293
|
size: size,
|
package/src/Popover.tsx
CHANGED
|
@@ -23,7 +23,7 @@ import {DOMRef} from '@react-types/shared';
|
|
|
23
23
|
import {forwardRef, MutableRefObject, useCallback, useContext} from 'react';
|
|
24
24
|
import {keyframes} from '../style/style-macro' with {type: 'macro'};
|
|
25
25
|
import {mergeStyles} from '../style/runtime';
|
|
26
|
-
import {style} from '../style
|
|
26
|
+
import {style} from '../style' with {type: 'macro'};
|
|
27
27
|
import {StyleString} from '../style/types' with {type: 'macro'};
|
|
28
28
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
29
29
|
|
|
@@ -168,7 +168,10 @@ let popover = style({
|
|
|
168
168
|
},
|
|
169
169
|
transition: '[opacity, transform]',
|
|
170
170
|
willChange: '[opacity, transform]',
|
|
171
|
-
isolation: 'isolate'
|
|
171
|
+
isolation: 'isolate',
|
|
172
|
+
pointerEvents: {
|
|
173
|
+
isExiting: 'none'
|
|
174
|
+
}
|
|
172
175
|
}, getAllowedOverrides());
|
|
173
176
|
// TODO: animations and real Popover Arrow
|
|
174
177
|
|
package/src/ProgressBar.tsx
CHANGED
|
@@ -22,7 +22,7 @@ import {FieldLabel} from './Field';
|
|
|
22
22
|
import {fieldLabel, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
23
23
|
import {keyframes} from '../style/style-macro' with {type: 'macro'};
|
|
24
24
|
import {mergeStyles} from '../style/runtime';
|
|
25
|
-
import {size, style} from '../style
|
|
25
|
+
import {size, style} from '../style' with {type: 'macro'};
|
|
26
26
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
27
27
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
|
28
28
|
|