Skip to content

Commit beaedd2

Browse files
authored
improve task list appearance in READMEs, update Nightly link, bumps (#2244)
1 parent fc861ed commit beaedd2

File tree

6 files changed

+71
-39
lines changed

6 files changed

+71
-39
lines changed

bun.lock

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/Library/MetaData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function generateSecondaryData(library: LibraryType, skipExamples: boolean): Met
211211
icon: <NightlyTest style={iconColor} width={18} height={18} />,
212212
content: (
213213
<A
214-
href="https://react-native-community.github.io/nightly-tests/"
214+
href={`https://react-native-community.github.io/nightly-tests/?q=${encodeURIComponent(library.npmPkg)}`}
215215
style={paragraphStyles}
216216
hoverStyle={hoverStyle}>
217217
Nightly Program

components/Package/ReadmeBox.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import remarkGfm from 'remark-gfm';
1010
import useSWR from 'swr';
1111

1212
import { A, P } from '~/common/styleguide';
13-
import { ReadmeFile } from '~/components/Icons';
13+
import { Check, ReadmeFile } from '~/components/Icons';
1414
import ReadmeHeading from '~/components/Package/ReadmeHeading';
1515
import rndDark from '~/styles/shiki/rnd-dark.json';
1616
import rndLight from '~/styles/shiki/rnd-light.json';
@@ -200,6 +200,19 @@ export default function ReadmeBox({ packageName, githubUrl, isTemplate, loader =
200200
</details>
201201
);
202202
},
203+
input: ({ type, checked, ...rest }: any) => {
204+
if (type === 'checkbox') {
205+
const isChecked = Boolean(checked);
206+
return (
207+
<div
208+
className="checkbox"
209+
style={tw`m-0 box-border size-4 items-center justify-center rounded border border-solid border-palette-gray3 bg-palette-gray2 dark:border-powder dark:bg-palette-gray6`}>
210+
{isChecked && <Check style={tw`size-3 text-success`} />}
211+
</div>
212+
);
213+
}
214+
return <input type={type} {...rest} />;
215+
},
203216
}}
204217
rehypePlugins={[rehypeRaw, rehypeSanitize]}
205218
remarkPlugins={[remarkGfm, remarkEmoji]}>

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@visx/xychart": "^3.12.0",
3434
"crypto-js": "^4.2.0",
3535
"es-toolkit": "^1.44.0",
36-
"expo": "55.0.2",
36+
"expo": "55.0.4",
3737
"expo-font": "^55.0.4",
3838
"next": "^16.1.6",
3939
"node-emoji": "^2.2.0",
@@ -42,7 +42,7 @@
4242
"react-content-loader": "^7.1.2",
4343
"react-dom": "19.2.4",
4444
"react-easy-linkify": "^1.0.8",
45-
"react-native": "0.84.0",
45+
"react-native": "0.84.1",
4646
"react-native-safe-area-context": "^5.7.0",
4747
"react-native-svg": "^15.15.3",
4848
"react-native-web": "^0.21.2",
@@ -51,7 +51,7 @@
5151
"rehype-sanitize": "^6.0.0",
5252
"remark-emoji": "^5.0.2",
5353
"remark-gfm": "^4.0.1",
54-
"swr": "^2.4.0",
54+
"swr": "^2.4.1",
5555
"tailwindcss": "^3.4.19",
5656
"twrnc": "^4.16.0",
5757
"use-debounce": "^10.1.0"
@@ -68,7 +68,7 @@
6868
"browserslist": "^4.28.1",
6969
"cheerio": "^1.2.0",
7070
"dotenv": "^17.3.1",
71-
"lint-staged": "^16.2.7",
71+
"lint-staged": "^16.3.0",
7272
"next-compose-plugins": "^2.2.1",
7373
"next-fonts": "^1.5.1",
7474
"next-images": "^1.8.5",

react-native-libraries.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10531,10 +10531,11 @@
1053110531
"expoGo": true
1053210532
},
1053310533
{
10534-
"githubUrl": "https://github.com/jpudysz/react-native-unistyles",
10534+
"githubUrl": "https://github.com/jpudysz/react-native-unistyles/tree/main/packages/unistyles",
10535+
"npmPkg": "react-native-unistyles",
1053510536
"examples": [
10536-
"https://github.com/jpudysz/react-native-unistyles/tree/main/example",
10537-
"https://github.com/jpudysz/react-native-unistyles/tree/main/expo-example"
10537+
"https://github.com/jpudysz/react-native-unistyles/tree/main/apps/example",
10538+
"https://github.com/jpudysz/react-native-unistyles/tree/main/apps/expo-example"
1053810539
],
1053910540
"ios": true,
1054010541
"android": true,

styles/styles.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,27 @@ select {
565565
+ div[data-table-wrapper] {
566566
margin-top: 12px;
567567
}
568+
569+
&.contains-task-list {
570+
padding-inline-start: 0;
571+
}
568572
}
569573

570574
li {
575+
&.task-list-item {
576+
position: relative;
577+
display: block;
578+
padding-left: 20px;
579+
margin: 1px 0;
580+
581+
.checkbox {
582+
display: inline-flex;
583+
position: absolute;
584+
top: 2px;
585+
left: -4px;
586+
}
587+
}
588+
571589
div:last-child {
572590
margin-bottom: 8px;
573591
}

0 commit comments

Comments
 (0)