Skip to content

Commit 0c3a3b4

Browse files
committed
Merge branch 'main' into s2-combobox-picker-virtualizer
2 parents 7f062b8 + 92b96b7 commit 0c3a3b4

File tree

7 files changed

+14
-12
lines changed

7 files changed

+14
-12
lines changed

.github/ISSUE_TEMPLATE/Bug_Report.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ body:
2424
id: current-behavior
2525
attributes:
2626
label: 😯 Current Behavior
27-
description: |
27+
description: |
2828
Tell us what happens instead of the expected behavior. Please include a link to the storybook if possible.
2929
If you are seeing an error, please include the full error message and stack trace.
3030
validations:
@@ -40,22 +40,23 @@ body:
4040
id: context
4141
attributes:
4242
label: 🔦 Context
43-
description: |
43+
description: |
4444
Providing context helps us come up with a solution that is most useful in the real world.
4545
How has this issue affected you? What are you trying to accomplish?
4646
validations:
4747
required: false
4848
- type: textarea
4949
id: base-reproduction
5050
attributes:
51-
label: 🖥️ Steps to Reproduce
52-
description: |
53-
Provide a minimal test case that can reproduce the problem. Include a CodeSandBox, link to sample repos, or specific doc examples to help us test your issue more easily.
51+
label: 🖥️ Steps to Reproduce
52+
description: |
53+
Provide a minimal test case that can reproduce the problem. Include a CodeSandBox, link to sample repos, or specific doc examples to help us test your issue more easily.
5454
5555
To get started, you can use the following CodeSandBox templates:
5656
For React Spectrum: https://codesandbox.io/s/react-spectrum-template-syueo
5757
For React Aria: https://codesandbox.io/s/react-aria-template-389r79
5858
For React Aria Components: https://codesandbox.io/s/react-aria-components-template-g7wmmk
59+
For React Spectrum S2 with Style Macros: https://codesandbox.io/p/devbox/react-spectrum-s2-style-macro-template-h6fpsq
5960
validations:
6061
required: true
6162
- type: markdown

packages/@react-aria/textfield/src/useTextField.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export interface AriaTextFieldOptions<T extends TextFieldIntrinsicElements> exte
8383
*/
8484
autoCapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters',
8585
/**
86-
* An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See [https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint].
86+
* An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint).
8787
*/
8888
enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'
8989
}

packages/@react-spectrum/s2/src/ContextualHelp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const ContextualHelp = forwardRef(function ContextualHelp(props: Contextu
103103
offset={offset}
104104
crossOffset={crossOffset}
105105
hideArrow
106-
UNSAFE_className={popover}>
106+
styles={popover}>
107107
<RACDialog className={mergeStyles(dialogInner, style({borderRadius: 'none', margin: -24, padding: 24}))}>
108108
<Provider
109109
values={[

packages/@react-spectrum/s2/src/style-utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,10 @@ const heightProperties = [
186186
export type StylesProp = StyleString<(typeof allowedOverrides)[number] | (typeof widthProperties)[number]>;
187187
export type StylesPropWithHeight = StyleString<(typeof allowedOverrides)[number] | (typeof widthProperties)[number] | (typeof heightProperties)[number]>;
188188
export type StylesPropWithoutWidth = StyleString<(typeof allowedOverrides)[number]>;
189+
export type UnsafeClassName = string & {properties?: never};
189190
export interface UnsafeStyles {
190191
/** Sets the CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. Only use as a **last resort**. Use the `style` macro via the `styles` prop instead. */
191-
UNSAFE_className?: string,
192+
UNSAFE_className?: UnsafeClassName,
192193
/** Sets inline [style](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style) for the element. Only use as a **last resort**. Use the `style` macro via the `styles` prop instead. */
193194
UNSAFE_style?: CSSProperties
194195
}

packages/@react-types/searchfield/src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface SearchFieldProps extends TextFieldProps {
2323

2424
export interface AriaSearchFieldProps extends SearchFieldProps, AriaTextFieldProps {
2525
/**
26-
* An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See [https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint].
26+
* An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint).
2727
*/
2828
enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'
2929
}

packages/@react-types/textfield/src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface AriaTextFieldProps<T = HTMLInputElement> extends TextFieldProps
4646
/** Identifies the element (or elements) whose contents or presence are controlled by the current element. */
4747
'aria-controls'?: string,
4848
/**
49-
* An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See [https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint].
49+
* An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint).
5050
*/
5151
enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'
5252
}

packages/react-aria-components/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export {ColorSwatchPicker, ColorSwatchPickerItem, ColorSwatchPickerContext} from
3030
export {ColorThumb} from './ColorThumb';
3131
export {ColorWheel, ColorWheelTrack, ColorWheelTrackContext, ColorWheelStateContext} from './ColorWheel';
3232
export {ComboBox, ComboBoxContext, ComboBoxStateContext} from './ComboBox';
33-
export {composeRenderProps, DEFAULT_SLOT, Provider, useContextProps, useSlottedContext} from './utils';
33+
export {composeRenderProps, DEFAULT_SLOT, Provider, useContextProps, useRenderProps, useSlottedContext} from './utils';
3434
export {DateField, DateInput, DateSegment, TimeField, DateFieldContext, TimeFieldContext, DateFieldStateContext, TimeFieldStateContext} from './DateField';
3535
export {DatePicker, DateRangePicker, DatePickerContext, DateRangePickerContext, DatePickerStateContext, DateRangePickerStateContext} from './DatePicker';
3636
export {DialogTrigger, Dialog, DialogContext, OverlayTriggerStateContext} from './Dialog';
@@ -141,7 +141,7 @@ export type {TooltipProps, TooltipRenderProps, TooltipTriggerComponentProps} fro
141141
export type {TreeProps, TreeRenderProps, TreeItemProps, TreeItemRenderProps, TreeItemContentProps, TreeItemContentRenderProps} from './Tree';
142142
export type {DragAndDropHooks, DragAndDropOptions} from './useDragAndDrop';
143143
export type {DropIndicatorProps, DropIndicatorRenderProps} from './DragAndDrop';
144-
export type {ContextValue, SlotProps} from './utils';
144+
export type {ContextValue, RenderProps, SlotProps, StyleRenderProps} from './utils';
145145
export type {VirtualizerProps} from './Virtualizer';
146146

147147
export type {DateValue, DateRange, TimeValue} from 'react-aria';

0 commit comments

Comments
 (0)