@yakad/ui 1.2.20-beta → 1.2.21-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.
@@ -7,7 +7,7 @@
7
7
  height: 5rem;
8
8
  padding: 0 2rem;
9
9
  border-bottom: 0.1rem solid #7d7d7d40;
10
- background: var(--primaryColo);
10
+ background: var(--primaryColor);
11
11
  color: var(--onPrimaryColor);
12
12
  fill: var(--onPrimaryColor);
13
13
  user-select: none;
@@ -72,9 +72,9 @@
72
72
  border: 0.1rem solid #7d7d7d70;
73
73
  }
74
74
  .filled {
75
- background: var(--primaryContainerColor);
76
- color: var(--onPrimaryContainerColor);
77
- fill: var(--onPrimaryColor);
75
+ background: var(--secondaryContainerColor);
76
+ color: var(--onSecondaryContainerColor);
77
+ fill: var(--onSecondaryContainerColorx);
78
78
  }
79
79
  .tonal {
80
80
  background: var(--tertiaryColor);
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  interface CodeFieldsProps extends React.HTMLAttributes<HTMLElement> {
3
3
  length?: number;
4
+ name?: string;
4
5
  }
5
6
  declare function CodeField(props: CodeFieldsProps): JSX.Element;
6
7
  export default CodeField;
@@ -4,7 +4,7 @@ import styles from "./codeField.module.css";
4
4
  function CodeField(props) {
5
5
  const joinedClassNames = joinClassNames(styles.input, props.className);
6
6
  const joinedStyles = joinStyles({ width: "calc(1.5ch * " + props.length + ")" }, props.style);
7
- return (React.createElement("input", { minLength: props.length, maxLength: props.length, className: joinedClassNames, style: joinedStyles }));
7
+ return (React.createElement("input", { name: props.name, minLength: props.length, maxLength: props.length, className: joinedClassNames, style: joinedStyles }));
8
8
  }
9
9
  export default CodeField;
10
10
  //# sourceMappingURL=codeField.js.map
@@ -1 +1 @@
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,M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"./codeField.module.css";
4
4
 
5
5
  interface CodeFieldsProps extends React.HTMLAttributes<HTMLElement> {
6
6
  length?: number;
7
+ name?: string;
7
8
  }
8
9
 
9
10
  function CodeField(props: CodeFieldsProps) {
@@ -16,6 +17,7 @@ function CodeField(props: CodeFieldsProps) {
16
17
 
17
18
  return (
18
19
  <input
20
+ name={props.name}
19
21
  minLength={props.length}
20
22
  maxLength={props.length}
21
23
  className={joinedClassNames}
@@ -4,6 +4,7 @@ interface InputFieldProps extends React.HTMLAttributes<HTMLInputElement> {
4
4
  type?: string;
5
5
  placeholder?: string;
6
6
  disabled?: boolean;
7
+ name?: string;
7
8
  }
8
9
  declare function InputField(props: InputFieldProps): JSX.Element;
9
10
  export default InputField;
@@ -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", { disabled: props.disabled, placeholder: "\u00A0", type: props.type, className: joinedClassNames }),
7
+ React.createElement("input", { 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;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAS7C,SAAS,UAAU,CAAC,KAAsB;IACtC,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,+BACI,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,WAAW,EAAC,QAAQ,EACpB,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,SAAS,EAAE,gBAAgB,GAC7B;QACF,8BAAM,SAAS,EAAE,MAAM,CAAC,WAAW,IAAG,KAAK,CAAC,WAAW,CAAQ,CAC3D,CACX,CAAC;AACN,CAAC;AAED,eAAe,UAAU,CAAC"}
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;AAU7C,SAAS,UAAU,CAAC,KAAsB;IACtC,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,+BACI,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,WAAW,EAAC,QAAQ,EACpB,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,SAAS,EAAE,gBAAgB,GAC7B;QACF,8BAAM,SAAS,EAAE,MAAM,CAAC,WAAW,IAAG,KAAK,CAAC,WAAW,CAAQ,CAC3D,CACX,CAAC;AACN,CAAC;AAED,eAAe,UAAU,CAAC"}
@@ -7,6 +7,7 @@ interface InputFieldProps extends React.HTMLAttributes<HTMLInputElement> {
7
7
  type?: string;
8
8
  placeholder?: string;
9
9
  disabled?: boolean;
10
+ name?: string;
10
11
  }
11
12
 
12
13
  function InputField(props: InputFieldProps) {
@@ -19,6 +20,7 @@ function InputField(props: InputFieldProps) {
19
20
  return (
20
21
  <label className={styles.field}>
21
22
  <input
23
+ name={props.name}
22
24
  disabled={props.disabled}
23
25
  placeholder="&nbsp;"
24
26
  type={props.type}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yakad/ui",
3
- "version": "1.2.20-beta",
3
+ "version": "1.2.21-beta",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {