@jobber/components 7.1.2-MIKElock--7916eb4.2 → 7.2.0

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 (240) hide show
  1. package/dist/AtlantisThemeContext-cjs.js +1 -1
  2. package/dist/AtlantisThemeContext-es.js +9 -9
  3. package/dist/Autocomplete/index.cjs +2 -2
  4. package/dist/Autocomplete/index.mjs +5 -5
  5. package/dist/Body-cjs.js +1 -1
  6. package/dist/Body-es.js +2 -2
  7. package/dist/BottomSheet-cjs.js +1 -1
  8. package/dist/BottomSheet-es.js +1 -1
  9. package/dist/Box-cjs.js +2 -2
  10. package/dist/Box-es.js +2 -2
  11. package/dist/Button/index.mjs +1 -1
  12. package/dist/Button-es.js +1 -1
  13. package/dist/Card-cjs.js +1 -1
  14. package/dist/Card-es.js +1 -1
  15. package/dist/Checkbox/index.cjs +1 -1
  16. package/dist/Checkbox/index.mjs +1 -1
  17. package/dist/Chip/Chip.d.ts +7 -1
  18. package/dist/Chip/Chip.types.d.ts +7 -2
  19. package/dist/Chip/index.cjs +1 -1
  20. package/dist/Chip/index.mjs +2 -2
  21. package/dist/Chip-cjs.js +42 -27
  22. package/dist/Chip-es.js +42 -27
  23. package/dist/ChipDismissible-es.js +1 -1
  24. package/dist/Chips/InternalChipDismissible/hooks/index.mjs +1 -1
  25. package/dist/Combobox/components/ComboboxTrigger/index.cjs +1 -1
  26. package/dist/Combobox/components/ComboboxTrigger/index.mjs +1 -1
  27. package/dist/Combobox-cjs.js +1 -1
  28. package/dist/Combobox-es.js +1 -1
  29. package/dist/ComboboxAction-cjs.js +1 -1
  30. package/dist/ComboboxAction-es.js +1 -1
  31. package/dist/ComboboxContent-cjs.js +1 -1
  32. package/dist/ComboboxContent-es.js +2 -2
  33. package/dist/ComboboxContentHeader-cjs.js +1 -1
  34. package/dist/ComboboxContentHeader-es.js +1 -1
  35. package/dist/ComboboxContentList-es.js +1 -1
  36. package/dist/ComboboxContentSearch-cjs.js +1 -1
  37. package/dist/ComboboxContentSearch-es.js +1 -1
  38. package/dist/ComboboxLoadMore-cjs.js +1 -1
  39. package/dist/ComboboxLoadMore-es.js +1 -1
  40. package/dist/ComboboxOption-cjs.js +1 -1
  41. package/dist/ComboboxOption-es.js +1 -1
  42. package/dist/Container-cjs.js +1 -1
  43. package/dist/Container-es.js +1 -1
  44. package/dist/Content-cjs.js +1 -1
  45. package/dist/Content-es.js +1 -1
  46. package/dist/ContentBlock-cjs.js +1 -1
  47. package/dist/ContentBlock-es.js +1 -1
  48. package/dist/Countdown-cjs.js +3 -7
  49. package/dist/Countdown-es.js +4 -8
  50. package/dist/Cover-cjs.js +1 -1
  51. package/dist/Cover-es.js +1 -1
  52. package/dist/DataList-es.js +3 -3
  53. package/dist/DataList.const-cjs.js +1 -0
  54. package/dist/DataList.const-es.js +2 -1
  55. package/dist/DataList.module-cjs.js +1 -1
  56. package/dist/DataList.module-es.js +1 -1
  57. package/dist/DataList.utils-es.js +6 -6
  58. package/dist/DataListAction-cjs.js +1 -1
  59. package/dist/DataListAction-es.js +1 -1
  60. package/dist/DataListActionsMenu-cjs.js +1 -1
  61. package/dist/DataListActionsMenu-es.js +2 -2
  62. package/dist/DataListBulkActions-cjs.js +1 -1
  63. package/dist/DataListBulkActions-es.js +1 -1
  64. package/dist/DataListEmptyState-cjs.js +1 -1
  65. package/dist/DataListEmptyState-es.js +1 -1
  66. package/dist/DataListHeaderTile-cjs.js +2 -2
  67. package/dist/DataListHeaderTile-es.js +2 -2
  68. package/dist/DataListItemActions-cjs.js +1 -1
  69. package/dist/DataListItemActions-es.js +2 -2
  70. package/dist/DataListLayoutActions-cjs.js +1 -1
  71. package/dist/DataListLayoutActions-es.js +2 -2
  72. package/dist/DataListLoadMore-cjs.js +1 -1
  73. package/dist/DataListLoadMore-es.js +1 -1
  74. package/dist/DataListLoadingState-cjs.js +1 -1
  75. package/dist/DataListLoadingState-es.js +2 -2
  76. package/dist/DataListOverflowFade-cjs.js +1 -1
  77. package/dist/DataListOverflowFade-es.js +1 -1
  78. package/dist/DataListSearch-cjs.js +1 -1
  79. package/dist/DataListSearch-es.js +1 -1
  80. package/dist/DataListSortingOptions-cjs.js +1 -1
  81. package/dist/DataListSortingOptions-es.js +1 -1
  82. package/dist/DataListStickyHeader-cjs.js +1 -1
  83. package/dist/DataListStickyHeader-es.js +1 -1
  84. package/dist/DataListTags-cjs.js +1 -1
  85. package/dist/DataListTags-es.js +1 -1
  86. package/dist/DataListTotalCount-cjs.js +1 -1
  87. package/dist/DataListTotalCount-es.js +2 -2
  88. package/dist/DataTable/index.mjs +1 -1
  89. package/dist/DataTable-cjs.js +3 -3
  90. package/dist/DataTable-es.js +5 -5
  91. package/dist/DataTableTable-cjs.js +2 -2
  92. package/dist/DataTableTable-es.js +3 -3
  93. package/dist/DatePicker-cjs.js +81 -266
  94. package/dist/DatePicker-es.js +83 -268
  95. package/dist/DayOfMonthSelect-cjs.js +5 -5
  96. package/dist/DayOfMonthSelect-es.js +6 -6
  97. package/dist/DescriptionList-cjs.js +1 -1
  98. package/dist/DescriptionList-es.js +1 -1
  99. package/dist/Disclosure-cjs.js +1 -1
  100. package/dist/Disclosure-es.js +1 -1
  101. package/dist/Divider-cjs.js +1 -1
  102. package/dist/Divider-es.js +1 -1
  103. package/dist/DrawerGrid-cjs.js +2 -2
  104. package/dist/DrawerGrid-es.js +2 -2
  105. package/dist/DrawerRoot-cjs.js +48 -10
  106. package/dist/DrawerRoot-es.js +50 -12
  107. package/dist/FeatureSwitch-cjs.js +1 -1
  108. package/dist/FeatureSwitch-es.js +1 -1
  109. package/dist/FormField/index.mjs +1 -1
  110. package/dist/FormField-cjs.js +1 -1
  111. package/dist/FormField-es.js +2 -2
  112. package/dist/FormatEmail-cjs.js +1 -1
  113. package/dist/FormatEmail-es.js +1 -1
  114. package/dist/FormatFile-cjs.js +6 -1
  115. package/dist/FormatFile-es.js +6 -1
  116. package/dist/Frame-cjs.js +1 -1
  117. package/dist/Frame-es.js +1 -1
  118. package/dist/Glimmer/index.mjs +1 -1
  119. package/dist/Glimmer-cjs.js +1 -1
  120. package/dist/Glimmer-es.js +2 -2
  121. package/dist/Grid-cjs.js +1 -1
  122. package/dist/Grid-es.js +1 -1
  123. package/dist/GridCell-cjs.js +1 -1
  124. package/dist/GridCell-es.js +1 -1
  125. package/dist/InputAvatar-cjs.js +1 -1
  126. package/dist/InputAvatar-es.js +1 -1
  127. package/dist/InputDate/index.mjs +1 -1
  128. package/dist/InputEmail/index.mjs +1 -1
  129. package/dist/InputFile-cjs.js +3 -8
  130. package/dist/InputFile-es.js +3 -8
  131. package/dist/InputNumber/index.cjs +59 -165
  132. package/dist/InputNumber/index.mjs +62 -168
  133. package/dist/InputPassword-es.js +1 -1
  134. package/dist/InputPhoneNumber/index.cjs +1 -1
  135. package/dist/InputPhoneNumber/index.mjs +2 -2
  136. package/dist/InputText/InputText.d.ts +70 -2
  137. package/dist/InputText/index.mjs +1 -1
  138. package/dist/InputTime/index.cjs +1 -0
  139. package/dist/InputTime/index.mjs +2 -1
  140. package/dist/InputValidation-cjs.js +1 -1
  141. package/dist/InputValidation-es.js +1 -1
  142. package/dist/InternalChipDismissible-cjs.js +2 -2
  143. package/dist/InternalChipDismissible-es.js +3 -3
  144. package/dist/LightBox-cjs.js +1 -1
  145. package/dist/LightBox-es.js +1 -1
  146. package/dist/Link-cjs.js +1 -1
  147. package/dist/Link-es.js +1 -1
  148. package/dist/List-cjs.js +3 -3
  149. package/dist/List-es.js +7 -7
  150. package/dist/Markdown-cjs.js +392 -466
  151. package/dist/Markdown-es.js +398 -472
  152. package/dist/Menu-cjs.js +577 -739
  153. package/dist/Menu-es.js +573 -735
  154. package/dist/Modal/index.cjs +2 -2
  155. package/dist/Modal/index.mjs +2 -2
  156. package/dist/MultiSelect-cjs.js +2 -2
  157. package/dist/MultiSelect-es.js +2 -2
  158. package/dist/OverlaySeparator-cjs.js +1 -1
  159. package/dist/OverlaySeparator-es.js +1 -1
  160. package/dist/Popover-cjs.js +1 -1
  161. package/dist/Popover-es.js +2 -2
  162. package/dist/ProgressBar-cjs.js +1 -1
  163. package/dist/ProgressBar-es.js +1 -1
  164. package/dist/RadioGroup-cjs.js +1 -1
  165. package/dist/RadioGroup-es.js +1 -1
  166. package/dist/RecurringSelect/components/index.mjs +1 -1
  167. package/dist/RecurringSelect/index.cjs +0 -1
  168. package/dist/RecurringSelect/index.mjs +0 -1
  169. package/dist/RecurringSelect-cjs.js +1 -1
  170. package/dist/RecurringSelect-es.js +2 -2
  171. package/dist/SegmentedControl-cjs.js +1 -1
  172. package/dist/SegmentedControl-es.js +2 -2
  173. package/dist/Select/index.cjs +1 -1
  174. package/dist/Select/index.mjs +2 -2
  175. package/dist/SideDrawer-cjs.js +1 -1
  176. package/dist/SideDrawer-es.js +1 -1
  177. package/dist/Spinner-cjs.js +1 -1
  178. package/dist/Spinner-es.js +1 -1
  179. package/dist/StatusIndicator-cjs.js +1 -1
  180. package/dist/StatusIndicator-es.js +1 -1
  181. package/dist/Switch-cjs.js +1 -1
  182. package/dist/Switch-es.js +1 -1
  183. package/dist/Table/index.mjs +1 -1
  184. package/dist/Tabs/index.mjs +1 -1
  185. package/dist/Tabs-cjs.js +1 -1
  186. package/dist/Tabs-es.js +6 -6
  187. package/dist/Text-cjs2.js +164 -298
  188. package/dist/Text-es2.js +164 -295
  189. package/dist/Thumbnail-cjs.js +1 -1
  190. package/dist/Thumbnail-es.js +2 -2
  191. package/dist/Tiles-cjs.js +1 -1
  192. package/dist/Tiles-es.js +1 -1
  193. package/dist/Tooltip-cjs.js +1 -1
  194. package/dist/Tooltip-es.js +2 -2
  195. package/dist/Typography-cjs.js +3 -3
  196. package/dist/Typography-es.js +3 -3
  197. package/dist/_baseEach-cjs.js +1 -1
  198. package/dist/_baseEach-es.js +7 -7
  199. package/dist/_baseFlatten-es.js +1 -1
  200. package/dist/_getAllKeys-cjs.js +8 -2
  201. package/dist/_getAllKeys-es.js +10 -4
  202. package/dist/_getTag-es.js +1 -1
  203. package/dist/_isIterateeCall-es.js +3 -3
  204. package/dist/_setToString-es.js +2 -2
  205. package/dist/debounce-es.js +4 -4
  206. package/dist/docs/Autocomplete/AutocompleteV1.md +1 -1
  207. package/dist/docs/Autocomplete/AutocompleteV2.md +1 -1
  208. package/dist/docs/Banner/Banner.md +1 -1
  209. package/dist/docs/Chip/Chip.md +4 -2
  210. package/dist/docs/DataList/DataList.md +1 -1
  211. package/dist/docs/FormField/FormField.md +2 -2
  212. package/dist/docs/InputEmail/InputEmail.md +1 -1
  213. package/dist/docs/InputNumber/InputNumber.md +2 -2
  214. package/dist/docs/InputPhoneNumber/InputPhoneNumber.md +1 -1
  215. package/dist/docs/InputText/InputText.md +2 -2
  216. package/dist/docs/Modal/Modal.md +3 -3
  217. package/dist/docs/Select/Select.md +2 -2
  218. package/dist/floating-ui.react-cjs.js +16 -35
  219. package/dist/floating-ui.react-dom-es.js +2 -2
  220. package/dist/floating-ui.react-es.js +18 -37
  221. package/dist/identity-es.js +5 -5
  222. package/dist/index-cjs.js +6 -6
  223. package/dist/index-es.js +6 -6
  224. package/dist/index.esm-es.js +1 -1
  225. package/dist/index.mjs +6 -6
  226. package/dist/isSymbol-es.js +1 -1
  227. package/dist/isTypedArray-cjs.js +4 -4
  228. package/dist/isTypedArray-es.js +6 -6
  229. package/dist/keysIn-cjs.js +2 -2
  230. package/dist/keysIn-es.js +5 -5
  231. package/dist/noop-es.js +4 -4
  232. package/dist/omit-cjs.js +5 -37
  233. package/dist/omit-es.js +14 -46
  234. package/dist/showToast-cjs.js +1 -1
  235. package/dist/showToast-es.js +1 -1
  236. package/dist/styles.css +117 -54
  237. package/dist/unstyledPrimitives/index.mjs +3 -3
  238. package/dist/useScrollToActive-cjs.js +1 -1
  239. package/dist/useScrollToActive-es.js +8 -8
  240. package/package.json +3 -4
@@ -8,7 +8,7 @@ var Typography = require('./Typography-cjs.js');
8
8
 
9
9
  var styles$1 = {"content":"b9lhF-BkUnI-","hasName":"BJLJeUxloeQ-","large":"t5IzWH6-Sy0-","fileName":"tj--cPRjQfI-","base":"l2Vxo1qaR8U-","spinning":"LDAOyzklETo-"};
10
10
 
11
- var styles = {"image":"qOmZU-rbNf4-","hidden":"_2bihNsPs7w4-"};
11
+ var styles = {"image":"qOmZU-rbNf4-","fadeIn":"zB1aNhsmmqY-","hidden":"_2bihNsPs7w4-","spinning":"ZLMkLuZeH-o-"};
12
12
 
13
13
  function InternalThumbnailImage({ file, UNSAFE_className, UNSAFE_style, }) {
14
14
  const { name, src } = file;
@@ -1,12 +1,12 @@
1
1
  import React__default, { useState, useEffect } from 'react';
2
2
  import classnames from 'classnames';
3
- import { a as Glimmer } from './Glimmer-es.js';
3
+ import { G as Glimmer } from './Glimmer-es.js';
4
4
  import { I as Icon } from './Icon-es.js';
5
5
  import { T as Typography } from './Typography-es.js';
6
6
 
7
7
  var styles$1 = {"content":"b9lhF-BkUnI-","hasName":"BJLJeUxloeQ-","large":"t5IzWH6-Sy0-","fileName":"tj--cPRjQfI-","base":"l2Vxo1qaR8U-","spinning":"LDAOyzklETo-"};
8
8
 
9
- var styles = {"image":"qOmZU-rbNf4-","hidden":"_2bihNsPs7w4-"};
9
+ var styles = {"image":"qOmZU-rbNf4-","fadeIn":"zB1aNhsmmqY-","hidden":"_2bihNsPs7w4-","spinning":"ZLMkLuZeH-o-"};
10
10
 
11
11
  function InternalThumbnailImage({ file, UNSAFE_className, UNSAFE_style, }) {
12
12
  const { name, src } = file;
package/dist/Tiles-cjs.js CHANGED
@@ -4,7 +4,7 @@ var React = require('react');
4
4
  var classnames = require('classnames');
5
5
  var getMappedAtlantisSpaceToken = require('./getMappedAtlantisSpaceToken-cjs.js');
6
6
 
7
- var styles = {"tiles":"jC1GzRIJp74-"};
7
+ var styles = {"tiles":"jC1GzRIJp74-","spinning":"Ou05ff3MXU8-"};
8
8
 
9
9
  function Tiles({ children, minSize = "30ch", gap = "base", autoWidth = false, as: Tag = "div", dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, align = "start", }) {
10
10
  return (React.createElement(Tag, Object.assign({ role: role, id: id }, dataAttributes, ariaAttributes, { style: Object.assign({ "--public-tile-min-size": minSize, "--public-tile-space": getMappedAtlantisSpaceToken.getMappedAtlantisSpaceToken(gap), "--public-tiles-width": autoWidth ? "auto" : "100%", "--public-tiles-align": align }, UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.container), className: classnames(styles.tiles, UNSAFE_className === null || UNSAFE_className === void 0 ? void 0 : UNSAFE_className.container) }), children));
package/dist/Tiles-es.js CHANGED
@@ -2,7 +2,7 @@ import React__default from 'react';
2
2
  import classnames from 'classnames';
3
3
  import { g as getMappedAtlantisSpaceToken } from './getMappedAtlantisSpaceToken-es.js';
4
4
 
5
- var styles = {"tiles":"jC1GzRIJp74-"};
5
+ var styles = {"tiles":"jC1GzRIJp74-","spinning":"Ou05ff3MXU8-"};
6
6
 
7
7
  function Tiles({ children, minSize = "30ch", gap = "base", autoWidth = false, as: Tag = "div", dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, align = "start", }) {
8
8
  return (React__default.createElement(Tag, Object.assign({ role: role, id: id }, dataAttributes, ariaAttributes, { style: Object.assign({ "--public-tile-min-size": minSize, "--public-tile-space": getMappedAtlantisSpaceToken(gap), "--public-tiles-width": autoWidth ? "auto" : "100%", "--public-tiles-align": align }, UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.container), className: classnames(styles.tiles, UNSAFE_className === null || UNSAFE_className === void 0 ? void 0 : UNSAFE_className.container) }), children));
@@ -7,7 +7,7 @@ var framerMotion = require('framer-motion');
7
7
  var jobberHooks = require('@jobber/hooks');
8
8
  var floatingUi_reactDom = require('./floating-ui.react-dom-cjs.js');
9
9
 
10
- var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","hidden":"p92TIli5Sgw-"};
10
+ var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","hidden":"p92TIli5Sgw-","spinning":"bobYmlUMnuY-"};
11
11
 
12
12
  const TOOLTIP_SHIFT_PADDING = 8;
13
13
  const TOOLTIP_ARROW_PADDING = 6;
@@ -3,9 +3,9 @@ import classnames from 'classnames';
3
3
  import { u as useFloating, F as FloatingPortal } from './floating-ui.react-es.js';
4
4
  import { motion } from 'framer-motion';
5
5
  import { useSafeLayoutEffect, useIsMounted } from '@jobber/hooks';
6
- import { a as autoUpdate, s as shift, f as flip, b as arrow, h as hide, l as limitShift } from './floating-ui.react-dom-es.js';
6
+ import { s as shift, f as flip, a as arrow, h as hide, b as autoUpdate, l as limitShift } from './floating-ui.react-dom-es.js';
7
7
 
8
- var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","hidden":"p92TIli5Sgw-"};
8
+ var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","hidden":"p92TIli5Sgw-","spinning":"bobYmlUMnuY-"};
9
9
 
10
10
  const TOOLTIP_SHIFT_PADDING = 8;
11
11
  const TOOLTIP_ARROW_PADDING = 6;
@@ -3,7 +3,7 @@
3
3
  var React = require('react');
4
4
  var classnames = require('classnames');
5
5
 
6
- var styles = {"base":"j4h-0Mxa5gk-"};
6
+ var styles = {"base":"j4h-0Mxa5gk-","spinning":"vNKBQk0oak4-"};
7
7
 
8
8
  var fontSizes = {"extravagant":"_1CXlSTO0w8g-","jumbo":"v5TK2OwNTaI-","largest":"CcGPmsMUVfg-","larger":"ETyC5vbbImA-","large":"ejYSlnHYn2U-","base":"e9lFMke1PNs-","small":"MiITdlbzofc-","smaller":"hs1hcOgrK1s-","spinning":"wbsSTlLw-cA-"};
9
9
 
@@ -15,13 +15,13 @@ var textColors = {"blue":"xNqFL54SrGc-","grey":"_9XmiMJWBidk-","greyBlueDark":"Y
15
15
 
16
16
  var emphasis = {"italic":"ws2Y0LqNNfk-","highlight":"kw63z71hYYU-","spinning":"ki-I8aPAhmA-"};
17
17
 
18
- var truncate = {"textTruncate":"bvnCrlndVHs-"};
18
+ var truncate = {"textTruncate":"bvnCrlndVHs-","spinning":"kdOkoNCczRo-"};
19
19
 
20
20
  var alignment = {"start":"r5lyOVfBlMI-","center":"w1MIwv35jXA-","end":"oOJPwUQFllQ-","spinning":"geH1XNdqO8M-"};
21
21
 
22
22
  var fontFamilies = {"base":"V9SSKxs15xE-","display":"dvw7zxC9s9g-","spinning":"NBpK9JnmLJ4-"};
23
23
 
24
- var underlineStyles = {"basicUnderline":"qp8E5e4q-so-"};
24
+ var underlineStyles = {"basicUnderline":"qp8E5e4q-so-","spinning":"F-Ybr7sJi6Q-"};
25
25
 
26
26
  function Typography({ id, children, element: Tag = "p", size, align, fontWeight = "regular", textCase, textColor, emphasisType, numberOfLines, fontFamily, underline, UNSAFE_className, UNSAFE_style, }) {
27
27
  const shouldTruncateText = numberOfLines && numberOfLines > 0;
@@ -1,7 +1,7 @@
1
1
  import React__default from 'react';
2
2
  import classnames from 'classnames';
3
3
 
4
- var styles = {"base":"j4h-0Mxa5gk-"};
4
+ var styles = {"base":"j4h-0Mxa5gk-","spinning":"vNKBQk0oak4-"};
5
5
 
6
6
  var fontSizes = {"extravagant":"_1CXlSTO0w8g-","jumbo":"v5TK2OwNTaI-","largest":"CcGPmsMUVfg-","larger":"ETyC5vbbImA-","large":"ejYSlnHYn2U-","base":"e9lFMke1PNs-","small":"MiITdlbzofc-","smaller":"hs1hcOgrK1s-","spinning":"wbsSTlLw-cA-"};
7
7
 
@@ -13,13 +13,13 @@ var textColors = {"blue":"xNqFL54SrGc-","grey":"_9XmiMJWBidk-","greyBlueDark":"Y
13
13
 
14
14
  var emphasis = {"italic":"ws2Y0LqNNfk-","highlight":"kw63z71hYYU-","spinning":"ki-I8aPAhmA-"};
15
15
 
16
- var truncate = {"textTruncate":"bvnCrlndVHs-"};
16
+ var truncate = {"textTruncate":"bvnCrlndVHs-","spinning":"kdOkoNCczRo-"};
17
17
 
18
18
  var alignment = {"start":"r5lyOVfBlMI-","center":"w1MIwv35jXA-","end":"oOJPwUQFllQ-","spinning":"geH1XNdqO8M-"};
19
19
 
20
20
  var fontFamilies = {"base":"V9SSKxs15xE-","display":"dvw7zxC9s9g-","spinning":"NBpK9JnmLJ4-"};
21
21
 
22
- var underlineStyles = {"basicUnderline":"qp8E5e4q-so-"};
22
+ var underlineStyles = {"basicUnderline":"qp8E5e4q-so-","spinning":"F-Ybr7sJi6Q-"};
23
23
 
24
24
  function Typography({ id, children, element: Tag = "p", size, align, fontWeight = "regular", textCase, textColor, emphasisType, numberOfLines, fontFamily, underline, UNSAFE_className, UNSAFE_style, }) {
25
25
  const shouldTruncateText = numberOfLines && numberOfLines > 0;
@@ -36,7 +36,7 @@ var _setCacheAdd = setCacheAdd$1;
36
36
  * @name has
37
37
  * @memberOf SetCache
38
38
  * @param {*} value The value to search for.
39
- * @returns {boolean} Returns `true` if `value` is found, else `false`.
39
+ * @returns {number} Returns `true` if `value` is found, else `false`.
40
40
  */
41
41
 
42
42
  function setCacheHas$1(value) {
@@ -1,8 +1,8 @@
1
1
  import { g as _MapCache, d as _Uint8Array, e as eq_1, c as _Stack, a as _isIndex, i as identity_1 } from './identity-es.js';
2
2
  import { b as _Symbol, i as isObjectLike_1, a as isObject_1 } from './isObjectLike-es.js';
3
3
  import { e as _getAllKeys, k as keys_1, b as _baseGet, f as _castPath, g as _toKey, h as _isKey } from './_getAllKeys-es.js';
4
- import { _ as _getTag } from './_getTag-es.js';
5
- import { b as isBufferExports, c as isTypedArray_1, a as isArray_1, m as isLength_1, d as isArguments_1, i as isArrayLike_1 } from './isTypedArray-es.js';
4
+ import { a as _getTag } from './_getTag-es.js';
5
+ import { c as isBufferExports, d as isTypedArray_1, a as isArray_1, i as isArguments_1, m as isLength_1, b as isArrayLike_1 } from './isTypedArray-es.js';
6
6
  import { g as getDefaultExportFromCjs } from './_commonjsHelpers-es.js';
7
7
  import { _ as _baseFor } from './_baseFor-es.js';
8
8
 
@@ -34,7 +34,7 @@ var _setCacheAdd = setCacheAdd$1;
34
34
  * @name has
35
35
  * @memberOf SetCache
36
36
  * @param {*} value The value to search for.
37
- * @returns {boolean} Returns `true` if `value` is found, else `false`.
37
+ * @returns {number} Returns `true` if `value` is found, else `false`.
38
38
  */
39
39
 
40
40
  function setCacheHas$1(value) {
@@ -729,14 +729,14 @@ var baseGet$1 = _baseGet;
729
729
  * _.get(object, 'a.b.c', 'default');
730
730
  * // => 'default'
731
731
  */
732
- function get$2(object, path, defaultValue) {
732
+ function get$1(object, path, defaultValue) {
733
733
  var result = object == null ? undefined : baseGet$1(object, path);
734
734
  return result === undefined ? defaultValue : result;
735
735
  }
736
736
 
737
- var get_1 = get$2;
737
+ var get_1 = get$1;
738
738
 
739
- var get$1 = /*@__PURE__*/getDefaultExportFromCjs(get_1);
739
+ var get$2 = /*@__PURE__*/getDefaultExportFromCjs(get_1);
740
740
 
741
741
  /**
742
742
  * The base implementation of `_.hasIn` without support for deep paths.
@@ -1025,4 +1025,4 @@ var baseEach = createBaseEach(baseForOwn);
1025
1025
 
1026
1026
  var _baseEach = baseEach;
1027
1027
 
1028
- export { _baseEach as _, _baseIteratee as a, get$1 as g };
1028
+ export { _baseEach as _, _baseIteratee as a, get$2 as g };
@@ -1,6 +1,6 @@
1
1
  import { _ as _arrayPush } from './_getAllKeys-es.js';
2
2
  import { b as _Symbol } from './isObjectLike-es.js';
3
- import { a as isArray_1, d as isArguments_1 } from './isTypedArray-es.js';
3
+ import { i as isArguments_1, a as isArray_1 } from './isTypedArray-es.js';
4
4
 
5
5
  var Symbol = _Symbol,
6
6
  isArguments = isArguments_1,
@@ -215,6 +215,9 @@ var Symbol = isObjectLike._Symbol,
215
215
  isArray$2 = isTypedArray.isArray_1,
216
216
  isSymbol$1 = isSymbol$3.isSymbol_1;
217
217
 
218
+ /** Used as references for various `Number` constants. */
219
+ var INFINITY$1 = 1 / 0;
220
+
218
221
  /** Used to convert symbols to primitives and strings. */
219
222
  var symbolProto = Symbol ? Symbol.prototype : undefined,
220
223
  symbolToString = symbolProto ? symbolProto.toString : undefined;
@@ -240,7 +243,7 @@ function baseToString$1(value) {
240
243
  return symbolToString ? symbolToString.call(value) : '';
241
244
  }
242
245
  var result = (value + '');
243
- return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
246
+ return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
244
247
  }
245
248
 
246
249
  var _baseToString = baseToString$1;
@@ -298,6 +301,9 @@ var _castPath = castPath$1;
298
301
 
299
302
  var isSymbol = isSymbol$3.isSymbol_1;
300
303
 
304
+ /** Used as references for various `Number` constants. */
305
+ var INFINITY = 1 / 0;
306
+
301
307
  /**
302
308
  * Converts `value` to a string key if it's not a string or symbol.
303
309
  *
@@ -310,7 +316,7 @@ function toKey$1(value) {
310
316
  return value;
311
317
  }
312
318
  var result = (value + '');
313
- return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
319
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
314
320
  }
315
321
 
316
322
  var _toKey = toKey$1;
@@ -1,8 +1,8 @@
1
- import { a as isArray_1, i as isArrayLike_1 } from './isTypedArray-es.js';
1
+ import { a as isArray_1, b as isArrayLike_1 } from './isTypedArray-es.js';
2
2
  import { i as isSymbol_1 } from './isSymbol-es.js';
3
3
  import { g as _MapCache, f as _arrayLikeKeys } from './identity-es.js';
4
4
  import { b as _Symbol } from './isObjectLike-es.js';
5
- import { a as _baseKeys } from './_getTag-es.js';
5
+ import { _ as _baseKeys } from './_getTag-es.js';
6
6
 
7
7
  /**
8
8
  * Appends the elements of `values` to `array`.
@@ -213,6 +213,9 @@ var Symbol = _Symbol,
213
213
  isArray$2 = isArray_1,
214
214
  isSymbol$1 = isSymbol_1;
215
215
 
216
+ /** Used as references for various `Number` constants. */
217
+ var INFINITY$1 = 1 / 0;
218
+
216
219
  /** Used to convert symbols to primitives and strings. */
217
220
  var symbolProto = Symbol ? Symbol.prototype : undefined,
218
221
  symbolToString = symbolProto ? symbolProto.toString : undefined;
@@ -238,7 +241,7 @@ function baseToString$1(value) {
238
241
  return symbolToString ? symbolToString.call(value) : '';
239
242
  }
240
243
  var result = (value + '');
241
- return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
244
+ return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
242
245
  }
243
246
 
244
247
  var _baseToString = baseToString$1;
@@ -296,6 +299,9 @@ var _castPath = castPath$1;
296
299
 
297
300
  var isSymbol = isSymbol_1;
298
301
 
302
+ /** Used as references for various `Number` constants. */
303
+ var INFINITY = 1 / 0;
304
+
299
305
  /**
300
306
  * Converts `value` to a string key if it's not a string or symbol.
301
307
  *
@@ -308,7 +314,7 @@ function toKey$1(value) {
308
314
  return value;
309
315
  }
310
316
  var result = (value + '');
311
- return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
317
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
312
318
  }
313
319
 
314
320
  var _toKey = toKey$1;
@@ -130,4 +130,4 @@ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
130
130
 
131
131
  var _getTag = getTag;
132
132
 
133
- export { _getTag as _, _baseKeys as a };
133
+ export { _baseKeys as _, _getTag as a };
@@ -1,6 +1,6 @@
1
- import { i as identity_1, a as _isIndex, e as eq_1 } from './identity-es.js';
2
- import { _ as _setToString, a as _overRest } from './_setToString-es.js';
3
- import { i as isArrayLike_1 } from './isTypedArray-es.js';
1
+ import { i as identity_1, e as eq_1, a as _isIndex } from './identity-es.js';
2
+ import { _ as _overRest, a as _setToString } from './_setToString-es.js';
3
+ import { b as isArrayLike_1 } from './isTypedArray-es.js';
4
4
  import { a as isObject_1 } from './isObjectLike-es.js';
5
5
 
6
6
  var identity = identity_1,
@@ -1,4 +1,4 @@
1
- import { i as identity_1, _ as _defineProperty } from './identity-es.js';
1
+ import { _ as _defineProperty, i as identity_1 } from './identity-es.js';
2
2
 
3
3
  /**
4
4
  * A faster alternative to `Function#apply`, this function invokes `func`
@@ -165,4 +165,4 @@ var setToString = shortOut(baseSetToString);
165
165
 
166
166
  var _setToString = setToString;
167
167
 
168
- export { _setToString as _, _overRest as a };
168
+ export { _overRest as _, _setToString as a };
@@ -197,7 +197,7 @@ var nativeMax = Math.max,
197
197
  * // Cancel the trailing debounced invocation.
198
198
  * jQuery(window).on('popstate', debounced.cancel);
199
199
  */
200
- function debounce$1(func, wait, options) {
200
+ function debounce(func, wait, options) {
201
201
  var lastArgs,
202
202
  lastThis,
203
203
  maxWait,
@@ -322,8 +322,8 @@ function debounce$1(func, wait, options) {
322
322
  return debounced;
323
323
  }
324
324
 
325
- var debounce_1 = debounce$1;
325
+ var debounce_1 = debounce;
326
326
 
327
- var debounce = /*@__PURE__*/getDefaultExportFromCjs(debounce_1);
327
+ var debounce$1 = /*@__PURE__*/getDefaultExportFromCjs(debounce_1);
328
328
 
329
- export { debounce as a, debounce_1 as d };
329
+ export { debounce$1 as a, debounce_1 as d };
@@ -1324,6 +1324,6 @@ is, focus the extra element and if not it will focus the input.
1324
1324
  | `prefix` | `Affix` | No | — | Adds a prefix label and icon to the field |
1325
1325
  | `ref` | `Ref<InputTextRef>` | No | — | Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (... |
1326
1326
  | `size` | `"small" | "large"` | No | — | Adjusts the interface to either have small or large spacing. |
1327
- | `suffix` | `XOR<Affix, Suffix>` | No | — | Adds a suffix label and icon with an optional action to the field |
1327
+ | `suffix` | `{ onClick: () => void; readonly ariaLabel: string; readonly icon: IconNames; readonly label?: string; } | { onClick?: never; ariaLabel?: never; readonly label?: string; readonly icon?: IconNames; }` | No | — | Adds a suffix label and icon with an optional action to the field |
1328
1328
  | `validations` | `RegisterOptions` | No | — | Validations to run on the input. |
1329
1329
  | `version` | `1` | No | `1` | Version of the component to use. |
@@ -812,6 +812,6 @@ This is not yet implemented fully. Avoid using.
812
812
  | `readOnly` | `boolean` | No | — | Whether the input is read-only (HTML standard casing). |
813
813
  | `ref` | `Ref<HTMLInputElement | HTMLTextAreaElement>` | No | — | |
814
814
  | `size` | `"small" | "large"` | No | — | Adjusts the interface to either have small or large spacing. |
815
- | `suffix` | `XOR<Affix, Suffix>` | No | — | Adds a suffix label and icon with an optional action to the field. |
815
+ | `suffix` | `{ onClick: () => void; readonly ariaLabel: string; readonly icon: IconNames; readonly label?: string; } | { onClick?: never; ariaLabel?: never; readonly label?: string; readonly icon?: IconNames; }` | No | — | Adds a suffix label and icon with an optional action to the field. |
816
816
  | `UNSAFE_className` | `{ menu?: string; option?: string; section?: string; action?: string; input?: string; header?: string; footer?: string; selection?: string; }` | No | — | **Use at your own risk:** Custom class names for specific elements. This should only be used as a **last resort**. Us... |
817
817
  | `UNSAFE_styles` | `{ menu?: CSSProperties; option?: CSSProperties; section?: CSSProperties; action?: CSSProperties; input?: CSSProperties; header?: CSSProperties; footer?: CSSProperties; selection?: CSSProperties; }` | No | — | **Use at your own risk:** Custom style for specific elements. This should only be used as a **last resort**. Using th... |
@@ -389,7 +389,7 @@ Use `UNSAFE_style` to apply inline custom styles to the Banner.
389
389
  | `dismissible` | `boolean` | No | `true` | Set to false to hide the dismiss button |
390
390
  | `icon` | `IconNames` | No | — | Use to override the default status Icon |
391
391
  | `onDismiss` | `() => void` | No | — | Callback to be called when the Banner is dismissed. |
392
- | `primaryAction` | `ButtonProps` | No | — | Accepts props for Button. Default action uses a 'subtle' Button |
392
+ | `primaryAction` | `{ external?: never; onClick?: never; readonly name?: string; submit: never; readonly type?: ButtonType; readonly value?: string; readonly UNSAFE_className?: { container?: string; buttonLabel?: { ...; }; buttonIcon?: { ...; }; }; ... 18 more ...; readonly children?: never; } | ... 34 more ... | { ...; }` | No | — | Accepts props for Button. Default action uses a 'subtle' Button |
393
393
 
394
394
  #### Banner.Provider
395
395
 
@@ -362,11 +362,13 @@ those more complex selection flows.
362
362
  |------|------|----------|---------|-------------|
363
363
  | `label` | `string` | Yes | — | The content of the chip. Will be displayed on the right if you include a heading. |
364
364
  | `ariaLabel` | `string` | No | — | Accessible label, which can be different from the primary label. |
365
+ | `data-testid` | `string` | No | — | |
365
366
  | `disabled` | `boolean` | No | — | Disables both mouse and keyboard functionality, and updates the visual style of the Chip to appear disabled. |
366
367
  | `heading` | `string` | No | — | Adds more prominent text to act as a heading. Will be displayed on the left with a | separator. |
367
368
  | `invalid` | `boolean` | No | — | Changes Chip styling to inform the user of an issue. |
368
- | `onClick` | `(value: string | number, ev: MouseEvent<HTMLButtonElement | HTMLDivElement, MouseEvent>) => void` | No | — | Chip Click Callback. Sends an event and sometimes a value (SelectableChip). |
369
- | `onKeyDown` | `(ev: KeyboardEvent<HTMLButtonElement | HTMLDivElement>) => void` | No | — | Callback. Called when you keydown on Chip. Ships the event, so you can get the key pushed. |
369
+ | `onClick` | `((ev: MouseEvent<HTMLButtonElement | HTMLDivElement, MouseEvent>) => void) & MouseEventHandler<ChipElement>` | No | — | Chip click callback using a standard event-first signature. |
370
+ | `onClickValue` | `(value: string | number, ev: MouseEvent<HTMLButtonElement | HTMLDivElement, MouseEvent>) => void` | No | — | Value-first click callback retained as an upgrade path for existing consumers. @deprecated Prefer `onClick` with a cl... |
371
+ | `onKeyDown` | `((ev: KeyboardEvent<HTMLButtonElement | HTMLDivElement>) => void) & KeyboardEventHandler<ChipElement>` | No | — | Callback. Called when you keydown on Chip. Ships the event, so you can get the key pushed. |
370
372
  | `ref` | `Ref<HTMLButtonElement | HTMLDivElement>` | No | — | Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (... |
371
373
  | `role` | `string` | No | `button` | The accessible role the Chip is fulfilling. Defaults to 'button' |
372
374
  | `tabIndex` | `number` | No | `0` | Used for accessibility purpopses, specifically using the tab key as navigation. |
@@ -534,7 +534,7 @@ objects that will define the sorting options for the column.
534
534
  | Prop | Type | Required | Default | Description |
535
535
  |------|------|----------|---------|-------------|
536
536
  | `message` | `string` | Yes | — | The message that shows when the DataList is empty. |
537
- | `action` | `ReactElement<ButtonProps, string | JSXElementConstructor<any>>` | No | — | The action that shows when the DataList is empty. This only accepts a Button component. Adding a non-Button componen... |
537
+ | `action` | `ReactElement<{ external?: never; onClick?: never; readonly name?: string; submit: never; readonly type?: ButtonType; readonly value?: string; readonly id?: string; readonly variation?: ButtonVariation; ... 17 more ...; readonly children?: never; } | ... 34 more ... | { ...; }, string | JSXElementConstructor<...>>` | No | — | The action that shows when the DataList is empty. This only accepts a Button component. Adding a non-Button componen... |
538
538
  | `customRender` | `(emptyState: Omit<DataListEmptyStateProps, "customRender">) => ReactNode` | No | — | Custom render function for the empty state. If provided, this function will be used to render the empty state instea... |
539
539
  | `type` | `"filtered" | "empty"` | No | — | Determine the type of empty state to show. By default, it will show the "empty" state when there is no data. If you ... |
540
540
 
@@ -71,7 +71,7 @@ export function SpecialInput(props) {
71
71
  | `min` | `number` | No | — | Specifies the minimum numerical or date value that a user can type |
72
72
  | `name` | `string` | No | — | Name of the input. |
73
73
  | `onBlur` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Blur callback. |
74
- | `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement, Element>) => void` | No | — | onChange handler that provides the new value (or event) @param newValue @param event |
74
+ | `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void` | No | — | onChange handler that provides the new value (or event) @param newValue @param event |
75
75
  | `onEnter` | `(event: KeyboardEvent<Element>) => void` | No | — | A callback to handle "Enter" keypress. This will only run if Enter is the only key. Will not run if Shift or Control ... |
76
76
  | `onFocus` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Focus callback. |
77
77
  | `onKeyUp` | `(event: KeyboardEvent<HTMLInputElement>) => void` | No | — | |
@@ -83,7 +83,7 @@ export function SpecialInput(props) {
83
83
  | `rows` | `number` | No | — | Exclusively for textareas. Specifies the visible height of a textarea. |
84
84
  | `showMiniLabel` | `boolean` | No | `true` | Controls the visibility of the mini label that appears inside the input when a value is entered. By default, the plac... |
85
85
  | `size` | `"small" | "large"` | No | — | Adjusts the interface to either have small or large spacing. |
86
- | `suffix` | `XOR<Affix, Suffix>` | No | — | Adds a suffix label and icon with an optional action to the field |
86
+ | `suffix` | `{ onClick: () => void; readonly ariaLabel: string; readonly icon: IconNames; readonly label?: string; } | { onClick?: never; ariaLabel?: never; readonly label?: string; readonly icon?: IconNames; }` | No | — | Adds a suffix label and icon with an optional action to the field |
87
87
  | `toolbar` | `ReactNode` | No | — | Toolbar to render content below the input. |
88
88
  | `toolbarVisibility` | `"always" | "while-editing"` | No | — | Determines the visibility of the toolbar. |
89
89
  | `type` | `FormFieldTypes` | No | — | Determines what kind of form field should the component give you. |
@@ -43,7 +43,7 @@ If you are not worried about email address validation, consider using
43
43
  | `loading` | `boolean` | No | — | Show a spinner to indicate loading |
44
44
  | `maxLength` | `number` | No | — | Maximum character length for an input. This also changes the width to roughly the same size as the max length. This i... |
45
45
  | `name` | `string` | No | — | Name of the input. |
46
- | `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement, Element>) => void` | No | — | onChange handler that provides the new value (or event) @param newValue @param event |
46
+ | `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void` | No | — | onChange handler that provides the new value (or event) @param newValue @param event |
47
47
  | `onValidation` | `(message: string) => void` | No | — | Callback to get the the status and message when validating a field @param message |
48
48
  | `placeholder` | `string` | No | — | Text that appears inside the input when empty and floats above the value as a mini label once the user enters a value... |
49
49
  | `readonly` | `boolean` | No | — | Prevents users from editing the value. |
@@ -51,7 +51,7 @@ For more details about `validation` using `Input` components, see the
51
51
  | `min` | `number` | No | — | Specifies the minimum numerical or date value that a user can type |
52
52
  | `name` | `string` | No | — | Name of the input. |
53
53
  | `onBlur` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Blur callback. |
54
- | `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement, Element>) => void` | No | — | onChange handler that provides the new value (or event) @param newValue @param event |
54
+ | `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void` | No | — | onChange handler that provides the new value (or event) @param newValue @param event |
55
55
  | `onEnter` | `(event: KeyboardEvent<Element>) => void` | No | — | A callback to handle "Enter" keypress. This will only run if Enter is the only key. Will not run if Shift or Control ... |
56
56
  | `onFocus` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Focus callback. |
57
57
  | `onValidation` | `(message: string) => void` | No | — | Callback to get the the status and message when validating a field @param message |
@@ -61,7 +61,7 @@ For more details about `validation` using `Input` components, see the
61
61
  | `ref` | `Ref<InputNumberRef>` | No | — | Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (... |
62
62
  | `showMiniLabel` | `boolean` | No | `true` | Controls the visibility of the mini label that appears inside the input when a value is entered. By default, the plac... |
63
63
  | `size` | `"small" | "large"` | No | — | Adjusts the interface to either have small or large spacing. |
64
- | `suffix` | `XOR<Affix, Suffix>` | No | — | Adds a suffix label and icon with an optional action to the field |
64
+ | `suffix` | `{ onClick: () => void; readonly ariaLabel: string; readonly icon: IconNames; readonly label?: string; } | { onClick?: never; ariaLabel?: never; readonly label?: string; readonly icon?: IconNames; }` | No | — | Adds a suffix label and icon with an optional action to the field |
65
65
  | `validations` | `RegisterOptions` | No | — | Show an error message above the field. This also highlights the the field red if an error message shows up. |
66
66
  | `value` | `number` | No | — | Set the component to the given value. |
67
67
  | `version` | `1` | No | — | Experimental: Determine which version of the FormField to use. |
@@ -66,6 +66,6 @@ edits the input.
66
66
  | `required` | `boolean` | No | — | Shows a "required" validation message when the component is left empty. |
67
67
  | `showMiniLabel` | `boolean` | No | `true` | Controls the visibility of the mini label that appears inside the input when a value is entered. By default, the plac... |
68
68
  | `size` | `"small" | "large"` | No | — | Adjusts the interface to either have small or large spacing. |
69
- | `suffix` | `XOR<Affix, Suffix>` | No | — | Adds a suffix label and icon with an optional action to the field |
69
+ | `suffix` | `{ onClick: () => void; readonly ariaLabel: string; readonly icon: IconNames; readonly label?: string; } | { onClick?: never; ariaLabel?: never; readonly label?: string; readonly icon?: IconNames; }` | No | — | Adds a suffix label and icon with an optional action to the field |
70
70
  | `validations` | `RegisterOptions` | No | — | Show an error message above the field. This also highlights the the field red if an error message shows up. |
71
71
  | `version` | `1` | No | — | Experimental: Determine which version of the FormField to use. Right now this isn't used but it will be used in the f... |
@@ -303,7 +303,7 @@ they will not do anything.
303
303
  | `multiline` | `boolean` | No | — | Use this when you're expecting a long answer. |
304
304
  | `name` | `string` | No | — | Name of the input. |
305
305
  | `onBlur` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Blur callback. |
306
- | `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement, Element>) => void` | No | — | onChange handler that provides the new value (or event) @param newValue @param event |
306
+ | `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void` | No | — | onChange handler that provides the new value (or event) @param newValue @param event |
307
307
  | `onEnter` | `(event: KeyboardEvent<Element>) => void` | No | — | A callback to handle "Enter" keypress. This will only run if Enter is the only key. Will not run if Shift or Control ... |
308
308
  | `onFocus` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Focus callback. |
309
309
  | `onValidation` | `(message: string) => void` | No | — | Callback to get the the status and message when validating a field @param message |
@@ -314,7 +314,7 @@ they will not do anything.
314
314
  | `rows` | `number | RowRange` | No | — | Specifies the visible height of a long answer form field. Can be in the form of a single number to set a static heigh... |
315
315
  | `showMiniLabel` | `boolean` | No | `true` | Controls the visibility of the mini label that appears inside the input when a value is entered. By default, the plac... |
316
316
  | `size` | `"small" | "large"` | No | — | Adjusts the interface to either have small or large spacing. |
317
- | `suffix` | `XOR<Affix, Suffix>` | No | — | Adds a suffix label and icon with an optional action to the field |
317
+ | `suffix` | `{ onClick: () => void; readonly ariaLabel: string; readonly icon: IconNames; readonly label?: string; } | { onClick?: never; ariaLabel?: never; readonly label?: string; readonly icon?: IconNames; }` | No | — | Adds a suffix label and icon with an optional action to the field |
318
318
  | `toolbar` | `ReactNode` | No | — | Toolbar to render content below the input. |
319
319
  | `toolbarVisibility` | `"while-editing" | "always"` | No | — | Determines the visibility of the toolbar. |
320
320
  | `validations` | `RegisterOptions` | No | — | Show an error message above the field. This also highlights the the field red if an error message shows up. |
@@ -290,9 +290,9 @@ screen.getByRole("dialog", { name: /Billing Settings/i });
290
290
  | `dismissible` | `boolean` | No | `true` | |
291
291
  | `onRequestClose` | `() => void` | No | — | |
292
292
  | `open` | `boolean` | No | `false` | |
293
- | `primaryAction` | `ButtonProps` | No | — | |
294
- | `secondaryAction` | `ButtonProps` | No | — | |
293
+ | `primaryAction` | `{ external?: never; onClick?: never; readonly name?: string; submit: never; readonly type?: ButtonType; readonly value?: string; readonly variation?: ButtonVariation; ... 18 more ...; readonly children?: never; } | ... 34 more ... | { ...; }` | No | — | |
294
+ | `secondaryAction` | `{ external?: never; onClick?: never; readonly name?: string; submit: never; readonly type?: ButtonType; readonly value?: string; readonly variation?: ButtonVariation; ... 18 more ...; readonly children?: never; } | ... 34 more ... | { ...; }` | No | — | |
295
295
  | `size` | `"fullScreen" | "large" | "small"` | No | — | |
296
- | `tertiaryAction` | `ButtonProps` | No | — | |
296
+ | `tertiaryAction` | `{ external?: never; onClick?: never; readonly name?: string; submit: never; readonly type?: ButtonType; readonly value?: string; readonly variation?: ButtonVariation; ... 18 more ...; readonly children?: never; } | ... 34 more ... | { ...; }` | No | — | |
297
297
  | `title` | `string` | No | `false` | |
298
298
  | `version` | `1` | No | — | |
@@ -201,14 +201,14 @@ dropdown content is stylable; the closed value alignment is not.
201
201
  | `maxLength` | `number` | No | — | Changes the width to roughly the same size as the maximum character length |
202
202
  | `name` | `string` | No | — | Name of the input. |
203
203
  | `onBlur` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Blur callback. |
204
- | `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement, Element>) => void` | No | — | onChange handler that provides the new value (or event) @param newValue @param event |
204
+ | `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void` | No | — | onChange handler that provides the new value (or event) @param newValue @param event |
205
205
  | `onEnter` | `(event: KeyboardEvent<Element>) => void` | No | — | A callback to handle "Enter" keypress. This will only run if Enter is the only key. Will not run if Shift or Control ... |
206
206
  | `onFocus` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Focus callback. |
207
207
  | `onValidation` | `(message: string) => void` | No | — | Callback to get the the status and message when validating a field @param message |
208
208
  | `placeholder` | `string` | No | — | Text that appears inside the input when empty and floats above the value as a mini label once the user enters a value... |
209
209
  | `prefix` | `Affix` | No | — | Adds a prefix label and icon to the field |
210
210
  | `size` | `"small" | "large"` | No | — | Adjusts the interface to either have small or large spacing. |
211
- | `suffix` | `XOR<Affix, Suffix>` | No | — | Adds a suffix label and icon with an optional action to the field |
211
+ | `suffix` | `{ onClick: () => void; readonly ariaLabel: string; readonly icon: IconNames; readonly label?: string; } | { onClick?: never; ariaLabel?: never; readonly label?: string; readonly icon?: IconNames; }` | No | — | Adds a suffix label and icon with an optional action to the field |
212
212
  | `validations` | `RegisterOptions` | No | — | Show an error message above the field. This also highlights the the field red if an error message shows up. |
213
213
  | `value` | `string | number | Date` | No | — | Set the component to the given value. |
214
214
  | `version` | `1` | No | — | Experimental: Determine which version of the FormField to use. Right now this isn't used but it will be used in the f... |
@@ -886,12 +886,7 @@ let uncontrolledElementsSet = /*#__PURE__*/new WeakSet();
886
886
  let markerMap = {};
887
887
  let lockCount$1 = 0;
888
888
  const supportsInert = () => typeof HTMLElement !== 'undefined' && 'inert' in HTMLElement.prototype;
889
- function unwrapHost(node) {
890
- if (!node) {
891
- return null;
892
- }
893
- return index_esm.isShadowRoot(node) ? node.host : unwrapHost(node.parentNode);
894
- }
889
+ const unwrapHost = node => node && (node.host || unwrapHost(node.parentNode));
895
890
  const correctElements = (parent, targets) => targets.map(target => {
896
891
  if (parent.contains(target)) {
897
892
  return target;
@@ -1032,12 +1027,6 @@ const FocusGuard = /*#__PURE__*/React__namespace.forwardRef(function FocusGuard(
1032
1027
  });
1033
1028
  });
1034
1029
 
1035
- const HIDDEN_OWNER_STYLES = {
1036
- clipPath: 'inset(50%)',
1037
- position: 'fixed',
1038
- top: 0,
1039
- left: 0
1040
- };
1041
1030
  const PortalContext = /*#__PURE__*/React__namespace.createContext(null);
1042
1031
  const attr = /*#__PURE__*/createAttribute('portal');
1043
1032
  /**
@@ -1196,7 +1185,7 @@ function FloatingPortal(props) {
1196
1185
  }
1197
1186
  }), shouldRenderGuards && portalNode && /*#__PURE__*/jsxRuntime.jsx("span", {
1198
1187
  "aria-owns": portalNode.id,
1199
- style: HIDDEN_OWNER_STYLES
1188
+ style: HIDDEN_STYLES
1200
1189
  }), portalNode && /*#__PURE__*/ReactDOM__namespace.createPortal(children, portalNode), shouldRenderGuards && portalNode && /*#__PURE__*/jsxRuntime.jsx(FocusGuard, {
1201
1190
  "data-type": "outside",
1202
1191
  ref: afterOutsideRef,
@@ -1232,24 +1221,20 @@ function useLiteMergeRefs(refs) {
1232
1221
  const LIST_LIMIT = 20;
1233
1222
  let previouslyFocusedElements = [];
1234
1223
  function clearDisconnectedPreviouslyFocusedElements() {
1235
- previouslyFocusedElements = previouslyFocusedElements.filter(elementRef => {
1236
- var _elementRef$deref;
1237
- return (_elementRef$deref = elementRef.deref()) == null ? void 0 : _elementRef$deref.isConnected;
1238
- });
1224
+ previouslyFocusedElements = previouslyFocusedElements.filter(el => el.isConnected);
1239
1225
  }
1240
1226
  function addPreviouslyFocusedElement(element) {
1241
1227
  clearDisconnectedPreviouslyFocusedElements();
1242
1228
  if (element && index_esm.getNodeName(element) !== 'body') {
1243
- previouslyFocusedElements.push(new WeakRef(element));
1229
+ previouslyFocusedElements.push(element);
1244
1230
  if (previouslyFocusedElements.length > LIST_LIMIT) {
1245
- previouslyFocusedElements = previouslyFocusedElements.slice(-LIST_LIMIT);
1231
+ previouslyFocusedElements = previouslyFocusedElements.slice(-20);
1246
1232
  }
1247
1233
  }
1248
1234
  }
1249
1235
  function getPreviouslyFocusedElement() {
1250
1236
  clearDisconnectedPreviouslyFocusedElements();
1251
- const elementRef = previouslyFocusedElements[previouslyFocusedElements.length - 1];
1252
- return elementRef == null ? void 0 : elementRef.deref();
1237
+ return previouslyFocusedElements[previouslyFocusedElements.length - 1];
1253
1238
  }
1254
1239
  function getFirstTabbableElement(container) {
1255
1240
  const tabbableOptions = getTabbableOptions();
@@ -2181,22 +2166,18 @@ function useDismiss(context, props) {
2181
2166
  })
2182
2167
  })
2183
2168
  }), [closeOnEscapeKeyDown, onOpenChange, referencePress, referencePressEvent]);
2184
- const floating = React__namespace.useMemo(() => {
2185
- function setMouseDownOrUpInside(event) {
2186
- if (event.button !== 0) {
2187
- return;
2188
- }
2169
+ const floating = React__namespace.useMemo(() => ({
2170
+ onKeyDown: closeOnEscapeKeyDown,
2171
+ onMouseDown() {
2189
2172
  endedOrStartedInsideRef.current = true;
2173
+ },
2174
+ onMouseUp() {
2175
+ endedOrStartedInsideRef.current = true;
2176
+ },
2177
+ [captureHandlerKeys[outsidePressEvent]]: () => {
2178
+ dataRef.current.insideReactTree = true;
2190
2179
  }
2191
- return {
2192
- onKeyDown: closeOnEscapeKeyDown,
2193
- onMouseDown: setMouseDownOrUpInside,
2194
- onMouseUp: setMouseDownOrUpInside,
2195
- [captureHandlerKeys[outsidePressEvent]]: () => {
2196
- dataRef.current.insideReactTree = true;
2197
- }
2198
- };
2199
- }, [closeOnEscapeKeyDown, outsidePressEvent, dataRef]);
2180
+ }), [closeOnEscapeKeyDown, outsidePressEvent, dataRef]);
2200
2181
  return React__namespace.useMemo(() => enabled ? {
2201
2182
  reference,
2202
2183
  floating