@yakad/ui 1.3.43 → 1.3.46
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/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/text/text.d.ts +10 -10
- package/dist/text/text.js +9 -9
- package/dist/text/text.js.map +1 -1
- package/dist/text/text.module.css +23 -26
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
package/dist/text/text.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
type TextVariant = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "
|
|
3
|
-
export interface
|
|
2
|
+
type TextVariant = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "body1" | "body2" | "caption" | "span";
|
|
3
|
+
export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
4
4
|
variant?: TextVariant;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const H2: React.ForwardRefExoticComponent<
|
|
9
|
-
export declare const H3: React.ForwardRefExoticComponent<
|
|
10
|
-
export declare const H4: React.ForwardRefExoticComponent<
|
|
11
|
-
export declare const H5: React.ForwardRefExoticComponent<
|
|
12
|
-
export declare const H6: React.ForwardRefExoticComponent<
|
|
13
|
-
export interface
|
|
7
|
+
export declare const H1: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
8
|
+
export declare const H2: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
9
|
+
export declare const H3: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
10
|
+
export declare const H4: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
11
|
+
export declare const H5: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
12
|
+
export declare const H6: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
13
|
+
export interface ParagraphProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
14
14
|
variant?: TextVariant;
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
}
|
|
17
|
-
export declare const P: React.ForwardRefExoticComponent<
|
|
17
|
+
export declare const P: React.ForwardRefExoticComponent<ParagraphProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
18
18
|
export interface SpanProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
19
19
|
variant?: TextVariant;
|
|
20
20
|
children?: React.ReactNode;
|
package/dist/text/text.js
CHANGED
|
@@ -12,44 +12,44 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import React, { forwardRef } from "react";
|
|
13
13
|
import classNames from "classnames";
|
|
14
14
|
import styles from "./text.module.css";
|
|
15
|
-
export const
|
|
15
|
+
export const H1 = forwardRef((_a, ref) => {
|
|
16
16
|
var { variant = "h1", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
17
|
-
const joinedClassNames = classNames(styles[variant], className);
|
|
17
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
18
18
|
return (React.createElement("h1", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
19
19
|
});
|
|
20
20
|
export const H2 = forwardRef((_a, ref) => {
|
|
21
21
|
var { variant = "h2", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
22
|
-
const joinedClassNames = classNames(styles[variant], className);
|
|
22
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
23
23
|
return (React.createElement("h2", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
24
24
|
});
|
|
25
25
|
export const H3 = forwardRef((_a, ref) => {
|
|
26
26
|
var { variant = "h3", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
27
|
-
const joinedClassNames = classNames(styles[variant], className);
|
|
27
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
28
28
|
return (React.createElement("h3", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
29
29
|
});
|
|
30
30
|
export const H4 = forwardRef((_a, ref) => {
|
|
31
31
|
var { variant = "h4", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
32
|
-
const joinedClassNames = classNames(styles[variant], className);
|
|
32
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
33
33
|
return (React.createElement("h4", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
34
34
|
});
|
|
35
35
|
export const H5 = forwardRef((_a, ref) => {
|
|
36
36
|
var { variant = "h5", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
37
|
-
const joinedClassNames = classNames(styles[variant], className);
|
|
37
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
38
38
|
return (React.createElement("h5", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
39
39
|
});
|
|
40
40
|
export const H6 = forwardRef((_a, ref) => {
|
|
41
41
|
var { variant = "h6", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
42
|
-
const joinedClassNames = classNames(styles[variant], className);
|
|
42
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
43
43
|
return (React.createElement("h6", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
44
44
|
});
|
|
45
45
|
export const P = forwardRef((_a, ref) => {
|
|
46
46
|
var { variant = "p", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
47
|
-
const joinedClassNames = classNames(styles[variant], className);
|
|
47
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
48
48
|
return (React.createElement("p", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
49
49
|
});
|
|
50
50
|
export const Span = forwardRef((_a, ref) => {
|
|
51
51
|
var { variant = "span", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
52
|
-
const joinedClassNames = classNames(styles[variant], className);
|
|
52
|
+
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
53
53
|
return (React.createElement("span", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
54
54
|
});
|
|
55
55
|
//# sourceMappingURL=text.js.map
|
package/dist/text/text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/text/text.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,MAAM,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/text/text.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,O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13
5
|
.h1 {
|
|
14
|
-
font-size:
|
|
6
|
+
font-size: 3.3rem;
|
|
15
7
|
font-weight: 700;
|
|
16
|
-
line-height:
|
|
8
|
+
line-height: 4.4rem;
|
|
17
9
|
}
|
|
18
10
|
.h2 {
|
|
19
|
-
font-size:
|
|
11
|
+
font-size: 2.8rem;
|
|
20
12
|
font-weight: 700;
|
|
21
|
-
line-height:
|
|
13
|
+
line-height: 3.7rem;
|
|
22
14
|
}
|
|
23
15
|
.h3 {
|
|
24
|
-
font-size:
|
|
16
|
+
font-size: 2.4rem;
|
|
25
17
|
font-weight: 700;
|
|
26
|
-
line-height:
|
|
18
|
+
line-height: 3.2rem;
|
|
27
19
|
}
|
|
28
20
|
.h4 {
|
|
29
|
-
font-size:
|
|
21
|
+
font-size: 2rem;
|
|
30
22
|
font-weight: 700;
|
|
31
|
-
line-height: 2.
|
|
23
|
+
line-height: 2.8rem;
|
|
32
24
|
}
|
|
33
25
|
.h5 {
|
|
34
|
-
font-size: 1.
|
|
26
|
+
font-size: 1.6rem;
|
|
35
27
|
font-weight: 700;
|
|
36
|
-
line-height:
|
|
28
|
+
line-height: 2.4rem;
|
|
37
29
|
}
|
|
38
30
|
.h6 {
|
|
39
|
-
font-size:
|
|
31
|
+
font-size: 1.4rem;
|
|
40
32
|
font-weight: 700;
|
|
41
|
-
line-height:
|
|
33
|
+
line-height: 2.1rem;
|
|
42
34
|
}
|
|
43
|
-
.
|
|
35
|
+
.body1 {
|
|
36
|
+
font-size: 1.6rem;
|
|
37
|
+
font-weight: 400;
|
|
38
|
+
line-height: 2.2rem;
|
|
39
|
+
}
|
|
40
|
+
.body2 {
|
|
44
41
|
font-size: 1.4rem;
|
|
45
42
|
font-weight: 400;
|
|
46
|
-
line-height:
|
|
43
|
+
line-height: 2rem;
|
|
47
44
|
}
|
|
48
45
|
.caption {
|
|
49
|
-
font-size:
|
|
50
|
-
font-weight:
|
|
51
|
-
line-height: 1.
|
|
46
|
+
font-size: 1.2rem;
|
|
47
|
+
font-weight: 300;
|
|
48
|
+
line-height: 1.8rem;
|
|
52
49
|
}
|
|
53
50
|
.span {
|
|
54
51
|
font-size: inherit;
|