@oliasoft-open-source/react-ui-library 3.9.5 → 3.9.7
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 +31 -28
- package/dist/index.js +72 -68
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/global.css
CHANGED
|
@@ -14063,10 +14063,13 @@ html[data-theme='dark'] {
|
|
|
14063
14063
|
/*
|
|
14064
14064
|
Z-INDEX
|
|
14065
14065
|
*/
|
|
14066
|
-
.
|
|
14066
|
+
._wrapper_w3cwc_333 {
|
|
14067
|
+
flex-shrink: 0;
|
|
14068
|
+
}
|
|
14069
|
+
._layerContainer_w3cwc_336 {
|
|
14067
14070
|
z-index: 2002;
|
|
14068
14071
|
}
|
|
14069
|
-
.
|
|
14072
|
+
._layer_w3cwc_336 {
|
|
14070
14073
|
border: 1px solid var(--color-border);
|
|
14071
14074
|
border-radius: 4px;
|
|
14072
14075
|
overflow: hidden;
|
|
@@ -14076,29 +14079,29 @@ html[data-theme='dark'] {
|
|
|
14076
14079
|
position: relative;
|
|
14077
14080
|
font-size: 14px;
|
|
14078
14081
|
}
|
|
14079
|
-
.
|
|
14082
|
+
._layer_w3cwc_336 ul {
|
|
14080
14083
|
margin: 0;
|
|
14081
14084
|
padding: 0;
|
|
14082
14085
|
list-style-type: none;
|
|
14083
14086
|
}
|
|
14084
|
-
.
|
|
14087
|
+
._layer_w3cwc_336 ul li {
|
|
14085
14088
|
list-style: none;
|
|
14086
14089
|
display: block;
|
|
14087
14090
|
}
|
|
14088
|
-
.
|
|
14091
|
+
._layer_w3cwc_336._small_w3cwc_358 {
|
|
14089
14092
|
font-size: 12px;
|
|
14090
14093
|
}
|
|
14091
|
-
.
|
|
14092
|
-
.
|
|
14093
|
-
.
|
|
14094
|
+
._heading_w3cwc_361,
|
|
14095
|
+
._option_w3cwc_362,
|
|
14096
|
+
._message_w3cwc_363 {
|
|
14094
14097
|
padding: 9.5px 0 9.5px 14px;
|
|
14095
14098
|
}
|
|
14096
|
-
.
|
|
14097
|
-
.
|
|
14098
|
-
.
|
|
14099
|
+
._small_w3cwc_358 ._heading_w3cwc_361,
|
|
14100
|
+
._small_w3cwc_358 ._option_w3cwc_362,
|
|
14101
|
+
._small_w3cwc_358 ._message_w3cwc_363 {
|
|
14099
14102
|
padding: 3.5px 0 3.5px 7px;
|
|
14100
14103
|
}
|
|
14101
|
-
.
|
|
14104
|
+
._heading_w3cwc_361 {
|
|
14102
14105
|
color: var(--color-text-muted);
|
|
14103
14106
|
letter-spacing: 0.1em;
|
|
14104
14107
|
text-transform: uppercase;
|
|
@@ -14109,13 +14112,13 @@ html[data-theme='dark'] {
|
|
|
14109
14112
|
text-overflow: ellipsis;
|
|
14110
14113
|
white-space: nowrap;
|
|
14111
14114
|
}
|
|
14112
|
-
.
|
|
14115
|
+
._small_w3cwc_358 ._heading_w3cwc_361 {
|
|
14113
14116
|
font-size: 10px;
|
|
14114
14117
|
}
|
|
14115
|
-
.
|
|
14118
|
+
._message_w3cwc_363 {
|
|
14116
14119
|
color: var(--color-text-faint);
|
|
14117
14120
|
}
|
|
14118
|
-
.
|
|
14121
|
+
._option_w3cwc_362 {
|
|
14119
14122
|
line-height: 20px;
|
|
14120
14123
|
display: flex;
|
|
14121
14124
|
align-items: center;
|
|
@@ -14124,22 +14127,22 @@ html[data-theme='dark'] {
|
|
|
14124
14127
|
height: 100%;
|
|
14125
14128
|
cursor: pointer;
|
|
14126
14129
|
}
|
|
14127
|
-
.
|
|
14128
|
-
.
|
|
14130
|
+
._option_w3cwc_362._focused_w3cwc_397,
|
|
14131
|
+
._option_w3cwc_362:hover {
|
|
14129
14132
|
background-color: var(--color-background-menuitem-hover);
|
|
14130
14133
|
}
|
|
14131
|
-
.
|
|
14134
|
+
._option_w3cwc_362._selected_w3cwc_401 {
|
|
14132
14135
|
background-color: var(--color-background-menuitem-active);
|
|
14133
14136
|
}
|
|
14134
|
-
.
|
|
14135
|
-
.
|
|
14137
|
+
._option_w3cwc_362._selected_w3cwc_401._focused_w3cwc_397,
|
|
14138
|
+
._option_w3cwc_362._selected_w3cwc_401:hover {
|
|
14136
14139
|
background-color: var(--color-background-menuitem-activehover);
|
|
14137
14140
|
}
|
|
14138
|
-
.
|
|
14141
|
+
._option_w3cwc_362._disabled_w3cwc_408 {
|
|
14139
14142
|
opacity: 0.2;
|
|
14140
14143
|
cursor: inherit;
|
|
14141
14144
|
}
|
|
14142
|
-
.
|
|
14145
|
+
._option_w3cwc_362 ._check_w3cwc_412 {
|
|
14143
14146
|
color: var(--color-text-primary);
|
|
14144
14147
|
font-size: 0.75em;
|
|
14145
14148
|
width: var(--size);
|
|
@@ -14147,29 +14150,29 @@ html[data-theme='dark'] {
|
|
|
14147
14150
|
justify-content: center;
|
|
14148
14151
|
flex-shrink: 0;
|
|
14149
14152
|
}
|
|
14150
|
-
.
|
|
14153
|
+
._small_w3cwc_358 ._option_w3cwc_362 ._check_w3cwc_412 {
|
|
14151
14154
|
width: var(--size-sm);
|
|
14152
14155
|
}
|
|
14153
|
-
.
|
|
14156
|
+
._option_w3cwc_362 ._check_w3cwc_412 svg {
|
|
14154
14157
|
display: block;
|
|
14155
14158
|
}
|
|
14156
|
-
.
|
|
14159
|
+
._option_w3cwc_362 ._optionContent_w3cwc_426 {
|
|
14157
14160
|
flex-wrap: wrap;
|
|
14158
14161
|
margin-right: auto;
|
|
14159
14162
|
overflow: hidden;
|
|
14160
14163
|
}
|
|
14161
|
-
.
|
|
14164
|
+
._option_w3cwc_362 ._optionContent_w3cwc_426 ._label_w3cwc_431 {
|
|
14162
14165
|
max-width: 100%;
|
|
14163
14166
|
display: block;
|
|
14164
14167
|
overflow: hidden;
|
|
14165
14168
|
text-overflow: ellipsis;
|
|
14166
14169
|
white-space: nowrap;
|
|
14167
14170
|
}
|
|
14168
|
-
.
|
|
14171
|
+
._option_w3cwc_362 ._optionContent_w3cwc_426 ._icon_w3cwc_438 {
|
|
14169
14172
|
margin-left: 8px;
|
|
14170
14173
|
line-height: 0;
|
|
14171
14174
|
}
|
|
14172
|
-
.
|
|
14175
|
+
._details_w3cwc_442 {
|
|
14173
14176
|
float: right;
|
|
14174
14177
|
display: inline;
|
|
14175
14178
|
white-space: nowrap;
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var __publicField = (obj, key2, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
import { jsx, Fragment as Fragment$1, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import * as React$4 from "react";
|
|
9
|
-
import React__default, { useState, useRef, useEffect, useCallback as useCallback$1, createElement, forwardRef, useContext, useMemo as useMemo$1, useLayoutEffect as useLayoutEffect$1, createContext, isValidElement, useReducer, useDebugValue, Fragment as Fragment$2, Component as Component$1, PureComponent, memo, cloneElement as cloneElement$1
|
|
9
|
+
import React__default, { useState, useRef, useEffect, useCallback as useCallback$1, createElement, forwardRef, useContext, useMemo as useMemo$1, useLayoutEffect as useLayoutEffect$1, createContext, isValidElement, useReducer, useDebugValue, Fragment as Fragment$2, Component as Component$1, PureComponent, useImperativeHandle, memo, cloneElement as cloneElement$1 } from "react";
|
|
10
10
|
import * as PropTypes from "prop-types";
|
|
11
11
|
import PropTypes__default from "prop-types";
|
|
12
12
|
import ReactDOM, { createPortal, unstable_batchedUpdates, render } from "react-dom";
|
|
@@ -8994,12 +8994,12 @@ const DeprecatedIcon = ({ icon: icon2 }) => {
|
|
|
8994
8994
|
return /* @__PURE__ */ jsx(FaRegCircle, {});
|
|
8995
8995
|
}
|
|
8996
8996
|
};
|
|
8997
|
-
const wrapper$
|
|
8997
|
+
const wrapper$5 = "_wrapper_xr2gg_333";
|
|
8998
8998
|
const customSvg = "_customSvg_xr2gg_340";
|
|
8999
8999
|
const customPng = "_customPng_xr2gg_343";
|
|
9000
9000
|
const clickable = "_clickable_xr2gg_348";
|
|
9001
9001
|
const styles$N = {
|
|
9002
|
-
wrapper: wrapper$
|
|
9002
|
+
wrapper: wrapper$5,
|
|
9003
9003
|
customSvg,
|
|
9004
9004
|
customPng,
|
|
9005
9005
|
clickable
|
|
@@ -9052,7 +9052,7 @@ Icon.propTypes = {
|
|
|
9052
9052
|
clickable: PropTypes__default.bool,
|
|
9053
9053
|
testId: PropTypes__default.string
|
|
9054
9054
|
};
|
|
9055
|
-
const wrapper$
|
|
9055
|
+
const wrapper$4 = "_wrapper_4b1ge_333";
|
|
9056
9056
|
const layer$1 = "_layer_4b1ge_337";
|
|
9057
9057
|
const layerContainer$1 = "_layerContainer_4b1ge_340";
|
|
9058
9058
|
const nested = "_nested_4b1ge_355";
|
|
@@ -9081,7 +9081,7 @@ const component = "_component_4b1ge_520";
|
|
|
9081
9081
|
const right$7 = "_right_4b1ge_526";
|
|
9082
9082
|
const actions$2 = "_actions_4b1ge_531";
|
|
9083
9083
|
const styles$M = {
|
|
9084
|
-
wrapper: wrapper$
|
|
9084
|
+
wrapper: wrapper$4,
|
|
9085
9085
|
layer: layer$1,
|
|
9086
9086
|
layerContainer: layerContainer$1,
|
|
9087
9087
|
nested,
|
|
@@ -9330,7 +9330,7 @@ const placementOptions$1 = (placement, isNested = false) => ({
|
|
|
9330
9330
|
preferY: "bottom",
|
|
9331
9331
|
placement: placement || (isNested ? "right-start" : "bottom-start")
|
|
9332
9332
|
});
|
|
9333
|
-
const wrapper$
|
|
9333
|
+
const wrapper$3 = "_wrapper_1n3f1_333";
|
|
9334
9334
|
const badge = "_badge_1n3f1_337";
|
|
9335
9335
|
const label$9 = "_label_1n3f1_342";
|
|
9336
9336
|
const dark$1 = "_dark_1n3f1_354";
|
|
@@ -9339,7 +9339,7 @@ const small$d = "_small_1n3f1_360";
|
|
|
9339
9339
|
const dot = "_dot_1n3f1_366";
|
|
9340
9340
|
const hasChildren = "_hasChildren_1n3f1_371";
|
|
9341
9341
|
const styles$L = {
|
|
9342
|
-
wrapper: wrapper$
|
|
9342
|
+
wrapper: wrapper$3,
|
|
9343
9343
|
badge,
|
|
9344
9344
|
label: label$9,
|
|
9345
9345
|
dark: dark$1,
|
|
@@ -25184,12 +25184,12 @@ const Portal = ({ id: id2, children }) => {
|
|
|
25184
25184
|
Portal.propTypes = {
|
|
25185
25185
|
id: PropTypes__default.string.isRequired
|
|
25186
25186
|
};
|
|
25187
|
-
const wrapper$
|
|
25187
|
+
const wrapper$2 = "_wrapper_1d6pq_333";
|
|
25188
25188
|
const contentContainer = "_contentContainer_1d6pq_347";
|
|
25189
25189
|
const centered = "_centered_1d6pq_359";
|
|
25190
25190
|
const newLine = "_newLine_1d6pq_363";
|
|
25191
25191
|
const styles$q = {
|
|
25192
|
-
wrapper: wrapper$
|
|
25192
|
+
wrapper: wrapper$2,
|
|
25193
25193
|
contentContainer,
|
|
25194
25194
|
centered,
|
|
25195
25195
|
newLine
|
|
@@ -26381,21 +26381,23 @@ var FixedSizeList = /* @__PURE__ */ createListComponent({
|
|
|
26381
26381
|
}
|
|
26382
26382
|
}
|
|
26383
26383
|
});
|
|
26384
|
-
const
|
|
26385
|
-
const
|
|
26386
|
-
const
|
|
26387
|
-
const
|
|
26388
|
-
const
|
|
26389
|
-
const
|
|
26390
|
-
const
|
|
26391
|
-
const
|
|
26392
|
-
const
|
|
26393
|
-
const
|
|
26394
|
-
const
|
|
26395
|
-
const
|
|
26396
|
-
const
|
|
26397
|
-
const
|
|
26384
|
+
const wrapper$1 = "_wrapper_w3cwc_333";
|
|
26385
|
+
const layerContainer = "_layerContainer_w3cwc_336";
|
|
26386
|
+
const layer = "_layer_w3cwc_336";
|
|
26387
|
+
const small$5 = "_small_w3cwc_358";
|
|
26388
|
+
const heading = "_heading_w3cwc_361";
|
|
26389
|
+
const option = "_option_w3cwc_362";
|
|
26390
|
+
const message = "_message_w3cwc_363";
|
|
26391
|
+
const focused = "_focused_w3cwc_397";
|
|
26392
|
+
const selected = "_selected_w3cwc_401";
|
|
26393
|
+
const disabled$5 = "_disabled_w3cwc_408";
|
|
26394
|
+
const check = "_check_w3cwc_412";
|
|
26395
|
+
const optionContent = "_optionContent_w3cwc_426";
|
|
26396
|
+
const label$5 = "_label_w3cwc_431";
|
|
26397
|
+
const icon$2 = "_icon_w3cwc_438";
|
|
26398
|
+
const details = "_details_w3cwc_442";
|
|
26398
26399
|
const styles$m = {
|
|
26400
|
+
wrapper: wrapper$1,
|
|
26399
26401
|
layerContainer,
|
|
26400
26402
|
layer,
|
|
26401
26403
|
small: small$5,
|
|
@@ -27270,6 +27272,7 @@ const CustomSelect = ({
|
|
|
27270
27272
|
};
|
|
27271
27273
|
return /* @__PURE__ */ jsx("div", {
|
|
27272
27274
|
style: { width: getTriggerWidth() },
|
|
27275
|
+
className: styles$m.wrapper,
|
|
27273
27276
|
children: /* @__PURE__ */ jsxs(KeyboardEventHandler, {
|
|
27274
27277
|
handleKeys: ["tab", "up", "down", "left", "right", "enter", "esc"],
|
|
27275
27278
|
onKeyEvent,
|
|
@@ -54768,49 +54771,48 @@ const styles$e = {
|
|
|
54768
54771
|
hideScrollbars: hideScrollbars$4,
|
|
54769
54772
|
richTextInput
|
|
54770
54773
|
};
|
|
54771
|
-
const RichTextInput = (
|
|
54772
|
-
placeholder: placeholder3,
|
|
54773
|
-
|
|
54774
|
-
|
|
54775
|
-
|
|
54776
|
-
|
|
54777
|
-
|
|
54778
|
-
|
|
54779
|
-
|
|
54780
|
-
|
|
54781
|
-
|
|
54782
|
-
|
|
54783
|
-
|
|
54784
|
-
|
|
54785
|
-
|
|
54786
|
-
|
|
54787
|
-
|
|
54788
|
-
|
|
54789
|
-
|
|
54790
|
-
|
|
54791
|
-
|
|
54792
|
-
|
|
54793
|
-
|
|
54794
|
-
|
|
54795
|
-
|
|
54796
|
-
|
|
54797
|
-
|
|
54798
|
-
|
|
54799
|
-
|
|
54800
|
-
|
|
54801
|
-
|
|
54802
|
-
|
|
54803
|
-
|
|
54804
|
-
|
|
54805
|
-
|
|
54806
|
-
|
|
54807
|
-
|
|
54808
|
-
|
|
54809
|
-
|
|
54810
|
-
|
|
54811
|
-
|
|
54812
|
-
|
|
54813
|
-
};
|
|
54774
|
+
const RichTextInput = forwardRef(
|
|
54775
|
+
({ placeholder: placeholder3, onChange, value, disabled: disabledProp }, ref2) => {
|
|
54776
|
+
const disabledContext = useContext(DisabledContext);
|
|
54777
|
+
const disabled2 = disabledProp || disabledContext;
|
|
54778
|
+
const { manager, state, setState, getContext: getContext2 } = useRemirror({
|
|
54779
|
+
extensions: () => [
|
|
54780
|
+
new BoldExtension(),
|
|
54781
|
+
new BulletListExtension(),
|
|
54782
|
+
new CodeExtension(),
|
|
54783
|
+
new ItalicExtension(),
|
|
54784
|
+
new MarkdownExtension(),
|
|
54785
|
+
new OrderedListExtension(),
|
|
54786
|
+
new PlaceholderExtension({ placeholder: placeholder3 })
|
|
54787
|
+
],
|
|
54788
|
+
content: value,
|
|
54789
|
+
selection: "start",
|
|
54790
|
+
stringHandler: "markdown"
|
|
54791
|
+
});
|
|
54792
|
+
useImperativeHandle(ref2, () => getContext2(), [getContext2]);
|
|
54793
|
+
const handleChange = ({ helpers, state: state2 }) => {
|
|
54794
|
+
const markdown = helpers.getMarkdown();
|
|
54795
|
+
setState(state2);
|
|
54796
|
+
onChange(markdown);
|
|
54797
|
+
};
|
|
54798
|
+
return /* @__PURE__ */ jsx("div", {
|
|
54799
|
+
className: styles$e.richTextInput,
|
|
54800
|
+
children: /* @__PURE__ */ jsxs(Remirror, {
|
|
54801
|
+
manager,
|
|
54802
|
+
state,
|
|
54803
|
+
placeholder: placeholder3,
|
|
54804
|
+
onChange: handleChange,
|
|
54805
|
+
editable: !disabled2,
|
|
54806
|
+
children: [
|
|
54807
|
+
/* @__PURE__ */ jsx(RichTextToolbar, {
|
|
54808
|
+
disabled: disabled2
|
|
54809
|
+
}),
|
|
54810
|
+
/* @__PURE__ */ jsx(EditorComponent, {})
|
|
54811
|
+
]
|
|
54812
|
+
})
|
|
54813
|
+
});
|
|
54814
|
+
}
|
|
54815
|
+
);
|
|
54814
54816
|
RichTextInput.defaultProps = {
|
|
54815
54817
|
disabled: false,
|
|
54816
54818
|
onChange: null,
|
|
@@ -57689,7 +57691,8 @@ const NumberInput = ({
|
|
|
57689
57691
|
warning: warning2,
|
|
57690
57692
|
validationCallback,
|
|
57691
57693
|
allowEmpty,
|
|
57692
|
-
isInTable: isInTable2
|
|
57694
|
+
isInTable: isInTable2,
|
|
57695
|
+
groupOrder
|
|
57693
57696
|
}) => {
|
|
57694
57697
|
const [displayValue, setDisplayValue] = useState(value);
|
|
57695
57698
|
const [validationError, setValidationError] = useState(null);
|
|
@@ -57752,7 +57755,8 @@ const NumberInput = ({
|
|
|
57752
57755
|
right: !left2,
|
|
57753
57756
|
small: small2,
|
|
57754
57757
|
width,
|
|
57755
|
-
isInTable: isInTable2
|
|
57758
|
+
isInTable: isInTable2,
|
|
57759
|
+
groupOrder
|
|
57756
57760
|
}, stringName);
|
|
57757
57761
|
};
|
|
57758
57762
|
NumberInput.defaultProps = {
|