@jinaan/uikit 0.1.19 → 0.1.20
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/button.d.ts.map +1 -1
- package/dist/index.js +145 -141
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/button.tsx +10 -8
package/package.json
CHANGED
package/src/button.tsx
CHANGED
|
@@ -122,14 +122,16 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
|
|
|
122
122
|
</span>
|
|
123
123
|
) : null}
|
|
124
124
|
</span>
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
125
|
+
<span
|
|
126
|
+
data-button-spinner
|
|
127
|
+
className={cn(
|
|
128
|
+
"pointer-events-none absolute inset-0 flex items-center justify-center transition-[opacity,translate] duration-150 ease-out motion-reduce:transition-none",
|
|
129
|
+
loading ? "translate-y-0 opacity-100" : "-translate-y-2 opacity-0",
|
|
130
|
+
)}
|
|
131
|
+
aria-hidden
|
|
132
|
+
>
|
|
133
|
+
<Spinner className={cn("text-current", icon)} />
|
|
134
|
+
</span>
|
|
133
135
|
</span>
|
|
134
136
|
)}
|
|
135
137
|
</Comp>
|