@wix/form-public 0.570.0 → 0.572.0
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/dist/index.cjs +1984 -1409
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +112 -5
- package/dist/index.css.map +1 -1
- package/dist/index.js +1396 -821
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -2937,10 +2937,13 @@
|
|
|
2937
2937
|
.input[data-hovered],
|
|
2938
2938
|
.input[data-focused],
|
|
2939
2939
|
.input[data-focus-within],
|
|
2940
|
-
.input.inputHover
|
|
2940
|
+
.input.inputHover,
|
|
2941
|
+
.input.nativeInput:hover,
|
|
2942
|
+
.input.nativeInput:focus {
|
|
2941
2943
|
border-color: var(--wst-graphics-1-color, #000000);
|
|
2942
2944
|
}
|
|
2943
|
-
.input[data-focus-visible]
|
|
2945
|
+
.input[data-focus-visible],
|
|
2946
|
+
.input.nativeInput:focus-visible {
|
|
2944
2947
|
outline: none;
|
|
2945
2948
|
box-shadow: 0 0 0 1px #ffffff, 0 0 0 3px #116dff;
|
|
2946
2949
|
}
|
|
@@ -3226,14 +3229,18 @@
|
|
|
3226
3229
|
.input:is([data-hovered], [data-focused], [data-focus-within], .inputHover) {
|
|
3227
3230
|
border-color: CanvasText;
|
|
3228
3231
|
}
|
|
3229
|
-
.input::placeholder
|
|
3232
|
+
.input::placeholder,
|
|
3233
|
+
.nativePlaceholder {
|
|
3230
3234
|
color: CanvasText;
|
|
3231
3235
|
}
|
|
3232
3236
|
.input:disabled::placeholder,
|
|
3233
|
-
.input[data-disabled]::placeholder
|
|
3237
|
+
.input[data-disabled]::placeholder,
|
|
3238
|
+
.nativeInput:disabled ~ :is(.nativeDecoration, .nativePlaceholder) {
|
|
3234
3239
|
color: GrayText;
|
|
3235
3240
|
}
|
|
3236
|
-
.input[data-focus-visible]
|
|
3241
|
+
.input[data-focus-visible],
|
|
3242
|
+
.input.nativeInput:focus-visible,
|
|
3243
|
+
.nativeClearButton:focus-visible {
|
|
3237
3244
|
outline: 2px solid Highlight;
|
|
3238
3245
|
outline-offset: 2px;
|
|
3239
3246
|
box-shadow: none;
|
|
@@ -3305,4 +3312,104 @@
|
|
|
3305
3312
|
background-color: Canvas;
|
|
3306
3313
|
}
|
|
3307
3314
|
}
|
|
3315
|
+
.nativeClearButton {
|
|
3316
|
+
position: absolute;
|
|
3317
|
+
top: 50%;
|
|
3318
|
+
inset-inline-end: 4px;
|
|
3319
|
+
display: flex;
|
|
3320
|
+
align-items: center;
|
|
3321
|
+
justify-content: center;
|
|
3322
|
+
width: 32px;
|
|
3323
|
+
height: 32px;
|
|
3324
|
+
padding: 0;
|
|
3325
|
+
border: 0;
|
|
3326
|
+
background: transparent;
|
|
3327
|
+
color: inherit;
|
|
3328
|
+
cursor: pointer;
|
|
3329
|
+
transform: translateY(-50%);
|
|
3330
|
+
}
|
|
3331
|
+
.nativeClearButton:focus-visible {
|
|
3332
|
+
outline: none;
|
|
3333
|
+
box-shadow: 0 0 0 1px #ffffff, 0 0 0 3px #116dff;
|
|
3334
|
+
}
|
|
3335
|
+
.nativeInput {
|
|
3336
|
+
display: block;
|
|
3337
|
+
min-height: calc(1lh + 18px);
|
|
3338
|
+
cursor: pointer;
|
|
3339
|
+
}
|
|
3340
|
+
.nativeInput:is(input) {
|
|
3341
|
+
height: calc(1lh + 18px);
|
|
3342
|
+
}
|
|
3343
|
+
.nativeInput:has(~ .nativeClearButton) {
|
|
3344
|
+
padding-inline-end: 44px;
|
|
3345
|
+
}
|
|
3346
|
+
.nativeSelect {
|
|
3347
|
+
padding-inline-end: 40px;
|
|
3348
|
+
text-overflow: ellipsis;
|
|
3349
|
+
}
|
|
3350
|
+
.nativeSelect:has(> option[value=""]:checked) {
|
|
3351
|
+
color: var(--placeholderColor, var(--wst-shade-3-color, #757575));
|
|
3352
|
+
}
|
|
3353
|
+
.nativeInput[data-empty] {
|
|
3354
|
+
-webkit-text-fill-color: transparent;
|
|
3355
|
+
}
|
|
3356
|
+
.nativeInput::-webkit-date-and-time-value {
|
|
3357
|
+
min-height: 1lh;
|
|
3358
|
+
text-align: start;
|
|
3359
|
+
}
|
|
3360
|
+
.nativeInput::-webkit-calendar-picker-indicator {
|
|
3361
|
+
display: none;
|
|
3362
|
+
}
|
|
3363
|
+
.nativeInput::-webkit-datetime-edit {
|
|
3364
|
+
padding: 0;
|
|
3365
|
+
}
|
|
3366
|
+
.nativeDecoration {
|
|
3367
|
+
position: absolute;
|
|
3368
|
+
top: 50%;
|
|
3369
|
+
inset-inline-end: 12px;
|
|
3370
|
+
display: flex;
|
|
3371
|
+
margin: 0;
|
|
3372
|
+
pointer-events: none;
|
|
3373
|
+
transform: translateY(-50%);
|
|
3374
|
+
}
|
|
3375
|
+
.nativeInput[readonly] ~ .nativeDecoration {
|
|
3376
|
+
opacity: 0.2;
|
|
3377
|
+
}
|
|
3378
|
+
.nativeInput:disabled ~ :is(.nativeDecoration, .nativePlaceholder) {
|
|
3379
|
+
color: var(--wst-system-disabled-color, #c7c7c7);
|
|
3380
|
+
}
|
|
3381
|
+
.nativeWithLeadingIcon:is(input) {
|
|
3382
|
+
padding-inline-start: calc(12px + 1em + 8px);
|
|
3383
|
+
}
|
|
3384
|
+
.nativeLeadingIcon {
|
|
3385
|
+
inset-inline-start: 12px;
|
|
3386
|
+
inset-inline-end: auto;
|
|
3387
|
+
width: 1em;
|
|
3388
|
+
height: 1em;
|
|
3389
|
+
}
|
|
3390
|
+
.nativePlaceholder {
|
|
3391
|
+
position: absolute;
|
|
3392
|
+
top: 50%;
|
|
3393
|
+
inset-inline: 13px 44px;
|
|
3394
|
+
overflow: hidden;
|
|
3395
|
+
color: var(--placeholderColor, var(--wst-shade-3-color, #757575));
|
|
3396
|
+
white-space: nowrap;
|
|
3397
|
+
text-overflow: ellipsis;
|
|
3398
|
+
pointer-events: none;
|
|
3399
|
+
transform: translateY(-50%);
|
|
3400
|
+
}
|
|
3401
|
+
.nativeWithLeadingIcon ~ .nativePlaceholder {
|
|
3402
|
+
inset-inline-start: calc(13px + 1em + 8px);
|
|
3403
|
+
}
|
|
3404
|
+
@supports (-moz-appearance: none) {
|
|
3405
|
+
.nativeLeadingIcon {
|
|
3406
|
+
display: none;
|
|
3407
|
+
}
|
|
3408
|
+
.nativeWithLeadingIcon:is(input) {
|
|
3409
|
+
padding-inline-start: 12px;
|
|
3410
|
+
}
|
|
3411
|
+
.nativeWithLeadingIcon ~ .nativePlaceholder {
|
|
3412
|
+
inset-inline-start: 13px;
|
|
3413
|
+
}
|
|
3414
|
+
}
|
|
3308
3415
|
/*# sourceMappingURL=index.css.map */
|