@yakad/ui 1.3.42 → 1.3.45
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/appBar/appBar.module.css +1 -1
- package/dist/footer/footer.module.css +1 -1
- 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 +23 -0
- package/dist/text/text.js +55 -0
- package/dist/text/text.js.map +1 -0
- package/dist/text/text.module.css +57 -0
- 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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type TextVariant = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "caption" | "span";
|
|
3
|
+
export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
4
|
+
variant?: TextVariant;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
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
|
+
variant?: TextVariant;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const P: React.ForwardRefExoticComponent<ParagraphProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
18
|
+
export interface SpanProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
19
|
+
variant?: TextVariant;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export declare const Span: React.ForwardRefExoticComponent<SpanProps & React.RefAttributes<HTMLSpanElement>>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { forwardRef } from "react";
|
|
13
|
+
import classNames from "classnames";
|
|
14
|
+
import styles from "./text.module.css";
|
|
15
|
+
export const H1 = forwardRef((_a, ref) => {
|
|
16
|
+
var { variant = "h1", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
17
|
+
const joinedClassNames = classNames(styles[variant], className);
|
|
18
|
+
return (React.createElement("h1", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
19
|
+
});
|
|
20
|
+
export const H2 = forwardRef((_a, ref) => {
|
|
21
|
+
var { variant = "h2", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
22
|
+
const joinedClassNames = classNames(styles[variant], className);
|
|
23
|
+
return (React.createElement("h2", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
24
|
+
});
|
|
25
|
+
export const H3 = forwardRef((_a, ref) => {
|
|
26
|
+
var { variant = "h3", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
27
|
+
const joinedClassNames = classNames(styles[variant], className);
|
|
28
|
+
return (React.createElement("h3", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
29
|
+
});
|
|
30
|
+
export const H4 = forwardRef((_a, ref) => {
|
|
31
|
+
var { variant = "h4", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
32
|
+
const joinedClassNames = classNames(styles[variant], className);
|
|
33
|
+
return (React.createElement("h4", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
34
|
+
});
|
|
35
|
+
export const H5 = forwardRef((_a, ref) => {
|
|
36
|
+
var { variant = "h5", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
37
|
+
const joinedClassNames = classNames(styles[variant], className);
|
|
38
|
+
return (React.createElement("h5", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
39
|
+
});
|
|
40
|
+
export const H6 = forwardRef((_a, ref) => {
|
|
41
|
+
var { variant = "h6", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
42
|
+
const joinedClassNames = classNames(styles[variant], className);
|
|
43
|
+
return (React.createElement("h6", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
44
|
+
});
|
|
45
|
+
export const P = forwardRef((_a, ref) => {
|
|
46
|
+
var { variant = "p", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
47
|
+
const joinedClassNames = classNames(styles[variant], className);
|
|
48
|
+
return (React.createElement("p", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
49
|
+
});
|
|
50
|
+
export const Span = forwardRef((_a, ref) => {
|
|
51
|
+
var { variant = "span", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
52
|
+
const joinedClassNames = classNames(styles[variant], className);
|
|
53
|
+
return (React.createElement("span", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }), children));
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +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;AAiBvC,MAAM,CAAC,MAAM,EAAE,GAAG,UAAU,CACxB,CAAC,EAAqD,EAAE,GAAG,EAAE,EAAE;QAA9D,EAAE,OAAO,GAAG,IAAI,EAAE,SAAS,EAAE,QAAQ,OAAgB,EAAX,SAAS,cAAnD,oCAAqD,CAAF;IAChD,MAAM,gBAAgB,GAAG,UAAU,CAC/B,MAAM,CAAC,OAAiB,CAAC,EACzB,SAAS,CACZ,CAAC;IACF,OAAO,CACH,0CAAI,GAAG,EAAE,GAAG,IAAM,SAAS,IAAE,SAAS,EAAE,gBAAgB,KACnD,QAAQ,CACR,CACR,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,UAAU,CACxB,CA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AAE,OAAO,GAAG,MAAM,EAAE,SAAS,EAAE,QAAQ,OAAgB,EAAX,SAAS,cAArD,oCAAuD,CAAF;IAClD,MAAM,gBAAgB,GAAG,UAAU,CAC/B,MAAM,CAAC,OAAiB,CAAC,EACzB,SAAS,CACZ,CAAC;IACF,OAAO,CACH,4CAAM,GAAG,EAAE,GAAG,IAAM,SAAS,IAAE,SAAS,EAAE,gBAAgB,KACrD,QAAQ,CACN,CACV,CAAC;AACN,CAAC,CACJ,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.h1,
|
|
2
|
+
.h2,
|
|
3
|
+
.h3,
|
|
4
|
+
.h4,
|
|
5
|
+
.h5,
|
|
6
|
+
.h6,
|
|
7
|
+
.p,
|
|
8
|
+
.caption,
|
|
9
|
+
.span {
|
|
10
|
+
margin: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.h1 {
|
|
14
|
+
font-size: 2.4rem;
|
|
15
|
+
font-weight: 700;
|
|
16
|
+
line-height: 3.2rem;
|
|
17
|
+
}
|
|
18
|
+
.h2 {
|
|
19
|
+
font-size: 2rem;
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
line-height: 2.8rem;
|
|
22
|
+
}
|
|
23
|
+
.h3 {
|
|
24
|
+
font-size: 1.6rem;
|
|
25
|
+
font-weight: 700;
|
|
26
|
+
line-height: 2.4rem;
|
|
27
|
+
}
|
|
28
|
+
.h4 {
|
|
29
|
+
font-size: 1.4rem;
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
line-height: 2.1rem;
|
|
32
|
+
}
|
|
33
|
+
.h5 {
|
|
34
|
+
font-size: 1.2rem;
|
|
35
|
+
font-weight: 700;
|
|
36
|
+
line-height: 1.8rem;
|
|
37
|
+
}
|
|
38
|
+
.h6 {
|
|
39
|
+
font-size: 1rem;
|
|
40
|
+
font-weight: 700;
|
|
41
|
+
line-height: 1.5rem;
|
|
42
|
+
}
|
|
43
|
+
.p {
|
|
44
|
+
font-size: 1.4rem;
|
|
45
|
+
font-weight: 400;
|
|
46
|
+
line-height: 2.1rem;
|
|
47
|
+
}
|
|
48
|
+
.caption {
|
|
49
|
+
font-size: 1rem;
|
|
50
|
+
font-weight: 200;
|
|
51
|
+
line-height: 1.5rem;
|
|
52
|
+
}
|
|
53
|
+
.span {
|
|
54
|
+
font-size: inherit;
|
|
55
|
+
font-weight: inherit;
|
|
56
|
+
line-height: inherit;
|
|
57
|
+
}
|