@maxio-com/react-ui-components 9.23.0 → 9.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/skills/maxio-react/SKILL.md +3 -0
- package/dist/skills/maxio-react/references/components-calendar.md +193 -0
- package/dist/skills/maxio-react/references/components-flex.md +2 -2
- package/dist/skills/maxio-react/references/components-forms-textfield.md +1 -0
- package/dist/skills/maxio-react/references/components-grid.md +2 -2
- package/dist/skills/maxio-react/references/components-rangecalendar.md +254 -0
- package/dist/skills/maxio-react/references/deprecated-textinput.md +7 -1
- package/dist/skills/maxio-react/references/migration-guides-v9.md +299 -0
- package/dist/temporary-typings/src/components/Calendar/Calendar.d.ts +6 -0
- package/dist/temporary-typings/src/components/Calendar/Calendar.d.ts.map +1 -0
- package/dist/temporary-typings/src/components/Calendar/index.d.ts +3 -0
- package/dist/temporary-typings/src/components/Calendar/index.d.ts.map +1 -0
- package/dist/temporary-typings/src/components/Calendar/types.d.ts +5 -0
- package/dist/temporary-typings/src/components/Calendar/types.d.ts.map +1 -0
- package/dist/temporary-typings/src/components/RangeCalendar/RangeCalendar.d.ts +6 -0
- package/dist/temporary-typings/src/components/RangeCalendar/RangeCalendar.d.ts.map +1 -0
- package/dist/temporary-typings/src/components/RangeCalendar/index.d.ts +3 -0
- package/dist/temporary-typings/src/components/RangeCalendar/index.d.ts.map +1 -0
- package/dist/temporary-typings/src/components/RangeCalendar/types.d.ts +5 -0
- package/dist/temporary-typings/src/components/RangeCalendar/types.d.ts.map +1 -0
- package/dist/temporary-typings/src/components/index.d.ts +4 -0
- package/dist/temporary-typings/src/components/index.d.ts.map +1 -1
- package/dist/temporary-typings/src/guides/migrations/Checklist.d.ts +13 -0
- package/dist/temporary-typings/src/guides/migrations/Checklist.d.ts.map +1 -0
- package/package.json +3 -2
- package/typings/index.d.ts +15 -3
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
# What Changed in v9
|
|
2
|
+
|
|
3
|
+
`@maxio-com/react-ui-components` is currently on the `9.x` line. This page
|
|
4
|
+
tracks every component deprecated during v9 as its own section, so anyone
|
|
5
|
+
catching up from an older release can see everything worth migrating in one
|
|
6
|
+
place before the next major version removes deprecated APIs entirely.
|
|
7
|
+
|
|
8
|
+
This page grows as more components are deprecated during v9 — each one gets
|
|
9
|
+
its own section below, with a prop mapping, behavior notes, and a checklist.
|
|
10
|
+
|
|
11
|
+
## TextInput to TextField
|
|
12
|
+
|
|
13
|
+
_Deprecated in v9.10.0._
|
|
14
|
+
|
|
15
|
+
`TextInput` is deprecated. Use `TextField` for new React forms and migrate
|
|
16
|
+
existing usage when you are already touching the surrounding form.
|
|
17
|
+
|
|
18
|
+
`TextField` keeps the same visual treatment and single-line input behavior,
|
|
19
|
+
but it exposes the React Aria Components field API directly. Most migrations
|
|
20
|
+
are a small prop rename from the legacy `TextInput` API to the supported
|
|
21
|
+
`TextField` API.
|
|
22
|
+
|
|
23
|
+
### Before and After
|
|
24
|
+
|
|
25
|
+
<div className="migration-before-after">
|
|
26
|
+
|
|
27
|
+
<div>
|
|
28
|
+
|
|
29
|
+
#### Before
|
|
30
|
+
|
|
31
|
+
```tsx
|
|
32
|
+
import { TextInput } from '@maxio-com/react-ui-components';
|
|
33
|
+
|
|
34
|
+
<TextInput
|
|
35
|
+
label="Customer name"
|
|
36
|
+
placeholder="Acme Co."
|
|
37
|
+
helperText="Use the legal business name."
|
|
38
|
+
value={customerName}
|
|
39
|
+
invalid={!customerName}
|
|
40
|
+
errorMessage="Enter a customer name."
|
|
41
|
+
disabled={isSaving}
|
|
42
|
+
onChange={setCustomerName}
|
|
43
|
+
/>;
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<div>
|
|
49
|
+
|
|
50
|
+
#### After
|
|
51
|
+
|
|
52
|
+
```tsx
|
|
53
|
+
import { TextField } from '@maxio-com/react-ui-components';
|
|
54
|
+
|
|
55
|
+
<TextField
|
|
56
|
+
label="Customer name"
|
|
57
|
+
placeholder="Acme Co."
|
|
58
|
+
description="Use the legal business name."
|
|
59
|
+
value={customerName}
|
|
60
|
+
isInvalid={!customerName}
|
|
61
|
+
errorMessage="Enter a customer name."
|
|
62
|
+
isDisabled={isSaving}
|
|
63
|
+
onChange={setCustomerName}
|
|
64
|
+
/>;
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
### Prop Mapping
|
|
72
|
+
|
|
73
|
+
<div className="migration-prop-legend">
|
|
74
|
+
<div className="migration-prop-legend__item">
|
|
75
|
+
<span className="migration-prop-legend__swatch migration-prop-legend__swatch--changed" />
|
|
76
|
+
Renamed or changed behavior
|
|
77
|
+
</div>
|
|
78
|
+
<div className="migration-prop-legend__item">
|
|
79
|
+
<span className="migration-prop-legend__swatch migration-prop-legend__swatch--removed" />
|
|
80
|
+
No direct replacement
|
|
81
|
+
</div>
|
|
82
|
+
<div className="migration-prop-legend__item">
|
|
83
|
+
<span className="migration-prop-legend__swatch migration-prop-legend__swatch--unchanged" />
|
|
84
|
+
Carries over unchanged
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
<table className="migration-prop-table">
|
|
89
|
+
<thead>
|
|
90
|
+
<tr>
|
|
91
|
+
<th>TextInput prop</th>
|
|
92
|
+
<th>TextField prop</th>
|
|
93
|
+
<th>Notes</th>
|
|
94
|
+
</tr>
|
|
95
|
+
</thead>
|
|
96
|
+
<tbody>
|
|
97
|
+
<tr>
|
|
98
|
+
<td><code>label</code></td>
|
|
99
|
+
<td><code>label</code></td>
|
|
100
|
+
<td>Same visible label prop. Prefer a visible label whenever possible.</td>
|
|
101
|
+
</tr>
|
|
102
|
+
<tr className="migration-prop-row--changed">
|
|
103
|
+
<td><code>helperText</code></td>
|
|
104
|
+
<td><code>description</code></td>
|
|
105
|
+
<td>Rename helper copy to <code>description</code>; it is hidden when an error shows.</td>
|
|
106
|
+
</tr>
|
|
107
|
+
<tr>
|
|
108
|
+
<td><code>errorMessage</code></td>
|
|
109
|
+
<td><code>errorMessage</code></td>
|
|
110
|
+
<td>Same error copy prop. Pair it with invalid state.</td>
|
|
111
|
+
</tr>
|
|
112
|
+
<tr className="migration-prop-row--changed">
|
|
113
|
+
<td><code>invalid</code></td>
|
|
114
|
+
<td><code>isInvalid</code></td>
|
|
115
|
+
<td>Rename to the React Aria Components state prop.</td>
|
|
116
|
+
</tr>
|
|
117
|
+
<tr className="migration-prop-row--changed">
|
|
118
|
+
<td><code>disabled</code></td>
|
|
119
|
+
<td><code>isDisabled</code></td>
|
|
120
|
+
<td>Rename to the React Aria Components state prop.</td>
|
|
121
|
+
</tr>
|
|
122
|
+
<tr className="migration-prop-row--changed">
|
|
123
|
+
<td><code>readOnly</code></td>
|
|
124
|
+
<td><code>isReadOnly</code></td>
|
|
125
|
+
<td>Rename to the React Aria Components state prop.</td>
|
|
126
|
+
</tr>
|
|
127
|
+
<tr className="migration-prop-row--changed">
|
|
128
|
+
<td><code>required</code></td>
|
|
129
|
+
<td><code>isRequired</code></td>
|
|
130
|
+
<td>Not equivalent: <code>TextInput</code>'s native <code>required</code> attribute was silently ignored (see Behavior Notes). <code>isRequired</code> is the first working required state.</td>
|
|
131
|
+
</tr>
|
|
132
|
+
<tr>
|
|
133
|
+
<td><code>placeholder</code></td>
|
|
134
|
+
<td><code>placeholder</code></td>
|
|
135
|
+
<td>Same example-value prop. Do not use it as the only label.</td>
|
|
136
|
+
</tr>
|
|
137
|
+
<tr>
|
|
138
|
+
<td><code>value</code></td>
|
|
139
|
+
<td><code>value</code></td>
|
|
140
|
+
<td>Same controlled value pattern.</td>
|
|
141
|
+
</tr>
|
|
142
|
+
<tr>
|
|
143
|
+
<td><code>defaultValue</code></td>
|
|
144
|
+
<td><code>defaultValue</code></td>
|
|
145
|
+
<td>Same uncontrolled value pattern.</td>
|
|
146
|
+
</tr>
|
|
147
|
+
<tr>
|
|
148
|
+
<td><code>onChange</code></td>
|
|
149
|
+
<td><code>onChange</code></td>
|
|
150
|
+
<td>Both components call <code>onChange</code> with the next string value.</td>
|
|
151
|
+
</tr>
|
|
152
|
+
<tr>
|
|
153
|
+
<td><code>size</code></td>
|
|
154
|
+
<td><code>size</code></td>
|
|
155
|
+
<td>Same supported sizes: <code>sm</code>, <code>md</code>, <code>lg</code>, and <code>xl</code>.</td>
|
|
156
|
+
</tr>
|
|
157
|
+
<tr>
|
|
158
|
+
<td><code>fullWidth</code></td>
|
|
159
|
+
<td><code>fullWidth</code></td>
|
|
160
|
+
<td>Same layout prop.</td>
|
|
161
|
+
</tr>
|
|
162
|
+
<tr>
|
|
163
|
+
<td><code>leadingElement</code></td>
|
|
164
|
+
<td><code>leadingElement</code></td>
|
|
165
|
+
<td>Same slot for compact visual context or a small action.</td>
|
|
166
|
+
</tr>
|
|
167
|
+
<tr>
|
|
168
|
+
<td><code>trailingElement</code></td>
|
|
169
|
+
<td><code>trailingElement</code></td>
|
|
170
|
+
<td>Same slot for compact visual context or a small action.</td>
|
|
171
|
+
</tr>
|
|
172
|
+
<tr className="migration-prop-row--removed">
|
|
173
|
+
<td><code>showErrorMessage</code></td>
|
|
174
|
+
<td>No direct prop</td>
|
|
175
|
+
<td>Remove unless the surrounding UX intentionally suppresses error text.</td>
|
|
176
|
+
</tr>
|
|
177
|
+
<tr className="migration-prop-row--changed">
|
|
178
|
+
<td><code>type</code></td>
|
|
179
|
+
<td><code>type</code></td>
|
|
180
|
+
<td><code>TextField</code> supports text-like types: <code>text</code>, <code>search</code>, <code>url</code>, <code>tel</code>, <code>email</code>, and <code>password</code>.</td>
|
|
181
|
+
</tr>
|
|
182
|
+
</tbody>
|
|
183
|
+
</table>
|
|
184
|
+
|
|
185
|
+
### Behavior Notes
|
|
186
|
+
|
|
187
|
+
- `TextField` uses React Aria Components field state props such as `isInvalid`,
|
|
188
|
+
`isDisabled`, `isReadOnly`, and `isRequired`.
|
|
189
|
+
- `TextInput` never wired a required state into its underlying `useTextField`
|
|
190
|
+
call, so passing a native `required` attribute had no effect: no
|
|
191
|
+
`aria-required`, and no native HTML5 required behavior. If any existing
|
|
192
|
+
usage relied on `required`, treat adding `isRequired` on `TextField` as
|
|
193
|
+
turning on required validation for the first time, not as a like-for-like
|
|
194
|
+
rename — double-check the surrounding form still behaves as expected.
|
|
195
|
+
- `TextInput` logs a deprecation warning when it mounts.
|
|
196
|
+
- `TextField` should use `description` for helper text and `errorMessage` for
|
|
197
|
+
validation feedback.
|
|
198
|
+
- Keep leading and trailing interactive elements independently accessible with
|
|
199
|
+
their own accessible names.
|
|
200
|
+
|
|
201
|
+
### Migration Checklist
|
|
202
|
+
|
|
203
|
+
Check items off as you go. Progress is saved in your browser, so you can leave
|
|
204
|
+
and come back to this guide while migrating a larger form.
|
|
205
|
+
|
|
206
|
+
<Checklist
|
|
207
|
+
storageKey="migration-checklist-textinput-to-textfield"
|
|
208
|
+
items={[
|
|
209
|
+
{
|
|
210
|
+
id: 'replace-imports',
|
|
211
|
+
title: (
|
|
212
|
+
<>
|
|
213
|
+
Replace <code>TextInput</code> imports with <code>TextField</code>
|
|
214
|
+
</>
|
|
215
|
+
),
|
|
216
|
+
description: 'TextField is the supported replacement going forward.',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
id: 'rename-helper-text',
|
|
220
|
+
title: (
|
|
221
|
+
<>
|
|
222
|
+
Rename <code>helperText</code> to <code>description</code>
|
|
223
|
+
</>
|
|
224
|
+
),
|
|
225
|
+
description:
|
|
226
|
+
'The prop is still hidden automatically whenever an error message shows, same as before.',
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
id: 'rename-state-props',
|
|
230
|
+
title: 'Rename legacy state props to their React Aria equivalents',
|
|
231
|
+
description: (
|
|
232
|
+
<>
|
|
233
|
+
<code>invalid</code> to <code>isInvalid</code>, <code>disabled</code>{' '}
|
|
234
|
+
to <code>isDisabled</code>, and <code>readOnly</code> to{' '}
|
|
235
|
+
<code>isReadOnly</code>.
|
|
236
|
+
</>
|
|
237
|
+
),
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
id: 'add-is-required',
|
|
241
|
+
title: (
|
|
242
|
+
<>
|
|
243
|
+
Add <code>isRequired</code> if the field should be required
|
|
244
|
+
</>
|
|
245
|
+
),
|
|
246
|
+
description: (
|
|
247
|
+
<>
|
|
248
|
+
It wasn't previously enforced: a native <code>required</code> on{' '}
|
|
249
|
+
<code>TextInput</code> had no effect.
|
|
250
|
+
</>
|
|
251
|
+
),
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
id: 'controlled-state',
|
|
255
|
+
title: 'Keep the same controlled/uncontrolled state pattern',
|
|
256
|
+
description: (
|
|
257
|
+
<>
|
|
258
|
+
<code>value</code> plus <code>onChange</code> for controlled fields,{' '}
|
|
259
|
+
<code>defaultValue</code> for simple uncontrolled ones.
|
|
260
|
+
</>
|
|
261
|
+
),
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
id: 'review-validation',
|
|
265
|
+
title: 'Review when validation errors appear',
|
|
266
|
+
description:
|
|
267
|
+
'Confirm errors still show after submit, blur, or whatever validation moment the surrounding form expects.',
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
id: 'remove-show-error-message',
|
|
271
|
+
title: (
|
|
272
|
+
<>
|
|
273
|
+
Remove <code>showErrorMessage</code> usage
|
|
274
|
+
</>
|
|
275
|
+
),
|
|
276
|
+
description:
|
|
277
|
+
'TextField has no equivalent prop — handle any intentional suppression in the surrounding form instead.',
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
id: 'confirm-label',
|
|
281
|
+
title: 'Confirm the field still has an accessible name',
|
|
282
|
+
description:
|
|
283
|
+
'Keep a visible label wherever possible, per the component’s accessibility guidance.',
|
|
284
|
+
},
|
|
285
|
+
]}
|
|
286
|
+
/>
|
|
287
|
+
|
|
288
|
+
## Looking Ahead
|
|
289
|
+
|
|
290
|
+
When the next major version removes these deprecated components, its own
|
|
291
|
+
upgrade guide will supersede this page — this content will move there, along
|
|
292
|
+
with any other breaking changes that release introduces.
|
|
293
|
+
|
|
294
|
+
## Related
|
|
295
|
+
|
|
296
|
+
- **[TextField](components-forms-textfield.md)**: supported
|
|
297
|
+
React replacement for single-line text fields.
|
|
298
|
+
- **[TextInput](deprecated-textinput.md)**: deprecated
|
|
299
|
+
component documentation for legacy maintenance.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DateValue } from 'react-aria-components';
|
|
3
|
+
import type { CalendarProps } from './types';
|
|
4
|
+
declare const Calendar: <T extends DateValue>({ className, errorMessage, ...props }: CalendarProps<T>) => React.JSX.Element;
|
|
5
|
+
export default Calendar;
|
|
6
|
+
//# sourceMappingURL=Calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/Calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,QAAA,MAAM,QAAQ,GAAI,CAAC,SAAS,SAAS,EAAE,uCAIpC,aAAa,CAAC,CAAC,CAAC,sBA6ClB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CalendarProps as AriaCalendarProps, DateValue } from 'react-aria-components';
|
|
2
|
+
export interface CalendarProps<T extends DateValue = DateValue> extends Omit<AriaCalendarProps<T>, 'children' | 'visibleDuration'> {
|
|
3
|
+
errorMessage?: string;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,IAAI,iBAAiB,EAClC,SAAS,EACV,MAAM,uBAAuB,CAAC;AAG/B,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,CAAE,SAAQ,IAAI,CAC1E,iBAAiB,CAAC,CAAC,CAAC,EACpB,UAAU,GAAG,iBAAiB,CAC/B;IAEC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DateValue } from 'react-aria-components';
|
|
3
|
+
import type { RangeCalendarProps } from './types';
|
|
4
|
+
declare const RangeCalendar: <T extends DateValue>({ className, errorMessage, ...props }: RangeCalendarProps<T>) => React.JSX.Element;
|
|
5
|
+
export default RangeCalendar;
|
|
6
|
+
//# sourceMappingURL=RangeCalendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RangeCalendar.d.ts","sourceRoot":"","sources":["../../../../../src/components/RangeCalendar/RangeCalendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,QAAA,MAAM,aAAa,GAAI,CAAC,SAAS,SAAS,EAAE,uCAIzC,kBAAkB,CAAC,CAAC,CAAC,sBAkDvB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/RangeCalendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RangeCalendarProps as AriaRangeCalendarProps, DateValue } from 'react-aria-components';
|
|
2
|
+
export interface RangeCalendarProps<T extends DateValue = DateValue> extends Omit<AriaRangeCalendarProps<T>, 'children' | 'visibleDuration'> {
|
|
3
|
+
errorMessage?: string;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/RangeCalendar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,IAAI,sBAAsB,EAC5C,SAAS,EACV,MAAM,uBAAuB,CAAC;AAG/B,MAAM,WAAW,kBAAkB,CACjC,CAAC,SAAS,SAAS,GAAG,SAAS,CAC/B,SAAQ,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,iBAAiB,CAAC;IAEvE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -41,4 +41,8 @@ export type { CopyToClipboardProps, CopyToClipboardSize, CopyToClipboardVariant,
|
|
|
41
41
|
export type { EmptyStateHeadingLevel, EmptyStateProps, } from './EmptyState';
|
|
42
42
|
export type { ComboBoxProps, TextAreaProps, TextFieldProps, TextInputProps, } from './forms';
|
|
43
43
|
export type { SegmentedControlItemProps, SegmentedControlProps, SegmentedControlSize, } from './SegmentedControl';
|
|
44
|
+
export { Calendar } from './Calendar';
|
|
45
|
+
export type { CalendarProps } from './Calendar';
|
|
46
|
+
export { RangeCalendar } from './RangeCalendar';
|
|
47
|
+
export type { RangeCalendarProps } from './RangeCalendar';
|
|
44
48
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,SAAS,EAAE,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,QAA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K,EACL,IAAI,EACJ,cAAc,EACd,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,UAAU,EACV,OAAO,EACP,aAAa,EACb,SAAS,EACT,WAAW,EACX,KAAK,EACL,UAAU,EACV,MAAM,EACN,gBAAgB,EAChB,OAAO,EACP,GAAG,EACH,OAAO,EACP,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,GAAG,EACH,QAAQ,EACR,SAAS,EACT,SAAS,EACT,IAAI,EACJ,aAAa,EACb,mBAAmB,EACnB,QAAQ,EACR,UAAU,EACV,MAAM,EACN,OAAO,EACP,cAAc,EACd,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,GACR,CAAC;AAEF,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,sBAAsB,EACtB,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE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AAM,iBAAiB,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,sBAAsB,EACtB,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ChecklistItem {
|
|
3
|
+
id: string;
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
description?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface ChecklistProps {
|
|
8
|
+
storageKey: string;
|
|
9
|
+
items: ChecklistItem[];
|
|
10
|
+
}
|
|
11
|
+
declare const Checklist: ({ storageKey, items }: ChecklistProps) => React.JSX.Element;
|
|
12
|
+
export default Checklist;
|
|
13
|
+
//# sourceMappingURL=Checklist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checklist.d.ts","sourceRoot":"","sources":["../../../../../src/guides/migrations/Checklist.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,cAAc;IAI7B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB;AAYD,QAAA,MAAM,SAAS,GAAI,uBAAuB,cAAc,sBAgEvD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxio-com/react-ui-components",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.24.1",
|
|
4
4
|
"description": "React UI components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.1.0",
|
|
49
49
|
"@floating-ui/react-dom": "^2.1.9",
|
|
50
50
|
"@floating-ui/react-dom-interactions": "^0.13.3",
|
|
51
|
+
"@internationalized/date": "^3.12.3",
|
|
51
52
|
"@maxio-com/design-tokens": "^4.2.3",
|
|
52
53
|
"@react-aria/toast": "3.1.1",
|
|
53
54
|
"@react-aria/utils": "^3.34.1",
|
|
@@ -64,5 +65,5 @@
|
|
|
64
65
|
"publishConfig": {
|
|
65
66
|
"access": "public"
|
|
66
67
|
},
|
|
67
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "57a63363b591a6d87a5e1c289159da6b1a4a55e7"
|
|
68
69
|
}
|
package/typings/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React$1, { ReactNode, HTMLAttributes, LiHTMLAttributes, ButtonHTMLAttributes, AnchorHTMLAttributes, RefObject, FC, ElementType, InputHTMLAttributes } from 'react';
|
|
2
2
|
import { RowData, Row, Table, ExpandedState, RowSelectionState, SortingState, TableOptions } from '@tanstack/react-table';
|
|
3
3
|
export { createColumnHelper } from '@tanstack/react-table';
|
|
4
|
-
import { PopoverProps as PopoverProps$1, ToggleButtonGroupProps, ToggleButtonProps, ListBoxProps as ListBoxProps$1, ListBoxItemProps as ListBoxItemProps$1, ListBoxSectionProps as ListBoxSectionProps$1, HeaderProps, ComboBoxProps as ComboBoxProps$1, ValidationResult, TextFieldProps as TextFieldProps$1 } from 'react-aria-components';
|
|
4
|
+
import { PopoverProps as PopoverProps$1, ToggleButtonGroupProps, ToggleButtonProps, ListBoxProps as ListBoxProps$1, ListBoxItemProps as ListBoxItemProps$1, ListBoxSectionProps as ListBoxSectionProps$1, HeaderProps, ComboBoxProps as ComboBoxProps$1, ValidationResult, TextFieldProps as TextFieldProps$1, DateValue, CalendarProps as CalendarProps$1, RangeCalendarProps as RangeCalendarProps$1 } from 'react-aria-components';
|
|
5
5
|
export { DialogTrigger, Pressable } from 'react-aria-components';
|
|
6
6
|
import * as _floating_ui_react_dom_interactions from '@floating-ui/react-dom-interactions';
|
|
7
7
|
import { MotionProps } from 'framer-motion';
|
|
@@ -894,6 +894,18 @@ type GridProps = {
|
|
|
894
894
|
|
|
895
895
|
declare const Grid: ({ children, templateColumns, templateRows, autoColumns, autoRows, inline, column, columnStart, columnEnd, row, rowStart, rowEnd, gap, gapX, gapY, className, justifyContent, alignItems, ...props }: GridProps) => React$1.JSX.Element;
|
|
896
896
|
|
|
897
|
+
interface CalendarProps<T extends DateValue = DateValue> extends Omit<CalendarProps$1<T>, 'children' | 'visibleDuration'> {
|
|
898
|
+
errorMessage?: string;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
declare const Calendar: <T extends DateValue>({ className, errorMessage, ...props }: CalendarProps<T>) => React$1.JSX.Element;
|
|
902
|
+
|
|
903
|
+
interface RangeCalendarProps<T extends DateValue = DateValue> extends Omit<RangeCalendarProps$1<T>, 'children' | 'visibleDuration'> {
|
|
904
|
+
errorMessage?: string;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
declare const RangeCalendar: <T extends DateValue>({ className, errorMessage, ...props }: RangeCalendarProps<T>) => React$1.JSX.Element;
|
|
908
|
+
|
|
897
909
|
type Sentiment = 'success' | 'danger';
|
|
898
910
|
type AuthLayoutProps = {
|
|
899
911
|
children: React.ReactNode;
|
|
@@ -908,5 +920,5 @@ type AuthLayoutProps = {
|
|
|
908
920
|
|
|
909
921
|
declare const AuthLayout: ({ children, heading, description, sentiment, leadingElement, alert, topAddon, footer, }: AuthLayoutProps) => React$1.JSX.Element;
|
|
910
922
|
|
|
911
|
-
export { ActionList, Alert, AuthLayout, Avatar, Banner, Body, Breadcrumbs, BreadcrumbsItem, Button, Card, Checkbox, CheckboxGroup, Chip, Code, ComboBox, CopyToClipboard, DataTable, Display, Drawer, EmptyState, Flex, FormErrorMessage, FormHelperText, GlobalToastProvider, Grid, Heading, Icon, IconButton, Label, Link, ListBox, LoadingSpinner, Logo, Menu, MenuButton, MenuList, OverlayTrigger, Pagination, Popover, ProgressBar, Radio, RadioGroup, SegmentedControl, Select, SideNavWrapper as SideNav, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, TextArea, TextField, TextInput, Tile, ToastProvider, ToastQueue, Toggle, Tooltip, TooltipTrigger, TopBar, useElementResizeObserver, useHover, useOverlayTrigger, useToast, useWindowSize };
|
|
912
|
-
export type { ComboBoxProps, CopyToClipboardProps, CopyToClipboardSize, CopyToClipboardVariant, DrawerProps, EmptyStateHeadingLevel, EmptyStateProps, Interactions, OverlayAriaRole, Placement, PopoverProps, SegmentedControlItemProps, SegmentedControlProps, SegmentedControlSize, TextAreaProps, TextFieldProps, TextInputProps };
|
|
923
|
+
export { ActionList, Alert, AuthLayout, Avatar, Banner, Body, Breadcrumbs, BreadcrumbsItem, Button, Calendar, Card, Checkbox, CheckboxGroup, Chip, Code, ComboBox, CopyToClipboard, DataTable, Display, Drawer, EmptyState, Flex, FormErrorMessage, FormHelperText, GlobalToastProvider, Grid, Heading, Icon, IconButton, Label, Link, ListBox, LoadingSpinner, Logo, Menu, MenuButton, MenuList, OverlayTrigger, Pagination, Popover, ProgressBar, Radio, RadioGroup, RangeCalendar, SegmentedControl, Select, SideNavWrapper as SideNav, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, TextArea, TextField, TextInput, Tile, ToastProvider, ToastQueue, Toggle, Tooltip, TooltipTrigger, TopBar, useElementResizeObserver, useHover, useOverlayTrigger, useToast, useWindowSize };
|
|
924
|
+
export type { CalendarProps, ComboBoxProps, CopyToClipboardProps, CopyToClipboardSize, CopyToClipboardVariant, DrawerProps, EmptyStateHeadingLevel, EmptyStateProps, Interactions, OverlayAriaRole, Placement, PopoverProps, RangeCalendarProps, SegmentedControlItemProps, SegmentedControlProps, SegmentedControlSize, TextAreaProps, TextFieldProps, TextInputProps };
|