react-miui 0.35.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 (290) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/components/layout/header/HeaderIconAction.d.ts.map +1 -1
  3. package/dist/components/layout/header/HeaderIconAction.js +13 -3
  4. package/dist/components/layout/header/HeaderIconAction.js.map +1 -1
  5. package/dist/components/layout/header/HeaderIconAction.styled.d.ts.map +1 -1
  6. package/dist/components/layout/header/HeaderIconAction.styled.js +11 -17
  7. package/dist/components/layout/header/HeaderIconAction.styled.js.map +1 -1
  8. package/dist/components/layout/list/Item.d.ts.map +1 -1
  9. package/dist/components/layout/list/Item.js +17 -7
  10. package/dist/components/layout/list/Item.js.map +1 -1
  11. package/dist/components/layout/list/Item.styled.d.ts.map +1 -1
  12. package/dist/components/layout/list/Item.styled.js +2 -1
  13. package/dist/components/layout/list/Item.styled.js.map +1 -1
  14. package/dist/components/ui/button/Button.d.ts +94 -1
  15. package/dist/components/ui/button/Button.d.ts.map +1 -1
  16. package/dist/components/ui/button/Button.js +59 -2
  17. package/dist/components/ui/button/Button.js.map +1 -1
  18. package/dist/components/ui/button/Button.styled.d.ts +2 -2
  19. package/dist/components/ui/button/Button.styled.d.ts.map +1 -1
  20. package/dist/components/ui/button/Button.styled.js +4 -3
  21. package/dist/components/ui/button/Button.styled.js.map +1 -1
  22. package/dist/components/ui/directionPad/Button.d.ts.map +1 -1
  23. package/dist/components/ui/directionPad/Button.js +7 -2
  24. package/dist/components/ui/directionPad/Button.js.map +1 -1
  25. package/dist/components/ui/directionPad/Button.styled.d.ts.map +1 -1
  26. package/dist/components/ui/directionPad/Button.styled.js +2 -1
  27. package/dist/components/ui/directionPad/Button.styled.js.map +1 -1
  28. package/dist/components/ui/directionPad/Middle.d.ts.map +1 -1
  29. package/dist/components/ui/directionPad/Middle.js +7 -1
  30. package/dist/components/ui/directionPad/Middle.js.map +1 -1
  31. package/dist/components/ui/directionPad/Middle.styled.d.ts.map +1 -1
  32. package/dist/components/ui/directionPad/Middle.styled.js +2 -1
  33. package/dist/components/ui/directionPad/Middle.styled.js.map +1 -1
  34. package/dist/components/ui/modal/ModalButtons.d.ts +179 -1
  35. package/dist/components/ui/modal/ModalButtons.d.ts.map +1 -1
  36. package/dist/components/ui/modal/ModalButtons.js +63 -2
  37. package/dist/components/ui/modal/ModalButtons.js.map +1 -1
  38. package/dist/components/ui/modal/ModalButtons.styled.d.ts +90 -91
  39. package/dist/components/ui/modal/ModalButtons.styled.d.ts.map +1 -1
  40. package/dist/components/ui/modal/ModalButtons.styled.js +5 -7
  41. package/dist/components/ui/modal/ModalButtons.styled.js.map +1 -1
  42. package/dist/components/ui/pop/Pop.styled.d.ts.map +1 -1
  43. package/dist/components/ui/pop/Pop.styled.js +15 -17
  44. package/dist/components/ui/pop/Pop.styled.js.map +1 -1
  45. package/dist/components/ui/pop/PopOption.d.ts.map +1 -1
  46. package/dist/components/ui/pop/PopOption.js +7 -2
  47. package/dist/components/ui/pop/PopOption.js.map +1 -1
  48. package/dist/components/ui/toolButton/ToolButton.d.ts +94 -1
  49. package/dist/components/ui/toolButton/ToolButton.d.ts.map +1 -1
  50. package/dist/components/ui/toolButton/ToolButton.js +59 -2
  51. package/dist/components/ui/toolButton/ToolButton.js.map +1 -1
  52. package/dist/components/ui/toolButton/ToolButton.styled.d.ts +2 -2
  53. package/dist/components/ui/toolButton/ToolButton.styled.d.ts.map +1 -1
  54. package/dist/components/ui/toolButton/ToolButton.styled.js +20 -25
  55. package/dist/components/ui/toolButton/ToolButton.styled.js.map +1 -1
  56. package/dist/utils/useRipple.d.ts +15 -0
  57. package/dist/utils/useRipple.d.ts.map +1 -0
  58. package/dist/utils/useRipple.js +120 -0
  59. package/dist/utils/useRipple.js.map +1 -0
  60. package/dist/utils/useRipple.styled.d.ts +28 -0
  61. package/dist/utils/useRipple.styled.d.ts.map +1 -0
  62. package/dist/utils/useRipple.styled.js +36 -0
  63. package/dist/utils/useRipple.styled.js.map +1 -0
  64. package/docs/classes/index.Pop.html +7 -7
  65. package/docs/documents/Test.html +2 -2
  66. package/docs/enums/index.ICON.html +2 -2
  67. package/docs/functions/index.Action.html +3 -3
  68. package/docs/functions/index.Button.html +3 -9
  69. package/docs/functions/index.Card.html +2 -2
  70. package/docs/functions/index.Checkbox.html +3 -3
  71. package/docs/functions/index.Choice.html +2 -2
  72. package/docs/functions/index.ColorPicker.html +3 -3
  73. package/docs/functions/index.CoveringLoader.html +3 -3
  74. package/docs/functions/index.DirectionPad.html +2 -2
  75. package/docs/functions/index.Drawer.html +2 -2
  76. package/docs/functions/index.EqualActions.html +2 -2
  77. package/docs/functions/index.FullLoader.html +3 -3
  78. package/docs/functions/index.Gap.html +2 -2
  79. package/docs/functions/index.HandleEsc.html +3 -3
  80. package/docs/functions/index.Header.html +3 -3
  81. package/docs/functions/index.HeaderIconAction.html +3 -3
  82. package/docs/functions/index.Icon-1.html +2 -2
  83. package/docs/functions/index.If.html +3 -3
  84. package/docs/functions/index.Input.html +1 -1
  85. package/docs/functions/index.KeyValue.html +2 -2
  86. package/docs/functions/index.Label.html +2 -2
  87. package/docs/functions/index.Line.html +3 -3
  88. package/docs/functions/index.List.html +2 -2
  89. package/docs/functions/index.Loader.html +3 -3
  90. package/docs/functions/index.Loading.html +3 -3
  91. package/docs/functions/index.Message.html +3 -3
  92. package/docs/functions/index.Modal.html +2 -2
  93. package/docs/functions/index.ModalButtons.html +3 -3
  94. package/docs/functions/index.PopLoader.html +3 -3
  95. package/docs/functions/index.PopOption.html +2 -2
  96. package/docs/functions/index.Progress.html +2 -2
  97. package/docs/functions/index.SearchContainer.html +2 -2
  98. package/docs/functions/index.Section.html +4 -4
  99. package/docs/functions/index.Select.html +2 -2
  100. package/docs/functions/index.Selector.html +2 -2
  101. package/docs/functions/index.Spacer.html +2 -2
  102. package/docs/functions/index.Stats.html +2 -2
  103. package/docs/functions/index.StickyHeader.html +4 -4
  104. package/docs/functions/index.Table.html +2 -2
  105. package/docs/functions/index.TextArea.html +2 -2
  106. package/docs/functions/index.TimePicker.html +2 -2
  107. package/docs/functions/index.ToasterProvider.html +3 -3
  108. package/docs/functions/index.Toggle.html +3 -3
  109. package/docs/functions/index.ToolButton.html +3 -9
  110. package/docs/functions/index.Tooltip.html +3 -3
  111. package/docs/functions/index.TooltipProvider.html +2 -2
  112. package/docs/functions/index.borderPxToRem.html +1 -1
  113. package/docs/functions/index.createTheme.html +1 -1
  114. package/docs/functions/index.css.html +1 -1
  115. package/docs/functions/index.dimensionsPxToRem.html +1 -1
  116. package/docs/functions/index.fontPxToRem.html +1 -1
  117. package/docs/functions/index.getCssText.html +1 -1
  118. package/docs/functions/index.globalCss.html +2 -2
  119. package/docs/functions/index.injectGlobalStyles.html +1 -1
  120. package/docs/functions/index.keyframes.html +1 -1
  121. package/docs/functions/index.pxToRem.html +1 -1
  122. package/docs/functions/index.styled.html +1 -1
  123. package/docs/functions/index.toast.html +2 -2
  124. package/docs/functions/index.useToaster.html +1 -1
  125. package/docs/index.html +2 -2
  126. package/docs/interfaces/index.IconProps.html +2 -2
  127. package/docs/interfaces/index.InputCustomProps.html +3 -3
  128. package/docs/interfaces/index.LoaderProps.html +6 -6
  129. package/docs/interfaces/index.StickyHeaderProps.html +4 -4
  130. package/docs/interfaces/index.ToasterProviderProps.html +3 -3
  131. package/docs/interfaces/index.TooltipProps.html +14 -14
  132. package/docs/interfaces/index.TooltipProviderProps.html +5 -5
  133. package/docs/modules/index.html +1 -1
  134. package/docs/modules.html +1 -1
  135. package/docs/types/index.ActionProps.html +1 -1
  136. package/docs/types/index.CardProps.html +1 -1
  137. package/docs/types/index.CheckboxProps.html +2 -2
  138. package/docs/types/index.ChoiceProps.html +1 -1
  139. package/docs/types/index.ColorPickerProps.html +1 -1
  140. package/docs/types/index.DirectionPadProps.html +1 -1
  141. package/docs/types/index.DrawerFrom.html +1 -1
  142. package/docs/types/index.DrawerProps.html +2 -2
  143. package/docs/types/index.EqualActionsProps.html +1 -1
  144. package/docs/types/index.HeaderProps.html +1 -1
  145. package/docs/types/index.InputProps.html +1 -1
  146. package/docs/types/index.KeyValueProps.html +1 -1
  147. package/docs/types/index.LabelProps.html +1 -1
  148. package/docs/types/index.OverwriteProps.html +1 -1
  149. package/docs/types/index.ProgressProps.html +2 -2
  150. package/docs/types/index.SelectProps.html +1 -1
  151. package/docs/types/index.SelectorProps.html +1 -1
  152. package/docs/types/index.Stat.html +1 -1
  153. package/docs/types/index.StatsProps.html +1 -1
  154. package/docs/types/index.TextAreaProps.html +1 -1
  155. package/docs/types/index.ThemeCSS.html +1 -1
  156. package/docs/types/index.TimePickerProps.html +1 -1
  157. package/docs/types/index.ToggleProps.html +2 -2
  158. package/docs/variables/index.ActionBadgeSelector.html +1 -1
  159. package/docs/variables/index.ActionCircleSelector.html +1 -1
  160. package/docs/variables/index.CheckboxCheckmarkWrapperSelector.html +1 -1
  161. package/docs/variables/index.CheckboxTextLabelSelector.html +1 -1
  162. package/docs/variables/index.ChoiceItemSelector.html +1 -1
  163. package/docs/variables/index.ColorPickerColorDisplaySelector.html +1 -1
  164. package/docs/variables/index.DirectionPadButtonDotSelector.html +1 -1
  165. package/docs/variables/index.DirectionPadButtonSelector.html +1 -1
  166. package/docs/variables/index.DirectionPadLineSelector.html +1 -1
  167. package/docs/variables/index.DirectionPadMiddleSelector.html +1 -1
  168. package/docs/variables/index.DrawerContentSelector.html +1 -1
  169. package/docs/variables/index.HeaderAfterSelector.html +1 -1
  170. package/docs/variables/index.HeaderBeforeSelector.html +1 -1
  171. package/docs/variables/index.HeaderContentsSelector.html +1 -1
  172. package/docs/variables/index.HeaderIconActionIconSelector.html +1 -1
  173. package/docs/variables/index.InputContainerSelector.html +1 -1
  174. package/docs/variables/index.InputInputSelector.html +1 -1
  175. package/docs/variables/index.InputLabelSelector.html +1 -1
  176. package/docs/variables/index.InputPrefixSelector.html +1 -1
  177. package/docs/variables/index.InputSuffixSelector.html +1 -1
  178. package/docs/variables/index.KeyValueIconSelector.html +1 -1
  179. package/docs/variables/index.KeyValueItemSelector.html +1 -1
  180. package/docs/variables/index.KeyValueKeySelector.html +1 -1
  181. package/docs/variables/index.KeyValuePairSelector.html +1 -1
  182. package/docs/variables/index.KeyValueValueSelector.html +1 -1
  183. package/docs/variables/index.LabelTextSelector.html +1 -1
  184. package/docs/variables/index.ListItemInnerContainerClassNameSelector.html +1 -1
  185. package/docs/variables/index.ModalContainerSelector.html +1 -1
  186. package/docs/variables/index.ModalRemovePaddingSelector.html +1 -1
  187. package/docs/variables/index.ModalTitleSelector.html +1 -1
  188. package/docs/variables/index.PopListSelector.html +1 -1
  189. package/docs/variables/index.PopOptionButtonSelector.html +1 -1
  190. package/docs/variables/index.PopOptionIconSelector.html +1 -1
  191. package/docs/variables/index.PopOverlaySelector.html +1 -1
  192. package/docs/variables/index.ProgressBackgroundSelector.html +1 -1
  193. package/docs/variables/index.ProgressValueSelector.html +1 -1
  194. package/docs/variables/index.SelectorItemSelector.html +1 -1
  195. package/docs/variables/index.StatsItemSelector.html +1 -1
  196. package/docs/variables/index.StatsLabelSelector.html +1 -1
  197. package/docs/variables/index.StatsSeparatorSelector.html +1 -1
  198. package/docs/variables/index.StatsValueSelector.html +1 -1
  199. package/docs/variables/index.TextAreaLabelSelector.html +1 -1
  200. package/docs/variables/index.TextAreaTextAreaSelector.html +1 -1
  201. package/docs/variables/index.TextAreaWrapperSelector.html +1 -1
  202. package/docs/variables/index.ToggleStyledToggleSelector.html +1 -1
  203. package/docs/variables/index.TooltipContentSelector.html +1 -1
  204. package/docs/variables/index.config.html +1 -1
  205. package/docs/variables/index.cssReset.html +2 -2
  206. package/docs/variables/index.darkTheme.html +1 -1
  207. package/docs/variables/index.miuiScrollbars.html +1 -1
  208. package/docs/variables/index.theme.html +1 -1
  209. package/esm/components/layout/header/HeaderIconAction.d.ts.map +1 -1
  210. package/esm/components/layout/header/HeaderIconAction.js +13 -3
  211. package/esm/components/layout/header/HeaderIconAction.js.map +1 -1
  212. package/esm/components/layout/header/HeaderIconAction.styled.d.ts.map +1 -1
  213. package/esm/components/layout/header/HeaderIconAction.styled.js +11 -17
  214. package/esm/components/layout/header/HeaderIconAction.styled.js.map +1 -1
  215. package/esm/components/layout/list/Item.d.ts.map +1 -1
  216. package/esm/components/layout/list/Item.js +18 -8
  217. package/esm/components/layout/list/Item.js.map +1 -1
  218. package/esm/components/layout/list/Item.styled.d.ts.map +1 -1
  219. package/esm/components/layout/list/Item.styled.js +2 -1
  220. package/esm/components/layout/list/Item.styled.js.map +1 -1
  221. package/esm/components/ui/button/Button.d.ts +94 -1
  222. package/esm/components/ui/button/Button.d.ts.map +1 -1
  223. package/esm/components/ui/button/Button.js +15 -1
  224. package/esm/components/ui/button/Button.js.map +1 -1
  225. package/esm/components/ui/button/Button.styled.d.ts +2 -2
  226. package/esm/components/ui/button/Button.styled.d.ts.map +1 -1
  227. package/esm/components/ui/button/Button.styled.js +3 -2
  228. package/esm/components/ui/button/Button.styled.js.map +1 -1
  229. package/esm/components/ui/directionPad/Button.d.ts.map +1 -1
  230. package/esm/components/ui/directionPad/Button.js +7 -2
  231. package/esm/components/ui/directionPad/Button.js.map +1 -1
  232. package/esm/components/ui/directionPad/Button.styled.d.ts.map +1 -1
  233. package/esm/components/ui/directionPad/Button.styled.js +2 -1
  234. package/esm/components/ui/directionPad/Button.styled.js.map +1 -1
  235. package/esm/components/ui/directionPad/Middle.d.ts.map +1 -1
  236. package/esm/components/ui/directionPad/Middle.js +7 -1
  237. package/esm/components/ui/directionPad/Middle.js.map +1 -1
  238. package/esm/components/ui/directionPad/Middle.styled.d.ts.map +1 -1
  239. package/esm/components/ui/directionPad/Middle.styled.js +2 -1
  240. package/esm/components/ui/directionPad/Middle.styled.js.map +1 -1
  241. package/esm/components/ui/modal/ModalButtons.d.ts +179 -1
  242. package/esm/components/ui/modal/ModalButtons.d.ts.map +1 -1
  243. package/esm/components/ui/modal/ModalButtons.js +19 -1
  244. package/esm/components/ui/modal/ModalButtons.js.map +1 -1
  245. package/esm/components/ui/modal/ModalButtons.styled.d.ts +90 -91
  246. package/esm/components/ui/modal/ModalButtons.styled.d.ts.map +1 -1
  247. package/esm/components/ui/modal/ModalButtons.styled.js +3 -6
  248. package/esm/components/ui/modal/ModalButtons.styled.js.map +1 -1
  249. package/esm/components/ui/pop/Pop.styled.d.ts.map +1 -1
  250. package/esm/components/ui/pop/Pop.styled.js +15 -17
  251. package/esm/components/ui/pop/Pop.styled.js.map +1 -1
  252. package/esm/components/ui/pop/PopOption.d.ts.map +1 -1
  253. package/esm/components/ui/pop/PopOption.js +7 -2
  254. package/esm/components/ui/pop/PopOption.js.map +1 -1
  255. package/esm/components/ui/toolButton/ToolButton.d.ts +94 -1
  256. package/esm/components/ui/toolButton/ToolButton.d.ts.map +1 -1
  257. package/esm/components/ui/toolButton/ToolButton.js +15 -1
  258. package/esm/components/ui/toolButton/ToolButton.js.map +1 -1
  259. package/esm/components/ui/toolButton/ToolButton.styled.d.ts +2 -2
  260. package/esm/components/ui/toolButton/ToolButton.styled.d.ts.map +1 -1
  261. package/esm/components/ui/toolButton/ToolButton.styled.js +19 -24
  262. package/esm/components/ui/toolButton/ToolButton.styled.js.map +1 -1
  263. package/esm/utils/useRipple.d.ts +15 -0
  264. package/esm/utils/useRipple.d.ts.map +1 -0
  265. package/esm/utils/useRipple.js +84 -0
  266. package/esm/utils/useRipple.js.map +1 -0
  267. package/esm/utils/useRipple.styled.d.ts +28 -0
  268. package/esm/utils/useRipple.styled.d.ts.map +1 -0
  269. package/esm/utils/useRipple.styled.js +33 -0
  270. package/esm/utils/useRipple.styled.js.map +1 -0
  271. package/package.json +1 -1
  272. package/src/components/layout/header/HeaderIconAction.styled.ts +11 -18
  273. package/src/components/layout/header/HeaderIconAction.tsx +32 -5
  274. package/src/components/layout/list/Item.styled.ts +2 -1
  275. package/src/components/layout/list/Item.tsx +38 -5
  276. package/src/components/ui/button/Button.styled.ts +3 -2
  277. package/src/components/ui/button/Button.tsx +33 -1
  278. package/src/components/ui/directionPad/Button.styled.ts +2 -1
  279. package/src/components/ui/directionPad/Button.tsx +13 -1
  280. package/src/components/ui/directionPad/Middle.styled.ts +2 -1
  281. package/src/components/ui/directionPad/Middle.tsx +13 -1
  282. package/src/components/ui/modal/ModalButtons.styled.ts +4 -7
  283. package/src/components/ui/modal/ModalButtons.tsx +38 -1
  284. package/src/components/ui/pop/Pop.styled.ts +15 -18
  285. package/src/components/ui/pop/PopOption.tsx +15 -1
  286. package/src/components/ui/toolButton/ToolButton.styled.ts +20 -26
  287. package/src/components/ui/toolButton/ToolButton.tsx +33 -0
  288. package/src/utils/useRipple.styled.ts +56 -0
  289. package/src/utils/useRipple.tsx +139 -0
  290. package/src/components/ui/toolButton/ToolButton.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
3
3
  The format is based on [EZEZ Changelog](https://ezez.dev/guidelines/changelog/)
4
4
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [0.36.0] - 2026-05-24
7
+ ### Added
8
+ - ripple effect on click on most clickable elements (fallback to color on reduced motion preference)
9
+
6
10
  ## [0.35.0] - 2026-05-23
7
11
  ### Added
8
12
  - `clock` icon
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderIconAction.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/header/HeaderIconAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAI7C,UAAU,SAAS;IACf,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,UAAU,KAAK;IAIX,IAAI,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;I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AE,gBAAgB,EAAE,4BAA4B,EAAE,CAAC"}
@@ -46,9 +46,13 @@ var __rest = (this && this.__rest) || function (s, e) {
46
46
  Object.defineProperty(exports, "__esModule", { value: true });
47
47
  exports.HeaderIconActionIconSelector = exports.HeaderIconAction = void 0;
48
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");
49
51
  const HeaderIconAction_styled_1 = require("./HeaderIconAction.styled");
50
52
  const HeaderIconAction = (0, react_1.forwardRef)((props, ref) => {
51
53
  const { icon, href, to, Link, className } = props, restProps = __rest(props, ["icon", "href", "to", "Link", "className"]);
54
+ const innerRef = (0, use_forwarded_ref_1.useForwardedRef)(ref);
55
+ const ripple = (0, useRipple_1.useRipple)({ ref: innerRef });
52
56
  let content = icon;
53
57
  if (typeof icon === "string") {
54
58
  content = react_1.default.createElement(HeaderIconAction_styled_1.StyledIcon, { name: icon });
@@ -58,12 +62,18 @@ const HeaderIconAction = (0, react_1.forwardRef)((props, ref) => {
58
62
  throw new TypeError("`to` prop given without `Link` component");
59
63
  }
60
64
  return (react_1.default.createElement(Link, Object.assign({ href: to }, restProps),
61
- react_1.default.createElement(HeaderIconAction_styled_1.A, { ref: ref, className: props.className }, content)));
65
+ react_1.default.createElement(HeaderIconAction_styled_1.A, { ref: innerRef, className: props.className, onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown },
66
+ content,
67
+ ripple.ripples)));
62
68
  }
63
69
  if (href) {
64
- return (react_1.default.createElement(HeaderIconAction_styled_1.A, Object.assign({ ref: ref, href: href, className: props.className }, restProps), content));
70
+ return (react_1.default.createElement(HeaderIconAction_styled_1.A, Object.assign({ ref: innerRef, href: href, className: props.className, onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown }, restProps),
71
+ content,
72
+ ripple.ripples));
65
73
  }
66
- return (react_1.default.createElement(HeaderIconAction_styled_1.Btn, { ref: ref, className: props.className, onClick: props.onClick }, content));
74
+ return (react_1.default.createElement(HeaderIconAction_styled_1.Btn, { ref: innerRef, className: props.className, onClick: props.onClick, onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown },
75
+ content,
76
+ ripple.ripples));
67
77
  });
68
78
  exports.HeaderIconAction = HeaderIconAction;
69
79
  HeaderIconAction.displayName = "HeaderIconAction";
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderIconAction.js","sourceRoot":"","sources":["../../../../src/components/layout/header/HeaderIconAction.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAK1C,uEAA6E;AAsC7E,MAAM,gBAAgB,GAAG,IAAA,kBAAU,EAA+C,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC7F,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAAzD,2CAAiD,CAAQ,CAAC;IAEhE,IAAI,OAAO,GAAc,IAAI,CAAC;IAC9B,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC3B,OAAO,GAAG,8BAAC,oCAAU,IAAC,IAAI,EAAE,IAAY,GAAI,CAAC;IACjD,CAAC;IAED,IAAI,EAAE,EAAE,CAAC;QACL,IAAI,CAAC,IAAI,EAAE,CAAC;YACR,MAAM,IAAI,SAAS,CAAC,0CAA0C,CAAC,CAAC;QACpE,CAAC;QAED,OAAO,CACH,8BAAC,IAAI,kBAAC,IAAI,EAAE,EAAE,IAAM,SAAS;YACzB,8BAAC,2BAAC,IAAC,GAAG,EAAE,GAAmC,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,IAAG,OAAO,CAAK,CACnF,CACV,CAAC;IACN,CAAC;IAED,IAAI,IAAI,EAAE,CAAC;QACP,OAAO,CACH,8BAAC,2BAAC,kBAAC,GAAG,EAAE,GAAmC,EAAE,I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1 @@
1
- {"version":3,"file":"HeaderIconAction.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/header/HeaderIconAction.styled.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkBhB,CAAC;AAEH,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiC,CAAC;AAC3C,QAAA,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA4B,CAAC;AAEpC,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKd,CAAC;AAEH,OAAO,EACH,GAAG,EACH,CAAC,EACD,UAAU,EACV,YAAY,GACf,CAAC"}
1
+ {"version":3,"file":"HeaderIconAction.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/header/HeaderIconAction.styled.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUhB,CAAC;AAEH,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiC,CAAC;AAC3C,QAAA,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA4B,CAAC;AAEpC,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKd,CAAC;AAEH,OAAO,EACH,GAAG,EACH,CAAC,EACD,UAAU,EACV,YAAY,GACf,CAAC"}
@@ -2,24 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sharedStyles = exports.StyledIcon = exports.A = exports.Btn = void 0;
4
4
  const theme_1 = require("../../../theme");
5
+ const useRipple_styled_1 = require("../../../utils/useRipple.styled");
5
6
  const Icon_1 = require("../../icons/Icon");
6
- const sharedStyles = (0, theme_1.css)({
7
- "width": (0, theme_1.pxToRem)(30),
8
- "height": (0, theme_1.pxToRem)(30),
9
- "background": "none",
10
- "borderRadius": "666px",
11
- "display": "inline-flex",
12
- "alignItems": "center",
13
- "justifyContent": "center",
14
- "border": (0, theme_1.borderPxToRem)(2),
15
- "color": "currentColor",
16
- "&:hover": {
17
- background: "#00000022",
18
- },
19
- "&:active": {
20
- background: "#00000011",
21
- color: "currentColor",
22
- },
7
+ const sharedStyles = (0, theme_1.css)(useRipple_styled_1.rippleHostStyles, {
8
+ width: (0, theme_1.pxToRem)(30),
9
+ height: (0, theme_1.pxToRem)(30),
10
+ background: "none",
11
+ borderRadius: "666px",
12
+ display: "inline-flex",
13
+ alignItems: "center",
14
+ justifyContent: "center",
15
+ border: (0, theme_1.borderPxToRem)(2),
16
+ color: "currentColor",
23
17
  });
24
18
  exports.sharedStyles = sharedStyles;
25
19
  const Btn = (0, theme_1.styled)("button", sharedStyles);
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderIconAction.styled.js","sourceRoot":"","sources":["../../../../src/components/layout/header/HeaderIconAction.styled.ts"],"names":[],"mappings":";;;AAAA,0CAAqE;AACrE,2CAAwC;AAExC,MAAM,YAAY,GAAG,IAAA,WAAG,EAAC;IACrB,OAAO,EAAE,IAAA,eAAO,EAAC,EAAE,CAAC;IACpB,QAAQ,EAAE,IAAA,eAAO,EAAC,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM;IACpB,cAAc,EAAE,OAAO;IACvB,SAAS,EAAE,aAAa;IACxB,YAAY,EAAE,QAAQ;IACtB,gBAAgB,EAAE,QAAQ;IAC1B,QAAQ,EAAE,IAAA,qBAAa,EAAC,CAAC,CAAC;IAC1B,OAAO,EAAE,cAAc;IAEvB,SAAS,EAAE;QACP,UAAU,EAAE,WAAW;KAC1B;IACD,UAAU,EAAE;QACR,UAAU,EAAE,WAAW;QACvB,KAAK,EAAE,cAAc;KACxB;CACJ,CAAC,CAAC;AAgBC,oCAAY;AAdhB,MAAM,GAAG,GAAG,IAAA,cAAM,EAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AAWvC,kBAAG;AAVP,MAAM,CAAC,GAAG,IAAA,cAAM,EAAC,GAAG,EAAE,YAAY,CAAC,CAAC;AAWhC,cAAC;AATL,MAAM,UAAU,GAAG,IAAA,cAAM,EAAC,WAAI,EAAE;IAC5B,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,cAAc;CACvB,CAAC,CAAC;AAKC,gCAAU"}
1
+ {"version":3,"file":"HeaderIconAction.styled.js","sourceRoot":"","sources":["../../../../src/components/layout/header/HeaderIconAction.styled.ts"],"names":[],"mappings":";;;AAAA,0CAAqE;AACrE,sEAAmE;AACnE,2CAAwC;AAExC,MAAM,YAAY,GAAG,IAAA,WAAG,EAAC,mCAAgB,EAAE;IACvC,KAAK,EAAE,IAAA,eAAO,EAAC,EAAE,CAAC;IAClB,MAAM,EAAE,IAAA,eAAO,EAAC,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM;IAClB,YAAY,EAAE,OAAO;IACrB,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;IACxB,MAAM,EAAE,IAAA,qBAAa,EAAC,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AU,KAAK;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IAC7D,KAAK,CAAC,EAAE,qBAAqB,CAAC;CACjC;AAED,UAAU,aAAa;IACnB,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,KAAK,EAAE,OAAO,KAAK,CAAC;CACvB;AAKD,QAAA,MAAM,uCAAuC,QAAkC,CAAC;AAoHhF,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGR,CAAC;AAGH,OAAO,EAAE,IAAI,EAAE,uCAAuC,EAAE,CAAC;AAEzD,YAAY,EACR,KAAK,IAAI,SAAS,EAClB,aAAa,IAAI,iBAAiB,GACrC,CAAC"}
@@ -47,6 +47,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
47
47
  exports.ListItemInnerContainerClassNameSelector = exports.Item = void 0;
48
48
  const react_1 = __importStar(require("react"));
49
49
  const fnWithProps_1 = require("../../../types/fnWithProps");
50
+ const useRipple_1 = require("../../../utils/useRipple");
50
51
  const Icon_1 = require("../../icons/Icon");
51
52
  const Item_styled_1 = require("./Item.styled");
52
53
  const Label_1 = require("./Label");
@@ -56,8 +57,10 @@ const noIcon = react_1.default.createElement(Item_styled_1.StyledNoIcon, null);
56
57
  const ListItemInnerContainerClassNameSelector = Item_styled_1.StyledInnerContainer.toString();
57
58
  exports.ListItemInnerContainerClassNameSelector = ListItemInnerContainerClassNameSelector;
58
59
  const ItemBase = (0, react_1.forwardRef)((_a, ref) => {
59
- var _b;
60
+ var _b, _c;
60
61
  var { href, to, onClick, Link, ratio } = _a, props = __rest(_a, ["href", "to", "onClick", "Link", "ratio"]);
62
+ const innerRef = (0, react_1.useRef)(null);
63
+ const ripple = (0, useRipple_1.useRipple)({ ref: innerRef });
61
64
  const r = ratio ? ratio.split("/") : [];
62
65
  const pre = typeof props.selected === "boolean"
63
66
  ? react_1.default.createElement(Label_1.Label, null, props.selected ? icon : noIcon)
@@ -78,27 +81,34 @@ const ItemBase = (0, react_1.forwardRef)((_a, ref) => {
78
81
  css: { flex },
79
82
  });
80
83
  })) !== null && _b !== void 0 ? _b : [];
84
+ const interactive = Boolean((_c = onClick !== null && onClick !== void 0 ? onClick : href) !== null && _c !== void 0 ? _c : to);
85
+ const rippleProps = interactive
86
+ ? { onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown }
87
+ : {};
81
88
  if (to) {
82
89
  if (!Link) {
83
90
  throw new TypeError("`to` prop given without `Link` component");
84
91
  }
85
92
  return (react_1.default.createElement(Item_styled_1.StyledItem, Object.assign({}, props, { ref: ref }),
86
93
  react_1.default.createElement(Link, { href: to },
87
- react_1.default.createElement(Item_styled_1.StyledInnerContainer, { as: "a", href: to },
94
+ react_1.default.createElement(Item_styled_1.StyledInnerContainer, Object.assign({ as: "a", href: to, ref: innerRef }, rippleProps),
88
95
  pre,
89
- ren))));
96
+ ren,
97
+ ripple.ripples))));
90
98
  }
91
99
  if (href) {
92
100
  return (react_1.default.createElement(Item_styled_1.StyledItem, Object.assign({}, props, { ref: ref }),
93
- react_1.default.createElement(Item_styled_1.StyledInnerContainer, { as: "a", href: href, onClick: onClick },
101
+ react_1.default.createElement(Item_styled_1.StyledInnerContainer, Object.assign({ as: "a", href: href, onClick: onClick, ref: innerRef }, rippleProps),
94
102
  pre,
95
- ren)));
103
+ ren,
104
+ ripple.ripples)));
96
105
  }
97
106
  if (onClick) {
98
107
  return (react_1.default.createElement(Item_styled_1.StyledItem, Object.assign({}, props, { ref: ref }),
99
- react_1.default.createElement(Item_styled_1.StyledInnerContainer, { as: "button", onClick: onClick },
108
+ react_1.default.createElement(Item_styled_1.StyledInnerContainer, Object.assign({ as: "button", onClick: onClick, ref: innerRef }, rippleProps),
100
109
  pre,
101
- ren)));
110
+ ren,
111
+ ripple.ripples)));
102
112
  }
103
113
  return react_1.default.createElement(Item_styled_1.StyledItem, Object.assign({}, props, { ref: ref }),
104
114
  react_1.default.createElement(Item_styled_1.StyledInnerContainer, null,
@@ -1 +1 @@
1
- {"version":3,"file":"Item.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Item.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,4DAAyD;AACzD,2CAAwC;AACxC,+CAA2F;AAC3F,mCAAgC;AAChC,mCAAgC;AAkChC,MAAM,IAAI,GAAG,8BAAC,wBAAU,IAAC,IAAI,EAAE,WAAI,CAAC,OAAO,GAAI,CAAC;AAChD,MAAM,MAAM,GAAG,8BAAC,0BAAY,OAAG,CAAC;AAEhC,MAAM,uCAAuC,GAAG,kCAAoB,CAAC,QAAQ,EAAE,CAAC;AA0FjE,0FAAuC;AAjEtD,MAAM,QAAQ,GAAG,IAAA,kBAAU,EAEzB,CAAC,EAA4C,EAAE,GAAG,EAAE,EAAE;;QAArD,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,OAAY,EAAP,KAAK,cAA1C,0CAA4C,CAAF;IACzC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAExC,MAAM,GAAG,GAAG,OA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GAA2B,CAAC;AAC5C,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6B,CAAC;AAEhD,OAAO,EACH,UAAU,EACV,oBAAoB,EACpB,UAAU,EACV,YAAY,GACf,CAAC"}
1
+ {"version":3,"file":"Item.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Item.styled.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAWxB,CAAC;AAEH,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6Bd,CAAC;AAOH,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA2B,CAAC;AAC5C,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6B,CAAC;AAEhD,OAAO,EACH,UAAU,EACV,oBAAoB,EACpB,UAAU,EACV,YAAY,GACf,CAAC"}
@@ -2,8 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StyledNoIcon = exports.StyledIcon = exports.StyledInnerContainer = exports.StyledItem = void 0;
4
4
  const theme_1 = require("../../../theme");
5
+ const useRipple_styled_1 = require("../../../utils/useRipple.styled");
5
6
  const Icon_1 = require("../../icons/Icon");
6
- const StyledInnerContainer = (0, theme_1.styled)("div", {
7
+ const StyledInnerContainer = (0, theme_1.styled)("div", useRipple_styled_1.rippleHostStyles, {
7
8
  display: "flex",
8
9
  minHeight: (0, theme_1.dimensionsPxToRem)(174),
9
10
  alignItems: "center",
@@ -1 +1 @@
1
- {"version":3,"file":"Item.styled.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Item.styled.ts"],"names":[],"mappings":";;;AAAA,0CAAsF;AACtF,2CAAwC;AAExC,MAAM,oBAAoB,GAAG,IAAA,cAAM,EAAC,KAAK,EAAE;IACvC,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,IAAA,yBAAiB,EAAC,GAAG,CAAC;IACjC,UAAU,EAAE,QAAQ;IACpB,GAAG,EAAE,MAAM;IACX,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,MAAM;IAClB,KAAK,EAAE,MAAM;IACb,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE,SAAS;IACrB,QAAQ,EAAE,SAAS;CACtB,CAAC,CAAC;AA2CC,oDAAoB;AAzCxB,MAAM,UAAU,GAAG,IAAA,cAAM,EAAC,IAAI,EAAE;IAC5B,eAAe,EAAE,MAAM;IACvB,QAAQ,EAAE,CAAC;IACX,SAAS,EAAE,CAAC;IACZ,UAAU,EAAE,IAAA,mBAAW,EAAC,EAAE,CAAC;IAE3B,qBAAqB,EAAE;QACnB,SAAS,EAAE,4BAA4B;KAC1C;IAED,KAAK,EAAE;QACH,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,CAAC;QACV,cAAc,EAAE,MAAM;KACzB;IAED,UAAU,EAAE;QACR,KAAK,EAAE;YACH,IAAI,EAAE;gBACF,WAAW,EAAE,IAAA,yBAAiB,EAAC,EAAE,CAAC;gBAClC,YAAY,EAAE,IAAA,yBAAiB,EAAC,EAAE,CAAC;aACtC;SACJ;QACD,QAAQ,EAAE;YACN,IAAI,EAAE;gBACF,KAAK,EAAE,YAAY;aACtB;SACJ;KACJ;CACJ,CAAC,CAAC;AAWC,gCAAU;AATd,MAAM,UAAU,GAAG,IAAA,WAAG,EAAC;IACnB,KAAK,EAAE,IAAA,eAAO,EAAC,CAAC,CAAC;IACjB,OAAO,EAAE,cAAc;CAC1B,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,IAAA,cAAM,EAAC,WAAI,EAAE,UAAU,CAAC,CAAC;AAMxC,gCAAU;AALd,MAAM,YAAY,GAAG,IAAA,cAAM,EAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAM5C,oCAAY"}
1
+ {"version":3,"file":"Item.styled.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Item.styled.ts"],"names":[],"mappings":";;;AAAA,0CAAsF;AACtF,sEAAmE;AACnE,2CAAwC;AAExC,MAAM,oBAAoB,GAAG,IAAA,cAAM,EAAC,KAAK,EAAE,mCAAgB,EAAE;IACzD,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,IAAA,yBAAiB,EAAC,GAAG,CAAC;IACjC,UAAU,EAAE,QAAQ;IACpB,GAAG,EAAE,MAAM;IACX,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,MAAM;IAClB,KAAK,EAAE,MAAM;IACb,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE,SAAS;IACrB,QAAQ,EAAE,SAAS;CACtB,CAAC,CAAC;AA2CC,oDAAoB;AAzCxB,MAAM,UAAU,GAAG,IAAA,cAAM,EAAC,IAAI,EAAE;IAC5B,eAAe,EAAE,MAAM;IACvB,QAAQ,EAAE,CAAC;IACX,SAAS,EAAE,CAAC;IACZ,UAAU,EAAE,IAAA,mBAAW,EAAC,EAAE,CAAC;IAE3B,qBAAqB,EAAE;QACnB,SAAS,EAAE,4BAA4B;KAC1C;IAED,KAAK,EAAE;QACH,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,CAAC;QACV,cAAc,EAAE,MAAM;KACzB;IAED,UAAU,EAAE;QACR,KAAK,EAAE;YACH,IAAI,EAAE;gBACF,WAAW,EAAE,IAAA,yBAAiB,EAAC,EAAE,CAAC;gBAClC,YAAY,EAAE,IAAA,yBAAiB,EAAC,EAAE,CAAC;aACtC;SACJ;QACD,QAAQ,EAAE;YACN,IAAI,EAAE;gBACF,KAAK,EAAE,YAAY;aACtB;SACJ;KACJ;CACJ,CAAC,CAAC;AAWC,gCAAU;AATd,MAAM,UAAU,GAAG,IAAA,WAAG,EAAC;IACnB,KAAK,EAAE,IAAA,eAAO,EAAC,CAAC,CAAC;IACjB,OAAO,EAAE,cAAc;CAC1B,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,IAAA,cAAM,EAAC,WAAI,EAAE,UAAU,CAAC,CAAC;AAMxC,gCAAU;AALd,MAAM,YAAY,GAAG,IAAA,cAAM,EAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAM5C,oCAAY"}
@@ -1,2 +1,95 @@
1
- export { Button } from "./Button.styled";
1
+ import React from "react";
2
+ declare const Button: 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
+ }, "outline" | "css" | "inline"> & import("../../../../node_modules/@stitches/react/types/styled-component").TransformProps<{
5
+ inline?: boolean | "true";
6
+ outline?: boolean | "true";
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 { Button, };
2
95
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAS1C,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAgBV,CAAC;AAKH,OAAO,EACH,MAAM,GACT,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.Button = void 0;
4
- var Button_styled_1 = require("./Button.styled");
5
- Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_styled_1.Button; } });
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 Button_styled_1 = require("./Button.styled");
52
+ const Button = (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(Button_styled_1.StyledButton, Object.assign({ ref: innerRef, onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown }, rest),
57
+ children,
58
+ ripple.ripples));
59
+ });
60
+ exports.Button = Button;
61
+ Button.displayName = "Button";
62
+ Button.toString = () => Button_styled_1.StyledButton.toString();
6
63
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.tsx"],"names":[],"mappings":";;;AAAA,iDAAyC;AAAhC,uGAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,yEAAoE;AAEpE,wDAAqD;AACrD,mDAA+C;AAI/C,MAAM,MAAM,GAAG,IAAA,kBAAU,EAA2B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC/D,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,4BAAY,kBACT,GAAG,EAAE,QAAQ,EACb,aAAa,EAAE,MAAM,CAAC,aAAa,EACnC,SAAS,EAAE,MAAM,CAAC,SAAS,IACvB,IAAI;QAEP,QAAQ;QACR,MAAM,CAAC,OAAO,CACJ,CAClB,CAAC;AACN,CAAC,CAAC,CAAC;AAMC,wBAAM;AAJV,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAC9B,MAAM,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,4BAAY,CAAC,QAAQ,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- declare const Button: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"button", {
1
+ declare const StyledButton: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"button", {
2
2
  inline?: boolean | "true";
3
3
  outline?: boolean | "true";
4
4
  }, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
@@ -86,5 +86,5 @@ declare const Button: import("../../../../node_modules/@stitches/react/types/sty
86
86
  height: string | number;
87
87
  };
88
88
  }>>;
89
- export { Button, };
89
+ export { StyledButton, };
90
90
  //# sourceMappingURL=Button.styled.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.styled.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCV,CAAC;AAEH,OAAO,EACH,MAAM,GACT,CAAC"}
1
+ {"version":3,"file":"Button.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.styled.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiChB,CAAC;AAEH,OAAO,EACH,YAAY,GACf,CAAC"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Button = void 0;
3
+ exports.StyledButton = void 0;
4
4
  const theme_1 = require("../../../theme");
5
- const Button = (0, theme_1.styled)("button", {
5
+ const useRipple_styled_1 = require("../../../utils/useRipple.styled");
6
+ const StyledButton = (0, theme_1.styled)("button", useRipple_styled_1.rippleHostStyles, {
6
7
  "height": (0, theme_1.dimensionsPxToRem)(118),
7
8
  "background": "$green1",
8
9
  "border": `${(0, theme_1.borderPxToRem)(1)} solid $green1Darker`,
@@ -34,5 +35,5 @@ const Button = (0, theme_1.styled)("button", {
34
35
  },
35
36
  },
36
37
  });
37
- exports.Button = Button;
38
+ exports.StyledButton = StyledButton;
38
39
  //# sourceMappingURL=Button.styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.styled.ts"],"names":[],"mappings":";;;AAAA,0CAAgG;AAKhG,MAAM,MAAM,GAAG,IAAA,cAAM,EAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,IAAA,yBAAiB,EAAC,GAAG,CAAC;IAChC,YAAY,EAAE,SAAS;IACvB,QAAQ,EAAE,GAAG,IAAA,qBAAa,EAAC,CAAC,CAAC,sBAAsB;IACnD,OAAO,EAAE,aAAa;IACtB,cAAc,EAAE,QAAQ;IACxB,SAAS,EAAE,MAAM;IACjB,YAAY,EAAE,QAAQ;IACtB,gBAAgB,EAAE,QAAQ;IAC1B,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,IAAA,mBAAW,EAAC,EAAE,CAAC;IAC3B,SAAS,EAAE,OAAO;IAClB,KAAK,EAAE,IAAA,eAAO,EAAC,EAAE,CAAC;IAElB,YAAY,EAAE;QACV,OAAO,EAAE,GAAG;KACf;IAED,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,IAAI,EAAE;gBACF,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,aAAa;aACzB;SACJ;QACD,OAAO,EAAE;YACL,IAAI,EAAE;gBACF,UAAU,EAAE,aAAa;gBACzB,WAAW,EAAE,eAAe;gBAC5B,KAAK,EAAE,QAAQ;aAClB;SACJ;KACJ;CACJ,CAAC,CAAC;AAGC,wBAAM"}
1
+ {"version":3,"file":"Button.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.styled.ts"],"names":[],"mappings":";;;AAAA,0CAAgG;AAChG,sEAAmE;AAKnE,MAAM,YAAY,GAAG,IAAA,cAAM,EAAC,QAAQ,EAAE,mCAAgB,EAAE;IACpD,QAAQ,EAAE,IAAA,yBAAiB,EAAC,GAAG,CAAC;IAChC,YAAY,EAAE,SAAS;IACvB,QAAQ,EAAE,GAAG,IAAA,qBAAa,EAAC,CAAC,CAAC,sBAAsB;IACnD,OAAO,EAAE,aAAa;IACtB,cAAc,EAAE,QAAQ;IACxB,SAAS,EAAE,MAAM;IACjB,YAAY,EAAE,QAAQ;IACtB,gBAAgB,EAAE,QAAQ;IAC1B,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,IAAA,mBAAW,EAAC,EAAE,CAAC;IAC3B,SAAS,EAAE,OAAO;IAClB,KAAK,EAAE,IAAA,eAAO,EAAC,EAAE,CAAC;IAElB,YAAY,EAAE;QACV,OAAO,EAAE,GAAG;KACf;IAED,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,IAAI,EAAE;gBACF,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,aAAa;aACzB;SACJ;QACD,OAAO,EAAE;YACL,IAAI,EAAE;gBACF,UAAU,EAAE,aAAa;gBACzB,WAAW,EAAE,eAAe;gBAC5B,KAAK,EAAE,QAAQ;aAClB;SACJ;KACJ;CACJ,CAAC,CAAC;AAGC,oCAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,KAAK,cAAc,GAAG;IAClB,OAAO,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,QAAA,MAAM,SAAS,0FAMb,CAAC;AAKH,QAAA,MAAM,oBAAoB,QAAuB,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC;AAC3C,YAAY,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,KAAK,cAAc,GAAG;IAClB,OAAO,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,QAAA,MAAM,SAAS,0FAeb,CAAC;AAKH,QAAA,MAAM,oBAAoB,QAAuB,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC;AAC3C,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -35,10 +35,15 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.PadButtonDotSelector = exports.PadButton = 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 Button_styled_1 = require("./Button.styled");
39
41
  const PadButton = (0, react_1.forwardRef)((props, ref) => {
40
- return (react_1.default.createElement(Button_styled_1.StyledButton, Object.assign({}, props, { ref: ref }),
41
- react_1.default.createElement(Button_styled_1.StyledDot, null)));
42
+ const innerRef = (0, use_forwarded_ref_1.useForwardedRef)(ref);
43
+ const ripple = (0, useRipple_1.useRipple)({ ref: innerRef, fromCenter: true });
44
+ return (react_1.default.createElement(Button_styled_1.StyledButton, Object.assign({}, props, { ref: innerRef, onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown }),
45
+ react_1.default.createElement(Button_styled_1.StyledDot, null),
46
+ ripple.ripples));
42
47
  });
43
48
  exports.PadButton = PadButton;
44
49
  PadButton.displayName = "PadButton";
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Button.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,mDAA0D;AAM1D,MAAM,SAAS,GAAG,IAAA,kBAAU,EAAoC,CAAC,KAAK,EAAE,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,CAAC;AAE9B,oDAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Button.styled.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQhB,CAAC;AAEH,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOb,CAAC;AAEH,OAAO,EACH,YAAY,EACZ,SAAS,GACZ,CAAC"}
1
+ {"version":3,"file":"Button.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Button.styled.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQhB,CAAC;AAEH,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOb,CAAC;AAEH,OAAO,EACH,YAAY,EACZ,SAAS,GACZ,CAAC"}
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StyledDot = exports.StyledButton = void 0;
4
4
  const theme_1 = require("../../../theme");
5
- const StyledButton = (0, theme_1.styled)("button", {
5
+ const useRipple_styled_1 = require("../../../utils/useRipple.styled");
6
+ const StyledButton = (0, theme_1.styled)("button", useRipple_styled_1.rippleHostStyles, {
6
7
  height: "50px",
7
8
  width: "50px",
8
9
  margin: "0",
@@ -1 +1 @@
1
- {"version":3,"file":"Button.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Button.styled.ts"],"names":[],"mappings":";;;AAAA,0CAAwC;AAExC,MAAM,YAAY,GAAG,IAAA,cAAM,EAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,GAAG;IACX,YAAY,EAAE,OAAO;IACrB,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,MAAM;CACrB,CAAC,CAAC;AAYC,oCAAY;AAVhB,MAAM,SAAS,GAAG,IAAA,cAAM,EAAC,MAAM,EAAE;IAC7B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE,MAAM;CACjB,CAAC,CAAC;AAIC,8BAAS"}
1
+ {"version":3,"file":"Button.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Button.styled.ts"],"names":[],"mappings":";;;AAAA,0CAAwC;AACxC,sEAAmE;AAEnE,MAAM,YAAY,GAAG,IAAA,cAAM,EAAC,QAAQ,EAAE,mCAAgB,EAAE;IACpD,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,GAAG;IACX,YAAY,EAAE,OAAO;IACrB,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,MAAM;CACrB,CAAC,CAAC;AAYC,oCAAY;AAVhB,MAAM,SAAS,GAAG,IAAA,cAAM,EAAC,MAAM,EAAE;IAC7B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE,MAAM;CACjB,CAAC,CAAC;AAIC,8BAAS"}
@@ -1 +1 @@
1
- {"version":3,"file":"Middle.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Middle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,KAAK,cAAc,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,QAAA,MAAM,SAAS,0FAMb,CAAC;AAKH,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"Middle.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Middle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,KAAK,cAAc,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,QAAA,MAAM,SAAS,0FAeb,CAAC;AAKH,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -35,9 +35,15 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.PadMiddle = 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 Middle_styled_1 = require("./Middle.styled");
39
41
  const PadMiddle = (0, react_1.forwardRef)((props, ref) => {
40
- return (react_1.default.createElement(Middle_styled_1.StyledMiddle, { onClick: props.onClick, ref: ref }, props.label));
42
+ const innerRef = (0, use_forwarded_ref_1.useForwardedRef)(ref);
43
+ const ripple = (0, useRipple_1.useRipple)({ ref: innerRef, fromCenter: true });
44
+ return (react_1.default.createElement(Middle_styled_1.StyledMiddle, { onClick: props.onClick, ref: innerRef, onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown },
45
+ props.label,
46
+ ripple.ripples));
41
47
  });
42
48
  exports.PadMiddle = PadMiddle;
43
49
  PadMiddle.displayName = "PadMiddle";
@@ -1 +1 @@
1
- {"version":3,"file":"Middle.js","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Middle.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,mDAA+C;AAO/C,MAAM,SAAS,GAAG,IAAA,kBAAU,EAAoC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC3E,OAAO,CACH,8BAAC,4BAAY,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,IACzC,KAAK,CAAC,KAAK,CACD,CAClB,CAAC;AACN,CAAC,CAAC,CAAC;AAKM,8BAAS;AAHlB,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AACpC,SAAS,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,4BAAY,CAAC,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"Middle.js","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Middle.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,yEAAoE;AAEpE,wDAAqD;AACrD,mDAA+C;AAO/C,MAAM,SAAS,GAAG,IAAA,kBAAU,EAAoC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC3E,MAAM,QAAQ,GAAG,IAAA,mCAAe,EAAC,GAAG,CAAC,CAAC;IACtC,MAAM,MAAM,GAAG,IAAA,qBAAS,EAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;IAE9D,OAAO,CACH,8BAAC,4BAAY,IACT,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,GAAG,EAAE,QAAQ,EACb,aAAa,EAAE,MAAM,CAAC,aAAa,EACnC,SAAS,EAAE,MAAM,CAAC,SAAS;QAE1B,KAAK,CAAC,KAAK;QACX,MAAM,CAAC,OAAO,CACJ,CAClB,CAAC;AACN,CAAC,CAAC,CAAC;AAKM,8BAAS;AAHlB,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AACpC,SAAS,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,4BAAY,CAAC,QAAQ,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Middle.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Middle.styled.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYhB,CAAC;AAEH,OAAO,EACH,YAAY,GACf,CAAC"}
1
+ {"version":3,"file":"Middle.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Middle.styled.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYhB,CAAC;AAEH,OAAO,EACH,YAAY,GACf,CAAC"}
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StyledMiddle = void 0;
4
4
  const theme_1 = require("../../../theme");
5
- const StyledMiddle = (0, theme_1.styled)("button", {
5
+ const useRipple_styled_1 = require("../../../utils/useRipple.styled");
6
+ const StyledMiddle = (0, theme_1.styled)("button", useRipple_styled_1.rippleHostStyles, {
6
7
  display: "flex",
7
8
  alignItems: "center",
8
9
  justifyContent: "center",
@@ -1 +1 @@
1
- {"version":3,"file":"Middle.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Middle.styled.ts"],"names":[],"mappings":";;;AAAA,0CAAwC;AAExC,MAAM,YAAY,GAAG,IAAA,cAAM,EAAC,QAAQ,EAAE;IAClC,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;IACxB,MAAM,EAAE,GAAG;IACX,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,gBAAgB;IACxB,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE,QAAQ;CACtB,CAAC,CAAC;AAGC,oCAAY"}
1
+ {"version":3,"file":"Middle.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Middle.styled.ts"],"names":[],"mappings":";;;AAAA,0CAAwC;AACxC,sEAAmE;AAEnE,MAAM,YAAY,GAAG,IAAA,cAAM,EAAC,QAAQ,EAAE,mCAAgB,EAAE;IACpD,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;IACxB,MAAM,EAAE,GAAG;IACX,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,gBAAgB;IACxB,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE,QAAQ;CACtB,CAAC,CAAC;AAGC,oCAAY"}