@yakad/ui 1.0.7 → 1.0.8

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/package.json CHANGED
@@ -1,32 +1,32 @@
1
1
  {
2
- "name": "@yakad/ui",
3
- "version": "1.0.7",
4
- "description": "",
5
- "main": "./src/index.js",
6
- "scripts": {
7
- "build": "tsc",
8
- "test": "echo hector test: not impl"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/NatiqQuran/yakad.git"
13
- },
14
- "author": "Natiq",
15
- "license": "GPL-3.0",
16
- "bugs": {
17
- "url": "https://github.com/NatiqQuran/yakad/issues"
18
- },
19
- "homepage": "https://github.com/NatiqQuran/yakad#readme",
20
- "dependencies": {
21
- "@types/react": "^18.0.24",
22
- "@types/react-dom": "^18.0.6",
23
- "@yakad/lib": "^1.0.1",
24
- "react": "^18.2.0",
25
- "react-dom": "^18.2.0",
26
- "react-router-dom": "^6.4.2",
27
- "typescript": "^4.8.4"
28
- },
29
- "devDependencies": {
30
- "typescript-plugin-css-modules": "^3.4.0"
31
- }
2
+ "name": "@yakad/ui",
3
+ "version": "1.0.8",
4
+ "description": "",
5
+ "main": "./src/index.js",
6
+ "scripts": {
7
+ "build": "tsc",
8
+ "test": "echo hector test: not impl"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/NatiqQuran/yakad.git"
13
+ },
14
+ "author": "Natiq",
15
+ "license": "GPL-3.0",
16
+ "bugs": {
17
+ "url": "https://github.com/NatiqQuran/yakad/issues"
18
+ },
19
+ "homepage": "https://github.com/NatiqQuran/yakad#readme",
20
+ "dependencies": {
21
+ "@types/react": "^18.0.24",
22
+ "@types/react-dom": "^18.0.6",
23
+ "@yakad/lib": "^1.0.1",
24
+ "react": "^18.2.0",
25
+ "react-dom": "^18.2.0",
26
+ "react-router-dom": "^6.4.2",
27
+ "typescript": "^4.8.4"
28
+ },
29
+ "devDependencies": {
30
+ "typescript-plugin-css-modules": "^3.4.0"
31
+ }
32
32
  }
@@ -1,4 +1,5 @@
1
1
  .gridcontainer {
2
- display: grid;
3
- box-sizing: border-box;
2
+ display: grid;
3
+ box-sizing: border-box;
4
+ grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
4
5
  }
@@ -3,11 +3,6 @@ import { joinClassNames, joinStyles } from "@yakad/lib";
3
3
  import styles from "./gridContainer.module.css";
4
4
 
5
5
  interface GridContainerProps extends React.HTMLAttributes<HTMLDivElement> {
6
- xs?: number;
7
- sm?: number;
8
- md?: number;
9
- lg?: number;
10
- xl?: number;
11
6
  rowGap?: number;
12
7
  columnGap?: number;
13
8
  }
@@ -19,7 +14,6 @@ function GridContainer(props: GridContainerProps) {
19
14
  props.className!
20
15
  );
21
16
  const joinedStyles = joinStyles(
22
- props.xl ? { gridTemplateColumns: " 1fr".repeat(props.xl) } : {},
23
17
  { columnGap: props.columnGap ? props.columnGap + "rem" : "1.5rem" },
24
18
  { rowGap: props.rowGap ? props.rowGap + "rem" : "1.5rem" },
25
19
  props.style!
@@ -3,24 +3,24 @@ import { joinClassNames, joinStyles } from "@yakad/lib";
3
3
  import styles from "./svgIcon.module.css";
4
4
 
5
5
  interface SvgIconProps extends React.HTMLAttributes<HTMLElement> {
6
- size?: number;
6
+ size?: number;
7
7
  }
8
8
 
9
9
  function SvgIcon(props: SvgIconProps) {
10
- const joinedClassNames = joinClassNames(styles.svg, props.className!);
10
+ const joinedClassNames = joinClassNames(styles.svg, props.className!);
11
11
 
12
- const joinedStyles = joinStyles(
13
- props.size
14
- ? { width: props.size + "rem", height: props.size + "rem" }
15
- : { width: "2.4rem", height: "2.4rem" },
16
- props.style!
17
- );
12
+ const joinedStyles = joinStyles(
13
+ props.size
14
+ ? { width: props.size + "rem", height: props.size + "rem" }
15
+ : {},
16
+ props.style!
17
+ );
18
18
 
19
- return (
20
- <div {...props} className={joinedClassNames} style={joinedStyles}>
21
- {props.children}
22
- </div>
23
- );
19
+ return (
20
+ <div {...props} className={joinedClassNames} style={joinedStyles}>
21
+ {props.children}
22
+ </div>
23
+ );
24
24
  }
25
25
 
26
26
  export default SvgIcon;