oneslash-design-system 1.1.12 → 1.1.13

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.
@@ -3,6 +3,7 @@ import React, { useState, useEffect, useCallback } from 'react';
3
3
  import * as HeroIcons from '@heroicons/react/24/outline';
4
4
 
5
5
  interface TagProps{
6
+ key?: any;
6
7
  variant: "contained" | "textOnly";
7
8
  size: "medium" | "small";
8
9
  state?: "enabled" | "selected" ;
@@ -16,6 +17,7 @@ interface TagProps{
16
17
  type IconType = React.ComponentType<React.SVGProps<SVGSVGElement>>;
17
18
 
18
19
  export default function Tag({
20
+ key,
19
21
  variant,
20
22
  size,
21
23
  state,
package/designTokens.js CHANGED
@@ -46,10 +46,10 @@ module.exports = {
46
46
  light: '#67C16B',
47
47
  },
48
48
  background:{
49
- default: '#FFFFFF',
50
- accent100:'#F6F6F6',
51
- accent200:'#E7E7E7',
52
- accent300:'#D1D1D1',
49
+ default: '#F2F2F2',
50
+ accent100:'#F5F5F5',
51
+ accent200:'#FAFAFA',
52
+ accent300:'#FFFFFF',
53
53
  },
54
54
  action:{
55
55
  active: '#888888',
@@ -2,11 +2,9 @@ import React from 'react';
2
2
  interface MenuItemProps {
3
3
  href?: string;
4
4
  iconName?: string;
5
- userHandle?: string;
6
- userImgUrl?: string;
7
5
  label: string;
8
6
  isSelected?: boolean;
9
- onClick?: any;
7
+ onClick: any;
10
8
  }
11
- export default function MenuItem({ href, iconName, userHandle, userImgUrl, label, isSelected, onClick, }: MenuItemProps): React.JSX.Element;
9
+ export default function MenuItem({ href, iconName, label, isSelected, onClick, }: MenuItemProps): React.JSX.Element;
12
10
  export {};
@@ -37,11 +37,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  import React, { useState, useEffect, useCallback } from 'react';
39
39
  import NextLink from 'next/link';
40
- import UserImage from './userImage';
41
40
  export default function MenuItem(_a) {
42
41
  var _this = this;
43
- var _b = _a.href, href = _b === void 0 ? '#' : _b, iconName = _a.iconName, userHandle = _a.userHandle, userImgUrl = _a.userImgUrl, label = _a.label, isSelected = _a.isSelected, onClick = _a.onClick;
44
- var _c = useState(null), IconLeft = _c[0], setIconLeft = _c[1];
42
+ var _b = _a.href, href = _b === void 0 ? '#' : _b, iconName = _a.iconName, label = _a.label, isSelected = _a.isSelected, onClick = _a.onClick;
43
+ var _c = useState(null), Icon = _c[0], setIcon = _c[1];
45
44
  // Import icon dynamically
46
45
  var loadIcon = useCallback(function (iconName) { return __awaiter(_this, void 0, void 0, function () {
47
46
  var module_1, IconComponent, error_1;
@@ -73,7 +72,7 @@ export default function MenuItem(_a) {
73
72
  switch (_b.label) {
74
73
  case 0:
75
74
  if (!iconName) return [3 /*break*/, 2];
76
- _a = setIconLeft;
75
+ _a = setIcon;
77
76
  return [4 /*yield*/, loadIcon(iconName)];
78
77
  case 1:
79
78
  _a.apply(void 0, [_b.sent()]);
@@ -100,8 +100,8 @@ export default function Tab(_a) {
100
100
  }
101
101
  };
102
102
  return (<div className={"\n flex items-center space-x-1 p-1 rounded-[8px] cursor-pointer justify-start \n ".concat(isSelected
103
- ? 'bg-light-primary-main dark:bg-dark-primary-main text-light-text-contrast dark:text-dark-text-contrast'
104
- : 'bg-light-action-selected dark:bg-dark-action-selected hover:bg-light-background-default dark:hover:bg-dark-action-hover', "\n ")} onClick={handleClick}>
103
+ ? 'bg-light-primary-dark dark:bg-dark-primary-dark text-light-text-contrast dark:text-dark-text-contrast'
104
+ : 'bg-transparent dark:bg-transparent hover:bg-light-background-accent200 dark:hover:bg-dark-background-accent200', "\n ")} onClick={handleClick}>
105
105
  {IconLeft && <IconLeft className="w-5 h-5"/>}
106
106
  <span className="whitespace-nowrap text-body1 px-2">
107
107
  {label}
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import * as HeroIcons from '@heroicons/react/24/outline';
3
3
  interface TagProps {
4
+ key?: any;
4
5
  variant: "contained" | "textOnly";
5
6
  size: "medium" | "small";
6
7
  state?: "enabled" | "selected";
@@ -10,5 +11,5 @@ interface TagProps {
10
11
  onClick?: any;
11
12
  color?: 'default' | 'info';
12
13
  }
13
- export default function Tag({ variant, size, state, label, iconName, isDeletable, onClick, color, }: TagProps): React.JSX.Element;
14
+ export default function Tag({ key, variant, size, state, label, iconName, isDeletable, onClick, color, }: TagProps): React.JSX.Element;
14
15
  export {};
@@ -38,7 +38,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
38
38
  import React, { useState, useEffect, useCallback } from 'react';
39
39
  export default function Tag(_a) {
40
40
  var _this = this;
41
- var variant = _a.variant, size = _a.size, state = _a.state, label = _a.label, iconName = _a.iconName, isDeletable = _a.isDeletable, onClick = _a.onClick, _b = _a.color, color = _b === void 0 ? 'default' : _b;
41
+ var key = _a.key, variant = _a.variant, size = _a.size, state = _a.state, label = _a.label, iconName = _a.iconName, isDeletable = _a.isDeletable, onClick = _a.onClick, _b = _a.color, color = _b === void 0 ? 'default' : _b;
42
42
  var _c = useState(false), isHovered = _c[0], setIsHovered = _c[1];
43
43
  var _d = useState(null), Icon = _d[0], setIcon = _d[1];
44
44
  var _e = useState(null), DeleteIcon = _e[0], setDeleteIcon = _e[1];
@@ -47,10 +47,10 @@ module.exports = {
47
47
  light: '#67C16B',
48
48
  },
49
49
  background: {
50
- default: '#FFFFFF',
51
- accent100: '#F6F6F6',
52
- accent200: '#E7E7E7',
53
- accent300: '#D1D1D1',
50
+ default: '#F2F2F2',
51
+ accent100: '#F5F5F5',
52
+ accent200: '#FAFAFA',
53
+ accent300: '#FFFFFF',
54
54
  },
55
55
  action: {
56
56
  active: '#888888',
package/dist/output.css CHANGED
@@ -765,15 +765,15 @@ video {
765
765
  }
766
766
  .bg-light-background-accent100 {
767
767
  --tw-bg-opacity: 1;
768
- background-color: rgb(246 246 246 / var(--tw-bg-opacity));
768
+ background-color: rgb(245 245 245 / var(--tw-bg-opacity));
769
769
  }
770
770
  .bg-light-background-accent200 {
771
771
  --tw-bg-opacity: 1;
772
- background-color: rgb(231 231 231 / var(--tw-bg-opacity));
772
+ background-color: rgb(250 250 250 / var(--tw-bg-opacity));
773
773
  }
774
774
  .bg-light-background-default {
775
775
  --tw-bg-opacity: 1;
776
- background-color: rgb(255 255 255 / var(--tw-bg-opacity));
776
+ background-color: rgb(242 242 242 / var(--tw-bg-opacity));
777
777
  }
778
778
  .bg-light-error-main {
779
779
  --tw-bg-opacity: 1;
@@ -935,7 +935,7 @@ video {
935
935
  --tw-ring-offset-width: 4px;
936
936
  }
937
937
  .ring-offset-light-background-default {
938
- --tw-ring-offset-color: #FFFFFF;
938
+ --tw-ring-offset-color: #F2F2F2;
939
939
  }
940
940
  .blur {
941
941
  --tw-blur: blur(8px);
@@ -985,17 +985,17 @@ body {
985
985
 
986
986
  .hover\:bg-light-background-accent100:hover {
987
987
  --tw-bg-opacity: 1;
988
- background-color: rgb(246 246 246 / var(--tw-bg-opacity));
988
+ background-color: rgb(245 245 245 / var(--tw-bg-opacity));
989
989
  }
990
990
 
991
991
  .hover\:bg-light-background-accent300:hover {
992
992
  --tw-bg-opacity: 1;
993
- background-color: rgb(209 209 209 / var(--tw-bg-opacity));
993
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
994
994
  }
995
995
 
996
996
  .hover\:bg-light-background-default:hover {
997
997
  --tw-bg-opacity: 1;
998
- background-color: rgb(255 255 255 / var(--tw-bg-opacity));
998
+ background-color: rgb(242 242 242 / var(--tw-bg-opacity));
999
999
  }
1000
1000
 
1001
1001
  .hover\:bg-light-primary-dark:hover {
@@ -1091,7 +1091,7 @@ body {
1091
1091
 
1092
1092
  .dark\:bg-light-background-accent300 {
1093
1093
  --tw-bg-opacity: 1;
1094
- background-color: rgb(209 209 209 / var(--tw-bg-opacity));
1094
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
1095
1095
  }
1096
1096
 
1097
1097
  .dark\:text-dark-info-main {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oneslash-design-system",
3
3
  "description": "A design system for the Oneslash projects",
4
- "version": "1.1.12",
4
+ "version": "1.1.13",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",