@inceptionbg/iui 2.0.8 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/dist/icons/index.d.ts +2 -2
  2. package/dist/icons/index.js +1 -1
  3. package/dist/index.d.ts +286 -259
  4. package/dist/index.js +1 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/iui.css +1 -1
  7. package/idea/GridTable/GridTable.tsx +119 -0
  8. package/idea/GridTable/gridTable.scss +42 -0
  9. package/{src/components → idea}/Table/Components/Print/CustomTablePrint.tsx +2 -2
  10. package/{src/components → idea}/Table/Components/Print/TablePrint.tsx +2 -2
  11. package/{src/components → idea}/Table/Components/SetTableFilter.tsx +1 -1
  12. package/{src/components → idea}/Table/Components/TableOptions.tsx +4 -4
  13. package/idea/{Table2 → Table}/Table.tsx +151 -281
  14. package/idea/Table/hooks/useDefaultTemplate.ts +20 -0
  15. package/{src/components → idea}/Table/hooks/useTableKeyboard.ts +1 -2
  16. package/idea/Table/hooks/useTableSelect.ts +11 -0
  17. package/package.json +1 -1
  18. package/src/assets/icons/index.ts +1 -1
  19. package/src/assets/icons/light/faClipboardCheck.ts +15 -0
  20. package/src/assets/icons/light/faHouse.ts +15 -15
  21. package/src/assets/icons/light/faIdBadge.ts +15 -15
  22. package/src/assets/icons/light/faPen.ts +15 -0
  23. package/src/components/Button/IconButton.tsx +3 -1
  24. package/src/components/Dialog/Dialog.tsx +59 -123
  25. package/src/components/Dialog/components/DialogFooter.tsx +92 -0
  26. package/src/components/Dialog/hooks/useDialogKeyboard.ts +6 -5
  27. package/src/components/Header/Header.tsx +1 -1
  28. package/src/components/Inputs/DateInput/DateInput.tsx +108 -102
  29. package/src/components/Inputs/DateInput/components/DatePartInput.tsx +7 -3
  30. package/src/components/Inputs/InputWrapper.tsx +6 -1
  31. package/src/components/Inputs/SearchInput.tsx +9 -4
  32. package/src/components/Inputs/Select2/Select.tsx +65 -30
  33. package/src/components/Inputs/Select2/select.scss +13 -14
  34. package/src/components/Inputs/Selects/components/SelectWrapper.tsx +4 -2
  35. package/src/components/Inputs/Selects/utils/selectStyles.ts +9 -12
  36. package/src/components/Menu/Menu.tsx +10 -2
  37. package/src/components/Menu/MenuItem.tsx +11 -10
  38. package/src/components/Menu/hooks/useMenuPosition.tsx +23 -6
  39. package/src/components/Pullover/Pullover.tsx +122 -59
  40. package/src/components/Table/Table.tsx +78 -342
  41. package/src/components/Table/components/edit/TableEditRow.tsx +69 -0
  42. package/src/components/Table/components/filters/FilterItem.tsx +15 -0
  43. package/src/components/Table/components/filters/TableFilters.tsx +125 -0
  44. package/src/components/Table/components/footer/TableFooter.tsx +128 -0
  45. package/src/components/Table/components/header/TableHeader.tsx +42 -0
  46. package/src/components/Table/components/header/TableHeaderRow.tsx +47 -0
  47. package/src/components/Table/components/items/TableItemActions.tsx +66 -0
  48. package/src/components/Table/components/select/TableSelect.tsx +49 -0
  49. package/src/components/Table/components/sort/TableSort.tsx +52 -0
  50. package/src/components/Table/contexts/TableContext.tsx +123 -0
  51. package/src/components/Table/hooks/localHooks/useLocalTableColumns.tsx +73 -0
  52. package/src/components/Table/hooks/localHooks/useLocalTableData.tsx +78 -0
  53. package/src/components/Table/hooks/localHooks/useLocalTableKeyboard.ts +173 -0
  54. package/src/components/Table/hooks/localHooks/useLocalTablePagination.ts +12 -0
  55. package/src/components/Table/hooks/useTableEdit.tsx +111 -0
  56. package/src/components/Table/hooks/useTableFilterFields.tsx +150 -0
  57. package/src/components/Table/hooks/useTablePagination.ts +16 -0
  58. package/src/components/Table/hooks/useTableSearch.ts +29 -0
  59. package/src/components/Table/hooks/useTableSort.ts +8 -0
  60. package/src/components/Tooltip/Tooltip.tsx +1 -1
  61. package/src/components/Wrappers/PageLayout.tsx +9 -12
  62. package/src/hooks/useGetFocusableElements.ts +42 -0
  63. package/src/hooks/useLocalPopoverControl.ts +38 -0
  64. package/src/hooks/usePopupControl.ts +13 -0
  65. package/src/index.ts +53 -39
  66. package/src/styles/components/_accordions.scss +1 -1
  67. package/src/styles/components/_badge.scss +4 -3
  68. package/src/styles/components/_card.scss +1 -1
  69. package/src/styles/components/_dialog.scss +8 -8
  70. package/src/styles/components/_input.scss +1 -1
  71. package/src/styles/components/_inputCheckbox.scss +1 -1
  72. package/src/styles/components/_inputDateTime.scss +2 -2
  73. package/src/styles/components/_inputRadio.scss +1 -1
  74. package/src/styles/components/_inputSelect.scss +6 -4
  75. package/src/styles/components/_menu-v2.scss +1 -1
  76. package/src/styles/components/_menu.scss +23 -15
  77. package/src/styles/components/_pullover.scss +74 -18
  78. package/src/styles/components/_table.scss +151 -142
  79. package/src/styles/components/_widget.scss +1 -1
  80. package/src/styles/variables/_bp.scss +1 -0
  81. package/src/styles/variables/_variables.scss +4 -2
  82. package/src/types/IKeyboard.ts +2 -1
  83. package/src/types/IMenu.ts +1 -0
  84. package/src/types/ISelect.ts +1 -0
  85. package/src/types/ITable.ts +87 -80
  86. package/src/utils/fileUtils.ts +3 -3
  87. package/src/utils/i18n/i18nIUICyrilic.ts +4 -0
  88. package/src/utils/i18n/i18nIUILatin.ts +3 -1
  89. package/src/utils/i18n/i18nIUIMe.ts +4 -0
  90. package/src/utils/{ObjectUtils.ts → objectUtils.ts} +8 -8
  91. package/src/utils/popupUtils.ts +82 -0
  92. package/src/utils/{TableUtils.ts → tableUtils.ts} +5 -5
  93. package/src/utils/{Toasts.ts → toasts.ts} +6 -6
  94. package/src/utils/{UrlUtils.ts → urlUtils.ts} +4 -4
  95. package/idea/Table2/Components/Columns/ColumnsList.tsx +0 -56
  96. package/idea/Table2/Components/Columns/SetColumnsList.tsx +0 -107
  97. package/idea/Table2/Components/Edit/ItemActionsMenu.tsx +0 -87
  98. package/idea/Table2/Components/Edit/ItemEditOptionsButtons.tsx +0 -32
  99. package/idea/Table2/Components/Edit/TableEditRow.tsx +0 -56
  100. package/idea/Table2/Components/FilterItem.tsx +0 -20
  101. package/idea/Table2/Components/Header/TableHeader.tsx +0 -35
  102. package/idea/Table2/Components/Header/TableHeaderRow.tsx +0 -37
  103. package/idea/Table2/Components/Print/CustomTablePrint.tsx +0 -119
  104. package/idea/Table2/Components/Print/TablePrint.tsx +0 -208
  105. package/idea/Table2/Components/SetSortList.tsx +0 -33
  106. package/idea/Table2/Components/SetTableFilter.tsx +0 -90
  107. package/idea/Table2/Components/TableFooter.tsx +0 -107
  108. package/idea/Table2/Components/TableOptions.tsx +0 -211
  109. package/idea/Table2/Components/Templates/TemplateCreate.tsx +0 -75
  110. package/idea/Table2/Components/Templates/TemplateCreateDefault.tsx +0 -45
  111. package/idea/Table2/Components/Templates/TemplateList.tsx +0 -167
  112. package/idea/Table2/Components/Templates/repo/TemplateRepo.ts +0 -51
  113. package/idea/Table2/_table.scss +0 -300
  114. package/idea/Table2/hooks/useDefaultTemplate.ts +0 -22
  115. package/idea/Table2/hooks/useTableKeyboard.ts +0 -115
  116. package/src/assets/icons/light/faPenField.ts +0 -15
  117. package/src/assets/icons/solid/faMagnifyingGlass.ts +0 -15
  118. package/src/components/Dialog/DeleteItemDialog.tsx +0 -52
  119. package/src/components/Dialog/hooks/useDialogObserver.ts +0 -21
  120. /package/{src/components → idea}/Table/Components/Columns/ColumnsList.tsx +0 -0
  121. /package/{src/components → idea}/Table/Components/Columns/SetColumnsList.tsx +0 -0
  122. /package/{src/components → idea}/Table/Components/Edit/ItemActionsMenu.tsx +0 -0
  123. /package/{src/components → idea}/Table/Components/Edit/ItemEditOptionsButtons.tsx +0 -0
  124. /package/{src/components → idea}/Table/Components/Edit/TableEditRow.tsx +0 -0
  125. /package/{src/components → idea}/Table/Components/FilterItem.tsx +0 -0
  126. /package/{src/components → idea}/Table/Components/Header/TableHeader.tsx +0 -0
  127. /package/{src/components → idea}/Table/Components/Header/TableHeaderRow.tsx +0 -0
  128. /package/{src/components → idea}/Table/Components/SetSortList.tsx +0 -0
  129. /package/{src/components → idea}/Table/Components/TableFooter.tsx +0 -0
  130. /package/{src/components → idea}/Table/Components/Templates/TemplateCreate.tsx +0 -0
  131. /package/{src/components → idea}/Table/Components/Templates/TemplateCreateDefault.tsx +0 -0
  132. /package/{src/components → idea}/Table/Components/Templates/TemplateList.tsx +0 -0
  133. /package/{src/components → idea}/Table/Components/Templates/repo/TemplateRepo.ts +0 -0
  134. /package/src/utils/{DateUtils.ts → dateUtils.ts} +0 -0
  135. /package/src/utils/{LocalStorageHelper.ts → localStorageHelper.ts} +0 -0
  136. /package/src/utils/{NumberUtils.ts → numberUtils.ts} +0 -0
  137. /package/src/utils/{RootDir.ts → rootDir.ts} +0 -0
  138. /package/src/utils/{StringUtils.ts → stringUtils.ts} +0 -0
@@ -1,37 +1,52 @@
1
+ @use '../variables/bp';
2
+
3
+ $viewportWidth: (25, 50, 75, 100);
4
+ $fixedWidth: (500, 600);
5
+
1
6
  .pullover {
2
7
  position: fixed;
3
8
  inset: 0;
9
+ z-index: 1000;
4
10
  display: flex;
5
11
  justify-content: end;
6
- z-index: 100;
7
12
  overflow: hidden;
8
- background: rgba(0, 0, 0, 0.4);
9
- backdrop-filter: blur(3px);
13
+ background: var(--neutral-t);
14
+ backdrop-filter: blur(4px);
10
15
  animation: fade-in 0.2s forwards;
11
16
  .container {
12
17
  transition: width, 0.2s;
13
- box-sizing: border-box;
14
- background: var(--white);
15
- height: 100%;
18
+ background: var(--background);
16
19
  width: 0;
17
- overflow: hidden;
18
20
  max-width: 100vw;
19
21
  .content {
20
- padding: 24px;
22
+ display: flex;
23
+ flex-direction: column;
24
+ height: 100dvh;
25
+ overflow: auto;
26
+ overscroll-behavior: none;
21
27
  }
22
28
  }
23
29
  &.open .container {
24
- &.s {
25
- width: 25vw;
30
+ @media #{bp.$mobile} {
31
+ width: 100%;
26
32
  }
27
- &.m {
28
- width: 50vw;
29
- }
30
- &.l {
31
- width: 75vw;
32
- }
33
- &.xl {
34
- width: 100vw;
33
+ @media #{bp.$not-mobile} {
34
+ @each $key in $viewportWidth {
35
+ &.vw#{$key} {
36
+ width: #{$key}vw;
37
+ .content {
38
+ min-width: #{$key}vw;
39
+ }
40
+ }
41
+ }
42
+ @each $key in $fixedWidth {
43
+ &.w#{$key} {
44
+ width: #{$key}px;
45
+ .content {
46
+ min-width: #{$key}px;
47
+ }
48
+ }
49
+ }
35
50
  }
36
51
  }
37
52
  &.closing {
@@ -40,4 +55,45 @@
40
55
  width: 0px !important;
41
56
  }
42
57
  }
58
+
59
+ .pullover-form {
60
+ display: flex;
61
+ flex-direction: column;
62
+ flex: 1;
63
+ overflow: auto;
64
+ }
65
+
66
+ .pullover-header,
67
+ .pullover-footer {
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: flex-end;
71
+ gap: 16px;
72
+ padding: 16px 24px;
73
+ box-shadow: var(--container-shadow);
74
+ z-index: 2;
75
+ }
76
+ .pullover-header {
77
+ justify-content: space-between;
78
+ .search-input {
79
+ width: min(250px, 50vw);
80
+ }
81
+ }
82
+ .pullover-content {
83
+ flex: 1;
84
+ overflow: auto;
85
+ padding: 16px 24px;
86
+ }
87
+
88
+ @media #{bp.$mobile} {
89
+ .pullover-header,
90
+ .pullover-content,
91
+ .pullover-footer {
92
+ padding: 8px 16px;
93
+ gap: 8px;
94
+ }
95
+ .pullover-footer .main-actions {
96
+ gap: 8px;
97
+ }
98
+ }
43
99
  }
@@ -1,7 +1,5 @@
1
1
  @use '../variables/bp';
2
2
 
3
- $pagination-color: rgba(0, 0, 0, 0.8);
4
-
5
3
  table {
6
4
  border-spacing: 0px;
7
5
  border-collapse: collapse;
@@ -10,32 +8,35 @@ table {
10
8
  //// Header ////
11
9
  thead {
12
10
  z-index: 2;
13
- background-color: #f9fafb;
11
+ background-color: var(--primary-100);
14
12
  }
15
13
  th {
16
- padding: 0;
14
+ padding: 4px 12px;
17
15
  border-left: var(--border);
18
16
  border-right: var(--border);
19
17
 
20
- font-weight: 400;
18
+ font-weight: bold;
21
19
  p {
22
20
  font-size: 12px;
23
21
  }
24
22
  }
25
23
  .table-container {
26
24
  overflow: auto;
27
- // scroll-snap-type: y mandatory;
25
+ scroll-snap-type: y proximity;
26
+ // box-shadow: var(--container-shadow);
27
+ &::-webkit-scrollbar {
28
+ width: 8px;
29
+ }
28
30
  }
29
31
  .sticky-header {
30
- position: -webkit-sticky;
31
32
  position: sticky;
32
33
  top: 0;
34
+ z-index: 1;
33
35
  }
34
36
  .border-row {
37
+ background-color: var(--border-color);
35
38
  height: 1px;
36
- background-color: #dfe1eb;
37
- width: 100%;
38
- box-sizing: border-box;
39
+ padding: 0;
39
40
  }
40
41
 
41
42
  //// Body ////
@@ -44,13 +45,16 @@ table {
44
45
  // }
45
46
  // Row
46
47
  tr {
47
- // scroll-snap-align: start;
48
+ scroll-snap-align: start;
49
+ }
50
+ tbody tr {
51
+ // border-bottom: var(--border);
48
52
  &.clickable:hover,
49
53
  &.selected {
50
54
  background-color: rgba(0, 0, 0, 0.05);
51
55
  }
52
56
  &.focused {
53
- background-color: var(--primary-o10);
57
+ background-color: var(--primary-100);
54
58
  }
55
59
  &.loading {
56
60
  opacity: 0.5;
@@ -69,78 +73,91 @@ table {
69
73
  }
70
74
  td {
71
75
  border: var(--border);
72
- // border-bottom: var(--border);
76
+ border-top: none;
73
77
  font-size: 14px;
74
78
  box-sizing: border-box;
75
- height: 52px;
76
- padding: 7px 16px;
79
+ height: 48px;
80
+ padding: 6px 12px;
77
81
  &.s {
78
82
  height: 40px;
79
- padding: 2px 16px;
83
+ padding: 2px 12px;
80
84
  }
81
85
  &.xs {
82
86
  height: 30px;
83
- padding: 2px 16px;
87
+ padding: 2px 12px;
84
88
  }
85
89
  }
86
90
  .clickable-column:hover {
87
91
  background-color: var(--primary-o10) !important;
88
92
  }
93
+ // Item Actions
94
+ .table-item-actions {
95
+ display: flex;
96
+ align-items: center;
97
+ justify-content: center;
98
+ padding: 0 4px;
99
+ // gap: 8px;
100
+ }
89
101
 
90
102
  //// Footer ////
91
-
92
103
  .table-footer {
93
104
  display: flex;
94
105
  align-items: center;
95
106
  width: 100%;
96
- height: 52px;
97
107
  padding: 8px;
98
108
  font-size: var(--fs-m);
99
109
  box-sizing: border-box;
110
+ .pagination {
111
+ display: flex;
112
+ align-items: center;
113
+ gap: 12px;
114
+ color: var(--text);
115
+ p,
116
+ .offset-input {
117
+ font-size: 12px !important;
118
+ }
119
+ p {
120
+ white-space: nowrap;
121
+ }
122
+ .offset-input {
123
+ .iui-input-wrapper-field {
124
+ width: 40px;
125
+ min-height: 24px;
126
+ height: 24px;
127
+ }
128
+ input {
129
+ font-size: 12px !important;
130
+ text-align: center;
131
+ padding: 0 5px;
132
+ }
133
+ }
134
+
135
+ @media #{bp.$mobile} {
136
+ flex-direction: column;
137
+ align-items: end;
138
+ }
139
+ }
100
140
  }
101
- .pagination {
141
+
142
+ //// Actions ////
143
+ .iui-table-header-actions {
102
144
  display: flex;
103
- align-items: center;
104
- gap: 16px;
105
- color: $pagination-color;
106
- p,
107
- // select,
108
- .offset-input {
109
- font-size: 12px !important;
110
- }
111
- p {
112
- white-space: nowrap;
113
- }
114
- .separator {
115
- height: 16px;
116
- width: 1px;
117
- background-color: rgba(0, 0, 0, 0.6);
145
+ gap: 8px;
146
+ &:has(> *) {
147
+ padding: 8px 10px;
118
148
  }
119
- select {
120
- appearance: none;
121
- color: $pagination-color;
122
- background: none;
123
- border: none;
124
- text-align: right;
125
- cursor: pointer;
126
- padding: 0 8px;
127
- user-select: none;
128
- margin-left: 8px;
129
- margin-right: 16px;
149
+ }
150
+
151
+ @media #{bp.$landscape} {
152
+ .select-col,
153
+ .actions-col {
154
+ padding: 0;
130
155
  }
131
- .offset-input {
132
- width: 40px;
133
- input {
134
- font-size: 12px !important;
135
- height: 24px;
136
- text-align: center;
137
- padding: 0 5px;
138
- }
156
+ .select-col {
157
+ width: 50px;
139
158
  }
140
-
141
- @media #{bp.$mobile} {
142
- flex-direction: column;
143
- align-items: end;
159
+ .actions-col {
160
+ width: 70px;
144
161
  }
145
162
  }
146
163
 
@@ -150,13 +167,15 @@ table {
150
167
  display: block;
151
168
  }
152
169
  tr {
153
- padding: 20px 0;
170
+ padding-bottom: 20px;
171
+ border-top: var(--border);
154
172
  }
155
173
  td {
156
174
  display: flex;
157
175
  align-items: center;
158
176
  height: unset !important;
159
177
  text-align: left;
178
+ width: unset !important;
160
179
  }
161
180
  thead {
162
181
  display: none;
@@ -172,99 +191,89 @@ table {
172
191
  }
173
192
  }
174
193
 
175
- .iui-table-filter {
176
- .iui-dialog-content {
177
- padding: 0;
178
- margin: 8px 0;
179
- }
180
- .filters-search {
181
- display: flex;
182
- align-items: center;
183
- justify-content: space-between;
184
- gap: 8px;
185
- .search-input {
186
- max-width: 250px;
187
- }
188
- }
194
+ .iui-filters-list {
195
+ display: flex;
196
+ flex-direction: column;
197
+ gap: 16px;
189
198
  .table-filter-item {
190
199
  display: flex;
191
- align-items: center;
192
- justify-content: space-between;
193
- padding: 8px 16px;
194
- // .label {
195
- // width: 150px;
196
- // }
197
- .field {
198
- // display: inline-flex;
199
- // margin: 0 8px;
200
- // width: 100%;
201
- flex: 1;
200
+ flex-direction: column;
201
+ width: 100%;
202
+ gap: 6px;
203
+ .filter-item-label {
204
+ font-weight: 500;
205
+ text-overflow: ellipsis;
206
+ overflow: hidden;
207
+ white-space: nowrap;
208
+ cursor: default;
202
209
  }
203
210
  }
204
211
  }
205
212
 
206
- .dual-list-container {
207
- .dual-list-content {
208
- display: grid;
209
- grid-template-columns: 1fr auto 1fr;
210
- gap: 12px;
211
- }
212
- .list-box {
213
- border: var(--border);
214
- border-radius: 16px;
215
- padding: 10px;
216
- user-select: none;
217
- & > .item {
218
- display: flex;
219
- justify-content: space-between;
220
- align-items: center;
221
- padding: 8px;
222
- font-size: 12px;
223
- svg {
224
- color: rgba(0, 0, 0, 0.6);
225
- margin-left: 1rem;
226
- }
227
- &:hover {
228
- background-color: var(--primary-o10);
229
- }
230
- &:active {
231
- background-color: var(--primary-o25);
232
- }
233
- }
234
- }
235
- .exchange-icon {
236
- display: flex;
237
- align-items: center;
238
- svg {
239
- height: 20px;
240
- width: 20px;
241
- }
242
- }
243
- }
213
+ // .dual-list-container {
214
+ // .dual-list-content {
215
+ // display: grid;
216
+ // grid-template-columns: 1fr auto 1fr;
217
+ // gap: 12px;
218
+ // }
219
+ // .list-box {
220
+ // border: var(--border);
221
+ // border-radius: 16px;
222
+ // padding: 10px;
223
+ // user-select: none;
224
+ // & > .item {
225
+ // display: flex;
226
+ // justify-content: space-between;
227
+ // align-items: center;
228
+ // padding: 8px;
229
+ // font-size: 12px;
230
+ // svg {
231
+ // color: rgba(0, 0, 0, 0.6);
232
+ // margin-left: 1rem;
233
+ // }
234
+ // &:hover {
235
+ // background-color: var(--primary-o10);
236
+ // }
237
+ // &:active {
238
+ // background-color: var(--primary-o25);
239
+ // }
240
+ // }
241
+ // }
242
+ // .exchange-icon {
243
+ // display: flex;
244
+ // align-items: center;
245
+ // svg {
246
+ // height: 20px;
247
+ // width: 20px;
248
+ // }
249
+ // }
250
+ // }
244
251
 
245
252
  .edit-row {
246
253
  background: var(--neutral-100);
247
254
  td {
248
- padding: 4px !important;
249
- // padding: 0 !important;
250
- }
251
- .iui-input-wrapper-field {
252
- border: none;
253
- border-radius: 0;
254
- // height: 51px;
255
- box-shadow: none !important;
255
+ padding: 4px;
256
+ .iui-input-wrapper-field {
257
+ // border: none;
258
+ // border-radius: 0;
259
+ box-shadow: none !important;
260
+ }
261
+ .select-wrapper {
262
+ min-width: 120px;
263
+ }
256
264
  }
257
265
  }
258
- .primary-row {
259
- background-color: rgba(var(--primary-rgb), 0.15);
260
- }
261
- .secondary-row {
262
- background-color: #f1f1f1;
263
- }
264
266
 
265
- .table-options {
266
- display: flex;
267
- align-items: center;
268
- justify-content: space-between;
269
- padding: 8px;
270
- }
267
+ // .primary-row {
268
+ // background-color: var(--primary-100);
269
+ // }
270
+ // .secondary-row {
271
+ // background-color: #f1f1f1;
272
+ // }
273
+
274
+ // .table-options {
275
+ // display: flex;
276
+ // align-items: center;
277
+ // justify-content: space-between;
278
+ // padding: 8px;
279
+ // }
@@ -33,7 +33,7 @@
33
33
  }
34
34
 
35
35
  .dashboard-widget {
36
- background: var(--white);
36
+ background: var(--background);
37
37
  box-shadow: var(--container-shadow);
38
38
  padding: 30px;
39
39
  color: #000;
@@ -3,3 +3,4 @@ $not-mobile: 'screen and (min-width: 501px)';
3
3
  $mobileTablet: 'screen and (max-width: 1023px)';
4
4
  $desktop: 'screen and (min-width: 1024px)';
5
5
  $portrait: 'screen and (orientation: portrait)';
6
+ $landscape: 'screen and (orientation: landscape)';
@@ -65,6 +65,7 @@
65
65
  --text: var(--neutral-700);
66
66
  --text-inverse: var(--white);
67
67
  --text-disabled: var(--neutral-400);
68
+ --background: var(--white);
68
69
  --background-disabled: var(--neutral-100);
69
70
  --neutral-hover: var(--neutral-200);
70
71
  --border-color: var(--neutral-300);
@@ -86,8 +87,9 @@
86
87
 
87
88
  --container-radius: 25px;
88
89
  --container-radius-bottom: 0 0 25px 25px;
89
- --container-shadow: 0px 0px 5px rgba(180, 177, 177, 0.5);
90
- --deep-shadow: 0px 5px 5px -3px rgb(0 0 0 / 20%), 0px 8px 10px 1px rgba(0, 0, 0, 0.14),
90
+ --container-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
91
+ --deep-shadow:
92
+ 0px 5px 5px -3px rgb(0 0 0 / 20%), 0px 8px 10px 1px rgba(0, 0, 0, 0.14),
91
93
  0px 3px 14px 2px rgba(0, 0, 0, 0.12);
92
94
  }
93
95
 
@@ -1,9 +1,10 @@
1
1
  import { ITableDataItem } from './ITable';
2
2
 
3
3
  export interface IKeyboardAction {
4
- key: string;
4
+ code: string;
5
5
  onAction: () => void;
6
6
  ctrl?: boolean;
7
+ shift?: boolean;
7
8
  normalizedKey?: boolean;
8
9
  onBulkAction?: (itemUuids: string[]) => void;
9
10
  disabled?: boolean;
@@ -10,6 +10,7 @@ export interface IMenuItem {
10
10
  onClick?: MouseEventHandler<HTMLDivElement>;
11
11
  to?: string;
12
12
  badge?: number;
13
+ active?: boolean;
13
14
  disabled?: boolean;
14
15
  hidden?: boolean;
15
16
  withDevider?: boolean;
@@ -18,6 +18,7 @@ interface BaseSelectProps {
18
18
  helperText?: string;
19
19
  errorText?: string;
20
20
  error?: boolean;
21
+ size?: 's' | 'm';
21
22
  className?: string;
22
23
  minWidth?: number;
23
24
  menuWidth?: 'fit-content' | 'max-content' | number;