@basic-ui/material 1.0.0-alpha.45 → 1.0.0-alpha.47

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 (547) hide show
  1. package/README.md +3 -3
  2. package/build/cjs/index.js +64 -24
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/esm/Alert/Alert.d.ts +6 -6
  5. package/build/esm/Alert/index.d.ts +1 -1
  6. package/build/esm/Alert/index.js.map +1 -1
  7. package/build/esm/AppBar/AppBar.d.ts +9 -9
  8. package/build/esm/AppBar/AppBar.js.map +1 -1
  9. package/build/esm/AppBar/AppBarButton.d.ts +4 -4
  10. package/build/esm/AppBar/AppBarButton.js.map +1 -1
  11. package/build/esm/AppBar/context.d.ts +5 -5
  12. package/build/esm/AppBar/context.js.map +1 -1
  13. package/build/esm/AppBar/index.d.ts +3 -3
  14. package/build/esm/AppBar/index.js.map +1 -1
  15. package/build/esm/Badge/Badge.d.ts +6 -6
  16. package/build/esm/Badge/Badge.js.map +1 -1
  17. package/build/esm/Badge/index.d.ts +1 -1
  18. package/build/esm/Badge/index.js.map +1 -1
  19. package/build/esm/BaseLine/BaseLine.d.ts +1 -1
  20. package/build/esm/BaseLine/BaseLine.js +1 -1
  21. package/build/esm/BaseLine/BaseLine.js.map +1 -1
  22. package/build/esm/BaseLine/index.d.ts +1 -1
  23. package/build/esm/BaseLine/index.js.map +1 -1
  24. package/build/esm/BottomSheet/BottomSheet.d.ts +7 -7
  25. package/build/esm/BottomSheet/BottomSheet.js.map +1 -1
  26. package/build/esm/BottomSheet/BottomSheetSurface.d.ts +5 -5
  27. package/build/esm/BottomSheet/BottomSheetSurface.js.map +1 -1
  28. package/build/esm/BottomSheet/index.d.ts +1 -1
  29. package/build/esm/BottomSheet/index.js.map +1 -1
  30. package/build/esm/Box/Box.d.ts +23 -23
  31. package/build/esm/Box/Box.js +1 -1
  32. package/build/esm/Box/Box.js.map +1 -1
  33. package/build/esm/Box/index.d.ts +1 -1
  34. package/build/esm/Box/index.js.map +1 -1
  35. package/build/esm/Button/BaseButton.d.ts +7 -7
  36. package/build/esm/Button/Button.d.ts +13 -13
  37. package/build/esm/Button/ButtonGroup.d.ts +5 -5
  38. package/build/esm/Button/FilledButton.d.ts +11 -11
  39. package/build/esm/Button/FilledButton.js +17 -2
  40. package/build/esm/Button/FilledButton.js.map +1 -1
  41. package/build/esm/Button/FloatingActionButton.d.ts +7 -7
  42. package/build/esm/Button/FloatingActionButton.js.map +1 -1
  43. package/build/esm/Button/IconButton.d.ts +8 -8
  44. package/build/esm/Button/OutlinedButton.d.ts +4 -4
  45. package/build/esm/Button/OutlinedButton.js +17 -2
  46. package/build/esm/Button/OutlinedButton.js.map +1 -1
  47. package/build/esm/Button/TransparentButton.d.ts +11 -11
  48. package/build/esm/Button/TransparentButton.js +17 -2
  49. package/build/esm/Button/TransparentButton.js.map +1 -1
  50. package/build/esm/Button/context.d.ts +8 -8
  51. package/build/esm/Button/context.js.map +1 -1
  52. package/build/esm/Button/index.d.ts +2 -2
  53. package/build/esm/Button/index.js.map +1 -1
  54. package/build/esm/CheckBox/CheckBox.d.ts +13 -13
  55. package/build/esm/CheckBox/CheckBox.js.map +1 -1
  56. package/build/esm/CheckBox/CheckBoxIcon.d.ts +10 -10
  57. package/build/esm/CheckBox/CheckBoxIcon.js.map +1 -1
  58. package/build/esm/CheckBox/CheckPath.d.ts +3 -3
  59. package/build/esm/CheckBox/CheckPath.js +1 -1
  60. package/build/esm/CheckBox/CheckPath.js.map +1 -1
  61. package/build/esm/CheckBox/IndeterminatePath.d.ts +3 -3
  62. package/build/esm/CheckBox/IndeterminatePath.js +1 -1
  63. package/build/esm/CheckBox/IndeterminatePath.js.map +1 -1
  64. package/build/esm/CheckBox/index.d.ts +1 -1
  65. package/build/esm/CheckBox/index.js.map +1 -1
  66. package/build/esm/Chip/ButtonChip.d.ts +9 -9
  67. package/build/esm/Chip/ButtonChip.js.map +1 -1
  68. package/build/esm/Chip/Chip.d.ts +4 -4
  69. package/build/esm/Chip/Chip.js.map +1 -1
  70. package/build/esm/Chip/ChipBase.d.ts +10 -10
  71. package/build/esm/Chip/ChipBase.js.map +1 -1
  72. package/build/esm/Chip/ChoiceChip.d.ts +10 -10
  73. package/build/esm/Chip/ChoiceChip.js.map +1 -1
  74. package/build/esm/Chip/index.d.ts +2 -2
  75. package/build/esm/Chip/index.js.map +1 -1
  76. package/build/esm/Combobox/Combobox.d.ts +23 -23
  77. package/build/esm/Combobox/Combobox.js.map +1 -1
  78. package/build/esm/Combobox/index.d.ts +1 -1
  79. package/build/esm/Combobox/index.js.map +1 -1
  80. package/build/esm/Dialog/Dialog.d.ts +20 -20
  81. package/build/esm/Dialog/Dialog.js.map +1 -1
  82. package/build/esm/Dialog/DialogBackdrop.d.ts +7 -7
  83. package/build/esm/Dialog/DialogBackdrop.js.map +1 -1
  84. package/build/esm/Dialog/DialogContainer.d.ts +4 -4
  85. package/build/esm/Dialog/DialogContainer.js.map +1 -1
  86. package/build/esm/Dialog/DialogSurface.d.ts +7 -7
  87. package/build/esm/Dialog/DialogSurface.js.map +1 -1
  88. package/build/esm/Dialog/Scrim.d.ts +4 -4
  89. package/build/esm/Dialog/Scrim.js.map +1 -1
  90. package/build/esm/Dialog/index.d.ts +2 -2
  91. package/build/esm/Dialog/index.js.map +1 -1
  92. package/build/esm/Dialog/useDialogAnimation.d.ts +824 -824
  93. package/build/esm/Dialog/useDialogAnimation.js.map +1 -1
  94. package/build/esm/Divider/Divider.d.ts +7 -7
  95. package/build/esm/Divider/Divider.js.map +1 -1
  96. package/build/esm/Divider/index.d.ts +1 -1
  97. package/build/esm/Divider/index.js.map +1 -1
  98. package/build/esm/FloatingLabel/FloatingLabel.d.ts +13 -13
  99. package/build/esm/FloatingLabel/FloatingLabel.js.map +1 -1
  100. package/build/esm/FloatingLabel/index.d.ts +1 -1
  101. package/build/esm/FloatingLabel/index.js.map +1 -1
  102. package/build/esm/LineRipple/LineRipple.d.ts +9 -9
  103. package/build/esm/LineRipple/LineRipple.js.map +1 -1
  104. package/build/esm/LineRipple/index.d.ts +1 -1
  105. package/build/esm/LineRipple/index.js.map +1 -1
  106. package/build/esm/Link/Link.d.ts +9 -9
  107. package/build/esm/Link/Link.js.map +1 -1
  108. package/build/esm/Link/index.d.ts +1 -1
  109. package/build/esm/Link/index.js.map +1 -1
  110. package/build/esm/List/List.d.ts +8 -8
  111. package/build/esm/List/List.js.map +1 -1
  112. package/build/esm/List/index.d.ts +1 -1
  113. package/build/esm/List/index.js.map +1 -1
  114. package/build/esm/ListItem/ListItem.d.ts +14 -14
  115. package/build/esm/ListItem/ListItem.js.map +1 -1
  116. package/build/esm/ListItem/ListItemText.d.ts +7 -7
  117. package/build/esm/ListItem/ListItemText.js.map +1 -1
  118. package/build/esm/ListItem/index.d.ts +2 -2
  119. package/build/esm/ListItem/index.js.map +1 -1
  120. package/build/esm/Menu/Menu.d.ts +18 -18
  121. package/build/esm/Menu/Menu.js.map +1 -1
  122. package/build/esm/Menu/animation.d.ts +2 -2
  123. package/build/esm/Menu/animation.js.map +1 -1
  124. package/build/esm/Menu/index.d.ts +2 -2
  125. package/build/esm/Menu/index.js.map +1 -1
  126. package/build/esm/NavRail/NavRailItem.d.ts +15 -15
  127. package/build/esm/NavRail/NavRailItem.js.map +1 -1
  128. package/build/esm/NavRail/icons/test-icons.d.ts +4 -4
  129. package/build/esm/NavRail/icons/test-icons.js.map +1 -1
  130. package/build/esm/NavRail/index.d.ts +1 -1
  131. package/build/esm/NavRail/index.js.map +1 -1
  132. package/build/esm/NotchedOutline/NotchedOutline.d.ts +14 -14
  133. package/build/esm/NotchedOutline/NotchedOutline.js.map +1 -1
  134. package/build/esm/NotchedOutline/context.d.ts +6 -6
  135. package/build/esm/NotchedOutline/context.js.map +1 -1
  136. package/build/esm/NotchedOutline/index.d.ts +1 -1
  137. package/build/esm/NotchedOutline/index.js.map +1 -1
  138. package/build/esm/NotchedOutline/styledComponents.d.ts +575 -575
  139. package/build/esm/NotchedOutline/styledComponents.js +1 -1
  140. package/build/esm/NotchedOutline/styledComponents.js.map +1 -1
  141. package/build/esm/Paper/Paper.d.ts +11 -11
  142. package/build/esm/Paper/Paper.js.map +1 -1
  143. package/build/esm/Paper/index.d.ts +1 -1
  144. package/build/esm/Paper/index.js.map +1 -1
  145. package/build/esm/Popover/Popover.d.ts +14 -14
  146. package/build/esm/Popover/PopoverContainer.d.ts +4 -4
  147. package/build/esm/Popover/PopoverSurface.d.ts +5 -5
  148. package/build/esm/Popover/PopoverSurface.js.map +1 -1
  149. package/build/esm/Popover/index.d.ts +1 -1
  150. package/build/esm/Popover/index.js.map +1 -1
  151. package/build/esm/ProgressSpinner/ProgressSpinner.d.ts +8 -8
  152. package/build/esm/ProgressSpinner/ProgressSpinner.js.map +1 -1
  153. package/build/esm/ProgressSpinner/index.d.ts +1 -1
  154. package/build/esm/ProgressSpinner/index.js.map +1 -1
  155. package/build/esm/RadioButton/RadioButton.d.ts +4 -4
  156. package/build/esm/RadioButton/RadioButton.js.map +1 -1
  157. package/build/esm/RadioButton/RadioButtonIcon.d.ts +6 -6
  158. package/build/esm/RadioButton/RadioButtonIcon.js.map +1 -1
  159. package/build/esm/RadioButton/RadioGroup.d.ts +5 -5
  160. package/build/esm/RadioButton/RadioGroup.js.map +1 -1
  161. package/build/esm/RadioButton/index.d.ts +2 -2
  162. package/build/esm/RadioButton/index.js.map +1 -1
  163. package/build/esm/Ripple/Ripple.d.ts +11 -11
  164. package/build/esm/Ripple/Ripple.js +1 -1
  165. package/build/esm/Ripple/Ripple.js.map +1 -1
  166. package/build/esm/Ripple/RippleBox.d.ts +5 -5
  167. package/build/esm/Ripple/RippleBox.js.map +1 -1
  168. package/build/esm/Ripple/constants.d.ts +7 -7
  169. package/build/esm/Ripple/constants.js.map +1 -1
  170. package/build/esm/Ripple/index.d.ts +5 -5
  171. package/build/esm/Ripple/index.js.map +1 -1
  172. package/build/esm/Ripple/keyframes.d.ts +4 -4
  173. package/build/esm/Ripple/keyframes.js.map +1 -1
  174. package/build/esm/Ripple/useRipple.d.ts +14 -14
  175. package/build/esm/Ripple/useRipple.js.map +1 -1
  176. package/build/esm/Ripple/useRippleHandlers.d.ts +8 -8
  177. package/build/esm/Ripple/useRippleHandlers.js.map +1 -1
  178. package/build/esm/Ripple/useRippleSurface.d.ts +787 -787
  179. package/build/esm/Ripple/useRippleSurface.js.map +1 -1
  180. package/build/esm/Select/CustomContainerExample.d.ts +3 -3
  181. package/build/esm/Select/CustomContainerExample.js.map +1 -1
  182. package/build/esm/Select/Select.d.ts +32 -32
  183. package/build/esm/Select/Select.js.map +1 -1
  184. package/build/esm/Select/SelectIcon.d.ts +6 -6
  185. package/build/esm/Select/SelectIcon.js.map +1 -1
  186. package/build/esm/Select/context.d.ts +9 -9
  187. package/build/esm/Select/context.js.map +1 -1
  188. package/build/esm/Select/defaultRender.d.ts +3 -3
  189. package/build/esm/Select/defaultRender.js.map +1 -1
  190. package/build/esm/Select/index.d.ts +1 -1
  191. package/build/esm/Select/index.js.map +1 -1
  192. package/build/esm/Select/styledComponents.d.ts +15 -15
  193. package/build/esm/Select/styledComponents.js.map +1 -1
  194. package/build/esm/SelectItem/SelectItem.d.ts +11 -11
  195. package/build/esm/SelectItem/SelectItem.js.map +1 -1
  196. package/build/esm/SelectItem/index.d.ts +1 -1
  197. package/build/esm/SelectItem/index.js.map +1 -1
  198. package/build/esm/SelectionControl/SelectionControlLabel.d.ts +7 -7
  199. package/build/esm/SelectionControl/SelectionControlLabel.js.map +1 -1
  200. package/build/esm/SelectionControl/SelectionControlText.d.ts +8 -8
  201. package/build/esm/SelectionControl/SelectionControlText.js.map +1 -1
  202. package/build/esm/SelectionControl/index.d.ts +2 -2
  203. package/build/esm/SelectionControl/index.js.map +1 -1
  204. package/build/esm/Skeleton/DelayAppearance.d.ts +13 -13
  205. package/build/esm/Skeleton/DelayAppearance.js +3 -3
  206. package/build/esm/Skeleton/DelayAppearance.js.map +1 -1
  207. package/build/esm/Skeleton/Skeleton.d.ts +9 -9
  208. package/build/esm/Skeleton/Skeleton.js.map +1 -1
  209. package/build/esm/Skeleton/animation.d.ts +8 -8
  210. package/build/esm/Skeleton/animation.js.map +1 -1
  211. package/build/esm/Skeleton/index.d.ts +2 -2
  212. package/build/esm/Skeleton/index.js.map +1 -1
  213. package/build/esm/Slider/Slider.d.ts +17 -17
  214. package/build/esm/Slider/Slider.js.map +1 -1
  215. package/build/esm/Slider/index.d.ts +1 -1
  216. package/build/esm/Slider/index.js.map +1 -1
  217. package/build/esm/Snackbar/Snackbar.d.ts +8 -8
  218. package/build/esm/Snackbar/Stack.d.ts +31 -31
  219. package/build/esm/Snackbar/index.d.ts +3 -3
  220. package/build/esm/Snackbar/useSnackbarAnimation.d.ts +6 -6
  221. package/build/esm/Switch/Switch.d.ts +13 -13
  222. package/build/esm/Switch/Switch.js.map +1 -1
  223. package/build/esm/Switch/index.d.ts +1 -1
  224. package/build/esm/Switch/index.js.map +1 -1
  225. package/build/esm/Switch/styledComponents.d.ts +13 -13
  226. package/build/esm/Switch/styledComponents.js.map +1 -1
  227. package/build/esm/Tab/Tab.d.ts +5 -5
  228. package/build/esm/Tab/Tab.js.map +1 -1
  229. package/build/esm/Tab/TabList.d.ts +10 -10
  230. package/build/esm/Tab/TabList.js.map +1 -1
  231. package/build/esm/Tab/TabPanel.d.ts +5 -5
  232. package/build/esm/Tab/TabPanel.js.map +1 -1
  233. package/build/esm/Tab/TabPanels.d.ts +4 -4
  234. package/build/esm/Tab/TabPanels.js.map +1 -1
  235. package/build/esm/Tab/Tabs.d.ts +4 -4
  236. package/build/esm/Tab/Tabs.js.map +1 -1
  237. package/build/esm/Tab/context.d.ts +9 -9
  238. package/build/esm/Tab/context.js.map +1 -1
  239. package/build/esm/Tab/index.d.ts +5 -5
  240. package/build/esm/Tab/index.js.map +1 -1
  241. package/build/esm/TabIndicator/TabIndicator.d.ts +9 -9
  242. package/build/esm/TabIndicator/TabIndicator.js.map +1 -1
  243. package/build/esm/TabIndicator/context.d.ts +6 -6
  244. package/build/esm/TabIndicator/context.js.map +1 -1
  245. package/build/esm/TabIndicator/index.d.ts +2 -2
  246. package/build/esm/TabIndicator/index.js.map +1 -1
  247. package/build/esm/Table/Table.d.ts +4 -4
  248. package/build/esm/Table/Table.js +2 -9
  249. package/build/esm/Table/Table.js.map +1 -1
  250. package/build/esm/Table/TableBody.d.ts +4 -4
  251. package/build/esm/Table/TableCell.d.ts +4 -4
  252. package/build/esm/Table/TableCell.js +4 -2
  253. package/build/esm/Table/TableCell.js.map +1 -1
  254. package/build/esm/Table/TableHead.d.ts +4 -4
  255. package/build/esm/Table/TableHead.js +1 -3
  256. package/build/esm/Table/TableHead.js.map +1 -1
  257. package/build/esm/Table/TableRow.d.ts +4 -4
  258. package/build/esm/Table/context.d.ts +3 -3
  259. package/build/esm/Table/context.js.map +1 -1
  260. package/build/esm/Table/index.d.ts +5 -5
  261. package/build/esm/Table/index.js.map +1 -1
  262. package/build/esm/Text/LoremIpsum.d.ts +4 -4
  263. package/build/esm/Text/LoremIpsum.js.map +1 -1
  264. package/build/esm/Text/Text.d.ts +11 -11
  265. package/build/esm/Text/Text.js +2 -2
  266. package/build/esm/Text/Text.js.map +1 -1
  267. package/build/esm/Text/index.d.ts +1 -1
  268. package/build/esm/Text/index.js.map +1 -1
  269. package/build/esm/TextField/FilledContainer.d.ts +18 -18
  270. package/build/esm/TextField/FilledContainer.js.map +1 -1
  271. package/build/esm/TextField/HelperText.d.ts +10 -10
  272. package/build/esm/TextField/HelperText.js.map +1 -1
  273. package/build/esm/TextField/IconContainer.d.ts +5 -5
  274. package/build/esm/TextField/IconContainer.js.map +1 -1
  275. package/build/esm/TextField/Input.d.ts +11 -11
  276. package/build/esm/TextField/OutlinedContainer.d.ts +17 -17
  277. package/build/esm/TextField/OutlinedContainer.js.map +1 -1
  278. package/build/esm/TextField/TextField.d.ts +19 -19
  279. package/build/esm/TextField/consts.d.ts +5 -5
  280. package/build/esm/TextField/consts.js.map +1 -1
  281. package/build/esm/TextField/index.d.ts +4 -4
  282. package/build/esm/TextField/index.js.map +1 -1
  283. package/build/esm/ThemeExplorer/BorderSlider.d.ts +7 -7
  284. package/build/esm/ThemeExplorer/BorderSlider.js.map +1 -1
  285. package/build/esm/ThemeExplorer/ColorPicker.d.ts +8 -8
  286. package/build/esm/ThemeExplorer/ColorPicker.js.map +1 -1
  287. package/build/esm/ThemeExplorer/ColorSchemePicker.d.ts +10 -10
  288. package/build/esm/ThemeExplorer/ColorSchemePicker.js.map +1 -1
  289. package/build/esm/ThemeExplorer/FontAutoComplete.d.ts +9 -9
  290. package/build/esm/ThemeExplorer/FontAutoComplete.js.map +1 -1
  291. package/build/esm/ThemeExplorer/TextFieldColorPicker.d.ts +9 -9
  292. package/build/esm/ThemeExplorer/TextFieldColorPicker.js.map +1 -1
  293. package/build/esm/ThemeExplorer/ThemeBuilder.d.ts +11 -11
  294. package/build/esm/ThemeExplorer/ThemeBuilder.js.map +1 -1
  295. package/build/esm/ThemeExplorer/ThemeColors.d.ts +5 -5
  296. package/build/esm/ThemeExplorer/ThemeColors.js.map +1 -1
  297. package/build/esm/ThemeExplorer/components.d.ts +31 -31
  298. package/build/esm/ThemeExplorer/components.js.map +1 -1
  299. package/build/esm/ThemeExplorer/googleFonts.d.ts +1 -1
  300. package/build/esm/ThemeExplorer/googleFonts.js.map +1 -1
  301. package/build/esm/ThemeExplorer/index.d.ts +1 -1
  302. package/build/esm/ThemeExplorer/index.js.map +1 -1
  303. package/build/esm/ThemeExplorer/makeColorScheme.d.ts +98 -98
  304. package/build/esm/ThemeExplorer/makeColorScheme.js.map +1 -1
  305. package/build/esm/ThemeExplorer/makeTailwindTheme.d.ts +2 -2
  306. package/build/esm/ThemeExplorer/makeTailwindTheme.js.map +1 -1
  307. package/build/esm/ThemeExplorer/updateGoogleFonts.js.map +1 -1
  308. package/build/esm/ThemeExplorer/useDeferredColor.d.ts +3 -3
  309. package/build/esm/ThemeExplorer/useDeferredColor.js.map +1 -1
  310. package/build/esm/ThemeExplorer/useLocalStorageCachedState.d.ts +1 -1
  311. package/build/esm/ThemeExplorer/useLocalStorageCachedState.js.map +1 -1
  312. package/build/esm/Tooltip/Tooltip.d.ts +8 -8
  313. package/build/esm/Tooltip/Tooltip.js.map +1 -1
  314. package/build/esm/Tooltip/index.d.ts +1 -1
  315. package/build/esm/Tooltip/index.js.map +1 -1
  316. package/build/esm/color.d.ts +8 -8
  317. package/build/esm/css.d.ts +1 -1
  318. package/build/esm/css.js.map +1 -1
  319. package/build/esm/hooks/useAnimation.d.ts +20 -20
  320. package/build/esm/hooks/useAnimation.js.map +1 -1
  321. package/build/esm/index.d.ts +41 -41
  322. package/build/esm/index.js.map +1 -1
  323. package/build/esm/motion.d.ts +7 -7
  324. package/build/esm/motion.js.map +1 -1
  325. package/build/esm/tailwind/extendColors.d.ts +5 -5
  326. package/build/esm/tailwind/extendColors.js.map +1 -1
  327. package/build/esm/tailwind/index.d.ts +8 -8
  328. package/build/esm/tailwind/index.js.map +1 -1
  329. package/build/esm/theme/index.d.ts +2 -2
  330. package/build/esm/theme/index.js.map +1 -1
  331. package/build/esm/theme/theme.d.ts +562 -562
  332. package/build/esm/theme/typography-raleway.d.ts +112 -112
  333. package/build/esm/theme/typography-raleway.js.map +1 -1
  334. package/build/esm/theme/typography-roboto.d.ts +111 -111
  335. package/build/esm/theme/typography-roboto.js.map +1 -1
  336. package/build/esm/theme/useTheme.d.ts +566 -566
  337. package/build/esm/theme/useTheme.js.map +1 -1
  338. package/build/tsconfig-build.tsbuildinfo +1 -1
  339. package/package.json +2 -2
  340. package/src/Alert/index.ts +1 -1
  341. package/src/AppBar/AppBar.story.tsx +69 -69
  342. package/src/AppBar/AppBar.tsx +85 -85
  343. package/src/AppBar/AppBarButton.tsx +25 -25
  344. package/src/AppBar/context.ts +13 -13
  345. package/src/AppBar/index.ts +3 -3
  346. package/src/Badge/Badge.story.tsx +68 -68
  347. package/src/Badge/Badge.tsx +47 -47
  348. package/src/Badge/index.ts +1 -1
  349. package/src/BaseLine/BaseLine.tsx +100 -100
  350. package/src/BaseLine/index.ts +1 -1
  351. package/src/BottomSheet/BottomSheet.story.tsx +35 -35
  352. package/src/BottomSheet/BottomSheet.tsx +39 -39
  353. package/src/BottomSheet/BottomSheetSurface.tsx +49 -49
  354. package/src/BottomSheet/index.ts +1 -1
  355. package/src/Box/Box.tsx +127 -127
  356. package/src/Box/index.ts +1 -1
  357. package/src/Button/ButtonGroup.story.tsx +68 -43
  358. package/src/Button/FilledButton.tsx +16 -1
  359. package/src/Button/FloatingActionButton.tsx +9 -9
  360. package/src/Button/OutlinedButton.tsx +16 -1
  361. package/src/Button/SpinnerButton.story.tsx +91 -91
  362. package/src/Button/TransparentButton.tsx +16 -1
  363. package/src/Button/context.tsx +17 -17
  364. package/src/Button/index.ts +2 -2
  365. package/src/CheckBox/CheckBox.story.tsx +155 -155
  366. package/src/CheckBox/CheckBox.tsx +170 -170
  367. package/src/CheckBox/CheckBoxIcon.tsx +64 -64
  368. package/src/CheckBox/CheckPath.tsx +18 -18
  369. package/src/CheckBox/IndeterminatePath.tsx +16 -16
  370. package/src/CheckBox/index.ts +1 -1
  371. package/src/Chip/ButtonChip.tsx +86 -86
  372. package/src/Chip/Chip.story.tsx +242 -242
  373. package/src/Chip/Chip.tsx +5 -5
  374. package/src/Chip/ChipBase.tsx +141 -141
  375. package/src/Chip/ChoiceChip.tsx +127 -127
  376. package/src/Chip/index.ts +2 -2
  377. package/src/Combobox/Combobox.story.tsx +157 -157
  378. package/src/Combobox/Combobox.tsx +274 -274
  379. package/src/Combobox/index.ts +1 -1
  380. package/src/Dialog/Dialog.story.tsx +53 -53
  381. package/src/Dialog/Dialog.tsx +73 -73
  382. package/src/Dialog/DialogBackdrop.tsx +42 -42
  383. package/src/Dialog/DialogContainer.tsx +31 -31
  384. package/src/Dialog/DialogSurface.tsx +55 -55
  385. package/src/Dialog/Scrim.tsx +35 -35
  386. package/src/Dialog/index.ts +2 -2
  387. package/src/Dialog/useDialogAnimation.tsx +49 -49
  388. package/src/Divider/Divider.story.tsx +39 -39
  389. package/src/Divider/Divider.tsx +48 -48
  390. package/src/Divider/index.ts +1 -1
  391. package/src/FloatingLabel/FloatingLabel.story.tsx +55 -55
  392. package/src/FloatingLabel/FloatingLabel.tsx +77 -77
  393. package/src/FloatingLabel/index.ts +1 -1
  394. package/src/LineRipple/LineRipple.story.tsx +43 -43
  395. package/src/LineRipple/LineRipple.tsx +81 -81
  396. package/src/LineRipple/index.ts +1 -1
  397. package/src/Link/Link.story.tsx +14 -14
  398. package/src/Link/Link.tsx +65 -65
  399. package/src/Link/index.ts +1 -1
  400. package/src/List/List.tsx +46 -46
  401. package/src/List/index.ts +1 -1
  402. package/src/ListItem/ListItem.story.tsx +43 -43
  403. package/src/ListItem/ListItem.tsx +104 -104
  404. package/src/ListItem/ListItemText.tsx +35 -35
  405. package/src/ListItem/index.ts +2 -2
  406. package/src/Menu/ContextMenu.story.tsx +34 -34
  407. package/src/Menu/Menu.story.tsx +54 -54
  408. package/src/Menu/Menu.tsx +124 -124
  409. package/src/Menu/animation.ts +16 -16
  410. package/src/Menu/index.ts +2 -2
  411. package/src/NavRail/NavRail.story.tsx +146 -146
  412. package/src/NavRail/NavRailItem.tsx +175 -175
  413. package/src/NavRail/icons/test-icons.tsx +46 -46
  414. package/src/NavRail/index.ts +1 -1
  415. package/src/NotchedOutline/NotchedOutline.story.tsx +99 -99
  416. package/src/NotchedOutline/NotchedOutline.tsx +80 -80
  417. package/src/NotchedOutline/context.ts +12 -12
  418. package/src/NotchedOutline/index.ts +1 -1
  419. package/src/NotchedOutline/styledComponents.ts +122 -122
  420. package/src/Paper/Paper.story.tsx +50 -50
  421. package/src/Paper/Paper.tsx +67 -67
  422. package/src/Paper/index.ts +1 -1
  423. package/src/Popover/PopoverSurface.tsx +51 -51
  424. package/src/Popover/index.ts +1 -1
  425. package/src/ProgressSpinner/ProgressSpinner.story.tsx +35 -35
  426. package/src/ProgressSpinner/ProgressSpinner.tsx +119 -119
  427. package/src/ProgressSpinner/index.ts +1 -1
  428. package/src/RadioButton/RadioButton.story.tsx +109 -109
  429. package/src/RadioButton/RadioButton.tsx +112 -112
  430. package/src/RadioButton/RadioButtonIcon.tsx +44 -44
  431. package/src/RadioButton/RadioGroup.tsx +27 -27
  432. package/src/RadioButton/index.ts +2 -2
  433. package/src/Ripple/Ripple.story.tsx +78 -78
  434. package/src/Ripple/Ripple.tsx +33 -33
  435. package/src/Ripple/RippleBox.tsx +52 -52
  436. package/src/Ripple/constants.ts +15 -15
  437. package/src/Ripple/index.ts +5 -5
  438. package/src/Ripple/keyframes.ts +36 -36
  439. package/src/Ripple/useRipple.ts +209 -209
  440. package/src/Ripple/useRippleHandlers.ts +54 -54
  441. package/src/Ripple/useRippleSurface.ts +155 -155
  442. package/src/Select/CustomContainerExample.tsx +59 -59
  443. package/src/Select/PaymentMethodSelect.story.tsx +316 -316
  444. package/src/Select/Select.story.tsx +225 -225
  445. package/src/Select/Select.tsx +283 -283
  446. package/src/Select/SelectIcon.tsx +43 -43
  447. package/src/Select/SelectMultiple.story.tsx +215 -215
  448. package/src/Select/context.ts +22 -22
  449. package/src/Select/defaultRender.tsx +49 -49
  450. package/src/Select/index.ts +1 -1
  451. package/src/Select/styledComponents.tsx +38 -38
  452. package/src/SelectItem/SelectItem.tsx +92 -92
  453. package/src/SelectItem/index.ts +1 -1
  454. package/src/SelectionControl/SelectionControlLabel.tsx +34 -34
  455. package/src/SelectionControl/SelectionControlText.tsx +37 -37
  456. package/src/SelectionControl/index.ts +2 -2
  457. package/src/Skeleton/DelayAppearance.tsx +41 -41
  458. package/src/Skeleton/Skeleton.story.tsx +57 -57
  459. package/src/Skeleton/Skeleton.tsx +40 -40
  460. package/src/Skeleton/animation.ts +54 -54
  461. package/src/Skeleton/index.ts +2 -2
  462. package/src/Slider/Slider.story.tsx +36 -36
  463. package/src/Slider/Slider.tsx +275 -275
  464. package/src/Slider/index.ts +1 -1
  465. package/src/Snackbar/Snackbar.story.tsx +99 -99
  466. package/src/Switch/Switch.story.tsx +98 -98
  467. package/src/Switch/Switch.tsx +170 -170
  468. package/src/Switch/index.ts +1 -1
  469. package/src/Switch/styledComponents.tsx +117 -117
  470. package/src/Tab/Tab.story.tsx +209 -209
  471. package/src/Tab/Tab.tsx +120 -120
  472. package/src/Tab/TabList.tsx +61 -61
  473. package/src/Tab/TabPanel.tsx +31 -31
  474. package/src/Tab/TabPanels.tsx +5 -5
  475. package/src/Tab/Tabs.tsx +5 -5
  476. package/src/Tab/context.ts +17 -17
  477. package/src/Tab/index.ts +5 -5
  478. package/src/TabIndicator/TabIndicator.tsx +146 -146
  479. package/src/TabIndicator/context.ts +13 -13
  480. package/src/TabIndicator/index.ts +2 -2
  481. package/src/Table/Table.tsx +2 -8
  482. package/src/Table/TableCell.tsx +4 -1
  483. package/src/Table/TableHead.tsx +0 -2
  484. package/src/Table/context.ts +6 -6
  485. package/src/Table/index.ts +5 -5
  486. package/src/Text/LoremIpsum.tsx +18 -18
  487. package/src/Text/Text.story.tsx +75 -75
  488. package/src/Text/Text.tsx +84 -84
  489. package/src/Text/index.ts +1 -1
  490. package/src/TextField/FilledContainer.tsx +173 -173
  491. package/src/TextField/HelperText.tsx +63 -63
  492. package/src/TextField/IconContainer.tsx +33 -33
  493. package/src/TextField/OutlinedContainer.tsx +116 -116
  494. package/src/TextField/TextField.story.tsx +241 -241
  495. package/src/TextField/consts.ts +7 -7
  496. package/src/TextField/index.ts +4 -4
  497. package/src/ThemeExplorer/BorderSlider.tsx +73 -73
  498. package/src/ThemeExplorer/ColorPicker.tsx +104 -104
  499. package/src/ThemeExplorer/ColorSchemePicker.tsx +55 -55
  500. package/src/ThemeExplorer/FontAutoComplete.tsx +139 -139
  501. package/src/ThemeExplorer/TextFieldColorPicker.tsx +115 -115
  502. package/src/ThemeExplorer/ThemeBuilder.story.tsx +8 -8
  503. package/src/ThemeExplorer/ThemeBuilder.tsx +353 -353
  504. package/src/ThemeExplorer/ThemeColors.tsx +118 -118
  505. package/src/ThemeExplorer/components.tsx +195 -195
  506. package/src/ThemeExplorer/googleFonts.ts +1436 -1436
  507. package/src/ThemeExplorer/index.ts +1 -1
  508. package/src/ThemeExplorer/makeColorScheme.tsx +111 -111
  509. package/src/ThemeExplorer/makeTailwindTheme.ts +44 -44
  510. package/src/ThemeExplorer/updateGoogleFonts.js +33 -33
  511. package/src/ThemeExplorer/useDeferredColor.tsx +21 -21
  512. package/src/ThemeExplorer/useLocalStorageCachedState.ts +18 -18
  513. package/src/Tooltip/Tooltip.story.tsx +35 -35
  514. package/src/Tooltip/Tooltip.tsx +67 -67
  515. package/src/Tooltip/index.ts +1 -1
  516. package/src/css.ts +2 -2
  517. package/src/hooks/useAnimation.ts +111 -111
  518. package/src/index.ts +41 -41
  519. package/src/motion.ts +7 -7
  520. package/src/tailwind/extendColors.ts +51 -51
  521. package/src/tailwind/index.ts +56 -56
  522. package/src/tailwind/tests/extendColors.test.ts +123 -123
  523. package/src/theme/index.ts +2 -2
  524. package/src/theme/typography-raleway.ts +114 -114
  525. package/src/theme/typography-roboto.ts +113 -113
  526. package/src/theme/useTheme.ts +18 -18
  527. package/tailwind/package.json +5 -5
  528. package/theme-explorer/package.json +5 -5
  529. package/build/esm/ColorMode/ColorModeProvider.d.ts +0 -7
  530. package/build/esm/ColorMode/ColorModeProvider.js +0 -71
  531. package/build/esm/ColorMode/ColorModeProvider.js.map +0 -1
  532. package/build/esm/ColorMode/color-mode.d.ts +0 -8
  533. package/build/esm/ColorMode/color-mode.js +0 -12
  534. package/build/esm/ColorMode/color-mode.js.map +0 -1
  535. package/build/esm/ColorMode/color-vars.d.ts +0 -4
  536. package/build/esm/ColorMode/color-vars.js +0 -58
  537. package/build/esm/ColorMode/color-vars.js.map +0 -1
  538. package/build/esm/ColorMode/constants.d.ts +0 -2
  539. package/build/esm/ColorMode/constants.js +0 -4
  540. package/build/esm/ColorMode/constants.js.map +0 -1
  541. package/build/esm/ColorMode/index.d.ts +0 -4
  542. package/build/esm/ColorMode/index.js +0 -5
  543. package/build/esm/ColorMode/index.js.map +0 -1
  544. package/build/esm/ListItem/context.d.ts +0 -7
  545. package/build/esm/ListItem/context.js +0 -11
  546. package/build/esm/ListItem/context.js.map +0 -1
  547. package/build/tsconfig.tsbuildinfo +0 -4321
@@ -1 +1 @@
1
- {"version":3,"file":"IndeterminatePath.js","names":["Line","props","fill","stroke","strokeWidth","transformOrigin","transform","checked","transition","transitionDelay","IndeterminatePath"],"sources":["../../../src/CheckBox/IndeterminatePath.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport { rem } from 'polished';\n\nconst Line = styled.line<{ checked?: boolean; rotate?: boolean }>((props) => ({\n fill: 'none',\n stroke: 'currentColor',\n strokeWidth: rem(4),\n transformOrigin: 'center center',\n transform: props.checked ? 'scaleX(1)' : 'scaleX(0)',\n transition: 'transform .18s linear',\n transitionDelay: props.checked ? '90ms' : '0',\n}));\n\nexport const IndeterminatePath = ({ checked }: { checked?: boolean }) => {\n return <Line y2=\"12\" x2=\"22\" y1=\"12\" x1=\"2\" checked={checked} />;\n};\n"],"mappings":";;;AAGA,IAAMA,IAAI,GAAG;EAAA;AAAA;EAAA;EAAA;AAAA,GAAqD,UAACC,KAAD;EAAA,OAAY;IAC5EC,IAAI,EAAE,MADsE;IAE5EC,MAAM,EAAE,cAFoE;IAG5EC,WAAW,WAHiE;IAI5EC,eAAe,EAAE,eAJ2D;IAK5EC,SAAS,EAAEL,KAAK,CAACM,OAAN,GAAgB,WAAhB,GAA8B,WALmC;IAM5EC,UAAU,EAAE,uBANgE;IAO5EC,eAAe,EAAER,KAAK,CAACM,OAAN,GAAgB,MAAhB,GAAyB;EAPkC,CAAZ;AAAA,CAArD,ylCAAb;;AAUA,OAAO,IAAMG,iBAAiB,GAAG,SAApBA,iBAAoB,OAAwC;EAAA,IAArCH,OAAqC,QAArCA,OAAqC;EACvE,oBAAO,KAAC,IAAD;IAAM,EAAE,EAAC,IAAT;IAAc,EAAE,EAAC,IAAjB;IAAsB,EAAE,EAAC,IAAzB;IAA8B,EAAE,EAAC,GAAjC;IAAqC,OAAO,EAAEA;EAA9C,EAAP;AACD,CAFM"}
1
+ {"version":3,"file":"IndeterminatePath.js","names":["Line","props","fill","stroke","strokeWidth","transformOrigin","transform","checked","transition","transitionDelay","IndeterminatePath"],"sources":["../../../src/CheckBox/IndeterminatePath.tsx"],"sourcesContent":["import styled from '@emotion/styled';\r\nimport { rem } from 'polished';\r\n\r\nconst Line = styled.line<{ checked?: boolean; rotate?: boolean }>((props) => ({\r\n fill: 'none',\r\n stroke: 'currentColor',\r\n strokeWidth: rem(4),\r\n transformOrigin: 'center center',\r\n transform: props.checked ? 'scaleX(1)' : 'scaleX(0)',\r\n transition: 'transform .18s linear',\r\n transitionDelay: props.checked ? '90ms' : '0',\r\n}));\r\n\r\nexport const IndeterminatePath = ({ checked }: { checked?: boolean }) => {\r\n return <Line y2=\"12\" x2=\"22\" y1=\"12\" x1=\"2\" checked={checked} />;\r\n};\r\n"],"mappings":";;;AAGA,IAAMA,IAAI,GAAG;EAAA;AAAA;EAAA;EAAA;AAAA,GAAqD,UAACC,KAAD;EAAA,OAAY;IAC5EC,IAAI,EAAE,MADsE;IAE5EC,MAAM,EAAE,cAFoE;IAG5EC,WAAW,WAHiE;IAI5EC,eAAe,EAAE,eAJ2D;IAK5EC,SAAS,EAAEL,KAAK,CAACM,OAAN,GAAgB,WAAhB,GAA8B,WALmC;IAM5EC,UAAU,EAAE,uBANgE;IAO5EC,eAAe,EAAER,KAAK,CAACM,OAAN,GAAgB,MAAhB,GAAyB;EAPkC,CAAZ;AAAA,CAArD,qoCAAb;;AAUA,OAAO,IAAMG,iBAAiB,GAAG,SAApBA,iBAAoB,OAAwC;EAAA,IAArCH,OAAqC,QAArCA,OAAqC;EACvE,oBAAO,KAAC,IAAD;IAAM,EAAE,EAAC,IAAT;IAAc,EAAE,EAAC,IAAjB;IAAsB,EAAE,EAAC,IAAzB;IAA8B,EAAE,EAAC,GAAjC;IAAqC,OAAO,EAAEA;EAA9C,EAAP;AACD,CAFM"}
@@ -1 +1 @@
1
- export * from './CheckBox';
1
+ export * from './CheckBox';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/CheckBox/index.ts"],"sourcesContent":["export * from './CheckBox';\n"],"mappings":"AAAA,cAAc,YAAd"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/CheckBox/index.ts"],"sourcesContent":["export * from './CheckBox';\r\n"],"mappings":"AAAA,cAAc,YAAd"}
@@ -1,9 +1,9 @@
1
- import type { ReactNode } from 'react';
2
- import type { ChipBaseProps } from './ChipBase';
3
- export declare type ButtonChipProps = ChipBaseProps & {
4
- checked?: boolean;
5
- disabled?: boolean;
6
- leadingIcon?: ReactNode;
7
- trailingIcon?: ReactNode;
8
- };
9
- export declare const ButtonChip: import("react").ForwardRefExoticComponent<Pick<ButtonChipProps, "translate" | "hidden" | keyof import("..").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>>> | "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" | "checked" | "leadingIcon" | "trailingIcon" | "borderOpacity"> & import("react").RefAttributes<HTMLDivElement>>;
1
+ import type { ReactNode } from 'react';
2
+ import type { ChipBaseProps } from './ChipBase';
3
+ export declare type ButtonChipProps = ChipBaseProps & {
4
+ checked?: boolean;
5
+ disabled?: boolean;
6
+ leadingIcon?: ReactNode;
7
+ trailingIcon?: ReactNode;
8
+ };
9
+ export declare const ButtonChip: import("react").ForwardRefExoticComponent<Pick<ButtonChipProps, "hidden" | keyof import("..").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>>> | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "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" | "borderOpacity" | "disabled" | "checked" | "leadingIcon" | "trailingIcon"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonChip.js","names":["forwardRef","ChipBase","RippleBox","useTheme","ButtonChip","props","forwardedRef","as","onClick","disabledProp","disabled","leadingIcon","trailingIcon","children","color","__css","otherProps","theme","isClickable","undefined","bg","padding","pl","pr","gap","width","minWidth","height","appearance","outline","border","borderRadius","position","display","alignItems","cursor"],"sources":["../../../src/Chip/ButtonChip.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { forwardRef } from 'react';\nimport { rem } from 'polished';\n\nimport type { ChipBaseProps } from './ChipBase';\nimport { ChipBase } from './ChipBase';\nimport { RippleBox } from '../Ripple';\nimport { useTheme } from '../theme';\n\nexport type ButtonChipProps = ChipBaseProps & {\n checked?: boolean;\n disabled?: boolean;\n leadingIcon?: ReactNode;\n trailingIcon?: ReactNode;\n};\n\nexport const ButtonChip = forwardRef<HTMLDivElement, ButtonChipProps>(\n function ButtonChip(props, forwardedRef) {\n const {\n as = 'div',\n onClick,\n disabled: disabledProp,\n leadingIcon,\n trailingIcon,\n children,\n color,\n __css,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n const isClickable = onClick && !disabledProp;\n\n return (\n <ChipBase\n as=\"div\"\n onClick={isClickable ? onClick : undefined}\n disabled={disabledProp}\n color=\"on.surface\"\n backgroundColor=\"surface\"\n __css={__css}\n {...otherProps}\n >\n <RippleBox\n as={as}\n role={isClickable ? 'button' : undefined}\n tabIndex={isClickable ? 0 : undefined}\n theme={theme}\n ref={forwardedRef}\n rippleColor={'currentColor'}\n baseOpacity={0}\n hoverOpacity={0.12}\n focusOpacity={0.24}\n center={false}\n disabled={!isClickable}\n aria-disabled={!isClickable}\n __css={{\n bg: 'transparent',\n color: 'inherit',\n padding: `0`,\n pl: leadingIcon ? rem(8) : rem(12),\n pr: trailingIcon ? rem(8) : rem(12),\n gap: rem(8),\n width: '100%',\n minWidth: 'auto',\n height: '100%',\n appearance: 'none',\n ':focus': {\n outline: 'none',\n },\n border: 'none',\n borderRadius: 0,\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n cursor: isClickable ? 'pointer' : 'default',\n }}\n >\n {leadingIcon}\n {children}\n {trailingIcon}\n </RippleBox>\n </ChipBase>\n );\n }\n);\n"],"mappings":";;;AACA,SAASA,UAAT,QAA2B,OAA3B;AAIA,SAASC,QAAT,QAAyB,YAAzB;AACA,SAASC,SAAT,QAA0B,WAA1B;AACA,SAASC,QAAT,QAAyB,UAAzB;;;AASA,OAAO,IAAMC,UAAU,gBAAGJ,UAAU,CAClC,SAASI,UAAT,CAAoBC,KAApB,EAA2BC,YAA3B,EAAyC;EACvC,gBAUID,KAVJ,CACEE,EADF;EAAA,IACEA,EADF,0BACO,KADP;EAAA,IAEEC,OAFF,GAUIH,KAVJ,CAEEG,OAFF;EAAA,IAGYC,YAHZ,GAUIJ,KAVJ,CAGEK,QAHF;EA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CAXL;QAcLC,MAAM,EAAE,MAdH;QAeLC,YAAY,EAAE,CAfT;QAgBLC,QAAQ,EAAE,UAhBL;QAiBLC,OAAO,EAAE,aAjBJ;QAkBLC,UAAU,EAAE,QAlBP;QAmBLC,MAAM,EAAEjB,WAAW,GAAG,SAAH,GAAe;MAnB7B,CAbT;MAAA,WAmCGP,WAnCH,EAoCGE,QApCH,EAqCGD,YArCH;IAAA;EATF,GADF;AAmDD,CApEiC,CAA7B"}
1
+ {"version":3,"file":"ButtonChip.js","names":["forwardRef","ChipBase","RippleBox","useTheme","ButtonChip","props","forwardedRef","as","onClick","disabledProp","disabled","leadingIcon","trailingIcon","children","color","__css","otherProps","theme","isClickable","undefined","bg","padding","pl","pr","gap","width","minWidth","height","appearance","outline","border","borderRadius","position","display","alignItems","cursor"],"sources":["../../../src/Chip/ButtonChip.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\r\nimport { forwardRef } from 'react';\r\nimport { rem } from 'polished';\r\n\r\nimport type { ChipBaseProps } from './ChipBase';\r\nimport { ChipBase } from './ChipBase';\r\nimport { RippleBox } from '../Ripple';\r\nimport { useTheme } from '../theme';\r\n\r\nexport type ButtonChipProps = ChipBaseProps & {\r\n checked?: boolean;\r\n disabled?: boolean;\r\n leadingIcon?: ReactNode;\r\n trailingIcon?: ReactNode;\r\n};\r\n\r\nexport const ButtonChip = forwardRef<HTMLDivElement, ButtonChipProps>(\r\n function ButtonChip(props, forwardedRef) {\r\n const {\r\n as = 'div',\r\n onClick,\r\n disabled: disabledProp,\r\n leadingIcon,\r\n trailingIcon,\r\n children,\r\n color,\r\n __css,\r\n ...otherProps\r\n } = props;\r\n\r\n const theme = useTheme();\r\n const isClickable = onClick && !disabledProp;\r\n\r\n return (\r\n <ChipBase\r\n as=\"div\"\r\n onClick={isClickable ? onClick : undefined}\r\n disabled={disabledProp}\r\n color=\"on.surface\"\r\n backgroundColor=\"surface\"\r\n __css={__css}\r\n {...otherProps}\r\n >\r\n <RippleBox\r\n as={as}\r\n role={isClickable ? 'button' : undefined}\r\n tabIndex={isClickable ? 0 : undefined}\r\n theme={theme}\r\n ref={forwardedRef}\r\n rippleColor={'currentColor'}\r\n baseOpacity={0}\r\n hoverOpacity={0.12}\r\n focusOpacity={0.24}\r\n center={false}\r\n disabled={!isClickable}\r\n aria-disabled={!isClickable}\r\n __css={{\r\n bg: 'transparent',\r\n color: 'inherit',\r\n padding: `0`,\r\n pl: leadingIcon ? rem(8) : rem(12),\r\n pr: trailingIcon ? rem(8) : rem(12),\r\n gap: rem(8),\r\n width: '100%',\r\n minWidth: 'auto',\r\n height: '100%',\r\n appearance: 'none',\r\n ':focus': {\r\n outline: 'none',\r\n },\r\n border: 'none',\r\n borderRadius: 0,\r\n position: 'relative',\r\n display: 'inline-flex',\r\n alignItems: 'center',\r\n cursor: isClickable ? 'pointer' : 'default',\r\n }}\r\n >\r\n {leadingIcon}\r\n {children}\r\n {trailingIcon}\r\n </RippleBox>\r\n </ChipBase>\r\n );\r\n }\r\n);\r\n"],"mappings":";;;AACA,SAASA,UAAT,QAA2B,OAA3B;AAIA,SAASC,QAAT,QAAyB,YAAzB;AACA,SAASC,SAAT,QAA0B,WAA1B;AACA,SAASC,QAAT,QAAyB,UAAzB;;;AASA,OAAO,IAAMC,UAAU,gBAAGJ,UAAU,CAClC,SAASI,UAAT,CAAoBC,KAApB,EAA2BC,YAA3B,EAAyC;EACvC,gBAUID,KAVJ,CACEE,EADF;EAAA,IACEA,EADF,0BACO,KADP;EAAA,IAEEC,OAFF,GAUIH,KAVJ,CAEEG,OAFF;EAAA,IAGYC,YAHZ,GAUIJ,KAVJ,CAGEK,QAHF;EAAA,IAIEC,WAJF,GAUIN,KAVJ,CAIEM,WAJF;EAAA,IAKEC,YALF,GAUIP,KAVJ,CAKEO,YALF;EAAA,IAMEC,QANF,GAUIR,KAVJ,CAMEQ,QANF;EAAA,IAOEC,KAPF,GAUIT,KAVJ,CAOES,KAPF;EAAA,IAQEC,KARF,GAUIV,KAVJ,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CGP,WAnCH,EAoCGE,QApCH,EAqCGD,YArCH;IAAA;EATF,GADF;AAmDD,CApEiC,CAA7B"}
@@ -1,4 +1,4 @@
1
- import { ButtonChip } from './ButtonChip';
2
- import type { ButtonChipProps } from './ButtonChip';
3
- export { ButtonChip as Chip };
4
- export type { ButtonChipProps as ChipProps };
1
+ import { ButtonChip } from './ButtonChip';
2
+ import type { ButtonChipProps } from './ButtonChip';
3
+ export { ButtonChip as Chip };
4
+ export type { ButtonChipProps as ChipProps };
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.js","names":["ButtonChip","Chip"],"sources":["../../../src/Chip/Chip.tsx"],"sourcesContent":["import { ButtonChip } from './ButtonChip';\nimport type { ButtonChipProps } from './ButtonChip';\n\nexport { ButtonChip as Chip };\nexport type { ButtonChipProps as ChipProps };\n"],"mappings":"AAAA,SAASA,UAAT,QAA2B,cAA3B;AAGA,SAASA,UAAU,IAAIC,IAAvB"}
1
+ {"version":3,"file":"Chip.js","names":["ButtonChip","Chip"],"sources":["../../../src/Chip/Chip.tsx"],"sourcesContent":["import { ButtonChip } from './ButtonChip';\r\nimport type { ButtonChipProps } from './ButtonChip';\r\n\r\nexport { ButtonChip as Chip };\r\nexport type { ButtonChipProps as ChipProps };\r\n"],"mappings":"AAAA,SAASA,UAAT,QAA2B,cAA3B;AAGA,SAASA,UAAU,IAAIC,IAAvB"}
@@ -1,10 +1,10 @@
1
- import type { HTMLAttributes } from 'react';
2
- import type { BoxProps } from '../Box';
3
- export declare type ChipBaseProps<H = HTMLDivElement, Attr = HTMLAttributes<H>> = BoxProps<H, Attr> & {
4
- variant?: 'filled' | 'outlined';
5
- backgroundColor?: string;
6
- color?: string;
7
- borderOpacity?: number;
8
- disabled?: boolean;
9
- };
10
- export declare const ChipBase: import("react").ForwardRefExoticComponent<Pick<ChipBaseProps<HTMLDivElement, HTMLAttributes<HTMLDivElement>>, "translate" | "hidden" | 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>>> | "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" | "borderOpacity"> & import("react").RefAttributes<HTMLDivElement>>;
1
+ import type { HTMLAttributes } from 'react';
2
+ import type { BoxProps } from '../Box';
3
+ export declare type ChipBaseProps<H = HTMLDivElement, Attr = HTMLAttributes<H>> = BoxProps<H, Attr> & {
4
+ variant?: 'filled' | 'outlined';
5
+ backgroundColor?: string;
6
+ color?: string;
7
+ borderOpacity?: number;
8
+ disabled?: boolean;
9
+ };
10
+ export declare const ChipBase: import("react").ForwardRefExoticComponent<Pick<ChipBaseProps<HTMLDivElement, HTMLAttributes<HTMLDivElement>>, "slot" | "style" | "title" | "children" | "hidden" | 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>>> | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "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" | "borderOpacity"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"ChipBase.js","names":["forwardRef","variant","Box","useTheme","alpha","getDarkThemeBackgroundOverlay","getColorOverlay","getFilledCSS","theme","bg","color","disabled","backgroundColor","position","content","opacity","pointerEvents","top","right","bottom","left","width","height","boxSizing","zIndex","boxShadow","getOutlinedCSS","borderOpacity","borderColor","borderStyle","borderWidth","ChipBase","Chip","props","forwardedRef","as","__css","variantProp","colorProp","backgroundColorProp","borderOpacityProp","children","otherProps","undefined","display","alignItems","justifyContent","textAlign","lineHeight","textDecoration","fontSize","border","overflow","whiteSpace","cursor","WebkitTapHighlightColor","willChange","minWidth","scale","prop","variants","text"],"sources":["../../../src/Chip/ChipBase.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\nimport { forwardRef } from 'react';\nimport { variant } from 'styled-system';\nimport { rem } from 'polished';\n\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\nimport type { Theme } from '../theme';\nimport { useTheme } from '../theme';\nimport {\n alpha,\n getDarkThemeBackgroundOverlay,\n getColorOverlay,\n} from '../color';\n\nexport type ChipBaseProps<\n H = HTMLDivElement,\n Attr = HTMLAttributes<H>\n> = BoxProps<H, Attr> & {\n variant?: 'filled' | 'outlined';\n backgroundColor?: string;\n color?: string;\n borderOpacity?: number;\n disabled?: boolean;\n};\n\nfunction getFilledCSS(\n theme: Theme,\n bg: string,\n color: string,\n disabled: boolean\n) {\n return {\n ...(!disabled && bg !== 'surface'\n ? { bg }\n : {\n ...getColorOverlay(theme, 'surface', 'primary', 0.05),\n }),\n color,\n '&::before': {\n backgroundColor: 'currentColor',\n position: 'absolute',\n content: '\"\"',\n opacity: 0,\n pointerEvents: 'none',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n width: '100%',\n height: '100%',\n boxSizing: 'content-box',\n },\n '& > *': {\n zIndex: 1,\n },\n ...(disabled && { boxShadow: 0, bg: alpha('on.surface', 0.32) }),\n };\n}\n\nfunction getOutlinedCSS(\n theme: Theme,\n bg: string,\n color: string,\n borderOpacity: number\n) {\n return {\n ...(bg !== 'surface' ? { bg } : getDarkThemeBackgroundOverlay(theme, 2)),\n color: color,\n borderColor: alpha(color, borderOpacity),\n borderStyle: 'solid',\n borderWidth: rem(1),\n };\n}\n\nexport const ChipBase = forwardRef<HTMLDivElement, ChipBaseProps>(function Chip(\n props,\n forwardedRef\n) {\n const {\n as = 'div',\n __css,\n variant: variantProp = 'filled',\n color: colorProp = 'on.surface',\n backgroundColor: backgroundColorProp = 'surface',\n borderOpacity: borderOpacityProp = 0.24,\n children,\n disabled = false,\n ...otherProps\n } = props;\n const theme = useTheme();\n\n return (\n <Box\n as={as}\n data-disabled={disabled ? '' : undefined}\n ref={forwardedRef}\n __css={{\n boxSizing: 'border-box',\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n textAlign: 'center',\n lineHeight: 'inherit',\n textDecoration: 'none',\n fontSize: 'inherit',\n border: 0,\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n cursor: 'default',\n WebkitTapHighlightColor: 'transparent',\n willChange: 'transform,opacity',\n minWidth: 'auto',\n '&::-moz-focus-inner': {\n border: 0,\n },\n ...variant({\n scale: 'chips.variants',\n prop: 'variant',\n variants: {\n text: {},\n },\n })({ variant: variantProp, theme }),\n ...(variantProp === 'filled'\n ? getFilledCSS(theme, backgroundColorProp, colorProp, disabled)\n : getOutlinedCSS(\n theme,\n backgroundColorProp,\n colorProp,\n borderOpacityProp\n )),\n opacity: disabled ? 0.38 : 1,\n ...__css,\n }}\n {...otherProps}\n >\n {children}\n </Box>\n );\n});\n"],"mappings":";;;AACA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,OAAT,QAAwB,eAAxB;AAIA,SAASC,GAAT,QAAoB,QAApB;AAEA,SAASC,QAAT,QA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BADE;MAETC,IAAI,EAAE,SAFG;MAGTC,QAAQ,EAAE;QACRC,IAAI,EAAE;MADE;IAHD,CAAD,CAAP,CAMA;MAAE5D,OAAO,EAAEoC,WAAX;MAAwB7B,KAAK,EAALA;IAAxB,CANA,CApBA,GA2BC6B,WAAW,KAAK,QAAhB,GACA9B,YAAY,CAACC,KAAD,EAAQ+B,mBAAR,EAA6BD,SAA7B,EAAwC3B,QAAxC,CADZ,GAEAe,cAAc,CACZlB,KADY,EAEZ+B,mBAFY,EAGZD,SAHY,EAIZE,iBAJY,CA7Bf;MAmCHzB,OAAO,EAAEJ,QAAQ,GAAG,IAAH,GAAU;IAnCxB,GAoCAyB,KApCA;EAJP,GA0CMM,UA1CN;IAAA,UA4CGD;EA5CH,GADF;AAgDD,CAjEiC,CAA3B"}
1
+ {"version":3,"file":"ChipBase.js","names":["forwardRef","variant","Box","useTheme","alpha","getDarkThemeBackgroundOverlay","getColorOverlay","getFilledCSS","theme","bg","color","disabled","backgroundColor","position","content","opacity","pointerEvents","top","right","bottom","left","width","height","boxSizing","zIndex","boxShadow","getOutlinedCSS","borderOpacity","borderColor","borderStyle","borderWidth","ChipBase","Chip","props","forwardedRef","as","__css","variantProp","colorProp","backgroundColorProp","borderOpacityProp","children","otherProps","undefined","display","alignItems","justifyContent","textAlign","lineHeight","textDecoration","fontSize","border","overflow","whiteSpace","cursor","WebkitTapHighlightColor","willChange","minWidth","scale","prop","variants","text"],"sources":["../../../src/Chip/ChipBase.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\r\nimport { forwardRef } from 'react';\r\nimport { variant } from 'styled-system';\r\nimport { rem } from 'polished';\r\n\r\nimport type { BoxProps } from '../Box';\r\nimport { Box } from '../Box';\r\nimport type { Theme } from '../theme';\r\nimport { useTheme } from '../theme';\r\nimport {\r\n alpha,\r\n getDarkThemeBackgroundOverlay,\r\n getColorOverlay,\r\n} from '../color';\r\n\r\nexport type ChipBaseProps<\r\n H = HTMLDivElement,\r\n Attr = HTMLAttributes<H>\r\n> = BoxProps<H, Attr> & {\r\n variant?: 'filled' | 'outlined';\r\n backgroundColor?: string;\r\n color?: string;\r\n borderOpacity?: number;\r\n disabled?: boolean;\r\n};\r\n\r\nfunction getFilledCSS(\r\n theme: Theme,\r\n bg: string,\r\n color: string,\r\n disabled: boolean\r\n) {\r\n return {\r\n ...(!disabled && bg !== 'surface'\r\n ? { bg }\r\n : {\r\n ...getColorOverlay(theme, 'surface', 'primary', 0.05),\r\n }),\r\n color,\r\n '&::before': {\r\n backgroundColor: 'currentColor',\r\n position: 'absolute',\r\n content: '\"\"',\r\n opacity: 0,\r\n pointerEvents: 'none',\r\n top: 0,\r\n right: 0,\r\n bottom: 0,\r\n left: 0,\r\n width: '100%',\r\n height: '100%',\r\n boxSizing: 'content-box',\r\n },\r\n '& > *': {\r\n zIndex: 1,\r\n },\r\n ...(disabled && { boxShadow: 0, bg: alpha('on.surface', 0.32) }),\r\n };\r\n}\r\n\r\nfunction getOutlinedCSS(\r\n theme: Theme,\r\n bg: string,\r\n color: string,\r\n borderOpacity: number\r\n) {\r\n return {\r\n ...(bg !== 'surface' ? { bg } : getDarkThemeBackgroundOverlay(theme, 2)),\r\n color: color,\r\n borderColor: alpha(color, borderOpacity),\r\n borderStyle: 'solid',\r\n borderWidth: rem(1),\r\n };\r\n}\r\n\r\nexport const ChipBase = forwardRef<HTMLDivElement, ChipBaseProps>(function Chip(\r\n props,\r\n forwardedRef\r\n) {\r\n const {\r\n as = 'div',\r\n __css,\r\n variant: variantProp = 'filled',\r\n color: colorProp = 'on.surface',\r\n backgroundColor: backgroundColorProp = 'surface',\r\n borderOpacity: borderOpacityProp = 0.24,\r\n children,\r\n disabled = false,\r\n ...otherProps\r\n } = props;\r\n const theme = useTheme();\r\n\r\n return (\r\n <Box\r\n as={as}\r\n data-disabled={disabled ? '' : undefined}\r\n ref={forwardedRef}\r\n __css={{\r\n boxSizing: 'border-box',\r\n position: 'relative',\r\n display: 'inline-flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n textAlign: 'center',\r\n lineHeight: 'inherit',\r\n textDecoration: 'none',\r\n fontSize: 'inherit',\r\n border: 0,\r\n overflow: 'hidden',\r\n whiteSpace: 'nowrap',\r\n cursor: 'default',\r\n WebkitTapHighlightColor: 'transparent',\r\n willChange: 'transform,opacity',\r\n minWidth: 'auto',\r\n '&::-moz-focus-inner': {\r\n border: 0,\r\n },\r\n ...variant({\r\n scale: 'chips.variants',\r\n prop: 'variant',\r\n variants: {\r\n text: {},\r\n },\r\n })({ variant: variantProp, theme }),\r\n ...(variantProp === 'filled'\r\n ? getFilledCSS(theme, backgroundColorProp, colorProp, disabled)\r\n : getOutlinedCSS(\r\n theme,\r\n backgroundColorProp,\r\n colorProp,\r\n borderOpacityProp\r\n )),\r\n opacity: disabled ? 0.38 : 1,\r\n ...__css,\r\n }}\r\n {...otherProps}\r\n >\r\n {children}\r\n </Box>\r\n );\r\n});\r\n"],"mappings":";;;AACA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,OAAT,QAAwB,eAAxB;AAIA,SAASC,GAAT,QAAoB,QAApB;AAEA,SAASC,QAAT,QAAyB,UAAzB;AACA,SACEC,KADF,EAEEC,6BAFF,EAGEC,eAHF,QAIO,UAJP;;;AAiBA,SAASC,YAAT,CACEC,KADF,EAEEC,EAFF,EAGEC,KAHF,EAIEC,QAJF,EAKE;EACA,6BACM,CAACA,QAAD,IAAaF,EAAE,KAAK,SAApB,GACA;IAAEA,EAAE,EAAFA;EAAF,CADA,gBAGKH,eAAe,CAACE,KAAD,EAAQ,SAAR,EAAmB,SAAnB,EAA8B,IAA9B,CAHpB,CADN;IAMEE,KAAK,EAALA,KANF;IAOE,aAAa;MACXE,eAAe,EAAE,cADN;MAEXC,QAAQ,EAAE,UAFC;MAGXC,OAAO,EAAE,IAHE;MAIXC,OAAO,EAAE,CAJE;MAKXC,aAAa,EAAE,MALJ;MAMXC,GAAG,EAAE,CANM;MAOXC,KAAK,EAAE,CAPI;M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import type { InputHTMLAttributes, ReactNode } from 'react';
2
- import type { ChipBaseProps } from './ChipBase';
3
- export declare type ChoiceChipProps = ChipBaseProps<HTMLInputElement, InputHTMLAttributes<HTMLInputElement>> & {
4
- checked?: boolean;
5
- disabled?: boolean;
6
- type: 'checkbox' | 'radio';
7
- leadingIcon?: ReactNode;
8
- trailingIcon?: ReactNode;
9
- };
10
- export declare const ChoiceChip: import("react").ForwardRefExoticComponent<Pick<ChoiceChipProps, "translate" | "hidden" | 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>>> | "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" | "form" | "pattern" | "list" | "step" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "multiple" | "alt" | "autoComplete" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "src" | "crossOrigin" | "enterKeyHint" | "max" | "min" | "readOnly" | "required" | "leadingIcon" | "trailingIcon" | "borderOpacity"> & import("react").RefAttributes<HTMLInputElement>>;
1
+ import type { InputHTMLAttributes, ReactNode } from 'react';
2
+ import type { ChipBaseProps } from './ChipBase';
3
+ export declare type ChoiceChipProps = ChipBaseProps<HTMLInputElement, InputHTMLAttributes<HTMLInputElement>> & {
4
+ checked?: boolean;
5
+ disabled?: boolean;
6
+ type: 'checkbox' | 'radio';
7
+ leadingIcon?: ReactNode;
8
+ trailingIcon?: ReactNode;
9
+ };
10
+ export declare const ChoiceChip: import("react").ForwardRefExoticComponent<Pick<ChoiceChipProps, "translate" | "form" | "slot" | "style" | "title" | "pattern" | "hidden" | 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>>> | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "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" | "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" | "multiple" | "list" | "alt" | "autoComplete" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "src" | "step" | "leadingIcon" | "crossOrigin" | "enterKeyHint" | "max" | "min" | "readOnly" | "required" | "trailingIcon" | "borderOpacity"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"ChoiceChip.js","names":["forwardRef","RadioButton","CheckBox","ChipBase","RippleBox","useTheme","Box","InnerInput","props","forwardedRef","type","color","checked","ariaChecked","defaultChecked","value","name","defaultValue","disabled","onChange","leadingIcon","trailingIcon","children","__css","otherProps","theme","width","height","border","display","alignItems","justifyContent","pl","pr","bg","top","left","appearance","outline","borderRadius","position","ChoiceChip","Comp"],"sources":["../../../src/Chip/ChoiceChip.tsx"],"sourcesContent":["import type { FC, InputHTMLAttributes, ReactNode } from 'react';\nimport { forwardRef } from 'react';\nimport { RadioButton, CheckBox } from '@basic-ui/core';\nimport { rem } from 'polished';\n\nimport type { ChipBaseProps } from './ChipBase';\nimport { ChipBase } from './ChipBase';\nimport type { RippleBoxProps } from '../Ripple';\nimport { RippleBox } from '../Ripple';\nimport { useTheme } from '../theme';\nimport { Box } from '../Box';\n\nexport type ChoiceChipProps = ChipBaseProps<\n HTMLInputElement,\n InputHTMLAttributes<HTMLInputElement>\n> & {\n checked?: boolean;\n disabled?: boolean;\n type: 'checkbox' | 'radio';\n leadingIcon?: ReactNode;\n trailingIcon?: ReactNode;\n};\n\nconst InnerInput: FC<any> = forwardRef<HTMLInputElement, ChoiceChipProps>(\n function InnerInput(props, forwardedRef) {\n const {\n type,\n color = 'primary',\n checked,\n 'aria-checked': ariaChecked,\n defaultChecked,\n value,\n name,\n defaultValue,\n disabled,\n onChange,\n leadingIcon,\n trailingIcon,\n children,\n __css,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n return (\n <ChipBase\n as=\"label\"\n disabled={disabled}\n backgroundColor={checked ? color + '-container' : 'surface'}\n color={checked ? 'on.' + color + '-container' : 'on.surface'}\n borderOpacity={checked ? 0 : 0.24}\n __css={__css}\n {...otherProps}\n >\n <Box\n as=\"span\"\n __css={{\n width: '100%',\n height: '100%',\n border: 'none',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n pl: leadingIcon ? rem(8) : rem(12),\n pr: trailingIcon ? rem(8) : rem(12),\n }}\n >\n <RippleBox<\n RippleBoxProps<\n HTMLInputElement,\n InputHTMLAttributes<HTMLInputElement>\n >\n >\n as=\"input\"\n type={type}\n aria-checked={ariaChecked}\n checked={checked}\n onChange={onChange}\n defaultChecked={defaultChecked}\n value={value}\n defaultValue={defaultValue}\n theme={theme}\n disabled={disabled}\n rippleColor={color}\n baseOpacity={0}\n hoverOpacity={0.12}\n focusOpacity={0.24}\n name={name}\n ref={forwardedRef}\n __css={{\n bg: 'transparent',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n appearance: 'none',\n ':focus': {\n outline: 'none',\n },\n border: 'none',\n borderRadius: 0,\n position: 'absolute',\n }}\n />\n {leadingIcon}\n {children}\n {trailingIcon}\n </Box>\n </ChipBase>\n );\n }\n);\n\nexport const ChoiceChip = forwardRef<HTMLInputElement, ChoiceChipProps>(\n function ChoiceChip(props, forwardedRef) {\n const { type = 'checkbox', ...otherProps } = props;\n\n const Comp: FC<ChoiceChipProps> = (\n type === 'radio' ? RadioButton : CheckBox\n ) as any;\n\n return (\n <Comp ref={forwardedRef} as={InnerInput} type={type} {...otherProps} />\n );\n }\n);\n"],"mappings":";;;;AACA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,WAAT,EAAsBC,QAAtB,QAAsC,gBAAtC;AAIA,SAASC,QAAT,QAAyB,YAAzB;AAEA,SAASC,SAAT,QAA0B,WAA1B;AACA,SAASC,QAAT,QAAyB,UAAzB;AACA,SAASC,GAAT,QAAoB,QAApB;;;AAaA,IAAMC,UAAmB,gBAAGP,UAAU,CACpC,SAASO,UAAT,CAAoBC,KAApB,EAA2BC,YAA3B,EAAyC;EACvC,IACEC,IADF,GAgBIF,KAhBJ,CACEE,IADF;EAAA,mBAgBIF,KAhBJ,CAEEG,KAFF;EAAA,IAEEA,KAFF,6BAEU,SAFV;EAAA,IAGEC,OAHF,GAgBIJ,KAhBJ,CAGEI,OAHF;EAAA,IAIkBC,WAJlB,GAgBIL,KAhBJ,CAIE,cAJF;EAAA,IAKEM,cALF,GAgBIN,KAhBJ,CAKEM,cALF;EAAA,IAMEC,KANF,GAgBIP,KAhBJ,CAMEO,KANF;EAAA,IAOEC,IAPF,GAgBIR,KAhBJ,CAOEQ,IAPF;EAAA,IAQEC,YARF,GAgBIT,KAhBJ,CAQES,YARF;EAAA,IASEC,QATF,GAgBIV,KAhBJ,CASEU,QATF;EAAA,IAUEC,QAVF,GAgBIX,KAhBJ,CAUEW,QAVF;EAAA,IAWEC,WAXF,GAgB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AI,EAAEK,IApBR;QAqBE,GAAG,EAAEP,YArBP;QAsBE,KAAK,EAAE;UACLyB,EAAE,EAAE,aADC;UAELC,GAAG,EAAE,CAFA;UAGLC,IAAI,EAAE,CAHD;UAILV,KAAK,EAAE,MAJF;UAKLC,MAAM,EAAE,MALH;UAMLU,UAAU,EAAE,MANP;UAOL,UAAU;YACRC,OAAO,EAAE;UADD,CAPL;UAULV,MAAM,EAAE,MAVH;UAWLW,YAAY,EAAE,CAXT;UAYLC,QAAQ,EAAE;QAZL;MAtBT,EAbF,EAkDGpB,WAlDH,EAmDGE,QAnDH,EAoDGD,YApDH;IAAA;EATF,GADF;AAkED,CAxFmC,CAAtC;AA2FA,OAAO,IAAMoB,UAAU,gBAAGzC,UAAU,CAClC,SAASyC,UAAT,CAAoBjC,KAApB,EAA2BC,YAA3B,EAAyC;EACvC,kBAA6CD,KAA7C,CAAQE,IAAR;EAAA,IAAQA,IAAR,4BAAe,UAAf;EAAA,IAA8Bc,UAA9B,4BAA6ChB,KAA7C;;EAEA,IAAMkC,IAAyB,GAC7BhC,IAAI,KAAK,OAAT,GAAmBT,WAAnB,GAAiCC,QADnC;EAIA,oBACE,KAAC,IAAD;IAAM,GAAG,EAAEO,YAAX;IAAyB,EAAE,EAAEF,UAA7B;IAAyC,IAAI,EAAEG;EAA/C,GAAyDc,UAAzD,EADF;AAGD,CAXiC,CAA7B"}
1
+ {"version":3,"file":"ChoiceChip.js","names":["forwardRef","RadioButton","CheckBox","ChipBase","RippleBox","useTheme","Box","InnerInput","props","forwardedRef","type","color","checked","ariaChecked","defaultChecked","value","name","defaultValue","disabled","onChange","leadingIcon","trailingIcon","children","__css","otherProps","theme","width","height","border","display","alignItems","justifyContent","pl","pr","bg","top","left","appearance","outline","borderRadius","position","ChoiceChip","Comp"],"sources":["../../../src/Chip/ChoiceChip.tsx"],"sourcesContent":["import type { FC, InputHTMLAttributes, ReactNode } from 'react';\r\nimport { forwardRef } from 'react';\r\nimport { RadioButton, CheckBox } from '@basic-ui/core';\r\nimport { rem } from 'polished';\r\n\r\nimport type { ChipBaseProps } from './ChipBase';\r\nimport { ChipBase } from './ChipBase';\r\nimport type { RippleBoxProps } from '../Ripple';\r\nimport { RippleBox } from '../Ripple';\r\nimport { useTheme } from '../theme';\r\nimport { Box } from '../Box';\r\n\r\nexport type ChoiceChipProps = ChipBaseProps<\r\n HTMLInputElement,\r\n InputHTMLAttributes<HTMLInputElement>\r\n> & {\r\n checked?: boolean;\r\n disabled?: boolean;\r\n type: 'checkbox' | 'radio';\r\n leadingIcon?: ReactNode;\r\n trailingIcon?: ReactNode;\r\n};\r\n\r\nconst InnerInput: FC<any> = forwardRef<HTMLInputElement, ChoiceChipProps>(\r\n function InnerInput(props, forwardedRef) {\r\n const {\r\n type,\r\n color = 'primary',\r\n checked,\r\n 'aria-checked': ariaChecked,\r\n defaultChecked,\r\n value,\r\n name,\r\n defaultValue,\r\n disabled,\r\n onChange,\r\n leadingIcon,\r\n trailingIcon,\r\n children,\r\n __css,\r\n ...otherProps\r\n } = props;\r\n\r\n const theme = useTheme();\r\n\r\n return (\r\n <ChipBase\r\n as=\"label\"\r\n disabled={disabled}\r\n backgroundColor={checked ? color + '-container' : 'surface'}\r\n color={checked ? 'on.' + color + '-container' : 'on.surface'}\r\n borderOpacity={checked ? 0 : 0.24}\r\n __css={__css}\r\n {...otherProps}\r\n >\r\n <Box\r\n as=\"span\"\r\n __css={{\r\n width: '100%',\r\n height: '100%',\r\n border: 'none',\r\n display: 'inline-flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n pl: leadingIcon ? rem(8) : rem(12),\r\n pr: trailingIcon ? rem(8) : rem(12),\r\n }}\r\n >\r\n <RippleBox<\r\n RippleBoxProps<\r\n HTMLInputElement,\r\n InputHTMLAttributes<HTMLInputElement>\r\n >\r\n >\r\n as=\"input\"\r\n type={type}\r\n aria-checked={ariaChecked}\r\n checked={checked}\r\n onChange={onChange}\r\n defaultChecked={defaultChecked}\r\n value={value}\r\n defaultValue={defaultValue}\r\n theme={theme}\r\n disabled={disabled}\r\n rippleColor={color}\r\n baseOpacity={0}\r\n hoverOpacity={0.12}\r\n focusOpacity={0.24}\r\n name={name}\r\n ref={forwardedRef}\r\n __css={{\r\n bg: 'transparent',\r\n top: 0,\r\n left: 0,\r\n width: '100%',\r\n height: '100%',\r\n appearance: 'none',\r\n ':focus': {\r\n outline: 'none',\r\n },\r\n border: 'none',\r\n borderRadius: 0,\r\n position: 'absolute',\r\n }}\r\n />\r\n {leadingIcon}\r\n {children}\r\n {trailingIcon}\r\n </Box>\r\n </ChipBase>\r\n );\r\n }\r\n);\r\n\r\nexport const ChoiceChip = forwardRef<HTMLInputElement, ChoiceChipProps>(\r\n function ChoiceChip(props, forwardedRef) {\r\n const { type = 'checkbox', ...otherProps } = props;\r\n\r\n const Comp: FC<ChoiceChipProps> = (\r\n type === 'radio' ? RadioButton : CheckBox\r\n ) as any;\r\n\r\n return (\r\n <Comp ref={forwardedRef} as={InnerInput} type={type} {...otherProps} />\r\n );\r\n }\r\n);\r\n"],"mappings":";;;;AACA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,WAAT,EAAsBC,QAAtB,QAAsC,gBAAtC;AAIA,SAASC,QAAT,QAAyB,YAAzB;AAEA,SAASC,SAAT,QAA0B,WAA1B;AACA,SAASC,QAAT,QAAyB,UAAzB;AACA,SAASC,GAAT,QAAoB,QAApB;;;AAaA,IAAMC,UAAmB,gBAAGP,UAAU,CACpC,SAASO,UAAT,CAAoBC,KAApB,EAA2BC,YAA3B,EAAyC;EACvC,IACEC,IADF,GAgBIF,KAhBJ,CACEE,IADF;EAAA,mBAgBIF,KAhBJ,CAEEG,KAFF;EAAA,IAEEA,KAFF,6BAEU,SAFV;EAAA,IAGEC,OAHF,GAgBIJ,KAhBJ,CAGEI,OAHF;EAAA,IAIkBC,WAJlB,GAgBIL,KAhBJ,CAIE,cAJF;EAAA,IAKEM,cALF,GAgBIN,KAhBJ,CAKEM,cALF;EAAA,IA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"index.js","names":[],"sources":["../../../src/Chip/index.ts"],"sourcesContent":["export * from './Chip';\nexport * from './ChoiceChip';\n"],"mappings":"AAAA,cAAc,QAAd;AACA,cAAc,cAAd"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/Chip/index.ts"],"sourcesContent":["export * from './Chip';\r\nexport * from './ChoiceChip';\r\n"],"mappings":"AAAA,cAAc,QAAd;AACA,cAAc,cAAd"}