@quidgest/ui 0.16.19 → 0.16.21
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/manifest/components.json +2 -0
- package/dist/ui.css +289 -10
- package/dist/ui.esm.js +5132 -4825
- package/dist/ui.js +19 -19
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +718 -692
- package/dist/ui.scss +264 -15
- package/esm/components/QAvatar/QAvatar.d.ts +23 -0
- package/esm/components/QAvatar/QAvatar.d.ts.map +1 -0
- package/esm/components/QAvatar/QAvatar.vue.js +49 -0
- package/esm/components/QAvatar/QAvatar.vue2.js +4 -0
- package/esm/components/QAvatar/index.d.ts +31 -0
- package/esm/components/QAvatar/index.d.ts.map +1 -0
- package/esm/components/QAvatar/index.js +6 -0
- package/esm/components/QAvatar/types.d.ts +30 -0
- package/esm/components/QAvatar/types.d.ts.map +1 -0
- package/esm/components/QCarousel/QCarousel.d.ts +44 -0
- package/esm/components/QCarousel/QCarousel.d.ts.map +1 -0
- package/esm/components/QCarousel/QCarousel.vue.js +355 -0
- package/esm/components/QCarousel/QCarousel.vue2.js +4 -0
- package/esm/components/QCarousel/constants.d.ts +14 -0
- package/esm/components/QCarousel/constants.d.ts.map +1 -0
- package/esm/components/QCarousel/constants.js +16 -0
- package/esm/components/QCarousel/index.d.ts +119 -0
- package/esm/components/QCarousel/index.d.ts.map +1 -0
- package/esm/components/QCarousel/index.js +6 -0
- package/esm/components/QCarousel/types.d.ts +79 -0
- package/esm/components/QCarousel/types.d.ts.map +1 -0
- package/esm/components/QCombobox/QCombobox.d.ts +4 -4
- package/esm/components/QCombobox/index.d.ts +10 -10
- package/esm/components/QGrid/QRow.d.ts +1 -1
- package/esm/components/QGrid/index.d.ts +3 -3
- package/esm/components/QSelect/QSelect.d.ts +4 -4
- package/esm/components/QSelect/index.d.ts +10 -10
- package/esm/components/QTextArea/QTextArea.d.ts +1 -1
- package/esm/components/QTextArea/index.d.ts +3 -3
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +102 -98
- package/esm/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/ui.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Quidgest UI v0.16.
|
|
2
|
+
* Quidgest UI v0.16.21
|
|
3
3
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -235,10 +235,11 @@ $shadow-md: (
|
|
|
235
235
|
0 4px 6px -1px rgb(0 0 0 / 10%),
|
|
236
236
|
0 2px 4px -2px rgb(0 0 0 / 10%)
|
|
237
237
|
);
|
|
238
|
-
$breakpoint-
|
|
239
|
-
$breakpoint-
|
|
240
|
-
$breakpoint-
|
|
241
|
-
$breakpoint-
|
|
238
|
+
$breakpoint-sm: 576px;
|
|
239
|
+
$breakpoint-md: 768px;
|
|
240
|
+
$breakpoint-lg: 992px;
|
|
241
|
+
$breakpoint-xl: 1200px;
|
|
242
|
+
$breakpoint-xxl: 1400px;
|
|
242
243
|
$font-size-base: 0.9rem !default;
|
|
243
244
|
$line-height-base: 1.5 !default;
|
|
244
245
|
$font-weight-thin: 100;
|
|
@@ -446,6 +447,43 @@ $transition-duration: 0.2s !default;
|
|
|
446
447
|
gap: $space-base;
|
|
447
448
|
height: fit-content;
|
|
448
449
|
}
|
|
450
|
+
.q-avatar {
|
|
451
|
+
--q-avatar-size: 48px;
|
|
452
|
+
display: flex;
|
|
453
|
+
align-items: center;
|
|
454
|
+
justify-content: center;
|
|
455
|
+
overflow: hidden;
|
|
456
|
+
box-sizing: border-box;
|
|
457
|
+
font-size: 1rem;
|
|
458
|
+
width: var(--q-avatar-size);
|
|
459
|
+
height: var(--q-avatar-size);
|
|
460
|
+
border-radius: 50%;
|
|
461
|
+
background-color: var(--q-avatar-color, var(--q-theme-neutral-light));
|
|
462
|
+
color: var(--q-avatar-text-color);
|
|
463
|
+
&-img {
|
|
464
|
+
display: block;
|
|
465
|
+
width: 100%;
|
|
466
|
+
height: 100%;
|
|
467
|
+
object-fit: cover;
|
|
468
|
+
}
|
|
469
|
+
&-initials {
|
|
470
|
+
font-size: 1em;
|
|
471
|
+
font-weight: bold;
|
|
472
|
+
text-align: center;
|
|
473
|
+
user-select: none;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
&--small {
|
|
477
|
+
--q-avatar-size: 32px;
|
|
478
|
+
}
|
|
479
|
+
&--large {
|
|
480
|
+
--q-avatar-size: 64px;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
&--square {
|
|
484
|
+
border-radius: 0;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
449
487
|
.q-badge {
|
|
450
488
|
$this: &;
|
|
451
489
|
display: inline-flex;
|
|
@@ -947,6 +985,217 @@ $transition-duration: 0.2s !default;
|
|
|
947
985
|
--card-width: 100%;
|
|
948
986
|
}
|
|
949
987
|
}
|
|
988
|
+
$q-carousel-height: 360px;
|
|
989
|
+
$q-carousel-height-md: 300px;
|
|
990
|
+
.q-carousel {
|
|
991
|
+
--q-carousel-height: #{$q-carousel-height};
|
|
992
|
+
position: relative;
|
|
993
|
+
overflow: hidden;
|
|
994
|
+
width: 100%;
|
|
995
|
+
height: var(--q-carousel-height);
|
|
996
|
+
border-radius: $border-radius;
|
|
997
|
+
background-color: $neutral-light;
|
|
998
|
+
outline: none;
|
|
999
|
+
}
|
|
1000
|
+
.q-carousel__track {
|
|
1001
|
+
display: flex;
|
|
1002
|
+
width: 100%;
|
|
1003
|
+
height: 100%;
|
|
1004
|
+
will-change: transform;
|
|
1005
|
+
}
|
|
1006
|
+
.q-carousel__slide {
|
|
1007
|
+
flex: 0 0 100%;
|
|
1008
|
+
width: 100%;
|
|
1009
|
+
height: 100%;
|
|
1010
|
+
position: relative;
|
|
1011
|
+
cursor: pointer;
|
|
1012
|
+
user-select: none;
|
|
1013
|
+
overflow: hidden;
|
|
1014
|
+
}
|
|
1015
|
+
.q-carousel__image {
|
|
1016
|
+
width: 100%;
|
|
1017
|
+
height: 100%;
|
|
1018
|
+
object-fit: cover;
|
|
1019
|
+
}
|
|
1020
|
+
.q-carousel__caption-global {
|
|
1021
|
+
position: absolute;
|
|
1022
|
+
bottom: 3.5rem;
|
|
1023
|
+
left: 50%;
|
|
1024
|
+
transform: translateX(-50%);
|
|
1025
|
+
text-align: center;
|
|
1026
|
+
color: white;
|
|
1027
|
+
z-index: 20;
|
|
1028
|
+
max-width: 80%;
|
|
1029
|
+
}
|
|
1030
|
+
.q-carousel__title {
|
|
1031
|
+
margin: 0 0 0.25rem;
|
|
1032
|
+
font-size: 2rem;
|
|
1033
|
+
font-weight: 600;
|
|
1034
|
+
text-shadow: 0 2px 4px rgb(0 0 0 / 50%);
|
|
1035
|
+
}
|
|
1036
|
+
.q-carousel__subtitle {
|
|
1037
|
+
margin: 0;
|
|
1038
|
+
font-size: 1.1rem;
|
|
1039
|
+
opacity: 0.9;
|
|
1040
|
+
text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
|
|
1041
|
+
}
|
|
1042
|
+
.q-carousel__indicators {
|
|
1043
|
+
position: absolute;
|
|
1044
|
+
bottom: 1rem;
|
|
1045
|
+
left: 50%;
|
|
1046
|
+
transform: translateX(-50%);
|
|
1047
|
+
display: flex;
|
|
1048
|
+
gap: 0.5rem;
|
|
1049
|
+
margin: 0;
|
|
1050
|
+
padding: 0;
|
|
1051
|
+
list-style: none;
|
|
1052
|
+
z-index: 10;
|
|
1053
|
+
}
|
|
1054
|
+
.q-carousel__indicator {
|
|
1055
|
+
position: relative;
|
|
1056
|
+
width: 30px;
|
|
1057
|
+
height: 4px;
|
|
1058
|
+
border-radius: 2px;
|
|
1059
|
+
background-color: rgb(255 255 255 / 50%);
|
|
1060
|
+
cursor: pointer;
|
|
1061
|
+
transition: all 0.3s ease;
|
|
1062
|
+
overflow: hidden;
|
|
1063
|
+
}
|
|
1064
|
+
.q-carousel__indicator:hover {
|
|
1065
|
+
background-color: rgb(255 255 255 / 80%);
|
|
1066
|
+
}
|
|
1067
|
+
.q-carousel__indicator--active {
|
|
1068
|
+
background-color: white;
|
|
1069
|
+
box-shadow: 0 2px 8px rgb(0 0 0 / 30%);
|
|
1070
|
+
}
|
|
1071
|
+
.q-carousel__indicator--active::before {
|
|
1072
|
+
content: '';
|
|
1073
|
+
position: absolute;
|
|
1074
|
+
top: 0;
|
|
1075
|
+
left: 0;
|
|
1076
|
+
height: 100%;
|
|
1077
|
+
background-color: rgb(0 0 0 / 20%);
|
|
1078
|
+
width: var(--q-carousel-progress-width);
|
|
1079
|
+
transition: width 0.05s linear;
|
|
1080
|
+
will-change: width;
|
|
1081
|
+
}
|
|
1082
|
+
.q-carousel__control {
|
|
1083
|
+
position: absolute;
|
|
1084
|
+
top: 50%;
|
|
1085
|
+
transform: translateY(-50%);
|
|
1086
|
+
background: rgb(0 0 0 / 50%);
|
|
1087
|
+
border: none;
|
|
1088
|
+
border-radius: 50%;
|
|
1089
|
+
width: 48px;
|
|
1090
|
+
height: 48px;
|
|
1091
|
+
display: flex;
|
|
1092
|
+
align-items: center;
|
|
1093
|
+
justify-content: center;
|
|
1094
|
+
cursor: pointer;
|
|
1095
|
+
z-index: 10;
|
|
1096
|
+
backdrop-filter: blur(4px);
|
|
1097
|
+
color: white;
|
|
1098
|
+
}
|
|
1099
|
+
.q-carousel__control:hover {
|
|
1100
|
+
background: rgb(0 0 0 / 70%);
|
|
1101
|
+
}
|
|
1102
|
+
.q-carousel__control--prev {
|
|
1103
|
+
left: 1rem;
|
|
1104
|
+
}
|
|
1105
|
+
.q-carousel__control--next {
|
|
1106
|
+
right: 1rem;
|
|
1107
|
+
}
|
|
1108
|
+
.q-carousel__control-icon.q-icon {
|
|
1109
|
+
width: 24px;
|
|
1110
|
+
height: 24px;
|
|
1111
|
+
}
|
|
1112
|
+
.q-carousel__skeleton {
|
|
1113
|
+
position: relative;
|
|
1114
|
+
width: 100%;
|
|
1115
|
+
height: 100%;
|
|
1116
|
+
}
|
|
1117
|
+
.q-carousel__skeleton-caption {
|
|
1118
|
+
position: absolute;
|
|
1119
|
+
bottom: 20%;
|
|
1120
|
+
left: 50%;
|
|
1121
|
+
transform: translateX(-50%);
|
|
1122
|
+
display: flex;
|
|
1123
|
+
flex-direction: column;
|
|
1124
|
+
align-items: center;
|
|
1125
|
+
gap: 8px;
|
|
1126
|
+
width: 100%;
|
|
1127
|
+
max-width: 600px;
|
|
1128
|
+
}
|
|
1129
|
+
.q-carousel__skeleton-controls {
|
|
1130
|
+
position: absolute;
|
|
1131
|
+
top: 50%;
|
|
1132
|
+
left: 0;
|
|
1133
|
+
right: 0;
|
|
1134
|
+
display: flex;
|
|
1135
|
+
justify-content: space-between;
|
|
1136
|
+
padding: 0 16px;
|
|
1137
|
+
transform: translateY(-50%);
|
|
1138
|
+
}
|
|
1139
|
+
.q-carousel__skeleton-caption,
|
|
1140
|
+
.q-carousel__skeleton-controls {
|
|
1141
|
+
.q-skeleton-loader__bone {
|
|
1142
|
+
background-color: var(--q-theme-neutral);
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
.q-carousel__empty-container {
|
|
1146
|
+
display: flex;
|
|
1147
|
+
align-items: center;
|
|
1148
|
+
justify-content: center;
|
|
1149
|
+
width: 100%;
|
|
1150
|
+
height: 100%;
|
|
1151
|
+
}
|
|
1152
|
+
.q-carousel__sr-only {
|
|
1153
|
+
position: absolute;
|
|
1154
|
+
width: 1px;
|
|
1155
|
+
height: 1px;
|
|
1156
|
+
padding: 0;
|
|
1157
|
+
margin: -1px;
|
|
1158
|
+
overflow: hidden;
|
|
1159
|
+
clip: rect(0, 0, 0, 0);
|
|
1160
|
+
white-space: nowrap;
|
|
1161
|
+
border: 0;
|
|
1162
|
+
}
|
|
1163
|
+
@media (max-width: $breakpoint-md) {
|
|
1164
|
+
.q-carousel {
|
|
1165
|
+
--q-carousel-height: #{$q-carousel-height-md};
|
|
1166
|
+
}
|
|
1167
|
+
.q-carousel__caption-global {
|
|
1168
|
+
bottom: 3rem;
|
|
1169
|
+
max-width: 90%;
|
|
1170
|
+
}
|
|
1171
|
+
.q-carousel__title {
|
|
1172
|
+
font-size: 1.5rem;
|
|
1173
|
+
}
|
|
1174
|
+
.q-carousel__subtitle {
|
|
1175
|
+
font-size: 1rem;
|
|
1176
|
+
}
|
|
1177
|
+
.q-carousel__control {
|
|
1178
|
+
width: 40px;
|
|
1179
|
+
height: 40px;
|
|
1180
|
+
}
|
|
1181
|
+
.q-carousel__control-icon svg {
|
|
1182
|
+
width: 16px;
|
|
1183
|
+
height: 16px;
|
|
1184
|
+
}
|
|
1185
|
+
.q-carousel__control--prev {
|
|
1186
|
+
left: 0.5rem;
|
|
1187
|
+
}
|
|
1188
|
+
.q-carousel__control--next {
|
|
1189
|
+
right: 0.5rem;
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
.q-carousel:focus-visible {
|
|
1193
|
+
outline: $outline;
|
|
1194
|
+
}
|
|
1195
|
+
.q-carousel__control:focus-visible,
|
|
1196
|
+
.q-carousel__indicator:focus-visible {
|
|
1197
|
+
outline: $outline;
|
|
1198
|
+
}
|
|
950
1199
|
.q-checkbox {
|
|
951
1200
|
$this: &;
|
|
952
1201
|
--box-size: 1.15rem;
|
|
@@ -1586,27 +1835,27 @@ $transition-duration: 0.2s !default;
|
|
|
1586
1835
|
.q-container--fluid {
|
|
1587
1836
|
max-width: 100%;
|
|
1588
1837
|
}
|
|
1589
|
-
@media (width
|
|
1838
|
+
@media (min-width: $breakpoint-sm) {
|
|
1590
1839
|
.q-container:not(.q-container--fluid) {
|
|
1591
1840
|
max-width: 540px;
|
|
1592
1841
|
}
|
|
1593
1842
|
}
|
|
1594
|
-
@media (width
|
|
1843
|
+
@media (min-width: $breakpoint-md) {
|
|
1595
1844
|
.q-container:not(.q-container--fluid) {
|
|
1596
1845
|
max-width: 720px;
|
|
1597
1846
|
}
|
|
1598
1847
|
}
|
|
1599
|
-
@media (width
|
|
1848
|
+
@media (min-width: $breakpoint-lg) {
|
|
1600
1849
|
.q-container:not(.q-container--fluid) {
|
|
1601
1850
|
max-width: 960px;
|
|
1602
1851
|
}
|
|
1603
1852
|
}
|
|
1604
|
-
@media (width
|
|
1853
|
+
@media (min-width: $breakpoint-xl) {
|
|
1605
1854
|
.q-container:not(.q-container--fluid) {
|
|
1606
1855
|
max-width: 1140px;
|
|
1607
1856
|
}
|
|
1608
1857
|
}
|
|
1609
|
-
@media (width
|
|
1858
|
+
@media (min-width: $breakpoint-xxl) {
|
|
1610
1859
|
.q-container:not(.q-container--fluid) {
|
|
1611
1860
|
max-width: 1320px;
|
|
1612
1861
|
}
|
|
@@ -1676,19 +1925,19 @@ $transition-duration: 0.2s !default;
|
|
|
1676
1925
|
}
|
|
1677
1926
|
}
|
|
1678
1927
|
@include generate-cols;
|
|
1679
|
-
@media (width
|
|
1928
|
+
@media (min-width: $breakpoint-sm) {
|
|
1680
1929
|
@include generate-cols('-sm');
|
|
1681
1930
|
}
|
|
1682
|
-
@media (width
|
|
1931
|
+
@media (min-width: $breakpoint-md) {
|
|
1683
1932
|
@include generate-cols('-md');
|
|
1684
1933
|
}
|
|
1685
|
-
@media (width
|
|
1934
|
+
@media (min-width: $breakpoint-lg) {
|
|
1686
1935
|
@include generate-cols('-lg');
|
|
1687
1936
|
}
|
|
1688
|
-
@media (width
|
|
1937
|
+
@media (min-width: $breakpoint-xl) {
|
|
1689
1938
|
@include generate-cols('-xl');
|
|
1690
1939
|
}
|
|
1691
|
-
@media (width
|
|
1940
|
+
@media (min-width: $breakpoint-xxl) {
|
|
1692
1941
|
@include generate-cols('-xxl');
|
|
1693
1942
|
}
|
|
1694
1943
|
.q-spacer {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { QAvatarProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
fallback?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<QAvatarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QAvatarProps> & Readonly<{}>, {
|
|
12
|
+
size: "small" | "medium" | "large" | string;
|
|
13
|
+
alt: string;
|
|
14
|
+
shape: "circle" | "square";
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=QAvatar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QAvatar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QAvatar/QAvatar.vue"],"names":[],"mappings":"AAmBA;AAwEC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AA+C5C,iBAAS,cAAc;WAwCT,OAAO,IAA6B;;0BAVpB,GAAG;;;;EAehC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;wFAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent as p, computed as t, toRef as v, createElementBlock as r, openBlock as i, normalizeStyle as d, normalizeClass as f, renderSlot as q, toDisplayString as y } from "vue";
|
|
2
|
+
import { useColor as z } from "../../composables/useColor/index.js";
|
|
3
|
+
const C = ["src", "alt"], h = {
|
|
4
|
+
key: 1,
|
|
5
|
+
class: "q-avatar-initials"
|
|
6
|
+
}, S = /* @__PURE__ */ p({
|
|
7
|
+
__name: "QAvatar",
|
|
8
|
+
props: {
|
|
9
|
+
src: {},
|
|
10
|
+
alt: { default: "Avatar" },
|
|
11
|
+
size: { default: "medium" },
|
|
12
|
+
shape: { default: "circle" },
|
|
13
|
+
initials: {},
|
|
14
|
+
color: {}
|
|
15
|
+
},
|
|
16
|
+
setup(n) {
|
|
17
|
+
const e = n, c = t(() => ["small", "large"].includes(e.size) ? `q-avatar--${e.size}` : ""), u = t(() => e.shape === "circle" ? void 0 : "q-avatar--square"), { style: s } = z(v(e, "color")), m = t(() => {
|
|
18
|
+
var l, o;
|
|
19
|
+
const a = {};
|
|
20
|
+
return ["small", "medium", "large"].includes(e.size) || (a["--q-avatar-size"] = e.size), s.value && (a["--q-avatar-color"] = (l = s.value) == null ? void 0 : l.mainColor, a["--q-avatar-text-color"] = (o = s.value) == null ? void 0 : o.onMainColor), a;
|
|
21
|
+
});
|
|
22
|
+
return (a, l) => (i(), r(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
class: f(["q-avatar", c.value, u.value]),
|
|
26
|
+
style: d(m.value)
|
|
27
|
+
},
|
|
28
|
+
[
|
|
29
|
+
a.src ? (i(), r("img", {
|
|
30
|
+
key: 0,
|
|
31
|
+
src: a.src,
|
|
32
|
+
alt: a.alt,
|
|
33
|
+
class: "q-avatar-img"
|
|
34
|
+
}, null, 8, C)) : a.initials ? (i(), r(
|
|
35
|
+
"span",
|
|
36
|
+
h,
|
|
37
|
+
y(a.initials.slice(0, 2).toUpperCase()),
|
|
38
|
+
1
|
|
39
|
+
/* TEXT */
|
|
40
|
+
)) : q(a.$slots, "fallback", { key: 2 })
|
|
41
|
+
],
|
|
42
|
+
6
|
|
43
|
+
/* CLASS, STYLE */
|
|
44
|
+
));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
S as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const QAvatar: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QAvatarProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
3
|
+
size: "small" | "medium" | "large" | string;
|
|
4
|
+
alt: string;
|
|
5
|
+
shape: "circle" | "square";
|
|
6
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
7
|
+
P: {};
|
|
8
|
+
B: {};
|
|
9
|
+
D: {};
|
|
10
|
+
C: {};
|
|
11
|
+
M: {};
|
|
12
|
+
Defaults: {};
|
|
13
|
+
}, Readonly<import('./types').QAvatarProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
14
|
+
size: "small" | "medium" | "large" | string;
|
|
15
|
+
alt: string;
|
|
16
|
+
shape: "circle" | "square";
|
|
17
|
+
}>;
|
|
18
|
+
__isFragment?: never;
|
|
19
|
+
__isTeleport?: never;
|
|
20
|
+
__isSuspense?: never;
|
|
21
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types').QAvatarProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
22
|
+
size: "small" | "medium" | "large" | string;
|
|
23
|
+
alt: string;
|
|
24
|
+
shape: "circle" | "square";
|
|
25
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
26
|
+
$slots: {
|
|
27
|
+
fallback?(_: {}): any;
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
export { QAvatar };
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QAvatar/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props for the QAvatar component.
|
|
3
|
+
*/
|
|
4
|
+
export type QAvatarProps = {
|
|
5
|
+
/**
|
|
6
|
+
* URL of the avatar image.
|
|
7
|
+
*/
|
|
8
|
+
src?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Alt text for the image.
|
|
11
|
+
*/
|
|
12
|
+
alt?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Predefined sizes ('small', 'medium', 'large') or a custom size as a string.
|
|
15
|
+
*/
|
|
16
|
+
size?: 'small' | 'medium' | 'large' | string;
|
|
17
|
+
/**
|
|
18
|
+
* Shape of the avatar, either 'circle' or 'square'.
|
|
19
|
+
*/
|
|
20
|
+
shape?: 'circle' | 'square';
|
|
21
|
+
/**
|
|
22
|
+
* Initials to display if no image is provided.
|
|
23
|
+
*/
|
|
24
|
+
initials?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Background color for initials or fallback.
|
|
27
|
+
*/
|
|
28
|
+
color?: string;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QAvatar/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IAC1B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;IAE5C;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DEFAULT_ICONS, DEFAULT_TEXTS } from './constants';
|
|
2
|
+
import { QCarouselProps, Slide } from './types';
|
|
3
|
+
type __VLS_Props = QCarouselProps;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
'currentSlide'?: number;
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
empty?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
"slide:before-change": (newId: string, oldId?: string | undefined) => any;
|
|
18
|
+
"slide:after-change": (newId: string, oldId?: string | undefined) => any;
|
|
19
|
+
"slide:click": (id: string) => any;
|
|
20
|
+
"update:currentSlide": (value: number) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
"onSlide:before-change"?: ((newId: string, oldId?: string | undefined) => any) | undefined;
|
|
23
|
+
"onSlide:after-change"?: ((newId: string, oldId?: string | undefined) => any) | undefined;
|
|
24
|
+
"onSlide:click"?: ((id: string) => any) | undefined;
|
|
25
|
+
"onUpdate:currentSlide"?: ((value: number) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
icons: typeof DEFAULT_ICONS;
|
|
28
|
+
texts: typeof DEFAULT_TEXTS;
|
|
29
|
+
slides: Slide[];
|
|
30
|
+
autoCycleInterval: number;
|
|
31
|
+
autoCyclePause: "hover" | "false";
|
|
32
|
+
ride: "carousel" | "false";
|
|
33
|
+
swipeThreshold: number;
|
|
34
|
+
wrap: boolean;
|
|
35
|
+
animationDuration: number;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=QCarousel.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QCarousel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCarousel/QCarousel.vue"],"names":[],"mappings":"AA+IA;AAueC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAS1D,OAAO,KAAK,EAAkB,cAAc,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAKpE,KAAK,WAAW,GAAG,cAAc,CAAC;AAqVnC,KAAK,iBAAiB,GAAG;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAqQT,OAAO,IAA6B;;uBAVtB,GAAG;;;;EAe9B;AA4BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;wFASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|