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.
Files changed (83) 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/Editor/Editor.d.ts +5 -0
  7. package/lib/components/Editor/Editor.stories.d.ts +6 -0
  8. package/lib/components/Editor/VariableDropdown.d.ts +5 -0
  9. package/lib/components/Editor/constants.d.ts +3 -0
  10. package/lib/components/Editor/index.d.ts +1 -0
  11. package/lib/components/Editor/types.d.ts +71 -0
  12. package/lib/components/ExcelFile/ChangeExcelStyles.d.ts +14 -0
  13. package/lib/components/ExcelFile/ColorBarselector/ColorBarSelector.d.ts +8 -0
  14. package/lib/components/ExcelFile/ContextMenu/ContextMenu.d.ts +4 -0
  15. package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +7 -0
  16. package/lib/components/ExcelFile/ExcelFile/Excel/Cell.d.ts +4 -0
  17. package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +5 -0
  18. package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +3 -0
  19. package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +5 -0
  20. package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +5 -0
  21. package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +8 -0
  22. package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +10 -0
  23. package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +3 -0
  24. package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +3 -0
  25. package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +5 -0
  26. package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +3 -0
  27. package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +81 -0
  28. package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +3 -0
  29. package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +130 -0
  30. package/lib/components/ExcelFile/ExcelFile/Excel/areModelsEqual.d.ts +1 -0
  31. package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +8 -0
  32. package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +22 -0
  33. package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +17 -0
  34. package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +2 -0
  35. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +21 -0
  36. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +3 -0
  37. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +24 -0
  38. package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +13 -0
  39. package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +67 -0
  40. package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +22 -0
  41. package/lib/components/ExcelFile/ExcelFile/Excel/point.d.ts +11 -0
  42. package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +27 -0
  43. package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +95 -0
  44. package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +215 -0
  45. package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +3 -0
  46. package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +3 -0
  47. package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +45 -0
  48. package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +3 -0
  49. package/lib/components/ExcelFile/ExcelFile.stories.d.ts +6 -0
  50. package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +15 -0
  51. package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +3 -0
  52. package/lib/components/ExcelFile/ImportExcelStyles.d.ts +24 -0
  53. package/lib/components/ExcelFile/Types.d.ts +176 -0
  54. package/lib/components/ExcelFile/index.d.ts +1 -0
  55. package/lib/components/InputWithDropdown/InputWithDropdown.d.ts +1 -1
  56. package/lib/components/InputWithDropdown/types.d.ts +3 -1
  57. package/lib/components/Select/Select.d.ts +3 -2
  58. package/lib/components/Select/components/Dropdown.d.ts +5 -0
  59. package/lib/components/Select/components/types.d.ts +18 -0
  60. package/lib/components/Select/types.d.ts +2 -42
  61. package/lib/index.d.ts +7 -12
  62. package/lib/index.esm.js +200 -330
  63. package/lib/index.esm.js.map +1 -1
  64. package/lib/index.js +199 -329
  65. package/lib/index.js.map +1 -1
  66. package/lib/tsconfig.tsbuildinfo +1 -1
  67. package/lib/utils/find/findAndInsert.d.ts +7 -0
  68. package/lib/utils/find/findAndInsert.stories.d.ts +7 -0
  69. package/package.json +3 -3
  70. package/src/assets/Themes/BaseTheme.scss +1 -0
  71. package/src/assets/Themes/DarkTheme.scss +2 -0
  72. package/src/components/Icon/Icons.scss +4 -0
  73. package/src/components/InputWithDropdown/InputWithDropdown.scss +30 -1
  74. package/src/components/InputWithDropdown/InputWithDropdown.tsx +45 -16
  75. package/src/components/InputWithDropdown/types.ts +5 -1
  76. package/src/components/Select/Select.scss +121 -188
  77. package/src/components/Select/Select.stories.tsx +4 -1
  78. package/src/components/Select/Select.tsx +140 -296
  79. package/src/components/Select/components/Dropdown.scss +50 -0
  80. package/src/components/Select/components/Dropdown.tsx +94 -0
  81. package/src/components/Select/components/types.ts +20 -0
  82. package/src/components/Select/types.ts +15 -39
  83. package/src/utils/getSelectOptionValue/getSelectOptionValue.ts +1 -1
@@ -1,250 +1,183 @@
1
1
  @use '../../assets/styles/fonts';
2
2
 
3
- // todo color need to be add into style guide
4
- @mixin transition-all($time: 0.3s) {
5
- transition: opacity $time ease-out, transform $time ease-out,
6
- font-size $time ease-out, padding $time ease-out;
7
- }
8
-
9
- @mixin absolute-position($top: auto, $right: auto, $bottom: auto, $left: auto) {
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 opacity-style($opacity: 1, $color: null, $border-color-arg: null) {
18
- opacity: $opacity;
12
+ @mixin select-state-style($color) {
13
+ border-color: $color;
19
14
 
20
- @if $color {
15
+ .ff-select-label {
21
16
  color: $color;
22
17
  }
23
18
 
24
- @if $border-color-arg {
25
- border-color: $border-color-arg;
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
- position: relative;
31
-
32
- .ff-select-input {
33
- cursor: pointer;
34
- }
27
+ min-height: 24px;
28
+ min-width: 50px;
35
29
 
36
30
  .ff-select {
37
- @extend .fontSm;
38
- margin: 0;
39
- padding: 0;
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: end;
35
+ align-items: center;
36
+ justify-content: space-evenly;
45
37
  position: relative;
38
+ box-sizing: border-box;
46
39
 
47
- &-fieldset {
48
- margin: 0;
49
- padding: 25px 0px 0px 8px;
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
- &--active {
70
- @include opacity-style(1, null, var(--ff-select-brand-color));
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
- &--option {
74
- opacity: 1;
55
+ &__disabled {
56
+ cursor: not-allowed;
57
+ color: var(--ff-select-border-color);
75
58
  }
59
+ }
76
60
 
77
- &--no-border {
78
- border-color: transparent;
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
- &--error {
82
- border-color: var(--error-light);
69
+ .ff-select-arrow {
70
+ @include svg-path-style(var(--ff-select-border-color));
83
71
  }
84
72
 
85
- .ff-select-legend {
86
- @extend .font-size-8;
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
- &-input {
78
+ .ff-select-label {
115
79
  @extend .fontSm;
116
- @include absolute-position(6px, auto, auto, auto);
117
- width: 100%;
118
- min-height: calc(100% - 8px);
119
- padding: 0 28px 0 8px;
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
- &:hover {
127
- ~ .ff-select-label {
128
- color: var(--ff-select-text-hover-color);
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
- &--border-radius {
133
- border-radius: 0px 4px 4px 0px;
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
- &--default {
137
- @include opacity-style(1, null, var(--ff-select-border-color));
138
-
139
- &:hover {
140
- border-color: var(--ff-select-text-color);
141
-
142
- ~ .ff-select-fieldset--option {
143
- border-color: var(--ff-select-text-color);
144
-
145
- .ff-select-legend--option {
146
- color: var(--ff-select-text-color);
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
- &--no-label {
153
- min-height: calc(100% - 2px);
154
- margin-top: 0px;
155
- top: 0px;
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
- &--no-border {
167
- border: none;
168
- border-color: transparent;
131
+ &__error {
132
+ border-color: var(--error_light);
169
133
 
170
- &:hover {
171
- border-color: transparent;
134
+ &:hover {
135
+ border-color: var(--error_light);
172
136
 
173
- ~ .ff-select-fieldset--no-border {
174
- border-color: transparent;
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
- ~ .ff-select-label--default {
186
- color: var(--ff-select-default-color);
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
- &--error {
192
- border-color: var(--error-light);
193
-
148
+ &__focused {
194
149
  &:hover {
195
- border-color: var(--error-light);
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
- &--default {
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
- @include transition-all;
217
- opacity: 0;
218
- transform: translateY(-150%);
219
- padding: 0 6px;
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
- &-arrow {
228
- position: absolute;
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
- &--down {
240
- transform: rotateX(0deg) translateY(-50%);
241
- z-index: 101;
172
+ &:hover {
173
+ border-color: transparent;
242
174
  }
243
175
  }
244
176
  }
245
177
 
246
- &-error-text {
247
- @include absolute-position(auto, auto, -14px, 12px);
248
- white-space: nowrap;
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: { label: 'Option 2', value: 'Option 2' },
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',