pixel-react 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/.yarn/install-state.gz +0 -0
- package/lib/index.esm.js +10 -10
- package/lib/index.js +10 -10
- package/package.json +1 -1
- package/rollup.config.mjs +3 -0
- package/src/StyleGuide/ColorPalette/ColorPalette.scss +4 -5
- package/src/StyleGuide/Typography/Typography.scss +4 -5
- package/src/assets/Themes/Theme.scss +7 -191
- package/src/components/Accordion/Accordion.scss +1 -2
- package/src/components/Button/Button.scss +1 -1
- package/src/components/Charts/DonutChart/DonutChart.scss +1 -1
- package/src/components/Charts/RadialChart/RadialChart.scss +1 -1
- package/src/components/Drawer/Drawer.scss +9 -10
- package/src/components/ExpandableMenu/ExpandableMenu.scss +1 -1
- package/src/components/Icon/Icons.scss +5 -6
- package/src/components/MenuOption/MenuOption.scss +1 -1
- package/src/components/MultiSelect/MultiSelect.scss +1 -1
- package/src/components/RadioButton/RadioButton.scss +2 -3
- package/src/components/Search/Search.scss +1 -1
- package/src/components/Table/Table.scss +1 -1
- package/src/components/TextArea/Textarea.scss +1 -2
- package/src/components/Toggle/Toggle.scss +5 -4
- package/src/components/Tooltip/Tooltip.scss +1 -1
- package/vite.config.js +9 -1
@@ -1,200 +1,16 @@
|
|
1
|
-
@
|
2
|
-
@
|
1
|
+
@use './BaseTheme' as base;
|
2
|
+
@use './DarkTheme' as dark;
|
3
3
|
|
4
4
|
@mixin set-theme-variables($theme-map) {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
--border-color: #{map-get($theme-map, border-color)};
|
9
|
-
--disable-color: #{map-get($theme-map, disable-color)};
|
10
|
-
--hover-color: #{map-get($theme-map, hover-color)};
|
11
|
-
--pop-up-background-blur: #{map-get($theme-map, pop-up-background-blur)};
|
12
|
-
--slider-table-color: #{map-get($theme-map, slider-table-color)};
|
13
|
-
--drawer-footer-bg: #{map-get($theme-map, drawer-footer-bg)};
|
14
|
-
--drawer-footer-border: #{map-get($theme-map, drawer-footer-border)};
|
15
|
-
--text-bg-highlight: #{map-get($theme-map, text-bg-highlight)};
|
16
|
-
--tooltip-bg-color: #{map-get($theme-map, tooltip-bg-color)};
|
17
|
-
--tooltip-text-color: #{map-get($theme-map, tooltip-text-color)};
|
18
|
-
--toggle-strip-color: #{map-get($theme-map, toggle-strip-color)};
|
19
|
-
--toggle-strip-active: #{map-get($theme-map, toggle-strip-active)};
|
20
|
-
--toggle-strip-shadow: #{map-get($theme-map, toggle-strip-shadow)};
|
21
|
-
--toggle-button-bg-color: #{map-get($theme-map, toggle-button-bg-color)};
|
22
|
-
--toggle-disable-icon-color: #{map-get($theme-map, toggle-disable-icon-color)};
|
23
|
-
--chip-fill-color: #{map-get($theme-map, chip-fill-color)};
|
24
|
-
--chip-text-color: #{map-get($theme-map, chip-text-color)};
|
25
|
-
--primary-button-color: #{map-get($theme-map, primary-button-color)};
|
26
|
-
--primary-button-hover: #{map-get($theme-map, primary-button-hover)};
|
27
|
-
--primary-button-disable: #{map-get($theme-map, primary-button-disable)};
|
28
|
-
--primary-button-text-color: #{map-get($theme-map, primary-button-text-color)};
|
29
|
-
--primary-button-border: #{map-get($theme-map, primary-button-border)};
|
30
|
-
--secondary-button-color-text: #{map-get(
|
31
|
-
$theme-map,
|
32
|
-
secondary-button-color-text
|
33
|
-
)};
|
34
|
-
--secondary-button-border: #{map-get($theme-map, secondary-button-border)};
|
35
|
-
--secondary-button-text-color: #{map-get(
|
36
|
-
$theme-map,
|
37
|
-
secondary-button-text-color
|
38
|
-
)};
|
39
|
-
--secondary-button-hover: #{map-get($theme-map, secondary-button-hover)};
|
40
|
-
--tertiary-button-color: #{map-get($theme-map, tertiary-button-color)};
|
41
|
-
--tertiary-button-hover: #{map-get($theme-map, tertiary-button-hover)};
|
42
|
-
--delete-button-color: #{map-get($theme-map, delete-button-color)};
|
43
|
-
--delete-button-border: #{map-get($theme-map, delete-button-border)};
|
44
|
-
--delete-button-hover: #{map-get($theme-map, delete-button-hover)};
|
45
|
-
--delete-button-disable: #{map-get($theme-map, delete-button-disable)};
|
46
|
-
--add-icon-hover-color: #{map-get($theme-map, add-icon-hover-color)};
|
47
|
-
--arrow-button-bg-color: #{map-get($theme-map, arrow-button-bg-color)};
|
48
|
-
--arrows-button-border-color: #{map-get(
|
49
|
-
$theme-map,
|
50
|
-
arrows-button-border-color
|
51
|
-
)};
|
52
|
-
--add-icon-hover-color: #{map-get($theme-map, add-icon-hover-color)};
|
53
|
-
--arrow-button-bg-color: #{map-get($theme-map, arrow-button-bg-color)};
|
54
|
-
--arrows-button-border-color: #{map-get(
|
55
|
-
$theme-map,
|
56
|
-
arrows-button-border-color
|
57
|
-
)};
|
58
|
-
--default-icon-color: #{map-get($theme-map, default-icon-color)};
|
59
|
-
--error_light: #{map-get($theme-map, error_light)};
|
60
|
-
--text-area-default-color: #{map-get($theme-map, text-area-default-color)};
|
61
|
-
--expandable-menu-default-bg: #{map-get(
|
62
|
-
$theme-map,
|
63
|
-
expandable-menu-default-bg
|
64
|
-
)};
|
65
|
-
--expandable-menu-option-bg: #{map-get($theme-map, expandable-menu-option-bg)};
|
66
|
-
--file-dropzone-default-color: #{map-get(
|
67
|
-
$theme-map,
|
68
|
-
file-dropzone-default-color
|
69
|
-
)};
|
70
|
-
--file-dropzone-selected-color: #{map-get(
|
71
|
-
$theme-map,
|
72
|
-
file-dropzone-selected-color
|
73
|
-
)};
|
74
|
-
--file-details-container-shadow: #{map-get(
|
75
|
-
$theme-map,
|
76
|
-
file-details-container-shadow
|
77
|
-
)};
|
78
|
-
--file-details-bg: #{map-get($theme-map, file-details-bg)};
|
79
|
-
--ff-mini-modal-border: #{map-get($theme-map, ff-mini-modal-border)};
|
80
|
-
--ff-mini-modal-box-shadow: #{map-get($theme-map, ff-mini-modal-box-shadow)};
|
81
|
-
--ff-mini-modal-footer-background: #{map-get(
|
82
|
-
$theme-map,
|
83
|
-
ff-mini-modal-footer-background
|
84
|
-
)};
|
85
|
-
|
86
|
-
--input-default-border-color: #{map-get(
|
87
|
-
$theme-map,
|
88
|
-
input-default-border-color
|
89
|
-
)};
|
90
|
-
--input-hover-border-color: #{map-get($theme-map, input-hover-border-color)};
|
91
|
-
--input-default-label-color: #{map-get($theme-map, input-default-label-color)};
|
92
|
-
--input-label-bg-color: #{map-get($theme-map, input-label-bg-color)};
|
93
|
-
--input-active-text-color: #{map-get($theme-map, input-active-text-color)};
|
94
|
-
--input-error-text-color: #{map-get($theme-map, input-error-text-color)};
|
95
|
-
--tabs-label-default-color: #{map-get($theme-map, tabs-label-default-color)};
|
96
|
-
--tabs-label-active-color: #{map-get($theme-map, tabs-label-active-color)};
|
97
|
-
--tabs-border-color: #{map-get($theme-map, tabs-border-color)};
|
98
|
-
--tabs-bg-color: #{map-get($theme-map, tabs-bg-color)};
|
99
|
-
--tab-bg-color: #{map-get($theme-map, tab-bg-color)};
|
100
|
-
--option-card-border-color: #{map-get($theme-map, option-card-border-color)};
|
101
|
-
--option-card-bg-color: #{map-get($theme-map, option-card-bg-color)};
|
102
|
-
--checkbox-bg-color: #{map-get($theme-map, checkbox-bg-color)};
|
103
|
-
--checkbox-border-color: #{map-get($theme-map, checkbox-border-color)};
|
104
|
-
--checkbox-partial-color: #{map-get($theme-map, checkbox-partial-color)};
|
105
|
-
--checkbox-hover-color: #{map-get($theme-map, checkbox-hover-color)};
|
106
|
-
--multi-select-border: #{map-get($theme-map, multi-select-border)};
|
107
|
-
--text-color-light: #{map-get($theme-map, text-color-light)};
|
108
|
-
--multi-select-label-bg: #{map-get($theme-map, multi-select-label-bg)};
|
109
|
-
--radio-button-border: #{map-get($theme-map, radio-button-border)};
|
110
|
-
--radio-button-hover: #{map-get($theme-map, radio-button-hover)};
|
111
|
-
--tree-connecting-lines-color: #{map-get(
|
112
|
-
$theme-map,
|
113
|
-
tree-connecting-lines-color
|
114
|
-
)};
|
115
|
-
--menu-option-icon-color: #{map-get($theme-map, menu-option-icon-color)};
|
116
|
-
--menu-option-icon-clicked: #{map-get($theme-map, menu-option-icon-clicked)};
|
117
|
-
--delete-text-color: #{map-get($theme-map, delete-text-color)};
|
118
|
-
--status-success-text-color: #{map-get($theme-map, status-success-text-color)};
|
119
|
-
--status-warning-text-color: #{map-get($theme-map, status-warning-text-color)};
|
120
|
-
--status-rejected-text-color: #{map-get(
|
121
|
-
$theme-map,
|
122
|
-
status-rejected-text-color
|
123
|
-
)};
|
124
|
-
--status-skipped-text-color: #{map-get($theme-map, status-skipped-text-color)};
|
125
|
-
--status-success-bg-color: #{map-get($theme-map, status-success-bg-color)};
|
126
|
-
--status-warning-bg-color: #{map-get($theme-map, status-warning-bg-color)};
|
127
|
-
--status-rejected-bg-color: #{map-get($theme-map, status-rejected-bg-color)};
|
128
|
-
--status-skipped-bg-color: #{map-get($theme-map, status-skipped-bg-color)};
|
129
|
-
--status-percentage-growth-bg-color: #{map-get(
|
130
|
-
$theme-map,
|
131
|
-
status-percentage-growth-bg-color
|
132
|
-
)};
|
133
|
-
|
134
|
-
// Select Dropdown Color
|
135
|
-
--ff-select-option-border-color: #{map-get(
|
136
|
-
$theme-map,
|
137
|
-
ff-select-option-border-color
|
138
|
-
)};
|
139
|
-
--ff-select-option-wrapper-box-shadow: #{map-get(
|
140
|
-
$theme-map,
|
141
|
-
ff-select-option-wrapper-box-shadow
|
142
|
-
)};
|
143
|
-
--ff-select-background-color: #{map-get(
|
144
|
-
$theme-map,
|
145
|
-
ff-select-background-color
|
146
|
-
)};
|
147
|
-
--ff-select-scroll-thumb-color: #{map-get(
|
148
|
-
$theme-map,
|
149
|
-
ff-select-scroll-thumb-color
|
150
|
-
)};
|
151
|
-
--ff-select-scroll-track-bg: #{map-get($theme-map, ff-select-scroll-track-bg)};
|
152
|
-
--ff-select-scroll-thumb-hover: #{map-get(
|
153
|
-
$theme-map,
|
154
|
-
ff-select-scroll-thumb-hover
|
155
|
-
)};
|
156
|
-
--ff-select-text-color: #{map-get($theme-map, ff-select-text-color)};
|
157
|
-
--ff-select-option-hover-color: #{map-get(
|
158
|
-
$theme-map,
|
159
|
-
ff-select-option-hover-color
|
160
|
-
)};
|
161
|
-
--ff-select-default-color: #{map-get($theme-map, ff-select-default-color)};
|
162
|
-
--ff-select-border-color: #{map-get($theme-map, ff-select-border-color)};
|
163
|
-
--ff-select-brand-color: #{map-get($theme-map, ff-select-brand-color)};
|
164
|
-
--ff-select-text-hover-color: #{map-get(
|
165
|
-
$theme-map,
|
166
|
-
ff-select-text-hover-color
|
167
|
-
)};
|
168
|
-
--toaster-boxshadow: #{map-get($theme-map, toaster-boxshadow)};
|
169
|
-
--toast-close-icon-wrapper-bg: #{map-get(
|
170
|
-
$theme-map,
|
171
|
-
toast-close-icon-wrapper-bg
|
172
|
-
)};
|
173
|
-
--toaster-success-border: #{map-get($theme-map, toaster-success-border)};
|
174
|
-
--toaster-warning-border: #{map-get($theme-map, toaster-warning-border)};
|
175
|
-
--toaster-info-border: #{map-get($theme-map, toaster-info-border)};
|
176
|
-
--toaster-danger_confirm-border: #{map-get(
|
177
|
-
$theme-map,
|
178
|
-
toaster-danger_confirm-border
|
179
|
-
)};
|
180
|
-
--ff-search-filed-clear-text: #{map-get(
|
181
|
-
$theme-map,
|
182
|
-
ff-search-filed-clear-text
|
183
|
-
)};
|
184
|
-
--ff-search-filed-placeholder-text: #{map-get(
|
185
|
-
$theme-map,
|
186
|
-
ff-search-filed-placeholder-text
|
187
|
-
)};
|
188
|
-
--ff-search-filed-close-Icon: #{map-get(
|
189
|
-
$theme-map,
|
190
|
-
ff-search-filed-close-Icon
|
191
|
-
)};
|
5
|
+
@each $key, $value in $theme-map {
|
6
|
+
--#{$key}: #{$value};
|
7
|
+
}
|
192
8
|
}
|
193
9
|
|
194
10
|
.ff-light-theme {
|
195
|
-
@include set-theme-variables(
|
11
|
+
@include set-theme-variables(base.$base-theme);
|
196
12
|
}
|
197
13
|
|
198
14
|
.ff-dark-theme {
|
199
|
-
@include set-theme-variables(
|
15
|
+
@include set-theme-variables(dark.$dark-theme);
|
200
16
|
}
|
@@ -1,11 +1,10 @@
|
|
1
|
-
@
|
2
|
-
@import '../../assets/styles/fonts';
|
1
|
+
@use '../../assets/styles/fonts';
|
3
2
|
|
4
3
|
.ff-drawer-container {
|
5
4
|
.ff-overlay {
|
6
5
|
position: fixed;
|
7
6
|
inset: 0;
|
8
|
-
background-color:
|
7
|
+
background-color: var(--drawer-title-color);
|
9
8
|
opacity: 0.5;
|
10
9
|
}
|
11
10
|
|
@@ -16,7 +15,7 @@
|
|
16
15
|
top: 0;
|
17
16
|
bottom: 0;
|
18
17
|
min-width: 450px;
|
19
|
-
background-color:
|
18
|
+
background-color: var(--primary-button-text-color);
|
20
19
|
z-index: 999;
|
21
20
|
transform: translateX(100%);
|
22
21
|
opacity: 0;
|
@@ -43,19 +42,19 @@
|
|
43
42
|
&--x-large {
|
44
43
|
transition: all 0.4s ease-in-out;
|
45
44
|
border-radius: 5px;
|
46
|
-
border: 2px solid
|
45
|
+
border: 2px solid var(--border-color);
|
47
46
|
}
|
48
47
|
|
49
48
|
.ff-drawer-header {
|
50
49
|
padding: 10px 8px 10px 8px;
|
51
50
|
display: flex;
|
52
51
|
gap: 10px;
|
53
|
-
border-bottom: 2px solid
|
52
|
+
border-bottom: 2px solid var(--border-color);
|
54
53
|
|
55
54
|
.ff-drawer-title {
|
56
55
|
@extend .fontSm;
|
57
56
|
font-weight: 600;
|
58
|
-
color:
|
57
|
+
color: var(--drawer-title-color);
|
59
58
|
display: flex;
|
60
59
|
align-items: center;
|
61
60
|
gap: 12px;
|
@@ -75,7 +74,7 @@
|
|
75
74
|
|
76
75
|
.ff-expand-collapse-button {
|
77
76
|
cursor: pointer;
|
78
|
-
background-color:
|
77
|
+
background-color: var(--button-bg-color);
|
79
78
|
outline: none;
|
80
79
|
border: none;
|
81
80
|
margin: 0;
|
@@ -91,7 +90,7 @@
|
|
91
90
|
}
|
92
91
|
|
93
92
|
.ff-drawer-body {
|
94
|
-
background-color:
|
93
|
+
background-color: var(--drawer-footer-bg);
|
95
94
|
padding: 8px;
|
96
95
|
height: calc(100vh - 76px);
|
97
96
|
overflow: hidden auto;
|
@@ -109,7 +108,7 @@
|
|
109
108
|
padding: 5px 16px 5px 16px;
|
110
109
|
display: flex;
|
111
110
|
justify-content: space-between;
|
112
|
-
border-top: 2px solid
|
111
|
+
border-top: 2px solid var(--drawer-footer-border);
|
113
112
|
|
114
113
|
.button-container {
|
115
114
|
display: flex;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
@import '../../assets/styles/colors';
|
2
1
|
|
3
2
|
.ff-icon-container {
|
4
3
|
display: flex;
|
@@ -12,10 +11,10 @@
|
|
12
11
|
box-sizing: content-box;
|
13
12
|
&:hover {
|
14
13
|
border-radius: 50%;
|
15
|
-
background-color:
|
16
|
-
box-shadow: 0px 0px 16px
|
14
|
+
background-color: var(--drawer-footer-bg);
|
15
|
+
box-shadow: 0px 0px 16px var(--toggle-strip-shadow);
|
17
16
|
& > svg {
|
18
|
-
color:
|
17
|
+
color: var(--brand-color);
|
19
18
|
}
|
20
19
|
}
|
21
20
|
}
|
@@ -23,12 +22,12 @@
|
|
23
22
|
.ff-icon-disabled {
|
24
23
|
cursor: no-drop;
|
25
24
|
& > svg {
|
26
|
-
color:
|
25
|
+
color: var(--toggle-strip-color);
|
27
26
|
}
|
28
27
|
&:hover {
|
29
28
|
box-shadow: none;
|
30
29
|
& > svg {
|
31
|
-
color:
|
30
|
+
color: var(--toggle-strip-color);
|
32
31
|
}
|
33
32
|
}
|
34
33
|
}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
@
|
2
|
-
@import '../../assets/styles/_fonts';
|
1
|
+
@use '../../assets/styles/_fonts';
|
3
2
|
|
4
3
|
@mixin circle($size, $border: none) {
|
5
4
|
width: $size;
|
@@ -16,7 +15,7 @@
|
|
16
15
|
.ff-radio {
|
17
16
|
@extend .fontSm;
|
18
17
|
position: relative;
|
19
|
-
color:
|
18
|
+
color: var(--text-color);
|
20
19
|
display: flex;
|
21
20
|
align-items: center;
|
22
21
|
cursor: pointer;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
@use "sass:map";
|
1
2
|
$switch-sizes: (
|
2
3
|
small: (
|
3
4
|
button-size: 16px,
|
@@ -20,10 +21,10 @@ $switch-sizes: (
|
|
20
21
|
);
|
21
22
|
|
22
23
|
@mixin switch-size($size) {
|
23
|
-
$button-size: map
|
24
|
-
$container-width: map
|
25
|
-
$container-height: map
|
26
|
-
$translate-x: map
|
24
|
+
$button-size: map.get(map.get($switch-sizes, $size), button-size);
|
25
|
+
$container-width: map.get(map.get($switch-sizes, $size), container-width);
|
26
|
+
$container-height: map.get(map.get($switch-sizes, $size), container-height);
|
27
|
+
$translate-x: map.get(map.get($switch-sizes, $size), translate-x);
|
27
28
|
|
28
29
|
width: $container-width;
|
29
30
|
height: $container-height;
|
package/vite.config.js
CHANGED
@@ -4,11 +4,19 @@ import svgrPlugin from 'vite-plugin-svgr';
|
|
4
4
|
|
5
5
|
export default {
|
6
6
|
plugins: [
|
7
|
-
react(
|
7
|
+
react(),
|
8
8
|
svgrPlugin({
|
9
9
|
svgrOptions: {
|
10
10
|
icon: true,
|
11
11
|
},
|
12
12
|
}),
|
13
13
|
],
|
14
|
+
css: {
|
15
|
+
preprocessorOptions: {
|
16
|
+
scss: {
|
17
|
+
// This option tells Vite to use Dart Sass for SCSS processing
|
18
|
+
implementation: require('sass'),
|
19
|
+
},
|
20
|
+
},
|
21
|
+
},
|
14
22
|
};
|