@ndlib/component-library 0.0.123 → 0.0.125
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,19 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { StyledElementProps } from '../../../../theme';
|
|
4
|
-
export declare enum LABEL_SIZE {
|
|
5
|
-
SM = "sm",
|
|
6
|
-
MD = "md",
|
|
7
|
-
LG = "lg"
|
|
8
|
-
}
|
|
9
|
-
export declare const SIZE_TYPOGRAPHY_MAP: {
|
|
10
|
-
sm: TYPOGRAPHY_TYPE;
|
|
11
|
-
md: TYPOGRAPHY_TYPE;
|
|
12
|
-
lg: TYPOGRAPHY_TYPE;
|
|
13
|
-
};
|
|
14
|
-
type LabelProps = StyledElementProps<HTMLDivElement, {
|
|
15
|
-
size?: LABEL_SIZE;
|
|
16
|
-
typography?: TYPOGRAPHY_TYPE;
|
|
17
|
-
}>;
|
|
2
|
+
import { LabelProps } from 'theme-ui';
|
|
18
3
|
export declare const Caption: React.FC<LabelProps>;
|
|
19
|
-
export {};
|
|
@@ -10,24 +10,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "theme-ui/jsx-runtime";
|
|
13
|
-
import { TYPOGRAPHY_TYPE } from '../../../../theme/typography';
|
|
14
|
-
export var LABEL_SIZE;
|
|
15
|
-
(function (LABEL_SIZE) {
|
|
16
|
-
LABEL_SIZE["SM"] = "sm";
|
|
17
|
-
LABEL_SIZE["MD"] = "md";
|
|
18
|
-
LABEL_SIZE["LG"] = "lg";
|
|
19
|
-
})(LABEL_SIZE || (LABEL_SIZE = {}));
|
|
20
|
-
export const SIZE_TYPOGRAPHY_MAP = {
|
|
21
|
-
[LABEL_SIZE.SM]: TYPOGRAPHY_TYPE.CONTROL_SMALL,
|
|
22
|
-
[LABEL_SIZE.MD]: TYPOGRAPHY_TYPE.CONTROL_MEDIUM,
|
|
23
|
-
[LABEL_SIZE.LG]: TYPOGRAPHY_TYPE.CONTROL_LARGE,
|
|
24
|
-
};
|
|
25
13
|
export const Caption = (_a) => {
|
|
26
|
-
var
|
|
14
|
+
var rest = __rest(_a, []);
|
|
27
15
|
return (_jsx("caption", Object.assign({ sx: {
|
|
28
16
|
display: 'block',
|
|
29
17
|
fontStyle: 'italic',
|
|
30
18
|
fontWeight: '400',
|
|
19
|
+
fontFamily: 'Libre Franklin","Helvetica Neue",Helvetica,Arial,Verdana,sans-serif',
|
|
31
20
|
fontSize: '.8rem',
|
|
32
21
|
} }, rest)));
|
|
33
22
|
};
|