@yakad/ui 1.2.104-beta → 1.2.106-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.
@@ -2,9 +2,11 @@ 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.standard, props.className);
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
- React.createElement("input", { ...props, name: props.name, disabled: props.disabled, placeholder: " ", type: props.type, value: props.value, className: joinedClassNames, autoFocus: props.autoFocus }),
9
+ React.createElement("input", { ...props, name: props.name, disabled: props.disabled, placeholder: " ", className: joinedClassNames, type: props.type, value: props.value, autoFocus: props.autoFocus }),
8
10
  React.createElement("span", { className: styles.span }, props.placeholder)));
9
11
  }
10
12
  //# sourceMappingURL=inputField.js.map
@@ -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,EACvD,KAAK,CAAC,SAAU,CACnB,CAAC;IAEF,OAAO,CACH,+BAAO,SAAS,EAAE,MAAM,CAAC,KAAK;QAC1B,kCACQ,KAAK,EACT,IAAI,EAAE,KAAK,CAAC,I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-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
- color: rgb(var(--onSurfaceColor, 28 27 31) / 0.87);
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.standard,
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
 
@@ -28,9 +29,9 @@ export default function InputField(props: InputFieldProps) {
28
29
  name={props.name}
29
30
  disabled={props.disabled}
30
31
  placeholder=" "
32
+ className={joinedClassNames}
31
33
  type={props.type}
32
34
  value={props.value}
33
- className={joinedClassNames}
34
35
  autoFocus={props.autoFocus}
35
36
  />
36
37
  <span className={styles.span}>{props.placeholder}</span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yakad/ui",
3
- "version": "1.2.104-beta",
3
+ "version": "1.2.106-beta",
4
4
  "description": "UI components for NextJS/React",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {