@ucme-ui/angular 0.4.0 → 0.5.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/API.md +912 -42
- package/fesm2022/ucme-ui-angular.mjs +16199 -2753
- package/fesm2022/ucme-ui-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/_controls.scss +79 -0
- package/styles/_grid.scss +87 -0
- package/styles/hu-ui.scss +1 -0
- package/types/ucme-ui-angular.d.ts +4021 -465
package/package.json
CHANGED
package/styles/_controls.scss
CHANGED
|
@@ -79,6 +79,85 @@ textarea.hu-input {
|
|
|
79
79
|
resize: vertical;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
// --- huTooltip ---------------------------------------------------------------
|
|
83
|
+
// Direktif balonu body'ye (veya açık dialog'a) ekler; konumu JS verir.
|
|
84
|
+
.hu-tooltip {
|
|
85
|
+
position: fixed;
|
|
86
|
+
inset: auto;
|
|
87
|
+
z-index: 1200;
|
|
88
|
+
max-width: min(18rem, calc(100vw - 1rem));
|
|
89
|
+
margin: 0;
|
|
90
|
+
padding: var(--hu-space-1) var(--hu-space-2);
|
|
91
|
+
overflow: visible;
|
|
92
|
+
font-size: var(--hu-text-xs);
|
|
93
|
+
font-weight: 500;
|
|
94
|
+
line-height: 1.4;
|
|
95
|
+
color: var(--hu-tooltip-fg, #fff);
|
|
96
|
+
background: var(--hu-tooltip-bg, var(--hu-gray-900));
|
|
97
|
+
border: 0;
|
|
98
|
+
border-radius: var(--hu-radius-sm);
|
|
99
|
+
box-shadow: var(--hu-shadow-md);
|
|
100
|
+
pointer-events: none;
|
|
101
|
+
animation: hu-tooltip-in 110ms ease-out;
|
|
102
|
+
|
|
103
|
+
&[data-side='bottom'] {
|
|
104
|
+
animation-name: hu-tooltip-in-down;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[data-theme='dark'] .hu-tooltip {
|
|
109
|
+
--hu-tooltip-bg: var(--hu-gray-100, #f4f4f5);
|
|
110
|
+
--hu-tooltip-fg: var(--hu-gray-900, #18181b);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.hu-tooltip__arrow {
|
|
114
|
+
position: absolute;
|
|
115
|
+
width: 8px;
|
|
116
|
+
height: 8px;
|
|
117
|
+
background: inherit;
|
|
118
|
+
transform: rotate(45deg);
|
|
119
|
+
|
|
120
|
+
[data-side='top'] > & {
|
|
121
|
+
bottom: -4px;
|
|
122
|
+
left: calc(var(--hu-tooltip-arrow, 50%) - 4px);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[data-side='bottom'] > & {
|
|
126
|
+
top: -4px;
|
|
127
|
+
left: calc(var(--hu-tooltip-arrow, 50%) - 4px);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
[data-side='left'] > & {
|
|
131
|
+
right: -4px;
|
|
132
|
+
top: calc(var(--hu-tooltip-arrow, 50%) - 4px);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
[data-side='right'] > & {
|
|
136
|
+
left: -4px;
|
|
137
|
+
top: calc(var(--hu-tooltip-arrow, 50%) - 4px);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@keyframes hu-tooltip-in {
|
|
142
|
+
from {
|
|
143
|
+
opacity: 0;
|
|
144
|
+
transform: translateY(2px);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@keyframes hu-tooltip-in-down {
|
|
149
|
+
from {
|
|
150
|
+
opacity: 0;
|
|
151
|
+
transform: translateY(-2px);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@media (prefers-reduced-motion: reduce) {
|
|
156
|
+
.hu-tooltip {
|
|
157
|
+
animation: none;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
82
161
|
select.hu-input {
|
|
83
162
|
padding-right: 2.25rem;
|
|
84
163
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// 12 kolonlu responsive grid.
|
|
2
|
+
//
|
|
3
|
+
// <div class="hu-grid">
|
|
4
|
+
// <div class="hu-col-12 hu-col-md-6 hu-col-lg-4">…</div>
|
|
5
|
+
// </div>
|
|
6
|
+
//
|
|
7
|
+
// Kırılımlar ekranın değil grid'in kendi genişliğine göre çalışır (container
|
|
8
|
+
// query): aynı grid sayfada, kart içinde veya dialog'da doğru davranır.
|
|
9
|
+
@use 'sass:map';
|
|
10
|
+
|
|
11
|
+
$columns: 12;
|
|
12
|
+
$breakpoints: (
|
|
13
|
+
sm: 480px,
|
|
14
|
+
md: 720px,
|
|
15
|
+
lg: 960px,
|
|
16
|
+
xl: 1200px,
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
.hu-grid {
|
|
20
|
+
display: grid;
|
|
21
|
+
grid-template-columns: repeat($columns, minmax(0, 1fr));
|
|
22
|
+
gap: var(--hu-grid-gap, var(--hu-space-4));
|
|
23
|
+
container-type: inline-size;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Kolon sınıfı verilmeyen öğe tam satır kaplar (mobil öncelikli).
|
|
27
|
+
:where(.hu-grid) > * {
|
|
28
|
+
grid-column-end: span $columns;
|
|
29
|
+
min-width: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Otomatik: kolon sayısı genişliğe göre kendiliğinden belirlenir (kart listeleri).
|
|
33
|
+
.hu-grid--auto {
|
|
34
|
+
grid-template-columns: repeat(auto-fill, minmax(min(var(--hu-grid-min, 16rem), 100%), 1fr));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:where(.hu-grid--auto) > * {
|
|
38
|
+
grid-column-end: auto;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.hu-grid--gap-none {
|
|
42
|
+
--hu-grid-gap: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.hu-grid--gap-sm {
|
|
46
|
+
--hu-grid-gap: var(--hu-space-2);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.hu-grid--gap-lg {
|
|
50
|
+
--hu-grid-gap: var(--hu-space-6);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.hu-grid--gap-xl {
|
|
54
|
+
--hu-grid-gap: var(--hu-space-8);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin col-classes($infix) {
|
|
58
|
+
@for $i from 1 through $columns {
|
|
59
|
+
.hu-col#{$infix}-#{$i} {
|
|
60
|
+
grid-column-end: span $i;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.hu-col#{$infix}-start-#{$i} {
|
|
64
|
+
grid-column-start: $i;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// !important: öğenin kendi display değeri (örn. hu-card) gizlemeyi ezmesin
|
|
69
|
+
.hu-col#{$infix}-hidden {
|
|
70
|
+
display: none !important;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@include col-classes('');
|
|
75
|
+
|
|
76
|
+
@each $name, $width in $breakpoints {
|
|
77
|
+
@container (min-width: #{$width}) {
|
|
78
|
+
@include col-classes('-#{$name}');
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// hu-col-md-visible: yalnızca md ve üstünde görünür
|
|
82
|
+
@container (max-width: #{$width - 0.02px}) {
|
|
83
|
+
.hu-col-#{$name}-visible {
|
|
84
|
+
display: none !important;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
package/styles/hu-ui.scss
CHANGED