pixel-react 1.4.8 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pixel-react",
3
3
  "description": "Great for pixel-perfect, design-focused components in React",
4
- "version": "1.4.8",
4
+ "version": "1.5.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
7
7
  "types": "lib/index.d.ts",
@@ -116,6 +116,7 @@ $base-theme: (
116
116
  menu-option-icon-clicked: #71347b,
117
117
  delete-text-color: #c50303,
118
118
  confirm-tick-icon-color: #5ca700,
119
+ warning-modal-border-color:#E79B0866,
119
120
  brand-color-border:
120
121
  linear-gradient(
121
122
  94.23deg,
@@ -187,6 +187,7 @@ $dark-theme: (
187
187
  label-edit-cancel-icon: #e42525,
188
188
  delete-icon-color: #e42525,
189
189
  confirm-tick-icon-color:#5CA700,
190
+ warning-modal-border-color:#E79B0866,
190
191
  brand-color-border:
191
192
  linear-gradient(
192
193
  94.23deg,
@@ -18,7 +18,12 @@
18
18
  border-radius: 20px;
19
19
  .ff-all-project-container {
20
20
  border-radius: 20px;
21
- background-color: var(--brand-color);
21
+ box-shadow: 0px 4px 4px 0px #00000040 inset;
22
+ background: linear-gradient(
23
+ 90deg,
24
+ var(--brand-color) 0%,
25
+ var(--button-background-gradient-color) 100%
26
+ );
22
27
  }
23
28
  }
24
29
  &:not(.ff-all-project-dropdown--selected):hover {
@@ -51,7 +51,12 @@
51
51
  background-color: var(--primary-icon-color);
52
52
  border-radius: 20px;
53
53
  .ff-app-header-nav-bar-item-label {
54
- background-color: var(--brand-color);
54
+ box-shadow: 0px 4px 4px 0px #00000040 inset;
55
+ background: linear-gradient(
56
+ 90deg,
57
+ var(--brand-color) 0%,
58
+ var(--button-background-gradient-color) 100%
59
+ );
55
60
  border-radius: 20px;
56
61
  padding: 4px 8px;
57
62
  }
@@ -44,12 +44,10 @@ const headerMenuItems = [
44
44
  {
45
45
  label: 'Elements',
46
46
  path: 'Elements',
47
- quickMenuItems: [],
48
47
  },
49
48
  {
50
49
  label: 'Program Elements',
51
50
  path: 'Program Elements',
52
- quickMenuItems: [],
53
51
  },
54
52
  {
55
53
  label: 'Step Groups',
@@ -74,7 +72,6 @@ const headerMenuItems = [
74
72
  {
75
73
  label: 'Test Data',
76
74
  path: 'Test Data',
77
- subMenuItems: [],
78
75
  },
79
76
  {
80
77
  label: 'Test Dev',
@@ -109,7 +106,6 @@ const headerMenuItems = [
109
106
  {
110
107
  label: 'Executions',
111
108
  path: 'Executions',
112
- quickMenuItems: [],
113
109
  },
114
110
  ],
115
111
  },
@@ -58,7 +58,7 @@ export const Controlled: Story = {
58
58
  footerContent={<Button variant="primary" label="continue" />}
59
59
  customWidth="660px"
60
60
  customHeight="auto"
61
- border="1px solid #E79B0866"
61
+ border="1px solid var(--warning-modal-border-color)"
62
62
  />
63
63
  )}
64
64
  </>
@@ -61,7 +61,7 @@ const Modal: React.FC<ModalProps> = ({
61
61
  style={{
62
62
  boxShadow: boxShadow,
63
63
  border: border,
64
- borderRadius: '12px',
64
+ borderRadius: '8px',
65
65
  background: background,
66
66
  }}
67
67
  className="ff-modal-container"
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  .ff-modal-container {
15
- border-radius: 12px;
15
+ border-radius: 8px;
16
16
  overflow: hidden;
17
17
  }
18
18
 
@@ -20,7 +20,7 @@
20
20
  background: var(--ff-mini-modal-border);
21
21
  position: relative;
22
22
  max-width: 100%;
23
- padding: 8px;
23
+ padding: 16px;
24
24
 
25
25
  .ff-modal-header {
26
26
  height: 32px;
@@ -29,12 +29,12 @@
29
29
  }
30
30
 
31
31
  .modal-bottom-border {
32
- border-bottom-left-radius: 12px;
33
- border-bottom-right-radius: 12px;
32
+ border-bottom-left-radius: 8px;
33
+ border-bottom-right-radius: 8px;
34
34
  }
35
35
  .modal-top-border {
36
- border-top-left-radius: 12px;
37
- border-top-right-radius: 12px;
36
+ border-top-left-radius: 8px;
37
+ border-top-right-radius: 8px;
38
38
  }
39
39
 
40
40
  .ff-modal-footer {
@@ -47,5 +47,5 @@
47
47
  justify-content: end;
48
48
  align-items: center;
49
49
  gap: 8px;
50
- padding: 4px 8px;
50
+ padding: 4px 16px;
51
51
  }
@@ -8,7 +8,7 @@
8
8
  font-weight: 400;
9
9
  src:
10
10
  local('Poppins-Regular'),
11
- url(../../fonts/Poppins/Poppins-Regular.woff2) format('woff2');
11
+ url(../../assets/fonts/Poppins-Regular.woff2) format('woff2');
12
12
  }
13
13
 
14
14
  @font-face {
@@ -16,7 +16,7 @@
16
16
  font-weight: 500;
17
17
  src:
18
18
  local('Poppins-Medium'),
19
- url(../../fonts/Poppins/Poppins-Medium.woff2) format('woff2');
19
+ url(../../assets/fonts/Poppins-Medium.woff2) format('woff2');
20
20
  }
21
21
 
22
22
  @font-face {
@@ -24,7 +24,7 @@
24
24
  font-weight: 600;
25
25
  src:
26
26
  local('Poppins-SemiBold'),
27
- url(../../fonts/Poppins/Poppins-SemiBold.woff2) format('woff2');
27
+ url(../../assets/fonts/Poppins-SemiBold.woff2) format('woff2');
28
28
  }
29
29
 
30
30
  @font-face {
@@ -32,7 +32,7 @@
32
32
  font-weight: 700;
33
33
  src:
34
34
  local('Poppins-Bold'),
35
- url(../../fonts/Poppins/Poppins-Bold.woff2) format('woff2');
35
+ url(../../assets/fonts/Poppins-Bold.woff2) format('woff2');
36
36
  }
37
37
 
38
38
  .ff-text {