pixel-react 1.1.6 → 1.1.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.
Files changed (84) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/lib/components/AttachmentButton/AttachmentButton.d.ts +5 -0
  3. package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +9 -0
  4. package/lib/components/AttachmentButton/index.d.ts +1 -0
  5. package/lib/components/AttachmentButton/types.d.ts +8 -0
  6. package/lib/components/IconButton/IconButton.stories.d.ts +1 -0
  7. package/lib/components/Input/Input.d.ts +1 -1
  8. package/lib/components/Input/types.d.ts +4 -0
  9. package/lib/components/MiniModal/MiniModal.stories.d.ts +1 -1
  10. package/lib/components/MiniModal/types.d.ts +12 -0
  11. package/lib/components/RadioButton/radioButtonTypes.d.ts +15 -0
  12. package/lib/components/RadioGroup/RadioGroup.stories.d.ts +2 -1
  13. package/lib/components/RadioGroup/radioGroupTypes.d.ts +15 -0
  14. package/lib/components/Select/Select.d.ts +1 -1
  15. package/lib/components/Select/types.d.ts +4 -0
  16. package/lib/components/Table/Table.d.ts +1 -1
  17. package/lib/components/Table/Types.d.ts +8 -0
  18. package/lib/components/TableTree/TableTree.d.ts +1 -0
  19. package/lib/index.d.ts +32 -4
  20. package/lib/index.esm.js +360 -148
  21. package/lib/index.esm.js.map +1 -1
  22. package/lib/index.js +360 -147
  23. package/lib/index.js.map +1 -1
  24. package/lib/tsconfig.tsbuildinfo +1 -1
  25. package/package.json +1 -1
  26. package/src/assets/Themes/BaseTheme.scss +18 -1
  27. package/src/assets/Themes/DarkTheme.scss +16 -0
  28. package/src/assets/icons/add_file.svg +14 -0
  29. package/src/assets/icons/app_switch.svg +11 -0
  30. package/src/assets/icons/backward_icon.svg +3 -0
  31. package/src/assets/icons/cloud_server_host_icon.svg +3 -0
  32. package/src/assets/icons/continue_without_sign.svg +3 -0
  33. package/src/assets/icons/forward_icon.svg +3 -0
  34. package/src/assets/icons/hamburger_menu.svg +3 -0
  35. package/src/assets/icons/nlp_help_icon.svg +3 -0
  36. package/src/assets/icons/notification_icon.svg +3 -0
  37. package/src/assets/icons/plus_user_icon.svg +3 -0
  38. package/src/assets/icons/reload.svg +3 -0
  39. package/src/assets/icons/toast_close.svg +2 -2
  40. package/src/assets/icons/update_icon.svg +3 -0
  41. package/src/assets/icons/user_profile.svg +3 -0
  42. package/src/assets/icons/window_maximize.svg +4 -0
  43. package/src/assets/icons/window_minimize.svg +3 -0
  44. package/src/components/AppHeader/AppHeader.scss +58 -1
  45. package/src/components/AttachmentButton/AttachmentButton.scss +9 -0
  46. package/src/components/AttachmentButton/AttachmentButton.stories.tsx +76 -0
  47. package/src/components/AttachmentButton/AttachmentButton.tsx +113 -0
  48. package/src/components/AttachmentButton/index.ts +1 -0
  49. package/src/components/AttachmentButton/types.ts +8 -0
  50. package/src/components/Chip/Chip.scss +14 -13
  51. package/src/components/Drawer/Drawer.scss +0 -1
  52. package/src/components/Icon/Icon.stories.tsx +1 -1
  53. package/src/components/Icon/Icons.scss +1 -1
  54. package/src/components/Icon/iconList.ts +32 -0
  55. package/src/components/IconButton/IconButton.scss +23 -12
  56. package/src/components/IconButton/IconButton.stories.tsx +9 -1
  57. package/src/components/IconButton/IconButton.tsx +5 -3
  58. package/src/components/Input/Input.scss +6 -1
  59. package/src/components/Input/Input.tsx +8 -4
  60. package/src/components/Input/types.ts +4 -0
  61. package/src/components/MiniModal/MiniModal.scss +39 -8
  62. package/src/components/MiniModal/MiniModal.stories.tsx +199 -75
  63. package/src/components/MiniModal/MiniModal.tsx +46 -2
  64. package/src/components/MiniModal/types.ts +13 -0
  65. package/src/components/Modal/modal.scss +1 -1
  66. package/src/components/MultiSelect/MultiSelect.scss +2 -2
  67. package/src/components/RadioButton/RadioButton.scss +74 -68
  68. package/src/components/RadioButton/RadioButton.tsx +22 -15
  69. package/src/components/RadioButton/radioButtonTypes.tsx +18 -0
  70. package/src/components/RadioGroup/RadioGroup.stories.tsx +42 -1
  71. package/src/components/RadioGroup/RadioGroup.tsx +3 -0
  72. package/src/components/RadioGroup/radioGroupTypes.tsx +18 -0
  73. package/src/components/Select/Select.scss +1 -2
  74. package/src/components/Select/Select.tsx +3 -2
  75. package/src/components/Select/types.ts +5 -0
  76. package/src/components/SequentialConnectingBranch/components/Branches/Branches.scss +5 -5
  77. package/src/components/SequentialConnectingBranch/components/Branches/Branches.tsx +1 -1
  78. package/src/components/Table/Table.scss +1 -0
  79. package/src/components/Table/Table.tsx +28 -13
  80. package/src/components/Table/Types.ts +8 -0
  81. package/src/components/TableTree/TableTree.scss +18 -2
  82. package/src/components/TableTree/TableTree.stories.tsx +9 -51
  83. package/src/components/TableTree/TableTree.tsx +15 -2
  84. package/src/index.ts +2 -0
@@ -1,9 +1,8 @@
1
- @use '../../assets/styles/colors' as *;
2
1
  @use '../../assets/styles/fonts' as *;
3
2
 
4
3
  @mixin chip-variant-background($color) {
5
4
  background-color: $color;
6
- color: $drawer-footer-bg;
5
+ color: var(--ff-chip-bg);
7
6
  }
8
7
 
9
8
  .ff-chip-wrapper {
@@ -24,32 +23,34 @@
24
23
  line-height: 15px;
25
24
  border: none;
26
25
  transition: transform 0.5s ease, box-shadow 0.5s ease, padding 1s ease;
27
- box-shadow: 1px 1px 3px 0px $ff-chips-blur-color inset,
28
- -1px -1px 2px 0px $drawer-footer-bg inset,
29
- 1px -1px 2px 0px $ff-chips-blur-color inset,
30
- -1px -1px 2px 0px $ff-chips-blur-color, 1px 1px 2px 0px $drawer-footer-bg;
26
+ box-shadow: 1px 1px 6px 0px var(--ff-chips-blur-color) inset,
27
+ -1px -1px 2px 0px var(--ff-chip-bg) inset,
28
+ 1px -1px 2px 0px var(--ff-chips-blur-color) inset,
29
+ 1px 1px 2px 0px var(--ff-chip-bg);
31
30
  &--fullText:hover {
32
- box-shadow: 1px 1px 6px 0px $ff-chips-blur-color inset,
33
- -1px -1px 4px 0px $drawer-footer-bg inset;
31
+ box-shadow: 1px 1px 6px 0px var(--ff-chips-blur-color) inset,
32
+ -1px -1px 2px 0px var(--ff-chip-bg) inset,
33
+ 1px -1px 2px 0px var(--ff-chips-blur-color) inset,
34
+ 1px 1px 2px 0px var(--ff-chip-bg);
34
35
  padding-right: 12px;
35
36
  }
36
37
  @extend .fontXs;
37
38
 
38
39
  &--primary {
39
- @include chip-variant-background($ff-chips-fill-color);
40
- color: $text-color;
40
+ @include chip-variant-background(var(--ff-chips-fill-color));
41
+ color: var(--ff-chip-text-color);
41
42
  }
42
43
 
43
44
  &--success {
44
- @include chip-variant-background($ff-success);
45
+ @include chip-variant-background(var(--ff-success));
45
46
  }
46
47
 
47
48
  &--error {
48
- @include chip-variant-background($ff-error-light);
49
+ @include chip-variant-background(var(--ff-error-light));
49
50
  }
50
51
 
51
52
  &--warning {
52
- @include chip-variant-background($ff-warning);
53
+ @include chip-variant-background(var(--ff-warning));
53
54
  }
54
55
  &--custom {
55
56
  @extend .fontSm;
@@ -11,7 +11,6 @@
11
11
  .ff-drawer {
12
12
  position: fixed;
13
13
  right: 0;
14
- top: 80px;
15
14
  bottom: 0;
16
15
  min-width: 450px;
17
16
  background-color: var(--primary-button-text-color);
@@ -12,7 +12,7 @@ type Story = StoryObj<typeof Icon>;
12
12
 
13
13
  export const Icons: Story = {
14
14
  args: {
15
- name: 'delete_black',
15
+ name: 'more',
16
16
  color: '',
17
17
  },
18
18
  };
@@ -7,7 +7,7 @@
7
7
 
8
8
  .ff-icon-click {
9
9
  cursor: pointer;
10
- padding: 5px;
10
+ padding: 4px;
11
11
  box-sizing: content-box;
12
12
  &:hover {
13
13
  border-radius: 50%;
@@ -71,12 +71,29 @@ import MSDynamicIcon from '../../assets/icons/ms_dynamic.svg?react';
71
71
  import AllProjectsIcon from '../../assets/icons/all_projects.svg?react';
72
72
  import AndroidIcon from '../../assets/icons/android_icon.svg?react';
73
73
  import AddLocator from '../../assets/icons/add_locator.svg?react';
74
+ import PlusUserIcon from '../../assets/icons/plus_user_icon.svg?react';
75
+
74
76
  import SwitchLicenseIcon from '../../assets/icons/switch_license_icon.svg?react';
75
77
  import FireflinkLogo from '../../assets/icons/fireflink_logo.svg?react';
76
78
  import WSWBDeleteIcon from '../../assets/icons/wswb_delete_icon.svg?react';
77
79
  import WSWBPlusIcon from '../../assets/icons/wswb_plus_icon.svg?react';
78
80
  import LabelPlusIcon from '../../assets/icons/label_plus.svg?react';
79
81
  import Drag from '../../assets/icons/drag_icon.svg?react';
82
+ import BackwardIcon from '../../assets/icons/backward_icon.svg?react';
83
+ import ForwardIcon from '../../assets/icons/forward_icon.svg?react';
84
+ import Reload from '../../assets/icons/reload.svg?react';
85
+ import WindowMaximize from '../../assets/icons/window_maximize.svg?react';
86
+ import WindowMinimize from '../../assets/icons/window_minimize.svg?react';
87
+ import HamburgerMenu from '../../assets/icons/hamburger_menu.svg?react';
88
+ import AppSwitchIcon from '../../assets/icons/app_switch.svg?react';
89
+ import UserProfile from '../../assets/icons/user_profile.svg?react';
90
+ import ContinueSignIn from '../../assets/icons/continue_without_sign.svg?react';
91
+ import CloudServerHost from '../../assets/icons/cloud_server_host_icon.svg?react';
92
+ import NotificationIcon from '../../assets/icons/notification_icon.svg?react';
93
+ import NLPHelpIcon from '../../assets/icons/nlp_help_icon.svg?react';
94
+ import UpdateIcon from '../../assets/icons/update_icon.svg?react';
95
+ import AddFile from '../../assets/icons/add_file.svg?react';
96
+
80
97
 
81
98
  //icons
82
99
  Components['delete_info'] = DeleteInfoIcon;
@@ -140,6 +157,7 @@ Components['sales_force'] = SalesForceIcon;
140
157
  Components['ms_dynamic'] = MSDynamicIcon;
141
158
  Components['all_projects'] = AllProjectsIcon;
142
159
  Components['android_icon'] = AndroidIcon;
160
+ Components['plus_user_icon'] = PlusUserIcon;
143
161
  Components['label_plus'] = LabelPlusIcon;
144
162
  Components['manual_locator'] = ManualLocator;
145
163
  Components['select_license'] = SwitchLicenseIcon;
@@ -155,5 +173,19 @@ Components['android_icon'] = Android;
155
173
  Components['chrome_icon'] = Chrome;
156
174
  Components['browser_stack_icon'] = BrowserStack;
157
175
  Components['run_icon'] = Run;
176
+ Components['backward_icon'] = BackwardIcon;
177
+ Components['forward_icon'] = ForwardIcon;
178
+ Components['reload'] = Reload;
179
+ Components['window_maximize'] = WindowMaximize;
180
+ Components['window_minimize'] = WindowMinimize;
181
+ Components['hamburger_menu'] = HamburgerMenu;
182
+ Components['app_switch'] = AppSwitchIcon;
183
+ Components['user_profile'] = UserProfile;
184
+ Components['continue_without_signin'] = ContinueSignIn;
185
+ Components['cloud_server_host'] = CloudServerHost;
186
+ Components['notification_icon'] = NotificationIcon;
187
+ Components['nlp_help_icon'] = NLPHelpIcon;
188
+ Components['update_icon'] = UpdateIcon;
189
+ Components['add_file'] = AddFile;
158
190
 
159
191
  export default Components;
@@ -2,9 +2,7 @@
2
2
  @use '../../assets/styles/mixins';
3
3
 
4
4
  .ff-plus-icon {
5
- min-width: 71px;
6
- min-height: 24px;
7
- border-radius: 12px;
5
+ border-radius: 16px;
8
6
  border-style: none;
9
7
  text-align: center;
10
8
  text-decoration: none;
@@ -14,13 +12,20 @@
14
12
  background-color: var(--secondary-icon-color);
15
13
  padding: 2px 8px 2px 2px;
16
14
  border: 1px solid transparent;
17
- .ff-icon-color {
18
- path {
19
- color: var(--primary-icon-color);
15
+ .button-icon {
16
+ width: 20px;
17
+ height: 20px;
18
+ border: 1px solid transparent;
19
+ border-radius: 50%;
20
+ @include mixins.center-content();
21
+ background-color: var(--hover-color);
22
+ .ff-icon-color {
23
+ path {
24
+ color: var(--secondary-icon-color);
25
+ }
20
26
  }
21
27
  }
22
28
  .icon-name {
23
- min-width: 33px;
24
29
  color: var(--primary-icon-color);
25
30
  @include mixins.center-content();
26
31
  }
@@ -28,15 +33,21 @@
28
33
  border: 1px solid var(--secondary-icon-color);
29
34
  background-color: var(--hover-color);
30
35
  .icon-name {
31
- min-width: 33px;
32
- min-height: 20px;
33
36
  font-weight: 600;
34
37
  color: var(--secondary-icon-color);
35
38
  @include mixins.center-content();
36
39
  }
37
- .ff-icon-color {
38
- path {
39
- color: var(--secondary-icon-color);
40
+ .button-icon {
41
+ width: 20px;
42
+ height: 20px;
43
+ border: 1px solid transparent;
44
+ border-radius: 50%;
45
+ @include mixins.center-content();
46
+ background-color: var(--secondary-icon-color);
47
+ .ff-icon-color {
48
+ path {
49
+ color: var(--primary-icon-color);
50
+ }
40
51
  }
41
52
  }
42
53
  }
@@ -12,10 +12,18 @@ const meta: Meta<typeof IconButton> = {
12
12
 
13
13
  type Story = StoryObj<typeof IconButton>;
14
14
 
15
+ export const Default: Story = {
16
+ args: {
17
+ label: 'Script',
18
+ iconName: 'download_icon',
19
+ onClick: () => {},
20
+ },
21
+ };
22
+
15
23
  export const PrimaryIconButton: Story = {
16
24
  render: () => {
17
25
  const name = 'Project';
18
- const icon = 'plus_icon';
26
+ const icon = 'plus_user_icon';
19
27
  const onClick = () => {};
20
28
 
21
29
  return <IconButton label={name} iconName={icon} onClick={onClick} />;
@@ -7,17 +7,19 @@ import { IconButtonProps } from './types';
7
7
 
8
8
  const IconButton: React.FC<IconButtonProps> = ({
9
9
  label,
10
- iconName = 'plus_icon',
10
+ iconName = 'plus_user_icon',
11
11
  onClick,
12
12
  }) => {
13
13
  return (
14
14
  <button onClick={onClick} className={classNames('ff-plus-icon')}>
15
+ <div className={classNames('button-icon')}>
15
16
  <Icon
16
- height={20}
17
- width={20}
17
+ height={12}
18
+ width={12}
18
19
  name={iconName}
19
20
  className={'ff-icon-color'}
20
21
  />
22
+ </div>
21
23
  <Typography as="div" textAlign="center" className="icon-name">
22
24
  {label}
23
25
  </Typography>
@@ -11,6 +11,9 @@
11
11
  border-radius: 4px;
12
12
  outline: none;
13
13
  line-height: 18px;
14
+ &--medium {
15
+ padding: 10px 9px;
16
+ }
14
17
  @extend .fontSm;
15
18
  &:disabled {
16
19
  cursor: not-allowed;
@@ -44,7 +47,9 @@
44
47
  line-height: 18px;
45
48
  margin-top: 1px;
46
49
  transition: all 0.3s ease-in-out;
47
-
50
+ &--medium {
51
+ line-height: 25px;
52
+ }
48
53
  .ff-input-label {
49
54
  color: var(--input-default-label-color);
50
55
  &--danger {
@@ -22,6 +22,7 @@ const Input = ({
22
22
  minValue = -Infinity,
23
23
  maxValue = Infinity,
24
24
  transparentBackground = false,
25
+ size = 'small',
25
26
  ...props
26
27
  }: InputProps) => {
27
28
  return (
@@ -33,9 +34,12 @@ const Input = ({
33
34
  >
34
35
  <label
35
36
  htmlFor={name}
36
- className={classNames('ff-input-label-container', {
37
- 'ff-input-label-container--danger': !!error,
38
- })}
37
+ className={classNames(
38
+ `ff-input-label-container ff-input-label-container--${size}`,
39
+ {
40
+ 'ff-input-label-container--danger': !!error,
41
+ }
42
+ )}
39
43
  >
40
44
  {required && <span className="required-asterisk">*</span>}
41
45
  <span
@@ -55,7 +59,7 @@ const Input = ({
55
59
  spellCheck={false}
56
60
  id={name}
57
61
  className={classNames(
58
- `ff-input ff-input--${variant} default-input `,
62
+ `ff-input ff-input-${variant} default-input ff-input--${size}`,
59
63
  {
60
64
  ['ff-input--transparentBackground']: !!transparentBackground,
61
65
  'ff-input--no-hover': !!value,
@@ -74,4 +74,8 @@ export interface InputProps {
74
74
  * background of the input field prop
75
75
  */
76
76
  transparentBackground?: boolean;
77
+ /**
78
+ * size for the input field
79
+ */
80
+ size?: 'small' | 'medium';
77
81
  }
@@ -1,3 +1,13 @@
1
+ @mixin arrow-before($width, $height, $top, $left) {
2
+ content: '';
3
+ position: absolute;
4
+ width: $width;
5
+ height: $height;
6
+ border-radius: 50px;
7
+ background-color: var(--ff-mini-modal-border);
8
+ top: $top;
9
+ left: $left;
10
+ }
1
11
  .ff-mini-edit-modal-container {
2
12
  width: fit-content;
3
13
  padding: 0;
@@ -20,16 +30,24 @@
20
30
  bottom: 100%;
21
31
  left: 30px;
22
32
  border-width: 0 10px 10px 10px;
33
+ padding: 0 3px 0 0;
23
34
  border-color: transparent transparent var(--ff-mini-modal-border)
24
35
  transparent;
25
- filter: drop-shadow(0 -2px 1px var(--ff-mini-modal-box-shadow));
36
+ filter: drop-shadow(0 -1px 1px var(--ff-mini-modal-arrow-shadow));
37
+ &::before {
38
+ @include arrow-before(3px, 4px, -0.5px, 0);
39
+ }
26
40
  }
27
41
  &.popover-arrow-left {
28
42
  left: -15px; //align the arrow with modal for the right side modal
29
43
  border-width: 10px 10px 10px 0;
30
44
  border-color: transparent var(--ff-mini-modal-border) transparent
31
45
  transparent;
32
- filter: drop-shadow(-2px 0 1px var(--ff-mini-modal-box-shadow));
46
+ filter: drop-shadow(-1px 0 1px var(--ff-mini-modal-arrow-shadow));
47
+ padding: 3px 1px 0 0;
48
+ &::before {
49
+ @include arrow-before(4px, 3px, 0, 0);
50
+ }
33
51
  }
34
52
  &.popover-arrow-bottom {
35
53
  top: 100%;
@@ -37,22 +55,30 @@
37
55
  border-width: 10px 10px 0 10px;
38
56
  border-color: var(--ff-mini-modal-border) transparent transparent
39
57
  transparent; // Bottom part of the arrow with the correct color
40
- filter: drop-shadow(0 2px 1px var(--ff-mini-modal-box-shadow));
58
+ filter: drop-shadow(0 2px 1px var(--ff-mini-modal-arrow-shadow));
59
+ padding: 0 3px 0 0;
60
+ &::before {
61
+ @include arrow-before(3px, 3px, -2px, 0);
62
+ }
41
63
  }
42
64
  &.popover-arrow-right {
43
65
  right: -10px;
44
- top: 75px;
66
+ top: 66px;
45
67
  border-width: 10px 0 10px 10px;
46
68
  border-color: transparent transparent transparent
47
69
  var(--ff-mini-modal-border);
48
- filter: drop-shadow(2px 0 1px var(--ff-mini-modal-box-shadow));
70
+ filter: drop-shadow(2px 0 1px var(--ff-mini-modal-arrow-shadow));
71
+ padding: 3px 1px 0 0;
72
+ &::before {
73
+ @include arrow-before(3px, 3px, 0, -2px);
74
+ }
49
75
  }
50
76
 
51
77
  &.left-top-arrow {
52
78
  top: 10%;
53
79
  }
54
80
  &.left-middle-arrow {
55
- top: 50%;
81
+ top: 45%;
56
82
  }
57
83
  }
58
84
  .wrapped-div {
@@ -97,8 +123,13 @@
97
123
  border-radius: 7px;
98
124
  margin: 0 0 0 -5px;
99
125
  height: 100%;
100
- box-shadow: 0px 0px 4px 0px var(--ff-mini-modal-box-shadow);
101
-
126
+ box-shadow: 0px 4px 8px var(--ff-mini-modal-arrow-shadow);
127
+ &.mini-edit-modal-wrapper-shadow {
128
+ box-shadow: 0px 0px 4px 0px var(--ff-mini-modal-box-shadow);
129
+ }
130
+ &.mini-edit-modal-arrow-shadow {
131
+ box-shadow: 0px 0px 16px 0px var(--ff-mini-modal-arrow-shadow);
132
+ }
102
133
  header {
103
134
  border-radius: 4px 4px 0 0;
104
135
  }