Skip to content

Commit ce38d95

Browse files
committed
style: lint
1 parent eb1a8d5 commit ce38d95

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

core/src/components.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ export namespace Components {
13491349
/**
13501350
* Where separators should be shown between input boxes. Can be a comma-separated string or an array of numbers. For example: "3" would show a separator after the 3rd input box. [1,4] would show a separator after the 1st and 4th input boxes.
13511351
*/
1352-
"separators"?: "all" | string | number[];
1352+
"separators"?: 'all' | string | number[];
13531353
/**
13541354
* The shape of the input boxes
13551355
*/
@@ -6285,7 +6285,7 @@ declare namespace LocalJSX {
62856285
/**
62866286
* Where separators should be shown between input boxes. Can be a comma-separated string or an array of numbers. For example: "3" would show a separator after the 3rd input box. [1,4] would show a separator after the 1st and 4th input boxes.
62876287
*/
6288-
"separators"?: "all" | string | number[];
6288+
"separators"?: 'all' | string | number[];
62896289
/**
62906290
* The shape of the input boxes
62916291
*/

core/src/components/input-otp/input-otp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class InputOTP implements ComponentInterface {
8181
* "3" would show a separator after the 3rd input box.
8282
* [1,4] would show a separator after the 1st and 4th input boxes.
8383
*/
84-
@Prop() separators?: "all" | string | number[];
84+
@Prop() separators?: 'all' | string | number[];
8585

8686
/**
8787
* The fill style of the input boxes
@@ -371,7 +371,7 @@ export class InputOTP implements ComponentInterface {
371371
disabled={this.disabled}
372372
tabIndex={index === tabbableIndex ? 0 : -1}
373373
value={this.inputValues[index] || ''}
374-
autocomplete={index === 0 ? "one-time-code" : "off"}
374+
autocomplete={index === 0 ? 'one-time-code' : 'off'}
375375
ref={(el) => (this.inputRefs[index] = el as HTMLInputElement)}
376376
onInput={(e) => this.handleInput(index, (e.target as HTMLInputElement).value)}
377377
onKeyDown={(e) => this.handleKeyDown(index, e)}

core/src/components/input-otp/test/separators/index.html

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@
3939
<div class="grid">
4040
<div class="grid-item">
4141
<h2>Separators (small)</h2>
42-
<ion-input-otp size="small" length="6">
43-
Enter your one-time password (numbers only)
44-
</ion-input-otp>
42+
<ion-input-otp size="small" length="6"> Enter your one-time password (numbers only) </ion-input-otp>
4543
<ion-input-otp size="small" length="6" separators="1">
4644
Enter your one-time password (numbers only)
4745
</ion-input-otp>
@@ -62,9 +60,7 @@ <h2>Separators (small)</h2>
6260

6361
<div class="grid-item">
6462
<h2>Separators (medium)</h2>
65-
<ion-input-otp size="medium" length="6">
66-
Enter your one-time password (numbers only)
67-
</ion-input-otp>
63+
<ion-input-otp size="medium" length="6"> Enter your one-time password (numbers only) </ion-input-otp>
6864
<ion-input-otp size="medium" length="6" separators="1">
6965
Enter your one-time password (numbers only)
7066
</ion-input-otp>
@@ -85,9 +81,7 @@ <h2>Separators (medium)</h2>
8581

8682
<div class="grid-item">
8783
<h2>Separators (large)</h2>
88-
<ion-input-otp size="large" length="6">
89-
Enter your one-time password (numbers only)
90-
</ion-input-otp>
84+
<ion-input-otp size="large" length="6"> Enter your one-time password (numbers only) </ion-input-otp>
9185
<ion-input-otp size="large" length="6" separators="1">
9286
Enter your one-time password (numbers only)
9387
</ion-input-otp>

0 commit comments

Comments
 (0)