pixel-react 1.2.8 → 1.2.9
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/components/AddButton/AddButton.d.ts +5 -0
- package/lib/components/AddButton/AddButton.stories.d.ts +6 -0
- package/lib/components/AddButton/index.d.ts +1 -0
- package/lib/components/AddButton/types.d.ts +4 -0
- package/lib/components/Editor/Editor.d.ts +5 -0
- package/lib/components/Editor/Editor.stories.d.ts +6 -0
- package/lib/components/Editor/VariableDropdown.d.ts +5 -0
- package/lib/components/Editor/constants.d.ts +3 -0
- package/lib/components/Editor/index.d.ts +1 -0
- package/lib/components/Editor/types.d.ts +71 -0
- package/lib/components/ExcelFile/ChangeExcelStyles.d.ts +14 -0
- package/lib/components/ExcelFile/ColorBarselector/ColorBarSelector.d.ts +8 -0
- package/lib/components/ExcelFile/ContextMenu/ContextMenu.d.ts +4 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +7 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Cell.d.ts +4 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +8 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +10 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +81 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +130 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/areModelsEqual.d.ts +1 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +8 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +22 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +17 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +2 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +21 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +24 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +13 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +67 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +22 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/point.d.ts +11 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +27 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +95 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +215 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +45 -0
- package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile.stories.d.ts +6 -0
- package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +15 -0
- package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +3 -0
- package/lib/components/ExcelFile/ImportExcelStyles.d.ts +24 -0
- package/lib/components/ExcelFile/Types.d.ts +176 -0
- package/lib/components/ExcelFile/index.d.ts +1 -0
- package/lib/components/InputWithDropdown/InputWithDropdown.d.ts +1 -1
- package/lib/components/InputWithDropdown/types.d.ts +3 -1
- package/lib/components/Select/Select.d.ts +3 -2
- package/lib/components/Select/components/Dropdown.d.ts +5 -0
- package/lib/components/Select/components/types.d.ts +18 -0
- package/lib/components/Select/types.d.ts +2 -42
- package/lib/index.d.ts +7 -12
- package/lib/index.esm.js +200 -330
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +199 -329
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/find/findAndInsert.d.ts +7 -0
- package/lib/utils/find/findAndInsert.stories.d.ts +7 -0
- package/package.json +3 -3
- package/src/assets/Themes/BaseTheme.scss +1 -0
- package/src/assets/Themes/DarkTheme.scss +2 -0
- package/src/components/Icon/Icons.scss +4 -0
- package/src/components/InputWithDropdown/InputWithDropdown.scss +30 -1
- package/src/components/InputWithDropdown/InputWithDropdown.tsx +45 -16
- package/src/components/InputWithDropdown/types.ts +5 -1
- package/src/components/Select/Select.scss +121 -188
- package/src/components/Select/Select.stories.tsx +4 -1
- package/src/components/Select/Select.tsx +140 -296
- package/src/components/Select/components/Dropdown.scss +50 -0
- package/src/components/Select/components/Dropdown.tsx +94 -0
- package/src/components/Select/components/types.ts +20 -0
- package/src/components/Select/types.ts +15 -39
- package/src/utils/getSelectOptionValue/getSelectOptionValue.ts +1 -1
@@ -1,250 +1,183 @@
|
|
1
1
|
@use '../../assets/styles/fonts';
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
position: absolute;
|
11
|
-
top: $top;
|
12
|
-
right: $right;
|
13
|
-
bottom: $bottom;
|
14
|
-
left: $left;
|
3
|
+
@mixin svg-path-style($fill-color: var(--ff-select-brand-color)) {
|
4
|
+
svg {
|
5
|
+
path {
|
6
|
+
fill: $fill-color;
|
7
|
+
transition: all 0.18s ease;
|
8
|
+
}
|
9
|
+
}
|
15
10
|
}
|
16
11
|
|
17
|
-
@mixin
|
18
|
-
|
12
|
+
@mixin select-state-style($color) {
|
13
|
+
border-color: $color;
|
19
14
|
|
20
|
-
|
15
|
+
.ff-select-label {
|
21
16
|
color: $color;
|
22
17
|
}
|
23
18
|
|
24
|
-
|
25
|
-
|
19
|
+
.ff-select-arrow-wrapper {
|
20
|
+
.ff-select-arrow {
|
21
|
+
@include svg-path-style($color);
|
22
|
+
}
|
26
23
|
}
|
27
24
|
}
|
28
25
|
|
29
26
|
.ff-select-wrapper {
|
30
|
-
|
31
|
-
|
32
|
-
.ff-select-input {
|
33
|
-
cursor: pointer;
|
34
|
-
}
|
27
|
+
min-height: 24px;
|
28
|
+
min-width: 50px;
|
35
29
|
|
36
30
|
.ff-select {
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
box-sizing: border-box;
|
41
|
-
min-height: 32px;
|
42
|
-
min-width: 100px;
|
31
|
+
height: 100%;
|
32
|
+
border: 1px solid var(--ff-select-border-color);
|
33
|
+
border-radius: 4px;
|
43
34
|
display: flex;
|
44
|
-
align-items:
|
35
|
+
align-items: center;
|
36
|
+
justify-content: space-evenly;
|
45
37
|
position: relative;
|
38
|
+
box-sizing: border-box;
|
46
39
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
border: 1px solid transparent;
|
51
|
-
box-sizing: border-box;
|
52
|
-
height: 100%;
|
53
|
-
width: 100%;
|
54
|
-
border-radius: 4px;
|
55
|
-
display: block;
|
56
|
-
|
57
|
-
&--border-radius {
|
58
|
-
border-radius: 0px 4px 4px 0px;
|
59
|
-
}
|
60
|
-
|
61
|
-
&--no-label {
|
62
|
-
padding: 30px 0px 0px 8px;
|
63
|
-
}
|
64
|
-
|
65
|
-
&--default {
|
66
|
-
@include opacity-style(0, null, var(--ff-select-border-color));
|
67
|
-
}
|
40
|
+
&:hover {
|
41
|
+
@include select-state-style(var(--ff-select-text-hover-color));
|
42
|
+
}
|
68
43
|
|
69
|
-
|
70
|
-
|
71
|
-
|
44
|
+
.ff-select-input {
|
45
|
+
@extend .fontSm;
|
46
|
+
width: calc(100% - 8px);
|
47
|
+
padding: 0px 0px 0px 8px;
|
48
|
+
border: none;
|
49
|
+
outline: none;
|
50
|
+
line-height: 30px;
|
51
|
+
letter-spacing: 0.5px;
|
52
|
+
z-index: 10;
|
53
|
+
background: transparent;
|
72
54
|
|
73
|
-
|
74
|
-
|
55
|
+
&__disabled {
|
56
|
+
cursor: not-allowed;
|
57
|
+
color: var(--ff-select-border-color);
|
75
58
|
}
|
59
|
+
}
|
76
60
|
|
77
|
-
|
78
|
-
|
79
|
-
|
61
|
+
.ff-select-arrow-wrapper {
|
62
|
+
cursor: pointer;
|
63
|
+
height: 100%;
|
64
|
+
padding: 0px;
|
65
|
+
padding-right: 8px;
|
66
|
+
display: flex;
|
67
|
+
align-items: center;
|
80
68
|
|
81
|
-
|
82
|
-
|
69
|
+
.ff-select-arrow {
|
70
|
+
@include svg-path-style(var(--ff-select-border-color));
|
83
71
|
}
|
84
72
|
|
85
|
-
|
86
|
-
|
87
|
-
padding: 0 2px;
|
88
|
-
letter-spacing: 0.5px;
|
89
|
-
|
90
|
-
&--default {
|
91
|
-
@include transition-all(0.3s);
|
92
|
-
opacity: 0;
|
93
|
-
}
|
94
|
-
|
95
|
-
&--active {
|
96
|
-
@include transition-all(0.25s);
|
97
|
-
@include opacity-style(1, var(--ff-select-brand-color));
|
98
|
-
}
|
99
|
-
|
100
|
-
&--option {
|
101
|
-
@include opacity-style(1, var(--ff-select-default-color));
|
102
|
-
}
|
103
|
-
|
104
|
-
&--error {
|
105
|
-
color: var(--error-light);
|
106
|
-
}
|
107
|
-
|
108
|
-
&--required {
|
109
|
-
margin-right: 2px;
|
110
|
-
}
|
73
|
+
&__disabled {
|
74
|
+
cursor: not-allowed;
|
111
75
|
}
|
112
76
|
}
|
113
77
|
|
114
|
-
|
78
|
+
.ff-select-label {
|
115
79
|
@extend .fontSm;
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
80
|
+
position: absolute;
|
81
|
+
left: 8px;
|
82
|
+
color: var(--ff-select-border-color);
|
83
|
+
letter-spacing: 0.5px;
|
84
|
+
line-height: 18px;
|
85
|
+
transition: 0.18s ease all;
|
120
86
|
border-radius: 4px;
|
121
|
-
border: 1px solid transparent;
|
122
|
-
z-index: 100;
|
123
|
-
background: transparent;
|
124
|
-
outline: none;
|
125
87
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
88
|
+
&__active {
|
89
|
+
@extend .font-size-8;
|
90
|
+
transform: translateY(-15px);
|
91
|
+
transition: 0.18s ease all;
|
92
|
+
background-color: var(--ff-select-background-color);
|
93
|
+
padding: 0px 4px;
|
94
|
+
z-index: 100000;
|
130
95
|
}
|
96
|
+
}
|
131
97
|
|
132
|
-
|
133
|
-
|
98
|
+
&__focus {
|
99
|
+
border-color: var(--ff-select-brand-color);
|
100
|
+
&:hover {
|
101
|
+
@include select-state-style(var(--ff-select-brand-color));
|
134
102
|
}
|
135
103
|
|
136
|
-
|
137
|
-
@
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
104
|
+
.ff-select-label {
|
105
|
+
@extend .font-size-8;
|
106
|
+
transform: translateY(-15px);
|
107
|
+
transition: 0.18s ease all;
|
108
|
+
color: var(--ff-select-brand-color);
|
109
|
+
background-color: var(--ff-select-background-color);
|
110
|
+
padding: 0px 4px;
|
111
|
+
line-height: 18px;
|
112
|
+
z-index: 100000;
|
113
|
+
}
|
114
|
+
|
115
|
+
.ff-select-arrow-wrapper {
|
116
|
+
.ff-select-arrow {
|
117
|
+
transform: rotate(180deg);
|
118
|
+
transition: 0.18s ease all;
|
119
|
+
@include svg-path-style(var(--ff-select-brand-color));
|
149
120
|
}
|
150
121
|
}
|
122
|
+
}
|
151
123
|
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
}
|
157
|
-
|
158
|
-
&--active {
|
159
|
-
border-color: transparent;
|
160
|
-
|
161
|
-
&:hover {
|
162
|
-
border-color: transparent;
|
163
|
-
}
|
124
|
+
&__disabled {
|
125
|
+
cursor: not-allowed;
|
126
|
+
&:hover {
|
127
|
+
@include select-state-style(var(--ff-select-border-color));
|
164
128
|
}
|
129
|
+
}
|
165
130
|
|
166
|
-
|
167
|
-
|
168
|
-
border-color: transparent;
|
131
|
+
&__error {
|
132
|
+
border-color: var(--error_light);
|
169
133
|
|
170
|
-
|
171
|
-
|
134
|
+
&:hover {
|
135
|
+
border-color: var(--error_light);
|
172
136
|
|
173
|
-
|
174
|
-
|
175
|
-
}
|
137
|
+
.ff-select-label {
|
138
|
+
color: var(--error_light);
|
176
139
|
}
|
177
|
-
}
|
178
|
-
|
179
|
-
&--disable {
|
180
|
-
border-color: var(--ff-select-border-color);
|
181
|
-
|
182
|
-
&:hover {
|
183
|
-
border-color: var(--ff-select-border-color);
|
184
140
|
|
185
|
-
|
186
|
-
|
141
|
+
.ff-select-arrow-wrapper {
|
142
|
+
.ff-select-arrow {
|
143
|
+
@include svg-path-style(var(--ff-select-default-color));
|
187
144
|
}
|
188
145
|
}
|
189
146
|
}
|
190
147
|
|
191
|
-
|
192
|
-
border-color: var(--error-light);
|
193
|
-
|
148
|
+
&__focused {
|
194
149
|
&:hover {
|
195
|
-
|
150
|
+
.ff-select-arrow-wrapper {
|
151
|
+
.ff-select-arrow {
|
152
|
+
@include svg-path-style(var(--ff-select-brand-color));
|
153
|
+
}
|
154
|
+
}
|
196
155
|
}
|
197
156
|
}
|
198
|
-
}
|
199
|
-
|
200
|
-
&-label {
|
201
|
-
@include absolute-position(13px, auto, auto, 8px);
|
202
|
-
z-index: 1;
|
203
|
-
font-size: 12px;
|
204
|
-
top: 60%;
|
205
|
-
padding-left: 8px;
|
206
157
|
|
207
|
-
|
208
|
-
@include transition-all;
|
209
|
-
@include opacity-style(1, var(--ff-select-default-color));
|
210
|
-
|
211
|
-
transform: translateY(-50%);
|
212
|
-
}
|
213
|
-
|
214
|
-
&--active {
|
158
|
+
.ff-select-label {
|
215
159
|
@extend .font-size-8;
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
&--required {
|
223
|
-
margin-right: 2px;
|
160
|
+
transform: translateY(-16px);
|
161
|
+
transition: 0.3s ease all;
|
162
|
+
color: var(--error_light);
|
163
|
+
background-color: var(--ff-select-background-color);
|
164
|
+
padding: 0px 4px;
|
165
|
+
line-height: 18px;
|
224
166
|
}
|
225
167
|
}
|
226
168
|
|
227
|
-
|
228
|
-
|
229
|
-
top: 60%;
|
230
|
-
height: 100%;
|
231
|
-
right: 10px;
|
232
|
-
transform: rotateX(180deg) translateY(50%);
|
233
|
-
cursor: pointer;
|
234
|
-
|
235
|
-
&--no-label {
|
236
|
-
top: 50%;
|
237
|
-
}
|
169
|
+
&__no_border {
|
170
|
+
border-color: transparent;
|
238
171
|
|
239
|
-
|
240
|
-
|
241
|
-
z-index: 101;
|
172
|
+
&:hover {
|
173
|
+
border-color: transparent;
|
242
174
|
}
|
243
175
|
}
|
244
176
|
}
|
245
177
|
|
246
|
-
|
247
|
-
|
248
|
-
|
178
|
+
.ff-select-error-msg {
|
179
|
+
padding-left: 8px;
|
180
|
+
margin-top: 4px;
|
181
|
+
letter-spacing: 0.5px;
|
249
182
|
}
|
250
183
|
}
|
@@ -113,7 +113,10 @@ export const Disable: Story = {
|
|
113
113
|
export const WithInitialValue: Story = {
|
114
114
|
args: {
|
115
115
|
label: 'Select',
|
116
|
-
selectedOption: {
|
116
|
+
selectedOption: {
|
117
|
+
label: 'fire-flink-LIC4900-onPrem',
|
118
|
+
value: 'fire-flink-LIC4900-onPrem',
|
119
|
+
},
|
117
120
|
optionsList: [
|
118
121
|
{
|
119
122
|
label: 'fire-flink-LIC4900-onPrem',
|