@yakad/ui 1.0.0 → 1.0.2
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/declaration.d.ts +1 -0
- package/package.json +18 -11
- package/src/appBar/appBar.d.ts +3 -0
- package/src/appBar/appBar.js +9 -0
- package/src/appBar/appBar.js.map +1 -0
- package/{appBar → src/appBar}/appBar.module.css +15 -15
- package/src/appBar/appBar.tsx +15 -0
- package/src/button/button.d.ts +9 -0
- package/src/button/button.js +17 -0
- package/src/button/button.js.map +1 -0
- package/{button → src/button}/button.module.css +87 -87
- package/src/button/button.tsx +49 -0
- package/src/card/card.d.ts +3 -0
- package/src/card/card.js +9 -0
- package/src/card/card.js.map +1 -0
- package/{card → src/card}/card.module.css +12 -12
- package/src/card/card.tsx +15 -0
- package/src/clickAwayListener/clickAwayListener.d.ts +6 -0
- package/src/clickAwayListener/clickAwayListener.js +17 -0
- package/src/clickAwayListener/clickAwayListener.js.map +1 -0
- package/{clickAwayListener → src/clickAwayListener}/clickAwayListener.tsx +27 -27
- package/src/container/container.d.ts +7 -0
- package/src/container/container.js +9 -0
- package/src/container/container.js.map +1 -0
- package/{container → src/container}/container.module.css +23 -23
- package/src/container/container.tsx +25 -0
- package/src/footer/footer.d.ts +3 -0
- package/src/footer/footer.js +9 -0
- package/src/footer/footer.js.map +1 -0
- package/{footer → src/footer}/footer.module.css +6 -6
- package/src/footer/footer.tsx +15 -0
- package/src/form/form.d.ts +3 -0
- package/src/form/form.js +12 -0
- package/src/form/form.js.map +1 -0
- package/{form → src/form}/form.module.css +6 -6
- package/src/form/form.tsx +23 -0
- package/src/gridContainer/gridContainer.d.ts +12 -0
- package/src/gridContainer/gridContainer.js +11 -0
- package/src/gridContainer/gridContainer.js.map +1 -0
- package/{gridContainer → src/gridContainer}/gridContainer.module.css +4 -4
- package/src/gridContainer/gridContainer.tsx +34 -0
- package/src/gridItem/gridItem.d.ts +10 -0
- package/src/gridItem/gridItem.js +9 -0
- package/src/gridItem/gridItem.js.map +1 -0
- package/{gridItem → src/gridItem}/gridItem.module.css +0 -0
- package/src/gridItem/gridItem.tsx +27 -0
- package/src/historyBack/historyBack.d.ts +3 -0
- package/src/historyBack/historyBack.js +11 -0
- package/src/historyBack/historyBack.js.map +1 -0
- package/{historyBack → src/historyBack}/historyBack.tsx +20 -20
- package/src/hr/hr.d.ts +8 -0
- package/src/hr/hr.js +12 -0
- package/src/hr/hr.js.map +1 -0
- package/{hr → src/hr}/hr.module.css +18 -18
- package/src/hr/hr.tsx +32 -0
- package/src/index.d.ts +21 -0
- package/src/index.js +22 -0
- package/src/index.js.map +1 -0
- package/{index.tsx → src/index.tsx} +43 -43
- package/src/list/list.d.ts +7 -0
- package/src/list/list.js +9 -0
- package/src/list/list.js.map +1 -0
- package/{list → src/list}/list.module.css +22 -22
- package/src/list/list.tsx +25 -0
- package/src/listItem/listItem.d.ts +3 -0
- package/src/listItem/listItem.js +7 -0
- package/src/listItem/listItem.js.map +1 -0
- package/{listItem → src/listItem}/listItem.module.css +6 -6
- package/src/listItem/listItem.tsx +12 -0
- package/src/main/main.d.ts +6 -0
- package/src/main/main.js +10 -0
- package/src/main/main.js.map +1 -0
- package/{main → src/main}/main.module.css +19 -19
- package/src/main/main.tsx +25 -0
- package/src/navigation/navigation.d.ts +7 -0
- package/src/navigation/navigation.js +9 -0
- package/src/navigation/navigation.js.map +1 -0
- package/{navigation → src/navigation}/navigation.module.css +56 -56
- package/src/navigation/navigation.tsx +24 -0
- package/src/page/page.d.ts +3 -0
- package/src/page/page.js +9 -0
- package/src/page/page.js.map +1 -0
- package/{page → src/page}/page.module.css +9 -9
- package/src/page/page.tsx +15 -0
- package/src/row/row.d.ts +3 -0
- package/src/row/row.js +9 -0
- package/src/row/row.js.map +1 -0
- package/{row → src/row}/row.module.css +7 -7
- package/src/row/row.tsx +15 -0
- package/src/spacer/spacer.d.ts +3 -0
- package/src/spacer/spacer.js +7 -0
- package/src/spacer/spacer.js.map +1 -0
- package/{spacer → src/spacer}/spacer.module.css +5 -5
- package/{spacer → src/spacer}/spacer.tsx +8 -8
- package/src/stack/stack.d.ts +3 -0
- package/src/stack/stack.js +9 -0
- package/src/stack/stack.js.map +1 -0
- package/{stack → src/stack}/stack.module.css +6 -6
- package/src/stack/stack.tsx +15 -0
- package/src/svgIcon/svgIcon.d.ts +6 -0
- package/src/svgIcon/svgIcon.js +12 -0
- package/src/svgIcon/svgIcon.js.map +1 -0
- package/{svgIcon → src/svgIcon}/svgIcon.module.css +5 -5
- package/src/svgIcon/svgIcon.tsx +26 -0
- package/tsconfig.json +13 -0
- package/appBar/appBar.tsx +0 -15
- package/button/button.tsx +0 -53
- package/card/card.tsx +0 -15
- package/container/container.tsx +0 -25
- package/footer/footer.tsx +0 -15
- package/form/form.tsx +0 -23
- package/gridContainer/gridContainer.tsx +0 -34
- package/gridItem/gridItem.tsx +0 -27
- package/hr/hr.tsx +0 -34
- package/list/list.tsx +0 -25
- package/listItem/listItem.tsx +0 -13
- package/main/main.tsx +0 -25
- package/navigation/navigation.tsx +0 -24
- package/page/page.tsx +0 -15
- package/row/row.tsx +0 -15
- package/stack/stack.tsx +0 -15
- package/svgIcon/svgIcon.tsx +0 -26
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames } from "@yakad/lib";
|
|
3
|
+
import styles from "./footer.module.css";
|
|
4
|
+
|
|
5
|
+
function Footer(props: React.HTMLAttributes<HTMLElement>) {
|
|
6
|
+
const joinedClassNames = joinClassNames(styles.footer, props.className!);
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<footer {...props} className={joinedClassNames}>
|
|
10
|
+
{props.children}
|
|
11
|
+
</footer>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default Footer;
|
package/src/form/form.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames } from "@yakad/lib";
|
|
3
|
+
import styles from "./form.module.css";
|
|
4
|
+
function Form(props) {
|
|
5
|
+
const joinedClassNames = joinClassNames(styles.form, props.className);
|
|
6
|
+
return (React.createElement("form", { ...props, className: joinedClassNames, onSubmit: (e) => {
|
|
7
|
+
e.preventDefault();
|
|
8
|
+
props.onSubmit(null);
|
|
9
|
+
} }, props.children));
|
|
10
|
+
}
|
|
11
|
+
export default Form;
|
|
12
|
+
//# sourceMappingURL=form.js.map
|
|
@@ -0,0 +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,SAAS,IAAI,CAAC,KAA4C;IACxD,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,SAAU,CAAC,CAAC;IAEvE,OAAO,CACL,iCACM,KAAK,EACT,SAAS,EAAE,gBAAgB,EAC3B,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;YACd,CAAC,CAAC,cAAc,EAAE,CAAC;YAEnB,KAAK,CAAC,QAAS,CAAC,IAAW,CAAC,CAAC;QAC/B,CAAC,IAEA,KAAK,CAAC,QAAQ,CACV,CACR,CAAC;AACJ,CAAC;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.form {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 1.5rem;
|
|
5
|
-
width: 100%;
|
|
6
|
-
}
|
|
1
|
+
.form {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 1.5rem;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
+
import styles from "./form.module.css";
|
|
4
|
+
|
|
5
|
+
function Form(props: React.HTMLAttributes<HTMLFormElement>) {
|
|
6
|
+
const joinedClassNames = joinClassNames(styles.form, props.className!);
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<form
|
|
10
|
+
{...props}
|
|
11
|
+
className={joinedClassNames}
|
|
12
|
+
onSubmit={(e) => {
|
|
13
|
+
e.preventDefault();
|
|
14
|
+
|
|
15
|
+
props.onSubmit!(null as any);
|
|
16
|
+
}}
|
|
17
|
+
>
|
|
18
|
+
{props.children}
|
|
19
|
+
</form>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default Form;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface GridContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
xs?: number;
|
|
4
|
+
sm?: number;
|
|
5
|
+
md?: number;
|
|
6
|
+
lg?: number;
|
|
7
|
+
xl?: number;
|
|
8
|
+
rowGap?: number;
|
|
9
|
+
columnGap?: number;
|
|
10
|
+
}
|
|
11
|
+
declare function GridContainer(props: GridContainerProps): JSX.Element;
|
|
12
|
+
export default GridContainer;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
+
import styles from "./gridContainer.module.css";
|
|
4
|
+
// Custom Button Element
|
|
5
|
+
function GridContainer(props) {
|
|
6
|
+
const joinedClassNames = joinClassNames(styles.gridcontainer, props.className);
|
|
7
|
+
const joinedStyles = joinStyles(props.xl ? { gridTemplateColumns: " 1fr".repeat(props.xl) } : {}, { columnGap: props.columnGap ? props.columnGap + "rem" : "1.5rem" }, { rowGap: props.rowGap ? props.rowGap + "rem" : "1.5rem" }, props.style);
|
|
8
|
+
return (React.createElement("div", { ...props, className: joinedClassNames, style: joinedStyles }, props.children));
|
|
9
|
+
}
|
|
10
|
+
export default GridContainer;
|
|
11
|
+
//# sourceMappingURL=gridContainer.js.map
|
|
@@ -0,0 +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;AAYhD,wBAAwB;AACxB,SAAS,aAAa,CAAC,KAAyB;IAC9C,MAAM,gBAAgB,GAAG,cAAc,CACrC,MAAM,CAAC,aAAa,EACpB,KAAK,CAAC,SAAU,CACjB,CAAC;IACF,MAAM,YAAY,GAAG,UAAU,CAC7B,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAChE,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,CACb,CAAC;IACF,OAAO,CACL,gCAAS,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,IAC7D,KAAK,CAAC,QAAQ,CACX,CACP,CAAC;AACJ,CAAC;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.gridcontainer {
|
|
2
|
-
display: grid;
|
|
3
|
-
box-sizing: border-box;
|
|
4
|
-
}
|
|
1
|
+
.gridcontainer {
|
|
2
|
+
display: grid;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
+
import styles from "./gridContainer.module.css";
|
|
4
|
+
|
|
5
|
+
interface GridContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
xs?: number;
|
|
7
|
+
sm?: number;
|
|
8
|
+
md?: number;
|
|
9
|
+
lg?: number;
|
|
10
|
+
xl?: number;
|
|
11
|
+
rowGap?: number;
|
|
12
|
+
columnGap?: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Custom Button Element
|
|
16
|
+
function GridContainer(props: GridContainerProps) {
|
|
17
|
+
const joinedClassNames = joinClassNames(
|
|
18
|
+
styles.gridcontainer,
|
|
19
|
+
props.className!
|
|
20
|
+
);
|
|
21
|
+
const joinedStyles = joinStyles(
|
|
22
|
+
props.xl ? { gridTemplateColumns: " 1fr".repeat(props.xl) } : {},
|
|
23
|
+
{ columnGap: props.columnGap ? props.columnGap + "rem" : "1.5rem" },
|
|
24
|
+
{ rowGap: props.rowGap ? props.rowGap + "rem" : "1.5rem" },
|
|
25
|
+
props.style!
|
|
26
|
+
);
|
|
27
|
+
return (
|
|
28
|
+
<div {...props} className={joinedClassNames} style={joinedStyles}>
|
|
29
|
+
{props.children}
|
|
30
|
+
</div>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default GridContainer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
xs?: number;
|
|
4
|
+
sm?: number;
|
|
5
|
+
md?: number;
|
|
6
|
+
lg?: number;
|
|
7
|
+
xl?: number;
|
|
8
|
+
}
|
|
9
|
+
declare function GridItem(props: GridItemProps): JSX.Element;
|
|
10
|
+
export default GridItem;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinStyles } from "@yakad/lib";
|
|
3
|
+
// Custom Button Element
|
|
4
|
+
function GridItem(props) {
|
|
5
|
+
const joinedStyles = joinStyles(props.xl ? { gridColumn: "span " + props.xl } : {}, props.style);
|
|
6
|
+
return (React.createElement("div", { ...props, style: joinedStyles }, props.children));
|
|
7
|
+
}
|
|
8
|
+
export default GridItem;
|
|
9
|
+
//# sourceMappingURL=gridItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gridItem.js","sourceRoot":"","sources":["gridItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,UAAU,EAAE,MAAM,YAAY,CAAC;AAWxD,wBAAwB;AACxB,SAAS,QAAQ,CAAC,KAAoB;IACpC,MAAM,YAAY,GAAG,UAAU,CAC7B,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,GAAG,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EAClD,KAAK,CAAC,KAAM,CACb,CAAC;IAEF,OAAO,CACL,gCAAS,KAAK,EAAE,KAAK,EAAE,YAAY,IAChC,KAAK,CAAC,QAAQ,CACX,CACP,CAAC;AACJ,CAAC;AAED,eAAe,QAAQ,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
+
import styles from "./gridItem.module.css";
|
|
4
|
+
|
|
5
|
+
interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
xs?: number;
|
|
7
|
+
sm?: number;
|
|
8
|
+
md?: number;
|
|
9
|
+
lg?: number;
|
|
10
|
+
xl?: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Custom Button Element
|
|
14
|
+
function GridItem(props: GridItemProps) {
|
|
15
|
+
const joinedStyles = joinStyles(
|
|
16
|
+
props.xl ? { gridColumn: "span " + props.xl } : {},
|
|
17
|
+
props.style!
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<div {...props} style={joinedStyles}>
|
|
22
|
+
{props.children}
|
|
23
|
+
</div>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default GridItem;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useNavigate } from "react-router-dom";
|
|
3
|
+
function HistoryBack(props) {
|
|
4
|
+
const navigate = useNavigate();
|
|
5
|
+
return (React.createElement("div", { ...props, onClick: () => {
|
|
6
|
+
navigate(-1);
|
|
7
|
+
props.onClick(null);
|
|
8
|
+
} }, props.children));
|
|
9
|
+
}
|
|
10
|
+
export default HistoryBack;
|
|
11
|
+
//# sourceMappingURL=historyBack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"historyBack.js","sourceRoot":"","sources":["historyBack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,SAAS,WAAW,CAAC,KAA2C;IAC5D,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,OAAO,CACH,gCACQ,KAAK,EACT,OAAO,EAAE,GAAG,EAAE;YACV,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;YACb,KAAK,CAAC,OAAQ,CAAC,IAAW,CAAC,CAAC;QAChC,CAAC,IAEA,KAAK,CAAC,QAAQ,CACb,CACT,CAAC;AACN,CAAC;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { useNavigate } from "react-router-dom";
|
|
3
|
-
|
|
4
|
-
function HistoryBack(props: React.HTMLAttributes<HTMLDivElement>) {
|
|
5
|
-
const navigate = useNavigate();
|
|
6
|
-
|
|
7
|
-
return (
|
|
8
|
-
<div
|
|
9
|
-
{...props}
|
|
10
|
-
onClick={() => {
|
|
11
|
-
navigate(-1);
|
|
12
|
-
props.onClick!(null as any);
|
|
13
|
-
}}
|
|
14
|
-
>
|
|
15
|
-
{props.children}
|
|
16
|
-
</div>
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export default HistoryBack;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useNavigate } from "react-router-dom";
|
|
3
|
+
|
|
4
|
+
function HistoryBack(props: React.HTMLAttributes<HTMLDivElement>) {
|
|
5
|
+
const navigate = useNavigate();
|
|
6
|
+
|
|
7
|
+
return (
|
|
8
|
+
<div
|
|
9
|
+
{...props}
|
|
10
|
+
onClick={() => {
|
|
11
|
+
navigate(-1);
|
|
12
|
+
props.onClick!(null as any);
|
|
13
|
+
}}
|
|
14
|
+
>
|
|
15
|
+
{props.children}
|
|
16
|
+
</div>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default HistoryBack;
|
package/src/hr/hr.d.ts
ADDED
package/src/hr/hr.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
+
import styles from "./hr.module.css";
|
|
4
|
+
function Hr(props) {
|
|
5
|
+
const joinedClassNames = joinClassNames(styles.hr, props.variant ? styles[props.variant] : "", props.className);
|
|
6
|
+
const joinedStyles = joinStyles(props.height ? { borderTopWidth: props.height + "rem" } : {}, props.marginTopBottom
|
|
7
|
+
? joinStyles({ marginTop: props.marginTopBottom + "rem" }, { marginBottom: props.marginTopBottom + "rem" })
|
|
8
|
+
: {}, props.style);
|
|
9
|
+
return React.createElement("hr", { ...props, className: joinedClassNames, style: joinedStyles });
|
|
10
|
+
}
|
|
11
|
+
export default Hr;
|
|
12
|
+
//# sourceMappingURL=hr.js.map
|
package/src/hr/hr.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hr.js","sourceRoot":"","sources":["hr.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAQrC,SAAS,EAAE,CAAC,KAAc;IACxB,MAAM,gBAAgB,GAAG,cAAc,CACrC,MAAM,CAAC,EAAE,EACT,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,EAC1C,KAAK,CAAC,SAAU,CACjB,CAAC;IAEF,MAAM,YAAY,GAAG,UAAU,CAC7B,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,KAAK,CAAC,MAAM,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,EAC5D,KAAK,CAAC,eAAe;QACnB,CAAC,CAAC,UAAU,CACR,EAAE,SAAS,EAAE,KAAK,CAAC,eAAe,GAAG,KAAK,EAAE,EAC5C,EAAE,YAAY,EAAE,KAAK,CAAC,eAAe,GAAG,KAAK,EAAE,CAChD;QACH,CAAC,CAAC,EAAE,EACN,KAAK,CAAC,KAAM,CACb,CAAC;IAEF,OAAO,+BAAQ,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,GAAO,CAAC;AAChF,CAAC;AAED,eAAe,EAAE,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
.hr {
|
|
2
|
-
width: calc(100% - 1rem);
|
|
3
|
-
height: 0;
|
|
4
|
-
padding: 0;
|
|
5
|
-
margin: 0.5rem auto;
|
|
6
|
-
background: none;
|
|
7
|
-
border-top: 0.1rem solid var(--secondaryVariantColor);
|
|
8
|
-
}
|
|
9
|
-
.dotted {
|
|
10
|
-
border-top: 0.4rem dotted var(--secondaryVariantColor);
|
|
11
|
-
}
|
|
12
|
-
.dashed {
|
|
13
|
-
border-top: 0.2rem dashed var(--secondaryVariantColor);
|
|
14
|
-
}
|
|
15
|
-
.shortLine {
|
|
16
|
-
width: 30rem;
|
|
17
|
-
max-width: 80%;
|
|
18
|
-
}
|
|
1
|
+
.hr {
|
|
2
|
+
width: calc(100% - 1rem);
|
|
3
|
+
height: 0;
|
|
4
|
+
padding: 0;
|
|
5
|
+
margin: 0.5rem auto;
|
|
6
|
+
background: none;
|
|
7
|
+
border-top: 0.1rem solid var(--secondaryVariantColor);
|
|
8
|
+
}
|
|
9
|
+
.dotted {
|
|
10
|
+
border-top: 0.4rem dotted var(--secondaryVariantColor);
|
|
11
|
+
}
|
|
12
|
+
.dashed {
|
|
13
|
+
border-top: 0.2rem dashed var(--secondaryVariantColor);
|
|
14
|
+
}
|
|
15
|
+
.shortLine {
|
|
16
|
+
width: 30rem;
|
|
17
|
+
max-width: 80%;
|
|
18
|
+
}
|
package/src/hr/hr.tsx
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
+
import styles from "./hr.module.css";
|
|
4
|
+
|
|
5
|
+
interface HrProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
+
variant?: "dotted" | "dashed" | "shortLine";
|
|
7
|
+
height?: number;
|
|
8
|
+
marginTopBottom?: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function Hr(props: HrProps) {
|
|
12
|
+
const joinedClassNames = joinClassNames(
|
|
13
|
+
styles.hr,
|
|
14
|
+
props.variant ? styles[props.variant] : "",
|
|
15
|
+
props.className!
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
const joinedStyles = joinStyles(
|
|
19
|
+
props.height ? { borderTopWidth: props.height + "rem" } : {},
|
|
20
|
+
props.marginTopBottom
|
|
21
|
+
? joinStyles(
|
|
22
|
+
{ marginTop: props.marginTopBottom + "rem" },
|
|
23
|
+
{ marginBottom: props.marginTopBottom + "rem" }
|
|
24
|
+
)
|
|
25
|
+
: {},
|
|
26
|
+
props.style!
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
return <hr {...props} className={joinedClassNames} style={joinedStyles}></hr>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export default Hr;
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import AppBar from "./appBar/appBar";
|
|
2
|
+
import Button from "./button/button";
|
|
3
|
+
import Container from "./container/container";
|
|
4
|
+
import GridContainer from "./gridContainer/gridContainer";
|
|
5
|
+
import GridItem from "./gridItem/gridItem";
|
|
6
|
+
import Stack from "./stack/stack";
|
|
7
|
+
import Navigation from "./navigation/navigation";
|
|
8
|
+
import ClickAwayListener from "./clickAwayListener/clickAwayListener";
|
|
9
|
+
import List from "./list/list";
|
|
10
|
+
import ListItem from "./listItem/listItem";
|
|
11
|
+
import Main from "./main/main";
|
|
12
|
+
import Page from "./page/page";
|
|
13
|
+
import Spacer from "./spacer/spacer";
|
|
14
|
+
import Hr from "./hr/hr";
|
|
15
|
+
import Form from "./form/form";
|
|
16
|
+
import SvgIcon from "./svgIcon/svgIcon";
|
|
17
|
+
import HistoryBack from "./historyBack/historyBack";
|
|
18
|
+
import Row from "./row/row";
|
|
19
|
+
import Footer from "./footer/footer";
|
|
20
|
+
import Card from "./card/card";
|
|
21
|
+
export { Container, GridContainer, GridItem, Stack, Navigation, ClickAwayListener, AppBar, Button, List, ListItem, Main, Page, Spacer, Hr, Form, SvgIcon, HistoryBack, Row, Footer, Card, };
|
package/src/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import AppBar from "./appBar/appBar";
|
|
2
|
+
import Button from "./button/button";
|
|
3
|
+
import Container from "./container/container";
|
|
4
|
+
import GridContainer from "./gridContainer/gridContainer";
|
|
5
|
+
import GridItem from "./gridItem/gridItem";
|
|
6
|
+
import Stack from "./stack/stack";
|
|
7
|
+
import Navigation from "./navigation/navigation";
|
|
8
|
+
import ClickAwayListener from "./clickAwayListener/clickAwayListener";
|
|
9
|
+
import List from "./list/list";
|
|
10
|
+
import ListItem from "./listItem/listItem";
|
|
11
|
+
import Main from "./main/main";
|
|
12
|
+
import Page from "./page/page";
|
|
13
|
+
import Spacer from "./spacer/spacer";
|
|
14
|
+
import Hr from "./hr/hr";
|
|
15
|
+
import Form from "./form/form";
|
|
16
|
+
import SvgIcon from "./svgIcon/svgIcon";
|
|
17
|
+
import HistoryBack from "./historyBack/historyBack";
|
|
18
|
+
import Row from "./row/row";
|
|
19
|
+
import Footer from "./footer/footer";
|
|
20
|
+
import Card from "./card/card";
|
|
21
|
+
export { Container, GridContainer, GridItem, Stack, Navigation, ClickAwayListener, AppBar, Button, List, ListItem, Main, Page, Spacer, Hr, Form, SvgIcon, HistoryBack, Row, Footer, Card, };
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAC1D,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,KAAK,MAAM,eAAe,CAAC;AAClC,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AACtE,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,IAAI,MAAM,aAAa,CAAC;AAE/B,OAAO,EACH,SAAS,EACT,aAAa,EACb,QAAQ,EACR,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,MAAM,EACN,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,EAAE,EACF,IAAI,EACJ,OAAO,EACP,WAAW,EACX,GAAG,EACH,MAAM,EACN,IAAI,GACP,CAAC"}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import AppBar from "./appBar/appBar";
|
|
2
|
-
import Button from "./button/button";
|
|
3
|
-
import Container from "./container/container";
|
|
4
|
-
import GridContainer from "./gridContainer/gridContainer";
|
|
5
|
-
import GridItem from "./gridItem/gridItem";
|
|
6
|
-
import Stack from "./stack/stack";
|
|
7
|
-
import Navigation from "./navigation/navigation";
|
|
8
|
-
import ClickAwayListener from "./clickAwayListener/clickAwayListener";
|
|
9
|
-
import List from "./list/list";
|
|
10
|
-
import ListItem from "./listItem/listItem";
|
|
11
|
-
import Main from "./main/main";
|
|
12
|
-
import Page from "./page/page";
|
|
13
|
-
import Spacer from "./spacer/spacer";
|
|
14
|
-
import Hr from "./hr/hr";
|
|
15
|
-
import Form from "./form/form";
|
|
16
|
-
import SvgIcon from "./svgIcon/svgIcon";
|
|
17
|
-
import HistoryBack from "./historyBack/historyBack";
|
|
18
|
-
import Row from "./row/row";
|
|
19
|
-
import Footer from "./footer/footer";
|
|
20
|
-
import Card from "./card/card";
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
Container,
|
|
24
|
-
GridContainer,
|
|
25
|
-
GridItem,
|
|
26
|
-
Stack,
|
|
27
|
-
Navigation,
|
|
28
|
-
ClickAwayListener,
|
|
29
|
-
AppBar,
|
|
30
|
-
Button,
|
|
31
|
-
List,
|
|
32
|
-
ListItem,
|
|
33
|
-
Main,
|
|
34
|
-
Page,
|
|
35
|
-
Spacer,
|
|
36
|
-
Hr,
|
|
37
|
-
Form,
|
|
38
|
-
SvgIcon,
|
|
39
|
-
HistoryBack,
|
|
40
|
-
Row,
|
|
41
|
-
Footer,
|
|
42
|
-
Card,
|
|
43
|
-
};
|
|
1
|
+
import AppBar from "./appBar/appBar";
|
|
2
|
+
import Button from "./button/button";
|
|
3
|
+
import Container from "./container/container";
|
|
4
|
+
import GridContainer from "./gridContainer/gridContainer";
|
|
5
|
+
import GridItem from "./gridItem/gridItem";
|
|
6
|
+
import Stack from "./stack/stack";
|
|
7
|
+
import Navigation from "./navigation/navigation";
|
|
8
|
+
import ClickAwayListener from "./clickAwayListener/clickAwayListener";
|
|
9
|
+
import List from "./list/list";
|
|
10
|
+
import ListItem from "./listItem/listItem";
|
|
11
|
+
import Main from "./main/main";
|
|
12
|
+
import Page from "./page/page";
|
|
13
|
+
import Spacer from "./spacer/spacer";
|
|
14
|
+
import Hr from "./hr/hr";
|
|
15
|
+
import Form from "./form/form";
|
|
16
|
+
import SvgIcon from "./svgIcon/svgIcon";
|
|
17
|
+
import HistoryBack from "./historyBack/historyBack";
|
|
18
|
+
import Row from "./row/row";
|
|
19
|
+
import Footer from "./footer/footer";
|
|
20
|
+
import Card from "./card/card";
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
Container,
|
|
24
|
+
GridContainer,
|
|
25
|
+
GridItem,
|
|
26
|
+
Stack,
|
|
27
|
+
Navigation,
|
|
28
|
+
ClickAwayListener,
|
|
29
|
+
AppBar,
|
|
30
|
+
Button,
|
|
31
|
+
List,
|
|
32
|
+
ListItem,
|
|
33
|
+
Main,
|
|
34
|
+
Page,
|
|
35
|
+
Spacer,
|
|
36
|
+
Hr,
|
|
37
|
+
Form,
|
|
38
|
+
SvgIcon,
|
|
39
|
+
HistoryBack,
|
|
40
|
+
Row,
|
|
41
|
+
Footer,
|
|
42
|
+
Card,
|
|
43
|
+
};
|
package/src/list/list.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames } from "@yakad/lib";
|
|
3
|
+
import styles from "./list.module.css";
|
|
4
|
+
function List(props) {
|
|
5
|
+
const joinedClassNames = joinClassNames(styles.list, props.direction ? styles[props.direction] : styles.row, props.collapsed ? styles.collapsed : "", props.className);
|
|
6
|
+
return (React.createElement("ul", { ...props, className: joinedClassNames }, props.children));
|
|
7
|
+
}
|
|
8
|
+
export default List;
|
|
9
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAOvC,SAAS,IAAI,CAAC,KAAgB;IAC5B,MAAM,gBAAgB,GAAG,cAAc,CACrC,MAAM,CAAC,IAAI,EACX,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,EACtD,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EACvC,KAAK,CAAC,SAAU,CACjB,CAAC;IAEF,OAAO,CACL,+BAAQ,KAAK,EAAE,SAAS,EAAE,gBAAgB,IACvC,KAAK,CAAC,QAAQ,CACZ,CACN,CAAC;AACJ,CAAC;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
.list {
|
|
2
|
-
display: flex;
|
|
3
|
-
list-style-type: none;
|
|
4
|
-
max-height: 100rem;
|
|
5
|
-
padding: 0;
|
|
6
|
-
transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.row {
|
|
10
|
-
flex-direction: row;
|
|
11
|
-
}
|
|
12
|
-
.column {
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
align-items: stretch;
|
|
15
|
-
width: 100%;
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.collapsed {
|
|
20
|
-
max-height: 0;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
}
|
|
1
|
+
.list {
|
|
2
|
+
display: flex;
|
|
3
|
+
list-style-type: none;
|
|
4
|
+
max-height: 100rem;
|
|
5
|
+
padding: 0;
|
|
6
|
+
transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.row {
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
}
|
|
12
|
+
.column {
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
align-items: stretch;
|
|
15
|
+
width: 100%;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.collapsed {
|
|
20
|
+
max-height: 0;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames } from "@yakad/lib";
|
|
3
|
+
import styles from "./list.module.css";
|
|
4
|
+
|
|
5
|
+
interface ListProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
6
|
+
direction?: "row" | "column";
|
|
7
|
+
collapsed?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function List(props: ListProps) {
|
|
11
|
+
const joinedClassNames = joinClassNames(
|
|
12
|
+
styles.list,
|
|
13
|
+
props.direction ? styles[props.direction] : styles.row,
|
|
14
|
+
props.collapsed ? styles.collapsed : "",
|
|
15
|
+
props.className!
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<ul {...props} className={joinedClassNames}>
|
|
20
|
+
{props.children}
|
|
21
|
+
</ul>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default List;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listItem.js","sourceRoot":"","sources":["listItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,SAAS,QAAQ,CAAC,KAA0C;IAC1D,OAAO,CACL,4BAAI,SAAS,EAAE,MAAM,CAAC,QAAQ,KAAM,KAAK,IACtC,KAAK,CAAC,QAAQ,CACZ,CACN,CAAC;AACJ,CAAC;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.listItem {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: stretch;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
}
|
|
1
|
+
.listItem {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: stretch;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styles from "./listItem.module.css";
|
|
3
|
+
|
|
4
|
+
function ListItem(props: React.HTMLAttributes<HTMLLIElement>) {
|
|
5
|
+
return (
|
|
6
|
+
<li className={styles.listItem} {...props}>
|
|
7
|
+
{props.children}
|
|
8
|
+
</li>
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export default ListItem;
|