@yakad/ui 1.1.4 → 1.1.6
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/index.tsx +1 -41
- package/package.json +1 -1
- package/svgIcon/svgIcon.module.css +5 -0
- package/svgIcon/svgIcon.tsx +26 -0
package/index.tsx
CHANGED
|
@@ -1,43 +1,3 @@
|
|
|
1
|
-
import AppBar from "./appBar/appBar";
|
|
2
1
|
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
2
|
|
|
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
|
-
};
|
|
3
|
+
export { Button };
|
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
+
import styles from "./svgIcon.module.css";
|
|
4
|
+
|
|
5
|
+
interface SvgIconProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
+
size?: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function SvgIcon(props: SvgIconProps) {
|
|
10
|
+
const joinedClassNames = joinClassNames(styles.svg, props.className!);
|
|
11
|
+
|
|
12
|
+
const joinedStyles = joinStyles(
|
|
13
|
+
props.size
|
|
14
|
+
? { width: props.size + "rem", height: props.size + "rem" }
|
|
15
|
+
: {},
|
|
16
|
+
props.style!
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<div {...props} className={joinedClassNames} style={joinedStyles}>
|
|
21
|
+
{props.children}
|
|
22
|
+
</div>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default SvgIcon;
|