@primer/components 0.0.0-202110320369 → 0.0.0-2021103205322
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/CHANGELOG.md +2 -2
- package/dist/browser.esm.js +3 -1
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +3 -1
- package/dist/browser.umd.js.map +1 -1
- package/lib/FormGroup.d.ts +5 -4
- package/lib/FormGroup.js +2 -2
- package/lib/LabelGroup.d.ts +1 -2
- package/lib/LabelGroup.js +1 -1
- package/lib-esm/FormGroup.d.ts +5 -4
- package/lib-esm/FormGroup.js +3 -3
- package/lib-esm/LabelGroup.d.ts +1 -2
- package/lib-esm/LabelGroup.js +2 -2
- package/package.json +1 -1
package/lib/FormGroup.d.ts
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
/// <reference types="hoist-non-react-statics" />
|
2
|
+
import { SystemCommonProps, SystemTypographyProps } from './constants';
|
2
3
|
import { SxProp } from './sx';
|
3
4
|
import { ComponentProps } from './utils/types';
|
4
|
-
declare const FormGroup: import("styled-components").StyledComponent<"div", any, SxProp, never>;
|
5
|
-
declare const FormGroupLabel: import("styled-components").StyledComponent<"label", any, SxProp, never>;
|
5
|
+
declare const FormGroup: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
|
6
|
+
declare const FormGroupLabel: import("styled-components").StyledComponent<"label", any, SystemTypographyProps & SystemCommonProps & SxProp, never>;
|
6
7
|
export declare type FormGroupProps = ComponentProps<typeof FormGroup>;
|
7
8
|
export declare type FormGroupLabelProps = ComponentProps<typeof FormGroupLabel>;
|
8
|
-
declare const _default: string & import("styled-components").StyledComponentBase<"div", any, SxProp, never> & import("hoist-non-react-statics").NonReactStatics<never, {}> & {
|
9
|
-
Label: import("styled-components").StyledComponent<"label", any, SxProp, never>;
|
9
|
+
declare const _default: string & import("styled-components").StyledComponentBase<"div", any, SystemCommonProps & SxProp, never> & import("hoist-non-react-statics").NonReactStatics<never, {}> & {
|
10
|
+
Label: import("styled-components").StyledComponent<"label", any, SystemTypographyProps & SystemCommonProps & SxProp, never>;
|
10
11
|
};
|
11
12
|
export default _default;
|
package/lib/FormGroup.js
CHANGED
@@ -16,12 +16,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
16
16
|
const FormGroup = _styledComponents.default.div.withConfig({
|
17
17
|
displayName: "FormGroup",
|
18
18
|
componentId: "sc-14z6yax-0"
|
19
|
-
})(["margin:", " 0;font-weight:", ";", ";"], (0, _constants.get)('space.3'), (0, _constants.get)('fontWeights.normal'), _sx.default);
|
19
|
+
})(["margin:", " 0;font-weight:", ";", ";", ";"], (0, _constants.get)('space.3'), (0, _constants.get)('fontWeights.normal'), _constants.COMMON, _sx.default);
|
20
20
|
|
21
21
|
const FormGroupLabel = _styledComponents.default.label.withConfig({
|
22
22
|
displayName: "FormGroup__FormGroupLabel",
|
23
23
|
componentId: "sc-14z6yax-1"
|
24
|
-
})(["display:block;margin:0 0 ", ";font-size:", ";font-weight:", ";", ";"], (0, _constants.get)('space.2'), (0, _constants.get)('fontSizes.1'), (0, _constants.get)('fontWeights.bold'), _sx.default);
|
24
|
+
})(["display:block;margin:0 0 ", ";font-size:", ";font-weight:", ";", ";", ";", ";"], (0, _constants.get)('space.2'), (0, _constants.get)('fontSizes.1'), (0, _constants.get)('fontWeights.bold'), _constants.TYPOGRAPHY, _constants.COMMON, _sx.default);
|
25
25
|
|
26
26
|
FormGroupLabel.displayName = 'FormGroup.Label';
|
27
27
|
|
package/lib/LabelGroup.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
import { SystemCommonProps } from './constants';
|
2
1
|
import { SxProp } from './sx';
|
3
2
|
import { ComponentProps } from './utils/types';
|
4
|
-
declare const LabelGroup: import("styled-components").StyledComponent<"span", any,
|
3
|
+
declare const LabelGroup: import("styled-components").StyledComponent<"span", any, SxProp, never>;
|
5
4
|
export declare type LabelGroupProps = ComponentProps<typeof LabelGroup>;
|
6
5
|
export default LabelGroup;
|
package/lib/LabelGroup.js
CHANGED
@@ -16,7 +16,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
16
16
|
const LabelGroup = _styledComponents.default.span.withConfig({
|
17
17
|
displayName: "LabelGroup",
|
18
18
|
componentId: "k6k3qa-0"
|
19
|
-
})(["
|
19
|
+
})(["& *{margin-right:", ";}& *:last-child{margin-right:0;}", ";"], (0, _constants.get)('space.1'), _sx.default);
|
20
20
|
|
21
21
|
var _default = LabelGroup;
|
22
22
|
exports.default = _default;
|
package/lib-esm/FormGroup.d.ts
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
/// <reference types="hoist-non-react-statics" />
|
2
|
+
import { SystemCommonProps, SystemTypographyProps } from './constants';
|
2
3
|
import { SxProp } from './sx';
|
3
4
|
import { ComponentProps } from './utils/types';
|
4
|
-
declare const FormGroup: import("styled-components").StyledComponent<"div", any, SxProp, never>;
|
5
|
-
declare const FormGroupLabel: import("styled-components").StyledComponent<"label", any, SxProp, never>;
|
5
|
+
declare const FormGroup: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
|
6
|
+
declare const FormGroupLabel: import("styled-components").StyledComponent<"label", any, SystemTypographyProps & SystemCommonProps & SxProp, never>;
|
6
7
|
export declare type FormGroupProps = ComponentProps<typeof FormGroup>;
|
7
8
|
export declare type FormGroupLabelProps = ComponentProps<typeof FormGroupLabel>;
|
8
|
-
declare const _default: string & import("styled-components").StyledComponentBase<"div", any, SxProp, never> & import("hoist-non-react-statics").NonReactStatics<never, {}> & {
|
9
|
-
Label: import("styled-components").StyledComponent<"label", any, SxProp, never>;
|
9
|
+
declare const _default: string & import("styled-components").StyledComponentBase<"div", any, SystemCommonProps & SxProp, never> & import("hoist-non-react-statics").NonReactStatics<never, {}> & {
|
10
|
+
Label: import("styled-components").StyledComponent<"label", any, SystemTypographyProps & SystemCommonProps & SxProp, never>;
|
10
11
|
};
|
11
12
|
export default _default;
|
package/lib-esm/FormGroup.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
|
-
import { get } from './constants';
|
2
|
+
import { COMMON, get, TYPOGRAPHY } from './constants';
|
3
3
|
import sx from './sx';
|
4
4
|
const FormGroup = styled.div.withConfig({
|
5
5
|
displayName: "FormGroup",
|
6
6
|
componentId: "sc-14z6yax-0"
|
7
|
-
})(["margin:", " 0;font-weight:", ";", ";"], get('space.3'), get('fontWeights.normal'), sx);
|
7
|
+
})(["margin:", " 0;font-weight:", ";", ";", ";"], get('space.3'), get('fontWeights.normal'), COMMON, sx);
|
8
8
|
const FormGroupLabel = styled.label.withConfig({
|
9
9
|
displayName: "FormGroup__FormGroupLabel",
|
10
10
|
componentId: "sc-14z6yax-1"
|
11
|
-
})(["display:block;margin:0 0 ", ";font-size:", ";font-weight:", ";", ";"], get('space.2'), get('fontSizes.1'), get('fontWeights.bold'), sx);
|
11
|
+
})(["display:block;margin:0 0 ", ";font-size:", ";font-weight:", ";", ";", ";", ";"], get('space.2'), get('fontSizes.1'), get('fontWeights.bold'), TYPOGRAPHY, COMMON, sx);
|
12
12
|
FormGroupLabel.displayName = 'FormGroup.Label';
|
13
13
|
export default Object.assign(FormGroup, {
|
14
14
|
Label: FormGroupLabel
|
package/lib-esm/LabelGroup.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
import { SystemCommonProps } from './constants';
|
2
1
|
import { SxProp } from './sx';
|
3
2
|
import { ComponentProps } from './utils/types';
|
4
|
-
declare const LabelGroup: import("styled-components").StyledComponent<"span", any,
|
3
|
+
declare const LabelGroup: import("styled-components").StyledComponent<"span", any, SxProp, never>;
|
5
4
|
export declare type LabelGroupProps = ComponentProps<typeof LabelGroup>;
|
6
5
|
export default LabelGroup;
|
package/lib-esm/LabelGroup.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
|
-
import {
|
2
|
+
import { get } from './constants';
|
3
3
|
import sx from './sx';
|
4
4
|
const LabelGroup = styled.span.withConfig({
|
5
5
|
displayName: "LabelGroup",
|
6
6
|
componentId: "k6k3qa-0"
|
7
|
-
})(["
|
7
|
+
})(["& *{margin-right:", ";}& *:last-child{margin-right:0;}", ";"], get('space.1'), sx);
|
8
8
|
export default LabelGroup;
|