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