@react-spectrum/s2 3.0.0-nightly-a626c2596-240926 → 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 +34 -4
- package/dist/Button.cjs.map +1 -1
- package/dist/Button.css +64 -0
- package/dist/Button.css.map +1 -1
- package/dist/Button.mjs +34 -4
- 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 +1 -1
- package/dist/Card.cjs.map +1 -1
- package/dist/Card.css.map +1 -1
- package/dist/Card.mjs +1 -1
- 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.map +1 -1
- package/dist/Checkbox.css.map +1 -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.map +1 -1
- package/dist/ComboBox.css.map +1 -1
- package/dist/ComboBox.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.map +1 -1
- package/dist/Dialog.css.map +1 -1
- 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/NumberField.cjs.map +1 -1
- package/dist/NumberField.css.map +1 -1
- package/dist/NumberField.mjs.map +1 -1
- package/dist/Picker.cjs.map +1 -1
- package/dist/Picker.css.map +1 -1
- package/dist/Picker.mjs.map +1 -1
- package/dist/Popover.cjs.map +1 -1
- package/dist/Popover.css.map +1 -1
- 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 +61 -90
- package/dist/Table.cjs.map +1 -1
- package/dist/Table.css +36 -56
- package/dist/Table.css.map +1 -1
- package/dist/Table.mjs +61 -90
- package/dist/Table.mjs.map +1 -1
- 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.map +1 -1
- package/dist/TagGroup.css.map +1 -1
- 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/main.cjs +3 -0
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +3 -1
- package/dist/module.mjs.map +1 -1
- package/dist/types.d.ts +47 -30
- package/dist/types.d.ts.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 +17 -17
- 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 +19 -5
- package/src/ButtonGroup.tsx +1 -1
- package/src/Card.tsx +6 -6
- package/src/CardView.tsx +2 -2
- package/src/CenterBaseline.tsx +1 -1
- package/src/Checkbox.tsx +2 -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 +4 -4
- package/src/ContextualHelp.tsx +1 -1
- package/src/Dialog.tsx +1 -1
- 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 +4 -4
- package/src/Popover.tsx +1 -1
- 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 +39 -60
- package/src/Tabs.tsx +3 -3
- package/src/TagGroup.tsx +2 -2
- package/src/TextField.tsx +1 -1
- package/src/ToggleButton.tsx +3 -2
- package/src/Tooltip.tsx +1 -1
- package/src/index.ts +2 -0
- package/src/style-utils.ts +0 -10
- package/style/dist/main.cjs +18 -1964
- package/style/dist/main.cjs.map +1 -1
- package/style/dist/module.mjs +11 -1958
- package/style/dist/module.mjs.map +1 -1
- 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 +4 -3
- package/style/dist/style-macro.cjs.map +1 -1
- package/style/dist/style-macro.mjs +4 -4
- package/style/dist/style-macro.mjs.map +1 -1
- package/style/dist/types.d.ts +198 -187
- package/style/dist/types.d.ts.map +1 -1
- package/style/index.ts +24 -0
- package/style/spectrum-theme.ts +19 -13
- package/style/style-macro.ts +1 -1
- package/style/types.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/s2",
|
|
3
|
-
"version": "3.0.0-nightly-
|
|
3
|
+
"version": "3.0.0-nightly-d57bd8d90-240927",
|
|
4
4
|
"description": "Spectrum 2 UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -56,23 +56,23 @@
|
|
|
56
56
|
"src"
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@react-aria/collections": "3.0.0-nightly-
|
|
60
|
-
"@react-aria/i18n": "^3.0.0-nightly-
|
|
61
|
-
"@react-aria/interactions": "^3.0.0-nightly-
|
|
62
|
-
"@react-aria/utils": "^3.0.0-nightly-
|
|
63
|
-
"@react-spectrum/utils": "^3.0.0-nightly-
|
|
64
|
-
"@react-stately/layout": "^3.0.0-nightly-
|
|
65
|
-
"@react-stately/virtualizer": "^3.0.0-nightly-
|
|
66
|
-
"@react-types/color": "3.0.0-nightly-
|
|
67
|
-
"@react-types/dialog": "^3.0.0-nightly-
|
|
68
|
-
"@react-types/grid": "^3.0.0-nightly-
|
|
69
|
-
"@react-types/provider": "^3.0.0-nightly-
|
|
70
|
-
"@react-types/shared": "^3.0.0-nightly-
|
|
71
|
-
"@react-types/table": "^3.0.0-nightly-
|
|
72
|
-
"@react-types/textfield": "^3.0.0-nightly-
|
|
59
|
+
"@react-aria/collections": "3.0.0-nightly-d57bd8d90-240927",
|
|
60
|
+
"@react-aria/i18n": "^3.0.0-nightly-d57bd8d90-240927",
|
|
61
|
+
"@react-aria/interactions": "^3.0.0-nightly-d57bd8d90-240927",
|
|
62
|
+
"@react-aria/utils": "^3.0.0-nightly-d57bd8d90-240927",
|
|
63
|
+
"@react-spectrum/utils": "^3.0.0-nightly-d57bd8d90-240927",
|
|
64
|
+
"@react-stately/layout": "^3.0.0-nightly-d57bd8d90-240927",
|
|
65
|
+
"@react-stately/virtualizer": "^3.0.0-nightly-d57bd8d90-240927",
|
|
66
|
+
"@react-types/color": "3.0.0-nightly-d57bd8d90-240927",
|
|
67
|
+
"@react-types/dialog": "^3.0.0-nightly-d57bd8d90-240927",
|
|
68
|
+
"@react-types/grid": "^3.0.0-nightly-d57bd8d90-240927",
|
|
69
|
+
"@react-types/provider": "^3.0.0-nightly-d57bd8d90-240927",
|
|
70
|
+
"@react-types/shared": "^3.0.0-nightly-d57bd8d90-240927",
|
|
71
|
+
"@react-types/table": "^3.0.0-nightly-d57bd8d90-240927",
|
|
72
|
+
"@react-types/textfield": "^3.0.0-nightly-d57bd8d90-240927",
|
|
73
73
|
"csstype": "^3.0.2",
|
|
74
|
-
"react-aria": "^3.0.0-nightly-
|
|
75
|
-
"react-aria-components": "^3.0.0-nightly-
|
|
74
|
+
"react-aria": "^3.0.0-nightly-d57bd8d90-240927",
|
|
75
|
+
"react-aria-components": "^3.0.0-nightly-d57bd8d90-240927"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"react": "^18.0.0 || ^19.0.0",
|
package/src/Accordion.tsx
CHANGED
|
@@ -26,12 +26,12 @@ export interface AccordionProps extends Omit<DisclosureGroupProps, 'className' |
|
|
|
26
26
|
styles?: StylesPropWithHeight,
|
|
27
27
|
/**
|
|
28
28
|
* The size of the accordion.
|
|
29
|
-
* @default
|
|
29
|
+
* @default 'M'
|
|
30
30
|
*/
|
|
31
31
|
size?: 'S' | 'M' | 'L' | 'XL',
|
|
32
32
|
/**
|
|
33
33
|
* The amount of space between the disclosure items.
|
|
34
|
-
* @default
|
|
34
|
+
* @default 'regular'
|
|
35
35
|
*/
|
|
36
36
|
density?: 'compact' | 'regular' | 'spacious',
|
|
37
37
|
/** Whether the accordion should be displayed with a quiet style. */
|
package/src/ActionButton.tsx
CHANGED
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {baseColor, fontRelative, style} from '../style
|
|
13
|
+
import {baseColor, focusRing, fontRelative, style} from '../style' with { type: 'macro' };
|
|
14
14
|
import {ButtonProps, ButtonRenderProps, ContextValue, OverlayTriggerStateContext, Provider, Button as RACButton, Text} from 'react-aria-components';
|
|
15
15
|
import {centerBaseline} from './CenterBaseline';
|
|
16
16
|
import {createContext, forwardRef, ReactNode, useContext} from 'react';
|
|
17
17
|
import {FocusableRef, FocusableRefValue} from '@react-types/shared';
|
|
18
|
-
import {
|
|
18
|
+
import {getAllowedOverrides, StyleProps} from './style-utils' with { type: 'macro' };
|
|
19
19
|
import {IconContext} from './Icon';
|
|
20
20
|
import {pressScale} from './pressScale';
|
|
21
21
|
import {SkeletonContext} from './Skeleton';
|
|
@@ -44,7 +44,7 @@ interface ToggleButtonStyleProps {
|
|
|
44
44
|
isEmphasized?: boolean
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export interface ActionButtonProps extends Omit<ButtonProps, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange'>, StyleProps, ActionButtonStyleProps {
|
|
47
|
+
export interface ActionButtonProps extends Omit<ButtonProps, 'className' | 'style' | 'children' | 'onHover' | 'onHoverStart' | 'onHoverEnd' | 'onHoverChange' | 'isPending'>, StyleProps, ActionButtonStyleProps {
|
|
48
48
|
/** The content to display in the ActionButton. */
|
|
49
49
|
children?: ReactNode
|
|
50
50
|
}
|
package/src/AlertDialog.tsx
CHANGED
|
@@ -24,7 +24,7 @@ import {IconContext} from './Icon';
|
|
|
24
24
|
import intlMessages from '../intl/*.json';
|
|
25
25
|
import NoticeSquare from '../s2wf-icons/S2_Icon_AlertDiamond_20_N.svg';
|
|
26
26
|
import {Provider} from 'react-aria-components';
|
|
27
|
-
import {style} from '../style
|
|
27
|
+
import {style} from '../style' with {type: 'macro'};
|
|
28
28
|
import {UnsafeStyles} from './style-utils' with {type: 'macro'};
|
|
29
29
|
import {useLocalizedStringFormatter} from '@react-aria/i18n';
|
|
30
30
|
|
package/src/Avatar.tsx
CHANGED
|
@@ -16,7 +16,7 @@ import {DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';
|
|
|
16
16
|
import {filterDOMProps} from '@react-aria/utils';
|
|
17
17
|
import {getAllowedOverrides, StylesPropWithoutWidth, UnsafeStyles} from './style-utils' with {type: 'macro'};
|
|
18
18
|
import {Image} from './Image';
|
|
19
|
-
import {style} from '../style
|
|
19
|
+
import {style} from '../style' with { type: 'macro' };
|
|
20
20
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
21
21
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
|
22
22
|
|
package/src/AvatarGroup.tsx
CHANGED
|
@@ -16,7 +16,7 @@ import {ContextValue, SlotProps} from 'react-aria-components';
|
|
|
16
16
|
import {createContext, CSSProperties, forwardRef, ReactNode} from 'react';
|
|
17
17
|
import {filterDOMProps} from '@react-aria/utils';
|
|
18
18
|
import {getAllowedOverrides, StylesPropWithoutWidth, UnsafeStyles} from './style-utils' with {type: 'macro'};
|
|
19
|
-
import {style} from '../style
|
|
19
|
+
import {style} from '../style' with {type: 'macro'};
|
|
20
20
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
21
21
|
import {useLabel} from 'react-aria';
|
|
22
22
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
package/src/Badge.tsx
CHANGED
|
@@ -15,7 +15,7 @@ import {centerBaseline} from './CenterBaseline';
|
|
|
15
15
|
import {centerPadding, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
16
16
|
import {ContextValue, Provider, SlotProps} from 'react-aria-components';
|
|
17
17
|
import {filterDOMProps} from '@react-aria/utils';
|
|
18
|
-
import {fontRelative, style} from '../style
|
|
18
|
+
import {fontRelative, style} from '../style' with {type: 'macro'};
|
|
19
19
|
import {IconContext} from './Icon';
|
|
20
20
|
import React, {createContext, forwardRef, ReactNode} from 'react';
|
|
21
21
|
import {SkeletonWrapper} from './Skeleton';
|
package/src/Breadcrumbs.tsx
CHANGED
|
@@ -27,13 +27,13 @@ import {AriaBreadcrumbItemProps, useLocale} from 'react-aria';
|
|
|
27
27
|
import ChevronIcon from '../ui-icons/Chevron';
|
|
28
28
|
import {Collection, DOMRef, DOMRefValue, LinkDOMProps, Node} from '@react-types/shared';
|
|
29
29
|
import {createContext, forwardRef, Fragment, ReactNode, RefObject, useCallback, useContext, useEffect, useMemo, useRef, useState} from 'react';
|
|
30
|
-
import {focusRing,
|
|
30
|
+
import {focusRing, size, style} from '../style' with { type: 'macro' };
|
|
31
31
|
import FolderIcon from '../s2wf-icons/S2_Icon_FolderBreadcrumb_20_N.svg';
|
|
32
32
|
import {forwardRefType} from './types';
|
|
33
|
+
import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
33
34
|
// @ts-ignore
|
|
34
35
|
import intlMessages from '../intl/*.json';
|
|
35
36
|
import {Menu, MenuItem, MenuTrigger} from './Menu';
|
|
36
|
-
import {size, style} from '../style/spectrum-theme' with { type: 'macro' };
|
|
37
37
|
import {Text} from './Content';
|
|
38
38
|
import {useDOMRef, useResizeObserver} from '@react-spectrum/utils';
|
|
39
39
|
import {useLayoutEffect} from '@react-aria/utils';
|
package/src/Button.tsx
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {baseColor, fontRelative, style} from '../style
|
|
13
|
+
import {baseColor, focusRing, fontRelative, size as sizeValue, style} from '../style' with {type: 'macro'};
|
|
14
14
|
import {ButtonRenderProps, ContextValue, Link, LinkProps, OverlayTriggerStateContext, Provider, Button as RACButton, ButtonProps as RACButtonProps} from 'react-aria-components';
|
|
15
15
|
import {centerBaseline} from './CenterBaseline';
|
|
16
|
-
import {centerPadding,
|
|
16
|
+
import {centerPadding, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
17
17
|
import {createContext, forwardRef, ReactNode, useContext, useEffect, useState} from 'react';
|
|
18
18
|
import {FocusableRef, FocusableRefValue} from '@react-types/shared';
|
|
19
19
|
import {IconContext} from './Icon';
|
|
@@ -370,8 +370,21 @@ function Button(props: ButtonProps, ref: FocusableRef<HTMLButtonElement>) {
|
|
|
370
370
|
isProgressVisible: 1
|
|
371
371
|
}
|
|
372
372
|
})({isProgressVisible, isPending})}>
|
|
373
|
-
|
|
374
|
-
|
|
373
|
+
<ProgressCircle
|
|
374
|
+
isIndeterminate
|
|
375
|
+
aria-label={stringFormatter.format('button.pending')}
|
|
376
|
+
size="S"
|
|
377
|
+
staticColor={staticColor}
|
|
378
|
+
styles={style({
|
|
379
|
+
size: {
|
|
380
|
+
size: {
|
|
381
|
+
S: sizeValue(14),
|
|
382
|
+
M: sizeValue(18),
|
|
383
|
+
L: 20,
|
|
384
|
+
XL: 24
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
})({size})} />
|
|
375
388
|
</div>
|
|
376
389
|
}
|
|
377
390
|
</Provider>
|
|
@@ -405,7 +418,8 @@ function LinkButton(props: LinkButtonProps, ref: FocusableRef<HTMLAnchorElement>
|
|
|
405
418
|
variant: props.variant || 'primary',
|
|
406
419
|
fillStyle: props.fillStyle || 'fill',
|
|
407
420
|
size: props.size || 'M',
|
|
408
|
-
staticColor: props.staticColor
|
|
421
|
+
staticColor: props.staticColor,
|
|
422
|
+
isPending: false
|
|
409
423
|
}, props.styles)}>
|
|
410
424
|
<Provider
|
|
411
425
|
values={[
|
package/src/ButtonGroup.tsx
CHANGED
|
@@ -15,7 +15,7 @@ import {ContextValue, Provider, SlotProps} from 'react-aria-components';
|
|
|
15
15
|
import {createContext, forwardRef, ReactNode, useCallback, useRef} from 'react';
|
|
16
16
|
import {DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';
|
|
17
17
|
import {getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
18
|
-
import {style} from '../style
|
|
18
|
+
import {style} from '../style' with {type: 'macro'};
|
|
19
19
|
import {
|
|
20
20
|
useDOMRef,
|
|
21
21
|
useResizeObserver
|
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
|
/**
|
|
@@ -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';
|
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. */
|
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
|
@@ -21,7 +21,7 @@ import {ImageContext} from './Image';
|
|
|
21
21
|
import intlMessages from '../intl/*.json';
|
|
22
22
|
import {Modal} from './Modal';
|
|
23
23
|
import {Popover} from './Popover';
|
|
24
|
-
import {style} from '../style
|
|
24
|
+
import {style} from '../style' with {type: 'macro'};
|
|
25
25
|
import {StyleProps} from './style-utils';
|
|
26
26
|
import {useDOMRef, useMediaQuery} from '@react-spectrum/utils';
|
|
27
27
|
import {useLocalizedStringFormatter} from '@react-aria/i18n';
|
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';
|