zidan-select 2.0.2 → 2.1.1
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 +274 -30
- package/dist/plugin-core.css +535 -1
- package/dist/plugin-theme.css +417 -5
- package/dist/zidan-form.js +1767 -103
- package/dist/zidan-form.mjs +14 -9
- package/docs/build.md +14 -3
- package/docs/demo-inputs.png +0 -0
- package/docs/demo.png +0 -0
- package/docs/frameworks.md +2 -1
- package/docs/index.html +15 -9
- package/docs/options.md +260 -4
- package/docs/theming.md +42 -0
- package/docs/validation.md +38 -1
- package/package.json +2 -2
- package/plugin-core.css +535 -1
- package/plugin-theme.css +417 -5
- package/zidan-form.js +1767 -103
- package/zidan-form.mjs +14 -9
package/dist/plugin-core.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* ZidanForm v2.
|
|
2
|
+
* ZidanForm v2.1.1 — plugin-core.css
|
|
3
3
|
* Structure and mechanics only: layout, positioning, visibility, focus
|
|
4
4
|
* plumbing and accessible native-input handling. No colours, borders colours,
|
|
5
5
|
* shadows or decorative skin — load plugin-theme.css (or your own theme) for
|
|
@@ -497,6 +497,16 @@
|
|
|
497
497
|
gap: 10px;
|
|
498
498
|
}
|
|
499
499
|
|
|
500
|
+
.zs-field__error {
|
|
501
|
+
margin: 0;
|
|
502
|
+
font-size: 0.75rem;
|
|
503
|
+
line-height: 1.35;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.zs-field__error[hidden] {
|
|
507
|
+
display: none;
|
|
508
|
+
}
|
|
509
|
+
|
|
500
510
|
.zs-counter {
|
|
501
511
|
margin-left: auto;
|
|
502
512
|
font-size: 0.75rem;
|
|
@@ -583,6 +593,9 @@
|
|
|
583
593
|
}
|
|
584
594
|
|
|
585
595
|
.zs-check-label {
|
|
596
|
+
display: flex;
|
|
597
|
+
flex-direction: column;
|
|
598
|
+
gap: 2px;
|
|
586
599
|
min-width: 0;
|
|
587
600
|
}
|
|
588
601
|
|
|
@@ -590,6 +603,14 @@
|
|
|
590
603
|
display: none;
|
|
591
604
|
}
|
|
592
605
|
|
|
606
|
+
.zs-check-desc,
|
|
607
|
+
.zs-radio-desc {
|
|
608
|
+
display: block;
|
|
609
|
+
font-size: 0.75rem;
|
|
610
|
+
font-weight: 400;
|
|
611
|
+
line-height: 1.35;
|
|
612
|
+
}
|
|
613
|
+
|
|
593
614
|
/* switch */
|
|
594
615
|
.zs-switch-track {
|
|
595
616
|
width: var(--zs-switch-width, 40px);
|
|
@@ -613,6 +634,95 @@
|
|
|
613
634
|
transform: translate(calc(var(--zs-switch-width, 40px) - var(--zs-switch-height, 22px)), -50%);
|
|
614
635
|
}
|
|
615
636
|
|
|
637
|
+
.zs-switch-on,
|
|
638
|
+
.zs-switch-off {
|
|
639
|
+
position: absolute;
|
|
640
|
+
top: 50%;
|
|
641
|
+
transform: translateY(-50%);
|
|
642
|
+
font-size: 0.5rem;
|
|
643
|
+
font-weight: 700;
|
|
644
|
+
letter-spacing: 0.03em;
|
|
645
|
+
line-height: 1;
|
|
646
|
+
opacity: 0;
|
|
647
|
+
transition: opacity 120ms ease;
|
|
648
|
+
pointer-events: none;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.zs-switch-on {
|
|
652
|
+
left: 5px;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.zs-switch-off {
|
|
656
|
+
right: 5px;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.zs-check--checked .zs-switch-on {
|
|
660
|
+
opacity: 1;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.zs-check:not(.zs-check--checked) .zs-switch-off {
|
|
664
|
+
opacity: 1;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
/* switch styles */
|
|
668
|
+
.zs-field[data-zs-switch-style="material"] .zs-switch-track {
|
|
669
|
+
width: 46px;
|
|
670
|
+
height: 20px;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.zs-field[data-zs-switch-style="material"] .zs-switch-track::after {
|
|
674
|
+
width: 22px;
|
|
675
|
+
height: 22px;
|
|
676
|
+
left: -2px;
|
|
677
|
+
border-radius: 50%;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.zs-field[data-zs-switch-style="material"] .zs-check--checked .zs-switch-track::after {
|
|
681
|
+
transform: translate(26px, -50%);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.zs-field[data-zs-switch-style="square"] .zs-switch-track,
|
|
685
|
+
.zs-field[data-zs-switch-style="square"] .zs-switch-track::after {
|
|
686
|
+
border-radius: 4px;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
.zs-field[data-zs-switch-style="labeled"] .zs-switch-track,
|
|
690
|
+
.zs-field[data-zs-switch-style="icon"] .zs-switch-track {
|
|
691
|
+
width: var(--zs-switch-width-lg, 56px);
|
|
692
|
+
height: var(--zs-switch-height-lg, 24px);
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.zs-field[data-zs-switch-style="labeled"] .zs-switch-track::after,
|
|
696
|
+
.zs-field[data-zs-switch-style="icon"] .zs-switch-track::after {
|
|
697
|
+
width: 18px;
|
|
698
|
+
height: 18px;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.zs-field[data-zs-switch-style="labeled"] .zs-check--checked .zs-switch-track::after,
|
|
702
|
+
.zs-field[data-zs-switch-style="icon"] .zs-check--checked .zs-switch-track::after {
|
|
703
|
+
transform: translate(32px, -50%);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.zs-field[data-zs-switch-style="labeled"] .zs-switch-on,
|
|
707
|
+
.zs-field[data-zs-switch-style="labeled"] .zs-switch-off {
|
|
708
|
+
font-size: 0.5625rem;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.zs-field[data-zs-switch-style="icon"] .zs-switch-on,
|
|
712
|
+
.zs-field[data-zs-switch-style="icon"] .zs-switch-off {
|
|
713
|
+
font-size: 0;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.zs-field[data-zs-switch-style="icon"] .zs-switch-on::before {
|
|
717
|
+
content: "\2713";
|
|
718
|
+
font-size: 0.625rem;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.zs-field[data-zs-switch-style="icon"] .zs-switch-off::before {
|
|
722
|
+
content: "\2715";
|
|
723
|
+
font-size: 0.625rem;
|
|
724
|
+
}
|
|
725
|
+
|
|
616
726
|
/* card variant */
|
|
617
727
|
.zs-field[data-zs-variant="card"] .zs-check {
|
|
618
728
|
width: 100%;
|
|
@@ -629,6 +739,24 @@
|
|
|
629
739
|
gap: 2px;
|
|
630
740
|
}
|
|
631
741
|
|
|
742
|
+
.zs-field[data-zs-variant="button"] .zs-check {
|
|
743
|
+
padding: 8px 12px;
|
|
744
|
+
border-width: var(--zs-border-width, 1px);
|
|
745
|
+
border-style: solid;
|
|
746
|
+
border-radius: var(--zs-radius-pill, 999px);
|
|
747
|
+
transition: border-color 150ms ease, background-color 150ms ease;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.zs-field[data-zs-variant="minimal"] .zs-check {
|
|
751
|
+
width: 100%;
|
|
752
|
+
padding: 4px 0;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
.zs-field[data-zs-variant="minimal"] .zs-check-box {
|
|
756
|
+
border-width: 0;
|
|
757
|
+
border-radius: 4px;
|
|
758
|
+
}
|
|
759
|
+
|
|
632
760
|
/* ==================================================================
|
|
633
761
|
8. Radio groups
|
|
634
762
|
================================================================== */
|
|
@@ -707,6 +835,43 @@
|
|
|
707
835
|
transition: border-color 150ms ease, background-color 150ms ease;
|
|
708
836
|
}
|
|
709
837
|
|
|
838
|
+
.zs-radio-group[data-zs-variant="button"] {
|
|
839
|
+
flex-direction: row;
|
|
840
|
+
flex-wrap: wrap;
|
|
841
|
+
gap: 8px;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
.zs-radio-group[data-zs-variant="button"] .zs-radio {
|
|
845
|
+
padding: 8px 12px;
|
|
846
|
+
border-width: var(--zs-border-width, 1px);
|
|
847
|
+
border-style: solid;
|
|
848
|
+
border-radius: var(--zs-radius-pill, 999px);
|
|
849
|
+
transition: border-color 150ms ease, background-color 150ms ease;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.zs-radio-group[data-zs-variant="tile"] {
|
|
853
|
+
display: grid;
|
|
854
|
+
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
|
|
855
|
+
gap: 8px;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
.zs-radio-group[data-zs-variant="tile"] .zs-radio {
|
|
859
|
+
flex-direction: column;
|
|
860
|
+
align-items: flex-start;
|
|
861
|
+
gap: 6px;
|
|
862
|
+
padding: 12px;
|
|
863
|
+
border-width: var(--zs-border-width, 1px);
|
|
864
|
+
border-style: solid;
|
|
865
|
+
border-radius: var(--zs-radius, 10px);
|
|
866
|
+
transition: border-color 150ms ease, background-color 150ms ease;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
.zs-radio-group[data-zs-variant="tile"] .zs-radio-label {
|
|
870
|
+
display: flex;
|
|
871
|
+
flex-direction: column;
|
|
872
|
+
gap: 2px;
|
|
873
|
+
}
|
|
874
|
+
|
|
710
875
|
.zs-radio-label {
|
|
711
876
|
min-width: 0;
|
|
712
877
|
}
|
|
@@ -853,6 +1018,163 @@
|
|
|
853
1018
|
display: none;
|
|
854
1019
|
}
|
|
855
1020
|
|
|
1021
|
+
/* upload variants (scoped to beat the base .zs-field--file .zs-file-drop rules) */
|
|
1022
|
+
.zs-field--file .zs-file-drop--button,
|
|
1023
|
+
.zs-field--file .zs-file-drop--compact {
|
|
1024
|
+
flex-direction: row;
|
|
1025
|
+
align-items: center;
|
|
1026
|
+
justify-content: flex-start;
|
|
1027
|
+
gap: 8px;
|
|
1028
|
+
min-height: 0;
|
|
1029
|
+
padding: 10px 14px;
|
|
1030
|
+
text-align: left;
|
|
1031
|
+
border-style: solid;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
.zs-field--file .zs-file-drop--compact {
|
|
1035
|
+
padding: 6px 10px;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
.zs-field--file .zs-file-drop--button .zs-file-icon,
|
|
1039
|
+
.zs-field--file .zs-file-drop--compact .zs-file-icon {
|
|
1040
|
+
margin: 0;
|
|
1041
|
+
width: 24px;
|
|
1042
|
+
height: 24px;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
.zs-field--file .zs-file-drop--button .zs-file-drop-hint,
|
|
1046
|
+
.zs-field--file .zs-file-drop--compact .zs-file-drop-hint {
|
|
1047
|
+
margin-left: auto;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
.zs-field--file .zs-file-drop--avatar {
|
|
1051
|
+
flex: 0 0 auto;
|
|
1052
|
+
width: var(--zs-avatar-size, 96px);
|
|
1053
|
+
height: var(--zs-avatar-size, 96px);
|
|
1054
|
+
min-height: 0;
|
|
1055
|
+
padding: 0;
|
|
1056
|
+
overflow: hidden;
|
|
1057
|
+
border-style: solid;
|
|
1058
|
+
border-radius: 50%;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
.zs-field--file .zs-file-drop--avatar .zs-file-drop-title,
|
|
1062
|
+
.zs-field--file .zs-file-drop--avatar .zs-file-drop-hint {
|
|
1063
|
+
position: absolute;
|
|
1064
|
+
width: 1px;
|
|
1065
|
+
height: 1px;
|
|
1066
|
+
padding: 0;
|
|
1067
|
+
margin: -1px;
|
|
1068
|
+
overflow: hidden;
|
|
1069
|
+
clip: rect(0 0 0 0);
|
|
1070
|
+
white-space: nowrap;
|
|
1071
|
+
border: 0;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
.zs-field--file .zs-file-drop--avatar .zs-file-icon {
|
|
1075
|
+
margin: 0;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
.zs-file-avatar {
|
|
1079
|
+
position: absolute;
|
|
1080
|
+
inset: 0;
|
|
1081
|
+
display: block;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
.zs-file-avatar[hidden] {
|
|
1085
|
+
display: none;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
.zs-file-avatar img {
|
|
1089
|
+
width: 100%;
|
|
1090
|
+
height: 100%;
|
|
1091
|
+
object-fit: cover;
|
|
1092
|
+
display: block;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
.zs-file-drop--has-preview .zs-file-icon {
|
|
1096
|
+
display: none;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
.zs-field--file .zs-file-drop--gallery {
|
|
1100
|
+
flex-direction: row;
|
|
1101
|
+
flex-wrap: wrap;
|
|
1102
|
+
justify-content: center;
|
|
1103
|
+
gap: 6px;
|
|
1104
|
+
min-height: 88px;
|
|
1105
|
+
padding: 14px;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
.zs-field[data-zs-file-variant="gallery"] .zs-file-list {
|
|
1109
|
+
display: grid;
|
|
1110
|
+
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
1111
|
+
gap: 8px;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
.zs-field[data-zs-file-variant="gallery"] .zs-file-item {
|
|
1115
|
+
flex-direction: column;
|
|
1116
|
+
align-items: stretch;
|
|
1117
|
+
gap: 6px;
|
|
1118
|
+
padding: 6px;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
.zs-field[data-zs-file-variant="gallery"] .zs-file-thumb {
|
|
1122
|
+
width: 100%;
|
|
1123
|
+
height: 86px;
|
|
1124
|
+
border-radius: 6px;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
.zs-field[data-zs-file-variant="gallery"] .zs-file-actions {
|
|
1128
|
+
justify-content: flex-end;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
.zs-field[data-zs-file-variant="gallery"] .zs-file-upload-state {
|
|
1132
|
+
flex-wrap: wrap;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
.zs-file-upload-state {
|
|
1136
|
+
display: flex;
|
|
1137
|
+
align-items: center;
|
|
1138
|
+
gap: 6px;
|
|
1139
|
+
font-size: 0.6875rem;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
.zs-file-progress {
|
|
1143
|
+
position: relative;
|
|
1144
|
+
display: inline-block;
|
|
1145
|
+
flex: 1 1 58px;
|
|
1146
|
+
height: 4px;
|
|
1147
|
+
min-width: 44px;
|
|
1148
|
+
overflow: hidden;
|
|
1149
|
+
border-radius: 999px;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
.zs-file-progress-bar {
|
|
1153
|
+
display: block;
|
|
1154
|
+
height: 100%;
|
|
1155
|
+
width: 0;
|
|
1156
|
+
border-radius: inherit;
|
|
1157
|
+
transition: width 120ms linear;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
.zs-file-actions {
|
|
1161
|
+
flex: 0 0 auto;
|
|
1162
|
+
display: inline-flex;
|
|
1163
|
+
align-items: center;
|
|
1164
|
+
gap: 4px;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
.zs-file-cancel,
|
|
1168
|
+
.zs-file-retry {
|
|
1169
|
+
padding: 2px 6px;
|
|
1170
|
+
border: 0;
|
|
1171
|
+
border-radius: 5px;
|
|
1172
|
+
font: inherit;
|
|
1173
|
+
font-size: 0.6875rem;
|
|
1174
|
+
font-weight: 600;
|
|
1175
|
+
cursor: pointer;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
856
1178
|
/* ==================================================================
|
|
857
1179
|
10. Text inputs & textarea
|
|
858
1180
|
================================================================== */
|
|
@@ -961,6 +1283,218 @@ textarea.zs-input-native {
|
|
|
961
1283
|
outline: none;
|
|
962
1284
|
}
|
|
963
1285
|
|
|
1286
|
+
/* field icons */
|
|
1287
|
+
.zs-input-icon {
|
|
1288
|
+
flex: 0 0 auto;
|
|
1289
|
+
display: inline-flex;
|
|
1290
|
+
align-items: center;
|
|
1291
|
+
justify-content: center;
|
|
1292
|
+
width: 20px;
|
|
1293
|
+
height: 20px;
|
|
1294
|
+
padding: 0;
|
|
1295
|
+
border: 0;
|
|
1296
|
+
background: transparent;
|
|
1297
|
+
color: inherit;
|
|
1298
|
+
line-height: 1;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
.zs-input-icon svg {
|
|
1302
|
+
display: block;
|
|
1303
|
+
width: 18px;
|
|
1304
|
+
height: 18px;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
.zs-input-icon--action {
|
|
1308
|
+
cursor: pointer;
|
|
1309
|
+
border-radius: 6px;
|
|
1310
|
+
transition: background-color 150ms ease, color 150ms ease;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
.zs-input-icon--action:focus-visible {
|
|
1314
|
+
outline: none;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
/* phone country selector */
|
|
1318
|
+
.zs-phone-country {
|
|
1319
|
+
flex: 0 0 auto;
|
|
1320
|
+
max-width: 104px;
|
|
1321
|
+
height: calc(var(--zs-height, 44px) - 10px);
|
|
1322
|
+
padding: 0 4px;
|
|
1323
|
+
font: inherit;
|
|
1324
|
+
font-size: 0.8125rem;
|
|
1325
|
+
color: inherit;
|
|
1326
|
+
background: transparent;
|
|
1327
|
+
border: 0;
|
|
1328
|
+
border-right-width: 1px;
|
|
1329
|
+
border-right-style: solid;
|
|
1330
|
+
cursor: pointer;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
.zs-field--phone .zs-input-native {
|
|
1334
|
+
min-width: 7ch;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
/* number stepper */
|
|
1338
|
+
.zs-stepper {
|
|
1339
|
+
flex: 0 0 auto;
|
|
1340
|
+
display: inline-flex;
|
|
1341
|
+
gap: 2px;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
.zs-stepper--stacked {
|
|
1345
|
+
flex-direction: column;
|
|
1346
|
+
gap: 1px;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
.zs-stepper-btn {
|
|
1350
|
+
flex: 0 0 auto;
|
|
1351
|
+
display: inline-flex;
|
|
1352
|
+
align-items: center;
|
|
1353
|
+
justify-content: center;
|
|
1354
|
+
width: 26px;
|
|
1355
|
+
height: 22px;
|
|
1356
|
+
padding: 0;
|
|
1357
|
+
border: 0;
|
|
1358
|
+
background: transparent;
|
|
1359
|
+
color: inherit;
|
|
1360
|
+
cursor: pointer;
|
|
1361
|
+
transition: background-color 150ms ease, color 150ms ease;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
.zs-stepper--stacked .zs-stepper-btn {
|
|
1365
|
+
width: 24px;
|
|
1366
|
+
height: 15px;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
.zs-field--stepper-split .zs-stepper-btn {
|
|
1370
|
+
width: 30px;
|
|
1371
|
+
height: auto;
|
|
1372
|
+
min-height: calc(var(--zs-height, 44px) - 2px);
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
.zs-stepper-btn:disabled {
|
|
1376
|
+
opacity: 0.4;
|
|
1377
|
+
cursor: not-allowed;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
.zs-stepper-btn:focus-visible {
|
|
1381
|
+
outline: none;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
.zs-stepper-glyph svg {
|
|
1385
|
+
display: block;
|
|
1386
|
+
width: 12px;
|
|
1387
|
+
height: 12px;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
.zs-stepper--stacked .zs-stepper-glyph svg {
|
|
1391
|
+
width: 10px;
|
|
1392
|
+
height: 10px;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
/* the custom stepper replaces the native number spinners */
|
|
1396
|
+
.zs-field[data-zs-type="number"] .zs-input-native--stepper {
|
|
1397
|
+
appearance: textfield;
|
|
1398
|
+
-webkit-appearance: none;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
.zs-field[data-zs-type="number"] .zs-input-native--stepper::-webkit-outer-spin-button,
|
|
1402
|
+
.zs-field[data-zs-type="number"] .zs-input-native--stepper::-webkit-inner-spin-button {
|
|
1403
|
+
-webkit-appearance: none;
|
|
1404
|
+
margin: 0;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
/* range chrome */
|
|
1408
|
+
.zs-input-shell--range {
|
|
1409
|
+
min-height: 0;
|
|
1410
|
+
padding: 0;
|
|
1411
|
+
border-width: 0;
|
|
1412
|
+
background: transparent;
|
|
1413
|
+
box-shadow: none;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
.zs-range {
|
|
1417
|
+
position: relative;
|
|
1418
|
+
flex: 1 1 auto;
|
|
1419
|
+
min-width: 0;
|
|
1420
|
+
padding: 20px 0 4px;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
.zs-range .zs-input-native {
|
|
1424
|
+
width: 100%;
|
|
1425
|
+
margin: 0;
|
|
1426
|
+
height: 6px;
|
|
1427
|
+
border-radius: 999px;
|
|
1428
|
+
cursor: pointer;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
.zs-range-ticks {
|
|
1432
|
+
position: relative;
|
|
1433
|
+
height: 6px;
|
|
1434
|
+
margin-top: 2px;
|
|
1435
|
+
pointer-events: none;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
.zs-range-tick {
|
|
1439
|
+
position: absolute;
|
|
1440
|
+
top: 0;
|
|
1441
|
+
width: 2px;
|
|
1442
|
+
height: 6px;
|
|
1443
|
+
transform: translateX(-50%);
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
.zs-range-tick--labeled {
|
|
1447
|
+
top: 8px;
|
|
1448
|
+
width: auto;
|
|
1449
|
+
height: auto;
|
|
1450
|
+
font-size: 0.625rem;
|
|
1451
|
+
white-space: nowrap;
|
|
1452
|
+
transform: translateX(-50%);
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
.zs-range-scale {
|
|
1456
|
+
display: flex;
|
|
1457
|
+
justify-content: space-between;
|
|
1458
|
+
margin-top: 10px;
|
|
1459
|
+
font-size: 0.6875rem;
|
|
1460
|
+
font-variant-numeric: tabular-nums;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
.zs-range-bubble {
|
|
1464
|
+
position: absolute;
|
|
1465
|
+
top: 0;
|
|
1466
|
+
left: calc(var(--zs-range-pct, 0) * 100%);
|
|
1467
|
+
min-width: 28px;
|
|
1468
|
+
padding: 1px 6px;
|
|
1469
|
+
text-align: center;
|
|
1470
|
+
border-radius: 999px;
|
|
1471
|
+
transform: translateX(-50%);
|
|
1472
|
+
font-size: 0.6875rem;
|
|
1473
|
+
font-weight: 600;
|
|
1474
|
+
font-variant-numeric: tabular-nums;
|
|
1475
|
+
white-space: nowrap;
|
|
1476
|
+
pointer-events: none;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
/* validation state icons */
|
|
1480
|
+
.zs-input-validation {
|
|
1481
|
+
display: none;
|
|
1482
|
+
flex: 0 0 auto;
|
|
1483
|
+
width: 18px;
|
|
1484
|
+
height: 18px;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
.zs-input-validation svg {
|
|
1488
|
+
display: block;
|
|
1489
|
+
width: 18px;
|
|
1490
|
+
height: 18px;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
.zs-field[data-zs-validation="valid"] .zs-input-validation--valid,
|
|
1494
|
+
.zs-field[data-zs-validation="invalid"] .zs-input-validation--invalid {
|
|
1495
|
+
display: inline-flex;
|
|
1496
|
+
}
|
|
1497
|
+
|
|
964
1498
|
/* floating & outlined label mechanics */
|
|
965
1499
|
.zs-field[data-zs-layout="floating"] .zs-input-shell,
|
|
966
1500
|
.zs-field[data-zs-layout="outlined"] .zs-input-shell {
|