@magmamath/students-features 0.9.0-rc21 → 0.9.0-rc23

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 (215) hide show
  1. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +6 -6
  2. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  3. package/dist/commonjs/features/keyboard/components/AlgebraLayout/{useLayoutOptions.js → helpers.js} +7 -8
  4. package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -0
  5. package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js +5 -3
  6. package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
  7. package/dist/commonjs/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js +2 -2
  8. package/dist/commonjs/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js.map +1 -1
  9. package/dist/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.js +9 -4
  10. package/dist/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.js.map +1 -1
  11. package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +5 -16
  12. package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
  13. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +5 -2
  14. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
  15. package/dist/commonjs/features/keyboard/components/Keyboard.js +8 -7
  16. package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
  17. package/dist/commonjs/features/keyboard/components/KeysList/KeysList.js +2 -4
  18. package/dist/commonjs/features/keyboard/components/KeysList/KeysList.js.map +1 -1
  19. package/dist/commonjs/features/keyboard/components/KeysList/helpers.js +4 -5
  20. package/dist/commonjs/features/keyboard/components/KeysList/helpers.js.map +1 -1
  21. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js +21 -8
  22. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js.map +1 -1
  23. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js +17 -19
  24. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
  25. package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js +39 -0
  26. package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js.map +1 -0
  27. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +7 -1
  28. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  29. package/dist/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.js +18 -1
  30. package/dist/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.js.map +1 -1
  31. package/dist/commonjs/features/keyboard/components/UnitsLayout/types.js +12 -0
  32. package/dist/commonjs/features/keyboard/components/UnitsLayout/types.js.map +1 -0
  33. package/dist/commonjs/features/keyboard/constants/{keysValues.js → keyboardGroupsByLocale.js} +1 -1
  34. package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -0
  35. package/dist/commonjs/features/keyboard/helpers.js +2 -2
  36. package/dist/commonjs/features/keyboard/helpers.js.map +1 -1
  37. package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js +9 -3
  38. package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
  39. package/dist/commonjs/features/keyboard/types/MathKeysGroups/geometry.js +7 -0
  40. package/dist/commonjs/features/keyboard/types/MathKeysGroups/geometry.js.map +1 -1
  41. package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js +117 -469
  42. package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
  43. package/dist/commonjs/shared/icons/MATH/BackspaceIcon/BackspaceIcon.js +1 -1
  44. package/dist/commonjs/shared/icons/MATH/BackspaceIcon/BackspaceIcon.js.map +1 -1
  45. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +6 -6
  46. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  47. package/dist/module/features/keyboard/components/AlgebraLayout/{useLayoutOptions.js → helpers.js} +5 -5
  48. package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -0
  49. package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js +4 -2
  50. package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
  51. package/dist/module/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js +2 -2
  52. package/dist/module/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js.map +1 -1
  53. package/dist/module/features/keyboard/components/BasicLayout/TimeBasicLayout.js +9 -4
  54. package/dist/module/features/keyboard/components/BasicLayout/TimeBasicLayout.js.map +1 -1
  55. package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +5 -16
  56. package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
  57. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +5 -2
  58. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
  59. package/dist/module/features/keyboard/components/Keyboard.js +9 -8
  60. package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
  61. package/dist/module/features/keyboard/components/KeysList/KeysList.js +3 -4
  62. package/dist/module/features/keyboard/components/KeysList/KeysList.js.map +1 -1
  63. package/dist/module/features/keyboard/components/KeysList/helpers.js +4 -5
  64. package/dist/module/features/keyboard/components/KeysList/helpers.js.map +1 -1
  65. package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js +22 -9
  66. package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js.map +1 -1
  67. package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js +16 -17
  68. package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
  69. package/dist/module/features/keyboard/components/UnitsLayout/{hooks/useLayoutSelectOptions.js → helpers.js} +7 -12
  70. package/dist/module/features/keyboard/components/UnitsLayout/helpers.js.map +1 -0
  71. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +8 -2
  72. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  73. package/dist/module/features/keyboard/components/UnitsLayout/keyboardGroups.js +17 -0
  74. package/dist/module/features/keyboard/components/UnitsLayout/keyboardGroups.js.map +1 -1
  75. package/dist/module/features/keyboard/components/UnitsLayout/types.js +8 -0
  76. package/dist/module/features/keyboard/components/UnitsLayout/types.js.map +1 -0
  77. package/dist/module/features/keyboard/constants/{keysValues.js → keyboardGroupsByLocale.js} +1 -1
  78. package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -0
  79. package/dist/module/features/keyboard/helpers.js +1 -1
  80. package/dist/module/features/keyboard/helpers.js.map +1 -1
  81. package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js +9 -3
  82. package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
  83. package/dist/module/features/keyboard/types/MathKeysGroups/geometry.js +7 -0
  84. package/dist/module/features/keyboard/types/MathKeysGroups/geometry.js.map +1 -1
  85. package/dist/module/features/keyboard/types/MathKeysGroups/units.js +117 -469
  86. package/dist/module/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
  87. package/dist/module/shared/icons/MATH/BackspaceIcon/BackspaceIcon.js +1 -1
  88. package/dist/module/shared/icons/MATH/BackspaceIcon/BackspaceIcon.js.map +1 -1
  89. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  90. package/dist/typescript/{module/features/keyboard/components/AlgebraLayout/useLayoutOptions.d.ts → commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts} +2 -2
  91. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -0
  92. package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
  93. package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.d.ts.map +1 -1
  94. package/dist/typescript/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
  95. package/dist/typescript/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
  96. package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts +2 -3
  97. package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts.map +1 -1
  98. package/dist/typescript/commonjs/features/keyboard/components/KeysList/KeysList.d.ts +2 -2
  99. package/dist/typescript/commonjs/features/keyboard/components/KeysList/KeysList.d.ts.map +1 -1
  100. package/dist/typescript/commonjs/features/keyboard/components/KeysList/helpers.d.ts +3 -4
  101. package/dist/typescript/commonjs/features/keyboard/components/KeysList/helpers.d.ts.map +1 -1
  102. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.d.ts.map +1 -1
  103. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
  104. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts +15 -0
  105. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -0
  106. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +48 -1
  107. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
  108. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts +4 -0
  109. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts.map +1 -1
  110. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/types.d.ts +5 -0
  111. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/types.d.ts.map +1 -0
  112. package/dist/typescript/commonjs/features/keyboard/constants/{keysValues.d.ts → keyboardGroupsByLocale.d.ts} +1 -1
  113. package/dist/typescript/commonjs/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -0
  114. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
  115. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/geometry.d.ts.map +1 -1
  116. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
  117. package/dist/typescript/commonjs/features/keyboard/types/types.d.ts +2 -1
  118. package/dist/typescript/commonjs/features/keyboard/types/types.d.ts.map +1 -1
  119. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  120. package/dist/typescript/{commonjs/features/keyboard/components/AlgebraLayout/useLayoutOptions.d.ts → module/features/keyboard/components/AlgebraLayout/helpers.d.ts} +2 -2
  121. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -0
  122. package/dist/typescript/module/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
  123. package/dist/typescript/module/features/keyboard/components/BasicLayout/TimeBasicLayout.d.ts.map +1 -1
  124. package/dist/typescript/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
  125. package/dist/typescript/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
  126. package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts +2 -3
  127. package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts.map +1 -1
  128. package/dist/typescript/module/features/keyboard/components/KeysList/KeysList.d.ts +2 -2
  129. package/dist/typescript/module/features/keyboard/components/KeysList/KeysList.d.ts.map +1 -1
  130. package/dist/typescript/module/features/keyboard/components/KeysList/helpers.d.ts +3 -4
  131. package/dist/typescript/module/features/keyboard/components/KeysList/helpers.d.ts.map +1 -1
  132. package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitTabs.d.ts.map +1 -1
  133. package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
  134. package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts +15 -0
  135. package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -0
  136. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +48 -1
  137. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
  138. package/dist/typescript/module/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts +4 -0
  139. package/dist/typescript/module/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts.map +1 -1
  140. package/dist/typescript/module/features/keyboard/components/UnitsLayout/types.d.ts +5 -0
  141. package/dist/typescript/module/features/keyboard/components/UnitsLayout/types.d.ts.map +1 -0
  142. package/dist/typescript/module/features/keyboard/constants/{keysValues.d.ts → keyboardGroupsByLocale.d.ts} +1 -1
  143. package/dist/typescript/module/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -0
  144. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
  145. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/geometry.d.ts.map +1 -1
  146. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
  147. package/dist/typescript/module/features/keyboard/types/types.d.ts +2 -1
  148. package/dist/typescript/module/features/keyboard/types/types.d.ts.map +1 -1
  149. package/package.json +1 -1
  150. package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +9 -8
  151. package/src/features/keyboard/components/AlgebraLayout/helpers.tsx +39 -0
  152. package/src/features/keyboard/components/BasicLayout/BasicLayout.tsx +4 -2
  153. package/src/features/keyboard/components/BasicLayout/CurrencyBasicLayout.tsx +2 -2
  154. package/src/features/keyboard/components/BasicLayout/TimeBasicLayout.tsx +8 -3
  155. package/src/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.tsx +8 -19
  156. package/src/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.tsx +8 -5
  157. package/src/features/keyboard/components/Keyboard.tsx +11 -10
  158. package/src/features/keyboard/components/KeysList/KeysList.tsx +3 -4
  159. package/src/features/keyboard/components/KeysList/helpers.ts +5 -10
  160. package/src/features/keyboard/components/UnitsLayout/UnitTabs.tsx +28 -6
  161. package/src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx +12 -22
  162. package/src/features/keyboard/components/UnitsLayout/{hooks/useLayoutSelectOptions.tsx → helpers.tsx} +6 -12
  163. package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +5 -3
  164. package/src/features/keyboard/components/UnitsLayout/keyboardGroups.ts +25 -0
  165. package/src/features/keyboard/components/UnitsLayout/types.ts +4 -0
  166. package/src/features/keyboard/helpers.ts +1 -1
  167. package/src/features/keyboard/types/MathKeysGroups/basicOperators.tsx +6 -0
  168. package/src/features/keyboard/types/MathKeysGroups/geometry.tsx +7 -0
  169. package/src/features/keyboard/types/MathKeysGroups/units.tsx +102 -468
  170. package/src/features/keyboard/types/types.ts +2 -1
  171. package/src/shared/icons/MATH/BackspaceIcon/BackspaceIcon.tsx +1 -1
  172. package/dist/commonjs/features/keyboard/components/AlgebraLayout/useLayoutOptions.js.map +0 -1
  173. package/dist/commonjs/features/keyboard/components/UnitsLayout/constants.js +0 -25
  174. package/dist/commonjs/features/keyboard/components/UnitsLayout/constants.js.map +0 -1
  175. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useLayoutSelectOptions.js +0 -44
  176. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useLayoutSelectOptions.js.map +0 -1
  177. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useTabKeys.js +0 -19
  178. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useTabKeys.js.map +0 -1
  179. package/dist/commonjs/features/keyboard/constants/keysValues.js.map +0 -1
  180. package/dist/commonjs/features/keyboard/constants/spreadsheetDisabledKeys.js +0 -9
  181. package/dist/commonjs/features/keyboard/constants/spreadsheetDisabledKeys.js.map +0 -1
  182. package/dist/module/features/keyboard/components/AlgebraLayout/useLayoutOptions.js.map +0 -1
  183. package/dist/module/features/keyboard/components/UnitsLayout/constants.js +0 -21
  184. package/dist/module/features/keyboard/components/UnitsLayout/constants.js.map +0 -1
  185. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useLayoutSelectOptions.js.map +0 -1
  186. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useTabKeys.js +0 -14
  187. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useTabKeys.js.map +0 -1
  188. package/dist/module/features/keyboard/constants/keysValues.js.map +0 -1
  189. package/dist/module/features/keyboard/constants/spreadsheetDisabledKeys.js +0 -5
  190. package/dist/module/features/keyboard/constants/spreadsheetDisabledKeys.js.map +0 -1
  191. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/useLayoutOptions.d.ts.map +0 -1
  192. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/constants.d.ts +0 -6
  193. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/constants.d.ts.map +0 -1
  194. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useLayoutSelectOptions.d.ts +0 -18
  195. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useLayoutSelectOptions.d.ts.map +0 -1
  196. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useTabKeys.d.ts +0 -3
  197. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useTabKeys.d.ts.map +0 -1
  198. package/dist/typescript/commonjs/features/keyboard/constants/keysValues.d.ts.map +0 -1
  199. package/dist/typescript/commonjs/features/keyboard/constants/spreadsheetDisabledKeys.d.ts +0 -3
  200. package/dist/typescript/commonjs/features/keyboard/constants/spreadsheetDisabledKeys.d.ts.map +0 -1
  201. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/useLayoutOptions.d.ts.map +0 -1
  202. package/dist/typescript/module/features/keyboard/components/UnitsLayout/constants.d.ts +0 -6
  203. package/dist/typescript/module/features/keyboard/components/UnitsLayout/constants.d.ts.map +0 -1
  204. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useLayoutSelectOptions.d.ts +0 -18
  205. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useLayoutSelectOptions.d.ts.map +0 -1
  206. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useTabKeys.d.ts +0 -3
  207. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useTabKeys.d.ts.map +0 -1
  208. package/dist/typescript/module/features/keyboard/constants/keysValues.d.ts.map +0 -1
  209. package/dist/typescript/module/features/keyboard/constants/spreadsheetDisabledKeys.d.ts +0 -3
  210. package/dist/typescript/module/features/keyboard/constants/spreadsheetDisabledKeys.d.ts.map +0 -1
  211. package/src/features/keyboard/components/AlgebraLayout/useLayoutOptions.tsx +0 -42
  212. package/src/features/keyboard/components/UnitsLayout/constants.ts +0 -33
  213. package/src/features/keyboard/components/UnitsLayout/hooks/useTabKeys.ts +0 -17
  214. package/src/features/keyboard/constants/spreadsheetDisabledKeys.ts +0 -47
  215. /package/src/features/keyboard/constants/{keysValues.ts → keyboardGroupsByLocale.ts} +0 -0
@@ -9,6 +9,7 @@ import { YenIcon } from "../../../../shared/icons/MATH/YenIcon/YenIcon.js";
9
9
  import { CentIcon } from "../../../../shared/icons/MATH/CentIcon/CentIcon.js";
10
10
  import { DEFAULT_KEY_ICON_PROPS } from "../../constants/constants.js";
11
11
  import React from 'react';
12
+ import { IS_MOBILE } from '@magmamath/react-native-ui';
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
13
14
  export let MathCurrencyUnit = /*#__PURE__*/function (MathCurrencyUnit) {
14
15
  MathCurrencyUnit["KRONE"] = "KRONE";
@@ -100,6 +101,48 @@ export let MathTimeUnit = /*#__PURE__*/function (MathTimeUnit) {
100
101
  MathTimeUnit["PM"] = "PM";
101
102
  return MathTimeUnit;
102
103
  }({});
104
+ const BASE_TEXT_STYLE = {
105
+ fontSize: 14,
106
+ fontWeight: 700
107
+ };
108
+ const STYLE_PRESETS = {
109
+ SMALL: {
110
+ button: {
111
+ width: IS_MOBILE ? 44 : 40
112
+ },
113
+ container: {
114
+ flexBasis: IS_MOBILE ? 48 : undefined
115
+ },
116
+ text: BASE_TEXT_STYLE
117
+ },
118
+ MEDIUM: {
119
+ button: {
120
+ width: IS_MOBILE ? 50 : 45
121
+ },
122
+ container: {
123
+ flexBasis: IS_MOBILE ? 54 : undefined
124
+ },
125
+ text: BASE_TEXT_STYLE
126
+ },
127
+ LARGE: {
128
+ button: {
129
+ width: IS_MOBILE ? 54 : 48
130
+ },
131
+ container: {
132
+ flexBasis: IS_MOBILE ? 58 : undefined
133
+ },
134
+ text: BASE_TEXT_STYLE
135
+ },
136
+ XL: {
137
+ button: {
138
+ width: IS_MOBILE ? 56 : 52
139
+ },
140
+ container: {
141
+ flexBasis: IS_MOBILE ? 60 : undefined
142
+ },
143
+ text: BASE_TEXT_STYLE
144
+ }
145
+ };
103
146
  export const MATH_CURRENCY_UNITS = {
104
147
  [MathCurrencyUnit.KRONE]: {
105
148
  icon: /*#__PURE__*/_jsx(KroneIcon, {
@@ -113,7 +156,8 @@ export const MATH_CURRENCY_UNITS = {
113
156
  ...DEFAULT_KEY_ICON_PROPS
114
157
  }),
115
158
  mathliveValue: '\\$',
116
- katexValue: '\$'
159
+ katexValue: '\$',
160
+ mathQuillValue: '\\$'
117
161
  },
118
162
  [MathCurrencyUnit.EURO]: {
119
163
  icon: /*#__PURE__*/_jsx(EuroIcon, {
@@ -156,169 +200,74 @@ export const MATH_LENGTH_UNITS = {
156
200
  label: 'km',
157
201
  mathliveValue: 'km',
158
202
  katexValue: 'km',
159
- style: {
160
- button: {
161
- width: 45
162
- },
163
- text: {
164
- fontSize: 14,
165
- fontWeight: 700
166
- }
167
- }
203
+ style: STYLE_PRESETS.MEDIUM
168
204
  },
169
205
  [MathLengthUnit.METER]: {
170
206
  label: 'm',
171
207
  mathliveValue: '\\mathrm{m}',
172
208
  katexValue: 'm',
173
- style: {
174
- button: {
175
- width: 45
176
- },
177
- text: {
178
- fontSize: 14,
179
- fontWeight: 700
180
- }
181
- }
209
+ style: STYLE_PRESETS.MEDIUM
182
210
  },
183
211
  [MathLengthUnit.DECIMETER]: {
184
212
  label: 'dm',
185
213
  mathliveValue: '\\mathrm{dm}',
186
214
  katexValue: 'dm',
187
- style: {
188
- button: {
189
- width: 45
190
- },
191
- text: {
192
- fontSize: 14,
193
- fontWeight: 700
194
- }
195
- }
215
+ style: STYLE_PRESETS.MEDIUM
196
216
  },
197
217
  [MathLengthUnit.CENTIMETER]: {
198
218
  label: 'cm',
199
219
  mathliveValue: '\\mathrm{cm}',
200
220
  katexValue: 'cm',
201
- style: {
202
- button: {
203
- width: 45
204
- },
205
- text: {
206
- fontSize: 14,
207
- fontWeight: 700
208
- }
209
- }
221
+ style: STYLE_PRESETS.MEDIUM
210
222
  },
211
223
  [MathLengthUnit.MILLIMETER]: {
212
224
  label: 'mm',
213
225
  mathliveValue: '\\mathrm{mm}',
214
226
  katexValue: 'mm',
215
- style: {
216
- button: {
217
- width: 45
218
- },
219
- text: {
220
- fontSize: 14,
221
- fontWeight: 700
222
- }
223
- }
227
+ style: STYLE_PRESETS.MEDIUM
224
228
  },
225
229
  [MathLengthUnit.HECTARE]: {
226
230
  label: 'ha',
227
231
  mathliveValue: '\\mathrm{ha}',
228
232
  katexValue: 'ha',
229
- style: {
230
- button: {
231
- width: 45
232
- },
233
- text: {
234
- fontSize: 14,
235
- fontWeight: 700
236
- }
237
- }
233
+ style: STYLE_PRESETS.MEDIUM
238
234
  },
239
235
  [MathLengthUnit.INCH]: {
240
236
  label: 'in',
241
237
  mathliveValue: '\\mathrm{in}',
242
238
  katexValue: 'in',
243
- style: {
244
- button: {
245
- width: 40
246
- },
247
- text: {
248
- fontSize: 14,
249
- fontWeight: 700
250
- }
251
- }
239
+ mathQuillValue: '\\in',
240
+ style: STYLE_PRESETS.SMALL
252
241
  },
253
242
  [MathLengthUnit.FOOT]: {
254
243
  label: 'ft',
255
244
  mathliveValue: '\\mathrm{ft}',
256
245
  katexValue: 'ft',
257
- style: {
258
- button: {
259
- width: 40
260
- },
261
- text: {
262
- fontSize: 14,
263
- fontWeight: 700
264
- }
265
- }
246
+ style: STYLE_PRESETS.SMALL
266
247
  },
267
248
  [MathLengthUnit.YARD]: {
268
249
  label: 'yd',
269
250
  mathliveValue: '\\mathrm{yd}',
270
251
  katexValue: 'yd',
271
- style: {
272
- button: {
273
- width: 40
274
- },
275
- text: {
276
- fontSize: 14,
277
- fontWeight: 700
278
- }
279
- }
252
+ style: STYLE_PRESETS.SMALL
280
253
  },
281
254
  [MathLengthUnit.YARDS]: {
282
255
  label: 'yds',
283
256
  mathliveValue: '\\mathrm{yds}',
284
257
  katexValue: 'yds',
285
- style: {
286
- button: {
287
- width: 40
288
- },
289
- text: {
290
- fontSize: 14,
291
- fontWeight: 700
292
- }
293
- }
258
+ style: STYLE_PRESETS.SMALL
294
259
  },
295
260
  [MathLengthUnit.MILE]: {
296
261
  label: 'mi',
297
262
  mathliveValue: '\\mathrm{mi}',
298
263
  katexValue: 'mi',
299
- style: {
300
- button: {
301
- width: 40
302
- },
303
- text: {
304
- fontSize: 14,
305
- fontWeight: 700
306
- }
307
- }
264
+ style: STYLE_PRESETS.SMALL
308
265
  },
309
266
  [MathLengthUnit.MILE_SE]: {
310
267
  label: 'mil',
311
268
  mathliveValue: '\\mathrm{mil}',
312
269
  katexValue: 'mil',
313
- style: {
314
- button: {
315
- width: 45
316
- },
317
- text: {
318
- fontSize: 14,
319
- fontWeight: 700
320
- }
321
- }
270
+ style: STYLE_PRESETS.MEDIUM
322
271
  }
323
272
  };
324
273
  export const MATH_AREA_UNITS = {
@@ -326,141 +275,70 @@ export const MATH_AREA_UNITS = {
326
275
  label: 'km²',
327
276
  mathliveValue: '\\mathrm{km}^2',
328
277
  katexValue: 'km^2',
329
- style: {
330
- button: {
331
- width: 48
332
- },
333
- text: {
334
- fontSize: 14,
335
- fontWeight: 700
336
- }
337
- }
278
+ mathQuillValue: 'km^{2}',
279
+ style: STYLE_PRESETS.LARGE
338
280
  },
339
281
  [MathAreaUnit.SQUARE_METER]: {
340
282
  label: 'm²',
341
283
  mathliveValue: '\\mathrm{m}^2',
342
284
  katexValue: 'm^2',
343
- style: {
344
- button: {
345
- width: 45
346
- },
347
- text: {
348
- fontSize: 14,
349
- fontWeight: 700
350
- }
351
- }
285
+ mathQuillValue: 'm^{2}',
286
+ style: STYLE_PRESETS.MEDIUM
352
287
  },
353
288
  [MathAreaUnit.SQUARE_DECIMETER]: {
354
289
  label: 'dm²',
355
290
  mathliveValue: '\\mathrm{dm}^2',
356
291
  katexValue: 'dm^2',
357
- style: {
358
- button: {
359
- width: 48
360
- },
361
- text: {
362
- fontSize: 14,
363
- fontWeight: 700
364
- }
365
- }
292
+ mathQuillValue: 'dm^{2}',
293
+ style: STYLE_PRESETS.LARGE
366
294
  },
367
295
  [MathAreaUnit.SQUARE_CENTIMETER]: {
368
296
  label: 'cm²',
369
297
  mathliveValue: '\\mathrm{cm}^2',
370
298
  katexValue: 'cm^2',
371
- style: {
372
- button: {
373
- width: 48
374
- },
375
- text: {
376
- fontSize: 14,
377
- fontWeight: 700
378
- }
379
- }
299
+ mathQuillValue: 'cm^{2}',
300
+ style: STYLE_PRESETS.LARGE
380
301
  },
381
302
  [MathAreaUnit.SQUARE_MILLIMETER]: {
382
303
  label: 'mm²',
383
304
  mathliveValue: '\\mathrm{mm}^2',
384
305
  katexValue: 'mm^2',
385
- style: {
386
- button: {
387
- width: 48
388
- },
389
- text: {
390
- fontSize: 14,
391
- fontWeight: 700
392
- }
393
- }
306
+ mathQuillValue: 'mm^{2}',
307
+ style: STYLE_PRESETS.LARGE
394
308
  },
395
309
  [MathAreaUnit.SQUARE_INCH]: {
396
310
  label: 'in²',
397
311
  mathliveValue: '\\mathrm{in}^2',
398
312
  katexValue: 'in^2',
399
- style: {
400
- button: {
401
- width: 43
402
- },
403
- text: {
404
- fontSize: 14,
405
- fontWeight: 700
406
- }
407
- }
313
+ mathQuillValue: 'in^{2}',
314
+ style: STYLE_PRESETS.SMALL
408
315
  },
409
316
  [MathAreaUnit.SQUARE_FOOT]: {
410
317
  label: 'ft²',
411
318
  mathliveValue: '\\mathrm{ft}^2',
412
319
  katexValue: 'ft^2',
413
- style: {
414
- button: {
415
- width: 43
416
- },
417
- text: {
418
- fontSize: 14,
419
- fontWeight: 700
420
- }
421
- }
320
+ mathQuillValue: 'ft^{2}',
321
+ style: STYLE_PRESETS.SMALL
422
322
  },
423
323
  [MathAreaUnit.SQUARE_MILE]: {
424
324
  label: 'mi²',
425
325
  mathliveValue: '\\mathrm{mi}^2',
426
326
  katexValue: 'mi^2',
427
- style: {
428
- button: {
429
- width: 43
430
- },
431
- text: {
432
- fontSize: 14,
433
- fontWeight: 700
434
- }
435
- }
327
+ mathQuillValue: 'mi^{2}',
328
+ style: STYLE_PRESETS.SMALL
436
329
  },
437
330
  [MathAreaUnit.SQUARE_YARD]: {
438
331
  label: 'yd²',
439
332
  mathliveValue: '\\mathrm{yd}^2',
440
333
  katexValue: 'yd^2',
441
- style: {
442
- button: {
443
- width: 43
444
- },
445
- text: {
446
- fontSize: 14,
447
- fontWeight: 700
448
- }
449
- }
334
+ mathQuillValue: 'yd^{2}',
335
+ style: STYLE_PRESETS.MEDIUM
450
336
  },
451
337
  [MathAreaUnit.HECTARE]: {
452
338
  label: 'ha',
453
339
  mathliveValue: '\\mathrm{ha}',
454
340
  katexValue: 'ha',
455
- style: {
456
- button: {
457
- width: 40
458
- },
459
- text: {
460
- fontSize: 14,
461
- fontWeight: 700
462
- }
463
- }
341
+ style: STYLE_PRESETS.SMALL
464
342
  }
465
343
  };
466
344
  export const MATH_VOLUME_UNITS = {
@@ -468,281 +346,131 @@ export const MATH_VOLUME_UNITS = {
468
346
  label: 'km³',
469
347
  mathliveValue: '\\mathrm{km}^3',
470
348
  katexValue: 'km^3',
471
- style: {
472
- button: {
473
- width: 48
474
- },
475
- text: {
476
- fontSize: 14,
477
- fontWeight: 700
478
- }
479
- }
349
+ mathQuillValue: 'km^{3}',
350
+ style: STYLE_PRESETS.LARGE
480
351
  },
481
352
  [MathVolumeUnit.CUBIC_METER]: {
482
353
  label: 'm³',
483
354
  mathliveValue: '\\mathrm{m}^3',
484
355
  katexValue: 'm^3',
485
- style: {
486
- button: {
487
- width: 48
488
- },
489
- text: {
490
- fontSize: 14,
491
- fontWeight: 700
492
- }
493
- }
356
+ mathQuillValue: 'm^{3}',
357
+ style: STYLE_PRESETS.LARGE
494
358
  },
495
359
  [MathVolumeUnit.CUBIC_DECIMETER]: {
496
360
  label: 'dm³',
497
361
  mathliveValue: '\\mathrm{dm}^3',
498
362
  katexValue: 'dm^3',
499
- style: {
500
- button: {
501
- width: 48
502
- },
503
- text: {
504
- fontSize: 14,
505
- fontWeight: 700
506
- }
507
- }
363
+ mathQuillValue: 'dm^{3}',
364
+ style: STYLE_PRESETS.LARGE
508
365
  },
509
366
  [MathVolumeUnit.CUBIC_CENTIMETER]: {
510
367
  label: 'cm³',
511
368
  mathliveValue: '\\mathrm{cm}^3',
512
369
  katexValue: 'cm^3',
513
- style: {
514
- button: {
515
- width: 48
516
- },
517
- text: {
518
- fontSize: 14,
519
- fontWeight: 700
520
- }
521
- }
370
+ mathQuillValue: 'cm^{3}',
371
+ style: STYLE_PRESETS.LARGE
522
372
  },
523
373
  [MathVolumeUnit.CUBIC_MILLIMETER]: {
524
374
  label: 'mm³',
525
375
  mathliveValue: '\\mathrm{mm}^3',
526
376
  katexValue: 'mm^3',
527
- style: {
528
- button: {
529
- width: 48
530
- },
531
- text: {
532
- fontSize: 14,
533
- fontWeight: 700
534
- }
535
- }
377
+ mathQuillValue: 'mm^{3}',
378
+ style: STYLE_PRESETS.LARGE
536
379
  },
537
380
  [MathVolumeUnit.CUBIC_INCH]: {
538
381
  label: 'in³',
539
382
  mathliveValue: '\\mathrm{in}^3',
540
383
  katexValue: 'in^3',
541
- style: {
542
- button: {
543
- width: 43
544
- },
545
- text: {
546
- fontSize: 14,
547
- fontWeight: 700
548
- }
549
- }
384
+ mathQuillValue: 'in^{3}',
385
+ style: STYLE_PRESETS.SMALL
550
386
  },
551
387
  [MathVolumeUnit.CUBIC_FOOT]: {
552
388
  label: 'ft³',
553
389
  mathliveValue: '\\mathrm{ft}^3',
554
390
  katexValue: 'ft^3',
555
- style: {
556
- button: {
557
- width: 43
558
- },
559
- text: {
560
- fontSize: 14,
561
- fontWeight: 700
562
- }
563
- }
391
+ mathQuillValue: 'ft^{3}',
392
+ style: STYLE_PRESETS.SMALL
564
393
  },
565
394
  [MathVolumeUnit.CUBIC_MILE]: {
566
395
  label: 'mi³',
567
396
  mathliveValue: '\\mathrm{mi}^3',
568
397
  katexValue: 'mi^3',
569
- style: {
570
- button: {
571
- width: 48
572
- },
573
- text: {
574
- fontSize: 14,
575
- fontWeight: 700
576
- }
577
- }
398
+ mathQuillValue: 'mi^{3}',
399
+ style: STYLE_PRESETS.LARGE
578
400
  },
579
401
  [MathVolumeUnit.CUBIC_YARD]: {
580
402
  label: 'yd³',
581
403
  mathliveValue: '\\mathrm{yd}^3',
582
404
  katexValue: 'yd^3',
583
- style: {
584
- button: {
585
- width: 43
586
- },
587
- text: {
588
- fontSize: 14,
589
- fontWeight: 700
590
- }
591
- }
405
+ mathQuillValue: 'yd^{3}',
406
+ style: STYLE_PRESETS.MEDIUM
592
407
  },
593
408
  [MathVolumeUnit.MILLILITER]: {
594
409
  label: 'ml',
595
410
  mathliveValue: '\\mathrm{mL}',
596
411
  katexValue: 'ml',
597
- style: {
598
- button: {
599
- width: 40
600
- },
601
- text: {
602
- fontSize: 14,
603
- fontWeight: 700
604
- }
605
- }
412
+ style: STYLE_PRESETS.SMALL
606
413
  },
607
414
  [MathVolumeUnit.LITER]: {
608
415
  label: 'L',
609
416
  mathliveValue: '\\mathrm{L}',
610
417
  katexValue: 'L',
611
- style: {
612
- button: {
613
- width: 40
614
- },
615
- text: {
616
- fontSize: 14,
617
- fontWeight: 700
618
- }
619
- }
418
+ style: STYLE_PRESETS.SMALL
620
419
  },
621
420
  [MathVolumeUnit.MILLILITER_SE]: {
622
421
  label: 'ml',
623
422
  mathliveValue: '\\mathrm{ml}',
624
423
  katexValue: 'ml',
625
- style: {
626
- button: {
627
- width: 40
628
- },
629
- text: {
630
- fontSize: 14,
631
- fontWeight: 700
632
- }
633
- }
424
+ style: STYLE_PRESETS.SMALL
634
425
  },
635
426
  [MathVolumeUnit.LITER_SE]: {
636
427
  label: 'l',
637
428
  mathliveValue: '\\mathrm{l}',
638
429
  katexValue: 'l',
639
- style: {
640
- button: {
641
- width: 40
642
- },
643
- text: {
644
- fontSize: 14,
645
- fontWeight: 700
646
- }
647
- }
430
+ style: STYLE_PRESETS.SMALL
648
431
  },
649
432
  [MathVolumeUnit.DL]: {
650
433
  label: 'dl',
651
434
  mathliveValue: '\\mathrm{dl}',
652
435
  katexValue: 'dl',
653
- style: {
654
- button: {
655
- width: 40
656
- },
657
- text: {
658
- fontSize: 14,
659
- fontWeight: 700
660
- }
661
- }
436
+ style: STYLE_PRESETS.SMALL
662
437
  },
663
438
  [MathVolumeUnit.CUP]: {
664
439
  label: 'cup',
665
440
  mathliveValue: '\\mathrm{cup}',
666
441
  katexValue: 'cup',
667
- style: {
668
- button: {
669
- width: 45
670
- },
671
- text: {
672
- fontSize: 14,
673
- fontWeight: 700
674
- }
675
- }
442
+ mathQuillValue: '\\cup',
443
+ style: STYLE_PRESETS.MEDIUM
676
444
  },
677
445
  [MathVolumeUnit.GAL]: {
678
446
  label: 'gal',
679
447
  mathliveValue: '\\mathrm{gal}',
680
448
  katexValue: 'gal',
681
- style: {
682
- button: {
683
- width: 44
684
- },
685
- text: {
686
- fontSize: 14,
687
- fontWeight: 700
688
- }
689
- }
449
+ style: STYLE_PRESETS.MEDIUM
690
450
  },
691
451
  [MathVolumeUnit.PINT]: {
692
452
  label: 'pt',
693
453
  mathliveValue: '\\mathrm{pt}',
694
454
  katexValue: 'pt',
695
- style: {
696
- button: {
697
- width: 48
698
- },
699
- text: {
700
- fontSize: 14,
701
- fontWeight: 700
702
- }
703
- }
455
+ style: STYLE_PRESETS.LARGE
704
456
  },
705
457
  [MathVolumeUnit.QUART]: {
706
458
  label: 'qt',
707
459
  mathliveValue: '\\mathrm{qt}',
708
460
  katexValue: 'qt',
709
- style: {
710
- button: {
711
- width: 44
712
- },
713
- text: {
714
- fontSize: 14,
715
- fontWeight: 700
716
- }
717
- }
461
+ style: STYLE_PRESETS.MEDIUM
718
462
  },
719
463
  [MathVolumeUnit.FLOZ]: {
720
464
  label: 'floz',
721
465
  mathliveValue: '\\mathrm{floz}',
722
466
  katexValue: 'floz',
723
- style: {
724
- button: {
725
- width: 52
726
- },
727
- text: {
728
- fontSize: 14,
729
- fontWeight: 700
730
- }
731
- }
467
+ style: STYLE_PRESETS.XL
732
468
  },
733
469
  [MathVolumeUnit.CL]: {
734
470
  label: 'cl',
735
471
  mathliveValue: '\\mathrm{cl}',
736
472
  katexValue: 'cl',
737
- style: {
738
- button: {
739
- width: 40
740
- },
741
- text: {
742
- fontSize: 14,
743
- fontWeight: 700
744
- }
745
- }
473
+ style: STYLE_PRESETS.SMALL
746
474
  }
747
475
  };
748
476
  export const MATH_WEIGHT_UNITS = {
@@ -750,141 +478,61 @@ export const MATH_WEIGHT_UNITS = {
750
478
  label: 'kg',
751
479
  mathliveValue: '\\mathrm{kg}',
752
480
  katexValue: 'kg',
753
- style: {
754
- button: {
755
- width: 45
756
- },
757
- text: {
758
- fontSize: 14,
759
- fontWeight: 700
760
- }
761
- }
481
+ style: STYLE_PRESETS.MEDIUM
762
482
  },
763
483
  [MathWeightUnit.G]: {
764
484
  label: 'g',
765
485
  mathliveValue: '\\mathrm{g}',
766
486
  katexValue: 'g',
767
- style: {
768
- button: {
769
- width: 40
770
- },
771
- text: {
772
- fontSize: 14,
773
- fontWeight: 700
774
- }
775
- }
487
+ style: STYLE_PRESETS.SMALL
776
488
  },
777
489
  [MathWeightUnit.MG]: {
778
490
  label: 'mg',
779
491
  mathliveValue: '\\mathrm{mg}',
780
492
  katexValue: 'mg',
781
- style: {
782
- button: {
783
- width: 45
784
- },
785
- text: {
786
- fontSize: 14,
787
- fontWeight: 700
788
- }
789
- }
493
+ style: STYLE_PRESETS.MEDIUM
790
494
  },
791
495
  [MathWeightUnit.TON_SE]: {
792
496
  label: 'ton',
793
497
  mathliveValue: '\\mathrm{ton}',
794
498
  katexValue: 'ton',
795
- style: {
796
- button: {
797
- width: 45
798
- },
799
- text: {
800
- fontSize: 14,
801
- fontWeight: 700
802
- }
803
- }
499
+ style: STYLE_PRESETS.MEDIUM
804
500
  },
805
501
  [MathWeightUnit.TON]: {
806
502
  label: 'T',
807
503
  mathliveValue: '\\mathrm{T}',
808
504
  katexValue: 'T',
809
- style: {
810
- button: {
811
- width: 45
812
- },
813
- text: {
814
- fontSize: 14,
815
- fontWeight: 700
816
- }
817
- }
505
+ style: STYLE_PRESETS.MEDIUM
818
506
  },
819
507
  [MathWeightUnit.LB]: {
820
508
  label: 'lb',
821
509
  mathliveValue: '\\mathrm{lb}',
822
510
  katexValue: 'lb',
823
- style: {
824
- button: {
825
- width: 40
826
- },
827
- text: {
828
- fontSize: 14,
829
- fontWeight: 700
830
- }
831
- }
511
+ style: STYLE_PRESETS.SMALL
832
512
  },
833
513
  [MathWeightUnit.OZ]: {
834
514
  label: 'oz',
835
515
  mathliveValue: '\\mathrm{oz}',
836
516
  katexValue: 'oz',
837
- style: {
838
- button: {
839
- width: 40
840
- },
841
- text: {
842
- fontSize: 14,
843
- fontWeight: 700
844
- }
845
- }
517
+ style: STYLE_PRESETS.SMALL
846
518
  },
847
519
  [MathWeightUnit.GAL]: {
848
520
  label: 'gal',
849
521
  mathliveValue: '\\mathrm{gal}',
850
522
  katexValue: 'gal',
851
- style: {
852
- button: {
853
- width: 44
854
- },
855
- text: {
856
- fontSize: 14,
857
- fontWeight: 700
858
- }
859
- }
523
+ style: STYLE_PRESETS.MEDIUM
860
524
  },
861
525
  [MathWeightUnit.HG]: {
862
526
  label: 'hg',
863
527
  mathliveValue: '\\mathrm{hg}',
864
528
  katexValue: 'hg',
865
- style: {
866
- button: {
867
- width: 45
868
- },
869
- text: {
870
- fontSize: 14,
871
- fontWeight: 700
872
- }
873
- }
529
+ style: STYLE_PRESETS.MEDIUM
874
530
  },
875
531
  [MathWeightUnit.T]: {
876
532
  label: 't',
877
533
  mathliveValue: '\\mathrm{t}',
878
534
  katexValue: 't',
879
- style: {
880
- button: {
881
- width: 45
882
- },
883
- text: {
884
- fontSize: 14,
885
- fontWeight: 700
886
- }
887
- }
535
+ style: STYLE_PRESETS.MEDIUM
888
536
  }
889
537
  };
890
538
  export const MATH_TIME_UNITS = {