@fastkit/vui 0.7.46 → 0.7.49
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/vui.cjs.js +414 -3
- package/dist/vui.cjs.prod.js +414 -3
- package/dist/vui.css +230 -1
- package/dist/vui.d.ts +688 -0
- package/dist/vui.min.css +1 -1
- package/dist/vui.min.css.map +1 -1
- package/dist/vui.mjs +408 -6
- package/package.json +6 -6
- package/src/components/.DS_Store +0 -0
- package/src/components/VAvatar/.DS_Store +0 -0
- package/src/components/VAvatar/VAvatar.scss +76 -0
- package/src/components/VAvatar/VAvatar.tsx +81 -0
- package/src/components/VAvatar/index.ts +1 -0
- package/src/components/VBusyImage/VBusyImage.scss +58 -0
- package/src/components/VBusyImage/VBusyImage.tsx +278 -0
- package/src/components/VBusyImage/index.ts +1 -0
- package/src/components/VButton/VButton.scss +2 -1
- package/src/components/VChip/.DS_Store +0 -0
- package/src/components/VChip/VChip.scss +78 -0
- package/src/components/VChip/VChip.tsx +102 -0
- package/src/components/VChip/index.ts +1 -0
- package/src/components/VFormControl/VFormControl.tsx +1 -1
- package/src/components/VSkeltonLoader/.DS_Store +0 -0
- package/src/components/VSkeltonLoader/VSkeltonLoaderBone.scss +31 -0
- package/src/components/VSkeltonLoader/VSkeltonLoaderBone.tsx +25 -0
- package/src/components/VSkeltonLoader/index.ts +1 -0
- package/src/components/VWysiwygEditor/VWysiwygEditor.tsx +5 -4
- package/src/components/index.ts +4 -0
- package/src/styles/variables.scss +19 -0
package/dist/vui.css
CHANGED
|
@@ -365,6 +365,7 @@ template {
|
|
|
365
365
|
--typo-base-weight: 400;
|
|
366
366
|
--typo-base-height: 1.5;
|
|
367
367
|
--typo-base-spacing: 0em;
|
|
368
|
+
--typo-medium-weight: 500;
|
|
368
369
|
--typo-h1-size: 2.5rem;
|
|
369
370
|
--typo-h1-weight: 500;
|
|
370
371
|
--typo-h1-height: 1.2222222222222223;
|
|
@@ -410,6 +411,18 @@ template {
|
|
|
410
411
|
--typo-subtitle2-height: 1.57;
|
|
411
412
|
--typo-subtitle2-spacing: 0.00714em;
|
|
412
413
|
--typo-sm-size: calc(var(--root-em) * 0.875);
|
|
414
|
+
--chip-padding: 0.875em;
|
|
415
|
+
--chip-font-weight: var(--typo-base-weight);
|
|
416
|
+
--chip-height-xs: 16px;
|
|
417
|
+
--chip-font-size-xs: 10px;
|
|
418
|
+
--chip-height-sm: 24px;
|
|
419
|
+
--chip-font-size-sm: 12px;
|
|
420
|
+
--chip-height-md: 32px;
|
|
421
|
+
--chip-font-size-md: 14px;
|
|
422
|
+
--chip-height-lg: 54px;
|
|
423
|
+
--chip-font-size-lg: 16px;
|
|
424
|
+
--chip-height-xl: 66px;
|
|
425
|
+
--chip-font-size-xl: 18px;
|
|
413
426
|
--control-field-rem-sm: 0.875rem;
|
|
414
427
|
--control-field-rem-md: 1rem;
|
|
415
428
|
--control-field-rem-lg: 1.125rem;
|
|
@@ -935,6 +948,82 @@ thead th {
|
|
|
935
948
|
justify-content: center;
|
|
936
949
|
transition: transform 150ms linear;
|
|
937
950
|
}
|
|
951
|
+
.v-skelton-loader-bone {
|
|
952
|
+
position: relative;
|
|
953
|
+
overflow: hidden;
|
|
954
|
+
cursor: progress;
|
|
955
|
+
background: rgba(0, 0, 0, 0.12);
|
|
956
|
+
border-radius: inherit;
|
|
957
|
+
}
|
|
958
|
+
.v-skelton-loader-bone::after {
|
|
959
|
+
position: absolute;
|
|
960
|
+
top: 0;
|
|
961
|
+
right: 0;
|
|
962
|
+
left: 0;
|
|
963
|
+
z-index: 1;
|
|
964
|
+
height: 100%;
|
|
965
|
+
content: "";
|
|
966
|
+
background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
|
|
967
|
+
transform: translateX(-100%);
|
|
968
|
+
animation: v-skelton-loader-bone-loading 1.5s infinite;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
@keyframes v-skelton-loader-bone-loading {
|
|
972
|
+
100% {
|
|
973
|
+
transform: translateX(100%);
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
.v-busy-image {
|
|
977
|
+
position: relative;
|
|
978
|
+
display: inline-block;
|
|
979
|
+
max-width: 100%;
|
|
980
|
+
vertical-align: bottom;
|
|
981
|
+
}
|
|
982
|
+
.v-busy-image--clickable {
|
|
983
|
+
cursor: pointer;
|
|
984
|
+
}
|
|
985
|
+
.v-busy-image--cover {
|
|
986
|
+
background-repeat: no-repeat;
|
|
987
|
+
background-position: center;
|
|
988
|
+
background-size: cover;
|
|
989
|
+
}
|
|
990
|
+
.v-busy-image--loading::before {
|
|
991
|
+
position: absolute;
|
|
992
|
+
top: 0;
|
|
993
|
+
right: 0;
|
|
994
|
+
bottom: 0;
|
|
995
|
+
left: 0;
|
|
996
|
+
display: block;
|
|
997
|
+
content: "";
|
|
998
|
+
background: rgba(0, 0, 0, 0.1);
|
|
999
|
+
animation: v-tiny-image-blink normal 1.5s infinite ease-in-out;
|
|
1000
|
+
}
|
|
1001
|
+
.v-busy-image__node {
|
|
1002
|
+
position: relative;
|
|
1003
|
+
display: inline-block;
|
|
1004
|
+
max-width: 100%;
|
|
1005
|
+
vertical-align: bottom;
|
|
1006
|
+
}
|
|
1007
|
+
.v-busy-image__slot {
|
|
1008
|
+
position: absolute;
|
|
1009
|
+
top: 0;
|
|
1010
|
+
left: 0;
|
|
1011
|
+
width: 100%;
|
|
1012
|
+
height: 100%;
|
|
1013
|
+
pointer-events: none;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
@keyframes v-tiny-image-blink {
|
|
1017
|
+
0% {
|
|
1018
|
+
opacity: 1;
|
|
1019
|
+
}
|
|
1020
|
+
50% {
|
|
1021
|
+
opacity: 0;
|
|
1022
|
+
}
|
|
1023
|
+
100% {
|
|
1024
|
+
opacity: 1;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
938
1027
|
.v-grid-item {
|
|
939
1028
|
display: block;
|
|
940
1029
|
}
|
|
@@ -974,6 +1063,146 @@ thead th {
|
|
|
974
1063
|
border-bottom-right-radius: inherit;
|
|
975
1064
|
border-bottom-left-radius: inherit;
|
|
976
1065
|
}
|
|
1066
|
+
.v-avatar {
|
|
1067
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
1068
|
+
padding: 0;
|
|
1069
|
+
touch-action: manipulation;
|
|
1070
|
+
cursor: pointer;
|
|
1071
|
+
user-select: none;
|
|
1072
|
+
background-color: transparent;
|
|
1073
|
+
border: 0;
|
|
1074
|
+
outline: 0;
|
|
1075
|
+
appearance: none;
|
|
1076
|
+
--avatar-radius: 50%;
|
|
1077
|
+
--avatar-font-weight: var(--typo-medium-weight);
|
|
1078
|
+
--avatar-base-font-size: var(--typo-base-size);
|
|
1079
|
+
--avatar-font-size: var(--avatar-base-font-size);
|
|
1080
|
+
display: inline-flex;
|
|
1081
|
+
flex-basis: var(--avatar-size);
|
|
1082
|
+
align-items: center;
|
|
1083
|
+
justify-content: center;
|
|
1084
|
+
width: var(--avatar-size);
|
|
1085
|
+
min-width: var(--avatar-size);
|
|
1086
|
+
height: var(--avatar-size);
|
|
1087
|
+
overflow: hidden;
|
|
1088
|
+
font-size: var(--avatar-font-size);
|
|
1089
|
+
font-weight: var(--avatar-font-weight);
|
|
1090
|
+
line-height: 1;
|
|
1091
|
+
text-align: center;
|
|
1092
|
+
vertical-align: bottom;
|
|
1093
|
+
cursor: default;
|
|
1094
|
+
border-style: solid;
|
|
1095
|
+
border-width: 1px;
|
|
1096
|
+
border-radius: var(--avatar-radius);
|
|
1097
|
+
--shadow-color: rgba(0, 0, 0, 0) !important;
|
|
1098
|
+
--focusShadow-color: rgba(0, 0, 0, 0) !important;
|
|
1099
|
+
}
|
|
1100
|
+
.v-avatar::-moz-focus-inner {
|
|
1101
|
+
border: 0;
|
|
1102
|
+
}
|
|
1103
|
+
.v-avatar, .v-avatar:hover, .v-avatar:focus {
|
|
1104
|
+
text-decoration: none;
|
|
1105
|
+
}
|
|
1106
|
+
.v-avatar--clickable {
|
|
1107
|
+
cursor: pointer;
|
|
1108
|
+
}
|
|
1109
|
+
.v-avatar--sm {
|
|
1110
|
+
--avatar-size: 36px;
|
|
1111
|
+
--avatar-font-size: calc(var(--avatar-base-font-size) * 0.75);
|
|
1112
|
+
}
|
|
1113
|
+
.v-avatar--md {
|
|
1114
|
+
--avatar-size: 48px;
|
|
1115
|
+
}
|
|
1116
|
+
.v-avatar--lg {
|
|
1117
|
+
--avatar-size: 62px;
|
|
1118
|
+
--avatar-font-size: calc(var(--avatar-base-font-size) * 1.25);
|
|
1119
|
+
}
|
|
1120
|
+
.v-avatar--rounded {
|
|
1121
|
+
--avatar-radius: 4px;
|
|
1122
|
+
}
|
|
1123
|
+
.v-avatar--tile {
|
|
1124
|
+
--avatar-radius: 0;
|
|
1125
|
+
}
|
|
1126
|
+
.v-avatar img, .v-avatar__image {
|
|
1127
|
+
display: inline-flex;
|
|
1128
|
+
width: inherit !important;
|
|
1129
|
+
height: inherit !important;
|
|
1130
|
+
border-radius: inherit;
|
|
1131
|
+
object-fit: cover;
|
|
1132
|
+
}
|
|
1133
|
+
.v-chip {
|
|
1134
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
1135
|
+
padding: 0;
|
|
1136
|
+
touch-action: manipulation;
|
|
1137
|
+
cursor: pointer;
|
|
1138
|
+
user-select: none;
|
|
1139
|
+
background-color: transparent;
|
|
1140
|
+
border: 0;
|
|
1141
|
+
outline: 0;
|
|
1142
|
+
appearance: none;
|
|
1143
|
+
--chip-radius: calc(var(--chip-height) / 2);
|
|
1144
|
+
display: inline-flex;
|
|
1145
|
+
align-items: center;
|
|
1146
|
+
justify-content: center;
|
|
1147
|
+
height: var(--chip-height);
|
|
1148
|
+
padding: 0 var(--chip-padding);
|
|
1149
|
+
overflow: hidden;
|
|
1150
|
+
font-size: var(--chip-font-size);
|
|
1151
|
+
font-weight: var(--chip-font-weight);
|
|
1152
|
+
line-height: 1;
|
|
1153
|
+
text-align: center;
|
|
1154
|
+
white-space: nowrap;
|
|
1155
|
+
vertical-align: bottom;
|
|
1156
|
+
cursor: default;
|
|
1157
|
+
border-style: solid;
|
|
1158
|
+
border-width: 1px;
|
|
1159
|
+
border-radius: var(--chip-radius);
|
|
1160
|
+
--shadow-color: rgba(0, 0, 0, 0) !important;
|
|
1161
|
+
--focusShadow-color: rgba(0, 0, 0, 0) !important;
|
|
1162
|
+
}
|
|
1163
|
+
.v-chip::-moz-focus-inner {
|
|
1164
|
+
border: 0;
|
|
1165
|
+
}
|
|
1166
|
+
.v-chip, .v-chip:hover, .v-chip:focus {
|
|
1167
|
+
text-decoration: none;
|
|
1168
|
+
}
|
|
1169
|
+
.v-chip--clickable {
|
|
1170
|
+
cursor: pointer;
|
|
1171
|
+
}
|
|
1172
|
+
.v-chip--xs {
|
|
1173
|
+
--chip-height: var(--chip-height-xs);
|
|
1174
|
+
--chip-font-size: var(--chip-font-size-xs);
|
|
1175
|
+
}
|
|
1176
|
+
.v-chip--sm {
|
|
1177
|
+
--chip-height: var(--chip-height-sm);
|
|
1178
|
+
--chip-font-size: var(--chip-font-size-sm);
|
|
1179
|
+
}
|
|
1180
|
+
.v-chip--md {
|
|
1181
|
+
--chip-height: var(--chip-height-md);
|
|
1182
|
+
--chip-font-size: var(--chip-font-size-md);
|
|
1183
|
+
}
|
|
1184
|
+
.v-chip--lg {
|
|
1185
|
+
--chip-height: var(--chip-height-lg);
|
|
1186
|
+
--chip-font-size: var(--chip-font-size-lg);
|
|
1187
|
+
}
|
|
1188
|
+
.v-chip--xl {
|
|
1189
|
+
--chip-height: var(--chip-height-xl);
|
|
1190
|
+
--chip-font-size: var(--chip-font-size-xl);
|
|
1191
|
+
}
|
|
1192
|
+
.v-chip--label {
|
|
1193
|
+
--chip-radius: 4px;
|
|
1194
|
+
}
|
|
1195
|
+
.v-chip__icon--start {
|
|
1196
|
+
margin-right: calc(var(--chip-padding) * 0.5);
|
|
1197
|
+
margin-left: calc(var(--chip-padding) * -0.5);
|
|
1198
|
+
}
|
|
1199
|
+
.v-chip__icon--end {
|
|
1200
|
+
margin-right: calc(var(--chip-padding) * -0.5);
|
|
1201
|
+
margin-left: calc(var(--chip-padding) * 0.5);
|
|
1202
|
+
}
|
|
1203
|
+
.v-chip .v-avatar {
|
|
1204
|
+
--avatar-size: 14px;
|
|
1205
|
+
}
|
|
977
1206
|
.v-card {
|
|
978
1207
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
979
1208
|
position: relative;
|
|
@@ -1104,9 +1333,9 @@ thead th {
|
|
|
1104
1333
|
align-items: center;
|
|
1105
1334
|
justify-content: center;
|
|
1106
1335
|
justify-self: stretch;
|
|
1336
|
+
pointer-events: none;
|
|
1107
1337
|
}
|
|
1108
1338
|
.v-button--loading .v-button__content {
|
|
1109
|
-
pointer-events: none;
|
|
1110
1339
|
opacity: 0;
|
|
1111
1340
|
}
|
|
1112
1341
|
.v-button__icon--start {
|