@yakad/ui 1.1.3 → 1.1.5

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.
Files changed (98) hide show
  1. package/package.json +2 -2
  2. package/appBar/appBar.d.ts +0 -3
  3. package/appBar/appBar.js +0 -9
  4. package/appBar/appBar.js.map +0 -1
  5. package/appBar/appBar.module.css +0 -14
  6. package/appBar/appBar.tsx +0 -15
  7. package/button/button.d.ts +0 -9
  8. package/button/button.js +0 -19
  9. package/button/button.js.map +0 -1
  10. package/card/card.d.ts +0 -3
  11. package/card/card.js +0 -9
  12. package/card/card.js.map +0 -1
  13. package/card/card.module.css +0 -12
  14. package/card/card.tsx +0 -15
  15. package/clickAwayListener/clickAwayListener.d.ts +0 -6
  16. package/clickAwayListener/clickAwayListener.js +0 -17
  17. package/clickAwayListener/clickAwayListener.js.map +0 -1
  18. package/clickAwayListener/clickAwayListener.tsx +0 -27
  19. package/container/container.d.ts +0 -7
  20. package/container/container.js +0 -9
  21. package/container/container.js.map +0 -1
  22. package/container/container.module.css +0 -23
  23. package/container/container.tsx +0 -25
  24. package/footer/footer.d.ts +0 -3
  25. package/footer/footer.js +0 -9
  26. package/footer/footer.js.map +0 -1
  27. package/footer/footer.module.css +0 -6
  28. package/footer/footer.tsx +0 -15
  29. package/form/form.d.ts +0 -3
  30. package/form/form.js +0 -12
  31. package/form/form.js.map +0 -1
  32. package/form/form.module.css +0 -6
  33. package/form/form.tsx +0 -23
  34. package/gridContainer/gridContainer.d.ts +0 -7
  35. package/gridContainer/gridContainer.js +0 -11
  36. package/gridContainer/gridContainer.js.map +0 -1
  37. package/gridContainer/gridContainer.module.css +0 -5
  38. package/gridContainer/gridContainer.tsx +0 -28
  39. package/gridItem/gridItem.d.ts +0 -10
  40. package/gridItem/gridItem.js +0 -10
  41. package/gridItem/gridItem.js.map +0 -1
  42. package/gridItem/gridItem.module.css +0 -192
  43. package/gridItem/gridItem.tsx +0 -31
  44. package/historyBack/historyBack.d.ts +0 -3
  45. package/historyBack/historyBack.js +0 -11
  46. package/historyBack/historyBack.js.map +0 -1
  47. package/historyBack/historyBack.tsx +0 -20
  48. package/hr/hr.d.ts +0 -8
  49. package/hr/hr.js +0 -12
  50. package/hr/hr.js.map +0 -1
  51. package/hr/hr.module.css +0 -18
  52. package/hr/hr.tsx +0 -32
  53. package/index.d.ts +0 -21
  54. package/index.js +0 -22
  55. package/index.js.map +0 -1
  56. package/list/list.d.ts +0 -7
  57. package/list/list.js +0 -9
  58. package/list/list.js.map +0 -1
  59. package/list/list.module.css +0 -22
  60. package/list/list.tsx +0 -25
  61. package/listItem/listItem.d.ts +0 -3
  62. package/listItem/listItem.js +0 -7
  63. package/listItem/listItem.js.map +0 -1
  64. package/listItem/listItem.module.css +0 -6
  65. package/listItem/listItem.tsx +0 -12
  66. package/main/main.d.ts +0 -6
  67. package/main/main.js +0 -10
  68. package/main/main.js.map +0 -1
  69. package/main/main.module.css +0 -19
  70. package/main/main.tsx +0 -25
  71. package/navigation/navigation.d.ts +0 -7
  72. package/navigation/navigation.js +0 -9
  73. package/navigation/navigation.js.map +0 -1
  74. package/navigation/navigation.module.css +0 -56
  75. package/navigation/navigation.tsx +0 -24
  76. package/page/page.d.ts +0 -3
  77. package/page/page.js +0 -9
  78. package/page/page.js.map +0 -1
  79. package/page/page.module.css +0 -9
  80. package/page/page.tsx +0 -15
  81. package/row/row.d.ts +0 -3
  82. package/row/row.js +0 -9
  83. package/row/row.js.map +0 -1
  84. package/row/row.module.css +0 -7
  85. package/row/row.tsx +0 -15
  86. package/spacer/spacer.d.ts +0 -3
  87. package/spacer/spacer.js +0 -7
  88. package/spacer/spacer.js.map +0 -1
  89. package/spacer/spacer.module.css +0 -5
  90. package/spacer/spacer.tsx +0 -8
  91. package/stack/stack.d.ts +0 -3
  92. package/stack/stack.js +0 -9
  93. package/stack/stack.js.map +0 -1
  94. package/stack/stack.module.css +0 -6
  95. package/stack/stack.tsx +0 -15
  96. package/svgIcon/svgIcon.d.ts +0 -6
  97. package/svgIcon/svgIcon.js +0 -12
  98. package/svgIcon/svgIcon.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yakad/ui",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@types/react": "^18.0.24",
22
22
  "@types/react-dom": "^18.0.6",
23
- "@yakad/lib": "^1.0.1",
23
+ "@yakad/lib": "^1.0.3",
24
24
  "react": "^18.2.0",
25
25
  "react-dom": "^18.2.0",
26
26
  "react-router-dom": "^6.4.2",
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare function AppBar(props: React.HTMLAttributes<HTMLElement>): JSX.Element;
3
- export default AppBar;
package/appBar/appBar.js DELETED
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { joinClassNames } from "@yakad/lib";
3
- import styles from "./appBar.module.css";
4
- function AppBar(props) {
5
- const joinedClassNames = joinClassNames(styles.header, props.className);
6
- return (React.createElement("header", { ...props, className: joinedClassNames }, props.children));
7
- }
8
- export default AppBar;
9
- //# sourceMappingURL=appBar.js.map
@@ -1 +0,0 @@
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,SAAS,MAAM,CAAC,KAAwC;IACtD,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,SAAU,CAAC,CAAC;IAEzE,OAAO,CACL,mCAAY,KAAK,EAAE,SAAS,EAAE,gBAAgB,IAC3C,KAAK,CAAC,QAAQ,CACR,CACV,CAAC;AACJ,CAAC;AAED,eAAe,MAAM,CAAC"}
@@ -1,14 +0,0 @@
1
- .header {
2
- display: flex;
3
- flex-direction: row;
4
- align-items: center;
5
- box-sizing: border-box;
6
- width: 100%;
7
- height: 5rem;
8
- padding: 0 2rem;
9
- border-bottom: 0.1rem solid #7d7d7d40;
10
- background: var(--headerColor);
11
- color: var(--onHeaderColor);
12
- fill: var(--onHeaderColor);
13
- user-select: none;
14
- }
package/appBar/appBar.tsx DELETED
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import { joinClassNames, joinStyles } from "@yakad/lib";
3
- import styles from "./appBar.module.css";
4
-
5
- function AppBar(props: React.HTMLAttributes<HTMLElement>) {
6
- const joinedClassNames = joinClassNames(styles.header, props.className!);
7
-
8
- return (
9
- <header {...props} className={joinedClassNames}>
10
- {props.children}
11
- </header>
12
- );
13
- }
14
-
15
- export default AppBar;
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
3
- variant?: "text" | "outlined" | "filled" | "tonal" | "elevated" | "link";
4
- size?: "small" | "medium" | "large";
5
- borderStyle?: "none" | "semi" | "rounded";
6
- icon?: JSX.Element;
7
- }
8
- declare function Button(props: ButtonProps): JSX.Element;
9
- export default Button;
package/button/button.js DELETED
@@ -1,19 +0,0 @@
1
- import React from "react";
2
- import { joinClassNames } from "@yakad/lib";
3
- import styles from "./button.module.css";
4
- import SvgIcon from "../svgIcon/svgIcon";
5
- const svgSizeMaps = {
6
- small: 2,
7
- medium: 2.4,
8
- large: 3,
9
- };
10
- function Button(props) {
11
- const joinedClassNames = joinClassNames(styles.button, props.variant ? styles[props.variant] : styles.text, props.size ? styles[props.size] : styles.medium, props.borderStyle ? styles[props.borderStyle] : styles.rounded, props.icon && !props.children ? styles.iconButton : "", props.className);
12
- return (React.createElement("button", { ...props, className: joinedClassNames },
13
- props.icon ? (React.createElement(SvgIcon, { size: props.size
14
- ? svgSizeMaps[props.size]
15
- : svgSizeMaps.medium }, props.icon)) : null,
16
- props.children));
17
- }
18
- export default Button;
19
- //# sourceMappingURL=button.js.map
@@ -1 +0,0 @@
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,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAezC,MAAM,WAAW,GAAe;IAC5B,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,GAAG;IACX,KAAK,EAAE,CAAC;CACX,CAAC;AAEF,SAAS,MAAM,CAAC,KAAkB;IAC9B,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,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,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CACV,oBAAC,OAAO,IACJ,IAAI,EACA,KAAK,CAAC,IAAI;gBACN,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC;gBACzB,CAAC,CAAC,WAAW,CAAC,MAAM,IAG3B,KAAK,CAAC,IAAI,CACL,CACb,CAAC,CAAC,CAAC,IAAI;QACP,KAAK,CAAC,QAAQ,CACV,CACZ,CAAC;AACN,CAAC;AAED,eAAe,MAAM,CAAC"}
package/card/card.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare function Card(props: React.HTMLAttributes<HTMLElement>): JSX.Element;
3
- export default Card;
package/card/card.js DELETED
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { joinClassNames } from "@yakad/lib";
3
- import styles from "./card.module.css";
4
- function Card(props) {
5
- const joinedClassNames = joinClassNames(styles.card, props.className);
6
- return (React.createElement("div", { ...props, className: joinedClassNames }, props.children));
7
- }
8
- export default Card;
9
- //# sourceMappingURL=card.js.map
package/card/card.js.map DELETED
@@ -1 +0,0 @@
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,SAAS,IAAI,CAAC,KAAwC;IACpD,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,SAAU,CAAC,CAAC;IAEvE,OAAO,CACL,gCAAS,KAAK,EAAE,SAAS,EAAE,gBAAgB,IACxC,KAAK,CAAC,QAAQ,CACX,CACP,CAAC;AACJ,CAAC;AAED,eAAe,IAAI,CAAC"}
@@ -1,12 +0,0 @@
1
- .card {
2
- width: 100%;
3
- padding: 3rem;
4
- box-sizing: border-box;
5
- border-radius: 2rem;
6
- background: var(--surfaceColor);
7
- color: var(--onSurfaceColor);
8
- fill: var(--onSurfaceColor);
9
- box-shadow: 0px 6px 10px 0px hsla(0, 0%, 0%, 0.14),
10
- 0px 1px 18px 0px hsla(0, 0%, 0%, 0.12),
11
- 0px 3px 5px -1px hsla(0, 0%, 0%, 0.2);
12
- }
package/card/card.tsx DELETED
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import { joinClassNames } from "@yakad/lib";
3
- import styles from "./card.module.css";
4
-
5
- function Card(props: React.HTMLAttributes<HTMLElement>) {
6
- const joinedClassNames = joinClassNames(styles.card, props.className!);
7
-
8
- return (
9
- <div {...props} className={joinedClassNames}>
10
- {props.children}
11
- </div>
12
- );
13
- }
14
-
15
- export default Card;
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- interface ClickAwayListenerProps extends React.HTMLAttributes<HTMLDivElement> {
3
- onClickAway: React.MouseEventHandler<HTMLDivElement>;
4
- }
5
- declare function ClickAwayListener(props: ClickAwayListenerProps): JSX.Element;
6
- export default ClickAwayListener;
@@ -1,17 +0,0 @@
1
- import React, { useEffect, useRef } from "react";
2
- function ClickAwayListener(props) {
3
- const ref = useRef(null);
4
- useEffect(() => {
5
- const handleOutSideClick = (event) => {
6
- if (ref.current && !ref.current.contains(event.target)) {
7
- props.onClickAway && props.onClickAway(event);
8
- }
9
- };
10
- document.addEventListener("click", handleOutSideClick, true);
11
- // CleanUp When element unmount
12
- return () => document.removeEventListener("click", handleOutSideClick, true);
13
- }, [props.onClickAway]);
14
- return React.createElement("div", { ref: ref }, props.children);
15
- }
16
- export default ClickAwayListener;
17
- //# sourceMappingURL=clickAwayListener.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clickAwayListener.js","sourceRoot":"","sources":["clickAwayListener.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAMjD,SAAS,iBAAiB,CAAC,KAA6B;IACpD,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;AAED,eAAe,iBAAiB,CAAC"}
@@ -1,27 +0,0 @@
1
- import React, { useEffect, useRef } from "react";
2
-
3
- interface ClickAwayListenerProps extends React.HTMLAttributes<HTMLDivElement> {
4
- onClickAway: React.MouseEventHandler<HTMLDivElement>;
5
- }
6
-
7
- function ClickAwayListener(props: ClickAwayListenerProps) {
8
- const ref = useRef(null);
9
-
10
- useEffect(() => {
11
- const handleOutSideClick = (event: MouseEvent) => {
12
- if (ref.current && !(ref.current as any).contains(event.target)) {
13
- props.onClickAway && props.onClickAway(event as any);
14
- }
15
- };
16
-
17
- document.addEventListener("click", handleOutSideClick, true);
18
-
19
- // CleanUp When element unmount
20
- return () =>
21
- document.removeEventListener("click", handleOutSideClick, true);
22
- }, [props.onClickAway]);
23
-
24
- return <div ref={ref}>{props.children}</div>;
25
- }
26
-
27
- export default ClickAwayListener;
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- declare type ScreenSize = "xs" | "sm" | "md" | "lg" | "xl";
3
- interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
4
- maxWidth?: ScreenSize;
5
- }
6
- declare function Container(props: ContainerProps): JSX.Element;
7
- export default Container;
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { joinClassNames } from "@yakad/lib";
3
- import styles from "./container.module.css";
4
- function Container(props) {
5
- const joinedClassNames = joinClassNames(props.maxWidth ? styles[props.maxWidth] : "", styles.container, props.className);
6
- return (React.createElement("div", { ...props, className: joinedClassNames }, props.children));
7
- }
8
- export default Container;
9
- //# sourceMappingURL=container.js.map
@@ -1 +0,0 @@
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;AAQ5C,SAAS,SAAS,CAAC,KAAqB;IACtC,MAAM,gBAAgB,GAAG,cAAc,CACrC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,EAC5C,MAAM,CAAC,SAAS,EAChB,KAAK,CAAC,SAAU,CACjB,CAAC;IAEF,OAAO,CACL,gCAAS,KAAK,EAAE,SAAS,EAAE,gBAAgB,IACxC,KAAK,CAAC,QAAQ,CACX,CACP,CAAC;AACJ,CAAC;AAED,eAAe,SAAS,CAAC"}
@@ -1,23 +0,0 @@
1
- div.container {
2
- display: flex;
3
- flex-direction: inherit;
4
- width: 100%;
5
- margin: auto;
6
- box-sizing: border-box;
7
- }
8
-
9
- div.container.xs {
10
- max-width: 44.4rem;
11
- }
12
- div.container.sm {
13
- max-width: 60rem;
14
- }
15
- div.container.md {
16
- max-width: 90rem;
17
- }
18
- div.container.lg {
19
- max-width: 120rem;
20
- }
21
- div.container.xl {
22
- max-width: 150rem;
23
- }
@@ -1,25 +0,0 @@
1
- import React from "react";
2
- import { joinClassNames, joinStyles } from "@yakad/lib";
3
- import styles from "./container.module.css";
4
-
5
- type ScreenSize = "xs" | "sm" | "md" | "lg" | "xl";
6
-
7
- interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
8
- maxWidth?: ScreenSize;
9
- }
10
-
11
- function Container(props: ContainerProps) {
12
- const joinedClassNames = joinClassNames(
13
- props.maxWidth ? styles[props.maxWidth] : "",
14
- styles.container,
15
- props.className!
16
- );
17
-
18
- return (
19
- <div {...props} className={joinedClassNames}>
20
- {props.children}
21
- </div>
22
- );
23
- }
24
-
25
- export default Container;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare function Footer(props: React.HTMLAttributes<HTMLElement>): JSX.Element;
3
- export default Footer;
package/footer/footer.js DELETED
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { joinClassNames } from "@yakad/lib";
3
- import styles from "./footer.module.css";
4
- function Footer(props) {
5
- const joinedClassNames = joinClassNames(styles.footer, props.className);
6
- return (React.createElement("footer", { ...props, className: joinedClassNames }, props.children));
7
- }
8
- export default Footer;
9
- //# sourceMappingURL=footer.js.map
@@ -1 +0,0 @@
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,SAAS,MAAM,CAAC,KAAwC;IACtD,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,SAAU,CAAC,CAAC;IAEzE,OAAO,CACL,mCAAY,KAAK,EAAE,SAAS,EAAE,gBAAgB,IAC3C,KAAK,CAAC,QAAQ,CACR,CACV,CAAC;AACJ,CAAC;AAED,eAAe,MAAM,CAAC"}
@@ -1,6 +0,0 @@
1
- .footer {
2
- display: flex;
3
- flex-direction: row;
4
- width: 100%;
5
- box-sizing: border-box;
6
- }
package/footer/footer.tsx DELETED
@@ -1,15 +0,0 @@
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/form/form.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare function Form(props: React.HTMLAttributes<HTMLFormElement>): JSX.Element;
3
- export default Form;
package/form/form.js DELETED
@@ -1,12 +0,0 @@
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
package/form/form.js.map DELETED
@@ -1 +0,0 @@
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 +0,0 @@
1
- .form {
2
- display: flex;
3
- flex-direction: column;
4
- gap: 1.5rem;
5
- width: 100%;
6
- }
package/form/form.tsx DELETED
@@ -1,23 +0,0 @@
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;
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- interface GridContainerProps extends React.HTMLAttributes<HTMLDivElement> {
3
- rowGap?: number;
4
- columnGap?: number;
5
- }
6
- declare function GridContainer(props: GridContainerProps): JSX.Element;
7
- export default GridContainer;
@@ -1,11 +0,0 @@
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({ 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
@@ -1 +0,0 @@
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;AAOhD,wBAAwB;AACxB,SAAS,aAAa,CAAC,KAAyB;IAC5C,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;AAED,eAAe,aAAa,CAAC"}
@@ -1,5 +0,0 @@
1
- .gridcontainer {
2
- display: grid;
3
- box-sizing: border-box;
4
- grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
5
- }
@@ -1,28 +0,0 @@
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
- rowGap?: number;
7
- columnGap?: number;
8
- }
9
-
10
- // Custom Button Element
11
- function GridContainer(props: GridContainerProps) {
12
- const joinedClassNames = joinClassNames(
13
- styles.gridcontainer,
14
- props.className!
15
- );
16
- const joinedStyles = joinStyles(
17
- { columnGap: props.columnGap ? props.columnGap + "rem" : "1.5rem" },
18
- { rowGap: props.rowGap ? props.rowGap + "rem" : "1.5rem" },
19
- props.style!
20
- );
21
- return (
22
- <div {...props} className={joinedClassNames} style={joinedStyles}>
23
- {props.children}
24
- </div>
25
- );
26
- }
27
-
28
- export default GridContainer;
@@ -1,10 +0,0 @@
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;
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import { joinClassNames } from "@yakad/lib";
3
- import styles from "./gridItem.module.css";
4
- // Custom Button Element
5
- function GridItem(props) {
6
- const joinedClassNames = joinClassNames(props.xl ? styles["xl" + props.xl] : "", props.lg ? styles["lg" + props.lg] : "", props.md ? styles["md" + props.md] : "", props.md ? styles["sm" + props.md] : "", props.md ? styles["xs" + props.md] : "", props.className);
7
- return (React.createElement("div", { ...props, className: joinedClassNames }, props.children));
8
- }
9
- export default GridItem;
10
- //# sourceMappingURL=gridItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gridItem.js","sourceRoot":"","sources":["gridItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAc,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAU3C,wBAAwB;AACxB,SAAS,QAAQ,CAAC,KAAoB;IAClC,MAAM,gBAAgB,GAAG,cAAc,CACnC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EACvC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EACvC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EACvC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EACvC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EACvC,KAAK,CAAC,SAAU,CACnB,CAAC;IAEF,OAAO,CACH,gCAAS,KAAK,EAAE,SAAS,EAAE,gBAAgB,IACtC,KAAK,CAAC,QAAQ,CACb,CACT,CAAC;AACN,CAAC;AAED,eAAe,QAAQ,CAAC"}