@oliasoft-open-source/react-ui-library 4.5.2-beta-6 → 4.5.3-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/assets/{index-9iQp6ex7.css → index-2LJjuVRB.css} +102 -72
- package/dist/assets/{index-I0RWdy30.js → index-RERH5Zwo.js} +47 -45
- package/dist/global.css +102 -72
- package/dist/index.d.ts +1 -0
- package/dist/index.html +1 -1
- package/dist/index.js +108 -61
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-6VNJS4EI-E7ZNe4o1.js → Color-6VNJS4EI-V6X7Ucgp.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-NNNQARDV-OaI5WuJB.js → DocsRenderer-NNNQARDV-zuhZg13E.js} +1 -1
- package/dist/storybook/assets/{WithTooltip-4HIR6TLV-SHwzfMv6.js → WithTooltip-4HIR6TLV-M3-dMDCM.js} +1 -1
- package/dist/storybook/assets/{afe.stories-A6qcM8Xs.js → afe.stories-xgu_fmH5.js} +1 -1
- package/dist/storybook/assets/{blowout.stories-Qn3Pnbgt.js → blowout.stories-Zmg8LDUO.js} +1 -1
- package/dist/storybook/assets/{button.stories-vebimSi_.js → button.stories-R9_1tl9l.js} +1 -1
- package/dist/storybook/assets/{buttons-and-links-Utt3d9uD.js → buttons-and-links-0W-Lo4la.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-52kknbPK.js → casing-loads.stories--f3o5XWs.js} +1 -1
- package/dist/storybook/assets/{cell.stories-_Kt-HAu4.js → cell.stories-P4syiRmw.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-710OtiqR.js → chunk-HLWAVYOI-bCq-_q2u.js} +1 -1
- package/dist/storybook/assets/{color-PbF3wAD3.js → color-r3R-hw1A.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-8bexupPx.js → drawer.stories-Rz_d8D90.js} +1 -1
- package/dist/storybook/assets/{file-input.stories-I6IPu7wX.js → file-input.stories-hWN8tShr.js} +1 -1
- package/dist/storybook/assets/{flex-KzhjL9yc.js → flex-ZVra76N-.js} +1 -1
- package/dist/storybook/assets/{flex.stories-rDfMJbP6.js → flex.stories-kjbyZMWP.js} +1 -1
- package/dist/storybook/assets/{footer.stories-TyCc6hrI.js → footer.stories-Na2wdtCC.js} +1 -1
- package/dist/storybook/assets/{form.stories-rWTgqDNA.js → form.stories-sBK-yzVk.js} +1 -1
- package/dist/storybook/assets/{formation.stories-MlmT5LOD.js → formation.stories-gmJQMNJJ.js} +1 -1
- package/dist/storybook/assets/{formatter-SWP5E3XI-cDcFXNTA.js → formatter-SWP5E3XI-_65Af7r6.js} +1 -1
- package/dist/storybook/assets/{heading.stories-UJlMVVI-.js → heading.stories-K-Z0sIoo.js} +1 -1
- package/dist/storybook/assets/{icon.stories-D_XEmSGG.js → icon.stories-icqUrCtQ.js} +1 -1
- package/dist/storybook/assets/{iframe-VU1UQBqS.js → iframe-f7RfrxbO.js} +2 -2
- package/dist/storybook/assets/{index-AXLS9YK5.js → index-vyBfFCw4.js} +5 -5
- package/dist/storybook/assets/{input-validation-zX7RETtK.js → input-validation-o44tAua7.js} +1 -1
- package/dist/storybook/assets/{inputs-Rqpv2ol3.js → inputs-gBYKrg7p.js} +1 -1
- package/dist/storybook/assets/{layout-forms-9kiRTTie.js → layout-forms-bVmbErTt.js} +1 -1
- package/dist/storybook/assets/{layout-general-Ss9mU-lb.js → layout-general-FiPJen3N.js} +1 -1
- package/dist/storybook/assets/{list-5kbN7yr8.js → list-JNed2RtS.js} +1 -1
- package/dist/storybook/assets/list-heading-dR7AAq04.css +1 -0
- package/dist/storybook/assets/list-heading-vjZIRKZb.js +1 -0
- package/dist/storybook/assets/{list.stories-8Jp9gBWa.js → list.stories-GrWiLEzS.js} +1 -1
- package/dist/storybook/assets/{list.stories-data-8eswVWst.js → list.stories-data-spFiMtCi.js} +1 -1
- package/dist/storybook/assets/{menu.stories-data-c8X93fYM.js → menu.stories-data-VCYkzuDD.js} +1 -1
- package/dist/storybook/assets/{menu.stories-GFJs09Wk.js → menu.stories-sot2Whii.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-zOP8kMEl.js → padding-and-spacing-FOCT-4t0.js} +1 -1
- package/dist/storybook/assets/{page.stories-UWV6w4-Y.js → page.stories-irwol-YJ.js} +1 -1
- package/dist/storybook/assets/{popover.stories-JVzzF0Jm.js → popover.stories-XaqJOrng.js} +1 -1
- package/dist/storybook/assets/{preview-KNg2Pf7n.js → preview-kbRvE0UL.js} +1 -1
- package/dist/storybook/assets/{preview-P7tLft7n.js → preview-wvr5MbaI.js} +2 -2
- package/dist/storybook/assets/{projects.stories-tdWMql9X.js → projects.stories-KBQvcnvE.js} +1 -1
- package/dist/storybook/assets/{reservoirs.stories-JYrn8yTU.js → reservoirs.stories-b-kYU38f.js} +1 -1
- package/dist/storybook/assets/{row.stories-ame-_GtI.js → row.stories-9WPK1-K-.js} +1 -1
- package/dist/storybook/assets/{side-bar.stories-Ld0zOToQ.js → side-bar.stories-q_bRwHV_.js} +1 -1
- package/dist/storybook/assets/{site.stories-pFcsDxkv.js → site.stories-ZUbDTfMw.js} +1 -1
- package/dist/storybook/assets/{spacer.stories--ynGgvN4.js → spacer.stories-CWSQp7tw.js} +1 -1
- package/dist/storybook/assets/{syntaxhighlighter-NMPM6SWI-ip9nqP52.js → syntaxhighlighter-NMPM6SWI-dazdF8tL.js} +1 -1
- package/dist/storybook/assets/{table.stories-data-w897tYMJ.js → table.stories-data-2BZDVr2X.js} +1 -1
- package/dist/storybook/assets/{table.stories-7_SeCJGK.js → table.stories-q2RiUlvj.js} +1 -1
- package/dist/storybook/assets/{textarea-mYEkEnUR.js → textarea-QFVBH_vb.js} +1 -1
- package/dist/storybook/assets/{textarea.stories-ARS3RM31.js → textarea.stories-HETiaNLn.js} +1 -1
- package/dist/storybook/assets/{title.stories-n1PHeROR.js → title.stories-wYK8FhNE.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-XhUo3pbR.js → toaster.stories-ft_M65x0.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-ItCMhW4M.js → toggle.stories-LC6LSCD2.js} +1 -1
- package/dist/storybook/assets/{tooltip.test-case.stories-L2bW8Ijz.js → tooltip.test-case.stories-y-bQOM0s.js} +1 -1
- package/dist/storybook/assets/{top-bar-EnQ1Jkle.js → top-bar-x_wXP6-y.js} +1 -1
- package/dist/storybook/assets/{top-bar.stories-xeIkUDYw.js → top-bar.stories-BfrMcs-K.js} +1 -1
- package/dist/storybook/assets/{top-bar.testcase.stories-AJRFp29t.js → top-bar.testcase.stories-RCQQ5Dxl.js} +1 -1
- package/dist/storybook/assets/tree-U4LtpVm9.css +1 -0
- package/dist/storybook/assets/{tree.stories-5fjCVN1S.js → tree.stories-lgED7Ld-.js} +17 -15
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/stories.json +1 -1
- package/package.json +1 -1
- package/dist/storybook/assets/list-heading-XbqCJOHh.js +0 -1
- package/dist/storybook/assets/list-heading-Y8BAUuV6.css +0 -1
- package/dist/storybook/assets/tree-zmq4MRb6.css +0 -1
package/dist/index.js
CHANGED
|
@@ -15423,7 +15423,7 @@ var getStyles = function getStyles2(rules2, property) {
|
|
|
15423
15423
|
return rule.selector + " { " + value + " }";
|
|
15424
15424
|
}).join(" ");
|
|
15425
15425
|
};
|
|
15426
|
-
var noPointerEvents = "pointer-events: none;";
|
|
15426
|
+
var noPointerEvents$1 = "pointer-events: none;";
|
|
15427
15427
|
var getStyles$1 = function(contextId) {
|
|
15428
15428
|
var getSelector2 = makeGetSelector(contextId);
|
|
15429
15429
|
var dragHandle$1 = function() {
|
|
@@ -15433,7 +15433,7 @@ var getStyles$1 = function(contextId) {
|
|
|
15433
15433
|
styles: {
|
|
15434
15434
|
always: "\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",
|
|
15435
15435
|
resting: grabCursor,
|
|
15436
|
-
dragging: noPointerEvents,
|
|
15436
|
+
dragging: noPointerEvents$1,
|
|
15437
15437
|
dropAnimating: grabCursor
|
|
15438
15438
|
}
|
|
15439
15439
|
};
|
|
@@ -18784,44 +18784,45 @@ var InfiniteScroll = (
|
|
|
18784
18784
|
return InfiniteScroll2;
|
|
18785
18785
|
}(Component$1)
|
|
18786
18786
|
);
|
|
18787
|
-
const inputInTable$8 = "
|
|
18788
|
-
const inputHover$8 = "
|
|
18789
|
-
const inputFocus$8 = "
|
|
18790
|
-
const inputError$8 = "
|
|
18791
|
-
const inputWarning$8 = "
|
|
18792
|
-
const inputDisabled$8 = "
|
|
18793
|
-
const hideScrollbars$8 = "
|
|
18794
|
-
const header$1 = "
|
|
18795
|
-
const headerTitle = "
|
|
18796
|
-
const heading$3 = "
|
|
18797
|
-
const itemHeader = "
|
|
18798
|
-
const narrow = "
|
|
18799
|
-
const stickyHeader = "
|
|
18800
|
-
const title$3 = "
|
|
18801
|
-
const name = "
|
|
18802
|
-
const iconTooltipMargin = "
|
|
18803
|
-
const bold = "
|
|
18804
|
-
const toggleNarrow = "
|
|
18805
|
-
const drag$1 = "
|
|
18806
|
-
const list$1 = "
|
|
18807
|
-
const bordered$1 = "
|
|
18808
|
-
const item$4 = "
|
|
18809
|
-
const action = "
|
|
18810
|
-
const active$3 = "
|
|
18811
|
-
const indented = "
|
|
18812
|
-
const disabled$5 = "
|
|
18813
|
-
const label$6 = "
|
|
18814
|
-
const details$2 = "
|
|
18815
|
-
const metadata = "
|
|
18816
|
-
const itemContent = "
|
|
18817
|
-
const indentIcon = "
|
|
18818
|
-
const expandIcon = "
|
|
18819
|
-
const expanded = "
|
|
18820
|
-
const right$4 = "
|
|
18821
|
-
const actions = "
|
|
18822
|
-
const scrollableList = "
|
|
18823
|
-
const infiniteScrollContainer = "
|
|
18824
|
-
const hideScrollbar = "
|
|
18787
|
+
const inputInTable$8 = "_inputInTable_tn20e_1";
|
|
18788
|
+
const inputHover$8 = "_inputHover_tn20e_13";
|
|
18789
|
+
const inputFocus$8 = "_inputFocus_tn20e_18";
|
|
18790
|
+
const inputError$8 = "_inputError_tn20e_25";
|
|
18791
|
+
const inputWarning$8 = "_inputWarning_tn20e_26";
|
|
18792
|
+
const inputDisabled$8 = "_inputDisabled_tn20e_61";
|
|
18793
|
+
const hideScrollbars$8 = "_hideScrollbars_tn20e_67";
|
|
18794
|
+
const header$1 = "_header_tn20e_77";
|
|
18795
|
+
const headerTitle = "_headerTitle_tn20e_77";
|
|
18796
|
+
const heading$3 = "_heading_tn20e_78";
|
|
18797
|
+
const itemHeader = "_itemHeader_tn20e_78";
|
|
18798
|
+
const narrow = "_narrow_tn20e_81";
|
|
18799
|
+
const stickyHeader = "_stickyHeader_tn20e_85";
|
|
18800
|
+
const title$3 = "_title_tn20e_96";
|
|
18801
|
+
const name = "_name_tn20e_102";
|
|
18802
|
+
const iconTooltipMargin = "_iconTooltipMargin_tn20e_105";
|
|
18803
|
+
const bold = "_bold_tn20e_108";
|
|
18804
|
+
const toggleNarrow = "_toggleNarrow_tn20e_117";
|
|
18805
|
+
const drag$1 = "_drag_tn20e_135";
|
|
18806
|
+
const list$1 = "_list_tn20e_155";
|
|
18807
|
+
const bordered$1 = "_bordered_tn20e_159";
|
|
18808
|
+
const item$4 = "_item_tn20e_78";
|
|
18809
|
+
const action = "_action_tn20e_192";
|
|
18810
|
+
const active$3 = "_active_tn20e_195";
|
|
18811
|
+
const indented = "_indented_tn20e_202";
|
|
18812
|
+
const disabled$5 = "_disabled_tn20e_215";
|
|
18813
|
+
const label$6 = "_label_tn20e_226";
|
|
18814
|
+
const details$2 = "_details_tn20e_237";
|
|
18815
|
+
const metadata = "_metadata_tn20e_238";
|
|
18816
|
+
const itemContent = "_itemContent_tn20e_246";
|
|
18817
|
+
const indentIcon = "_indentIcon_tn20e_253";
|
|
18818
|
+
const expandIcon = "_expandIcon_tn20e_258";
|
|
18819
|
+
const expanded = "_expanded_tn20e_265";
|
|
18820
|
+
const right$4 = "_right_tn20e_268";
|
|
18821
|
+
const actions = "_actions_tn20e_276";
|
|
18822
|
+
const scrollableList = "_scrollableList_tn20e_281";
|
|
18823
|
+
const infiniteScrollContainer = "_infiniteScrollContainer_tn20e_286";
|
|
18824
|
+
const hideScrollbar = "_hideScrollbar_tn20e_67";
|
|
18825
|
+
const noPointerEvents = "_noPointerEvents_tn20e_303";
|
|
18825
18826
|
const listStyles = {
|
|
18826
18827
|
inputInTable: inputInTable$8,
|
|
18827
18828
|
inputHover: inputHover$8,
|
|
@@ -18860,7 +18861,8 @@ const listStyles = {
|
|
|
18860
18861
|
actions,
|
|
18861
18862
|
scrollableList,
|
|
18862
18863
|
infiniteScrollContainer,
|
|
18863
|
-
hideScrollbar
|
|
18864
|
+
hideScrollbar,
|
|
18865
|
+
noPointerEvents
|
|
18864
18866
|
};
|
|
18865
18867
|
const ToggleNarrow = ({
|
|
18866
18868
|
toggleNarrow: toggleNarrow2,
|
|
@@ -69926,12 +69928,12 @@ function TreeInner(props, ref2) {
|
|
|
69926
69928
|
);
|
|
69927
69929
|
}
|
|
69928
69930
|
var Tree$1 = forwardRef(TreeInner);
|
|
69929
|
-
const tree = "
|
|
69930
|
-
const toggle = "
|
|
69931
|
-
const dropTarget = "
|
|
69932
|
-
const draggingSource = "
|
|
69933
|
-
const placeholderContainer = "
|
|
69934
|
-
const placeholder2 = "
|
|
69931
|
+
const tree = "_tree_15yn1_1";
|
|
69932
|
+
const toggle = "_toggle_15yn1_4";
|
|
69933
|
+
const dropTarget = "_dropTarget_15yn1_11";
|
|
69934
|
+
const draggingSource = "_draggingSource_15yn1_26";
|
|
69935
|
+
const placeholderContainer = "_placeholderContainer_15yn1_29";
|
|
69936
|
+
const placeholder2 = "_placeholder_15yn1_29";
|
|
69935
69937
|
const styles$1 = {
|
|
69936
69938
|
tree,
|
|
69937
69939
|
toggle,
|
|
@@ -69947,14 +69949,46 @@ const TreeItem = ({
|
|
|
69947
69949
|
onToggle,
|
|
69948
69950
|
hasChild,
|
|
69949
69951
|
draggable: draggable2,
|
|
69950
|
-
icons: icons2
|
|
69952
|
+
icons: icons2,
|
|
69953
|
+
onDrop
|
|
69951
69954
|
}) => {
|
|
69952
69955
|
const { id: id2, data } = node2;
|
|
69953
69956
|
const { active: active2, testId, onClick, actions: actions2 = [] } = data;
|
|
69957
|
+
const [isDragOver, setDragOver] = React__default.useState(false);
|
|
69958
|
+
const [dragOverStartTime, setDragOverStartTime] = React__default.useState(0);
|
|
69954
69959
|
const handleToggle = (e2) => {
|
|
69955
69960
|
e2.stopPropagation();
|
|
69956
69961
|
onToggle(id2);
|
|
69957
69962
|
};
|
|
69963
|
+
const handleDragEnter = (event) => {
|
|
69964
|
+
event.preventDefault();
|
|
69965
|
+
event.stopPropagation();
|
|
69966
|
+
if (!isDragOver) {
|
|
69967
|
+
setDragOver(true);
|
|
69968
|
+
setDragOverStartTime((/* @__PURE__ */ new Date()).getTime());
|
|
69969
|
+
}
|
|
69970
|
+
};
|
|
69971
|
+
const handleDragLeave = (event) => {
|
|
69972
|
+
event.preventDefault();
|
|
69973
|
+
event.stopPropagation();
|
|
69974
|
+
if ((/* @__PURE__ */ new Date()).getTime() - dragOverStartTime > 20) {
|
|
69975
|
+
setDragOver(false);
|
|
69976
|
+
}
|
|
69977
|
+
};
|
|
69978
|
+
const handleDragOver = (event) => {
|
|
69979
|
+
event.preventDefault();
|
|
69980
|
+
event.stopPropagation();
|
|
69981
|
+
if (hasChild && !isOpen2 && (/* @__PURE__ */ new Date()).getTime() - dragOverStartTime > 200) {
|
|
69982
|
+
handleToggle(event);
|
|
69983
|
+
}
|
|
69984
|
+
};
|
|
69985
|
+
const handleDrop = (event) => {
|
|
69986
|
+
event.preventDefault();
|
|
69987
|
+
event.stopPropagation();
|
|
69988
|
+
setDragOver(false);
|
|
69989
|
+
setDragOverStartTime((/* @__PURE__ */ new Date()).getTime());
|
|
69990
|
+
onDrop == null ? void 0 : onDrop(event);
|
|
69991
|
+
};
|
|
69958
69992
|
return /* @__PURE__ */ jsx(
|
|
69959
69993
|
"div",
|
|
69960
69994
|
{
|
|
@@ -69962,7 +69996,8 @@ const TreeItem = ({
|
|
|
69962
69996
|
listStyles.item,
|
|
69963
69997
|
listStyles.action,
|
|
69964
69998
|
active2 ? listStyles.active : "",
|
|
69965
|
-
depth > 0 ? listStyles.indented : ""
|
|
69999
|
+
depth > 0 ? listStyles.indented : "",
|
|
70000
|
+
isDragOver ? listStyles.bordered : ""
|
|
69966
70001
|
),
|
|
69967
70002
|
style: {
|
|
69968
70003
|
marginInlineStart: depth * 24
|
|
@@ -69975,10 +70010,17 @@ const TreeItem = ({
|
|
|
69975
70010
|
handleToggle(evt);
|
|
69976
70011
|
}
|
|
69977
70012
|
},
|
|
70013
|
+
onDrop: (evt) => onDrop ? handleDrop(evt) : {},
|
|
70014
|
+
onDragEnter: (evt) => onDrop ? handleDragEnter(evt) : {},
|
|
70015
|
+
onDragOver: (evt) => onDrop ? handleDragOver(evt) : {},
|
|
70016
|
+
onDragLeave: (evt) => onDrop ? handleDragLeave(evt) : {},
|
|
69978
70017
|
children: /* @__PURE__ */ jsxs(
|
|
69979
70018
|
"div",
|
|
69980
70019
|
{
|
|
69981
|
-
className:
|
|
70020
|
+
className: cx$2(
|
|
70021
|
+
listStyles.itemHeader,
|
|
70022
|
+
isDragOver ? listStyles.noPointerEvents : ""
|
|
70023
|
+
),
|
|
69982
70024
|
children: [
|
|
69983
70025
|
hasChild && /* @__PURE__ */ jsx("div", { className: styles$1.toggle, children: /* @__PURE__ */ jsx(
|
|
69984
70026
|
Button$1,
|
|
@@ -70081,16 +70123,19 @@ const Tree = ({
|
|
|
70081
70123
|
newList = transformTreeToList(workingTree);
|
|
70082
70124
|
onListReorder(newList);
|
|
70083
70125
|
};
|
|
70084
|
-
const tree2 = (_a = list2 == null ? void 0 : list2.items) == null ? void 0 : _a.map(
|
|
70085
|
-
id: id2,
|
|
70086
|
-
|
|
70087
|
-
|
|
70088
|
-
|
|
70089
|
-
|
|
70090
|
-
|
|
70091
|
-
|
|
70092
|
-
|
|
70093
|
-
|
|
70126
|
+
const tree2 = (_a = list2 == null ? void 0 : list2.items) == null ? void 0 : _a.map(
|
|
70127
|
+
({ id: id2, droppable: droppable2, parent, name: name2, onDrop, ...rest }) => ({
|
|
70128
|
+
id: id2,
|
|
70129
|
+
text: name2,
|
|
70130
|
+
droppable: droppable2,
|
|
70131
|
+
parent,
|
|
70132
|
+
data: {
|
|
70133
|
+
name: name2,
|
|
70134
|
+
onDrop,
|
|
70135
|
+
...rest
|
|
70136
|
+
}
|
|
70137
|
+
})
|
|
70138
|
+
);
|
|
70094
70139
|
return /* @__PURE__ */ jsxs("div", { "data-testid": testId, children: [
|
|
70095
70140
|
list2.name && !list2.noHeader && /* @__PURE__ */ jsx(ListHeading, { name: list2.name, actions: list2.actions }),
|
|
70096
70141
|
/* @__PURE__ */ jsx("div", { className: listStyles.list, children: /* @__PURE__ */ jsx(
|
|
@@ -70114,6 +70159,7 @@ const Tree = ({
|
|
|
70114
70159
|
},
|
|
70115
70160
|
rootId: 0,
|
|
70116
70161
|
render: (node2, { depth, isOpen: isOpen2, onToggle, hasChild }) => {
|
|
70162
|
+
var _a2;
|
|
70117
70163
|
return /* @__PURE__ */ jsx(
|
|
70118
70164
|
TreeItem,
|
|
70119
70165
|
{
|
|
@@ -70126,7 +70172,8 @@ const Tree = ({
|
|
|
70126
70172
|
onToggle();
|
|
70127
70173
|
},
|
|
70128
70174
|
draggable: draggable2,
|
|
70129
|
-
icons: icons2
|
|
70175
|
+
icons: icons2,
|
|
70176
|
+
onDrop: (_a2 = node2.data) == null ? void 0 : _a2.onDrop
|
|
70130
70177
|
}
|
|
70131
70178
|
);
|
|
70132
70179
|
},
|