Skip to content

Commit 06a9d55

Browse files
paulineaflorentmaitre
authored andcommitted
Review: Update kdoc
1 parent 7d9b195 commit 06a9d55

File tree

1 file changed

+135
-39
lines changed

1 file changed

+135
-39
lines changed

core/src/main/java/com/orange/ouds/core/theme/OudsSizes.kt

Lines changed: 135 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ data class OudsSizes internal constructor(
4242
* Sizes for icons depending on their usage context.
4343
*
4444
* @property decorative Sizes for standalone decorative icons.
45-
* @property withHeading Sizes for icons paired with Heading typography.
46-
* @property withLabel Sizes for icons paired with Label typography.
47-
* @property withBody Sizes for icons paired with Body typography.
45+
* @property withHeading Sizes for icons paired with heading typography.
46+
* @property withLabel Sizes for icons paired with label typography.
47+
* @property withBody Sizes for icons paired with body typography.
4848
*/
4949
@ConsistentCopyVisibility
5050
data class Icon internal constructor(
@@ -80,14 +80,14 @@ data class OudsSizes internal constructor(
8080
)
8181

8282
/**
83-
* Sizes for icons paired with Heading typography.
83+
* Sizes for icons paired with heading typography.
8484
*
85-
* The properties correspond to the size of the associated Heading text.
85+
* The properties correspond to the size of the associated heading text.
8686
*
87-
* @property small Icons associated with Heading Small.
88-
* @property medium Icons associated with Heading Medium.
89-
* @property large Icons associated with Heading Large.
90-
* @property extraLarge Icons associated with Heading ExtraLarge.
87+
* @property small Icons associated with small heading.
88+
* @property medium Icons associated with medium heading.
89+
* @property large Icons associated with large heading.
90+
* @property extraLarge Icons associated with extra large heading.
9191
*/
9292
@ConsistentCopyVisibility
9393
data class WithHeading internal constructor(
@@ -96,31 +96,55 @@ data class OudsSizes internal constructor(
9696
val large: Large,
9797
val extraLarge: ExtraLarge
9898
) {
99-
/** Icon sizes for Heading Small. */
99+
/**
100+
* Icon sizes for small heading.
101+
*
102+
* @property sizeSmall Small icon size for use with a small heading.
103+
* @property sizeMedium Medium icon size for use with a small heading.
104+
* @property sizeLarge Large icon size for use with a small heading.
105+
*/
100106
@ConsistentCopyVisibility
101107
data class Small internal constructor(
102108
val sizeSmall: Dp,
103109
val sizeMedium: Dp,
104110
val sizeLarge: Dp,
105111
)
106112

107-
/** Icon sizes for Heading Medium. */
113+
/**
114+
* Icon sizes for medium heading.
115+
*
116+
* @property sizeSmall Small icon size for use with a medium heading.
117+
* @property sizeMedium Medium icon size for use with a medium heading.
118+
* @property sizeLarge Large icon size for use with a medium heading.
119+
*/
108120
@ConsistentCopyVisibility
109121
data class Medium internal constructor(
110122
val sizeSmall: Dp,
111123
val sizeMedium: Dp,
112124
val sizeLarge: Dp,
113125
)
114126

115-
/** Icon sizes for Heading Large. */
127+
/**
128+
* Icon sizes for large heading.
129+
*
130+
* @property sizeSmall Small icon size for use with a large heading.
131+
* @property sizeMedium Medium icon size for use with a large heading.
132+
* @property sizeLarge Large icon size for use with a large heading.
133+
*/
116134
@ConsistentCopyVisibility
117135
data class Large internal constructor(
118136
val sizeSmall: Dp,
119137
val sizeMedium: Dp,
120138
val sizeLarge: Dp,
121139
)
122140

123-
/** Icon sizes for Heading ExtraLarge. */
141+
/**
142+
* Icon sizes for extra large heading.
143+
*
144+
* @property sizeSmall Small icon size for use with an extra large heading.
145+
* @property sizeMedium Medium icon size for use with an extra large heading.
146+
* @property sizeLarge Large icon size for use with an extra large heading.
147+
*/
124148
@ConsistentCopyVisibility
125149
data class ExtraLarge internal constructor(
126150
val sizeSmall: Dp,
@@ -130,14 +154,14 @@ data class OudsSizes internal constructor(
130154
}
131155

132156
/**
133-
* Sizes for icons paired with Label typography.
157+
* Sizes for icons paired with label typography.
134158
*
135-
* The properties correspond to the size of the associated Label text.
159+
* The properties correspond to the size of the associated label text.
136160
*
137-
* @property small Icons associated with Label Small.
138-
* @property medium Icons associated with Label Medium.
139-
* @property large Icons associated with Label Large.
140-
* @property extraLarge Icons associated with Label ExtraLarge.
161+
* @property small Icons associated with small labels.
162+
* @property medium Icons associated with medium labels.
163+
* @property large Icons associated with large labels.
164+
* @property extraLarge Icons associated with extra large labels.
141165
*/
142166
@ConsistentCopyVisibility
143167
data class WithLabel internal constructor(
@@ -146,7 +170,14 @@ data class OudsSizes internal constructor(
146170
val large: Large,
147171
val extraLarge: ExtraLarge
148172
) {
149-
/** Icon sizes for Label Small. */
173+
/**
174+
* Icon sizes for small label.
175+
*
176+
* @property sizeExtraSmall Extra small icon size for use with a small label.
177+
* @property sizeSmall Small icon size for use with a small label.
178+
* @property sizeMedium Medium icon size for use with a small label.
179+
* @property sizeLarge Large icon size for use with a small label.
180+
*/
150181
@ConsistentCopyVisibility
151182
data class Small internal constructor(
152183
val sizeExtraSmall: Dp,
@@ -155,7 +186,14 @@ data class OudsSizes internal constructor(
155186
val sizeLarge: Dp,
156187
)
157188

158-
/** Icon sizes for Label Medium. */
189+
/**
190+
* Icon sizes for medium label.
191+
*
192+
* @property sizeExtraSmall Extra small icon size for use with a medium label.
193+
* @property sizeSmall Small icon size for use with a medium label.
194+
* @property sizeMedium Medium icon size for use with a medium label.
195+
* @property sizeLarge Large icon size for use with a medium label.
196+
*/
159197
@ConsistentCopyVisibility
160198
data class Medium internal constructor(
161199
val sizeExtraSmall: Dp,
@@ -164,7 +202,15 @@ data class OudsSizes internal constructor(
164202
val sizeLarge: Dp,
165203
)
166204

167-
/** Icon sizes for Label Large. */
205+
/**
206+
* Icon sizes for large label.
207+
*
208+
* @property sizeExtraSmall Extra small icon size for use with a large label.
209+
* @property sizeSmall Small icon size for use with a large label.
210+
* @property sizeMedium Medium icon size for use with a large label.
211+
* @property sizeLarge Large icon size for use with a large label.
212+
* @property sizeExtraLarge Extra large icon size for use with a large label.
213+
*/
168214
@ConsistentCopyVisibility
169215
data class Large internal constructor(
170216
val sizeExtraSmall: Dp,
@@ -174,7 +220,13 @@ data class OudsSizes internal constructor(
174220
val sizeExtraLarge: Dp,
175221
)
176222

177-
/** Icon sizes for Label ExtraLarge. */
223+
/**
224+
* Icon sizes for extra large label.
225+
*
226+
* @property sizeSmall Small icon size for use with an extra large label.
227+
* @property sizeMedium Medium icon size for use with an extra large label.
228+
* @property sizeLarge Large icon size for use with an extra large label.
229+
*/
178230
@ConsistentCopyVisibility
179231
data class ExtraLarge internal constructor(
180232
val sizeSmall: Dp,
@@ -184,37 +236,55 @@ data class OudsSizes internal constructor(
184236
}
185237

186238
/**
187-
* Sizes for icons paired with Body typography.
239+
* Sizes for icons paired with body typography.
188240
*
189-
* The properties correspond to the size of the associated Body text.
241+
* The properties correspond to the size of the associated body text.
190242
*
191-
* @property small Icons associated with Body Small.
192-
* @property medium Icons associated with Body Medium.
193-
* @property large Icons associated with Body Large.
243+
* @property small Icons associated with small body.
244+
* @property medium Icons associated with medium body.
245+
* @property large Icons associated with large body.
194246
*/
195247
@ConsistentCopyVisibility
196248
data class WithBody internal constructor(
197249
val small: Small,
198250
val medium: Medium,
199251
val large: Large,
200252
) {
201-
/** Icon sizes for Body Small. */
253+
/**
254+
* Icon sizes for small body.
255+
*
256+
* @property sizeSmall Small icon size for use with small body text.
257+
* @property sizeMedium Medium icon size for use with small body text.
258+
* @property sizeLarge Large icon size for use with small body text.
259+
*/
202260
@ConsistentCopyVisibility
203261
data class Small internal constructor(
204262
val sizeSmall: Dp,
205263
val sizeMedium: Dp,
206264
val sizeLarge: Dp,
207265
)
208266

209-
/** Icon sizes for Body Medium. */
267+
/**
268+
* Icon sizes for medium body.
269+
*
270+
* @property sizeSmall Small icon size for use with medium body text.
271+
* @property sizeMedium Medium icon size for use with medium body text.
272+
* @property sizeLarge Large icon size for use with medium body text.
273+
*/
210274
@ConsistentCopyVisibility
211275
data class Medium internal constructor(
212276
val sizeSmall: Dp,
213277
val sizeMedium: Dp,
214278
val sizeLarge: Dp,
215279
)
216280

217-
/** Icon sizes for Body Large. */
281+
/**
282+
* Icon sizes for large body.
283+
*
284+
* @property sizeSmall Small icon size for use with large body text.
285+
* @property sizeMedium Medium icon size for use with large body text.
286+
* @property sizeLarge Large icon size for use with large body text.
287+
*/
218288
@ConsistentCopyVisibility
219289
data class Large internal constructor(
220290
val sizeSmall: Dp,
@@ -236,10 +306,10 @@ data class OudsSizes internal constructor(
236306
/**
237307
* Max width values grouped by typography type.
238308
*
239-
* @property body Max widths for Body text contexts.
240-
* @property display Max widths for Display text contexts.
241-
* @property heading Max widths for Heading text contexts.
242-
* @property label Max widths for Label text contexts.
309+
* @property body Max widths for body text contexts.
310+
* @property display Max widths for display text contexts.
311+
* @property heading Max widths for heading text contexts.
312+
* @property label Max widths for label text contexts.
243313
*/
244314
@ConsistentCopyVisibility
245315
data class Type internal constructor(
@@ -248,23 +318,42 @@ data class OudsSizes internal constructor(
248318
val heading: Heading,
249319
val label: Label
250320
) {
251-
/** Max widths for Body text contexts. */
321+
/**
322+
* Max widths for body text contexts.
323+
*
324+
* @property small Max width constraint for small body text.
325+
* @property medium Max width constraint for medium body text.
326+
* @property large Max width constraint for large body text.
327+
*/
252328
@ConsistentCopyVisibility
253329
data class Body internal constructor(
254330
val small: Dp,
255331
val medium: Dp,
256332
val large: Dp
257333
)
258334

259-
/** Max widths for Display text contexts. */
335+
/**
336+
* Max widths for display text contexts.
337+
*
338+
* @property small Max width constraint for small display text.
339+
* @property medium Max width constraint for medium display text.
340+
* @property large Max width constraint for large display text.
341+
*/
260342
@ConsistentCopyVisibility
261343
data class Display internal constructor(
262344
val small: Dp,
263345
val medium: Dp,
264346
val large: Dp
265347
)
266348

267-
/** Max widths for Heading text contexts. */
349+
/**
350+
* Max widths for heading text contexts.
351+
*
352+
* @property small Max width constraint for small heading text.
353+
* @property medium Max width constraint for medium heading text.
354+
* @property large Max width constraint for large heading text.
355+
* @property extraLarge Max width constraint for extra large heading text.
356+
*/
268357
@ConsistentCopyVisibility
269358
data class Heading internal constructor(
270359
val small: Dp,
@@ -273,7 +362,14 @@ data class OudsSizes internal constructor(
273362
val extraLarge: Dp
274363
)
275364

276-
/** Max widths for Label text contexts. */
365+
/**
366+
* Max widths for label text contexts.
367+
*
368+
* @property small Max width constraint for small label text.
369+
* @property medium Max width constraint for medium label text.
370+
* @property large Max width constraint for large label text.
371+
* @property extraLarge Max width constraint for extra large label text.
372+
*/
277373
@ConsistentCopyVisibility
278374
data class Label internal constructor(
279375
val small: Dp,

0 commit comments

Comments
 (0)