@yakad/ui 1.2.24-beta → 1.2.26-beta
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/codeField/codeField.tsx +1 -0
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/index.tsx +2 -2
- package/inputField/inputField.js +1 -1
- package/inputField/inputField.js.map +1 -1
- package/inputField/inputField.tsx +1 -0
- package/package.json +1 -1
- package/theme/theme.d.ts +7 -0
- package/theme/theme.js +9 -0
- package/theme/theme.js.map +1 -0
- package/{thame/thame.module.css → theme/theme.module.css} +8 -8
- package/theme/theme.tsx +23 -0
- package/codeField/codeField.d.ts +0 -7
- package/codeField/codeField.js +0 -10
- package/codeField/codeField.js.map +0 -1
- package/thame/thame.d.ts +0 -7
- package/thame/thame.js +0 -8
- package/thame/thame.js.map +0 -1
- package/thame/thame.tsx +0 -20
package/codeField/codeField.tsx
CHANGED
package/index.d.ts
CHANGED
|
@@ -19,5 +19,5 @@ import SvgIcon from "./svgIcon/svgIcon";
|
|
|
19
19
|
import Loading from "./loading/loading";
|
|
20
20
|
import CodeField from "./codeField/codeField";
|
|
21
21
|
import InputField from "./inputField/inputField";
|
|
22
|
-
import
|
|
23
|
-
export { Button, AppBar, Card, Container, Footer, Form, GridContainer, GridItem, Hr, List, ListItem, Main, Navigation, Page, Row, Stack, Spacer, SvgIcon, Loading, CodeField, InputField,
|
|
22
|
+
import Theme from "./theme/thame";
|
|
23
|
+
export { Button, AppBar, Card, Container, Footer, Form, GridContainer, GridItem, Hr, List, ListItem, Main, Navigation, Page, Row, Stack, Spacer, SvgIcon, Loading, CodeField, InputField, Theme, };
|
package/index.js
CHANGED
|
@@ -19,6 +19,6 @@ import SvgIcon from "./svgIcon/svgIcon";
|
|
|
19
19
|
import Loading from "./loading/loading";
|
|
20
20
|
import CodeField from "./codeField/codeField";
|
|
21
21
|
import InputField from "./inputField/inputField";
|
|
22
|
-
import
|
|
23
|
-
export { Button, AppBar, Card, Container, Footer, Form, GridContainer, GridItem, Hr, List, ListItem, Main, Navigation, Page, Row, Stack, Spacer, SvgIcon, Loading, CodeField, InputField,
|
|
22
|
+
import Theme from "./theme/thame";
|
|
23
|
+
export { Button, AppBar, Card, Container, Footer, Form, GridContainer, GridItem, Hr, List, ListItem, Main, Navigation, Page, Row, Stack, Spacer, SvgIcon, Loading, CodeField, InputField, Theme, };
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
package/index.tsx
CHANGED
|
@@ -19,7 +19,7 @@ import SvgIcon from "./svgIcon/svgIcon";
|
|
|
19
19
|
import Loading from "./loading/loading";
|
|
20
20
|
import CodeField from "./codeField/codeField";
|
|
21
21
|
import InputField from "./inputField/inputField";
|
|
22
|
-
import
|
|
22
|
+
import Theme from "./theme/theme";
|
|
23
23
|
export {
|
|
24
24
|
Button,
|
|
25
25
|
AppBar,
|
|
@@ -42,5 +42,5 @@ export {
|
|
|
42
42
|
Loading,
|
|
43
43
|
CodeField,
|
|
44
44
|
InputField,
|
|
45
|
-
|
|
45
|
+
Theme,
|
|
46
46
|
};
|
package/inputField/inputField.js
CHANGED
|
@@ -4,7 +4,7 @@ import styles from "./inputField.module.css";
|
|
|
4
4
|
function InputField(props) {
|
|
5
5
|
const joinedClassNames = joinClassNames(styles.input, props.variant ? styles[props.variant] : styles.standard, props.className);
|
|
6
6
|
return (React.createElement("label", { className: styles.field },
|
|
7
|
-
React.createElement("input", { name: props.name, disabled: props.disabled, placeholder: "\u00A0", type: props.type, className: joinedClassNames }),
|
|
7
|
+
React.createElement("input", { ...props, name: props.name, disabled: props.disabled, placeholder: "\u00A0", type: props.type, className: joinedClassNames }),
|
|
8
8
|
React.createElement("span", { className: styles.placeholder }, props.placeholder)));
|
|
9
9
|
}
|
|
10
10
|
export default InputField;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputField.js","sourceRoot":"","sources":["inputField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1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package/theme/theme.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames } from "@yakad/lib";
|
|
3
|
+
import styles from "./theme.module.css";
|
|
4
|
+
function Theme(props) {
|
|
5
|
+
const joinedClassNames = joinClassNames(props.mode ? styles[props.mode] : styles.system, props.color ? styles[props.color] : styles.blue, props.className);
|
|
6
|
+
return (React.createElement("div", { ...props, className: joinedClassNames }, props.children));
|
|
7
|
+
}
|
|
8
|
+
export default Theme;
|
|
9
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["theme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAc,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAOxC,SAAS,KAAK,CAAC,KAAiB;IAC5B,MAAM,gBAAgB,GAAG,cAAc,CACnC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAC/C,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAC/C,KAAK,CAAC,SAAU,CACnB,CAAC;IACF,OAAO,CACH,gCAAS,KAAK,EAAE,SAAS,EAAE,gBAAgB,IACtC,KAAK,CAAC,QAAQ,CACb,CACT,CAAC;AACN,CAAC;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.blue {
|
|
2
2
|
--LightPrimaryColor: #1e64d4;
|
|
3
3
|
--LightPrimaryContainerColor: #c2e7ff;
|
|
4
|
-
--LightSecondaryColor: #
|
|
4
|
+
--LightSecondaryColor: #55624c;
|
|
5
5
|
--LightSecondaryContainerColor: #d9e7cb;
|
|
6
6
|
--LightTertiaryColor: #386a20;
|
|
7
7
|
--LightTertiaryContainerColor: #b7f397;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
--DarkErrorContainerColor: #f9dedc;
|
|
33
33
|
--DarkOnPrimaryColor: #003738;
|
|
34
34
|
--DarkOnPrimaryContainerColor: #c2e7ff;
|
|
35
|
-
--DarkOnSecondaryColor: #
|
|
35
|
+
--DarkOnSecondaryColor: #55624c;
|
|
36
36
|
--DarkOnSecondaryContainerColor: #d9e7cb;
|
|
37
37
|
--DarkOnTertiaryColor: #042100;
|
|
38
38
|
--DarkOnTertiaryContainerColor: #b7f397;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
.green {
|
|
45
45
|
--LightPrimaryColor: #386a20;
|
|
46
46
|
--LightPrimaryContainerColor: #cad7bd;
|
|
47
|
-
--LightSecondaryColor: #
|
|
47
|
+
--LightSecondaryColor: #55624c;
|
|
48
48
|
--LightSecondaryContainerColor: #d9e7cb;
|
|
49
49
|
--LightTertiaryColor: #19686a;
|
|
50
50
|
--LightTertiaryContainerColor: #a8eff0;
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
--DarkErrorContainerColor: #f9dedc;
|
|
76
76
|
--DarkOnPrimaryColor: #386a20;
|
|
77
77
|
--DarkOnPrimaryContainerColor: #cad7bd;
|
|
78
|
-
--DarkOnSecondaryColor: #
|
|
78
|
+
--DarkOnSecondaryColor: #55624c;
|
|
79
79
|
--DarkOnSecondaryContainerColor: #d9e7cb;
|
|
80
80
|
--DarkOnTertiaryColor: #19686a;
|
|
81
81
|
--DarkOnTertiaryContainerColor: #a8eff0;
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
.pink {
|
|
89
89
|
--LightPrimaryColor: #9c4146;
|
|
90
90
|
--LightPrimaryContainerColor: #ffdad9;
|
|
91
|
-
--LightSecondaryColor: #
|
|
91
|
+
--LightSecondaryColor: #55624c;
|
|
92
92
|
--LightSecondaryContainerColor: #d9e7cb;
|
|
93
93
|
--LightTertiaryColor: #604003;
|
|
94
94
|
--LightTertiaryContainerColor: #f1d1a2;
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
--DarkErrorContainerColor: #f9dedc;
|
|
120
120
|
--DarkOnPrimaryColor: #9c4146;
|
|
121
121
|
--DarkOnPrimaryContainerColor: #ffdad9;
|
|
122
|
-
--DarkOnSecondaryColor: #
|
|
122
|
+
--DarkOnSecondaryColor: #55624c;
|
|
123
123
|
--DarkOnSecondaryContainerColor: #d9e7cb;
|
|
124
124
|
--DarkOnTertiaryColor: #604003;
|
|
125
125
|
--DarkOnTertiaryContainerColor: #f1d1a2;
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
.grow {
|
|
133
133
|
--LightPrimaryColor: #616200;
|
|
134
134
|
--LightPrimaryContainerColor: #e6e4bf;
|
|
135
|
-
--LightSecondaryColor: #
|
|
135
|
+
--LightSecondaryColor: #55624c;
|
|
136
136
|
--LightSecondaryContainerColor: #d9e7cb;
|
|
137
137
|
--LightTertiaryColor: #bfedd9;
|
|
138
138
|
--LightTertiaryContainerColor: #f1d1a2;
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
--DarkErrorContainerColor: #f9dedc;
|
|
164
164
|
--DarkOnPrimaryColor: #616200;
|
|
165
165
|
--DarkOnPrimaryContainerColor: #e6e4bf;
|
|
166
|
-
--DarkOnSecondaryColor: #
|
|
166
|
+
--DarkOnSecondaryColor: #55624c;
|
|
167
167
|
--DarkOnSecondaryContainerColor: #d9e7cb;
|
|
168
168
|
--DarkOnTertiaryColor: #042100;
|
|
169
169
|
--DarkOnTertiaryContainerColor: #b7f397;
|
package/theme/theme.tsx
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
+
import styles from "./theme.module.css";
|
|
4
|
+
|
|
5
|
+
interface ThemeProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
+
mode?: "light" | "dark" | "system";
|
|
7
|
+
color?: "green" | "pink" | "grow" | "blue";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function Theme(props: ThemeProps) {
|
|
11
|
+
const joinedClassNames = joinClassNames(
|
|
12
|
+
props.mode ? styles[props.mode] : styles.system,
|
|
13
|
+
props.color ? styles[props.color] : styles.blue,
|
|
14
|
+
props.className!
|
|
15
|
+
);
|
|
16
|
+
return (
|
|
17
|
+
<div {...props} className={joinedClassNames}>
|
|
18
|
+
{props.children}
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default Theme;
|
package/codeField/codeField.d.ts
DELETED
package/codeField/codeField.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
-
import styles from "./codeField.module.css";
|
|
4
|
-
function CodeField(props) {
|
|
5
|
-
const joinedClassNames = joinClassNames(styles.input, props.className);
|
|
6
|
-
const joinedStyles = joinStyles({ width: "calc(1.5ch * " + props.length + ")" }, props.style);
|
|
7
|
-
return (React.createElement("input", { name: props.name, minLength: props.length, maxLength: props.length, className: joinedClassNames, style: joinedStyles }));
|
|
8
|
-
}
|
|
9
|
-
export default CodeField;
|
|
10
|
-
//# sourceMappingURL=codeField.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codeField.js","sourceRoot":"","sources":["codeField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAO5C,SAAS,SAAS,CAAC,KAAsB;IACrC,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,SAAU,CAAC,CAAC;IAExE,MAAM,YAAY,GAAG,UAAU,CAC3B,EAAE,KAAK,EAAE,eAAe,GAAG,KAAK,CAAC,MAAM,GAAG,GAAG,EAAE,EAC/C,KAAK,CAAC,KAAM,CACf,CAAC;IAEF,OAAO,CACH,+BACI,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,SAAS,EAAE,KAAK,CAAC,MAAM,EACvB,SAAS,EAAE,KAAK,CAAC,MAAM,EACvB,SAAS,EAAE,gBAAgB,EAC3B,KAAK,EAAE,YAAY,GACrB,CACL,CAAC;AACN,CAAC;AAED,eAAe,SAAS,CAAC"}
|
package/thame/thame.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface ThameProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
-
mode?: "light" | "dark" | "system";
|
|
4
|
-
color?: "green" | "pink" | "grow" | "blue";
|
|
5
|
-
}
|
|
6
|
-
declare function Thame(props: ThameProps): JSX.Element;
|
|
7
|
-
export default Thame;
|
package/thame/thame.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { joinClassNames } from "@yakad/lib";
|
|
2
|
-
import styles from "./thame.module.css";
|
|
3
|
-
function Thame(props) {
|
|
4
|
-
const joinedClassNames = joinClassNames(styles.blue, props.mode ? styles[props.mode] : styles.blue, props.color ? styles[props.color] : styles.blue, props.className);
|
|
5
|
-
return React.createElement("div", { className: joinedClassNames }, props.children);
|
|
6
|
-
}
|
|
7
|
-
export default Thame;
|
|
8
|
-
//# sourceMappingURL=thame.js.map
|
package/thame/thame.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"thame.js","sourceRoot":"","sources":["thame.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAc,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAOxC,SAAS,KAAK,CAAC,KAAiB;IAC5B,MAAM,gBAAgB,GAAG,cAAc,CACnC,MAAM,CAAC,IAAI,EACX,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAC7C,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAC/C,KAAK,CAAC,SAAU,CACnB,CAAC;IACF,OAAO,6BAAK,SAAS,EAAE,gBAAgB,IAAG,KAAK,CAAC,QAAQ,CAAO,CAAC;AACpE,CAAC;AAED,eAAe,KAAK,CAAC"}
|
package/thame/thame.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import Reat from "react";
|
|
2
|
-
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
-
import styles from "./thame.module.css";
|
|
4
|
-
|
|
5
|
-
interface ThameProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
-
mode?: "light" | "dark" | "system";
|
|
7
|
-
color?: "green" | "pink" | "grow" | "blue";
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function Thame(props: ThameProps) {
|
|
11
|
-
const joinedClassNames = joinClassNames(
|
|
12
|
-
styles.blue,
|
|
13
|
-
props.mode ? styles[props.mode] : styles.blue,
|
|
14
|
-
props.color ? styles[props.color] : styles.blue,
|
|
15
|
-
props.className!
|
|
16
|
-
);
|
|
17
|
-
return <div className={joinedClassNames}>{props.children}</div>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export default Thame;
|