@oliasoft-open-source/react-ui-library 4.1.10-beta-2 → 4.1.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/dist/assets/{index-cfa07a3f.js → index-b40c1ceb.js} +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.html +1 -1
- package/dist/index.js +6 -11
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-6VNJS4EI-af78e932.js → Color-6VNJS4EI-49682255.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-NNNQARDV-a38ee039.js → DocsRenderer-NNNQARDV-1bcb81e2.js} +1 -1
- package/dist/storybook/assets/{WithTooltip-4HIR6TLV-51fff697.js → WithTooltip-4HIR6TLV-73d747dc.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-5cd30e17.js → accordion.stories-c77ba17b.js} +1 -1
- package/dist/storybook/assets/{actions-2d4e1c8e.js → actions-00a7c5fa.js} +1 -1
- package/dist/storybook/assets/{actions.stories-81a7cb7a.js → actions.stories-ad745348.js} +1 -1
- package/dist/storybook/assets/{afe.stories-59152807.js → afe.stories-6b401dc0.js} +1 -1
- package/dist/storybook/assets/{badge.stories-5ce7957f.js → badge.stories-bdda24b2.js} +1 -1
- package/dist/storybook/assets/{blowout.stories-ee7f932b.js → blowout.stories-730058b8.js} +1 -1
- package/dist/storybook/assets/button-7231d685.js +1 -0
- package/dist/storybook/assets/{button-group-fa895d0c.js → button-group-c3887e73.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-22f072b7.js → button-group.stories-4b555072.js} +1 -1
- package/dist/storybook/assets/button.stories-b8f991d8.js +76 -0
- package/dist/storybook/assets/{buttons-and-links-1a4a35fc.js → buttons-and-links-f8f08e04.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-8295245b.js → casing-loads.stories-7b1eea98.js} +1 -1
- package/dist/storybook/assets/{cell.stories-5ae9d3e4.js → cell.stories-40efd029.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-1e15c977.js → chunk-HLWAVYOI-386835b7.js} +1 -1
- package/dist/storybook/assets/{color-0154d0d6.js → color-397c8d5e.js} +1 -1
- package/dist/storybook/assets/{dialog-cd58dd09.js → dialog-9942caae.js} +1 -1
- package/dist/storybook/assets/{drawer-7f450988.js → drawer-13b91b01.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-2512fef1.js → drawer.stories-4f6d5751.js} +1 -1
- package/dist/storybook/assets/{empty.stories-e0e3ac78.js → empty.stories-e77401d0.js} +1 -1
- package/dist/storybook/assets/{file-input.stories-0e546123.js → file-input.stories-3909d1b4.js} +1 -1
- package/dist/storybook/assets/{flex.stories-9d4c08a1.js → flex.stories-2c66c612.js} +1 -1
- package/dist/storybook/assets/{footer.stories-ab358144.js → footer.stories-9b106a5f.js} +1 -1
- package/dist/storybook/assets/{form.stories-c02bea64.js → form.stories-fa326f30.js} +1 -1
- package/dist/storybook/assets/{formation.stories-4a785556.js → formation.stories-1d864032.js} +1 -1
- package/dist/storybook/assets/{formatter-SWP5E3XI-a5e21c9c.js → formatter-SWP5E3XI-6f553f51.js} +1 -1
- package/dist/storybook/assets/{iframe-14486f52.js → iframe-3953e800.js} +1 -1
- package/dist/storybook/assets/{index-0e45c5fd.js → index-73e1a2fa.js} +4 -4
- package/dist/storybook/assets/{input-group.stories-0a0fdf26.js → input-group.stories-537d14d7.js} +1 -1
- package/dist/storybook/assets/{input-validation-8864e3e1.js → input-validation-642fe718.js} +1 -1
- package/dist/storybook/assets/{inputs-29b185e1.js → inputs-38cd91e7.js} +1 -1
- package/dist/storybook/assets/{layout-forms-d352f78e.js → layout-forms-7a9bfd79.js} +1 -1
- package/dist/storybook/assets/{layout-general-4625cf0c.js → layout-general-a3b0be2b.js} +1 -1
- package/dist/storybook/assets/{list-0dc3df85.js → list-90f1fb0b.js} +1 -1
- package/dist/storybook/assets/{list-heading-88cc8a9b.js → list-heading-a12c02fe.js} +1 -1
- package/dist/storybook/assets/{list.stories-0f30d0b5.js → list.stories-3da32717.js} +1 -1
- package/dist/storybook/assets/{list.stories-data-390b28e1.js → list.stories-data-b4ad9ff1.js} +1 -1
- package/dist/storybook/assets/{loader.stories-6107832a.js → loader.stories-957cadfa.js} +1 -1
- package/dist/storybook/assets/{menu.stories-7a422ddf.js → menu.stories-81f79b2b.js} +1 -1
- package/dist/storybook/assets/{message.stories-f41a0c22.js → message.stories-9fae47e0.js} +1 -1
- package/dist/storybook/assets/{modal.stories-d10528eb.js → modal.stories-148a7011.js} +1 -1
- package/dist/storybook/assets/{number-input.stories-ac4d02df.js → number-input.stories-babd2d7a.js} +1 -1
- package/dist/storybook/assets/{option-dropdown.stories-5030bdb8.js → option-dropdown.stories-697ea08b.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-cef2c36e.js → padding-and-spacing-9c4e3d87.js} +1 -1
- package/dist/storybook/assets/{page.stories-7cb68fed.js → page.stories-8645366e.js} +1 -1
- package/dist/storybook/assets/{pagination-e5a7b6d5.js → pagination-70bbe41e.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-1112fd67.js → pagination.stories-daea6780.js} +1 -1
- package/dist/storybook/assets/{pop-confirm.stories-81b30901.js → pop-confirm.stories-5a53dd58.js} +1 -1
- package/dist/storybook/assets/{popover-06e375a5.js → popover-05cf350c.js} +1 -1
- package/dist/storybook/assets/{popover.stories-c61b8a09.js → popover.stories-4b5224fc.js} +1 -1
- package/dist/storybook/assets/preview-14a2f761.js +1 -0
- package/dist/storybook/assets/{preview-ef7d661e.js → preview-d19a41b1.js} +1 -1
- package/dist/storybook/assets/{projects.stories-3884a80c.js → projects.stories-18a614ba.js} +1 -1
- package/dist/storybook/assets/{reservoirs.stories-8301fe95.js → reservoirs.stories-c2597184.js} +1 -1
- package/dist/storybook/assets/{rich-text-input.stories-293956ec.js → rich-text-input.stories-019728db.js} +1 -1
- package/dist/storybook/assets/{row.stories-b7cef4fe.js → row.stories-9674beb0.js} +1 -1
- package/dist/storybook/assets/select-9b43ece6.js +1 -0
- package/dist/storybook/assets/{select.stories-f20d7eb0.js → select.stories-d6b50d59.js} +1 -1
- package/dist/storybook/assets/{side-bar-88e8cf41.js → side-bar-85bfb5fb.js} +1 -1
- package/dist/storybook/assets/{side-bar.stories-0887207d.js → side-bar.stories-03567477.js} +1 -1
- package/dist/storybook/assets/{site.stories-dee8ce1c.js → site.stories-33c1b695.js} +1 -1
- package/dist/storybook/assets/{slider-160e2152.js → slider-5f997333.js} +1 -1
- package/dist/storybook/assets/{slider.stories-79ab0e97.js → slider.stories-5a09c9c6.js} +1 -1
- package/dist/storybook/assets/{spacer.stories-97086558.js → spacer.stories-f8297dd2.js} +1 -1
- package/dist/storybook/assets/{syntaxhighlighter-NMPM6SWI-54037e59.js → syntaxhighlighter-NMPM6SWI-972e242a.js} +1 -1
- package/dist/storybook/assets/table-66acbc46.js +1 -0
- package/dist/storybook/assets/{table.stories-0a23ee2b.js → table.stories-4a213122.js} +1 -1
- package/dist/storybook/assets/{table.stories-data-aefdf55f.js → table.stories-data-73dda694.js} +1 -1
- package/dist/storybook/assets/{title.stories-8bc61482.js → title.stories-722fcf81.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-bed0d43f.js → toaster.stories-70d9f25e.js} +1 -1
- package/dist/storybook/assets/{tooltip.test-case.stories-ef78bd26.js → tooltip.test-case.stories-12d00946.js} +1 -1
- package/dist/storybook/assets/{top-bar-a84b9365.js → top-bar-bd7b7ba2.js} +1 -1
- package/dist/storybook/assets/{top-bar.stories-e93330f0.js → top-bar.stories-e540492f.js} +1 -1
- package/dist/storybook/assets/{top-bar.testcase.stories-3a824a14.js → top-bar.testcase.stories-95c74c79.js} +1 -1
- package/dist/storybook/assets/{tree.stories-590bdd69.js → tree.stories-c5395a3b.js} +1 -1
- 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/button-74c97e4a.js +0 -1
- package/dist/storybook/assets/button.stories-531033a8.js +0 -71
- package/dist/storybook/assets/preview-a74a20e2.js +0 -1
- package/dist/storybook/assets/select-62aa86c5.js +0 -1
- package/dist/storybook/assets/table-3ce364b4.js +0 -1
|
@@ -18322,7 +18322,7 @@ const Button$1 = ({
|
|
|
18322
18322
|
error: error2,
|
|
18323
18323
|
warning: warning2,
|
|
18324
18324
|
testId,
|
|
18325
|
-
tooltip:
|
|
18325
|
+
tooltip: tooltipProp,
|
|
18326
18326
|
inverted: inverted2 = false
|
|
18327
18327
|
// *Deprecated*
|
|
18328
18328
|
}) => {
|
|
@@ -18357,6 +18357,7 @@ const Button$1 = ({
|
|
|
18357
18357
|
}
|
|
18358
18358
|
return "";
|
|
18359
18359
|
})();
|
|
18360
|
+
const tooltip2 = tooltipProp ?? round2 ? title2 : void 0;
|
|
18360
18361
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ButtonTooltipWrapper, { tooltip: tooltip2, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
18361
18362
|
"button",
|
|
18362
18363
|
{
|
package/dist/index.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export declare enum BreadcrumbLinkType {
|
|
|
40
40
|
CUSTOM = "custom"
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
export declare const Button: ({ active, basic, colored, disabled, groupOrder, icon, label, loading, name, pill, round, small, styles, width, title, type, onClick, error, warning, testId, tooltip, inverted, }: IButtonProps) => JSX_2.Element;
|
|
43
|
+
export declare const Button: ({ active, basic, colored, disabled, groupOrder, icon, label, loading, name, pill, round, small, styles, width, title, type, onClick, error, warning, testId, tooltip: tooltipProp, inverted, }: IButtonProps) => JSX_2.Element;
|
|
44
44
|
|
|
45
45
|
export declare const ButtonGroup: (props: IButtonGroupProps) => JSX_2.Element;
|
|
46
46
|
|
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><head><title>React UI Library</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1" user-scalable="no"><meta name="apple-mobile-web-app-capable" content="yes"><script type="module" crossorigin src="/react-ui-library/assets/index-
|
|
1
|
+
<!doctype html><head><title>React UI Library</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1" user-scalable="no"><meta name="apple-mobile-web-app-capable" content="yes"><script type="module" crossorigin src="/react-ui-library/assets/index-b40c1ceb.js"></script><link rel="stylesheet" href="/react-ui-library/assets/index-9e4179c3.css"></head><body><div id="content"></div></body>
|
package/dist/index.js
CHANGED
|
@@ -4134,7 +4134,7 @@ const Button$1 = ({
|
|
|
4134
4134
|
error: error2,
|
|
4135
4135
|
warning: warning2,
|
|
4136
4136
|
testId,
|
|
4137
|
-
tooltip:
|
|
4137
|
+
tooltip: tooltipProp,
|
|
4138
4138
|
inverted: inverted2 = false
|
|
4139
4139
|
// *Deprecated*
|
|
4140
4140
|
}) => {
|
|
@@ -4169,6 +4169,7 @@ const Button$1 = ({
|
|
|
4169
4169
|
}
|
|
4170
4170
|
return "";
|
|
4171
4171
|
})();
|
|
4172
|
+
const tooltip2 = tooltipProp ?? round2 ? title2 : void 0;
|
|
4172
4173
|
return /* @__PURE__ */ jsx(ButtonTooltipWrapper, { tooltip: tooltip2, children: /* @__PURE__ */ jsxs(
|
|
4173
4174
|
"button",
|
|
4174
4175
|
{
|
|
@@ -20978,8 +20979,10 @@ const Trigger = ({
|
|
|
20978
20979
|
right: right2,
|
|
20979
20980
|
testId
|
|
20980
20981
|
}) => {
|
|
20982
|
+
var _a;
|
|
20981
20983
|
const [inputRef, setInputFocus] = useFocus();
|
|
20982
|
-
const
|
|
20984
|
+
const hasSelection2 = Array.isArray(selectedOptions) ? selectedOptions.length > 0 && ((_a = selectedOptions[0]) == null ? void 0 : _a.value) : selectedOptions == null ? void 0 : selectedOptions.value;
|
|
20985
|
+
const canClear = clearable && hasSelection2;
|
|
20983
20986
|
const order2 = (() => {
|
|
20984
20987
|
if (groupOrder) {
|
|
20985
20988
|
switch (groupOrder) {
|
|
@@ -20993,7 +20996,7 @@ const Trigger = ({
|
|
|
20993
20996
|
}
|
|
20994
20997
|
return "";
|
|
20995
20998
|
})();
|
|
20996
|
-
const selectedOptionsWithDetails = (selectedOptions == null ? void 0 : selectedOptions.details) ? {
|
|
20999
|
+
const selectedOptionsWithDetails = !Array.isArray(selectedOptions) && (selectedOptions == null ? void 0 : selectedOptions.details) ? {
|
|
20997
21000
|
...selectedOptions,
|
|
20998
21001
|
label: /* @__PURE__ */ jsxs("div", { className: cx$2(styles$l.detailedLabel), children: [
|
|
20999
21002
|
/* @__PURE__ */ jsx(Text, { children: selectedOptions.label }),
|
|
@@ -56329,14 +56332,6 @@ const Table = (props) => {
|
|
|
56329
56332
|
} = propTable;
|
|
56330
56333
|
const targetRef = useRef(null);
|
|
56331
56334
|
const [dimensions, setDimensions] = useState({ width: 0, height: 0 });
|
|
56332
|
-
const focusedElementRef = useRef(null);
|
|
56333
|
-
useEffect(() => {
|
|
56334
|
-
focusedElementRef.current = document.activeElement;
|
|
56335
|
-
console.log(focusedElementRef == null ? void 0 : focusedElementRef.current);
|
|
56336
|
-
if (focusedElementRef.current && document.body.contains(focusedElementRef.current)) {
|
|
56337
|
-
focusedElementRef.current.focus();
|
|
56338
|
-
}
|
|
56339
|
-
}, [propRows]);
|
|
56340
56335
|
useEffect(() => {
|
|
56341
56336
|
if (targetRef.current) {
|
|
56342
56337
|
setDimensions({
|