@campxdev/react-blueprint 0.1.44 → 0.1.47

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/react-blueprint",
3
- "version": "0.1.44",
3
+ "version": "0.1.47",
4
4
  "main": "./export.ts",
5
5
  "private": false,
6
6
  "dependencies": {
@@ -5,19 +5,16 @@ export const XIcon = ({ size = 16 }) => {
5
5
  const color = theme.palette.text.primary;
6
6
  return (
7
7
  <svg
8
+ xmlns="http://www.w3.org/2000/svg"
8
9
  width={size}
9
10
  height={size}
10
- viewBox="0 0 689.881 714.902"
11
- style={{
12
- stroke: color,
13
- }}
11
+ viewBox="0 0 173.699 180"
14
12
  >
15
13
  <path
16
- id="Subtraction_130"
17
- data-name="Subtraction 130"
18
- d="M-3274.271-9547.1h-168.235l-99.271-136.635,86.525-119.091,184.132,253.437-3.152,2.289Zm-515.342,0h-168.234l-3.152-2.289,258.416-355.679L-3961-10260.741l1.733-1.259h170.4l172.806,237.845.035-.048,86.524,119.09-.035.049.12.164-86.525,119.091-.118-.162L-3789.613-9547.1h0Zm333.661-459.245h0l-86.525-119.091,99.222-136.567h170.4l1.733,1.259-184.833,254.4Z"
14
+ id="Subtraction_139"
15
+ data-name="Subtraction 139"
16
+ d="M-3788.094-10082h-42.358l-24.995-34.4,21.786-29.984,46.361,63.811-.794.576Zm-129.754,0h-42.359l-.793-.576,65.064-89.554-65.064-89.553.436-.317h42.9l43.509,59.885.009-.012,21.785,29.984-.009.013.03.041-21.786,29.985-.03-.041-43.7,60.145h0Zm84.01-115.63h0l-21.785-29.985,24.982-34.385h42.9l.436.317-46.538,64.053Z"
19
17
  transform="translate(3961 10262)"
20
- fill="#1e1ef5"
21
18
  />
22
19
  </svg>
23
20
  );
@@ -55,7 +55,7 @@ export const Sidebar = ({
55
55
  <StyledLinkButton to={path} onClick={() => {}}>
56
56
  <StyledListItemButton collapsed={collapsed}>
57
57
  <StyledListItemIcon collapsed={collapsed}>
58
- {Icon ? <Icon /> : <Icons.HomeIcon />}
58
+ {Icon ? Icon : <Icons.HomeIcon />}
59
59
  </StyledListItemIcon>
60
60
  {!collapsed && <Typography variant="subtitle3">{name}</Typography>}
61
61
  </StyledListItemButton>
@@ -35,7 +35,7 @@ export const Primary: Story = {
35
35
  render: (args) => <Sidebar {...args} />,
36
36
  args: {
37
37
  menu: [
38
- { name: "Home", path: "/home", icon: Icons.DashBoardIcon },
38
+ { name: "Home", path: "/home", icon: <Icons.DashBoardIcon size={24} /> },
39
39
  { name: "Self Service Portal", path: "/item2" },
40
40
  ],
41
41
  },