@basic-ui/material 1.0.0-alpha.10 → 1.0.0-alpha.11

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 (502) hide show
  1. package/build/cjs/index.js +1165 -1290
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/esm/Alert/Alert.d.ts +1 -1
  4. package/build/esm/Alert/Alert.js +2 -1
  5. package/build/esm/Alert/Alert.js.map +1 -1
  6. package/build/esm/Alert/index.d.ts +0 -0
  7. package/build/esm/Alert/index.js +0 -0
  8. package/build/esm/Alert/index.js.map +1 -1
  9. package/build/esm/AppBar/AppBar.d.ts +1 -1
  10. package/build/esm/AppBar/AppBar.js +4 -3
  11. package/build/esm/AppBar/AppBar.js.map +1 -1
  12. package/build/esm/AppBar/AppBarButton.d.ts +1 -1
  13. package/build/esm/AppBar/AppBarButton.js +2 -1
  14. package/build/esm/AppBar/AppBarButton.js.map +1 -1
  15. package/build/esm/AppBar/context.d.ts +0 -0
  16. package/build/esm/AppBar/context.js +0 -0
  17. package/build/esm/AppBar/context.js.map +1 -1
  18. package/build/esm/AppBar/index.d.ts +0 -0
  19. package/build/esm/AppBar/index.js +0 -0
  20. package/build/esm/AppBar/index.js.map +1 -1
  21. package/build/esm/Badge/Badge.d.ts +1 -1
  22. package/build/esm/Badge/Badge.js +0 -0
  23. package/build/esm/Badge/Badge.js.map +1 -1
  24. package/build/esm/Badge/index.d.ts +0 -0
  25. package/build/esm/Badge/index.js +0 -0
  26. package/build/esm/Badge/index.js.map +1 -1
  27. package/build/esm/BaseLine/BaseLine.d.ts +0 -1
  28. package/build/esm/BaseLine/BaseLine.js +0 -0
  29. package/build/esm/BaseLine/BaseLine.js.map +1 -1
  30. package/build/esm/BaseLine/index.d.ts +0 -0
  31. package/build/esm/BaseLine/index.js +0 -0
  32. package/build/esm/BaseLine/index.js.map +1 -1
  33. package/build/esm/BottomSheet/BottomSheet.d.ts +1 -1
  34. package/build/esm/BottomSheet/BottomSheet.js +2 -1
  35. package/build/esm/BottomSheet/BottomSheet.js.map +1 -1
  36. package/build/esm/BottomSheet/BottomSheetSurface.d.ts +1 -1
  37. package/build/esm/BottomSheet/BottomSheetSurface.js +2 -1
  38. package/build/esm/BottomSheet/BottomSheetSurface.js.map +1 -1
  39. package/build/esm/BottomSheet/index.d.ts +0 -0
  40. package/build/esm/BottomSheet/index.js +0 -0
  41. package/build/esm/BottomSheet/index.js.map +1 -1
  42. package/build/esm/Box/Box.d.ts +0 -0
  43. package/build/esm/Box/Box.js +0 -0
  44. package/build/esm/Box/Box.js.map +1 -1
  45. package/build/esm/Box/index.d.ts +0 -0
  46. package/build/esm/Box/index.js +0 -0
  47. package/build/esm/Box/index.js.map +1 -1
  48. package/build/esm/Button/BaseButton.d.ts +1 -1
  49. package/build/esm/Button/BaseButton.js +5 -4
  50. package/build/esm/Button/BaseButton.js.map +1 -1
  51. package/build/esm/Button/Button.d.ts +1 -1
  52. package/build/esm/Button/Button.js +6 -5
  53. package/build/esm/Button/Button.js.map +1 -1
  54. package/build/esm/Button/ButtonGroup.d.ts +1 -1
  55. package/build/esm/Button/ButtonGroup.js +2 -1
  56. package/build/esm/Button/ButtonGroup.js.map +1 -1
  57. package/build/esm/Button/FilledButton.d.ts +1 -1
  58. package/build/esm/Button/FilledButton.js +0 -0
  59. package/build/esm/Button/FilledButton.js.map +1 -1
  60. package/build/esm/Button/FloatingActionButton.d.ts +0 -0
  61. package/build/esm/Button/FloatingActionButton.js +1 -1
  62. package/build/esm/Button/FloatingActionButton.js.map +1 -1
  63. package/build/esm/Button/IconButton.d.ts +0 -0
  64. package/build/esm/Button/IconButton.js +1 -1
  65. package/build/esm/Button/IconButton.js.map +1 -1
  66. package/build/esm/Button/OutlinedButton.d.ts +1 -1
  67. package/build/esm/Button/OutlinedButton.js +0 -0
  68. package/build/esm/Button/OutlinedButton.js.map +1 -1
  69. package/build/esm/Button/TransparentButton.d.ts +1 -1
  70. package/build/esm/Button/TransparentButton.js +0 -0
  71. package/build/esm/Button/TransparentButton.js.map +1 -1
  72. package/build/esm/Button/context.d.ts +0 -0
  73. package/build/esm/Button/context.js +0 -0
  74. package/build/esm/Button/context.js.map +1 -1
  75. package/build/esm/Button/index.d.ts +0 -0
  76. package/build/esm/Button/index.js +0 -0
  77. package/build/esm/Button/index.js.map +1 -1
  78. package/build/esm/CheckBox/CheckBox.d.ts +1 -1
  79. package/build/esm/CheckBox/CheckBox.js +6 -4
  80. package/build/esm/CheckBox/CheckBox.js.map +1 -1
  81. package/build/esm/CheckBox/CheckBoxIcon.d.ts +1 -1
  82. package/build/esm/CheckBox/CheckBoxIcon.js +4 -3
  83. package/build/esm/CheckBox/CheckBoxIcon.js.map +1 -1
  84. package/build/esm/CheckBox/CheckPath.d.ts +0 -1
  85. package/build/esm/CheckBox/CheckPath.js +0 -0
  86. package/build/esm/CheckBox/CheckPath.js.map +1 -1
  87. package/build/esm/CheckBox/IndeterminatePath.d.ts +0 -1
  88. package/build/esm/CheckBox/IndeterminatePath.js +0 -0
  89. package/build/esm/CheckBox/IndeterminatePath.js.map +1 -1
  90. package/build/esm/CheckBox/index.d.ts +0 -0
  91. package/build/esm/CheckBox/index.js +0 -0
  92. package/build/esm/CheckBox/index.js.map +1 -1
  93. package/build/esm/Chip/ButtonChip.d.ts +1 -1
  94. package/build/esm/Chip/ButtonChip.js +4 -3
  95. package/build/esm/Chip/ButtonChip.js.map +1 -1
  96. package/build/esm/Chip/Chip.d.ts +0 -0
  97. package/build/esm/Chip/Chip.js +0 -0
  98. package/build/esm/Chip/Chip.js.map +1 -1
  99. package/build/esm/Chip/ChipBase.d.ts +1 -1
  100. package/build/esm/Chip/ChipBase.js +10 -9
  101. package/build/esm/Chip/ChipBase.js.map +1 -1
  102. package/build/esm/Chip/ChoiceChip.d.ts +1 -1
  103. package/build/esm/Chip/ChoiceChip.js +6 -4
  104. package/build/esm/Chip/ChoiceChip.js.map +1 -1
  105. package/build/esm/Chip/index.d.ts +0 -0
  106. package/build/esm/Chip/index.js +0 -0
  107. package/build/esm/Chip/index.js.map +1 -1
  108. package/build/esm/Combobox/Combobox.d.ts +7 -7
  109. package/build/esm/Combobox/Combobox.js +18 -10
  110. package/build/esm/Combobox/Combobox.js.map +1 -1
  111. package/build/esm/Combobox/index.d.ts +0 -0
  112. package/build/esm/Combobox/index.js +0 -0
  113. package/build/esm/Combobox/index.js.map +1 -1
  114. package/build/esm/Dialog/Dialog.d.ts +1 -1
  115. package/build/esm/Dialog/Dialog.js +6 -5
  116. package/build/esm/Dialog/Dialog.js.map +1 -1
  117. package/build/esm/Dialog/DialogBackdrop.d.ts +1 -1
  118. package/build/esm/Dialog/DialogBackdrop.js +2 -1
  119. package/build/esm/Dialog/DialogBackdrop.js.map +1 -1
  120. package/build/esm/Dialog/DialogContainer.d.ts +1 -1
  121. package/build/esm/Dialog/DialogContainer.js +2 -1
  122. package/build/esm/Dialog/DialogContainer.js.map +1 -1
  123. package/build/esm/Dialog/DialogSurface.d.ts +1 -1
  124. package/build/esm/Dialog/DialogSurface.js +4 -3
  125. package/build/esm/Dialog/DialogSurface.js.map +1 -1
  126. package/build/esm/Dialog/Scrim.d.ts +1 -1
  127. package/build/esm/Dialog/Scrim.js +2 -1
  128. package/build/esm/Dialog/Scrim.js.map +1 -1
  129. package/build/esm/Dialog/index.d.ts +0 -0
  130. package/build/esm/Dialog/index.js +1 -0
  131. package/build/esm/Dialog/index.js.map +1 -1
  132. package/build/esm/Dialog/useDialogAnimation.d.ts +0 -0
  133. package/build/esm/Dialog/useDialogAnimation.js +3 -2
  134. package/build/esm/Dialog/useDialogAnimation.js.map +1 -1
  135. package/build/esm/Divider/Divider.d.ts +1 -1
  136. package/build/esm/Divider/Divider.js +7 -6
  137. package/build/esm/Divider/Divider.js.map +1 -1
  138. package/build/esm/Divider/index.d.ts +0 -0
  139. package/build/esm/Divider/index.js +0 -0
  140. package/build/esm/Divider/index.js.map +1 -1
  141. package/build/esm/FloatingLabel/FloatingLabel.d.ts +0 -0
  142. package/build/esm/FloatingLabel/FloatingLabel.js +4 -3
  143. package/build/esm/FloatingLabel/FloatingLabel.js.map +1 -1
  144. package/build/esm/FloatingLabel/index.d.ts +0 -0
  145. package/build/esm/FloatingLabel/index.js +0 -0
  146. package/build/esm/FloatingLabel/index.js.map +1 -1
  147. package/build/esm/LineRipple/LineRipple.d.ts +1 -1
  148. package/build/esm/LineRipple/LineRipple.js +3 -2
  149. package/build/esm/LineRipple/LineRipple.js.map +1 -1
  150. package/build/esm/LineRipple/index.d.ts +0 -0
  151. package/build/esm/LineRipple/index.js +0 -0
  152. package/build/esm/LineRipple/index.js.map +1 -1
  153. package/build/esm/Link/Link.d.ts +1 -1
  154. package/build/esm/Link/Link.js +2 -1
  155. package/build/esm/Link/Link.js.map +1 -1
  156. package/build/esm/Link/index.d.ts +0 -0
  157. package/build/esm/Link/index.js +0 -0
  158. package/build/esm/Link/index.js.map +1 -1
  159. package/build/esm/List/List.d.ts +1 -1
  160. package/build/esm/List/List.js +2 -1
  161. package/build/esm/List/List.js.map +1 -1
  162. package/build/esm/List/index.d.ts +0 -0
  163. package/build/esm/List/index.js +0 -0
  164. package/build/esm/List/index.js.map +1 -1
  165. package/build/esm/ListItem/ListItem.d.ts +1 -1
  166. package/build/esm/ListItem/ListItem.js +4 -3
  167. package/build/esm/ListItem/ListItem.js.map +1 -1
  168. package/build/esm/ListItem/ListItemText.d.ts +0 -0
  169. package/build/esm/ListItem/ListItemText.js +4 -3
  170. package/build/esm/ListItem/ListItemText.js.map +1 -1
  171. package/build/esm/ListItem/index.d.ts +0 -0
  172. package/build/esm/ListItem/index.js +0 -0
  173. package/build/esm/ListItem/index.js.map +1 -1
  174. package/build/esm/Menu/Menu.d.ts +4 -4
  175. package/build/esm/Menu/Menu.js +8 -4
  176. package/build/esm/Menu/Menu.js.map +1 -1
  177. package/build/esm/Menu/animation.d.ts +0 -0
  178. package/build/esm/Menu/animation.js +0 -0
  179. package/build/esm/Menu/animation.js.map +1 -1
  180. package/build/esm/Menu/index.d.ts +0 -0
  181. package/build/esm/Menu/index.js +0 -0
  182. package/build/esm/Menu/index.js.map +1 -1
  183. package/build/esm/NavRail/NavRailItem.d.ts +3 -3
  184. package/build/esm/NavRail/NavRailItem.js +15 -12
  185. package/build/esm/NavRail/NavRailItem.js.map +1 -1
  186. package/build/esm/NavRail/index.d.ts +0 -0
  187. package/build/esm/NavRail/index.js +0 -0
  188. package/build/esm/NavRail/index.js.map +1 -1
  189. package/build/esm/NotchedOutline/NotchedOutline.d.ts +0 -0
  190. package/build/esm/NotchedOutline/NotchedOutline.js +4 -3
  191. package/build/esm/NotchedOutline/NotchedOutline.js.map +1 -1
  192. package/build/esm/NotchedOutline/context.d.ts +0 -0
  193. package/build/esm/NotchedOutline/context.js +0 -0
  194. package/build/esm/NotchedOutline/context.js.map +1 -1
  195. package/build/esm/NotchedOutline/index.d.ts +0 -0
  196. package/build/esm/NotchedOutline/index.js +0 -0
  197. package/build/esm/NotchedOutline/index.js.map +1 -1
  198. package/build/esm/NotchedOutline/styledComponents.d.ts +0 -27
  199. package/build/esm/NotchedOutline/styledComponents.js +0 -0
  200. package/build/esm/NotchedOutline/styledComponents.js.map +1 -1
  201. package/build/esm/Paper/Paper.d.ts +1 -1
  202. package/build/esm/Paper/Paper.js +6 -5
  203. package/build/esm/Paper/Paper.js.map +1 -1
  204. package/build/esm/Paper/index.d.ts +0 -0
  205. package/build/esm/Paper/index.js +0 -0
  206. package/build/esm/Paper/index.js.map +1 -1
  207. package/build/esm/ProgressSpinner/ProgressSpinner.d.ts +1 -1
  208. package/build/esm/ProgressSpinner/ProgressSpinner.js +12 -13
  209. package/build/esm/ProgressSpinner/ProgressSpinner.js.map +1 -1
  210. package/build/esm/ProgressSpinner/index.d.ts +0 -0
  211. package/build/esm/ProgressSpinner/index.js +0 -0
  212. package/build/esm/ProgressSpinner/index.js.map +1 -1
  213. package/build/esm/RadioButton/RadioButton.d.ts +0 -0
  214. package/build/esm/RadioButton/RadioButton.js +4 -2
  215. package/build/esm/RadioButton/RadioButton.js.map +1 -1
  216. package/build/esm/RadioButton/RadioButtonIcon.d.ts +0 -0
  217. package/build/esm/RadioButton/RadioButtonIcon.js +4 -3
  218. package/build/esm/RadioButton/RadioButtonIcon.js.map +1 -1
  219. package/build/esm/RadioButton/RadioGroup.d.ts +1 -1
  220. package/build/esm/RadioButton/RadioGroup.js +2 -1
  221. package/build/esm/RadioButton/RadioGroup.js.map +1 -1
  222. package/build/esm/RadioButton/index.d.ts +0 -0
  223. package/build/esm/RadioButton/index.js +0 -0
  224. package/build/esm/RadioButton/index.js.map +1 -1
  225. package/build/esm/Ripple/Ripple.d.ts +0 -0
  226. package/build/esm/Ripple/Ripple.js +0 -0
  227. package/build/esm/Ripple/Ripple.js.map +1 -1
  228. package/build/esm/Ripple/RippleBox.d.ts +0 -0
  229. package/build/esm/Ripple/RippleBox.js +7 -5
  230. package/build/esm/Ripple/RippleBox.js.map +1 -1
  231. package/build/esm/Ripple/constants.d.ts +0 -0
  232. package/build/esm/Ripple/constants.js +0 -0
  233. package/build/esm/Ripple/constants.js.map +1 -1
  234. package/build/esm/Ripple/index.d.ts +0 -0
  235. package/build/esm/Ripple/index.js +0 -0
  236. package/build/esm/Ripple/index.js.map +1 -1
  237. package/build/esm/Ripple/keyframes.d.ts +0 -0
  238. package/build/esm/Ripple/keyframes.js +0 -0
  239. package/build/esm/Ripple/keyframes.js.map +1 -1
  240. package/build/esm/Ripple/useRipple.d.ts +0 -0
  241. package/build/esm/Ripple/useRipple.js +2 -2
  242. package/build/esm/Ripple/useRipple.js.map +1 -1
  243. package/build/esm/Ripple/useRippleHandlers.d.ts +0 -0
  244. package/build/esm/Ripple/useRippleHandlers.js +2 -1
  245. package/build/esm/Ripple/useRippleHandlers.js.map +1 -1
  246. package/build/esm/Ripple/useRippleSurface.d.ts +0 -0
  247. package/build/esm/Ripple/useRippleSurface.js +6 -5
  248. package/build/esm/Ripple/useRippleSurface.js.map +1 -1
  249. package/build/esm/Select/Select.d.ts +1 -1
  250. package/build/esm/Select/Select.js +5 -4
  251. package/build/esm/Select/Select.js.map +1 -1
  252. package/build/esm/Select/SelectIcon.d.ts +1 -1
  253. package/build/esm/Select/SelectIcon.js +4 -3
  254. package/build/esm/Select/SelectIcon.js.map +1 -1
  255. package/build/esm/Select/context.d.ts +0 -0
  256. package/build/esm/Select/context.js +0 -0
  257. package/build/esm/Select/context.js.map +1 -1
  258. package/build/esm/Select/defaultRender.d.ts +1 -1
  259. package/build/esm/Select/defaultRender.js +0 -0
  260. package/build/esm/Select/defaultRender.js.map +1 -1
  261. package/build/esm/Select/index.d.ts +0 -0
  262. package/build/esm/Select/index.js +0 -0
  263. package/build/esm/Select/index.js.map +1 -1
  264. package/build/esm/Select/styledComponents.d.ts +0 -0
  265. package/build/esm/Select/styledComponents.js +8 -5
  266. package/build/esm/Select/styledComponents.js.map +1 -1
  267. package/build/esm/SelectItem/SelectItem.d.ts +1 -1
  268. package/build/esm/SelectItem/SelectItem.js +6 -5
  269. package/build/esm/SelectItem/SelectItem.js.map +1 -1
  270. package/build/esm/SelectItem/index.d.ts +0 -0
  271. package/build/esm/SelectItem/index.js +0 -0
  272. package/build/esm/SelectItem/index.js.map +1 -1
  273. package/build/esm/SelectionControl/SelectionControlLabel.d.ts +1 -1
  274. package/build/esm/SelectionControl/SelectionControlLabel.js +2 -1
  275. package/build/esm/SelectionControl/SelectionControlLabel.js.map +1 -1
  276. package/build/esm/SelectionControl/SelectionControlText.d.ts +1 -1
  277. package/build/esm/SelectionControl/SelectionControlText.js +4 -3
  278. package/build/esm/SelectionControl/SelectionControlText.js.map +1 -1
  279. package/build/esm/SelectionControl/index.d.ts +0 -0
  280. package/build/esm/SelectionControl/index.js +0 -0
  281. package/build/esm/SelectionControl/index.js.map +1 -1
  282. package/build/esm/Skeleton/DelayAppearance.d.ts +1 -1
  283. package/build/esm/Skeleton/DelayAppearance.js +2 -1
  284. package/build/esm/Skeleton/DelayAppearance.js.map +1 -1
  285. package/build/esm/Skeleton/Skeleton.d.ts +1 -1
  286. package/build/esm/Skeleton/Skeleton.js +4 -3
  287. package/build/esm/Skeleton/Skeleton.js.map +1 -1
  288. package/build/esm/Skeleton/animation.d.ts +0 -0
  289. package/build/esm/Skeleton/animation.js +0 -0
  290. package/build/esm/Skeleton/animation.js.map +1 -1
  291. package/build/esm/Skeleton/index.d.ts +0 -0
  292. package/build/esm/Skeleton/index.js +0 -0
  293. package/build/esm/Skeleton/index.js.map +1 -1
  294. package/build/esm/Snackbar/Snackbar.d.ts +1 -1
  295. package/build/esm/Snackbar/Snackbar.js +8 -7
  296. package/build/esm/Snackbar/Snackbar.js.map +1 -1
  297. package/build/esm/Snackbar/Stack.d.ts +0 -0
  298. package/build/esm/Snackbar/Stack.js +4 -2
  299. package/build/esm/Snackbar/Stack.js.map +1 -1
  300. package/build/esm/Snackbar/index.d.ts +0 -0
  301. package/build/esm/Snackbar/index.js +0 -0
  302. package/build/esm/Snackbar/index.js.map +1 -1
  303. package/build/esm/Snackbar/useSnackbarAnimation.d.ts +0 -0
  304. package/build/esm/Snackbar/useSnackbarAnimation.js +6 -6
  305. package/build/esm/Snackbar/useSnackbarAnimation.js.map +1 -1
  306. package/build/esm/Switch/Switch.d.ts +1 -1
  307. package/build/esm/Switch/Switch.js +6 -4
  308. package/build/esm/Switch/Switch.js.map +1 -1
  309. package/build/esm/Switch/index.d.ts +0 -0
  310. package/build/esm/Switch/index.js +0 -0
  311. package/build/esm/Switch/index.js.map +1 -1
  312. package/build/esm/Switch/styledComponents.d.ts +0 -1
  313. package/build/esm/Switch/styledComponents.js +6 -3
  314. package/build/esm/Switch/styledComponents.js.map +1 -1
  315. package/build/esm/Tab/Tab.d.ts +1 -1
  316. package/build/esm/Tab/Tab.js +6 -4
  317. package/build/esm/Tab/Tab.js.map +1 -1
  318. package/build/esm/Tab/TabList.d.ts +1 -1
  319. package/build/esm/Tab/TabList.js +4 -2
  320. package/build/esm/Tab/TabList.js.map +1 -1
  321. package/build/esm/Tab/TabPanel.d.ts +1 -1
  322. package/build/esm/Tab/TabPanel.js +4 -2
  323. package/build/esm/Tab/TabPanel.js.map +1 -1
  324. package/build/esm/Tab/TabPanels.d.ts +0 -0
  325. package/build/esm/Tab/TabPanels.js +0 -0
  326. package/build/esm/Tab/TabPanels.js.map +1 -1
  327. package/build/esm/Tab/Tabs.d.ts +0 -0
  328. package/build/esm/Tab/Tabs.js +0 -0
  329. package/build/esm/Tab/Tabs.js.map +1 -1
  330. package/build/esm/Tab/context.d.ts +0 -0
  331. package/build/esm/Tab/context.js +0 -0
  332. package/build/esm/Tab/context.js.map +1 -1
  333. package/build/esm/Tab/index.d.ts +0 -0
  334. package/build/esm/Tab/index.js +0 -0
  335. package/build/esm/Tab/index.js.map +1 -1
  336. package/build/esm/TabIndicator/TabIndicator.d.ts +1 -1
  337. package/build/esm/TabIndicator/TabIndicator.js +2 -1
  338. package/build/esm/TabIndicator/TabIndicator.js.map +1 -1
  339. package/build/esm/TabIndicator/context.d.ts +0 -0
  340. package/build/esm/TabIndicator/context.js +0 -0
  341. package/build/esm/TabIndicator/context.js.map +1 -1
  342. package/build/esm/TabIndicator/index.d.ts +0 -0
  343. package/build/esm/TabIndicator/index.js +0 -0
  344. package/build/esm/TabIndicator/index.js.map +1 -1
  345. package/build/esm/Table/Table.d.ts +1 -1
  346. package/build/esm/Table/Table.js +4 -3
  347. package/build/esm/Table/Table.js.map +1 -1
  348. package/build/esm/Table/TableBody.d.ts +1 -1
  349. package/build/esm/Table/TableBody.js +4 -3
  350. package/build/esm/Table/TableBody.js.map +1 -1
  351. package/build/esm/Table/TableCell.d.ts +1 -1
  352. package/build/esm/Table/TableCell.js +4 -3
  353. package/build/esm/Table/TableCell.js.map +1 -1
  354. package/build/esm/Table/TableHead.d.ts +1 -1
  355. package/build/esm/Table/TableHead.js +4 -3
  356. package/build/esm/Table/TableHead.js.map +1 -1
  357. package/build/esm/Table/TableRow.d.ts +1 -1
  358. package/build/esm/Table/TableRow.js +4 -3
  359. package/build/esm/Table/TableRow.js.map +1 -1
  360. package/build/esm/Table/context.d.ts +0 -0
  361. package/build/esm/Table/context.js +0 -0
  362. package/build/esm/Table/context.js.map +1 -1
  363. package/build/esm/Table/index.d.ts +0 -0
  364. package/build/esm/Table/index.js +0 -0
  365. package/build/esm/Table/index.js.map +1 -1
  366. package/build/esm/Text/LoremIpsum.d.ts +0 -0
  367. package/build/esm/Text/LoremIpsum.js +0 -0
  368. package/build/esm/Text/LoremIpsum.js.map +1 -1
  369. package/build/esm/Text/Text.d.ts +1 -1
  370. package/build/esm/Text/Text.js +2 -1
  371. package/build/esm/Text/Text.js.map +1 -1
  372. package/build/esm/Text/index.d.ts +0 -0
  373. package/build/esm/Text/index.js +0 -0
  374. package/build/esm/Text/index.js.map +1 -1
  375. package/build/esm/TextField/FilledContainer.d.ts +1 -1
  376. package/build/esm/TextField/FilledContainer.js +6 -5
  377. package/build/esm/TextField/FilledContainer.js.map +1 -1
  378. package/build/esm/TextField/HelperText.d.ts +1 -1
  379. package/build/esm/TextField/HelperText.js +4 -3
  380. package/build/esm/TextField/HelperText.js.map +1 -1
  381. package/build/esm/TextField/IconContainer.d.ts +0 -0
  382. package/build/esm/TextField/IconContainer.js +0 -0
  383. package/build/esm/TextField/IconContainer.js.map +1 -1
  384. package/build/esm/TextField/Input.d.ts +1 -1
  385. package/build/esm/TextField/Input.js +9 -8
  386. package/build/esm/TextField/Input.js.map +1 -1
  387. package/build/esm/TextField/OutlinedContainer.d.ts +1 -1
  388. package/build/esm/TextField/OutlinedContainer.js +5 -4
  389. package/build/esm/TextField/OutlinedContainer.js.map +1 -1
  390. package/build/esm/TextField/TextField.d.ts +1 -1
  391. package/build/esm/TextField/TextField.js +4 -3
  392. package/build/esm/TextField/TextField.js.map +1 -1
  393. package/build/esm/TextField/consts.d.ts +0 -0
  394. package/build/esm/TextField/consts.js +0 -0
  395. package/build/esm/TextField/consts.js.map +1 -1
  396. package/build/esm/TextField/index.d.ts +0 -0
  397. package/build/esm/TextField/index.js +0 -0
  398. package/build/esm/TextField/index.js.map +1 -1
  399. package/build/esm/ThemeExplorer/ColorPicker.d.ts +0 -0
  400. package/build/esm/ThemeExplorer/ColorPicker.js +4 -3
  401. package/build/esm/ThemeExplorer/ColorPicker.js.map +1 -1
  402. package/build/esm/ThemeExplorer/TextFieldColorPicker.d.ts +0 -0
  403. package/build/esm/ThemeExplorer/TextFieldColorPicker.js +4 -3
  404. package/build/esm/ThemeExplorer/TextFieldColorPicker.js.map +1 -1
  405. package/build/esm/ThemeExplorer/ThemeBuilder.d.ts +9 -0
  406. package/build/esm/ThemeExplorer/ThemeBuilder.js +244 -0
  407. package/build/esm/ThemeExplorer/ThemeBuilder.js.map +1 -0
  408. package/build/esm/ThemeExplorer/ThemeColors.d.ts +0 -0
  409. package/build/esm/ThemeExplorer/ThemeColors.js +0 -0
  410. package/build/esm/ThemeExplorer/ThemeColors.js.map +1 -1
  411. package/build/esm/ThemeExplorer/components.d.ts +1 -1
  412. package/build/esm/ThemeExplorer/components.js +24 -21
  413. package/build/esm/ThemeExplorer/components.js.map +1 -1
  414. package/build/esm/ThemeExplorer/index.d.ts +1 -0
  415. package/build/esm/ThemeExplorer/index.js +2 -0
  416. package/build/esm/ThemeExplorer/index.js.map +1 -0
  417. package/build/esm/ThemeExplorer/makeColorScheme.d.ts +0 -0
  418. package/build/esm/ThemeExplorer/makeColorScheme.js +1 -2
  419. package/build/esm/ThemeExplorer/makeColorScheme.js.map +1 -1
  420. package/build/esm/ThemeExplorer/useDeferredColor.d.ts +0 -0
  421. package/build/esm/ThemeExplorer/useDeferredColor.js +5 -7
  422. package/build/esm/ThemeExplorer/useDeferredColor.js.map +1 -1
  423. package/build/esm/ThemeExplorer/useLocalStorageCachedState.d.ts +1 -1
  424. package/build/esm/ThemeExplorer/useLocalStorageCachedState.js +1 -1
  425. package/build/esm/ThemeExplorer/useLocalStorageCachedState.js.map +1 -1
  426. package/build/esm/Tooltip/Tooltip.d.ts +1 -1
  427. package/build/esm/Tooltip/Tooltip.js +2 -1
  428. package/build/esm/Tooltip/Tooltip.js.map +1 -1
  429. package/build/esm/Tooltip/index.d.ts +0 -0
  430. package/build/esm/Tooltip/index.js +0 -0
  431. package/build/esm/Tooltip/index.js.map +1 -1
  432. package/build/esm/color.d.ts +0 -0
  433. package/build/esm/color.js +1 -1
  434. package/build/esm/color.js.map +1 -1
  435. package/build/esm/css.d.ts +0 -0
  436. package/build/esm/css.js +0 -0
  437. package/build/esm/css.js.map +1 -1
  438. package/build/esm/hooks/useAnimation.d.ts +0 -0
  439. package/build/esm/hooks/useAnimation.js +3 -3
  440. package/build/esm/hooks/useAnimation.js.map +1 -1
  441. package/build/esm/index.d.ts +0 -1
  442. package/build/esm/index.js +0 -1
  443. package/build/esm/index.js.map +1 -1
  444. package/build/esm/motion.d.ts +0 -0
  445. package/build/esm/motion.js +0 -0
  446. package/build/esm/motion.js.map +1 -1
  447. package/build/esm/theme/index.d.ts +0 -0
  448. package/build/esm/theme/index.js +0 -0
  449. package/build/esm/theme/index.js.map +1 -1
  450. package/build/esm/theme/theme.d.ts +0 -27
  451. package/build/esm/theme/theme.js +4 -31
  452. package/build/esm/theme/theme.js.map +1 -1
  453. package/build/esm/theme/typography-raleway.d.ts +0 -0
  454. package/build/esm/theme/typography-raleway.js +0 -0
  455. package/build/esm/theme/typography-raleway.js.map +1 -1
  456. package/build/esm/theme/typography-roboto.d.ts +0 -0
  457. package/build/esm/theme/typography-roboto.js +0 -0
  458. package/build/esm/theme/typography-roboto.js.map +1 -1
  459. package/build/esm/theme/useTheme.d.ts +557 -1
  460. package/build/esm/theme/useTheme.js +0 -0
  461. package/build/esm/theme/useTheme.js.map +1 -1
  462. package/build/tsconfig-build.tsbuildinfo +1 -1
  463. package/package.json +5 -5
  464. package/src/CheckBox/CheckBox.story.tsx +5 -4
  465. package/src/ProgressSpinner/ProgressSpinner.tsx +7 -7
  466. package/src/Snackbar/Snackbar.tsx +3 -3
  467. package/src/ThemeExplorer/ThemeBuilder.story.tsx +1 -163
  468. package/src/ThemeExplorer/ThemeBuilder.tsx +198 -0
  469. package/src/ThemeExplorer/components.tsx +24 -21
  470. package/src/ThemeExplorer/index.ts +1 -0
  471. package/src/ThemeExplorer/makeColorScheme.tsx +1 -1
  472. package/src/ThemeExplorer/useDeferredColor.tsx +3 -4
  473. package/src/ThemeExplorer/useLocalStorageCachedState.ts +2 -2
  474. package/src/Tooltip/Tooltip.story.tsx +1 -1
  475. package/src/color.ts +1 -1
  476. package/src/index.ts +0 -1
  477. package/src/theme/theme.ts +4 -31
  478. package/build/esm/ColorMode/ColorModeProvider.d.ts +0 -7
  479. package/build/esm/ColorMode/ColorModeProvider.js +0 -91
  480. package/build/esm/ColorMode/ColorModeProvider.js.map +0 -1
  481. package/build/esm/ColorMode/color-mode.d.ts +0 -8
  482. package/build/esm/ColorMode/color-mode.js +0 -11
  483. package/build/esm/ColorMode/color-mode.js.map +0 -1
  484. package/build/esm/ColorMode/color-vars.d.ts +0 -4
  485. package/build/esm/ColorMode/color-vars.js +0 -58
  486. package/build/esm/ColorMode/color-vars.js.map +0 -1
  487. package/build/esm/ColorMode/constants.d.ts +0 -3
  488. package/build/esm/ColorMode/constants.js +0 -5
  489. package/build/esm/ColorMode/constants.js.map +0 -1
  490. package/build/esm/ColorMode/index.d.ts +0 -4
  491. package/build/esm/ColorMode/index.js +0 -5
  492. package/build/esm/ColorMode/index.js.map +0 -1
  493. package/build/esm/ListItem/context.d.ts +0 -7
  494. package/build/esm/ListItem/context.js +0 -10
  495. package/build/esm/ListItem/context.js.map +0 -1
  496. package/build/tsconfig.tsbuildinfo +0 -1
  497. package/src/ColorMode/ColorModeProvider.tsx +0 -97
  498. package/src/ColorMode/color-mode.ts +0 -20
  499. package/src/ColorMode/color-vars.ts +0 -56
  500. package/src/ColorMode/constants.ts +0 -5
  501. package/src/ColorMode/index.ts +0 -4
  502. package/src/ColorMode/tests/color-vars.test.ts +0 -9
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Select/Select.tsx"],"names":["forwardRef","useState","useRef","useEffect","useId","wrapEvent","assignMultipleRefs","useControlledState","useTheme","Select","SelectComp","SelectButton","FilledContainer","HelperText","OutlinedContainer","SelectProvider","Menu","MenuPopover","MenuList","SelectIcon","makeDefaultRender","Box","IconContainer","componentMap","outlined","filled","props","forwardedRef","idProp","id","variant","color","valueProp","value","defaultValue","disabled","error","label","placeholder","helperTextProp","helperText","onChangeProp","onChange","onFocus","onBlur","native","children","renderValueProp","renderValue","leadingIcon","otherProps","setState","e","v","hasFocus","setHasFocus","buttonRef","open","setOpen","fallbackId","theme","Container","handleFocus","handleBlur","handleToggle","isOpen","handleOnChange","target","currentTarget","dataset","hasError","Boolean","inputId","helperTextId","undefined","labelIsFloating","Comp","current","onSelect","minWidth","offsetWidth"],"mappings":";;;AAMA,SAASA,UAAT,EAAqBC,QAArB,EAA+BC,MAA/B,EAAuCC,SAAvC,EAAkDC,KAAlD,QAA+D,OAA/D;AACA,SACEC,SADF,EAEEC,kBAFF,EAGEC,kBAHF,QAIO,gBAJP;AAOA,SAASC,QAAT,QAAyB,UAAzB;AACA,SAASC,MAAM,IAAIC,UAAnB,EAA+BC,YAA/B,QAAmD,oBAAnD;AACA,SAASC,eAAT,QAAgC,8BAAhC;AACA,SAASC,UAAT,QAA2B,yBAA3B;AACA,SAASC,iBAAT,QAAkC,gCAAlC;AACA,SAASC,cAAT,QAA+B,WAA/B;AACA,SAASC,IAAT,EAAeC,WAAf,EAA4BC,QAA5B,QAA4C,SAA5C;AACA,SAASC,UAAT,QAA2B,cAA3B;AACA,SAASC,iBAAT,QAAkC,iBAAlC;AAEA,SAASC,GAAT,QAAoB,QAApB;AACA,SAASC,aAAT,QAA8B,4BAA9B;;;AAEA,IAAMC,YAAY,GAAG;AACnBC,EAAAA,QAAQ,EAAEV,iBADS;AAEnBW,EAAAA,MAAM,EAAEb;AAFW,CAArB;AAwBA,OAAO,IAAMH,MAAM,gBAAGT,UAAU,CAG9B,SAASS,MAAT,CAAgBiB,K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;AACE,cAAA,sBAAsB,EAAEZ,KAD1B;AAEE,cAAA,KAAK,EAAE;AACL8C,gBAAAA,QAAQ,EAAEvB,SAAF,0CAAEA,SAAS,CAAEqB,OAAb,qBAAE,mBAAoBG;AADzB,eAFT;AAKE,cAAA,IAAI,EAAC,SALP;AAAA,wBAOGlC;AAPH;AADF,YAzBJ;AAAA,UAZF,eAkDE,KAAC,UAAD;AAAY,UAAA,IAAI,EAAEW;AAAlB,UAlDF;AAAA,QADF,eAsDE,KAAC,UAAD;AACE,QAAA,QAAQ,EAAEtB,QADZ;AAEE,QAAA,EAAE,EAAEsC,YAFN;AAGE,QAAA,QAAQ,EAAEjC,UAHZ;AAIE,QAAA,KAAK,EAAE8B;AAJT,QAtDF;AAAA;AADF,IADF;AAiED,CAtJ+B,CAAzB","sourcesContent":["import type {\n SelectHTMLAttributes,\n ReactNode,\n ChangeEvent,\n ComponentType,\n} from 'react';\nimport { forwardRef, useState, useRef, useEffect, useId } from 'react';\nimport {\n wrapEvent,\n assignMultipleRefs,\n useControlledState,\n} from '@basic-ui/core';\n\nimport type { Theme } from '../theme';\nimport { useTheme } from '../theme';\nimport { Select as SelectComp, SelectButton } from './styledComponents';\nimport { FilledContainer } from '../TextField/FilledContainer';\nimport { HelperText } from '../TextField/HelperText';\nimport { OutlinedContainer } from '../TextField/OutlinedContainer';\nimport { SelectProvider } from './context';\nimport { Menu, MenuPopover, MenuList } from '../Menu';\nimport { SelectIcon } from './SelectIcon';\nimport { makeDefaultRender } from './defaultRender';\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\nimport { IconContainer } from '../TextField/IconContainer';\n\nconst componentMap = {\n outlined: OutlinedContainer,\n filled: FilledContainer,\n};\n\nexport interface SelectProps\n extends Omit<\n BoxProps<HTMLSelectElement, SelectHTMLAttributes<HTMLSelectElement>>,\n 'value' | 'defaultValue' | 'onChange'\n > {\n variant?: 'outlined' | 'filled';\n color?: 'primary' | 'secondary';\n label?: ReactNode;\n helperText?: string;\n defaultValue?: string;\n value?: string;\n native?: boolean;\n theme?: Theme;\n error?: boolean | string;\n onChange?: (e: ChangeEvent<HTMLSelectElement>, value: string) => void;\n renderValue?: (value?: string) => string | undefined;\n leadingIcon?: ReactNode;\n}\n\nexport const Select = forwardRef<\n HTMLSelectElement | HTMLButtonElement,\n SelectProps\n>(function Select(props, forwardedRef) {\n const {\n id: idProp,\n variant = 'outlined',\n color = 'primary',\n value: valueProp,\n defaultValue = '',\n disabled,\n error = false,\n label = null,\n placeholder,\n helperText: helperTextProp,\n onChange: onChangeProp,\n onFocus,\n onBlur,\n native = false,\n children,\n renderValue: renderValueProp,\n leadingIcon = null,\n ...otherProps\n } = props;\n const [value, onChange] = useControlledState(\n valueProp,\n onChangeProp,\n defaultValue,\n (setState) => (e, v) => {\n setState(v);\n }\n );\n const [hasFocus, setHasFocus] = useState(false);\n const buttonRef = useRef<HTMLButtonElement | HTMLSelectElement>();\n const [open, setOpen] = useState(false);\n const fallbackId = useId();\n const theme = useTheme();\n\n const Container = componentMap[variant] || OutlinedContainer;\n\n const handleFocus = () => {\n setHasFocus(true);\n };\n\n const handleBlur = () => {\n setHasFocus(false);\n };\n\n const handleToggle = (e: unknown, isOpen: boolean) => {\n setOpen(isOpen);\n };\n\n const handleOnChange = (e: any) => {\n onChange &&\n onChange(\n e as any,\n native ? e.target.value : e.currentTarget.dataset.value\n );\n };\n\n const hasError = Boolean(error);\n const helperText = typeof error === 'string' ? error : helperTextProp;\n\n const id = idProp || fallbackId;\n const inputId = `${id}-text-field`;\n const helperTextId = helperText ? `${id}-helper-text` : undefined;\n\n const renderValue = renderValueProp || makeDefaultRender(children);\n\n const labelIsFloating = hasFocus || open || renderValue(value) !== undefined;\n\n const Comp: ComponentType<any> = native\n ? (SelectComp as any)\n : (SelectButton as any);\n\n useEffect(() => {\n // right after mounting, if the default value in the select element\n // is different than the value we have stored in state we need to\n // update our state to reflect that.\n if (native && buttonRef.current && buttonRef.current.value !== value) {\n onChange && onChange({} as any, buttonRef.current.value);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n <SelectProvider value={{ native, onSelect: handleOnChange, value }}>\n <Box display=\"inline-flex\" flexDirection=\"column\" width=\"100%\">\n <Container\n theme={theme}\n label={label}\n color={color}\n labelIsFloating={labelIsFloating}\n inputId={inputId}\n hasFocus={hasFocus}\n disabled={disabled}\n forceActive={open}\n error={hasError}\n leadingIcon={Boolean(leadingIcon)}\n >\n <Menu onChange={handleToggle} open={open}>\n {leadingIcon && (\n <IconContainer position=\"start\">{leadingIcon}</IconContainer>\n )}\n <Comp\n ref={assignMultipleRefs(forwardedRef, buttonRef)}\n variant={variant}\n id={inputId}\n onFocus={wrapEvent(onFocus, handleFocus)}\n onBlur={wrapEvent(onBlur, handleBlur)}\n onChange={native ? handleOnChange : undefined}\n value={native ? value : undefined}\n theme={theme}\n placeholder={placeholder}\n disabled={disabled}\n aria-disabled={disabled ? 'true' : undefined}\n aria-describedby={helperTextId}\n hasLabel={!!label}\n leadingIcon={Boolean(leadingIcon)}\n trailingIcon={true}\n {...otherProps}\n >\n {native ? children : renderValue(value)}\n </Comp>\n {!native && (\n <MenuPopover usePortal>\n <MenuList\n defaultActiveItemValue={value}\n style={{\n minWidth: buttonRef?.current?.offsetWidth,\n }}\n role=\"listbox\"\n >\n {children}\n </MenuList>\n </MenuPopover>\n )}\n </Menu>\n <SelectIcon open={open} />\n </Container>\n\n <HelperText\n disabled={disabled}\n id={helperTextId}\n leftSide={helperText}\n error={hasError}\n />\n </Box>\n </SelectProvider>\n );\n});\n"],"file":"Select.js"}
1
+ {"version":3,"file":"Select.js","names":["forwardRef","useState","useRef","useEffect","useId","wrapEvent","assignMultipleRefs","useControlledState","useTheme","Select","SelectComp","SelectButton","FilledContainer","HelperText","OutlinedContainer","SelectProvider","Menu","MenuPopover","MenuList","SelectIcon","makeDefaultRender","Box","IconContainer","componentMap","outlined","filled","props","forwardedRef","idProp","id","variant","color","valueProp","value","defaultValue","disabled","error","label","placeholder","helperTextProp","helperText","onChangeProp","onChange","onFocus","onBlur","native","children","renderValueProp","renderValue","leadingIcon","otherProps","setState","e","v","hasFocus","setHasFocus","buttonRef","open","setOpen","fallbackId","theme","Container","handleFocus","handleBlur","handleToggle","isOpen","handleOnChange","target","currentTarget","dataset","hasError","Boolean","inputId","helperTextId","undefined","labelIsFloating","Comp","current","onSelect","minWidth","offsetWidth"],"sources":["../../../src/Select/Select.tsx"],"sourcesContent":["import type {\n SelectHTMLAttributes,\n ReactNode,\n ChangeEvent,\n ComponentType,\n} from 'react';\nimport { forwardRef, useState, useRef, useEffect, useId } from 'react';\nimport {\n wrapEvent,\n assignMultipleRefs,\n useControlledState,\n} from '@basic-ui/core';\n\nimport type { Theme } from '../theme';\nimport { useTheme } from '../theme';\nimport { Select as SelectComp, SelectButton } from './styledComponents';\nimport { FilledContainer } from '../TextField/FilledContainer';\nimport { HelperText } from '../TextField/HelperText';\nimport { OutlinedContainer } from '../TextField/OutlinedContainer';\nimport { SelectProvider } from './context';\nimport { Menu, MenuPopover, MenuList } from '../Menu';\nimport { SelectIcon } from './SelectIcon';\nimport { makeDefaultRender } from './defaultRender';\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\nimport { IconContainer } from '../TextField/IconContainer';\n\nconst componentMap = {\n outlined: OutlinedContainer,\n filled: FilledContainer,\n};\n\nexport interface SelectProps\n extends Omit<\n BoxProps<HTMLSelectElement, SelectHTMLAttributes<HTMLSelectElement>>,\n 'value' | 'defaultValue' | 'onChange'\n > {\n variant?: 'outlined' | 'filled';\n color?: 'primary' | 'secondary';\n label?: ReactNode;\n helperText?: string;\n defaultValue?: string;\n value?: string;\n native?: boolean;\n theme?: Theme;\n error?: boolean | string;\n onChange?: (e: ChangeEvent<HTMLSelectElement>, value: string) => void;\n renderValue?: (value?: string) => string | undefined;\n leadingIcon?: ReactNode;\n}\n\nexport const Select = forwardRef<\n HTMLSelectElement | HTMLButtonElement,\n SelectProps\n>(function Select(props, forwardedRef) {\n const {\n id: idProp,\n variant = 'outlined',\n color = 'primary',\n value: valueProp,\n defaultValue = '',\n disabled,\n error = false,\n label = null,\n placeholder,\n helperText: helperTextProp,\n onChange: onChangeProp,\n onFocus,\n onBlur,\n native = false,\n children,\n renderValue: renderValueProp,\n leadingIcon = null,\n ...otherProps\n } = props;\n const [value, onChange] = useControlledState(\n valueProp,\n onChangeProp,\n defaultValue,\n (setState) => (e, v) => {\n setState(v);\n }\n );\n const [hasFocus, setHasFocus] = useState(false);\n const buttonRef = useRef<HTMLButtonElement | HTMLSelectElement>();\n const [open, setOpen] = useState(false);\n const fallbackId = useId();\n const theme = useTheme();\n\n const Container = componentMap[variant] || OutlinedContainer;\n\n const handleFocus = () => {\n setHasFocus(true);\n };\n\n const handleBlur = () => {\n setHasFocus(false);\n };\n\n const handleToggle = (e: unknown, isOpen: boolean) => {\n setOpen(isOpen);\n };\n\n const handleOnChange = (e: any) => {\n onChange &&\n onChange(\n e as any,\n native ? e.target.value : e.currentTarget.dataset.value\n );\n };\n\n const hasError = Boolean(error);\n const helperText = typeof error === 'string' ? error : helperTextProp;\n\n const id = idProp || fallbackId;\n const inputId = `${id}-text-field`;\n const helperTextId = helperText ? `${id}-helper-text` : undefined;\n\n const renderValue = renderValueProp || makeDefaultRender(children);\n\n const labelIsFloating = hasFocus || open || renderValue(value) !== undefined;\n\n const Comp: ComponentType<any> = native\n ? (SelectComp as any)\n : (SelectButton as any);\n\n useEffect(() => {\n // right after mounting, if the default value in the select element\n // is different than the value we have stored in state we need to\n // update our state to reflect that.\n if (native && buttonRef.current && buttonRef.current.value !== value) {\n onChange && onChange({} as any, buttonRef.current.value);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n <SelectProvider value={{ native, onSelect: handleOnChange, value }}>\n <Box display=\"inline-flex\" flexDirection=\"column\" width=\"100%\">\n <Container\n theme={theme}\n label={label}\n color={color}\n labelIsFloating={labelIsFloating}\n inputId={inputId}\n hasFocus={hasFocus}\n disabled={disabled}\n forceActive={open}\n error={hasError}\n leadingIcon={Boolean(leadingIcon)}\n >\n <Menu onChange={handleToggle} open={open}>\n {leadingIcon && (\n <IconContainer position=\"start\">{leadingIcon}</IconContainer>\n )}\n <Comp\n ref={assignMultipleRefs(forwardedRef, buttonRef)}\n variant={variant}\n id={inputId}\n onFocus={wrapEvent(onFocus, handleFocus)}\n onBlur={wrapEvent(onBlur, handleBlur)}\n onChange={native ? handleOnChange : undefined}\n value={native ? value : undefined}\n theme={theme}\n placeholder={placeholder}\n disabled={disabled}\n aria-disabled={disabled ? 'true' : undefined}\n aria-describedby={helperTextId}\n hasLabel={!!label}\n leadingIcon={Boolean(leadingIcon)}\n trailingIcon={true}\n {...otherProps}\n >\n {native ? children : renderValue(value)}\n </Comp>\n {!native && (\n <MenuPopover usePortal>\n <MenuList\n defaultActiveItemValue={value}\n style={{\n minWidth: buttonRef?.current?.offsetWidth,\n }}\n role=\"listbox\"\n >\n {children}\n </MenuList>\n </MenuPopover>\n )}\n </Menu>\n <SelectIcon open={open} />\n </Container>\n\n <HelperText\n disabled={disabled}\n id={helperTextId}\n leftSide={helperText}\n error={hasError}\n />\n </Box>\n </SelectProvider>\n );\n});\n"],"mappings":";;;;AAMA,SAASA,UAAT,EAAqBC,QAArB,EAA+BC,MAA/B,EAAuCC,SAAvC,EAAkDC,KAAlD,QAA+D,OAA/D;AACA,SACEC,SADF,EAEEC,kBAFF,EAGEC,kBAHF,QAIO,gBAJP;AAOA,SAASC,QAAT,QAAyB,UAAzB;AACA,SAASC,MAAM,IAAIC,UAAnB,EAA+BC,YAA/B,QAAmD,oBAAnD;AACA,SAASC,eAAT,QAAgC,8BAAhC;AACA,SAASC,UAAT,QAA2B,yBAA3B;AACA,SAASC,iBAAT,QAAkC,gCAAlC;AACA,SAASC,cAAT,QAA+B,WAA/B;AACA,SAASC,IAAT,EAAeC,WAAf,EAA4BC,QAA5B,QAA4C,SAA5C;AACA,SAASC,UAAT,QAA2B,cAA3B;AACA,SAASC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cAKE,IAAI,EAAC,SALP;cAAA,UAOGlC;YAPH;UADF,EAzBJ;QAAA,EAZF,eAkDE,KAAC,UAAD;UAAY,IAAI,EAAEW;QAAlB,EAlDF;MAAA,EADF,eAsDE,KAAC,UAAD;QACE,QAAQ,EAAEtB,QADZ;QAEE,EAAE,EAAEsC,YAFN;QAGE,QAAQ,EAAEjC,UAHZ;QAIE,KAAK,EAAE8B;MAJT,EAtDF;IAAA;EADF,EADF;AAiED,CAtJ+B,CAAzB"}
@@ -3,4 +3,4 @@ import type { BoxProps } from '../Box';
3
3
  export declare type SelectIconProps = BoxProps<SVGElement, SVGAttributes<SVGElement>> & {
4
4
  open?: boolean;
5
5
  };
6
- export declare const SelectIcon: import("react").ForwardRefExoticComponent<Pick<SelectIconProps, "string" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "wordSpacing" | "writingMode" | "offset" | "textDecoration" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "values" | "local" | keyof import("../Box").BaseProps | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | "className" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "x" | "y" | "open" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "key" | "elevation" | "name" | "type" | "restart" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & import("react").RefAttributes<SVGElement>>;
6
+ export declare const SelectIcon: import("react").ForwardRefExoticComponent<Pick<SelectIconProps, "string" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "alignmentBaseline" | "baselineShift" | "clip" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "local" | "elevation" | "values" | keyof import("../Box").BaseProps | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | "className" | "id" | "lang" | "style" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "path" | "end" | "x" | "y" | "open" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "name" | "type" | "from" | "to" | "restart" | "mode" | "crossOrigin" | "max" | "min" | "d" | "y2" | "x2" | "y1" | "x1" | "href" | "media" | "target" | "origin" | "method" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "operator" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "yChannelSelector" | "z" | "zoomAndPan"> & import("react").RefAttributes<SVGElement>>;
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["open"];
3
4
  import { forwardRef } from 'react';
4
5
  import { rem } from 'polished';
5
6
  import { Box } from '../Box';
@@ -9,9 +10,9 @@ import { EASING_STANDARD } from '../motion';
9
10
  import { jsx as _jsx } from "react/jsx-runtime";
10
11
  export var SelectIcon = /*#__PURE__*/forwardRef(function SelectIcon(props, forwardedRef) {
11
12
  var open = props.open,
12
- otherProps = _objectWithoutProperties(props, ["open"]);
13
+ otherProps = _objectWithoutProperties(props, _excluded);
13
14
 
14
- return /*#__PURE__*/_jsx(Box, _extends({
15
+ return /*#__PURE__*/_jsx(Box, _extends(_extends({
15
16
  ref: forwardedRef,
16
17
  as: "svg",
17
18
  "aria-hidden": true,
@@ -27,7 +28,7 @@ export var SelectIcon = /*#__PURE__*/forwardRef(function SelectIcon(props, forwa
27
28
  transform: open ? 'rotate(180deg)' : undefined,
28
29
  transition: "transform .15s ".concat(EASING_STANDARD, ", color .15s ").concat(EASING_STANDARD)
29
30
  }
30
- }, otherProps, {
31
+ }, otherProps), {}, {
31
32
  children: /*#__PURE__*/_jsx("path", {
32
33
  fill: "currentColor",
33
34
  d: "M7 10l5 5 5-5z"
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Select/SelectIcon.tsx"],"names":["forwardRef","rem","Box","alpha","PADDING_RIGHT_WITH_ICON","EASING_STANDARD","SelectIcon","props","forwardedRef","open","otherProps","position","top","right","width","height","color","pointerEvents","transform","undefined","transition"],"mappings":";;AACA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,GAAT,QAAoB,UAApB;AAGA,SAASC,GAAT,QAAoB,QAApB;AACA,SAASC,KAAT,QAAsB,UAAtB;AACA,SAASC,uBAAT,QAAwC,qBAAxC;AACA,SAASC,eAAT,QAAgC,WAAhC;;AAOA,OAAO,IAAMC,UAAU,gBAAGN,UAAU,CAClC,SAASM,UAAT,CAAoBC,KAApB,EAA2BC,YAA3B,EAAyC;AAAA,MAC/BC,IAD+B,GACPF,KADO,CAC/BE,IAD+B;AAAA,MACtBC,UADsB,4BACPH,KADO;;AAGvC,sBACE,KAAC,GAAD;AACE,IAAA,GAAG,EAAEC,YADP;AAEE,IAAA,EAAE,EAAC,KAFL;AAGE,mBAAa,IAHf;AAIE,IAAA,OAAO,EAAC,WAJV;AAKE,IAAA,KAAK,EAAE;AACLG,MAAAA,QAAQ,EAAE,UADL;AAELC,MAAAA,GAAG,sCAFE;AAGLC,MAAAA,KAAK,EAAEZ,GAAG,CAACG,uBAAD,CAHL;AAILU,MAAAA,KAAK,UAJA;AAKLC,MAAAA,MAAM,UALD;AAMLC,MAAAA,KAAK,EAAEP,IAAI,GAAG,SAAH,GAAeN,KAAK,CAAC,YAAD,EAAe,IAAf,CAN1B;AAOLc,MAAAA,aAAa,EAAE,MAPV;AAQLC,MAAAA,SAAS,EAAET,IAAI,GAAG,gBAAH,GAAsBU,SARhC;AASLC,MAAAA,UAAU,2BAAoBf,eAApB,0BAAmDA,eAAnD;AATL;AALT,KAgBMK,UAhBN;AAAA,2BAkBE;AAAM,MAAA,IAAI,EAAC,cAAX;AAA0B,MAAA,CAAC,EAAC;AAA5B;AAlBF,KADF;AAsBD,CA1BiC,CAA7B","sourcesContent":["import type { SVGAttributes } from 'react';\nimport { forwardRef } from 'react';\nimport { rem } from 'polished';\n\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\nimport { alpha } from '../color';\nimport { PADDING_RIGHT_WITH_ICON } from '../TextField/consts';\nimport { EASING_STANDARD } from '../motion';\n\nexport type SelectIconProps = BoxProps<\n SVGElement,\n SVGAttributes<SVGElement>\n> & { open?: boolean };\n\nexport const SelectIcon = forwardRef<SVGElement, SelectIconProps>(\n function SelectIcon(props, forwardedRef) {\n const { open, ...otherProps } = props;\n\n return (\n <Box<BoxProps<SVGElement, SVGAttributes<SVGElement>>>\n ref={forwardedRef}\n as=\"svg\"\n aria-hidden={true}\n viewBox=\"0 0 24 24\"\n __css={{\n position: 'absolute',\n top: `calc(50% - ${rem(12)})`,\n right: rem(PADDING_RIGHT_WITH_ICON),\n width: rem(24),\n height: rem(24),\n color: open ? 'primary' : alpha('on.surface', 0.54),\n pointerEvents: 'none',\n transform: open ? 'rotate(180deg)' : undefined,\n transition: `transform .15s ${EASING_STANDARD}, color .15s ${EASING_STANDARD}`,\n }}\n {...otherProps}\n >\n <path fill=\"currentColor\" d=\"M7 10l5 5 5-5z\" />\n </Box>\n );\n }\n);\n"],"file":"SelectIcon.js"}
1
+ {"version":3,"file":"SelectIcon.js","names":["forwardRef","rem","Box","alpha","PADDING_RIGHT_WITH_ICON","EASING_STANDARD","SelectIcon","props","forwardedRef","open","otherProps","position","top","right","width","height","color","pointerEvents","transform","undefined","transition"],"sources":["../../../src/Select/SelectIcon.tsx"],"sourcesContent":["import type { SVGAttributes } from 'react';\nimport { forwardRef } from 'react';\nimport { rem } from 'polished';\n\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\nimport { alpha } from '../color';\nimport { PADDING_RIGHT_WITH_ICON } from '../TextField/consts';\nimport { EASING_STANDARD } from '../motion';\n\nexport type SelectIconProps = BoxProps<\n SVGElement,\n SVGAttributes<SVGElement>\n> & { open?: boolean };\n\nexport const SelectIcon = forwardRef<SVGElement, SelectIconProps>(\n function SelectIcon(props, forwardedRef) {\n const { open, ...otherProps } = props;\n\n return (\n <Box<BoxProps<SVGElement, SVGAttributes<SVGElement>>>\n ref={forwardedRef}\n as=\"svg\"\n aria-hidden={true}\n viewBox=\"0 0 24 24\"\n __css={{\n position: 'absolute',\n top: `calc(50% - ${rem(12)})`,\n right: rem(PADDING_RIGHT_WITH_ICON),\n width: rem(24),\n height: rem(24),\n color: open ? 'primary' : alpha('on.surface', 0.54),\n pointerEvents: 'none',\n transform: open ? 'rotate(180deg)' : undefined,\n transition: `transform .15s ${EASING_STANDARD}, color .15s ${EASING_STANDARD}`,\n }}\n {...otherProps}\n >\n <path fill=\"currentColor\" d=\"M7 10l5 5 5-5z\" />\n </Box>\n );\n }\n);\n"],"mappings":";;;AACA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,GAAT,QAAoB,UAApB;AAGA,SAASC,GAAT,QAAoB,QAApB;AACA,SAASC,KAAT,QAAsB,UAAtB;AACA,SAASC,uBAAT,QAAwC,qBAAxC;AACA,SAASC,eAAT,QAAgC,WAAhC;;AAOA,OAAO,IAAMC,UAAU,gBAAGN,UAAU,CAClC,SAASM,UAAT,CAAoBC,KAApB,EAA2BC,YAA3B,EAAyC;EACvC,IAAQC,IAAR,GAAgCF,KAAhC,CAAQE,IAAR;EAAA,IAAiBC,UAAjB,4BAAgCH,KAAhC;;EAEA,oBACE,KAAC,GAAD;IACE,GAAG,EAAEC,YADP;IAEE,EAAE,EAAC,KAFL;IAGE,eAAa,IAHf;IAIE,OAAO,EAAC,WAJV;IAKE,KAAK,EAAE;MACLG,QAAQ,EAAE,UADL;MAELC,GAAG,sCAFE;MAGLC,KAAK,EAAEZ,GAAG,CAACG,uBAAD,CAHL;MAILU,KAAK,UAJA;MAKLC,MAAM,UALD;MAMLC,KAAK,EAAEP,IAAI,GAAG,SAAH,GAAeN,KAAK,CAAC,YAAD,EAAe,IAAf,CAN1B;MAOLc,aAAa,EAAE,MAPV;MAQLC,SAAS,EAAET,IAAI,GAAG,gBAAH,GAAsBU,SARhC;MASLC,UAAU,2BAAoBf,eAApB,0BAAmDA,eAAnD;IATL;EALT,GAgBMK,UAhBN;IAAA,uBAkBE;MAAM,IAAI,EAAC,cAAX;MAA0B,CAAC,EAAC;IAA5B;EAlBF,GADF;AAsBD,CA1BiC,CAA7B"}
File without changes
File without changes
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Select/context.ts"],"names":["useContext","createContext","selectContext","native","onSelect","SelectProvider","Provider","useSelectContext"],"mappings":"AACA,SAASA,UAAT,EAAqBC,aAArB,QAA0C,OAA1C,C,CAEA;;AASA,IAAMC,aAAa,gBAAGD,aAAa,CAAqB;AACtDE,EAAAA,MAAM,EAAE,KAD8C;AAEtDC,EAAAA,QAAQ,EAAE,oBAAM,CACd;AACD;AAJqD,CAArB,CAAnC;IAMyBC,c,GAAmBH,a,CAA7BI,Q;;AACf,OAAO,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB;AAAA,SAAMP,UAAU,CAACE,aAAD,CAAhB;AAAA,CAAzB","sourcesContent":["import type { MouseEvent, KeyboardEvent } from 'react';\nimport { useContext, createContext } from 'react';\n\n// Select Component\nexport interface SelectContextProps {\n native: boolean;\n value?: string;\n onSelect: (\n e: MouseEvent<HTMLLIElement> | KeyboardEvent<HTMLLIElement>\n ) => void;\n}\n\nconst selectContext = createContext<SelectContextProps>({\n native: false,\n onSelect: () => {\n // noop\n },\n});\nexport const { Provider: SelectProvider } = selectContext;\nexport const useSelectContext = () => useContext(selectContext);\n"],"file":"context.js"}
1
+ {"version":3,"file":"context.js","names":["useContext","createContext","selectContext","native","onSelect","SelectProvider","Provider","useSelectContext"],"sources":["../../../src/Select/context.ts"],"sourcesContent":["import type { MouseEvent, KeyboardEvent } from 'react';\nimport { useContext, createContext } from 'react';\n\n// Select Component\nexport interface SelectContextProps {\n native: boolean;\n value?: string;\n onSelect: (\n e: MouseEvent<HTMLLIElement> | KeyboardEvent<HTMLLIElement>\n ) => void;\n}\n\nconst selectContext = createContext<SelectContextProps>({\n native: false,\n onSelect: () => {\n // noop\n },\n});\nexport const { Provider: SelectProvider } = selectContext;\nexport const useSelectContext = () => useContext(selectContext);\n"],"mappings":"AACA,SAASA,UAAT,EAAqBC,aAArB,QAA0C,OAA1C,C,CAEA;;AASA,IAAMC,aAAa,gBAAGD,aAAa,CAAqB;EACtDE,MAAM,EAAE,KAD8C;EAEtDC,QAAQ,EAAE,oBAAM,CACd;EACD;AAJqD,CAArB,CAAnC;AAMO,IAAkBC,cAAlB,GAAqCH,aAArC,CAAQI,QAAR;;AACP,OAAO,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB;EAAA,OAAMP,UAAU,CAACE,aAAD,CAAhB;AAAA,CAAzB"}
@@ -1,2 +1,2 @@
1
1
  import type { ReactNode } from 'react';
2
- export declare const makeDefaultRender: (children?: ReactNode) => (val?: string | undefined) => string | undefined;
2
+ export declare const makeDefaultRender: (children?: ReactNode) => (val?: string) => string | undefined;
File without changes
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Select/defaultRender.ts"],"names":["Children","isValidElement","makeDefaultRender","children","val","undefined","allChildren","toArray","i","length","child","String","props","value"],"mappings":"AACA,SAASA,QAAT,EAAmBC,cAAnB,QAAyC,OAAzC;AAEA,OAAO,IAAMC,iBAAiB,GAC5B,SADWA,iBACX,CAACC,QAAD;AAAA,SACA,UAACC,GAAD,EAAsC;AACpC,QAAID,QAAQ,IAAIC,GAAG,KAAKC,SAAxB,EAAmC;AACjC,UAAMC,WAAW,GAAGN,QAAQ,CAACO,OAAT,CAAiBJ,QAAjB,CAApB;;AACA,WAAK,IAAIK,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGF,WAAW,CAACG,MAAhC,EAAwCD,CAAC,EAAzC,EAA6C;AAC3C,YAAME,KAAK,GAAGJ,WAAW,CAACE,CAAD,CAAzB;;AACA,0BAAIP,cAAc,CAACS,KAAD,CAAlB,EAA2B;AACzB,cAAIC,MAAM,CAACD,KAAK,CAACE,KAAN,CAAYC,KAAb,CAAN,KAA8BT,GAAlC,EAAuC;AACrC,mBAAOM,KAAK,CAACE,KAAN,CAAYT,QAAnB;AACD;AACF;AACF;AACF;;AACD,WAAOC,GAAG,IAAIC,SAAd;AACD,GAdD;AAAA,CADK","sourcesContent":["import type { ReactNode } from 'react';\nimport { Children, isValidElement } from 'react';\n\nexport const makeDefaultRender =\n (children?: ReactNode) =>\n (val?: string): string | undefined => {\n if (children && val !== undefined) {\n const allChildren = Children.toArray(children);\n for (let i = 0; i < allChildren.length; i++) {\n const child = allChildren[i];\n if (isValidElement(child)) {\n if (String(child.props.value) === val) {\n return child.props.children;\n }\n }\n }\n }\n return val || undefined;\n };\n"],"file":"defaultRender.js"}
1
+ {"version":3,"file":"defaultRender.js","names":["Children","isValidElement","makeDefaultRender","children","val","undefined","allChildren","toArray","i","length","child","String","props","value"],"sources":["../../../src/Select/defaultRender.ts"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { Children, isValidElement } from 'react';\n\nexport const makeDefaultRender =\n (children?: ReactNode) =>\n (val?: string): string | undefined => {\n if (children && val !== undefined) {\n const allChildren = Children.toArray(children);\n for (let i = 0; i < allChildren.length; i++) {\n const child = allChildren[i];\n if (isValidElement(child)) {\n if (String(child.props.value) === val) {\n return child.props.children;\n }\n }\n }\n }\n return val || undefined;\n };\n"],"mappings":"AACA,SAASA,QAAT,EAAmBC,cAAnB,QAAyC,OAAzC;AAEA,OAAO,IAAMC,iBAAiB,GAC5B,SADWA,iBACX,CAACC,QAAD;EAAA,OACA,UAACC,GAAD,EAAsC;IACpC,IAAID,QAAQ,IAAIC,GAAG,KAAKC,SAAxB,EAAmC;MACjC,IAAMC,WAAW,GAAGN,QAAQ,CAACO,OAAT,CAAiBJ,QAAjB,CAApB;;MACA,KAAK,IAAIK,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGF,WAAW,CAACG,MAAhC,EAAwCD,CAAC,EAAzC,EAA6C;QAC3C,IAAME,KAAK,GAAGJ,WAAW,CAACE,CAAD,CAAzB;;QACA,kBAAIP,cAAc,CAACS,KAAD,CAAlB,EAA2B;UACzB,IAAIC,MAAM,CAACD,KAAK,CAACE,KAAN,CAAYC,KAAb,CAAN,KAA8BT,GAAlC,EAAuC;YACrC,OAAOM,KAAK,CAACE,KAAN,CAAYT,QAAnB;UACD;QACF;MACF;IACF;;IACD,OAAOC,GAAG,IAAIC,SAAd;EACD,CAdD;AAAA,CADK"}
File without changes
File without changes
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Select/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAd","sourcesContent":["export * from './Select';\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/Select/index.ts"],"sourcesContent":["export * from './Select';\n"],"mappings":"AAAA,cAAc,UAAd"}
File without changes
@@ -1,5 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["as"],
4
+ _excluded2 = ["innerAs"],
5
+ _excluded3 = ["as", "children"];
3
6
  import { forwardRef } from 'react';
4
7
  import { MenuButton as BaseMenuButton } from '@basic-ui/core';
5
8
  import { Input } from '../TextField/Input';
@@ -7,7 +10,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
7
10
  export var Select = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
8
11
  var _ref$as = _ref.as,
9
12
  asProp = _ref$as === void 0 ? 'select' : _ref$as,
10
- props = _objectWithoutProperties(_ref, ["as"]);
13
+ props = _objectWithoutProperties(_ref, _excluded);
11
14
 
12
15
  var InputSelect = Input;
13
16
  return /*#__PURE__*/_jsx(InputSelect, _extends({
@@ -18,7 +21,7 @@ export var Select = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
18
21
  var SelectButtonInner = /*#__PURE__*/forwardRef(function (_ref2, forwardedRef) {
19
22
  var _ref2$innerAs = _ref2.innerAs,
20
23
  innerAs = _ref2$innerAs === void 0 ? 'div' : _ref2$innerAs,
21
- props = _objectWithoutProperties(_ref2, ["innerAs"]);
24
+ props = _objectWithoutProperties(_ref2, _excluded2);
22
25
 
23
26
  var InputButton = Input;
24
27
  return /*#__PURE__*/_jsx(InputButton, _extends({
@@ -30,13 +33,13 @@ var SelectButtonInner = /*#__PURE__*/forwardRef(function (_ref2, forwardedRef) {
30
33
  export var SelectButton = /*#__PURE__*/forwardRef(function (_ref3, ref) {
31
34
  var as = _ref3.as,
32
35
  children = _ref3.children,
33
- props = _objectWithoutProperties(_ref3, ["as", "children"]);
36
+ props = _objectWithoutProperties(_ref3, _excluded3);
34
37
 
35
- return /*#__PURE__*/_jsx(BaseMenuButton, _extends({
38
+ return /*#__PURE__*/_jsx(BaseMenuButton, _extends(_extends({
36
39
  as: SelectButtonInner,
37
40
  innerAs: as,
38
41
  ref: ref
39
- }, props, {
42
+ }, props), {}, {
40
43
  children: children
41
44
  }));
42
45
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Select/styledComponents.tsx"],"names":["forwardRef","MenuButton","BaseMenuButton","Input","Select","forwardedRef","as","asProp","props","InputSelect","SelectButtonInner","innerAs","InputButton","SelectButton","ref","children"],"mappings":";;AAMA,SAASA,UAAT,QAA2B,OAA3B;AAEA,SAASC,UAAU,IAAIC,cAAvB,QAA6C,gBAA7C;AAGA,SAASC,KAAT,QAAsB,oBAAtB;;AAUA,OAAO,IAAMC,MAAM,gBAAGJ,UAAU,CAC9B,gBAAsCK,YAAtC,EAAuD;AAAA,qBAApDC,EAAoD;AAAA,MAAhDC,MAAgD,wBAAvC,QAAuC;AAAA,MAA1BC,KAA0B;;AACrD,MAAMC,WAA+D,GACnEN,KADF;AAGA,sBAAO,KAAC,WAAD;AAAa,IAAA,EAAE,EAAEI,MAAjB;AAAyB,IAAA,GAAG,EAAEF;AAA9B,KAAgDG,KAAhD,EAAP;AACD,CAN6B,CAAzB;AASP,IAAME,iBAAiB,gBAAGV,UAAU,CAGlC,iBAAgCK,YAAhC,EAAiD;AAAA,4BAA9CM,OAA8C;AAAA,MAA9CA,OAA8C,8BAApC,KAAoC;AAAA,MAA1BH,KAA0B;;AACjD,MAAMI,WAA+D,GACnET,KADF;AAGA,sBACE,KAAC,WAAD;AAAa,IAAA,EAAE,EAAEQ,OAAjB;AAA0B,IAAA,GAAG,EAAEN,YAA/B;AAA6C,IAAA,QAAQ,EAAE;AAAvD,KAA8DG,KAA9D,EADF;AAGD,CAVmC,CAApC;AAYA,OAAO,IAAMK,YAAY,gBAAGb,UAAU,CAGpC,iBAA6Bc,GAA7B;AAAA,MAAGR,EAAH,SAAGA,EAAH;AAAA,MAAOS,QAAP,SAAOA,QAAP;AAAA,MAAoBP,KAApB;;AAAA,sBACA,KAAC,cAAD;AAAgB,IAAA,EAAE,EAAEE,iBAApB;AAAuC,IAAA,OAAO,EAAEJ,EAAhD;AAAoD,IAAA,GAAG,EAAEQ;AAAzD,KAAkEN,KAAlE;AAAA,cACGO;AADH,KADA;AAAA,CAHoC,CAA/B","sourcesContent":["import type {\n ElementType,\n FC,\n RefAttributes,\n SelectHTMLAttributes,\n} from 'react';\nimport { forwardRef } from 'react';\nimport type { MenuButtonProps } from '@basic-ui/core';\nimport { MenuButton as BaseMenuButton } from '@basic-ui/core';\n\nimport type { Theme } from '../theme';\nimport { Input } from '../TextField/Input';\n\nexport interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {\n as?: ElementType<any>;\n variant?: 'filled' | 'outlined';\n hasLabel?: boolean;\n theme: Theme;\n leadingIcon?: boolean;\n}\n\nexport const Select = forwardRef<HTMLSelectElement, SelectProps>(\n ({ as: asProp = 'select', ...props }, forwardedRef) => {\n const InputSelect: FC<SelectProps & RefAttributes<HTMLSelectElement>> =\n Input as any;\n\n return <InputSelect as={asProp} ref={forwardedRef} {...props} />;\n }\n);\n\nconst SelectButtonInner = forwardRef<\n HTMLButtonElement,\n SelectProps & { innerAs?: ElementType<any> }\n>(({ innerAs = 'div', ...props }, forwardedRef) => {\n const InputButton: FC<SelectProps & RefAttributes<HTMLButtonElement>> =\n Input as any;\n\n return (\n <InputButton as={innerAs} ref={forwardedRef} tabIndex={0} {...props} />\n );\n});\n\nexport const SelectButton = forwardRef<\n HTMLButtonElement,\n SelectProps & MenuButtonProps\n>(({ as, children, ...props }, ref) => (\n <BaseMenuButton as={SelectButtonInner} innerAs={as} ref={ref} {...props}>\n {children}\n </BaseMenuButton>\n));\n"],"file":"styledComponents.js"}
1
+ {"version":3,"file":"styledComponents.js","names":["forwardRef","MenuButton","BaseMenuButton","Input","Select","forwardedRef","as","asProp","props","InputSelect","SelectButtonInner","innerAs","InputButton","SelectButton","ref","children"],"sources":["../../../src/Select/styledComponents.tsx"],"sourcesContent":["import type {\n ElementType,\n FC,\n RefAttributes,\n SelectHTMLAttributes,\n} from 'react';\nimport { forwardRef } from 'react';\nimport type { MenuButtonProps } from '@basic-ui/core';\nimport { MenuButton as BaseMenuButton } from '@basic-ui/core';\n\nimport type { Theme } from '../theme';\nimport { Input } from '../TextField/Input';\n\nexport interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {\n as?: ElementType<any>;\n variant?: 'filled' | 'outlined';\n hasLabel?: boolean;\n theme: Theme;\n leadingIcon?: boolean;\n}\n\nexport const Select = forwardRef<HTMLSelectElement, SelectProps>(\n ({ as: asProp = 'select', ...props }, forwardedRef) => {\n const InputSelect: FC<SelectProps & RefAttributes<HTMLSelectElement>> =\n Input as any;\n\n return <InputSelect as={asProp} ref={forwardedRef} {...props} />;\n }\n);\n\nconst SelectButtonInner = forwardRef<\n HTMLButtonElement,\n SelectProps & { innerAs?: ElementType<any> }\n>(({ innerAs = 'div', ...props }, forwardedRef) => {\n const InputButton: FC<SelectProps & RefAttributes<HTMLButtonElement>> =\n Input as any;\n\n return (\n <InputButton as={innerAs} ref={forwardedRef} tabIndex={0} {...props} />\n );\n});\n\nexport const SelectButton = forwardRef<\n HTMLButtonElement,\n SelectProps & MenuButtonProps\n>(({ as, children, ...props }, ref) => (\n <BaseMenuButton as={SelectButtonInner} innerAs={as} ref={ref} {...props}>\n {children}\n </BaseMenuButton>\n));\n"],"mappings":";;;;;AAMA,SAASA,UAAT,QAA2B,OAA3B;AAEA,SAASC,UAAU,IAAIC,cAAvB,QAA6C,gBAA7C;AAGA,SAASC,KAAT,QAAsB,oBAAtB;;AAUA,OAAO,IAAMC,MAAM,gBAAGJ,UAAU,CAC9B,gBAAsCK,YAAtC,EAAuD;EAAA,mBAApDC,EAAoD;EAAA,IAAhDC,MAAgD,wBAAvC,QAAuC;EAAA,IAA1BC,KAA0B;;EACrD,IAAMC,WAA+D,GACnEN,KADF;EAGA,oBAAO,KAAC,WAAD;IAAa,EAAE,EAAEI,MAAjB;IAAyB,GAAG,EAAEF;EAA9B,GAAgDG,KAAhD,EAAP;AACD,CAN6B,CAAzB;AASP,IAAME,iBAAiB,gBAAGV,UAAU,CAGlC,iBAAgCK,YAAhC,EAAiD;EAAA,0BAA9CM,OAA8C;EAAA,IAA9CA,OAA8C,8BAApC,KAAoC;EAAA,IAA1BH,KAA0B;;EACjD,IAAMI,WAA+D,GACnET,KADF;EAGA,oBACE,KAAC,WAAD;IAAa,EAAE,EAAEQ,OAAjB;IAA0B,GAAG,EAAEN,YAA/B;IAA6C,QAAQ,EAAE;EAAvD,GAA8DG,KAA9D,EADF;AAGD,CAVmC,CAApC;AAYA,OAAO,IAAMK,YAAY,gBAAGb,UAAU,CAGpC,iBAA6Bc,GAA7B;EAAA,IAAGR,EAAH,SAAGA,EAAH;EAAA,IAAOS,QAAP,SAAOA,QAAP;EAAA,IAAoBP,KAApB;;EAAA,oBACA,KAAC,cAAD;IAAgB,EAAE,EAAEE,iBAApB;IAAuC,OAAO,EAAEJ,EAAhD;IAAoD,GAAG,EAAEQ;EAAzD,GAAkEN,KAAlE;IAAA,UACGO;EADH,GADA;AAAA,CAHoC,CAA/B"}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import type { MenuItemProps } from '../Menu';
3
3
  export declare type SelectItemProps = MenuItemProps;
4
- export declare const SelectItem: import("react").ForwardRefExoticComponent<Pick<MenuItemProps, "children" | "p" | "slot" | "style" | "title" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "boxShadow" | "color" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "textAlign" | "textShadow" | "top" | "translate" | "verticalAlign" | "width" | "zIndex" | "background" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "gridColumnGap" | "gridGap" | "gridRowGap" | "value" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "hidden" | "theme" | "sx" | "__css" | "variant" | "tx" | "as" | "size" | "borderX" | "borderY" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "disabled" | "rippleColor" | "selected" | "innerAs"> & import("react").RefAttributes<HTMLLIElement>>;
4
+ export declare const SelectItem: import("react").ForwardRefExoticComponent<Pick<MenuItemProps, "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "color" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "textAlign" | "textShadow" | "top" | "translate" | "verticalAlign" | "width" | "background" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "variant" | "size" | "hidden" | "as" | "sx" | "__css" | "tx" | "theme" | "borderX" | "borderY" | "gridGap" | "gridColumnGap" | "gridRowGap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "value" | "disabled" | "rippleColor" | "selected" | "innerAs"> & import("react").RefAttributes<HTMLLIElement>>;
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["as", "onSelect", "children", "value", "disabled"];
3
4
  import { forwardRef } from 'react';
4
5
  import { wrapEvent } from '@basic-ui/core';
5
6
  import { MenuItem } from '../Menu';
@@ -13,7 +14,7 @@ export var SelectItem = /*#__PURE__*/forwardRef(function SelectItem(props, forwa
13
14
  children = props.children,
14
15
  valueProp = props.value,
15
16
  disabled = props.disabled,
16
- otherProps = _objectWithoutProperties(props, ["as", "onSelect", "children", "value", "disabled"]);
17
+ otherProps = _objectWithoutProperties(props, _excluded);
17
18
 
18
19
  var _useSelectContext = useSelectContext(),
19
20
  native = _useSelectContext.native,
@@ -23,11 +24,11 @@ export var SelectItem = /*#__PURE__*/forwardRef(function SelectItem(props, forwa
23
24
  var value = valueProp !== undefined && valueProp !== null ? String(valueProp) : children;
24
25
 
25
26
  if (native) {
26
- return /*#__PURE__*/_jsx("option", _extends({
27
+ return /*#__PURE__*/_jsx("option", _extends(_extends({
27
28
  ref: forwardedRef,
28
29
  value: value,
29
30
  disabled: disabled
30
- }, otherProps, {
31
+ }, otherProps), {}, {
31
32
  children: children
32
33
  }));
33
34
  }
@@ -37,7 +38,7 @@ export var SelectItem = /*#__PURE__*/forwardRef(function SelectItem(props, forwa
37
38
  }
38
39
 
39
40
  var selected = value === String(selectedValue);
40
- return /*#__PURE__*/_jsx(Comp, _extends({
41
+ return /*#__PURE__*/_jsx(Comp, _extends(_extends({
41
42
  as: MenuItem,
42
43
  onSelect: wrapEvent(onSelectProp, onSelect),
43
44
  "data-value": value,
@@ -45,7 +46,7 @@ export var SelectItem = /*#__PURE__*/forwardRef(function SelectItem(props, forwa
45
46
  ref: forwardedRef,
46
47
  role: "option",
47
48
  selected: selected
48
- }, otherProps, {
49
+ }, otherProps), {}, {
49
50
  children: children || ZERO_WIDTH_SPACE
50
51
  }));
51
52
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/SelectItem/SelectItem.tsx"],"names":["forwardRef","wrapEvent","MenuItem","useSelectContext","ZERO_WIDTH_SPACE","SelectItem","props","forwardedRef","as","Comp","onSelectProp","onSelect","children","valueProp","value","disabled","otherProps","native","selectedValue","undefined","String","selected"],"mappings":";;AAAA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,SAAT,QAA0B,gBAA1B;AAGA,SAASC,QAAT,QAAyB,SAAzB;AACA,SAASC,gBAAT,QAAiC,mBAAjC;;AAIA,IAAMC,gBAAgB,GAAG,QAAzB;AACA,OAAO,IAAMC,UAAU,gBAAGL,UAAU,CAClC,SAASK,UAAT,CAAoBC,KAApB,EAA2BC,YAA3B,EAAyC;AAAA,kBAQnCD,KARmC,CAErCE,EAFqC;AAAA,MAEjCC,IAFiC,0BAE1BP,QAF0B;AAAA,MAG3BQ,YAH2B,GAQnCJ,KARmC,CAGrCK,QAHqC;AAAA,MAIrCC,QAJqC,GAQnCN,KARmC,CAIrCM,QAJqC;AAAA,MAK9BC,SAL8B,GAQnCP,KARmC,CAKrCQ,KALqC;AAAA,MAMrCC,QANqC,GAQnCT,KARmC,CAMrCS,QANqC;AAAA,MAOlCC,UAPkC,4BAQnCV,KARmC;;AAAA,0BASYH,gBAAgB,EAT5B;AAAA,MAS/Bc,MAT+B,qBAS/BA,MAT+B;AAAA,MASvBN,QATuB,qBASvBA,QATuB;AAAA,MASNO,aATM,qBASbJ,KATa;;AAUvC,MAAMA,KAAK,GACTD,SAAS,KAAKM,SAAd,IAA2BN,SAAS,KAAK,IAAzC,GACIO,MAAM,CAACP,SAAD,CADV,GAEKD,QAHP;;AAKA,MAAIK,MAAJ,EAAY;AACV,wBACE;AACE,MAAA,GAAG,EAAEV,YADP;AAEE,MAAA,KAAK,EAAEO,KAFT;AAGE,MAAA,QAAQ,EAAEC;AAHZ,OAIOC,UAJP;AAAA,gBAMGJ;AANH,OADF;AAUD;;AAED,MAAIA,QAAQ,KAAKO,SAAb,IAA0BJ,QAA9B,EAAwC;AACtC,WAAO,IAAP;AACD;;AAED,MAAMM,QAAQ,GAAGP,KAAK,KAAKM,MAAM,CAACF,aAAD,CAAjC;AACA,sBACE,KAAC,IAAD;AACE,IAAA,EAAE,EAAEhB,QADN;AAEE,IAAA,QAAQ,EAAED,SAAS,CAACS,YAAD,EAAeC,QAAf,CAFrB;AAGE,kBAAYG,KAHd;AAIE,IAAA,QAAQ,EAAEC,QAJZ;AAKE,IAAA,GAAG,EAAER,YALP;AAME,IAAA,IAAI,EAAC,QANP;AAOE,IAAA,QAAQ,EAAEc;AAPZ,KAQML,UARN;AAAA,cAUGJ,QAAQ,IAAIR;AAVf,KADF;AAcD,CAhDiC,CAA7B","sourcesContent":["import { forwardRef } from 'react';\nimport { wrapEvent } from '@basic-ui/core';\n\nimport type { MenuItemProps } from '../Menu';\nimport { MenuItem } from '../Menu';\nimport { useSelectContext } from '../Select/context';\n\nexport type SelectItemProps = MenuItemProps;\n\nconst ZERO_WIDTH_SPACE = '\\u200b';\nexport const SelectItem = forwardRef<HTMLLIElement, MenuItemProps>(\n function SelectItem(props, forwardedRef) {\n const {\n as: Comp = MenuItem,\n onSelect: onSelectProp,\n children,\n value: valueProp,\n disabled,\n ...otherProps\n } = props;\n const { native, onSelect, value: selectedValue } = useSelectContext();\n const value =\n valueProp !== undefined && valueProp !== null\n ? String(valueProp)\n : (children as string);\n\n if (native) {\n return (\n <option\n ref={forwardedRef}\n value={value}\n disabled={disabled}\n {...(otherProps as any)}\n >\n {children}\n </option>\n );\n }\n\n if (children === undefined && disabled) {\n return null;\n }\n\n const selected = value === String(selectedValue);\n return (\n <Comp\n as={MenuItem}\n onSelect={wrapEvent(onSelectProp, onSelect as any)}\n data-value={value}\n disabled={disabled}\n ref={forwardedRef}\n role=\"option\"\n selected={selected}\n {...otherProps}\n >\n {children || ZERO_WIDTH_SPACE}\n </Comp>\n );\n }\n);\n"],"file":"SelectItem.js"}
1
+ {"version":3,"file":"SelectItem.js","names":["forwardRef","wrapEvent","MenuItem","useSelectContext","ZERO_WIDTH_SPACE","SelectItem","props","forwardedRef","as","Comp","onSelectProp","onSelect","children","valueProp","value","disabled","otherProps","native","selectedValue","undefined","String","selected"],"sources":["../../../src/SelectItem/SelectItem.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { wrapEvent } from '@basic-ui/core';\n\nimport type { MenuItemProps } from '../Menu';\nimport { MenuItem } from '../Menu';\nimport { useSelectContext } from '../Select/context';\n\nexport type SelectItemProps = MenuItemProps;\n\nconst ZERO_WIDTH_SPACE = '\\u200b';\nexport const SelectItem = forwardRef<HTMLLIElement, MenuItemProps>(\n function SelectItem(props, forwardedRef) {\n const {\n as: Comp = MenuItem,\n onSelect: onSelectProp,\n children,\n value: valueProp,\n disabled,\n ...otherProps\n } = props;\n const { native, onSelect, value: selectedValue } = useSelectContext();\n const value =\n valueProp !== undefined && valueProp !== null\n ? String(valueProp)\n : (children as string);\n\n if (native) {\n return (\n <option\n ref={forwardedRef}\n value={value}\n disabled={disabled}\n {...(otherProps as any)}\n >\n {children}\n </option>\n );\n }\n\n if (children === undefined && disabled) {\n return null;\n }\n\n const selected = value === String(selectedValue);\n return (\n <Comp\n as={MenuItem}\n onSelect={wrapEvent(onSelectProp, onSelect as any)}\n data-value={value}\n disabled={disabled}\n ref={forwardedRef}\n role=\"option\"\n selected={selected}\n {...otherProps}\n >\n {children || ZERO_WIDTH_SPACE}\n </Comp>\n );\n }\n);\n"],"mappings":";;;AAAA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,SAAT,QAA0B,gBAA1B;AAGA,SAASC,QAAT,QAAyB,SAAzB;AACA,SAASC,gBAAT,QAAiC,mBAAjC;;AAIA,IAAMC,gBAAgB,GAAG,QAAzB;AACA,OAAO,IAAMC,UAAU,gBAAGL,UAAU,CAClC,SAASK,UAAT,CAAoBC,KAApB,EAA2BC,YAA3B,EAAyC;EACvC,gBAOID,KAPJ,CACEE,EADF;EAAA,IACMC,IADN,0BACaP,QADb;EAAA,IAEYQ,YAFZ,GAOIJ,KAPJ,CAEEK,QAFF;EAAA,IAGEC,QAHF,GAOIN,KAPJ,CAGEM,QAHF;EAAA,IAISC,SAJT,GAOIP,KAPJ,CAIEQ,KAJF;EAAA,IAKEC,QALF,GAOIT,KAPJ,CAKES,QALF;EAAA,IAMKC,UANL,4BAOIV,KAPJ;;EAQA,wBAAmDH,gBAAgB,EAAnE;EAAA,IAAQc,MAAR,qBAAQA,MAAR;EAAA,IAAgBN,QAAhB,qBAAgBA,QAAhB;EAAA,IAAiCO,aAAjC,qBAA0BJ,KAA1B;;EACA,IAAMA,KAAK,GACTD,SAAS,KAAKM,SAAd,IAA2BN,SAAS,KAAK,IAAzC,GACIO,MAAM,CAACP,SAAD,CADV,GAEKD,QAHP;;EAKA,IAAIK,MAAJ,EAAY;IACV,oBACE;MACE,GAAG,EAAEV,YADP;MAEE,KAAK,EAAEO,KAFT;MAGE,QAAQ,EAAEC;IAHZ,GAIOC,UAJP;MAAA,UAMGJ;IANH,GADF;EAUD;;EAED,IAAIA,QAAQ,KAAKO,SAAb,IAA0BJ,QAA9B,EAAwC;IACtC,OAAO,IAAP;EACD;;EAED,IAAMM,QAAQ,GAAGP,KAAK,KAAKM,MAAM,CAACF,aAAD,CAAjC;EACA,oBACE,KAAC,IAAD;IACE,EAAE,EAAEhB,QADN;IAEE,QAAQ,EAAED,SAAS,CAACS,YAAD,EAAeC,QAAf,CAFrB;IAGE,cAAYG,KAHd;IAIE,QAAQ,EAAEC,QAJZ;IAKE,GAAG,EAAER,YALP;IAME,IAAI,EAAC,QANP;IAOE,QAAQ,EAAEc;EAPZ,GAQML,UARN;IAAA,UAUGJ,QAAQ,IAAIR;EAVf,GADF;AAcD,CAhDiC,CAA7B"}
File without changes
File without changes
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/SelectItem/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAd","sourcesContent":["export * from './SelectItem';\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/SelectItem/index.ts"],"sourcesContent":["export * from './SelectItem';\n"],"mappings":"AAAA,cAAc,cAAd"}
@@ -4,4 +4,4 @@ export interface SelectionControlLabelProps extends BoxProps<HTMLLabelElement, L
4
4
  as?: ElementType<any>;
5
5
  children?: ReactNode;
6
6
  }
7
- export declare const SelectionControlLabel: import("react").ForwardRefExoticComponent<Pick<SelectionControlLabelProps, "children" | "form" | "p" | "slot" | "style" | "title" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "boxShadow" | "color" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "textAlign" | "textShadow" | "top" | "translate" | "verticalAlign" | "width" | "zIndex" | "background" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "gridColumnGap" | "gridGap" | "gridRowGap" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "hidden" | "theme" | "sx" | "__css" | "variant" | "tx" | "as" | "size" | "borderX" | "borderY" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "htmlFor"> & import("react").RefAttributes<HTMLLabelElement>>;
7
+ export declare const SelectionControlLabel: import("react").ForwardRefExoticComponent<Pick<SelectionControlLabelProps, "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "color" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "textAlign" | "textShadow" | "top" | "translate" | "verticalAlign" | "width" | "background" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "variant" | "size" | "hidden" | "as" | "sx" | "__css" | "tx" | "theme" | "borderX" | "borderY" | "gridGap" | "gridColumnGap" | "gridRowGap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "form" | "htmlFor"> & import("react").RefAttributes<HTMLLabelElement>>;
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["as", "__css"];
3
4
  import { forwardRef } from 'react';
4
5
  import { Box } from '../Box';
5
6
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -7,7 +8,7 @@ export var SelectionControlLabel = /*#__PURE__*/forwardRef(function SelectionCon
7
8
  var _props$as = props.as,
8
9
  as = _props$as === void 0 ? 'label' : _props$as,
9
10
  __css = props.__css,
10
- otherProps = _objectWithoutProperties(props, ["as", "__css"]);
11
+ otherProps = _objectWithoutProperties(props, _excluded);
11
12
 
12
13
  return /*#__PURE__*/_jsx(Box, _extends({
13
14
  ref: forwardedRef,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/SelectionControl/SelectionControlLabel.tsx"],"names":["forwardRef","Box","SelectionControlLabel","props","forwardedRef","as","__css","otherProps","display","position","alignItems","WebkitTapHighlightColor"],"mappings":";;AACA,SAASA,UAAT,QAA2B,OAA3B;AAGA,SAASC,GAAT,QAAoB,QAApB;;AAQA,OAAO,IAAMC,qBAAqB,gBAAGF,UAAU,CAG7C,SAASE,qBAAT,CAA+BC,KAA/B,EAAsCC,YAAtC,EAAoD;AAAA,kBACLD,KADK,CAC5CE,EAD4C;AAAA,MAC5CA,EAD4C,0BACvC,OADuC;AAAA,MAC9BC,KAD8B,GACLH,KADK,CAC9BG,KAD8B;AAAA,MACpBC,UADoB,4BACLJ,KADK;;AAGpD,sBACE,KAAC,GAAD;AACE,IAAA,GAAG,EAAEC,YADP;AAEE,IAAA,EAAE,EAAEC,EAFN;AAGE,IAAA,KAAK;AACHG,MAAAA,OAAO,EAAE,aADN;AAEHC,MAAAA,QAAQ,EAAE,UAFP;AAGHC,MAAAA,UAAU,EAAE,QAHT;AAIHC,MAAAA,uBAAuB,EAAE;AAJtB,OAKAL,KALA;AAHP,KAUMC,UAVN,EADF;AAcD,CApB8C,CAAxC","sourcesContent":["import type { ElementType, LabelHTMLAttributes, ReactNode } from 'react';\nimport { forwardRef } from 'react';\n\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\n\nexport interface SelectionControlLabelProps\n extends BoxProps<HTMLLabelElement, LabelHTMLAttributes<HTMLLabelElement>> {\n as?: ElementType<any>;\n children?: ReactNode;\n}\n\nexport const SelectionControlLabel = forwardRef<\n HTMLLabelElement,\n SelectionControlLabelProps\n>(function SelectionControlLabel(props, forwardedRef) {\n const { as = 'label', __css, ...otherProps } = props;\n\n return (\n <Box<BoxProps<HTMLLabelElement, LabelHTMLAttributes<HTMLLabelElement>>>\n ref={forwardedRef}\n as={as}\n __css={{\n display: 'inline-flex',\n position: 'relative',\n alignItems: 'center',\n WebkitTapHighlightColor: 'transparent',\n ...__css,\n }}\n {...otherProps}\n />\n );\n});\n"],"file":"SelectionControlLabel.js"}
1
+ {"version":3,"file":"SelectionControlLabel.js","names":["forwardRef","Box","SelectionControlLabel","props","forwardedRef","as","__css","otherProps","display","position","alignItems","WebkitTapHighlightColor"],"sources":["../../../src/SelectionControl/SelectionControlLabel.tsx"],"sourcesContent":["import type { ElementType, LabelHTMLAttributes, ReactNode } from 'react';\nimport { forwardRef } from 'react';\n\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\n\nexport interface SelectionControlLabelProps\n extends BoxProps<HTMLLabelElement, LabelHTMLAttributes<HTMLLabelElement>> {\n as?: ElementType<any>;\n children?: ReactNode;\n}\n\nexport const SelectionControlLabel = forwardRef<\n HTMLLabelElement,\n SelectionControlLabelProps\n>(function SelectionControlLabel(props, forwardedRef) {\n const { as = 'label', __css, ...otherProps } = props;\n\n return (\n <Box<BoxProps<HTMLLabelElement, LabelHTMLAttributes<HTMLLabelElement>>>\n ref={forwardedRef}\n as={as}\n __css={{\n display: 'inline-flex',\n position: 'relative',\n alignItems: 'center',\n WebkitTapHighlightColor: 'transparent',\n ...__css,\n }}\n {...otherProps}\n />\n );\n});\n"],"mappings":";;;AACA,SAASA,UAAT,QAA2B,OAA3B;AAGA,SAASC,GAAT,QAAoB,QAApB;;AAQA,OAAO,IAAMC,qBAAqB,gBAAGF,UAAU,CAG7C,SAASE,qBAAT,CAA+BC,KAA/B,EAAsCC,YAAtC,EAAoD;EACpD,gBAA+CD,KAA/C,CAAQE,EAAR;EAAA,IAAQA,EAAR,0BAAa,OAAb;EAAA,IAAsBC,KAAtB,GAA+CH,KAA/C,CAAsBG,KAAtB;EAAA,IAAgCC,UAAhC,4BAA+CJ,KAA/C;;EAEA,oBACE,KAAC,GAAD;IACE,GAAG,EAAEC,YADP;IAEE,EAAE,EAAEC,EAFN;IAGE,KAAK;MACHG,OAAO,EAAE,aADN;MAEHC,QAAQ,EAAE,UAFP;MAGHC,UAAU,EAAE,QAHT;MAIHC,uBAAuB,EAAE;IAJtB,GAKAL,KALA;EAHP,GAUMC,UAVN,EADF;AAcD,CApB8C,CAAxC"}
@@ -5,4 +5,4 @@ export interface SelectionControlTextProps extends TextProps {
5
5
  children?: ReactNode;
6
6
  disabled?: boolean;
7
7
  }
8
- export declare const SelectionControlText: import("react").ForwardRefExoticComponent<Pick<SelectionControlTextProps, "children" | "p" | "slot" | "style" | "title" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "boxShadow" | "color" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "textAlign" | "textShadow" | "top" | "translate" | "verticalAlign" | "width" | "zIndex" | "background" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "gridColumnGap" | "gridGap" | "gridRowGap" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "hidden" | "theme" | "sx" | "__css" | "variant" | "tx" | "as" | "size" | "borderX" | "borderY" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "disabled"> & import("react").RefAttributes<HTMLSpanElement>>;
8
+ export declare const SelectionControlText: import("react").ForwardRefExoticComponent<Pick<SelectionControlTextProps, "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "color" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "textAlign" | "textShadow" | "top" | "translate" | "verticalAlign" | "width" | "background" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "variant" | "size" | "hidden" | "as" | "sx" | "__css" | "tx" | "theme" | "borderX" | "borderY" | "gridGap" | "gridColumnGap" | "gridRowGap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "disabled"> & import("react").RefAttributes<HTMLSpanElement>>;
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["as", "disabled", "__css"];
3
4
  import { forwardRef } from 'react';
4
5
  import { Text } from '../Text';
5
6
  import { alpha } from '../color';
@@ -9,19 +10,19 @@ export var SelectionControlText = /*#__PURE__*/forwardRef(function SelectionCont
9
10
  as = _props$as === void 0 ? 'span' : _props$as,
10
11
  disabled = props.disabled,
11
12
  __css = props.__css,
12
- otherProps = _objectWithoutProperties(props, ["as", "disabled", "__css"]);
13
+ otherProps = _objectWithoutProperties(props, _excluded);
13
14
 
14
15
  return /*#__PURE__*/_jsx(Text, _extends({
15
16
  ref: forwardedRef,
16
17
  as: as,
17
- __css: _extends({
18
+ __css: _extends(_extends({
18
19
  p: 1
19
20
  }, disabled ? {
20
21
  color: alpha('on.surface', 0.38)
21
22
  } : {
22
23
  cursor: 'pointer',
23
24
  color: alpha('on.surface', 0.87)
24
- }, __css)
25
+ }), __css)
25
26
  }, otherProps));
26
27
  });
27
28
  //# sourceMappingURL=SelectionControlText.js.map