()
| 92 | import {style} from '@react-spectrum/s2/style' with {type: 'macro'}; |
| 93 | |
| 94 | export default function Lazy() { |
| 95 | let [isDialogOpen, setIsDialogOpen] = useState(false); |
| 96 | return ( |
| 97 | <> |
| 98 | <Section title="Color"> |
| 99 | <ColorField label="Primary Color" /> |
| 100 | <ColorSwatchPicker> |
| 101 | <ColorSwatch color="#A00" /> |
| 102 | <ColorSwatch color="#f80" /> |
| 103 | <ColorSwatch color="#080" /> |
| 104 | <ColorSwatch color="#08f" /> |
| 105 | <ColorSwatch color="#088" /> |
| 106 | <ColorSwatch color="#008" /> |
| 107 | </ColorSwatchPicker> |
| 108 | <ColorSlider defaultValue="#7f0000" channel="red" /> |
| 109 | <ColorArea defaultValue="#7f0000" /> |
| 110 | <ColorWheel defaultValue="hsl(30, 100%, 50%)" /> |
| 111 | </Section> |
| 112 | |
| 113 | <Section title="Date and time"> |
| 114 | <Calendar aria-label="Calendar" /> |
| 115 | <DateField label="Date Field" /> |
| 116 | <DatePicker label="Date Picker" /> |
| 117 | <DateRangePicker label="Date Range Picker" /> |
| 118 | <RangeCalendar aria-label="Range Calendar" /> |
| 119 | <TimeField label="Time Field" /> |
| 120 | </Section> |
| 121 | |
| 122 | <Section title="Drag and Drop"> |
| 123 | <DropZone> |
| 124 | <IllustratedMessage> |
| 125 | <DropToUpload /> |
| 126 | <Heading>Drag and drop your file</Heading> |
| 127 | <Content>Or, select a file from your computer</Content> |
| 128 | </IllustratedMessage> |
| 129 | </DropZone> |
| 130 | </Section> |
| 131 | |
| 132 | <Section title="Forms"> |
| 133 | <Form |
| 134 | styles={style({ |
| 135 | maxWidth: 288 |
| 136 | })}> |
| 137 | <CheckboxGroup label="Favorite sports"> |
| 138 | <Checkbox value="soccer">Soccer</Checkbox> |
| 139 | <Checkbox value="baseball">Baseball</Checkbox> |
| 140 | <Checkbox value="basketball">Basketball</Checkbox> |
| 141 | </CheckboxGroup> |
| 142 | <NumberField label="Width" defaultValue={1024} minValue={0} /> |
| 143 | <RadioGroup label="Favorite pet"> |
| 144 | <Radio value="dogs">Dogs</Radio> |
| 145 | <Radio value="cats">Cats</Radio> |
| 146 | </RadioGroup> |
| 147 | <SearchField label="Search" /> |
| 148 | <Switch>Low power mode</Switch> |
| 149 | <TextArea label="Description" /> |
| 150 | <TextField label="Email" /> |
| 151 | <TextField label="Password" /> |
nothing calls this directly
no outgoing calls
no test coverage detected