@yakad/ui 1.2.81-beta → 1.2.83-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 +1 -2
- package/appBar/appBar.js +1 -2
- package/appBar/appBar.js.map +1 -1
- package/appBar/appBar.tsx +7 -9
- package/button/button.d.ts +2 -3
- package/button/button.js +1 -2
- package/button/button.js.map +1 -1
- package/button/button.tsx +2 -4
- package/card/card.d.ts +1 -2
- package/card/card.js +1 -2
- package/card/card.js.map +1 -1
- package/card/card.tsx +7 -9
- package/clickAwayListener/clickAwayListener.d.ts +2 -3
- package/clickAwayListener/clickAwayListener.js +1 -2
- package/clickAwayListener/clickAwayListener.js.map +1 -1
- package/clickAwayListener/clickAwayListener.tsx +3 -4
- package/codeField/codeField.d.ts +4 -4
- package/codeField/codeField.js +17 -10
- package/codeField/codeField.js.map +1 -1
- package/codeField/codeField.module.css +1 -9
- package/codeField/codeField.tsx +27 -20
- package/container/container.d.ts +3 -3
- package/container/container.js +1 -2
- package/container/container.js.map +1 -1
- package/container/container.tsx +15 -17
- package/footer/footer.d.ts +1 -2
- package/footer/footer.js +1 -2
- package/footer/footer.js.map +1 -1
- package/footer/footer.tsx +7 -9
- package/form/form.d.ts +1 -2
- package/form/form.js +1 -2
- package/form/form.js.map +1 -1
- package/form/form.tsx +14 -16
- package/gridContainer/gridContainer.d.ts +2 -3
- package/gridContainer/gridContainer.js +1 -2
- package/gridContainer/gridContainer.js.map +1 -1
- package/gridContainer/gridContainer.tsx +3 -4
- package/gridItem/gridItem.d.ts +2 -3
- package/gridItem/gridItem.js +1 -2
- package/gridItem/gridItem.js.map +1 -1
- package/gridItem/gridItem.tsx +2 -4
- package/hr/hr.d.ts +2 -3
- package/hr/hr.js +2 -3
- package/hr/hr.js.map +1 -1
- package/hr/hr.tsx +23 -23
- package/inputField/inputField.d.ts +3 -3
- package/inputField/inputField.js +2 -3
- package/inputField/inputField.js.map +1 -1
- package/inputField/inputField.tsx +5 -5
- package/list/list.d.ts +2 -3
- package/list/list.js +1 -2
- package/list/list.js.map +1 -1
- package/list/list.tsx +15 -17
- package/listItem/listItem.d.ts +1 -2
- package/listItem/listItem.js +1 -2
- package/listItem/listItem.js.map +1 -1
- package/listItem/listItem.tsx +6 -8
- package/loading/loading.d.ts +2 -3
- package/loading/loading.js +1 -2
- package/loading/loading.js.map +1 -1
- package/loading/loading.tsx +2 -4
- package/main/main.d.ts +2 -3
- package/main/main.js +1 -2
- package/main/main.js.map +1 -1
- package/main/main.tsx +14 -16
- package/navigation/navigation.d.ts +2 -3
- package/navigation/navigation.js +1 -2
- package/navigation/navigation.js.map +1 -1
- package/navigation/navigation.tsx +2 -4
- package/package.json +1 -1
- package/page/page.d.ts +1 -2
- package/page/page.js +1 -2
- package/page/page.js.map +1 -1
- package/page/page.tsx +7 -9
- package/row/row.d.ts +1 -2
- package/row/row.js +1 -2
- package/row/row.js.map +1 -1
- package/row/row.tsx +7 -9
- package/spacer/spacer.d.ts +1 -2
- package/spacer/spacer.js +1 -2
- package/spacer/spacer.js.map +1 -1
- package/spacer/spacer.tsx +1 -3
- package/stack/stack.d.ts +1 -2
- package/stack/stack.js +1 -2
- package/stack/stack.js.map +1 -1
- package/stack/stack.tsx +7 -9
- package/svgIcon/svgIcon.d.ts +2 -3
- package/svgIcon/svgIcon.js +1 -2
- package/svgIcon/svgIcon.js.map +1 -1
- package/svgIcon/svgIcon.tsx +2 -4
- package/theme/theme.d.ts +2 -3
- package/theme/theme.js +1 -2
- package/theme/theme.js.map +1 -1
- package/theme/theme.tsx +2 -4
- package/types.d.ts +15 -0
- package/types.js +2 -0
- package/types.js.map +1 -0
- package/types.tsx +30 -0
package/appBar/appBar.d.ts
CHANGED
package/appBar/appBar.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { joinClassNames } from "@yakad/lib";
|
|
3
3
|
import styles from "./appBar.module.css";
|
|
4
|
-
function AppBar(props) {
|
|
4
|
+
export default function AppBar(props) {
|
|
5
5
|
const joinedClassNames = joinClassNames(styles.header, props.className);
|
|
6
6
|
return (React.createElement("header", { ...props, className: joinedClassNames }, props.children));
|
|
7
7
|
}
|
|
8
|
-
export default AppBar;
|
|
9
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;AAEzC,
|
|
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;AAEzC,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAwC;IACnE,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,SAAU,CAAC,CAAC;IAEzE,OAAO,CACH,mCAAY,KAAK,EAAE,SAAS,EAAE,gBAAgB,IACzC,KAAK,CAAC,QAAQ,CACV,CACZ,CAAC;AACN,CAAC"}
|
package/appBar/appBar.tsx
CHANGED
|
@@ -2,14 +2,12 @@ import React from "react";
|
|
|
2
2
|
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
3
|
import styles from "./appBar.module.css";
|
|
4
4
|
|
|
5
|
-
function AppBar(props: React.HTMLAttributes<HTMLElement>) {
|
|
6
|
-
|
|
5
|
+
export default function AppBar(props: React.HTMLAttributes<HTMLElement>) {
|
|
6
|
+
const joinedClassNames = joinClassNames(styles.header, props.className!);
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
return (
|
|
9
|
+
<header {...props} className={joinedClassNames}>
|
|
10
|
+
{props.children}
|
|
11
|
+
</header>
|
|
12
|
+
);
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
export default AppBar;
|
package/button/button.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
2
|
+
export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
3
3
|
size?: "small" | "medium" | "large";
|
|
4
4
|
variant?: "text" | "outlined" | "filled" | "filledtonal" | "tonal" | "elevated" | "link" | "fab";
|
|
5
5
|
borderStyle?: "none" | "semi" | "squircle" | "rounded";
|
|
@@ -9,5 +9,4 @@ interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
|
9
9
|
loadingVariant?: "scaleOut" | "dots" | "spinner";
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
export default Button;
|
|
12
|
+
export default function Button(props: ButtonProps): JSX.Element;
|
package/button/button.js
CHANGED
|
@@ -8,7 +8,7 @@ const iconSizeMaps = {
|
|
|
8
8
|
medium: 2.4,
|
|
9
9
|
large: 3.2,
|
|
10
10
|
};
|
|
11
|
-
function Button(props) {
|
|
11
|
+
export default function Button(props) {
|
|
12
12
|
const startWithChildren = props.iconPosition === "end";
|
|
13
13
|
const centerLoading = !props.icon ||
|
|
14
14
|
(props.loadingVariant && props.loadingPosition === "center");
|
|
@@ -24,5 +24,4 @@ function Button(props) {
|
|
|
24
24
|
: iconSizeMaps.medium }, props.icon)) : null,
|
|
25
25
|
!startWithChildren ? props.children : null));
|
|
26
26
|
}
|
|
27
|
-
export default Button;
|
|
28
27
|
//# sourceMappingURL=button.js.map
|
package/button/button.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AA2BzC,MAAM,YAAY,GAAgB;IAC9B,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,GAAG;IACX,KAAK,EAAE,GAAG;CACb,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AA2BzC,MAAM,YAAY,GAAgB;IAC9B,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,GAAG;IACX,KAAK,EAAE,GAAG;CACb,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAkB;IAC7C,MAAM,iBAAiB,GAAG,KAAK,CAAC,YAAY,KAAK,KAAK,CAAC;IACvD,MAAM,aAAa,GACf,CAAC,KAAK,CAAC,IAAI;QACX,CAAC,KAAK,CAAC,cAAc,IAAI,KAAK,CAAC,eAAe,KAAK,QAAQ,CAAC,CAAC;IAEjE,MAAM,gBAAgB,GAAG,cAAc,CACnC,MAAM,CAAC,MAAM,EACb,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EACnD,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAC1C,KAAK,CAAC,cAAc,IAAI,aAAa;QACjC,CAAC,CAAC,MAAM,CAAC,qBAAqB;QAC9B,CAAC,CAAC,EAAE,EACR,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAC/C,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAC9D,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EACtD,KAAK,CAAC,SAAU,CACnB,CAAC;IAEF,OAAO,CACH,mCAAY,KAAK,EAAE,SAAS,EAAE,gBAAgB;QACzC,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI;QACzC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CACpB,6BACI,SAAS,EAAE,cAAc,CACrB,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,EAC1C,MAAM,CAAC,iBAAiB,CAC3B;YAED,oBAAC,OAAO,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,cAAc,GAAI,CAC1D,CACT,CAAC,CAAC,CAAC,IAAI;QACP,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CACV,oBAAC,OAAO,IACJ,SAAS,EAAE,MAAM,CAAC,cAAc,EAChC,IAAI,EACA,KAAK,CAAC,IAAI;gBACN,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC;gBAC1B,CAAC,CAAC,YAAY,CAAC,MAAM,IAG5B,KAAK,CAAC,IAAI,CACL,CACb,CAAC,CAAC,CAAC,IAAI;QACP,CAAC,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CACtC,CACZ,CAAC;AACN,CAAC"}
|
package/button/button.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import SvgIcon from "../svgIcon/svgIcon";
|
|
|
4
4
|
import Loading from "../loading/loading";
|
|
5
5
|
import styles from "./button.module.css";
|
|
6
6
|
|
|
7
|
-
interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
7
|
+
export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
8
8
|
size?: "small" | "medium" | "large";
|
|
9
9
|
variant?:
|
|
10
10
|
| "text"
|
|
@@ -35,7 +35,7 @@ const iconSizeMaps: iconSizeMap = {
|
|
|
35
35
|
large: 3.2,
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
function Button(props: ButtonProps) {
|
|
38
|
+
export default function Button(props: ButtonProps) {
|
|
39
39
|
const startWithChildren = props.iconPosition === "end";
|
|
40
40
|
const centerLoading =
|
|
41
41
|
!props.icon ||
|
|
@@ -83,5 +83,3 @@ function Button(props: ButtonProps) {
|
|
|
83
83
|
</button>
|
|
84
84
|
);
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
export default Button;
|
package/card/card.d.ts
CHANGED
package/card/card.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { joinClassNames } from "@yakad/lib";
|
|
3
3
|
import styles from "./card.module.css";
|
|
4
|
-
function Card(props) {
|
|
4
|
+
export default function Card(props) {
|
|
5
5
|
const joinedClassNames = joinClassNames(styles.card, props.className);
|
|
6
6
|
return (React.createElement("div", { ...props, className: joinedClassNames }, props.children));
|
|
7
7
|
}
|
|
8
|
-
export default Card;
|
|
9
8
|
//# sourceMappingURL=card.js.map
|
package/card/card.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","sourceRoot":"","sources":["card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,
|
|
1
|
+
{"version":3,"file":"card.js","sourceRoot":"","sources":["card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAwC;IACjE,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,SAAU,CAAC,CAAC;IAEvE,OAAO,CACH,gCAAS,KAAK,EAAE,SAAS,EAAE,gBAAgB,IACtC,KAAK,CAAC,QAAQ,CACb,CACT,CAAC;AACN,CAAC"}
|
package/card/card.tsx
CHANGED
|
@@ -2,14 +2,12 @@ import React from "react";
|
|
|
2
2
|
import { joinClassNames } from "@yakad/lib";
|
|
3
3
|
import styles from "./card.module.css";
|
|
4
4
|
|
|
5
|
-
function Card(props: React.HTMLAttributes<HTMLElement>) {
|
|
6
|
-
|
|
5
|
+
export default function Card(props: React.HTMLAttributes<HTMLElement>) {
|
|
6
|
+
const joinedClassNames = joinClassNames(styles.card, props.className!);
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
return (
|
|
9
|
+
<div {...props} className={joinedClassNames}>
|
|
10
|
+
{props.children}
|
|
11
|
+
</div>
|
|
12
|
+
);
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
export default Card;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
interface ClickAwayListenerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
export interface ClickAwayListenerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
onClickAway: React.MouseEventHandler<HTMLDivElement>;
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
export default ClickAwayListener;
|
|
5
|
+
export default function ClickAwayListener(props: ClickAwayListenerProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React, { useEffect, useRef } from "react";
|
|
3
|
-
function ClickAwayListener(props) {
|
|
3
|
+
export default function ClickAwayListener(props) {
|
|
4
4
|
const ref = useRef(null);
|
|
5
5
|
useEffect(() => {
|
|
6
6
|
const handleOutSideClick = (event) => {
|
|
@@ -14,5 +14,4 @@ function ClickAwayListener(props) {
|
|
|
14
14
|
}, [props.onClickAway]);
|
|
15
15
|
return React.createElement("div", { ref: ref }, props.children);
|
|
16
16
|
}
|
|
17
|
-
export default ClickAwayListener;
|
|
18
17
|
//# sourceMappingURL=clickAwayListener.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clickAwayListener.js","sourceRoot":"","sources":["clickAwayListener.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"clickAwayListener.js","sourceRoot":"","sources":["clickAwayListener.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAOjD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAA6B;IACnE,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,kBAAkB,GAAG,CAAC,KAAiB,EAAE,EAAE;YAC7C,IAAI,GAAG,CAAC,OAAO,IAAI,CAAE,GAAG,CAAC,OAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;gBAC7D,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,WAAW,CAAC,KAAY,CAAC,CAAC;aACxD;QACL,CAAC,CAAC;QAEF,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAC;QAE7D,+BAA+B;QAC/B,OAAO,GAAG,EAAE,CACR,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAExB,OAAO,6BAAK,GAAG,EAAE,GAAG,IAAG,KAAK,CAAC,QAAQ,CAAO,CAAC;AACjD,CAAC"}
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { useEffect, useRef } from "react";
|
|
4
4
|
|
|
5
|
-
interface ClickAwayListenerProps
|
|
5
|
+
export interface ClickAwayListenerProps
|
|
6
|
+
extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
7
|
onClickAway: React.MouseEventHandler<HTMLDivElement>;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
function ClickAwayListener(props: ClickAwayListenerProps) {
|
|
10
|
+
export default function ClickAwayListener(props: ClickAwayListenerProps) {
|
|
10
11
|
const ref = useRef(null);
|
|
11
12
|
|
|
12
13
|
useEffect(() => {
|
|
@@ -25,5 +26,3 @@ function ClickAwayListener(props: ClickAwayListenerProps) {
|
|
|
25
26
|
|
|
26
27
|
return <div ref={ref}>{props.children}</div>;
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
-
export default ClickAwayListener;
|
package/codeField/codeField.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
interface CodeFieldsProps extends React.HTMLAttributes<HTMLInputElement> {
|
|
2
|
+
export interface CodeFieldsProps extends React.HTMLAttributes<HTMLInputElement> {
|
|
3
3
|
length?: number;
|
|
4
4
|
name?: string;
|
|
5
5
|
type?: string;
|
|
6
|
-
|
|
6
|
+
autoFocus?: boolean;
|
|
7
|
+
onFilled?: Function;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
export default CodeField;
|
|
9
|
+
export default function CodeField(this: any, props: CodeFieldsProps): JSX.Element;
|
package/codeField/codeField.js
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
3
|
import styles from "./codeField.module.css";
|
|
4
|
-
function
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
function onInputHandler(event, inputLength, onFilled) {
|
|
5
|
+
const targetInputElement = event.target;
|
|
6
|
+
removeUnNumberChars(targetInputElement);
|
|
7
|
+
if (inputLength == targetInputElement.value.length)
|
|
8
|
+
onFilled();
|
|
9
|
+
sliceOverLength(targetInputElement, inputLength);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function sliceOverLength(inputElement, inputLength) {
|
|
12
|
+
const targetLength = inputElement.value.length;
|
|
13
|
+
if (targetLength > inputLength)
|
|
14
|
+
inputElement.value = inputElement.value.slice(0, inputLength);
|
|
15
|
+
}
|
|
16
|
+
function removeUnNumberChars(inputElement) {
|
|
17
|
+
inputElement.value = inputElement.value.replace(/[^0-9]+/, "");
|
|
18
|
+
}
|
|
19
|
+
export default function CodeField(props) {
|
|
12
20
|
const length = props.length ? props.length : 6;
|
|
13
|
-
const joinedClassNames = joinClassNames(styles.input, props.
|
|
21
|
+
const joinedClassNames = joinClassNames(styles.input, props.className);
|
|
14
22
|
const joinedStyles = joinStyles({ width: "calc(1.5ch * " + props.length + ")" }, props.style);
|
|
15
|
-
return (React.createElement("input", { name: props.name, type: "number", minLength: length, maxLength: length, className: joinedClassNames, style: joinedStyles, onInput: (event) =>
|
|
23
|
+
return (React.createElement("input", { name: props.name, type: "number", minLength: length, maxLength: length, className: joinedClassNames, style: joinedStyles, onInput: (event) => onInputHandler(event, length, props.onFilled), autoComplete: "off", pattern: "[0-9]", autoFocus: props.autoFocus }));
|
|
16
24
|
}
|
|
17
|
-
export default CodeField;
|
|
18
25
|
//# 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,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,wBAAwB,CAAC;
|
|
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,QAAkB;IAElB,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,CAAC;IAC/D,eAAe,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC;AACrD,CAAC;AACD,SAAS,eAAe,CACpB,YAA8B,EAC9B,WAAmB;IAEnB,MAAM,YAAY,GAAG,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC;IAC/C,IAAI,YAAY,GAAG,WAAW;QAC1B,YAAY,CAAC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AACtE,CAAC;AACD,SAAS,mBAAmB,CAAC,YAA8B;IACvD,YAAY,CAAC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAY,KAAsB;IAC/D,MAAM,MAAM,GAAW,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAEvD,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,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,gBAAgB,EAC3B,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,EACjE,YAAY,EAAC,KAAK,EAClB,OAAO,EAAC,OAAO,EACf,SAAS,EAAE,KAAK,CAAC,SAAS,GAC5B,CACL,CAAC;AACN,CAAC"}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
color: transparent;
|
|
16
16
|
text-shadow: 0 0 0 rgb(var(--secondaryColor, 98 91 113));
|
|
17
17
|
letter-spacing: 0.5ch;
|
|
18
|
+
font-size: 4rem;
|
|
18
19
|
}
|
|
19
20
|
.input:focus {
|
|
20
21
|
outline: none;
|
|
@@ -24,12 +25,3 @@ input::-webkit-inner-spin-button {
|
|
|
24
25
|
-webkit-appearance: none;
|
|
25
26
|
margin: 0;
|
|
26
27
|
}
|
|
27
|
-
.small {
|
|
28
|
-
font: 5ch consolas, monospace;
|
|
29
|
-
}
|
|
30
|
-
.medium {
|
|
31
|
-
font: 7ch consolas, monospace;
|
|
32
|
-
}
|
|
33
|
-
.large {
|
|
34
|
-
font: 11ch consolas, monospace;
|
|
35
|
-
}
|
package/codeField/codeField.tsx
CHANGED
|
@@ -2,33 +2,41 @@ import React from "react";
|
|
|
2
2
|
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
3
|
import styles from "./codeField.module.css";
|
|
4
4
|
|
|
5
|
-
interface CodeFieldsProps
|
|
5
|
+
export interface CodeFieldsProps
|
|
6
|
+
extends React.HTMLAttributes<HTMLInputElement> {
|
|
6
7
|
length?: number;
|
|
7
8
|
name?: string;
|
|
8
9
|
type?: string;
|
|
9
|
-
|
|
10
|
+
autoFocus?: boolean;
|
|
11
|
+
onFilled?: Function;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
|
-
function
|
|
14
|
+
function onInputHandler(
|
|
13
15
|
event: React.FormEvent<HTMLInputElement>,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
inputLength: number,
|
|
17
|
+
onFilled: Function
|
|
18
|
+
): void {
|
|
19
|
+
const targetInputElement = event.target as HTMLInputElement;
|
|
20
|
+
removeUnNumberChars(targetInputElement);
|
|
21
|
+
if (inputLength == targetInputElement.value.length) onFilled();
|
|
22
|
+
sliceOverLength(targetInputElement, inputLength);
|
|
23
|
+
}
|
|
24
|
+
function sliceOverLength(
|
|
25
|
+
inputElement: HTMLInputElement,
|
|
26
|
+
inputLength: number
|
|
27
|
+
): void {
|
|
28
|
+
const targetLength = inputElement.value.length;
|
|
29
|
+
if (targetLength > inputLength)
|
|
30
|
+
inputElement.value = inputElement.value.slice(0, inputLength);
|
|
31
|
+
}
|
|
32
|
+
function removeUnNumberChars(inputElement: HTMLInputElement): void {
|
|
33
|
+
inputElement.value = inputElement.value.replace(/[^0-9]+/, "");
|
|
22
34
|
}
|
|
23
35
|
|
|
24
|
-
function CodeField(this: any, props: CodeFieldsProps) {
|
|
36
|
+
export default function CodeField(this: any, props: CodeFieldsProps) {
|
|
25
37
|
const length: number = props.length ? props.length : 6;
|
|
26
38
|
|
|
27
|
-
const joinedClassNames = joinClassNames(
|
|
28
|
-
styles.input,
|
|
29
|
-
props.size ? styles[props.size] : styles.medium,
|
|
30
|
-
props.className!
|
|
31
|
-
);
|
|
39
|
+
const joinedClassNames = joinClassNames(styles.input, props.className!);
|
|
32
40
|
|
|
33
41
|
const joinedStyles = joinStyles(
|
|
34
42
|
{ width: "calc(1.5ch * " + props.length + ")" },
|
|
@@ -43,11 +51,10 @@ function CodeField(this: any, props: CodeFieldsProps) {
|
|
|
43
51
|
maxLength={length}
|
|
44
52
|
className={joinedClassNames}
|
|
45
53
|
style={joinedStyles}
|
|
46
|
-
onInput={(event) =>
|
|
54
|
+
onInput={(event) => onInputHandler(event, length, props.onFilled)}
|
|
47
55
|
autoComplete="off"
|
|
48
56
|
pattern="[0-9]"
|
|
57
|
+
autoFocus={props.autoFocus}
|
|
49
58
|
/>
|
|
50
59
|
);
|
|
51
60
|
}
|
|
52
|
-
|
|
53
|
-
export default CodeField;
|
package/container/container.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare type ScreenSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
3
|
-
interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
maxWidth?: ScreenSize;
|
|
5
5
|
background?: "dotted";
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
export
|
|
7
|
+
export default function Container(props: ContainerProps): JSX.Element;
|
|
8
|
+
export {};
|
package/container/container.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { joinClassNames } from "@yakad/lib";
|
|
3
3
|
import styles from "./container.module.css";
|
|
4
|
-
function Container(props) {
|
|
4
|
+
export default function Container(props) {
|
|
5
5
|
const joinedClassNames = joinClassNames(props.maxWidth ? styles[props.maxWidth] : "", props.background ? styles[props.background] : "", styles.container, props.className);
|
|
6
6
|
return (React.createElement("div", { ...props, className: joinedClassNames }, props.children));
|
|
7
7
|
}
|
|
8
|
-
export default Container;
|
|
9
8
|
//# sourceMappingURL=container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.js","sourceRoot":"","sources":["container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAc,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAS5C,
|
|
1
|
+
{"version":3,"file":"container.js","sourceRoot":"","sources":["container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAc,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAS5C,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAqB;IACnD,MAAM,gBAAgB,GAAG,cAAc,CACnC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,EAC5C,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,EAChD,MAAM,CAAC,SAAS,EAChB,KAAK,CAAC,SAAU,CACnB,CAAC;IAEF,OAAO,CACH,gCAAS,KAAK,EAAE,SAAS,EAAE,gBAAgB,IACtC,KAAK,CAAC,QAAQ,CACb,CACT,CAAC;AACN,CAAC"}
|
package/container/container.tsx
CHANGED
|
@@ -4,24 +4,22 @@ import styles from "./container.module.css";
|
|
|
4
4
|
|
|
5
5
|
type ScreenSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
6
6
|
|
|
7
|
-
interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
maxWidth?: ScreenSize;
|
|
9
|
+
background?: "dotted";
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
function Container(props: ContainerProps) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
export default function Container(props: ContainerProps) {
|
|
13
|
+
const joinedClassNames = joinClassNames(
|
|
14
|
+
props.maxWidth ? styles[props.maxWidth] : "",
|
|
15
|
+
props.background ? styles[props.background] : "",
|
|
16
|
+
styles.container,
|
|
17
|
+
props.className!
|
|
18
|
+
);
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
return (
|
|
21
|
+
<div {...props} className={joinedClassNames}>
|
|
22
|
+
{props.children}
|
|
23
|
+
</div>
|
|
24
|
+
);
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
export default Container;
|
package/footer/footer.d.ts
CHANGED
package/footer/footer.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { joinClassNames } from "@yakad/lib";
|
|
3
3
|
import styles from "./footer.module.css";
|
|
4
|
-
function Footer(props) {
|
|
4
|
+
export default function Footer(props) {
|
|
5
5
|
const joinedClassNames = joinClassNames(styles.footer, props.className);
|
|
6
6
|
return (React.createElement("footer", { ...props, className: joinedClassNames }, props.children));
|
|
7
7
|
}
|
|
8
|
-
export default Footer;
|
|
9
8
|
//# sourceMappingURL=footer.js.map
|
package/footer/footer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer.js","sourceRoot":"","sources":["footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,
|
|
1
|
+
{"version":3,"file":"footer.js","sourceRoot":"","sources":["footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAwC;IACnE,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,SAAU,CAAC,CAAC;IAEzE,OAAO,CACH,mCAAY,KAAK,EAAE,SAAS,EAAE,gBAAgB,IACzC,KAAK,CAAC,QAAQ,CACV,CACZ,CAAC;AACN,CAAC"}
|
package/footer/footer.tsx
CHANGED
|
@@ -2,14 +2,12 @@ import React from "react";
|
|
|
2
2
|
import { joinClassNames } from "@yakad/lib";
|
|
3
3
|
import styles from "./footer.module.css";
|
|
4
4
|
|
|
5
|
-
function Footer(props: React.HTMLAttributes<HTMLElement>) {
|
|
6
|
-
|
|
5
|
+
export default function Footer(props: React.HTMLAttributes<HTMLElement>) {
|
|
6
|
+
const joinedClassNames = joinClassNames(styles.footer, props.className!);
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
return (
|
|
9
|
+
<footer {...props} className={joinedClassNames}>
|
|
10
|
+
{props.children}
|
|
11
|
+
</footer>
|
|
12
|
+
);
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
export default Footer;
|
package/form/form.d.ts
CHANGED
package/form/form.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { joinClassNames } from "@yakad/lib";
|
|
3
3
|
import styles from "./form.module.css";
|
|
4
|
-
function Form(props) {
|
|
4
|
+
export default function Form(props) {
|
|
5
5
|
const joinedClassNames = joinClassNames(styles.form, props.className);
|
|
6
6
|
return (React.createElement("form", { ...props, className: joinedClassNames, onSubmit: (e) => {
|
|
7
7
|
e.preventDefault();
|
|
8
8
|
props.onSubmit(null);
|
|
9
9
|
} }, props.children));
|
|
10
10
|
}
|
|
11
|
-
export default Form;
|
|
12
11
|
//# sourceMappingURL=form.js.map
|
package/form/form.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.js","sourceRoot":"","sources":["form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAc,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,
|
|
1
|
+
{"version":3,"file":"form.js","sourceRoot":"","sources":["form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAc,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAA4C;IACrE,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,SAAU,CAAC,CAAC;IAEvE,OAAO,CACH,iCACQ,KAAK,EACT,SAAS,EAAE,gBAAgB,EAC3B,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;YACZ,CAAC,CAAC,cAAc,EAAE,CAAC;YAEnB,KAAK,CAAC,QAAS,CAAC,IAAW,CAAC,CAAC;QACjC,CAAC,IAEA,KAAK,CAAC,QAAQ,CACZ,CACV,CAAC;AACN,CAAC"}
|
package/form/form.tsx
CHANGED
|
@@ -2,22 +2,20 @@ import React from "react";
|
|
|
2
2
|
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
3
|
import styles from "./form.module.css";
|
|
4
4
|
|
|
5
|
-
function Form(props: React.HTMLAttributes<HTMLFormElement>) {
|
|
6
|
-
|
|
5
|
+
export default function Form(props: React.HTMLAttributes<HTMLFormElement>) {
|
|
6
|
+
const joinedClassNames = joinClassNames(styles.form, props.className!);
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
return (
|
|
9
|
+
<form
|
|
10
|
+
{...props}
|
|
11
|
+
className={joinedClassNames}
|
|
12
|
+
onSubmit={(e) => {
|
|
13
|
+
e.preventDefault();
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
props.onSubmit!(null as any);
|
|
16
|
+
}}
|
|
17
|
+
>
|
|
18
|
+
{props.children}
|
|
19
|
+
</form>
|
|
20
|
+
);
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
export default Form;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
interface GridContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
export interface GridContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
rowGap?: number;
|
|
4
4
|
columnGap?: number;
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
export default GridContainer;
|
|
6
|
+
export default function GridContainer(props: GridContainerProps): JSX.Element;
|
|
@@ -2,10 +2,9 @@ import React from "react";
|
|
|
2
2
|
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
3
|
import styles from "./gridContainer.module.css";
|
|
4
4
|
// Custom Button Element
|
|
5
|
-
function GridContainer(props) {
|
|
5
|
+
export default function GridContainer(props) {
|
|
6
6
|
const joinedClassNames = joinClassNames(styles.gridcontainer, props.className);
|
|
7
7
|
const joinedStyles = joinStyles({ columnGap: props.columnGap ? props.columnGap + "rem" : "1.5rem" }, { rowGap: props.rowGap ? props.rowGap + "rem" : "1.5rem" }, props.style);
|
|
8
8
|
return (React.createElement("div", { ...props, className: joinedClassNames, style: joinedStyles }, props.children));
|
|
9
9
|
}
|
|
10
|
-
export default GridContainer;
|
|
11
10
|
//# sourceMappingURL=gridContainer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gridContainer.js","sourceRoot":"","sources":["gridContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"gridContainer.js","sourceRoot":"","sources":["gridContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAQhD,wBAAwB;AACxB,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAyB;IAC3D,MAAM,gBAAgB,GAAG,cAAc,CACnC,MAAM,CAAC,aAAa,EACpB,KAAK,CAAC,SAAU,CACnB,CAAC;IACF,MAAM,YAAY,GAAG,UAAU,CAC3B,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,EACnE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,EAC1D,KAAK,CAAC,KAAM,CACf,CAAC;IACF,OAAO,CACH,gCAAS,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,IAC3D,KAAK,CAAC,QAAQ,CACb,CACT,CAAC;AACN,CAAC"}
|
|
@@ -2,13 +2,14 @@ import React from "react";
|
|
|
2
2
|
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
3
|
import styles from "./gridContainer.module.css";
|
|
4
4
|
|
|
5
|
-
interface GridContainerProps
|
|
5
|
+
export interface GridContainerProps
|
|
6
|
+
extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
7
|
rowGap?: number;
|
|
7
8
|
columnGap?: number;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
// Custom Button Element
|
|
11
|
-
function GridContainer(props: GridContainerProps) {
|
|
12
|
+
export default function GridContainer(props: GridContainerProps) {
|
|
12
13
|
const joinedClassNames = joinClassNames(
|
|
13
14
|
styles.gridcontainer,
|
|
14
15
|
props.className!
|
|
@@ -24,5 +25,3 @@ function GridContainer(props: GridContainerProps) {
|
|
|
24
25
|
</div>
|
|
25
26
|
);
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
-
export default GridContainer;
|
package/gridItem/gridItem.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
export interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
xs?: number;
|
|
4
4
|
sm?: number;
|
|
5
5
|
md?: number;
|
|
6
6
|
lg?: number;
|
|
7
7
|
xl?: number;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
export default GridItem;
|
|
9
|
+
export default function GridItem(props: GridItemProps): JSX.Element;
|