@jobber/components 6.123.1 → 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 (230) 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 +1 -1
  10. package/dist/BottomSheet-es.js +1 -1
  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/showToast-cjs.js +1 -1
  224. package/dist/showToast-es.js +1 -1
  225. package/dist/styles.css +56 -124
  226. package/dist/unstyledPrimitives/index.mjs +3 -3
  227. package/dist/useScrollToActive-cjs.js +1 -1
  228. package/dist/useScrollToActive-es.js +8 -8
  229. package/package.json +32 -15
  230. package/rollup.config.mjs +4 -1
@@ -1,11 +1,12 @@
1
- import React__default, { useEffect, useMemo, useCallback, useRef, useState, createContext, useContext, forwardRef, createRef, useImperativeHandle } from 'react';
1
+ import React__default, { useEffect, useMemo, useCallback, useRef, useState, useContext, createContext, forwardRef, createRef, useImperativeHandle } from 'react';
2
2
  import { _ as __rest } from '../tslib.es6-es.js';
3
- import { $ as $8ae05eaa5c114e9c$export$7f54fc3180508a52, a as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, b as $e9faafb641e167db$export$90fc3a17d93f704c, c as $507fabe10e71c6fb$export$b9b3dfddab17db27, d as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, e as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, f as $9ab94262bd0047c7$export$420e68273165f4ec, g as $bdb11010cef70236$export$f680877a34711e37, h as $313b98861ee5dd6c$export$d6875122194c7b44, i as $bdb11010cef70236$export$b4cc09c592e8fdb8, j as $3ef42575df84b30b$export$9d1611c77c2fe928, k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, l as $507fabe10e71c6fb$export$8397ddfc504fdb9a, m as $458b0a5536c1a7cf$export$40bfa8c7b0832715, n as $f645667febf57a63$export$4c014de7c8940b4c, o as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, p as $431fbd86ca7dc216$export$f21a1ffae260145a, q as $9446cca9a3875146$export$cb6e0bb50bc19463, r as $9446cca9a3875146$export$7d15b64cf5a3a4c4, s as $fca6afa0e843324b$export$f12b703ca79dfbb1, t as $03deb23ff14920c4$export$4eaf04e54aa8eed6, u as $c87311424ea30a05$export$186c6964ca17d99, v as $c87311424ea30a05$export$a11b0059900ceec8, w as $ff5963eb1fccf552$export$e08e3b67e392101e, x as $c87311424ea30a05$export$fedb369cb70207f1, y as $f39a9eba43920ace$export$86427a43e3e48ebb, z as $64fa3d84918910a7$export$29f1550f4b0d4415, A as $64fa3d84918910a7$export$4d86445c2cf5e3, B as $514c0188e459b4c0$export$5f1af8db9871e1d6, C as $6179b936705e76d3$export$ae780daf29e6d456, D as $64fa3d84918910a7$export$fabf2dc03a41866e, E as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, F as $64fa3d84918910a7$export$ef03459518577ad4, G as $64fa3d84918910a7$export$2881499e37b75b9a, H as $514c0188e459b4c0$export$9afb8bc826b033ea } from '../Text-es2.js';
3
+ import { $ as $8ae05eaa5c114e9c$export$7f54fc3180508a52, a as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, b as $e9faafb641e167db$export$90fc3a17d93f704c, c as $507fabe10e71c6fb$export$b9b3dfddab17db27, d as $507fabe10e71c6fb$export$ec71b4b83ac08ec3, e as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, f as $9ab94262bd0047c7$export$420e68273165f4ec, g as $bdb11010cef70236$export$f680877a34711e37, h as $313b98861ee5dd6c$export$d6875122194c7b44, i as $bdb11010cef70236$export$b4cc09c592e8fdb8, j as $3ef42575df84b30b$export$9d1611c77c2fe928, k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, l as $507fabe10e71c6fb$export$8397ddfc504fdb9a, m as $d4ee10de306f2510$export$e58f029f0fbfdb29, n as $458b0a5536c1a7cf$export$40bfa8c7b0832715, o as $f645667febf57a63$export$4c014de7c8940b4c, p as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, q as $9446cca9a3875146$export$cb6e0bb50bc19463, r as $9446cca9a3875146$export$7d15b64cf5a3a4c4, s as $fca6afa0e843324b$export$f12b703ca79dfbb1, t as $03deb23ff14920c4$export$4eaf04e54aa8eed6, u as $c87311424ea30a05$export$186c6964ca17d99, v as $c87311424ea30a05$export$a11b0059900ceec8, w as $ff5963eb1fccf552$export$e08e3b67e392101e, x as $c87311424ea30a05$export$fedb369cb70207f1, y as $d4ee10de306f2510$export$cd4e5573fbe2b576, z as $f39a9eba43920ace$export$86427a43e3e48ebb, A as $64fa3d84918910a7$export$29f1550f4b0d4415, B as $64fa3d84918910a7$export$df3a06d6289f983e, C as $64fa3d84918910a7$export$4d86445c2cf5e3, D as $514c0188e459b4c0$export$5f1af8db9871e1d6, E as $6179b936705e76d3$export$ae780daf29e6d456, F as $64fa3d84918910a7$export$fabf2dc03a41866e, G as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, H as $64fa3d84918910a7$export$ef03459518577ad4, I as $64fa3d84918910a7$export$2881499e37b75b9a, J as $514c0188e459b4c0$export$9afb8bc826b033ea } from '../Text-es2.js';
4
+ import { flushSync } from 'react-dom';
4
5
  import classnames from 'classnames';
5
6
  import { I as Icon } from '../Icon-es.js';
6
7
  import { T as Text } from '../Text-es.js';
7
8
  import { f as filterDataAttributes } from '../filterDataAttributes-es.js';
8
- import { k as FormField } from '../FormField-es.js';
9
+ import { F as FormField } from '../FormField-es.js';
9
10
  import 'react-hook-form';
10
11
  import '@jobber/hooks';
11
12
  import 'framer-motion';
@@ -42,8 +43,7 @@ function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
42
43
  form === null || form === void 0 ? void 0 : form.removeEventListener('reset', handleReset);
43
44
  };
44
45
  }, [
45
- ref,
46
- handleReset
46
+ ref
47
47
  ]);
48
48
  }
49
49
 
@@ -629,6 +629,7 @@ function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
629
629
  let updateState = (useCallback)(()=>setFocusVisible(state.current.isFocused && state.current.isFocusVisible), []);
630
630
  let onFocusChange = (useCallback)((isFocused)=>{
631
631
  state.current.isFocused = isFocused;
632
+ state.current.isFocusVisible = ($507fabe10e71c6fb$export$b9b3dfddab17db27)();
632
633
  setFocused(isFocused);
633
634
  updateState();
634
635
  }, [
@@ -637,7 +638,11 @@ function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
637
638
  ($507fabe10e71c6fb$export$ec71b4b83ac08ec3)((isFocusVisible)=>{
638
639
  state.current.isFocusVisible = isFocusVisible;
639
640
  updateState();
640
- }, [], {
641
+ }, [
642
+ isTextInput,
643
+ isFocused
644
+ ], {
645
+ enabled: isFocused,
641
646
  isTextInput: isTextInput
642
647
  });
643
648
  let { focusProps: focusProps } = ($a1ea59d68270f0dd$export$f8168d8dd8fd66e6)({
@@ -962,7 +967,7 @@ function $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {
962
967
  // This is best-effort. There may be false positives, e.g. setTimeout.
963
968
  form.reset = ()=>{
964
969
  // React uses MessageChannel for scheduling, so ignore 'message' events.
965
- isIgnoredReset.current = !window.event || window.event.type === 'message' && window.event.target instanceof MessagePort;
970
+ isIgnoredReset.current = !window.event || window.event.type === 'message' && ($d4ee10de306f2510$export$e58f029f0fbfdb29)(window.event) instanceof MessagePort;
966
971
  reset === null || reset === void 0 ? void 0 : reset.call(form);
967
972
  isIgnoredReset.current = false;
968
973
  };
@@ -978,9 +983,6 @@ function $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {
978
983
  };
979
984
  }, [
980
985
  ref,
981
- onInvalid,
982
- onChange,
983
- onReset,
984
986
  validationBehavior
985
987
  ]);
986
988
  }
@@ -1013,8 +1015,9 @@ function $e93e671b31057976$var$getNativeValidity(input) {
1013
1015
  }
1014
1016
  function $e93e671b31057976$var$getFirstInvalidInput(form) {
1015
1017
  for(let i = 0; i < form.elements.length; i++){
1018
+ var _element_validity;
1016
1019
  let element = form.elements[i];
1017
- if (!element.validity.valid) return element;
1020
+ if (((_element_validity = element.validity) === null || _element_validity === void 0 ? void 0 : _element_validity.valid) === false) return element;
1018
1021
  }
1019
1022
  return null;
1020
1023
  }
@@ -1061,25 +1064,6 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
1061
1064
  var _props_defaultValue;
1062
1065
  ($99facab73266f662$export$5add1d006293d136)(ref, (_props_defaultValue = props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : initialValue, setValue);
1063
1066
  ($e93e671b31057976$export$b8473d3665f3a75a)(props, validationState, ref);
1064
- (useEffect)(()=>{
1065
- // This works around a React/Chrome bug that prevents textarea elements from validating when controlled.
1066
- // We prevent React from updating defaultValue (i.e. children) of textarea when `value` changes,
1067
- // which causes Chrome to skip validation. Only updating `value` is ok in our case since our
1068
- // textareas are always controlled. React is planning on removing this synchronization in a
1069
- // future major version.
1070
- // https://github.com/facebook/react/issues/19474
1071
- // https://github.com/facebook/react/issues/11896
1072
- if (ref.current instanceof ($431fbd86ca7dc216$export$f21a1ffae260145a)(ref.current).HTMLTextAreaElement) {
1073
- let input = ref.current;
1074
- Object.defineProperty(input, 'defaultValue', {
1075
- get: ()=>input.value,
1076
- set: ()=>{},
1077
- configurable: true
1078
- });
1079
- }
1080
- }, [
1081
- ref
1082
- ]);
1083
1067
  return {
1084
1068
  labelProps: labelProps,
1085
1069
  inputProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(domProps, inputElementType === 'input' ? inputOnlyProps : undefined, {
@@ -1094,7 +1078,7 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
1094
1078
  'aria-haspopup': props['aria-haspopup'],
1095
1079
  'aria-controls': props['aria-controls'],
1096
1080
  value: value,
1097
- onChange: (e)=>setValue(e.target.value),
1081
+ onChange: (e)=>setValue(($d4ee10de306f2510$export$e58f029f0fbfdb29)(e).value),
1098
1082
  autoComplete: props.autoComplete,
1099
1083
  autoCapitalize: props.autoCapitalize,
1100
1084
  maxLength: props.maxLength,
@@ -1204,11 +1188,10 @@ function $d841c8010a73d545$export$4f384c9210e583c3(props, state, inputRef) {
1204
1188
  input.removeEventListener('beforeinput', onBeforeInputFallback, false);
1205
1189
  };
1206
1190
  }, [
1207
- inputRef,
1208
- onBeforeInputFallback
1191
+ inputRef
1209
1192
  ]);
1210
1193
  let onBeforeInput = !$d841c8010a73d545$var$supportsNativeBeforeInputEvent() ? (e)=>{
1211
- let nextValue = e.target.value.slice(0, e.target.selectionStart) + e.data + e.target.value.slice(e.target.selectionEnd);
1194
+ let nextValue = ($d4ee10de306f2510$export$e58f029f0fbfdb29)(e).value.slice(0, ($d4ee10de306f2510$export$e58f029f0fbfdb29)(e).selectionStart) + e.data + ($d4ee10de306f2510$export$e58f029f0fbfdb29)(e).value.slice(($d4ee10de306f2510$export$e58f029f0fbfdb29)(e).selectionEnd);
1212
1195
  if (!state.validate(nextValue)) e.preventDefault();
1213
1196
  } : null;
1214
1197
  let { labelProps: labelProps, inputProps: textFieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, ...validation } = ($2d73ec29415bd339$export$712718f7aec83d5)(props, inputRef);
@@ -1326,22 +1309,25 @@ function $de67e98908f0c6ee$export$7f629e9dc1ecf37c(props) {
1326
1309
  numberParser,
1327
1310
  inputValue
1328
1311
  ]);
1329
- let commit = ()=>{
1312
+ let commit = (overrideValue)=>{
1313
+ let newInputValue = overrideValue === undefined ? inputValue : overrideValue;
1314
+ let newParsedValue = parsedValue;
1315
+ if (overrideValue !== undefined) newParsedValue = numberParser.parse(newInputValue);
1330
1316
  // Set to empty state if input value is empty
1331
- if (!inputValue.length) {
1317
+ if (!newInputValue.length) {
1332
1318
  setNumberValue(NaN);
1333
1319
  setInputValue(value === undefined ? '' : format(numberValue));
1334
1320
  return;
1335
1321
  }
1336
1322
  // if it failed to parse, then reset input to formatted version of current number
1337
- if (isNaN(parsedValue)) {
1323
+ if (isNaN(newParsedValue)) {
1338
1324
  setInputValue(format(numberValue));
1339
1325
  return;
1340
1326
  }
1341
1327
  // Clamp to min and max, round to the nearest step, and round to specified number of digits
1342
1328
  let clampedValue;
1343
- if (step === undefined || isNaN(step)) clampedValue = ($9446cca9a3875146$export$7d15b64cf5a3a4c4)(parsedValue, minValue, maxValue);
1344
- else clampedValue = ($9446cca9a3875146$export$cb6e0bb50bc19463)(parsedValue, minValue, maxValue, step);
1329
+ if (step === undefined || isNaN(step)) clampedValue = ($9446cca9a3875146$export$7d15b64cf5a3a4c4)(newParsedValue, minValue, maxValue);
1330
+ else clampedValue = ($9446cca9a3875146$export$cb6e0bb50bc19463)(newParsedValue, minValue, maxValue, step);
1345
1331
  clampedValue = numberParser.parse(format(clampedValue));
1346
1332
  setNumberValue(clampedValue);
1347
1333
  // in a controlled state, the numberValue won't change, so we won't go back to our old input without help
@@ -1707,13 +1693,21 @@ function $parcel$interopDefault$1(a) {
1707
1693
 
1708
1694
 
1709
1695
 
1696
+ const $d2e8511e6f209edf$var$noop = ()=>{};
1710
1697
  function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
1711
1698
  const _async = (useRef)(undefined);
1712
1699
  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;
1713
1700
  const stringFormatter = ($fca6afa0e843324b$export$f12b703ca79dfbb1)((($parcel$interopDefault$1($a99895ee3dc79e61$exports))), '@react-aria/spinbutton');
1714
- const clearAsync = ()=>clearTimeout(_async.current);
1701
+ let isSpinning = (useRef)(false);
1702
+ const clearAsync = (useCallback)(()=>{
1703
+ clearTimeout(_async.current);
1704
+ isSpinning.current = false;
1705
+ }, []);
1706
+ const clearAsyncEvent = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)(()=>{
1707
+ clearAsync();
1708
+ });
1715
1709
  (useEffect)(()=>{
1716
- return ()=>clearAsync();
1710
+ return ()=>clearAsyncEvent();
1717
1711
  }, []);
1718
1712
  let onKeyDown = (e)=>{
1719
1713
  if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || isReadOnly || e.nativeEvent.isComposing) return;
@@ -1780,26 +1774,61 @@ function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
1780
1774
  }, [
1781
1775
  ariaTextValue
1782
1776
  ]);
1783
- const onIncrementPressStart = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)((initialStepDelay)=>{
1777
+ // For touch users, if they move their finger like they're scrolling, we don't want to trigger a spin.
1778
+ let onPointerCancel = (useCallback)(()=>{
1784
1779
  clearAsync();
1785
- onIncrement === null || onIncrement === void 0 ? void 0 : onIncrement();
1780
+ }, [
1781
+ clearAsync
1782
+ ]);
1783
+ const onIncrementEvent = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)(onIncrement !== null && onIncrement !== void 0 ? onIncrement : $d2e8511e6f209edf$var$noop);
1784
+ const onDecrementEvent = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)(onDecrement !== null && onDecrement !== void 0 ? onDecrement : $d2e8511e6f209edf$var$noop);
1785
+ const stepUpEvent = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)(()=>{
1786
+ if (maxValue === undefined || isNaN(maxValue) || value === undefined || isNaN(value) || value < maxValue) {
1787
+ onIncrementEvent();
1788
+ onIncrementPressStartEvent(60);
1789
+ }
1790
+ });
1791
+ const onIncrementPressStartEvent = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)((initialStepDelay)=>{
1792
+ clearAsyncEvent();
1793
+ isSpinning.current = true;
1786
1794
  // Start spinning after initial delay
1787
- _async.current = window.setTimeout(()=>{
1788
- if (maxValue === undefined || isNaN(maxValue) || value === undefined || isNaN(value) || value < maxValue) onIncrementPressStart(60);
1789
- }, initialStepDelay);
1795
+ _async.current = window.setTimeout(stepUpEvent, initialStepDelay);
1790
1796
  });
1791
- const onDecrementPressStart = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)((initialStepDelay)=>{
1792
- clearAsync();
1793
- onDecrement === null || onDecrement === void 0 ? void 0 : onDecrement();
1797
+ const stepDownEvent = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)(()=>{
1798
+ if (minValue === undefined || isNaN(minValue) || value === undefined || isNaN(value) || value > minValue) {
1799
+ onDecrementEvent();
1800
+ onDecrementPressStartEvent(60);
1801
+ }
1802
+ });
1803
+ const onDecrementPressStartEvent = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)((initialStepDelay)=>{
1804
+ clearAsyncEvent();
1805
+ isSpinning.current = true;
1794
1806
  // Start spinning after initial delay
1795
- _async.current = window.setTimeout(()=>{
1796
- if (minValue === undefined || isNaN(minValue) || value === undefined || isNaN(value) || value > minValue) onDecrementPressStart(60);
1797
- }, initialStepDelay);
1807
+ _async.current = window.setTimeout(stepDownEvent, initialStepDelay);
1798
1808
  });
1799
1809
  let cancelContextMenu = (e)=>{
1800
1810
  e.preventDefault();
1801
1811
  };
1802
1812
  let { addGlobalListener: addGlobalListener, removeAllGlobalListeners: removeAllGlobalListeners } = ($03deb23ff14920c4$export$4eaf04e54aa8eed6)();
1813
+ // Tracks in touch if the press end event was preceded by a press up.
1814
+ // If it wasn't, then we know the finger left the button while still in contact with the screen.
1815
+ // This means that the user is trying to scroll or interact in some way that shouldn't trigger
1816
+ // an increment or decrement.
1817
+ let isUp = (useRef)(false);
1818
+ let [isIncrementPressed, setIsIncrementPressed] = (useState)(null);
1819
+ (useEffect)(()=>{
1820
+ if (isIncrementPressed === 'touch') onIncrementPressStartEvent(600);
1821
+ else if (isIncrementPressed) onIncrementPressStartEvent(400);
1822
+ }, [
1823
+ isIncrementPressed
1824
+ ]);
1825
+ let [isDecrementPressed, setIsDecrementPressed] = (useState)(null);
1826
+ (useEffect)(()=>{
1827
+ if (isDecrementPressed === 'touch') onDecrementPressStartEvent(600);
1828
+ else if (isDecrementPressed) onDecrementPressStartEvent(400);
1829
+ }, [
1830
+ isDecrementPressed
1831
+ ]);
1803
1832
  return {
1804
1833
  spinButtonProps: {
1805
1834
  role: 'spinbutton',
@@ -1815,25 +1844,68 @@ function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
1815
1844
  onBlur: onBlur
1816
1845
  },
1817
1846
  incrementButtonProps: {
1818
- onPressStart: ()=>{
1819
- onIncrementPressStart(400);
1847
+ onPressStart: (e)=>{
1848
+ clearAsync();
1849
+ if (e.pointerType !== 'touch') {
1850
+ onIncrement === null || onIncrement === void 0 ? void 0 : onIncrement();
1851
+ setIsIncrementPressed('mouse');
1852
+ } else {
1853
+ addGlobalListener(window, 'pointercancel', onPointerCancel, {
1854
+ capture: true
1855
+ });
1856
+ isUp.current = false;
1857
+ // For touch users, don't trigger a decrement on press start, we'll wait for the press end to trigger it if
1858
+ // the control isn't spinning.
1859
+ setIsIncrementPressed('touch');
1860
+ }
1820
1861
  addGlobalListener(window, 'contextmenu', cancelContextMenu);
1821
1862
  },
1822
- onPressEnd: ()=>{
1863
+ onPressUp: (e)=>{
1823
1864
  clearAsync();
1865
+ if (e.pointerType === 'touch') isUp.current = true;
1824
1866
  removeAllGlobalListeners();
1867
+ setIsIncrementPressed(null);
1868
+ },
1869
+ onPressEnd: (e)=>{
1870
+ clearAsync();
1871
+ if (e.pointerType === 'touch') {
1872
+ if (!isSpinning.current && isUp.current) onIncrement === null || onIncrement === void 0 ? void 0 : onIncrement();
1873
+ }
1874
+ isUp.current = false;
1875
+ setIsIncrementPressed(null);
1825
1876
  },
1826
1877
  onFocus: onFocus,
1827
1878
  onBlur: onBlur
1828
1879
  },
1829
1880
  decrementButtonProps: {
1830
- onPressStart: ()=>{
1831
- onDecrementPressStart(400);
1832
- addGlobalListener(window, 'contextmenu', cancelContextMenu);
1881
+ onPressStart: (e)=>{
1882
+ clearAsync();
1883
+ if (e.pointerType !== 'touch') {
1884
+ onDecrement === null || onDecrement === void 0 ? void 0 : onDecrement();
1885
+ setIsDecrementPressed('mouse');
1886
+ } else {
1887
+ addGlobalListener(window, 'pointercancel', onPointerCancel, {
1888
+ capture: true
1889
+ });
1890
+ isUp.current = false;
1891
+ // For touch users, don't trigger a decrement on press start, we'll wait for the press end to trigger it if
1892
+ // the control isn't spinning.
1893
+ setIsDecrementPressed('touch');
1894
+ }
1833
1895
  },
1834
- onPressEnd: ()=>{
1896
+ onPressUp: (e)=>{
1835
1897
  clearAsync();
1898
+ if (e.pointerType === 'touch') isUp.current = true;
1836
1899
  removeAllGlobalListeners();
1900
+ setIsDecrementPressed(null);
1901
+ },
1902
+ onPressEnd: (e)=>{
1903
+ clearAsync();
1904
+ if (e.pointerType === 'touch') {
1905
+ if (!isSpinning.current && isUp.current) onDecrement === null || onDecrement === void 0 ? void 0 : onDecrement();
1906
+ }
1907
+ isUp.current = false;
1908
+ setIsDecrementPressed(null);
1837
1909
  },
1838
1910
  onFocus: onFocus,
1839
1911
  onBlur: onBlur
@@ -2172,15 +2244,30 @@ function $parcel$interopDefault(a) {
2172
2244
 
2173
2245
 
2174
2246
 
2247
+
2248
+
2175
2249
  function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
2176
2250
  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;
2177
2251
  let { increment: increment, incrementToMax: incrementToMax, decrement: decrement, decrementToMin: decrementToMin, numberValue: numberValue, inputValue: inputValue, commit: commit, commitValidation: commitValidation } = state;
2178
2252
  const stringFormatter = ($fca6afa0e843324b$export$f12b703ca79dfbb1)((($parcel$interopDefault($280a227d7cb94b92$exports))), '@react-aria/numberfield');
2253
+ let commitAndAnnounce = (useCallback)(()=>{
2254
+ var _inputRef_current, _inputRef_current1, _inputRef_current2;
2255
+ var _inputRef_current_value;
2256
+ 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 : '';
2257
+ // Set input value to normalized valid value
2258
+ (flushSync)(()=>{
2259
+ commit();
2260
+ });
2261
+ var _inputRef_current_value1;
2262
+ 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');
2263
+ }, [
2264
+ commit,
2265
+ inputRef
2266
+ ]);
2179
2267
  let inputId = ($bdb11010cef70236$export$f680877a34711e37)(id);
2180
2268
  let { focusProps: focusProps } = ($a1ea59d68270f0dd$export$f8168d8dd8fd66e6)({
2181
2269
  onBlur () {
2182
- // Set input value to normalized valid value
2183
- commit();
2270
+ commitAndAnnounce();
2184
2271
  }
2185
2272
  });
2186
2273
  let numberFormatter = ($a916eb452884faea$export$b7a616150fdb9f44)(formatOptions);
@@ -2256,6 +2343,24 @@ function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
2256
2343
  let onChange = (value)=>{
2257
2344
  if (state.validate(value)) state.setInputValue(value);
2258
2345
  };
2346
+ let onPaste = (e)=>{
2347
+ var _props_onPaste;
2348
+ (_props_onPaste = props.onPaste) === null || _props_onPaste === void 0 ? void 0 : _props_onPaste.call(props, e);
2349
+ let inputElement = ($d4ee10de306f2510$export$e58f029f0fbfdb29)(e);
2350
+ var _inputElement_selectionEnd, _inputElement_selectionStart;
2351
+ // we can only handle the case where the paste takes over the entire input, otherwise things get very complicated
2352
+ // trying to calculate the new string based on what the paste is replacing and where in the source string it is
2353
+ 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) {
2354
+ var _e_clipboardData_getData, _e_clipboardData_getData1, _e_clipboardData;
2355
+ e.preventDefault();
2356
+ var _e_clipboardData_getData_trim;
2357
+ // commit so that the user gets to see what it formats to immediately
2358
+ // paste happens before inputRef's value is updated, so have to prevent the default and do it ourselves
2359
+ // spin button will then handle announcing the new value, this should work with controlled state as well
2360
+ // because the announcement is done as a result of the new rendered input value if there is one
2361
+ 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 : '');
2362
+ }
2363
+ };
2259
2364
  let domProps = ($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props);
2260
2365
  let onKeyDownEnter = (useCallback)((e)=>{
2261
2366
  if (e.nativeEvent.isComposing) return;
@@ -2298,6 +2403,7 @@ function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
2298
2403
  onKeyDown
2299
2404
  ]),
2300
2405
  onKeyUp: onKeyUp,
2406
+ onPaste: onPaste,
2301
2407
  description: description,
2302
2408
  errorMessage: errorMessage
2303
2409
  }, state, inputRef);
@@ -2319,7 +2425,7 @@ function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
2319
2425
  var _inputRef_current;
2320
2426
  // If focus is already on the input, keep it there so we don't hide the
2321
2427
  // software keyboard when tapping the increment/decrement buttons.
2322
- if (document.activeElement === inputRef.current) return;
2428
+ if (($d4ee10de306f2510$export$cd4e5573fbe2b576)() === inputRef.current) return;
2323
2429
  // Otherwise, when using a mouse, move focus to the input.
2324
2430
  // On touch, or with a screen reader, focus the button so that the software
2325
2431
  // keyboard does not appear and the screen reader cursor is not moved off the button.
@@ -2402,7 +2508,8 @@ function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
2402
2508
  const $01b77f81d0f07f68$export$75b6ee27786ba447 = /*#__PURE__*/ (createContext)({});
2403
2509
  const $01b77f81d0f07f68$export$b04be29aa201d4f5 = /*#__PURE__*/ ($f39a9eba43920ace$export$86427a43e3e48ebb)(function Label(props, ref) {
2404
2510
  [props, ref] = ($64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $01b77f81d0f07f68$export$75b6ee27786ba447);
2405
- let { elementType: ElementType = 'label', ...labelProps } = props;
2511
+ let { elementType: elementType = 'label', ...labelProps } = props;
2512
+ let ElementType = ($64fa3d84918910a7$export$df3a06d6289f983e)[elementType];
2406
2513
  // @ts-ignore
2407
2514
  return /*#__PURE__*/ (React__default).createElement(ElementType, {
2408
2515
  className: "react-aria-Label",
@@ -2504,7 +2611,9 @@ const $d3e0e05bdfcf66bd$export$c24727297075ec6a = /*#__PURE__*/ (createContext)(
2504
2611
  const $a049562f99e7db0e$export$f9c6924e160136d1 = /*#__PURE__*/ (createContext)({});
2505
2612
  const $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 = /*#__PURE__*/ (forwardRef)(function Group(props, ref) {
2506
2613
  [props, ref] = ($64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $a049562f99e7db0e$export$f9c6924e160136d1);
2507
- let { isDisabled: isDisabled, isInvalid: isInvalid, onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;
2614
+ let { isDisabled: isDisabled, isInvalid: isInvalid, isReadOnly: isReadOnly, onHoverStart: onHoverStart, onHoverChange: onHoverChange, onHoverEnd: onHoverEnd, ...otherProps } = props;
2615
+ isDisabled !== null && isDisabled !== void 0 ? isDisabled : isDisabled = !!props['aria-disabled'] && props['aria-disabled'] !== 'false';
2616
+ isInvalid !== null && isInvalid !== void 0 ? isInvalid : isInvalid = !!props['aria-invalid'] && props['aria-invalid'] !== 'false';
2508
2617
  let { hoverProps: hoverProps, isHovered: isHovered } = ($6179b936705e76d3$export$ae780daf29e6d456)({
2509
2618
  onHoverStart: onHoverStart,
2510
2619
  onHoverChange: onHoverChange,
@@ -2514,8 +2623,6 @@ const $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 = /*#__PURE__*/ (forwardRef)(fun
2514
2623
  let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = ($f7dceffc5ad7768b$export$4e328f61c538687f)({
2515
2624
  within: true
2516
2625
  });
2517
- isDisabled !== null && isDisabled !== void 0 ? isDisabled : isDisabled = !!props['aria-disabled'] && props['aria-disabled'] !== 'false';
2518
- isInvalid !== null && isInvalid !== void 0 ? isInvalid : isInvalid = !!props['aria-invalid'] && props['aria-invalid'] !== 'false';
2519
2626
  let renderProps = ($64fa3d84918910a7$export$4d86445c2cf5e3)({
2520
2627
  ...props,
2521
2628
  values: {
@@ -2528,7 +2635,7 @@ const $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 = /*#__PURE__*/ (forwardRef)(fun
2528
2635
  defaultClassName: 'react-aria-Group'
2529
2636
  });
2530
2637
  var _props_role, _props_slot;
2531
- return /*#__PURE__*/ (React__default).createElement("div", {
2638
+ return /*#__PURE__*/ (React__default).createElement(($64fa3d84918910a7$export$df3a06d6289f983e).div, {
2532
2639
  ...($3ef42575df84b30b$export$9d1611c77c2fe928)(otherProps, focusProps, hoverProps),
2533
2640
  ...renderProps,
2534
2641
  ref: ref,
@@ -2538,7 +2645,8 @@ const $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 = /*#__PURE__*/ (forwardRef)(fun
2538
2645
  "data-hovered": isHovered || undefined,
2539
2646
  "data-focus-visible": isFocusVisible || undefined,
2540
2647
  "data-disabled": isDisabled || undefined,
2541
- "data-invalid": isInvalid || undefined
2648
+ "data-invalid": isInvalid || undefined,
2649
+ "data-readonly": isReadOnly || undefined
2542
2650
  }, renderProps.children);
2543
2651
  });
2544
2652
 
@@ -2564,7 +2672,10 @@ let $3985021b0ad6602f$var$filterHoverProps = (props)=>{
2564
2672
  };
2565
2673
  const $3985021b0ad6602f$export$f5b8910cec6cf069 = /*#__PURE__*/ ($f39a9eba43920ace$export$86427a43e3e48ebb)(function Input(props, ref) {
2566
2674
  [props, ref] = ($64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $3985021b0ad6602f$export$37fb8590cf2c088c);
2567
- let { hoverProps: hoverProps, isHovered: isHovered } = ($6179b936705e76d3$export$ae780daf29e6d456)(props);
2675
+ let { hoverProps: hoverProps, isHovered: isHovered } = ($6179b936705e76d3$export$ae780daf29e6d456)({
2676
+ ...props,
2677
+ isDisabled: props.disabled
2678
+ });
2568
2679
  let { isFocused: isFocused, isFocusVisible: isFocusVisible, focusProps: focusProps } = ($f7dceffc5ad7768b$export$4e328f61c538687f)({
2569
2680
  isTextInput: true,
2570
2681
  autoFocus: props.autoFocus
@@ -2581,7 +2692,7 @@ const $3985021b0ad6602f$export$f5b8910cec6cf069 = /*#__PURE__*/ ($f39a9eba43920a
2581
2692
  },
2582
2693
  defaultClassName: 'react-aria-Input'
2583
2694
  });
2584
- return /*#__PURE__*/ (React__default).createElement("input", {
2695
+ return /*#__PURE__*/ (React__default).createElement(($64fa3d84918910a7$export$df3a06d6289f983e).input, {
2585
2696
  ...($3ef42575df84b30b$export$9d1611c77c2fe928)($3985021b0ad6602f$var$filterHoverProps(props), focusProps, hoverProps),
2586
2697
  ...renderProps,
2587
2698
  ref: ref,
@@ -2696,7 +2807,7 @@ const $b91743d66a0ed188$export$63c5fa0b2fdccd2e = /*#__PURE__*/ (forwardRef)(fun
2696
2807
  validation
2697
2808
  ]
2698
2809
  ]
2699
- }, /*#__PURE__*/ (React__default).createElement("div", {
2810
+ }, /*#__PURE__*/ (React__default).createElement(($64fa3d84918910a7$export$df3a06d6289f983e).div, {
2700
2811
  ...DOMProps,
2701
2812
  ...renderProps,
2702
2813
  ref: ref,
@@ -2708,7 +2819,8 @@ const $b91743d66a0ed188$export$63c5fa0b2fdccd2e = /*#__PURE__*/ (forwardRef)(fun
2708
2819
  type: "hidden",
2709
2820
  name: props.name,
2710
2821
  form: props.form,
2711
- value: isNaN(state.numberValue) ? '' : state.numberValue
2822
+ value: isNaN(state.numberValue) ? '' : state.numberValue,
2823
+ disabled: props.isDisabled || undefined
2712
2824
  }));
2713
2825
  });
2714
2826
 
@@ -1,5 +1,5 @@
1
1
  import React__default, { useState } from 'react';
2
- import { k as FormField } from './FormField-es.js';
2
+ import { F as FormField } from './FormField-es.js';
3
3
  import 'classnames';
4
4
  import './tslib.es6-es.js';
5
5
  import 'react-hook-form';
@@ -18,7 +18,7 @@ require('../InputValidation-cjs.js');
18
18
  require('../Spinner-cjs.js');
19
19
  require('react-router-dom');
20
20
 
21
- var styles = {"mask":"_78-Lxj78xPg-","hiddenValue":"GoiXVXaU1Qs-","emptyValue":"oOrjwubmsVA-","spinning":"T3VvmDmzs-4-"};
21
+ var styles = {"mask":"_78-Lxj78xPg-","hiddenValue":"GoiXVXaU1Qs-","emptyValue":"oOrjwubmsVA-"};
22
22
 
23
23
  function useInputMask({ value = "", pattern, delimiter = "*", strict = true, onChange, }) {
24
24
  const [isMasking, setIsMasking] = React.useState(!value);
@@ -1,7 +1,7 @@
1
1
  import React__default, { useState, useMemo, useCallback, useEffect, cloneElement, forwardRef, useId } from 'react';
2
2
  import { _ as __rest } from '../tslib.es6-es.js';
3
3
  import classnames from 'classnames';
4
- import { b as useAtlantisFormFieldName, f as FormFieldWrapper, l as formFieldStyles, m as FormFieldPostFix, k as FormField } from '../FormField-es.js';
4
+ import { i as useAtlantisFormFieldName, e as FormFieldWrapper, l as formFieldStyles, m as FormFieldPostFix, F as FormField } from '../FormField-es.js';
5
5
  import { useFormContext, useForm } from 'react-hook-form';
6
6
  import '../Button-es.js';
7
7
  import '@jobber/design';
@@ -16,7 +16,7 @@ import '../InputValidation-es.js';
16
16
  import '../Spinner-es.js';
17
17
  import 'react-router-dom';
18
18
 
19
- var styles = {"mask":"_78-Lxj78xPg-","hiddenValue":"GoiXVXaU1Qs-","emptyValue":"oOrjwubmsVA-","spinning":"T3VvmDmzs-4-"};
19
+ var styles = {"mask":"_78-Lxj78xPg-","hiddenValue":"GoiXVXaU1Qs-","emptyValue":"oOrjwubmsVA-"};
20
20
 
21
21
  function useInputMask({ value = "", pattern, delimiter = "*", strict = true, onChange, }) {
22
22
  const [isMasking, setIsMasking] = useState(!value);
@@ -1,71 +1,3 @@
1
1
  import React from "react";
2
- import type { InputTextRef } from "./InputText.types";
3
- export declare const InputText: React.ForwardRefExoticComponent<({
4
- readonly multiline: true;
5
- readonly rows?: (number | import("./InputText.types").RowRange) | undefined;
6
- readonly id?: string | undefined;
7
- readonly align?: ("center" | "right") | undefined;
8
- readonly description?: React.ReactNode;
9
- readonly disabled?: boolean | undefined;
10
- readonly showMiniLabel?: boolean | undefined;
11
- readonly invalid?: boolean | undefined;
12
- readonly inline?: boolean | undefined;
13
- loading?: boolean | undefined;
14
- readonly name?: string | undefined;
15
- onChange?: ((newValue: string | number | boolean | Date, event?: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void) | undefined;
16
- onValidation?: ((message: string) => void) | undefined;
17
- readonly placeholder?: string | undefined;
18
- readonly size?: ("small" | "large") | undefined;
19
- readonly value?: (string | number | Date) | undefined;
20
- readonly clearable?: import("@jobber/hooks").Clearable | undefined;
21
- version?: 1 | undefined;
22
- onFocus?: ((event?: React.FocusEvent) => void) | undefined;
23
- onBlur?: ((event?: React.FocusEvent) => void) | undefined;
24
- readonly toolbar?: React.ReactNode;
25
- readonly defaultValue?: (string | Date) | undefined;
26
- readonly prefix?: import("../FormField").Affix | undefined;
27
- readonly maxLength?: number | undefined;
28
- readonly autofocus?: boolean | undefined;
29
- readonly autocomplete?: (boolean | import("../FormField").AutocompleteTypes) | undefined;
30
- inputRef?: React.RefObject<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null> | undefined;
31
- readonly keyboard?: ("numeric" | "decimal") | undefined;
32
- readonly suffix?: import("ts-xor").XOR<import("../FormField").Affix, import("../FormField").Suffix> | undefined;
33
- onEnter?: ((event: React.KeyboardEvent) => void) | undefined;
34
- readonly readonly?: boolean | undefined;
35
- readonly validations?: import("react-hook-form").RegisterOptions | undefined;
36
- readonly toolbarVisibility?: ("always" | "while-editing") | undefined;
37
- } | {
38
- rows?: undefined;
39
- multiline?: boolean | undefined;
40
- readonly id?: string | undefined;
41
- readonly align?: ("center" | "right") | undefined;
42
- readonly description?: React.ReactNode;
43
- readonly disabled?: boolean | undefined;
44
- readonly showMiniLabel?: boolean | undefined;
45
- readonly invalid?: boolean | undefined;
46
- readonly inline?: boolean | undefined;
47
- loading?: boolean | undefined;
48
- readonly name?: string | undefined;
49
- onChange?: ((newValue: string | number | boolean | Date, event?: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void) | undefined;
50
- onValidation?: ((message: string) => void) | undefined;
51
- readonly placeholder?: string | undefined;
52
- readonly size?: ("small" | "large") | undefined;
53
- readonly value?: (string | number | Date) | undefined;
54
- readonly clearable?: import("@jobber/hooks").Clearable | undefined;
55
- version?: 1 | undefined;
56
- onFocus?: ((event?: React.FocusEvent) => void) | undefined;
57
- onBlur?: ((event?: React.FocusEvent) => void) | undefined;
58
- readonly toolbar?: React.ReactNode;
59
- readonly defaultValue?: (string | Date) | undefined;
60
- readonly prefix?: import("../FormField").Affix | undefined;
61
- readonly maxLength?: number | undefined;
62
- readonly autofocus?: boolean | undefined;
63
- readonly autocomplete?: (boolean | import("../FormField").AutocompleteTypes) | undefined;
64
- inputRef?: React.RefObject<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null> | undefined;
65
- readonly keyboard?: ("numeric" | "decimal") | undefined;
66
- readonly suffix?: import("ts-xor").XOR<import("../FormField").Affix, import("../FormField").Suffix> | undefined;
67
- onEnter?: ((event: React.KeyboardEvent) => void) | undefined;
68
- readonly readonly?: boolean | undefined;
69
- readonly validations?: import("react-hook-form").RegisterOptions | undefined;
70
- readonly toolbarVisibility?: ("always" | "while-editing") | undefined;
71
- }) & React.RefAttributes<InputTextRef>>;
2
+ import type { InputTextLegacyProps, InputTextRef } from "./InputText.types";
3
+ export declare const InputText: React.ForwardRefExoticComponent<InputTextLegacyProps & React.RefAttributes<InputTextRef>>;
@@ -1,6 +1,6 @@
1
1
  import React__default, { forwardRef, useRef, useImperativeHandle, useMemo, useId } from 'react';
2
2
  import { useSafeLayoutEffect } from '@jobber/hooks';
3
- import { k as FormField, b as useAtlantisFormFieldName, n as mergeRefs, l as formFieldStyles, f as FormFieldWrapper, m as FormFieldPostFix } from '../FormField-es.js';
3
+ import { F as FormField, i as useAtlantisFormFieldName, n as mergeRefs, l as formFieldStyles, e as FormFieldWrapper, m as FormFieldPostFix } from '../FormField-es.js';
4
4
  import 'classnames';
5
5
  import '../tslib.es6-es.js';
6
6
  import 'react-hook-form';
@@ -274,7 +274,6 @@ function InputTimeRebuilt(_a) {
274
274
  const { handleChangeEvent, handleChange, handleBlur, handleClear, handleFocus, handleKeyDown, handleClick, handleMouseDown, handleMouseUp, handlePointerDown, handlePointerUp, } = useInputTimeActions({
275
275
  onChange,
276
276
  value,
277
- readOnly,
278
277
  disabled: props.disabled,
279
278
  inputRef: internalRef,
280
279
  onFocus: props.onFocus,
@@ -1,7 +1,7 @@
1
1
  import React__default, { useState, useCallback, useEffect, useId, useRef } from 'react';
2
2
  import { _ as __rest } from '../tslib.es6-es.js';
3
3
  import { a as debounce } from '../debounce-es.js';
4
- import { f as FormFieldWrapper, l as formFieldStyles, n as mergeRefs, k as FormField } from '../FormField-es.js';
4
+ import { e as FormFieldWrapper, l as formFieldStyles, n as mergeRefs, F as FormField } from '../FormField-es.js';
5
5
  import 'classnames';
6
6
  import '@jobber/design';
7
7
  import 'react-hook-form';
@@ -272,7 +272,6 @@ function InputTimeRebuilt(_a) {
272
272
  const { handleChangeEvent, handleChange, handleBlur, handleClear, handleFocus, handleKeyDown, handleClick, handleMouseDown, handleMouseUp, handlePointerDown, handlePointerUp, } = useInputTimeActions({
273
273
  onChange,
274
274
  value,
275
- readOnly,
276
275
  disabled: props.disabled,
277
276
  inputRef: internalRef,
278
277
  onFocus: props.onFocus,