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
@@ -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,2 +1,16 @@
1
- export { Button } from "./Button.styled.js";
1
+ import React, { forwardRef } from "react";
2
+ import { useForwardedRef } from "@bedrock-layout/use-forwarded-ref";
3
+ import { useRipple } from "../../../utils/useRipple.js";
4
+ import { StyledButton } from "./Button.styled.js";
5
+ const Button = forwardRef((props, ref) => {
6
+ const { children, onPointerDown, onKeyDown, ...rest } = props;
7
+ const innerRef = useForwardedRef(ref);
8
+ const ripple = useRipple({ ref: innerRef, onPointerDown, onKeyDown });
9
+ return (React.createElement(StyledButton, { ref: innerRef, onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown, ...rest },
10
+ children,
11
+ ripple.ripples));
12
+ });
13
+ Button.displayName = "Button";
14
+ Button.toString = () => StyledButton.toString();
15
+ export { Button, };
2
16
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,MAAM,MAAM,GAAG,UAAU,CAA2B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC/D,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAC9D,MAAM,QAAQ,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,CAAC;IAEtE,OAAO,CACH,oBAAC,YAAY,IACT,GAAG,EAAE,QAAQ,EACb,aAAa,EAAE,MAAM,CAAC,aAAa,EACnC,SAAS,EAAE,MAAM,CAAC,SAAS,KACvB,IAAI;QAEP,QAAQ;QACR,MAAM,CAAC,OAAO,CACJ,CAClB,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAC9B,MAAM,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;AAEhD,OAAO,EACH,MAAM,GACT,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,5 +1,6 @@
1
1
  import { borderPxToRem, dimensionsPxToRem, fontPxToRem, pxToRem, styled } from "../../../theme.js";
2
- const Button = styled("button", {
2
+ import { rippleHostStyles } from "../../../utils/useRipple.styled.js";
3
+ const StyledButton = styled("button", rippleHostStyles, {
3
4
  "height": dimensionsPxToRem(118),
4
5
  "background": "$green1",
5
6
  "border": `${borderPxToRem(1)} solid $green1Darker`,
@@ -31,5 +32,5 @@ const Button = styled("button", {
31
32
  },
32
33
  },
33
34
  });
34
- export { Button, };
35
+ export { StyledButton, };
35
36
  //# 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,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAKhG,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,iBAAiB,CAAC,GAAG,CAAC;IAChC,YAAY,EAAE,SAAS;IACvB,QAAQ,EAAE,GAAG,aAAa,CAAC,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,WAAW,CAAC,EAAE,CAAC;IAC3B,SAAS,EAAE,OAAO;IAClB,KAAK,EAAE,OAAO,CAAC,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;AAEH,OAAO,EACH,MAAM,GACT,CAAC"}
1
+ {"version":3,"file":"Button.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKnE,MAAM,YAAY,GAAG,MAAM,CAAC,QAAQ,EAAE,gBAAgB,EAAE;IACpD,QAAQ,EAAE,iBAAiB,CAAC,GAAG,CAAC;IAChC,YAAY,EAAE,SAAS;IACvB,QAAQ,EAAE,GAAG,aAAa,CAAC,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,WAAW,CAAC,EAAE,CAAC;IAC3B,SAAS,EAAE,OAAO;IAClB,KAAK,EAAE,OAAO,CAAC,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;AAEH,OAAO,EACH,YAAY,GACf,CAAC"}
@@ -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"}
@@ -1,8 +1,13 @@
1
1
  import React, { forwardRef } from "react";
2
+ import { useForwardedRef } from "@bedrock-layout/use-forwarded-ref";
3
+ import { useRipple } from "../../../utils/useRipple.js";
2
4
  import { StyledButton, StyledDot } from "./Button.styled.js";
3
5
  const PadButton = forwardRef((props, ref) => {
4
- return (React.createElement(StyledButton, { ...props, ref: ref },
5
- React.createElement(StyledDot, null)));
6
+ const innerRef = useForwardedRef(ref);
7
+ const ripple = useRipple({ ref: innerRef, fromCenter: true });
8
+ return (React.createElement(StyledButton, { ...props, ref: innerRef, onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown },
9
+ React.createElement(StyledDot, null),
10
+ ripple.ripples));
6
11
  });
7
12
  PadButton.displayName = "PadButton";
8
13
  PadButton.toString = () => StyledButton.toString();
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM1D,MAAM,SAAS,GAAG,UAAU,CAAoC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC3E,OAAO,CACH,oBAAC,YAAY,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG;QAC7B,oBAAC,SAAS,OAAG,CACF,CAClB,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AACpC,SAAS,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;AAEnD,MAAM,oBAAoB,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM1D,MAAM,SAAS,GAAG,UAAU,CAAoC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC3E,MAAM,QAAQ,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;IAE9D,OAAO,CACH,oBAAC,YAAY,OACL,KAAK,EACT,GAAG,EAAE,QAAQ,EACb,aAAa,EAAE,MAAM,CAAC,aAAa,EACnC,SAAS,EAAE,MAAM,CAAC,SAAS;QAE3B,oBAAC,SAAS,OAAG;QACZ,MAAM,CAAC,OAAO,CACJ,CAClB,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AACpC,SAAS,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;AAEnD,MAAM,oBAAoB,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC"}
@@ -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"}
@@ -1,5 +1,6 @@
1
1
  import { styled } from "../../../theme.js";
2
- const StyledButton = styled("button", {
2
+ import { rippleHostStyles } from "../../../utils/useRipple.styled.js";
3
+ const StyledButton = styled("button", rippleHostStyles, {
3
4
  height: "50px",
4
5
  width: "50px",
5
6
  margin: "0",
@@ -1 +1 @@
1
- {"version":3,"file":"Button.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Button.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,MAAM,YAAY,GAAG,MAAM,CAAC,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;AAEH,MAAM,SAAS,GAAG,MAAM,CAAC,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;AAEH,OAAO,EACH,YAAY,EACZ,SAAS,GACZ,CAAC"}
1
+ {"version":3,"file":"Button.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Button.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,MAAM,YAAY,GAAG,MAAM,CAAC,QAAQ,EAAE,gBAAgB,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;AAEH,MAAM,SAAS,GAAG,MAAM,CAAC,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;AAEH,OAAO,EACH,YAAY,EACZ,SAAS,GACZ,CAAC"}
@@ -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"}
@@ -1,7 +1,13 @@
1
1
  import React, { forwardRef } from "react";
2
+ import { useForwardedRef } from "@bedrock-layout/use-forwarded-ref";
3
+ import { useRipple } from "../../../utils/useRipple.js";
2
4
  import { StyledMiddle } from "./Middle.styled.js";
3
5
  const PadMiddle = forwardRef((props, ref) => {
4
- return (React.createElement(StyledMiddle, { onClick: props.onClick, ref: ref }, props.label));
6
+ const innerRef = useForwardedRef(ref);
7
+ const ripple = useRipple({ ref: innerRef, fromCenter: true });
8
+ return (React.createElement(StyledMiddle, { onClick: props.onClick, ref: innerRef, onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown },
9
+ props.label,
10
+ ripple.ripples));
5
11
  });
6
12
  PadMiddle.displayName = "PadMiddle";
7
13
  PadMiddle.toString = () => StyledMiddle.toString();
@@ -1 +1 @@
1
- {"version":3,"file":"Middle.js","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Middle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAO/C,MAAM,SAAS,GAAG,UAAU,CAAoC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC3E,OAAO,CACH,oBAAC,YAAY,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,IACzC,KAAK,CAAC,KAAK,CACD,CAClB,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AACpC,SAAS,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"Middle.js","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Middle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAO/C,MAAM,SAAS,GAAG,UAAU,CAAoC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC3E,MAAM,QAAQ,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;IAE9D,OAAO,CACH,oBAAC,YAAY,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;AAEH,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AACpC,SAAS,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;AAEnD,OAAO,EAAE,SAAS,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"}
@@ -1,5 +1,6 @@
1
1
  import { styled } from "../../../theme.js";
2
- const StyledMiddle = styled("button", {
2
+ import { rippleHostStyles } from "../../../utils/useRipple.styled.js";
3
+ const StyledMiddle = styled("button", rippleHostStyles, {
3
4
  display: "flex",
4
5
  alignItems: "center",
5
6
  justifyContent: "center",
@@ -1 +1 @@
1
- {"version":3,"file":"Middle.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Middle.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,MAAM,YAAY,GAAG,MAAM,CAAC,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;AAEH,OAAO,EACH,YAAY,GACf,CAAC"}
1
+ {"version":3,"file":"Middle.styled.js","sourceRoot":"","sources":["../../../../src/components/ui/directionPad/Middle.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,MAAM,YAAY,GAAG,MAAM,CAAC,QAAQ,EAAE,gBAAgB,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;AAEH,OAAO,EACH,YAAY,GACf,CAAC"}
@@ -1,2 +1,180 @@
1
- export { ModalButtons } from "./ModalButtons.styled";
1
+ import React from "react";
2
+ declare const ModalButtons: import("../../../../node_modules/@stitches/react/types/styled-component").StyledComponent<"div", {}, {}, import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
3
+ colors: {
4
+ background: "white";
5
+ mainColor: "#008ad2";
6
+ mainColorAlt: "#006AA9";
7
+ activeBg: "#e7e7e7";
8
+ inactiveBg: "#d3d3de";
9
+ inactiveDarkBg: "#999";
10
+ toggleHandleBg: "#e0e0e0";
11
+ toggleHandleBorder: "#cdcdcd";
12
+ toggleBgDisabled: "#f0f0f0";
13
+ toggleHandleBorderDisabled: "#c29f7d";
14
+ toggleHandleBgDisabled: "#deae84";
15
+ icon: "#636363";
16
+ border: "#d5d5d5";
17
+ buttonBorder: "#bababa";
18
+ headerBorder: "#c8c8c9";
19
+ headerBg: "#efeff0";
20
+ headerText: "#484848";
21
+ text: "#323232";
22
+ text2: "#181818";
23
+ text3: "#000000";
24
+ sub: "#959595";
25
+ popText: "#666";
26
+ toolbarBorder: "#ababab";
27
+ toolbarBg: "#f8f8f8";
28
+ modalBg: "#f7f7f7";
29
+ modalButtonBg: "#f8f8f8";
30
+ modalButtonBorder: "#c2c2c2";
31
+ inputDisabledBg: "#f3f3f3";
32
+ inputDisabledText: "#959595";
33
+ choiceBg: "#ffffff";
34
+ choiceText: "#999999";
35
+ choiceActiveBg: "#f3f3f3";
36
+ choiceActiveText: "#313131";
37
+ choiceBorder: "#cfcfcf";
38
+ selectorText: "#606060";
39
+ selectorActive: "#008ad2";
40
+ blue1: "#038bf4";
41
+ blue2: "#b7d6f5";
42
+ blue3: "#dbe6ff";
43
+ blue4: "#33b4ff";
44
+ blue5: "#30a2e6";
45
+ orange1: "#ff7200";
46
+ orange1Darker: "#cc5b00";
47
+ purple1: "#7357e8";
48
+ green1: "#3ec234";
49
+ green1Darker: "#38af2f";
50
+ pink1: "#ff388f";
51
+ red1: "#ea2700";
52
+ yellow1: "#ffde9d";
53
+ yellow2: "#e4a429";
54
+ yellow3: "#fff5db";
55
+ pinky1: "#f5c0b7";
56
+ pinky2: "#e07b67";
57
+ pinky3: "#ffe1db";
58
+ grey1: "#737373";
59
+ focusColor: "#dcaf00";
60
+ scrollbarsThumb: "#737373";
61
+ scrollbarsBg: "transparent";
62
+ tableStripedBg: "#fafafa";
63
+ toolButtonText: "#666e80";
64
+ };
65
+ }, import("../../../../node_modules/@stitches/react/types/config").DefaultThemeMap, {
66
+ mx: (value: string | number) => {
67
+ marginLeft: string | number;
68
+ marginRight: string | number;
69
+ };
70
+ my: (value: string | number) => {
71
+ marginTop: string | number;
72
+ marginBottom: string | number;
73
+ };
74
+ px: (value: string | number) => {
75
+ paddingLeft: string | number;
76
+ paddingRight: string | number;
77
+ };
78
+ py: (value: string | number) => {
79
+ paddingTop: string | number;
80
+ paddingBottom: string | number;
81
+ };
82
+ size: (value: string | number) => {
83
+ width: string | number;
84
+ height: string | number;
85
+ };
86
+ }>> & {
87
+ Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
88
+ 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;
89
+ }, "css" | "variant"> & import("../../../../node_modules/@stitches/react/types/styled-component").TransformProps<{
90
+ variant?: "main";
91
+ }, {}> & {
92
+ css?: import("../../../../node_modules/@stitches/react/types/css-util").CSS<{}, {
93
+ colors: {
94
+ background: "white";
95
+ mainColor: "#008ad2";
96
+ mainColorAlt: "#006AA9";
97
+ activeBg: "#e7e7e7";
98
+ inactiveBg: "#d3d3de";
99
+ inactiveDarkBg: "#999";
100
+ toggleHandleBg: "#e0e0e0";
101
+ toggleHandleBorder: "#cdcdcd";
102
+ toggleBgDisabled: "#f0f0f0";
103
+ toggleHandleBorderDisabled: "#c29f7d";
104
+ toggleHandleBgDisabled: "#deae84";
105
+ icon: "#636363";
106
+ border: "#d5d5d5";
107
+ buttonBorder: "#bababa";
108
+ headerBorder: "#c8c8c9";
109
+ headerBg: "#efeff0";
110
+ headerText: "#484848";
111
+ text: "#323232";
112
+ text2: "#181818";
113
+ text3: "#000000";
114
+ sub: "#959595";
115
+ popText: "#666";
116
+ toolbarBorder: "#ababab";
117
+ toolbarBg: "#f8f8f8";
118
+ modalBg: "#f7f7f7";
119
+ modalButtonBg: "#f8f8f8";
120
+ modalButtonBorder: "#c2c2c2";
121
+ inputDisabledBg: "#f3f3f3";
122
+ inputDisabledText: "#959595";
123
+ choiceBg: "#ffffff";
124
+ choiceText: "#999999";
125
+ choiceActiveBg: "#f3f3f3";
126
+ choiceActiveText: "#313131";
127
+ choiceBorder: "#cfcfcf";
128
+ selectorText: "#606060";
129
+ selectorActive: "#008ad2";
130
+ blue1: "#038bf4";
131
+ blue2: "#b7d6f5";
132
+ blue3: "#dbe6ff";
133
+ blue4: "#33b4ff";
134
+ blue5: "#30a2e6";
135
+ orange1: "#ff7200";
136
+ orange1Darker: "#cc5b00";
137
+ purple1: "#7357e8";
138
+ green1: "#3ec234";
139
+ green1Darker: "#38af2f";
140
+ pink1: "#ff388f";
141
+ red1: "#ea2700";
142
+ yellow1: "#ffde9d";
143
+ yellow2: "#e4a429";
144
+ yellow3: "#fff5db";
145
+ pinky1: "#f5c0b7";
146
+ pinky2: "#e07b67";
147
+ pinky3: "#ffe1db";
148
+ grey1: "#737373";
149
+ focusColor: "#dcaf00";
150
+ scrollbarsThumb: "#737373";
151
+ scrollbarsBg: "transparent";
152
+ tableStripedBg: "#fafafa";
153
+ toolButtonText: "#666e80";
154
+ };
155
+ }, import("../../../../node_modules/@stitches/react/types/config").DefaultThemeMap, {
156
+ mx: (value: string | number) => {
157
+ marginLeft: string | number;
158
+ marginRight: string | number;
159
+ };
160
+ my: (value: string | number) => {
161
+ marginTop: string | number;
162
+ marginBottom: string | number;
163
+ };
164
+ px: (value: string | number) => {
165
+ paddingLeft: string | number;
166
+ paddingRight: string | number;
167
+ };
168
+ py: (value: string | number) => {
169
+ paddingTop: string | number;
170
+ paddingBottom: string | number;
171
+ };
172
+ size: (value: string | number) => {
173
+ width: string | number;
174
+ height: string | number;
175
+ };
176
+ }>;
177
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
178
+ };
179
+ export { ModalButtons, };
2
180
  //# sourceMappingURL=ModalButtons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"ModalButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AA+B1C,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEhB,CAAC;AAEH,OAAO,EACH,YAAY,GACf,CAAC"}
@@ -1,2 +1,20 @@
1
- export { ModalButtons } from "./ModalButtons.styled.js";
1
+ import React, { forwardRef } from "react";
2
+ import { useForwardedRef } from "@bedrock-layout/use-forwarded-ref";
3
+ import { fnWithProps } from "../../../types/fnWithProps.js";
4
+ import { useRipple } from "../../../utils/useRipple.js";
5
+ import { Container, StyledButton } from "./ModalButtons.styled.js";
6
+ const Button = forwardRef((props, ref) => {
7
+ const { children, onPointerDown, onKeyDown, ...rest } = props;
8
+ const innerRef = useForwardedRef(ref);
9
+ const ripple = useRipple({ ref: innerRef, onPointerDown, onKeyDown });
10
+ return (React.createElement(StyledButton, { ref: innerRef, onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown, ...rest },
11
+ children,
12
+ ripple.ripples));
13
+ });
14
+ Button.displayName = "ModalButtons.Button";
15
+ Button.toString = () => StyledButton.toString();
16
+ const ModalButtons = fnWithProps(Container, {
17
+ Button,
18
+ });
19
+ export { ModalButtons, };
2
20
  //# sourceMappingURL=ModalButtons.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalButtons.js","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"ModalButtons.js","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIhE,MAAM,MAAM,GAAG,UAAU,CAAiC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACrE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAC9D,MAAM,QAAQ,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,CAAC;IAEtE,OAAO,CACH,oBAAC,YAAY,IACT,GAAG,EAAE,QAAQ,EACb,aAAa,EAAE,MAAM,CAAC,aAAa,EACnC,SAAS,EAAE,MAAM,CAAC,SAAS,KACvB,IAAI;QAEP,QAAQ;QACR,MAAM,CAAC,OAAO,CACJ,CAClB,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,WAAW,GAAG,qBAAqB,CAAC;AAC3C,MAAM,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;AAEhD,MAAM,YAAY,GAAG,WAAW,CAAC,SAAS,EAAE;IACxC,MAAM;CACT,CAAC,CAAC;AAEH,OAAO,EACH,YAAY,GACf,CAAC"}