uibee 2.16.6 → 2.16.7
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.
|
@@ -8,5 +8,5 @@ export default function Toggle({ value, onChange, left, right, }) {
|
|
|
8
8
|
}
|
|
9
9
|
const isLeftActive = value === left.value;
|
|
10
10
|
const isRightActive = value === right.value;
|
|
11
|
-
return (_jsxs("div", { className: 'flex items-center border-lg border-login-100/10 bg-login-50/5 p-1', children: [_jsx("button", { type: 'button', onClick: () => onChange(left.value), "aria-label": left.label ?? left.text, "aria-pressed": isLeftActive, className: `${base} px-2 h-7 ${isLeftActive ? active : idle}`, children: renderContent(left) }), _jsx("button", { type: 'button', onClick: () => onChange(right.value), "aria-label": right.label ?? right.text, "aria-pressed": isRightActive, className: `${base} px-2 h-7 ${isRightActive ? active : idle}`, children: renderContent(right) })] }));
|
|
11
|
+
return (_jsxs("div", { className: 'flex items-center border rounded-lg border-login-100/10 bg-login-50/5 p-1', children: [_jsx("button", { type: 'button', onClick: () => onChange(left.value), "aria-label": left.label ?? left.text, "aria-pressed": isLeftActive, className: `${base} px-2 h-7 ${isLeftActive ? active : idle}`, children: renderContent(left) }), _jsx("button", { type: 'button', onClick: () => onChange(right.value), "aria-label": right.label ?? right.text, "aria-pressed": isRightActive, className: `${base} px-2 h-7 ${isRightActive ? active : idle}`, children: renderContent(right) })] }));
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@ export default function Toggle<T>({
|
|
|
35
35
|
const isRightActive = value === right.value
|
|
36
36
|
|
|
37
37
|
return (
|
|
38
|
-
<div className='flex items-center border-lg border-login-100/10 bg-login-50/5 p-1'>
|
|
38
|
+
<div className='flex items-center border rounded-lg border-login-100/10 bg-login-50/5 p-1'>
|
|
39
39
|
<button
|
|
40
40
|
type='button'
|
|
41
41
|
onClick={() => onChange(left.value)}
|