@oliasoft-open-source/react-ui-library 4.16.2-beta-3 → 4.16.2-beta-4
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/dist/global.css +45 -35
- package/dist/index.js +80 -84
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/global.css
CHANGED
|
@@ -9140,80 +9140,80 @@ button:active .remirror-menu-pane-shortcut,
|
|
|
9140
9140
|
width: 8px;
|
|
9141
9141
|
height: 14px;
|
|
9142
9142
|
}
|
|
9143
|
-
.
|
|
9143
|
+
._inputInTable_xkoxm_1 {
|
|
9144
9144
|
background-color: transparent;
|
|
9145
9145
|
border-radius: inherit !important;
|
|
9146
9146
|
height: var(--size);
|
|
9147
9147
|
min-height: 100%;
|
|
9148
9148
|
}
|
|
9149
|
-
.
|
|
9149
|
+
._inputInTable_xkoxm_1:not(:hover):not([data-error]):not([data-warning]) {
|
|
9150
9150
|
border-color: transparent;
|
|
9151
9151
|
}
|
|
9152
|
-
.
|
|
9152
|
+
._inputInTable_xkoxm_1:not(:focus) {
|
|
9153
9153
|
box-shadow: none;
|
|
9154
9154
|
}
|
|
9155
|
-
.
|
|
9155
|
+
._inputHover_xkoxm_13 {
|
|
9156
9156
|
position: relative;
|
|
9157
9157
|
border-color: var(--color-border-hover);
|
|
9158
9158
|
z-index: 2;
|
|
9159
9159
|
}
|
|
9160
|
-
.
|
|
9160
|
+
._inputFocus_xkoxm_18 {
|
|
9161
9161
|
position: relative;
|
|
9162
9162
|
outline: none !important;
|
|
9163
9163
|
border-color: var(--color-border-focus) !important;
|
|
9164
9164
|
box-shadow: var(--shadow-focus);
|
|
9165
9165
|
z-index: 3;
|
|
9166
9166
|
}
|
|
9167
|
-
.
|
|
9168
|
-
.
|
|
9167
|
+
._inputError_xkoxm_25,
|
|
9168
|
+
._inputWarning_xkoxm_26 {
|
|
9169
9169
|
position: relative;
|
|
9170
9170
|
}
|
|
9171
|
-
.
|
|
9171
|
+
._inputError_xkoxm_25 {
|
|
9172
9172
|
z-index: 2;
|
|
9173
9173
|
border-color: var(--color-border-error);
|
|
9174
9174
|
color: var(--color-text-error) !important;
|
|
9175
9175
|
background-color: var(--color-background-error-muted);
|
|
9176
9176
|
}
|
|
9177
|
-
.
|
|
9177
|
+
._inputError_xkoxm_25:hover {
|
|
9178
9178
|
border-color: var(--color-border-error-hover) !important;
|
|
9179
9179
|
}
|
|
9180
|
-
.
|
|
9180
|
+
._inputError_xkoxm_25:focus {
|
|
9181
9181
|
position: relative;
|
|
9182
9182
|
outline: none !important;
|
|
9183
9183
|
border-color: var(--color-border-focus) !important;
|
|
9184
9184
|
box-shadow: var(--shadow-focus);
|
|
9185
9185
|
z-index: 3;
|
|
9186
9186
|
}
|
|
9187
|
-
.
|
|
9187
|
+
._inputWarning_xkoxm_26 {
|
|
9188
9188
|
z-index: 1;
|
|
9189
9189
|
border-color: var(--color-border-warning);
|
|
9190
9190
|
color: var(--color-text-warning) !important;
|
|
9191
9191
|
background-color: var(--color-background-warning-muted);
|
|
9192
9192
|
}
|
|
9193
|
-
.
|
|
9193
|
+
._inputWarning_xkoxm_26:hover {
|
|
9194
9194
|
border-color: var(--color-border-warning-hover) !important;
|
|
9195
9195
|
}
|
|
9196
|
-
.
|
|
9196
|
+
._inputWarning_xkoxm_26:focus {
|
|
9197
9197
|
position: relative;
|
|
9198
9198
|
outline: none !important;
|
|
9199
9199
|
border-color: var(--color-border-focus) !important;
|
|
9200
9200
|
box-shadow: var(--shadow-focus);
|
|
9201
9201
|
z-index: 3;
|
|
9202
9202
|
}
|
|
9203
|
-
.
|
|
9203
|
+
._inputDisabled_xkoxm_61 {
|
|
9204
9204
|
pointer-events: none;
|
|
9205
9205
|
background-color: var(--color-background-disabled);
|
|
9206
9206
|
color: var(--color-text-muted);
|
|
9207
9207
|
box-shadow: none;
|
|
9208
9208
|
}
|
|
9209
|
-
.
|
|
9209
|
+
._hideScrollbars_xkoxm_67 {
|
|
9210
9210
|
/* Firefox */
|
|
9211
9211
|
scrollbar-width: none;
|
|
9212
9212
|
/* IE 10+ */
|
|
9213
9213
|
-ms-overflow-style: none;
|
|
9214
9214
|
/* Chrome, Safari and Opera */
|
|
9215
9215
|
}
|
|
9216
|
-
.
|
|
9216
|
+
._hideScrollbars_xkoxm_67::-webkit-scrollbar {
|
|
9217
9217
|
display: none;
|
|
9218
9218
|
}
|
|
9219
9219
|
:root {
|
|
@@ -9224,7 +9224,7 @@ html[data-theme='dark'] {
|
|
|
9224
9224
|
--color-background-table-header: var(--color-neutral-800);
|
|
9225
9225
|
--color-background-table-row-tinted: var(--color-neutral-800);
|
|
9226
9226
|
}
|
|
9227
|
-
.
|
|
9227
|
+
._wrapper_xkoxm_85 {
|
|
9228
9228
|
border-radius: inherit;
|
|
9229
9229
|
max-height: 100%;
|
|
9230
9230
|
max-width: 100%;
|
|
@@ -9232,23 +9232,23 @@ html[data-theme='dark'] {
|
|
|
9232
9232
|
flex-direction: column;
|
|
9233
9233
|
overflow: hidden;
|
|
9234
9234
|
}
|
|
9235
|
-
.
|
|
9235
|
+
._wrapper_xkoxm_85._bordered_xkoxm_93 {
|
|
9236
9236
|
border-radius: var(--border-radius);
|
|
9237
9237
|
border: 1px solid var(--color-border);
|
|
9238
9238
|
box-shadow: var(--shadow-card);
|
|
9239
9239
|
}
|
|
9240
|
-
.
|
|
9240
|
+
._scroll_xkoxm_98 {
|
|
9241
9241
|
background: var(--color-background);
|
|
9242
9242
|
overflow-y: auto;
|
|
9243
9243
|
border-radius: inherit;
|
|
9244
9244
|
flex: 1;
|
|
9245
9245
|
min-height: 0;
|
|
9246
9246
|
}
|
|
9247
|
-
.
|
|
9247
|
+
._scroll_xkoxm_98:not(:first-child) {
|
|
9248
9248
|
border-top-left-radius: 0;
|
|
9249
9249
|
border-top-right-radius: 0;
|
|
9250
9250
|
}
|
|
9251
|
-
.
|
|
9251
|
+
._table_xkoxm_109 {
|
|
9252
9252
|
color: var(--color-text);
|
|
9253
9253
|
border-collapse: separate;
|
|
9254
9254
|
border-spacing: 0;
|
|
@@ -9256,35 +9256,35 @@ html[data-theme='dark'] {
|
|
|
9256
9256
|
width: 100%;
|
|
9257
9257
|
font-variant-numeric: tabular-nums;
|
|
9258
9258
|
}
|
|
9259
|
-
.
|
|
9259
|
+
._table_xkoxm_109 > :first-child {
|
|
9260
9260
|
border-top-left-radius: inherit;
|
|
9261
9261
|
border-top-right-radius: inherit;
|
|
9262
9262
|
}
|
|
9263
|
-
.
|
|
9263
|
+
._table_xkoxm_109 > :first-child > :first-child {
|
|
9264
9264
|
border-top-left-radius: inherit;
|
|
9265
9265
|
border-top-right-radius: inherit;
|
|
9266
9266
|
}
|
|
9267
|
-
.
|
|
9267
|
+
._table_xkoxm_109 > :first-child > :first-child > :first-child {
|
|
9268
9268
|
border-top-left-radius: inherit;
|
|
9269
9269
|
}
|
|
9270
|
-
.
|
|
9270
|
+
._table_xkoxm_109 > :first-child > :first-child > :last-child {
|
|
9271
9271
|
border-top-right-radius: inherit;
|
|
9272
9272
|
}
|
|
9273
|
-
.
|
|
9273
|
+
._table_xkoxm_109 > :last-child {
|
|
9274
9274
|
border-bottom-left-radius: inherit;
|
|
9275
9275
|
border-bottom-right-radius: inherit;
|
|
9276
9276
|
}
|
|
9277
|
-
.
|
|
9277
|
+
._table_xkoxm_109 > :last-child > :last-child {
|
|
9278
9278
|
border-bottom-left-radius: inherit;
|
|
9279
9279
|
border-bottom-right-radius: inherit;
|
|
9280
9280
|
}
|
|
9281
|
-
.
|
|
9281
|
+
._table_xkoxm_109 > :last-child > :last-child > :first-child {
|
|
9282
9282
|
border-bottom-left-radius: inherit;
|
|
9283
9283
|
}
|
|
9284
|
-
.
|
|
9284
|
+
._table_xkoxm_109 > :last-child > :last-child > :last-child {
|
|
9285
9285
|
border-bottom-right-radius: inherit;
|
|
9286
9286
|
}
|
|
9287
|
-
.
|
|
9287
|
+
._dragOverlay_xkoxm_145 {
|
|
9288
9288
|
box-shadow: var(--shadow-layer);
|
|
9289
9289
|
border-radius: var(--border-radius);
|
|
9290
9290
|
overflow: hidden;
|
|
@@ -9303,10 +9303,10 @@ th:not(:first-child),
|
|
|
9303
9303
|
td:not(:first-child) {
|
|
9304
9304
|
border-left-width: 1px;
|
|
9305
9305
|
}
|
|
9306
|
-
.
|
|
9307
|
-
.
|
|
9308
|
-
.
|
|
9309
|
-
.
|
|
9306
|
+
._table_xkoxm_109 > *:not(:last-child) > tr th,
|
|
9307
|
+
._table_xkoxm_109 > *:not(:last-child) > tr td,
|
|
9308
|
+
._table_xkoxm_109 > *:last-child > tr:not(:last-child) th,
|
|
9309
|
+
._table_xkoxm_109 > *:last-child > tr:not(:last-child) td {
|
|
9310
9310
|
border-bottom-width: 1px;
|
|
9311
9311
|
}
|
|
9312
9312
|
@-moz-document url-prefix() {
|
|
@@ -9333,9 +9333,19 @@ tbody {
|
|
|
9333
9333
|
tbody tr {
|
|
9334
9334
|
background-color: var(--color-background-raised);
|
|
9335
9335
|
}
|
|
9336
|
-
.
|
|
9336
|
+
._striped_xkoxm_194 tbody [data-even='true'] {
|
|
9337
9337
|
background-color: var(--color-background-table-row-tinted);
|
|
9338
9338
|
}
|
|
9339
|
+
tbody:before {
|
|
9340
|
+
display: block;
|
|
9341
|
+
padding-top: var(--virtualPaddingTop);
|
|
9342
|
+
content: '';
|
|
9343
|
+
}
|
|
9344
|
+
tbody:after {
|
|
9345
|
+
display: block;
|
|
9346
|
+
padding-bottom: var(--virtualPaddingBottom);
|
|
9347
|
+
content: '';
|
|
9348
|
+
}
|
|
9339
9349
|
._title_zn5s7_1 {
|
|
9340
9350
|
background-color: var(--color-background-cardheader);
|
|
9341
9351
|
border-bottom: 1px solid var(--color-border);
|
package/dist/index.js
CHANGED
|
@@ -51091,19 +51091,19 @@ const Spacer = ({
|
|
|
51091
51091
|
}
|
|
51092
51092
|
}
|
|
51093
51093
|
);
|
|
51094
|
-
const inputInTable$2 = "
|
|
51095
|
-
const inputHover$2 = "
|
|
51096
|
-
const inputFocus$2 = "
|
|
51097
|
-
const inputError$2 = "
|
|
51098
|
-
const inputWarning$2 = "
|
|
51099
|
-
const inputDisabled$2 = "
|
|
51100
|
-
const hideScrollbars$2 = "
|
|
51101
|
-
const wrapper = "
|
|
51102
|
-
const bordered = "
|
|
51103
|
-
const scroll = "
|
|
51104
|
-
const table = "
|
|
51105
|
-
const dragOverlay = "
|
|
51106
|
-
const striped = "
|
|
51094
|
+
const inputInTable$2 = "_inputInTable_xkoxm_1";
|
|
51095
|
+
const inputHover$2 = "_inputHover_xkoxm_13";
|
|
51096
|
+
const inputFocus$2 = "_inputFocus_xkoxm_18";
|
|
51097
|
+
const inputError$2 = "_inputError_xkoxm_25";
|
|
51098
|
+
const inputWarning$2 = "_inputWarning_xkoxm_26";
|
|
51099
|
+
const inputDisabled$2 = "_inputDisabled_xkoxm_61";
|
|
51100
|
+
const hideScrollbars$2 = "_hideScrollbars_xkoxm_67";
|
|
51101
|
+
const wrapper = "_wrapper_xkoxm_85";
|
|
51102
|
+
const bordered = "_bordered_xkoxm_93";
|
|
51103
|
+
const scroll = "_scroll_xkoxm_98";
|
|
51104
|
+
const table = "_table_xkoxm_109";
|
|
51105
|
+
const dragOverlay = "_dragOverlay_xkoxm_145";
|
|
51106
|
+
const striped = "_striped_xkoxm_194";
|
|
51107
51107
|
const styles$b = {
|
|
51108
51108
|
inputInTable: inputInTable$2,
|
|
51109
51109
|
inputHover: inputHover$2,
|
|
@@ -51922,8 +51922,6 @@ const Row = ({
|
|
|
51922
51922
|
hasRowActions: hasRowActions2,
|
|
51923
51923
|
draggableTable = false,
|
|
51924
51924
|
columnWidths,
|
|
51925
|
-
height: height2,
|
|
51926
|
-
translateY,
|
|
51927
51925
|
testId
|
|
51928
51926
|
//TODO: add testId
|
|
51929
51927
|
}) => {
|
|
@@ -51980,9 +51978,7 @@ const Row = ({
|
|
|
51980
51978
|
animateLayoutChanges: () => false
|
|
51981
51979
|
});
|
|
51982
51980
|
const style = {
|
|
51983
|
-
|
|
51984
|
-
// Combine 1. offset from virtualized list + 2. drag and drop offset
|
|
51985
|
-
transform: `translateY(${(translateY ?? 0) + ((transform == null ? void 0 : transform.y) ?? 0)}px)`,
|
|
51981
|
+
transform: CSS.Transform.toString(transform),
|
|
51986
51982
|
transition,
|
|
51987
51983
|
opacity: isDragging ? 0 : void 0
|
|
51988
51984
|
};
|
|
@@ -52249,73 +52245,73 @@ const Table = (props) => {
|
|
|
52249
52245
|
rowActions,
|
|
52250
52246
|
rows,
|
|
52251
52247
|
tbodyRef,
|
|
52252
|
-
children: /* @__PURE__ */ jsx(TableScrollWrapper, { table: table2, theadRef, children: ({ virtualizer }) =>
|
|
52253
|
-
|
|
52254
|
-
{
|
|
52255
|
-
|
|
52256
|
-
|
|
52257
|
-
|
|
52258
|
-
|
|
52259
|
-
|
|
52260
|
-
|
|
52261
|
-
|
|
52262
|
-
style: virtualizer ? {
|
|
52263
|
-
position: "relative",
|
|
52264
|
-
transition: "transform 0.2s",
|
|
52265
|
-
transform: `translateY(${!virtualizer.isScrolling ? virtualizer.scrollOffset : 0}px)`
|
|
52266
|
-
} : {},
|
|
52267
|
-
children: headers.map((row2, rowIndex) => {
|
|
52268
|
-
return /* @__PURE__ */ jsx(
|
|
52269
|
-
Row,
|
|
52270
|
-
{
|
|
52271
|
-
rowIndex,
|
|
52272
|
-
isHeader: true,
|
|
52273
|
-
row: row2,
|
|
52274
|
-
columnCount,
|
|
52275
|
-
columnWidths,
|
|
52276
|
-
colSpan,
|
|
52277
|
-
hasRowActions: rowActions,
|
|
52278
|
-
columnAlignment,
|
|
52279
|
-
columnHeaderAlignments,
|
|
52280
|
-
draggableTable: draggable
|
|
52281
|
-
},
|
|
52282
|
-
`0_${rowIndex}`
|
|
52283
|
-
);
|
|
52284
|
-
})
|
|
52285
|
-
}
|
|
52286
|
-
),
|
|
52287
|
-
/* @__PURE__ */ jsx("tbody", { ref: tbodyRef, children: virtualizer ? virtualizer.getVirtualItems().map((virtualRow2, rowIndex) => /* @__PURE__ */ jsx(
|
|
52288
|
-
Row,
|
|
52289
|
-
{
|
|
52290
|
-
rowIndex: virtualRow2.index,
|
|
52291
|
-
row: rows[virtualRow2.index],
|
|
52292
|
-
columnCount,
|
|
52293
|
-
columnWidths,
|
|
52294
|
-
colSpan,
|
|
52295
|
-
hasRowActions: rowActions,
|
|
52296
|
-
columnAlignment,
|
|
52297
|
-
draggableTable: draggable,
|
|
52298
|
-
height: virtualRow2.size,
|
|
52299
|
-
translateY: virtualRow2.start - rowIndex * virtualRow2.size
|
|
52300
|
-
},
|
|
52301
|
-
`1_${rowIndex}`
|
|
52302
|
-
)) : rows.map((row2, index2) => /* @__PURE__ */ jsx(
|
|
52303
|
-
Row,
|
|
52304
|
-
{
|
|
52305
|
-
rowIndex: index2,
|
|
52306
|
-
row: row2,
|
|
52307
|
-
columnCount,
|
|
52308
|
-
columnWidths,
|
|
52309
|
-
colSpan,
|
|
52310
|
-
hasRowActions: rowActions,
|
|
52311
|
-
columnAlignment,
|
|
52312
|
-
draggableTable: draggable
|
|
52313
|
-
},
|
|
52314
|
-
`1_${index2}`
|
|
52315
|
-
)) })
|
|
52316
|
-
]
|
|
52248
|
+
children: /* @__PURE__ */ jsx(TableScrollWrapper, { table: table2, theadRef, children: ({ virtualizer }) => {
|
|
52249
|
+
let style = {};
|
|
52250
|
+
if (virtualizer) {
|
|
52251
|
+
const items = virtualizer.getVirtualItems();
|
|
52252
|
+
const paddingTop = items.length > 0 ? items[0].start : 0;
|
|
52253
|
+
const paddingBottom = items.length > 0 ? virtualizer.getTotalSize() - items[items.length - 1].end : 0;
|
|
52254
|
+
style = {
|
|
52255
|
+
"--virtualPaddingTop": paddingTop + "px",
|
|
52256
|
+
"--virtualPaddingBottom": paddingBottom + "px"
|
|
52257
|
+
};
|
|
52317
52258
|
}
|
|
52318
|
-
|
|
52259
|
+
return /* @__PURE__ */ jsxs(
|
|
52260
|
+
"table",
|
|
52261
|
+
{
|
|
52262
|
+
className: cx$2(styles$b.table, striped2 ? styles$b.striped : ""),
|
|
52263
|
+
"data-testid": testId,
|
|
52264
|
+
style,
|
|
52265
|
+
children: [
|
|
52266
|
+
/* @__PURE__ */ jsx("thead", { ref: theadRef, children: headers.map((row2, rowIndex) => {
|
|
52267
|
+
return /* @__PURE__ */ jsx(
|
|
52268
|
+
Row,
|
|
52269
|
+
{
|
|
52270
|
+
rowIndex,
|
|
52271
|
+
isHeader: true,
|
|
52272
|
+
row: row2,
|
|
52273
|
+
columnCount,
|
|
52274
|
+
columnWidths,
|
|
52275
|
+
colSpan,
|
|
52276
|
+
hasRowActions: rowActions,
|
|
52277
|
+
columnAlignment,
|
|
52278
|
+
columnHeaderAlignments,
|
|
52279
|
+
draggableTable: draggable
|
|
52280
|
+
},
|
|
52281
|
+
`0_${rowIndex}`
|
|
52282
|
+
);
|
|
52283
|
+
}) }),
|
|
52284
|
+
/* @__PURE__ */ jsx("tbody", { ref: tbodyRef, children: virtualizer ? virtualizer.getVirtualItems().map((virtualRow2, rowIndex) => /* @__PURE__ */ jsx(
|
|
52285
|
+
Row,
|
|
52286
|
+
{
|
|
52287
|
+
rowIndex: virtualRow2.index,
|
|
52288
|
+
row: rows[virtualRow2.index],
|
|
52289
|
+
columnCount,
|
|
52290
|
+
columnWidths,
|
|
52291
|
+
colSpan,
|
|
52292
|
+
hasRowActions: rowActions,
|
|
52293
|
+
columnAlignment,
|
|
52294
|
+
draggableTable: draggable
|
|
52295
|
+
},
|
|
52296
|
+
`1_${rowIndex}`
|
|
52297
|
+
)) : rows.map((row2, index2) => /* @__PURE__ */ jsx(
|
|
52298
|
+
Row,
|
|
52299
|
+
{
|
|
52300
|
+
rowIndex: index2,
|
|
52301
|
+
row: row2,
|
|
52302
|
+
columnCount,
|
|
52303
|
+
columnWidths,
|
|
52304
|
+
colSpan,
|
|
52305
|
+
hasRowActions: rowActions,
|
|
52306
|
+
columnAlignment,
|
|
52307
|
+
draggableTable: draggable
|
|
52308
|
+
},
|
|
52309
|
+
`1_${index2}`
|
|
52310
|
+
)) })
|
|
52311
|
+
]
|
|
52312
|
+
}
|
|
52313
|
+
);
|
|
52314
|
+
} })
|
|
52319
52315
|
}
|
|
52320
52316
|
),
|
|
52321
52317
|
footer2 && /* @__PURE__ */ jsx(
|