react-miui 0.34.0 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (427) hide show
  1. package/.claude/settings.local.json +2 -1
  2. package/CHANGELOG.md +17 -0
  3. package/dist/components/form/index.d.ts +1 -0
  4. package/dist/components/form/index.d.ts.map +1 -1
  5. package/dist/components/form/index.js +1 -0
  6. package/dist/components/form/index.js.map +1 -1
  7. package/dist/components/form/input/Input.d.ts.map +1 -1
  8. package/dist/components/form/input/Input.js +9 -5
  9. package/dist/components/form/input/Input.js.map +1 -1
  10. package/dist/components/form/timepicker/TimePicker.css.d.ts +99 -0
  11. package/dist/components/form/timepicker/TimePicker.css.d.ts.map +1 -0
  12. package/dist/components/form/timepicker/TimePicker.css.js +116 -0
  13. package/dist/components/form/timepicker/TimePicker.css.js.map +1 -0
  14. package/dist/components/form/timepicker/TimePicker.d.ts +22 -0
  15. package/dist/components/form/timepicker/TimePicker.d.ts.map +1 -0
  16. package/dist/components/form/timepicker/TimePicker.js +141 -0
  17. package/dist/components/form/timepicker/TimePicker.js.map +1 -0
  18. package/dist/components/form/timepicker/TimePicker.styled.d.ts +936 -0
  19. package/dist/components/form/timepicker/TimePicker.styled.d.ts.map +1 -0
  20. package/dist/components/form/timepicker/TimePicker.styled.js +29 -0
  21. package/dist/components/form/timepicker/TimePicker.styled.js.map +1 -0
  22. package/dist/components/form/timepicker/TimePickerModal.d.ts +17 -0
  23. package/dist/components/form/timepicker/TimePickerModal.d.ts.map +1 -0
  24. package/dist/components/form/timepicker/TimePickerModal.js +92 -0
  25. package/dist/components/form/timepicker/TimePickerModal.js.map +1 -0
  26. package/dist/components/form/timepicker/Wheel.d.ts +12 -0
  27. package/dist/components/form/timepicker/Wheel.d.ts.map +1 -0
  28. package/dist/components/form/timepicker/Wheel.js +187 -0
  29. package/dist/components/form/timepicker/Wheel.js.map +1 -0
  30. package/dist/components/form/timepicker/utils.d.ts +4 -0
  31. package/dist/components/form/timepicker/utils.d.ts.map +1 -0
  32. package/dist/components/form/timepicker/utils.js +62 -0
  33. package/dist/components/form/timepicker/utils.js.map +1 -0
  34. package/dist/components/icons/Clock.d.ts +7 -0
  35. package/dist/components/icons/Clock.d.ts.map +1 -0
  36. package/dist/components/icons/Clock.js +45 -0
  37. package/dist/components/icons/Clock.js.map +1 -0
  38. package/dist/components/icons/Icon.d.ts +2 -1
  39. package/dist/components/icons/Icon.d.ts.map +1 -1
  40. package/dist/components/icons/Icon.js +3 -0
  41. package/dist/components/icons/Icon.js.map +1 -1
  42. package/dist/components/layout/header/HeaderIconAction.d.ts.map +1 -1
  43. package/dist/components/layout/header/HeaderIconAction.js +13 -3
  44. package/dist/components/layout/header/HeaderIconAction.js.map +1 -1
  45. package/dist/components/layout/header/HeaderIconAction.styled.d.ts.map +1 -1
  46. package/dist/components/layout/header/HeaderIconAction.styled.js +11 -17
  47. package/dist/components/layout/header/HeaderIconAction.styled.js.map +1 -1
  48. package/dist/components/layout/list/Item.d.ts.map +1 -1
  49. package/dist/components/layout/list/Item.js +17 -7
  50. package/dist/components/layout/list/Item.js.map +1 -1
  51. package/dist/components/layout/list/Item.styled.d.ts.map +1 -1
  52. package/dist/components/layout/list/Item.styled.js +2 -1
  53. package/dist/components/layout/list/Item.styled.js.map +1 -1
  54. package/dist/components/ui/button/Button.d.ts +94 -1
  55. package/dist/components/ui/button/Button.d.ts.map +1 -1
  56. package/dist/components/ui/button/Button.js +59 -2
  57. package/dist/components/ui/button/Button.js.map +1 -1
  58. package/dist/components/ui/button/Button.styled.d.ts +2 -2
  59. package/dist/components/ui/button/Button.styled.d.ts.map +1 -1
  60. package/dist/components/ui/button/Button.styled.js +4 -3
  61. package/dist/components/ui/button/Button.styled.js.map +1 -1
  62. package/dist/components/ui/directionPad/Button.d.ts.map +1 -1
  63. package/dist/components/ui/directionPad/Button.js +7 -2
  64. package/dist/components/ui/directionPad/Button.js.map +1 -1
  65. package/dist/components/ui/directionPad/Button.styled.d.ts.map +1 -1
  66. package/dist/components/ui/directionPad/Button.styled.js +2 -1
  67. package/dist/components/ui/directionPad/Button.styled.js.map +1 -1
  68. package/dist/components/ui/directionPad/Middle.d.ts.map +1 -1
  69. package/dist/components/ui/directionPad/Middle.js +7 -1
  70. package/dist/components/ui/directionPad/Middle.js.map +1 -1
  71. package/dist/components/ui/directionPad/Middle.styled.d.ts.map +1 -1
  72. package/dist/components/ui/directionPad/Middle.styled.js +2 -1
  73. package/dist/components/ui/directionPad/Middle.styled.js.map +1 -1
  74. package/dist/components/ui/modal/Modal.d.ts +1 -2
  75. package/dist/components/ui/modal/Modal.d.ts.map +1 -1
  76. package/dist/components/ui/modal/Modal.js +114 -42
  77. package/dist/components/ui/modal/Modal.js.map +1 -1
  78. package/dist/components/ui/modal/Modal.styled.d.ts +1 -1
  79. package/dist/components/ui/modal/Modal.styled.d.ts.map +1 -1
  80. package/dist/components/ui/modal/Modal.styled.js +40 -25
  81. package/dist/components/ui/modal/Modal.styled.js.map +1 -1
  82. package/dist/components/ui/modal/ModalButtons.d.ts +179 -1
  83. package/dist/components/ui/modal/ModalButtons.d.ts.map +1 -1
  84. package/dist/components/ui/modal/ModalButtons.js +63 -2
  85. package/dist/components/ui/modal/ModalButtons.js.map +1 -1
  86. package/dist/components/ui/modal/ModalButtons.styled.d.ts +90 -91
  87. package/dist/components/ui/modal/ModalButtons.styled.d.ts.map +1 -1
  88. package/dist/components/ui/modal/ModalButtons.styled.js +5 -7
  89. package/dist/components/ui/modal/ModalButtons.styled.js.map +1 -1
  90. package/dist/components/ui/pop/Pop.styled.d.ts.map +1 -1
  91. package/dist/components/ui/pop/Pop.styled.js +15 -17
  92. package/dist/components/ui/pop/Pop.styled.js.map +1 -1
  93. package/dist/components/ui/pop/PopOption.d.ts.map +1 -1
  94. package/dist/components/ui/pop/PopOption.js +7 -2
  95. package/dist/components/ui/pop/PopOption.js.map +1 -1
  96. package/dist/components/ui/toolButton/ToolButton.d.ts +94 -1
  97. package/dist/components/ui/toolButton/ToolButton.d.ts.map +1 -1
  98. package/dist/components/ui/toolButton/ToolButton.js +59 -2
  99. package/dist/components/ui/toolButton/ToolButton.js.map +1 -1
  100. package/dist/components/ui/toolButton/ToolButton.styled.d.ts +2 -2
  101. package/dist/components/ui/toolButton/ToolButton.styled.d.ts.map +1 -1
  102. package/dist/components/ui/toolButton/ToolButton.styled.js +20 -25
  103. package/dist/components/ui/toolButton/ToolButton.styled.js.map +1 -1
  104. package/dist/theme.css-global.d.ts.map +1 -1
  105. package/dist/theme.css-global.js +0 -1
  106. package/dist/theme.css-global.js.map +1 -1
  107. package/dist/utils/index.d.ts +1 -0
  108. package/dist/utils/index.d.ts.map +1 -1
  109. package/dist/utils/index.js +1 -0
  110. package/dist/utils/index.js.map +1 -1
  111. package/dist/utils/useNativeValidity.d.ts +11 -0
  112. package/dist/utils/useNativeValidity.d.ts.map +1 -0
  113. package/dist/utils/useNativeValidity.js +32 -0
  114. package/dist/utils/useNativeValidity.js.map +1 -0
  115. package/dist/utils/useRipple.d.ts +15 -0
  116. package/dist/utils/useRipple.d.ts.map +1 -0
  117. package/dist/utils/useRipple.js +120 -0
  118. package/dist/utils/useRipple.js.map +1 -0
  119. package/dist/utils/useRipple.styled.d.ts +28 -0
  120. package/dist/utils/useRipple.styled.d.ts.map +1 -0
  121. package/dist/utils/useRipple.styled.js +36 -0
  122. package/dist/utils/useRipple.styled.js.map +1 -0
  123. package/docs/assets/navigation.js +1 -1
  124. package/docs/assets/search.js +1 -1
  125. package/docs/classes/index.Pop.html +7 -7
  126. package/docs/documents/Test.html +2 -2
  127. package/docs/enums/index.ICON.html +3 -2
  128. package/docs/functions/index.Action.html +3 -3
  129. package/docs/functions/index.Button.html +3 -9
  130. package/docs/functions/index.Card.html +2 -2
  131. package/docs/functions/index.Checkbox.html +3 -3
  132. package/docs/functions/index.Choice.html +2 -2
  133. package/docs/functions/index.ColorPicker.html +3 -3
  134. package/docs/functions/index.CoveringLoader.html +3 -3
  135. package/docs/functions/index.DirectionPad.html +2 -2
  136. package/docs/functions/index.Drawer.html +2 -2
  137. package/docs/functions/index.EqualActions.html +2 -2
  138. package/docs/functions/index.FullLoader.html +3 -3
  139. package/docs/functions/index.Gap.html +2 -2
  140. package/docs/functions/index.HandleEsc.html +3 -3
  141. package/docs/functions/index.Header.html +3 -3
  142. package/docs/functions/index.HeaderIconAction.html +3 -3
  143. package/docs/functions/index.Icon-1.html +2 -2
  144. package/docs/functions/index.If.html +3 -3
  145. package/docs/functions/index.Input.html +1 -1
  146. package/docs/functions/index.KeyValue.html +2 -2
  147. package/docs/functions/index.Label.html +2 -2
  148. package/docs/functions/index.Line.html +3 -3
  149. package/docs/functions/index.List.html +2 -2
  150. package/docs/functions/index.Loader.html +3 -3
  151. package/docs/functions/index.Loading.html +3 -3
  152. package/docs/functions/index.Message.html +3 -3
  153. package/docs/functions/index.Modal.html +2 -2
  154. package/docs/functions/index.ModalButtons.html +3 -3
  155. package/docs/functions/index.PopLoader.html +3 -3
  156. package/docs/functions/index.PopOption.html +2 -2
  157. package/docs/functions/index.Progress.html +2 -2
  158. package/docs/functions/index.SearchContainer.html +2 -2
  159. package/docs/functions/index.Section.html +4 -4
  160. package/docs/functions/index.Select.html +2 -2
  161. package/docs/functions/index.Selector.html +2 -2
  162. package/docs/functions/index.Spacer.html +2 -2
  163. package/docs/functions/index.Stats.html +2 -2
  164. package/docs/functions/index.StickyHeader.html +4 -4
  165. package/docs/functions/index.Table.html +2 -2
  166. package/docs/functions/index.TextArea.html +2 -2
  167. package/docs/functions/index.TimePicker.html +10 -0
  168. package/docs/functions/index.ToasterProvider.html +3 -3
  169. package/docs/functions/index.Toggle.html +3 -3
  170. package/docs/functions/index.ToolButton.html +3 -9
  171. package/docs/functions/index.Tooltip.html +3 -3
  172. package/docs/functions/index.TooltipProvider.html +2 -2
  173. package/docs/functions/index.borderPxToRem.html +1 -1
  174. package/docs/functions/index.createTheme.html +1 -1
  175. package/docs/functions/index.css.html +1 -1
  176. package/docs/functions/index.dimensionsPxToRem.html +1 -1
  177. package/docs/functions/index.fontPxToRem.html +1 -1
  178. package/docs/functions/index.getCssText.html +1 -1
  179. package/docs/functions/index.globalCss.html +2 -2
  180. package/docs/functions/index.injectGlobalStyles.html +1 -1
  181. package/docs/functions/index.keyframes.html +1 -1
  182. package/docs/functions/index.pxToRem.html +1 -1
  183. package/docs/functions/index.styled.html +1 -1
  184. package/docs/functions/index.toast.html +2 -2
  185. package/docs/functions/index.useToaster.html +1 -1
  186. package/docs/index.html +2 -2
  187. package/docs/interfaces/index.IconProps.html +2 -2
  188. package/docs/interfaces/index.InputCustomProps.html +3 -3
  189. package/docs/interfaces/index.LoaderProps.html +6 -6
  190. package/docs/interfaces/index.StickyHeaderProps.html +4 -4
  191. package/docs/interfaces/index.ToasterProviderProps.html +3 -3
  192. package/docs/interfaces/index.TooltipProps.html +14 -14
  193. package/docs/interfaces/index.TooltipProviderProps.html +5 -5
  194. package/docs/modules/index.html +1 -1
  195. package/docs/modules.html +1 -1
  196. package/docs/types/index.ActionProps.html +1 -1
  197. package/docs/types/index.CardProps.html +1 -1
  198. package/docs/types/index.CheckboxProps.html +2 -2
  199. package/docs/types/index.ChoiceProps.html +1 -1
  200. package/docs/types/index.ColorPickerProps.html +1 -1
  201. package/docs/types/index.DirectionPadProps.html +1 -1
  202. package/docs/types/index.DrawerFrom.html +1 -1
  203. package/docs/types/index.DrawerProps.html +2 -2
  204. package/docs/types/index.EqualActionsProps.html +1 -1
  205. package/docs/types/index.HeaderProps.html +1 -1
  206. package/docs/types/index.InputProps.html +1 -1
  207. package/docs/types/index.KeyValueProps.html +1 -1
  208. package/docs/types/index.LabelProps.html +1 -1
  209. package/docs/types/index.OverwriteProps.html +1 -1
  210. package/docs/types/index.ProgressProps.html +2 -2
  211. package/docs/types/index.SelectProps.html +1 -1
  212. package/docs/types/index.SelectorProps.html +1 -1
  213. package/docs/types/index.Stat.html +1 -1
  214. package/docs/types/index.StatsProps.html +1 -1
  215. package/docs/types/index.TextAreaProps.html +1 -1
  216. package/docs/types/index.ThemeCSS.html +1 -1
  217. package/docs/types/index.TimePickerProps.html +1 -0
  218. package/docs/types/index.ToggleProps.html +2 -2
  219. package/docs/variables/index.ActionBadgeSelector.html +1 -1
  220. package/docs/variables/index.ActionCircleSelector.html +1 -1
  221. package/docs/variables/index.CheckboxCheckmarkWrapperSelector.html +1 -1
  222. package/docs/variables/index.CheckboxTextLabelSelector.html +1 -1
  223. package/docs/variables/index.ChoiceItemSelector.html +1 -1
  224. package/docs/variables/index.ColorPickerColorDisplaySelector.html +1 -1
  225. package/docs/variables/index.DirectionPadButtonDotSelector.html +1 -1
  226. package/docs/variables/index.DirectionPadButtonSelector.html +1 -1
  227. package/docs/variables/index.DirectionPadLineSelector.html +1 -1
  228. package/docs/variables/index.DirectionPadMiddleSelector.html +1 -1
  229. package/docs/variables/index.DrawerContentSelector.html +1 -1
  230. package/docs/variables/index.HeaderAfterSelector.html +1 -1
  231. package/docs/variables/index.HeaderBeforeSelector.html +1 -1
  232. package/docs/variables/index.HeaderContentsSelector.html +1 -1
  233. package/docs/variables/index.HeaderIconActionIconSelector.html +1 -1
  234. package/docs/variables/index.InputContainerSelector.html +1 -1
  235. package/docs/variables/index.InputInputSelector.html +1 -1
  236. package/docs/variables/index.InputLabelSelector.html +1 -1
  237. package/docs/variables/index.InputPrefixSelector.html +1 -1
  238. package/docs/variables/index.InputSuffixSelector.html +1 -1
  239. package/docs/variables/index.KeyValueIconSelector.html +1 -1
  240. package/docs/variables/index.KeyValueItemSelector.html +1 -1
  241. package/docs/variables/index.KeyValueKeySelector.html +1 -1
  242. package/docs/variables/index.KeyValuePairSelector.html +1 -1
  243. package/docs/variables/index.KeyValueValueSelector.html +1 -1
  244. package/docs/variables/index.LabelTextSelector.html +1 -1
  245. package/docs/variables/index.ListItemInnerContainerClassNameSelector.html +1 -1
  246. package/docs/variables/index.ModalContainerSelector.html +1 -1
  247. package/docs/variables/index.ModalRemovePaddingSelector.html +1 -1
  248. package/docs/variables/index.ModalTitleSelector.html +1 -1
  249. package/docs/variables/index.PopListSelector.html +1 -1
  250. package/docs/variables/index.PopOptionButtonSelector.html +1 -1
  251. package/docs/variables/index.PopOptionIconSelector.html +1 -1
  252. package/docs/variables/index.PopOverlaySelector.html +1 -1
  253. package/docs/variables/index.ProgressBackgroundSelector.html +1 -1
  254. package/docs/variables/index.ProgressValueSelector.html +1 -1
  255. package/docs/variables/index.SelectorItemSelector.html +1 -1
  256. package/docs/variables/index.StatsItemSelector.html +1 -1
  257. package/docs/variables/index.StatsLabelSelector.html +1 -1
  258. package/docs/variables/index.StatsSeparatorSelector.html +1 -1
  259. package/docs/variables/index.StatsValueSelector.html +1 -1
  260. package/docs/variables/index.TextAreaLabelSelector.html +1 -1
  261. package/docs/variables/index.TextAreaTextAreaSelector.html +1 -1
  262. package/docs/variables/index.TextAreaWrapperSelector.html +1 -1
  263. package/docs/variables/index.ToggleStyledToggleSelector.html +1 -1
  264. package/docs/variables/index.TooltipContentSelector.html +1 -1
  265. package/docs/variables/index.config.html +1 -1
  266. package/docs/variables/index.cssReset.html +2 -2
  267. package/docs/variables/index.darkTheme.html +1 -1
  268. package/docs/variables/index.miuiScrollbars.html +1 -1
  269. package/docs/variables/index.theme.html +1 -1
  270. package/esm/components/form/index.d.ts +1 -0
  271. package/esm/components/form/index.d.ts.map +1 -1
  272. package/esm/components/form/index.js +1 -0
  273. package/esm/components/form/index.js.map +1 -1
  274. package/esm/components/form/input/Input.d.ts.map +1 -1
  275. package/esm/components/form/input/Input.js +9 -5
  276. package/esm/components/form/input/Input.js.map +1 -1
  277. package/esm/components/form/timepicker/TimePicker.css.d.ts +99 -0
  278. package/esm/components/form/timepicker/TimePicker.css.d.ts.map +1 -0
  279. package/esm/components/form/timepicker/TimePicker.css.js +102 -0
  280. package/esm/components/form/timepicker/TimePicker.css.js.map +1 -0
  281. package/esm/components/form/timepicker/TimePicker.d.ts +22 -0
  282. package/esm/components/form/timepicker/TimePicker.d.ts.map +1 -0
  283. package/esm/components/form/timepicker/TimePicker.js +93 -0
  284. package/esm/components/form/timepicker/TimePicker.js.map +1 -0
  285. package/esm/components/form/timepicker/TimePicker.styled.d.ts +936 -0
  286. package/esm/components/form/timepicker/TimePicker.styled.d.ts.map +1 -0
  287. package/esm/components/form/timepicker/TimePicker.styled.js +20 -0
  288. package/esm/components/form/timepicker/TimePicker.styled.js.map +1 -0
  289. package/esm/components/form/timepicker/TimePickerModal.d.ts +17 -0
  290. package/esm/components/form/timepicker/TimePickerModal.d.ts.map +1 -0
  291. package/esm/components/form/timepicker/TimePickerModal.js +56 -0
  292. package/esm/components/form/timepicker/TimePickerModal.js.map +1 -0
  293. package/esm/components/form/timepicker/Wheel.d.ts +12 -0
  294. package/esm/components/form/timepicker/Wheel.d.ts.map +1 -0
  295. package/esm/components/form/timepicker/Wheel.js +151 -0
  296. package/esm/components/form/timepicker/Wheel.js.map +1 -0
  297. package/esm/components/form/timepicker/utils.d.ts +4 -0
  298. package/esm/components/form/timepicker/utils.d.ts.map +1 -0
  299. package/esm/components/form/timepicker/utils.js +58 -0
  300. package/esm/components/form/timepicker/utils.js.map +1 -0
  301. package/esm/components/icons/Clock.d.ts +7 -0
  302. package/esm/components/icons/Clock.d.ts.map +1 -0
  303. package/esm/components/icons/Clock.js +9 -0
  304. package/esm/components/icons/Clock.js.map +1 -0
  305. package/esm/components/icons/Icon.d.ts +2 -1
  306. package/esm/components/icons/Icon.d.ts.map +1 -1
  307. package/esm/components/icons/Icon.js +3 -0
  308. package/esm/components/icons/Icon.js.map +1 -1
  309. package/esm/components/layout/header/HeaderIconAction.d.ts.map +1 -1
  310. package/esm/components/layout/header/HeaderIconAction.js +13 -3
  311. package/esm/components/layout/header/HeaderIconAction.js.map +1 -1
  312. package/esm/components/layout/header/HeaderIconAction.styled.d.ts.map +1 -1
  313. package/esm/components/layout/header/HeaderIconAction.styled.js +11 -17
  314. package/esm/components/layout/header/HeaderIconAction.styled.js.map +1 -1
  315. package/esm/components/layout/list/Item.d.ts.map +1 -1
  316. package/esm/components/layout/list/Item.js +18 -8
  317. package/esm/components/layout/list/Item.js.map +1 -1
  318. package/esm/components/layout/list/Item.styled.d.ts.map +1 -1
  319. package/esm/components/layout/list/Item.styled.js +2 -1
  320. package/esm/components/layout/list/Item.styled.js.map +1 -1
  321. package/esm/components/ui/button/Button.d.ts +94 -1
  322. package/esm/components/ui/button/Button.d.ts.map +1 -1
  323. package/esm/components/ui/button/Button.js +15 -1
  324. package/esm/components/ui/button/Button.js.map +1 -1
  325. package/esm/components/ui/button/Button.styled.d.ts +2 -2
  326. package/esm/components/ui/button/Button.styled.d.ts.map +1 -1
  327. package/esm/components/ui/button/Button.styled.js +3 -2
  328. package/esm/components/ui/button/Button.styled.js.map +1 -1
  329. package/esm/components/ui/directionPad/Button.d.ts.map +1 -1
  330. package/esm/components/ui/directionPad/Button.js +7 -2
  331. package/esm/components/ui/directionPad/Button.js.map +1 -1
  332. package/esm/components/ui/directionPad/Button.styled.d.ts.map +1 -1
  333. package/esm/components/ui/directionPad/Button.styled.js +2 -1
  334. package/esm/components/ui/directionPad/Button.styled.js.map +1 -1
  335. package/esm/components/ui/directionPad/Middle.d.ts.map +1 -1
  336. package/esm/components/ui/directionPad/Middle.js +7 -1
  337. package/esm/components/ui/directionPad/Middle.js.map +1 -1
  338. package/esm/components/ui/directionPad/Middle.styled.d.ts.map +1 -1
  339. package/esm/components/ui/directionPad/Middle.styled.js +2 -1
  340. package/esm/components/ui/directionPad/Middle.styled.js.map +1 -1
  341. package/esm/components/ui/modal/Modal.d.ts +1 -2
  342. package/esm/components/ui/modal/Modal.d.ts.map +1 -1
  343. package/esm/components/ui/modal/Modal.js +103 -43
  344. package/esm/components/ui/modal/Modal.js.map +1 -1
  345. package/esm/components/ui/modal/Modal.styled.d.ts +1 -1
  346. package/esm/components/ui/modal/Modal.styled.d.ts.map +1 -1
  347. package/esm/components/ui/modal/Modal.styled.js +40 -25
  348. package/esm/components/ui/modal/Modal.styled.js.map +1 -1
  349. package/esm/components/ui/modal/ModalButtons.d.ts +179 -1
  350. package/esm/components/ui/modal/ModalButtons.d.ts.map +1 -1
  351. package/esm/components/ui/modal/ModalButtons.js +19 -1
  352. package/esm/components/ui/modal/ModalButtons.js.map +1 -1
  353. package/esm/components/ui/modal/ModalButtons.styled.d.ts +90 -91
  354. package/esm/components/ui/modal/ModalButtons.styled.d.ts.map +1 -1
  355. package/esm/components/ui/modal/ModalButtons.styled.js +3 -6
  356. package/esm/components/ui/modal/ModalButtons.styled.js.map +1 -1
  357. package/esm/components/ui/pop/Pop.styled.d.ts.map +1 -1
  358. package/esm/components/ui/pop/Pop.styled.js +15 -17
  359. package/esm/components/ui/pop/Pop.styled.js.map +1 -1
  360. package/esm/components/ui/pop/PopOption.d.ts.map +1 -1
  361. package/esm/components/ui/pop/PopOption.js +7 -2
  362. package/esm/components/ui/pop/PopOption.js.map +1 -1
  363. package/esm/components/ui/toolButton/ToolButton.d.ts +94 -1
  364. package/esm/components/ui/toolButton/ToolButton.d.ts.map +1 -1
  365. package/esm/components/ui/toolButton/ToolButton.js +15 -1
  366. package/esm/components/ui/toolButton/ToolButton.js.map +1 -1
  367. package/esm/components/ui/toolButton/ToolButton.styled.d.ts +2 -2
  368. package/esm/components/ui/toolButton/ToolButton.styled.d.ts.map +1 -1
  369. package/esm/components/ui/toolButton/ToolButton.styled.js +19 -24
  370. package/esm/components/ui/toolButton/ToolButton.styled.js.map +1 -1
  371. package/esm/theme.css-global.d.ts.map +1 -1
  372. package/esm/theme.css-global.js +0 -1
  373. package/esm/theme.css-global.js.map +1 -1
  374. package/esm/utils/index.d.ts +1 -0
  375. package/esm/utils/index.d.ts.map +1 -1
  376. package/esm/utils/index.js +1 -0
  377. package/esm/utils/index.js.map +1 -1
  378. package/esm/utils/useNativeValidity.d.ts +11 -0
  379. package/esm/utils/useNativeValidity.d.ts.map +1 -0
  380. package/esm/utils/useNativeValidity.js +29 -0
  381. package/esm/utils/useNativeValidity.js.map +1 -0
  382. package/esm/utils/useRipple.d.ts +15 -0
  383. package/esm/utils/useRipple.d.ts.map +1 -0
  384. package/esm/utils/useRipple.js +84 -0
  385. package/esm/utils/useRipple.js.map +1 -0
  386. package/esm/utils/useRipple.styled.d.ts +28 -0
  387. package/esm/utils/useRipple.styled.d.ts.map +1 -0
  388. package/esm/utils/useRipple.styled.js +33 -0
  389. package/esm/utils/useRipple.styled.js.map +1 -0
  390. package/package.json +1 -1
  391. package/src/components/form/index.ts +1 -0
  392. package/src/components/form/input/Input.stories.tsx +47 -1
  393. package/src/components/form/input/Input.tsx +11 -5
  394. package/src/components/form/timepicker/TimePicker.css.ts +132 -0
  395. package/src/components/form/timepicker/TimePicker.stories.tsx +107 -0
  396. package/src/components/form/timepicker/TimePicker.styled.ts +52 -0
  397. package/src/components/form/timepicker/TimePicker.tsx +229 -0
  398. package/src/components/form/timepicker/TimePickerModal.tsx +131 -0
  399. package/src/components/form/timepicker/Wheel.tsx +201 -0
  400. package/src/components/form/timepicker/utils.ts +66 -0
  401. package/src/components/icons/Clock.tsx +38 -0
  402. package/src/components/icons/Icon.tsx +3 -0
  403. package/src/components/layout/header/HeaderIconAction.styled.ts +11 -18
  404. package/src/components/layout/header/HeaderIconAction.tsx +32 -5
  405. package/src/components/layout/list/Item.styled.ts +2 -1
  406. package/src/components/layout/list/Item.tsx +38 -5
  407. package/src/components/ui/button/Button.styled.ts +3 -2
  408. package/src/components/ui/button/Button.tsx +33 -1
  409. package/src/components/ui/directionPad/Button.styled.ts +2 -1
  410. package/src/components/ui/directionPad/Button.tsx +13 -1
  411. package/src/components/ui/directionPad/Middle.styled.ts +2 -1
  412. package/src/components/ui/directionPad/Middle.tsx +13 -1
  413. package/src/components/ui/modal/Modal.stories.tsx +43 -7
  414. package/src/components/ui/modal/Modal.styled.ts +46 -25
  415. package/src/components/ui/modal/Modal.tsx +135 -52
  416. package/src/components/ui/modal/ModalButtons.styled.ts +4 -7
  417. package/src/components/ui/modal/ModalButtons.tsx +38 -1
  418. package/src/components/ui/pop/Pop.styled.ts +15 -18
  419. package/src/components/ui/pop/PopOption.tsx +15 -1
  420. package/src/components/ui/toolButton/ToolButton.styled.ts +20 -26
  421. package/src/components/ui/toolButton/ToolButton.tsx +33 -0
  422. package/src/theme.css-global.ts +0 -1
  423. package/src/utils/index.ts +1 -0
  424. package/src/utils/useNativeValidity.ts +57 -0
  425. package/src/utils/useRipple.styled.ts +56 -0
  426. package/src/utils/useRipple.tsx +139 -0
  427. package/src/components/ui/toolButton/ToolButton.ts +0 -1
@@ -1,4 +1,4 @@
1
- declare const ModalButtons: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"div", {}, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
1
+ declare const Container: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"div", {}, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
2
2
  colors: {
3
3
  background: "white";
4
4
  mainColor: "#008ad2";
@@ -82,94 +82,93 @@ declare const ModalButtons: import("../../../../node_modules/@stitches/react/typ
82
82
  width: string | number;
83
83
  height: string | number;
84
84
  };
85
- }>> & {
86
- Button: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"button", {
87
- variant?: "main";
88
- }, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
89
- colors: {
90
- background: "white";
91
- mainColor: "#008ad2";
92
- mainColorAlt: "#006AA9";
93
- activeBg: "#e7e7e7";
94
- inactiveBg: "#d3d3de";
95
- inactiveDarkBg: "#999";
96
- toggleHandleBg: "#e0e0e0";
97
- toggleHandleBorder: "#cdcdcd";
98
- toggleBgDisabled: "#f0f0f0";
99
- toggleHandleBorderDisabled: "#c29f7d";
100
- toggleHandleBgDisabled: "#deae84";
101
- icon: "#636363";
102
- border: "#d5d5d5";
103
- buttonBorder: "#bababa";
104
- headerBorder: "#c8c8c9";
105
- headerBg: "#efeff0";
106
- headerText: "#484848";
107
- text: "#323232";
108
- text2: "#181818";
109
- text3: "#000000";
110
- sub: "#959595";
111
- popText: "#666";
112
- toolbarBorder: "#ababab";
113
- toolbarBg: "#f8f8f8";
114
- modalBg: "#f7f7f7";
115
- modalButtonBg: "#f8f8f8";
116
- modalButtonBorder: "#c2c2c2";
117
- inputDisabledBg: "#f3f3f3";
118
- inputDisabledText: "#959595";
119
- choiceBg: "#ffffff";
120
- choiceText: "#999999";
121
- choiceActiveBg: "#f3f3f3";
122
- choiceActiveText: "#313131";
123
- choiceBorder: "#cfcfcf";
124
- selectorText: "#606060";
125
- selectorActive: "#008ad2";
126
- blue1: "#038bf4";
127
- blue2: "#b7d6f5";
128
- blue3: "#dbe6ff";
129
- blue4: "#33b4ff";
130
- blue5: "#30a2e6";
131
- orange1: "#ff7200";
132
- orange1Darker: "#cc5b00";
133
- purple1: "#7357e8";
134
- green1: "#3ec234";
135
- green1Darker: "#38af2f";
136
- pink1: "#ff388f";
137
- red1: "#ea2700";
138
- yellow1: "#ffde9d";
139
- yellow2: "#e4a429";
140
- yellow3: "#fff5db";
141
- pinky1: "#f5c0b7";
142
- pinky2: "#e07b67";
143
- pinky3: "#ffe1db";
144
- grey1: "#737373";
145
- focusColor: "#dcaf00";
146
- scrollbarsThumb: "#737373";
147
- scrollbarsBg: "transparent";
148
- tableStripedBg: "#fafafa";
149
- toolButtonText: "#666e80";
150
- };
151
- }, import("../../../../node_modules/@stitches/react/types/config").DefaultThemeMap, {
152
- mx: (value: string | number) => {
153
- marginLeft: string | number;
154
- marginRight: string | number;
155
- };
156
- my: (value: string | number) => {
157
- marginTop: string | number;
158
- marginBottom: string | number;
159
- };
160
- px: (value: string | number) => {
161
- paddingLeft: string | number;
162
- paddingRight: string | number;
163
- };
164
- py: (value: string | number) => {
165
- paddingTop: string | number;
166
- paddingBottom: string | number;
167
- };
168
- size: (value: string | number) => {
169
- width: string | number;
170
- height: string | number;
171
- };
172
- }>>;
173
- };
174
- export { ModalButtons, };
85
+ }>>;
86
+ declare const StyledButton: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"button", {
87
+ variant?: "main";
88
+ }, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
89
+ colors: {
90
+ background: "white";
91
+ mainColor: "#008ad2";
92
+ mainColorAlt: "#006AA9";
93
+ activeBg: "#e7e7e7";
94
+ inactiveBg: "#d3d3de";
95
+ inactiveDarkBg: "#999";
96
+ toggleHandleBg: "#e0e0e0";
97
+ toggleHandleBorder: "#cdcdcd";
98
+ toggleBgDisabled: "#f0f0f0";
99
+ toggleHandleBorderDisabled: "#c29f7d";
100
+ toggleHandleBgDisabled: "#deae84";
101
+ icon: "#636363";
102
+ border: "#d5d5d5";
103
+ buttonBorder: "#bababa";
104
+ headerBorder: "#c8c8c9";
105
+ headerBg: "#efeff0";
106
+ headerText: "#484848";
107
+ text: "#323232";
108
+ text2: "#181818";
109
+ text3: "#000000";
110
+ sub: "#959595";
111
+ popText: "#666";
112
+ toolbarBorder: "#ababab";
113
+ toolbarBg: "#f8f8f8";
114
+ modalBg: "#f7f7f7";
115
+ modalButtonBg: "#f8f8f8";
116
+ modalButtonBorder: "#c2c2c2";
117
+ inputDisabledBg: "#f3f3f3";
118
+ inputDisabledText: "#959595";
119
+ choiceBg: "#ffffff";
120
+ choiceText: "#999999";
121
+ choiceActiveBg: "#f3f3f3";
122
+ choiceActiveText: "#313131";
123
+ choiceBorder: "#cfcfcf";
124
+ selectorText: "#606060";
125
+ selectorActive: "#008ad2";
126
+ blue1: "#038bf4";
127
+ blue2: "#b7d6f5";
128
+ blue3: "#dbe6ff";
129
+ blue4: "#33b4ff";
130
+ blue5: "#30a2e6";
131
+ orange1: "#ff7200";
132
+ orange1Darker: "#cc5b00";
133
+ purple1: "#7357e8";
134
+ green1: "#3ec234";
135
+ green1Darker: "#38af2f";
136
+ pink1: "#ff388f";
137
+ red1: "#ea2700";
138
+ yellow1: "#ffde9d";
139
+ yellow2: "#e4a429";
140
+ yellow3: "#fff5db";
141
+ pinky1: "#f5c0b7";
142
+ pinky2: "#e07b67";
143
+ pinky3: "#ffe1db";
144
+ grey1: "#737373";
145
+ focusColor: "#dcaf00";
146
+ scrollbarsThumb: "#737373";
147
+ scrollbarsBg: "transparent";
148
+ tableStripedBg: "#fafafa";
149
+ toolButtonText: "#666e80";
150
+ };
151
+ }, import("../../../../node_modules/@stitches/react/types/config").DefaultThemeMap, {
152
+ mx: (value: string | number) => {
153
+ marginLeft: string | number;
154
+ marginRight: string | number;
155
+ };
156
+ my: (value: string | number) => {
157
+ marginTop: string | number;
158
+ marginBottom: string | number;
159
+ };
160
+ px: (value: string | number) => {
161
+ paddingLeft: string | number;
162
+ paddingRight: string | number;
163
+ };
164
+ py: (value: string | number) => {
165
+ paddingTop: string | number;
166
+ paddingBottom: string | number;
167
+ };
168
+ size: (value: string | number) => {
169
+ width: string | number;
170
+ height: string | number;
171
+ };
172
+ }>>;
173
+ export { Container, StyledButton, };
175
174
  //# sourceMappingURL=ModalButtons.styled.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalButtons.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.styled.ts"],"names":[],"mappings":"AA2CA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEhB,CAAC;AAEH,OAAO,EACH,YAAY,GACf,CAAC"}
1
+ {"version":3,"file":"ModalButtons.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.styled.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKb,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BhB,CAAC;AAEH,OAAO,EACH,SAAS,EACT,YAAY,GACf,CAAC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModalButtons = void 0;
3
+ exports.StyledButton = exports.Container = void 0;
4
4
  const theme_1 = require("../../../theme");
5
- const fnWithProps_1 = require("../../../types/fnWithProps");
5
+ const useRipple_styled_1 = require("../../../utils/useRipple.styled");
6
6
  const Modal_styled_1 = require("./Modal.styled");
7
7
  const Container = (0, theme_1.styled)("div", {
8
8
  display: "flex",
@@ -10,7 +10,8 @@ const Container = (0, theme_1.styled)("div", {
10
10
  mx: Modal_styled_1.NEGATIVE_PADDING,
11
11
  marginBottom: Modal_styled_1.NEGATIVE_PADDING,
12
12
  });
13
- const Button = (0, theme_1.styled)("button", {
13
+ exports.Container = Container;
14
+ const StyledButton = (0, theme_1.styled)("button", useRipple_styled_1.rippleHostStyles, {
14
15
  "border": "none",
15
16
  "borderTop": "1px solid $modalButtonBorder",
16
17
  "background": "$modalButtonBg",
@@ -37,8 +38,5 @@ const Button = (0, theme_1.styled)("button", {
37
38
  },
38
39
  },
39
40
  });
40
- const ModalButtons = (0, fnWithProps_1.fnWithProps)(Container, {
41
- Button,
42
- });
43
- exports.ModalButtons = ModalButtons;
41
+ exports.StyledButton = StyledButton;
44
42
  //# sourceMappingURL=ModalButtons.styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalButtons.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.styled.ts"],"names":[],"mappings":";;;AAAA,0CAA2D;AAC3D,4DAAyD;AACzD,iDAAkD;AAElD,MAAM,SAAS,GAAG,IAAA,cAAM,EAAC,KAAK,EAAE;IAC5B,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,IAAA,yBAAiB,EAAC,GAAG,CAAC;IACjC,EAAE,EAAE,+BAAgB;IACpB,YAAY,EAAE,+BAAgB;CACjC,CAAC,CAAC;AAEH,MAAM,MAAM,GAAG,IAAA,cAAM,EAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,MAAM;IAChB,WAAW,EAAE,8BAA8B;IAC3C,YAAY,EAAE,gBAAgB;IAC9B,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,IAAA,yBAAiB,EAAC,GAAG,CAAC;IAChC,YAAY,EAAE,GAAG;IACjB,SAAS,EAAE,MAAM;IACjB,YAAY,EAAE,QAAQ;IACtB,gBAAgB,EAAE,QAAQ;IAE1B,qBAAqB,EAAE;QACnB,UAAU,EAAE,8BAA8B;KAC7C;IAED,eAAe,EAAE;QACb,sBAAsB,EAAE,IAAA,yBAAiB,EAAC,EAAE,CAAC;KAChD;IAED,cAAc,EAAE;QACZ,uBAAuB,EAAE,IAAA,yBAAiB,EAAC,EAAE,CAAC;KACjD;IAED,UAAU,EAAE;QACR,OAAO,EAAE;YACL,IAAI,EAAE;gBACF,KAAK,EAAE,YAAY;aACtB;SACJ;KACJ;CACJ,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,IAAA,yBAAW,EAAC,SAAS,EAAE;IACxC,MAAM;CACT,CAAC,CAAC;AAGC,oCAAY"}
1
+ {"version":3,"file":"ModalButtons.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.styled.ts"],"names":[],"mappings":";;;AAAA,0CAA2D;AAC3D,sEAAmE;AACnE,iDAAkD;AAElD,MAAM,SAAS,GAAG,IAAA,cAAM,EAAC,KAAK,EAAE;IAC5B,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,IAAA,yBAAiB,EAAC,GAAG,CAAC;IACjC,EAAE,EAAE,+BAAgB;IACpB,YAAY,EAAE,+BAAgB;CACjC,CAAC,CAAC;AAmCC,8BAAS;AAjCb,MAAM,YAAY,GAAG,IAAA,cAAM,EAAC,QAAQ,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKZ,CAAC;AAEH,OAAO,EACH,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,QAAQ,GACX,CAAC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FakeIcon = exports.Icon = exports.Button = exports.ListItem = exports.List = exports.Overlay = void 0;
4
4
  const theme_1 = require("../../../theme");
5
+ const useRipple_styled_1 = require("../../../utils/useRipple.styled");
5
6
  const Overlay = (0, theme_1.styled)("div", {
6
7
  position: "fixed",
7
8
  background: "#0000004c",
@@ -27,23 +28,20 @@ const ListItem = (0, theme_1.styled)("li", {
27
28
  },
28
29
  });
29
30
  exports.ListItem = ListItem;
30
- const Button = (0, theme_1.styled)("button", {
31
- "border": "none",
32
- "background": "$background",
33
- "height": (0, theme_1.dimensionsPxToRem)(116),
34
- "padding": `0 ${(0, theme_1.dimensionsPxToRem)(42)}`,
35
- "boxSizing": "border-box",
36
- "width": "100%",
37
- "minWidth": (0, theme_1.dimensionsPxToRem)(460),
38
- "textAlign": "left",
39
- "color": "$popText",
40
- "fontSize": (0, theme_1.fontPxToRem)(26),
41
- "fontWeight": "revert",
42
- "display": "flex",
43
- "alignItems": "center",
44
- "&:hover": {
45
- background: "$activeBg",
46
- },
31
+ const Button = (0, theme_1.styled)("button", useRipple_styled_1.rippleHostStyles, {
32
+ border: "none",
33
+ background: "$background",
34
+ height: (0, theme_1.dimensionsPxToRem)(116),
35
+ padding: `0 ${(0, theme_1.dimensionsPxToRem)(42)}`,
36
+ boxSizing: "border-box",
37
+ width: "100%",
38
+ minWidth: (0, theme_1.dimensionsPxToRem)(460),
39
+ textAlign: "left",
40
+ color: "$popText",
41
+ fontSize: (0, theme_1.fontPxToRem)(26),
42
+ fontWeight: "revert",
43
+ display: "flex",
44
+ alignItems: "center",
47
45
  });
48
46
  exports.Button = Button;
49
47
  const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AQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,QAAA,MAAM,SAAS,6EAUb,CAAC;AAKH,QAAA,MAAM,uBAAuB,QAAoB,CAAC;AAClD,QAAA,MAAM,qBAAqB,QAAkB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"PopOption.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/pop/PopOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,UAAU,KAAK;IACX,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,QAAA,MAAM,SAAS,6EAqBb,CAAC;AAKH,QAAA,MAAM,uBAAuB,QAAoB,CAAC;AAClD,QAAA,MAAM,qBAAqB,QAAkB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,CAAC"}
@@ -35,16 +35,21 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.PopOptionIconSelector = exports.PopOptionButtonSelector = exports.PopOption = void 0;
37
37
  const react_1 = __importStar(require("react"));
38
+ const use_forwarded_ref_1 = require("@bedrock-layout/use-forwarded-ref");
39
+ const useRipple_1 = require("../../../utils/useRipple");
38
40
  const Pop_styled_1 = require("./Pop.styled");
39
41
  const PopOption = (0, react_1.forwardRef)((props, ref) => {
40
42
  var _a;
43
+ const buttonRef = (0, use_forwarded_ref_1.useForwardedRef)(null);
44
+ const ripple = (0, useRipple_1.useRipple)({ ref: buttonRef });
41
45
  const ic = props.icon
42
46
  ? react_1.default.createElement(Pop_styled_1.Icon, null, props.icon)
43
47
  : (((_a = props.forceEmptyIcon) !== null && _a !== void 0 ? _a : true) ? react_1.default.createElement(Pop_styled_1.FakeIcon, null) : null);
44
48
  return (react_1.default.createElement(Pop_styled_1.ListItem, { ref: ref, className: props.className },
45
- react_1.default.createElement(Pop_styled_1.Button, { onClick: props.onClick },
49
+ react_1.default.createElement(Pop_styled_1.Button, { ref: buttonRef, onClick: props.onClick, onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown },
46
50
  ic,
47
- props.children)));
51
+ props.children,
52
+ ripple.ripples)));
48
53
  });
49
54
  exports.PopOption = PopOption;
50
55
  PopOption.displayName = "PopOption";
@@ -1 +1 @@
1
- {"version":3,"file":"PopOption.js","sourceRoot":"","sources":["../../../../src/components/ui/pop/PopOption.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,6CAAgE;AAUhE,MAAM,SAAS,GAAG,IAAA,kBAAU,EAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;;IAC9D,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI;QACjB,CAAC,CAAC,8BAAC,iBAAI,QAAE,KAAK,CAAC,IAAI,CAAQ;QAC3B,CAAC,CAAC,CAAC,CAAC,MAAA,KAAK,CAAC,cAAc,mCAAI,IAAI,CAAC,CAAC,CAAC,CAAC,8BAAC,qBAAQ,OAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAE7D,OAAO,CACH,8BAAC,qBAAQ,IAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1C,8BAAC,mBAAM,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO;YAAG,EAAE;YAAE,KAAK,CAAC,QAAQ,CAAU,CACtD,CACd,CAAC;AACN,CAAC,CAAC,CAAC;AAQM,8BAAS;AANlB,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AACpC,SAAS,CAAC,QAAQ,GA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;AAQM,8BAAS;AANlB,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AACpC,SAAS,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,qBAAQ,CAAC,QAAQ,EAAE,CAAC;AAE/C,MAAM,uBAAuB,GAAG,mBAAM,CAAC,QAAQ,EAAE,CAAC;AAG9B,0DAAuB;AAF3C,MAAM,qBAAqB,GAAG,iBAAI,CAAC,QAAQ,EAAE,CAAC;AAED,sDAAqB"}
@@ -1,2 +1,95 @@
1
- export { ToolButton } from "./ToolButton.styled";
1
+ import React from "react";
2
+ declare const ToolButton: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
3
+ ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
4
+ }, "css" | "inline" | "variant"> & import("../../../../node_modules/@stitches/react/types/styled-component").TransformProps<{
5
+ inline?: boolean | "true";
6
+ variant?: "secondary" | "secondaryOnLight";
7
+ }, {}> & {
8
+ css?: import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
9
+ colors: {
10
+ background: "white";
11
+ mainColor: "#008ad2";
12
+ mainColorAlt: "#006AA9";
13
+ activeBg: "#e7e7e7";
14
+ inactiveBg: "#d3d3de";
15
+ inactiveDarkBg: "#999";
16
+ toggleHandleBg: "#e0e0e0";
17
+ toggleHandleBorder: "#cdcdcd";
18
+ toggleBgDisabled: "#f0f0f0";
19
+ toggleHandleBorderDisabled: "#c29f7d";
20
+ toggleHandleBgDisabled: "#deae84";
21
+ icon: "#636363";
22
+ border: "#d5d5d5";
23
+ buttonBorder: "#bababa";
24
+ headerBorder: "#c8c8c9";
25
+ headerBg: "#efeff0";
26
+ headerText: "#484848";
27
+ text: "#323232";
28
+ text2: "#181818";
29
+ text3: "#000000";
30
+ sub: "#959595";
31
+ popText: "#666";
32
+ toolbarBorder: "#ababab";
33
+ toolbarBg: "#f8f8f8";
34
+ modalBg: "#f7f7f7";
35
+ modalButtonBg: "#f8f8f8";
36
+ modalButtonBorder: "#c2c2c2";
37
+ inputDisabledBg: "#f3f3f3";
38
+ inputDisabledText: "#959595";
39
+ choiceBg: "#ffffff";
40
+ choiceText: "#999999";
41
+ choiceActiveBg: "#f3f3f3";
42
+ choiceActiveText: "#313131";
43
+ choiceBorder: "#cfcfcf";
44
+ selectorText: "#606060";
45
+ selectorActive: "#008ad2";
46
+ blue1: "#038bf4";
47
+ blue2: "#b7d6f5";
48
+ blue3: "#dbe6ff";
49
+ blue4: "#33b4ff";
50
+ blue5: "#30a2e6";
51
+ orange1: "#ff7200";
52
+ orange1Darker: "#cc5b00";
53
+ purple1: "#7357e8";
54
+ green1: "#3ec234";
55
+ green1Darker: "#38af2f";
56
+ pink1: "#ff388f";
57
+ red1: "#ea2700";
58
+ yellow1: "#ffde9d";
59
+ yellow2: "#e4a429";
60
+ yellow3: "#fff5db";
61
+ pinky1: "#f5c0b7";
62
+ pinky2: "#e07b67";
63
+ pinky3: "#ffe1db";
64
+ grey1: "#737373";
65
+ focusColor: "#dcaf00";
66
+ scrollbarsThumb: "#737373";
67
+ scrollbarsBg: "transparent";
68
+ tableStripedBg: "#fafafa";
69
+ toolButtonText: "#666e80";
70
+ };
71
+ }, import("../../../../node_modules/@stitches/react/types/config").DefaultThemeMap, {
72
+ mx: (value: string | number) => {
73
+ marginLeft: string | number;
74
+ marginRight: string | number;
75
+ };
76
+ my: (value: string | number) => {
77
+ marginTop: string | number;
78
+ marginBottom: string | number;
79
+ };
80
+ px: (value: string | number) => {
81
+ paddingLeft: string | number;
82
+ paddingRight: string | number;
83
+ };
84
+ py: (value: string | number) => {
85
+ paddingTop: string | number;
86
+ paddingBottom: string | number;
87
+ };
88
+ size: (value: string | number) => {
89
+ width: string | number;
90
+ height: string | number;
91
+ };
92
+ }>;
93
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
94
+ export { ToolButton, };
2
95
  //# sourceMappingURL=ToolButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolButton.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"ToolButton.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAS1C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAgBd,CAAC;AAKH,OAAO,EACH,UAAU,GACb,CAAC"}
@@ -1,6 +1,63 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __rest = (this && this.__rest) || function (s, e) {
36
+ var t = {};
37
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
38
+ t[p] = s[p];
39
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
40
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
41
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
42
+ t[p[i]] = s[p[i]];
43
+ }
44
+ return t;
45
+ };
2
46
  Object.defineProperty(exports, "__esModule", { value: true });
3
47
  exports.ToolButton = void 0;
4
- var ToolButton_styled_1 = require("./ToolButton.styled");
5
- Object.defineProperty(exports, "ToolButton", { enumerable: true, get: function () { return ToolButton_styled_1.ToolButton; } });
48
+ const react_1 = __importStar(require("react"));
49
+ const use_forwarded_ref_1 = require("@bedrock-layout/use-forwarded-ref");
50
+ const useRipple_1 = require("../../../utils/useRipple");
51
+ const ToolButton_styled_1 = require("./ToolButton.styled");
52
+ const ToolButton = (0, react_1.forwardRef)((props, ref) => {
53
+ const { children, onPointerDown, onKeyDown } = props, rest = __rest(props, ["children", "onPointerDown", "onKeyDown"]);
54
+ const innerRef = (0, use_forwarded_ref_1.useForwardedRef)(ref);
55
+ const ripple = (0, useRipple_1.useRipple)({ ref: innerRef, onPointerDown, onKeyDown });
56
+ return (react_1.default.createElement(ToolButton_styled_1.StyledToolButton, Object.assign({ ref: innerRef, onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown }, rest),
57
+ children,
58
+ ripple.ripples));
59
+ });
60
+ exports.ToolButton = ToolButton;
61
+ ToolButton.displayName = "ToolButton";
62
+ ToolButton.toString = () => ToolButton_styled_1.StyledToolButton.toString();
6
63
  //# sourceMappingURL=ToolButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolButton.js","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.ts"],"names":[],"mappings":";;;AAAA,yDAAiD;AAAxC,+GAAA,UAAU,OAAA"}
1
+ {"version":3,"file":"ToolButton.js","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,yEAAoE;AAEpE,wDAAqD;AACrD,2DAAuD;AAIvD,MAAM,UAAU,GAAG,IAAA,kBAAU,EAA2B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACnE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAAvD,0CAA+C,CAAQ,CAAC;IAC9D,MAAM,QAAQ,GAAG,IAAA,mCAAe,EAAC,GAAG,CAAC,CAAC;IACtC,MAAM,MAAM,GAAG,IAAA,qBAAS,EAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,CAAC;IAEtE,OAAO,CACH,8BAAC,oCAAgB,kBACb,GAAG,EAAE,QAAQ,EACb,aAAa,EAAE,MAAM,CAAC,aAAa,EACnC,SAAS,EAAE,MAAM,CAAC,SAAS,IACvB,IAAI;QAEP,QAAQ;QACR,MAAM,CAAC,OAAO,CACA,CACtB,CAAC;AACN,CAAC,CAAC,CAAC;AAMC,gCAAU;AAJd,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AACtC,UAAU,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,oCAAgB,CAAC,QAAQ,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- declare const ToolButton: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"button", {
1
+ declare const StyledToolButton: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"button", {
2
2
  inline?: boolean | "true";
3
3
  variant?: "secondary" | "secondaryOnLight";
4
4
  }, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
@@ -86,5 +86,5 @@ declare const ToolButton: import("../../../../node_modules/@stitches/react/types
86
86
  height: string | number;
87
87
  };
88
88
  }>>;
89
- export { ToolButton, };
89
+ export { StyledToolButton, };
90
90
  //# sourceMappingURL=ToolButton.styled.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolButton.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.styled.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8Cd,CAAC;AAEH,OAAO,EACH,UAAU,GACb,CAAC"}
1
+ {"version":3,"file":"ToolButton.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.styled.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCpB,CAAC;AAEH,OAAO,EACH,gBAAgB,GACnB,CAAC"}
@@ -1,24 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ToolButton = void 0;
3
+ exports.StyledToolButton = void 0;
4
4
  const theme_1 = require("../../../theme");
5
- const ToolButton = (0, theme_1.styled)("button", {
6
- "height": (0, theme_1.dimensionsPxToRem)(79),
7
- "borderRadius": (0, theme_1.dimensionsPxToRem)(10),
8
- "fontWeight": "bold",
9
- "fontSize": (0, theme_1.fontPxToRem)(23),
10
- "display": "flex",
11
- "alignItems": "center",
12
- "justifyContent": "center",
13
- "paddingInline": (0, theme_1.dimensionsPxToRem)(16),
14
- "background": "white",
15
- "boxSizing": "border-box",
16
- "border": `${(0, theme_1.dimensionsPxToRem)(6)} solid transparent`,
17
- "color": "$toolButtonText",
18
- "&:hover": {
19
- background: "#ffffffcc",
20
- },
21
- "variants": {
5
+ const useRipple_styled_1 = require("../../../utils/useRipple.styled");
6
+ const StyledToolButton = (0, theme_1.styled)("button", useRipple_styled_1.rippleHostStyles, {
7
+ height: (0, theme_1.dimensionsPxToRem)(79),
8
+ borderRadius: (0, theme_1.dimensionsPxToRem)(10),
9
+ fontWeight: "bold",
10
+ fontSize: (0, theme_1.fontPxToRem)(23),
11
+ display: "flex",
12
+ alignItems: "center",
13
+ justifyContent: "center",
14
+ paddingInline: (0, theme_1.dimensionsPxToRem)(16),
15
+ background: "white",
16
+ boxSizing: "border-box",
17
+ border: `${(0, theme_1.dimensionsPxToRem)(6)} solid transparent`,
18
+ color: "$toolButtonText",
19
+ variants: {
22
20
  inline: {
23
21
  true: {
24
22
  width: "auto",
@@ -27,12 +25,9 @@ const ToolButton = (0, theme_1.styled)("button", {
27
25
  },
28
26
  variant: {
29
27
  secondary: {
30
- "border": `${(0, theme_1.dimensionsPxToRem)(6)} solid #ffffff42`,
31
- "background": "none",
32
- "&:hover": {
33
- background: "#ffffff22",
34
- },
35
- "color": "white",
28
+ border: `${(0, theme_1.dimensionsPxToRem)(6)} solid #ffffff42`,
29
+ background: "none",
30
+ color: "white",
36
31
  },
37
32
  secondaryOnLight: {
38
33
  "border": `${(0, theme_1.dimensionsPxToRem)(6)} solid $border`,
@@ -45,5 +40,5 @@ const ToolButton = (0, theme_1.styled)("button", {
45
40
  },
46
41
  },
47
42
  });
48
- exports.ToolButton = ToolButton;
43
+ exports.StyledToolButton = StyledToolButton;
49
44
  //# sourceMappingURL=ToolButton.styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolButton.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.styled.ts"],"names":[],"mappings":";;;AAAA,0CAAwE;AAKxE,MAAM,UAAU,GAAG,IAAA,cAAM,EAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,IAAA,yBAAiB,EAAC,EAAE,CAAC;IAC/B,cAAc,EAAE,IAAA,yBAAiB,EAAC,EAAE,CAAC;IACrC,YAAY,EAAE,MAAM;IACpB,UAAU,EAAE,IAAA,mBAAW,EAAC,EAAE,CAAC;IAC3B,SAAS,EAAE,MAAM;IACjB,YAAY,EAAE,QAAQ;IACtB,gBAAgB,EAAE,QAAQ;IAC1B,eAAe,EAAE,IAAA,yBAAiB,EAAC,EAAE,CAAC;IACtC,YAAY,EAAE,OAAO;IACrB,WAAW,EAAE,YAAY;IACzB,QAAQ,EAAE,GAAG,IAAA,yBAAiB,EAAC,CAAC,CAAC,oBAAoB;IAErD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE;QACP,UAAU,EAAE,WAAW;KAC1B;IAED,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,IAAI,EAAE;gBACF,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,aAAa;aACzB;SACJ;QACD,OAAO,EAAE;YACL,SAAS,EAAE;gBACP,QAAQ,EAAE,GAAG,IAAA,yBAAiB,EAAC,CAAC,CAAC,kBAAkB;gBACnD,YAAY,EAAE,MAAM;gBAEpB,SAAS,EAAE;oBACP,UAAU,EAAE,WAAW;iBAC1B;gBACD,OAAO,EAAE,OAAO;aACnB;YACD,gBAAgB,EAAE;gBACd,QAAQ,EAAE,GAAG,IAAA,yBAAiB,EAAC,CAAC,CAAC,gBAAgB;gBACjD,YAAY,EAAE,MAAM;gBACpB,OAAO,EAAE,OAAO;gBAEhB,SAAS,EAAE;oBACP,WAAW,EAAE,eAAe;iBAC/B;aACJ;SACJ;KACJ;CACJ,CAAC,CAAC;AAGC,gCAAU"}
1
+ {"version":3,"file":"ToolButton.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/toolButton/ToolButton.styled.ts"],"names":[],"mappings":";;;AAAA,0CAAwE;AACxE,sEAAmE;AAKnE,MAAM,gBAAgB,GAAG,IAAA,cAAM,EAAC,QAAQ,EAAE,mCAAgB,EAAE;IACxD,MAAM,EAAE,IAAA,yBAAiB,EAAC,EAAE,CAAC;IAC7B,YAAY,EAAE,IAAA,yBAAiB,EAAC,EAAE,CAAC;IACnC,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,IAAA,mBAAW,EAAC,EAAE,CAAC;IACzB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;IACxB,aAAa,EAAE,IAAA,yBAAiB,EAAC,EAAE,CAAC;IACpC,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE,YAAY;IACvB,MAAM,EAAE,GAAG,IAAA,yBAAiB,EAAC,CAAC,CAAC,oBAAoB;IACnD,KAAK,EAAE,iBAAiB;IAExB,QAAQ,EAAE;QACN,MAAM,EAAE;YACJ,IAAI,EAAE;gBACF,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,aAAa;aACzB;SACJ;QACD,OAAO,EAAE;YACL,SAAS,EAAE;gBACP,MAAM,EAAE,GAAG,IAAA,yBAAiB,EAAC,CAAC,CAAC,kBAAkB;gBACjD,UAAU,EAAE,MAAM;gBAClB,KAAK,EAAE,OAAO;aACjB;YACD,gBAAgB,EAAE;gBACd,QAAQ,EAAE,GAAG,IAAA,yBAAiB,EAAC,CAAC,CAAC,gBAAgB;gBACjD,YAAY,EAAE,MAAM;gBACpB,OAAO,EAAE,OAAO;gBAGhB,SAAS,EAAE;oBACP,WAAW,EAAE,eAAe;iBAC/B;aACJ;SACJ;KACJ;CACJ,CAAC,CAAC;AAGC,4CAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"theme.css-global.d.ts","sourceRoot":"","sources":["../src/theme.css-global.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,kBAAkB,cAYtB,CAAC;AAEH,OAAO,EACH,kBAAkB,GACrB,CAAC"}
1
+ {"version":3,"file":"theme.css-global.d.ts","sourceRoot":"","sources":["../src/theme.css-global.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,kBAAkB,cAWtB,CAAC;AAEH,OAAO,EACH,kBAAkB,GACrB,CAAC"}
@@ -9,7 +9,6 @@ const injectGlobalStyles = (0, theme_1.globalCss)({
9
9
  "*:focus-visible:focus-visible": {
10
10
  outline: "none !important",
11
11
  borderColor: "$focusColor",
12
- backgroundColor: "var(--focus-bg-set)",
13
12
  },
14
13
  "body": {
15
14
  color: "$text",