@justeattakeaway/pie-text-input 0.28.8 → 0.28.10
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/README.md +23 -0
- package/custom-elements.json +20 -168
- package/dist/index.d.ts +9 -8
- package/dist/index.js +1 -1
- package/dist/react.d.ts +10 -9
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
- [Displaying error messages](#displaying-error-messages)
|
|
23
23
|
- [Labelling](#labelling)
|
|
24
24
|
- [Usage Examples](#usage-examples)
|
|
25
|
+
- [Pitfalls](#pitfalls)
|
|
26
|
+
- [Controlled input values](#controlled-input-values)
|
|
25
27
|
- [Questions and Support](#questions-and-support)
|
|
26
28
|
- [Contributing](#contributing)
|
|
27
29
|
|
|
@@ -281,6 +283,27 @@ import { IconPlaceholder } from '@justeattakeaway/pie-icons-webc/dist/react/Icon
|
|
|
281
283
|
<IconPlaceholder slot="leadingIcon"></IconPlaceholder>
|
|
282
284
|
</PieTextInput>
|
|
283
285
|
```
|
|
286
|
+
## Pitfalls
|
|
287
|
+
|
|
288
|
+
### Controlled input values
|
|
289
|
+
|
|
290
|
+
If we want to add a constraint to what the user can input, then on input/change we perform the condition check and if it succeeds, update the input value. If it fails, then manually assign event.target.value to the last known valid input to prevent it from updating.
|
|
291
|
+
|
|
292
|
+
> This will need to be done regardless of application framework used.
|
|
293
|
+
|
|
294
|
+
Example:
|
|
295
|
+
|
|
296
|
+
```js
|
|
297
|
+
const onInput = (event) => {
|
|
298
|
+
// For example, users can type only uppercase letters
|
|
299
|
+
const value = event.target.value
|
|
300
|
+
if (value === value.toUpperCase()) {
|
|
301
|
+
inputValue.value = value
|
|
302
|
+
} else {
|
|
303
|
+
event.target.value = inputValue.value
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
```
|
|
284
307
|
|
|
285
308
|
## Questions and Support
|
|
286
309
|
|
package/custom-elements.json
CHANGED
|
@@ -136,15 +136,12 @@
|
|
|
136
136
|
{
|
|
137
137
|
"kind": "field",
|
|
138
138
|
"name": "type",
|
|
139
|
-
"privacy": "public"
|
|
140
|
-
"attribute": "type",
|
|
141
|
-
"reflects": true
|
|
139
|
+
"privacy": "public"
|
|
142
140
|
},
|
|
143
141
|
{
|
|
144
142
|
"kind": "field",
|
|
145
143
|
"name": "value",
|
|
146
|
-
"privacy": "public"
|
|
147
|
-
"attribute": "value"
|
|
144
|
+
"privacy": "public"
|
|
148
145
|
},
|
|
149
146
|
{
|
|
150
147
|
"kind": "field",
|
|
@@ -152,16 +149,12 @@
|
|
|
152
149
|
"type": {
|
|
153
150
|
"text": "TextInputProps['name']"
|
|
154
151
|
},
|
|
155
|
-
"privacy": "public"
|
|
156
|
-
"attribute": "name",
|
|
157
|
-
"reflects": true
|
|
152
|
+
"privacy": "public"
|
|
158
153
|
},
|
|
159
154
|
{
|
|
160
155
|
"kind": "field",
|
|
161
156
|
"name": "disabled",
|
|
162
|
-
"privacy": "public"
|
|
163
|
-
"attribute": "disabled",
|
|
164
|
-
"reflects": true
|
|
157
|
+
"privacy": "public"
|
|
165
158
|
},
|
|
166
159
|
{
|
|
167
160
|
"kind": "field",
|
|
@@ -169,8 +162,7 @@
|
|
|
169
162
|
"type": {
|
|
170
163
|
"text": "TextInputProps['pattern']"
|
|
171
164
|
},
|
|
172
|
-
"privacy": "public"
|
|
173
|
-
"attribute": "pattern"
|
|
165
|
+
"privacy": "public"
|
|
174
166
|
},
|
|
175
167
|
{
|
|
176
168
|
"kind": "field",
|
|
@@ -178,8 +170,7 @@
|
|
|
178
170
|
"type": {
|
|
179
171
|
"text": "TextInputProps['minlength']"
|
|
180
172
|
},
|
|
181
|
-
"privacy": "public"
|
|
182
|
-
"attribute": "minlength"
|
|
173
|
+
"privacy": "public"
|
|
183
174
|
},
|
|
184
175
|
{
|
|
185
176
|
"kind": "field",
|
|
@@ -187,8 +178,7 @@
|
|
|
187
178
|
"type": {
|
|
188
179
|
"text": "TextInputProps['maxlength']"
|
|
189
180
|
},
|
|
190
|
-
"privacy": "public"
|
|
191
|
-
"attribute": "maxlength"
|
|
181
|
+
"privacy": "public"
|
|
192
182
|
},
|
|
193
183
|
{
|
|
194
184
|
"kind": "field",
|
|
@@ -196,8 +186,7 @@
|
|
|
196
186
|
"type": {
|
|
197
187
|
"text": "TextInputProps['autocomplete']"
|
|
198
188
|
},
|
|
199
|
-
"privacy": "public"
|
|
200
|
-
"attribute": "autocomplete"
|
|
189
|
+
"privacy": "public"
|
|
201
190
|
},
|
|
202
191
|
{
|
|
203
192
|
"kind": "field",
|
|
@@ -205,8 +194,7 @@
|
|
|
205
194
|
"type": {
|
|
206
195
|
"text": "TextInputProps['placeholder']"
|
|
207
196
|
},
|
|
208
|
-
"privacy": "public"
|
|
209
|
-
"attribute": "placeholder"
|
|
197
|
+
"privacy": "public"
|
|
210
198
|
},
|
|
211
199
|
{
|
|
212
200
|
"kind": "field",
|
|
@@ -214,8 +202,7 @@
|
|
|
214
202
|
"type": {
|
|
215
203
|
"text": "TextInputProps['autoFocus']"
|
|
216
204
|
},
|
|
217
|
-
"privacy": "public"
|
|
218
|
-
"attribute": "autoFocus"
|
|
205
|
+
"privacy": "public"
|
|
219
206
|
},
|
|
220
207
|
{
|
|
221
208
|
"kind": "field",
|
|
@@ -223,14 +210,12 @@
|
|
|
223
210
|
"type": {
|
|
224
211
|
"text": "TextInputProps['inputmode']"
|
|
225
212
|
},
|
|
226
|
-
"privacy": "public"
|
|
227
|
-
"attribute": "inputmode"
|
|
213
|
+
"privacy": "public"
|
|
228
214
|
},
|
|
229
215
|
{
|
|
230
216
|
"kind": "field",
|
|
231
217
|
"name": "readonly",
|
|
232
|
-
"privacy": "public"
|
|
233
|
-
"attribute": "readonly"
|
|
218
|
+
"privacy": "public"
|
|
234
219
|
},
|
|
235
220
|
{
|
|
236
221
|
"kind": "field",
|
|
@@ -238,8 +223,7 @@
|
|
|
238
223
|
"type": {
|
|
239
224
|
"text": "TextInputProps['defaultValue']"
|
|
240
225
|
},
|
|
241
|
-
"privacy": "public"
|
|
242
|
-
"attribute": "defaultValue"
|
|
226
|
+
"privacy": "public"
|
|
243
227
|
},
|
|
244
228
|
{
|
|
245
229
|
"kind": "field",
|
|
@@ -247,14 +231,12 @@
|
|
|
247
231
|
"type": {
|
|
248
232
|
"text": "TextInputProps['assistiveText']"
|
|
249
233
|
},
|
|
250
|
-
"privacy": "public"
|
|
251
|
-
"attribute": "assistiveText"
|
|
234
|
+
"privacy": "public"
|
|
252
235
|
},
|
|
253
236
|
{
|
|
254
237
|
"kind": "field",
|
|
255
238
|
"name": "status",
|
|
256
|
-
"privacy": "public"
|
|
257
|
-
"attribute": "status"
|
|
239
|
+
"privacy": "public"
|
|
258
240
|
},
|
|
259
241
|
{
|
|
260
242
|
"kind": "field",
|
|
@@ -262,8 +244,7 @@
|
|
|
262
244
|
"type": {
|
|
263
245
|
"text": "TextInputProps['step']"
|
|
264
246
|
},
|
|
265
|
-
"privacy": "public"
|
|
266
|
-
"attribute": "step"
|
|
247
|
+
"privacy": "public"
|
|
267
248
|
},
|
|
268
249
|
{
|
|
269
250
|
"kind": "field",
|
|
@@ -271,8 +252,7 @@
|
|
|
271
252
|
"type": {
|
|
272
253
|
"text": "TextInputProps['min']"
|
|
273
254
|
},
|
|
274
|
-
"privacy": "public"
|
|
275
|
-
"attribute": "min"
|
|
255
|
+
"privacy": "public"
|
|
276
256
|
},
|
|
277
257
|
{
|
|
278
258
|
"kind": "field",
|
|
@@ -280,14 +260,12 @@
|
|
|
280
260
|
"type": {
|
|
281
261
|
"text": "TextInputProps['max']"
|
|
282
262
|
},
|
|
283
|
-
"privacy": "public"
|
|
284
|
-
"attribute": "max"
|
|
263
|
+
"privacy": "public"
|
|
285
264
|
},
|
|
286
265
|
{
|
|
287
266
|
"kind": "field",
|
|
288
267
|
"name": "size",
|
|
289
|
-
"privacy": "public"
|
|
290
|
-
"attribute": "size"
|
|
268
|
+
"privacy": "public"
|
|
291
269
|
},
|
|
292
270
|
{
|
|
293
271
|
"kind": "field",
|
|
@@ -296,8 +274,7 @@
|
|
|
296
274
|
"text": "boolean"
|
|
297
275
|
},
|
|
298
276
|
"privacy": "public",
|
|
299
|
-
"default": "false"
|
|
300
|
-
"attribute": "required"
|
|
277
|
+
"default": "false"
|
|
301
278
|
},
|
|
302
279
|
{
|
|
303
280
|
"kind": "field",
|
|
@@ -397,131 +374,6 @@
|
|
|
397
374
|
"name": "change"
|
|
398
375
|
}
|
|
399
376
|
],
|
|
400
|
-
"attributes": [
|
|
401
|
-
{
|
|
402
|
-
"name": "type",
|
|
403
|
-
"fieldName": "type"
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
"name": "value",
|
|
407
|
-
"fieldName": "value"
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"name": "name",
|
|
411
|
-
"type": {
|
|
412
|
-
"text": "TextInputProps['name']"
|
|
413
|
-
},
|
|
414
|
-
"fieldName": "name"
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
"name": "disabled",
|
|
418
|
-
"fieldName": "disabled"
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
"name": "pattern",
|
|
422
|
-
"type": {
|
|
423
|
-
"text": "TextInputProps['pattern']"
|
|
424
|
-
},
|
|
425
|
-
"fieldName": "pattern"
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
"name": "minlength",
|
|
429
|
-
"type": {
|
|
430
|
-
"text": "TextInputProps['minlength']"
|
|
431
|
-
},
|
|
432
|
-
"fieldName": "minlength"
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
"name": "maxlength",
|
|
436
|
-
"type": {
|
|
437
|
-
"text": "TextInputProps['maxlength']"
|
|
438
|
-
},
|
|
439
|
-
"fieldName": "maxlength"
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
"name": "autocomplete",
|
|
443
|
-
"type": {
|
|
444
|
-
"text": "TextInputProps['autocomplete']"
|
|
445
|
-
},
|
|
446
|
-
"fieldName": "autocomplete"
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
"name": "placeholder",
|
|
450
|
-
"type": {
|
|
451
|
-
"text": "TextInputProps['placeholder']"
|
|
452
|
-
},
|
|
453
|
-
"fieldName": "placeholder"
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
"name": "autoFocus",
|
|
457
|
-
"type": {
|
|
458
|
-
"text": "TextInputProps['autoFocus']"
|
|
459
|
-
},
|
|
460
|
-
"fieldName": "autoFocus"
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
"name": "inputmode",
|
|
464
|
-
"type": {
|
|
465
|
-
"text": "TextInputProps['inputmode']"
|
|
466
|
-
},
|
|
467
|
-
"fieldName": "inputmode"
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
"name": "readonly",
|
|
471
|
-
"fieldName": "readonly"
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
"name": "defaultValue",
|
|
475
|
-
"type": {
|
|
476
|
-
"text": "TextInputProps['defaultValue']"
|
|
477
|
-
},
|
|
478
|
-
"fieldName": "defaultValue"
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
"name": "assistiveText",
|
|
482
|
-
"type": {
|
|
483
|
-
"text": "TextInputProps['assistiveText']"
|
|
484
|
-
},
|
|
485
|
-
"fieldName": "assistiveText"
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
"name": "status",
|
|
489
|
-
"fieldName": "status"
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
"name": "step",
|
|
493
|
-
"type": {
|
|
494
|
-
"text": "TextInputProps['step']"
|
|
495
|
-
},
|
|
496
|
-
"fieldName": "step"
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
"name": "min",
|
|
500
|
-
"type": {
|
|
501
|
-
"text": "TextInputProps['min']"
|
|
502
|
-
},
|
|
503
|
-
"fieldName": "min"
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
"name": "max",
|
|
507
|
-
"type": {
|
|
508
|
-
"text": "TextInputProps['max']"
|
|
509
|
-
},
|
|
510
|
-
"fieldName": "max"
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
"name": "size",
|
|
514
|
-
"fieldName": "size"
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
"name": "required",
|
|
518
|
-
"type": {
|
|
519
|
-
"text": "boolean"
|
|
520
|
-
},
|
|
521
|
-
"default": "false",
|
|
522
|
-
"fieldName": "required"
|
|
523
|
-
}
|
|
524
|
-
],
|
|
525
377
|
"mixins": [
|
|
526
378
|
{
|
|
527
379
|
"name": "FormControlMixin",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { CSSResult } from 'lit';
|
|
3
|
+
import { FormControlInterface } from '@justeattakeaway/pie-webc-core';
|
|
4
|
+
import { GenericConstructor } from '@justeattakeaway/pie-webc-core';
|
|
5
5
|
import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
6
|
+
import { PIEInputElement } from '@justeattakeaway/pie-webc-core';
|
|
7
|
+
import { PropertyValues } from 'lit';
|
|
8
|
+
import { RTLInterface } from '@justeattakeaway/pie-webc-core';
|
|
9
|
+
import { TemplateResult } from 'lit-html';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* The default values for the `TextInputProps` that are required (i.e. they have a fallback value in the component).
|
|
@@ -33,7 +33,8 @@ export declare class PieTextInput extends PieTextInput_base implements TextInput
|
|
|
33
33
|
static shadowRootOptions: {
|
|
34
34
|
delegatesFocus: boolean;
|
|
35
35
|
mode: ShadowRootMode;
|
|
36
|
-
|
|
36
|
+
serializable?: boolean;
|
|
37
|
+
slotAssignment?: SlotAssignmentMode;
|
|
37
38
|
};
|
|
38
39
|
type: "number" | "text" | "password" | "url" | "email" | "tel";
|
|
39
40
|
value: string;
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ const z = class z extends ft {
|
|
|
10
10
|
this.getAttribute("v") || this.setAttribute("v", z.v);
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
z.v = "0.28.
|
|
13
|
+
z.v = "0.28.10";
|
|
14
14
|
let X = z;
|
|
15
15
|
const _t = "*,*:after,*:before{box-sizing:inherit}:host{display:block}.c-textInput{--input-padding-block: var(--dt-spacing-c);--input-padding-inline: var(--dt-spacing-d);--input-gap: var(--dt-spacing-d);--input-text-color: var(--dt-color-content-default);--input-text-color-leading-trailing-content: var(--dt-color-content-default);--input-text-color-placeholder: var(--dt-color-content-placeholder);--input-border-color: var(--dt-color-border-form);--input-container-color: var(--dt-color-container-default);--input-radius: var(--dt-radius-rounded-c);--input-font-size: calc(var(--dt-font-body-l-size) * 1px);--input-line-height: calc(var(--dt-font-body-l-line-height) * 1px);--input-height: 48px;--input-cursor: text;--icon-display-override: block;--icon-size-override: 24px;height:var(--input-height);border:1px solid var(--input-border-color);border-radius:var(--input-radius);padding-inline-start:var(--input-padding-inline);padding-inline-end:var(--input-padding-inline);padding-block-start:var(--input-padding-block);padding-block-end:var(--input-padding-block);font-size:var(--input-font-size);line-height:var(--input-line-height);display:flex;flex-wrap:nowrap;align-items:center;background-color:var(--input-container-color);color:var(--input-text-color-leading-trailing-content);cursor:var(--input-cursor)}.c-textInput.c-textInput--large{--input-padding-block: var(--dt-spacing-d);--input-height: 56px}.c-textInput.c-textInput--small{--input-padding-block: var(--dt-spacing-b);--input-height: 40px}.c-textInput.c-textInput--error{--input-border-color: var(--dt-color-support-error)}.c-textInput ::slotted([slot=leadingText]),.c-textInput ::slotted([slot=leadingIcon]){margin-inline-end:var(--input-gap)}.c-textInput ::slotted([slot=trailingText]),.c-textInput ::slotted([slot=trailingIcon]){margin-inline-start:var(--input-gap)}@supports (gap: var(--input-gap)){.c-textInput{gap:var(--input-gap)}.c-textInput ::slotted([slot=leadingText]),.c-textInput ::slotted([slot=leadingIcon]){margin-inline-end:0}.c-textInput ::slotted([slot=trailingText]),.c-textInput ::slotted([slot=trailingIcon]){margin-inline-start:0}}.c-textInput:not(.is-disabled) ::slotted([slot=leadingIcon]),.c-textInput:not(.is-disabled) ::slotted([slot=trailingIcon]){color:var(--dt-color-content-subdued)}@media (hover: hover){.c-textInput:hover{--input-container-color: hsl(var(--dt-color-container-default-h), var(--dt-color-container-default-s), calc(var(--dt-color-container-default-l) + calc(-1 * var(--dt-color-hover-01))))}@supports (background-color: color-mix(in srgb,black,white)){.c-textInput:hover{--input-container-color: color-mix(in srgb, var(--dt-color-hover-01-bg) var(--dt-color-hover-01), var(--dt-color-container-default))}}}.c-textInput.c-textInput--readonly{--input-container-color: var(--dt-color-container-subtle);--input-border-color: var(--dt-color-border-form)}.c-textInput.is-disabled.c-textInput--readonly,.c-textInput.is-disabled{--input-container-color: var(--dt-color-disabled-01);--input-border-color: var(--dt-color-disabled-01);--input-text-color: var(--dt-color-content-disabled);--input-text-color-placeholder: var(--dt-color-content-disabled);--input-text-color-leading-trailing-content: var(--dt-color-content-disabled);--input-cursor: auto}.c-textInput:focus-within{box-shadow:0 0 0 2px var(--dt-color-focus-inner),0 0 0 4px var(--dt-color-focus-outer);outline:none}input{border:0;outline:0;height:24px;padding:0;color:var(--input-text-color);width:100%;font-size:var(--input-font-size);font-family:inherit;background:none;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none}input::placeholder{color:var(--input-text-color-placeholder);opacity:1}input:disabled{-webkit-text-fill-color:var(--input-text-color);color:var(--input-text-color);-webkit-opacity:1;opacity:1}input[type=number]:not([step])::-webkit-inner-spin-button,input[type=number]:not([step])::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]:not([step]){-moz-appearance:textfield}", Ht = ["text", "number", "password", "url", "email", "tel"], Zt = ["none", "text", "tel", "url", "email", "numeric", "decimal", "search"], zt = ["default", "success", "error"], Wt = ["small", "medium", "large"], w = {
|
|
16
16
|
type: "text",
|
package/dist/react.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { CSSResult } from 'lit';
|
|
3
|
+
import { FormControlInterface } from '@justeattakeaway/pie-webc-core';
|
|
4
|
+
import { GenericConstructor } from '@justeattakeaway/pie-webc-core';
|
|
5
5
|
import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import { PIEInputElement } from '@justeattakeaway/pie-webc-core';
|
|
7
|
+
import { PropertyValues } from 'lit';
|
|
8
8
|
import * as React_2 from 'react';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import { RTLInterface } from '@justeattakeaway/pie-webc-core';
|
|
10
|
+
import { TemplateResult } from 'lit-html';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* The default values for the `TextInputProps` that are required (i.e. they have a fallback value in the component).
|
|
@@ -21,7 +21,7 @@ export declare const defaultProps: DefaultProps;
|
|
|
21
21
|
|
|
22
22
|
export declare const inputModes: readonly ["none", "text", "tel", "url", "email", "numeric", "decimal", "search"];
|
|
23
23
|
|
|
24
|
-
export declare const PieTextInput: React_2.ForwardRefExoticComponent<TextInputProps & React_2.RefAttributes<PieTextInput_2> & PieTextInputEvents & ReactBaseType>;
|
|
24
|
+
export declare const PieTextInput: React_2.ForwardRefExoticComponent<React_2.PropsWithoutRef<TextInputProps> & React_2.RefAttributes<PieTextInput_2> & PieTextInputEvents & ReactBaseType>;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* @tagname pie-text-input
|
|
@@ -36,7 +36,8 @@ declare class PieTextInput_2 extends PieTextInput_base implements TextInputProps
|
|
|
36
36
|
static shadowRootOptions: {
|
|
37
37
|
delegatesFocus: boolean;
|
|
38
38
|
mode: ShadowRootMode;
|
|
39
|
-
|
|
39
|
+
serializable?: boolean;
|
|
40
|
+
slotAssignment?: SlotAssignmentMode;
|
|
40
41
|
};
|
|
41
42
|
type: "number" | "text" | "password" | "url" | "email" | "tel";
|
|
42
43
|
value: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-text-input",
|
|
3
3
|
"description": "PIE Design System Input built using Web Components",
|
|
4
|
-
"version": "0.28.
|
|
4
|
+
"version": "0.28.10",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/justeattakeaway/pie",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@custom-elements-manifest/analyzer": "0.9.0",
|
|
42
|
-
"@justeattakeaway/pie-components-config": "0.
|
|
43
|
-
"@justeattakeaway/pie-css": "0.
|
|
44
|
-
"@justeattakeaway/pie-icons-webc": "1.
|
|
45
|
-
"@justeattakeaway/pie-monorepo-utils": "0.
|
|
42
|
+
"@justeattakeaway/pie-components-config": "0.21.0",
|
|
43
|
+
"@justeattakeaway/pie-css": "0.18.0",
|
|
44
|
+
"@justeattakeaway/pie-icons-webc": "1.14.0",
|
|
45
|
+
"@justeattakeaway/pie-monorepo-utils": "0.6.0",
|
|
46
46
|
"@justeattakeaway/pie-wrapper-react": "0.14.3",
|
|
47
47
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@justeattakeaway/pie-assistive-text": "0.10.
|
|
50
|
+
"@justeattakeaway/pie-assistive-text": "0.10.9",
|
|
51
51
|
"@justeattakeaway/pie-webc-core": "1.0.0",
|
|
52
52
|
"element-internals-polyfill": "1.3.11"
|
|
53
53
|
},
|