@atom.io/template-solid-lossless-numbers 0.0.56 → 0.0.57
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/CHANGELOG.md +8 -0
- package/package.json +3 -3
- package/src/App.tsx +4 -8
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atom.io/template-solid-lossless-numbers",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.57",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/jeremybanka/atom.io.git",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@atom.io/solid": "0.1.5",
|
|
13
|
-
"atom.io": "0.54.
|
|
13
|
+
"atom.io": "0.54.7",
|
|
14
14
|
"rationality": "0.1.1",
|
|
15
15
|
"solid-js": "1.9.18"
|
|
16
16
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dprint": "0.64.3",
|
|
25
25
|
"dprint-plugin-malva": "0.16.0",
|
|
26
26
|
"eslint": "10.14.0",
|
|
27
|
-
"lasertag": "0.8.
|
|
27
|
+
"lasertag": "0.8.11",
|
|
28
28
|
"oxlint": "1.92.0",
|
|
29
29
|
"oxlint-tsgolint": "7.0.2006",
|
|
30
30
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
package/src/App.tsx
CHANGED
|
@@ -157,7 +157,7 @@ export function App(): JSX.Element {
|
|
|
157
157
|
)
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
|
|
160
|
+
function RationalBreakdown(props: { key: RationalKey }): JSX.Element {
|
|
161
161
|
const rational = useO(rationalAtoms, props.key)
|
|
162
162
|
const simplified = useO(simplifiedSelectors, props.key)
|
|
163
163
|
const float = useO(floatSelectors, props.key)
|
|
@@ -235,7 +235,7 @@ export function RationalBreakdown(props: { key: RationalKey }): JSX.Element {
|
|
|
235
235
|
)
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
|
|
238
|
+
function Fraction(props: {
|
|
239
239
|
numerator: bigint
|
|
240
240
|
denominator: bigint
|
|
241
241
|
}): JSX.Element {
|
|
@@ -254,11 +254,7 @@ export function Fraction(props: {
|
|
|
254
254
|
)
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
|
|
258
|
-
key,
|
|
259
|
-
}: {
|
|
260
|
-
key: RationalKey
|
|
261
|
-
}): JSX.Element {
|
|
257
|
+
function RationalCombineFields({ key }: { key: RationalKey }): JSX.Element {
|
|
262
258
|
const numeratorAtom = findState(newNumeratorAtoms, key)
|
|
263
259
|
const denominatorAtom = findState(newDenominatorAtoms, key)
|
|
264
260
|
return (
|
|
@@ -269,7 +265,7 @@ export function RationalCombineFields({
|
|
|
269
265
|
)
|
|
270
266
|
}
|
|
271
267
|
|
|
272
|
-
|
|
268
|
+
function RationalFields({
|
|
273
269
|
numeratorAtom,
|
|
274
270
|
denominatorAtom,
|
|
275
271
|
}: {
|