@yakad/ui 1.2.91-beta → 1.2.93-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/appBar/appBar.d.ts +4 -1
- package/appBar/appBar.js +1 -1
- package/appBar/appBar.js.map +1 -1
- package/appBar/appBar.module.css +3 -0
- package/appBar/appBar.tsx +10 -2
- package/button/button.module.css +1 -0
- package/card/card.module.css +1 -0
- package/codeField/codeField.js +2 -2
- package/codeField/codeField.js.map +1 -1
- package/codeField/codeField.tsx +1 -1
- package/container/container.module.css +1 -1
- package/gridContainer/gridContainer.module.css +1 -0
- package/package.json +1 -1
package/appBar/appBar.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export
|
|
2
|
+
export interface AppbarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
positionSticky?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export default function AppBar(props: AppbarProps): JSX.Element;
|
package/appBar/appBar.js
CHANGED
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { joinClassNames } from "@yakad/lib";
|
|
3
3
|
import styles from "./appBar.module.css";
|
|
4
4
|
export default function AppBar(props) {
|
|
5
|
-
const joinedClassNames = joinClassNames(styles.header, props.className);
|
|
5
|
+
const joinedClassNames = joinClassNames(styles.header, props.className, props.positionSticky ? styles.Sticky : null);
|
|
6
6
|
return (React.createElement("header", { ...props, className: joinedClassNames }, props.children));
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=appBar.js.map
|
package/appBar/appBar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appBar.js","sourceRoot":"","sources":["appBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAc,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"appBar.js","sourceRoot":"","sources":["appBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAc,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAMzC,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAkB;IAC7C,MAAM,gBAAgB,GAAG,cAAc,CACnC,MAAM,CAAC,MAAM,EACb,KAAK,CAAC,SAAU,EAChB,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAC9C,CAAC;IAEF,OAAO,CACH,mCAAY,KAAK,EAAE,SAAS,EAAE,gBAAgB,IACzC,KAAK,CAAC,QAAQ,CACV,CACZ,CAAC;AACN,CAAC"}
|
package/appBar/appBar.module.css
CHANGED
package/appBar/appBar.tsx
CHANGED
|
@@ -2,8 +2,16 @@ import React from "react";
|
|
|
2
2
|
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
3
|
import styles from "./appBar.module.css";
|
|
4
4
|
|
|
5
|
-
export
|
|
6
|
-
|
|
5
|
+
export interface AppbarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
positionSticky?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default function AppBar(props: AppbarProps) {
|
|
10
|
+
const joinedClassNames = joinClassNames(
|
|
11
|
+
styles.header,
|
|
12
|
+
props.className!,
|
|
13
|
+
props.positionSticky ? styles.Sticky : null
|
|
14
|
+
);
|
|
7
15
|
|
|
8
16
|
return (
|
|
9
17
|
<header {...props} className={joinedClassNames}>
|
package/button/button.module.css
CHANGED
package/card/card.module.css
CHANGED
package/codeField/codeField.js
CHANGED
|
@@ -4,8 +4,8 @@ import styles from "./codeField.module.css";
|
|
|
4
4
|
function onInputHandler(event, inputLength, onFilled) {
|
|
5
5
|
const targetInputElement = event.target;
|
|
6
6
|
removeUnNumberChars(targetInputElement);
|
|
7
|
-
if (inputLength == targetInputElement.value.length)
|
|
8
|
-
onFilled
|
|
7
|
+
if (inputLength == targetInputElement.value.length && onFilled)
|
|
8
|
+
onFilled();
|
|
9
9
|
sliceOverLength(targetInputElement, inputLength);
|
|
10
10
|
}
|
|
11
11
|
function sliceOverLength(inputElement, inputLength) {
|
|
@@ -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,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAW5C,SAAS,cAAc,CACnB,KAAwC,EACxC,WAAmB,EACnB,QAA8B;IAE9B,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAA0B,CAAC;IAC5D,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;IACxC,IAAI,WAAW,IAAI,kBAAkB,CAAC,KAAK,CAAC,MAAM;QAAE,QAAQ,EAAE,
|
|
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;AAW5C,SAAS,cAAc,CACnB,KAAwC,EACxC,WAAmB,EACnB,QAA8B;IAE9B,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAA0B,CAAC;IAC5D,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;IACxC,IAAI,WAAW,IAAI,kBAAkB,CAAC,KAAK,CAAC,MAAM,IAAI,QAAQ;QAAE,QAAQ,EAAE,CAAC;IAC3E,eAAe,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC;AACrD,CAAC;AACD,SAAS,eAAe,CACpB,YAA8B,EAC9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|
const targetInputElement = event.target as HTMLInputElement;
|
|
20
20
|
removeUnNumberChars(targetInputElement);
|
|
21
|
-
if (inputLength == targetInputElement.value.length) onFilled
|
|
21
|
+
if (inputLength == targetInputElement.value.length && onFilled) onFilled();
|
|
22
22
|
sliceOverLength(targetInputElement, inputLength);
|
|
23
23
|
}
|
|
24
24
|
function sliceOverLength(
|