@react-spectrum/s2 3.0.0-nightly-a6f868a06-250517 → 3.0.0-nightly-77b3442e4-250520

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 (228) hide show
  1. package/dist/Accordion.cjs +2 -2
  2. package/dist/Accordion.css +2 -2
  3. package/dist/Accordion.mjs +2 -2
  4. package/dist/ActionBar.cjs +60 -60
  5. package/dist/ActionBar.css +59 -59
  6. package/dist/ActionBar.mjs +60 -60
  7. package/dist/ActionButton.cjs +187 -187
  8. package/dist/ActionButton.css +134 -134
  9. package/dist/ActionButton.mjs +187 -187
  10. package/dist/ActionButtonGroup.cjs +15 -15
  11. package/dist/ActionButtonGroup.css +9 -9
  12. package/dist/ActionButtonGroup.mjs +15 -15
  13. package/dist/Add.cjs +10 -10
  14. package/dist/Add.css +6 -6
  15. package/dist/Add.mjs +10 -10
  16. package/dist/AlertDialog.cjs +3 -3
  17. package/dist/AlertDialog.css +3 -3
  18. package/dist/AlertDialog.mjs +3 -3
  19. package/dist/Asterisk.cjs +6 -6
  20. package/dist/Asterisk.css +4 -4
  21. package/dist/Asterisk.mjs +6 -6
  22. package/dist/Avatar.cjs +14 -14
  23. package/dist/Avatar.css +14 -14
  24. package/dist/Avatar.mjs +14 -14
  25. package/dist/AvatarGroup.cjs +120 -120
  26. package/dist/AvatarGroup.css +37 -37
  27. package/dist/AvatarGroup.mjs +120 -120
  28. package/dist/Badge.cjs +196 -196
  29. package/dist/Badge.css +129 -129
  30. package/dist/Badge.mjs +196 -196
  31. package/dist/Breadcrumbs.cjs +231 -231
  32. package/dist/Breadcrumbs.css +102 -102
  33. package/dist/Breadcrumbs.mjs +231 -231
  34. package/dist/Button.cjs +328 -328
  35. package/dist/Button.css +176 -176
  36. package/dist/Button.mjs +328 -328
  37. package/dist/ButtonGroup.cjs +20 -20
  38. package/dist/ButtonGroup.css +15 -15
  39. package/dist/ButtonGroup.mjs +20 -20
  40. package/dist/Card.cjs +294 -294
  41. package/dist/Card.css +205 -205
  42. package/dist/Card.mjs +294 -294
  43. package/dist/CardView.cjs +17 -17
  44. package/dist/CardView.css +17 -17
  45. package/dist/CardView.mjs +17 -17
  46. package/dist/CenterBaseline.cjs +1 -1
  47. package/dist/CenterBaseline.css +2 -2
  48. package/dist/CenterBaseline.mjs +1 -1
  49. package/dist/Checkbox.cjs +160 -160
  50. package/dist/Checkbox.css +94 -94
  51. package/dist/Checkbox.mjs +160 -160
  52. package/dist/CheckboxGroup.cjs +43 -43
  53. package/dist/CheckboxGroup.css +41 -41
  54. package/dist/CheckboxGroup.mjs +43 -43
  55. package/dist/Checkmark.cjs +12 -12
  56. package/dist/Checkmark.css +8 -8
  57. package/dist/Checkmark.mjs +12 -12
  58. package/dist/Chevron.cjs +12 -12
  59. package/dist/Chevron.css +10 -10
  60. package/dist/Chevron.mjs +12 -12
  61. package/dist/ClearButton.cjs +29 -29
  62. package/dist/ClearButton.css +29 -29
  63. package/dist/ClearButton.mjs +29 -29
  64. package/dist/CloseButton.cjs +54 -54
  65. package/dist/CloseButton.css +46 -46
  66. package/dist/CloseButton.mjs +54 -54
  67. package/dist/ColorArea.cjs +16 -16
  68. package/dist/ColorArea.css +16 -16
  69. package/dist/ColorArea.mjs +16 -16
  70. package/dist/ColorField.cjs +31 -31
  71. package/dist/ColorField.css +31 -31
  72. package/dist/ColorField.mjs +31 -31
  73. package/dist/ColorHandle.cjs +27 -27
  74. package/dist/ColorHandle.css +42 -42
  75. package/dist/ColorHandle.mjs +27 -27
  76. package/dist/ColorSlider.cjs +108 -108
  77. package/dist/ColorSlider.css +56 -56
  78. package/dist/ColorSlider.mjs +108 -108
  79. package/dist/ColorSwatch.cjs +29 -29
  80. package/dist/ColorSwatch.css +29 -29
  81. package/dist/ColorSwatch.mjs +29 -29
  82. package/dist/ColorSwatchPicker.cjs +27 -27
  83. package/dist/ColorSwatchPicker.css +46 -46
  84. package/dist/ColorSwatchPicker.mjs +27 -27
  85. package/dist/ColorWheel.cjs +26 -26
  86. package/dist/ColorWheel.css +17 -17
  87. package/dist/ColorWheel.mjs +26 -26
  88. package/dist/ComboBox.cjs +379 -379
  89. package/dist/ComboBox.cjs.map +1 -1
  90. package/dist/ComboBox.css +179 -179
  91. package/dist/ComboBox.css.map +1 -1
  92. package/dist/ComboBox.mjs +379 -379
  93. package/dist/ComboBox.mjs.map +1 -1
  94. package/dist/ContextualHelp.cjs +5 -5
  95. package/dist/ContextualHelp.css +47 -47
  96. package/dist/ContextualHelp.mjs +5 -5
  97. package/dist/Cross.cjs +14 -14
  98. package/dist/Cross.css +10 -10
  99. package/dist/Cross.mjs +14 -14
  100. package/dist/CustomDialog.cjs +25 -25
  101. package/dist/CustomDialog.css +25 -25
  102. package/dist/CustomDialog.mjs +25 -25
  103. package/dist/Dash.cjs +10 -10
  104. package/dist/Dash.css +6 -6
  105. package/dist/Dash.mjs +10 -10
  106. package/dist/Dialog.cjs +17 -17
  107. package/dist/Dialog.css +70 -70
  108. package/dist/Dialog.mjs +17 -17
  109. package/dist/Disclosure.cjs +129 -129
  110. package/dist/Disclosure.css +104 -104
  111. package/dist/Disclosure.mjs +129 -129
  112. package/dist/Divider.cjs +25 -25
  113. package/dist/Divider.css +25 -25
  114. package/dist/Divider.mjs +25 -25
  115. package/dist/DropZone.cjs +58 -58
  116. package/dist/DropZone.css +54 -54
  117. package/dist/DropZone.mjs +58 -58
  118. package/dist/Field.cjs +340 -340
  119. package/dist/Field.css +144 -144
  120. package/dist/Field.mjs +340 -340
  121. package/dist/Form.cjs +9 -9
  122. package/dist/Form.css +9 -9
  123. package/dist/Form.mjs +9 -9
  124. package/dist/FullscreenDialog.cjs +5 -5
  125. package/dist/FullscreenDialog.css +79 -79
  126. package/dist/FullscreenDialog.mjs +5 -5
  127. package/dist/IllustratedMessage.cjs +219 -219
  128. package/dist/IllustratedMessage.css +74 -74
  129. package/dist/IllustratedMessage.mjs +219 -219
  130. package/dist/Image.cjs +13 -13
  131. package/dist/Image.css +14 -14
  132. package/dist/Image.mjs +13 -13
  133. package/dist/InlineAlert.cjs +108 -108
  134. package/dist/InlineAlert.css +90 -90
  135. package/dist/InlineAlert.mjs +108 -108
  136. package/dist/Link.cjs +49 -49
  137. package/dist/Link.css +41 -41
  138. package/dist/Link.mjs +49 -49
  139. package/dist/LinkOut.cjs +8 -8
  140. package/dist/LinkOut.css +8 -8
  141. package/dist/LinkOut.mjs +8 -8
  142. package/dist/Menu.cjs +422 -422
  143. package/dist/Menu.css +180 -180
  144. package/dist/Menu.mjs +422 -422
  145. package/dist/Meter.cjs +153 -153
  146. package/dist/Meter.css +95 -95
  147. package/dist/Meter.mjs +153 -153
  148. package/dist/Modal.cjs +58 -58
  149. package/dist/Modal.css +50 -50
  150. package/dist/Modal.mjs +58 -58
  151. package/dist/NotificationBadge.cjs +56 -56
  152. package/dist/NotificationBadge.css +51 -51
  153. package/dist/NotificationBadge.mjs +56 -56
  154. package/dist/NumberField.cjs +114 -114
  155. package/dist/NumberField.css +103 -103
  156. package/dist/NumberField.mjs +114 -114
  157. package/dist/Picker.cjs +271 -271
  158. package/dist/Picker.css +169 -169
  159. package/dist/Picker.mjs +271 -271
  160. package/dist/Popover.cjs +85 -85
  161. package/dist/Popover.css +66 -66
  162. package/dist/Popover.mjs +85 -85
  163. package/dist/ProgressBar.cjs +163 -163
  164. package/dist/ProgressBar.css +103 -103
  165. package/dist/ProgressBar.mjs +163 -163
  166. package/dist/ProgressCircle.cjs +17 -17
  167. package/dist/ProgressCircle.css +17 -17
  168. package/dist/ProgressCircle.mjs +17 -17
  169. package/dist/Provider.cjs +10 -10
  170. package/dist/Provider.css +9 -9
  171. package/dist/Provider.mjs +10 -10
  172. package/dist/Radio.cjs +144 -144
  173. package/dist/Radio.css +81 -81
  174. package/dist/Radio.mjs +144 -144
  175. package/dist/RadioGroup.cjs +41 -41
  176. package/dist/RadioGroup.css +41 -41
  177. package/dist/RadioGroup.mjs +41 -41
  178. package/dist/SearchField.cjs +41 -41
  179. package/dist/SearchField.css +49 -49
  180. package/dist/SearchField.mjs +41 -41
  181. package/dist/SegmentedControl.cjs +171 -171
  182. package/dist/SegmentedControl.css +120 -120
  183. package/dist/SegmentedControl.mjs +171 -171
  184. package/dist/Slider.cjs +288 -288
  185. package/dist/Slider.css +152 -152
  186. package/dist/Slider.mjs +288 -288
  187. package/dist/StatusLight.cjs +115 -115
  188. package/dist/StatusLight.css +63 -63
  189. package/dist/StatusLight.mjs +115 -115
  190. package/dist/Switch.cjs +152 -152
  191. package/dist/Switch.css +76 -76
  192. package/dist/Switch.mjs +152 -152
  193. package/dist/TableView.cjs +310 -310
  194. package/dist/TableView.css +172 -172
  195. package/dist/TableView.mjs +310 -310
  196. package/dist/Tabs.cjs +108 -108
  197. package/dist/Tabs.css +92 -92
  198. package/dist/Tabs.mjs +108 -108
  199. package/dist/TabsPicker.cjs +123 -123
  200. package/dist/TabsPicker.css +112 -112
  201. package/dist/TabsPicker.mjs +123 -123
  202. package/dist/TagGroup.cjs +202 -202
  203. package/dist/TagGroup.css +147 -147
  204. package/dist/TagGroup.mjs +202 -202
  205. package/dist/TextField.cjs +57 -57
  206. package/dist/TextField.css +57 -57
  207. package/dist/TextField.mjs +57 -57
  208. package/dist/Toast.cjs +118 -118
  209. package/dist/Toast.css +105 -105
  210. package/dist/Toast.mjs +118 -118
  211. package/dist/ToggleButton.cjs +3 -3
  212. package/dist/ToggleButton.css +12 -12
  213. package/dist/ToggleButton.mjs +3 -3
  214. package/dist/Tooltip.cjs +81 -81
  215. package/dist/Tooltip.css +68 -68
  216. package/dist/Tooltip.mjs +81 -81
  217. package/dist/TreeView.cjs +142 -142
  218. package/dist/TreeView.css +143 -143
  219. package/dist/TreeView.mjs +142 -142
  220. package/icons/Icon.cjs +10 -10
  221. package/icons/Icon.css +9 -9
  222. package/icons/Icon.mjs +10 -10
  223. package/icons/Skeleton.cjs +2 -2
  224. package/icons/Skeleton.css +6 -6
  225. package/icons/Skeleton.mjs +2 -2
  226. package/package.json +20 -20
  227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AW,qCAAe;kDAAC;wCAAI;kDAClC,iBAAiB,YAAY,gBAAgB,MAAM,CAAC,mBAAmB,gBAAgB,MAAM,CAAC;;gCAGnG,OAAO;gCACP,WAAW,0CAAQ;0CAAC;gCAAI;0CACvB;;;;;;;;AAQjB;AAEO,MAAM,4CAAU,WAAW,GAAG,CAAA,GAAA,0BAAkB,EAAE,aAAa,SAAS,QAAQ,QAAC,IAAI,EAAkC,EAAE,GAAiC,EAAE,IAAmB;IACpL,IAAI,YAAY,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,uBAAe;IAE1C,IAAI,WAAW,KAAK,OAAO,IAAI,QAAQ,UAAU,UAAU,CAAC,OAAO,CAAC,KAAK,OAAO;IAChF,IAAI,KAAK,OAAO,IAAI,QAAQ,CAAC,YAAY,SAAS,IAAI,KAAK,eAAgB,SAAS,IAAI,KAAK,YAAY,SAAS,OAAO,IAAI,MAC3H,OAAO;IAGT,qBACE,gBAAC;QAAI,WAAW,uCAAiB;kBAAC;QAAI;kBACpC,cAAA,gBAAC;YAAI,KAAK;YAAK,WAAW;;;AAGhC","sources":["packages/@react-spectrum/s2/src/ComboBox.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n ComboBox as AriaComboBox,\n ComboBoxProps as AriaComboBoxProps,\n ListBoxSection as AriaListBoxSection,\n PopoverProps as AriaPopoverProps,\n Button,\n ButtonRenderProps,\n Collection,\n ComboBoxStateContext,\n ContextValue,\n InputContext,\n ListBox,\n ListBoxItem,\n ListBoxItemProps,\n ListBoxProps,\n ListLayout,\n ListStateContext,\n Provider,\n SectionProps,\n UNSTABLE_ListBoxLoadingSentinel,\n Virtualizer\n} from 'react-aria-components';\nimport {AsyncLoadable, HelpTextProps, LoadingState, SpectrumLabelableProps} from '@react-types/shared';\nimport {baseColor, edgeToText, focusRing, space, style} from '../style' with {type: 'macro'};\nimport {centerBaseline} from './CenterBaseline';\nimport {centerPadding, control, controlBorderRadius, controlFont, controlSize, field, fieldInput, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};\nimport {\n checkmark,\n description,\n icon,\n iconCenterWrapper,\n label,\n sectionHeading\n} from './Menu';\nimport CheckmarkIcon from '../ui-icons/Checkmark';\nimport ChevronIcon from '../ui-icons/Chevron';\nimport {createContext, CSSProperties, ForwardedRef, forwardRef, ReactNode, Ref, useCallback, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState} from 'react';\nimport {createFocusableRef} from '@react-spectrum/utils';\nimport {createLeafComponent} from '@react-aria/collections';\nimport {FieldErrorIcon, FieldGroup, FieldLabel, HelpText, Input} from './Field';\nimport {FormContext, useFormProps} from './Form';\nimport {forwardRefType} from './types';\nimport {HeaderContext, HeadingContext, Text, TextContext} from './Content';\nimport {IconContext} from './Icon';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeRefs, useResizeObserver, useSlotId} from '@react-aria/utils';\nimport {Node} from 'react-stately';\nimport {Placement} from 'react-aria';\nimport {PopoverBase} from './Popover';\nimport {pressScale} from './pressScale';\nimport {ProgressCircle} from './ProgressCircle';\nimport {TextFieldRef} from '@react-types/textfield';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useScale} from './utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface ComboboxStyleProps {\n /**\n * The size of the Combobox.\n *\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L' | 'XL'\n}\nexport interface ComboBoxProps<T extends object> extends\n Omit<AriaComboBoxProps<T>, 'children' | 'style' | 'className' | 'defaultFilter' | 'allowsEmptyCollection'>,\n ComboboxStyleProps,\n StyleProps,\n SpectrumLabelableProps,\n HelpTextProps,\n Pick<ListBoxProps<T>, 'items'>,\n Pick<AriaPopoverProps, 'shouldFlip'>,\n Pick<AsyncLoadable, 'onLoadMore'> {\n /** The contents of the collection. */\n children: ReactNode | ((item: T) => ReactNode),\n /**\n * Direction the menu will render relative to the ComboBox.\n *\n * @default 'bottom'\n */\n direction?: 'bottom' | 'top',\n /**\n * Alignment of the menu relative to the input target.\n *\n * @default 'start'\n */\n align?: 'start' | 'end',\n /** Width of the menu. By default, matches width of the trigger. Note that the minimum width of the dropdown is always equal to the trigger's width. */\n menuWidth?: number,\n /** The current loading state of the ComboBox. Determines whether or not the progress circle should be shown. */\n loadingState?: LoadingState\n}\n\nexport const ComboBoxContext = createContext<ContextValue<Partial<ComboBoxProps<any>>, TextFieldRef>>(null);\n\nconst inputButton = style<ButtonRenderProps & {isOpen: boolean, size: 'S' | 'M' | 'L' | 'XL'}>({\n ...controlBorderRadius('sm'),\n display: 'flex',\n outlineStyle: 'none',\n textAlign: 'center',\n borderStyle: 'none',\n alignItems: 'center',\n justifyContent: 'center',\n size: {\n size: {\n S: 16,\n M: 20,\n L: 24,\n XL: 32\n }\n },\n marginStart: 'text-to-control',\n aspectRatio: 'square',\n flexShrink: 0,\n transition: {\n default: 'default',\n forcedColors: 'none'\n },\n backgroundColor: {\n default: baseColor('gray-100'),\n isOpen: 'gray-200',\n isDisabled: 'disabled',\n forcedColors: {\n default: 'ButtonText',\n isHovered: 'Highlight',\n isOpen: 'Highlight',\n isDisabled: 'GrayText'\n }\n },\n color: {\n default: baseColor('neutral'),\n isDisabled: 'disabled',\n forcedColors: 'ButtonFace'\n }\n});\n\nconst iconStyles = style({\n flexShrink: 0,\n rotate: 90,\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n }\n});\n\nconst loadingWrapperStyles = style({\n gridColumnStart: '1',\n gridColumnEnd: '-1',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n marginY: 8\n});\n\nconst progressCircleStyles = style({\n size: {\n size: {\n S: 16,\n M: 20,\n L: 22,\n XL: 26\n }\n },\n marginStart: {\n isInput: 'text-to-visual'\n }\n});\n\nconst emptyStateText = style({\n height: {\n size: {\n S: 24,\n M: 32,\n L: 40,\n XL: 48\n }\n },\n font: {\n size: {\n S: 'ui-sm',\n M: 'ui',\n L: 'ui-lg',\n XL: 'ui-xl'\n }\n },\n display: 'flex',\n alignItems: 'center',\n paddingStart: 'edge-to-text'\n});\n\nexport let listbox = style<{size: 'S' | 'M' | 'L' | 'XL'}>({\n width: 'full',\n boxSizing: 'border-box',\n maxHeight: '[inherit]',\n // TODO: Might help with horizontal scrolling happening on Windows, will need to check somehow. Otherwise, revert back to overflow: auto\n overflowY: 'auto',\n overflowX: 'hidden',\n fontFamily: 'sans',\n fontSize: controlFont()\n});\n\nexport let listboxItem = style({\n ...focusRing(),\n ...control({shape: 'default', wrap: true, icon: true}),\n columnGap: 0,\n paddingX: 0,\n paddingBottom: '--labelPadding',\n backgroundColor: {\n default: 'transparent',\n isFocused: baseColor('gray-100').isFocusVisible\n },\n color: {\n default: baseColor('neutral'),\n isDisabled: {\n default: 'disabled',\n forcedColors: 'GrayText'\n }\n },\n position: 'relative',\n gridColumnStart: 1,\n gridColumnEnd: -1,\n display: 'grid',\n gridTemplateAreas: [\n '. checkmark icon label .',\n '. . . description .'\n ],\n gridTemplateColumns: {\n size: {\n S: [edgeToText(24), 'auto', 'auto', 'minmax(0, 1fr)', edgeToText(24)],\n M: [edgeToText(32), 'auto', 'auto', 'minmax(0, 1fr)', edgeToText(32)],\n L: [edgeToText(40), 'auto', 'auto', 'minmax(0, 1fr)', edgeToText(40)],\n XL: [edgeToText(48), 'auto', 'auto', 'minmax(0, 1fr)', edgeToText(48)]\n }\n },\n gridTemplateRows: {\n // min-content prevents second row from 'auto'ing to a size larger then 0 when empty\n default: 'auto minmax(0, min-content)',\n ':has([slot=description])': 'auto auto'\n },\n rowGap: {\n ':has([slot=description])': space(1)\n },\n alignItems: 'baseline',\n minHeight: controlSize(),\n height: 'min',\n textDecoration: 'none',\n cursor: {\n default: 'default',\n isLink: 'pointer'\n },\n transition: 'default'\n}, getAllowedOverrides());\n\nexport let listboxHeader = style<{size?: 'S' | 'M' | 'L' | 'XL'}>({\n color: 'neutral',\n boxSizing: 'border-box',\n minHeight: controlSize(),\n paddingY: centerPadding(),\n marginX: {\n size: {\n S: `[${edgeToText(24)}]`,\n M: `[${edgeToText(32)}]`,\n L: `[${edgeToText(40)}]`,\n XL: `[${edgeToText(48)}]`\n }\n }\n});\n\nconst separatorWrapper = style({\n display: 'flex',\n marginX: {\n size: {\n S: `[${edgeToText(24)}]`,\n M: `[${edgeToText(32)}]`,\n L: `[${edgeToText(40)}]`,\n XL: `[${edgeToText(48)}]`\n }\n },\n height: 12,\n alignItems: 'center'\n});\n\nconst dividerStyle = style({\n backgroundColor: {\n default: 'gray-200',\n forcedColors: 'ButtonBorder'\n },\n borderRadius: 'full',\n height: '[2px]',\n width: 'full'\n});\n\n// Not from any design, just following the sizing of the existing rows\nexport const LOADER_ROW_HEIGHTS = {\n S: {\n medium: 24,\n large: 30\n },\n M: {\n medium: 32,\n large: 40\n },\n L: {\n medium: 40,\n large: 50\n },\n XL: {\n medium: 48,\n large: 60\n }\n};\n\nlet InternalComboboxContext = createContext<{size: 'S' | 'M' | 'L' | 'XL'}>({size: 'M'});\n\n/**\n * ComboBox allow users to choose a single option from a collapsible list of options when space is limited.\n */\nexport const ComboBox = /*#__PURE__*/ (forwardRef as forwardRefType)(function ComboBox<T extends object>(props: ComboBoxProps<T>, ref: Ref<TextFieldRef>) {\n [props, ref] = useSpectrumContextProps(props, ref, ComboBoxContext);\n\n let formContext = useContext(FormContext);\n props = useFormProps(props);\n let {\n size = 'M',\n labelPosition = 'top',\n UNSAFE_className = '',\n UNSAFE_style,\n loadingState,\n ...comboBoxProps\n } = props;\n\n return (\n <AriaComboBox\n {...comboBoxProps}\n allowsEmptyCollection={loadingState != null}\n style={UNSAFE_style}\n className={UNSAFE_className + style(field(), getAllowedOverrides())({\n isInForm: !!formContext,\n labelPosition,\n size\n }, props.styles)}>\n {({isDisabled, isOpen, isRequired, isInvalid}) => (\n <ComboboxInner {...props} isDisabled={isDisabled} isOpen={isOpen} isRequired={isRequired} isInvalid={isInvalid} ref={ref} />\n )}\n </AriaComboBox>\n );\n});\n\nexport interface ComboBoxItemProps extends Omit<ListBoxItemProps, 'children' | 'style' | 'className'>, StyleProps {\n children: ReactNode\n}\n\nconst checkmarkIconSize = {\n S: 'XS',\n M: 'M',\n L: 'L',\n XL: 'XL'\n} as const;\n\nexport function ComboBoxItem(props: ComboBoxItemProps): ReactNode {\n let ref = useRef(null);\n let isLink = props.href != null;\n let {size} = useContext(InternalComboboxContext);\n return (\n <ListBoxItem\n {...props}\n ref={ref}\n textValue={props.textValue || (typeof props.children === 'string' ? props.children as string : undefined)}\n style={pressScale(ref, props.UNSAFE_style)}\n className={renderProps => (props.UNSAFE_className || '') + listboxItem({...renderProps, size, isLink}, props.styles)}>\n {(renderProps) => {\n let {children} = props;\n return (\n <>\n <Provider\n values={[\n [IconContext, {\n slots: {\n icon: {render: centerBaseline({slot: 'icon', styles: iconCenterWrapper}), styles: icon}\n }\n }],\n [TextContext, {\n slots: {\n label: {styles: label({size})},\n description: {styles: description({...renderProps, size})}\n }\n }]\n ]}>\n {!isLink && <CheckmarkIcon size={checkmarkIconSize[size]} className={checkmark({...renderProps, size})} />}\n {typeof children === 'string' ? <Text slot=\"label\">{children}</Text> : children}\n </Provider>\n </>\n );\n }}\n </ListBoxItem>\n );\n}\n\nexport interface ComboBoxSectionProps<T extends object> extends SectionProps<T> {}\nexport function ComboBoxSection<T extends object>(props: ComboBoxSectionProps<T>): ReactNode {\n let {size} = useContext(InternalComboboxContext);\n return (\n <>\n <AriaListBoxSection\n {...props}>\n {props.children}\n </AriaListBoxSection>\n <Divider size={size} />\n </>\n );\n}\n\nconst ComboboxInner = forwardRef(function ComboboxInner(props: ComboBoxProps<any> & {isOpen: boolean}, ref: ForwardedRef<TextFieldRef | null>) {\n let {\n direction = 'bottom',\n align = 'start',\n shouldFlip = true,\n menuWidth,\n label,\n description: descriptionMessage,\n errorMessage,\n children,\n items,\n size = 'M',\n labelPosition = 'top',\n labelAlign = 'start',\n necessityIndicator,\n loadingState,\n isDisabled,\n isOpen,\n isRequired,\n isInvalid,\n menuTrigger,\n onLoadMore\n } = props;\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/s2');\n let inputRef = useRef<HTMLInputElement>(null);\n let domRef = useRef<HTMLDivElement>(null);\n let buttonRef = useRef<HTMLButtonElement>(null);\n // Expose imperative interface for ref\n useImperativeHandle(ref, () => ({\n ...createFocusableRef(domRef, inputRef),\n select() {\n if (inputRef.current) {\n inputRef.current.select();\n }\n },\n getInputElement() {\n return inputRef.current;\n }\n }));\n\n // Better way to encode this into a style? need to account for flipping\n let menuOffset: number;\n if (size === 'S') {\n menuOffset = 6;\n } else if (size === 'M') {\n menuOffset = 6;\n } else if (size === 'L') {\n menuOffset = 7;\n } else {\n menuOffset = 8;\n }\n\n let triggerRef = useRef<HTMLDivElement>(null);\n // Make menu width match input + button\n let [triggerWidth, setTriggerWidth] = useState<string | null>(null);\n let onResize = useCallback(() => {\n if (triggerRef.current) {\n let inputRect = triggerRef.current.getBoundingClientRect();\n let minX = inputRect.left;\n let maxX = inputRect.right;\n setTriggerWidth((maxX - minX) + 'px');\n }\n }, [triggerRef, setTriggerWidth]);\n\n useResizeObserver({\n ref: triggerRef,\n onResize: onResize\n });\n\n let state = useContext(ComboBoxStateContext);\n let timeout = useRef<ReturnType<typeof setTimeout> | null>(null);\n let [showLoading, setShowLoading] = useState(false);\n let isLoadingOrFiltering = loadingState === 'loading' || loadingState === 'filtering';\n {/* Logic copied from S1 */}\n let showFieldSpinner = useMemo(() => showLoading && (isOpen || menuTrigger === 'manual' || loadingState === 'loading'), [showLoading, isOpen, menuTrigger, loadingState]);\n let spinnerId = useSlotId([showFieldSpinner]);\n\n let inputValue = state?.inputValue;\n let lastInputValue = useRef(inputValue);\n useEffect(() => {\n if (isLoadingOrFiltering && !showLoading) {\n if (timeout.current === null) {\n timeout.current = setTimeout(() => {\n setShowLoading(true);\n }, 500);\n }\n\n // If user is typing, clear the timer and restart since it is a new request\n if (inputValue !== lastInputValue.current) {\n clearTimeout(timeout.current);\n timeout.current = setTimeout(() => {\n setShowLoading(true);\n }, 500);\n }\n } else if (!isLoadingOrFiltering) {\n // If loading is no longer happening, clear any timers and hide the loading circle\n setShowLoading(false);\n if (timeout.current) {\n clearTimeout(timeout.current);\n }\n timeout.current = null;\n }\n\n lastInputValue.current = inputValue;\n }, [isLoadingOrFiltering, showLoading, inputValue]);\n\n useEffect(() => {\n return () => {\n if (timeout.current) {\n clearTimeout(timeout.current);\n }\n timeout.current = null;\n };\n }, []);\n\n let renderer;\n let listBoxLoadingCircle = (\n <UNSTABLE_ListBoxLoadingSentinel\n // Only show the spinner in the list when loading more\n isLoading={loadingState === 'loadingMore'}\n onLoadMore={onLoadMore}\n className={loadingWrapperStyles}>\n <ProgressCircle\n isIndeterminate\n size=\"S\"\n styles={progressCircleStyles({size})}\n // Same loading string as table\n aria-label={stringFormatter.format('table.loadingMore')} />\n </UNSTABLE_ListBoxLoadingSentinel>\n );\n\n if (typeof children === 'function' && items) {\n renderer = (\n <>\n <Collection items={items}>\n {children}\n </Collection>\n {listBoxLoadingCircle}\n </>\n );\n } else {\n // TODO: is there a case where the user might provide items to the Combobox but doesn't provide a function renderer?\n // Same case for other components that have this logic (TableView/CardView/Picker)\n renderer = (\n <>\n {children}\n {listBoxLoadingCircle}\n </>\n );\n }\n let scale = useScale();\n\n return (\n <>\n <InternalComboboxContext.Provider value={{size}}>\n <FieldLabel\n isDisabled={isDisabled}\n isRequired={isRequired}\n size={size}\n labelPosition={labelPosition}\n labelAlign={labelAlign}\n necessityIndicator={necessityIndicator}\n contextualHelp={props.contextualHelp}>\n {label}\n </FieldLabel>\n <FieldGroup\n ref={triggerRef}\n role=\"presentation\"\n isDisabled={isDisabled}\n isInvalid={isInvalid}\n size={size}\n styles={style({\n ...fieldInput(),\n paddingStart: 'edge-to-text',\n // better way to do this one? it's not actually half, they are\n // [9, 4], [12, 6], [15, 8], [18, 8]\n // also noticed that our measurement is including the border, making the padding too much\n paddingEnd: 'calc(self(height, self(minHeight)) * 3 / 16)'\n })({size})}>\n <InputContext.Consumer>\n {ctx => (\n <InputContext.Provider value={{...ctx, ref: mergeRefs((ctx as any)?.ref, inputRef)}}>\n <Input aria-describedby={spinnerId} />\n </InputContext.Provider>\n )}\n </InputContext.Consumer>\n {isInvalid && <FieldErrorIcon isDisabled={isDisabled} />}\n {showFieldSpinner && (\n <ProgressCircle\n id={spinnerId}\n isIndeterminate\n size=\"S\"\n styles={progressCircleStyles({size, isInput: true})}\n aria-label={stringFormatter.format('table.loading')} />\n )}\n <Button\n ref={buttonRef}\n // Prevent press scale from sticking while ComboBox is open.\n // @ts-ignore\n isPressed={false}\n style={renderProps => pressScale(buttonRef)(renderProps)}\n className={renderProps => inputButton({\n ...renderProps,\n size,\n isOpen\n })}>\n <ChevronIcon\n size={size}\n className={iconStyles} />\n </Button>\n </FieldGroup>\n <HelpText\n size={size}\n isDisabled={isDisabled}\n isInvalid={isInvalid}\n description={descriptionMessage}>\n {errorMessage}\n </HelpText>\n <PopoverBase\n hideArrow\n triggerRef={triggerRef}\n offset={menuOffset}\n placement={`${direction} ${align}` as Placement}\n shouldFlip={shouldFlip}\n UNSAFE_style={{\n width: menuWidth ? `${menuWidth}px` : undefined,\n // manually subtract border as we can't set Popover to border-box, it causes the contents to spill out\n '--trigger-width': `calc(${triggerWidth} - 2px)`\n } as CSSProperties}\n styles={style({\n minWidth: '--trigger-width',\n width: '--trigger-width'\n })}>\n <Provider\n values={[\n [HeaderContext, {styles: listboxHeader({size})}],\n [HeadingContext, {\n // @ts-ignore\n role: 'presentation',\n styles: sectionHeading\n }],\n [TextContext, {\n slots: {\n 'description': {styles: description({size})}\n }\n }]\n ]}>\n <Virtualizer\n layout={ListLayout}\n layoutOptions={{\n estimatedRowHeight: 32,\n padding: 8,\n estimatedHeadingHeight: 50,\n loaderHeight: LOADER_ROW_HEIGHTS[size][scale]\n }}>\n <ListBox\n renderEmptyState={() => (\n <span className={emptyStateText({size})}>\n {loadingState === 'loading' ? stringFormatter.format('table.loading') : stringFormatter.format('combobox.noResults')}\n </span>\n )}\n items={items}\n className={listbox({size})}>\n {renderer}\n </ListBox>\n </Virtualizer>\n </Provider>\n </PopoverBase>\n </InternalComboboxContext.Provider>\n </>\n );\n});\n\nexport const Divider = /*#__PURE__*/ createLeafComponent('separator', function Divider({size}: {size?: 'S' | 'M' | 'L' | 'XL'}, ref: ForwardedRef<HTMLDivElement>, node: Node<unknown>) {\n let listState = useContext(ListStateContext)!;\n\n let nextNode = node.nextKey != null && listState.collection.getItem(node.nextKey);\n if (node.prevKey == null || !nextNode || nextNode.type === 'separator' || (nextNode.type === 'loader' && nextNode.nextKey == null)) {\n return null;\n }\n\n return (\n <div className={separatorWrapper({size})}>\n <div ref={ref} className={dividerStyle} />\n </div>\n );\n});\n"],"names":[],"version":3,"file":"ComboBox.mjs.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;AAgGM,MAAM,0DAAkB,CAAA,GAAA,oBAAY,EAA2D;AAEtG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCN,MAAM;AASN,MAAM;AASN,MAAM;;;;;;;;;;;;;;;;AAcN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWJ,IAAI;;;;;;;;;;;;;;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AAY,SAAS,OAAO,IAAI,MAC3H,OAAO;IAGT,qBACE,gBAAC;QAAI,WAAW,uCAAiB;kBAAC;QAAI;kBACpC,cAAA,gBAAC;YAAI,KAAK;YAAK,WAAW;;;AAGhC","sources":["packages/@react-spectrum/s2/src/ComboBox.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {\n ComboBox as AriaComboBox,\n ComboBoxProps as AriaComboBoxProps,\n ListBoxSection as AriaListBoxSection,\n PopoverProps as AriaPopoverProps,\n Button,\n ButtonRenderProps,\n Collection,\n ComboBoxStateContext,\n ContextValue,\n InputContext,\n ListBox,\n ListBoxItem,\n ListBoxItemProps,\n ListBoxProps,\n ListLayout,\n ListStateContext,\n Provider,\n SectionProps,\n UNSTABLE_ListBoxLoadingSentinel,\n Virtualizer\n} from 'react-aria-components';\nimport {AsyncLoadable, HelpTextProps, LoadingState, SpectrumLabelableProps} from '@react-types/shared';\nimport {baseColor, edgeToText, focusRing, space, style} from '../style' with {type: 'macro'};\nimport {centerBaseline} from './CenterBaseline';\nimport {centerPadding, control, controlBorderRadius, controlFont, controlSize, field, fieldInput, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};\nimport {\n checkmark,\n description,\n icon,\n iconCenterWrapper,\n label,\n sectionHeading\n} from './Menu';\nimport CheckmarkIcon from '../ui-icons/Checkmark';\nimport ChevronIcon from '../ui-icons/Chevron';\nimport {createContext, CSSProperties, ForwardedRef, forwardRef, ReactNode, Ref, useCallback, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState} from 'react';\nimport {createFocusableRef} from '@react-spectrum/utils';\nimport {createLeafComponent} from '@react-aria/collections';\nimport {FieldErrorIcon, FieldGroup, FieldLabel, HelpText, Input} from './Field';\nimport {FormContext, useFormProps} from './Form';\nimport {forwardRefType} from './types';\nimport {HeaderContext, HeadingContext, Text, TextContext} from './Content';\nimport {IconContext} from './Icon';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeRefs, useResizeObserver, useSlotId} from '@react-aria/utils';\nimport {Node} from 'react-stately';\nimport {Placement} from 'react-aria';\nimport {PopoverBase} from './Popover';\nimport {pressScale} from './pressScale';\nimport {ProgressCircle} from './ProgressCircle';\nimport {TextFieldRef} from '@react-types/textfield';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useScale} from './utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface ComboboxStyleProps {\n /**\n * The size of the Combobox.\n *\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L' | 'XL'\n}\nexport interface ComboBoxProps<T extends object> extends\n Omit<AriaComboBoxProps<T>, 'children' | 'style' | 'className' | 'defaultFilter' | 'allowsEmptyCollection'>,\n ComboboxStyleProps,\n StyleProps,\n SpectrumLabelableProps,\n HelpTextProps,\n Pick<ListBoxProps<T>, 'items'>,\n Pick<AriaPopoverProps, 'shouldFlip'>,\n Pick<AsyncLoadable, 'onLoadMore'> {\n /** The contents of the collection. */\n children: ReactNode | ((item: T) => ReactNode),\n /**\n * Direction the menu will render relative to the ComboBox.\n *\n * @default 'bottom'\n */\n direction?: 'bottom' | 'top',\n /**\n * Alignment of the menu relative to the input target.\n *\n * @default 'start'\n */\n align?: 'start' | 'end',\n /** Width of the menu. By default, matches width of the trigger. Note that the minimum width of the dropdown is always equal to the trigger's width. */\n menuWidth?: number,\n /** The current loading state of the ComboBox. Determines whether or not the progress circle should be shown. */\n loadingState?: LoadingState\n}\n\nexport const ComboBoxContext = createContext<ContextValue<Partial<ComboBoxProps<any>>, TextFieldRef>>(null);\n\nconst inputButton = style<ButtonRenderProps & {isOpen: boolean, size: 'S' | 'M' | 'L' | 'XL'}>({\n ...controlBorderRadius('sm'),\n display: 'flex',\n outlineStyle: 'none',\n textAlign: 'center',\n borderStyle: 'none',\n alignItems: 'center',\n justifyContent: 'center',\n size: {\n size: {\n S: 16,\n M: 20,\n L: 24,\n XL: 32\n }\n },\n marginStart: 'text-to-control',\n aspectRatio: 'square',\n flexShrink: 0,\n transition: {\n default: 'default',\n forcedColors: 'none'\n },\n backgroundColor: {\n default: baseColor('gray-100'),\n isOpen: 'gray-200',\n isDisabled: 'disabled',\n forcedColors: {\n default: 'ButtonText',\n isHovered: 'Highlight',\n isOpen: 'Highlight',\n isDisabled: 'GrayText'\n }\n },\n color: {\n default: baseColor('neutral'),\n isDisabled: 'disabled',\n forcedColors: 'ButtonFace'\n }\n});\n\nconst iconStyles = style({\n flexShrink: 0,\n rotate: 90,\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n }\n});\n\nconst loadingWrapperStyles = style({\n gridColumnStart: '1',\n gridColumnEnd: '-1',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n marginY: 8\n});\n\nconst progressCircleStyles = style({\n size: {\n size: {\n S: 16,\n M: 20,\n L: 22,\n XL: 26\n }\n },\n marginStart: {\n isInput: 'text-to-visual'\n }\n});\n\nconst emptyStateText = style({\n height: {\n size: {\n S: 24,\n M: 32,\n L: 40,\n XL: 48\n }\n },\n font: {\n size: {\n S: 'ui-sm',\n M: 'ui',\n L: 'ui-lg',\n XL: 'ui-xl'\n }\n },\n display: 'flex',\n alignItems: 'center',\n paddingStart: 'edge-to-text'\n});\n\nexport let listbox = style<{size: 'S' | 'M' | 'L' | 'XL'}>({\n width: 'full',\n boxSizing: 'border-box',\n maxHeight: '[inherit]',\n // TODO: Might help with horizontal scrolling happening on Windows, will need to check somehow. Otherwise, revert back to overflow: auto\n overflowY: 'auto',\n overflowX: 'hidden',\n fontFamily: 'sans',\n fontSize: controlFont()\n});\n\nexport let listboxItem = style({\n ...focusRing(),\n ...control({shape: 'default', wrap: true, icon: true}),\n columnGap: 0,\n paddingX: 0,\n paddingBottom: '--labelPadding',\n backgroundColor: {\n default: 'transparent',\n isFocused: baseColor('gray-100').isFocusVisible\n },\n color: {\n default: baseColor('neutral'),\n isDisabled: {\n default: 'disabled',\n forcedColors: 'GrayText'\n }\n },\n position: 'relative',\n gridColumnStart: 1,\n gridColumnEnd: -1,\n display: 'grid',\n gridTemplateAreas: [\n '. checkmark icon label .',\n '. . . description .'\n ],\n gridTemplateColumns: {\n size: {\n S: [edgeToText(24), 'auto', 'auto', 'minmax(0, 1fr)', edgeToText(24)],\n M: [edgeToText(32), 'auto', 'auto', 'minmax(0, 1fr)', edgeToText(32)],\n L: [edgeToText(40), 'auto', 'auto', 'minmax(0, 1fr)', edgeToText(40)],\n XL: [edgeToText(48), 'auto', 'auto', 'minmax(0, 1fr)', edgeToText(48)]\n }\n },\n gridTemplateRows: {\n // min-content prevents second row from 'auto'ing to a size larger then 0 when empty\n default: 'auto minmax(0, min-content)',\n ':has([slot=description])': 'auto auto'\n },\n rowGap: {\n ':has([slot=description])': space(1)\n },\n alignItems: 'baseline',\n minHeight: controlSize(),\n height: 'min',\n textDecoration: 'none',\n cursor: {\n default: 'default',\n isLink: 'pointer'\n },\n transition: 'default'\n}, getAllowedOverrides());\n\nexport let listboxHeader = style<{size?: 'S' | 'M' | 'L' | 'XL'}>({\n color: 'neutral',\n boxSizing: 'border-box',\n minHeight: controlSize(),\n paddingY: centerPadding(),\n marginX: {\n size: {\n S: `[${edgeToText(24)}]`,\n M: `[${edgeToText(32)}]`,\n L: `[${edgeToText(40)}]`,\n XL: `[${edgeToText(48)}]`\n }\n }\n});\n\nconst separatorWrapper = style({\n display: 'flex',\n marginX: {\n size: {\n S: `[${edgeToText(24)}]`,\n M: `[${edgeToText(32)}]`,\n L: `[${edgeToText(40)}]`,\n XL: `[${edgeToText(48)}]`\n }\n },\n height: 12,\n alignItems: 'center'\n});\n\nconst dividerStyle = style({\n backgroundColor: {\n default: 'gray-200',\n forcedColors: 'ButtonBorder'\n },\n borderRadius: 'full',\n height: '[2px]',\n width: 'full'\n});\n\n// Not from any design, just following the sizing of the existing rows\nexport const LOADER_ROW_HEIGHTS = {\n S: {\n medium: 24,\n large: 30\n },\n M: {\n medium: 32,\n large: 40\n },\n L: {\n medium: 40,\n large: 50\n },\n XL: {\n medium: 48,\n large: 60\n }\n};\n\nlet InternalComboboxContext = createContext<{size: 'S' | 'M' | 'L' | 'XL'}>({size: 'M'});\n\n/**\n * ComboBox allow users to choose a single option from a collapsible list of options when space is limited.\n */\nexport const ComboBox = /*#__PURE__*/ (forwardRef as forwardRefType)(function ComboBox<T extends object>(props: ComboBoxProps<T>, ref: Ref<TextFieldRef>) {\n [props, ref] = useSpectrumContextProps(props, ref, ComboBoxContext);\n\n let formContext = useContext(FormContext);\n props = useFormProps(props);\n let {\n size = 'M',\n labelPosition = 'top',\n UNSAFE_className = '',\n UNSAFE_style,\n loadingState,\n ...comboBoxProps\n } = props;\n\n return (\n <AriaComboBox\n {...comboBoxProps}\n allowsEmptyCollection={loadingState != null}\n style={UNSAFE_style}\n className={UNSAFE_className + style(field(), getAllowedOverrides())({\n isInForm: !!formContext,\n labelPosition,\n size\n }, props.styles)}>\n {({isDisabled, isOpen, isRequired, isInvalid}) => (\n <ComboboxInner {...props} isDisabled={isDisabled} isOpen={isOpen} isRequired={isRequired} isInvalid={isInvalid} ref={ref} />\n )}\n </AriaComboBox>\n );\n});\n\nexport interface ComboBoxItemProps extends Omit<ListBoxItemProps, 'children' | 'style' | 'className'>, StyleProps {\n children: ReactNode\n}\n\nconst checkmarkIconSize = {\n S: 'XS',\n M: 'M',\n L: 'L',\n XL: 'XL'\n} as const;\n\nexport function ComboBoxItem(props: ComboBoxItemProps): ReactNode {\n let ref = useRef(null);\n let isLink = props.href != null;\n let {size} = useContext(InternalComboboxContext);\n return (\n <ListBoxItem\n {...props}\n ref={ref}\n textValue={props.textValue || (typeof props.children === 'string' ? props.children as string : undefined)}\n style={pressScale(ref, props.UNSAFE_style)}\n className={renderProps => (props.UNSAFE_className || '') + listboxItem({...renderProps, size, isLink}, props.styles)}>\n {(renderProps) => {\n let {children} = props;\n return (\n <>\n <Provider\n values={[\n [IconContext, {\n slots: {\n icon: {render: centerBaseline({slot: 'icon', styles: iconCenterWrapper}), styles: icon}\n }\n }],\n [TextContext, {\n slots: {\n label: {styles: label({size})},\n description: {styles: description({...renderProps, size})}\n }\n }]\n ]}>\n {!isLink && <CheckmarkIcon size={checkmarkIconSize[size]} className={checkmark({...renderProps, size})} />}\n {typeof children === 'string' ? <Text slot=\"label\">{children}</Text> : children}\n </Provider>\n </>\n );\n }}\n </ListBoxItem>\n );\n}\n\nexport interface ComboBoxSectionProps<T extends object> extends SectionProps<T> {}\nexport function ComboBoxSection<T extends object>(props: ComboBoxSectionProps<T>): ReactNode {\n let {size} = useContext(InternalComboboxContext);\n return (\n <>\n <AriaListBoxSection\n {...props}>\n {props.children}\n </AriaListBoxSection>\n <Divider size={size} />\n </>\n );\n}\n\nconst ComboboxInner = forwardRef(function ComboboxInner(props: ComboBoxProps<any> & {isOpen: boolean}, ref: ForwardedRef<TextFieldRef | null>) {\n let {\n direction = 'bottom',\n align = 'start',\n shouldFlip = true,\n menuWidth,\n label,\n description: descriptionMessage,\n errorMessage,\n children,\n defaultItems,\n items,\n size = 'M',\n labelPosition = 'top',\n labelAlign = 'start',\n necessityIndicator,\n loadingState,\n isDisabled,\n isOpen,\n isRequired,\n isInvalid,\n menuTrigger,\n onLoadMore\n } = props;\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/s2');\n let inputRef = useRef<HTMLInputElement>(null);\n let domRef = useRef<HTMLDivElement>(null);\n let buttonRef = useRef<HTMLButtonElement>(null);\n // Expose imperative interface for ref\n useImperativeHandle(ref, () => ({\n ...createFocusableRef(domRef, inputRef),\n select() {\n if (inputRef.current) {\n inputRef.current.select();\n }\n },\n getInputElement() {\n return inputRef.current;\n }\n }));\n\n // Better way to encode this into a style? need to account for flipping\n let menuOffset: number;\n if (size === 'S') {\n menuOffset = 6;\n } else if (size === 'M') {\n menuOffset = 6;\n } else if (size === 'L') {\n menuOffset = 7;\n } else {\n menuOffset = 8;\n }\n\n let triggerRef = useRef<HTMLDivElement>(null);\n // Make menu width match input + button\n let [triggerWidth, setTriggerWidth] = useState<string | null>(null);\n let onResize = useCallback(() => {\n if (triggerRef.current) {\n let inputRect = triggerRef.current.getBoundingClientRect();\n let minX = inputRect.left;\n let maxX = inputRect.right;\n setTriggerWidth((maxX - minX) + 'px');\n }\n }, [triggerRef, setTriggerWidth]);\n\n useResizeObserver({\n ref: triggerRef,\n onResize: onResize\n });\n\n let state = useContext(ComboBoxStateContext);\n let timeout = useRef<ReturnType<typeof setTimeout> | null>(null);\n let [showLoading, setShowLoading] = useState(false);\n let isLoadingOrFiltering = loadingState === 'loading' || loadingState === 'filtering';\n {/* Logic copied from S1 */}\n let showFieldSpinner = useMemo(() => showLoading && (isOpen || menuTrigger === 'manual' || loadingState === 'loading'), [showLoading, isOpen, menuTrigger, loadingState]);\n let spinnerId = useSlotId([showFieldSpinner]);\n\n let inputValue = state?.inputValue;\n let lastInputValue = useRef(inputValue);\n useEffect(() => {\n if (isLoadingOrFiltering && !showLoading) {\n if (timeout.current === null) {\n timeout.current = setTimeout(() => {\n setShowLoading(true);\n }, 500);\n }\n\n // If user is typing, clear the timer and restart since it is a new request\n if (inputValue !== lastInputValue.current) {\n clearTimeout(timeout.current);\n timeout.current = setTimeout(() => {\n setShowLoading(true);\n }, 500);\n }\n } else if (!isLoadingOrFiltering) {\n // If loading is no longer happening, clear any timers and hide the loading circle\n setShowLoading(false);\n if (timeout.current) {\n clearTimeout(timeout.current);\n }\n timeout.current = null;\n }\n\n lastInputValue.current = inputValue;\n }, [isLoadingOrFiltering, showLoading, inputValue]);\n\n useEffect(() => {\n return () => {\n if (timeout.current) {\n clearTimeout(timeout.current);\n }\n timeout.current = null;\n };\n }, []);\n\n let renderer;\n let listBoxLoadingCircle = (\n <UNSTABLE_ListBoxLoadingSentinel\n // Only show the spinner in the list when loading more\n isLoading={loadingState === 'loadingMore'}\n onLoadMore={onLoadMore}\n className={loadingWrapperStyles}>\n <ProgressCircle\n isIndeterminate\n size=\"S\"\n styles={progressCircleStyles({size})}\n // Same loading string as table\n aria-label={stringFormatter.format('table.loadingMore')} />\n </UNSTABLE_ListBoxLoadingSentinel>\n );\n\n if (typeof children === 'function') {\n renderer = (\n <>\n <Collection items={items ?? defaultItems}>\n {children}\n </Collection>\n {listBoxLoadingCircle}\n </>\n );\n } else {\n // TODO: is there a case where the user might provide items to the Combobox but doesn't provide a function renderer?\n // Same case for other components that have this logic (TableView/CardView/Picker)\n renderer = (\n <>\n {children}\n {listBoxLoadingCircle}\n </>\n );\n }\n let scale = useScale();\n\n return (\n <>\n <InternalComboboxContext.Provider value={{size}}>\n <FieldLabel\n isDisabled={isDisabled}\n isRequired={isRequired}\n size={size}\n labelPosition={labelPosition}\n labelAlign={labelAlign}\n necessityIndicator={necessityIndicator}\n contextualHelp={props.contextualHelp}>\n {label}\n </FieldLabel>\n <FieldGroup\n ref={triggerRef}\n role=\"presentation\"\n isDisabled={isDisabled}\n isInvalid={isInvalid}\n size={size}\n styles={style({\n ...fieldInput(),\n paddingStart: 'edge-to-text',\n // better way to do this one? it's not actually half, they are\n // [9, 4], [12, 6], [15, 8], [18, 8]\n // also noticed that our measurement is including the border, making the padding too much\n paddingEnd: 'calc(self(height, self(minHeight)) * 3 / 16)'\n })({size})}>\n <InputContext.Consumer>\n {ctx => (\n <InputContext.Provider value={{...ctx, ref: mergeRefs((ctx as any)?.ref, inputRef)}}>\n <Input aria-describedby={spinnerId} />\n </InputContext.Provider>\n )}\n </InputContext.Consumer>\n {isInvalid && <FieldErrorIcon isDisabled={isDisabled} />}\n {showFieldSpinner && (\n <ProgressCircle\n id={spinnerId}\n isIndeterminate\n size=\"S\"\n styles={progressCircleStyles({size, isInput: true})}\n aria-label={stringFormatter.format('table.loading')} />\n )}\n <Button\n ref={buttonRef}\n // Prevent press scale from sticking while ComboBox is open.\n // @ts-ignore\n isPressed={false}\n style={renderProps => pressScale(buttonRef)(renderProps)}\n className={renderProps => inputButton({\n ...renderProps,\n size,\n isOpen\n })}>\n <ChevronIcon\n size={size}\n className={iconStyles} />\n </Button>\n </FieldGroup>\n <HelpText\n size={size}\n isDisabled={isDisabled}\n isInvalid={isInvalid}\n description={descriptionMessage}>\n {errorMessage}\n </HelpText>\n <PopoverBase\n hideArrow\n triggerRef={triggerRef}\n offset={menuOffset}\n placement={`${direction} ${align}` as Placement}\n shouldFlip={shouldFlip}\n UNSAFE_style={{\n width: menuWidth ? `${menuWidth}px` : undefined,\n // manually subtract border as we can't set Popover to border-box, it causes the contents to spill out\n '--trigger-width': `calc(${triggerWidth} - 2px)`\n } as CSSProperties}\n styles={style({\n minWidth: '--trigger-width',\n width: '--trigger-width'\n })}>\n <Provider\n values={[\n [HeaderContext, {styles: listboxHeader({size})}],\n [HeadingContext, {\n // @ts-ignore\n role: 'presentation',\n styles: sectionHeading\n }],\n [TextContext, {\n slots: {\n 'description': {styles: description({size})}\n }\n }]\n ]}>\n <Virtualizer\n layout={ListLayout}\n layoutOptions={{\n estimatedRowHeight: 32,\n padding: 8,\n estimatedHeadingHeight: 50,\n loaderHeight: LOADER_ROW_HEIGHTS[size][scale]\n }}>\n <ListBox\n renderEmptyState={() => (\n <span className={emptyStateText({size})}>\n {loadingState === 'loading' ? stringFormatter.format('table.loading') : stringFormatter.format('combobox.noResults')}\n </span>\n )}\n items={items}\n className={listbox({size})}>\n {renderer}\n </ListBox>\n </Virtualizer>\n </Provider>\n </PopoverBase>\n </InternalComboboxContext.Provider>\n </>\n );\n});\n\nexport const Divider = /*#__PURE__*/ createLeafComponent('separator', function Divider({size}: {size?: 'S' | 'M' | 'L' | 'XL'}, ref: ForwardedRef<HTMLDivElement>, node: Node<unknown>) {\n let listState = useContext(ListStateContext)!;\n\n let nextNode = node.nextKey != null && listState.collection.getItem(node.nextKey);\n if (node.prevKey == null || !nextNode || nextNode.type === 'separator' || (nextNode.type === 'loader' && nextNode.nextKey == null)) {\n return null;\n }\n\n return (\n <div className={separatorWrapper({size})}>\n <div ref={ref} className={dividerStyle} />\n </div>\n );\n});\n"],"names":[],"version":3,"file":"ComboBox.mjs.map"}
@@ -41,7 +41,7 @@ $parcel$export(module.exports, "ContextualHelp", () => $bab829476f85a155$export$
41
41
 
42
42
 
43
43
 
44
- const $bab829476f85a155$var$popover = " ug8 uch8 udi8 uea8 ugb8 uhd8 uje8 uic8 Ni8 Zs8 Th8 Qh8 Sh8 Rh8";
44
+ const $bab829476f85a155$var$popover = " ug9 uch9 udi9 uea9 ugb9 uhd9 uje9 uic9 Ni9 Zs9 Th9 Qh9 Sh9 Rh9";
45
45
  const $bab829476f85a155$export$41b9afaaba473494 = /*#__PURE__*/ (0, $44GE8$react.createContext)(null);
46
46
  const $bab829476f85a155$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $44GE8$react.forwardRef)(function ContextualHelp(props, ref) {
47
47
  let stringFormatter = (0, $44GE8$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($4526404114e78c80$exports))), '@react-spectrum/s2');
@@ -82,7 +82,7 @@ const $bab829476f85a155$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $44GE8$react
82
82
  hideArrow: true,
83
83
  styles: $bab829476f85a155$var$popover,
84
84
  children: /*#__PURE__*/ (0, $44GE8$reactjsxruntime.jsx)((0, $44GE8$reactariacomponents.Dialog), {
85
- className: (0, $308b180f49d82d28$exports.mergeStyles)((0, $0f4636c7093b9233$exports.dialogInner), " od8 nd8 kd8 jd8 Jnqb3Ob8 Gnqb3Ob8 Inqb3Ob8 Hnqb3Ob8 TjCFGYc8 Qh8 Sh8 Rh8 -T_-Th8"),
85
+ className: (0, $308b180f49d82d28$exports.mergeStyles)((0, $0f4636c7093b9233$exports.dialogInner), " od9 nd9 kd9 jd9 Jnqb3Ob9 Gnqb3Ob9 Inqb3Ob9 Hnqb3Ob9 TjCFGYc9 Qh9 Sh9 Rh9 -T_-Th9"),
86
86
  children: /*#__PURE__*/ (0, $44GE8$reactjsxruntime.jsx)((0, $44GE8$reactariacomponents.Provider), {
87
87
  values: [
88
88
  [
@@ -96,19 +96,19 @@ const $bab829476f85a155$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $44GE8$react
96
96
  [
97
97
  (0, $6367bc87eb7d24ad$exports.HeadingContext),
98
98
  {
99
- styles: " ug8 uch8 udi8 uea8 ugb8 uhd8 uje8 uic8 vg8 vsj8 we8 xe8 _xa8 wfe8 xfe8 _xfa8 _Fa8 _Ffb8 po8 Jy8 Gv8 Iy8 Hy8"
99
+ styles: " ug9 uch9 udi9 uea9 ugb9 uhd9 uje9 uic9 vg9 vsj9 we9 xe9 _xa9 wfe9 xfe9 _xfa9 _Fa9 _Ffb9 po9 Jy9 Gv9 Iy9 Hy9"
100
100
  }
101
101
  ],
102
102
  [
103
103
  (0, $6367bc87eb7d24ad$exports.ContentContext),
104
104
  {
105
- styles: " ug8 uch8 udi8 uea8 ugb8 uhd8 uje8 uic8 vd8 vsf8 wb8 xb8 _xa8 _Fb8 _Ffc8 pt8"
105
+ styles: " ug9 uch9 udi9 uea9 ugb9 uhd9 uje9 uic9 vd9 vsf9 wb9 xb9 _xa9 _Fb9 _Ffc9 pt9"
106
106
  }
107
107
  ],
108
108
  [
109
109
  (0, $6367bc87eb7d24ad$exports.FooterContext),
110
110
  {
111
- styles: " ug8 uch8 udi8 uea8 ugb8 uhd8 uje8 uic8 vd8 vsf8 wb8 xb8 _xa8 _Fb8 _Ffc8 pt8 JC8"
111
+ styles: " ug9 uch9 udi9 uea9 ugb9 uhd9 uje9 uic9 vd9 vsf9 wb9 xb9 _xa9 _Fb9 _Ffc9 pt9 JC9"
112
112
  }
113
113
  ]
114
114
  ],
@@ -1,206 +1,206 @@
1
1
  @layer _.a {
2
- .Ni8 {
2
+ .Ni9 {
3
3
  min-width: calc(13.625rem * var(--s2-scale));
4
4
  }
5
5
 
6
- .Zs8 {
6
+ .Zs9 {
7
7
  width: calc(13.625rem * var(--s2-scale));
8
8
  }
9
9
 
10
- .Th8 {
10
+ .Th9 {
11
11
  padding-top: 24px;
12
12
  }
13
13
 
14
- .od8 {
14
+ .od9 {
15
15
  border-start-start-radius: 0;
16
16
  }
17
17
 
18
- .nd8 {
18
+ .nd9 {
19
19
  border-start-end-radius: 0;
20
20
  }
21
21
 
22
- .kd8 {
22
+ .kd9 {
23
23
  border-end-start-radius: 0;
24
24
  }
25
25
 
26
- .jd8 {
26
+ .jd9 {
27
27
  border-end-end-radius: 0;
28
28
  }
29
29
 
30
- .Jnqb3Ob8 {
30
+ .Jnqb3Ob9 {
31
31
  margin-top: calc(var(--T) * -1);
32
32
  }
33
33
 
34
- .Gnqb3Ob8 {
34
+ .Gnqb3Ob9 {
35
35
  margin-bottom: calc(var(--T) * -1);
36
36
  }
37
37
 
38
- .Inqb3Ob8 {
38
+ .Inqb3Ob9 {
39
39
  margin-inline-start: calc(var(--T) * -1);
40
40
  }
41
41
 
42
- .Hnqb3Ob8 {
42
+ .Hnqb3Ob9 {
43
43
  margin-inline-end: calc(var(--T) * -1);
44
44
  }
45
45
 
46
- .TjCFGYc8 {
46
+ .TjCFGYc9 {
47
47
  padding-top: var(--T);
48
48
  }
49
49
 
50
- .Qh8 {
50
+ .Qh9 {
51
51
  padding-bottom: 24px;
52
52
  }
53
53
 
54
- .Sh8 {
54
+ .Sh9 {
55
55
  padding-inline-start: 24px;
56
56
  }
57
57
 
58
- .Rh8 {
58
+ .Rh9 {
59
59
  padding-inline-end: 24px;
60
60
  }
61
61
 
62
- .-T_-Th8 {
62
+ .-T_-Th9 {
63
63
  --T: 24px;
64
64
  }
65
65
 
66
- .vg8 {
66
+ .vg9 {
67
67
  font-size: 1.125rem;
68
68
  }
69
69
 
70
- .we8 {
70
+ .we9 {
71
71
  font-variation-settings: "wght" 800;
72
72
  }
73
73
 
74
- .xe8 {
74
+ .xe9 {
75
75
  font-weight: 800;
76
76
  }
77
77
 
78
- ._Fa8 {
78
+ ._Fa9 {
79
79
  line-height: 1.3;
80
80
  }
81
81
 
82
- .po8 {
82
+ .po9 {
83
83
  color: var(--lightningcss-light, #131313) var(--lightningcss-dark, #f2f2f2);
84
84
  }
85
85
 
86
- .Jy8 {
86
+ .Jy9 {
87
87
  margin-top: 0;
88
88
  }
89
89
 
90
- .Gv8 {
90
+ .Gv9 {
91
91
  margin-bottom: .5rem;
92
92
  }
93
93
 
94
- .Iy8 {
94
+ .Iy9 {
95
95
  margin-inline-start: 0;
96
96
  }
97
97
 
98
- .Hy8 {
98
+ .Hy9 {
99
99
  margin-inline-end: 0;
100
100
  }
101
101
 
102
- .ug8 {
102
+ .ug9 {
103
103
  font-family: adobe-clean-variable, adobe-clean, ui-sans-serif, system-ui, sans-serif;
104
104
  }
105
105
 
106
- .vd8 {
106
+ .vd9 {
107
107
  font-size: .875rem;
108
108
  }
109
109
 
110
- .wb8 {
110
+ .wb9 {
111
111
  font-variation-settings: "wght" 400;
112
112
  }
113
113
 
114
- .xb8 {
114
+ .xb9 {
115
115
  font-weight: 400;
116
116
  }
117
117
 
118
- ._xa8 {
118
+ ._xa9 {
119
119
  font-synthesis-weight: none;
120
120
  }
121
121
 
122
- ._Fb8 {
122
+ ._Fb9 {
123
123
  line-height: 1.5;
124
124
  }
125
125
 
126
- .pt8 {
126
+ .pt9 {
127
127
  color: var(--lightningcss-light, #292929) var(--lightningcss-dark, #dbdbdb);
128
128
  }
129
129
 
130
- .JC8 {
130
+ .JC9 {
131
131
  margin-top: 1rem;
132
132
  }
133
133
  }
134
134
 
135
135
  @layer _.b {
136
- .wfe8:is(:lang(ja), :lang(ko), :lang(zh), :lang(zh-Hant), :lang(zh-Hans)) {
136
+ .wfe9:is(:lang(ja), :lang(ko), :lang(zh), :lang(zh-Hant), :lang(zh-Hans)) {
137
137
  font-variation-settings: "wght" 800;
138
138
  }
139
139
 
140
- .xfe8:is(:lang(ja), :lang(ko), :lang(zh), :lang(zh-Hant), :lang(zh-Hans)) {
140
+ .xfe9:is(:lang(ja), :lang(ko), :lang(zh), :lang(zh-Hant), :lang(zh-Hans)) {
141
141
  font-weight: 800;
142
142
  }
143
143
 
144
- ._xfa8:is(:lang(ja), :lang(ko), :lang(zh), :lang(zh-Hant), :lang(zh-Hans)) {
144
+ ._xfa9:is(:lang(ja), :lang(ko), :lang(zh), :lang(zh-Hant), :lang(zh-Hans)) {
145
145
  font-synthesis-weight: none;
146
146
  }
147
147
 
148
- ._Ffb8:is(:lang(ja), :lang(ko), :lang(zh), :lang(zh-Hant), :lang(zh-Hans)) {
148
+ ._Ffb9:is(:lang(ja), :lang(ko), :lang(zh), :lang(zh-Hant), :lang(zh-Hans)) {
149
149
  line-height: 1.5;
150
150
  }
151
151
 
152
- .uch8:lang(ar) {
152
+ .uch9:lang(ar) {
153
153
  font-family: myriad-arabic, ui-sans-serif, system-ui, sans-serif;
154
154
  }
155
155
 
156
- ._Ffc8:is(:lang(ja), :lang(ko), :lang(zh), :lang(zh-Hant), :lang(zh-Hans)) {
156
+ ._Ffc9:is(:lang(ja), :lang(ko), :lang(zh), :lang(zh-Hant), :lang(zh-Hans)) {
157
157
  line-height: 1.7;
158
158
  }
159
159
  }
160
160
 
161
161
  @layer _.c {
162
- .udi8:lang(he) {
162
+ .udi9:lang(he) {
163
163
  font-family: myriad-hebrew, ui-sans-serif, system-ui, sans-serif;
164
164
  }
165
165
  }
166
166
 
167
167
  @layer _.d {
168
- .uea8:lang(ja) {
168
+ .uea9:lang(ja) {
169
169
  font-family: adobe-clean-han-japanese, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, Osaka, YuGothic, Yu Gothic, メイリオ, Meiryo, MS Pゴシック, MS PGothic, sans-serif;
170
170
  }
171
171
  }
172
172
 
173
173
  @layer _.e {
174
- .ugb8:lang(ko) {
174
+ .ugb9:lang(ko) {
175
175
  font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
176
176
  }
177
177
  }
178
178
 
179
179
  @layer _.f {
180
- .uhd8:lang(zh) {
180
+ .uhd9:lang(zh) {
181
181
  font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
182
182
  }
183
183
  }
184
184
 
185
185
  @layer _.g {
186
- .uje8:lang(zh-hant) {
186
+ .uje9:lang(zh-hant) {
187
187
  font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Microsoft JhengHei UI, Microsoft JhengHei, Heiti TC Light, sans-serif;
188
188
  }
189
189
  }
190
190
 
191
191
  @layer _.h {
192
- .uic8:is(:lang(zh-Hans), :lang(zh-CN), :lang(zh-SG)) {
192
+ .uic9:is(:lang(zh-Hans), :lang(zh-CN), :lang(zh-SG)) {
193
193
  font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
194
194
  }
195
195
  }
196
196
 
197
197
  @layer _.b.s {
198
198
  @media not ((hover: hover) and (pointer: fine)) {
199
- .vsj8 {
199
+ .vsj9 {
200
200
  font-size: 1.375rem;
201
201
  }
202
202
 
203
- .vsf8 {
203
+ .vsf9 {
204
204
  font-size: 1.0625rem;
205
205
  }
206
206
  }
@@ -34,7 +34,7 @@ function $parcel$interopDefault(a) {
34
34
 
35
35
 
36
36
 
37
- const $8e176595bc49ca3f$var$popover = " ug8 uch8 udi8 uea8 ugb8 uhd8 uje8 uic8 Ni8 Zs8 Th8 Qh8 Sh8 Rh8";
37
+ const $8e176595bc49ca3f$var$popover = " ug9 uch9 udi9 uea9 ugb9 uhd9 uje9 uic9 Ni9 Zs9 Th9 Qh9 Sh9 Rh9";
38
38
  const $8e176595bc49ca3f$export$41b9afaaba473494 = /*#__PURE__*/ (0, $bcd4U$createContext)(null);
39
39
  const $8e176595bc49ca3f$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $bcd4U$forwardRef)(function ContextualHelp(props, ref) {
40
40
  let stringFormatter = (0, $bcd4U$useLocalizedStringFormatter)((0, ($parcel$interopDefault($bcd4U$intlStringsmjs))), '@react-spectrum/s2');
@@ -75,7 +75,7 @@ const $8e176595bc49ca3f$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $bcd4U$forwa
75
75
  hideArrow: true,
76
76
  styles: $8e176595bc49ca3f$var$popover,
77
77
  children: /*#__PURE__*/ (0, $bcd4U$jsx)((0, $bcd4U$Dialog), {
78
- className: (0, $feb886035e0d4633$export$e618dc39ac9ad607)((0, $9bbc115952dac5a6$export$6af31f836f9aa6f2), " od8 nd8 kd8 jd8 Jnqb3Ob8 Gnqb3Ob8 Inqb3Ob8 Hnqb3Ob8 TjCFGYc8 Qh8 Sh8 Rh8 -T_-Th8"),
78
+ className: (0, $feb886035e0d4633$export$e618dc39ac9ad607)((0, $9bbc115952dac5a6$export$6af31f836f9aa6f2), " od9 nd9 kd9 jd9 Jnqb3Ob9 Gnqb3Ob9 Inqb3Ob9 Hnqb3Ob9 TjCFGYc9 Qh9 Sh9 Rh9 -T_-Th9"),
79
79
  children: /*#__PURE__*/ (0, $bcd4U$jsx)((0, $bcd4U$Provider), {
80
80
  values: [
81
81
  [
@@ -89,19 +89,19 @@ const $8e176595bc49ca3f$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $bcd4U$forwa
89
89
  [
90
90
  (0, $8e847109a6ab556d$export$d688439359537581),
91
91
  {
92
- styles: " ug8 uch8 udi8 uea8 ugb8 uhd8 uje8 uic8 vg8 vsj8 we8 xe8 _xa8 wfe8 xfe8 _xfa8 _Fa8 _Ffb8 po8 Jy8 Gv8 Iy8 Hy8"
92
+ styles: " ug9 uch9 udi9 uea9 ugb9 uhd9 uje9 uic9 vg9 vsj9 we9 xe9 _xa9 wfe9 xfe9 _xfa9 _Fa9 _Ffb9 po9 Jy9 Gv9 Iy9 Hy9"
93
93
  }
94
94
  ],
95
95
  [
96
96
  (0, $8e847109a6ab556d$export$1cbdd774077931b4),
97
97
  {
98
- styles: " ug8 uch8 udi8 uea8 ugb8 uhd8 uje8 uic8 vd8 vsf8 wb8 xb8 _xa8 _Fb8 _Ffc8 pt8"
98
+ styles: " ug9 uch9 udi9 uea9 ugb9 uhd9 uje9 uic9 vd9 vsf9 wb9 xb9 _xa9 _Fb9 _Ffc9 pt9"
99
99
  }
100
100
  ],
101
101
  [
102
102
  (0, $8e847109a6ab556d$export$5630640b68817ed6),
103
103
  {
104
- styles: " ug8 uch8 udi8 uea8 ugb8 uhd8 uje8 uic8 vd8 vsf8 wb8 xb8 _xa8 _Fb8 _Ffc8 pt8 JC8"
104
+ styles: " ug9 uch9 udi9 uea9 ugb9 uhd9 uje9 uic9 vd9 vsf9 wb9 xb9 _xa9 _Fb9 _Ffc9 pt9 JC9"
105
105
  }
106
106
  ]
107
107
  ],
package/dist/Cross.cjs CHANGED
@@ -34,20 +34,20 @@ $parcel$export(module.exports, "default", () => $89dd175101ffc43a$export$2e2bcd8
34
34
 
35
35
  let $89dd175101ffc43a$var$styles = function anonymous(props) {
36
36
  let rules = " ";
37
- if (props.size === "S") rules += ' Zh8';
38
- else if (props.size === "XXXXL") rules += ' Zu8';
39
- else if (props.size === "XXXL") rules += ' Zk8';
40
- else if (props.size === "XXL") rules += ' Zj8';
41
- else if (props.size === "XL") rules += ' Zj8';
42
- else if (props.size === "L") rules += ' Zi8';
43
- else if (props.size === "M") rules += ' Zh8';
44
- if (props.size === "S") rules += ' Fi8';
45
- else if (props.size === "XXXXL") rules += ' Ft8';
46
- else if (props.size === "XXXL") rules += ' Fl8';
47
- else if (props.size === "XXL") rules += ' Fk8';
48
- else if (props.size === "XL") rules += ' Fk8';
49
- else if (props.size === "L") rules += ' Fj8';
50
- else if (props.size === "M") rules += ' Fi8';
37
+ if (props.size === "S") rules += ' Zh9';
38
+ else if (props.size === "XXXXL") rules += ' Zu9';
39
+ else if (props.size === "XXXL") rules += ' Zk9';
40
+ else if (props.size === "XXL") rules += ' Zj9';
41
+ else if (props.size === "XL") rules += ' Zj9';
42
+ else if (props.size === "L") rules += ' Zi9';
43
+ else if (props.size === "M") rules += ' Zh9';
44
+ if (props.size === "S") rules += ' Fi9';
45
+ else if (props.size === "XXXXL") rules += ' Ft9';
46
+ else if (props.size === "XXXL") rules += ' Fl9';
47
+ else if (props.size === "XXL") rules += ' Fk9';
48
+ else if (props.size === "XL") rules += ' Fk9';
49
+ else if (props.size === "L") rules += ' Fj9';
50
+ else if (props.size === "M") rules += ' Fi9';
51
51
  return rules;
52
52
  };
53
53
  function $89dd175101ffc43a$export$2e2bcd8739ae039(props) {
package/dist/Cross.css CHANGED
@@ -1,43 +1,43 @@
1
1
  @layer _.a {
2
- .Zi8 {
2
+ .Zi9 {
3
3
  width: calc(.625rem * var(--s2-scale));
4
4
  }
5
5
 
6
- .Zj8 {
6
+ .Zj9 {
7
7
  width: calc(.75rem * var(--s2-scale));
8
8
  width: calc(.75rem * var(--s2-scale));
9
9
  }
10
10
 
11
- .Zk8 {
11
+ .Zk9 {
12
12
  width: calc(.875rem * var(--s2-scale));
13
13
  }
14
14
 
15
- .Zu8 {
15
+ .Zu9 {
16
16
  width: calc(1rem * var(--s2-scale));
17
17
  }
18
18
 
19
- .Zh8 {
19
+ .Zh9 {
20
20
  width: calc(.5rem * var(--s2-scale));
21
21
  }
22
22
 
23
- .Fj8 {
23
+ .Fj9 {
24
24
  height: calc(.625rem * var(--s2-scale));
25
25
  }
26
26
 
27
- .Fk8 {
27
+ .Fk9 {
28
28
  height: calc(.75rem * var(--s2-scale));
29
29
  height: calc(.75rem * var(--s2-scale));
30
30
  }
31
31
 
32
- .Fl8 {
32
+ .Fl9 {
33
33
  height: calc(.875rem * var(--s2-scale));
34
34
  }
35
35
 
36
- .Ft8 {
36
+ .Ft9 {
37
37
  height: calc(1rem * var(--s2-scale));
38
38
  }
39
39
 
40
- .Fi8 {
40
+ .Fi9 {
41
41
  height: calc(.5rem * var(--s2-scale));
42
42
  }
43
43
  }
package/dist/Cross.mjs CHANGED
@@ -28,20 +28,20 @@ import {jsx as $1piiz$jsx} from "react/jsx-runtime";
28
28
 
29
29
  let $bd983341bd35d639$var$styles = function anonymous(props) {
30
30
  let rules = " ";
31
- if (props.size === "S") rules += ' Zh8';
32
- else if (props.size === "XXXXL") rules += ' Zu8';
33
- else if (props.size === "XXXL") rules += ' Zk8';
34
- else if (props.size === "XXL") rules += ' Zj8';
35
- else if (props.size === "XL") rules += ' Zj8';
36
- else if (props.size === "L") rules += ' Zi8';
37
- else if (props.size === "M") rules += ' Zh8';
38
- if (props.size === "S") rules += ' Fi8';
39
- else if (props.size === "XXXXL") rules += ' Ft8';
40
- else if (props.size === "XXXL") rules += ' Fl8';
41
- else if (props.size === "XXL") rules += ' Fk8';
42
- else if (props.size === "XL") rules += ' Fk8';
43
- else if (props.size === "L") rules += ' Fj8';
44
- else if (props.size === "M") rules += ' Fi8';
31
+ if (props.size === "S") rules += ' Zh9';
32
+ else if (props.size === "XXXXL") rules += ' Zu9';
33
+ else if (props.size === "XXXL") rules += ' Zk9';
34
+ else if (props.size === "XXL") rules += ' Zj9';
35
+ else if (props.size === "XL") rules += ' Zj9';
36
+ else if (props.size === "L") rules += ' Zi9';
37
+ else if (props.size === "M") rules += ' Zh9';
38
+ if (props.size === "S") rules += ' Fi9';
39
+ else if (props.size === "XXXXL") rules += ' Ft9';
40
+ else if (props.size === "XXXL") rules += ' Fl9';
41
+ else if (props.size === "XXL") rules += ' Fk9';
42
+ else if (props.size === "XL") rules += ' Fk9';
43
+ else if (props.size === "L") rules += ' Fj9';
44
+ else if (props.size === "M") rules += ' Fi9';
45
45
  return rules;
46
46
  };
47
47
  function $bd983341bd35d639$export$2e2bcd8739ae039(props) {