@oliasoft-open-source/react-ui-library 4.0.0-beta-59 → 4.0.0-beta-61
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-541a35bd.css → index-815d3e96.css} +150 -136
- package/dist/assets/{index-425d14e0.js → index-bb4c3557.js} +78 -70
- package/dist/global.css +150 -136
- package/dist/index.html +1 -1
- package/dist/index.js +109 -92
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-6VNJS4EI-385fd07f.js → Color-6VNJS4EI-b198135c.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-NNNQARDV-81593ce6.js → DocsRenderer-NNNQARDV-19e71c0e.js} +1 -1
- package/dist/storybook/assets/{WithTooltip-4HIR6TLV-4193649c.js → WithTooltip-4HIR6TLV-2f83280b.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-11c22ab5.js → accordion.stories-e1a1a1da.js} +1 -1
- package/dist/storybook/assets/{afe.stories-2bda4793.js → afe.stories-37c20b62.js} +1 -1
- package/dist/storybook/assets/{buttons-and-links-957e9470.js → buttons-and-links-82ee1d3d.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-59db26a9.js → casing-loads.stories-07b8c5bf.js} +1 -1
- package/dist/storybook/assets/{cell.stories-7ebcbb82.js → cell.stories-0c3541a7.js} +1 -1
- package/dist/storybook/assets/check-box-73be452f.js +1 -0
- package/dist/storybook/assets/check-box-960c9b05.css +1 -0
- package/dist/storybook/assets/check-box.stories-73c79421.js +97 -0
- package/dist/storybook/assets/{chunk-HLWAVYOI-3d751d00.js → chunk-HLWAVYOI-3f2e7bdd.js} +1 -1
- package/dist/storybook/assets/{color-e6db64d0.js → color-338772bf.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-fdef3d43.js → drawer.stories-4eeb77c2.js} +1 -1
- package/dist/storybook/assets/{footer.stories-c9d4f59e.js → footer.stories-8a474f57.js} +1 -1
- package/dist/storybook/assets/{form.stories-7b32c75b.js → form.stories-c6efa8b0.js} +1 -1
- package/dist/storybook/assets/{formation.stories-4536d334.js → formation.stories-b909ce02.js} +1 -1
- package/dist/storybook/assets/{formatter-SWP5E3XI-3726b490.js → formatter-SWP5E3XI-25bcba07.js} +1 -1
- package/dist/storybook/assets/grid-3b729f81.js +15 -0
- package/dist/storybook/assets/{grid.stories-9c914a43.js → grid.stories-bf68df4a.js} +1 -1
- package/dist/storybook/assets/{icon.stories-10514dcd.js → icon.stories-9a1cd92c.js} +1 -1
- package/dist/storybook/assets/{iframe-41774194.js → iframe-bc0fdebc.js} +1 -1
- package/dist/storybook/assets/{index-e4f0261d.js → index-c54905c0.js} +4 -4
- package/dist/storybook/assets/{input-validation-dffded55.js → input-validation-7db01452.js} +1 -1
- package/dist/storybook/assets/{inputs-f223f0e0.js → inputs-b9d1bfa6.js} +1 -1
- package/dist/storybook/assets/{layout-forms-d2ac437d.js → layout-forms-d1ce1a06.js} +1 -1
- package/dist/storybook/assets/{layout-general-9ec44b89.js → layout-general-97dba2ce.js} +1 -1
- package/dist/storybook/assets/{list-858d3a1f.js → list-5907161b.js} +1 -1
- package/dist/storybook/assets/list-heading-d81b63f6.css +1 -0
- package/dist/storybook/assets/list-heading-f1ceab8b.js +1 -0
- package/dist/storybook/assets/{list.stories-534b1266.js → list.stories-339e0e65.js} +1 -1
- package/dist/storybook/assets/{message.stories-50cd9843.js → message.stories-48adad88.js} +1 -1
- package/dist/storybook/assets/{number-input-863c4463.js → number-input-42f50494.js} +5 -5
- package/dist/storybook/assets/{number-input.stories-04f6469b.js → number-input.stories-b4db5a5c.js} +1 -1
- package/dist/storybook/assets/{option-dropdown.stories-b3566308.js → option-dropdown.stories-4d10db5b.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-72fe80cd.js → padding-and-spacing-a3a5213e.js} +1 -1
- package/dist/storybook/assets/{preview-e1f45513.js → preview-074d29f8.js} +1 -1
- package/dist/storybook/assets/{preview-d4100e75.css → preview-4131d937.css} +1 -1
- package/dist/storybook/assets/preview-de19c997.js +1 -0
- package/dist/storybook/assets/{projects.stories-fb4cb900.js → projects.stories-a5ac5dbd.js} +1 -1
- package/dist/storybook/assets/radio-button-266c81ed.js +1 -0
- package/dist/storybook/assets/radio-button-52e2b7a7.css +1 -0
- package/dist/storybook/assets/radio-button.stories-d74ed901.js +61 -0
- package/dist/storybook/assets/{reservoirs.stories-134f21cc.js → reservoirs.stories-098985fb.js} +1 -1
- package/dist/storybook/assets/{row.stories-b0214b95.js → row.stories-566dbfdc.js} +1 -1
- package/dist/storybook/assets/{site.stories-3f58bf8f.js → site.stories-aa5eda50.js} +1 -1
- package/dist/storybook/assets/{syntaxhighlighter-NMPM6SWI-07fdd16e.js → syntaxhighlighter-NMPM6SWI-9c89c825.js} +1 -1
- package/dist/storybook/assets/{table-95ed9716.js → table-16e7479d.js} +1 -1
- package/dist/storybook/assets/{table.stories-3387ebf8.js → table.stories-af5f3080.js} +1 -1
- package/dist/storybook/assets/{title.stories-286cd48b.js → title.stories-c91929de.js} +1 -1
- package/dist/storybook/assets/{toggle-d9a0cd27.css → toggle-239108ba.css} +1 -1
- package/dist/storybook/assets/toggle-de8e437a.js +1 -0
- package/dist/storybook/assets/toggle.stories-05bf43ff.js +108 -0
- package/dist/storybook/assets/{tree.stories-304d9ff1.js → tree.stories-0521665b.js} +4 -4
- 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/check-box-421e08ab.js +0 -1
- package/dist/storybook/assets/check-box-805d6047.css +0 -1
- package/dist/storybook/assets/check-box.stories-3e23f07e.js +0 -85
- package/dist/storybook/assets/grid-78d1b29a.js +0 -15
- package/dist/storybook/assets/list-heading-8544b8e3.css +0 -1
- package/dist/storybook/assets/list-heading-d8175bfc.js +0 -1
- package/dist/storybook/assets/preview-b62a051c.js +0 -1
- package/dist/storybook/assets/radio-button-82505e3b.js +0 -1
- package/dist/storybook/assets/radio-button-bd9936b8.css +0 -1
- package/dist/storybook/assets/radio-button.stories-0cbfcabb.js +0 -51
- package/dist/storybook/assets/toggle-df90df5f.js +0 -1
- package/dist/storybook/assets/toggle.stories-107799ac.js +0 -96
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-bb4c3557.js"></script><link rel="stylesheet" href="/react-ui-library/assets/index-815d3e96.css"></head><body><div id="content"></div></body>
|
package/dist/index.js
CHANGED
|
@@ -3560,13 +3560,14 @@ const Accordion = ({
|
|
|
3560
3560
|
}
|
|
3561
3561
|
);
|
|
3562
3562
|
};
|
|
3563
|
-
const checkbox = "
|
|
3564
|
-
const noLabel = "
|
|
3565
|
-
const small$d = "
|
|
3566
|
-
const checkmark = "
|
|
3567
|
-
const disabled$9 = "
|
|
3568
|
-
const noMargin$2 = "
|
|
3569
|
-
const isInTable$4 = "
|
|
3563
|
+
const checkbox = "_checkbox_1ybyr_1";
|
|
3564
|
+
const noLabel = "_noLabel_1ybyr_17";
|
|
3565
|
+
const small$d = "_small_1ybyr_20";
|
|
3566
|
+
const checkmark = "_checkmark_1ybyr_43";
|
|
3567
|
+
const disabled$9 = "_disabled_1ybyr_67";
|
|
3568
|
+
const noMargin$2 = "_noMargin_1ybyr_81";
|
|
3569
|
+
const isInTable$4 = "_isInTable_1ybyr_84";
|
|
3570
|
+
const helpIconEnabled$2 = "_helpIconEnabled_1ybyr_87";
|
|
3570
3571
|
const styles$Q = {
|
|
3571
3572
|
checkbox,
|
|
3572
3573
|
noLabel,
|
|
@@ -3574,7 +3575,8 @@ const styles$Q = {
|
|
|
3574
3575
|
checkmark,
|
|
3575
3576
|
disabled: disabled$9,
|
|
3576
3577
|
noMargin: noMargin$2,
|
|
3577
|
-
isInTable: isInTable$4
|
|
3578
|
+
isInTable: isInTable$4,
|
|
3579
|
+
helpIconEnabled: helpIconEnabled$2
|
|
3578
3580
|
};
|
|
3579
3581
|
var MapShim = function() {
|
|
3580
3582
|
if (typeof Map !== "undefined") {
|
|
@@ -5752,6 +5754,7 @@ const CheckBox = ({
|
|
|
5752
5754
|
}) => {
|
|
5753
5755
|
const disabledContext = useContext(DisabledContext);
|
|
5754
5756
|
const showHelp = helpText || onClickHelp;
|
|
5757
|
+
const isDisabled = disabled2 || disabledContext;
|
|
5755
5758
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
5756
5759
|
"div",
|
|
5757
5760
|
{
|
|
@@ -5759,17 +5762,19 @@ const CheckBox = ({
|
|
|
5759
5762
|
styles$Q.checkbox,
|
|
5760
5763
|
noMargin2 && styles$Q.noMargin,
|
|
5761
5764
|
isInTable2 && styles$Q.isInTable,
|
|
5762
|
-
|
|
5765
|
+
isDisabled && styles$Q.disabled,
|
|
5763
5766
|
small2 && styles$Q.small,
|
|
5764
5767
|
!label2 && styles$Q.noLabel
|
|
5765
5768
|
),
|
|
5766
5769
|
"data-ix": dataix,
|
|
5767
5770
|
onClick: (evt) => {
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5771
|
+
if (!isDisabled) {
|
|
5772
|
+
const target = evt.target;
|
|
5773
|
+
target.name = name2;
|
|
5774
|
+
target.value = !checked;
|
|
5775
|
+
target.checked = !checked;
|
|
5776
|
+
onChange(evt);
|
|
5777
|
+
}
|
|
5773
5778
|
},
|
|
5774
5779
|
"data-testid": testId,
|
|
5775
5780
|
children: [
|
|
@@ -5782,7 +5787,7 @@ const CheckBox = ({
|
|
|
5782
5787
|
name: name2,
|
|
5783
5788
|
onChange: () => {
|
|
5784
5789
|
},
|
|
5785
|
-
disabled:
|
|
5790
|
+
disabled: isDisabled
|
|
5786
5791
|
},
|
|
5787
5792
|
key2
|
|
5788
5793
|
),
|
|
@@ -5790,7 +5795,7 @@ const CheckBox = ({
|
|
|
5790
5795
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$Q.checkmark, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.CHECK }) }),
|
|
5791
5796
|
label2
|
|
5792
5797
|
] }),
|
|
5793
|
-
showHelp && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5798
|
+
showHelp && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$Q.helpIconEnabled, onClick: onClickHelp, children: /* @__PURE__ */ jsxRuntimeExports.jsx(HelpIcon, { text: helpText }) })
|
|
5794
5799
|
]
|
|
5795
5800
|
}
|
|
5796
5801
|
);
|
|
@@ -16799,17 +16804,17 @@ const getSizeValue = (size2) => {
|
|
|
16799
16804
|
};
|
|
16800
16805
|
const StyledGrid = st$1.div`
|
|
16801
16806
|
display: grid;
|
|
16802
|
-
gap: ${(props) => getGapValue(props
|
|
16803
|
-
grid-template-rows: ${(props) => getSizeValue(props
|
|
16804
|
-
grid-template-columns: ${(props) => getSizeValue(props
|
|
16805
|
-
height: ${(props) => getSizeValue(props
|
|
16807
|
+
gap: ${(props) => getGapValue(props.$gap)};
|
|
16808
|
+
grid-template-rows: ${(props) => getSizeValue(props.$rows)};
|
|
16809
|
+
grid-template-columns: ${(props) => getSizeValue(props.$columns)};
|
|
16810
|
+
height: ${(props) => getSizeValue(props.$height)};
|
|
16806
16811
|
|
|
16807
16812
|
@media (max-width: 992px) {
|
|
16808
|
-
${(p) => p
|
|
16813
|
+
${(p) => p.$columnsTablet && `grid-template-columns: ${getSizeValue(p.$columnsTablet)};`}
|
|
16809
16814
|
}
|
|
16810
16815
|
|
|
16811
16816
|
@media (max-width: 575px) {
|
|
16812
|
-
${(p) => p
|
|
16817
|
+
${(p) => p.$columnsMobile && `grid-template-columns: ${getSizeValue(p.$columnsMobile)};`}
|
|
16813
16818
|
}
|
|
16814
16819
|
`;
|
|
16815
16820
|
const Grid = ({
|
|
@@ -16824,12 +16829,12 @@ const Grid = ({
|
|
|
16824
16829
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
16825
16830
|
StyledGrid,
|
|
16826
16831
|
{
|
|
16827
|
-
rows,
|
|
16828
|
-
columns,
|
|
16829
|
-
columnsTablet,
|
|
16830
|
-
columnsMobile,
|
|
16831
|
-
gap: gap === false ? "0px" : gap === true ? "var(--padding)" : gap,
|
|
16832
|
-
height: typeof height2 === "number" ? `${height2}px` : height2,
|
|
16832
|
+
$rows: rows,
|
|
16833
|
+
$columns: columns,
|
|
16834
|
+
$columnsTablet: columnsTablet,
|
|
16835
|
+
$columnsMobile: columnsMobile,
|
|
16836
|
+
$gap: gap === false ? "0px" : gap === true ? "var(--padding)" : gap,
|
|
16837
|
+
$height: typeof height2 === "number" ? `${height2}px` : height2,
|
|
16833
16838
|
children
|
|
16834
16839
|
}
|
|
16835
16840
|
);
|
|
@@ -26100,42 +26105,43 @@ var InfiniteScroll = (
|
|
|
26100
26105
|
return InfiniteScroll2;
|
|
26101
26106
|
}(Component$1)
|
|
26102
26107
|
);
|
|
26103
|
-
const inputInTable$8 = "
|
|
26104
|
-
const inputHover$8 = "
|
|
26105
|
-
const inputFocus$8 = "
|
|
26106
|
-
const inputError$8 = "
|
|
26107
|
-
const inputWarning$8 = "
|
|
26108
|
-
const inputDisabled$8 = "
|
|
26109
|
-
const hideScrollbars$8 = "
|
|
26110
|
-
const header$1 = "
|
|
26111
|
-
const headerTitle = "
|
|
26112
|
-
const heading$3 = "
|
|
26113
|
-
const itemHeader = "
|
|
26114
|
-
const narrow = "
|
|
26115
|
-
const stickyHeader = "
|
|
26116
|
-
const title$3 = "
|
|
26117
|
-
const name = "
|
|
26118
|
-
const iconTooltipMargin = "
|
|
26119
|
-
const bold = "
|
|
26120
|
-
const toggleNarrow = "
|
|
26121
|
-
const drag$1 = "
|
|
26122
|
-
const list$1 = "
|
|
26123
|
-
const bordered$1 = "
|
|
26124
|
-
const item$4 = "
|
|
26125
|
-
const action = "
|
|
26126
|
-
const active$3 = "
|
|
26127
|
-
const
|
|
26128
|
-
const
|
|
26129
|
-
const
|
|
26130
|
-
const
|
|
26131
|
-
const
|
|
26132
|
-
const
|
|
26133
|
-
const
|
|
26134
|
-
const
|
|
26135
|
-
const
|
|
26136
|
-
const
|
|
26137
|
-
const
|
|
26138
|
-
const
|
|
26108
|
+
const inputInTable$8 = "_inputInTable_rdsv1_1";
|
|
26109
|
+
const inputHover$8 = "_inputHover_rdsv1_13";
|
|
26110
|
+
const inputFocus$8 = "_inputFocus_rdsv1_18";
|
|
26111
|
+
const inputError$8 = "_inputError_rdsv1_25";
|
|
26112
|
+
const inputWarning$8 = "_inputWarning_rdsv1_26";
|
|
26113
|
+
const inputDisabled$8 = "_inputDisabled_rdsv1_61";
|
|
26114
|
+
const hideScrollbars$8 = "_hideScrollbars_rdsv1_67";
|
|
26115
|
+
const header$1 = "_header_rdsv1_77";
|
|
26116
|
+
const headerTitle = "_headerTitle_rdsv1_77";
|
|
26117
|
+
const heading$3 = "_heading_rdsv1_78";
|
|
26118
|
+
const itemHeader = "_itemHeader_rdsv1_78";
|
|
26119
|
+
const narrow = "_narrow_rdsv1_81";
|
|
26120
|
+
const stickyHeader = "_stickyHeader_rdsv1_85";
|
|
26121
|
+
const title$3 = "_title_rdsv1_96";
|
|
26122
|
+
const name = "_name_rdsv1_102";
|
|
26123
|
+
const iconTooltipMargin = "_iconTooltipMargin_rdsv1_105";
|
|
26124
|
+
const bold = "_bold_rdsv1_108";
|
|
26125
|
+
const toggleNarrow = "_toggleNarrow_rdsv1_117";
|
|
26126
|
+
const drag$1 = "_drag_rdsv1_135";
|
|
26127
|
+
const list$1 = "_list_rdsv1_152";
|
|
26128
|
+
const bordered$1 = "_bordered_rdsv1_156";
|
|
26129
|
+
const item$4 = "_item_rdsv1_78";
|
|
26130
|
+
const action = "_action_rdsv1_189";
|
|
26131
|
+
const active$3 = "_active_rdsv1_192";
|
|
26132
|
+
const indented = "_indented_rdsv1_199";
|
|
26133
|
+
const disabled$5 = "_disabled_rdsv1_212";
|
|
26134
|
+
const label$6 = "_label_rdsv1_223";
|
|
26135
|
+
const details$2 = "_details_rdsv1_229";
|
|
26136
|
+
const metadata = "_metadata_rdsv1_230";
|
|
26137
|
+
const itemContent = "_itemContent_rdsv1_238";
|
|
26138
|
+
const indentIcon = "_indentIcon_rdsv1_245";
|
|
26139
|
+
const expandIcon = "_expandIcon_rdsv1_250";
|
|
26140
|
+
const expanded = "_expanded_rdsv1_257";
|
|
26141
|
+
const right$4 = "_right_rdsv1_260";
|
|
26142
|
+
const actions = "_actions_rdsv1_269";
|
|
26143
|
+
const scrollableList = "_scrollableList_rdsv1_274";
|
|
26144
|
+
const hideScrollbar = "_hideScrollbar_rdsv1_67";
|
|
26139
26145
|
const listStyles = {
|
|
26140
26146
|
inputInTable: inputInTable$8,
|
|
26141
26147
|
inputHover: inputHover$8,
|
|
@@ -26161,6 +26167,7 @@ const listStyles = {
|
|
|
26161
26167
|
item: item$4,
|
|
26162
26168
|
action,
|
|
26163
26169
|
active: active$3,
|
|
26170
|
+
indented,
|
|
26164
26171
|
disabled: disabled$5,
|
|
26165
26172
|
label: label$6,
|
|
26166
26173
|
details: details$2,
|
|
@@ -29423,14 +29430,15 @@ const ProgressBar$1 = ({
|
|
|
29423
29430
|
}
|
|
29424
29431
|
) });
|
|
29425
29432
|
};
|
|
29426
|
-
const wrapper$1 = "
|
|
29427
|
-
const inline$1 = "
|
|
29428
|
-
const radio = "
|
|
29429
|
-
const labelMargin = "
|
|
29430
|
-
const small$3 = "
|
|
29431
|
-
const noMargin$1 = "
|
|
29432
|
-
const disabled$2 = "
|
|
29433
|
-
const isInTable = "
|
|
29433
|
+
const wrapper$1 = "_wrapper_1fbik_1";
|
|
29434
|
+
const inline$1 = "_inline_1fbik_1";
|
|
29435
|
+
const radio = "_radio_1fbik_5";
|
|
29436
|
+
const labelMargin = "_labelMargin_1fbik_8";
|
|
29437
|
+
const small$3 = "_small_1fbik_27";
|
|
29438
|
+
const noMargin$1 = "_noMargin_1fbik_32";
|
|
29439
|
+
const disabled$2 = "_disabled_1fbik_90";
|
|
29440
|
+
const isInTable = "_isInTable_1fbik_106";
|
|
29441
|
+
const helpIconEnabled$1 = "_helpIconEnabled_1fbik_111";
|
|
29434
29442
|
const styles$g = {
|
|
29435
29443
|
wrapper: wrapper$1,
|
|
29436
29444
|
inline: inline$1,
|
|
@@ -29439,7 +29447,8 @@ const styles$g = {
|
|
|
29439
29447
|
small: small$3,
|
|
29440
29448
|
noMargin: noMargin$1,
|
|
29441
29449
|
disabled: disabled$2,
|
|
29442
|
-
isInTable
|
|
29450
|
+
isInTable,
|
|
29451
|
+
helpIconEnabled: helpIconEnabled$1
|
|
29443
29452
|
};
|
|
29444
29453
|
const RadioInput = ({
|
|
29445
29454
|
name: name2,
|
|
@@ -29479,7 +29488,7 @@ const RadioInput = ({
|
|
|
29479
29488
|
}
|
|
29480
29489
|
),
|
|
29481
29490
|
/* @__PURE__ */ jsxRuntimeExports.jsx("label", { "data-name": name2, "data-value": value, children: label2 }),
|
|
29482
|
-
showHelp && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29491
|
+
showHelp && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$g.helpIconEnabled, onClick: onClickHelp, children: /* @__PURE__ */ jsxRuntimeExports.jsx(HelpIcon, { text: helpText }) })
|
|
29483
29492
|
]
|
|
29484
29493
|
}
|
|
29485
29494
|
);
|
|
@@ -63051,6 +63060,8 @@ const getStringName = (name2) => {
|
|
|
63051
63060
|
return "";
|
|
63052
63061
|
if (typeof name2 === "string") {
|
|
63053
63062
|
return name2;
|
|
63063
|
+
} else if (lodashExports.isArray(name2)) {
|
|
63064
|
+
return name2[0];
|
|
63054
63065
|
}
|
|
63055
63066
|
return name2.fieldName;
|
|
63056
63067
|
};
|
|
@@ -65246,15 +65257,17 @@ const toast = ({
|
|
|
65246
65257
|
type: toastType
|
|
65247
65258
|
});
|
|
65248
65259
|
};
|
|
65249
|
-
const toggle$1 = "
|
|
65250
|
-
const small = "
|
|
65251
|
-
const disabled = "
|
|
65252
|
-
const noMargin = "
|
|
65260
|
+
const toggle$1 = "_toggle_3ujcm_9";
|
|
65261
|
+
const small = "_small_3ujcm_25";
|
|
65262
|
+
const disabled = "_disabled_3ujcm_101";
|
|
65263
|
+
const noMargin = "_noMargin_3ujcm_112";
|
|
65264
|
+
const helpIconEnabled = "_helpIconEnabled_3ujcm_115";
|
|
65253
65265
|
const styles$3 = {
|
|
65254
65266
|
toggle: toggle$1,
|
|
65255
65267
|
small,
|
|
65256
65268
|
disabled,
|
|
65257
|
-
noMargin
|
|
65269
|
+
noMargin,
|
|
65270
|
+
helpIconEnabled
|
|
65258
65271
|
};
|
|
65259
65272
|
const Toggle = ({
|
|
65260
65273
|
name: name2,
|
|
@@ -65270,20 +65283,23 @@ const Toggle = ({
|
|
|
65270
65283
|
}) => {
|
|
65271
65284
|
const disabledContext = useContext(DisabledContext);
|
|
65272
65285
|
const showHelp = helpText || onClickHelp;
|
|
65286
|
+
const isDisabled = disabled2 || disabledContext;
|
|
65273
65287
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
65274
65288
|
"div",
|
|
65275
65289
|
{
|
|
65276
65290
|
className: cx$2(
|
|
65277
65291
|
styles$3.toggle,
|
|
65278
|
-
|
|
65292
|
+
isDisabled ? styles$3.disabled : null,
|
|
65279
65293
|
small2 ? styles$3.small : null,
|
|
65280
65294
|
noMargin2 ? styles$3.noMargin : null
|
|
65281
65295
|
),
|
|
65282
65296
|
onClick: (evt) => {
|
|
65283
|
-
|
|
65284
|
-
|
|
65285
|
-
|
|
65286
|
-
|
|
65297
|
+
if (!isDisabled) {
|
|
65298
|
+
evt.target.name = name2;
|
|
65299
|
+
evt.target.checked = !checked;
|
|
65300
|
+
evt.target.value = !checked;
|
|
65301
|
+
onChange(evt);
|
|
65302
|
+
}
|
|
65287
65303
|
},
|
|
65288
65304
|
"data-testid": testId,
|
|
65289
65305
|
children: [
|
|
@@ -65293,14 +65309,14 @@ const Toggle = ({
|
|
|
65293
65309
|
type: InputType.CHECKBOX,
|
|
65294
65310
|
name: name2,
|
|
65295
65311
|
value: checked == null ? void 0 : checked.toString(),
|
|
65296
|
-
disabled:
|
|
65312
|
+
disabled: isDisabled,
|
|
65297
65313
|
checked,
|
|
65298
65314
|
onChange: () => {
|
|
65299
65315
|
}
|
|
65300
65316
|
}
|
|
65301
65317
|
),
|
|
65302
65318
|
/* @__PURE__ */ jsxRuntimeExports.jsx("label", { children: label2 }),
|
|
65303
|
-
showHelp && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
65319
|
+
showHelp && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.helpIconEnabled, onClick: onClickHelp, children: /* @__PURE__ */ jsxRuntimeExports.jsx(HelpIcon, { text: helpText }) })
|
|
65304
65320
|
]
|
|
65305
65321
|
}
|
|
65306
65322
|
);
|
|
@@ -77284,8 +77300,12 @@ const TreeItem = ({
|
|
|
77284
77300
|
className: cx$2(
|
|
77285
77301
|
listStyles.item,
|
|
77286
77302
|
listStyles.action,
|
|
77287
|
-
active2 ? listStyles.active : ""
|
|
77303
|
+
active2 ? listStyles.active : "",
|
|
77304
|
+
depth > 0 ? listStyles.indented : ""
|
|
77288
77305
|
),
|
|
77306
|
+
style: {
|
|
77307
|
+
marginInlineStart: depth * 24
|
|
77308
|
+
},
|
|
77289
77309
|
"data-testid": testId,
|
|
77290
77310
|
onClick: (evt) => {
|
|
77291
77311
|
if (onClick) {
|
|
@@ -77296,22 +77316,19 @@ const TreeItem = ({
|
|
|
77296
77316
|
"div",
|
|
77297
77317
|
{
|
|
77298
77318
|
className: listStyles.itemHeader,
|
|
77299
|
-
style: {
|
|
77300
|
-
marginInlineStart: depth * 24
|
|
77301
|
-
},
|
|
77302
77319
|
children: [
|
|
77303
|
-
draggable2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: listStyles.drag, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.DRAG }) }),
|
|
77304
77320
|
hasChild && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles.toggle, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
77305
77321
|
Button$1,
|
|
77306
77322
|
{
|
|
77307
77323
|
basic: true,
|
|
77308
|
-
colored: Color.MUTED,
|
|
77324
|
+
colored: isOpen2 ? true : Color.MUTED,
|
|
77309
77325
|
small: true,
|
|
77310
77326
|
round: true,
|
|
77311
77327
|
icon: isOpen2 ? IconType.COLLAPSE : IconType.EXPAND,
|
|
77312
77328
|
onClick: handleToggle
|
|
77313
77329
|
}
|
|
77314
77330
|
) }),
|
|
77331
|
+
draggable2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: listStyles.drag, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { icon: IconType.DRAG }) }),
|
|
77315
77332
|
/* @__PURE__ */ jsxRuntimeExports.jsx(MetaContent, { item: data }),
|
|
77316
77333
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: listStyles.right, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: listStyles.actions, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Actions, { actions: actions2 }) }) })
|
|
77317
77334
|
]
|