bref-ui 0.0.12 → 0.0.13
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.
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
words = DEFAULT_WORDS,
|
|
31
31
|
hideDots = false,
|
|
32
32
|
typeSpeed = 'normal',
|
|
33
|
-
pauseSpeed = 'normal'
|
|
33
|
+
pauseSpeed = 'normal',
|
|
34
34
|
}: TextualLoadingProps = $props();
|
|
35
35
|
|
|
36
36
|
const TYPE_MS = { slow: 100, normal: 50, fast: 25 } as const;
|
|
@@ -95,14 +95,17 @@
|
|
|
95
95
|
<style>
|
|
96
96
|
span {
|
|
97
97
|
--internal-font-size: 1rem;
|
|
98
|
+
--internal-height: 1.5rem;
|
|
98
99
|
|
|
99
100
|
font-size: var(--internal-font-size);
|
|
101
|
+
line-height: var(--internal-height);
|
|
102
|
+
max-height: var(--internal-height);
|
|
100
103
|
color: var(--internal-current-color);
|
|
101
104
|
font-weight: 500;
|
|
102
105
|
}
|
|
103
106
|
|
|
104
107
|
.cursor {
|
|
105
|
-
animation: blink 0.
|
|
108
|
+
animation: blink 0.8s step-end infinite;
|
|
106
109
|
}
|
|
107
110
|
|
|
108
111
|
@keyframes blink {
|
|
@@ -118,22 +121,27 @@
|
|
|
118
121
|
/* Sizes */
|
|
119
122
|
.x-small {
|
|
120
123
|
--internal-font-size: 0.75rem;
|
|
124
|
+
--internal-height: 1.125rem;
|
|
121
125
|
}
|
|
122
126
|
|
|
123
127
|
.small {
|
|
124
128
|
--internal-font-size: 0.875rem;
|
|
129
|
+
--internal-height: 1.3125rem;
|
|
125
130
|
}
|
|
126
131
|
|
|
127
132
|
.medium {
|
|
128
133
|
--internal-font-size: 1rem;
|
|
134
|
+
--internal-height: 1.5rem;
|
|
129
135
|
}
|
|
130
136
|
|
|
131
137
|
.large {
|
|
132
138
|
--internal-font-size: 1.125rem;
|
|
139
|
+
--internal-height: 1.6875rem;
|
|
133
140
|
}
|
|
134
141
|
|
|
135
142
|
.x-large {
|
|
136
143
|
--internal-font-size: 1.25rem;
|
|
144
|
+
--internal-height: 1.875rem;
|
|
137
145
|
}
|
|
138
146
|
|
|
139
147
|
/* Color mappings */
|