Skip to content

Commit eec9b8c

Browse files
committed
feat(ListIcon): add iconSize prop to allow custom sizing, fixed some eslint issues
1 parent fde7ba7 commit eec9b8c

File tree

366 files changed

+484362
-10596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

366 files changed

+484362
-10596
lines changed

.all-contributorsrc

Lines changed: 18 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"projectOwner": "callstack",
44
"repoType": "github",
55
"repoHost": "https://github.com",
6-
"files": [
7-
"README.md"
8-
],
6+
"files": ["README.md"],
97
"imageSize": 100,
108
"commit": false,
119
"contributors": [
@@ -14,168 +12,119 @@
1412
"name": "Satyajit Sahoo",
1513
"avatar_url": "https://avatars2.githubusercontent.com/u/1174278?v=4",
1614
"profile": "https://twitter.com/@satya164",
17-
"contributions": [
18-
"ideas",
19-
"code",
20-
"doc"
21-
]
15+
"contributions": ["ideas", "code", "doc"]
2216
},
2317
{
2418
"login": "ferrannp",
2519
"name": "Ferran Negre",
2620
"avatar_url": "https://avatars2.githubusercontent.com/u/774577?v=4",
2721
"profile": "https://ferrannp.com/",
28-
"contributions": [
29-
"ideas",
30-
"code"
31-
]
22+
"contributions": ["ideas", "code"]
3223
},
3324
{
3425
"login": "Trancever",
3526
"name": "Dawid",
3627
"avatar_url": "https://avatars3.githubusercontent.com/u/18584155?v=4",
3728
"profile": "http://dawidurbaniak.pl",
38-
"contributions": [
39-
"ideas",
40-
"code",
41-
"doc"
42-
]
29+
"contributions": ["ideas", "code", "doc"]
4330
},
4431
{
4532
"login": "Esemesek",
4633
"name": "Kacper Wiszczuk",
4734
"avatar_url": "https://avatars2.githubusercontent.com/u/9092510?v=4",
4835
"profile": "https://twitter.com/esemesek",
49-
"contributions": [
50-
"ideas",
51-
"code"
52-
]
36+
"contributions": ["ideas", "code"]
5337
},
5438
{
5539
"login": "lukewalczak",
5640
"name": "Luke Walczak",
5741
"avatar_url": "https://avatars1.githubusercontent.com/u/22746080?v=4",
5842
"profile": "https://medium.com/@_happiryu",
59-
"contributions": [
60-
"code",
61-
"doc"
62-
]
43+
"contributions": ["code", "doc"]
6344
},
6445
{
6546
"login": "ahmedlhanafy",
6647
"name": "Ahmed Elhanafy",
6748
"avatar_url": "https://avatars2.githubusercontent.com/u/7052827?v=4",
6849
"profile": "https://github.com/ahmedlhanafy",
69-
"contributions": [
70-
"ideas",
71-
"code"
72-
]
50+
"contributions": ["ideas", "code"]
7351
},
7452
{
7553
"login": "kpsroka",
7654
"name": "K. P. Sroka",
7755
"avatar_url": "https://avatars0.githubusercontent.com/u/24893014?v=4",
7856
"profile": "https://github.com/kpsroka",
79-
"contributions": [
80-
"code",
81-
"doc"
82-
]
57+
"contributions": ["code", "doc"]
8358
},
8459
{
8560
"login": "iyadthayyil",
8661
"name": "Iyad Thayyil",
8762
"avatar_url": "https://avatars2.githubusercontent.com/u/11161020?v=4",
8863
"profile": "https://github.com/iyadthayyil",
89-
"contributions": [
90-
"code",
91-
"doc"
92-
]
64+
"contributions": ["code", "doc"]
9365
},
9466
{
9567
"login": "jaulz",
9668
"name": "Julian Hundeloh",
9769
"avatar_url": "https://avatars1.githubusercontent.com/u/5358638?v=4",
9870
"profile": "http://hundeloh-consulting.ch/",
99-
"contributions": [
100-
"code",
101-
"doc"
102-
]
71+
"contributions": ["code", "doc"]
10372
},
10473
{
10574
"login": "gawrysiak",
10675
"name": "Grzegorz Gawrysiak",
10776
"avatar_url": "https://avatars3.githubusercontent.com/u/7827311?v=4",
10877
"profile": "https://www.linkedin.com/in/grzegorzgawrysiak/",
109-
"contributions": [
110-
"code",
111-
"doc"
112-
]
78+
"contributions": ["code", "doc"]
11379
},
11480
{
11581
"login": "luissmg",
11682
"name": "Luís",
11783
"avatar_url": "https://avatars2.githubusercontent.com/u/20660551?v=4",
11884
"profile": "https://github.com/luissmg",
119-
"contributions": [
120-
"code"
121-
]
85+
"contributions": ["code"]
12286
},
12387
{
12488
"login": "raajnadar",
12589
"name": "Rajendran Nadar",
12690
"avatar_url": "https://avatars1.githubusercontent.com/u/17236768?v=4",
12791
"profile": "https://raajnadar.in",
128-
"contributions": [
129-
"code"
130-
]
92+
"contributions": ["code"]
13193
},
13294
{
13395
"login": "brentvatne",
13496
"name": "Brent Vatne",
13597
"avatar_url": "https://avatars2.githubusercontent.com/u/90494?v=4",
13698
"profile": "https://github.com/brentvatne",
137-
"contributions": [
138-
"code"
139-
]
99+
"contributions": ["code"]
140100
},
141101
{
142102
"login": "jukben",
143103
"name": "Jakub Beneš",
144104
"avatar_url": "https://avatars3.githubusercontent.com/u/8135252?v=4",
145105
"profile": "https://jukben.cz",
146-
"contributions": [
147-
"code"
148-
]
106+
"contributions": ["code"]
149107
},
150108
{
151109
"login": "pan-pawel",
152110
"name": "Paweł Szymański",
153111
"avatar_url": "https://avatars3.githubusercontent.com/u/3886886?v=4",
154112
"profile": "https://twitter.com/_panpawel",
155-
"contributions": [
156-
"code",
157-
"doc"
158-
]
113+
"contributions": ["code", "doc"]
159114
},
160115
{
161116
"login": "jayu",
162117
"name": "Kuba",
163118
"avatar_url": "https://avatars1.githubusercontent.com/u/11561585?v=4",
164119
"profile": "https://github.com/jayu",
165-
"contributions": [
166-
"code",
167-
"ideas"
168-
]
120+
"contributions": ["code", "ideas"]
169121
},
170122
{
171123
"login": "jbinda",
172124
"name": "jbinda",
173125
"avatar_url": "https://avatars2.githubusercontent.com/u/21242757?v=4",
174126
"profile": "https://github.com/jbinda",
175-
"contributions": [
176-
"code",
177-
"ideas"
178-
]
127+
"contributions": ["code", "ideas"]
179128
}
180129
],
181130
"contributorsPerLine": 7

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,34 @@ assignees: ''
77
---
88

99
### Current behaviour
10+
1011
<!-- Describe your issue in detail -->
1112

1213
### Expected behaviour
14+
1315
<!-- A clear and concise description of what you expected to happen -->
1416

1517
### How to reproduce?
18+
1619
<!-- Help us to reproduce the issue and describe the steps -->
1720
<!-- Attach code example on snack.expo.dev or in a GitHub repo -->
1821

1922
### Preview
23+
2024
<!-- Include screenshots or video if applicable. -->
2125

2226
### What have you tried so far?
27+
2328
<!-- List down the steps you have tried to fix or identify the issue. -->
2429

2530
### Your Environment
2631

27-
| software | version
28-
| --------------------- | -------
29-
| ios | x
30-
| android | x
31-
| react-native | x.x.x
32-
| react-native-paper | x.x.x
33-
| node | x.x.x
34-
| npm or yarn | x.x.x
35-
| expo sdk | x.x.x
32+
| software | version |
33+
| ------------------ | ------- |
34+
| ios | x |
35+
| android | x |
36+
| react-native | x.x.x |
37+
| react-native-paper | x.x.x |
38+
| node | x.x.x |
39+
| npm or yarn | x.x.x |
40+
| expo sdk | x.x.x |

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: ''
55
labels: 'feature request'
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/ISSUE_TEMPLATE/question.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ about: You need help with React Native Paper.
44
title: ''
55
labels: 'question'
66
assignees: ''
7-
87
---
98

109
### Ask your Question
10+
1111
<!-- A clear and concise question describing the concern -->

.github/workflows/stale.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Close stale issues and PRs
32
on:
43
schedule:

.prettierrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
21
singleQuote: true
32
tabWidth: 2
4-
trailingComma: "es5"
3+
trailingComma: 'es5'
54
useTabs: false

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ If you want to test the changes brought by a pull request, you can do so by poin
7272
```json
7373
{
7474
"dependencies": {
75-
"react-native-paper": "git+https://github.com/callstack/react-native-paper.git#<commit-hash>",
75+
"react-native-paper": "git+https://github.com/callstack/react-native-paper.git#<commit-hash>"
7676
}
7777
}
7878
```

docs/docs/guides/02-theming.mdx

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,12 @@ A theme usually contains the following properties:
7373
- `colors` (`object`): various colors used throughout different elements.
7474

7575
> The primary key color is used to derive roles for key components across the UI, such as the FAB, prominent buttons, active states, as well as the tint of elevated surfaces.
76-
7776
- `primary`
7877
- `onPrimary`
7978
- `primaryContainer`
8079
- `onPrimaryContainer`
8180

8281
> The secondary key color is used for less prominent components in the UI such as filter chips, while expanding the opportunity for color expression.
83-
8482
- `secondary`
8583
- `onSecondary`
8684
- `secondaryContainer`
@@ -89,34 +87,29 @@ A theme usually contains the following properties:
8987
> The tertiary key color is used to derive the roles of contrasting accents that can be used to balance primary and secondary colors or bring heightened attention to an element.
9088
9189
> The tertiary color role is left for teams to use at their discretion and is intended to support broader color expression in products.
92-
9390
- `tertiary`
9491
- `onTertiary`
9592
- `tertiaryContainer`
9693
- `onTertiaryContainer`
9794

9895
> The neutral key color is used to derive the roles of surface and background, as well as high emphasis text and icons.
99-
10096
- `background`
10197
- `onBackground`
10298
- `surface`
10399
- `onSurface`
104100

105101
> The neutral variant key color is used to derive medium emphasis text and icons, surface variants, and component outlines.
106-
107102
- `surfaceVariant`
108103
- `onSurfaceVariant`
109104
- `outline`
110105

111106
> In addition to the accent and neutral key color, the color system includes a semantic color role for error
112-
113107
- `error`
114108
- `onError`
115109
- `errorContainer`
116110
- `onErrorContainer`
117111

118112
> Surfaces at elevation levels 0-5 are tinted via color overlays based on the primary color, such as app bars or menus. The addition of a grade from 0-5 introduces tonal variation to the surface baseline.
119-
120113
- `elevation` (`object`)
121114
- `level0` - transparent
122115
- `level1` - 5% opacity
@@ -126,12 +119,10 @@ A theme usually contains the following properties:
126119
- `level5` - 14% opacity
127120

128121
> Colors for disabled state
129-
130122
- `surfaceDisabled`
131123
- `onSurfaceDisabled`
132124

133125
> These additional role mappings exist in a scheme and are mapped to components where needed.
134-
135126
- `shadow`
136127
- `inverseOnSurface`
137128
- `inverseSurface`
@@ -344,11 +335,10 @@ By default, TypeScript works well whenever you change the value of the built-in
344335

345336
There are two supported ways of overriding the theme:
346337

347-
1. <b>Simple built-in theme overrides</b> - when you only customize the values and
348-
the whole theme schema remains the same
349-
2. <b>Advanced theme overrides</b> - when you <i>add new properties</i> or <i>
350-
change the built-in schema shape
351-
</i>
338+
1. <b>Simple built-in theme overrides</b> - when you only customize the values
339+
and the whole theme schema remains the same
340+
2. <b>Advanced theme overrides</b> - when you <i>add new properties</i> or
341+
<i>change the built-in schema shape</i>
352342

353343
:::caution
354344
TypeScript support for `withTheme` is currently limited to <b>Material You (MD3)</b> theme only.

0 commit comments

Comments
 (0)