@oliasoft-open-source/react-ui-library 4.14.0-beta-1 → 4.14.1-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/dist/global.css +34 -36
- package/dist/index.d.ts +22 -8
- package/dist/index.js +1335 -992
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/global.css
CHANGED
|
@@ -9131,80 +9131,80 @@ button:active .remirror-menu-pane-shortcut,
|
|
|
9131
9131
|
width: 8px;
|
|
9132
9132
|
height: 14px;
|
|
9133
9133
|
}
|
|
9134
|
-
.
|
|
9134
|
+
._inputInTable_sqhcz_1 {
|
|
9135
9135
|
background-color: transparent;
|
|
9136
9136
|
border-radius: inherit !important;
|
|
9137
9137
|
height: var(--size);
|
|
9138
9138
|
min-height: 100%;
|
|
9139
9139
|
}
|
|
9140
|
-
.
|
|
9140
|
+
._inputInTable_sqhcz_1:not(:hover):not([data-error]):not([data-warning]) {
|
|
9141
9141
|
border-color: transparent;
|
|
9142
9142
|
}
|
|
9143
|
-
.
|
|
9143
|
+
._inputInTable_sqhcz_1:not(:focus) {
|
|
9144
9144
|
box-shadow: none;
|
|
9145
9145
|
}
|
|
9146
|
-
.
|
|
9146
|
+
._inputHover_sqhcz_13 {
|
|
9147
9147
|
position: relative;
|
|
9148
9148
|
border-color: var(--color-border-hover);
|
|
9149
9149
|
z-index: 2;
|
|
9150
9150
|
}
|
|
9151
|
-
.
|
|
9151
|
+
._inputFocus_sqhcz_18 {
|
|
9152
9152
|
position: relative;
|
|
9153
9153
|
outline: none !important;
|
|
9154
9154
|
border-color: var(--color-border-focus) !important;
|
|
9155
9155
|
box-shadow: var(--shadow-focus);
|
|
9156
9156
|
z-index: 3;
|
|
9157
9157
|
}
|
|
9158
|
-
.
|
|
9159
|
-
.
|
|
9158
|
+
._inputError_sqhcz_25,
|
|
9159
|
+
._inputWarning_sqhcz_26 {
|
|
9160
9160
|
position: relative;
|
|
9161
9161
|
}
|
|
9162
|
-
.
|
|
9162
|
+
._inputError_sqhcz_25 {
|
|
9163
9163
|
z-index: 2;
|
|
9164
9164
|
border-color: var(--color-border-error);
|
|
9165
9165
|
color: var(--color-text-error) !important;
|
|
9166
9166
|
background-color: var(--color-background-error-muted);
|
|
9167
9167
|
}
|
|
9168
|
-
.
|
|
9168
|
+
._inputError_sqhcz_25:hover {
|
|
9169
9169
|
border-color: var(--color-border-error-hover) !important;
|
|
9170
9170
|
}
|
|
9171
|
-
.
|
|
9171
|
+
._inputError_sqhcz_25:focus {
|
|
9172
9172
|
position: relative;
|
|
9173
9173
|
outline: none !important;
|
|
9174
9174
|
border-color: var(--color-border-focus) !important;
|
|
9175
9175
|
box-shadow: var(--shadow-focus);
|
|
9176
9176
|
z-index: 3;
|
|
9177
9177
|
}
|
|
9178
|
-
.
|
|
9178
|
+
._inputWarning_sqhcz_26 {
|
|
9179
9179
|
z-index: 1;
|
|
9180
9180
|
border-color: var(--color-border-warning);
|
|
9181
9181
|
color: var(--color-text-warning) !important;
|
|
9182
9182
|
background-color: var(--color-background-warning-muted);
|
|
9183
9183
|
}
|
|
9184
|
-
.
|
|
9184
|
+
._inputWarning_sqhcz_26:hover {
|
|
9185
9185
|
border-color: var(--color-border-warning-hover) !important;
|
|
9186
9186
|
}
|
|
9187
|
-
.
|
|
9187
|
+
._inputWarning_sqhcz_26:focus {
|
|
9188
9188
|
position: relative;
|
|
9189
9189
|
outline: none !important;
|
|
9190
9190
|
border-color: var(--color-border-focus) !important;
|
|
9191
9191
|
box-shadow: var(--shadow-focus);
|
|
9192
9192
|
z-index: 3;
|
|
9193
9193
|
}
|
|
9194
|
-
.
|
|
9194
|
+
._inputDisabled_sqhcz_61 {
|
|
9195
9195
|
pointer-events: none;
|
|
9196
9196
|
background-color: var(--color-background-disabled);
|
|
9197
9197
|
color: var(--color-text-muted);
|
|
9198
9198
|
box-shadow: none;
|
|
9199
9199
|
}
|
|
9200
|
-
.
|
|
9200
|
+
._hideScrollbars_sqhcz_67 {
|
|
9201
9201
|
/* Firefox */
|
|
9202
9202
|
scrollbar-width: none;
|
|
9203
9203
|
/* IE 10+ */
|
|
9204
9204
|
-ms-overflow-style: none;
|
|
9205
9205
|
/* Chrome, Safari and Opera */
|
|
9206
9206
|
}
|
|
9207
|
-
.
|
|
9207
|
+
._hideScrollbars_sqhcz_67::-webkit-scrollbar {
|
|
9208
9208
|
display: none;
|
|
9209
9209
|
}
|
|
9210
9210
|
:root {
|
|
@@ -9215,7 +9215,7 @@ html[data-theme='dark'] {
|
|
|
9215
9215
|
--color-background-table-header: var(--color-neutral-800);
|
|
9216
9216
|
--color-background-table-row-tinted: var(--color-neutral-800);
|
|
9217
9217
|
}
|
|
9218
|
-
.
|
|
9218
|
+
._wrapper_sqhcz_85 {
|
|
9219
9219
|
border-radius: inherit;
|
|
9220
9220
|
max-height: 100%;
|
|
9221
9221
|
max-width: 100%;
|
|
@@ -9223,22 +9223,22 @@ html[data-theme='dark'] {
|
|
|
9223
9223
|
flex-direction: column;
|
|
9224
9224
|
overflow: hidden;
|
|
9225
9225
|
}
|
|
9226
|
-
.
|
|
9226
|
+
._wrapper_sqhcz_85._bordered_sqhcz_93 {
|
|
9227
9227
|
border-radius: var(--border-radius);
|
|
9228
9228
|
border: 1px solid var(--color-border);
|
|
9229
9229
|
box-shadow: var(--shadow-card);
|
|
9230
9230
|
}
|
|
9231
|
-
.
|
|
9231
|
+
._scroll_sqhcz_98 {
|
|
9232
9232
|
overflow-y: auto;
|
|
9233
9233
|
border-radius: inherit;
|
|
9234
9234
|
flex: 1;
|
|
9235
9235
|
min-height: 0;
|
|
9236
9236
|
}
|
|
9237
|
-
.
|
|
9237
|
+
._scroll_sqhcz_98:not(:first-child) {
|
|
9238
9238
|
border-top-left-radius: 0;
|
|
9239
9239
|
border-top-right-radius: 0;
|
|
9240
9240
|
}
|
|
9241
|
-
.
|
|
9241
|
+
._table_sqhcz_108 {
|
|
9242
9242
|
background: var(--color-background-raised);
|
|
9243
9243
|
color: var(--color-text);
|
|
9244
9244
|
border-collapse: separate;
|
|
@@ -9247,32 +9247,32 @@ html[data-theme='dark'] {
|
|
|
9247
9247
|
width: 100%;
|
|
9248
9248
|
font-variant-numeric: tabular-nums;
|
|
9249
9249
|
}
|
|
9250
|
-
.
|
|
9250
|
+
._table_sqhcz_108 > :first-child {
|
|
9251
9251
|
border-top-left-radius: inherit;
|
|
9252
9252
|
border-top-right-radius: inherit;
|
|
9253
9253
|
}
|
|
9254
|
-
.
|
|
9254
|
+
._table_sqhcz_108 > :first-child > :first-child {
|
|
9255
9255
|
border-top-left-radius: inherit;
|
|
9256
9256
|
border-top-right-radius: inherit;
|
|
9257
9257
|
}
|
|
9258
|
-
.
|
|
9258
|
+
._table_sqhcz_108 > :first-child > :first-child > :first-child {
|
|
9259
9259
|
border-top-left-radius: inherit;
|
|
9260
9260
|
}
|
|
9261
|
-
.
|
|
9261
|
+
._table_sqhcz_108 > :first-child > :first-child > :last-child {
|
|
9262
9262
|
border-top-right-radius: inherit;
|
|
9263
9263
|
}
|
|
9264
|
-
.
|
|
9264
|
+
._table_sqhcz_108 > :last-child {
|
|
9265
9265
|
border-bottom-left-radius: inherit;
|
|
9266
9266
|
border-bottom-right-radius: inherit;
|
|
9267
9267
|
}
|
|
9268
|
-
.
|
|
9268
|
+
._table_sqhcz_108 > :last-child > :last-child {
|
|
9269
9269
|
border-bottom-left-radius: inherit;
|
|
9270
9270
|
border-bottom-right-radius: inherit;
|
|
9271
9271
|
}
|
|
9272
|
-
.
|
|
9272
|
+
._table_sqhcz_108 > :last-child > :last-child > :first-child {
|
|
9273
9273
|
border-bottom-left-radius: inherit;
|
|
9274
9274
|
}
|
|
9275
|
-
.
|
|
9275
|
+
._table_sqhcz_108 > :last-child > :last-child > :last-child {
|
|
9276
9276
|
border-bottom-right-radius: inherit;
|
|
9277
9277
|
}
|
|
9278
9278
|
th,
|
|
@@ -9288,10 +9288,10 @@ th:not(:first-child),
|
|
|
9288
9288
|
td:not(:first-child) {
|
|
9289
9289
|
border-left-width: 1px;
|
|
9290
9290
|
}
|
|
9291
|
-
.
|
|
9292
|
-
.
|
|
9293
|
-
.
|
|
9294
|
-
.
|
|
9291
|
+
._table_sqhcz_108 > *:not(:last-child) > tr th,
|
|
9292
|
+
._table_sqhcz_108 > *:not(:last-child) > tr td,
|
|
9293
|
+
._table_sqhcz_108 > *:last-child > tr:not(:last-child) th,
|
|
9294
|
+
._table_sqhcz_108 > *:last-child > tr:not(:last-child) td {
|
|
9295
9295
|
border-bottom-width: 1px;
|
|
9296
9296
|
}
|
|
9297
9297
|
@-moz-document url-prefix() {
|
|
@@ -9304,8 +9304,6 @@ td:not(:first-child) {
|
|
|
9304
9304
|
}
|
|
9305
9305
|
}
|
|
9306
9306
|
thead {
|
|
9307
|
-
position: sticky;
|
|
9308
|
-
top: 0;
|
|
9309
9307
|
overflow: hidden;
|
|
9310
9308
|
z-index: 5;
|
|
9311
9309
|
}
|
|
@@ -9318,7 +9316,7 @@ tbody {
|
|
|
9318
9316
|
tbody tr {
|
|
9319
9317
|
background-color: var(--color-background-raised);
|
|
9320
9318
|
}
|
|
9321
|
-
.
|
|
9319
|
+
._striped_sqhcz_186 tbody tr:nth-child(even) {
|
|
9322
9320
|
background-color: var(--color-background-table-row-tinted);
|
|
9323
9321
|
}
|
|
9324
9322
|
._title_zn5s7_1 {
|
package/dist/index.d.ts
CHANGED
|
@@ -134,7 +134,7 @@ export declare interface IAccordionWithDefaultToggleProps {
|
|
|
134
134
|
toggleLabel: string;
|
|
135
135
|
expanded?: boolean;
|
|
136
136
|
defaultEnabled?: boolean;
|
|
137
|
-
onClickDefaultToggle?:
|
|
137
|
+
onClickDefaultToggle?: TCheckBoxClickHandler;
|
|
138
138
|
padding?: boolean;
|
|
139
139
|
children?: ReactNode;
|
|
140
140
|
}
|
|
@@ -241,17 +241,25 @@ declare interface ICheckBoxCell extends TCommonCell {
|
|
|
241
241
|
label?: string | null;
|
|
242
242
|
checked: boolean;
|
|
243
243
|
type: TCellType;
|
|
244
|
-
onChange:
|
|
244
|
+
onChange: TCheckBoxClickHandler;
|
|
245
245
|
disabled?: boolean;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
+
export declare interface ICheckBoxClickEvent {
|
|
249
|
+
target: {
|
|
250
|
+
name: string;
|
|
251
|
+
checked: boolean;
|
|
252
|
+
value: boolean;
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
|
|
248
256
|
export declare interface ICheckBoxProps {
|
|
249
257
|
checked?: boolean;
|
|
250
258
|
isInTable?: boolean;
|
|
251
259
|
label?: string | null;
|
|
252
260
|
name?: string;
|
|
253
261
|
noMargin?: boolean;
|
|
254
|
-
onChange:
|
|
262
|
+
onChange: TCheckBoxClickHandler;
|
|
255
263
|
tabIndex?: number;
|
|
256
264
|
disabled?: boolean;
|
|
257
265
|
small?: boolean;
|
|
@@ -1039,10 +1047,9 @@ export declare interface IPortalProps {
|
|
|
1039
1047
|
}
|
|
1040
1048
|
|
|
1041
1049
|
declare interface IPredefinedOption {
|
|
1042
|
-
value
|
|
1050
|
+
value?: string;
|
|
1043
1051
|
label: string;
|
|
1044
1052
|
valueKey?: string;
|
|
1045
|
-
unit?: string;
|
|
1046
1053
|
}
|
|
1047
1054
|
|
|
1048
1055
|
export declare interface IPrintHeaderProps {
|
|
@@ -1562,14 +1569,17 @@ export declare interface IUnitInputProps {
|
|
|
1562
1569
|
unitkey?: string;
|
|
1563
1570
|
initUnit?: string;
|
|
1564
1571
|
noConversion?: boolean;
|
|
1572
|
+
doNotConvertValue?: boolean;
|
|
1565
1573
|
testId?: string;
|
|
1566
1574
|
warning?: string | boolean | null;
|
|
1567
1575
|
predefinedOptions?: IPredefinedOption[] | null;
|
|
1568
|
-
initialPredefinedOption?:
|
|
1569
|
-
|
|
1576
|
+
initialPredefinedOption?: boolean;
|
|
1577
|
+
shouldLinkAutomaticly?: boolean;
|
|
1578
|
+
selectedPredefinedOptionKey?: string;
|
|
1570
1579
|
validationCallback?: (name: string, error: string | null) => any;
|
|
1571
1580
|
disabledValidation?: boolean;
|
|
1572
1581
|
allowEmpty?: boolean;
|
|
1582
|
+
autoValue?: string;
|
|
1573
1583
|
onChange?: TOnChangeEventHandler;
|
|
1574
1584
|
onSwitchUnit?: (unit: string) => void;
|
|
1575
1585
|
onClick?: MouseEventHandler<HTMLInputElement>;
|
|
@@ -1742,6 +1752,10 @@ export declare type TChangeEventHandler<T extends HTMLElement = HTMLInputElement
|
|
|
1742
1752
|
[key: string]: any;
|
|
1743
1753
|
}[]) => void;
|
|
1744
1754
|
|
|
1755
|
+
export declare type TCheckBoxClickHandler = (evt: default_2.MouseEvent<HTMLDivElement, MouseEvent> & {
|
|
1756
|
+
target: ICheckBoxClickEvent['target'];
|
|
1757
|
+
}) => void;
|
|
1758
|
+
|
|
1745
1759
|
export declare type TColor = 'danger' | 'red' | 'white' | 'success' | 'green' | 'muted';
|
|
1746
1760
|
|
|
1747
1761
|
declare interface TCommonCell {
|
|
@@ -1872,7 +1886,7 @@ declare type TUnitTableCellShape = TCellShape | IUnitTableStaticCell | IUnitTabl
|
|
|
1872
1886
|
|
|
1873
1887
|
declare type UnitContextType = any;
|
|
1874
1888
|
|
|
1875
|
-
export declare const UnitInput: ({ name, placeholder, disabled, disabledUnit, error, left, small, width, value, unitkey, initUnit, noConversion, onChange, onClick, onFocus, onSwitchUnit, unitTemplate, testId, warning, predefinedOptions, initialPredefinedOption,
|
|
1889
|
+
export declare const UnitInput: ({ name, placeholder, disabled, disabledUnit, error, left, small, width, value, unitkey, initUnit, noConversion, onChange, onClick, onFocus, onSwitchUnit, unitTemplate, doNotConvertValue, testId, warning, predefinedOptions, initialPredefinedOption, shouldLinkAutomaticly, selectedPredefinedOptionKey, validationCallback, disabledValidation, allowEmpty, autoValue, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, roundDisplayValue, }: IUnitInputProps) => JSX_2.Element;
|
|
1876
1890
|
|
|
1877
1891
|
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, }: IUnitTableProps) => JSX_2.Element;
|
|
1878
1892
|
|