@primer/components 0.0.0-202192817126 → 0.0.0-202192822657

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.
Files changed (130) hide show
  1. package/CHANGELOG.md +1 -19
  2. package/dist/browser.esm.js +49 -53
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +46 -50
  5. package/dist/browser.umd.js.map +1 -1
  6. package/lib/ActionList/Item.d.ts +0 -6
  7. package/lib/ActionList/Item.js +1 -5
  8. package/lib/AnchoredOverlay/AnchoredOverlay.d.ts +4 -2
  9. package/lib/Autocomplete/Autocomplete.d.ts +8 -6
  10. package/lib/Autocomplete/AutocompleteInput.d.ts +8 -6
  11. package/lib/Button/Button.d.ts +5 -5
  12. package/lib/Button/ButtonBase.d.ts +1 -1
  13. package/lib/Button/ButtonClose.d.ts +3 -3
  14. package/lib/Button/ButtonDanger.d.ts +5 -5
  15. package/lib/Button/ButtonInvisible.d.ts +5 -5
  16. package/lib/Button/ButtonOutline.d.ts +5 -5
  17. package/lib/Button/ButtonPrimary.d.ts +5 -5
  18. package/lib/CircleBadge.d.ts +2 -2
  19. package/lib/CircleOcticon.d.ts +4 -4
  20. package/lib/DatePicker/DatePicker.d.ts +48 -0
  21. package/lib/DatePicker/DatePicker.js +106 -0
  22. package/lib/DatePicker/DatePickerAnchor.d.ts +5 -0
  23. package/lib/DatePicker/DatePickerAnchor.js +194 -0
  24. package/lib/DatePicker/DatePickerOverlay.d.ts +3 -0
  25. package/lib/DatePicker/DatePickerOverlay.js +48 -0
  26. package/lib/DatePicker/DatePickerPanel.d.ts +2 -0
  27. package/lib/DatePicker/DatePickerPanel.js +126 -0
  28. package/lib/DatePicker/Day.d.ts +14 -0
  29. package/lib/DatePicker/Day.js +190 -0
  30. package/lib/DatePicker/Month.d.ts +9 -0
  31. package/lib/DatePicker/Month.js +120 -0
  32. package/lib/DatePicker/dateParser.d.ts +11 -0
  33. package/lib/DatePicker/dateParser.js +188 -0
  34. package/lib/DatePicker/index.d.ts +2 -0
  35. package/lib/DatePicker/index.js +13 -0
  36. package/lib/DatePicker/useDatePicker.d.ts +89 -0
  37. package/lib/DatePicker/useDatePicker.js +370 -0
  38. package/lib/Dialog.d.ts +4 -4
  39. package/lib/Dropdown.d.ts +16 -16
  40. package/lib/DropdownMenu/DropdownButton.d.ts +6 -6
  41. package/lib/FilterList.d.ts +3 -3
  42. package/lib/Flash.d.ts +1 -1
  43. package/lib/Label.d.ts +1 -1
  44. package/lib/Position.d.ts +4 -4
  45. package/lib/ProgressBar.d.ts +1 -1
  46. package/lib/SelectMenu/SelectMenu.d.ts +28 -26
  47. package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
  48. package/lib/TextInputWithTokens.d.ts +8 -10
  49. package/lib/TextInputWithTokens.js +29 -102
  50. package/lib/Timeline.d.ts +4 -4
  51. package/lib/Token/AvatarToken.d.ts +1 -1
  52. package/lib/Token/IssueLabelToken.d.ts +1 -1
  53. package/lib/Token/Token.d.ts +1 -1
  54. package/lib/Token/Token.js +2 -13
  55. package/lib/Token/TokenBase.js +4 -0
  56. package/lib/Token/_RemoveTokenButton.js +2 -15
  57. package/lib/_TextInputWrapper.d.ts +1 -1
  58. package/lib/_TextInputWrapper.js +1 -1
  59. package/lib/hooks/useDebounce.d.ts +2 -0
  60. package/lib/hooks/useDebounce.js +24 -0
  61. package/lib/sx.d.ts +2 -8
  62. package/lib/theme-preval.js +2 -2
  63. package/lib/theme.d.ts +0 -78
  64. package/lib/theme.js +1 -3
  65. package/lib/utils/testing.d.ts +1 -1
  66. package/lib-esm/ActionList/Item.d.ts +0 -6
  67. package/lib-esm/ActionList/Item.js +1 -5
  68. package/lib-esm/AnchoredOverlay/AnchoredOverlay.d.ts +4 -2
  69. package/lib-esm/Autocomplete/Autocomplete.d.ts +8 -6
  70. package/lib-esm/Autocomplete/AutocompleteInput.d.ts +8 -6
  71. package/lib-esm/Button/Button.d.ts +5 -5
  72. package/lib-esm/Button/ButtonBase.d.ts +1 -1
  73. package/lib-esm/Button/ButtonClose.d.ts +3 -3
  74. package/lib-esm/Button/ButtonDanger.d.ts +5 -5
  75. package/lib-esm/Button/ButtonInvisible.d.ts +5 -5
  76. package/lib-esm/Button/ButtonOutline.d.ts +5 -5
  77. package/lib-esm/Button/ButtonPrimary.d.ts +5 -5
  78. package/lib-esm/CircleBadge.d.ts +2 -2
  79. package/lib-esm/CircleOcticon.d.ts +4 -4
  80. package/lib-esm/DatePicker/DatePicker.d.ts +48 -0
  81. package/lib-esm/DatePicker/DatePicker.js +89 -0
  82. package/lib-esm/DatePicker/DatePickerAnchor.d.ts +5 -0
  83. package/lib-esm/DatePicker/DatePickerAnchor.js +167 -0
  84. package/lib-esm/DatePicker/DatePickerOverlay.d.ts +3 -0
  85. package/lib-esm/DatePicker/DatePickerOverlay.js +29 -0
  86. package/lib-esm/DatePicker/DatePickerPanel.d.ts +2 -0
  87. package/lib-esm/DatePicker/DatePickerPanel.js +100 -0
  88. package/lib-esm/DatePicker/Day.d.ts +14 -0
  89. package/lib-esm/DatePicker/Day.js +167 -0
  90. package/lib-esm/DatePicker/Month.d.ts +9 -0
  91. package/lib-esm/DatePicker/Month.js +96 -0
  92. package/lib-esm/DatePicker/dateParser.d.ts +11 -0
  93. package/lib-esm/DatePicker/dateParser.js +174 -0
  94. package/lib-esm/DatePicker/index.d.ts +2 -0
  95. package/lib-esm/DatePicker/index.js +1 -0
  96. package/lib-esm/DatePicker/useDatePicker.d.ts +89 -0
  97. package/lib-esm/DatePicker/useDatePicker.js +339 -0
  98. package/lib-esm/Dialog.d.ts +4 -4
  99. package/lib-esm/Dropdown.d.ts +16 -16
  100. package/lib-esm/DropdownMenu/DropdownButton.d.ts +6 -6
  101. package/lib-esm/FilterList.d.ts +3 -3
  102. package/lib-esm/Flash.d.ts +1 -1
  103. package/lib-esm/Label.d.ts +1 -1
  104. package/lib-esm/Position.d.ts +4 -4
  105. package/lib-esm/ProgressBar.d.ts +1 -1
  106. package/lib-esm/SelectMenu/SelectMenu.d.ts +28 -26
  107. package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
  108. package/lib-esm/TextInputWithTokens.d.ts +8 -10
  109. package/lib-esm/TextInputWithTokens.js +30 -101
  110. package/lib-esm/Timeline.d.ts +4 -4
  111. package/lib-esm/Token/AvatarToken.d.ts +1 -1
  112. package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
  113. package/lib-esm/Token/Token.d.ts +1 -1
  114. package/lib-esm/Token/Token.js +2 -13
  115. package/lib-esm/Token/TokenBase.js +4 -0
  116. package/lib-esm/Token/_RemoveTokenButton.js +2 -11
  117. package/lib-esm/_TextInputWrapper.d.ts +1 -1
  118. package/lib-esm/_TextInputWrapper.js +1 -1
  119. package/lib-esm/hooks/useDebounce.d.ts +2 -0
  120. package/lib-esm/hooks/useDebounce.js +16 -0
  121. package/lib-esm/sx.d.ts +2 -8
  122. package/lib-esm/theme-preval.js +2 -2
  123. package/lib-esm/theme.d.ts +0 -78
  124. package/lib-esm/theme.js +1 -2
  125. package/lib-esm/utils/testing.d.ts +1 -1
  126. package/package.json +14 -14
  127. package/lib/utils/types/KeyPaths.d.ts +0 -3
  128. package/lib/utils/types/KeyPaths.js +0 -1
  129. package/lib-esm/utils/types/KeyPaths.d.ts +0 -3
  130. package/lib-esm/utils/types/KeyPaths.js +0 -1
@@ -0,0 +1,339 @@
1
+ import { CheckIcon, TrashIcon } from '@primer/octicons-react';
2
+ import { isEqual, isAfter, isBefore, addMonths, subMonths, isToday, isWeekend, differenceInDays, addDays, subDays } from 'date-fns';
3
+ import deepmerge from 'deepmerge';
4
+ import React, { createContext, useCallback, useContext, useMemo, useEffect, useState } from 'react';
5
+ import { Text, useConfirm } from '..';
6
+ import { formatDate } from './dateParser';
7
+ const DatePickerContext = /*#__PURE__*/createContext(null);
8
+
9
+ const useDatePicker = date => {
10
+ const value = useContext(DatePickerContext);
11
+ const [selected, setSelected] = useState(false);
12
+ const today = date ? isToday(date) : false;
13
+
14
+ if (!value) {
15
+ throw new Error('useDatePicker must be used inside a DatePickerProvider');
16
+ }
17
+
18
+ useEffect(() => {
19
+ if (date) {
20
+ if (value.hoverRange) {
21
+ if (isRangeSelection(value.hoverRange)) {
22
+ if (isEqual(date, value.hoverRange.from)) {
23
+ setSelected('start');
24
+ } else if (value.hoverRange.to && isEqual(date, value.hoverRange.to)) {
25
+ setSelected('end');
26
+ } else if (isAfter(date, value.hoverRange.from) && value.hoverRange.to && isBefore(date, value.hoverRange.to)) {
27
+ setSelected('middle');
28
+ } else {
29
+ setSelected(false);
30
+ }
31
+ }
32
+ } else if (value.selection) {
33
+ if (isMultiSelection(value.selection)) {
34
+ setSelected(!!value.selection.find(d => isEqual(d, date)));
35
+ } else if (isRangeSelection(value.selection)) {
36
+ if (isEqual(date, value.selection.from)) {
37
+ setSelected('start');
38
+ } else if (value.selection.to && isEqual(date, value.selection.to)) {
39
+ setSelected('end');
40
+ } else if (isAfter(date, value.selection.from) && value.selection.to && isBefore(date, value.selection.to)) {
41
+ setSelected('middle');
42
+ } else {
43
+ setSelected(false);
44
+ }
45
+ } else {
46
+ setSelected(isEqual(date, value.selection));
47
+ }
48
+ }
49
+ }
50
+ }, [date, value.hoverRange, value.selection, today]);
51
+ let blocked,
52
+ disabled = false;
53
+
54
+ if (date) {
55
+ // Determine if date is blocked out
56
+ if (value.configuration.blockedDates) {
57
+ blocked = !!value.configuration.blockedDates.find(d => isEqual(d, date));
58
+ } // Determine if date is disabled
59
+
60
+
61
+ if (value.configuration.minDate || value.configuration.maxDate || value.configuration.disableWeekends) {
62
+ disabled = (value.configuration.minDate ? isBefore(date, value.configuration.minDate) : false) || (value.configuration.maxDate ? isAfter(date, value.configuration.maxDate) : false) || (value.configuration.disableWeekends ? isWeekend(date) : false);
63
+ }
64
+ }
65
+
66
+ return { ...value,
67
+ blocked,
68
+ disabled,
69
+ selected,
70
+ today
71
+ };
72
+ };
73
+
74
+ export default useDatePicker;
75
+ export function isSingleSelection(selection) {
76
+ return selection instanceof Date;
77
+ }
78
+ export function isMultiSelection(selection) {
79
+ return Array.isArray(selection);
80
+ }
81
+ export function isRangeSelection(selection) {
82
+ return !!selection.from;
83
+ }
84
+ export function isStringRangeSelection(selection) {
85
+ return !!selection.from;
86
+ }
87
+
88
+ function parseSelection(selection, variant) {
89
+ if (!selection) return;
90
+
91
+ if (variant === 'multi') {
92
+ if (isMultiSelection(selection)) {
93
+ const parsedSelection = [];
94
+
95
+ for (const d of selection) {
96
+ parsedSelection.push(new Date(new Date(d).toDateString()));
97
+ }
98
+
99
+ return parsedSelection.sort((a, b) => a.getTime() - b.getTime());
100
+ } else if (selection instanceof Date) {
101
+ return [new Date(new Date(selection).toDateString())];
102
+ } else if (isRangeSelection(selection)) {
103
+ const parsedSelection = [];
104
+ parsedSelection.push(new Date(new Date(selection.from).toDateString()));
105
+
106
+ if (selection.to) {
107
+ parsedSelection.push(new Date(new Date(selection.to).toDateString()));
108
+ }
109
+
110
+ return parsedSelection.sort((a, b) => a.getTime() - b.getTime());
111
+ }
112
+ } else if (variant === 'range') {
113
+ if (isRangeSelection(selection)) {
114
+ return {
115
+ from: new Date(new Date(selection.from).toDateString()),
116
+ to: selection.to ? new Date(new Date(selection.to).toDateString()) : null
117
+ };
118
+ } else if (isMultiSelection(selection)) {
119
+ return {
120
+ from: new Date(new Date(selection[0]).toDateString()),
121
+ to: selection[1] ? new Date(new Date(selection[1]).toDateString()) : null
122
+ };
123
+ } else if (selection instanceof Date) {
124
+ return {
125
+ from: new Date(new Date(selection).toDateString()),
126
+ to: null
127
+ };
128
+ }
129
+ } else {
130
+ if (selection instanceof Date) {
131
+ return new Date(new Date(selection).toDateString());
132
+ } else if (isMultiSelection(selection)) {
133
+ return new Date(new Date(selection[0]).toDateString());
134
+ } else if (isRangeSelection(selection)) {
135
+ return new Date(new Date(selection.from).toDateString());
136
+ } else {
137
+ return;
138
+ }
139
+ }
140
+ }
141
+
142
+ const defaultConfiguration = {
143
+ anchorVariant: 'button',
144
+ confirmation: false,
145
+ confirmUnsavedClose: false,
146
+ disableWeekends: false,
147
+ iconPlacement: 'start',
148
+ placeholder: 'Select a Date...',
149
+ showInputPrompt: false,
150
+ variant: 'single',
151
+ view: '2-month',
152
+ weekStartsOn: 'Sunday'
153
+ };
154
+ export const DatePickerProvider = ({
155
+ configuration: externalConfig = {},
156
+ children,
157
+ closePicker,
158
+ value
159
+ }) => {
160
+ const [configuration, setConfiguration] = useState(deepmerge(defaultConfiguration, externalConfig));
161
+ const [previousSelection, setPreviousSelection] = useState(parseSelection(value, configuration.variant));
162
+ const [isDirty, setIsDirty] = useState(false);
163
+ const [selection, setSelection] = useState(parseSelection(value, configuration.variant));
164
+ const [hoverRange, setHoverRange] = useState(null);
165
+ const [currentViewingDate, setCurrentViewingDate] = useState(new Date());
166
+ const confirm = useConfirm();
167
+ useEffect(() => {
168
+ setConfiguration(deepmerge(defaultConfiguration, externalConfig));
169
+ setSelection(parseSelection(selection, configuration.variant)); // Don't want this to run every time selection gets updated
170
+ // eslint-disable-next-line react-hooks/exhaustive-deps
171
+ }, [configuration.variant, externalConfig]);
172
+ const goToMonth = useCallback(date => {
173
+ setCurrentViewingDate(new Date(new Date(date).toDateString()));
174
+ }, []);
175
+ const nextMonth = useCallback(() => {
176
+ setCurrentViewingDate(addMonths(currentViewingDate, 1));
177
+ }, [currentViewingDate]);
178
+ const previousMonth = useCallback(() => {
179
+ setCurrentViewingDate(subMonths(currentViewingDate, 1));
180
+ }, [currentViewingDate]);
181
+ const getFormattedDate = useMemo(() => {
182
+ const {
183
+ anchorVariant,
184
+ dateFormat,
185
+ placeholder,
186
+ variant
187
+ } = configuration;
188
+ return formatDate({
189
+ selection,
190
+ anchorVariant,
191
+ dateFormat,
192
+ placeholder,
193
+ variant
194
+ });
195
+ }, [configuration, selection]);
196
+ const saveValue = useCallback(updatedSelection => {
197
+ setPreviousSelection(updatedSelection !== null && updatedSelection !== void 0 ? updatedSelection : selection);
198
+ setIsDirty(false);
199
+ closePicker === null || closePicker === void 0 ? void 0 : closePicker();
200
+ }, [closePicker, selection]);
201
+ const revertValue = useCallback(() => {
202
+ setSelection(previousSelection);
203
+ setIsDirty(false);
204
+ }, [previousSelection]);
205
+ const handleClose = useCallback(async () => {
206
+ if (configuration.confirmUnsavedClose) {
207
+ if (isDirty) {
208
+ const result = await confirm({
209
+ title: 'Save Changes?',
210
+ content: 'You have unsaved changes, would you like to save them?',
211
+ confirmButtonContent: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CheckIcon, null), /*#__PURE__*/React.createElement(Text, {
212
+ sx: {
213
+ ml: 1
214
+ }
215
+ }, "Save")),
216
+ cancelButtonContent: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TrashIcon, null), /*#__PURE__*/React.createElement(Text, {
217
+ sx: {
218
+ ml: 1
219
+ }
220
+ }, "Discard"))
221
+ });
222
+
223
+ if (result) {
224
+ saveValue();
225
+ } else {
226
+ revertValue();
227
+ }
228
+ }
229
+ } else if (isDirty) revertValue();
230
+ }, [configuration.confirmUnsavedClose, confirm, isDirty, revertValue, saveValue]);
231
+ const inputHandler = useCallback(updatedSelection => {
232
+ // validate date falls within range
233
+ setSelection(updatedSelection);
234
+ }, []);
235
+ const selectionHandler = useCallback(date => {
236
+ setIsDirty(true);
237
+
238
+ if (configuration.variant === 'multi') {
239
+ const selections = [...selection];
240
+ const existingIndex = selections.findIndex(s => isEqual(s, date));
241
+
242
+ if (existingIndex > -1) {
243
+ selections.splice(existingIndex, 1);
244
+ setSelection(selections.sort((a, b) => a.getTime() - b.getTime()));
245
+ } else {
246
+ if (configuration.maxSelections && selections.length + 1 > configuration.maxSelections) return;
247
+ setSelection([...selections, date].sort((a, b) => a.getTime() - b.getTime()));
248
+ }
249
+ } else if (configuration.variant === 'range') {
250
+ if (selection && isRangeSelection(selection) && !selection.to) {
251
+ let toDate = date;
252
+
253
+ if (configuration.maxRangeSize && Math.abs(differenceInDays(selection.from, date)) >= configuration.maxRangeSize) {
254
+ toDate = isBefore(date, selection.from) ? subDays(selection.from, configuration.maxRangeSize - 1) : addDays(selection.from, configuration.maxRangeSize - 1);
255
+ }
256
+
257
+ const updatedSelection = isBefore(toDate, selection.from) ? {
258
+ from: toDate,
259
+ to: selection.from
260
+ } : {
261
+ from: selection.from,
262
+ to: toDate
263
+ };
264
+ setSelection(updatedSelection);
265
+ setHoverRange(null);
266
+
267
+ if (!configuration.confirmation) {
268
+ saveValue(updatedSelection);
269
+ }
270
+ } else {
271
+ setHoverRange({
272
+ from: date,
273
+ to: date
274
+ });
275
+ setSelection({
276
+ from: date,
277
+ to: null
278
+ });
279
+ }
280
+ } else {
281
+ setSelection(date);
282
+
283
+ if (!configuration.confirmation) {
284
+ saveValue(date);
285
+ }
286
+ }
287
+ }, [configuration.confirmation, configuration.maxRangeSize, configuration.maxSelections, configuration.variant, saveValue, selection]);
288
+ const focusHnadler = useCallback(date => {
289
+ if (!selection) return;
290
+ const {
291
+ minDate,
292
+ maxDate,
293
+ maxRangeSize,
294
+ variant
295
+ } = configuration;
296
+
297
+ if (variant === 'range' && isRangeSelection(selection) && hoverRange) {
298
+ let hoverDate = date;
299
+ if (minDate) hoverDate = isBefore(date, minDate) ? minDate : hoverDate;
300
+ if (maxDate) hoverDate = isAfter(date, maxDate) ? maxDate : hoverDate;
301
+
302
+ if (maxRangeSize && Math.abs(differenceInDays(selection.from, hoverDate)) >= maxRangeSize) {
303
+ hoverDate = isBefore(hoverDate, selection.from) ? subDays(selection.from, configuration.maxRangeSize - 1) : addDays(selection.from, configuration.maxRangeSize - 1);
304
+ }
305
+
306
+ setHoverRange(isBefore(hoverDate, selection.from) ? {
307
+ from: hoverDate,
308
+ to: selection.from
309
+ } : {
310
+ from: selection.from,
311
+ to: hoverDate
312
+ });
313
+ }
314
+ }, [configuration, hoverRange, selection]);
315
+ const datePickerCtx = useMemo(() => {
316
+ return {
317
+ configuration,
318
+ currentViewingDate,
319
+ disabled: false,
320
+ formattedDate: getFormattedDate,
321
+ goToMonth,
322
+ hoverRange,
323
+ nextMonth,
324
+ onClose: handleClose,
325
+ onDateInput: inputHandler,
326
+ onDayFocus: focusHnadler,
327
+ onSelection: selectionHandler,
328
+ previousMonth,
329
+ revertValue,
330
+ saveValue,
331
+ selectionActive: false,
332
+ selection
333
+ };
334
+ }, [configuration, currentViewingDate, focusHnadler, getFormattedDate, goToMonth, handleClose, hoverRange, inputHandler, nextMonth, previousMonth, revertValue, saveValue, selection, selectionHandler]);
335
+ return /*#__PURE__*/React.createElement(DatePickerContext.Provider, {
336
+ value: datePickerCtx
337
+ }, children);
338
+ };
339
+ DatePickerProvider.displayName = "DatePickerProvider";
@@ -15,7 +15,6 @@ declare namespace DialogHeader {
15
15
  };
16
16
  var propTypes: {
17
17
  lineHeight?: React.Validator<import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined> | undefined;
18
- border?: React.Validator<import("styled-system").ResponsiveValue<import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined> | undefined;
19
18
  alignContent?: React.Validator<import("styled-system").ResponsiveValue<import("csstype").Property.AlignContent, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined> | undefined;
20
19
  alignItems?: React.Validator<import("styled-system").ResponsiveValue<import("csstype").Property.AlignItems, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined> | undefined;
21
20
  alignSelf?: React.Validator<import("styled-system").ResponsiveValue<import("csstype").Property.AlignSelf, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined> | undefined;
@@ -91,6 +90,7 @@ declare namespace DialogHeader {
91
90
  zIndex?: React.Validator<import("styled-system").ResponsiveValue<import("csstype").Property.ZIndex, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined> | undefined;
92
91
  background?: React.Validator<import("styled-system").ResponsiveValue<import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined> | undefined;
93
92
  backgroundPosition?: React.Validator<import("styled-system").ResponsiveValue<import("csstype").Property.BackgroundPosition<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined> | undefined;
93
+ border?: React.Validator<import("styled-system").ResponsiveValue<import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined> | undefined;
94
94
  borderBottom?: React.Validator<import("styled-system").ResponsiveValue<import("csstype").Property.BorderBottom<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined> | undefined;
95
95
  borderColor?: React.Validator<import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined> | undefined;
96
96
  borderLeft?: React.Validator<import("styled-system").ResponsiveValue<import("csstype").Property.BorderLeft<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined> | undefined;
@@ -153,7 +153,7 @@ declare namespace DialogHeader {
153
153
  results?: React.Validator<number | null | undefined> | undefined;
154
154
  security?: React.Validator<string | null | undefined> | undefined;
155
155
  unselectable?: React.Validator<"on" | "off" | null | undefined> | undefined;
156
- inputMode?: React.Validator<"search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | null | undefined> | undefined;
156
+ inputMode?: React.Validator<"none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | null | undefined> | undefined;
157
157
  is?: React.Validator<string | null | undefined> | undefined;
158
158
  'aria-activedescendant'?: React.Validator<string | null | undefined> | undefined;
159
159
  'aria-atomic'?: React.Validator<boolean | "true" | "false" | null | undefined> | undefined;
@@ -168,7 +168,7 @@ declare namespace DialogHeader {
168
168
  'aria-describedby'?: React.Validator<string | null | undefined> | undefined;
169
169
  'aria-details'?: React.Validator<string | null | undefined> | undefined;
170
170
  'aria-disabled'?: React.Validator<boolean | "true" | "false" | null | undefined> | undefined;
171
- 'aria-dropeffect'?: React.Validator<"link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined> | undefined;
171
+ 'aria-dropeffect'?: React.Validator<"none" | "link" | "copy" | "execute" | "move" | "popup" | null | undefined> | undefined;
172
172
  'aria-errormessage'?: React.Validator<string | null | undefined> | undefined;
173
173
  'aria-expanded'?: React.Validator<boolean | "true" | "false" | null | undefined> | undefined;
174
174
  'aria-flowto'?: React.Validator<string | null | undefined> | undefined;
@@ -387,7 +387,7 @@ declare namespace DialogHeader {
387
387
  size?: React.Validator<import("styled-system").ResponsiveValue<import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined> | undefined;
388
388
  borderX?: React.Validator<import("styled-system").ResponsiveValue<import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined> | undefined;
389
389
  borderY?: React.Validator<import("styled-system").ResponsiveValue<import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined> | undefined;
390
- sx?: React.Validator<import("./sx").BetterSystemStyleObject | undefined> | undefined;
390
+ sx?: React.Validator<import("@styled-system/css").SystemStyleObject | undefined> | undefined;
391
391
  theme?: React.Validator<any> | undefined;
392
392
  };
393
393
  var displayName: string;
@@ -75,7 +75,7 @@ declare const _default: {
75
75
  results?: number | undefined;
76
76
  security?: string | undefined;
77
77
  unselectable?: "on" | "off" | undefined;
78
- inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
78
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
79
79
  is?: string | undefined;
80
80
  'aria-activedescendant'?: string | undefined;
81
81
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -90,7 +90,7 @@ declare const _default: {
90
90
  'aria-describedby'?: string | undefined;
91
91
  'aria-details'?: string | undefined;
92
92
  'aria-disabled'?: boolean | "true" | "false" | undefined;
93
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
93
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
94
94
  'aria-errormessage'?: string | undefined;
95
95
  'aria-expanded'?: boolean | "true" | "false" | undefined;
96
96
  'aria-flowto'?: string | undefined;
@@ -307,7 +307,7 @@ declare const _default: {
307
307
  py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
308
308
  paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
309
309
  open?: boolean | undefined;
310
- sx?: import("./sx").BetterSystemStyleObject | undefined;
310
+ sx?: import("@styled-system/css").SystemStyleObject | undefined;
311
311
  onToggle?: React.ReactEventHandler<HTMLElement> | undefined;
312
312
  } & {
313
313
  theme?: any;
@@ -372,7 +372,7 @@ declare const _default: {
372
372
  results?: number | undefined;
373
373
  security?: string | undefined;
374
374
  unselectable?: "on" | "off" | undefined;
375
- inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
375
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
376
376
  is?: string | undefined;
377
377
  'aria-activedescendant'?: string | undefined;
378
378
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -387,7 +387,7 @@ declare const _default: {
387
387
  'aria-describedby'?: string | undefined;
388
388
  'aria-details'?: string | undefined;
389
389
  'aria-disabled'?: boolean | "true" | "false" | undefined;
390
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
390
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
391
391
  'aria-errormessage'?: string | undefined;
392
392
  'aria-expanded'?: boolean | "true" | "false" | undefined;
393
393
  'aria-flowto'?: string | undefined;
@@ -604,7 +604,7 @@ declare const _default: {
604
604
  py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
605
605
  paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
606
606
  open?: boolean | undefined;
607
- sx?: import("./sx").BetterSystemStyleObject | undefined;
607
+ sx?: import("@styled-system/css").SystemStyleObject | undefined;
608
608
  onToggle?: React.ReactEventHandler<HTMLElement> | undefined;
609
609
  } & {
610
610
  theme?: any;
@@ -691,7 +691,7 @@ declare const _default: {
691
691
  results?: number | undefined;
692
692
  security?: string | undefined;
693
693
  unselectable?: "on" | "off" | undefined;
694
- inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
694
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
695
695
  is?: string | undefined;
696
696
  'aria-activedescendant'?: string | undefined;
697
697
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -706,7 +706,7 @@ declare const _default: {
706
706
  'aria-describedby'?: string | undefined;
707
707
  'aria-details'?: string | undefined;
708
708
  'aria-disabled'?: boolean | "true" | "false" | undefined;
709
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
709
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
710
710
  'aria-errormessage'?: string | undefined;
711
711
  'aria-expanded'?: boolean | "true" | "false" | undefined;
712
712
  'aria-flowto'?: string | undefined;
@@ -923,8 +923,7 @@ declare const _default: {
923
923
  py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
924
924
  paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
925
925
  size?: import("styled-system").ResponsiveValue<import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
926
- sx?: import("./sx").BetterSystemStyleObject | undefined;
927
- as?: string | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
926
+ sx?: import("@styled-system/css").SystemStyleObject | undefined;
928
927
  autoFocus?: boolean | undefined;
929
928
  disabled?: boolean | undefined;
930
929
  formAction?: string | undefined;
@@ -932,7 +931,8 @@ declare const _default: {
932
931
  formMethod?: string | undefined;
933
932
  formNoValidate?: boolean | undefined;
934
933
  formTarget?: string | undefined;
935
- variant?: "small" | "medium" | "large" | undefined;
934
+ as?: string | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
935
+ variant?: "large" | "medium" | "small" | undefined;
936
936
  } & {
937
937
  theme?: any;
938
938
  }): JSX.Element;
@@ -1011,7 +1011,7 @@ declare const _default: {
1011
1011
  results?: number | undefined;
1012
1012
  security?: string | undefined;
1013
1013
  unselectable?: "on" | "off" | undefined;
1014
- inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
1014
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
1015
1015
  is?: string | undefined;
1016
1016
  'aria-activedescendant'?: string | undefined;
1017
1017
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -1026,7 +1026,7 @@ declare const _default: {
1026
1026
  'aria-describedby'?: string | undefined;
1027
1027
  'aria-details'?: string | undefined;
1028
1028
  'aria-disabled'?: boolean | "true" | "false" | undefined;
1029
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
1029
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
1030
1030
  'aria-errormessage'?: string | undefined;
1031
1031
  'aria-expanded'?: boolean | "true" | "false" | undefined;
1032
1032
  'aria-flowto'?: string | undefined;
@@ -1243,8 +1243,7 @@ declare const _default: {
1243
1243
  py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
1244
1244
  paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
1245
1245
  size?: import("styled-system").ResponsiveValue<import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
1246
- sx?: import("./sx").BetterSystemStyleObject | undefined;
1247
- as?: string | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
1246
+ sx?: import("@styled-system/css").SystemStyleObject | undefined;
1248
1247
  autoFocus?: boolean | undefined;
1249
1248
  disabled?: boolean | undefined;
1250
1249
  formAction?: string | undefined;
@@ -1252,7 +1251,8 @@ declare const _default: {
1252
1251
  formMethod?: string | undefined;
1253
1252
  formNoValidate?: boolean | undefined;
1254
1253
  formTarget?: string | undefined;
1255
- variant?: "small" | "medium" | "large" | undefined;
1254
+ as?: string | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
1255
+ variant?: "large" | "medium" | "small" | undefined;
1256
1256
  } & {
1257
1257
  theme?: any;
1258
1258
  }> | undefined;
@@ -76,7 +76,7 @@ export declare const DropdownButton: React.ForwardRefExoticComponent<Pick<React.
76
76
  results?: number | undefined;
77
77
  security?: string | undefined;
78
78
  unselectable?: "on" | "off" | undefined;
79
- inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
79
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
80
80
  is?: string | undefined;
81
81
  'aria-activedescendant'?: string | undefined;
82
82
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -91,7 +91,7 @@ export declare const DropdownButton: React.ForwardRefExoticComponent<Pick<React.
91
91
  'aria-describedby'?: string | undefined;
92
92
  'aria-details'?: string | undefined;
93
93
  'aria-disabled'?: boolean | "true" | "false" | undefined;
94
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
94
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
95
95
  'aria-errormessage'?: string | undefined;
96
96
  'aria-expanded'?: boolean | "true" | "false" | undefined;
97
97
  'aria-flowto'?: string | undefined;
@@ -308,8 +308,7 @@ export declare const DropdownButton: React.ForwardRefExoticComponent<Pick<React.
308
308
  py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
309
309
  paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
310
310
  size?: import("styled-system").ResponsiveValue<import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
311
- sx?: import("../sx").BetterSystemStyleObject | undefined;
312
- as?: string | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
311
+ sx?: import("@styled-system/css").SystemStyleObject | undefined;
313
312
  autoFocus?: boolean | undefined;
314
313
  disabled?: boolean | undefined;
315
314
  formAction?: string | undefined;
@@ -317,7 +316,8 @@ export declare const DropdownButton: React.ForwardRefExoticComponent<Pick<React.
317
316
  formMethod?: string | undefined;
318
317
  formNoValidate?: boolean | undefined;
319
318
  formTarget?: string | undefined;
320
- variant?: "small" | "medium" | "large" | undefined;
319
+ as?: string | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
320
+ variant?: "large" | "medium" | "small" | undefined;
321
321
  } & {
322
322
  theme?: any;
323
- }>, "backgroundColor" | "color" | "display" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "verticalAlign" | "width" | "margin" | "overflow" | "padding" | "hidden" | "children" | "theme" | "value" | "form" | "p" | "slot" | "style" | "title" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "size" | "sx" | "as" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "variant"> & React.RefAttributes<HTMLElement>>;
323
+ }>, "backgroundColor" | "color" | "display" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "verticalAlign" | "width" | "margin" | "overflow" | "padding" | "hidden" | "children" | "theme" | "value" | "form" | "p" | "slot" | "style" | "title" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "size" | "sx" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "as" | "variant"> & React.RefAttributes<HTMLElement>>;
@@ -76,7 +76,7 @@ declare const _default: {
76
76
  results?: number | undefined;
77
77
  security?: string | undefined;
78
78
  unselectable?: "on" | "off" | undefined;
79
- inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
79
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
80
80
  is?: string | undefined;
81
81
  'aria-activedescendant'?: string | undefined;
82
82
  'aria-atomic'?: boolean | "true" | "false" | undefined;
@@ -91,7 +91,7 @@ declare const _default: {
91
91
  'aria-describedby'?: string | undefined;
92
92
  'aria-details'?: string | undefined;
93
93
  'aria-disabled'?: boolean | "true" | "false" | undefined;
94
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
94
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
95
95
  'aria-errormessage'?: string | undefined;
96
96
  'aria-expanded'?: boolean | "true" | "false" | undefined;
97
97
  'aria-flowto'?: string | undefined;
@@ -307,7 +307,7 @@ declare const _default: {
307
307
  paddingX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
308
308
  py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
309
309
  paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
310
- sx?: import("./sx").BetterSystemStyleObject | undefined;
310
+ sx?: import("@styled-system/css").SystemStyleObject | undefined;
311
311
  } & {
312
312
  theme?: any;
313
313
  }>): JSX.Element;
@@ -2,7 +2,7 @@ import { SystemCommonProps } from './constants';
2
2
  import { SxProp } from './sx';
3
3
  import { ComponentProps } from './utils/types';
4
4
  declare const Flash: import("styled-components").StyledComponent<"div", any, {
5
- variant?: "success" | "danger" | "default" | "warning" | undefined;
5
+ variant?: "default" | "danger" | "success" | "warning" | undefined;
6
6
  full?: boolean | undefined;
7
7
  } & SystemCommonProps & SxProp, never>;
8
8
  export declare type FlashProps = ComponentProps<typeof Flash>;
@@ -3,7 +3,7 @@ import { SystemCommonProps } from './constants';
3
3
  import { SxProp } from './sx';
4
4
  import { ComponentProps } from './utils/types';
5
5
  declare const Label: import("styled-components").StyledComponent<"span", any, {
6
- variant?: "small" | "medium" | "large" | "xl" | undefined;
6
+ variant?: "large" | "medium" | "small" | "xl" | undefined;
7
7
  dropshadow?: boolean | undefined;
8
8
  outline?: boolean | undefined;
9
9
  } & BorderColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & SystemCommonProps & SxProp, never>;