first commit
This commit is contained in:
5
frontend/node_modules/antd/lib/space/style/addon.d.ts
generated
vendored
Normal file
5
frontend/node_modules/antd/lib/space/style/addon.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/** Component only token. Which will handle additional calculation of alias token */
|
||||
export interface ComponentToken {
|
||||
}
|
||||
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
|
||||
export default _default;
|
||||
64
frontend/node_modules/antd/lib/space/style/addon.js
generated
vendored
Normal file
64
frontend/node_modules/antd/lib/space/style/addon.js
generated
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _compactItem = require("../../style/compact-item");
|
||||
var _internal = require("../../theme/internal");
|
||||
const genSpaceAddonStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
borderRadius,
|
||||
paddingSM,
|
||||
colorBorder,
|
||||
paddingXS,
|
||||
fontSizeLG,
|
||||
fontSizeSM,
|
||||
borderRadiusLG,
|
||||
borderRadiusSM,
|
||||
colorBgContainerDisabled,
|
||||
lineWidth
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: [{
|
||||
display: 'inline-flex',
|
||||
alignItems: 'center',
|
||||
gap: 0,
|
||||
paddingInline: paddingSM,
|
||||
margin: 0,
|
||||
background: colorBgContainerDisabled,
|
||||
borderWidth: lineWidth,
|
||||
borderStyle: 'solid',
|
||||
borderColor: colorBorder,
|
||||
borderRadius,
|
||||
'&-large': {
|
||||
fontSize: fontSizeLG,
|
||||
borderRadius: borderRadiusLG
|
||||
},
|
||||
'&-small': {
|
||||
paddingInline: paddingXS,
|
||||
borderRadius: borderRadiusSM,
|
||||
fontSize: fontSizeSM
|
||||
},
|
||||
'&-compact-last-item': {
|
||||
borderEndStartRadius: 0,
|
||||
borderStartStartRadius: 0
|
||||
},
|
||||
'&-compact-first-item': {
|
||||
borderEndEndRadius: 0,
|
||||
borderStartEndRadius: 0
|
||||
},
|
||||
'&-compact-item:not(:first-child):not(:last-child)': {
|
||||
borderRadius: 0
|
||||
},
|
||||
'&-compact-item:not(:last-child)': {
|
||||
borderInlineEndWidth: 0
|
||||
}
|
||||
}, (0, _compactItem.genCompactItemStyle)(token, {
|
||||
focus: false
|
||||
})]
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
var _default = exports.default = (0, _internal.genStyleHooks)(['Space', 'Addon'], token => [genSpaceAddonStyle(token)]);
|
||||
5
frontend/node_modules/antd/lib/space/style/compact.d.ts
generated
vendored
Normal file
5
frontend/node_modules/antd/lib/space/style/compact.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/** Component only token. Which will handle additional calculation of alias token */
|
||||
export interface ComponentToken {
|
||||
}
|
||||
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
|
||||
export default _default;
|
||||
33
frontend/node_modules/antd/lib/space/style/compact.js
generated
vendored
Normal file
33
frontend/node_modules/antd/lib/space/style/compact.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _internal = require("../../theme/internal");
|
||||
const genSpaceCompactStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: {
|
||||
display: 'inline-flex',
|
||||
'&-block': {
|
||||
display: 'flex',
|
||||
width: '100%'
|
||||
},
|
||||
'&-vertical': {
|
||||
flexDirection: 'column'
|
||||
},
|
||||
'&-rtl': {
|
||||
direction: 'rtl'
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
var _default = exports.default = (0, _internal.genStyleHooks)(['Space', 'Compact'], token => [genSpaceCompactStyle(token)], () => ({}), {
|
||||
// Space component don't apply extra font style
|
||||
// https://github.com/ant-design/ant-design/issues/40315
|
||||
resetStyle: false
|
||||
});
|
||||
7
frontend/node_modules/antd/lib/space/style/index.d.ts
generated
vendored
Normal file
7
frontend/node_modules/antd/lib/space/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { GetDefaultToken } from '../../theme/internal';
|
||||
/** Component only token. Which will handle additional calculation of alias token */
|
||||
export interface ComponentToken {
|
||||
}
|
||||
export declare const prepareComponentToken: GetDefaultToken<'Space'>;
|
||||
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
|
||||
export default _default;
|
||||
88
frontend/node_modules/antd/lib/space/style/index.js
generated
vendored
Normal file
88
frontend/node_modules/antd/lib/space/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.prepareComponentToken = exports.default = void 0;
|
||||
var _internal = require("../../theme/internal");
|
||||
const genSpaceStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
antCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: {
|
||||
display: 'inline-flex',
|
||||
'&-rtl': {
|
||||
direction: 'rtl'
|
||||
},
|
||||
'&-vertical': {
|
||||
flexDirection: 'column'
|
||||
},
|
||||
'&-align': {
|
||||
flexDirection: 'column',
|
||||
'&-center': {
|
||||
alignItems: 'center'
|
||||
},
|
||||
'&-start': {
|
||||
alignItems: 'flex-start'
|
||||
},
|
||||
'&-end': {
|
||||
alignItems: 'flex-end'
|
||||
},
|
||||
'&-baseline': {
|
||||
alignItems: 'baseline'
|
||||
}
|
||||
},
|
||||
[`${componentCls}-item:empty`]: {
|
||||
display: 'none'
|
||||
},
|
||||
// https://github.com/ant-design/ant-design/issues/47875
|
||||
[`${componentCls}-item > ${antCls}-badge-not-a-wrapper:only-child`]: {
|
||||
display: 'block'
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genSpaceGapStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: {
|
||||
'&-gap-row-small': {
|
||||
rowGap: token.spaceGapSmallSize
|
||||
},
|
||||
'&-gap-row-middle': {
|
||||
rowGap: token.spaceGapMiddleSize
|
||||
},
|
||||
'&-gap-row-large': {
|
||||
rowGap: token.spaceGapLargeSize
|
||||
},
|
||||
'&-gap-col-small': {
|
||||
columnGap: token.spaceGapSmallSize
|
||||
},
|
||||
'&-gap-col-middle': {
|
||||
columnGap: token.spaceGapMiddleSize
|
||||
},
|
||||
'&-gap-col-large': {
|
||||
columnGap: token.spaceGapLargeSize
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
const prepareComponentToken = () => ({});
|
||||
exports.prepareComponentToken = prepareComponentToken;
|
||||
var _default = exports.default = (0, _internal.genStyleHooks)('Space', token => {
|
||||
const spaceToken = (0, _internal.mergeToken)(token, {
|
||||
spaceGapSmallSize: token.paddingXS,
|
||||
spaceGapMiddleSize: token.padding,
|
||||
spaceGapLargeSize: token.paddingLG
|
||||
});
|
||||
return [genSpaceStyle(spaceToken), genSpaceGapStyle(spaceToken)];
|
||||
}, () => ({}), {
|
||||
// Space component don't apply extra font style
|
||||
// https://github.com/ant-design/ant-design/issues/40315
|
||||
resetStyle: false
|
||||
});
|
||||
Reference in New Issue
Block a user