pds-dev-kit-web 0.3.30 → 0.3.31
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare type SpacingProps = {
|
|
3
3
|
size: 'spacing_a' | 'spacing_b' | 'spacing_c' | 'spacing_d' | 'spacing_e' | 'spacing_f' | 'spacing_g' | 'spacing_h' | 'spacing_i' | 'spacing_j' | 'spacing_k' | 'spacing_l' | 'spacing_m' | 'spacing_n';
|
|
4
|
-
spacingType
|
|
4
|
+
spacingType?: 'height' | 'width';
|
|
5
5
|
};
|
|
6
6
|
declare function Spacing({ size, spacingType }: SpacingProps): JSX.Element;
|
|
7
7
|
export default Spacing;
|
|
@@ -151,10 +151,11 @@ var S_Spacing = styled_components_1.default.div(templateObject_15 || (templateOb
|
|
|
151
151
|
}[size];
|
|
152
152
|
}, function (_a) {
|
|
153
153
|
var spacingType = _a.spacingType;
|
|
154
|
-
return
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
return spacingType &&
|
|
155
|
+
{
|
|
156
|
+
height: 'width: 1px',
|
|
157
|
+
width: 'height: 1px'
|
|
158
|
+
}[spacingType];
|
|
158
159
|
});
|
|
159
160
|
exports.default = Spacing;
|
|
160
161
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
|