@jobber/components 6.123.0 → 6.123.2

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 (231) hide show
  1. package/dist/AtlantisThemeContext-cjs.js +1 -1
  2. package/dist/AtlantisThemeContext-es.js +9 -9
  3. package/dist/Autocomplete/Autocomplete.types.d.ts +33 -0
  4. package/dist/Autocomplete/index.cjs +5 -5
  5. package/dist/Autocomplete/index.mjs +8 -8
  6. package/dist/Autocomplete/useAutocomplete.d.ts +2 -57
  7. package/dist/Body-cjs.js +1 -1
  8. package/dist/Body-es.js +2 -2
  9. package/dist/BottomSheet-cjs.js +42 -12
  10. package/dist/BottomSheet-es.js +43 -13
  11. package/dist/Box-cjs.js +2 -2
  12. package/dist/Box-es.js +2 -2
  13. package/dist/Button/index.mjs +1 -1
  14. package/dist/Button-es.js +1 -1
  15. package/dist/Card-cjs.js +1 -1
  16. package/dist/Card-es.js +1 -1
  17. package/dist/Checkbox/index.cjs +1 -1
  18. package/dist/Checkbox/index.mjs +1 -1
  19. package/dist/Chip/index.mjs +1 -1
  20. package/dist/Chip-cjs.js +2 -2
  21. package/dist/Chip-es.js +2 -2
  22. package/dist/ChipDismissible-es.js +1 -1
  23. package/dist/Chips/InternalChipDismissible/hooks/index.mjs +1 -1
  24. package/dist/Combobox-cjs.js +1 -1
  25. package/dist/Combobox-es.js +1 -1
  26. package/dist/ComboboxAction-cjs.js +1 -1
  27. package/dist/ComboboxAction-es.js +1 -1
  28. package/dist/ComboboxContent-cjs.js +1 -1
  29. package/dist/ComboboxContent-es.js +2 -2
  30. package/dist/ComboboxContentHeader-cjs.js +1 -1
  31. package/dist/ComboboxContentHeader-es.js +1 -1
  32. package/dist/ComboboxContentList-es.js +1 -1
  33. package/dist/ComboboxContentSearch-cjs.js +1 -1
  34. package/dist/ComboboxContentSearch-es.js +1 -1
  35. package/dist/ComboboxLoadMore-cjs.js +1 -1
  36. package/dist/ComboboxLoadMore-es.js +1 -1
  37. package/dist/ComboboxOption-cjs.js +1 -1
  38. package/dist/ComboboxOption-es.js +1 -1
  39. package/dist/Container-cjs.js +1 -1
  40. package/dist/Container-es.js +1 -1
  41. package/dist/Content-cjs.js +1 -1
  42. package/dist/Content-es.js +1 -1
  43. package/dist/ContentBlock-cjs.js +1 -1
  44. package/dist/ContentBlock-es.js +1 -1
  45. package/dist/Countdown-cjs.js +7 -3
  46. package/dist/Countdown-es.js +8 -4
  47. package/dist/Cover-cjs.js +1 -1
  48. package/dist/Cover-es.js +1 -1
  49. package/dist/DataList-es.js +3 -3
  50. package/dist/DataList.const-cjs.js +0 -1
  51. package/dist/DataList.const-es.js +1 -2
  52. package/dist/DataList.module-cjs.js +1 -1
  53. package/dist/DataList.module-es.js +1 -1
  54. package/dist/DataList.utils-es.js +6 -6
  55. package/dist/DataListAction-cjs.js +1 -1
  56. package/dist/DataListAction-es.js +1 -1
  57. package/dist/DataListActionsMenu-cjs.js +1 -1
  58. package/dist/DataListActionsMenu-es.js +2 -2
  59. package/dist/DataListBulkActions-cjs.js +1 -1
  60. package/dist/DataListBulkActions-es.js +1 -1
  61. package/dist/DataListContext-cjs.js +6 -5
  62. package/dist/DataListContext-es.js +6 -5
  63. package/dist/DataListEmptyState-cjs.js +1 -1
  64. package/dist/DataListEmptyState-es.js +1 -1
  65. package/dist/DataListHeaderTile-cjs.js +2 -2
  66. package/dist/DataListHeaderTile-es.js +2 -2
  67. package/dist/DataListItemActions-cjs.js +1 -1
  68. package/dist/DataListItemActions-es.js +2 -2
  69. package/dist/DataListLayoutActions-cjs.js +1 -1
  70. package/dist/DataListLayoutActions-es.js +2 -2
  71. package/dist/DataListLoadMore-cjs.js +1 -1
  72. package/dist/DataListLoadMore-es.js +1 -1
  73. package/dist/DataListLoadingState-cjs.js +1 -1
  74. package/dist/DataListLoadingState-es.js +2 -2
  75. package/dist/DataListOverflowFade-cjs.js +1 -1
  76. package/dist/DataListOverflowFade-es.js +1 -1
  77. package/dist/DataListSearch-cjs.js +1 -1
  78. package/dist/DataListSearch-es.js +1 -1
  79. package/dist/DataListSortingOptions-cjs.js +1 -1
  80. package/dist/DataListSortingOptions-es.js +1 -1
  81. package/dist/DataListStickyHeader-cjs.js +1 -1
  82. package/dist/DataListStickyHeader-es.js +1 -1
  83. package/dist/DataListTags-cjs.js +1 -1
  84. package/dist/DataListTags-es.js +1 -1
  85. package/dist/DataListTotalCount-cjs.js +1 -1
  86. package/dist/DataListTotalCount-es.js +2 -2
  87. package/dist/DataTable/index.mjs +1 -1
  88. package/dist/DataTable-cjs.js +3 -3
  89. package/dist/DataTable-es.js +5 -5
  90. package/dist/DataTableTable-cjs.js +2 -2
  91. package/dist/DataTableTable-es.js +3 -3
  92. package/dist/DatePicker-cjs.js +266 -81
  93. package/dist/DatePicker-es.js +268 -83
  94. package/dist/DayOfMonthSelect-cjs.js +5 -5
  95. package/dist/DayOfMonthSelect-es.js +6 -6
  96. package/dist/DescriptionList-cjs.js +1 -1
  97. package/dist/DescriptionList-es.js +1 -1
  98. package/dist/Disclosure-cjs.js +1 -1
  99. package/dist/Disclosure-es.js +1 -1
  100. package/dist/Divider-cjs.js +1 -1
  101. package/dist/Divider-es.js +1 -1
  102. package/dist/DrawerGrid-cjs.js +2 -2
  103. package/dist/DrawerGrid-es.js +2 -2
  104. package/dist/DrawerRoot-cjs.js +10 -48
  105. package/dist/DrawerRoot-es.js +12 -50
  106. package/dist/FeatureSwitch-cjs.js +1 -1
  107. package/dist/FeatureSwitch-es.js +1 -1
  108. package/dist/FormField/index.mjs +1 -1
  109. package/dist/FormField-cjs.js +1 -1
  110. package/dist/FormField-es.js +2 -2
  111. package/dist/FormatEmail-cjs.js +1 -1
  112. package/dist/FormatEmail-es.js +1 -1
  113. package/dist/FormatFile-cjs.js +1 -6
  114. package/dist/FormatFile-es.js +1 -6
  115. package/dist/Frame-cjs.js +1 -1
  116. package/dist/Frame-es.js +1 -1
  117. package/dist/Glimmer/index.mjs +1 -1
  118. package/dist/Glimmer-cjs.js +1 -1
  119. package/dist/Glimmer-es.js +2 -2
  120. package/dist/Grid-cjs.js +1 -1
  121. package/dist/Grid-es.js +1 -1
  122. package/dist/GridCell-cjs.js +1 -1
  123. package/dist/GridCell-es.js +1 -1
  124. package/dist/InputAvatar-cjs.js +1 -1
  125. package/dist/InputAvatar-es.js +1 -1
  126. package/dist/InputDate/index.mjs +1 -1
  127. package/dist/InputEmail/index.mjs +1 -1
  128. package/dist/InputFile-cjs.js +8 -3
  129. package/dist/InputFile-es.js +8 -3
  130. package/dist/InputNumber/index.cjs +181 -69
  131. package/dist/InputNumber/index.mjs +184 -72
  132. package/dist/InputPassword-es.js +1 -1
  133. package/dist/InputPhoneNumber/index.cjs +1 -1
  134. package/dist/InputPhoneNumber/index.mjs +2 -2
  135. package/dist/InputText/InputText.d.ts +2 -70
  136. package/dist/InputText/index.mjs +1 -1
  137. package/dist/InputTime/index.cjs +0 -1
  138. package/dist/InputTime/index.mjs +1 -2
  139. package/dist/InputValidation-cjs.js +1 -1
  140. package/dist/InputValidation-es.js +1 -1
  141. package/dist/InternalChipDismissible-cjs.js +1 -1
  142. package/dist/InternalChipDismissible-es.js +2 -2
  143. package/dist/LightBox-cjs.js +1 -1
  144. package/dist/LightBox-es.js +1 -1
  145. package/dist/Link-cjs.js +1 -1
  146. package/dist/Link-es.js +1 -1
  147. package/dist/List-cjs.js +3 -3
  148. package/dist/List-es.js +7 -7
  149. package/dist/Markdown-cjs.js +604 -961
  150. package/dist/Markdown-es.js +610 -967
  151. package/dist/Menu/Menu.d.ts +1 -1
  152. package/dist/Menu-cjs.js +859 -629
  153. package/dist/Menu-es.js +855 -625
  154. package/dist/Modal/index.cjs +2 -2
  155. package/dist/Modal/index.mjs +2 -2
  156. package/dist/Modal/useModal.d.ts +9 -29
  157. package/dist/MultiSelect-cjs.js +2 -2
  158. package/dist/MultiSelect-es.js +2 -2
  159. package/dist/OverlaySeparator-cjs.js +1 -1
  160. package/dist/OverlaySeparator-es.js +1 -1
  161. package/dist/Popover-cjs.js +1 -1
  162. package/dist/Popover-es.js +2 -2
  163. package/dist/ProgressBar-cjs.js +1 -1
  164. package/dist/ProgressBar-es.js +1 -1
  165. package/dist/RadioGroup-cjs.js +1 -1
  166. package/dist/RadioGroup-es.js +1 -1
  167. package/dist/RecurringSelect/components/index.mjs +1 -1
  168. package/dist/RecurringSelect/index.cjs +1 -0
  169. package/dist/RecurringSelect/index.mjs +1 -0
  170. package/dist/RecurringSelect-cjs.js +1 -1
  171. package/dist/RecurringSelect-es.js +2 -2
  172. package/dist/SegmentedControl-cjs.js +1 -1
  173. package/dist/SegmentedControl-es.js +2 -2
  174. package/dist/Select/index.cjs +1 -1
  175. package/dist/Select/index.mjs +2 -2
  176. package/dist/SideDrawer-cjs.js +1 -1
  177. package/dist/SideDrawer-es.js +1 -1
  178. package/dist/Spinner-cjs.js +1 -1
  179. package/dist/Spinner-es.js +1 -1
  180. package/dist/StatusIndicator-cjs.js +1 -1
  181. package/dist/StatusIndicator-es.js +1 -1
  182. package/dist/Switch-cjs.js +1 -1
  183. package/dist/Switch-es.js +1 -1
  184. package/dist/Table/index.mjs +1 -1
  185. package/dist/Tabs/index.mjs +1 -1
  186. package/dist/Tabs-cjs.js +1 -1
  187. package/dist/Tabs-es.js +6 -6
  188. package/dist/Text-cjs2.js +365 -175
  189. package/dist/Text-es2.js +361 -175
  190. package/dist/Thumbnail-cjs.js +1 -1
  191. package/dist/Thumbnail-es.js +2 -2
  192. package/dist/Tiles-cjs.js +1 -1
  193. package/dist/Tiles-es.js +1 -1
  194. package/dist/Tooltip-cjs.js +1 -1
  195. package/dist/Tooltip-es.js +2 -2
  196. package/dist/Typography-cjs.js +3 -3
  197. package/dist/Typography-es.js +3 -3
  198. package/dist/_baseEach-cjs.js +1 -1
  199. package/dist/_baseEach-es.js +7 -7
  200. package/dist/_baseFlatten-es.js +1 -1
  201. package/dist/_getAllKeys-cjs.js +2 -8
  202. package/dist/_getAllKeys-es.js +4 -10
  203. package/dist/_getTag-es.js +1 -1
  204. package/dist/_isIterateeCall-es.js +3 -3
  205. package/dist/_setToString-es.js +2 -2
  206. package/dist/debounce-es.js +4 -4
  207. package/dist/floating-ui.react-cjs.js +35 -16
  208. package/dist/floating-ui.react-dom-es.js +2 -2
  209. package/dist/floating-ui.react-es.js +37 -18
  210. package/dist/identity-es.js +5 -5
  211. package/dist/index-cjs.js +6 -6
  212. package/dist/index-es.js +6 -6
  213. package/dist/index.esm-es.js +1 -1
  214. package/dist/index.mjs +6 -6
  215. package/dist/isSymbol-es.js +1 -1
  216. package/dist/isTypedArray-cjs.js +4 -4
  217. package/dist/isTypedArray-es.js +6 -6
  218. package/dist/keysIn-cjs.js +2 -2
  219. package/dist/keysIn-es.js +5 -5
  220. package/dist/noop-es.js +4 -4
  221. package/dist/omit-cjs.js +37 -5
  222. package/dist/omit-es.js +46 -14
  223. package/dist/primitives/BottomSheet/BottomSheet.d.ts +13 -8
  224. package/dist/showToast-cjs.js +1 -1
  225. package/dist/showToast-es.js +1 -1
  226. package/dist/styles.css +56 -124
  227. package/dist/unstyledPrimitives/index.mjs +3 -3
  228. package/dist/useScrollToActive-cjs.js +1 -1
  229. package/dist/useScrollToActive-es.js +8 -8
  230. package/package.json +32 -15
  231. package/rollup.config.mjs +4 -1
package/dist/Grid-es.js CHANGED
@@ -3,7 +3,7 @@ import classnames from 'classnames';
3
3
  import { a as GridCell } from './GridCell-es.js';
4
4
  import { g as getMappedAtlantisSpaceToken } from './getMappedAtlantisSpaceToken-es.js';
5
5
 
6
- var styles = {"grid":"_0X4jj5NERa4-","gap":"d3vl57tdCWA-","spinning":"Y--XfgJk5Fw-"};
6
+ var styles = {"grid":"_0X4jj5NERa4-","gap":"d3vl57tdCWA-"};
7
7
 
8
8
  var alignments = {"center":"V-24AGDyie4-","start":"H0zdYNTapmM-","end":"O5VtcGWRV3M-","stretch":"wVv5gaWrouI-","spinning":"DcsVgHCowbg-"};
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  var React = require('react');
4
4
 
5
- var styles = {"gridCell":"U0IgyTjmtnU-","spinning":"KceqkKMGwzE-"};
5
+ var styles = {"gridCell":"U0IgyTjmtnU-"};
6
6
 
7
7
  /**
8
8
  * Breakpoints that we support
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
 
3
- var styles = {"gridCell":"U0IgyTjmtnU-","spinning":"KceqkKMGwzE-"};
3
+ var styles = {"gridCell":"U0IgyTjmtnU-"};
4
4
 
5
5
  /**
6
6
  * Breakpoints that we support
@@ -8,7 +8,7 @@ var ProgressBar = require('./ProgressBar-cjs.js');
8
8
  var Button = require('./Button-cjs.js');
9
9
  require('classnames');
10
10
 
11
- var styles = {"inputAvatar":"CMahTsC0SPE-","preview":"VOVr4KEFeVk-","centered":"HzGL7-Sfok4-","overlay":"Cflv-yL6aVQ-","spinning":"aeMMyPDHQho-"};
11
+ var styles = {"inputAvatar":"CMahTsC0SPE-","preview":"VOVr4KEFeVk-","centered":"HzGL7-Sfok4-","overlay":"Cflv-yL6aVQ-"};
12
12
 
13
13
  function InputAvatar(_a) {
14
14
  var { getUploadParams, onUploadComplete, onChange } = _a, avatarProps = tslib_es6.__rest(_a, ["getUploadParams", "onUploadComplete", "onChange"]);
@@ -6,7 +6,7 @@ import { P as ProgressBar } from './ProgressBar-es.js';
6
6
  import { B as Button } from './Button-es.js';
7
7
  import 'classnames';
8
8
 
9
- var styles = {"inputAvatar":"CMahTsC0SPE-","preview":"VOVr4KEFeVk-","centered":"HzGL7-Sfok4-","overlay":"Cflv-yL6aVQ-","spinning":"aeMMyPDHQho-"};
9
+ var styles = {"inputAvatar":"CMahTsC0SPE-","preview":"VOVr4KEFeVk-","centered":"HzGL7-Sfok4-","overlay":"Cflv-yL6aVQ-"};
10
10
 
11
11
  function InputAvatar(_a) {
12
12
  var { getUploadParams, onUploadComplete, onChange } = _a, avatarProps = __rest(_a, ["getUploadParams", "onUploadComplete", "onChange"]);
@@ -1,6 +1,6 @@
1
1
  import React__default, { useRef, useState, useEffect, forwardRef } from 'react';
2
2
  import { o as omit } from '../omit-es.js';
3
- import { k as FormField } from '../FormField-es.js';
3
+ import { F as FormField } from '../FormField-es.js';
4
4
  import 'classnames';
5
5
  import '../tslib.es6-es.js';
6
6
  import 'react-hook-form';
@@ -1,5 +1,5 @@
1
1
  import React__default, { forwardRef, useId, useRef } from 'react';
2
- import { k as FormField, b as useAtlantisFormFieldName, f as FormFieldWrapper, l as formFieldStyles, m as FormFieldPostFix } from '../FormField-es.js';
2
+ import { F as FormField, i as useAtlantisFormFieldName, e as FormFieldWrapper, l as formFieldStyles, m as FormFieldPostFix } from '../FormField-es.js';
3
3
  import 'classnames';
4
4
  import '../tslib.es6-es.js';
5
5
  import 'react-hook-form';
@@ -330,6 +330,11 @@ function fromFileEntry(entry) {
330
330
  var _default = function (file, acceptedFiles) {
331
331
  if (file && acceptedFiles) {
332
332
  var acceptedFilesArray = Array.isArray(acceptedFiles) ? acceptedFiles : acceptedFiles.split(',');
333
+
334
+ if (acceptedFilesArray.length === 0) {
335
+ return true;
336
+ }
337
+
333
338
  var fileName = file.name || '';
334
339
  var mimeType = (file.type || '').toLowerCase();
335
340
  var baseMimeType = mimeType.replace(/\/.*$/, '');
@@ -352,7 +357,7 @@ var _default = function (file, acceptedFiles) {
352
357
 
353
358
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
354
359
 
355
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
360
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
356
361
 
357
362
  function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
358
363
 
@@ -570,7 +575,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
570
575
 
571
576
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
572
577
 
573
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
578
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
574
579
 
575
580
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
576
581
 
@@ -1440,7 +1445,7 @@ function reducer(state, action) {
1440
1445
 
1441
1446
  function noop() {}
1442
1447
 
1443
- var styles = {"dropZoneBase":"fSDkYM-382I-","dropZone":"yT6m1v71VK8-","active":"fCb0O1wAjR0-","error":"Cm5wIem0XQI-","validationErrors":"wyjYhAlF1qA-","dropzoneContent":"sAxF04DcAi4-","spinning":"SUZshYRxxl4-"};
1448
+ var styles = {"dropZoneBase":"fSDkYM-382I-","dropZone":"yT6m1v71VK8-","active":"fCb0O1wAjR0-","error":"Cm5wIem0XQI-","validationErrors":"wyjYhAlF1qA-","dropzoneContent":"sAxF04DcAi4-"};
1444
1449
 
1445
1450
  var FileTypes;
1446
1451
  (function (FileTypes) {
@@ -328,6 +328,11 @@ function fromFileEntry(entry) {
328
328
  var _default = function (file, acceptedFiles) {
329
329
  if (file && acceptedFiles) {
330
330
  var acceptedFilesArray = Array.isArray(acceptedFiles) ? acceptedFiles : acceptedFiles.split(',');
331
+
332
+ if (acceptedFilesArray.length === 0) {
333
+ return true;
334
+ }
335
+
331
336
  var fileName = file.name || '';
332
337
  var mimeType = (file.type || '').toLowerCase();
333
338
  var baseMimeType = mimeType.replace(/\/.*$/, '');
@@ -350,7 +355,7 @@ var _default = function (file, acceptedFiles) {
350
355
 
351
356
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
352
357
 
353
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
358
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
354
359
 
355
360
  function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
356
361
 
@@ -568,7 +573,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
568
573
 
569
574
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
570
575
 
571
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
576
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
572
577
 
573
578
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
574
579
 
@@ -1438,7 +1443,7 @@ function reducer(state, action) {
1438
1443
 
1439
1444
  function noop() {}
1440
1445
 
1441
- var styles = {"dropZoneBase":"fSDkYM-382I-","dropZone":"yT6m1v71VK8-","active":"fCb0O1wAjR0-","error":"Cm5wIem0XQI-","validationErrors":"wyjYhAlF1qA-","dropzoneContent":"sAxF04DcAi4-","spinning":"SUZshYRxxl4-"};
1446
+ var styles = {"dropZoneBase":"fSDkYM-382I-","dropZone":"yT6m1v71VK8-","active":"fCb0O1wAjR0-","error":"Cm5wIem0XQI-","validationErrors":"wyjYhAlF1qA-","dropzoneContent":"sAxF04DcAi4-"};
1442
1447
 
1443
1448
  var FileTypes;
1444
1449
  (function (FileTypes) {
@@ -3,6 +3,7 @@
3
3
  var React = require('react');
4
4
  var tslib_es6 = require('../tslib.es6-cjs.js');
5
5
  var Text = require('../Text-cjs2.js');
6
+ var ReactDOM = require('react-dom');
6
7
  var classnames = require('classnames');
7
8
  var Icon = require('../Icon-cjs.js');
8
9
  var Text$1 = require('../Text-cjs.js');
@@ -44,8 +45,7 @@ function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
44
45
  form === null || form === void 0 ? void 0 : form.removeEventListener('reset', handleReset);
45
46
  };
46
47
  }, [
47
- ref,
48
- handleReset
48
+ ref
49
49
  ]);
50
50
  }
51
51
 
@@ -631,6 +631,7 @@ function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
631
631
  let updateState = (React.useCallback)(()=>setFocusVisible(state.current.isFocused && state.current.isFocusVisible), []);
632
632
  let onFocusChange = (React.useCallback)((isFocused)=>{
633
633
  state.current.isFocused = isFocused;
634
+ state.current.isFocusVisible = (Text.$507fabe10e71c6fb$export$b9b3dfddab17db27)();
634
635
  setFocused(isFocused);
635
636
  updateState();
636
637
  }, [
@@ -639,7 +640,11 @@ function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
639
640
  (Text.$507fabe10e71c6fb$export$ec71b4b83ac08ec3)((isFocusVisible)=>{
640
641
  state.current.isFocusVisible = isFocusVisible;
641
642
  updateState();
642
- }, [], {
643
+ }, [
644
+ isTextInput,
645
+ isFocused
646
+ ], {
647
+ enabled: isFocused,
643
648
  isTextInput: isTextInput
644
649
  });
645
650
  let { focusProps: focusProps } = (Text.$a1ea59d68270f0dd$export$f8168d8dd8fd66e6)({
@@ -964,7 +969,7 @@ function $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {
964
969
  // This is best-effort. There may be false positives, e.g. setTimeout.
965
970
  form.reset = ()=>{
966
971
  // React uses MessageChannel for scheduling, so ignore 'message' events.
967
- isIgnoredReset.current = !window.event || window.event.type === 'message' && window.event.target instanceof MessagePort;
972
+ isIgnoredReset.current = !window.event || window.event.type === 'message' && (Text.$d4ee10de306f2510$export$e58f029f0fbfdb29)(window.event) instanceof MessagePort;
968
973
  reset === null || reset === void 0 ? void 0 : reset.call(form);
969
974
  isIgnoredReset.current = false;
970
975
  };
@@ -980,9 +985,6 @@ function $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {
980
985
  };
981
986
  }, [
982
987
  ref,
983
- onInvalid,
984
- onChange,
985
- onReset,
986
988
  validationBehavior
987
989
  ]);
988
990
  }
@@ -1015,8 +1017,9 @@ function $e93e671b31057976$var$getNativeValidity(input) {
1015
1017
  }
1016
1018
  function $e93e671b31057976$var$getFirstInvalidInput(form) {
1017
1019
  for(let i = 0; i < form.elements.length; i++){
1020
+ var _element_validity;
1018
1021
  let element = form.elements[i];
1019
- if (!element.validity.valid) return element;
1022
+ if (((_element_validity = element.validity) === null || _element_validity === void 0 ? void 0 : _element_validity.valid) === false) return element;
1020
1023
  }
1021
1024
  return null;
1022
1025
  }
@@ -1063,25 +1066,6 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
1063
1066
  var _props_defaultValue;
1064
1067
  ($99facab73266f662$export$5add1d006293d136)(ref, (_props_defaultValue = props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : initialValue, setValue);
1065
1068
  ($e93e671b31057976$export$b8473d3665f3a75a)(props, validationState, ref);
1066
- (React.useEffect)(()=>{
1067
- // This works around a React/Chrome bug that prevents textarea elements from validating when controlled.
1068
- // We prevent React from updating defaultValue (i.e. children) of textarea when `value` changes,
1069
- // which causes Chrome to skip validation. Only updating `value` is ok in our case since our
1070
- // textareas are always controlled. React is planning on removing this synchronization in a
1071
- // future major version.
1072
- // https://github.com/facebook/react/issues/19474
1073
- // https://github.com/facebook/react/issues/11896
1074
- if (ref.current instanceof (Text.$431fbd86ca7dc216$export$f21a1ffae260145a)(ref.current).HTMLTextAreaElement) {
1075
- let input = ref.current;
1076
- Object.defineProperty(input, 'defaultValue', {
1077
- get: ()=>input.value,
1078
- set: ()=>{},
1079
- configurable: true
1080
- });
1081
- }
1082
- }, [
1083
- ref
1084
- ]);
1085
1069
  return {
1086
1070
  labelProps: labelProps,
1087
1071
  inputProps: (Text.$3ef42575df84b30b$export$9d1611c77c2fe928)(domProps, inputElementType === 'input' ? inputOnlyProps : undefined, {
@@ -1096,7 +1080,7 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
1096
1080
  'aria-haspopup': props['aria-haspopup'],
1097
1081
  'aria-controls': props['aria-controls'],
1098
1082
  value: value,
1099
- onChange: (e)=>setValue(e.target.value),
1083
+ onChange: (e)=>setValue((Text.$d4ee10de306f2510$export$e58f029f0fbfdb29)(e).value),
1100
1084
  autoComplete: props.autoComplete,
1101
1085
  autoCapitalize: props.autoCapitalize,
1102
1086
  maxLength: props.maxLength,
@@ -1206,11 +1190,10 @@ function $d841c8010a73d545$export$4f384c9210e583c3(props, state, inputRef) {
1206
1190
  input.removeEventListener('beforeinput', onBeforeInputFallback, false);
1207
1191
  };
1208
1192
  }, [
1209
- inputRef,
1210
- onBeforeInputFallback
1193
+ inputRef
1211
1194
  ]);
1212
1195
  let onBeforeInput = !$d841c8010a73d545$var$supportsNativeBeforeInputEvent() ? (e)=>{
1213
- let nextValue = e.target.value.slice(0, e.target.selectionStart) + e.data + e.target.value.slice(e.target.selectionEnd);
1196
+ let nextValue = (Text.$d4ee10de306f2510$export$e58f029f0fbfdb29)(e).value.slice(0, (Text.$d4ee10de306f2510$export$e58f029f0fbfdb29)(e).selectionStart) + e.data + (Text.$d4ee10de306f2510$export$e58f029f0fbfdb29)(e).value.slice((Text.$d4ee10de306f2510$export$e58f029f0fbfdb29)(e).selectionEnd);
1214
1197
  if (!state.validate(nextValue)) e.preventDefault();
1215
1198
  } : null;
1216
1199
  let { labelProps: labelProps, inputProps: textFieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, ...validation } = ($2d73ec29415bd339$export$712718f7aec83d5)(props, inputRef);
@@ -1328,22 +1311,25 @@ function $de67e98908f0c6ee$export$7f629e9dc1ecf37c(props) {
1328
1311
  numberParser,
1329
1312
  inputValue
1330
1313
  ]);
1331
- let commit = ()=>{
1314
+ let commit = (overrideValue)=>{
1315
+ let newInputValue = overrideValue === undefined ? inputValue : overrideValue;
1316
+ let newParsedValue = parsedValue;
1317
+ if (overrideValue !== undefined) newParsedValue = numberParser.parse(newInputValue);
1332
1318
  // Set to empty state if input value is empty
1333
- if (!inputValue.length) {
1319
+ if (!newInputValue.length) {
1334
1320
  setNumberValue(NaN);
1335
1321
  setInputValue(value === undefined ? '' : format(numberValue));
1336
1322
  return;
1337
1323
  }
1338
1324
  // if it failed to parse, then reset input to formatted version of current number
1339
- if (isNaN(parsedValue)) {
1325
+ if (isNaN(newParsedValue)) {
1340
1326
  setInputValue(format(numberValue));
1341
1327
  return;
1342
1328
  }
1343
1329
  // Clamp to min and max, round to the nearest step, and round to specified number of digits
1344
1330
  let clampedValue;
1345
- if (step === undefined || isNaN(step)) clampedValue = (Text.$9446cca9a3875146$export$7d15b64cf5a3a4c4)(parsedValue, minValue, maxValue);
1346
- else clampedValue = (Text.$9446cca9a3875146$export$cb6e0bb50bc19463)(parsedValue, minValue, maxValue, step);
1331
+ if (step === undefined || isNaN(step)) clampedValue = (Text.$9446cca9a3875146$export$7d15b64cf5a3a4c4)(newParsedValue, minValue, maxValue);
1332
+ else clampedValue = (Text.$9446cca9a3875146$export$cb6e0bb50bc19463)(newParsedValue, minValue, maxValue, step);
1347
1333
  clampedValue = numberParser.parse(format(clampedValue));
1348
1334
  setNumberValue(clampedValue);
1349
1335
  // in a controlled state, the numberValue won't change, so we won't go back to our old input without help
@@ -1709,13 +1695,21 @@ function $parcel$interopDefault$1(a) {
1709
1695
 
1710
1696
 
1711
1697
 
1698
+ const $d2e8511e6f209edf$var$noop = ()=>{};
1712
1699
  function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
1713
1700
  const _async = (React.useRef)(undefined);
1714
1701
  let { value: value, textValue: textValue, minValue: minValue, maxValue: maxValue, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, onIncrement: onIncrement, onIncrementPage: onIncrementPage, onDecrement: onDecrement, onDecrementPage: onDecrementPage, onDecrementToMin: onDecrementToMin, onIncrementToMax: onIncrementToMax } = props;
1715
1702
  const stringFormatter = (Text.$fca6afa0e843324b$export$f12b703ca79dfbb1)((($parcel$interopDefault$1($a99895ee3dc79e61$exports))), '@react-aria/spinbutton');
1716
- const clearAsync = ()=>clearTimeout(_async.current);
1703
+ let isSpinning = (React.useRef)(false);
1704
+ const clearAsync = (React.useCallback)(()=>{
1705
+ clearTimeout(_async.current);
1706
+ isSpinning.current = false;
1707
+ }, []);
1708
+ const clearAsyncEvent = (Text.$8ae05eaa5c114e9c$export$7f54fc3180508a52)(()=>{
1709
+ clearAsync();
1710
+ });
1717
1711
  (React.useEffect)(()=>{
1718
- return ()=>clearAsync();
1712
+ return ()=>clearAsyncEvent();
1719
1713
  }, []);
1720
1714
  let onKeyDown = (e)=>{
1721
1715
  if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || isReadOnly || e.nativeEvent.isComposing) return;
@@ -1782,26 +1776,61 @@ function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
1782
1776
  }, [
1783
1777
  ariaTextValue
1784
1778
  ]);
1785
- const onIncrementPressStart = (Text.$8ae05eaa5c114e9c$export$7f54fc3180508a52)((initialStepDelay)=>{
1779
+ // For touch users, if they move their finger like they're scrolling, we don't want to trigger a spin.
1780
+ let onPointerCancel = (React.useCallback)(()=>{
1786
1781
  clearAsync();
1787
- onIncrement === null || onIncrement === void 0 ? void 0 : onIncrement();
1782
+ }, [
1783
+ clearAsync
1784
+ ]);
1785
+ const onIncrementEvent = (Text.$8ae05eaa5c114e9c$export$7f54fc3180508a52)(onIncrement !== null && onIncrement !== void 0 ? onIncrement : $d2e8511e6f209edf$var$noop);
1786
+ const onDecrementEvent = (Text.$8ae05eaa5c114e9c$export$7f54fc3180508a52)(onDecrement !== null && onDecrement !== void 0 ? onDecrement : $d2e8511e6f209edf$var$noop);
1787
+ const stepUpEvent = (Text.$8ae05eaa5c114e9c$export$7f54fc3180508a52)(()=>{
1788
+ if (maxValue === undefined || isNaN(maxValue) || value === undefined || isNaN(value) || value < maxValue) {
1789
+ onIncrementEvent();
1790
+ onIncrementPressStartEvent(60);
1791
+ }
1792
+ });
1793
+ const onIncrementPressStartEvent = (Text.$8ae05eaa5c114e9c$export$7f54fc3180508a52)((initialStepDelay)=>{
1794
+ clearAsyncEvent();
1795
+ isSpinning.current = true;
1788
1796
  // Start spinning after initial delay
1789
- _async.current = window.setTimeout(()=>{
1790
- if (maxValue === undefined || isNaN(maxValue) || value === undefined || isNaN(value) || value < maxValue) onIncrementPressStart(60);
1791
- }, initialStepDelay);
1797
+ _async.current = window.setTimeout(stepUpEvent, initialStepDelay);
1792
1798
  });
1793
- const onDecrementPressStart = (Text.$8ae05eaa5c114e9c$export$7f54fc3180508a52)((initialStepDelay)=>{
1794
- clearAsync();
1795
- onDecrement === null || onDecrement === void 0 ? void 0 : onDecrement();
1799
+ const stepDownEvent = (Text.$8ae05eaa5c114e9c$export$7f54fc3180508a52)(()=>{
1800
+ if (minValue === undefined || isNaN(minValue) || value === undefined || isNaN(value) || value > minValue) {
1801
+ onDecrementEvent();
1802
+ onDecrementPressStartEvent(60);
1803
+ }
1804
+ });
1805
+ const onDecrementPressStartEvent = (Text.$8ae05eaa5c114e9c$export$7f54fc3180508a52)((initialStepDelay)=>{
1806
+ clearAsyncEvent();
1807
+ isSpinning.current = true;
1796
1808
  // Start spinning after initial delay
1797
- _async.current = window.setTimeout(()=>{
1798
- if (minValue === undefined || isNaN(minValue) || value === undefined || isNaN(value) || value > minValue) onDecrementPressStart(60);
1799
- }, initialStepDelay);
1809
+ _async.current = window.setTimeout(stepDownEvent, initialStepDelay);
1800
1810
  });
1801
1811
  let cancelContextMenu = (e)=>{
1802
1812
  e.preventDefault();
1803
1813
  };
1804
1814
  let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = (Text.$03deb23ff14920c4$export$4eaf04e54aa8eed6)();
1815
+ // Tracks in touch if the press end event was preceded by a press up.
1816
+ // If it wasn't, then we know the finger left the button while still in contact with the screen.
1817
+ // This means that the user is trying to scroll or interact in some way that shouldn't trigger
1818
+ // an increment or decrement.
1819
+ let isUp = (React.useRef)(false);
1820
+ let [isIncrementPressed, setIsIncrementPressed] = (React.useState)(null);
1821
+ (React.useEffect)(()=>{
1822
+ if (isIncrementPressed === 'touch') onIncrementPressStartEvent(600);
1823
+ else if (isIncrementPressed) onIncrementPressStartEvent(400);
1824
+ }, [
1825
+ isIncrementPressed
1826
+ ]);
1827
+ let [isDecrementPressed, setIsDecrementPressed] = (React.useState)(null);
1828
+ (React.useEffect)(()=>{
1829
+ if (isDecrementPressed === 'touch') onDecrementPressStartEvent(600);
1830
+ else if (isDecrementPressed) onDecrementPressStartEvent(400);
1831
+ }, [
1832
+ isDecrementPressed
1833
+ ]);
1805
1834
  return {
1806
1835
  spinButtonProps: {
1807
1836
  role: 'spinbutton',
@@ -1817,25 +1846,68 @@ function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
1817
1846
  onBlur: onBlur
1818
1847
  },
1819
1848
  incrementButtonProps: {
1820
- onPressStart: ()=>{
1821
- onIncrementPressStart(400);
1849
+ onPressStart: (e)=>{
1850
+ clearAsync();
1851
+ if (e.pointerType !== 'touch') {
1852
+ onIncrement === null || onIncrement === void 0 ? void 0 : onIncrement();
1853
+ setIsIncrementPressed('mouse');
1854
+ } else {
1855
+ addGlobalListener(window, 'pointercancel', onPointerCancel, {
1856
+ capture: true
1857
+ });
1858
+ isUp.current = false;
1859
+ // For touch users, don't trigger a decrement on press start, we'll wait for the press end to trigger it if
1860
+ // the control isn't spinning.
1861
+ setIsIncrementPressed('touch');
1862
+ }
1822
1863
  addGlobalListener(window, 'contextmenu', cancelContextMenu);
1823
1864
  },
1824
- onPressEnd: ()=>{
1865
+ onPressUp: (e)=>{
1825
1866
  clearAsync();
1867
+ if (e.pointerType === 'touch') isUp.current = true;
1826
1868
  removeAllGlobalListeners();
1869
+ setIsIncrementPressed(null);
1870
+ },
1871
+ onPressEnd: (e)=>{
1872
+ clearAsync();
1873
+ if (e.pointerType === 'touch') {
1874
+ if (!isSpinning.current && isUp.current) onIncrement === null || onIncrement === void 0 ? void 0 : onIncrement();
1875
+ }
1876
+ isUp.current = false;
1877
+ setIsIncrementPressed(null);
1827
1878
  },
1828
1879
  onFocus: onFocus,
1829
1880
  onBlur: onBlur
1830
1881
  },
1831
1882
  decrementButtonProps: {
1832
- onPressStart: ()=>{
1833
- onDecrementPressStart(400);
1834
- addGlobalListener(window, 'contextmenu', cancelContextMenu);
1883
+ onPressStart: (e)=>{
1884
+ clearAsync();
1885
+ if (e.pointerType !== 'touch') {
1886
+ onDecrement === null || onDecrement === void 0 ? void 0 : onDecrement();
1887
+ setIsDecrementPressed('mouse');
1888
+ } else {
1889
+ addGlobalListener(window, 'pointercancel', onPointerCancel, {
1890
+ capture: true
1891
+ });
1892
+ isUp.current = false;
1893
+ // For touch users, don't trigger a decrement on press start, we'll wait for the press end to trigger it if
1894
+ // the control isn't spinning.
1895
+ setIsDecrementPressed('touch');
1896
+ }
1835
1897
  },
1836
- onPressEnd: ()=>{
1898
+ onPressUp: (e)=>{
1837
1899
  clearAsync();
1900
+ if (e.pointerType === 'touch') isUp.current = true;
1838
1901
  removeAllGlobalListeners();
1902
+ setIsDecrementPressed(null);
1903
+ },
1904
+ onPressEnd: (e)=>{
1905
+ clearAsync();
1906
+ if (e.pointerType === 'touch') {
1907
+ if (!isSpinning.current && isUp.current) onDecrement === null || onDecrement === void 0 ? void 0 : onDecrement();
1908
+ }
1909
+ isUp.current = false;
1910
+ setIsDecrementPressed(null);
1839
1911
  },
1840
1912
  onFocus: onFocus,
1841
1913
  onBlur: onBlur
@@ -2174,15 +2246,30 @@ function $parcel$interopDefault(a) {
2174
2246
 
2175
2247
 
2176
2248
 
2249
+
2250
+
2177
2251
  function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
2178
2252
  let { id: id, decrementAriaLabel: decrementAriaLabel, incrementAriaLabel: incrementAriaLabel, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, minValue: minValue, maxValue: maxValue, autoFocus: autoFocus, label: label, formatOptions: formatOptions, onBlur: onBlur = ()=>{}, onFocus: onFocus, onFocusChange: onFocusChange, onKeyDown: onKeyDown, onKeyUp: onKeyUp, description: description, errorMessage: errorMessage, isWheelDisabled: isWheelDisabled, ...otherProps } = props;
2179
2253
  let { increment: increment, incrementToMax: incrementToMax, decrement: decrement, decrementToMin: decrementToMin, numberValue: numberValue, inputValue: inputValue, commit: commit, commitValidation: commitValidation } = state;
2180
2254
  const stringFormatter = (Text.$fca6afa0e843324b$export$f12b703ca79dfbb1)((($parcel$interopDefault($280a227d7cb94b92$exports))), '@react-aria/numberfield');
2255
+ let commitAndAnnounce = (React.useCallback)(()=>{
2256
+ var _inputRef_current, _inputRef_current1, _inputRef_current2;
2257
+ var _inputRef_current_value;
2258
+ let oldValue = (_inputRef_current_value = (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.value) !== null && _inputRef_current_value !== void 0 ? _inputRef_current_value : '';
2259
+ // Set input value to normalized valid value
2260
+ (ReactDOM.flushSync)(()=>{
2261
+ commit();
2262
+ });
2263
+ var _inputRef_current_value1;
2264
+ if (((_inputRef_current1 = inputRef.current) === null || _inputRef_current1 === void 0 ? void 0 : _inputRef_current1.value) !== oldValue) ($319e236875307eab$export$a9b970dcc4ae71a9)((_inputRef_current_value1 = (_inputRef_current2 = inputRef.current) === null || _inputRef_current2 === void 0 ? void 0 : _inputRef_current2.value) !== null && _inputRef_current_value1 !== void 0 ? _inputRef_current_value1 : '', 'assertive');
2265
+ }, [
2266
+ commit,
2267
+ inputRef
2268
+ ]);
2181
2269
  let inputId = (Text.$bdb11010cef70236$export$f680877a34711e37)(id);
2182
2270
  let { focusProps: focusProps } = (Text.$a1ea59d68270f0dd$export$f8168d8dd8fd66e6)({
2183
2271
  onBlur () {
2184
- // Set input value to normalized valid value
2185
- commit();
2272
+ commitAndAnnounce();
2186
2273
  }
2187
2274
  });
2188
2275
  let numberFormatter = ($a916eb452884faea$export$b7a616150fdb9f44)(formatOptions);
@@ -2258,6 +2345,24 @@ function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
2258
2345
  let onChange = (value)=>{
2259
2346
  if (state.validate(value)) state.setInputValue(value);
2260
2347
  };
2348
+ let onPaste = (e)=>{
2349
+ var _props_onPaste;
2350
+ (_props_onPaste = props.onPaste) === null || _props_onPaste === void 0 ? void 0 : _props_onPaste.call(props, e);
2351
+ let inputElement = (Text.$d4ee10de306f2510$export$e58f029f0fbfdb29)(e);
2352
+ var _inputElement_selectionEnd, _inputElement_selectionStart;
2353
+ // we can only handle the case where the paste takes over the entire input, otherwise things get very complicated
2354
+ // trying to calculate the new string based on what the paste is replacing and where in the source string it is
2355
+ if (inputElement && ((_inputElement_selectionEnd = inputElement.selectionEnd) !== null && _inputElement_selectionEnd !== void 0 ? _inputElement_selectionEnd : -1) - ((_inputElement_selectionStart = inputElement.selectionStart) !== null && _inputElement_selectionStart !== void 0 ? _inputElement_selectionStart : 0) === inputElement.value.length) {
2356
+ var _e_clipboardData_getData, _e_clipboardData_getData1, _e_clipboardData;
2357
+ e.preventDefault();
2358
+ var _e_clipboardData_getData_trim;
2359
+ // commit so that the user gets to see what it formats to immediately
2360
+ // paste happens before inputRef's value is updated, so have to prevent the default and do it ourselves
2361
+ // spin button will then handle announcing the new value, this should work with controlled state as well
2362
+ // because the announcement is done as a result of the new rendered input value if there is one
2363
+ commit((_e_clipboardData_getData_trim = (_e_clipboardData = e.clipboardData) === null || _e_clipboardData === void 0 ? void 0 : (_e_clipboardData_getData1 = _e_clipboardData.getData) === null || _e_clipboardData_getData1 === void 0 ? void 0 : (_e_clipboardData_getData = _e_clipboardData_getData1.call(_e_clipboardData, 'text/plain')) === null || _e_clipboardData_getData === void 0 ? void 0 : _e_clipboardData_getData.trim()) !== null && _e_clipboardData_getData_trim !== void 0 ? _e_clipboardData_getData_trim : '');
2364
+ }
2365
+ };
2261
2366
  let domProps = (Text.$65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props);
2262
2367
  let onKeyDownEnter = (React.useCallback)((e)=>{
2263
2368
  if (e.nativeEvent.isComposing) return;
@@ -2300,6 +2405,7 @@ function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
2300
2405
  onKeyDown
2301
2406
  ]),
2302
2407
  onKeyUp: onKeyUp,
2408
+ onPaste: onPaste,
2303
2409
  description: description,
2304
2410
  errorMessage: errorMessage
2305
2411
  }, state, inputRef);
@@ -2321,7 +2427,7 @@ function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
2321
2427
  var _inputRef_current;
2322
2428
  // If focus is already on the input, keep it there so we don't hide the
2323
2429
  // software keyboard when tapping the increment/decrement buttons.
2324
- if (document.activeElement === inputRef.current) return;
2430
+ if ((Text.$d4ee10de306f2510$export$cd4e5573fbe2b576)() === inputRef.current) return;
2325
2431
  // Otherwise, when using a mouse, move focus to the input.
2326
2432
  // On touch, or with a screen reader, focus the button so that the software
2327
2433
  // keyboard does not appear and the screen reader cursor is not moved off the button.
@@ -2404,7 +2510,8 @@ function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
2404
2510
  const $01b77f81d0f07f68$export$75b6ee27786ba447 = /*#__PURE__*/ (React.createContext)({});
2405
2511
  const $01b77f81d0f07f68$export$b04be29aa201d4f5 = /*#__PURE__*/ (Text.$f39a9eba43920ace$export$86427a43e3e48ebb)(function Label(props, ref) {
2406
2512
  [props, ref] = (Text.$64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $01b77f81d0f07f68$export$75b6ee27786ba447);
2407
- let { elementType: ElementType = 'label', ...labelProps } = props;
2513
+ let { elementType: elementType = 'label', ...labelProps } = props;
2514
+ let ElementType = (Text.$64fa3d84918910a7$export$df3a06d6289f983e)[elementType];
2408
2515
  // @ts-ignore
2409
2516
  return /*#__PURE__*/ (React).createElement(ElementType, {
2410
2517
  className: "react-aria-Label",
@@ -2506,7 +2613,9 @@ const $d3e0e05bdfcf66bd$export$c24727297075ec6a = /*#__PURE__*/ (React.createCon
2506
2613
  const $a049562f99e7db0e$export$f9c6924e160136d1 = /*#__PURE__*/ (React.createContext)({});
2507
2614
  const $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 = /*#__PURE__*/ (React.forwardRef)(function Group(props, ref) {
2508
2615
  [props, ref] = (Text.$64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $a049562f99e7db0e$export$f9c6924e160136d1);
2509
- let { isDisabled: isDisabled, isInvalid: isInvalid, onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;
2616
+ let { isDisabled: isDisabled, isInvalid: isInvalid, isReadOnly: isReadOnly, onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;
2617
+ isDisabled !== null && isDisabled !== void 0 ? isDisabled : isDisabled = !!props['aria-disabled'] && props['aria-disabled'] !== 'false';
2618
+ isInvalid !== null && isInvalid !== void 0 ? isInvalid : isInvalid = !!props['aria-invalid'] && props['aria-invalid'] !== 'false';
2510
2619
  let { hoverProps: hoverProps, isHovered: isHovered } = (Text.$6179b936705e76d3$export$ae780daf29e6d456)({
2511
2620
  onHoverStart: onHoverStart,
2512
2621
  onHoverChange: onHoverChange,
@@ -2516,8 +2625,6 @@ const $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 = /*#__PURE__*/ (React.forwardRe
2516
2625
  let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = ($f7dceffc5ad7768b$export$4e328f61c538687f)({
2517
2626
  within: true
2518
2627
  });
2519
- isDisabled !== null && isDisabled !== void 0 ? isDisabled : isDisabled = !!props['aria-disabled'] && props['aria-disabled'] !== 'false';
2520
- isInvalid !== null && isInvalid !== void 0 ? isInvalid : isInvalid = !!props['aria-invalid'] && props['aria-invalid'] !== 'false';
2521
2628
  let renderProps = (Text.$64fa3d84918910a7$export$4d86445c2cf5e3)({
2522
2629
  ...props,
2523
2630
  values: {
@@ -2530,7 +2637,7 @@ const $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 = /*#__PURE__*/ (React.forwardRe
2530
2637
  defaultClassName: 'react-aria-Group'
2531
2638
  });
2532
2639
  var _props_role, _props_slot;
2533
- return /*#__PURE__*/ (React).createElement("div", {
2640
+ return /*#__PURE__*/ (React).createElement((Text.$64fa3d84918910a7$export$df3a06d6289f983e).div, {
2534
2641
  ...(Text.$3ef42575df84b30b$export$9d1611c77c2fe928)(otherProps, focusProps, hoverProps),
2535
2642
  ...renderProps,
2536
2643
  ref: ref,
@@ -2540,7 +2647,8 @@ const $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 = /*#__PURE__*/ (React.forwardRe
2540
2647
  "data-hovered": isHovered || undefined,
2541
2648
  "data-focus-visible": isFocusVisible || undefined,
2542
2649
  "data-disabled": isDisabled || undefined,
2543
- "data-invalid": isInvalid || undefined
2650
+ "data-invalid": isInvalid || undefined,
2651
+ "data-readonly": isReadOnly || undefined
2544
2652
  }, renderProps.children);
2545
2653
  });
2546
2654
 
@@ -2566,7 +2674,10 @@ let $3985021b0ad6602f$var$filterHoverProps = (props)=>{
2566
2674
  };
2567
2675
  const $3985021b0ad6602f$export$f5b8910cec6cf069 = /*#__PURE__*/ (Text.$f39a9eba43920ace$export$86427a43e3e48ebb)(function Input(props, ref) {
2568
2676
  [props, ref] = (Text.$64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $3985021b0ad6602f$export$37fb8590cf2c088c);
2569
- let { hoverProps: hoverProps, isHovered: isHovered } = (Text.$6179b936705e76d3$export$ae780daf29e6d456)(props);
2677
+ let { hoverProps: hoverProps, isHovered: isHovered } = (Text.$6179b936705e76d3$export$ae780daf29e6d456)({
2678
+ ...props,
2679
+ isDisabled: props.disabled
2680
+ });
2570
2681
  let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = ($f7dceffc5ad7768b$export$4e328f61c538687f)({
2571
2682
  isTextInput: true,
2572
2683
  autoFocus: props.autoFocus
@@ -2583,7 +2694,7 @@ const $3985021b0ad6602f$export$f5b8910cec6cf069 = /*#__PURE__*/ (Text.$f39a9eba4
2583
2694
  },
2584
2695
  defaultClassName: 'react-aria-Input'
2585
2696
  });
2586
- return /*#__PURE__*/ (React).createElement("input", {
2697
+ return /*#__PURE__*/ (React).createElement((Text.$64fa3d84918910a7$export$df3a06d6289f983e).input, {
2587
2698
  ...(Text.$3ef42575df84b30b$export$9d1611c77c2fe928)($3985021b0ad6602f$var$filterHoverProps(props), focusProps, hoverProps),
2588
2699
  ...renderProps,
2589
2700
  ref: ref,
@@ -2698,7 +2809,7 @@ const $b91743d66a0ed188$export$63c5fa0b2fdccd2e = /*#__PURE__*/ (React.forwardRe
2698
2809
  validation
2699
2810
  ]
2700
2811
  ]
2701
- }, /*#__PURE__*/ (React).createElement("div", {
2812
+ }, /*#__PURE__*/ (React).createElement((Text.$64fa3d84918910a7$export$df3a06d6289f983e).div, {
2702
2813
  ...DOMProps,
2703
2814
  ...renderProps,
2704
2815
  ref: ref,
@@ -2710,7 +2821,8 @@ const $b91743d66a0ed188$export$63c5fa0b2fdccd2e = /*#__PURE__*/ (React.forwardRe
2710
2821
  type: "hidden",
2711
2822
  name: props.name,
2712
2823
  form: props.form,
2713
- value: isNaN(state.numberValue) ? '' : state.numberValue
2824
+ value: isNaN(state.numberValue) ? '' : state.numberValue,
2825
+ disabled: props.isDisabled || undefined
2714
2826
  }));
2715
2827
  });
2716
2828