@yakad/ui 1.2.103-beta → 1.2.105-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/inputField/inputField.js
CHANGED
|
@@ -2,7 +2,9 @@ import React from "react";
|
|
|
2
2
|
import { joinClassNames } from "@yakad/lib";
|
|
3
3
|
import styles from "./inputField.module.css";
|
|
4
4
|
export default function InputField(props) {
|
|
5
|
-
const joinedClassNames = joinClassNames(styles.input, props.variant ? styles[props.variant] : styles.
|
|
5
|
+
const joinedClassNames = joinClassNames(styles.input, props.variant ? styles[props.variant] : styles.outlined,
|
|
6
|
+
// Default style must be standard. but standard input is not designed in css
|
|
7
|
+
props.className);
|
|
6
8
|
return (React.createElement("label", { className: styles.label },
|
|
7
9
|
React.createElement("input", { ...props, name: props.name, disabled: props.disabled, placeholder: " ", type: props.type, value: props.value, className: joinedClassNames, autoFocus: props.autoFocus }),
|
|
8
10
|
React.createElement("span", { className: styles.span }, props.placeholder)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputField.js","sourceRoot":"","sources":["inputField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAc7C,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAsB;IACrD,MAAM,gBAAgB,GAAG,cAAc,CACnC,MAAM,CAAC,KAAK,EACZ,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"inputField.js","sourceRoot":"","sources":["inputField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAc7C,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAsB;IACrD,MAAM,gBAAgB,GAAG,cAAc,CACnC,MAAM,CAAC,KAAK,EACZ,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ;IACvD,4EAA4E;IAC5E,KAAK,CAAC,SAAU,CACnB,CAAC;IAEF,OAAO,CACH,+BAAO,SAAS,EAAE,MAAM,CAAC,KAAK;QAC1B,kCACQ,KAAK,EACT,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,WAAW,EAAC,IAAI,EAChB,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,SAAS,EAAE,gBAAgB,EAC3B,SAAS,EAAE,KAAK,CAAC,SAAS,GAC5B;QACF,8BAAM,SAAS,EAAE,MAAM,CAAC,IAAI,IAAG,KAAK,CAAC,WAAW,CAAQ,CACpD,CACX,CAAC;AACN,CAAC"}
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
.label {
|
|
2
|
-
padding-top: 0.6rem;
|
|
3
|
-
font-size: 1.3rem;
|
|
4
2
|
position: relative;
|
|
5
3
|
display: inline-block;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
width: 100%;
|
|
6
|
+
padding-top: 0.6rem;
|
|
7
|
+
font-size: 1.3rem;
|
|
6
8
|
overflow: hidden;
|
|
7
9
|
}
|
|
8
10
|
.input {
|
|
9
11
|
box-sizing: border-box;
|
|
10
|
-
margin: 0rem;
|
|
11
|
-
border-image: initial;
|
|
12
12
|
width: 100%;
|
|
13
13
|
height: inherit;
|
|
14
|
-
|
|
14
|
+
margin: 0rem;
|
|
15
|
+
border-image: initial;
|
|
15
16
|
box-shadow: none;
|
|
16
17
|
font-family: inherit;
|
|
17
18
|
font-size: inherit;
|
|
18
19
|
line-height: inherit;
|
|
20
|
+
color: rgb(var(--onSurfaceColor, 28 27 31) / 0.87);
|
|
19
21
|
caret-color: rgb(var(--primaryColor, 11 87 208));
|
|
20
22
|
}
|
|
21
23
|
.input.outlined {
|
|
@@ -17,7 +17,8 @@ export interface InputFieldProps
|
|
|
17
17
|
export default function InputField(props: InputFieldProps) {
|
|
18
18
|
const joinedClassNames = joinClassNames(
|
|
19
19
|
styles.input,
|
|
20
|
-
props.variant ? styles[props.variant] : styles.
|
|
20
|
+
props.variant ? styles[props.variant] : styles.outlined,
|
|
21
|
+
// Default style must be standard. but standard input is not designed in css
|
|
21
22
|
props.className!
|
|
22
23
|
);
|
|
23
24
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yakad/ui",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "1.2.105-beta",
|
|
4
|
+
"description": "UI components for NextJS/React",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "tsc",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"react": "18.2.0",
|
|
22
22
|
"react-dom": "18.2.0",
|
|
23
|
-
"typescript": "4.8.4",
|
|
24
23
|
"@yakad/lib": "1.0.5",
|
|
25
24
|
"@yakad/symbols": "1.0.2"
|
|
26
25
|
},
|
|
27
26
|
"devDependencies": {
|
|
28
27
|
"@types/react": "18.0.24",
|
|
29
|
-
"@types/react-dom": "18.0.6"
|
|
28
|
+
"@types/react-dom": "18.0.6",
|
|
29
|
+
"typescript": "4.8.4"
|
|
30
30
|
}
|
|
31
31
|
}
|