2023-08-28 21:42:39 +08:00
|
|
|
// Style as inline component
|
2023-08-28 21:56:37 +08:00
|
|
|
import { prepareComponentToken, prepareToken } from '.';
|
2023-08-28 21:42:39 +08:00
|
|
|
import { genCompactItemStyle } from '../../style/compact-item';
|
|
|
|
import { genCompactItemVerticalStyle } from '../../style/compact-item-vertical';
|
|
|
|
import { genSubStyleComponent } from '../../theme/internal';
|
|
|
|
|
|
|
|
// ============================== Export ==============================
|
2023-08-28 21:56:37 +08:00
|
|
|
export default genSubStyleComponent(
|
|
|
|
['Button', 'compact'],
|
|
|
|
(token) => {
|
|
|
|
const buttonToken = prepareToken(token);
|
2023-08-28 21:42:39 +08:00
|
|
|
|
2023-08-28 21:56:37 +08:00
|
|
|
return [
|
|
|
|
// Space Compact
|
|
|
|
genCompactItemStyle(buttonToken),
|
|
|
|
genCompactItemVerticalStyle(buttonToken),
|
|
|
|
];
|
|
|
|
},
|
|
|
|
prepareComponentToken,
|
|
|
|
);
|