@oliasoft-open-source/react-ui-library 4.20.10-beta-1 → 4.20.11-beta-1

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.
package/README.md CHANGED
@@ -142,6 +142,7 @@ To quickly start a new project using the React UI Library with Vite, you can use
142
142
  - [Tree](#tree)
143
143
  - [NumberInput](#numberinput)
144
144
  - [UnitInput](#unitinput)
145
+ - [UnitTable](#unittable)
145
146
 
146
147
  ## Storybook
147
148
 
@@ -2062,6 +2063,60 @@ The `Table` component renders tabular data with various customization options.
2062
2063
 
2063
2064
  <hr style="border: none; border-right: 2px solid black; width: 100%; height: 1px;">
2064
2065
 
2066
+ ## UnitTable Component <a id="unittable"></a>
2067
+
2068
+ The `UnitTable` component is a wrapper around `Table`, with local state and additional logic to handle displaying tables in preferred units, and converting return values when cells are edited.
2069
+
2070
+ ### Props
2071
+
2072
+ | Prop | Description | Default Value |
2073
+ |--------------------------|------------------------------------------------------------------------------------------------------------------------|---------------|
2074
+ | `table` | An object containing table configuration, similar to `ITableTableProps`. | |
2075
+ | `unitConfig` | Array of unit configuration objects, each with `unitKey`, `storageUnit`, optional `preferredUnit`, and `onChange` callback. See [unitConfig item structure](#unitconfig-item-structure). | |
2076
+ | `convertBackToStorageUnit` | Whether values should be converted back to the storage unit when edited. | `true` |
2077
+ | `enableCosmeticRounding` | Enables cosmetic rounding of displayed values (Excel-style) to reduce visual precision noise. | `true` |
2078
+ | `enableDisplayRounding` | Enables rounding of displayed values in number inputs until the cell is focused. | `true` |
2079
+ | `onListReorder` | Function called when rows are reordered via drag-and-drop. Receives `{ from: number; to: number }` as an argument. | `() => {}` |
2080
+ | `canListReorder` | Function to determine whether a row can be reordered. Receives `{ from: number; to: number }` as an argument and returns `boolean`. | `() => true` |
2081
+
2082
+ ---
2083
+
2084
+ ### `unitConfig` Item Structure
2085
+
2086
+ Each object in the `unitConfig` array should have the following shape:
2087
+
2088
+ | Key | Type | Description |
2089
+ |------------------|---------------------------------------|------------------------------------------------------------------------------------------------------------------------|
2090
+ | `unitKey` | `string` | Key representing the type of unit (e.g., `length`, `temperature`, `density`). |
2091
+ | `storageUnit` | `string` | The unit in which data is stored internally (e.g., `m`, `ft`, `C`, `sg`). |
2092
+ | `preferredUnit` | `string` _(optional)_ | The user's preferred display unit (e.g., `ft`, `F`, `ppg`). |
2093
+ | `onChange` | `(params: { oldUnit: string; newUnit: string; unitKey: string }) => void` _(optional)_ | Callback when the display unit is changed by the user. |
2094
+
2095
+ ---
2096
+
2097
+ ### Usage Example
2098
+
2099
+ ```jsx
2100
+ <UnitTable
2101
+ table={{
2102
+ draggable: true,
2103
+ headers: [...],
2104
+ rows: [...],
2105
+ }}
2106
+ unitConfig={[
2107
+ {
2108
+ unitKey: 'length',
2109
+ storageUnit: 'm',
2110
+ preferredUnit: 'ft',
2111
+ onChange: ({ oldUnit, newUnit, unitKey }) =>
2112
+ console.log(`Unit changed for ${unitKey} from ${oldUnit} to ${newUnit}`),
2113
+ },
2114
+ ]}
2115
+ onListReorder={({ from, to }) => console.log(`Moved row from ${from} to ${to}`)}
2116
+ canListReorder={({ from, to }) => from !== to}
2117
+ />
2118
+ ```
2119
+
2065
2120
  ## Tabs Component <a id="tabs"></a>
2066
2121
 
2067
2122
  The `Tabs` component creates a tabbed interface for organizing content.
package/dist/global.css CHANGED
@@ -996,80 +996,80 @@ a {
996
996
  ._contentWrapper_1cgsf_16 {
997
997
  border-radius: inherit;
998
998
  }
999
- ._inputInTable_1m45a_1 {
999
+ ._inputInTable_1vpoe_1 {
1000
1000
  background-color: transparent;
1001
1001
  border-radius: inherit !important;
1002
1002
  height: var(--size);
1003
1003
  min-height: 100%;
1004
1004
  }
1005
- ._inputInTable_1m45a_1:not(:hover):not([data-error]):not([data-warning]) {
1005
+ ._inputInTable_1vpoe_1:not(:hover):not([data-error]):not([data-warning]) {
1006
1006
  border-color: transparent;
1007
1007
  }
1008
- ._inputInTable_1m45a_1:not(:focus) {
1008
+ ._inputInTable_1vpoe_1:not(:focus) {
1009
1009
  box-shadow: none;
1010
1010
  }
1011
- ._inputHover_1m45a_13 {
1011
+ ._inputHover_1vpoe_13 {
1012
1012
  position: relative;
1013
1013
  border-color: var(--color-border-hover);
1014
1014
  z-index: 2;
1015
1015
  }
1016
- ._inputFocus_1m45a_18 {
1016
+ ._inputFocus_1vpoe_18 {
1017
1017
  position: relative;
1018
1018
  outline: none !important;
1019
1019
  border-color: var(--color-border-focus) !important;
1020
1020
  box-shadow: var(--shadow-focus);
1021
1021
  z-index: 3;
1022
1022
  }
1023
- ._inputError_1m45a_25,
1024
- ._inputWarning_1m45a_26 {
1023
+ ._inputError_1vpoe_25,
1024
+ ._inputWarning_1vpoe_26 {
1025
1025
  position: relative;
1026
1026
  }
1027
- ._inputError_1m45a_25 {
1027
+ ._inputError_1vpoe_25 {
1028
1028
  z-index: 2;
1029
1029
  border-color: var(--color-border-error);
1030
1030
  color: var(--color-text-error) !important;
1031
1031
  background-color: var(--color-background-error-muted);
1032
1032
  }
1033
- ._inputError_1m45a_25:hover {
1033
+ ._inputError_1vpoe_25:hover {
1034
1034
  border-color: var(--color-border-error-hover) !important;
1035
1035
  }
1036
- ._inputError_1m45a_25:focus {
1036
+ ._inputError_1vpoe_25:focus {
1037
1037
  position: relative;
1038
1038
  outline: none !important;
1039
1039
  border-color: var(--color-border-focus) !important;
1040
1040
  box-shadow: var(--shadow-focus);
1041
1041
  z-index: 3;
1042
1042
  }
1043
- ._inputWarning_1m45a_26 {
1043
+ ._inputWarning_1vpoe_26 {
1044
1044
  z-index: 1;
1045
1045
  border-color: var(--color-border-warning);
1046
1046
  color: var(--color-text-warning) !important;
1047
1047
  background-color: var(--color-background-warning-muted);
1048
1048
  }
1049
- ._inputWarning_1m45a_26:hover {
1049
+ ._inputWarning_1vpoe_26:hover {
1050
1050
  border-color: var(--color-border-warning-hover) !important;
1051
1051
  }
1052
- ._inputWarning_1m45a_26:focus {
1052
+ ._inputWarning_1vpoe_26:focus {
1053
1053
  position: relative;
1054
1054
  outline: none !important;
1055
1055
  border-color: var(--color-border-focus) !important;
1056
1056
  box-shadow: var(--shadow-focus);
1057
1057
  z-index: 3;
1058
1058
  }
1059
- ._inputDisabled_1m45a_61 {
1059
+ ._inputDisabled_1vpoe_61 {
1060
1060
  pointer-events: none;
1061
1061
  background-color: var(--color-background-disabled);
1062
1062
  color: var(--color-text-muted);
1063
1063
  box-shadow: none;
1064
1064
  }
1065
- ._hideScrollbars_1m45a_67 {
1065
+ ._hideScrollbars_1vpoe_67 {
1066
1066
  /* Firefox */
1067
1067
  scrollbar-width: none;
1068
1068
  /* IE 10+ */
1069
1069
  -ms-overflow-style: none;
1070
1070
  /* Chrome, Safari and Opera */
1071
1071
  }
1072
- ._hideScrollbars_1m45a_67::-webkit-scrollbar {
1072
+ ._hideScrollbars_1vpoe_67::-webkit-scrollbar {
1073
1073
  display: none;
1074
1074
  }
1075
1075
  :root {
@@ -1095,7 +1095,7 @@ html[data-theme='dark'] {
1095
1095
  --color-background-button-default-hover: var(--color-neutral-750);
1096
1096
  --color-background-button-default-active: var(--color-neutral-700);
1097
1097
  }
1098
- ._button_1m45a_100 {
1098
+ ._button_1vpoe_100 {
1099
1099
  cursor: pointer;
1100
1100
  display: inline-flex;
1101
1101
  align-items: center;
@@ -1120,233 +1120,232 @@ html[data-theme='dark'] {
1120
1120
  box-shadow: var(--shadow-button);
1121
1121
  font-weight: bold;
1122
1122
  }
1123
- ._button_1m45a_100:hover {
1123
+ ._button_1vpoe_100:hover {
1124
1124
  background: var(--color-background-button-default-hover);
1125
1125
  }
1126
- ._button_1m45a_100:focus {
1126
+ ._button_1vpoe_100:focus {
1127
1127
  box-shadow: var(--shadow-focus) !important;
1128
1128
  }
1129
- ._button_1m45a_100:active {
1129
+ ._button_1vpoe_100:active {
1130
1130
  background: var(--color-background-button-default-active);
1131
1131
  box-shadow: none;
1132
1132
  }
1133
- ._button_1m45a_100._active_1m45a_135:not(._green_1m45a_135):not(._red_1m45a_135):not(._orange_1m45a_135) {
1133
+ ._button_1vpoe_100._active_1vpoe_135:not(._green_1vpoe_135):not(._red_1vpoe_135):not(._orange_1vpoe_135) {
1134
1134
  border-color: var(--color-border-button-default-active);
1135
1135
  color: var(--color-text-button-default-active);
1136
1136
  position: relative;
1137
1137
  z-index: 2;
1138
1138
  }
1139
- ._button_1m45a_100:hover,
1140
- ._button_1m45a_100:focus,
1141
- ._button_1m45a_100:active {
1139
+ ._button_1vpoe_100:hover,
1140
+ ._button_1vpoe_100:focus,
1141
+ ._button_1vpoe_100:active {
1142
1142
  position: relative;
1143
1143
  z-index: 1;
1144
1144
  }
1145
- ._button_1m45a_100 ._icon_1m45a_147 {
1145
+ ._button_1vpoe_100 ._icon_1vpoe_147 {
1146
1146
  margin: -2px;
1147
1147
  margin-right: var(--padding-xxs);
1148
1148
  font-size: var(--size-xs);
1149
1149
  display: flex;
1150
1150
  }
1151
- ._iconOnly_1m45a_153 {
1151
+ ._iconOnly_1vpoe_153 {
1152
1152
  width: var(--size);
1153
1153
  display: inline-flex;
1154
1154
  align-items: center;
1155
1155
  justify-content: center;
1156
1156
  }
1157
- ._iconOnly_1m45a_153 ._icon_1m45a_147 {
1157
+ ._iconOnly_1vpoe_153 ._icon_1vpoe_147 {
1158
1158
  margin: 0;
1159
1159
  line-height: 0;
1160
1160
  }
1161
- ._basic_1m45a_163 {
1161
+ ._basic_1vpoe_163 {
1162
1162
  color: var(--color-text-primary);
1163
1163
  background: transparent;
1164
1164
  box-shadow: none !important;
1165
1165
  border: none !important;
1166
1166
  }
1167
- ._basic_1m45a_163._muted_1m45a_169 {
1167
+ ._basic_1vpoe_163._muted_1vpoe_169 {
1168
1168
  color: var(--color-text-muted);
1169
1169
  }
1170
- ._basic_1m45a_163:hover {
1170
+ ._basic_1vpoe_163:hover {
1171
1171
  color: var(--color-text-primary-hover);
1172
1172
  background: rgba(0, 0, 0, 0.05);
1173
1173
  }
1174
- [data-theme='dark'] ._basic_1m45a_163:hover {
1174
+ [data-theme='dark'] ._basic_1vpoe_163:hover {
1175
1175
  background: rgba(255, 255, 255, 0.1);
1176
1176
  }
1177
- ._basic_1m45a_163:active,
1178
- ._basic_1m45a_163._active_1m45a_135 {
1177
+ ._basic_1vpoe_163:active,
1178
+ ._basic_1vpoe_163._active_1vpoe_135 {
1179
1179
  color: var(--color-text-primary-active);
1180
1180
  background: rgba(0, 0, 0, 0.1);
1181
1181
  }
1182
- [data-theme='dark'] ._basic_1m45a_163:active,
1183
- [data-theme='dark'] ._basic_1m45a_163._active_1m45a_135 {
1182
+ [data-theme='dark'] ._basic_1vpoe_163:active,
1183
+ [data-theme='dark'] ._basic_1vpoe_163._active_1vpoe_135 {
1184
1184
  background: rgba(255, 255, 255, 0.2);
1185
1185
  }
1186
- ._disabled_1m45a_188 {
1186
+ ._disabled_1vpoe_188 {
1187
1187
  cursor: default;
1188
- pointer-events: none !important;
1189
1188
  color: var(--color-text-faint) !important;
1190
1189
  box-shadow: none !important;
1191
1190
  }
1192
- ._disabled_1m45a_188:not(._active_1m45a_135):not(._basic_1m45a_163) {
1191
+ ._disabled_1vpoe_188:not(._active_1vpoe_135):not(._basic_1vpoe_163) {
1193
1192
  background: var(--color-background-disabled) !important;
1194
1193
  border: 1px solid var(--color-border) !important;
1195
1194
  }
1196
- ._small_1m45a_198 {
1195
+ ._small_1vpoe_197 {
1197
1196
  font-size: var(--font-size-sm);
1198
1197
  min-height: var(--size-sm);
1199
1198
  padding: var(--padding-input-sm);
1200
1199
  }
1201
- ._pill_1m45a_203,
1202
- ._round_1m45a_204 {
1200
+ ._pill_1vpoe_202,
1201
+ ._round_1vpoe_203 {
1203
1202
  border-radius: 19px;
1204
1203
  display: inline-flex;
1205
1204
  align-items: center;
1206
1205
  }
1207
- ._round_1m45a_204 {
1206
+ ._round_1vpoe_203 {
1208
1207
  padding: 0;
1209
1208
  width: var(--size);
1210
1209
  line-height: 1;
1211
1210
  }
1212
- ._round_1m45a_204._small_1m45a_198 {
1211
+ ._round_1vpoe_203._small_1vpoe_197 {
1213
1212
  width: var(--size-sm);
1214
1213
  }
1215
- ._orange_1m45a_135:not(._basic_1m45a_163) {
1214
+ ._orange_1vpoe_135:not(._basic_1vpoe_163) {
1216
1215
  background-color: var(--color-background-button-primary);
1217
1216
  }
1218
- ._orange_1m45a_135:not(._basic_1m45a_163):hover {
1217
+ ._orange_1vpoe_135:not(._basic_1vpoe_163):hover {
1219
1218
  background-color: var(--color-background-button-primary-hover);
1220
1219
  }
1221
- ._orange_1m45a_135:not(._basic_1m45a_163):active,
1222
- ._orange_1m45a_135:not(._basic_1m45a_163)._active_1m45a_135 {
1220
+ ._orange_1vpoe_135:not(._basic_1vpoe_163):active,
1221
+ ._orange_1vpoe_135:not(._basic_1vpoe_163)._active_1vpoe_135 {
1223
1222
  background-color: var(--color-background-button-primary-active);
1224
1223
  }
1225
- ._red_1m45a_135:not(._basic_1m45a_163) {
1224
+ ._red_1vpoe_135:not(._basic_1vpoe_163) {
1226
1225
  background-color: var(--color-background-button-error);
1227
1226
  }
1228
- ._red_1m45a_135:not(._basic_1m45a_163):hover {
1227
+ ._red_1vpoe_135:not(._basic_1vpoe_163):hover {
1229
1228
  background-color: var(--color-background-button-error-hover);
1230
1229
  }
1231
- ._red_1m45a_135:not(._basic_1m45a_163):active,
1232
- ._red_1m45a_135:not(._basic_1m45a_163)._active_1m45a_135 {
1230
+ ._red_1vpoe_135:not(._basic_1vpoe_163):active,
1231
+ ._red_1vpoe_135:not(._basic_1vpoe_163)._active_1vpoe_135 {
1233
1232
  background-color: var(--color-background-button-error-active);
1234
1233
  }
1235
- ._red_1m45a_135._basic_1m45a_163 {
1234
+ ._red_1vpoe_135._basic_1vpoe_163 {
1236
1235
  color: var(--color-text-error);
1237
1236
  }
1238
- ._green_1m45a_135:not(._basic_1m45a_163) {
1237
+ ._green_1vpoe_135:not(._basic_1vpoe_163) {
1239
1238
  background-color: var(--color-background-button-success);
1240
1239
  }
1241
- ._green_1m45a_135:not(._basic_1m45a_163):hover {
1240
+ ._green_1vpoe_135:not(._basic_1vpoe_163):hover {
1242
1241
  background-color: var(--color-background-button-success-hover);
1243
1242
  }
1244
- ._green_1m45a_135:not(._basic_1m45a_163):active,
1245
- ._green_1m45a_135:not(._basic_1m45a_163)._active_1m45a_135 {
1243
+ ._green_1vpoe_135:not(._basic_1vpoe_163):active,
1244
+ ._green_1vpoe_135:not(._basic_1vpoe_163)._active_1vpoe_135 {
1246
1245
  background-color: var(--color-background-button-success-active);
1247
1246
  }
1248
- ._green_1m45a_135._basic_1m45a_163 {
1247
+ ._green_1vpoe_135._basic_1vpoe_163 {
1249
1248
  color: var(--color-text-success);
1250
1249
  }
1251
- ._orange_1m45a_135,
1252
- ._red_1m45a_135,
1253
- ._green_1m45a_135 {
1250
+ ._orange_1vpoe_135,
1251
+ ._red_1vpoe_135,
1252
+ ._green_1vpoe_135 {
1254
1253
  border-color: var(--color-border-button);
1255
1254
  }
1256
- ._orange_1m45a_135:not(._basic_1m45a_163),
1257
- ._red_1m45a_135:not(._basic_1m45a_163),
1258
- ._green_1m45a_135:not(._basic_1m45a_163) {
1255
+ ._orange_1vpoe_135:not(._basic_1vpoe_163),
1256
+ ._red_1vpoe_135:not(._basic_1vpoe_163),
1257
+ ._green_1vpoe_135:not(._basic_1vpoe_163) {
1259
1258
  color: #fff;
1260
1259
  }
1261
- ._orange_1m45a_135:not(._basic_1m45a_163):hover,
1262
- ._red_1m45a_135:not(._basic_1m45a_163):hover,
1263
- ._green_1m45a_135:not(._basic_1m45a_163):hover {
1260
+ ._orange_1vpoe_135:not(._basic_1vpoe_163):hover,
1261
+ ._red_1vpoe_135:not(._basic_1vpoe_163):hover,
1262
+ ._green_1vpoe_135:not(._basic_1vpoe_163):hover {
1264
1263
  color: #fff;
1265
1264
  }
1266
- ._orange_1m45a_135:not(._basic_1m45a_163):active,
1267
- ._red_1m45a_135:not(._basic_1m45a_163):active,
1268
- ._green_1m45a_135:not(._basic_1m45a_163):active,
1269
- ._orange_1m45a_135:not(._basic_1m45a_163)._active_1m45a_135,
1270
- ._red_1m45a_135:not(._basic_1m45a_163)._active_1m45a_135,
1271
- ._green_1m45a_135:not(._basic_1m45a_163)._active_1m45a_135 {
1265
+ ._orange_1vpoe_135:not(._basic_1vpoe_163):active,
1266
+ ._red_1vpoe_135:not(._basic_1vpoe_163):active,
1267
+ ._green_1vpoe_135:not(._basic_1vpoe_163):active,
1268
+ ._orange_1vpoe_135:not(._basic_1vpoe_163)._active_1vpoe_135,
1269
+ ._red_1vpoe_135:not(._basic_1vpoe_163)._active_1vpoe_135,
1270
+ ._green_1vpoe_135:not(._basic_1vpoe_163)._active_1vpoe_135 {
1272
1271
  color: #fff;
1273
1272
  }
1274
- ._button_1m45a_100[data-warning] {
1273
+ ._button_1vpoe_100[data-warning] {
1275
1274
  position: relative;
1276
1275
  z-index: 1;
1277
1276
  border-color: var(--color-border-warning);
1278
1277
  color: var(--color-text-warning) !important;
1279
1278
  background-color: var(--color-background-warning-muted);
1280
1279
  }
1281
- ._button_1m45a_100[data-warning]:hover {
1280
+ ._button_1vpoe_100[data-warning]:hover {
1282
1281
  border-color: var(--color-border-warning-hover) !important;
1283
1282
  }
1284
- ._button_1m45a_100[data-warning]:focus {
1283
+ ._button_1vpoe_100[data-warning]:focus {
1285
1284
  position: relative;
1286
1285
  outline: none !important;
1287
1286
  border-color: var(--color-border-focus) !important;
1288
1287
  box-shadow: var(--shadow-focus);
1289
1288
  z-index: 3;
1290
1289
  }
1291
- ._button_1m45a_100[data-error] {
1290
+ ._button_1vpoe_100[data-error] {
1292
1291
  position: relative;
1293
1292
  z-index: 2;
1294
1293
  border-color: var(--color-border-error);
1295
1294
  color: var(--color-text-error) !important;
1296
1295
  background-color: var(--color-background-error-muted);
1297
1296
  }
1298
- ._button_1m45a_100[data-error]:hover {
1297
+ ._button_1vpoe_100[data-error]:hover {
1299
1298
  border-color: var(--color-border-error-hover) !important;
1300
1299
  }
1301
- ._button_1m45a_100[data-error]:focus {
1300
+ ._button_1vpoe_100[data-error]:focus {
1302
1301
  position: relative;
1303
1302
  outline: none !important;
1304
1303
  border-color: var(--color-border-focus) !important;
1305
1304
  box-shadow: var(--shadow-focus);
1306
1305
  z-index: 3;
1307
1306
  }
1308
- ._inverted_1m45a_310 {
1307
+ ._inverted_1vpoe_309 {
1309
1308
  background-color: transparent;
1310
1309
  border-color: var(--color-text);
1311
1310
  box-shadow: none;
1312
1311
  }
1313
- ._inverted_1m45a_310:hover,
1314
- ._inverted_1m45a_310:active {
1312
+ ._inverted_1vpoe_309:hover,
1313
+ ._inverted_1vpoe_309:active {
1315
1314
  box-shadow: none;
1316
1315
  }
1317
- ._inverted_1m45a_310._orange_1m45a_135 {
1316
+ ._inverted_1vpoe_309._orange_1vpoe_135 {
1318
1317
  color: var(--color-background-button-primary);
1319
1318
  border-color: var(--color-background-button-primary);
1320
1319
  }
1321
- ._inverted_1m45a_310._red_1m45a_135 {
1320
+ ._inverted_1vpoe_309._red_1vpoe_135 {
1322
1321
  color: var(--color-background-button-error);
1323
1322
  border-color: var(--color-background-button-error);
1324
1323
  }
1325
- ._inverted_1m45a_310._green_1m45a_135 {
1324
+ ._inverted_1vpoe_309._green_1vpoe_135 {
1326
1325
  color: var(--color-background-button-success);
1327
1326
  border-color: var(--color-background-button-success);
1328
1327
  }
1329
- ._inverted_1m45a_310._orange_1m45a_135:hover,
1330
- ._inverted_1m45a_310._red_1m45a_135:hover,
1331
- ._inverted_1m45a_310._green_1m45a_135:hover,
1332
- ._inverted_1m45a_310._orange_1m45a_135:active,
1333
- ._inverted_1m45a_310._red_1m45a_135:active,
1334
- ._inverted_1m45a_310._green_1m45a_135:active {
1328
+ ._inverted_1vpoe_309._orange_1vpoe_135:hover,
1329
+ ._inverted_1vpoe_309._red_1vpoe_135:hover,
1330
+ ._inverted_1vpoe_309._green_1vpoe_135:hover,
1331
+ ._inverted_1vpoe_309._orange_1vpoe_135:active,
1332
+ ._inverted_1vpoe_309._red_1vpoe_135:active,
1333
+ ._inverted_1vpoe_309._green_1vpoe_135:active {
1335
1334
  color: white;
1336
1335
  box-shadow: none;
1337
1336
  }
1338
- ._groupOrderFirst_1m45a_340,
1339
- ._groupOrderMiddle_1m45a_341,
1340
- ._groupOrderLast_1m45a_342 {
1337
+ ._groupOrderFirst_1vpoe_339,
1338
+ ._groupOrderMiddle_1vpoe_340,
1339
+ ._groupOrderLast_1vpoe_341 {
1341
1340
  margin-right: 0;
1342
1341
  }
1343
- ._groupOrderFirst_1m45a_340,
1344
- ._groupOrderMiddle_1m45a_341 {
1342
+ ._groupOrderFirst_1vpoe_339,
1343
+ ._groupOrderMiddle_1vpoe_340 {
1345
1344
  border-top-right-radius: 0 !important;
1346
1345
  border-bottom-right-radius: 0 !important;
1347
1346
  }
1348
- ._groupOrderLast_1m45a_342,
1349
- ._groupOrderMiddle_1m45a_341 {
1347
+ ._groupOrderLast_1vpoe_341,
1348
+ ._groupOrderMiddle_1vpoe_340 {
1350
1349
  border-top-left-radius: 0 !important;
1351
1350
  border-bottom-left-radius: 0 !important;
1352
1351
  }
package/dist/index.d.ts CHANGED
@@ -746,6 +746,7 @@ export declare interface IMenuProps {
746
746
  testId?: string;
747
747
  fullHeightTrigger?: boolean;
748
748
  };
749
+ active?: boolean;
749
750
  contextMenu?: boolean;
750
751
  width?: TStringOrNumber;
751
752
  disabled?: boolean;