pixel-react 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/lib/components/AddButton/AddButton.d.ts +5 -0
  3. package/lib/components/AddButton/AddButton.stories.d.ts +6 -0
  4. package/lib/components/AddButton/index.d.ts +1 -0
  5. package/lib/components/AddButton/types.d.ts +4 -0
  6. package/lib/components/AddResourceButton/type.d.ts +13 -10
  7. package/lib/components/InputWithDropdown/InputWithDropdown.d.ts +1 -1
  8. package/lib/components/InputWithDropdown/InputWithDropdown.stories.d.ts +1 -0
  9. package/lib/components/InputWithDropdown/types.d.ts +4 -0
  10. package/lib/components/MenuOption/types.d.ts +1 -1
  11. package/lib/components/Select/Select.d.ts +1 -1
  12. package/lib/components/Select/types.d.ts +5 -1
  13. package/lib/components/StateDropdown/StateDropdown.d.ts +3 -0
  14. package/lib/components/StateDropdown/StateDropdown.stories.d.ts +10 -0
  15. package/lib/components/StateDropdown/StateDropdownTypes.d.ts +11 -0
  16. package/lib/components/StateDropdown/index.d.ts +1 -0
  17. package/lib/components/StatusButton/StatusButton.d.ts +4 -0
  18. package/lib/components/StatusButton/StatusButton.stories.d.ts +14 -0
  19. package/lib/components/StatusButton/index.d.ts +1 -0
  20. package/lib/components/StatusButton/types.d.ts +35 -0
  21. package/lib/components/Tabs/Tabs.d.ts +1 -1
  22. package/lib/components/Tabs/Tabs.stories.d.ts +1 -0
  23. package/lib/components/Tabs/types.d.ts +6 -2
  24. package/lib/index.d.ts +76 -10
  25. package/lib/index.esm.js +285 -55
  26. package/lib/index.esm.js.map +1 -1
  27. package/lib/index.js +286 -54
  28. package/lib/index.js.map +1 -1
  29. package/lib/tsconfig.tsbuildinfo +1 -1
  30. package/package.json +1 -1
  31. package/rollup.config.mjs +0 -3
  32. package/src/assets/Themes/BaseTheme.scss +45 -16
  33. package/src/assets/Themes/DarkTheme.scss +48 -10
  34. package/src/assets/icons/active_license_icon.svg +3 -0
  35. package/src/assets/icons/delete.svg +2 -16
  36. package/src/assets/icons/delete_info.svg +17 -0
  37. package/src/assets/icons/details.svg +3 -0
  38. package/src/assets/icons/edit_icon.svg +5 -0
  39. package/src/assets/icons/expired_license_icon.svg +3 -0
  40. package/src/assets/icons/expiringSoon_license_icon.svg +3 -0
  41. package/src/assets/icons/export_collection_icon.svg +13 -0
  42. package/src/assets/icons/hide_icon.svg +9 -0
  43. package/src/assets/icons/impactList.svg +6 -0
  44. package/src/assets/icons/run_icon.svg +26 -0
  45. package/src/assets/icons/view_icon.svg +3 -0
  46. package/src/assets/utils/functionUtils.ts +5 -5
  47. package/src/components/AddButton/AddButton.scss +38 -0
  48. package/src/components/AddButton/AddButton.stories.tsx +24 -0
  49. package/src/components/AddButton/AddButton.tsx +25 -0
  50. package/src/components/AddButton/index.ts +1 -0
  51. package/src/components/AddButton/types.ts +4 -0
  52. package/src/components/AddResourceButton/type.ts +42 -10
  53. package/src/components/Button/index.ts +1 -1
  54. package/src/components/Icon/iconList.ts +24 -2
  55. package/src/components/Input/Input.stories.tsx +1 -1
  56. package/src/components/InputWithDropdown/InputWithDropdown.stories.tsx +59 -2
  57. package/src/components/InputWithDropdown/InputWithDropdown.tsx +3 -1
  58. package/src/components/InputWithDropdown/types.ts +4 -0
  59. package/src/components/MenuOption/types.ts +1 -1
  60. package/src/components/Search/Search.scss +70 -72
  61. package/src/components/Select/Select.tsx +29 -25
  62. package/src/components/Select/types.ts +5 -1
  63. package/src/components/StateDropdown/StateDropdown.stories.tsx +99 -0
  64. package/src/components/StateDropdown/StateDropdown.tsx +223 -0
  65. package/src/components/StateDropdown/StateDropdownTypes.tsx +21 -0
  66. package/src/components/StateDropdown/index.ts +1 -0
  67. package/src/components/StatusButton/StatusButton.scss +90 -0
  68. package/src/components/StatusButton/StatusButton.stories.tsx +91 -0
  69. package/src/components/StatusButton/StatusButton.tsx +40 -0
  70. package/src/components/StatusButton/index.ts +1 -0
  71. package/src/components/StatusButton/types.ts +45 -0
  72. package/src/components/Table/Table.scss +2 -2
  73. package/src/components/Tabs/Tabs.scss +3 -0
  74. package/src/components/Tabs/Tabs.stories.tsx +31 -0
  75. package/src/components/Tabs/Tabs.tsx +6 -1
  76. package/src/components/Tabs/types.ts +6 -2
  77. package/src/index.ts +5 -0
  78. package/vite.config.js +0 -8
  79. package/lib/index.css +0 -404
  80. package/lib/index.esm.css +0 -404
@@ -1,87 +1,85 @@
1
1
  @use '../../assets/styles/fonts';
2
2
 
3
-
4
3
  .ff-search-container {
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: space-between;
7
+ .ff-search-icon {
5
8
  display: flex;
6
9
  align-items: center;
7
- justify-content: space-between;
8
- .ff-search-icon {
9
- display: flex;
10
- align-items: center;
11
- justify-content: center;
12
- cursor: pointer;
13
- border: 1px solid var(--border-color);
14
- border-radius: 4px;
15
- padding: 5px;
16
- .ff-icon-container {
17
- svg {
18
- path {
19
- fill: var(--brand-color)
20
- }
21
- }
10
+ justify-content: center;
11
+ cursor: pointer;
12
+ border: 1px solid var(--border-color);
13
+ border-radius: 4px;
14
+ padding: 4px;
15
+ .ff-icon-container {
16
+ svg {
17
+ path {
18
+ fill: var(--brand-color);
22
19
  }
20
+ }
21
+ }
22
+ }
23
+ .ff-search-input {
24
+ @extend .fontXs;
25
+ border: none;
26
+ color: var(--tooltip-bg-color);
27
+ line-height: 12px;
28
+ visibility: hidden;
29
+ transition: width 0.4s ease;
30
+ &:focus {
31
+ outline: none;
32
+ border: none;
23
33
  }
24
- .ff-search-input {
25
- @extend .fontXs;
26
- border: none;
27
- color: var(--tooltip-bg-color);
28
- line-height: 12px;
29
- visibility: hidden;
30
- transition: width 0.4s ease;
31
- &:focus {
32
- outline: none;
33
- border: none;
34
- }
35
34
 
36
- &:hover {
37
- border: none;
38
- }
35
+ &:hover {
36
+ border: none;
39
37
  }
40
- &.disabled {
41
- opacity: 0.5;
38
+ }
39
+ &.disabled {
40
+ opacity: 0.5;
41
+ }
42
+ &.expanded {
43
+ border: 1px solid var(--border-color);
44
+ border-radius: 4px;
45
+ .ff-vertical-line {
46
+ height: 8px;
47
+ width: 1px;
48
+ position: relative;
49
+ right: 2px;
50
+ border-radius: 1px;
51
+ margin: 8px 0px;
52
+ background-color: var(--border-color);
42
53
  }
43
- &.expanded {
44
- border: 1px solid var(--border-color);
45
- border-radius: 4px;
46
- .ff-vertical-line {
47
- height: 8px;
48
- width: 1px;
49
- position: relative;
50
- right: 2px;
51
- border-radius: 1px;
52
- margin: 8px 0px;
53
- background-color: var(--border-color);
54
- }
55
- .ff-search-input {
56
- visibility: visible;
57
-
58
- &::placeholder {
59
- color: var(--ff-search-filed-placeholder-text);
60
- }
61
- }
62
- .ff-search-icon {
63
- padding: 4px;
64
- border: none;
65
- cursor: default;
54
+ .ff-search-input {
55
+ visibility: visible;
66
56
 
67
- }
68
- .ff-search-clear-button {
69
- display: grid;
70
- place-items: center;
71
- cursor: pointer;
72
- width: 22px;
73
- }
74
- .ff-search-close-icon {
75
- margin: 4px;
76
- cursor: pointer;
57
+ &::placeholder {
58
+ color: var(--ff-search-filed-placeholder-text);
59
+ }
60
+ }
61
+ .ff-search-icon {
62
+ padding: 4px;
63
+ border: none;
64
+ cursor: default;
65
+ }
66
+ .ff-search-clear-button {
67
+ display: grid;
68
+ place-items: center;
69
+ cursor: pointer;
70
+ width: 22px;
71
+ }
72
+ .ff-search-close-icon {
73
+ margin: 4px;
74
+ cursor: pointer;
77
75
 
78
- .ff-icon-container {
79
- svg {
80
- path {
81
- fill: var(--ff-search-filed-close-Icon)
82
- }
83
- }
84
- }
76
+ .ff-icon-container {
77
+ svg {
78
+ path {
79
+ fill: var(--ff-search-filed-close-Icon);
80
+ }
85
81
  }
82
+ }
86
83
  }
84
+ }
87
85
  }
@@ -114,6 +114,7 @@ const Select = ({
114
114
  borderRadius = true,
115
115
  showBorder = true,
116
116
  required = false,
117
+ optionsRequired = true,
117
118
  }: SelectProps) => {
118
119
  const initialState: SelectState = useMemo(
119
120
  () => ({
@@ -291,17 +292,18 @@ const Select = ({
291
292
  {label}
292
293
  </div>
293
294
  )}
294
-
295
- <Icon
296
- name="arrow_up"
297
- height={7}
298
- width={12}
299
- className={classNames('ff-select-arrow', {
300
- 'ff-select-arrow--down': isIconClick,
301
- 'ff-select-arrow--no-label': !showLabel,
302
- })}
303
- color={iconColor}
304
- />
295
+ {optionsRequired && (
296
+ <Icon
297
+ name="arrow_up"
298
+ height={7}
299
+ width={12}
300
+ className={classNames('ff-select-arrow', {
301
+ 'ff-select-arrow--down': isIconClick,
302
+ 'ff-select-arrow--no-label': !showLabel,
303
+ })}
304
+ color={iconColor}
305
+ />
306
+ )}
305
307
  <fieldset
306
308
  className={classNames('ff-select-fieldset', {
307
309
  'ff-select-fieldset--no-label': !showLabel,
@@ -347,20 +349,22 @@ const Select = ({
347
349
  </Typography>
348
350
  )}
349
351
 
350
- <div ref={DropDownRef}>
351
- {showOptions &&
352
- createPortal(
353
- <Dropdown
354
- onSelectBlur={onSelectBlur}
355
- onSelectOptionSelector={onSelectOptionSelector}
356
- dropdownPosition={dropdownPosition}
357
- options={options}
358
- optionZIndex={optionZIndex}
359
- inputRef={InputRef}
360
- />,
361
- document.body
362
- )}
363
- </div>
352
+ {optionsRequired && (
353
+ <div ref={DropDownRef}>
354
+ {showOptions &&
355
+ createPortal(
356
+ <Dropdown
357
+ onSelectBlur={onSelectBlur}
358
+ onSelectOptionSelector={onSelectOptionSelector}
359
+ dropdownPosition={dropdownPosition}
360
+ options={options}
361
+ optionZIndex={optionZIndex}
362
+ inputRef={InputRef}
363
+ />,
364
+ document.body
365
+ )}
366
+ </div>
367
+ )}
364
368
  </div>
365
369
  );
366
370
  };
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
 
3
3
  export interface SelectProps {
4
4
  /*
@@ -60,6 +60,10 @@ export interface SelectProps {
60
60
  * Provide the boolean value if the select component is required or not
61
61
  */
62
62
  required?: boolean;
63
+ /**
64
+ * optionsRequired:false prop removes options from dropdown & shows static label only
65
+ */
66
+ optionsRequired?: boolean;
63
67
  }
64
68
 
65
69
  export interface DrowdownPosition {
@@ -0,0 +1,99 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import StateDropdown from './StateDropdown';
3
+
4
+ const meta: Meta<typeof StateDropdown> = {
5
+ title: 'Components/StateDropdown',
6
+ component: StateDropdown,
7
+ parameters: {
8
+ layout: 'centered',
9
+ },
10
+ tags: ['autodocs'],
11
+ };
12
+
13
+ type Story = StoryObj<typeof StateDropdown>;
14
+
15
+ export const Disable: Story = {
16
+ args: {
17
+ value: 'New',
18
+ handleStateValueClick: () => {},
19
+ handleDropdownOptionsClick: () => {},
20
+ isOnlyReviewer: false,
21
+ nodeObj: { label: 'New', value: 'New' },
22
+ isReviewer: true,
23
+ isApprovePage: false,
24
+ disabled: true,
25
+ userHasOnlyViewAccess: true,
26
+ },
27
+ };
28
+
29
+ export const Review: Story = {
30
+ args: {
31
+ value: 'Review',
32
+ handleStateValueClick: () => {},
33
+ handleDropdownOptionsClick: () => {},
34
+ isOnlyReviewer: false,
35
+ nodeObj: { label: 'Review', value: 'Review' },
36
+ isReviewer: true,
37
+ isApprovePage: true,
38
+ disabled: false,
39
+ userHasOnlyViewAccess: false,
40
+ },
41
+ };
42
+
43
+ export const Reject: Story = {
44
+ args: {
45
+ value: 'Rejected',
46
+ handleStateValueClick: () => {},
47
+ handleDropdownOptionsClick: () => {},
48
+ isOnlyReviewer: false,
49
+ nodeObj: { label: 'Rejected', value: 'Rejected' },
50
+ isReviewer: false,
51
+ isApprovePage: false,
52
+ disabled: false,
53
+ userHasOnlyViewAccess: false,
54
+ },
55
+ };
56
+
57
+ export const Approved: Story = {
58
+ args: {
59
+ value: 'Approved',
60
+ handleStateValueClick: () => {},
61
+ handleDropdownOptionsClick: () => {},
62
+ isOnlyReviewer: false,
63
+ nodeObj: { label: 'Approved', value: 'Approved' },
64
+ isReviewer: false,
65
+ isApprovePage: false,
66
+ disabled: false,
67
+ userHasOnlyViewAccess: true,
68
+ },
69
+ };
70
+
71
+ export const NewState: Story = {
72
+ render: () => {
73
+ const value = 'New';
74
+ const state = {
75
+ label: 'New',
76
+ value: 'New',
77
+ };
78
+
79
+ const handleDropdownOptionsClick = () => {};
80
+
81
+ const handleStateValueClick = () => {};
82
+
83
+ return (
84
+ <StateDropdown
85
+ value={value}
86
+ nodeObj={state}
87
+ isReviewer={false}
88
+ isApprovePage={false}
89
+ handleStateValueClick={handleStateValueClick}
90
+ handleDropdownOptionsClick={handleDropdownOptionsClick}
91
+ disabled={false}
92
+ isOnlyReviewer={false}
93
+ userHasOnlyViewAccess={false}
94
+ />
95
+ );
96
+ },
97
+ };
98
+
99
+ export default meta;
@@ -0,0 +1,223 @@
1
+ import Select from './../Select/Select';
2
+ import { StateDropdownProps } from './StateDropdownTypes';
3
+
4
+ const StateDropdown = ({
5
+ value,
6
+ nodeObj,
7
+ isReviewer = false,
8
+ isApprovePage = false,
9
+ handleStateValueClick,
10
+ handleDropdownOptionsClick,
11
+ disabled = false,
12
+ isOnlyReviewer = false,
13
+ userHasOnlyViewAccess = false,
14
+ }: StateDropdownProps) => {
15
+ let currentState=value.toUpperCase();
16
+ let content;
17
+ let options;
18
+ const isReviewerAndClickedOnReviewState: boolean =
19
+ isReviewer &&
20
+ !isApprovePage &&
21
+ currentState === 'REVIEW' &&
22
+ !nodeObj;
23
+ let selectedOption: { label: string; value: string } = {
24
+ label: '',
25
+ value: '',
26
+ };
27
+
28
+ if (isOnlyReviewer && !isApprovePage) {
29
+ options = [
30
+ {
31
+ label: 'New',
32
+ value: 'New',
33
+ },
34
+ {
35
+ label: 'Approve',
36
+ value: 'Approve',
37
+ },
38
+ ];
39
+ } else if (!isReviewer && !isApprovePage) {
40
+ options = [
41
+ {
42
+ label: currentState === 'REJECTED' ? 'Rejected' : 'New',
43
+ value: currentState === 'REJECTED' ? 'Rejected' : 'New',
44
+ },
45
+ {
46
+ label: 'Approve',
47
+ value: 'Approve',
48
+ },
49
+ ];
50
+ } else if (isReviewerAndClickedOnReviewState) {
51
+ options = [
52
+ {
53
+ label: 'Review',
54
+ value: 'Review',
55
+ },
56
+ {
57
+ label: 'Approve',
58
+ value: 'Approve',
59
+ },
60
+ ];
61
+ } else if (isReviewer && !isApprovePage) {
62
+ options = [
63
+ {
64
+ label: currentState === 'REJECTED' ? 'Rejected' : 'New',
65
+ value: currentState === 'REJECTED' ? 'Rejected' : 'New',
66
+ },
67
+ {
68
+ label: 'Review',
69
+ value: 'Review',
70
+ },
71
+ {
72
+ label: 'Approve',
73
+ value: 'Approve',
74
+ },
75
+ ];
76
+ } else if (isReviewer && isApprovePage) {
77
+ options = [
78
+ {
79
+ label: 'Review',
80
+ value: 'Review',
81
+ },
82
+ {
83
+ label: 'Approve',
84
+ value: 'Approve',
85
+ },
86
+ {
87
+ label: 'Reject',
88
+ value: 'Reject',
89
+ },
90
+ ];
91
+ } else {
92
+ options = [
93
+ {
94
+ label: 'New',
95
+ value: 'New',
96
+ },
97
+ {
98
+ label: 'Review',
99
+ value: 'Review',
100
+ },
101
+ ];
102
+ }
103
+
104
+ let handleSelectedOption:(value:string)=>{label:string,value:string}=(value)=>{
105
+ return {label:value , value: value};
106
+ };
107
+ if (currentState === 'REVIEW' && isApprovePage) {
108
+ selectedOption = handleSelectedOption(value);
109
+ } else if (currentState === 'REVIEW' && !isApprovePage) {
110
+ selectedOption = handleSelectedOption(value);
111
+ } else if (currentState === 'NEW' && !isApprovePage) {
112
+ selectedOption = handleSelectedOption(value);
113
+ } else if (currentState === 'REJECTED' && !isApprovePage) {
114
+ selectedOption = handleSelectedOption(value);
115
+ } else {
116
+ selectedOption = handleSelectedOption(value);
117
+ }
118
+
119
+ if (
120
+ ((currentState === 'NEW' && !isApprovePage) ||
121
+ (isApprovePage && currentState === 'REVIEW') ||
122
+ isReviewerAndClickedOnReviewState ||
123
+ (currentState === 'REJECTED' && !isApprovePage)) &&
124
+ !userHasOnlyViewAccess
125
+ ) {
126
+ content = !disabled ? (
127
+ <Select
128
+ label={value}
129
+ disabled={disabled}
130
+ onChange={handleDropdownOptionsClick}
131
+ optionsList={options}
132
+ selectedOption={selectedOption}
133
+ showLabel={false}
134
+ showBorder={true}
135
+ />
136
+ ) : (
137
+ <Select
138
+ label={value}
139
+ disabled={true}
140
+ onChange={handleDropdownOptionsClick}
141
+ optionsList={options}
142
+ selectedOption={selectedOption}
143
+ showLabel={false}
144
+ showBorder={true}
145
+ />
146
+ );
147
+ } else if (
148
+ currentState === 'REVIEW' &&
149
+ (!isApprovePage || userHasOnlyViewAccess)
150
+ ) {
151
+ content = (
152
+ <Select
153
+ label={value}
154
+ disabled={true}
155
+ onChange={handleDropdownOptionsClick}
156
+ optionsList={options}
157
+ selectedOption={selectedOption}
158
+ showLabel={false}
159
+ showBorder={true}
160
+ />
161
+ );
162
+ } else if (currentState === 'APPROVED') {
163
+ content = (
164
+ <Select
165
+ label={value}
166
+ disabled={true}
167
+ onChange={handleDropdownOptionsClick}
168
+ optionsList={options}
169
+ selectedOption={selectedOption}
170
+ showLabel={false}
171
+ showBorder={true}
172
+ />
173
+ );
174
+ } else if (
175
+ currentState === 'REJECTED' &&
176
+ userHasOnlyViewAccess
177
+ ) {
178
+ content = (
179
+ <Select
180
+ label={value}
181
+ disabled={true}
182
+ onChange={handleDropdownOptionsClick}
183
+ optionsList={options}
184
+ selectedOption={selectedOption}
185
+ showLabel={false}
186
+ showBorder={true}
187
+ />
188
+ );
189
+ } else if (currentState === 'NEW' && userHasOnlyViewAccess) {
190
+ content = (
191
+ <Select
192
+ label={value}
193
+ disabled={true}
194
+ onChange={handleDropdownOptionsClick}
195
+ optionsList={options}
196
+ selectedOption={selectedOption}
197
+ showLabel={false}
198
+ showBorder={true}
199
+ />
200
+ );
201
+ } else {
202
+ content = '';
203
+ }
204
+
205
+ return (
206
+ <div
207
+ onClick={() => {
208
+ if (
209
+ value.toLowerCase() === 'review' &&
210
+ !userHasOnlyViewAccess &&
211
+ !isApprovePage &&
212
+ !isReviewer
213
+ ) {
214
+ handleStateValueClick();
215
+ }
216
+ }}
217
+ >
218
+ {content}
219
+ </div>
220
+ );
221
+ };
222
+
223
+ export default StateDropdown;
@@ -0,0 +1,21 @@
1
+ export interface StateDropdownProps{
2
+
3
+ value:string;
4
+
5
+ nodeObj:{};
6
+
7
+ isReviewer:boolean;
8
+
9
+ isApprovePage:boolean;
10
+
11
+ handleDropdownOptionsClick:()=>void;
12
+
13
+ disabled:boolean;
14
+
15
+ isOnlyReviewer:boolean;
16
+
17
+ userHasOnlyViewAccess:boolean;
18
+
19
+ handleStateValueClick:()=>void;
20
+ }
21
+
@@ -0,0 +1 @@
1
+ export { default } from './StateDropdown';
@@ -0,0 +1,90 @@
1
+ @mixin status-colors($bg-color, $text-color) {
2
+ background-color: $bg-color;
3
+ color: $text-color;
4
+ }
5
+
6
+ .ff-status-button {
7
+ border: none;
8
+ border-radius: 4px;
9
+ padding: 0 4px;
10
+ cursor: pointer;
11
+ width: 76px;
12
+ height: 16px;
13
+
14
+ &__text {
15
+ color: inherit;
16
+ white-space: nowrap;
17
+ overflow: hidden;
18
+ text-overflow: ellipsis;
19
+ max-width: 76px;
20
+ text-transform: capitalize;
21
+ }
22
+
23
+ &--passed {
24
+ @include status-colors(
25
+ var(--status-button-bg-passed),
26
+ var(--status-button-text-passed)
27
+ );
28
+ }
29
+
30
+ &--failed {
31
+ @include status-colors(
32
+ var(--status-button-bg-failed),
33
+ var(--status-button-text-failed)
34
+ );
35
+ }
36
+
37
+ &--running {
38
+ @include status-colors(
39
+ var(--status-button-bg-running),
40
+ var(--status-button-text-running)
41
+ );
42
+ }
43
+
44
+ &--skipped {
45
+ @include status-colors(
46
+ var(--status-button-bg-skipped),
47
+ var(--status-button-text-skipped)
48
+ );
49
+ }
50
+
51
+ &--warning {
52
+ @include status-colors(
53
+ var(--status-button-bg-warning),
54
+ var(--status-button-text-warning)
55
+ );
56
+ }
57
+
58
+ &--terminated {
59
+ @include status-colors(
60
+ var(--status-button-bg-terminated),
61
+ var(--status-button-text-terminated)
62
+ );
63
+ }
64
+
65
+ &--partially-executed {
66
+ @include status-colors(
67
+ var(--status-button-bg-partiallyExecuted),
68
+ var(--status-button-text-partiallyExecuted)
69
+ );
70
+ }
71
+
72
+ &--aborted {
73
+ @include status-colors(
74
+ var(--status-button-bg-aborted),
75
+ var(--status-button-text-aborted)
76
+ );
77
+ }
78
+
79
+ &--not-executed {
80
+ @include status-colors(
81
+ var(--status-button-bg-notExecuted),
82
+ var(--status-button-text-notExecuted)
83
+ );
84
+ }
85
+
86
+ &:disabled {
87
+ opacity: 50%;
88
+ cursor: not-allowed;
89
+ }
90
+ }