File tree Expand file tree Collapse file tree 3 files changed +19
-15
lines changed Expand file tree Collapse file tree 3 files changed +19
-15
lines changed Original file line number Diff line number Diff line change 227
227
background-color : var (--bg-color-invert );
228
228
}
229
229
230
- @utility text-base {
230
+ @utility text-reset {
231
231
color : var (--text-color-base );
232
232
}
233
233
Original file line number Diff line number Diff line change @@ -32,14 +32,18 @@ export const useResizeObserver = <T extends HTMLElement = HTMLDivElement>(
32
32
const ref = useRef < T > ( null ) ;
33
33
const [ , startTransition ] = useTransition ( ) ;
34
34
35
- const callbackResize = useDebounce ( ( ) => {
36
- startTransition ( ( ) => {
37
- if ( onResize && ref . current != null ) {
38
- const { offsetWidth : width , offsetHeight : height } = ref . current ;
39
- onResize ?.( { width, height } ) ;
40
- }
41
- } ) ;
42
- } , [ onResize ] ) ;
35
+ const callbackResize = useDebounce (
36
+ ( ) => {
37
+ startTransition ( ( ) => {
38
+ if ( onResize && ref . current != null ) {
39
+ const { offsetWidth : width , offsetHeight : height } = ref . current ;
40
+ onResize ?.( { width, height } ) ;
41
+ }
42
+ } ) ;
43
+ } ,
44
+ [ onResize ] ,
45
+ 0 ,
46
+ ) ;
43
47
44
48
useEffect ( ( ) => {
45
49
if ( ref . current != null ) {
Original file line number Diff line number Diff line change @@ -161,8 +161,8 @@ const Sample = memo(() => (
161
161
< div className = "flex-1 capitalize text-center font-medium text-warning-600" >
162
162
warning
163
163
</ div >
164
- < div className = "flex-1 capitalize text-center font-medium text-base " >
165
- base
164
+ < div className = "flex-1 capitalize text-center font-medium text-reset " >
165
+ reset
166
166
</ div >
167
167
< div className = "flex-1 capitalize text-center font-medium text-dimmed" >
168
168
dimmed
@@ -337,15 +337,15 @@ const Sample = memo(() => (
337
337
</ Divider >
338
338
< Row orient = "col" >
339
339
< Col >
340
- < ProgressBar color = "primary" value = { 63 } animate />
340
+ < ProgressBar color = "primary-500 " value = { 63 } animate />
341
341
</ Col >
342
342
< Col >
343
- < ProgressBar color = "accent" value = { 42 } animate />
343
+ < ProgressBar color = "accent-500 " value = { 42 } animate />
344
344
</ Col >
345
345
< Col className = "span-6 overflow-hidden" stretchContent >
346
346
< div className = "flex gap-4 justify-center items-center p-4" >
347
- < ProgressCircle size = "md" color = "primary" value = { 42 } />
348
- < ProgressCircle size = "md" color = "accent" value = { 63 } />
347
+ < ProgressCircle size = "md" color = "primary-500 " value = { 42 } />
348
+ < ProgressCircle size = "md" color = "accent-500 " value = { 63 } />
349
349
</ div >
350
350
</ Col >
351
351
</ Row >
You can’t perform that action at this time.
0 commit comments